diff options
| author | AlexSm <[email protected]> | 2025-01-30 12:45:17 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-01-30 18:45:17 +0700 |
| commit | 93cb95fdc892f5ec53e7fbf777a6dbb98f86fe07 (patch) | |
| tree | 7d00e8db942685d7b2395b8340dd8ce3f6228752 | |
| parent | 8b9ae322100bc9abf580b33b967abdb29a168eae (diff) | |
build: refresh Embedded UI (v8.6.0) (#14019)
Co-authored-by: Raubzeug <[email protected]>
222 files changed, 423 insertions, 395 deletions
diff --git a/ydb/core/viewer/monitoring/asset-manifest.json b/ydb/core/viewer/monitoring/asset-manifest.json index 3cb54bca2ea..983caeed6ca 100644 --- a/ydb/core/viewer/monitoring/asset-manifest.json +++ b/ydb/core/viewer/monitoring/asset-manifest.json @@ -1,13 +1,13 @@ { "files": { - "main.css": "./static/css/main.ea1b4d9b.css", - "main.js": "./static/js/main.3b2c9faf.js", - "static/js/7329.a17ffd6a.chunk.js": "./static/js/7329.a17ffd6a.chunk.js", - "static/js/3238.380762b8.chunk.js": "./static/js/3238.380762b8.chunk.js", - "static/js/3872.b04e09bf.chunk.js": "./static/js/3872.b04e09bf.chunk.js", - "static/js/1299.c5282a3d.chunk.js": "./static/js/1299.c5282a3d.chunk.js", - "static/js/5875.af30e4a7.chunk.js": "./static/js/5875.af30e4a7.chunk.js", - "static/js/6990.d7efc318.chunk.js": "./static/js/6990.d7efc318.chunk.js", + "main.css": "./static/css/main.c06e6faa.css", + "main.js": "./static/js/main.73969f38.js", + "static/js/7329.514640a4.chunk.js": "./static/js/7329.514640a4.chunk.js", + "static/js/3238.a9505f7f.chunk.js": "./static/js/3238.a9505f7f.chunk.js", + "static/js/3872.a25d87b5.chunk.js": "./static/js/3872.a25d87b5.chunk.js", + "static/js/1299.aaedb42e.chunk.js": "./static/js/1299.aaedb42e.chunk.js", + "static/js/5875.f8a190bf.chunk.js": "./static/js/5875.f8a190bf.chunk.js", + "static/js/6990.70257b9b.chunk.js": "./static/js/6990.70257b9b.chunk.js", "static/js/9222.a1913f85.chunk.js": "./static/js/9222.a1913f85.chunk.js", "static/js/9243.cb95c73b.chunk.js": "./static/js/9243.cb95c73b.chunk.js", "static/js/6881.7e6434c9.chunk.js": "./static/js/6881.7e6434c9.chunk.js", @@ -151,27 +151,31 @@ "static/js/3653.06b5272c.chunk.js": "./static/js/3653.06b5272c.chunk.js", "static/js/221.b740df48.chunk.js": "./static/js/221.b740df48.chunk.js", "static/js/6879.2965a366.chunk.js": "./static/js/6879.2965a366.chunk.js", - "static/css/3207.6c42f157.chunk.css": "./static/css/3207.6c42f157.chunk.css", - "static/js/3207.168a615b.chunk.js": "./static/js/3207.168a615b.chunk.js", - "static/css/4614.16135447.chunk.css": "./static/css/4614.16135447.chunk.css", - "static/js/4614.3993436e.chunk.js": "./static/js/4614.3993436e.chunk.js", - "static/css/6989.10e247c3.chunk.css": "./static/css/6989.10e247c3.chunk.css", - "static/js/6989.23c1d1b9.chunk.js": "./static/js/6989.23c1d1b9.chunk.js", - "static/css/4335.aaba50a9.chunk.css": "./static/css/4335.aaba50a9.chunk.css", - "static/js/4335.b2a023a8.chunk.js": "./static/js/4335.b2a023a8.chunk.js", - "static/css/1489.6e73d562.chunk.css": "./static/css/1489.6e73d562.chunk.css", - "static/js/1489.6247c5c2.chunk.js": "./static/js/1489.6247c5c2.chunk.js", - "static/css/2828.3c5a5933.chunk.css": "./static/css/2828.3c5a5933.chunk.css", - "static/js/2828.2fd53975.chunk.js": "./static/js/2828.2fd53975.chunk.js", - "static/css/1203.5dcd19b9.chunk.css": "./static/css/1203.5dcd19b9.chunk.css", - "static/js/1203.25418a7e.chunk.js": "./static/js/1203.25418a7e.chunk.js", - "static/css/3415.b2295207.chunk.css": "./static/css/3415.b2295207.chunk.css", - "static/js/3415.b30ca44e.chunk.js": "./static/js/3415.b30ca44e.chunk.js", - "static/css/6947.7cffb936.chunk.css": "./static/css/6947.7cffb936.chunk.css", - "static/js/6947.0d51a0cf.chunk.js": "./static/js/6947.0d51a0cf.chunk.js", + "static/css/2512.19e3e12f.chunk.css": "./static/css/2512.19e3e12f.chunk.css", + "static/js/2512.732a0e0c.chunk.js": "./static/js/2512.732a0e0c.chunk.js", + "static/css/6548.ca5780af.chunk.css": "./static/css/6548.ca5780af.chunk.css", + "static/js/6548.72446369.chunk.js": "./static/js/6548.72446369.chunk.js", + "static/css/371.01f04f12.chunk.css": "./static/css/371.01f04f12.chunk.css", + "static/js/371.adb771f2.chunk.js": "./static/js/371.adb771f2.chunk.js", + "static/css/684.90fbb646.chunk.css": "./static/css/684.90fbb646.chunk.css", + "static/js/684.7c31509b.chunk.js": "./static/js/684.7c31509b.chunk.js", + "static/css/6030.fd13e90a.chunk.css": "./static/css/6030.fd13e90a.chunk.css", + "static/js/6030.95d317e6.chunk.js": "./static/js/6030.95d317e6.chunk.js", + "static/css/3812.440ff245.chunk.css": "./static/css/3812.440ff245.chunk.css", + "static/js/3812.325f3251.chunk.js": "./static/js/3812.325f3251.chunk.js", + "static/css/535.c6fb8cd9.chunk.css": "./static/css/535.c6fb8cd9.chunk.css", + "static/js/535.ee345954.chunk.js": "./static/js/535.ee345954.chunk.js", + "static/css/3779.66c0ef83.chunk.css": "./static/css/3779.66c0ef83.chunk.css", + "static/js/3779.9f31a4d0.chunk.js": "./static/js/3779.9f31a4d0.chunk.js", + "static/css/5438.615bd68a.chunk.css": "./static/css/5438.615bd68a.chunk.css", + "static/js/5438.179dc201.chunk.js": "./static/js/5438.179dc201.chunk.js", + "static/css/99.7cffb936.chunk.css": "./static/css/99.7cffb936.chunk.css", + "static/js/99.dd803d0d.chunk.js": "./static/js/99.dd803d0d.chunk.js", "static/js/2308.9e3a980c.chunk.js": "./static/js/2308.9e3a980c.chunk.js", - "static/js/5210.566d9075.chunk.js": "./static/js/5210.566d9075.chunk.js", + "static/js/4024.021c61dd.chunk.js": "./static/js/4024.021c61dd.chunk.js", "static/css/8593.397b88bd.chunk.css": "./static/css/8593.397b88bd.chunk.css", + "static/js/7614.00d00ded.chunk.js": "./static/js/7614.00d00ded.chunk.js", + "static/js/8868.a9031705.chunk.js": "./static/js/8868.a9031705.chunk.js", "static/js/5636.da9c4c85.chunk.js": "./static/js/5636.da9c4c85.chunk.js", "static/js/9872.65a6fae7.chunk.js": "./static/js/9872.65a6fae7.chunk.js", "static/js/3534.3f09429a.chunk.js": "./static/js/3534.3f09429a.chunk.js", @@ -184,34 +188,34 @@ "static/js/2518.ac97d255.chunk.js": "./static/js/2518.ac97d255.chunk.js", "static/js/5454.e8f64f1a.chunk.js": "./static/js/5454.e8f64f1a.chunk.js", "static/js/2742.d5c8fae8.chunk.js": "./static/js/2742.d5c8fae8.chunk.js", - "static/js/225.fb54318c.chunk.js": "./static/js/225.fb54318c.chunk.js", + "static/js/225.cf362439.chunk.js": "./static/js/225.cf362439.chunk.js", "static/js/4534.b98f1389.chunk.js": "./static/js/4534.b98f1389.chunk.js", "static/js/30.69969059.chunk.js": "./static/js/30.69969059.chunk.js", "static/js/6012.aac08e72.chunk.js": "./static/js/6012.aac08e72.chunk.js", "static/js/734.3fe325e9.chunk.js": "./static/js/734.3fe325e9.chunk.js", "static/js/5382.3a2e6ac6.chunk.js": "./static/js/5382.3a2e6ac6.chunk.js", "static/js/2854.48cc58dc.chunk.js": "./static/js/2854.48cc58dc.chunk.js", - "static/js/118.dcb5482c.chunk.js": "./static/js/118.dcb5482c.chunk.js", + "static/js/118.112f7e2f.chunk.js": "./static/js/118.112f7e2f.chunk.js", "static/js/7692.af7181c9.chunk.js": "./static/js/7692.af7181c9.chunk.js", "static/js/7148.ef54cd41.chunk.js": "./static/js/7148.ef54cd41.chunk.js", "static/js/110.2c798565.chunk.js": "./static/js/110.2c798565.chunk.js", - "static/js/5252.80fc836d.chunk.js": "./static/js/5252.80fc836d.chunk.js", + "static/js/5252.991dcab8.chunk.js": "./static/js/5252.991dcab8.chunk.js", "static/js/3638.ee3efb24.chunk.js": "./static/js/3638.ee3efb24.chunk.js", - "static/js/6554.70d080f7.chunk.js": "./static/js/6554.70d080f7.chunk.js", - "static/js/8821.fb95fc65.chunk.js": "./static/js/8821.fb95fc65.chunk.js", + "static/js/6554.6dfab136.chunk.js": "./static/js/6554.6dfab136.chunk.js", + "static/js/8821.96eeccd6.chunk.js": "./static/js/8821.96eeccd6.chunk.js", "static/js/4678.4e2f4af4.chunk.js": "./static/js/4678.4e2f4af4.chunk.js", "static/js/9176.3f08336f.chunk.js": "./static/js/9176.3f08336f.chunk.js", - "static/js/2726.f30887a6.chunk.js": "./static/js/2726.f30887a6.chunk.js", - "static/js/6447.08677ae3.chunk.js": "./static/js/6447.08677ae3.chunk.js", + "static/js/2726.e753cb7c.chunk.js": "./static/js/2726.e753cb7c.chunk.js", + "static/js/6447.2c0d9bda.chunk.js": "./static/js/6447.2c0d9bda.chunk.js", "static/js/7642.39707d60.chunk.js": "./static/js/7642.39707d60.chunk.js", "static/js/2350.a7af0a2e.chunk.js": "./static/js/2350.a7af0a2e.chunk.js", "static/js/3338.83fe4e63.chunk.js": "./static/js/3338.83fe4e63.chunk.js", "static/js/9010.4bfaf5fa.chunk.js": "./static/js/9010.4bfaf5fa.chunk.js", - "static/js/9728.0d021c0f.chunk.js": "./static/js/9728.0d021c0f.chunk.js", + "static/js/9728.7cc957e4.chunk.js": "./static/js/9728.7cc957e4.chunk.js", "static/js/5050.ffa3921f.chunk.js": "./static/js/5050.ffa3921f.chunk.js", "static/js/9312.5eb8d4b1.chunk.js": "./static/js/9312.5eb8d4b1.chunk.js", "static/js/3478.480dafa6.chunk.js": "./static/js/3478.480dafa6.chunk.js", - "static/js/6214.c63fd980.chunk.js": "./static/js/6214.c63fd980.chunk.js", + "static/js/6214.a9a481a7.chunk.js": "./static/js/6214.a9a481a7.chunk.js", "static/js/1414.4cfda0bc.chunk.js": "./static/js/1414.4cfda0bc.chunk.js", "static/js/2994.6c6016a8.chunk.js": "./static/js/2994.6c6016a8.chunk.js", "static/js/6210.69d6a30a.chunk.js": "./static/js/6210.69d6a30a.chunk.js", @@ -227,10 +231,10 @@ "static/js/4818.6beda30c.chunk.js": "./static/js/4818.6beda30c.chunk.js", "static/js/902.a1b90b1b.chunk.js": "./static/js/902.a1b90b1b.chunk.js", "static/js/9394.ca56f408.chunk.js": "./static/js/9394.ca56f408.chunk.js", - "static/js/2372.9bfbe824.chunk.js": "./static/js/2372.9bfbe824.chunk.js", - "static/js/5866.d7ea2c00.chunk.js": "./static/js/5866.d7ea2c00.chunk.js", + "static/js/2372.880a31f6.chunk.js": "./static/js/2372.880a31f6.chunk.js", + "static/js/5866.14d27c8c.chunk.js": "./static/js/5866.14d27c8c.chunk.js", "static/js/6658.b22172da.chunk.js": "./static/js/6658.b22172da.chunk.js", - "static/js/8986.5e9e2b69.chunk.js": "./static/js/8986.5e9e2b69.chunk.js", + "static/js/8986.de287636.chunk.js": "./static/js/8986.de287636.chunk.js", "static/js/4662.1c10232d.chunk.js": "./static/js/4662.1c10232d.chunk.js", "static/js/3702.778880f9.chunk.js": "./static/js/3702.778880f9.chunk.js", "static/js/2182.1e53f745.chunk.js": "./static/js/2182.1e53f745.chunk.js", @@ -250,42 +254,44 @@ "static/js/6262.44dba84f.chunk.js": "./static/js/6262.44dba84f.chunk.js", "static/js/246.13bb9db2.chunk.js": "./static/js/246.13bb9db2.chunk.js", "static/js/2162.cca3e026.chunk.js": "./static/js/2162.cca3e026.chunk.js", - "static/js/1606.87e97214.chunk.js": "./static/js/1606.87e97214.chunk.js", - "static/js/8979.d6e940f4.chunk.js": "./static/js/8979.d6e940f4.chunk.js", + "static/js/1606.0041ed7d.chunk.js": "./static/js/1606.0041ed7d.chunk.js", + "static/js/8979.0c0acc31.chunk.js": "./static/js/8979.0c0acc31.chunk.js", + "static/js/1094.b5bb2475.chunk.js": "./static/js/1094.b5bb2475.chunk.js", "static/js/9748.e711e962.chunk.js": "./static/js/9748.e711e962.chunk.js", "static/js/3822.00ab6aaa.chunk.js": "./static/js/3822.00ab6aaa.chunk.js", - "static/js/7718.98954359.chunk.js": "./static/js/7718.98954359.chunk.js", - "static/js/4870.22c3bb79.chunk.js": "./static/js/4870.22c3bb79.chunk.js", - "static/js/6397.b46d0b55.chunk.js": "./static/js/6397.b46d0b55.chunk.js", + "static/js/7718.f897f8ca.chunk.js": "./static/js/7718.f897f8ca.chunk.js", + "static/js/4870.1916a88d.chunk.js": "./static/js/4870.1916a88d.chunk.js", + "static/js/6397.b8cf6fae.chunk.js": "./static/js/6397.b8cf6fae.chunk.js", "static/js/5475.20ce4f75.chunk.js": "./static/js/5475.20ce4f75.chunk.js", - "static/js/2252.b5be42b8.chunk.js": "./static/js/2252.b5be42b8.chunk.js", - "static/js/1112.981a6700.chunk.js": "./static/js/1112.981a6700.chunk.js", - "static/css/3940.7f9420b9.chunk.css": "./static/css/3940.7f9420b9.chunk.css", - "static/js/3940.273724e5.chunk.js": "./static/js/3940.273724e5.chunk.js", - "static/js/6708.4a755add.chunk.js": "./static/js/6708.4a755add.chunk.js", - "static/js/4872.abdc9054.chunk.js": "./static/js/4872.abdc9054.chunk.js", - "static/js/8546.810f324c.chunk.js": "./static/js/8546.810f324c.chunk.js", - "static/css/6539.11185331.chunk.css": "./static/css/6539.11185331.chunk.css", - "static/js/6539.39f8bd0e.chunk.js": "./static/js/6539.39f8bd0e.chunk.js", - "static/js/439.b6c8d07e.chunk.js": "./static/js/439.b6c8d07e.chunk.js", - "static/js/1836.ea2a4537.chunk.js": "./static/js/1836.ea2a4537.chunk.js", - "static/css/3230.e4288e80.chunk.css": "./static/css/3230.e4288e80.chunk.css", - "static/js/3230.dbae485f.chunk.js": "./static/js/3230.dbae485f.chunk.js", - "static/js/3218.6f8c9799.chunk.js": "./static/js/3218.6f8c9799.chunk.js", - "static/js/1434.ef10d528.chunk.js": "./static/js/1434.ef10d528.chunk.js", + "static/js/9507.14872b99.chunk.js": "./static/js/9507.14872b99.chunk.js", + "static/css/3940.0971684f.chunk.css": "./static/css/3940.0971684f.chunk.css", + "static/js/3940.f5079e40.chunk.js": "./static/js/3940.f5079e40.chunk.js", + "static/js/4130.e9433987.chunk.js": "./static/js/4130.e9433987.chunk.js", + "static/js/4872.2eea7e0a.chunk.js": "./static/js/4872.2eea7e0a.chunk.js", + "static/js/7341.6e678529.chunk.js": "./static/js/7341.6e678529.chunk.js", + "static/js/6820.73ff230e.chunk.js": "./static/js/6820.73ff230e.chunk.js", + "static/css/7750.8e5e0423.chunk.css": "./static/css/7750.8e5e0423.chunk.css", + "static/js/7750.1fea5741.chunk.js": "./static/js/7750.1fea5741.chunk.js", + "static/js/1836.1c94b54f.chunk.js": "./static/js/1836.1c94b54f.chunk.js", + "static/js/856.78147a4f.chunk.js": "./static/js/856.78147a4f.chunk.js", + "static/js/8452.551c16c8.chunk.js": "./static/js/8452.551c16c8.chunk.js", + "static/css/9796.828f7385.chunk.css": "./static/css/9796.828f7385.chunk.css", + "static/js/9796.8870e3ef.chunk.js": "./static/js/9796.8870e3ef.chunk.js", + "static/js/1329.de2ec2cf.chunk.js": "./static/js/1329.de2ec2cf.chunk.js", + "static/js/9300.277e4f3f.chunk.js": "./static/js/9300.277e4f3f.chunk.js", "ts.worker.js": "./ts.worker.js", "css.worker.js": "./css.worker.js", "html.worker.js": "./html.worker.js", "json.worker.js": "./json.worker.js", "editor.worker.js": "./editor.worker.js", - "static/media/codicon.ttf": "./static/media/codicon.762fced46d6cddbda272.ttf", + "static/media/codicon.ttf": "./static/media/codicon.f6283f7ccaed1249d9eb.ttf", "static/media/thumbsUp.svg": "./static/media/thumbsUp.d4a03fbaa64ce85a0045bf8ba77f8e2b.svg", "static/media/error.svg": "./static/media/error.ca9e31d5d3dc34da07e11a00f7af0842.svg", "static/media/403.svg": "./static/media/403.6367e52f9464706633f52a2488a41958.svg", "index.html": "./index.html" }, "entrypoints": [ - "static/css/main.ea1b4d9b.css", - "static/js/main.3b2c9faf.js" + "static/css/main.c06e6faa.css", + "static/js/main.73969f38.js" ] }
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/css.worker.js b/ydb/core/viewer/monitoring/css.worker.js index 39556038cc7..f27300c9c06 100644 --- a/ydb/core/viewer/monitoring/css.worker.js +++ b/ydb/core/viewer/monitoring/css.worker.js @@ -1,2 +1,2 @@ /*! For license information please see css.worker.js.LICENSE.txt */ -(()=>{"use strict";const e=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(s.isErrorNoTelemetry(e))throw new s(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function t(t){r(t)||e.onUnexpectedError(t)}function n(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:s.isErrorNoTelemetry(e)}}return e}const i="Canceled";function r(e){return e instanceof o||e instanceof Error&&e.name===i&&e.message===i}class o extends Error{constructor(){super(i),this.name=this.message}}Error;class s extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof s)return e;const t=new s;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class a extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,a.prototype)}}function l(e,t){const n=this;let i,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}var c;!function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*i(e){yield e}e.empty=function(){return n},e.single=i,e.wrap=function(e){return t(e)?e:i(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let i=n;for(const r of e)i=t(i,r);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let o=0;o<n;o++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(c||(c={}));let h=null;function d(e){return null===h||void 0===h||h.trackDisposable(e),e}function p(e){null===h||void 0===h||h.markAsDisposed(e)}function u(e,t){null===h||void 0===h||h.setParent(e,t)}function m(e){if(c.is(e)){const n=[];for(const i of e)if(i)try{i.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function f(...e){const t=g((()=>m(e)));return function(e,t){if(h)for(const n of e)h.setParent(n,t)}(e,t),t}function g(e){const t=d({dispose:l((()=>{p(t),e()}))});return t}class b{constructor(){this._toDispose=new Set,this._isDisposed=!1,d(this)}dispose(){this._isDisposed||(p(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{m(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return u(e,this),this._isDisposed?b.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),u(e,null))}}b.DISABLE_DISPOSED_WARNING=!1;class v{constructor(){this._store=new b,d(this),u(this._store,this)}dispose(){p(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}v.None=Object.freeze({dispose(){}});Symbol.iterator;class y{constructor(e){this.element=e,this.next=y.Undefined,this.prev=y.Undefined}}y.Undefined=new y(void 0);class w{constructor(){this._first=y.Undefined,this._last=y.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===y.Undefined}clear(){let e=this._first;for(;e!==y.Undefined;){const t=e.next;e.prev=y.Undefined,e.next=y.Undefined,e=t}this._first=y.Undefined,this._last=y.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new y(e);if(this._first===y.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==y.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==y.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==y.Undefined&&e.next!==y.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===y.Undefined&&e.next===y.Undefined?(this._first=y.Undefined,this._last=y.Undefined):e.next===y.Undefined?(this._last=this._last.prev,this._last.next=y.Undefined):e.prev===y.Undefined&&(this._first=this._first.next,this._first.prev=y.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==y.Undefined;)yield e.element,e=e.next}}const x=globalThis.performance&&"function"===typeof globalThis.performance.now;class S{static create(e){return new S(e)}constructor(e){this._now=x&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}var C;!function(e){function t(e){false}function n(e){return(t,n=null,i)=>{let r,o=!1;return r=e((e=>{if(!o)return r?r.dispose():o=!0,t.call(n,e)}),null,i),o&&r.dispose(),r}}function i(e,t,n){return o(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)),n)}function r(e,t,n){return o(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)),n)}function o(e,n){let i;const r={onWillAddFirstListener(){i=e(o.fire,o)},onDidRemoveLastListener(){null===i||void 0===i||i.dispose()}};n||t();const o=new F(r);return null===n||void 0===n||n.add(o),o.event}function s(e,n,i=100,r=!1,o=!1,s,a){let l,c,h,d,p=0;const u={leakWarningThreshold:s,onWillAddFirstListener(){l=e((e=>{p++,c=n(c,e),r&&!h&&(m.fire(c),c=void 0),d=()=>{const e=c;c=void 0,h=void 0,(!r||p>1)&&m.fire(e),p=0},"number"===typeof i?(clearTimeout(h),h=setTimeout(d,i)):void 0===h&&(h=0,queueMicrotask(d))}))},onWillRemoveListener(){o&&p>0&&(null===d||void 0===d||d())},onDidRemoveLastListener(){d=void 0,l.dispose()}};a||t();const m=new F(u);return null===a||void 0===a||a.add(m),m.event}e.None=()=>v.None,e.defer=function(e,t){return s(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.map=i,e.forEach=function(e,t,n){return o(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)),n)},e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}(f(...e.map((e=>e((e=>t.call(n,e)))))),i)},e.reduce=function(e,t,n,r){let o=n;return i(e,(e=>(o=t(o,e),o)),r)},e.debounce=s,e.accumulate=function(t,n=0,i){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,i)},e.latch=function(e,t=(e,t)=>e===t,n){let i,o=!0;return r(e,(e=>{const n=o||!t(e,i);return o=!1,i=e,n}),n)},e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,(e=>!n(e)),i)]},e.buffer=function(e,t=!1,n=[],i){let r=n.slice(),o=e((e=>{r?r.push(e):a.fire(e)}));i&&i.add(o);const s=()=>{null===r||void 0===r||r.forEach((e=>a.fire(e))),r=null},a=new F({onWillAddFirstListener(){o||(o=e((e=>a.fire(e))),i&&i.add(o))},onDidAddFirstListener(){r&&(t?setTimeout(s):s())},onDidRemoveLastListener(){o&&o.dispose(),o=null}});return i&&i.add(a),a.event},e.chain=function(e,t){return(n,i,r)=>{const o=t(new l);return e((function(e){const t=o.evaluate(e);t!==a&&n.call(i,t)}),void 0,r)}};const a=Symbol("HaltChainable");class l{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:a)),this}reduce(e,t){let n=t;return this.steps.push((t=>(n=e(n,t),n))),this}latch(e=(e,t)=>e===t){let t,n=!0;return this.steps.push((i=>{const r=n||!e(i,t);return n=!1,t=i,r?i:a})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===a)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new F({onWillAddFirstListener:()=>e.on(t,i),onDidRemoveLastListener:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new F({onWillAddFirstListener:()=>e.addEventListener(t,i),onDidRemoveLastListener:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new F;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class c{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new F(i),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new c(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,i)=>{let r=0,o=!1;const s={beginUpdate(){r++},endUpdate(){r--,0===r&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(s),e.reportChanges();const a={dispose(){e.removeObserver(s)}};return i instanceof b?i.add(a):Array.isArray(i)&&i.push(a),a}}}(C||(C={}));class _{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${_._idPool++}`,_.all.add(this)}start(e){this._stopWatch=new S,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}_.all=new Set,_._idPool=0;class k{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){let e;this._warnCountdown=.5*n;let i=0;for(const[t,n]of this._stacks)(!e||i<n)&&(e=t,i=n);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${i}):`),console.warn(e)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class E{static create(){var e;return new E(null!==(e=(new Error).stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class R{constructor(e){this.value=e}}const N=void 0;class F{constructor(e){var t,n,i,r,o;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new k(null!==(i=null===(n=this._options)||void 0===n?void 0:n.leakWarningThreshold)&&void 0!==i?i:-1):void 0,this._perfMon=(null===(r=this._options)||void 0===r?void 0:r._profName)?new _(this._options._profName):void 0,this._deliveryQueue=null===(o=this._options)||void 0===o?void 0:o.deliveryQueue}dispose(){var e,t,n,i;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(n=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===n||n.call(t),null===(i=this._leakageMon)||void 0===i||i.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,n)=>{var i,r,o,s,a;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),v.None;if(this._disposed)return v.None;t&&(e=e.bind(t));const l=new R(e);let c;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(l.stack=E.create(),c=this._leakageMon.check(l.stack,this._size+1)),this._listeners?this._listeners instanceof R?(null!==(a=this._deliveryQueue)&&void 0!==a||(this._deliveryQueue=new D),this._listeners=[this._listeners,l]):this._listeners.push(l):(null===(r=null===(i=this._options)||void 0===i?void 0:i.onWillAddFirstListener)||void 0===r||r.call(i,this),this._listeners=l,null===(s=null===(o=this._options)||void 0===o?void 0:o.onDidAddFirstListener)||void 0===s||s.call(o,this)),this._size++;const h=g((()=>{null===N||void 0===N||N.unregister(h),null===c||void 0===c||c(),this._removeListener(l)}));if(n instanceof b?n.add(h):Array.isArray(n)&&n.push(h),N){const e=(new Error).stack.split("\n").slice(2).join("\n").trim();N.register(h,e,h)}return h}),this._event}_removeListener(e){var t,n,i,r;if(null===(n=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===n||n.call(t,this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,null===(r=null===(i=this._options)||void 0===i?void 0:i.onDidRemoveLastListener)||void 0===r||r.call(i,this),void(this._size=0);const o=this._listeners,s=o.indexOf(e);if(-1===s)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,o[s]=void 0;const a=this._deliveryQueue.current===this;if(2*this._size<=o.length){let e=0;for(let t=0;t<o.length;t++)o[t]?o[e++]=o[t]:a&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);o.length=e}}_deliver(e,n){var i;if(!e)return;const r=(null===(i=this._options)||void 0===i?void 0:i.onListenerError)||t;if(r)try{e.value(n)}catch(o){r(o)}else e.value(n)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){var t,n,i,r;if((null===(t=this._deliveryQueue)||void 0===t?void 0:t.current)&&(this._deliverQueue(this._deliveryQueue),null===(n=this._perfMon)||void 0===n||n.stop()),null===(i=this._perfMon)||void 0===i||i.start(this._size),this._listeners)if(this._listeners instanceof R)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;null===(r=this._perfMon)||void 0===r||r.stop()}hasListeners(){return this._size>0}}class D{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}Object.prototype.hasOwnProperty;function T(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}let A="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function M(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const i=n[0],r=t[i];let o=e;return"string"===typeof r?o=r:"number"!==typeof r&&"boolean"!==typeof r&&void 0!==r&&null!==r||(o=String(r)),o})),A&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function z(e,t,...n){return M(t,n)}var I,L;const P="en";let O,W,U=!1,V=!1,K=!1,q=!1,B=!1,j=!1,$=!1,H=!1,G=!1,J=!1,X=null,Y=null,Q=null;const Z=globalThis;let ee;"undefined"!==typeof Z.vscode&&"undefined"!==typeof Z.vscode.process?ee=Z.vscode.process:"undefined"!==typeof process&&"string"===typeof(null===(I=null===process||void 0===process?void 0:process.versions)||void 0===I?void 0:I.node)&&(ee=process);const te="string"===typeof(null===(L=null===ee||void 0===ee?void 0:ee.versions)||void 0===L?void 0:L.electron),ne=te&&"renderer"===(null===ee||void 0===ee?void 0:ee.type);if("object"===typeof ee){U="win32"===ee.platform,V="darwin"===ee.platform,K="linux"===ee.platform,q=K&&!!ee.env.SNAP&&!!ee.env.SNAP_REVISION,$=te,G=!!ee.env.CI||!!ee.env.BUILD_ARTIFACTSTAGINGDIRECTORY,O=P,X=P;const e=ee.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];O=t.locale,Y=t.osLocale,X=n||P,Q=t._translationsConfigFile}catch(gu){}B=!0}else if("object"!==typeof navigator||ne)console.error("Unable to resolve platform.");else{W=navigator.userAgent,U=W.indexOf("Windows")>=0,V=W.indexOf("Macintosh")>=0,H=(W.indexOf("Macintosh")>=0||W.indexOf("iPad")>=0||W.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,K=W.indexOf("Linux")>=0,J=(null===W||void 0===W?void 0:W.indexOf("Mobi"))>=0,j=!0;O=void z(0,"_")||P,X=O,Y=navigator.language}let ie=0;V?ie=1:U?ie=3:K&&(ie=2);const re=U,oe=V,se=(j&&"function"===typeof Z.importScripts&&Z.origin,W),ae="function"===typeof Z.postMessage&&!Z.importScripts;(()=>{if(ae){const e=[];Z.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void i.callback()}}));let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),Z.postMessage({vscodeScheduleAsyncWork:i},"*")}}})();const le=!!(se&&se.indexOf("Chrome")>=0);se&&se.indexOf("Firefox"),!le&&se&&se.indexOf("Safari"),se&&se.indexOf("Edg/"),se&&se.indexOf("Android");class ce{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var he;function de(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function pe(e){return e>=65&&e<=90}function ue(e){return 55296<=e&&e<=56319}function me(e){return 56320<=e&&e<=57343}function fe(e,t){return t-56320+(e-55296<<10)+65536}function ge(e,t,n){const i=e.charCodeAt(n);if(ue(i)&&n+1<t){const t=e.charCodeAt(n+1);if(me(t))return fe(i,t)}return i}const be=/^[\t\n\r\x20-\x7E]*$/;String.fromCharCode(65279);class ve{static getInstance(){return ve._INSTANCE||(ve._INSTANCE=new ve),ve._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}ve._INSTANCE=null;class ye{static getInstance(e){return he.cache.get(Array.from(e))}static getLocales(){return he._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}he=ye,ye.ambiguousCharacterData=new ce((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),ye.cache=new class{constructor(e,t=JSON.stringify){this.fn=e,this._computeKey=t,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}((e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[i,r]of e)t.has(i)&&n.set(i,r);return n}const i=he.ambiguousCharacterData.value;let r,o=e.filter((e=>!e.startsWith("_")&&e in i));0===o.length&&(o=["_default"]);for(const a of o){r=n(r,t(i[a]))}const s=function(e,t){const n=new Map(e);for(const[i,r]of t)n.set(i,r);return n}(t(i._common),r);return new he(s)})),ye._locales=new ce((()=>Object.keys(he.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class we{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(we.getRawData())),this._data}static isInvisibleCharacter(e){return we.getData().has(e)}static get codePoints(){return we.getData()}}we._data=void 0;const xe="$initialize";let Se;class Ce{constructor(e,t,n,i){this.vsWorker=e,this.req=t,this.method=n,this.args=i,this.type=0}}class _e{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class ke{constructor(e,t,n,i){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=i,this.type=2}}class Ee{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class Re{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class Ne{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const n=String(++this._lastSentReq);return new Promise(((i,r)=>{this._pendingReplies[n]={resolve:i,reject:r},this._send(new Ce(this._workerId,n,e,t))}))}listen(e,t){let n=null;const i=new F({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,i),this._send(new ke(this._workerId,n,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new Re(this._workerId,n)),n=null}});return i.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new _e(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=n(e.detail)),this._send(new _e(this._workerId,t,void 0,n(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new Ee(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}function Fe(e){return"o"===e[0]&&"n"===e[1]&&pe(e.charCodeAt(2))}function De(e){return/^onDynamic/.test(e)&&pe(e.charCodeAt(9))}function Te(e,t,n){const i=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r=e=>function(t){return n(e,t)},o={};for(const s of e)De(s)?o[s]=r(s):Fe(s)?o[s]=n(s,void 0):o[s]=i(s);return o}class Ae{constructor(e,t){this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new Ne({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t),handleEvent:(e,t)=>this._handleEvent(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if(e===xe)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!==typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(gu){return Promise.reject(gu)}}_handleEvent(e,t){if(!this._requestHandler)throw new Error("Missing requestHandler");if(De(e)){const n=this._requestHandler[e].call(this._requestHandler,t);if("function"!==typeof n)throw new Error(`Missing dynamic event ${e} on request handler.`);return n}if(Fe(e)){const t=this._requestHandler[e];if("function"!==typeof t)throw new Error(`Missing event ${e} on request handler.`);return t}throw new Error(`Malformed event name ${e}`)}initialize(e,t,n,i){this._protocol.setWorkerId(e);const r=Te(i,((e,t)=>this._protocol.sendMessage(e,t)),((e,t)=>this._protocol.listen(e,t)));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(r),Promise.resolve(T(this._requestHandler))):(t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t)),new Promise(((e,t)=>{(0,globalThis.require)([n],(n=>{this._requestHandler=n.create(r),this._requestHandler?e(T(this._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}}class Me{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function ze(e,t){return(t<<5)-t+e|0}function Ie(e,t){t=ze(149417,t);for(let n=0,i=e.length;n<i;n++)t=ze(e.charCodeAt(n),t);return t}function Le(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function Pe(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function Oe(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class We{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let i,r,o=this._buffLen,s=this._leftoverHighSurrogate;for(0!==s?(i=s,r=-1,s=0):(i=e.charCodeAt(0),r=0);;){let a=i;if(ue(i)){if(!(r+1<t)){s=i;break}{const t=e.charCodeAt(r+1);me(t)?(r++,a=fe(i,t)):a=65533}}else me(i)&&(a=65533);if(o=this._push(n,o,a),r++,!(r<t))break;i=e.charCodeAt(r)}this._buffLen=o,this._leftoverHighSurrogate=s}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Oe(this._h0)+Oe(this._h1)+Oe(this._h2)+Oe(this._h3)+Oe(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Pe(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Pe(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=We._bigBlock32,t=this._buffDV;for(let h=0;h<64;h+=4)e.setUint32(h,t.getUint32(h,!1),!1);for(let h=64;h<320;h+=4)e.setUint32(h,Le(e.getUint32(h-12,!1)^e.getUint32(h-32,!1)^e.getUint32(h-56,!1)^e.getUint32(h-64,!1),1),!1);let n,i,r,o=this._h0,s=this._h1,a=this._h2,l=this._h3,c=this._h4;for(let h=0;h<80;h++)h<20?(n=s&a|~s&l,i=1518500249):h<40?(n=s^a^l,i=1859775393):h<60?(n=s&a|s&l|a&l,i=2400959708):(n=s^a^l,i=3395469782),r=Le(o,5)+n+c+i+e.getUint32(4*h,!1)&4294967295,c=l,l=a,a=Le(s,30),s=o,o=r;this._h0=this._h0+o&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+c&4294967295}}We._bigBlock32=new DataView(new ArrayBuffer(320));class Ue{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function Ve(e,t,n){return new je(new Ue(e),new Ue(t)).ComputeDiff(n).changes}class Ke{static Assert(e,t){if(!e)throw new Error(t)}}class qe{static Copy(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}static Copy2(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}}class Be{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Me(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class je{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,o]=je._getElements(e),[s,a,l]=je._getElements(t);this._hasStrings=o&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(je._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=Ie(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return je._getStrictElement(this._originalSequence,e)===je._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const o=[!1];let s=this.ComputeDiffRecursive(e,t,n,i,o);return r&&(s=this.PrettifyChanges(s)),{quitEarly:o[0],changes:s}}ComputeDiffRecursive(e,t,n,i,r){for(r[0]=!1;e<=t&&n<=i&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){let r;return n<=i?(Ke.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new Me(e,0,n,i-n+1)]):e<=t?(Ke.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[new Me(e,t-e+1,n,0)]):(Ke.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Ke.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}const o=[0],s=[0],a=this.ComputeRecursionPoint(e,t,n,i,o,s,r),l=o[0],c=s[0];if(null!==a)return a;if(!r[0]){const o=this.ComputeDiffRecursive(e,l,n,c,r);let s=[];return s=r[0]?[new Me(l+1,t-(l+1)+1,c+1,i-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,i,r),this.ConcatenateChanges(o,s)}return[new Me(e,t-e+1,n,i-n+1)]}WALKTRACE(e,t,n,i,r,o,s,a,l,c,h,d,p,u,m,f,g,b){let v=null,y=null,w=new Be,x=t,S=n,C=p[0]-f[0]-i,_=-1073741824,k=this.m_forwardHistory.length-1;do{const t=C+e;t===x||t<S&&l[t-1]<l[t+1]?(u=(h=l[t+1])-C-i,h<_&&w.MarkNextChange(),_=h,w.AddModifiedElement(h+1,u),C=t+1-e):(u=(h=l[t-1]+1)-C-i,h<_&&w.MarkNextChange(),_=h-1,w.AddOriginalElement(h,u+1),C=t-1-e),k>=0&&(e=(l=this.m_forwardHistory[k])[0],x=1,S=l.length-1)}while(--k>=-1);if(v=w.getReverseChanges(),b[0]){let e=p[0]+1,t=f[0]+1;if(null!==v&&v.length>0){const n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}y=[new Me(e,d-e+1,t,m-t+1)]}else{w=new Be,x=o,S=s,C=p[0]-f[0]-a,_=1073741824,k=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=C+r;e===x||e<S&&c[e-1]>=c[e+1]?(u=(h=c[e+1]-1)-C-a,h>_&&w.MarkNextChange(),_=h+1,w.AddOriginalElement(h+1,u+1),C=e+1-r):(u=(h=c[e-1])-C-a,h>_&&w.MarkNextChange(),_=h,w.AddModifiedElement(h+1,u+1),C=e-1-r),k>=0&&(r=(c=this.m_reverseHistory[k])[0],x=1,S=c.length-1)}while(--k>=-1);y=w.getChanges()}return this.ConcatenateChanges(v,y)}ComputeRecursionPoint(e,t,n,i,r,o,s){let a=0,l=0,c=0,h=0,d=0,p=0;e--,n--,r[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const u=t-e+(i-n),m=u+1,f=new Int32Array(m),g=new Int32Array(m),b=i-n,v=t-e,y=e-n,w=t-i,x=(v-b)%2===0;f[b]=e,g[v]=t,s[0]=!1;for(let S=1;S<=u/2+1;S++){let u=0,C=0;c=this.ClipDiagonalBound(b-S,S,b,m),h=this.ClipDiagonalBound(b+S,S,b,m);for(let e=c;e<=h;e+=2){a=e===c||e<h&&f[e-1]<f[e+1]?f[e+1]:f[e-1]+1,l=a-(e-b)-y;const n=a;for(;a<t&&l<i&&this.ElementsAreEqual(a+1,l+1);)a++,l++;if(f[e]=a,a+l>u+C&&(u=a,C=l),!x&&Math.abs(e-v)<=S-1&&a>=g[e])return r[0]=a,o[0]=l,n<=g[e]&&S<=1448?this.WALKTRACE(b,c,h,y,v,d,p,w,f,g,a,t,r,l,i,o,x,s):null}const _=(u-e+(C-n)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(u,_))return s[0]=!0,r[0]=u,o[0]=C,_>0&&S<=1448?this.WALKTRACE(b,c,h,y,v,d,p,w,f,g,a,t,r,l,i,o,x,s):(e++,n++,[new Me(e,t-e+1,n,i-n+1)]);d=this.ClipDiagonalBound(v-S,S,v,m),p=this.ClipDiagonalBound(v+S,S,v,m);for(let m=d;m<=p;m+=2){a=m===d||m<p&&g[m-1]>=g[m+1]?g[m+1]-1:g[m-1],l=a-(m-v)-w;const u=a;for(;a>e&&l>n&&this.ElementsAreEqual(a,l);)a--,l--;if(g[m]=a,x&&Math.abs(m-b)<=S&&a<=f[m])return r[0]=a,o[0]=l,u>=f[m]&&S<=1448?this.WALKTRACE(b,c,h,y,v,d,p,w,f,g,a,t,r,l,i,o,x,s):null}if(S<=1447){let e=new Int32Array(h-c+2);e[0]=b-c+1,qe.Copy2(f,c,e,1,h-c+1),this.m_forwardHistory.push(e),e=new Int32Array(p-d+2),e[0]=v-d+1,qe.Copy2(g,d,e,1,p-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,c,h,y,v,d,p,w,f,g,a,t,r,l,i,o,x,s)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,o=n.originalLength>0,s=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!o||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const o=n.originalLength>0,s=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<i||c<r)break;if(o&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const h=(t===i&&c===r?5:0)+this._boundaryScore(t,n.originalLength,c,n.modifiedLength);h>l&&(l=h,a=e)}n.originalStart-=a,n.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],i=e[t],r=i.originalStart-n.originalStart-n.originalLength,o=n.originalStart,s=i.originalStart+i.originalLength,a=s-o,l=n.modifiedStart,c=i.modifiedStart+i.modifiedLength,h=c-l;if(r<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(o,a,l,h,r);if(e){const[t,o]=e;t===n.originalStart+n.originalLength&&o===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=o-n.modifiedStart,i.originalStart=t+r,i.modifiedStart=o+r,i.originalLength=s-i.originalStart,i.modifiedLength=c-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,r){if(t<r||i<r)return null;const o=e+t-r+1,s=n+i-r+1;let a=0,l=0,c=0;for(let h=e;h<o;h++)for(let e=n;e<s;e++){const t=this._contiguousSequenceScore(h,e,r);t>0&&t>a&&(a=t,l=h,c=e)}return a>0?[l,c]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return qe.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],qe.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return qe.Copy(e,0,n,0,e.length),qe.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(Ke.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Ke.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const i=e.originalStart;let r=e.originalLength;const o=e.modifiedStart;let s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new Me(i,r,o,s),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2===0;if(e<0){return r===(n%2===0)?0:1}return r===((i-n-1)%2===0)?i-1:i-2}}const $e=globalThis.vscode;if("undefined"!==typeof $e&&"undefined"!==typeof $e.process){const e=$e.process;Se={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else Se="undefined"!==typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return re?"win32":oe?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const He=Se.cwd,Ge=(Se.env,Se.platform),Je=46,Xe=47,Ye=92,Qe=58;class Ze extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let o=`The "${e}" ${r} ${i} of type ${t}`;o+=". Received type "+typeof n,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function et(e,t){if("string"!==typeof e)throw new Ze(t,"string",e)}const tt="win32"===Ge;function nt(e){return e===Xe||e===Ye}function it(e){return e===Xe}function rt(e){return e>=65&&e<=90||e>=97&&e<=122}function ot(e,t,n,i){let r="",o=0,s=-1,a=0,l=0;for(let c=0;c<=e.length;++c){if(c<e.length)l=e.charCodeAt(c);else{if(i(l))break;l=Xe}if(i(l)){if(s===c-1||1===a);else if(2===a){if(r.length<2||2!==o||r.charCodeAt(r.length-1)!==Je||r.charCodeAt(r.length-2)!==Je){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",o=0):(r=r.slice(0,e),o=r.length-1-r.lastIndexOf(n)),s=c,a=0;continue}if(0!==r.length){r="",o=0,s=c,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",o=2)}else r.length>0?r+=`${n}${e.slice(s+1,c)}`:r=e.slice(s+1,c),o=c-s-1;s=c,a=0}else l===Je&&-1!==a?++a:a=-1}return r}function st(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new Ze(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const at={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let o;if(r>=0){if(o=e[r],et(o,"path"),0===o.length)continue}else 0===t.length?o=He():(o={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||He(),(void 0===o||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&o.charCodeAt(2)===Ye)&&(o=`${t}\\`));const s=o.length;let a=0,l="",c=!1;const h=o.charCodeAt(0);if(1===s)nt(h)&&(a=1,c=!0);else if(nt(h))if(c=!0,nt(o.charCodeAt(1))){let e=2,t=e;for(;e<s&&!nt(o.charCodeAt(e));)e++;if(e<s&&e!==t){const n=o.slice(t,e);for(t=e;e<s&&nt(o.charCodeAt(e));)e++;if(e<s&&e!==t){for(t=e;e<s&&!nt(o.charCodeAt(e));)e++;e!==s&&e===t||(l=`\\\\${n}\\${o.slice(t,e)}`,a=e)}}}else a=1;else rt(h)&&o.charCodeAt(1)===Qe&&(l=o.slice(0,2),a=2,s>2&&nt(o.charCodeAt(2))&&(c=!0,a=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(i){if(t.length>0)break}else if(n=`${o.slice(a)}\\${n}`,i=c,c&&t.length>0)break}return n=ot(n,!i,"\\",nt),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){et(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const o=e.charCodeAt(0);if(1===t)return it(o)?"\\":e;if(nt(o))if(r=!0,nt(e.charCodeAt(1))){let r=2,o=r;for(;r<t&&!nt(e.charCodeAt(r));)r++;if(r<t&&r!==o){const s=e.slice(o,r);for(o=r;r<t&&nt(e.charCodeAt(r));)r++;if(r<t&&r!==o){for(o=r;r<t&&!nt(e.charCodeAt(r));)r++;if(r===t)return`\\\\${s}\\${e.slice(o)}\\`;r!==o&&(n=`\\\\${s}\\${e.slice(o,r)}`,i=r)}}}else i=1;else rt(o)&&e.charCodeAt(1)===Qe&&(n=e.slice(0,2),i=2,t>2&&nt(e.charCodeAt(2))&&(r=!0,i=3));let s=i<t?ot(e.slice(i),!r,"\\",nt):"";return 0!==s.length||r||(s="."),s.length>0&&nt(e.charCodeAt(t-1))&&(s+="\\"),void 0===n?r?`\\${s}`:s:r?`${n}\\${s}`:`${n}${s}`},isAbsolute(e){et(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return nt(n)||t>2&&rt(n)&&e.charCodeAt(1)===Qe&&nt(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let o=0;o<e.length;++o){const i=e[o];et(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&nt(n.charCodeAt(0))){++r;const e=n.length;e>1&&nt(n.charCodeAt(1))&&(++r,e>2&&(nt(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&nt(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return at.normalize(t)},relative(e,t){if(et(e,"from"),et(t,"to"),e===t)return"";const n=at.resolve(e),i=at.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===Ye;)r++;let o=e.length;for(;o-1>r&&e.charCodeAt(o-1)===Ye;)o--;const s=o-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===Ye;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===Ye;)l--;const c=l-a,h=s<c?s:c;let d=-1,p=0;for(;p<h;p++){const n=e.charCodeAt(r+p);if(n!==t.charCodeAt(a+p))break;n===Ye&&(d=p)}if(p!==h){if(-1===d)return i}else{if(c>h){if(t.charCodeAt(a+p)===Ye)return i.slice(a+p+1);if(2===p)return i.slice(a+p)}s>h&&(e.charCodeAt(r+p)===Ye?d=p:2===p&&(d=3)),-1===d&&(d=0)}let u="";for(p=r+d+1;p<=o;++p)p!==o&&e.charCodeAt(p)!==Ye||(u+=0===u.length?"..":"\\..");return a+=d,u.length>0?`${u}${i.slice(a,l)}`:(i.charCodeAt(a)===Ye&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=at.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Ye){if(t.charCodeAt(1)===Ye){const e=t.charCodeAt(2);if(63!==e&&e!==Je)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(rt(t.charCodeAt(0))&&t.charCodeAt(1)===Qe&&t.charCodeAt(2)===Ye)return`\\\\?\\${t}`;return e},dirname(e){et(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return nt(r)?e:".";if(nt(r)){if(n=i=1,nt(e.charCodeAt(1))){let r=2,o=r;for(;r<t&&!nt(e.charCodeAt(r));)r++;if(r<t&&r!==o){for(o=r;r<t&&nt(e.charCodeAt(r));)r++;if(r<t&&r!==o){for(o=r;r<t&&!nt(e.charCodeAt(r));)r++;if(r===t)return e;r!==o&&(n=i=r+1)}}}}else rt(r)&&e.charCodeAt(1)===Qe&&(n=t>2&&nt(e.charCodeAt(2))?3:2,i=n);let o=-1,s=!0;for(let a=t-1;a>=i;--a)if(nt(e.charCodeAt(a))){if(!s){o=a;break}}else s=!1;if(-1===o){if(-1===n)return".";o=n}return e.slice(0,o)},basename(e,t){void 0!==t&&et(t,"ext"),et(e,"path");let n,i=0,r=-1,o=!0;if(e.length>=2&&rt(e.charCodeAt(0))&&e.charCodeAt(1)===Qe&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(nt(l)){if(!o){i=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(l===t.charCodeAt(s)?-1===--s&&(r=n):(s=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(nt(e.charCodeAt(n))){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){et(e,"path");let t=0,n=-1,i=0,r=-1,o=!0,s=0;e.length>=2&&e.charCodeAt(1)===Qe&&rt(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(nt(t)){if(!o){i=a+1;break}}else-1===r&&(o=!1,r=a+1),t===Je?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===r||0===s||1===s&&n===r-1&&n===i+1?"":e.slice(n,r)},format:st.bind(null,"\\"),parse(e){et(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return nt(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(nt(r)){if(i=1,nt(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!nt(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&nt(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!nt(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(rt(r)&&e.charCodeAt(1)===Qe){if(n<=2)return t.root=t.dir=e,t;if(i=2,nt(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let o=-1,s=i,a=-1,l=!0,c=e.length-1,h=0;for(;c>=i;--c)if(r=e.charCodeAt(c),nt(r)){if(!l){s=c+1;break}}else-1===a&&(l=!1,a=c+1),r===Je?-1===o?o=c:1!==h&&(h=1):-1!==o&&(h=-1);return-1!==a&&(-1===o||0===h||1===h&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),t.dir=s>0&&s!==i?e.slice(0,s-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},lt=(()=>{if(tt){const e=/\\/g;return()=>{const t=He().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>He()})(),ct={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:lt();et(r,"path"),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===Xe)}return t=ot(t,!n,"/",it),n?`/${t}`:t.length>0?t:"."},normalize(e){if(et(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Xe,n=e.charCodeAt(e.length-1)===Xe;return 0===(e=ot(e,!t,"/",it)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(et(e,"path"),e.length>0&&e.charCodeAt(0)===Xe),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];et(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":ct.normalize(t)},relative(e,t){if(et(e,"from"),et(t,"to"),e===t)return"";if((e=ct.resolve(e))===(t=ct.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,o=i<r?i:r;let s=-1,a=0;for(;a<o;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===Xe&&(s=a)}if(a===o)if(r>o){if(t.charCodeAt(1+a)===Xe)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>o&&(e.charCodeAt(1+a)===Xe?s=a:0===a&&(s=0));let l="";for(a=1+s+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==Xe||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+s)}`},toNamespacedPath:e=>e,dirname(e){if(et(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Xe;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===Xe){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&et(t,"ext"),et(e,"path");let n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===Xe){if(!o){i=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(l===t.charCodeAt(s)?-1===--s&&(r=n):(s=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===Xe){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){et(e,"path");let t=-1,n=0,i=-1,r=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a!==Xe)-1===i&&(r=!1,i=s+1),a===Je?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=s+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:st.bind(null,"/"),parse(e){et(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===Xe;let i;n?(t.root="/",i=1):i=0;let r=-1,o=0,s=-1,a=!0,l=e.length-1,c=0;for(;l>=i;--l){const t=e.charCodeAt(l);if(t!==Xe)-1===s&&(a=!1,s=l+1),t===Je?-1===r?r=l:1!==c&&(c=1):-1!==r&&(c=-1);else if(!a){o=l+1;break}}if(-1!==s){const i=0===o&&n?1:o;-1===r||0===c||1===c&&r===s-1&&r===o+1?t.base=t.name=e.slice(i,s):(t.name=e.slice(i,r),t.base=e.slice(i,s),t.ext=e.slice(r,s))}return o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ct.win32=at.win32=at,ct.posix=at.posix=ct;tt?at.normalize:ct.normalize,tt?at.resolve:ct.resolve,tt?at.relative:ct.relative,tt?at.dirname:ct.dirname,tt?at.basename:ct.basename,tt?at.extname:ct.extname,tt?at.sep:ct.sep;const ht=/^\w[\w\d+.-]*$/,dt=/^\//,pt=/^\/\//;const ut="",mt="/",ft=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class gt{static isUri(e){return e instanceof gt||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,i,r,o=!1){"object"===typeof e?(this.scheme=e.scheme||ut,this.authority=e.authority||ut,this.path=e.path||ut,this.query=e.query||ut,this.fragment=e.fragment||ut):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||ut,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==mt&&(t=mt+t):t=mt}return t}(this.scheme,n||ut),this.query=i||ut,this.fragment=r||ut,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!ht.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!dt.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(pt.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}get fsPath(){return St(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=ut),void 0===n?n=this.authority:null===n&&(n=ut),void 0===i?i=this.path:null===i&&(i=ut),void 0===r?r=this.query:null===r&&(r=ut),void 0===o?o=this.fragment:null===o&&(o=ut),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&o===this.fragment?this:new vt(t,n,i,r,o)}static parse(e,t=!1){const n=ft.exec(e);return n?new vt(n[2]||ut,Et(n[4]||ut),Et(n[5]||ut),Et(n[7]||ut),Et(n[9]||ut),t):new vt(ut,ut,ut,ut,ut)}static file(e){let t=ut;if(re&&(e=e.replace(/\\/g,mt)),e[0]===mt&&e[1]===mt){const n=e.indexOf(mt,2);-1===n?(t=e.substring(2),e=mt):(t=e.substring(2,n),e=e.substring(n)||mt)}return new vt("file",t,e,ut,ut)}static from(e,t){return new vt(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=re&&"file"===e.scheme?gt.file(at.join(St(e,!0),...t)).path:ct.join(e.path,...t),e.with({path:n})}toString(e=!1){return Ct(this,e)}toJSON(){return this}static revive(e){var t,n;if(e){if(e instanceof gt)return e;{const i=new vt(e);return i._formatted=null!==(t=e.external)&&void 0!==t?t:null,i._fsPath=e._sep===bt&&null!==(n=e.fsPath)&&void 0!==n?n:null,i}}return e}}const bt=re?1:void 0;class vt extends gt{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=St(this,!1)),this._fsPath}toString(e=!1){return e?Ct(this,!0):(this._formatted||(this._formatted=Ct(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=bt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const yt={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function wt(e,t,n){let i,r=-1;for(let o=0;o<e.length;o++){const s=e.charCodeAt(o);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||n&&91===s||n&&93===s||n&&58===s)-1!==r&&(i+=encodeURIComponent(e.substring(r,o)),r=-1),void 0!==i&&(i+=e.charAt(o));else{void 0===i&&(i=e.substr(0,o));const t=yt[s];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,o)),r=-1),i+=t):-1===r&&(r=o)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function xt(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=yt[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function St(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,re&&(n=n.replace(/\//g,"\\")),n}function Ct(e,t){const n=t?xt:wt;let i="",{scheme:r,authority:o,path:s,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(o||"file"===r)&&(i+=mt,i+=mt),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}o=o.toLowerCase(),e=o.lastIndexOf(":"),-1===e?i+=n(o,!1,!0):(i+=n(o.substr(0,e),!1,!0),i+=o.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}i+=n(s,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),l&&(i+="#",i+=t?l:wt(l,!1,!1)),i}function _t(e){try{return decodeURIComponent(e)}catch(I){return e.length>3?e.substr(0,3)+_t(e.substr(3)):e}}const kt=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Et(e){return e.match(kt)?e.replace(kt,(e=>_t(e))):e}class Rt{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new Rt(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Rt.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Rt.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return Rt.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){return(0|e.column)-(0|t.column)}return n-i}clone(){return new Rt(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new Rt(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}class Nt{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return Nt.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Nt.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return Nt.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return Nt.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return Nt.plusRange(this,e)}static plusRange(e,t){let n,i,r,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(r=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,o=e.endColumn),new Nt(n,i,r,o)}intersectRanges(e){return Nt.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,o=e.endColumn;const s=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,c=t.endColumn;return n<s?(n=s,i=a):n===s&&(i=Math.max(i,a)),r>l?(r=l,o=c):r===l&&(o=Math.min(o,c)),n>r||n===r&&i>o?null:new Nt(n,i,r,o)}equalsRange(e){return Nt.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return Nt.getEndPosition(this)}static getEndPosition(e){return new Rt(e.endLineNumber,e.endColumn)}getStartPosition(){return Nt.getStartPosition(this)}static getStartPosition(e){return new Rt(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new Nt(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new Nt(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return Nt.collapseToStart(this)}static collapseToStart(e){return new Nt(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return Nt.collapseToEnd(this)}static collapseToEnd(e){return new Nt(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new Nt(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new Nt(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new Nt(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){return(0|e.endColumn)-(0|t.endColumn)}return n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}var Ft;function Dt(e,t){return(n,i)=>t(e(n),e(i))}!function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(Ft||(Ft={}));const Tt=(e,t)=>e-t;class At{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new At((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new At((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((i=>((n||Ft.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0))),t}}At.empty=new At((e=>{}));function Mt(e){return e<0?0:e>255?255:0|e}function zt(e){return e<0?0:e>4294967295?4294967295:0|e}class It{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=zt(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=zt(e),t=zt(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=zt(e),t=zt(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=zt(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,r=0,o=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],o=r-this.values[i],e<o)n=i-1;else{if(!(e>=r))break;t=i+1}return new Lt(i,e-o)}}class Lt{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class Pt{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new Rt(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new It(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const n=t.split(/\r\n|\r|\n/);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);const i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const Ot=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function Wt(e){let t=Ot;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const Ut=new w;function Vt(e,t,n,i,r){if(t=Wt(t),r||(r=c.first(Ut)),n.length>r.maxLen){let o=e-r.maxLen/2;return o<0?o=0:i+=o,Vt(e,t,n=n.substring(o,e+r.maxLen/2),i,r)}const o=Date.now(),s=e-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-o>=r.timeBudget);c++){const e=s-r.windowSize*c;t.lastIndex=Math.max(0,e);const i=Kt(t,n,s,a);if(!i&&l)break;if(l=i,e<=0)break;a=e}if(l){const e={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return t.lastIndex=0,e}return null}function Kt(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}Ut.unshift({maxLen:1e3,windowSize:15,timeBudget:150});class qt{constructor(e){const t=Mt(e);this._defaultValue=t,this._asciiMap=qt._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=Mt(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Bt{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,o=e*t;r<o;r++)i[r]=n;this._data=i,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class jt{constructor(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++){const[i,o,s]=e[r];o>t&&(t=o),i>n&&(n=i),s>n&&(n=s)}t++,n++;const i=new Bt(n,t,0);for(let r=0,o=e.length;r<o;r++){const[t,n,o]=e[r];i.set(t,n,o)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let $t=null;let Ht=null;class Gt{static _createLink(e,t,n,i,r){let o=r-1;do{const n=t.charCodeAt(o);if(2!==e.get(n))break;o--}while(o>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(o);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&o--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:o+2},url:t.substring(i,o+1)}}static computeLinks(e,t=function(){return null===$t&&($t=new jt([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),$t}()){const n=function(){if(null===Ht){Ht=new qt(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)Ht.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)Ht.set(t.charCodeAt(n),2)}return Ht}(),i=[];for(let r=1,o=e.getLineCount();r<=o;r++){const o=e.getLineContent(r),s=o.length;let a=0,l=0,c=0,h=1,d=!1,p=!1,u=!1,m=!1;for(;a<s;){let e=!1;const s=o.charCodeAt(a);if(13===h){let t;switch(s){case 40:d=!0,t=0;break;case 41:t=d?0:1;break;case 91:u=!0,p=!0,t=0;break;case 93:u=!1,t=p?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=c===s?1:39===c||34===c||96===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=u?0:1;break;default:t=n.get(s)}1===t&&(i.push(Gt._createLink(n,o,r,l,a)),e=!0)}else if(12===h){let t;91===s?(p=!0,t=0):t=n.get(s),1===t?e=!0:h=13}else h=t.nextState(h,s),0===h&&(e=!0);e&&(h=1,d=!1,p=!1,m=!1,l=a+1,c=s),a++}13===h&&i.push(Gt._createLink(n,o,r,l,s))}return i}}class Jt{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,i,r){if(e&&t){const n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){const e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,o=e.length;null===i&&r<o;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}Jt.INSTANCE=new Jt;const Xt=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var Yt;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof Qt||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:C.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Xt})}(Yt||(Yt={}));class Qt{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Xt:(this._emitter||(this._emitter=new F),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Zt{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Qt),this._token}cancel(){this._token?this._token instanceof Qt&&this._token.cancel():this._token=Yt.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof Qt&&this._token.dispose():this._token=Yt.None}}class en{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const tn=new en,nn=new en,rn=new en,on=new Array(230),sn={},an=[],ln=Object.create(null),cn=Object.create(null),hn=[],dn=[];for(let bu=0;bu<=193;bu++)hn[bu]=-1;for(let bu=0;bu<=132;bu++)dn[bu]=-1;var pn;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[e,t,o,s,a,l,c,h,d]=r;if(i[t]||(i[t]=!0,an[t]=o,ln[o]=t,cn[o.toLowerCase()]=t,e&&(hn[t]=s,0!==s&&3!==s&&5!==s&&4!==s&&6!==s&&57!==s&&(dn[s]=t))),!n[s]){if(n[s]=!0,!a)throw new Error(`String representation missing for key code ${s} around scan code ${o}`);tn.define(s,a),nn.define(s,h||a),rn.define(s,d||h||a)}l&&(on[l]=s),c&&(sn[c]=s)}dn[3]=46}(),function(e){e.toString=function(e){return tn.keyCodeToStr(e)},e.fromString=function(e){return tn.strToKeyCode(e)},e.toUserSettingsUS=function(e){return nn.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return rn.keyCodeToStr(e)},e.fromUserSettings=function(e){return nn.strToKeyCode(e)||rn.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return tn.keyCodeToStr(e)}}(pn||(pn={}));class un extends Nt{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return un.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new un(this.startLineNumber,this.startColumn,e,t):new un(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new Rt(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Rt(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new un(e,t,this.endLineNumber,this.endColumn):new un(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new un(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new un(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new un(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new un(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new un(e,t,n,i):new un(n,i,e,t)}}function mn(e){return"string"===typeof e}const fn=Object.create(null);function gn(e,t){if(mn(t)){const n=fn[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return fn[e]=t,{id:e}}const bn={...{add:gn("add",6e4),plus:gn("plus",6e4),gistNew:gn("gist-new",6e4),repoCreate:gn("repo-create",6e4),lightbulb:gn("lightbulb",60001),lightBulb:gn("light-bulb",60001),repo:gn("repo",60002),repoDelete:gn("repo-delete",60002),gistFork:gn("gist-fork",60003),repoForked:gn("repo-forked",60003),gitPullRequest:gn("git-pull-request",60004),gitPullRequestAbandoned:gn("git-pull-request-abandoned",60004),recordKeys:gn("record-keys",60005),keyboard:gn("keyboard",60005),tag:gn("tag",60006),gitPullRequestLabel:gn("git-pull-request-label",60006),tagAdd:gn("tag-add",60006),tagRemove:gn("tag-remove",60006),person:gn("person",60007),personFollow:gn("person-follow",60007),personOutline:gn("person-outline",60007),personFilled:gn("person-filled",60007),gitBranch:gn("git-branch",60008),gitBranchCreate:gn("git-branch-create",60008),gitBranchDelete:gn("git-branch-delete",60008),sourceControl:gn("source-control",60008),mirror:gn("mirror",60009),mirrorPublic:gn("mirror-public",60009),star:gn("star",60010),starAdd:gn("star-add",60010),starDelete:gn("star-delete",60010),starEmpty:gn("star-empty",60010),comment:gn("comment",60011),commentAdd:gn("comment-add",60011),alert:gn("alert",60012),warning:gn("warning",60012),search:gn("search",60013),searchSave:gn("search-save",60013),logOut:gn("log-out",60014),signOut:gn("sign-out",60014),logIn:gn("log-in",60015),signIn:gn("sign-in",60015),eye:gn("eye",60016),eyeUnwatch:gn("eye-unwatch",60016),eyeWatch:gn("eye-watch",60016),circleFilled:gn("circle-filled",60017),primitiveDot:gn("primitive-dot",60017),closeDirty:gn("close-dirty",60017),debugBreakpoint:gn("debug-breakpoint",60017),debugBreakpointDisabled:gn("debug-breakpoint-disabled",60017),debugHint:gn("debug-hint",60017),terminalDecorationSuccess:gn("terminal-decoration-success",60017),primitiveSquare:gn("primitive-square",60018),edit:gn("edit",60019),pencil:gn("pencil",60019),info:gn("info",60020),issueOpened:gn("issue-opened",60020),gistPrivate:gn("gist-private",60021),gitForkPrivate:gn("git-fork-private",60021),lock:gn("lock",60021),mirrorPrivate:gn("mirror-private",60021),close:gn("close",60022),removeClose:gn("remove-close",60022),x:gn("x",60022),repoSync:gn("repo-sync",60023),sync:gn("sync",60023),clone:gn("clone",60024),desktopDownload:gn("desktop-download",60024),beaker:gn("beaker",60025),microscope:gn("microscope",60025),vm:gn("vm",60026),deviceDesktop:gn("device-desktop",60026),file:gn("file",60027),fileText:gn("file-text",60027),more:gn("more",60028),ellipsis:gn("ellipsis",60028),kebabHorizontal:gn("kebab-horizontal",60028),mailReply:gn("mail-reply",60029),reply:gn("reply",60029),organization:gn("organization",60030),organizationFilled:gn("organization-filled",60030),organizationOutline:gn("organization-outline",60030),newFile:gn("new-file",60031),fileAdd:gn("file-add",60031),newFolder:gn("new-folder",60032),fileDirectoryCreate:gn("file-directory-create",60032),trash:gn("trash",60033),trashcan:gn("trashcan",60033),history:gn("history",60034),clock:gn("clock",60034),folder:gn("folder",60035),fileDirectory:gn("file-directory",60035),symbolFolder:gn("symbol-folder",60035),logoGithub:gn("logo-github",60036),markGithub:gn("mark-github",60036),github:gn("github",60036),terminal:gn("terminal",60037),console:gn("console",60037),repl:gn("repl",60037),zap:gn("zap",60038),symbolEvent:gn("symbol-event",60038),error:gn("error",60039),stop:gn("stop",60039),variable:gn("variable",60040),symbolVariable:gn("symbol-variable",60040),array:gn("array",60042),symbolArray:gn("symbol-array",60042),symbolModule:gn("symbol-module",60043),symbolPackage:gn("symbol-package",60043),symbolNamespace:gn("symbol-namespace",60043),symbolObject:gn("symbol-object",60043),symbolMethod:gn("symbol-method",60044),symbolFunction:gn("symbol-function",60044),symbolConstructor:gn("symbol-constructor",60044),symbolBoolean:gn("symbol-boolean",60047),symbolNull:gn("symbol-null",60047),symbolNumeric:gn("symbol-numeric",60048),symbolNumber:gn("symbol-number",60048),symbolStructure:gn("symbol-structure",60049),symbolStruct:gn("symbol-struct",60049),symbolParameter:gn("symbol-parameter",60050),symbolTypeParameter:gn("symbol-type-parameter",60050),symbolKey:gn("symbol-key",60051),symbolText:gn("symbol-text",60051),symbolReference:gn("symbol-reference",60052),goToFile:gn("go-to-file",60052),symbolEnum:gn("symbol-enum",60053),symbolValue:gn("symbol-value",60053),symbolRuler:gn("symbol-ruler",60054),symbolUnit:gn("symbol-unit",60054),activateBreakpoints:gn("activate-breakpoints",60055),archive:gn("archive",60056),arrowBoth:gn("arrow-both",60057),arrowDown:gn("arrow-down",60058),arrowLeft:gn("arrow-left",60059),arrowRight:gn("arrow-right",60060),arrowSmallDown:gn("arrow-small-down",60061),arrowSmallLeft:gn("arrow-small-left",60062),arrowSmallRight:gn("arrow-small-right",60063),arrowSmallUp:gn("arrow-small-up",60064),arrowUp:gn("arrow-up",60065),bell:gn("bell",60066),bold:gn("bold",60067),book:gn("book",60068),bookmark:gn("bookmark",60069),debugBreakpointConditionalUnverified:gn("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:gn("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:gn("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:gn("debug-breakpoint-data-unverified",60072),debugBreakpointData:gn("debug-breakpoint-data",60073),debugBreakpointDataDisabled:gn("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:gn("debug-breakpoint-log-unverified",60074),debugBreakpointLog:gn("debug-breakpoint-log",60075),debugBreakpointLogDisabled:gn("debug-breakpoint-log-disabled",60075),briefcase:gn("briefcase",60076),broadcast:gn("broadcast",60077),browser:gn("browser",60078),bug:gn("bug",60079),calendar:gn("calendar",60080),caseSensitive:gn("case-sensitive",60081),check:gn("check",60082),checklist:gn("checklist",60083),chevronDown:gn("chevron-down",60084),chevronLeft:gn("chevron-left",60085),chevronRight:gn("chevron-right",60086),chevronUp:gn("chevron-up",60087),chromeClose:gn("chrome-close",60088),chromeMaximize:gn("chrome-maximize",60089),chromeMinimize:gn("chrome-minimize",60090),chromeRestore:gn("chrome-restore",60091),circleOutline:gn("circle-outline",60092),circle:gn("circle",60092),debugBreakpointUnverified:gn("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:gn("terminal-decoration-incomplete",60092),circleSlash:gn("circle-slash",60093),circuitBoard:gn("circuit-board",60094),clearAll:gn("clear-all",60095),clippy:gn("clippy",60096),closeAll:gn("close-all",60097),cloudDownload:gn("cloud-download",60098),cloudUpload:gn("cloud-upload",60099),code:gn("code",60100),collapseAll:gn("collapse-all",60101),colorMode:gn("color-mode",60102),commentDiscussion:gn("comment-discussion",60103),creditCard:gn("credit-card",60105),dash:gn("dash",60108),dashboard:gn("dashboard",60109),database:gn("database",60110),debugContinue:gn("debug-continue",60111),debugDisconnect:gn("debug-disconnect",60112),debugPause:gn("debug-pause",60113),debugRestart:gn("debug-restart",60114),debugStart:gn("debug-start",60115),debugStepInto:gn("debug-step-into",60116),debugStepOut:gn("debug-step-out",60117),debugStepOver:gn("debug-step-over",60118),debugStop:gn("debug-stop",60119),debug:gn("debug",60120),deviceCameraVideo:gn("device-camera-video",60121),deviceCamera:gn("device-camera",60122),deviceMobile:gn("device-mobile",60123),diffAdded:gn("diff-added",60124),diffIgnored:gn("diff-ignored",60125),diffModified:gn("diff-modified",60126),diffRemoved:gn("diff-removed",60127),diffRenamed:gn("diff-renamed",60128),diff:gn("diff",60129),diffSidebyside:gn("diff-sidebyside",60129),discard:gn("discard",60130),editorLayout:gn("editor-layout",60131),emptyWindow:gn("empty-window",60132),exclude:gn("exclude",60133),extensions:gn("extensions",60134),eyeClosed:gn("eye-closed",60135),fileBinary:gn("file-binary",60136),fileCode:gn("file-code",60137),fileMedia:gn("file-media",60138),filePdf:gn("file-pdf",60139),fileSubmodule:gn("file-submodule",60140),fileSymlinkDirectory:gn("file-symlink-directory",60141),fileSymlinkFile:gn("file-symlink-file",60142),fileZip:gn("file-zip",60143),files:gn("files",60144),filter:gn("filter",60145),flame:gn("flame",60146),foldDown:gn("fold-down",60147),foldUp:gn("fold-up",60148),fold:gn("fold",60149),folderActive:gn("folder-active",60150),folderOpened:gn("folder-opened",60151),gear:gn("gear",60152),gift:gn("gift",60153),gistSecret:gn("gist-secret",60154),gist:gn("gist",60155),gitCommit:gn("git-commit",60156),gitCompare:gn("git-compare",60157),compareChanges:gn("compare-changes",60157),gitMerge:gn("git-merge",60158),githubAction:gn("github-action",60159),githubAlt:gn("github-alt",60160),globe:gn("globe",60161),grabber:gn("grabber",60162),graph:gn("graph",60163),gripper:gn("gripper",60164),heart:gn("heart",60165),home:gn("home",60166),horizontalRule:gn("horizontal-rule",60167),hubot:gn("hubot",60168),inbox:gn("inbox",60169),issueReopened:gn("issue-reopened",60171),issues:gn("issues",60172),italic:gn("italic",60173),jersey:gn("jersey",60174),json:gn("json",60175),kebabVertical:gn("kebab-vertical",60176),key:gn("key",60177),law:gn("law",60178),lightbulbAutofix:gn("lightbulb-autofix",60179),linkExternal:gn("link-external",60180),link:gn("link",60181),listOrdered:gn("list-ordered",60182),listUnordered:gn("list-unordered",60183),liveShare:gn("live-share",60184),loading:gn("loading",60185),location:gn("location",60186),mailRead:gn("mail-read",60187),mail:gn("mail",60188),markdown:gn("markdown",60189),megaphone:gn("megaphone",60190),mention:gn("mention",60191),milestone:gn("milestone",60192),gitPullRequestMilestone:gn("git-pull-request-milestone",60192),mortarBoard:gn("mortar-board",60193),move:gn("move",60194),multipleWindows:gn("multiple-windows",60195),mute:gn("mute",60196),noNewline:gn("no-newline",60197),note:gn("note",60198),octoface:gn("octoface",60199),openPreview:gn("open-preview",60200),package:gn("package",60201),paintcan:gn("paintcan",60202),pin:gn("pin",60203),play:gn("play",60204),run:gn("run",60204),plug:gn("plug",60205),preserveCase:gn("preserve-case",60206),preview:gn("preview",60207),project:gn("project",60208),pulse:gn("pulse",60209),question:gn("question",60210),quote:gn("quote",60211),radioTower:gn("radio-tower",60212),reactions:gn("reactions",60213),references:gn("references",60214),refresh:gn("refresh",60215),regex:gn("regex",60216),remoteExplorer:gn("remote-explorer",60217),remote:gn("remote",60218),remove:gn("remove",60219),replaceAll:gn("replace-all",60220),replace:gn("replace",60221),repoClone:gn("repo-clone",60222),repoForcePush:gn("repo-force-push",60223),repoPull:gn("repo-pull",60224),repoPush:gn("repo-push",60225),report:gn("report",60226),requestChanges:gn("request-changes",60227),rocket:gn("rocket",60228),rootFolderOpened:gn("root-folder-opened",60229),rootFolder:gn("root-folder",60230),rss:gn("rss",60231),ruby:gn("ruby",60232),saveAll:gn("save-all",60233),saveAs:gn("save-as",60234),save:gn("save",60235),screenFull:gn("screen-full",60236),screenNormal:gn("screen-normal",60237),searchStop:gn("search-stop",60238),server:gn("server",60240),settingsGear:gn("settings-gear",60241),settings:gn("settings",60242),shield:gn("shield",60243),smiley:gn("smiley",60244),sortPrecedence:gn("sort-precedence",60245),splitHorizontal:gn("split-horizontal",60246),splitVertical:gn("split-vertical",60247),squirrel:gn("squirrel",60248),starFull:gn("star-full",60249),starHalf:gn("star-half",60250),symbolClass:gn("symbol-class",60251),symbolColor:gn("symbol-color",60252),symbolConstant:gn("symbol-constant",60253),symbolEnumMember:gn("symbol-enum-member",60254),symbolField:gn("symbol-field",60255),symbolFile:gn("symbol-file",60256),symbolInterface:gn("symbol-interface",60257),symbolKeyword:gn("symbol-keyword",60258),symbolMisc:gn("symbol-misc",60259),symbolOperator:gn("symbol-operator",60260),symbolProperty:gn("symbol-property",60261),wrench:gn("wrench",60261),wrenchSubaction:gn("wrench-subaction",60261),symbolSnippet:gn("symbol-snippet",60262),tasklist:gn("tasklist",60263),telescope:gn("telescope",60264),textSize:gn("text-size",60265),threeBars:gn("three-bars",60266),thumbsdown:gn("thumbsdown",60267),thumbsup:gn("thumbsup",60268),tools:gn("tools",60269),triangleDown:gn("triangle-down",60270),triangleLeft:gn("triangle-left",60271),triangleRight:gn("triangle-right",60272),triangleUp:gn("triangle-up",60273),twitter:gn("twitter",60274),unfold:gn("unfold",60275),unlock:gn("unlock",60276),unmute:gn("unmute",60277),unverified:gn("unverified",60278),verified:gn("verified",60279),versions:gn("versions",60280),vmActive:gn("vm-active",60281),vmOutline:gn("vm-outline",60282),vmRunning:gn("vm-running",60283),watch:gn("watch",60284),whitespace:gn("whitespace",60285),wholeWord:gn("whole-word",60286),window:gn("window",60287),wordWrap:gn("word-wrap",60288),zoomIn:gn("zoom-in",60289),zoomOut:gn("zoom-out",60290),listFilter:gn("list-filter",60291),listFlat:gn("list-flat",60292),listSelection:gn("list-selection",60293),selection:gn("selection",60293),listTree:gn("list-tree",60294),debugBreakpointFunctionUnverified:gn("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:gn("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:gn("debug-breakpoint-function-disabled",60296),debugStackframeActive:gn("debug-stackframe-active",60297),circleSmallFilled:gn("circle-small-filled",60298),debugStackframeDot:gn("debug-stackframe-dot",60298),terminalDecorationMark:gn("terminal-decoration-mark",60298),debugStackframe:gn("debug-stackframe",60299),debugStackframeFocused:gn("debug-stackframe-focused",60299),debugBreakpointUnsupported:gn("debug-breakpoint-unsupported",60300),symbolString:gn("symbol-string",60301),debugReverseContinue:gn("debug-reverse-continue",60302),debugStepBack:gn("debug-step-back",60303),debugRestartFrame:gn("debug-restart-frame",60304),debugAlt:gn("debug-alt",60305),callIncoming:gn("call-incoming",60306),callOutgoing:gn("call-outgoing",60307),menu:gn("menu",60308),expandAll:gn("expand-all",60309),feedback:gn("feedback",60310),gitPullRequestReviewer:gn("git-pull-request-reviewer",60310),groupByRefType:gn("group-by-ref-type",60311),ungroupByRefType:gn("ungroup-by-ref-type",60312),account:gn("account",60313),gitPullRequestAssignee:gn("git-pull-request-assignee",60313),bellDot:gn("bell-dot",60314),debugConsole:gn("debug-console",60315),library:gn("library",60316),output:gn("output",60317),runAll:gn("run-all",60318),syncIgnored:gn("sync-ignored",60319),pinned:gn("pinned",60320),githubInverted:gn("github-inverted",60321),serverProcess:gn("server-process",60322),serverEnvironment:gn("server-environment",60323),pass:gn("pass",60324),issueClosed:gn("issue-closed",60324),stopCircle:gn("stop-circle",60325),playCircle:gn("play-circle",60326),record:gn("record",60327),debugAltSmall:gn("debug-alt-small",60328),vmConnect:gn("vm-connect",60329),cloud:gn("cloud",60330),merge:gn("merge",60331),export:gn("export",60332),graphLeft:gn("graph-left",60333),magnet:gn("magnet",60334),notebook:gn("notebook",60335),redo:gn("redo",60336),checkAll:gn("check-all",60337),pinnedDirty:gn("pinned-dirty",60338),passFilled:gn("pass-filled",60339),circleLargeFilled:gn("circle-large-filled",60340),circleLarge:gn("circle-large",60341),circleLargeOutline:gn("circle-large-outline",60341),combine:gn("combine",60342),gather:gn("gather",60342),table:gn("table",60343),variableGroup:gn("variable-group",60344),typeHierarchy:gn("type-hierarchy",60345),typeHierarchySub:gn("type-hierarchy-sub",60346),typeHierarchySuper:gn("type-hierarchy-super",60347),gitPullRequestCreate:gn("git-pull-request-create",60348),runAbove:gn("run-above",60349),runBelow:gn("run-below",60350),notebookTemplate:gn("notebook-template",60351),debugRerun:gn("debug-rerun",60352),workspaceTrusted:gn("workspace-trusted",60353),workspaceUntrusted:gn("workspace-untrusted",60354),workspaceUnknown:gn("workspace-unknown",60355),terminalCmd:gn("terminal-cmd",60356),terminalDebian:gn("terminal-debian",60357),terminalLinux:gn("terminal-linux",60358),terminalPowershell:gn("terminal-powershell",60359),terminalTmux:gn("terminal-tmux",60360),terminalUbuntu:gn("terminal-ubuntu",60361),terminalBash:gn("terminal-bash",60362),arrowSwap:gn("arrow-swap",60363),copy:gn("copy",60364),personAdd:gn("person-add",60365),filterFilled:gn("filter-filled",60366),wand:gn("wand",60367),debugLineByLine:gn("debug-line-by-line",60368),inspect:gn("inspect",60369),layers:gn("layers",60370),layersDot:gn("layers-dot",60371),layersActive:gn("layers-active",60372),compass:gn("compass",60373),compassDot:gn("compass-dot",60374),compassActive:gn("compass-active",60375),azure:gn("azure",60376),issueDraft:gn("issue-draft",60377),gitPullRequestClosed:gn("git-pull-request-closed",60378),gitPullRequestDraft:gn("git-pull-request-draft",60379),debugAll:gn("debug-all",60380),debugCoverage:gn("debug-coverage",60381),runErrors:gn("run-errors",60382),folderLibrary:gn("folder-library",60383),debugContinueSmall:gn("debug-continue-small",60384),beakerStop:gn("beaker-stop",60385),graphLine:gn("graph-line",60386),graphScatter:gn("graph-scatter",60387),pieChart:gn("pie-chart",60388),bracket:gn("bracket",60175),bracketDot:gn("bracket-dot",60389),bracketError:gn("bracket-error",60390),lockSmall:gn("lock-small",60391),azureDevops:gn("azure-devops",60392),verifiedFilled:gn("verified-filled",60393),newline:gn("newline",60394),layout:gn("layout",60395),layoutActivitybarLeft:gn("layout-activitybar-left",60396),layoutActivitybarRight:gn("layout-activitybar-right",60397),layoutPanelLeft:gn("layout-panel-left",60398),layoutPanelCenter:gn("layout-panel-center",60399),layoutPanelJustify:gn("layout-panel-justify",60400),layoutPanelRight:gn("layout-panel-right",60401),layoutPanel:gn("layout-panel",60402),layoutSidebarLeft:gn("layout-sidebar-left",60403),layoutSidebarRight:gn("layout-sidebar-right",60404),layoutStatusbar:gn("layout-statusbar",60405),layoutMenubar:gn("layout-menubar",60406),layoutCentered:gn("layout-centered",60407),target:gn("target",60408),indent:gn("indent",60409),recordSmall:gn("record-small",60410),errorSmall:gn("error-small",60411),terminalDecorationError:gn("terminal-decoration-error",60411),arrowCircleDown:gn("arrow-circle-down",60412),arrowCircleLeft:gn("arrow-circle-left",60413),arrowCircleRight:gn("arrow-circle-right",60414),arrowCircleUp:gn("arrow-circle-up",60415),layoutSidebarRightOff:gn("layout-sidebar-right-off",60416),layoutPanelOff:gn("layout-panel-off",60417),layoutSidebarLeftOff:gn("layout-sidebar-left-off",60418),blank:gn("blank",60419),heartFilled:gn("heart-filled",60420),map:gn("map",60421),mapHorizontal:gn("map-horizontal",60421),foldHorizontal:gn("fold-horizontal",60421),mapFilled:gn("map-filled",60422),mapHorizontalFilled:gn("map-horizontal-filled",60422),foldHorizontalFilled:gn("fold-horizontal-filled",60422),circleSmall:gn("circle-small",60423),bellSlash:gn("bell-slash",60424),bellSlashDot:gn("bell-slash-dot",60425),commentUnresolved:gn("comment-unresolved",60426),gitPullRequestGoToChanges:gn("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:gn("git-pull-request-new-changes",60428),searchFuzzy:gn("search-fuzzy",60429),commentDraft:gn("comment-draft",60430),send:gn("send",60431),sparkle:gn("sparkle",60432),insert:gn("insert",60433),mic:gn("mic",60434),thumbsdownFilled:gn("thumbsdown-filled",60435),thumbsupFilled:gn("thumbsup-filled",60436),coffee:gn("coffee",60437),snake:gn("snake",60438),game:gn("game",60439),vr:gn("vr",60440),chip:gn("chip",60441),piano:gn("piano",60442),music:gn("music",60443),micFilled:gn("mic-filled",60444),repoFetch:gn("repo-fetch",60445),copilot:gn("copilot",60446),lightbulbSparkle:gn("lightbulb-sparkle",60447),robot:gn("robot",60448),sparkleFilled:gn("sparkle-filled",60449),diffSingle:gn("diff-single",60450),diffMultiple:gn("diff-multiple",60451),surroundWith:gn("surround-with",60452),share:gn("share",60453),gitStash:gn("git-stash",60454),gitStashApply:gn("git-stash-apply",60455),gitStashPop:gn("git-stash-pop",60456),vscode:gn("vscode",60457),vscodeInsiders:gn("vscode-insiders",60458),codeOss:gn("code-oss",60459),runCoverage:gn("run-coverage",60460),runAllCoverage:gn("run-all-coverage",60461),coverage:gn("coverage",60462),githubProject:gn("github-project",60463),mapVertical:gn("map-vertical",60464),foldVertical:gn("fold-vertical",60464),mapVerticalFilled:gn("map-vertical-filled",60465),foldVerticalFilled:gn("fold-vertical-filled",60465)},...{dialogError:gn("dialog-error","error"),dialogWarning:gn("dialog-warning","warning"),dialogInfo:gn("dialog-info","info"),dialogClose:gn("dialog-close","close"),treeItemExpanded:gn("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:gn("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:gn("tree-filter-on-type-off","list-selection"),treeFilterClear:gn("tree-filter-clear","close"),treeItemLoading:gn("tree-item-loading","loading"),menuSelection:gn("menu-selection","check"),menuSubmenu:gn("menu-submenu","chevron-right"),menuBarMore:gn("menubar-more","more"),scrollbarButtonLeft:gn("scrollbar-button-left","triangle-left"),scrollbarButtonRight:gn("scrollbar-button-right","triangle-right"),scrollbarButtonUp:gn("scrollbar-button-up","triangle-up"),scrollbarButtonDown:gn("scrollbar-button-down","triangle-down"),toolBarMore:gn("toolbar-more","more"),quickInputBack:gn("quick-input-back","arrow-left"),dropDownButton:gn("drop-down-button",60084),symbolCustomColor:gn("symbol-customcolor",60252),exportIcon:gn("export",60332),workspaceUnspecified:gn("workspace-unspecified",60355),newLine:gn("newline",60394),thumbsDownFilled:gn("thumbsdown-filled",60435),thumbsUpFilled:gn("thumbsup-filled",60436),gitFetch:gn("git-fetch",60445),lightbulbSparkleAutofix:gn("lightbulb-sparkle-autofix",60447),debugBreakpointPending:gn("debug-breakpoint-pending",60377)}};class vn extends v{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class yn{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var wn,xn,Sn,Cn,_n;!function(e){const t=new Map;t.set(0,bn.symbolMethod),t.set(1,bn.symbolFunction),t.set(2,bn.symbolConstructor),t.set(3,bn.symbolField),t.set(4,bn.symbolVariable),t.set(5,bn.symbolClass),t.set(6,bn.symbolStruct),t.set(7,bn.symbolInterface),t.set(8,bn.symbolModule),t.set(9,bn.symbolProperty),t.set(10,bn.symbolEvent),t.set(11,bn.symbolOperator),t.set(12,bn.symbolUnit),t.set(13,bn.symbolValue),t.set(15,bn.symbolEnum),t.set(14,bn.symbolConstant),t.set(15,bn.symbolEnum),t.set(16,bn.symbolEnumMember),t.set(17,bn.symbolKeyword),t.set(27,bn.symbolSnippet),t.set(18,bn.symbolText),t.set(19,bn.symbolColor),t.set(20,bn.symbolFile),t.set(21,bn.symbolReference),t.set(22,bn.symbolCustomColor),t.set(23,bn.symbolFolder),t.set(24,bn.symbolTypeParameter),t.set(25,bn.account),t.set(26,bn.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=bn.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let i=n.get(e);return"undefined"!==typeof i||t||(i=9),i}}(wn||(wn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(xn||(xn={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(Sn||(Sn={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(Cn||(Cn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(_n||(_n={}));z(0,"array"),z(0,"boolean"),z(0,"class"),z(0,"constant"),z(0,"constructor"),z(0,"enumeration"),z(0,"enumeration member"),z(0,"event"),z(0,"field"),z(0,"file"),z(0,"function"),z(0,"interface"),z(0,"key"),z(0,"method"),z(0,"module"),z(0,"namespace"),z(0,"null"),z(0,"number"),z(0,"object"),z(0,"operator"),z(0,"package"),z(0,"property"),z(0,"string"),z(0,"struct"),z(0,"type parameter"),z(0,"variable");var kn,En,Rn,Nn;!function(e){const t=new Map;t.set(0,bn.symbolFile),t.set(1,bn.symbolModule),t.set(2,bn.symbolNamespace),t.set(3,bn.symbolPackage),t.set(4,bn.symbolClass),t.set(5,bn.symbolMethod),t.set(6,bn.symbolProperty),t.set(7,bn.symbolField),t.set(8,bn.symbolConstructor),t.set(9,bn.symbolEnum),t.set(10,bn.symbolInterface),t.set(11,bn.symbolFunction),t.set(12,bn.symbolVariable),t.set(13,bn.symbolConstant),t.set(14,bn.symbolString),t.set(15,bn.symbolNumber),t.set(16,bn.symbolBoolean),t.set(17,bn.symbolArray),t.set(18,bn.symbolObject),t.set(19,bn.symbolKey),t.set(20,bn.symbolNull),t.set(21,bn.symbolEnumMember),t.set(22,bn.symbolStruct),t.set(23,bn.symbolEvent),t.set(24,bn.symbolOperator),t.set(25,bn.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=bn.symbolProperty),n}}(kn||(kn={}));class Fn{static fromValue(e){switch(e){case"comment":return Fn.Comment;case"imports":return Fn.Imports;case"region":return Fn.Region}return new Fn(e)}constructor(e){this.value=e}}Fn.Comment=new Fn("comment"),Fn.Imports=new Fn("imports"),Fn.Region=new Fn("region"),function(e){e[e.AIGenerated=1]="AIGenerated"}(En||(En={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(Rn||(Rn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(Nn||(Nn={}));new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new F,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),g((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var n;null===(n=this._factories.get(e))||void 0===n||n.dispose();const i=new vn(this,e,t);return this._factories.set(e,i),g((()=>{const t=this._factories.get(e);t&&t===i&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};var Dn,Tn,An,Mn,zn,In,Ln,Pn,On,Wn,Un,Vn,Kn,qn,Bn,jn,$n,Hn,Gn,Jn,Xn,Yn,Qn,Zn,ei,ti,ni,ii,ri,oi,si,ai,li,ci,hi,di,pi,ui,mi,fi,gi,bi,vi,yi,wi,xi,Si;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Dn||(Dn={})),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(Tn||(Tn={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(An||(An={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(Mn||(Mn={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(zn||(zn={})),function(e){e[e.Deprecated=1]="Deprecated"}(In||(In={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(Ln||(Ln={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(Pn||(Pn={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(On||(On={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Wn||(Wn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Un||(Un={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(Vn||(Vn={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",e[e.quickSuggestions=89]="quickSuggestions",e[e.quickSuggestionsDelay=90]="quickSuggestionsDelay",e[e.readOnly=91]="readOnly",e[e.readOnlyMessage=92]="readOnlyMessage",e[e.renameOnType=93]="renameOnType",e[e.renderControlCharacters=94]="renderControlCharacters",e[e.renderFinalNewline=95]="renderFinalNewline",e[e.renderLineHighlight=96]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=98]="renderValidationDecorations",e[e.renderWhitespace=99]="renderWhitespace",e[e.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",e[e.roundedSelection=101]="roundedSelection",e[e.rulers=102]="rulers",e[e.scrollbar=103]="scrollbar",e[e.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=105]="scrollBeyondLastLine",e[e.scrollPredominantAxis=106]="scrollPredominantAxis",e[e.selectionClipboard=107]="selectionClipboard",e[e.selectionHighlight=108]="selectionHighlight",e[e.selectOnLineNumbers=109]="selectOnLineNumbers",e[e.showFoldingControls=110]="showFoldingControls",e[e.showUnused=111]="showUnused",e[e.snippetSuggestions=112]="snippetSuggestions",e[e.smartSelect=113]="smartSelect",e[e.smoothScrolling=114]="smoothScrolling",e[e.stickyScroll=115]="stickyScroll",e[e.stickyTabStops=116]="stickyTabStops",e[e.stopRenderingLineAfter=117]="stopRenderingLineAfter",e[e.suggest=118]="suggest",e[e.suggestFontSize=119]="suggestFontSize",e[e.suggestLineHeight=120]="suggestLineHeight",e[e.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",e[e.suggestSelection=122]="suggestSelection",e[e.tabCompletion=123]="tabCompletion",e[e.tabIndex=124]="tabIndex",e[e.unicodeHighlighting=125]="unicodeHighlighting",e[e.unusualLineTerminators=126]="unusualLineTerminators",e[e.useShadowDOM=127]="useShadowDOM",e[e.useTabStops=128]="useTabStops",e[e.wordBreak=129]="wordBreak",e[e.wordSegmenterLocales=130]="wordSegmenterLocales",e[e.wordSeparators=131]="wordSeparators",e[e.wordWrap=132]="wordWrap",e[e.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=135]="wordWrapColumn",e[e.wordWrapOverride1=136]="wordWrapOverride1",e[e.wordWrapOverride2=137]="wordWrapOverride2",e[e.wrappingIndent=138]="wrappingIndent",e[e.wrappingStrategy=139]="wrappingStrategy",e[e.showDeprecated=140]="showDeprecated",e[e.inlayHints=141]="inlayHints",e[e.editorClassName=142]="editorClassName",e[e.pixelRatio=143]="pixelRatio",e[e.tabFocusMode=144]="tabFocusMode",e[e.layoutInfo=145]="layoutInfo",e[e.wrappingInfo=146]="wrappingInfo",e[e.defaultColorDecorators=147]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"}(Kn||(Kn={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(qn||(qn={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(Bn||(Bn={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(jn||(jn={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}($n||($n={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Hn||(Hn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(Gn||(Gn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(Jn||(Jn={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Xn||(Xn={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(Yn||(Yn={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(Qn||(Qn={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(Zn||(Zn={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(ei||(ei={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(ti||(ti={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(ni||(ni={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(ii||(ii={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(ri||(ri={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(oi||(oi={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(si||(si={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(ai||(ai={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(li||(li={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(ci||(ci={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(hi||(hi={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(di||(di={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(pi||(pi={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(ui||(ui={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(mi||(mi={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(fi||(fi={})),function(e){e[e.Deprecated=1]="Deprecated"}(gi||(gi={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(bi||(bi={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(vi||(vi={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(yi||(yi={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(wi||(wi={}));class Ci{static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}Ci.CtrlCmd=2048,Ci.Shift=1024,Ci.Alt=512,Ci.WinCtrl=256;class _i{constructor(e,t){this.uri=e,this.value=t}}class ki{constructor(e,t){if(this[xi]="ResourceMap",e instanceof ki)this.map=new Map(e.map),this.toKey=null!==t&&void 0!==t?t:ki.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=null!==t&&void 0!==t?t:ki.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=null!==e&&void 0!==e?e:ki.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new _i(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(xi=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}ki.defaultToKey=e=>e.toString();class Ei{constructor(){this[Si]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(Si=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class Ri{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}new class extends Ei{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}(10);var Ni,Fi,Di;!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Ni||(Ni={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(Fi||(Fi={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Di||(Di={}));function Ti(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const o=t.charCodeAt(i-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const o=t.charCodeAt(i+r);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}class Ai{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const i=n.index,r=n[0].length;if(i===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){ge(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=r,!this._wordSeparators||Ti(this._wordSeparators,e,t,i,r))return n}while(n);return null}}function Mi(e,t="Unreachable"){throw new Error(t)}function zi(e){e()||(e(),t(new a("Assertion Failed")))}function Ii(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}class Li{static computeUnicodeHighlights(e,t,n){const i=n?n.startLineNumber:1,r=n?n.endLineNumber:e.getLineCount(),o=new Pi(t),s=o.getCandidateCodePoints();let a;a="allNonBasicAscii"===s?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+`[${de(Array.from(s).map((e=>String.fromCodePoint(e))).join(""))}]`,"g");const l=new Ai(null,a),c=[];let h,d=!1,p=0,u=0,m=0;e:for(let f=i,g=r;f<=g;f++){const t=e.getLineContent(f),n=t.length;l.reset(0);do{if(h=l.next(t),h){let e=h.index,i=h.index+h[0].length;if(e>0){ue(t.charCodeAt(e-1))&&e--}if(i+1<n){ue(t.charCodeAt(i-1))&&i++}const r=t.substring(e,i);let s=Vt(e+1,Ot,t,0);s&&s.endColumn<=e+1&&(s=null);const a=o.shouldHighlightNonBasicASCII(r,s?s.word:null);if(0!==a){3===a?p++:2===a?u++:1===a?m++:Mi();const t=1e3;if(c.length>=t){d=!0;break e}c.push(new Nt(f,e+1,f,i+1))}}}while(h)}return{ranges:c,hasMore:d,ambiguousCharacterCount:p,invisibleCharacterCount:u,nonBasicAsciiCharacterCount:m}}static computeUnicodeHighlightReason(e,t){const n=new Pi(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),r=n.ambiguousCharacters.getPrimaryConfusable(i),o=ye.getLocales().filter((e=>!ye.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i)));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class Pi{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=ye.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of we.codePoints)Oi(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const s of t){const e=s.codePointAt(0),t=(o=s,be.test(o));i=i||t,t||this.ambiguousCharacters.isAmbiguous(e)||we.isInvisibleCharacter(e)||(r=!0)}var o;return!i&&r?0:this.options.invisibleCharacters&&!Oi(e)&&we.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function Oi(e){return" "===e||"\n"===e||"\t"===e}class Wi{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class Ui{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}class Vi{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let i=n;for(;i<t.length&&t[i].start<=e.endExclusive;)i++;if(n===i)t.splice(n,0,e);else{const r=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[i-1].endExclusive);t.splice(n,i-n,new Vi(r,o))}}static tryCreate(e,t){if(!(e>t))return new Vi(e,t)}static ofLength(e){return new Vi(0,e)}static ofStartAndLength(e,t){return new Vi(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new a(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Vi(this.start+e,this.endExclusive+e)}deltaStart(e){return new Vi(this.start+e,this.endExclusive)}deltaEnd(e){return new Vi(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new Vi(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new Vi(t,n)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new a(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new a(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}function Ki(e,t){const n=qi(e,t);return-1===n?void 0:e[n]}function qi(e,t,n=0,i=e.length){let r=n,o=i;for(;r<o;){const n=Math.floor((r+o)/2);t(e[n])?r=n+1:o=n}return r-1}function Bi(e,t,n=0,i=e.length){let r=n,o=i;for(;r<o;){const n=Math.floor((r+o)/2);t(e[n])?o=n:r=n+1}return r}class ji{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(ji.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=qi(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}ji.assertInvariants=!1;class $i{static fromRangeInclusive(e){return new $i(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new Hi(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new Hi(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new a("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)t=Math.min(t,e[i].startLineNumber),n=Math.max(n,e[i].endLineNumberExclusive);return new $i(t,n)}static ofLength(e,t){return new $i(e,e+t)}static deserialize(e){return new $i(e[0],e[1])}constructor(e,t){if(e>t)throw new a(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new $i(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new $i(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new $i(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new $i(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Nt(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Nt(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new Vi(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class Hi{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=Bi(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=qi(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){const t=Ki(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=Ki(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,i=0,r=null;for(;n<this._normalizedRanges.length||i<e._normalizedRanges.length;){let o=null;if(n<this._normalizedRanges.length&&i<e._normalizedRanges.length){const t=this._normalizedRanges[n],r=e._normalizedRanges[i];t.startLineNumber<r.startLineNumber?(o=t,n++):(o=r,i++)}else n<this._normalizedRanges.length?(o=this._normalizedRanges[n],n++):(o=e._normalizedRanges[i],i++);null===r?r=o:r.endLineNumberExclusive>=o.startLineNumber?r=new $i(r.startLineNumber,Math.max(r.endLineNumberExclusive,o.endLineNumberExclusive)):(t.push(r),r=o)}return null!==r&&t.push(r),new Hi(t)}subtractFrom(e){const t=Bi(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=qi(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new Hi([e]);const i=[];let r=e.startLineNumber;for(let o=t;o<n;o++){const e=this._normalizedRanges[o];e.startLineNumber>r&&i.push(new $i(r,e.startLineNumber)),r=e.endLineNumberExclusive}return r<e.endLineNumberExclusive&&i.push(new $i(r,e.endLineNumberExclusive)),new Hi(i)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,i=0;for(;n<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const r=this._normalizedRanges[n],o=e._normalizedRanges[i],s=r.intersect(o);s&&!s.isEmpty&&t.push(s),r.endLineNumberExclusive<o.endLineNumberExclusive?n++:i++}return new Hi(t)}getWithDelta(e){return new Hi(this._normalizedRanges.map((t=>t.delta(e))))}}class Gi{static inverse(e,t,n){const i=[];let r=1,o=1;for(const a of e){const e=new Gi(new $i(r,a.original.startLineNumber),new $i(o,a.modified.startLineNumber));e.modified.isEmpty||i.push(e),r=a.original.endLineNumberExclusive,o=a.modified.endLineNumberExclusive}const s=new Gi(new $i(r,t+1),new $i(o,n+1));return s.modified.isEmpty||i.push(s),i}static clip(e,t,n){const i=[];for(const r of e){const e=r.original.intersect(t),o=r.modified.intersect(n);e&&!e.isEmpty&&o&&!o.isEmpty&&i.push(new Gi(e,o))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Gi(this.modified,this.original)}join(e){return new Gi(this.original.join(e.original),this.modified.join(e.modified))}}class Ji extends Gi{static fromRangeMappings(e){const t=$i.join(e.map((e=>$i.fromRangeInclusive(e.originalRange)))),n=$i.join(e.map((e=>$i.fromRangeInclusive(e.modifiedRange))));return new Ji(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){var e;return new Ji(this.modified,this.original,null===(e=this.innerChanges)||void 0===e?void 0:e.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new Ji(this.original,this.modified,[new Xi(this.original.toExclusiveRange(),this.modified.toExclusiveRange())])}}class Xi{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Xi(this.modifiedRange,this.originalRange)}}class Yi{computeDiff(e,t,n){var i;const r=new ir(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let s=null;for(const a of r.changes){let e,t;e=0===a.originalEndLineNumber?new $i(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new $i(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new $i(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new $i(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let n=new Ji(e,t,null===(i=a.charChanges)||void 0===i?void 0:i.map((e=>new Xi(new Nt(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new Nt(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modified.endLineNumberExclusive!==n.modified.startLineNumber&&s.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new Ji(s.original.join(n.original),s.modified.join(n.modified),s.innerChanges&&n.innerChanges?s.innerChanges.concat(n.innerChanges):void 0),o.pop())),o.push(n),s=n}return zi((()=>Ii(o,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new Wi(o,[],r.quitEarly)}}function Qi(e,t,n,i){return new je(e,t,n).ComputeDiff(i)}class Zi{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=rr(e[i],1),n[i]=or(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const i=[],r=[],o=[];let s=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:t.length+1;for(let e=l;e<c;e++)i[s]=t.charCodeAt(e-1),r[s]=a+1,o[s]=e,s++;!e&&a<n&&(i[s]=10,r[s]=a+1,o[s]=t.length+1,s++)}return new er(i,r,o)}}class er{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class tr{constructor(e,t,n,i,r,o,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=o,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),s=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new tr(i,r,o,s,a,l,c,h)}}class nr{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,o,s){let a,l,c,h,d;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=i.getStartLineNumber(t.modifiedStart)-1,h=0):(c=i.getStartLineNumber(t.modifiedStart),h=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const o=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(o.getElements().length>0&&a.getElements().length>0){let e=Qi(o,a,r,!0).changes;s&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],o=r.originalStart-(n.originalStart+n.originalLength),s=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(o,s)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(e)),d=[];for(let t=0,n=e.length;t<n;t++)d.push(tr.createFromDiffChange(e[t],o,a))}}return new nr(a,l,c,h,d)}}class ir{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new Zi(e),this.modified=new Zi(t),this.continueLineDiff=sr(n.maxComputationTime),this.continueCharDiff=sr(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=Qi(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(nr.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,o=0;for(let s=-1,a=t.length;s<a;s++){const e=s+1<a?t[s+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;r<n&&o<l;){const e=this.originalLines[r],t=this.modifiedLines[o];if(e!==t){{let n=rr(e,1),s=rr(t,1);for(;n>1&&s>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(s-2))break;n--,s--}(n>1||s>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,o+1,1,s)}{let n=or(e,1),s=or(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&s<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(s-1))break;n++,s++}(n<a||s<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,o+1,s,l)}}r++,o++}e&&(i.push(nr.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=e.originalLength,o+=e.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,o,s){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,o,s))return;let a;this.shouldComputeCharChanges&&(a=[new tr(t,n,t,i,r,o,r,s)]),e.push(new nr(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,o,s){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===r?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new tr(t,n,t,i,r,o,r,s)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new tr(t,n,t,i,r,o,r,s)),!0))}}function rr(e,t){const n=function(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}(e);return-1===n?t:n+1}function or(e,t){const n=function(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===n?t:n+2}function sr(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}class ar{static trivial(e,t){return new ar([new lr(Vi.ofLength(e.length),Vi.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new ar([new lr(Vi.ofLength(e.length),Vi.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class lr{static invert(e,t){const n=[];return function(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}(e,((e,i)=>{n.push(lr.fromOffsetPairs(e?e.getEndExclusives():cr.zero,i?i.getStarts():new cr(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new lr(new Vi(e.offset1,t.offset1),new Vi(e.offset2,t.offset2))}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new lr(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new lr(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new lr(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new lr(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new lr(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new lr(t,n)}getStarts(){return new cr(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new cr(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class cr{constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new cr(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}cr.zero=new cr(0,0),cr.max=new cr(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class hr{isValid(){return!0}}hr.instance=new hr;class dr{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new a("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class pr{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}}function ur(e){return 32===e||9===e}class mr{static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let i=0;for(let r=e.startLineNumber-1;r<e.endLineNumberExclusive-1;r++){const e=t[r];for(let t=0;t<e.length;t++){i++;const n=e[t],r=mr.getKey(n);this.histogram[r]=(this.histogram[r]||0)+1}i++;const n=mr.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=i}computeSimilarity(e){var t,n;let i=0;const r=Math.max(this.histogram.length,e.histogram.length);for(let o=0;o<r;o++)i+=Math.abs((null!==(t=this.histogram[o])&&void 0!==t?t:0)-(null!==(n=e.histogram[o])&&void 0!==n?n:0));return 1-i/(this.totalCount+e.totalCount)}}mr.chrKeys=new Map;class fr{compute(e,t,n=hr.instance,i){if(0===e.length||0===t.length)return ar.trivial(e,t);const r=new pr(e.length,t.length),o=new pr(e.length,t.length),s=new pr(e.length,t.length);for(let u=0;u<e.length;u++)for(let a=0;a<t.length;a++){if(!n.isValid())return ar.trivialTimedOut(e,t);const l=0===u?0:r.get(u-1,a),c=0===a?0:r.get(u,a-1);let h;e.getElement(u)===t.getElement(a)?(h=0===u||0===a?0:r.get(u-1,a-1),u>0&&a>0&&3===o.get(u-1,a-1)&&(h+=s.get(u-1,a-1)),h+=i?i(u,a):1):h=-1;const d=Math.max(l,c,h);if(d===h){const e=u>0&&a>0?s.get(u-1,a-1):0;s.set(u,a,e+1),o.set(u,a,3)}else d===l?(s.set(u,a,0),o.set(u,a,1)):d===c&&(s.set(u,a,0),o.set(u,a,2));r.set(u,a,d)}const a=[];let l=e.length,c=t.length;function h(e,t){e+1===l&&t+1===c||a.push(new lr(new Vi(e+1,l),new Vi(t+1,c))),l=e,c=t}let d=e.length-1,p=t.length-1;for(;d>=0&&p>=0;)3===o.get(d,p)?(h(d,p),d--,p--):1===o.get(d,p)?d--:p--;return h(-1,-1),a.reverse(),new ar(a,!1)}}class gr{compute(e,t,n=hr.instance){if(0===e.length||0===t.length)return ar.trivial(e,t);const i=e,r=t;function o(e,t){for(;e<i.length&&t<r.length&&i.getElement(e)===r.getElement(t);)e++,t++;return e}let s=0;const a=new vr;a.set(0,o(0,0));const l=new yr;l.set(0,0===a.get(0)?null:new br(null,0,0,a.get(0)));let c=0;e:for(;;){if(s++,!n.isValid())return ar.trivialTimedOut(i,r);const e=-Math.min(s,r.length+s%2),t=Math.min(s,i.length+s%2);for(c=e;c<=t;c+=2){let n=0;const s=c===t?-1:a.get(c+1),h=c===e?-1:a.get(c-1)+1;n++;const d=Math.min(Math.max(s,h),i.length),p=d-c;if(n++,d>i.length||p>r.length)continue;const u=o(d,p);a.set(c,u);const m=d===s?l.get(c+1):l.get(c-1);if(l.set(c,u!==d?new br(m,d,p,u-d):m),a.get(c)===i.length&&a.get(c)-c===r.length)break e}}let h=l.get(c);const d=[];let p=i.length,u=r.length;for(;;){const e=h?h.x+h.length:0,t=h?h.y+h.length:0;if(e===p&&t===u||d.push(new lr(new Vi(e,p),new Vi(t,u))),!h)break;p=h.x,u=h.y,h=h.prev}return d.reverse(),new ar(d,!1)}}class br{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class vr{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class yr{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class wr{constructor(e,t,n){this.lines=e,this.considerWhitespaceChanges=n,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let i=!1;t.start>0&&t.endExclusive>=e.length&&(t=new Vi(t.start-1,t.endExclusive),i=!0),this.lineRange=t,this.firstCharOffsetByLine[0]=0;for(let r=this.lineRange.start;r<this.lineRange.endExclusive;r++){let t=e[r],o=0;if(i)o=t.length,t="",i=!1;else if(!n){const e=t.trimStart();o=t.length-e.length,t=e.trimEnd()}this.additionalOffsetByLine.push(o);for(let e=0;e<t.length;e++)this.elements.push(t.charCodeAt(e));r<e.length-1&&(this.elements.push("\n".charCodeAt(0)),this.firstCharOffsetByLine[r-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Vi(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=_r(e>0?this.elements[e-1]:-1),n=_r(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let i=0;return t!==n&&(i+=10,0===t&&1===n&&(i+=1)),i+=Cr(t),i+=Cr(n),i}translateOffset(e){if(this.lineRange.isEmpty)return new Rt(this.lineRange.start+1,1);const t=qi(this.firstCharOffsetByLine,(t=>t<=e));return new Rt(this.lineRange.start+t+1,e-this.firstCharOffsetByLine[t]+this.additionalOffsetByLine[t]+1)}translateRange(e){return Nt.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!xr(this.elements[e]))return;let t=e;for(;t>0&&xr(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&xr(this.elements[n]);)n++;return new Vi(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){var t,n;const i=null!==(t=Ki(this.firstCharOffsetByLine,(t=>t<=e.start)))&&void 0!==t?t:0,r=null!==(n=function(e,t){const n=Bi(e,t);return n===e.length?void 0:e[n]}(this.firstCharOffsetByLine,(t=>e.endExclusive<=t)))&&void 0!==n?n:this.elements.length;return new Vi(i,r)}}function xr(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const Sr={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Cr(e){return Sr[e]}function _r(e){return 10===e?8:13===e?7:ur(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function kr(e,t,n,i,r,o){let{moves:s,excludedChanges:a}=function(e,t,n,i){const r=[],o=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new mr(e.original,t,e))),s=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new mr(e.modified,n,e)))),a=new Set;for(const l of o){let e,t=-1;for(const n of s){const i=l.computeSimilarity(n);i>t&&(t=i,e=n)}if(t>.9&&e&&(s.delete(e),r.push(new Gi(l.range,e.range)),a.add(l.source),a.add(e.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}(e,t,n,o);if(!o.isValid())return[];const l=function(e,t,n,i,r,o){const s=[],a=new Ri;for(const u of e)for(let e=u.original.startLineNumber;e<u.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new $i(e,e+3)})}const l=[];e.sort(Dt((e=>e.modified.startLineNumber),Tt));for(const u of e){let e=[];for(let t=u.modified.startLineNumber;t<u.modified.endLineNumberExclusive-2;t++){const i=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,r=new $i(t,t+3),o=[];a.forEach(i,(({range:t})=>{for(const i of e)if(i.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&i.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return i.originalLineRange=new $i(i.originalLineRange.startLineNumber,t.endLineNumberExclusive),i.modifiedLineRange=new $i(i.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void o.push(i);const n={modifiedLineRange:r,originalLineRange:t};l.push(n),o.push(n)})),e=o}if(!o.isValid())return[]}l.sort((c=Dt((e=>e.modifiedLineRange.length),Tt),(e,t)=>-c(e,t)));var c;const h=new Hi,d=new Hi;for(const u of l){const e=u.modifiedLineRange.startLineNumber-u.originalLineRange.startLineNumber,t=h.subtractFrom(u.modifiedLineRange),n=d.subtractFrom(u.originalLineRange).getWithDelta(e),i=t.getIntersection(n);for(const r of i.ranges){if(r.length<3)continue;const t=r,n=r.delta(-e);s.push(new Gi(n,t)),h.addRange(t),d.addRange(n)}}s.sort(Dt((e=>e.original.startLineNumber),Tt));const p=new ji(e);for(let u=0;u<s.length;u++){const t=s[u],n=p.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=Ki(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),c=p.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=Ki(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),f=Math.max(c.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let g,b;for(g=0;g<l;g++){const e=t.original.startLineNumber-g-1,n=t.modified.startLineNumber-g-1;if(e>i.length||n>r.length)break;if(h.contains(n)||d.contains(e))break;if(!Er(i[e-1],r[n-1],o))break}for(g>0&&(d.addRange(new $i(t.original.startLineNumber-g,t.original.startLineNumber)),h.addRange(new $i(t.modified.startLineNumber-g,t.modified.startLineNumber))),b=0;b<f;b++){const e=t.original.endLineNumberExclusive+b,n=t.modified.endLineNumberExclusive+b;if(e>i.length||n>r.length)break;if(h.contains(n)||d.contains(e))break;if(!Er(i[e-1],r[n-1],o))break}b>0&&(d.addRange(new $i(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+b)),h.addRange(new $i(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+b))),(g>0||b>0)&&(s[u]=new Gi(new $i(t.original.startLineNumber-g,t.original.endLineNumberExclusive+b),new $i(t.modified.startLineNumber-g,t.modified.endLineNumberExclusive+b)))}return s}(e.filter((e=>!a.has(e))),i,r,t,n,o);return function(e,t){for(const n of t)e.push(n)}(s,l),s=function(e){if(0===e.length)return e;e.sort(Dt((e=>e.original.startLineNumber),Tt));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],o=r.original.startLineNumber-i.original.endLineNumberExclusive,s=r.modified.startLineNumber-i.modified.endLineNumberExclusive;o>=0&&s>=0&&o+s<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(s),s=s.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const i of e)t(i)&&n++;return n}(n,(e=>e.length>=2))>=2})),s=function(e,t){const n=new ji(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new Gi(new $i(1,1),new $i(1,1)))!==Ki(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,s),s}function Er(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=(new gr).compute(new wr([e],new Vi(0,1),!1),new wr([t],new Vi(0,1),!1),n);let r=0;const o=lr.invert(i.diffs,e.length);for(const a of o)a.seq1Range.forEach((t=>{ur(e.charCodeAt(t))||r++}));const s=function(t){let n=0;for(let i=0;i<e.length;i++)ur(t.charCodeAt(i))||n++;return n}(e.length>t.length?e:t);return r/s>.6&&s>10}function Rr(e,t,n){let i=n;return i=Nr(e,t,i),i=Nr(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,o=n[i],s=i+1<n.length?n[i+1]:void 0,a=new Vi(r?r.seq1Range.endExclusive+1:0,s?s.seq1Range.start-1:e.length),l=new Vi(r?r.seq2Range.endExclusive+1:0,s?s.seq2Range.start-1:t.length);o.seq1Range.isEmpty?n[i]=Fr(o,e,t,a,l):o.seq2Range.isEmpty&&(n[i]=Fr(o.swap(),t,e,l,a).swap())}return n}(e,t,i),i}function Nr(e,t,n){if(0===n.length)return n;const i=[];i.push(n[0]);for(let o=1;o<n.length;o++){const r=i[i.length-1];let s=n[o];if(s.seq1Range.isEmpty||s.seq2Range.isEmpty){const n=s.seq1Range.start-r.seq1Range.endExclusive;let o;for(o=1;o<=n&&(e.getElement(s.seq1Range.start-o)===e.getElement(s.seq1Range.endExclusive-o)&&t.getElement(s.seq2Range.start-o)===t.getElement(s.seq2Range.endExclusive-o));o++);if(o--,o===n){i[i.length-1]=new lr(new Vi(r.seq1Range.start,s.seq1Range.endExclusive-n),new Vi(r.seq2Range.start,s.seq2Range.endExclusive-n));continue}s=s.delta(-o)}i.push(s)}const r=[];for(let o=0;o<i.length-1;o++){const n=i[o+1];let s=i[o];if(s.seq1Range.isEmpty||s.seq2Range.isEmpty){const r=n.seq1Range.start-s.seq1Range.endExclusive;let a;for(a=0;a<r&&(e.isStronglyEqual(s.seq1Range.start+a,s.seq1Range.endExclusive+a)&&t.isStronglyEqual(s.seq2Range.start+a,s.seq2Range.endExclusive+a));a++);if(a===r){i[o+1]=new lr(new Vi(s.seq1Range.start+r,n.seq1Range.endExclusive),new Vi(s.seq2Range.start+r,n.seq2Range.endExclusive));continue}a>0&&(s=s.delta(a))}r.push(s)}return i.length>0&&r.push(i[i.length-1]),r}function Fr(e,t,n,i,r){let o=1;for(;e.seq1Range.start-o>=i.start&&e.seq2Range.start-o>=r.start&&n.isStronglyEqual(e.seq2Range.start-o,e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let s=0;for(;e.seq1Range.start+s<i.endExclusive&&e.seq2Range.endExclusive+s<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+s,e.seq2Range.endExclusive+s)&&s<100;)s++;if(0===o&&0===s)return e;let a=0,l=-1;for(let c=-o;c<=s;c++){const i=e.seq2Range.start+c,r=e.seq2Range.endExclusive+c,o=e.seq1Range.start+c,s=t.getBoundaryScore(o)+n.getBoundaryScore(i)+n.getBoundaryScore(r);s>l&&(l=s,a=c)}return e.delta(a)}class Dr{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:Tr(this.lines[e-1]))+(e===this.lines.length?0:Tr(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function Tr(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class Ar{constructor(){this.dynamicProgrammingDiffing=new fr,this.myersDiffingAlgorithm=new gr}computeDiff(e,t,n){if(e.length<=1&&function(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}(e,t,((e,t)=>e===t)))return new Wi([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new Wi([new Ji(new $i(1,e.length+1),new $i(1,t.length+1),[new Xi(new Nt(1,1,e.length,e[0].length+1),new Nt(1,1,t.length,t[0].length+1))])],[],!1);const i=0===n.maxComputationTimeMs?hr.instance:new dr(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,o=new Map;function s(e){let t=o.get(e);return void 0===t&&(t=o.size,o.set(e,t)),t}const a=e.map((e=>s(e.trim()))),l=t.map((e=>s(e.trim()))),c=new Dr(a,e),h=new Dr(l,t),d=(()=>c.length+h.length<1700?this.dynamicProgrammingDiffing.compute(c,h,i,((n,i)=>e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99)):this.myersDiffingAlgorithm.compute(c,h))();let p=d.diffs,u=d.hitTimeout;p=Rr(c,h,p),p=function(e,t,n){let i=n;if(0===i.length)return i;let r,o=0;do{r=!1;const s=[i[0]];for(let a=1;a<i.length;a++){const l=i[a],c=s[s.length-1];function h(t,n){const i=new Vi(c.seq1Range.endExclusive,l.seq1Range.start);return e.getText(i).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}h(c,l)?(r=!0,s[s.length-1]=s[s.length-1].join(l)):s.push(l)}i=s}while(o++<10&&r);return i}(c,0,p);const m=[],f=n=>{if(r)for(let o=0;o<n;o++){const n=g+o,s=b+o;if(e[n]!==t[s]){const o=this.refineDiff(e,t,new lr(new Vi(n,n+1),new Vi(s,s+1)),i,r);for(const e of o.mappings)m.push(e);o.hitTimeout&&(u=!0)}}};let g=0,b=0;for(const w of p){zi((()=>w.seq1Range.start-g===w.seq2Range.start-b));f(w.seq1Range.start-g),g=w.seq1Range.endExclusive,b=w.seq2Range.endExclusive;const n=this.refineDiff(e,t,w,i,r);n.hitTimeout&&(u=!0);for(const e of n.mappings)m.push(e)}f(e.length-g);const v=Mr(m,e,t);let y=[];return n.computeMoves&&(y=this.computeMoves(v,e,t,a,l,i,r)),zi((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function i(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const r of v){if(!r.innerChanges)return!1;for(const i of r.innerChanges){if(!(n(i.modifiedRange.getStartPosition(),t)&&n(i.modifiedRange.getEndPosition(),t)&&n(i.originalRange.getStartPosition(),e)&&n(i.originalRange.getEndPosition(),e)))return!1}if(!i(r.modified,t)||!i(r.original,e))return!1}return!0})),new Wi(v,y,u)}computeMoves(e,t,n,i,r,o,s){return kr(e,t,n,i,r,o).map((e=>{const i=Mr(this.refineDiff(t,n,new lr(e.original.toOffsetRange(),e.modified.toOffsetRange()),o,s).mappings,t,n,!0);return new Ui(e,i)}))}refineDiff(e,t,n,i,r){const o=new wr(e,n.seq1Range,r),s=new wr(t,n.seq2Range,r),a=o.length+s.length<500?this.dynamicProgrammingDiffing.compute(o,s,i):this.myersDiffingAlgorithm.compute(o,s,i);let l=a.diffs;l=Rr(o,s,l),l=function(e,t,n){const i=lr.invert(n,e.length),r=[];let o=new cr(0,0);function s(n,s){if(n.offset1<o.offset1||n.offset2<o.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let c=new lr(a,l);const h=c.intersect(s);let d=h.seq1Range.length,p=h.seq2Range.length;for(;i.length>0;){const n=i[0];if(!n.seq1Range.intersects(c.seq1Range)&&!n.seq2Range.intersects(c.seq2Range))break;const r=e.findWordContaining(n.seq1Range.start),o=t.findWordContaining(n.seq2Range.start),s=new lr(r,o),a=s.intersect(n);if(d+=a.seq1Range.length,p+=a.seq2Range.length,c=c.join(s),!(c.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;i.shift()}d+p<2*(c.seq1Range.length+c.seq2Range.length)/3&&r.push(c),o=c.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(s(e.getStarts(),e),s(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let o;o=i&&(!r||i.seq1Range.start<r.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=o.seq1Range.start?n[n.length-1]=n[n.length-1].join(o):n.push(o)}return n}(n,r)}(o,s,l),l=function(e,t,n){const i=[];for(const r of n){const e=i[i.length-1];e&&(r.seq1Range.start-e.seq1Range.endExclusive<=2||r.seq2Range.start-e.seq2Range.endExclusive<=2)?i[i.length-1]=new lr(e.seq1Range.join(r.seq1Range),e.seq2Range.join(r.seq2Range)):i.push(r)}return i}(0,0,l),l=function(e,t,n){let i=n;if(0===i.length)return i;let r,o=0;do{r=!1;const a=[i[0]];for(let l=1;l<i.length;l++){const c=i[l],h=a[a.length-1];function d(n,i){const r=new Vi(h.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const o=e.getText(r).trim();if(o.length>20||o.split(/\r\n|\r|\n/).length>1)return!1;const s=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,p=e.countLinesIn(i.seq1Range),u=i.seq1Range.length,m=t.countLinesIn(i.seq2Range),f=i.seq2Range.length;function g(e){return Math.min(e,130)}return Math.pow(Math.pow(g(40*s+a),1.5)+Math.pow(g(40*l+d),1.5),1.5)+Math.pow(Math.pow(g(40*p+u),1.5)+Math.pow(g(40*m+f),1.5),1.5)>74184.96480721243}d(h,c)?(r=!0,a[a.length-1]=a[a.length-1].join(c)):a.push(c)}i=a}while(o++<10&&r);const s=[];return function(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}(i,((t,n,i)=>{let r=n;function o(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new Vi(a.start,n.seq1Range.start));o(l)&&(r=r.deltaStart(-l.length));const c=e.getText(new Vi(n.seq1Range.endExclusive,a.endExclusive));o(c)&&(r=r.deltaEnd(c.length));const h=lr.fromOffsetPairs(t?t.getEndExclusives():cr.zero,i?i.getStarts():cr.max),d=r.intersect(h);s.length>0&&d.getStarts().equals(s[s.length-1].getEndExclusives())?s[s.length-1]=s[s.length-1].join(d):s.push(d)})),s}(o,s,l);return{mappings:l.map((e=>new Xi(o.translateRange(e.seq1Range),s.translateRange(e.seq2Range)))),hitTimeout:a.hitTimeout}}}function Mr(e,t,n,i=!1){const r=[];for(const o of function*(e,t){let n,i;for(const r of e)void 0!==i&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}(e.map((e=>function(e,t,n){let i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const o=new $i(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),s=new $i(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new Ji(o,s,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=o[0],t=o[o.length-1];r.push(new Ji(e.original.join(t.original),e.modified.join(t.modified),o.map((e=>e.innerChanges[0]))))}return zi((()=>{if(!i&&r.length>0){if(r[0].modified.startLineNumber!==r[0].original.startLineNumber)return!1;if(n.length-r[r.length-1].modified.endLineNumberExclusive!==t.length-r[r.length-1].original.endLineNumberExclusive)return!1}return Ii(r,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),r}const zr=()=>new Yi,Ir=()=>new Ar;function Lr(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class Pr{constructor(e,t,n,i=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=Lr(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class Or{constructor(e,t,n,i){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Lr(Math.max(Math.min(1,t),0),3),this.l=Lr(Math.max(Math.min(1,n),0),3),this.a=Lr(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,o=Math.max(t,n,i),s=Math.min(t,n,i);let a=0,l=0;const c=(s+o)/2,h=o-s;if(h>0){switch(l=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),o){case t:a=(n-i)/h+(n<i?6:0);break;case n:a=(i-t)/h+2;break;case i:a=(t-n)/h+4}a*=60,a=Math.round(a)}return new Or(a,l,c,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:r}=e;let o,s,a;if(0===n)o=s=a=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;o=Or._hue2rgb(r,e,t+1/3),s=Or._hue2rgb(r,e,t),a=Or._hue2rgb(r,e,t-1/3)}return new Pr(Math.round(255*o),Math.round(255*s),Math.round(255*a),r)}}class Wr{constructor(e,t,n,i){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Lr(Math.max(Math.min(1,t),0),3),this.v=Lr(Math.max(Math.min(1,n),0),3),this.a=Lr(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),o=r-Math.min(t,n,i),s=0===r?0:o/r;let a;return a=0===o?0:r===t?((n-i)/o%6+6)%6:r===n?(i-t)/o+2:(t-n)/o+4,new Wr(Math.round(60*a),s,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:r}=e,o=i*n,s=o*(1-Math.abs(t/60%2-1)),a=i-o;let[l,c,h]=[0,0,0];return t<60?(l=o,c=s):t<120?(l=s,c=o):t<180?(c=o,h=s):t<240?(c=s,h=o):t<300?(l=s,h=o):t<=360&&(l=o,h=s),l=Math.round(255*(l+a)),c=Math.round(255*(c+a)),h=Math.round(255*(h+a)),new Pr(l,c,h,r)}}class Ur{static fromHex(e){return Ur.Format.CSS.parseHex(e)||Ur.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:Or.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Wr.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof Pr)this.rgba=e;else if(e instanceof Or)this._hsla=e,this.rgba=Or.toRGBA(e);else{if(!(e instanceof Wr))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=Wr.toRGBA(e)}}equals(e){return!!e&&Pr.equals(this.rgba,e.rgba)&&Or.equals(this.hsla,e.hsla)&&Wr.equals(this.hsva,e.hsva)}getRelativeLuminance(){return Lr(.2126*Ur._relativeLuminanceForComponent(this.rgba.r)+.7152*Ur._relativeLuminanceForComponent(this.rgba.g)+.0722*Ur._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new Ur(new Or(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new Ur(new Or(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:r}=this.rgba;return new Ur(new Pr(t,n,i,r*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new Ur(new Pr(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:i,a:r}=this.rgba;return new Ur(new Pr(e.rgba.r-r*(e.rgba.r-t),e.rgba.g-r*(e.rgba.g-n),e.rgba.b-r*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=Ur.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}}function Vr(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Kr(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function qr(e,t){const n=t.index,i=t[0].length;if(!n)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Br(e,t){if(!e)return;const n=Ur.Format.CSS.parseHex(t);return n?{range:e,color:Kr(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function jr(e,t,n){if(!e||1!==t.length)return;const i=Vr(t[0].values());return{range:e,color:Kr(i[0],i[1],i[2],n?i[3]:1)}}function $r(e,t,n){if(!e||1!==t.length)return;const i=Vr(t[0].values()),r=new Ur(new Or(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:Kr(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function Hr(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function Gr(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Hr(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(const i of n){const n=i.filter((e=>void 0!==e)),r=n[1],o=n[2];if(!o)continue;let s;if("rgb"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;s=jr(qr(e,i),Hr(o,t),!1)}else if("rgba"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;s=jr(qr(e,i),Hr(o,t),!0)}else if("hsl"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;s=$r(qr(e,i),Hr(o,t),!1)}else if("hsla"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;s=$r(qr(e,i),Hr(o,t),!0)}else"#"===r&&(s=Br(qr(e,i),r+o));s&&t.push(s)}return t}(e):[]}Ur.white=new Ur(new Pr(255,255,255,1)),Ur.black=new Ur(new Pr(0,0,0,1)),Ur.red=new Ur(new Pr(255,0,0,1)),Ur.blue=new Ur(new Pr(0,0,255,1)),Ur.green=new Ur(new Pr(0,255,0,1)),Ur.cyan=new Ur(new Pr(0,255,255,1)),Ur.lightgrey=new Ur(new Pr(211,211,211,1)),Ur.transparent=new Ur(new Pr(0,0,0,0)),function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function i(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),r=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new Pr(n,r,o,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),r=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),s=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new Pr(n,r,o,s/255))}if(4===n){const n=i(t.charCodeAt(1)),r=i(t.charCodeAt(2)),o=i(t.charCodeAt(3));return new e(new Pr(16*n+n,16*r+r,16*o+o))}if(5===n){const n=i(t.charCodeAt(1)),r=i(t.charCodeAt(2)),o=i(t.charCodeAt(3)),s=i(t.charCodeAt(4));return new e(new Pr(16*n+n,16*r+r,16*o+o,(16*s+s)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(Ur||(Ur={}));const Jr=/\bMARK:\s*(.*)$/d,Xr=/^-+|-+$/g;function Yr(e,t){var n;let i=[];if(t.findRegionSectionHeaders&&(null===(n=t.foldingRules)||void 0===n?void 0:n.markers)){const n=function(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const i=e.getLineContent(r),o=i.match(t.foldingRules.markers.start);if(o){const e={startLineNumber:r,startColumn:o[0].length+1,endLineNumber:r,endColumn:i.length+1};if(e.endColumn>e.startColumn){const t={range:e,...Zr(i.substring(o[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);i=i.concat(n)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++){Qr(e.getLineContent(i),i,t)}return t}(e);i=i.concat(t)}return i}function Qr(e,t,n){Jr.lastIndex=0;const i=Jr.exec(e);if(i){const e={startLineNumber:t,startColumn:i.indices[1][0]+1,endLineNumber:t,endColumn:i.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...Zr(i[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function Zr(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(Xr,""),hasSeparatorLine:t}}class eo extends Pt{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const i=this._lines[n],r=this.offsetAt(new Rt(n+1,1)),o=i.matchAll(e);for(const e of o)(e.index||0===e.index)&&(e.index=e.index+r),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=Vt(e.column,Wt(t),this._lines[e.lineNumber-1],0);return n?new Nt(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",o=0,s=[];return{*[Symbol.iterator](){for(;;)if(o<s.length){const e=r.substring(s[o].start,s[o].end);o+=1,yield e}else{if(!(i<t.length))break;r=t[i],s=n(r,e),o=0,i+=1}}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const o of i)r.push({word:n.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let o=n+1;o<i;o++)r.push(this._lines[o]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!Rt.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}class to{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new eo(gt.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,t,n){const i=this._getModel(e);return i?Li.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,t){const n=this._getModel(e);return n?Yr(n,t):[]}async computeDiff(e,t,n,i){const r=this._getModel(e),o=this._getModel(t);if(!r||!o)return null;return to.computeDiff(r,o,n,i)}static computeDiff(e,t,n,i){const r="advanced"===i?Ir():zr(),o=e.getLinesContent(),s=t.getLinesContent(),a=r.computeDiff(o,s,n);function l(e){return e.map((e=>{var t;return[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]}))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}async computeMoreMinimalEdits(e,t,n){const i=this._getModel(e);if(!i)return t;const r=[];let o;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return Nt.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let s=0;for(let a=1;a<t.length;a++)Nt.getEndPosition(t[s].range).equals(Nt.getStartPosition(t[a].range))?(t[s].range=Nt.fromPositions(Nt.getStartPosition(t[s].range),Nt.getEndPosition(t[a].range)),t[s].text+=t[a].text):(s++,t[s]=t[a]);t.length=s+1;for(let{range:a,text:l,eol:c}of t){if("number"===typeof c&&(o=c),Nt.isEmpty(a)&&!l)continue;const e=i.getValueInRange(a);if(l=l.replace(/\r\n|\n|\r/g,i.eol),e===l)continue;if(Math.max(l.length,e.length)>to._diffLimit){r.push({range:a,text:l});continue}const t=Ve(e,l,n),s=i.offsetAt(Nt.lift(a).getStartPosition());for(const n of t){const e=i.positionAt(s+n.originalStart),t=i.positionAt(s+n.originalStart+n.originalLength),o={text:l.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};i.getValueInRange(o.range)!==o.text&&r.push(o)}}return"number"===typeof o&&r.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}async computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?Gt.computeLinks(e):[]}(t):null}async computeDefaultDocumentColors(e){const t=this._getModel(e);return t?Gr(t):null}async textualSuggest(e,t,n,i){const r=new S,o=new RegExp(n,i),s=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(o))if(n!==t&&isNaN(Number(n))&&(s.add(n),s.size>to._suggestionsLimit))break e}return{words:Array.from(s),duration:r.elapsed()}}async computeWordRanges(e,t,n,i){const r=this._getModel(e);if(!r)return Object.create(null);const o=new RegExp(n,i),s=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=r.getLineWords(a,o);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=s[t.word];e||(e=[],s[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return s}async navigateValueSet(e,t,n,i,r){const o=this._getModel(e);if(!o)return null;const s=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=o.getValueInRange(t),l=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s);if(!l)return null;const c=o.getValueInRange(l);return Jt.INSTANCE.navigateValueSet(t,a,l,c,n)}loadForeignModule(e,t,n){const i=function(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i={};for(const r of e)i[r]=n(r);return i}(n,((e,t)=>this._host.fhr(e,t))),r={host:i,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve(T(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(gu){return Promise.reject(gu)}}}to._diffLimit=1e5,to._suggestionsLimit=1e4,"function"===typeof importScripts&&(globalThis.monaco={editor:void 0,languages:void 0,CancellationTokenSource:Zt,Emitter:F,KeyCode:Yn,KeyMod:Ci,Position:Rt,Range:Nt,Selection:un,SelectionDirection:pi,MarkerSeverity:Qn,MarkerTag:Zn,Uri:gt,Token:yn});let no=!1;function io(e){if(no)return;no=!0;const t=new Ae((e=>{globalThis.postMessage(e)}),(t=>new to(t,e)));globalThis.onmessage=e=>{t.onmessage(e.data)}}var ro,oo;globalThis.onmessage=e=>{no||io(null)},(oo=ro||(ro={}))[oo.Ident=0]="Ident",oo[oo.AtKeyword=1]="AtKeyword",oo[oo.String=2]="String",oo[oo.BadString=3]="BadString",oo[oo.UnquotedString=4]="UnquotedString",oo[oo.Hash=5]="Hash",oo[oo.Num=6]="Num",oo[oo.Percentage=7]="Percentage",oo[oo.Dimension=8]="Dimension",oo[oo.UnicodeRange=9]="UnicodeRange",oo[oo.CDO=10]="CDO",oo[oo.CDC=11]="CDC",oo[oo.Colon=12]="Colon",oo[oo.SemiColon=13]="SemiColon",oo[oo.CurlyL=14]="CurlyL",oo[oo.CurlyR=15]="CurlyR",oo[oo.ParenthesisL=16]="ParenthesisL",oo[oo.ParenthesisR=17]="ParenthesisR",oo[oo.BracketL=18]="BracketL",oo[oo.BracketR=19]="BracketR",oo[oo.Whitespace=20]="Whitespace",oo[oo.Includes=21]="Includes",oo[oo.Dashmatch=22]="Dashmatch",oo[oo.SubstringOperator=23]="SubstringOperator",oo[oo.PrefixOperator=24]="PrefixOperator",oo[oo.SuffixOperator=25]="SuffixOperator",oo[oo.Delim=26]="Delim",oo[oo.EMS=27]="EMS",oo[oo.EXS=28]="EXS",oo[oo.Length=29]="Length",oo[oo.Angle=30]="Angle",oo[oo.Time=31]="Time",oo[oo.Freq=32]="Freq",oo[oo.Exclamation=33]="Exclamation",oo[oo.Resolution=34]="Resolution",oo[oo.Comma=35]="Comma",oo[oo.Charset=36]="Charset",oo[oo.EscapedJavaScript=37]="EscapedJavaScript",oo[oo.BadEscapedJavaScript=38]="BadEscapedJavaScript",oo[oo.Comment=39]="Comment",oo[oo.SingleLineComment=40]="SingleLineComment",oo[oo.EOF=41]="EOF",oo[oo.CustomToken=42]="CustomToken";var so=function(){function e(e){this.source=e,this.len=e.length,this.position=0}return e.prototype.substring=function(e,t){return void 0===t&&(t=this.position),this.source.substring(e,t)},e.prototype.eos=function(){return this.len<=this.position},e.prototype.pos=function(){return this.position},e.prototype.goBackTo=function(e){this.position=e},e.prototype.goBack=function(e){this.position-=e},e.prototype.advance=function(e){this.position+=e},e.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.source.charCodeAt(this.position+e)||0},e.prototype.lookbackChar=function(e){return void 0===e&&(e=0),this.source.charCodeAt(this.position-e)||0},e.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)},e.prototype.advanceIfChars=function(e){if(this.position+e.length>this.source.length)return!1;for(var t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0},e.prototype.advanceWhileChar=function(e){for(var t=this.position;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t},e}(),ao="a".charCodeAt(0),lo="f".charCodeAt(0),co="z".charCodeAt(0),ho=("u".charCodeAt(0),"A".charCodeAt(0)),po="F".charCodeAt(0),uo="Z".charCodeAt(0),mo="0".charCodeAt(0),fo="9".charCodeAt(0),go="~".charCodeAt(0),bo="^".charCodeAt(0),vo="=".charCodeAt(0),yo="|".charCodeAt(0),wo="-".charCodeAt(0),xo="_".charCodeAt(0),So="%".charCodeAt(0),Co="*".charCodeAt(0),_o="(".charCodeAt(0),ko=")".charCodeAt(0),Eo="<".charCodeAt(0),Ro=">".charCodeAt(0),No="@".charCodeAt(0),Fo="#".charCodeAt(0),Do="$".charCodeAt(0),To="\\".charCodeAt(0),Ao="/".charCodeAt(0),Mo="\n".charCodeAt(0),zo="\r".charCodeAt(0),Io="\f".charCodeAt(0),Lo='"'.charCodeAt(0),Po="'".charCodeAt(0),Oo=" ".charCodeAt(0),Wo="\t".charCodeAt(0),Uo=";".charCodeAt(0),Vo=":".charCodeAt(0),Ko="{".charCodeAt(0),qo="}".charCodeAt(0),Bo="[".charCodeAt(0),jo="]".charCodeAt(0),$o=",".charCodeAt(0),Ho=".".charCodeAt(0),Go="!".charCodeAt(0),Jo="?".charCodeAt(0),Xo="+".charCodeAt(0),Yo={};Yo[Uo]=ro.SemiColon,Yo[Vo]=ro.Colon,Yo[Ko]=ro.CurlyL,Yo[qo]=ro.CurlyR,Yo[jo]=ro.BracketR,Yo[Bo]=ro.BracketL,Yo[_o]=ro.ParenthesisL,Yo[ko]=ro.ParenthesisR,Yo[$o]=ro.Comma;var Qo={};Qo.em=ro.EMS,Qo.ex=ro.EXS,Qo.px=ro.Length,Qo.cm=ro.Length,Qo.mm=ro.Length,Qo.in=ro.Length,Qo.pt=ro.Length,Qo.pc=ro.Length,Qo.deg=ro.Angle,Qo.rad=ro.Angle,Qo.grad=ro.Angle,Qo.ms=ro.Time,Qo.s=ro.Time,Qo.hz=ro.Freq,Qo.khz=ro.Freq,Qo["%"]=ro.Percentage,Qo.fr=ro.Percentage,Qo.dpi=ro.Resolution,Qo.dpcm=ro.Resolution;var Zo=function(){function e(){this.stream=new so(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}return e.prototype.setSource=function(e){this.stream=new so(e)},e.prototype.finishToken=function(e,t,n){return{offset:e,len:this.stream.pos()-e,type:t,text:n||this.stream.substring(e)}},e.prototype.substring=function(e,t){return this.stream.substring(e,e+t)},e.prototype.pos=function(){return this.stream.pos()},e.prototype.goBackTo=function(e){this.stream.goBackTo(e)},e.prototype.scanUnquotedString=function(){var e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,ro.UnquotedString,t.join("")):null},e.prototype.scan=function(){var e=this.trivia();if(null!==e)return e;var t=this.stream.pos();return this.stream.eos()?this.finishToken(t,ro.EOF):this.scanNext(t)},e.prototype.tryScanUnicode=function(){var e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,ro.UnicodeRange);this.stream.goBackTo(e)},e.prototype.scanNext=function(e){if(this.stream.advanceIfChars([Eo,Go,wo,wo]))return this.finishToken(e,ro.CDO);if(this.stream.advanceIfChars([wo,wo,Ro]))return this.finishToken(e,ro.CDC);var t=[];if(this.ident(t))return this.finishToken(e,ro.Ident,t.join(""));if(this.stream.advanceIfChar(No)){if(t=["@"],this._name(t)){var n=t.join("");return"@charset"===n?this.finishToken(e,ro.Charset,n):this.finishToken(e,ro.AtKeyword,n)}return this.finishToken(e,ro.Delim)}if(this.stream.advanceIfChar(Fo))return t=["#"],this._name(t)?this.finishToken(e,ro.Hash,t.join("")):this.finishToken(e,ro.Delim);if(this.stream.advanceIfChar(Go))return this.finishToken(e,ro.Exclamation);if(this._number()){var i=this.stream.pos();if(t=[this.stream.substring(e,i)],this.stream.advanceIfChar(So))return this.finishToken(e,ro.Percentage);if(this.ident(t)){var r=this.stream.substring(i).toLowerCase(),o=Qo[r];return"undefined"!==typeof o?this.finishToken(e,o,t.join("")):this.finishToken(e,ro.Dimension,t.join(""))}return this.finishToken(e,ro.Num)}t=[];var s=this._string(t);return null!==s?this.finishToken(e,s,t.join("")):"undefined"!==typeof(s=Yo[this.stream.peekChar()])?(this.stream.advance(1),this.finishToken(e,s)):this.stream.peekChar(0)===go&&this.stream.peekChar(1)===vo?(this.stream.advance(2),this.finishToken(e,ro.Includes)):this.stream.peekChar(0)===yo&&this.stream.peekChar(1)===vo?(this.stream.advance(2),this.finishToken(e,ro.Dashmatch)):this.stream.peekChar(0)===Co&&this.stream.peekChar(1)===vo?(this.stream.advance(2),this.finishToken(e,ro.SubstringOperator)):this.stream.peekChar(0)===bo&&this.stream.peekChar(1)===vo?(this.stream.advance(2),this.finishToken(e,ro.PrefixOperator)):this.stream.peekChar(0)===Do&&this.stream.peekChar(1)===vo?(this.stream.advance(2),this.finishToken(e,ro.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,ro.Delim))},e.prototype.trivia=function(){for(;;){var e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,ro.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(e,ro.Comment)}}},e.prototype.comment=function(){if(this.stream.advanceIfChars([Ao,Co])){var e=!1,t=!1;return this.stream.advanceWhileChar((function(n){return t&&n===Ao?(e=!0,!1):(t=n===Co,!0)})),e&&this.stream.advance(1),!0}return!1},e.prototype._number=function(){var e,t=0;return this.stream.peekChar()===Ho&&(t=1),(e=this.stream.peekChar(t))>=mo&&e<=fo&&(this.stream.advance(t+1),this.stream.advanceWhileChar((function(e){return e>=mo&&e<=fo||0===t&&e===Ho})),!0)},e.prototype._newline=function(e){var t=this.stream.peekChar();switch(t){case zo:case Io:case Mo:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===zo&&this.stream.advanceIfChar(Mo)&&e.push("\n"),!0}return!1},e.prototype._escape=function(e,t){var n=this.stream.peekChar();if(n===To){this.stream.advance(1),n=this.stream.peekChar();for(var i=0;i<6&&(n>=mo&&n<=fo||n>=ao&&n<=lo||n>=ho&&n<=po);)this.stream.advance(1),n=this.stream.peekChar(),i++;if(i>0){try{var r=parseInt(this.stream.substring(this.stream.pos()-i),16);r&&e.push(String.fromCharCode(r))}catch(gu){}return n===Oo||n===Wo?this.stream.advance(1):this._newline([]),!0}if(n!==zo&&n!==Io&&n!==Mo)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1},e.prototype._stringChar=function(e,t){var n=this.stream.peekChar();return 0!==n&&n!==e&&n!==To&&n!==zo&&n!==Io&&n!==Mo&&(this.stream.advance(1),t.push(String.fromCharCode(n)),!0)},e.prototype._string=function(e){if(this.stream.peekChar()===Po||this.stream.peekChar()===Lo){var t=this.stream.nextChar();for(e.push(String.fromCharCode(t));this._stringChar(t,e)||this._escape(e,!0););return this.stream.peekChar()===t?(this.stream.nextChar(),e.push(String.fromCharCode(t)),ro.String):ro.BadString}return null},e.prototype._unquotedChar=function(e){var t=this.stream.peekChar();return 0!==t&&t!==To&&t!==Po&&t!==Lo&&t!==_o&&t!==ko&&t!==Oo&&t!==Wo&&t!==Mo&&t!==Io&&t!==zo&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e.prototype._unquotedString=function(e){for(var t=!1;this._unquotedChar(e)||this._escape(e);)t=!0;return t},e.prototype._whitespace=function(){return this.stream.advanceWhileChar((function(e){return e===Oo||e===Wo||e===Mo||e===Io||e===zo}))>0},e.prototype._name=function(e){for(var t=!1;this._identChar(e)||this._escape(e);)t=!0;return t},e.prototype.ident=function(e){var t=this.stream.pos();if(this._minus(e)){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(t),!1},e.prototype._identFirstChar=function(e){var t=this.stream.peekChar();return(t===xo||t>=ao&&t<=co||t>=ho&&t<=uo||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e.prototype._minus=function(e){var t=this.stream.peekChar();return t===wo&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e.prototype._identChar=function(e){var t=this.stream.peekChar();return(t===xo||t===wo||t>=ao&&t<=co||t>=ho&&t<=uo||t>=mo&&t<=fo||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e.prototype._unicodeRange=function(){if(this.stream.advanceIfChar(Xo)){var e=function(e){return e>=mo&&e<=fo||e>=ao&&e<=lo||e>=ho&&e<=po},t=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar((function(e){return e===Jo}));if(t>=1&&t<=6){if(!this.stream.advanceIfChar(wo))return!0;var n=this.stream.advanceWhileChar(e);if(n>=1&&n<=6)return!0}}return!1},e}();function es(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function ts(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function ns(e,t){return void 0===t&&(t=!0),e?e.length<140?e:e.slice(0,140)+(t?"\u2026":""):""}function is(e,t){for(var n="";t>0;)1===(1&t)&&(n+=e),e+=e,t>>>=1;return n}var rs,os,ss,as,ls=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function cs(e,t){var n=null;return!e||t<e.offset||t>e.end?null:(e.accept((function(e){return-1===e.offset&&-1===e.length||e.offset<=t&&e.end>=t&&(n?e.length<=n.length&&(n=e):n=e,!0)})),n)}function hs(e,t){for(var n=cs(e,t),i=[];n;)i.unshift(n),n=n.parent;return i}(os=rs||(rs={}))[os.Undefined=0]="Undefined",os[os.Identifier=1]="Identifier",os[os.Stylesheet=2]="Stylesheet",os[os.Ruleset=3]="Ruleset",os[os.Selector=4]="Selector",os[os.SimpleSelector=5]="SimpleSelector",os[os.SelectorInterpolation=6]="SelectorInterpolation",os[os.SelectorCombinator=7]="SelectorCombinator",os[os.SelectorCombinatorParent=8]="SelectorCombinatorParent",os[os.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",os[os.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",os[os.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",os[os.Page=12]="Page",os[os.PageBoxMarginBox=13]="PageBoxMarginBox",os[os.ClassSelector=14]="ClassSelector",os[os.IdentifierSelector=15]="IdentifierSelector",os[os.ElementNameSelector=16]="ElementNameSelector",os[os.PseudoSelector=17]="PseudoSelector",os[os.AttributeSelector=18]="AttributeSelector",os[os.Declaration=19]="Declaration",os[os.Declarations=20]="Declarations",os[os.Property=21]="Property",os[os.Expression=22]="Expression",os[os.BinaryExpression=23]="BinaryExpression",os[os.Term=24]="Term",os[os.Operator=25]="Operator",os[os.Value=26]="Value",os[os.StringLiteral=27]="StringLiteral",os[os.URILiteral=28]="URILiteral",os[os.EscapedValue=29]="EscapedValue",os[os.Function=30]="Function",os[os.NumericValue=31]="NumericValue",os[os.HexColorValue=32]="HexColorValue",os[os.RatioValue=33]="RatioValue",os[os.MixinDeclaration=34]="MixinDeclaration",os[os.MixinReference=35]="MixinReference",os[os.VariableName=36]="VariableName",os[os.VariableDeclaration=37]="VariableDeclaration",os[os.Prio=38]="Prio",os[os.Interpolation=39]="Interpolation",os[os.NestedProperties=40]="NestedProperties",os[os.ExtendsReference=41]="ExtendsReference",os[os.SelectorPlaceholder=42]="SelectorPlaceholder",os[os.Debug=43]="Debug",os[os.If=44]="If",os[os.Else=45]="Else",os[os.For=46]="For",os[os.Each=47]="Each",os[os.While=48]="While",os[os.MixinContentReference=49]="MixinContentReference",os[os.MixinContentDeclaration=50]="MixinContentDeclaration",os[os.Media=51]="Media",os[os.Keyframe=52]="Keyframe",os[os.FontFace=53]="FontFace",os[os.Import=54]="Import",os[os.Namespace=55]="Namespace",os[os.Invocation=56]="Invocation",os[os.FunctionDeclaration=57]="FunctionDeclaration",os[os.ReturnStatement=58]="ReturnStatement",os[os.MediaQuery=59]="MediaQuery",os[os.MediaCondition=60]="MediaCondition",os[os.MediaFeature=61]="MediaFeature",os[os.FunctionParameter=62]="FunctionParameter",os[os.FunctionArgument=63]="FunctionArgument",os[os.KeyframeSelector=64]="KeyframeSelector",os[os.ViewPort=65]="ViewPort",os[os.Document=66]="Document",os[os.AtApplyRule=67]="AtApplyRule",os[os.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",os[os.CustomPropertySet=69]="CustomPropertySet",os[os.ListEntry=70]="ListEntry",os[os.Supports=71]="Supports",os[os.SupportsCondition=72]="SupportsCondition",os[os.NamespacePrefix=73]="NamespacePrefix",os[os.GridLine=74]="GridLine",os[os.Plugin=75]="Plugin",os[os.UnknownAtRule=76]="UnknownAtRule",os[os.Use=77]="Use",os[os.ModuleConfiguration=78]="ModuleConfiguration",os[os.Forward=79]="Forward",os[os.ForwardVisibility=80]="ForwardVisibility",os[os.Module=81]="Module",os[os.UnicodeRange=82]="UnicodeRange",(as=ss||(ss={}))[as.Mixin=0]="Mixin",as[as.Rule=1]="Rule",as[as.Variable=2]="Variable",as[as.Function=3]="Function",as[as.Keyframe=4]="Keyframe",as[as.Unknown=5]="Unknown",as[as.Module=6]="Module",as[as.Forward=7]="Forward",as[as.ForwardVisibility=8]="ForwardVisibility";var ds,ps,us=function(){function e(e,t,n){void 0===e&&(e=-1),void 0===t&&(t=-1),this.parent=null,this.offset=e,this.length=t,n&&(this.nodeType=n)}return Object.defineProperty(e.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.nodeType||rs.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),e.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},e.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},e.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},e.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},e.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},e.prototype.accept=function(e){if(e(this)&&this.children)for(var t=0,n=this.children;t<n.length;t++){n[t].accept(e)}},e.prototype.acceptVisitor=function(e){this.accept(e.visitNode.bind(e))},e.prototype.adoptChild=function(e,t){if(void 0===t&&(t=-1),e.parent&&e.parent.children){var n=e.parent.children.indexOf(e);n>=0&&e.parent.children.splice(n,1)}e.parent=this;var i=this.children;return i||(i=this.children=[]),-1!==t?i.splice(t,0,e):i.push(e),e},e.prototype.attachTo=function(e,t){return void 0===t&&(t=-1),e&&e.adoptChild(this,t),this},e.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},e.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},e.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some((function(t){return t.getRule()===e}))},e.prototype.isErroneous=function(e){return void 0===e&&(e=!1),!!(this.issues&&this.issues.length>0)||e&&Array.isArray(this.children)&&this.children.some((function(e){return e.isErroneous(!0)}))},e.prototype.setNode=function(e,t,n){return void 0===n&&(n=-1),!!t&&(t.attachTo(this,n),this[e]=t,!0)},e.prototype.addChild=function(e){return!!e&&(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0)},e.prototype.updateOffsetAndLength=function(e){(e.offset<this.offset||-1===this.offset)&&(this.offset=e.offset);var t=e.end;(t>this.end||-1===this.length)&&(this.length=t-this.offset)},e.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},e.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},e.prototype.getChild=function(e){return this.children&&e<this.children.length?this.children[e]:null},e.prototype.addChildren=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];this.addChild(i)}},e.prototype.findFirstChildBeforeOffset=function(e){if(this.children)for(var t=null,n=this.children.length-1;n>=0;n--)if((t=this.children[n]).offset<=e)return t;return null},e.prototype.findChildAtOffset=function(e,t){var n=this.findFirstChildBeforeOffset(e);return n&&n.end>=e?t&&n.findChildAtOffset(e,!0)||n:null},e.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},e.prototype.getParent=function(){for(var e=this.parent;e instanceof ms;)e=e.parent;return e},e.prototype.findParent=function(e){for(var t=this;t&&t.type!==e;)t=t.parent;return t},e.prototype.findAParent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=this;n&&!e.some((function(e){return n.type===e}));)n=n.parent;return n},e.prototype.setData=function(e,t){this.options||(this.options={}),this.options[e]=t},e.prototype.getData=function(e){return this.options&&this.options.hasOwnProperty(e)?this.options[e]:null},e}(),ms=function(e){function t(t,n){void 0===n&&(n=-1);var i=e.call(this,-1,-1)||this;return i.attachTo(t,n),i.offset=-1,i.length=-1,i}return ls(t,e),t}(us),fs=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.UnicodeRange},enumerable:!1,configurable:!0}),t.prototype.setRangeStart=function(e){return this.setNode("rangeStart",e)},t.prototype.getRangeStart=function(){return this.rangeStart},t.prototype.setRangeEnd=function(e){return this.setNode("rangeEnd",e)},t.prototype.getRangeEnd=function(){return this.rangeEnd},t}(us),gs=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.isCustomProperty=!1,i}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Identifier},enumerable:!1,configurable:!0}),t.prototype.containsInterpolation=function(){return this.hasChildren()},t}(us),bs=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Stylesheet},enumerable:!1,configurable:!0}),t}(us),vs=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Declarations},enumerable:!1,configurable:!0}),t}(us),ys=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),t.prototype.getDeclarations=function(){return this.declarations},t.prototype.setDeclarations=function(e){return this.setNode("declarations",e)},t}(us),ws=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Ruleset},enumerable:!1,configurable:!0}),t.prototype.getSelectors=function(){return this.selectors||(this.selectors=new ms(this)),this.selectors},t.prototype.isNested=function(){return!!this.parent&&null!==this.parent.findParent(rs.Declarations)},t}(ys),xs=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Selector},enumerable:!1,configurable:!0}),t}(us),Ss=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.SimpleSelector},enumerable:!1,configurable:!0}),t}(us),Cs=(function(e){function t(t,n){return e.call(this,t,n)||this}ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.AtApplyRule},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""}}(us),function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),t}(us)),_s=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.CustomPropertySet},enumerable:!1,configurable:!0}),t}(ys),ks=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.property=null,i}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Declaration},enumerable:!1,configurable:!0}),t.prototype.setProperty=function(e){return this.setNode("property",e)},t.prototype.getProperty=function(){return this.property},t.prototype.getFullPropertyName=function(){var e=this.property?this.property.getName():"unknown";if(this.parent instanceof vs&&this.parent.getParent()instanceof Ws){var n=this.parent.getParent().getParent();if(n instanceof t)return n.getFullPropertyName()+e}return e},t.prototype.getNonPrefixedPropertyName=function(){var e=this.getFullPropertyName();if(e&&"-"===e.charAt(0)){var t=e.indexOf("-",1);if(-1!==t)return e.substring(t+1)}return e},t.prototype.setValue=function(e){return this.setNode("value",e)},t.prototype.getValue=function(){return this.value},t.prototype.setNestedProperties=function(e){return this.setNode("nestedProperties",e)},t.prototype.getNestedProperties=function(){return this.nestedProperties},t}(Cs),Es=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.CustomPropertyDeclaration},enumerable:!1,configurable:!0}),t.prototype.setPropertySet=function(e){return this.setNode("propertySet",e)},t.prototype.getPropertySet=function(){return this.propertySet},t}(ks),Rs=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Property},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return function(e,t){var n=t.exec(e);return n&&n[0].length?e.substr(0,e.length-n[0].length):e}(this.getText(),/[_\+]+$/)},t.prototype.isCustomProperty=function(){return!!this.identifier&&this.identifier.isCustomProperty},t}(us),Ns=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Function},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t}(function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Invocation},enumerable:!1,configurable:!0}),t.prototype.getArguments=function(){return this.arguments||(this.arguments=new ms(this)),this.arguments},t}(us)),Fs=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.FunctionParameter},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.setDefaultValue=function(e){return this.setNode("defaultValue",e,0)},t.prototype.getDefaultValue=function(){return this.defaultValue},t}(us),Ds=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.FunctionArgument},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.setValue=function(e){return this.setNode("value",e,0)},t.prototype.getValue=function(){return this.value},t}(us),Ts=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.If},enumerable:!1,configurable:!0}),t.prototype.setExpression=function(e){return this.setNode("expression",e,0)},t.prototype.setElseClause=function(e){return this.setNode("elseClause",e)},t}(ys),As=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.For},enumerable:!1,configurable:!0}),t.prototype.setVariable=function(e){return this.setNode("variable",e,0)},t}(ys),Ms=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Each},enumerable:!1,configurable:!0}),t.prototype.getVariables=function(){return this.variables||(this.variables=new ms(this)),this.variables},t}(ys),zs=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.While},enumerable:!1,configurable:!0}),t}(ys),Is=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Else},enumerable:!1,configurable:!0}),t}(ys),Ls=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.FunctionDeclaration},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.getParameters=function(){return this.parameters||(this.parameters=new ms(this)),this.parameters},t}(ys),Ps=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.ViewPort},enumerable:!1,configurable:!0}),t}(ys),Os=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.FontFace},enumerable:!1,configurable:!0}),t}(ys),Ws=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.NestedProperties},enumerable:!1,configurable:!0}),t}(ys),Us=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Keyframe},enumerable:!1,configurable:!0}),t.prototype.setKeyword=function(e){return this.setNode("keyword",e,0)},t.prototype.getKeyword=function(){return this.keyword},t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t}(ys),Vs=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.KeyframeSelector},enumerable:!1,configurable:!0}),t}(ys),Ks=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Import},enumerable:!1,configurable:!0}),t.prototype.setMedialist=function(e){return!!e&&(e.attachTo(this),!0)},t}(us),qs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Use},enumerable:!1,configurable:!0}),t.prototype.getParameters=function(){return this.parameters||(this.parameters=new ms(this)),this.parameters},t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t}(us),Bs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.ModuleConfiguration},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.setValue=function(e){return this.setNode("value",e,0)},t.prototype.getValue=function(){return this.value},t}(us),js=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Forward},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getMembers=function(){return this.members||(this.members=new ms(this)),this.members},t.prototype.getParameters=function(){return this.parameters||(this.parameters=new ms(this)),this.parameters},t}(us),$s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.ForwardVisibility},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t}(us),Hs=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Namespace},enumerable:!1,configurable:!0}),t}(us),Gs=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Media},enumerable:!1,configurable:!0}),t}(ys),Js=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Supports},enumerable:!1,configurable:!0}),t}(ys),Xs=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Document},enumerable:!1,configurable:!0}),t}(ys),Ys=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),t.prototype.getMediums=function(){return this.mediums||(this.mediums=new ms(this)),this.mediums},t}(us),Qs=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.MediaQuery},enumerable:!1,configurable:!0}),t}(us),Zs=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.MediaCondition},enumerable:!1,configurable:!0}),t}(us),ea=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.MediaFeature},enumerable:!1,configurable:!0}),t}(us),ta=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.SupportsCondition},enumerable:!1,configurable:!0}),t}(us),na=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Page},enumerable:!1,configurable:!0}),t}(ys),ia=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.PageBoxMarginBox},enumerable:!1,configurable:!0}),t}(ys),ra=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Expression},enumerable:!1,configurable:!0}),t}(us),oa=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.BinaryExpression},enumerable:!1,configurable:!0}),t.prototype.setLeft=function(e){return this.setNode("left",e)},t.prototype.getLeft=function(){return this.left},t.prototype.setRight=function(e){return this.setNode("right",e)},t.prototype.getRight=function(){return this.right},t.prototype.setOperator=function(e){return this.setNode("operator",e)},t.prototype.getOperator=function(){return this.operator},t}(us),sa=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Term},enumerable:!1,configurable:!0}),t.prototype.setOperator=function(e){return this.setNode("operator",e)},t.prototype.getOperator=function(){return this.operator},t.prototype.setExpression=function(e){return this.setNode("expression",e)},t.prototype.getExpression=function(){return this.expression},t}(us),aa=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.AttributeSelector},enumerable:!1,configurable:!0}),t.prototype.setNamespacePrefix=function(e){return this.setNode("namespacePrefix",e)},t.prototype.getNamespacePrefix=function(){return this.namespacePrefix},t.prototype.setIdentifier=function(e){return this.setNode("identifier",e)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.setOperator=function(e){return this.setNode("operator",e)},t.prototype.getOperator=function(){return this.operator},t.prototype.setValue=function(e){return this.setNode("value",e)},t.prototype.getValue=function(){return this.value},t}(us),la=(function(e){function t(t,n){return e.call(this,t,n)||this}ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Operator},enumerable:!1,configurable:!0})}(us),function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.HexColorValue},enumerable:!1,configurable:!0}),t}(us)),ca=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.RatioValue},enumerable:!1,configurable:!0}),t}(us),ha=".".charCodeAt(0),da="0".charCodeAt(0),pa="9".charCodeAt(0),ua=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.NumericValue},enumerable:!1,configurable:!0}),t.prototype.getValue=function(){for(var e,t=this.getText(),n=0,i=0,r=t.length;i<r&&(e=t.charCodeAt(i),da<=e&&e<=pa||e===ha);i++)n+=1;return{value:t.substring(0,n),unit:n<t.length?t.substring(n):void 0}},t}(us),ma=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.variable=null,i.value=null,i.needsSemicolon=!0,i}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.VariableDeclaration},enumerable:!1,configurable:!0}),t.prototype.setVariable=function(e){return!!e&&(e.attachTo(this),this.variable=e,!0)},t.prototype.getVariable=function(){return this.variable},t.prototype.getName=function(){return this.variable?this.variable.getName():""},t.prototype.setValue=function(e){return!!e&&(e.attachTo(this),this.value=e,!0)},t.prototype.getValue=function(){return this.value},t}(Cs),fa=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Interpolation},enumerable:!1,configurable:!0}),t}(us),ga=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.VariableName},enumerable:!1,configurable:!0}),t.prototype.getName=function(){return this.getText()},t}(us),ba=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.ExtendsReference},enumerable:!1,configurable:!0}),t.prototype.getSelectors=function(){return this.selectors||(this.selectors=new ms(this)),this.selectors},t}(us),va=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.MixinContentReference},enumerable:!1,configurable:!0}),t.prototype.getArguments=function(){return this.arguments||(this.arguments=new ms(this)),this.arguments},t}(us),ya=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.MixinContentReference},enumerable:!1,configurable:!0}),t.prototype.getParameters=function(){return this.parameters||(this.parameters=new ms(this)),this.parameters},t}(ys),wa=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.MixinReference},enumerable:!1,configurable:!0}),t.prototype.getNamespaces=function(){return this.namespaces||(this.namespaces=new ms(this)),this.namespaces},t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.getArguments=function(){return this.arguments||(this.arguments=new ms(this)),this.arguments},t.prototype.setContent=function(e){return this.setNode("content",e)},t.prototype.getContent=function(){return this.content},t}(us),xa=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.MixinDeclaration},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.getParameters=function(){return this.parameters||(this.parameters=new ms(this)),this.parameters},t.prototype.setGuard=function(e){return e&&(e.attachTo(this),this.guard=e),!1},t}(ys),Sa=function(e){function t(t,n){return e.call(this,t,n)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.UnknownAtRule},enumerable:!1,configurable:!0}),t.prototype.setAtRuleName=function(e){this.atRuleName=e},t.prototype.getAtRuleName=function(){return this.atRuleName},t}(ys),Ca=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.ListEntry},enumerable:!1,configurable:!0}),t.prototype.setKey=function(e){return this.setNode("key",e,0)},t.prototype.setValue=function(e){return this.setNode("value",e,1)},t}(us),_a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ls(t,e),t.prototype.getConditions=function(){return this.conditions||(this.conditions=new ms(this)),this.conditions},t}(us),ka=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ls(t,e),t.prototype.setVariable=function(e){return this.setNode("variable",e)},t}(us),Ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ls(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return rs.Module},enumerable:!1,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t}(us);(ps=ds||(ds={}))[ps.Ignore=1]="Ignore",ps[ps.Warning=2]="Warning",ps[ps.Error=4]="Error";var Ra=function(){function e(e,t,n,i,r,o){void 0===r&&(r=e.offset),void 0===o&&(o=e.length),this.node=e,this.rule=t,this.level=n,this.message=i||t.message,this.offset=r,this.length=o}return e.prototype.getRule=function(){return this.rule},e.prototype.getLevel=function(){return this.level},e.prototype.getOffset=function(){return this.offset},e.prototype.getLength=function(){return this.length},e.prototype.getNode=function(){return this.node},e.prototype.getMessage=function(){return this.message},e}(),Na=function(){function e(){this.entries=[]}return e.entries=function(t){var n=new e;return t.acceptVisitor(n),n.entries},e.prototype.visitNode=function(e){return e.isErroneous()&&e.collectIssues(this.entries),!0},e}();function Fa(e,t,...n){return function(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{let i=n[0];return"undefined"!==typeof t[i]?t[i]:e})),n}(t,n)}function Da(e){return Fa}var Ta,Aa,Ma,za,Ia,La,Pa,Oa,Wa,Ua,Va,Ka,qa,Ba,ja,$a,Ha,Ga,Ja,Xa,Ya,Qa,Za,el,tl,nl,il,rl,ol,sl,al,ll,cl,hl,dl,pl,ul,ml,fl,gl,bl,vl,yl,wl,xl,Sl,Cl,_l,kl,El=Da(),Rl=function(){return function(e,t){this.id=e,this.message=t}}(),Nl={NumberExpected:new Rl("css-numberexpected",El("expected.number","number expected")),ConditionExpected:new Rl("css-conditionexpected",El("expected.condt","condition expected")),RuleOrSelectorExpected:new Rl("css-ruleorselectorexpected",El("expected.ruleorselector","at-rule or selector expected")),DotExpected:new Rl("css-dotexpected",El("expected.dot","dot expected")),ColonExpected:new Rl("css-colonexpected",El("expected.colon","colon expected")),SemiColonExpected:new Rl("css-semicolonexpected",El("expected.semicolon","semi-colon expected")),TermExpected:new Rl("css-termexpected",El("expected.term","term expected")),ExpressionExpected:new Rl("css-expressionexpected",El("expected.expression","expression expected")),OperatorExpected:new Rl("css-operatorexpected",El("expected.operator","operator expected")),IdentifierExpected:new Rl("css-identifierexpected",El("expected.ident","identifier expected")),PercentageExpected:new Rl("css-percentageexpected",El("expected.percentage","percentage expected")),URIOrStringExpected:new Rl("css-uriorstringexpected",El("expected.uriorstring","uri or string expected")),URIExpected:new Rl("css-uriexpected",El("expected.uri","URI expected")),VariableNameExpected:new Rl("css-varnameexpected",El("expected.varname","variable name expected")),VariableValueExpected:new Rl("css-varvalueexpected",El("expected.varvalue","variable value expected")),PropertyValueExpected:new Rl("css-propertyvalueexpected",El("expected.propvalue","property value expected")),LeftCurlyExpected:new Rl("css-lcurlyexpected",El("expected.lcurly","{ expected")),RightCurlyExpected:new Rl("css-rcurlyexpected",El("expected.rcurly","} expected")),LeftSquareBracketExpected:new Rl("css-rbracketexpected",El("expected.lsquare","[ expected")),RightSquareBracketExpected:new Rl("css-lbracketexpected",El("expected.rsquare","] expected")),LeftParenthesisExpected:new Rl("css-lparentexpected",El("expected.lparen","( expected")),RightParenthesisExpected:new Rl("css-rparentexpected",El("expected.rparent",") expected")),CommaExpected:new Rl("css-commaexpected",El("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new Rl("css-pagedirordeclexpected",El("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new Rl("css-unknownatrule",El("unknown.atrule","at-rule unknown")),UnknownKeyword:new Rl("css-unknownkeyword",El("unknown.keyword","unknown keyword")),SelectorExpected:new Rl("css-selectorexpected",El("expected.selector","selector expected")),StringLiteralExpected:new Rl("css-stringliteralexpected",El("expected.stringliteral","string literal expected")),WhitespaceExpected:new Rl("css-whitespaceexpected",El("expected.whitespace","whitespace expected")),MediaQueryExpected:new Rl("css-mediaqueryexpected",El("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new Rl("css-idorwildcardexpected",El("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new Rl("css-wildcardexpected",El("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new Rl("css-idorvarexpected",El("expected.idorvar","identifier or variable expected"))};(Aa=Ta||(Ta={})).MIN_VALUE=-2147483648,Aa.MAX_VALUE=2147483647,(za=Ma||(Ma={})).MIN_VALUE=0,za.MAX_VALUE=2147483647,(La=Ia||(Ia={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=Ma.MAX_VALUE),t===Number.MAX_VALUE&&(t=Ma.MAX_VALUE),{line:e,character:t}},La.is=function(e){var t=e;return Nc.objectLiteral(t)&&Nc.uinteger(t.line)&&Nc.uinteger(t.character)},(Oa=Pa||(Pa={})).create=function(e,t,n,i){if(Nc.uinteger(e)&&Nc.uinteger(t)&&Nc.uinteger(n)&&Nc.uinteger(i))return{start:Ia.create(e,t),end:Ia.create(n,i)};if(Ia.is(e)&&Ia.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+i+"]")},Oa.is=function(e){var t=e;return Nc.objectLiteral(t)&&Ia.is(t.start)&&Ia.is(t.end)},(Ua=Wa||(Wa={})).create=function(e,t){return{uri:e,range:t}},Ua.is=function(e){var t=e;return Nc.defined(t)&&Pa.is(t.range)&&(Nc.string(t.uri)||Nc.undefined(t.uri))},(Ka=Va||(Va={})).create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},Ka.is=function(e){var t=e;return Nc.defined(t)&&Pa.is(t.targetRange)&&Nc.string(t.targetUri)&&(Pa.is(t.targetSelectionRange)||Nc.undefined(t.targetSelectionRange))&&(Pa.is(t.originSelectionRange)||Nc.undefined(t.originSelectionRange))},(Ba=qa||(qa={})).create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},Ba.is=function(e){var t=e;return Nc.numberRange(t.red,0,1)&&Nc.numberRange(t.green,0,1)&&Nc.numberRange(t.blue,0,1)&&Nc.numberRange(t.alpha,0,1)},($a=ja||(ja={})).create=function(e,t){return{range:e,color:t}},$a.is=function(e){var t=e;return Pa.is(t.range)&&qa.is(t.color)},(Ga=Ha||(Ha={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},Ga.is=function(e){var t=e;return Nc.string(t.label)&&(Nc.undefined(t.textEdit)||hl.is(t))&&(Nc.undefined(t.additionalTextEdits)||Nc.typedArray(t.additionalTextEdits,hl.is))},(Xa=Ja||(Ja={})).Comment="comment",Xa.Imports="imports",Xa.Region="region",(Qa=Ya||(Ya={})).create=function(e,t,n,i,r){var o={startLine:e,endLine:t};return Nc.defined(n)&&(o.startCharacter=n),Nc.defined(i)&&(o.endCharacter=i),Nc.defined(r)&&(o.kind=r),o},Qa.is=function(e){var t=e;return Nc.uinteger(t.startLine)&&Nc.uinteger(t.startLine)&&(Nc.undefined(t.startCharacter)||Nc.uinteger(t.startCharacter))&&(Nc.undefined(t.endCharacter)||Nc.uinteger(t.endCharacter))&&(Nc.undefined(t.kind)||Nc.string(t.kind))},(el=Za||(Za={})).create=function(e,t){return{location:e,message:t}},el.is=function(e){var t=e;return Nc.defined(t)&&Wa.is(t.location)&&Nc.string(t.message)},(nl=tl||(tl={})).Error=1,nl.Warning=2,nl.Information=3,nl.Hint=4,(rl=il||(il={})).Unnecessary=1,rl.Deprecated=2,(ol||(ol={})).is=function(e){var t=e;return void 0!==t&&null!==t&&Nc.string(t.href)},(al=sl||(sl={})).create=function(e,t,n,i,r,o){var s={range:e,message:t};return Nc.defined(n)&&(s.severity=n),Nc.defined(i)&&(s.code=i),Nc.defined(r)&&(s.source=r),Nc.defined(o)&&(s.relatedInformation=o),s},al.is=function(e){var t,n=e;return Nc.defined(n)&&Pa.is(n.range)&&Nc.string(n.message)&&(Nc.number(n.severity)||Nc.undefined(n.severity))&&(Nc.integer(n.code)||Nc.string(n.code)||Nc.undefined(n.code))&&(Nc.undefined(n.codeDescription)||Nc.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Nc.string(n.source)||Nc.undefined(n.source))&&(Nc.undefined(n.relatedInformation)||Nc.typedArray(n.relatedInformation,Za.is))},(cl=ll||(ll={})).create=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r={title:e,command:t};return Nc.defined(n)&&n.length>0&&(r.arguments=n),r},cl.is=function(e){var t=e;return Nc.defined(t)&&Nc.string(t.title)&&Nc.string(t.command)},(dl=hl||(hl={})).replace=function(e,t){return{range:e,newText:t}},dl.insert=function(e,t){return{range:{start:e,end:e},newText:t}},dl.del=function(e){return{range:e,newText:""}},dl.is=function(e){var t=e;return Nc.objectLiteral(t)&&Nc.string(t.newText)&&Pa.is(t.range)},(ul=pl||(pl={})).create=function(e,t,n){var i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},ul.is=function(e){var t=e;return void 0!==t&&Nc.objectLiteral(t)&&Nc.string(t.label)&&(Nc.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Nc.string(t.description)||void 0===t.description)},(ml||(ml={})).is=function(e){return"string"===typeof e},(gl=fl||(fl={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},gl.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},gl.del=function(e,t){return{range:e,newText:"",annotationId:t}},gl.is=function(e){var t=e;return hl.is(t)&&(pl.is(t.annotationId)||ml.is(t.annotationId))},(vl=bl||(bl={})).create=function(e,t){return{textDocument:e,edits:t}},vl.is=function(e){var t=e;return Nc.defined(t)&&Ml.is(t.textDocument)&&Array.isArray(t.edits)},(wl=yl||(yl={})).create=function(e,t,n){var i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},wl.is=function(e){var t=e;return t&&"create"===t.kind&&Nc.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Nc.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Nc.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||ml.is(t.annotationId))},(Sl=xl||(xl={})).create=function(e,t,n,i){var r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},Sl.is=function(e){var t=e;return t&&"rename"===t.kind&&Nc.string(t.oldUri)&&Nc.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Nc.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Nc.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||ml.is(t.annotationId))},(_l=Cl||(Cl={})).create=function(e,t,n){var i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},_l.is=function(e){var t=e;return t&&"delete"===t.kind&&Nc.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Nc.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Nc.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||ml.is(t.annotationId))},(kl||(kl={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Nc.string(e.kind)?yl.is(e)||xl.is(e)||Cl.is(e):bl.is(e)})))};var Fl,Dl,Tl,Al,Ml,zl,Il,Ll,Pl,Ol,Wl,Ul,Vl,Kl,ql,Bl,jl,$l,Hl,Gl,Jl,Xl,Yl,Ql,Zl,ec,tc,nc,ic,rc,oc,sc,ac,lc,cc,hc,dc,pc,uc,mc,fc,gc,bc,vc,yc,wc,xc,Sc,Cc,_c,kc,Ec=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var i,r;if(void 0===n?i=hl.insert(e,t):ml.is(n)?(r=n,i=fl.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=fl.insert(e,t,r)),this.edits.push(i),void 0!==r)return r},e.prototype.replace=function(e,t,n){var i,r;if(void 0===n?i=hl.replace(e,t):ml.is(n)?(r=n,i=fl.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=fl.replace(e,t,r)),this.edits.push(i),void 0!==r)return r},e.prototype.delete=function(e,t){var n,i;if(void 0===t?n=hl.del(e):ml.is(t)?(i=t,n=fl.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),n=fl.del(e,i)),this.edits.push(n),void 0!==i)return i},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Rc=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(ml.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Rc(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(bl.is(e)){var n=new Ec(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var i=new Ec(e.changes[n]);t._textEditChanges[n]=i}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(Ml.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(i=this._textEditChanges[t.uri])){var n={textDocument:t,edits:r=[]};this._workspaceEdit.documentChanges.push(n),i=new Ec(r,this._changeAnnotations),this._textEditChanges[t.uri]=i}return i}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var i;if(!(i=this._textEditChanges[e])){var r=[];this._workspaceEdit.changes[e]=r,i=new Ec(r),this._textEditChanges[e]=i}return i},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Rc,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,r,o;if(pl.is(t)||ml.is(t)?i=t:n=t,void 0===i?r=yl.create(e,n):(o=ml.is(i)?i:this._changeAnnotations.manage(i),r=yl.create(e,n,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,i){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,s;if(pl.is(n)||ml.is(n)?r=n:i=n,void 0===r?o=xl.create(e,t,i):(s=ml.is(r)?r:this._changeAnnotations.manage(r),o=xl.create(e,t,i,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,r,o;if(pl.is(t)||ml.is(t)?i=t:n=t,void 0===i?r=Cl.create(e,n):(o=ml.is(i)?i:this._changeAnnotations.manage(i),r=Cl.create(e,n,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o}}();(Dl=Fl||(Fl={})).create=function(e){return{uri:e}},Dl.is=function(e){var t=e;return Nc.defined(t)&&Nc.string(t.uri)},(Al=Tl||(Tl={})).create=function(e,t){return{uri:e,version:t}},Al.is=function(e){var t=e;return Nc.defined(t)&&Nc.string(t.uri)&&Nc.integer(t.version)},(zl=Ml||(Ml={})).create=function(e,t){return{uri:e,version:t}},zl.is=function(e){var t=e;return Nc.defined(t)&&Nc.string(t.uri)&&(null===t.version||Nc.integer(t.version))},(Ll=Il||(Il={})).create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},Ll.is=function(e){var t=e;return Nc.defined(t)&&Nc.string(t.uri)&&Nc.string(t.languageId)&&Nc.integer(t.version)&&Nc.string(t.text)},(Ol=Pl||(Pl={})).PlainText="plaintext",Ol.Markdown="markdown",function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(Pl||(Pl={})),(Wl||(Wl={})).is=function(e){var t=e;return Nc.objectLiteral(e)&&Pl.is(t.kind)&&Nc.string(t.value)},(Vl=Ul||(Ul={})).Text=1,Vl.Method=2,Vl.Function=3,Vl.Constructor=4,Vl.Field=5,Vl.Variable=6,Vl.Class=7,Vl.Interface=8,Vl.Module=9,Vl.Property=10,Vl.Unit=11,Vl.Value=12,Vl.Enum=13,Vl.Keyword=14,Vl.Snippet=15,Vl.Color=16,Vl.File=17,Vl.Reference=18,Vl.Folder=19,Vl.EnumMember=20,Vl.Constant=21,Vl.Struct=22,Vl.Event=23,Vl.Operator=24,Vl.TypeParameter=25,(ql=Kl||(Kl={})).PlainText=1,ql.Snippet=2,(Bl||(Bl={})).Deprecated=1,($l=jl||(jl={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},$l.is=function(e){var t=e;return t&&Nc.string(t.newText)&&Pa.is(t.insert)&&Pa.is(t.replace)},(Gl=Hl||(Hl={})).asIs=1,Gl.adjustIndentation=2,(Jl||(Jl={})).create=function(e){return{label:e}},(Xl||(Xl={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Ql=Yl||(Yl={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Ql.is=function(e){var t=e;return Nc.string(t)||Nc.objectLiteral(t)&&Nc.string(t.language)&&Nc.string(t.value)},(Zl||(Zl={})).is=function(e){var t=e;return!!t&&Nc.objectLiteral(t)&&(Wl.is(t.contents)||Yl.is(t.contents)||Nc.typedArray(t.contents,Yl.is))&&(void 0===e.range||Pa.is(e.range))},(ec||(ec={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(tc||(tc={})).create=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r={label:e};return Nc.defined(t)&&(r.documentation=t),Nc.defined(n)?r.parameters=n:r.parameters=[],r},(ic=nc||(nc={})).Text=1,ic.Read=2,ic.Write=3,(rc||(rc={})).create=function(e,t){var n={range:e};return Nc.number(t)&&(n.kind=t),n},(sc=oc||(oc={})).File=1,sc.Module=2,sc.Namespace=3,sc.Package=4,sc.Class=5,sc.Method=6,sc.Property=7,sc.Field=8,sc.Constructor=9,sc.Enum=10,sc.Interface=11,sc.Function=12,sc.Variable=13,sc.Constant=14,sc.String=15,sc.Number=16,sc.Boolean=17,sc.Array=18,sc.Object=19,sc.Key=20,sc.Null=21,sc.EnumMember=22,sc.Struct=23,sc.Event=24,sc.Operator=25,sc.TypeParameter=26,(ac||(ac={})).Deprecated=1,(lc||(lc={})).create=function(e,t,n,i,r){var o={name:e,kind:t,location:{uri:i,range:n}};return r&&(o.containerName=r),o},(hc=cc||(cc={})).create=function(e,t,n,i,r,o){var s={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==o&&(s.children=o),s},hc.is=function(e){var t=e;return t&&Nc.string(t.name)&&Nc.number(t.kind)&&Pa.is(t.range)&&Pa.is(t.selectionRange)&&(void 0===t.detail||Nc.string(t.detail))&&(void 0===t.deprecated||Nc.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(pc=dc||(dc={})).Empty="",pc.QuickFix="quickfix",pc.Refactor="refactor",pc.RefactorExtract="refactor.extract",pc.RefactorInline="refactor.inline",pc.RefactorRewrite="refactor.rewrite",pc.Source="source",pc.SourceOrganizeImports="source.organizeImports",pc.SourceFixAll="source.fixAll",(mc=uc||(uc={})).create=function(e,t){var n={diagnostics:e};return void 0!==t&&null!==t&&(n.only=t),n},mc.is=function(e){var t=e;return Nc.defined(t)&&Nc.typedArray(t.diagnostics,sl.is)&&(void 0===t.only||Nc.typedArray(t.only,Nc.string))},(gc=fc||(fc={})).create=function(e,t,n){var i={title:e},r=!0;return"string"===typeof t?(r=!1,i.kind=t):ll.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},gc.is=function(e){var t=e;return t&&Nc.string(t.title)&&(void 0===t.diagnostics||Nc.typedArray(t.diagnostics,sl.is))&&(void 0===t.kind||Nc.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||ll.is(t.command))&&(void 0===t.isPreferred||Nc.boolean(t.isPreferred))&&(void 0===t.edit||kl.is(t.edit))},(vc=bc||(bc={})).create=function(e,t){var n={range:e};return Nc.defined(t)&&(n.data=t),n},vc.is=function(e){var t=e;return Nc.defined(t)&&Pa.is(t.range)&&(Nc.undefined(t.command)||ll.is(t.command))},(wc=yc||(yc={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},wc.is=function(e){var t=e;return Nc.defined(t)&&Nc.uinteger(t.tabSize)&&Nc.boolean(t.insertSpaces)},(Sc=xc||(xc={})).create=function(e,t,n){return{range:e,target:t,data:n}},Sc.is=function(e){var t=e;return Nc.defined(t)&&Pa.is(t.range)&&(Nc.undefined(t.target)||Nc.string(t.target))},(_c=Cc||(Cc={})).create=function(e,t){return{range:e,parent:t}},_c.is=function(e){var t=e;return void 0!==t&&Pa.is(t.range)&&(void 0===t.parent||_c.is(t.parent))},function(e){function t(e,n){if(e.length<=1)return e;var i=e.length/2|0,r=e.slice(0,i),o=e.slice(i);t(r,n),t(o,n);for(var s=0,a=0,l=0;s<r.length&&a<o.length;){var c=n(r[s],o[a]);e[l++]=c<=0?r[s++]:o[a++]}for(;s<r.length;)e[l++]=r[s++];for(;a<o.length;)e[l++]=o[a++];return e}e.create=function(e,t,n,i){return new Fc(e,t,n,i)},e.is=function(e){var t=e;return!!(Nc.defined(t)&&Nc.string(t.uri)&&(Nc.undefined(t.languageId)||Nc.string(t.languageId))&&Nc.uinteger(t.lineCount)&&Nc.func(t.getText)&&Nc.func(t.positionAt)&&Nc.func(t.offsetAt))},e.applyEdits=function(e,n){for(var i=e.getText(),r=t(n,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=i.length,s=r.length-1;s>=0;s--){var a=r[s],l=e.offsetAt(a.range.start),c=e.offsetAt(a.range.end);if(!(c<=o))throw new Error("Overlapping edit");i=i.substring(0,l)+a.newText+i.substring(c,i.length),o=l}return i}}(kc||(kc={}));var Nc,Fc=function(){function e(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,i=0;i<t.length;i++){n&&(e.push(i),n=!1);var r=t.charAt(i);n="\r"===r||"\n"===r,"\r"===r&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return Ia.create(0,e);for(;n<i;){var r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}var o=n-1;return Ia.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,i){return"[object Number]"===t.call(e)&&n<=e&&e<=i},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Nc||(Nc={}));var Dc,Tc,Ac,Mc,zc,Ic=class e{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let i of t)if(e.isIncremental(i)){const e=Oc(i.range),t=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,t)+i.text+this._content.substring(n,this._content.length);const r=Math.max(e.start.line,0),o=Math.max(e.end.line,0);let s=this._lineOffsets;const a=Pc(i.text,!1,t);if(o-r===a.length)for(let i=0,c=a.length;i<c;i++)s[i+r+1]=a[i];else a.length<1e4?s.splice(r+1,o-r,...a):this._lineOffsets=s=s.slice(0,r+1).concat(a,s.slice(o+1));const l=i.text.length-(n-t);if(0!==l)for(let i=r+1+a.length,c=s.length;i<c;i++)s[i]=s[i]+l}else{if(!e.isFull(i))throw new Error("Unknown change event received");this._content=i.text,this._lineOffsets=void 0}this._version=n}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=Pc(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return{line:0,character:e};for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return{line:r,character:e-t[r]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"===typeof t.rangeLength)}static isFull(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0===t.range&&void 0===t.rangeLength}};function Lc(e,t){if(e.length<=1)return e;const n=e.length/2|0,i=e.slice(0,n),r=e.slice(n);Lc(i,t),Lc(r,t);let o=0,s=0,a=0;for(;o<i.length&&s<r.length;){let n=t(i[o],r[s]);e[a++]=n<=0?i[o++]:r[s++]}for(;o<i.length;)e[a++]=i[o++];for(;s<r.length;)e[a++]=r[s++];return e}function Pc(e,t,n=0){const i=t?[n]:[];for(let r=0;r<e.length;r++){let t=e.charCodeAt(r);13!==t&&10!==t||(13===t&&r+1<e.length&&10===e.charCodeAt(r+1)&&r++,i.push(n+r+1))}return i}function Oc(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Wc(e){const t=Oc(e.range);return t!==e.range?{newText:e.newText,range:t}:e}(Tc=Dc||(Dc={})).create=function(e,t,n,i){return new Ic(e,t,n,i)},Tc.update=function(e,t,n){if(e instanceof Ic)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},Tc.applyEdits=function(e,t){let n=e.getText(),i=Lc(t.map(Wc),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),r=0;const o=[];for(const s of i){let t=e.offsetAt(s.range.start);if(t<r)throw new Error("Overlapping edit");t>r&&o.push(n.substring(r,t)),s.newText.length&&o.push(s.newText),r=e.offsetAt(s.range.end)}return o.push(n.substr(r)),o.join("")},(Ac||(Ac={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Pl.Markdown,Pl.PlainText]}},hover:{contentFormat:[Pl.Markdown,Pl.PlainText]}}},(zc=Mc||(Mc={}))[zc.Unknown=0]="Unknown",zc[zc.File=1]="File",zc[zc.Directory=2]="Directory",zc[zc.SymbolicLink=64]="SymbolicLink";var Uc={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function Vc(e){switch(e){case"experimental":return"\u26a0\ufe0f Property is experimental. Be cautious when using it.\ufe0f\n\n";case"nonstandard":return"\ud83d\udea8\ufe0f Property is nonstandard. Avoid using it.\n\n";case"obsolete":return"\ud83d\udea8\ufe0f\ufe0f\ufe0f Property is obsolete. Avoid using it.\n\n";default:return""}}function Kc(e,t,n){var i;if(""!==(i=t?{kind:"markdown",value:jc(e,n)}:{kind:"plaintext",value:Bc(e,n)}).value)return i}function qc(e){return(e=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")).replace(/</g,"<").replace(/>/g,">")}function Bc(e,t){if(!e.description||""===e.description)return"";if("string"!==typeof e.description)return e.description.value;var n="";if(!1!==(null===t||void 0===t?void 0:t.documentation)){e.status&&(n+=Vc(e.status)),n+=e.description;var i=$c(e.browsers);i&&(n+="\n("+i+")"),"syntax"in e&&(n+="\n\nSyntax: ".concat(e.syntax))}return e.references&&e.references.length>0&&!1!==(null===t||void 0===t?void 0:t.references)&&(n.length>0&&(n+="\n\n"),n+=e.references.map((function(e){return"".concat(e.name,": ").concat(e.url)})).join(" | ")),n}function jc(e,t){if(!e.description||""===e.description)return"";var n="";if(!1!==(null===t||void 0===t?void 0:t.documentation)){e.status&&(n+=Vc(e.status)),"string"===typeof e.description?n+=qc(e.description):n+=e.description.kind===Pl.Markdown?e.description.value:qc(e.description.value);var i=$c(e.browsers);i&&(n+="\n\n("+qc(i)+")"),"syntax"in e&&e.syntax&&(n+="\n\nSyntax: ".concat(qc(e.syntax)))}return e.references&&e.references.length>0&&!1!==(null===t||void 0===t?void 0:t.references)&&(n.length>0&&(n+="\n\n"),n+=e.references.map((function(e){return"[".concat(e.name,"](").concat(e.url,")")})).join(" | ")),n}function $c(e){return void 0===e&&(e=[]),0===e.length?null:e.map((function(e){var t="",n=e.match(/([A-Z]+)(\d+)?/),i=n[1],r=n[2];return i in Uc&&(t+=Uc[i]),r&&(t+=" "+r),t})).join(", ")}var Hc=Da(),Gc=[{func:"rgb($red, $green, $blue)",desc:Hc("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:Hc("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:Hc("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:Hc("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")},{func:"hwb($hue $white $black)",desc:Hc("css.builtin.hwb","Creates a Color from hue, white and black.")}],Jc={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Xc={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."};function Yc(e,t){var n=e.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(n){n[2]&&(t=100);var i=parseFloat(n[1])/t;if(i>=0&&i<=1)return i}throw new Error}function Qc(e){var t=e.getText(),n=t.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case"deg":return parseFloat(t)%360;case"rad":return 180*parseFloat(t)/Math.PI%360;case"grad":return.9*parseFloat(t)%360;case"turn":return 360*parseFloat(t)%360;default:if("undefined"===typeof n[2])return parseFloat(t)%360}throw new Error}function Zc(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function eh(e){if("#"!==e[0])return null;switch(e.length){case 4:return{red:17*Zc(e.charCodeAt(1))/255,green:17*Zc(e.charCodeAt(2))/255,blue:17*Zc(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Zc(e.charCodeAt(1))/255,green:17*Zc(e.charCodeAt(2))/255,blue:17*Zc(e.charCodeAt(3))/255,alpha:17*Zc(e.charCodeAt(4))/255};case 7:return{red:(16*Zc(e.charCodeAt(1))+Zc(e.charCodeAt(2)))/255,green:(16*Zc(e.charCodeAt(3))+Zc(e.charCodeAt(4)))/255,blue:(16*Zc(e.charCodeAt(5))+Zc(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Zc(e.charCodeAt(1))+Zc(e.charCodeAt(2)))/255,green:(16*Zc(e.charCodeAt(3))+Zc(e.charCodeAt(4)))/255,blue:(16*Zc(e.charCodeAt(5))+Zc(e.charCodeAt(6)))/255,alpha:(16*Zc(e.charCodeAt(7))+Zc(e.charCodeAt(8)))/255}}return null}function th(e,t,n,i){if(void 0===i&&(i=1),0===t)return{red:n,green:n,blue:n,alpha:i};var r=function(e,t,n){for(;n<0;)n+=6;for(;n>=6;)n-=6;return n<1?(t-e)*n+e:n<3?t:n<4?(t-e)*(4-n)+e:e},o=n<=.5?n*(t+1):n+t-n*t,s=2*n-o;return{red:r(s,o,(e/=60)+2),green:r(s,o,e),blue:r(s,o,e-2),alpha:i}}function nh(e){var t=e.red,n=e.green,i=e.blue,r=e.alpha,o=Math.max(t,n,i),s=Math.min(t,n,i),a=0,l=0,c=(s+o)/2,h=o-s;if(h>0){switch(l=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),o){case t:a=(n-i)/h+(n<i?6:0);break;case n:a=(i-t)/h+2;break;case i:a=(t-n)/h+4}a*=60,a=Math.round(a)}return{h:a,s:l,l:c,a:r}}function ih(e){if(e.type===rs.HexColorValue)return eh(e.getText());if(e.type===rs.Function){var t=e,n=t.getName(),i=t.getArguments().getChildren();if(1===i.length){var r=i[0].getChildren();if(1===r.length&&r[0].type===rs.Expression&&3===(i=r[0].getChildren()).length){var o=i[2];if(o instanceof oa){var s=o.getLeft(),a=o.getRight(),l=o.getOperator();s&&a&&l&&l.matches("/")&&(i=[i[0],i[1],s,a])}}}if(!n||i.length<3||i.length>4)return null;try{var c=4===i.length?Yc(i[3],1):1;if("rgb"===n||"rgba"===n)return{red:Yc(i[0],255),green:Yc(i[1],255),blue:Yc(i[2],255),alpha:c};if("hsl"===n||"hsla"===n)return th(Qc(i[0]),Yc(i[1],100),Yc(i[2],100),c);if("hwb"===n)return function(e,t,n,i){if(void 0===i&&(i=1),t+n>=1){var r=t/(t+n);return{red:r,green:r,blue:r,alpha:i}}var o=th(e,1,.5,i),s=o.red;s*=1-t-n,s+=t;var a=o.green;a*=1-t-n,a+=t;var l=o.blue;return l*=1-t-n,{red:s,green:a,blue:l+=t,alpha:i}}(Qc(i[0]),Yc(i[1],100),Yc(i[2],100),c)}catch(gu){return null}}else if(e.type===rs.Identifier){if(e.parent&&e.parent.type!==rs.Term)return null;var h=e.parent;if(h&&h.parent&&h.parent.type===rs.BinaryExpression){var d=h.parent;if(d.parent&&d.parent.type===rs.ListEntry&&d.parent.key===d)return null}var p=e.getText().toLowerCase();if("none"===p)return null;var u=Jc[p];if(u)return eh(u)}return null}var rh={bottom:"Computes to \u2018100%\u2019 for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to \u2018100%\u2019 for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},oh={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},sh={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as \u2018none\u2019, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},ah=["medium","thick","thin"],lh={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},ch={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},hh={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},dh={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},ph={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position."},uh={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value \u201cstart\u201d or \u201cend\u201d.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},mh={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},fh={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},gh=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],bh=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],vh=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function yh(e){return Object.keys(e).map((function(t){return e[t]}))}function wh(e){return"undefined"!==typeof e}var xh=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},Sh=function(){function e(e){void 0===e&&(e=new Zo),this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:ro.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}return e.prototype.peekIdent=function(e){return ro.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()},e.prototype.peekKeyword=function(e){return ro.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()},e.prototype.peekDelim=function(e){return ro.Delim===this.token.type&&e===this.token.text},e.prototype.peek=function(e){return e===this.token.type},e.prototype.peekOne=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return-1!==e.indexOf(this.token.type)},e.prototype.peekRegExp=function(e,t){return e===this.token.type&&t.test(this.token.text)},e.prototype.hasWhitespace=function(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset},e.prototype.consumeToken=function(){this.prevToken=this.token,this.token=this.scanner.scan()},e.prototype.acceptUnicodeRange=function(){var e=this.scanner.tryScanUnicode();return!!e&&(this.prevToken=e,this.token=this.scanner.scan(),!0)},e.prototype.mark=function(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}},e.prototype.restoreAtMark=function(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)},e.prototype.try=function(e){var t=this.mark(),n=e();return n||(this.restoreAtMark(t),null)},e.prototype.acceptOneKeyword=function(e){if(ro.AtKeyword===this.token.type)for(var t=0,n=e;t<n.length;t++){var i=n[t];if(i.length===this.token.text.length&&i===this.token.text.toLowerCase())return this.consumeToken(),!0}return!1},e.prototype.accept=function(e){return e===this.token.type&&(this.consumeToken(),!0)},e.prototype.acceptIdent=function(e){return!!this.peekIdent(e)&&(this.consumeToken(),!0)},e.prototype.acceptKeyword=function(e){return!!this.peekKeyword(e)&&(this.consumeToken(),!0)},e.prototype.acceptDelim=function(e){return!!this.peekDelim(e)&&(this.consumeToken(),!0)},e.prototype.acceptRegexp=function(e){return!!e.test(this.token.text)&&(this.consumeToken(),!0)},e.prototype._parseRegexp=function(e){var t=this.createNode(rs.Identifier);do{}while(this.acceptRegexp(e));return this.finish(t)},e.prototype.acceptUnquotedString=function(){var e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);var t=this.scanner.scanUnquotedString();return t?(this.token=t,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)},e.prototype.resync=function(e,t){for(;;){if(e&&-1!==e.indexOf(this.token.type))return this.consumeToken(),!0;if(t&&-1!==t.indexOf(this.token.type))return!0;if(this.token.type===ro.EOF)return!1;this.token=this.scanner.scan()}},e.prototype.createNode=function(e){return new us(this.token.offset,this.token.len,e)},e.prototype.create=function(e){return new e(this.token.offset,this.token.len)},e.prototype.finish=function(e,t,n,i){if(!(e instanceof ms)&&(t&&this.markError(e,t,n,i),this.prevToken)){var r=this.prevToken.offset+this.prevToken.len;e.length=r>e.offset?r-e.offset:0}return e},e.prototype.markError=function(e,t,n,i){this.token!==this.lastErrorToken&&(e.addIssue(new Ra(e,t,ds.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(n||i)&&this.resync(n,i)},e.prototype.parseStylesheet=function(e){var t=e.version,n=e.getText();return this.internalParse(n,this._parseStylesheet,(function(i,r){if(e.version!==t)throw new Error("Underlying model has changed, AST is no longer valid");return n.substr(i,r)}))},e.prototype.internalParse=function(e,t,n){this.scanner.setSource(e),this.token=this.scanner.scan();var i=t.bind(this)();return i&&(i.textProvider=n||function(t,n){return e.substr(t,n)}),i},e.prototype._parseStylesheet=function(){for(var e=this.create(bs);e.addChild(this._parseStylesheetStart()););var t=!1;do{var n=!1;do{n=!1;var i=this._parseStylesheetStatement();for(i&&(e.addChild(i),n=!0,t=!1,this.peek(ro.EOF)||!this._needsSemicolonAfter(i)||this.accept(ro.SemiColon)||this.markError(e,Nl.SemiColonExpected));this.accept(ro.SemiColon)||this.accept(ro.CDO)||this.accept(ro.CDC);)n=!0,t=!1}while(n);if(this.peek(ro.EOF))break;t||(this.peek(ro.AtKeyword)?this.markError(e,Nl.UnknownAtRule):this.markError(e,Nl.RuleOrSelectorExpected),t=!0),this.consumeToken()}while(!this.peek(ro.EOF));return this.finish(e)},e.prototype._parseStylesheetStart=function(){return this._parseCharset()},e.prototype._parseStylesheetStatement=function(e){return void 0===e&&(e=!1),this.peek(ro.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)},e.prototype._parseStylesheetAtStatement=function(e){return void 0===e&&(e=!1),this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},e.prototype._tryParseRuleset=function(e){var t=this.mark();if(this._parseSelector(e)){for(;this.accept(ro.Comma)&&this._parseSelector(e););if(this.accept(ro.CurlyL))return this.restoreAtMark(t),this._parseRuleset(e)}return this.restoreAtMark(t),null},e.prototype._parseRuleset=function(e){void 0===e&&(e=!1);var t=this.create(ws),n=t.getSelectors();if(!n.addChild(this._parseSelector(e)))return null;for(;this.accept(ro.Comma);)if(!n.addChild(this._parseSelector(e)))return this.finish(t,Nl.SelectorExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},e.prototype._parseRuleSetDeclaration=function(){return this.peek(ro.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},e.prototype._needsSemicolonAfter=function(e){switch(e.type){case rs.Keyframe:case rs.ViewPort:case rs.Media:case rs.Ruleset:case rs.Namespace:case rs.If:case rs.For:case rs.Each:case rs.While:case rs.MixinDeclaration:case rs.FunctionDeclaration:case rs.MixinContentDeclaration:return!1;case rs.ExtendsReference:case rs.MixinContentReference:case rs.ReturnStatement:case rs.MediaQuery:case rs.Debug:case rs.Import:case rs.AtApplyRule:case rs.CustomPropertyDeclaration:return!0;case rs.VariableDeclaration:return e.needsSemicolon;case rs.MixinReference:return!e.getContent();case rs.Declaration:return!e.getNestedProperties()}return!1},e.prototype._parseDeclarations=function(e){var t=this.create(vs);if(!this.accept(ro.CurlyL))return null;for(var n=e();t.addChild(n)&&!this.peek(ro.CurlyR);){if(this._needsSemicolonAfter(n)&&!this.accept(ro.SemiColon))return this.finish(t,Nl.SemiColonExpected,[ro.SemiColon,ro.CurlyR]);for(n&&this.prevToken&&this.prevToken.type===ro.SemiColon&&(n.semicolonPosition=this.prevToken.offset);this.accept(ro.SemiColon););n=e()}return this.accept(ro.CurlyR)?this.finish(t):this.finish(t,Nl.RightCurlyExpected,[ro.CurlyR,ro.SemiColon])},e.prototype._parseBody=function(e,t){return e.setDeclarations(this._parseDeclarations(t))?this.finish(e):this.finish(e,Nl.LeftCurlyExpected,[ro.CurlyR,ro.SemiColon])},e.prototype._parseSelector=function(e){var t=this.create(xs),n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());)n=!0,t.addChild(this._parseCombinator());return n?this.finish(t):null},e.prototype._parseDeclaration=function(e){var t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;var n=this.create(ks);return n.setProperty(this._parseProperty())?this.accept(ro.Colon)?(this.prevToken&&(n.colonPosition=this.prevToken.offset),n.setValue(this._parseExpr())?(n.addChild(this._parsePrio()),this.peek(ro.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):this.finish(n,Nl.PropertyValueExpected)):this.finish(n,Nl.ColonExpected,[ro.Colon],e||[ro.SemiColon]):null},e.prototype._tryParseCustomPropertyDeclaration=function(e){if(!this.peekRegExp(ro.Ident,/^--/))return null;var t=this.create(Es);if(!t.setProperty(this._parseProperty()))return null;if(!this.accept(ro.Colon))return this.finish(t,Nl.ColonExpected,[ro.Colon]);this.prevToken&&(t.colonPosition=this.prevToken.offset);var n=this.mark();if(this.peek(ro.CurlyL)){var i=this.create(_s),r=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(r)&&!r.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(ro.SemiColon)))return this.finish(i),t.setPropertySet(i),t.semicolonPosition=this.token.offset,this.finish(t);this.restoreAtMark(n)}var o=this._parseExpr();return o&&!o.isErroneous(!0)&&(this._parsePrio(),this.peekOne.apply(this,xh(xh([],e||[],!1),[ro.SemiColon,ro.EOF],!1)))?(t.setValue(o),this.peek(ro.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)):(this.restoreAtMark(n),t.addChild(this._parseCustomPropertyValue(e)),t.addChild(this._parsePrio()),wh(t.colonPosition)&&this.token.offset===t.colonPosition+1?this.finish(t,Nl.PropertyValueExpected):this.finish(t))},e.prototype._parseCustomPropertyValue=function(e){var t=this;void 0===e&&(e=[ro.CurlyR]);var n=this.create(us),i=function(){return 0===o&&0===s&&0===a},r=function(){return-1!==e.indexOf(t.token.type)},o=0,s=0,a=0;e:for(;;){switch(this.token.type){case ro.SemiColon:case ro.Exclamation:if(i())break e;break;case ro.CurlyL:o++;break;case ro.CurlyR:if(--o<0){if(r()&&0===s&&0===a)break e;return this.finish(n,Nl.LeftCurlyExpected)}break;case ro.ParenthesisL:s++;break;case ro.ParenthesisR:if(--s<0){if(r()&&0===a&&0===o)break e;return this.finish(n,Nl.LeftParenthesisExpected)}break;case ro.BracketL:a++;break;case ro.BracketR:if(--a<0)return this.finish(n,Nl.LeftSquareBracketExpected);break;case ro.BadString:break e;case ro.EOF:var l=Nl.RightCurlyExpected;return a>0?l=Nl.RightSquareBracketExpected:s>0&&(l=Nl.RightParenthesisExpected),this.finish(n,l)}this.consumeToken()}return this.finish(n)},e.prototype._tryToParseDeclaration=function(e){var t=this.mark();return this._parseProperty()&&this.accept(ro.Colon)?(this.restoreAtMark(t),this._parseDeclaration(e)):(this.restoreAtMark(t),null)},e.prototype._parseProperty=function(){var e=this.create(Rs),t=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(t),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null},e.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},e.prototype._parseCharset=function(){if(!this.peek(ro.Charset))return null;var e=this.create(us);return this.consumeToken(),this.accept(ro.String)?this.accept(ro.SemiColon)?this.finish(e):this.finish(e,Nl.SemiColonExpected):this.finish(e,Nl.IdentifierExpected)},e.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var e=this.create(Ks);return this.consumeToken(),e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?(this.peek(ro.SemiColon)||this.peek(ro.EOF)||e.setMedialist(this._parseMediaQueryList()),this.finish(e)):this.finish(e,Nl.URIOrStringExpected)},e.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var e=this.create(Hs);return this.consumeToken(),e.addChild(this._parseURILiteral())||(e.addChild(this._parseIdent()),e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral()))?this.accept(ro.SemiColon)?this.finish(e):this.finish(e,Nl.SemiColonExpected):this.finish(e,Nl.URIExpected,[ro.SemiColon])},e.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var e=this.create(Os);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var e=this.create(Ps);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseKeyframe=function(){if(!this.peekRegExp(ro.AtKeyword,this.keyframeRegex))return null;var e=this.create(Us),t=this.create(us);return this.consumeToken(),e.setKeyword(this.finish(t)),t.matches("@-ms-keyframes")&&this.markError(t,Nl.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,Nl.IdentifierExpected,[ro.CurlyR])},e.prototype._parseKeyframeIdent=function(){return this._parseIdent([ss.Keyframe])},e.prototype._parseKeyframeSelector=function(){var e=this.create(Vs);if(!e.addChild(this._parseIdent())&&!this.accept(ro.Percentage))return null;for(;this.accept(ro.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(ro.Percentage))return this.finish(e,Nl.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},e.prototype._tryParseKeyframeSelector=function(){var e=this.create(Vs),t=this.mark();if(!e.addChild(this._parseIdent())&&!this.accept(ro.Percentage))return null;for(;this.accept(ro.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(ro.Percentage))return this.restoreAtMark(t),null;return this.peek(ro.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(t),null)},e.prototype._parseSupports=function(e){if(void 0===e&&(e=!1),!this.peekKeyword("@supports"))return null;var t=this.create(Js);return this.consumeToken(),t.addChild(this._parseSupportsCondition()),this._parseBody(t,this._parseSupportsDeclaration.bind(this,e))},e.prototype._parseSupportsDeclaration=function(e){return void 0===e&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},e.prototype._parseSupportsCondition=function(){var e=this.create(ta);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(ro.Ident,/^(and|or)$/i))for(var t=this.token.text.toLowerCase();this.acceptIdent(t);)e.addChild(this._parseSupportsConditionInParens());return this.finish(e)},e.prototype._parseSupportsConditionInParens=function(){var e=this.create(ta);if(this.accept(ro.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),e.addChild(this._tryToParseDeclaration([ro.ParenthesisR]))||this._parseSupportsCondition()?this.accept(ro.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,Nl.RightParenthesisExpected,[ro.ParenthesisR],[]):this.finish(e,Nl.ConditionExpected);if(this.peek(ro.Ident)){var t=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(ro.ParenthesisL)){for(var n=1;this.token.type!==ro.EOF&&0!==n;)this.token.type===ro.ParenthesisL?n++:this.token.type===ro.ParenthesisR&&n--,this.consumeToken();return this.finish(e)}this.restoreAtMark(t)}return this.finish(e,Nl.LeftParenthesisExpected,[],[ro.ParenthesisL])},e.prototype._parseMediaDeclaration=function(e){return void 0===e&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},e.prototype._parseMedia=function(e){if(void 0===e&&(e=!1),!this.peekKeyword("@media"))return null;var t=this.create(Gs);return this.consumeToken(),t.addChild(this._parseMediaQueryList())?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,Nl.MediaQueryExpected)},e.prototype._parseMediaQueryList=function(){var e=this.create(Ys);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,Nl.MediaQueryExpected);for(;this.accept(ro.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,Nl.MediaQueryExpected);return this.finish(e)},e.prototype._parseMediaQuery=function(){var e=this.create(Qs),t=this.mark();if(this.acceptIdent("not"),this.peek(ro.ParenthesisL))this.restoreAtMark(t),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition())}return this.finish(e)},e.prototype._parseRatio=function(){var e=this.mark(),t=this.create(ca);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(t):this.finish(t,Nl.NumberExpected):(this.restoreAtMark(e),null):null},e.prototype._parseMediaCondition=function(){var e=this.create(Zs);this.acceptIdent("not");for(var t=!0;t;){if(!this.accept(ro.ParenthesisL))return this.finish(e,Nl.LeftParenthesisExpected,[],[ro.CurlyL]);if(this.peek(ro.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(ro.ParenthesisR))return this.finish(e,Nl.RightParenthesisExpected,[],[ro.CurlyL]);t=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)},e.prototype._parseMediaFeature=function(){var e=this,t=[ro.ParenthesisR],n=this.create(ea),i=function(){return e.acceptDelim("<")||e.acceptDelim(">")?(e.hasWhitespace()||e.acceptDelim("="),!0):!!e.acceptDelim("=")};if(n.addChild(this._parseMediaFeatureName())){if(this.accept(ro.Colon)){if(!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,Nl.TermExpected,[],t)}else if(i()){if(!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,Nl.TermExpected,[],t);if(i()&&!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,Nl.TermExpected,[],t)}}else{if(!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,Nl.IdentifierExpected,[],t);if(!i())return this.finish(n,Nl.OperatorExpected,[],t);if(!n.addChild(this._parseMediaFeatureName()))return this.finish(n,Nl.IdentifierExpected,[],t);if(i()&&!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,Nl.TermExpected,[],t)}return this.finish(n)},e.prototype._parseMediaFeatureName=function(){return this._parseIdent()},e.prototype._parseMediaFeatureValue=function(){return this._parseRatio()||this._parseTermExpression()},e.prototype._parseMedium=function(){var e=this.create(us);return e.addChild(this._parseIdent())?this.finish(e):null},e.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},e.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var e=this.create(na);if(this.consumeToken(),e.addChild(this._parsePageSelector()))for(;this.accept(ro.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,Nl.IdentifierExpected);return this._parseBody(e,this._parsePageDeclaration.bind(this))},e.prototype._parsePageMarginBox=function(){if(!this.peek(ro.AtKeyword))return null;var e=this.create(ia);return this.acceptOneKeyword(vh)||this.markError(e,Nl.UnknownAtRule,[],[ro.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},e.prototype._parsePageSelector=function(){if(!this.peek(ro.Ident)&&!this.peek(ro.Colon))return null;var e=this.create(us);return e.addChild(this._parseIdent()),this.accept(ro.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,Nl.IdentifierExpected):this.finish(e)},e.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var e=this.create(Xs);return this.consumeToken(),this.resync([],[ro.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))},e.prototype._parseUnknownAtRule=function(){if(!this.peek(ro.AtKeyword))return null;var e=this.create(Sa);e.addChild(this._parseUnknownAtRuleName());var t=0,n=0,i=0,r=0;e:for(;;){switch(this.token.type){case ro.SemiColon:if(0===n&&0===i&&0===r)break e;break;case ro.EOF:return n>0?this.finish(e,Nl.RightCurlyExpected):r>0?this.finish(e,Nl.RightSquareBracketExpected):i>0?this.finish(e,Nl.RightParenthesisExpected):this.finish(e);case ro.CurlyL:t++,n++;break;case ro.CurlyR:if(n--,t>0&&0===n){if(this.consumeToken(),r>0)return this.finish(e,Nl.RightSquareBracketExpected);if(i>0)return this.finish(e,Nl.RightParenthesisExpected);break e}if(n<0){if(0===i&&0===r)break e;return this.finish(e,Nl.LeftCurlyExpected)}break;case ro.ParenthesisL:i++;break;case ro.ParenthesisR:if(--i<0)return this.finish(e,Nl.LeftParenthesisExpected);break;case ro.BracketL:r++;break;case ro.BracketR:if(--r<0)return this.finish(e,Nl.LeftSquareBracketExpected)}this.consumeToken()}return e},e.prototype._parseUnknownAtRuleName=function(){var e=this.create(us);return this.accept(ro.AtKeyword)?this.finish(e):e},e.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(ro.Dashmatch)||this.peek(ro.Includes)||this.peek(ro.SubstringOperator)||this.peek(ro.PrefixOperator)||this.peek(ro.SuffixOperator)||this.peekDelim("=")){var e=this.createNode(rs.Operator);return this.consumeToken(),this.finish(e)}return null},e.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var e=this.create(us);return this.consumeToken(),this.finish(e)},e.prototype._parseCombinator=function(){if(this.peekDelim(">")){var e=this.create(us);this.consumeToken();var t=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=rs.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=rs.SelectorCombinatorParent,this.finish(e)}if(this.peekDelim("+")){e=this.create(us);return this.consumeToken(),e.type=rs.SelectorCombinatorSibling,this.finish(e)}if(this.peekDelim("~")){e=this.create(us);return this.consumeToken(),e.type=rs.SelectorCombinatorAllSiblings,this.finish(e)}if(this.peekDelim("/")){e=this.create(us);this.consumeToken();t=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=rs.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null},e.prototype._parseSimpleSelector=function(){var e=this.create(Ss),t=0;for(e.addChild(this._parseElementName())&&t++;(0===t||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return t>0?this.finish(e):null},e.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},e.prototype._parseSelectorIdent=function(){return this._parseIdent()},e.prototype._parseHash=function(){if(!this.peek(ro.Hash)&&!this.peekDelim("#"))return null;var e=this.createNode(rs.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,Nl.IdentifierExpected)}else this.consumeToken();return this.finish(e)},e.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var e=this.createNode(rs.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,Nl.IdentifierExpected):this.finish(e)},e.prototype._parseElementName=function(){var e=this.mark(),t=this.createNode(rs.ElementNameSelector);return t.addChild(this._parseNamespacePrefix()),t.addChild(this._parseSelectorIdent())||this.acceptDelim("*")?this.finish(t):(this.restoreAtMark(e),null)},e.prototype._parseNamespacePrefix=function(){var e=this.mark(),t=this.createNode(rs.NamespacePrefix);return!t.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(t):(this.restoreAtMark(e),null)},e.prototype._parseAttrib=function(){if(!this.peek(ro.BracketL))return null;var e=this.create(aa);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i"),this.acceptIdent("s")),this.accept(ro.BracketR)?this.finish(e):this.finish(e,Nl.RightSquareBracketExpected)):this.finish(e,Nl.IdentifierExpected)},e.prototype._parsePseudo=function(){var e=this,t=this._tryParsePseudoIdentifier();if(t){if(!this.hasWhitespace()&&this.accept(ro.ParenthesisL)){if(t.addChild(this.try((function(){var t=e.create(us);if(!t.addChild(e._parseSelector(!1)))return null;for(;e.accept(ro.Comma)&&t.addChild(e._parseSelector(!1)););return e.peek(ro.ParenthesisR)?e.finish(t):null}))||this._parseBinaryExpr()),!this.accept(ro.ParenthesisR))return this.finish(t,Nl.RightParenthesisExpected)}return this.finish(t)}return null},e.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(ro.Colon))return null;var e=this.mark(),t=this.createNode(rs.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(ro.Colon),this.hasWhitespace()||!t.addChild(this._parseIdent())?this.finish(t,Nl.IdentifierExpected):this.finish(t))},e.prototype._tryParsePrio=function(){var e=this.mark(),t=this._parsePrio();return t||(this.restoreAtMark(e),null)},e.prototype._parsePrio=function(){if(!this.peek(ro.Exclamation))return null;var e=this.createNode(rs.Prio);return this.accept(ro.Exclamation)&&this.acceptIdent("important")?this.finish(e):null},e.prototype._parseExpr=function(e){void 0===e&&(e=!1);var t=this.create(ra);if(!t.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(ro.Comma)){if(e)return this.finish(t);this.consumeToken()}else if(!this.hasWhitespace())break;if(!t.addChild(this._parseBinaryExpr()))break}return this.finish(t)},e.prototype._parseUnicodeRange=function(){if(!this.peekIdent("u"))return null;var e=this.create(fs);return this.acceptUnicodeRange()?this.finish(e):null},e.prototype._parseNamedLine=function(){if(!this.peek(ro.BracketL))return null;var e=this.createNode(rs.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(ro.BracketR)?this.finish(e):this.finish(e,Nl.RightSquareBracketExpected)},e.prototype._parseBinaryExpr=function(e,t){var n=this.create(oa);if(!n.setLeft(e||this._parseTerm()))return null;if(!n.setOperator(t||this._parseOperator()))return this.finish(n);if(!n.setRight(this._parseTerm()))return this.finish(n,Nl.TermExpected);n=this.finish(n);var i=this._parseOperator();return i&&(n=this._parseBinaryExpr(n,i)),this.finish(n)},e.prototype._parseTerm=function(){var e=this.create(sa);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null},e.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},e.prototype._parseOperation=function(){if(!this.peek(ro.ParenthesisL))return null;var e=this.create(us);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(ro.ParenthesisR)?this.finish(e):this.finish(e,Nl.RightParenthesisExpected)},e.prototype._parseNumeric=function(){if(this.peek(ro.Num)||this.peek(ro.Percentage)||this.peek(ro.Resolution)||this.peek(ro.Length)||this.peek(ro.EMS)||this.peek(ro.EXS)||this.peek(ro.Angle)||this.peek(ro.Time)||this.peek(ro.Dimension)||this.peek(ro.Freq)){var e=this.create(ua);return this.consumeToken(),this.finish(e)}return null},e.prototype._parseStringLiteral=function(){if(!this.peek(ro.String)&&!this.peek(ro.BadString))return null;var e=this.createNode(rs.StringLiteral);return this.consumeToken(),this.finish(e)},e.prototype._parseURILiteral=function(){if(!this.peekRegExp(ro.Ident,/^url(-prefix)?$/i))return null;var e=this.mark(),t=this.createNode(rs.URILiteral);return this.accept(ro.Ident),this.hasWhitespace()||!this.peek(ro.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),t.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(ro.ParenthesisR)?this.finish(t):this.finish(t,Nl.RightParenthesisExpected))},e.prototype._parseURLArgument=function(){var e=this.create(us);return this.accept(ro.String)||this.accept(ro.BadString)||this.acceptUnquotedString()?this.finish(e):null},e.prototype._parseIdent=function(e){if(!this.peek(ro.Ident))return null;var t=this.create(gs);return e&&(t.referenceTypes=e),t.isCustomProperty=this.peekRegExp(ro.Ident,/^--/),this.consumeToken(),this.finish(t)},e.prototype._parseFunction=function(){var e=this.mark(),t=this.create(Ns);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(ro.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(ro.Comma)&&!this.peek(ro.ParenthesisR);)t.getArguments().addChild(this._parseFunctionArgument())||this.markError(t,Nl.ExpressionExpected);return this.accept(ro.ParenthesisR)?this.finish(t):this.finish(t,Nl.RightParenthesisExpected)},e.prototype._parseFunctionIdentifier=function(){if(!this.peek(ro.Ident))return null;var e=this.create(gs);if(e.referenceTypes=[ss.Function],this.acceptIdent("progid")){if(this.accept(ro.Colon))for(;this.accept(ro.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)},e.prototype._parseFunctionArgument=function(){var e=this.create(Ds);return e.setValue(this._parseExpr(!0))?this.finish(e):null},e.prototype._parseHexColor=function(){if(this.peekRegExp(ro.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){var e=this.create(la);return this.consumeToken(),this.finish(e)}return null},e}();function Ch(e,t){return-1!==e.indexOf(t)}function _h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],i=0,r=e;i<r.length;i++)for(var o=0,s=r[i];o<s.length;o++){var a=s[o];Ch(n,a)||n.push(a)}return n}var kh,Eh=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Rh=function(){function e(e,t){this.offset=e,this.length=t,this.symbols=[],this.parent=null,this.children=[]}return e.prototype.addChild=function(e){this.children.push(e),e.setParent(this)},e.prototype.setParent=function(e){this.parent=e},e.prototype.findScope=function(e,t){return void 0===t&&(t=0),this.offset<=e&&this.offset+this.length>e+t||this.offset===e&&this.length===t?this.findInScope(e,t):null},e.prototype.findInScope=function(e,t){void 0===t&&(t=0);var n=e+t,i=function(e,t){var n=0,i=e.length;if(0===i)return 0;for(;n<i;){var r=Math.floor((n+i)/2);t(e[r])?i=r:n=r+1}return n}(this.children,(function(e){return e.offset>n}));if(0===i)return this;var r=this.children[i-1];return r.offset<=e&&r.offset+r.length>=e+t?r.findInScope(e,t):this},e.prototype.addSymbol=function(e){this.symbols.push(e)},e.prototype.getSymbol=function(e,t){for(var n=0;n<this.symbols.length;n++){var i=this.symbols[n];if(i.name===e&&i.type===t)return i}return null},e.prototype.getSymbols=function(){return this.symbols},e}(),Nh=function(e){function t(){return e.call(this,0,Number.MAX_VALUE)||this}return Eh(t,e),t}(Rh),Fh=function(){return function(e,t,n,i){this.name=e,this.value=t,this.node=n,this.type=i}}(),Dh=function(){function e(e){this.scope=e}return e.prototype.addSymbol=function(e,t,n,i){if(-1!==e.offset){var r=this.scope.findScope(e.offset,e.length);r&&r.addSymbol(new Fh(t,n,e,i))}},e.prototype.addScope=function(e){if(-1!==e.offset){var t=this.scope.findScope(e.offset,e.length);if(t&&(t.offset!==e.offset||t.length!==e.length)){var n=new Rh(e.offset,e.length);return t.addChild(n),n}return t}return null},e.prototype.addSymbolToChildScope=function(e,t,n,i,r){if(e&&-1!==e.offset){var o=this.addScope(e);o&&o.addSymbol(new Fh(n,i,t,r))}},e.prototype.visitNode=function(e){switch(e.type){case rs.Keyframe:return this.addSymbol(e,e.getName(),void 0,ss.Keyframe),!0;case rs.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(e);case rs.VariableDeclaration:return this.visitVariableDeclarationNode(e);case rs.Ruleset:return this.visitRuleSet(e);case rs.MixinDeclaration:return this.addSymbol(e,e.getName(),void 0,ss.Mixin),!0;case rs.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,ss.Function),!0;case rs.FunctionParameter:return this.visitFunctionParameterNode(e);case rs.Declarations:return this.addScope(e),!0;case rs.For:var t=e,n=t.getDeclarations();return n&&t.variable&&this.addSymbolToChildScope(n,t.variable,t.variable.getName(),void 0,ss.Variable),!0;case rs.Each:var i=e,r=i.getDeclarations();if(r)for(var o=0,s=i.getVariables().getChildren();o<s.length;o++){var a=s[o];this.addSymbolToChildScope(r,a,a.getName(),void 0,ss.Variable)}return!0}return!0},e.prototype.visitRuleSet=function(e){var t=this.scope.findScope(e.offset,e.length);if(t)for(var n=0,i=e.getSelectors().getChildren();n<i.length;n++){var r=i[n];r instanceof xs&&1===r.getChildren().length&&t.addSymbol(new Fh(r.getChild(0).getText(),void 0,r,ss.Rule))}return!0},e.prototype.visitVariableDeclarationNode=function(e){var t=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),t,ss.Variable),!0},e.prototype.visitFunctionParameterNode=function(e){var t=e.getParent().getDeclarations();if(t){var n=e.getDefaultValue(),i=n?n.getText():void 0;this.addSymbolToChildScope(t,e,e.getName(),i,ss.Variable)}return!0},e.prototype.visitCustomPropertyDeclarationNode=function(e){var t=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),t,ss.Variable),!0},e.prototype.addCSSVariable=function(e,t,n,i){-1!==e.offset&&this.scope.addSymbol(new Fh(t,n,e,i))},e}(),Th=function(){function e(e){this.global=new Nh,e.acceptVisitor(new Dh(this.global))}return e.prototype.findSymbolsAtOffset=function(e,t){for(var n=this.global.findScope(e,0),i=[],r={};n;){for(var o=n.getSymbols(),s=0;s<o.length;s++){var a=o[s];a.type!==t||r[a.name]||(i.push(a),r[a.name]=!0)}n=n.parent}return i},e.prototype.internalFindSymbol=function(e,t){var n=e;if(e.parent instanceof Fs&&e.parent.getParent()instanceof ys&&(n=e.parent.getParent().getDeclarations()),e.parent instanceof Ds&&e.parent.getParent()instanceof Ns){var i=e.parent.getParent().getIdentifier();if(i){var r=this.internalFindSymbol(i,[ss.Function]);r&&(n=r.node.getDeclarations())}}if(!n)return null;for(var o=e.getText(),s=this.global.findScope(n.offset,n.length);s;){for(var a=0;a<t.length;a++){var l=t[a],c=s.getSymbol(o,l);if(c)return c}s=s.parent}return null},e.prototype.evaluateReferenceTypes=function(e){if(e instanceof gs){var t=e.referenceTypes;if(t)return t;if(e.isCustomProperty)return[ss.Variable];var n=function(e){var t=e.findParent(rs.Declaration),n=t&&t.getValue();return n&&n.encloses(e)?t:null}(e);if(n){var i=n.getNonPrefixedPropertyName();if(("animation"===i||"animation-name"===i)&&n.getValue()&&n.getValue().offset===e.offset)return[ss.Keyframe]}}else if(e instanceof ga)return[ss.Variable];return e.findAParent(rs.Selector,rs.ExtendsReference)?[ss.Rule]:null},e.prototype.findSymbolFromNode=function(e){if(!e)return null;for(;e.type===rs.Interpolation;)e=e.getParent();var t=this.evaluateReferenceTypes(e);return t?this.internalFindSymbol(e,t):null},e.prototype.matchesSymbol=function(e,t){if(!e)return!1;for(;e.type===rs.Interpolation;)e=e.getParent();if(!e.matches(t.name))return!1;var n=this.evaluateReferenceTypes(e);return!(!n||-1===n.indexOf(t.type))&&this.internalFindSymbol(e,n)===t},e.prototype.findSymbol=function(e,t,n){for(var i=this.global.findScope(n);i;){var r=i.getSymbol(e,t);if(r)return r;i=i.parent}return null},e}();kh=(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,i="",r=0,o=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(o===a-1||1===s);else if(o!==a-1&&2===s){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var l=i.lastIndexOf("/");if(l!==i.length-1){-1===l?(i="",r=0):r=(i=i.slice(0,l)).length-1-i.lastIndexOf("/"),o=a,s=0;continue}}else if(2===i.length||1===i.length){i="",r=0,o=a,s=0;continue}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,a):i=e.slice(o+1,a),r=a-o-1;o=a,s=0}else 46===n&&-1!==s?++s:s=-1}return i}var i={resolve:function(){for(var e,i="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var s;o>=0?s=arguments[o]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(i=s+"/"+i,r=47===s.charCodeAt(0))}return i=n(i,!r),r?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&r&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];t(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var o=e.length,s=o-r,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,c=s<l?s:l,h=-1,d=0;d<=c;++d){if(d===c){if(l>c){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else s>c&&(47===e.charCodeAt(r+d)?h=d:0===d&&(h=0));break}var p=e.charCodeAt(r+d);if(p!==n.charCodeAt(a+d))break;47===p&&(h=d)}var u="";for(d=r+h+1;d<=o;++d)d!==o&&47!==e.charCodeAt(d)||(0===u.length?u+="..":u+="/..");return u.length>0?u+n.slice(a+h):(a+=h,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),i=47===n,r=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!o){r=s;break}}else o=!1;return-1===r?i?"/":".":i&&1===r?"//":e.slice(0,r)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var i,r=0,o=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(i=e.length-1;i>=0;--i){var c=e.charCodeAt(i);if(47===c){if(!s){r=i+1;break}}else-1===l&&(s=!1,l=i+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(o=i):(a=-1,o=l))}return r===o?o=l:-1===o&&(o=e.length),e.slice(r,o)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!s){r=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(r,o)},extname:function(e){t(e);for(var n=-1,i=0,r=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(o=!1,r=a+1),46===l?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!o){i=a+1;break}}return-1===n||-1===r||0===s||1===s&&n===r-1&&n===i+1?"":e.slice(n,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+"/"+i:i}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i,r=e.charCodeAt(0),o=47===r;o?(n.root="/",i=1):i=0;for(var s=-1,a=0,l=-1,c=!0,h=e.length-1,d=0;h>=i;--h)if(47!==(r=e.charCodeAt(h)))-1===l&&(c=!1,l=h+1),46===r?-1===s?s=h:1!==d&&(d=1):-1!==s&&(d=-1);else if(!c){a=h+1;break}return-1===s||-1===l||0===d||1===d&&s===l-1&&s===a+1?-1!==l&&(n.base=n.name=0===a&&o?e.slice(1,l):e.slice(a,l)):(0===a&&o?(n.name=e.slice(1,s),n.base=e.slice(1,l)):(n.name=e.slice(a,s),n.base=e.slice(a,l)),n.ext=e.slice(s,l)),a>0?n.dir=e.slice(0,a-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i},447:(e,t,n)=>{var i;if(n.r(t),n.d(t,{URI:()=>f,Utils:()=>E}),"object"==typeof process)i="win32"===process.platform;else if("object"==typeof navigator){var r=navigator.userAgent;i=r.indexOf("Windows")>=0}var o,s,a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=/^\w[\w\d+.-]*$/,c=/^\//,h=/^\/\//;function d(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!l.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!c.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(h.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}var p="",u="/",m=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,f=function(){function e(e,t,n,i,r,o){void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||p,this.authority=e.authority||p,this.path=e.path||p,this.query=e.query||p,this.fragment=e.fragment||p):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||p,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u}return t}(this.scheme,n||p),this.query=i||p,this.fragment=r||p,d(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"string"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return x(this,!1)},enumerable:!1,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,i=e.path,r=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=p),void 0===n?n=this.authority:null===n&&(n=p),void 0===i?i=this.path:null===i&&(i=p),void 0===r?r=this.query:null===r&&(r=p),void 0===o?o=this.fragment:null===o&&(o=p),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&o===this.fragment?this:new b(t,n,i,r,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=m.exec(e);return n?new b(n[2]||p,k(n[4]||p),k(n[5]||p),k(n[7]||p),k(n[9]||p),t):new b(p,p,p,p,p)},e.file=function(e){var t=p;if(i&&(e=e.replace(/\\/g,u)),e[0]===u&&e[1]===u){var n=e.indexOf(u,2);-1===n?(t=e.substring(2),e=u):(t=e.substring(2,n),e=e.substring(n)||u)}return new b("file",t,e,p,p)},e.from=function(e){var t=new b(e.scheme,e.authority,e.path,e.query,e.fragment);return d(t,!0),t},e.prototype.toString=function(e){return void 0===e&&(e=!1),S(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new b(t);return n._formatted=t.external,n._fsPath=t._sep===g?t.fsPath:null,n}return t},e}(),g=i?1:void 0,b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return a(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=x(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?S(this,!0):(this._formatted||(this._formatted=S(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(f),v=((s={})[58]="%3A",s[47]="%2F",s[63]="%3F",s[35]="%23",s[91]="%5B",s[93]="%5D",s[64]="%40",s[33]="%21",s[36]="%24",s[38]="%26",s[39]="%27",s[40]="%28",s[41]="%29",s[42]="%2A",s[43]="%2B",s[44]="%2C",s[59]="%3B",s[61]="%3D",s[32]="%20",s);function y(e,t){for(var n=void 0,i=-1,r=0;r<e.length;r++){var o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));var s=v[o];void 0!==s?(-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),n+=s):-1===i&&(i=r)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function w(e){for(var t=void 0,n=0;n<e.length;n++){var i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=v[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function x(e,t){var n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?"//".concat(e.authority).concat(e.path):47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i&&(n=n.replace(/\//g,"\\")),n}function S(e,t){var n=t?w:y,i="",r=e.scheme,o=e.authority,s=e.path,a=e.query,l=e.fragment;if(r&&(i+=r,i+=":"),(o||"file"===r)&&(i+=u,i+=u),o){var c=o.indexOf("@");if(-1!==c){var h=o.substr(0,c);o=o.substr(c+1),-1===(c=h.indexOf(":"))?i+=n(h,!1):(i+=n(h.substr(0,c),!1),i+=":",i+=n(h.substr(c+1),!1)),i+="@"}-1===(c=(o=o.toLowerCase()).indexOf(":"))?i+=n(o,!1):(i+=n(o.substr(0,c),!1),i+=o.substr(c))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(d=s.charCodeAt(1))>=65&&d<=90&&(s="/".concat(String.fromCharCode(d+32),":").concat(s.substr(3)));else if(s.length>=2&&58===s.charCodeAt(1)){var d;(d=s.charCodeAt(0))>=65&&d<=90&&(s="".concat(String.fromCharCode(d+32),":").concat(s.substr(2)))}i+=n(s,!0)}return a&&(i+="?",i+=n(a,!1)),l&&(i+="#",i+=t?l:y(l,!1)),i}function C(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}var _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function k(e){return e.match(_)?e.replace(_,(function(e){return C(e)})):e}var E,R,N=n(470),F=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},D=N.posix||N;(R=E||(E={})).joinPath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.with({path:D.join.apply(D,F([e.path],t,!1))})},R.resolvePath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=e.path||"/";return e.with({path:D.resolve.apply(D,F([i],t,!1))})},R.dirname=function(e){var t=D.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)?e:e.with({path:t})},R.basename=function(e){return D.basename(e.path)},R.extname=function(e){return D.extname(e.path)}}},t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}return n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(447)})();var{URI:Ah,Utils:Mh}=kh;function zh(e){return Mh.dirname(Ah.parse(e)).toString()}function Ih(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Mh.joinPath.apply(Mh,function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}([Ah.parse(e)],t,!1)).toString()}var Lh=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(gu){o(gu)}}function a(e){try{l(i.throw(e))}catch(gu){o(gu)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},Ph=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(gu){o=[6,gu],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Oh=function(){function e(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}return e.prototype.onCssURILiteralValue=function(e){this.literalCompletions.push(e)},e.prototype.onCssImportPath=function(e){this.importCompletions.push(e)},e.prototype.computeCompletions=function(e,t){return Lh(this,void 0,void 0,(function(){var n,i,r,o,s,a,l,c,h,d,p,u,m,f,g,b,v;return Ph(this,(function(y){switch(y.label){case 0:n={items:[],isIncomplete:!1},i=0,r=this.literalCompletions,y.label=1;case 1:return i<r.length?(o=r[i],s=o.uriValue,"."!==(m=Uh(s))&&".."!==m?[3,2]:(n.isIncomplete=!0,[3,4])):[3,5];case 2:return[4,this.providePathSuggestions(s,o.position,o.range,e,t)];case 3:for(a=y.sent(),l=0,c=a;l<c.length;l++)v=c[l],n.items.push(v);y.label=4;case 4:return i++,[3,1];case 5:h=0,d=this.importCompletions,y.label=6;case 6:return h<d.length?(p=d[h],u=p.pathValue,"."!==(m=Uh(u))&&".."!==m?[3,7]:(n.isIncomplete=!0,[3,9])):[3,10];case 7:return[4,this.providePathSuggestions(u,p.position,p.range,e,t)];case 8:for(f=y.sent(),"scss"===e.languageId&&f.forEach((function(e){es(e.label,"_")&&ts(e.label,".scss")&&(e.textEdit?e.textEdit.newText=e.label.slice(1,-5):e.label=e.label.slice(1,-5))})),g=0,b=f;g<b.length;g++)v=b[g],n.items.push(v);y.label=9;case 9:return h++,[3,6];case 10:return[2,n]}}))}))},e.prototype.providePathSuggestions=function(e,t,n,i,r){return Lh(this,void 0,void 0,(function(){var o,s,a,l,c,h,d,p,u,m,f,g,b,v,y;return Ph(this,(function(w){switch(w.label){case 0:if(o=Uh(e),s=es(e,"'")||es(e,'"'),a=s?o.slice(0,t.character-(n.start.character+1)):o.slice(0,t.character-n.start.character),l=i.uri,c=s?function(e,t,n){var i=qh(e.start,t),r=qh(e.end,n);return Pa.create(i,r)}(n,1,-1):n,h=function(e,t,n){var i,r=e.lastIndexOf("/");if(-1===r)i=n;else{var o=t.slice(r+1),s=qh(n.end,-o.length),a=o.indexOf(" "),l=void 0;l=-1!==a?qh(s,a):n.end,i=Pa.create(s,l)}return i}(a,o,c),d=a.substring(0,a.lastIndexOf("/")+1),!(p=r.resolveReference(d||".",l)))return[3,4];w.label=1;case 1:return w.trys.push([1,3,,4]),u=[],[4,this.readDirectory(p)];case 2:for(m=w.sent(),f=0,g=m;f<g.length;f++)b=g[f],v=b[0],y=b[1],v.charCodeAt(0)===Wh||y!==Mc.Directory&&Ih(p,v)===l||u.push(Vh(v,y===Mc.Directory,h));return[2,u];case 3:return w.sent(),[3,4];case 4:return[2,[]]}}))}))},e}(),Wh=".".charCodeAt(0);function Uh(e){return es(e,"'")||es(e,'"')?e.slice(1,-1):e}function Vh(e,t,n){return t?{label:Kh(e+="/"),kind:Ul.Folder,textEdit:hl.replace(n,Kh(e)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:Kh(e),kind:Ul.File,textEdit:hl.replace(n,Kh(e))}}function Kh(e){return e.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function qh(e,t){return Ia.create(e.line,e.character+t)}var Bh,jh,$h=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(gu){o(gu)}}function a(e){try{l(i.throw(e))}catch(gu){o(gu)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},Hh=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(gu){o=[6,gu],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Gh=Da(),Jh=Kl.Snippet,Xh={title:"Suggest",command:"editor.action.triggerSuggest"};(jh=Bh||(Bh={})).Enums=" ",jh.Normal="d",jh.VendorPrefixed="x",jh.Term="y",jh.Variable="z";var Yh=function(){function e(e,t,n){void 0===e&&(e=null),this.variablePrefix=e,this.lsOptions=t,this.cssDataManager=n,this.completionParticipants=[]}return e.prototype.configure=function(e){this.defaultSettings=e},e.prototype.getSymbolContext=function(){return this.symbolContext||(this.symbolContext=new Th(this.styleSheet)),this.symbolContext},e.prototype.setCompletionParticipants=function(e){this.completionParticipants=e||[]},e.prototype.doComplete2=function(e,t,n,i,r){return void 0===r&&(r=this.defaultSettings),$h(this,void 0,void 0,(function(){var o,s,a,l;return Hh(this,(function(c){switch(c.label){case 0:if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return[2,this.doComplete(e,t,n,r)];o=new Oh(this.lsOptions.fileSystemProvider.readDirectory),s=this.completionParticipants,this.completionParticipants=[o].concat(s),a=this.doComplete(e,t,n,r),c.label=1;case 1:return c.trys.push([1,,3,4]),[4,o.computeCompletions(e,i)];case 2:return l=c.sent(),[2,{isIncomplete:a.isIncomplete||l.isIncomplete,items:l.items.concat(a.items)}];case 3:return this.completionParticipants=s,[7];case 4:return[2]}}))}))},e.prototype.doComplete=function(e,t,n,i){this.offset=e.offsetAt(t),this.position=t,this.currentWord=function(e,t){var n=t-1,i=e.getText();for(;n>=0&&-1===' \t\n\r":{[()]},*>+'.indexOf(i.charAt(n));)n--;return i.substring(n+1,t)}(e,this.offset),this.defaultReplaceRange=Pa.create(Ia.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=n,this.documentSettings=i;try{var r={isIncomplete:!1,items:[]};this.nodePath=hs(this.styleSheet,this.offset);for(var o=this.nodePath.length-1;o>=0;o--){var s=this.nodePath[o];if(s instanceof Rs)this.getCompletionsForDeclarationProperty(s.getParent(),r);else if(s instanceof ra)s.parent instanceof fa?this.getVariableProposals(null,r):this.getCompletionsForExpression(s,r);else if(s instanceof Ss){var a=s.findAParent(rs.ExtendsReference,rs.Ruleset);if(a)if(a.type===rs.ExtendsReference)this.getCompletionsForExtendsReference(a,s,r);else{var l=a;this.getCompletionsForSelector(l,l&&l.isNested(),r)}}else if(s instanceof Ds)this.getCompletionsForFunctionArgument(s,s.getParent(),r);else if(s instanceof vs)this.getCompletionsForDeclarations(s,r);else if(s instanceof ma)this.getCompletionsForVariableDeclaration(s,r);else if(s instanceof ws)this.getCompletionsForRuleSet(s,r);else if(s instanceof fa)this.getCompletionsForInterpolation(s,r);else if(s instanceof Ls)this.getCompletionsForFunctionDeclaration(s,r);else if(s instanceof wa)this.getCompletionsForMixinReference(s,r);else if(s instanceof Ns)this.getCompletionsForFunctionArgument(null,s,r);else if(s instanceof Js)this.getCompletionsForSupports(s,r);else if(s instanceof ta)this.getCompletionsForSupportsCondition(s,r);else if(s instanceof ba)this.getCompletionsForExtendsReference(s,null,r);else if(s.type===rs.URILiteral)this.getCompletionForUriLiteralValue(s,r);else if(null===s.parent)this.getCompletionForTopLevel(r);else{if(s.type!==rs.StringLiteral||!this.isImportPathParent(s.parent.type))continue;this.getCompletionForImportPath(s,r)}if(r.items.length>0||this.offset>s.offset)return this.finalize(r)}return this.getCompletionsForStylesheet(r),0===r.items.length&&this.variablePrefix&&0===this.currentWord.indexOf(this.variablePrefix)&&this.getVariableProposals(null,r),this.finalize(r)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},e.prototype.isImportPathParent=function(e){return e===rs.Import},e.prototype.finalize=function(e){return e},e.prototype.findInNodePath=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=this.nodePath.length-1;n>=0;n--){var i=this.nodePath[n];if(-1!==e.indexOf(i.type))return i}return null},e.prototype.getCompletionsForDeclarationProperty=function(e,t){return this.getPropertyProposals(e,t)},e.prototype.getPropertyProposals=function(e,t){var n=this,i=this.isTriggerPropertyValueCompletionEnabled,r=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach((function(o){var s,a,l=!1;e?(s=n.getCompletionRange(e.getProperty()),a=o.name,wh(e.colonPosition)||(a+=": ",l=!0)):(s=n.getCompletionRange(null),a=o.name+": ",l=!0),!e&&r&&(a+="$0;"),e&&!e.semicolonPosition&&r&&n.offset>=n.textDocument.offsetAt(s.end)&&(a+="$0;");var c={label:o.name,documentation:Kc(o,n.doesSupportMarkdown()),tags:Qh(o)?[Bl.Deprecated]:[],textEdit:hl.replace(s,a),insertTextFormat:Kl.Snippet,kind:Ul.Property};o.restrictions||(l=!1),i&&l&&(c.command=Xh);var h=(255-("number"===typeof o.relevance?Math.min(Math.max(o.relevance,0),99):50)).toString(16),d=es(o.name,"-")?Bh.VendorPrefixed:Bh.Normal;c.sortText=d+"_"+h,t.items.push(c)})),this.completionParticipants.forEach((function(e){e.onCssProperty&&e.onCssProperty({propertyName:n.currentWord,range:n.defaultReplaceRange})})),t},Object.defineProperty(e.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var e,t;return null===(t=null===(e=this.documentSettings)||void 0===e?void 0:e.triggerPropertyValueCompletion)||void 0===t||t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var e,t;return null===(t=null===(e=this.documentSettings)||void 0===e?void 0:e.completePropertyWithSemicolon)||void 0===t||t},enumerable:!1,configurable:!0}),e.prototype.getCompletionsForDeclarationValue=function(e,t){for(var n=this,i=e.getFullPropertyName(),r=this.cssDataManager.getProperty(i),o=e.getValue()||null;o&&o.hasChildren();)o=o.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach((function(e){e.onCssPropertyValue&&e.onCssPropertyValue({propertyName:i,propertyValue:n.currentWord,range:n.getCompletionRange(o)})})),r){if(r.restrictions)for(var s=0,a=r.restrictions;s<a.length;s++){switch(a[s]){case"color":this.getColorProposals(r,o,t);break;case"position":this.getPositionProposals(r,o,t);break;case"repeat":this.getRepeatStyleProposals(r,o,t);break;case"line-style":this.getLineStyleProposals(r,o,t);break;case"line-width":this.getLineWidthProposals(r,o,t);break;case"geometry-box":this.getGeometryBoxProposals(r,o,t);break;case"box":this.getBoxProposals(r,o,t);break;case"image":this.getImageProposals(r,o,t);break;case"timing-function":this.getTimingFunctionProposals(r,o,t);break;case"shape":this.getBasicShapeProposals(r,o,t)}}this.getValueEnumProposals(r,o,t),this.getCSSWideKeywordProposals(r,o,t),this.getUnitProposals(r,o,t)}else for(var l=function(e,t){var n=t.getFullPropertyName(),i=new Zh;function r(e){return(e instanceof gs||e instanceof ua||e instanceof la)&&i.add(e.getText()),!0}function o(e){var t=e.getFullPropertyName();return n===t}function s(e){if(e instanceof ks&&e!==t&&o(e)){var n=e.getValue();n&&n.accept(r)}return!0}return e.accept(s),i}(this.styleSheet,e),c=0,h=l.getEntries();c<h.length;c++){var d=h[c];t.items.push({label:d,textEdit:hl.replace(this.getCompletionRange(o),d),kind:Ul.Value})}return this.getVariableProposals(o,t),this.getTermProposals(r,o,t),t},e.prototype.getValueEnumProposals=function(e,t,n){if(e.values)for(var i=0,r=e.values;i<r.length;i++){var o=r[i],s=o.name,a=void 0;if(ts(s,")")){var l=s.lastIndexOf("(");-1!==l&&(s=s.substr(0,l)+"($1)",a=Jh)}var c=Bh.Enums;es(o.name,"-")&&(c+=Bh.VendorPrefixed);var h={label:o.name,documentation:Kc(o,this.doesSupportMarkdown()),tags:Qh(e)?[Bl.Deprecated]:[],textEdit:hl.replace(this.getCompletionRange(t),s),sortText:c,kind:Ul.Value,insertTextFormat:a};n.items.push(h)}return n},e.prototype.getCSSWideKeywordProposals=function(e,t,n){for(var i in hh)n.items.push({label:i,documentation:hh[i],textEdit:hl.replace(this.getCompletionRange(t),i),kind:Ul.Value});for(var r in dh){var o=ed(r);n.items.push({label:r,documentation:dh[r],textEdit:hl.replace(this.getCompletionRange(t),o),kind:Ul.Function,insertTextFormat:Jh,command:es(r,"var")?Xh:void 0})}return n},e.prototype.getCompletionsForInterpolation=function(e,t){return this.offset>=e.offset+2&&this.getVariableProposals(null,t),t},e.prototype.getVariableProposals=function(e,t){for(var n=0,i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ss.Variable);n<i.length;n++){var r=i[n],o=es(r.name,"--")?"var(".concat(r.name,")"):r.name,s={label:r.name,documentation:r.value?ns(r.value):r.value,textEdit:hl.replace(this.getCompletionRange(e),o),kind:Ul.Variable,sortText:Bh.Variable};if("string"===typeof s.documentation&&id(s.documentation)&&(s.kind=Ul.Color),r.node.type===rs.FunctionParameter){var a=r.node.getParent();a.type===rs.MixinDeclaration&&(s.detail=Gh("completion.argument","argument from '{0}'",a.getName()))}t.items.push(s)}return t},e.prototype.getVariableProposalsForCSSVarFunction=function(e){var t=new Zh;this.styleSheet.acceptVisitor(new nd(t,this.offset));for(var n=0,i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ss.Variable);n<i.length;n++){var r=i[n];if(es(r.name,"--"))"string"===typeof(l={label:r.name,documentation:r.value?ns(r.value):r.value,textEdit:hl.replace(this.getCompletionRange(null),r.name),kind:Ul.Variable}).documentation&&id(l.documentation)&&(l.kind=Ul.Color),e.items.push(l);t.remove(r.name)}for(var o=0,s=t.getEntries();o<s.length;o++){var a=s[o];if(es(a,"--")){var l={label:a,textEdit:hl.replace(this.getCompletionRange(null),a),kind:Ul.Variable};e.items.push(l)}}return e},e.prototype.getUnitProposals=function(e,t,n){var i="0";if(this.currentWord.length>0){var r=this.currentWord.match(/^-?\d[\.\d+]*/);r&&(i=r[0],n.isIncomplete=i.length===this.currentWord.length)}else 0===this.currentWord.length&&(n.isIncomplete=!0);if(t&&t.parent&&t.parent.type===rs.Term&&(t=t.getParent()),e.restrictions)for(var o=0,s=e.restrictions;o<s.length;o++){var a=s[o],l=fh[a];if(l)for(var c=0,h=l;c<h.length;c++){var d=i+h[c];n.items.push({label:d,textEdit:hl.replace(this.getCompletionRange(t),d),kind:Ul.Unit})}}return n},e.prototype.getCompletionRange=function(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){var t=-1!==e.end?this.textDocument.positionAt(e.end):this.position,n=this.textDocument.positionAt(e.offset);if(n.line===t.line)return Pa.create(n,t)}return this.defaultReplaceRange},e.prototype.getColorProposals=function(e,t,n){for(var i in Jc)n.items.push({label:i,documentation:Jc[i],textEdit:hl.replace(this.getCompletionRange(t),i),kind:Ul.Color});for(var i in Xc)n.items.push({label:i,documentation:Xc[i],textEdit:hl.replace(this.getCompletionRange(t),i),kind:Ul.Value});var r=new Zh;this.styleSheet.acceptVisitor(new td(r,this.offset));for(var o=0,s=r.getEntries();o<s.length;o++){i=s[o];n.items.push({label:i,textEdit:hl.replace(this.getCompletionRange(t),i),kind:Ul.Color})}for(var a=function(e){var i=1,r=e.func.replace(/\[?\$(\w+)\]?/g,(function(e,t){return"${"+i+++":"+t+"}"}));n.items.push({label:e.func.substr(0,e.func.indexOf("(")),detail:e.func,documentation:e.desc,textEdit:hl.replace(l.getCompletionRange(t),r),insertTextFormat:Jh,kind:Ul.Function})},l=this,c=0,h=Gc;c<h.length;c++){a(h[c])}return n},e.prototype.getPositionProposals=function(e,t,n){for(var i in rh)n.items.push({label:i,documentation:rh[i],textEdit:hl.replace(this.getCompletionRange(t),i),kind:Ul.Value});return n},e.prototype.getRepeatStyleProposals=function(e,t,n){for(var i in oh)n.items.push({label:i,documentation:oh[i],textEdit:hl.replace(this.getCompletionRange(t),i),kind:Ul.Value});return n},e.prototype.getLineStyleProposals=function(e,t,n){for(var i in sh)n.items.push({label:i,documentation:sh[i],textEdit:hl.replace(this.getCompletionRange(t),i),kind:Ul.Value});return n},e.prototype.getLineWidthProposals=function(e,t,n){for(var i=0,r=ah;i<r.length;i++){var o=r[i];n.items.push({label:o,textEdit:hl.replace(this.getCompletionRange(t),o),kind:Ul.Value})}return n},e.prototype.getGeometryBoxProposals=function(e,t,n){for(var i in ch)n.items.push({label:i,documentation:ch[i],textEdit:hl.replace(this.getCompletionRange(t),i),kind:Ul.Value});return n},e.prototype.getBoxProposals=function(e,t,n){for(var i in lh)n.items.push({label:i,documentation:lh[i],textEdit:hl.replace(this.getCompletionRange(t),i),kind:Ul.Value});return n},e.prototype.getImageProposals=function(e,t,n){for(var i in ph){var r=ed(i);n.items.push({label:i,documentation:ph[i],textEdit:hl.replace(this.getCompletionRange(t),r),kind:Ul.Function,insertTextFormat:i!==r?Jh:void 0})}return n},e.prototype.getTimingFunctionProposals=function(e,t,n){for(var i in uh){var r=ed(i);n.items.push({label:i,documentation:uh[i],textEdit:hl.replace(this.getCompletionRange(t),r),kind:Ul.Function,insertTextFormat:i!==r?Jh:void 0})}return n},e.prototype.getBasicShapeProposals=function(e,t,n){for(var i in mh){var r=ed(i);n.items.push({label:i,documentation:mh[i],textEdit:hl.replace(this.getCompletionRange(t),r),kind:Ul.Function,insertTextFormat:i!==r?Jh:void 0})}return n},e.prototype.getCompletionsForStylesheet=function(e){var t=this.styleSheet.findFirstChildBeforeOffset(this.offset);return t?t instanceof ws?this.getCompletionsForRuleSet(t,e):t instanceof Js?this.getCompletionsForSupports(t,e):e:this.getCompletionForTopLevel(e)},e.prototype.getCompletionForTopLevel=function(e){var t=this;return this.cssDataManager.getAtDirectives().forEach((function(n){e.items.push({label:n.name,textEdit:hl.replace(t.getCompletionRange(null),n.name),documentation:Kc(n,t.doesSupportMarkdown()),tags:Qh(n)?[Bl.Deprecated]:[],kind:Ul.Keyword})})),this.getCompletionsForSelector(null,!1,e),e},e.prototype.getCompletionsForRuleSet=function(e,t){var n=e.getDeclarations();return n&&n.endsWith("}")&&this.offset>=n.end?this.getCompletionForTopLevel(t):!n||this.offset<=n.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)},e.prototype.getCompletionsForSelector=function(e,t,n){var i=this,r=this.findInNodePath(rs.PseudoSelector,rs.IdentifierSelector,rs.ClassSelector,rs.ElementNameSelector);if(!r&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=Pa.create(Ia.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach((function(e){var t=ed(e.name),o={label:e.name,textEdit:hl.replace(i.getCompletionRange(r),t),documentation:Kc(e,i.doesSupportMarkdown()),tags:Qh(e)?[Bl.Deprecated]:[],kind:Ul.Function,insertTextFormat:e.name!==t?Jh:void 0};es(e.name,":-")&&(o.sortText=Bh.VendorPrefixed),n.items.push(o)})),this.cssDataManager.getPseudoElements().forEach((function(e){var t=ed(e.name),o={label:e.name,textEdit:hl.replace(i.getCompletionRange(r),t),documentation:Kc(e,i.doesSupportMarkdown()),tags:Qh(e)?[Bl.Deprecated]:[],kind:Ul.Function,insertTextFormat:e.name!==t?Jh:void 0};es(e.name,"::-")&&(o.sortText=Bh.VendorPrefixed),n.items.push(o)})),!t){for(var o=0,s=gh;o<s.length;o++){var a=s[o];n.items.push({label:a,textEdit:hl.replace(this.getCompletionRange(r),a),kind:Ul.Keyword})}for(var l=0,c=bh;l<c.length;l++){a=c[l];n.items.push({label:a,textEdit:hl.replace(this.getCompletionRange(r),a),kind:Ul.Keyword})}}var h={};h[this.currentWord]=!0;var d=this.textDocument.getText();if(this.styleSheet.accept((function(e){if(e.type===rs.SimpleSelector&&e.length>0){var t=d.substr(e.offset,e.length);return"."!==t.charAt(0)||h[t]||(h[t]=!0,n.items.push({label:t,textEdit:hl.replace(i.getCompletionRange(r),t),kind:Ul.Keyword})),!1}return!0})),e&&e.isNested()){var p=e.getSelectors().findFirstChildBeforeOffset(this.offset);p&&0===e.getSelectors().getChildren().indexOf(p)&&this.getPropertyProposals(null,n)}return n},e.prototype.getCompletionsForDeclarations=function(e,t){if(!e||this.offset===e.offset)return t;var n=e.findFirstChildBeforeOffset(this.offset);if(!n)return this.getCompletionsForDeclarationProperty(null,t);if(n instanceof Cs){var i=n;if(!wh(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,t);if(wh(i.semicolonPosition)&&i.semicolonPosition<this.offset)return this.offset===i.semicolonPosition+1?t:this.getCompletionsForDeclarationProperty(null,t);if(i instanceof ks)return this.getCompletionsForDeclarationValue(i,t)}else n instanceof ba?this.getCompletionsForExtendsReference(n,null,t):(this.currentWord&&"@"===this.currentWord[0]||n instanceof ws)&&this.getCompletionsForDeclarationProperty(null,t);return t},e.prototype.getCompletionsForVariableDeclaration=function(e,t){return this.offset&&wh(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue(),t),t},e.prototype.getCompletionsForExpression=function(e,t){var n=e.getParent();if(n instanceof Ds)return this.getCompletionsForFunctionArgument(n,n.getParent(),t),t;var i=e.findParent(rs.Declaration);if(!i)return this.getTermProposals(void 0,null,t),t;var r=e.findChildAtOffset(this.offset,!0);return r?r instanceof ua||r instanceof gs?this.getCompletionsForDeclarationValue(i,t):t:this.getCompletionsForDeclarationValue(i,t)},e.prototype.getCompletionsForFunctionArgument=function(e,t,n){var i=t.getIdentifier();return i&&i.matches("var")&&(t.getArguments().hasChildren()&&t.getArguments().getChild(0)!==e||this.getVariableProposalsForCSSVarFunction(n)),n},e.prototype.getCompletionsForFunctionDeclaration=function(e,t){var n=e.getDeclarations();return n&&this.offset>n.offset&&this.offset<n.end&&this.getTermProposals(void 0,null,t),t},e.prototype.getCompletionsForMixinReference=function(e,t){for(var n=this,i=0,r=this.getSymbolContext().findSymbolsAtOffset(this.offset,ss.Mixin);i<r.length;i++){var o=r[i];o.node instanceof xa&&t.items.push(this.makeTermProposal(o,o.node.getParameters(),null))}var s=e.getIdentifier()||null;return this.completionParticipants.forEach((function(e){e.onCssMixinReference&&e.onCssMixinReference({mixinName:n.currentWord,range:n.getCompletionRange(s)})})),t},e.prototype.getTermProposals=function(e,t,n){for(var i=0,r=this.getSymbolContext().findSymbolsAtOffset(this.offset,ss.Function);i<r.length;i++){var o=r[i];o.node instanceof Ls&&n.items.push(this.makeTermProposal(o,o.node.getParameters(),t))}return n},e.prototype.makeTermProposal=function(e,t,n){e.node;var i=t.getChildren().map((function(e){return e instanceof Fs?e.getName():e.getText()})),r=e.name+"("+i.map((function(e,t){return"${"+(t+1)+":"+e+"}"})).join(", ")+")";return{label:e.name,detail:e.name+"("+i.join(", ")+")",textEdit:hl.replace(this.getCompletionRange(n),r),insertTextFormat:Jh,kind:Ul.Function,sortText:Bh.Term}},e.prototype.getCompletionsForSupportsCondition=function(e,t){var n=e.findFirstChildBeforeOffset(this.offset);if(n){if(n instanceof ks)return!wh(n.colonPosition)||this.offset<=n.colonPosition?this.getCompletionsForDeclarationProperty(n,t):this.getCompletionsForDeclarationValue(n,t);if(n instanceof ta)return this.getCompletionsForSupportsCondition(n,t)}return wh(e.lParent)&&this.offset>e.lParent&&(!wh(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t},e.prototype.getCompletionsForSupports=function(e,t){var n=e.getDeclarations();if(!n||this.offset<=n.offset){var i=e.findFirstChildBeforeOffset(this.offset);return i instanceof ta?this.getCompletionsForSupportsCondition(i,t):t}return this.getCompletionForTopLevel(t)},e.prototype.getCompletionsForExtendsReference=function(e,t,n){return n},e.prototype.getCompletionForUriLiteralValue=function(e,t){var n,i,r;if(e.hasChildren()){var o=e.getChild(0);n=o.getText(),i=this.position,r=this.getCompletionRange(o)}else{n="",i=this.position;var s=this.textDocument.positionAt(e.offset+4);r=Pa.create(s,s)}return this.completionParticipants.forEach((function(e){e.onCssURILiteralValue&&e.onCssURILiteralValue({uriValue:n,position:i,range:r})})),t},e.prototype.getCompletionForImportPath=function(e,t){var n=this;return this.completionParticipants.forEach((function(t){t.onCssImportPath&&t.onCssImportPath({pathValue:e.getText(),position:n.position,range:n.getCompletionRange(e)})})),t},e.prototype.hasCharacterAtPosition=function(e,t){var n=this.textDocument.getText();return e>=0&&e<n.length&&n.charAt(e)===t},e.prototype.doesSupportMarkdown=function(){var e,t,n;if(!wh(this.supportsMarkdown)){if(!wh(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var i=null===(n=null===(t=null===(e=this.lsOptions.clientCapabilities.textDocument)||void 0===e?void 0:e.completion)||void 0===t?void 0:t.completionItem)||void 0===n?void 0:n.documentationFormat;this.supportsMarkdown=Array.isArray(i)&&-1!==i.indexOf(Pl.Markdown)}return this.supportsMarkdown},e}();function Qh(e){return!(!e.status||"nonstandard"!==e.status&&"obsolete"!==e.status)}var Zh=function(){function e(){this.entries={}}return e.prototype.add=function(e){this.entries[e]=!0},e.prototype.remove=function(e){delete this.entries[e]},e.prototype.getEntries=function(){return Object.keys(this.entries)},e}();function ed(e){return e.replace(/\(\)$/,"($1)")}var td=function(){function e(e,t){this.entries=e,this.currentOffset=t}return e.prototype.visitNode=function(e){return(e instanceof la||e instanceof Ns&&function(e){var t=e.getName();return!!t&&/^(rgb|rgba|hsl|hsla|hwb)$/gi.test(t)}(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0},e}(),nd=function(){function e(e,t){this.entries=e,this.currentOffset=t}return e.prototype.visitNode=function(e){return e instanceof gs&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0},e}();function id(e){return e.toLowerCase()in Jc||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)}var rd,od=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),sd=Da(),ad=function(){function e(){this.parent=null,this.children=null,this.attributes=null}return e.prototype.findAttribute=function(e){if(this.attributes)for(var t=0,n=this.attributes;t<n.length;t++){var i=n[t];if(i.name===e)return i.value}return null},e.prototype.addChild=function(t){t instanceof e&&(t.parent=this),this.children||(this.children=[]),this.children.push(t)},e.prototype.append=function(e){if(this.attributes){var t=this.attributes[this.attributes.length-1];t.value=t.value+e}},e.prototype.prepend=function(e){if(this.attributes){var t=this.attributes[0];t.value=e+t.value}},e.prototype.findRoot=function(){for(var e=this;e.parent&&!(e.parent instanceof ld);)e=e.parent;return e},e.prototype.removeChild=function(e){if(this.children){var t=this.children.indexOf(e);if(-1!==t)return this.children.splice(t,1),!0}return!1},e.prototype.addAttr=function(e,t){this.attributes||(this.attributes=[]);for(var n=0,i=this.attributes;n<i.length;n++){var r=i[n];if(r.name===e)return void(r.value+=" "+t)}this.attributes.push({name:e,value:t})},e.prototype.clone=function(t){void 0===t&&(t=!0);var n=new e;if(this.attributes){n.attributes=[];for(var i=0,r=this.attributes;i<r.length;i++){var o=r[i];n.addAttr(o.name,o.value)}}if(t&&this.children){n.children=[];for(var s=0;s<this.children.length;s++)n.addChild(this.children[s].clone())}return n},e.prototype.cloneWithParent=function(){var e=this.clone(!1);!this.parent||this.parent instanceof ld||this.parent.cloneWithParent().addChild(e);return e},e}(),ld=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return od(t,e),t}(ad),cd=function(e){function t(t){var n=e.call(this)||this;return n.addAttr("name",t),n}return od(t,e),t}(ad),hd=function(){function e(e){this.quote=e,this.result=[]}return e.prototype.print=function(e){return this.result=[],e instanceof ld?e.children&&this.doPrint(e.children,0):this.doPrint([e],0),[{language:"html",value:this.result.join("\n")}]},e.prototype.doPrint=function(e,t){for(var n=0,i=e;n<i.length;n++){var r=i[n];this.doPrintElement(r,t),r.children&&this.doPrint(r.children,t+1)}},e.prototype.writeLine=function(e,t){var n=new Array(e+1).join(" ");this.result.push(n+t)},e.prototype.doPrintElement=function(e,t){var n=e.findAttribute("name");if(e instanceof cd||"\u2026"===n)this.writeLine(t,n);else{var i=["<"];if(n?i.push(n):i.push("element"),e.attributes)for(var r=0,o=e.attributes;r<o.length;r++){var s=o[r];if("name"!==s.name){i.push(" "),i.push(s.name);var a=s.value;a&&(i.push("="),i.push(rd.ensure(a,this.quote)))}}i.push(">"),this.writeLine(t,i.join(""))}},e}();!function(e){function t(e){var t=e.match(/^['"](.*)["']$/);return t?t[1]:e}e.ensure=function(e,n){return n+t(e)+n},e.remove=t}(rd||(rd={}));var dd=function(){return function(){this.id=0,this.attr=0,this.tag=0}}();function pd(e,t){for(var n=new ad,i=0,r=e.getChildren();i<r.length;i++){var o=r[i];switch(o.type){case rs.SelectorCombinator:if(t){var s=o.getText().split("&");if(1===s.length){n.addAttr("name",s[0]);break}if(n=t.cloneWithParent(),s[0])n.findRoot().prepend(s[0]);for(var a=1;a<s.length;a++){if(a>1){var l=t.cloneWithParent();n.addChild(l.findRoot()),n=l}n.append(s[a])}}break;case rs.SelectorPlaceholder:if(o.matches("@at-root"))return n;case rs.ElementNameSelector:var c=o.getText();n.addAttr("name","*"===c?"element":ud(c));break;case rs.ClassSelector:n.addAttr("class",ud(o.getText().substring(1)));break;case rs.IdentifierSelector:n.addAttr("id",ud(o.getText().substring(1)));break;case rs.MixinDeclaration:n.addAttr("class",o.getName());break;case rs.PseudoSelector:n.addAttr(ud(o.getText()),"");break;case rs.AttributeSelector:var h=o,d=h.getIdentifier();if(d){var p=h.getValue(),u=h.getOperator(),m=void 0;if(p&&u)switch(ud(u.getText())){case"|=":m="".concat(rd.remove(ud(p.getText())),"-\u2026");break;case"^=":m="".concat(rd.remove(ud(p.getText())),"\u2026");break;case"$=":m="\u2026".concat(rd.remove(ud(p.getText())));break;case"~=":m=" \u2026 ".concat(rd.remove(ud(p.getText()))," \u2026 ");break;case"*=":m="\u2026".concat(rd.remove(ud(p.getText())),"\u2026");break;default:m=rd.remove(ud(p.getText()))}n.addAttr(ud(d.getText()),m)}}}return n}function ud(e){var t=new Zo;t.setSource(e);var n=t.scanUnquotedString();return n?n.text:e}var md=function(){function e(e){this.cssDataManager=e}return e.prototype.selectorToMarkedString=function(e){var t=function(e){if(e.matches("@at-root"))return null;var t=new ld,n=[],i=e.getParent();if(i instanceof ws)for(var r=i.getParent();r&&!gd(r);){if(r instanceof ws){if(r.getSelectors().matches("@at-root"))break;n.push(r)}r=r.getParent()}for(var o=new fd(t),s=n.length-1;s>=0;s--){var a=n[s].getSelectors().getChild(0);a&&o.processSelector(a)}return o.processSelector(e),t}(e);if(t){var n=new hd('"').print(t);return n.push(this.selectorToSpecificityMarkedString(e)),n}return[]},e.prototype.simpleSelectorToMarkedString=function(e){var t=pd(e),n=new hd('"').print(t);return n.push(this.selectorToSpecificityMarkedString(e)),n},e.prototype.isPseudoElementIdentifier=function(e){var t=e.match(/^::?([\w-]+)/);return!!t&&!!this.cssDataManager.getPseudoElement("::"+t[1])},e.prototype.selectorToSpecificityMarkedString=function(e){var t=this,n=function(e){var i=new dd;e:for(var r=0,o=e.getChildren();r<o.length;r++){var s=o[r];switch(s.type){case rs.IdentifierSelector:i.id++;break;case rs.ClassSelector:case rs.AttributeSelector:i.attr++;break;case rs.ElementNameSelector:if(s.matches("*"))break;i.tag++;break;case rs.PseudoSelector:var a=s.getText();if(t.isPseudoElementIdentifier(a)){i.tag++;break}if(a.match(/^:where/i))continue e;if(a.match(/^:(not|has|is)/i)&&s.getChildren().length>0){for(var l=new dd,c=0,h=s.getChildren();c<h.length;c++){var d=h[c];d.type===rs.Undefined?d.getChildren():[d];for(var p=0,u=d.getChildren();p<u.length;p++){var m=u[p];(f=n(m)).id>l.id?l=f:f.id<l.id||(f.attr>l.attr?l=f:f.attr<l.attr||f.tag>l.tag&&(l=f))}}i.id+=l.id,i.attr+=l.attr,i.tag+=l.tag;continue e}i.attr++}if(s.getChildren().length>0){var f=n(s);i.id+=f.id,i.attr+=f.attr,i.tag+=f.tag}}return i},i=n(e);return sd("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",i.id,i.attr,i.tag)},e}(),fd=function(){function e(e){this.prev=null,this.element=e}return e.prototype.processSelector=function(e){var t=null;if(!(this.element instanceof ld)&&e.getChildren().some((function(e){return e.hasChildren()&&e.getChild(0).type===rs.SelectorCombinator}))){var n=this.element.findRoot();n.parent instanceof ld&&(t=this.element,this.element=n.parent,this.element.removeChild(n),this.prev=null)}for(var i=0,r=e.getChildren();i<r.length;i++){var o=r[i];if(o instanceof Ss){if(this.prev instanceof Ss){var s=new cd("\u2026");this.element.addChild(s),this.element=s}else this.prev&&(this.prev.matches("+")||this.prev.matches("~"))&&this.element.parent&&(this.element=this.element.parent);this.prev&&this.prev.matches("~")&&this.element.addChild(new cd("\u22ee"));var a=pd(o,t),l=a.findRoot();this.element.addChild(l),this.element=a}(o instanceof Ss||o.type===rs.SelectorCombinatorParent||o.type===rs.SelectorCombinatorShadowPiercingDescendant||o.type===rs.SelectorCombinatorSibling||o.type===rs.SelectorCombinatorAllSiblings)&&(this.prev=o)}},e}();function gd(e){switch(e.type){case rs.MixinDeclaration:case rs.Stylesheet:return!0}return!1}var bd=function(){function e(e,t){this.clientCapabilities=e,this.cssDataManager=t,this.selectorPrinting=new md(t)}return e.prototype.configure=function(e){this.defaultSettings=e},e.prototype.doHover=function(e,t,n,i){function r(t){return Pa.create(e.positionAt(t.offset),e.positionAt(t.end))}void 0===i&&(i=this.defaultSettings);for(var o=hs(n,e.offsetAt(t)),s=null,a=0;a<o.length;a++){var l=o[a];if(l instanceof xs){s={contents:this.selectorPrinting.selectorToMarkedString(l),range:r(l)};break}if(l instanceof Ss){es(l.getText(),"@")||(s={contents:this.selectorPrinting.simpleSelectorToMarkedString(l),range:r(l)});break}if(l instanceof ks){var c=l.getFullPropertyName();(d=this.cssDataManager.getProperty(c))&&(s=(p=Kc(d,this.doesSupportMarkdown(),i))?{contents:p,range:r(l)}:null)}else if(l instanceof Sa){var h=l.getText();(d=this.cssDataManager.getAtDirective(h))&&(s=(p=Kc(d,this.doesSupportMarkdown(),i))?{contents:p,range:r(l)}:null)}else if(l instanceof us&&l.type===rs.PseudoSelector){var d,p,u=l.getText();(d="::"===u.slice(0,2)?this.cssDataManager.getPseudoElement(u):this.cssDataManager.getPseudoClass(u))&&(s=(p=Kc(d,this.doesSupportMarkdown(),i))?{contents:p,range:r(l)}:null)}else;}return s&&(s.contents=this.convertContents(s.contents)),s},e.prototype.convertContents=function(e){return this.doesSupportMarkdown()||"string"===typeof e?e:"kind"in e?{kind:"plaintext",value:e.value}:Array.isArray(e)?e.map((function(e){return"string"===typeof e?e:e.value})):e.value},e.prototype.doesSupportMarkdown=function(){if(!wh(this.supportsMarkdown)){if(!wh(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&-1!==e.contentFormat.indexOf(Pl.Markdown)}return this.supportsMarkdown},e}(),vd=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(gu){o(gu)}}function a(e){try{l(i.throw(e))}catch(gu){o(gu)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},yd=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(gu){o=[6,gu],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},wd=Da(),xd=/^\w+:\/\//,Sd=/^data:/,Cd=function(){function e(e,t){this.fileSystemProvider=e,this.resolveModuleReferences=t}return e.prototype.findDefinition=function(e,t,n){var i=new Th(n),r=cs(n,e.offsetAt(t));if(!r)return null;var o=i.findSymbolFromNode(r);return o?{uri:e.uri,range:_d(o.node,e)}:null},e.prototype.findReferences=function(e,t,n){return this.findDocumentHighlights(e,t,n).map((function(t){return{uri:e.uri,range:t.range}}))},e.prototype.findDocumentHighlights=function(e,t,n){var i=[],r=cs(n,e.offsetAt(t));if(!r||r.type===rs.Stylesheet||r.type===rs.Declarations)return i;r.type===rs.Identifier&&r.parent&&r.parent.type===rs.ClassSelector&&(r=r.parent);var o=new Th(n),s=o.findSymbolFromNode(r),a=r.getText();return n.accept((function(t){if(s){if(o.matchesSymbol(t,s))return i.push({kind:kd(t),range:_d(t,e)}),!1}else r&&r.type===t.type&&t.matches(a)&&i.push({kind:kd(t),range:_d(t,e)});return!0})),i},e.prototype.isRawStringDocumentLinkNode=function(e){return e.type===rs.Import},e.prototype.findDocumentLinks=function(e,t,n){for(var i=[],r=0,o=this.findUnresolvedLinks(e,t);r<o.length;r++){var s=o[r].link,a=s.target;if(!a||Sd.test(a));else if(xd.test(a))i.push(s);else{var l=n.resolveReference(a,e.uri);l&&(s.target=l),i.push(s)}}return i},e.prototype.findDocumentLinks2=function(e,t,n){return vd(this,void 0,void 0,(function(){var i,r,o,s,a,l,c,h;return yd(this,(function(d){switch(d.label){case 0:i=this.findUnresolvedLinks(e,t),r=[],o=0,s=i,d.label=1;case 1:return o<s.length?(a=s[o],l=a.link,(c=l.target)&&!Sd.test(c)?[3,2]:[3,5]):[3,6];case 2:return xd.test(c)?(r.push(l),[3,5]):[3,3];case 3:return[4,this.resolveRelativeReference(c,e.uri,n,a.isRawLink)];case 4:void 0!==(h=d.sent())&&(l.target=h,r.push(l)),d.label=5;case 5:return o++,[3,1];case 6:return[2,r]}}))}))},e.prototype.findUnresolvedLinks=function(e,t){var n=this,i=[],r=function(t){var r=t.getText(),o=_d(t,e);if(o.start.line!==o.end.line||o.start.character!==o.end.character){(es(r,"'")||es(r,'"'))&&(r=r.slice(1,-1));var s=!!t.parent&&n.isRawStringDocumentLinkNode(t.parent);i.push({link:{target:r,range:o},isRawLink:s})}};return t.accept((function(e){if(e.type===rs.URILiteral){var t=e.getChild(0);return t&&r(t),!1}if(e.parent&&n.isRawStringDocumentLinkNode(e.parent)){var i=e.getText();return(es(i,"'")||es(i,'"'))&&r(e),!1}return!0})),i},e.prototype.findDocumentSymbols=function(e,t){var n=[];return t.accept((function(t){var i={name:null,kind:oc.Class,location:null},r=t;if(t instanceof xs)return i.name=t.getText(),(r=t.findAParent(rs.Ruleset,rs.ExtendsReference))&&(i.location=Wa.create(e.uri,_d(r,e)),n.push(i)),!1;if(t instanceof ma)i.name=t.getName(),i.kind=oc.Variable;else if(t instanceof xa)i.name=t.getName(),i.kind=oc.Method;else if(t instanceof Ls)i.name=t.getName(),i.kind=oc.Function;else if(t instanceof Us)i.name=wd("literal.keyframes","@keyframes {0}",t.getName());else if(t instanceof Os)i.name=wd("literal.fontface","@font-face");else if(t instanceof Gs){var o=t.getChild(0);o instanceof Ys&&(i.name="@media "+o.getText(),i.kind=oc.Module)}return i.name&&(i.location=Wa.create(e.uri,_d(r,e)),n.push(i)),!0})),n},e.prototype.findDocumentColors=function(e,t){var n=[];return t.accept((function(t){var i=function(e,t){var n=ih(e);if(n){return{color:n,range:_d(e,t)}}return null}(t,e);return i&&n.push(i),!0})),n},e.prototype.getColorPresentations=function(e,t,n,i){var r,o=[],s=Math.round(255*n.red),a=Math.round(255*n.green),l=Math.round(255*n.blue);r=1===n.alpha?"rgb(".concat(s,", ").concat(a,", ").concat(l,")"):"rgba(".concat(s,", ").concat(a,", ").concat(l,", ").concat(n.alpha,")"),o.push({label:r,textEdit:hl.replace(i,r)}),r=1===n.alpha?"#".concat(Ed(s)).concat(Ed(a)).concat(Ed(l)):"#".concat(Ed(s)).concat(Ed(a)).concat(Ed(l)).concat(Ed(Math.round(255*n.alpha))),o.push({label:r,textEdit:hl.replace(i,r)});var c=nh(n);r=1===c.a?"hsl(".concat(c.h,", ").concat(Math.round(100*c.s),"%, ").concat(Math.round(100*c.l),"%)"):"hsla(".concat(c.h,", ").concat(Math.round(100*c.s),"%, ").concat(Math.round(100*c.l),"%, ").concat(c.a,")"),o.push({label:r,textEdit:hl.replace(i,r)});var h=function(e){var t=nh(e),n=Math.min(e.red,e.green,e.blue),i=1-Math.max(e.red,e.green,e.blue);return{h:t.h,w:n,b:i,a:t.a}}(n);return r=1===h.a?"hwb(".concat(h.h," ").concat(Math.round(100*h.w),"% ").concat(Math.round(100*h.b),"%)"):"hwb(".concat(h.h," ").concat(Math.round(100*h.w),"% ").concat(Math.round(100*h.b),"% / ").concat(h.a,")"),o.push({label:r,textEdit:hl.replace(i,r)}),o},e.prototype.doRename=function(e,t,n,i){var r,o=this.findDocumentHighlights(e,t,i).map((function(e){return hl.replace(e.range,n)}));return{changes:(r={},r[e.uri]=o,r)}},e.prototype.resolveModuleReference=function(e,t,n){return vd(this,void 0,void 0,(function(){var i,r,o,s,a;return yd(this,(function(l){switch(l.label){case 0:return es(t,"file://")?(i=function(e){if("@"===e[0])return e.substring(0,e.indexOf("/",e.indexOf("/")+1));return e.substring(0,e.indexOf("/"))}(e),r=n.resolveReference("/",t),o=zh(t),[4,this.resolvePathToModule(i,o,r)]):[3,2];case 1:if(s=l.sent())return a=e.substring(i.length+1),[2,Ih(s,a)];l.label=2;case 2:return[2,void 0]}}))}))},e.prototype.resolveRelativeReference=function(e,t,n,i){return vd(this,void 0,void 0,(function(){var i,r;return yd(this,(function(o){switch(o.label){case 0:return i=n.resolveReference(e,t),"~"===e[0]&&"/"!==e[1]&&this.fileSystemProvider?(e=e.substring(1),[4,this.resolveModuleReference(e,t,n)]):[3,2];case 1:return[2,o.sent()||i];case 2:return this.resolveModuleReferences?(r=i)?[4,this.fileExists(i)]:[3,4]:[3,7];case 3:r=o.sent(),o.label=4;case 4:return r?[2,i]:[3,5];case 5:return[4,this.resolveModuleReference(e,t,n)];case 6:return[2,o.sent()||i];case 7:return[2,i]}}))}))},e.prototype.resolvePathToModule=function(e,t,n){return vd(this,void 0,void 0,(function(){var i;return yd(this,(function(r){switch(r.label){case 0:return i=Ih(t,"node_modules",e,"package.json"),[4,this.fileExists(i)];case 1:return r.sent()?[2,zh(i)]:n&&t.startsWith(n)&&t.length!==n.length?[2,this.resolvePathToModule(e,zh(t),n)]:[2,void 0]}}))}))},e.prototype.fileExists=function(e){return vd(this,void 0,void 0,(function(){var t;return yd(this,(function(n){switch(n.label){case 0:if(!this.fileSystemProvider)return[2,!1];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.fileSystemProvider.stat(e)];case 2:return(t=n.sent()).type===Mc.Unknown&&-1===t.size?[2,!1]:[2,!0];case 3:return n.sent(),[2,!1];case 4:return[2]}}))}))},e}();function _d(e,t){return Pa.create(t.positionAt(e.offset),t.positionAt(e.end))}function kd(e){if(e.type===rs.Selector)return nc.Write;if(e instanceof gs&&e.parent&&e.parent instanceof Rs&&e.isCustomProperty)return nc.Write;if(e.parent)switch(e.parent.type){case rs.FunctionDeclaration:case rs.MixinDeclaration:case rs.Keyframe:case rs.VariableDeclaration:case rs.FunctionParameter:return nc.Write}return nc.Read}function Ed(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}var Rd=Da(),Nd=ds.Warning,Fd=ds.Error,Dd=ds.Ignore,Td=function(){return function(e,t,n){this.id=e,this.message=t,this.defaultValue=n}}(),Ad=function(){return function(e,t,n){this.id=e,this.message=t,this.defaultValue=n}}(),Md={AllVendorPrefixes:new Td("compatibleVendorPrefixes",Rd("rule.vendorprefixes.all","When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),Dd),IncludeStandardPropertyWhenUsingVendorPrefix:new Td("vendorPrefix",Rd("rule.standardvendorprefix.all","When using a vendor-specific prefix also include the standard property"),Nd),DuplicateDeclarations:new Td("duplicateProperties",Rd("rule.duplicateDeclarations","Do not use duplicate style definitions"),Dd),EmptyRuleSet:new Td("emptyRules",Rd("rule.emptyRuleSets","Do not use empty rulesets"),Nd),ImportStatemement:new Td("importStatement",Rd("rule.importDirective","Import statements do not load in parallel"),Dd),BewareOfBoxModelSize:new Td("boxModel",Rd("rule.bewareOfBoxModelSize","Do not use width or height when using padding or border"),Dd),UniversalSelector:new Td("universalSelector",Rd("rule.universalSelector","The universal selector (*) is known to be slow"),Dd),ZeroWithUnit:new Td("zeroUnits",Rd("rule.zeroWidthUnit","No unit for zero needed"),Dd),RequiredPropertiesForFontFace:new Td("fontFaceProperties",Rd("rule.fontFaceProperties","@font-face rule must define 'src' and 'font-family' properties"),Nd),HexColorLength:new Td("hexColorLength",Rd("rule.hexColor","Hex colors must consist of three, four, six or eight hex numbers"),Fd),ArgsInColorFunction:new Td("argumentsInColorFunction",Rd("rule.colorFunction","Invalid number of parameters"),Fd),UnknownProperty:new Td("unknownProperties",Rd("rule.unknownProperty","Unknown property."),Nd),UnknownAtRules:new Td("unknownAtRules",Rd("rule.unknownAtRules","Unknown at-rule."),Nd),IEStarHack:new Td("ieHack",Rd("rule.ieHack","IE hacks are only necessary when supporting IE7 and older"),Dd),UnknownVendorSpecificProperty:new Td("unknownVendorSpecificProperties",Rd("rule.unknownVendorSpecificProperty","Unknown vendor specific property."),Dd),PropertyIgnoredDueToDisplay:new Td("propertyIgnoredDueToDisplay",Rd("rule.propertyIgnoredDueToDisplay","Property is ignored due to the display."),Nd),AvoidImportant:new Td("important",Rd("rule.avoidImportant","Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),Dd),AvoidFloat:new Td("float",Rd("rule.avoidFloat","Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),Dd),AvoidIdSelector:new Td("idSelector",Rd("rule.avoidIdSelector","Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),Dd)},zd={ValidProperties:new Ad("validProperties",Rd("rule.validProperties","A list of properties that are not validated against the `unknownProperties` rule."),[])},Id=function(){function e(e){void 0===e&&(e={}),this.conf=e}return e.prototype.getRule=function(e){if(this.conf.hasOwnProperty(e.id)){var t=function(e){switch(e){case"ignore":return ds.Ignore;case"warning":return ds.Warning;case"error":return ds.Error}return null}(this.conf[e.id]);if(t)return t}return e.defaultValue},e.prototype.getSetting=function(e){return this.conf[e.id]},e}();var Ld=Da(),Pd=function(){function e(e){this.cssDataManager=e}return e.prototype.doCodeActions=function(e,t,n,i){return this.doCodeActions2(e,t,n,i).map((function(t){var n=t.edit&&t.edit.documentChanges&&t.edit.documentChanges[0];return ll.create(t.title,"_css.applyCodeAction",e.uri,e.version,n&&n.edits)}))},e.prototype.doCodeActions2=function(e,t,n,i){var r=[];if(n.diagnostics)for(var o=0,s=n.diagnostics;o<s.length;o++){var a=s[o];this.appendFixesForMarker(e,i,a,r)}return r},e.prototype.getFixesForUnknownProperty=function(e,t,n,i){var r=t.getName(),o=[];this.cssDataManager.getProperties().forEach((function(e){var t=function(e,t,n){void 0===n&&(n=4);var i=Math.abs(e.length-t.length);if(i>n)return 0;var r,o,s=[],a=[];for(r=0;r<t.length+1;++r)a.push(0);for(r=0;r<e.length+1;++r)s.push(a);for(r=1;r<e.length+1;++r)for(o=1;o<t.length+1;++o)e[r-1]===t[o-1]?s[r][o]=s[r-1][o-1]+1:s[r][o]=Math.max(s[r-1][o],s[r][o-1]);return s[e.length][t.length]-Math.sqrt(i)}(r,e.name);t>=r.length/2&&o.push({property:e.name,score:t})})),o.sort((function(e,t){return t.score-e.score||e.property.localeCompare(t.property)}));for(var s=3,a=0,l=o;a<l.length;a++){var c=l[a].property,h=Ld("css.codeaction.rename","Rename to '{0}'",c),d=hl.replace(n.range,c),p=Tl.create(e.uri,e.version),u={documentChanges:[bl.create(p,[d])]},m=fc.create(h,u,dc.QuickFix);if(m.diagnostics=[n],i.push(m),--s<=0)return}},e.prototype.appendFixesForMarker=function(e,t,n,i){if(n.code===Md.UnknownProperty.id)for(var r=e.offsetAt(n.range.start),o=e.offsetAt(n.range.end),s=hs(t,r),a=s.length-1;a>=0;a--){var l=s[a];if(l instanceof ks){var c=l.getProperty();if(c&&c.offset===r&&c.end===o)return void this.getFixesForUnknownProperty(e,c,n,i)}}},e}(),Od=function(){return function(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}}();function Wd(e,t,n,i){var r=e[t];r.value=n,n&&(Ch(r.properties,i)||r.properties.push(i))}function Ud(e,t,n,i){"top"===t||"right"===t||"bottom"===t||"left"===t?Wd(e,t,n,i):function(e,t,n){Wd(e,"top",t,n),Wd(e,"right",t,n),Wd(e,"bottom",t,n),Wd(e,"left",t,n)}(e,n,i)}function Vd(e,t,n){switch(t.length){case 1:Ud(e,void 0,t[0],n);break;case 2:Ud(e,"top",t[0],n),Ud(e,"bottom",t[0],n),Ud(e,"right",t[1],n),Ud(e,"left",t[1],n);break;case 3:Ud(e,"top",t[0],n),Ud(e,"right",t[1],n),Ud(e,"left",t[1],n),Ud(e,"bottom",t[2],n);break;case 4:Ud(e,"top",t[0],n),Ud(e,"right",t[1],n),Ud(e,"bottom",t[2],n),Ud(e,"left",t[3],n)}}function Kd(e,t){for(var n=0,i=t;n<i.length;n++){var r=i[n];if(e.matches(r))return!0}return!1}function qd(e,t){return void 0===t&&(t=!0),(!t||!Kd(e,["initial","unset"]))&&0!==parseFloat(e.getText())}function Bd(e,t){return void 0===t&&(t=!0),e.map((function(e){return qd(e,t)}))}function jd(e,t){return void 0===t&&(t=!0),!Kd(e,["none","hidden"])&&(!t||!Kd(e,["initial","unset"]))}function $d(e,t){return void 0===t&&(t=!0),e.map((function(e){return jd(e,t)}))}function Hd(e){var t=e.getChildren();if(1===t.length)return qd(r=t[0])&&jd(r);for(var n=0,i=t;n<i.length;n++){var r;if(!qd(r=i[n],!1)||!jd(r,!1))return!1}return!0}var Gd=Da(),Jd=function(){function e(){this.data={}}return e.prototype.add=function(e,t,n){var i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(t),n&&i.nodes.push(n)},e}(),Xd=function(){function e(e,t,n){var i=this;this.cssDataManager=n,this.warnings=[],this.settings=t,this.documentText=e.getText(),this.keyframes=new Jd,this.validProperties={};var r=t.getSetting(zd.ValidProperties);Array.isArray(r)&&r.forEach((function(e){if("string"===typeof e){var t=e.trim().toLowerCase();t.length&&(i.validProperties[t]=!0)}}))}return e.entries=function(t,n,i,r,o){var s=new e(n,i,r);return t.acceptVisitor(s),s.completeValidations(),s.getEntries(o)},e.prototype.isValidPropertyDeclaration=function(e){var t=e.fullPropertyName;return this.validProperties[t]},e.prototype.fetch=function(e,t){for(var n=[],i=0,r=e;i<r.length;i++){var o=r[i];o.fullPropertyName===t&&n.push(o)}return n},e.prototype.fetchWithValue=function(e,t,n){for(var i=[],r=0,o=e;r<o.length;r++){var s=o[r];if(s.fullPropertyName===t){var a=s.node.getValue();a&&this.findValueInExpression(a,n)&&i.push(s)}}return i},e.prototype.findValueInExpression=function(e,t){var n=!1;return e.accept((function(e){return e.type===rs.Identifier&&e.matches(t)&&(n=!0),!n})),n},e.prototype.getEntries=function(e){return void 0===e&&(e=ds.Warning|ds.Error),this.warnings.filter((function(t){return 0!==(t.getLevel()&e)}))},e.prototype.addEntry=function(e,t,n){var i=new Ra(e,t,this.settings.getRule(t),n);this.warnings.push(i)},e.prototype.getMissingNames=function(e,t){for(var n=e.slice(0),i=0;i<t.length;i++){var r=n.indexOf(t[i]);-1!==r&&(n[r]=null)}var o=null;for(i=0;i<n.length;i++){var s=n[i];s&&(o=null===o?Gd("namelist.single","'{0}'",s):Gd("namelist.concatenated","{0}, '{1}'",o,s))}return o},e.prototype.visitNode=function(e){switch(e.type){case rs.UnknownAtRule:return this.visitUnknownAtRule(e);case rs.Keyframe:return this.visitKeyframe(e);case rs.FontFace:return this.visitFontFace(e);case rs.Ruleset:return this.visitRuleSet(e);case rs.SimpleSelector:return this.visitSimpleSelector(e);case rs.Function:return this.visitFunction(e);case rs.NumericValue:return this.visitNumericValue(e);case rs.Import:return this.visitImport(e);case rs.HexColorValue:return this.visitHexColorValue(e);case rs.Prio:return this.visitPrio(e);case rs.IdentifierSelector:return this.visitIdentifierSelector(e)}return!0},e.prototype.completeValidations=function(){this.validateKeyframes()},e.prototype.visitUnknownAtRule=function(e){var t=e.getChild(0);return!!t&&(!this.cssDataManager.getAtDirective(t.getText())&&(this.addEntry(t,Md.UnknownAtRules,"Unknown at rule ".concat(t.getText())),!0))},e.prototype.visitKeyframe=function(e){var t=e.getKeyword();if(!t)return!1;var n=t.getText();return this.keyframes.add(e.getName(),n,"@keyframes"!==n?t:null),!0},e.prototype.validateKeyframes=function(){var e=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(var t in this.keyframes.data){var n=this.keyframes.data[t].names,i=-1===n.indexOf("@keyframes");if(i||1!==n.length){var r=this.getMissingNames(e,n);if(r||i)for(var o=0,s=this.keyframes.data[t].nodes;o<s.length;o++){var a=s[o];if(i){var l=Gd("keyframes.standardrule.missing","Always define standard rule '@keyframes' when defining keyframes.");this.addEntry(a,Md.IncludeStandardPropertyWhenUsingVendorPrefix,l)}if(r){l=Gd("keyframes.vendorspecific.missing","Always include all vendor specific rules: Missing: {0}",r);this.addEntry(a,Md.AllVendorPrefixes,l)}}}}return!0},e.prototype.visitSimpleSelector=function(e){var t=this.documentText.charAt(e.offset);return 1===e.length&&"*"===t&&this.addEntry(e,Md.UniversalSelector),!0},e.prototype.visitIdentifierSelector=function(e){return this.addEntry(e,Md.AvoidIdSelector),!0},e.prototype.visitImport=function(e){return this.addEntry(e,Md.ImportStatemement),!0},e.prototype.visitRuleSet=function(t){var n=t.getDeclarations();if(!n)return!1;n.hasChildren()||this.addEntry(t.getSelectors(),Md.EmptyRuleSet);for(var i=[],r=0,o=n.getChildren();r<o.length;r++){(v=o[r])instanceof ks&&i.push(new Od(v))}var s=function(e){for(var t={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}},n=0,i=e;n<i.length;n++){var r=i[n],o=r.node.value;if("undefined"!==typeof o)switch(r.fullPropertyName){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":t.width=r;break;case"height":t.height=r;break;default:var s=r.fullPropertyName.split("-");switch(s[0]){case"border":switch(s[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(s[2]){case void 0:Ud(t,s[1],Hd(o),r);break;case"width":Ud(t,s[1],qd(o,!1),r);break;case"style":Ud(t,s[1],jd(o,!0),r)}break;case"width":Vd(t,Bd(o.getChildren(),!1),r);break;case"style":Vd(t,$d(o.getChildren(),!0),r)}break;case"padding":1===s.length?Vd(t,Bd(o.getChildren(),!0),r):Ud(t,s[1],qd(o,!0),r)}}}return t}(i);if(s.width){var a=[];if(s.right.value&&(a=_h(a,s.right.properties)),s.left.value&&(a=_h(a,s.left.properties)),0!==a.length){for(var l=0,c=a;l<c.length;l++){var h=c[l];this.addEntry(h.node,Md.BewareOfBoxModelSize)}this.addEntry(s.width.node,Md.BewareOfBoxModelSize)}}if(s.height){a=[];if(s.top.value&&(a=_h(a,s.top.properties)),s.bottom.value&&(a=_h(a,s.bottom.properties)),0!==a.length){for(var d=0,p=a;d<p.length;d++){h=p[d];this.addEntry(h.node,Md.BewareOfBoxModelSize)}this.addEntry(s.height.node,Md.BewareOfBoxModelSize)}}var u=this.fetchWithValue(i,"display","inline-block");if(u.length>0)for(var m=this.fetch(i,"float"),f=0;f<m.length;f++){var g=m[f].node;(w=g.getValue())&&!w.matches("none")&&this.addEntry(g,Md.PropertyIgnoredDueToDisplay,Gd("rule.propertyIgnoredDueToDisplayInlineBlock","inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'"))}if((u=this.fetchWithValue(i,"display","block")).length>0)for(m=this.fetch(i,"vertical-align"),f=0;f<m.length;f++)this.addEntry(m[f].node,Md.PropertyIgnoredDueToDisplay,Gd("rule.propertyIgnoredDueToDisplayBlock","Property is ignored due to the display. With 'display: block', vertical-align should not be used."));var b=this.fetch(i,"float");for(f=0;f<b.length;f++){var v=b[f];this.isValidPropertyDeclaration(v)||this.addEntry(v.node,Md.AvoidFloat)}for(var y=0;y<i.length;y++){var w;if("background"!==(v=i[y]).fullPropertyName&&!this.validProperties[v.fullPropertyName])if((w=v.node.getValue())&&"-"!==this.documentText.charAt(w.offset)){var x=this.fetch(i,v.fullPropertyName);if(x.length>1)for(var S=0;S<x.length;S++){var C=x[S].node.getValue();C&&"-"!==this.documentText.charAt(C.offset)&&x[S]!==v&&this.addEntry(v.node,Md.DuplicateDeclarations)}}}if(!t.getSelectors().matches(":export")){for(var _=new Jd,k=!1,E=0,R=i;E<R.length;E++){var N=(v=R[E]).node;if(this.isCSSDeclaration(N)){var F=v.fullPropertyName,D=F.charAt(0);if("-"===D){if("-"!==F.charAt(1)){this.cssDataManager.isKnownProperty(F)||this.validProperties[F]||this.addEntry(N.getProperty(),Md.UnknownVendorSpecificProperty);var T=N.getNonPrefixedPropertyName();_.add(T,F,N.getProperty())}}else{var A=F;"*"!==D&&"_"!==D||(this.addEntry(N.getProperty(),Md.IEStarHack),F=F.substr(1)),this.cssDataManager.isKnownProperty(A)||this.cssDataManager.isKnownProperty(F)||this.validProperties[F]||this.addEntry(N.getProperty(),Md.UnknownProperty,Gd("property.unknownproperty.detailed","Unknown property: '{0}'",N.getFullPropertyName())),_.add(F,F,null)}}else k=!0}if(!k)for(var M in _.data){var z=_.data[M],I=z.names,L=this.cssDataManager.isStandardProperty(M)&&-1===I.indexOf(M);if(L||1!==I.length){for(var P=[],O=(y=0,e.prefixes.length);y<O;y++){var W=e.prefixes[y];this.cssDataManager.isStandardProperty(W+M)&&P.push(W+M)}var U=this.getMissingNames(P,I);if(U||L)for(var V=0,K=z.nodes;V<K.length;V++){var q=K[V];if(L){var B=Gd("property.standard.missing","Also define the standard property '{0}' for compatibility",M);this.addEntry(q,Md.IncludeStandardPropertyWhenUsingVendorPrefix,B)}if(U){B=Gd("property.vendorspecific.missing","Always include all vendor specific properties: Missing: {0}",U);this.addEntry(q,Md.AllVendorPrefixes,B)}}}}}return!0},e.prototype.visitPrio=function(e){return this.addEntry(e,Md.AvoidImportant),!0},e.prototype.visitNumericValue=function(e){var t=e.findParent(rs.Function);if(t&&"calc"===t.getName())return!0;var n=e.findParent(rs.Declaration);if(n&&n.getValue()){var i=e.getValue();if(!i.unit||-1===fh.length.indexOf(i.unit.toLowerCase()))return!0;0===parseFloat(i.value)&&i.unit&&!this.validProperties[n.getFullPropertyName()]&&this.addEntry(e,Md.ZeroWithUnit)}return!0},e.prototype.visitFontFace=function(e){var t=e.getDeclarations();if(!t)return!1;for(var n=!1,i=!1,r=!1,o=0,s=t.getChildren();o<s.length;o++){var a=s[o];if(this.isCSSDeclaration(a)){var l=a.getProperty().getName().toLowerCase();"src"===l&&(n=!0),"font-family"===l&&(i=!0)}else r=!0}return r||n&&i||this.addEntry(e,Md.RequiredPropertiesForFontFace),!0},e.prototype.isCSSDeclaration=function(e){if(e instanceof ks){if(!e.getValue())return!1;var t=e.getProperty();if(!t)return!1;var n=t.getIdentifier();return!(!n||n.containsInterpolation())}return!1},e.prototype.visitHexColorValue=function(e){var t=e.length;return 9!==t&&7!==t&&5!==t&&4!==t&&this.addEntry(e,Md.HexColorLength),!1},e.prototype.visitFunction=function(e){var t=e.getName().toLowerCase(),n=-1,i=0;switch(t){case"rgb(":case"hsl(":n=3;break;case"rgba(":case"hsla(":n=4}return-1!==n&&(e.getArguments().accept((function(e){return!(e instanceof oa)||(i+=1,!1)})),i!==n&&this.addEntry(e,Md.ArgsInColorFunction)),!0},e.prefixes=["-ms-","-moz-","-o-","-webkit-"],e}(),Yd=function(){function e(e){this.cssDataManager=e}return e.prototype.configure=function(e){this.settings=e},e.prototype.doValidation=function(e,t,n){if(void 0===n&&(n=this.settings),n&&!1===n.validate)return[];var i=[];i.push.apply(i,Na.entries(t)),i.push.apply(i,Xd.entries(t,e,new Id(n&&n.lint),this.cssDataManager));var r=[];for(var o in Md)r.push(Md[o].id);return i.filter((function(e){return e.getLevel()!==ds.Ignore})).map((function(t){var n=Pa.create(e.positionAt(t.getOffset()),e.positionAt(t.getOffset()+t.getLength())),i=e.languageId;return{code:t.getRule().id,source:i,message:t.getMessage(),severity:t.getLevel()===ds.Warning?tl.Warning:tl.Error,range:n}}))},e}(),Qd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Zd="/".charCodeAt(0),ep="\n".charCodeAt(0),tp="\r".charCodeAt(0),np="\f".charCodeAt(0),ip="$".charCodeAt(0),rp="#".charCodeAt(0),op="{".charCodeAt(0),sp="=".charCodeAt(0),ap="!".charCodeAt(0),lp="<".charCodeAt(0),cp=">".charCodeAt(0),hp=".".charCodeAt(0),dp=("@".charCodeAt(0),ro.CustomToken),pp=dp++,up=dp++,mp=(dp++,dp++),fp=dp++,gp=dp++,bp=dp++,vp=dp++,yp=(dp++,function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qd(t,e),t.prototype.scanNext=function(t){if(this.stream.advanceIfChar(ip)){var n=["$"];if(this.ident(n))return this.finishToken(t,pp,n.join(""));this.stream.goBackTo(t)}return this.stream.advanceIfChars([rp,op])?this.finishToken(t,up):this.stream.advanceIfChars([sp,sp])?this.finishToken(t,mp):this.stream.advanceIfChars([ap,sp])?this.finishToken(t,fp):this.stream.advanceIfChar(lp)?this.stream.advanceIfChar(sp)?this.finishToken(t,bp):this.finishToken(t,ro.Delim):this.stream.advanceIfChar(cp)?this.stream.advanceIfChar(sp)?this.finishToken(t,gp):this.finishToken(t,ro.Delim):this.stream.advanceIfChars([hp,hp,hp])?this.finishToken(t,vp):e.prototype.scanNext.call(this,t)},t.prototype.comment=function(){return!!e.prototype.comment.call(this)||!(this.inURL||!this.stream.advanceIfChars([Zd,Zd]))&&(this.stream.advanceWhileChar((function(e){switch(e){case ep:case tp:case np:return!1;default:return!0}})),!0)},t}(Zo)),wp=Da(),xp=function(){return function(e,t){this.id=e,this.message=t}}(),Sp={FromExpected:new xp("scss-fromexpected",wp("expected.from","'from' expected")),ThroughOrToExpected:new xp("scss-throughexpected",wp("expected.through","'through' or 'to' expected")),InExpected:new xp("scss-fromexpected",wp("expected.in","'in' expected"))},Cp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_p=function(e){function t(){return e.call(this,new yp)||this}return Cp(t,e),t.prototype._parseStylesheetStatement=function(t){return void 0===t&&(t=!1),this.peek(ro.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(t)||e.prototype._parseStylesheetAtStatement.call(this,t):this._parseRuleset(!0)||this._parseVariableDeclaration()},t.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var e=this.create(Ks);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,Nl.URIOrStringExpected);for(;this.accept(ro.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,Nl.URIOrStringExpected);return this.peek(ro.SemiColon)||this.peek(ro.EOF)||e.setMedialist(this._parseMediaQueryList()),this.finish(e)},t.prototype._parseVariableDeclaration=function(e){if(void 0===e&&(e=[]),!this.peek(pp))return null;var t=this.create(ma);if(!t.setVariable(this._parseVariable()))return null;if(!this.accept(ro.Colon))return this.finish(t,Nl.ColonExpected);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),!t.setValue(this._parseExpr()))return this.finish(t,Nl.VariableValueExpected,[],e);for(;this.peek(ro.Exclamation);)if(t.addChild(this._tryParsePrio()));else{if(this.consumeToken(),!this.peekRegExp(ro.Ident,/^(default|global)$/))return this.finish(t,Nl.UnknownKeyword);this.consumeToken()}return this.peek(ro.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)},t.prototype._parseMediaCondition=function(){return this._parseInterpolation()||e.prototype._parseMediaCondition.call(this)},t.prototype._parseMediaFeatureName=function(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()},t.prototype._parseKeyframeSelector=function(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseVariableDeclaration()||this._parseMixinContent()},t.prototype._parseVariable=function(){if(!this.peek(pp))return null;var e=this.create(ga);return this.consumeToken(),e},t.prototype._parseModuleMember=function(){var e=this.mark(),t=this.create(Ea);return t.setIdentifier(this._parseIdent([ss.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(e),null):t.addChild(this._parseVariable()||this._parseFunction())?t:this.finish(t,Nl.IdentifierOrVariableExpected):null},t.prototype._parseIdent=function(e){var t=this;if(!this.peek(ro.Ident)&&!this.peek(up)&&!this.peekDelim("-"))return null;var n=this.create(gs);n.referenceTypes=e,n.isCustomProperty=this.peekRegExp(ro.Ident,/^--/);for(var i=!1,r=function(){var e=t.mark();return t.acceptDelim("-")&&(t.hasWhitespace()||t.acceptDelim("-"),t.hasWhitespace())?(t.restoreAtMark(e),null):t._parseInterpolation()};(this.accept(ro.Ident)||n.addChild(r())||i&&this.acceptRegexp(/^[\w-]/))&&(i=!0,!this.hasWhitespace()););return i?this.finish(n):null},t.prototype._parseTermExpression=function(){return this._parseModuleMember()||this._parseVariable()||this._parseSelectorCombinator()||e.prototype._parseTermExpression.call(this)},t.prototype._parseInterpolation=function(){if(this.peek(up)){var e=this.create(fa);return this.consumeToken(),e.addChild(this._parseExpr())||this._parseSelectorCombinator()?this.accept(ro.CurlyR)?this.finish(e):this.finish(e,Nl.RightCurlyExpected):this.accept(ro.CurlyR)?this.finish(e):this.finish(e,Nl.ExpressionExpected)}return null},t.prototype._parseOperator=function(){if(this.peek(mp)||this.peek(fp)||this.peek(gp)||this.peek(bp)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var t=this.createNode(rs.Operator);return this.consumeToken(),this.finish(t)}return e.prototype._parseOperator.call(this)},t.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var t=this.create(us);return this.consumeToken(),this.finish(t)}return e.prototype._parseUnaryOperator.call(this)},t.prototype._parseRuleSetDeclaration=function(){return this.peek(ro.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||e.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||e.prototype._parseRuleSetDeclaration.call(this)},t.prototype._parseDeclaration=function(e){var t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;var n=this.create(ks);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(ro.Colon))return this.finish(n,Nl.ColonExpected,[ro.Colon],e||[ro.SemiColon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);var i=!1;if(n.setValue(this._parseExpr())&&(i=!0,n.addChild(this._parsePrio())),this.peek(ro.CurlyL))n.setNestedProperties(this._parseNestedProperties());else if(!i)return this.finish(n,Nl.PropertyValueExpected);return this.peek(ro.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)},t.prototype._parseNestedProperties=function(){var e=this.create(Ws);return this._parseBody(e,this._parseDeclaration.bind(this))},t.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var e=this.create(ba);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,Nl.SelectorExpected);for(;this.accept(ro.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(ro.Exclamation)&&!this.acceptIdent("optional")?this.finish(e,Nl.UnknownKeyword):this.finish(e)}return null},t.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||e.prototype._parseSimpleSelectorBody.call(this)},t.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var e=this.createNode(rs.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(ro.Num)||this.accept(ro.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null},t.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var e=this.createNode(rs.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e)}if(this.peekKeyword("@at-root")){e=this.createNode(rs.SelectorPlaceholder);return this.consumeToken(),this.finish(e)}return null},t.prototype._parseElementName=function(){var t=this.mark(),n=e.prototype._parseElementName.call(this);return n&&!this.hasWhitespace()&&this.peek(ro.ParenthesisL)?(this.restoreAtMark(t),null):n},t.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||e.prototype._tryParsePseudoIdentifier.call(this)},t.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var e=this.createNode(rs.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)},t.prototype._parseControlStatement=function(e){return void 0===e&&(e=this._parseRuleSetDeclaration.bind(this)),this.peek(ro.AtKeyword)?this._parseIfStatement(e)||this._parseForStatement(e)||this._parseEachStatement(e)||this._parseWhileStatement(e):null},t.prototype._parseIfStatement=function(e){return this.peekKeyword("@if")?this._internalParseIfStatement(e):null},t.prototype._internalParseIfStatement=function(e){var t=this.create(Ts);if(this.consumeToken(),!t.setExpression(this._parseExpr(!0)))return this.finish(t,Nl.ExpressionExpected);if(this._parseBody(t,e),this.acceptKeyword("@else"))if(this.peekIdent("if"))t.setElseClause(this._internalParseIfStatement(e));else if(this.peek(ro.CurlyL)){var n=this.create(Is);this._parseBody(n,e),t.setElseClause(n)}return this.finish(t)},t.prototype._parseForStatement=function(e){if(!this.peekKeyword("@for"))return null;var t=this.create(As);return this.consumeToken(),t.setVariable(this._parseVariable())?this.acceptIdent("from")?t.addChild(this._parseBinaryExpr())?this.acceptIdent("to")||this.acceptIdent("through")?t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,Nl.ExpressionExpected,[ro.CurlyR]):this.finish(t,Sp.ThroughOrToExpected,[ro.CurlyR]):this.finish(t,Nl.ExpressionExpected,[ro.CurlyR]):this.finish(t,Sp.FromExpected,[ro.CurlyR]):this.finish(t,Nl.VariableNameExpected,[ro.CurlyR])},t.prototype._parseEachStatement=function(e){if(!this.peekKeyword("@each"))return null;var t=this.create(Ms);this.consumeToken();var n=t.getVariables();if(!n.addChild(this._parseVariable()))return this.finish(t,Nl.VariableNameExpected,[ro.CurlyR]);for(;this.accept(ro.Comma);)if(!n.addChild(this._parseVariable()))return this.finish(t,Nl.VariableNameExpected,[ro.CurlyR]);return this.finish(n),this.acceptIdent("in")?t.addChild(this._parseExpr())?this._parseBody(t,e):this.finish(t,Nl.ExpressionExpected,[ro.CurlyR]):this.finish(t,Sp.InExpected,[ro.CurlyR])},t.prototype._parseWhileStatement=function(e){if(!this.peekKeyword("@while"))return null;var t=this.create(zs);return this.consumeToken(),t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,Nl.ExpressionExpected,[ro.CurlyR])},t.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},t.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var e=this.create(Ls);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ss.Function])))return this.finish(e,Nl.IdentifierExpected,[ro.CurlyR]);if(!this.accept(ro.ParenthesisL))return this.finish(e,Nl.LeftParenthesisExpected,[ro.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(ro.Comma)&&!this.peek(ro.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,Nl.VariableNameExpected);return this.accept(ro.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,Nl.RightParenthesisExpected,[ro.CurlyR])},t.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var e=this.createNode(rs.ReturnStatement);return this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,Nl.ExpressionExpected)},t.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var e=this.create(xa);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ss.Mixin])))return this.finish(e,Nl.IdentifierExpected,[ro.CurlyR]);if(this.accept(ro.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(ro.Comma)&&!this.peek(ro.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,Nl.VariableNameExpected);if(!this.accept(ro.ParenthesisR))return this.finish(e,Nl.RightParenthesisExpected,[ro.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseParameterDeclaration=function(){var e=this.create(Fs);return e.setIdentifier(this._parseVariable())?(this.accept(vp),this.accept(ro.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,Nl.VariableValueExpected,[],[ro.Comma,ro.ParenthesisR]):this.finish(e)):null},t.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var e=this.create(va);if(this.consumeToken(),this.accept(ro.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(ro.Comma)&&!this.peek(ro.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,Nl.ExpressionExpected);if(!this.accept(ro.ParenthesisR))return this.finish(e,Nl.RightParenthesisExpected)}return this.finish(e)},t.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var e=this.create(wa);this.consumeToken();var t=this._parseIdent([ss.Mixin]);if(!e.setIdentifier(t))return this.finish(e,Nl.IdentifierExpected,[ro.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var n=this._parseIdent([ss.Mixin]);if(!n)return this.finish(e,Nl.IdentifierExpected,[ro.CurlyR]);var i=this.create(Ea);t.referenceTypes=[ss.Module],i.setIdentifier(t),e.setIdentifier(n),e.addChild(i)}if(this.accept(ro.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(ro.Comma)&&!this.peek(ro.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,Nl.ExpressionExpected);if(!this.accept(ro.ParenthesisR))return this.finish(e,Nl.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(ro.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)},t.prototype._parseMixinContentDeclaration=function(){var e=this.create(ya);if(this.acceptIdent("using")){if(!this.accept(ro.ParenthesisL))return this.finish(e,Nl.LeftParenthesisExpected,[ro.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(ro.Comma)&&!this.peek(ro.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,Nl.VariableNameExpected);if(!this.accept(ro.ParenthesisR))return this.finish(e,Nl.RightParenthesisExpected,[ro.CurlyL])}return this.peek(ro.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)},t.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},t.prototype._parseFunctionArgument=function(){var e=this.create(Ds),t=this.mark(),n=this._parseVariable();if(n)if(this.accept(ro.Colon))e.setIdentifier(n);else{if(this.accept(vp))return e.setValue(n),this.finish(e);this.restoreAtMark(t)}return e.setValue(this._parseExpr(!0))?(this.accept(vp),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null},t.prototype._parseURLArgument=function(){var t=this.mark(),n=e.prototype._parseURLArgument.call(this);if(!n||!this.peek(ro.ParenthesisR)){this.restoreAtMark(t);var i=this.create(us);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return n},t.prototype._parseOperation=function(){if(!this.peek(ro.ParenthesisL))return null;var e=this.create(us);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(ro.Comma);return this.accept(ro.ParenthesisR)?this.finish(e):this.finish(e,Nl.RightParenthesisExpected)},t.prototype._parseListElement=function(){var e=this.create(Ca),t=this._parseBinaryExpr();if(!t)return null;if(this.accept(ro.Colon)){if(e.setKey(t),!e.setValue(this._parseBinaryExpr()))return this.finish(e,Nl.ExpressionExpected)}else e.setValue(t);return this.finish(e)},t.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var e=this.create(qs);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,Nl.StringLiteralExpected);if(!this.peek(ro.SemiColon)&&!this.peek(ro.EOF)){if(!this.peekRegExp(ro.Ident,/as|with/))return this.finish(e,Nl.UnknownKeyword);if(this.acceptIdent("as")&&!e.setIdentifier(this._parseIdent([ss.Module]))&&!this.acceptDelim("*"))return this.finish(e,Nl.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(ro.ParenthesisL))return this.finish(e,Nl.LeftParenthesisExpected,[ro.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Nl.VariableNameExpected);for(;this.accept(ro.Comma)&&!this.peek(ro.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Nl.VariableNameExpected);if(!this.accept(ro.ParenthesisR))return this.finish(e,Nl.RightParenthesisExpected)}}return this.accept(ro.SemiColon)||this.accept(ro.EOF)?this.finish(e):this.finish(e,Nl.SemiColonExpected)},t.prototype._parseModuleConfigDeclaration=function(){var e=this.create(Bs);return e.setIdentifier(this._parseVariable())?this.accept(ro.Colon)&&e.setValue(this._parseExpr(!0))?!this.accept(ro.Exclamation)||!this.hasWhitespace()&&this.acceptIdent("default")?this.finish(e):this.finish(e,Nl.UnknownKeyword):this.finish(e,Nl.VariableValueExpected,[],[ro.Comma,ro.ParenthesisR]):null},t.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var e=this.create(js);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,Nl.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(ro.ParenthesisL))return this.finish(e,Nl.LeftParenthesisExpected,[ro.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Nl.VariableNameExpected);for(;this.accept(ro.Comma)&&!this.peek(ro.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Nl.VariableNameExpected);if(!this.accept(ro.ParenthesisR))return this.finish(e,Nl.RightParenthesisExpected)}if(!this.peek(ro.SemiColon)&&!this.peek(ro.EOF)){if(!this.peekRegExp(ro.Ident,/as|hide|show/))return this.finish(e,Nl.UnknownKeyword);if(this.acceptIdent("as")){var t=this._parseIdent([ss.Forward]);if(!e.setIdentifier(t))return this.finish(e,Nl.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(e,Nl.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,Nl.IdentifierOrVariableExpected)}return this.accept(ro.SemiColon)||this.accept(ro.EOF)?this.finish(e):this.finish(e,Nl.SemiColonExpected)},t.prototype._parseForwardVisibility=function(){var e=this.create($s);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(ro.Comma);return e.getChildren().length>1?e:null},t.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||e.prototype._parseSupportsCondition.call(this)},t}(Sh),kp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ep=Da(),Rp=function(e){function t(n,i){var r=e.call(this,"$",n,i)||this;return Np(t.scssModuleLoaders),Np(t.scssModuleBuiltIns),r}return kp(t,e),t.prototype.isImportPathParent=function(t){return t===rs.Forward||t===rs.Use||e.prototype.isImportPathParent.call(this,t)},t.prototype.getCompletionForImportPath=function(n,i){var r=n.getParent().type;if(r===rs.Forward||r===rs.Use)for(var o=0,s=t.scssModuleBuiltIns;o<s.length;o++){var a=s[o],l={label:a.label,documentation:a.documentation,textEdit:hl.replace(this.getCompletionRange(n),"'".concat(a.label,"'")),kind:Ul.Module};i.items.push(l)}return e.prototype.getCompletionForImportPath.call(this,n,i)},t.prototype.createReplaceFunction=function(){var e=1;return function(n,i){return"\\"+i+": ${"+e+++":"+(t.variableDefaults[i]||"")+"}"}},t.prototype.createFunctionProposals=function(e,t,n,i){for(var r=0,o=e;r<o.length;r++){var s=o[r],a=s.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),l={label:s.func.substr(0,s.func.indexOf("(")),detail:s.func,documentation:s.desc,textEdit:hl.replace(this.getCompletionRange(t),a),insertTextFormat:Kl.Snippet,kind:Ul.Function};n&&(l.sortText="z"),i.items.push(l)}return i},t.prototype.getCompletionsForSelector=function(n,i,r){return this.createFunctionProposals(t.selectorFuncs,null,!0,r),e.prototype.getCompletionsForSelector.call(this,n,i,r)},t.prototype.getTermProposals=function(n,i,r){var o=t.builtInFuncs;return n&&(o=o.filter((function(e){return!e.type||!n.restrictions||-1!==n.restrictions.indexOf(e.type)}))),this.createFunctionProposals(o,i,!0,r),e.prototype.getTermProposals.call(this,n,i,r)},t.prototype.getColorProposals=function(n,i,r){return this.createFunctionProposals(t.colorProposals,i,!1,r),e.prototype.getColorProposals.call(this,n,i,r)},t.prototype.getCompletionsForDeclarationProperty=function(t,n){return this.getCompletionForAtDirectives(n),this.getCompletionsForSelector(null,!0,n),e.prototype.getCompletionsForDeclarationProperty.call(this,t,n)},t.prototype.getCompletionsForExtendsReference=function(e,t,n){for(var i=0,r=this.getSymbolContext().findSymbolsAtOffset(this.offset,ss.Rule);i<r.length;i++){var o=r[i],s={label:o.name,textEdit:hl.replace(this.getCompletionRange(t),o.name),kind:Ul.Function};n.items.push(s)}return n},t.prototype.getCompletionForAtDirectives=function(e){var n;return(n=e.items).push.apply(n,t.scssAtDirectives),e},t.prototype.getCompletionForTopLevel=function(t){return this.getCompletionForAtDirectives(t),this.getCompletionForModuleLoaders(t),e.prototype.getCompletionForTopLevel.call(this,t),t},t.prototype.getCompletionForModuleLoaders=function(e){var n;return(n=e.items).push.apply(n,t.scssModuleLoaders),e},t.variableDefaults={$red:"1",$green:"2",$blue:"3",$alpha:"1.0",$color:"#000000",$weight:"0.5",$hue:"0",$saturation:"0%",$lightness:"0%",$degrees:"0",$amount:"0",$string:'""',$substring:'"s"',$number:"0",$limit:"1"},t.colorProposals=[{func:"red($color)",desc:Ep("scss.builtin.red","Gets the red component of a color.")},{func:"green($color)",desc:Ep("scss.builtin.green","Gets the green component of a color.")},{func:"blue($color)",desc:Ep("scss.builtin.blue","Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:Ep("scss.builtin.mix","Mixes two colors together.")},{func:"hue($color)",desc:Ep("scss.builtin.hue","Gets the hue component of a color.")},{func:"saturation($color)",desc:Ep("scss.builtin.saturation","Gets the saturation component of a color.")},{func:"lightness($color)",desc:Ep("scss.builtin.lightness","Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:Ep("scss.builtin.adjust-hue","Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:Ep("scss.builtin.lighten","Makes a color lighter.")},{func:"darken($color, $amount)",desc:Ep("scss.builtin.darken","Makes a color darker.")},{func:"saturate($color, $amount)",desc:Ep("scss.builtin.saturate","Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:Ep("scss.builtin.desaturate","Makes a color less saturated.")},{func:"grayscale($color)",desc:Ep("scss.builtin.grayscale","Converts a color to grayscale.")},{func:"complement($color)",desc:Ep("scss.builtin.complement","Returns the complement of a color.")},{func:"invert($color)",desc:Ep("scss.builtin.invert","Returns the inverse of a color.")},{func:"alpha($color)",desc:Ep("scss.builtin.alpha","Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:Ep("scss.builtin.rgba","Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:Ep("scss.builtin.opacify","Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:Ep("scss.builtin.fade-in","Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:Ep("scss.builtin.transparentize","Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:Ep("scss.builtin.fade-out","Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:Ep("scss.builtin.adjust-color","Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:Ep("scss.builtin.scale-color","Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:Ep("scss.builtin.change-color","Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:Ep("scss.builtin.ie-hex-str","Converts a color into the format understood by IE filters.")}],t.selectorFuncs=[{func:"selector-nest($selectors\u2026)",desc:Ep("scss.builtin.selector-nest","Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors\u2026)",desc:Ep("scss.builtin.selector-append","Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:Ep("scss.builtin.selector-extend","Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:Ep("scss.builtin.selector-replace","Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:Ep("scss.builtin.selector-unify","Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:Ep("scss.builtin.is-superselector","Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:Ep("scss.builtin.simple-selectors","Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:Ep("scss.builtin.selector-parse","Parses a selector into the format returned by &.")}],t.builtInFuncs=[{func:"unquote($string)",desc:Ep("scss.builtin.unquote","Removes quotes from a string.")},{func:"quote($string)",desc:Ep("scss.builtin.quote","Adds quotes to a string.")},{func:"str-length($string)",desc:Ep("scss.builtin.str-length","Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:Ep("scss.builtin.str-insert","Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:Ep("scss.builtin.str-index","Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:Ep("scss.builtin.str-slice","Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:Ep("scss.builtin.to-upper-case","Converts a string to upper case.")},{func:"to-lower-case($string)",desc:Ep("scss.builtin.to-lower-case","Converts a string to lower case.")},{func:"percentage($number)",desc:Ep("scss.builtin.percentage","Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:Ep("scss.builtin.round","Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:Ep("scss.builtin.ceil","Rounds a number up to the next whole number.")},{func:"floor($number)",desc:Ep("scss.builtin.floor","Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:Ep("scss.builtin.abs","Returns the absolute value of a number.")},{func:"min($numbers)",desc:Ep("scss.builtin.min","Finds the minimum of several numbers.")},{func:"max($numbers)",desc:Ep("scss.builtin.max","Finds the maximum of several numbers.")},{func:"random([$limit])",desc:Ep("scss.builtin.random","Returns a random number.")},{func:"length($list)",desc:Ep("scss.builtin.length","Returns the length of a list.")},{func:"nth($list, $n)",desc:Ep("scss.builtin.nth","Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:Ep("scss.builtin.set-nth","Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:Ep("scss.builtin.join","Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:Ep("scss.builtin.append","Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:Ep("scss.builtin.zip","Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:Ep("scss.builtin.index","Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:Ep("scss.builtin.list-separator","Returns the separator of a list.")},{func:"map-get($map, $key)",desc:Ep("scss.builtin.map-get","Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:Ep("scss.builtin.map-merge","Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:Ep("scss.builtin.map-remove","Returns a new map with keys removed.")},{func:"map-keys($map)",desc:Ep("scss.builtin.map-keys","Returns a list of all keys in a map.")},{func:"map-values($map)",desc:Ep("scss.builtin.map-values","Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:Ep("scss.builtin.map-has-key","Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:Ep("scss.builtin.keywords","Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:Ep("scss.builtin.feature-exists","Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:Ep("scss.builtin.variable-exists","Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:Ep("scss.builtin.global-variable-exists","Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:Ep("scss.builtin.function-exists","Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:Ep("scss.builtin.mixin-exists","Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:Ep("scss.builtin.inspect","Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:Ep("scss.builtin.type-of","Returns the type of a value.")},{func:"unit($number)",desc:Ep("scss.builtin.unit","Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:Ep("scss.builtin.unitless","Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:Ep("scss.builtin.comparable","Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args\u2026)",desc:Ep("scss.builtin.call","Dynamically calls a Sass function.")}],t.scssAtDirectives=[{label:"@extend",documentation:Ep("scss.builtin.@extend","Inherits the styles of another selector."),kind:Ul.Keyword},{label:"@at-root",documentation:Ep("scss.builtin.@at-root","Causes one or more rules to be emitted at the root of the document."),kind:Ul.Keyword},{label:"@debug",documentation:Ep("scss.builtin.@debug","Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:Ul.Keyword},{label:"@warn",documentation:Ep("scss.builtin.@warn","Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),kind:Ul.Keyword},{label:"@error",documentation:Ep("scss.builtin.@error","Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:Ul.Keyword},{label:"@if",documentation:Ep("scss.builtin.@if","Includes the body if the expression does not evaluate to `false` or `null`."),insertText:"@if ${1:expr} {\n\t$0\n}",insertTextFormat:Kl.Snippet,kind:Ul.Keyword},{label:"@for",documentation:Ep("scss.builtin.@for","For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."),insertText:"@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n\t$0\n}",insertTextFormat:Kl.Snippet,kind:Ul.Keyword},{label:"@each",documentation:Ep("scss.builtin.@each","Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."),insertText:"@each \\$${1:var} in ${2:list} {\n\t$0\n}",insertTextFormat:Kl.Snippet,kind:Ul.Keyword},{label:"@while",documentation:Ep("scss.builtin.@while","While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:"@while ${1:condition} {\n\t$0\n}",insertTextFormat:Kl.Snippet,kind:Ul.Keyword},{label:"@mixin",documentation:Ep("scss.builtin.@mixin","Defines styles that can be re-used throughout the stylesheet with `@include`."),insertText:"@mixin ${1:name} {\n\t$0\n}",insertTextFormat:Kl.Snippet,kind:Ul.Keyword},{label:"@include",documentation:Ep("scss.builtin.@include","Includes the styles defined by another mixin into the current rule."),kind:Ul.Keyword},{label:"@function",documentation:Ep("scss.builtin.@function","Defines complex operations that can be re-used throughout stylesheets."),kind:Ul.Keyword}],t.scssModuleLoaders=[{label:"@use",documentation:Ep("scss.builtin.@use","Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:Kl.Snippet,kind:Ul.Keyword},{label:"@forward",documentation:Ep("scss.builtin.@forward","Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:Kl.Snippet,kind:Ul.Keyword}],t.scssModuleBuiltIns=[{label:"sass:math",documentation:Ep("scss.builtin.sass:math","Provides functions that operate on numbers."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:Ep("scss.builtin.sass:string","Makes it easy to combine, search, or split apart strings."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:Ep("scss.builtin.sass:color","Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:Ep("scss.builtin.sass:list","Lets you access and modify values in lists."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:Ep("scss.builtin.sass:map","Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:Ep("scss.builtin.sass:selector","Provides access to Sass\u2019s powerful selector engine."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:Ep("scss.builtin.sass:meta","Exposes the details of Sass\u2019s inner workings."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/meta"}]}],t}(Yh);function Np(e){e.forEach((function(e){if(e.documentation&&e.references&&e.references.length>0){var t="string"===typeof e.documentation?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};t.value+="\n\n",t.value+=e.references.map((function(e){return"[".concat(e.name,"](").concat(e.url,")")})).join(" | "),e.documentation=t}}))}var Fp,Dp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Tp="/".charCodeAt(0),Ap="\n".charCodeAt(0),Mp="\r".charCodeAt(0),zp="\f".charCodeAt(0),Ip="`".charCodeAt(0),Lp=".".charCodeAt(0),Pp=ro.CustomToken,Op=Pp++,Wp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dp(t,e),t.prototype.scanNext=function(t){var n=this.escapedJavaScript();return null!==n?this.finishToken(t,n):this.stream.advanceIfChars([Lp,Lp,Lp])?this.finishToken(t,Op):e.prototype.scanNext.call(this,t)},t.prototype.comment=function(){return!!e.prototype.comment.call(this)||!(this.inURL||!this.stream.advanceIfChars([Tp,Tp]))&&(this.stream.advanceWhileChar((function(e){switch(e){case Ap:case Mp:case zp:return!1;default:return!0}})),!0)},t.prototype.escapedJavaScript=function(){return this.stream.peekChar()===Ip?(this.stream.advance(1),this.stream.advanceWhileChar((function(e){return e!==Ip})),this.stream.advanceIfChar(Ip)?ro.EscapedJavaScript:ro.BadEscapedJavaScript):null},t}(Zo),Up=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Vp=function(e){function t(){return e.call(this,new Wp)||this}return Up(t,e),t.prototype._parseStylesheetStatement=function(t){return void 0===t&&(t=!1),this.peek(ro.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||e.prototype._parseStylesheetAtStatement.call(this,t):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},t.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var e=this.create(Ks);if(this.consumeToken(),this.accept(ro.ParenthesisL)){if(!this.accept(ro.Ident))return this.finish(e,Nl.IdentifierExpected,[ro.SemiColon]);do{if(!this.accept(ro.Comma))break}while(this.accept(ro.Ident));if(!this.accept(ro.ParenthesisR))return this.finish(e,Nl.RightParenthesisExpected,[ro.SemiColon])}return e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?(this.peek(ro.SemiColon)||this.peek(ro.EOF)||e.setMedialist(this._parseMediaQueryList()),this.finish(e)):this.finish(e,Nl.URIOrStringExpected,[ro.SemiColon])},t.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var e=this.createNode(rs.Plugin);return this.consumeToken(),e.addChild(this._parseStringLiteral())?this.accept(ro.SemiColon)?this.finish(e):this.finish(e,Nl.SemiColonExpected):this.finish(e,Nl.StringLiteralExpected)},t.prototype._parseMediaQuery=function(){var t=e.prototype._parseMediaQuery.call(this);if(!t){var n=this.create(Qs);return n.addChild(this._parseVariable())?this.finish(n):null}return t},t.prototype._parseMediaDeclaration=function(e){return void 0===e&&(e=!1),this._tryParseRuleset(e)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(e)},t.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},t.prototype._parseVariableDeclaration=function(e){void 0===e&&(e=[]);var t=this.create(ma),n=this.mark();if(!t.setVariable(this._parseVariable(!0)))return null;if(!this.accept(ro.Colon))return this.restoreAtMark(n),null;if(this.prevToken&&(t.colonPosition=this.prevToken.offset),t.setValue(this._parseDetachedRuleSet()))t.needsSemicolon=!1;else if(!t.setValue(this._parseExpr()))return this.finish(t,Nl.VariableValueExpected,[],e);return t.addChild(this._parsePrio()),this.peek(ro.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)},t.prototype._parseDetachedRuleSet=function(){var e=this.mark();if(this.peekDelim("#")||this.peekDelim(".")){if(this.consumeToken(),this.hasWhitespace()||!this.accept(ro.ParenthesisL))return this.restoreAtMark(e),null;var t=this.create(xa);if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(ro.Comma)||this.accept(ro.SemiColon))&&!this.peek(ro.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,Nl.IdentifierExpected,[],[ro.ParenthesisR]);if(!this.accept(ro.ParenthesisR))return this.restoreAtMark(e),null}if(!this.peek(ro.CurlyL))return null;var n=this.create(ys);return this._parseBody(n,this._parseDetachedRuleSetBody.bind(this)),this.finish(n)},t.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},t.prototype._addLookupChildren=function(e){if(!e.addChild(this._parseLookupValue()))return!1;for(var t=!1;this.peek(ro.BracketL)&&(t=!0),e.addChild(this._parseLookupValue());)t=!1;return!t},t.prototype._parseLookupValue=function(){var e=this.create(us),t=this.mark();return this.accept(ro.BracketL)&&((e.addChild(this._parseVariable(!1,!0))||e.addChild(this._parsePropertyIdentifier()))&&this.accept(ro.BracketR)||this.accept(ro.BracketR))?e:(this.restoreAtMark(t),null)},t.prototype._parseVariable=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=!e&&this.peekDelim("$");if(!this.peekDelim("@")&&!n&&!this.peek(ro.AtKeyword))return null;for(var i=this.create(ga),r=this.mark();this.acceptDelim("@")||!e&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(r),null;return(this.accept(ro.AtKeyword)||this.accept(ro.Ident))&&(t||!this.peek(ro.BracketL)||this._addLookupChildren(i))?i:(this.restoreAtMark(r),null)},t.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||e.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},t.prototype._parseEscaped=function(){if(this.peek(ro.EscapedJavaScript)||this.peek(ro.BadEscapedJavaScript)){var e=this.createNode(rs.EscapedValue);return this.consumeToken(),this.finish(e)}if(this.peekDelim("~")){e=this.createNode(rs.EscapedValue);return this.consumeToken(),this.accept(ro.String)||this.accept(ro.EscapedJavaScript)?this.finish(e):this.finish(e,Nl.TermExpected)}return null},t.prototype._parseOperator=function(){var t=this._parseGuardOperator();return t||e.prototype._parseOperator.call(this)},t.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var e=this.createNode(rs.Operator);return this.consumeToken(),this.acceptDelim("="),e}if(this.peekDelim("=")){e=this.createNode(rs.Operator);return this.consumeToken(),this.acceptDelim("<"),e}if(this.peekDelim("<")){e=this.createNode(rs.Operator);return this.consumeToken(),this.acceptDelim("="),e}return null},t.prototype._parseRuleSetDeclaration=function(){return this.peek(ro.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||e.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||e.prototype._parseRuleSetDeclaration.call(this)},t.prototype._parseKeyframeIdent=function(){return this._parseIdent([ss.Keyframe])||this._parseVariable()},t.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||e.prototype._parseKeyframeSelector.call(this)},t.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||e.prototype._parseSimpleSelectorBody.call(this)},t.prototype._parseSelector=function(e){var t=this.create(xs),n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());){n=!0;var i=this.mark();if(t.addChild(this._parseGuard())&&this.peek(ro.CurlyL))break;this.restoreAtMark(i),t.addChild(this._parseCombinator())}return n?this.finish(t):null},t.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var e=this.createNode(rs.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(ro.Num)||this.accept(ro.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null},t.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var e=this.createNode(rs.SelectorInterpolation);return this._acceptInterpolatedIdent(e)?this.finish(e):null},t.prototype._parsePropertyIdentifier=function(e){void 0===e&&(e=!1);var t=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,t))return null;var n=this.mark(),i=this.create(gs);i.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");return(e?i.isCustomProperty?i.addChild(this._parseIdent()):i.addChild(this._parseRegexp(t)):i.isCustomProperty?this._acceptInterpolatedIdent(i):this._acceptInterpolatedIdent(i,t))?(e||this.hasWhitespace()||(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(i)):(this.restoreAtMark(n),null)},t.prototype.peekInterpolatedIdent=function(){return this.peek(ro.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},t.prototype._acceptInterpolatedIdent=function(e,t){for(var n=this,i=!1,r=function(){var e=n.mark();return n.acceptDelim("-")&&(n.hasWhitespace()||n.acceptDelim("-"),n.hasWhitespace())?(n.restoreAtMark(e),null):n._parseInterpolation()},o=t?function(){return n.acceptRegexp(t)}:function(){return n.accept(ro.Ident)};(o()||e.addChild(this._parseInterpolation()||this.try(r)))&&(i=!0,!this.hasWhitespace()););return i},t.prototype._parseInterpolation=function(){var e=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var t=this.createNode(rs.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(ro.CurlyL)?(this.restoreAtMark(e),null):t.addChild(this._parseIdent())?this.accept(ro.CurlyR)?this.finish(t):this.finish(t,Nl.RightCurlyExpected):this.finish(t,Nl.IdentifierExpected)}return null},t.prototype._tryParseMixinDeclaration=function(){var e=this.mark(),t=this.create(xa);if(!t.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(ro.ParenthesisL))return this.restoreAtMark(e),null;if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(ro.Comma)||this.accept(ro.SemiColon))&&!this.peek(ro.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,Nl.IdentifierExpected,[],[ro.ParenthesisR]);return this.accept(ro.ParenthesisR)?(t.setGuard(this._parseGuard()),this.peek(ro.CurlyL)?this._parseBody(t,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(e),null)):(this.restoreAtMark(e),null)},t.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},t.prototype._parseMixinDeclarationIdentifier=function(){var e;if(this.peekDelim("#")||this.peekDelim(".")){if(e=this.create(gs),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null}else{if(!this.peek(ro.Hash))return null;e=this.create(gs),this.consumeToken()}return e.referenceTypes=[ss.Mixin],this.finish(e)},t.prototype._parsePseudo=function(){if(!this.peek(ro.Colon))return null;var t=this.mark(),n=this.create(ba);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(n):(this.restoreAtMark(t),e.prototype._parsePseudo.call(this))},t.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var e=this.mark(),t=this.create(ba);return this.consumeToken(),!this.hasWhitespace()&&this.accept(ro.Colon)&&this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),null)},t.prototype._completeExtends=function(e){if(!this.accept(ro.ParenthesisL))return this.finish(e,Nl.LeftParenthesisExpected);var t=e.getSelectors();if(!t.addChild(this._parseSelector(!0)))return this.finish(e,Nl.SelectorExpected);for(;this.accept(ro.Comma);)if(!t.addChild(this._parseSelector(!0)))return this.finish(e,Nl.SelectorExpected);return this.accept(ro.ParenthesisR)?this.finish(e):this.finish(e,Nl.RightParenthesisExpected)},t.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(ro.AtKeyword))return null;var e=this.mark(),t=this.create(wa);return!t.addChild(this._parseVariable(!0))||!this.hasWhitespace()&&this.accept(ro.ParenthesisL)?this.accept(ro.ParenthesisR)?this.finish(t):this.finish(t,Nl.RightParenthesisExpected):(this.restoreAtMark(e),null)},t.prototype._tryParseMixinReference=function(e){void 0===e&&(e=!0);for(var t=this.mark(),n=this.create(wa),i=this._parseMixinDeclarationIdentifier();i;){this.acceptDelim(">");var r=this._parseMixinDeclarationIdentifier();if(!r)break;n.getNamespaces().addChild(i),i=r}if(!n.setIdentifier(i))return this.restoreAtMark(t),null;var o=!1;if(this.accept(ro.ParenthesisL)){if(o=!0,n.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(ro.Comma)||this.accept(ro.SemiColon))&&!this.peek(ro.ParenthesisR);)if(!n.getArguments().addChild(this._parseMixinArgument()))return this.finish(n,Nl.ExpressionExpected);if(!this.accept(ro.ParenthesisR))return this.finish(n,Nl.RightParenthesisExpected);i.referenceTypes=[ss.Mixin]}else i.referenceTypes=[ss.Mixin,ss.Rule];return this.peek(ro.BracketL)?e||this._addLookupChildren(n):n.addChild(this._parsePrio()),o||this.peek(ro.SemiColon)||this.peek(ro.CurlyR)||this.peek(ro.EOF)?this.finish(n):(this.restoreAtMark(t),null)},t.prototype._parseMixinArgument=function(){var e=this.create(Ds),t=this.mark(),n=this._parseVariable();return n&&(this.accept(ro.Colon)?e.setIdentifier(n):this.restoreAtMark(t)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(e):(this.restoreAtMark(t),null)},t.prototype._parseMixinParameter=function(){var e=this.create(Fs);if(this.peekKeyword("@rest")){var t=this.create(us);return this.consumeToken(),this.accept(Op)?(e.setIdentifier(this.finish(t)),this.finish(e)):this.finish(e,Nl.DotExpected,[],[ro.Comma,ro.ParenthesisR])}if(this.peek(Op)){var n=this.create(us);return this.consumeToken(),e.setIdentifier(this.finish(n)),this.finish(e)}var i=!1;return e.setIdentifier(this._parseVariable())&&(this.accept(ro.Colon),i=!0),e.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))||i?this.finish(e):null},t.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var e=this.create(_a);if(this.consumeToken(),e.isNegated=this.acceptIdent("not"),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,Nl.ConditionExpected);for(;this.acceptIdent("and")||this.accept(ro.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,Nl.ConditionExpected);return this.finish(e)},t.prototype._parseGuardCondition=function(){if(!this.peek(ro.ParenthesisL))return null;var e=this.create(ka);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(ro.ParenthesisR)?this.finish(e):this.finish(e,Nl.RightParenthesisExpected)},t.prototype._parseFunction=function(){var e=this.mark(),t=this.create(Ns);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(ro.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(ro.Comma)||this.accept(ro.SemiColon))&&!this.peek(ro.ParenthesisR);)if(!t.getArguments().addChild(this._parseMixinArgument()))return this.finish(t,Nl.ExpressionExpected);return this.accept(ro.ParenthesisR)?this.finish(t):this.finish(t,Nl.RightParenthesisExpected)},t.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var t=this.create(gs);return t.referenceTypes=[ss.Function],this.consumeToken(),this.finish(t)}return e.prototype._parseFunctionIdentifier.call(this)},t.prototype._parseURLArgument=function(){var t=this.mark(),n=e.prototype._parseURLArgument.call(this);if(!n||!this.peek(ro.ParenthesisR)){this.restoreAtMark(t);var i=this.create(us);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return n},t}(Sh),Kp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),qp=Da(),Bp=function(e){function t(t,n){return e.call(this,"@",t,n)||this}return Kp(t,e),t.prototype.createFunctionProposals=function(e,t,n,i){for(var r=0,o=e;r<o.length;r++){var s=o[r],a={label:s.name,detail:s.example,documentation:s.description,textEdit:hl.replace(this.getCompletionRange(t),s.name+"($0)"),insertTextFormat:Kl.Snippet,kind:Ul.Function};n&&(a.sortText="z"),i.items.push(a)}return i},t.prototype.getTermProposals=function(n,i,r){var o=t.builtInProposals;return n&&(o=o.filter((function(e){return!e.type||!n.restrictions||-1!==n.restrictions.indexOf(e.type)}))),this.createFunctionProposals(o,i,!0,r),e.prototype.getTermProposals.call(this,n,i,r)},t.prototype.getColorProposals=function(n,i,r){return this.createFunctionProposals(t.colorProposals,i,!1,r),e.prototype.getColorProposals.call(this,n,i,r)},t.prototype.getCompletionsForDeclarationProperty=function(t,n){return this.getCompletionsForSelector(null,!0,n),e.prototype.getCompletionsForDeclarationProperty.call(this,t,n)},t.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:qp("less.builtin.if","returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:qp("less.builtin.boolean",'"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:qp("less.builtin.length","returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:qp("less.builtin.extract","returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:qp("less.builtin.range","generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:qp("less.builtin.each","bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:qp("less.builtin.escape","URL encodes a string")},{name:"e",example:"e(@string);",description:qp("less.builtin.e","escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:qp("less.builtin.replace","string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:qp("less.builtin.unit","remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:qp("less.builtin.color","parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:qp("less.builtin.convert","converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:qp("less.builtin.data-uri","inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:qp("less.builtin.abs","absolute value of a number"),example:"abs(number);"},{name:"acos",description:qp("less.builtin.acos","arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:qp("less.builtin.asin","arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:qp("less.builtin.ceil","rounds up to an integer")},{name:"cos",description:qp("less.builtin.cos","cosine function"),example:"cos(number);"},{name:"floor",description:qp("less.builtin.floor","rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:qp("less.builtin.percentage","converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:qp("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:qp("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:qp("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:qp("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:qp("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:qp("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:qp("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:qp("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:qp("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:qp("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],t.colorProposals=[{name:"argb",example:"argb(@color);",description:qp("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:qp("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:qp("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:qp("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:qp("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:qp("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:qp("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:qp("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:qp("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:qp("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:qp("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:qp("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:qp("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:qp("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:qp("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:qp("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:qp("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:qp("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:qp("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:qp("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:qp("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:qp("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:qp("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:qp("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:qp("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:qp("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:qp("less.builtin.contrast","return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],t}(Yh);function jp(e,t){var n=function(e){function t(t){return e.positionAt(t.offset).line}function n(t){return e.positionAt(t.offset+t.len).line}function i(){switch(e.languageId){case"scss":return new yp;case"less":return new Wp;default:return new Zo}}function r(e,i){var r=t(e),o=n(e);return r!==o?{startLine:r,endLine:o,kind:i}:null}var o=[],s=[],a=i();a.ignoreComment=!1,a.setSource(e.getText());var l=a.scan(),c=null,h=function(){switch(l.type){case ro.CurlyL:case up:s.push({line:t(l),type:"brace",isStart:!0});break;case ro.CurlyR:if(0!==s.length){if(!(p=$p(s,"brace")))break;var i=n(l);"brace"===p.type&&(c&&n(c)!==i&&i--,p.line!==i&&o.push({startLine:p.line,endLine:i,kind:void 0}))}break;case ro.Comment:var h=function(e){return"#region"===e?{line:t(l),type:"comment",isStart:!0}:{line:n(l),type:"comment",isStart:!1}},d=function(t){var n=t.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(n)return h(n[1]);if("scss"===e.languageId||"less"===e.languageId){var i=t.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(i)return h(i[1])}return null}(l);if(d)if(d.isStart)s.push(d);else{var p;if(!(p=$p(s,"comment")))break;"comment"===p.type&&p.line!==d.line&&o.push({startLine:p.line,endLine:d.line,kind:"region"})}else{var u=r(l,"comment");u&&o.push(u)}}c=l,l=a.scan()};for(;l.type!==ro.EOF;)h();return o}(e);return function(e,t){var n=t&&t.rangeLimit||Number.MAX_VALUE,i=e.sort((function(e,t){var n=e.startLine-t.startLine;return 0===n&&(n=e.endLine-t.endLine),n})),r=[],o=-1;return i.forEach((function(e){e.startLine<o&&o<e.endLine||(r.push(e),o=e.endLine)})),r.length<n?r:r.slice(0,n)}(n,t)}function $p(e,t){if(0===e.length)return null;for(var n=e.length-1;n>=0;n--)if(e[n].type===t&&e[n].isStart)return e.splice(n,1)[0];return null}!function(){var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},,,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"===typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},,function(e,t,n){var i=n(16).Beautifier,r=n(17).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(17).Options,r=n(2).Output,o=n(8).InputScanner,s=new(0,n(13).Directives)(/\/\*/,/\*\//),a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=/\s/,h=/(?:\s|\n)+/g,d=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,p=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function u(e,t){this._source_text=e||"",this._options=new i(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}u.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},u.prototype.eatWhitespace=function(e){for(var t=c.test(this._input.peek()),n=0;c.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t},u.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if("{"===n)return!0;if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)return!1;t++,n=this._input.peek(t)}return!1},u.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},u.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},u.prototype.indent=function(){this._indentLevel++},u.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},u.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&a.test(e||"")&&(t=e.match(a)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new o(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,u,m=0,f=!1,g=!1,b=!1,v=!1,y=!1,w=this._ch;i=""!==this._input.read(h),u=w,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var x=this._input.read(d),S=s.get_directives(x);S&&"start"===S.ignore&&(x+=s.readIgnored(this._input)),this.print_string(x),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(p)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var C=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);C.match(/[ :]$/)&&(C=this.eatString(": ").replace(/\s$/,""),this.print_string(C),this._output.space_before_token=!0),"extend"===(C=C.replace(/\s$/,""))?v=!0:"import"===C&&(y=!0),C in this.NESTED_AT_RULE?(this._nestedLevel+=1,C in this.CONDITIONAL_GROUP_RULE&&(b=!0)):f||0!==m||-1===C.indexOf(":")||(g=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(g&&(g=!1,this.outdent()),b?(b=!1,f=this._indentLevel>=this._nestedLevel):f=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&f&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===u&&this._output.trim(!0),y=!1,v=!1,g&&(this.outdent(),g=!1),this.print_string(this._ch),f=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0)):":"===this._ch?!f&&!b||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||v||0!==m?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===m?(g&&(this.outdent(),g=!1),v=!1,y=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),m++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),m&&(m--,this.outdent()))):(this.preserveSingleSpace(i),this.print_string(this._ch),this.eatWhitespace(),m++,this.indent()):")"===this._ch?(m&&(m--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||g||0!==m||y||v?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==m?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(i),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(i),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=""));return this._output.get_code(t)},e.exports.Beautifier=u},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r<n.length;r++)"expand"!==n[r]?this.brace_style="collapse":this.brace_style=n[r]}r.prototype=new i,e.exports.Options=r}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}(15);Fp=n}();var Hp=Fp;function Gp(e,t,n){var i=e.getText(),r=!0,o=0,s=!1,a=n.tabSize||4;if(t){for(var l=e.offsetAt(t.start),c=l;c>0&&eu(i,c-1);)c--;0===c||Zp(i,c-1)?l=c:c<l&&(l=c+1);for(var h=e.offsetAt(t.end),d=h;d<i.length&&eu(i,d);)d++;if((d===i.length||Zp(i,d))&&(h=d),t=Pa.create(e.positionAt(l),e.positionAt(h)),s=function(e,t){for(;t>=0;){var n=e.charCodeAt(t);if(n===Xp)return!0;if(n===Yp)return!1;t--}return!1}(i,l),r=h===i.length,i=i.substring(l,h),0!==l){var p=e.offsetAt(Ia.create(t.start.line,0));o=function(e,t,n){var i=t,r=0,o=n.tabSize||4;for(;i<e.length;){var s=e.charAt(i);if(" "===s)r++;else{if("\t"!==s)break;r+=o}i++}return Math.floor(r/o)}(e.getText(),p,n)}s&&(i="{\n".concat(Jp(i)))}else t=Pa.create(Ia.create(0,0),e.positionAt(i.length));var u={indent_size:a,indent_char:n.insertSpaces?" ":"\t",end_with_newline:r&&Qp(n,"insertFinalNewline",!1),selector_separator_newline:Qp(n,"newlineBetweenSelectors",!0),newline_between_rules:Qp(n,"newlineBetweenRules",!0),space_around_selector_separator:Qp(n,"spaceAroundSelectorSeparator",!1),brace_style:Qp(n,"braceStyle","collapse"),indent_empty_lines:Qp(n,"indentEmptyLines",!1),max_preserve_newlines:Qp(n,"maxPreserveNewLines",void 0),preserve_newlines:Qp(n,"preserveNewLines",!0),wrap_line_length:Qp(n,"wrapLineLength",void 0),eol:"\n"},m=Hp(i,u);if(s&&(m=Jp(m.substring(2))),o>0){var f=n.insertSpaces?is(" ",a*o):is("\t",o);m=m.split("\n").join("\n"+f),0===t.start.character&&(m=f+m)}return[{range:t,newText:m}]}function Jp(e){return e.replace(/^\s+/,"")}var Xp="{".charCodeAt(0),Yp="}".charCodeAt(0);function Qp(e,t,n){if(e&&e.hasOwnProperty(t)){var i=e[t];if(null!==i)return i}return n}function Zp(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}function eu(e,t){return-1!==" \t".indexOf(e.charAt(t))}var tu={version:1.1,properties:[{name:"additive-symbols",browsers:["FF33"],syntax:"[ <integer> && <symbol> ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],syntax:"normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>",relevance:62,description:"Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",values:[{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]",relevance:85,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"},{name:"legacy"}],syntax:"normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]",relevance:53,description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]",relevance:53,description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",values:[{name:"auto",description:"Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>",relevance:72,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"<single-animation>#",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",syntax:"<time>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-delay"}],description:"Defines when the animation will start.",restrictions:["time"]},{name:"animation-direction",values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"<single-animation-direction>#",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-direction"}],description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"animation-duration",syntax:"<time>#",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-duration"}],description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"animation-fill-mode",values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],syntax:"<single-animation-fill-mode>#",relevance:63,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode"}],description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"animation-iteration-count",values:[{name:"infinite",description:"Causes the animation to repeat forever."}],syntax:"<single-animation-iteration-count>#",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count"}],description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"animation-name",values:[{name:"none",description:"No animation is performed"}],syntax:"[ none | <keyframes-name> ]#",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-name"}],description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"animation-play-state",values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],syntax:"<single-animation-play-state>#",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-play-state"}],description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"animation-timing-function",syntax:"<easing-function>#",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-timing-function"}],description:"Describes how the animation will progress over one cycle of its duration.",restrictions:["timing-function"]},{name:"backface-visibility",values:[{name:"hidden",description:"Back side is hidden."},{name:"visible",description:"Back side is visible."}],syntax:"visible | hidden",relevance:59,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/backface-visibility"}],description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"background",values:[{name:"fixed",description:"The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."},{name:"local",description:"The background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents."},{name:"none",description:"A value of 'none' counts as an image layer but draws nothing."},{name:"scroll",description:"The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)"}],syntax:"[ <bg-layer> , ]* <final-bg-layer>",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background"}],description:"Shorthand property for setting most background properties at the same place in the style sheet.",restrictions:["enum","image","color","position","length","repeat","percentage","box"]},{name:"background-attachment",values:[{name:"fixed",description:"The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."},{name:"local",description:"The background is fixed with regard to the element\u2019s contents: if the element has a scrolling mechanism, the background scrolls with the element\u2019s contents."},{name:"scroll",description:"The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element\u2019s border.)"}],syntax:"<attachment>#",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-attachment"}],description:"Specifies whether the background images are fixed with regard to the viewport ('fixed') or scroll along with the element ('scroll') or its contents ('local').",restrictions:["enum"]},{name:"background-blend-mode",browsers:["E79","FF30","S8","C35","O22"],values:[{name:"normal",description:"Default attribute which specifies no blending"},{name:"multiply",description:"The source color is multiplied by the destination color and replaces the destination."},{name:"screen",description:"Multiplies the complements of the backdrop and source color values, then complements the result."},{name:"overlay",description:"Multiplies or screens the colors, depending on the backdrop color value."},{name:"darken",description:"Selects the darker of the backdrop and source colors."},{name:"lighten",description:"Selects the lighter of the backdrop and source colors."},{name:"color-dodge",description:"Brightens the backdrop color to reflect the source color."},{name:"color-burn",description:"Darkens the backdrop color to reflect the source color."},{name:"hard-light",description:"Multiplies or screens the colors, depending on the source color value."},{name:"soft-light",description:"Darkens or lightens the colors, depending on the source color value."},{name:"difference",description:"Subtracts the darker of the two constituent colors from the lighter color.."},{name:"exclusion",description:"Produces an effect similar to that of the Difference mode but lower in contrast."},{name:"hue",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."},{name:"saturation",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."},{name:"color",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."},{name:"luminosity",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}],syntax:"<blend-mode>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-blend-mode"}],description:"Defines the blending mode of each background layer.",restrictions:["enum"]},{name:"background-clip",syntax:"<box>#",relevance:69,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-clip"}],description:"Determines the background painting area.",restrictions:["box"]},{name:"background-color",syntax:"<color>",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-color"}],description:"Sets the background color of an element.",restrictions:["color"]},{name:"background-image",values:[{name:"none",description:"Counts as an image layer but draws nothing."}],syntax:"<bg-image>#",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-image"}],description:"Sets the background image(s) of an element.",restrictions:["image","enum"]},{name:"background-origin",syntax:"<box>#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-origin"}],description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"background-position",syntax:"<bg-position>#",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position"}],description:"Specifies the initial position of the background image(s) (after any resizing) within their corresponding background positioning area.",restrictions:["position","length","percentage"]},{name:"background-position-x",values:[{name:"center",description:"Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is."},{name:"left",description:"Equivalent to '0%' for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset."},{name:"right",description:"Equivalent to '100%' for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset."}],status:"experimental",syntax:"[ center | [ [ left | right | x-start | x-end ]? <length-percentage>? ]! ]#",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position-x"}],description:"If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.",restrictions:["length","percentage"]},{name:"background-position-y",values:[{name:"bottom",description:"Equivalent to '100%' for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset."},{name:"center",description:"Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is."},{name:"top",description:"Equivalent to '0%' for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."}],status:"experimental",syntax:"[ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position-y"}],description:"If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.",restrictions:["length","percentage"]},{name:"background-repeat",values:[],syntax:"<repeat-style>#",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-repeat"}],description:"Specifies how background images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"background-size",values:[{name:"auto",description:"Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],syntax:"<bg-size>#",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-size"}],description:"Specifies the size of the background images.",restrictions:["length","percentage"]},{name:"behavior",browsers:["IE6"],relevance:50,description:"IE only. Used to extend behaviors of the browser.",restrictions:["url"]},{name:"block-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"auto",description:"Depends on the values of other properties."}],syntax:"<'width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/block-size"}],description:"Size of an element in the direction opposite that of the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"border",syntax:"<line-width> || <line-style> || <color>",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border"}],description:"Shorthand property for setting border width, style, and color.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end"}],description:"Logical 'border-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start"}],description:"Logical 'border-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-end-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-color"}],description:"Logical 'border-bottom-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-block-start-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-color"}],description:"Logical 'border-top-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-block-end-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-style"}],description:"Logical 'border-bottom-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-block-start-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-style"}],description:"Logical 'border-top-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-block-end-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-width"}],description:"Logical 'border-bottom-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-block-start-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-width"}],description:"Logical 'border-top-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-bottom",syntax:"<line-width> || <line-style> || <color>",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom"}],description:"Shorthand property for setting border width, style and color.",restrictions:["length","line-width","line-style","color"]},{name:"border-bottom-color",syntax:"<'border-top-color'>",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-color"}],description:"Sets the color of the bottom border.",restrictions:["color"]},{name:"border-bottom-left-radius",syntax:"<length-percentage>{1,2}",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius"}],description:"Defines the radii of the bottom left outer border edge.",restrictions:["length","percentage"]},{name:"border-bottom-right-radius",syntax:"<length-percentage>{1,2}",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius"}],description:"Defines the radii of the bottom right outer border edge.",restrictions:["length","percentage"]},{name:"border-bottom-style",syntax:"<line-style>",relevance:59,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-style"}],description:"Sets the style of the bottom border.",restrictions:["line-style"]},{name:"border-bottom-width",syntax:"<line-width>",relevance:63,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-width"}],description:"Sets the thickness of the bottom border.",restrictions:["length","line-width"]},{name:"border-collapse",values:[{name:"collapse",description:"Selects the collapsing borders model."},{name:"separate",description:"Selects the separated borders border model."}],syntax:"collapse | separate",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-collapse"}],description:"Selects a table's border model.",restrictions:["enum"]},{name:"border-color",values:[],syntax:"<color>{1,4}",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-color"}],description:"The color of the border around all four edges of an element.",restrictions:["color"]},{name:"border-image",values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none",description:"Use the border styles."},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],syntax:"<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image"}],description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"border-image-outset",syntax:"[ <length> | <number> ]{1,4}",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-outset"}],description:"The values specify the amount by which the border image area extends beyond the border box on the top, right, bottom, and left sides respectively. If the fourth value is absent, it is the same as the second. If the third one is also absent, it is the same as the first. If the second one is also absent, it is the same as the first. Numbers represent multiples of the corresponding border-width.",restrictions:["length","number"]},{name:"border-image-repeat",values:[{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."}],syntax:"[ stretch | repeat | round | space ]{1,2}",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-repeat"}],description:"Specifies how the images for the sides and the middle part of the border image are scaled and tiled. If the second keyword is absent, it is assumed to be the same as the first.",restrictions:["enum"]},{name:"border-image-slice",values:[{name:"fill",description:"Causes the middle part of the border-image to be preserved."}],syntax:"<number-percentage>{1,4} && fill?",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-slice"}],description:"Specifies inward offsets from the top, right, bottom, and left edges of the image, dividing it into nine regions: four corners, four edges and a middle.",restrictions:["number","percentage"]},{name:"border-image-source",values:[{name:"none",description:"Use the border styles."}],syntax:"none | <image>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-source"}],description:"Specifies an image to use instead of the border styles given by the 'border-style' properties and as an additional background layer for the element. If the value is 'none' or if the image cannot be displayed, the border styles will be used.",restrictions:["image"]},{name:"border-image-width",values:[{name:"auto",description:"The border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}],syntax:"[ <length-percentage> | <number> | auto ]{1,4}",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-width"}],description:"The four values of 'border-image-width' specify offsets that are used to divide the border image area into nine parts. They represent inward distances from the top, right, bottom, and left sides of the area, respectively.",restrictions:["length","percentage","number"]},{name:"border-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end"}],description:"Logical 'border-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start"}],description:"Logical 'border-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-inline-end-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color"}],description:"Logical 'border-right-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-inline-start-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color"}],description:"Logical 'border-left-color'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-inline-end-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style"}],description:"Logical 'border-right-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-inline-start-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style"}],description:"Logical 'border-left-style'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-inline-end-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width"}],description:"Logical 'border-right-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-inline-start-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width"}],description:"Logical 'border-left-width'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-left",syntax:"<line-width> || <line-style> || <color>",relevance:83,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-left-color",syntax:"<color>",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-color"}],description:"Sets the color of the left border.",restrictions:["color"]},{name:"border-left-style",syntax:"<line-style>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-style"}],description:"Sets the style of the left border.",restrictions:["line-style"]},{name:"border-left-width",syntax:"<line-width>",relevance:59,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-width"}],description:"Sets the thickness of the left border.",restrictions:["length","line-width"]},{name:"border-radius",syntax:"<length-percentage>{1,4} [ / <length-percentage>{1,4} ]?",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-radius"}],description:"Defines the radii of the outer border edge.",restrictions:["length","percentage"]},{name:"border-right",syntax:"<line-width> || <line-style> || <color>",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-right-color",syntax:"<color>",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-color"}],description:"Sets the color of the right border.",restrictions:["color"]},{name:"border-right-style",syntax:"<line-style>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-style"}],description:"Sets the style of the right border.",restrictions:["line-style"]},{name:"border-right-width",syntax:"<line-width>",relevance:59,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-width"}],description:"Sets the thickness of the right border.",restrictions:["length","line-width"]},{name:"border-spacing",syntax:"<length> <length>?",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-spacing"}],description:"The lengths specify the distance that separates adjoining cell borders. If one length is specified, it gives both the horizontal and vertical spacing. If two are specified, the first gives the horizontal spacing and the second the vertical spacing. Lengths may not be negative.",restrictions:["length"]},{name:"border-style",values:[],syntax:"<line-style>{1,4}",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-style"}],description:"The style of the border around edges of an element.",restrictions:["line-style"]},{name:"border-top",syntax:"<line-width> || <line-style> || <color>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-top-color",syntax:"<color>",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-color"}],description:"Sets the color of the top border.",restrictions:["color"]},{name:"border-top-left-radius",syntax:"<length-percentage>{1,2}",relevance:76,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius"}],description:"Defines the radii of the top left outer border edge.",restrictions:["length","percentage"]},{name:"border-top-right-radius",syntax:"<length-percentage>{1,2}",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius"}],description:"Defines the radii of the top right outer border edge.",restrictions:["length","percentage"]},{name:"border-top-style",syntax:"<line-style>",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-style"}],description:"Sets the style of the top border.",restrictions:["line-style"]},{name:"border-top-width",syntax:"<line-width>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-width"}],description:"Sets the thickness of the top border.",restrictions:["length","line-width"]},{name:"border-width",values:[],syntax:"<line-width>{1,4}",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-width"}],description:"Shorthand that sets the four 'border-*-width' properties. If it has four values, they set top, right, bottom and left in that order. If left is missing, it is the same as right; if bottom is missing, it is the same as top; if right is missing, it is the same as top.",restrictions:["length","line-width"]},{name:"bottom",values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/bottom"}],description:"Specifies how far an absolutely positioned box's bottom margin edge is offset above the bottom edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"box-decoration-break",browsers:["E79","FF32","S7","C22","O15"],values:[{name:"clone",description:"Each box is independently wrapped with the border and padding."},{name:"slice",description:"The effect is as though the element were rendered with no breaks present, and then sliced by the breaks afterward."}],syntax:"slice | clone",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-decoration-break"}],description:"Specifies whether individual boxes are treated as broken pieces of one continuous box, or whether each box is individually wrapped with the border and padding.",restrictions:["enum"]},{name:"box-shadow",values:[{name:"inset",description:"Changes the drop shadow from an outer shadow (one that shadows the box onto the canvas, as if it were lifted above the canvas) to an inner shadow (one that shadows the canvas onto the box, as if the box were cut out of the canvas and shifted behind it)."},{name:"none",description:"No shadow."}],syntax:"none | <shadow>#",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-shadow"}],description:"Attaches one or more drop-shadows to the box. The property is a comma-separated list of shadows, each specified by 2-4 length values, an optional color, and an optional 'inset' keyword. Omitted lengths are 0; omitted colors are a user agent chosen color.",restrictions:["length","color","enum"]},{name:"box-sizing",values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}],syntax:"content-box | border-box",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-sizing"}],description:"Specifies the behavior of the 'width' and 'height' properties.",restrictions:["enum"]},{name:"break-after",values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the principal box."},{name:"avoid",description:"Avoid a break before/after the principal box."},{name:"avoid-column",description:"Avoid a column break before/after the principal box."},{name:"avoid-page",description:"Avoid a page break before/after the principal box."},{name:"column",description:"Always force a column break before/after the principal box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the principal box."},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],syntax:"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",relevance:50,description:"Describes the page/column/region break behavior after the generated box.",restrictions:["enum"]},{name:"break-before",values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the principal box."},{name:"avoid",description:"Avoid a break before/after the principal box."},{name:"avoid-column",description:"Avoid a column break before/after the principal box."},{name:"avoid-page",description:"Avoid a page break before/after the principal box."},{name:"column",description:"Always force a column break before/after the principal box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the principal box."},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],syntax:"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",relevance:50,description:"Describes the page/column/region break behavior before the generated box.",restrictions:["enum"]},{name:"break-inside",values:[{name:"auto",description:"Impose no additional breaking constraints within the box."},{name:"avoid",description:"Avoid breaks within the box."},{name:"avoid-column",description:"Avoid a column break within the box."},{name:"avoid-page",description:"Avoid a page break within the box."}],syntax:"auto | avoid | avoid-page | avoid-column | avoid-region",relevance:51,description:"Describes the page/column/region break behavior inside the principal box.",restrictions:["enum"]},{name:"caption-side",values:[{name:"bottom",description:"Positions the caption box below the table box."},{name:"top",description:"Positions the caption box above the table box."}],syntax:"top | bottom | block-start | block-end | inline-start | inline-end",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/caption-side"}],description:"Specifies the position of the caption box with respect to the table box.",restrictions:["enum"]},{name:"caret-color",browsers:["E79","FF53","S11.1","C57","O44"],values:[{name:"auto",description:"The user agent selects an appropriate color for the caret. This is generally currentcolor, but the user agent may choose a different color to ensure good visibility and contrast with the surrounding content, taking into account the value of currentcolor, the background, shadows, and other factors."}],syntax:"auto | <color>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/caret-color"}],description:"Controls the color of the text insertion indicator.",restrictions:["color","enum"]},{name:"clear",values:[{name:"both",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating and left-floating boxes that resulted from elements earlier in the source document."},{name:"left",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document."},{name:"none",description:"No constraint on the box's position with respect to floats."},{name:"right",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating boxes that resulted from elements earlier in the source document."}],syntax:"none | left | right | both | inline-start | inline-end",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clear"}],description:"Indicates which sides of an element's box(es) may not be adjacent to an earlier floating box. The 'clear' property does not consider floats inside the element itself or in other block formatting contexts.",restrictions:["enum"]},{name:"clip",values:[{name:"auto",description:"The element does not clip."},{name:"rect()",description:"Specifies offsets from the edges of the border box."}],syntax:"<shape> | auto",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clip"}],description:"Deprecated. Use the 'clip-path' property when support allows. Defines the visible portion of an element\u2019s box.",restrictions:["enum"]},{name:"clip-path",values:[{name:"none",description:"No clipping path gets created."},{name:"url()",description:"References a <clipPath> element to create a clipping path."}],syntax:"<clip-source> | [ <basic-shape> || <geometry-box> ] | none",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clip-path"}],description:"Specifies a clipping path where everything inside the path is visible and everything outside is clipped out.",restrictions:["url","shape","geometry-box","enum"]},{name:"clip-rule",browsers:["E","C5","FF3","IE10","O9","S6"],values:[{name:"evenodd",description:"Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."},{name:"nonzero",description:"Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}],relevance:50,description:"Indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape.",restrictions:["enum"]},{name:"color",syntax:"<color>",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/color"}],description:"Sets the color of an element's text",restrictions:["color"]},{name:"color-interpolation-filters",browsers:["E","C5","FF3","IE10","O9","S6"],values:[{name:"auto",description:"Color operations are not required to occur in a particular color space."},{name:"linearRGB",description:"Color operations should occur in the linearized RGB color space."},{name:"sRGB",description:"Color operations should occur in the sRGB color space."}],relevance:50,description:"Specifies the color space for imaging operations performed via filter effects.",restrictions:["enum"]},{name:"column-count",values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],syntax:"<integer> | auto",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-count"}],description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer","enum"]},{name:"column-fill",values:[{name:"auto",description:"Fills columns sequentially."},{name:"balance",description:"Balance content equally between columns, if possible."}],syntax:"auto | balance | balance-all",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-fill"}],description:"In continuous media, this property will only be consulted if the length of columns has been constrained. Otherwise, columns will automatically be balanced.",restrictions:["enum"]},{name:"column-gap",values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],syntax:"normal | <length-percentage>",relevance:54,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length","enum"]},{name:"column-rule",syntax:"<'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule"}],description:"Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"column-rule-color",syntax:"<color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-color"}],description:"Sets the color of the column rule",restrictions:["color"]},{name:"column-rule-style",syntax:"<'border-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-style"}],description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"column-rule-width",syntax:"<'border-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-width"}],description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"columns",values:[{name:"auto",description:"The width depends on the values of other properties."}],syntax:"<'column-width'> || <'column-count'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/columns"}],description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer","enum"]},{name:"column-span",values:[{name:"all",description:"The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."},{name:"none",description:"The element does not span multiple columns."}],syntax:"none | all",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-span"}],description:"Describes the page/column break behavior after the generated box.",restrictions:["enum"]},{name:"column-width",values:[{name:"auto",description:"The width depends on the values of other properties."}],syntax:"<length> | auto",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-width"}],description:"Describes the width of columns in multicol elements.",restrictions:["length","enum"]},{name:"contain",browsers:["E79","FF69","S15.4","C52","O40"],values:[{name:"none",description:"Indicates that the property has no effect."},{name:"strict",description:"Turns on all forms of containment for the element."},{name:"content",description:"All containment rules except size are applied to the element."},{name:"size",description:"For properties that can have effects on more than just an element and its descendants, those effects don't escape the containing element."},{name:"layout",description:"Turns on layout containment for the element."},{name:"style",description:"Turns on style containment for the element."},{name:"paint",description:"Turns on paint containment for the element."}],syntax:"none | strict | content | [ size || layout || style || paint ]",relevance:59,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain"}],description:"Indicates that an element and its contents are, as much as possible, independent of the rest of the document tree.",restrictions:["enum"]},{name:"content",values:[{name:"attr()",description:"The attr(n) function returns as a string the value of attribute n for the subject of the selector."},{name:"counter(name)",description:"Counters are denoted by identifiers (see the 'counter-increment' and 'counter-reset' properties)."},{name:"icon",description:"The (pseudo-)element is replaced in its entirety by the resource referenced by its 'icon' property, and treated as a replaced element."},{name:"none",description:"On elements, this inhibits the children of the element from being rendered as children of this element, as if the element was empty. On pseudo-elements it causes the pseudo-element to have no content."},{name:"normal",description:"See http://www.w3.org/TR/css3-content/#content for computation rules."},{name:"url()"}],syntax:"normal | none | [ <content-replacement> | <content-list> ] [/ [ <string> | <counter> ]+ ]?",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/content"}],description:"Determines which page-based occurrence of a given element is applied to a counter or string value.",restrictions:["string","url"]},{name:"counter-increment",values:[{name:"none",description:"This element does not alter the value of any counters."}],syntax:"[ <counter-name> <integer>? ]+ | none",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-increment"}],description:"Manipulate the value of existing counters.",restrictions:["identifier","integer"]},{name:"counter-reset",values:[{name:"none",description:"The counter is not modified."}],syntax:"[ <counter-name> <integer>? | <reversed-counter-name> <integer>? ]+ | none",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-reset"}],description:"Property accepts one or more names of counters (identifiers), each one optionally followed by an integer. The integer gives the value that the counter is set to on each occurrence of the element.",restrictions:["identifier","integer"]},{name:"cursor",values:[{name:"alias",description:"Indicates an alias of/shortcut to something is to be created. Often rendered as an arrow with a small curved arrow next to it."},{name:"all-scroll",description:"Indicates that the something can be scrolled in any direction. Often rendered as arrows pointing up, down, left, and right with a dot in the middle."},{name:"auto",description:"The UA determines the cursor to display based on the current context."},{name:"cell",description:"Indicates that a cell or set of cells may be selected. Often rendered as a thick plus-sign with a dot in the middle."},{name:"col-resize",description:"Indicates that the item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating them."},{name:"context-menu",description:"A context menu is available for the object under the cursor. Often rendered as an arrow with a small menu-like graphic next to it."},{name:"copy",description:"Indicates something is to be copied. Often rendered as an arrow with a small plus sign next to it."},{name:"crosshair",description:"A simple crosshair (e.g., short line segments resembling a '+' sign). Often used to indicate a two dimensional bitmap selection mode."},{name:"default",description:"The platform-dependent default cursor. Often rendered as an arrow."},{name:"e-resize",description:"Indicates that east edge is to be moved."},{name:"ew-resize",description:"Indicates a bidirectional east-west resize cursor."},{name:"grab",description:"Indicates that something can be grabbed."},{name:"grabbing",description:"Indicates that something is being grabbed."},{name:"help",description:"Help is available for the object under the cursor. Often rendered as a question mark or a balloon."},{name:"move",description:"Indicates something is to be moved."},{name:"-moz-grab",description:"Indicates that something can be grabbed."},{name:"-moz-grabbing",description:"Indicates that something is being grabbed."},{name:"-moz-zoom-in",description:"Indicates that something can be zoomed (magnified) in."},{name:"-moz-zoom-out",description:"Indicates that something can be zoomed (magnified) out."},{name:"ne-resize",description:"Indicates that movement starts from north-east corner."},{name:"nesw-resize",description:"Indicates a bidirectional north-east/south-west cursor."},{name:"no-drop",description:"Indicates that the dragged item cannot be dropped at the current cursor location. Often rendered as a hand or pointer with a small circle with a line through it."},{name:"none",description:"No cursor is rendered for the element."},{name:"not-allowed",description:"Indicates that the requested action will not be carried out. Often rendered as a circle with a line through it."},{name:"n-resize",description:"Indicates that north edge is to be moved."},{name:"ns-resize",description:"Indicates a bidirectional north-south cursor."},{name:"nw-resize",description:"Indicates that movement starts from north-west corner."},{name:"nwse-resize",description:"Indicates a bidirectional north-west/south-east cursor."},{name:"pointer",description:"The cursor is a pointer that indicates a link."},{name:"progress",description:"A progress indicator. The program is performing some processing, but is different from 'wait' in that the user may still interact with the program. Often rendered as a spinning beach ball, or an arrow with a watch or hourglass."},{name:"row-resize",description:"Indicates that the item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them."},{name:"se-resize",description:"Indicates that movement starts from south-east corner."},{name:"s-resize",description:"Indicates that south edge is to be moved."},{name:"sw-resize",description:"Indicates that movement starts from south-west corner."},{name:"text",description:"Indicates text that may be selected. Often rendered as a vertical I-beam."},{name:"vertical-text",description:"Indicates vertical-text that may be selected. Often rendered as a horizontal I-beam."},{name:"wait",description:"Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass."},{name:"-webkit-grab",description:"Indicates that something can be grabbed."},{name:"-webkit-grabbing",description:"Indicates that something is being grabbed."},{name:"-webkit-zoom-in",description:"Indicates that something can be zoomed (magnified) in."},{name:"-webkit-zoom-out",description:"Indicates that something can be zoomed (magnified) out."},{name:"w-resize",description:"Indicates that west edge is to be moved."},{name:"zoom-in",description:"Indicates that something can be zoomed (magnified) in."},{name:"zoom-out",description:"Indicates that something can be zoomed (magnified) out."}],syntax:"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing ] ]",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/cursor"}],description:"Allows control over cursor appearance in an element",restrictions:["url","number","enum"]},{name:"direction",values:[{name:"ltr",description:"Left-to-right direction."},{name:"rtl",description:"Right-to-left direction."}],syntax:"ltr | rtl",relevance:69,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/direction"}],description:"Specifies the inline base direction or directionality of any bidi paragraph, embedding, isolate, or override established by the box. Note: for HTML content use the 'dir' attribute and 'bdo' element rather than this property.",restrictions:["enum"]},{name:"display",values:[{name:"block",description:"The element generates a block-level box"},{name:"contents",description:"The element itself does not generate any boxes, but its children and pseudo-elements still generate boxes as normal."},{name:"flex",description:"The element generates a principal flex container box and establishes a flex formatting context."},{name:"flexbox",description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"flow-root",description:"The element generates a block container box, and lays out its contents using flow layout."},{name:"grid",description:"The element generates a principal grid container box, and establishes a grid formatting context."},{name:"inline",description:"The element generates an inline-level box."},{name:"inline-block",description:"A block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the box itself is formatted as an inline box."},{name:"inline-flex",description:"Inline-level flex container."},{name:"inline-flexbox",description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"inline-table",description:"Inline-level table wrapper box containing table box."},{name:"list-item",description:"One or more block boxes and one marker box."},{name:"-moz-box",description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-moz-deck"},{name:"-moz-grid"},{name:"-moz-grid-group"},{name:"-moz-grid-line"},{name:"-moz-groupbox"},{name:"-moz-inline-box",description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-moz-inline-grid"},{name:"-moz-inline-stack"},{name:"-moz-marker"},{name:"-moz-popup"},{name:"-moz-stack"},{name:"-ms-flexbox",description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-ms-grid",description:"The element generates a principal grid container box, and establishes a grid formatting context."},{name:"-ms-inline-flexbox",description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-ms-inline-grid",description:"Inline-level grid container."},{name:"none",description:"The element and its descendants generates no boxes."},{name:"ruby",description:"The element generates a principal ruby container box, and establishes a ruby formatting context."},{name:"ruby-base"},{name:"ruby-base-container"},{name:"ruby-text"},{name:"ruby-text-container"},{name:"run-in",description:"The element generates a run-in box. Run-in elements act like inlines or blocks, depending on the surrounding elements."},{name:"table",description:"The element generates a principal table wrapper box containing an additionally-generated table box, and establishes a table formatting context."},{name:"table-caption"},{name:"table-cell"},{name:"table-column"},{name:"table-column-group"},{name:"table-footer-group"},{name:"table-header-group"},{name:"table-row"},{name:"table-row-group"},{name:"-webkit-box",description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-webkit-flex",description:"The element lays out its contents using flow layout (block-and-inline layout)."},{name:"-webkit-inline-box",description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-webkit-inline-flex",description:"Inline-level flex container."}],syntax:"[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/display"}],description:"In combination with 'float' and 'position', determines the type of box or boxes that are generated for an element.",restrictions:["enum"]},{name:"empty-cells",values:[{name:"hide",description:"No borders or backgrounds are drawn around/behind empty cells."},{name:"-moz-show-background"},{name:"show",description:"Borders and backgrounds are drawn around/behind empty cells (like normal cells)."}],syntax:"show | hide",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/empty-cells"}],description:"In the separated borders model, this property controls the rendering of borders and backgrounds around cells that have no visible content.",restrictions:["enum"]},{name:"enable-background",values:[{name:"accumulate",description:"If the ancestor container element has a property of new, then all graphics elements within the current container are rendered both on the parent's background image and onto the target."},{name:"new",description:"Create a new background image canvas. All children of the current container element can access the background, and they will be rendered onto both the parent's background image canvas in addition to the target device."}],relevance:50,description:"Deprecated. Use 'isolation' property instead when support allows. Specifies how the accumulation of the background image is managed.",restrictions:["integer","length","percentage","enum"]},{name:"fallback",browsers:["FF33"],syntax:"<counter-style-name>",relevance:50,description:"@counter-style descriptor. Specifies a fallback counter style to be used when the current counter style can\u2019t create a representation for a given counter value.",restrictions:["identifier"]},{name:"fill",values:[{name:"url()",description:"A URL reference to a paint server element, which is an element that defines a paint server: \u2018hatch\u2019, \u2018linearGradient\u2019, \u2018mesh\u2019, \u2018pattern\u2019, \u2018radialGradient\u2019 and \u2018solidcolor\u2019."},{name:"none",description:"No paint is applied in this layer."}],relevance:77,description:"Paints the interior of the given graphical element.",restrictions:["color","enum","url"]},{name:"fill-opacity",relevance:52,description:"Specifies the opacity of the painting operation used to paint the interior the current object.",restrictions:["number(0-1)"]},{name:"fill-rule",values:[{name:"evenodd",description:"Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."},{name:"nonzero",description:"Determines the \u2018insideness\u2019 of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}],relevance:50,description:"Indicates the algorithm (or winding rule) which is to be used to determine what parts of the canvas are included inside the shape.",restrictions:["enum"]},{name:"filter",browsers:["E12","FF35","S9.1","C53","O40"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",browsers:["E12","FF35","S9.1","C53","O40"],description:"A filter reference to a <filter> element."}],syntax:"none | <filter-function-list>",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/filter"}],description:"Processes an element\u2019s rendering before it is displayed in the document, by applying one or more filter effects.",restrictions:["enum","url"]},{name:"flex",values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"content",description:"Indicates automatic sizing, based on the flex item\u2019s content."},{name:"none",description:"Expands to '0 0 auto'."}],syntax:"none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]",relevance:80,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex"}],description:"Specifies the components of a flexible length: the flex grow factor and flex shrink factor, and the flex basis.",restrictions:["length","number","percentage"]},{name:"flex-basis",values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"content",description:"Indicates automatic sizing, based on the flex item\u2019s content."}],syntax:"content | <'width'>",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-basis"}],description:"Sets the flex basis.",restrictions:["length","number","percentage"]},{name:"flex-direction",values:[{name:"column",description:"The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"row",description:"The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."}],syntax:"row | row-reverse | column | column-reverse",relevance:83,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-direction"}],description:"Specifies how flex items are placed in the flex container, by setting the direction of the flex container\u2019s main axis.",restrictions:["enum"]},{name:"flex-flow",values:[{name:"column",description:"The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"nowrap",description:"The flex container is single-line."},{name:"row",description:"The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],syntax:"<'flex-direction'> || <'flex-wrap'>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-flow"}],description:"Specifies how flexbox items are placed in the flexbox.",restrictions:["enum"]},{name:"flex-grow",syntax:"<number>",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-grow"}],description:"Sets the flex grow factor. Negative numbers are invalid.",restrictions:["number"]},{name:"flex-shrink",syntax:"<number>",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-shrink"}],description:"Sets the flex shrink factor. Negative numbers are invalid.",restrictions:["number"]},{name:"flex-wrap",values:[{name:"nowrap",description:"The flex container is single-line."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],syntax:"nowrap | wrap | wrap-reverse",relevance:79,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-wrap"}],description:"Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.",restrictions:["enum"]},{name:"float",values:[{name:"inline-end",description:"A keyword indicating that the element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts."},{name:"inline-start",description:"A keyword indicating that the element must float on the start side of its containing block. That is the left side with ltr scripts, and the right side with rtl scripts."},{name:"left",description:"The element generates a block box that is floated to the left. Content flows on the right side of the box, starting at the top (subject to the 'clear' property)."},{name:"none",description:"The box is not floated."},{name:"right",description:"Similar to 'left', except the box is floated to the right, and content flows on the left side of the box, starting at the top."}],syntax:"left | right | none | inline-start | inline-end",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/float"}],description:"Specifies how a box should be floated. It may be set for any element, but only applies to elements that generate boxes that are not absolutely positioned.",restrictions:["enum"]},{name:"flood-color",browsers:["E","C5","FF3","IE10","O9","S6"],relevance:50,description:"Indicates what color to use to flood the current filter primitive subregion.",restrictions:["color"]},{name:"flood-opacity",browsers:["E","C5","FF3","IE10","O9","S6"],relevance:50,description:"Indicates what opacity to use to flood the current filter primitive subregion.",restrictions:["number(0-1)","percentage"]},{name:"font",values:[{name:"100",description:"Thin"},{name:"200",description:"Extra Light (Ultra Light)"},{name:"300",description:"Light"},{name:"400",description:"Normal"},{name:"500",description:"Medium"},{name:"600",description:"Semi Bold (Demi Bold)"},{name:"700",description:"Bold"},{name:"800",description:"Extra Bold (Ultra Bold)"},{name:"900",description:"Black (Heavy)"},{name:"bold",description:"Same as 700"},{name:"bolder",description:"Specifies the weight of the face bolder than the inherited value."},{name:"caption",description:"The font used for captioned controls (e.g., buttons, drop-downs, etc.)."},{name:"icon",description:"The font used to label icons."},{name:"italic",description:"Selects a font that is labeled 'italic', or, if that is not available, one labeled 'oblique'."},{name:"large"},{name:"larger"},{name:"lighter",description:"Specifies the weight of the face lighter than the inherited value."},{name:"medium"},{name:"menu",description:"The font used in menus (e.g., dropdown menus and menu lists)."},{name:"message-box",description:"The font used in dialog boxes."},{name:"normal",description:"Specifies a face that is not labeled as a small-caps font."},{name:"oblique",description:"Selects a font that is labeled 'oblique'."},{name:"small"},{name:"small-caps",description:"Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."},{name:"small-caption",description:"The font used for labeling small controls."},{name:"smaller"},{name:"status-bar",description:"The font used in window status bars."},{name:"x-large"},{name:"x-small"},{name:"xx-large"},{name:"xx-small"}],syntax:"[ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar",relevance:84,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font"}],description:"Shorthand property for setting 'font-style', 'font-variant', 'font-weight', 'font-size', 'line-height', and 'font-family', at the same place in the style sheet. The syntax of this property is based on a traditional typographical shorthand notation to set multiple properties related to fonts.",restrictions:["font"]},{name:"font-family",values:[{name:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"},{name:"Arial, Helvetica, sans-serif"},{name:"Cambria, Cochin, Georgia, Times, 'Times New Roman', serif"},{name:"'Courier New', Courier, monospace"},{name:"cursive"},{name:"fantasy"},{name:"'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif"},{name:"Georgia, 'Times New Roman', Times, serif"},{name:"'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif"},{name:"Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif"},{name:"'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif"},{name:"monospace"},{name:"sans-serif"},{name:"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif"},{name:"serif"},{name:"'Times New Roman', Times, serif"},{name:"'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif"},{name:"Verdana, Geneva, Tahoma, sans-serif"}],syntax:"<family-name>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-family"}],description:"Specifies a prioritized list of font family names or generic family names. A user agent iterates through the list of family names until it matches an available font that contains a glyph for the character to be rendered.",restrictions:["font"]},{name:"font-feature-settings",values:[{name:'"aalt"',description:"Access All Alternates."},{name:'"abvf"',description:"Above-base Forms. Required in Khmer script."},{name:'"abvm"',description:"Above-base Mark Positioning. Required in Indic scripts."},{name:'"abvs"',description:"Above-base Substitutions. Required in Indic scripts."},{name:'"afrc"',description:"Alternative Fractions."},{name:'"akhn"',description:"Akhand. Required in most Indic scripts."},{name:'"blwf"',description:"Below-base Form. Required in a number of Indic scripts."},{name:'"blwm"',description:"Below-base Mark Positioning. Required in Indic scripts."},{name:'"blws"',description:"Below-base Substitutions. Required in Indic scripts."},{name:'"calt"',description:"Contextual Alternates."},{name:'"case"',description:"Case-Sensitive Forms. Applies only to European scripts; particularly prominent in Spanish-language setting."},{name:'"ccmp"',description:"Glyph Composition/Decomposition."},{name:'"cfar"',description:"Conjunct Form After Ro. Required in Khmer scripts."},{name:'"cjct"',description:"Conjunct Forms. Required in Indic scripts that show similarity to Devanagari."},{name:'"clig"',description:"Contextual Ligatures."},{name:'"cpct"',description:"Centered CJK Punctuation. Used primarily in Chinese fonts."},{name:'"cpsp"',description:"Capital Spacing. Should not be used in connecting scripts (e.g. most Arabic)."},{name:'"cswh"',description:"Contextual Swash."},{name:'"curs"',description:"Cursive Positioning. Can be used in any cursive script."},{name:'"c2pc"',description:"Petite Capitals From Capitals. Applies only to bicameral scripts."},{name:'"c2sc"',description:"Small Capitals From Capitals. Applies only to bicameral scripts."},{name:'"dist"',description:"Distances. Required in Indic scripts."},{name:'"dlig"',description:"Discretionary ligatures."},{name:'"dnom"',description:"Denominators."},{name:'"dtls"',description:"Dotless Forms. Applied to math formula layout."},{name:'"expt"',description:"Expert Forms. Applies only to Japanese."},{name:'"falt"',description:"Final Glyph on Line Alternates. Can be used in any cursive script."},{name:'"fin2"',description:"Terminal Form #2. Used only with the Syriac script."},{name:'"fin3"',description:"Terminal Form #3. Used only with the Syriac script."},{name:'"fina"',description:"Terminal Forms. Can be used in any alphabetic script."},{name:'"flac"',description:"Flattened ascent forms. Applied to math formula layout."},{name:'"frac"',description:"Fractions."},{name:'"fwid"',description:"Full Widths. Applies to any script which can use monospaced forms."},{name:'"half"',description:"Half Forms. Required in Indic scripts that show similarity to Devanagari."},{name:'"haln"',description:"Halant Forms. Required in Indic scripts."},{name:'"halt"',description:"Alternate Half Widths. Used only in CJKV fonts."},{name:'"hist"',description:"Historical Forms."},{name:'"hkna"',description:"Horizontal Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."},{name:'"hlig"',description:"Historical Ligatures."},{name:'"hngl"',description:"Hangul. Korean only."},{name:'"hojo"',description:"Hojo Kanji Forms (JIS X 0212-1990 Kanji Forms). Used only with Kanji script."},{name:'"hwid"',description:"Half Widths. Generally used only in CJKV fonts."},{name:'"init"',description:"Initial Forms. Can be used in any alphabetic script."},{name:'"isol"',description:"Isolated Forms. Can be used in any cursive script."},{name:'"ital"',description:"Italics. Applies mostly to Latin; note that many non-Latin fonts contain Latin as well."},{name:'"jalt"',description:"Justification Alternates. Can be used in any cursive script."},{name:'"jp78"',description:"JIS78 Forms. Applies only to Japanese."},{name:'"jp83"',description:"JIS83 Forms. Applies only to Japanese."},{name:'"jp90"',description:"JIS90 Forms. Applies only to Japanese."},{name:'"jp04"',description:"JIS2004 Forms. Applies only to Japanese."},{name:'"kern"',description:"Kerning."},{name:'"lfbd"',description:"Left Bounds."},{name:'"liga"',description:"Standard Ligatures."},{name:'"ljmo"',description:"Leading Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"lnum"',description:"Lining Figures."},{name:'"locl"',description:"Localized Forms."},{name:'"ltra"',description:"Left-to-right glyph alternates."},{name:'"ltrm"',description:"Left-to-right mirrored forms."},{name:'"mark"',description:"Mark Positioning."},{name:'"med2"',description:"Medial Form #2. Used only with the Syriac script."},{name:'"medi"',description:"Medial Forms."},{name:'"mgrk"',description:"Mathematical Greek."},{name:'"mkmk"',description:"Mark to Mark Positioning."},{name:'"nalt"',description:"Alternate Annotation Forms."},{name:'"nlck"',description:"NLC Kanji Forms. Used only with Kanji script."},{name:'"nukt"',description:"Nukta Forms. Required in Indic scripts.."},{name:'"numr"',description:"Numerators."},{name:'"onum"',description:"Oldstyle Figures."},{name:'"opbd"',description:"Optical Bounds."},{name:'"ordn"',description:"Ordinals. Applies mostly to Latin script."},{name:'"ornm"',description:"Ornaments."},{name:'"palt"',description:"Proportional Alternate Widths. Used mostly in CJKV fonts."},{name:'"pcap"',description:"Petite Capitals."},{name:'"pkna"',description:"Proportional Kana. Generally used only in Japanese fonts."},{name:'"pnum"',description:"Proportional Figures."},{name:'"pref"',description:"Pre-base Forms. Required in Khmer and Myanmar (Burmese) scripts and southern Indic scripts that may display a pre-base form of Ra."},{name:'"pres"',description:"Pre-base Substitutions. Required in Indic scripts."},{name:'"pstf"',description:"Post-base Forms. Required in scripts of south and southeast Asia that have post-base forms for consonants eg: Gurmukhi, Malayalam, Khmer."},{name:'"psts"',description:"Post-base Substitutions."},{name:'"pwid"',description:"Proportional Widths."},{name:'"qwid"',description:"Quarter Widths. Generally used only in CJKV fonts."},{name:'"rand"',description:"Randomize."},{name:'"rclt"',description:"Required Contextual Alternates. May apply to any script, but is especially important for many styles of Arabic."},{name:'"rlig"',description:"Required Ligatures. Applies to Arabic and Syriac. May apply to some other scripts."},{name:'"rkrf"',description:"Rakar Forms. Required in Devanagari and Gujarati scripts."},{name:'"rphf"',description:"Reph Form. Required in Indic scripts. E.g. Devanagari, Kannada."},{name:'"rtbd"',description:"Right Bounds."},{name:'"rtla"',description:"Right-to-left alternates."},{name:'"rtlm"',description:"Right-to-left mirrored forms."},{name:'"ruby"',description:"Ruby Notation Forms. Applies only to Japanese."},{name:'"salt"',description:"Stylistic Alternates."},{name:'"sinf"',description:"Scientific Inferiors."},{name:'"size"',description:"Optical size."},{name:'"smcp"',description:"Small Capitals. Applies only to bicameral scripts."},{name:'"smpl"',description:"Simplified Forms. Applies only to Chinese and Japanese."},{name:'"ssty"',description:"Math script style alternates."},{name:'"stch"',description:"Stretching Glyph Decomposition."},{name:'"subs"',description:"Subscript."},{name:'"sups"',description:"Superscript."},{name:'"swsh"',description:"Swash. Does not apply to ideographic scripts."},{name:'"titl"',description:"Titling."},{name:'"tjmo"',description:"Trailing Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"tnam"',description:"Traditional Name Forms. Applies only to Japanese."},{name:'"tnum"',description:"Tabular Figures."},{name:'"trad"',description:"Traditional Forms. Applies only to Chinese and Japanese."},{name:'"twid"',description:"Third Widths. Generally used only in CJKV fonts."},{name:'"unic"',description:"Unicase."},{name:'"valt"',description:"Alternate Vertical Metrics. Applies only to scripts with vertical writing modes."},{name:'"vatu"',description:"Vattu Variants. Used for Indic scripts. E.g. Devanagari."},{name:'"vert"',description:"Vertical Alternates. Applies only to scripts with vertical writing modes."},{name:'"vhal"',description:"Alternate Vertical Half Metrics. Used only in CJKV fonts."},{name:'"vjmo"',description:"Vowel Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"vkna"',description:"Vertical Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."},{name:'"vkrn"',description:"Vertical Kerning."},{name:'"vpal"',description:"Proportional Alternate Vertical Metrics. Used mostly in CJKV fonts."},{name:'"vrt2"',description:"Vertical Alternates and Rotation. Applies only to scripts with vertical writing modes."},{name:'"zero"',description:"Slashed Zero."},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off",description:"Disable feature."},{name:"on",description:"Enable feature."}],syntax:"normal | <feature-tag-value>#",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-feature-settings"}],description:"Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"font-kerning",browsers:["E79","FF32","S9","C33","O20"],values:[{name:"auto",description:"Specifies that kerning is applied at the discretion of the user agent."},{name:"none",description:"Specifies that kerning is not applied."},{name:"normal",description:"Specifies that kerning is applied."}],syntax:"auto | normal | none",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-kerning"}],description:"Kerning is the contextual adjustment of inter-glyph spacing. This property controls metric kerning, kerning that utilizes adjustment data contained in the font.",restrictions:["enum"]},{name:"font-language-override",browsers:["FF34"],values:[{name:"normal",description:"Implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering."}],syntax:"normal | <string>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-language-override"}],description:"The value of 'normal' implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering.",restrictions:["string"]},{name:"font-size",values:[{name:"large"},{name:"larger"},{name:"medium"},{name:"small"},{name:"smaller"},{name:"x-large"},{name:"x-small"},{name:"xx-large"},{name:"xx-small"}],syntax:"<absolute-size> | <relative-size> | <length-percentage>",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-size"}],description:"Indicates the desired height of glyphs from the font. For scalable fonts, the font-size is a scale factor applied to the EM unit of the font. (Note that certain glyphs may bleed outside their EM box.) For non-scalable fonts, the font-size is converted into absolute units and matched against the declared font-size of the font, using the same absolute coordinate space for both of the matched values.",restrictions:["length","percentage"]},{name:"font-size-adjust",browsers:["E79","FF40","C43","O30"],values:[{name:"none",description:"Do not preserve the font\u2019s x-height."}],syntax:"none | [ ex-height | cap-height | ch-width | ic-width | ic-height ]? [ from-font | <number> ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-size-adjust"}],description:"Preserves the readability of text when font fallback occurs by adjusting the font-size so that the x-height is the same regardless of the font used.",restrictions:["number"]},{name:"font-stretch",values:[{name:"condensed"},{name:"expanded"},{name:"extra-condensed"},{name:"extra-expanded"},{name:"narrower",description:"Indicates a narrower value relative to the width of the parent element."},{name:"normal"},{name:"semi-condensed"},{name:"semi-expanded"},{name:"ultra-condensed"},{name:"ultra-expanded"},{name:"wider",description:"Indicates a wider value relative to the width of the parent element."}],syntax:"<font-stretch-absolute>{1,2}",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-stretch"}],description:"Selects a normal, condensed, or expanded face from a font family.",restrictions:["enum"]},{name:"font-style",values:[{name:"italic",description:"Selects a font that is labeled as an 'italic' face, or an 'oblique' face if one is not"},{name:"normal",description:"Selects a face that is classified as 'normal'."},{name:"oblique",description:"Selects a font that is labeled as an 'oblique' face, or an 'italic' face if one is not."}],syntax:"normal | italic | oblique <angle>{0,2}",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-style"}],description:"Allows italic or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face.",restrictions:["enum"]},{name:"font-synthesis",browsers:["E97","FF34","S9","C97","O83"],values:[{name:"none",description:"Disallow all synthetic faces."},{name:"style",description:"Allow synthetic italic faces."},{name:"weight",description:"Allow synthetic bold faces."}],syntax:"none | [ weight || style || small-caps ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis"}],description:"Controls whether user agents are allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces.",restrictions:["enum"]},{name:"font-variant",values:[{name:"normal",description:"Specifies a face that is not labeled as a small-caps font."},{name:"small-caps",description:"Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."}],syntax:"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic(<feature-value-name>) || historical-forms || styleset(<feature-value-name>#) || character-variant(<feature-value-name>#) || swash(<feature-value-name>) || ornaments(<feature-value-name>) || annotation(<feature-value-name>) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant"}],description:"Specifies variant representations of the font",restrictions:["enum"]},{name:"font-variant-alternates",browsers:["FF34","S9.1"],values:[{name:"annotation()",description:"Enables display of alternate annotation forms."},{name:"character-variant()",description:"Enables display of specific character variants."},{name:"historical-forms",description:"Enables display of historical forms."},{name:"normal",description:"None of the features are enabled."},{name:"ornaments()",description:"Enables replacement of default glyphs with ornaments, if provided in the font."},{name:"styleset()",description:"Enables display with stylistic sets."},{name:"stylistic()",description:"Enables display of stylistic alternates."},{name:"swash()",description:"Enables display of swash glyphs."}],syntax:"normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates"}],description:"For any given character, fonts can provide a variety of alternate glyphs in addition to the default glyph for that character. This property provides control over the selection of these alternate glyphs.",restrictions:["enum"]},{name:"font-variant-caps",browsers:["E79","FF34","S9.1","C52","O39"],values:[{name:"all-petite-caps",description:"Enables display of petite capitals for both upper and lowercase letters."},{name:"all-small-caps",description:"Enables display of small capitals for both upper and lowercase letters."},{name:"normal",description:"None of the features are enabled."},{name:"petite-caps",description:"Enables display of petite capitals."},{name:"small-caps",description:"Enables display of small capitals. Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters."},{name:"titling-caps",description:"Enables display of titling capitals."},{name:"unicase",description:"Enables display of mixture of small capitals for uppercase letters with normal lowercase letters."}],syntax:"normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-caps"}],description:"Specifies control over capitalized forms.",restrictions:["enum"]},{name:"font-variant-east-asian",browsers:["E79","FF34","S9.1","C63","O50"],values:[{name:"full-width",description:"Enables rendering of full-width variants."},{name:"jis04",description:"Enables rendering of JIS04 forms."},{name:"jis78",description:"Enables rendering of JIS78 forms."},{name:"jis83",description:"Enables rendering of JIS83 forms."},{name:"jis90",description:"Enables rendering of JIS90 forms."},{name:"normal",description:"None of the features are enabled."},{name:"proportional-width",description:"Enables rendering of proportionally-spaced variants."},{name:"ruby",description:"Enables display of ruby variant glyphs."},{name:"simplified",description:"Enables rendering of simplified forms."},{name:"traditional",description:"Enables rendering of traditional forms."}],syntax:"normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian"}],description:"Allows control of glyph substitute and positioning in East Asian text.",restrictions:["enum"]},{name:"font-variant-ligatures",browsers:["E79","FF34","S9.1","C34","O21"],values:[{name:"additional-ligatures",description:"Enables display of additional ligatures."},{name:"common-ligatures",description:"Enables display of common ligatures."},{name:"contextual",browsers:["E79","FF34","S9.1","C34","O21"],description:"Enables display of contextual alternates."},{name:"discretionary-ligatures",description:"Enables display of discretionary ligatures."},{name:"historical-ligatures",description:"Enables display of historical ligatures."},{name:"no-additional-ligatures",description:"Disables display of additional ligatures."},{name:"no-common-ligatures",description:"Disables display of common ligatures."},{name:"no-contextual",browsers:["E79","FF34","S9.1","C34","O21"],description:"Disables display of contextual alternates."},{name:"no-discretionary-ligatures",description:"Disables display of discretionary ligatures."},{name:"no-historical-ligatures",description:"Disables display of historical ligatures."},{name:"none",browsers:["E79","FF34","S9.1","C34","O21"],description:"Disables all ligatures."},{name:"normal",description:"Implies that the defaults set by the font are used."}],syntax:"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures"}],description:"Specifies control over which ligatures are enabled or disabled. A value of \u2018normal\u2019 implies that the defaults set by the font are used.",restrictions:["enum"]},{name:"font-variant-numeric",browsers:["E79","FF34","S9.1","C52","O39"],values:[{name:"diagonal-fractions",description:"Enables display of lining diagonal fractions."},{name:"lining-nums",description:"Enables display of lining numerals."},{name:"normal",description:"None of the features are enabled."},{name:"oldstyle-nums",description:"Enables display of old-style numerals."},{name:"ordinal",description:"Enables display of letter forms used with ordinal numbers."},{name:"proportional-nums",description:"Enables display of proportional numerals."},{name:"slashed-zero",description:"Enables display of slashed zeros."},{name:"stacked-fractions",description:"Enables display of lining stacked fractions."},{name:"tabular-nums",description:"Enables display of tabular numerals."}],syntax:"normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric"}],description:"Specifies control over numerical forms.",restrictions:["enum"]},{name:"font-variant-position",browsers:["FF34","S9.1"],values:[{name:"normal",description:"None of the features are enabled."},{name:"sub",description:"Enables display of subscript variants (OpenType feature: subs)."},{name:"super",description:"Enables display of superscript variants (OpenType feature: sups)."}],syntax:"normal | sub | super",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-position"}],description:"Specifies the vertical position",restrictions:["enum"]},{name:"font-weight",values:[{name:"100",description:"Thin"},{name:"200",description:"Extra Light (Ultra Light)"},{name:"300",description:"Light"},{name:"400",description:"Normal"},{name:"500",description:"Medium"},{name:"600",description:"Semi Bold (Demi Bold)"},{name:"700",description:"Bold"},{name:"800",description:"Extra Bold (Ultra Bold)"},{name:"900",description:"Black (Heavy)"},{name:"bold",description:"Same as 700"},{name:"bolder",description:"Specifies the weight of the face bolder than the inherited value."},{name:"lighter",description:"Specifies the weight of the face lighter than the inherited value."},{name:"normal",description:"Same as 400"}],syntax:"<font-weight-absolute>{1,2}",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-weight"}],description:"Specifies weight of glyphs in the font, their degree of blackness or stroke thickness.",restrictions:["enum"]},{name:"glyph-orientation-horizontal",relevance:50,description:"Controls glyph orientation when the inline-progression-direction is horizontal.",restrictions:["angle","number"]},{name:"glyph-orientation-vertical",values:[{name:"auto",description:"Sets the orientation based on the fullwidth or non-fullwidth characters and the most common orientation."}],relevance:50,description:"Controls glyph orientation when the inline-progression-direction is vertical.",restrictions:["angle","number","enum"]},{name:"grid-area",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]{0,3}",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-area"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement. Shorthand for 'grid-row-start', 'grid-column-start', 'grid-row-end', and 'grid-column-end'.",restrictions:["identifier","integer"]},{name:"grid",browsers:["E16","FF52","S10.1","C57","O44"],syntax:"<'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? | [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid"}],description:"The grid CSS property is a shorthand property that sets all of the explicit grid properties ('grid-template-rows', 'grid-template-columns', and 'grid-template-areas'), and all the implicit grid properties ('grid-auto-rows', 'grid-auto-columns', and 'grid-auto-flow'), in a single declaration.",restrictions:["identifier","length","percentage","string","enum"]},{name:"grid-auto-columns",values:[{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."}],syntax:"<track-size>+",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns"}],description:"Specifies the size of implicitly created columns.",restrictions:["length","percentage"]},{name:"grid-auto-flow",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"row",description:"The auto-placement algorithm places items by filling each row in turn, adding new rows as necessary."},{name:"column",description:"The auto-placement algorithm places items by filling each column in turn, adding new columns as necessary."},{name:"dense",description:"If specified, the auto-placement algorithm uses a \u201cdense\u201d packing algorithm, which attempts to fill in holes earlier in the grid if smaller items come up later."}],syntax:"[ row | column ] || dense",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow"}],description:"Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid.",restrictions:["enum"]},{name:"grid-auto-rows",values:[{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."}],syntax:"<track-size>+",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows"}],description:"Specifies the size of implicitly created rows.",restrictions:["length","percentage"]},{name:"grid-column",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]?",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column"}],description:"Shorthand for 'grid-column-start' and 'grid-column-end'.",restrictions:["identifier","integer","enum"]},{name:"grid-column-end",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column-end"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-column-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<length-percentage>",relevance:2,description:"Specifies the gutters between grid columns. Replaced by 'column-gap' property.",restrictions:["length"]},{name:"grid-column-start",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column-start"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<'grid-row-gap'> <'grid-column-gap'>?",relevance:3,description:"Shorthand that specifies the gutters between grid columns and grid rows in one declaration. Replaced by 'gap' property.",restrictions:["length"]},{name:"grid-row",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]?",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row"}],description:"Shorthand for 'grid-row-start' and 'grid-row-end'.",restrictions:["identifier","integer","enum"]},{name:"grid-row-end",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row-end"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-row-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<length-percentage>",relevance:1,description:"Specifies the gutters between grid rows. Replaced by 'row-gap' property.",restrictions:["length"]},{name:"grid-row-start",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item\u2019s placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item\u2019s placement such that the corresponding edge of the grid item\u2019s grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row-start"}],description:"Determine a grid item\u2019s size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-template",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"Sets all three properties to their initial values."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Sets 'grid-template-rows' and 'grid-template-columns' to 'subgrid', and 'grid-template-areas' to its initial value."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template"}],description:"Shorthand for setting grid-template-columns, grid-template-rows, and grid-template-areas in a single declaration.",restrictions:["identifier","length","percentage","string","enum"]},{name:"grid-template-areas",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"The grid container doesn\u2019t define any named grid areas."}],syntax:"none | <string>+",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-areas"}],description:"Specifies named grid areas, which are not associated with any particular grid item, but can be referenced from the grid-placement properties.",restrictions:["string"]},{name:"grid-template-columns",values:[{name:"none",description:"There is no explicit grid; any rows/columns will be implicitly generated."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Indicates that the grid will align to its parent grid in that axis."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-columns"}],description:"specifies, as a space-separated track list, the line names and track sizing functions of the grid.",restrictions:["identifier","length","percentage","enum"]},{name:"grid-template-rows",values:[{name:"none",description:"There is no explicit grid; any rows/columns will be implicitly generated."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Indicates that the grid will align to its parent grid in that axis."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-rows"}],description:"specifies, as a space-separated track list, the line names and track sizing functions of the grid.",restrictions:["identifier","length","percentage","string","enum"]},{name:"height",values:[{name:"auto",description:"The height depends on the values of other properties."},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>{1,2}",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/height"}],description:"Specifies the height of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.",restrictions:["length","percentage"]},{name:"hyphens",values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],syntax:"none | manual | auto",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hyphens"}],description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"image-orientation",browsers:["E81","FF26","S13.1","C81","O67"],values:[{name:"flip",description:"After rotating by the precededing angle, the image is flipped horizontally. Defaults to 0deg if the angle is ommitted."},{name:"from-image",description:"If the image has an orientation specified in its metadata, such as EXIF, this value computes to the angle that the metadata specifies is necessary to correctly orient the image."}],syntax:"from-image | <angle> | [ <angle>? flip ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/image-orientation"}],description:"Specifies an orthogonal rotation to be applied to an image before it is laid out.",restrictions:["angle"]},{name:"image-rendering",browsers:["E79","FF3.6","S6","C13","O15"],values:[{name:"auto",description:"The image should be scaled with an algorithm that maximizes the appearance of the image."},{name:"crisp-edges",description:"The image must be scaled with an algorithm that preserves contrast and edges in the image, and which does not smooth colors or introduce blur to the image in the process."},{name:"-moz-crisp-edges",browsers:["E79","FF3.6","S6","C13","O15"]},{name:"optimizeQuality",description:"Deprecated."},{name:"optimizeSpeed",description:"Deprecated."},{name:"pixelated",description:"When scaling the image up, the 'nearest neighbor' or similar algorithm must be used, so that the image appears to be simply composed of very large pixels."}],syntax:"auto | crisp-edges | pixelated",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/image-rendering"}],description:"Provides a hint to the user-agent about what aspects of an image are most important to preserve when the image is scaled, to aid the user-agent in the choice of an appropriate scaling algorithm.",restrictions:["enum"]},{name:"ime-mode",browsers:["E12","FF3","IE5"],values:[{name:"active",description:"The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."},{name:"auto",description:"No change is made to the current input method editor state. This is the default."},{name:"disabled",description:"The input method editor is disabled and may not be activated by the user."},{name:"inactive",description:"The input method editor is initially inactive, but the user may activate it if they wish."},{name:"normal",description:"The IME state should be normal; this value can be used in a user style sheet to override the page setting."}],status:"obsolete",syntax:"auto | normal | active | inactive | disabled",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ime-mode"}],description:"Controls the state of the input method editor for text fields.",restrictions:["enum"]},{name:"inline-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"auto",description:"Depends on the values of other properties."}],syntax:"<'width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inline-size"}],description:"Size of an element in the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"isolation",browsers:["E79","FF36","S8","C41","O30"],values:[{name:"auto",description:"Elements are not isolated unless an operation is applied that causes the creation of a stacking context."},{name:"isolate",description:"In CSS will turn the element into a stacking context."}],syntax:"auto | isolate",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/isolation"}],description:"In CSS setting to 'isolate' will turn the element into a stacking context. In SVG, it defines whether an element is isolated or not.",restrictions:["enum"]},{name:"justify-content",values:[{name:"center",description:"Flex items are packed toward the center of the line."},{name:"start",description:"The items are packed flush to each other toward the start edge of the alignment container in the main axis."},{name:"end",description:"The items are packed flush to each other toward the end edge of the alignment container in the main axis."},{name:"left",description:"The items are packed flush to each other toward the left edge of the alignment container in the main axis."},{name:"right",description:"The items are packed flush to each other toward the right edge of the alignment container in the main axis."},{name:"safe",description:"If the size of the item overflows the alignment container, the item is instead aligned as if the alignment mode were start."},{name:"unsafe",description:"Regardless of the relative sizes of the item and alignment container, the given alignment value is honored."},{name:"stretch",description:"If the combined size of the alignment subjects is less than the size of the alignment container, any auto-sized alignment subjects have their size increased equally (not proportionally), while still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size exactly fills the alignment container."},{name:"space-evenly",description:"The items are evenly distributed within the alignment container along the main axis."},{name:"flex-end",description:"Flex items are packed toward the end of the line."},{name:"flex-start",description:"Flex items are packed toward the start of the line."},{name:"space-around",description:"Flex items are evenly distributed in the line, with half-size spaces on either end."},{name:"space-between",description:"Flex items are evenly distributed in the line."},{name:"baseline",description:"Specifies participation in first-baseline alignment."},{name:"first baseline",description:"Specifies participation in first-baseline alignment."},{name:"last baseline",description:"Specifies participation in last-baseline alignment."}],syntax:"normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]",relevance:85,description:"Aligns flex items along the main axis of the current line of the flex container.",restrictions:["enum"]},{name:"kerning",values:[{name:"auto",description:"Indicates that the user agent should adjust inter-glyph spacing based on kerning tables that are included in the font that will be used."}],relevance:50,description:"Indicates whether the user agent should adjust inter-glyph spacing based on kerning tables that are included in the relevant font or instead disable auto-kerning and set inter-character spacing to a specific length.",restrictions:["length","enum"]},{name:"left",values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/left"}],description:"Specifies how far an absolutely positioned box's left margin edge is offset to the right of the left edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"letter-spacing",values:[{name:"normal",description:"The spacing is the normal spacing for the current font. It is typically zero-length."}],syntax:"normal | <length>",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/letter-spacing"}],description:"Specifies the minimum, maximum, and optimal spacing between grapheme clusters.",restrictions:["length"]},{name:"lighting-color",browsers:["E","C5","FF3","IE10","O9","S6"],relevance:50,description:"Defines the color of the light source for filter primitives 'feDiffuseLighting' and 'feSpecularLighting'.",restrictions:["color"]},{name:"line-break",values:[{name:"auto",description:"The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."},{name:"loose",description:"Breaks text using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."},{name:"normal",description:"Breaks text using the most common set of line-breaking rules."},{name:"strict",description:"Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."}],syntax:"auto | loose | normal | strict | anywhere",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-break"}],description:"Specifies what set of line breaking restrictions are in effect within the element.",restrictions:["enum"]},{name:"line-height",values:[{name:"normal",description:"Tells user agents to set the computed value to a 'reasonable' value based on the font size of the element."}],syntax:"normal | <number> | <length> | <percentage>",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-height"}],description:"Determines the block-progression dimension of the text content area of an inline box.",restrictions:["number","length","percentage"]},{name:"list-style",values:[{name:"armenian"},{name:"circle",description:"A hollow circle."},{name:"decimal"},{name:"decimal-leading-zero"},{name:"disc",description:"A filled circle."},{name:"georgian"},{name:"inside",description:"The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."},{name:"lower-alpha"},{name:"lower-greek"},{name:"lower-latin"},{name:"lower-roman"},{name:"none"},{name:"outside",description:"The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."},{name:"square",description:"A filled square."},{name:"symbols()",description:"Allows a counter style to be defined inline."},{name:"upper-alpha"},{name:"upper-latin"},{name:"upper-roman"},{name:"url()"}],syntax:"<'list-style-type'> || <'list-style-position'> || <'list-style-image'>",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style"}],description:"Shorthand for setting 'list-style-type', 'list-style-position' and 'list-style-image'",restrictions:["image","enum","url"]},{name:"list-style-image",values:[{name:"none",description:"The default contents of the of the list item\u2019s marker are given by 'list-style-type' instead."}],syntax:"<image> | none",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-image"}],description:"Sets the image that will be used as the list item marker. When the image is available, it will replace the marker set with the 'list-style-type' marker.",restrictions:["image"]},{name:"list-style-position",values:[{name:"inside",description:"The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."},{name:"outside",description:"The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."}],syntax:"inside | outside",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-position"}],description:"Specifies the position of the '::marker' pseudo-element's box in the list item.",restrictions:["enum"]},{name:"list-style-type",values:[{name:"armenian",description:"Traditional uppercase Armenian numbering."},{name:"circle",description:"A hollow circle."},{name:"decimal",description:"Western decimal numbers."},{name:"decimal-leading-zero",description:"Decimal numbers padded by initial zeros."},{name:"disc",description:"A filled circle."},{name:"georgian",description:"Traditional Georgian numbering."},{name:"lower-alpha",description:"Lowercase ASCII letters."},{name:"lower-greek",description:"Lowercase classical Greek."},{name:"lower-latin",description:"Lowercase ASCII letters."},{name:"lower-roman",description:"Lowercase ASCII Roman numerals."},{name:"none",description:"No marker"},{name:"square",description:"A filled square."},{name:"symbols()",description:"Allows a counter style to be defined inline."},{name:"upper-alpha",description:"Uppercase ASCII letters."},{name:"upper-latin",description:"Uppercase ASCII letters."},{name:"upper-roman",description:"Uppercase ASCII Roman numerals."}],syntax:"<counter-style> | <string> | none",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-type"}],description:"Used to construct the default contents of a list item\u2019s marker",restrictions:["enum","string"]},{name:"margin",values:[{name:"auto"}],syntax:"[ <length> | <percentage> | auto ]{1,4}",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits.",restrictions:["length","percentage"]},{name:"margin-block-end",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block-end"}],description:"Logical 'margin-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-block-start",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block-start"}],description:"Logical 'margin-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-bottom",values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-bottom"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline-end"}],description:"Logical 'margin-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline-start"}],description:"Logical 'margin-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-left",values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-left"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-right",values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-right"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-top",values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-top"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"marker",values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker symbol that shall be used for all points on the sets the value for all vertices on the given \u2018path\u2019 element or basic shape.",restrictions:["url"]},{name:"marker-end",values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at the last vertices of the given markable element.",restrictions:["url"]},{name:"marker-mid",values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at all vertices except the first and last.",restrictions:["url"]},{name:"marker-start",values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at the first vertices of the given markable element.",restrictions:["url"]},{name:"mask-image",browsers:["E79","FF53","S15.4","C1","O15"],values:[{name:"none",description:"Counts as a transparent black image layer."},{name:"url()",description:"Reference to a <mask element or to a CSS image."}],syntax:"<mask-reference>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-image"}],description:"Sets the mask layer image of an element.",restrictions:["url","image","enum"]},{name:"mask-mode",browsers:["FF53","S15.4"],values:[{name:"alpha",description:"Alpha values of the mask layer image should be used as the mask values."},{name:"auto",description:"Use alpha values if 'mask-image' is an image, luminance if a <mask> element or a CSS image."},{name:"luminance",description:"Luminance values of the mask layer image should be used as the mask values."}],syntax:"<masking-mode>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-mode"}],description:"Indicates whether the mask layer image is treated as luminance mask or alpha mask.",restrictions:["url","image","enum"]},{name:"mask-origin",browsers:["E79","FF53","S15.4","C1","O15"],syntax:"<geometry-box>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-origin"}],description:"Specifies the mask positioning area.",restrictions:["geometry-box","enum"]},{name:"mask-position",browsers:["E79","FF53","S15.4","C1","O15"],syntax:"<position>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-position"}],description:"Specifies how mask layer images are positioned.",restrictions:["position","length","percentage"]},{name:"mask-repeat",browsers:["E79","FF53","S15.4","C1","O15"],syntax:"<repeat-style>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-repeat"}],description:"Specifies how mask layer images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"mask-size",browsers:["E79","FF53","S15.4","C4","O15"],values:[{name:"auto",description:"Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],syntax:"<bg-size>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-size"}],description:"Specifies the size of the mask layer images.",restrictions:["length","percentage","enum"]},{name:"mask-type",browsers:["E79","FF35","S7","C24","O15"],values:[{name:"alpha",description:"Indicates that the alpha values of the mask should be used."},{name:"luminance",description:"Indicates that the luminance values of the mask should be used."}],syntax:"luminance | alpha",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-type"}],description:"Defines whether the content of the <mask> element is treated as as luminance mask or alpha mask.",restrictions:["enum"]},{name:"max-block-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"none",description:"No limit on the width of the box."}],syntax:"<'max-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-block-size"}],description:"Maximum size of an element in the direction opposite that of the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"max-height",values:[{name:"none",description:"No limit on the height of the box."},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-height"}],description:"Allows authors to constrain content height to a certain range.",restrictions:["length","percentage"]},{name:"max-inline-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"none",description:"No limit on the height of the box."}],syntax:"<'max-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-inline-size"}],description:"Maximum size of an element in the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"max-width",values:[{name:"none",description:"No limit on the width of the box."},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-width"}],description:"Allows authors to constrain content width to a certain range.",restrictions:["length","percentage"]},{name:"min-block-size",browsers:["E79","FF41","S12.1","C57","O44"],syntax:"<'min-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-block-size"}],description:"Minimal size of an element in the direction opposite that of the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"min-height",values:[{name:"auto"},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-height"}],description:"Allows authors to constrain content height to a certain range.",restrictions:["length","percentage"]},{name:"min-inline-size",browsers:["E79","FF41","S12.1","C57","O44"],syntax:"<'min-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-inline-size"}],description:"Minimal size of an element in the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"min-width",values:[{name:"auto"},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-width"}],description:"Allows authors to constrain content width to a certain range.",restrictions:["length","percentage"]},{name:"mix-blend-mode",browsers:["E79","FF32","S8","C41","O28"],values:[{name:"normal",description:"Default attribute which specifies no blending"},{name:"multiply",description:"The source color is multiplied by the destination color and replaces the destination."},{name:"screen",description:"Multiplies the complements of the backdrop and source color values, then complements the result."},{name:"overlay",description:"Multiplies or screens the colors, depending on the backdrop color value."},{name:"darken",description:"Selects the darker of the backdrop and source colors."},{name:"lighten",description:"Selects the lighter of the backdrop and source colors."},{name:"color-dodge",description:"Brightens the backdrop color to reflect the source color."},{name:"color-burn",description:"Darkens the backdrop color to reflect the source color."},{name:"hard-light",description:"Multiplies or screens the colors, depending on the source color value."},{name:"soft-light",description:"Darkens or lightens the colors, depending on the source color value."},{name:"difference",description:"Subtracts the darker of the two constituent colors from the lighter color.."},{name:"exclusion",description:"Produces an effect similar to that of the Difference mode but lower in contrast."},{name:"hue",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."},{name:"saturation",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."},{name:"color",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."},{name:"luminosity",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}],syntax:"<blend-mode>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode"}],description:"Defines the formula that must be used to mix the colors with the backdrop.",restrictions:["enum"]},{name:"motion",browsers:["C46","O33"],values:[{name:"none",description:"No motion path gets created."},{name:"path()",description:"Defines an SVG path as a string, with optional 'fill-rule' as the first argument."},{name:"auto",description:"Indicates that the object is rotated by the angle of the direction of the motion path."},{name:"reverse",description:"Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}],relevance:50,description:"Shorthand property for setting 'motion-path', 'motion-offset' and 'motion-rotation'.",restrictions:["url","length","percentage","angle","shape","geometry-box","enum"]},{name:"motion-offset",browsers:["C46","O33"],relevance:50,description:"A distance that describes the position along the specified motion path.",restrictions:["length","percentage"]},{name:"motion-path",browsers:["C46","O33"],values:[{name:"none",description:"No motion path gets created."},{name:"path()",description:"Defines an SVG path as a string, with optional 'fill-rule' as the first argument."}],relevance:50,description:"Specifies the motion path the element gets positioned at.",restrictions:["url","shape","geometry-box","enum"]},{name:"motion-rotation",browsers:["C46","O33"],values:[{name:"auto",description:"Indicates that the object is rotated by the angle of the direction of the motion path."},{name:"reverse",description:"Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}],relevance:50,description:"Defines the direction of the element while positioning along the motion path.",restrictions:["angle"]},{name:"-moz-animation",browsers:["FF9"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-moz-animation-delay",browsers:["FF9"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-moz-animation-direction",browsers:["FF9"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-moz-animation-duration",browsers:["FF9"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-moz-animation-iteration-count",browsers:["FF9"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-moz-animation-name",browsers:["FF9"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-moz-animation-play-state",browsers:["FF9"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-moz-animation-timing-function",browsers:["FF9"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"-moz-appearance",browsers:["FF1"],values:[{name:"button"},{name:"button-arrow-down"},{name:"button-arrow-next"},{name:"button-arrow-previous"},{name:"button-arrow-up"},{name:"button-bevel"},{name:"checkbox"},{name:"checkbox-container"},{name:"checkbox-label"},{name:"dialog"},{name:"groupbox"},{name:"listbox"},{name:"menuarrow"},{name:"menuimage"},{name:"menuitem"},{name:"menuitemtext"},{name:"menulist"},{name:"menulist-button"},{name:"menulist-text"},{name:"menulist-textfield"},{name:"menupopup"},{name:"menuradio"},{name:"menuseparator"},{name:"-moz-mac-unified-toolbar"},{name:"-moz-win-borderless-glass"},{name:"-moz-win-browsertabbar-toolbox"},{name:"-moz-win-communications-toolbox"},{name:"-moz-win-glass"},{name:"-moz-win-media-toolbox"},{name:"none"},{name:"progressbar"},{name:"progresschunk"},{name:"radio"},{name:"radio-container"},{name:"radio-label"},{name:"radiomenuitem"},{name:"resizer"},{name:"resizerpanel"},{name:"scrollbarbutton-down"},{name:"scrollbarbutton-left"},{name:"scrollbarbutton-right"},{name:"scrollbarbutton-up"},{name:"scrollbar-small"},{name:"scrollbartrack-horizontal"},{name:"scrollbartrack-vertical"},{name:"separator"},{name:"spinner"},{name:"spinner-downbutton"},{name:"spinner-textfield"},{name:"spinner-upbutton"},{name:"statusbar"},{name:"statusbarpanel"},{name:"tab"},{name:"tabpanels"},{name:"tab-scroll-arrow-back"},{name:"tab-scroll-arrow-forward"},{name:"textfield"},{name:"textfield-multiline"},{name:"toolbar"},{name:"toolbox"},{name:"tooltip"},{name:"treeheadercell"},{name:"treeheadersortarrow"},{name:"treeitem"},{name:"treetwistyopen"},{name:"treeview"},{name:"treewisty"},{name:"window"}],status:"nonstandard",syntax:"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized",relevance:0,description:"Used in Gecko (Firefox) to display an element using a platform-native styling based on the operating system's theme.",restrictions:["enum"]},{name:"-moz-backface-visibility",browsers:["FF10"],values:[{name:"hidden"},{name:"visible"}],relevance:50,description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"-moz-background-clip",browsers:["FF1-3.6"],values:[{name:"padding"}],relevance:50,description:"Determines the background painting area.",restrictions:["box","enum"]},{name:"-moz-background-inline-policy",browsers:["FF1"],values:[{name:"bounding-box"},{name:"continuous"},{name:"each-box"}],relevance:50,description:"In Gecko-based applications like Firefox, the -moz-background-inline-policy CSS property specifies how the background image of an inline element is determined when the content of the inline element wraps onto multiple lines. The choice of position has significant effects on repetition.",restrictions:["enum"]},{name:"-moz-background-origin",browsers:["FF1"],relevance:50,description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"-moz-border-bottom-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-image",browsers:["FF3.6"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"-moz-border-left-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-right-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-top-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Ske Firefox, -moz-border-bottom-colors sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-box-align",browsers:["FF1"],values:[{name:"baseline",description:"If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."},{name:"center",description:"Any extra space is divided evenly, with half placed above the child and the other half placed after the child."},{name:"end",description:"For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."},{name:"start",description:"For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."},{name:"stretch",description:"The height of each child is adjusted to that of the containing block."}],relevance:50,description:"Specifies how a XUL box aligns its contents across (perpendicular to) the direction of its layout. The effect of this is only visible if there is extra space in the box.",restrictions:["enum"]},{name:"-moz-box-direction",browsers:["FF1"],values:[{name:"normal",description:"A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."},{name:"reverse",description:"A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}],relevance:50,description:"Specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).",restrictions:["enum"]},{name:"-moz-box-flex",browsers:["FF1"],relevance:50,description:"Specifies how a box grows to fill the box that contains it, in the direction of the containing box's layout.",restrictions:["number"]},{name:"-moz-box-flexgroup",browsers:["FF1"],relevance:50,description:"Flexible elements can be assigned to flex groups using the 'box-flex-group' property.",restrictions:["integer"]},{name:"-moz-box-ordinal-group",browsers:["FF1"],relevance:50,description:"Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.",restrictions:["integer"]},{name:"-moz-box-orient",browsers:["FF1"],values:[{name:"block-axis",description:"Elements are oriented along the box's axis."},{name:"horizontal",description:"The box displays its children from left to right in a horizontal line."},{name:"inline-axis",description:"Elements are oriented vertically."},{name:"vertical",description:"The box displays its children from stacked from top to bottom vertically."}],relevance:50,description:"In Mozilla applications, -moz-box-orient specifies whether a box lays out its contents horizontally or vertically.",restrictions:["enum"]},{name:"-moz-box-pack",browsers:["FF1"],values:[{name:"center",description:"The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."},{name:"end",description:"For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."},{name:"justify",description:"The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."},{name:"start",description:"For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}],relevance:50,description:"Specifies how a box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box.",restrictions:["enum"]},{name:"-moz-box-sizing",browsers:["FF1"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."},{name:"padding-box",description:"The specified width and height (and respective min/max properties) on this element determine the padding box of the element."}],relevance:50,description:"Box Model addition in CSS3.",restrictions:["enum"]},{name:"-moz-column-count",browsers:["FF3.5"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],relevance:50,description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer"]},{name:"-moz-column-gap",browsers:["FF3.5"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],relevance:50,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length"]},{name:"-moz-column-rule",browsers:["FF3.5"],relevance:50,description:"Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"-moz-column-rule-color",browsers:["FF3.5"],relevance:50,description:"Sets the color of the column rule",restrictions:["color"]},{name:"-moz-column-rule-style",browsers:["FF3.5"],relevance:50,description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"-moz-column-rule-width",browsers:["FF3.5"],relevance:50,description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"-moz-columns",browsers:["FF9"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer"]},{name:"-moz-column-width",browsers:["FF3.5"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"This property describes the width of columns in multicol elements.",restrictions:["length"]},{name:"-moz-font-feature-settings",browsers:["FF4"],values:[{name:'"c2cs"'},{name:'"dlig"'},{name:'"kern"'},{name:'"liga"'},{name:'"lnum"'},{name:'"onum"'},{name:'"smcp"'},{name:'"swsh"'},{name:'"tnum"'},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off",browsers:["FF4"]},{name:"on",browsers:["FF4"]}],relevance:50,description:"Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"-moz-hyphens",browsers:["FF9"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-moz-perspective",browsers:["FF10"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-moz-perspective-origin",browsers:["FF10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-moz-text-align-last",browsers:["FF12"],values:[{name:"auto"},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],relevance:50,description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"-moz-text-decoration-color",browsers:["FF6"],relevance:50,description:"Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.",restrictions:["color"]},{name:"-moz-text-decoration-line",browsers:["FF6"],values:[{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Neither produces nor inhibits text decoration."},{name:"overline",description:"Each line of text has a line above it."},{name:"underline",description:"Each line of text is underlined."}],relevance:50,description:"Specifies what line decorations, if any, are added to the element.",restrictions:["enum"]},{name:"-moz-text-decoration-style",browsers:["FF6"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"none",description:"Produces no line."},{name:"solid",description:"Produces a solid line."},{name:"wavy",description:"Produces a wavy line."}],relevance:50,description:"Specifies the line style for underline, line-through and overline text decoration.",restrictions:["enum"]},{name:"-moz-text-size-adjust",browsers:["FF"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["enum","percentage"]},{name:"-moz-transform",browsers:["FF3.5"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-moz-transform-origin",browsers:["FF3.5"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-moz-transition",browsers:["FF4"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-moz-transition-delay",browsers:["FF4"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-moz-transition-duration",browsers:["FF4"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-moz-transition-property",browsers:["FF4"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-moz-transition-timing-function",browsers:["FF4"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"-moz-user-focus",browsers:["FF1"],values:[{name:"ignore"},{name:"normal"}],status:"nonstandard",syntax:"ignore | normal | select-after | select-before | select-menu | select-same | select-all | none",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus"}],description:"Used to indicate whether the element can have focus."},{name:"-moz-user-select",browsers:["FF1.5"],values:[{name:"all"},{name:"element"},{name:"elements"},{name:"-moz-all"},{name:"-moz-none"},{name:"none"},{name:"text"},{name:"toggle"}],relevance:50,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"-ms-accelerator",browsers:["E","IE10"],values:[{name:"false",description:"The element does not contain an accelerator key sequence."},{name:"true",description:"The element contains an accelerator key sequence."}],status:"nonstandard",syntax:"false | true",relevance:0,description:"IE only. Has the ability to turn off its system underlines for accelerator keys until the ALT key is pressed",restrictions:["enum"]},{name:"-ms-behavior",browsers:["IE8"],relevance:50,description:"IE only. Used to extend behaviors of the browser",restrictions:["url"]},{name:"-ms-block-progression",browsers:["IE8"],values:[{name:"bt",description:"Bottom-to-top block flow. Layout is horizontal."},{name:"lr",description:"Left-to-right direction. The flow orientation is vertical."},{name:"rl",description:"Right-to-left direction. The flow orientation is vertical."},{name:"tb",description:"Top-to-bottom direction. The flow orientation is horizontal."}],status:"nonstandard",syntax:"tb | rl | bt | lr",relevance:0,description:"Sets the block-progression value and the flow orientation",restrictions:["enum"]},{name:"-ms-content-zoom-chaining",browsers:["E","IE10"],values:[{name:"chained",description:"The nearest zoomable parent element begins zooming when the user hits a zoom limit during a manipulation. No bounce effect is shown."},{name:"none",description:"A bounce effect is shown when the user hits a zoom limit during a manipulation."}],status:"nonstandard",syntax:"none | chained",relevance:0,description:"Specifies the zoom behavior that occurs when a user hits the zoom limit during a manipulation."},{name:"-ms-content-zooming",browsers:["E","IE10"],values:[{name:"none",description:"The element is not zoomable."},{name:"zoom",description:"The element is zoomable."}],status:"nonstandard",syntax:"none | zoom",relevance:0,description:"Specifies whether zooming is enabled.",restrictions:["enum"]},{name:"-ms-content-zoom-limit",browsers:["E","IE10"],status:"nonstandard",syntax:"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>",relevance:0,description:"Shorthand property for the -ms-content-zoom-limit-min and -ms-content-zoom-limit-max properties.",restrictions:["percentage"]},{name:"-ms-content-zoom-limit-max",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage>",relevance:0,description:"Specifies the maximum zoom factor.",restrictions:["percentage"]},{name:"-ms-content-zoom-limit-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage>",relevance:0,description:"Specifies the minimum zoom factor.",restrictions:["percentage"]},{name:"-ms-content-zoom-snap",browsers:["E","IE10"],values:[{name:"mandatory",description:"Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."},{name:"none",description:"Indicates that zooming is unaffected by any defined snap-points."},{name:"proximity",description:'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'},{name:"snapInterval(100%, 100%)",description:"Specifies where the snap-points will be placed."},{name:"snapList()",description:"Specifies the position of individual snap-points as a comma-separated list of zoom factors."}],status:"nonstandard",syntax:"<'-ms-content-zoom-snap-type'> || <'-ms-content-zoom-snap-points'>",relevance:0,description:"Shorthand property for the -ms-content-zoom-snap-type and -ms-content-zoom-snap-points properties."},{name:"-ms-content-zoom-snap-points",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)",description:"Specifies where the snap-points will be placed."},{name:"snapList()",description:"Specifies the position of individual snap-points as a comma-separated list of zoom factors."}],status:"nonstandard",syntax:"snapInterval( <percentage>, <percentage> ) | snapList( <percentage># )",relevance:0,description:"Defines where zoom snap-points are located."},{name:"-ms-content-zoom-snap-type",browsers:["E","IE10"],values:[{name:"mandatory",description:"Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."},{name:"none",description:"Indicates that zooming is unaffected by any defined snap-points."},{name:"proximity",description:'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'}],status:"nonstandard",syntax:"none | proximity | mandatory",relevance:0,description:"Specifies how zooming is affected by defined snap-points.",restrictions:["enum"]},{name:"-ms-filter",browsers:["IE8-9"],status:"nonstandard",syntax:"<string>",relevance:0,description:"IE only. Used to produce visual effects.",restrictions:["string"]},{name:"-ms-flex",browsers:["IE10"],values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"none",description:"Expands to '0 0 auto'."}],relevance:50,description:"specifies the parameters of a flexible length: the positive and negative flexibility, and the preferred size.",restrictions:["length","number","percentage"]},{name:"-ms-flex-align",browsers:["IE10"],values:[{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"start",description:"The cross-start margin edge of the flexbox item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flexbox item is anything other than 'auto', this value is identical to 'start'."}],relevance:50,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"-ms-flex-direction",browsers:["IE10"],values:[{name:"column",description:"The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"row",description:"The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."}],relevance:50,description:"Specifies how flex items are placed in the flex container, by setting the direction of the flex container\u2019s main axis.",restrictions:["enum"]},{name:"-ms-flex-flow",browsers:["IE10"],values:[{name:"column",description:"The flex container\u2019s main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"nowrap",description:"The flex container is single-line."},{name:"row",description:"The flex container\u2019s main axis has the same orientation as the inline axis of the current writing mode."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],relevance:50,description:"Specifies how flexbox items are placed in the flexbox.",restrictions:["enum"]},{name:"-ms-flex-item-align",browsers:["IE10"],values:[{name:"auto",description:"Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],relevance:50,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"-ms-flex-line-pack",browsers:["IE10"],values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"distribute",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"end",description:"Lines are packed toward the end of the flex container."},{name:"justify",description:"Lines are evenly distributed in the flex container."},{name:"start",description:"Lines are packed toward the start of the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],relevance:50,description:"Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"-ms-flex-order",browsers:["IE10"],relevance:50,description:"Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.",restrictions:["integer"]},{name:"-ms-flex-pack",browsers:["IE10"],values:[{name:"center",description:"Flex items are packed toward the center of the line."},{name:"distribute",description:"Flex items are evenly distributed in the line, with half-size spaces on either end."},{name:"end",description:"Flex items are packed toward the end of the line."},{name:"justify",description:"Flex items are evenly distributed in the line."},{name:"start",description:"Flex items are packed toward the start of the line."}],relevance:50,description:"Aligns flex items along the main axis of the current line of the flex container.",restrictions:["enum"]},{name:"-ms-flex-wrap",browsers:["IE10"],values:[{name:"nowrap",description:"The flex container is single-line."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],relevance:50,description:"Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.",restrictions:["enum"]},{name:"-ms-flow-from",browsers:["E","IE10"],values:[{name:"none",description:"The block container is not a CSS Region."}],status:"nonstandard",syntax:"[ none | <custom-ident> ]#",relevance:0,description:"Makes a block container a region and associates it with a named flow.",restrictions:["identifier"]},{name:"-ms-flow-into",browsers:["E","IE10"],values:[{name:"none",description:"The element is not moved to a named flow and normal CSS processing takes place."}],status:"nonstandard",syntax:"[ none | <custom-ident> ]#",relevance:0,description:"Places an element or its contents into a named flow.",restrictions:["identifier"]},{name:"-ms-grid-column",browsers:["E12","IE10"],values:[{name:"auto"},{name:"end"},{name:"start"}],relevance:50,description:"Used to place grid items and explicitly defined grid cells in the Grid.",restrictions:["integer","string","enum"]},{name:"-ms-grid-column-align",browsers:["E12","IE10"],values:[{name:"center",description:"Places the center of the Grid Item's margin box at the center of the Grid Item's column."},{name:"end",description:"Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's column."},{name:"start",description:"Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's column."},{name:"stretch",description:"Ensures that the Grid Item's margin box is equal to the size of the Grid Item's column."}],relevance:50,description:"Aligns the columns in a grid.",restrictions:["enum"]},{name:"-ms-grid-columns",browsers:["E","IE10"],status:"nonstandard",syntax:"none | <track-list> | <auto-track-list>",relevance:0,description:"Lays out the columns of the grid."},{name:"-ms-grid-column-span",browsers:["E12","IE10"],relevance:50,description:"Specifies the number of columns to span.",restrictions:["integer"]},{name:"-ms-grid-layer",browsers:["E","IE10"],relevance:50,description:"Grid-layer is similar in concept to z-index, but avoids overloading the meaning of the z-index property, which is applicable only to positioned elements.",restrictions:["integer"]},{name:"-ms-grid-row",browsers:["E12","IE10"],values:[{name:"auto"},{name:"end"},{name:"start"}],relevance:50,description:"grid-row is used to place grid items and explicitly defined grid cells in the Grid.",restrictions:["integer","string","enum"]},{name:"-ms-grid-row-align",browsers:["E12","IE10"],values:[{name:"center",description:"Places the center of the Grid Item's margin box at the center of the Grid Item's row."},{name:"end",description:"Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's row."},{name:"start",description:"Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's row."},{name:"stretch",description:"Ensures that the Grid Item's margin box is equal to the size of the Grid Item's row."}],relevance:50,description:"Aligns the rows in a grid.",restrictions:["enum"]},{name:"-ms-grid-rows",browsers:["E","IE10"],status:"nonstandard",syntax:"none | <track-list> | <auto-track-list>",relevance:0,description:"Lays out the columns of the grid."},{name:"-ms-grid-row-span",browsers:["E12","IE10"],relevance:50,description:"Specifies the number of rows to span.",restrictions:["integer"]},{name:"-ms-high-contrast-adjust",browsers:["E","IE10"],values:[{name:"auto",description:"Properties will be adjusted as applicable."},{name:"none",description:"No adjustments will be applied."}],status:"nonstandard",syntax:"auto | none",relevance:0,description:"Specifies if properties should be adjusted in high contrast mode.",restrictions:["enum"]},{name:"-ms-hyphenate-limit-chars",browsers:["E","IE10"],values:[{name:"auto",description:"The user agent chooses a value that adapts to the current layout."}],status:"nonstandard",syntax:"auto | <integer>{1,3}",relevance:0,description:"Specifies the minimum number of characters in a hyphenated word.",restrictions:["integer"]},{name:"-ms-hyphenate-limit-lines",browsers:["E","IE10"],values:[{name:"no-limit",description:"There is no limit."}],status:"nonstandard",syntax:"no-limit | <integer>",relevance:0,description:"Indicates the maximum number of successive hyphenated lines in an element.",restrictions:["integer"]},{name:"-ms-hyphenate-limit-zone",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage> | <length>",relevance:0,description:"Specifies the maximum amount of unfilled space (before justification) that may be left in the line box before hyphenation is triggered to pull part of a word from the next line back up into the current line.",restrictions:["percentage","length"]},{name:"-ms-hyphens",browsers:["E","IE10"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-ms-ime-mode",browsers:["IE10"],values:[{name:"active",description:"The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."},{name:"auto",description:"No change is made to the current input method editor state. This is the default."},{name:"disabled",description:"The input method editor is disabled and may not be activated by the user."},{name:"inactive",description:"The input method editor is initially inactive, but the user may activate it if they wish."},{name:"normal",description:"The IME state should be normal; this value can be used in a user style sheet to override the page setting."}],relevance:50,description:"Controls the state of the input method editor for text fields.",restrictions:["enum"]},{name:"-ms-interpolation-mode",browsers:["IE7"],values:[{name:"bicubic"},{name:"nearest-neighbor"}],relevance:50,description:"Gets or sets the interpolation (resampling) method used to stretch images.",restrictions:["enum"]},{name:"-ms-layout-grid",browsers:["E","IE10"],values:[{name:"char",description:"Any of the range of character values available to the -ms-layout-grid-char property."},{name:"line",description:"Any of the range of line values available to the -ms-layout-grid-line property."},{name:"mode",description:"Any of the range of mode values available to the -ms-layout-grid-mode property."},{name:"type",description:"Any of the range of type values available to the -ms-layout-grid-type property."}],relevance:50,description:"Sets or retrieves the composite document grid properties that specify the layout of text characters."},{name:"-ms-layout-grid-char",browsers:["E","IE10"],values:[{name:"auto",description:"Largest character in the font of the element is used to set the character grid."},{name:"none",description:"Default. No character grid is set."}],relevance:50,description:"Sets or retrieves the size of the character grid used for rendering the text content of an element.",restrictions:["enum","length","percentage"]},{name:"-ms-layout-grid-line",browsers:["E","IE10"],values:[{name:"auto",description:"Largest character in the font of the element is used to set the character grid."},{name:"none",description:"Default. No grid line is set."}],relevance:50,description:"Sets or retrieves the gridline value used for rendering the text content of an element.",restrictions:["length"]},{name:"-ms-layout-grid-mode",browsers:["E","IE10"],values:[{name:"both",description:"Default. Both the char and line grid modes are enabled. This setting is necessary to fully enable the layout grid on an element."},{name:"char",description:"Only a character grid is used. This is recommended for use with block-level elements, such as a blockquote, where the line grid is intended to be disabled."},{name:"line",description:"Only a line grid is used. This is recommended for use with inline elements, such as a span, to disable the horizontal grid on runs of text that act as a single entity in the grid layout."},{name:"none",description:"No grid is used."}],relevance:50,description:"Gets or sets whether the text layout grid uses two dimensions.",restrictions:["enum"]},{name:"-ms-layout-grid-type",browsers:["E","IE10"],values:[{name:"fixed",description:"Grid used for monospaced layout. All noncursive characters are treated as equal; every character is centered within a single grid space by default."},{name:"loose",description:"Default. Grid used for Japanese and Korean characters."},{name:"strict",description:"Grid used for Chinese, as well as Japanese (Genko) and Korean characters. Only the ideographs, kanas, and wide characters are snapped to the grid."}],relevance:50,description:"Sets or retrieves the type of grid used for rendering the text content of an element.",restrictions:["enum"]},{name:"-ms-line-break",browsers:["E","IE10"],values:[{name:"auto",description:"The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."},{name:"keep-all",description:"Sequences of CJK characters can no longer break on implied break points. This option should only be used where the presence of word separator characters still creates line-breaking opportunities, as in Korean."},{name:"newspaper",description:"Breaks CJK scripts using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."},{name:"normal",description:"Breaks CJK scripts using a normal set of line-breaking rules."},{name:"strict",description:"Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."}],relevance:50,description:"Specifies what set of line breaking restrictions are in effect within the element.",restrictions:["enum"]},{name:"-ms-overflow-style",browsers:["E","IE10"],values:[{name:"auto",description:"No preference, UA should use the first scrolling method in the list that it supports."},{name:"-ms-autohiding-scrollbar",description:"Indicates the element displays auto-hiding scrollbars during mouse interactions and panning indicators during touch and keyboard interactions."},{name:"none",description:"Indicates the element does not display scrollbars or panning indicators, even when its content overflows."},{name:"scrollbar",description:'Scrollbars are typically narrow strips inserted on one or two edges of an element and which often have arrows to click on and a "thumb" to drag up and down (or left and right) to move the contents of the element.'}],status:"nonstandard",syntax:"auto | none | scrollbar | -ms-autohiding-scrollbar",relevance:0,description:"Specify whether content is clipped when it overflows the element's content area.",restrictions:["enum"]},{name:"-ms-perspective",browsers:["IE10"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-ms-perspective-origin",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-perspective-origin-x",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-perspective-origin-y",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-progress-appearance",browsers:["IE10"],values:[{name:"bar"},{name:"ring"}],relevance:50,description:"Gets or sets a value that specifies whether a progress control displays as a bar or a ring.",restrictions:["enum"]},{name:"-ms-scrollbar-3dlight-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-arrow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the arrow elements of a scroll arrow.",restrictions:["color"]},{name:"-ms-scrollbar-base-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.",restrictions:["color"]},{name:"-ms-scrollbar-darkshadow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the gutter of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-face-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-highlight-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-shadow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-track-color",browsers:["IE5"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-track-color"}],description:"Determines the color of the track element of a scroll bar.",restrictions:["color"]},{name:"-ms-scroll-chaining",browsers:["E","IE10"],values:[{name:"chained"},{name:"none"}],status:"nonstandard",syntax:"chained | none",relevance:0,description:"Gets or sets a value that indicates the scrolling behavior that occurs when a user hits the content boundary during a manipulation.",restrictions:["enum","length"]},{name:"-ms-scroll-limit",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-limit-x-min, -ms-scroll-limit-y-min, -ms-scroll-limit-x-max, and -ms-scroll-limit-y-max properties.",restrictions:["length"]},{name:"-ms-scroll-limit-x-max",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"auto | <length>",relevance:0,description:"Gets or sets a value that specifies the maximum value for the scrollLeft property.",restrictions:["length"]},{name:"-ms-scroll-limit-x-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that specifies the minimum value for the scrollLeft property.",restrictions:["length"]},{name:"-ms-scroll-limit-y-max",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"auto | <length>",relevance:0,description:"Gets or sets a value that specifies the maximum value for the scrollTop property.",restrictions:["length"]},{name:"-ms-scroll-limit-y-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that specifies the minimum value for the scrollTop property.",restrictions:["length"]},{name:"-ms-scroll-rails",browsers:["E","IE10"],values:[{name:"none"},{name:"railed"}],status:"nonstandard",syntax:"none | railed",relevance:0,description:"Gets or sets a value that indicates whether or not small motions perpendicular to the primary axis of motion will result in either changes to both the scrollTop and scrollLeft properties or a change to the primary axis (for instance, either the scrollTop or scrollLeft properties will change, but not both).",restrictions:["enum","length"]},{name:"-ms-scroll-snap-points-x",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )",relevance:0,description:"Gets or sets a value that defines where snap-points will be located along the x-axis.",restrictions:["enum"]},{name:"-ms-scroll-snap-points-y",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )",relevance:0,description:"Gets or sets a value that defines where snap-points will be located along the y-axis.",restrictions:["enum"]},{name:"-ms-scroll-snap-type",browsers:["E","IE10"],values:[{name:"none",description:"The visual viewport of this scroll container must ignore snap points, if any, when scrolled."},{name:"mandatory",description:"The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."},{name:"proximity",description:"The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}],status:"nonstandard",syntax:"none | proximity | mandatory",relevance:0,description:"Gets or sets a value that defines what type of snap-point should be used for the current element. There are two type of snap-points, with the primary difference being whether or not the user is guaranteed to always stop on a snap-point.",restrictions:["enum"]},{name:"-ms-scroll-snap-x",browsers:["E","IE10"],values:[{name:"mandatory"},{name:"none"},{name:"proximity"},{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-x properties.",restrictions:["enum"]},{name:"-ms-scroll-snap-y",browsers:["E","IE10"],values:[{name:"mandatory"},{name:"none"},{name:"proximity"},{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-y properties.",restrictions:["enum"]},{name:"-ms-scroll-translation",browsers:["E","IE10"],values:[{name:"none"},{name:"vertical-to-horizontal"}],status:"nonstandard",syntax:"none | vertical-to-horizontal",relevance:0,description:"Gets or sets a value that specifies whether vertical-to-horizontal scroll wheel translation occurs on the specified element.",restrictions:["enum"]},{name:"-ms-text-align-last",browsers:["E","IE8"],values:[{name:"auto"},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],relevance:50,description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"-ms-text-autospace",browsers:["E","IE8"],values:[{name:"ideograph-alpha",description:"Creates 1/4em extra spacing between runs of ideographic letters and non-ideographic letters, such as Latin-based, Cyrillic, Greek, Arabic or Hebrew."},{name:"ideograph-numeric",description:"Creates 1/4em extra spacing between runs of ideographic letters and numeric glyphs."},{name:"ideograph-parenthesis",description:"Creates extra spacing between normal (non wide) parenthesis and ideographs."},{name:"ideograph-space",description:"Extends the width of the space character while surrounded by ideographs."},{name:"none",description:"No extra space is created."},{name:"punctuation",description:"Creates extra non-breaking spacing around punctuation as required by language-specific typographic conventions."}],status:"nonstandard",syntax:"none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space",relevance:0,description:"Determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line, so that its 'ink' lines up with the first glyph in the line above and below.",restrictions:["enum"]},{name:"-ms-text-combine-horizontal",browsers:["E","IE11"],values:[{name:"all",description:"Attempt to typeset horizontally all consecutive characters within the box such that they take up the space of a single character within the vertical line box."},{name:"digits",description:"Attempt to typeset horizontally each maximal sequence of consecutive ASCII digits (U+0030\u2013U+0039) that has as many or fewer characters than the specified integer such that it takes up the space of a single character within the vertical line box."},{name:"none",description:"No special processing."}],relevance:50,description:"This property specifies the combination of multiple characters into the space of a single character.",restrictions:["enum","integer"]},{name:"-ms-text-justify",browsers:["E","IE8"],values:[{name:"auto",description:"The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."},{name:"distribute",description:"Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."},{name:"inter-cluster",description:"Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."},{name:"inter-ideograph",description:"Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."},{name:"inter-word",description:"Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."},{name:"kashida",description:"Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."}],relevance:50,description:"Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.",restrictions:["enum"]},{name:"-ms-text-kashida-space",browsers:["E","IE10"],relevance:50,description:"Sets or retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object.",restrictions:["percentage"]},{name:"-ms-text-overflow",browsers:["IE10"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],relevance:50,description:"Text can overflow for example when it is prevented from wrapping",restrictions:["enum"]},{name:"-ms-text-size-adjust",browsers:["E","IE10"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["enum","percentage"]},{name:"-ms-text-underline-position",browsers:["E","IE10"],values:[{name:"alphabetic",description:"The underline is aligned with the alphabetic baseline. In this case the underline is likely to cross some descenders."},{name:"auto",description:"The user agent may use any algorithm to determine the underline's position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."},{name:"over",description:"The underline is aligned with the 'top' (right in vertical writing) edge of the element's em-box. In this mode, an overline also switches sides."},{name:"under",description:"The underline is aligned with the 'bottom' (left in vertical writing) edge of the element's em-box. In this case the underline usually does not cross the descenders. This is sometimes called 'accounting' underline."}],relevance:50,description:"Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements.This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text",restrictions:["enum"]},{name:"-ms-touch-action",browsers:["IE10"],values:[{name:"auto",description:"The element is a passive element, with several exceptions."},{name:"double-tap-zoom",description:"The element will zoom on double-tap."},{name:"manipulation",description:"The element is a manipulation-causing element."},{name:"none",description:"The element is a manipulation-blocking element."},{name:"pan-x",description:"The element permits touch-driven panning on the horizontal axis. The touch pan is performed on the nearest ancestor with horizontally scrollable content."},{name:"pan-y",description:"The element permits touch-driven panning on the vertical axis. The touch pan is performed on the nearest ancestor with vertically scrollable content."},{name:"pinch-zoom",description:"The element permits pinch-zooming. The pinch-zoom is performed on the nearest ancestor with zoomable content."}],relevance:50,description:"Gets or sets a value that indicates whether and how a given region can be manipulated by the user.",restrictions:["enum"]},{name:"-ms-touch-select",browsers:["E","IE10"],values:[{name:"grippers",description:"Grippers are always on."},{name:"none",description:"Grippers are always off."}],status:"nonstandard",syntax:"grippers | none",relevance:0,description:"Gets or sets a value that toggles the 'gripper' visual elements that enable touch text selection.",restrictions:["enum"]},{name:"-ms-transform",browsers:["IE9-9"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-ms-transform-origin",browsers:["IE9-9"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-ms-transform-origin-x",browsers:["IE10"],relevance:50,description:"The x coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-transform-origin-y",browsers:["IE10"],relevance:50,description:"The y coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-transform-origin-z",browsers:["IE10"],relevance:50,description:"The z coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-user-select",browsers:["E","IE10"],values:[{name:"element"},{name:"none"},{name:"text"}],status:"nonstandard",syntax:"none | element | text",relevance:0,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"-ms-word-break",browsers:["IE8"],values:[{name:"break-all",description:"Lines may break between any two grapheme clusters for non-CJK scripts."},{name:"keep-all",description:"Block characters can no longer create implied break points."},{name:"normal",description:"Breaks non-CJK scripts according to their own rules."}],relevance:50,description:"Specifies line break opportunities for non-CJK scripts.",restrictions:["enum"]},{name:"-ms-word-wrap",browsers:["IE8"],values:[{name:"break-word",description:"An unbreakable 'word' may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],relevance:50,description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.",restrictions:["enum"]},{name:"-ms-wrap-flow",browsers:["E","IE10"],values:[{name:"auto",description:"For floats an exclusion is created, for all other elements an exclusion is not created."},{name:"both",description:"Inline flow content can flow on all sides of the exclusion."},{name:"clear",description:"Inline flow content can only wrap on top and bottom of the exclusion and must leave the areas to the start and end edges of the exclusion box empty."},{name:"end",description:"Inline flow content can wrap on the end side of the exclusion area but must leave the area to the start edge of the exclusion area empty."},{name:"maximum",description:"Inline flow content can wrap on the side of the exclusion with the largest available space for the given line, and must leave the other side of the exclusion empty."},{name:"minimum",description:"Inline flow content can flow around the edge of the exclusion with the smallest available space within the flow content\u2019s containing block, and must leave the other edge of the exclusion empty."},{name:"start",description:"Inline flow content can wrap on the start edge of the exclusion area but must leave the area to end edge of the exclusion area empty."}],status:"nonstandard",syntax:"auto | both | start | end | maximum | clear",relevance:0,description:"An element becomes an exclusion when its 'wrap-flow' property has a computed value other than 'auto'.",restrictions:["enum"]},{name:"-ms-wrap-margin",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that is used to offset the inner wrap shape from other shapes.",restrictions:["length","percentage"]},{name:"-ms-wrap-through",browsers:["E","IE10"],values:[{name:"none",description:"The exclusion element does not inherit its parent node's wrapping context. Its descendants are only subject to exclusion shapes defined inside the element."},{name:"wrap",description:"The exclusion element inherits its parent node's wrapping context. Its descendant inline content wraps around exclusions defined outside the element."}],status:"nonstandard",syntax:"wrap | none",relevance:0,description:"Specifies if an element inherits its parent wrapping context. In other words if it is subject to the exclusions defined outside the element.",restrictions:["enum"]},{name:"-ms-writing-mode",browsers:["IE8"],values:[{name:"bt-lr"},{name:"bt-rl"},{name:"lr-bt"},{name:"lr-tb"},{name:"rl-bt"},{name:"rl-tb"},{name:"tb-lr"},{name:"tb-rl"}],relevance:50,description:"Shorthand property for both 'direction' and 'block-progression'.",restrictions:["enum"]},{name:"-ms-zoom",browsers:["IE8"],values:[{name:"normal"}],relevance:50,description:"Sets or retrieves the magnification scale of the object.",restrictions:["enum","integer","number","percentage"]},{name:"-ms-zoom-animation",browsers:["IE10"],values:[{name:"default"},{name:"none"}],relevance:50,description:"Gets or sets a value that indicates whether an animation is used when zooming.",restrictions:["enum"]},{name:"nav-down",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-index",browsers:["O9.5"],values:[{name:"auto",description:"The element's sequential navigation order is assigned automatically by the user agent."}],relevance:50,description:"Provides an input-method-neutral way of specifying the sequential navigation order (also known as 'tabbing order').",restrictions:["number"]},{name:"nav-left",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-right",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-up",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"negative",browsers:["FF33"],syntax:"<symbol> <symbol>?",relevance:50,description:"@counter-style descriptor. Defines how to alter the representation when the counter value is negative.",restrictions:["image","identifier","string"]},{name:"-o-animation",browsers:["O12"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-o-animation-delay",browsers:["O12"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-o-animation-direction",browsers:["O12"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-o-animation-duration",browsers:["O12"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-o-animation-fill-mode",browsers:["O12"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],relevance:50,description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"-o-animation-iteration-count",browsers:["O12"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-o-animation-name",browsers:["O12"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-o-animation-play-state",browsers:["O12"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-o-animation-timing-function",browsers:["O12"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"object-fit",browsers:["E79","FF36","S10","C32","O19"],values:[{name:"contain",description:"The replaced content is sized to maintain its aspect ratio while fitting within the element\u2019s content box: its concrete object size is resolved as a contain constraint against the element's used width and height."},{name:"cover",description:"The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element\u2019s used width and height."},{name:"fill",description:"The replaced content is sized to fill the element\u2019s content box: the object's concrete object size is the element's used width and height."},{name:"none",description:"The replaced content is not resized to fit inside the element's content box"},{name:"scale-down",description:"Size the content as if \u2018none\u2019 or \u2018contain\u2019 were specified, whichever would result in a smaller concrete object size."}],syntax:"fill | contain | cover | none | scale-down",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/object-fit"}],description:"Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.",restrictions:["enum"]},{name:"object-position",browsers:["E79","FF36","S10","C32","O19"],syntax:"<position>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/object-position"}],description:"Determines the alignment of the replaced element inside its box.",restrictions:["position","length","percentage"]},{name:"-o-border-image",browsers:["O11.6"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","image","enum"]},{name:"-o-object-fit",browsers:["O10.6"],values:[{name:"contain",description:"The replaced content is sized to maintain its aspect ratio while fitting within the element\u2019s content box: its concrete object size is resolved as a contain constraint against the element's used width and height."},{name:"cover",description:"The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element\u2019s used width and height."},{name:"fill",description:"The replaced content is sized to fill the element\u2019s content box: the object's concrete object size is the element's used width and height."},{name:"none",description:"The replaced content is not resized to fit inside the element's content box"},{name:"scale-down",description:"Size the content as if \u2018none\u2019 or \u2018contain\u2019 were specified, whichever would result in a smaller concrete object size."}],relevance:50,description:"Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.",restrictions:["enum"]},{name:"-o-object-position",browsers:["O10.6"],relevance:50,description:"Determines the alignment of the replaced element inside its box.",restrictions:["position","length","percentage"]},{name:"opacity",syntax:"<alpha-value>",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/opacity"}],description:"Opacity of an element's text, where 1 is opaque and 0 is entirely transparent.",restrictions:["number(0-1)"]},{name:"order",syntax:"<integer>",relevance:63,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/order"}],description:"Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.",restrictions:["integer"]},{name:"orphans",browsers:["E12","S1.3","C25","IE8","O9.2"],syntax:"<integer>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/orphans"}],description:"Specifies the minimum number of line boxes in a block container that must be left in a fragment before a fragmentation break.",restrictions:["integer"]},{name:"-o-table-baseline",browsers:["O9.6"],relevance:50,description:"Determines which row of a inline-table should be used as baseline of inline-table.",restrictions:["integer"]},{name:"-o-tab-size",browsers:["O10.6"],relevance:50,description:"This property determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.",restrictions:["integer","length"]},{name:"-o-text-overflow",browsers:["O10"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],relevance:50,description:"Text can overflow for example when it is prevented from wrapping",restrictions:["enum"]},{name:"-o-transform",browsers:["O10.5"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-o-transform-origin",browsers:["O10.5"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["positon","length","percentage"]},{name:"-o-transition",browsers:["O11.5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-o-transition-delay",browsers:["O11.5"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-o-transition-duration",browsers:["O11.5"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-o-transition-property",browsers:["O11.5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-o-transition-timing-function",browsers:["O11.5"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"offset-block-end",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-block-start",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-inline-end",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-inline-start",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"outline",values:[{name:"auto",description:"Permits the user agent to render a custom outline style, typically the default platform style."},{name:"invert",description:"Performs a color inversion on the pixels on the screen."}],syntax:"[ <'outline-color'> || <'outline-style'> || <'outline-width'> ]",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline"}],description:"Shorthand property for 'outline-style', 'outline-width', and 'outline-color'.",restrictions:["length","line-width","line-style","color","enum"]},{name:"outline-color",values:[{name:"invert",description:"Performs a color inversion on the pixels on the screen."}],syntax:"<color> | invert",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-color"}],description:"The color of the outline.",restrictions:["enum","color"]},{name:"outline-offset",browsers:["E15","FF1.5","S1.2","C1","O9.5"],syntax:"<length>",relevance:69,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-offset"}],description:"Offset the outline and draw it beyond the border edge.",restrictions:["length"]},{name:"outline-style",values:[{name:"auto",description:"Permits the user agent to render a custom outline style, typically the default platform style."}],syntax:"auto | <'border-style'>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-style"}],description:"Style of the outline.",restrictions:["line-style","enum"]},{name:"outline-width",syntax:"<line-width>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-width"}],description:"Width of the outline.",restrictions:["length","line-width"]},{name:"overflow",values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"-moz-hidden-unscrollable",description:"Same as the standardized 'clip', except doesn\u2019t establish a block formatting context."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"[ visible | hidden | clip | scroll | auto ]{1,2}",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow"}],description:"Shorthand for setting 'overflow-x' and 'overflow-y'.",restrictions:["enum"]},{name:"overflow-wrap",values:[{name:"break-word",description:"An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],syntax:"normal | break-word | anywhere",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"}],description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit within the line box.",restrictions:["enum"]},{name:"overflow-x",values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"visible | hidden | clip | scroll | auto",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-x"}],description:"Specifies the handling of overflow in the horizontal direction.",restrictions:["enum"]},{name:"overflow-y",values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"visible | hidden | clip | scroll | auto",relevance:83,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-y"}],description:"Specifies the handling of overflow in the vertical direction.",restrictions:["enum"]},{name:"pad",browsers:["FF33"],syntax:"<integer> && <symbol>",relevance:50,description:"@counter-style descriptor. Specifies a \u201cfixed-width\u201d counter style, where representations shorter than the pad value are padded with a particular <symbol>",restrictions:["integer","image","string","identifier"]},{name:"padding",values:[],syntax:"[ <length> | <percentage> ]{1,4}",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-bottom",syntax:"<length> | <percentage>",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-bottom"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-block-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block-end"}],description:"Logical 'padding-bottom'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-block-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block-start"}],description:"Logical 'padding-top'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline-end"}],description:"Logical 'padding-right'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline-start"}],description:"Logical 'padding-left'. Mapping depends on the parent element\u2019s 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-left",syntax:"<length> | <percentage>",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-left"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-right",syntax:"<length> | <percentage>",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-right"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-top",syntax:"<length> | <percentage>",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-top"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"page-break-after",values:[{name:"always",description:"Always force a page break after the generated box."},{name:"auto",description:"Neither force nor forbid a page break after generated box."},{name:"avoid",description:"Avoid a page break after the generated box."},{name:"left",description:"Force one or two page breaks after the generated box so that the next page is formatted as a left page."},{name:"right",description:"Force one or two page breaks after the generated box so that the next page is formatted as a right page."}],syntax:"auto | always | avoid | left | right | recto | verso",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-after"}],description:"Defines rules for page breaks after an element.",restrictions:["enum"]},{name:"page-break-before",values:[{name:"always",description:"Always force a page break before the generated box."},{name:"auto",description:"Neither force nor forbid a page break before the generated box."},{name:"avoid",description:"Avoid a page break before the generated box."},{name:"left",description:"Force one or two page breaks before the generated box so that the next page is formatted as a left page."},{name:"right",description:"Force one or two page breaks before the generated box so that the next page is formatted as a right page."}],syntax:"auto | always | avoid | left | right | recto | verso",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-before"}],description:"Defines rules for page breaks before an element.",restrictions:["enum"]},{name:"page-break-inside",values:[{name:"auto",description:"Neither force nor forbid a page break inside the generated box."},{name:"avoid",description:"Avoid a page break inside the generated box."}],syntax:"auto | avoid",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-inside"}],description:"Defines rules for page breaks inside an element.",restrictions:["enum"]},{name:"paint-order",browsers:["E17","FF60","S8","C35","O22"],values:[{name:"fill"},{name:"markers"},{name:"normal",description:"The element is painted with the standard order of painting operations: the 'fill' is painted first, then its 'stroke' and finally its markers."},{name:"stroke"}],syntax:"normal | [ fill || stroke || markers ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/paint-order"}],description:"Controls the order that the three paint operations that shapes and text are rendered with: their fill, their stroke and any markers they might have.",restrictions:["enum"]},{name:"perspective",values:[{name:"none",description:"No perspective transform is applied."}],syntax:"none | <length>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/perspective"}],description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length","enum"]},{name:"perspective-origin",syntax:"<position>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/perspective-origin"}],description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"pointer-events",values:[{name:"all",description:"The given element can be the target element for pointer events whenever the pointer is over either the interior or the perimeter of the element."},{name:"fill",description:"The given element can be the target element for pointer events whenever the pointer is over the interior of the element."},{name:"none",description:"The given element does not receive pointer events."},{name:"painted",description:'The given element can be the target element for pointer events when the pointer is over a "painted" area. '},{name:"stroke",description:"The given element can be the target element for pointer events whenever the pointer is over the perimeter of the element."},{name:"visible",description:"The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and the pointer is over either the interior or the perimeter of the element."},{name:"visibleFill",description:"The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over the interior of the element."},{name:"visiblePainted",description:"The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over a \u2018painted\u2019 area."},{name:"visibleStroke",description:"The given element can be the target element for pointer events when the \u2018visibility\u2019 property is set to visible and when the pointer is over the perimeter of the element."}],syntax:"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/pointer-events"}],description:"Specifies under what circumstances a given element can be the target element for a pointer event.",restrictions:["enum"]},{name:"position",values:[{name:"absolute",description:"The box's position (and possibly size) is specified with the 'top', 'right', 'bottom', and 'left' properties. These properties specify offsets with respect to the box's 'containing block'."},{name:"fixed",description:"The box's position is calculated according to the 'absolute' model, but in addition, the box is fixed with respect to some reference. As with the 'absolute' model, the box's margins do not collapse with any other margins."},{name:"-ms-page",description:"The box's position is calculated according to the 'absolute' model."},{name:"relative",description:"The box's position is calculated according to the normal flow (this is called the position in normal flow). Then the box is offset relative to its normal position."},{name:"static",description:"The box is a normal box, laid out according to the normal flow. The 'top', 'right', 'bottom', and 'left' properties do not apply."},{name:"sticky",description:"The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."},{name:"-webkit-sticky",description:"The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."}],syntax:"static | relative | absolute | sticky | fixed",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/position"}],description:"The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements.",restrictions:["enum"]},{name:"prefix",browsers:["FF33"],syntax:"<symbol>",relevance:50,description:"@counter-style descriptor. Specifies a <symbol> that is prepended to the marker representation.",restrictions:["image","string","identifier"]},{name:"quotes",values:[{name:"none",description:"The 'open-quote' and 'close-quote' values of the 'content' property produce no quotations marks, as if they were 'no-open-quote' and 'no-close-quote' respectively."}],syntax:"none | auto | [ <string> <string> ]+",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/quotes"}],description:"Specifies quotation marks for any number of embedded quotations.",restrictions:["string"]},{name:"range",browsers:["FF33"],values:[{name:"auto",description:"The range depends on the counter system."},{name:"infinite",description:"If used as the first value in a range, it represents negative infinity; if used as the second value, it represents positive infinity."}],syntax:"[ [ <integer> | infinite ]{2} ]# | auto",relevance:50,description:"@counter-style descriptor. Defines the ranges over which the counter style is defined.",restrictions:["integer","enum"]},{name:"resize",browsers:["E79","FF4","S3","C1","O12.1"],values:[{name:"both",description:"The UA presents a bidirectional resizing mechanism to allow the user to adjust both the height and the width of the element."},{name:"horizontal",description:"The UA presents a unidirectional horizontal resizing mechanism to allow the user to adjust only the width of the element."},{name:"none",description:"The UA does not present a resizing mechanism on the element, and the user is given no direct manipulation mechanism to resize the element."},{name:"vertical",description:"The UA presents a unidirectional vertical resizing mechanism to allow the user to adjust only the height of the element."}],syntax:"none | both | horizontal | vertical | block | inline",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/resize"}],description:"Specifies whether or not an element is resizable by the user, and if so, along which axis/axes.",restrictions:["enum"]},{name:"right",values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/right"}],description:"Specifies how far an absolutely positioned box's right margin edge is offset to the left of the right edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"ruby-align",browsers:["FF38"],values:[{name:"auto",browsers:["FF38"],description:"The user agent determines how the ruby contents are aligned. This is the initial value."},{name:"center",description:"The ruby content is centered within its box."},{name:"distribute-letter",browsers:["FF38"],description:"If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with the first and last ruby text glyphs lining up with the corresponding first and last base glyphs. If the width of the ruby text is at least the width of the base, then the letters of the base are evenly distributed across the width of the ruby text."},{name:"distribute-space",browsers:["FF38"],description:"If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with a certain amount of white space preceding the first and following the last character in the ruby text. That amount of white space is normally equal to half the amount of inter-character space of the ruby text."},{name:"left",description:"The ruby text content is aligned with the start edge of the base."},{name:"line-edge",browsers:["FF38"],description:"If the ruby text is not adjacent to a line edge, it is aligned as in 'auto'. If it is adjacent to a line edge, then it is still aligned as in auto, but the side of the ruby text that touches the end of the line is lined up with the corresponding edge of the base."},{name:"right",browsers:["FF38"],description:"The ruby text content is aligned with the end edge of the base."},{name:"start",browsers:["FF38"],description:"The ruby text content is aligned with the start edge of the base."},{name:"space-between",browsers:["FF38"],description:"The ruby content expands as defined for normal text justification (as defined by 'text-justify'),"},{name:"space-around",browsers:["FF38"],description:"As for 'space-between' except that there exists an extra justification opportunities whose space is distributed half before and half after the ruby content."}],status:"experimental",syntax:"start | center | space-between | space-around",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ruby-align"}],description:"Specifies how text is distributed within the various ruby boxes when their contents do not exactly fill their respective boxes.",restrictions:["enum"]},{name:"ruby-overhang",browsers:["FF10","IE5"],values:[{name:"auto",description:"The ruby text can overhang text adjacent to the base on either side. This is the initial value."},{name:"end",description:"The ruby text can overhang the text that follows it."},{name:"none",description:"The ruby text cannot overhang any text adjacent to its base, only its own base."},{name:"start",description:"The ruby text can overhang the text that precedes it."}],relevance:50,description:"Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.",restrictions:["enum"]},{name:"ruby-position",browsers:["E84","FF38","S7","C84","O70"],values:[{name:"after",description:"The ruby text appears after the base. This is a relatively rare setting used in ideographic East Asian writing systems, most easily found in educational text."},{name:"before",description:"The ruby text appears before the base. This is the most common setting used in ideographic East Asian writing systems."},{name:"inline"},{name:"right",description:"The ruby text appears on the right of the base. Unlike 'before' and 'after', this value is not relative to the text flow direction."}],status:"experimental",syntax:"[ alternate || [ over | under ] ] | inter-character",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ruby-position"}],description:"Used by the parent of elements with display: ruby-text to control the position of the ruby text with respect to its base.",restrictions:["enum"]},{name:"ruby-span",browsers:["FF10"],values:[{name:"attr(x)",description:"The value of attribute 'x' is a string value. The string value is evaluated as a <number> to determine the number of ruby base elements to be spanned by the annotation element."},{name:"none",description:"No spanning. The computed value is '1'."}],relevance:50,description:"Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.",restrictions:["enum"]},{name:"scrollbar-3dlight-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-3dlight-color"}],description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-arrow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-arrow-color"}],description:"Determines the color of the arrow elements of a scroll arrow.",restrictions:["color"]},{name:"scrollbar-base-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-base-color"}],description:"Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.",restrictions:["color"]},{name:"scrollbar-darkshadow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-darkshadow-color"}],description:"Determines the color of the gutter of a scroll bar.",restrictions:["color"]},{name:"scrollbar-face-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-face-color"}],description:"Determines the color of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-highlight-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-highlight-color"}],description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-shadow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-shadow-color"}],description:"Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-track-color",browsers:["IE6"],relevance:50,description:"Determines the color of the track element of a scroll bar.",restrictions:["color"]},{name:"scroll-behavior",browsers:["E79","FF36","S15.4","C61","O48"],values:[{name:"auto",description:"Scrolls in an instant fashion."},{name:"smooth",description:"Scrolls in a smooth fashion using a user-agent-defined timing function and time period."}],syntax:"auto | smooth",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-behavior"}],description:"Specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs.",restrictions:["enum"]},{name:"scroll-snap-coordinate",browsers:["FF39"],values:[{name:"none",description:"Specifies that this element does not contribute a snap point."}],status:"obsolete",syntax:"none | <position>#",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-coordinate"}],description:"Defines the x and y coordinate within the element which will align with the nearest ancestor scroll container\u2019s snap-destination for the respective axis.",restrictions:["position","length","percentage","enum"]},{name:"scroll-snap-destination",browsers:["FF39"],status:"obsolete",syntax:"<position>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-destination"}],description:"Define the x and y coordinate within the scroll container\u2019s visual viewport which element snap points will align with.",restrictions:["position","length","percentage"]},{name:"scroll-snap-points-x",browsers:["FF39","S9"],values:[{name:"none",description:"No snap points are defined by this scroll container."},{name:"repeat()",description:"Defines an interval at which snap points are defined, starting from the container\u2019s relevant start edge."}],status:"obsolete",syntax:"none | repeat( <length-percentage> )",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-x"}],description:"Defines the positioning of snap points along the x axis of the scroll container it is applied to.",restrictions:["enum"]},{name:"scroll-snap-points-y",browsers:["FF39","S9"],values:[{name:"none",description:"No snap points are defined by this scroll container."},{name:"repeat()",description:"Defines an interval at which snap points are defined, starting from the container\u2019s relevant start edge."}],status:"obsolete",syntax:"none | repeat( <length-percentage> )",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-y"}],description:"Defines the positioning of snap points along the y axis of the scroll container it is applied to.",restrictions:["enum"]},{name:"scroll-snap-type",values:[{name:"none",description:"The visual viewport of this scroll container must ignore snap points, if any, when scrolled."},{name:"mandatory",description:"The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."},{name:"proximity",description:"The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}],syntax:"none | [ x | y | block | inline | both ] [ mandatory | proximity ]?",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type"}],description:"Defines how strictly snap points are enforced on the scroll container.",restrictions:["enum"]},{name:"shape-image-threshold",browsers:["E79","FF62","S10.1","C37","O24"],syntax:"<alpha-value>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold"}],description:"Defines the alpha channel threshold used to extract the shape using an image. A value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.",restrictions:["number"]},{name:"shape-margin",browsers:["E79","FF62","S10.1","C37","O24"],syntax:"<length-percentage>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-margin"}],description:"Adds a margin to a 'shape-outside'. This defines a new shape that is the smallest contour that includes all the points that are the 'shape-margin' distance outward in the perpendicular direction from a point on the underlying shape.",restrictions:["url","length","percentage"]},{name:"shape-outside",browsers:["E79","FF62","S10.1","C37","O24"],values:[{name:"margin-box",description:"The background is painted within (clipped to) the margin box."},{name:"none",description:"The float area is unaffected."}],syntax:"none | [ <shape-box> || <basic-shape> ] | <image>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-outside"}],description:"Specifies an orthogonal rotation to be applied to an image before it is laid out.",restrictions:["image","box","shape","enum"]},{name:"shape-rendering",values:[{name:"auto",description:"Suppresses aural rendering."},{name:"crispEdges",description:"Emphasize the contrast between clean edges of artwork over rendering speed and geometric precision."},{name:"geometricPrecision",description:"Emphasize geometric precision over speed and crisp edges."},{name:"optimizeSpeed",description:"Emphasize rendering speed over geometric precision and crisp edges."}],relevance:50,description:"Provides hints about what tradeoffs to make as it renders vector graphics elements such as <path> elements and basic shapes such as circles and rectangles.",restrictions:["enum"]},{name:"size",browsers:["C","O8"],syntax:"<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]",relevance:53,description:"The size CSS at-rule descriptor, used with the @page at-rule, defines the size and orientation of the box which is used to represent a page. Most of the time, this size corresponds to the target size of the printed page if applicable.",restrictions:["length"]},{name:"src",values:[{name:"url()",description:"Reference font by URL"},{name:"format()",description:"Optional hint describing the format of the font resource."},{name:"local()",description:"Format-specific string that identifies a locally available copy of a given font."}],syntax:"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#",relevance:87,description:"@font-face descriptor. Specifies the resource containing font data. It is required, whether the font is downloadable or locally installed.",restrictions:["enum","url","identifier"]},{name:"stop-color",relevance:51,description:"Indicates what color to use at that gradient stop.",restrictions:["color"]},{name:"stop-opacity",relevance:50,description:"Defines the opacity of a given gradient stop.",restrictions:["number(0-1)"]},{name:"stroke",values:[{name:"url()",description:"A URL reference to a paint server element, which is an element that defines a paint server: \u2018hatch\u2019, \u2018linearGradient\u2019, \u2018mesh\u2019, \u2018pattern\u2019, \u2018radialGradient\u2019 and \u2018solidcolor\u2019."},{name:"none",description:"No paint is applied in this layer."}],relevance:65,description:"Paints along the outline of the given graphical element.",restrictions:["color","enum","url"]},{name:"stroke-dasharray",values:[{name:"none",description:"Indicates that no dashing is used."}],relevance:58,description:"Controls the pattern of dashes and gaps used to stroke paths.",restrictions:["length","percentage","number","enum"]},{name:"stroke-dashoffset",relevance:59,description:"Specifies the distance into the dash pattern to start the dash.",restrictions:["percentage","length"]},{name:"stroke-linecap",values:[{name:"butt",description:"Indicates that the stroke for each subpath does not extend beyond its two endpoints."},{name:"round",description:"Indicates that at each end of each subpath, the shape representing the stroke will be extended by a half circle with a radius equal to the stroke width."},{name:"square",description:"Indicates that at the end of each subpath, the shape representing the stroke will be extended by a rectangle with the same width as the stroke width and whose length is half of the stroke width."}],relevance:53,description:"Specifies the shape to be used at the end of open subpaths when they are stroked.",restrictions:["enum"]},{name:"stroke-linejoin",values:[{name:"bevel",description:"Indicates that a bevelled corner is to be used to join path segments."},{name:"miter",description:"Indicates that a sharp corner is to be used to join path segments."},{name:"round",description:"Indicates that a round corner is to be used to join path segments."}],relevance:50,description:"Specifies the shape to be used at the corners of paths or basic shapes when they are stroked.",restrictions:["enum"]},{name:"stroke-miterlimit",relevance:51,description:"When two line segments meet at a sharp angle and miter joins have been specified for 'stroke-linejoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path.",restrictions:["number"]},{name:"stroke-opacity",relevance:52,description:"Specifies the opacity of the painting operation used to stroke the current object.",restrictions:["number(0-1)"]},{name:"stroke-width",relevance:61,description:"Specifies the width of the stroke on the current object.",restrictions:["percentage","length"]},{name:"suffix",browsers:["FF33"],syntax:"<symbol>",relevance:50,description:"@counter-style descriptor. Specifies a <symbol> that is appended to the marker representation.",restrictions:["image","string","identifier"]},{name:"system",browsers:["FF33"],values:[{name:"additive",description:"Represents \u201csign-value\u201d numbering systems, which, rather than using reusing digits in different positions to change their value, define additional digits with much larger values, so that the value of the number can be obtained by adding all the digits together."},{name:"alphabetic",description:'Interprets the list of counter symbols as digits to an alphabetic numbering system, similar to the default lower-alpha counter style, which wraps from "a", "b", "c", to "aa", "ab", "ac".'},{name:"cyclic",description:"Cycles repeatedly through its provided symbols, looping back to the beginning when it reaches the end of the list."},{name:"extends",description:"Use the algorithm of another counter style, but alter other aspects."},{name:"fixed",description:"Runs through its list of counter symbols once, then falls back."},{name:"numeric",description:"interprets the list of counter symbols as digits to a \"place-value\" numbering system, similar to the default 'decimal' counter style."},{name:"symbolic",description:"Cycles repeatedly through its provided symbols, doubling, tripling, etc. the symbols on each successive pass through the list."}],syntax:"cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]",relevance:50,description:"@counter-style descriptor. Specifies which algorithm will be used to construct the counter\u2019s representation based on the counter value.",restrictions:["enum","integer"]},{name:"symbols",browsers:["FF33"],syntax:"<symbol>+",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor.",restrictions:["image","string","identifier"]},{name:"table-layout",values:[{name:"auto",description:"Use any automatic table layout algorithm."},{name:"fixed",description:"Use the fixed table layout algorithm."}],syntax:"auto | fixed",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/table-layout"}],description:"Controls the algorithm used to lay out the table cells, rows, and columns.",restrictions:["enum"]},{name:"tab-size",browsers:["E79","FF91","S7","C21","O15"],syntax:"<integer> | <length>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/tab-size"}],description:"Determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.",restrictions:["integer","length"]},{name:"text-align",values:[{name:"center",description:"The inline contents are centered within the line box."},{name:"end",description:"The inline contents are aligned to the end edge of the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."},{name:"start",description:"The inline contents are aligned to the start edge of the line box."}],syntax:"start | end | left | right | center | justify | match-parent",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-align"}],description:"Describes how inline contents of a block are horizontally aligned if the contents do not completely fill the line box.",restrictions:["string"]},{name:"text-align-last",browsers:["E12","FF49","C47","IE5.5","O34"],values:[{name:"auto",description:"Content on the affected line is aligned per 'text-align' unless 'text-align' is set to 'justify', in which case it is 'start-aligned'."},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],syntax:"auto | start | end | left | right | center | justify",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-align-last"}],description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"text-anchor",values:[{name:"end",description:"The rendered characters are aligned such that the end of the resulting rendered text is at the initial current text position."},{name:"middle",description:"The rendered characters are aligned such that the geometric middle of the resulting rendered text is at the initial current text position."},{name:"start",description:"The rendered characters are aligned such that the start of the resulting rendered text is at the initial current text position."}],relevance:50,description:"Used to align (start-, middle- or end-alignment) a string of text relative to a given point.",restrictions:["enum"]},{name:"text-decoration",values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Produces no line."},{name:"overline",description:"Each line of text has a line above it."},{name:"solid",description:"Produces a solid line."},{name:"underline",description:"Each line of text is underlined."},{name:"wavy",description:"Produces a wavy line."}],syntax:"<'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'> || <'text-decoration-thickness'>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration"}],description:"Decorations applied to font used for an element's text.",restrictions:["enum","color"]},{name:"text-decoration-color",browsers:["E79","FF36","S12.1","C57","O44"],syntax:"<color>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-color"}],description:"Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.",restrictions:["color"]},{name:"text-decoration-line",browsers:["E79","FF36","S12.1","C57","O44"],values:[{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Neither produces nor inhibits text decoration."},{name:"overline",description:"Each line of text has a line above it."},{name:"underline",description:"Each line of text is underlined."}],syntax:"none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-line"}],description:"Specifies what line decorations, if any, are added to the element.",restrictions:["enum"]},{name:"text-decoration-style",browsers:["E79","FF36","S12.1","C57","O44"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"none",description:"Produces no line."},{name:"solid",description:"Produces a solid line."},{name:"wavy",description:"Produces a wavy line."}],syntax:"solid | double | dotted | dashed | wavy",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-style"}],description:"Specifies the line style for underline, line-through and overline text decoration.",restrictions:["enum"]},{name:"text-indent",values:[],syntax:"<length-percentage> && hanging? && each-line?",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-indent"}],description:"Specifies the indentation applied to lines of inline content in a block. The indentation only affects the first line of inline content in the block unless the 'hanging' keyword is specified, in which case it affects all lines except the first.",restrictions:["percentage","length"]},{name:"text-justify",browsers:["E12","FF55","C32","IE11","O19"],values:[{name:"auto",description:"The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."},{name:"distribute",description:"Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."},{name:"distribute-all-lines"},{name:"inter-cluster",description:"Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."},{name:"inter-ideograph",description:"Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."},{name:"inter-word",description:"Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."},{name:"kashida",description:"Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."},{name:"newspaper"}],syntax:"auto | inter-character | inter-word | none",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-justify"}],description:"Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.",restrictions:["enum"]},{name:"text-orientation",browsers:["E79","FF41","S14","C48","O35"],values:[{name:"sideways",browsers:["E79","FF41","S14","C48","O35"],description:"This value is equivalent to 'sideways-right' in 'vertical-rl' writing mode and equivalent to 'sideways-left' in 'vertical-lr' writing mode."},{name:"sideways-right",browsers:["E79","FF41","S14","C48","O35"],description:"In vertical writing modes, this causes text to be set as if in a horizontal layout, but rotated 90\xb0 clockwise."},{name:"upright",description:"In vertical writing modes, characters from horizontal-only scripts are rendered upright, i.e. in their standard horizontal orientation."}],syntax:"mixed | upright | sideways",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-orientation"}],description:"Specifies the orientation of text within a line.",restrictions:["enum"]},{name:"text-overflow",values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],syntax:"[ clip | ellipsis | <string> ]{1,2}",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-overflow"}],description:"Text can overflow for example when it is prevented from wrapping.",restrictions:["enum","string"]},{name:"text-rendering",browsers:["E79","FF1","S5","C4","O15"],values:[{name:"auto"},{name:"geometricPrecision",description:"Indicates that the user agent shall emphasize geometric precision over legibility and rendering speed."},{name:"optimizeLegibility",description:"Indicates that the user agent shall emphasize legibility over rendering speed and geometric precision."},{name:"optimizeSpeed",description:"Indicates that the user agent shall emphasize rendering speed over legibility and geometric precision."}],syntax:"auto | optimizeSpeed | optimizeLegibility | geometricPrecision",relevance:70,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-rendering"}],description:"The creator of SVG content might want to provide a hint to the implementation about what tradeoffs to make as it renders text. The \u2018text-rendering\u2019 property provides these hints.",restrictions:["enum"]},{name:"text-shadow",values:[{name:"none",description:"No shadow."}],syntax:"none | <shadow-t>#",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-shadow"}],description:"Enables shadow effects to be applied to the text of the element.",restrictions:["length","color"]},{name:"text-transform",values:[{name:"capitalize",description:"Puts the first typographic letter unit of each word in titlecase."},{name:"lowercase",description:"Puts all letters in lowercase."},{name:"none",description:"No effects."},{name:"uppercase",description:"Puts all letters in uppercase."}],syntax:"none | capitalize | uppercase | lowercase | full-width | full-size-kana",relevance:86,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-transform"}],description:"Controls capitalization effects of an element\u2019s text.",restrictions:["enum"]},{name:"text-underline-position",values:[{name:"above"},{name:"auto",description:"The user agent may use any algorithm to determine the underline\u2019s position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."},{name:"below",description:"The underline is aligned with the under edge of the element\u2019s content box."}],syntax:"auto | from-font | [ under || [ left | right ] ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-underline-position"}],description:"Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements. This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text",restrictions:["enum"]},{name:"top",values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/top"}],description:"Specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"touch-action",values:[{name:"auto",description:"The user agent may determine any permitted touch behaviors for touches that begin on the element."},{name:"cross-slide-x"},{name:"cross-slide-y"},{name:"double-tap-zoom"},{name:"manipulation",description:"The user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming."},{name:"none",description:"Touches that begin on the element must not trigger default touch behaviors."},{name:"pan-x",description:"The user agent may consider touches that begin on the element only for the purposes of horizontally scrolling the element\u2019s nearest ancestor with horizontally scrollable content."},{name:"pan-y",description:"The user agent may consider touches that begin on the element only for the purposes of vertically scrolling the element\u2019s nearest ancestor with vertically scrollable content."},{name:"pinch-zoom"}],syntax:"auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/touch-action"}],description:"Determines whether touch input may trigger default behavior supplied by user agent.",restrictions:["enum"]},{name:"transform",values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective()",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],syntax:"none | <transform-list>",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform"}],description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"transform-origin",syntax:"[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?",relevance:77,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-origin"}],description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"transform-style",browsers:["E12","FF16","S9","C36","O23"],values:[{name:"flat",description:"All children of this element are rendered flattened into the 2D plane of the element."},{name:"preserve-3d",browsers:["E12","FF16","S9","C36","O23"],description:"Flattening is not performed, so children maintain their position in 3D space."}],syntax:"flat | preserve-3d",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-style"}],description:"Defines how nested elements are rendered in 3D space.",restrictions:["enum"]},{name:"transition",values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],syntax:"<single-transition>#",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition"}],description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"transition-delay",syntax:"<time>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-delay"}],description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"transition-duration",syntax:"<time>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-duration"}],description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"transition-property",values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],syntax:"none | <single-transition-property>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-property"}],description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"transition-timing-function",syntax:"<easing-function>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-timing-function"}],description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"unicode-bidi",values:[{name:"bidi-override",description:"Inside the element, reordering is strictly in sequence according to the 'direction' property; the implicit part of the bidirectional algorithm is ignored."},{name:"embed",description:"If the element is inline-level, this value opens an additional level of embedding with respect to the bidirectional algorithm. The direction of this embedding level is given by the 'direction' property."},{name:"isolate",description:"The contents of the element are considered to be inside a separate, independent paragraph."},{name:"isolate-override",description:"This combines the isolation behavior of 'isolate' with the directional override behavior of 'bidi-override'"},{name:"normal",description:"The element does not open an additional level of embedding with respect to the bidirectional algorithm. For inline-level elements, implicit reordering works across element boundaries."},{name:"plaintext",description:"For the purposes of the Unicode bidirectional algorithm, the base directionality of each bidi paragraph for which the element forms the containing block is determined not by the element's computed 'direction'."}],syntax:"normal | embed | isolate | bidi-override | isolate-override | plaintext",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/unicode-bidi"}],description:"The level of embedding with respect to the bidirectional algorithm.",restrictions:["enum"]},{name:"unicode-range",values:[{name:"U+26",description:"Ampersand."},{name:"U+20-24F, U+2B0-2FF, U+370-4FF, U+1E00-1EFF, U+2000-20CF, U+2100-23FF, U+2500-26FF, U+E000-F8FF, U+FB00\u2013FB4F",description:"WGL4 character set (Pan-European)."},{name:"U+20-17F, U+2B0-2FF, U+2000-206F, U+20A0-20CF, U+2100-21FF, U+2600-26FF",description:"The Multilingual European Subset No. 1. Latin. Covers ~44 languages."},{name:"U+20-2FF, U+370-4FF, U+1E00-20CF, U+2100-23FF, U+2500-26FF, U+FB00-FB4F, U+FFF0-FFFD",description:"The Multilingual European Subset No. 2. Latin, Greek, and Cyrillic. Covers ~128 language."},{name:"U+20-4FF, U+530-58F, U+10D0-10FF, U+1E00-23FF, U+2440-245F, U+2500-26FF, U+FB00-FB4F, U+FE20-FE2F, U+FFF0-FFFD",description:"The Multilingual European Subset No. 3. Covers all characters belonging to European scripts."},{name:"U+00-7F",description:"Basic Latin (ASCII)."},{name:"U+80-FF",description:"Latin-1 Supplement. Accented characters for Western European languages, common punctuation characters, multiplication and division signs."},{name:"U+100-17F",description:"Latin Extended-A. Accented characters for for Czech, Dutch, Polish, and Turkish."},{name:"U+180-24F",description:"Latin Extended-B. Croatian, Slovenian, Romanian, Non-European and historic latin, Khoisan, Pinyin, Livonian, Sinology."},{name:"U+1E00-1EFF",description:"Latin Extended Additional. Vietnamese, German captial sharp s, Medievalist, Latin general use."},{name:"U+250-2AF",description:"International Phonetic Alphabet Extensions."},{name:"U+370-3FF",description:"Greek and Coptic."},{name:"U+1F00-1FFF",description:"Greek Extended. Accented characters for polytonic Greek."},{name:"U+400-4FF",description:"Cyrillic."},{name:"U+500-52F",description:"Cyrillic Supplement. Extra letters for Komi, Khanty, Chukchi, Mordvin, Kurdish, Aleut, Chuvash, Abkhaz, Azerbaijani, and Orok."},{name:"U+00-52F, U+1E00-1FFF, U+2200\u201322FF",description:"Latin, Greek, Cyrillic, some punctuation and symbols."},{name:"U+530\u201358F",description:"Armenian."},{name:"U+590\u20135FF",description:"Hebrew."},{name:"U+600\u20136FF",description:"Arabic."},{name:"U+750\u201377F",description:"Arabic Supplement. Additional letters for African languages, Khowar, Torwali, Burushaski, and early Persian."},{name:"U+8A0\u20138FF",description:"Arabic Extended-A. Additional letters for African languages, European and Central Asian languages, Rohingya, Tamazight, Arwi, and Koranic annotation signs."},{name:"U+700\u201374F",description:"Syriac."},{name:"U+900\u201397F",description:"Devanagari."},{name:"U+980\u20139FF",description:"Bengali."},{name:"U+A00\u2013A7F",description:"Gurmukhi."},{name:"U+A80\u2013AFF",description:"Gujarati."},{name:"U+B00\u2013B7F",description:"Oriya."},{name:"U+B80\u2013BFF",description:"Tamil."},{name:"U+C00\u2013C7F",description:"Telugu."},{name:"U+C80\u2013CFF",description:"Kannada."},{name:"U+D00\u2013D7F",description:"Malayalam."},{name:"U+D80\u2013DFF",description:"Sinhala."},{name:"U+118A0\u2013118FF",description:"Warang Citi."},{name:"U+E00\u2013E7F",description:"Thai."},{name:"U+1A20\u20131AAF",description:"Tai Tham."},{name:"U+AA80\u2013AADF",description:"Tai Viet."},{name:"U+E80\u2013EFF",description:"Lao."},{name:"U+F00\u2013FFF",description:"Tibetan."},{name:"U+1000\u2013109F",description:"Myanmar (Burmese)."},{name:"U+10A0\u201310FF",description:"Georgian."},{name:"U+1200\u2013137F",description:"Ethiopic."},{name:"U+1380\u2013139F",description:"Ethiopic Supplement. Extra Syllables for Sebatbeit, and Tonal marks"},{name:"U+2D80\u20132DDF",description:"Ethiopic Extended. Extra Syllables for Me'en, Blin, and Sebatbeit."},{name:"U+AB00\u2013AB2F",description:"Ethiopic Extended-A. Extra characters for Gamo-Gofa-Dawro, Basketo, and Gumuz."},{name:"U+1780\u201317FF",description:"Khmer."},{name:"U+1800\u201318AF",description:"Mongolian."},{name:"U+1B80\u20131BBF",description:"Sundanese."},{name:"U+1CC0\u20131CCF",description:"Sundanese Supplement. Punctuation."},{name:"U+4E00\u20139FD5",description:"CJK (Chinese, Japanese, Korean) Unified Ideographs. Most common ideographs for modern Chinese and Japanese."},{name:"U+3400\u20134DB5",description:"CJK Unified Ideographs Extension A. Rare ideographs."},{name:"U+2F00\u20132FDF",description:"Kangxi Radicals."},{name:"U+2E80\u20132EFF",description:"CJK Radicals Supplement. Alternative forms of Kangxi Radicals."},{name:"U+1100\u201311FF",description:"Hangul Jamo."},{name:"U+AC00\u2013D7AF",description:"Hangul Syllables."},{name:"U+3040\u2013309F",description:"Hiragana."},{name:"U+30A0\u201330FF",description:"Katakana."},{name:"U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F",description:"Japanese Kanji, Hiragana and Katakana characters plus Yen/Yuan symbol."},{name:"U+A4D0\u2013A4FF",description:"Lisu."},{name:"U+A000\u2013A48F",description:"Yi Syllables."},{name:"U+A490\u2013A4CF",description:"Yi Radicals."},{name:"U+2000-206F",description:"General Punctuation."},{name:"U+3000\u2013303F",description:"CJK Symbols and Punctuation."},{name:"U+2070\u2013209F",description:"Superscripts and Subscripts."},{name:"U+20A0\u201320CF",description:"Currency Symbols."},{name:"U+2100\u2013214F",description:"Letterlike Symbols."},{name:"U+2150\u2013218F",description:"Number Forms."},{name:"U+2190\u201321FF",description:"Arrows."},{name:"U+2200\u201322FF",description:"Mathematical Operators."},{name:"U+2300\u201323FF",description:"Miscellaneous Technical."},{name:"U+E000-F8FF",description:"Private Use Area."},{name:"U+FB00\u2013FB4F",description:"Alphabetic Presentation Forms. Ligatures for latin, Armenian, and Hebrew."},{name:"U+FB50\u2013FDFF",description:"Arabic Presentation Forms-A. Contextual forms / ligatures for Persian, Urdu, Sindhi, Central Asian languages, etc, Arabic pedagogical symbols, word ligatures."},{name:"U+1F600\u20131F64F",description:"Emoji: Emoticons."},{name:"U+2600\u201326FF",description:"Emoji: Miscellaneous Symbols."},{name:"U+1F300\u20131F5FF",description:"Emoji: Miscellaneous Symbols and Pictographs."},{name:"U+1F900\u20131F9FF",description:"Emoji: Supplemental Symbols and Pictographs."},{name:"U+1F680\u20131F6FF",description:"Emoji: Transport and Map Symbols."}],syntax:"<unicode-range>#",relevance:73,description:"@font-face descriptor. Defines the set of Unicode codepoints that may be supported by the font face for which it is declared.",restrictions:["unicode-range"]},{name:"user-select",values:[{name:"all",description:"The content of the element must be selected atomically"},{name:"auto"},{name:"contain",description:"UAs must not allow a selection which is started in this element to be extended outside of this element."},{name:"none",description:"The UA must not allow selections to be started in this element."},{name:"text",description:"The element imposes no constraint on the selection."}],syntax:"auto | text | none | contain | all",relevance:78,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/user-select"}],description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"vertical-align",values:[{name:"auto",description:"Align the dominant baseline of the parent box with the equivalent, or heuristically reconstructed, baseline of the element inline box."},{name:"baseline",description:"Align the 'alphabetic' baseline of the element with the 'alphabetic' baseline of the parent element."},{name:"bottom",description:"Align the after edge of the extended inline box with the after-edge of the line box."},{name:"middle",description:"Align the 'middle' baseline of the inline element with the middle baseline of the parent."},{name:"sub",description:"Lower the baseline of the box to the proper position for subscripts of the parent's box. (This value has no effect on the font size of the element's text.)"},{name:"super",description:"Raise the baseline of the box to the proper position for superscripts of the parent's box. (This value has no effect on the font size of the element's text.)"},{name:"text-bottom",description:"Align the bottom of the box with the after-edge of the parent element's font."},{name:"text-top",description:"Align the top of the box with the before-edge of the parent element's font."},{name:"top",description:"Align the before edge of the extended inline box with the before-edge of the line box."},{name:"-webkit-baseline-middle"}],syntax:"baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/vertical-align"}],description:"Affects the vertical positioning of the inline boxes generated by an inline-level element inside a line box.",restrictions:["percentage","length"]},{name:"visibility",values:[{name:"collapse",description:"Table-specific. If used on elements other than rows, row groups, columns, or column groups, 'collapse' has the same meaning as 'hidden'."},{name:"hidden",description:"The generated box is invisible (fully transparent, nothing is drawn), but still affects layout."},{name:"visible",description:"The generated box is visible."}],syntax:"visible | hidden | collapse",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/visibility"}],description:"Specifies whether the boxes generated by an element are rendered. Invisible boxes still affect layout (set the \u2018display\u2019 property to \u2018none\u2019 to suppress box generation altogether).",restrictions:["enum"]},{name:"-webkit-animation",browsers:["C","S5"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-webkit-animation-delay",browsers:["C","S5"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-webkit-animation-direction",browsers:["C","S5"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-webkit-animation-duration",browsers:["C","S5"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-webkit-animation-fill-mode",browsers:["C","S5"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],relevance:50,description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"-webkit-animation-iteration-count",browsers:["C","S5"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-webkit-animation-name",browsers:["C","S5"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-webkit-animation-play-state",browsers:["C","S5"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-webkit-animation-timing-function",browsers:["C","S5"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"-webkit-appearance",browsers:["C","S3"],values:[{name:"button"},{name:"button-bevel"},{name:"caps-lock-indicator"},{name:"caret"},{name:"checkbox"},{name:"default-button"},{name:"listbox"},{name:"listitem"},{name:"media-fullscreen-button"},{name:"media-mute-button"},{name:"media-play-button"},{name:"media-seek-back-button"},{name:"media-seek-forward-button"},{name:"media-slider"},{name:"media-sliderthumb"},{name:"menulist"},{name:"menulist-button"},{name:"menulist-text"},{name:"menulist-textfield"},{name:"none"},{name:"push-button"},{name:"radio"},{name:"scrollbarbutton-down"},{name:"scrollbarbutton-left"},{name:"scrollbarbutton-right"},{name:"scrollbarbutton-up"},{name:"scrollbargripper-horizontal"},{name:"scrollbargripper-vertical"},{name:"scrollbarthumb-horizontal"},{name:"scrollbarthumb-vertical"},{name:"scrollbartrack-horizontal"},{name:"scrollbartrack-vertical"},{name:"searchfield"},{name:"searchfield-cancel-button"},{name:"searchfield-decoration"},{name:"searchfield-results-button"},{name:"searchfield-results-decoration"},{name:"slider-horizontal"},{name:"sliderthumb-horizontal"},{name:"sliderthumb-vertical"},{name:"slider-vertical"},{name:"square-button"},{name:"textarea"},{name:"textfield"}],status:"nonstandard",syntax:"none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button",relevance:0,description:"Changes the appearance of buttons and other controls to resemble native controls.",restrictions:["enum"]},{name:"-webkit-backdrop-filter",browsers:["S9"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",description:"A filter reference to a <filter> element."}],relevance:50,description:"Applies a filter effect where the first filter in the list takes the element's background image as the input image.",restrictions:["enum","url"]},{name:"-webkit-backface-visibility",browsers:["C","S5"],values:[{name:"hidden"},{name:"visible"}],relevance:50,description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"-webkit-background-clip",browsers:["C","S3"],relevance:50,description:"Determines the background painting area.",restrictions:["box"]},{name:"-webkit-background-composite",browsers:["C","S3"],values:[{name:"border"},{name:"padding"}],relevance:50,restrictions:["enum"]},{name:"-webkit-background-origin",browsers:["C","S3"],relevance:50,description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"-webkit-border-image",browsers:["C","S5"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"-webkit-box-align",browsers:["C","S3"],values:[{name:"baseline",description:"If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."},{name:"center",description:"Any extra space is divided evenly, with half placed above the child and the other half placed after the child."},{name:"end",description:"For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."},{name:"start",description:"For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."},{name:"stretch",description:"The height of each child is adjusted to that of the containing block."}],relevance:50,description:"Specifies the alignment of nested elements within an outer flexible box element.",restrictions:["enum"]},{name:"-webkit-box-direction",browsers:["C","S3"],values:[{name:"normal",description:"A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."},{name:"reverse",description:"A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}],relevance:50,description:"In webkit applications, -webkit-box-direction specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).",restrictions:["enum"]},{name:"-webkit-box-flex",browsers:["C","S3"],relevance:50,description:"Specifies an element's flexibility.",restrictions:["number"]},{name:"-webkit-box-flex-group",browsers:["C","S3"],relevance:50,description:"Flexible elements can be assigned to flex groups using the 'box-flex-group' property.",restrictions:["integer"]},{name:"-webkit-box-ordinal-group",browsers:["C","S3"],relevance:50,description:"Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.",restrictions:["integer"]},{name:"-webkit-box-orient",browsers:["C","S3"],values:[{name:"block-axis",description:"Elements are oriented along the box's axis."},{name:"horizontal",description:"The box displays its children from left to right in a horizontal line."},{name:"inline-axis",description:"Elements are oriented vertically."},{name:"vertical",description:"The box displays its children from stacked from top to bottom vertically."}],relevance:50,description:"In webkit applications, -webkit-box-orient specifies whether a box lays out its contents horizontally or vertically.",restrictions:["enum"]},{name:"-webkit-box-pack",browsers:["C","S3"],values:[{name:"center",description:"The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."},{name:"end",description:"For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."},{name:"justify",description:"The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."},{name:"start",description:"For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}],relevance:50,description:"Specifies alignment of child elements within the current element in the direction of orientation.",restrictions:["enum"]},{name:"-webkit-box-reflect",browsers:["E79","S4","C4","O15"],values:[{name:"above",description:"The reflection appears above the border box."},{name:"below",description:"The reflection appears below the border box."},{name:"left",description:"The reflection appears to the left of the border box."},{name:"right",description:"The reflection appears to the right of the border box."}],status:"nonstandard",syntax:"[ above | below | right | left ]? <length>? <image>?",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect"}],description:"Defines a reflection of a border box."},{name:"-webkit-box-sizing",browsers:["C","S3"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}],relevance:50,description:"Box Model addition in CSS3.",restrictions:["enum"]},{name:"-webkit-break-after",browsers:["S7"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-break-before",browsers:["S7"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-break-inside",browsers:["S7"],values:[{name:"auto",description:"Neither force nor forbid a page/column break inside the generated box."},{name:"avoid",description:"Avoid a page/column break inside the generated box."},{name:"avoid-column",description:"Avoid a column break inside the generated box."},{name:"avoid-page",description:"Avoid a page break inside the generated box."},{name:"avoid-region"}],relevance:50,description:"Describes the page/column break behavior inside the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-after",browsers:["C","S3"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-before",browsers:["C","S3"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-inside",browsers:["C","S3"],values:[{name:"auto",description:"Neither force nor forbid a page/column break inside the generated box."},{name:"avoid",description:"Avoid a page/column break inside the generated box."},{name:"avoid-column",description:"Avoid a column break inside the generated box."},{name:"avoid-page",description:"Avoid a page break inside the generated box."},{name:"avoid-region"}],relevance:50,description:"Describes the page/column break behavior inside the generated box.",restrictions:["enum"]},{name:"-webkit-column-count",browsers:["C","S3"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],relevance:50,description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer"]},{name:"-webkit-column-gap",browsers:["C","S3"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],relevance:50,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length"]},{name:"-webkit-column-rule",browsers:["C","S3"],relevance:50,description:"This property is a shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"-webkit-column-rule-color",browsers:["C","S3"],relevance:50,description:"Sets the color of the column rule",restrictions:["color"]},{name:"-webkit-column-rule-style",browsers:["C","S3"],relevance:50,description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"-webkit-column-rule-width",browsers:["C","S3"],relevance:50,description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"-webkit-columns",browsers:["C","S3"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer"]},{name:"-webkit-column-span",browsers:["C","S3"],values:[{name:"all",description:"The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."},{name:"none",description:"The element does not span multiple columns."}],relevance:50,description:"Describes the page/column break behavior after the generated box.",restrictions:["enum"]},{name:"-webkit-column-width",browsers:["C","S3"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"This property describes the width of columns in multicol elements.",restrictions:["length"]},{name:"-webkit-filter",browsers:["C18","O15","S6"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",description:"A filter reference to a <filter> element."}],relevance:50,description:"Processes an element\u2019s rendering before it is displayed in the document, by applying one or more filter effects.",restrictions:["enum","url"]},{name:"-webkit-flow-from",browsers:["S6.1"],values:[{name:"none",description:"The block container is not a CSS Region."}],relevance:50,description:"Makes a block container a region and associates it with a named flow.",restrictions:["identifier"]},{name:"-webkit-flow-into",browsers:["S6.1"],values:[{name:"none",description:"The element is not moved to a named flow and normal CSS processing takes place."}],relevance:50,description:"Places an element or its contents into a named flow.",restrictions:["identifier"]},{name:"-webkit-font-feature-settings",browsers:["C16"],values:[{name:'"c2cs"'},{name:'"dlig"'},{name:'"kern"'},{name:'"liga"'},{name:'"lnum"'},{name:'"onum"'},{name:'"smcp"'},{name:'"swsh"'},{name:'"tnum"'},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off"},{name:"on"}],relevance:50,description:"This property provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"-webkit-hyphens",browsers:["S5.1"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-webkit-line-break",browsers:["C","S3"],values:[{name:"after-white-space"},{name:"normal"}],relevance:50,description:"Specifies line-breaking rules for CJK (Chinese, Japanese, and Korean) text."},{name:"-webkit-margin-bottom-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-margin-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-margin-start",browsers:["C","S3"],values:[{name:"auto"}],relevance:50,restrictions:["percentage","length"]},{name:"-webkit-margin-top-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-mask-clip",browsers:["C","O15","S4"],status:"nonstandard",syntax:"[ <box> | border | padding | content | text ]#",relevance:0,description:"Determines the mask painting area, which determines the area that is affected by the mask.",restrictions:["box"]},{name:"-webkit-mask-image",browsers:["C","O15","S4"],values:[{name:"none",description:"Counts as a transparent black image layer."},{name:"url()",description:"Reference to a <mask element or to a CSS image."}],status:"nonstandard",syntax:"<mask-reference>#",relevance:0,description:"Sets the mask layer image of an element.",restrictions:["url","image","enum"]},{name:"-webkit-mask-origin",browsers:["C","O15","S4"],status:"nonstandard",syntax:"[ <box> | border | padding | content ]#",relevance:0,description:"Specifies the mask positioning area.",restrictions:["box"]},{name:"-webkit-mask-repeat",browsers:["C","O15","S4"],status:"nonstandard",syntax:"<repeat-style>#",relevance:0,description:"Specifies how mask layer images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"-webkit-mask-size",browsers:["C","O15","S4"],values:[{name:"auto",description:"Resolved by using the image\u2019s intrinsic ratio and the size of the other dimension, or failing that, using the image\u2019s intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],status:"nonstandard",syntax:"<bg-size>#",relevance:0,description:"Specifies the size of the mask layer images.",restrictions:["length","percentage","enum"]},{name:"-webkit-nbsp-mode",browsers:["C","S3"],values:[{name:"normal"},{name:"space"}],relevance:50,description:"Defines the behavior of nonbreaking spaces within text."},{name:"-webkit-overflow-scrolling",browsers:["C","S5"],values:[{name:"auto"},{name:"touch"}],status:"nonstandard",syntax:"auto | touch",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-overflow-scrolling"}],description:"Specifies whether to use native-style scrolling in an overflow:scroll element."},{name:"-webkit-padding-start",browsers:["C","S3"],relevance:50,restrictions:["percentage","length"]},{name:"-webkit-perspective",browsers:["C","S4"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-webkit-perspective-origin",browsers:["C","S4"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-webkit-region-fragment",browsers:["S7"],values:[{name:"auto",description:"Content flows as it would in a regular content box."},{name:"break",description:"If the content fits within the CSS Region, then this property has no effect."}],relevance:50,description:"The 'region-fragment' property controls the behavior of the last region associated with a named flow.",restrictions:["enum"]},{name:"-webkit-tap-highlight-color",browsers:["E12","C16","O15"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color"}],restrictions:["color"]},{name:"-webkit-text-fill-color",browsers:["E12","FF49","S3","C1","O15"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color"}],restrictions:["color"]},{name:"-webkit-text-size-adjust",browsers:["E","C","S3"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["percentage"]},{name:"-webkit-text-stroke",browsers:["E15","FF49","S3","C4","O15"],status:"nonstandard",syntax:"<length> || <color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke"}],restrictions:["length","line-width","color","percentage"]},{name:"-webkit-text-stroke-color",browsers:["E15","FF49","S3","C1","O15"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color"}],restrictions:["color"]},{name:"-webkit-text-stroke-width",browsers:["E15","FF49","S3","C1","O15"],status:"nonstandard",syntax:"<length>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width"}],restrictions:["length","line-width","percentage"]},{name:"-webkit-touch-callout",browsers:["S3"],values:[{name:"none"}],status:"nonstandard",syntax:"default | none",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout"}],restrictions:["enum"]},{name:"-webkit-transform",browsers:["C","O12","S3.1"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective()",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-webkit-transform-origin",browsers:["C","O15","S3.1"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-webkit-transform-origin-x",browsers:["C","S3.1"],relevance:50,description:"The x coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-origin-y",browsers:["C","S3.1"],relevance:50,description:"The y coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-origin-z",browsers:["C","S4"],relevance:50,description:"The z coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-style",browsers:["C","S4"],values:[{name:"flat",description:"All children of this element are rendered flattened into the 2D plane of the element."}],relevance:50,description:"Defines how nested elements are rendered in 3D space.",restrictions:["enum"]},{name:"-webkit-transition",browsers:["C","O12","S5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-webkit-transition-delay",browsers:["C","O12","S5"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-webkit-transition-duration",browsers:["C","O12","S5"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-webkit-transition-property",browsers:["C","O12","S5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-webkit-transition-timing-function",browsers:["C","O12","S5"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"-webkit-user-drag",browsers:["S3"],values:[{name:"auto"},{name:"element"},{name:"none"}],relevance:50,restrictions:["enum"]},{name:"-webkit-user-modify",browsers:["C","S3"],values:[{name:"read-only"},{name:"read-write"},{name:"read-write-plaintext-only"}],status:"nonstandard",syntax:"read-only | read-write | read-write-plaintext-only",relevance:0,description:"Determines whether a user can edit the content of an element.",restrictions:["enum"]},{name:"-webkit-user-select",browsers:["C","S3"],values:[{name:"auto"},{name:"none"},{name:"text"}],relevance:50,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"widows",browsers:["E12","S1.3","C25","IE8","O9.2"],syntax:"<integer>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/widows"}],description:"Specifies the minimum number of line boxes of a block container that must be left in a fragment after a break.",restrictions:["integer"]},{name:"width",values:[{name:"auto",description:"The width depends on the values of other properties."},{name:"fit-content",description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"<viewport-length>{1,2}",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/width"}],description:"Specifies the width of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.",restrictions:["length","percentage"]},{name:"will-change",browsers:["E79","FF36","S9.1","C36","O24"],values:[{name:"auto",description:"Expresses no particular intent."},{name:"contents",description:"Indicates that the author expects to animate or change something about the element\u2019s contents in the near future."},{name:"scroll-position",description:"Indicates that the author expects to animate or change the scroll position of the element in the near future."}],syntax:"auto | <animateable-feature>#",relevance:63,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/will-change"}],description:"Provides a rendering hint to the user agent, stating what kinds of changes the author expects to perform on the element.",restrictions:["enum","identifier"]},{name:"word-break",values:[{name:"break-all",description:"Lines may break between any two grapheme clusters for non-CJK scripts."},{name:"keep-all",description:"Block characters can no longer create implied break points."},{name:"normal",description:"Breaks non-CJK scripts according to their own rules."}],syntax:"normal | break-all | keep-all | break-word",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/word-break"}],description:"Specifies line break opportunities for non-CJK scripts.",restrictions:["enum"]},{name:"word-spacing",values:[{name:"normal",description:"No additional spacing is applied. Computes to zero."}],syntax:"normal | <length>",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/word-spacing"}],description:"Specifies additional spacing between \u201cwords\u201d.",restrictions:["length","percentage"]},{name:"word-wrap",values:[{name:"break-word",description:"An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],syntax:"normal | break-word",relevance:78,description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.",restrictions:["enum"]},{name:"writing-mode",values:[{name:"horizontal-tb",description:"Top-to-bottom block flow direction. The writing mode is horizontal."},{name:"sideways-lr",description:"Left-to-right block flow direction. The writing mode is vertical, while the typographic mode is horizontal."},{name:"sideways-rl",description:"Right-to-left block flow direction. The writing mode is vertical, while the typographic mode is horizontal."},{name:"vertical-lr",description:"Left-to-right block flow direction. The writing mode is vertical."},{name:"vertical-rl",description:"Right-to-left block flow direction. The writing mode is vertical."}],syntax:"horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/writing-mode"}],description:"This is a shorthand property for both 'direction' and 'block-progression'.",restrictions:["enum"]},{name:"z-index",values:[{name:"auto",description:"The stack level of the generated box in the current stacking context is 0. The box does not establish a new stacking context unless it is the root element."}],syntax:"auto | <integer>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/z-index"}],description:"For a positioned box, the 'z-index' property specifies the stack level of the box in the current stacking context and whether the box establishes a local stacking context.",restrictions:["integer"]},{name:"zoom",browsers:["E12","S3.1","C1","IE5.5","O15"],values:[{name:"normal"}],syntax:"auto | <number> | <percentage>",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/zoom"}],description:"Non-standard. Specifies the magnification scale of the object. See 'transform: scale()' for a standards-based alternative.",restrictions:["enum","integer","number","percentage"]},{name:"-ms-ime-align",status:"nonstandard",syntax:"auto | after",relevance:0,description:"Aligns the Input Method Editor (IME) candidate window box relative to the element on which the IME composition is active."},{name:"-moz-binding",status:"nonstandard",syntax:"<url> | none",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-binding"}],description:"The -moz-binding CSS property is used by Mozilla-based applications to attach an XBL binding to a DOM element."},{name:"-moz-context-properties",status:"nonstandard",syntax:"none | [ fill | fill-opacity | stroke | stroke-opacity ]#",relevance:0,browsers:["FF55"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-context-properties"}],description:"If you reference an SVG image in a webpage (such as with the <img> element or as a background image), the SVG image can coordinate with the embedding element (its context) to have the image adopt property values set on the embedding element. To do this the embedding element needs to list the properties that are to be made available to the image by listing them as values of the -moz-context-properties property, and the image needs to opt in to using those properties by using values such as the context-fill value.\n\nThis feature is available since Firefox 55, but is only currently supported with SVG images loaded via chrome:// or resource:// URLs. To experiment with the feature in SVG on the Web it is necessary to set the svg.context-properties.content.enabled pref to true."},{name:"-moz-float-edge",status:"nonstandard",syntax:"border-box | content-box | margin-box | padding-box",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge"}],description:"The non-standard -moz-float-edge CSS property specifies whether the height and width properties of the element include the margin, border, or padding thickness."},{name:"-moz-force-broken-image-icon",status:"nonstandard",syntax:"0 | 1",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon"}],description:"The -moz-force-broken-image-icon extended CSS property can be used to force the broken image icon to be shown even when a broken image has an alt attribute."},{name:"-moz-image-region",status:"nonstandard",syntax:"<shape> | auto",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-image-region"}],description:"For certain XUL elements and pseudo-elements that use an image from the list-style-image property, this property specifies a region of the image that is used in place of the whole image. This allows elements to use different pieces of the same image to improve performance."},{name:"-moz-orient",status:"nonstandard",syntax:"inline | block | horizontal | vertical",relevance:0,browsers:["FF6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-orient"}],description:"The -moz-orient CSS property specifies the orientation of the element to which it's applied."},{name:"-moz-outline-radius",status:"nonstandard",syntax:"<outline-radius>{1,4} [ / <outline-radius>{1,4} ]?",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius"}],description:"In Mozilla applications like Firefox, the -moz-outline-radius CSS property can be used to give an element's outline rounded corners."},{name:"-moz-outline-radius-bottomleft",status:"nonstandard",syntax:"<outline-radius>",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomleft"}],description:"In Mozilla applications, the -moz-outline-radius-bottomleft CSS property can be used to round the bottom-left corner of an element's outline."},{name:"-moz-outline-radius-bottomright",status:"nonstandard",syntax:"<outline-radius>",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomright"}],description:"In Mozilla applications, the -moz-outline-radius-bottomright CSS property can be used to round the bottom-right corner of an element's outline."},{name:"-moz-outline-radius-topleft",status:"nonstandard",syntax:"<outline-radius>",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topleft"}],description:"In Mozilla applications, the -moz-outline-radius-topleft CSS property can be used to round the top-left corner of an element's outline."},{name:"-moz-outline-radius-topright",status:"nonstandard",syntax:"<outline-radius>",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topright"}],description:"In Mozilla applications, the -moz-outline-radius-topright CSS property can be used to round the top-right corner of an element's outline."},{name:"-moz-stack-sizing",status:"nonstandard",syntax:"ignore | stretch-to-fit",relevance:0,description:"-moz-stack-sizing is an extended CSS property. Normally, a stack will change its size so that all of its child elements are completely visible. For example, moving a child of the stack far to the right will widen the stack so the child remains visible."},{name:"-moz-text-blink",status:"nonstandard",syntax:"none | blink",relevance:0,description:"The -moz-text-blink non-standard Mozilla CSS extension specifies the blink mode."},{name:"-moz-user-input",status:"nonstandard",syntax:"auto | none | enabled | disabled",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-user-input"}],description:"In Mozilla applications, -moz-user-input determines if an element will accept user input."},{name:"-moz-user-modify",status:"nonstandard",syntax:"read-only | read-write | write-only",relevance:0,description:"The -moz-user-modify property has no effect. It was originally planned to determine whether or not the content of an element can be edited by a user."},{name:"-moz-window-dragging",status:"nonstandard",syntax:"drag | no-drag",relevance:0,description:"The -moz-window-dragging CSS property specifies whether a window is draggable or not. It only works in Chrome code, and only on Mac OS X."},{name:"-moz-window-shadow",status:"nonstandard",syntax:"default | menu | tooltip | sheet | none",relevance:0,description:"The -moz-window-shadow CSS property specifies whether a window will have a shadow. It only works on Mac OS X."},{name:"-webkit-border-before",status:"nonstandard",syntax:"<'border-width'> || <'border-style'> || <color>",relevance:0,browsers:["E79","S5.1","C8","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-border-before"}],description:"The -webkit-border-before CSS property is a shorthand property for setting the individual logical block start border property values in a single place in the style sheet."},{name:"-webkit-border-before-color",status:"nonstandard",syntax:"<color>",relevance:0,description:"The -webkit-border-before-color CSS property sets the color of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-border-before-style",status:"nonstandard",syntax:"<'border-style'>",relevance:0,description:"The -webkit-border-before-style CSS property sets the style of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-border-before-width",status:"nonstandard",syntax:"<'border-width'>",relevance:0,description:"The -webkit-border-before-width CSS property sets the width of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-line-clamp",syntax:"none | <integer>",relevance:50,browsers:["E17","FF68","S5","C6","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp"}],description:"The -webkit-line-clamp CSS property allows limiting of the contents of a block container to the specified number of lines."},{name:"-webkit-mask",status:"nonstandard",syntax:"[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <box> | border | padding | content | text ] || [ <box> | border | padding | content ] ]#",relevance:0,description:"The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."},{name:"-webkit-mask-attachment",status:"nonstandard",syntax:"<attachment>#",relevance:0,browsers:["S4","C1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-attachment"}],description:"If a -webkit-mask-image is specified, -webkit-mask-attachment determines whether the mask image's position is fixed within the viewport, or scrolls along with its containing block."},{name:"-webkit-mask-composite",status:"nonstandard",syntax:"<composite-style>#",relevance:0,browsers:["E18","FF53","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite"}],description:"The -webkit-mask-composite property specifies the manner in which multiple mask images applied to the same element are composited with one another. Mask images are composited in the opposite order that they are declared with the -webkit-mask-image property."},{name:"-webkit-mask-position",status:"nonstandard",syntax:"<position>#",relevance:0,description:"The mask-position CSS property sets the initial position, relative to the mask position layer defined by mask-origin, for each defined mask image."},{name:"-webkit-mask-position-x",status:"nonstandard",syntax:"[ <length-percentage> | left | center | right ]#",relevance:0,browsers:["E18","FF49","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-x"}],description:"The -webkit-mask-position-x CSS property sets the initial horizontal position of a mask image."},{name:"-webkit-mask-position-y",status:"nonstandard",syntax:"[ <length-percentage> | top | center | bottom ]#",relevance:0,browsers:["E18","FF49","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-y"}],description:"The -webkit-mask-position-y CSS property sets the initial vertical position of a mask image."},{name:"-webkit-mask-repeat-x",status:"nonstandard",syntax:"repeat | no-repeat | space | round",relevance:0,browsers:["E18","S5","C3","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-x"}],description:"The -webkit-mask-repeat-x property specifies whether and how a mask image is repeated (tiled) horizontally."},{name:"-webkit-mask-repeat-y",status:"nonstandard",syntax:"repeat | no-repeat | space | round",relevance:0,browsers:["E18","S5","C3","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-y"}],description:"The -webkit-mask-repeat-y property specifies whether and how a mask image is repeated (tiled) vertically."},{name:"accent-color",syntax:"auto | <color>",relevance:50,browsers:["E93","FF92","S15.4","C93","O79"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/accent-color"}],description:"Sets the color of the elements accent"},{name:"align-tracks",status:"experimental",syntax:"[ normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position> ]#",relevance:50,browsers:["FF77"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-tracks"}],description:"The align-tracks CSS property sets the alignment in the masonry axis for grid containers that have masonry in their block axis."},{name:"animation-timeline",syntax:"<single-animation-timeline>#",relevance:50,browsers:["FF97"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-timeline"}],description:"Specifies the names of one or more @scroll-timeline at-rules to describe the element's scroll animations."},{name:"appearance",status:"experimental",syntax:"none | auto | textfield | menulist-button | <compat-auto>",relevance:62,browsers:["E84","FF80","S15.4","C84","O70"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/appearance"}],description:"Changes the appearance of buttons and other controls to resemble native controls."},{name:"aspect-ratio",status:"experimental",syntax:"auto | <ratio>",relevance:52,browsers:["E88","FF89","S15","C88","O74"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/aspect-ratio"}],description:"The aspect-ratio CSS property sets a preferred aspect ratio for the box, which will be used in the calculation of auto sizes and some other layout functions."},{name:"azimuth",status:"obsolete",syntax:"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards",relevance:0,description:"In combination with elevation, the azimuth CSS property enables different audio sources to be positioned spatially for aural presentation. This is important in that it provides a natural way to tell several voices apart, as each can be positioned to originate at a different location on the sound stage. Stereo output produce a lateral sound stage, while binaural headphones and multi-speaker setups allow for a fully three-dimensional stage."},{name:"backdrop-filter",syntax:"none | <filter-function-list>",relevance:53,browsers:["E17","FF70","S9","C76","O63"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/backdrop-filter"}],description:"The backdrop-filter CSS property lets you apply graphical effects such as blurring or color shifting to the area behind an element. Because it applies to everything behind the element, to see the effect you must make the element or its background at least partially transparent."},{name:"border-block",syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block"}],description:"The border-block CSS property is a shorthand property for setting the individual logical block border property values in a single place in the style sheet."},{name:"border-block-color",syntax:"<'border-top-color'>{1,2}",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-color"}],description:"The border-block-color CSS property defines the color of the logical block borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-block-style",syntax:"<'border-top-style'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-style"}],description:"The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-block-width",syntax:"<'border-top-width'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-width"}],description:"The border-block-width CSS property defines the width of the logical block borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-end-end-radius",syntax:"<length-percentage>{1,2}",relevance:50,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius"}],description:"The border-end-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on on the element's writing-mode, direction, and text-orientation."},{name:"border-end-start-radius",syntax:"<length-percentage>{1,2}",relevance:50,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius"}],description:"The border-end-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."},{name:"border-inline",syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline"}],description:"The border-inline CSS property is a shorthand property for setting the individual logical inline border property values in a single place in the style sheet."},{name:"border-inline-color",syntax:"<'border-top-color'>{1,2}",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-color"}],description:"The border-inline-color CSS property defines the color of the logical inline borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-inline-style",syntax:"<'border-top-style'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-style"}],description:"The border-inline-style CSS property defines the style of the logical inline borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-inline-width",syntax:"<'border-top-width'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-width"}],description:"The border-inline-width CSS property defines the width of the logical inline borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-start-end-radius",syntax:"<length-percentage>{1,2}",relevance:50,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius"}],description:"The border-start-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."},{name:"border-start-start-radius",syntax:"<length-percentage>{1,2}",relevance:50,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius"}],description:"The border-start-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on the element's writing-mode, direction, and text-orientation."},{name:"box-align",status:"nonstandard",syntax:"start | center | end | baseline | stretch",relevance:0,browsers:["E12","FF1","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-align"}],description:"The box-align CSS property specifies how an element aligns its contents across its layout in a perpendicular direction. The effect of the property is only visible if there is extra space in the box."},{name:"box-direction",status:"nonstandard",syntax:"normal | reverse | inherit",relevance:0,browsers:["E12","FF1","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-direction"}],description:"The box-direction CSS property specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge)."},{name:"box-flex",status:"nonstandard",syntax:"<number>",relevance:0,browsers:["E12","FF1","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-flex"}],description:"The -moz-box-flex and -webkit-box-flex CSS properties specify how a -moz-box or -webkit-box grows to fill the box that contains it, in the direction of the containing box's layout."},{name:"box-flex-group",status:"nonstandard",syntax:"<integer>",relevance:0,browsers:["S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-flex-group"}],description:"The box-flex-group CSS property assigns the flexbox's child elements to a flex group."},{name:"box-lines",status:"nonstandard",syntax:"single | multiple",relevance:0,browsers:["S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-lines"}],description:"The box-lines CSS property determines whether the box may have a single or multiple lines (rows for horizontally oriented boxes, columns for vertically oriented boxes)."},{name:"box-ordinal-group",status:"nonstandard",syntax:"<integer>",relevance:0,browsers:["E12","FF1","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group"}],description:"The box-ordinal-group CSS property assigns the flexbox's child elements to an ordinal group."},{name:"box-orient",status:"nonstandard",syntax:"horizontal | vertical | inline-axis | block-axis | inherit",relevance:0,browsers:["E12","FF1","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-orient"}],description:"The box-orient CSS property specifies whether an element lays out its contents horizontally or vertically."},{name:"box-pack",status:"nonstandard",syntax:"start | center | end | justify",relevance:0,browsers:["E12","FF1","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-pack"}],description:"The -moz-box-pack and -webkit-box-pack CSS properties specify how a -moz-box or -webkit-box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box."},{name:"print-color-adjust",syntax:"economy | exact",relevance:50,browsers:["E79","FF97","S15.4","C17","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/print-color-adjust"}],description:"Defines what optimization the user agent is allowed to do when adjusting the appearance for an output device."},{name:"color-scheme",syntax:"normal | [ light | dark | <custom-ident> ]+ && only?",relevance:52,browsers:["E81","FF96","S13","C81","O68"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/color-scheme"}],description:"The color-scheme CSS property allows an element to indicate which color schemes it can comfortably be rendered in."},{name:"content-visibility",syntax:"visible | auto | hidden",relevance:51,browsers:["E85","S15.4","C85","O71"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/content-visibility"}],description:"Controls whether or not an element renders its contents at all, along with forcing a strong set of containments, allowing user agents to potentially omit large swathes of layout and rendering work until it becomes needed."},{name:"counter-set",syntax:"[ <counter-name> <integer>? ]+ | none",relevance:50,browsers:["E85","FF68","C85","O71"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-set"}],description:"The counter-set CSS property sets a CSS counter to a given value. It manipulates the value of existing counters, and will only create new counters if there isn't already a counter of the given name on the element."},{name:"font-optical-sizing",syntax:"auto | none",relevance:50,browsers:["E17","FF62","S11","C79","O66"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing"}],description:"The font-optical-sizing CSS property allows developers to control whether browsers render text with slightly differing visual representations to optimize viewing at different sizes, or not. This only works for fonts that have an optical size variation axis."},{name:"font-variation-settings",syntax:"normal | [ <string> <number> ]#",relevance:50,browsers:["E17","FF62","S11","C62","O49"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variation-settings"}],description:"The font-variation-settings CSS property provides low-level control over OpenType or TrueType font variations, by specifying the four letter axis names of the features you want to vary, along with their variation values."},{name:"font-smooth",status:"nonstandard",syntax:"auto | never | always | <absolute-size> | <length>",relevance:0,browsers:["E79","FF25","S4","C5","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-smooth"}],description:"The font-smooth CSS property controls the application of anti-aliasing when fonts are rendered."},{name:"forced-color-adjust",status:"experimental",syntax:"auto | none",relevance:52,browsers:["E79","C89","IE10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust"}],description:"Allows authors to opt certain elements out of forced colors mode. This then restores the control of those values to CSS"},{name:"gap",syntax:"<'row-gap'> <'column-gap'>?",relevance:55,browsers:["E84","FF63","S14.1","C84","O70"],description:"The gap CSS property is a shorthand property for row-gap and column-gap specifying the gutters between grid rows and columns."},{name:"hanging-punctuation",syntax:"none | [ first || [ force-end | allow-end ] || last ]",relevance:50,browsers:["S10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hanging-punctuation"}],description:"The hanging-punctuation CSS property specifies whether a punctuation mark should hang at the start or end of a line of text. Hanging punctuation may be placed outside the line box."},{name:"hyphenate-character",syntax:"auto | <string>",relevance:50,browsers:["E79","FF98","S5.1","C6","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hyphenate-character"}],description:"A hyphenate character used at the end of a line."},{name:"image-resolution",status:"experimental",syntax:"[ from-image || <resolution> ] && snap?",relevance:50,description:"The image-resolution property specifies the intrinsic resolution of all raster images used in or on the element. It affects both content images (e.g. replaced elements and generated content) and decorative images (such as background-image). The intrinsic resolution of an image is used to determine the image\u2019s intrinsic dimensions."},{name:"initial-letter",status:"experimental",syntax:"normal | [ <number> <integer>? ]",relevance:50,browsers:["S9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/initial-letter"}],description:"The initial-letter CSS property specifies styling for dropped, raised, and sunken initial letters."},{name:"initial-letter-align",status:"experimental",syntax:"[ auto | alphabetic | hanging | ideographic ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/initial-letter-align"}],description:"The initial-letter-align CSS property specifies the alignment of initial letters within a paragraph."},{name:"input-security",syntax:"auto | none",relevance:50,description:"Enables or disables the obscuring a sensitive test input."},{name:"inset",syntax:"<'top'>{1,4}",relevance:51,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset"}],description:"The inset CSS property defines the logical block and inline start and end offsets of an element, which map to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block",syntax:"<'top'>{1,2}",relevance:50,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block"}],description:"The inset-block CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block-end",syntax:"<'top'>",relevance:50,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block-end"}],description:"The inset-block-end CSS property defines the logical block end offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block-start",syntax:"<'top'>",relevance:50,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block-start"}],description:"The inset-block-start CSS property defines the logical block start offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline",syntax:"<'top'>{1,2}",relevance:50,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline"}],description:"The inset-inline CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline-end",syntax:"<'top'>",relevance:50,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline-end"}],description:"The inset-inline-end CSS property defines the logical inline end inset of an element, which maps to a physical inset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline-start",syntax:"<'top'>",relevance:50,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline-start"}],description:"The inset-inline-start CSS property defines the logical inline start inset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"justify-tracks",status:"experimental",syntax:"[ normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ] ]#",relevance:50,browsers:["FF77"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-tracks"}],description:"The justify-tracks CSS property sets the alignment in the masonry axis for grid containers that have masonry in their inline axis"},{name:"line-clamp",status:"experimental",syntax:"none | <integer>",relevance:50,description:"The line-clamp property allows limiting the contents of a block container to the specified number of lines; remaining content is fragmented away and neither rendered nor measured. Optionally, it also allows inserting content into the last line box to indicate the continuity of truncated/interrupted content."},{name:"line-height-step",status:"experimental",syntax:"<length>",relevance:50,browsers:["E79","C60","O47"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-height-step"}],description:"The line-height-step CSS property defines the step units for line box heights. When the step unit is positive, line box heights are rounded up to the closest multiple of the unit. Negative values are invalid."},{name:"margin-block",syntax:"<'margin-left'>{1,2}",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block"}],description:"The margin-block CSS property defines the logical block start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation."},{name:"margin-inline",syntax:"<'margin-left'>{1,2}",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline"}],description:"The margin-inline CSS property defines the logical inline start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation."},{name:"margin-trim",status:"experimental",syntax:"none | in-flow | all",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-trim"}],description:"The margin-trim property allows the container to trim the margins of its children where they adjoin the container\u2019s edges."},{name:"mask",syntax:"<mask-layer>#",relevance:50,browsers:["E79","FF2","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask"}],description:"The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."},{name:"mask-border",syntax:"<'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>",relevance:50,browsers:["E79","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border"}],description:"The mask-border CSS property lets you create a mask along the edge of an element's border.\n\nThis property is a shorthand for mask-border-source, mask-border-slice, mask-border-width, mask-border-outset, mask-border-repeat, and mask-border-mode. As with all shorthand properties, any omitted sub-values will be set to their initial value."},{name:"mask-border-mode",syntax:"luminance | alpha",relevance:50,description:"The mask-border-mode CSS property specifies the blending mode used in a mask border."},{name:"mask-border-outset",syntax:"[ <length> | <number> ]{1,4}",relevance:50,browsers:["E79","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-outset"}],description:"The mask-border-outset CSS property specifies the distance by which an element's mask border is set out from its border box."},{name:"mask-border-repeat",syntax:"[ stretch | repeat | round | space ]{1,2}",relevance:50,browsers:["E79","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat"}],description:"The mask-border-repeat CSS property defines how the edge regions of a source image are adjusted to fit the dimensions of an element's mask border."},{name:"mask-border-slice",syntax:"<number-percentage>{1,4} fill?",relevance:50,browsers:["E79","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-slice"}],description:"The mask-border-slice CSS property divides the image specified by mask-border-source into regions. These regions are used to form the components of an element's mask border."},{name:"mask-border-source",syntax:"none | <image>",relevance:50,browsers:["E79","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-source"}],description:"The mask-border-source CSS property specifies the source image used to create an element's mask border.\n\nThe mask-border-slice property is used to divide the source image into regions, which are then dynamically applied to the final mask border."},{name:"mask-border-width",syntax:"[ <length-percentage> | <number> | auto ]{1,4}",relevance:50,browsers:["E79","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-width"}],description:"The mask-border-width CSS property specifies the width of an element's mask border."},{name:"mask-clip",syntax:"[ <geometry-box> | no-clip ]#",relevance:50,browsers:["E79","FF53","S15.4","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-clip"}],description:"The mask-clip CSS property determines the area, which is affected by a mask. The painted content of an element must be restricted to this area."},{name:"mask-composite",syntax:"<compositing-operator>#",relevance:50,browsers:["E18","FF53","S15.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-composite"}],description:"The mask-composite CSS property represents a compositing operation used on the current mask layer with the mask layers below it."},{name:"masonry-auto-flow",status:"experimental",syntax:"[ pack | next ] || [ definite-first | ordered ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/masonry-auto-flow"}],description:"The masonry-auto-flow CSS property modifies how items are placed when using masonry in CSS Grid Layout."},{name:"math-style",syntax:"normal | compact",relevance:50,browsers:["FF83","S14.1","C83"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/math-style"}],description:"The math-style property indicates whether MathML equations should render with normal or compact height."},{name:"max-lines",status:"experimental",syntax:"none | <integer>",relevance:50,description:"The max-liens property forces a break after a set number of lines"},{name:"offset",syntax:"[ <'offset-position'>? [ <'offset-path'> [ <'offset-distance'> || <'offset-rotate'> ]? ]? ]! [ / <'offset-anchor'> ]?",relevance:50,browsers:["E79","FF72","C55","O42"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset"}],description:"The offset CSS property is a shorthand property for animating an element along a defined path."},{name:"offset-anchor",syntax:"auto | <position>",relevance:50,browsers:["FF72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-anchor"}],description:"Defines an anchor point of the box positioned along the path. The anchor point specifies the point of the box which is to be considered as the point that is moved along the path."},{name:"offset-distance",syntax:"<length-percentage>",relevance:50,browsers:["E79","FF72","C55","O42"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-distance"}],description:"The offset-distance CSS property specifies a position along an offset-path."},{name:"offset-path",syntax:"none | ray( [ <angle> && <size> && contain? ] ) | <path()> | <url> | [ <basic-shape> || <geometry-box> ]",relevance:50,browsers:["E79","FF72","C55","O45"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-path"}],description:'The offset-path CSS property specifies the offset path where the element gets positioned. The exact element\u2019s position on the offset path is determined by the offset-distance property. An offset path is either a specified path with one or multiple sub-paths or the geometry of a not-styled basic shape. Each shape or path must define an initial position for the computed value of "0" for offset-distance and an initial direction which specifies the rotation of the object to the initial position.\n\nIn this specification, a direction (or rotation) of 0 degrees is equivalent to the direction of the positive x-axis in the object\u2019s local coordinate system. In other words, a rotation of 0 degree points to the right side of the UA if the object and its ancestors have no transformation applied.'},{name:"offset-position",status:"experimental",syntax:"auto | <position>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-position"}],description:"Specifies the initial position of the offset path. If position is specified with static, offset-position would be ignored."},{name:"offset-rotate",syntax:"[ auto | reverse ] || <angle>",relevance:50,browsers:["E79","FF72","C56","O43"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-rotate"}],description:"The offset-rotate CSS property defines the direction of the element while positioning along the offset path."},{name:"overflow-anchor",syntax:"auto | none",relevance:52,browsers:["E79","FF66","C56","O43"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-anchor"}],description:"The overflow-anchor CSS property provides a way to opt out browser scroll anchoring behavior which adjusts scroll position to minimize content shifts."},{name:"overflow-block",syntax:"visible | hidden | clip | scroll | auto",relevance:50,browsers:["FF69"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-block"}],description:"The overflow-block CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the block axis."},{name:"overflow-clip-box",status:"nonstandard",syntax:"padding-box | content-box",relevance:0,browsers:["FF29"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Mozilla/Gecko/Chrome/CSS/overflow-clip-box"}],description:"The overflow-clip-box CSS property specifies relative to which box the clipping happens when there is an overflow. It is short hand for the overflow-clip-box-inline and overflow-clip-box-block properties."},{name:"overflow-clip-margin",syntax:"<visual-box> || <length [0,\u221e]>",relevance:50,browsers:["E90","C90","O76"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin"}],description:"The overflow-clip-margin CSS property determines how far outside its bounds an element with overflow: clip may be painted before being clipped."},{name:"overflow-inline",syntax:"visible | hidden | clip | scroll | auto",relevance:50,browsers:["FF69"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-inline"}],description:"The overflow-inline CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the inline axis."},{name:"overscroll-behavior",syntax:"[ contain | none | auto ]{1,2}",relevance:50,browsers:["E18","FF59","C63","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior"}],description:"The overscroll-behavior CSS property is shorthand for the overscroll-behavior-x and overscroll-behavior-y properties, which allow you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached."},{name:"overscroll-behavior-block",syntax:"contain | none | auto",relevance:50,browsers:["E79","FF73","C77","O64"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block"}],description:"The overscroll-behavior-block CSS property sets the browser's behavior when the block direction boundary of a scrolling area is reached."},{name:"overscroll-behavior-inline",syntax:"contain | none | auto",relevance:50,browsers:["E79","FF73","C77","O64"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline"}],description:"The overscroll-behavior-inline CSS property sets the browser's behavior when the inline direction boundary of a scrolling area is reached."},{name:"overscroll-behavior-x",syntax:"contain | none | auto",relevance:50,browsers:["E18","FF59","C63","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x"}],description:"The overscroll-behavior-x CSS property is allows you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached \u2014 in the x axis direction."},{name:"overscroll-behavior-y",syntax:"contain | none | auto",relevance:50,browsers:["E18","FF59","C63","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y"}],description:"The overscroll-behavior-y CSS property is allows you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached \u2014 in the y axis direction."},{name:"padding-block",syntax:"<'padding-left'>{1,2}",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block"}],description:"The padding-block CSS property defines the logical block start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation."},{name:"padding-inline",syntax:"<'padding-left'>{1,2}",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline"}],description:"The padding-inline CSS property defines the logical inline start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation."},{name:"place-content",syntax:"<'align-content'> <'justify-content'>?",relevance:50,browsers:["E79","FF45","S9","C59","O46"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/place-content"}],description:"The place-content CSS shorthand property sets both the align-content and justify-content properties."},{name:"place-items",syntax:"<'align-items'> <'justify-items'>?",relevance:50,browsers:["E79","FF45","S11","C59","O46"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/place-items"}],description:"The CSS place-items shorthand property sets both the align-items and justify-items properties. The first value is the align-items property value, the second the justify-items one. If the second value is not present, the first value is also used for it."},{name:"place-self",syntax:"<'align-self'> <'justify-self'>?",relevance:50,browsers:["E79","FF45","S11","C59","O46"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/place-self"}],description:"The place-self CSS property is a shorthand property sets both the align-self and justify-self properties. The first value is the align-self property value, the second the justify-self one. If the second value is not present, the first value is also used for it."},{name:"rotate",syntax:"none | <angle> | [ x | y | z | <number>{3} ] && <angle>",relevance:50,browsers:["FF72","S14.1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/rotate"}],description:"The rotate CSS property allows you to specify rotation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."},{name:"row-gap",syntax:"normal | <length-percentage>",relevance:51,browsers:["E84","FF63","S14.1","C84","O70"],description:"The row-gap CSS property specifies the gutter between grid rows."},{name:"ruby-merge",status:"experimental",syntax:"separate | collapse | auto",relevance:50,description:"This property controls how ruby annotation boxes should be rendered when there are more than one in a ruby container box: whether each pair should be kept separate, the annotations should be collapsed and rendered as a group, or the separation should be determined based on the space available."},{name:"scale",syntax:"none | <number>{1,3}",relevance:50,browsers:["FF72","S14.1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scale"}],description:"The scale CSS property allows you to specify scale transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."},{name:"scrollbar-color",syntax:"auto | <color>{2}",relevance:50,browsers:["FF64"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-color"}],description:"The scrollbar-color CSS property sets the color of the scrollbar track and thumb."},{name:"scrollbar-gutter",syntax:"auto | stable && both-edges?",relevance:50,browsers:["E94","FF97","C94","O80"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter"}],description:"The scrollbar-gutter CSS property allows authors to reserve space for the scrollbar, preventing unwanted layout changes as the content grows while also avoiding unnecessary visuals when scrolling isn't needed."},{name:"scrollbar-width",syntax:"auto | thin | none",relevance:50,browsers:["FF64"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-width"}],description:"The scrollbar-width property allows the author to set the maximum thickness of an element\u2019s scrollbars when they are shown. "},{name:"scroll-margin",syntax:"<length>{1,4}",relevance:50,browsers:["E79","FF90","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin"}],description:"The scroll-margin property is a shorthand property which sets all of the scroll-margin longhands, assigning values much like the margin property does for the margin-* longhands."},{name:"scroll-margin-block",syntax:"<length>{1,2}",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block"}],description:"The scroll-margin-block property is a shorthand property which sets the scroll-margin longhands in the block dimension."},{name:"scroll-margin-block-start",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start"}],description:"The scroll-margin-block-start property defines the margin of the scroll snap area at the start of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-block-end",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end"}],description:"The scroll-margin-block-end property defines the margin of the scroll snap area at the end of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-bottom",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom"}],description:"The scroll-margin-bottom property defines the bottom margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-inline",syntax:"<length>{1,2}",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline"}],description:"The scroll-margin-inline property is a shorthand property which sets the scroll-margin longhands in the inline dimension."},{name:"scroll-margin-inline-start",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start"}],description:"The scroll-margin-inline-start property defines the margin of the scroll snap area at the start of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-inline-end",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end"}],description:"The scroll-margin-inline-end property defines the margin of the scroll snap area at the end of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-left",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left"}],description:"The scroll-margin-left property defines the left margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-right",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right"}],description:"The scroll-margin-right property defines the right margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-top",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top"}],description:"The scroll-margin-top property defines the top margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-padding",syntax:"[ auto | <length-percentage> ]{1,4}",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding"}],description:"The scroll-padding property is a shorthand property which sets all of the scroll-padding longhands, assigning values much like the padding property does for the padding-* longhands."},{name:"scroll-padding-block",syntax:"[ auto | <length-percentage> ]{1,2}",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block"}],description:"The scroll-padding-block property is a shorthand property which sets the scroll-padding longhands for the block dimension."},{name:"scroll-padding-block-start",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start"}],description:"The scroll-padding-block-start property defines offsets for the start edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-block-end",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end"}],description:"The scroll-padding-block-end property defines offsets for the end edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-bottom",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom"}],description:"The scroll-padding-bottom property defines offsets for the bottom of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-inline",syntax:"[ auto | <length-percentage> ]{1,2}",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline"}],description:"The scroll-padding-inline property is a shorthand property which sets the scroll-padding longhands for the inline dimension."},{name:"scroll-padding-inline-start",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start"}],description:"The scroll-padding-inline-start property defines offsets for the start edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-inline-end",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end"}],description:"The scroll-padding-inline-end property defines offsets for the end edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-left",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left"}],description:"The scroll-padding-left property defines offsets for the left of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-right",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right"}],description:"The scroll-padding-right property defines offsets for the right of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-top",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top"}],description:"The scroll-padding-top property defines offsets for the top of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-snap-align",syntax:"[ none | start | end | center ]{1,2}",relevance:52,browsers:["E79","FF68","S11","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align"}],description:"The scroll-snap-align property specifies the box\u2019s snap position as an alignment of its snap area (as the alignment subject) within its snap container\u2019s snapport (as the alignment container). The two values specify the snapping alignment in the block axis and inline axis, respectively. If only one value is specified, the second value defaults to the same value."},{name:"scroll-snap-stop",syntax:"normal | always",relevance:50,browsers:["E79","S15","C75","O62"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop"}],description:'The scroll-snap-stop CSS property defines whether the scroll container is allowed to "pass over" possible snap positions.'},{name:"scroll-snap-type-x",status:"obsolete",syntax:"none | mandatory | proximity",relevance:0,browsers:["FF39","S9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-x"}],description:"The scroll-snap-type-x CSS property defines how strictly snap points are enforced on the horizontal axis of the scroll container in case there is one.\n\nSpecifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent."},{name:"scroll-snap-type-y",status:"obsolete",syntax:"none | mandatory | proximity",relevance:0,browsers:["FF39"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-y"}],description:"The scroll-snap-type-y CSS property defines how strictly snap points are enforced on the vertical axis of the scroll container in case there is one.\n\nSpecifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent."},{name:"text-combine-upright",syntax:"none | all | [ digits <integer>? ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-combine-upright"}],description:"The text-combine-upright CSS property specifies the combination of multiple characters into the space of a single character. If the combined text is wider than 1em, the user agent must fit the contents within 1em. The resulting composition is treated as a single upright glyph for layout and decoration. This property only has an effect in vertical writing modes.\n\nThis is used to produce an effect that is known as tate-ch\u016b-yoko (\u7e26\u4e2d\u6a2a) in Japanese, or as \u76f4\u66f8\u6a6b\u5411 in Chinese."},{name:"text-decoration-skip",status:"experimental",syntax:"none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]",relevance:52,browsers:["S12.1","C57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip"}],description:"The text-decoration-skip CSS property specifies what parts of the element\u2019s content any text decoration affecting the element must skip over. It controls all text decoration lines drawn by the element and also any text decoration lines drawn by its ancestors."},{name:"text-decoration-skip-ink",syntax:"auto | all | none",relevance:50,browsers:["E79","FF70","S15.4","C64","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink"}],description:"The text-decoration-skip-ink CSS property specifies how overlines and underlines are drawn when they pass over glyph ascenders and descenders."},{name:"text-decoration-thickness",syntax:"auto | from-font | <length> | <percentage> ",relevance:50,browsers:["E89","FF70","S12.1","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness"}],description:"The text-decoration-thickness CSS property sets the thickness, or width, of the decoration line that is used on text in an element, such as a line-through, underline, or overline."},{name:"text-emphasis",syntax:"<'text-emphasis-style'> || <'text-emphasis-color'>",relevance:50,browsers:["E79","FF46","S7","C25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis"}],description:"The text-emphasis CSS property is a shorthand property for setting text-emphasis-style and text-emphasis-color in one declaration. This property will apply the specified emphasis mark to each character of the element's text, except separator characters, like spaces, and control characters."},{name:"text-emphasis-color",syntax:"<color>",relevance:50,browsers:["E79","FF46","S7","C25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color"}],description:"The text-emphasis-color CSS property defines the color used to draw emphasis marks on text being rendered in the HTML document. This value can also be set and reset using the text-emphasis shorthand."},{name:"text-emphasis-position",syntax:"[ over | under ] && [ right | left ]",relevance:50,browsers:["E79","FF46","S7","C25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position"}],description:"The text-emphasis-position CSS property describes where emphasis marks are drawn at. The effect of emphasis marks on the line height is the same as for ruby text: if there isn't enough place, the line height is increased."},{name:"text-emphasis-style",syntax:"none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>",relevance:50,browsers:["E79","FF46","S7","C25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style"}],description:"The text-emphasis-style CSS property defines the type of emphasis used. It can also be set, and reset, using the text-emphasis shorthand."},{name:"text-size-adjust",status:"experimental",syntax:"none | auto | <percentage>",relevance:57,browsers:["E79","C54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-size-adjust"}],description:"The text-size-adjust CSS property controls the text inflation algorithm used on some smartphones and tablets. Other browsers will ignore this property."},{name:"text-underline-offset",syntax:"auto | <length> | <percentage> ",relevance:50,browsers:["E87","FF70","S12.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-underline-offset"}],description:"The text-underline-offset CSS property sets the offset distance of an underline text decoration line (applied using text-decoration) from its original position."},{name:"transform-box",syntax:"content-box | border-box | fill-box | stroke-box | view-box",relevance:50,browsers:["E79","FF55","S11","C64","O51"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-box"}],description:"The transform-box CSS property defines the layout box to which the transform and transform-origin properties relate."},{name:"translate",syntax:"none | <length-percentage> [ <length-percentage> <length>? ]?",relevance:50,browsers:["FF72","S14.1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/translate"}],description:"The translate CSS property allows you to specify translation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."},{name:"white-space",syntax:"normal | pre | nowrap | pre-wrap | pre-line | break-spaces",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/white-space"}],description:"Specifies how whitespace is handled in an element."},{name:"speak-as",syntax:"auto | bullets | numbers | words | spell-out | <counter-style-name>",relevance:50,description:"The speak-as descriptor specifies how a counter symbol constructed with a given @counter-style will be represented in the spoken form. For example, an author can specify a counter symbol to be either spoken as its numerical value or just represented with an audio cue."},{name:"ascent-override",status:"experimental",syntax:"normal | <percentage>",relevance:50,description:"Describes the ascent metric of a font."},{name:"descent-override",status:"experimental",syntax:"normal | <percentage>",relevance:50,description:"Describes the descent metric of a font."},{name:"font-display",status:"experimental",syntax:"[ auto | block | swap | fallback | optional ]",relevance:70,description:"The font-display descriptor determines how a font face is displayed based on whether and when it is downloaded and ready to use."},{name:"line-gap-override",status:"experimental",syntax:"normal | <percentage>",relevance:50,description:"Describes the line-gap metric of a font."},{name:"size-adjust",status:"experimental",syntax:"<percentage>",relevance:50,description:"A multiplier for glyph outlines and metrics of a font."},{name:"bleed",syntax:"auto | <length>",relevance:50,description:"The bleed CSS at-rule descriptor, used with the @page at-rule, specifies the extent of the page bleed area outside the page box. This property only has effect if crop marks are enabled using the marks property."},{name:"marks",syntax:"none | [ crop || cross ]",relevance:50,description:"The marks CSS at-rule descriptor, used with the @page at-rule, adds crop and/or cross marks to the presentation of the document. Crop marks indicate where the page should be cut. Cross marks are used to align sheets."},{name:"syntax",status:"experimental",syntax:"<string>",relevance:50,description:"Specifies the syntax of the custom property registration represented by the @property rule, controlling how the property\u2019s value is parsed at computed value time."},{name:"inherits",status:"experimental",syntax:"true | false",relevance:50,description:"Specifies the inherit flag of the custom property registration represented by the @property rule, controlling whether or not the property inherits by default."},{name:"initial-value",status:"experimental",syntax:"<string>",relevance:50,description:"Specifies the initial value of the custom property registration represented by the @property rule, controlling the property\u2019s initial value."},{name:"max-zoom",syntax:"auto | <number> | <percentage>",relevance:50,description:"The max-zoom CSS descriptor sets the maximum zoom factor of a document defined by the @viewport at-rule. The browser will not zoom in any further than this, whether automatically or at the user's request.\n\nA zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out."},{name:"min-zoom",syntax:"auto | <number> | <percentage>",relevance:50,description:"The min-zoom CSS descriptor sets the minimum zoom factor of a document defined by the @viewport at-rule. The browser will not zoom out any further than this, whether automatically or at the user's request.\n\nA zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out."},{name:"orientation",syntax:"auto | portrait | landscape",relevance:50,description:"The orientation CSS @media media feature can be used to apply styles based on the orientation of the viewport (or the page box, for paged media)."},{name:"user-zoom",syntax:"zoom | fixed",relevance:50,description:"The user-zoom CSS descriptor controls whether or not the user can change the zoom factor of a document defined by @viewport."},{name:"viewport-fit",syntax:"auto | contain | cover",relevance:50,description:"The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation."}],atDirectives:[{name:"@charset",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@charset"}],description:"Defines character set of the document."},{name:"@counter-style",browsers:["E91","FF33","C91","O77"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@counter-style"}],description:"Defines a custom counter style."},{name:"@font-face",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@font-face"}],description:"Allows for linking to fonts that are automatically activated when needed. This permits authors to work around the limitation of 'web-safe' fonts, allowing for consistent rendering independent of the fonts available in a given user's environment."},{name:"@font-feature-values",browsers:["FF34","S9.1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"}],description:"Defines named values for the indices used to select alternate glyphs for a given font family."},{name:"@import",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@import"}],description:"Includes content of another file."},{name:"@keyframes",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@keyframes"}],description:"Defines set of animation key frames."},{name:"@media",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@media"}],description:"Defines a stylesheet for a particular media type."},{name:"@-moz-document",browsers:["FF1.8"],description:"Gecko-specific at-rule that restricts the style rules contained within it based on the URL of the document."},{name:"@-moz-keyframes",browsers:["FF5"],description:"Defines set of animation key frames."},{name:"@-ms-viewport",browsers:["E","IE10"],description:"Specifies the size, zoom factor, and orientation of the viewport."},{name:"@namespace",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@namespace"}],description:"Declares a prefix and associates it with a namespace name."},{name:"@-o-keyframes",browsers:["O12"],description:"Defines set of animation key frames."},{name:"@-o-viewport",browsers:["O11"],description:"Specifies the size, zoom factor, and orientation of the viewport."},{name:"@page",browsers:["E12","FF19","C2","IE8","O6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@page"}],description:"Directive defines various page parameters."},{name:"@supports",browsers:["E12","FF22","S9","C28","O12.1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@supports"}],description:"A conditional group rule whose condition tests whether the user agent supports CSS property:value pairs."},{name:"@-webkit-keyframes",browsers:["C","S4"],description:"Defines set of animation key frames."}],pseudoClasses:[{name:":active",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:active"}],description:"Applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it."},{name:":any-link",browsers:["E79","FF50","S9","C65","O52"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:any-link"}],description:"Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."},{name:":checked",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:checked"}],description:"Radio and checkbox elements can be toggled by the user. Some menu items are 'checked' when the user selects them. When such elements are toggled 'on' the :checked pseudo-class applies."},{name:":corner-present",browsers:["C","S5"],description:"Non-standard. Indicates whether or not a scrollbar corner is present."},{name:":decrement",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will decrement the view\u2019s position when used."},{name:":default",browsers:["E79","FF4","S5","C10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:default"}],description:"Applies to the one or more UI elements that are the default among a set of similar elements. Typically applies to context menu items, buttons, and select lists/menus."},{name:":disabled",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:disabled"}],description:"Represents user interface elements that are in a disabled state; such elements have a corresponding enabled state."},{name:":double-button",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed together at the same end of the scrollbar."},{name:":empty",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:empty"}],description:"Represents an element that has no children at all."},{name:":enabled",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:enabled"}],description:"Represents user interface elements that are in an enabled state; such elements have a corresponding disabled state."},{name:":end",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed after the thumb."},{name:":first",browsers:["E12","S6","C18","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":first-child",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first-child"}],description:"Same as :nth-child(1). Represents an element that is the first child of some other element."},{name:":first-of-type",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first-of-type"}],description:"Same as :nth-of-type(1). Represents an element that is the first sibling of its type in the list of children of its parent element."},{name:":focus",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus"}],description:"Applies while an element has the focus (accepts keyboard or mouse events, or other forms of input)."},{name:":fullscreen",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:fullscreen"}],description:"Matches any element that has its fullscreen flag set."},{name:":future",browsers:["S7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:future"}],description:"Represents any element that is defined to occur entirely after a :current element."},{name:":horizontal",browsers:["C","S5"],description:"Non-standard. Applies to any scrollbar pieces that have a horizontal orientation."},{name:":host",browsers:["E79","FF63","S10","C54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:host"}],description:"When evaluated in the context of a shadow tree, matches the shadow tree\u2019s host element."},{name:":host()",browsers:["C35","O22"],description:"When evaluated in the context of a shadow tree, it matches the shadow tree\u2019s host element if the host element, in its normal context, matches the selector argument."},{name:":host-context()",browsers:["C35","O22"],description:"Tests whether there is an ancestor, outside the shadow tree, which matches a particular selector."},{name:":hover",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:hover"}],description:"Applies while the user designates an element with a pointing device, but does not necessarily activate it. For example, a visual user agent could apply this pseudo-class when the cursor (mouse pointer) hovers over a box generated by the element."},{name:":increment",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will increment the view\u2019s position when used."},{name:":indeterminate",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:indeterminate"}],description:"Applies to UI elements whose value is in an indeterminate state."},{name:":in-range",browsers:["E13","FF29","S5.1","C10","O11"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:in-range"}],description:"Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."},{name:":invalid",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:invalid"}],description:"An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."},{name:":lang()",browsers:["E","C","FF1","IE8","O8","S3"],description:"Represents an element that is in language specified."},{name:":last-child",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:last-child"}],description:"Same as :nth-last-child(1). Represents an element that is the last child of some other element."},{name:":last-of-type",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:last-of-type"}],description:"Same as :nth-last-of-type(1). Represents an element that is the last sibling of its type in the list of children of its parent element."},{name:":left",browsers:["E12","S5.1","C6","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:left"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":link",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:link"}],description:"Applies to links that have not yet been visited."},{name:":matches()",browsers:["S9"],description:"Takes a selector list as its argument. It represents an element that is represented by its argument."},{name:":-moz-any()",browsers:["FF4"],description:"Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."},{name:":-moz-any-link",browsers:["FF1"],description:"Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."},{name:":-moz-broken",browsers:["FF3"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-broken"}],description:"Non-standard. Matches elements representing broken images."},{name:":-moz-drag-over",browsers:["FF1"],description:"Non-standard. Matches elements when a drag-over event applies to it."},{name:":-moz-first-node",browsers:["FF1"],description:"Non-standard. Represents an element that is the first child node of some other element."},{name:":-moz-focusring",browsers:["FF4"],description:"Non-standard. Matches an element that has focus and focus ring drawing is enabled in the browser."},{name:":-moz-full-screen",browsers:["FF9"],description:"Matches any element that has its fullscreen flag set. Standardized as :fullscreen."},{name:":-moz-last-node",browsers:["FF1"],description:"Non-standard. Represents an element that is the last child node of some other element."},{name:":-moz-loading",browsers:["FF3"],description:"Non-standard. Matches elements, such as images, that haven\u2019t started loading yet."},{name:":-moz-only-whitespace",browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-only-whitespace"}],description:"The same as :empty, except that it additionally matches elements that only contain code points affected by whitespace processing. Standardized as :blank."},{name:":-moz-placeholder",browsers:["FF4"],description:"Deprecated. Represents placeholder text in an input field. Use ::-moz-placeholder for Firefox 19+."},{name:":-moz-submit-invalid",browsers:["FF88"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-submit-invalid"}],description:"Non-standard. Represents any submit button when the contents of the associated form are not valid."},{name:":-moz-suppressed",browsers:["FF3"],description:"Non-standard. Matches elements representing images that have been blocked from loading."},{name:":-moz-ui-invalid",browsers:["FF4"],description:"Non-standard. Represents any validated form element whose value isn't valid "},{name:":-moz-ui-valid",browsers:["FF4"],description:"Non-standard. Represents any validated form element whose value is valid "},{name:":-moz-user-disabled",browsers:["FF3"],description:"Non-standard. Matches elements representing images that have been disabled due to the user\u2019s preferences."},{name:":-moz-window-inactive",browsers:["FF4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-window-inactive"}],description:"Non-standard. Matches elements in an inactive window."},{name:":-ms-fullscreen",browsers:["IE11"],description:"Matches any element that has its fullscreen flag set."},{name:":-ms-input-placeholder",browsers:["IE10"],description:"Represents placeholder text in an input field. Note: for Edge use the pseudo-element ::-ms-input-placeholder. Standardized as ::placeholder."},{name:":-ms-keyboard-active",browsers:["IE10"],description:"Windows Store apps only. Applies one or more styles to an element when it has focus and the user presses the space bar."},{name:":-ms-lang()",browsers:["E","IE10"],description:"Represents an element that is in the language specified. Accepts a comma separated list of language tokens."},{name:":no-button",browsers:["C","S5"],description:"Non-standard. Applies to track pieces. Applies when there is no button at that end of the track."},{name:":not()",browsers:["E","C","FF1","IE9","O9.5","S2"],description:"The negation pseudo-class, :not(X), is a functional notation taking a simple selector (excluding the negation pseudo-class itself) as an argument. It represents an element that is not represented by its argument."},{name:":nth-child()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings before it in the document tree, for any positive integer or zero value of n, and has a parent element."},{name:":nth-last-child()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings after it in the document tree, for any positive integer or zero value of n, and has a parent element."},{name:":nth-last-of-type()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings with the same expanded element name after it in the document tree, for any zero or positive integer value of n, and has a parent element."},{name:":nth-of-type()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings with the same expanded element name before it in the document tree, for any zero or positive integer value of n, and has a parent element."},{name:":only-child",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:only-child"}],description:"Represents an element that has a parent element and whose parent element has no other element children. Same as :first-child:last-child or :nth-child(1):nth-last-child(1), but with a lower specificity."},{name:":only-of-type",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:only-of-type"}],description:"Matches every element that is the only child of its type, of its parent. Same as :first-of-type:last-of-type or :nth-of-type(1):nth-last-of-type(1), but with a lower specificity."},{name:":optional",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:optional"}],description:"A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."},{name:":out-of-range",browsers:["E13","FF29","S5.1","C10","O11"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:out-of-range"}],description:"Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."},{name:":past",browsers:["S7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:past"}],description:"Represents any element that is defined to occur entirely prior to a :current element."},{name:":read-only",browsers:["E13","FF78","S4","C1","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:read-only"}],description:"An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."},{name:":read-write",browsers:["E13","FF78","S4","C1","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:read-write"}],description:"An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."},{name:":required",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:required"}],description:"A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."},{name:":right",browsers:["E12","S5.1","C6","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:right"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":root",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:root"}],description:"Represents an element that is the root of the document. In HTML 4, this is always the HTML element."},{name:":scope",browsers:["E79","FF32","S7","C27","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:scope"}],description:"Represents any element that is in the contextual reference element set."},{name:":single-button",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed separately at either end of the scrollbar."},{name:":start",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed before the thumb."},{name:":target",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:target"}],description:"Some URIs refer to a location within a resource. This kind of URI ends with a 'number sign' (#) followed by an anchor identifier (called the fragment identifier)."},{name:":valid",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:valid"}],description:"An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."},{name:":vertical",browsers:["C","S5"],description:"Non-standard. Applies to any scrollbar pieces that have a vertical orientation."},{name:":visited",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:visited"}],description:"Applies once the link has been visited by the user."},{name:":-webkit-any()",browsers:["C","S5"],description:"Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."},{name:":-webkit-full-screen",browsers:["C","S6"],description:"Matches any element that has its fullscreen flag set. Standardized as :fullscreen."},{name:":window-inactive",browsers:["C","S3"],description:"Non-standard. Applies to all scrollbar pieces. Indicates whether or not the window containing the scrollbar is currently active."},{name:":current",status:"experimental",description:"The :current CSS pseudo-class selector is a time-dimensional pseudo-class that represents the element, or an ancestor of the element, that is currently being displayed"},{name:":blank",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:blank"}],description:"The :blank CSS pseudo-class selects empty user input elements (eg. <input> or <textarea>)."},{name:":defined",status:"experimental",browsers:["E79","FF63","S10","C54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:defined"}],description:"The :defined CSS pseudo-class represents any element that has been defined. This includes any standard element built in to the browser, and custom elements that have been successfully defined (i.e. with the CustomElementRegistry.define() method)."},{name:":dir",browsers:["FF49"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:dir"}],description:"The :dir() CSS pseudo-class matches elements based on the directionality of the text contained in them."},{name:":focus-visible",browsers:["E86","FF85","S15.4","C86","O72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus-visible"}],description:"The :focus-visible pseudo-class applies while an element matches the :focus pseudo-class and the UA determines via heuristics that the focus should be made evident on the element."},{name:":focus-within",browsers:["E79","FF52","S10.1","C60","O47"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus-within"}],description:"The :focus-within pseudo-class applies to any element for which the :focus pseudo class applies as well as to an element whose descendant in the flat tree (including non-element nodes, such as text nodes) matches the conditions for matching :focus."},{name:":has",status:"experimental",browsers:["S15.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:has"}],description:":The :has() CSS pseudo-class represents an element if any of the selectors passed as parameters (relative to the :scope of the given element), match at least one element."},{name:":is",status:"experimental",browsers:["E88","FF78","S14","C88","O74"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:is"}],description:"The :is() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list. This is useful for writing large selectors in a more compact form."},{name:":local-link",status:"experimental",description:"The :local-link CSS pseudo-class represents an link to the same document"},{name:":nth-col",status:"experimental",description:"The :nth-col() CSS pseudo-class is designed for tables and grids. It accepts the An+B notation such as used with the :nth-child selector, using this to target every nth column. "},{name:":nth-last-col",status:"experimental",description:"The :nth-last-col() CSS pseudo-class is designed for tables and grids. It accepts the An+B notation such as used with the :nth-child selector, using this to target every nth column before it, therefore counting back from the end of the set of columns."},{name:":paused",status:"experimental",description:"The :paused CSS pseudo-class selector is a resource state pseudo-class that will match an audio, video, or similar resource that is capable of being \u201cplayed\u201d or \u201cpaused\u201d, when that element is \u201cpaused\u201d."},{name:":placeholder-shown",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:placeholder-shown"}],description:"The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text."},{name:":playing",status:"experimental",description:"The :playing CSS pseudo-class selector is a resource state pseudo-class that will match an audio, video, or similar resource that is capable of being \u201cplayed\u201d or \u201cpaused\u201d, when that element is \u201cplaying\u201d. "},{name:":target-within",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:target-within"}],description:"The :target-within CSS pseudo-class represents an element that is a target element or contains an element that is a target. A target element is a unique element with an id matching the URL's fragment."},{name:":user-invalid",status:"experimental",browsers:["FF88"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:user-invalid"}],description:"The :user-invalid CSS pseudo-class represents any validated form element whose value isn't valid based on their validation constraints, after the user has interacted with it."},{name:":user-valid",status:"experimental",browsers:["FF88"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:user-valid"}],description:"The :user-valid CSS pseudo-class represents any validated form element whose value validates correctly based on its validation constraints. However, unlike :valid it only matches once the user has interacted with it."},{name:":where",status:"experimental",browsers:["E88","FF78","S14","C88","O74"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:where"}],description:"The :where() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list."},{name:":picture-in-picture",status:"experimental",description:"The :picture-in-picture CSS pseudo-class matches the element which is currently in picture-in-picture mode."}],pseudoElements:[{name:"::after",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::after"}],description:"Represents a styleable child pseudo-element immediately after the originating element\u2019s actual content."},{name:"::backdrop",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::backdrop"}],description:"Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."},{name:"::before",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::before"}],description:"Represents a styleable child pseudo-element immediately before the originating element\u2019s actual content."},{name:"::content",browsers:["C35","O22"],description:"Deprecated. Matches the distribution list itself, on elements that have one. Use ::slotted for forward compatibility."},{name:"::cue",browsers:["E79","FF55","S7","C26","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::cue"}]},{name:"::cue()",browsers:["C","O16","S6"]},{name:"::cue-region",browsers:["C","O16","S6"]},{name:"::cue-region()",browsers:["C","O16","S6"]},{name:"::first-letter",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::first-letter"}],description:"Represents the first letter of an element, if it is not preceded by any other content (such as images or inline tables) on its line."},{name:"::first-line",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::first-line"}],description:"Describes the contents of the first formatted line of its originating element."},{name:"::-moz-focus-inner",browsers:["FF4"]},{name:"::-moz-focus-outer",browsers:["FF4"]},{name:"::-moz-list-bullet",browsers:["FF1"],description:"Used to style the bullet of a list element. Similar to the standardized ::marker."},{name:"::-moz-list-number",browsers:["FF1"],description:"Used to style the numbers of a list element. Similar to the standardized ::marker."},{name:"::-moz-placeholder",browsers:["FF19"],description:"Represents placeholder text in an input field"},{name:"::-moz-progress-bar",browsers:["FF9"],description:"Represents the bar portion of a progress bar."},{name:"::-moz-selection",browsers:["FF1"],description:"Represents the portion of a document that has been highlighted by the user."},{name:"::-ms-backdrop",browsers:["IE11"],description:"Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."},{name:"::-ms-browse",browsers:["E","IE10"],description:"Represents the browse button of an input type=file control."},{name:"::-ms-check",browsers:["E","IE10"],description:"Represents the check of a checkbox or radio button input control."},{name:"::-ms-clear",browsers:["E","IE10"],description:"Represents the clear button of a text input control"},{name:"::-ms-expand",browsers:["E","IE10"],description:"Represents the drop-down button of a select control."},{name:"::-ms-fill",browsers:["E","IE10"],description:"Represents the bar portion of a progress bar."},{name:"::-ms-fill-lower",browsers:["E","IE10"],description:"Represents the portion of the slider track from its smallest value up to the value currently selected by the thumb. In a left-to-right layout, this is the portion of the slider track to the left of the thumb."},{name:"::-ms-fill-upper",browsers:["E","IE10"],description:"Represents the portion of the slider track from the value currently selected by the thumb up to the slider's largest value. In a left-to-right layout, this is the portion of the slider track to the right of the thumb."},{name:"::-ms-reveal",browsers:["E","IE10"],description:"Represents the password reveal button of an input type=password control."},{name:"::-ms-thumb",browsers:["E","IE10"],description:"Represents the portion of range input control (also known as a slider control) that the user drags."},{name:"::-ms-ticks-after",browsers:["E","IE10"],description:"Represents the tick marks of a slider that begin just after the thumb and continue up to the slider's largest value. In a left-to-right layout, these are the ticks to the right of the thumb."},{name:"::-ms-ticks-before",browsers:["E","IE10"],description:"Represents the tick marks of a slider that represent its smallest values up to the value currently selected by the thumb. In a left-to-right layout, these are the ticks to the left of the thumb."},{name:"::-ms-tooltip",browsers:["E","IE10"],description:"Represents the tooltip of a slider (input type=range)."},{name:"::-ms-track",browsers:["E","IE10"],description:"Represents the track of a slider."},{name:"::-ms-value",browsers:["E","IE10"],description:"Represents the content of a text or password input control, or a select control."},{name:"::selection",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::selection"}],description:"Represents the portion of a document that has been highlighted by the user."},{name:"::shadow",browsers:["C35","O22"],description:"Matches the shadow root if an element has a shadow tree."},{name:"::-webkit-file-upload-button",browsers:["C","O","S6"]},{name:"::-webkit-inner-spin-button",browsers:["E79","S5","C6","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-inner-spin-button"}]},{name:"::-webkit-input-placeholder",browsers:["C","S4"]},{name:"::-webkit-keygen-select",browsers:["C","O","S6"]},{name:"::-webkit-meter-bar",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-bar"}]},{name:"::-webkit-meter-even-less-good-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-even-less-good-value"}]},{name:"::-webkit-meter-optimum-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-optimum-value"}]},{name:"::-webkit-meter-suboptimum-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-suboptimum-value"}]},{name:"::-webkit-outer-spin-button",browsers:["S5","C6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-outer-spin-button"}]},{name:"::-webkit-progress-bar",browsers:["E79","S7","C25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-bar"}]},{name:"::-webkit-progress-inner-element",browsers:["E79","S7","C23","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-inner-element"}]},{name:"::-webkit-progress-value",browsers:["E79","S7","C25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-value"}]},{name:"::-webkit-resizer",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-button",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-corner",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-thumb",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-track",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-track-piece",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-search-cancel-button",browsers:["E79","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-cancel-button"}]},{name:"::-webkit-search-decoration",browsers:["C","S4"]},{name:"::-webkit-search-results-button",browsers:["E79","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-results-button"}]},{name:"::-webkit-search-results-decoration",browsers:["C","S4"]},{name:"::-webkit-slider-runnable-track",browsers:["C","O","S6"]},{name:"::-webkit-slider-thumb",browsers:["C","O","S6"]},{name:"::-webkit-textfield-decoration-container",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-arrow",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-arrow-clipper",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-heading",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-message",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-text-block",browsers:["C","O","S6"]},{name:"::target-text",status:"experimental",browsers:["E89","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::target-text"}],description:"The ::target-text CSS pseudo-element represents the text that has been scrolled to if the browser supports scroll-to-text fragments. It allows authors to choose how to highlight that section of text."},{name:"::-moz-range-progress",status:"nonstandard",browsers:["FF22"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-progress"}],description:'The ::-moz-range-progress CSS pseudo-element is a Mozilla extension that represents the lower portion of the track (i.e., groove) in which the indicator slides in an <input> of type="range". This portion corresponds to values lower than the value currently selected by the thumb (i.e., virtual knob).'},{name:"::-moz-range-thumb",status:"nonstandard",browsers:["FF21"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-thumb"}],description:'The ::-moz-range-thumb CSS pseudo-element is a Mozilla extension that represents the thumb (i.e., virtual knob) of an <input> of type="range". The user can move the thumb along the input\'s track to alter its numerical value.'},{name:"::-moz-range-track",status:"nonstandard",browsers:["FF21"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-track"}],description:'The ::-moz-range-track CSS pseudo-element is a Mozilla extension that represents the track (i.e., groove) in which the indicator slides in an <input> of type="range".'},{name:"::-webkit-progress-inner-value",status:"nonstandard",description:"The ::-webkit-progress-value CSS pseudo-element represents the filled-in portion of the bar of a <progress> element. It is a child of the ::-webkit-progress-bar pseudo-element.\n\nIn order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element."},{name:"::grammar-error",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::grammar-error"}],description:"The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect."},{name:"::marker",browsers:["E86","FF68","S11.1","C86","O72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::marker"}],description:"The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements."},{name:"::part",status:"experimental",browsers:["E79","FF72","S13.1","C73","O60"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::part"}],description:"The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute."},{name:"::placeholder",browsers:["E79","FF51","S10.1","C57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::placeholder"}],description:"The ::placeholder CSS pseudo-element represents the placeholder text of a form element."},{name:"::slotted",browsers:["E79","FF63","S10","C50","O37"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::slotted"}],description:"The :slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template."},{name:"::spelling-error",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::spelling-error"}],description:"The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled."}]},nu=function(){function e(e){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(e)}return e.prototype.provideProperties=function(){return this._properties},e.prototype.provideAtDirectives=function(){return this._atDirectives},e.prototype.providePseudoClasses=function(){return this._pseudoClasses},e.prototype.providePseudoElements=function(){return this._pseudoElements},e.prototype.addData=function(e){if(Array.isArray(e.properties))for(var t=0,n=e.properties;t<n.length;t++){var i=n[t];"string"===typeof i.name&&this._properties.push(i)}if(Array.isArray(e.atDirectives))for(var r=0,o=e.atDirectives;r<o.length;r++){iu(i=o[r])&&this._atDirectives.push(i)}if(Array.isArray(e.pseudoClasses))for(var s=0,a=e.pseudoClasses;s<a.length;s++){ru(i=a[s])&&this._pseudoClasses.push(i)}if(Array.isArray(e.pseudoElements))for(var l=0,c=e.pseudoElements;l<c.length;l++){ou(i=c[l])&&this._pseudoElements.push(i)}},e}();function iu(e){return"string"===typeof e.name}function ru(e){return"string"===typeof e.name}function ou(e){return"string"===typeof e.name}var su=function(){function e(e){this.dataProviders=[],this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.setDataProviders(!1!==(null===e||void 0===e?void 0:e.useDefaultDataProvider),(null===e||void 0===e?void 0:e.customDataProviders)||[])}return e.prototype.setDataProviders=function(e,t){var n;this.dataProviders=[],e&&this.dataProviders.push(new nu(tu)),(n=this.dataProviders).push.apply(n,t),this.collectData()},e.prototype.collectData=function(){var e=this;this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach((function(t){t.provideProperties().forEach((function(t){e._propertySet[t.name]||(e._propertySet[t.name]=t)})),t.provideAtDirectives().forEach((function(t){e._atDirectiveSet[t.name]||(e._atDirectiveSet[t.name]=t)})),t.providePseudoClasses().forEach((function(t){e._pseudoClassSet[t.name]||(e._pseudoClassSet[t.name]=t)})),t.providePseudoElements().forEach((function(t){e._pseudoElementSet[t.name]||(e._pseudoElementSet[t.name]=t)}))})),this._properties=yh(this._propertySet),this._atDirectives=yh(this._atDirectiveSet),this._pseudoClasses=yh(this._pseudoClassSet),this._pseudoElements=yh(this._pseudoElementSet)},e.prototype.getProperty=function(e){return this._propertySet[e]},e.prototype.getAtDirective=function(e){return this._atDirectiveSet[e]},e.prototype.getPseudoClass=function(e){return this._pseudoClassSet[e]},e.prototype.getPseudoElement=function(e){return this._pseudoElementSet[e]},e.prototype.getProperties=function(){return this._properties},e.prototype.getAtDirectives=function(){return this._atDirectives},e.prototype.getPseudoClasses=function(){return this._pseudoClasses},e.prototype.getPseudoElements=function(){return this._pseudoElements},e.prototype.isKnownProperty=function(e){return e.toLowerCase()in this._propertySet},e.prototype.isStandardProperty=function(e){return this.isKnownProperty(e)&&(!this._propertySet[e.toLowerCase()].status||"standard"===this._propertySet[e.toLowerCase()].status)},e}();function au(e,t,n){return t.map((function(t){for(var i=function(t){var i=e.offsetAt(t),r=n.findChildAtOffset(i,!0);if(!r)return[];var o=[];for(;r;)r.parent&&r.offset===r.parent.offset&&r.end===r.parent.end||(r.type===rs.Declarations&&i>r.offset&&i<r.end&&o.push([r.offset+1,r.end-1]),o.push([r.offset,r.end])),r=r.parent;return o}(t),r=void 0,o=i.length-1;o>=0;o--)r=Cc.create(Pa.create(e.positionAt(i[o][0]),e.positionAt(i[o][1])),r);return r||(r=Cc.create(Pa.create(t,t))),r}))}var lu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),cu=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(gu){o(gu)}}function a(e){try{l(i.throw(e))}catch(gu){o(gu)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},hu=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(gu){o=[6,gu],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},du=function(e){function t(t){return e.call(this,t,!0)||this}return lu(t,e),t.prototype.isRawStringDocumentLinkNode=function(t){return e.prototype.isRawStringDocumentLinkNode.call(this,t)||t.type===rs.Use||t.type===rs.Forward},t.prototype.resolveRelativeReference=function(t,n,i,r){return cu(this,void 0,void 0,(function(){var o,s,a,l;return hu(this,(function(c){switch(c.label){case 0:return es(t,"sass:")?[2,void 0]:[4,e.prototype.resolveRelativeReference.call(this,t,n,i,r)];case 1:if(o=c.sent(),!(this.fileSystemProvider&&o&&r))return[3,8];s=Ah.parse(o),c.label=2;case 2:if(c.trys.push([2,7,,8]),a=function(e){if(""!==e.path&&!e.path.endsWith(".scss")&&!e.path.endsWith(".css")){if(e.path.endsWith("/"))return[e.with({path:e.path+"index.scss"}).toString(),e.with({path:e.path+"_index.scss"}).toString()];var t=e.path.split("/"),n=t[t.length-1],i=e.path.slice(0,-n.length);if(n.startsWith("_"))return e.path.endsWith(".scss")?void 0:[e.with({path:e.path+".scss"}).toString()];var r=n+".scss",o=function(t){return e.with({path:i+t}).toString()};return[o(r),o("_"+r),o(r.slice(0,-5)+"/index.scss"),o(r.slice(0,-5)+"/_index.scss"),o(r.slice(0,-5)+".css")]}}(s),!a)return[3,6];l=0,c.label=3;case 3:return l<a.length?[4,this.fileExists(a[l])]:[3,6];case 4:if(c.sent())return[2,a[l]];c.label=5;case 5:return l++,[3,3];case 6:return[3,8];case 7:return c.sent(),[3,8];case 8:return[2,o]}}))}))},t}(Cd);function pu(e){return new nu(e)}function uu(e,t,n,i,r,o,s){return{configure:function(e){o.configure(e),t.configure(null===e||void 0===e?void 0:e.completion),n.configure(null===e||void 0===e?void 0:e.hover)},setDataProviders:s.setDataProviders.bind(s),doValidation:o.doValidation.bind(o),parseStylesheet:e.parseStylesheet.bind(e),doComplete:t.doComplete.bind(t),doComplete2:t.doComplete2.bind(t),setCompletionParticipants:t.setCompletionParticipants.bind(t),doHover:n.doHover.bind(n),format:Gp,findDefinition:i.findDefinition.bind(i),findReferences:i.findReferences.bind(i),findDocumentHighlights:i.findDocumentHighlights.bind(i),findDocumentLinks:i.findDocumentLinks.bind(i),findDocumentLinks2:i.findDocumentLinks2.bind(i),findDocumentSymbols:i.findDocumentSymbols.bind(i),doCodeActions:r.doCodeActions.bind(r),doCodeActions2:r.doCodeActions2.bind(r),findDocumentColors:i.findDocumentColors.bind(i),getColorPresentations:i.getColorPresentations.bind(i),doRename:i.doRename.bind(i),getFoldingRanges:jp,getSelectionRanges:au}}var mu={};var fu=class{constructor(e,t){this._ctx=e,this._languageSettings=t.options,this._languageId=t.languageId;const n=t.options.data,i=n?.useDefaultDataProvider,r=[];if(n?.dataProviders)for(const s in n.dataProviders)r.push(pu(n.dataProviders[s]));const o={customDataProviders:r,useDefaultDataProvider:i};switch(this._languageId){case"css":this._languageService=function(e){void 0===e&&(e=mu);var t=new su(e);return uu(new Sh,new Yh(null,e,t),new bd(e&&e.clientCapabilities,t),new Cd(e&&e.fileSystemProvider,!1),new Pd(t),new Yd(t),t)}(o);break;case"less":this._languageService=function(e){void 0===e&&(e=mu);var t=new su(e);return uu(new Vp,new Bp(e,t),new bd(e&&e.clientCapabilities,t),new Cd(e&&e.fileSystemProvider,!0),new Pd(t),new Yd(t),t)}(o);break;case"scss":this._languageService=function(e){void 0===e&&(e=mu);var t=new su(e);return uu(new _p,new Rp(e,t),new bd(e&&e.clientCapabilities,t),new du(e&&e.fileSystemProvider),new Pd(t),new Yd(t),t)}(o);break;default:throw new Error("Invalid language id: "+this._languageId)}this._languageService.configure(this._languageSettings)}async doValidation(e){const t=this._getTextDocument(e);if(t){const e=this._languageService.parseStylesheet(t),n=this._languageService.doValidation(t,e);return Promise.resolve(n)}return Promise.resolve([])}async doComplete(e,t){const n=this._getTextDocument(e);if(!n)return null;const i=this._languageService.parseStylesheet(n),r=this._languageService.doComplete(n,t,i);return Promise.resolve(r)}async doHover(e,t){const n=this._getTextDocument(e);if(!n)return null;const i=this._languageService.parseStylesheet(n),r=this._languageService.doHover(n,t,i);return Promise.resolve(r)}async findDefinition(e,t){const n=this._getTextDocument(e);if(!n)return null;const i=this._languageService.parseStylesheet(n),r=this._languageService.findDefinition(n,t,i);return Promise.resolve(r)}async findReferences(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.parseStylesheet(n),r=this._languageService.findReferences(n,t,i);return Promise.resolve(r)}async findDocumentHighlights(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.parseStylesheet(n),r=this._languageService.findDocumentHighlights(n,t,i);return Promise.resolve(r)}async findDocumentSymbols(e){const t=this._getTextDocument(e);if(!t)return[];const n=this._languageService.parseStylesheet(t),i=this._languageService.findDocumentSymbols(t,n);return Promise.resolve(i)}async doCodeActions(e,t,n){const i=this._getTextDocument(e);if(!i)return[];const r=this._languageService.parseStylesheet(i),o=this._languageService.doCodeActions(i,t,n,r);return Promise.resolve(o)}async findDocumentColors(e){const t=this._getTextDocument(e);if(!t)return[];const n=this._languageService.parseStylesheet(t),i=this._languageService.findDocumentColors(t,n);return Promise.resolve(i)}async getColorPresentations(e,t,n){const i=this._getTextDocument(e);if(!i)return[];const r=this._languageService.parseStylesheet(i),o=this._languageService.getColorPresentations(i,r,t,n);return Promise.resolve(o)}async getFoldingRanges(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.getFoldingRanges(n,t);return Promise.resolve(i)}async getSelectionRanges(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.parseStylesheet(n),r=this._languageService.getSelectionRanges(n,t,i);return Promise.resolve(r)}async doRename(e,t,n){const i=this._getTextDocument(e);if(!i)return null;const r=this._languageService.parseStylesheet(i),o=this._languageService.doRename(i,t,n,r);return Promise.resolve(o)}async format(e,t,n){const i=this._getTextDocument(e);if(!i)return[];const r={...this._languageSettings.format,...n},o=this._languageService.format(i,t,r);return Promise.resolve(o)}_getTextDocument(e){const t=this._ctx.getMirrorModels();for(const n of t)if(n.uri.toString()===e)return Dc.create(e,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{io(((e,t)=>new fu(e,t)))}})();
\ No newline at end of file +(()=>{var e={9861:(e,t,n)=>{"use strict";function i(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function*r(e,t){let n,i;for(const r of e)void 0!==i&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function s(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function o(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function a(e,t=e=>e){const n=new Set;return e.filter((e=>{const i=t(e);return!n.has(i)&&(n.add(i),!0)}))}function l(e,t){return e.length>0?e[0]:t}function c(e,t,n){const i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function h(e,t){for(const n of t)e.push(n)}var d;function u(e,t){return(n,i)=>t(e(n),e(i))}n.d(t,{E4:()=>h,Fy:()=>l,Hw:()=>m,U9:()=>p,VE:()=>u,aI:()=>i,c1:()=>g,dM:()=>a,j3:()=>f,kj:()=>o,n:()=>r,nK:()=>c,pN:()=>s}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(d||(d={}));const p=(e,t)=>e-t;function m(e){return(t,n)=>-e(t,n)}class f{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class g{static{this.empty=new g((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new g((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new g((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((i=>((n||d.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0))),t}}},6041:(e,t,n)=>{"use strict";function i(e,t){const n=function(e,t,n=e.length-1){for(let i=n;i>=0;i--){if(t(e[i]))return i}return-1}(e,t);if(-1!==n)return e[n]}function r(e,t){const n=s(e,t);return-1===n?void 0:e[n]}function s(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?r=n+1:s=n}return r-1}function o(e,t){const n=a(e,t);return n===e.length?void 0:e[n]}function a(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?s=n:r=n+1}return r}n.d(t,{Uk:()=>i,XP:()=>o,hw:()=>a,iM:()=>s,lx:()=>r,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>o,Xo:()=>a,ok:()=>r,xb:()=>s});var i=n(4383);function r(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function o(e){e()||(e(),(0,i.dz)(new i.D7("Assertion Failed")))}function a(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>c,Qg:()=>a,$6:()=>h});n(8447);var i=n(4383),r=n(1234),s=n(1484),o=n(8067);Symbol("MicrotaskDelay");function a(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new i.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const r=n.setInterval((()=>{e()}),t);this.disposable=(0,s.s)((()=>{n.clearInterval(r),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class c{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let h,d;d="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,o._p)((()=>{if(n)return;const e=Date.now()+15,i={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(i))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const i=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let r=!1;return{dispose(){r||(r=!0,e.cancelIdleCallback(i))}}},h=e=>d(globalThis,e);var u;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(i){n(i)}}))}}(u||(u={}));class p{static fromArray(e){return new p((t=>{t.emitMany(e)}))}static fromPromise(e){return new p((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new p((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new p((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=p.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new p((async n=>{for await(const i of e)n.emitOne(t(i))}))}map(e){return p.map(this,e)}static filter(e,t){return new p((async n=>{for await(const i of e)t(i)&&n.emitOne(i)}))}filter(e){return p.filter(this,e)}static coalesce(e){return p.filter(e,(e=>!!e))}coalesce(){return p.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return p.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,Gs:()=>u,MB:()=>o,Sw:()=>h,bb:()=>c,gN:()=>l,pJ:()=>d});var i=n(1090);const r="undefined"!==typeof Buffer;new i.d((()=>new Uint8Array(256)));let s;class o{static wrap(e){return r&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return r?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function c(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function d(e,t){return e[t]}function u(e,t,n){e[n]=t}},1788:(e,t,n)=>{"use strict";function i(e){return e}n.d(t,{VV:()=>s,o5:()=>r});class r{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>a});var i=n(1234);const r=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(s||(s={}));class o{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?r:(this._emitter||(this._emitter=new i.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var i=n(631);const r=Object.create(null);function s(e,t){if((0,i.Kg)(t)){const n=r[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return r[e]=t,{id:e}}const o={...{add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),gitPullRequestLabel:s("git-pull-request-label",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),terminalDecorationSuccess:s("terminal-decoration-success",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circleOutline:s("circle-outline",60092),circle:s("circle",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:s("terminal-decoration-incomplete",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),diffSidebyside:s("diff-sidebyside",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),compareChanges:s("compare-changes",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),terminalDecorationMark:s("terminal-decoration-mark",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),debugAlt:s("debug-alt",60305),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),issueClosed:s("issue-closed",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),export:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnknown:s("workspace-unknown",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracket:s("bracket",60175),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newline:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),terminalDecorationError:s("terminal-decoration-error",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),blank:s("blank",60419),heartFilled:s("heart-filled",60420),map:s("map",60421),mapHorizontal:s("map-horizontal",60421),foldHorizontal:s("fold-horizontal",60421),mapFilled:s("map-filled",60422),mapHorizontalFilled:s("map-horizontal-filled",60422),foldHorizontalFilled:s("fold-horizontal-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsdownFilled:s("thumbsdown-filled",60435),thumbsupFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),repoFetch:s("repo-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),share:s("share",60453),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),vscode:s("vscode",60457),vscodeInsiders:s("vscode-insiders",60458),codeOss:s("code-oss",60459),runCoverage:s("run-coverage",60460),runAllCoverage:s("run-all-coverage",60461),coverage:s("coverage",60462),githubProject:s("github-project",60463),mapVertical:s("map-vertical",60464),foldVertical:s("fold-vertical",60464),mapVerticalFilled:s("map-vertical-filled",60465),foldVerticalFilled:s("fold-vertical-filled",60465),goToSearch:s("go-to-search",60466),percentage:s("percentage",60467),sortPercentage:s("sort-percentage",60467),attach:s("attach",60468)},...{dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left"),dropDownButton:s("drop-down-button",60084),symbolCustomColor:s("symbol-customcolor",60252),exportIcon:s("export",60332),workspaceUnspecified:s("workspace-unspecified",60355),newLine:s("newline",60394),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),gitFetch:s("git-fetch",60445),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),debugBreakpointPending:s("debug-breakpoint-pending",60377)}}},7661:(e,t,n)=>{"use strict";function i(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>a,bU:()=>r,hB:()=>s});class r{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class s{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,o=Math.max(t,n,i),a=Math.min(t,n,i);let l=0,c=0;const h=(a+o)/2,d=o-a;if(d>0){switch(c=Math.min(h<=.5?d/(2*h):d/(2-2*h),1),o){case t:l=(n-i)/d+(n<i?6:0);break;case n:l=(i-t)/d+2;break;case i:l=(t-n)/d+4}l*=60,l=Math.round(l)}return new s(l,c,h,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:o}=e;let a,l,c;if(0===n)a=l=c=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;a=s._hue2rgb(r,e,t+1/3),l=s._hue2rgb(r,e,t),c=s._hue2rgb(r,e,t-1/3)}return new r(Math.round(255*a),Math.round(255*l),Math.round(255*c),o)}}class o{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=r-Math.min(t,n,i),a=0===r?0:s/r;let l;return l=0===s?0:r===t?((n-i)/s%6+6)%6:r===n?(i-t)/s+2:(t-n)/s+4,new o(Math.round(60*l),a,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:s}=e,o=i*n,a=o*(1-Math.abs(t/60%2-1)),l=i-o;let[c,h,d]=[0,0,0];return t<60?(c=o,h=a):t<120?(c=a,h=o):t<180?(h=o,d=a):t<240?(h=a,d=o):t<300?(c=a,d=o):t<=360&&(c=o,d=a),c=Math.round(255*(c+l)),h=Math.round(255*(h+l)),d=Math.round(255*(d+l)),new r(c,h,d,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&r.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return i(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(t,n,i,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-n),e.rgba.b-s*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}static{this.white=new a(new r(255,255,255,1))}static{this.black=new a(new r(0,0,0,1))}static{this.red=new a(new r(255,0,0,1))}static{this.blue=new a(new r(0,0,255,1))}static{this.green=new a(new r(0,255,0,1))}static{this.cyan=new a(new r(0,255,255,1))}static{this.lightgrey=new a(new r(211,211,211,1))}static{this.transparent=new a(new r(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function i(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new r(n,s,o,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),a=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new r(n,s,o,a/255))}if(4===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3));return new e(new r(16*n+n,16*s+s,16*o+o))}if(5===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3)),a=i(t.charCodeAt(4));return new e(new r(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>p,EM:()=>d,Qg:()=>c,cU:()=>s,dz:()=>r,iH:()=>h});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(u.isErrorNoTelemetry(e))throw new u(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){a(e)||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:u.isErrorNoTelemetry(e)}}return e}const o="Canceled";function a(e){return e instanceof l||e instanceof Error&&e.name===o&&e.message===o}class l extends Error{constructor(){super(o),this.name=this.message}}function c(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function h(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class d extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class u extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof u)return e;const t=new u;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class p extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,p.prototype)}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>o,vl:()=>m});var i=n(4383),r=n(1484),s=(n(8925),n(8381));var o;!function(e){function t(e){false}function n(e){return(t,n=null,i)=>{let r,s=!1;return r=e((e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)}),null,i),s&&r.dispose(),r}}function i(e,t,n){return o(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)),n)}function s(e,t,n){return o(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)),n)}function o(e,n){let i;const r={onWillAddFirstListener(){i=e(s.fire,s)},onDidRemoveLastListener(){i?.dispose()}};n||t();const s=new m(r);return n?.add(s),s.event}function a(e,n,i=100,r=!1,s=!1,o,a){let l,c,h,d,u=0;const p={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{u++,c=n(c,e),r&&!h&&(f.fire(c),c=void 0),d=()=>{const e=c;c=void 0,h=void 0,(!r||u>1)&&f.fire(e),u=0},"number"===typeof i?(clearTimeout(h),h=setTimeout(d,i)):void 0===h&&(h=0,queueMicrotask(d))}))},onWillRemoveListener(){s&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,l.dispose()}};a||t();const f=new m(p);return a?.add(f),f.event}e.None=()=>r.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=i,e.forEach=function(e,t,n){return o(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)),n)},e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,r.qE)(...e.map((e=>e((e=>t.call(n,e)))))),i)},e.reduce=function(e,t,n,r){let s=n;return i(e,(e=>(s=t(s,e),s)),r)},e.debounce=a,e.accumulate=function(t,n=0,i){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,i)},e.latch=function(e,t=(e,t)=>e===t,n){let i,r=!0;return s(e,(e=>{const n=r||!t(e,i);return r=!1,i=e,n}),n)},e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,(e=>!n(e)),i)]},e.buffer=function(e,t=!1,n=[],i){let r=n.slice(),s=e((e=>{r?r.push(e):a.fire(e)}));i&&i.add(s);const o=()=>{r?.forEach((e=>a.fire(e))),r=null},a=new m({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),i&&i.add(s))},onDidAddFirstListener(){r&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return i&&i.add(a),a.event},e.chain=function(e,t){return(n,i,r)=>{const s=t(new c);return e((function(e){const t=s.evaluate(e);t!==l&&n.call(i,t)}),void 0,r)}};const l=Symbol("HaltChainable");class c{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:l)),this}reduce(e,t){let n=t;return this.steps.push((t=>(n=e(n,t),n))),this}latch(e=(e,t)=>e===t){let t,n=!0;return this.steps.push((i=>{const r=n||!e(i,t);return n=!1,t=i,r?i:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new m({onWillAddFirstListener:()=>e.on(t,i),onDidRemoveLastListener:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new m({onWillAddFirstListener:()=>e.addEventListener(t,i),onDidRemoveLastListener:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new m;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class h{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new m(i),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,i)=>{let s=0,o=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return i instanceof r.Cm?i.add(l):Array.isArray(i)&&i.push(l),l}}}(o||(o={}));class a{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${a._idPool++}`,a.all.add(this)}start(e){this._stopWatch=new s.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,i]=this.getMostFrequentStack(),r=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${i}):`;console.warn(r),console.warn(e);const s=new h(r,e);this._errorHandler(s)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,i]of this._stacks)(!e||t<i)&&(e=[n,i],t=i);return e}}class c{static create(){const e=new Error;return new c(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class h extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class d extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class u{constructor(e){this.value=e}}let p;class m{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??i.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new a(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new d(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||i.dz)(n),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const s=new u(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(s.stack=c.create(),o=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof u?(this._deliveryQueue??=new f,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,r.s)((()=>{p?.unregister(a),o?.(),this._removeListener(s)}));if(n instanceof r.Cm?n.add(a):Array.isArray(n)&&n.push(a),p){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);p.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const i=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:i&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||i.dz;if(n)try{e.value(t)}catch(r){n(r)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof u)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}class f{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>o,Zn:()=>l,_1:()=>c,kb:()=>a});var i=n(8821),r=(n(8067),n(1508));function s(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,i.SA.sep)}function a(e){return-1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=i.SA.sep){if(!e)return"";const n=e.length,r=e.charCodeAt(0);if(s(r)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let i=3;const r=i;for(;i<n&&!s(e.charCodeAt(i));i++);if(r!==i&&!s(e.charCodeAt(i+1)))for(i+=1;i<n;i++)if(s(e.charCodeAt(i)))return e.slice(0,i+1).replace(/[\\/]/g,t)}return t}if(h(r)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<n;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1);return""}function c(e,t,n,s=i.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,r.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function h(e){return e>=65&&e<=90||e>=97&&e<=122}},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>T,qg:()=>N});var i=n(1940),r=n(9326),s=n(4320),o=n(8821),a=n(8067),l=n(1508);const c="**",h="/",d="[/\\\\]",u="[^/\\\\]",p=/\//g;function m(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${d}|${u}+${d}${t?`|${d}${u}+`:""})*?`}}function f(e,t){if(!e)return[];const n=[];let i=!1,r=!1,s="";for(const o of e){switch(o){case t:if(!i&&!r){n.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1}s+=o}return s&&n.push(s),n}function g(e){if(!e)return"";let t="";const n=f(e,h);if(n.every((e=>e===c)))t=".*";else{let e=!1;n.forEach(((i,r)=>{if(i===c){if(e)return;t+=m(2,r===n.length-1)}else{let e=!1,s="",o=!1,a="";for(const n of i)if("}"!==n&&e)s+=n;else if(!o||"]"===n&&a)switch(n){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const n=`(?:${f(s,",").map((e=>g(e))).join("|")})`;t+=n,e=!1,s="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=u;continue;case"*":t+=m(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||a?n===h?"":(0,l.bm)(n):"^",a+=e}r<n.length-1&&(n[r+1]!==c||r+2<n.length)&&(t+=d)}e=i===c}))}return t}const b=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,y=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,w=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,_=/^\*\*((\/[\w\.-]+)+)\/?$/,k=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,C=new s.qK(1e4),S=function(){return!1},x=function(){return null};function E(e,t){if(!e)return x;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const i=`${n}_${!!t.trimForExclusions}`;let r,s=C.get(i);return s||(s=b.test(n)?function(e,t){return function(n,i){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(r=v.exec(L(n,t)))?function(e,t){const n=`/${e}`,i=`\\${e}`,r=function(r,s){return"string"!==typeof r?null:s?s===e?t:null:r===e||r.endsWith(n)||r.endsWith(i)?t:null},s=[e];return r.basenames=s,r.patterns=[t],r.allBasenames=s,r}(r[1],n):(t.trimForExclusions?w:y).test(n)?function(e,t){const n=R(e.slice(1,-1).split(",").map((e=>E(e,t))).filter((e=>e!==x)),e),i=n.length;if(!i)return x;if(1===i)return n[0];const r=function(t,i){for(let r=0,s=n.length;r<s;r++)if(n[r](t,i))return e;return null},s=n.find((e=>!!e.allBasenames));s&&(r.allBasenames=s.allBasenames);const o=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(r.allPaths=o);return r}(n,t):(r=_.exec(L(n,t)))?I(r[1].substr(1),n,!0):(r=k.exec(L(n,t)))?I(r[1],n,!1):function(e){try{const t=new RegExp(`^${g(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return x}}(n),C.set(i,s)),F(s,e)}function F(e,t){if("string"===typeof t)return e;const n=function(n,i){return(0,r._1)(n,t.base,!a.j9)?e((0,l.NB)(n.substr(t.base.length),o.Vn),i):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function L(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function I(e,t,n){const i=o.Vn===o.SA.sep,r=i?e:e.replace(p,o.Vn),s=o.Vn+r,a=o.SA.sep+e;let l;return l=n?function(n,o){return"string"!==typeof n||n!==r&&!n.endsWith(s)&&(i||n!==e&&!n.endsWith(a))?null:t}:function(n,s){return"string"!==typeof n||n!==r&&(i||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function T(e,t,n){return!(!e||"string"!==typeof t)&&N(e)(t,void 0,n)}function N(e,t={}){if(!e)return S;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=E(e,t);if(n===x)return S;const i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return function(e,t){const n=R(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return x;const r=E(e,n);if(r===x)return x;if("boolean"===typeof t)return r;if(t){const n=t.when;if("string"===typeof n){const t=(t,s,o,a)=>{if(!a||!r(t,s))return null;const l=a(n.replace("$(basename)",(()=>o)));return(0,i.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return r}(n,e[n],t))).filter((e=>e!==x))),r=n.length;if(!r)return x;if(!n.some((e=>!!e.requiresSiblings))){if(1===r)return n[0];const e=function(e,t){let r;for(let s=0,o=n.length;s<o;s++){const o=n[s](e,t);if("string"===typeof o)return o;(0,i.Qg)(o)&&(r||(r=[]),r.push(o))}return r?(async()=>{for(const e of r){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const s=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,r){let s,a;for(let l=0,c=n.length;l<c;l++){const c=n[l];c.requiresSiblings&&r&&(t||(t=(0,o.P8)(e)),s||(s=t.substr(0,t.length-(0,o.LC)(e).length)));const h=c(e,t,s,r);if("string"===typeof h)return h;(0,i.Qg)(h)&&(a||(a=[]),a.push(h))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=n.find((e=>!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(s.allPaths=l);return s}(e,t)}function R(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const i=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let r;if(t){r=[];for(let e=0,n=i.length;e<n;e++)r.push(t)}else r=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const s=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=i.indexOf(t);return-1!==n?r[n]:null};s.basenames=i,s.patterns=r,s.allBasenames=i;const o=e.filter((e=>!e.basenames));return o.push(s),o}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>o,sN:()=>r,v7:()=>h});var i=n(1508);function r(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,i=s(104579,i=t),n.reduce(((e,t)=>r(t,e)),i)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=o(n,t),r(e[n],t))),t)}(e,t);case"string":return o(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,i}function s(e,t){return(t<<5)-t+e|0}function o(e,t){t=s(149417,t);for(let n=0,i=e.length;n<i;n++)t=s(e.charCodeAt(n),t);return t}function a(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function l(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function c(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class h{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(r=a,s=-1,a=0):(r=e.charCodeAt(0),s=0);;){let l=r;if(i.pc(r)){if(!(s+1<t)){a=r;break}{const t=e.charCodeAt(s+1);i.LJ(t)?(s++,l=i.z_(r,t)):l=65533}}else i.LJ(r)&&(l=65533);if(o=this._push(n,o,l),s++,!(s<t))break;r=e.charCodeAt(s)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),c(this._h0)+c(this._h1)+c(this._h2)+c(this._h3)+c(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=h._bigBlock32,t=this._buffDV;for(let a=0;a<64;a+=4)e.setUint32(a,t.getUint32(a,!1),!1);for(let h=64;h<320;h+=4)e.setUint32(h,a(e.getUint32(h-12,!1)^e.getUint32(h-32,!1)^e.getUint32(h-56,!1)^e.getUint32(h-64,!1),1),!1);let n,i,r,s=this._h0,o=this._h1,l=this._h2,c=this._h3,d=this._h4;for(let h=0;h<80;h++)h<20?(n=o&l|~o&c,i=1518500249):h<40?(n=o^l^c,i=1859775393):h<60?(n=o&l|o&c|l&c,i=2400959708):(n=o^l^c,i=3395469782),r=a(s,5)+n+d+i+e.getUint32(4*h,!1)&4294967295,d=c,c=l,l=a(o,30),o=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+d&4294967295}}},2522:(e,t,n)=>{"use strict";var i;n.d(t,{f:()=>i}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*i(e){yield e}e.empty=function(){return n},e.single=i,e.wrap=function(e){return t(e)?e:i(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const i of e)if(t(i,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.flatMap=function*(e,t){let n=0;for(const i of e)yield*t(i,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let i=n;for(const r of e)i=t(i,r);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(i||(i={}))},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});class i{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1484:(e,t,n)=>{"use strict";function i(e,t){const n=this;let i,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}n.d(t,{jG:()=>p,$w:()=>f,Cm:()=>u,HE:()=>m,qE:()=>h,AS:()=>c,VD:()=>a,s:()=>d,Ay:()=>o});var r=n(2522);let s=null;function o(e){return s?.trackDisposable(e),e}function a(e){s?.markAsDisposed(e)}function l(e,t){s?.setParent(e,t)}function c(e){if(r.f.is(e)){const n=[];for(const i of e)if(i)try{i.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function h(...e){const t=d((()=>c(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function d(e){const t=o({dispose:i((()=>{a(t),e()}))});return t}class u{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{c(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?u.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class p{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new u,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class m{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class f{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{c(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});class i{static{this.Undefined=new i(void 0)}constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},4320:(e,t,n)=>{"use strict";var i,r;n.d(t,{cO:()=>h,db:()=>d,fT:()=>o,qK:()=>c});class s{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[i]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(i=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[r]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends a{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class c extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class h{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class d{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});const i=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>i,v$:()=>c,zl:()=>u});var i,r=n(4383),s=n(8067),o=n(1508),a=n(9400),l=n(8821);function c(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(i||(i={}));const h=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,i.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(h){return r.dz(h),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const o=this._ports[t],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(c+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:i.vscodeRemoteResource,authority:`${n}:${o}`,path:this._remoteResourcesPath,query:c})}};class d{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===i.vscodeRemote?h.rewrite(e):e.scheme!==i.file||!s.ib&&s.lg!==`${i.vscodeFileResource}://${d.FALLBACK_AUTHORITY}`?e:e.with({scheme:i.vscodeFileResource,authority:e.authority||d.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=l.fj(t,e);return a.r.file(n)}return a.r.parse(t.toUrl(e))}}const u=new d;var p;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let i;"string"===typeof e?i=new URL(e).searchParams:e instanceof URL?i=e.searchParams:a.r.isUri(e)&&(i=new URL(e.toString(!0)).searchParams);const r=i?.get(n);if(r)return t.get(r)},e.addSearchParam=function(e,t,i){if(!globalThis.crossOriginIsolated)return;const r=t&&i?"3":i?"2":"1";e instanceof URLSearchParams?e.set(n,r):e[n]=r}}(p||(p={}))},146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>r,aI:()=>i,kT:()=>s});Object.prototype.hasOwnProperty;function i(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else{const s=[];for(r in e)s.push(r);s.sort();const o=[];for(r in t)o.push(r);if(o.sort(),!i(s,o))return!1;for(n=0;n<s.length;n++)if(!i(e[s[n]],t[s[n]]))return!1}return!0}function r(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function s(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i={};for(const r of e)i[r]=n(r);return i}},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>L,pD:()=>F,LC:()=>I,fj:()=>S,S8:()=>C,SA:()=>k,V8:()=>E,hd:()=>x,Vn:()=>T,IN:()=>w});var i=n(8067);let r;const s=globalThis.vscode;if("undefined"!==typeof s&&"undefined"!==typeof s.process){const e=s.process;r={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else r="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return i.uF?"win32":i.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=r.cwd,a=(r.env,r.platform),l=46,c=47,h=92,d=58;class u extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function p(e,t){if("string"!==typeof e)throw new u(t,"string",e)}const m="win32"===a;function f(e){return e===c||e===h}function g(e){return e===c}function b(e){return e>=65&&e<=90||e>=97&&e<=122}function v(e,t,n,i){let r="",s=0,o=-1,a=0,h=0;for(let d=0;d<=e.length;++d){if(d<e.length)h=e.charCodeAt(d);else{if(i(h))break;h=c}if(i(h)){if(o===d-1||1===a);else if(2===a){if(r.length<2||2!==s||r.charCodeAt(r.length-1)!==l||r.charCodeAt(r.length-2)!==l){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",s=0):(r=r.slice(0,e),s=r.length-1-r.lastIndexOf(n)),o=d,a=0;continue}if(0!==r.length){r="",s=0,o=d,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(o+1,d)}`:r=e.slice(o+1,d),s=d-o-1;o=d,a=0}else h===l&&-1!==a?++a:a=-1}return r}function y(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new u(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${r=t.ext,r?`${"."===r[0]?"":"."}${r}`:""}`;var r;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const w={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let s;if(r>=0){if(s=e[r],p(s,`paths[${r}]`),0===s.length)continue}else 0===t.length?s=o():(s={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||o(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===h)&&(s=`${t}\\`));const a=s.length;let l=0,c="",u=!1;const m=s.charCodeAt(0);if(1===a)f(m)&&(l=1,u=!0);else if(f(m))if(u=!0,f(s.charCodeAt(1))){let e=2,t=e;for(;e<a&&!f(s.charCodeAt(e));)e++;if(e<a&&e!==t){const n=s.slice(t,e);for(t=e;e<a&&f(s.charCodeAt(e));)e++;if(e<a&&e!==t){for(t=e;e<a&&!f(s.charCodeAt(e));)e++;e!==a&&e===t||(c=`\\\\${n}\\${s.slice(t,e)}`,l=e)}}}else l=1;else b(m)&&s.charCodeAt(1)===d&&(c=s.slice(0,2),l=2,a>2&&f(s.charCodeAt(2))&&(u=!0,l=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(i){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,i=u,u&&t.length>0)break}return n=v(n,!i,"\\",f),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){p(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return g(s)?"\\":e;if(f(s))if(r=!0,f(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!f(e.charCodeAt(r));)r++;if(r<t&&r!==s){const o=e.slice(s,r);for(s=r;r<t&&f(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!f(e.charCodeAt(r));)r++;if(r===t)return`\\\\${o}\\${e.slice(s)}\\`;r!==s&&(n=`\\\\${o}\\${e.slice(s,r)}`,i=r)}}}else i=1;else b(s)&&e.charCodeAt(1)===d&&(n=e.slice(0,2),i=2,t>2&&f(e.charCodeAt(2))&&(r=!0,i=3));let o=i<t?v(e.slice(i),!r,"\\",f):"";return 0!==o.length||r||(o="."),o.length>0&&f(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){p(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return f(n)||t>2&&b(n)&&e.charCodeAt(1)===d&&f(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){const i=e[s];p(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&f(n.charCodeAt(0))){++r;const e=n.length;e>1&&f(n.charCodeAt(1))&&(++r,e>2&&(f(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&f(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return w.normalize(t)},relative(e,t){if(p(e,"from"),p(t,"to"),e===t)return"";const n=w.resolve(e),i=w.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===h;)r++;let s=e.length;for(;s-1>r&&e.charCodeAt(s-1)===h;)s--;const o=s-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===h;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===h;)l--;const c=l-a,d=o<c?o:c;let u=-1,m=0;for(;m<d;m++){const n=e.charCodeAt(r+m);if(n!==t.charCodeAt(a+m))break;n===h&&(u=m)}if(m!==d){if(-1===u)return i}else{if(c>d){if(t.charCodeAt(a+m)===h)return i.slice(a+m+1);if(2===m)return i.slice(a+m)}o>d&&(e.charCodeAt(r+m)===h?u=m:2===m&&(u=3)),-1===u&&(u=0)}let f="";for(m=r+u+1;m<=s;++m)m!==s&&e.charCodeAt(m)!==h||(f+=0===f.length?"..":"\\..");return a+=u,f.length>0?`${f}${i.slice(a,l)}`:(i.charCodeAt(a)===h&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=w.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===h){if(t.charCodeAt(1)===h){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(b(t.charCodeAt(0))&&t.charCodeAt(1)===d&&t.charCodeAt(2)===h)return`\\\\?\\${t}`;return e},dirname(e){p(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return f(r)?e:".";if(f(r)){if(n=i=1,f(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!f(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&f(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!f(e.charCodeAt(r));)r++;if(r===t)return e;r!==s&&(n=i=r+1)}}}}else b(r)&&e.charCodeAt(1)===d&&(n=t>2&&f(e.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let a=t-1;a>=i;--a)if(f(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&p(t,"suffix"),p(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&b(e.charCodeAt(0))&&e.charCodeAt(1)===d&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(f(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(f(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){p(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===d&&b(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(f(t)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1),t===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:y.bind(null,"\\"),parse(e){p(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return f(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(f(r)){if(i=1,f(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!f(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&f(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!f(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(b(r)&&e.charCodeAt(1)===d){if(n<=2)return t.root=t.dir=e,t;if(i=2,f(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let s=-1,o=i,a=-1,c=!0,h=e.length-1,u=0;for(;h>=i;--h)if(r=e.charCodeAt(h),f(r)){if(!c){o=h+1;break}}else-1===a&&(c=!1,a=h+1),r===l?-1===s?s=h:1!==u&&(u=1):-1!==s&&(u=-1);return-1!==a&&(-1===s||0===u||1===u&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==i?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},_=(()=>{if(m){const e=/\\/g;return()=>{const t=o().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>o()})(),k={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:_();p(r,`paths[${i}]`),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===c)}return t=v(t,!n,"/",g),n?`/${t}`:t.length>0?t:"."},normalize(e){if(p(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return 0===(e=v(e,!t,"/",g)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(p(e,"path"),e.length>0&&e.charCodeAt(0)===c),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];p(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":k.normalize(t)},relative(e,t){if(p(e,"from"),p(t,"to"),e===t)return"";if((e=k.resolve(e))===(t=k.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,s=i<r?i:r;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===c&&(o=a)}if(a===s)if(r>s){if(t.charCodeAt(1+a)===c)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>s&&(e.charCodeAt(1+a)===c?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==c||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(p(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===c){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&p(t,"ext"),p(e,"path");let n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===c){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){p(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==c)-1===i&&(r=!1,i=o+1),a===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:y.bind(null,"/"),parse(e){p(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===c;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,h=e.length-1,d=0;for(;h>=i;--h){const t=e.charCodeAt(h);if(t!==c)-1===o&&(a=!1,o=h+1),t===l?-1===r?r=h:1!==d&&(d=1):-1!==r&&(d=-1);else if(!a){s=h+1;break}}if(-1!==o){const i=0===s&&n?1:s;-1===r||0===d||1===d&&r===o-1&&r===s+1?t.base=t.name=e.slice(i,o):(t.name=e.slice(i,r),t.base=e.slice(i,o),t.ext=e.slice(r,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};k.win32=w.win32=w,k.posix=w.posix=k;const C=m?w.normalize:k.normalize,S=m?w.join:k.join,x=m?w.resolve:k.resolve,E=m?w.relative:k.relative,F=m?w.dirname:k.dirname,L=m?w.basename:k.basename,I=m?w.extname:k.extname,T=m?w.sep:k.sep},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>P,HZ:()=>I,OS:()=>A,UP:()=>V,_p:()=>D,cm:()=>z,gm:()=>B,ib:()=>L,j9:()=>F,lg:()=>T,nr:()=>W,uF:()=>x,zx:()=>E});var i=n(8209);const r="en";let s,o,a=!1,l=!1,c=!1,h=!1,d=!1,u=!1,p=!1,m=!1,f=!1,g=!1,b=null,v=null,y=null;const w=globalThis;let _;"undefined"!==typeof w.vscode&&"undefined"!==typeof w.vscode.process?_=w.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(_=process);const k="string"===typeof _?.versions?.electron,C=k&&"renderer"===_?.type;if("object"===typeof _){a="win32"===_.platform,l="darwin"===_.platform,c="linux"===_.platform,h=c&&!!_.env.SNAP&&!!_.env.SNAP_REVISION,p=k,f=!!_.env.CI||!!_.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=r,b=r;const e=_.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);s=t.userLocale,v=t.osLocale,b=t.resolvedLanguage||r,y=t.languagePack?.translationsConfigFile}catch(U){}d=!0}else"object"!==typeof navigator||C?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,m=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=o.indexOf("Linux")>=0,g=o?.indexOf("Mobi")>=0,u=!0,b=i.i8()||r,s=navigator.language.toLowerCase(),v=s);let S=0;l?S=1:a?S=3:c&&(S=2);const x=a,E=l,F=c,L=d,I=u,T=u&&"function"===typeof w.importScripts?w.origin:void 0,N=o,R="function"===typeof w.postMessage&&!w.importScripts,D=(()=>{if(R){const e=[];w.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void i.callback()}}));let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),w.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})(),A=l||m?2:a?1:3;let M=!0,O=!1;function z(){if(!O){O=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);M=513===t[0]}return M}const P=!!(N&&N.indexOf("Chrome")>=0),B=!!(N&&N.indexOf("Firefox")>=0),W=!!(!P&&N&&N.indexOf("Safari")>=0),V=!!(N&&N.indexOf("Edg/")>=0);N&&N.indexOf("Android")},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>f,P8:()=>u});var i=n(9326),r=n(6456),s=n(8821),o=n(8067),a=n(1508),l=n(9400);function c(e){return(0,l.I)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===r.ny.file)return i._1(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(p(e.authority,t.authority))return i._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return u(e)||e.authority}basename(e){return s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===r.ny.file?t=l.r.file(s.pD(c(e))).path:(t=s.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===r.ny.file?l.r.file(s.S8(c(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!p(e.authority,t.authority))return;if(e.scheme===r.ny.file){const n=s.V8(c(e),c(t));return o.uF?i.TH(n):n}let n=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,a.length);e<t&&(n.charCodeAt(e)===a.charCodeAt(e)||n.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);n=a.substr(0,e)+n.substr(e)}return s.SA.relative(n,a)}resolvePath(e,t){if(e.scheme===r.ny.file){const n=l.r.file(s.hd(c(e),t));return e.with({authority:n.authority,path:n.path})}return t=i.kb(t),e.with({path:s.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=s.Vn){if(e.scheme===r.ny.file){const n=c(e);return n.length>i.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.Vn){return m(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let n=!1;if(e.scheme===r.ny.file){const r=c(e);n=void 0!==r&&r.length===i.Zn(r).length&&r[r.length-1]===t}else{t="/";const i=e.path;n=1===i.length&&47===i.charCodeAt(i.length-1)}return n||m(e,t)?e:e.with({path:e.path+"/"})}}const d=new h((()=>!1)),u=(new h((e=>e.scheme!==r.ny.file||!o.j9)),new h((e=>!0)),d.isEqual.bind(d),d.isEqualOrParent.bind(d),d.getComparisonKey.bind(d),d.basenameOrAuthority.bind(d),d.basename.bind(d)),p=(d.extname.bind(d),d.dirname.bind(d),d.joinPath.bind(d),d.normalizePath.bind(d),d.relativePath.bind(d),d.resolvePath.bind(d),d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),m=d.hasTrailingPathSeparator.bind(d);d.removeTrailingPathSeparator.bind(d),d.addTrailingPathSeparator.bind(d);var f;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,i]=e.split(":");t&&i&&n.set(t,i)}));const i=t.path.substring(0,t.path.indexOf(";"));return i&&n.set(e.META_DATA_MIME,i),n}}(f||(f={}))},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const i=globalThis.performance&&"function"===typeof globalThis.performance.now;class r{static create(e){return new r(e)}constructor(e){this._now=i&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>R,AV:()=>s,E_:()=>L,HG:()=>u,LJ:()=>k,LU:()=>O,NB:()=>l,OS:()=>c,Q_:()=>y,Ss:()=>A,UD:()=>m,Wv:()=>v,Z5:()=>S,_J:()=>N,aC:()=>T,bm:()=>a,eY:()=>h,jy:()=>o,km:()=>E,lT:()=>p,ne:()=>D,ns:()=>w,pc:()=>_,r_:()=>M,tk:()=>z,tl:()=>W,uz:()=>d,y_:()=>V,z_:()=>C});var i=n(1788),r=n(1090);function s(e){return!e||"string"!==typeof e||0===e.trim().length}function o(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function c(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function h(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function d(e){return e.split(/\r\n|\r|\n/)}function u(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function p(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function m(e,t){return e<t?-1:e>t?1:0}function f(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){const i=e.charCodeAt(n),s=t.charCodeAt(r);if(i<s)return-1;if(i>s)return 1}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function g(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){let o=e.charCodeAt(n),a=t.charCodeAt(r);if(o===a)continue;if(o>=128||a>=128)return f(e.toLowerCase(),t.toLowerCase(),n,i,r,s);b(o)&&(o-=32),b(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function b(e){return e>=97&&e<=122}function v(e){return e>=65&&e<=90}function y(e,t){return e.length===t.length&&0===g(e,t)}function w(e,t){const n=t.length;return!(t.length>e.length)&&0===g(e,t,0,n)}function _(e){return 55296<=e&&e<=56319}function k(e){return 56320<=e&&e<=57343}function C(e,t){return t-56320+(e-55296<<10)+65536}function S(e,t,n){const i=e.charCodeAt(n);if(_(i)&&n+1<t){const t=e.charCodeAt(n+1);if(k(t))return C(i,t)}return i}class x{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(k(n)&&t>1){const i=e.charCodeAt(t-2);if(_(i))return C(i,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=S(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class E{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new x(e,t)}nextGraphemeLength(){const e=B.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(P(i,r)){t.setOffset(n);break}i=r}return t.offset-n}prevGraphemeLength(){const e=B.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(P(r,i)){t.setOffset(n);break}i=r}return n-t.offset}eol(){return this._iterator.eol()}}let F;function L(e){return F||(F=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),F.test(e)}const I=/^[\t\n\r\x20-\x7E]*$/;function T(e){return I.test(e)}const N=/[\u2028\u2029]/;function R(e){return N.test(e)}function D(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function A(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const M=String.fromCharCode(65279);function O(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function z(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function P(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class B{static{this._INSTANCE=null}static getInstance(){return B._INSTANCE||(B._INSTANCE=new B),B._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}class W{static{this.ambiguousCharacterData=new r.d((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')))}static{this.cache=new i.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[i,r]of e)t.has(i)&&n.set(i,r);return n}const i=this.ambiguousCharacterData.value;let r,s=e.filter((e=>!e.startsWith("_")&&e in i));0===s.length&&(s=["_default"]);for(const a of s){r=n(r,t(i[a]))}const o=function(e,t){const n=new Map(e);for(const[i,r]of t)n.set(i,r);return n}(t(i._common),r);return new W(o)}))}static getInstance(e){return W.cache.get(Array.from(e))}static{this._locales=new r.d((()=>Object.keys(W.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return W._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}class V{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(V.getRawData())),this._data}static isInvisibleCharacter(e){return V.getData().has(e)}static get codePoints(){return V.getData()}}},631:(e,t,n)=>{"use strict";function i(e){return"string"===typeof e}function r(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){return"undefined"===typeof e}function o(e){return s(e)||null===e}n.d(t,{Gv:()=>r,Kg:()=>i,b0:()=>s,z:()=>o})},5152:(e,t,n)=>{"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>i,j:()=>r})},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>b,r:()=>d});var i=n(8821),r=n(8067);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const l="",c="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,i,r,h=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||l),this.query=i||l,this.fragment=r||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,h))}get fsPath(){return b(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===i?i=this.path:null===i&&(i=l),void 0===r?r=this.query:null===r&&(r=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new p(t,n,i,r,s)}static parse(e,t=!1){const n=h.exec(e);return n?new p(n[2]||l,_(n[4]||l),_(n[5]||l),_(n[7]||l),_(n[9]||l),t):new p(l,l,l,l,l)}static file(e){let t=l;if(r.uF&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){const n=e.indexOf(c,2);-1===n?(t=e.substring(2),e=c):(t=e.substring(2,n),e=e.substring(n)||c)}return new p("file",t,e,l,l)}static from(e,t){return new p(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=r.uF&&"file"===e.scheme?d.file(i.IN.join(b(e,!0),...t)).path:i.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new p(e);return t._formatted=e.external??null,t._fsPath=e._sep===u?e.fsPath??null:null,t}}return e}}const u=r.uF?1:void 0;class p extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function f(e,t,n){let i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=m[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function g(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=m[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function b(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r.uF&&(n=n.replace(/\//g,"\\")),n}function v(e,t){const n=t?g:f;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=c,i+=c),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),l&&(i+="#",i+=t?l:f(l,!1,!1)),i}function y(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+y(e.substr(3)):e}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function _(e){return e.match(w)?e.replace(w,(e=>y(e))):e}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>y,SimpleWorkerServer:()=>k,create:()=>C,logOnceWebWorkerWarning:()=>u});var i=n(4383),r=n(1234),s=n(1484),o=n(6456),a=n(8067),l=n(1508);const c="default",h="$initialize";let d=!1;function u(e){a.HZ&&(d||(d=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class p{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.method=i,this.args=r,this.type=0}}class m{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class f{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=i,this.arg=r,this.type=2}}class g{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class b{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class v{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const i=String(++this._lastSentReq);return new Promise(((r,s)=>{this._pendingReplies[i]={resolve:r,reject:s},this._send(new p(this._workerId,i,e,t,n))}))}listen(e,t,n){let i=null;const s=new r.vl({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new f(this._workerId,i,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new b(this._workerId,i)),i=null}});return s.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,i)=>("string"!==typeof i||n[i]||(_(i)?n[i]=t=>this.listen(e,i,t):w(i)?n[i]=this.listen(e,i,void 0):36===i.charCodeAt(0)&&(n[i]=async(...n)=>(await(t?.()),this.sendMessage(e,i,n)))),n[i])};return new Proxy(Object.create(null),n)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new m(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,i.cU)(e.detail)),this._send(new m(this._workerId,t,void 0,(0,i.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new g(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class y extends s.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,i.dz)(e)}))),this._protocol=new v({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const r=globalThis.require;"undefined"!==typeof r&&"function"===typeof r.getConfig?n=r.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(c,h,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(c,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const i=this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on main thread`);if(_(t)){const r=i[t].call(i,n);if("function"!==typeof r)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return r}if(w(t)){const n=i[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function w(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function _(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class k{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new v({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===c&&t===h)return this.initialize(n[0],n[1],n[2]);const i=e===c?this._requestHandler:this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=e===c?this._requestHandler:this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on worker thread`);if(_(t)){const e=i[t].call(i,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(w(t)){const e=i[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,i){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${i}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function C(e){return new k(e,null)}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var i=n(5152);class r{constructor(e){const t=(0,i.W)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,i.W)(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>b,aZ:()=>g,l5:()=>_,lQ:()=>y,s7:()=>S,sH:()=>k,sN:()=>v,ss:()=>w,yI:()=>f,zp:()=>C});var i=n(8209),r=n(7661),s=n(5845),o=n(5724);const a=(0,s.x1A)("editor.lineHighlightBackground",null,i.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,s.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.b1q},i.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,s.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},i.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,s.x1A)("editor.symbolHighlightBackground",{dark:s.Ubg,light:s.Ubg,hcDark:null,hcLight:null},i.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,s.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:r.Q1.black,hcDark:r.Q1.white,hcLight:"#0F4A85"},i.kg("caret","Color of the editor cursor."))),c=(0,s.x1A)("editorCursor.background",null,i.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),h=((0,s.x1A)("editorMultiCursor.primary.foreground",l,i.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.primary.background",c,i.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorMultiCursor.secondary.foreground",l,i.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.secondary.background",c,i.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},i.kg("editorWhitespaces","Color of whitespace characters in the editor."))),d=((0,s.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorLineNumbers","Color of editor line numbers.")),(0,s.x1A)("editorIndentGuide.background",h,i.kg("editorIndentGuides","Color of the editor indentation guides."),!1,i.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),u=(0,s.x1A)("editorIndentGuide.activeBackground",h,i.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,i.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),p=((0,s.x1A)("editorIndentGuide.background1",d,i.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.background2","#00000000",i.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.background3","#00000000",i.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.background4","#00000000",i.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.background5","#00000000",i.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.background6","#00000000",i.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,s.x1A)("editorIndentGuide.activeBackground1",u,i.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.activeBackground2","#00000000",i.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.activeBackground3","#00000000",i.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.activeBackground4","#00000000",i.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.activeBackground5","#00000000",i.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.activeBackground6","#00000000",i.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,s.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.buw,hcLight:s.buw},i.kg("editorActiveLineNumber","Color of editor active line number"),!1,i.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),m=((0,s.x1A)("editorLineNumber.activeForeground",p,i.kg("editorActiveLineNumber","Color of editor active line number")),(0,s.x1A)("editorLineNumber.dimmedForeground",null,i.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,s.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:r.Q1.lightgrey,hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorRuler","Color of the editor rulers.")),(0,s.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},i.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,s.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},i.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,s.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.b1q,hcLight:s.b1q},i.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,s.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},i.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,s.x1A)("editorOverviewRuler.background",null,i.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,s.x1A)("editorGutter.background",s.YtV,i.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,s.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:s.b1q},i.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,s.x1A)("editorUnnecessaryCode.opacity",{dark:r.Q1.fromHex("#000a"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,s.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:r.Q1.fromHex("#292929").transparent(.8)},i.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,s.x1A)("editorGhostText.foreground",{dark:r.Q1.fromHex("#ffffff56"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,s.x1A)("editorGhostText.background",null,i.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new r.Q1(new r.bU(0,122,204,.6))),f=((0,s.x1A)("editorOverviewRuler.rangeHighlightForeground",m,i.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editorOverviewRuler.errorForeground",{dark:new r.Q1(new r.bU(255,18,18,.7)),light:new r.Q1(new r.bU(255,18,18,.7)),hcDark:new r.Q1(new r.bU(255,50,50,1)),hcLight:"#B5200D"},i.kg("overviewRuleError","Overview ruler marker color for errors."))),g=(0,s.x1A)("editorOverviewRuler.warningForeground",{dark:s.Hng,light:s.Hng,hcDark:s.Stt,hcLight:s.Stt},i.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),b=(0,s.x1A)("editorOverviewRuler.infoForeground",{dark:s.pOz,light:s.pOz,hcDark:s.IIb,hcLight:s.IIb},i.kg("overviewRuleInfo","Overview ruler marker color for infos.")),v=(0,s.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},i.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),y=(0,s.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},i.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),w=(0,s.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},i.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),_=(0,s.x1A)("editorBracketHighlight.foreground4","#00000000",i.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),k=(0,s.x1A)("editorBracketHighlight.foreground5","#00000000",i.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),C=(0,s.x1A)("editorBracketHighlight.foreground6","#00000000",i.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),S=(0,s.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new r.Q1(new r.bU(255,18,18,.8)),light:new r.Q1(new r.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},i.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,s.x1A)("editorBracketPairGuide.background1","#00000000",i.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background2","#00000000",i.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background3","#00000000",i.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background4","#00000000",i.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background5","#00000000",i.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background6","#00000000",i.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground1","#00000000",i.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground2","#00000000",i.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground3","#00000000",i.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground4","#00000000",i.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground5","#00000000",i.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground6","#00000000",i.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorUnicodeHighlight.border",s.Hng,i.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,s.x1A)("editorUnicodeHighlight.background",s.whs,i.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const n=e.getColor(s.YtV),i=e.getColor(a),r=i&&!i.isTransparent()?i:n;r&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${r}; }`)}))},4454:(e,t,n)=>{"use strict";function i(e){let t=0,n=0,i=0,r=0;for(let s=0,o=e.length;s<o;s++){const a=e.charCodeAt(s);13===a?(0===t&&(n=s),t++,s+1<o&&10===e.charCodeAt(s+1)?(r|=2,s++):r|=3,i=s+1):10===a&&(r|=1,0===t&&(n=s),t++,i=s+1)}return 0===t&&(n=e.length),[t,n,e.length-i,r]}n.d(t,{W:()=>i})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,S:()=>l});var i=n(4383),r=n(4444),s=n(6677),o=n(6041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new i.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)t=Math.min(t,e[i].startLineNumber),n=Math.max(n,e[i].endLineNumberExclusive);return new a(t,n)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new i.D7(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new a(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new s.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new s.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new r.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,i=0,r=null;for(;n<this._normalizedRanges.length||i<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&i<e._normalizedRanges.length){const t=this._normalizedRanges[n],r=e._normalizedRanges[i];t.startLineNumber<r.startLineNumber?(s=t,n++):(s=r,i++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[i],i++);null===r?r=s:r.endLineNumberExclusive>=s.startLineNumber?r=new a(r.startLineNumber,Math.max(r.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(r),r=s)}return null!==r&&t.push(r),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const i=[];let r=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>r&&i.push(new a(r,e.startLineNumber)),r=e.endLineNumberExclusive}return r<e.endLineNumberExclusive&&i.push(new a(r,e.endLineNumberExclusive)),new l(i)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,i=0;for(;n<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const r=this._normalizedRanges[n],s=e._normalizedRanges[i],o=r.intersect(s);o&&!o.isEmpty&&t.push(o),r.endLineNumberExclusive<s.endLineNumberExclusive?n++:i++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(4383);class r{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let i=n;for(;i<t.length&&t[i].start<=e.endExclusive;)i++;if(n===i)t.splice(n,0,e);else{const s=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[i-1].endExclusive);t.splice(n,i-n,new r(s,o))}}static tryCreate(e,t){if(!(e>t))return new r(e,t)}static ofLength(e){return new r(0,e)}static ofStartAndLength(e,t){return new r(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new i.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new r(this.start+e,this.endExclusive+e)}deltaStart(e){return new r(this.start+e,this.endExclusive)}deltaEnd(e){return new r(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new r(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new r(t,n)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new i.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new i.D7(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){return(0|e.column)-(0|t.column)}return n-i}clone(){return new i(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var i=n(3069);class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return r.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return r.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,h=t.endColumn;return n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),s>c?(s=c,o=h):s===c&&(o=Math.min(o,h)),n>s||n===s&&i>o?null:new r(n,i,s,o)}equalsRange(e){return r.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return r.getEndPosition(this)}static getEndPosition(e){return new i.y(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){return(0|e.endColumn)-(0|t.endColumn)}return n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var i=n(3069),r=n(6677);class s extends r.Q{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new i.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new i.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new s(e,t,n,i):new s(n,i,e,t)}}},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var i=n(3069),r=n(6677);class s{static{this.zero=new s(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const i of e)"\n"===i?(t++,n=0):n++;return new s(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new r.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new r.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new i.y(e.lineNumber,e.column+this.columnCount):new i.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>o,Ld:()=>s,Th:()=>l});var i=n(2522),r=n(8925);const s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=s;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const a=new r.w;function l(e,t,n,r,s){if(t=o(t),s||(s=i.f.first(a)),n.length>s.maxLen){let i=e-s.maxLen/2;return i<0?i=0:r+=i,l(e,t,n=n.substring(i,e+s.maxLen/2),r,s)}const h=Date.now(),d=e-1-r;let u=-1,p=null;for(let i=1;!(Date.now()-h>=s.timeBudget);i++){const e=d-s.windowSize*i;t.lastIndex=Math.max(0,e);const r=c(t,n,d,u);if(!r&&p)break;if(p=r,e<=0)break;u=e}if(p){const e={word:p[0],startColumn:r+1+p.index,endColumn:r+1+p.index+p[0].length};return t.lastIndex=0,e}return null}function c(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}a.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});class i{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),i=this.getFontStyle(e);let r=`color: ${t[n]};`;1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;");let s="";return 4&i&&(s+=" underline"),8&i&&(s+=" line-through"),s&&(r+=`text-decoration:${s};`),r}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>g,ou:()=>f,dG:()=>C,OB:()=>S});var i=n(9493),r=(n(9400),n(1234)),s=n(1484);class o{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new r.vl,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,s.s)((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();const n=new a(this,e,t);return this._factories.set(e,n),(0,s.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class a extends s.jG{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,c,h,d,u,p,m=n(8209);class f{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class g{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,i.W.symbolMethod),t.set(1,i.W.symbolFunction),t.set(2,i.W.symbolConstructor),t.set(3,i.W.symbolField),t.set(4,i.W.symbolVariable),t.set(5,i.W.symbolClass),t.set(6,i.W.symbolStruct),t.set(7,i.W.symbolInterface),t.set(8,i.W.symbolModule),t.set(9,i.W.symbolProperty),t.set(10,i.W.symbolEvent),t.set(11,i.W.symbolOperator),t.set(12,i.W.symbolUnit),t.set(13,i.W.symbolValue),t.set(15,i.W.symbolEnum),t.set(14,i.W.symbolConstant),t.set(15,i.W.symbolEnum),t.set(16,i.W.symbolEnumMember),t.set(17,i.W.symbolKeyword),t.set(27,i.W.symbolSnippet),t.set(18,i.W.symbolText),t.set(19,i.W.symbolColor),t.set(20,i.W.symbolFile),t.set(21,i.W.symbolReference),t.set(22,i.W.symbolCustomColor),t.set(23,i.W.symbolFolder),t.set(24,i.W.symbolTypeParameter),t.set(25,i.W.account),t.set(26,i.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=i.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let i=n.get(e);return"undefined"!==typeof i||t||(i=9),i}}(c||(c={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(h||(h={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(d||(d={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(u||(u={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(p||(p={}));(0,m.kg)("Array","array"),(0,m.kg)("Boolean","boolean"),(0,m.kg)("Class","class"),(0,m.kg)("Constant","constant"),(0,m.kg)("Constructor","constructor"),(0,m.kg)("Enum","enumeration"),(0,m.kg)("EnumMember","enumeration member"),(0,m.kg)("Event","event"),(0,m.kg)("Field","field"),(0,m.kg)("File","file"),(0,m.kg)("Function","function"),(0,m.kg)("Interface","interface"),(0,m.kg)("Key","key"),(0,m.kg)("Method","method"),(0,m.kg)("Module","module"),(0,m.kg)("Namespace","namespace"),(0,m.kg)("Null","null"),(0,m.kg)("Number","number"),(0,m.kg)("Object","object"),(0,m.kg)("Operator","operator"),(0,m.kg)("Package","package"),(0,m.kg)("Property","property"),(0,m.kg)("String","string"),(0,m.kg)("Struct","struct"),(0,m.kg)("TypeParameter","type parameter"),(0,m.kg)("Variable","variable");var b,v,y,w,_;!function(e){const t=new Map;t.set(0,i.W.symbolFile),t.set(1,i.W.symbolModule),t.set(2,i.W.symbolNamespace),t.set(3,i.W.symbolPackage),t.set(4,i.W.symbolClass),t.set(5,i.W.symbolMethod),t.set(6,i.W.symbolProperty),t.set(7,i.W.symbolField),t.set(8,i.W.symbolConstructor),t.set(9,i.W.symbolEnum),t.set(10,i.W.symbolInterface),t.set(11,i.W.symbolFunction),t.set(12,i.W.symbolVariable),t.set(13,i.W.symbolConstant),t.set(14,i.W.symbolString),t.set(15,i.W.symbolNumber),t.set(16,i.W.symbolBoolean),t.set(17,i.W.symbolArray),t.set(18,i.W.symbolObject),t.set(19,i.W.symbolKey),t.set(20,i.W.symbolNull),t.set(21,i.W.symbolEnumMember),t.set(22,i.W.symbolStruct),t.set(23,i.W.symbolEvent),t.set(24,i.W.symbolOperator),t.set(25,i.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=i.W.symbolProperty),n}}(b||(b={}));class k{static{this.Comment=new k("comment")}static{this.Imports=new k("imports")}static{this.Region=new k("region")}static fromValue(e){switch(e){case"comment":return k.Comment;case"imports":return k.Imports;case"region":return k.Region}return new k(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(v||(v={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(y||(y={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(w||(w={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(_||(_={}));const C=new o,S=new o;var x;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(x||(x={}))},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});const i=(0,n(3591).u1)("languageService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>c});var i=n(8209),r=n(1234),s=n(6359),o=n(1939),a=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new r.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};s.O.add("editor.modesRegistry",l);const c="plaintext";l.registerLanguage({id:c,extensions:[".txt"],aliases:[i.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),s.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>i,Dg:()=>l,F4:()=>u,L5:()=>d,Wo:()=>h,X2:()=>a,ZS:()=>r,nk:()=>c,vd:()=>p});var i,r,s,o=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(i||(i={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(r||(r={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function c(e){return e&&"function"===typeof e.read}class h{constructor(e,t,n,i,r,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=s}}class d{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class u{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function p(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>d,W5:()=>g,hB:()=>m,dr:()=>u,wC:()=>f});var i=n(1508),r=n(4320),s=n(534);class o extends s.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,i=e.length;n<i;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const i of this._getIntlSegmenterWordsOnLine(e)){if(i.index>t)break;n=i}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const a=new r.qK(10);var l=n(3069),c=n(6677),h=n(6223);class d{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(10===i)return!0;if(92===i){if(t++,t>=n)break;const i=e.charCodeAt(t);if(110===i||114===i||87===i)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=i.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(r){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new h.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let i=a.get(n);return i||(i=new o(e,t),a.set(n,i)),i}(this.wordSeparators,[]):null,n?this.searchString:null)}}function u(e,t,n){if(!n)return new h.Dg(e,null);const i=[];for(let r=0,s=t.length;r<s;r++)i[r]=t[r];return new h.Dg(e,i)}class p{constructor(e){const t=[];let n=0;for(let i=0,r=e.length;i<r;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;for(;n<i;){const r=n+((i-n)/2|0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}class m{static findMatches(e,t,n,i,r){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,n,new g(s.wordSeparators,s.regex),i,r):this._doFindMatchesLineByLine(e,n,s,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,s){let o,a,l=0;if(i?(l=i.findLineFeedCountBeforeOffset(r),o=t+r+l):o=t+r,i){const e=i.findLineFeedCountBeforeOffset(r+s.length)-l;a=o+s.length+e}else a=o+s.length;const h=e.getPositionAt(o),d=e.getPositionAt(a);return new c.Q(h.lineNumber,h.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,n,i,r){const s=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new p(o):null,l=[];let c,h=0;for(n.reset(0);c=n.next(o);)if(l[h++]=u(this._getMultilineMatchRange(e,s,o,a,c.index,c[0]),c,i),h>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const s=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r);for(let l=t.startLineNumber+1;l<t.endLineNumber&&o<r;l++)o=this._findMatchesInLine(n,e.getLineContent(l),l,0,o,s,i,r);if(o<r){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,a,t.endLineNumber,0,o,s,i,r)}return s}static _findMatchesInLine(e,t,n,i,r,s,o,a){const l=e.wordSeparators;if(!o&&e.simpleSearch){const o=e.simpleSearch,d=o.length,u=t.length;let p=-d;for(;-1!==(p=t.indexOf(o,p+d));)if((!l||f(l,t,u,p,d))&&(s[r++]=new h.Dg(new c.Q(n,p+1+i,n,p+1+d+i),null),r>=a))return r;return r}const d=new g(e.wordSeparators,e.regex);let p;d.reset(0);do{if(p=d.next(t),p&&(s[r++]=u(new c.Q(n,p.index+1+i,n,p.index+1+p[0].length+i),p,o),r>=a))return r}while(p);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new g(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,s,i):this._doFindNextMatchLineByLine(e,n,s,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new l.y(t.lineNumber,1),s=e.getOffsetAt(r),o=e.getLineCount(),a=e.getValueInRange(new c.Q(r.lineNumber,r.column,o,e.getLineMaxColumn(o)),1),h="\r\n"===e.getEOL()?new p(a):null;n.reset(t.column-1);const d=n.next(a);return d?u(this._getMultilineMatchRange(e,s,a,h,d.index,d[0]),d,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s),a=this._findFirstMatchInLine(n,o,s,t.column,i);if(a)return a;for(let l=1;l<=r;l++){const t=(s+l-1)%r,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(n,o,t+1,1,i);if(a)return a}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const s=e.next(t);return s?u(new c.Q(n,s.index+1,n,s.index+1+s[0].length),s,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new g(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,s,i):this._doFindPreviousMatchLineByLine(e,n,s,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new c.Q(1,1,t.lineNumber,t.column),n,i,9990);if(r.length>0)return r[r.length-1];const s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new l.y(s,e.getLineMaxColumn(s)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(n,o,s,i);if(a)return a;for(let l=1;l<=r;l++){const t=(r+s-l-1)%r,o=e.getLineContent(t+1),a=this._findLastMatchInLine(n,o,t+1,i);if(a)return a}return null}static _findLastMatchInLine(e,t,n,i){let r,s=null;for(e.reset(0);r=e.next(t);)s=u(new c.Q(n,r.index+1,n,r.index+1+r[0].length),r,i);return s}}function f(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const s=t.charCodeAt(i-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const s=t.charCodeAt(i+r);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}class g{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,s=n[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){i.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||f(this._wordSeparators,e,t,r,s))return n}while(n);return null}}},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>me,createMonacoBaseAPI:()=>fe});var i=n(8447),r=n(1234);class s{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const o=new s,a=new s,l=new s,c=new Array(230),h={},d=[],u=Object.create(null),p=Object.create(null),m=[],f=[];for(let ge=0;ge<=193;ge++)m[ge]=-1;for(let ge=0;ge<=132;ge++)f[ge]=-1;var g;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[e,t,s,g,b,v,y,w,_]=r;if(i[t]||(i[t]=!0,d[t]=s,u[s]=t,p[s.toLowerCase()]=t,e&&(m[t]=g,0!==g&&3!==g&&5!==g&&4!==g&&6!==g&&57!==g&&(f[g]=t))),!n[g]){if(n[g]=!0,!b)throw new Error(`String representation missing for key code ${g} around scan code ${s}`);o.define(g,b),a.define(g,w||b),l.define(g,_||w||b)}v&&(c[v]=g),y&&(h[y]=g)}f[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return o.keyCodeToStr(e)}}(g||(g={}));var b,v,y,w,_,k,C,S,x,E,F,L,I,T,N,R,D,A,M,O,z,P,B,W,V,U,$,q,j,K,H,G,Q,J,Y,X,Z,ee,te,ne,ie,re,se,oe,ae,le,ce=n(9400),he=n(3069),de=n(6677),ue=n(5326),pe=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(b||(b={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(v||(v={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(y||(y={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(w||(w={})),function(e){e[e.Deprecated=1]="Deprecated"}(_||(_={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(k||(k={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(C||(C={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(S||(S={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(x||(x={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(E||(E={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(F||(F={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(L||(L={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(I||(I={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(T||(T={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(N||(N={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(R||(R={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(D||(D={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(A||(A={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(M||(M={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(O||(O={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(z||(z={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(P||(P={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(B||(B={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(W||(W={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(V||(V={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(U||(U={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}($||($={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(q||(q={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(j||(j={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(K||(K={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(H||(H={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(G||(G={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(Q||(Q={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(J||(J={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(Y||(Y={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(X||(X={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Z||(Z={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(ie||(ie={})),function(e){e[e.Deprecated=1]="Deprecated"}(re||(re={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(se||(se={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(oe||(oe={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ae||(ae={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class me{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function fe(){return{editor:void 0,languages:void 0,CancellationTokenSource:i.Qi,Emitter:r.vl,KeyCode:P,KeyMod:me,Position:he.y,Range:de.Q,Selection:ue.L,SelectionDirection:ee,MarkerSeverity:B,MarkerTag:W,Uri:ce.r,Token:pe.ou}}},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>Pe,EditorSimpleWorker:()=>Be,create:()=>We});class i{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var r=n(5600);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function o(e,t,n){return new h(new s(e),new s(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}static Copy2(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}}class c{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class h{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,s]=h._getElements(e),[o,a,l]=h._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=(0,r.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,i,s);return r&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,r,s){for(s[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let s;return n<=r?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new i(e,0,n,r-n+1)]):e<=t?(a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new i(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],c=this.ComputeRecursionPoint(e,t,n,r,o,l,s),h=o[0],d=l[0];if(null!==c)return c;if(!s[0]){const o=this.ComputeDiffRecursive(e,h,n,d,s);let a=[];return a=s[0]?[new i(h+1,t-(h+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(h+1,t,d+1,r,s),this.ConcatenateChanges(o,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,s,o,a,l,h,d,u,p,m,f,g,b,v,y){let w=null,_=null,k=new c,C=t,S=n,x=m[0]-b[0]-r,E=-1073741824,F=this.m_forwardHistory.length-1;do{const t=x+e;t===C||t<S&&h[t-1]<h[t+1]?(f=(u=h[t+1])-x-r,u<E&&k.MarkNextChange(),E=u,k.AddModifiedElement(u+1,f),x=t+1-e):(f=(u=h[t-1]+1)-x-r,u<E&&k.MarkNextChange(),E=u-1,k.AddOriginalElement(u,f+1),x=t-1-e),F>=0&&(e=(h=this.m_forwardHistory[F])[0],C=1,S=h.length-1)}while(--F>=-1);if(w=k.getReverseChanges(),y[0]){let e=m[0]+1,t=b[0]+1;if(null!==w&&w.length>0){const n=w[w.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}_=[new i(e,p-e+1,t,g-t+1)]}else{k=new c,C=o,S=a,x=m[0]-b[0]-l,E=1073741824,F=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=x+s;e===C||e<S&&d[e-1]>=d[e+1]?(f=(u=d[e+1]-1)-x-l,u>E&&k.MarkNextChange(),E=u+1,k.AddOriginalElement(u+1,f+1),x=e+1-s):(f=(u=d[e-1])-x-l,u>E&&k.MarkNextChange(),E=u,k.AddModifiedElement(u+1,f+1),x=e-1-s),F>=0&&(s=(d=this.m_reverseHistory[F])[0],C=1,S=d.length-1)}while(--F>=-1);_=k.getChanges()}return this.ConcatenateChanges(w,_)}ComputeRecursionPoint(e,t,n,r,s,o,a){let c=0,h=0,d=0,u=0,p=0,m=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=t-e+(r-n),g=f+1,b=new Int32Array(g),v=new Int32Array(g),y=r-n,w=t-e,_=e-n,k=t-r,C=(w-y)%2===0;b[y]=e,v[w]=t,a[0]=!1;for(let S=1;S<=f/2+1;S++){let f=0,x=0;d=this.ClipDiagonalBound(y-S,S,y,g),u=this.ClipDiagonalBound(y+S,S,y,g);for(let e=d;e<=u;e+=2){c=e===d||e<u&&b[e-1]<b[e+1]?b[e+1]:b[e-1]+1,h=c-(e-y)-_;const n=c;for(;c<t&&h<r&&this.ElementsAreEqual(c+1,h+1);)c++,h++;if(b[e]=c,c+h>f+x&&(f=c,x=h),!C&&Math.abs(e-w)<=S-1&&c>=v[e])return s[0]=c,o[0]=h,n<=v[e]&&S<=1448?this.WALKTRACE(y,d,u,_,w,p,m,k,b,v,c,t,s,h,r,o,C,a):null}const E=(f-e+(x-n)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(f,E))return a[0]=!0,s[0]=f,o[0]=x,E>0&&S<=1448?this.WALKTRACE(y,d,u,_,w,p,m,k,b,v,c,t,s,h,r,o,C,a):(e++,n++,[new i(e,t-e+1,n,r-n+1)]);p=this.ClipDiagonalBound(w-S,S,w,g),m=this.ClipDiagonalBound(w+S,S,w,g);for(let i=p;i<=m;i+=2){c=i===p||i<m&&v[i-1]>=v[i+1]?v[i+1]-1:v[i-1],h=c-(i-w)-k;const l=c;for(;c>e&&h>n&&this.ElementsAreEqual(c,h);)c--,h--;if(v[i]=c,C&&Math.abs(i-y)<=S&&c<=b[i])return s[0]=c,o[0]=h,l>=b[i]&&S<=1448?this.WALKTRACE(y,d,u,_,w,p,m,k,b,v,c,t,s,h,r,o,C,a):null}if(S<=1447){let e=new Int32Array(u-d+2);e[0]=y-d+1,l.Copy2(b,d,e,1,u-d+1),this.m_forwardHistory.push(e),e=new Int32Array(m-p+2),e[0]=w-p+1,l.Copy2(v,p,e,1,m-p+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(y,d,u,_,w,p,m,k,b,v,c,t,s,h,r,o,C,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<i||c<r)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const h=(t===i&&c===r?5:0)+this._boundaryScore(t,n.originalLength,c,n.modifiedLength);h>l&&(l=h,a=e)}n.originalStart-=a,n.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],i=e[t],r=i.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=i.originalStart+i.originalLength,a=o-s,l=n.modifiedStart,c=i.modifiedStart+i.modifiedLength,h=c-l;if(r<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(s,a,l,h,r);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,i.originalStart=t+r,i.modifiedStart=s+r,i.originalLength=o-i.originalStart,i.modifiedLength=c-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,r){if(t<r||i<r)return null;const s=e+t-r+1,o=n+i-r+1;let a=0,l=0,c=0;for(let h=e;h<s;h++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(h,e,r);t>0&&t>a&&(a=t,l=h,c=e)}return a>0?[l,c]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(r,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2===0;if(e<0){return r===(n%2===0)?0:1}return r===((i-n-1)%2===0)?i-1:i-2}}var d=n(6677),u=n(534);class p{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;r<s;r++)i[r]=n;this._data=i,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class m{constructor(e){let t=0,n=0;for(let r=0,s=e.length;r<s;r++){const[i,s,o]=e[r];s>t&&(t=s),i>n&&(n=i),o>n&&(n=o)}t++,n++;const i=new p(n,t,0);for(let r=0,s=e.length;r<s;r++){const[t,n,s]=e[r];i.set(t,n,s)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let f=null;let g=null;class b{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=function(){return null===f&&(f=new m([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),f}()){const n=function(){if(null===g){g=new u.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)g.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)g.set(t.charCodeAt(n),2)}return g}(),i=[];for(let r=1,s=e.getLineCount();r<=s;r++){const s=e.getLineContent(r),o=s.length;let a=0,l=0,c=0,h=1,d=!1,u=!1,p=!1,m=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===h){let t;switch(o){case 40:d=!0,t=0;break;case 41:t=d?0:1;break;case 91:p=!0,u=!0,t=0;break;case 93:p=!1,t=u?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=c===o?1:39===c||34===c||96===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=p?0:1;break;default:t=n.get(o)}1===t&&(i.push(b._createLink(n,s,r,l,a)),e=!0)}else if(12===h){let t;91===o?(u=!0,t=0):t=n.get(o),1===t?e=!0:h=13}else h=t.nextState(h,o),0===h&&(e=!0);e&&(h=1,d=!1,u=!1,m=!1,l=a+1,c=o),a++}13===h&&i.push(b._createLink(n,s,r,l,o))}return i}}class v{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new v}navigateValueSet(e,t,n,i,r){if(e&&t){const n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){const e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,s=e.length;null===i&&r<s;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}var y=n(4272),w=n(718),_=n(8381),k=n(4855);class C{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class S{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var x=n(4383),E=n(6571),F=n(3069),L=n(6782),I=n(4444);n(973);class T{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class N{static inverse(e,t,n){const i=[];let r=1,s=1;for(const a of e){const e=new N(new E.M(r,a.original.startLineNumber),new E.M(s,a.modified.startLineNumber));e.modified.isEmpty||i.push(e),r=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new N(new E.M(r,t+1),new E.M(s,n+1));return o.modified.isEmpty||i.push(o),i}static clip(e,t,n){const i=[];for(const r of e){const e=r.original.intersect(t),s=r.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&i.push(new N(e,s))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new N(this.modified,this.original)}join(e){return new N(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new M(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new x.D7("not a valid diff");return new M(new d.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new d.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new M(new d.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new d.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(D(this.original.endLineNumberExclusive,e)&&D(this.modified.endLineNumberExclusive,t))return new M(new d.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new d.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new M(d.Q.fromPositions(new F.y(this.original.startLineNumber,1),R(new F.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),d.Q.fromPositions(new F.y(this.modified.startLineNumber,1),R(new F.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new M(d.Q.fromPositions(R(new F.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),R(new F.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),d.Q.fromPositions(R(new F.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),R(new F.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new x.D7}}function R(e,t){if(e.lineNumber<1)return new F.y(1,1);if(e.lineNumber>t.length)return new F.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new F.y(e.lineNumber,n.length+1):e}function D(e,t){return e>=1&&e<=t.length}class A extends N{static fromRangeMappings(e){const t=E.M.join(e.map((e=>E.M.fromRangeInclusive(e.originalRange)))),n=E.M.join(e.map((e=>E.M.fromRangeInclusive(e.modifiedRange))));return new A(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new A(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new A(this.original,this.modified,[this.toRangeMapping()])}}class M{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],i=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition()))throw new x.D7("Range mappings must be sorted")}}constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new M(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new T(this.originalRange,t)}}var O=n(1508);class z{computeDiff(e,t,n){const i=new $(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),r=[];let s=null;for(const o of i.changes){let e,t;e=0===o.originalEndLineNumber?new E.M(o.originalStartLineNumber+1,o.originalStartLineNumber+1):new E.M(o.originalStartLineNumber,o.originalEndLineNumber+1),t=0===o.modifiedEndLineNumber?new E.M(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):new E.M(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let n=new A(e,t,o.charChanges?.map((e=>new M(new d.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new d.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modified.endLineNumberExclusive!==n.modified.startLineNumber&&s.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new A(s.original.join(n.original),s.modified.join(n.modified),s.innerChanges&&n.innerChanges?s.innerChanges.concat(n.innerChanges):void 0),r.pop())),r.push(n),s=n}return(0,L.Ft)((()=>(0,L.Xo)(r,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new C(r,[],i.quitEarly)}}function P(e,t,n,i){return new h(e,t,n).ComputeDiff(i)}class B{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=q(e[i],1),n[i]=j(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const i=[],r=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:t.length+1;for(let e=l;e<c;e++)i[o]=t.charCodeAt(e-1),r[o]=a+1,s[o]=e,o++;!e&&a<n&&(i[o]=10,r[o]=a+1,s[o]=t.length+1,o++)}return new W(i,r,s)}}class W{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class V{constructor(e,t,n,i,r,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new V(i,r,s,o,a,l,c,h)}}class U{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,s,o){let a,l,c,h,d;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=i.getStartLineNumber(t.modifiedStart)-1,h=0):(c=i.getStartLineNumber(t.modifiedStart),h=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=P(s,a,r,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),o=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(e)),d=[];for(let t=0,n=e.length;t<n;t++)d.push(V.createFromDiffChange(e[t],s,a))}}return new U(a,l,c,h,d)}}class ${constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new B(e),this.modified=new B(t),this.continueLineDiff=K(n.maxComputationTime),this.continueCharDiff=K(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=P(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(U.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;r<n&&s<l;){const e=this.originalLines[r],t=this.modifiedLines[s];if(e!==t){{let n=q(e,1),o=q(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,s+1,1,o)}{let n=j(e,1),o=j(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,s+1,o,l)}}r++,s++}e&&(i.push(U.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new V(t,n,t,i,r,s,r,o)]),e.push(new U(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===r?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new V(t,n,t,i,r,s,r,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new V(t,n,t,i,r,s,r,o)),!0))}}function q(e,t){const n=O.HG(e);return-1===n?t:n+1}function j(e,t){const n=O.lT(e);return-1===n?t:n+2}function K(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var H=n(9861);class G{static trivial(e,t){return new G([new Q(I.L.ofLength(e.length),I.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new G([new Q(I.L.ofLength(e.length),I.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Q{static invert(e,t){const n=[];return(0,H.pN)(e,((e,i)=>{n.push(Q.fromOffsetPairs(e?e.getEndExclusives():J.zero,i?i.getStarts():new J(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new Q(new I.L(e.offset1,t.offset1),new I.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new x.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new Q(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Q(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new Q(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new Q(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new Q(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new Q(t,n)}getStarts(){return new J(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new J(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class J{static{this.zero=new J(0,0)}static{this.max=new J(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new J(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class Y{static{this.instance=new Y}isValid(){return!0}}class X{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new x.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class Z{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}}function ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let i=0;for(let r=e.startLineNumber-1;r<e.endLineNumberExclusive-1;r++){const e=t[r];for(let t=0;t<e.length;t++){i++;const n=e[t],r=te.getKey(n);this.histogram[r]=(this.histogram[r]||0)+1}i++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=i}computeSimilarity(e){let t=0;const n=Math.max(this.histogram.length,e.histogram.length);for(let i=0;i<n;i++)t+=Math.abs((this.histogram[i]??0)-(e.histogram[i]??0));return 1-t/(this.totalCount+e.totalCount)}}class ne{compute(e,t,n=Y.instance,i){if(0===e.length||0===t.length)return G.trivial(e,t);const r=new Z(e.length,t.length),s=new Z(e.length,t.length),o=new Z(e.length,t.length);for(let p=0;p<e.length;p++)for(let a=0;a<t.length;a++){if(!n.isValid())return G.trivialTimedOut(e,t);const l=0===p?0:r.get(p-1,a),c=0===a?0:r.get(p,a-1);let h;e.getElement(p)===t.getElement(a)?(h=0===p||0===a?0:r.get(p-1,a-1),p>0&&a>0&&3===s.get(p-1,a-1)&&(h+=o.get(p-1,a-1)),h+=i?i(p,a):1):h=-1;const d=Math.max(l,c,h);if(d===h){const e=p>0&&a>0?o.get(p-1,a-1):0;o.set(p,a,e+1),s.set(p,a,3)}else d===l?(o.set(p,a,0),s.set(p,a,1)):d===c&&(o.set(p,a,0),s.set(p,a,2));r.set(p,a,d)}const a=[];let l=e.length,c=t.length;function h(e,t){e+1===l&&t+1===c||a.push(new Q(new I.L(e+1,l),new I.L(t+1,c))),l=e,c=t}let d=e.length-1,u=t.length-1;for(;d>=0&&u>=0;)3===s.get(d,u)?(h(d,u),d--,u--):1===s.get(d,u)?d--:u--;return h(-1,-1),a.reverse(),new G(a,!1)}}class ie{compute(e,t,n=Y.instance){if(0===e.length||0===t.length)return G.trivial(e,t);const i=e,r=t;function s(e,t){for(;e<i.length&&t<r.length&&i.getElement(e)===r.getElement(t);)e++,t++;return e}let o=0;const a=new se;a.set(0,s(0,0));const l=new oe;l.set(0,0===a.get(0)?null:new re(null,0,0,a.get(0)));let c=0;e:for(;;){if(o++,!n.isValid())return G.trivialTimedOut(i,r);const e=-Math.min(o,r.length+o%2),t=Math.min(o,i.length+o%2);for(c=e;c<=t;c+=2){let n=0;const o=c===t?-1:a.get(c+1),h=c===e?-1:a.get(c-1)+1;n++;const d=Math.min(Math.max(o,h),i.length),u=d-c;if(n++,d>i.length||u>r.length)continue;const p=s(d,u);a.set(c,p);const m=d===o?l.get(c+1):l.get(c-1);if(l.set(c,p!==d?new re(m,d,u,p-d):m),a.get(c)===i.length&&a.get(c)-c===r.length)break e}}let h=l.get(c);const d=[];let u=i.length,p=r.length;for(;;){const e=h?h.x+h.length:0,t=h?h.y+h.length:0;if(e===u&&t===p||d.push(new Q(new I.L(e,u),new I.L(t,p))),!h)break;u=h.x,p=h.y,h=h.prev}return d.reverse(),new G(d,!1)}}class re{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class se{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class oe{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}var ae=n(6041),le=n(4320);class ce{constructor(e,t,n){this.lines=e,this.range=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let t=e[i-1],r=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(r=this.range.startColumn-1,t=t.substring(r)),this.lineStartOffsets.push(r);let s=0;if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const o=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-r-s,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));i<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new I.L(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=pe(e>0?this.elements[e-1]:-1),n=pe(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let i=0;return t!==n&&(i+=10,0===t&&1===n&&(i+=1)),i+=ue(t),i+=ue(n),i}translateOffset(e,t="right"){const n=(0,ae.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),i=e-this.firstElementOffsetByLineIdx[n];return new F.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+i+(0===i&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?d.Q.fromPositions(n,n):d.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!he(this.elements[e]))return;let t=e;for(;t>0&&he(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&he(this.elements[n]);)n++;return new I.L(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){const t=(0,ae.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,ae.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new I.L(t,n)}}function he(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const de={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function ue(e){return de[e]}function pe(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function me(e,t,n,i,r,s){let{moves:o,excludedChanges:a}=function(e,t,n,i){const r=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),a=new Set;for(const l of s){let e,t=-1;for(const n of o){const i=l.computeSimilarity(n);i>t&&(t=i,e=n)}if(t>.9&&e&&(o.delete(e),r.push(new N(l.range,e.range)),a.add(l.source),a.add(e.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,i,r,s){const o=[],a=new le.db;for(const u of e)for(let e=u.original.startLineNumber;e<u.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new E.M(e,e+3)})}const l=[];e.sort((0,H.VE)((e=>e.modified.startLineNumber),H.U9));for(const u of e){let e=[];for(let t=u.modified.startLineNumber;t<u.modified.endLineNumberExclusive-2;t++){const i=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,r=new E.M(t,t+3),s=[];a.forEach(i,(({range:t})=>{for(const i of e)if(i.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&i.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return i.originalLineRange=new E.M(i.originalLineRange.startLineNumber,t.endLineNumberExclusive),i.modifiedLineRange=new E.M(i.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void s.push(i);const n={modifiedLineRange:r,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((0,H.Hw)((0,H.VE)((e=>e.modifiedLineRange.length),H.U9)));const c=new E.S,h=new E.S;for(const u of l){const e=u.modifiedLineRange.startLineNumber-u.originalLineRange.startLineNumber,t=c.subtractFrom(u.modifiedLineRange),n=h.subtractFrom(u.originalLineRange).getWithDelta(e),i=t.getIntersection(n);for(const r of i.ranges){if(r.length<3)continue;const t=r,n=r.delta(-e);o.push(new N(n,t)),c.addRange(t),h.addRange(n)}}o.sort((0,H.VE)((e=>e.original.startLineNumber),H.U9));const d=new ae.vJ(e);for(let u=0;u<o.length;u++){const t=o[u],n=d.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=(0,ae.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),p=d.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),f=Math.max(p.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let g,b;for(g=0;g<l;g++){const e=t.original.startLineNumber-g-1,n=t.modified.startLineNumber-g-1;if(e>i.length||n>r.length)break;if(c.contains(n)||h.contains(e))break;if(!fe(i[e-1],r[n-1],s))break}for(g>0&&(h.addRange(new E.M(t.original.startLineNumber-g,t.original.startLineNumber)),c.addRange(new E.M(t.modified.startLineNumber-g,t.modified.startLineNumber))),b=0;b<f;b++){const e=t.original.endLineNumberExclusive+b,n=t.modified.endLineNumberExclusive+b;if(e>i.length||n>r.length)break;if(c.contains(n)||h.contains(e))break;if(!fe(i[e-1],r[n-1],s))break}b>0&&(h.addRange(new E.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+b)),c.addRange(new E.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+b))),(g>0||b>0)&&(o[u]=new N(new E.M(t.original.startLineNumber-g,t.original.endLineNumberExclusive+b),new E.M(t.modified.startLineNumber-g,t.modified.endLineNumberExclusive+b)))}return o}(e.filter((e=>!a.has(e))),i,r,t,n,s);return(0,H.E4)(o,l),o=function(e){if(0===e.length)return e;e.sort((0,H.VE)((e=>e.original.startLineNumber),H.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,o=r.modified.startLineNumber-i.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const i of e)t(i)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new ae.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new N(new E.M(1,1),new E.M(1,1)))!==(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function fe(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=(new ie).compute(new ce([e],new d.Q(1,1,1,e.length),!1),new ce([t],new d.Q(1,1,1,t.length),!1),n);let r=0;const s=Q.invert(i.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||r++}));const o=function(t){let n=0;for(let i=0;i<e.length;i++)ee(t.charCodeAt(i))||n++;return n}(e.length>t.length?e:t);return r/o>.6&&o>10}function ge(e,t,n){let i=n;return i=be(e,t,i),i=be(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,s=n[i],o=i+1<n.length?n[i+1]:void 0,a=new I.L(r?r.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new I.L(r?r.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[i]=ve(s,e,t,a,l):s.seq2Range.isEmpty&&(n[i]=ve(s.swap(),t,e,l,a).swap())}return n}(e,t,i),i}function be(e,t,n){if(0===n.length)return n;const i=[];i.push(n[0]);for(let s=1;s<n.length;s++){const r=i[i.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-r.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){i[i.length-1]=new Q(new I.L(r.seq1Range.start,o.seq1Range.endExclusive-n),new I.L(r.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}i.push(o)}const r=[];for(let s=0;s<i.length-1;s++){const n=i[s+1];let o=i[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const r=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<r&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===r){i[s+1]=new Q(new I.L(o.seq1Range.start+r,n.seq1Range.endExclusive),new I.L(o.seq2Range.start+r,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}r.push(o)}return i.length>0&&r.push(i[i.length-1]),r}function ve(e,t,n,i,r){let s=1;for(;e.seq1Range.start-s>=i.start&&e.seq2Range.start-s>=r.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<i.endExclusive&&e.seq2Range.endExclusive+o<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,l=-1;for(let c=-s;c<=o;c++){const i=e.seq2Range.start+c,r=e.seq2Range.endExclusive+c,s=e.seq1Range.start+c,o=t.getBoundaryScore(s)+n.getBoundaryScore(i)+n.getBoundaryScore(r);o>l&&(l=o,a=c)}return e.delta(a)}class ye{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:we(this.lines[e-1]))+(e===this.lines.length?0:we(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function we(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class _e{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new ie}computeDiff(e,t,n){if(e.length<=1&&(0,H.aI)(e,t,((e,t)=>e===t)))return new C([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new C([new A(new E.M(1,e.length+1),new E.M(1,t.length+1),[new M(new d.Q(1,1,e.length,e[e.length-1].length+1),new d.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const i=0===n.maxComputationTimeMs?Y.instance:new X(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),c=new ye(a,e),h=new ye(l,t),u=(()=>c.length+h.length<1700?this.dynamicProgrammingDiffing.compute(c,h,i,((n,i)=>e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99)):this.myersDiffingAlgorithm.compute(c,h,i))();let p=u.diffs,m=u.hitTimeout;p=ge(c,h,p),p=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const o=[i[0]];for(let a=1;a<i.length;a++){const l=i[a],c=o[o.length-1];function h(t,n){const i=new I.L(c.seq1Range.endExclusive,l.seq1Range.start);return e.getText(i).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}h(c,l)?(r=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}i=o}while(s++<10&&r);return i}(c,0,p);const f=[],g=n=>{if(r)for(let s=0;s<n;s++){const n=b+s,o=v+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new Q(new I.L(n,n+1),new I.L(o,o+1)),i,r);for(const e of s.mappings)f.push(e);s.hitTimeout&&(m=!0)}}};let b=0,v=0;for(const d of p){(0,L.Ft)((()=>d.seq1Range.start-b===d.seq2Range.start-v));g(d.seq1Range.start-b),b=d.seq1Range.endExclusive,v=d.seq2Range.endExclusive;const n=this.refineDiff(e,t,d,i,r);n.hitTimeout&&(m=!0);for(const e of n.mappings)f.push(e)}g(e.length-b);const y=ke(f,e,t);let w=[];return n.computeMoves&&(w=this.computeMoves(y,e,t,a,l,i,r)),(0,L.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function i(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const r of y){if(!r.innerChanges)return!1;for(const i of r.innerChanges){if(!(n(i.modifiedRange.getStartPosition(),t)&&n(i.modifiedRange.getEndPosition(),t)&&n(i.originalRange.getStartPosition(),e)&&n(i.originalRange.getEndPosition(),e)))return!1}if(!i(r.modified,t)||!i(r.original,e))return!1}return!0})),new C(y,w,m)}computeMoves(e,t,n,i,r,s,o){return me(e,t,n,i,r,s).map((e=>{const i=ke(this.refineDiff(t,n,new Q(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new S(e,i)}))}refineDiff(e,t,n,i,r){var s;const o=(s=n,new N(new E.M(s.seq1Range.start+1,s.seq1Range.endExclusive+1),new E.M(s.seq2Range.start+1,s.seq2Range.endExclusive+1))).toRangeMapping2(e,t),a=new ce(e,o.originalRange,r),l=new ce(t,o.modifiedRange,r),c=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,i):this.myersDiffingAlgorithm.compute(a,l,i),h=!1;let d=c.diffs;d=ge(a,l,d),d=function(e,t,n){const i=Q.invert(n,e.length),r=[];let s=new J(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let c=new Q(a,l);const h=c.intersect(o);let d=h.seq1Range.length,u=h.seq2Range.length;for(;i.length>0;){const n=i[0];if(!n.seq1Range.intersects(c.seq1Range)&&!n.seq2Range.intersects(c.seq2Range))break;const r=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new Q(r,s),a=o.intersect(n);if(d+=a.seq1Range.length,u+=a.seq2Range.length,c=c.join(o),!(c.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;i.shift()}d+u<2*(c.seq1Range.length+c.seq2Range.length)/3&&r.push(c),s=c.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let s;s=i&&(!r||i.seq1Range.start<r.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,r)}(a,l,d),d=function(e,t,n){const i=[];for(const r of n){const e=i[i.length-1];e&&(r.seq1Range.start-e.seq1Range.endExclusive<=2||r.seq2Range.start-e.seq2Range.endExclusive<=2)?i[i.length-1]=new Q(e.seq1Range.join(r.seq1Range),e.seq2Range.join(r.seq2Range)):i.push(r)}return i}(0,0,d),d=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const a=[i[0]];for(let l=1;l<i.length;l++){const c=i[l],h=a[a.length-1];function d(n,i){const r=new I.L(h.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const s=e.getText(r).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,u=e.countLinesIn(i.seq1Range),p=i.seq1Range.length,m=t.countLinesIn(i.seq2Range),f=i.seq2Range.length;function g(e){return Math.min(e,130)}return Math.pow(Math.pow(g(40*o+a),1.5)+Math.pow(g(40*l+d),1.5),1.5)+Math.pow(Math.pow(g(40*u+p),1.5)+Math.pow(g(40*m+f),1.5),1.5)>74184.96480721243}d(h,c)?(r=!0,a[a.length-1]=a[a.length-1].join(c)):a.push(c)}i=a}while(s++<10&&r);const o=[];return(0,H.kj)(i,((t,n,i)=>{let r=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new I.L(a.start,n.seq1Range.start));s(l)&&(r=r.deltaStart(-l.length));const c=e.getText(new I.L(n.seq1Range.endExclusive,a.endExclusive));s(c)&&(r=r.deltaEnd(c.length));const h=Q.fromOffsetPairs(t?t.getEndExclusives():J.zero,i?i.getStarts():J.max),d=r.intersect(h);o.length>0&&d.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(d):o.push(d)})),o}(a,l,d);const u=d.map((e=>new M(a.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:u,hitTimeout:c.hitTimeout}}}function ke(e,t,n,i=!1){const r=[];for(const s of(0,H.n)(e.map((e=>function(e,t,n){let i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const s=new E.M(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),o=new E.M(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new A(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];r.push(new A(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,L.Ft)((()=>{if(!i&&r.length>0){if(r[0].modified.startLineNumber!==r[0].original.startLineNumber)return!1;if(n.length-r[r.length-1].modified.endLineNumberExclusive!==t.length-r[r.length-1].original.endLineNumberExclusive)return!1}return(0,L.Xo)(r,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),r}const Ce=()=>new z,Se=()=>new _e;var xe=n(146),Ee=n(6456),Fe=n(7661);function Le(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Ie(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function Te(e,t){const n=t.index,i=t[0].length;if(!n)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Ne(e,t){if(!e)return;const n=Fe.Q1.Format.CSS.parseHex(t);return n?{range:e,color:Ie(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Re(e,t,n){if(!e||1!==t.length)return;const i=Le(t[0].values());return{range:e,color:Ie(i[0],i[1],i[2],n?i[3]:1)}}function De(e,t,n){if(!e||1!==t.length)return;const i=Le(t[0].values()),r=new Fe.Q1(new Fe.hB(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:Ie(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function Ae(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function Me(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Ae(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(const i of n){const n=i.filter((e=>void 0!==e)),r=n[1],s=n[2];if(!s)continue;let o;if("rgb"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=Re(Te(e,i),Ae(s,t),!1)}else if("rgba"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Re(Te(e,i),Ae(s,t),!0)}else if("hsl"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=De(Te(e,i),Ae(s,t),!1)}else if("hsla"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=De(Te(e,i),Ae(s,t),!0)}else"#"===r&&(o=Ne(Te(e,i),r+s));o&&t.push(o)}return t}(e):[]}var Oe=n(6691),ze=n(796);class Pe{constructor(){this._workerTextModelSyncServer=new ze.WorkerTextModelSyncServer}dispose(){}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,n){const i=this._getModel(e);return i?k.UnicodeTextModelHighlighter.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Oe.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,i){const r=this._getModel(e),s=this._getModel(t);if(!r||!s)return null;return Be.computeDiff(r,s,n,i)}static computeDiff(e,t,n,i){const r="advanced"===i?Se():Ce(),s=e.getLinesContent(),o=t.getLinesContent(),a=r.computeDiff(s,o,n);function l(e){return e.map((e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,n){const i=this._getModel(e);if(!i)return t;const r=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return d.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let a=0;for(let o=1;o<t.length;o++)d.Q.getEndPosition(t[a].range).equals(d.Q.getStartPosition(t[o].range))?(t[a].range=d.Q.fromPositions(d.Q.getStartPosition(t[a].range),d.Q.getEndPosition(t[o].range)),t[a].text+=t[o].text):(a++,t[a]=t[o]);t.length=a+1;for(let{range:l,text:c,eol:h}of t){if("number"===typeof h&&(s=h),d.Q.isEmpty(l)&&!c)continue;const e=i.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,i.eol),e===c)continue;if(Math.max(c.length,e.length)>Be._diffLimit){r.push({range:l,text:c});continue}const t=o(e,c,n),a=i.offsetAt(d.Q.lift(l).getStartPosition());for(const n of t){const e=i.positionAt(a+n.originalStart),t=i.positionAt(a+n.originalStart+n.originalLength),s={text:c.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};i.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"===typeof s&&r.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?b.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?Me(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,i){const r=new _.W,s=new RegExp(n,i),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>Be._suggestionsLimit))break e}return{words:Array.from(o),duration:r.elapsed()}}async $computeWordRanges(e,t,n,i){const r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=r.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,n,i,r){const s=this._getModel(e);if(!s)return null;const o=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const c=s.getValueInRange(l);return v.INSTANCE.navigateValueSet(t,a,l,c,n)}}class Be extends Pe{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,i){const r={host:(0,xe.kT)(i,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve((0,xe.V0)(this._foreignModule))):new Promise(((i,s)=>{const o=e=>{this._foreignModule=e.create(r,t),i((0,xe.V0)(this._foreignModule))};{const t=Ee.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(o).catch(s)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function We(e){return new Be(w.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,y.createMonacoBaseAPI)())},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>i});const i=(0,n(3591).u1)("editorWorkerService")},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>i});class i{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(i.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(i.CHANNEL_NAME,t)}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>s});const i=new RegExp("\\bMARK:\\s*(.*)$","d"),r=/^-+|-+$/g;function s(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const i=function(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const i=e.getLineContent(r),s=i.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:r,startColumn:s[0].length+1,endLineNumber:r,endColumn:i.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(i.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++){o(e.getLineContent(i),i,t)}return t}(e);n=n.concat(t)}return n}function o(e,t,n){i.lastIndex=0;const r=i.exec(e);if(r){const e={startLineNumber:t,startColumn:r.indices[1][0]+1,endLineNumber:t,endColumn:r.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(r[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(r,""),hasSeparatorLine:t}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>u});var i,r=n(6456),s=n(9403),o=n(9400),a=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(i||(i={}));var l,c,h=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const i=t.exec(e.id);if(!i)return n(h.W.error);const[,r,s]=i,o=["codicon","codicon-"+r];return s&&o.push("codicon-modifier-"+s.substring(1)),o}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const i=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=i.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(c||(c={}));const d=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function u(e,t,n,l,h){if(c.isThemeIcon(h))return[`codicon-${h.id}`,"predefined-file-icon"];if(o.r.isUri(h))return[];const u=l===i.ROOT_FOLDER?["rootfolder-icon"]:l===i.FOLDER?["folder-icon"]:["file-icon"];if(n){let o;if(n.scheme===r.ny.data){o=s.B6.parseMetaData(n).get(s.B6.META_DATA_LABEL)}else{const e=n.path.match(d);e?(o=p(e[2].toLowerCase()),e[1]&&u.push(`${p(e[1].toLowerCase())}-name-dir-icon`)):o=p(n.authority.toLowerCase())}if(l===i.ROOT_FOLDER)u.push(`${o}-root-name-folder-icon`);else if(l===i.FOLDER)u.push(`${o}-name-folder-icon`);else{if(o){if(u.push(`${o}-name-file-icon`),u.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t<e.length;t++)u.push(`${e.slice(t).join(".")}-ext-file-icon`)}u.push("ext-file-icon")}const i=function(e,t,n){if(!n)return null;let i=null;if(n.scheme===r.ny.data){const e=s.B6.parseMetaData(n).get(s.B6.META_DATA_MIME);e&&(i=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(i=t.getLanguageId())}if(i&&i!==a.vH)return i;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);i&&u.push(`${p(i)}-lang-file-icon`)}}return u}function p(e){return e.replace(/[\s]/g,"/")}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>f,LanguageFeatureDebounceService:()=>y});var i=n(5600),r=n(4320);function s(e,t,n){return Math.min(Math.max(e,t),n)}class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class a{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const c=(0,l.u1)("environmentService");var h=n(4621),d=n(3511),u=n(6456),p=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},m=function(e,t){return function(n,i){t(n,i,e)}};const f=(0,l.u1)("ILanguageFeatureDebounceService");var g;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let i=t.get(e);return void 0===i&&(i=++n,t.set(e,i)),i}}(g||(g={}));class b{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class v{constructor(e,t,n,i,s,o){this._logService=e,this._name=t,this._registry=n,this._default=i,this._min=s,this._max=o,this._cache=new r.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,i.sN)(g.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?s(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let i=this._cache.get(n);i||(i=new a(6),this._cache.set(n,i));const r=s(i.update(t),this._min,this._max);return(0,u.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${r}ms`),r}_overall(){const e=new o;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return s(0|this._overall()||this._default,this._min,this._max)}}let y=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const i=n?.min??50,r=n?.max??i**2,s=n?.key??void 0,o=`${g.of(e)},${i}${s?","+s:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new b(1.5*i)):a=new v(this._logService,t,e,0|this._overallAverage()||1.5*i,i,r),this._data.set(o,a)),a}_overallAverage(){const e=new o;for(const t of this._data.values())e.update(t.default());return e.value}};y=p([m(0,d.rr),m(1,c)],y),(0,h.v)(f,y,1)},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>i});const i=(0,n(3591).u1)("ILanguageFeaturesService")},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>f});var i=n(1234),r=n(1484),s=n(6223),o=n(6958),a=n(8821);function l(e,t,n,i,r,s){if(Array.isArray(e)){let o=0;for(const a of e){const e=l(a,t,n,i,r,s);if(10===e)return e;e>o&&(o=e)}return o}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:c,scheme:h,hasAccessToAllModels:d,notebookType:u}=e;if(!i&&!d)return 0;u&&r&&(t=r);let p=0;if(h)if(h===t.scheme)p=10;else{if("*"!==h)return 0;p=5}if(l)if(l===n)p=10;else{if("*"!==l)return 0;p=Math.max(p,5)}if(u)if(u===s)p=10;else{if("*"!==u||void 0===s)return 0;p=Math.max(p,5)}if(c){let e;if(e="string"===typeof c?c:{...c,base:(0,a.S8)(c.base)},e!==t.fsPath&&!(0,o.YW)(e,t.fsPath))return 0;p=10}return p}return 0}function c(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(c):!!e.exclusive)}class h{constructor(e,t,n,i,r){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=i,this.recursive=r}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class d{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new i.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,r.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,i;return this._orderedForEach(e,!1,(e=>{n&&i===e._score?n.push(e.provider):(i=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const i of this._entries)i._score>0&&n(i)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),i=n?new h(e.uri,e.getLanguageId(),n.uri,n.type,t):new h(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(i)){this._lastCandidate=i;for(const n of this._entries)if(n._score=l(n.selector,i.uri,i.languageId,(0,s.vd)(e),i.notebookUri,i.notebookType),c(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(d._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:u(e.selector)&&!u(t.selector)?1:!u(e.selector)&&u(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function u(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(u):Boolean(e.isBuiltin))}var p=n(6942),m=n(4621);class f{constructor(){this.referenceProvider=new d(this._score.bind(this)),this.renameProvider=new d(this._score.bind(this)),this.newSymbolNamesProvider=new d(this._score.bind(this)),this.codeActionProvider=new d(this._score.bind(this)),this.definitionProvider=new d(this._score.bind(this)),this.typeDefinitionProvider=new d(this._score.bind(this)),this.declarationProvider=new d(this._score.bind(this)),this.implementationProvider=new d(this._score.bind(this)),this.documentSymbolProvider=new d(this._score.bind(this)),this.inlayHintsProvider=new d(this._score.bind(this)),this.colorProvider=new d(this._score.bind(this)),this.codeLensProvider=new d(this._score.bind(this)),this.documentFormattingEditProvider=new d(this._score.bind(this)),this.documentRangeFormattingEditProvider=new d(this._score.bind(this)),this.onTypeFormattingEditProvider=new d(this._score.bind(this)),this.signatureHelpProvider=new d(this._score.bind(this)),this.hoverProvider=new d(this._score.bind(this)),this.documentHighlightProvider=new d(this._score.bind(this)),this.multiDocumentHighlightProvider=new d(this._score.bind(this)),this.selectionRangeProvider=new d(this._score.bind(this)),this.foldingRangeProvider=new d(this._score.bind(this)),this.linkProvider=new d(this._score.bind(this)),this.inlineCompletionsProvider=new d(this._score.bind(this)),this.inlineEditProvider=new d(this._score.bind(this)),this.completionProvider=new d(this._score.bind(this)),this.linkedEditingRangeProvider=new d(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new d(this._score.bind(this)),this.documentSemanticTokensProvider=new d(this._score.bind(this)),this.documentDropEditProvider=new d(this._score.bind(this)),this.documentPasteEditProvider=new d(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,m.v)(p.ILanguageFeaturesService,f,1)},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>R});var i=n(1234),r=n(1484),s=n(9259),o=n(9861),a=n(2083),l=n(3941);const c=(e,t)=>e===t;new WeakMap;class h{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=u.get(e);if(n)return n;const i=function(e,t){const n=u.get(e);if(n)return n;const i=t.owner?function(e){const t=m.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let i=p.get(n)??0;i++,p.set(n,i);const r=1===i?n:`${n}#${i}`;return m.set(e,r),r}(t.owner)+".":"";let r;const s=t.debugNameSource;if(void 0!==s){if("function"!==typeof s)return i+s;if(r=s(),void 0!==r)return i+r}const o=t.referenceFn;if(void 0!==o&&(r=f(o),void 0!==r))return i+r;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return i+n}return}(e,t);if(i){let t=d.get(i)??0;t++,d.set(i,t);const n=1===t?i:`${i}#${t}`;return u.set(e,n),n}return}(e,this)}}const d=new Map,u=new WeakMap;const p=new Map,m=new WeakMap;function f(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),i=n?n[1]:void 0;return i?.trim()}let g,b,v,y;function w(){return g}class _{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,i=void 0===t?e:t;return y({owner:n,debugName:()=>{const e=f(i);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:i},(e=>i(this.read(e),e)))}flatten(){return y({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(b(this,t)),this}keepObserved(e){return e.add(v(this)),this}}class k extends _{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function C(e,t){const n=new S(e,t);try{e(n)}finally{n.finish()}}class S{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],w()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():f(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:i}=e[t];n.endUpdate(i)}this.updatingObservers=null,w()?.handleEndTransaction()}}var x=n(6782);!function(e){y=e}((function(e,t){return new E(new h(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??c)}));class E extends k{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i,r=void 0,s){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=i,this._handleLastObserverRemoved=r,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),w()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const i=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,i)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=t&&!this._equalityComparator(n,this.value);if(w()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:r,hadValue:t}),r)for(const s of this.observers)s.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,x.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),i=3===this.state;if(n&&(1===this.state||i)&&(this.state=2,i))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function F(e){return new L(new h(void 0,void 0,e),e,void 0,void 0)}class L{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=i,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),w()?.handleAutorunCreated(this),this._runIfNeeded(),(0,r.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,r.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){w()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||w()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,x.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=L}(F||(F={}));function I(...e){let t,n,i;return 3===e.length?[t,n,i]=e:[n,i]=e,new T(new h(t,void 0,i),n,i,(()=>T.globalTransaction),c)}class T extends k{constructor(e,t,n,i,r){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=i,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,i=!this.hasValue||!this._equalityComparator(n,t);let r=!1;i&&(this.value=t,this.hasValue&&(r=!0,function(e,t,n){e?t(e):C(t,n)}(this._getTransaction(),(e=>{w()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||w()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=T,e.batchEventsGlobally=function(e,t){let n=!1;void 0===T.globalTransaction&&(T.globalTransaction=e,n=!0);try{t()}finally{n&&(T.globalTransaction=void 0)}}}(I||(I={}));!function(e){v=e}((function(e){const t=new N(!1,void 0);return e.addObserver(t),(0,r.s)((()=>{e.removeObserver(t)}))})),function(e){b=e}((function(e,t){const n=new N(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,r.s)((()=>{e.removeObserver(n)}))}));class N{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class R extends r.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new i.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new i.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new i.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,R.instanceCount++,this._registry=this._register(new s.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){R.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(n,null)}createById(e){return new D(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new D(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class D{constructor(e,t){this._value=I(this,e,(()=>t())),this.onDidChange=i.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>m,getLanguageIds:()=>f,registerPlatformLanguageAssociation:()=>p});var i=n(6958),r=n(1939),s=n(6456),o=n(8821),a=n(9403),l=n(1508),c=n(3941);let h=[],d=[],u=[];function p(e,t=!1){!function(e,t,n){const r=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,i.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);h.push(r),r.userConfigured?u.push(r):d.push(r);n&&!r.userConfigured&&h.forEach((e=>{e.mime===r.mime||e.userConfigured||(r.extension&&e.extension===r.extension&&console.warn(`Overwriting extension <<${r.extension}>> to now point to mime <<${r.mime}>>`),r.filename&&e.filename===r.filename&&console.warn(`Overwriting filename <<${r.filename}>> to now point to mime <<${r.mime}>>`),r.filepattern&&e.filepattern===r.filepattern&&console.warn(`Overwriting filepattern <<${r.filepattern}>> to now point to mime <<${r.mime}>>`),r.firstline&&e.firstline===r.firstline&&console.warn(`Overwriting firstline <<${r.firstline}>> to now point to mime <<${r.mime}>>`))}))}(e,!1,t)}function m(){h=h.filter((e=>e.userConfigured)),d=[]}function f(e,t){return function(e,t){let n;if(e)switch(e.scheme){case s.ny.file:n=e.fsPath;break;case s.ny.data:n=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case s.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:r.K.unknown}];n=n.toLowerCase();const i=(0,o.P8)(n),p=g(n,i,u);if(p)return[p,{id:c.vH,mime:r.K.text}];const m=g(n,i,d);if(m)return[m,{id:c.vH,mime:r.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=h.length-1;t>=0;t--){const n=h[t];if(!n.firstline)continue;const i=e.match(n.firstline);if(i&&i.length>0)return n}return}(t);if(e)return[e,{id:c.vH,mime:r.K.text}]}return[{id:"unknown",mime:r.K.unknown}]}(e,t).map((e=>e.id))}function g(e,t,n){let i,r,s;for(let o=n.length-1;o>=0;o--){const a=n[o];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!r||a.filepattern.length>r.filepattern.length)){const n=a.filepatternOnPath?e:t;a.filepatternLowercase?.(n)&&(r=a)}a.extension&&(!s||a.extension.length>s.extension.length)&&t.endsWith(a.extensionLowercase)&&(s=a)}return i||(r||(s||void 0))}},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>u,LanguagesRegistry:()=>p});var i=n(1234),r=n(1484),s=n(1508),o=n(9908),a=n(3941),l=n(1646),c=n(6359);const h=Object.prototype.hasOwnProperty,d="vs.editor.nullLanguage";class u{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(d,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||d}}class p extends r.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,p.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new u,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){p.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),c.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;h.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let i=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),i=t.mimetypes[0]),i||(i=`text/x-${n}`,e.mimetypes.push(i)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const s of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filename:s},this._warnOnOverwrite),e.filenames.push(s);if(Array.isArray(t.filenamePatterns))for(const s of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filepattern:s},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,s.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let r=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(r=0===t.aliases.length?[null]:t.aliases),null!==r)for(const s of r)s&&0!==s.length&&e.aliases.push(s);const a=null!==r&&r.length>0;if(a&&null===r[0]);else{const t=(a?r[0]:null)||n;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&h.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return h.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&h.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>i});const i=(0,n(3591).u1)("markerDecorationsService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>C});var i,r=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){const t="error",n="warning",i="info";e.fromValue=function(s){return s?r.Q_(t,s)?e.Error:r.Q_(n,s)||r.Q_("warn",s)?e.Warning:r.Q_(i,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(r){switch(r){case e.Error:return t;case e.Warning:return n;case e.Info:return i;default:return"ignore"}}}(i||(i={}));const s=i;var o,a,l=n(8209),c=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(o||(o={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.Error:return e.Error;case s.Warning:return e.Warning;case s.Info:return e.Info;case s.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.Error;case e.Warning:return s.Warning;case e.Info:return s.Info;case e.Hint:return s.Ignore}}}(o||(o={})),function(e){const t="";function n(e,n){const i=[t];return e.source?i.push(e.source.replace("\xa6","\\\xa6")):i.push(t),e.code?"string"===typeof e.code?i.push(e.code.replace("\xa6","\\\xa6")):i.push(e.code.value.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.severity&&null!==e.severity?i.push(o.toString(e.severity)):i.push(t),e.message&&n?i.push(e.message.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(t),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(t),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(t),i.push(t),i.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(a||(a={}));const h=(0,c.u1)("markerService");var d=n(1484),u=n(6223),p=n(5724),m=n(7119),f=n(3750),g=n(6677),b=n(6456),v=n(1234),y=n(5845),w=n(4320);var _=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},k=function(e,t){return function(n,i){t(n,i,e)}};let C=class extends d.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new v.vl),this._markerDecorations=new w.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new S(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==b.ny.inMemory&&e.uri.scheme!==b.ny.internal&&e.uri.scheme!==b.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};C=_([k(0,f.IModelService),k(1,h)],C);class S extends d.jG{constructor(e){super(),this.model=e,this._map=new w.cO,this._register((0,d.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],i=[];for(const r of e)t.has(r)||n.push(r);for(const r of t)e.has(r)||i.push(r);return{removed:n,added:i}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const i=n.map((e=>this._map.get(e))),r=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(i,r);for(const o of n)this._map.delete(o);for(let o=0;o<s.length;o++)this._map.set(t[o],s[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=g.Q.lift(t);if(t.severity!==o.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const i=e.getWordAtPosition(n.getStartPosition());i&&(n=new g.Q(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const i=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);i<n.endColumn&&(n=new g.Q(n.startLineNumber,i,n.endLineNumber,n.endColumn),t.startColumn=i)}return n}_createDecorationOption(e){let t,n,i,r,s;switch(e.severity){case o.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",i=0;break;case o.Info:t="squiggly-info",n=(0,p.Yf)(m.AQ),i=10,s={color:(0,p.Yf)(y.KoI),position:1};break;case o.Warning:t="squiggly-warning",n=(0,p.Yf)(m.aZ),i=20,s={color:(0,p.Yf)(y.uMG),position:1};break;case o.Error:default:t="squiggly-error",n=(0,p.Yf)(m.yI),i=30,s={color:(0,p.Yf)(y.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(r="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(r="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:u.A5.Right},minimap:s,zIndex:i,inlineClassName:r}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>i});const i=(0,n(3591).u1)("modelService")},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>kr,ModelService:()=>_r});var i=n(1234),r=n(1484),s=n(8067),o=n(9861),a=n(7661),l=n(4383),c=n(1508),h=n(9400),d=n(4454);class u{static _nextVisibleColumn(e,t,n){return 9===e?u.nextRenderTabStop(t,n):c.ne(e)||c.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const i=Math.min(t-1,e.length),r=e.substring(0,i),s=new c.km(r);let o=0;for(;!s.eol();){const e=c.Z5(r,i,s.offset);s.nextGraphemeLength(),o=this._nextVisibleColumn(e,o,n)}return o}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const i=e.length,r=new c.km(e);let s=0,o=1;for(;!r.eol();){const a=c.Z5(e,i,r.offset);r.nextGraphemeLength();const l=this._nextVisibleColumn(a,s,n),h=r.offset+1;if(l>=t){return l-t<t-s?h:o}s=l,o=h}return i+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function p(e,t,n){let i=c.HG(e);return-1===i&&(i=e.length),function(e,t,n){let i=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?i=u.nextIndentTabStop(i,t):i++;let r="";if(!n){const e=Math.floor(i/t);i%=t;for(let t=0;t<e;t++)r+="\t"}for(let s=0;s<i;s++)r+=" ";return r}(e.substring(0,i),t,n)+e.substring(i)}var m=n(3069),f=n(6677),g=n(5326);const b={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var v,y=n(154),w=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(v||(v={}));class _{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),i=e.getStandardTokenType(n);return this.isOK(i)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class k{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)C(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),C(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),C(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),C(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&C(this.autoClosingPairsCloseSingleChar,t.close,t)}}function C(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class S{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new _(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new _({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new _({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:S.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:S.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function x(e){return 0!==(3&e)}var E=n(1674);let F,L,I;function T(){return F||(F=new TextDecoder("UTF-16LE")),F}function N(){return I||(I=s.cm()?T():(L||(L=new TextDecoder("UTF-16BE")),L)),I}function R(e,t,n){const i=new Uint16Array(e.buffer,t,n);return n>0&&(65279===i[0]||65534===i[0])?function(e,t,n){const i=[];let r=0;for(let s=0;s<n;s++){const n=E.$l(e,t);t+=2,i[r++]=String.fromCharCode(n)}return i.join("")}(e,t,n):T().decode(i)}class D{constructor(e,t,n,i,r,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=r,this.reversedRegex=s,this._openSet=D._toSet(this.open),this._closeSet=D._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class A{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let o=0;o<t;o++)n[o]=o;const i=(e,t)=>{const[n,i]=e,[r,s]=t;return n===r||n===s||i===r||i===s},r=(e,i)=>{const r=Math.min(e,i),s=Math.max(e,i);for(let o=0;o<t;o++)n[o]===s&&(n[o]=r)};for(let o=0;o<t;o++){const s=e[o];for(let a=o+1;a<t;a++)i(s,e[a])&&r(n[o],n[a])}const s=[];for(let o=0;o<t;o++){const i=[],r=[];for(let s=0;s<t;s++)if(n[s]===o){const[t,n]=e[s];i.push(t),r.push(n)}i.length>0&&s.push({open:i,close:r})}return s}(t);this.brackets=n.map(((t,i)=>new D(e,i,t.open,t.close,function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)M(r[s],n,i,r);return r=z(r),r.sort(O),r.reverse(),B(r)}(t.open,t.close,n,i),function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)M(r[s],n,i,r);return r=z(r),r.sort(O),r.reverse(),B(r.map(W))}(t.open,t.close,n,i)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=z(t),B(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=z(t),B(t.map(W))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const i of this.brackets){for(const e of i.open)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of i.close)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function M(e,t,n,i){for(let r=0,s=t.length;r<s;r++){if(r===n)continue;const s=t[r];for(const t of s.open)t.indexOf(e)>=0&&i.push(t);for(const t of s.close)t.indexOf(e)>=0&&i.push(t)}}function O(e,t){return e.length-t.length}function z(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function P(e){const t=/^[\w ]+$/.test(e);return e=c.bm(e),t?`\\b${e}\\b`:e}function B(e,t){const n=`(${e.map(P).join(")|(")})`;return c.OS(n,!0,t)}const W=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charCodeAt(i);return N().decode(t)}(e)),t}}();class V{static _findPrevBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=n.length-(r.index||0),o=r[0].length,a=i+s;return new f.Q(t,a-o+1,t,a+1)}static findPrevBracketInRange(e,t,n,i,r){const s=W(n).substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,s,i)}static findNextBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=r.index||0,o=r[0].length;if(0===o)return null;const a=i+s;return new f.Q(t,a+1,t,a+1+o)}static findNextBracketInRange(e,t,n,i,r){const s=n.substring(i,r);return this.findNextBracketInText(e,t,s,i)}}class U{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,o.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const i=t.findTokenIndexAtOffset(n-1);if(x(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,n-1)+e,o=V.findPrevBracketInRange(r,1,s,0,s.length);if(!o)return null;const a=s.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function $(e){return e.global&&(e.lastIndex=0),!0}class q{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&$(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&$(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&$(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&$(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class j{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=j._createOpenBracketRegExp(e[0]),n=j._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,i){if(e>=3)for(let r=0,s=this._regExpRules.length;r<s;r++){const e=this._regExpRules[r];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:i},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&i.length>0)for(let r=0,s=this._brackets.length;r<s;r++){const e=this._brackets[r];if(e.openRegExp.test(n)&&e.closeRegExp.test(i))return{indentAction:v.IndentOutdent}}if(e>=2&&n.length>0)for(let r=0,s=this._brackets.length;r<s;r++){if(this._brackets[r].openRegExp.test(n))return{indentAction:v.Indent}}return null}static _createOpenBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",j._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,j._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var K=n(3591),H=n(4001),G=n(4621),Q=n(3941),J=n(1788);class Y{constructor(e,t){this.languageId=e;const n=t.brackets?X(t.brackets):[],i=new J.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),r=new J.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[o,a]of n){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.opening.add(e.info)}const s=t.colorizedBracketPairs?X(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of s){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...i.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return B(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function X(e){return e.filter((([e,t])=>""!==e&&""!==t))}class Z{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends Z{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends Z{constructor(e,t,n,i){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=i,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},ie=function(e,t){return function(n,i){t(n,i,e)}};class re{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const se=(0,K.u1)("languageConfigurationService");let oe=class extends r.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new pe),this.onDidChangeEmitter=this._register(new i.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(ae));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),i=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new re(void 0));else for(const n of i)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new re(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new re(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,i){let r=t.getLanguageConfiguration(e);if(!r){if(!i.isRegisteredLanguageId(e))return new me(e,{});r=new me(e,{})}const s=function(e,t){const n=t.getValue(ae.brackets,{overrideIdentifier:e}),i=t.getValue(ae.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(i)}}(r.languageId,n),o=he([r.underlyingConfig,s]);return new me(r.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};oe=ne([ie(0,H.pG),ie(1,y.L)],oe);const ae={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class ce{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new de(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,r.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new me(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(de.cmp),he(this._entries.map((e=>e.configuration))))}}function he(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class de{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class ue{constructor(e){this.languageId=e}}class pe extends r.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(Q.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let i=this._entries.get(e);i||(i=new ce(e),this._entries.set(e,i));const s=i.register(t,n);return this._onDidChange.fire(new ue(e)),(0,r.s)((()=>{s.dispose(),this._onDidChange.fire(new ue(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class me{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new j(this.underlyingConfig):null,this.comments=me._handleComments(this.underlyingConfig),this.characterPair=new S(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||w.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new q(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new Y(e,this.underlyingConfig)}getWordDefinition(){return(0,w.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new A(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new U(this.brackets)),this._electricCharacter}onEnter(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}getAutoClosingPairs(){return new k(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,i]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=i}return n}}(0,G.v)(se,oe,1);var fe=n(6223);class ge{constructor(e,t,n,i){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=i}}class be{constructor(e,t,n,i,r,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=i,this.nestingLevelOfEqualBracketType=r,this.bracketPairNode=s}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class ve extends be{constructor(e,t,n,i,r,s,o){super(e,t,n,i,r,s),this.minVisibleColumnIndentation=o}}var ye=n(973);function we(e){return 0===e}const _e=2**26;function ke(e,t){return e*_e+t}function Ce(e){const t=e,n=Math.floor(t/_e),i=t-n*_e;return new ye.W(n,i)}function Se(e,t){let n=e+t;return t>=_e&&(n-=e%_e),n}function xe(e,t){return e.reduce(((e,n)=>Se(e,t(n))),0)}function Ee(e,t){return e===t}function Fe(e,t){const n=e,i=t;if(i-n<=0)return 0;const r=Math.floor(n/_e),s=Math.floor(i/_e),o=i-s*_e;if(r===s){return ke(0,o-(n-r*_e))}return ke(s-r,o)}function Le(e,t){return e<t}function Ie(e,t){return e<=t}function Te(e,t){return e>=t}function Ne(e){return ke(e.lineNumber-1,e.column-1)}function Re(e,t){const n=e,i=Math.floor(n/_e),r=n-i*_e,s=t,o=Math.floor(s/_e),a=s-o*_e;return new f.Q(i+1,r+1,o+1,a+1)}class De{static fromModelContentChanges(e){return e.map((e=>{const t=f.Q.lift(e.range);return new De(Ne(t.getStartPosition()),Ne(t.getEndPosition()),function(e){const t=(0,c.uz)(e);return ke(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${Ce(this.startOffset)}...${Ce(this.endOffset)}) -> ${Ce(this.newLength)}`}}class Ae{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>Me.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:Fe(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?ke(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):ke(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Ce(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?ke(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):ke(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!Ie(n,e))break;{this.nextEditIdx++;const e=Ce(n),i=Ce(this.translateOldToCur(t.endOffsetBeforeObj)),r=e.lineCount-i.lineCount;this.deltaOldToNewLineCount+=r;const s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,o=e.columnCount-i.columnCount;this.deltaOldToNewColumnCount=s+o,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class Me{static from(e){return new Me(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=Ce(t),this.endOffsetAfterObj=Ce(Se(e,n)),this.offsetObj=Ce(e)}}const Oe=[];class ze{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=ze.cache[e];return n||(n=new ze(e,t),ze.cache[e]=n),n}return new ze(e,t)}static{this.empty=ze.create(0,Oe)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let i=n>>5;if(0===i){const e=1<<n|this.items;return e===this.items?this:ze.create(e,this.additionalItems)}i--;const r=this.additionalItems.slice(0);for(;r.length<i;)r.push(0);return r[i]|=1<<(31&n),ze.create(this.items,r)}merge(e){const t=this.items|e.items;if(this.additionalItems===Oe&&e.additionalItems===Oe)return t===this.items?this:t===e.items?e:ze.create(t,Oe);const n=[];for(let i=0;i<Math.max(this.additionalItems.length,e.additionalItems.length);i++){const t=this.additionalItems[i]||0,r=e.additionalItems[i]||0;n.push(t|r)}return ze.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const Pe={getKey:e=>e};class Be{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class We{get length(){return this._length}constructor(e){this._length=e}}class Ve extends We{static create(e,t,n){let i=e.length;return t&&(i=Se(i,t.length)),n&&(i=Se(i,n.length)),new Ve(i,e,t,n,t?t.missingOpeningBracketIds:ze.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,i,r){super(e),this.openingBracket=t,this.child=n,this.closingBracket=i,this.missingOpeningBracketIds=r}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new Ve(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(Se(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class Ue extends We{static create23(e,t,n,i=!1){let r=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(r=Se(r,t.length),s=s.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");r=Se(r,n.length),s=s.merge(n.missingOpeningBracketIds)}return i?new qe(r,e.listHeight+1,e,t,n,s):new $e(r,e.listHeight+1,e,t,n,s)}static getEmpty(){return new Ke(0,0,[],ze.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let i=1;i<e;i++){const e=this.getChild(i);t=Se(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,i=e;for(let r=0;r<this.childrenLength;r++){const e=this.getChild(r);e&&(n=Math.min(n,e.computeMinIndentation(i,t)),i=Se(i,e.length))}return this.cachedMinIndentation=n,n}}class $e extends Ue{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,i,r,s){super(e,t,s),this._item1=n,this._item2=i,this._item3=r}deepClone(){return new $e(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class qe extends $e{toMutable(){return new $e(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class je extends Ue{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,i){super(e,t,i),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new je(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class Ke extends je{toMutable(){return new je(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const He=[];class Ge extends We{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return He}deepClone(){return this}}class Qe extends Ge{get kind(){return 0}get missingOpeningBracketIds(){return ze.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=Ce(e),i=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,r=(s=Se(e,this.length),Math.floor(s/_e)+1);var s;let o=Number.MAX_SAFE_INTEGER;for(let a=i;a<=r;a++){const e=t.getLineFirstNonWhitespaceColumn(a),n=t.getLineContent(a);if(0===e)continue;const i=u.visibleColumnFromColumn(n,e,t.getOptions().tabSize);o=Math.min(o,i)}return o}}class Je extends Ge{static create(e,t,n){return new Je(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return ze.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Ye extends Ge{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Xe=n(5982);class Ze{constructor(e,t,n,i,r){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=i,this.astNode=r}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return ke(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=Se(this._offset,e);const t=Ce(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=Se(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const i=this.lineTokens,r=i.getCount();let s=null;if(this.lineTokenOffset<r){const o=i.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&o===i.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const a=0===Xe.x.getTokenType(o),l=Xe.x.containsBalancedBrackets(o),c=i.getEndOffset(this.lineTokenOffset);if(l&&a&&this.lineCharOffset<c){const e=i.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,c),n=this.bracketTokens.getSingleLanguageBracketTokens(e),r=n.regExpGlobal;if(r){r.lastIndex=0;const e=r.exec(t);e&&(s=n.getToken(e[0]),s&&(this.lineCharOffset+=e.index))}}if(n+=c-this.lineCharOffset,s){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=s;break}return this.lineCharOffset+=s.length,s}this.lineTokenOffset++,this.lineCharOffset=c}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const i=(r=e,s=t,o=this.lineIdx,a=this.lineCharOffset,r!==o?ke(o-r,a):ke(0,a-s));var r,s,o,a;return new Ze(i,0,-1,ze.getEmpty(),new Qe(i))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),i=n?new RegExp(n+"|\n","gi"):null,r=[];let s,o=0,a=0,l=0,c=0;const h=[];for(let p=0;p<60;p++)h.push(new Ze(ke(0,p),0,-1,ze.getEmpty(),new Qe(ke(0,p))));const d=[];for(let p=0;p<60;p++)d.push(new Ze(ke(1,p),0,-1,ze.getEmpty(),new Qe(ke(1,p))));if(i)for(i.lastIndex=0;null!==(s=i.exec(e));){const e=s.index,n=s[0];if("\n"===n)o++,a=e+1;else{if(l!==e){let t;if(c===o){const n=e-l;if(n<h.length)t=h[n];else{const e=ke(0,n);t=new Ze(e,0,-1,ze.getEmpty(),new Qe(e))}}else{const n=o-c,i=e-a;if(1===n&&i<d.length)t=d[i];else{const e=ke(n,i);t=new Ze(e,0,-1,ze.getEmpty(),new Qe(e))}}r.push(t)}r.push(t.getToken(n)),l=e+n.length,c=o}}const u=e.length;if(l!==u){const e=c===o?ke(0,u-l):ke(o-c,u-a);r.push(new Ze(e,0,-1,ze.getEmpty(),new Qe(e)))}this.length=ke(o,u-a),this.tokens=r}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class it{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const i=new Map;for(const r of e.bracketsNew.openingBrackets){const e=ke(0,r.bracketText.length),t=n(r),s=ze.getEmpty().add(t,Pe);i.set(r.bracketText,new Ze(e,1,t,s,Je.create(e,r,s)))}for(const r of e.bracketsNew.closingBrackets){const e=ke(0,r.bracketText.length);let t=ze.getEmpty();const s=r.getOpeningBrackets();for(const i of s)t=t.add(n(i),Pe);i.set(r.bracketText,new Ze(e,2,n(s[0]),t,Je.create(e,r,t)))}return new it(i)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,c.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class rt{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=it.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function st(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const i=n>>1;for(let r=0;r<i;r++){const i=r<<1;e[r]=Ue.create23(e[i],e[i+1],i+3===n?e[i+2]:null,t)}n=i}return Ue.create23(e[0],e[1],n>=3?e[2]:null,t)}function ot(e,t){return Math.abs(e.listHeight-t.listHeight)}function at(e,t){return e.listHeight===t.listHeight?Ue.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const i=[];let r;for(;;){if(t.listHeight===n.listHeight){r=t;break}if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeLastElementMutable()}for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=Ue.create23(e.unappendChild(),r,null,!1):(e.appendChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?Ue.create23(e,r,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const i=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeFirstElementMutable()}let r=t;for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=Ue.create23(r,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?Ue.create23(r,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Le(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=ht(this.nextNodes);if(!n)return;const i=ht(this.offsets);if(Le(e,i))return;if(Le(i,e))if(Se(i,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ct(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ct(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=ht(this.offsets),t=ht(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=ht(this.nextNodes),i=ct(n,this.idxs[this.idxs.length-1]);if(-1!==i){this.nextNodes.push(n.getChild(i)),this.offsets.push(Se(e,t.length)),this.idxs[this.idxs.length-1]=i;break}this.idxs.pop()}}}function ct(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function ht(e){return e.length>0?e[e.length-1]:void 0}function dt(e,t,n,i){return new ut(e,t,n,i).parseDocument()}class ut{constructor(e,t,n,i){if(this.tokenizer=e,this.createImmutableLists=i,this._itemsConstructed=0,this._itemsFromCache=0,n&&i)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new Ae(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(ze.getEmpty(),0);return e||(e=Ue.getEmpty()),e}parseList(e,t){const n=[];for(;;){let i=this.tryReadChildFromCache(e);if(!i){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;i=this.parseChild(e,t+1)}4===i.kind&&0===i.childrenLength||n.push(i)}const i=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,i=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===i;)t++;return t-n>=2?st(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let i=n(),r=n();if(!r)return i;for(let s=n();s;s=n())ot(i,r)<=ot(r,s)?(i=at(i,r),r=s):r=at(r,s);return at(i,r)}(n):st(n,this.createImmutableLists);return i}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!we(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Le(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Ye(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Qe(n.length);const i=e.merge(n.bracketIds),r=this.parseList(i,t+1),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===n.bracketId||s.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),Ve.create(n.astNode,r,s.astNode)):Ve.create(n.astNode,r,null)}default:throw new Error("unexpected")}}}function pt(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new o.j3(ft(e)),i=ft(t);i.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let r=n.dequeue();function s(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return r&&e.unshift(r),e}const t=[];for(;r&&!we(e);){const[i,s]=r.splitAt(e);t.push(i),e=Fe(i.lengthAfter,e),r=s??n.dequeue()}return we(e)||t.push(new mt(!1,e,e)),t}const a=[];function l(e,t,n){if(a.length>0&&Ee(a[a.length-1].endOffset,e)){const e=a[a.length-1];a[a.length-1]=new De(e.startOffset,t,Se(e.newLength,n))}else a.push({startOffset:e,endOffset:t,newLength:n})}let c=0;for(const o of i){const e=s(o.lengthBefore);if(o.modified){const t=Se(c,xe(e,(e=>e.lengthBefore)));l(c,t,o.lengthAfter),c=t}else for(const t of e){const e=c;c=Se(c,t.lengthBefore),t.modified&&l(e,c,t.lengthAfter)}}return a}class mt{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=Fe(e,this.lengthAfter);return Ee(t,0)?[this,void 0]:this.modified?[new mt(this.modified,this.lengthBefore,e),new mt(this.modified,0,t)]:[new mt(this.modified,e,e),new mt(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${Ce(this.lengthBefore)} -> ${Ce(this.lengthAfter)}`}}function ft(e){const t=[];let n=0;for(const i of e){const e=Fe(n,i.startOffset);we(e)||t.push(new mt(!1,e,e));const r=Fe(i.startOffset,i.endOffset);t.push(new mt(!0,r,i.newLength)),n=i.endOffset}return t}class gt extends r.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new i.vl,this.denseKeyProvider=new Be,this.brackets=new rt(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=dt(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new De(ke(e.fromLineNumber-1,0),ke(e.toLineNumber,0),ke(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=De.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=pt(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=pt(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const i=t;return dt(new et(this.textModel,this.brackets),e,i,n)}getBracketsInRange(e,t){this.flushQueue();const n=ke(e.startLineNumber-1,e.startColumn-1),i=ke(e.endLineNumber-1,e.endColumn-1);return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens;yt(r,0,r.length,n,i,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Ne(e.getStartPosition()),i=Ne(e.getEndPosition());return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens,s=new wt(e,t,this.textModel);_t(r,0,r.length,n,i,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return vt(t,0,t.length,Ne(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return bt(t,0,t.length,Ne(e))}}function bt(e,t,n,i){if(4===e.kind||2===e.kind){const r=[];for(const i of e.children)n=Se(t,i.length),r.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=r.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:s}=r[t];if(Le(n,i)){const r=bt(e.children[t],n,s,i);if(r)return r}}return null}if(3===e.kind)return null;if(1===e.kind){const i=Re(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function vt(e,t,n,i){if(4===e.kind||2===e.kind){for(const r of e.children){if(Le(i,n=Se(t,r.length))){const e=vt(r,t,n,i);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const i=Re(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function yt(e,t,n,i,r,s,o,a,l,c,h=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h<a;h++){const a=e.getChild(h);if(a){if(n=Se(t,a.length),Ie(t,r)&&Te(n,i)){if(Te(n,r)){e=a;continue e}if(!yt(a,t,n,i,r,s,o,0,l,c))return!1}t=n}}return!0}case 2:{const h=!c||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let d=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),d=t,h&&(t++,l.set(e.openingBracket.text,t))}const u=e.childrenLength;for(let p=0;p<u;p++){const u=e.getChild(p);if(u){if(n=Se(t,u.length),Ie(t,r)&&Te(n,i)){if(Te(n,r)&&1!==u.kind){e=u,h?(o++,a=d+1):a=d;continue e}if(h||1!==u.kind||!e.closingBracket){if(!yt(u,t,n,i,r,s,h?o+1:o,h?d+1:d,l,c,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,d),!0}case 3:{const e=Re(t,n);return s(new ge(e,o-1,0,!0))}case 1:{const e=Re(t,n);return s(new ge(e,o-1,a-1,h))}case 0:return!0}}class wt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function _t(e,t,n,i,r,s,o,a){if(o>200)return!0;let l=!0;if(2===e.kind){let c=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),c=t,t++,a.set(e.openingBracket.text,t)}const h=Se(t,e.openingBracket.length);let d=-1;if(s.includeMinIndentation&&(d=e.computeMinIndentation(t,s.textModel)),l=s.push(new ve(Re(t,n),Re(t,h),e.closingBracket?Re(Se(h,e.child?.length||0),n):void 0,o,c,e,d)),t=h,l&&e.child){const c=e.child;if(n=Se(t,c.length),Ie(t,r)&&Te(n,i)&&(l=_t(c,t,n,i,r,s,o+1,a),!l))return!1}a?.set(e.openingBracket.text,c)}else{let n=t;for(const t of e.children){const e=n;if(n=Se(n,t.length),Ie(e,r)&&Ie(i,n)&&(l=_t(t,e,n,i,r,s,o,a),!l))return!1}}return l}class kt extends r.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new r.HE),this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new r.Cm;this.bracketPairsTree.value=(e=n.add(new gt(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||o.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||o.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||o.c1.empty}findMatchingBracketUp(e,t,n){const i=this.textModel.validatePosition(t),r=this.textModel.getLanguageIdAtPosition(i.lineNumber,i.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const i=this.getBracketPairsInRange(f.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return i?i.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!s)return null;const o=s.textIsBracket[t];return o?xt(this._findMatchingBracketUp(o,i,Ct(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(f.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,o.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),f.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=Ct(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,i){const r=t.getCount(),s=t.getLanguageId(i);let o=Math.max(0,e.column-1-n.maxBracketLength);for(let l=i-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=o)break;if(x(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=i+1;l<r;l++){const e=t.getStartOffset(l);if(e>=a)break;if(x(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const n=e.lineNumber,i=this.textModel.tokenization.getLineTokens(n),r=this.textModel.getLineContent(n),s=i.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(s)).brackets;if(o&&!x(i.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,o,s),c=null;for(;;){const i=V.findNextBracketInRange(o.forwardRegex,n,r,a,l);if(!i)break;if(i.startColumn<=e.column&&e.column<=i.endColumn){const e=r.substring(i.startColumn-1,i.endColumn-1).toLowerCase(),n=this._matchFoundBracket(i,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(n){if(n instanceof St)return null;c=n}}a=i.endColumn-1}if(c)return c}if(s>0&&i.getStartOffset(s)===e.column-1){const o=s-1,a=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(o)).brackets;if(a&&!x(i.getStandardTokenType(o))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,a,o),c=V.findPrevBracketInRange(a.reversedRegex,n,r,s,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),n=this._matchFoundBracket(c,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n)return n instanceof St?null:n}}}return null}_matchFoundBracket(e,t,n,i){if(!t)return null;const r=n?this._findMatchingBracketDown(t,e.getEndPosition(),i):this._findMatchingBracketUp(t,e.getStartPosition(),i);return r?r instanceof St?r:[e,r]:null}_findMatchingBracketUp(e,t,n){const i=e.languageId,r=e.reversedRegex;let s=-1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return St.INSTANCE;const c=V.findPrevBracketInRange(r,t,i,a,l);if(!c)break;const h=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?s++:e.isClose(h)&&s--,0===s)return c;l=c.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),r=this.textModel.getLineContent(l);let s=n-1,o=r.length,c=r.length;l===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,c=t.column-1);let h=!0;for(;s>=0;s--){const t=e.getLanguageId(s)===i&&!x(e.getStandardTokenType(s));if(t)h?o=e.getStartOffset(s):(o=e.getStartOffset(s),c=e.getEndOffset(s));else if(h&&o!==c){const e=a(l,r,o,c);if(e)return e}h=t}if(h&&o!==c){const e=a(l,r,o,c);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const i=e.languageId,r=e.forwardRegex;let s=1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return St.INSTANCE;const c=V.findNextBracketInRange(r,t,i,a,l);if(!c)break;const h=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?s++:e.isClose(h)&&s--,0===s)return c;a=c.endColumn-1}return null},l=this.textModel.getLineCount();for(let c=t.lineNumber;c<=l;c++){const e=this.textModel.tokenization.getLineTokens(c),n=e.getCount(),r=this.textModel.getLineContent(c);let s=0,o=0,l=0;c===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let h=!0;for(;s<n;s++){const t=e.getLanguageId(s)===i&&!x(e.getStandardTokenType(s));if(t)h||(o=e.getStartOffset(s)),l=e.getEndOffset(s);else if(h&&o!==l){const e=a(c,r,o,l);if(e)return e}h=t}if(h&&o!==l){const e=a(c,r,o,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,i=null,r=null;for(let s=t.lineNumber;s>=1;s--){const e=this.textModel.tokenization.getLineTokens(s),o=e.getCount(),a=this.textModel.getLineContent(s);let l=o-1,c=a.length,h=a.length;if(s===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const s=e.getLanguageId(l);n!==s&&(n=s,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let d=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(i&&r&&d&&c!==h){const e=V.findPrevBracketInRange(i.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(r,e);d=!1}n=t,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const o=!!i&&!x(e.getStandardTokenType(l));if(o)d?c=e.getStartOffset(l):(c=e.getStartOffset(l),h=e.getEndOffset(l));else if(r&&i&&d&&c!==h){const e=V.findPrevBracketInRange(i.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(r,e)}d=o}if(r&&i&&d&&c!==h){const e=V.findPrevBracketInRange(i.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(r,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let i=null,r=null,s=null;for(let o=t.lineNumber;o<=n;o++){const e=this.textModel.tokenization.getLineTokens(o),n=e.getCount(),a=this.textModel.getLineContent(o);let l=0,c=0,h=0;if(o===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const n=e.getLanguageId(l);i!==n&&(i=n,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let d=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(i!==t){if(s&&r&&d&&c!==h){const e=V.findNextBracketInRange(r.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e);d=!1}i=t,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const n=!!r&&!x(e.getStandardTokenType(l));if(n)d||(c=e.getStartOffset(l)),h=e.getEndOffset(l);else if(s&&r&&d&&c!==h){const e=V.findNextBracketInRange(r.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e)}d=n}if(s&&r&&d&&c!==h){const e=V.findNextBracketInRange(r.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=f.Q.fromPositions(n),t=this.getBracketPairsInRange(f.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const i=Ct(t),r=this.textModel.getLineCount(),s=new Map;let o=[];const a=(e,t)=>{if(!s.has(e)){const n=[];for(let e=0,i=t?t.brackets.length:0;e<i;e++)n[e]=0;s.set(e,n)}o=s.get(e)};let l=0;const c=(e,t,n,r,s)=>{for(;;){if(i&&++l%100===0&&!i())return St.INSTANCE;const a=V.findNextBracketInRange(e.forwardRegex,t,n,r,s);if(!a)break;const c=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[c];if(h&&(h.isOpen(c)?o[h.index]++:h.isClose(c)&&o[h.index]--,-1===o[h.index]))return this._matchFoundBracket(a,h,!1,i);r=a.endColumn-1}return null};let h=null,d=null;for(let u=n.lineNumber;u<=r;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),i=this.textModel.getLineContent(u);let r=0,s=0,o=0;if(u===n.lineNumber){r=e.findTokenIndexAtOffset(n.column-1),s=n.column-1,o=n.column-1;const t=e.getLanguageId(r);h!==t&&(h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d))}let l=!0;for(;r<t;r++){const t=e.getLanguageId(r);if(h!==t){if(d&&l&&s!==o){const e=c(d,u,i,s,o);if(e)return xt(e);l=!1}h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d)}const n=!!d&&!x(e.getStandardTokenType(r));if(n)l||(s=e.getStartOffset(r)),o=e.getEndOffset(r);else if(d&&l&&s!==o){const e=c(d,u,i,s,o);if(e)return xt(e)}l=n}if(d&&l&&s!==o){const e=c(d,u,i,s,o);if(e)return xt(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const i=e.getBracketInfo(n);return i?{range:t,bracketInfo:i}:null}}function Ct(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class St{static{this.INSTANCE=new St}constructor(){this._searchCanceledBrand=void 0}}function xt(e){return e instanceof St?null:e}var Et=n(7119),Ft=n(5724);class Lt extends r.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new It,this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,i){if(i)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new f.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class It{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,Ft.zy)(((e,t)=>{const n=[Et.sN,Et.lQ,Et.ss,Et.l5,Et.sH,Et.zp],i=new It;t.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${e.getColor(Et.s7)}; }`);const r=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let s=0;s<30;s++){const e=r[s%r.length];t.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(s)} { color: ${e}; }`)}}));var Tt=n(8209);function Nt(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Rt{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,i){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=i}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${Nt(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${Nt(this.oldText)}")`:`(replace@${this.oldPosition} "${Nt(this.oldText)}" with "${Nt(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const i=t.length;E.Sw(e,i,n),n+=4;for(let r=0;r<i;r++)E.gN(e,t.charCodeAt(r),n),n+=2;return n}static _readString(e,t){const n=E.bb(e,t);return R(e,t+=4,n)}writeSize(){return 8+Rt._writeStringSize(this.oldText)+Rt._writeStringSize(this.newText)}write(e,t){return E.Sw(e,this.oldPosition,t),t+=4,E.Sw(e,this.newPosition,t),t+=4,t=Rt._writeString(e,this.oldText,t),t=Rt._writeString(e,this.newText,t)}static read(e,t,n){const i=E.bb(e,t);t+=4;const r=E.bb(e,t);t+=4;const s=Rt._readString(e,t);t+=Rt._writeStringSize(s);const o=Rt._readString(e,t);return t+=Rt._writeStringSize(o),n.push(new Rt(i,s,r,o)),t}}class Dt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),i=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(i),i=this._getCurr(++t);continue}if(null===i){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldEnd<=n.newPosition){this._acceptCurr(i),i=this._getCurr(++t);continue}if(n.newEnd<=i.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldPosition<n.newPosition){const[e,t]=Dt._splitCurr(i,n.newPosition-i.oldPosition);this._acceptCurr(e),i=t;continue}if(n.newPosition<i.oldPosition){const[e,t]=Dt._splitPrev(n,i.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let r,s;if(i.oldEnd===n.newEnd)r=n,s=i,n=this._getPrev(++e),i=this._getCurr(++t);else if(i.oldEnd<n.newEnd){const[e,o]=Dt._splitPrev(n,i.oldLength);r=e,s=i,n=o,i=this._getCurr(++t)}else{const[t,o]=Dt._splitCurr(i,n.newLength);r=n,s=t,n=this._getPrev(++e),i=o}this._result[this._resultLen++]=new Rt(r.oldPosition,r.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=r.newLength-r.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const r=Dt._merge(this._result);return Dt._removeNoOps(r)}_acceptCurr(e){this._result[this._resultLen++]=Dt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=Dt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Rt(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Rt(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),i=e.newText.substr(t);return[new Rt(e.oldPosition,e.oldText,e.newPosition,n),new Rt(e.oldEnd,"",e.newPosition+t,i)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),i=e.oldText.substr(t);return[new Rt(e.oldPosition,n,e.newPosition,e.newText),new Rt(e.oldPosition+t,i,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,i=e[0];for(let r=1;r<e.length;r++){const s=e[r];i.oldEnd===s.oldPosition?i=new Rt(i.oldPosition,i.oldText+s.oldText,i.newPosition,i.newText+s.newText):(t[n++]=i,i=s)}return t[n++]=i,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let i=0;i<e.length;i++){const r=e[i];r.oldText!==r.newText&&(t[n++]=r)}return t}}var At=n(9403);function Mt(e){return e.toString()}class Ot{static create(e,t){const n=e.getAlternativeVersionId(),i=Bt(e);return new Ot(n,n,i,i,t,t,[])}constructor(e,t,n,i,r,s,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=i,this.beforeCursorState=r,this.afterCursorState=s,this.changes=o}append(e,t,n,i,r){var s,o;t.length>0&&(this.changes=(s=this.changes,o=t,null===s||0===s.length?o:new Dt(s,o).compress())),this.afterEOL=n,this.afterVersionId=i,this.afterCursorState=r}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(E.Sw(e,t?t.length:0,n),n+=4,t)for(const i of t)E.Sw(e,i.selectionStartLineNumber,n),n+=4,E.Sw(e,i.selectionStartColumn,n),n+=4,E.Sw(e,i.positionLineNumber,n),n+=4,E.Sw(e,i.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const i=E.bb(e,t);t+=4;for(let r=0;r<i;r++){const i=E.bb(e,t);t+=4;const r=E.bb(e,t);t+=4;const s=E.bb(e,t);t+=4;const o=E.bb(e,t);t+=4,n.push(new g.L(i,r,s,o))}return t}serialize(){let e=10+Ot._writeSelectionsSize(this.beforeCursorState)+Ot._writeSelectionsSize(this.afterCursorState)+4;for(const i of this.changes)e+=i.writeSize();const t=new Uint8Array(e);let n=0;E.Sw(t,this.beforeVersionId,n),n+=4,E.Sw(t,this.afterVersionId,n),n+=4,E.Gs(t,this.beforeEOL,n),n+=1,E.Gs(t,this.afterEOL,n),n+=1,n=Ot._writeSelections(t,this.beforeCursorState,n),n=Ot._writeSelections(t,this.afterCursorState,n),E.Sw(t,this.changes.length,n),n+=4;for(const i of this.changes)n=i.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const i=E.bb(t,n);n+=4;const r=E.bb(t,n);n+=4;const s=E.pJ(t,n);n+=1;const o=E.pJ(t,n);n+=1;const a=[];n=Ot._readSelections(t,n,a);const l=[];n=Ot._readSelections(t,n,l);const c=E.bb(t,n);n+=4;const h=[];for(let d=0;d<c;d++)n=Rt.read(t,n,h);return new Ot(i,r,s,o,a,l,h)}}class zt{get type(){return 0}get resource(){return h.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,i){this.label=e,this.code=t,this.model=n,this._data=Ot.create(n,i)}toString(){return(this._data instanceof Ot?this._data:Ot.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(h.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Ot}append(e,t,n,i,r){this._data instanceof Ot&&this._data.append(e,t,n,i,r)}close(){this._data instanceof Ot&&(this._data=this._data.serialize())}open(){this._data instanceof Ot||(this._data=Ot.deserialize(this._data))}undo(){if(h.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ot&&(this._data=this._data.serialize());const e=Ot.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(h.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ot&&(this._data=this._data.serialize());const e=Ot.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Ot&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Pt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const i of this._editStackElementsArr){const e=Mt(i.resource);this._editStackElementsMap.set(e,i)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Mt(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Mt(h.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Mt(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,i,r){const s=Mt(e.uri);this._editStackElementsMap.get(s).append(e,t,n,i,r)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Mt(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,At.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function Bt(e){return"\n"===e.getEOL()?0:1}function Wt(e){return!!e&&(e instanceof zt||e instanceof Pt)}class Vt{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Wt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Wt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(Wt(n)&&n.canAppend(this._model))return n;const i=new zt(Tt.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(i,t),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],Bt(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,i){const r=this._getOrCreateEditStackElement(e,i),s=this._model.applyEdits(t,!0),o=Vt._computeCursorState(n,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),r.append(this._model,a.map((e=>e.textChange)),Bt(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var Ut,$t=n(6041);class qt extends r.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(Ut||(Ut={}));class jt{constructor(e,t,n,i,r,s){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=i,this.forWrappedLinesAfterColumn=r,this.forWrappedLinesBeforeOrAtColumn=s,-1!==e===(-1!==t))throw new Error}}class Kt{constructor(e,t){this.top=e,this.endColumn=t}}class Ht extends qt{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,i=0;const r=e.length;for(;i<r;){const r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===r?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new l.D7("Illegal value for lineNumber");const r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide);let o=-2,a=-1,c=-2,h=-1;const d=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===c){c=-1,h=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){c=t,h=e;break}}}};let u=-2,p=-1,m=-2,f=-1;const g=e=>{if(-2===u){u=-1,p=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,p=e;break}}}if(-1!==m&&(-2===m||m<e-1)){m=-1,f=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){m=t,f=e;break}}}};let b=0,v=!0,y=0,w=!0,_=0,k=0;for(let l=0;v||w;l++){const r=e-l,o=e+l;l>1&&(r<1||r<t)&&(v=!1),l>1&&(o>i||o>n)&&(w=!1),l>5e4&&(v=!1,w=!1);let m=-1;if(v&&r>=1){const e=this._computeIndentLevel(r-1);e>=0?(c=r-1,h=e,m=Math.ceil(e/this.textModel.getOptions().indentSize)):(d(r),m=this._getIndentLevelForWhitespaceLine(s,a,h))}let C=-1;if(w&&o<=i){const e=this._computeIndentLevel(o-1);e>=0?(u=o-1,p=e,C=Math.ceil(e/this.textModel.getOptions().indentSize)):(g(o),C=this._getIndentLevelForWhitespaceLine(s,p,f))}if(0!==l){if(1===l){if(o<=i&&C>=0&&k+1===C){v=!1,b=o,y=o,_=C;continue}if(r>=1&&m>=0&&m-1===k){w=!1,b=r,y=r,_=m;continue}if(b=e,y=e,_=k,0===_)return{startLineNumber:b,endLineNumber:y,indent:_}}v&&(m>=_?b=r:v=!1),w&&(C>=_?y=o:w=!1)}else k=m}return{startLineNumber:b,endLineNumber:y,indent:_}}getLinesBracketGuides(e,t,n,i){const r=[];for(let c=e;c<=t;c++)r.push([]);const s=!0,o=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new f.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let a;if(n&&o.length>0){const i=(e<=n.lineNumber&&n.lineNumber<=t?o:this.textModel.bracketPairs.getBracketPairsInRange(f.Q.fromPositions(n)).toArray()).filter((e=>f.Q.strictContainsPosition(e.range,n)));a=(0,$t.Uk)(i,(e=>s))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,h=new Gt;for(const d of o){if(!d.closingBracketRange)continue;const n=a&&d.range.equalsRange(a);if(!n&&!i.includeInactive)continue;const s=h.getInlineClassName(d.nestingLevel,d.nestingLevelOfEqualBracketType,l)+(i.highlightActive&&n?" "+h.activeClassName:""),o=d.openingBracketRange.getStartPosition(),u=d.closingBracketRange.getStartPosition(),p=i.horizontalGuides===Ut.Enabled||i.horizontalGuides===Ut.EnabledForActive&&n;if(d.range.startLineNumber===d.range.endLineNumber){p&&r[d.range.startLineNumber-e].push(new jt(-1,d.openingBracketRange.getEndPosition().column,s,new Kt(!1,u.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(u),f=this.getVisibleColumnFromPosition(d.openingBracketRange.getStartPosition()),g=Math.min(f,m,d.minVisibleColumnIndentation+1);let b=!1;c.HG(this.textModel.getLineContent(d.closingBracketRange.startLineNumber))<d.closingBracketRange.startColumn-1&&(b=!0);const v=Math.max(o.lineNumber,e),y=Math.min(u.lineNumber,t),w=b?1:0;for(let t=v;t<y+w;t++)r[t-e].push(new jt(g,-1,s,null,t===o.lineNumber?o.column:-1,t===u.lineNumber?u.column:-1));p&&(o.lineNumber>=e&&f>g&&r[o.lineNumber-e].push(new jt(g,-1,s,new Kt(!1,o.column),-1,-1)),u.lineNumber<=t&&m>g&&r[u.lineNumber-e].push(new jt(g,-1,s,new Kt(!b,u.column),-1,-1)))}for(const c of r)c.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return r}getVisibleColumnFromPosition(e){return u.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const i=this.textModel.getOptions(),r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide),o=new Array(t-e+1);let a=-2,l=-1,c=-2,h=-1;for(let d=e;d<=t;d++){const t=d-e,r=this._computeIndentLevel(d-1);if(r>=0)a=d-1,l=r,o[t]=Math.ceil(r/i.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=d-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==c&&(-2===c||c<d-1)){c=-1,h=-1;for(let e=d;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){c=e,h=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(s,l,h)}}return o}_getIndentLevelForWhitespaceLine(e,t,n){const i=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/i.indentSize):t===n||e?Math.ceil(n/i.indentSize):1+Math.floor(n/i.indentSize)}}class Gt{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Qt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Jt(e,t,n,i,r){let s;for(r.spacesDiff=0,r.looksLikeAlignment=!1,s=0;s<t&&s<i;s++){if(e.charCodeAt(s)!==n.charCodeAt(s))break}let o=0,a=0;for(let u=s;u<t;u++){32===e.charCodeAt(u)?o++:a++}let l=0,c=0;for(let u=s;u<i;u++){32===n.charCodeAt(u)?l++:c++}if(o>0&&a>0)return;if(l>0&&c>0)return;const h=Math.abs(a-c),d=Math.abs(o-l);if(0===h)return r.spacesDiff=d,void(d>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(r.looksLikeAlignment=!0));d%h!==0||(r.spacesDiff=d/h)}function Yt(e,t,n){const i=Math.min(e.getLineCount(),1e4);let r=0,s=0,o="",a=0;const l=[2,4,6,8,3,5,7],c=[0,0,0,0,0,0,0,0,0],h=new Qt;for(let p=1;p<=i;p++){const i=e.getLineLength(p),l=e.getLineContent(p),d=i<=65536;let u=!1,m=0,f=0,g=0;for(let t=0,n=i;t<n;t++){const n=d?l.charCodeAt(t):e.getLineCharCode(p,t);if(9===n)g++;else{if(32!==n){u=!0,m=t;break}f++}}if(!u)continue;if(g>0?r++:f>1&&s++,Jt(o,a,l,m,h),h.looksLikeAlignment&&(!n||t!==h.spacesDiff))continue;const b=h.spacesDiff;b<=8&&c[b]++,o=l,a=m}let d=n;r!==s&&(d=r<s);let u=t;if(d){let e=d?0:.1*i;l.forEach((t=>{const n=c[t];n>e&&(e=n,u=t)})),4===u&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(u=2)}return{insertSpaces:d,tabSize:u}}function Xt(e){return(1&e.metadata)>>>0}function Zt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function sn(e){return(64&e.metadata)>>>6===1}function on(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function an(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class cn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Zt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),on(this,!1),an(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),on(this,null!==this.options.glyphMarginClassName),an(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const hn=new cn(null,0,0);hn.parent=hn,hn.left=hn,hn.right=hn,Zt(hn,0);class dn{constructor(){this.root=hn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,i,r,s){return this.root===hn?[]:function(e,t,n,i,r,s,o){let a=e.root,l=0,c=0,h=0,d=0;const u=[];let p=0;for(;a!==hn;)if(en(a))tn(a.left,!1),tn(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!en(a.left)){if(c=l+a.maxEnd,c<t){tn(a,!0);continue}if(a.left!==hn){a=a.left;continue}}if(h=l+a.start,h>n)tn(a,!0);else{if(d=l+a.end,d>=t){a.setCachedOffsets(h,d,s);let e=!0;i&&a.ownerId&&a.ownerId!==i&&(e=!1),r&&nn(a)&&(e=!1),o&&!sn(a)&&(e=!1),e&&(u[p++]=a)}tn(a,!0),a.right===hn||en(a.right)||(l+=a.delta,a=a.right)}}return tn(e.root,!1),u}(this,e,t,n,i,r,s)}search(e,t,n,i){return this.root===hn?[]:function(e,t,n,i,r){let s=e.root,o=0,a=0,l=0;const c=[];let h=0;for(;s!==hn;){if(en(s)){tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),s=s.parent;continue}if(s.left!==hn&&!en(s.left)){s=s.left;continue}a=o+s.start,l=o+s.end,s.setCachedOffsets(a,l,i);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),n&&nn(s)&&(e=!1),r&&!sn(s)&&(e=!1),e&&(c[h++]=s),tn(s,!0),s.right===hn||en(s.right)||(o+=s.delta,s=s.right)}return tn(e.root,!1),c}(this,e,t,n,i)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const i=[];let r=0;for(;n!==hn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===hn||en(n.left)?(n.ownerId===t&&(i[r++]=n),tn(n,!0),n.right===hn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),i}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let i=0;for(;t!==hn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===hn||en(t.left)?t.right===hn||en(t.right)?(n[i++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){mn(this,e),this._normalizeDeltaIfNecessary()}delete(e){fn(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let i=0;for(;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;const r=n.start+i,s=n.end+i;n.setCachedOffsets(r,s,t)}acceptReplace(e,t,n,i){const r=function(e,t,n){let i=e.root,r=0,s=0,o=0,a=0;const l=[];let c=0;for(;i!==hn;)if(en(i))tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else{if(!en(i.left)){if(s=r+i.maxEnd,s<t){tn(i,!0);continue}if(i.left!==hn){i=i.left;continue}}o=r+i.start,o>n?tn(i,!0):(a=r+i.end,a>=t&&(i.setCachedOffsets(o,a,0),l[c++]=i),tn(i,!0),i.right===hn||en(i.right)||(r+=i.delta,i=i.right))}return tn(e.root,!1),l}(this,e,e+t);for(let s=0,o=r.length;s<o;s++){fn(this,r[s])}this._normalizeDeltaIfNecessary(),function(e,t,n,i){let r=e.root,s=0,o=0,a=0;const l=i-(n-t);for(;r!==hn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(s-=r.parent.delta),wn(r),r=r.parent;else{if(!en(r.left)){if(o=s+r.maxEnd,o<t){tn(r,!0);continue}if(r.left!==hn){r=r.left;continue}}a=s+r.start,a>n?(r.start+=l,r.end+=l,r.delta+=l,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(r,!0)):(tn(r,!0),r.right===hn||en(r.right)||(s+=r.delta,r=r.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let s=0,o=r.length;s<o;s++){const o=r[s];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,pn(o,e,e+t,n,i),o.maxEnd=o.end,mn(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==hn;)t.left===hn||en(t.left)?t.right===hn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,wn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function un(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function pn(e,t,n,i,r){const s=function(e){return(24&e.metadata)>>>3}(e),o=0===s||2===s,a=1===s||2===s,l=n-t,c=i,h=Math.min(l,c),d=e.start;let u=!1;const p=e.end;let m=!1;t<=d&&p<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,u=!0,e.end=t,m=!0);{const e=r?1:l>0?2:0;!u&&un(d,o,t,e)&&(u=!0),!m&&un(p,a,t,e)&&(m=!0)}if(h>0&&!r){const e=l>c?2:0;!u&&un(d,o,t+h,e)&&(u=!0),!m&&un(p,a,t+h,e)&&(m=!0)}{const i=r?1:0;!u&&un(d,o,n,i)&&(e.start=t+c,u=!0),!m&&un(p,a,n,i)&&(e.end=t+c,m=!0)}const f=c-l;u||(e.start=Math.max(0,d+f)),m||(e.end=Math.max(0,p+f)),e.start>e.end&&(e.end=e.start)}function mn(e,t){if(e.root===hn)return t.parent=hn,t.left=hn,t.right=hn,Zt(t,0),e.root=t,e.root;!function(e,t){let n=0,i=e.root;const r=t.start,s=t.end;for(;;){if(kn(r,s,i.start+n,i.end+n)<0){if(i.left===hn){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===hn){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=hn,t.right=hn,Zt(t,1)}(e,t),_n(t.parent);let n=t;for(;n!==e.root&&1===Xt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Xt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,bn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),vn(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Xt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,vn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),bn(e,n.parent.parent))}return Zt(e.root,0),t}function fn(e,t){let n,i;if(t.left===hn?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===hn?(n=t.left,i=t):(i=function(e){for(;e.left!==hn;)e=e.left;return e}(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Zt(n,0),t.detach(),gn(),wn(n),void(e.root.parent=hn);const r=1===Xt(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Zt(i,Xt(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==hn&&(i.left.parent=i),i.right!==hn&&(i.right.parent=i)),t.detach(),r)return _n(n.parent),i!==t&&(_n(i),_n(i.parent)),void gn();let s;for(_n(n),_n(n.parent),i!==t&&(_n(i),_n(i.parent));n!==e.root&&0===Xt(n);)n===n.parent.left?(s=n.parent.right,1===Xt(s)&&(Zt(s,0),Zt(n.parent,1),bn(e,n.parent),s=n.parent.right),0===Xt(s.left)&&0===Xt(s.right)?(Zt(s,1),n=n.parent):(0===Xt(s.right)&&(Zt(s.left,0),Zt(s,1),vn(e,s),s=n.parent.right),Zt(s,Xt(n.parent)),Zt(n.parent,0),Zt(s.right,0),bn(e,n.parent),n=e.root)):(s=n.parent.left,1===Xt(s)&&(Zt(s,0),Zt(n.parent,1),vn(e,n.parent),s=n.parent.left),0===Xt(s.left)&&0===Xt(s.right)?(Zt(s,1),n=n.parent):(0===Xt(s.left)&&(Zt(s.right,0),Zt(s,1),bn(e,s),s=n.parent.left),Zt(s,Xt(n.parent)),Zt(n.parent,0),Zt(s.left,0),vn(e,n.parent),n=e.root));Zt(n,0),gn()}function gn(){hn.parent=hn,hn.delta=0,hn.start=0,hn.end=0}function bn(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==hn&&(n.left.parent=t),n.parent=t.parent,t.parent===hn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,wn(t),wn(n)}function vn(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==hn&&(n.right.parent=t),n.parent=t.parent,t.parent===hn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,wn(t),wn(n)}function yn(e){let t=e.end;if(e.left!==hn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==hn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function wn(e){e.maxEnd=yn(e)}function _n(e){for(;e!==hn;){const t=yn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function kn(e,t,n,i){return e===n?t-i:e-n}class Cn{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Sn)return xn(this.right);let e=this;for(;e.parent!==Sn&&e.parent.left!==e;)e=e.parent;return e.parent===Sn?Sn:e.parent}prev(){if(this.left!==Sn)return En(this.left);let e=this;for(;e.parent!==Sn&&e.parent.right!==e;)e=e.parent;return e.parent===Sn?Sn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Sn=new Cn(null,0);function xn(e){for(;e.left!==Sn;)e=e.left;return e}function En(e){for(;e.right!==Sn;)e=e.right;return e}function Fn(e){return e===Sn?0:e.size_left+e.piece.length+Fn(e.right)}function Ln(e){return e===Sn?0:e.lf_left+e.piece.lineFeedCnt+Ln(e.right)}function In(){Sn.parent=Sn}function Tn(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==Sn&&(n.left.parent=t),n.parent=t.parent,t.parent===Sn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function Nn(e,t){const n=t.left;t.left=n.right,n.right!==Sn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===Sn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Rn(e,t){let n,i;if(t.left===Sn?(i=t,n=i.right):t.right===Sn?(i=t,n=i.left):(i=xn(t.right),n=i.right),i===e.root)return e.root=n,n.color=0,t.detach(),In(),void(e.root.parent=Sn);const r=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,Mn(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,Mn(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==Sn&&(i.left.parent=i),i.right!==Sn&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,Mn(e,i)),t.detach(),n.parent.left===n){const t=Fn(n),i=Ln(n);if(t!==n.parent.size_left||i!==n.parent.lf_left){const r=t-n.parent.size_left,s=i-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=i,An(e,n.parent,r,s)}}if(Mn(e,n.parent),r)return void In();let s;for(;n!==e.root&&0===n.color;)n===n.parent.left?(s=n.parent.right,1===s.color&&(s.color=0,n.parent.color=1,Tn(e,n.parent),s=n.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.right.color&&(s.left.color=0,s.color=1,Nn(e,s),s=n.parent.right),s.color=n.parent.color,n.parent.color=0,s.right.color=0,Tn(e,n.parent),n=e.root)):(s=n.parent.left,1===s.color&&(s.color=0,n.parent.color=1,Nn(e,n.parent),s=n.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.left.color&&(s.right.color=0,s.color=1,Tn(e,s),s=n.parent.left),s.color=n.parent.color,n.parent.color=0,s.left.color=0,Nn(e,n.parent),n=e.root));n.color=0,In()}function Dn(e,t){for(Mn(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Tn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Nn(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Nn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Tn(e,t.parent.parent))}e.root.color=0}function An(e,t,n,i){for(;t!==e.root&&t!==Sn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function Mn(e,t){let n=0,i=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=Fn((t=t.parent).left)-t.size_left,i=Ln(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}Sn.parent=Sn,Sn.left=Sn,Sn.right=Sn,Sn.color=0;var On=n(7729);const zn=65535;function Pn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Bn{constructor(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}}function Wn(e,t=!0){const n=[0];let i=1;for(let r=0,s=e.length;r<s;r++){const t=e.charCodeAt(r);13===t?r+1<s&&10===e.charCodeAt(r+1)?(n[i++]=r+2,r++):n[i++]=r+1:10===t&&(n[i++]=r+1)}return t?Pn(n):n}class Vn{constructor(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}}class Un{constructor(e,t){this.buffer=e,this.lineStarts=t}}class $n{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Sn&&e.iterate(e.root,(e=>(e!==Sn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class qn{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let i=0;i<n.length;i++){const r=n[i];(null===r.node.parent||r.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class jn{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new Un("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Sn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let i=null;for(let r=0,s=e.length;r<s;r++)if(e[r].buffer.length>0){e[r].lineStarts||(e[r].lineStarts=Wn(e[r].buffer));const t=new Vn(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,t)}this._searchCache=new qn(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=zn,n=t-Math.floor(21845),i=2*n;let r="",s=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),l=a.length;if(s<=n||s+l<i)return r+=a,s+=l,!0;const c=r.replace(/\r\n|\r|\n/g,e);return o.push(new Un(c,Wn(c))),r=a,s=l,!0})),s>0){const t=r.replace(/\r\n|\r|\n/g,e);o.push(new Un(t,Wn(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new $n(this,e)}getOffsetAt(e,t){let n=0,i=this.root;for(;i!==Sn;)if(i.left!==Sn&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;return n+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const i=e;for(;t!==Sn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){const e=i-this.getOffsetAt(n+1,1);return new m.y(n+1,e+1)}return new m.y(n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===Sn){const t=i-e-this.getOffsetAt(n+1,1);return new m.y(n+1,t+1)}t=t.right}return new m.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}let n=e.node;const i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let s=i.substring(r+e.remainder,r+n.piece.length);for(n=n.next();n!==Sn;){const e=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){s+=e.substring(i,i+t.remainder);break}s+=e.substr(i,n.piece.length),n=n.next()}return s}getLinesContent(){const e=[];let t=0,n="",i=!1;return this.iterate(this.root,(r=>{if(r===Sn)return!0;const s=r.piece;let o=s.length;if(0===o)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,c=s.start.line,h=s.end.line;let d=l[c]+s.start.column;if(i&&(10===a.charCodeAt(d)&&(d++,o--),e[t++]=n,n="",i=!1,0===o))return!0;if(c===h)return this._EOLNormalized||13!==a.charCodeAt(d+o-1)?n+=a.substr(d,o):(i=!0,n+=a.substr(d,o-1)),!0;n+=this._EOLNormalized?a.substring(d,Math.max(d,l[c+1]-this._EOLLength)):a.substring(d,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let i=c+1;i<h;i++)n=this._EOLNormalized?a.substring(l[i],l[i+1]-this._EOLLength):a.substring(l[i],l[i+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==a.charCodeAt(l[h]+s.end.column-1)?n=a.substr(l[h],s.end.column):(i=!0,0===s.end.column?t--:n=a.substr(l[h],s.end.column-1)),!0})),i&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],i=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(i)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,i,r,s,o,a,l,c,h){const d=this._buffers[e.piece.bufferIndex],u=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),p=this.offsetInBuffer(e.piece.bufferIndex,r),m=this.offsetInBuffer(e.piece.bufferIndex,s);let g;const b={line:0,column:0};let v,y;t._wordSeparators?(v=d.buffer.substring(p,m),y=e=>e+p,t.reset(0)):(v=d.buffer,y=e=>e,t.reset(p));do{if(g=t.next(v),g){if(y(g.index)>=m)return c;this.positionInBuffer(e,y(g.index)-u,b);const t=this.getLineFeedCnt(e.piece.bufferIndex,r,b),s=b.line===r.line?b.column-r.column+i:b.column+1,o=s+g[0].length;if(h[c++]=(0,On.dr)(new f.Q(n+t,s,n+t,o),g,a),y(g.index)+g[0].length>=m)return c;if(c>=l)return c}}while(g);return c}findMatchesLineByLine(e,t,n,i){const r=[];let s=0;const o=new On.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,c,h,t,n,i,s,r),r;let d=e.startLineNumber,u=a.node;for(;u!==l.node;){const l=this.getLineFeedCnt(u.piece.bufferIndex,c,u.piece.end);if(l>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),p=a[c.line+l],m=d===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(u,o,d,m,c,this.positionInBuffer(u,p-h),t,n,i,s,r),s>=i)return r;d+=l}const h=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const a=this.getLineContent(d).substring(h,e.endColumn-1);return s=this._findMatchesInLine(t,o,a,e.endLineNumber,h,s,r,n,i),r}if(s=this._findMatchesInLine(t,o,this.getLineContent(d).substr(h),d,h,s,r,n,i),s>=i)return r;d++,a=this.nodeAt2(d,1),u=a.node,c=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){const a=d===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(d).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,o,l,e.endLineNumber,a,s,r,n,i),r}const p=d===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,o,d,p,c,h,t,n,i,s,r),r}_findMatchesInLine(e,t,n,i,r,s,o,a,l){const c=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=n.length;let d=-a;for(;-1!==(d=n.indexOf(t,d+a));)if((!c||(0,On.wC)(c,n,h,d,a))&&(o[s++]=new fe.Dg(new f.Q(i,d+1+r,i,d+1+a+r),null),s>=l))return s;return s}let h;t.reset(0);do{if(h=t.next(n),h&&(o[s++]=(0,On.dr)(new f.Q(i,h.index+1+r,i,h.index+1+h[0].length+r),h,a),s>=l))return s}while(h);return s}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Sn){const{node:n,remainder:i,nodeStartOffset:r}=this.nodeAt(e),s=n.piece,o=s.bufferIndex,a=this.positionInBuffer(n,i);if(0===n.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&r+s.length===e&&t.length<zn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(r===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(r+n.piece.length>e){const e=[];let r=new Vn(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(o,s.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,i)){const e={line:r.start.line+1,column:0};r=new Vn(r.bufferIndex,e,r.end,this.getLineFeedCnt(r.bufferIndex,e,r.end),r.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,i-1)){const r=this.positionInBuffer(n,i-1);this.deleteNodeTail(n,r),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,a)}else this.deleteNodeTail(n,a);const l=this.createNewPieces(t);r.length>0&&this.rbInsertRight(n,r);let c=n;for(let t=0;t<l.length;t++)c=this.rbInsertRight(c,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===Sn)return;const n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,s=i.node;if(r===s){const s=this.positionInBuffer(r,n.remainder),o=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){const e=r.next();return Rn(this,r),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(r,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,s),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,s,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,a),this._searchCache.validate(e),0===r.piece.length&&o.push(r);const l=this.positionInBuffer(s,i.remainder);this.deleteNodeHead(s,l),0===s.piece.length&&o.push(s);for(let h=r.next();h!==Sn&&h!==s;h=h.next())o.push(h);const c=0===r.piece.length?r.prev():r;this.deleteNodes(o),this.validateCRLFWithNextNode(c),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const i=t.piece,r={line:i.start.line+1,column:0},s=new Vn(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=s,e+="\n",An(this,t,-1,-1),0===t.piece.length&&n.push(t)}const i=this.createNewPieces(e);let r=this.rbInsertLeft(t,i[i.length-1]);for(let s=i.length-2;s>=0;s--)r=this.rbInsertLeft(r,i[s]);this.validateCRLFWithPrevNode(r),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]);let r=i;for(let s=1;s<n.length;s++)r=this.rbInsertRight(r,n[s]);this.validateCRLFWithPrevNode(i)}positionInBuffer(e,t,n){const i=e.piece,r=e.piece.bufferIndex,s=this._buffers[r].lineStarts,o=s[i.start.line]+i.start.column+t;let a=i.start.line,l=i.end.line,c=0,h=0,d=0;for(;a<=l&&(c=a+(l-a)/2|0,d=s[c],c!==l);)if(h=s[c+1],o<d)l=c-1;else{if(!(o>=h))break;a=c+1}return n?(n.line=c,n.column=o-d,null):{line:c,column:o-d}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;const r=i[n.line+1],s=i[n.line]+n.column;if(r>s+1)return n.line-t.line;const o=s-1;return 13===this._buffers[e].buffer.charCodeAt(o)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Rn(this,e[t])}createNewPieces(e){if(e.length>zn){const t=[];for(;e.length>zn;){const n=e.charCodeAt(65534);let i;13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,zn),e=e.substring(zn));const r=Wn(i);t.push(new Vn(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new Un(i,r))}const n=Wn(e);return t.push(new Vn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new Un(e,n)),t}let t=this._buffers[0].buffer.length;const n=Wn(e,!1);let i=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},i=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const r=this._buffers[0].buffer.length,s=this._buffers[0].lineStarts.length-1,o={line:s,column:r-this._buffers[0].lineStarts[s]},a=new Vn(0,i,o,this.getLineFeedCnt(0,i,o),r-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let n=this.root,i="";const r=this._searchCache.get2(e);if(r){n=r.node;const s=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),o=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const i=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return o.substring(a+s,a+i-t)}i=o.substring(a+s,a+n.piece.length)}else{let r=0;const s=e;for(;n!==Sn;)if(n.left!==Sn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:r,nodeStartLineNumber:s-(e-1-n.lf_left)}),a.substring(l+i,l+o-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),r=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=r.substring(s+t,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==Sn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const r=this.getAccumulatedValue(n,0),s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=e.substring(s,s+r-t),i}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=e.substr(t,n.piece.length)}n=n.next()}return i}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==Sn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(t!==r)return{index:t,remainder:0}}return{index:r,remainder:i.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),s=t,o=this.offsetInBuffer(n.bufferIndex,s),a=this.getLineFeedCnt(n.bufferIndex,n.start,s),l=a-i,c=o-r,h=n.length+c;e.piece=new Vn(n.bufferIndex,n.start,s,a,h),An(this,e,c,l)}deleteNodeHead(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),s=t,o=this.getLineFeedCnt(n.bufferIndex,s,n.end),a=o-i,l=r-this.offsetInBuffer(n.bufferIndex,s),c=n.length+l;e.piece=new Vn(n.bufferIndex,s,n.end,o,c),An(this,e,l,a)}shrinkNode(e,t,n){const i=e.piece,r=i.start,s=i.end,o=i.length,a=i.lineFeedCnt,l=t,c=this.getLineFeedCnt(i.bufferIndex,i.start,l),h=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new Vn(i.bufferIndex,i.start,l,c,h),An(this,e,h-o,c-a);const d=new Vn(i.bufferIndex,n,s,this.getLineFeedCnt(i.bufferIndex,n,s),this.offsetInBuffer(i.bufferIndex,s)-this.offsetInBuffer(i.bufferIndex,n)),u=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const r=Wn(t,!1);for(let d=0;d<r.length;d++)r[d]+=i;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));const s=this._buffers[0].lineStarts.length-1,o={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,c=this.getLineFeedCnt(0,e.piece.start,o),h=c-l;e.piece=new Vn(e.piece.bufferIndex,e.piece.start,o,c,a),this._lastChangeBufferPos=o,An(this,e,t.length,h)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let i=0;for(;t!==Sn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,i=0;for(;n!==Sn;)if(n.left!==Sn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,s),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Sn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),i=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:i}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===Sn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;if(i===n.length-1)return!1;return!(n[i+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==Sn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],i=this._buffers[e.piece.bufferIndex].lineStarts;let r;r=0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new Vn(e.piece.bufferIndex,e.piece.start,r,o,s),An(this,e,-1,-1),0===e.piece.length&&n.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Vn(t.piece.bufferIndex,a,t.piece.end,c,l),An(this,t,-1,-1),0===t.piece.length&&n.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let d=0;d<n.length;d++)Rn(this,n[d])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Rn(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},i=e.length-1,r=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new Vn(e.bufferIndex,t,e.end,r,i),An(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===Sn)return t(Sn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===Sn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,i=this.offsetInBuffer(n.bufferIndex,n.start),r=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(i,r)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),i=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,i)}rbInsertRight(e,t){const n=new Cn(t,1);n.left=Sn,n.right=Sn,n.parent=Sn,n.size_left=0,n.lf_left=0;if(this.root===Sn)this.root=n,n.color=0;else if(e.right===Sn)e.right=n,n.parent=e;else{const t=xn(e.right);t.left=n,n.parent=t}return Dn(this,n),n}rbInsertLeft(e,t){const n=new Cn(t,1);if(n.left=Sn,n.right=Sn,n.parent=Sn,n.size_left=0,n.lf_left=0,this.root===Sn)this.root=n,n.color=0;else if(e.left===Sn)e.left=n,n.parent=e;else{const t=En(e.left);t.right=n,n.parent=t}return Dn(this,n),n}}class Kn extends r.jG{constructor(e,t,n,r,s,o,a){super(),this._onDidChangeContent=this._register(new i.vl),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=r,this._mightContainUnusualLineTerminators=s,this._pieceTree=new jn(e,n,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,i=this.getPositionAt(e),r=this.getPositionAt(n);return new f.Q(i.lineNumber,i.column,r.lineNumber,r.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),i=this.getOffsetAt(e.endLineNumber,e.endColumn);let r=0;const s=this._getEndOfLine(t),o=this.getEOL();if(s.length!==o.length){r=(s.length-o.length)*(e.endLineNumber-e.startLineNumber)}return i-n+r}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const i=e.startLineNumber,r=e.endLineNumber;for(let t=i;t<=r;t++){const s=this.getLineContent(t),o=t===i?e.startColumn-1:0,a=t===r?e.endColumn-1:s.length;for(let e=o;e<a;e++)c.pc(s.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(r-i),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=c.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=c.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let i=this._mightContainRTL,r=this._mightContainUnusualLineTerminators,s=this._mightContainNonBasicASCII,o=!0,a=[];for(let g=0;g<e.length;g++){const t=e[g];o&&t._isTracked&&(o=!1);const n=t.range;if(t.text){let e=!0;s||(e=!c.aC(t.text),s=e),!i&&e&&(i=c.E_(t.text)),!r&&e&&(r=c.$X(t.text))}let l="",h=0,u=0,p=0;if(t.text){let e;[h,u,p,e]=(0,d.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}a[g]={sortIndex:g,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:h,firstLineLength:u,lastLineLength:p,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Kn._sortOpsAscending);let l=!1;for(let c=0,d=a.length-1;c<d;c++){const e=a[c].range.getEndPosition(),t=a[c+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const h=n||t?Kn._getInverseEditRanges(a):[],u=[];if(t)for(let d=0;d<a.length;d++){const e=a[d],t=h[d];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let i="";n===t.startLineNumber&&(i=this.getLineContent(e.range.startLineNumber),-1!==c.HG(i))||u.push({lineNumber:n,oldContent:i})}}let p=null;if(n){let e=0;p=[];for(let t=0;t<a.length;t++){const n=a[t],i=h[t],r=this.getValueInRange(n.range),s=n.rangeOffset+e;e+=n.text.length-r.length,p[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:i,text:r,textChange:new Rt(n.rangeOffset,r,s,n.text)}}l||p.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=i,this._mightContainUnusualLineTerminators=r,this._mightContainNonBasicASCII=s;const m=this._doApplyEdits(a);let f=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),f=[];for(let e=0,t=u.length;e<t;e++){const t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;const n=u[e].oldContent,i=this.getLineContent(t);0!==i.length&&i!==n&&-1===c.HG(i)&&f.push(t)}}return this._onDidChangeContent.fire(),new fe.F4(p,m,f)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,i=e[e.length-1].range,r=new f.Q(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn);let s=n.startLineNumber,o=n.startColumn;const a=[];for(let d=0,p=e.length;d<p;d++){const n=e[d],i=n.range;t=t||n.forceMoveMarkers,a.push(this.getValueInRange(new f.Q(s,o,i.startLineNumber,i.startColumn))),n.text.length>0&&a.push(n.text),s=i.endLineNumber,o=i.endColumn}const l=a.join(""),[c,h,u]=(0,d.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:r,rangeOffset:this.getOffsetAt(r.startLineNumber,r.startColumn),rangeLength:this.getValueLengthInRange(r,0),text:l,eolCount:c,firstLineLength:h,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Kn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const i=e[n],r=i.range.startLineNumber,s=i.range.startColumn,o=i.range.endLineNumber,a=i.range.endColumn;if(r===o&&s===a&&0===i.text.length)continue;i.text?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,i.text,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength);const l=new f.Q(r,s,o,a);t.push({range:l,rangeLength:i.rangeLength,text:i.text,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)}static _getInverseEditRanges(e){const t=[];let n=0,i=0,r=null;for(let s=0,o=e.length;s<o;s++){const o=e[s];let a,l,c;if(r?r.range.endLineNumber===o.range.startLineNumber?(a=n,l=i+(o.range.startColumn-r.range.endColumn)):(a=n+(o.range.startLineNumber-r.range.endLineNumber),l=o.range.startColumn):(a=o.range.startLineNumber,l=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;c=1===e?new f.Q(a,l,a,l+o.firstLineLength):new f.Q(a,l,a+e-1,o.lastLineLength+1)}else c=new f.Q(a,l,a,l);n=c.endLineNumber,i=c.endColumn,t.push(c),r=o}return t}static _sortOpsAscending(e,t){const n=f.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=f.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class Hn{constructor(e,t,n,i,r,s,o,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=r,this._containsRTL=s,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let r=0,s=n.length;r<s;r++){const e=n[r].buffer.replace(/\r\n|\r|\n/g,t),i=Wn(e);n[r]=new Un(e,i)}const i=new Kn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:i,disposable:i}}}class Gn{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&c.LU(e)&&(this.BOM=c.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,i=0,r=0,s=0,o=!0;for(let l=0,c=t.length;l<c;l++){const a=t.charCodeAt(l);13===a?l+1<c&&10===t.charCodeAt(l+1)?(s++,e[n++]=l+2,l++):(i++,e[n++]=l+1):10===a?(r++,e[n++]=l+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new Bn(Pn(e),i,r,s,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new Un(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.$X(e)))}finish(e=!0){return this._finish(),new Hn(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Wn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Qn=n(6571),Jn=n(2083),Yn=n(1940),Xn=n(8381),Zn=n(4444);const ei=new class{clone(){return this}equals(e){return this===e}};class ti{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const i=this._store.slice(0,e),r=this._store.slice(e+t),s=function(e,t){const n=[];for(let i=0;i<e;i++)n[i]=t;return n}(n,this._default);this._store=i.concat(s,r)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let i=0;i<t;i++)n[i]=this._default;this._store=(0,o.nK)(this._store,e,n)}}class ni{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class ii{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new ni(e,[t]))}finalize(){return this._tokens}}class ri{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=ri.defaultTokenMetadata,i=new Uint32Array(2);return i[0]=e.length,i[1]=n,new ri(i,e,t)}static createFromTextAndMetadata(e,t){let n=0,i="";const r=new Array;for(const{text:s,metadata:o}of e)r.push(n+s.length,o),n+=s.length,i+=s;return new ri(new Uint32Array(r),i,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof ri&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const i=t<<1,r=i+(n<<1);for(let s=i;s<r;s++)if(this._tokens[s]!==e._tokens[s])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Xe.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Xe.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Xe.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Xe.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Xe.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Xe.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ri.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new si(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let i=0;i<n;i++)e[i<<1]=e[i+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,i=(e.length>>>1)-1;for(;n<i;){const r=n+Math.floor((i-n)/2),s=e[r<<1];if(s===t)return r+1;s<t?n=r+1:s>t&&(i=r)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,i="";const r=new Array;let s=0;for(;;){const o=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==o&&(null===a||o<=a.offset)){i+=this._text.substring(s,o);const e=this._tokens[1+(t<<1)];r.push(i.length,e),t++,s=o}else{if(!a)break;if(a.offset>s){i+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];r.push(i.length,e),s=a.offset}i+=a.text,r.push(i.length,a.tokenMetadata),n++}}return new ri(new Uint32Array(r),i,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class si{constructor(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let r=this._firstTokenIndex,s=e.getCount();r<s;r++){if(e.getStartOffset(r)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof si&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),i=this._source.getEndOffset(t);let r=this._source.getTokenText(t);return n<this._startOffset&&(r=r.substring(this._startOffset-n)),i>this._endOffset&&(r=r.substring(0,r.length-(i-this._endOffset))),r}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class oi{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new li(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class ai extends oi{constructor(e,t,n,i){super(e,t),this._textModel=n,this._languageIdCodec=i}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const i=this.getFirstInvalidLine();if(!i||i.lineNumber>t)break;const r=this._textModel.getLineContent(i.lineNumber),s=di(this._languageIdCodec,n,this.tokenizationSupport,r,!0,i.startState);e.add(i.lineNumber,s.tokens),this.store.setEndState(i.lineNumber,s.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const i=this._textModel.getLanguageId(),r=this._textModel.getLineContent(e.lineNumber),s=r.substring(0,e.column-1)+t+r.substring(e.column-1),o=di(this._languageIdCodec,i,this.tokenizationSupport,s,!0,n),a=new ri(o.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const i=e.lineNumber,r=e.column,s=this.getStartState(i);if(!s)return null;const o=this._textModel.getLineContent(i),a=o.substring(0,r-1)+n+o.substring(r-1+t),l=this._textModel.getLanguageIdAtPosition(i,0),c=di(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new ri(c.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let i=this.guessStartState(t);const r=this._textModel.getLanguageId();for(let s=t;s<=n;s++){const t=this._textModel.getLineContent(s),n=di(this._languageIdCodec,r,this.tokenizationSupport,t,!0,i);e.add(s,n.tokens),i=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let i=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(o)),t=e,i=this.getStartState(o),i)))break}i||(i=this.tokenizationSupport.getInitialState()),n.reverse();const r=this._textModel.getLanguageId();let s=i;for(const o of n){s=di(this._languageIdCodec,r,this.tokenizationSupport,o,!1,s).endState}return s}}class li{constructor(e){this.lineCount=e,this._tokenizationStateStore=new ci,this._invalidEndStatesLineNumbers=new hi,this._invalidEndStatesLineNumbers.addRange(new Zn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Zn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Zn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,d.W)(t.text);this.acceptChange(new Qn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Zn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class ci{constructor(){this._lineEndStates=new ti(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class hi{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Zn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Zn.L(n.start,e):this._ranges.splice(t,1,new Zn.L(n.start,e),new Zn.L(e+1,n.endExclusive))}}addRange(e){Zn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let i=n;for(;!(i>=this._ranges.length||e.endExclusive<this._ranges[i].start);)i++;const r=t-e.length;for(let s=i;s<this._ranges.length;s++)this._ranges[s]=this._ranges[s].delta(r);if(n===i){const i=new Zn.L(e.start,e.start+t);i.isEmpty||this._ranges.splice(n,0,i)}else{const t=Math.min(e.start,this._ranges[n].start),s=Math.max(e.endExclusive,this._ranges[i-1].endExclusive),o=new Zn.L(t,s+r);o.isEmpty?this._ranges.splice(n,i-n):this._ranges.splice(n,i-n,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function di(e,t,n,i,r,s){let o=null;if(n)try{o=n.tokenizeEncoded(i,r,s.clone())}catch(a){(0,l.dz)(a)}return o||(o=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new Jn.rY(n,null===t?ei:t)}(e.encodeLanguageId(t),s)),ri.convertToEndOffset(o.tokens,i.length),o}class ui{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Yn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,s._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new ii,n=Xn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Qn.M(e,t))}}class pi{constructor(){this._onDidChangeVisibleRanges=new i.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new mi((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class mi{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Qn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class fi extends r.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Yn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,o.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class gi extends r.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new i.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class bi extends gi{constructor(e,t,n,i){super(t,n,i),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=Jn.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new ri(n,t,this._languageIdCodec)}return ri.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var vi=n(4432);const yi=new Uint32Array(0).buffer;class wi{static deleteBeginning(e,t){return null===e||e===yi?e:wi.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===yi)return e;const n=_i(e),i=n[n.length-2];return wi.delete(e,t,i)}static delete(e,t,n){if(null===e||e===yi||t===n)return e;const i=_i(e),r=i.length>>>1;if(0===t&&i[i.length-2]===n)return yi;const s=ri.findIndexInTokensArray(i,t),o=s>0?i[s-1<<1]:0;if(n<i[s<<1]){const o=n-t;for(let e=s;e<r;e++)i[e<<1]-=o;return e}let a,l;o!==t?(i[s<<1]=t,a=s+1<<1,l=t):(a=s<<1,l=o);const c=n-t;for(let d=s+1;d<r;d++){const e=i[d<<1]-c;e>l&&(i[a++]=e,i[a++]=i[1+(d<<1)],l=e)}if(a===i.length)return e;const h=new Uint32Array(a);return h.set(i.subarray(0,a),0),h.buffer}static append(e,t){if(t===yi)return e;if(e===yi)return t;if(null===e)return e;if(null===t)return null;const n=_i(e),i=_i(t),r=i.length>>>1,s=new Uint32Array(n.length+i.length);s.set(n,0);let o=n.length;const a=n[n.length-2];for(let l=0;l<r;l++)s[o++]=i[l<<1]+a,s[o++]=i[1+(l<<1)];return s.buffer}static insert(e,t,n){if(null===e||e===yi)return e;const i=_i(e),r=i.length>>>1;let s=ri.findIndexInTokensArray(i,t);if(s>0){i[s-1<<1]===t&&s--}for(let o=s;o<r;o++)i[o<<1]+=n;return e}}function _i(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class ki{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==yi)return new ri(_i(i),n,this._languageIdCodec);const r=new Uint32Array(2);return r[0]=n.length,r[1]=Ci(this._languageIdCodec.encodeLanguageId(e)),new ri(r,n,this._languageIdCodec)}static _massageTokens(e,t,n){const i=n?_i(n):null;if(0===t){let t=!1;if(i&&i.length>1&&(t=Xe.x.getLanguageId(i[1])!==e),!t)return yi}if(!i||0===i.length){const n=new Uint32Array(2);return n[0]=t,n[1]=Ci(e),n.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let i=0;i<t;i++)n[i]=null;this._lineTokens=o.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,i,r){const s=ki._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,i);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=s,!!r&&!ki._equals(o,s)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=_i(e),i=_i(t);if(n.length!==i.length)return!1;for(let r=0,s=n.length;r<s;r++)if(n[r]!==i[r])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new m.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=wi.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=wi.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let i=null;n<this._len&&(i=wi.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=wi.append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=wi.deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=wi.insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=wi.insert(this._lineTokens[i],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];let s=0,o=0,a=!1;for(let e=r.startLineNumber;e<=r.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!0)&&(a=!0,s=e,o=e)}a&&n.push({fromLineNumber:s,toLineNumber:o})}return{changes:n}}}function Ci(e){return(32768|e|2<<24|1024)>>>0}class Si{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const i=t[0].getRange(),r=t[t.length-1].getRange();if(!i||!r)return e;n=e.plusRange(i).plusRange(r)}let i=null;for(let r=0,s=this._pieces.length;r<s;r++){const e=this._pieces[r];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(r,1),r--,s--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};continue}const[t,o]=e.split(n);t.isEmpty()?i=i||{index:r}:o.isEmpty()||(this._pieces.splice(r,1,t,o),r++,s++,i=i||{index:r})}return i=i||{index:this._pieces.length},t.length>0&&(this._pieces=o.nK(this._pieces,i.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const i=n[Si._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!i)return t;const r=t.getCount(),s=i.getCount();let o=0;const a=[];let l=0,c=0;const h=(e,t)=>{e!==c&&(c=e,a[l++]=e,a[l++]=t)};for(let d=0;d<s;d++){const e=i.getStartCharacter(d),n=i.getEndCharacter(d),s=i.getMetadata(d),a=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?16384:0)|(16&s?16744448:0)|(32&s?4278190080:0))>>>0,l=~a>>>0;for(;o<r&&t.getEndOffset(o)<=e;)h(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<r&&t.getStartOffset(o)<e&&h(e,t.getMetadata(o));o<r&&t.getEndOffset(o)<n;)h(t.getEndOffset(o),t.getMetadata(o)&l|s&a),o++;if(o<r)h(n,t.getMetadata(o)&l|s&a),t.getEndOffset(o)===n&&o++;else{const e=Math.min(Math.max(0,o-1),r-1);h(n,t.getMetadata(e)&l|s&a)}}for(;o<r;)h(t.getEndOffset(o),t.getMetadata(o)),o++;return new ri(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,i=e.length-1;for(;n<i;){let r=n+Math.floor((i-n)/2);if(e[r].endLineNumber<t)n=r+1;else{if(!(e[r].startLineNumber>t)){for(;r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber;)r--;return r}i=r-1}}return n}acceptEdit(e,t,n,i,r){for(const s of this._pieces)s.acceptEdit(e,t,n,i,r)}}var xi,Ei=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Fi=function(e,t){return function(n,i){t(n,i,e)}};let Li=xi=class extends qt{constructor(e,t,n,s,o,a,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=s,this._languageService=o,this._languageConfigurationService=a,this._treeSitterService=l,this._semanticTokens=new Si(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new i.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new i.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new r.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(i.Jh.filter(Jn.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Ii(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new bi(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){Jn.OB.get(this._languageId)?this._tokens instanceof bi||this.createTokens(!0):this._tokens instanceof Ii||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,i]=(0,d.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,i,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),i=this.getLineTokens(t.lineNumber),r=i.findTokenIndexAtOffset(t.column-1),[s,o]=xi._findLanguageBoundaries(i,r),a=(0,w.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(r>0&&s===t.column-1){const[s,o]=xi._findLanguageBoundaries(i,r-1),a=(0,w.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r-1)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let i=0;for(let s=t;s>=0&&e.getLanguageId(s)===n;s--)i=e.getStartOffset(s);let r=e.getLineContent().length;for(let s=t,o=e.getCount();s<o&&e.getLanguageId(s)===n;s++)r=e.getEndOffset(s);return[i,r]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new m.y(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Li=xi=Ei([Fi(4,y.L),Fi(5,se),Fi(6,vi.ITreeSitterParserService)],Li);class Ii extends gi{constructor(e,t,n,i){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new r.HE),this._tokens=new ki(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new r.HE),this._attachedViewStates=this._register(new r.$w),this._register(Jn.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(i.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new fi((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new li(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Jn.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new ai(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ui(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new ki(this._languageIdCodec),this._debugBackgroundStates=new li(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,d.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Qn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new ii,{heuristicTokens:i}=this._tokenizer.tokenizeHeuristically(n,e,t),r=this.setTokens(n.finalize());if(i)for(const s of r.changes)this._backgroundTokenizer.value?.requestTokens(s.fromLineNumber,s.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new ii;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const i=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(i)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const i=this._textModel.validatePosition(new m.y(e,t));return this.forceTokenization(i.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(i,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const i=this._textModel.validatePosition(e);return this.forceTokenization(i.lineNumber),this._tokenizer.tokenizeLineWithEdit(i,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Ti{constructor(){this.changeType=1}}class Ni{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",i=0;for(const r of t)n+=e.substring(i,r.column-1),i=r.column-1,n+=r.options.content;return n+=e.substring(i),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Ni(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Ni(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,i,r){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=i,this.order=r}}class Ri{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class Di{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Ai{constructor(e,t,n,i){this.changeType=4,this.injectedTexts=i,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class Mi{constructor(){this.changeType=5}}class Oi{constructor(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.versionId,r=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing;return new Oi(n,i,r,s)}}class zi{constructor(e){this.changes=e}}class Pi{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Oi.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Pi._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Pi(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.eol,r=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:i,isEolChange:e.isEolChange&&t.isEolChange,versionId:r,isUndoing:s,isRedoing:o,isFlush:a}}}const Bi=(0,K.u1)("undoRedoService");class Wi{static{this._ID=0}constructor(){this.id=Wi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Wi}}class Vi{static{this._ID=0}constructor(){this.id=Vi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Vi}}var Ui,$i=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},qi=function(e,t){return function(n,i){t(n,i,e)}};function ji(e,t){let n;return n="string"===typeof e?function(e){const t=new Gn;return t.acceptChunk(e),t.finish()}(e):fe.nk(e)?function(e){const t=new Gn;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Ki=0;class Hi{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}}}const Gi=()=>{throw new Error("Invalid change accessor")};let Qi=class extends r.jG{static{Ui=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:b.tabSize,indentSize:b.indentSize,insertSpaces:b.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:b.trimAutoWhitespace,largeFileOptimizations:b.largeFileOptimizations,bracketPairColorizationOptions:b.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Yt(e,t.tabSize,t.insertSpaces);return new fe.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new fe.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,r.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,s=null,o,a,l,d){super(),this._undoRedoService=o,this._languageService=a,this._languageConfigurationService=l,this.instantiationService=d,this._onWillDispose=this._register(new i.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new lr((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new i.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new i.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new i.vl),this._eventEmitter=this._register(new cr),this._languageSelectionListener=this._register(new r.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new pi,Ki++,this.id="$model"+Ki,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?h.r.parse("inmemory://model/"+Ki):s,this._attachedEditorCount=0;const{textBuffer:u,disposable:p}=ji(e,n.defaultEOL);this._buffer=u,this._bufferDisposable=p,this._options=Ui.resolveOptions(this._buffer,n);const m="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new kt(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Ht(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Lt(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Li,this,this._bracketPairs,m,this._attachedViews);const g=this._buffer.getLineCount(),b=this._buffer.getValueLengthInRange(new f.Q(1,1,g,this._buffer.getLineLength(g)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=b>Ui.LARGE_FILE_SIZE_THRESHOLD||g>Ui.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=b>Ui.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=b>Ui._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=c.tk(Ki),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Xi,this._commandManager=new Vt(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(m),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Kn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=r.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Pi(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=ji(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,i,r,s,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:r,isRedoing:s,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Xi,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Oi([new Ti],this._versionId,!1,!1),this._createContentChanged2(new f.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Oi([new Mi],this._versionId,!1,!1),this._createContentChanged2(new f.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,i=t.length;n<i;n++){const i=t[n],r=i.range,s=i.cachedAbsoluteStart-i.start,o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),a=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);i.cachedAbsoluteStart=o,i.cachedAbsoluteEnd=a,i.cachedVersionId=e,i.start=o-s,i.end=a-s,wn(i)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let i=1;i<=n;i++){const n=this._buffer.getLineLength(i);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new fe.X2({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r,bracketPairColorizationOptions:s});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const n=Yt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),p(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(c._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i}createSnapshot(e=!1){return new Hi(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,i=e.startColumn;let r=Math.floor("number"!==typeof n||isNaN(n)?1:n),s=Math.floor("number"!==typeof i||isNaN(i)?1:i);if(r<1)r=1,s=1;else if(r>t)r=t,s=this.getLineMaxColumn(r);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(r);s>=e&&(s=e)}const o=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof o||isNaN(o)?1:o),c=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{const e=this.getLineMaxColumn(l);c>=e&&(c=e)}return n===r&&i===s&&o===l&&a===c&&e instanceof f.Q&&!(e instanceof g.L)?e:new f.Q(r,s,l,c)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(c.pc(n))return!1}return!0}_validatePosition(e,t,n){const i=Math.floor("number"!==typeof e||isNaN(e)?1:e),r=Math.floor("number"!==typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(i<1)return new m.y(1,1);if(i>s)return new m.y(s,this.getLineMaxColumn(s));if(r<=1)return new m.y(i,1);const o=this.getLineMaxColumn(i);if(r>=o)return new m.y(i,o);if(1===n){const e=this._buffer.getLineCharCode(i,r-2);if(c.pc(e))return new m.y(i,r-1)}return new m.y(i,r)}validatePosition(e){return this._assertNotDisposed(),e instanceof m.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,s,0))return!1;if(1===t){const e=i>1?this._buffer.getLineCharCode(n,i-2):0,t=s>1&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,o=c.pc(e),a=c.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof f.Q&&!(e instanceof g.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),i=t.lineNumber,r=t.column,s=n.lineNumber,o=n.column;{const e=r>1?this._buffer.getLineCharCode(i,r-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,n=c.pc(e),a=c.pc(t);return n||a?i===s&&r===o?new f.Q(i,r-1,s,o-1):n&&a?new f.Q(i,r-1,s,o+1):n?new f.Q(i,r-1,s,o):new f.Q(i,r,s,o+1):new f.Q(i,r,s,o)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new f.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)}findMatches(e,t,n,i,r,s,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>f.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let c;if(l.push(a.reduce(((e,t)=>f.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new On.lt(e,n,i,r).parseSearchRequest();if(!t)return[];c=e=>this.findMatchesLineByLine(e,t,s,o)}else c=t=>On.hB.findMatches(this,new On.lt(e,n,i,r),t,s,o);return l.map(c).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new On.lt(e,n,i,r).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new f.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),c=this.findMatchesLineByLine(l,t,s,1);return On.hB.findNextMatch(this,new On.lt(e,n,i,r),o,s),c.length>0?c[0]:(l=new f.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),c=this.findMatchesLineByLine(l,t,s,1),c.length>0?c[0]:null)}return On.hB.findNextMatch(this,new On.lt(e,n,i,r),o,s)}findPreviousMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);return On.hB.findPreviousMatch(this,new On.lt(e,n,i,r),o,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof fe.Wo?e:new fe.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,i){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,i){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let i=!0;if(e)for(let t=0,r=e.length;t<r;t++){const r=e[t];let s=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,i=t.startLineNumber>r.endLineNumber,o=r.startLineNumber>t.endLineNumber;if(!i&&!o){s=!0;break}}if(!s){i=!1;break}}if(i)for(let e=0,r=this._trimAutoWhitespaceLines.length;e<r;e++){const i=this._trimAutoWhitespaceLines[e],r=this.getLineMaxColumn(i);let s=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,o=n[e].text;if(!(i<t.startLineNumber||i>t.endLineNumber)&&(!(i===t.startLineNumber&&t.startColumn===r&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(i===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){s=!1;break}}if(s){const e=new f.Q(i,1,i,r);t.push(new fe.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,i)}_applyUndo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new f.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(r,t,!0,!1,n,i)}_applyRedo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new f.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(r,t,!1,!0,n,i)}_applyUndoRedoEdits(e,t,n,i,r,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=i,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(r)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),s=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==s.length){for(let n=0,i=s.length;n<i;n++){const e=s[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,i=s.length;n<i;n++){const i=s[n],[a]=(0,d.W)(i.text);this._onDidChangeDecorations.fire();const l=i.range.startLineNumber,c=i.range.endLineNumber,h=c-l,u=a,p=Math.min(h,u),f=u-h,g=r-t-f+l,b=g,v=g+u,y=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new m.y(b,1)),this.getOffsetAt(new m.y(v,this.getLineMaxColumn(v))),0),w=Ni.fromDecorations(y),_=new o.j3(w);for(let t=p;t>=0;t--){const n=l+t,i=g+t;_.takeFromEndWhile((e=>e.lineNumber>i));const r=_.takeFromEndWhile((e=>e.lineNumber===i));e.push(new Ri(n,this.getLineContent(i),r))}if(p<h){const t=l+p;e.push(new Di(t+1,c))}if(p<u){const n=new o.j3(w),i=l+p,s=u-p,a=r-t-s+i+1,c=[],h=[];for(let e=0;e<s;e++){const t=a+e;h[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),c[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Ai(i+1,l+u,h,c))}t+=f}this._emitContentChangedEvent(new Oi(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===i.reverseEdits?void 0:i.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Ri(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new zi(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,ar(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let i=null;try{i=t(n)}catch(r){(0,l.dz)(r)}return n.addDecoration=Gi,n.changeDecoration=Gi,n.changeDecorationOptions=Gi,n.removeDecoration=Gi,n.deltaDecorations=Gi,i}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:or[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;const r=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),o=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,o,r),i.setOptions(or[n]),this._decorationsTree.insert(i),i.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,i=t.length;n<i;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,i=!1,r=!1){const s=this.getLineCount(),a=Math.min(s,Math.max(1,e)),l=Math.min(s,Math.max(1,t)),c=this.getLineMaxColumn(l),h=new f.Q(a,1,l,c),d=this._getDecorationsInRange(h,n,i,r);return(0,o.E4)(d,this._decorationProvider.getDecorationsInRange(h,n,i)),d}getDecorationsInRange(e,t=0,n=!1,i=!1,r=!1){const s=this.validateRange(e),a=this._getDecorationsInRange(s,t,n,r);return(0,o.E4)(a,this._decorationProvider.getDecorationsInRange(s,t,n,i)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),i=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Ni.fromDecorations(i).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,i){const r=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,r,s,t,n,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const i=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),s=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,s,i),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const s=i!==r,o=function(e){return!!e.after||!!e.before}(t)!==Yi(n);s||o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,i=!1){const r=this.getVersionId(),s=t.length;let o=0;const a=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const c=new Array(a);for(;o<s||l<a;){let h=null;if(o<s){do{h=this._decorations[t[o++]]}while(!h&&o<s);if(h){if(h.options.after){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(h.options.before){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(h),i||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(l<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new cn(t,0,0),this._decorations[t]=h}const t=n[l],s=this._validateRangeRelaxedNoAllocations(t.range),o=ar(t.options),a=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),d=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);h.ownerId=e,h.reset(r,a,d,s),h.setOptions(o),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber),i||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(h),c[l]=h.id,l++}else h&&delete this._decorations[h.id]}return c}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function Ji(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Yi(e){return!!e.options.after||!!e.options.before}Qi=Ui=$i([qi(4,Bi),qi(5,y.L),qi(6,se),qi(7,K._Y)],Qi);class Xi{constructor(){this._decorationsTree0=new dn,this._decorationsTree1=new dn,this._injectedTextDecorationsTree=new dn}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,i,r,s){const o=e.getVersionId(),a=this._intervalSearch(t,n,i,r,o,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,n,i,r,s){const o=this._decorationsTree0.intervalSearch(e,t,n,i,r,s),a=this._decorationsTree1.intervalSearch(e,t,n,i,r,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,i,r,s);return o.concat(a).concat(l)}getInjectedTextInInterval(e,t,n,i){const r=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,n,i,!1,r,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),i=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,i).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,i,r){const s=e.getVersionId(),o=this._search(t,n,i,s,r);return this._ensureNodesHaveRanges(e,o)}_search(e,t,n,i,r){if(n)return this._decorationsTree1.search(e,t,i,r);{const n=this._decorationsTree0.search(e,t,i,r),s=this._decorationsTree1.search(e,t,i,r),o=this._injectedTextDecorationsTree.search(e,t,i,r);return n.concat(s).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),i=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(i)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Yi(e)?this._injectedTextDecorationsTree.insert(e):Ji(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Yi(e)?this._injectedTextDecorationsTree.delete(e):Ji(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Yi(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Ji(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i),this._injectedTextDecorationsTree.acceptReplace(e,t,n,i)}}function Zi(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class er{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class tr extends er{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:fe.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class nr{constructor(e){this.position=e?.position??fe.ZS.Center,this.persistLane=e?.persistLane}}class ir extends er{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?a.Q1.fromHex(e):t.getColor(e.id)}}class rr{static from(e){return e instanceof rr?e:new rr(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class sr{static register(e){return new sr(e)}static createDynamic(e){return new sr(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Zi(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Zi(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new tr(e.overviewRuler):null,this.minimap=e.minimap?new ir(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new nr(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Zi(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Zi(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Zi(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?c.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Zi(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Zi(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Zi(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Zi(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Zi(e.afterContentClassName):null,this.after=e.after?rr.from(e.after):null,this.before=e.before?rr.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}sr.EMPTY=sr.register({description:"empty"});const or=[sr.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),sr.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),sr.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),sr.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function ar(e){return e instanceof sr?e:sr.createDynamic(e)}class lr extends r.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new i.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class cr extends r.jG{constructor(){super(),this._fastEmitter=this._register(new i.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new i.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var hr,dr=n(360),ur=n(5600),pr=n(6456),mr=n(146),fr=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},gr=function(e,t){return function(n,i){t(n,i,e)}};function br(e){return e.toString()}class vr{constructor(e,t,n){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const yr=s.j9||s.zx?1:2;class wr{constructor(e,t,n,i,r,s,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=i,this.heapSize=r,this.sha1=s,this.versionId=o,this.alternativeVersionId=a}}let _r=class extends r.jG{static{hr=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,r){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=r,this._onModelAdded=this._register(new i.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new i.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new i.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=b.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let i="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(i=Math.max(t,1))}let r=b.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(r="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let s=yr;const o=e.eol;"\r\n"===o?s=2:"\n"===o&&(s=1);let a=b.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=b.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let c=b.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(c="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let h=b.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(h={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:r,detectIndentation:l,defaultEOL:s,trimAutoWhitespace:a,largeFileOptimizations:c,bracketPairColorizationOptions:h}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===s.OS||2===s.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const i="string"===typeof e?e:e.languageId;let r=this._modelCreationOptionsByLanguageAndResource[i+t];if(!r){const e=this._configurationService.getValue("editor",{overrideIdentifier:i,resource:t}),s=this._getEOL(t,i);r=hr._readModelOptions({editor:e,eol:s},n),this._modelCreationOptionsByLanguageAndResource[i+t]=r}return r}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let i=0,r=n.length;i<r;i++){const r=n[i],s=this._models[r],o=s.model.getLanguageId(),a=s.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:o,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:o,resource:a}))continue;const l=t[o+a],c=this.getCreationOptions(o,a,s.model.isForSimpleWidget);hr._setModelOptionsForModel(s.model,c,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,mr.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(br(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(br(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(br(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,i){const r=this.getCreationOptions(t,n,i),s=this._instantiationService.createInstance(Qi,e,t,r,n);if(n&&this._disposedModels.has(br(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),i=this._getSHA1Computer(),r=!!i.canComputeSHA1(s)&&i.computeSHA1(s)===e.sha1;if(r||e.sharesUndoRedoStack){for(const e of t.past)Wt(e)&&e.matchesResource(n)&&e.setModel(s);for(const e of t.future)Wt(e)&&e.matchesResource(n)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(n,!0,(e=>Wt(e)&&e.matchesResource(n))),r&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=br(s.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const a=new vr(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=a,a}createModel(e,t,n,i=!1){let r;return r=t?this._createModelData(e,t,n,i):this._createModelData(e,Q.vH,n,i),this._onModelAdded.fire(r.model),r.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._models[i].model)}return e}getModel(e){const t=br(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===pr.ny.file||e.scheme===pr.ny.vscodeRemote||e.scheme===pr.ny.vscodeUserData||e.scheme===pr.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=br(e.uri),n=this._models[t],i=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let r=!1,s=0;if(i||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)Wt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)Wt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri))}}const o=hr.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(r)if(i||!(s>o)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(o-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>Wt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new wr(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),i,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!i){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,i=e.getLanguageId(),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget);hr._setModelOptionsForModel(e,s,r),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new kr}};_r=hr=fr([gr(0,H.pG),gr(1,dr.ITextResourcePropertiesService),gr(2,Bi),gr(3,K._Y)],_r);class kr{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=kr.MAX_MODEL_SIZE}computeSHA1(e){const t=new ur.v7,n=e.createSnapshot();let i;for(;i=n.read();)t.update(i);return t.digest()}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>i});const i=(0,n(3591).u1)("textModelService")},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>s});var i=n(1674),r=n(8067);function s(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const i of e.deltas)t[n++]=i.start,t[n++]=i.deleteCount,i.data?(t[n++]=i.data.length,t.set(i.data,n),n+=i.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return r.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],i=e[t+1],r=e[t+2],s=e[t+3];e[t+0]=s,e[t+1]=r,e[t+2]=i,e[t+3]=n}}(t),i.MB.wrap(t)}(t)}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>f,toMultilineTokens2:()=>g});n(5982);var i=n(5724),r=n(3511),s=n(3069),o=n(6677),a=n(4454);class l{static create(e,t){return new l(e,new c(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[i,r,s]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,i),new l(this._startLineNumber+s,r)]}applyEdit(e,t){const[n,i,r]=(0,a.W)(t);this.acceptEdit(e,n,i,r,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new s.y(e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const i=this._tokens.getMaxDeltaLine();if(!(t>=i+1)){if(t<0&&n>=i+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const i=-t;this._startLineNumber-=i,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,i,r){if(0===t&&0===n)return;const s=e.lineNumber-this._startLineNumber;if(s<0)return void(this._startLineNumber+=t);s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,n,i,r)}}class c{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),i=this._getEndCharacter(e-1);return new o.Q(0,t+1,n,i+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const i=t+Math.floor((n-t)/2),r=this._getDeltaLine(i);if(r<e)t=i+1;else{if(!(r>e)){let r=i;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let s=i;for(;s<n&&this._getDeltaLine(s+1)===e;)s++;return new h(this._tokens.subarray(4*r,4*s+4))}n=i-1}}return this._getDeltaLine(t)===e?new h(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,i){const r=this._tokens,s=this._tokenCount;let o=0,a=!1,l=0;for(let c=0;c<s;c++){const s=4*c,h=r[s],d=r[s+1],u=r[s+2],p=r[s+3];if((h>e||h===e&&u>=t)&&(h<n||h===n&&d<=i))a=!0;else{if(0===o&&(l=h),a){const e=4*o;r[e]=h-l,r[e+1]=d,r[e+2]=u,r[e+3]=p}o++}}return this._tokenCount=o,l}split(e,t,n,i){const r=this._tokens,s=this._tokenCount,o=[],a=[];let l=o,h=0,d=0;for(let c=0;c<s;c++){const s=4*c,o=r[s],u=r[s+1],p=r[s+2],m=r[s+3];if(o>e||o===e&&p>=t){if(o<n||o===n&&u<=i)continue;l!==a&&(l=a,h=0,d=o)}l[h++]=o-d,l[h++]=u,l[h++]=p,l[h++]=m}return[new c(new Uint32Array(o)),new c(new Uint32Array(a)),d]}acceptDeleteRange(e,t,n,i,r){const s=this._tokens,o=this._tokenCount,a=i-t;let l=0,c=!1;for(let h=0;h<o;h++){const d=4*h;let u=s[d],p=s[d+1],m=s[d+2];const f=s[d+3];if(u<t||u===t&&m<=n){l++;continue}if(u===t&&p<n)u===i&&m>r?m-=r-n:m=n;else if(u===t&&p===n){if(!(u===i&&m>r)){c=!0;continue}m-=r-n}else if(u<i||u===i&&p<r){if(!(u===i&&m>r)){c=!0;continue}u=t,p=n,m=p+(m-r)}else if(u>i){if(0===a&&!c){l=o;break}u-=a}else{if(!(u===i&&p>=r))throw new Error("Not possible!");e&&0===u&&(p+=e,m+=e),u-=a,p-=r-n,m-=r-n}const g=4*l;s[g]=u,s[g+1]=p,s[g+2]=m,s[g+3]=f,l++}this._tokenCount=l}acceptInsertText(e,t,n,i,r,s){const o=0===n&&1===i&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let c=0;c<l;c++){const s=4*c;let l=a[s],h=a[s+1],d=a[s+2];if(!(l<e||l===e&&d<t)){if(l===e&&d===t){if(!o)continue;d+=1}else if(l===e&&h<t&&t<d)0===n?d+=i:d=t;else{if(l===e&&h===t&&o)continue;if(l===e)if(l+=n,0===n)h+=i,d+=i;else{const e=d-h;h=r+(h-t),d=h+e}else l+=n}a[s]=l,a[s+1]=h,a[s+2]=d}}}}class h{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var d=n(154),u=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},p=function(e,t){return function(n,i){t(n,i,e)}};const m=!1;let f=class{constructor(e,t,n,i){this._legend=e,this._themeService=t,this._languageService=n,this._logService=i,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new v}getMetadata(e,t,n){const i=this._languageService.languageIdCodec.encodeLanguageId(n),r=this._hashTable.get(e,t,i);let s;if(r)s=r.metadata;else{let r=this._legend.tokenTypes[e];const o=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;m;const i=this._themeService.getColorTheme().getTokenStyleMetadata(r,o,n);if("undefined"===typeof i)s=2147483647;else{if(s=0,"undefined"!==typeof i.italic){s|=1|(i.italic?1:0)<<11}if("undefined"!==typeof i.bold){s|=2|(i.bold?2:0)<<11}if("undefined"!==typeof i.underline){s|=4|(i.underline?4:0)<<11}if("undefined"!==typeof i.strikethrough){s|=8|(i.strikethrough?8:0)<<11}if(i.foreground){s|=16|i.foreground<<15}0===s&&(s=2147483647)}}else s=2147483647,r="not-in-legend";this._hashTable.add(e,t,i,s)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,i,r){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${i} is outside the previous data (length ${r}).`))}};function g(e,t,n){const i=e.data,r=e.data.length/5|0,s=Math.max(Math.ceil(r/1024),400),o=[];let a=0,c=1,h=0;for(;a<r;){const e=a;let d=Math.min(e+s,r);if(d<r){let t=d;for(;t-1>e&&0===i[5*t];)t--;if(t-1===e){let e=d;for(;e+1<r&&0===i[5*e];)e++;d=e}else d=t}let u=new Uint32Array(4*(d-e)),p=0,m=0,f=0,g=0;for(;a<d;){const e=5*a,r=i[e],s=i[e+1],o=c+r|0,l=0===r?h+s|0:s,d=l+i[e+2]|0,b=i[e+3],v=i[e+4];if(d<=l)t.warnInvalidLengthSemanticTokens(o,l+1);else if(f===o&&g>l)t.warnOverlappingSemanticTokens(o,l+1);else{const e=t.getMetadata(b,v,n);2147483647!==e&&(0===m&&(m=o),u[p]=o-m,u[p+1]=l,u[p+2]=d,u[p+3]=e,p+=4,f=o,g=d)}c=o,h=l,a++}p!==u.length&&(u=u.subarray(0,p));const b=l.create(m,u);o.push(b)}return o}f=u([p(1,i.Gy),p(2,d.L),p(3,r.rr)],f);class b{constructor(e,t,n,i){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=i,this.next=null}}class v{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const i=this._hashFunc(e,t,n);let r=this._elements[i];for(;r;){if(r.tokenTypeIndex===e&&r.tokenModifierSet===t&&r.languageId===n)return r;r=r.next}return null}add(e,t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new b(e,t,n,i))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>i});const i=(0,n(3591).u1)("semanticTokensStylingService")},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>u});var i=n(1484),r=n(154),s=n(5724),o=n(3511),a=n(5538),l=n(4243),c=n(4621),h=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},d=function(e,t){return function(n,i){t(n,i,e)}};let u=class extends i.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};u=h([d(0,s.Gy),d(1,o.rr),d(2,r.L)],u),(0,c.v)(l.ISemanticTokensStylingService,u,1)},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>b,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>m,WorkerTextModelSyncClient:()=>f,WorkerTextModelSyncServer:()=>g});var i=n(1940),r=n(1484),s=n(9400),o=n(3069),a=n(6677),l=n(6486),c=n(1508),h=(n(9861),n(5152));class d{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,h.j)(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,h.j)(e),t=(0,h.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,h.j)(e),t=(0,h.j)(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,h.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,r=0,s=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],s=r-this.values[i],e<s)n=i-1;else{if(!(e>=r))break;t=i+1}return new u(i,e-s)}}class u{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class p{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new o.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new d(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,c.uz)(t);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);const i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const m=6e4;class f extends r.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new i.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(m/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,r.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>m&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const i=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const s=new r.Cm;s.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(i.toString(),e)}))),s.add(n.onWillDispose((()=>{this._stopModelSync(i)}))),s.add((0,r.s)((()=>{this._proxy.$acceptRemovedModel(i)}))),this._syncedModels[i]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,r.AS)(t)}}class g{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new b(s.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class b extends p{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const i=this._lines[n],r=this.offsetAt(new o.y(n+1,1)),s=i.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+r),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=r.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(i<t.length))break;r=t[i],o=n(r,e),s=0,i+=1}}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const s of i)r.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<i;s++)r.push(this._lines[s]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}},8868:(e,t,n)=>{"use strict";n.r(t)},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>r,ITextResourcePropertiesService:()=>s});var i=n(3591);const r=(0,i.u1)("textResourceConfigurationService"),s=(0,i.u1)("textResourcePropertiesService")},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>i});const i=(0,n(3591).u1)("treeSitterParserService")},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>r,TreeViewsDnDService:()=>i});class i{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class r{constructor(e){this.identifier=e}}},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>o});var i=n(4621),r=n(3591),s=n(6723);const o=(0,r.u1)("treeViewsDndService");(0,i.v)(o,s.TreeViewsDnDService,1)},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var i=n(6677),r=n(7729),s=n(1508),o=n(6782),a=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,h=n?n.endLineNumber:e.getLineCount(),d=new c(t),u=d.getCandidateCodePoints();let p;var m;p="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(m=Array.from(u),`[${s.bm(m.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const f=new r.W5(null,p),g=[];let b,v=!1,y=0,w=0,_=0;e:for(let r=l,c=h;r<=c;r++){const t=e.getLineContent(r),n=t.length;f.reset(0);do{if(b=f.next(t),b){let e=b.index,l=b.index+b[0].length;if(e>0){const n=t.charCodeAt(e-1);s.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);s.pc(e)&&l++}const c=t.substring(e,l);let h=(0,a.Th)(e+1,a.Ld,t,0);h&&h.endColumn<=e+1&&(h=null);const u=d.shouldHighlightNonBasicASCII(c,h?h.word:null);if(0!==u){3===u?y++:2===u?w++:1===u?_++:(0,o.xb)(u);const t=1e3;if(g.length>=t){v=!0;break e}g.push(new i.Q(r,e+1,r,l+1))}}}while(b)}return{ranges:g,hasMore:v,ambiguousCharacterCount:y,invisibleCharacterCount:w,nonBasicAsciiCharacterCount:_}}static computeUnicodeHighlightReason(e,t){const n=new c(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),r=n.ambiguousCharacters.getPrimaryConfusable(i),o=s.tl.getLocales().filter((e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i)));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class c{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=s.aC(o);i=i||t,t||this.ambiguousCharacters.isAmbiguous(e)||s.y_.isInvisibleCharacter(e)||(r=!0)}return!i&&r?0:this.options.invisibleCharacters&&!h(e)&&s.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},8209:(e,t,n)=>{"use strict";function i(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>i,kg:()=>o});const r="pseudo"===i()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const i=n[0],r=t[i];let s=e;return"string"===typeof r?s=r:"number"!==typeof r&&"boolean"!==typeof r&&void 0!==r&&null!==r||(s=String(r)),s})),r&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function o(e,t,...n){return s("number"===typeof e?a(e,t):t,n)}function a(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>r,pG:()=>i});const i=(0,n(3591).u1)("configurationService");function r(e){return e.replace(/[\[\]]/g,"")}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>h});var i=n(9861),r=n(1234),s=n(631),o=n(8209),a=n(4001),l=n(8748),c=n(6359);const h={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},b="vscode://schemas/settings/resourceLanguage",v=c.O.as(l.F.JSONContribution);const y="\\[([^\\]]+)\\]",w=new RegExp(y,"g"),_=`^(${y})+$`,k=new RegExp(_);function C(e){const t=[];if(k.test(e)){let n=w.exec(e);for(;n?.length;){const i=n[1].trim();i&&t.push(i),n=w.exec(e)}}return(0,i.dM)(t)}const S=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new r.vl,this._onDidUpdateConfiguration=new r.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},v.registerSchema(b,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),v.registerSchema(b,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:i,source:r}of e)for(const e in i){t.add(e);const s=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=i[e];if(s.configurationDefaultOverrides.push({value:o,source:r}),k.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,r),n.push(...C(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const i={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:b,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=i,this.defaultLanguageConfigurationOverridesNode.properties[e]=i}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,i){const r=i?.value||{},o=i?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const i=t[e];if(s.Gv(i)&&(s.b0(r[e])||s.Gv(r[e]))){if(r[e]={...r[e]??{},...i},n)for(const t in i)o.set(`${e}.${t}`,n)}else r[e]=i,n?o.set(e,n):o.delete(e)}return{value:r,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,i){const r=this.configurationProperties[e],o=i?.value??r?.defaultDefaultValue;let a=n;if(s.Gv(t)&&(void 0!==r&&"object"===r.type||void 0===r&&(s.b0(o)||s.Gv(o)))){if(a=i?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const i in t)n&&a.set(`${e}.${i}`,n);t={...s.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,i,r=3,o){r=s.z(e.scope)?r:e.scope;const a=e.properties;if(a)for(const c in a){const e=a[c];t&&x(c,e)?delete a[c]:(e.source=n,e.defaultDefaultValue=a[c].default,this.updatePropertyDefaultValue(c,e),k.test(c)?e.scope=void 0:(e.scope=s.z(e.scope)?r:e.scope,e.restricted=s.z(e.restricted)?!!i?.includes(c):e.restricted),!a[c].hasOwnProperty("included")||a[c].included?(this.configurationProperties[c]=a[c],a[c].policy?.name&&this.policyConfigurations.set(a[c].policy.name,c),!a[c].deprecationMessage&&a[c].markdownDeprecationMessage&&(a[c].deprecationMessage=a[c].markdownDeprecationMessage),o.add(c)):(this.excludedConfigurationProperties[c]=a[c],delete a[c]))}const l=e.allOf;if(l)for(const s of l)this.validateAndRegisterProperties(s,t,n,i,r,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const i=e.allOf;i?.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:p.properties[e]=t;break;case 6:m.properties[e]=t;break;case 3:f.properties[e]=t;break;case 4:g.properties[e]=t;break;case 5:g.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};this.updatePropertyDefaultValue(t,n),d.properties[t]=n,u.properties[t]=n,p.properties[t]=n,m.properties[t]=n,f.properties[t]=n,g.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};d.patternProperties[_]=e,u.patternProperties[_]=e,p.patternProperties[_]=e,m.patternProperties[_]=e,f.patternProperties[_]=e,g.patternProperties[_]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let i,r;!n||t.disallowConfigurationDefault&&n.source||(i=n.value,r=n.source),s.b0(i)&&(i=t.defaultDefaultValue,r=void 0),s.b0(i)&&(i=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=i,t.defaultValueSource=r}};function x(e,t){return e.trim()?k.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==S.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==S.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,S.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}c.O.add(h.Configuration,S)},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});class i{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const r=[];function s(e,t,n){t instanceof i||(t=new i(t,[],Boolean(n))),r.push([e,t])}},3591:(e,t,n)=>{"use strict";var i;n.d(t,{_Y:()=>r,u1:()=>s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i||(i={}));const r=s("instantiationService");function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n}],t[i.DI_TARGET]=t)}(t,e,r)};return t.toString=()=>e,i.serviceIds.set(e,t),t}},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var i=n(1234),r=n(6359);const s={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new i.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};r.O.add(s.JSONContribution,o)},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>Q,$b:()=>J});n(1234);var i=n(1484),r=n(8067),s=n(1508),o=n(4383),a=n(8209);function l(...e){switch(e.length){case 1:return(0,a.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,a.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,a.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const c=(0,a.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),h=(0,a.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class d{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),i={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(i)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=d._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(c):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(h);const i=this._input.charCodeAt(e);if(t)t=!1;else{if(47===i&&!n){e++;break}91===i?n=!0:92===i?t=!0:93===i&&(n=!1)}e++}for(;e<this._input.length&&d._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const i=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:i,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var u=n(3591);const p=new Map;p.set("false",!1),p.set("true",!0),p.set("isMac",r.zx),p.set("isLinux",r.j9),p.set("isWindows",r.uF),p.set("isWeb",r.HZ),p.set("isMacNative",r.zx&&!r.HZ),p.set("isEdge",r.UP),p.set("isFirefox",r.gm),p.set("isChrome",r.H8),p.set("isSafari",r.nr);const m=Object.prototype.hasOwnProperty,f={regexParsingWithErrorRecovery:!0},g=(0,a.kg)("contextkey.parser.error.emptyString","Empty context key expression"),b=(0,a.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),v=(0,a.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),y=(0,a.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),w=(0,a.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),_=(0,a.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),k=(0,a.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),C=(0,a.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class S{static{this._parseError=new Error}constructor(e=f){this._config=e,this._scanner=new d,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?_:void 0;throw this._parsingErrors.push({message:w,offset:e.offset,lexeme:d.getLexeme(e),additionalInfo:t}),S._parseError}return e}catch(t){if(t!==S._parseError)throw t;return}}else this._parsingErrors.push({message:g,offset:0,lexeme:"",additionalInfo:b})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:x.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:x.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),F.INSTANCE;case 12:return this._advance(),L.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,y),e?.negate()}case 17:return this._advance(),A.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),x.true();case 12:return this._advance(),x.false();case 0:{this._advance();const e=this._expr();return this._consume(1,y),e}case 17:{const i=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,r=n.lastIndexOf("/"),s=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));let o;try{o=new RegExp(n.substring(1,r),s)}catch(t){throw this._errExpectedButGot("REGEX",e)}return W.create(i,o)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let r=this._peek(),s=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--;for(;!this._isAtEnd()&&15!==r.type&&16!==r.type;){switch(r.type){case 0:s++;break;case 1:s--;break;case 10:case 18:for(let t=0;t<r.lexeme.length;t++)40===r.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--}if(s<0)break;n.push(d.getLexeme(r)),this._advance(),r=this._peek()}const o=n.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let c;try{c=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return x.regex(i,c)}case 18:{const t=e.lexeme;this._advance();let r=null;if(!(0,s.AV)(t)){const i=t.indexOf("/"),s=t.lastIndexOf("/");if(i!==s&&i>=0){const o=t.slice(i+1,s),a="i"===t[s+1]?"i":"";try{r=new RegExp(o,a)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return W.create(i,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,v);const e=this._value();return x.notIn(i,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return x.equals(i,e);switch(e){case"true":return x.has(i);case"false":return x.not(i);default:return x.equals(i,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return x.notEquals(i,e);switch(e){case"true":return x.not(i);case"false":return x.has(i);default:return x.notEquals(i,e)}}case 5:return this._advance(),P.create(i,this._value());case 6:return this._advance(),B.create(i,this._value());case 7:return this._advance(),O.create(i,this._value());case 8:return this._advance(),z.create(i,this._value());case 13:return this._advance(),x.in(i,this._value());default:return x.has(i)}}case 20:throw this._parsingErrors.push({message:k,offset:e.offset,lexeme:"",additionalInfo:C}),S._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const i=(0,a.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,d.getLexeme(t)),r=t.offset,s=d.getLexeme(t);return this._parsingErrors.push({message:i,offset:r,lexeme:s,additionalInfo:n}),S._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class x{static false(){return F.INSTANCE}static true(){return L.INSTANCE}static has(e){return I.create(e)}static equals(e,t){return T.create(e,t)}static notEquals(e,t){return D.create(e,t)}static regex(e,t){return W.create(e,t)}static in(e,t){return N.create(e,t)}static notIn(e,t){return R.create(e,t)}static not(e){return A.create(e)}static and(...e){return $.create(e,null,!0)}static or(...e){return q.create(e,null,!0)}static{this._parser=new S({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function E(e,t){return e.cmp(t)}class F{static{this.INSTANCE=new F}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return L.INSTANCE}}class L{static{this.INSTANCE=new L}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return F.INSTANCE}}class I{static create(e,t=null){const n=p.get(e);return"boolean"===typeof n?n?L.INSTANCE:F.INSTANCE:new I(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=p.get(this.key);return"boolean"===typeof e?e?L.INSTANCE:F.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this)),this.negated}}class T{static create(e,t,n=null){if("boolean"===typeof t)return t?I.create(e,n):A.create(e,n);const i=p.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?L.INSTANCE:F.INSTANCE}return new T(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=p.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?L.INSTANCE:F.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this.value,this)),this.negated}}class N{static create(e,t){return new N(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&m.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=R.create(this.key,this.valueKey)),this.negated}}class R{static create(e,t){return new R(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=N.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class D{static create(e,t,n=null){if("boolean"===typeof t)return t?A.create(e,n):I.create(e,n);const i=p.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?F.INSTANCE:L.INSTANCE}return new D(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=p.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?F.INSTANCE:L.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class A{static create(e,t=null){const n=p.get(e);return"boolean"===typeof n?n?F.INSTANCE:L.INSTANCE:new A(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=p.get(this.key);return"boolean"===typeof e?e?F.INSTANCE:L.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this)),this.negated}}function M(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):F.INSTANCE}class O{static create(e,t,n=null){return M(t,(t=>new O(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class z{static create(e,t,n=null){return M(t,(t=>new z(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class P{static create(e,t,n=null){return M(t,(t=>new P(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this.value,this)),this.negated}}class B{static create(e,t,n=null){return M(t,(t=>new B(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class W{static create(e,t){return new W(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this)),this.negated}}class V{static create(e){return new V(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function U(e){let t=null;for(let n=0,i=e.length;n<i;n++){const i=e[n].substituteConstants();if(e[n]!==i&&null===t){t=[];for(let i=0;i<n;i++)t[i]=e[i]}null!==t&&(t[n]=i)}return null===t?e:t}class ${static create(e,t,n){return $._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=E(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=U(this.expr);return e===this.expr?this:$.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const i=[];let r=!1;for(const s of e)if(s)if(1!==s.type){if(0===s.type)return F.INSTANCE;6!==s.type?i.push(s):i.push(...s.expr)}else r=!0;if(0===i.length&&r)return L.INSTANCE;if(0!==i.length){if(1===i.length)return i[0];i.sort(E);for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];for(;i.length>1;){const e=i[i.length-1];if(9!==e.type)break;i.pop();const t=i.pop(),r=0===i.length,s=q.create(e.expr.map((e=>$.create([e,t],null,n))),null,r);s&&(i.push(s),i.sort(E))}if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return F.INSTANCE;if(1===i.length)return i[0]}return new $(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=q.create(e,this,!0)}return this.negated}}class q{static create(e,t,n){return q._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=E(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=U(this.expr);return e===this.expr?this:q.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let i=[],r=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return L.INSTANCE;9!==n.type?i.push(n):i=i.concat(n.expr)}else r=!0}if(0===i.length&&r)return F.INSTANCE;i.sort(E)}if(0!==i.length){if(1===i.length)return i[0];for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return L.INSTANCE;if(1===i.length)return i[0]}return new q(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),i=[];for(const e of G(t))for(const t of G(n))i.push($.create([e,t],null,!1));e.unshift(q.create(i,null,!1))}this.negated=q.create(e,this,!0)}return this.negated}}class j extends I{static{this._info=[]}static all(){return j._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?j._info.push({...n,key:e}):!0!==n&&j._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return T.create(this.key,e)}}(0,u.u1)("contextKeyService");function K(e,t){return e<t?-1:e>t?1:0}function H(e,t,n,i){return e<n?-1:e>n?1:t<i?-1:t>i?1:0}function G(e){return 9===e.type?e.expr:[e]}const Q=(0,u.u1)("logService");var J;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(J||(J={}));J.Info;i.jG;new j("logLevel",function(e){switch(e){case J.Trace:return"trace";case J.Debug:return"debug";case J.Info:return"info";case J.Warning:return"warn";case J.Error:return"error";case J.Off:return"off"}}(J.Info))},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var i=n(6782),r=n(631);const s=new class{constructor(){this.data=new Map}add(e,t){i.ok(r.Kg(e)),i.ok(r.Gv(t)),i.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>x,b1q:()=>S,YtV:()=>N,Ubg:()=>U,IIb:()=>W,pOz:()=>B,whs:()=>O,Stt:()=>P,Hng:()=>z,yLC:()=>le,KoI:()=>oe,uMG:()=>ae,x1A:()=>d});var i=n(6782),r=n(1940),s=n(7661),o=n(1234),a=n(8748),l=n(6359),c=n(8209);const h=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,i=!1,r){const s={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=s;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(o.deprecationMessage=r),i&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=c.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[o,{type:"string",const:"default",description:c.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return b(null!==(i=n.defaults)&&"object"===typeof i&&"light"in i&&"dark"in i?n.defaults[t.type]:n.defaults,t)}var i}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function d(e,t,n,i,r){return h.registerColor(e,t,n,i,r)}function u(e,t){return{op:0,value:e,factor:t}}function p(e,t){return{op:1,value:e,factor:t}}function m(e,t){return{op:2,value:e,factor:t}}function f(...e){return{op:4,values:e}}function g(e,t,n,i){return{op:5,value:e,background:t,factor:n,transparency:i}}function b(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?s.Q1.fromHex(e):t.getColor(e):e instanceof s.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return b(e.value,t)?.darken(e.factor);case 1:return b(e.value,t)?.lighten(e.factor);case 2:return b(e.value,t)?.transparent(e.factor);case 3:{const n=b(e.background,t);return n?b(e.value,t)?.makeOpaque(n):b(e.value,t)}case 4:for(const n of e.values){const e=b(n,t);if(e)return e}return;case 6:return b(t.defines(e.if)?e.then:e.else,t);case 5:{const n=b(e.value,t);if(!n)return;const i=b(e.background,t);return i?n.isDarkerThan(i)?s.Q1.getLighterColor(n,i,e.factor).transparent(e.transparency):s.Q1.getDarkerColor(n,i,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,i.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",h);const v="vscode://schemas/workbench-colors",y=l.O.as(a.F.JSONContribution);y.registerSchema(v,h.getColorSchema());const w=new r.uC((()=>y.notifySchemaChanged(v)),200);h.onDidChangeSchema((()=>{w.isScheduled()||w.schedule()}));const _=d("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),k=(d("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},c.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),d("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),d("descriptionForeground",{light:"#717171",dark:m(_,.7),hcDark:m(_,.7),hcLight:m(_,.7)},c.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),d("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("iconForeground","The default color for icons in the workbench."))),C=d("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},c.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),S=d("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},c.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),x=d("contrastActiveBorder",{light:null,dark:null,hcDark:C,hcLight:C},c.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),E=(d("selection.background",null,c.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),d("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkForeground","Foreground color for links in text.")),d("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),d("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:s.Q1.black,hcLight:"#292929"},c.kg("textSeparatorForeground","Color for text separators.")),d("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},c.kg("textPreformatForeground","Foreground color for preformatted text segments.")),d("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},c.kg("textPreformatBackground","Background color for preformatted text segments.")),d("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},c.kg("textBlockQuoteBackground","Background color for block quotes in text.")),d("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:s.Q1.white,hcLight:"#292929"},c.kg("textBlockQuoteBorder","Border color for block quotes in text.")),d("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:s.Q1.black,hcLight:"#F2F2F2"},c.kg("textCodeBlockBackground","Background color for code blocks in text.")),d("sash.hoverBorder",C,c.kg("sashActiveBorder","Border color of active sashes.")),d("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},c.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),F=(d("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},c.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),d("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},c.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),L=d("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:m(S,.6),hcLight:m(S,.4)},c.kg("scrollbarSliderBackground","Scrollbar slider background color.")),I=d("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:m(S,.8),hcLight:m(S,.8)},c.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),T=d("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:S,hcLight:S},c.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),N=(d("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:S,hcLight:S},c.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),d("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("editorBackground","Editor background color."))),R=(d("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:_},c.kg("editorForeground","Editor default foreground color.")),d("editorStickyScroll.background",N,c.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),d("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),d("editorStickyScroll.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),d("editorStickyScroll.shadow",F,c.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),d("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},c.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),D=d("editorWidget.foreground",_,c.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),A=d("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:S,hcLight:S},c.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),M=(d("editorWidget.resizeBorder",null,c.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),d("editorError.background",null,c.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),O=(d("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},c.kg("errorBorder","If set, color of double underlines for errors in the editor.")),d("editorWarning.background",null,c.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),z=d("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},c.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),P=d("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},c.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),B=(d("editorInfo.background",null,c.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},c.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),W=d("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},c.kg("infoBorder","If set, color of double underlines for infos in the editor.")),V=(d("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},c.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),d("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},c.kg("hintBorder","If set, color of double underlines for hints in the editor.")),d("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},c.kg("activeLinkForeground","Color of active links.")),d("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},c.kg("editorSelectionBackground","Color of the editor selection."))),U=(d("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},c.kg("editorSelectionForeground","Color of the selected text for high contrast.")),d("editor.inactiveSelectionBackground",{light:m(V,.5),dark:m(V,.5),hcDark:m(V,.7),hcLight:m(V,.5)},c.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.selectionHighlightBackground",{light:g(V,N,.3,.6),dark:g(V,N,.3,.6),hcDark:null,hcLight:null},c.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:x,hcLight:x},c.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),d("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},c.kg("editorFindMatch","Color of the current search match.")),d("editor.findMatchForeground",null,c.kg("editorFindMatchForeground","Text color of the current search match.")),d("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},c.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),$=(d("editor.findMatchHighlightForeground",null,c.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),d("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},c.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.findMatchBorder",{light:null,dark:null,hcDark:x,hcLight:x},c.kg("editorFindMatchBorder","Border color of the current search match.")),d("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:x,hcLight:x},c.kg("findMatchHighlightBorder","Border color of the other search matches."))),q=(d("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:m(x,.4),hcLight:m(x,.4)},c.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},c.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorHoverWidget.background",R,c.kg("hoverBackground","Background color of the editor hover."))),j=(d("editorHoverWidget.foreground",D,c.kg("hoverForeground","Foreground color of the editor hover.")),d("editorHoverWidget.border",A,c.kg("hoverBorder","Border color of the editor hover.")),d("editorHoverWidget.statusBarBackground",{dark:p(q,.2),light:u(q,.05),hcDark:R,hcLight:R},c.kg("statusBarBackground","Background color of the editor hover status bar.")),d("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},c.kg("editorInlayHintForeground","Foreground color of inline hints"))),K=d("editorInlayHint.background",{dark:m(E,.1),light:m(E,.1),hcDark:m(s.Q1.white,.1),hcLight:m(E,.1)},c.kg("editorInlayHintBackground","Background color of inline hints")),H=(d("editorInlayHint.typeForeground",j,c.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),d("editorInlayHint.typeBackground",K,c.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),d("editorInlayHint.parameterForeground",j,c.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),d("editorInlayHint.parameterBackground",K,c.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),d("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},c.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),G=(d("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},c.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),d("editorLightBulbAi.foreground",H,c.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),d("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},c.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),d("editor.snippetTabstopHighlightBorder",null,c.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),d("editor.snippetFinalTabstopHighlightBackground",null,c.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),d("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},c.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new s.Q1(new s.bU(155,185,85,.2))),Q=new s.Q1(new s.bU(255,0,0,.2)),J=(d("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},c.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},c.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.insertedLineBackground",{dark:G,light:G,hcDark:null,hcLight:null},c.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.removedLineBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},c.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditorGutter.insertedLineBackground",null,c.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),d("diffEditorGutter.removedLineBackground",null,c.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),d("diffEditorOverview.insertedForeground",null,c.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),d("diffEditorOverview.removedForeground",null,c.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),d("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},c.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),d("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},c.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),d("diffEditor.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("diffEditorBorder","Border color between the two text editors.")),d("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},c.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),d("diffEditor.unchangedRegionBackground","sideBar.background",c.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),d("diffEditor.unchangedRegionForeground","foreground",c.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),d("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},c.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),d("widget.shadow",{dark:m(s.Q1.black,.36),light:m(s.Q1.black,.16),hcDark:null,hcLight:null},c.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),Y=(d("widget.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),d("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),X=(d("toolbar.hoverOutline",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),d("toolbar.activeBackground",{dark:p(Y,.1),light:u(Y,.1),hcDark:null,hcLight:null},c.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),d("breadcrumb.foreground",m(_,.8),c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),d("breadcrumb.background",N,c.kg("breadcrumbsBackground","Background color of breadcrumb items.")),d("breadcrumb.focusForeground",{light:u(_,.2),dark:p(_,.1),hcDark:p(_,.1),hcLight:p(_,.1)},c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),d("breadcrumb.activeSelectionForeground",{light:u(_,.2),dark:p(_,.1),hcDark:p(_,.1),hcLight:p(_,.1)},c.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),d("breadcrumbPicker.background",R,c.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),s.Q1.fromHex("#40C8AE").transparent(.5)),Z=s.Q1.fromHex("#40A6FF").transparent(.5),ee=s.Q1.fromHex("#606060").transparent(.4),te=d("merge.currentHeaderBackground",{dark:X,light:X,hcDark:null,hcLight:null},c.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(d("merge.currentContentBackground",m(te,.4),c.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.incomingHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},c.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),ie=(d("merge.incomingContentBackground",m(ne,.4),c.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},c.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(d("merge.commonContentBackground",m(ie,.4),c.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},c.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),se=(d("editorOverviewRuler.currentContentForeground",{dark:m(te,1),light:m(te,1),hcDark:re,hcLight:re},c.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.incomingContentForeground",{dark:m(ne,1),light:m(ne,1),hcDark:re,hcLight:re},c.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.commonContentForeground",{dark:m(ie,1),light:m(ie,1),hcDark:re,hcLight:re},c.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},c.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",c.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),d("problemsErrorIcon.foreground",M,c.kg("problemsErrorIconForeground","The color used for the problems error icon.")),d("problemsWarningIcon.foreground",z,c.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),d("problemsInfoIcon.foreground",B,c.kg("problemsInfoIconForeground","The color used for the problems info icon.")),d("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},c.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),oe=(d("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),d("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),d("minimap.infoHighlight",{dark:B,light:B,hcDark:W,hcLight:W},c.kg("minimapInfo","Minimap marker color for infos."))),ae=d("minimap.warningHighlight",{dark:z,light:z,hcDark:P,hcLight:P},c.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=d("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},c.kg("minimapError","Minimap marker color for errors.")),ce=(d("minimap.background",null,c.kg("minimapBackground","Minimap background color.")),d("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),c.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),d("minimapSlider.background",m(L,.5),c.kg("minimapSliderBackground","Minimap slider background color.")),d("minimapSlider.hoverBackground",m(I,.5),c.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),d("minimapSlider.activeBackground",m(T,.5),c.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),d("charts.foreground",_,c.kg("chartsForeground","The foreground color used in charts.")),d("charts.lines",m(_,.5),c.kg("chartsLines","The color used for horizontal lines in charts.")),d("charts.red",M,c.kg("chartsRed","The red color used in chart visualizations.")),d("charts.blue",B,c.kg("chartsBlue","The blue color used in chart visualizations.")),d("charts.yellow",z,c.kg("chartsYellow","The yellow color used in chart visualizations.")),d("charts.orange",se,c.kg("chartsOrange","The orange color used in chart visualizations.")),d("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},c.kg("chartsGreen","The green color used in chart visualizations.")),d("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},c.kg("chartsPurple","The purple color used in chart visualizations.")),d("input.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputBoxBackground","Input box background.")),d("input.foreground",_,c.kg("inputBoxForeground","Input box foreground.")),d("input.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("inputBoxBorder","Input box border.")),d("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:S,hcLight:S},c.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),he=d("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),de=d("inputOption.activeBackground",{dark:m(C,.4),light:m(C,.2),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},c.kg("inputOption.activeBackground","Background hover color of options in input fields.")),ue=d("inputOption.activeForeground",{dark:s.Q1.white,light:s.Q1.black,hcDark:_,hcLight:_},c.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),pe=(d("input.placeholderForeground",{light:m(_,.5),dark:m(_,.5),hcDark:m(_,.7),hcLight:m(_,.7)},c.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),d("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationInfoBackground","Input validation background color for information severity.")),d("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:_},c.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),d("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:S,hcLight:S},c.kg("inputValidationInfoBorder","Input validation border color for information severity.")),d("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),d("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:_},c.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),d("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:S,hcLight:S},c.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),d("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationErrorBackground","Input validation background color for error severity.")),d("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:_},c.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),d("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:S,hcLight:S},c.kg("inputValidationErrorBorder","Input validation border color for error severity.")),d("dropdown.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("dropdownBackground","Dropdown background."))),me=(d("dropdown.listBackground",{dark:null,light:null,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("dropdownListBackground","Dropdown list background.")),d("dropdown.foreground",{dark:"#F0F0F0",light:_,hcDark:s.Q1.white,hcLight:_},c.kg("dropdownForeground","Dropdown foreground."))),fe=d("dropdown.border",{dark:pe,light:"#CECECE",hcDark:S,hcLight:S},c.kg("dropdownBorder","Dropdown border.")),ge=d("button.foreground",s.Q1.white,c.kg("buttonForeground","Button foreground color.")),be=(d("button.separator",m(ge,.4),c.kg("buttonSeparator","Button separator color.")),d("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},c.kg("buttonBackground","Button background color."))),ve=(d("button.hoverBackground",{dark:p(be,.2),light:u(be,.2),hcDark:be,hcLight:be},c.kg("buttonHoverBackground","Button background color when hovering.")),d("button.border",S,c.kg("buttonBorder","Button border color.")),d("button.secondaryForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:_},c.kg("buttonSecondaryForeground","Secondary button foreground color.")),d("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:s.Q1.white},c.kg("buttonSecondaryBackground","Secondary button background color."))),ye=(d("button.secondaryHoverBackground",{dark:p(ve,.2),light:u(ve,.2),hcDark:null,hcLight:null},c.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),d("radio.activeForeground",ue,c.kg("radioActiveForeground","Foreground color of active radio option."))),we=(d("radio.activeBackground",de,c.kg("radioBackground","Background color of active radio option.")),d("radio.activeBorder",ce,c.kg("radioActiveBorder","Border color of the active radio option.")),d("radio.inactiveForeground",null,c.kg("radioInactiveForeground","Foreground color of inactive radio option.")),d("radio.inactiveBackground",null,c.kg("radioInactiveBackground","Background color of inactive radio option.")),d("radio.inactiveBorder",{light:m(ye,.2),dark:m(ye,.2),hcDark:m(ye,.4),hcLight:m(ye,.2)},c.kg("radioInactiveBorder","Border color of the inactive radio option.")),d("radio.inactiveHoverBackground",he,c.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),d("checkbox.background",pe,c.kg("checkbox.background","Background color of checkbox widget.")),d("checkbox.selectBackground",R,c.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),d("checkbox.foreground",me,c.kg("checkbox.foreground","Foreground color of checkbox widget.")),d("checkbox.border",fe,c.kg("checkbox.border","Border color of checkbox widget.")),d("checkbox.selectBorder",k,c.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),d("keybindingLabel.background",{dark:new s.Q1(new s.bU(128,128,128,.17)),light:new s.Q1(new s.bU(221,221,221,.4)),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},c.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.foreground",{dark:s.Q1.fromHex("#CCCCCC"),light:s.Q1.fromHex("#555555"),hcDark:s.Q1.white,hcLight:_},c.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.border",{dark:new s.Q1(new s.bU(51,51,51,.6)),light:new s.Q1(new s.bU(204,204,204,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:S},c.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.bottomBorder",{dark:new s.Q1(new s.bU(68,68,68,.6)),light:new s.Q1(new s.bU(187,187,187,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:_},c.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),d("list.focusBackground",null,c.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusForeground",null,c.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusOutline",{dark:C,light:C,hcDark:x,hcLight:x},c.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusAndSelectionOutline",null,c.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),d("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),_e=d("list.activeSelectionForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:null,hcLight:null},c.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ke=d("list.activeSelectionIconForeground",null,c.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ce=(d("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveSelectionForeground",null,c.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveSelectionIconForeground",null,c.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveFocusBackground",null,c.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveFocusOutline",null,c.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Q1.white.transparent(.1),hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),d("list.hoverForeground",null,c.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),d("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},c.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),d("list.dropBetweenBackground",{dark:k,light:k,hcDark:null,hcLight:null},c.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),d("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:C,hcLight:C},c.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));d("list.focusHighlightForeground",{dark:Ce,light:(Se=we,xe=Ce,Ee="#BBE7FF",{op:6,if:Se,then:xe,else:Ee}),hcDark:Ce,hcLight:Ce},c.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var Se,xe,Ee;d("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},c.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),d("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},c.kg("listErrorForeground","Foreground color of list items containing errors.")),d("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},c.kg("listWarningForeground","Foreground color of list items containing warnings.")),d("listFilterWidget.background",{light:u(R,0),dark:p(R,0),hcDark:R,hcLight:R},c.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),d("listFilterWidget.outline",{dark:s.Q1.transparent,light:s.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},c.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),d("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:S,hcLight:S},c.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),d("listFilterWidget.shadow",J,c.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),d("list.filterMatchBackground",{dark:U,light:U,hcDark:null,hcLight:null},c.kg("listFilterMatchHighlight","Background color of the filtered match.")),d("list.filterMatchBorder",{dark:$,light:$,hcDark:S,hcLight:x},c.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),d("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},c.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const Fe=d("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},c.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Le=(d("tree.inactiveIndentGuidesStroke",m(Fe,.4),c.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),d("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},c.kg("tableColumnsBorder","Table border color between columns.")),d("tree.tableOddRowsBackground",{dark:m(_,.04),light:m(_,.04),hcDark:null,hcLight:null},c.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),d("editorActionList.background",R,c.kg("editorActionListBackground","Action List background color.")),d("editorActionList.foreground",D,c.kg("editorActionListForeground","Action List foreground color.")),d("editorActionList.focusForeground",_e,c.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),d("editorActionList.focusBackground",we,c.kg("editorActionListFocusBackground","Action List background color for the focused item.")),d("menu.border",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("menuBorder","Border color of menus.")),d("menu.foreground",me,c.kg("menuForeground","Foreground color of menu items.")),d("menu.background",pe,c.kg("menuBackground","Background color of menu items.")),d("menu.selectionForeground",_e,c.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),d("menu.selectionBackground",we,c.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),d("menu.selectionBorder",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),d("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:S,hcLight:S},c.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),d("quickInput.background",R,c.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),d("quickInput.foreground",D,c.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),d("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},c.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),d("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupForeground","Quick picker color for grouping labels.")),d("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupBorder","Quick picker color for grouping borders.")),d("quickInput.list.focusBackground",null,"",void 0,c.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));d("quickInputList.focusForeground",_e,c.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),d("quickInputList.focusIconForeground",ke,c.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),d("quickInputList.focusBackground",{dark:f(Le,we),light:f(Le,we),hcDark:null,hcLight:null},c.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),d("search.resultsInfoForeground",{light:_,dark:m(_,.65),hcDark:_,hcLight:_},c.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),d("searchEditor.findMatchBackground",{light:m(U,.66),dark:m(U,.66),hcDark:U,hcLight:U},c.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),d("searchEditor.findMatchBorder",{light:m($,.66),dark:m($,.66),hcDark:$,hcLight:$},c.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>d,Yf:()=>c});var i,r=n(1234),s=n(1484),o=n(3591),a=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(i||(i={}));const l=(0,o.u1)("themeService");function c(e){return{id:e}}const h=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function d(e){return h.onColorThemeChange(e)}a.O.add("base.contributions.theming",h);s.jG},5890:(e,t,n)=>{var i={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function r(e){return Promise.resolve().then((()=>{if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(i[e])}))}r.keys=()=>Object.keys(i),r.id=5890,e.exports=r},9204:(e,t,n)=>{var i={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function r(e){if(!n.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(r)))}r.keys=()=>Object.keys(i),r.id=9204,e.exports=r},7614:(e,t,n)=>{var i={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function r(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=s,e.exports=r,r.id=7614}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.e=()=>Promise.resolve(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),i=n(718);let r=!1;function s(n){if(r)return;r=!0;const s=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(i.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{s.onmessage(e.data)}}var o,a;globalThis.onmessage=e=>{r||s(null)},(a=o||(o={}))[a.Ident=0]="Ident",a[a.AtKeyword=1]="AtKeyword",a[a.String=2]="String",a[a.BadString=3]="BadString",a[a.UnquotedString=4]="UnquotedString",a[a.Hash=5]="Hash",a[a.Num=6]="Num",a[a.Percentage=7]="Percentage",a[a.Dimension=8]="Dimension",a[a.UnicodeRange=9]="UnicodeRange",a[a.CDO=10]="CDO",a[a.CDC=11]="CDC",a[a.Colon=12]="Colon",a[a.SemiColon=13]="SemiColon",a[a.CurlyL=14]="CurlyL",a[a.CurlyR=15]="CurlyR",a[a.ParenthesisL=16]="ParenthesisL",a[a.ParenthesisR=17]="ParenthesisR",a[a.BracketL=18]="BracketL",a[a.BracketR=19]="BracketR",a[a.Whitespace=20]="Whitespace",a[a.Includes=21]="Includes",a[a.Dashmatch=22]="Dashmatch",a[a.SubstringOperator=23]="SubstringOperator",a[a.PrefixOperator=24]="PrefixOperator",a[a.SuffixOperator=25]="SuffixOperator",a[a.Delim=26]="Delim",a[a.EMS=27]="EMS",a[a.EXS=28]="EXS",a[a.Length=29]="Length",a[a.Angle=30]="Angle",a[a.Time=31]="Time",a[a.Freq=32]="Freq",a[a.Exclamation=33]="Exclamation",a[a.Resolution=34]="Resolution",a[a.Comma=35]="Comma",a[a.Charset=36]="Charset",a[a.EscapedJavaScript=37]="EscapedJavaScript",a[a.BadEscapedJavaScript=38]="BadEscapedJavaScript",a[a.Comment=39]="Comment",a[a.SingleLineComment=40]="SingleLineComment",a[a.EOF=41]="EOF",a[a.ContainerQueryLength=42]="ContainerQueryLength",a[a.CustomToken=43]="CustomToken";var l=class{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,t=this.position){return this.source.substring(e,t)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let t=0;for(;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0}advanceWhileChar(e){const t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}},c="a".charCodeAt(0),h="f".charCodeAt(0),d="z".charCodeAt(0),u=("u".charCodeAt(0),"A".charCodeAt(0)),p="F".charCodeAt(0),m="Z".charCodeAt(0),f="0".charCodeAt(0),g="9".charCodeAt(0),b="~".charCodeAt(0),v="^".charCodeAt(0),y="=".charCodeAt(0),w="|".charCodeAt(0),_="-".charCodeAt(0),k="_".charCodeAt(0),C="%".charCodeAt(0),S="*".charCodeAt(0),x="(".charCodeAt(0),E=")".charCodeAt(0),F="<".charCodeAt(0),L=">".charCodeAt(0),I="@".charCodeAt(0),T="#".charCodeAt(0),N="$".charCodeAt(0),R="\\".charCodeAt(0),D="/".charCodeAt(0),A="\n".charCodeAt(0),M="\r".charCodeAt(0),O="\f".charCodeAt(0),z='"'.charCodeAt(0),P="'".charCodeAt(0),B=" ".charCodeAt(0),W="\t".charCodeAt(0),V=";".charCodeAt(0),U=":".charCodeAt(0),$="{".charCodeAt(0),q="}".charCodeAt(0),j="[".charCodeAt(0),K="]".charCodeAt(0),H=",".charCodeAt(0),G=".".charCodeAt(0),Q="!".charCodeAt(0),J="?".charCodeAt(0),Y="+".charCodeAt(0),X={};X[V]=o.SemiColon,X[U]=o.Colon,X[$]=o.CurlyL,X[q]=o.CurlyR,X[K]=o.BracketR,X[j]=o.BracketL,X[x]=o.ParenthesisL,X[E]=o.ParenthesisR,X[H]=o.Comma;var Z={};Z.em=o.EMS,Z.ex=o.EXS,Z.px=o.Length,Z.cm=o.Length,Z.mm=o.Length,Z.in=o.Length,Z.pt=o.Length,Z.pc=o.Length,Z.deg=o.Angle,Z.rad=o.Angle,Z.grad=o.Angle,Z.ms=o.Time,Z.s=o.Time,Z.hz=o.Freq,Z.khz=o.Freq,Z["%"]=o.Percentage,Z.fr=o.Percentage,Z.dpi=o.Resolution,Z.dpcm=o.Resolution,Z.cqw=o.ContainerQueryLength,Z.cqh=o.ContainerQueryLength,Z.cqi=o.ContainerQueryLength,Z.cqb=o.ContainerQueryLength,Z.cqmin=o.ContainerQueryLength,Z.cqmax=o.ContainerQueryLength;var ee,te,ne,ie,re=class{constructor(){this.stream=new l(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new l(e)}finishToken(e,t,n){return{offset:e,len:this.stream.pos()-e,type:t,text:n||this.stream.substring(e)}}substring(e,t){return this.stream.substring(e,e+t)}pos(){return this.stream.pos()}goBackTo(e){this.stream.goBackTo(e)}scanUnquotedString(){const e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,o.UnquotedString,t.join("")):null}scan(){const e=this.trivia();if(null!==e)return e;const t=this.stream.pos();return this.stream.eos()?this.finishToken(t,o.EOF):this.scanNext(t)}tryScanUnicode(){const e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,o.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([F,Q,_,_]))return this.finishToken(e,o.CDO);if(this.stream.advanceIfChars([_,_,L]))return this.finishToken(e,o.CDC);let t=[];if(this.ident(t))return this.finishToken(e,o.Ident,t.join(""));if(this.stream.advanceIfChar(I)){if(t=["@"],this._name(t)){const n=t.join("");return"@charset"===n?this.finishToken(e,o.Charset,n):this.finishToken(e,o.AtKeyword,n)}return this.finishToken(e,o.Delim)}if(this.stream.advanceIfChar(T))return t=["#"],this._name(t)?this.finishToken(e,o.Hash,t.join("")):this.finishToken(e,o.Delim);if(this.stream.advanceIfChar(Q))return this.finishToken(e,o.Exclamation);if(this._number()){const n=this.stream.pos();if(t=[this.stream.substring(e,n)],this.stream.advanceIfChar(C))return this.finishToken(e,o.Percentage);if(this.ident(t)){const i=this.stream.substring(n).toLowerCase(),r=Z[i];return"undefined"!==typeof r?this.finishToken(e,r,t.join("")):this.finishToken(e,o.Dimension,t.join(""))}return this.finishToken(e,o.Num)}t=[];let n=this._string(t);return null!==n?this.finishToken(e,n,t.join("")):(n=X[this.stream.peekChar()],"undefined"!==typeof n?(this.stream.advance(1),this.finishToken(e,n)):this.stream.peekChar(0)===b&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.Includes)):this.stream.peekChar(0)===w&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.Dashmatch)):this.stream.peekChar(0)===S&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.SubstringOperator)):this.stream.peekChar(0)===v&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.PrefixOperator)):this.stream.peekChar(0)===N&&this.stream.peekChar(1)===y?(this.stream.advance(2),this.finishToken(e,o.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,o.Delim)))}trivia(){for(;;){const e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,o.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(e,o.Comment)}}}comment(){if(this.stream.advanceIfChars([D,S])){let e=!1,t=!1;return this.stream.advanceWhileChar((n=>t&&n===D?(e=!0,!1):(t=n===S,!0))),e&&this.stream.advance(1),!0}return!1}_number(){let e,t=0;return this.stream.peekChar()===G&&(t=1),e=this.stream.peekChar(t),e>=f&&e<=g&&(this.stream.advance(t+1),this.stream.advanceWhileChar((e=>e>=f&&e<=g||0===t&&e===G)),!0)}_newline(e){const t=this.stream.peekChar();switch(t){case M:case O:case A:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===M&&this.stream.advanceIfChar(A)&&e.push("\n"),!0}return!1}_escape(e,t){let n=this.stream.peekChar();if(n===R){this.stream.advance(1),n=this.stream.peekChar();let r=0;for(;r<6&&(n>=f&&n<=g||n>=c&&n<=h||n>=u&&n<=p);)this.stream.advance(1),n=this.stream.peekChar(),r++;if(r>0){try{const t=parseInt(this.stream.substring(this.stream.pos()-r),16);t&&e.push(String.fromCharCode(t))}catch(i){}return n===B||n===W?this.stream.advance(1):this._newline([]),!0}if(n!==M&&n!==O&&n!==A)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1}_stringChar(e,t){const n=this.stream.peekChar();return 0!==n&&n!==e&&n!==R&&n!==M&&n!==O&&n!==A&&(this.stream.advance(1),t.push(String.fromCharCode(n)),!0)}_string(e){if(this.stream.peekChar()===P||this.stream.peekChar()===z){const t=this.stream.nextChar();for(e.push(String.fromCharCode(t));this._stringChar(t,e)||this._escape(e,!0););return this.stream.peekChar()===t?(this.stream.nextChar(),e.push(String.fromCharCode(t)),o.String):o.BadString}return null}_unquotedChar(e){const t=this.stream.peekChar();return 0!==t&&t!==R&&t!==P&&t!==z&&t!==x&&t!==E&&t!==B&&t!==W&&t!==A&&t!==O&&t!==M&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_unquotedString(e){let t=!1;for(;this._unquotedChar(e)||this._escape(e);)t=!0;return t}_whitespace(){return this.stream.advanceWhileChar((e=>e===B||e===W||e===A||e===O||e===M))>0}_name(e){let t=!1;for(;this._identChar(e)||this._escape(e);)t=!0;return t}ident(e){const t=this.stream.pos();if(this._minus(e)){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(t),!1}_identFirstChar(e){const t=this.stream.peekChar();return(t===k||t>=c&&t<=d||t>=u&&t<=m||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_minus(e){const t=this.stream.peekChar();return t===_&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_identChar(e){const t=this.stream.peekChar();return(t===k||t===_||t>=c&&t<=d||t>=u&&t<=m||t>=f&&t<=g||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_unicodeRange(){if(this.stream.advanceIfChar(Y)){const e=e=>e>=f&&e<=g||e>=c&&e<=h||e>=u&&e<=p,t=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar((e=>e===J));if(t>=1&&t<=6){if(!this.stream.advanceIfChar(_))return!0;{const t=this.stream.advanceWhileChar(e);if(t>=1&&t<=6)return!0}}}return!1}};function se(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function oe(e,t){let n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function ae(e,t=!0){return e?e.length<140?e:e.slice(0,140)+(t?"\u2026":""):""}function le(e,t){let n="";for(;t>0;)1===(1&t)&&(n+=e),e+=e,t>>>=1;return n}function ce(e,t){let n=null;return!e||t<e.offset||t>e.end?null:(e.accept((e=>-1===e.offset&&-1===e.length||e.offset<=t&&e.end>=t&&(n?e.length<=n.length&&(n=e):n=e,!0))),n)}function he(e,t){let n=ce(e,t);const i=[];for(;n;)i.unshift(n),n=n.parent;return i}(te=ee||(ee={}))[te.Undefined=0]="Undefined",te[te.Identifier=1]="Identifier",te[te.Stylesheet=2]="Stylesheet",te[te.Ruleset=3]="Ruleset",te[te.Selector=4]="Selector",te[te.SimpleSelector=5]="SimpleSelector",te[te.SelectorInterpolation=6]="SelectorInterpolation",te[te.SelectorCombinator=7]="SelectorCombinator",te[te.SelectorCombinatorParent=8]="SelectorCombinatorParent",te[te.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",te[te.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",te[te.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",te[te.Page=12]="Page",te[te.PageBoxMarginBox=13]="PageBoxMarginBox",te[te.ClassSelector=14]="ClassSelector",te[te.IdentifierSelector=15]="IdentifierSelector",te[te.ElementNameSelector=16]="ElementNameSelector",te[te.PseudoSelector=17]="PseudoSelector",te[te.AttributeSelector=18]="AttributeSelector",te[te.Declaration=19]="Declaration",te[te.Declarations=20]="Declarations",te[te.Property=21]="Property",te[te.Expression=22]="Expression",te[te.BinaryExpression=23]="BinaryExpression",te[te.Term=24]="Term",te[te.Operator=25]="Operator",te[te.Value=26]="Value",te[te.StringLiteral=27]="StringLiteral",te[te.URILiteral=28]="URILiteral",te[te.EscapedValue=29]="EscapedValue",te[te.Function=30]="Function",te[te.NumericValue=31]="NumericValue",te[te.HexColorValue=32]="HexColorValue",te[te.RatioValue=33]="RatioValue",te[te.MixinDeclaration=34]="MixinDeclaration",te[te.MixinReference=35]="MixinReference",te[te.VariableName=36]="VariableName",te[te.VariableDeclaration=37]="VariableDeclaration",te[te.Prio=38]="Prio",te[te.Interpolation=39]="Interpolation",te[te.NestedProperties=40]="NestedProperties",te[te.ExtendsReference=41]="ExtendsReference",te[te.SelectorPlaceholder=42]="SelectorPlaceholder",te[te.Debug=43]="Debug",te[te.If=44]="If",te[te.Else=45]="Else",te[te.For=46]="For",te[te.Each=47]="Each",te[te.While=48]="While",te[te.MixinContentReference=49]="MixinContentReference",te[te.MixinContentDeclaration=50]="MixinContentDeclaration",te[te.Media=51]="Media",te[te.Keyframe=52]="Keyframe",te[te.FontFace=53]="FontFace",te[te.Import=54]="Import",te[te.Namespace=55]="Namespace",te[te.Invocation=56]="Invocation",te[te.FunctionDeclaration=57]="FunctionDeclaration",te[te.ReturnStatement=58]="ReturnStatement",te[te.MediaQuery=59]="MediaQuery",te[te.MediaCondition=60]="MediaCondition",te[te.MediaFeature=61]="MediaFeature",te[te.FunctionParameter=62]="FunctionParameter",te[te.FunctionArgument=63]="FunctionArgument",te[te.KeyframeSelector=64]="KeyframeSelector",te[te.ViewPort=65]="ViewPort",te[te.Document=66]="Document",te[te.AtApplyRule=67]="AtApplyRule",te[te.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",te[te.CustomPropertySet=69]="CustomPropertySet",te[te.ListEntry=70]="ListEntry",te[te.Supports=71]="Supports",te[te.SupportsCondition=72]="SupportsCondition",te[te.NamespacePrefix=73]="NamespacePrefix",te[te.GridLine=74]="GridLine",te[te.Plugin=75]="Plugin",te[te.UnknownAtRule=76]="UnknownAtRule",te[te.Use=77]="Use",te[te.ModuleConfiguration=78]="ModuleConfiguration",te[te.Forward=79]="Forward",te[te.ForwardVisibility=80]="ForwardVisibility",te[te.Module=81]="Module",te[te.UnicodeRange=82]="UnicodeRange",te[te.Layer=83]="Layer",te[te.LayerNameList=84]="LayerNameList",te[te.LayerName=85]="LayerName",te[te.PropertyAtRule=86]="PropertyAtRule",te[te.Container=87]="Container",(ie=ne||(ne={}))[ie.Mixin=0]="Mixin",ie[ie.Rule=1]="Rule",ie[ie.Variable=2]="Variable",ie[ie.Function=3]="Function",ie[ie.Keyframe=4]="Keyframe",ie[ie.Unknown=5]="Unknown",ie[ie.Module=6]="Module",ie[ie.Forward=7]="Forward",ie[ie.ForwardVisibility=8]="ForwardVisibility",ie[ie.Property=9]="Property";var de,ue,pe=class{get end(){return this.offset+this.length}constructor(e=-1,t=-1,n){this.parent=null,this.offset=e,this.length=t,n&&(this.nodeType=n)}set type(e){this.nodeType=e}get type(){return this.nodeType||ee.Undefined}getTextProvider(){let e=this;for(;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:()=>"unknown"}getText(){return this.getTextProvider()(this.offset,this.length)}matches(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e}startsWith(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e}endsWith(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e}accept(e){if(e(this)&&this.children)for(const t of this.children)t.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,t=-1){if(e.parent&&e.parent.children){const t=e.parent.children.indexOf(e);t>=0&&e.parent.children.splice(t,1)}e.parent=this;let n=this.children;return n||(n=this.children=[]),-1!==t?n.splice(t,0,e):n.push(e),e}attachTo(e,t=-1){return e&&e.adoptChild(this,t),this}collectIssues(e){this.issues&&e.push.apply(e,this.issues)}addIssue(e){this.issues||(this.issues=[]),this.issues.push(e)}hasIssue(e){return Array.isArray(this.issues)&&this.issues.some((t=>t.getRule()===e))}isErroneous(e=!1){return!!(this.issues&&this.issues.length>0)||e&&Array.isArray(this.children)&&this.children.some((e=>e.isErroneous(!0)))}setNode(e,t,n=-1){return!!t&&(t.attachTo(this,n),this[e]=t,!0)}addChild(e){return!!e&&(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0)}updateOffsetAndLength(e){(e.offset<this.offset||-1===this.offset)&&(this.offset=e.offset);const t=e.end;(t>this.end||-1===this.length)&&(this.length=t-this.offset)}hasChildren(){return!!this.children&&this.children.length>0}getChildren(){return this.children?this.children.slice(0):[]}getChild(e){return this.children&&e<this.children.length?this.children[e]:null}addChildren(e){for(const t of e)this.addChild(t)}findFirstChildBeforeOffset(e){if(this.children){let t=null;for(let n=this.children.length-1;n>=0;n--)if(t=this.children[n],t.offset<=e)return t}return null}findChildAtOffset(e,t){const n=this.findFirstChildBeforeOffset(e);return n&&n.end>=e?t&&n.findChildAtOffset(e,!0)||n:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof me;)e=e.parent;return e}findParent(e){let t=this;for(;t&&t.type!==e;)t=t.parent;return t}findAParent(...e){let t=this;for(;t&&!e.some((e=>t.type===e));)t=t.parent;return t}setData(e,t){this.options||(this.options={}),this.options[e]=t}getData(e){return this.options&&this.options.hasOwnProperty(e)?this.options[e]:null}},me=class extends pe{constructor(e,t=-1){super(-1,-1),this.attachTo(e,t),this.offset=-1,this.length=-1}},fe=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}},ge=class extends pe{constructor(e,t){super(e,t),this.isCustomProperty=!1}get type(){return ee.Identifier}containsInterpolation(){return this.hasChildren()}},be=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Stylesheet}},ve=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Declarations}},ye=class extends pe{constructor(e,t){super(e,t)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}},we=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Ruleset}getSelectors(){return this.selectors||(this.selectors=new me(this)),this.selectors}isNested(){return!!this.parent&&null!==this.parent.findParent(ee.Declarations)}},_e=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Selector}},ke=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.SimpleSelector}},Ce=class extends pe{constructor(e,t){super(e,t)}},Se=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.CustomPropertySet}},xe=class e extends Ce{constructor(e,t){super(e,t),this.property=null}get type(){return ee.Declaration}setProperty(e){return this.setNode("property",e)}getProperty(){return this.property}getFullPropertyName(){const t=this.property?this.property.getName():"unknown";if(this.parent instanceof ve&&this.parent.getParent()instanceof We){const n=this.parent.getParent().getParent();if(n instanceof e)return n.getFullPropertyName()+t}return t}getNonPrefixedPropertyName(){const e=this.getFullPropertyName();if(e&&"-"===e.charAt(0)){const t=e.indexOf("-",1);if(-1!==t)return e.substring(t+1)}return e}setValue(e){return this.setNode("value",e)}getValue(){return this.value}setNestedProperties(e){return this.setNode("nestedProperties",e)}getNestedProperties(){return this.nestedProperties}},Ee=class extends xe{constructor(e,t){super(e,t)}get type(){return ee.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}},Fe=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return function(e,t){const n=t.exec(e);return n&&n[0].length?e.substr(0,e.length-n[0].length):e}(this.getText(),/[_\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},Le=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Invocation}getArguments(){return this.arguments||(this.arguments=new me(this)),this.arguments}},Ie=class extends Le{constructor(e,t){super(e,t)}get type(){return ee.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},Te=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.FunctionParameter}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setDefaultValue(e){return this.setNode("defaultValue",e,0)}getDefaultValue(){return this.defaultValue}},Ne=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.FunctionArgument}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}},Re=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.If}setExpression(e){return this.setNode("expression",e,0)}setElseClause(e){return this.setNode("elseClause",e)}},De=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.For}setVariable(e){return this.setNode("variable",e,0)}},Ae=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Each}getVariables(){return this.variables||(this.variables=new me(this)),this.variables}},Me=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.While}},Oe=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Else}},ze=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.FunctionDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}},Pe=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.ViewPort}},Be=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.FontFace}},We=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.NestedProperties}},Ve=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Keyframe}setKeyword(e){return this.setNode("keyword",e,0)}getKeyword(){return this.keyword}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},Ue=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.KeyframeSelector}},$e=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Import}setMedialist(e){return!!e&&(e.attachTo(this),!0)}},qe=class extends pe{get type(){return ee.Use}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},je=class extends pe{get type(){return ee.ModuleConfiguration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}},Ke=class extends pe{get type(){return ee.Forward}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||(this.members=new me(this)),this.members}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}},He=class extends pe{get type(){return ee.ForwardVisibility}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},Ge=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Namespace}},Qe=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Media}},Je=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Supports}},Ye=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}},Xe=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.PropertyAtRule}setName(e){return!!e&&(e.attachTo(this),this.name=e,!0)}getName(){return this.name}},Ze=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Document}},et=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Container}},tt=class extends pe{constructor(e,t){super(e,t)}},nt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MediaQuery}},it=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MediaCondition}},rt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MediaFeature}},st=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.SupportsCondition}},ot=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.Page}},at=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.PageBoxMarginBox}},lt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Expression}},ct=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.BinaryExpression}setLeft(e){return this.setNode("left",e)}getLeft(){return this.left}setRight(e){return this.setNode("right",e)}getRight(){return this.right}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}},ht=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}},dt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.AttributeSelector}setNamespacePrefix(e){return this.setNode("namespacePrefix",e)}getNamespacePrefix(){return this.namespacePrefix}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setValue(e){return this.setNode("value",e)}getValue(){return this.value}},ut=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.HexColorValue}},pt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.RatioValue}},mt=".".charCodeAt(0),ft="0".charCodeAt(0),gt="9".charCodeAt(0),bt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.NumericValue}getValue(){const e=this.getText();let t,n=0;for(let i=0,r=e.length;i<r&&(t=e.charCodeAt(i),ft<=t&&t<=gt||t===mt);i++)n+=1;return{value:e.substring(0,n),unit:n<e.length?e.substring(n):void 0}}},vt=class extends Ce{constructor(e,t){super(e,t),this.needsSemicolon=!0}get type(){return ee.VariableDeclaration}setVariable(e){return!!e&&(e.attachTo(this),this.variable=e,!0)}getVariable(){return this.variable}getName(){return this.variable?this.variable.getName():""}setValue(e){return!!e&&(e.attachTo(this),this.value=e,!0)}getValue(){return this.value}},yt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.Interpolation}},wt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.VariableName}getName(){return this.getText()}},_t=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new me(this)),this.selectors}},kt=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MixinContentReference}getArguments(){return this.arguments||(this.arguments=new me(this)),this.arguments}},Ct=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.MixinContentDeclaration}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}},St=class extends pe{constructor(e,t){super(e,t)}get type(){return ee.MixinReference}getNamespaces(){return this.namespaces||(this.namespaces=new me(this)),this.namespaces}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getArguments(){return this.arguments||(this.arguments=new me(this)),this.arguments}setContent(e){return this.setNode("content",e)}getContent(){return this.content}},xt=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.MixinDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new me(this)),this.parameters}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1}},Et=class extends ye{constructor(e,t){super(e,t)}get type(){return ee.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}},Ft=class extends pe{get type(){return ee.ListEntry}setKey(e){return this.setNode("key",e,0)}setValue(e){return this.setNode("value",e,1)}},Lt=class extends pe{getConditions(){return this.conditions||(this.conditions=new me(this)),this.conditions}},It=class extends pe{setVariable(e){return this.setNode("variable",e)}},Tt=class extends pe{get type(){return ee.Module}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}};(ue=de||(de={}))[ue.Ignore=1]="Ignore",ue[ue.Warning=2]="Warning",ue[ue.Error=4]="Error";var Nt=class{constructor(e,t,n,i,r=e.offset,s=e.length){this.node=e,this.rule=t,this.level=n,this.message=i||t.message,this.offset=r,this.length=s}getRule(){return this.rule}getLevel(){return this.level}getOffset(){return this.offset}getLength(){return this.length}getNode(){return this.node}getMessage(){return this.message}},Rt=class e{static entries(t){const n=new e;return t.acceptVisitor(n),n.entries}constructor(){this.entries=[]}visitNode(e){return e.isErroneous()&&e.collectIssues(this.entries),!0}};function Dt(...e){const t=e[0];let n,i,r;if("string"===typeof t)n=t,i=t,e.splice(0,1),r=e&&"object"===typeof e[0]?e[0]:e;else{if(t instanceof Array){const n=e.slice(1);if(t.length!==n.length+1)throw new Error("expected a string as the first argument to l10n.t");let i=t[0];for(let e=1;e<t.length;e++)i+=`{${e-1}}`+t[e];return Dt(i,...n)}i=t.message,n=i,t.comment&&t.comment.length>0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(""):t.comment}`),r=t.args??{}}return Mt(i,r)}var At=/{([^}]+)}/g;function Mt(e,t){return 0===Object.keys(t).length?e:e.replace(At,((e,n)=>t[n]??e))}var Ot,zt,Pt,Bt,Wt,Vt,Ut,$t,qt,jt,Kt,Ht,Gt,Qt,Jt,Yt,Xt,Zt,en,tn,nn,rn,sn,on,an,ln,cn,hn,dn,un,pn,mn,fn,gn,bn,vn,yn,wn,_n,kn,Cn,Sn,xn,En,Fn,Ln,In,Tn,Nn,Rn,Dn,An,Mn,On,zn,Pn,Bn,Wn,Vn,Un,$n,qn,jn,Kn,Hn,Gn,Qn,Jn,Yn,Xn,Zn,ei,ti,ni,ii,ri,si,oi,ai,li,ci,hi,di,ui,pi,mi,fi,gi,bi,vi,yi,wi,_i,ki,Ci,Si,xi,Ei,Fi,Li,Ii,Ti,Ni,Ri,Di,Ai,Mi,Oi,zi,Pi,Bi,Wi,Vi,Ui,$i,qi,ji,Ki,Hi,Gi,Qi,Ji,Yi,Xi,Zi,er,tr,nr,ir,rr,sr,or,ar,lr=class{constructor(e,t){this.id=e,this.message=t}},cr={NumberExpected:new lr("css-numberexpected",Dt("number expected")),ConditionExpected:new lr("css-conditionexpected",Dt("condition expected")),RuleOrSelectorExpected:new lr("css-ruleorselectorexpected",Dt("at-rule or selector expected")),DotExpected:new lr("css-dotexpected",Dt("dot expected")),ColonExpected:new lr("css-colonexpected",Dt("colon expected")),SemiColonExpected:new lr("css-semicolonexpected",Dt("semi-colon expected")),TermExpected:new lr("css-termexpected",Dt("term expected")),ExpressionExpected:new lr("css-expressionexpected",Dt("expression expected")),OperatorExpected:new lr("css-operatorexpected",Dt("operator expected")),IdentifierExpected:new lr("css-identifierexpected",Dt("identifier expected")),PercentageExpected:new lr("css-percentageexpected",Dt("percentage expected")),URIOrStringExpected:new lr("css-uriorstringexpected",Dt("uri or string expected")),URIExpected:new lr("css-uriexpected",Dt("URI expected")),VariableNameExpected:new lr("css-varnameexpected",Dt("variable name expected")),VariableValueExpected:new lr("css-varvalueexpected",Dt("variable value expected")),PropertyValueExpected:new lr("css-propertyvalueexpected",Dt("property value expected")),LeftCurlyExpected:new lr("css-lcurlyexpected",Dt("{ expected")),RightCurlyExpected:new lr("css-rcurlyexpected",Dt("} expected")),LeftSquareBracketExpected:new lr("css-rbracketexpected",Dt("[ expected")),RightSquareBracketExpected:new lr("css-lbracketexpected",Dt("] expected")),LeftParenthesisExpected:new lr("css-lparentexpected",Dt("( expected")),RightParenthesisExpected:new lr("css-rparentexpected",Dt(") expected")),CommaExpected:new lr("css-commaexpected",Dt("comma expected")),PageDirectiveOrDeclarationExpected:new lr("css-pagedirordeclexpected",Dt("page directive or declaraton expected")),UnknownAtRule:new lr("css-unknownatrule",Dt("at-rule unknown")),UnknownKeyword:new lr("css-unknownkeyword",Dt("unknown keyword")),SelectorExpected:new lr("css-selectorexpected",Dt("selector expected")),StringLiteralExpected:new lr("css-stringliteralexpected",Dt("string literal expected")),WhitespaceExpected:new lr("css-whitespaceexpected",Dt("whitespace expected")),MediaQueryExpected:new lr("css-mediaqueryexpected",Dt("media query expected")),IdentifierOrWildcardExpected:new lr("css-idorwildcardexpected",Dt("identifier or wildcard expected")),WildcardExpected:new lr("css-wildcardexpected",Dt("wildcard expected")),IdentifierOrVariableExpected:new lr("css-idorvarexpected",Dt("identifier or variable expected"))};(Ot||(Ot={})).is=function(e){return"string"===typeof e},(zt||(zt={})).is=function(e){return"string"===typeof e},(Bt=Pt||(Pt={})).MIN_VALUE=-2147483648,Bt.MAX_VALUE=2147483647,Bt.is=function(e){return"number"===typeof e&&Bt.MIN_VALUE<=e&&e<=Bt.MAX_VALUE},(Vt=Wt||(Wt={})).MIN_VALUE=0,Vt.MAX_VALUE=2147483647,Vt.is=function(e){return"number"===typeof e&&Vt.MIN_VALUE<=e&&e<=Vt.MAX_VALUE},($t=Ut||(Ut={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=Wt.MAX_VALUE),t===Number.MAX_VALUE&&(t=Wt.MAX_VALUE),{line:e,character:t}},$t.is=function(e){let t=e;return hr.objectLiteral(t)&&hr.uinteger(t.line)&&hr.uinteger(t.character)},(jt=qt||(qt={})).create=function(e,t,n,i){if(hr.uinteger(e)&&hr.uinteger(t)&&hr.uinteger(n)&&hr.uinteger(i))return{start:Ut.create(e,t),end:Ut.create(n,i)};if(Ut.is(e)&&Ut.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${i}]`)},jt.is=function(e){let t=e;return hr.objectLiteral(t)&&Ut.is(t.start)&&Ut.is(t.end)},(Ht=Kt||(Kt={})).create=function(e,t){return{uri:e,range:t}},Ht.is=function(e){let t=e;return hr.objectLiteral(t)&&qt.is(t.range)&&(hr.string(t.uri)||hr.undefined(t.uri))},(Qt=Gt||(Gt={})).create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},Qt.is=function(e){let t=e;return hr.objectLiteral(t)&&qt.is(t.targetRange)&&hr.string(t.targetUri)&&qt.is(t.targetSelectionRange)&&(qt.is(t.originSelectionRange)||hr.undefined(t.originSelectionRange))},(Yt=Jt||(Jt={})).create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},Yt.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.numberRange(t.red,0,1)&&hr.numberRange(t.green,0,1)&&hr.numberRange(t.blue,0,1)&&hr.numberRange(t.alpha,0,1)},(Zt=Xt||(Xt={})).create=function(e,t){return{range:e,color:t}},Zt.is=function(e){const t=e;return hr.objectLiteral(t)&&qt.is(t.range)&&Jt.is(t.color)},(tn=en||(en={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},tn.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.string(t.label)&&(hr.undefined(t.textEdit)||vn.is(t))&&(hr.undefined(t.additionalTextEdits)||hr.typedArray(t.additionalTextEdits,vn.is))},(rn=nn||(nn={})).Comment="comment",rn.Imports="imports",rn.Region="region",(on=sn||(sn={})).create=function(e,t,n,i,r,s){const o={startLine:e,endLine:t};return hr.defined(n)&&(o.startCharacter=n),hr.defined(i)&&(o.endCharacter=i),hr.defined(r)&&(o.kind=r),hr.defined(s)&&(o.collapsedText=s),o},on.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.uinteger(t.startLine)&&hr.uinteger(t.startLine)&&(hr.undefined(t.startCharacter)||hr.uinteger(t.startCharacter))&&(hr.undefined(t.endCharacter)||hr.uinteger(t.endCharacter))&&(hr.undefined(t.kind)||hr.string(t.kind))},(ln=an||(an={})).create=function(e,t){return{location:e,message:t}},ln.is=function(e){let t=e;return hr.defined(t)&&Kt.is(t.location)&&hr.string(t.message)},(hn=cn||(cn={})).Error=1,hn.Warning=2,hn.Information=3,hn.Hint=4,(un=dn||(dn={})).Unnecessary=1,un.Deprecated=2,(pn||(pn={})).is=function(e){const t=e;return hr.objectLiteral(t)&&hr.string(t.href)},(fn=mn||(mn={})).create=function(e,t,n,i,r,s){let o={range:e,message:t};return hr.defined(n)&&(o.severity=n),hr.defined(i)&&(o.code=i),hr.defined(r)&&(o.source=r),hr.defined(s)&&(o.relatedInformation=s),o},fn.is=function(e){var t;let n=e;return hr.defined(n)&&qt.is(n.range)&&hr.string(n.message)&&(hr.number(n.severity)||hr.undefined(n.severity))&&(hr.integer(n.code)||hr.string(n.code)||hr.undefined(n.code))&&(hr.undefined(n.codeDescription)||hr.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(hr.string(n.source)||hr.undefined(n.source))&&(hr.undefined(n.relatedInformation)||hr.typedArray(n.relatedInformation,an.is))},(bn=gn||(gn={})).create=function(e,t,...n){let i={title:e,command:t};return hr.defined(n)&&n.length>0&&(i.arguments=n),i},bn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.title)&&hr.string(t.command)},(yn=vn||(vn={})).replace=function(e,t){return{range:e,newText:t}},yn.insert=function(e,t){return{range:{start:e,end:e},newText:t}},yn.del=function(e){return{range:e,newText:""}},yn.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.string(t.newText)&&qt.is(t.range)},(_n=wn||(wn={})).create=function(e,t,n){const i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},_n.is=function(e){const t=e;return hr.objectLiteral(t)&&hr.string(t.label)&&(hr.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(hr.string(t.description)||void 0===t.description)},(kn||(kn={})).is=function(e){const t=e;return hr.string(t)},(Sn=Cn||(Cn={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Sn.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Sn.del=function(e,t){return{range:e,newText:"",annotationId:t}},Sn.is=function(e){const t=e;return vn.is(t)&&(wn.is(t.annotationId)||kn.is(t.annotationId))},(En=xn||(xn={})).create=function(e,t){return{textDocument:e,edits:t}},En.is=function(e){let t=e;return hr.defined(t)&&Pn.is(t.textDocument)&&Array.isArray(t.edits)},(Ln=Fn||(Fn={})).create=function(e,t,n){let i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},Ln.is=function(e){let t=e;return t&&"create"===t.kind&&hr.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||hr.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||hr.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||kn.is(t.annotationId))},(Tn=In||(In={})).create=function(e,t,n,i){let r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},Tn.is=function(e){let t=e;return t&&"rename"===t.kind&&hr.string(t.oldUri)&&hr.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||hr.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||hr.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||kn.is(t.annotationId))},(Rn=Nn||(Nn={})).create=function(e,t,n){let i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},Rn.is=function(e){let t=e;return t&&"delete"===t.kind&&hr.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||hr.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||hr.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||kn.is(t.annotationId))},(Dn||(Dn={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>hr.string(e.kind)?Fn.is(e)||In.is(e)||Nn.is(e):xn.is(e))))},(Mn=An||(An={})).create=function(e){return{uri:e}},Mn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.uri)},(zn=On||(On={})).create=function(e,t){return{uri:e,version:t}},zn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.uri)&&hr.integer(t.version)},(Bn=Pn||(Pn={})).create=function(e,t){return{uri:e,version:t}},Bn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.uri)&&(null===t.version||hr.integer(t.version))},(Vn=Wn||(Wn={})).create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},Vn.is=function(e){let t=e;return hr.defined(t)&&hr.string(t.uri)&&hr.string(t.languageId)&&hr.integer(t.version)&&hr.string(t.text)},($n=Un||(Un={})).PlainText="plaintext",$n.Markdown="markdown",$n.is=function(e){const t=e;return t===$n.PlainText||t===$n.Markdown},(qn||(qn={})).is=function(e){const t=e;return hr.objectLiteral(e)&&Un.is(t.kind)&&hr.string(t.value)},(Kn=jn||(jn={})).Text=1,Kn.Method=2,Kn.Function=3,Kn.Constructor=4,Kn.Field=5,Kn.Variable=6,Kn.Class=7,Kn.Interface=8,Kn.Module=9,Kn.Property=10,Kn.Unit=11,Kn.Value=12,Kn.Enum=13,Kn.Keyword=14,Kn.Snippet=15,Kn.Color=16,Kn.File=17,Kn.Reference=18,Kn.Folder=19,Kn.EnumMember=20,Kn.Constant=21,Kn.Struct=22,Kn.Event=23,Kn.Operator=24,Kn.TypeParameter=25,(Gn=Hn||(Hn={})).PlainText=1,Gn.Snippet=2,(Qn||(Qn={})).Deprecated=1,(Yn=Jn||(Jn={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Yn.is=function(e){const t=e;return t&&hr.string(t.newText)&&qt.is(t.insert)&&qt.is(t.replace)},(Zn=Xn||(Xn={})).asIs=1,Zn.adjustIndentation=2,(ei||(ei={})).is=function(e){const t=e;return t&&(hr.string(t.detail)||void 0===t.detail)&&(hr.string(t.description)||void 0===t.description)},(ti||(ti={})).create=function(e){return{label:e}},(ni||(ni={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(ri=ii||(ii={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},ri.is=function(e){const t=e;return hr.string(t)||hr.objectLiteral(t)&&hr.string(t.language)&&hr.string(t.value)},(si||(si={})).is=function(e){let t=e;return!!t&&hr.objectLiteral(t)&&(qn.is(t.contents)||ii.is(t.contents)||hr.typedArray(t.contents,ii.is))&&(void 0===e.range||qt.is(e.range))},(oi||(oi={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(ai||(ai={})).create=function(e,t,...n){let i={label:e};return hr.defined(t)&&(i.documentation=t),hr.defined(n)?i.parameters=n:i.parameters=[],i},(ci=li||(li={})).Text=1,ci.Read=2,ci.Write=3,(hi||(hi={})).create=function(e,t){let n={range:e};return hr.number(t)&&(n.kind=t),n},(ui=di||(di={})).File=1,ui.Module=2,ui.Namespace=3,ui.Package=4,ui.Class=5,ui.Method=6,ui.Property=7,ui.Field=8,ui.Constructor=9,ui.Enum=10,ui.Interface=11,ui.Function=12,ui.Variable=13,ui.Constant=14,ui.String=15,ui.Number=16,ui.Boolean=17,ui.Array=18,ui.Object=19,ui.Key=20,ui.Null=21,ui.EnumMember=22,ui.Struct=23,ui.Event=24,ui.Operator=25,ui.TypeParameter=26,(pi||(pi={})).Deprecated=1,(mi||(mi={})).create=function(e,t,n,i,r){let s={name:e,kind:t,location:{uri:i,range:n}};return r&&(s.containerName=r),s},(fi||(fi={})).create=function(e,t,n,i){return void 0!==i?{name:e,kind:t,location:{uri:n,range:i}}:{name:e,kind:t,location:{uri:n}}},(bi=gi||(gi={})).create=function(e,t,n,i,r,s){let o={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==s&&(o.children=s),o},bi.is=function(e){let t=e;return t&&hr.string(t.name)&&hr.number(t.kind)&&qt.is(t.range)&&qt.is(t.selectionRange)&&(void 0===t.detail||hr.string(t.detail))&&(void 0===t.deprecated||hr.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(yi=vi||(vi={})).Empty="",yi.QuickFix="quickfix",yi.Refactor="refactor",yi.RefactorExtract="refactor.extract",yi.RefactorInline="refactor.inline",yi.RefactorRewrite="refactor.rewrite",yi.Source="source",yi.SourceOrganizeImports="source.organizeImports",yi.SourceFixAll="source.fixAll",(_i=wi||(wi={})).Invoked=1,_i.Automatic=2,(Ci=ki||(ki={})).create=function(e,t,n){let i={diagnostics:e};return void 0!==t&&null!==t&&(i.only=t),void 0!==n&&null!==n&&(i.triggerKind=n),i},Ci.is=function(e){let t=e;return hr.defined(t)&&hr.typedArray(t.diagnostics,mn.is)&&(void 0===t.only||hr.typedArray(t.only,hr.string))&&(void 0===t.triggerKind||t.triggerKind===wi.Invoked||t.triggerKind===wi.Automatic)},(xi=Si||(Si={})).create=function(e,t,n){let i={title:e},r=!0;return"string"===typeof t?(r=!1,i.kind=t):gn.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},xi.is=function(e){let t=e;return t&&hr.string(t.title)&&(void 0===t.diagnostics||hr.typedArray(t.diagnostics,mn.is))&&(void 0===t.kind||hr.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||gn.is(t.command))&&(void 0===t.isPreferred||hr.boolean(t.isPreferred))&&(void 0===t.edit||Dn.is(t.edit))},(Fi=Ei||(Ei={})).create=function(e,t){let n={range:e};return hr.defined(t)&&(n.data=t),n},Fi.is=function(e){let t=e;return hr.defined(t)&&qt.is(t.range)&&(hr.undefined(t.command)||gn.is(t.command))},(Ii=Li||(Li={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},Ii.is=function(e){let t=e;return hr.defined(t)&&hr.uinteger(t.tabSize)&&hr.boolean(t.insertSpaces)},(Ni=Ti||(Ti={})).create=function(e,t,n){return{range:e,target:t,data:n}},Ni.is=function(e){let t=e;return hr.defined(t)&&qt.is(t.range)&&(hr.undefined(t.target)||hr.string(t.target))},(Di=Ri||(Ri={})).create=function(e,t){return{range:e,parent:t}},Di.is=function(e){let t=e;return hr.objectLiteral(t)&&qt.is(t.range)&&(void 0===t.parent||Di.is(t.parent))},(Mi=Ai||(Ai={})).namespace="namespace",Mi.type="type",Mi.class="class",Mi.enum="enum",Mi.interface="interface",Mi.struct="struct",Mi.typeParameter="typeParameter",Mi.parameter="parameter",Mi.variable="variable",Mi.property="property",Mi.enumMember="enumMember",Mi.event="event",Mi.function="function",Mi.method="method",Mi.macro="macro",Mi.keyword="keyword",Mi.modifier="modifier",Mi.comment="comment",Mi.string="string",Mi.number="number",Mi.regexp="regexp",Mi.operator="operator",Mi.decorator="decorator",(zi=Oi||(Oi={})).declaration="declaration",zi.definition="definition",zi.readonly="readonly",zi.static="static",zi.deprecated="deprecated",zi.abstract="abstract",zi.async="async",zi.modification="modification",zi.documentation="documentation",zi.defaultLibrary="defaultLibrary",(Pi||(Pi={})).is=function(e){const t=e;return hr.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(Wi=Bi||(Bi={})).create=function(e,t){return{range:e,text:t}},Wi.is=function(e){const t=e;return void 0!==t&&null!==t&&qt.is(t.range)&&hr.string(t.text)},(Ui=Vi||(Vi={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},Ui.is=function(e){const t=e;return void 0!==t&&null!==t&&qt.is(t.range)&&hr.boolean(t.caseSensitiveLookup)&&(hr.string(t.variableName)||void 0===t.variableName)},(qi=$i||($i={})).create=function(e,t){return{range:e,expression:t}},qi.is=function(e){const t=e;return void 0!==t&&null!==t&&qt.is(t.range)&&(hr.string(t.expression)||void 0===t.expression)},(Ki=ji||(ji={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},Ki.is=function(e){const t=e;return hr.defined(t)&&qt.is(e.stoppedLocation)},(Gi=Hi||(Hi={})).Type=1,Gi.Parameter=2,Gi.is=function(e){return 1===e||2===e},(Ji=Qi||(Qi={})).create=function(e){return{value:e}},Ji.is=function(e){const t=e;return hr.objectLiteral(t)&&(void 0===t.tooltip||hr.string(t.tooltip)||qn.is(t.tooltip))&&(void 0===t.location||Kt.is(t.location))&&(void 0===t.command||gn.is(t.command))},(Xi=Yi||(Yi={})).create=function(e,t,n){const i={position:e,label:t};return void 0!==n&&(i.kind=n),i},Xi.is=function(e){const t=e;return hr.objectLiteral(t)&&Ut.is(t.position)&&(hr.string(t.label)||hr.typedArray(t.label,Qi.is))&&(void 0===t.kind||Hi.is(t.kind))&&void 0===t.textEdits||hr.typedArray(t.textEdits,vn.is)&&(void 0===t.tooltip||hr.string(t.tooltip)||qn.is(t.tooltip))&&(void 0===t.paddingLeft||hr.boolean(t.paddingLeft))&&(void 0===t.paddingRight||hr.boolean(t.paddingRight))},(Zi||(Zi={})).createSnippet=function(e){return{kind:"snippet",value:e}},(er||(er={})).create=function(e,t,n,i){return{insertText:e,filterText:t,range:n,command:i}},(tr||(tr={})).create=function(e){return{items:e}},(ir=nr||(nr={})).Invoked=0,ir.Automatic=1,(rr||(rr={})).create=function(e,t){return{range:e,text:t}},(sr||(sr={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(or||(or={})).is=function(e){const t=e;return hr.objectLiteral(t)&&zt.is(t.uri)&&hr.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const i=e.length/2|0,r=e.slice(0,i),s=e.slice(i);t(r,n),t(s,n);let o=0,a=0,l=0;for(;o<r.length&&a<s.length;){let t=n(r[o],s[a]);e[l++]=t<=0?r[o++]:s[a++]}for(;o<r.length;)e[l++]=r[o++];for(;a<s.length;)e[l++]=s[a++];return e}e.create=function(e,t,n,i){return new dr(e,t,n,i)},e.is=function(e){let t=e;return!!(hr.defined(t)&&hr.string(t.uri)&&(hr.undefined(t.languageId)||hr.string(t.languageId))&&hr.uinteger(t.lineCount)&&hr.func(t.getText)&&hr.func(t.positionAt)&&hr.func(t.offsetAt))},e.applyEdits=function(e,n){let i=e.getText(),r=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=i.length;for(let t=r.length-1;t>=0;t--){let n=r[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=s))throw new Error("Overlapping edit");i=i.substring(0,o)+n.newText+i.substring(a,i.length),s=o}return i}}(ar||(ar={}));var hr,dr=class{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let i=0;i<t.length;i++){n&&(e.push(i),n=!1);let r=t.charAt(i);n="\r"===r||"\n"===r,"\r"===r&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return Ut.create(0,e);for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return Ut.create(r,e-t[r])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,i){return"[object Number]"===t.call(e)&&n<=e&&e<=i},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(hr||(hr={}));var ur,pr,mr,fr,gr,br=class e{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let i of t)if(e.isIncremental(i)){const e=wr(i.range),t=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,t)+i.text+this._content.substring(n,this._content.length);const r=Math.max(e.start.line,0),s=Math.max(e.end.line,0);let o=this._lineOffsets;const a=yr(i.text,!1,t);if(s-r===a.length)for(let i=0,c=a.length;i<c;i++)o[i+r+1]=a[i];else a.length<1e4?o.splice(r+1,s-r,...a):this._lineOffsets=o=o.slice(0,r+1).concat(a,o.slice(s+1));const l=i.text.length-(n-t);if(0!==l)for(let i=r+1+a.length,c=o.length;i<c;i++)o[i]=o[i]+l}else{if(!e.isFull(i))throw new Error("Unknown change event received");this._content=i.text,this._lineOffsets=void 0}this._version=n}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=yr(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return{line:0,character:e};for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return{line:r,character:e-t[r]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"===typeof t.rangeLength)}static isFull(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0===t.range&&void 0===t.rangeLength}};function vr(e,t){if(e.length<=1)return e;const n=e.length/2|0,i=e.slice(0,n),r=e.slice(n);vr(i,t),vr(r,t);let s=0,o=0,a=0;for(;s<i.length&&o<r.length;){let n=t(i[s],r[o]);e[a++]=n<=0?i[s++]:r[o++]}for(;s<i.length;)e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];return e}function yr(e,t,n=0){const i=t?[n]:[];for(let r=0;r<e.length;r++){let t=e.charCodeAt(r);13!==t&&10!==t||(13===t&&r+1<e.length&&10===e.charCodeAt(r+1)&&r++,i.push(n+r+1))}return i}function wr(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function _r(e){const t=wr(e.range);return t!==e.range?{newText:e.newText,range:t}:e}(pr=ur||(ur={})).create=function(e,t,n,i){return new br(e,t,n,i)},pr.update=function(e,t,n){if(e instanceof br)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},pr.applyEdits=function(e,t){let n=e.getText(),i=vr(t.map(_r),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),r=0;const s=[];for(const o of i){let t=e.offsetAt(o.range.start);if(t<r)throw new Error("Overlapping edit");t>r&&s.push(n.substring(r,t)),o.newText.length&&s.push(o.newText),r=e.offsetAt(o.range.end)}return s.push(n.substr(r)),s.join("")},(mr||(mr={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Un.Markdown,Un.PlainText]}},hover:{contentFormat:[Un.Markdown,Un.PlainText]}}},(gr=fr||(fr={}))[gr.Unknown=0]="Unknown",gr[gr.File=1]="File",gr[gr.Directory=2]="Directory",gr[gr.SymbolicLink=64]="SymbolicLink";var kr={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function Cr(e){switch(e){case"experimental":return"\u26a0\ufe0f Property is experimental. Be cautious when using it.\ufe0f\n\n";case"nonstandard":return"\ud83d\udea8\ufe0f Property is nonstandard. Avoid using it.\n\n";case"obsolete":return"\ud83d\udea8\ufe0f\ufe0f\ufe0f Property is obsolete. Avoid using it.\n\n";default:return""}}function Sr(e,t,n){let i;if(i=t?{kind:"markdown",value:Fr(e,n)}:{kind:"plaintext",value:Er(e,n)},""!==i.value)return i}function xr(e){return(e=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")).replace(/</g,"<").replace(/>/g,">")}function Er(e,t){if(!e.description||""===e.description)return"";if("string"!==typeof e.description)return e.description.value;let n="";if(!1!==t?.documentation){e.status&&(n+=Cr(e.status)),n+=e.description;const t=Lr(e.browsers);t&&(n+="\n("+t+")"),"syntax"in e&&(n+=`\n\nSyntax: ${e.syntax}`)}return e.references&&e.references.length>0&&!1!==t?.references&&(n.length>0&&(n+="\n\n"),n+=e.references.map((e=>`${e.name}: ${e.url}`)).join(" | ")),n}function Fr(e,t){if(!e.description||""===e.description)return"";let n="";if(!1!==t?.documentation){e.status&&(n+=Cr(e.status)),"string"===typeof e.description?n+=xr(e.description):n+=e.description.kind===Un.Markdown?e.description.value:xr(e.description.value);const t=Lr(e.browsers);t&&(n+="\n\n("+xr(t)+")"),"syntax"in e&&e.syntax&&(n+=`\n\nSyntax: ${xr(e.syntax)}`)}return e.references&&e.references.length>0&&!1!==t?.references&&(n.length>0&&(n+="\n\n"),n+=e.references.map((e=>`[${e.name}](${e.url})`)).join(" | ")),n}function Lr(e=[]){return 0===e.length?null:e.map((e=>{let t="";const n=e.match(/([A-Z]+)(\d+)?/),i=n[1],r=n[2];return i in kr&&(t+=kr[i]),r&&(t+=" "+r),t})).join(", ")}var Ir=/(^#([0-9A-F]{3}){1,2}$)|(^#([0-9A-F]{4}){1,2}$)/i,Tr=[{label:"rgb",func:"rgb($red, $green, $blue)",insertText:"rgb(${1:red}, ${2:green}, ${3:blue})",desc:Dt("Creates a Color from red, green, and blue values.")},{label:"rgba",func:"rgba($red, $green, $blue, $alpha)",insertText:"rgba(${1:red}, ${2:green}, ${3:blue}, ${4:alpha})",desc:Dt("Creates a Color from red, green, blue, and alpha values.")},{label:"rgb relative",func:"rgb(from $color $red $green $blue)",insertText:"rgb(from ${1:color} ${2:r} ${3:g} ${4:b})",desc:Dt("Creates a Color from the red, green, and blue values of another Color.")},{label:"hsl",func:"hsl($hue, $saturation, $lightness)",insertText:"hsl(${1:hue}, ${2:saturation}, ${3:lightness})",desc:Dt("Creates a Color from hue, saturation, and lightness values.")},{label:"hsla",func:"hsla($hue, $saturation, $lightness, $alpha)",insertText:"hsla(${1:hue}, ${2:saturation}, ${3:lightness}, ${4:alpha})",desc:Dt("Creates a Color from hue, saturation, lightness, and alpha values.")},{label:"hsl relative",func:"hsl(from $color $hue $saturation $lightness)",insertText:"hsl(from ${1:color} ${2:h} ${3:s} ${4:l})",desc:Dt("Creates a Color from the hue, saturation, and lightness values of another Color.")},{label:"hwb",func:"hwb($hue $white $black)",insertText:"hwb(${1:hue} ${2:white} ${3:black})",desc:Dt("Creates a Color from hue, white, and black values.")},{label:"hwb relative",func:"hwb(from $color $hue $white $black)",insertText:"hwb(from ${1:color} ${2:h} ${3:w} ${4:b})",desc:Dt("Creates a Color from the hue, white, and black values of another Color.")},{label:"lab",func:"lab($lightness $a $b)",insertText:"lab(${1:lightness} ${2:a} ${3:b})",desc:Dt("Creates a Color from lightness, a, and b values.")},{label:"lab relative",func:"lab(from $color $lightness $a $b)",insertText:"lab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:Dt("Creates a Color from the lightness, a, and b values of another Color.")},{label:"oklab",func:"oklab($lightness $a $b)",insertText:"oklab(${1:lightness} ${2:a} ${3:b})",desc:Dt("Creates a Color from lightness, a, and b values.")},{label:"oklab relative",func:"oklab(from $color $lightness $a $b)",insertText:"oklab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:Dt("Creates a Color from the lightness, a, and b values of another Color.")},{label:"lch",func:"lch($lightness $chroma $hue)",insertText:"lch(${1:lightness} ${2:chroma} ${3:hue})",desc:Dt("Creates a Color from lightness, chroma, and hue values.")},{label:"lch relative",func:"lch(from $color $lightness $chroma $hue)",insertText:"lch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:Dt("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"oklch",func:"oklch($lightness $chroma $hue)",insertText:"oklch(${1:lightness} ${2:chroma} ${3:hue})",desc:Dt("Creates a Color from lightness, chroma, and hue values.")},{label:"oklch relative",func:"oklch(from $color $lightness $chroma $hue)",insertText:"oklch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:Dt("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"color",func:"color($color-space $red $green $blue)",insertText:"color(${1|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${2:red} ${3:green} ${4:blue})",desc:Dt("Creates a Color in a specific color space from red, green, and blue values.")},{label:"color relative",func:"color(from $color $color-space $red $green $blue)",insertText:"color(from ${1:color} ${2|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${3:r} ${4:g} ${5:b})",desc:Dt("Creates a Color in a specific color space from the red, green, and blue values of another Color.")},{label:"color-mix",func:"color-mix(in $color-space, $color $percentage, $color $percentage)",insertText:"color-mix(in ${1|srgb,srgb-linear,lab,oklab,xyz,xyz-d50,xyz-d65|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:Dt("Mix two colors together in a rectangular color space.")},{label:"color-mix hue",func:"color-mix(in $color-space $interpolation-method hue, $color $percentage, $color $percentage)",insertText:"color-mix(in ${1|hsl,hwb,lch,oklch|} ${2|shorter hue,longer hue,increasing hue,decreasing hue|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:Dt("Mix two colors together in a polar color space.")}],Nr=/^(rgb|rgba|hsl|hsla|hwb)$/i,Rr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Dr=new RegExp(`^(${Object.keys(Rr).join("|")})$`,"i"),Ar={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."},Mr=new RegExp(`^(${Object.keys(Ar).join("|")})$`,"i");function Or(e,t){const n=e.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(n){n[2]&&(t=100);const e=parseFloat(n[1])/t;if(e>=0&&e<=1)return e}throw new Error}function zr(e){const t=e.getText(),n=t.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case"deg":return parseFloat(t)%360;case"rad":return 180*parseFloat(t)/Math.PI%360;case"grad":return.9*parseFloat(t)%360;case"turn":return 360*parseFloat(t)%360;default:if("undefined"===typeof n[2])return parseFloat(t)%360}throw new Error}function Pr(e){return Ir.test(e)||Dr.test(e)||Mr.test(e)}function Br(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function Wr(e){if("#"!==e[0])return null;switch(e.length){case 4:return{red:17*Br(e.charCodeAt(1))/255,green:17*Br(e.charCodeAt(2))/255,blue:17*Br(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Br(e.charCodeAt(1))/255,green:17*Br(e.charCodeAt(2))/255,blue:17*Br(e.charCodeAt(3))/255,alpha:17*Br(e.charCodeAt(4))/255};case 7:return{red:(16*Br(e.charCodeAt(1))+Br(e.charCodeAt(2)))/255,green:(16*Br(e.charCodeAt(3))+Br(e.charCodeAt(4)))/255,blue:(16*Br(e.charCodeAt(5))+Br(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Br(e.charCodeAt(1))+Br(e.charCodeAt(2)))/255,green:(16*Br(e.charCodeAt(3))+Br(e.charCodeAt(4)))/255,blue:(16*Br(e.charCodeAt(5))+Br(e.charCodeAt(6)))/255,alpha:(16*Br(e.charCodeAt(7))+Br(e.charCodeAt(8)))/255}}return null}function Vr(e,t,n,i=1){if(0===t)return{red:n,green:n,blue:n,alpha:i};{const r=(e,t,n)=>{for(;n<0;)n+=6;for(;n>=6;)n-=6;return n<1?(t-e)*n+e:n<3?t:n<4?(t-e)*(4-n)+e:e},s=n<=.5?n*(t+1):n+t-n*t,o=2*n-s;return{red:r(o,s,(e/=60)+2),green:r(o,s,e),blue:r(o,s,e-2),alpha:i}}}function Ur(e){const t=e.red,n=e.green,i=e.blue,r=e.alpha,s=Math.max(t,n,i),o=Math.min(t,n,i);let a=0,l=0;const c=(o+s)/2,h=s-o;if(h>0){switch(l=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),s){case t:a=(n-i)/h+(n<i?6:0);break;case n:a=(i-t)/h+2;break;case i:a=(t-n)/h+4}a*=60,a=Math.round(a)}return{h:a,s:l,l:c,a:r}}function $r(e){if(e.type===ee.HexColorValue){return Wr(e.getText())}if(e.type===ee.Function){const n=e,i=n.getName();let r=n.getArguments().getChildren();if(1===r.length){const e=r[0].getChildren();if(1===e.length&&e[0].type===ee.Expression&&(r=e[0].getChildren(),3===r.length)){const e=r[2];if(e instanceof ct){const t=e.getLeft(),n=e.getRight(),i=e.getOperator();t&&n&&i&&i.matches("/")&&(r=[r[0],r[1],t,n])}}}if(!i||r.length<3||r.length>4)return null;try{const e=4===r.length?Or(r[3],1):1;if("rgb"===i||"rgba"===i)return{red:Or(r[0],255),green:Or(r[1],255),blue:Or(r[2],255),alpha:e};if("hsl"===i||"hsla"===i){const t=zr(r[0]),n=Or(r[1],100);return Vr(t,n,Or(r[2],100),e)}if("hwb"===i){const t=zr(r[0]),n=Or(r[1],100);return function(e,t,n,i=1){if(t+n>=1){const e=t/(t+n);return{red:e,green:e,blue:e,alpha:i}}const r=Vr(e,1,.5,i);let s=r.red;s*=1-t-n,s+=t;let o=r.green;o*=1-t-n,o+=t;let a=r.blue;return a*=1-t-n,a+=t,{red:s,green:o,blue:a,alpha:i}}(t,n,Or(r[2],100),e)}}catch(t){return null}}else if(e.type===ee.Identifier){if(e.parent&&e.parent.type!==ee.Term)return null;const t=e.parent;if(t&&t.parent&&t.parent.type===ee.BinaryExpression){const e=t.parent;if(e.parent&&e.parent.type===ee.ListEntry&&e.parent.key===e)return null}const n=e.getText().toLowerCase();if("none"===n)return null;const i=Rr[n];if(i)return Wr(i)}return null}var qr={bottom:"Computes to \u2018100%\u2019 for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to \u2018100%\u2019 for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},jr={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},Kr={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as \u2018none\u2019, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},Hr=["medium","thick","thin"],Gr={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},Qr={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},Jr={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},Yr={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},Xr={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position."},Zr={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value \u201cstart\u201d or \u201cend\u201d.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},es={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},ts={length:["cap","ch","cm","cqb","cqh","cqi","cqmax","cqmin","cqw","dvb","dvh","dvi","dvw","em","ex","ic","in","lh","lvb","lvh","lvi","lvw","mm","pc","pt","px","q","rcap","rch","rem","rex","ric","rlh","svb","svh","svi","svw","vb","vh","vi","vmax","vmin","vw"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},ns=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],is=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],rs=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function ss(e){return Object.keys(e).map((t=>e[t]))}function os(e){return"undefined"!==typeof e}var as=class{constructor(e=new re){this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:o.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}peekIdent(e){return o.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekKeyword(e){return o.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekDelim(e){return o.Delim===this.token.type&&e===this.token.text}peek(e){return e===this.token.type}peekOne(...e){return-1!==e.indexOf(this.token.type)}peekRegExp(e,t){return e===this.token.type&&t.test(this.token.text)}hasWhitespace(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset}consumeToken(){this.prevToken=this.token,this.token=this.scanner.scan()}acceptUnicodeRange(){const e=this.scanner.tryScanUnicode();return!!e&&(this.prevToken=e,this.token=this.scanner.scan(),!0)}mark(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}}restoreAtMark(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)}try(e){const t=this.mark(),n=e();return n||(this.restoreAtMark(t),null)}acceptOneKeyword(e){if(o.AtKeyword===this.token.type)for(const t of e)if(t.length===this.token.text.length&&t===this.token.text.toLowerCase())return this.consumeToken(),!0;return!1}accept(e){return e===this.token.type&&(this.consumeToken(),!0)}acceptIdent(e){return!!this.peekIdent(e)&&(this.consumeToken(),!0)}acceptKeyword(e){return!!this.peekKeyword(e)&&(this.consumeToken(),!0)}acceptDelim(e){return!!this.peekDelim(e)&&(this.consumeToken(),!0)}acceptRegexp(e){return!!e.test(this.token.text)&&(this.consumeToken(),!0)}_parseRegexp(e){let t=this.createNode(ee.Identifier);do{}while(this.acceptRegexp(e));return this.finish(t)}acceptUnquotedString(){const e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);const t=this.scanner.scanUnquotedString();return t?(this.token=t,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)}resync(e,t){for(;;){if(e&&-1!==e.indexOf(this.token.type))return this.consumeToken(),!0;if(t&&-1!==t.indexOf(this.token.type))return!0;if(this.token.type===o.EOF)return!1;this.token=this.scanner.scan()}}createNode(e){return new pe(this.token.offset,this.token.len,e)}create(e){return new e(this.token.offset,this.token.len)}finish(e,t,n,i){if(!(e instanceof me)&&(t&&this.markError(e,t,n,i),this.prevToken)){const t=this.prevToken.offset+this.prevToken.len;e.length=t>e.offset?t-e.offset:0}return e}markError(e,t,n,i){this.token!==this.lastErrorToken&&(e.addIssue(new Nt(e,t,de.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(n||i)&&this.resync(n,i)}parseStylesheet(e){const t=e.version,n=e.getText();return this.internalParse(n,this._parseStylesheet,((i,r)=>{if(e.version!==t)throw new Error("Underlying model has changed, AST is no longer valid");return n.substr(i,r)}))}internalParse(e,t,n){this.scanner.setSource(e),this.token=this.scanner.scan();const i=t.bind(this)();return i&&(i.textProvider=n||((t,n)=>e.substr(t,n))),i}_parseStylesheet(){const e=this.create(be);for(;e.addChild(this._parseStylesheetStart()););let t=!1;do{let n=!1;do{n=!1;const i=this._parseStylesheetStatement();for(i&&(e.addChild(i),n=!0,t=!1,this.peek(o.EOF)||!this._needsSemicolonAfter(i)||this.accept(o.SemiColon)||this.markError(e,cr.SemiColonExpected));this.accept(o.SemiColon)||this.accept(o.CDO)||this.accept(o.CDC);)n=!0,t=!1}while(n);if(this.peek(o.EOF))break;t||(this.peek(o.AtKeyword)?this.markError(e,cr.UnknownAtRule):this.markError(e,cr.RuleOrSelectorExpected),t=!0),this.consumeToken()}while(!this.peek(o.EOF));return this.finish(e)}_parseStylesheetStart(){return this._parseCharset()}_parseStylesheetStatement(e=!1){return this.peek(o.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)}_parseStylesheetAtStatement(e=!1){return this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseLayer(e)||this._parsePropertyAtRule()||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseContainer(e)||this._parseUnknownAtRule()}_tryParseRuleset(e){const t=this.mark();if(this._parseSelector(e)){for(;this.accept(o.Comma)&&this._parseSelector(e););if(this.accept(o.CurlyL))return this.restoreAtMark(t),this._parseRuleset(e)}return this.restoreAtMark(t),null}_parseRuleset(e=!1){const t=this.create(we),n=t.getSelectors();if(!n.addChild(this._parseSelector(e)))return null;for(;this.accept(o.Comma);)if(!n.addChild(this._parseSelector(e)))return this.finish(t,cr.SelectorExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))}_parseRuleSetDeclarationAtStatement(){return this._parseMedia(!0)||this._parseSupports(!0)||this._parseLayer(!0)||this._parseContainer(!0)||this._parseUnknownAtRule()}_parseRuleSetDeclaration(){return this.peek(o.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this.peek(o.Ident)?this._tryParseRuleset(!0)||this._parseDeclaration():this._parseRuleset(!0)}_needsSemicolonAfter(e){switch(e.type){case ee.Keyframe:case ee.ViewPort:case ee.Media:case ee.Ruleset:case ee.Namespace:case ee.If:case ee.For:case ee.Each:case ee.While:case ee.MixinDeclaration:case ee.FunctionDeclaration:case ee.MixinContentDeclaration:return!1;case ee.ExtendsReference:case ee.MixinContentReference:case ee.ReturnStatement:case ee.MediaQuery:case ee.Debug:case ee.Import:case ee.AtApplyRule:case ee.CustomPropertyDeclaration:return!0;case ee.VariableDeclaration:return e.needsSemicolon;case ee.MixinReference:return!e.getContent();case ee.Declaration:return!e.getNestedProperties()}return!1}_parseDeclarations(e){const t=this.create(ve);if(!this.accept(o.CurlyL))return null;let n=e();for(;t.addChild(n)&&!this.peek(o.CurlyR);){if(this._needsSemicolonAfter(n)&&!this.accept(o.SemiColon))return this.finish(t,cr.SemiColonExpected,[o.SemiColon,o.CurlyR]);for(n&&this.prevToken&&this.prevToken.type===o.SemiColon&&(n.semicolonPosition=this.prevToken.offset);this.accept(o.SemiColon););n=e()}return this.accept(o.CurlyR)?this.finish(t):this.finish(t,cr.RightCurlyExpected,[o.CurlyR,o.SemiColon])}_parseBody(e,t){return e.setDeclarations(this._parseDeclarations(t))?this.finish(e):this.finish(e,cr.LeftCurlyExpected,[o.CurlyR,o.SemiColon])}_parseSelector(e){const t=this.create(_e);let n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());)n=!0,t.addChild(this._parseCombinator());return n?this.finish(t):null}_parseDeclaration(e){const t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;const n=this.create(xe);return n.setProperty(this._parseProperty())?this.accept(o.Colon)?(this.prevToken&&(n.colonPosition=this.prevToken.offset),n.setValue(this._parseExpr())?(n.addChild(this._parsePrio()),this.peek(o.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):this.finish(n,cr.PropertyValueExpected)):this.finish(n,cr.ColonExpected,[o.Colon],e||[o.SemiColon]):null}_tryParseCustomPropertyDeclaration(e){if(!this.peekRegExp(o.Ident,/^--/))return null;const t=this.create(Ee);if(!t.setProperty(this._parseProperty()))return null;if(!this.accept(o.Colon))return this.finish(t,cr.ColonExpected,[o.Colon]);this.prevToken&&(t.colonPosition=this.prevToken.offset);const n=this.mark();if(this.peek(o.CurlyL)){const e=this.create(Se),i=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(e.setDeclarations(i)&&!i.isErroneous(!0)&&(e.addChild(this._parsePrio()),this.peek(o.SemiColon)))return this.finish(e),t.setPropertySet(e),t.semicolonPosition=this.token.offset,this.finish(t);this.restoreAtMark(n)}const i=this._parseExpr();return i&&!i.isErroneous(!0)&&(this._parsePrio(),this.peekOne(...e||[],o.SemiColon,o.EOF))?(t.setValue(i),this.peek(o.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)):(this.restoreAtMark(n),t.addChild(this._parseCustomPropertyValue(e)),t.addChild(this._parsePrio()),os(t.colonPosition)&&this.token.offset===t.colonPosition+1?this.finish(t,cr.PropertyValueExpected):this.finish(t))}_parseCustomPropertyValue(e=[o.CurlyR]){const t=this.create(pe),n=()=>0===r&&0===s&&0===a,i=()=>-1!==e.indexOf(this.token.type);let r=0,s=0,a=0;e:for(;;){switch(this.token.type){case o.SemiColon:case o.Exclamation:if(n())break e;break;case o.CurlyL:r++;break;case o.CurlyR:if(r--,r<0){if(i()&&0===s&&0===a)break e;return this.finish(t,cr.LeftCurlyExpected)}break;case o.ParenthesisL:s++;break;case o.ParenthesisR:if(s--,s<0){if(i()&&0===a&&0===r)break e;return this.finish(t,cr.LeftParenthesisExpected)}break;case o.BracketL:a++;break;case o.BracketR:if(a--,a<0)return this.finish(t,cr.LeftSquareBracketExpected);break;case o.BadString:break e;case o.EOF:let e=cr.RightCurlyExpected;return a>0?e=cr.RightSquareBracketExpected:s>0&&(e=cr.RightParenthesisExpected),this.finish(t,e)}this.consumeToken()}return this.finish(t)}_tryToParseDeclaration(e){const t=this.mark();return this._parseProperty()&&this.accept(o.Colon)?(this.restoreAtMark(t),this._parseDeclaration(e)):(this.restoreAtMark(t),null)}_parseProperty(){const e=this.create(Fe),t=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(t),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null}_parsePropertyIdentifier(){return this._parseIdent()}_parseCharset(){if(!this.peek(o.Charset))return null;const e=this.create(pe);return this.consumeToken(),this.accept(o.String)?this.accept(o.SemiColon)?this.finish(e):this.finish(e,cr.SemiColonExpected):this.finish(e,cr.IdentifierExpected)}_parseImport(){if(!this.peekKeyword("@import"))return null;const e=this.create($e);return this.consumeToken(),e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?this._completeParseImport(e):this.finish(e,cr.URIOrStringExpected)}_completeParseImport(e){if(this.acceptIdent("layer")&&this.accept(o.ParenthesisL)){if(!e.addChild(this._parseLayerName()))return this.finish(e,cr.IdentifierExpected,[o.SemiColon]);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.ParenthesisR],[])}return this.acceptIdent("supports")&&this.accept(o.ParenthesisL)&&(e.addChild(this._tryToParseDeclaration()||this._parseSupportsCondition()),!this.accept(o.ParenthesisR))?this.finish(e,cr.RightParenthesisExpected,[o.ParenthesisR],[]):(this.peek(o.SemiColon)||this.peek(o.EOF)||e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parseNamespace(){if(!this.peekKeyword("@namespace"))return null;const e=this.create(Ge);return this.consumeToken(),e.addChild(this._parseURILiteral())||(e.addChild(this._parseIdent()),e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral()))?this.accept(o.SemiColon)?this.finish(e):this.finish(e,cr.SemiColonExpected):this.finish(e,cr.URIExpected,[o.SemiColon])}_parseFontFace(){if(!this.peekKeyword("@font-face"))return null;const e=this.create(Be);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseViewPort(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;const e=this.create(Pe);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseKeyframe(){if(!this.peekRegExp(o.AtKeyword,this.keyframeRegex))return null;const e=this.create(Ve),t=this.create(pe);return this.consumeToken(),e.setKeyword(this.finish(t)),t.matches("@-ms-keyframes")&&this.markError(t,cr.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,cr.IdentifierExpected,[o.CurlyR])}_parseKeyframeIdent(){return this._parseIdent([ne.Keyframe])}_parseKeyframeSelector(){const e=this.create(Ue);let t=!1;if(e.addChild(this._parseIdent())&&(t=!0),this.accept(o.Percentage)&&(t=!0),!t)return null;for(;this.accept(o.Comma);)if(t=!1,e.addChild(this._parseIdent())&&(t=!0),this.accept(o.Percentage)&&(t=!0),!t)return this.finish(e,cr.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_tryParseKeyframeSelector(){const e=this.create(Ue),t=this.mark();let n=!1;if(e.addChild(this._parseIdent())&&(n=!0),this.accept(o.Percentage)&&(n=!0),!n)return null;for(;this.accept(o.Comma);)if(n=!1,e.addChild(this._parseIdent())&&(n=!0),this.accept(o.Percentage)&&(n=!0),!n)return this.restoreAtMark(t),null;return this.peek(o.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(t),null)}_parsePropertyAtRule(){if(!this.peekKeyword("@property"))return null;const e=this.create(Xe);return this.consumeToken(),this.peekRegExp(o.Ident,/^--/)&&e.setName(this._parseIdent([ne.Property]))?this._parseBody(e,this._parseDeclaration.bind(this)):this.finish(e,cr.IdentifierExpected)}_parseLayer(e=!1){if(!this.peekKeyword("@layer"))return null;const t=this.create(Ye);this.consumeToken();const n=this._parseLayerNameList();return n&&t.setNames(n),n&&1!==n.getChildren().length||!this.peek(o.CurlyL)?this.accept(o.SemiColon)?this.finish(t):this.finish(t,cr.SemiColonExpected):this._parseBody(t,this._parseLayerDeclaration.bind(this,e))}_parseLayerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseLayerNameList(){const e=this.createNode(ee.LayerNameList);if(!e.addChild(this._parseLayerName()))return null;for(;this.accept(o.Comma);)if(!e.addChild(this._parseLayerName()))return this.finish(e,cr.IdentifierExpected);return this.finish(e)}_parseLayerName(){const e=this.createNode(ee.LayerName);if(!e.addChild(this._parseIdent()))return null;for(;!this.hasWhitespace()&&this.acceptDelim(".");)if(this.hasWhitespace()||!e.addChild(this._parseIdent()))return this.finish(e,cr.IdentifierExpected);return this.finish(e)}_parseSupports(e=!1){if(!this.peekKeyword("@supports"))return null;const t=this.create(Je);return this.consumeToken(),t.addChild(this._parseSupportsCondition()),this._parseBody(t,this._parseSupportsDeclaration.bind(this,e))}_parseSupportsDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseSupportsCondition(){const e=this.create(st);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(o.Ident,/^(and|or)$/i)){const t=this.token.text.toLowerCase();for(;this.acceptIdent(t);)e.addChild(this._parseSupportsConditionInParens())}return this.finish(e)}_parseSupportsConditionInParens(){const e=this.create(st);if(this.accept(o.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),e.addChild(this._tryToParseDeclaration([o.ParenthesisR]))||this._parseSupportsCondition()?this.accept(o.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,cr.RightParenthesisExpected,[o.ParenthesisR],[]):this.finish(e,cr.ConditionExpected);if(this.peek(o.Ident)){const t=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(o.ParenthesisL)){let t=1;for(;this.token.type!==o.EOF&&0!==t;)this.token.type===o.ParenthesisL?t++:this.token.type===o.ParenthesisR&&t--,this.consumeToken();return this.finish(e)}this.restoreAtMark(t)}return this.finish(e,cr.LeftParenthesisExpected,[],[o.ParenthesisL])}_parseMediaDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseMedia(e=!1){if(!this.peekKeyword("@media"))return null;const t=this.create(Qe);return this.consumeToken(),t.addChild(this._parseMediaQueryList())?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,cr.MediaQueryExpected)}_parseMediaQueryList(){const e=this.create(tt);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,cr.MediaQueryExpected);for(;this.accept(o.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,cr.MediaQueryExpected);return this.finish(e)}_parseMediaQuery(){const e=this.create(nt),t=this.mark();if(this.acceptIdent("not"),this.peek(o.ParenthesisL))this.restoreAtMark(t),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition())}return this.finish(e)}_parseRatio(){const e=this.mark(),t=this.create(pt);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(t):this.finish(t,cr.NumberExpected):(this.restoreAtMark(e),null):null}_parseMediaCondition(){const e=this.create(it);this.acceptIdent("not");let t=!0;for(;t;){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[],[o.CurlyL]);if(this.peek(o.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[],[o.CurlyL]);t=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)}_parseMediaFeature(){const e=[o.ParenthesisR],t=this.create(rt);if(t.addChild(this._parseMediaFeatureName())){if(this.accept(o.Colon)){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.TermExpected,[],e)}else if(this._parseMediaFeatureRangeOperator()){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.TermExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.TermExpected,[],e)}}else{if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.IdentifierExpected,[],e);if(!this._parseMediaFeatureRangeOperator())return this.finish(t,cr.OperatorExpected,[],e);if(!t.addChild(this._parseMediaFeatureName()))return this.finish(t,cr.IdentifierExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,cr.TermExpected,[],e)}return this.finish(t)}_parseMediaFeatureRangeOperator(){return this.acceptDelim("<")||this.acceptDelim(">")?(this.hasWhitespace()||this.acceptDelim("="),!0):!!this.acceptDelim("=")}_parseMediaFeatureName(){return this._parseIdent()}_parseMediaFeatureValue(){return this._parseRatio()||this._parseTermExpression()}_parseMedium(){const e=this.create(pe);return e.addChild(this._parseIdent())?this.finish(e):null}_parsePageDeclaration(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()}_parsePage(){if(!this.peekKeyword("@page"))return null;const e=this.create(ot);if(this.consumeToken(),e.addChild(this._parsePageSelector()))for(;this.accept(o.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,cr.IdentifierExpected);return this._parseBody(e,this._parsePageDeclaration.bind(this))}_parsePageMarginBox(){if(!this.peek(o.AtKeyword))return null;const e=this.create(at);return this.acceptOneKeyword(rs)||this.markError(e,cr.UnknownAtRule,[],[o.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parsePageSelector(){if(!this.peek(o.Ident)&&!this.peek(o.Colon))return null;const e=this.create(pe);return e.addChild(this._parseIdent()),this.accept(o.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,cr.IdentifierExpected):this.finish(e)}_parseDocument(){if(!this.peekKeyword("@-moz-document"))return null;const e=this.create(Ze);return this.consumeToken(),this.resync([],[o.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))}_parseContainerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseContainer(e=!1){if(!this.peekKeyword("@container"))return null;const t=this.create(et);return this.consumeToken(),t.addChild(this._parseIdent()),t.addChild(this._parseContainerQuery()),this._parseBody(t,this._parseContainerDeclaration.bind(this,e))}_parseContainerQuery(){const e=this.create(pe);if(this.acceptIdent("not"))e.addChild(this._parseContainerQueryInParens());else if(e.addChild(this._parseContainerQueryInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseContainerQueryInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseContainerQueryInParens());return this.finish(e)}_parseContainerQueryInParens(){const e=this.create(pe);if(this.accept(o.ParenthesisL)){if(this.peekIdent("not")||this.peek(o.ParenthesisL)?e.addChild(this._parseContainerQuery()):e.addChild(this._parseMediaFeature()),!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[],[o.CurlyL])}else{if(!this.acceptIdent("style"))return this.finish(e,cr.LeftParenthesisExpected,[],[o.CurlyL]);if(this.hasWhitespace()||!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[],[o.CurlyL]);if(e.addChild(this._parseStyleQuery()),!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[],[o.CurlyL])}return this.finish(e)}_parseStyleQuery(){const e=this.create(pe);if(this.acceptIdent("not"))e.addChild(this._parseStyleInParens());else if(this.peek(o.ParenthesisL)){if(e.addChild(this._parseStyleInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseStyleInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseStyleInParens())}else e.addChild(this._parseDeclaration([o.ParenthesisR]));return this.finish(e)}_parseStyleInParens(){const e=this.create(pe);return this.accept(o.ParenthesisL)?(e.addChild(this._parseStyleQuery()),this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected,[],[o.CurlyL])):this.finish(e,cr.LeftParenthesisExpected,[],[o.CurlyL])}_parseUnknownAtRule(){if(!this.peek(o.AtKeyword))return null;const e=this.create(Et);e.addChild(this._parseUnknownAtRuleName());let t=0,n=0,i=0,r=0;e:for(;;){switch(this.token.type){case o.SemiColon:if(0===n&&0===i&&0===r)break e;break;case o.EOF:return n>0?this.finish(e,cr.RightCurlyExpected):r>0?this.finish(e,cr.RightSquareBracketExpected):i>0?this.finish(e,cr.RightParenthesisExpected):this.finish(e);case o.CurlyL:t++,n++;break;case o.CurlyR:if(n--,t>0&&0===n){if(this.consumeToken(),r>0)return this.finish(e,cr.RightSquareBracketExpected);if(i>0)return this.finish(e,cr.RightParenthesisExpected);break e}if(n<0){if(0===i&&0===r)break e;return this.finish(e,cr.LeftCurlyExpected)}break;case o.ParenthesisL:i++;break;case o.ParenthesisR:if(i--,i<0)return this.finish(e,cr.LeftParenthesisExpected);break;case o.BracketL:r++;break;case o.BracketR:if(r--,r<0)return this.finish(e,cr.LeftSquareBracketExpected)}this.consumeToken()}return e}_parseUnknownAtRuleName(){const e=this.create(pe);return this.accept(o.AtKeyword)?this.finish(e):e}_parseOperator(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(o.Dashmatch)||this.peek(o.Includes)||this.peek(o.SubstringOperator)||this.peek(o.PrefixOperator)||this.peek(o.SuffixOperator)||this.peekDelim("=")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.finish(e)}return null}_parseUnaryOperator(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;const e=this.create(pe);return this.consumeToken(),this.finish(e)}_parseCombinator(){if(this.peekDelim(">")){const e=this.create(pe);this.consumeToken();const t=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=ee.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=ee.SelectorCombinatorParent,this.finish(e)}if(this.peekDelim("+")){const e=this.create(pe);return this.consumeToken(),e.type=ee.SelectorCombinatorSibling,this.finish(e)}if(this.peekDelim("~")){const e=this.create(pe);return this.consumeToken(),e.type=ee.SelectorCombinatorAllSiblings,this.finish(e)}if(this.peekDelim("/")){const e=this.create(pe);this.consumeToken();const t=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=ee.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null}_parseSimpleSelector(){const e=this.create(ke);let t=0;for(e.addChild(this._parseElementName()||this._parseNestingSelector())&&t++;(0===t||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return t>0?this.finish(e):null}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(ee.SelectorCombinator);return this.consumeToken(),this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()}_parseSelectorIdent(){return this._parseIdent()}_parseHash(){if(!this.peek(o.Hash)&&!this.peekDelim("#"))return null;const e=this.createNode(ee.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,cr.IdentifierExpected)}else this.consumeToken();return this.finish(e)}_parseClass(){if(!this.peekDelim("."))return null;const e=this.createNode(ee.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,cr.IdentifierExpected):this.finish(e)}_parseElementName(){const e=this.mark(),t=this.createNode(ee.ElementNameSelector);return t.addChild(this._parseNamespacePrefix()),t.addChild(this._parseSelectorIdent())||this.acceptDelim("*")?this.finish(t):(this.restoreAtMark(e),null)}_parseNamespacePrefix(){const e=this.mark(),t=this.createNode(ee.NamespacePrefix);return!t.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(t):(this.restoreAtMark(e),null)}_parseAttrib(){if(!this.peek(o.BracketL))return null;const e=this.create(dt);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i"),this.acceptIdent("s")),this.accept(o.BracketR)?this.finish(e):this.finish(e,cr.RightSquareBracketExpected)):this.finish(e,cr.IdentifierExpected)}_parsePseudo(){const e=this._tryParsePseudoIdentifier();if(e){if(!this.hasWhitespace()&&this.accept(o.ParenthesisL)){const t=()=>{const e=this.create(pe);if(!e.addChild(this._parseSelector(!0)))return null;for(;this.accept(o.Comma)&&e.addChild(this._parseSelector(!0)););return this.peek(o.ParenthesisR)?this.finish(e):null};if(!e.addChild(this.try(t))&&e.addChild(this._parseBinaryExpr())&&this.acceptIdent("of")&&!e.addChild(this.try(t)))return this.finish(e,cr.SelectorExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}return this.finish(e)}return null}_tryParsePseudoIdentifier(){if(!this.peek(o.Colon))return null;const e=this.mark(),t=this.createNode(ee.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(o.Colon),this.hasWhitespace()||!t.addChild(this._parseIdent())?this.finish(t,cr.IdentifierExpected):this.finish(t))}_tryParsePrio(){const e=this.mark(),t=this._parsePrio();return t||(this.restoreAtMark(e),null)}_parsePrio(){if(!this.peek(o.Exclamation))return null;const e=this.createNode(ee.Prio);return this.accept(o.Exclamation)&&this.acceptIdent("important")?this.finish(e):null}_parseExpr(e=!1){const t=this.create(lt);if(!t.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(o.Comma)){if(e)return this.finish(t);this.consumeToken()}if(!t.addChild(this._parseBinaryExpr()))break}return this.finish(t)}_parseUnicodeRange(){if(!this.peekIdent("u"))return null;const e=this.create(fe);return this.acceptUnicodeRange()?this.finish(e):null}_parseNamedLine(){if(!this.peek(o.BracketL))return null;const e=this.createNode(ee.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(o.BracketR)?this.finish(e):this.finish(e,cr.RightSquareBracketExpected)}_parseBinaryExpr(e,t){let n=this.create(ct);if(!n.setLeft(e||this._parseTerm()))return null;if(!n.setOperator(t||this._parseOperator()))return this.finish(n);if(!n.setRight(this._parseTerm()))return this.finish(n,cr.TermExpected);n=this.finish(n);const i=this._parseOperator();return i&&(n=this._parseBinaryExpr(n,i)),this.finish(n)}_parseTerm(){let e=this.create(ht);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null}_parseTermExpression(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()}_parseOperation(){if(!this.peek(o.ParenthesisL))return null;const e=this.create(pe);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected)}_parseNumeric(){if(this.peek(o.Num)||this.peek(o.Percentage)||this.peek(o.Resolution)||this.peek(o.Length)||this.peek(o.EMS)||this.peek(o.EXS)||this.peek(o.Angle)||this.peek(o.Time)||this.peek(o.Dimension)||this.peek(o.ContainerQueryLength)||this.peek(o.Freq)){const e=this.create(bt);return this.consumeToken(),this.finish(e)}return null}_parseStringLiteral(){if(!this.peek(o.String)&&!this.peek(o.BadString))return null;const e=this.createNode(ee.StringLiteral);return this.consumeToken(),this.finish(e)}_parseURILiteral(){if(!this.peekRegExp(o.Ident,/^url(-prefix)?$/i))return null;const e=this.mark(),t=this.createNode(ee.URILiteral);return this.accept(o.Ident),this.hasWhitespace()||!this.peek(o.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),t.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(o.ParenthesisR)?this.finish(t):this.finish(t,cr.RightParenthesisExpected))}_parseURLArgument(){const e=this.create(pe);return this.accept(o.String)||this.accept(o.BadString)||this.acceptUnquotedString()?this.finish(e):null}_parseIdent(e){if(!this.peek(o.Ident))return null;const t=this.create(ge);return e&&(t.referenceTypes=e),t.isCustomProperty=this.peekRegExp(o.Ident,/^--/),this.consumeToken(),this.finish(t)}_parseFunction(){const e=this.mark(),t=this.create(Ie);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(o.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)t.getArguments().addChild(this._parseFunctionArgument())||this.markError(t,cr.ExpressionExpected);return this.accept(o.ParenthesisR)?this.finish(t):this.finish(t,cr.RightParenthesisExpected)}_parseFunctionIdentifier(){if(!this.peek(o.Ident))return null;const e=this.create(ge);if(e.referenceTypes=[ne.Function],this.acceptIdent("progid")){if(this.accept(o.Colon))for(;this.accept(o.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)}_parseFunctionArgument(){const e=this.create(Ne);return e.setValue(this._parseExpr(!0))?this.finish(e):null}_parseHexColor(){if(this.peekRegExp(o.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){const e=this.create(ut);return this.consumeToken(),this.finish(e)}return null}};function ls(e,t){return-1!==e.indexOf(t)}function cs(...e){const t=[];for(const n of e)for(const e of n)ls(t,e)||t.push(e);return t}var hs,ds=class{constructor(e,t){this.offset=e,this.length=t,this.symbols=[],this.parent=null,this.children=[]}addChild(e){this.children.push(e),e.setParent(this)}setParent(e){this.parent=e}findScope(e,t=0){return this.offset<=e&&this.offset+this.length>e+t||this.offset===e&&this.length===t?this.findInScope(e,t):null}findInScope(e,t=0){const n=e+t,i=function(e,t){let n=0,i=e.length;if(0===i)return 0;for(;n<i;){let r=Math.floor((n+i)/2);t(e[r])?i=r:n=r+1}return n}(this.children,(e=>e.offset>n));if(0===i)return this;const r=this.children[i-1];return r.offset<=e&&r.offset+r.length>=e+t?r.findInScope(e,t):this}addSymbol(e){this.symbols.push(e)}getSymbol(e,t){for(let n=0;n<this.symbols.length;n++){const i=this.symbols[n];if(i.name===e&&i.type===t)return i}return null}getSymbols(){return this.symbols}},us=class extends ds{constructor(){super(0,Number.MAX_VALUE)}},ps=class{constructor(e,t,n,i){this.name=e,this.value=t,this.node=n,this.type=i}},ms=class{constructor(e){this.scope=e}addSymbol(e,t,n,i){if(-1!==e.offset){const r=this.scope.findScope(e.offset,e.length);r&&r.addSymbol(new ps(t,n,e,i))}}addScope(e){if(-1!==e.offset){const t=this.scope.findScope(e.offset,e.length);if(t&&(t.offset!==e.offset||t.length!==e.length)){const n=new ds(e.offset,e.length);return t.addChild(n),n}return t}return null}addSymbolToChildScope(e,t,n,i,r){if(e&&-1!==e.offset){const s=this.addScope(e);s&&s.addSymbol(new ps(n,i,t,r))}}visitNode(e){switch(e.type){case ee.Keyframe:return this.addSymbol(e,e.getName(),void 0,ne.Keyframe),!0;case ee.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(e);case ee.VariableDeclaration:return this.visitVariableDeclarationNode(e);case ee.Ruleset:return this.visitRuleSet(e);case ee.MixinDeclaration:return this.addSymbol(e,e.getName(),void 0,ne.Mixin),!0;case ee.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,ne.Function),!0;case ee.FunctionParameter:return this.visitFunctionParameterNode(e);case ee.Declarations:return this.addScope(e),!0;case ee.For:const t=e,n=t.getDeclarations();return n&&t.variable&&this.addSymbolToChildScope(n,t.variable,t.variable.getName(),void 0,ne.Variable),!0;case ee.Each:{const t=e,n=t.getDeclarations();if(n){const e=t.getVariables().getChildren();for(const t of e)this.addSymbolToChildScope(n,t,t.getName(),void 0,ne.Variable)}return!0}}return!0}visitRuleSet(e){const t=this.scope.findScope(e.offset,e.length);if(t)for(const n of e.getSelectors().getChildren())n instanceof _e&&1===n.getChildren().length&&t.addSymbol(new ps(n.getChild(0).getText(),void 0,n,ne.Rule));return!0}visitVariableDeclarationNode(e){const t=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),t,ne.Variable),!0}visitFunctionParameterNode(e){const t=e.getParent().getDeclarations();if(t){const n=e.getDefaultValue(),i=n?n.getText():void 0;this.addSymbolToChildScope(t,e,e.getName(),i,ne.Variable)}return!0}visitCustomPropertyDeclarationNode(e){const t=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),t,ne.Variable),!0}addCSSVariable(e,t,n,i){-1!==e.offset&&this.scope.addSymbol(new ps(t,n,e,i))}},fs=class{constructor(e){this.global=new us,e.acceptVisitor(new ms(this.global))}findSymbolsAtOffset(e,t){let n=this.global.findScope(e,0);const i=[],r={};for(;n;){const e=n.getSymbols();for(let n=0;n<e.length;n++){const s=e[n];s.type!==t||r[s.name]||(i.push(s),r[s.name]=!0)}n=n.parent}return i}internalFindSymbol(e,t){let n=e;if(e.parent instanceof Te&&e.parent.getParent()instanceof ye&&(n=e.parent.getParent().getDeclarations()),e.parent instanceof Ne&&e.parent.getParent()instanceof Ie){const t=e.parent.getParent().getIdentifier();if(t){const e=this.internalFindSymbol(t,[ne.Function]);e&&(n=e.node.getDeclarations())}}if(!n)return null;const i=e.getText();let r=this.global.findScope(n.offset,n.length);for(;r;){for(let e=0;e<t.length;e++){const n=t[e],s=r.getSymbol(i,n);if(s)return s}r=r.parent}return null}evaluateReferenceTypes(e){if(e instanceof ge){const t=e.referenceTypes;if(t)return t;{if(e.isCustomProperty)return[ne.Variable];const t=function(e){const t=e.findParent(ee.Declaration),n=t&&t.getValue();return n&&n.encloses(e)?t:null}(e);if(t){const n=t.getNonPrefixedPropertyName();if(("animation"===n||"animation-name"===n)&&t.getValue()&&t.getValue().offset===e.offset)return[ne.Keyframe]}}}else if(e instanceof wt)return[ne.Variable];return e.findAParent(ee.Selector,ee.ExtendsReference)?[ne.Rule]:null}findSymbolFromNode(e){if(!e)return null;for(;e.type===ee.Interpolation;)e=e.getParent();const t=this.evaluateReferenceTypes(e);return t?this.internalFindSymbol(e,t):null}matchesSymbol(e,t){if(!e)return!1;for(;e.type===ee.Interpolation;)e=e.getParent();if(!e.matches(t.name))return!1;const n=this.evaluateReferenceTypes(e);if(!n||-1===n.indexOf(t.type))return!1;return this.internalFindSymbol(e,n)===t}findSymbol(e,t,n){let i=this.global.findScope(n);for(;i;){const n=i.getSymbol(e,t);if(n)return n;i=i.parent}return null}};(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,i="",r=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var l=i.lastIndexOf("/");if(l!==i.length-1){-1===l?(i="",r=0):r=(i=i.slice(0,l)).length-1-i.lastIndexOf("/"),s=a,o=0;continue}}else if(2===i.length||1===i.length){i="",r=0,s=a,o=0;continue}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(s+1,a):i=e.slice(s+1,a),r=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return i}var i={resolve:function(){for(var e,i="",r=!1,s=arguments.length-1;s>=-1&&!r;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(i=o+"/"+i,r=47===o.charCodeAt(0))}return i=n(i,!r),r?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&r&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];t(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var s=e.length,o=s-r,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,c=o<l?o:l,h=-1,d=0;d<=c;++d){if(d===c){if(l>c){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else o>c&&(47===e.charCodeAt(r+d)?h=d:0===d&&(h=0));break}var u=e.charCodeAt(r+d);if(u!==n.charCodeAt(a+d))break;47===u&&(h=d)}var p="";for(d=r+h+1;d<=s;++d)d!==s&&47!==e.charCodeAt(d)||(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(a+h):(a+=h,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),i=47===n,r=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){r=o;break}}else s=!1;return-1===r?i?"/":".":i&&1===r?"//":e.slice(0,r)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var i,r=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(i=e.length-1;i>=0;--i){var c=e.charCodeAt(i);if(47===c){if(!o){r=i+1;break}}else-1===l&&(o=!1,l=i+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(s=i):(a=-1,s=l))}return r===s?s=l:-1===s&&(s=e.length),e.slice(r,s)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){r=i+1;break}}else-1===s&&(o=!1,s=i+1);return-1===s?"":e.slice(r,s)},extname:function(e){t(e);for(var n=-1,i=0,r=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(s=!1,r=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){i=a+1;break}}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+"/"+i:i}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i,r=e.charCodeAt(0),s=47===r;s?(n.root="/",i=1):i=0;for(var o=-1,a=0,l=-1,c=!0,h=e.length-1,d=0;h>=i;--h)if(47!==(r=e.charCodeAt(h)))-1===l&&(c=!1,l=h+1),46===r?-1===o?o=h:1!==d&&(d=1):-1!==o&&(d=-1);else if(!c){a=h+1;break}return-1===o||-1===l||0===d||1===d&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(a,o),n.base=e.slice(a,l)),n.ext=e.slice(o,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{let e;if(n.r(i),n.d(i,{URI:()=>h,Utils:()=>S}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,r=/^\//,s=/^\/\//;function o(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const a="",l="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static isUri(e){return e instanceof h||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,i,r,s=!1){"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,n||a),this.query=i||a,this.fragment=r||a,o(this,s))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===i?i=this.path:null===i&&(i=a),void 0===r?r=this.query:null===r&&(r=a),void 0===s?s=this.fragment:null===s&&(s=a),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new u(t,n,i,r,s)}static parse(e,t=!1){const n=c.exec(e);return n?new u(n[2]||a,w(n[4]||a),w(n[5]||a),w(n[7]||a),w(n[9]||a),t):new u(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,l)),t[0]===l&&t[1]===l){const e=t.indexOf(l,2);-1===e?(n=t.substring(2),t=l):(n=t.substring(2,e),t=t.substring(e)||l)}return new u("file",n,t,a,a)}static from(e){const t=new u(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof h)return e;{const t=new u(e);return t._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t}}return e}}const d=e?1:void 0;class u extends h{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,n){let i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=p[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function f(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=p[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function g(t,n){let i;return i=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(i=i.replace(/\//g,"\\")),i}function b(e,t){const n=t?f:m;let i="",{scheme:r,authority:s,path:o,query:a,fragment:c}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=l,i+=l),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),c&&(i+="#",i+=t?c:m(c,!1,!1)),i}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}const y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(e){return e.match(y)?e.replace(y,(e=>v(e))):e}var _=n(470);const k=_.posix||_,C="/";var S,x;(x=S||(S={})).joinPath=function(e,...t){return e.with({path:k.join(e.path,...t)})},x.resolvePath=function(e,...t){let n=e.path,i=!1;n[0]!==C&&(n=C+n,i=!0);let r=k.resolve(n,...t);return i&&r[0]===C&&!e.authority&&(r=r.substring(1)),e.with({path:r})},x.dirname=function(e){if(0===e.path.length||e.path===C)return e;let t=k.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},x.basename=function(e){return k.basename(e.path)},x.extname=function(e){return k.extname(e.path)}})(),hs=i})();var{URI:gs,Utils:bs}=hs;function vs(e){return bs.dirname(gs.parse(e)).toString(!0)}function ys(e,...t){return bs.joinPath(gs.parse(e),...t).toString(!0)}var ws=class{constructor(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}onCssURILiteralValue(e){this.literalCompletions.push(e)}onCssImportPath(e){this.importCompletions.push(e)}async computeCompletions(e,t){const n={items:[],isIncomplete:!1};for(const i of this.literalCompletions){const r=i.uriValue,s=ks(r);if("."===s||".."===s)n.isIncomplete=!0;else{const s=await this.providePathSuggestions(r,i.position,i.range,e,t);for(let e of s)n.items.push(e)}}for(const i of this.importCompletions){const r=i.pathValue,s=ks(r);if("."===s||".."===s)n.isIncomplete=!0;else{let s=await this.providePathSuggestions(r,i.position,i.range,e,t);"scss"===e.languageId&&s.forEach((e=>{se(e.label,"_")&&oe(e.label,".scss")&&(e.textEdit?e.textEdit.newText=e.label.slice(1,-5):e.label=e.label.slice(1,-5))}));for(let e of s)n.items.push(e)}}return n}async providePathSuggestions(e,t,n,i,r){const s=ks(e),o=se(e,"'")||se(e,'"'),a=o?s.slice(0,t.character-(n.start.character+1)):s.slice(0,t.character-n.start.character),l=i.uri,c=function(e,t,n){let i;const r=e.lastIndexOf("/");if(-1===r)i=n;else{const e=t.slice(r+1),s=xs(n.end,-e.length),o=e.indexOf(" ");let a;a=-1!==o?xs(s,o):n.end,i=qt.create(s,a)}return i}(a,s,o?function(e,t,n){const i=xs(e.start,t),r=xs(e.end,n);return qt.create(i,r)}(n,1,-1):n),h=a.substring(0,a.lastIndexOf("/")+1);let d=r.resolveReference(h||".",l);if(d)try{const e=[],t=await this.readDirectory(d);for(const[n,i]of t)n.charCodeAt(0)===_s||i!==fr.Directory&&ys(d,n)===l||e.push(Cs(n,i===fr.Directory,c));return e}catch(u){}return[]}},_s=".".charCodeAt(0);function ks(e){return se(e,"'")||se(e,'"')?e.slice(1,-1):e}function Cs(e,t,n){return t?{label:Ss(e+="/"),kind:jn.Folder,textEdit:vn.replace(n,Ss(e)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:Ss(e),kind:jn.File,textEdit:vn.replace(n,Ss(e))}}function Ss(e){return e.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function xs(e,t){return Ut.create(e.line,e.character+t)}var Es,Fs,Ls=Hn.Snippet,Is={title:"Suggest",command:"editor.action.triggerSuggest"};(Fs=Es||(Es={})).Enums=" ",Fs.Normal="d",Fs.VendorPrefixed="x",Fs.Term="y",Fs.Variable="z";var Ts=class{constructor(e=null,t,n){this.variablePrefix=e,this.lsOptions=t,this.cssDataManager=n,this.completionParticipants=[]}configure(e){this.defaultSettings=e}getSymbolContext(){return this.symbolContext||(this.symbolContext=new fs(this.styleSheet)),this.symbolContext}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,t,n,i,r=this.defaultSettings){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,t,n,r);const s=new ws(this.lsOptions.fileSystemProvider.readDirectory),o=this.completionParticipants;this.completionParticipants=[s].concat(o);const a=this.doComplete(e,t,n,r);try{const t=await s.computeCompletions(e,i);return{isIncomplete:a.isIncomplete||t.isIncomplete,itemDefaults:a.itemDefaults,items:t.items.concat(a.items)}}finally{this.completionParticipants=o}}doComplete(e,t,n,i){this.offset=e.offsetAt(t),this.position=t,this.currentWord=function(e,t){let n=t-1;const i=e.getText();for(;n>=0&&-1===' \t\n\r":{[()]},*>+'.indexOf(i.charAt(n));)n--;return i.substring(n+1,t)}(e,this.offset),this.defaultReplaceRange=qt.create(Ut.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=n,this.documentSettings=i;try{const e={isIncomplete:!1,itemDefaults:{editRange:{start:{line:t.line,character:t.character-this.currentWord.length},end:t}},items:[]};this.nodePath=he(this.styleSheet,this.offset);for(let t=this.nodePath.length-1;t>=0;t--){const n=this.nodePath[t];if(n instanceof Fe)this.getCompletionsForDeclarationProperty(n.getParent(),e);else if(n instanceof lt)n.parent instanceof yt?this.getVariableProposals(null,e):this.getCompletionsForExpression(n,e);else if(n instanceof ke){const t=n.findAParent(ee.ExtendsReference,ee.Ruleset);if(t)if(t.type===ee.ExtendsReference)this.getCompletionsForExtendsReference(t,n,e);else{const n=t;this.getCompletionsForSelector(n,n&&n.isNested(),e)}}else if(n instanceof Ne)this.getCompletionsForFunctionArgument(n,n.getParent(),e);else if(n instanceof ve)this.getCompletionsForDeclarations(n,e);else if(n instanceof vt)this.getCompletionsForVariableDeclaration(n,e);else if(n instanceof we)this.getCompletionsForRuleSet(n,e);else if(n instanceof yt)this.getCompletionsForInterpolation(n,e);else if(n instanceof ze)this.getCompletionsForFunctionDeclaration(n,e);else if(n instanceof St)this.getCompletionsForMixinReference(n,e);else if(n instanceof Ie)this.getCompletionsForFunctionArgument(null,n,e);else if(n instanceof Je)this.getCompletionsForSupports(n,e);else if(n instanceof st)this.getCompletionsForSupportsCondition(n,e);else if(n instanceof _t)this.getCompletionsForExtendsReference(n,null,e);else if(n.type===ee.URILiteral)this.getCompletionForUriLiteralValue(n,e);else if(null===n.parent)this.getCompletionForTopLevel(e);else{if(n.type!==ee.StringLiteral||!this.isImportPathParent(n.parent.type))continue;this.getCompletionForImportPath(n,e)}if(e.items.length>0||this.offset>n.offset)return this.finalize(e)}return this.getCompletionsForStylesheet(e),0===e.items.length&&this.variablePrefix&&0===this.currentWord.indexOf(this.variablePrefix)&&this.getVariableProposals(null,e),this.finalize(e)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}}isImportPathParent(e){return e===ee.Import}finalize(e){return e}findInNodePath(...e){for(let t=this.nodePath.length-1;t>=0;t--){const n=this.nodePath[t];if(-1!==e.indexOf(n.type))return n}return null}getCompletionsForDeclarationProperty(e,t){return this.getPropertyProposals(e,t)}getPropertyProposals(e,t){const n=this.isTriggerPropertyValueCompletionEnabled,i=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach((r=>{let s,o,a=!1;e?(s=this.getCompletionRange(e.getProperty()),o=r.name,os(e.colonPosition)||(o+=": ",a=!0)):(s=this.getCompletionRange(null),o=r.name+": ",a=!0),!e&&i&&(o+="$0;"),e&&!e.semicolonPosition&&i&&this.offset>=this.textDocument.offsetAt(s.end)&&(o+="$0;");const l={label:r.name,documentation:Sr(r,this.doesSupportMarkdown()),tags:Ns(r)?[Qn.Deprecated]:[],textEdit:vn.replace(s,o),insertTextFormat:Hn.Snippet,kind:jn.Property};r.restrictions||(a=!1),n&&a&&(l.command=Is);const c=(255-("number"===typeof r.relevance?Math.min(Math.max(r.relevance,0),99):50)).toString(16),h=se(r.name,"-")?Es.VendorPrefixed:Es.Normal;l.sortText=h+"_"+c,t.items.push(l)})),this.completionParticipants.forEach((e=>{e.onCssProperty&&e.onCssProperty({propertyName:this.currentWord,range:this.defaultReplaceRange})})),t}get isTriggerPropertyValueCompletionEnabled(){return this.documentSettings?.triggerPropertyValueCompletion??!0}get isCompletePropertyWithSemicolonEnabled(){return this.documentSettings?.completePropertyWithSemicolon??!0}getCompletionsForDeclarationValue(e,t){const n=e.getFullPropertyName(),i=this.cssDataManager.getProperty(n);let r=e.getValue()||null;for(;r&&r.hasChildren();)r=r.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach((e=>{e.onCssPropertyValue&&e.onCssPropertyValue({propertyName:n,propertyValue:this.currentWord,range:this.getCompletionRange(r)})})),i){if(i.restrictions)for(const e of i.restrictions)switch(e){case"color":this.getColorProposals(i,r,t);break;case"position":this.getPositionProposals(i,r,t);break;case"repeat":this.getRepeatStyleProposals(i,r,t);break;case"line-style":this.getLineStyleProposals(i,r,t);break;case"line-width":this.getLineWidthProposals(i,r,t);break;case"geometry-box":this.getGeometryBoxProposals(i,r,t);break;case"box":this.getBoxProposals(i,r,t);break;case"image":this.getImageProposals(i,r,t);break;case"timing-function":this.getTimingFunctionProposals(i,r,t);break;case"shape":this.getBasicShapeProposals(i,r,t)}this.getValueEnumProposals(i,r,t),this.getCSSWideKeywordProposals(i,r,t),this.getUnitProposals(i,r,t)}else{const n=function(e,t){const n=t.getFullPropertyName(),i=new Rs;function r(e){return(e instanceof ge||e instanceof bt||e instanceof ut)&&i.add(e.getText()),!0}function s(e){const t=e.getFullPropertyName();return n===t}function o(e){if(e instanceof xe&&e!==t&&s(e)){const t=e.getValue();t&&t.accept(r)}return!0}return e.accept(o),i}(this.styleSheet,e);for(const e of n.getEntries())t.items.push({label:e,textEdit:vn.replace(this.getCompletionRange(r),e),kind:jn.Value})}return this.getVariableProposals(r,t),this.getTermProposals(i,r,t),t}getValueEnumProposals(e,t,n){if(e.values)for(const i of e.values){let r,s=i.name;if(oe(s,")")){const e=s.lastIndexOf("(");-1!==e&&(s=s.substring(0,e+1)+"$1"+s.substring(e+1),r=Ls)}let o=Es.Enums;se(i.name,"-")&&(o+=Es.VendorPrefixed);const a={label:i.name,documentation:Sr(i,this.doesSupportMarkdown()),tags:Ns(e)?[Qn.Deprecated]:[],textEdit:vn.replace(this.getCompletionRange(t),s),sortText:o,kind:jn.Value,insertTextFormat:r};n.items.push(a)}return n}getCSSWideKeywordProposals(e,t,n){for(const i in Jr)n.items.push({label:i,documentation:Jr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});for(const i in Yr){const e=Ds(i);n.items.push({label:i,documentation:Yr[i],textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Function,insertTextFormat:Ls,command:se(i,"var")?Is:void 0})}return n}getCompletionsForInterpolation(e,t){return this.offset>=e.offset+2&&this.getVariableProposals(null,t),t}getVariableProposals(e,t){const n=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Variable);for(const i of n){const n=se(i.name,"--")?`var(${i.name})`:i.name,r={label:i.name,documentation:i.value?ae(i.value):i.value,textEdit:vn.replace(this.getCompletionRange(e),n),kind:jn.Variable,sortText:Es.Variable};if("string"===typeof r.documentation&&Pr(r.documentation)&&(r.kind=jn.Color),i.node.type===ee.FunctionParameter){const e=i.node.getParent();e.type===ee.MixinDeclaration&&(r.detail=Dt("argument from '{0}'",e.getName()))}t.items.push(r)}return t}getVariableProposalsForCSSVarFunction(e){const t=new Rs;this.styleSheet.acceptVisitor(new Ms(t,this.offset));let n=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Variable);for(const i of n){if(se(i.name,"--")){const t={label:i.name,documentation:i.value?ae(i.value):i.value,textEdit:vn.replace(this.getCompletionRange(null),i.name),kind:jn.Variable};"string"===typeof t.documentation&&Pr(t.documentation)&&(t.kind=jn.Color),e.items.push(t)}t.remove(i.name)}for(const i of t.getEntries())if(se(i,"--")){const t={label:i,textEdit:vn.replace(this.getCompletionRange(null),i),kind:jn.Variable};e.items.push(t)}return e}getUnitProposals(e,t,n){let i="0";if(this.currentWord.length>0){const e=this.currentWord.match(/^-?\d[\.\d+]*/);e&&(i=e[0],n.isIncomplete=i.length===this.currentWord.length)}else 0===this.currentWord.length&&(n.isIncomplete=!0);if(t&&t.parent&&t.parent.type===ee.Term&&(t=t.getParent()),e.restrictions)for(const r of e.restrictions){const e=ts[r];if(e)for(const r of e){const e=i+r;n.items.push({label:e,textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Unit})}}return n}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){const t=-1!==e.end?this.textDocument.positionAt(e.end):this.position,n=this.textDocument.positionAt(e.offset);if(n.line===t.line)return qt.create(n,t)}return this.defaultReplaceRange}getColorProposals(e,t,n){for(const r in Rr)n.items.push({label:r,documentation:Rr[r],textEdit:vn.replace(this.getCompletionRange(t),r),kind:jn.Color});for(const r in Ar)n.items.push({label:r,documentation:Ar[r],textEdit:vn.replace(this.getCompletionRange(t),r),kind:jn.Value});const i=new Rs;this.styleSheet.acceptVisitor(new As(i,this.offset));for(const r of i.getEntries())n.items.push({label:r,textEdit:vn.replace(this.getCompletionRange(t),r),kind:jn.Color});for(const r of Tr)n.items.push({label:r.label,detail:r.func,documentation:r.desc,textEdit:vn.replace(this.getCompletionRange(t),r.insertText),insertTextFormat:Ls,kind:jn.Function});return n}getPositionProposals(e,t,n){for(const i in qr)n.items.push({label:i,documentation:qr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getRepeatStyleProposals(e,t,n){for(const i in jr)n.items.push({label:i,documentation:jr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getLineStyleProposals(e,t,n){for(const i in Kr)n.items.push({label:i,documentation:Kr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getLineWidthProposals(e,t,n){for(const i of Hr)n.items.push({label:i,textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getGeometryBoxProposals(e,t,n){for(const i in Qr)n.items.push({label:i,documentation:Qr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getBoxProposals(e,t,n){for(const i in Gr)n.items.push({label:i,documentation:Gr[i],textEdit:vn.replace(this.getCompletionRange(t),i),kind:jn.Value});return n}getImageProposals(e,t,n){for(const i in Xr){const e=Ds(i);n.items.push({label:i,documentation:Xr[i],textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Function,insertTextFormat:i!==e?Ls:void 0})}return n}getTimingFunctionProposals(e,t,n){for(const i in Zr){const e=Ds(i);n.items.push({label:i,documentation:Zr[i],textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Function,insertTextFormat:i!==e?Ls:void 0})}return n}getBasicShapeProposals(e,t,n){for(const i in es){const e=Ds(i);n.items.push({label:i,documentation:es[i],textEdit:vn.replace(this.getCompletionRange(t),e),kind:jn.Function,insertTextFormat:i!==e?Ls:void 0})}return n}getCompletionsForStylesheet(e){const t=this.styleSheet.findFirstChildBeforeOffset(this.offset);return t?t instanceof we?this.getCompletionsForRuleSet(t,e):t instanceof Je?this.getCompletionsForSupports(t,e):e:this.getCompletionForTopLevel(e)}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach((t=>{e.items.push({label:t.name,textEdit:vn.replace(this.getCompletionRange(null),t.name),documentation:Sr(t,this.doesSupportMarkdown()),tags:Ns(t)?[Qn.Deprecated]:[],kind:jn.Keyword})})),this.getCompletionsForSelector(null,!1,e),e}getCompletionsForRuleSet(e,t){const n=e.getDeclarations();if(n&&n.endsWith("}")&&this.offset>=n.end)return this.getCompletionForTopLevel(t);return!n||this.offset<=n.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)}getCompletionsForSelector(e,t,n){const i=this.findInNodePath(ee.PseudoSelector,ee.IdentifierSelector,ee.ClassSelector,ee.ElementNameSelector);!i&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=qt.create(Ut.create(this.position.line,this.position.character-this.currentWord.length),this.position));this.cssDataManager.getPseudoClasses().forEach((e=>{const t=Ds(e.name),r={label:e.name,textEdit:vn.replace(this.getCompletionRange(i),t),documentation:Sr(e,this.doesSupportMarkdown()),tags:Ns(e)?[Qn.Deprecated]:[],kind:jn.Function,insertTextFormat:e.name!==t?Ls:void 0};se(e.name,":-")&&(r.sortText=Es.VendorPrefixed),n.items.push(r)}));if(this.cssDataManager.getPseudoElements().forEach((e=>{const t=Ds(e.name),r={label:e.name,textEdit:vn.replace(this.getCompletionRange(i),t),documentation:Sr(e,this.doesSupportMarkdown()),tags:Ns(e)?[Qn.Deprecated]:[],kind:jn.Function,insertTextFormat:e.name!==t?Ls:void 0};se(e.name,"::-")&&(r.sortText=Es.VendorPrefixed),n.items.push(r)})),!t){for(const e of ns)n.items.push({label:e,textEdit:vn.replace(this.getCompletionRange(i),e),kind:jn.Keyword});for(const e of is)n.items.push({label:e,textEdit:vn.replace(this.getCompletionRange(i),e),kind:jn.Keyword})}const r={};r[this.currentWord]=!0;const s=this.textDocument.getText();if(this.styleSheet.accept((e=>{if(e.type===ee.SimpleSelector&&e.length>0){const t=s.substr(e.offset,e.length);return"."!==t.charAt(0)||r[t]||(r[t]=!0,n.items.push({label:t,textEdit:vn.replace(this.getCompletionRange(i),t),kind:jn.Keyword})),!1}return!0})),e&&e.isNested()){const t=e.getSelectors().findFirstChildBeforeOffset(this.offset);t&&0===e.getSelectors().getChildren().indexOf(t)&&this.getPropertyProposals(null,n)}return n}getCompletionsForDeclarations(e,t){if(!e||this.offset===e.offset)return t;const n=e.findFirstChildBeforeOffset(this.offset);if(!n)return this.getCompletionsForDeclarationProperty(null,t);if(n instanceof Ce){const e=n;if(!os(e.colonPosition)||this.offset<=e.colonPosition)return this.getCompletionsForDeclarationProperty(e,t);if(os(e.semicolonPosition)&&e.semicolonPosition<this.offset)return this.offset===e.semicolonPosition+1?t:this.getCompletionsForDeclarationProperty(null,t);if(e instanceof xe)return this.getCompletionsForDeclarationValue(e,t)}else n instanceof _t?this.getCompletionsForExtendsReference(n,null,t):(this.currentWord&&"@"===this.currentWord[0]||n instanceof we)&&this.getCompletionsForDeclarationProperty(null,t);return t}getCompletionsForVariableDeclaration(e,t){return this.offset&&os(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue()||null,t),t}getCompletionsForExpression(e,t){const n=e.getParent();if(n instanceof Ne)return this.getCompletionsForFunctionArgument(n,n.getParent(),t),t;const i=e.findParent(ee.Declaration);if(!i)return this.getTermProposals(void 0,null,t),t;const r=e.findChildAtOffset(this.offset,!0);return r?r instanceof bt||r instanceof ge?this.getCompletionsForDeclarationValue(i,t):t:this.getCompletionsForDeclarationValue(i,t)}getCompletionsForFunctionArgument(e,t,n){const i=t.getIdentifier();return i&&i.matches("var")&&(t.getArguments().hasChildren()&&t.getArguments().getChild(0)!==e||this.getVariableProposalsForCSSVarFunction(n)),n}getCompletionsForFunctionDeclaration(e,t){const n=e.getDeclarations();return n&&this.offset>n.offset&&this.offset<n.end&&this.getTermProposals(void 0,null,t),t}getCompletionsForMixinReference(e,t){const n=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Mixin);for(const r of n)r.node instanceof xt&&t.items.push(this.makeTermProposal(r,r.node.getParameters(),null));const i=e.getIdentifier()||null;return this.completionParticipants.forEach((e=>{e.onCssMixinReference&&e.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(i)})})),t}getTermProposals(e,t,n){const i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Function);for(const r of i)r.node instanceof ze&&n.items.push(this.makeTermProposal(r,r.node.getParameters(),t));return n}makeTermProposal(e,t,n){e.node;const i=t.getChildren().map((e=>e instanceof Te?e.getName():e.getText())),r=e.name+"("+i.map(((e,t)=>"${"+(t+1)+":"+e+"}")).join(", ")+")";return{label:e.name,detail:e.name+"("+i.join(", ")+")",textEdit:vn.replace(this.getCompletionRange(n),r),insertTextFormat:Ls,kind:jn.Function,sortText:Es.Term}}getCompletionsForSupportsCondition(e,t){const n=e.findFirstChildBeforeOffset(this.offset);if(n){if(n instanceof xe)return!os(n.colonPosition)||this.offset<=n.colonPosition?this.getCompletionsForDeclarationProperty(n,t):this.getCompletionsForDeclarationValue(n,t);if(n instanceof st)return this.getCompletionsForSupportsCondition(n,t)}return os(e.lParent)&&this.offset>e.lParent&&(!os(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t}getCompletionsForSupports(e,t){const n=e.getDeclarations();if(!n||this.offset<=n.offset){const n=e.findFirstChildBeforeOffset(this.offset);return n instanceof st?this.getCompletionsForSupportsCondition(n,t):t}return this.getCompletionForTopLevel(t)}getCompletionsForExtendsReference(e,t,n){return n}getCompletionForUriLiteralValue(e,t){let n,i,r;if(e.hasChildren()){const t=e.getChild(0);n=t.getText(),i=this.position,r=this.getCompletionRange(t)}else{n="",i=this.position;const t=this.textDocument.positionAt(e.offset+4);r=qt.create(t,t)}return this.completionParticipants.forEach((e=>{e.onCssURILiteralValue&&e.onCssURILiteralValue({uriValue:n,position:i,range:r})})),t}getCompletionForImportPath(e,t){return this.completionParticipants.forEach((t=>{t.onCssImportPath&&t.onCssImportPath({pathValue:e.getText(),position:this.position,range:this.getCompletionRange(e)})})),t}hasCharacterAtPosition(e,t){const n=this.textDocument.getText();return e>=0&&e<n.length&&n.charAt(e)===t}doesSupportMarkdown(){if(!os(this.supportsMarkdown)){if(!os(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(Un.Markdown)}return this.supportsMarkdown}};function Ns(e){return!(!e.status||"nonstandard"!==e.status&&"obsolete"!==e.status)}var Rs=class{constructor(){this.entries={}}add(e){this.entries[e]=!0}remove(e){delete this.entries[e]}getEntries(){return Object.keys(this.entries)}};function Ds(e){return e.replace(/\(\)$/,"($1)")}var As=class{constructor(e,t){this.entries=e,this.currentOffset=t}visitNode(e){return(e instanceof ut||e instanceof Ie&&function(e){const t=e.getName();return!!t&&Nr.test(t)}(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}},Ms=class{constructor(e,t){this.entries=e,this.currentOffset=t}visitNode(e){return e instanceof ge&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}};var Os,zs=class e{constructor(){this.parent=null,this.children=null,this.attributes=null}findAttribute(e){if(this.attributes)for(const t of this.attributes)if(t.name===e)return t.value;return null}addChild(t){t instanceof e&&(t.parent=this),this.children||(this.children=[]),this.children.push(t)}append(e){if(this.attributes){const t=this.attributes[this.attributes.length-1];t.value=t.value+e}}prepend(e){if(this.attributes){const t=this.attributes[0];t.value=e+t.value}}findRoot(){let e=this;for(;e.parent&&!(e.parent instanceof Ps);)e=e.parent;return e}removeChild(e){if(this.children){const t=this.children.indexOf(e);if(-1!==t)return this.children.splice(t,1),!0}return!1}addAttr(e,t){this.attributes||(this.attributes=[]);for(const n of this.attributes)if(n.name===e)return void(n.value+=" "+t);this.attributes.push({name:e,value:t})}clone(t=!0){const n=new e;if(this.attributes){n.attributes=[];for(const e of this.attributes)n.addAttr(e.name,e.value)}if(t&&this.children){n.children=[];for(let e=0;e<this.children.length;e++)n.addChild(this.children[e].clone())}return n}cloneWithParent(){const e=this.clone(!1);if(this.parent&&!(this.parent instanceof Ps)){this.parent.cloneWithParent().addChild(e)}return e}},Ps=class extends zs{},Bs=class extends zs{constructor(e){super(),this.addAttr("name",e)}},Ws=class{constructor(e){this.quote=e,this.result=[]}print(e,t){let n;return this.result=[],e instanceof Ps?e.children&&this.doPrint(e.children,0):this.doPrint([e],0),n=t?`${t.text}\n \u2026 `+this.result.join("\n"):this.result.join("\n"),[{language:"html",value:n}]}doPrint(e,t){for(const n of e)this.doPrintElement(n,t),n.children&&this.doPrint(n.children,t+1)}writeLine(e,t){const n=new Array(e+1).join(" ");this.result.push(n+t)}doPrintElement(e,t){const n=e.findAttribute("name");if(e instanceof Bs||"\u2026"===n)return void this.writeLine(t,n);const i=["<"];if(n?i.push(n):i.push("element"),e.attributes)for(const r of e.attributes)if("name"!==r.name){i.push(" "),i.push(r.name);const e=r.value;e&&(i.push("="),i.push(Os.ensure(e,this.quote)))}i.push(">"),this.writeLine(t,i.join(""))}};!function(e){function t(e){const t=e.match(/^['"](.*)["']$/);return t?t[1]:e}e.ensure=function(e,n){return n+t(e)+n},e.remove=t}(Os||(Os={}));var Vs=class{constructor(){this.id=0,this.attr=0,this.tag=0}};function Us(e,t){let n=new zs;for(const i of e.getChildren())switch(i.type){case ee.SelectorCombinator:if(t){const e=i.getText().split("&");if(1===e.length){n.addAttr("name",e[0]);break}if(n=t.cloneWithParent(),e[0]){n.findRoot().prepend(e[0])}for(let i=1;i<e.length;i++){if(i>1){const e=t.cloneWithParent();n.addChild(e.findRoot()),n=e}n.append(e[i])}}break;case ee.SelectorPlaceholder:if(i.matches("@at-root"))return n;case ee.ElementNameSelector:const e=i.getText();n.addAttr("name","*"===e?"element":$s(e));break;case ee.ClassSelector:n.addAttr("class",$s(i.getText().substring(1)));break;case ee.IdentifierSelector:n.addAttr("id",$s(i.getText().substring(1)));break;case ee.MixinDeclaration:n.addAttr("class",i.getName());break;case ee.PseudoSelector:n.addAttr($s(i.getText()),"");break;case ee.AttributeSelector:const r=i,s=r.getIdentifier();if(s){const e=r.getValue(),t=r.getOperator();let i;if(e&&t)switch($s(t.getText())){case"|=":i=`${Os.remove($s(e.getText()))}-\u2026`;break;case"^=":i=`${Os.remove($s(e.getText()))}\u2026`;break;case"$=":i=`\u2026${Os.remove($s(e.getText()))}`;break;case"~=":i=` \u2026 ${Os.remove($s(e.getText()))} \u2026 `;break;case"*=":i=`\u2026${Os.remove($s(e.getText()))}\u2026`;break;default:i=Os.remove($s(e.getText()))}n.addAttr($s(s.getText()),i)}}return n}function $s(e){const t=new re;t.setSource(e);const n=t.scanUnquotedString();return n?n.text:e}var qs=class{constructor(e){this.cssDataManager=e}selectorToMarkedString(e,t){const n=function(e){if(e.matches("@at-root"))return null;const t=new Ps,n=[],i=e.getParent();if(i instanceof we){let e=i.getParent();for(;e&&!Ks(e);){if(e instanceof we){if(e.getSelectors().matches("@at-root"))break;n.push(e)}e=e.getParent()}}const r=new js(t);for(let s=n.length-1;s>=0;s--){const e=n[s].getSelectors().getChild(0);e&&r.processSelector(e)}return r.processSelector(e),t}(e);if(n){const i=new Ws('"').print(n,t);return i.push(this.selectorToSpecificityMarkedString(e)),i}return[]}simpleSelectorToMarkedString(e){const t=Us(e),n=new Ws('"').print(t);return n.push(this.selectorToSpecificityMarkedString(e)),n}isPseudoElementIdentifier(e){const t=e.match(/^::?([\w-]+)/);return!!t&&!!this.cssDataManager.getPseudoElement("::"+t[1])}selectorToSpecificityMarkedString(e){const t=e=>{const t=new Vs;let i=new Vs;for(const r of e)for(const e of r.getChildren()){const t=n(e);t.id>i.id?i=t:t.id<i.id||(t.attr>i.attr?i=t:t.attr<i.attr||t.tag>i.tag&&(i=t))}return t.id+=i.id,t.attr+=i.attr,t.tag+=i.tag,t},n=e=>{const i=new Vs;e:for(const r of e.getChildren()){switch(r.type){case ee.IdentifierSelector:i.id++;break;case ee.ClassSelector:case ee.AttributeSelector:i.attr++;break;case ee.ElementNameSelector:if(r.matches("*"))break;i.tag++;break;case ee.PseudoSelector:const e=r.getText(),n=r.getChildren();if(this.isPseudoElementIdentifier(e)){if(e.match(/^::slotted/i)&&n.length>0){i.tag++;let e=t(n);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}i.tag++;continue e}if(e.match(/^:where/i))continue e;if(e.match(/^:(?:not|has|is)/i)&&n.length>0){let e=t(n);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}if(e.match(/^:(?:host|host-context)/i)&&n.length>0){i.attr++;let e=t(n);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}if(e.match(/^:(?:nth-child|nth-last-child)/i)&&n.length>0){if(i.attr++,3===n.length&&23===n[1].type){let e=t(n[2].getChildren());i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}const e=new as,r=n[1].getText();e.scanner.setSource(r);const s=e.scanner.scan(),o=e.scanner.scan();if("n"===s.text||"-n"===s.text&&"of"===o.text){const n=[],s=r.slice(o.offset+2).split(",");for(const t of s){const i=e.internalParse(t,e._parseSelector);i&&n.push(i)}let a=t(n);i.id+=a.id,i.attr+=a.attr,i.tag+=a.tag;continue e}continue e}i.attr++;continue e}if(r.getChildren().length>0){const e=n(r);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag}}return i},i=n(e);return`[${Dt("Selector Specificity")}](https://developer.mozilla.org/docs/Web/CSS/Specificity): (${i.id}, ${i.attr}, ${i.tag})`}},js=class{constructor(e){this.prev=null,this.element=e}processSelector(e){let t=null;if(!(this.element instanceof Ps)&&e.getChildren().some((e=>e.hasChildren()&&e.getChild(0).type===ee.SelectorCombinator))){const e=this.element.findRoot();e.parent instanceof Ps&&(t=this.element,this.element=e.parent,this.element.removeChild(e),this.prev=null)}for(const n of e.getChildren()){if(n instanceof ke){if(this.prev instanceof ke){const e=new Bs("\u2026");this.element.addChild(e),this.element=e}else this.prev&&(this.prev.matches("+")||this.prev.matches("~"))&&this.element.parent&&(this.element=this.element.parent);this.prev&&this.prev.matches("~")&&this.element.addChild(new Bs("\u22ee"));const e=Us(n,t),i=e.findRoot();this.element.addChild(i),this.element=e}(n instanceof ke||n.type===ee.SelectorCombinatorParent||n.type===ee.SelectorCombinatorShadowPiercingDescendant||n.type===ee.SelectorCombinatorSibling||n.type===ee.SelectorCombinatorAllSiblings)&&(this.prev=n)}}};function Ks(e){switch(e.type){case ee.MixinDeclaration:case ee.Stylesheet:return!0}return!1}var Hs=class{constructor(e,t){this.clientCapabilities=e,this.cssDataManager=t,this.selectorPrinting=new qs(t)}configure(e){this.defaultSettings=e}doHover(e,t,n,i=this.defaultSettings){function r(t){return qt.create(e.positionAt(t.offset),e.positionAt(t.end))}const s=he(n,e.offsetAt(t));let o,a=null;for(let l=0;l<s.length;l++){const e=s[l];if(e instanceof Qe){const t=/@media[^\{]+/g,n=e.getText().match(t);o={isMedia:!0,text:n?.[0]}}if(e instanceof _e){a={contents:this.selectorPrinting.selectorToMarkedString(e,o),range:r(e)};break}if(e instanceof ke){se(e.getText(),"@")||(a={contents:this.selectorPrinting.simpleSelectorToMarkedString(e),range:r(e)});break}if(e instanceof xe){const t=e.getFullPropertyName(),n=this.cssDataManager.getProperty(t);if(n){const t=Sr(n,this.doesSupportMarkdown(),i);a=t?{contents:t,range:r(e)}:null}}else if(e instanceof Et){const t=e.getText(),n=this.cssDataManager.getAtDirective(t);if(n){const t=Sr(n,this.doesSupportMarkdown(),i);a=t?{contents:t,range:r(e)}:null}}else if(e instanceof pe&&e.type===ee.PseudoSelector){const t=e.getText(),n="::"===t.slice(0,2)?this.cssDataManager.getPseudoElement(t):this.cssDataManager.getPseudoClass(t);if(n){const t=Sr(n,this.doesSupportMarkdown(),i);a=t?{contents:t,range:r(e)}:null}}else;}return a&&(a.contents=this.convertContents(a.contents)),a}convertContents(e){return this.doesSupportMarkdown()||"string"===typeof e?e:"kind"in e?{kind:"plaintext",value:e.value}:Array.isArray(e)?e.map((e=>"string"===typeof e?e:e.value)):e.value}doesSupportMarkdown(){if(!os(this.supportsMarkdown)){if(!os(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&-1!==e.contentFormat.indexOf(Un.Markdown)}return this.supportsMarkdown}},Gs=/^\w+:\/\//,Qs=/^data:/,Js=class{constructor(e,t){this.fileSystemProvider=e,this.resolveModuleReferences=t}configure(e){this.defaultSettings=e}findDefinition(e,t,n){const i=new fs(n),r=ce(n,e.offsetAt(t));if(!r)return null;const s=i.findSymbolFromNode(r);return s?{uri:e.uri,range:Ys(s.node,e)}:null}findReferences(e,t,n){return this.findDocumentHighlights(e,t,n).map((t=>({uri:e.uri,range:t.range})))}getHighlightNode(e,t,n){let i=ce(n,e.offsetAt(t));if(i&&i.type!==ee.Stylesheet&&i.type!==ee.Declarations)return i.type===ee.Identifier&&i.parent&&i.parent.type===ee.ClassSelector&&(i=i.parent),i}findDocumentHighlights(e,t,n){const i=[],r=this.getHighlightNode(e,t,n);if(!r)return i;const s=new fs(n),o=s.findSymbolFromNode(r),a=r.getText();return n.accept((t=>{if(o){if(s.matchesSymbol(t,o))return i.push({kind:Zs(t),range:Ys(t,e)}),!1}else r&&r.type===t.type&&t.matches(a)&&i.push({kind:Zs(t),range:Ys(t,e)});return!0})),i}isRawStringDocumentLinkNode(e){return e.type===ee.Import}findDocumentLinks(e,t,n){const i=this.findUnresolvedLinks(e,t),r=[];for(let s of i){const t=s.link,i=t.target;if(!i||Qs.test(i));else if(Gs.test(i))r.push(t);else{const s=n.resolveReference(i,e.uri);s&&(t.target=s),r.push(t)}}return r}async findDocumentLinks2(e,t,n){const i=this.findUnresolvedLinks(e,t),r=[];for(let s of i){const t=s.link,i=t.target;if(!i||Qs.test(i));else if(Gs.test(i))r.push(t);else{const o=await this.resolveReference(i,e.uri,n,s.isRawLink);void 0!==o&&(t.target=o,r.push(t))}}return r}findUnresolvedLinks(e,t){const n=[],i=t=>{let i=t.getText();const r=Ys(t,e);if(r.start.line===r.end.line&&r.start.character===r.end.character)return;(se(i,"'")||se(i,'"'))&&(i=i.slice(1,-1));const s=!!t.parent&&this.isRawStringDocumentLinkNode(t.parent);n.push({link:{target:i,range:r},isRawLink:s})};return t.accept((e=>{if(e.type===ee.URILiteral){const t=e.getChild(0);return t&&i(t),!1}if(e.parent&&this.isRawStringDocumentLinkNode(e.parent)){const t=e.getText();return(se(t,"'")||se(t,'"'))&&i(e),!1}return!0})),n}findSymbolInformations(e,t){const n=[];return this.collectDocumentSymbols(e,t,((t,i,r)=>{const s=r instanceof pe?Ys(r,e):r,o={name:t||Dt("<undefined>"),kind:i,location:Kt.create(e.uri,s)};n.push(o)})),n}findDocumentSymbols(e,t){const n=[],i=[];return this.collectDocumentSymbols(e,t,((t,r,s,o,a)=>{const l=s instanceof pe?Ys(s,e):s;let c=o instanceof pe?Ys(o,e):o;c&&Xs(l,c)||(c=qt.create(l.start,l.start));const h={name:t||Dt("<undefined>"),kind:r,range:l,selectionRange:c};let d=i.pop();for(;d&&!Xs(d[1],l);)d=i.pop();if(d){const e=d[0];e.children||(e.children=[]),e.children.push(h),i.push(d)}else n.push(h);a&&i.push([h,Ys(a,e)])})),n}collectDocumentSymbols(e,t,n){t.accept((t=>{if(t instanceof we){for(const i of t.getSelectors().getChildren())if(i instanceof _e){const r=qt.create(e.positionAt(i.offset),e.positionAt(t.end));n(i.getText(),di.Class,r,i,t.getDeclarations())}}else if(t instanceof vt)n(t.getName(),di.Variable,t,t.getVariable(),void 0);else if(t instanceof xt)n(t.getName(),di.Method,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof ze)n(t.getName(),di.Function,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof Ve){const e=Dt("@keyframes {0}",t.getName());n(e,di.Class,t,t.getIdentifier(),t.getDeclarations())}else if(t instanceof Be){const e=Dt("@font-face");n(e,di.Class,t,void 0,t.getDeclarations())}else if(t instanceof Qe){const e=t.getChild(0);if(e instanceof tt){const i="@media "+e.getText();n(i,di.Module,t,e,t.getDeclarations())}}return!0}))}findDocumentColors(e,t){const n=[];return t.accept((t=>{const i=function(e,t){const n=$r(e);if(n){return{color:n,range:Ys(e,t)}}return null}(t,e);return i&&n.push(i),!0})),n}getColorPresentations(e,t,n,i){const r=[],s=Math.round(255*n.red),o=Math.round(255*n.green),a=Math.round(255*n.blue);let l;l=1===n.alpha?`rgb(${s}, ${o}, ${a})`:`rgba(${s}, ${o}, ${a}, ${n.alpha})`,r.push({label:l,textEdit:vn.replace(i,l)}),l=1===n.alpha?`#${eo(s)}${eo(o)}${eo(a)}`:`#${eo(s)}${eo(o)}${eo(a)}${eo(Math.round(255*n.alpha))}`,r.push({label:l,textEdit:vn.replace(i,l)});const c=Ur(n);l=1===c.a?`hsl(${c.h}, ${Math.round(100*c.s)}%, ${Math.round(100*c.l)}%)`:`hsla(${c.h}, ${Math.round(100*c.s)}%, ${Math.round(100*c.l)}%, ${c.a})`,r.push({label:l,textEdit:vn.replace(i,l)});const h=function(e){const t=Ur(e),n=Math.min(e.red,e.green,e.blue),i=1-Math.max(e.red,e.green,e.blue);return{h:t.h,w:n,b:i,a:t.a}}(n);return l=1===h.a?`hwb(${h.h} ${Math.round(100*h.w)}% ${Math.round(100*h.b)}%)`:`hwb(${h.h} ${Math.round(100*h.w)}% ${Math.round(100*h.b)}% / ${h.a})`,r.push({label:l,textEdit:vn.replace(i,l)}),r}prepareRename(e,t,n){const i=this.getHighlightNode(e,t,n);if(i)return qt.create(e.positionAt(i.offset),e.positionAt(i.end))}doRename(e,t,n,i){const r=this.findDocumentHighlights(e,t,i).map((e=>vn.replace(e.range,n)));return{changes:{[e.uri]:r}}}async resolveModuleReference(e,t,n){if(se(t,"file://")){const i=function(e){const t=e.indexOf("/");if(-1===t)return"";if("@"===e[0]){const n=e.indexOf("/",t+1);return-1===n?e:e.substring(0,n)}return e.substring(0,t)}(e);if(i&&"."!==i&&".."!==i){const r=n.resolveReference("/",t),s=vs(t),o=await this.resolvePathToModule(i,s,r);if(o){return ys(o,e.substring(i.length+1))}}}}async mapReference(e,t){return e}async resolveReference(e,t,n,i=!1,r=this.defaultSettings){if("~"===e[0]&&"/"!==e[1]&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,t,n),i);const s=await this.mapReference(n.resolveReference(e,t),i);if(this.resolveModuleReferences){if(s&&await this.fileExists(s))return s;const r=await this.mapReference(await this.resolveModuleReference(e,t,n),i);if(r)return r}if(s&&!await this.fileExists(s)){const s=n.resolveReference("/",t);if(r&&s){if(e in r)return this.mapReference(ys(s,r[e]),i);const t=e.indexOf("/"),n=`${e.substring(0,t)}/`;if(n in r){let t=ys(s,r[n].slice(0,-1));return this.mapReference(t=ys(t,e.substring(n.length-1)),i)}}}return s}async resolvePathToModule(e,t,n){const i=ys(t,"node_modules",e,"package.json");return await this.fileExists(i)?vs(i):n&&t.startsWith(n)&&t.length!==n.length?this.resolvePathToModule(e,vs(t),n):void 0}async fileExists(e){if(!this.fileSystemProvider)return!1;try{const t=await this.fileSystemProvider.stat(e);return t.type!==fr.Unknown||-1!==t.size}catch(t){return!1}}};function Ys(e,t){return qt.create(t.positionAt(e.offset),t.positionAt(e.end))}function Xs(e,t){const n=t.start.line,i=t.end.line,r=e.start.line,s=e.end.line;return!(n<r||i<r)&&(!(n>s||i>s)&&(!(n===r&&t.start.character<e.start.character)&&!(i===s&&t.end.character>e.end.character)))}function Zs(e){if(e.type===ee.Selector)return li.Write;if(e instanceof ge&&e.parent&&e.parent instanceof Fe&&e.isCustomProperty)return li.Write;if(e.parent)switch(e.parent.type){case ee.FunctionDeclaration:case ee.MixinDeclaration:case ee.Keyframe:case ee.VariableDeclaration:case ee.FunctionParameter:return li.Write}return li.Read}function eo(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}var to=de.Warning,no=de.Error,io=de.Ignore,ro=class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}},so={AllVendorPrefixes:new ro("compatibleVendorPrefixes",Dt("When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),io),IncludeStandardPropertyWhenUsingVendorPrefix:new ro("vendorPrefix",Dt("When using a vendor-specific prefix also include the standard property"),to),DuplicateDeclarations:new ro("duplicateProperties",Dt("Do not use duplicate style definitions"),io),EmptyRuleSet:new ro("emptyRules",Dt("Do not use empty rulesets"),to),ImportStatemement:new ro("importStatement",Dt("Import statements do not load in parallel"),io),BewareOfBoxModelSize:new ro("boxModel",Dt("Do not use width or height when using padding or border"),io),UniversalSelector:new ro("universalSelector",Dt("The universal selector (*) is known to be slow"),io),ZeroWithUnit:new ro("zeroUnits",Dt("No unit for zero needed"),io),RequiredPropertiesForFontFace:new ro("fontFaceProperties",Dt("@font-face rule must define 'src' and 'font-family' properties"),to),HexColorLength:new ro("hexColorLength",Dt("Hex colors must consist of three, four, six or eight hex numbers"),no),ArgsInColorFunction:new ro("argumentsInColorFunction",Dt("Invalid number of parameters"),no),UnknownProperty:new ro("unknownProperties",Dt("Unknown property."),to),UnknownAtRules:new ro("unknownAtRules",Dt("Unknown at-rule."),to),IEStarHack:new ro("ieHack",Dt("IE hacks are only necessary when supporting IE7 and older"),io),UnknownVendorSpecificProperty:new ro("unknownVendorSpecificProperties",Dt("Unknown vendor specific property."),io),PropertyIgnoredDueToDisplay:new ro("propertyIgnoredDueToDisplay",Dt("Property is ignored due to the display."),to),AvoidImportant:new ro("important",Dt("Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),io),AvoidFloat:new ro("float",Dt("Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),io),AvoidIdSelector:new ro("idSelector",Dt("Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),io)},oo={ValidProperties:new class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}}("validProperties",Dt("A list of properties that are not validated against the `unknownProperties` rule."),[])},ao=class{constructor(e={}){this.conf=e}getRule(e){if(this.conf.hasOwnProperty(e.id)){const t=function(e){switch(e){case"ignore":return de.Ignore;case"warning":return de.Warning;case"error":return de.Error}return null}(this.conf[e.id]);if(t)return t}return e.defaultValue}getSetting(e){return this.conf[e.id]}};var lo=class{constructor(e){this.cssDataManager=e}doCodeActions(e,t,n,i){return this.doCodeActions2(e,t,n,i).map((t=>{const n=t.edit&&t.edit.documentChanges&&t.edit.documentChanges[0];return gn.create(t.title,"_css.applyCodeAction",e.uri,e.version,n&&n.edits)}))}doCodeActions2(e,t,n,i){const r=[];if(n.diagnostics)for(const s of n.diagnostics)this.appendFixesForMarker(e,i,s,r);return r}getFixesForUnknownProperty(e,t,n,i){const r=t.getName(),s=[];this.cssDataManager.getProperties().forEach((e=>{const t=function(e,t,n=4){let i=Math.abs(e.length-t.length);if(i>n)return 0;let r,s,o=[],a=[];for(r=0;r<t.length+1;++r)a.push(0);for(r=0;r<e.length+1;++r)o.push(a);for(r=1;r<e.length+1;++r)for(s=1;s<t.length+1;++s)e[r-1]===t[s-1]?o[r][s]=o[r-1][s-1]+1:o[r][s]=Math.max(o[r-1][s],o[r][s-1]);return o[e.length][t.length]-Math.sqrt(i)}(r,e.name);t>=r.length/2&&s.push({property:e.name,score:t})})),s.sort(((e,t)=>t.score-e.score||e.property.localeCompare(t.property)));let o=3;for(const a of s){const t=a.property,r=Dt("Rename to '{0}'",t),s=vn.replace(n.range,t),l=On.create(e.uri,e.version),c={documentChanges:[xn.create(l,[s])]},h=Si.create(r,c,vi.QuickFix);if(h.diagnostics=[n],i.push(h),--o<=0)return}}appendFixesForMarker(e,t,n,i){if(n.code!==so.UnknownProperty.id)return;const r=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end),o=he(t,r);for(let a=o.length-1;a>=0;a--){const t=o[a];if(t instanceof xe){const o=t.getProperty();if(o&&o.offset===r&&o.end===s)return void this.getFixesForUnknownProperty(e,o,n,i)}}}},co=class{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}};function ho(e,t,n,i){const r=e[t];r.value=n,n&&(ls(r.properties,i)||r.properties.push(i))}function uo(e,t,n,i){"top"===t||"right"===t||"bottom"===t||"left"===t?ho(e,t,n,i):function(e,t,n){ho(e,"top",t,n),ho(e,"right",t,n),ho(e,"bottom",t,n),ho(e,"left",t,n)}(e,n,i)}function po(e,t,n){switch(t.length){case 1:uo(e,void 0,t[0],n);break;case 2:uo(e,"top",t[0],n),uo(e,"bottom",t[0],n),uo(e,"right",t[1],n),uo(e,"left",t[1],n);break;case 3:uo(e,"top",t[0],n),uo(e,"right",t[1],n),uo(e,"left",t[1],n),uo(e,"bottom",t[2],n);break;case 4:uo(e,"top",t[0],n),uo(e,"right",t[1],n),uo(e,"bottom",t[2],n),uo(e,"left",t[3],n)}}function mo(e,t){for(let n of t)if(e.matches(n))return!0;return!1}function fo(e,t=!0){return(!t||!mo(e,["initial","unset"]))&&0!==parseFloat(e.getText())}function go(e,t=!0){return e.map((e=>fo(e,t)))}function bo(e,t=!0){return!mo(e,["none","hidden"])&&(!t||!mo(e,["initial","unset"]))}function vo(e,t=!0){return e.map((e=>bo(e,t)))}function yo(e){const t=e.getChildren();if(1===t.length){const e=t[0];return fo(e)&&bo(e)}for(const n of t){const e=n;if(!fo(e,!1)||!bo(e,!1))return!1}return!0}var wo=class{constructor(){this.data={}}add(e,t,n){let i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(t),n&&i.nodes.push(n)}},_o=class e{static entries(t,n,i,r,s){const o=new e(n,i,r);return t.acceptVisitor(o),o.completeValidations(),o.getEntries(s)}constructor(e,t,n){this.cssDataManager=n,this.warnings=[],this.settings=t,this.documentText=e.getText(),this.keyframes=new wo,this.validProperties={};const i=t.getSetting(oo.ValidProperties);Array.isArray(i)&&i.forEach((e=>{if("string"===typeof e){const t=e.trim().toLowerCase();t.length&&(this.validProperties[t]=!0)}}))}isValidPropertyDeclaration(e){const t=e.fullPropertyName;return this.validProperties[t]}fetch(e,t){const n=[];for(const i of e)i.fullPropertyName===t&&n.push(i);return n}fetchWithValue(e,t,n){const i=[];for(const r of e)if(r.fullPropertyName===t){const e=r.node.getValue();e&&this.findValueInExpression(e,n)&&i.push(r)}return i}findValueInExpression(e,t){let n=!1;return e.accept((e=>(e.type===ee.Identifier&&e.matches(t)&&(n=!0),!n))),n}getEntries(e=de.Warning|de.Error){return this.warnings.filter((t=>0!==(t.getLevel()&e)))}addEntry(e,t,n){const i=new Nt(e,t,this.settings.getRule(t),n);this.warnings.push(i)}getMissingNames(e,t){const n=e.slice(0);for(let r=0;r<t.length;r++){const e=n.indexOf(t[r]);-1!==e&&(n[e]=null)}let i=null;for(let r=0;r<n.length;r++){const e=n[r];e&&(i=null===i?Dt("'{0}'",e):Dt("{0}, '{1}'",i,e))}return i}visitNode(e){switch(e.type){case ee.UnknownAtRule:return this.visitUnknownAtRule(e);case ee.Keyframe:return this.visitKeyframe(e);case ee.FontFace:return this.visitFontFace(e);case ee.Ruleset:return this.visitRuleSet(e);case ee.SimpleSelector:return this.visitSimpleSelector(e);case ee.Function:return this.visitFunction(e);case ee.NumericValue:return this.visitNumericValue(e);case ee.Import:return this.visitImport(e);case ee.HexColorValue:return this.visitHexColorValue(e);case ee.Prio:return this.visitPrio(e);case ee.IdentifierSelector:return this.visitIdentifierSelector(e)}return!0}completeValidations(){this.validateKeyframes()}visitUnknownAtRule(e){const t=e.getChild(0);if(!t)return!1;return!this.cssDataManager.getAtDirective(t.getText())&&(this.addEntry(t,so.UnknownAtRules,`Unknown at rule ${t.getText()}`),!0)}visitKeyframe(e){const t=e.getKeyword();if(!t)return!1;const n=t.getText();return this.keyframes.add(e.getName(),n,"@keyframes"!==n?t:null),!0}validateKeyframes(){const e=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(const t in this.keyframes.data){const n=this.keyframes.data[t].names,i=-1===n.indexOf("@keyframes");if(!i&&1===n.length)continue;const r=this.getMissingNames(e,n);if(r||i)for(const e of this.keyframes.data[t].nodes){if(i){const t=Dt("Always define standard rule '@keyframes' when defining keyframes.");this.addEntry(e,so.IncludeStandardPropertyWhenUsingVendorPrefix,t)}if(r){const t=Dt("Always include all vendor specific rules: Missing: {0}",r);this.addEntry(e,so.AllVendorPrefixes,t)}}}return!0}visitSimpleSelector(e){const t=this.documentText.charAt(e.offset);return 1===e.length&&"*"===t&&this.addEntry(e,so.UniversalSelector),!0}visitIdentifierSelector(e){return this.addEntry(e,so.AvoidIdSelector),!0}visitImport(e){return this.addEntry(e,so.ImportStatemement),!0}visitRuleSet(t){const n=t.getDeclarations();if(!n)return!1;n.hasChildren()||this.addEntry(t.getSelectors(),so.EmptyRuleSet);const i=[];for(const e of n.getChildren())e instanceof xe&&i.push(new co(e));const r=function(e){const t={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};for(const n of e){const e=n.node.value;if("undefined"!==typeof e)switch(n.fullPropertyName){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":t.width=n;break;case"height":t.height=n;break;default:const i=n.fullPropertyName.split("-");switch(i[0]){case"border":switch(i[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(i[2]){case void 0:uo(t,i[1],yo(e),n);break;case"width":uo(t,i[1],fo(e,!1),n);break;case"style":uo(t,i[1],bo(e,!0),n)}break;case"width":po(t,go(e.getChildren(),!1),n);break;case"style":po(t,vo(e.getChildren(),!0),n)}break;case"padding":1===i.length?po(t,go(e.getChildren(),!0),n):uo(t,i[1],fo(e,!0),n)}}}return t}(i);if(r.width){let e=[];if(r.right.value&&(e=cs(e,r.right.properties)),r.left.value&&(e=cs(e,r.left.properties)),0!==e.length){for(const t of e)this.addEntry(t.node,so.BewareOfBoxModelSize);this.addEntry(r.width.node,so.BewareOfBoxModelSize)}}if(r.height){let e=[];if(r.top.value&&(e=cs(e,r.top.properties)),r.bottom.value&&(e=cs(e,r.bottom.properties)),0!==e.length){for(const t of e)this.addEntry(t.node,so.BewareOfBoxModelSize);this.addEntry(r.height.node,so.BewareOfBoxModelSize)}}let s=this.fetchWithValue(i,"display","inline-block");if(s.length>0){const e=this.fetch(i,"float");for(let t=0;t<e.length;t++){const n=e[t].node,i=n.getValue();i&&!i.matches("none")&&this.addEntry(n,so.PropertyIgnoredDueToDisplay,Dt("inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'"))}}if(s=this.fetchWithValue(i,"display","block"),s.length>0){const e=this.fetch(i,"vertical-align");for(let t=0;t<e.length;t++)this.addEntry(e[t].node,so.PropertyIgnoredDueToDisplay,Dt("Property is ignored due to the display. With 'display: block', vertical-align should not be used."))}const o=this.fetch(i,"float");for(let e=0;e<o.length;e++){const t=o[e];this.isValidPropertyDeclaration(t)||this.addEntry(t.node,so.AvoidFloat)}for(let e=0;e<i.length;e++){const t=i[e];if("background"!==t.fullPropertyName&&!this.validProperties[t.fullPropertyName]){const e=t.node.getValue();if(e&&"-"!==this.documentText.charAt(e.offset)){const e=this.fetch(i,t.fullPropertyName);if(e.length>1)for(let n=0;n<e.length;n++){const i=e[n].node.getValue();i&&"-"!==this.documentText.charAt(i.offset)&&e[n]!==t&&this.addEntry(t.node,so.DuplicateDeclarations)}}}}if(!t.getSelectors().matches(":export")){const n=new wo;let r=!1;for(const e of i){const t=e.node;if(this.isCSSDeclaration(t)){let i=e.fullPropertyName;const r=i.charAt(0);if("-"===r){if("-"!==i.charAt(1)){this.cssDataManager.isKnownProperty(i)||this.validProperties[i]||this.addEntry(t.getProperty(),so.UnknownVendorSpecificProperty);const e=t.getNonPrefixedPropertyName();n.add(e,i,t.getProperty())}}else{const e=i;"*"!==r&&"_"!==r||(this.addEntry(t.getProperty(),so.IEStarHack),i=i.substr(1)),this.cssDataManager.isKnownProperty(e)||this.cssDataManager.isKnownProperty(i)||this.validProperties[i]||this.addEntry(t.getProperty(),so.UnknownProperty,Dt("Unknown property: '{0}'",t.getFullPropertyName())),n.add(i,i,null)}}else r=!0}if(!r)for(const i in n.data){const r=n.data[i],s=r.names,o=this.cssDataManager.isStandardProperty(i)&&-1===s.indexOf(i);if(!o&&1===s.length)continue;const a=new Set(o?r.nodes:[]);if(o){const e=this.getContextualVendorSpecificPseudoElements(t);for(const t of r.nodes){const n=t.getName(),r=n.substring(0,n.length-i.length);e.some((e=>e.startsWith(r)))&&a.delete(t)}}const l=[];for(let t=0,n=e.prefixes.length;t<n;t++){const n=e.prefixes[t];this.cssDataManager.isStandardProperty(n+i)&&l.push(n+i)}const c=this.getMissingNames(l,s);if(c||o)for(const e of r.nodes){if(o&&a.has(e)){const t=Dt("Also define the standard property '{0}' for compatibility",i);this.addEntry(e,so.IncludeStandardPropertyWhenUsingVendorPrefix,t)}if(c){const t=Dt("Always include all vendor specific properties: Missing: {0}",c);this.addEntry(e,so.AllVendorPrefixes,t)}}}}return!0}getContextualVendorSpecificPseudoElements(e){function t(e,n){for(const i of n.getChildren()){if(i.type===ee.PseudoSelector){const t=i.getChildren()[0]?.getText();t&&e.add(t)}t(e,i)}}const n=new Set;return function e(n,i){if(i.type===ee.Ruleset)for(const r of i.getSelectors().getChildren())t(n,r);return i.parent?e(n,i.parent):void 0}(n,e),Array.from(n)}visitPrio(e){return this.addEntry(e,so.AvoidImportant),!0}visitNumericValue(e){const t=e.findParent(ee.Function);if(t&&"calc"===t.getName())return!0;const n=e.findParent(ee.Declaration);if(n){if(n.getValue()){const t=e.getValue();if(!t.unit||-1===ts.length.indexOf(t.unit.toLowerCase()))return!0;0===parseFloat(t.value)&&t.unit&&!this.validProperties[n.getFullPropertyName()]&&this.addEntry(e,so.ZeroWithUnit)}}return!0}visitFontFace(e){const t=e.getDeclarations();if(!t)return!1;let n=!1,i=!1,r=!1;for(const s of t.getChildren())if(this.isCSSDeclaration(s)){const e=s.getProperty().getName().toLowerCase();"src"===e&&(n=!0),"font-family"===e&&(i=!0)}else r=!0;return r||n&&i||this.addEntry(e,so.RequiredPropertiesForFontFace),!0}isCSSDeclaration(e){if(e instanceof xe){if(!e.getValue())return!1;const t=e.getProperty();if(!t)return!1;const n=t.getIdentifier();return!(!n||n.containsInterpolation())}return!1}visitHexColorValue(e){const t=e.length;return 9!==t&&7!==t&&5!==t&&4!==t&&this.addEntry(e,so.HexColorLength),!1}visitFunction(e){const t=e.getName().toLowerCase();let n=-1,i=0;switch(t){case"rgb(":case"hsl(":n=3;break;case"rgba(":case"hsla(":n=4}return-1!==n&&(e.getArguments().accept((e=>!(e instanceof ct)||(i+=1,!1))),i!==n&&this.addEntry(e,so.ArgsInColorFunction)),!0}};_o.prefixes=["-ms-","-moz-","-o-","-webkit-"];var ko=class{constructor(e){this.cssDataManager=e}configure(e){this.settings=e}doValidation(e,t,n=this.settings){if(n&&!1===n.validate)return[];const i=[];i.push.apply(i,Rt.entries(t)),i.push.apply(i,_o.entries(t,e,new ao(n&&n.lint),this.cssDataManager));const r=[];for(const s in so)r.push(so[s].id);return i.filter((e=>e.getLevel()!==de.Ignore)).map((function(t){const n=qt.create(e.positionAt(t.getOffset()),e.positionAt(t.getOffset()+t.getLength())),i=e.languageId;return{code:t.getRule().id,source:i,message:t.getMessage(),severity:t.getLevel()===de.Warning?cn.Warning:cn.Error,range:n}}))}},Co="/".charCodeAt(0),So="\n".charCodeAt(0),xo="\r".charCodeAt(0),Eo="\f".charCodeAt(0),Fo="$".charCodeAt(0),Lo="#".charCodeAt(0),Io="{".charCodeAt(0),To="=".charCodeAt(0),No="!".charCodeAt(0),Ro="<".charCodeAt(0),Do=">".charCodeAt(0),Ao=".".charCodeAt(0),Mo=("@".charCodeAt(0),o.CustomToken),Oo=Mo++,zo=Mo++,Po=(Mo++,Mo++),Bo=Mo++,Wo=Mo++,Vo=Mo++,Uo=Mo++,$o=(Mo++,class extends re{scanNext(e){if(this.stream.advanceIfChar(Fo)){const t=["$"];if(this.ident(t))return this.finishToken(e,Oo,t.join(""));this.stream.goBackTo(e)}return this.stream.advanceIfChars([Lo,Io])?this.finishToken(e,zo):this.stream.advanceIfChars([To,To])?this.finishToken(e,Po):this.stream.advanceIfChars([No,To])?this.finishToken(e,Bo):this.stream.advanceIfChar(Ro)?this.stream.advanceIfChar(To)?this.finishToken(e,Vo):this.finishToken(e,o.Delim):this.stream.advanceIfChar(Do)?this.stream.advanceIfChar(To)?this.finishToken(e,Wo):this.finishToken(e,o.Delim):this.stream.advanceIfChars([Ao,Ao,Ao])?this.finishToken(e,Uo):super.scanNext(e)}comment(){return!!super.comment()||!(this.inURL||!this.stream.advanceIfChars([Co,Co]))&&(this.stream.advanceWhileChar((e=>{switch(e){case So:case xo:case Eo:return!1;default:return!0}})),!0)}}),qo=class{constructor(e,t){this.id=e,this.message=t}},jo={FromExpected:new qo("scss-fromexpected",Dt("'from' expected")),ThroughOrToExpected:new qo("scss-throughexpected",Dt("'through' or 'to' expected")),InExpected:new qo("scss-fromexpected",Dt("'in' expected"))},Ko=class extends as{constructor(){super(new $o)}_parseStylesheetStatement(e=!1){return this.peek(o.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(e)||super._parseStylesheetAtStatement(e):this._parseRuleset(!0)||this._parseVariableDeclaration()}_parseImport(){if(!this.peekKeyword("@import"))return null;const e=this.create($e);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,cr.URIOrStringExpected);for(;this.accept(o.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,cr.URIOrStringExpected);return this._completeParseImport(e)}_parseVariableDeclaration(e=[]){if(!this.peek(Oo))return null;const t=this.create(vt);if(!t.setVariable(this._parseVariable()))return null;if(!this.accept(o.Colon))return this.finish(t,cr.ColonExpected);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),!t.setValue(this._parseExpr()))return this.finish(t,cr.VariableValueExpected,[],e);for(;this.peek(o.Exclamation);)if(t.addChild(this._tryParsePrio()));else{if(this.consumeToken(),!this.peekRegExp(o.Ident,/^(default|global)$/))return this.finish(t,cr.UnknownKeyword);this.consumeToken()}return this.peek(o.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseMediaCondition(){return this._parseInterpolation()||super._parseMediaCondition()}_parseMediaFeatureRangeOperator(){return this.accept(Vo)||this.accept(Wo)||super._parseMediaFeatureRangeOperator()}_parseMediaFeatureName(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()}_parseKeyframeSelector(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseWarnAndDebug()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseVariableDeclaration()||this._parseMixinContent()}_parseVariable(){if(!this.peek(Oo))return null;const e=this.create(wt);return this.consumeToken(),e}_parseModuleMember(){const e=this.mark(),t=this.create(Tt);return t.setIdentifier(this._parseIdent([ne.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(e),null):t.addChild(this._parseVariable()||this._parseFunction())?t:this.finish(t,cr.IdentifierOrVariableExpected):null}_parseIdent(e){if(!this.peek(o.Ident)&&!this.peek(zo)&&!this.peekDelim("-"))return null;const t=this.create(ge);t.referenceTypes=e,t.isCustomProperty=this.peekRegExp(o.Ident,/^--/);let n=!1;const i=()=>{const e=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(e),null):this._parseInterpolation()};for(;(this.accept(o.Ident)||t.addChild(i())||n&&this.acceptRegexp(/^[\w-]/))&&(n=!0,!this.hasWhitespace()););return n?this.finish(t):null}_parseTermExpression(){return this._parseModuleMember()||this._parseVariable()||this._parseNestingSelector()||super._parseTermExpression()}_parseInterpolation(){if(this.peek(zo)){const e=this.create(yt);return this.consumeToken(),e.addChild(this._parseExpr())||this._parseNestingSelector()?this.accept(o.CurlyR)?this.finish(e):this.finish(e,cr.RightCurlyExpected):this.accept(o.CurlyR)?this.finish(e):this.finish(e,cr.ExpressionExpected)}return null}_parseOperator(){if(this.peek(Po)||this.peek(Bo)||this.peek(Wo)||this.peek(Vo)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.finish(e)}return super._parseOperator()}_parseUnaryOperator(){if(this.peekIdent("not")){const e=this.create(pe);return this.consumeToken(),this.finish(e)}return super._parseUnaryOperator()}_parseRuleSetDeclaration(){return this.peek(o.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseRuleSetDeclarationAtStatement():this._parseVariableDeclaration()||this._tryParseRuleset(!0)||this._parseDeclaration()}_parseDeclaration(e){const t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;const n=this.create(xe);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(o.Colon))return this.finish(n,cr.ColonExpected,[o.Colon],e||[o.SemiColon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);let i=!1;if(n.setValue(this._parseExpr())&&(i=!0,n.addChild(this._parsePrio())),this.peek(o.CurlyL))n.setNestedProperties(this._parseNestedProperties());else if(!i)return this.finish(n,cr.PropertyValueExpected);return this.peek(o.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseNestedProperties(){const e=this.create(We);return this._parseBody(e,this._parseDeclaration.bind(this))}_parseExtends(){if(this.peekKeyword("@extend")){const e=this.create(_t);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,cr.SelectorExpected);for(;this.accept(o.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(o.Exclamation)&&!this.acceptIdent("optional")?this.finish(e,cr.UnknownKeyword):this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parseSelectorPlaceholder()||super._parseSimpleSelectorBody()}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(ee.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(o.Num)||this.accept(o.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorPlaceholder(){if(this.peekDelim("%")){const e=this.createNode(ee.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e)}if(this.peekKeyword("@at-root")){const e=this.createNode(ee.SelectorPlaceholder);if(this.consumeToken(),this.accept(o.ParenthesisL)){if(!this.acceptIdent("with")&&!this.acceptIdent("without"))return this.finish(e,cr.IdentifierExpected);if(!this.accept(o.Colon))return this.finish(e,cr.ColonExpected);if(!e.addChild(this._parseIdent()))return this.finish(e,cr.IdentifierExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.CurlyR])}return this.finish(e)}return null}_parseElementName(){const e=this.mark(),t=super._parseElementName();return t&&!this.hasWhitespace()&&this.peek(o.ParenthesisL)?(this.restoreAtMark(e),null):t}_tryParsePseudoIdentifier(){return this._parseInterpolation()||super._tryParsePseudoIdentifier()}_parseWarnAndDebug(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;const e=this.createNode(ee.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)}_parseControlStatement(e=this._parseRuleSetDeclaration.bind(this)){return this.peek(o.AtKeyword)?this._parseIfStatement(e)||this._parseForStatement(e)||this._parseEachStatement(e)||this._parseWhileStatement(e):null}_parseIfStatement(e){return this.peekKeyword("@if")?this._internalParseIfStatement(e):null}_internalParseIfStatement(e){const t=this.create(Re);if(this.consumeToken(),!t.setExpression(this._parseExpr(!0)))return this.finish(t,cr.ExpressionExpected);if(this._parseBody(t,e),this.acceptKeyword("@else"))if(this.peekIdent("if"))t.setElseClause(this._internalParseIfStatement(e));else if(this.peek(o.CurlyL)){const n=this.create(Oe);this._parseBody(n,e),t.setElseClause(n)}return this.finish(t)}_parseForStatement(e){if(!this.peekKeyword("@for"))return null;const t=this.create(De);return this.consumeToken(),t.setVariable(this._parseVariable())?this.acceptIdent("from")?t.addChild(this._parseBinaryExpr())?this.acceptIdent("to")||this.acceptIdent("through")?t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,cr.ExpressionExpected,[o.CurlyR]):this.finish(t,jo.ThroughOrToExpected,[o.CurlyR]):this.finish(t,cr.ExpressionExpected,[o.CurlyR]):this.finish(t,jo.FromExpected,[o.CurlyR]):this.finish(t,cr.VariableNameExpected,[o.CurlyR])}_parseEachStatement(e){if(!this.peekKeyword("@each"))return null;const t=this.create(Ae);this.consumeToken();const n=t.getVariables();if(!n.addChild(this._parseVariable()))return this.finish(t,cr.VariableNameExpected,[o.CurlyR]);for(;this.accept(o.Comma);)if(!n.addChild(this._parseVariable()))return this.finish(t,cr.VariableNameExpected,[o.CurlyR]);return this.finish(n),this.acceptIdent("in")?t.addChild(this._parseExpr())?this._parseBody(t,e):this.finish(t,cr.ExpressionExpected,[o.CurlyR]):this.finish(t,jo.InExpected,[o.CurlyR])}_parseWhileStatement(e){if(!this.peekKeyword("@while"))return null;const t=this.create(Me);return this.consumeToken(),t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,cr.ExpressionExpected,[o.CurlyR])}_parseFunctionBodyDeclaration(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))}_parseFunctionDeclaration(){if(!this.peekKeyword("@function"))return null;const e=this.create(ze);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ne.Function])))return this.finish(e,cr.IdentifierExpected,[o.CurlyR]);if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[o.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,cr.VariableNameExpected);return this.accept(o.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,cr.RightParenthesisExpected,[o.CurlyR])}_parseReturnStatement(){if(!this.peekKeyword("@return"))return null;const e=this.createNode(ee.ReturnStatement);return this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,cr.ExpressionExpected)}_parseMixinDeclaration(){if(!this.peekKeyword("@mixin"))return null;const e=this.create(xt);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ne.Mixin])))return this.finish(e,cr.IdentifierExpected,[o.CurlyR]);if(this.accept(o.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,cr.VariableNameExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseParameterDeclaration(){const e=this.create(Te);return e.setIdentifier(this._parseVariable())?(this.accept(Uo),this.accept(o.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,cr.VariableValueExpected,[],[o.Comma,o.ParenthesisR]):this.finish(e)):null}_parseMixinContent(){if(!this.peekKeyword("@content"))return null;const e=this.create(kt);if(this.consumeToken(),this.accept(o.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,cr.ExpressionExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}return this.finish(e)}_parseMixinReference(){if(!this.peekKeyword("@include"))return null;const e=this.create(St);this.consumeToken();const t=this._parseIdent([ne.Mixin]);if(!e.setIdentifier(t))return this.finish(e,cr.IdentifierExpected,[o.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){const n=this._parseIdent([ne.Mixin]);if(!n)return this.finish(e,cr.IdentifierExpected,[o.CurlyR]);const i=this.create(Tt);t.referenceTypes=[ne.Module],i.setIdentifier(t),e.setIdentifier(n),e.addChild(i)}if(this.accept(o.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,cr.ExpressionExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(o.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)}_parseMixinContentDeclaration(){const e=this.create(Ct);if(this.acceptIdent("using")){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[o.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,cr.VariableNameExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.CurlyL])}return this.peek(o.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)}_parseMixinReferenceBodyStatement(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_parseFunctionArgument(){const e=this.create(Ne),t=this.mark(),n=this._parseVariable();if(n)if(this.accept(o.Colon))e.setIdentifier(n);else{if(this.accept(Uo))return e.setValue(n),this.finish(e);this.restoreAtMark(t)}return e.setValue(this._parseExpr(!0))?(this.accept(Uo),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null}_parseURLArgument(){const e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(o.ParenthesisR)){this.restoreAtMark(e);const t=this.create(pe);return t.addChild(this._parseBinaryExpr()),this.finish(t)}return t}_parseOperation(){if(!this.peek(o.ParenthesisL))return null;const e=this.create(pe);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(o.Comma);return this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected)}_parseListElement(){const e=this.create(Ft),t=this._parseBinaryExpr();if(!t)return null;if(this.accept(o.Colon)){if(e.setKey(t),!e.setValue(this._parseBinaryExpr()))return this.finish(e,cr.ExpressionExpected)}else e.setValue(t);return this.finish(e)}_parseUse(){if(!this.peekKeyword("@use"))return null;const e=this.create(qe);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,cr.StringLiteralExpected);if(!this.peek(o.SemiColon)&&!this.peek(o.EOF)){if(!this.peekRegExp(o.Ident,/as|with/))return this.finish(e,cr.UnknownKeyword);if(this.acceptIdent("as")&&!e.setIdentifier(this._parseIdent([ne.Module]))&&!this.acceptDelim("*"))return this.finish(e,cr.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[o.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,cr.VariableNameExpected);for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,cr.VariableNameExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}}return this.accept(o.SemiColon)||this.accept(o.EOF)?this.finish(e):this.finish(e,cr.SemiColonExpected)}_parseModuleConfigDeclaration(){const e=this.create(je);return e.setIdentifier(this._parseVariable())?this.accept(o.Colon)&&e.setValue(this._parseExpr(!0))?!this.accept(o.Exclamation)||!this.hasWhitespace()&&this.acceptIdent("default")?this.finish(e):this.finish(e,cr.UnknownKeyword):this.finish(e,cr.VariableValueExpected,[],[o.Comma,o.ParenthesisR]):null}_parseForward(){if(!this.peekKeyword("@forward"))return null;const e=this.create(Ke);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,cr.StringLiteralExpected);if(this.acceptIdent("as")){const t=this._parseIdent([ne.Forward]);if(!e.setIdentifier(t))return this.finish(e,cr.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(e,cr.WildcardExpected)}if(this.acceptIdent("with")){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected,[o.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,cr.VariableNameExpected);for(;this.accept(o.Comma)&&!this.peek(o.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,cr.VariableNameExpected);if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected)}else if((this.peekIdent("hide")||this.peekIdent("show"))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,cr.IdentifierOrVariableExpected);return this.accept(o.SemiColon)||this.accept(o.EOF)?this.finish(e):this.finish(e,cr.SemiColonExpected)}_parseForwardVisibility(){const e=this.create(He);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(o.Comma);return e.getChildren().length>1?e:null}_parseSupportsCondition(){return this._parseInterpolation()||super._parseSupportsCondition()}},Ho=Dt("Sass documentation"),Go=class e extends Ts{constructor(t,n){super("$",t,n),Qo(e.scssModuleLoaders),Qo(e.scssModuleBuiltIns)}isImportPathParent(e){return e===ee.Forward||e===ee.Use||super.isImportPathParent(e)}getCompletionForImportPath(t,n){const i=t.getParent().type;if(i===ee.Forward||i===ee.Use)for(let r of e.scssModuleBuiltIns){const e={label:r.label,documentation:r.documentation,textEdit:vn.replace(this.getCompletionRange(t),`'${r.label}'`),kind:jn.Module};n.items.push(e)}return super.getCompletionForImportPath(t,n)}createReplaceFunction(){let t=1;return(n,i)=>"\\"+i+": ${"+t+++":"+(e.variableDefaults[i]||"")+"}"}createFunctionProposals(e,t,n,i){for(const r of e){const e=r.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),s={label:r.func.substr(0,r.func.indexOf("(")),detail:r.func,documentation:r.desc,textEdit:vn.replace(this.getCompletionRange(t),e),insertTextFormat:Hn.Snippet,kind:jn.Function};n&&(s.sortText="z"),i.items.push(s)}return i}getCompletionsForSelector(t,n,i){return this.createFunctionProposals(e.selectorFuncs,null,!0,i),super.getCompletionsForSelector(t,n,i)}getTermProposals(t,n,i){let r=e.builtInFuncs;return t&&(r=r.filter((e=>!e.type||!t.restrictions||-1!==t.restrictions.indexOf(e.type)))),this.createFunctionProposals(r,n,!0,i),super.getTermProposals(t,n,i)}getColorProposals(t,n,i){return this.createFunctionProposals(e.colorProposals,n,!1,i),super.getColorProposals(t,n,i)}getCompletionsForDeclarationProperty(e,t){return this.getCompletionForAtDirectives(t),this.getCompletionsForSelector(null,!0,t),super.getCompletionsForDeclarationProperty(e,t)}getCompletionsForExtendsReference(e,t,n){const i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ne.Rule);for(const r of i){const e={label:r.name,textEdit:vn.replace(this.getCompletionRange(t),r.name),kind:jn.Function};n.items.push(e)}return n}getCompletionForAtDirectives(t){return t.items.push(...e.scssAtDirectives),t}getCompletionForTopLevel(e){return this.getCompletionForAtDirectives(e),this.getCompletionForModuleLoaders(e),super.getCompletionForTopLevel(e),e}getCompletionForModuleLoaders(t){return t.items.push(...e.scssModuleLoaders),t}};function Qo(e){e.forEach((e=>{if(e.documentation&&e.references&&e.references.length>0){const t="string"===typeof e.documentation?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};t.value+="\n\n",t.value+=e.references.map((e=>`[${e.name}](${e.url})`)).join(" | "),e.documentation=t}}))}Go.variableDefaults={$red:"1",$green:"2",$blue:"3",$alpha:"1.0",$color:"#000000",$weight:"0.5",$hue:"0",$saturation:"0%",$lightness:"0%",$degrees:"0",$amount:"0",$string:'""',$substring:'"s"',$number:"0",$limit:"1"},Go.colorProposals=[{func:"red($color)",desc:Dt("Gets the red component of a color.")},{func:"green($color)",desc:Dt("Gets the green component of a color.")},{func:"blue($color)",desc:Dt("Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:Dt("Mixes two colors together.")},{func:"hue($color)",desc:Dt("Gets the hue component of a color.")},{func:"saturation($color)",desc:Dt("Gets the saturation component of a color.")},{func:"lightness($color)",desc:Dt("Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:Dt("Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:Dt("Makes a color lighter.")},{func:"darken($color, $amount)",desc:Dt("Makes a color darker.")},{func:"saturate($color, $amount)",desc:Dt("Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:Dt("Makes a color less saturated.")},{func:"grayscale($color)",desc:Dt("Converts a color to grayscale.")},{func:"complement($color)",desc:Dt("Returns the complement of a color.")},{func:"invert($color)",desc:Dt("Returns the inverse of a color.")},{func:"alpha($color)",desc:Dt("Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:Dt("Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:Dt("Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:Dt("Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:Dt("Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:Dt("Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:Dt("Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:Dt("Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:Dt("Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:Dt("Converts a color into the format understood by IE filters.")}],Go.selectorFuncs=[{func:"selector-nest($selectors\u2026)",desc:Dt("Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors\u2026)",desc:Dt("Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:Dt("Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:Dt("Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:Dt("Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:Dt("Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:Dt("Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:Dt("Parses a selector into the format returned by &.")}],Go.builtInFuncs=[{func:"unquote($string)",desc:Dt("Removes quotes from a string.")},{func:"quote($string)",desc:Dt("Adds quotes to a string.")},{func:"str-length($string)",desc:Dt("Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:Dt("Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:Dt("Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:Dt("Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:Dt("Converts a string to upper case.")},{func:"to-lower-case($string)",desc:Dt("Converts a string to lower case.")},{func:"percentage($number)",desc:Dt("Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:Dt("Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:Dt("Rounds a number up to the next whole number.")},{func:"floor($number)",desc:Dt("Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:Dt("Returns the absolute value of a number.")},{func:"min($numbers)",desc:Dt("Finds the minimum of several numbers.")},{func:"max($numbers)",desc:Dt("Finds the maximum of several numbers.")},{func:"random([$limit])",desc:Dt("Returns a random number.")},{func:"length($list)",desc:Dt("Returns the length of a list.")},{func:"nth($list, $n)",desc:Dt("Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:Dt("Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:Dt("Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:Dt("Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:Dt("Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:Dt("Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:Dt("Returns the separator of a list.")},{func:"map-get($map, $key)",desc:Dt("Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:Dt("Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:Dt("Returns a new map with keys removed.")},{func:"map-keys($map)",desc:Dt("Returns a list of all keys in a map.")},{func:"map-values($map)",desc:Dt("Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:Dt("Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:Dt("Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:Dt("Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:Dt("Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:Dt("Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:Dt("Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:Dt("Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:Dt("Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:Dt("Returns the type of a value.")},{func:"unit($number)",desc:Dt("Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:Dt("Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:Dt("Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args\u2026)",desc:Dt("Dynamically calls a Sass function.")}],Go.scssAtDirectives=[{label:"@extend",documentation:Dt("Inherits the styles of another selector."),kind:jn.Keyword},{label:"@at-root",documentation:Dt("Causes one or more rules to be emitted at the root of the document."),kind:jn.Keyword},{label:"@debug",documentation:Dt("Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:jn.Keyword},{label:"@warn",documentation:Dt("Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),kind:jn.Keyword},{label:"@error",documentation:Dt("Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:jn.Keyword},{label:"@if",documentation:Dt("Includes the body if the expression does not evaluate to `false` or `null`."),insertText:"@if ${1:expr} {\n\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@for",documentation:Dt("For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."),insertText:"@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@each",documentation:Dt("Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."),insertText:"@each \\$${1:var} in ${2:list} {\n\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@while",documentation:Dt("While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:"@while ${1:condition} {\n\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@mixin",documentation:Dt("Defines styles that can be re-used throughout the stylesheet with `@include`."),insertText:"@mixin ${1:name} {\n\t$0\n}",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@include",documentation:Dt("Includes the styles defined by another mixin into the current rule."),kind:jn.Keyword},{label:"@function",documentation:Dt("Defines complex operations that can be re-used throughout stylesheets."),kind:jn.Keyword}],Go.scssModuleLoaders=[{label:"@use",documentation:Dt("Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:Ho,url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:Hn.Snippet,kind:jn.Keyword},{label:"@forward",documentation:Dt("Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:Ho,url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:Hn.Snippet,kind:jn.Keyword}],Go.scssModuleBuiltIns=[{label:"sass:math",documentation:Dt("Provides functions that operate on numbers."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:Dt("Makes it easy to combine, search, or split apart strings."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:Dt("Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:Dt("Lets you access and modify values in lists."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:Dt("Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:Dt("Provides access to Sass\u2019s powerful selector engine."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:Dt("Exposes the details of Sass\u2019s inner workings."),references:[{name:Ho,url:"https://sass-lang.com/documentation/modules/meta"}]}];var Jo,Yo="/".charCodeAt(0),Xo="\n".charCodeAt(0),Zo="\r".charCodeAt(0),ea="\f".charCodeAt(0),ta="`".charCodeAt(0),na=".".charCodeAt(0),ia=o.CustomToken,ra=ia++,sa=class extends re{scanNext(e){const t=this.escapedJavaScript();return null!==t?this.finishToken(e,t):this.stream.advanceIfChars([na,na,na])?this.finishToken(e,ra):super.scanNext(e)}comment(){return!!super.comment()||!(this.inURL||!this.stream.advanceIfChars([Yo,Yo]))&&(this.stream.advanceWhileChar((e=>{switch(e){case Xo:case Zo:case ea:return!1;default:return!0}})),!0)}escapedJavaScript(){return this.stream.peekChar()===ta?(this.stream.advance(1),this.stream.advanceWhileChar((e=>e!==ta)),this.stream.advanceIfChar(ta)?o.EscapedJavaScript:o.BadEscapedJavaScript):null}},oa=class extends as{constructor(){super(new sa)}_parseStylesheetStatement(e=!1){return this.peek(o.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||super._parseStylesheetAtStatement(e):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)}_parseImport(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;const e=this.create($e);if(this.consumeToken(),this.accept(o.ParenthesisL)){if(!this.accept(o.Ident))return this.finish(e,cr.IdentifierExpected,[o.SemiColon]);do{if(!this.accept(o.Comma))break}while(this.accept(o.Ident));if(!this.accept(o.ParenthesisR))return this.finish(e,cr.RightParenthesisExpected,[o.SemiColon])}return e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?(this.peek(o.SemiColon)||this.peek(o.EOF)||e.setMedialist(this._parseMediaQueryList()),this._completeParseImport(e)):this.finish(e,cr.URIOrStringExpected,[o.SemiColon])}_parsePlugin(){if(!this.peekKeyword("@plugin"))return null;const e=this.createNode(ee.Plugin);return this.consumeToken(),e.addChild(this._parseStringLiteral())?this.accept(o.SemiColon)?this.finish(e):this.finish(e,cr.SemiColonExpected):this.finish(e,cr.StringLiteralExpected)}_parseMediaQuery(){const e=super._parseMediaQuery();if(!e){const e=this.create(nt);return e.addChild(this._parseVariable())?this.finish(e):null}return e}_parseMediaDeclaration(e=!1){return this._tryParseRuleset(e)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(e)}_parseMediaFeatureName(){return this._parseIdent()||this._parseVariable()}_parseVariableDeclaration(e=[]){const t=this.create(vt),n=this.mark();if(!t.setVariable(this._parseVariable(!0)))return null;if(!this.accept(o.Colon))return this.restoreAtMark(n),null;if(this.prevToken&&(t.colonPosition=this.prevToken.offset),t.setValue(this._parseDetachedRuleSet()))t.needsSemicolon=!1;else if(!t.setValue(this._parseExpr()))return this.finish(t,cr.VariableValueExpected,[],e);return t.addChild(this._parsePrio()),this.peek(o.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseDetachedRuleSet(){let e=this.mark();if(this.peekDelim("#")||this.peekDelim(".")){if(this.consumeToken(),this.hasWhitespace()||!this.accept(o.ParenthesisL))return this.restoreAtMark(e),null;{let t=this.create(xt);if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(o.Comma)||this.accept(o.SemiColon))&&!this.peek(o.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,cr.IdentifierExpected,[],[o.ParenthesisR]);if(!this.accept(o.ParenthesisR))return this.restoreAtMark(e),null}}if(!this.peek(o.CurlyL))return null;const t=this.create(ye);return this._parseBody(t,this._parseDetachedRuleSetBody.bind(this)),this.finish(t)}_parseDetachedRuleSetBody(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_addLookupChildren(e){if(!e.addChild(this._parseLookupValue()))return!1;let t=!1;for(;this.peek(o.BracketL)&&(t=!0),e.addChild(this._parseLookupValue());)t=!1;return!t}_parseLookupValue(){const e=this.create(pe),t=this.mark();return this.accept(o.BracketL)&&((e.addChild(this._parseVariable(!1,!0))||e.addChild(this._parsePropertyIdentifier()))&&this.accept(o.BracketR)||this.accept(o.BracketR))?e:(this.restoreAtMark(t),null)}_parseVariable(e=!1,t=!1){const n=!e&&this.peekDelim("$");if(!this.peekDelim("@")&&!n&&!this.peek(o.AtKeyword))return null;const i=this.create(wt),r=this.mark();for(;this.acceptDelim("@")||!e&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(r),null;return(this.accept(o.AtKeyword)||this.accept(o.Ident))&&(t||!this.peek(o.BracketL)||this._addLookupChildren(i))?i:(this.restoreAtMark(r),null)}_parseTermExpression(){return this._parseVariable()||this._parseEscaped()||super._parseTermExpression()||this._tryParseMixinReference(!1)}_parseEscaped(){if(this.peek(o.EscapedJavaScript)||this.peek(o.BadEscapedJavaScript)){const e=this.createNode(ee.EscapedValue);return this.consumeToken(),this.finish(e)}if(this.peekDelim("~")){const e=this.createNode(ee.EscapedValue);return this.consumeToken(),this.accept(o.String)||this.accept(o.EscapedJavaScript)?this.finish(e):this.finish(e,cr.TermExpected)}return null}_parseOperator(){const e=this._parseGuardOperator();return e||super._parseOperator()}_parseGuardOperator(){if(this.peekDelim(">")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.acceptDelim("="),e}if(this.peekDelim("=")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.acceptDelim("<"),e}if(this.peekDelim("<")){const e=this.createNode(ee.Operator);return this.consumeToken(),this.acceptDelim("="),e}return null}_parseRuleSetDeclaration(){return this.peek(o.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||this._parseRuleSetDeclarationAtStatement():this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||this._parseDeclaration()}_parseKeyframeIdent(){return this._parseIdent([ne.Keyframe])||this._parseVariable()}_parseKeyframeSelector(){return this._parseDetachedRuleSetMixin()||super._parseKeyframeSelector()}_parseSelector(e){const t=this.create(_e);let n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());){n=!0;const e=this.mark();if(t.addChild(this._parseGuard())&&this.peek(o.CurlyL))break;this.restoreAtMark(e),t.addChild(this._parseCombinator())}return n?this.finish(t):null}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(ee.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(o.Num)||this.accept(o.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorIdent(){if(!this.peekInterpolatedIdent())return null;const e=this.createNode(ee.SelectorInterpolation);return this._acceptInterpolatedIdent(e)?this.finish(e):null}_parsePropertyIdentifier(e=!1){const t=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,t))return null;const n=this.mark(),i=this.create(ge);i.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");let r=!1;return r=e?i.isCustomProperty?i.addChild(this._parseIdent()):i.addChild(this._parseRegexp(t)):i.isCustomProperty?this._acceptInterpolatedIdent(i):this._acceptInterpolatedIdent(i,t),r?(e||this.hasWhitespace()||(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(i)):(this.restoreAtMark(n),null)}peekInterpolatedIdent(){return this.peek(o.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")}_acceptInterpolatedIdent(e,t){let n=!1;const i=()=>{const e=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(e),null):this._parseInterpolation()},r=t?()=>this.acceptRegexp(t):()=>this.accept(o.Ident);for(;(r()||e.addChild(this._parseInterpolation()||this.try(i)))&&(n=!0,!this.hasWhitespace()););return n}_parseInterpolation(){const e=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){const t=this.createNode(ee.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(o.CurlyL)?(this.restoreAtMark(e),null):t.addChild(this._parseIdent())?this.accept(o.CurlyR)?this.finish(t):this.finish(t,cr.RightCurlyExpected):this.finish(t,cr.IdentifierExpected)}return null}_tryParseMixinDeclaration(){const e=this.mark(),t=this.create(xt);if(!t.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(o.ParenthesisL))return this.restoreAtMark(e),null;if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(o.Comma)||this.accept(o.SemiColon))&&!this.peek(o.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,cr.IdentifierExpected,[],[o.ParenthesisR]);return this.accept(o.ParenthesisR)?(t.setGuard(this._parseGuard()),this.peek(o.CurlyL)?this._parseBody(t,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(e),null)):(this.restoreAtMark(e),null)}_parseMixInBodyDeclaration(){return this._parseFontFace()||this._parseRuleSetDeclaration()}_parseMixinDeclarationIdentifier(){let e;if(this.peekDelim("#")||this.peekDelim(".")){if(e=this.create(ge),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null}else{if(!this.peek(o.Hash))return null;e=this.create(ge),this.consumeToken()}return e.referenceTypes=[ne.Mixin],this.finish(e)}_parsePseudo(){if(!this.peek(o.Colon))return null;const e=this.mark(),t=this.create(_t);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),super._parsePseudo())}_parseExtend(){if(!this.peekDelim("&"))return null;const e=this.mark(),t=this.create(_t);return this.consumeToken(),!this.hasWhitespace()&&this.accept(o.Colon)&&this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),null)}_completeExtends(e){if(!this.accept(o.ParenthesisL))return this.finish(e,cr.LeftParenthesisExpected);const t=e.getSelectors();if(!t.addChild(this._parseSelector(!0)))return this.finish(e,cr.SelectorExpected);for(;this.accept(o.Comma);)if(!t.addChild(this._parseSelector(!0)))return this.finish(e,cr.SelectorExpected);return this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected)}_parseDetachedRuleSetMixin(){if(!this.peek(o.AtKeyword))return null;const e=this.mark(),t=this.create(St);return!t.addChild(this._parseVariable(!0))||!this.hasWhitespace()&&this.accept(o.ParenthesisL)?this.accept(o.ParenthesisR)?this.finish(t):this.finish(t,cr.RightParenthesisExpected):(this.restoreAtMark(e),null)}_tryParseMixinReference(e=!0){const t=this.mark(),n=this.create(St);let i=this._parseMixinDeclarationIdentifier();for(;i;){this.acceptDelim(">");const e=this._parseMixinDeclarationIdentifier();if(!e)break;n.getNamespaces().addChild(i),i=e}if(!n.setIdentifier(i))return this.restoreAtMark(t),null;let r=!1;if(this.accept(o.ParenthesisL)){if(r=!0,n.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(o.Comma)||this.accept(o.SemiColon))&&!this.peek(o.ParenthesisR);)if(!n.getArguments().addChild(this._parseMixinArgument()))return this.finish(n,cr.ExpressionExpected);if(!this.accept(o.ParenthesisR))return this.finish(n,cr.RightParenthesisExpected);i.referenceTypes=[ne.Mixin]}else i.referenceTypes=[ne.Mixin,ne.Rule];return this.peek(o.BracketL)?e||this._addLookupChildren(n):n.addChild(this._parsePrio()),r||this.peek(o.SemiColon)||this.peek(o.CurlyR)||this.peek(o.EOF)?this.finish(n):(this.restoreAtMark(t),null)}_parseMixinArgument(){const e=this.create(Ne),t=this.mark(),n=this._parseVariable();return n&&(this.accept(o.Colon)?e.setIdentifier(n):this.restoreAtMark(t)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(e):(this.restoreAtMark(t),null)}_parseMixinParameter(){const e=this.create(Te);if(this.peekKeyword("@rest")){const t=this.create(pe);return this.consumeToken(),this.accept(ra)?(e.setIdentifier(this.finish(t)),this.finish(e)):this.finish(e,cr.DotExpected,[],[o.Comma,o.ParenthesisR])}if(this.peek(ra)){const t=this.create(pe);return this.consumeToken(),e.setIdentifier(this.finish(t)),this.finish(e)}let t=!1;return e.setIdentifier(this._parseVariable())&&(this.accept(o.Colon),t=!0),e.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))||t?this.finish(e):null}_parseGuard(){if(!this.peekIdent("when"))return null;const e=this.create(Lt);if(this.consumeToken(),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,cr.ConditionExpected);for(;this.acceptIdent("and")||this.accept(o.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,cr.ConditionExpected);return this.finish(e)}_parseGuardCondition(){const e=this.create(It);return e.isNegated=this.acceptIdent("not"),this.accept(o.ParenthesisL)?(e.addChild(this._parseExpr()),this.accept(o.ParenthesisR)?this.finish(e):this.finish(e,cr.RightParenthesisExpected)):e.isNegated?this.finish(e,cr.LeftParenthesisExpected):null}_parseFunction(){const e=this.mark(),t=this.create(Ie);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(o.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(o.Comma)||this.accept(o.SemiColon))&&!this.peek(o.ParenthesisR);)if(!t.getArguments().addChild(this._parseMixinArgument()))return this.finish(t,cr.ExpressionExpected);return this.accept(o.ParenthesisR)?this.finish(t):this.finish(t,cr.RightParenthesisExpected)}_parseFunctionIdentifier(){if(this.peekDelim("%")){const e=this.create(ge);return e.referenceTypes=[ne.Function],this.consumeToken(),this.finish(e)}return super._parseFunctionIdentifier()}_parseURLArgument(){const e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(o.ParenthesisR)){this.restoreAtMark(e);const t=this.create(pe);return t.addChild(this._parseBinaryExpr()),this.finish(t)}return t}},aa=class e extends Ts{constructor(e,t){super("@",e,t)}createFunctionProposals(e,t,n,i){for(const r of e){const e={label:r.name,detail:r.example,documentation:r.description,textEdit:vn.replace(this.getCompletionRange(t),r.name+"($0)"),insertTextFormat:Hn.Snippet,kind:jn.Function};n&&(e.sortText="z"),i.items.push(e)}return i}getTermProposals(t,n,i){let r=e.builtInProposals;return t&&(r=r.filter((e=>!e.type||!t.restrictions||-1!==t.restrictions.indexOf(e.type)))),this.createFunctionProposals(r,n,!0,i),super.getTermProposals(t,n,i)}getColorProposals(t,n,i){return this.createFunctionProposals(e.colorProposals,n,!1,i),super.getColorProposals(t,n,i)}getCompletionsForDeclarationProperty(e,t){return this.getCompletionsForSelector(null,!0,t),super.getCompletionsForDeclarationProperty(e,t)}};function la(e,t){const n=function(e){function t(t){return e.positionAt(t.offset).line}function n(t){return e.positionAt(t.offset+t.len).line}function i(){switch(e.languageId){case"scss":return new $o;case"less":return new sa;default:return new re}}function r(e,i){const r=t(e),s=n(e);return r!==s?{startLine:r,endLine:s,kind:i}:null}const s=[],a=[],l=i();l.ignoreComment=!1,l.setSource(e.getText());let c=l.scan(),h=null;for(;c.type!==o.EOF;){switch(c.type){case o.CurlyL:case zo:a.push({line:t(c),type:"brace",isStart:!0});break;case o.CurlyR:if(0!==a.length){const e=ca(a,"brace");if(!e)break;let t=n(c);"brace"===e.type&&(h&&n(h)!==t&&t--,e.line!==t&&s.push({startLine:e.line,endLine:t,kind:void 0}))}break;case o.Comment:{const i=e=>"#region"===e?{line:t(c),type:"comment",isStart:!0}:{line:n(c),type:"comment",isStart:!1},o=(t=>{const n=t.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(n)return i(n[1]);if("scss"===e.languageId||"less"===e.languageId){const e=t.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(e)return i(e[1])}return null})(c);if(o)if(o.isStart)a.push(o);else{const e=ca(a,"comment");if(!e)break;"comment"===e.type&&e.line!==o.line&&s.push({startLine:e.line,endLine:o.line,kind:"region"})}else{const e=r(c,"comment");e&&s.push(e)}break}}h=c,c=l.scan()}return s}(e);return function(e,t){const n=t&&t.rangeLimit||Number.MAX_VALUE,i=e.sort(((e,t)=>{let n=e.startLine-t.startLine;return 0===n&&(n=e.endLine-t.endLine),n})),r=[];let s=-1;return i.forEach((e=>{e.startLine<s&&s<e.endLine||(r.push(e),s=e.endLine)})),r.length<n?r:r.slice(0,n)}(n,t)}function ca(e,t){if(0===e.length)return null;for(let n=e.length-1;n>=0;n--)if(e[n].type===t&&e[n].isStart)return e.splice(n,1)[0];return null}aa.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:Dt("returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:Dt('"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:Dt("returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:Dt("returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:Dt("generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:Dt("bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:Dt("URL encodes a string")},{name:"e",example:"e(@string);",description:Dt("escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:Dt("string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:Dt("remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:Dt("parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:Dt("converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:Dt("inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:Dt("absolute value of a number"),example:"abs(number);"},{name:"acos",description:Dt("arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:Dt("arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:Dt("rounds up to an integer")},{name:"cos",description:Dt("cosine function"),example:"cos(number);"},{name:"floor",description:Dt("rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:Dt("converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:Dt("rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:Dt("calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:Dt("sine function"),example:"sin(number);"},{name:"tan",description:Dt("tangent function"),example:"tan(number);"},{name:"atan",description:Dt("arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:Dt("returns pi"),example:"pi();"},{name:"pow",description:Dt("first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:Dt("first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:Dt("returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:Dt("returns the lowest of one or more values"),example:"max(@x, @y);"}],aa.colorProposals=[{name:"argb",example:"argb(@color);",description:Dt("creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:Dt("creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:Dt("creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:Dt("creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:Dt("creates a color")},{name:"hue",example:"hue(@color);",description:Dt("returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:Dt("returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:Dt("returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:Dt("returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:Dt("returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:Dt("returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:Dt("returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:Dt("returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:Dt("returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:Dt("returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:Dt("returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:Dt("return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:Dt("return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:Dt("return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:Dt("return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:Dt("return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:Dt("return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:Dt("return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:Dt("return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:Dt("return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:Dt("returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:Dt("return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],function(){var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},,,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"===typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},,function(e,t,n){var i=n(16).Beautifier,r=n(17).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(17).Options,r=n(2).Output,s=n(8).InputScanner,o=new(0,n(13).Directives)(/\/\*/,/\*\//),a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=/\s/,h=/(?:\s|\n)+/g,d=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,u=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function p(e,t){this._source_text=e||"",this._options=new i(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}p.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},p.prototype.eatWhitespace=function(e){for(var t=c.test(this._input.peek()),n=0;c.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t},p.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if("{"===n)return!0;if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)return!1;t++,n=this._input.peek(t)}return!1},p.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},p.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},p.prototype.indent=function(){this._indentLevel++},p.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&a.test(e||"")&&(t=e.match(a)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new s(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,p,m=0,f=!1,g=!1,b=!1,v=!1,y=!1,w=this._ch,_=!1;i=""!==this._input.read(h),p=w,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var k=this._input.read(d),C=o.get_directives(k);C&&"start"===C.ignore&&(k+=o.readIgnored(this._input)),this.print_string(k),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(u)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(i),this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s+$/,""),this.print_string(S),this._output.space_before_token=!0),0===m&&-1!==S.indexOf(":")&&(g=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var x=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);x.match(/[ :]$/)&&(x=this.eatString(": ").replace(/\s+$/,""),this.print_string(x),this._output.space_before_token=!0),0===m&&-1!==x.indexOf(":")?(g=!0,this.indent()):x in this.NESTED_AT_RULE?(this._nestedLevel+=1,x in this.CONDITIONAL_GROUP_RULE&&(b=!0)):0!==m||g||(v=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)g&&(g=!1,this.outdent()),v=!1,b?(b=!1,f=this._indentLevel>=this._nestedLevel):f=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&f&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===p?this._output.space_before_token=!1:","!==p&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===p&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),f=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var E=0;E<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;E++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[E])){_=!0;break}!f&&!b||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||v||0!==m?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var F='"'===p||"'"===p;this.preserveSingleSpace(F||i),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)_=!1,0===m?(g&&(this.outdent(),g=!1),v=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),m++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),m&&(m--,this.outdent()));else{var L=!1;this._input.lookBack("with")&&(L=!0),this.preserveSingleSpace(i||L),this.print_string(this._ch),g&&"$"===p&&this._options.selector_separator_newline?(this._output.add_new_line(),y=!0):(this.eatWhitespace(),m++,this.indent())}else if(")"===this._ch)m&&(m--,this.outdent()),y&&";"===this._input.peek()&&this._options.selector_separator_newline&&(y=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||g&&!y||0!==m||v?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==m)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(i),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var I='"'===p||"'"===p;this.preserveSingleSpace(I||i),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&_&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=""));return this._output.get_code(t)},e.exports.Beautifier=p},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r<n.length;r++)"expand"!==n[r]?this.brace_style="collapse":this.brace_style=n[r]}r.prototype=new i,e.exports.Options=r}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}(15);Jo=n}();var ha=Jo;function da(e,t,n){let i=e.getText(),r=!0,s=0,o=!1;const a=n.tabSize||4;if(t){let a=e.offsetAt(t.start),l=a;for(;l>0&&ba(i,l-1);)l--;0===l||ga(i,l-1)?a=l:l<a&&(a=l+1);let c=e.offsetAt(t.end),h=c;for(;h<i.length&&ba(i,h);)h++;if((h===i.length||ga(i,h))&&(c=h),t=qt.create(e.positionAt(a),e.positionAt(c)),o=function(e,t){for(;t>=0;){const n=e.charCodeAt(t);if(n===pa)return!0;if(n===ma)return!1;t--}return!1}(i,a),r=c===i.length,i=i.substring(a,c),0!==a){const i=e.offsetAt(Ut.create(t.start.line,0));s=function(e,t,n){let i=t,r=0;const s=n.tabSize||4;for(;i<e.length;){const t=e.charAt(i);if(" "===t)r++;else{if("\t"!==t)break;r+=s}i++}return Math.floor(r/s)}(e.getText(),i,n)}o&&(i=`{\n${ua(i)}`)}else t=qt.create(Ut.create(0,0),e.positionAt(i.length));const l={indent_size:a,indent_char:n.insertSpaces?" ":"\t",end_with_newline:r&&fa(n,"insertFinalNewline",!1),selector_separator_newline:fa(n,"newlineBetweenSelectors",!0),newline_between_rules:fa(n,"newlineBetweenRules",!0),space_around_selector_separator:fa(n,"spaceAroundSelectorSeparator",!1),brace_style:fa(n,"braceStyle","collapse"),indent_empty_lines:fa(n,"indentEmptyLines",!1),max_preserve_newlines:fa(n,"maxPreserveNewLines",void 0),preserve_newlines:fa(n,"preserveNewLines",!0),wrap_line_length:fa(n,"wrapLineLength",void 0),eol:"\n"};let c=ha(i,l);if(o&&(c=ua(c.substring(2))),s>0){const e=n.insertSpaces?le(" ",a*s):le("\t",s);c=c.split("\n").join("\n"+e),0===t.start.character&&(c=e+c)}return[{range:t,newText:c}]}function ua(e){return e.replace(/^\s+/,"")}var pa="{".charCodeAt(0),ma="}".charCodeAt(0);function fa(e,t,n){if(e&&e.hasOwnProperty(t)){const n=e[t];if(null!==n)return n}return n}function ga(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}function ba(e,t){return-1!==" \t".indexOf(e.charAt(t))}var va={version:1.1,properties:[{name:"additive-symbols",browsers:["FF33"],atRule:"@counter-style",syntax:"[ <integer> && <symbol> ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",browsers:["E12","FF28","S9","C29","IE11","O16"],values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."},{name:"start"},{name:"end"},{name:"normal"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"space-around"},{name:"space-between"},{name:"space-evenly"},{name:"stretch"},{name:"safe"},{name:"unsafe"}],syntax:"normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-content"}],description:"Aligns a flex container's lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",browsers:["E12","FF20","S9","C29","IE11","O16"],values:[{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"normal"},{name:"start"},{name:"end"},{name:"self-start"},{name:"self-end"},{name:"first baseline"},{name:"last baseline"},{name:"stretch"},{name:"safe"},{name:"unsafe"}],syntax:"normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-items"}],description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",browsers:["E12","FF20","S9","C52","IE11","O12.1"],values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"safe"},{name:"unsafe"},{name:"legacy"}],syntax:"normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-items"}],description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",browsers:["E16","FF45","S10.1","C57","IE10","O44"],values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-self"}],description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",browsers:["E12","FF20","S9","C29","IE10","O12.1"],values:[{name:"auto",description:"Computes to the value of 'align-items' on the element's parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"normal"},{name:"self-end"},{name:"self-start"},{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"safe"},{name:"unsafe"}],syntax:"auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-self"}],description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert | revert-layer",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"<single-animation>#",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",browsers:["E12","FF16","S9","C43","IE10","O30"],syntax:"<time>#",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-delay"}],description:"Defines when the animation will start.",restrictions:["time"]},{name:"animation-direction",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"<single-animation-direction>#",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-direction"}],description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"animation-duration",browsers:["E12","FF16","S9","C43","IE10","O30"],syntax:"<time>#",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-duration"}],description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"animation-fill-mode",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],syntax:"<single-animation-fill-mode>#",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode"}],description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"animation-iteration-count",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],syntax:"<single-animation-iteration-count>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count"}],description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"animation-name",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"none",description:"No animation is performed"}],syntax:"[ none | <keyframes-name> ]#",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-name"}],description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"animation-play-state",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],syntax:"<single-animation-play-state>#",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-play-state"}],description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"animation-timing-function",browsers:["E12","FF16","S9","C43","IE10","O30"],syntax:"<easing-function>#",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-timing-function"}],description:"Describes how the animation will progress over one cycle of its duration.",restrictions:["timing-function"]},{name:"backface-visibility",browsers:["E12","FF16","S15.4","C36","IE10","O23"],values:[{name:"hidden",description:"Back side is hidden."},{name:"visible",description:"Back side is visible."}],syntax:"visible | hidden",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/backface-visibility"}],description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"background",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"fixed",description:"The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."},{name:"local",description:"The background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents."},{name:"none",description:"A value of 'none' counts as an image layer but draws nothing."},{name:"scroll",description:"The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)"}],syntax:"[ <bg-layer> , ]* <final-bg-layer>",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background"}],description:"Shorthand property for setting most background properties at the same place in the style sheet.",restrictions:["enum","image","color","position","length","repeat","percentage","box"]},{name:"background-attachment",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"fixed",description:"The background is fixed with regard to the viewport. In paged media where there is no viewport, a 'fixed' background is fixed with respect to the page box and therefore replicated on every page."},{name:"local",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"The background is fixed with regard to the element's contents: if the element has a scrolling mechanism, the background scrolls with the element's contents."},{name:"scroll",description:"The background is fixed with regard to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.)"}],syntax:"<attachment>#",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-attachment"}],description:"Specifies whether the background images are fixed with regard to the viewport ('fixed') or scroll along with the element ('scroll') or its contents ('local').",restrictions:["enum"]},{name:"background-blend-mode",browsers:["E79","FF30","S8","C35","O22"],values:[{name:"normal",description:"Default attribute which specifies no blending"},{name:"multiply",description:"The source color is multiplied by the destination color and replaces the destination."},{name:"screen",description:"Multiplies the complements of the backdrop and source color values, then complements the result."},{name:"overlay",description:"Multiplies or screens the colors, depending on the backdrop color value."},{name:"darken",description:"Selects the darker of the backdrop and source colors."},{name:"lighten",description:"Selects the lighter of the backdrop and source colors."},{name:"color-dodge",description:"Brightens the backdrop color to reflect the source color."},{name:"color-burn",description:"Darkens the backdrop color to reflect the source color."},{name:"hard-light",description:"Multiplies or screens the colors, depending on the source color value."},{name:"soft-light",description:"Darkens or lightens the colors, depending on the source color value."},{name:"difference",description:"Subtracts the darker of the two constituent colors from the lighter color.."},{name:"exclusion",description:"Produces an effect similar to that of the Difference mode but lower in contrast."},{name:"hue",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."},{name:"saturation",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."},{name:"color",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."},{name:"luminosity",browsers:["E79","FF30","S8","C35","O22"],description:"Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}],syntax:"<blend-mode>#",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-blend-mode"}],description:"Defines the blending mode of each background layer.",restrictions:["enum"]},{name:"background-clip",browsers:["E12","FF4","S5","C1","IE9","O10.5"],syntax:"<box>#",relevance:69,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-clip"}],description:"Determines the background painting area.",restrictions:["box"]},{name:"background-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<color>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-color"}],description:"Sets the background color of an element.",restrictions:["color"]},{name:"background-image",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"none",description:"Counts as an image layer but draws nothing."}],syntax:"<bg-image>#",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-image"}],description:"Sets the background image(s) of an element.",restrictions:["image","enum"]},{name:"background-origin",browsers:["E12","FF4","S3","C1","IE9","O10.5"],syntax:"<box>#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-origin"}],description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"background-position",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<bg-position>#",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position"}],description:"Specifies the initial position of the background image(s) (after any resizing) within their corresponding background positioning area.",restrictions:["position","length","percentage"]},{name:"background-position-x",browsers:["E12","FF49","S1","C1","IE6","O15"],values:[{name:"center",description:"Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is."},{name:"left",description:"Equivalent to '0%' for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset."},{name:"right",description:"Equivalent to '100%' for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset."}],syntax:"[ center | [ [ left | right | x-start | x-end ]? <length-percentage>? ]! ]#",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position-x"}],description:"If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.",restrictions:["length","percentage"]},{name:"background-position-y",browsers:["E12","FF49","S1","C1","IE6","O15"],values:[{name:"bottom",description:"Equivalent to '100%' for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset."},{name:"center",description:"Equivalent to '50%' ('left 50%') for the horizontal position if the horizontal position is not otherwise specified, or '50%' ('top 50%') for the vertical position if it is."},{name:"top",description:"Equivalent to '0%' for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."}],syntax:"[ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-position-y"}],description:"If background images have been specified, this property specifies their initial position (after any resizing) within their corresponding background positioning area.",restrictions:["length","percentage"]},{name:"background-repeat",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"<repeat-style>#",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-repeat"}],description:"Specifies how background images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"background-size",browsers:["E12","FF4","S5","C3","IE9","O10"],values:[{name:"auto",description:"Resolved by using the image's intrinsic ratio and the size of the other dimension, or failing that, using the image's intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],syntax:"<bg-size>#",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/background-size"}],description:"Specifies the size of the background images.",restrictions:["length","percentage"]},{name:"behavior",browsers:["IE6"],relevance:50,description:"IE only. Used to extend behaviors of the browser.",restrictions:["url"]},{name:"block-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"auto",description:"Depends on the values of other properties."}],syntax:"<'width'>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/block-size"}],description:"Size of an element in the direction opposite that of the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"border",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width> || <line-style> || <color>",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border"}],description:"Shorthand property for setting border width, style, and color.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end"}],description:"Logical 'border-bottom'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start"}],description:"Logical 'border-top'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-block-end-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-color"}],description:"Logical 'border-bottom-color'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-block-start-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-color"}],description:"Logical 'border-top-color'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-block-end-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-style"}],description:"Logical 'border-bottom-style'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-block-start-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-style"}],description:"Logical 'border-top-style'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-block-end-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-end-width"}],description:"Logical 'border-bottom-width'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-block-start-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-start-width"}],description:"Logical 'border-top-width'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-bottom",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width> || <line-style> || <color>",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom"}],description:"Shorthand property for setting border width, style and color.",restrictions:["length","line-width","line-style","color"]},{name:"border-bottom-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<'border-top-color'>",relevance:70,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-color"}],description:"Sets the color of the bottom border.",restrictions:["color"]},{name:"border-bottom-left-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,2}",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius"}],description:"Defines the radii of the bottom left outer border edge.",restrictions:["length","percentage"]},{name:"border-bottom-right-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,2}",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius"}],description:"Defines the radii of the bottom right outer border edge.",restrictions:["length","percentage"]},{name:"border-bottom-style",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-style>",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-style"}],description:"Sets the style of the bottom border.",restrictions:["line-style"]},{name:"border-bottom-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width>",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-bottom-width"}],description:"Sets the thickness of the bottom border.",restrictions:["length","line-width"]},{name:"border-collapse",browsers:["E12","FF1","S1.2","C1","IE5","O4"],values:[{name:"collapse",description:"Selects the collapsing borders model."},{name:"separate",description:"Selects the separated borders border model."}],syntax:"collapse | separate",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-collapse"}],description:"Selects a table's border model.",restrictions:["enum"]},{name:"border-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"<color>{1,4}",relevance:86,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-color"}],description:"The color of the border around all four edges of an element.",restrictions:["color"]},{name:"border-image",browsers:["E12","FF15","S6","C16","IE11","O11"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none",description:"Use the border styles."},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],syntax:"<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image"}],description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"border-image-outset",browsers:["E12","FF15","S6","C15","IE11","O15"],syntax:"[ <length> | <number> ]{1,4}",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-outset"}],description:"The values specify the amount by which the border image area extends beyond the border box on the top, right, bottom, and left sides respectively. If the fourth value is absent, it is the same as the second. If the third one is also absent, it is the same as the first. If the second one is also absent, it is the same as the first. Numbers represent multiples of the corresponding border-width.",restrictions:["length","number"]},{name:"border-image-repeat",browsers:["E12","FF15","S6","C15","IE11","O15"],values:[{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."}],syntax:"[ stretch | repeat | round | space ]{1,2}",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-repeat"}],description:"Specifies how the images for the sides and the middle part of the border image are scaled and tiled. If the second keyword is absent, it is assumed to be the same as the first.",restrictions:["enum"]},{name:"border-image-slice",browsers:["E12","FF15","S6","C15","IE11","O15"],values:[{name:"fill",description:"Causes the middle part of the border-image to be preserved."}],syntax:"<number-percentage>{1,4} && fill?",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-slice"}],description:"Specifies inward offsets from the top, right, bottom, and left edges of the image, dividing it into nine regions: four corners, four edges and a middle.",restrictions:["number","percentage"]},{name:"border-image-source",browsers:["E12","FF15","S6","C15","IE11","O15"],values:[{name:"none",description:"Use the border styles."}],syntax:"none | <image>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-source"}],description:"Specifies an image to use instead of the border styles given by the 'border-style' properties and as an additional background layer for the element. If the value is 'none' or if the image cannot be displayed, the border styles will be used.",restrictions:["image"]},{name:"border-image-width",browsers:["E12","FF13","S6","C15","IE11","O15"],values:[{name:"auto",description:"The border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."}],syntax:"[ <length-percentage> | <number> | auto ]{1,4}",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-image-width"}],description:"The four values of 'border-image-width' specify offsets that are used to divide the border image area into nine parts. They represent inward distances from the top, right, bottom, and left sides of the area, respectively.",restrictions:["length","percentage","number"]},{name:"border-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end"}],description:"Logical 'border-right'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start"}],description:"Logical 'border-left'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width","line-style","color"]},{name:"border-inline-end-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color"}],description:"Logical 'border-right-color'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-inline-start-color",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-color'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color"}],description:"Logical 'border-left-color'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["color"]},{name:"border-inline-end-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style"}],description:"Logical 'border-right-style'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-inline-start-style",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style"}],description:"Logical 'border-left-style'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["line-style"]},{name:"border-inline-end-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width"}],description:"Logical 'border-right-width'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-inline-start-width",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'border-top-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width"}],description:"Logical 'border-left-width'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","line-width"]},{name:"border-left",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width> || <line-style> || <color>",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-left-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<color>",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-color"}],description:"Sets the color of the left border.",restrictions:["color"]},{name:"border-left-style",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-style>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-style"}],description:"Sets the style of the left border.",restrictions:["line-style"]},{name:"border-left-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width>",relevance:63,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-left-width"}],description:"Sets the thickness of the left border.",restrictions:["length","line-width"]},{name:"border-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,4} [ / <length-percentage>{1,4} ]?",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-radius"}],description:"Defines the radii of the outer border edge.",restrictions:["length","percentage"]},{name:"border-right",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-width> || <line-style> || <color>",relevance:80,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-right-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<color>",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-color"}],description:"Sets the color of the right border.",restrictions:["color"]},{name:"border-right-style",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-style>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-style"}],description:"Sets the style of the right border.",restrictions:["line-style"]},{name:"border-right-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width>",relevance:63,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-right-width"}],description:"Sets the thickness of the right border.",restrictions:["length","line-width"]},{name:"border-spacing",browsers:["E12","FF1","S1","C1","IE8","O4"],syntax:"<length> <length>?",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-spacing"}],description:"The lengths specify the distance that separates adjoining cell borders. If one length is specified, it gives both the horizontal and vertical spacing. If two are specified, the first gives the horizontal spacing and the second the vertical spacing. Lengths may not be negative.",restrictions:["length"]},{name:"border-style",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"<line-style>{1,4}",relevance:79,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-style"}],description:"The style of the border around edges of an element.",restrictions:["line-style"]},{name:"border-top",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width> || <line-style> || <color>",relevance:86,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top"}],description:"Shorthand property for setting border width, style and color",restrictions:["length","line-width","line-style","color"]},{name:"border-top-color",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<color>",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-color"}],description:"Sets the color of the top border.",restrictions:["color"]},{name:"border-top-left-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,2}",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius"}],description:"Defines the radii of the top left outer border edge.",restrictions:["length","percentage"]},{name:"border-top-right-radius",browsers:["E12","FF4","S5","C4","IE9","O10.5"],syntax:"<length-percentage>{1,2}",relevance:75,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius"}],description:"Defines the radii of the top right outer border edge.",restrictions:["length","percentage"]},{name:"border-top-style",browsers:["E12","FF1","S1","C1","IE5.5","O9.2"],syntax:"<line-style>",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-style"}],description:"Sets the style of the top border.",restrictions:["line-style"]},{name:"border-top-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<line-width>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-top-width"}],description:"Sets the thickness of the top border.",restrictions:["length","line-width"]},{name:"border-width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"<line-width>{1,4}",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-width"}],description:"Shorthand that sets the four 'border-*-width' properties. If it has four values, they set top, right, bottom and left in that order. If left is missing, it is the same as right; if bottom is missing, it is the same as top; if right is missing, it is the same as top.",restrictions:["length","line-width"]},{name:"bottom",browsers:["E12","FF1","S1","C1","IE5","O6"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/bottom"}],description:"Specifies how far an absolutely positioned box's bottom margin edge is offset above the bottom edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"box-decoration-break",browsers:["E79","FF32","S7","C22","O15"],values:[{name:"clone",description:"Each box is independently wrapped with the border and padding."},{name:"slice",description:"The effect is as though the element were rendered with no breaks present, and then sliced by the breaks afterward."}],syntax:"slice | clone",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-decoration-break"}],description:"Specifies whether individual boxes are treated as broken pieces of one continuous box, or whether each box is individually wrapped with the border and padding.",restrictions:["enum"]},{name:"box-shadow",browsers:["E12","FF4","S5.1","C10","IE9","O10.5"],values:[{name:"inset",description:"Changes the drop shadow from an outer shadow (one that shadows the box onto the canvas, as if it were lifted above the canvas) to an inner shadow (one that shadows the canvas onto the box, as if the box were cut out of the canvas and shifted behind it)."},{name:"none",description:"No shadow."}],syntax:"none | <shadow>#",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-shadow"}],description:"Attaches one or more drop-shadows to the box. The property is a comma-separated list of shadows, each specified by 2-4 length values, an optional color, and an optional 'inset' keyword. Omitted lengths are 0; omitted colors are a user agent chosen color.",restrictions:["length","color","enum"]},{name:"box-sizing",browsers:["E12","FF29","S5.1","C10","IE8","O7"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}],syntax:"content-box | border-box",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-sizing"}],description:"Specifies the behavior of the 'width' and 'height' properties.",restrictions:["enum"]},{name:"break-after",browsers:["E12","FF65","S10","C50","IE10","O37"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the principal box."},{name:"avoid",description:"Avoid a break before/after the principal box."},{name:"avoid-column",description:"Avoid a column break before/after the principal box."},{name:"avoid-page",description:"Avoid a page break before/after the principal box."},{name:"column",description:"Always force a column break before/after the principal box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the principal box."},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],syntax:"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/break-after"}],description:"Describes the page/column/region break behavior after the generated box.",restrictions:["enum"]},{name:"break-before",browsers:["E12","FF65","S10","C50","IE10","O37"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the principal box."},{name:"avoid",description:"Avoid a break before/after the principal box."},{name:"avoid-column",description:"Avoid a column break before/after the principal box."},{name:"avoid-page",description:"Avoid a page break before/after the principal box."},{name:"column",description:"Always force a column break before/after the principal box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the principal box."},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],syntax:"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/break-before"}],description:"Describes the page/column/region break behavior before the generated box.",restrictions:["enum"]},{name:"break-inside",browsers:["E12","FF65","S10","C50","IE10","O37"],values:[{name:"auto",description:"Impose no additional breaking constraints within the box."},{name:"avoid",description:"Avoid breaks within the box."},{name:"avoid-column",description:"Avoid a column break within the box."},{name:"avoid-page",description:"Avoid a page break within the box."}],syntax:"auto | avoid | avoid-page | avoid-column | avoid-region",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/break-inside"}],description:"Describes the page/column/region break behavior inside the principal box.",restrictions:["enum"]},{name:"caption-side",browsers:["E12","FF1","S1","C1","IE8","O4"],values:[{name:"bottom",description:"Positions the caption box below the table box."},{name:"top",description:"Positions the caption box above the table box."}],syntax:"top | bottom | block-start | block-end | inline-start | inline-end",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/caption-side"}],description:"Specifies the position of the caption box with respect to the table box.",restrictions:["enum"]},{name:"caret-color",browsers:["E79","FF53","S11.1","C57","O44"],values:[{name:"auto",description:"The user agent selects an appropriate color for the caret. This is generally currentcolor, but the user agent may choose a different color to ensure good visibility and contrast with the surrounding content, taking into account the value of currentcolor, the background, shadows, and other factors."}],syntax:"auto | <color>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/caret-color"}],description:"Controls the color of the text insertion indicator.",restrictions:["color","enum"]},{name:"clear",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"both",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating and left-floating boxes that resulted from elements earlier in the source document."},{name:"left",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document."},{name:"none",description:"No constraint on the box's position with respect to floats."},{name:"right",description:"The clearance of the generated box is set to the amount necessary to place the top border edge below the bottom outer edge of any right-floating boxes that resulted from elements earlier in the source document."}],syntax:"none | left | right | both | inline-start | inline-end",relevance:83,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clear"}],description:"Indicates which sides of an element's box(es) may not be adjacent to an earlier floating box. The 'clear' property does not consider floats inside the element itself or in other block formatting contexts.",restrictions:["enum"]},{name:"clip",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"auto",description:"The element does not clip."},{name:"rect()",description:"Specifies offsets from the edges of the border box."}],syntax:"<shape> | auto",relevance:74,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clip"}],description:"Deprecated. Use the 'clip-path' property when support allows. Defines the visible portion of an element's box.",restrictions:["enum"]},{name:"clip-path",browsers:["E79","FF3.5","S9.1","C55","IE10","O42"],values:[{name:"none",description:"No clipping path gets created."},{name:"url()",description:"References a <clipPath> element to create a clipping path."}],syntax:"<clip-source> | [ <basic-shape> || <geometry-box> ] | none",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/clip-path"}],description:"Specifies a clipping path where everything inside the path is visible and everything outside is clipped out.",restrictions:["url","shape","geometry-box","enum"]},{name:"clip-rule",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"evenodd",description:"Determines the 'insideness' of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."},{name:"nonzero",description:"Determines the 'insideness' of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}],relevance:50,description:"Indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape.",restrictions:["enum"]},{name:"color",browsers:["E12","FF1","S1","C1","IE3","O3.5"],syntax:"<color>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/color"}],description:"Sets the color of an element's text",restrictions:["color"]},{name:"color-interpolation-filters",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"auto",description:"Color operations are not required to occur in a particular color space."},{name:"linearRGB",description:"Color operations should occur in the linearized RGB color space."},{name:"sRGB",description:"Color operations should occur in the sRGB color space."}],relevance:50,description:"Specifies the color space for imaging operations performed via filter effects.",restrictions:["enum"]},{name:"column-count",browsers:["E12","FF52","S9","C50","IE10","O11.1"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],syntax:"<integer> | auto",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-count"}],description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer","enum"]},{name:"column-fill",browsers:["E12","FF52","S9","C50","IE10","O37"],values:[{name:"auto",description:"Fills columns sequentially."},{name:"balance",description:"Balance content equally between columns, if possible."}],syntax:"auto | balance | balance-all",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-fill"}],description:"In continuous media, this property will only be consulted if the length of columns has been constrained. Otherwise, columns will automatically be balanced.",restrictions:["enum"]},{name:"column-gap",browsers:["E12","FF1.5","S3","C1","IE10","O11.1"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],syntax:"normal | <length-percentage>",relevance:60,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-gap"}],description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length","enum"]},{name:"column-rule",browsers:["E12","FF52","S9","C50","IE10","O11.1"],syntax:"<'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule"}],description:"Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"column-rule-color",browsers:["E12","FF52","S9","C50","IE10","O11.1"],syntax:"<color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-color"}],description:"Sets the color of the column rule",restrictions:["color"]},{name:"column-rule-style",browsers:["E12","FF52","S9","C50","IE10","O11.1"],syntax:"<'border-style'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-style"}],description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"column-rule-width",browsers:["E12","FF52","S9","C50","IE10","O11.1"],syntax:"<'border-width'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-rule-width"}],description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"columns",browsers:["E12","FF52","S9","C50","IE10","O11.1"],values:[{name:"auto",description:"The width depends on the values of other properties."}],syntax:"<'column-width'> || <'column-count'>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/columns"}],description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer","enum"]},{name:"column-span",browsers:["E12","FF71","S9","C50","IE10","O11.1"],values:[{name:"all",description:"The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."},{name:"none",description:"The element does not span multiple columns."}],syntax:"none | all",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-span"}],description:"Describes the page/column break behavior after the generated box.",restrictions:["enum"]},{name:"column-width",browsers:["E12","FF50","S9","C50","IE10","O11.1"],values:[{name:"auto",description:"The width depends on the values of other properties."}],syntax:"<length> | auto",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/column-width"}],description:"Describes the width of columns in multicol elements.",restrictions:["length","enum"]},{name:"contain",browsers:["E79","FF69","S15.4","C52","O39"],values:[{name:"none",description:"Indicates that the property has no effect."},{name:"strict",description:"Turns on all forms of containment for the element."},{name:"content",description:"All containment rules except size are applied to the element."},{name:"size",description:"For properties that can have effects on more than just an element and its descendants, those effects don't escape the containing element."},{name:"layout",description:"Turns on layout containment for the element."},{name:"style",description:"Turns on style containment for the element."},{name:"paint",description:"Turns on paint containment for the element."}],syntax:"none | strict | content | [ [ size || inline-size ] || layout || style || paint ]",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain"}],description:"Indicates that an element and its contents are, as much as possible, independent of the rest of the document tree.",restrictions:["enum"]},{name:"content",browsers:["E12","FF1","S1","C1","IE8","O4"],values:[{name:"attr()",description:"The attr(n) function returns as a string the value of attribute n for the subject of the selector."},{name:"counter(name)",description:"Counters are denoted by identifiers (see the 'counter-increment' and 'counter-reset' properties)."},{name:"icon",description:"The (pseudo-)element is replaced in its entirety by the resource referenced by its 'icon' property, and treated as a replaced element."},{name:"none",description:"On elements, this inhibits the children of the element from being rendered as children of this element, as if the element was empty. On pseudo-elements it causes the pseudo-element to have no content."},{name:"normal",description:"See http://www.w3.org/TR/css3-content/#content for computation rules."},{name:"url()"}],syntax:"normal | none | [ <content-replacement> | <content-list> ] [/ [ <string> | <counter> ]+ ]?",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/content"}],description:"Determines which page-based occurrence of a given element is applied to a counter or string value.",restrictions:["string","url"]},{name:"counter-increment",browsers:["E12","FF1","S3","C2","IE8","O9.2"],values:[{name:"none",description:"This element does not alter the value of any counters."}],syntax:"[ <counter-name> <integer>? ]+ | none",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-increment"}],description:"Manipulate the value of existing counters.",restrictions:["identifier","integer"]},{name:"counter-reset",browsers:["E12","FF1","S3","C2","IE8","O9.2"],values:[{name:"none",description:"The counter is not modified."}],syntax:"[ <counter-name> <integer>? | <reversed-counter-name> <integer>? ]+ | none",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-reset"}],description:"Property accepts one or more names of counters (identifiers), each one optionally followed by an integer. The integer gives the value that the counter is set to on each occurrence of the element.",restrictions:["identifier","integer"]},{name:"cursor",browsers:["E12","FF1","S1.2","C1","IE4","O7"],values:[{name:"alias",description:"Indicates an alias of/shortcut to something is to be created. Often rendered as an arrow with a small curved arrow next to it."},{name:"all-scroll",description:"Indicates that the something can be scrolled in any direction. Often rendered as arrows pointing up, down, left, and right with a dot in the middle."},{name:"auto",description:"The UA determines the cursor to display based on the current context."},{name:"cell",description:"Indicates that a cell or set of cells may be selected. Often rendered as a thick plus-sign with a dot in the middle."},{name:"col-resize",description:"Indicates that the item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating them."},{name:"context-menu",description:"A context menu is available for the object under the cursor. Often rendered as an arrow with a small menu-like graphic next to it."},{name:"copy",description:"Indicates something is to be copied. Often rendered as an arrow with a small plus sign next to it."},{name:"crosshair",description:"A simple crosshair (e.g., short line segments resembling a '+' sign). Often used to indicate a two dimensional bitmap selection mode."},{name:"default",description:"The platform-dependent default cursor. Often rendered as an arrow."},{name:"e-resize",description:"Indicates that east edge is to be moved."},{name:"ew-resize",description:"Indicates a bidirectional east-west resize cursor."},{name:"grab",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be grabbed."},{name:"grabbing",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something is being grabbed."},{name:"help",description:"Help is available for the object under the cursor. Often rendered as a question mark or a balloon."},{name:"move",description:"Indicates something is to be moved."},{name:"-moz-grab",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be grabbed."},{name:"-moz-grabbing",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something is being grabbed."},{name:"-moz-zoom-in",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) in."},{name:"-moz-zoom-out",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) out."},{name:"ne-resize",description:"Indicates that movement starts from north-east corner."},{name:"nesw-resize",description:"Indicates a bidirectional north-east/south-west cursor."},{name:"no-drop",description:"Indicates that the dragged item cannot be dropped at the current cursor location. Often rendered as a hand or pointer with a small circle with a line through it."},{name:"none",description:"No cursor is rendered for the element."},{name:"not-allowed",description:"Indicates that the requested action will not be carried out. Often rendered as a circle with a line through it."},{name:"n-resize",description:"Indicates that north edge is to be moved."},{name:"ns-resize",description:"Indicates a bidirectional north-south cursor."},{name:"nw-resize",description:"Indicates that movement starts from north-west corner."},{name:"nwse-resize",description:"Indicates a bidirectional north-west/south-east cursor."},{name:"pointer",description:"The cursor is a pointer that indicates a link."},{name:"progress",description:"A progress indicator. The program is performing some processing, but is different from 'wait' in that the user may still interact with the program. Often rendered as a spinning beach ball, or an arrow with a watch or hourglass."},{name:"row-resize",description:"Indicates that the item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them."},{name:"se-resize",description:"Indicates that movement starts from south-east corner."},{name:"s-resize",description:"Indicates that south edge is to be moved."},{name:"sw-resize",description:"Indicates that movement starts from south-west corner."},{name:"text",description:"Indicates text that may be selected. Often rendered as a vertical I-beam."},{name:"vertical-text",description:"Indicates vertical-text that may be selected. Often rendered as a horizontal I-beam."},{name:"wait",description:"Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass."},{name:"-webkit-grab",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be grabbed."},{name:"-webkit-grabbing",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something is being grabbed."},{name:"-webkit-zoom-in",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) in."},{name:"-webkit-zoom-out",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) out."},{name:"w-resize",description:"Indicates that west edge is to be moved."},{name:"zoom-in",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) in."},{name:"zoom-out",browsers:["E12","FF1","S1.2","C1","IE4","O7"],description:"Indicates that something can be zoomed (magnified) out."}],syntax:"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing ] ]",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/cursor"}],description:"Allows control over cursor appearance in an element",restrictions:["url","number","enum"]},{name:"direction",browsers:["E12","FF1","S1","C2","IE5.5","O9.2"],values:[{name:"ltr",description:"Left-to-right direction."},{name:"rtl",description:"Right-to-left direction."}],syntax:"ltr | rtl",relevance:71,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/direction"}],description:"Specifies the inline base direction or directionality of any bidi paragraph, embedding, isolate, or override established by the box. Note: for HTML content use the 'dir' attribute and 'bdo' element rather than this property.",restrictions:["enum"]},{name:"display",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"block",description:"The element generates a block-level box"},{name:"contents",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element itself does not generate any boxes, but its children and pseudo-elements still generate boxes as normal."},{name:"flex",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a principal flex container box and establishes a flex formatting context."},{name:"flexbox",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"flow-root",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a block container box, and lays out its contents using flow layout."},{name:"grid",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a principal grid container box, and establishes a grid formatting context."},{name:"inline",description:"The element generates an inline-level box."},{name:"inline-block",description:"A block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the box itself is formatted as an inline box."},{name:"inline-flex",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container."},{name:"inline-flexbox",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"inline-table",description:"Inline-level table wrapper box containing table box."},{name:"list-item",description:"One or more block boxes and one marker box."},{name:"-moz-box",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-moz-deck",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-grid",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-grid-group",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-grid-line",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-groupbox",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-inline-box",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-moz-inline-grid",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-inline-stack",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-marker",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-popup",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-moz-stack",browsers:["E12","FF1","S1","C1","IE4","O7"]},{name:"-ms-flexbox",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-ms-grid",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a principal grid container box, and establishes a grid formatting context."},{name:"-ms-inline-flexbox",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-ms-inline-grid",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level grid container."},{name:"none",description:"The element and its descendants generates no boxes."},{name:"ruby",description:"The element generates a principal ruby container box, and establishes a ruby formatting context."},{name:"ruby-base"},{name:"ruby-base-container"},{name:"ruby-text"},{name:"ruby-text-container"},{name:"run-in",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element generates a run-in box. Run-in elements act like inlines or blocks, depending on the surrounding elements."},{name:"table",description:"The element generates a principal table wrapper box containing an additionally-generated table box, and establishes a table formatting context."},{name:"table-caption"},{name:"table-cell"},{name:"table-column"},{name:"table-column-group"},{name:"table-footer-group"},{name:"table-header-group"},{name:"table-row"},{name:"table-row-group"},{name:"-webkit-box",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout). Standardized as 'flex'."},{name:"-webkit-flex",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"The element lays out its contents using flow layout (block-and-inline layout)."},{name:"-webkit-inline-box",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container. Standardized as 'inline-flex'"},{name:"-webkit-inline-flex",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Inline-level flex container."}],syntax:"[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/display"}],description:"In combination with 'float' and 'position', determines the type of box or boxes that are generated for an element.",restrictions:["enum"]},{name:"empty-cells",browsers:["E12","FF1","S1.2","C1","IE8","O4"],values:[{name:"hide",description:"No borders or backgrounds are drawn around/behind empty cells."},{name:"-moz-show-background",browsers:["E12","FF1","S1.2","C1","IE8","O4"]},{name:"show",description:"Borders and backgrounds are drawn around/behind empty cells (like normal cells)."}],syntax:"show | hide",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/empty-cells"}],description:"In the separated borders model, this property controls the rendering of borders and backgrounds around cells that have no visible content.",restrictions:["enum"]},{name:"enable-background",values:[{name:"accumulate",description:"If the ancestor container element has a property of new, then all graphics elements within the current container are rendered both on the parent's background image and onto the target."},{name:"new",description:"Create a new background image canvas. All children of the current container element can access the background, and they will be rendered onto both the parent's background image canvas in addition to the target device."}],relevance:50,description:"Deprecated. Use 'isolation' property instead when support allows. Specifies how the accumulation of the background image is managed.",restrictions:["integer","length","percentage","enum"]},{name:"fallback",browsers:["FF33"],atRule:"@counter-style",syntax:"<counter-style-name>",relevance:50,description:"@counter-style descriptor. Specifies a fallback counter style to be used when the current counter style can't create a representation for a given counter value.",restrictions:["identifier"]},{name:"fill",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"url()",description:"A URL reference to a paint server element, which is an element that defines a paint server: 'hatch', 'linearGradient', 'mesh', 'pattern', 'radialGradient' and 'solidcolor'."},{name:"none",description:"No paint is applied in this layer."}],relevance:77,description:"Paints the interior of the given graphical element.",restrictions:["color","enum","url"]},{name:"fill-opacity",browsers:["E80","FF72","S13.1","C80","O67"],relevance:52,description:"Specifies the opacity of the painting operation used to paint the interior the current object.",restrictions:["number(0-1)"]},{name:"fill-rule",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"evenodd",description:"Determines the 'insideness' of a point on the canvas by drawing a ray from that point to infinity in any direction and counting the number of path segments from the given shape that the ray crosses."},{name:"nonzero",description:"Determines the 'insideness' of a point on the canvas by drawing a ray from that point to infinity in any direction and then examining the places where a segment of the shape crosses the ray."}],relevance:51,description:"Indicates the algorithm (or winding rule) which is to be used to determine what parts of the canvas are included inside the shape.",restrictions:["enum"]},{name:"filter",browsers:["E12","FF35","S9.1","C53","O40"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",browsers:["E12","FF35","S9.1","C53","O40"],description:"A filter reference to a <filter> element."}],syntax:"none | <filter-function-list>",relevance:70,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/filter"}],description:"Processes an element's rendering before it is displayed in the document, by applying one or more filter effects.",restrictions:["enum","url"]},{name:"flex",browsers:["E12","FF20","S9","C29","IE11","O12.1"],values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"content",browsers:["E12","FF20","S9","C29","IE11","O12.1"],description:"Indicates automatic sizing, based on the flex item's content."},{name:"none",description:"Expands to '0 0 auto'."}],syntax:"none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex"}],description:"Specifies the components of a flexible length: the flex grow factor and flex shrink factor, and the flex basis.",restrictions:["length","number","percentage"]},{name:"flex-basis",browsers:["E12","FF22","S9","C29","IE11","O12.1"],values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"content",browsers:["E12","FF22","S9","C29","IE11","O12.1"],description:"Indicates automatic sizing, based on the flex item's content."}],syntax:"content | <'width'>",relevance:70,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-basis"}],description:"Sets the flex basis.",restrictions:["length","number","percentage"]},{name:"flex-direction",browsers:["E12","FF81","S9","C29","IE11","O12.1"],values:[{name:"column",description:"The flex container's main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"row",description:"The flex container's main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."}],syntax:"row | row-reverse | column | column-reverse",relevance:84,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-direction"}],description:"Specifies how flex items are placed in the flex container, by setting the direction of the flex container's main axis.",restrictions:["enum"]},{name:"flex-flow",browsers:["E12","FF28","S9","C29","IE11","O12.1"],values:[{name:"column",description:"The flex container's main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"nowrap",description:"The flex container is single-line."},{name:"row",description:"The flex container's main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],syntax:"<'flex-direction'> || <'flex-wrap'>",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-flow"}],description:"Specifies how flexbox items are placed in the flexbox.",restrictions:["enum"]},{name:"flex-grow",browsers:["E12","FF20","S9","C29","IE11","O12.1"],syntax:"<number>",relevance:77,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-grow"}],description:"Sets the flex grow factor. Negative numbers are invalid.",restrictions:["number"]},{name:"flex-shrink",browsers:["E12","FF20","S9","C29","IE10","O12.1"],syntax:"<number>",relevance:76,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-shrink"}],description:"Sets the flex shrink factor. Negative numbers are invalid.",restrictions:["number"]},{name:"flex-wrap",browsers:["E12","FF28","S9","C29","IE11","O17"],values:[{name:"nowrap",description:"The flex container is single-line."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],syntax:"nowrap | wrap | wrap-reverse",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/flex-wrap"}],description:"Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.",restrictions:["enum"]},{name:"float",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"inline-end",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"A keyword indicating that the element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts."},{name:"inline-start",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"A keyword indicating that the element must float on the start side of its containing block. That is the left side with ltr scripts, and the right side with rtl scripts."},{name:"left",description:"The element generates a block box that is floated to the left. Content flows on the right side of the box, starting at the top (subject to the 'clear' property)."},{name:"none",description:"The box is not floated."},{name:"right",description:"Similar to 'left', except the box is floated to the right, and content flows on the left side of the box, starting at the top."}],syntax:"left | right | none | inline-start | inline-end",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/float"}],description:"Specifies how a box should be floated. It may be set for any element, but only applies to elements that generate boxes that are not absolutely positioned.",restrictions:["enum"]},{name:"flood-color",browsers:["E12","FF3","S6","C5","IE","O15"],relevance:50,description:"Indicates what color to use to flood the current filter primitive subregion.",restrictions:["color"]},{name:"flood-opacity",browsers:["E12","FF3","S6","C5","IE","O15"],relevance:50,description:"Indicates what opacity to use to flood the current filter primitive subregion.",restrictions:["number(0-1)","percentage"]},{name:"font",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"100",description:"Thin"},{name:"200",description:"Extra Light (Ultra Light)"},{name:"300",description:"Light"},{name:"400",description:"Normal"},{name:"500",description:"Medium"},{name:"600",description:"Semi Bold (Demi Bold)"},{name:"700",description:"Bold"},{name:"800",description:"Extra Bold (Ultra Bold)"},{name:"900",description:"Black (Heavy)"},{name:"bold",description:"Same as 700"},{name:"bolder",description:"Specifies the weight of the face bolder than the inherited value."},{name:"caption",description:"The font used for captioned controls (e.g., buttons, drop-downs, etc.)."},{name:"icon",description:"The font used to label icons."},{name:"italic",description:"Selects a font that is labeled 'italic', or, if that is not available, one labeled 'oblique'."},{name:"large"},{name:"larger"},{name:"lighter",description:"Specifies the weight of the face lighter than the inherited value."},{name:"medium"},{name:"menu",description:"The font used in menus (e.g., dropdown menus and menu lists)."},{name:"message-box",description:"The font used in dialog boxes."},{name:"normal",description:"Specifies a face that is not labeled as a small-caps font."},{name:"oblique",description:"Selects a font that is labeled 'oblique'."},{name:"small"},{name:"small-caps",description:"Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."},{name:"small-caption",description:"The font used for labeling small controls."},{name:"smaller"},{name:"status-bar",description:"The font used in window status bars."},{name:"x-large"},{name:"x-small"},{name:"xx-large"},{name:"xx-small"}],syntax:"[ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar",relevance:83,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font"}],description:"Shorthand property for setting 'font-style', 'font-variant', 'font-weight', 'font-size', 'line-height', and 'font-family', at the same place in the style sheet. The syntax of this property is based on a traditional typographical shorthand notation to set multiple properties related to fonts.",restrictions:["font"]},{name:"font-family",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"},{name:"Arial, Helvetica, sans-serif"},{name:"Cambria, Cochin, Georgia, Times, 'Times New Roman', serif"},{name:"'Courier New', Courier, monospace"},{name:"cursive"},{name:"fantasy"},{name:"'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif"},{name:"Georgia, 'Times New Roman', Times, serif"},{name:"'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif"},{name:"Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif"},{name:"'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif"},{name:"monospace"},{name:"sans-serif"},{name:"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif"},{name:"serif"},{name:"'Times New Roman', Times, serif"},{name:"'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif"},{name:"Verdana, Geneva, Tahoma, sans-serif"}],atRule:"@font-face",syntax:"<family-name>",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-family"}],description:"Specifies a prioritized list of font family names or generic family names. A user agent iterates through the list of family names until it matches an available font that contains a glyph for the character to be rendered.",restrictions:["font"]},{name:"font-feature-settings",browsers:["E15","FF34","S9.1","C48","IE10","O35"],values:[{name:'"aalt"',description:"Access All Alternates."},{name:'"abvf"',description:"Above-base Forms. Required in Khmer script."},{name:'"abvm"',description:"Above-base Mark Positioning. Required in Indic scripts."},{name:'"abvs"',description:"Above-base Substitutions. Required in Indic scripts."},{name:'"afrc"',description:"Alternative Fractions."},{name:'"akhn"',description:"Akhand. Required in most Indic scripts."},{name:'"blwf"',description:"Below-base Form. Required in a number of Indic scripts."},{name:'"blwm"',description:"Below-base Mark Positioning. Required in Indic scripts."},{name:'"blws"',description:"Below-base Substitutions. Required in Indic scripts."},{name:'"calt"',description:"Contextual Alternates."},{name:'"case"',description:"Case-Sensitive Forms. Applies only to European scripts; particularly prominent in Spanish-language setting."},{name:'"ccmp"',description:"Glyph Composition/Decomposition."},{name:'"cfar"',description:"Conjunct Form After Ro. Required in Khmer scripts."},{name:'"cjct"',description:"Conjunct Forms. Required in Indic scripts that show similarity to Devanagari."},{name:'"clig"',description:"Contextual Ligatures."},{name:'"cpct"',description:"Centered CJK Punctuation. Used primarily in Chinese fonts."},{name:'"cpsp"',description:"Capital Spacing. Should not be used in connecting scripts (e.g. most Arabic)."},{name:'"cswh"',description:"Contextual Swash."},{name:'"curs"',description:"Cursive Positioning. Can be used in any cursive script."},{name:'"c2pc"',description:"Petite Capitals From Capitals. Applies only to bicameral scripts."},{name:'"c2sc"',description:"Small Capitals From Capitals. Applies only to bicameral scripts."},{name:'"dist"',description:"Distances. Required in Indic scripts."},{name:'"dlig"',description:"Discretionary ligatures."},{name:'"dnom"',description:"Denominators."},{name:'"dtls"',description:"Dotless Forms. Applied to math formula layout."},{name:'"expt"',description:"Expert Forms. Applies only to Japanese."},{name:'"falt"',description:"Final Glyph on Line Alternates. Can be used in any cursive script."},{name:'"fin2"',description:"Terminal Form #2. Used only with the Syriac script."},{name:'"fin3"',description:"Terminal Form #3. Used only with the Syriac script."},{name:'"fina"',description:"Terminal Forms. Can be used in any alphabetic script."},{name:'"flac"',description:"Flattened ascent forms. Applied to math formula layout."},{name:'"frac"',description:"Fractions."},{name:'"fwid"',description:"Full Widths. Applies to any script which can use monospaced forms."},{name:'"half"',description:"Half Forms. Required in Indic scripts that show similarity to Devanagari."},{name:'"haln"',description:"Halant Forms. Required in Indic scripts."},{name:'"halt"',description:"Alternate Half Widths. Used only in CJKV fonts."},{name:'"hist"',description:"Historical Forms."},{name:'"hkna"',description:"Horizontal Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."},{name:'"hlig"',description:"Historical Ligatures."},{name:'"hngl"',description:"Hangul. Korean only."},{name:'"hojo"',description:"Hojo Kanji Forms (JIS X 0212-1990 Kanji Forms). Used only with Kanji script."},{name:'"hwid"',description:"Half Widths. Generally used only in CJKV fonts."},{name:'"init"',description:"Initial Forms. Can be used in any alphabetic script."},{name:'"isol"',description:"Isolated Forms. Can be used in any cursive script."},{name:'"ital"',description:"Italics. Applies mostly to Latin; note that many non-Latin fonts contain Latin as well."},{name:'"jalt"',description:"Justification Alternates. Can be used in any cursive script."},{name:'"jp78"',description:"JIS78 Forms. Applies only to Japanese."},{name:'"jp83"',description:"JIS83 Forms. Applies only to Japanese."},{name:'"jp90"',description:"JIS90 Forms. Applies only to Japanese."},{name:'"jp04"',description:"JIS2004 Forms. Applies only to Japanese."},{name:'"kern"',description:"Kerning."},{name:'"lfbd"',description:"Left Bounds."},{name:'"liga"',description:"Standard Ligatures."},{name:'"ljmo"',description:"Leading Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"lnum"',description:"Lining Figures."},{name:'"locl"',description:"Localized Forms."},{name:'"ltra"',description:"Left-to-right glyph alternates."},{name:'"ltrm"',description:"Left-to-right mirrored forms."},{name:'"mark"',description:"Mark Positioning."},{name:'"med2"',description:"Medial Form #2. Used only with the Syriac script."},{name:'"medi"',description:"Medial Forms."},{name:'"mgrk"',description:"Mathematical Greek."},{name:'"mkmk"',description:"Mark to Mark Positioning."},{name:'"nalt"',description:"Alternate Annotation Forms."},{name:'"nlck"',description:"NLC Kanji Forms. Used only with Kanji script."},{name:'"nukt"',description:"Nukta Forms. Required in Indic scripts.."},{name:'"numr"',description:"Numerators."},{name:'"onum"',description:"Oldstyle Figures."},{name:'"opbd"',description:"Optical Bounds."},{name:'"ordn"',description:"Ordinals. Applies mostly to Latin script."},{name:'"ornm"',description:"Ornaments."},{name:'"palt"',description:"Proportional Alternate Widths. Used mostly in CJKV fonts."},{name:'"pcap"',description:"Petite Capitals."},{name:'"pkna"',description:"Proportional Kana. Generally used only in Japanese fonts."},{name:'"pnum"',description:"Proportional Figures."},{name:'"pref"',description:"Pre-base Forms. Required in Khmer and Myanmar (Burmese) scripts and southern Indic scripts that may display a pre-base form of Ra."},{name:'"pres"',description:"Pre-base Substitutions. Required in Indic scripts."},{name:'"pstf"',description:"Post-base Forms. Required in scripts of south and southeast Asia that have post-base forms for consonants eg: Gurmukhi, Malayalam, Khmer."},{name:'"psts"',description:"Post-base Substitutions."},{name:'"pwid"',description:"Proportional Widths."},{name:'"qwid"',description:"Quarter Widths. Generally used only in CJKV fonts."},{name:'"rand"',description:"Randomize."},{name:'"rclt"',description:"Required Contextual Alternates. May apply to any script, but is especially important for many styles of Arabic."},{name:'"rlig"',description:"Required Ligatures. Applies to Arabic and Syriac. May apply to some other scripts."},{name:'"rkrf"',description:"Rakar Forms. Required in Devanagari and Gujarati scripts."},{name:'"rphf"',description:"Reph Form. Required in Indic scripts. E.g. Devanagari, Kannada."},{name:'"rtbd"',description:"Right Bounds."},{name:'"rtla"',description:"Right-to-left alternates."},{name:'"rtlm"',description:"Right-to-left mirrored forms."},{name:'"ruby"',description:"Ruby Notation Forms. Applies only to Japanese."},{name:'"salt"',description:"Stylistic Alternates."},{name:'"sinf"',description:"Scientific Inferiors."},{name:'"size"',description:"Optical size."},{name:'"smcp"',description:"Small Capitals. Applies only to bicameral scripts."},{name:'"smpl"',description:"Simplified Forms. Applies only to Chinese and Japanese."},{name:'"ssty"',description:"Math script style alternates."},{name:'"stch"',description:"Stretching Glyph Decomposition."},{name:'"subs"',description:"Subscript."},{name:'"sups"',description:"Superscript."},{name:'"swsh"',description:"Swash. Does not apply to ideographic scripts."},{name:'"titl"',description:"Titling."},{name:'"tjmo"',description:"Trailing Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"tnam"',description:"Traditional Name Forms. Applies only to Japanese."},{name:'"tnum"',description:"Tabular Figures."},{name:'"trad"',description:"Traditional Forms. Applies only to Chinese and Japanese."},{name:'"twid"',description:"Third Widths. Generally used only in CJKV fonts."},{name:'"unic"',description:"Unicase."},{name:'"valt"',description:"Alternate Vertical Metrics. Applies only to scripts with vertical writing modes."},{name:'"vatu"',description:"Vattu Variants. Used for Indic scripts. E.g. Devanagari."},{name:'"vert"',description:"Vertical Alternates. Applies only to scripts with vertical writing modes."},{name:'"vhal"',description:"Alternate Vertical Half Metrics. Used only in CJKV fonts."},{name:'"vjmo"',description:"Vowel Jamo Forms. Required for Hangul script when Ancient Hangul writing system is supported."},{name:'"vkna"',description:"Vertical Kana Alternates. Applies only to fonts that support kana (hiragana and katakana)."},{name:'"vkrn"',description:"Vertical Kerning."},{name:'"vpal"',description:"Proportional Alternate Vertical Metrics. Used mostly in CJKV fonts."},{name:'"vrt2"',description:"Vertical Alternates and Rotation. Applies only to scripts with vertical writing modes."},{name:'"zero"',description:"Slashed Zero."},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off",description:"Disable feature."},{name:"on",description:"Enable feature."}],atRule:"@font-face",syntax:"normal | <feature-tag-value>#",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-feature-settings"}],description:"Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"font-kerning",browsers:["E79","FF32","S9","C33","O20"],values:[{name:"auto",description:"Specifies that kerning is applied at the discretion of the user agent."},{name:"none",description:"Specifies that kerning is not applied."},{name:"normal",description:"Specifies that kerning is applied."}],syntax:"auto | normal | none",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-kerning"}],description:"Kerning is the contextual adjustment of inter-glyph spacing. This property controls metric kerning, kerning that utilizes adjustment data contained in the font.",restrictions:["enum"]},{name:"font-language-override",browsers:["FF34"],values:[{name:"normal",description:"Implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering."}],syntax:"normal | <string>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-language-override"}],description:"The value of 'normal' implies that when rendering with OpenType fonts the language of the document is used to infer the OpenType language system, used to select language specific features when rendering.",restrictions:["string"]},{name:"font-size",browsers:["E12","FF1","S1","C1","IE5.5","O7"],values:[{name:"large"},{name:"larger"},{name:"medium"},{name:"small"},{name:"smaller"},{name:"x-large"},{name:"x-small"},{name:"xx-large"},{name:"xx-small"}],syntax:"<absolute-size> | <relative-size> | <length-percentage>",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-size"}],description:"Indicates the desired height of glyphs from the font. For scalable fonts, the font-size is a scale factor applied to the EM unit of the font. (Note that certain glyphs may bleed outside their EM box.) For non-scalable fonts, the font-size is converted into absolute units and matched against the declared font-size of the font, using the same absolute coordinate space for both of the matched values.",restrictions:["length","percentage"]},{name:"font-size-adjust",browsers:["FF3","S16.4"],values:[{name:"none",description:"Do not preserve the font's x-height."}],syntax:"none | [ ex-height | cap-height | ch-width | ic-width | ic-height ]? [ from-font | <number> ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-size-adjust"}],description:"Preserves the readability of text when font fallback occurs by adjusting the font-size so that the x-height is the same regardless of the font used.",restrictions:["number"]},{name:"font-stretch",browsers:["E12","FF9","S11","C60","IE9","O47"],values:[{name:"condensed"},{name:"expanded"},{name:"extra-condensed"},{name:"extra-expanded"},{name:"narrower",browsers:["E12","FF9","S11","C60","IE9","O47"],description:"Indicates a narrower value relative to the width of the parent element."},{name:"normal"},{name:"semi-condensed"},{name:"semi-expanded"},{name:"ultra-condensed"},{name:"ultra-expanded"},{name:"wider",browsers:["E12","FF9","S11","C60","IE9","O47"],description:"Indicates a wider value relative to the width of the parent element."}],atRule:"@font-face",syntax:"<font-stretch-absolute>{1,2}",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-stretch"}],description:"Selects a normal, condensed, or expanded face from a font family.",restrictions:["enum"]},{name:"font-style",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"italic",description:"Selects a font that is labeled as an 'italic' face, or an 'oblique' face if one is not"},{name:"normal",description:"Selects a face that is classified as 'normal'."},{name:"oblique",description:"Selects a font that is labeled as an 'oblique' face, or an 'italic' face if one is not."}],atRule:"@font-face",syntax:"normal | italic | oblique <angle>{0,2}",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-style"}],description:"Allows italic or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face.",restrictions:["enum"]},{name:"font-synthesis",browsers:["E97","FF34","S9","C97","O83"],values:[{name:"none",description:"Disallow all synthetic faces."},{name:"style",description:"Allow synthetic italic faces."},{name:"weight",description:"Allow synthetic bold faces."}],syntax:"none | [ weight || style || small-caps || position]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis"}],description:"Controls whether user agents are allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces.",restrictions:["enum"]},{name:"font-variant",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"normal",description:"Specifies a face that is not labeled as a small-caps font."},{name:"small-caps",description:"Specifies a font that is labeled as a small-caps font. If a genuine small-caps font is not available, user agents should simulate a small-caps font."}],syntax:"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant"}],description:"Specifies variant representations of the font",restrictions:["enum"]},{name:"font-variant-alternates",browsers:["E111","FF34","S9.1","C111","O97"],values:[{name:"annotation()",description:"Enables display of alternate annotation forms."},{name:"character-variant()",description:"Enables display of specific character variants."},{name:"historical-forms",description:"Enables display of historical forms."},{name:"normal",description:"None of the features are enabled."},{name:"ornaments()",description:"Enables replacement of default glyphs with ornaments, if provided in the font."},{name:"styleset()",description:"Enables display with stylistic sets."},{name:"stylistic()",description:"Enables display of stylistic alternates."},{name:"swash()",description:"Enables display of swash glyphs."}],syntax:"normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates"}],description:"For any given character, fonts can provide a variety of alternate glyphs in addition to the default glyph for that character. This property provides control over the selection of these alternate glyphs.",restrictions:["enum"]},{name:"font-variant-caps",browsers:["E79","FF34","S9.1","C52","O39"],values:[{name:"all-petite-caps",description:"Enables display of petite capitals for both upper and lowercase letters."},{name:"all-small-caps",description:"Enables display of small capitals for both upper and lowercase letters."},{name:"normal",description:"None of the features are enabled."},{name:"petite-caps",description:"Enables display of petite capitals."},{name:"small-caps",description:"Enables display of small capitals. Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters."},{name:"titling-caps",description:"Enables display of titling capitals."},{name:"unicase",description:"Enables display of mixture of small capitals for uppercase letters with normal lowercase letters."}],syntax:"normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-caps"}],description:"Specifies control over capitalized forms.",restrictions:["enum"]},{name:"font-variant-east-asian",browsers:["E79","FF34","S9.1","C63","O50"],values:[{name:"full-width",description:"Enables rendering of full-width variants."},{name:"jis04",description:"Enables rendering of JIS04 forms."},{name:"jis78",description:"Enables rendering of JIS78 forms."},{name:"jis83",description:"Enables rendering of JIS83 forms."},{name:"jis90",description:"Enables rendering of JIS90 forms."},{name:"normal",description:"None of the features are enabled."},{name:"proportional-width",description:"Enables rendering of proportionally-spaced variants."},{name:"ruby",description:"Enables display of ruby variant glyphs."},{name:"simplified",description:"Enables rendering of simplified forms."},{name:"traditional",description:"Enables rendering of traditional forms."}],syntax:"normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian"}],description:"Allows control of glyph substitute and positioning in East Asian text.",restrictions:["enum"]},{name:"font-variant-ligatures",browsers:["E79","FF34","S9.1","C34","O21"],values:[{name:"additional-ligatures",description:"Enables display of additional ligatures."},{name:"common-ligatures",description:"Enables display of common ligatures."},{name:"contextual",browsers:["E79","FF34","S9.1","C34","O21"],description:"Enables display of contextual alternates."},{name:"discretionary-ligatures",description:"Enables display of discretionary ligatures."},{name:"historical-ligatures",description:"Enables display of historical ligatures."},{name:"no-additional-ligatures",description:"Disables display of additional ligatures."},{name:"no-common-ligatures",description:"Disables display of common ligatures."},{name:"no-contextual",browsers:["E79","FF34","S9.1","C34","O21"],description:"Disables display of contextual alternates."},{name:"no-discretionary-ligatures",description:"Disables display of discretionary ligatures."},{name:"no-historical-ligatures",description:"Disables display of historical ligatures."},{name:"none",browsers:["E79","FF34","S9.1","C34","O21"],description:"Disables all ligatures."},{name:"normal",description:"Implies that the defaults set by the font are used."}],syntax:"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures"}],description:"Specifies control over which ligatures are enabled or disabled. A value of 'normal' implies that the defaults set by the font are used.",restrictions:["enum"]},{name:"font-variant-numeric",browsers:["E79","FF34","S9.1","C52","O39"],values:[{name:"diagonal-fractions",description:"Enables display of lining diagonal fractions."},{name:"lining-nums",description:"Enables display of lining numerals."},{name:"normal",description:"None of the features are enabled."},{name:"oldstyle-nums",description:"Enables display of old-style numerals."},{name:"ordinal",description:"Enables display of letter forms used with ordinal numbers."},{name:"proportional-nums",description:"Enables display of proportional numerals."},{name:"slashed-zero",description:"Enables display of slashed zeros."},{name:"stacked-fractions",description:"Enables display of lining stacked fractions."},{name:"tabular-nums",description:"Enables display of tabular numerals."}],syntax:"normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric"}],description:"Specifies control over numerical forms.",restrictions:["enum"]},{name:"font-variant-position",browsers:["E117","FF34","S9.1","C117","O103"],values:[{name:"normal",description:"None of the features are enabled."},{name:"sub",description:"Enables display of subscript variants (OpenType feature: subs)."},{name:"super",description:"Enables display of superscript variants (OpenType feature: sups)."}],syntax:"normal | sub | super",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-position"}],description:"Specifies the vertical position",restrictions:["enum"]},{name:"font-weight",browsers:["E12","FF1","S1","C2","IE3","O3.5"],values:[{name:"100",description:"Thin"},{name:"200",description:"Extra Light (Ultra Light)"},{name:"300",description:"Light"},{name:"400",description:"Normal"},{name:"500",description:"Medium"},{name:"600",description:"Semi Bold (Demi Bold)"},{name:"700",description:"Bold"},{name:"800",description:"Extra Bold (Ultra Bold)"},{name:"900",description:"Black (Heavy)"},{name:"bold",description:"Same as 700"},{name:"bolder",description:"Specifies the weight of the face bolder than the inherited value."},{name:"lighter",description:"Specifies the weight of the face lighter than the inherited value."},{name:"normal",description:"Same as 400"}],atRule:"@font-face",syntax:"<font-weight-absolute>{1,2}",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-weight"}],description:"Specifies weight of glyphs in the font, their degree of blackness or stroke thickness.",restrictions:["enum"]},{name:"glyph-orientation-horizontal",relevance:50,description:"Controls glyph orientation when the inline-progression-direction is horizontal.",restrictions:["angle","number"]},{name:"glyph-orientation-vertical",browsers:["S13.1"],values:[{name:"auto",description:"Sets the orientation based on the fullwidth or non-fullwidth characters and the most common orientation."}],relevance:50,description:"Controls glyph orientation when the inline-progression-direction is vertical.",restrictions:["angle","number","enum"]},{name:"grid-area",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]{0,3}",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-area"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement. Shorthand for 'grid-row-start', 'grid-column-start', 'grid-row-end', and 'grid-column-end'.",restrictions:["identifier","integer"]},{name:"grid",browsers:["E16","FF52","S10.1","C57","O44"],syntax:"<'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? | [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid"}],description:"The grid CSS property is a shorthand property that sets all of the explicit grid properties ('grid-template-rows', 'grid-template-columns', and 'grid-template-areas'), and all the implicit grid properties ('grid-auto-rows', 'grid-auto-columns', and 'grid-auto-flow'), in a single declaration.",restrictions:["identifier","length","percentage","string","enum"]},{name:"grid-auto-columns",browsers:["E16","FF70","S10.1","C57","IE10","O44"],values:[{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."}],syntax:"<track-size>+",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns"}],description:"Specifies the size of implicitly created columns.",restrictions:["length","percentage"]},{name:"grid-auto-flow",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"row",description:"The auto-placement algorithm places items by filling each row in turn, adding new rows as necessary."},{name:"column",description:"The auto-placement algorithm places items by filling each column in turn, adding new columns as necessary."},{name:"dense",description:'If specified, the auto-placement algorithm uses a "dense" packing algorithm, which attempts to fill in holes earlier in the grid if smaller items come up later.'}],syntax:"[ row | column ] || dense",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow"}],description:"Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid.",restrictions:["enum"]},{name:"grid-auto-rows",browsers:["E16","FF70","S10.1","C57","IE10","O44"],values:[{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."}],syntax:"<track-size>+",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows"}],description:"Specifies the size of implicitly created rows.",restrictions:["length","percentage"]},{name:"grid-column",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]?",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column"}],description:"Shorthand for 'grid-column-start' and 'grid-column-end'.",restrictions:["identifier","integer","enum"]},{name:"grid-column-end",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column-end"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-column-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<length-percentage>",relevance:4,description:"Specifies the gutters between grid columns. Replaced by 'column-gap' property.",restrictions:["length"]},{name:"grid-column-start",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-column-start"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<'grid-row-gap'> <'grid-column-gap'>?",relevance:5,description:"Shorthand that specifies the gutters between grid columns and grid rows in one declaration. Replaced by 'gap' property.",restrictions:["length"]},{name:"grid-row",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line> [ / <grid-line> ]?",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row"}],description:"Shorthand for 'grid-row-start' and 'grid-row-end'.",restrictions:["identifier","integer","enum"]},{name:"grid-row-end",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row-end"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-row-gap",browsers:["FF52","C57","S10.1","O44"],status:"obsolete",syntax:"<length-percentage>",relevance:2,description:"Specifies the gutters between grid rows. Replaced by 'row-gap' property.",restrictions:["length"]},{name:"grid-row-start",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"auto",description:"The property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of one."},{name:"span",description:"Contributes a grid span to the grid item's placement such that the corresponding edge of the grid item's grid area is N lines from its opposite edge."}],syntax:"<grid-line>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-row-start"}],description:"Determine a grid item's size and location within the grid by contributing a line, a span, or nothing (automatic) to its grid placement.",restrictions:["identifier","integer","enum"]},{name:"grid-template",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"Sets all three properties to their initial values."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Sets 'grid-template-rows' and 'grid-template-columns' to 'subgrid', and 'grid-template-areas' to its initial value."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template"}],description:"Shorthand for setting grid-template-columns, grid-template-rows, and grid-template-areas in a single declaration.",restrictions:["identifier","length","percentage","string","enum"]},{name:"grid-template-areas",browsers:["E16","FF52","S10.1","C57","O44"],values:[{name:"none",description:"The grid container doesn't define any named grid areas."}],syntax:"none | <string>+",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-areas"}],description:"Specifies named grid areas, which are not associated with any particular grid item, but can be referenced from the grid-placement properties.",restrictions:["string"]},{name:"grid-template-columns",browsers:["E16","FF52","S10.1","C57","IE10","O44"],values:[{name:"none",description:"There is no explicit grid; any rows/columns will be implicitly generated."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Indicates that the grid will align to its parent grid in that axis."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-columns"}],description:"specifies, as a space-separated track list, the line names and track sizing functions of the grid.",restrictions:["identifier","length","percentage","enum"]},{name:"grid-template-rows",browsers:["E16","FF52","S10.1","C57","IE10","O44"],values:[{name:"none",description:"There is no explicit grid; any rows/columns will be implicitly generated."},{name:"min-content",description:"Represents the largest min-content contribution of the grid items occupying the grid track."},{name:"max-content",description:"Represents the largest max-content contribution of the grid items occupying the grid track."},{name:"auto",description:"As a maximum, identical to 'max-content'. As a minimum, represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track."},{name:"subgrid",description:"Indicates that the grid will align to its parent grid in that axis."},{name:"minmax()",description:"Defines a size range greater than or equal to min and less than or equal to max."},{name:"repeat()",description:"Represents a repeated fragment of the track list, allowing a large number of columns or rows that exhibit a recurring pattern to be written in a more compact form."}],syntax:"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/grid-template-rows"}],description:"specifies, as a space-separated track list, the line names and track sizing functions of the grid.",restrictions:["identifier","length","percentage","string","enum"]},{name:"height",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"auto",description:"The height depends on the values of other properties."},{name:"fit-content",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/height"}],description:"Specifies the height of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.",restrictions:["length","percentage"]},{name:"hyphens",browsers:["E79","FF43","S17","C55","IE10","O42"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],syntax:"none | manual | auto",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hyphens"}],description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"image-orientation",browsers:["E81","FF26","S13.1","C81","O67"],values:[{name:"flip",description:"After rotating by the precededing angle, the image is flipped horizontally. Defaults to 0deg if the angle is ommitted."},{name:"from-image",description:"If the image has an orientation specified in its metadata, such as EXIF, this value computes to the angle that the metadata specifies is necessary to correctly orient the image."}],syntax:"from-image | <angle> | [ <angle>? flip ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/image-orientation"}],description:"Specifies an orthogonal rotation to be applied to an image before it is laid out.",restrictions:["angle"]},{name:"image-rendering",browsers:["E79","FF3.6","S6","C13","O15"],values:[{name:"auto",description:"The image should be scaled with an algorithm that maximizes the appearance of the image."},{name:"crisp-edges",description:"The image must be scaled with an algorithm that preserves contrast and edges in the image, and which does not smooth colors or introduce blur to the image in the process."},{name:"-moz-crisp-edges",browsers:["E79","FF3.6","S6","C13","O15"]},{name:"optimizeQuality",description:"Deprecated."},{name:"optimizeSpeed",description:"Deprecated."},{name:"pixelated",description:"When scaling the image up, the 'nearest neighbor' or similar algorithm must be used, so that the image appears to be simply composed of very large pixels."}],syntax:"auto | crisp-edges | pixelated",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/image-rendering"}],description:"Provides a hint to the user-agent about what aspects of an image are most important to preserve when the image is scaled, to aid the user-agent in the choice of an appropriate scaling algorithm.",restrictions:["enum"]},{name:"ime-mode",browsers:["E12","FF3","IE5"],values:[{name:"active",description:"The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."},{name:"auto",description:"No change is made to the current input method editor state. This is the default."},{name:"disabled",description:"The input method editor is disabled and may not be activated by the user."},{name:"inactive",description:"The input method editor is initially inactive, but the user may activate it if they wish."},{name:"normal",description:"The IME state should be normal; this value can be used in a user style sheet to override the page setting."}],status:"obsolete",syntax:"auto | normal | active | inactive | disabled",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ime-mode"}],description:"Controls the state of the input method editor for text fields.",restrictions:["enum"]},{name:"inline-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"auto",description:"Depends on the values of other properties."}],syntax:"<'width'>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inline-size"}],description:"Size of an element in the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"isolation",browsers:["E79","FF36","S8","C41","O30"],values:[{name:"auto",description:"Elements are not isolated unless an operation is applied that causes the creation of a stacking context."},{name:"isolate",description:"In CSS will turn the element into a stacking context."}],syntax:"auto | isolate",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/isolation"}],description:"In CSS setting to 'isolate' will turn the element into a stacking context. In SVG, it defines whether an element is isolated or not.",restrictions:["enum"]},{name:"justify-content",browsers:["E12","FF20","S9","C29","IE11","O12.1"],values:[{name:"center",description:"Flex items are packed toward the center of the line."},{name:"start",description:"The items are packed flush to each other toward the start edge of the alignment container in the main axis."},{name:"end",description:"The items are packed flush to each other toward the end edge of the alignment container in the main axis."},{name:"left",description:"The items are packed flush to each other toward the left edge of the alignment container in the main axis."},{name:"right",description:"The items are packed flush to each other toward the right edge of the alignment container in the main axis."},{name:"safe",description:"If the size of the item overflows the alignment container, the item is instead aligned as if the alignment mode were start."},{name:"unsafe",description:"Regardless of the relative sizes of the item and alignment container, the given alignment value is honored."},{name:"stretch",description:"If the combined size of the alignment subjects is less than the size of the alignment container, any auto-sized alignment subjects have their size increased equally (not proportionally), while still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size exactly fills the alignment container."},{name:"space-evenly",description:"The items are evenly distributed within the alignment container along the main axis."},{name:"flex-end",description:"Flex items are packed toward the end of the line."},{name:"flex-start",description:"Flex items are packed toward the start of the line."},{name:"space-around",description:"Flex items are evenly distributed in the line, with half-size spaces on either end."},{name:"space-between",description:"Flex items are evenly distributed in the line."},{name:"baseline",description:"Specifies participation in first-baseline alignment."},{name:"first baseline",description:"Specifies participation in first-baseline alignment."},{name:"last baseline",description:"Specifies participation in last-baseline alignment."}],syntax:"normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-content"}],description:"Aligns flex items along the main axis of the current line of the flex container.",restrictions:["enum"]},{name:"kerning",values:[{name:"auto",description:"Indicates that the user agent should adjust inter-glyph spacing based on kerning tables that are included in the font that will be used."}],relevance:50,description:"Indicates whether the user agent should adjust inter-glyph spacing based on kerning tables that are included in the relevant font or instead disable auto-kerning and set inter-character spacing to a specific length.",restrictions:["length","enum"]},{name:"left",browsers:["E12","FF1","S1","C1","IE5.5","O5"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/left"}],description:"Specifies how far an absolutely positioned box's left margin edge is offset to the right of the left edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"letter-spacing",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"normal",description:"The spacing is the normal spacing for the current font. It is typically zero-length."}],syntax:"normal | <length>",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/letter-spacing"}],description:"Specifies the minimum, maximum, and optimal spacing between grapheme clusters.",restrictions:["length"]},{name:"lighting-color",browsers:["E12","FF3","S6","C5","IE","O15"],relevance:50,description:"Defines the color of the light source for filter primitives 'feDiffuseLighting' and 'feSpecularLighting'.",restrictions:["color"]},{name:"line-break",browsers:["E14","FF69","S11","C58","IE5.5","O45"],values:[{name:"auto",description:"The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."},{name:"loose",description:"Breaks text using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."},{name:"normal",description:"Breaks text using the most common set of line-breaking rules."},{name:"strict",description:"Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."},{name:"anywhere",description:"There is a soft wrap opportunity around every typographic character unit, including around any punctuation character or preserved white spaces, or in the middle of words, disregarding any prohibition against line breaks, even those introduced by characters with the GL, WJ, or ZWJ line breaking classes or mandated by the word-break property."}],syntax:"auto | loose | normal | strict | anywhere",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-break"}],description:"Specifies what set of line breaking restrictions are in effect within the element.",restrictions:["enum"]},{name:"line-height",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"normal",description:"Tells user agents to set the computed value to a 'reasonable' value based on the font size of the element."}],syntax:"normal | <number> | <length> | <percentage>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-height"}],description:"Determines the block-progression dimension of the text content area of an inline box.",restrictions:["number","length","percentage"]},{name:"list-style",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"armenian"},{name:"circle",description:"A hollow circle."},{name:"decimal"},{name:"decimal-leading-zero"},{name:"disc",description:"A filled circle."},{name:"georgian"},{name:"inside",description:"The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."},{name:"lower-alpha"},{name:"lower-greek"},{name:"lower-latin"},{name:"lower-roman"},{name:"none"},{name:"outside",description:"The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."},{name:"square",description:"A filled square."},{name:"symbols()",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Allows a counter style to be defined inline."},{name:"upper-alpha"},{name:"upper-latin"},{name:"upper-roman"},{name:"url()"}],syntax:"<'list-style-type'> || <'list-style-position'> || <'list-style-image'>",relevance:83,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style"}],description:"Shorthand for setting 'list-style-type', 'list-style-position' and 'list-style-image'",restrictions:["image","enum","url"]},{name:"list-style-image",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"none",description:"The default contents of the of the list item's marker are given by 'list-style-type' instead."}],syntax:"<image> | none",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-image"}],description:"Sets the image that will be used as the list item marker. When the image is available, it will replace the marker set with the 'list-style-type' marker.",restrictions:["image"]},{name:"list-style-position",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"inside",description:"The marker box is outside the principal block box, as described in the section on the ::marker pseudo-element below."},{name:"outside",description:"The ::marker pseudo-element is an inline element placed immediately before all ::before pseudo-elements in the principal block box, after which the element's content flows."}],syntax:"inside | outside",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-position"}],description:"Specifies the position of the '::marker' pseudo-element's box in the list item.",restrictions:["enum"]},{name:"list-style-type",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"armenian",description:"Traditional uppercase Armenian numbering."},{name:"circle",description:"A hollow circle."},{name:"decimal",description:"Western decimal numbers."},{name:"decimal-leading-zero",description:"Decimal numbers padded by initial zeros."},{name:"disc",description:"A filled circle."},{name:"georgian",description:"Traditional Georgian numbering."},{name:"lower-alpha",description:"Lowercase ASCII letters."},{name:"lower-greek",description:"Lowercase classical Greek."},{name:"lower-latin",description:"Lowercase ASCII letters."},{name:"lower-roman",description:"Lowercase ASCII Roman numerals."},{name:"none",description:"No marker"},{name:"square",description:"A filled square."},{name:"symbols()",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"Allows a counter style to be defined inline."},{name:"upper-alpha",description:"Uppercase ASCII letters."},{name:"upper-latin",description:"Uppercase ASCII letters."},{name:"upper-roman",description:"Uppercase ASCII Roman numerals."}],syntax:"<counter-style> | <string> | none",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/list-style-type"}],description:"Used to construct the default contents of a list item's marker",restrictions:["enum","string"]},{name:"margin",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"[ <length> | <percentage> | auto ]{1,4}",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits.",restrictions:["length","percentage"]},{name:"margin-block-end",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block-end"}],description:"Logical 'margin-bottom'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-block-start",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block-start"}],description:"Logical 'margin-top'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-bottom",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-bottom"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline-end"}],description:"Logical 'margin-right'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],values:[{name:"auto"}],syntax:"<'margin-left'>",relevance:59,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline-start"}],description:"Logical 'margin-left'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"margin-left",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-left"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-right",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-right"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"margin-top",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"auto"}],syntax:"<length> | <percentage> | auto",relevance:94,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-top"}],description:"Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits..",restrictions:["length","percentage"]},{name:"marker",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker symbol that shall be used for all points on the sets the value for all vertices on the given 'path' element or basic shape.",restrictions:["url"]},{name:"marker-end",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at the last vertices of the given markable element.",restrictions:["url"]},{name:"marker-mid",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at all vertices except the first and last.",restrictions:["url"]},{name:"marker-start",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no marker symbol will be drawn at the given vertex or vertices."},{name:"url()",description:"Indicates that the <marker> element referenced will be used."}],relevance:50,description:"Specifies the marker that will be drawn at the first vertices of the given markable element.",restrictions:["url"]},{name:"mask-image",browsers:["E79","FF53","S15.4","C120","O15"],values:[{name:"none",description:"Counts as a transparent black image layer."},{name:"url()",description:"Reference to a <mask element or to a CSS image."}],syntax:"<mask-reference>#",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-image"}],description:"Sets the mask layer image of an element.",restrictions:["url","image","enum"]},{name:"mask-mode",browsers:["E120","FF53","S15.4","C120","O106"],values:[{name:"alpha",description:"Alpha values of the mask layer image should be used as the mask values."},{name:"auto",description:"Use alpha values if 'mask-image' is an image, luminance if a <mask> element or a CSS image."},{name:"luminance",description:"Luminance values of the mask layer image should be used as the mask values."}],syntax:"<masking-mode>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-mode"}],description:"Indicates whether the mask layer image is treated as luminance mask or alpha mask.",restrictions:["url","image","enum"]},{name:"mask-origin",browsers:["E120","FF53","S15.4","C120","O106"],syntax:"<geometry-box>#",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-origin"}],description:"Specifies the mask positioning area.",restrictions:["geometry-box","enum"]},{name:"mask-position",browsers:["E79","FF53","S15.4","C120","O106"],syntax:"<position>#",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-position"}],description:"Specifies how mask layer images are positioned.",restrictions:["position","length","percentage"]},{name:"mask-repeat",browsers:["E79","FF53","S15.4","C120","O106"],syntax:"<repeat-style>#",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-repeat"}],description:"Specifies how mask layer images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"mask-size",browsers:["E79","FF53","S15.4","C120","O106"],values:[{name:"auto",description:"Resolved by using the image's intrinsic ratio and the size of the other dimension, or failing that, using the image's intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],syntax:"<bg-size>#",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-size"}],description:"Specifies the size of the mask layer images.",restrictions:["length","percentage","enum"]},{name:"mask-type",browsers:["E79","FF35","S7","C24","O15"],values:[{name:"alpha",description:"Indicates that the alpha values of the mask should be used."},{name:"luminance",description:"Indicates that the luminance values of the mask should be used."}],syntax:"luminance | alpha",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-type"}],description:"Defines whether the content of the <mask> element is treated as as luminance mask or alpha mask.",restrictions:["enum"]},{name:"max-block-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"none",description:"No limit on the width of the box."}],syntax:"<'max-width'>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-block-size"}],description:"Maximum size of an element in the direction opposite that of the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"max-height",browsers:["E12","FF1","S1.3","C18","IE7","O7"],values:[{name:"none",description:"No limit on the height of the box."},{name:"fit-content",browsers:["E12","FF1","S1.3","C18","IE7","O7"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1.3","C18","IE7","O7"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1.3","C18","IE7","O7"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"none | <length-percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:85,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-height"}],description:"Allows authors to constrain content height to a certain range.",restrictions:["length","percentage"]},{name:"max-inline-size",browsers:["E79","FF41","S12.1","C57","O44"],values:[{name:"none",description:"No limit on the height of the box."}],syntax:"<'max-width'>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-inline-size"}],description:"Maximum size of an element in the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"max-width",browsers:["E12","FF1","S1","C1","IE7","O4"],values:[{name:"none",description:"No limit on the width of the box."},{name:"fit-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"none | <length-percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/max-width"}],description:"Allows authors to constrain content width to a certain range.",restrictions:["length","percentage"]},{name:"min-block-size",browsers:["E79","FF41","S12.1","C57","O44"],syntax:"<'min-width'>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-block-size"}],description:"Minimal size of an element in the direction opposite that of the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"min-height",browsers:["E12","FF3","S1.3","C1","IE7","O4"],values:[{name:"auto",browsers:["E12","FF3","S1.3","C1","IE7","O4"]},{name:"fit-content",browsers:["E12","FF3","S1.3","C1","IE7","O4"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF3","S1.3","C1","IE7","O4"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF3","S1.3","C1","IE7","O4"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-height"}],description:"Allows authors to constrain content height to a certain range.",restrictions:["length","percentage"]},{name:"min-inline-size",browsers:["E79","FF41","S12.1","C57","O44"],syntax:"<'min-width'>",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-inline-size"}],description:"Minimal size of an element in the direction specified by 'writing-mode'.",restrictions:["length","percentage"]},{name:"min-width",browsers:["E12","FF1","S1","C1","IE7","O4"],values:[{name:"auto",browsers:["E12","FF1","S1","C1","IE7","O4"]},{name:"fit-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1","C1","IE7","O4"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/min-width"}],description:"Allows authors to constrain content width to a certain range.",restrictions:["length","percentage"]},{name:"mix-blend-mode",browsers:["E79","FF32","S8","C41","O28"],values:[{name:"normal",description:"Default attribute which specifies no blending"},{name:"multiply",description:"The source color is multiplied by the destination color and replaces the destination."},{name:"screen",description:"Multiplies the complements of the backdrop and source color values, then complements the result."},{name:"overlay",description:"Multiplies or screens the colors, depending on the backdrop color value."},{name:"darken",description:"Selects the darker of the backdrop and source colors."},{name:"lighten",description:"Selects the lighter of the backdrop and source colors."},{name:"color-dodge",description:"Brightens the backdrop color to reflect the source color."},{name:"color-burn",description:"Darkens the backdrop color to reflect the source color."},{name:"hard-light",description:"Multiplies or screens the colors, depending on the source color value."},{name:"soft-light",description:"Darkens or lightens the colors, depending on the source color value."},{name:"difference",description:"Subtracts the darker of the two constituent colors from the lighter color.."},{name:"exclusion",description:"Produces an effect similar to that of the Difference mode but lower in contrast."},{name:"hue",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color."},{name:"saturation",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color."},{name:"color",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color."},{name:"luminosity",browsers:["E79","FF32","S8","C41","O28"],description:"Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color."}],syntax:"<blend-mode> | plus-lighter",relevance:54,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode"}],description:"Defines the formula that must be used to mix the colors with the backdrop.",restrictions:["enum"]},{name:"motion",browsers:["C46","O33"],values:[{name:"none",description:"No motion path gets created."},{name:"path()",description:"Defines an SVG path as a string, with optional 'fill-rule' as the first argument."},{name:"auto",description:"Indicates that the object is rotated by the angle of the direction of the motion path."},{name:"reverse",description:"Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}],relevance:50,description:"Shorthand property for setting 'motion-path', 'motion-offset' and 'motion-rotation'.",restrictions:["url","length","percentage","angle","shape","geometry-box","enum"]},{name:"motion-offset",browsers:["C46","O33"],relevance:50,description:"A distance that describes the position along the specified motion path.",restrictions:["length","percentage"]},{name:"motion-path",browsers:["C46","O33"],values:[{name:"none",description:"No motion path gets created."},{name:"path()",description:"Defines an SVG path as a string, with optional 'fill-rule' as the first argument."}],relevance:50,description:"Specifies the motion path the element gets positioned at.",restrictions:["url","shape","geometry-box","enum"]},{name:"motion-rotation",browsers:["C46","O33"],values:[{name:"auto",description:"Indicates that the object is rotated by the angle of the direction of the motion path."},{name:"reverse",description:"Indicates that the object is rotated by the angle of the direction of the motion path plus 180 degrees."}],relevance:50,description:"Defines the direction of the element while positioning along the motion path.",restrictions:["angle"]},{name:"-moz-animation",browsers:["FF9"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-moz-animation-delay",browsers:["FF9"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-moz-animation-direction",browsers:["FF9"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-moz-animation-duration",browsers:["FF9"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-moz-animation-iteration-count",browsers:["FF9"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-moz-animation-name",browsers:["FF9"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-moz-animation-play-state",browsers:["FF9"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-moz-animation-timing-function",browsers:["FF9"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"-moz-appearance",browsers:["FF1"],values:[{name:"button"},{name:"button-arrow-down"},{name:"button-arrow-next"},{name:"button-arrow-previous"},{name:"button-arrow-up"},{name:"button-bevel"},{name:"checkbox"},{name:"checkbox-container"},{name:"checkbox-label"},{name:"dialog"},{name:"groupbox"},{name:"listbox"},{name:"menuarrow"},{name:"menuimage"},{name:"menuitem"},{name:"menuitemtext"},{name:"menulist"},{name:"menulist-button"},{name:"menulist-text"},{name:"menulist-textfield"},{name:"menupopup"},{name:"menuradio"},{name:"menuseparator"},{name:"-moz-mac-unified-toolbar"},{name:"-moz-win-borderless-glass"},{name:"-moz-win-browsertabbar-toolbox"},{name:"-moz-win-communications-toolbox"},{name:"-moz-win-glass"},{name:"-moz-win-media-toolbox"},{name:"none"},{name:"progressbar"},{name:"progresschunk"},{name:"radio"},{name:"radio-container"},{name:"radio-label"},{name:"radiomenuitem"},{name:"resizer"},{name:"resizerpanel"},{name:"scrollbarbutton-down"},{name:"scrollbarbutton-left"},{name:"scrollbarbutton-right"},{name:"scrollbarbutton-up"},{name:"scrollbar-small"},{name:"scrollbartrack-horizontal"},{name:"scrollbartrack-vertical"},{name:"separator"},{name:"spinner"},{name:"spinner-downbutton"},{name:"spinner-textfield"},{name:"spinner-upbutton"},{name:"statusbar"},{name:"statusbarpanel"},{name:"tab"},{name:"tabpanels"},{name:"tab-scroll-arrow-back"},{name:"tab-scroll-arrow-forward"},{name:"textfield"},{name:"textfield-multiline"},{name:"toolbar"},{name:"toolbox"},{name:"tooltip"},{name:"treeheadercell"},{name:"treeheadersortarrow"},{name:"treeitem"},{name:"treetwistyopen"},{name:"treeview"},{name:"treewisty"},{name:"window"}],status:"nonstandard",syntax:"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized",relevance:0,description:"Used in Gecko (Firefox) to display an element using a platform-native styling based on the operating system's theme.",restrictions:["enum"]},{name:"-moz-backface-visibility",browsers:["FF10"],values:[{name:"hidden"},{name:"visible"}],relevance:50,description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"-moz-background-clip",browsers:["FF1-3.6"],values:[{name:"padding"}],relevance:50,description:"Determines the background painting area.",restrictions:["box","enum"]},{name:"-moz-background-inline-policy",browsers:["FF1"],values:[{name:"bounding-box"},{name:"continuous"},{name:"each-box"}],relevance:50,description:"In Gecko-based applications like Firefox, the -moz-background-inline-policy CSS property specifies how the background image of an inline element is determined when the content of the inline element wraps onto multiple lines. The choice of position has significant effects on repetition.",restrictions:["enum"]},{name:"-moz-background-origin",browsers:["FF1"],relevance:50,description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"-moz-border-bottom-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-image",browsers:["FF3.6"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"-moz-border-left-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-right-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-border-top-colors",browsers:["FF1"],status:"nonstandard",syntax:"<color>+ | none",relevance:0,description:"Ske Firefox, -moz-border-bottom-colors sets a list of colors for the bottom border.",restrictions:["color"]},{name:"-moz-box-align",browsers:["FF1"],values:[{name:"baseline",description:"If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."},{name:"center",description:"Any extra space is divided evenly, with half placed above the child and the other half placed after the child."},{name:"end",description:"For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."},{name:"start",description:"For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."},{name:"stretch",description:"The height of each child is adjusted to that of the containing block."}],relevance:50,description:"Specifies how a XUL box aligns its contents across (perpendicular to) the direction of its layout. The effect of this is only visible if there is extra space in the box.",restrictions:["enum"]},{name:"-moz-box-direction",browsers:["FF1"],values:[{name:"normal",description:"A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."},{name:"reverse",description:"A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}],relevance:50,description:"Specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).",restrictions:["enum"]},{name:"-moz-box-flex",browsers:["FF1"],relevance:50,description:"Specifies how a box grows to fill the box that contains it, in the direction of the containing box's layout.",restrictions:["number"]},{name:"-moz-box-flexgroup",browsers:["FF1"],relevance:50,description:"Flexible elements can be assigned to flex groups using the 'box-flex-group' property.",restrictions:["integer"]},{name:"-moz-box-ordinal-group",browsers:["FF1"],relevance:50,description:"Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.",restrictions:["integer"]},{name:"-moz-box-orient",browsers:["FF1"],values:[{name:"block-axis",description:"Elements are oriented along the box's axis."},{name:"horizontal",description:"The box displays its children from left to right in a horizontal line."},{name:"inline-axis",description:"Elements are oriented vertically."},{name:"vertical",description:"The box displays its children from stacked from top to bottom vertically."}],relevance:50,description:"In Mozilla applications, -moz-box-orient specifies whether a box lays out its contents horizontally or vertically.",restrictions:["enum"]},{name:"-moz-box-pack",browsers:["FF1"],values:[{name:"center",description:"The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."},{name:"end",description:"For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."},{name:"justify",description:"The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."},{name:"start",description:"For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}],relevance:50,description:"Specifies how a box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box.",restrictions:["enum"]},{name:"-moz-box-sizing",browsers:["FF1"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."},{name:"padding-box",description:"The specified width and height (and respective min/max properties) on this element determine the padding box of the element."}],relevance:50,description:"Box Model addition in CSS3.",restrictions:["enum"]},{name:"-moz-column-count",browsers:["FF3.5"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],relevance:50,description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer"]},{name:"-moz-column-gap",browsers:["FF3.5"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],relevance:50,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length"]},{name:"-moz-column-rule",browsers:["FF3.5"],relevance:50,description:"Shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"-moz-column-rule-color",browsers:["FF3.5"],relevance:50,description:"Sets the color of the column rule",restrictions:["color"]},{name:"-moz-column-rule-style",browsers:["FF3.5"],relevance:50,description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"-moz-column-rule-width",browsers:["FF3.5"],relevance:50,description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"-moz-columns",browsers:["FF9"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer"]},{name:"-moz-column-width",browsers:["FF3.5"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"This property describes the width of columns in multicol elements.",restrictions:["length"]},{name:"-moz-font-feature-settings",browsers:["FF4"],values:[{name:'"c2cs"'},{name:'"dlig"'},{name:'"kern"'},{name:'"liga"'},{name:'"lnum"'},{name:'"onum"'},{name:'"smcp"'},{name:'"swsh"'},{name:'"tnum"'},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off",browsers:["FF4"]},{name:"on",browsers:["FF4"]}],relevance:50,description:"Provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"-moz-hyphens",browsers:["FF9"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-moz-perspective",browsers:["FF10"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-moz-perspective-origin",browsers:["FF10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-moz-text-align-last",browsers:["FF12"],values:[{name:"auto"},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],relevance:50,description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"-moz-text-decoration-color",browsers:["FF6"],relevance:50,description:"Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.",restrictions:["color"]},{name:"-moz-text-decoration-line",browsers:["FF6"],values:[{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Neither produces nor inhibits text decoration."},{name:"overline",description:"Each line of text has a line above it."},{name:"underline",description:"Each line of text is underlined."}],relevance:50,description:"Specifies what line decorations, if any, are added to the element.",restrictions:["enum"]},{name:"-moz-text-decoration-style",browsers:["FF6"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"none",description:"Produces no line."},{name:"solid",description:"Produces a solid line."},{name:"wavy",description:"Produces a wavy line."}],relevance:50,description:"Specifies the line style for underline, line-through and overline text decoration.",restrictions:["enum"]},{name:"-moz-text-size-adjust",browsers:["FF"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["enum","percentage"]},{name:"-moz-transform",browsers:["FF3.5"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-moz-transform-origin",browsers:["FF3.5"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-moz-transition",browsers:["FF4"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-moz-transition-delay",browsers:["FF4"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-moz-transition-duration",browsers:["FF4"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-moz-transition-property",browsers:["FF4"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-moz-transition-timing-function",browsers:["FF4"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"-moz-user-focus",browsers:["FF1"],values:[{name:"ignore"},{name:"normal"}],status:"nonstandard",syntax:"ignore | normal | select-after | select-before | select-menu | select-same | select-all | none",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus"}],description:"Used to indicate whether the element can have focus."},{name:"-moz-user-select",browsers:["FF1.5"],values:[{name:"all"},{name:"element"},{name:"elements"},{name:"-moz-all"},{name:"-moz-none"},{name:"none"},{name:"text"},{name:"toggle"}],relevance:50,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"-ms-accelerator",browsers:["E","IE10"],values:[{name:"false",description:"The element does not contain an accelerator key sequence."},{name:"true",description:"The element contains an accelerator key sequence."}],status:"nonstandard",syntax:"false | true",relevance:0,description:"IE only. Has the ability to turn off its system underlines for accelerator keys until the ALT key is pressed",restrictions:["enum"]},{name:"-ms-behavior",browsers:["IE8"],relevance:50,description:"IE only. Used to extend behaviors of the browser",restrictions:["url"]},{name:"-ms-block-progression",browsers:["IE8"],values:[{name:"bt",description:"Bottom-to-top block flow. Layout is horizontal."},{name:"lr",description:"Left-to-right direction. The flow orientation is vertical."},{name:"rl",description:"Right-to-left direction. The flow orientation is vertical."},{name:"tb",description:"Top-to-bottom direction. The flow orientation is horizontal."}],status:"nonstandard",syntax:"tb | rl | bt | lr",relevance:0,description:"Sets the block-progression value and the flow orientation",restrictions:["enum"]},{name:"-ms-content-zoom-chaining",browsers:["E","IE10"],values:[{name:"chained",description:"The nearest zoomable parent element begins zooming when the user hits a zoom limit during a manipulation. No bounce effect is shown."},{name:"none",description:"A bounce effect is shown when the user hits a zoom limit during a manipulation."}],status:"nonstandard",syntax:"none | chained",relevance:0,description:"Specifies the zoom behavior that occurs when a user hits the zoom limit during a manipulation."},{name:"-ms-content-zooming",browsers:["E","IE10"],values:[{name:"none",description:"The element is not zoomable."},{name:"zoom",description:"The element is zoomable."}],status:"nonstandard",syntax:"none | zoom",relevance:0,description:"Specifies whether zooming is enabled.",restrictions:["enum"]},{name:"-ms-content-zoom-limit",browsers:["E","IE10"],status:"nonstandard",syntax:"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>",relevance:0,description:"Shorthand property for the -ms-content-zoom-limit-min and -ms-content-zoom-limit-max properties.",restrictions:["percentage"]},{name:"-ms-content-zoom-limit-max",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage>",relevance:0,description:"Specifies the maximum zoom factor.",restrictions:["percentage"]},{name:"-ms-content-zoom-limit-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage>",relevance:0,description:"Specifies the minimum zoom factor.",restrictions:["percentage"]},{name:"-ms-content-zoom-snap",browsers:["E","IE10"],values:[{name:"mandatory",description:"Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."},{name:"none",description:"Indicates that zooming is unaffected by any defined snap-points."},{name:"proximity",description:'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'},{name:"snapInterval(100%, 100%)",description:"Specifies where the snap-points will be placed."},{name:"snapList()",description:"Specifies the position of individual snap-points as a comma-separated list of zoom factors."}],status:"nonstandard",syntax:"<'-ms-content-zoom-snap-type'> || <'-ms-content-zoom-snap-points'>",relevance:0,description:"Shorthand property for the -ms-content-zoom-snap-type and -ms-content-zoom-snap-points properties."},{name:"-ms-content-zoom-snap-points",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)",description:"Specifies where the snap-points will be placed."},{name:"snapList()",description:"Specifies the position of individual snap-points as a comma-separated list of zoom factors."}],status:"nonstandard",syntax:"snapInterval( <percentage>, <percentage> ) | snapList( <percentage># )",relevance:0,description:"Defines where zoom snap-points are located."},{name:"-ms-content-zoom-snap-type",browsers:["E","IE10"],values:[{name:"mandatory",description:"Indicates that the motion of the content after the contact is picked up is always adjusted so that it lands on a snap-point."},{name:"none",description:"Indicates that zooming is unaffected by any defined snap-points."},{name:"proximity",description:'Indicates that the motion of the content after the contact is picked up may be adjusted if the content would normally stop "close enough" to a snap-point.'}],status:"nonstandard",syntax:"none | proximity | mandatory",relevance:0,description:"Specifies how zooming is affected by defined snap-points.",restrictions:["enum"]},{name:"-ms-filter",browsers:["IE8-9"],status:"nonstandard",syntax:"<string>",relevance:0,description:"IE only. Used to produce visual effects.",restrictions:["string"]},{name:"-ms-flex",browsers:["IE10"],values:[{name:"auto",description:"Retrieves the value of the main size property as the used 'flex-basis'."},{name:"none",description:"Expands to '0 0 auto'."}],relevance:50,description:"specifies the parameters of a flexible length: the positive and negative flexibility, and the preferred size.",restrictions:["length","number","percentage"]},{name:"-ms-flex-align",browsers:["IE10"],values:[{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"start",description:"The cross-start margin edge of the flexbox item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flexbox item is anything other than 'auto', this value is identical to 'start'."}],relevance:50,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"-ms-flex-direction",browsers:["IE10"],values:[{name:"column",description:"The flex container's main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"row",description:"The flex container's main axis has the same orientation as the inline axis of the current writing mode."},{name:"row-reverse",description:"Same as 'row', except the main-start and main-end directions are swapped."}],relevance:50,description:"Specifies how flex items are placed in the flex container, by setting the direction of the flex container's main axis.",restrictions:["enum"]},{name:"-ms-flex-flow",browsers:["IE10"],values:[{name:"column",description:"The flex container's main axis has the same orientation as the block axis of the current writing mode."},{name:"column-reverse",description:"Same as 'column', except the main-start and main-end directions are swapped."},{name:"nowrap",description:"The flex container is single-line."},{name:"row",description:"The flex container's main axis has the same orientation as the inline axis of the current writing mode."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],relevance:50,description:"Specifies how flexbox items are placed in the flexbox.",restrictions:["enum"]},{name:"-ms-flex-item-align",browsers:["IE10"],values:[{name:"auto",description:"Computes to the value of 'align-items' on the element's parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],relevance:50,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"-ms-flex-line-pack",browsers:["IE10"],values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"distribute",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"end",description:"Lines are packed toward the end of the flex container."},{name:"justify",description:"Lines are evenly distributed in the flex container."},{name:"start",description:"Lines are packed toward the start of the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],relevance:50,description:"Aligns a flex container's lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"-ms-flex-order",browsers:["IE10"],relevance:50,description:"Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.",restrictions:["integer"]},{name:"-ms-flex-pack",browsers:["IE10"],values:[{name:"center",description:"Flex items are packed toward the center of the line."},{name:"distribute",description:"Flex items are evenly distributed in the line, with half-size spaces on either end."},{name:"end",description:"Flex items are packed toward the end of the line."},{name:"justify",description:"Flex items are evenly distributed in the line."},{name:"start",description:"Flex items are packed toward the start of the line."}],relevance:50,description:"Aligns flex items along the main axis of the current line of the flex container.",restrictions:["enum"]},{name:"-ms-flex-wrap",browsers:["IE10"],values:[{name:"nowrap",description:"The flex container is single-line."},{name:"wrap",description:"The flexbox is multi-line."},{name:"wrap-reverse",description:"Same as 'wrap', except the cross-start and cross-end directions are swapped."}],relevance:50,description:"Controls whether the flex container is single-line or multi-line, and the direction of the cross-axis, which determines the direction new lines are stacked in.",restrictions:["enum"]},{name:"-ms-flow-from",browsers:["E","IE10"],values:[{name:"none",description:"The block container is not a CSS Region."}],status:"nonstandard",syntax:"[ none | <custom-ident> ]#",relevance:0,description:"Makes a block container a region and associates it with a named flow.",restrictions:["identifier"]},{name:"-ms-flow-into",browsers:["E","IE10"],values:[{name:"none",description:"The element is not moved to a named flow and normal CSS processing takes place."}],status:"nonstandard",syntax:"[ none | <custom-ident> ]#",relevance:0,description:"Places an element or its contents into a named flow.",restrictions:["identifier"]},{name:"-ms-grid-column",browsers:["E","IE10"],values:[{name:"auto"},{name:"end"},{name:"start"}],relevance:50,description:"Used to place grid items and explicitly defined grid cells in the Grid.",restrictions:["integer","string","enum"]},{name:"-ms-grid-column-align",browsers:["E","IE10"],values:[{name:"center",description:"Places the center of the Grid Item's margin box at the center of the Grid Item's column."},{name:"end",description:"Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's column."},{name:"start",description:"Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's column."},{name:"stretch",description:"Ensures that the Grid Item's margin box is equal to the size of the Grid Item's column."}],relevance:50,description:"Aligns the columns in a grid.",restrictions:["enum"]},{name:"-ms-grid-columns",browsers:["E","IE10"],status:"nonstandard",syntax:"none | <track-list> | <auto-track-list>",relevance:0,description:"Lays out the columns of the grid."},{name:"-ms-grid-column-span",browsers:["E","IE10"],relevance:50,description:"Specifies the number of columns to span.",restrictions:["integer"]},{name:"-ms-grid-layer",browsers:["E","IE10"],relevance:50,description:"Grid-layer is similar in concept to z-index, but avoids overloading the meaning of the z-index property, which is applicable only to positioned elements.",restrictions:["integer"]},{name:"-ms-grid-row",browsers:["E","IE10"],values:[{name:"auto"},{name:"end"},{name:"start"}],relevance:50,description:"grid-row is used to place grid items and explicitly defined grid cells in the Grid.",restrictions:["integer","string","enum"]},{name:"-ms-grid-row-align",browsers:["E","IE10"],values:[{name:"center",description:"Places the center of the Grid Item's margin box at the center of the Grid Item's row."},{name:"end",description:"Aligns the end edge of the Grid Item's margin box to the end edge of the Grid Item's row."},{name:"start",description:"Aligns the starting edge of the Grid Item's margin box to the starting edge of the Grid Item's row."},{name:"stretch",description:"Ensures that the Grid Item's margin box is equal to the size of the Grid Item's row."}],relevance:50,description:"Aligns the rows in a grid.",restrictions:["enum"]},{name:"-ms-grid-rows",browsers:["E","IE10"],status:"nonstandard",syntax:"none | <track-list> | <auto-track-list>",relevance:0,description:"Lays out the columns of the grid."},{name:"-ms-grid-row-span",browsers:["E","IE10"],relevance:50,description:"Specifies the number of rows to span.",restrictions:["integer"]},{name:"-ms-high-contrast-adjust",browsers:["E","IE10"],values:[{name:"auto",description:"Properties will be adjusted as applicable."},{name:"none",description:"No adjustments will be applied."}],status:"nonstandard",syntax:"auto | none",relevance:0,description:"Specifies if properties should be adjusted in high contrast mode.",restrictions:["enum"]},{name:"-ms-hyphenate-limit-chars",browsers:["E","IE10"],values:[{name:"auto",description:"The user agent chooses a value that adapts to the current layout."}],status:"nonstandard",syntax:"auto | <integer>{1,3}",relevance:0,description:"Specifies the minimum number of characters in a hyphenated word.",restrictions:["integer"]},{name:"-ms-hyphenate-limit-lines",browsers:["E","IE10"],values:[{name:"no-limit",description:"There is no limit."}],status:"nonstandard",syntax:"no-limit | <integer>",relevance:0,description:"Indicates the maximum number of successive hyphenated lines in an element.",restrictions:["integer"]},{name:"-ms-hyphenate-limit-zone",browsers:["E","IE10"],status:"nonstandard",syntax:"<percentage> | <length>",relevance:0,description:"Specifies the maximum amount of unfilled space (before justification) that may be left in the line box before hyphenation is triggered to pull part of a word from the next line back up into the current line.",restrictions:["percentage","length"]},{name:"-ms-hyphens",browsers:["E","IE10"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-ms-ime-mode",browsers:["IE10"],values:[{name:"active",description:"The input method editor is initially active; text entry is performed using it unless the user specifically dismisses it."},{name:"auto",description:"No change is made to the current input method editor state. This is the default."},{name:"disabled",description:"The input method editor is disabled and may not be activated by the user."},{name:"inactive",description:"The input method editor is initially inactive, but the user may activate it if they wish."},{name:"normal",description:"The IME state should be normal; this value can be used in a user style sheet to override the page setting."}],relevance:50,description:"Controls the state of the input method editor for text fields.",restrictions:["enum"]},{name:"-ms-interpolation-mode",browsers:["IE7"],values:[{name:"bicubic"},{name:"nearest-neighbor"}],relevance:50,description:"Gets or sets the interpolation (resampling) method used to stretch images.",restrictions:["enum"]},{name:"-ms-layout-grid",browsers:["E","IE10"],values:[{name:"char",description:"Any of the range of character values available to the -ms-layout-grid-char property."},{name:"line",description:"Any of the range of line values available to the -ms-layout-grid-line property."},{name:"mode",description:"Any of the range of mode values available to the -ms-layout-grid-mode property."},{name:"type",description:"Any of the range of type values available to the -ms-layout-grid-type property."}],relevance:50,description:"Sets or retrieves the composite document grid properties that specify the layout of text characters."},{name:"-ms-layout-grid-char",browsers:["E","IE10"],values:[{name:"auto",description:"Largest character in the font of the element is used to set the character grid."},{name:"none",description:"Default. No character grid is set."}],relevance:50,description:"Sets or retrieves the size of the character grid used for rendering the text content of an element.",restrictions:["enum","length","percentage"]},{name:"-ms-layout-grid-line",browsers:["E","IE10"],values:[{name:"auto",description:"Largest character in the font of the element is used to set the character grid."},{name:"none",description:"Default. No grid line is set."}],relevance:50,description:"Sets or retrieves the gridline value used for rendering the text content of an element.",restrictions:["length"]},{name:"-ms-layout-grid-mode",browsers:["E","IE10"],values:[{name:"both",description:"Default. Both the char and line grid modes are enabled. This setting is necessary to fully enable the layout grid on an element."},{name:"char",description:"Only a character grid is used. This is recommended for use with block-level elements, such as a blockquote, where the line grid is intended to be disabled."},{name:"line",description:"Only a line grid is used. This is recommended for use with inline elements, such as a span, to disable the horizontal grid on runs of text that act as a single entity in the grid layout."},{name:"none",description:"No grid is used."}],relevance:50,description:"Gets or sets whether the text layout grid uses two dimensions.",restrictions:["enum"]},{name:"-ms-layout-grid-type",browsers:["E","IE10"],values:[{name:"fixed",description:"Grid used for monospaced layout. All noncursive characters are treated as equal; every character is centered within a single grid space by default."},{name:"loose",description:"Default. Grid used for Japanese and Korean characters."},{name:"strict",description:"Grid used for Chinese, as well as Japanese (Genko) and Korean characters. Only the ideographs, kanas, and wide characters are snapped to the grid."}],relevance:50,description:"Sets or retrieves the type of grid used for rendering the text content of an element.",restrictions:["enum"]},{name:"-ms-line-break",browsers:["E","IE10"],values:[{name:"auto",description:"The UA determines the set of line-breaking restrictions to use for CJK scripts, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines."},{name:"keep-all",description:"Sequences of CJK characters can no longer break on implied break points. This option should only be used where the presence of word separator characters still creates line-breaking opportunities, as in Korean."},{name:"newspaper",description:"Breaks CJK scripts using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers."},{name:"normal",description:"Breaks CJK scripts using a normal set of line-breaking rules."},{name:"strict",description:"Breaks CJK scripts using a more restrictive set of line-breaking rules than 'normal'."}],relevance:50,description:"Specifies what set of line breaking restrictions are in effect within the element.",restrictions:["enum"]},{name:"-ms-overflow-style",browsers:["E","IE10"],values:[{name:"auto",description:"No preference, UA should use the first scrolling method in the list that it supports."},{name:"-ms-autohiding-scrollbar",description:"Indicates the element displays auto-hiding scrollbars during mouse interactions and panning indicators during touch and keyboard interactions."},{name:"none",description:"Indicates the element does not display scrollbars or panning indicators, even when its content overflows."},{name:"scrollbar",description:'Scrollbars are typically narrow strips inserted on one or two edges of an element and which often have arrows to click on and a "thumb" to drag up and down (or left and right) to move the contents of the element.'}],status:"nonstandard",syntax:"auto | none | scrollbar | -ms-autohiding-scrollbar",relevance:0,description:"Specify whether content is clipped when it overflows the element's content area.",restrictions:["enum"]},{name:"-ms-perspective",browsers:["IE10"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-ms-perspective-origin",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-perspective-origin-x",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-perspective-origin-y",browsers:["IE10"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-ms-progress-appearance",browsers:["IE10"],values:[{name:"bar"},{name:"ring"}],relevance:50,description:"Gets or sets a value that specifies whether a progress control displays as a bar or a ring.",restrictions:["enum"]},{name:"-ms-scrollbar-3dlight-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-arrow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the arrow elements of a scroll arrow.",restrictions:["color"]},{name:"-ms-scrollbar-base-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.",restrictions:["color"]},{name:"-ms-scrollbar-darkshadow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the gutter of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-face-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-highlight-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-shadow-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"-ms-scrollbar-track-color",browsers:["IE8"],status:"nonstandard",syntax:"<color>",relevance:0,description:"Determines the color of the track element of a scroll bar.",restrictions:["color"]},{name:"-ms-scroll-chaining",browsers:["E","IE10"],values:[{name:"chained"},{name:"none"}],status:"nonstandard",syntax:"chained | none",relevance:0,description:"Gets or sets a value that indicates the scrolling behavior that occurs when a user hits the content boundary during a manipulation.",restrictions:["enum","length"]},{name:"-ms-scroll-limit",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-limit-x-min, -ms-scroll-limit-y-min, -ms-scroll-limit-x-max, and -ms-scroll-limit-y-max properties.",restrictions:["length"]},{name:"-ms-scroll-limit-x-max",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"auto | <length>",relevance:0,description:"Gets or sets a value that specifies the maximum value for the scrollLeft property.",restrictions:["length"]},{name:"-ms-scroll-limit-x-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that specifies the minimum value for the scrollLeft property.",restrictions:["length"]},{name:"-ms-scroll-limit-y-max",browsers:["E","IE10"],values:[{name:"auto"}],status:"nonstandard",syntax:"auto | <length>",relevance:0,description:"Gets or sets a value that specifies the maximum value for the scrollTop property.",restrictions:["length"]},{name:"-ms-scroll-limit-y-min",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that specifies the minimum value for the scrollTop property.",restrictions:["length"]},{name:"-ms-scroll-rails",browsers:["E","IE10"],values:[{name:"none"},{name:"railed"}],status:"nonstandard",syntax:"none | railed",relevance:0,description:"Gets or sets a value that indicates whether or not small motions perpendicular to the primary axis of motion will result in either changes to both the scrollTop and scrollLeft properties or a change to the primary axis (for instance, either the scrollTop or scrollLeft properties will change, but not both).",restrictions:["enum","length"]},{name:"-ms-scroll-snap-points-x",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )",relevance:0,description:"Gets or sets a value that defines where snap-points will be located along the x-axis.",restrictions:["enum"]},{name:"-ms-scroll-snap-points-y",browsers:["E","IE10"],values:[{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )",relevance:0,description:"Gets or sets a value that defines where snap-points will be located along the y-axis.",restrictions:["enum"]},{name:"-ms-scroll-snap-type",browsers:["E","IE10"],values:[{name:"none",description:"The visual viewport of this scroll container must ignore snap points, if any, when scrolled."},{name:"mandatory",description:"The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."},{name:"proximity",description:"The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}],status:"nonstandard",syntax:"none | proximity | mandatory",relevance:0,description:"Gets or sets a value that defines what type of snap-point should be used for the current element. There are two type of snap-points, with the primary difference being whether or not the user is guaranteed to always stop on a snap-point.",restrictions:["enum"]},{name:"-ms-scroll-snap-x",browsers:["E","IE10"],values:[{name:"mandatory"},{name:"none"},{name:"proximity"},{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-x properties.",restrictions:["enum"]},{name:"-ms-scroll-snap-y",browsers:["E","IE10"],values:[{name:"mandatory"},{name:"none"},{name:"proximity"},{name:"snapInterval(100%, 100%)"},{name:"snapList()"}],status:"nonstandard",syntax:"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>",relevance:0,description:"Gets or sets a shorthand value that sets values for the -ms-scroll-snap-type and -ms-scroll-snap-points-y properties.",restrictions:["enum"]},{name:"-ms-scroll-translation",browsers:["E","IE10"],values:[{name:"none"},{name:"vertical-to-horizontal"}],status:"nonstandard",syntax:"none | vertical-to-horizontal",relevance:0,description:"Gets or sets a value that specifies whether vertical-to-horizontal scroll wheel translation occurs on the specified element.",restrictions:["enum"]},{name:"-ms-text-align-last",browsers:["E","IE8"],values:[{name:"auto"},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],relevance:50,description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"-ms-text-autospace",browsers:["E","IE8"],values:[{name:"ideograph-alpha",description:"Creates 1/4em extra spacing between runs of ideographic letters and non-ideographic letters, such as Latin-based, Cyrillic, Greek, Arabic or Hebrew."},{name:"ideograph-numeric",description:"Creates 1/4em extra spacing between runs of ideographic letters and numeric glyphs."},{name:"ideograph-parenthesis",description:"Creates extra spacing between normal (non wide) parenthesis and ideographs."},{name:"ideograph-space",description:"Extends the width of the space character while surrounded by ideographs."},{name:"none",description:"No extra space is created."},{name:"punctuation",description:"Creates extra non-breaking spacing around punctuation as required by language-specific typographic conventions."}],status:"nonstandard",syntax:"none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space",relevance:0,description:"Determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line, so that its 'ink' lines up with the first glyph in the line above and below.",restrictions:["enum"]},{name:"-ms-text-combine-horizontal",browsers:["E","IE11"],values:[{name:"all",description:"Attempt to typeset horizontally all consecutive characters within the box such that they take up the space of a single character within the vertical line box."},{name:"digits",description:"Attempt to typeset horizontally each maximal sequence of consecutive ASCII digits (U+0030-U+0039) that has as many or fewer characters than the specified integer such that it takes up the space of a single character within the vertical line box."},{name:"none",description:"No special processing."}],relevance:50,description:"This property specifies the combination of multiple characters into the space of a single character.",restrictions:["enum","integer"]},{name:"-ms-text-justify",browsers:["E","IE8"],values:[{name:"auto",description:"The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."},{name:"distribute",description:"Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."},{name:"inter-cluster",description:"Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."},{name:"inter-ideograph",description:"Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."},{name:"inter-word",description:"Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."},{name:"kashida",description:"Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."}],relevance:50,description:"Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.",restrictions:["enum"]},{name:"-ms-text-kashida-space",browsers:["E","IE10"],relevance:50,description:"Sets or retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object.",restrictions:["percentage"]},{name:"-ms-text-overflow",browsers:["IE10"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],relevance:50,description:"Text can overflow for example when it is prevented from wrapping",restrictions:["enum"]},{name:"-ms-text-size-adjust",browsers:["E","IE10"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["enum","percentage"]},{name:"-ms-text-underline-position",browsers:["E","IE10"],values:[{name:"alphabetic",description:"The underline is aligned with the alphabetic baseline. In this case the underline is likely to cross some descenders."},{name:"auto",description:"The user agent may use any algorithm to determine the underline's position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."},{name:"over",description:"The underline is aligned with the 'top' (right in vertical writing) edge of the element's em-box. In this mode, an overline also switches sides."},{name:"under",description:"The underline is aligned with the 'bottom' (left in vertical writing) edge of the element's em-box. In this case the underline usually does not cross the descenders. This is sometimes called 'accounting' underline."}],relevance:50,description:"Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements.This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text",restrictions:["enum"]},{name:"-ms-touch-action",browsers:["IE10"],values:[{name:"auto",description:"The element is a passive element, with several exceptions."},{name:"double-tap-zoom",description:"The element will zoom on double-tap."},{name:"manipulation",description:"The element is a manipulation-causing element."},{name:"none",description:"The element is a manipulation-blocking element."},{name:"pan-x",description:"The element permits touch-driven panning on the horizontal axis. The touch pan is performed on the nearest ancestor with horizontally scrollable content."},{name:"pan-y",description:"The element permits touch-driven panning on the vertical axis. The touch pan is performed on the nearest ancestor with vertically scrollable content."},{name:"pinch-zoom",description:"The element permits pinch-zooming. The pinch-zoom is performed on the nearest ancestor with zoomable content."}],relevance:50,description:"Gets or sets a value that indicates whether and how a given region can be manipulated by the user.",restrictions:["enum"]},{name:"-ms-touch-select",browsers:["E","IE10"],values:[{name:"grippers",description:"Grippers are always on."},{name:"none",description:"Grippers are always off."}],status:"nonstandard",syntax:"grippers | none",relevance:0,description:"Gets or sets a value that toggles the 'gripper' visual elements that enable touch text selection.",restrictions:["enum"]},{name:"-ms-transform",browsers:["IE9-9"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-ms-transform-origin",browsers:["IE9-9"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-ms-transform-origin-x",browsers:["IE10"],relevance:50,description:"The x coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-transform-origin-y",browsers:["IE10"],relevance:50,description:"The y coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-transform-origin-z",browsers:["IE10"],relevance:50,description:"The z coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-ms-user-select",browsers:["E","IE10"],values:[{name:"element"},{name:"none"},{name:"text"}],status:"nonstandard",syntax:"none | element | text",relevance:0,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"-ms-word-break",browsers:["IE8"],values:[{name:"break-all",description:"Lines may break between any two grapheme clusters for non-CJK scripts."},{name:"keep-all",description:"Block characters can no longer create implied break points."},{name:"normal",description:"Breaks non-CJK scripts according to their own rules."}],relevance:50,description:"Specifies line break opportunities for non-CJK scripts.",restrictions:["enum"]},{name:"-ms-word-wrap",browsers:["IE8"],values:[{name:"break-word",description:"An unbreakable 'word' may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],relevance:50,description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.",restrictions:["enum"]},{name:"-ms-wrap-flow",browsers:["E","IE10"],values:[{name:"auto",description:"For floats an exclusion is created, for all other elements an exclusion is not created."},{name:"both",description:"Inline flow content can flow on all sides of the exclusion."},{name:"clear",description:"Inline flow content can only wrap on top and bottom of the exclusion and must leave the areas to the start and end edges of the exclusion box empty."},{name:"end",description:"Inline flow content can wrap on the end side of the exclusion area but must leave the area to the start edge of the exclusion area empty."},{name:"maximum",description:"Inline flow content can wrap on the side of the exclusion with the largest available space for the given line, and must leave the other side of the exclusion empty."},{name:"minimum",description:"Inline flow content can flow around the edge of the exclusion with the smallest available space within the flow content's containing block, and must leave the other edge of the exclusion empty."},{name:"start",description:"Inline flow content can wrap on the start edge of the exclusion area but must leave the area to end edge of the exclusion area empty."}],status:"nonstandard",syntax:"auto | both | start | end | maximum | clear",relevance:0,description:"An element becomes an exclusion when its 'wrap-flow' property has a computed value other than 'auto'.",restrictions:["enum"]},{name:"-ms-wrap-margin",browsers:["E","IE10"],status:"nonstandard",syntax:"<length>",relevance:0,description:"Gets or sets a value that is used to offset the inner wrap shape from other shapes.",restrictions:["length","percentage"]},{name:"-ms-wrap-through",browsers:["E","IE10"],values:[{name:"none",description:"The exclusion element does not inherit its parent node's wrapping context. Its descendants are only subject to exclusion shapes defined inside the element."},{name:"wrap",description:"The exclusion element inherits its parent node's wrapping context. Its descendant inline content wraps around exclusions defined outside the element."}],status:"nonstandard",syntax:"wrap | none",relevance:0,description:"Specifies if an element inherits its parent wrapping context. In other words if it is subject to the exclusions defined outside the element.",restrictions:["enum"]},{name:"-ms-writing-mode",browsers:["IE8"],values:[{name:"bt-lr"},{name:"bt-rl"},{name:"lr-bt"},{name:"lr-tb"},{name:"rl-bt"},{name:"rl-tb"},{name:"tb-lr"},{name:"tb-rl"}],relevance:50,description:"Shorthand property for both 'direction' and 'block-progression'.",restrictions:["enum"]},{name:"-ms-zoom",browsers:["IE8"],values:[{name:"normal"}],relevance:50,description:"Sets or retrieves the magnification scale of the object.",restrictions:["enum","integer","number","percentage"]},{name:"-ms-zoom-animation",browsers:["IE10"],values:[{name:"default"},{name:"none"}],relevance:50,description:"Gets or sets a value that indicates whether an animation is used when zooming.",restrictions:["enum"]},{name:"nav-down",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-index",browsers:["O9.5"],values:[{name:"auto",description:"The element's sequential navigation order is assigned automatically by the user agent."}],relevance:50,description:"Provides an input-method-neutral way of specifying the sequential navigation order (also known as 'tabbing order').",restrictions:["number"]},{name:"nav-left",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-right",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"nav-up",browsers:["O9.5"],values:[{name:"auto",description:"The user agent automatically determines which element to navigate the focus to in response to directional navigational input."},{name:"current",description:"Indicates that the user agent should target the frame that the element is in."},{name:"root",description:"Indicates that the user agent should target the full window."}],relevance:50,description:"Provides an way to control directional focus navigation.",restrictions:["enum","identifier","string"]},{name:"negative",browsers:["FF33"],atRule:"@counter-style",syntax:"<symbol> <symbol>?",relevance:50,description:"@counter-style descriptor. Defines how to alter the representation when the counter value is negative.",restrictions:["image","identifier","string"]},{name:"-o-animation",browsers:["O12"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-o-animation-delay",browsers:["O12"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-o-animation-direction",browsers:["O12"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-o-animation-duration",browsers:["O12"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-o-animation-fill-mode",browsers:["O12"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],relevance:50,description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"-o-animation-iteration-count",browsers:["O12"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-o-animation-name",browsers:["O12"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-o-animation-play-state",browsers:["O12"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-o-animation-timing-function",browsers:["O12"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"object-fit",browsers:["E79","FF36","S10","C32","O19"],values:[{name:"contain",description:"The replaced content is sized to maintain its aspect ratio while fitting within the element's content box: its concrete object size is resolved as a contain constraint against the element's used width and height."},{name:"cover",description:"The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element's used width and height."},{name:"fill",description:"The replaced content is sized to fill the element's content box: the object's concrete object size is the element's used width and height."},{name:"none",description:"The replaced content is not resized to fit inside the element's content box"},{name:"scale-down",description:"Size the content as if 'none' or 'contain' were specified, whichever would result in a smaller concrete object size."}],syntax:"fill | contain | cover | none | scale-down",relevance:72,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/object-fit"}],description:"Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.",restrictions:["enum"]},{name:"object-position",browsers:["E79","FF36","S10","C32","O19"],syntax:"<position>",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/object-position"}],description:"Determines the alignment of the replaced element inside its box.",restrictions:["position","length","percentage"]},{name:"-o-border-image",browsers:["O11.6"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","image","enum"]},{name:"-o-object-fit",browsers:["O10.6"],values:[{name:"contain",description:"The replaced content is sized to maintain its aspect ratio while fitting within the element's content box: its concrete object size is resolved as a contain constraint against the element's used width and height."},{name:"cover",description:"The replaced content is sized to maintain its aspect ratio while filling the element's entire content box: its concrete object size is resolved as a cover constraint against the element's used width and height."},{name:"fill",description:"The replaced content is sized to fill the element's content box: the object's concrete object size is the element's used width and height."},{name:"none",description:"The replaced content is not resized to fit inside the element's content box"},{name:"scale-down",description:"Size the content as if 'none' or 'contain' were specified, whichever would result in a smaller concrete object size."}],relevance:50,description:"Specifies how the contents of a replaced element should be scaled relative to the box established by its used height and width.",restrictions:["enum"]},{name:"-o-object-position",browsers:["O10.6"],relevance:50,description:"Determines the alignment of the replaced element inside its box.",restrictions:["position","length","percentage"]},{name:"opacity",browsers:["E12","FF1","S2","C1","IE9","O9"],syntax:"<alpha-value>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/opacity"}],description:"Opacity of an element's text, where 1 is opaque and 0 is entirely transparent.",restrictions:["number(0-1)"]},{name:"order",browsers:["E12","FF20","S9","C29","IE11","O12.1"],syntax:"<integer>",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/order"}],description:"Controls the order in which children of a flex container appear within the flex container, by assigning them to ordinal groups.",restrictions:["integer"]},{name:"orphans",browsers:["E12","S1.3","C25","IE8","O9.2"],syntax:"<integer>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/orphans"}],description:"Specifies the minimum number of line boxes in a block container that must be left in a fragment before a fragmentation break.",restrictions:["integer"]},{name:"-o-table-baseline",browsers:["O9.6"],relevance:50,description:"Determines which row of a inline-table should be used as baseline of inline-table.",restrictions:["integer"]},{name:"-o-tab-size",browsers:["O10.6"],relevance:50,description:"This property determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.",restrictions:["integer","length"]},{name:"-o-text-overflow",browsers:["O10"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],relevance:50,description:"Text can overflow for example when it is prevented from wrapping",restrictions:["enum"]},{name:"-o-transform",browsers:["O10.5"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-o-transform-origin",browsers:["O10.5"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["positon","length","percentage"]},{name:"-o-transition",browsers:["O11.5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-o-transition-delay",browsers:["O11.5"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-o-transition-duration",browsers:["O11.5"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-o-transition-property",browsers:["O11.5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-o-transition-timing-function",browsers:["O11.5"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"offset-block-end",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'bottom'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-block-start",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'top'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-inline-end",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'right'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"offset-inline-start",browsers:["FF41"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well."}],relevance:50,description:"Logical 'left'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"outline",browsers:["E94","FF88","S16.4","C94","IE8","O80"],values:[{name:"auto",description:"Permits the user agent to render a custom outline style, typically the default platform style."},{name:"invert",browsers:["E94","FF88","S16.4","C94","IE8","O80"],description:"Performs a color inversion on the pixels on the screen."}],syntax:"[ <'outline-color'> || <'outline-style'> || <'outline-width'> ]",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline"}],description:"Shorthand property for 'outline-style', 'outline-width', and 'outline-color'.",restrictions:["length","line-width","line-style","color","enum"]},{name:"outline-color",browsers:["E12","FF1.5","S1.2","C1","IE8","O7"],values:[{name:"invert",browsers:["E12","FF1.5","S1.2","C1","IE8","O7"],description:"Performs a color inversion on the pixels on the screen."}],syntax:"auto | <color>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-color"}],description:"The color of the outline.",restrictions:["enum","color"]},{name:"outline-offset",browsers:["E15","FF1.5","S1.2","C1","O9.5"],syntax:"<length>",relevance:69,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-offset"}],description:"Offset the outline and draw it beyond the border edge.",restrictions:["length"]},{name:"outline-style",browsers:["E12","FF1.5","S1.2","C1","IE8","O7"],values:[{name:"auto",description:"Permits the user agent to render a custom outline style, typically the default platform style."}],syntax:"auto | <'border-style'>",relevance:61,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-style"}],description:"Style of the outline.",restrictions:["line-style","enum"]},{name:"outline-width",browsers:["E12","FF1.5","S1.2","C1","IE8","O7"],syntax:"<line-width>",relevance:62,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/outline-width"}],description:"Width of the outline.",restrictions:["length","line-width"]},{name:"overflow",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"-moz-hidden-unscrollable",browsers:["E12","FF1","S1","C1","IE4","O7"],description:"Same as the standardized 'clip', except doesn't establish a block formatting context."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"[ visible | hidden | clip | scroll | auto ]{1,2}",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow"}],description:"Shorthand for setting 'overflow-x' and 'overflow-y'.",restrictions:["enum"]},{name:"overflow-wrap",browsers:["E18","FF49","S7","C23","IE5.5","O12.1"],values:[{name:"break-word",description:"An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],syntax:"normal | break-word | anywhere",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"}],description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit within the line box.",restrictions:["enum"]},{name:"overflow-x",browsers:["E12","FF3.5","S3","C1","IE5","O9.5"],values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"visible | hidden | clip | scroll | auto",relevance:81,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-x"}],description:"Specifies the handling of overflow in the horizontal direction.",restrictions:["enum"]},{name:"overflow-y",browsers:["E12","FF3.5","S3","C1","IE5","O9.5"],values:[{name:"auto",description:"The behavior of the 'auto' value is UA-dependent, but should cause a scrolling mechanism to be provided for overflowing boxes."},{name:"hidden",description:"Content is clipped and no scrolling mechanism should be provided to view the content outside the clipping region."},{name:"scroll",description:"Content is clipped and if the user agent uses a scrolling mechanism that is visible on the screen (such as a scroll bar or a panner), that mechanism should be displayed for a box whether or not any of its content is clipped."},{name:"visible",description:"Content is not clipped, i.e., it may be rendered outside the content box."}],syntax:"visible | hidden | clip | scroll | auto",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-y"}],description:"Specifies the handling of overflow in the vertical direction.",restrictions:["enum"]},{name:"pad",browsers:["FF33"],atRule:"@counter-style",syntax:"<integer> && <symbol>",relevance:50,description:'@counter-style descriptor. Specifies a "fixed-width" counter style, where representations shorter than the pad value are padded with a particular <symbol>',restrictions:["integer","image","string","identifier"]},{name:"padding",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[],syntax:"[ <length> | <percentage> ]{1,4}",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-bottom",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<length> | <percentage>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-bottom"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-block-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block-end"}],description:"Logical 'padding-bottom'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-block-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block-start"}],description:"Logical 'padding-top'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-inline-end",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline-end"}],description:"Logical 'padding-right'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-inline-start",browsers:["E79","FF41","S12.1","C69","O56"],syntax:"<'padding-left'>",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline-start"}],description:"Logical 'padding-left'. Mapping depends on the parent element's 'writing-mode', 'direction', and 'text-orientation'.",restrictions:["length","percentage"]},{name:"padding-left",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<length> | <percentage>",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-left"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-right",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<length> | <percentage>",relevance:88,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-right"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"padding-top",browsers:["E12","FF1","S1","C1","IE4","O3.5"],syntax:"<length> | <percentage>",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-top"}],description:"Shorthand property to set values for the thickness of the padding area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. The value may not be negative.",restrictions:["length","percentage"]},{name:"page-break-after",browsers:["E12","FF1","S1.2","C1","IE4","O7"],values:[{name:"always",description:"Always force a page break after the generated box."},{name:"auto",description:"Neither force nor forbid a page break after generated box."},{name:"avoid",description:"Avoid a page break after the generated box."},{name:"left",description:"Force one or two page breaks after the generated box so that the next page is formatted as a left page."},{name:"right",description:"Force one or two page breaks after the generated box so that the next page is formatted as a right page."}],syntax:"auto | always | avoid | left | right | recto | verso",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-after"}],description:"Defines rules for page breaks after an element.",restrictions:["enum"]},{name:"page-break-before",browsers:["E12","FF1","S1.2","C1","IE4","O7"],values:[{name:"always",description:"Always force a page break before the generated box."},{name:"auto",description:"Neither force nor forbid a page break before the generated box."},{name:"avoid",description:"Avoid a page break before the generated box."},{name:"left",description:"Force one or two page breaks before the generated box so that the next page is formatted as a left page."},{name:"right",description:"Force one or two page breaks before the generated box so that the next page is formatted as a right page."}],syntax:"auto | always | avoid | left | right | recto | verso",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-before"}],description:"Defines rules for page breaks before an element.",restrictions:["enum"]},{name:"page-break-inside",browsers:["E12","FF19","S1.3","C1","IE8","O7"],values:[{name:"auto",description:"Neither force nor forbid a page break inside the generated box."},{name:"avoid",description:"Avoid a page break inside the generated box."}],syntax:"auto | avoid",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page-break-inside"}],description:"Defines rules for page breaks inside an element.",restrictions:["enum"]},{name:"paint-order",browsers:["E79","FF60","S11","C35","O22"],values:[{name:"fill"},{name:"markers"},{name:"normal",description:"The element is painted with the standard order of painting operations: the 'fill' is painted first, then its 'stroke' and finally its markers."},{name:"stroke"}],syntax:"normal | [ fill || stroke || markers ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/paint-order"}],description:"Controls the order that the three paint operations that shapes and text are rendered with: their fill, their stroke and any markers they might have.",restrictions:["enum"]},{name:"perspective",browsers:["E12","FF16","S9","C36","IE10","O23"],values:[{name:"none",description:"No perspective transform is applied."}],syntax:"none | <length>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/perspective"}],description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length","enum"]},{name:"perspective-origin",browsers:["E12","FF16","S9","C36","IE10","O23"],syntax:"<position>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/perspective-origin"}],description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"pointer-events",browsers:["E12","FF1.5","S4","C1","IE11","O9"],values:[{name:"all",description:"The given element can be the target element for pointer events whenever the pointer is over either the interior or the perimeter of the element."},{name:"fill",description:"The given element can be the target element for pointer events whenever the pointer is over the interior of the element."},{name:"none",description:"The given element does not receive pointer events."},{name:"painted",description:'The given element can be the target element for pointer events when the pointer is over a "painted" area. '},{name:"stroke",description:"The given element can be the target element for pointer events whenever the pointer is over the perimeter of the element."},{name:"visible",description:"The given element can be the target element for pointer events when the 'visibility' property is set to visible and the pointer is over either the interior or the perimeter of the element."},{name:"visibleFill",description:"The given element can be the target element for pointer events when the 'visibility' property is set to visible and when the pointer is over the interior of the element."},{name:"visiblePainted",description:"The given element can be the target element for pointer events when the 'visibility' property is set to visible and when the pointer is over a 'painted' area."},{name:"visibleStroke",description:"The given element can be the target element for pointer events when the 'visibility' property is set to visible and when the pointer is over the perimeter of the element."}],syntax:"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/pointer-events"}],description:"Specifies under what circumstances a given element can be the target element for a pointer event.",restrictions:["enum"]},{name:"position",browsers:["E12","FF1","S1","C1","IE4","O4"],values:[{name:"absolute",description:"The box's position (and possibly size) is specified with the 'top', 'right', 'bottom', and 'left' properties. These properties specify offsets with respect to the box's 'containing block'."},{name:"fixed",description:"The box's position is calculated according to the 'absolute' model, but in addition, the box is fixed with respect to some reference. As with the 'absolute' model, the box's margins do not collapse with any other margins."},{name:"-ms-page",browsers:["E12","FF1","S1","C1","IE4","O4"],description:"The box's position is calculated according to the 'absolute' model."},{name:"relative",description:"The box's position is calculated according to the normal flow (this is called the position in normal flow). Then the box is offset relative to its normal position."},{name:"static",description:"The box is a normal box, laid out according to the normal flow. The 'top', 'right', 'bottom', and 'left' properties do not apply."},{name:"sticky",browsers:["E12","FF1","S1","C1","IE4","O4"],description:"The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."},{name:"-webkit-sticky",browsers:["E12","FF1","S1","C1","IE4","O4"],description:"The box's position is calculated according to the normal flow. Then the box is offset relative to its flow root and containing block and in all cases, including table elements, does not affect the position of any following boxes."}],syntax:"static | relative | absolute | sticky | fixed",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/position"}],description:"The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements.",restrictions:["enum"]},{name:"prefix",browsers:["FF33"],atRule:"@counter-style",syntax:"<symbol>",relevance:50,description:"@counter-style descriptor. Specifies a <symbol> that is prepended to the marker representation.",restrictions:["image","string","identifier"]},{name:"quotes",browsers:["E12","FF1.5","S9","C11","IE8","O4"],values:[{name:"none",description:"The 'open-quote' and 'close-quote' values of the 'content' property produce no quotations marks, as if they were 'no-open-quote' and 'no-close-quote' respectively."}],syntax:"none | auto | [ <string> <string> ]+",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/quotes"}],description:"Specifies quotation marks for any number of embedded quotations.",restrictions:["string"]},{name:"range",browsers:["FF33"],values:[{name:"auto",description:"The range depends on the counter system."},{name:"infinite",description:"If used as the first value in a range, it represents negative infinity; if used as the second value, it represents positive infinity."}],atRule:"@counter-style",syntax:"[ [ <integer> | infinite ]{2} ]# | auto",relevance:50,description:"@counter-style descriptor. Defines the ranges over which the counter style is defined.",restrictions:["integer","enum"]},{name:"resize",browsers:["E79","FF4","S3","C1","O12.1"],values:[{name:"both",description:"The UA presents a bidirectional resizing mechanism to allow the user to adjust both the height and the width of the element."},{name:"horizontal",description:"The UA presents a unidirectional horizontal resizing mechanism to allow the user to adjust only the width of the element."},{name:"none",description:"The UA does not present a resizing mechanism on the element, and the user is given no direct manipulation mechanism to resize the element."},{name:"vertical",description:"The UA presents a unidirectional vertical resizing mechanism to allow the user to adjust only the height of the element."}],syntax:"none | both | horizontal | vertical | block | inline",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/resize"}],description:"Specifies whether or not an element is resizable by the user, and if so, along which axis/axes.",restrictions:["enum"]},{name:"right",browsers:["E12","FF1","S1","C1","IE5.5","O5"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/right"}],description:"Specifies how far an absolutely positioned box's right margin edge is offset to the left of the right edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"ruby-align",browsers:["FF38","Spreview"],values:[{name:"auto",browsers:["FF38","Spreview"],description:"The user agent determines how the ruby contents are aligned. This is the initial value."},{name:"center",description:"The ruby content is centered within its box."},{name:"distribute-letter",browsers:["FF38","Spreview"],description:"If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with the first and last ruby text glyphs lining up with the corresponding first and last base glyphs. If the width of the ruby text is at least the width of the base, then the letters of the base are evenly distributed across the width of the ruby text."},{name:"distribute-space",browsers:["FF38","Spreview"],description:"If the width of the ruby text is smaller than that of the base, then the ruby text contents are evenly distributed across the width of the base, with a certain amount of white space preceding the first and following the last character in the ruby text. That amount of white space is normally equal to half the amount of inter-character space of the ruby text."},{name:"left",description:"The ruby text content is aligned with the start edge of the base."},{name:"line-edge",browsers:["FF38","Spreview"],description:"If the ruby text is not adjacent to a line edge, it is aligned as in 'auto'. If it is adjacent to a line edge, then it is still aligned as in auto, but the side of the ruby text that touches the end of the line is lined up with the corresponding edge of the base."},{name:"right",browsers:["FF38","Spreview"],description:"The ruby text content is aligned with the end edge of the base."},{name:"start",browsers:["FF38","Spreview"],description:"The ruby text content is aligned with the start edge of the base."},{name:"space-between",browsers:["FF38","Spreview"],description:"The ruby content expands as defined for normal text justification (as defined by 'text-justify'),"},{name:"space-around",browsers:["FF38","Spreview"],description:"As for 'space-between' except that there exists an extra justification opportunities whose space is distributed half before and half after the ruby content."}],status:"experimental",syntax:"start | center | space-between | space-around",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ruby-align"}],description:"Specifies how text is distributed within the various ruby boxes when their contents do not exactly fill their respective boxes.",restrictions:["enum"]},{name:"ruby-overhang",browsers:["FF10","IE5"],values:[{name:"auto",description:"The ruby text can overhang text adjacent to the base on either side. This is the initial value."},{name:"end",description:"The ruby text can overhang the text that follows it."},{name:"none",description:"The ruby text cannot overhang any text adjacent to its base, only its own base."},{name:"start",description:"The ruby text can overhang the text that precedes it."}],relevance:50,description:"Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.",restrictions:["enum"]},{name:"ruby-position",browsers:["E84","FF38","S7","C84","O70"],values:[{name:"after",description:"The ruby text appears after the base. This is a relatively rare setting used in ideographic East Asian writing systems, most easily found in educational text."},{name:"before",description:"The ruby text appears before the base. This is the most common setting used in ideographic East Asian writing systems."},{name:"inline"},{name:"right",description:"The ruby text appears on the right of the base. Unlike 'before' and 'after', this value is not relative to the text flow direction."}],syntax:"[ alternate || [ over | under ] ] | inter-character",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/ruby-position"}],description:"Used by the parent of elements with display: ruby-text to control the position of the ruby text with respect to its base.",restrictions:["enum"]},{name:"ruby-span",browsers:["FF10"],values:[{name:"attr(x)",description:"The value of attribute 'x' is a string value. The string value is evaluated as a <number> to determine the number of ruby base elements to be spanned by the annotation element."},{name:"none",description:"No spanning. The computed value is '1'."}],relevance:50,description:"Determines whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base.",restrictions:["enum"]},{name:"scrollbar-3dlight-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-3dlight-color"}],description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-arrow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-arrow-color"}],description:"Determines the color of the arrow elements of a scroll arrow.",restrictions:["color"]},{name:"scrollbar-base-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-base-color"}],description:"Determines the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.",restrictions:["color"]},{name:"scrollbar-darkshadow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-darkshadow-color"}],description:"Determines the color of the gutter of a scroll bar.",restrictions:["color"]},{name:"scrollbar-face-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-face-color"}],description:"Determines the color of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-highlight-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-highlight-color"}],description:"Determines the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-shadow-color",browsers:["IE5"],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-shadow-color"}],description:"Determines the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.",restrictions:["color"]},{name:"scrollbar-track-color",browsers:["IE6"],relevance:50,description:"Determines the color of the track element of a scroll bar.",restrictions:["color"]},{name:"scroll-behavior",browsers:["E79","FF36","S15.4","C61","O48"],values:[{name:"auto",description:"Scrolls in an instant fashion."},{name:"smooth",description:"Scrolls in a smooth fashion using a user-agent-defined timing function and time period."}],syntax:"auto | smooth",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-behavior"}],description:"Specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs.",restrictions:["enum"]},{name:"scroll-snap-coordinate",browsers:["FF39"],values:[{name:"none",description:"Specifies that this element does not contribute a snap point."}],status:"obsolete",syntax:"none | <position>#",relevance:0,description:"Defines the x and y coordinate within the element which will align with the nearest ancestor scroll container's snap-destination for the respective axis.",restrictions:["position","length","percentage","enum"]},{name:"scroll-snap-destination",browsers:["FF39"],status:"obsolete",syntax:"<position>",relevance:0,description:"Define the x and y coordinate within the scroll container's visual viewport which element snap points will align with.",restrictions:["position","length","percentage"]},{name:"scroll-snap-points-x",browsers:["FF39"],values:[{name:"none",description:"No snap points are defined by this scroll container."},{name:"repeat()",description:"Defines an interval at which snap points are defined, starting from the container's relevant start edge."}],status:"obsolete",syntax:"none | repeat( <length-percentage> )",relevance:0,description:"Defines the positioning of snap points along the x axis of the scroll container it is applied to.",restrictions:["enum"]},{name:"scroll-snap-points-y",browsers:["FF39"],values:[{name:"none",description:"No snap points are defined by this scroll container."},{name:"repeat()",description:"Defines an interval at which snap points are defined, starting from the container's relevant start edge."}],status:"obsolete",syntax:"none | repeat( <length-percentage> )",relevance:0,description:"Defines the positioning of snap points along the y axis of the scroll container it is applied to.",restrictions:["enum"]},{name:"scroll-snap-type",browsers:["E79","FF99","S11","C69","IE10","O56"],values:[{name:"none",description:"The visual viewport of this scroll container must ignore snap points, if any, when scrolled."},{name:"mandatory",description:"The visual viewport of this scroll container is guaranteed to rest on a snap point when there are no active scrolling operations."},{name:"proximity",description:"The visual viewport of this scroll container may come to rest on a snap point at the termination of a scroll at the discretion of the UA given the parameters of the scroll."}],syntax:"none | [ x | y | block | inline | both ] [ mandatory | proximity ]?",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type"}],description:"Defines how strictly snap points are enforced on the scroll container.",restrictions:["enum"]},{name:"shape-image-threshold",browsers:["E79","FF62","S10.1","C37","O24"],syntax:"<alpha-value>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold"}],description:"Defines the alpha channel threshold used to extract the shape using an image. A value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.",restrictions:["number"]},{name:"shape-margin",browsers:["E79","FF62","S10.1","C37","O24"],syntax:"<length-percentage>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-margin"}],description:"Adds a margin to a 'shape-outside'. This defines a new shape that is the smallest contour that includes all the points that are the 'shape-margin' distance outward in the perpendicular direction from a point on the underlying shape.",restrictions:["url","length","percentage"]},{name:"shape-outside",browsers:["E79","FF62","S10.1","C37","O24"],values:[{name:"margin-box",description:"The background is painted within (clipped to) the margin box."},{name:"none",description:"The float area is unaffected."}],syntax:"none | [ <shape-box> || <basic-shape> ] | <image>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/shape-outside"}],description:"Specifies an orthogonal rotation to be applied to an image before it is laid out.",restrictions:["image","box","shape","enum"]},{name:"shape-rendering",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"auto",description:"Suppresses aural rendering."},{name:"crispEdges",description:"Emphasize the contrast between clean edges of artwork over rendering speed and geometric precision."},{name:"geometricPrecision",description:"Emphasize geometric precision over speed and crisp edges."},{name:"optimizeSpeed",description:"Emphasize rendering speed over geometric precision and crisp edges."}],relevance:50,description:"Provides hints about what tradeoffs to make as it renders vector graphics elements such as <path> elements and basic shapes such as circles and rectangles.",restrictions:["enum"]},{name:"size",browsers:["C","O8"],atRule:"@page",syntax:"<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]",relevance:53,description:"The size CSS at-rule descriptor, used with the @page at-rule, defines the size and orientation of the box which is used to represent a page. Most of the time, this size corresponds to the target size of the printed page if applicable.",restrictions:["length"]},{name:"src",values:[{name:"url()",description:"Reference font by URL"},{name:"format()",description:"Optional hint describing the format of the font resource."},{name:"local()",description:"Format-specific string that identifies a locally available copy of a given font."}],atRule:"@font-face",syntax:"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#",relevance:86,description:"@font-face descriptor. Specifies the resource containing font data. It is required, whether the font is downloadable or locally installed.",restrictions:["enum","url","identifier"]},{name:"stop-color",browsers:["E80","FF72","S13.1","C80","O67"],relevance:50,description:"Indicates what color to use at that gradient stop.",restrictions:["color"]},{name:"stop-opacity",browsers:["E80","FF72","S13.1","C80","O67"],relevance:50,description:"Defines the opacity of a given gradient stop.",restrictions:["number(0-1)"]},{name:"stroke",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"url()",description:"A URL reference to a paint server element, which is an element that defines a paint server: 'hatch', 'linearGradient', 'mesh', 'pattern', 'radialGradient' and 'solidcolor'."},{name:"none",description:"No paint is applied in this layer."}],relevance:67,description:"Paints along the outline of the given graphical element.",restrictions:["color","enum","url"]},{name:"stroke-dasharray",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"none",description:"Indicates that no dashing is used."}],relevance:61,description:"Controls the pattern of dashes and gaps used to stroke paths.",restrictions:["length","percentage","number","enum"]},{name:"stroke-dashoffset",browsers:["E80","FF72","S13.1","C80","O67"],relevance:62,description:"Specifies the distance into the dash pattern to start the dash.",restrictions:["percentage","length"]},{name:"stroke-linecap",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"butt",description:"Indicates that the stroke for each subpath does not extend beyond its two endpoints."},{name:"round",description:"Indicates that at each end of each subpath, the shape representing the stroke will be extended by a half circle with a radius equal to the stroke width."},{name:"square",description:"Indicates that at the end of each subpath, the shape representing the stroke will be extended by a rectangle with the same width as the stroke width and whose length is half of the stroke width."}],relevance:53,description:"Specifies the shape to be used at the end of open subpaths when they are stroked.",restrictions:["enum"]},{name:"stroke-linejoin",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"bevel",description:"Indicates that a bevelled corner is to be used to join path segments."},{name:"miter",description:"Indicates that a sharp corner is to be used to join path segments."},{name:"round",description:"Indicates that a round corner is to be used to join path segments."}],relevance:51,description:"Specifies the shape to be used at the corners of paths or basic shapes when they are stroked.",restrictions:["enum"]},{name:"stroke-miterlimit",browsers:["E80","FF72","S13.1","C80","O67"],relevance:51,description:"When two line segments meet at a sharp angle and miter joins have been specified for 'stroke-linejoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path.",restrictions:["number"]},{name:"stroke-opacity",browsers:["E80","FF72","S13.1","C80","O67"],relevance:52,description:"Specifies the opacity of the painting operation used to stroke the current object.",restrictions:["number(0-1)"]},{name:"stroke-width",browsers:["E80","FF72","S13.1","C80","O67"],relevance:64,description:"Specifies the width of the stroke on the current object.",restrictions:["percentage","length"]},{name:"suffix",browsers:["FF33"],atRule:"@counter-style",syntax:"<symbol>",relevance:50,description:"@counter-style descriptor. Specifies a <symbol> that is appended to the marker representation.",restrictions:["image","string","identifier"]},{name:"system",browsers:["FF33"],values:[{name:"additive",description:'Represents "sign-value" numbering systems, which, rather than using reusing digits in different positions to change their value, define additional digits with much larger values, so that the value of the number can be obtained by adding all the digits together.'},{name:"alphabetic",description:'Interprets the list of counter symbols as digits to an alphabetic numbering system, similar to the default lower-alpha counter style, which wraps from "a", "b", "c", to "aa", "ab", "ac".'},{name:"cyclic",description:"Cycles repeatedly through its provided symbols, looping back to the beginning when it reaches the end of the list."},{name:"extends",description:"Use the algorithm of another counter style, but alter other aspects."},{name:"fixed",description:"Runs through its list of counter symbols once, then falls back."},{name:"numeric",description:"interprets the list of counter symbols as digits to a \"place-value\" numbering system, similar to the default 'decimal' counter style."},{name:"symbolic",description:"Cycles repeatedly through its provided symbols, doubling, tripling, etc. the symbols on each successive pass through the list."}],atRule:"@counter-style",syntax:"cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]",relevance:50,description:"@counter-style descriptor. Specifies which algorithm will be used to construct the counter's representation based on the counter value.",restrictions:["enum","integer"]},{name:"symbols",browsers:["FF33"],atRule:"@counter-style",syntax:"<symbol>+",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor.",restrictions:["image","string","identifier"]},{name:"table-layout",browsers:["E12","FF1","S1","C14","IE5","O7"],values:[{name:"auto",description:"Use any automatic table layout algorithm."},{name:"fixed",description:"Use the fixed table layout algorithm."}],syntax:"auto | fixed",relevance:58,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/table-layout"}],description:"Controls the algorithm used to lay out the table cells, rows, and columns.",restrictions:["enum"]},{name:"tab-size",browsers:["E79","FF91","S7","C21","O15"],syntax:"<integer> | <length>",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/tab-size"}],description:"Determines the width of the tab character (U+0009), in space characters (U+0020), when rendered.",restrictions:["integer","length"]},{name:"text-align",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"center",description:"The inline contents are centered within the line box."},{name:"end",browsers:["E12","FF1","S1","C1","IE3","O3.5"],description:"The inline contents are aligned to the end edge of the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."},{name:"start",browsers:["E12","FF1","S1","C1","IE3","O3.5"],description:"The inline contents are aligned to the start edge of the line box."}],syntax:"start | end | left | right | center | justify | match-parent",relevance:93,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-align"}],description:"Describes how inline contents of a block are horizontally aligned if the contents do not completely fill the line box.",restrictions:["string"]},{name:"text-align-last",browsers:["E12","FF49","S16","C47","IE5.5","O34"],values:[{name:"auto",description:"Content on the affected line is aligned per 'text-align' unless 'text-align' is set to 'justify', in which case it is 'start-aligned'."},{name:"center",description:"The inline contents are centered within the line box."},{name:"justify",description:"The text is justified according to the method specified by the 'text-justify' property."},{name:"left",description:"The inline contents are aligned to the left edge of the line box. In vertical text, 'left' aligns to the edge of the line box that would be the start edge for left-to-right text."},{name:"right",description:"The inline contents are aligned to the right edge of the line box. In vertical text, 'right' aligns to the edge of the line box that would be the end edge for left-to-right text."}],syntax:"auto | start | end | left | right | center | justify",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-align-last"}],description:"Describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.",restrictions:["enum"]},{name:"text-anchor",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"end",description:"The rendered characters are aligned such that the end of the resulting rendered text is at the initial current text position."},{name:"middle",description:"The rendered characters are aligned such that the geometric middle of the resulting rendered text is at the initial current text position."},{name:"start",description:"The rendered characters are aligned such that the start of the resulting rendered text is at the initial current text position."}],relevance:50,description:"Used to align (start-, middle- or end-alignment) a string of text relative to a given point.",restrictions:["enum"]},{name:"text-decoration",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Produces no line."},{name:"overline",description:"Each line of text has a line above it."},{name:"solid",description:"Produces a solid line."},{name:"underline",description:"Each line of text is underlined."},{name:"wavy",description:"Produces a wavy line."}],syntax:"<'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'> || <'text-decoration-thickness'>",relevance:91,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration"}],description:"Decorations applied to font used for an element's text.",restrictions:["enum","color"]},{name:"text-decoration-color",browsers:["E79","FF36","S12.1","C57","O44"],syntax:"<color>",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-color"}],description:"Specifies the color of text decoration (underlines overlines, and line-throughs) set on the element with text-decoration-line.",restrictions:["color"]},{name:"text-decoration-line",browsers:["E79","FF36","S12.1","C57","O44"],values:[{name:"line-through",description:"Each line of text has a line through the middle."},{name:"none",description:"Neither produces nor inhibits text decoration."},{name:"overline",description:"Each line of text has a line above it."},{name:"underline",description:"Each line of text is underlined."}],syntax:"none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-line"}],description:"Specifies what line decorations, if any, are added to the element.",restrictions:["enum"]},{name:"text-decoration-style",browsers:["E79","FF36","S12.1","C57","O44"],values:[{name:"dashed",description:"Produces a dashed line style."},{name:"dotted",description:"Produces a dotted line."},{name:"double",description:"Produces a double line."},{name:"none",description:"Produces no line."},{name:"solid",description:"Produces a solid line."},{name:"wavy",description:"Produces a wavy line."}],syntax:"solid | double | dotted | dashed | wavy",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-style"}],description:"Specifies the line style for underline, line-through and overline text decoration.",restrictions:["enum"]},{name:"text-indent",browsers:["E12","FF1","S1","C1","IE3","O3.5"],values:[],syntax:"<length-percentage> && hanging? && each-line?",relevance:67,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-indent"}],description:"Specifies the indentation applied to lines of inline content in a block. The indentation only affects the first line of inline content in the block unless the 'hanging' keyword is specified, in which case it affects all lines except the first.",restrictions:["percentage","length"]},{name:"text-justify",browsers:["E79","FF55","C32","IE11","O19"],values:[{name:"auto",description:"The UA determines the justification algorithm to follow, based on a balance between performance and adequate presentation quality."},{name:"distribute",description:"Justification primarily changes spacing both at word separators and at grapheme cluster boundaries in all scripts except those in the connected and cursive groups. This value is sometimes used in e.g. Japanese, often with the 'text-align-last' property."},{name:"distribute-all-lines"},{name:"inter-cluster",description:"Justification primarily changes spacing at word separators and at grapheme cluster boundaries in clustered scripts. This value is typically used for Southeast Asian scripts such as Thai."},{name:"inter-ideograph",description:"Justification primarily changes spacing at word separators and at inter-graphemic boundaries in scripts that use no word spaces. This value is typically used for CJK languages."},{name:"inter-word",description:"Justification primarily changes spacing at word separators. This value is typically used for languages that separate words using spaces, like English or (sometimes) Korean."},{name:"kashida",description:"Justification primarily stretches Arabic and related scripts through the use of kashida or other calligraphic elongation."},{name:"newspaper"}],syntax:"auto | inter-character | inter-word | none",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-justify"}],description:"Selects the justification algorithm used when 'text-align' is set to 'justify'. The property applies to block containers, but the UA may (but is not required to) also support it on inline elements.",restrictions:["enum"]},{name:"text-orientation",browsers:["E79","FF41","S14","C48","O35"],values:[{name:"sideways",browsers:["E79","FF41","S14","C48","O35"],description:"This value is equivalent to 'sideways-right' in 'vertical-rl' writing mode and equivalent to 'sideways-left' in 'vertical-lr' writing mode."},{name:"sideways-right",browsers:["E79","FF41","S14","C48","O35"],description:"In vertical writing modes, this causes text to be set as if in a horizontal layout, but rotated 90\xb0 clockwise."},{name:"upright",description:"In vertical writing modes, characters from horizontal-only scripts are rendered upright, i.e. in their standard horizontal orientation."}],syntax:"mixed | upright | sideways",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-orientation"}],description:"Specifies the orientation of text within a line.",restrictions:["enum"]},{name:"text-overflow",browsers:["E12","FF7","S1.3","C1","IE6","O11"],values:[{name:"clip",description:"Clip inline content that overflows. Characters may be only partially rendered."},{name:"ellipsis",description:"Render an ellipsis character (U+2026) to represent clipped inline content."}],syntax:"[ clip | ellipsis | <string> ]{1,2}",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-overflow"}],description:"Text can overflow for example when it is prevented from wrapping.",restrictions:["enum","string"]},{name:"text-rendering",browsers:["E79","FF1","S5","C4","O15"],values:[{name:"auto"},{name:"geometricPrecision",description:"Indicates that the user agent shall emphasize geometric precision over legibility and rendering speed."},{name:"optimizeLegibility",description:"Indicates that the user agent shall emphasize legibility over rendering speed and geometric precision."},{name:"optimizeSpeed",description:"Indicates that the user agent shall emphasize rendering speed over legibility and geometric precision."}],syntax:"auto | optimizeSpeed | optimizeLegibility | geometricPrecision",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-rendering"}],description:"The creator of SVG content might want to provide a hint to the implementation about what tradeoffs to make as it renders text. The 'text-rendering' property provides these hints.",restrictions:["enum"]},{name:"text-shadow",browsers:["E12","FF3.5","S1.1","C2","IE10","O9.5"],values:[{name:"none",description:"No shadow."}],syntax:"none | <shadow-t>#",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-shadow"}],description:"Enables shadow effects to be applied to the text of the element.",restrictions:["length","color"]},{name:"text-transform",browsers:["E12","FF1","S1","C1","IE4","O7"],values:[{name:"capitalize",description:"Puts the first typographic letter unit of each word in titlecase."},{name:"lowercase",description:"Puts all letters in lowercase."},{name:"none",description:"No effects."},{name:"uppercase",description:"Puts all letters in uppercase."}],syntax:"none | capitalize | uppercase | lowercase | full-width | full-size-kana",relevance:86,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-transform"}],description:"Controls capitalization effects of an element's text.",restrictions:["enum"]},{name:"text-underline-position",browsers:["E12","FF74","S12.1","C33","IE6","O20"],values:[{name:"above"},{name:"auto",description:"The user agent may use any algorithm to determine the underline's position. In horizontal line layout, the underline should be aligned as for alphabetic. In vertical line layout, if the language is set to Japanese or Korean, the underline should be aligned as for over."},{name:"below",description:"The underline is aligned with the under edge of the element's content box."}],syntax:"auto | from-font | [ under || [ left | right ] ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-underline-position"}],description:"Sets the position of an underline specified on the same element: it does not affect underlines specified by ancestor elements. This property is typically used in vertical writing contexts such as in Japanese documents where it often desired to have the underline appear 'over' (to the right of) the affected run of text",restrictions:["enum"]},{name:"top",browsers:["E12","FF1","S1","C1","IE5","O6"],values:[{name:"auto",description:"For non-replaced elements, the effect of this value depends on which of related properties have the value 'auto' as well"}],syntax:"<length> | <percentage> | auto",relevance:95,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/top"}],description:"Specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's 'containing block'.",restrictions:["length","percentage"]},{name:"touch-action",browsers:["E12","FF52","S13","C36","IE11","O23"],values:[{name:"auto",description:"The user agent may determine any permitted touch behaviors for touches that begin on the element."},{name:"cross-slide-x",browsers:["E12","FF52","S13","C36","IE11","O23"]},{name:"cross-slide-y",browsers:["E12","FF52","S13","C36","IE11","O23"]},{name:"double-tap-zoom",browsers:["E12","FF52","S13","C36","IE11","O23"]},{name:"manipulation",description:"The user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming."},{name:"none",description:"Touches that begin on the element must not trigger default touch behaviors."},{name:"pan-x",description:"The user agent may consider touches that begin on the element only for the purposes of horizontally scrolling the element's nearest ancestor with horizontally scrollable content."},{name:"pan-y",description:"The user agent may consider touches that begin on the element only for the purposes of vertically scrolling the element's nearest ancestor with vertically scrollable content."},{name:"pinch-zoom",browsers:["E12","FF52","S13","C36","IE11","O23"]}],syntax:"auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation",relevance:69,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/touch-action"}],description:"Determines whether touch input may trigger default behavior supplied by user agent.",restrictions:["enum"]},{name:"transform",browsers:["E12","FF16","S9","C36","IE10","O23"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective()",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],syntax:"none | <transform-list>",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform"}],description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"transform-origin",browsers:["E12","FF16","S9","C36","IE10","O23"],syntax:"[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?",relevance:76,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-origin"}],description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"transform-style",browsers:["E12","FF16","S9","C36","O23"],values:[{name:"flat",description:"All children of this element are rendered flattened into the 2D plane of the element."},{name:"preserve-3d",browsers:["E12","FF16","S9","C36","O23"],description:"Flattening is not performed, so children maintain their position in 3D space."}],syntax:"flat | preserve-3d",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-style"}],description:"Defines how nested elements are rendered in 3D space.",restrictions:["enum"]},{name:"transition",browsers:["E12","FF16","S9","C26","IE10","O12.1"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],syntax:"<single-transition>#",relevance:89,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition"}],description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"transition-delay",browsers:["E12","FF16","S9","C26","IE10","O12.1"],syntax:"<time>#",relevance:64,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-delay"}],description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"transition-duration",browsers:["E12","FF16","S9","C26","IE10","O12.1"],syntax:"<time>#",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-duration"}],description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"transition-property",browsers:["E12","FF16","S9","C26","IE10","O12.1"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],syntax:"none | <single-transition-property>#",relevance:68,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-property"}],description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"transition-timing-function",browsers:["E12","FF16","S9","C26","IE10","O12.1"],syntax:"<easing-function>#",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-timing-function"}],description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"unicode-bidi",browsers:["E12","FF1","S1.3","C2","IE5.5","O9.2"],values:[{name:"bidi-override",description:"Inside the element, reordering is strictly in sequence according to the 'direction' property; the implicit part of the bidirectional algorithm is ignored."},{name:"embed",description:"If the element is inline-level, this value opens an additional level of embedding with respect to the bidirectional algorithm. The direction of this embedding level is given by the 'direction' property."},{name:"isolate",browsers:["E12","FF1","S1.3","C2","IE5.5","O9.2"],description:"The contents of the element are considered to be inside a separate, independent paragraph."},{name:"isolate-override",browsers:["E12","FF1","S1.3","C2","IE5.5","O9.2"],description:"This combines the isolation behavior of 'isolate' with the directional override behavior of 'bidi-override'"},{name:"normal",description:"The element does not open an additional level of embedding with respect to the bidirectional algorithm. For inline-level elements, implicit reordering works across element boundaries."},{name:"plaintext",browsers:["E12","FF1","S1.3","C2","IE5.5","O9.2"],description:"For the purposes of the Unicode bidirectional algorithm, the base directionality of each bidi paragraph for which the element forms the containing block is determined not by the element's computed 'direction'."}],syntax:"normal | embed | isolate | bidi-override | isolate-override | plaintext",relevance:56,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/unicode-bidi"}],description:"The level of embedding with respect to the bidirectional algorithm.",restrictions:["enum"]},{name:"unicode-range",values:[{name:"U+26",description:"Ampersand."},{name:"U+20-24F, U+2B0-2FF, U+370-4FF, U+1E00-1EFF, U+2000-20CF, U+2100-23FF, U+2500-26FF, U+E000-F8FF, U+FB00-FB4F",description:"WGL4 character set (Pan-European)."},{name:"U+20-17F, U+2B0-2FF, U+2000-206F, U+20A0-20CF, U+2100-21FF, U+2600-26FF",description:"The Multilingual European Subset No. 1. Latin. Covers ~44 languages."},{name:"U+20-2FF, U+370-4FF, U+1E00-20CF, U+2100-23FF, U+2500-26FF, U+FB00-FB4F, U+FFF0-FFFD",description:"The Multilingual European Subset No. 2. Latin, Greek, and Cyrillic. Covers ~128 language."},{name:"U+20-4FF, U+530-58F, U+10D0-10FF, U+1E00-23FF, U+2440-245F, U+2500-26FF, U+FB00-FB4F, U+FE20-FE2F, U+FFF0-FFFD",description:"The Multilingual European Subset No. 3. Covers all characters belonging to European scripts."},{name:"U+00-7F",description:"Basic Latin (ASCII)."},{name:"U+80-FF",description:"Latin-1 Supplement. Accented characters for Western European languages, common punctuation characters, multiplication and division signs."},{name:"U+100-17F",description:"Latin Extended-A. Accented characters for for Czech, Dutch, Polish, and Turkish."},{name:"U+180-24F",description:"Latin Extended-B. Croatian, Slovenian, Romanian, Non-European and historic latin, Khoisan, Pinyin, Livonian, Sinology."},{name:"U+1E00-1EFF",description:"Latin Extended Additional. Vietnamese, German captial sharp s, Medievalist, Latin general use."},{name:"U+250-2AF",description:"International Phonetic Alphabet Extensions."},{name:"U+370-3FF",description:"Greek and Coptic."},{name:"U+1F00-1FFF",description:"Greek Extended. Accented characters for polytonic Greek."},{name:"U+400-4FF",description:"Cyrillic."},{name:"U+500-52F",description:"Cyrillic Supplement. Extra letters for Komi, Khanty, Chukchi, Mordvin, Kurdish, Aleut, Chuvash, Abkhaz, Azerbaijani, and Orok."},{name:"U+00-52F, U+1E00-1FFF, U+2200-22FF",description:"Latin, Greek, Cyrillic, some punctuation and symbols."},{name:"U+530-58F",description:"Armenian."},{name:"U+590-5FF",description:"Hebrew."},{name:"U+600-6FF",description:"Arabic."},{name:"U+750-77F",description:"Arabic Supplement. Additional letters for African languages, Khowar, Torwali, Burushaski, and early Persian."},{name:"U+8A0-8FF",description:"Arabic Extended-A. Additional letters for African languages, European and Central Asian languages, Rohingya, Tamazight, Arwi, and Koranic annotation signs."},{name:"U+700-74F",description:"Syriac."},{name:"U+900-97F",description:"Devanagari."},{name:"U+980-9FF",description:"Bengali."},{name:"U+A00-A7F",description:"Gurmukhi."},{name:"U+A80-AFF",description:"Gujarati."},{name:"U+B00-B7F",description:"Oriya."},{name:"U+B80-BFF",description:"Tamil."},{name:"U+C00-C7F",description:"Telugu."},{name:"U+C80-CFF",description:"Kannada."},{name:"U+D00-D7F",description:"Malayalam."},{name:"U+D80-DFF",description:"Sinhala."},{name:"U+118A0-118FF",description:"Warang Citi."},{name:"U+E00-E7F",description:"Thai."},{name:"U+1A20-1AAF",description:"Tai Tham."},{name:"U+AA80-AADF",description:"Tai Viet."},{name:"U+E80-EFF",description:"Lao."},{name:"U+F00-FFF",description:"Tibetan."},{name:"U+1000-109F",description:"Myanmar (Burmese)."},{name:"U+10A0-10FF",description:"Georgian."},{name:"U+1200-137F",description:"Ethiopic."},{name:"U+1380-139F",description:"Ethiopic Supplement. Extra Syllables for Sebatbeit, and Tonal marks"},{name:"U+2D80-2DDF",description:"Ethiopic Extended. Extra Syllables for Me'en, Blin, and Sebatbeit."},{name:"U+AB00-AB2F",description:"Ethiopic Extended-A. Extra characters for Gamo-Gofa-Dawro, Basketo, and Gumuz."},{name:"U+1780-17FF",description:"Khmer."},{name:"U+1800-18AF",description:"Mongolian."},{name:"U+1B80-1BBF",description:"Sundanese."},{name:"U+1CC0-1CCF",description:"Sundanese Supplement. Punctuation."},{name:"U+4E00-9FD5",description:"CJK (Chinese, Japanese, Korean) Unified Ideographs. Most common ideographs for modern Chinese and Japanese."},{name:"U+3400-4DB5",description:"CJK Unified Ideographs Extension A. Rare ideographs."},{name:"U+2F00-2FDF",description:"Kangxi Radicals."},{name:"U+2E80-2EFF",description:"CJK Radicals Supplement. Alternative forms of Kangxi Radicals."},{name:"U+1100-11FF",description:"Hangul Jamo."},{name:"U+AC00-D7AF",description:"Hangul Syllables."},{name:"U+3040-309F",description:"Hiragana."},{name:"U+30A0-30FF",description:"Katakana."},{name:"U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F",description:"Japanese Kanji, Hiragana and Katakana characters plus Yen/Yuan symbol."},{name:"U+A4D0-A4FF",description:"Lisu."},{name:"U+A000-A48F",description:"Yi Syllables."},{name:"U+A490-A4CF",description:"Yi Radicals."},{name:"U+2000-206F",description:"General Punctuation."},{name:"U+3000-303F",description:"CJK Symbols and Punctuation."},{name:"U+2070-209F",description:"Superscripts and Subscripts."},{name:"U+20A0-20CF",description:"Currency Symbols."},{name:"U+2100-214F",description:"Letterlike Symbols."},{name:"U+2150-218F",description:"Number Forms."},{name:"U+2190-21FF",description:"Arrows."},{name:"U+2200-22FF",description:"Mathematical Operators."},{name:"U+2300-23FF",description:"Miscellaneous Technical."},{name:"U+E000-F8FF",description:"Private Use Area."},{name:"U+FB00-FB4F",description:"Alphabetic Presentation Forms. Ligatures for latin, Armenian, and Hebrew."},{name:"U+FB50-FDFF",description:"Arabic Presentation Forms-A. Contextual forms / ligatures for Persian, Urdu, Sindhi, Central Asian languages, etc, Arabic pedagogical symbols, word ligatures."},{name:"U+1F600-1F64F",description:"Emoji: Emoticons."},{name:"U+2600-26FF",description:"Emoji: Miscellaneous Symbols."},{name:"U+1F300-1F5FF",description:"Emoji: Miscellaneous Symbols and Pictographs."},{name:"U+1F900-1F9FF",description:"Emoji: Supplemental Symbols and Pictographs."},{name:"U+1F680-1F6FF",description:"Emoji: Transport and Map Symbols."}],atRule:"@font-face",syntax:"<unicode-range>#",relevance:72,description:"@font-face descriptor. Defines the set of Unicode codepoints that may be supported by the font face for which it is declared.",restrictions:["unicode-range"]},{name:"user-select",browsers:["E79","FF69","S3","C54","IE10","O41"],values:[{name:"all",description:"The content of the element must be selected atomically"},{name:"auto"},{name:"contain",description:"UAs must not allow a selection which is started in this element to be extended outside of this element."},{name:"none",description:"The UA must not allow selections to be started in this element."},{name:"text",description:"The element imposes no constraint on the selection."}],syntax:"auto | text | none | contain | all",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/user-select"}],description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"vertical-align",browsers:["E12","FF1","S1","C1","IE4","O4"],values:[{name:"auto",description:"Align the dominant baseline of the parent box with the equivalent, or heuristically reconstructed, baseline of the element inline box."},{name:"baseline",description:"Align the 'alphabetic' baseline of the element with the 'alphabetic' baseline of the parent element."},{name:"bottom",description:"Align the after edge of the extended inline box with the after-edge of the line box."},{name:"middle",description:"Align the 'middle' baseline of the inline element with the middle baseline of the parent."},{name:"sub",description:"Lower the baseline of the box to the proper position for subscripts of the parent's box. (This value has no effect on the font size of the element's text.)"},{name:"super",description:"Raise the baseline of the box to the proper position for superscripts of the parent's box. (This value has no effect on the font size of the element's text.)"},{name:"text-bottom",description:"Align the bottom of the box with the after-edge of the parent element's font."},{name:"text-top",description:"Align the top of the box with the before-edge of the parent element's font."},{name:"top",description:"Align the before edge of the extended inline box with the before-edge of the line box."},{name:"-webkit-baseline-middle",browsers:["E12","FF1","S1","C1","IE4","O4"]}],syntax:"baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>",relevance:90,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/vertical-align"}],description:"Affects the vertical positioning of the inline boxes generated by an inline-level element inside a line box.",restrictions:["percentage","length"]},{name:"visibility",browsers:["E12","FF1","S1","C1","IE4","O4"],values:[{name:"collapse",description:"Table-specific. If used on elements other than rows, row groups, columns, or column groups, 'collapse' has the same meaning as 'hidden'."},{name:"hidden",description:"The generated box is invisible (fully transparent, nothing is drawn), but still affects layout."},{name:"visible",description:"The generated box is visible."}],syntax:"visible | hidden | collapse",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/visibility"}],description:"Specifies whether the boxes generated by an element are rendered. Invisible boxes still affect layout (set the 'display' property to 'none' to suppress box generation altogether).",restrictions:["enum"]},{name:"-webkit-animation",browsers:["C","S5"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","enum","timing-function","identifier","number"]},{name:"-webkit-animation-delay",browsers:["C","S5"],relevance:50,description:"Defines when the animation will start.",restrictions:["time"]},{name:"-webkit-animation-direction",browsers:["C","S5"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],relevance:50,description:"Defines whether or not the animation should play in reverse on alternate cycles.",restrictions:["enum"]},{name:"-webkit-animation-duration",browsers:["C","S5"],relevance:50,description:"Defines the length of time that an animation takes to complete one cycle.",restrictions:["time"]},{name:"-webkit-animation-fill-mode",browsers:["C","S5"],values:[{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"none",description:"There is no change to the property value between the time the animation is applied and the time the animation begins playing or after the animation completes."}],relevance:50,description:"Defines what values are applied by the animation outside the time it is executing.",restrictions:["enum"]},{name:"-webkit-animation-iteration-count",browsers:["C","S5"],values:[{name:"infinite",description:"Causes the animation to repeat forever."}],relevance:50,description:"Defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once.",restrictions:["number","enum"]},{name:"-webkit-animation-name",browsers:["C","S5"],values:[{name:"none",description:"No animation is performed"}],relevance:50,description:"Defines a list of animations that apply. Each name is used to select the keyframe at-rule that provides the property values for the animation.",restrictions:["identifier","enum"]},{name:"-webkit-animation-play-state",browsers:["C","S5"],values:[{name:"paused",description:"A running animation will be paused."},{name:"running",description:"Resume playback of a paused animation."}],relevance:50,description:"Defines whether the animation is running or paused.",restrictions:["enum"]},{name:"-webkit-animation-timing-function",browsers:["C","S5"],relevance:50,description:"Describes how the animation will progress over one cycle of its duration. See the 'transition-timing-function'.",restrictions:["timing-function"]},{name:"-webkit-appearance",browsers:["C","S3"],values:[{name:"button"},{name:"button-bevel"},{name:"caps-lock-indicator"},{name:"caret"},{name:"checkbox"},{name:"default-button"},{name:"listbox"},{name:"listitem"},{name:"media-fullscreen-button"},{name:"media-mute-button"},{name:"media-play-button"},{name:"media-seek-back-button"},{name:"media-seek-forward-button"},{name:"media-slider"},{name:"media-sliderthumb"},{name:"menulist"},{name:"menulist-button"},{name:"menulist-text"},{name:"menulist-textfield"},{name:"none"},{name:"push-button"},{name:"radio"},{name:"scrollbarbutton-down"},{name:"scrollbarbutton-left"},{name:"scrollbarbutton-right"},{name:"scrollbarbutton-up"},{name:"scrollbargripper-horizontal"},{name:"scrollbargripper-vertical"},{name:"scrollbarthumb-horizontal"},{name:"scrollbarthumb-vertical"},{name:"scrollbartrack-horizontal"},{name:"scrollbartrack-vertical"},{name:"searchfield"},{name:"searchfield-cancel-button"},{name:"searchfield-decoration"},{name:"searchfield-results-button"},{name:"searchfield-results-decoration"},{name:"slider-horizontal"},{name:"sliderthumb-horizontal"},{name:"sliderthumb-vertical"},{name:"slider-vertical"},{name:"square-button"},{name:"textarea"},{name:"textfield"}],status:"nonstandard",syntax:"none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button",relevance:0,description:"Changes the appearance of buttons and other controls to resemble native controls.",restrictions:["enum"]},{name:"-webkit-backdrop-filter",browsers:["S9"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",description:"A filter reference to a <filter> element."}],relevance:50,description:"Applies a filter effect where the first filter in the list takes the element's background image as the input image.",restrictions:["enum","url"]},{name:"-webkit-backface-visibility",browsers:["C","S5"],values:[{name:"hidden"},{name:"visible"}],relevance:50,description:"Determines whether or not the 'back' side of a transformed element is visible when facing the viewer. With an identity transform, the front side of an element faces the viewer.",restrictions:["enum"]},{name:"-webkit-background-clip",browsers:["C","S3"],relevance:50,description:"Determines the background painting area.",restrictions:["box"]},{name:"-webkit-background-composite",browsers:["C","S3"],values:[{name:"border"},{name:"padding"}],relevance:50,restrictions:["enum"]},{name:"-webkit-background-origin",browsers:["C","S3"],relevance:50,description:"For elements rendered as a single box, specifies the background positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes 'box-decoration-break' operates on to determine the background positioning area(s).",restrictions:["box"]},{name:"-webkit-border-image",browsers:["C","S5"],values:[{name:"auto",description:"If 'auto' is specified then the border image width is the intrinsic width or height (whichever is applicable) of the corresponding image slice. If the image does not have the required intrinsic dimension then the corresponding border-width is used instead."},{name:"fill",description:"Causes the middle part of the border-image to be preserved."},{name:"none"},{name:"repeat",description:"The image is tiled (repeated) to fill the area."},{name:"round",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does."},{name:"space",description:"The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles."},{name:"stretch",description:"The image is stretched to fill the area."},{name:"url()"}],relevance:50,description:"Shorthand property for setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat'. Omitted values are set to their initial values.",restrictions:["length","percentage","number","url","enum"]},{name:"-webkit-box-align",browsers:["C","S3"],values:[{name:"baseline",description:"If this box orientation is inline-axis or horizontal, all children are placed with their baselines aligned, and extra space placed before or after as necessary. For block flows, the baseline of the first non-empty line box located within the element is used. For tables, the baseline of the first cell is used."},{name:"center",description:"Any extra space is divided evenly, with half placed above the child and the other half placed after the child."},{name:"end",description:"For normal direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element. For reverse direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element."},{name:"start",description:"For normal direction boxes, the top edge of each child is placed along the top of the box. Extra space is placed below the element. For reverse direction boxes, the bottom edge of each child is placed along the bottom of the box. Extra space is placed above the element."},{name:"stretch",description:"The height of each child is adjusted to that of the containing block."}],relevance:50,description:"Specifies the alignment of nested elements within an outer flexible box element.",restrictions:["enum"]},{name:"-webkit-box-direction",browsers:["C","S3"],values:[{name:"normal",description:"A box with a computed value of horizontal for box-orient displays its children from left to right. A box with a computed value of vertical displays its children from top to bottom."},{name:"reverse",description:"A box with a computed value of horizontal for box-orient displays its children from right to left. A box with a computed value of vertical displays its children from bottom to top."}],relevance:50,description:"In webkit applications, -webkit-box-direction specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge).",restrictions:["enum"]},{name:"-webkit-box-flex",browsers:["C","S3"],relevance:50,description:"Specifies an element's flexibility.",restrictions:["number"]},{name:"-webkit-box-flex-group",browsers:["C","S3"],relevance:50,description:"Flexible elements can be assigned to flex groups using the 'box-flex-group' property.",restrictions:["integer"]},{name:"-webkit-box-ordinal-group",browsers:["C","S3"],relevance:50,description:"Indicates the ordinal group the element belongs to. Elements with a lower ordinal group are displayed before those with a higher ordinal group.",restrictions:["integer"]},{name:"-webkit-box-orient",browsers:["C","S3"],values:[{name:"block-axis",description:"Elements are oriented along the box's axis."},{name:"horizontal",description:"The box displays its children from left to right in a horizontal line."},{name:"inline-axis",description:"Elements are oriented vertically."},{name:"vertical",description:"The box displays its children from stacked from top to bottom vertically."}],relevance:50,description:"In webkit applications, -webkit-box-orient specifies whether a box lays out its contents horizontally or vertically.",restrictions:["enum"]},{name:"-webkit-box-pack",browsers:["C","S3"],values:[{name:"center",description:"The extra space is divided evenly, with half placed before the first child and the other half placed after the last child."},{name:"end",description:"For normal direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child. For reverse direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child."},{name:"justify",description:"The space is divided evenly in-between each child, with none of the extra space placed before the first child or after the last child. If there is only one child, treat the pack value as if it were start."},{name:"start",description:"For normal direction boxes, the left edge of the first child is placed at the left side, with all extra space placed after the last child. For reverse direction boxes, the right edge of the last child is placed at the right side, with all extra space placed before the first child."}],relevance:50,description:"Specifies alignment of child elements within the current element in the direction of orientation.",restrictions:["enum"]},{name:"-webkit-box-reflect",browsers:["E79","S4","C4","O15"],values:[{name:"above",description:"The reflection appears above the border box."},{name:"below",description:"The reflection appears below the border box."},{name:"left",description:"The reflection appears to the left of the border box."},{name:"right",description:"The reflection appears to the right of the border box."}],status:"nonstandard",syntax:"[ above | below | right | left ]? <length>? <image>?",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect"}],description:"Defines a reflection of a border box."},{name:"-webkit-box-sizing",browsers:["C","S3"],values:[{name:"border-box",description:"The specified width and height (and respective min/max properties) on this element determine the border box of the element."},{name:"content-box",description:"Behavior of width and height as specified by CSS2.1. The specified width and height (and respective min/max properties) apply to the width and height respectively of the content box of the element."}],relevance:50,description:"Box Model addition in CSS3.",restrictions:["enum"]},{name:"-webkit-break-after",browsers:["S7"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-break-before",browsers:["S7"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-break-inside",browsers:["S7"],values:[{name:"auto",description:"Neither force nor forbid a page/column break inside the generated box."},{name:"avoid",description:"Avoid a page/column break inside the generated box."},{name:"avoid-column",description:"Avoid a column break inside the generated box."},{name:"avoid-page",description:"Avoid a page break inside the generated box."},{name:"avoid-region"}],relevance:50,description:"Describes the page/column break behavior inside the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-after",browsers:["E80","S13.1","C80","O67"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-before",browsers:["E80","S13.1","C80","O67"],values:[{name:"always",description:"Always force a page break before/after the generated box."},{name:"auto",description:"Neither force nor forbid a page/column break before/after the generated box."},{name:"avoid",description:"Avoid a page/column break before/after the generated box."},{name:"avoid-column",description:"Avoid a column break before/after the generated box."},{name:"avoid-page",description:"Avoid a page break before/after the generated box."},{name:"avoid-region"},{name:"column",description:"Always force a column break before/after the generated box."},{name:"left",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a left page."},{name:"page",description:"Always force a page break before/after the generated box."},{name:"region"},{name:"right",description:"Force one or two page breaks before/after the generated box so that the next page is formatted as a right page."}],relevance:50,description:"Describes the page/column break behavior before the generated box.",restrictions:["enum"]},{name:"-webkit-column-break-inside",browsers:["E80","S13.1","C80","O67"],values:[{name:"auto",description:"Neither force nor forbid a page/column break inside the generated box."},{name:"avoid",description:"Avoid a page/column break inside the generated box."},{name:"avoid-column",description:"Avoid a column break inside the generated box."},{name:"avoid-page",description:"Avoid a page break inside the generated box."},{name:"avoid-region"}],relevance:50,description:"Describes the page/column break behavior inside the generated box.",restrictions:["enum"]},{name:"-webkit-column-count",browsers:["C","S3"],values:[{name:"auto",description:"Determines the number of columns by the 'column-width' property and the element width."}],relevance:50,description:"Describes the optimal number of columns into which the content of the element will be flowed.",restrictions:["integer"]},{name:"-webkit-column-gap",browsers:["C","S3"],values:[{name:"normal",description:"User agent specific and typically equivalent to 1em."}],relevance:50,description:"Sets the gap between columns. If there is a column rule between columns, it will appear in the middle of the gap.",restrictions:["length"]},{name:"-webkit-column-rule",browsers:["C","S3"],relevance:50,description:"This property is a shorthand for setting 'column-rule-width', 'column-rule-style', and 'column-rule-color' at the same place in the style sheet. Omitted values are set to their initial values.",restrictions:["length","line-width","line-style","color"]},{name:"-webkit-column-rule-color",browsers:["C","S3"],relevance:50,description:"Sets the color of the column rule",restrictions:["color"]},{name:"-webkit-column-rule-style",browsers:["C","S3"],relevance:50,description:"Sets the style of the rule between columns of an element.",restrictions:["line-style"]},{name:"-webkit-column-rule-width",browsers:["C","S3"],relevance:50,description:"Sets the width of the rule between columns. Negative values are not allowed.",restrictions:["length","line-width"]},{name:"-webkit-columns",browsers:["C","S3"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"A shorthand property which sets both 'column-width' and 'column-count'.",restrictions:["length","integer"]},{name:"-webkit-column-span",browsers:["C","S3"],values:[{name:"all",description:"The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appear."},{name:"none",description:"The element does not span multiple columns."}],relevance:50,description:"Describes the page/column break behavior after the generated box.",restrictions:["enum"]},{name:"-webkit-column-width",browsers:["C","S3"],values:[{name:"auto",description:"The width depends on the values of other properties."}],relevance:50,description:"This property describes the width of columns in multicol elements.",restrictions:["length"]},{name:"-webkit-filter",browsers:["C18","O15","S6"],values:[{name:"none",description:"No filter effects are applied."},{name:"blur()",description:"Applies a Gaussian blur to the input image."},{name:"brightness()",description:"Applies a linear multiplier to input image, making it appear more or less bright."},{name:"contrast()",description:"Adjusts the contrast of the input."},{name:"drop-shadow()",description:"Applies a drop shadow effect to the input image."},{name:"grayscale()",description:"Converts the input image to grayscale."},{name:"hue-rotate()",description:"Applies a hue rotation on the input image. "},{name:"invert()",description:"Inverts the samples in the input image."},{name:"opacity()",description:"Applies transparency to the samples in the input image."},{name:"saturate()",description:"Saturates the input image."},{name:"sepia()",description:"Converts the input image to sepia."},{name:"url()",description:"A filter reference to a <filter> element."}],relevance:50,description:"Processes an element's rendering before it is displayed in the document, by applying one or more filter effects.",restrictions:["enum","url"]},{name:"-webkit-flow-from",browsers:["S6.1"],values:[{name:"none",description:"The block container is not a CSS Region."}],relevance:50,description:"Makes a block container a region and associates it with a named flow.",restrictions:["identifier"]},{name:"-webkit-flow-into",browsers:["S6.1"],values:[{name:"none",description:"The element is not moved to a named flow and normal CSS processing takes place."}],relevance:50,description:"Places an element or its contents into a named flow.",restrictions:["identifier"]},{name:"-webkit-font-feature-settings",browsers:["C16"],values:[{name:'"c2cs"'},{name:'"dlig"'},{name:'"kern"'},{name:'"liga"'},{name:'"lnum"'},{name:'"onum"'},{name:'"smcp"'},{name:'"swsh"'},{name:'"tnum"'},{name:"normal",description:"No change in glyph substitution or positioning occurs."},{name:"off"},{name:"on"}],relevance:50,description:"This property provides low-level control over OpenType font features. It is intended as a way of providing access to font features that are not widely used but are needed for a particular use case.",restrictions:["string","integer"]},{name:"-webkit-hyphens",browsers:["S5.1"],values:[{name:"auto",description:"Conditional hyphenation characters inside a word, if present, take priority over automatic resources when determining hyphenation points within the word."},{name:"manual",description:"Words are only broken at line breaks where there are characters inside the word that suggest line break opportunities"},{name:"none",description:"Words are not broken at line breaks, even if characters inside the word suggest line break points."}],relevance:50,description:"Controls whether hyphenation is allowed to create more break opportunities within a line of text.",restrictions:["enum"]},{name:"-webkit-line-break",browsers:["C","S3"],values:[{name:"after-white-space"},{name:"normal"}],relevance:50,description:"Specifies line-breaking rules for CJK (Chinese, Japanese, and Korean) text."},{name:"-webkit-margin-bottom-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-margin-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-margin-start",browsers:["C","S3"],values:[{name:"auto"}],relevance:50,restrictions:["percentage","length"]},{name:"-webkit-margin-top-collapse",browsers:["C","S3"],values:[{name:"collapse"},{name:"discard"},{name:"separate"}],relevance:50,restrictions:["enum"]},{name:"-webkit-mask-clip",browsers:["C","O15","S4"],status:"nonstandard",syntax:"[ <box> | border | padding | content | text ]#",relevance:0,description:"Determines the mask painting area, which determines the area that is affected by the mask.",restrictions:["box"]},{name:"-webkit-mask-image",browsers:["C","O15","S4"],values:[{name:"none",description:"Counts as a transparent black image layer."},{name:"url()",description:"Reference to a <mask element or to a CSS image."}],status:"nonstandard",syntax:"<mask-reference>#",relevance:0,description:"Sets the mask layer image of an element.",restrictions:["url","image","enum"]},{name:"-webkit-mask-origin",browsers:["C","O15","S4"],status:"nonstandard",syntax:"[ <box> | border | padding | content ]#",relevance:0,description:"Specifies the mask positioning area.",restrictions:["box"]},{name:"-webkit-mask-repeat",browsers:["C","O15","S4"],status:"nonstandard",syntax:"<repeat-style>#",relevance:0,description:"Specifies how mask layer images are tiled after they have been sized and positioned.",restrictions:["repeat"]},{name:"-webkit-mask-size",browsers:["C","O15","S4"],values:[{name:"auto",description:"Resolved by using the image's intrinsic ratio and the size of the other dimension, or failing that, using the image's intrinsic size, or failing that, treating it as 100%."},{name:"contain",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area."},{name:"cover",description:"Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area."}],status:"nonstandard",syntax:"<bg-size>#",relevance:0,description:"Specifies the size of the mask layer images.",restrictions:["length","percentage","enum"]},{name:"-webkit-nbsp-mode",browsers:["S13.1"],values:[{name:"normal"},{name:"space"}],relevance:50,description:"Defines the behavior of nonbreaking spaces within text."},{name:"-webkit-overflow-scrolling",browsers:["C","S5"],values:[{name:"auto"},{name:"touch"}],status:"nonstandard",syntax:"auto | touch",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-overflow-scrolling"}],description:"Specifies whether to use native-style scrolling in an overflow:scroll element."},{name:"-webkit-padding-start",browsers:["C","S3"],relevance:50,restrictions:["percentage","length"]},{name:"-webkit-perspective",browsers:["C","S4"],values:[{name:"none",description:"No perspective transform is applied."}],relevance:50,description:"Applies the same transform as the perspective(<number>) transform function, except that it applies only to the positioned or transformed children of the element, not to the transform on the element itself.",restrictions:["length"]},{name:"-webkit-perspective-origin",browsers:["C","S4"],relevance:50,description:"Establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.",restrictions:["position","percentage","length"]},{name:"-webkit-region-fragment",browsers:["S7"],values:[{name:"auto",description:"Content flows as it would in a regular content box."},{name:"break",description:"If the content fits within the CSS Region, then this property has no effect."}],relevance:50,description:"The 'region-fragment' property controls the behavior of the last region associated with a named flow.",restrictions:["enum"]},{name:"-webkit-tap-highlight-color",browsers:["E12","C16","O15"],status:"nonstandard",syntax:"<color>",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color"}],restrictions:["color"]},{name:"-webkit-text-fill-color",browsers:["E12","FF49","S3","C1","O15"],syntax:"<color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color"}],restrictions:["color"]},{name:"-webkit-text-size-adjust",browsers:["E","C","S3"],values:[{name:"auto",description:"Renderers must use the default size adjustment when displaying on a small device."},{name:"none",description:"Renderers must not do size adjustment when displaying on a small device."}],relevance:50,description:"Specifies a size adjustment for displaying text content in mobile browsers.",restrictions:["percentage"]},{name:"-webkit-text-stroke",browsers:["E15","FF49","S3","C4","O15"],syntax:"<length> || <color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke"}],restrictions:["length","line-width","color","percentage"]},{name:"-webkit-text-stroke-color",browsers:["E15","FF49","S3","C1","O15"],syntax:"<color>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color"}],restrictions:["color"]},{name:"-webkit-text-stroke-width",browsers:["E15","FF49","S3","C1","O15"],syntax:"<length>",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width"}],restrictions:["length","line-width","percentage"]},{name:"-webkit-touch-callout",browsers:["S3"],values:[{name:"none"}],status:"nonstandard",syntax:"default | none",relevance:0,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout"}],restrictions:["enum"]},{name:"-webkit-transform",browsers:["C","O12","S3.1"],values:[{name:"matrix()",description:"Specifies a 2D transformation in the form of a transformation matrix of six values. matrix(a,b,c,d,e,f) is equivalent to applying the transformation matrix [a b c d e f]"},{name:"matrix3d()",description:"Specifies a 3D transformation as a 4x4 homogeneous matrix of 16 values in column-major order."},{name:"none"},{name:"perspective()",description:"Specifies a perspective projection matrix."},{name:"rotate()",description:"Specifies a 2D rotation by the angle specified in the parameter about the origin of the element, as defined by the transform-origin property."},{name:"rotate3d()",description:"Specifies a clockwise 3D rotation by the angle specified in last parameter about the [x,y,z] direction vector described by the first 3 parameters."},{name:"rotateX('angle')",description:"Specifies a clockwise rotation by the given angle about the X axis."},{name:"rotateY('angle')",description:"Specifies a clockwise rotation by the given angle about the Y axis."},{name:"rotateZ('angle')",description:"Specifies a clockwise rotation by the given angle about the Z axis."},{name:"scale()",description:"Specifies a 2D scale operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it is takes a value equal to the first."},{name:"scale3d()",description:"Specifies a 3D scale operation by the [sx,sy,sz] scaling vector described by the 3 parameters."},{name:"scaleX()",description:"Specifies a scale operation using the [sx,1] scaling vector, where sx is given as the parameter."},{name:"scaleY()",description:"Specifies a scale operation using the [sy,1] scaling vector, where sy is given as the parameter."},{name:"scaleZ()",description:"Specifies a scale operation using the [1,1,sz] scaling vector, where sz is given as the parameter."},{name:"skew()",description:"Specifies a skew transformation along the X and Y axes. The first angle parameter specifies the skew on the X axis. The second angle parameter specifies the skew on the Y axis. If the second parameter is not given then a value of 0 is used for the Y angle (ie: no skew on the Y axis)."},{name:"skewX()",description:"Specifies a skew transformation along the X axis by the given angle."},{name:"skewY()",description:"Specifies a skew transformation along the Y axis by the given angle."},{name:"translate()",description:"Specifies a 2D translation by the vector [tx, ty], where tx is the first translation-value parameter and ty is the optional second translation-value parameter."},{name:"translate3d()",description:"Specifies a 3D translation by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively."},{name:"translateX()",description:"Specifies a translation by the given amount in the X direction."},{name:"translateY()",description:"Specifies a translation by the given amount in the Y direction."},{name:"translateZ()",description:"Specifies a translation by the given amount in the Z direction. Note that percentage values are not allowed in the translateZ translation-value, and if present are evaluated as 0."}],relevance:50,description:"A two-dimensional transformation is applied to an element through the 'transform' property. This property contains a list of transform functions similar to those allowed by SVG.",restrictions:["enum"]},{name:"-webkit-transform-origin",browsers:["C","O15","S3.1"],relevance:50,description:"Establishes the origin of transformation for an element.",restrictions:["position","length","percentage"]},{name:"-webkit-transform-origin-x",browsers:["E80","S13.1","C80","O67"],relevance:50,description:"The x coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-origin-y",browsers:["E80","S13.1","C80","O67"],relevance:50,description:"The y coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-origin-z",browsers:["E80","S13.1","C80","O67"],relevance:50,description:"The z coordinate of the origin for transforms applied to an element with respect to its border box.",restrictions:["length","percentage"]},{name:"-webkit-transform-style",browsers:["C","S4"],values:[{name:"flat",description:"All children of this element are rendered flattened into the 2D plane of the element."}],relevance:50,description:"Defines how nested elements are rendered in 3D space.",restrictions:["enum"]},{name:"-webkit-transition",browsers:["C","O12","S5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Shorthand property combines four of the transition properties into a single property.",restrictions:["time","property","timing-function","enum"]},{name:"-webkit-transition-delay",browsers:["C","O12","S5"],relevance:50,description:"Defines when the transition will start. It allows a transition to begin execution some period of time from when it is applied.",restrictions:["time"]},{name:"-webkit-transition-duration",browsers:["C","O12","S5"],relevance:50,description:"Specifies how long the transition from the old value to the new value should take.",restrictions:["time"]},{name:"-webkit-transition-property",browsers:["C","O12","S5"],values:[{name:"all",description:"Every property that is able to undergo a transition will do so."},{name:"none",description:"No property will transition."}],relevance:50,description:"Specifies the name of the CSS property to which the transition is applied.",restrictions:["property"]},{name:"-webkit-transition-timing-function",browsers:["C","O12","S5"],relevance:50,description:"Describes how the intermediate values used during a transition will be calculated.",restrictions:["timing-function"]},{name:"-webkit-user-drag",browsers:["E80","S13.1","C80","O67"],values:[{name:"auto"},{name:"element"},{name:"none"}],relevance:50,restrictions:["enum"]},{name:"-webkit-user-modify",browsers:["E80","S13.1","C80","O67"],values:[{name:"read-only"},{name:"read-write"},{name:"read-write-plaintext-only"}],syntax:"read-only | read-write | read-write-plaintext-only",relevance:50,description:"Determines whether a user can edit the content of an element.",restrictions:["enum"]},{name:"-webkit-user-select",browsers:["C","S3"],values:[{name:"auto"},{name:"none"},{name:"text"}],relevance:50,description:"Controls the appearance of selection.",restrictions:["enum"]},{name:"widows",browsers:["E12","S1.3","C25","IE8","O9.2"],syntax:"<integer>",relevance:51,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/widows"}],description:"Specifies the minimum number of line boxes of a block container that must be left in a fragment after a break.",restrictions:["integer"]},{name:"width",browsers:["E12","FF1","S1","C1","IE4","O3.5"],values:[{name:"auto",description:"The width depends on the values of other properties."},{name:"fit-content",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"Use the fit-content inline size or fit-content block size, as appropriate to the writing mode."},{name:"max-content",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"Use the max-content inline size or max-content block size, as appropriate to the writing mode."},{name:"min-content",browsers:["E12","FF1","S1","C1","IE4","O3.5"],description:"Use the min-content inline size or min-content block size, as appropriate to the writing mode."}],syntax:"auto | <length> | <percentage> | min-content | max-content | fit-content | fit-content(<length-percentage>)",relevance:96,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/width"}],description:"Specifies the width of the content area, padding area or border area (depending on 'box-sizing') of certain boxes.",restrictions:["length","percentage"]},{name:"will-change",browsers:["E79","FF36","S9.1","C36","O24"],values:[{name:"auto",description:"Expresses no particular intent."},{name:"contents",description:"Indicates that the author expects to animate or change something about the element's contents in the near future."},{name:"scroll-position",description:"Indicates that the author expects to animate or change the scroll position of the element in the near future."}],syntax:"auto | <animateable-feature>#",relevance:65,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/will-change"}],description:"Provides a rendering hint to the user agent, stating what kinds of changes the author expects to perform on the element.",restrictions:["enum","identifier"]},{name:"word-break",browsers:["E12","FF15","S3","C1","IE5.5","O15"],values:[{name:"break-all",description:"Lines may break between any two grapheme clusters for non-CJK scripts."},{name:"keep-all",description:"Block characters can no longer create implied break points."},{name:"normal",description:"Breaks non-CJK scripts according to their own rules."}],syntax:"normal | break-all | keep-all | break-word",relevance:76,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/word-break"}],description:"Specifies line break opportunities for non-CJK scripts.",restrictions:["enum"]},{name:"word-spacing",browsers:["E12","FF1","S1","C1","IE6","O3.5"],values:[{name:"normal",description:"No additional spacing is applied. Computes to zero."}],syntax:"normal | <length>",relevance:57,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/word-spacing"}],description:'Specifies additional spacing between "words".',restrictions:["length","percentage"]},{name:"word-wrap",browsers:["E80","FF72","S13.1","C80","O67"],values:[{name:"break-word",description:"An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line."},{name:"normal",description:"Lines may break only at allowed break points."}],syntax:"normal | break-word",relevance:77,description:"Specifies whether the UA may break within a word to prevent overflow when an otherwise-unbreakable string is too long to fit.",restrictions:["enum"]},{name:"writing-mode",browsers:["E12","FF41","S10.1","C48","IE9","O35"],values:[{name:"horizontal-tb",description:"Top-to-bottom block flow direction. The writing mode is horizontal."},{name:"sideways-lr",browsers:["E12","FF41","S10.1","C48","IE9","O35"],description:"Left-to-right block flow direction. The writing mode is vertical, while the typographic mode is horizontal."},{name:"sideways-rl",browsers:["E12","FF41","S10.1","C48","IE9","O35"],description:"Right-to-left block flow direction. The writing mode is vertical, while the typographic mode is horizontal."},{name:"vertical-lr",description:"Left-to-right block flow direction. The writing mode is vertical."},{name:"vertical-rl",description:"Right-to-left block flow direction. The writing mode is vertical."}],syntax:"horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/writing-mode"}],description:"This is a shorthand property for both 'direction' and 'block-progression'.",restrictions:["enum"]},{name:"z-index",browsers:["E12","FF1","S1","C1","IE4","O4"],values:[{name:"auto",description:"The stack level of the generated box in the current stacking context is 0. The box does not establish a new stacking context unless it is the root element."}],syntax:"auto | <integer>",relevance:92,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/z-index"}],description:"For a positioned box, the 'z-index' property specifies the stack level of the box in the current stacking context and whether the box establishes a local stacking context.",restrictions:["integer"]},{name:"zoom",browsers:["E12","FFpreview","S3.1","C1","IE5.5","O15"],values:[{name:"normal"}],status:"nonstandard",syntax:"normal | reset | <number> | <percentage>",relevance:15,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/zoom"}],description:"Non-standard. Specifies the magnification scale of the object. See 'transform: scale()' for a standards-based alternative.",restrictions:["enum","integer","number","percentage"]},{name:"-ms-ime-align",status:"nonstandard",syntax:"auto | after",values:[{name:"auto"},{name:"after"}],relevance:0,description:"Aligns the Input Method Editor (IME) candidate window box relative to the element on which the IME composition is active."},{name:"-moz-binding",status:"nonstandard",syntax:"<url> | none",relevance:0,description:"The -moz-binding CSS property is used by Mozilla-based applications to attach an XBL binding to a DOM element."},{name:"-moz-context-properties",status:"nonstandard",syntax:"none | [ fill | fill-opacity | stroke | stroke-opacity ]#",relevance:0,description:"If you reference an SVG image in a webpage (such as with the <img> element or as a background image), the SVG image can coordinate with the embedding element (its context) to have the image adopt property values set on the embedding element. To do this the embedding element needs to list the properties that are to be made available to the image by listing them as values of the -moz-context-properties property, and the image needs to opt in to using those properties by using values such as the context-fill value.\n\nThis feature is available since Firefox 55, but is only currently supported with SVG images loaded via chrome:// or resource:// URLs. To experiment with the feature in SVG on the Web it is necessary to set the svg.context-properties.content.enabled pref to true."},{name:"-moz-float-edge",status:"obsolete",syntax:"border-box | content-box | margin-box | padding-box",values:[{name:"border-box"},{name:"content-box"},{name:"margin-box"},{name:"padding-box"}],relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge"}],description:"The non-standard -moz-float-edge CSS property specifies whether the height and width properties of the element include the margin, border, or padding thickness."},{name:"-moz-force-broken-image-icon",status:"obsolete",syntax:"0 | 1",values:[{name:"0"},{name:"1"}],relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon"}],description:"The -moz-force-broken-image-icon extended CSS property can be used to force the broken image icon to be shown even when a broken image has an alt attribute."},{name:"-moz-image-region",status:"nonstandard",syntax:"<shape> | auto",relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-image-region"}],description:"For certain XUL elements and pseudo-elements that use an image from the list-style-image property, this property specifies a region of the image that is used in place of the whole image. This allows elements to use different pieces of the same image to improve performance."},{name:"-moz-orient",status:"nonstandard",syntax:"inline | block | horizontal | vertical",values:[{name:"inline"},{name:"block"},{name:"horizontal"},{name:"vertical"}],relevance:0,browsers:["FF6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-orient"}],description:"The -moz-orient CSS property specifies the orientation of the element to which it's applied."},{name:"-moz-outline-radius",status:"nonstandard",syntax:"<outline-radius>{1,4} [ / <outline-radius>{1,4} ]?",relevance:0,description:"In Mozilla applications like Firefox, the -moz-outline-radius CSS property can be used to give an element's outline rounded corners."},{name:"-moz-outline-radius-bottomleft",status:"nonstandard",syntax:"<outline-radius>",relevance:0,description:"In Mozilla applications, the -moz-outline-radius-bottomleft CSS property can be used to round the bottom-left corner of an element's outline."},{name:"-moz-outline-radius-bottomright",status:"nonstandard",syntax:"<outline-radius>",relevance:0,description:"In Mozilla applications, the -moz-outline-radius-bottomright CSS property can be used to round the bottom-right corner of an element's outline."},{name:"-moz-outline-radius-topleft",status:"nonstandard",syntax:"<outline-radius>",relevance:0,description:"In Mozilla applications, the -moz-outline-radius-topleft CSS property can be used to round the top-left corner of an element's outline."},{name:"-moz-outline-radius-topright",status:"nonstandard",syntax:"<outline-radius>",relevance:0,description:"In Mozilla applications, the -moz-outline-radius-topright CSS property can be used to round the top-right corner of an element's outline."},{name:"-moz-stack-sizing",status:"nonstandard",syntax:"ignore | stretch-to-fit",values:[{name:"ignore"},{name:"stretch-to-fit"}],relevance:0,description:"-moz-stack-sizing is an extended CSS property. Normally, a stack will change its size so that all of its child elements are completely visible. For example, moving a child of the stack far to the right will widen the stack so the child remains visible."},{name:"-moz-text-blink",status:"nonstandard",syntax:"none | blink",values:[{name:"none"},{name:"blink"}],relevance:0,description:"The -moz-text-blink non-standard Mozilla CSS extension specifies the blink mode."},{name:"-moz-user-input",status:"obsolete",syntax:"auto | none | enabled | disabled",values:[{name:"auto"},{name:"none"},{name:"enabled"},{name:"disabled"}],relevance:0,browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-moz-user-input"}],description:"In Mozilla applications, -moz-user-input determines if an element will accept user input."},{name:"-moz-user-modify",status:"nonstandard",syntax:"read-only | read-write | write-only",values:[{name:"read-only"},{name:"read-write"},{name:"write-only"}],relevance:0,description:"The -moz-user-modify property has no effect. It was originally planned to determine whether or not the content of an element can be edited by a user."},{name:"-moz-window-dragging",status:"nonstandard",syntax:"drag | no-drag",values:[{name:"drag"},{name:"no-drag"}],relevance:0,description:"The -moz-window-dragging CSS property specifies whether a window is draggable or not. It only works in Chrome code, and only on Mac OS X."},{name:"-moz-window-shadow",status:"nonstandard",syntax:"default | menu | tooltip | sheet | none",values:[{name:"default"},{name:"menu"},{name:"tooltip"},{name:"sheet"},{name:"none"}],relevance:0,description:"The -moz-window-shadow CSS property specifies whether a window will have a shadow. It only works on Mac OS X."},{name:"-webkit-border-before",status:"nonstandard",syntax:"<'border-width'> || <'border-style'> || <color>",relevance:0,browsers:["E79","S5.1","C8","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-border-before"}],description:"The -webkit-border-before CSS property is a shorthand property for setting the individual logical block start border property values in a single place in the style sheet."},{name:"-webkit-border-before-color",status:"nonstandard",syntax:"<color>",relevance:0,description:"The -webkit-border-before-color CSS property sets the color of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-border-before-style",status:"nonstandard",syntax:"<'border-style'>",relevance:0,description:"The -webkit-border-before-style CSS property sets the style of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-border-before-width",status:"nonstandard",syntax:"<'border-width'>",relevance:0,description:"The -webkit-border-before-width CSS property sets the width of the individual logical block start border in a single place in the style sheet."},{name:"-webkit-line-clamp",syntax:"none | <integer>",relevance:50,browsers:["E17","FF68","S5","C6","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp"}],description:"The -webkit-line-clamp CSS property allows limiting of the contents of a block container to the specified number of lines."},{name:"-webkit-mask",status:"nonstandard",syntax:"[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <box> | border | padding | content | text ] || [ <box> | border | padding | content ] ]#",relevance:0,description:"The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."},{name:"-webkit-mask-attachment",status:"nonstandard",syntax:"<attachment>#",relevance:0,browsers:["S4","C1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-attachment"}],description:"If a -webkit-mask-image is specified, -webkit-mask-attachment determines whether the mask image's position is fixed within the viewport, or scrolls along with its containing block."},{name:"-webkit-mask-composite",status:"nonstandard",syntax:"<composite-style>#",relevance:0,browsers:["E18","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite"}],description:"The -webkit-mask-composite property specifies the manner in which multiple mask images applied to the same element are composited with one another. Mask images are composited in the opposite order that they are declared with the -webkit-mask-image property."},{name:"-webkit-mask-position",status:"nonstandard",syntax:"<position>#",relevance:0,description:"The mask-position CSS property sets the initial position, relative to the mask position layer defined by mask-origin, for each defined mask image."},{name:"-webkit-mask-position-x",status:"nonstandard",syntax:"[ <length-percentage> | left | center | right ]#",relevance:0,browsers:["E18","FF49","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-x"}],description:"The -webkit-mask-position-x CSS property sets the initial horizontal position of a mask image."},{name:"-webkit-mask-position-y",status:"nonstandard",syntax:"[ <length-percentage> | top | center | bottom ]#",relevance:0,browsers:["E18","FF49","S3.1","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-y"}],description:"The -webkit-mask-position-y CSS property sets the initial vertical position of a mask image."},{name:"-webkit-mask-repeat-x",status:"nonstandard",syntax:"repeat | no-repeat | space | round",values:[{name:"repeat"},{name:"no-repeat"},{name:"space"},{name:"round"}],relevance:0,browsers:["E79","S5","C3","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-x"}],description:"The -webkit-mask-repeat-x property specifies whether and how a mask image is repeated (tiled) horizontally."},{name:"-webkit-mask-repeat-y",status:"nonstandard",syntax:"repeat | no-repeat | space | round",values:[{name:"repeat"},{name:"no-repeat"},{name:"space"},{name:"round"}],relevance:0,browsers:["E79","S5","C3","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-y"}],description:"The -webkit-mask-repeat-y property specifies whether and how a mask image is repeated (tiled) vertically."},{name:"accent-color",syntax:"auto | <color>",relevance:50,browsers:["E93","FF92","S15.4","C93","O79"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/accent-color"}],description:"Sets the color of the elements accent"},{name:"align-tracks",status:"experimental",syntax:"[ normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position> ]#",relevance:50,browsers:["FF77"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-tracks"}],description:"The align-tracks CSS property sets the alignment in the masonry axis for grid containers that have masonry in their block axis."},{name:"animation-composition",syntax:"<single-animation-composition>#",relevance:50,browsers:["E112","FF115","S16","C112","O98"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-composition"}],description:"The composite operation to use when multiple animations affect the same property."},{name:"animation-range",status:"experimental",syntax:"[ <'animation-range-start'> <'animation-range-end'>? ]#",relevance:50,browsers:["E115","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-range"}],description:"The animation-range CSS shorthand property is used to set the start and end of an animation's attachment range along its timeline, i.e. where along the timeline an animation will start and end."},{name:"animation-range-end",status:"experimental",syntax:"[ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#",relevance:50,browsers:["E115","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-range-end"}],description:"The animation-range-end CSS property is used to set the end of an animation's attachment range along its timeline, i.e. where along the timeline an animation will end."},{name:"animation-range-start",status:"experimental",syntax:"[ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#",relevance:50,browsers:["E115","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-range-start"}],description:"The animation-range-start CSS property is used to set the start of an animation's attachment range along its timeline, i.e. where along the timeline an animation will start."},{name:"animation-timeline",status:"experimental",syntax:"<single-animation-timeline>#",relevance:50,browsers:["E115","FF110","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation-timeline"}],description:"Specifies the names of one or more @scroll-timeline at-rules to describe the element's scroll animations."},{name:"appearance",syntax:"none | auto | textfield | menulist-button | <compat-auto>",relevance:69,browsers:["E84","FF80","S15.4","C84","O70"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/appearance"}],description:"Changes the appearance of buttons and other controls to resemble native controls."},{name:"aspect-ratio",syntax:"auto | <ratio>",relevance:60,browsers:["E88","FF89","S15","C88","O74"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/aspect-ratio"}],description:"The aspect-ratio CSS property sets a preferred aspect ratio for the box, which will be used in the calculation of auto sizes and some other layout functions."},{name:"azimuth",status:"obsolete",syntax:"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards",relevance:0,description:"In combination with elevation, the azimuth CSS property enables different audio sources to be positioned spatially for aural presentation. This is important in that it provides a natural way to tell several voices apart, as each can be positioned to originate at a different location on the sound stage. Stereo output produce a lateral sound stage, while binaural headphones and multi-speaker setups allow for a fully three-dimensional stage."},{name:"backdrop-filter",syntax:"none | <filter-function-list>",relevance:58,browsers:["E17","FF103","S9","C76","O63"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/backdrop-filter"}],description:"The backdrop-filter CSS property lets you apply graphical effects such as blurring or color shifting to the area behind an element. Because it applies to everything behind the element, to see the effect you must make the element or its background at least partially transparent."},{name:"border-block",syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block"}],description:"The border-block CSS property is a shorthand property for setting the individual logical block border property values in a single place in the style sheet."},{name:"border-block-color",syntax:"<'border-top-color'>{1,2}",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-color"}],description:"The border-block-color CSS property defines the color of the logical block borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-block-style",syntax:"<'border-top-style'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-style"}],description:"The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-block-width",syntax:"<'border-top-width'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-block-width"}],description:"The border-block-width CSS property defines the width of the logical block borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-end-end-radius",syntax:"<length-percentage>{1,2}",relevance:53,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius"}],description:"The border-end-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on on the element's writing-mode, direction, and text-orientation."},{name:"border-end-start-radius",syntax:"<length-percentage>{1,2}",relevance:53,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius"}],description:"The border-end-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."},{name:"border-inline",syntax:"<'border-top-width'> || <'border-top-style'> || <color>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline"}],description:"The border-inline CSS property is a shorthand property for setting the individual logical inline border property values in a single place in the style sheet."},{name:"border-inline-color",syntax:"<'border-top-color'>{1,2}",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-color"}],description:"The border-inline-color CSS property defines the color of the logical inline borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color and border-bottom-color, or border-right-color and border-left-color property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-inline-style",syntax:"<'border-top-style'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-style"}],description:"The border-inline-style CSS property defines the style of the logical inline borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-style and border-bottom-style, or border-left-style and border-right-style properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-inline-width",syntax:"<'border-top-width'>",relevance:50,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-inline-width"}],description:"The border-inline-width CSS property defines the width of the logical inline borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"border-start-end-radius",syntax:"<length-percentage>{1,2}",relevance:53,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius"}],description:"The border-start-end-radius CSS property defines a logical border radius on an element, which maps to a physical border radius depending on the element's writing-mode, direction, and text-orientation."},{name:"border-start-start-radius",syntax:"<length-percentage>{1,2}",relevance:53,browsers:["E89","FF66","S15","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius"}],description:"The border-start-start-radius CSS property defines a logical border radius on an element, which maps to a physical border radius that depends on the element's writing-mode, direction, and text-orientation."},{name:"box-align",status:"obsolete",syntax:"start | center | end | baseline | stretch",values:[{name:"start"},{name:"center"},{name:"end"},{name:"baseline"},{name:"stretch"}],relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-align"}],description:"The box-align CSS property specifies how an element aligns its contents across its layout in a perpendicular direction. The effect of the property is only visible if there is extra space in the box."},{name:"box-direction",status:"obsolete",syntax:"normal | reverse | inherit",values:[{name:"normal"},{name:"reverse"},{name:"inherit"}],relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-direction"}],description:"The box-direction CSS property specifies whether a box lays out its contents normally (from the top or left edge), or in reverse (from the bottom or right edge)."},{name:"box-flex",status:"obsolete",syntax:"<number>",relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-flex"}],description:"The -moz-box-flex and -webkit-box-flex CSS properties specify how a -moz-box or -webkit-box grows to fill the box that contains it, in the direction of the containing box's layout."},{name:"box-flex-group",status:"obsolete",syntax:"<integer>",relevance:0,browsers:["S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-flex-group"}],description:"The box-flex-group CSS property assigns the flexbox's child elements to a flex group."},{name:"box-lines",status:"obsolete",syntax:"single | multiple",values:[{name:"single"},{name:"multiple"}],relevance:0,browsers:["S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-lines"}],description:"The box-lines CSS property determines whether the box may have a single or multiple lines (rows for horizontally oriented boxes, columns for vertically oriented boxes)."},{name:"box-ordinal-group",status:"obsolete",syntax:"<integer>",relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group"}],description:"The box-ordinal-group CSS property assigns the flexbox's child elements to an ordinal group."},{name:"box-orient",status:"obsolete",syntax:"horizontal | vertical | inline-axis | block-axis | inherit",values:[{name:"horizontal"},{name:"vertical"},{name:"inline-axis"},{name:"block-axis"},{name:"inherit"}],relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-orient"}],description:"The box-orient CSS property specifies whether an element lays out its contents horizontally or vertically."},{name:"box-pack",status:"obsolete",syntax:"start | center | end | justify",values:[{name:"start"},{name:"center"},{name:"end"},{name:"justify"}],relevance:0,browsers:["E12","FF49","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/box-pack"}],description:"The -moz-box-pack and -webkit-box-pack CSS properties specify how a -moz-box or -webkit-box packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box."},{name:"caret",syntax:"<'caret-color'> || <'caret-shape'>",relevance:50,description:"Shorthand for setting caret-color and caret-shape."},{name:"caret-shape",syntax:"auto | bar | block | underscore",values:[{name:"auto"},{name:"bar"},{name:"block"},{name:"underscore"}],relevance:50,description:"Specifies the desired shape of the text insertion caret."},{name:"color-scheme",syntax:"normal | [ light | dark | <custom-ident> ]+ && only?",relevance:57,browsers:["E81","FF96","S13","C81","O68"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/color-scheme"}],description:"The color-scheme CSS property allows an element to indicate which color schemes it can comfortably be rendered in."},{name:"contain-intrinsic-size",syntax:"[ auto? [ none | <length> ] ]{1,2}",relevance:50,browsers:["E83","FF107","S17","C83","O69"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size"}],description:"Size of an element when the element is subject to size containment."},{name:"contain-intrinsic-block-size",syntax:"auto? [ none | <length> ]",relevance:50,browsers:["E95","FF107","S17","C95","O81"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size"}],description:"Block size of an element when the element is subject to size containment."},{name:"contain-intrinsic-height",syntax:"auto? [ none | <length> ]",relevance:50,browsers:["E95","FF107","S17","C95","O81"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height"}],description:"Height of an element when the element is subject to size containment."},{name:"contain-intrinsic-inline-size",syntax:"auto? [ none | <length> ]",relevance:50,browsers:["E95","FF107","S17","C95","O81"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size"}],description:"Inline size of an element when the element is subject to size containment."},{name:"contain-intrinsic-width",syntax:"auto? [ none | <length> ]",relevance:50,browsers:["E95","FF107","S17","C95","O81"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width"}],description:"Width of an element when the element is subject to size containment."},{name:"container",syntax:"<'container-name'> [ / <'container-type'> ]?",relevance:53,browsers:["E105","FF110","S16","C105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/container"}],description:"The container shorthand CSS property establishes the element as a query container and specifies the name or name for the containment context used in a container query."},{name:"container-name",syntax:"none | <custom-ident>+",relevance:50,browsers:["E105","FF110","S16","C105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/container-name"}],description:"The container-name CSS property specifies a list of query container names used by the @container at-rule in a container query."},{name:"container-type",syntax:"normal | size | inline-size",values:[{name:"normal"},{name:"size"},{name:"inline-size"}],relevance:50,browsers:["E105","FF110","S16","C105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/container-type"}],description:"The container-type CSS property is used to define the type of containment used in a container query."},{name:"content-visibility",syntax:"visible | auto | hidden",values:[{name:"visible"},{name:"auto"},{name:"hidden"}],relevance:52,browsers:["E85","FFpreview","Spreview","C85","O71"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/content-visibility"}],description:"Controls whether or not an element renders its contents at all, along with forcing a strong set of containments, allowing user agents to potentially omit large swathes of layout and rendering work until it becomes needed."},{name:"counter-set",syntax:"[ <counter-name> <integer>? ]+ | none",relevance:50,browsers:["E85","FF68","S17.2","C85","O71"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/counter-set"}],description:"The counter-set CSS property sets a CSS counter to a given value. It manipulates the value of existing counters, and will only create new counters if there isn't already a counter of the given name on the element."},{name:"font-optical-sizing",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["E17","FF62","S11","C79","O66"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing"}],description:"The font-optical-sizing CSS property allows developers to control whether browsers render text with slightly differing visual representations to optimize viewing at different sizes, or not. This only works for fonts that have an optical size variation axis."},{name:"font-palette",syntax:"normal | light | dark | <palette-identifier>",relevance:50,browsers:["E101","FF107","S15.4","C101","O87"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-palette"}],description:"The font-palette CSS property allows specifying one of the many palettes contained in a font that a user agent should use for the font. Users can also override the values in a palette or create a new palette by using the @font-palette-values at-rule."},{name:"font-variation-settings",atRule:"@font-face",syntax:"normal | [ <string> <number> ]#",relevance:51,browsers:["E17","FF62","S11","C62","O49"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variation-settings"}],description:"The font-variation-settings CSS property provides low-level control over OpenType or TrueType font variations, by specifying the four letter axis names of the features you want to vary, along with their variation values."},{name:"font-smooth",status:"nonstandard",syntax:"auto | never | always | <absolute-size> | <length>",relevance:0,browsers:["E79","FF25","S4","C5","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-smooth"}],description:"The font-smooth CSS property controls the application of anti-aliasing when fonts are rendered."},{name:"font-synthesis-position",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["FF118"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis-position"}],description:'The font-synthesis-position CSS property lets you specify whether or not a browser may synthesize the subscript and superscript "position" typefaces when they are missing in a font family, while using font-variant-position to set the positions.'},{name:"font-synthesis-small-caps",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["E97","FF111","S16.4","C97","O83"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps"}],description:"The font-synthesis-small-caps CSS property lets you specify whether or not the browser may synthesize small-caps typeface when it is missing in a font family. Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters."},{name:"font-synthesis-style",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["E97","FF111","S16.4","C97","O83"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style"}],description:"The font-synthesis-style CSS property lets you specify whether or not the browser may synthesize the oblique typeface when it is missing in a font family."},{name:"font-synthesis-weight",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,browsers:["E97","FF111","S16.4","C97","O83"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight"}],description:"The font-synthesis-weight CSS property lets you specify whether or not the browser may synthesize the bold typeface when it is missing in a font family."},{name:"font-variant-emoji",syntax:"normal | text | emoji | unicode",values:[{name:"normal"},{name:"text"},{name:"emoji"},{name:"unicode"}],relevance:50,browsers:["FF108"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/font-variant-emoji"}],description:"The font-variant-emoji CSS property specifies the default presentation style for displaying emojis."},{name:"forced-color-adjust",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:57,browsers:["E79","FF113","C89","IE10","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust"}],description:"Allows authors to opt certain elements out of forced colors mode. This then restores the control of those values to CSS"},{name:"gap",syntax:"<'row-gap'> <'column-gap'>?",relevance:70,browsers:["E16","FF52","S10.1","C57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/gap"}],description:"The gap CSS property is a shorthand property for row-gap and column-gap specifying the gutters between grid rows and columns."},{name:"hanging-punctuation",syntax:"none | [ first || [ force-end | allow-end ] || last ]",relevance:50,browsers:["S10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hanging-punctuation"}],description:"The hanging-punctuation CSS property specifies whether a punctuation mark should hang at the start or end of a line of text. Hanging punctuation may be placed outside the line box."},{name:"hyphenate-character",syntax:"auto | <string>",relevance:50,browsers:["E106","FF98","S17","C106","O92"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/hyphenate-character"}],description:"A hyphenate character used at the end of a line."},{name:"hyphenate-limit-chars",syntax:"[ auto | <integer> ]{1,3}",relevance:50,browsers:["E109","C109","O95"],description:"The hyphenate-limit-chars CSS property specifies the minimum word length to allow hyphenation of words as well as the minimum number of characters before and after the hyphen."},{name:"image-resolution",status:"experimental",syntax:"[ from-image || <resolution> ] && snap?",relevance:50,description:"The image-resolution property specifies the intrinsic resolution of all raster images used in or on the element. It affects both content images (e.g. replaced elements and generated content) and decorative images (such as background-image). The intrinsic resolution of an image is used to determine the image\u2019s intrinsic dimensions."},{name:"initial-letter",status:"experimental",syntax:"normal | [ <number> <integer>? ]",relevance:50,browsers:["E110","S9","C110","O96"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/initial-letter"}],description:"The initial-letter CSS property specifies styling for dropped, raised, and sunken initial letters."},{name:"initial-letter-align",status:"experimental",syntax:"[ auto | alphabetic | hanging | ideographic ]",relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/initial-letter-align"}],description:"The initial-letter-align CSS property specifies the alignment of initial letters within a paragraph."},{name:"input-security",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,description:"Enables or disables the obscuring a sensitive test input."},{name:"inset",syntax:"<'top'>{1,4}",relevance:58,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset"}],description:"The inset CSS property defines the logical block and inline start and end offsets of an element, which map to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block",syntax:"<'top'>{1,2}",relevance:53,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block"}],description:"The inset-block CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block-end",syntax:"<'top'>",relevance:50,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block-end"}],description:"The inset-block-end CSS property defines the logical block end offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-block-start",syntax:"<'top'>",relevance:53,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-block-start"}],description:"The inset-block-start CSS property defines the logical block start offset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline",syntax:"<'top'>{1,2}",relevance:53,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline"}],description:"The inset-inline CSS property defines the logical block start and end offsets of an element, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation. It corresponds to the top and bottom, or right and left properties depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline-end",syntax:"<'top'>",relevance:51,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline-end"}],description:"The inset-inline-end CSS property defines the logical inline end inset of an element, which maps to a physical inset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"inset-inline-start",syntax:"<'top'>",relevance:54,browsers:["E87","FF63","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/inset-inline-start"}],description:"The inset-inline-start CSS property defines the logical inline start inset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation. It corresponds to the top, right, bottom, or left property depending on the values defined for writing-mode, direction, and text-orientation."},{name:"justify-tracks",status:"experimental",syntax:"[ normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ] ]#",relevance:50,browsers:["FF77"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-tracks"}],description:"The justify-tracks CSS property sets the alignment in the masonry axis for grid containers that have masonry in their inline axis"},{name:"line-clamp",status:"experimental",syntax:"none | <integer>",relevance:50,description:"The line-clamp property allows limiting the contents of a block container to the specified number of lines; remaining content is fragmented away and neither rendered nor measured. Optionally, it also allows inserting content into the last line box to indicate the continuity of truncated/interrupted content."},{name:"line-height-step",status:"experimental",syntax:"<length>",relevance:50,browsers:["E79","C60","O47"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/line-height-step"}],description:"The line-height-step CSS property defines the step units for line box heights. When the step unit is positive, line box heights are rounded up to the closest multiple of the unit. Negative values are invalid."},{name:"margin-block",syntax:"<'margin-left'>{1,2}",relevance:54,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-block"}],description:"The margin-block CSS property defines the logical block start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation."},{name:"margin-inline",syntax:"<'margin-left'>{1,2}",relevance:54,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-inline"}],description:"The margin-inline CSS property defines the logical inline start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation."},{name:"margin-trim",status:"experimental",syntax:"none | in-flow | all",values:[{name:"none"},{name:"in-flow"},{name:"all"}],relevance:50,browsers:["S16.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/margin-trim"}],description:"The margin-trim property allows the container to trim the margins of its children where they adjoin the container\u2019s edges."},{name:"mask",syntax:"<mask-layer>#",relevance:55,browsers:["E79","FF53","S15.4","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask"}],description:"The mask CSS property alters the visibility of an element by either partially or fully hiding it. This is accomplished by either masking or clipping the image at specific points."},{name:"mask-border",syntax:"<'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border"}],description:"The mask-border CSS property lets you create a mask along the edge of an element's border.\n\nThis property is a shorthand for mask-border-source, mask-border-slice, mask-border-width, mask-border-outset, mask-border-repeat, and mask-border-mode. As with all shorthand properties, any omitted sub-values will be set to their initial value."},{name:"mask-border-mode",syntax:"luminance | alpha",values:[{name:"luminance"},{name:"alpha"}],relevance:50,description:"The mask-border-mode CSS property specifies the blending mode used in a mask border."},{name:"mask-border-outset",syntax:"[ <length> | <number> ]{1,4}",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-outset"}],description:"The mask-border-outset CSS property specifies the distance by which an element's mask border is set out from its border box."},{name:"mask-border-repeat",syntax:"[ stretch | repeat | round | space ]{1,2}",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat"}],description:"The mask-border-repeat CSS property defines how the edge regions of a source image are adjusted to fit the dimensions of an element's mask border."},{name:"mask-border-slice",syntax:"<number-percentage>{1,4} fill?",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-slice"}],description:"The mask-border-slice CSS property divides the image specified by mask-border-source into regions. These regions are used to form the components of an element's mask border."},{name:"mask-border-source",syntax:"none | <image>",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-source"}],description:"The mask-border-source CSS property specifies the source image used to create an element's mask border.\n\nThe mask-border-slice property is used to divide the source image into regions, which are then dynamically applied to the final mask border."},{name:"mask-border-width",syntax:"[ <length-percentage> | <number> | auto ]{1,4}",relevance:50,browsers:["E79","S17.2","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-border-width"}],description:"The mask-border-width CSS property specifies the width of an element's mask border."},{name:"mask-clip",syntax:"[ <geometry-box> | no-clip ]#",relevance:50,browsers:["E120","FF53","S15.4","C120","O106"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-clip"}],description:"The mask-clip CSS property determines the area, which is affected by a mask. The painted content of an element must be restricted to this area."},{name:"mask-composite",syntax:"<compositing-operator>#",relevance:50,browsers:["E18","FF53","S15.4","C120","O106"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/mask-composite"}],description:"The mask-composite CSS property represents a compositing operation used on the current mask layer with the mask layers below it."},{name:"masonry-auto-flow",status:"experimental",syntax:"[ pack | next ] || [ definite-first | ordered ]",relevance:50,browsers:["Spreview"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/masonry-auto-flow"}],description:"The masonry-auto-flow CSS property modifies how items are placed when using masonry in CSS Grid Layout."},{name:"math-depth",syntax:"auto-add | add(<integer>) | <integer>",relevance:50,browsers:["E109","FF117","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/math-depth"}],description:'Describe a notion of "depth" for each element of a mathematical formula, with respect to the top-level container of that formula.'},{name:"math-shift",syntax:"normal | compact",values:[{name:"normal"},{name:"compact"}],relevance:50,browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/math-shift"}],description:"Used for positioning superscript during the layout of MathML scripted elements."},{name:"math-style",syntax:"normal | compact",values:[{name:"normal"},{name:"compact"}],relevance:50,browsers:["E109","FF117","S14.1","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/math-style"}],description:"The math-style property indicates whether MathML equations should render with normal or compact height."},{name:"max-lines",status:"experimental",syntax:"none | <integer>",relevance:50,description:"The max-lines property forces a break after a set number of lines"},{name:"offset",syntax:"[ <'offset-position'>? [ <'offset-path'> [ <'offset-distance'> || <'offset-rotate'> ]? ]? ]! [ / <'offset-anchor'> ]?",relevance:50,browsers:["E79","FF72","S16","C55","O42"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset"}],description:"The offset CSS property is a shorthand property for animating an element along a defined path."},{name:"offset-anchor",syntax:"auto | <position>",relevance:50,browsers:["E116","FF72","S16","C116","O102"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-anchor"}],description:"Defines an anchor point of the box positioned along the path. The anchor point specifies the point of the box which is to be considered as the point that is moved along the path."},{name:"offset-distance",syntax:"<length-percentage>",relevance:50,browsers:["E79","FF72","S16","C55","O42"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-distance"}],description:"The offset-distance CSS property specifies a position along an offset-path."},{name:"offset-path",syntax:"none | <offset-path> || <coord-box>",relevance:50,browsers:["E79","FF72","S15.4","C55","O45"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-path"}],description:'The offset-path CSS property specifies the offset path where the element gets positioned. The exact element\u2019s position on the offset path is determined by the offset-distance property. An offset path is either a specified path with one or multiple sub-paths or the geometry of a not-styled basic shape. Each shape or path must define an initial position for the computed value of "0" for offset-distance and an initial direction which specifies the rotation of the object to the initial position.\n\nIn this specification, a direction (or rotation) of 0 degrees is equivalent to the direction of the positive x-axis in the object\u2019s local coordinate system. In other words, a rotation of 0 degree points to the right side of the UA if the object and its ancestors have no transformation applied.'},{name:"offset-position",syntax:"normal | auto | <position>",relevance:50,browsers:["E116","FF122","S16","C116","O102"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-position"}],description:"Specifies the initial position of the offset path. If position is specified with static, offset-position would be ignored."},{name:"offset-rotate",syntax:"[ auto | reverse ] || <angle>",relevance:50,browsers:["E79","FF72","S16","C56","O43"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/offset-rotate"}],description:"The offset-rotate CSS property defines the direction of the element while positioning along the offset path."},{name:"overflow-anchor",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:52,browsers:["E79","FF66","Spreview","C56","O43"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-anchor"}],description:"The overflow-anchor CSS property provides a way to opt out browser scroll anchoring behavior which adjusts scroll position to minimize content shifts."},{name:"overflow-block",syntax:"visible | hidden | clip | scroll | auto",values:[{name:"visible"},{name:"hidden"},{name:"clip"},{name:"scroll"},{name:"auto"}],relevance:50,browsers:["FF69"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-block"}],description:"The overflow-block CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the block axis."},{name:"overflow-clip-box",status:"nonstandard",syntax:"padding-box | content-box",values:[{name:"padding-box"},{name:"content-box"}],relevance:0,description:"The overflow-clip-box CSS property specifies relative to which box the clipping happens when there is an overflow. It is short hand for the overflow-clip-box-inline and overflow-clip-box-block properties."},{name:"overflow-clip-margin",syntax:"<visual-box> || <length [0,\u221e]>",relevance:50,browsers:["E90","FF102","C90","O76"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin"}],description:"The overflow-clip-margin CSS property determines how far outside its bounds an element with overflow: clip may be painted before being clipped."},{name:"overflow-inline",syntax:"visible | hidden | clip | scroll | auto",values:[{name:"visible"},{name:"hidden"},{name:"clip"},{name:"scroll"},{name:"auto"}],relevance:50,browsers:["FF69"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overflow-inline"}],description:"The overflow-inline CSS media feature can be used to test how the output device handles content that overflows the initial containing block along the inline axis."},{name:"overlay",status:"experimental",syntax:"none | auto",values:[{name:"none"},{name:"auto"}],relevance:50,browsers:["E117","C117","O103"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overlay"}],description:'The overlay CSS property specifies whether an element appearing in the top layer (for example, a shown popover or modal {{htmlelement("dialog")}} element) is actually rendered in the top layer. This property is only relevant within a list of transition-property values, and only if allow-discrete is set as the transition-behavior.'},{name:"overscroll-behavior",syntax:"[ contain | none | auto ]{1,2}",relevance:50,browsers:["E18","FF59","S16","C63","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior"}],description:"The overscroll-behavior CSS property is shorthand for the overscroll-behavior-x and overscroll-behavior-y properties, which allow you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached."},{name:"overscroll-behavior-block",syntax:"contain | none | auto",values:[{name:"contain"},{name:"none"},{name:"auto"}],relevance:50,browsers:["E79","FF73","S16","C77","O64"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block"}],description:"The overscroll-behavior-block CSS property sets the browser's behavior when the block direction boundary of a scrolling area is reached."},{name:"overscroll-behavior-inline",syntax:"contain | none | auto",values:[{name:"contain"},{name:"none"},{name:"auto"}],relevance:50,browsers:["E79","FF73","S16","C77","O64"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline"}],description:"The overscroll-behavior-inline CSS property sets the browser's behavior when the inline direction boundary of a scrolling area is reached."},{name:"overscroll-behavior-x",syntax:"contain | none | auto",values:[{name:"contain"},{name:"none"},{name:"auto"}],relevance:50,browsers:["E18","FF59","S16","C63","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x"}],description:"The overscroll-behavior-x CSS property is allows you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached \u2014 in the x axis direction."},{name:"overscroll-behavior-y",syntax:"contain | none | auto",values:[{name:"contain"},{name:"none"},{name:"auto"}],relevance:50,browsers:["E18","FF59","S16","C63","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y"}],description:"The overscroll-behavior-y CSS property is allows you to control the browser's scroll overflow behavior \u2014 what happens when the boundary of a scrolling area is reached \u2014 in the y axis direction."},{name:"padding-block",syntax:"<'padding-left'>{1,2}",relevance:54,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-block"}],description:"The padding-block CSS property defines the logical block start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation."},{name:"padding-inline",syntax:"<'padding-left'>{1,2}",relevance:54,browsers:["E87","FF66","S14.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/padding-inline"}],description:"The padding-inline CSS property defines the logical inline start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation."},{name:"page",syntax:"auto | <custom-ident>",relevance:50,browsers:["E85","FF110","S13.1","C85","O71"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/page"}],description:"The page CSS property is used to specify the named page, a specific type of page defined by the @page at-rule."},{name:"place-content",syntax:"<'align-content'> <'justify-content'>?",relevance:51,browsers:["E79","FF45","S9","C59","O46"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/place-content"}],description:"The place-content CSS shorthand property sets both the align-content and justify-content properties."},{name:"place-items",syntax:"<'align-items'> <'justify-items'>?",relevance:51,browsers:["E79","FF45","S11","C59","O46"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/place-items"}],description:"The CSS place-items shorthand property sets both the align-items and justify-items properties. The first value is the align-items property value, the second the justify-items one. If the second value is not present, the first value is also used for it."},{name:"place-self",syntax:"<'align-self'> <'justify-self'>?",relevance:50,browsers:["E79","FF45","S11","C59","O46"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/place-self"}],description:"The place-self CSS property is a shorthand property sets both the align-self and justify-self properties. The first value is the align-self property value, the second the justify-self one. If the second value is not present, the first value is also used for it."},{name:"print-color-adjust",syntax:"economy | exact",values:[{name:"economy"},{name:"exact"}],relevance:50,browsers:["E79","FF97","S15.4","C17","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/print-color-adjust"}],description:"Defines what optimization the user agent is allowed to do when adjusting the appearance for an output device."},{name:"rotate",syntax:"none | <angle> | [ x | y | z | <number>{3} ] && <angle>",relevance:50,browsers:["E104","FF72","S14.1","C104","O90"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/rotate"}],description:"The rotate CSS property allows you to specify rotation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."},{name:"row-gap",syntax:"normal | <length-percentage>",relevance:58,browsers:["E16","FF52","S10.1","C47","O34"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/row-gap"}],description:"The row-gap CSS property specifies the gutter between grid rows."},{name:"ruby-merge",status:"experimental",syntax:"separate | collapse | auto",values:[{name:"separate"},{name:"collapse"},{name:"auto"}],relevance:50,description:"This property controls how ruby annotation boxes should be rendered when there are more than one in a ruby container box: whether each pair should be kept separate, the annotations should be collapsed and rendered as a group, or the separation should be determined based on the space available."},{name:"scale",syntax:"none | <number>{1,3}",relevance:51,browsers:["E104","FF72","S14.1","C104","O90"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scale"}],description:"The scale CSS property allows you to specify scale transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."},{name:"scrollbar-color",syntax:"auto | <color>{2}",relevance:52,browsers:["E121","FF64","C121"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-color"}],description:"The scrollbar-color CSS property sets the color of the scrollbar track and thumb."},{name:"scrollbar-gutter",syntax:"auto | stable && both-edges?",relevance:50,browsers:["E94","FF97","S17","C94","O80"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter"}],description:"The scrollbar-gutter CSS property allows authors to reserve space for the scrollbar, preventing unwanted layout changes as the content grows while also avoiding unnecessary visuals when scrolling isn't needed."},{name:"scrollbar-width",syntax:"auto | thin | none",values:[{name:"auto"},{name:"thin"},{name:"none"}],relevance:63,browsers:["E121","FF64","C121"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scrollbar-width"}],description:"The scrollbar-width property allows the author to set the maximum thickness of an element\u2019s scrollbars when they are shown. "},{name:"scroll-margin",syntax:"<length>{1,4}",relevance:50,browsers:["E79","FF90","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin"}],description:"The scroll-margin property is a shorthand property which sets all of the scroll-margin longhands, assigning values much like the margin property does for the margin-* longhands."},{name:"scroll-margin-block",syntax:"<length>{1,2}",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block"}],description:"The scroll-margin-block property is a shorthand property which sets the scroll-margin longhands in the block dimension."},{name:"scroll-margin-block-start",syntax:"<length>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start"}],description:"The scroll-margin-block-start property defines the margin of the scroll snap area at the start of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-block-end",syntax:"<length>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end"}],description:"The scroll-margin-block-end property defines the margin of the scroll snap area at the end of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-bottom",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom"}],description:"The scroll-margin-bottom property defines the bottom margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-inline",syntax:"<length>{1,2}",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline"}],description:"The scroll-margin-inline property is a shorthand property which sets the scroll-margin longhands in the inline dimension."},{name:"scroll-margin-inline-start",syntax:"<length>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start"}],description:"The scroll-margin-inline-start property defines the margin of the scroll snap area at the start of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-inline-end",syntax:"<length>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end"}],description:"The scroll-margin-inline-end property defines the margin of the scroll snap area at the end of the inline dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-left",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left"}],description:"The scroll-margin-left property defines the left margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-right",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right"}],description:"The scroll-margin-right property defines the right margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-margin-top",syntax:"<length>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top"}],description:"The scroll-margin-top property defines the top margin of the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container\u2019s coordinate space), then adding the specified outsets."},{name:"scroll-padding",syntax:"[ auto | <length-percentage> ]{1,4}",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding"}],description:"The scroll-padding property is a shorthand property which sets all of the scroll-padding longhands, assigning values much like the padding property does for the padding-* longhands."},{name:"scroll-padding-block",syntax:"[ auto | <length-percentage> ]{1,2}",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block"}],description:"The scroll-padding-block property is a shorthand property which sets the scroll-padding longhands for the block dimension."},{name:"scroll-padding-block-start",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start"}],description:"The scroll-padding-block-start property defines offsets for the start edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-block-end",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end"}],description:"The scroll-padding-block-end property defines offsets for the end edge in the block dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-bottom",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom"}],description:"The scroll-padding-bottom property defines offsets for the bottom of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-inline",syntax:"[ auto | <length-percentage> ]{1,2}",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline"}],description:"The scroll-padding-inline property is a shorthand property which sets the scroll-padding longhands for the inline dimension."},{name:"scroll-padding-inline-start",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start"}],description:"The scroll-padding-inline-start property defines offsets for the start edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-inline-end",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S15","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end"}],description:"The scroll-padding-inline-end property defines offsets for the end edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-left",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left"}],description:"The scroll-padding-left property defines offsets for the left of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-right",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right"}],description:"The scroll-padding-right property defines offsets for the right of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-padding-top",syntax:"auto | <length-percentage>",relevance:50,browsers:["E79","FF68","S14.1","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top"}],description:"The scroll-padding-top property defines offsets for the top of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breathing room between a targeted element and the edges of the scrollport."},{name:"scroll-snap-align",syntax:"[ none | start | end | center ]{1,2}",relevance:53,browsers:["E79","FF68","S11","C69","O56"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align"}],description:"The scroll-snap-align property specifies the box\u2019s snap position as an alignment of its snap area (as the alignment subject) within its snap container\u2019s snapport (as the alignment container). The two values specify the snapping alignment in the block axis and inline axis, respectively. If only one value is specified, the second value defaults to the same value."},{name:"scroll-snap-stop",syntax:"normal | always",values:[{name:"normal"},{name:"always"}],relevance:51,browsers:["E79","FF103","S15","C75","O62"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop"}],description:'The scroll-snap-stop CSS property defines whether the scroll container is allowed to "pass over" possible snap positions.'},{name:"scroll-snap-type-x",status:"obsolete",syntax:"none | mandatory | proximity",values:[{name:"none"},{name:"mandatory"},{name:"proximity"}],relevance:0,description:"The scroll-snap-type-x CSS property defines how strictly snap points are enforced on the horizontal axis of the scroll container in case there is one.\n\nSpecifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent."},{name:"scroll-snap-type-y",status:"obsolete",syntax:"none | mandatory | proximity",values:[{name:"none"},{name:"mandatory"},{name:"proximity"}],relevance:0,description:"The scroll-snap-type-y CSS property defines how strictly snap points are enforced on the vertical axis of the scroll container in case there is one.\n\nSpecifying any precise animations or physics used to enforce those snap points is not covered by this property but instead left up to the user agent."},{name:"scroll-timeline",status:"experimental",syntax:"[ <'scroll-timeline-name'> <'scroll-timeline-axis'>? ]#",relevance:50,browsers:["E115","FF111","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-timeline"}],description:"Defines a name that can be used to identify the source element of a scroll timeline, along with the scrollbar axis that should provide the timeline."},{name:"scroll-timeline-axis",status:"experimental",syntax:"[ block | inline | x | y ]#",relevance:50,browsers:["E115","FF111","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-timeline-axis"}],description:"Specifies the scrollbar that will be used to provide the timeline for a scroll-timeline animation"},{name:"scroll-timeline-name",status:"experimental",syntax:"none | <dashed-ident>#",relevance:50,browsers:["E115","FF111","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/scroll-timeline-name"}],description:"Defines a name that can be used to identify an element as the source of a scroll-timeline."},{name:"text-combine-upright",syntax:"none | all | [ digits <integer>? ]",relevance:50,browsers:["E79","FF48","S15.4","C48","IE11","O35"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-combine-upright"}],description:"The text-combine-upright CSS property specifies the combination of multiple characters into the space of a single character. If the combined text is wider than 1em, the user agent must fit the contents within 1em. The resulting composition is treated as a single upright glyph for layout and decoration. This property only has an effect in vertical writing modes.\n\nThis is used to produce an effect that is known as tate-ch\u016b-yoko (\u7e26\u4e2d\u6a2a) in Japanese, or as \u76f4\u66f8\u6a6b\u5411 in Chinese."},{name:"text-decoration-skip",status:"experimental",syntax:"none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]",relevance:52,browsers:["S12.1","C57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip"}],description:"The text-decoration-skip CSS property specifies what parts of the element\u2019s content any text decoration affecting the element must skip over. It controls all text decoration lines drawn by the element and also any text decoration lines drawn by its ancestors."},{name:"text-decoration-skip-ink",syntax:"auto | all | none",values:[{name:"auto"},{name:"all"},{name:"none"}],relevance:51,browsers:["E79","FF70","S15.4","C64","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink"}],description:"The text-decoration-skip-ink CSS property specifies how overlines and underlines are drawn when they pass over glyph ascenders and descenders."},{name:"text-decoration-thickness",syntax:"auto | from-font | <length> | <percentage> ",relevance:50,browsers:["E89","FF70","S12.1","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness"}],description:"The text-decoration-thickness CSS property sets the thickness, or width, of the decoration line that is used on text in an element, such as a line-through, underline, or overline."},{name:"text-emphasis",syntax:"<'text-emphasis-style'> || <'text-emphasis-color'>",relevance:50,browsers:["E99","FF46","S7","C99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis"}],description:"The text-emphasis CSS property is a shorthand property for setting text-emphasis-style and text-emphasis-color in one declaration. This property will apply the specified emphasis mark to each character of the element's text, except separator characters, like spaces, and control characters."},{name:"text-emphasis-color",syntax:"<color>",relevance:50,browsers:["E99","FF46","S7","C99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color"}],description:"The text-emphasis-color CSS property defines the color used to draw emphasis marks on text being rendered in the HTML document. This value can also be set and reset using the text-emphasis shorthand."},{name:"text-emphasis-position",syntax:"[ over | under ] && [ right | left ]",relevance:50,browsers:["E99","FF46","S7","C99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position"}],description:"The text-emphasis-position CSS property describes where emphasis marks are drawn at. The effect of emphasis marks on the line height is the same as for ruby text: if there isn't enough place, the line height is increased."},{name:"text-emphasis-style",syntax:"none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>",relevance:50,browsers:["E99","FF46","S7","C99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style"}],description:"The text-emphasis-style CSS property defines the type of emphasis used. It can also be set, and reset, using the text-emphasis shorthand."},{name:"text-size-adjust",status:"experimental",syntax:"none | auto | <percentage>",relevance:57,browsers:["E79","C54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-size-adjust"}],description:"The text-size-adjust CSS property controls the text inflation algorithm used on some smartphones and tablets. Other browsers will ignore this property."},{name:"text-underline-offset",syntax:"auto | <length> | <percentage> ",relevance:51,browsers:["E87","FF70","S12.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-underline-offset"}],description:"The text-underline-offset CSS property sets the offset distance of an underline text decoration line (applied using text-decoration) from its original position."},{name:"text-wrap",syntax:"wrap | nowrap | balance | stable | pretty",values:[{name:"wrap"},{name:"nowrap"},{name:"balance"},{name:"stable"},{name:"pretty"}],relevance:54,browsers:["E114","FF121","Spreview","C114","O100"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-wrap"}],description:"The text-wrap CSS property controls how text inside an element is wrapped."},{name:"timeline-scope",status:"experimental",syntax:"none | <dashed-ident>#",relevance:50,browsers:["E116","C116","O102"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/timeline-scope"}],description:"The timeline-scope CSS property modifies the scope of a named animation timeline."},{name:"transform-box",syntax:"content-box | border-box | fill-box | stroke-box | view-box",values:[{name:"content-box"},{name:"border-box"},{name:"fill-box"},{name:"stroke-box"},{name:"view-box"}],relevance:50,browsers:["E79","FF55","S11","C64","O51"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-box"}],description:"The transform-box CSS property defines the layout box to which the transform and transform-origin properties relate."},{name:"transition-behavior",status:"experimental",syntax:"<transition-behavior-value>#",relevance:50,browsers:["E117","C117","O103"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-behavior"}],description:"The transition-behavior CSS property specifies whether transitions will be started for properties whose animation behavior is discrete."},{name:"translate",syntax:"none | <length-percentage> [ <length-percentage> <length>? ]?",relevance:50,browsers:["E104","FF72","S14.1","C104","O90"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/translate"}],description:"The translate CSS property allows you to specify translation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."},{name:"view-timeline",status:"experimental",syntax:"[ <'view-timeline-name'> <'view-timeline-axis'>? ]#",relevance:50,browsers:["E115","FF114","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-timeline"}],description:"The view-timeline CSS shorthand property is used to define a named view progress timeline, which is progressed through based on the change in visibility of an element (known as the subject) inside a scrollable element (scroller). view-timeline is set on the subject."},{name:"view-timeline-axis",status:"experimental",syntax:"[ block | inline | x | y ]#",relevance:50,browsers:["E115","FF114","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-timeline-axis"}],description:"The view-timeline-axis CSS property is used to specify the scrollbar direction that will be used to provide the timeline for a named view progress timeline animation, which is progressed through based on the change in visibility of an element (known as the subject) inside a scrollable element (scroller). view-timeline-axis is set on the subject. See CSS scroll-driven animations for more details."},{name:"view-timeline-inset",status:"experimental",syntax:"[ [ auto | <length-percentage> ]{1,2} ]#",relevance:50,browsers:["E115","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-timeline-inset"}],description:"The view-timeline-inset CSS property is used to specify one or two values representing an adjustment to the position of the scrollport (see Scroll container for more details) in which the subject element of a named view progress timeline animation is deemed to be visible. Put another way, this allows you to specify start and/or end inset (or outset) values that offset the position of the timeline."},{name:"view-timeline-name",status:"experimental",syntax:"none | <dashed-ident>#",relevance:50,browsers:["E115","FF111","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-timeline-name"}],description:"The view-timeline-name CSS property is used to define the name of a named view progress timeline, which is progressed through based on the change in visibility of an element (known as the subject) inside a scrollable element (scroller). view-timeline is set on the subject."},{name:"view-transition-name",status:"experimental",syntax:"none | <custom-ident>",relevance:50,browsers:["E111","C111","O97"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-transition-name"}],description:"The view-transition-name CSS property provides the selected element with a distinct identifying name (a custom-ident) and causes it to participate in a separate view transition from the root view transition \u2014 or no view transition if the none value is specified."},{name:"white-space",syntax:"normal | pre | nowrap | pre-wrap | pre-line | break-spaces | [ <'white-space-collapse'> || <'text-wrap'> || <'white-space-trim'> ]",relevance:89,browsers:["E12","FF1","S1","C1","IE5.5","O4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/white-space"}],description:"Specifies how whitespace is handled in an element."},{name:"white-space-collapse",syntax:"collapse | discard | preserve | preserve-breaks | preserve-spaces | break-spaces",values:[{name:"collapse"},{name:"discard"},{name:"preserve"},{name:"preserve-breaks"},{name:"preserve-spaces"},{name:"break-spaces"}],relevance:50,browsers:["E114","Spreview","C114","O100"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/white-space-collapse"}],description:"The white-space-collapse CSS property controls how white space inside an element is collapsed."},{name:"speak-as",atRule:"@counter-style",syntax:"auto | bullets | numbers | words | spell-out | <counter-style-name>",relevance:50,browsers:["S11.1"],description:"The speak-as descriptor specifies how a counter symbol constructed with a given @counter-style will be represented in the spoken form. For example, an author can specify a counter symbol to be either spoken as its numerical value or just represented with an audio cue."},{name:"base-palette",atRule:"@font-palette-values",syntax:"light | dark | <integer [0,\u221e]>",relevance:50,description:"The base-palette CSS descriptor is used to specify the name or index of a pre-defined palette to be used for creating a new palette. If the specified base-palette does not exist, then the palette defined at index 0 will be used."},{name:"override-colors",atRule:"@font-palette-values",syntax:"[ <integer [0,\u221e]> <absolute-color-base> ]#",relevance:50,description:"The override-colors CSS descriptor is used to override colors in the chosen base-palette for a color font."},{name:"ascent-override",atRule:"@font-face",status:"experimental",syntax:"normal | <percentage>",relevance:50,description:"Describes the ascent metric of a font."},{name:"descent-override",atRule:"@font-face",status:"experimental",syntax:"normal | <percentage>",relevance:50,description:"Describes the descent metric of a font."},{name:"font-display",atRule:"@font-face",status:"experimental",syntax:"[ auto | block | swap | fallback | optional ]",relevance:74,description:"The font-display descriptor determines how a font face is displayed based on whether and when it is downloaded and ready to use."},{name:"line-gap-override",atRule:"@font-face",status:"experimental",syntax:"normal | <percentage>",relevance:50,description:"Describes the line-gap metric of a font."},{name:"size-adjust",atRule:"@font-face",status:"experimental",syntax:"<percentage>",relevance:50,description:"A multiplier for glyph outlines and metrics of a font."},{name:"bleed",atRule:"@page",syntax:"auto | <length>",relevance:50,description:"The bleed CSS at-rule descriptor, used with the @page at-rule, specifies the extent of the page bleed area outside the page box. This property only has effect if crop marks are enabled using the marks property."},{name:"marks",atRule:"@page",syntax:"none | [ crop || cross ]",relevance:50,description:"The marks CSS at-rule descriptor, used with the @page at-rule, adds crop and/or cross marks to the presentation of the document. Crop marks indicate where the page should be cut. Cross marks are used to align sheets."},{name:"page-orientation",atRule:"@page",syntax:"upright | rotate-left | rotate-right ",relevance:50,description:"The page-orientation CSS descriptor for the @page at-rule controls the rotation of a printed page. It handles the flow of content across pages when the orientation of a page is changed. This behavior differs from the size descriptor in that a user can define the direction in which to rotate the page."},{name:"syntax",atRule:"@property",status:"experimental",syntax:"<string>",relevance:50,description:"Specifies the syntax of the custom property registration represented by the @property rule, controlling how the property\u2019s value is parsed at computed value time."},{name:"inherits",atRule:"@property",status:"experimental",syntax:"true | false",values:[{name:"true"},{name:"false"}],relevance:50,description:"Specifies the inherit flag of the custom property registration represented by the @property rule, controlling whether or not the property inherits by default."},{name:"initial-value",atRule:"@property",status:"experimental",syntax:"<declaration-value>?",relevance:50,description:"Specifies the initial value of the custom property registration represented by the @property rule, controlling the property\u2019s initial value."}],atDirectives:[{name:"@charset",browsers:["E12","FF1.5","S4","C2","IE5.5","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@charset"}],description:"Defines character set of the document."},{name:"@counter-style",browsers:["E91","FF33","S17","C91","O77"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@counter-style"}],description:"Defines a custom counter style."},{name:"@font-face",browsers:["E12","FF3.5","S3.1","C1","IE4","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@font-face"}],description:"Allows for linking to fonts that are automatically activated when needed. This permits authors to work around the limitation of 'web-safe' fonts, allowing for consistent rendering independent of the fonts available in a given user's environment."},{name:"@font-feature-values",browsers:["E111","FF34","S9.1","C111","O97"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"}],description:"Defines named values for the indices used to select alternate glyphs for a given font family."},{name:"@import",browsers:["E12","FF1","S1","C1","IE5.5","O3.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@import"}],description:"Includes content of another file."},{name:"@keyframes",browsers:["E12","FF16","S9","C43","IE10","O30"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@keyframes"}],description:"Defines set of animation key frames."},{name:"@layer",browsers:["E99","FF97","S15.4","C99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@layer"}],description:"Declare a cascade layer and the order of precedence in case of multiple cascade layers."},{name:"@media",browsers:["E12","FF1","S3","C1","IE6","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@media"}],description:"Defines a stylesheet for a particular media type."},{name:"@-moz-document",browsers:["FF1.8"],description:"Gecko-specific at-rule that restricts the style rules contained within it based on the URL of the document."},{name:"@-moz-keyframes",browsers:["FF5"],description:"Defines set of animation key frames."},{name:"@-ms-viewport",browsers:["E","IE10"],description:"Specifies the size, zoom factor, and orientation of the viewport."},{name:"@namespace",browsers:["E12","FF1","S1","C1","IE9","O8"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@namespace"}],description:"Declares a prefix and associates it with a namespace name."},{name:"@-o-keyframes",browsers:["O12"],description:"Defines set of animation key frames."},{name:"@-o-viewport",browsers:["O11"],description:"Specifies the size, zoom factor, and orientation of the viewport."},{name:"@page",browsers:["E12","FF19","S13.1","C2","IE8","O6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@page"}],description:"Directive defines various page parameters."},{name:"@property",browsers:["E85","FFpreview","S16.4","C85","O71"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@property"}],description:"Describes the aspect of custom properties and variables."},{name:"@supports",browsers:["E12","FF22","S9","C28","O12.1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@supports"}],description:"A conditional group rule whose condition tests whether the user agent supports CSS property:value pairs."},{name:"@-webkit-keyframes",browsers:["C","S4"],description:"Defines set of animation key frames."}],pseudoClasses:[{name:":active",browsers:["E12","FF1","S1","C1","IE4","O5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:active"}],description:"Applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it."},{name:":any-link",browsers:["E79","FF50","S9","C65","O52"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:any-link"}],description:"Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."},{name:":checked",browsers:["E12","FF1","S3.1","C1","IE9","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:checked"}],description:"Radio and checkbox elements can be toggled by the user. Some menu items are 'checked' when the user selects them. When such elements are toggled 'on' the :checked pseudo-class applies."},{name:":corner-present",browsers:["C","S5"],description:"Non-standard. Indicates whether or not a scrollbar corner is present."},{name:":decrement",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will decrement the view's position when used."},{name:":default",browsers:["E79","FF4","S5","C10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:default"}],description:"Applies to the one or more UI elements that are the default among a set of similar elements. Typically applies to context menu items, buttons, and select lists/menus."},{name:":disabled",browsers:["E12","FF1","S3.1","C1","IE9","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:disabled"}],description:"Represents user interface elements that are in a disabled state; such elements have a corresponding enabled state."},{name:":double-button",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed together at the same end of the scrollbar."},{name:":empty",browsers:["E12","FF1","S3.1","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:empty"}],description:"Represents an element that has no children at all."},{name:":enabled",browsers:["E12","FF1","S3.1","C1","IE9","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:enabled"}],description:"Represents user interface elements that are in an enabled state; such elements have a corresponding disabled state."},{name:":end",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed after the thumb."},{name:":first",browsers:["E12","FF116","S6","C18","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":first-child",browsers:["E12","FF3","S3.1","C4","IE7","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first-child"}],description:"Same as :nth-child(1). Represents an element that is the first child of some other element."},{name:":first-of-type",browsers:["E12","FF3.5","S3.1","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first-of-type"}],description:"Same as :nth-of-type(1). Represents an element that is the first sibling of its type in the list of children of its parent element."},{name:":focus",browsers:["E12","FF1","S1","C1","IE8","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus"}],description:"Applies while an element has the focus (accepts keyboard or mouse events, or other forms of input)."},{name:":fullscreen",browsers:["E12","FF64","S16.4","C71","IE11","O58"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:fullscreen"}],description:"Matches any element that has its fullscreen flag set."},{name:":future",browsers:["E79","S7","C23","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:future"}],description:"Represents any element that is defined to occur entirely after a :current element."},{name:":horizontal",browsers:["C","S5"],description:"Non-standard. Applies to any scrollbar pieces that have a horizontal orientation."},{name:":host",browsers:["E79","FF63","S10","C54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:host"}],description:"When evaluated in the context of a shadow tree, matches the shadow tree's host element."},{name:":host()",browsers:["C35","O22"],description:"When evaluated in the context of a shadow tree, it matches the shadow tree's host element if the host element, in its normal context, matches the selector argument."},{name:":host-context()",browsers:["C35","O22"],description:"Tests whether there is an ancestor, outside the shadow tree, which matches a particular selector."},{name:":hover",browsers:["E12","FF1","S2","C1","IE4","O4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:hover"}],description:"Applies while the user designates an element with a pointing device, but does not necessarily activate it. For example, a visual user agent could apply this pseudo-class when the cursor (mouse pointer) hovers over a box generated by the element."},{name:":increment",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will increment the view's position when used."},{name:":indeterminate",browsers:["E12","FF2","S3","C1","IE10","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:indeterminate"}],description:"Applies to UI elements whose value is in an indeterminate state."},{name:":in-range",browsers:["E13","FF29","S5.1","C10","O11"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:in-range"}],description:"Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."},{name:":invalid",browsers:["E12","FF4","S5","C10","IE10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:invalid"}],description:"An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."},{name:":lang()",browsers:["E","C","FF1","IE8","O8","S3"],description:"Represents an element that is in language specified."},{name:":last-child",browsers:["E12","FF1","S3.1","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:last-child"}],description:"Same as :nth-last-child(1). Represents an element that is the last child of some other element."},{name:":last-of-type",browsers:["E12","FF3.5","S3.1","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:last-of-type"}],description:"Same as :nth-last-of-type(1). Represents an element that is the last sibling of its type in the list of children of its parent element."},{name:":left",browsers:["E12","S5","C6","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:left"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":link",browsers:["E12","FF1","S1","C1","IE3","O3.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:link"}],description:"Applies to links that have not yet been visited."},{name:":matches()",browsers:["S9"],description:"Takes a selector list as its argument. It represents an element that is represented by its argument."},{name:":-moz-any()",browsers:["FF4"],description:"Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."},{name:":-moz-any-link",browsers:["FF1"],description:"Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."},{name:":-moz-broken",browsers:["FF3"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-broken"}],description:"Non-standard. Matches elements representing broken images."},{name:":-moz-drag-over",browsers:["FF1"],description:"Non-standard. Matches elements when a drag-over event applies to it."},{name:":-moz-first-node",browsers:["FF72"],description:"Non-standard. Represents an element that is the first child node of some other element."},{name:":-moz-focusring",browsers:["FF4"],description:"Non-standard. Matches an element that has focus and focus ring drawing is enabled in the browser."},{name:":-moz-full-screen",browsers:["FF9"],description:"Matches any element that has its fullscreen flag set. Standardized as :fullscreen."},{name:":-moz-last-node",browsers:["FF72"],description:"Non-standard. Represents an element that is the last child node of some other element."},{name:":-moz-loading",browsers:["FF3"],description:"Non-standard. Matches elements, such as images, that haven't started loading yet."},{name:":-moz-only-whitespace",browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-only-whitespace"}],description:"The same as :empty, except that it additionally matches elements that only contain code points affected by whitespace processing. Standardized as :blank."},{name:":-moz-placeholder",browsers:["FF4"],description:"Deprecated. Represents placeholder text in an input field. Use ::-moz-placeholder for Firefox 19+."},{name:":-moz-submit-invalid",browsers:["FF88"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-submit-invalid"}],description:"Non-standard. Represents any submit button when the contents of the associated form are not valid."},{name:":-moz-suppressed",browsers:["FF3"],description:"Non-standard. Matches elements representing images that have been blocked from loading."},{name:":-moz-ui-invalid",browsers:["FF4"],description:"Non-standard. Represents any validated form element whose value isn't valid "},{name:":-moz-ui-valid",browsers:["FF4"],description:"Non-standard. Represents any validated form element whose value is valid "},{name:":-moz-user-disabled",browsers:["FF3"],description:"Non-standard. Matches elements representing images that have been disabled due to the user's preferences."},{name:":-moz-window-inactive",browsers:["FF4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-window-inactive"}],description:"Non-standard. Matches elements in an inactive window."},{name:":-ms-fullscreen",browsers:["IE11"],description:"Matches any element that has its fullscreen flag set."},{name:":-ms-input-placeholder",browsers:["IE10"],description:"Represents placeholder text in an input field. Note: for Edge use the pseudo-element ::-ms-input-placeholder. Standardized as ::placeholder."},{name:":-ms-keyboard-active",browsers:["IE10"],description:"Windows Store apps only. Applies one or more styles to an element when it has focus and the user presses the space bar."},{name:":-ms-lang()",browsers:["E","IE10"],description:"Represents an element that is in the language specified. Accepts a comma separated list of language tokens."},{name:":no-button",browsers:["C","S5"],description:"Non-standard. Applies to track pieces. Applies when there is no button at that end of the track."},{name:":not()",browsers:["E","C","FF1","IE9","O9.5","S2"],description:"The negation pseudo-class, :not(X), is a functional notation taking a simple selector (excluding the negation pseudo-class itself) as an argument. It represents an element that is not represented by its argument."},{name:":nth-child()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings before it in the document tree, for any positive integer or zero value of n, and has a parent element."},{name:":nth-last-child()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings after it in the document tree, for any positive integer or zero value of n, and has a parent element."},{name:":nth-last-of-type()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings with the same expanded element name after it in the document tree, for any zero or positive integer value of n, and has a parent element."},{name:":nth-of-type()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings with the same expanded element name before it in the document tree, for any zero or positive integer value of n, and has a parent element."},{name:":only-child",browsers:["E12","FF1.5","S3.1","C2","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:only-child"}],description:"Represents an element that has a parent element and whose parent element has no other element children. Same as :first-child:last-child or :nth-child(1):nth-last-child(1), but with a lower specificity."},{name:":only-of-type",browsers:["E12","FF3.5","S3.1","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:only-of-type"}],description:"Matches every element that is the only child of its type, of its parent. Same as :first-of-type:last-of-type or :nth-of-type(1):nth-last-of-type(1), but with a lower specificity."},{name:":optional",browsers:["E12","FF4","S5","C10","IE10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:optional"}],description:"A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."},{name:":out-of-range",browsers:["E13","FF29","S5.1","C10","O11"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:out-of-range"}],description:"Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."},{name:":past",browsers:["E79","S7","C23","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:past"}],description:"Represents any element that is defined to occur entirely prior to a :current element."},{name:":read-only",browsers:["E13","FF78","S4","C1","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:read-only"}],description:"An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."},{name:":read-write",browsers:["E13","FF78","S4","C1","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:read-write"}],description:"An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."},{name:":required",browsers:["E12","FF4","S5","C10","IE10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:required"}],description:"A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."},{name:":right",browsers:["E12","S5","C6","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:right"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":root",browsers:["E12","FF1","S1","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:root"}],description:"Represents an element that is the root of the document. In HTML 4, this is always the HTML element."},{name:":scope",browsers:["E79","FF32","S7","C27","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:scope"}],description:"Represents any element that is in the contextual reference element set."},{name:":single-button",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed separately at either end of the scrollbar."},{name:":start",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed before the thumb."},{name:":target",browsers:["E12","FF1","S1.3","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:target"}],description:"Some URIs refer to a location within a resource. This kind of URI ends with a 'number sign' (#) followed by an anchor identifier (called the fragment identifier)."},{name:":valid",browsers:["E12","FF4","S5","C10","IE10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:valid"}],description:"An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."},{name:":vertical",browsers:["C","S5"],description:"Non-standard. Applies to any scrollbar pieces that have a vertical orientation."},{name:":visited",browsers:["E12","FF1","S1","C1","IE4","O3.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:visited"}],description:"Applies once the link has been visited by the user."},{name:":-webkit-any()",browsers:["C","S5"],description:"Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."},{name:":-webkit-full-screen",browsers:["C","S6"],description:"Matches any element that has its fullscreen flag set. Standardized as :fullscreen."},{name:":window-inactive",browsers:["C","S3"],description:"Non-standard. Applies to all scrollbar pieces. Indicates whether or not the window containing the scrollbar is currently active."},{name:":current",status:"experimental",description:"The :current CSS pseudo-class selector is a time-dimensional pseudo-class that represents the element, or an ancestor of the element, that is currently being displayed"},{name:":blank",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:blank"}],description:"The :blank CSS pseudo-class selects empty user input elements (eg. <input> or <textarea>)."},{name:":defined",status:"experimental",browsers:["E79","FF63","S10","C54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:defined"}],description:"The :defined CSS pseudo-class represents any element that has been defined. This includes any standard element built in to the browser, and custom elements that have been successfully defined (i.e. with the CustomElementRegistry.define() method)."},{name:":dir",browsers:["E120","FF49","S16.4","C120","O106"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:dir"}],description:"The :dir() CSS pseudo-class matches elements based on the directionality of the text contained in them."},{name:":focus-visible",browsers:["E86","FF85","S15.4","C86","O72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus-visible"}],description:"The :focus-visible pseudo-class applies while an element matches the :focus pseudo-class and the UA determines via heuristics that the focus should be made evident on the element."},{name:":focus-within",browsers:["E79","FF52","S10.1","C60","O47"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus-within"}],description:"The :focus-within pseudo-class applies to any element for which the :focus pseudo class applies as well as to an element whose descendant in the flat tree (including non-element nodes, such as text nodes) matches the conditions for matching :focus."},{name:":has",status:"experimental",browsers:["E105","FF121","S15.4","C105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:has"}],description:":The :has() CSS pseudo-class represents an element if any of the selectors passed as parameters (relative to the :scope of the given element), match at least one element."},{name:":is",status:"experimental",browsers:["E88","FF78","S14","C88","O74"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:is"}],description:"The :is() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list. This is useful for writing large selectors in a more compact form."},{name:":local-link",status:"experimental",description:"The :local-link CSS pseudo-class represents an link to the same document"},{name:":paused",status:"experimental",browsers:["S15.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:paused"}],description:"The :paused CSS pseudo-class selector is a resource state pseudo-class that will match an audio, video, or similar resource that is capable of being \u201cplayed\u201d or \u201cpaused\u201d, when that element is \u201cpaused\u201d."},{name:":placeholder-shown",status:"experimental",browsers:["E79","FF51","S9","C47","IE10","O34"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:placeholder-shown"}],description:"The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text."},{name:":playing",status:"experimental",browsers:["S15.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:playing"}],description:"The :playing CSS pseudo-class selector is a resource state pseudo-class that will match an audio, video, or similar resource that is capable of being \u201cplayed\u201d or \u201cpaused\u201d, when that element is \u201cplaying\u201d. "},{name:":target-within",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:target-within"}],description:"The :target-within CSS pseudo-class represents an element that is a target element or contains an element that is a target. A target element is a unique element with an id matching the URL's fragment."},{name:":user-invalid",status:"experimental",browsers:["E119","FF88","S16.5","C119","O105"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:user-invalid"}],description:"The :user-invalid CSS pseudo-class represents any validated form element whose value isn't valid based on their validation constraints, after the user has interacted with it."},{name:":user-valid",status:"experimental",browsers:["E119","FF88","S16.5","C119","O105"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:user-valid"}],description:"The :user-valid CSS pseudo-class represents any validated form element whose value validates correctly based on its validation constraints. However, unlike :valid it only matches once the user has interacted with it."},{name:":where",status:"experimental",browsers:["E88","FF78","S14","C88","O74"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:where"}],description:"The :where() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list."},{name:":picture-in-picture",status:"experimental",browsers:["E110","S13.1","C110","O96"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:picture-in-picture"}],description:"The :picture-in-picture CSS pseudo-class matches the element which is currently in picture-in-picture mode."}],pseudoElements:[{name:"::after",browsers:["E12","FF1.5","S4","C1","IE9","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::after"}],description:"Represents a styleable child pseudo-element immediately after the originating element's actual content."},{name:"::backdrop",browsers:["E79","FF47","S15.4","C37","IE11","O24"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::backdrop"}],description:"Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."},{name:"::before",browsers:["E12","FF1.5","S4","C1","IE9","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::before"}],description:"Represents a styleable child pseudo-element immediately before the originating element's actual content."},{name:"::content",browsers:["C35","O22"],description:"Deprecated. Matches the distribution list itself, on elements that have one. Use ::slotted for forward compatibility."},{name:"::cue",browsers:["E79","FF55","S7","C26","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::cue"}]},{name:"::cue()",browsers:["C","O16","S6"]},{name:"::cue-region",browsers:["C","O16","S6"]},{name:"::cue-region()",browsers:["C","O16","S6"]},{name:"::first-letter",browsers:["E12","FF1","S1","C1","IE9","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::first-letter"}],description:"Represents the first letter of an element, if it is not preceded by any other content (such as images or inline tables) on its line."},{name:"::first-line",browsers:["E12","FF1","S1","C1","IE9","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::first-line"}],description:"Describes the contents of the first formatted line of its originating element."},{name:"::-moz-focus-inner",browsers:["FF72"]},{name:"::-moz-focus-outer",browsers:["FF4"]},{name:"::-moz-list-bullet",browsers:["FF72"],description:"Used to style the bullet of a list element. Similar to the standardized ::marker."},{name:"::-moz-list-number",browsers:["FF72"],description:"Used to style the numbers of a list element. Similar to the standardized ::marker."},{name:"::-moz-placeholder",browsers:["FF19"],description:"Represents placeholder text in an input field"},{name:"::-moz-progress-bar",browsers:["FF72"],description:"Represents the bar portion of a progress bar."},{name:"::-moz-selection",browsers:["FF1"],description:"Represents the portion of a document that has been highlighted by the user."},{name:"::-ms-backdrop",browsers:["IE11"],description:"Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."},{name:"::-ms-browse",browsers:["E","IE10"],description:"Represents the browse button of an input type=file control."},{name:"::-ms-check",browsers:["E","IE10"],description:"Represents the check of a checkbox or radio button input control."},{name:"::-ms-clear",browsers:["E","IE10"],description:"Represents the clear button of a text input control"},{name:"::-ms-expand",browsers:["E","IE10"],description:"Represents the drop-down button of a select control."},{name:"::-ms-fill",browsers:["E","IE10"],description:"Represents the bar portion of a progress bar."},{name:"::-ms-fill-lower",browsers:["E","IE10"],description:"Represents the portion of the slider track from its smallest value up to the value currently selected by the thumb. In a left-to-right layout, this is the portion of the slider track to the left of the thumb."},{name:"::-ms-fill-upper",browsers:["E","IE10"],description:"Represents the portion of the slider track from the value currently selected by the thumb up to the slider's largest value. In a left-to-right layout, this is the portion of the slider track to the right of the thumb."},{name:"::-ms-reveal",browsers:["E","IE10"],description:"Represents the password reveal button of an input type=password control."},{name:"::-ms-thumb",browsers:["E","IE10"],description:"Represents the portion of range input control (also known as a slider control) that the user drags."},{name:"::-ms-ticks-after",browsers:["E","IE10"],description:"Represents the tick marks of a slider that begin just after the thumb and continue up to the slider's largest value. In a left-to-right layout, these are the ticks to the right of the thumb."},{name:"::-ms-ticks-before",browsers:["E","IE10"],description:"Represents the tick marks of a slider that represent its smallest values up to the value currently selected by the thumb. In a left-to-right layout, these are the ticks to the left of the thumb."},{name:"::-ms-tooltip",browsers:["E","IE10"],description:"Represents the tooltip of a slider (input type=range)."},{name:"::-ms-track",browsers:["E","IE10"],description:"Represents the track of a slider."},{name:"::-ms-value",browsers:["E","IE10"],description:"Represents the content of a text or password input control, or a select control."},{name:"::selection",browsers:["E12","FF62","S1.1","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::selection"}],description:"Represents the portion of a document that has been highlighted by the user."},{name:"::shadow",browsers:["C35","O22"],description:"Matches the shadow root if an element has a shadow tree."},{name:"::-webkit-file-upload-button",browsers:["C","O","S6"]},{name:"::-webkit-inner-spin-button",browsers:["E79","S5","C6","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-inner-spin-button"}]},{name:"::-webkit-input-placeholder",browsers:["C","S4"]},{name:"::-webkit-keygen-select",browsers:["C","O","S6"]},{name:"::-webkit-meter-bar",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-bar"}]},{name:"::-webkit-meter-even-less-good-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-even-less-good-value"}]},{name:"::-webkit-meter-optimum-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-optimum-value"}]},{name:"::-webkit-meter-suboptimum-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-suboptimum-value"}]},{name:"::-webkit-outer-spin-button",browsers:["C","O","S6"]},{name:"::-webkit-progress-bar",browsers:["E79","S7","C25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-bar"}]},{name:"::-webkit-progress-inner-element",browsers:["E79","S7","C23","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-inner-element"}]},{name:"::-webkit-progress-value",browsers:["E79","S7","C25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-value"}]},{name:"::-webkit-resizer",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-button",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-corner",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-thumb",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-track",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-track-piece",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-search-cancel-button",browsers:["E79","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-cancel-button"}]},{name:"::-webkit-search-decoration",browsers:["C","S4"]},{name:"::-webkit-search-results-button",browsers:["E79","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-results-button"}]},{name:"::-webkit-search-results-decoration",browsers:["C","S4"]},{name:"::-webkit-slider-runnable-track",browsers:["E83","C83","O69"]},{name:"::-webkit-slider-thumb",browsers:["E83","C83","O69"]},{name:"::-webkit-textfield-decoration-container",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-arrow",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-arrow-clipper",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-heading",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-message",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-text-block",browsers:["C","O","S6"]},{name:"::target-text",status:"experimental",browsers:["E89","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::target-text"}],description:"The ::target-text CSS pseudo-element represents the text that has been scrolled to if the browser supports scroll-to-text fragments. It allows authors to choose how to highlight that section of text."},{name:"::-moz-range-progress",status:"nonstandard",browsers:["FF22"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-progress"}],description:'The ::-moz-range-progress CSS pseudo-element is a Mozilla extension that represents the lower portion of the track (i.e., groove) in which the indicator slides in an <input> of type="range". This portion corresponds to values lower than the value currently selected by the thumb (i.e., virtual knob).'},{name:"::-moz-range-thumb",status:"nonstandard",browsers:["FF21"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-thumb"}],description:'The ::-moz-range-thumb CSS pseudo-element is a Mozilla extension that represents the thumb (i.e., virtual knob) of an <input> of type="range". The user can move the thumb along the input\'s track to alter its numerical value.'},{name:"::-moz-range-track",status:"nonstandard",browsers:["FF21"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-track"}],description:'The ::-moz-range-track CSS pseudo-element is a Mozilla extension that represents the track (i.e., groove) in which the indicator slides in an <input> of type="range".'},{name:"::-webkit-progress-inner-value",status:"nonstandard",description:"The ::-webkit-progress-value CSS pseudo-element represents the filled-in portion of the bar of a <progress> element. It is a child of the ::-webkit-progress-bar pseudo-element.\n\nIn order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element."},{name:"::grammar-error",status:"experimental",browsers:["E121","Spreview","C121"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::grammar-error"}],description:"The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect."},{name:"::marker",browsers:["E86","FF68","S11.1","C86","O72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::marker"}],description:"The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements."},{name:"::part",status:"experimental",browsers:["E79","FF72","S13.1","C73","O60"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::part"}],description:"The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute."},{name:"::placeholder",browsers:["E79","FF51","S10.1","C57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::placeholder"}],description:"The ::placeholder CSS pseudo-element represents the placeholder text of a form element."},{name:"::slotted",browsers:["E79","FF63","S10","C50","O37"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::slotted"}],description:"The :slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template."},{name:"::spelling-error",status:"experimental",browsers:["E121","Spreview","C121"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::spelling-error"}],description:"The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled."},{name:"::view-transition",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition"}],description:"The ::view-transition CSS pseudo-element represents the root of the view transitions overlay, which contains all view transitions and sits over the top of all other page content."},{name:"::view-transition-group",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-group"}],description:"The ::view-transition-group CSS pseudo-element represents a single view transition group."},{name:"::view-transition-image-pair",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-image-pair"}],description:'The ::view-transition-image-pair CSS pseudo-element represents a container for a view transition\'s "old" and "new" view states \u2014 before and after the transition.'},{name:"::view-transition-new",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-new"}],description:'The ::view-transition-new CSS pseudo-element represents the "new" view state of a view transition \u2014 a live representation of the new view, after the transition.'},{name:"::view-transition-old",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-old"}],description:'The ::view-transition-old CSS pseudo-element represents the "old" view state of a view transition \u2014 a static screenshot of the old view, before the transition.'}]},ya=class{constructor(e){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(e)}provideProperties(){return this._properties}provideAtDirectives(){return this._atDirectives}providePseudoClasses(){return this._pseudoClasses}providePseudoElements(){return this._pseudoElements}addData(e){if(Array.isArray(e.properties))for(const t of e.properties)"string"===typeof t.name&&this._properties.push(t);if(Array.isArray(e.atDirectives))for(const t of e.atDirectives)wa(t)&&this._atDirectives.push(t);if(Array.isArray(e.pseudoClasses))for(const t of e.pseudoClasses)_a(t)&&this._pseudoClasses.push(t);if(Array.isArray(e.pseudoElements))for(const t of e.pseudoElements)ka(t)&&this._pseudoElements.push(t)}};function wa(e){return"string"===typeof e.name}function _a(e){return"string"===typeof e.name}function ka(e){return"string"===typeof e.name}var Ca=class{constructor(e){this.dataProviders=[],this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.setDataProviders(!1!==e?.useDefaultDataProvider,e?.customDataProviders||[])}setDataProviders(e,t){this.dataProviders=[],e&&this.dataProviders.push(new ya(va)),this.dataProviders.push(...t),this.collectData()}collectData(){this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach((e=>{e.provideProperties().forEach((e=>{this._propertySet[e.name]||(this._propertySet[e.name]=e)})),e.provideAtDirectives().forEach((e=>{this._atDirectiveSet[e.name]||(this._atDirectiveSet[e.name]=e)})),e.providePseudoClasses().forEach((e=>{this._pseudoClassSet[e.name]||(this._pseudoClassSet[e.name]=e)})),e.providePseudoElements().forEach((e=>{this._pseudoElementSet[e.name]||(this._pseudoElementSet[e.name]=e)}))})),this._properties=ss(this._propertySet),this._atDirectives=ss(this._atDirectiveSet),this._pseudoClasses=ss(this._pseudoClassSet),this._pseudoElements=ss(this._pseudoElementSet)}getProperty(e){return this._propertySet[e]}getAtDirective(e){return this._atDirectiveSet[e]}getPseudoClass(e){return this._pseudoClassSet[e]}getPseudoElement(e){return this._pseudoElementSet[e]}getProperties(){return this._properties}getAtDirectives(){return this._atDirectives}getPseudoClasses(){return this._pseudoClasses}getPseudoElements(){return this._pseudoElements}isKnownProperty(e){return e.toLowerCase()in this._propertySet}isStandardProperty(e){return this.isKnownProperty(e)&&(!this._propertySet[e.toLowerCase()].status||"standard"===this._propertySet[e.toLowerCase()].status)}};function Sa(e,t,n){return t.map((function(t){const i=function(t){const i=e.offsetAt(t);let r=n.findChildAtOffset(i,!0);if(!r)return[];const s=[];for(;r;)r.parent&&r.offset===r.parent.offset&&r.end===r.parent.end||(r.type===ee.Declarations&&i>r.offset&&i<r.end&&s.push([r.offset+1,r.end-1]),s.push([r.offset,r.end])),r=r.parent;return s}(t);let r;for(let n=i.length-1;n>=0;n--)r=Ri.create(qt.create(e.positionAt(i[n][0]),e.positionAt(i[n][1])),r);return r||(r=Ri.create(qt.create(t,t))),r}))}var xa=class extends Js{constructor(e){super(e,!0)}isRawStringDocumentLinkNode(e){return super.isRawStringDocumentLinkNode(e)||e.type===ee.Use||e.type===ee.Forward}async mapReference(e,t){if(this.fileSystemProvider&&e&&t){const t=function(e){if(e.endsWith(".css"))return[e];if(e.endsWith("/"))return[e+"index.scss",e+"_index.scss"];const t=gs.parse(e.replace(/\.scss$/,"")),n=bs.basename(t),i=bs.dirname(t);if(n.startsWith("_"))return[bs.joinPath(i,n+".scss").toString(!0)];return[bs.joinPath(i,n+".scss").toString(!0),bs.joinPath(i,"_"+n+".scss").toString(!0),e+"/index.scss",e+"/_index.scss",bs.joinPath(i,n+".css").toString(!0)]}(e);for(const e of t)if(await this.fileExists(e))return e}return e}async resolveReference(e,t,n,i=!1){if(!se(e,"sass:"))return super.resolveReference(e,t,n,i)}};function Ea(e){return new ya(e)}function Fa(e,t,n,i,r,s,o){return{configure:e=>{s.configure(e),t.configure(e?.completion),n.configure(e?.hover),i.configure(e?.importAliases)},setDataProviders:o.setDataProviders.bind(o),doValidation:s.doValidation.bind(s),parseStylesheet:e.parseStylesheet.bind(e),doComplete:t.doComplete.bind(t),doComplete2:t.doComplete2.bind(t),setCompletionParticipants:t.setCompletionParticipants.bind(t),doHover:n.doHover.bind(n),format:da,findDefinition:i.findDefinition.bind(i),findReferences:i.findReferences.bind(i),findDocumentHighlights:i.findDocumentHighlights.bind(i),findDocumentLinks:i.findDocumentLinks.bind(i),findDocumentLinks2:i.findDocumentLinks2.bind(i),findDocumentSymbols:i.findSymbolInformations.bind(i),findDocumentSymbols2:i.findDocumentSymbols.bind(i),doCodeActions:r.doCodeActions.bind(r),doCodeActions2:r.doCodeActions2.bind(r),findDocumentColors:i.findDocumentColors.bind(i),getColorPresentations:i.getColorPresentations.bind(i),prepareRename:i.prepareRename.bind(i),doRename:i.doRename.bind(i),getFoldingRanges:la,getSelectionRanges:Sa}}var La={};var Ia=class{constructor(e,t){this._ctx=e,this._languageSettings=t.options,this._languageId=t.languageId;const n=t.options.data,i=n?.useDefaultDataProvider,r=[];if(n?.dataProviders)for(const o in n.dataProviders)r.push(Ea(n.dataProviders[o]));const s={customDataProviders:r,useDefaultDataProvider:i};switch(this._languageId){case"css":this._languageService=function(e=La){const t=new Ca(e);return Fa(new as,new Ts(null,e,t),new Hs(e&&e.clientCapabilities,t),new Js(e&&e.fileSystemProvider,!1),new lo(t),new ko(t),t)}(s);break;case"less":this._languageService=function(e=La){const t=new Ca(e);return Fa(new oa,new aa(e,t),new Hs(e&&e.clientCapabilities,t),new Js(e&&e.fileSystemProvider,!0),new lo(t),new ko(t),t)}(s);break;case"scss":this._languageService=function(e=La){const t=new Ca(e);return Fa(new Ko,new Go(e,t),new Hs(e&&e.clientCapabilities,t),new xa(e&&e.fileSystemProvider),new lo(t),new ko(t),t)}(s);break;default:throw new Error("Invalid language id: "+this._languageId)}this._languageService.configure(this._languageSettings)}async doValidation(e){const t=this._getTextDocument(e);if(t){const e=this._languageService.parseStylesheet(t),n=this._languageService.doValidation(t,e);return Promise.resolve(n)}return Promise.resolve([])}async doComplete(e,t){const n=this._getTextDocument(e);if(!n)return null;const i=this._languageService.parseStylesheet(n),r=this._languageService.doComplete(n,t,i);return Promise.resolve(r)}async doHover(e,t){const n=this._getTextDocument(e);if(!n)return null;const i=this._languageService.parseStylesheet(n),r=this._languageService.doHover(n,t,i);return Promise.resolve(r)}async findDefinition(e,t){const n=this._getTextDocument(e);if(!n)return null;const i=this._languageService.parseStylesheet(n),r=this._languageService.findDefinition(n,t,i);return Promise.resolve(r)}async findReferences(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.parseStylesheet(n),r=this._languageService.findReferences(n,t,i);return Promise.resolve(r)}async findDocumentHighlights(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.parseStylesheet(n),r=this._languageService.findDocumentHighlights(n,t,i);return Promise.resolve(r)}async findDocumentSymbols(e){const t=this._getTextDocument(e);if(!t)return[];const n=this._languageService.parseStylesheet(t),i=this._languageService.findDocumentSymbols(t,n);return Promise.resolve(i)}async doCodeActions(e,t,n){const i=this._getTextDocument(e);if(!i)return[];const r=this._languageService.parseStylesheet(i),s=this._languageService.doCodeActions(i,t,n,r);return Promise.resolve(s)}async findDocumentColors(e){const t=this._getTextDocument(e);if(!t)return[];const n=this._languageService.parseStylesheet(t),i=this._languageService.findDocumentColors(t,n);return Promise.resolve(i)}async getColorPresentations(e,t,n){const i=this._getTextDocument(e);if(!i)return[];const r=this._languageService.parseStylesheet(i),s=this._languageService.getColorPresentations(i,r,t,n);return Promise.resolve(s)}async getFoldingRanges(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.getFoldingRanges(n,t);return Promise.resolve(i)}async getSelectionRanges(e,t){const n=this._getTextDocument(e);if(!n)return[];const i=this._languageService.parseStylesheet(n),r=this._languageService.getSelectionRanges(n,t,i);return Promise.resolve(r)}async doRename(e,t,n){const i=this._getTextDocument(e);if(!i)return null;const r=this._languageService.parseStylesheet(i),s=this._languageService.doRename(i,t,n,r);return Promise.resolve(s)}async format(e,t,n){const i=this._getTextDocument(e);if(!i)return[];const r={...this._languageSettings.format,...n},s=this._languageService.format(i,t,r);return Promise.resolve(s)}_getTextDocument(e){const t=this._ctx.getMirrorModels();for(const n of t)if(n.uri.toString()===e)return ur.create(e,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{s(((e,t)=>new Ia(e,t)))}})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/css.worker.js.LICENSE.txt b/ydb/core/viewer/monitoring/css.worker.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/css.worker.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/css.worker.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/editor.worker.js b/ydb/core/viewer/monitoring/editor.worker.js index 348ed14dfbf..ced528b4404 100644 --- a/ydb/core/viewer/monitoring/editor.worker.js +++ b/ydb/core/viewer/monitoring/editor.worker.js @@ -1 +1 @@ -(()=>{"use strict";const e=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(o.isErrorNoTelemetry(e))throw new o(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function t(t){r(t)||e.onUnexpectedError(t)}function n(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:o.isErrorNoTelemetry(e)}}return e}const i="Canceled";function r(e){return e instanceof s||e instanceof Error&&e.name===i&&e.message===i}class s extends Error{constructor(){super(i),this.name=this.message}}Error;class o extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof o)return e;const t=new o;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class a extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,a.prototype)}}function l(e,t){const n=this;let i,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}var u;!function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*i(e){yield e}e.empty=function(){return n},e.single=i,e.wrap=function(e){return t(e)?e:i(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let i=n;for(const r of e)i=t(i,r);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(u||(u={}));let h=null;function c(e){return null===h||void 0===h||h.trackDisposable(e),e}function d(e){null===h||void 0===h||h.markAsDisposed(e)}function m(e,t){null===h||void 0===h||h.setParent(e,t)}function g(e){if(u.is(e)){const n=[];for(const i of e)if(i)try{i.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function f(...e){const t=p((()=>g(e)));return function(e,t){if(h)for(const n of e)h.setParent(n,t)}(e,t),t}function p(e){const t=c({dispose:l((()=>{d(t),e()}))});return t}class b{constructor(){this._toDispose=new Set,this._isDisposed=!1,c(this)}dispose(){this._isDisposed||(d(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{g(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return m(e,this),this._isDisposed?b.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),m(e,null))}}b.DISABLE_DISPOSED_WARNING=!1;class _{constructor(){this._store=new b,c(this),m(this._store,this)}dispose(){d(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}_.None=Object.freeze({dispose(){}});Symbol.iterator;class v{constructor(e){this.element=e,this.next=v.Undefined,this.prev=v.Undefined}}v.Undefined=new v(void 0);class C{constructor(){this._first=v.Undefined,this._last=v.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===v.Undefined}clear(){let e=this._first;for(;e!==v.Undefined;){const t=e.next;e.prev=v.Undefined,e.next=v.Undefined,e=t}this._first=v.Undefined,this._last=v.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new v(e);if(this._first===v.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==v.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==v.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==v.Undefined&&e.next!==v.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===v.Undefined&&e.next===v.Undefined?(this._first=v.Undefined,this._last=v.Undefined):e.next===v.Undefined?(this._last=this._last.prev,this._last.next=v.Undefined):e.prev===v.Undefined&&(this._first=this._first.next,this._first.prev=v.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==v.Undefined;)yield e.element,e=e.next}}const y=globalThis.performance&&"function"===typeof globalThis.performance.now;class L{static create(e){return new L(e)}constructor(e){this._now=y&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}var w;!function(e){function t(e){false}function n(e){return(t,n=null,i)=>{let r,s=!1;return r=e((e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)}),null,i),s&&r.dispose(),r}}function i(e,t,n){return s(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)),n)}function r(e,t,n){return s(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)),n)}function s(e,n){let i;const r={onWillAddFirstListener(){i=e(s.fire,s)},onDidRemoveLastListener(){null===i||void 0===i||i.dispose()}};n||t();const s=new x(r);return null===n||void 0===n||n.add(s),s.event}function o(e,n,i=100,r=!1,s=!1,o,a){let l,u,h,c,d=0;const m={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{d++,u=n(u,e),r&&!h&&(g.fire(u),u=void 0),c=()=>{const e=u;u=void 0,h=void 0,(!r||d>1)&&g.fire(e),d=0},"number"===typeof i?(clearTimeout(h),h=setTimeout(c,i)):void 0===h&&(h=0,queueMicrotask(c))}))},onWillRemoveListener(){s&&d>0&&(null===c||void 0===c||c())},onDidRemoveLastListener(){c=void 0,l.dispose()}};a||t();const g=new x(m);return null===a||void 0===a||a.add(g),g.event}e.None=()=>_.None,e.defer=function(e,t){return o(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.map=i,e.forEach=function(e,t,n){return s(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)),n)},e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}(f(...e.map((e=>e((e=>t.call(n,e)))))),i)},e.reduce=function(e,t,n,r){let s=n;return i(e,(e=>(s=t(s,e),s)),r)},e.debounce=o,e.accumulate=function(t,n=0,i){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,i)},e.latch=function(e,t=(e,t)=>e===t,n){let i,s=!0;return r(e,(e=>{const n=s||!t(e,i);return s=!1,i=e,n}),n)},e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,(e=>!n(e)),i)]},e.buffer=function(e,t=!1,n=[],i){let r=n.slice(),s=e((e=>{r?r.push(e):a.fire(e)}));i&&i.add(s);const o=()=>{null===r||void 0===r||r.forEach((e=>a.fire(e))),r=null},a=new x({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),i&&i.add(s))},onDidAddFirstListener(){r&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return i&&i.add(a),a.event},e.chain=function(e,t){return(n,i,r)=>{const s=t(new l);return e((function(e){const t=s.evaluate(e);t!==a&&n.call(i,t)}),void 0,r)}};const a=Symbol("HaltChainable");class l{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:a)),this}reduce(e,t){let n=t;return this.steps.push((t=>(n=e(n,t),n))),this}latch(e=(e,t)=>e===t){let t,n=!0;return this.steps.push((i=>{const r=n||!e(i,t);return n=!1,t=i,r?i:a})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===a)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new x({onWillAddFirstListener:()=>e.on(t,i),onDidRemoveLastListener:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new x({onWillAddFirstListener:()=>e.addEventListener(t,i),onDidRemoveLastListener:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new x;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class u{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new x(i),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new u(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,i)=>{let r=0,s=!1;const o={beginUpdate(){r++},endUpdate(){r--,0===r&&(e.reportChanges(),s&&(s=!1,t.call(n)))},handlePossibleChange(){},handleChange(){s=!0}};e.addObserver(o),e.reportChanges();const a={dispose(){e.removeObserver(o)}};return i instanceof b?i.add(a):Array.isArray(i)&&i.push(a),a}}}(w||(w={}));class N{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${N._idPool++}`,N.all.add(this)}start(e){this._stopWatch=new L,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}N.all=new Set,N._idPool=0;class E{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){let e;this._warnCountdown=.5*n;let i=0;for(const[t,n]of this._stacks)(!e||i<n)&&(e=t,i=n);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${i}):`),console.warn(e)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class S{static create(){var e;return new S(null!==(e=(new Error).stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class R{constructor(e){this.value=e}}const A=void 0;class x{constructor(e){var t,n,i,r,s;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new E(null!==(i=null===(n=this._options)||void 0===n?void 0:n.leakWarningThreshold)&&void 0!==i?i:-1):void 0,this._perfMon=(null===(r=this._options)||void 0===r?void 0:r._profName)?new N(this._options._profName):void 0,this._deliveryQueue=null===(s=this._options)||void 0===s?void 0:s.deliveryQueue}dispose(){var e,t,n,i;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(n=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===n||n.call(t),null===(i=this._leakageMon)||void 0===i||i.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,n)=>{var i,r,s,o,a;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),_.None;if(this._disposed)return _.None;t&&(e=e.bind(t));const l=new R(e);let u;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(l.stack=S.create(),u=this._leakageMon.check(l.stack,this._size+1)),this._listeners?this._listeners instanceof R?(null!==(a=this._deliveryQueue)&&void 0!==a||(this._deliveryQueue=new M),this._listeners=[this._listeners,l]):this._listeners.push(l):(null===(r=null===(i=this._options)||void 0===i?void 0:i.onWillAddFirstListener)||void 0===r||r.call(i,this),this._listeners=l,null===(o=null===(s=this._options)||void 0===s?void 0:s.onDidAddFirstListener)||void 0===o||o.call(s,this)),this._size++;const h=p((()=>{null===A||void 0===A||A.unregister(h),null===u||void 0===u||u(),this._removeListener(l)}));if(n instanceof b?n.add(h):Array.isArray(n)&&n.push(h),A){const e=(new Error).stack.split("\n").slice(2).join("\n").trim();A.register(h,e,h)}return h}),this._event}_removeListener(e){var t,n,i,r;if(null===(n=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===n||n.call(t,this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,null===(r=null===(i=this._options)||void 0===i?void 0:i.onDidRemoveLastListener)||void 0===r||r.call(i,this),void(this._size=0);const s=this._listeners,o=s.indexOf(e);if(-1===o)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,s[o]=void 0;const a=this._deliveryQueue.current===this;if(2*this._size<=s.length){let e=0;for(let t=0;t<s.length;t++)s[t]?s[e++]=s[t]:a&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);s.length=e}}_deliver(e,n){var i;if(!e)return;const r=(null===(i=this._options)||void 0===i?void 0:i.onListenerError)||t;if(r)try{e.value(n)}catch(s){r(s)}else e.value(n)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){var t,n,i,r;if((null===(t=this._deliveryQueue)||void 0===t?void 0:t.current)&&(this._deliverQueue(this._deliveryQueue),null===(n=this._perfMon)||void 0===n||n.stop()),null===(i=this._perfMon)||void 0===i||i.start(this._size),this._listeners)if(this._listeners instanceof R)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;null===(r=this._perfMon)||void 0===r||r.stop()}hasListeners(){return this._size>0}}class M{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}Object.prototype.hasOwnProperty;function k(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}let O="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function T(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const i=n[0],r=t[i];let s=e;return"string"===typeof r?s=r:"number"!==typeof r&&"boolean"!==typeof r&&void 0!==r&&null!==r||(s=String(r)),s})),O&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function I(e,t,...n){return T(t,n)}var P,D;const K="en";let F,q,V=!1,B=!1,U=!1,H=!1,W=!1,z=!1,$=!1,j=!1,G=!1,Q=!1,J=null,Y=null,X=null;const Z=globalThis;let ee;"undefined"!==typeof Z.vscode&&"undefined"!==typeof Z.vscode.process?ee=Z.vscode.process:"undefined"!==typeof process&&"string"===typeof(null===(P=null===process||void 0===process?void 0:process.versions)||void 0===P?void 0:P.node)&&(ee=process);const te="string"===typeof(null===(D=null===ee||void 0===ee?void 0:ee.versions)||void 0===D?void 0:D.electron),ne=te&&"renderer"===(null===ee||void 0===ee?void 0:ee.type);if("object"===typeof ee){V="win32"===ee.platform,B="darwin"===ee.platform,U="linux"===ee.platform,H=U&&!!ee.env.SNAP&&!!ee.env.SNAP_REVISION,$=te,G=!!ee.env.CI||!!ee.env.BUILD_ARTIFACTSTAGINGDIRECTORY,F=K,J=K;const e=ee.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];F=t.locale,Y=t.osLocale,J=n||K,X=t._translationsConfigFile}catch(is){}W=!0}else if("object"!==typeof navigator||ne)console.error("Unable to resolve platform.");else{q=navigator.userAgent,V=q.indexOf("Windows")>=0,B=q.indexOf("Macintosh")>=0,j=(q.indexOf("Macintosh")>=0||q.indexOf("iPad")>=0||q.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,U=q.indexOf("Linux")>=0,Q=(null===q||void 0===q?void 0:q.indexOf("Mobi"))>=0,z=!0;F=void I(0,"_")||K,J=F,Y=navigator.language}let ie=0;B?ie=1:V?ie=3:U&&(ie=2);const re=V,se=B,oe=(z&&"function"===typeof Z.importScripts&&Z.origin,q),ae="function"===typeof Z.postMessage&&!Z.importScripts;(()=>{if(ae){const e=[];Z.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void i.callback()}}));let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),Z.postMessage({vscodeScheduleAsyncWork:i},"*")}}})();const le=!!(oe&&oe.indexOf("Chrome")>=0);oe&&oe.indexOf("Firefox"),!le&&oe&&oe.indexOf("Safari"),oe&&oe.indexOf("Edg/"),oe&&oe.indexOf("Android");class ue{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var he;function ce(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function de(e){return e>=65&&e<=90}function me(e){return 55296<=e&&e<=56319}function ge(e){return 56320<=e&&e<=57343}function fe(e,t){return t-56320+(e-55296<<10)+65536}function pe(e,t,n){const i=e.charCodeAt(n);if(me(i)&&n+1<t){const t=e.charCodeAt(n+1);if(ge(t))return fe(i,t)}return i}const be=/^[\t\n\r\x20-\x7E]*$/;String.fromCharCode(65279);class _e{static getInstance(){return _e._INSTANCE||(_e._INSTANCE=new _e),_e._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}_e._INSTANCE=null;class ve{static getInstance(e){return he.cache.get(Array.from(e))}static getLocales(){return he._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}he=ve,ve.ambiguousCharacterData=new ue((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),ve.cache=new class{constructor(e,t=JSON.stringify){this.fn=e,this._computeKey=t,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}((e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[i,r]of e)t.has(i)&&n.set(i,r);return n}const i=he.ambiguousCharacterData.value;let r,s=e.filter((e=>!e.startsWith("_")&&e in i));0===s.length&&(s=["_default"]);for(const a of s){r=n(r,t(i[a]))}const o=function(e,t){const n=new Map(e);for(const[i,r]of t)n.set(i,r);return n}(t(i._common),r);return new he(o)})),ve._locales=new ue((()=>Object.keys(he.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class Ce{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(Ce.getRawData())),this._data}static isInvisibleCharacter(e){return Ce.getData().has(e)}static get codePoints(){return Ce.getData()}}Ce._data=void 0;const ye="$initialize";let Le;class we{constructor(e,t,n,i){this.vsWorker=e,this.req=t,this.method=n,this.args=i,this.type=0}}class Ne{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class Ee{constructor(e,t,n,i){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=i,this.type=2}}class Se{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class Re{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class Ae{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const n=String(++this._lastSentReq);return new Promise(((i,r)=>{this._pendingReplies[n]={resolve:i,reject:r},this._send(new we(this._workerId,n,e,t))}))}listen(e,t){let n=null;const i=new x({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,i),this._send(new Ee(this._workerId,n,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new Re(this._workerId,n)),n=null}});return i.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new Ne(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=n(e.detail)),this._send(new Ne(this._workerId,t,void 0,n(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new Se(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}function xe(e){return"o"===e[0]&&"n"===e[1]&&de(e.charCodeAt(2))}function Me(e){return/^onDynamic/.test(e)&&de(e.charCodeAt(9))}function ke(e,t,n){const i=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r=e=>function(t){return n(e,t)},s={};for(const o of e)Me(o)?s[o]=r(o):xe(o)?s[o]=n(o,void 0):s[o]=i(o);return s}class Oe{constructor(e,t){this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new Ae({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t),handleEvent:(e,t)=>this._handleEvent(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if(e===ye)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!==typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(is){return Promise.reject(is)}}_handleEvent(e,t){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Me(e)){const n=this._requestHandler[e].call(this._requestHandler,t);if("function"!==typeof n)throw new Error(`Missing dynamic event ${e} on request handler.`);return n}if(xe(e)){const t=this._requestHandler[e];if("function"!==typeof t)throw new Error(`Missing event ${e} on request handler.`);return t}throw new Error(`Malformed event name ${e}`)}initialize(e,t,n,i){this._protocol.setWorkerId(e);const r=ke(i,((e,t)=>this._protocol.sendMessage(e,t)),((e,t)=>this._protocol.listen(e,t)));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(r),Promise.resolve(k(this._requestHandler))):(t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t)),new Promise(((e,t)=>{(0,globalThis.require)([n],(n=>{this._requestHandler=n.create(r),this._requestHandler?e(k(this._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}}class Te{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Ie(e,t){return(t<<5)-t+e|0}function Pe(e,t){t=Ie(149417,t);for(let n=0,i=e.length;n<i;n++)t=Ie(e.charCodeAt(n),t);return t}function De(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function Ke(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function Fe(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class qe{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let i,r,s=this._buffLen,o=this._leftoverHighSurrogate;for(0!==o?(i=o,r=-1,o=0):(i=e.charCodeAt(0),r=0);;){let a=i;if(me(i)){if(!(r+1<t)){o=i;break}{const t=e.charCodeAt(r+1);ge(t)?(r++,a=fe(i,t)):a=65533}}else ge(i)&&(a=65533);if(s=this._push(n,s,a),r++,!(r<t))break;i=e.charCodeAt(r)}this._buffLen=s,this._leftoverHighSurrogate=o}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Fe(this._h0)+Fe(this._h1)+Fe(this._h2)+Fe(this._h3)+Fe(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Ke(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Ke(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=qe._bigBlock32,t=this._buffDV;for(let h=0;h<64;h+=4)e.setUint32(h,t.getUint32(h,!1),!1);for(let h=64;h<320;h+=4)e.setUint32(h,De(e.getUint32(h-12,!1)^e.getUint32(h-32,!1)^e.getUint32(h-56,!1)^e.getUint32(h-64,!1),1),!1);let n,i,r,s=this._h0,o=this._h1,a=this._h2,l=this._h3,u=this._h4;for(let h=0;h<80;h++)h<20?(n=o&a|~o&l,i=1518500249):h<40?(n=o^a^l,i=1859775393):h<60?(n=o&a|o&l|a&l,i=2400959708):(n=o^a^l,i=3395469782),r=De(s,5)+n+u+i+e.getUint32(4*h,!1)&4294967295,u=l,l=a,a=De(o,30),o=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+u&4294967295}}qe._bigBlock32=new DataView(new ArrayBuffer(320));class Ve{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function Be(e,t,n){return new ze(new Ve(e),new Ve(t)).ComputeDiff(n).changes}class Ue{static Assert(e,t){if(!e)throw new Error(t)}}class He{static Copy(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}static Copy2(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}}class We{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Te(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class ze{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,s]=ze._getElements(e),[o,a,l]=ze._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(ze._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=Pe(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return ze._getStrictElement(this._originalSequence,e)===ze._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,i,s);return r&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,i,r){for(r[0]=!1;e<=t&&n<=i&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){let r;return n<=i?(Ue.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new Te(e,0,n,i-n+1)]):e<=t?(Ue.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[new Te(e,t-e+1,n,0)]):(Ue.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Ue.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}const s=[0],o=[0],a=this.ComputeRecursionPoint(e,t,n,i,s,o,r),l=s[0],u=o[0];if(null!==a)return a;if(!r[0]){const s=this.ComputeDiffRecursive(e,l,n,u,r);let o=[];return o=r[0]?[new Te(l+1,t-(l+1)+1,u+1,i-(u+1)+1)]:this.ComputeDiffRecursive(l+1,t,u+1,i,r),this.ConcatenateChanges(s,o)}return[new Te(e,t-e+1,n,i-n+1)]}WALKTRACE(e,t,n,i,r,s,o,a,l,u,h,c,d,m,g,f,p,b){let _=null,v=null,C=new We,y=t,L=n,w=d[0]-f[0]-i,N=-1073741824,E=this.m_forwardHistory.length-1;do{const t=w+e;t===y||t<L&&l[t-1]<l[t+1]?(m=(h=l[t+1])-w-i,h<N&&C.MarkNextChange(),N=h,C.AddModifiedElement(h+1,m),w=t+1-e):(m=(h=l[t-1]+1)-w-i,h<N&&C.MarkNextChange(),N=h-1,C.AddOriginalElement(h,m+1),w=t-1-e),E>=0&&(e=(l=this.m_forwardHistory[E])[0],y=1,L=l.length-1)}while(--E>=-1);if(_=C.getReverseChanges(),b[0]){let e=d[0]+1,t=f[0]+1;if(null!==_&&_.length>0){const n=_[_.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}v=[new Te(e,c-e+1,t,g-t+1)]}else{C=new We,y=s,L=o,w=d[0]-f[0]-a,N=1073741824,E=p?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=w+r;e===y||e<L&&u[e-1]>=u[e+1]?(m=(h=u[e+1]-1)-w-a,h>N&&C.MarkNextChange(),N=h+1,C.AddOriginalElement(h+1,m+1),w=e+1-r):(m=(h=u[e-1])-w-a,h>N&&C.MarkNextChange(),N=h,C.AddModifiedElement(h+1,m+1),w=e-1-r),E>=0&&(r=(u=this.m_reverseHistory[E])[0],y=1,L=u.length-1)}while(--E>=-1);v=C.getChanges()}return this.ConcatenateChanges(_,v)}ComputeRecursionPoint(e,t,n,i,r,s,o){let a=0,l=0,u=0,h=0,c=0,d=0;e--,n--,r[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(i-n),g=m+1,f=new Int32Array(g),p=new Int32Array(g),b=i-n,_=t-e,v=e-n,C=t-i,y=(_-b)%2===0;f[b]=e,p[_]=t,o[0]=!1;for(let L=1;L<=m/2+1;L++){let m=0,w=0;u=this.ClipDiagonalBound(b-L,L,b,g),h=this.ClipDiagonalBound(b+L,L,b,g);for(let e=u;e<=h;e+=2){a=e===u||e<h&&f[e-1]<f[e+1]?f[e+1]:f[e-1]+1,l=a-(e-b)-v;const n=a;for(;a<t&&l<i&&this.ElementsAreEqual(a+1,l+1);)a++,l++;if(f[e]=a,a+l>m+w&&(m=a,w=l),!y&&Math.abs(e-_)<=L-1&&a>=p[e])return r[0]=a,s[0]=l,n<=p[e]&&L<=1448?this.WALKTRACE(b,u,h,v,_,c,d,C,f,p,a,t,r,l,i,s,y,o):null}const N=(m-e+(w-n)-L)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,N))return o[0]=!0,r[0]=m,s[0]=w,N>0&&L<=1448?this.WALKTRACE(b,u,h,v,_,c,d,C,f,p,a,t,r,l,i,s,y,o):(e++,n++,[new Te(e,t-e+1,n,i-n+1)]);c=this.ClipDiagonalBound(_-L,L,_,g),d=this.ClipDiagonalBound(_+L,L,_,g);for(let g=c;g<=d;g+=2){a=g===c||g<d&&p[g-1]>=p[g+1]?p[g+1]-1:p[g-1],l=a-(g-_)-C;const m=a;for(;a>e&&l>n&&this.ElementsAreEqual(a,l);)a--,l--;if(p[g]=a,y&&Math.abs(g-b)<=L&&a<=f[g])return r[0]=a,s[0]=l,m>=f[g]&&L<=1448?this.WALKTRACE(b,u,h,v,_,c,d,C,f,p,a,t,r,l,i,s,y,o):null}if(L<=1447){let e=new Int32Array(h-u+2);e[0]=b-u+1,He.Copy2(f,u,e,1,h-u+1),this.m_forwardHistory.push(e),e=new Int32Array(d-c+2),e[0]=_-c+1,He.Copy2(p,c,e,1,d-c+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,u,h,v,_,c,d,C,f,p,a,t,r,l,i,s,y,o)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,u=n.modifiedStart-e;if(t<i||u<r)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(u,u+n.modifiedLength))break;const h=(t===i&&u===r?5:0)+this._boundaryScore(t,n.originalLength,u,n.modifiedLength);h>l&&(l=h,a=e)}n.originalStart-=a,n.modifiedStart-=a;const u=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],u)&&(e[t-1]=u[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],i=e[t],r=i.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=i.originalStart+i.originalLength,a=o-s,l=n.modifiedStart,u=i.modifiedStart+i.modifiedLength,h=u-l;if(r<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(s,a,l,h,r);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,i.originalStart=t+r,i.modifiedStart=s+r,i.originalLength=o-i.originalStart,i.modifiedLength=u-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,r){if(t<r||i<r)return null;const s=e+t-r+1,o=n+i-r+1;let a=0,l=0,u=0;for(let h=e;h<s;h++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(h,e,r);t>0&&t>a&&(a=t,l=h,u=e)}return a>0?[l,u]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return He.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],He.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return He.Copy(e,0,n,0,e.length),He.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(Ue.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Ue.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const i=e.originalStart;let r=e.originalLength;const s=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(o=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new Te(i,r,s,o),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2===0;if(e<0){return r===(n%2===0)?0:1}return r===((i-n-1)%2===0)?i-1:i-2}}const $e=globalThis.vscode;if("undefined"!==typeof $e&&"undefined"!==typeof $e.process){const e=$e.process;Le={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else Le="undefined"!==typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return re?"win32":se?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const je=Le.cwd,Ge=(Le.env,Le.platform),Qe=46,Je=47,Ye=92,Xe=58;class Ze extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function et(e,t){if("string"!==typeof e)throw new Ze(t,"string",e)}const tt="win32"===Ge;function nt(e){return e===Je||e===Ye}function it(e){return e===Je}function rt(e){return e>=65&&e<=90||e>=97&&e<=122}function st(e,t,n,i){let r="",s=0,o=-1,a=0,l=0;for(let u=0;u<=e.length;++u){if(u<e.length)l=e.charCodeAt(u);else{if(i(l))break;l=Je}if(i(l)){if(o===u-1||1===a);else if(2===a){if(r.length<2||2!==s||r.charCodeAt(r.length-1)!==Qe||r.charCodeAt(r.length-2)!==Qe){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",s=0):(r=r.slice(0,e),s=r.length-1-r.lastIndexOf(n)),o=u,a=0;continue}if(0!==r.length){r="",s=0,o=u,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(o+1,u)}`:r=e.slice(o+1,u),s=u-o-1;o=u,a=0}else l===Qe&&-1!==a?++a:a=-1}return r}function ot(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new Ze(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const at={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let s;if(r>=0){if(s=e[r],et(s,"path"),0===s.length)continue}else 0===t.length?s=je():(s={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||je(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===Ye)&&(s=`${t}\\`));const o=s.length;let a=0,l="",u=!1;const h=s.charCodeAt(0);if(1===o)nt(h)&&(a=1,u=!0);else if(nt(h))if(u=!0,nt(s.charCodeAt(1))){let e=2,t=e;for(;e<o&&!nt(s.charCodeAt(e));)e++;if(e<o&&e!==t){const n=s.slice(t,e);for(t=e;e<o&&nt(s.charCodeAt(e));)e++;if(e<o&&e!==t){for(t=e;e<o&&!nt(s.charCodeAt(e));)e++;e!==o&&e===t||(l=`\\\\${n}\\${s.slice(t,e)}`,a=e)}}}else a=1;else rt(h)&&s.charCodeAt(1)===Xe&&(l=s.slice(0,2),a=2,o>2&&nt(s.charCodeAt(2))&&(u=!0,a=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(i){if(t.length>0)break}else if(n=`${s.slice(a)}\\${n}`,i=u,u&&t.length>0)break}return n=st(n,!i,"\\",nt),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){et(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return it(s)?"\\":e;if(nt(s))if(r=!0,nt(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!nt(e.charCodeAt(r));)r++;if(r<t&&r!==s){const o=e.slice(s,r);for(s=r;r<t&&nt(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!nt(e.charCodeAt(r));)r++;if(r===t)return`\\\\${o}\\${e.slice(s)}\\`;r!==s&&(n=`\\\\${o}\\${e.slice(s,r)}`,i=r)}}}else i=1;else rt(s)&&e.charCodeAt(1)===Xe&&(n=e.slice(0,2),i=2,t>2&&nt(e.charCodeAt(2))&&(r=!0,i=3));let o=i<t?st(e.slice(i),!r,"\\",nt):"";return 0!==o.length||r||(o="."),o.length>0&&nt(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){et(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return nt(n)||t>2&&rt(n)&&e.charCodeAt(1)===Xe&&nt(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){const i=e[s];et(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&nt(n.charCodeAt(0))){++r;const e=n.length;e>1&&nt(n.charCodeAt(1))&&(++r,e>2&&(nt(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&nt(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return at.normalize(t)},relative(e,t){if(et(e,"from"),et(t,"to"),e===t)return"";const n=at.resolve(e),i=at.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===Ye;)r++;let s=e.length;for(;s-1>r&&e.charCodeAt(s-1)===Ye;)s--;const o=s-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===Ye;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===Ye;)l--;const u=l-a,h=o<u?o:u;let c=-1,d=0;for(;d<h;d++){const n=e.charCodeAt(r+d);if(n!==t.charCodeAt(a+d))break;n===Ye&&(c=d)}if(d!==h){if(-1===c)return i}else{if(u>h){if(t.charCodeAt(a+d)===Ye)return i.slice(a+d+1);if(2===d)return i.slice(a+d)}o>h&&(e.charCodeAt(r+d)===Ye?c=d:2===d&&(c=3)),-1===c&&(c=0)}let m="";for(d=r+c+1;d<=s;++d)d!==s&&e.charCodeAt(d)!==Ye||(m+=0===m.length?"..":"\\..");return a+=c,m.length>0?`${m}${i.slice(a,l)}`:(i.charCodeAt(a)===Ye&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=at.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Ye){if(t.charCodeAt(1)===Ye){const e=t.charCodeAt(2);if(63!==e&&e!==Qe)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(rt(t.charCodeAt(0))&&t.charCodeAt(1)===Xe&&t.charCodeAt(2)===Ye)return`\\\\?\\${t}`;return e},dirname(e){et(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return nt(r)?e:".";if(nt(r)){if(n=i=1,nt(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!nt(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&nt(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!nt(e.charCodeAt(r));)r++;if(r===t)return e;r!==s&&(n=i=r+1)}}}}else rt(r)&&e.charCodeAt(1)===Xe&&(n=t>2&&nt(e.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let a=t-1;a>=i;--a)if(nt(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&et(t,"ext"),et(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&rt(e.charCodeAt(0))&&e.charCodeAt(1)===Xe&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(nt(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(nt(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){et(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===Xe&&rt(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(nt(t)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1),t===Qe?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:ot.bind(null,"\\"),parse(e){et(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return nt(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(nt(r)){if(i=1,nt(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!nt(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&nt(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!nt(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(rt(r)&&e.charCodeAt(1)===Xe){if(n<=2)return t.root=t.dir=e,t;if(i=2,nt(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let s=-1,o=i,a=-1,l=!0,u=e.length-1,h=0;for(;u>=i;--u)if(r=e.charCodeAt(u),nt(r)){if(!l){o=u+1;break}}else-1===a&&(l=!1,a=u+1),r===Qe?-1===s?s=u:1!==h&&(h=1):-1!==s&&(h=-1);return-1!==a&&(-1===s||0===h||1===h&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==i?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},lt=(()=>{if(tt){const e=/\\/g;return()=>{const t=je().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>je()})(),ut={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:lt();et(r,"path"),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===Je)}return t=st(t,!n,"/",it),n?`/${t}`:t.length>0?t:"."},normalize(e){if(et(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Je,n=e.charCodeAt(e.length-1)===Je;return 0===(e=st(e,!t,"/",it)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(et(e,"path"),e.length>0&&e.charCodeAt(0)===Je),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];et(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":ut.normalize(t)},relative(e,t){if(et(e,"from"),et(t,"to"),e===t)return"";if((e=ut.resolve(e))===(t=ut.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,s=i<r?i:r;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===Je&&(o=a)}if(a===s)if(r>s){if(t.charCodeAt(1+a)===Je)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>s&&(e.charCodeAt(1+a)===Je?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==Je||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(et(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Je;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===Je){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&et(t,"ext"),et(e,"path");let n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===Je){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===Je){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){et(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==Je)-1===i&&(r=!1,i=o+1),a===Qe?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:ot.bind(null,"/"),parse(e){et(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===Je;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,l=e.length-1,u=0;for(;l>=i;--l){const t=e.charCodeAt(l);if(t!==Je)-1===o&&(a=!1,o=l+1),t===Qe?-1===r?r=l:1!==u&&(u=1):-1!==r&&(u=-1);else if(!a){s=l+1;break}}if(-1!==o){const i=0===s&&n?1:s;-1===r||0===u||1===u&&r===o-1&&r===s+1?t.base=t.name=e.slice(i,o):(t.name=e.slice(i,r),t.base=e.slice(i,o),t.ext=e.slice(r,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ut.win32=at.win32=at,ut.posix=at.posix=ut;tt?at.normalize:ut.normalize,tt?at.resolve:ut.resolve,tt?at.relative:ut.relative,tt?at.dirname:ut.dirname,tt?at.basename:ut.basename,tt?at.extname:ut.extname,tt?at.sep:ut.sep;const ht=/^\w[\w\d+.-]*$/,ct=/^\//,dt=/^\/\//;const mt="",gt="/",ft=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class pt{static isUri(e){return e instanceof pt||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,i,r,s=!1){"object"===typeof e?(this.scheme=e.scheme||mt,this.authority=e.authority||mt,this.path=e.path||mt,this.query=e.query||mt,this.fragment=e.fragment||mt):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||mt,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==gt&&(t=gt+t):t=gt}return t}(this.scheme,n||mt),this.query=i||mt,this.fragment=r||mt,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!ht.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!ct.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(dt.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,s))}get fsPath(){return Lt(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=mt),void 0===n?n=this.authority:null===n&&(n=mt),void 0===i?i=this.path:null===i&&(i=mt),void 0===r?r=this.query:null===r&&(r=mt),void 0===s?s=this.fragment:null===s&&(s=mt),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new _t(t,n,i,r,s)}static parse(e,t=!1){const n=ft.exec(e);return n?new _t(n[2]||mt,St(n[4]||mt),St(n[5]||mt),St(n[7]||mt),St(n[9]||mt),t):new _t(mt,mt,mt,mt,mt)}static file(e){let t=mt;if(re&&(e=e.replace(/\\/g,gt)),e[0]===gt&&e[1]===gt){const n=e.indexOf(gt,2);-1===n?(t=e.substring(2),e=gt):(t=e.substring(2,n),e=e.substring(n)||gt)}return new _t("file",t,e,mt,mt)}static from(e,t){return new _t(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=re&&"file"===e.scheme?pt.file(at.join(Lt(e,!0),...t)).path:ut.join(e.path,...t),e.with({path:n})}toString(e=!1){return wt(this,e)}toJSON(){return this}static revive(e){var t,n;if(e){if(e instanceof pt)return e;{const i=new _t(e);return i._formatted=null!==(t=e.external)&&void 0!==t?t:null,i._fsPath=e._sep===bt&&null!==(n=e.fsPath)&&void 0!==n?n:null,i}}return e}}const bt=re?1:void 0;class _t extends pt{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Lt(this,!1)),this._fsPath}toString(e=!1){return e?wt(this,!0):(this._formatted||(this._formatted=wt(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=bt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const vt={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Ct(e,t,n){let i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=vt[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function yt(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=vt[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function Lt(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,re&&(n=n.replace(/\//g,"\\")),n}function wt(e,t){const n=t?yt:Ct;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=gt,i+=gt),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),l&&(i+="#",i+=t?l:Ct(l,!1,!1)),i}function Nt(e){try{return decodeURIComponent(e)}catch(P){return e.length>3?e.substr(0,3)+Nt(e.substr(3)):e}}const Et=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function St(e){return e.match(Et)?e.replace(Et,(e=>Nt(e))):e}class Rt{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new Rt(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Rt.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Rt.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return Rt.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){return(0|e.column)-(0|t.column)}return n-i}clone(){return new Rt(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new Rt(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}class At{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return At.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return At.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return At.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return At.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return At.plusRange(this,e)}static plusRange(e,t){let n,i,r,s;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(r=t.endLineNumber,s=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,s=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,s=e.endColumn),new At(n,i,r,s)}intersectRanges(e){return At.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,s=e.endColumn;const o=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,u=t.endColumn;return n<o?(n=o,i=a):n===o&&(i=Math.max(i,a)),r>l?(r=l,s=u):r===l&&(s=Math.min(s,u)),n>r||n===r&&i>s?null:new At(n,i,r,s)}equalsRange(e){return At.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return At.getEndPosition(this)}static getEndPosition(e){return new Rt(e.endLineNumber,e.endColumn)}getStartPosition(){return At.getStartPosition(this)}static getStartPosition(e){return new Rt(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new At(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new At(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return At.collapseToStart(this)}static collapseToStart(e){return new At(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return At.collapseToEnd(this)}static collapseToEnd(e){return new At(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new At(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new At(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new At(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){return(0|e.endColumn)-(0|t.endColumn)}return n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}var xt;function Mt(e,t){return(n,i)=>t(e(n),e(i))}!function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(xt||(xt={}));const kt=(e,t)=>e-t;class Ot{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new Ot((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new Ot((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((i=>((n||xt.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0))),t}}Ot.empty=new Ot((e=>{}));function Tt(e){return e<0?0:e>255?255:0|e}function It(e){return e<0?0:e>4294967295?4294967295:0|e}class Pt{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=It(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=It(e),t=It(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=It(e),t=It(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=It(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,r=0,s=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],s=r-this.values[i],e<s)n=i-1;else{if(!(e>=r))break;t=i+1}return new Dt(i,e-s)}}class Dt{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class Kt{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new Rt(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new Pt(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const n=t.split(/\r\n|\r|\n/);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);const i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const Ft=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function qt(e){let t=Ft;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const Vt=new C;function Bt(e,t,n,i,r){if(t=qt(t),r||(r=u.first(Vt)),n.length>r.maxLen){let s=e-r.maxLen/2;return s<0?s=0:i+=s,Bt(e,t,n=n.substring(s,e+r.maxLen/2),i,r)}const s=Date.now(),o=e-1-i;let a=-1,l=null;for(let u=1;!(Date.now()-s>=r.timeBudget);u++){const e=o-r.windowSize*u;t.lastIndex=Math.max(0,e);const i=Ut(t,n,o,a);if(!i&&l)break;if(l=i,e<=0)break;a=e}if(l){const e={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return t.lastIndex=0,e}return null}function Ut(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}Vt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});class Ht{constructor(e){const t=Tt(e);this._defaultValue=t,this._asciiMap=Ht._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=Tt(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Wt{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;r<s;r++)i[r]=n;this._data=i,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class zt{constructor(e){let t=0,n=0;for(let r=0,s=e.length;r<s;r++){const[i,s,o]=e[r];s>t&&(t=s),i>n&&(n=i),o>n&&(n=o)}t++,n++;const i=new Wt(n,t,0);for(let r=0,s=e.length;r<s;r++){const[t,n,s]=e[r];i.set(t,n,s)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let $t=null;let jt=null;class Gt{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=function(){return null===$t&&($t=new zt([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),$t}()){const n=function(){if(null===jt){jt=new Ht(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)jt.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)jt.set(t.charCodeAt(n),2)}return jt}(),i=[];for(let r=1,s=e.getLineCount();r<=s;r++){const s=e.getLineContent(r),o=s.length;let a=0,l=0,u=0,h=1,c=!1,d=!1,m=!1,g=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===h){let t;switch(o){case 40:c=!0,t=0;break;case 41:t=c?0:1;break;case 91:m=!0,d=!0,t=0;break;case 93:m=!1,t=d?0:1;break;case 123:g=!0,t=0;break;case 125:t=g?0:1;break;case 39:case 34:case 96:t=u===o?1:39===u||34===u||96===u?0:1;break;case 42:t=42===u?1:0;break;case 124:t=124===u?1:0;break;case 32:t=m?0:1;break;default:t=n.get(o)}1===t&&(i.push(Gt._createLink(n,s,r,l,a)),e=!0)}else if(12===h){let t;91===o?(d=!0,t=0):t=n.get(o),1===t?e=!0:h=13}else h=t.nextState(h,o),0===h&&(e=!0);e&&(h=1,c=!1,d=!1,g=!1,l=a+1,u=o),a++}13===h&&i.push(Gt._createLink(n,s,r,l,o))}return i}}class Qt{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,i,r){if(e&&t){const n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){const e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,s=e.length;null===i&&r<s;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}Qt.INSTANCE=new Qt;const Jt=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var Yt;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof Xt||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:w.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Jt})}(Yt||(Yt={}));class Xt{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Jt:(this._emitter||(this._emitter=new x),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Zt{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Xt),this._token}cancel(){this._token?this._token instanceof Xt&&this._token.cancel():this._token=Yt.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof Xt&&this._token.dispose():this._token=Yt.None}}class en{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const tn=new en,nn=new en,rn=new en,sn=new Array(230),on={},an=[],ln=Object.create(null),un=Object.create(null),hn=[],cn=[];for(let rs=0;rs<=193;rs++)hn[rs]=-1;for(let rs=0;rs<=132;rs++)cn[rs]=-1;var dn;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[e,t,s,o,a,l,u,h,c]=r;if(i[t]||(i[t]=!0,an[t]=s,ln[s]=t,un[s.toLowerCase()]=t,e&&(hn[t]=o,0!==o&&3!==o&&5!==o&&4!==o&&6!==o&&57!==o&&(cn[o]=t))),!n[o]){if(n[o]=!0,!a)throw new Error(`String representation missing for key code ${o} around scan code ${s}`);tn.define(o,a),nn.define(o,h||a),rn.define(o,c||h||a)}l&&(sn[l]=o),u&&(on[u]=o)}cn[3]=46}(),function(e){e.toString=function(e){return tn.keyCodeToStr(e)},e.fromString=function(e){return tn.strToKeyCode(e)},e.toUserSettingsUS=function(e){return nn.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return rn.keyCodeToStr(e)},e.fromUserSettings=function(e){return nn.strToKeyCode(e)||rn.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return tn.keyCodeToStr(e)}}(dn||(dn={}));class mn extends At{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return mn.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new mn(this.startLineNumber,this.startColumn,e,t):new mn(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new Rt(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Rt(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new mn(e,t,this.endLineNumber,this.endColumn):new mn(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new mn(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new mn(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new mn(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new mn(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new mn(e,t,n,i):new mn(n,i,e,t)}}function gn(e){return"string"===typeof e}const fn=Object.create(null);function pn(e,t){if(gn(t)){const n=fn[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return fn[e]=t,{id:e}}const bn={...{add:pn("add",6e4),plus:pn("plus",6e4),gistNew:pn("gist-new",6e4),repoCreate:pn("repo-create",6e4),lightbulb:pn("lightbulb",60001),lightBulb:pn("light-bulb",60001),repo:pn("repo",60002),repoDelete:pn("repo-delete",60002),gistFork:pn("gist-fork",60003),repoForked:pn("repo-forked",60003),gitPullRequest:pn("git-pull-request",60004),gitPullRequestAbandoned:pn("git-pull-request-abandoned",60004),recordKeys:pn("record-keys",60005),keyboard:pn("keyboard",60005),tag:pn("tag",60006),gitPullRequestLabel:pn("git-pull-request-label",60006),tagAdd:pn("tag-add",60006),tagRemove:pn("tag-remove",60006),person:pn("person",60007),personFollow:pn("person-follow",60007),personOutline:pn("person-outline",60007),personFilled:pn("person-filled",60007),gitBranch:pn("git-branch",60008),gitBranchCreate:pn("git-branch-create",60008),gitBranchDelete:pn("git-branch-delete",60008),sourceControl:pn("source-control",60008),mirror:pn("mirror",60009),mirrorPublic:pn("mirror-public",60009),star:pn("star",60010),starAdd:pn("star-add",60010),starDelete:pn("star-delete",60010),starEmpty:pn("star-empty",60010),comment:pn("comment",60011),commentAdd:pn("comment-add",60011),alert:pn("alert",60012),warning:pn("warning",60012),search:pn("search",60013),searchSave:pn("search-save",60013),logOut:pn("log-out",60014),signOut:pn("sign-out",60014),logIn:pn("log-in",60015),signIn:pn("sign-in",60015),eye:pn("eye",60016),eyeUnwatch:pn("eye-unwatch",60016),eyeWatch:pn("eye-watch",60016),circleFilled:pn("circle-filled",60017),primitiveDot:pn("primitive-dot",60017),closeDirty:pn("close-dirty",60017),debugBreakpoint:pn("debug-breakpoint",60017),debugBreakpointDisabled:pn("debug-breakpoint-disabled",60017),debugHint:pn("debug-hint",60017),terminalDecorationSuccess:pn("terminal-decoration-success",60017),primitiveSquare:pn("primitive-square",60018),edit:pn("edit",60019),pencil:pn("pencil",60019),info:pn("info",60020),issueOpened:pn("issue-opened",60020),gistPrivate:pn("gist-private",60021),gitForkPrivate:pn("git-fork-private",60021),lock:pn("lock",60021),mirrorPrivate:pn("mirror-private",60021),close:pn("close",60022),removeClose:pn("remove-close",60022),x:pn("x",60022),repoSync:pn("repo-sync",60023),sync:pn("sync",60023),clone:pn("clone",60024),desktopDownload:pn("desktop-download",60024),beaker:pn("beaker",60025),microscope:pn("microscope",60025),vm:pn("vm",60026),deviceDesktop:pn("device-desktop",60026),file:pn("file",60027),fileText:pn("file-text",60027),more:pn("more",60028),ellipsis:pn("ellipsis",60028),kebabHorizontal:pn("kebab-horizontal",60028),mailReply:pn("mail-reply",60029),reply:pn("reply",60029),organization:pn("organization",60030),organizationFilled:pn("organization-filled",60030),organizationOutline:pn("organization-outline",60030),newFile:pn("new-file",60031),fileAdd:pn("file-add",60031),newFolder:pn("new-folder",60032),fileDirectoryCreate:pn("file-directory-create",60032),trash:pn("trash",60033),trashcan:pn("trashcan",60033),history:pn("history",60034),clock:pn("clock",60034),folder:pn("folder",60035),fileDirectory:pn("file-directory",60035),symbolFolder:pn("symbol-folder",60035),logoGithub:pn("logo-github",60036),markGithub:pn("mark-github",60036),github:pn("github",60036),terminal:pn("terminal",60037),console:pn("console",60037),repl:pn("repl",60037),zap:pn("zap",60038),symbolEvent:pn("symbol-event",60038),error:pn("error",60039),stop:pn("stop",60039),variable:pn("variable",60040),symbolVariable:pn("symbol-variable",60040),array:pn("array",60042),symbolArray:pn("symbol-array",60042),symbolModule:pn("symbol-module",60043),symbolPackage:pn("symbol-package",60043),symbolNamespace:pn("symbol-namespace",60043),symbolObject:pn("symbol-object",60043),symbolMethod:pn("symbol-method",60044),symbolFunction:pn("symbol-function",60044),symbolConstructor:pn("symbol-constructor",60044),symbolBoolean:pn("symbol-boolean",60047),symbolNull:pn("symbol-null",60047),symbolNumeric:pn("symbol-numeric",60048),symbolNumber:pn("symbol-number",60048),symbolStructure:pn("symbol-structure",60049),symbolStruct:pn("symbol-struct",60049),symbolParameter:pn("symbol-parameter",60050),symbolTypeParameter:pn("symbol-type-parameter",60050),symbolKey:pn("symbol-key",60051),symbolText:pn("symbol-text",60051),symbolReference:pn("symbol-reference",60052),goToFile:pn("go-to-file",60052),symbolEnum:pn("symbol-enum",60053),symbolValue:pn("symbol-value",60053),symbolRuler:pn("symbol-ruler",60054),symbolUnit:pn("symbol-unit",60054),activateBreakpoints:pn("activate-breakpoints",60055),archive:pn("archive",60056),arrowBoth:pn("arrow-both",60057),arrowDown:pn("arrow-down",60058),arrowLeft:pn("arrow-left",60059),arrowRight:pn("arrow-right",60060),arrowSmallDown:pn("arrow-small-down",60061),arrowSmallLeft:pn("arrow-small-left",60062),arrowSmallRight:pn("arrow-small-right",60063),arrowSmallUp:pn("arrow-small-up",60064),arrowUp:pn("arrow-up",60065),bell:pn("bell",60066),bold:pn("bold",60067),book:pn("book",60068),bookmark:pn("bookmark",60069),debugBreakpointConditionalUnverified:pn("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:pn("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:pn("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:pn("debug-breakpoint-data-unverified",60072),debugBreakpointData:pn("debug-breakpoint-data",60073),debugBreakpointDataDisabled:pn("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:pn("debug-breakpoint-log-unverified",60074),debugBreakpointLog:pn("debug-breakpoint-log",60075),debugBreakpointLogDisabled:pn("debug-breakpoint-log-disabled",60075),briefcase:pn("briefcase",60076),broadcast:pn("broadcast",60077),browser:pn("browser",60078),bug:pn("bug",60079),calendar:pn("calendar",60080),caseSensitive:pn("case-sensitive",60081),check:pn("check",60082),checklist:pn("checklist",60083),chevronDown:pn("chevron-down",60084),chevronLeft:pn("chevron-left",60085),chevronRight:pn("chevron-right",60086),chevronUp:pn("chevron-up",60087),chromeClose:pn("chrome-close",60088),chromeMaximize:pn("chrome-maximize",60089),chromeMinimize:pn("chrome-minimize",60090),chromeRestore:pn("chrome-restore",60091),circleOutline:pn("circle-outline",60092),circle:pn("circle",60092),debugBreakpointUnverified:pn("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:pn("terminal-decoration-incomplete",60092),circleSlash:pn("circle-slash",60093),circuitBoard:pn("circuit-board",60094),clearAll:pn("clear-all",60095),clippy:pn("clippy",60096),closeAll:pn("close-all",60097),cloudDownload:pn("cloud-download",60098),cloudUpload:pn("cloud-upload",60099),code:pn("code",60100),collapseAll:pn("collapse-all",60101),colorMode:pn("color-mode",60102),commentDiscussion:pn("comment-discussion",60103),creditCard:pn("credit-card",60105),dash:pn("dash",60108),dashboard:pn("dashboard",60109),database:pn("database",60110),debugContinue:pn("debug-continue",60111),debugDisconnect:pn("debug-disconnect",60112),debugPause:pn("debug-pause",60113),debugRestart:pn("debug-restart",60114),debugStart:pn("debug-start",60115),debugStepInto:pn("debug-step-into",60116),debugStepOut:pn("debug-step-out",60117),debugStepOver:pn("debug-step-over",60118),debugStop:pn("debug-stop",60119),debug:pn("debug",60120),deviceCameraVideo:pn("device-camera-video",60121),deviceCamera:pn("device-camera",60122),deviceMobile:pn("device-mobile",60123),diffAdded:pn("diff-added",60124),diffIgnored:pn("diff-ignored",60125),diffModified:pn("diff-modified",60126),diffRemoved:pn("diff-removed",60127),diffRenamed:pn("diff-renamed",60128),diff:pn("diff",60129),diffSidebyside:pn("diff-sidebyside",60129),discard:pn("discard",60130),editorLayout:pn("editor-layout",60131),emptyWindow:pn("empty-window",60132),exclude:pn("exclude",60133),extensions:pn("extensions",60134),eyeClosed:pn("eye-closed",60135),fileBinary:pn("file-binary",60136),fileCode:pn("file-code",60137),fileMedia:pn("file-media",60138),filePdf:pn("file-pdf",60139),fileSubmodule:pn("file-submodule",60140),fileSymlinkDirectory:pn("file-symlink-directory",60141),fileSymlinkFile:pn("file-symlink-file",60142),fileZip:pn("file-zip",60143),files:pn("files",60144),filter:pn("filter",60145),flame:pn("flame",60146),foldDown:pn("fold-down",60147),foldUp:pn("fold-up",60148),fold:pn("fold",60149),folderActive:pn("folder-active",60150),folderOpened:pn("folder-opened",60151),gear:pn("gear",60152),gift:pn("gift",60153),gistSecret:pn("gist-secret",60154),gist:pn("gist",60155),gitCommit:pn("git-commit",60156),gitCompare:pn("git-compare",60157),compareChanges:pn("compare-changes",60157),gitMerge:pn("git-merge",60158),githubAction:pn("github-action",60159),githubAlt:pn("github-alt",60160),globe:pn("globe",60161),grabber:pn("grabber",60162),graph:pn("graph",60163),gripper:pn("gripper",60164),heart:pn("heart",60165),home:pn("home",60166),horizontalRule:pn("horizontal-rule",60167),hubot:pn("hubot",60168),inbox:pn("inbox",60169),issueReopened:pn("issue-reopened",60171),issues:pn("issues",60172),italic:pn("italic",60173),jersey:pn("jersey",60174),json:pn("json",60175),kebabVertical:pn("kebab-vertical",60176),key:pn("key",60177),law:pn("law",60178),lightbulbAutofix:pn("lightbulb-autofix",60179),linkExternal:pn("link-external",60180),link:pn("link",60181),listOrdered:pn("list-ordered",60182),listUnordered:pn("list-unordered",60183),liveShare:pn("live-share",60184),loading:pn("loading",60185),location:pn("location",60186),mailRead:pn("mail-read",60187),mail:pn("mail",60188),markdown:pn("markdown",60189),megaphone:pn("megaphone",60190),mention:pn("mention",60191),milestone:pn("milestone",60192),gitPullRequestMilestone:pn("git-pull-request-milestone",60192),mortarBoard:pn("mortar-board",60193),move:pn("move",60194),multipleWindows:pn("multiple-windows",60195),mute:pn("mute",60196),noNewline:pn("no-newline",60197),note:pn("note",60198),octoface:pn("octoface",60199),openPreview:pn("open-preview",60200),package:pn("package",60201),paintcan:pn("paintcan",60202),pin:pn("pin",60203),play:pn("play",60204),run:pn("run",60204),plug:pn("plug",60205),preserveCase:pn("preserve-case",60206),preview:pn("preview",60207),project:pn("project",60208),pulse:pn("pulse",60209),question:pn("question",60210),quote:pn("quote",60211),radioTower:pn("radio-tower",60212),reactions:pn("reactions",60213),references:pn("references",60214),refresh:pn("refresh",60215),regex:pn("regex",60216),remoteExplorer:pn("remote-explorer",60217),remote:pn("remote",60218),remove:pn("remove",60219),replaceAll:pn("replace-all",60220),replace:pn("replace",60221),repoClone:pn("repo-clone",60222),repoForcePush:pn("repo-force-push",60223),repoPull:pn("repo-pull",60224),repoPush:pn("repo-push",60225),report:pn("report",60226),requestChanges:pn("request-changes",60227),rocket:pn("rocket",60228),rootFolderOpened:pn("root-folder-opened",60229),rootFolder:pn("root-folder",60230),rss:pn("rss",60231),ruby:pn("ruby",60232),saveAll:pn("save-all",60233),saveAs:pn("save-as",60234),save:pn("save",60235),screenFull:pn("screen-full",60236),screenNormal:pn("screen-normal",60237),searchStop:pn("search-stop",60238),server:pn("server",60240),settingsGear:pn("settings-gear",60241),settings:pn("settings",60242),shield:pn("shield",60243),smiley:pn("smiley",60244),sortPrecedence:pn("sort-precedence",60245),splitHorizontal:pn("split-horizontal",60246),splitVertical:pn("split-vertical",60247),squirrel:pn("squirrel",60248),starFull:pn("star-full",60249),starHalf:pn("star-half",60250),symbolClass:pn("symbol-class",60251),symbolColor:pn("symbol-color",60252),symbolConstant:pn("symbol-constant",60253),symbolEnumMember:pn("symbol-enum-member",60254),symbolField:pn("symbol-field",60255),symbolFile:pn("symbol-file",60256),symbolInterface:pn("symbol-interface",60257),symbolKeyword:pn("symbol-keyword",60258),symbolMisc:pn("symbol-misc",60259),symbolOperator:pn("symbol-operator",60260),symbolProperty:pn("symbol-property",60261),wrench:pn("wrench",60261),wrenchSubaction:pn("wrench-subaction",60261),symbolSnippet:pn("symbol-snippet",60262),tasklist:pn("tasklist",60263),telescope:pn("telescope",60264),textSize:pn("text-size",60265),threeBars:pn("three-bars",60266),thumbsdown:pn("thumbsdown",60267),thumbsup:pn("thumbsup",60268),tools:pn("tools",60269),triangleDown:pn("triangle-down",60270),triangleLeft:pn("triangle-left",60271),triangleRight:pn("triangle-right",60272),triangleUp:pn("triangle-up",60273),twitter:pn("twitter",60274),unfold:pn("unfold",60275),unlock:pn("unlock",60276),unmute:pn("unmute",60277),unverified:pn("unverified",60278),verified:pn("verified",60279),versions:pn("versions",60280),vmActive:pn("vm-active",60281),vmOutline:pn("vm-outline",60282),vmRunning:pn("vm-running",60283),watch:pn("watch",60284),whitespace:pn("whitespace",60285),wholeWord:pn("whole-word",60286),window:pn("window",60287),wordWrap:pn("word-wrap",60288),zoomIn:pn("zoom-in",60289),zoomOut:pn("zoom-out",60290),listFilter:pn("list-filter",60291),listFlat:pn("list-flat",60292),listSelection:pn("list-selection",60293),selection:pn("selection",60293),listTree:pn("list-tree",60294),debugBreakpointFunctionUnverified:pn("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:pn("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:pn("debug-breakpoint-function-disabled",60296),debugStackframeActive:pn("debug-stackframe-active",60297),circleSmallFilled:pn("circle-small-filled",60298),debugStackframeDot:pn("debug-stackframe-dot",60298),terminalDecorationMark:pn("terminal-decoration-mark",60298),debugStackframe:pn("debug-stackframe",60299),debugStackframeFocused:pn("debug-stackframe-focused",60299),debugBreakpointUnsupported:pn("debug-breakpoint-unsupported",60300),symbolString:pn("symbol-string",60301),debugReverseContinue:pn("debug-reverse-continue",60302),debugStepBack:pn("debug-step-back",60303),debugRestartFrame:pn("debug-restart-frame",60304),debugAlt:pn("debug-alt",60305),callIncoming:pn("call-incoming",60306),callOutgoing:pn("call-outgoing",60307),menu:pn("menu",60308),expandAll:pn("expand-all",60309),feedback:pn("feedback",60310),gitPullRequestReviewer:pn("git-pull-request-reviewer",60310),groupByRefType:pn("group-by-ref-type",60311),ungroupByRefType:pn("ungroup-by-ref-type",60312),account:pn("account",60313),gitPullRequestAssignee:pn("git-pull-request-assignee",60313),bellDot:pn("bell-dot",60314),debugConsole:pn("debug-console",60315),library:pn("library",60316),output:pn("output",60317),runAll:pn("run-all",60318),syncIgnored:pn("sync-ignored",60319),pinned:pn("pinned",60320),githubInverted:pn("github-inverted",60321),serverProcess:pn("server-process",60322),serverEnvironment:pn("server-environment",60323),pass:pn("pass",60324),issueClosed:pn("issue-closed",60324),stopCircle:pn("stop-circle",60325),playCircle:pn("play-circle",60326),record:pn("record",60327),debugAltSmall:pn("debug-alt-small",60328),vmConnect:pn("vm-connect",60329),cloud:pn("cloud",60330),merge:pn("merge",60331),export:pn("export",60332),graphLeft:pn("graph-left",60333),magnet:pn("magnet",60334),notebook:pn("notebook",60335),redo:pn("redo",60336),checkAll:pn("check-all",60337),pinnedDirty:pn("pinned-dirty",60338),passFilled:pn("pass-filled",60339),circleLargeFilled:pn("circle-large-filled",60340),circleLarge:pn("circle-large",60341),circleLargeOutline:pn("circle-large-outline",60341),combine:pn("combine",60342),gather:pn("gather",60342),table:pn("table",60343),variableGroup:pn("variable-group",60344),typeHierarchy:pn("type-hierarchy",60345),typeHierarchySub:pn("type-hierarchy-sub",60346),typeHierarchySuper:pn("type-hierarchy-super",60347),gitPullRequestCreate:pn("git-pull-request-create",60348),runAbove:pn("run-above",60349),runBelow:pn("run-below",60350),notebookTemplate:pn("notebook-template",60351),debugRerun:pn("debug-rerun",60352),workspaceTrusted:pn("workspace-trusted",60353),workspaceUntrusted:pn("workspace-untrusted",60354),workspaceUnknown:pn("workspace-unknown",60355),terminalCmd:pn("terminal-cmd",60356),terminalDebian:pn("terminal-debian",60357),terminalLinux:pn("terminal-linux",60358),terminalPowershell:pn("terminal-powershell",60359),terminalTmux:pn("terminal-tmux",60360),terminalUbuntu:pn("terminal-ubuntu",60361),terminalBash:pn("terminal-bash",60362),arrowSwap:pn("arrow-swap",60363),copy:pn("copy",60364),personAdd:pn("person-add",60365),filterFilled:pn("filter-filled",60366),wand:pn("wand",60367),debugLineByLine:pn("debug-line-by-line",60368),inspect:pn("inspect",60369),layers:pn("layers",60370),layersDot:pn("layers-dot",60371),layersActive:pn("layers-active",60372),compass:pn("compass",60373),compassDot:pn("compass-dot",60374),compassActive:pn("compass-active",60375),azure:pn("azure",60376),issueDraft:pn("issue-draft",60377),gitPullRequestClosed:pn("git-pull-request-closed",60378),gitPullRequestDraft:pn("git-pull-request-draft",60379),debugAll:pn("debug-all",60380),debugCoverage:pn("debug-coverage",60381),runErrors:pn("run-errors",60382),folderLibrary:pn("folder-library",60383),debugContinueSmall:pn("debug-continue-small",60384),beakerStop:pn("beaker-stop",60385),graphLine:pn("graph-line",60386),graphScatter:pn("graph-scatter",60387),pieChart:pn("pie-chart",60388),bracket:pn("bracket",60175),bracketDot:pn("bracket-dot",60389),bracketError:pn("bracket-error",60390),lockSmall:pn("lock-small",60391),azureDevops:pn("azure-devops",60392),verifiedFilled:pn("verified-filled",60393),newline:pn("newline",60394),layout:pn("layout",60395),layoutActivitybarLeft:pn("layout-activitybar-left",60396),layoutActivitybarRight:pn("layout-activitybar-right",60397),layoutPanelLeft:pn("layout-panel-left",60398),layoutPanelCenter:pn("layout-panel-center",60399),layoutPanelJustify:pn("layout-panel-justify",60400),layoutPanelRight:pn("layout-panel-right",60401),layoutPanel:pn("layout-panel",60402),layoutSidebarLeft:pn("layout-sidebar-left",60403),layoutSidebarRight:pn("layout-sidebar-right",60404),layoutStatusbar:pn("layout-statusbar",60405),layoutMenubar:pn("layout-menubar",60406),layoutCentered:pn("layout-centered",60407),target:pn("target",60408),indent:pn("indent",60409),recordSmall:pn("record-small",60410),errorSmall:pn("error-small",60411),terminalDecorationError:pn("terminal-decoration-error",60411),arrowCircleDown:pn("arrow-circle-down",60412),arrowCircleLeft:pn("arrow-circle-left",60413),arrowCircleRight:pn("arrow-circle-right",60414),arrowCircleUp:pn("arrow-circle-up",60415),layoutSidebarRightOff:pn("layout-sidebar-right-off",60416),layoutPanelOff:pn("layout-panel-off",60417),layoutSidebarLeftOff:pn("layout-sidebar-left-off",60418),blank:pn("blank",60419),heartFilled:pn("heart-filled",60420),map:pn("map",60421),mapHorizontal:pn("map-horizontal",60421),foldHorizontal:pn("fold-horizontal",60421),mapFilled:pn("map-filled",60422),mapHorizontalFilled:pn("map-horizontal-filled",60422),foldHorizontalFilled:pn("fold-horizontal-filled",60422),circleSmall:pn("circle-small",60423),bellSlash:pn("bell-slash",60424),bellSlashDot:pn("bell-slash-dot",60425),commentUnresolved:pn("comment-unresolved",60426),gitPullRequestGoToChanges:pn("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:pn("git-pull-request-new-changes",60428),searchFuzzy:pn("search-fuzzy",60429),commentDraft:pn("comment-draft",60430),send:pn("send",60431),sparkle:pn("sparkle",60432),insert:pn("insert",60433),mic:pn("mic",60434),thumbsdownFilled:pn("thumbsdown-filled",60435),thumbsupFilled:pn("thumbsup-filled",60436),coffee:pn("coffee",60437),snake:pn("snake",60438),game:pn("game",60439),vr:pn("vr",60440),chip:pn("chip",60441),piano:pn("piano",60442),music:pn("music",60443),micFilled:pn("mic-filled",60444),repoFetch:pn("repo-fetch",60445),copilot:pn("copilot",60446),lightbulbSparkle:pn("lightbulb-sparkle",60447),robot:pn("robot",60448),sparkleFilled:pn("sparkle-filled",60449),diffSingle:pn("diff-single",60450),diffMultiple:pn("diff-multiple",60451),surroundWith:pn("surround-with",60452),share:pn("share",60453),gitStash:pn("git-stash",60454),gitStashApply:pn("git-stash-apply",60455),gitStashPop:pn("git-stash-pop",60456),vscode:pn("vscode",60457),vscodeInsiders:pn("vscode-insiders",60458),codeOss:pn("code-oss",60459),runCoverage:pn("run-coverage",60460),runAllCoverage:pn("run-all-coverage",60461),coverage:pn("coverage",60462),githubProject:pn("github-project",60463),mapVertical:pn("map-vertical",60464),foldVertical:pn("fold-vertical",60464),mapVerticalFilled:pn("map-vertical-filled",60465),foldVerticalFilled:pn("fold-vertical-filled",60465)},...{dialogError:pn("dialog-error","error"),dialogWarning:pn("dialog-warning","warning"),dialogInfo:pn("dialog-info","info"),dialogClose:pn("dialog-close","close"),treeItemExpanded:pn("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:pn("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:pn("tree-filter-on-type-off","list-selection"),treeFilterClear:pn("tree-filter-clear","close"),treeItemLoading:pn("tree-item-loading","loading"),menuSelection:pn("menu-selection","check"),menuSubmenu:pn("menu-submenu","chevron-right"),menuBarMore:pn("menubar-more","more"),scrollbarButtonLeft:pn("scrollbar-button-left","triangle-left"),scrollbarButtonRight:pn("scrollbar-button-right","triangle-right"),scrollbarButtonUp:pn("scrollbar-button-up","triangle-up"),scrollbarButtonDown:pn("scrollbar-button-down","triangle-down"),toolBarMore:pn("toolbar-more","more"),quickInputBack:pn("quick-input-back","arrow-left"),dropDownButton:pn("drop-down-button",60084),symbolCustomColor:pn("symbol-customcolor",60252),exportIcon:pn("export",60332),workspaceUnspecified:pn("workspace-unspecified",60355),newLine:pn("newline",60394),thumbsDownFilled:pn("thumbsdown-filled",60435),thumbsUpFilled:pn("thumbsup-filled",60436),gitFetch:pn("git-fetch",60445),lightbulbSparkleAutofix:pn("lightbulb-sparkle-autofix",60447),debugBreakpointPending:pn("debug-breakpoint-pending",60377)}};class _n extends _{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class vn{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Cn,yn,Ln,wn,Nn;!function(e){const t=new Map;t.set(0,bn.symbolMethod),t.set(1,bn.symbolFunction),t.set(2,bn.symbolConstructor),t.set(3,bn.symbolField),t.set(4,bn.symbolVariable),t.set(5,bn.symbolClass),t.set(6,bn.symbolStruct),t.set(7,bn.symbolInterface),t.set(8,bn.symbolModule),t.set(9,bn.symbolProperty),t.set(10,bn.symbolEvent),t.set(11,bn.symbolOperator),t.set(12,bn.symbolUnit),t.set(13,bn.symbolValue),t.set(15,bn.symbolEnum),t.set(14,bn.symbolConstant),t.set(15,bn.symbolEnum),t.set(16,bn.symbolEnumMember),t.set(17,bn.symbolKeyword),t.set(27,bn.symbolSnippet),t.set(18,bn.symbolText),t.set(19,bn.symbolColor),t.set(20,bn.symbolFile),t.set(21,bn.symbolReference),t.set(22,bn.symbolCustomColor),t.set(23,bn.symbolFolder),t.set(24,bn.symbolTypeParameter),t.set(25,bn.account),t.set(26,bn.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=bn.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let i=n.get(e);return"undefined"!==typeof i||t||(i=9),i}}(Cn||(Cn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(yn||(yn={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(Ln||(Ln={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(wn||(wn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Nn||(Nn={}));I(0,"array"),I(0,"boolean"),I(0,"class"),I(0,"constant"),I(0,"constructor"),I(0,"enumeration"),I(0,"enumeration member"),I(0,"event"),I(0,"field"),I(0,"file"),I(0,"function"),I(0,"interface"),I(0,"key"),I(0,"method"),I(0,"module"),I(0,"namespace"),I(0,"null"),I(0,"number"),I(0,"object"),I(0,"operator"),I(0,"package"),I(0,"property"),I(0,"string"),I(0,"struct"),I(0,"type parameter"),I(0,"variable");var En,Sn,Rn,An;!function(e){const t=new Map;t.set(0,bn.symbolFile),t.set(1,bn.symbolModule),t.set(2,bn.symbolNamespace),t.set(3,bn.symbolPackage),t.set(4,bn.symbolClass),t.set(5,bn.symbolMethod),t.set(6,bn.symbolProperty),t.set(7,bn.symbolField),t.set(8,bn.symbolConstructor),t.set(9,bn.symbolEnum),t.set(10,bn.symbolInterface),t.set(11,bn.symbolFunction),t.set(12,bn.symbolVariable),t.set(13,bn.symbolConstant),t.set(14,bn.symbolString),t.set(15,bn.symbolNumber),t.set(16,bn.symbolBoolean),t.set(17,bn.symbolArray),t.set(18,bn.symbolObject),t.set(19,bn.symbolKey),t.set(20,bn.symbolNull),t.set(21,bn.symbolEnumMember),t.set(22,bn.symbolStruct),t.set(23,bn.symbolEvent),t.set(24,bn.symbolOperator),t.set(25,bn.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=bn.symbolProperty),n}}(En||(En={}));class xn{static fromValue(e){switch(e){case"comment":return xn.Comment;case"imports":return xn.Imports;case"region":return xn.Region}return new xn(e)}constructor(e){this.value=e}}xn.Comment=new xn("comment"),xn.Imports=new xn("imports"),xn.Region=new xn("region"),function(e){e[e.AIGenerated=1]="AIGenerated"}(Sn||(Sn={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(Rn||(Rn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(An||(An={}));new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new x,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),p((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var n;null===(n=this._factories.get(e))||void 0===n||n.dispose();const i=new _n(this,e,t);return this._factories.set(e,i),p((()=>{const t=this._factories.get(e);t&&t===i&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};var Mn,kn,On,Tn,In,Pn,Dn,Kn,Fn,qn,Vn,Bn,Un,Hn,Wn,zn,$n,jn,Gn,Qn,Jn,Yn,Xn,Zn,ei,ti,ni,ii,ri,si,oi,ai,li,ui,hi,ci,di,mi,gi,fi,pi,bi,_i,vi,Ci,yi,Li;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Mn||(Mn={})),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(kn||(kn={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(On||(On={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(Tn||(Tn={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(In||(In={})),function(e){e[e.Deprecated=1]="Deprecated"}(Pn||(Pn={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(Dn||(Dn={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(Kn||(Kn={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(Fn||(Fn={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(qn||(qn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Vn||(Vn={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(Bn||(Bn={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",e[e.quickSuggestions=89]="quickSuggestions",e[e.quickSuggestionsDelay=90]="quickSuggestionsDelay",e[e.readOnly=91]="readOnly",e[e.readOnlyMessage=92]="readOnlyMessage",e[e.renameOnType=93]="renameOnType",e[e.renderControlCharacters=94]="renderControlCharacters",e[e.renderFinalNewline=95]="renderFinalNewline",e[e.renderLineHighlight=96]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=98]="renderValidationDecorations",e[e.renderWhitespace=99]="renderWhitespace",e[e.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",e[e.roundedSelection=101]="roundedSelection",e[e.rulers=102]="rulers",e[e.scrollbar=103]="scrollbar",e[e.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=105]="scrollBeyondLastLine",e[e.scrollPredominantAxis=106]="scrollPredominantAxis",e[e.selectionClipboard=107]="selectionClipboard",e[e.selectionHighlight=108]="selectionHighlight",e[e.selectOnLineNumbers=109]="selectOnLineNumbers",e[e.showFoldingControls=110]="showFoldingControls",e[e.showUnused=111]="showUnused",e[e.snippetSuggestions=112]="snippetSuggestions",e[e.smartSelect=113]="smartSelect",e[e.smoothScrolling=114]="smoothScrolling",e[e.stickyScroll=115]="stickyScroll",e[e.stickyTabStops=116]="stickyTabStops",e[e.stopRenderingLineAfter=117]="stopRenderingLineAfter",e[e.suggest=118]="suggest",e[e.suggestFontSize=119]="suggestFontSize",e[e.suggestLineHeight=120]="suggestLineHeight",e[e.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",e[e.suggestSelection=122]="suggestSelection",e[e.tabCompletion=123]="tabCompletion",e[e.tabIndex=124]="tabIndex",e[e.unicodeHighlighting=125]="unicodeHighlighting",e[e.unusualLineTerminators=126]="unusualLineTerminators",e[e.useShadowDOM=127]="useShadowDOM",e[e.useTabStops=128]="useTabStops",e[e.wordBreak=129]="wordBreak",e[e.wordSegmenterLocales=130]="wordSegmenterLocales",e[e.wordSeparators=131]="wordSeparators",e[e.wordWrap=132]="wordWrap",e[e.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=135]="wordWrapColumn",e[e.wordWrapOverride1=136]="wordWrapOverride1",e[e.wordWrapOverride2=137]="wordWrapOverride2",e[e.wrappingIndent=138]="wrappingIndent",e[e.wrappingStrategy=139]="wrappingStrategy",e[e.showDeprecated=140]="showDeprecated",e[e.inlayHints=141]="inlayHints",e[e.editorClassName=142]="editorClassName",e[e.pixelRatio=143]="pixelRatio",e[e.tabFocusMode=144]="tabFocusMode",e[e.layoutInfo=145]="layoutInfo",e[e.wrappingInfo=146]="wrappingInfo",e[e.defaultColorDecorators=147]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"}(Un||(Un={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Hn||(Hn={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(Wn||(Wn={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(zn||(zn={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}($n||($n={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(jn||(jn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(Gn||(Gn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(Qn||(Qn={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Jn||(Jn={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(Yn||(Yn={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(Xn||(Xn={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(Zn||(Zn={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(ei||(ei={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(ti||(ti={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(ni||(ni={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(ii||(ii={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(ri||(ri={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(si||(si={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(oi||(oi={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(ai||(ai={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(li||(li={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(ui||(ui={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(hi||(hi={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(ci||(ci={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(di||(di={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(mi||(mi={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(gi||(gi={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(fi||(fi={})),function(e){e[e.Deprecated=1]="Deprecated"}(pi||(pi={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(bi||(bi={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(_i||(_i={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(vi||(vi={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(Ci||(Ci={}));class wi{static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}wi.CtrlCmd=2048,wi.Shift=1024,wi.Alt=512,wi.WinCtrl=256;class Ni{constructor(e,t){this.uri=e,this.value=t}}class Ei{constructor(e,t){if(this[yi]="ResourceMap",e instanceof Ei)this.map=new Map(e.map),this.toKey=null!==t&&void 0!==t?t:Ei.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=null!==t&&void 0!==t?t:Ei.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=null!==e&&void 0!==e?e:Ei.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new Ni(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(yi=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}Ei.defaultToKey=e=>e.toString();class Si{constructor(){this[Li]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(Li=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class Ri{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}new class extends Si{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}(10);var Ai,xi,Mi;!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Ai||(Ai={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(xi||(xi={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Mi||(Mi={}));function ki(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const s=t.charCodeAt(i-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const s=t.charCodeAt(i+r);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}class Oi{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const i=n.index,r=n[0].length;if(i===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){pe(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=r,!this._wordSeparators||ki(this._wordSeparators,e,t,i,r))return n}while(n);return null}}function Ti(e,t="Unreachable"){throw new Error(t)}function Ii(e){e()||(e(),t(new a("Assertion Failed")))}function Pi(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}class Di{static computeUnicodeHighlights(e,t,n){const i=n?n.startLineNumber:1,r=n?n.endLineNumber:e.getLineCount(),s=new Ki(t),o=s.getCandidateCodePoints();let a;a="allNonBasicAscii"===o?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+`[${ce(Array.from(o).map((e=>String.fromCodePoint(e))).join(""))}]`,"g");const l=new Oi(null,a),u=[];let h,c=!1,d=0,m=0,g=0;e:for(let f=i,p=r;f<=p;f++){const t=e.getLineContent(f),n=t.length;l.reset(0);do{if(h=l.next(t),h){let e=h.index,i=h.index+h[0].length;if(e>0){me(t.charCodeAt(e-1))&&e--}if(i+1<n){me(t.charCodeAt(i-1))&&i++}const r=t.substring(e,i);let o=Bt(e+1,Ft,t,0);o&&o.endColumn<=e+1&&(o=null);const a=s.shouldHighlightNonBasicASCII(r,o?o.word:null);if(0!==a){3===a?d++:2===a?m++:1===a?g++:Ti();const t=1e3;if(u.length>=t){c=!0;break e}u.push(new At(f,e+1,f,i+1))}}}while(h)}return{ranges:u,hasMore:c,ambiguousCharacterCount:d,invisibleCharacterCount:m,nonBasicAsciiCharacterCount:g}}static computeUnicodeHighlightReason(e,t){const n=new Ki(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),r=n.ambiguousCharacters.getPrimaryConfusable(i),s=ve.getLocales().filter((e=>!ve.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i)));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:s}}case 1:return{kind:2}}}}class Ki{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=ve.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of Ce.codePoints)Fi(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=(s=o,be.test(s));i=i||t,t||this.ambiguousCharacters.isAmbiguous(e)||Ce.isInvisibleCharacter(e)||(r=!0)}var s;return!i&&r?0:this.options.invisibleCharacters&&!Fi(e)&&Ce.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function Fi(e){return" "===e||"\n"===e||"\t"===e}class qi{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class Vi{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}class Bi{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let i=n;for(;i<t.length&&t[i].start<=e.endExclusive;)i++;if(n===i)t.splice(n,0,e);else{const r=Math.min(e.start,t[n].start),s=Math.max(e.endExclusive,t[i-1].endExclusive);t.splice(n,i-n,new Bi(r,s))}}static tryCreate(e,t){if(!(e>t))return new Bi(e,t)}static ofLength(e){return new Bi(0,e)}static ofStartAndLength(e,t){return new Bi(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new a(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Bi(this.start+e,this.endExclusive+e)}deltaStart(e){return new Bi(this.start+e,this.endExclusive)}deltaEnd(e){return new Bi(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new Bi(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new Bi(t,n)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new a(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new a(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}function Ui(e,t){const n=Hi(e,t);return-1===n?void 0:e[n]}function Hi(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?r=n+1:s=n}return r-1}function Wi(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?s=n:r=n+1}return r}class zi{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(zi.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=Hi(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}zi.assertInvariants=!1;class $i{static fromRangeInclusive(e){return new $i(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new ji(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new ji(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new a("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)t=Math.min(t,e[i].startLineNumber),n=Math.max(n,e[i].endLineNumberExclusive);return new $i(t,n)}static ofLength(e,t){return new $i(e,e+t)}static deserialize(e){return new $i(e[0],e[1])}constructor(e,t){if(e>t)throw new a(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new $i(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new $i(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new $i(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new $i(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new At(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new At(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new Bi(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class ji{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=Wi(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=Hi(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){const t=Ui(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=Ui(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,i=0,r=null;for(;n<this._normalizedRanges.length||i<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&i<e._normalizedRanges.length){const t=this._normalizedRanges[n],r=e._normalizedRanges[i];t.startLineNumber<r.startLineNumber?(s=t,n++):(s=r,i++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[i],i++);null===r?r=s:r.endLineNumberExclusive>=s.startLineNumber?r=new $i(r.startLineNumber,Math.max(r.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(r),r=s)}return null!==r&&t.push(r),new ji(t)}subtractFrom(e){const t=Wi(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=Hi(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new ji([e]);const i=[];let r=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>r&&i.push(new $i(r,e.startLineNumber)),r=e.endLineNumberExclusive}return r<e.endLineNumberExclusive&&i.push(new $i(r,e.endLineNumberExclusive)),new ji(i)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,i=0;for(;n<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const r=this._normalizedRanges[n],s=e._normalizedRanges[i],o=r.intersect(s);o&&!o.isEmpty&&t.push(o),r.endLineNumberExclusive<s.endLineNumberExclusive?n++:i++}return new ji(t)}getWithDelta(e){return new ji(this._normalizedRanges.map((t=>t.delta(e))))}}class Gi{static inverse(e,t,n){const i=[];let r=1,s=1;for(const a of e){const e=new Gi(new $i(r,a.original.startLineNumber),new $i(s,a.modified.startLineNumber));e.modified.isEmpty||i.push(e),r=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new Gi(new $i(r,t+1),new $i(s,n+1));return o.modified.isEmpty||i.push(o),i}static clip(e,t,n){const i=[];for(const r of e){const e=r.original.intersect(t),s=r.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&i.push(new Gi(e,s))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Gi(this.modified,this.original)}join(e){return new Gi(this.original.join(e.original),this.modified.join(e.modified))}}class Qi extends Gi{static fromRangeMappings(e){const t=$i.join(e.map((e=>$i.fromRangeInclusive(e.originalRange)))),n=$i.join(e.map((e=>$i.fromRangeInclusive(e.modifiedRange))));return new Qi(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){var e;return new Qi(this.modified,this.original,null===(e=this.innerChanges)||void 0===e?void 0:e.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new Qi(this.original,this.modified,[new Ji(this.original.toExclusiveRange(),this.modified.toExclusiveRange())])}}class Ji{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Ji(this.modifiedRange,this.originalRange)}}class Yi{computeDiff(e,t,n){var i;const r=new ir(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),s=[];let o=null;for(const a of r.changes){let e,t;e=0===a.originalEndLineNumber?new $i(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new $i(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new $i(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new $i(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let n=new Qi(e,t,null===(i=a.charChanges)||void 0===i?void 0:i.map((e=>new Ji(new At(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new At(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));o&&(o.modified.endLineNumberExclusive!==n.modified.startLineNumber&&o.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new Qi(o.original.join(n.original),o.modified.join(n.modified),o.innerChanges&&n.innerChanges?o.innerChanges.concat(n.innerChanges):void 0),s.pop())),s.push(n),o=n}return Ii((()=>Pi(s,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new qi(s,[],r.quitEarly)}}function Xi(e,t,n,i){return new ze(e,t,n).ComputeDiff(i)}class Zi{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=rr(e[i],1),n[i]=sr(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const i=[],r=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,u=e?this._endColumns[a]:t.length+1;for(let e=l;e<u;e++)i[o]=t.charCodeAt(e-1),r[o]=a+1,s[o]=e,o++;!e&&a<n&&(i[o]=10,r[o]=a+1,s[o]=t.length+1,o++)}return new er(i,r,s)}}class er{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class tr{constructor(e,t,n,i,r,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),u=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new tr(i,r,s,o,a,l,u,h)}}class nr{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,s,o){let a,l,u,h,c;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(u=i.getStartLineNumber(t.modifiedStart)-1,h=0):(u=i.getStartLineNumber(t.modifiedStart),h=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=Xi(s,a,r,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),o=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(e)),c=[];for(let t=0,n=e.length;t<n;t++)c.push(tr.createFromDiffChange(e[t],s,a))}}return new nr(a,l,u,h,c)}}class ir{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new Zi(e),this.modified=new Zi(t),this.continueLineDiff=or(n.maxComputationTime),this.continueCharDiff=or(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=Xi(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(nr.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;r<n&&s<l;){const e=this.originalLines[r],t=this.modifiedLines[s];if(e!==t){{let n=rr(e,1),o=rr(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,s+1,1,o)}{let n=sr(e,1),o=sr(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,s+1,o,l)}}r++,s++}e&&(i.push(nr.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new tr(t,n,t,i,r,s,r,o)]),e.push(new nr(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===r?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new tr(t,n,t,i,r,s,r,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new tr(t,n,t,i,r,s,r,o)),!0))}}function rr(e,t){const n=function(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}(e);return-1===n?t:n+1}function sr(e,t){const n=function(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===n?t:n+2}function or(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}class ar{static trivial(e,t){return new ar([new lr(Bi.ofLength(e.length),Bi.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new ar([new lr(Bi.ofLength(e.length),Bi.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class lr{static invert(e,t){const n=[];return function(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}(e,((e,i)=>{n.push(lr.fromOffsetPairs(e?e.getEndExclusives():ur.zero,i?i.getStarts():new ur(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new lr(new Bi(e.offset1,t.offset1),new Bi(e.offset2,t.offset2))}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new lr(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new lr(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new lr(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new lr(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new lr(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new lr(t,n)}getStarts(){return new ur(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new ur(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class ur{constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new ur(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}ur.zero=new ur(0,0),ur.max=new ur(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class hr{isValid(){return!0}}hr.instance=new hr;class cr{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new a("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class dr{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}}function mr(e){return 32===e||9===e}class gr{static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let i=0;for(let r=e.startLineNumber-1;r<e.endLineNumberExclusive-1;r++){const e=t[r];for(let t=0;t<e.length;t++){i++;const n=e[t],r=gr.getKey(n);this.histogram[r]=(this.histogram[r]||0)+1}i++;const n=gr.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=i}computeSimilarity(e){var t,n;let i=0;const r=Math.max(this.histogram.length,e.histogram.length);for(let s=0;s<r;s++)i+=Math.abs((null!==(t=this.histogram[s])&&void 0!==t?t:0)-(null!==(n=e.histogram[s])&&void 0!==n?n:0));return 1-i/(this.totalCount+e.totalCount)}}gr.chrKeys=new Map;class fr{compute(e,t,n=hr.instance,i){if(0===e.length||0===t.length)return ar.trivial(e,t);const r=new dr(e.length,t.length),s=new dr(e.length,t.length),o=new dr(e.length,t.length);for(let m=0;m<e.length;m++)for(let a=0;a<t.length;a++){if(!n.isValid())return ar.trivialTimedOut(e,t);const l=0===m?0:r.get(m-1,a),u=0===a?0:r.get(m,a-1);let h;e.getElement(m)===t.getElement(a)?(h=0===m||0===a?0:r.get(m-1,a-1),m>0&&a>0&&3===s.get(m-1,a-1)&&(h+=o.get(m-1,a-1)),h+=i?i(m,a):1):h=-1;const c=Math.max(l,u,h);if(c===h){const e=m>0&&a>0?o.get(m-1,a-1):0;o.set(m,a,e+1),s.set(m,a,3)}else c===l?(o.set(m,a,0),s.set(m,a,1)):c===u&&(o.set(m,a,0),s.set(m,a,2));r.set(m,a,c)}const a=[];let l=e.length,u=t.length;function h(e,t){e+1===l&&t+1===u||a.push(new lr(new Bi(e+1,l),new Bi(t+1,u))),l=e,u=t}let c=e.length-1,d=t.length-1;for(;c>=0&&d>=0;)3===s.get(c,d)?(h(c,d),c--,d--):1===s.get(c,d)?c--:d--;return h(-1,-1),a.reverse(),new ar(a,!1)}}class pr{compute(e,t,n=hr.instance){if(0===e.length||0===t.length)return ar.trivial(e,t);const i=e,r=t;function s(e,t){for(;e<i.length&&t<r.length&&i.getElement(e)===r.getElement(t);)e++,t++;return e}let o=0;const a=new _r;a.set(0,s(0,0));const l=new vr;l.set(0,0===a.get(0)?null:new br(null,0,0,a.get(0)));let u=0;e:for(;;){if(o++,!n.isValid())return ar.trivialTimedOut(i,r);const e=-Math.min(o,r.length+o%2),t=Math.min(o,i.length+o%2);for(u=e;u<=t;u+=2){let n=0;const o=u===t?-1:a.get(u+1),h=u===e?-1:a.get(u-1)+1;n++;const c=Math.min(Math.max(o,h),i.length),d=c-u;if(n++,c>i.length||d>r.length)continue;const m=s(c,d);a.set(u,m);const g=c===o?l.get(u+1):l.get(u-1);if(l.set(u,m!==c?new br(g,c,d,m-c):g),a.get(u)===i.length&&a.get(u)-u===r.length)break e}}let h=l.get(u);const c=[];let d=i.length,m=r.length;for(;;){const e=h?h.x+h.length:0,t=h?h.y+h.length:0;if(e===d&&t===m||c.push(new lr(new Bi(e,d),new Bi(t,m))),!h)break;d=h.x,m=h.y,h=h.prev}return c.reverse(),new ar(c,!1)}}class br{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class _r{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class vr{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class Cr{constructor(e,t,n){this.lines=e,this.considerWhitespaceChanges=n,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let i=!1;t.start>0&&t.endExclusive>=e.length&&(t=new Bi(t.start-1,t.endExclusive),i=!0),this.lineRange=t,this.firstCharOffsetByLine[0]=0;for(let r=this.lineRange.start;r<this.lineRange.endExclusive;r++){let t=e[r],s=0;if(i)s=t.length,t="",i=!1;else if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.additionalOffsetByLine.push(s);for(let e=0;e<t.length;e++)this.elements.push(t.charCodeAt(e));r<e.length-1&&(this.elements.push("\n".charCodeAt(0)),this.firstCharOffsetByLine[r-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Bi(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=Nr(e>0?this.elements[e-1]:-1),n=Nr(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let i=0;return t!==n&&(i+=10,0===t&&1===n&&(i+=1)),i+=wr(t),i+=wr(n),i}translateOffset(e){if(this.lineRange.isEmpty)return new Rt(this.lineRange.start+1,1);const t=Hi(this.firstCharOffsetByLine,(t=>t<=e));return new Rt(this.lineRange.start+t+1,e-this.firstCharOffsetByLine[t]+this.additionalOffsetByLine[t]+1)}translateRange(e){return At.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!yr(this.elements[e]))return;let t=e;for(;t>0&&yr(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&yr(this.elements[n]);)n++;return new Bi(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){var t,n;const i=null!==(t=Ui(this.firstCharOffsetByLine,(t=>t<=e.start)))&&void 0!==t?t:0,r=null!==(n=function(e,t){const n=Wi(e,t);return n===e.length?void 0:e[n]}(this.firstCharOffsetByLine,(t=>e.endExclusive<=t)))&&void 0!==n?n:this.elements.length;return new Bi(i,r)}}function yr(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const Lr={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function wr(e){return Lr[e]}function Nr(e){return 10===e?8:13===e?7:mr(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function Er(e,t,n,i,r,s){let{moves:o,excludedChanges:a}=function(e,t,n,i){const r=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new gr(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new gr(e.modified,n,e)))),a=new Set;for(const l of s){let e,t=-1;for(const n of o){const i=l.computeSimilarity(n);i>t&&(t=i,e=n)}if(t>.9&&e&&(o.delete(e),r.push(new Gi(l.range,e.range)),a.add(l.source),a.add(e.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,i,r,s){const o=[],a=new Ri;for(const m of e)for(let e=m.original.startLineNumber;e<m.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new $i(e,e+3)})}const l=[];e.sort(Mt((e=>e.modified.startLineNumber),kt));for(const m of e){let e=[];for(let t=m.modified.startLineNumber;t<m.modified.endLineNumberExclusive-2;t++){const i=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,r=new $i(t,t+3),s=[];a.forEach(i,(({range:t})=>{for(const i of e)if(i.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&i.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return i.originalLineRange=new $i(i.originalLineRange.startLineNumber,t.endLineNumberExclusive),i.modifiedLineRange=new $i(i.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void s.push(i);const n={modifiedLineRange:r,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((u=Mt((e=>e.modifiedLineRange.length),kt),(e,t)=>-u(e,t)));var u;const h=new ji,c=new ji;for(const m of l){const e=m.modifiedLineRange.startLineNumber-m.originalLineRange.startLineNumber,t=h.subtractFrom(m.modifiedLineRange),n=c.subtractFrom(m.originalLineRange).getWithDelta(e),i=t.getIntersection(n);for(const r of i.ranges){if(r.length<3)continue;const t=r,n=r.delta(-e);o.push(new Gi(n,t)),h.addRange(t),c.addRange(n)}}o.sort(Mt((e=>e.original.startLineNumber),kt));const d=new zi(e);for(let m=0;m<o.length;m++){const t=o[m],n=d.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=Ui(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),u=d.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),g=Ui(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),f=Math.max(u.original.endLineNumberExclusive-t.original.endLineNumberExclusive,g.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let p,b;for(p=0;p<l;p++){const e=t.original.startLineNumber-p-1,n=t.modified.startLineNumber-p-1;if(e>i.length||n>r.length)break;if(h.contains(n)||c.contains(e))break;if(!Sr(i[e-1],r[n-1],s))break}for(p>0&&(c.addRange(new $i(t.original.startLineNumber-p,t.original.startLineNumber)),h.addRange(new $i(t.modified.startLineNumber-p,t.modified.startLineNumber))),b=0;b<f;b++){const e=t.original.endLineNumberExclusive+b,n=t.modified.endLineNumberExclusive+b;if(e>i.length||n>r.length)break;if(h.contains(n)||c.contains(e))break;if(!Sr(i[e-1],r[n-1],s))break}b>0&&(c.addRange(new $i(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+b)),h.addRange(new $i(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+b))),(p>0||b>0)&&(o[m]=new Gi(new $i(t.original.startLineNumber-p,t.original.endLineNumberExclusive+b),new $i(t.modified.startLineNumber-p,t.modified.endLineNumberExclusive+b)))}return o}(e.filter((e=>!a.has(e))),i,r,t,n,s);return function(e,t){for(const n of t)e.push(n)}(o,l),o=function(e){if(0===e.length)return e;e.sort(Mt((e=>e.original.startLineNumber),kt));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,o=r.modified.startLineNumber-i.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const i of e)t(i)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new zi(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new Gi(new $i(1,1),new $i(1,1)))!==Ui(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function Sr(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=(new pr).compute(new Cr([e],new Bi(0,1),!1),new Cr([t],new Bi(0,1),!1),n);let r=0;const s=lr.invert(i.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{mr(e.charCodeAt(t))||r++}));const o=function(t){let n=0;for(let i=0;i<e.length;i++)mr(t.charCodeAt(i))||n++;return n}(e.length>t.length?e:t);return r/o>.6&&o>10}function Rr(e,t,n){let i=n;return i=Ar(e,t,i),i=Ar(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,s=n[i],o=i+1<n.length?n[i+1]:void 0,a=new Bi(r?r.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new Bi(r?r.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[i]=xr(s,e,t,a,l):s.seq2Range.isEmpty&&(n[i]=xr(s.swap(),t,e,l,a).swap())}return n}(e,t,i),i}function Ar(e,t,n){if(0===n.length)return n;const i=[];i.push(n[0]);for(let s=1;s<n.length;s++){const r=i[i.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-r.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){i[i.length-1]=new lr(new Bi(r.seq1Range.start,o.seq1Range.endExclusive-n),new Bi(r.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}i.push(o)}const r=[];for(let s=0;s<i.length-1;s++){const n=i[s+1];let o=i[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const r=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<r&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===r){i[s+1]=new lr(new Bi(o.seq1Range.start+r,n.seq1Range.endExclusive),new Bi(o.seq2Range.start+r,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}r.push(o)}return i.length>0&&r.push(i[i.length-1]),r}function xr(e,t,n,i,r){let s=1;for(;e.seq1Range.start-s>=i.start&&e.seq2Range.start-s>=r.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<i.endExclusive&&e.seq2Range.endExclusive+o<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,l=-1;for(let u=-s;u<=o;u++){const i=e.seq2Range.start+u,r=e.seq2Range.endExclusive+u,s=e.seq1Range.start+u,o=t.getBoundaryScore(s)+n.getBoundaryScore(i)+n.getBoundaryScore(r);o>l&&(l=o,a=u)}return e.delta(a)}class Mr{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:kr(this.lines[e-1]))+(e===this.lines.length?0:kr(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function kr(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class Or{constructor(){this.dynamicProgrammingDiffing=new fr,this.myersDiffingAlgorithm=new pr}computeDiff(e,t,n){if(e.length<=1&&function(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}(e,t,((e,t)=>e===t)))return new qi([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new qi([new Qi(new $i(1,e.length+1),new $i(1,t.length+1),[new Ji(new At(1,1,e.length,e[0].length+1),new At(1,1,t.length,t[0].length+1))])],[],!1);const i=0===n.maxComputationTimeMs?hr.instance:new cr(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),u=new Mr(a,e),h=new Mr(l,t),c=(()=>u.length+h.length<1700?this.dynamicProgrammingDiffing.compute(u,h,i,((n,i)=>e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99)):this.myersDiffingAlgorithm.compute(u,h))();let d=c.diffs,m=c.hitTimeout;d=Rr(u,h,d),d=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const o=[i[0]];for(let a=1;a<i.length;a++){const l=i[a],u=o[o.length-1];function h(t,n){const i=new Bi(u.seq1Range.endExclusive,l.seq1Range.start);return e.getText(i).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}h(u,l)?(r=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}i=o}while(s++<10&&r);return i}(u,0,d);const g=[],f=n=>{if(r)for(let s=0;s<n;s++){const n=p+s,o=b+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new lr(new Bi(n,n+1),new Bi(o,o+1)),i,r);for(const e of s.mappings)g.push(e);s.hitTimeout&&(m=!0)}}};let p=0,b=0;for(const C of d){Ii((()=>C.seq1Range.start-p===C.seq2Range.start-b));f(C.seq1Range.start-p),p=C.seq1Range.endExclusive,b=C.seq2Range.endExclusive;const n=this.refineDiff(e,t,C,i,r);n.hitTimeout&&(m=!0);for(const e of n.mappings)g.push(e)}f(e.length-p);const _=Tr(g,e,t);let v=[];return n.computeMoves&&(v=this.computeMoves(_,e,t,a,l,i,r)),Ii((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function i(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const r of _){if(!r.innerChanges)return!1;for(const i of r.innerChanges){if(!(n(i.modifiedRange.getStartPosition(),t)&&n(i.modifiedRange.getEndPosition(),t)&&n(i.originalRange.getStartPosition(),e)&&n(i.originalRange.getEndPosition(),e)))return!1}if(!i(r.modified,t)||!i(r.original,e))return!1}return!0})),new qi(_,v,m)}computeMoves(e,t,n,i,r,s,o){return Er(e,t,n,i,r,s).map((e=>{const i=Tr(this.refineDiff(t,n,new lr(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new Vi(e,i)}))}refineDiff(e,t,n,i,r){const s=new Cr(e,n.seq1Range,r),o=new Cr(t,n.seq2Range,r),a=s.length+o.length<500?this.dynamicProgrammingDiffing.compute(s,o,i):this.myersDiffingAlgorithm.compute(s,o,i);let l=a.diffs;l=Rr(s,o,l),l=function(e,t,n){const i=lr.invert(n,e.length),r=[];let s=new ur(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let u=new lr(a,l);const h=u.intersect(o);let c=h.seq1Range.length,d=h.seq2Range.length;for(;i.length>0;){const n=i[0];if(!n.seq1Range.intersects(u.seq1Range)&&!n.seq2Range.intersects(u.seq2Range))break;const r=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new lr(r,s),a=o.intersect(n);if(c+=a.seq1Range.length,d+=a.seq2Range.length,u=u.join(o),!(u.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;i.shift()}c+d<2*(u.seq1Range.length+u.seq2Range.length)/3&&r.push(u),s=u.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let s;s=i&&(!r||i.seq1Range.start<r.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,r)}(s,o,l),l=function(e,t,n){const i=[];for(const r of n){const e=i[i.length-1];e&&(r.seq1Range.start-e.seq1Range.endExclusive<=2||r.seq2Range.start-e.seq2Range.endExclusive<=2)?i[i.length-1]=new lr(e.seq1Range.join(r.seq1Range),e.seq2Range.join(r.seq2Range)):i.push(r)}return i}(0,0,l),l=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const a=[i[0]];for(let l=1;l<i.length;l++){const u=i[l],h=a[a.length-1];function c(n,i){const r=new Bi(h.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const s=e.getText(r).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),c=n.seq2Range.length,d=e.countLinesIn(i.seq1Range),m=i.seq1Range.length,g=t.countLinesIn(i.seq2Range),f=i.seq2Range.length;function p(e){return Math.min(e,130)}return Math.pow(Math.pow(p(40*o+a),1.5)+Math.pow(p(40*l+c),1.5),1.5)+Math.pow(Math.pow(p(40*d+m),1.5)+Math.pow(p(40*g+f),1.5),1.5)>74184.96480721243}c(h,u)?(r=!0,a[a.length-1]=a[a.length-1].join(u)):a.push(u)}i=a}while(s++<10&&r);const o=[];return function(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}(i,((t,n,i)=>{let r=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new Bi(a.start,n.seq1Range.start));s(l)&&(r=r.deltaStart(-l.length));const u=e.getText(new Bi(n.seq1Range.endExclusive,a.endExclusive));s(u)&&(r=r.deltaEnd(u.length));const h=lr.fromOffsetPairs(t?t.getEndExclusives():ur.zero,i?i.getStarts():ur.max),c=r.intersect(h);o.length>0&&c.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(c):o.push(c)})),o}(s,o,l);return{mappings:l.map((e=>new Ji(s.translateRange(e.seq1Range),o.translateRange(e.seq2Range)))),hitTimeout:a.hitTimeout}}}function Tr(e,t,n,i=!1){const r=[];for(const s of function*(e,t){let n,i;for(const r of e)void 0!==i&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}(e.map((e=>function(e,t,n){let i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const s=new $i(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),o=new $i(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new Qi(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];r.push(new Qi(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return Ii((()=>{if(!i&&r.length>0){if(r[0].modified.startLineNumber!==r[0].original.startLineNumber)return!1;if(n.length-r[r.length-1].modified.endLineNumberExclusive!==t.length-r[r.length-1].original.endLineNumberExclusive)return!1}return Pi(r,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),r}const Ir=()=>new Yi,Pr=()=>new Or;function Dr(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class Kr{constructor(e,t,n,i=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=Dr(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class Fr{constructor(e,t,n,i){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Dr(Math.max(Math.min(1,t),0),3),this.l=Dr(Math.max(Math.min(1,n),0),3),this.a=Dr(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,s=Math.max(t,n,i),o=Math.min(t,n,i);let a=0,l=0;const u=(o+s)/2,h=s-o;if(h>0){switch(l=Math.min(u<=.5?h/(2*u):h/(2-2*u),1),s){case t:a=(n-i)/h+(n<i?6:0);break;case n:a=(i-t)/h+2;break;case i:a=(t-n)/h+4}a*=60,a=Math.round(a)}return new Fr(a,l,u,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:r}=e;let s,o,a;if(0===n)s=o=a=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;s=Fr._hue2rgb(r,e,t+1/3),o=Fr._hue2rgb(r,e,t),a=Fr._hue2rgb(r,e,t-1/3)}return new Kr(Math.round(255*s),Math.round(255*o),Math.round(255*a),r)}}class qr{constructor(e,t,n,i){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Dr(Math.max(Math.min(1,t),0),3),this.v=Dr(Math.max(Math.min(1,n),0),3),this.a=Dr(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=r-Math.min(t,n,i),o=0===r?0:s/r;let a;return a=0===s?0:r===t?((n-i)/s%6+6)%6:r===n?(i-t)/s+2:(t-n)/s+4,new qr(Math.round(60*a),o,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:r}=e,s=i*n,o=s*(1-Math.abs(t/60%2-1)),a=i-s;let[l,u,h]=[0,0,0];return t<60?(l=s,u=o):t<120?(l=o,u=s):t<180?(u=s,h=o):t<240?(u=o,h=s):t<300?(l=o,h=s):t<=360&&(l=s,h=o),l=Math.round(255*(l+a)),u=Math.round(255*(u+a)),h=Math.round(255*(h+a)),new Kr(l,u,h,r)}}class Vr{static fromHex(e){return Vr.Format.CSS.parseHex(e)||Vr.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:Fr.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:qr.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof Kr)this.rgba=e;else if(e instanceof Fr)this._hsla=e,this.rgba=Fr.toRGBA(e);else{if(!(e instanceof qr))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=qr.toRGBA(e)}}equals(e){return!!e&&Kr.equals(this.rgba,e.rgba)&&Fr.equals(this.hsla,e.hsla)&&qr.equals(this.hsva,e.hsva)}getRelativeLuminance(){return Dr(.2126*Vr._relativeLuminanceForComponent(this.rgba.r)+.7152*Vr._relativeLuminanceForComponent(this.rgba.g)+.0722*Vr._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new Vr(new Fr(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new Vr(new Fr(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:r}=this.rgba;return new Vr(new Kr(t,n,i,r*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new Vr(new Kr(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:i,a:r}=this.rgba;return new Vr(new Kr(e.rgba.r-r*(e.rgba.r-t),e.rgba.g-r*(e.rgba.g-n),e.rgba.b-r*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=Vr.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}}function Br(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Ur(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function Hr(e,t){const n=t.index,i=t[0].length;if(!n)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Wr(e,t){if(!e)return;const n=Vr.Format.CSS.parseHex(t);return n?{range:e,color:Ur(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function zr(e,t,n){if(!e||1!==t.length)return;const i=Br(t[0].values());return{range:e,color:Ur(i[0],i[1],i[2],n?i[3]:1)}}function $r(e,t,n){if(!e||1!==t.length)return;const i=Br(t[0].values()),r=new Vr(new Fr(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:Ur(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function jr(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function Gr(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=jr(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(const i of n){const n=i.filter((e=>void 0!==e)),r=n[1],s=n[2];if(!s)continue;let o;if("rgb"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=zr(Hr(e,i),jr(s,t),!1)}else if("rgba"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=zr(Hr(e,i),jr(s,t),!0)}else if("hsl"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=$r(Hr(e,i),jr(s,t),!1)}else if("hsla"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=$r(Hr(e,i),jr(s,t),!0)}else"#"===r&&(o=Wr(Hr(e,i),r+s));o&&t.push(o)}return t}(e):[]}Vr.white=new Vr(new Kr(255,255,255,1)),Vr.black=new Vr(new Kr(0,0,0,1)),Vr.red=new Vr(new Kr(255,0,0,1)),Vr.blue=new Vr(new Kr(0,0,255,1)),Vr.green=new Vr(new Kr(0,255,0,1)),Vr.cyan=new Vr(new Kr(0,255,255,1)),Vr.lightgrey=new Vr(new Kr(211,211,211,1)),Vr.transparent=new Vr(new Kr(0,0,0,0)),function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function i(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),r=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),s=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new Kr(n,r,s,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),r=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),s=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),o=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new Kr(n,r,s,o/255))}if(4===n){const n=i(t.charCodeAt(1)),r=i(t.charCodeAt(2)),s=i(t.charCodeAt(3));return new e(new Kr(16*n+n,16*r+r,16*s+s))}if(5===n){const n=i(t.charCodeAt(1)),r=i(t.charCodeAt(2)),s=i(t.charCodeAt(3)),o=i(t.charCodeAt(4));return new e(new Kr(16*n+n,16*r+r,16*s+s,(16*o+o)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(Vr||(Vr={}));const Qr=/\bMARK:\s*(.*)$/d,Jr=/^-+|-+$/g;function Yr(e,t){var n;let i=[];if(t.findRegionSectionHeaders&&(null===(n=t.foldingRules)||void 0===n?void 0:n.markers)){const n=function(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const i=e.getLineContent(r),s=i.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:r,startColumn:s[0].length+1,endLineNumber:r,endColumn:i.length+1};if(e.endColumn>e.startColumn){const t={range:e,...Zr(i.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);i=i.concat(n)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++){Xr(e.getLineContent(i),i,t)}return t}(e);i=i.concat(t)}return i}function Xr(e,t,n){Qr.lastIndex=0;const i=Qr.exec(e);if(i){const e={startLineNumber:t,startColumn:i.indices[1][0]+1,endLineNumber:t,endColumn:i.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...Zr(i[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function Zr(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(Jr,""),hasSeparatorLine:t}}class es extends Kt{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const i=this._lines[n],r=this.offsetAt(new Rt(n+1,1)),s=i.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+r),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=Bt(e.column,qt(t),this._lines[e.lineNumber-1],0);return n?new At(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=r.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(i<t.length))break;r=t[i],o=n(r,e),s=0,i+=1}}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const s of i)r.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<i;s++)r.push(this._lines[s]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!Rt.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}class ts{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new es(pt.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,t,n){const i=this._getModel(e);return i?Di.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,t){const n=this._getModel(e);return n?Yr(n,t):[]}async computeDiff(e,t,n,i){const r=this._getModel(e),s=this._getModel(t);if(!r||!s)return null;return ts.computeDiff(r,s,n,i)}static computeDiff(e,t,n,i){const r="advanced"===i?Pr():Ir(),s=e.getLinesContent(),o=t.getLinesContent(),a=r.computeDiff(s,o,n);function l(e){return e.map((e=>{var t;return[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]}))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}async computeMoreMinimalEdits(e,t,n){const i=this._getModel(e);if(!i)return t;const r=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return At.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let o=0;for(let a=1;a<t.length;a++)At.getEndPosition(t[o].range).equals(At.getStartPosition(t[a].range))?(t[o].range=At.fromPositions(At.getStartPosition(t[o].range),At.getEndPosition(t[a].range)),t[o].text+=t[a].text):(o++,t[o]=t[a]);t.length=o+1;for(let{range:a,text:l,eol:u}of t){if("number"===typeof u&&(s=u),At.isEmpty(a)&&!l)continue;const e=i.getValueInRange(a);if(l=l.replace(/\r\n|\n|\r/g,i.eol),e===l)continue;if(Math.max(l.length,e.length)>ts._diffLimit){r.push({range:a,text:l});continue}const t=Be(e,l,n),o=i.offsetAt(At.lift(a).getStartPosition());for(const n of t){const e=i.positionAt(o+n.originalStart),t=i.positionAt(o+n.originalStart+n.originalLength),s={text:l.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};i.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"===typeof s&&r.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}async computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?Gt.computeLinks(e):[]}(t):null}async computeDefaultDocumentColors(e){const t=this._getModel(e);return t?Gr(t):null}async textualSuggest(e,t,n,i){const r=new L,s=new RegExp(n,i),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>ts._suggestionsLimit))break e}return{words:Array.from(o),duration:r.elapsed()}}async computeWordRanges(e,t,n,i){const r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=r.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async navigateValueSet(e,t,n,i,r){const s=this._getModel(e);if(!s)return null;const o=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const u=s.getValueInRange(l);return Qt.INSTANCE.navigateValueSet(t,a,l,u,n)}loadForeignModule(e,t,n){const i=function(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i={};for(const r of e)i[r]=n(r);return i}(n,((e,t)=>this._host.fhr(e,t))),r={host:i,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve(k(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(is){return Promise.reject(is)}}}ts._diffLimit=1e5,ts._suggestionsLimit=1e4,"function"===typeof importScripts&&(globalThis.monaco={editor:void 0,languages:void 0,CancellationTokenSource:Zt,Emitter:x,KeyCode:Yn,KeyMod:wi,Position:Rt,Range:At,Selection:mn,SelectionDirection:di,MarkerSeverity:Xn,MarkerTag:Zn,Uri:pt,Token:vn});let ns=!1;globalThis.onmessage=e=>{ns||function(e){if(ns)return;ns=!0;const t=new Oe((e=>{globalThis.postMessage(e)}),(t=>new ts(t,e)));globalThis.onmessage=e=>{t.onmessage(e.data)}}(null)}})();
\ No newline at end of file +(()=>{var e={9861:(e,t,n)=>{"use strict";function i(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function*r(e,t){let n,i;for(const r of e)void 0!==i&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function s(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function o(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function a(e,t=e=>e){const n=new Set;return e.filter((e=>{const i=t(e);return!n.has(i)&&(n.add(i),!0)}))}function l(e,t){return e.length>0?e[0]:t}function h(e,t,n){const i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function c(e,t){for(const n of t)e.push(n)}var u;function d(e,t){return(n,i)=>t(e(n),e(i))}n.d(t,{E4:()=>c,Fy:()=>l,Hw:()=>f,U9:()=>g,VE:()=>d,aI:()=>i,c1:()=>p,dM:()=>a,j3:()=>m,kj:()=>o,n:()=>r,nK:()=>h,pN:()=>s}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(u||(u={}));const g=(e,t)=>e-t;function f(e){return(t,n)=>-e(t,n)}class m{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class p{static{this.empty=new p((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new p((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new p((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((i=>((n||u.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0))),t}}},6041:(e,t,n)=>{"use strict";function i(e,t){const n=function(e,t,n=e.length-1){for(let i=n;i>=0;i--){if(t(e[i]))return i}return-1}(e,t);if(-1!==n)return e[n]}function r(e,t){const n=s(e,t);return-1===n?void 0:e[n]}function s(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?r=n+1:s=n}return r-1}function o(e,t){const n=a(e,t);return n===e.length?void 0:e[n]}function a(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?s=n:r=n+1}return r}n.d(t,{Uk:()=>i,XP:()=>o,hw:()=>a,iM:()=>s,lx:()=>r,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>o,Xo:()=>a,ok:()=>r,xb:()=>s});var i=n(4383);function r(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function o(e){e()||(e(),(0,i.dz)(new i.D7("Assertion Failed")))}function a(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>h,Qg:()=>a,$6:()=>c});n(8447);var i=n(4383),r=n(1234),s=n(1484),o=n(8067);Symbol("MicrotaskDelay");function a(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new i.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const r=n.setInterval((()=>{e()}),t);this.disposable=(0,s.s)((()=>{n.clearInterval(r),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class h{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let c,u;u="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,o._p)((()=>{if(n)return;const e=Date.now()+15,i={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(i))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const i=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let r=!1;return{dispose(){r||(r=!0,e.cancelIdleCallback(i))}}},c=e=>u(globalThis,e);var d;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(i){n(i)}}))}}(d||(d={}));class g{static fromArray(e){return new g((t=>{t.emitMany(e)}))}static fromPromise(e){return new g((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new g((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new g((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=g.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new g((async n=>{for await(const i of e)n.emitOne(t(i))}))}map(e){return g.map(this,e)}static filter(e,t){return new g((async n=>{for await(const i of e)t(i)&&n.emitOne(i)}))}filter(e){return g.filter(this,e)}static coalesce(e){return g.filter(e,(e=>!!e))}coalesce(){return g.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return g.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,Gs:()=>d,MB:()=>o,Sw:()=>c,bb:()=>h,gN:()=>l,pJ:()=>u});var i=n(1090);const r="undefined"!==typeof Buffer;new i.d((()=>new Uint8Array(256)));let s;class o{static wrap(e){return r&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return r?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function h(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function c(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function u(e,t){return e[t]}function d(e,t,n){e[n]=t}},1788:(e,t,n)=>{"use strict";function i(e){return e}n.d(t,{VV:()=>s,o5:()=>r});class r{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>a});var i=n(1234);const r=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(s||(s={}));class o{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?r:(this._emitter||(this._emitter=new i.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var i=n(631);const r=Object.create(null);function s(e,t){if((0,i.Kg)(t)){const n=r[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return r[e]=t,{id:e}}const o={...{add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),gitPullRequestLabel:s("git-pull-request-label",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),terminalDecorationSuccess:s("terminal-decoration-success",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circleOutline:s("circle-outline",60092),circle:s("circle",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:s("terminal-decoration-incomplete",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),diffSidebyside:s("diff-sidebyside",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),compareChanges:s("compare-changes",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),terminalDecorationMark:s("terminal-decoration-mark",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),debugAlt:s("debug-alt",60305),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),issueClosed:s("issue-closed",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),export:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnknown:s("workspace-unknown",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracket:s("bracket",60175),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newline:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),terminalDecorationError:s("terminal-decoration-error",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),blank:s("blank",60419),heartFilled:s("heart-filled",60420),map:s("map",60421),mapHorizontal:s("map-horizontal",60421),foldHorizontal:s("fold-horizontal",60421),mapFilled:s("map-filled",60422),mapHorizontalFilled:s("map-horizontal-filled",60422),foldHorizontalFilled:s("fold-horizontal-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsdownFilled:s("thumbsdown-filled",60435),thumbsupFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),repoFetch:s("repo-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),share:s("share",60453),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),vscode:s("vscode",60457),vscodeInsiders:s("vscode-insiders",60458),codeOss:s("code-oss",60459),runCoverage:s("run-coverage",60460),runAllCoverage:s("run-all-coverage",60461),coverage:s("coverage",60462),githubProject:s("github-project",60463),mapVertical:s("map-vertical",60464),foldVertical:s("fold-vertical",60464),mapVerticalFilled:s("map-vertical-filled",60465),foldVerticalFilled:s("fold-vertical-filled",60465),goToSearch:s("go-to-search",60466),percentage:s("percentage",60467),sortPercentage:s("sort-percentage",60467),attach:s("attach",60468)},...{dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left"),dropDownButton:s("drop-down-button",60084),symbolCustomColor:s("symbol-customcolor",60252),exportIcon:s("export",60332),workspaceUnspecified:s("workspace-unspecified",60355),newLine:s("newline",60394),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),gitFetch:s("git-fetch",60445),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),debugBreakpointPending:s("debug-breakpoint-pending",60377)}}},7661:(e,t,n)=>{"use strict";function i(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>a,bU:()=>r,hB:()=>s});class r{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class s{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,o=Math.max(t,n,i),a=Math.min(t,n,i);let l=0,h=0;const c=(a+o)/2,u=o-a;if(u>0){switch(h=Math.min(c<=.5?u/(2*c):u/(2-2*c),1),o){case t:l=(n-i)/u+(n<i?6:0);break;case n:l=(i-t)/u+2;break;case i:l=(t-n)/u+4}l*=60,l=Math.round(l)}return new s(l,h,c,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:o}=e;let a,l,h;if(0===n)a=l=h=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;a=s._hue2rgb(r,e,t+1/3),l=s._hue2rgb(r,e,t),h=s._hue2rgb(r,e,t-1/3)}return new r(Math.round(255*a),Math.round(255*l),Math.round(255*h),o)}}class o{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=r-Math.min(t,n,i),a=0===r?0:s/r;let l;return l=0===s?0:r===t?((n-i)/s%6+6)%6:r===n?(i-t)/s+2:(t-n)/s+4,new o(Math.round(60*l),a,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:s}=e,o=i*n,a=o*(1-Math.abs(t/60%2-1)),l=i-o;let[h,c,u]=[0,0,0];return t<60?(h=o,c=a):t<120?(h=a,c=o):t<180?(c=o,u=a):t<240?(c=a,u=o):t<300?(h=a,u=o):t<=360&&(h=o,u=a),h=Math.round(255*(h+l)),c=Math.round(255*(c+l)),u=Math.round(255*(u+l)),new r(h,c,u,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&r.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return i(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(t,n,i,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-n),e.rgba.b-s*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}static{this.white=new a(new r(255,255,255,1))}static{this.black=new a(new r(0,0,0,1))}static{this.red=new a(new r(255,0,0,1))}static{this.blue=new a(new r(0,0,255,1))}static{this.green=new a(new r(0,255,0,1))}static{this.cyan=new a(new r(0,255,255,1))}static{this.lightgrey=new a(new r(211,211,211,1))}static{this.transparent=new a(new r(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function i(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new r(n,s,o,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),a=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new r(n,s,o,a/255))}if(4===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3));return new e(new r(16*n+n,16*s+s,16*o+o))}if(5===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3)),a=i(t.charCodeAt(4));return new e(new r(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>g,EM:()=>u,Qg:()=>h,cU:()=>s,dz:()=>r,iH:()=>c});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(d.isErrorNoTelemetry(e))throw new d(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){a(e)||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:d.isErrorNoTelemetry(e)}}return e}const o="Canceled";function a(e){return e instanceof l||e instanceof Error&&e.name===o&&e.message===o}class l extends Error{constructor(){super(o),this.name=this.message}}function h(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function c(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class u extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class d extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof d)return e;const t=new d;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class g extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,g.prototype)}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>o,vl:()=>f});var i=n(4383),r=n(1484),s=(n(8925),n(8381));var o;!function(e){function t(e){false}function n(e){return(t,n=null,i)=>{let r,s=!1;return r=e((e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)}),null,i),s&&r.dispose(),r}}function i(e,t,n){return o(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)),n)}function s(e,t,n){return o(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)),n)}function o(e,n){let i;const r={onWillAddFirstListener(){i=e(s.fire,s)},onDidRemoveLastListener(){i?.dispose()}};n||t();const s=new f(r);return n?.add(s),s.event}function a(e,n,i=100,r=!1,s=!1,o,a){let l,h,c,u,d=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{d++,h=n(h,e),r&&!c&&(m.fire(h),h=void 0),u=()=>{const e=h;h=void 0,c=void 0,(!r||d>1)&&m.fire(e),d=0},"number"===typeof i?(clearTimeout(c),c=setTimeout(u,i)):void 0===c&&(c=0,queueMicrotask(u))}))},onWillRemoveListener(){s&&d>0&&u?.()},onDidRemoveLastListener(){u=void 0,l.dispose()}};a||t();const m=new f(g);return a?.add(m),m.event}e.None=()=>r.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=i,e.forEach=function(e,t,n){return o(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)),n)},e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,r.qE)(...e.map((e=>e((e=>t.call(n,e)))))),i)},e.reduce=function(e,t,n,r){let s=n;return i(e,(e=>(s=t(s,e),s)),r)},e.debounce=a,e.accumulate=function(t,n=0,i){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,i)},e.latch=function(e,t=(e,t)=>e===t,n){let i,r=!0;return s(e,(e=>{const n=r||!t(e,i);return r=!1,i=e,n}),n)},e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,(e=>!n(e)),i)]},e.buffer=function(e,t=!1,n=[],i){let r=n.slice(),s=e((e=>{r?r.push(e):a.fire(e)}));i&&i.add(s);const o=()=>{r?.forEach((e=>a.fire(e))),r=null},a=new f({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),i&&i.add(s))},onDidAddFirstListener(){r&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return i&&i.add(a),a.event},e.chain=function(e,t){return(n,i,r)=>{const s=t(new h);return e((function(e){const t=s.evaluate(e);t!==l&&n.call(i,t)}),void 0,r)}};const l=Symbol("HaltChainable");class h{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:l)),this}reduce(e,t){let n=t;return this.steps.push((t=>(n=e(n,t),n))),this}latch(e=(e,t)=>e===t){let t,n=!0;return this.steps.push((i=>{const r=n||!e(i,t);return n=!1,t=i,r?i:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new f({onWillAddFirstListener:()=>e.on(t,i),onDidRemoveLastListener:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new f({onWillAddFirstListener:()=>e.addEventListener(t,i),onDidRemoveLastListener:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new f;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class c{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new f(i),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new c(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,i)=>{let s=0,o=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return i instanceof r.Cm?i.add(l):Array.isArray(i)&&i.push(l),l}}}(o||(o={}));class a{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${a._idPool++}`,a.all.add(this)}start(e){this._stopWatch=new s.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,i]=this.getMostFrequentStack(),r=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${i}):`;console.warn(r),console.warn(e);const s=new c(r,e);this._errorHandler(s)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,i]of this._stacks)(!e||t<i)&&(e=[n,i],t=i);return e}}class h{static create(){const e=new Error;return new h(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class c extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class u extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class d{constructor(e){this.value=e}}let g;class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??i.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new a(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new u(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||i.dz)(n),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const s=new d(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(s.stack=h.create(),o=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof d?(this._deliveryQueue??=new m,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,r.s)((()=>{g?.unregister(a),o?.(),this._removeListener(s)}));if(n instanceof r.Cm?n.add(a):Array.isArray(n)&&n.push(a),g){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);g.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const i=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:i&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||i.dz;if(n)try{e.value(t)}catch(r){n(r)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof d)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}class m{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>o,Zn:()=>l,_1:()=>h,kb:()=>a});var i=n(8821),r=(n(8067),n(1508));function s(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,i.SA.sep)}function a(e){return-1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=i.SA.sep){if(!e)return"";const n=e.length,r=e.charCodeAt(0);if(s(r)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let i=3;const r=i;for(;i<n&&!s(e.charCodeAt(i));i++);if(r!==i&&!s(e.charCodeAt(i+1)))for(i+=1;i<n;i++)if(s(e.charCodeAt(i)))return e.slice(0,i+1).replace(/[\\/]/g,t)}return t}if(c(r)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<n;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1);return""}function h(e,t,n,s=i.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,r.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function c(e){return e>=65&&e<=90||e>=97&&e<=122}},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>T,qg:()=>A});var i=n(1940),r=n(9326),s=n(4320),o=n(8821),a=n(8067),l=n(1508);const h="**",c="/",u="[/\\\\]",d="[^/\\\\]",g=/\//g;function f(e,t){switch(e){case 0:return"";case 1:return`${d}*?`;default:return`(?:${u}|${d}+${u}${t?`|${u}${d}+`:""})*?`}}function m(e,t){if(!e)return[];const n=[];let i=!1,r=!1,s="";for(const o of e){switch(o){case t:if(!i&&!r){n.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1}s+=o}return s&&n.push(s),n}function p(e){if(!e)return"";let t="";const n=m(e,c);if(n.every((e=>e===h)))t=".*";else{let e=!1;n.forEach(((i,r)=>{if(i===h){if(e)return;t+=f(2,r===n.length-1)}else{let e=!1,s="",o=!1,a="";for(const n of i)if("}"!==n&&e)s+=n;else if(!o||"]"===n&&a)switch(n){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const n=`(?:${m(s,",").map((e=>p(e))).join("|")})`;t+=n,e=!1,s="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=d;continue;case"*":t+=f(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||a?n===c?"":(0,l.bm)(n):"^",a+=e}r<n.length-1&&(n[r+1]!==h||r+2<n.length)&&(t+=u)}e=i===h}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,b=/^\*\*\/([\w\.-]+)\/?$/,k=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,v=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,C=/^\*\*((\/[\w\.-]+)+)\/?$/,L=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,y=new s.qK(1e4),w=function(){return!1},S=function(){return null};function x(e,t){if(!e)return S;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const i=`${n}_${!!t.trimForExclusions}`;let r,s=y.get(i);return s||(s=_.test(n)?function(e,t){return function(n,i){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(r=b.exec(N(n,t)))?function(e,t){const n=`/${e}`,i=`\\${e}`,r=function(r,s){return"string"!==typeof r?null:s?s===e?t:null:r===e||r.endsWith(n)||r.endsWith(i)?t:null},s=[e];return r.basenames=s,r.patterns=[t],r.allBasenames=s,r}(r[1],n):(t.trimForExclusions?v:k).test(n)?function(e,t){const n=D(e.slice(1,-1).split(",").map((e=>x(e,t))).filter((e=>e!==S)),e),i=n.length;if(!i)return S;if(1===i)return n[0];const r=function(t,i){for(let r=0,s=n.length;r<s;r++)if(n[r](t,i))return e;return null},s=n.find((e=>!!e.allBasenames));s&&(r.allBasenames=s.allBasenames);const o=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(r.allPaths=o);return r}(n,t):(r=C.exec(N(n,t)))?I(r[1].substr(1),n,!0):(r=L.exec(N(n,t)))?I(r[1],n,!1):function(e){try{const t=new RegExp(`^${p(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return S}}(n),y.set(i,s)),E(s,e)}function E(e,t){if("string"===typeof t)return e;const n=function(n,i){return(0,r._1)(n,t.base,!a.j9)?e((0,l.NB)(n.substr(t.base.length),o.Vn),i):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function N(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function I(e,t,n){const i=o.Vn===o.SA.sep,r=i?e:e.replace(g,o.Vn),s=o.Vn+r,a=o.SA.sep+e;let l;return l=n?function(n,o){return"string"!==typeof n||n!==r&&!n.endsWith(s)&&(i||n!==e&&!n.endsWith(a))?null:t}:function(n,s){return"string"!==typeof n||n!==r&&(i||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function T(e,t,n){return!(!e||"string"!==typeof t)&&A(e)(t,void 0,n)}function A(e,t={}){if(!e)return w;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=x(e,t);if(n===S)return w;const i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return function(e,t){const n=D(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return S;const r=x(e,n);if(r===S)return S;if("boolean"===typeof t)return r;if(t){const n=t.when;if("string"===typeof n){const t=(t,s,o,a)=>{if(!a||!r(t,s))return null;const l=a(n.replace("$(basename)",(()=>o)));return(0,i.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return r}(n,e[n],t))).filter((e=>e!==S))),r=n.length;if(!r)return S;if(!n.some((e=>!!e.requiresSiblings))){if(1===r)return n[0];const e=function(e,t){let r;for(let s=0,o=n.length;s<o;s++){const o=n[s](e,t);if("string"===typeof o)return o;(0,i.Qg)(o)&&(r||(r=[]),r.push(o))}return r?(async()=>{for(const e of r){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const s=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,r){let s,a;for(let l=0,h=n.length;l<h;l++){const h=n[l];h.requiresSiblings&&r&&(t||(t=(0,o.P8)(e)),s||(s=t.substr(0,t.length-(0,o.LC)(e).length)));const c=h(e,t,s,r);if("string"===typeof c)return c;(0,i.Qg)(c)&&(a||(a=[]),a.push(c))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=n.find((e=>!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(s.allPaths=l);return s}(e,t)}function D(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const i=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let r;if(t){r=[];for(let e=0,n=i.length;e<n;e++)r.push(t)}else r=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const s=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=i.indexOf(t);return-1!==n?r[n]:null};s.basenames=i,s.patterns=r,s.allBasenames=i;const o=e.filter((e=>!e.basenames));return o.push(s),o}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>o,sN:()=>r,v7:()=>c});var i=n(1508);function r(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,i=s(104579,i=t),n.reduce(((e,t)=>r(t,e)),i)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=o(n,t),r(e[n],t))),t)}(e,t);case"string":return o(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,i}function s(e,t){return(t<<5)-t+e|0}function o(e,t){t=s(149417,t);for(let n=0,i=e.length;n<i;n++)t=s(e.charCodeAt(n),t);return t}function a(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function l(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function h(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class c{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(r=a,s=-1,a=0):(r=e.charCodeAt(0),s=0);;){let l=r;if(i.pc(r)){if(!(s+1<t)){a=r;break}{const t=e.charCodeAt(s+1);i.LJ(t)?(s++,l=i.z_(r,t)):l=65533}}else i.LJ(r)&&(l=65533);if(o=this._push(n,o,l),s++,!(s<t))break;r=e.charCodeAt(s)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=c._bigBlock32,t=this._buffDV;for(let a=0;a<64;a+=4)e.setUint32(a,t.getUint32(a,!1),!1);for(let c=64;c<320;c+=4)e.setUint32(c,a(e.getUint32(c-12,!1)^e.getUint32(c-32,!1)^e.getUint32(c-56,!1)^e.getUint32(c-64,!1),1),!1);let n,i,r,s=this._h0,o=this._h1,l=this._h2,h=this._h3,u=this._h4;for(let c=0;c<80;c++)c<20?(n=o&l|~o&h,i=1518500249):c<40?(n=o^l^h,i=1859775393):c<60?(n=o&l|o&h|l&h,i=2400959708):(n=o^l^h,i=3395469782),r=a(s,5)+n+u+i+e.getUint32(4*c,!1)&4294967295,u=h,h=l,l=a(o,30),o=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+u&4294967295}}},2522:(e,t,n)=>{"use strict";var i;n.d(t,{f:()=>i}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*i(e){yield e}e.empty=function(){return n},e.single=i,e.wrap=function(e){return t(e)?e:i(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const i of e)if(t(i,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.flatMap=function*(e,t){let n=0;for(const i of e)yield*t(i,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let i=n;for(const r of e)i=t(i,r);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(i||(i={}))},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});class i{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1484:(e,t,n)=>{"use strict";function i(e,t){const n=this;let i,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}n.d(t,{jG:()=>g,$w:()=>m,Cm:()=>d,HE:()=>f,qE:()=>c,AS:()=>h,VD:()=>a,s:()=>u,Ay:()=>o});var r=n(2522);let s=null;function o(e){return s?.trackDisposable(e),e}function a(e){s?.markAsDisposed(e)}function l(e,t){s?.setParent(e,t)}function h(e){if(r.f.is(e)){const n=[];for(const i of e)if(i)try{i.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function c(...e){const t=u((()=>h(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function u(e){const t=o({dispose:i((()=>{a(t),e()}))});return t}class d{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{h(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?d.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class g{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new d,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class f{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class m{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{h(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});class i{static{this.Undefined=new i(void 0)}constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},4320:(e,t,n)=>{"use strict";var i,r;n.d(t,{cO:()=>c,db:()=>u,fT:()=>o,qK:()=>h});class s{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[i]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(i=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[r]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends a{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class h extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class c{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class u{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});const i=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>i,v$:()=>h,zl:()=>d});var i,r=n(4383),s=n(8067),o=n(1508),a=n(9400),l=n(8821);function h(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(i||(i={}));const c=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,i.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(c){return r.dz(c),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const o=this._ports[t],l=this._connectionTokens[t];let h=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(h+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:i.vscodeRemoteResource,authority:`${n}:${o}`,path:this._remoteResourcesPath,query:h})}};class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===i.vscodeRemote?c.rewrite(e):e.scheme!==i.file||!s.ib&&s.lg!==`${i.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:i.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=l.fj(t,e);return a.r.file(n)}return a.r.parse(t.toUrl(e))}}const d=new u;var g;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let i;"string"===typeof e?i=new URL(e).searchParams:e instanceof URL?i=e.searchParams:a.r.isUri(e)&&(i=new URL(e.toString(!0)).searchParams);const r=i?.get(n);if(r)return t.get(r)},e.addSearchParam=function(e,t,i){if(!globalThis.crossOriginIsolated)return;const r=t&&i?"3":i?"2":"1";e instanceof URLSearchParams?e.set(n,r):e[n]=r}}(g||(g={}))},146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>r,aI:()=>i,kT:()=>s});Object.prototype.hasOwnProperty;function i(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else{const s=[];for(r in e)s.push(r);s.sort();const o=[];for(r in t)o.push(r);if(o.sort(),!i(s,o))return!1;for(n=0;n<s.length;n++)if(!i(e[s[n]],t[s[n]]))return!1}return!0}function r(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function s(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i={};for(const r of e)i[r]=n(r);return i}},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>N,pD:()=>E,LC:()=>I,fj:()=>w,S8:()=>y,SA:()=>L,V8:()=>x,hd:()=>S,Vn:()=>T,IN:()=>v});var i=n(8067);let r;const s=globalThis.vscode;if("undefined"!==typeof s&&"undefined"!==typeof s.process){const e=s.process;r={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else r="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return i.uF?"win32":i.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=r.cwd,a=(r.env,r.platform),l=46,h=47,c=92,u=58;class d extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function g(e,t){if("string"!==typeof e)throw new d(t,"string",e)}const f="win32"===a;function m(e){return e===h||e===c}function p(e){return e===h}function _(e){return e>=65&&e<=90||e>=97&&e<=122}function b(e,t,n,i){let r="",s=0,o=-1,a=0,c=0;for(let u=0;u<=e.length;++u){if(u<e.length)c=e.charCodeAt(u);else{if(i(c))break;c=h}if(i(c)){if(o===u-1||1===a);else if(2===a){if(r.length<2||2!==s||r.charCodeAt(r.length-1)!==l||r.charCodeAt(r.length-2)!==l){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",s=0):(r=r.slice(0,e),s=r.length-1-r.lastIndexOf(n)),o=u,a=0;continue}if(0!==r.length){r="",s=0,o=u,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(o+1,u)}`:r=e.slice(o+1,u),s=u-o-1;o=u,a=0}else c===l&&-1!==a?++a:a=-1}return r}function k(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new d(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${r=t.ext,r?`${"."===r[0]?"":"."}${r}`:""}`;var r;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const v={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let s;if(r>=0){if(s=e[r],g(s,`paths[${r}]`),0===s.length)continue}else 0===t.length?s=o():(s={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||o(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===c)&&(s=`${t}\\`));const a=s.length;let l=0,h="",d=!1;const f=s.charCodeAt(0);if(1===a)m(f)&&(l=1,d=!0);else if(m(f))if(d=!0,m(s.charCodeAt(1))){let e=2,t=e;for(;e<a&&!m(s.charCodeAt(e));)e++;if(e<a&&e!==t){const n=s.slice(t,e);for(t=e;e<a&&m(s.charCodeAt(e));)e++;if(e<a&&e!==t){for(t=e;e<a&&!m(s.charCodeAt(e));)e++;e!==a&&e===t||(h=`\\\\${n}\\${s.slice(t,e)}`,l=e)}}}else l=1;else _(f)&&s.charCodeAt(1)===u&&(h=s.slice(0,2),l=2,a>2&&m(s.charCodeAt(2))&&(d=!0,l=3));if(h.length>0)if(t.length>0){if(h.toLowerCase()!==t.toLowerCase())continue}else t=h;if(i){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,i=d,d&&t.length>0)break}return n=b(n,!i,"\\",m),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return p(s)?"\\":e;if(m(s))if(r=!0,m(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!m(e.charCodeAt(r));)r++;if(r<t&&r!==s){const o=e.slice(s,r);for(s=r;r<t&&m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!m(e.charCodeAt(r));)r++;if(r===t)return`\\\\${o}\\${e.slice(s)}\\`;r!==s&&(n=`\\\\${o}\\${e.slice(s,r)}`,i=r)}}}else i=1;else _(s)&&e.charCodeAt(1)===u&&(n=e.slice(0,2),i=2,t>2&&m(e.charCodeAt(2))&&(r=!0,i=3));let o=i<t?b(e.slice(i),!r,"\\",m):"";return 0!==o.length||r||(o="."),o.length>0&&m(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return m(n)||t>2&&_(n)&&e.charCodeAt(1)===u&&m(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){const i=e[s];g(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&m(n.charCodeAt(0))){++r;const e=n.length;e>1&&m(n.charCodeAt(1))&&(++r,e>2&&(m(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&m(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return v.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const n=v.resolve(e),i=v.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===c;)r++;let s=e.length;for(;s-1>r&&e.charCodeAt(s-1)===c;)s--;const o=s-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===c;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===c;)l--;const h=l-a,u=o<h?o:h;let d=-1,f=0;for(;f<u;f++){const n=e.charCodeAt(r+f);if(n!==t.charCodeAt(a+f))break;n===c&&(d=f)}if(f!==u){if(-1===d)return i}else{if(h>u){if(t.charCodeAt(a+f)===c)return i.slice(a+f+1);if(2===f)return i.slice(a+f)}o>u&&(e.charCodeAt(r+f)===c?d=f:2===f&&(d=3)),-1===d&&(d=0)}let m="";for(f=r+d+1;f<=s;++f)f!==s&&e.charCodeAt(f)!==c||(m+=0===m.length?"..":"\\..");return a+=d,m.length>0?`${m}${i.slice(a,l)}`:(i.charCodeAt(a)===c&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=v.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===c){if(t.charCodeAt(1)===c){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(_(t.charCodeAt(0))&&t.charCodeAt(1)===u&&t.charCodeAt(2)===c)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return m(r)?e:".";if(m(r)){if(n=i=1,m(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!m(e.charCodeAt(r));)r++;if(r===t)return e;r!==s&&(n=i=r+1)}}}}else _(r)&&e.charCodeAt(1)===u&&(n=t>2&&m(e.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let a=t-1;a>=i;--a)if(m(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&g(t,"suffix"),g(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&_(e.charCodeAt(0))&&e.charCodeAt(1)===u&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(m(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(m(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){g(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===u&&_(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(m(t)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1),t===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:k.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return m(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(m(r)){if(i=1,m(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!m(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&m(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!m(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(_(r)&&e.charCodeAt(1)===u){if(n<=2)return t.root=t.dir=e,t;if(i=2,m(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let s=-1,o=i,a=-1,h=!0,c=e.length-1,d=0;for(;c>=i;--c)if(r=e.charCodeAt(c),m(r)){if(!h){o=c+1;break}}else-1===a&&(h=!1,a=c+1),r===l?-1===s?s=c:1!==d&&(d=1):-1!==s&&(d=-1);return-1!==a&&(-1===s||0===d||1===d&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==i?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},C=(()=>{if(f){const e=/\\/g;return()=>{const t=o().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>o()})(),L={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:C();g(r,`paths[${i}]`),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===h)}return t=b(t,!n,"/",p),n?`/${t}`:t.length>0?t:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h,n=e.charCodeAt(e.length-1)===h;return 0===(e=b(e,!t,"/",p)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(g(e,"path"),e.length>0&&e.charCodeAt(0)===h),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];g(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":L.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=L.resolve(e))===(t=L.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,s=i<r?i:r;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===h&&(o=a)}if(a===s)if(r>s){if(t.charCodeAt(1+a)===h)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>s&&(e.charCodeAt(1+a)===h?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==h||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===h){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===h){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===h){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){g(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==h)-1===i&&(r=!1,i=o+1),a===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:k.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===h;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,c=e.length-1,u=0;for(;c>=i;--c){const t=e.charCodeAt(c);if(t!==h)-1===o&&(a=!1,o=c+1),t===l?-1===r?r=c:1!==u&&(u=1):-1!==r&&(u=-1);else if(!a){s=c+1;break}}if(-1!==o){const i=0===s&&n?1:s;-1===r||0===u||1===u&&r===o-1&&r===s+1?t.base=t.name=e.slice(i,o):(t.name=e.slice(i,r),t.base=e.slice(i,o),t.ext=e.slice(r,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};L.win32=v.win32=v,L.posix=v.posix=L;const y=f?v.normalize:L.normalize,w=f?v.join:L.join,S=f?v.resolve:L.resolve,x=f?v.relative:L.relative,E=f?v.dirname:L.dirname,N=f?v.basename:L.basename,I=f?v.extname:L.extname,T=f?v.sep:L.sep},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>P,HZ:()=>I,OS:()=>M,UP:()=>W,_p:()=>R,cm:()=>F,gm:()=>z,ib:()=>N,j9:()=>E,lg:()=>T,nr:()=>V,uF:()=>S,zx:()=>x});var i=n(8209);const r="en";let s,o,a=!1,l=!1,h=!1,c=!1,u=!1,d=!1,g=!1,f=!1,m=!1,p=!1,_=null,b=null,k=null;const v=globalThis;let C;"undefined"!==typeof v.vscode&&"undefined"!==typeof v.vscode.process?C=v.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(C=process);const L="string"===typeof C?.versions?.electron,y=L&&"renderer"===C?.type;if("object"===typeof C){a="win32"===C.platform,l="darwin"===C.platform,h="linux"===C.platform,c=h&&!!C.env.SNAP&&!!C.env.SNAP_REVISION,g=L,m=!!C.env.CI||!!C.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=r,_=r;const e=C.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);s=t.userLocale,b=t.osLocale,_=t.resolvedLanguage||r,k=t.languagePack?.translationsConfigFile}catch(q){}u=!0}else"object"!==typeof navigator||y?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,f=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=o.indexOf("Linux")>=0,p=o?.indexOf("Mobi")>=0,d=!0,_=i.i8()||r,s=navigator.language.toLowerCase(),b=s);let w=0;l?w=1:a?w=3:h&&(w=2);const S=a,x=l,E=h,N=u,I=d,T=d&&"function"===typeof v.importScripts?v.origin:void 0,A=o,D="function"===typeof v.postMessage&&!v.importScripts,R=(()=>{if(D){const e=[];v.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void i.callback()}}));let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),v.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})(),M=l||f?2:a?1:3;let O=!0,B=!1;function F(){if(!B){B=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);O=513===t[0]}return O}const P=!!(A&&A.indexOf("Chrome")>=0),z=!!(A&&A.indexOf("Firefox")>=0),V=!!(!P&&A&&A.indexOf("Safari")>=0),W=!!(A&&A.indexOf("Edg/")>=0);A&&A.indexOf("Android")},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>m,P8:()=>d});var i=n(9326),r=n(6456),s=n(8821),o=n(8067),a=n(1508),l=n(9400);function h(e){return(0,l.I)(e,!0)}class c{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===r.ny.file)return i._1(h(e),h(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(g(e.authority,t.authority))return i._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return d(e)||e.authority}basename(e){return s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===r.ny.file?t=l.r.file(s.pD(h(e))).path:(t=s.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===r.ny.file?l.r.file(s.S8(h(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!g(e.authority,t.authority))return;if(e.scheme===r.ny.file){const n=s.V8(h(e),h(t));return o.uF?i.TH(n):n}let n=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,a.length);e<t&&(n.charCodeAt(e)===a.charCodeAt(e)||n.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);n=a.substr(0,e)+n.substr(e)}return s.SA.relative(n,a)}resolvePath(e,t){if(e.scheme===r.ny.file){const n=l.r.file(s.hd(h(e),t));return e.with({authority:n.authority,path:n.path})}return t=i.kb(t),e.with({path:s.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=s.Vn){if(e.scheme===r.ny.file){const n=h(e);return n.length>i.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.Vn){return f(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let n=!1;if(e.scheme===r.ny.file){const r=h(e);n=void 0!==r&&r.length===i.Zn(r).length&&r[r.length-1]===t}else{t="/";const i=e.path;n=1===i.length&&47===i.charCodeAt(i.length-1)}return n||f(e,t)?e:e.with({path:e.path+"/"})}}const u=new c((()=>!1)),d=(new c((e=>e.scheme!==r.ny.file||!o.j9)),new c((e=>!0)),u.isEqual.bind(u),u.isEqualOrParent.bind(u),u.getComparisonKey.bind(u),u.basenameOrAuthority.bind(u),u.basename.bind(u)),g=(u.extname.bind(u),u.dirname.bind(u),u.joinPath.bind(u),u.normalizePath.bind(u),u.relativePath.bind(u),u.resolvePath.bind(u),u.isAbsolutePath.bind(u),u.isEqualAuthority.bind(u)),f=u.hasTrailingPathSeparator.bind(u);u.removeTrailingPathSeparator.bind(u),u.addTrailingPathSeparator.bind(u);var m;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,i]=e.split(":");t&&i&&n.set(t,i)}));const i=t.path.substring(0,t.path.indexOf(";"));return i&&n.set(e.META_DATA_MIME,i),n}}(m||(m={}))},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const i=globalThis.performance&&"function"===typeof globalThis.performance.now;class r{static create(e){return new r(e)}constructor(e){this._now=i&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>D,AV:()=>s,E_:()=>N,HG:()=>d,LJ:()=>L,LU:()=>B,NB:()=>l,OS:()=>h,Q_:()=>k,Ss:()=>M,UD:()=>f,Wv:()=>b,Z5:()=>w,_J:()=>A,aC:()=>T,bm:()=>a,eY:()=>c,jy:()=>o,km:()=>x,lT:()=>g,ne:()=>R,ns:()=>v,pc:()=>C,r_:()=>O,tk:()=>F,tl:()=>V,uz:()=>u,y_:()=>W,z_:()=>y});var i=n(1788),r=n(1090);function s(e){return!e||"string"!==typeof e||0===e.trim().length}function o(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function h(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function c(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function u(e){return e.split(/\r\n|\r|\n/)}function d(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function g(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function f(e,t){return e<t?-1:e>t?1:0}function m(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){const i=e.charCodeAt(n),s=t.charCodeAt(r);if(i<s)return-1;if(i>s)return 1}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function p(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){let o=e.charCodeAt(n),a=t.charCodeAt(r);if(o===a)continue;if(o>=128||a>=128)return m(e.toLowerCase(),t.toLowerCase(),n,i,r,s);_(o)&&(o-=32),_(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function _(e){return e>=97&&e<=122}function b(e){return e>=65&&e<=90}function k(e,t){return e.length===t.length&&0===p(e,t)}function v(e,t){const n=t.length;return!(t.length>e.length)&&0===p(e,t,0,n)}function C(e){return 55296<=e&&e<=56319}function L(e){return 56320<=e&&e<=57343}function y(e,t){return t-56320+(e-55296<<10)+65536}function w(e,t,n){const i=e.charCodeAt(n);if(C(i)&&n+1<t){const t=e.charCodeAt(n+1);if(L(t))return y(i,t)}return i}class S{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(L(n)&&t>1){const i=e.charCodeAt(t-2);if(C(i))return y(i,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=w(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class x{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new S(e,t)}nextGraphemeLength(){const e=z.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(P(i,r)){t.setOffset(n);break}i=r}return t.offset-n}prevGraphemeLength(){const e=z.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(P(r,i)){t.setOffset(n);break}i=r}return n-t.offset}eol(){return this._iterator.eol()}}let E;function N(e){return E||(E=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),E.test(e)}const I=/^[\t\n\r\x20-\x7E]*$/;function T(e){return I.test(e)}const A=/[\u2028\u2029]/;function D(e){return A.test(e)}function R(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function M(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const O=String.fromCharCode(65279);function B(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function F(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function P(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class z{static{this._INSTANCE=null}static getInstance(){return z._INSTANCE||(z._INSTANCE=new z),z._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}class V{static{this.ambiguousCharacterData=new r.d((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')))}static{this.cache=new i.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[i,r]of e)t.has(i)&&n.set(i,r);return n}const i=this.ambiguousCharacterData.value;let r,s=e.filter((e=>!e.startsWith("_")&&e in i));0===s.length&&(s=["_default"]);for(const a of s){r=n(r,t(i[a]))}const o=function(e,t){const n=new Map(e);for(const[i,r]of t)n.set(i,r);return n}(t(i._common),r);return new V(o)}))}static getInstance(e){return V.cache.get(Array.from(e))}static{this._locales=new r.d((()=>Object.keys(V.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return V._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}class W{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(W.getRawData())),this._data}static isInvisibleCharacter(e){return W.getData().has(e)}static get codePoints(){return W.getData()}}},631:(e,t,n)=>{"use strict";function i(e){return"string"===typeof e}function r(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){return"undefined"===typeof e}function o(e){return s(e)||null===e}n.d(t,{Gv:()=>r,Kg:()=>i,b0:()=>s,z:()=>o})},5152:(e,t,n)=>{"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>i,j:()=>r})},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>_,r:()=>u});var i=n(8821),r=n(8067);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const l="",h="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(e){return e instanceof u||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,i,r,c=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,c),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||l),this.query=i||l,this.fragment=r||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,c))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===i?i=this.path:null===i&&(i=l),void 0===r?r=this.query:null===r&&(r=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new g(t,n,i,r,s)}static parse(e,t=!1){const n=c.exec(e);return n?new g(n[2]||l,C(n[4]||l),C(n[5]||l),C(n[7]||l),C(n[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(r.uF&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new g("file",t,e,l,l)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=r.uF&&"file"===e.scheme?u.file(i.IN.join(_(e,!0),...t)).path:i.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new g(e);return t._formatted=e.external??null,t._fsPath=e._sep===d?e.fsPath??null:null,t}}return e}}const d=r.uF?1:void 0;class g extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const f={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,n){let i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=f[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function p(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=f[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function _(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r.uF&&(n=n.replace(/\//g,"\\")),n}function b(e,t){const n=t?p:m;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=h,i+=h),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),l&&(i+="#",i+=t?l:m(l,!1,!1)),i}function k(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+k(e.substr(3)):e}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(e){return e.match(v)?e.replace(v,(e=>k(e))):e}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>k,SimpleWorkerServer:()=>L,create:()=>y,logOnceWebWorkerWarning:()=>d});var i=n(4383),r=n(1234),s=n(1484),o=n(6456),a=n(8067),l=n(1508);const h="default",c="$initialize";let u=!1;function d(e){a.HZ&&(u||(u=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.method=i,this.args=r,this.type=0}}class f{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class m{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=i,this.arg=r,this.type=2}}class p{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class _{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class b{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const i=String(++this._lastSentReq);return new Promise(((r,s)=>{this._pendingReplies[i]={resolve:r,reject:s},this._send(new g(this._workerId,i,e,t,n))}))}listen(e,t,n){let i=null;const s=new r.vl({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new m(this._workerId,i,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new _(this._workerId,i)),i=null}});return s.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,i)=>("string"!==typeof i||n[i]||(C(i)?n[i]=t=>this.listen(e,i,t):v(i)?n[i]=this.listen(e,i,void 0):36===i.charCodeAt(0)&&(n[i]=async(...n)=>(await(t?.()),this.sendMessage(e,i,n)))),n[i])};return new Proxy(Object.create(null),n)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new f(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,i.cU)(e.detail)),this._send(new f(this._workerId,t,void 0,(0,i.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new p(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class k extends s.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,i.dz)(e)}))),this._protocol=new b({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const r=globalThis.require;"undefined"!==typeof r&&"function"===typeof r.getConfig?n=r.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(h,c,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(h,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const i=this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on main thread`);if(C(t)){const r=i[t].call(i,n);if("function"!==typeof r)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return r}if(v(t)){const n=i[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function v(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function C(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class L{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new b({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===h&&t===c)return this.initialize(n[0],n[1],n[2]);const i=e===h?this._requestHandler:this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=e===h?this._requestHandler:this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on worker thread`);if(C(t)){const e=i[t].call(i,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(v(t)){const e=i[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,i){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${i}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function y(e){return new L(e,null)}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var i=n(5152);class r{constructor(e){const t=(0,i.W)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,i.W)(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>_,aZ:()=>p,l5:()=>C,lQ:()=>k,s7:()=>w,sH:()=>L,sN:()=>b,ss:()=>v,yI:()=>m,zp:()=>y});var i=n(8209),r=n(7661),s=n(5845),o=n(5724);const a=(0,s.x1A)("editor.lineHighlightBackground",null,i.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,s.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.b1q},i.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,s.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},i.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,s.x1A)("editor.symbolHighlightBackground",{dark:s.Ubg,light:s.Ubg,hcDark:null,hcLight:null},i.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,s.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:r.Q1.black,hcDark:r.Q1.white,hcLight:"#0F4A85"},i.kg("caret","Color of the editor cursor."))),h=(0,s.x1A)("editorCursor.background",null,i.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),c=((0,s.x1A)("editorMultiCursor.primary.foreground",l,i.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.primary.background",h,i.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorMultiCursor.secondary.foreground",l,i.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.secondary.background",h,i.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},i.kg("editorWhitespaces","Color of whitespace characters in the editor."))),u=((0,s.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorLineNumbers","Color of editor line numbers.")),(0,s.x1A)("editorIndentGuide.background",c,i.kg("editorIndentGuides","Color of the editor indentation guides."),!1,i.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),d=(0,s.x1A)("editorIndentGuide.activeBackground",c,i.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,i.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),g=((0,s.x1A)("editorIndentGuide.background1",u,i.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.background2","#00000000",i.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.background3","#00000000",i.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.background4","#00000000",i.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.background5","#00000000",i.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.background6","#00000000",i.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,s.x1A)("editorIndentGuide.activeBackground1",d,i.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.activeBackground2","#00000000",i.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.activeBackground3","#00000000",i.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.activeBackground4","#00000000",i.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.activeBackground5","#00000000",i.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.activeBackground6","#00000000",i.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,s.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.buw,hcLight:s.buw},i.kg("editorActiveLineNumber","Color of editor active line number"),!1,i.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),f=((0,s.x1A)("editorLineNumber.activeForeground",g,i.kg("editorActiveLineNumber","Color of editor active line number")),(0,s.x1A)("editorLineNumber.dimmedForeground",null,i.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,s.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:r.Q1.lightgrey,hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorRuler","Color of the editor rulers.")),(0,s.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},i.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,s.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},i.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,s.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.b1q,hcLight:s.b1q},i.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,s.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},i.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,s.x1A)("editorOverviewRuler.background",null,i.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,s.x1A)("editorGutter.background",s.YtV,i.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,s.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:s.b1q},i.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,s.x1A)("editorUnnecessaryCode.opacity",{dark:r.Q1.fromHex("#000a"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,s.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:r.Q1.fromHex("#292929").transparent(.8)},i.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,s.x1A)("editorGhostText.foreground",{dark:r.Q1.fromHex("#ffffff56"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,s.x1A)("editorGhostText.background",null,i.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new r.Q1(new r.bU(0,122,204,.6))),m=((0,s.x1A)("editorOverviewRuler.rangeHighlightForeground",f,i.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editorOverviewRuler.errorForeground",{dark:new r.Q1(new r.bU(255,18,18,.7)),light:new r.Q1(new r.bU(255,18,18,.7)),hcDark:new r.Q1(new r.bU(255,50,50,1)),hcLight:"#B5200D"},i.kg("overviewRuleError","Overview ruler marker color for errors."))),p=(0,s.x1A)("editorOverviewRuler.warningForeground",{dark:s.Hng,light:s.Hng,hcDark:s.Stt,hcLight:s.Stt},i.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),_=(0,s.x1A)("editorOverviewRuler.infoForeground",{dark:s.pOz,light:s.pOz,hcDark:s.IIb,hcLight:s.IIb},i.kg("overviewRuleInfo","Overview ruler marker color for infos.")),b=(0,s.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},i.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),k=(0,s.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},i.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),v=(0,s.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},i.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),C=(0,s.x1A)("editorBracketHighlight.foreground4","#00000000",i.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),L=(0,s.x1A)("editorBracketHighlight.foreground5","#00000000",i.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),y=(0,s.x1A)("editorBracketHighlight.foreground6","#00000000",i.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),w=(0,s.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new r.Q1(new r.bU(255,18,18,.8)),light:new r.Q1(new r.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},i.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,s.x1A)("editorBracketPairGuide.background1","#00000000",i.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background2","#00000000",i.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background3","#00000000",i.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background4","#00000000",i.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background5","#00000000",i.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background6","#00000000",i.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground1","#00000000",i.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground2","#00000000",i.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground3","#00000000",i.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground4","#00000000",i.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground5","#00000000",i.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground6","#00000000",i.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorUnicodeHighlight.border",s.Hng,i.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,s.x1A)("editorUnicodeHighlight.background",s.whs,i.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const n=e.getColor(s.YtV),i=e.getColor(a),r=i&&!i.isTransparent()?i:n;r&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${r}; }`)}))},4454:(e,t,n)=>{"use strict";function i(e){let t=0,n=0,i=0,r=0;for(let s=0,o=e.length;s<o;s++){const a=e.charCodeAt(s);13===a?(0===t&&(n=s),t++,s+1<o&&10===e.charCodeAt(s+1)?(r|=2,s++):r|=3,i=s+1):10===a&&(r|=1,0===t&&(n=s),t++,i=s+1)}return 0===t&&(n=e.length),[t,n,e.length-i,r]}n.d(t,{W:()=>i})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,S:()=>l});var i=n(4383),r=n(4444),s=n(6677),o=n(6041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new i.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)t=Math.min(t,e[i].startLineNumber),n=Math.max(n,e[i].endLineNumberExclusive);return new a(t,n)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new i.D7(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new a(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new s.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new s.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new r.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,i=0,r=null;for(;n<this._normalizedRanges.length||i<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&i<e._normalizedRanges.length){const t=this._normalizedRanges[n],r=e._normalizedRanges[i];t.startLineNumber<r.startLineNumber?(s=t,n++):(s=r,i++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[i],i++);null===r?r=s:r.endLineNumberExclusive>=s.startLineNumber?r=new a(r.startLineNumber,Math.max(r.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(r),r=s)}return null!==r&&t.push(r),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const i=[];let r=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>r&&i.push(new a(r,e.startLineNumber)),r=e.endLineNumberExclusive}return r<e.endLineNumberExclusive&&i.push(new a(r,e.endLineNumberExclusive)),new l(i)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,i=0;for(;n<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const r=this._normalizedRanges[n],s=e._normalizedRanges[i],o=r.intersect(s);o&&!o.isEmpty&&t.push(o),r.endLineNumberExclusive<s.endLineNumberExclusive?n++:i++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(4383);class r{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let i=n;for(;i<t.length&&t[i].start<=e.endExclusive;)i++;if(n===i)t.splice(n,0,e);else{const s=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[i-1].endExclusive);t.splice(n,i-n,new r(s,o))}}static tryCreate(e,t){if(!(e>t))return new r(e,t)}static ofLength(e){return new r(0,e)}static ofStartAndLength(e,t){return new r(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new i.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new r(this.start+e,this.endExclusive+e)}deltaStart(e){return new r(this.start+e,this.endExclusive)}deltaEnd(e){return new r(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new r(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new r(t,n)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new i.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new i.D7(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){return(0|e.column)-(0|t.column)}return n-i}clone(){return new i(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var i=n(3069);class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return r.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return r.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,h=t.endLineNumber,c=t.endColumn;return n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),s>h?(s=h,o=c):s===h&&(o=Math.min(o,c)),n>s||n===s&&i>o?null:new r(n,i,s,o)}equalsRange(e){return r.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return r.getEndPosition(this)}static getEndPosition(e){return new i.y(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){return(0|e.endColumn)-(0|t.endColumn)}return n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var i=n(3069),r=n(6677);class s extends r.Q{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new i.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new i.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new s(e,t,n,i):new s(n,i,e,t)}}},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var i=n(3069),r=n(6677);class s{static{this.zero=new s(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const i of e)"\n"===i?(t++,n=0):n++;return new s(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new r.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new r.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new i.y(e.lineNumber,e.column+this.columnCount):new i.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>o,Ld:()=>s,Th:()=>l});var i=n(2522),r=n(8925);const s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=s;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const a=new r.w;function l(e,t,n,r,s){if(t=o(t),s||(s=i.f.first(a)),n.length>s.maxLen){let i=e-s.maxLen/2;return i<0?i=0:r+=i,l(e,t,n=n.substring(i,e+s.maxLen/2),r,s)}const c=Date.now(),u=e-1-r;let d=-1,g=null;for(let i=1;!(Date.now()-c>=s.timeBudget);i++){const e=u-s.windowSize*i;t.lastIndex=Math.max(0,e);const r=h(t,n,u,d);if(!r&&g)break;if(g=r,e<=0)break;d=e}if(g){const e={word:g[0],startColumn:r+1+g.index,endColumn:r+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function h(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}a.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});class i{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),i=this.getFontStyle(e);let r=`color: ${t[n]};`;1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;");let s="";return 4&i&&(s+=" underline"),8&i&&(s+=" line-through"),s&&(r+=`text-decoration:${s};`),r}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>p,ou:()=>m,dG:()=>y,OB:()=>w});var i=n(9493),r=(n(9400),n(1234)),s=n(1484);class o{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new r.vl,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,s.s)((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();const n=new a(this,e,t);return this._factories.set(e,n),(0,s.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class a extends s.jG{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,h,c,u,d,g,f=n(8209);class m{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class p{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,i.W.symbolMethod),t.set(1,i.W.symbolFunction),t.set(2,i.W.symbolConstructor),t.set(3,i.W.symbolField),t.set(4,i.W.symbolVariable),t.set(5,i.W.symbolClass),t.set(6,i.W.symbolStruct),t.set(7,i.W.symbolInterface),t.set(8,i.W.symbolModule),t.set(9,i.W.symbolProperty),t.set(10,i.W.symbolEvent),t.set(11,i.W.symbolOperator),t.set(12,i.W.symbolUnit),t.set(13,i.W.symbolValue),t.set(15,i.W.symbolEnum),t.set(14,i.W.symbolConstant),t.set(15,i.W.symbolEnum),t.set(16,i.W.symbolEnumMember),t.set(17,i.W.symbolKeyword),t.set(27,i.W.symbolSnippet),t.set(18,i.W.symbolText),t.set(19,i.W.symbolColor),t.set(20,i.W.symbolFile),t.set(21,i.W.symbolReference),t.set(22,i.W.symbolCustomColor),t.set(23,i.W.symbolFolder),t.set(24,i.W.symbolTypeParameter),t.set(25,i.W.account),t.set(26,i.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=i.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let i=n.get(e);return"undefined"!==typeof i||t||(i=9),i}}(h||(h={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(c||(c={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(u||(u={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(g||(g={}));(0,f.kg)("Array","array"),(0,f.kg)("Boolean","boolean"),(0,f.kg)("Class","class"),(0,f.kg)("Constant","constant"),(0,f.kg)("Constructor","constructor"),(0,f.kg)("Enum","enumeration"),(0,f.kg)("EnumMember","enumeration member"),(0,f.kg)("Event","event"),(0,f.kg)("Field","field"),(0,f.kg)("File","file"),(0,f.kg)("Function","function"),(0,f.kg)("Interface","interface"),(0,f.kg)("Key","key"),(0,f.kg)("Method","method"),(0,f.kg)("Module","module"),(0,f.kg)("Namespace","namespace"),(0,f.kg)("Null","null"),(0,f.kg)("Number","number"),(0,f.kg)("Object","object"),(0,f.kg)("Operator","operator"),(0,f.kg)("Package","package"),(0,f.kg)("Property","property"),(0,f.kg)("String","string"),(0,f.kg)("Struct","struct"),(0,f.kg)("TypeParameter","type parameter"),(0,f.kg)("Variable","variable");var _,b,k,v,C;!function(e){const t=new Map;t.set(0,i.W.symbolFile),t.set(1,i.W.symbolModule),t.set(2,i.W.symbolNamespace),t.set(3,i.W.symbolPackage),t.set(4,i.W.symbolClass),t.set(5,i.W.symbolMethod),t.set(6,i.W.symbolProperty),t.set(7,i.W.symbolField),t.set(8,i.W.symbolConstructor),t.set(9,i.W.symbolEnum),t.set(10,i.W.symbolInterface),t.set(11,i.W.symbolFunction),t.set(12,i.W.symbolVariable),t.set(13,i.W.symbolConstant),t.set(14,i.W.symbolString),t.set(15,i.W.symbolNumber),t.set(16,i.W.symbolBoolean),t.set(17,i.W.symbolArray),t.set(18,i.W.symbolObject),t.set(19,i.W.symbolKey),t.set(20,i.W.symbolNull),t.set(21,i.W.symbolEnumMember),t.set(22,i.W.symbolStruct),t.set(23,i.W.symbolEvent),t.set(24,i.W.symbolOperator),t.set(25,i.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=i.W.symbolProperty),n}}(_||(_={}));class L{static{this.Comment=new L("comment")}static{this.Imports=new L("imports")}static{this.Region=new L("region")}static fromValue(e){switch(e){case"comment":return L.Comment;case"imports":return L.Imports;case"region":return L.Region}return new L(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(b||(b={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(k||(k={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(v||(v={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(C||(C={}));const y=new o,w=new o;var S;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(S||(S={}))},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});const i=(0,n(3591).u1)("languageService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>h});var i=n(8209),r=n(1234),s=n(6359),o=n(1939),a=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new r.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};s.O.add("editor.modesRegistry",l);const h="plaintext";l.registerLanguage({id:h,extensions:[".txt"],aliases:[i.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),s.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>i,Dg:()=>l,F4:()=>d,L5:()=>u,Wo:()=>c,X2:()=>a,ZS:()=>r,nk:()=>h,vd:()=>g});var i,r,s,o=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(i||(i={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(r||(r={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function h(e){return e&&"function"===typeof e.read}class c{constructor(e,t,n,i,r,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=s}}class u{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class d{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>u,W5:()=>p,hB:()=>f,dr:()=>d,wC:()=>m});var i=n(1508),r=n(4320),s=n(534);class o extends s.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,i=e.length;n<i;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const i of this._getIntlSegmenterWordsOnLine(e)){if(i.index>t)break;n=i}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const a=new r.qK(10);var l=n(3069),h=n(6677),c=n(6223);class u{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(10===i)return!0;if(92===i){if(t++,t>=n)break;const i=e.charCodeAt(t);if(110===i||114===i||87===i)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=i.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(r){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new c.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let i=a.get(n);return i||(i=new o(e,t),a.set(n,i)),i}(this.wordSeparators,[]):null,n?this.searchString:null)}}function d(e,t,n){if(!n)return new c.Dg(e,null);const i=[];for(let r=0,s=t.length;r<s;r++)i[r]=t[r];return new c.Dg(e,i)}class g{constructor(e){const t=[];let n=0;for(let i=0,r=e.length;i<r;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;for(;n<i;){const r=n+((i-n)/2|0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}class f{static findMatches(e,t,n,i,r){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,n,new p(s.wordSeparators,s.regex),i,r):this._doFindMatchesLineByLine(e,n,s,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,s){let o,a,l=0;if(i?(l=i.findLineFeedCountBeforeOffset(r),o=t+r+l):o=t+r,i){const e=i.findLineFeedCountBeforeOffset(r+s.length)-l;a=o+s.length+e}else a=o+s.length;const c=e.getPositionAt(o),u=e.getPositionAt(a);return new h.Q(c.lineNumber,c.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,n,i,r){const s=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new g(o):null,l=[];let h,c=0;for(n.reset(0);h=n.next(o);)if(l[c++]=d(this._getMultilineMatchRange(e,s,o,a,h.index,h[0]),h,i),c>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const s=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r);for(let l=t.startLineNumber+1;l<t.endLineNumber&&o<r;l++)o=this._findMatchesInLine(n,e.getLineContent(l),l,0,o,s,i,r);if(o<r){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,a,t.endLineNumber,0,o,s,i,r)}return s}static _findMatchesInLine(e,t,n,i,r,s,o,a){const l=e.wordSeparators;if(!o&&e.simpleSearch){const o=e.simpleSearch,u=o.length,d=t.length;let g=-u;for(;-1!==(g=t.indexOf(o,g+u));)if((!l||m(l,t,d,g,u))&&(s[r++]=new c.Dg(new h.Q(n,g+1+i,n,g+1+u+i),null),r>=a))return r;return r}const u=new p(e.wordSeparators,e.regex);let g;u.reset(0);do{if(g=u.next(t),g&&(s[r++]=d(new h.Q(n,g.index+1+i,n,g.index+1+g[0].length+i),g,o),r>=a))return r}while(g);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new p(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,s,i):this._doFindNextMatchLineByLine(e,n,s,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new l.y(t.lineNumber,1),s=e.getOffsetAt(r),o=e.getLineCount(),a=e.getValueInRange(new h.Q(r.lineNumber,r.column,o,e.getLineMaxColumn(o)),1),c="\r\n"===e.getEOL()?new g(a):null;n.reset(t.column-1);const u=n.next(a);return u?d(this._getMultilineMatchRange(e,s,a,c,u.index,u[0]),u,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s),a=this._findFirstMatchInLine(n,o,s,t.column,i);if(a)return a;for(let l=1;l<=r;l++){const t=(s+l-1)%r,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(n,o,t+1,1,i);if(a)return a}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const s=e.next(t);return s?d(new h.Q(n,s.index+1,n,s.index+1+s[0].length),s,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new p(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,s,i):this._doFindPreviousMatchLineByLine(e,n,s,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new h.Q(1,1,t.lineNumber,t.column),n,i,9990);if(r.length>0)return r[r.length-1];const s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new l.y(s,e.getLineMaxColumn(s)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(n,o,s,i);if(a)return a;for(let l=1;l<=r;l++){const t=(r+s-l-1)%r,o=e.getLineContent(t+1),a=this._findLastMatchInLine(n,o,t+1,i);if(a)return a}return null}static _findLastMatchInLine(e,t,n,i){let r,s=null;for(e.reset(0);r=e.next(t);)s=d(new h.Q(n,r.index+1,n,r.index+1+r[0].length),r,i);return s}}function m(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const s=t.charCodeAt(i-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const s=t.charCodeAt(i+r);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}class p{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,s=n[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){i.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||m(this._wordSeparators,e,t,r,s))return n}while(n);return null}}},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>fe,createMonacoBaseAPI:()=>me});var i=n(8447),r=n(1234);class s{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const o=new s,a=new s,l=new s,h=new Array(230),c={},u=[],d=Object.create(null),g=Object.create(null),f=[],m=[];for(let pe=0;pe<=193;pe++)f[pe]=-1;for(let pe=0;pe<=132;pe++)m[pe]=-1;var p;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[e,t,s,p,_,b,k,v,C]=r;if(i[t]||(i[t]=!0,u[t]=s,d[s]=t,g[s.toLowerCase()]=t,e&&(f[t]=p,0!==p&&3!==p&&5!==p&&4!==p&&6!==p&&57!==p&&(m[p]=t))),!n[p]){if(n[p]=!0,!_)throw new Error(`String representation missing for key code ${p} around scan code ${s}`);o.define(p,_),a.define(p,v||_),l.define(p,C||v||_)}b&&(h[b]=p),k&&(c[k]=p)}m[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return o.keyCodeToStr(e)}}(p||(p={}));var _,b,k,v,C,L,y,w,S,x,E,N,I,T,A,D,R,M,O,B,F,P,z,V,W,q,H,U,j,K,$,G,Q,Y,X,Z,J,ee,te,ne,ie,re,se,oe,ae,le,he=n(9400),ce=n(3069),ue=n(6677),de=n(5326),ge=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(_||(_={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(b||(b={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(k||(k={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(v||(v={})),function(e){e[e.Deprecated=1]="Deprecated"}(C||(C={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(L||(L={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(y||(y={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(w||(w={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(S||(S={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(x||(x={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(E||(E={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(N||(N={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(I||(I={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(T||(T={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(A||(A={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(D||(D={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(R||(R={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(M||(M={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(O||(O={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(B||(B={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(F||(F={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(P||(P={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(z||(z={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(V||(V={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(W||(W={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(q||(q={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(H||(H={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(U||(U={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(j||(j={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(K||(K={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}($||($={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(G||(G={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(Q||(Q={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(Y||(Y={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(X||(X={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Z||(Z={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(J||(J={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(ie||(ie={})),function(e){e[e.Deprecated=1]="Deprecated"}(re||(re={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(se||(se={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(oe||(oe={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ae||(ae={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class fe{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function me(){return{editor:void 0,languages:void 0,CancellationTokenSource:i.Qi,Emitter:r.vl,KeyCode:P,KeyMod:fe,Position:ce.y,Range:ue.Q,Selection:de.L,SelectionDirection:ee,MarkerSeverity:z,MarkerTag:V,Uri:he.r,Token:ge.ou}}},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>Pe,EditorSimpleWorker:()=>ze,create:()=>Ve});class i{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var r=n(5600);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function o(e,t,n){return new c(new s(e),new s(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}static Copy2(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}}class h{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class c{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,s]=c._getElements(e),[o,a,l]=c._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(c._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=(0,r.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return c._getStrictElement(this._originalSequence,e)===c._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,i,s);return r&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,r,s){for(s[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let s;return n<=r?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new i(e,0,n,r-n+1)]):e<=t?(a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new i(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],h=this.ComputeRecursionPoint(e,t,n,r,o,l,s),c=o[0],u=l[0];if(null!==h)return h;if(!s[0]){const o=this.ComputeDiffRecursive(e,c,n,u,s);let a=[];return a=s[0]?[new i(c+1,t-(c+1)+1,u+1,r-(u+1)+1)]:this.ComputeDiffRecursive(c+1,t,u+1,r,s),this.ConcatenateChanges(o,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,s,o,a,l,c,u,d,g,f,m,p,_,b,k){let v=null,C=null,L=new h,y=t,w=n,S=f[0]-_[0]-r,x=-1073741824,E=this.m_forwardHistory.length-1;do{const t=S+e;t===y||t<w&&c[t-1]<c[t+1]?(m=(d=c[t+1])-S-r,d<x&&L.MarkNextChange(),x=d,L.AddModifiedElement(d+1,m),S=t+1-e):(m=(d=c[t-1]+1)-S-r,d<x&&L.MarkNextChange(),x=d-1,L.AddOriginalElement(d,m+1),S=t-1-e),E>=0&&(e=(c=this.m_forwardHistory[E])[0],y=1,w=c.length-1)}while(--E>=-1);if(v=L.getReverseChanges(),k[0]){let e=f[0]+1,t=_[0]+1;if(null!==v&&v.length>0){const n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}C=[new i(e,g-e+1,t,p-t+1)]}else{L=new h,y=o,w=a,S=f[0]-_[0]-l,x=1073741824,E=b?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+s;e===y||e<w&&u[e-1]>=u[e+1]?(m=(d=u[e+1]-1)-S-l,d>x&&L.MarkNextChange(),x=d+1,L.AddOriginalElement(d+1,m+1),S=e+1-s):(m=(d=u[e-1])-S-l,d>x&&L.MarkNextChange(),x=d,L.AddModifiedElement(d+1,m+1),S=e-1-s),E>=0&&(s=(u=this.m_reverseHistory[E])[0],y=1,w=u.length-1)}while(--E>=-1);C=L.getChanges()}return this.ConcatenateChanges(v,C)}ComputeRecursionPoint(e,t,n,r,s,o,a){let h=0,c=0,u=0,d=0,g=0,f=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(r-n),p=m+1,_=new Int32Array(p),b=new Int32Array(p),k=r-n,v=t-e,C=e-n,L=t-r,y=(v-k)%2===0;_[k]=e,b[v]=t,a[0]=!1;for(let w=1;w<=m/2+1;w++){let m=0,S=0;u=this.ClipDiagonalBound(k-w,w,k,p),d=this.ClipDiagonalBound(k+w,w,k,p);for(let e=u;e<=d;e+=2){h=e===u||e<d&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,c=h-(e-k)-C;const n=h;for(;h<t&&c<r&&this.ElementsAreEqual(h+1,c+1);)h++,c++;if(_[e]=h,h+c>m+S&&(m=h,S=c),!y&&Math.abs(e-v)<=w-1&&h>=b[e])return s[0]=h,o[0]=c,n<=b[e]&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,L,_,b,h,t,s,c,r,o,y,a):null}const x=(m-e+(S-n)-w)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,x))return a[0]=!0,s[0]=m,o[0]=S,x>0&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,L,_,b,h,t,s,c,r,o,y,a):(e++,n++,[new i(e,t-e+1,n,r-n+1)]);g=this.ClipDiagonalBound(v-w,w,v,p),f=this.ClipDiagonalBound(v+w,w,v,p);for(let i=g;i<=f;i+=2){h=i===g||i<f&&b[i-1]>=b[i+1]?b[i+1]-1:b[i-1],c=h-(i-v)-L;const l=h;for(;h>e&&c>n&&this.ElementsAreEqual(h,c);)h--,c--;if(b[i]=h,y&&Math.abs(i-k)<=w&&h<=_[i])return s[0]=h,o[0]=c,l>=_[i]&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,L,_,b,h,t,s,c,r,o,y,a):null}if(w<=1447){let e=new Int32Array(d-u+2);e[0]=k-u+1,l.Copy2(_,u,e,1,d-u+1),this.m_forwardHistory.push(e),e=new Int32Array(f-g+2),e[0]=v-g+1,l.Copy2(b,g,e,1,f-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(k,u,d,C,v,g,f,L,_,b,h,t,s,c,r,o,y,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,h=n.modifiedStart-e;if(t<i||h<r)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(h,h+n.modifiedLength))break;const c=(t===i&&h===r?5:0)+this._boundaryScore(t,n.originalLength,h,n.modifiedLength);c>l&&(l=c,a=e)}n.originalStart-=a,n.modifiedStart-=a;const h=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],h)&&(e[t-1]=h[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],i=e[t],r=i.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=i.originalStart+i.originalLength,a=o-s,l=n.modifiedStart,h=i.modifiedStart+i.modifiedLength,c=h-l;if(r<5&&a<20&&c<20){const e=this._findBetterContiguousSequence(s,a,l,c,r);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,i.originalStart=t+r,i.modifiedStart=s+r,i.originalLength=o-i.originalStart,i.modifiedLength=h-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,r){if(t<r||i<r)return null;const s=e+t-r+1,o=n+i-r+1;let a=0,l=0,h=0;for(let c=e;c<s;c++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(c,e,r);t>0&&t>a&&(a=t,l=c,h=e)}return a>0?[l,h]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(r,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2===0;if(e<0){return r===(n%2===0)?0:1}return r===((i-n-1)%2===0)?i-1:i-2}}var u=n(6677),d=n(534);class g{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;r<s;r++)i[r]=n;this._data=i,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class f{constructor(e){let t=0,n=0;for(let r=0,s=e.length;r<s;r++){const[i,s,o]=e[r];s>t&&(t=s),i>n&&(n=i),o>n&&(n=o)}t++,n++;const i=new g(n,t,0);for(let r=0,s=e.length;r<s;r++){const[t,n,s]=e[r];i.set(t,n,s)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let m=null;let p=null;class _{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=function(){return null===m&&(m=new f([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),m}()){const n=function(){if(null===p){p=new d.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)p.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)p.set(t.charCodeAt(n),2)}return p}(),i=[];for(let r=1,s=e.getLineCount();r<=s;r++){const s=e.getLineContent(r),o=s.length;let a=0,l=0,h=0,c=1,u=!1,d=!1,g=!1,f=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===c){let t;switch(o){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:g=!0,d=!0,t=0;break;case 93:g=!1,t=d?0:1;break;case 123:f=!0,t=0;break;case 125:t=f?0:1;break;case 39:case 34:case 96:t=h===o?1:39===h||34===h||96===h?0:1;break;case 42:t=42===h?1:0;break;case 124:t=124===h?1:0;break;case 32:t=g?0:1;break;default:t=n.get(o)}1===t&&(i.push(_._createLink(n,s,r,l,a)),e=!0)}else if(12===c){let t;91===o?(d=!0,t=0):t=n.get(o),1===t?e=!0:c=13}else c=t.nextState(c,o),0===c&&(e=!0);e&&(c=1,u=!1,d=!1,f=!1,l=a+1,h=o),a++}13===c&&i.push(_._createLink(n,s,r,l,o))}return i}}class b{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new b}navigateValueSet(e,t,n,i,r){if(e&&t){const n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){const e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,s=e.length;null===i&&r<s;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}var k=n(4272),v=n(718),C=n(8381),L=n(4855);class y{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class w{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var S=n(4383),x=n(6571),E=n(3069),N=n(6782),I=n(4444);n(973);class T{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class A{static inverse(e,t,n){const i=[];let r=1,s=1;for(const a of e){const e=new A(new x.M(r,a.original.startLineNumber),new x.M(s,a.modified.startLineNumber));e.modified.isEmpty||i.push(e),r=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new A(new x.M(r,t+1),new x.M(s,n+1));return o.modified.isEmpty||i.push(o),i}static clip(e,t,n){const i=[];for(const r of e){const e=r.original.intersect(t),s=r.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&i.push(new A(e,s))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new A(this.modified,this.original)}join(e){return new A(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new O(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new S.D7("not a valid diff");return new O(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new O(new u.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new u.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(R(this.original.endLineNumberExclusive,e)&&R(this.modified.endLineNumberExclusive,t))return new O(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new O(u.Q.fromPositions(new E.y(this.original.startLineNumber,1),D(new E.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(new E.y(this.modified.startLineNumber,1),D(new E.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new O(u.Q.fromPositions(D(new E.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),D(new E.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(D(new E.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),D(new E.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new S.D7}}function D(e,t){if(e.lineNumber<1)return new E.y(1,1);if(e.lineNumber>t.length)return new E.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new E.y(e.lineNumber,n.length+1):e}function R(e,t){return e>=1&&e<=t.length}class M extends A{static fromRangeMappings(e){const t=x.M.join(e.map((e=>x.M.fromRangeInclusive(e.originalRange)))),n=x.M.join(e.map((e=>x.M.fromRangeInclusive(e.modifiedRange))));return new M(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new M(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new M(this.original,this.modified,[this.toRangeMapping()])}}class O{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],i=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition()))throw new S.D7("Range mappings must be sorted")}}constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new O(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new T(this.originalRange,t)}}var B=n(1508);class F{computeDiff(e,t,n){const i=new H(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),r=[];let s=null;for(const o of i.changes){let e,t;e=0===o.originalEndLineNumber?new x.M(o.originalStartLineNumber+1,o.originalStartLineNumber+1):new x.M(o.originalStartLineNumber,o.originalEndLineNumber+1),t=0===o.modifiedEndLineNumber?new x.M(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):new x.M(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let n=new M(e,t,o.charChanges?.map((e=>new O(new u.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new u.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modified.endLineNumberExclusive!==n.modified.startLineNumber&&s.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new M(s.original.join(n.original),s.modified.join(n.modified),s.innerChanges&&n.innerChanges?s.innerChanges.concat(n.innerChanges):void 0),r.pop())),r.push(n),s=n}return(0,N.Ft)((()=>(0,N.Xo)(r,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new y(r,[],i.quitEarly)}}function P(e,t,n,i){return new c(e,t,n).ComputeDiff(i)}class z{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=U(e[i],1),n[i]=j(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const i=[],r=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,h=e?this._endColumns[a]:t.length+1;for(let e=l;e<h;e++)i[o]=t.charCodeAt(e-1),r[o]=a+1,s[o]=e,o++;!e&&a<n&&(i[o]=10,r[o]=a+1,s[o]=t.length+1,o++)}return new V(i,r,s)}}class V{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class W{constructor(e,t,n,i,r,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),h=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new W(i,r,s,o,a,l,h,c)}}class q{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,s,o){let a,l,h,c,u;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(h=i.getStartLineNumber(t.modifiedStart)-1,c=0):(h=i.getStartLineNumber(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=P(s,a,r,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),o=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(e)),u=[];for(let t=0,n=e.length;t<n;t++)u.push(W.createFromDiffChange(e[t],s,a))}}return new q(a,l,h,c,u)}}class H{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new z(e),this.modified=new z(t),this.continueLineDiff=K(n.maxComputationTime),this.continueCharDiff=K(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=P(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(q.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;r<n&&s<l;){const e=this.originalLines[r],t=this.modifiedLines[s];if(e!==t){{let n=U(e,1),o=U(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,s+1,1,o)}{let n=j(e,1),o=j(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,s+1,o,l)}}r++,s++}e&&(i.push(q.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new W(t,n,t,i,r,s,r,o)]),e.push(new q(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===r?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new W(t,n,t,i,r,s,r,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new W(t,n,t,i,r,s,r,o)),!0))}}function U(e,t){const n=B.HG(e);return-1===n?t:n+1}function j(e,t){const n=B.lT(e);return-1===n?t:n+2}function K(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var $=n(9861);class G{static trivial(e,t){return new G([new Q(I.L.ofLength(e.length),I.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new G([new Q(I.L.ofLength(e.length),I.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Q{static invert(e,t){const n=[];return(0,$.pN)(e,((e,i)=>{n.push(Q.fromOffsetPairs(e?e.getEndExclusives():Y.zero,i?i.getStarts():new Y(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new Q(new I.L(e.offset1,t.offset1),new I.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new S.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new Q(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Q(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new Q(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new Q(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new Q(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new Q(t,n)}getStarts(){return new Y(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Y(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class Y{static{this.zero=new Y(0,0)}static{this.max=new Y(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new Y(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class X{static{this.instance=new X}isValid(){return!0}}class Z{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new S.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class J{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}}function ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let i=0;for(let r=e.startLineNumber-1;r<e.endLineNumberExclusive-1;r++){const e=t[r];for(let t=0;t<e.length;t++){i++;const n=e[t],r=te.getKey(n);this.histogram[r]=(this.histogram[r]||0)+1}i++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=i}computeSimilarity(e){let t=0;const n=Math.max(this.histogram.length,e.histogram.length);for(let i=0;i<n;i++)t+=Math.abs((this.histogram[i]??0)-(e.histogram[i]??0));return 1-t/(this.totalCount+e.totalCount)}}class ne{compute(e,t,n=X.instance,i){if(0===e.length||0===t.length)return G.trivial(e,t);const r=new J(e.length,t.length),s=new J(e.length,t.length),o=new J(e.length,t.length);for(let g=0;g<e.length;g++)for(let a=0;a<t.length;a++){if(!n.isValid())return G.trivialTimedOut(e,t);const l=0===g?0:r.get(g-1,a),h=0===a?0:r.get(g,a-1);let c;e.getElement(g)===t.getElement(a)?(c=0===g||0===a?0:r.get(g-1,a-1),g>0&&a>0&&3===s.get(g-1,a-1)&&(c+=o.get(g-1,a-1)),c+=i?i(g,a):1):c=-1;const u=Math.max(l,h,c);if(u===c){const e=g>0&&a>0?o.get(g-1,a-1):0;o.set(g,a,e+1),s.set(g,a,3)}else u===l?(o.set(g,a,0),s.set(g,a,1)):u===h&&(o.set(g,a,0),s.set(g,a,2));r.set(g,a,u)}const a=[];let l=e.length,h=t.length;function c(e,t){e+1===l&&t+1===h||a.push(new Q(new I.L(e+1,l),new I.L(t+1,h))),l=e,h=t}let u=e.length-1,d=t.length-1;for(;u>=0&&d>=0;)3===s.get(u,d)?(c(u,d),u--,d--):1===s.get(u,d)?u--:d--;return c(-1,-1),a.reverse(),new G(a,!1)}}class ie{compute(e,t,n=X.instance){if(0===e.length||0===t.length)return G.trivial(e,t);const i=e,r=t;function s(e,t){for(;e<i.length&&t<r.length&&i.getElement(e)===r.getElement(t);)e++,t++;return e}let o=0;const a=new se;a.set(0,s(0,0));const l=new oe;l.set(0,0===a.get(0)?null:new re(null,0,0,a.get(0)));let h=0;e:for(;;){if(o++,!n.isValid())return G.trivialTimedOut(i,r);const e=-Math.min(o,r.length+o%2),t=Math.min(o,i.length+o%2);for(h=e;h<=t;h+=2){let n=0;const o=h===t?-1:a.get(h+1),c=h===e?-1:a.get(h-1)+1;n++;const u=Math.min(Math.max(o,c),i.length),d=u-h;if(n++,u>i.length||d>r.length)continue;const g=s(u,d);a.set(h,g);const f=u===o?l.get(h+1):l.get(h-1);if(l.set(h,g!==u?new re(f,u,d,g-u):f),a.get(h)===i.length&&a.get(h)-h===r.length)break e}}let c=l.get(h);const u=[];let d=i.length,g=r.length;for(;;){const e=c?c.x+c.length:0,t=c?c.y+c.length:0;if(e===d&&t===g||u.push(new Q(new I.L(e,d),new I.L(t,g))),!c)break;d=c.x,g=c.y,c=c.prev}return u.reverse(),new G(u,!1)}}class re{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class se{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class oe{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}var ae=n(6041),le=n(4320);class he{constructor(e,t,n){this.lines=e,this.range=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let t=e[i-1],r=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(r=this.range.startColumn-1,t=t.substring(r)),this.lineStartOffsets.push(r);let s=0;if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const o=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-r-s,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));i<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new I.L(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=ge(e>0?this.elements[e-1]:-1),n=ge(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let i=0;return t!==n&&(i+=10,0===t&&1===n&&(i+=1)),i+=de(t),i+=de(n),i}translateOffset(e,t="right"){const n=(0,ae.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),i=e-this.firstElementOffsetByLineIdx[n];return new E.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+i+(0===i&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?u.Q.fromPositions(n,n):u.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!ce(this.elements[e]))return;let t=e;for(;t>0&&ce(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&ce(this.elements[n]);)n++;return new I.L(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){const t=(0,ae.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,ae.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new I.L(t,n)}}function ce(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const ue={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function de(e){return ue[e]}function ge(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function fe(e,t,n,i,r,s){let{moves:o,excludedChanges:a}=function(e,t,n,i){const r=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),a=new Set;for(const l of s){let e,t=-1;for(const n of o){const i=l.computeSimilarity(n);i>t&&(t=i,e=n)}if(t>.9&&e&&(o.delete(e),r.push(new A(l.range,e.range)),a.add(l.source),a.add(e.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,i,r,s){const o=[],a=new le.db;for(const d of e)for(let e=d.original.startLineNumber;e<d.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new x.M(e,e+3)})}const l=[];e.sort((0,$.VE)((e=>e.modified.startLineNumber),$.U9));for(const d of e){let e=[];for(let t=d.modified.startLineNumber;t<d.modified.endLineNumberExclusive-2;t++){const i=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,r=new x.M(t,t+3),s=[];a.forEach(i,(({range:t})=>{for(const i of e)if(i.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&i.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return i.originalLineRange=new x.M(i.originalLineRange.startLineNumber,t.endLineNumberExclusive),i.modifiedLineRange=new x.M(i.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void s.push(i);const n={modifiedLineRange:r,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((0,$.Hw)((0,$.VE)((e=>e.modifiedLineRange.length),$.U9)));const h=new x.S,c=new x.S;for(const d of l){const e=d.modifiedLineRange.startLineNumber-d.originalLineRange.startLineNumber,t=h.subtractFrom(d.modifiedLineRange),n=c.subtractFrom(d.originalLineRange).getWithDelta(e),i=t.getIntersection(n);for(const r of i.ranges){if(r.length<3)continue;const t=r,n=r.delta(-e);o.push(new A(n,t)),h.addRange(t),c.addRange(n)}}o.sort((0,$.VE)((e=>e.original.startLineNumber),$.U9));const u=new ae.vJ(e);for(let d=0;d<o.length;d++){const t=o[d],n=u.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=(0,ae.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),g=u.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),f=(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),m=Math.max(g.original.endLineNumberExclusive-t.original.endLineNumberExclusive,f.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let p,_;for(p=0;p<l;p++){const e=t.original.startLineNumber-p-1,n=t.modified.startLineNumber-p-1;if(e>i.length||n>r.length)break;if(h.contains(n)||c.contains(e))break;if(!me(i[e-1],r[n-1],s))break}for(p>0&&(c.addRange(new x.M(t.original.startLineNumber-p,t.original.startLineNumber)),h.addRange(new x.M(t.modified.startLineNumber-p,t.modified.startLineNumber))),_=0;_<m;_++){const e=t.original.endLineNumberExclusive+_,n=t.modified.endLineNumberExclusive+_;if(e>i.length||n>r.length)break;if(h.contains(n)||c.contains(e))break;if(!me(i[e-1],r[n-1],s))break}_>0&&(c.addRange(new x.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+_)),h.addRange(new x.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+_))),(p>0||_>0)&&(o[d]=new A(new x.M(t.original.startLineNumber-p,t.original.endLineNumberExclusive+_),new x.M(t.modified.startLineNumber-p,t.modified.endLineNumberExclusive+_)))}return o}(e.filter((e=>!a.has(e))),i,r,t,n,s);return(0,$.E4)(o,l),o=function(e){if(0===e.length)return e;e.sort((0,$.VE)((e=>e.original.startLineNumber),$.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,o=r.modified.startLineNumber-i.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const i of e)t(i)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new ae.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new A(new x.M(1,1),new x.M(1,1)))!==(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function me(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=(new ie).compute(new he([e],new u.Q(1,1,1,e.length),!1),new he([t],new u.Q(1,1,1,t.length),!1),n);let r=0;const s=Q.invert(i.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||r++}));const o=function(t){let n=0;for(let i=0;i<e.length;i++)ee(t.charCodeAt(i))||n++;return n}(e.length>t.length?e:t);return r/o>.6&&o>10}function pe(e,t,n){let i=n;return i=_e(e,t,i),i=_e(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,s=n[i],o=i+1<n.length?n[i+1]:void 0,a=new I.L(r?r.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new I.L(r?r.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[i]=be(s,e,t,a,l):s.seq2Range.isEmpty&&(n[i]=be(s.swap(),t,e,l,a).swap())}return n}(e,t,i),i}function _e(e,t,n){if(0===n.length)return n;const i=[];i.push(n[0]);for(let s=1;s<n.length;s++){const r=i[i.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-r.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){i[i.length-1]=new Q(new I.L(r.seq1Range.start,o.seq1Range.endExclusive-n),new I.L(r.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}i.push(o)}const r=[];for(let s=0;s<i.length-1;s++){const n=i[s+1];let o=i[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const r=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<r&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===r){i[s+1]=new Q(new I.L(o.seq1Range.start+r,n.seq1Range.endExclusive),new I.L(o.seq2Range.start+r,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}r.push(o)}return i.length>0&&r.push(i[i.length-1]),r}function be(e,t,n,i,r){let s=1;for(;e.seq1Range.start-s>=i.start&&e.seq2Range.start-s>=r.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<i.endExclusive&&e.seq2Range.endExclusive+o<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,l=-1;for(let h=-s;h<=o;h++){const i=e.seq2Range.start+h,r=e.seq2Range.endExclusive+h,s=e.seq1Range.start+h,o=t.getBoundaryScore(s)+n.getBoundaryScore(i)+n.getBoundaryScore(r);o>l&&(l=o,a=h)}return e.delta(a)}class ke{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:ve(this.lines[e-1]))+(e===this.lines.length?0:ve(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function ve(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class Ce{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new ie}computeDiff(e,t,n){if(e.length<=1&&(0,$.aI)(e,t,((e,t)=>e===t)))return new y([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new y([new M(new x.M(1,e.length+1),new x.M(1,t.length+1),[new O(new u.Q(1,1,e.length,e[e.length-1].length+1),new u.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const i=0===n.maxComputationTimeMs?X.instance:new Z(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),h=new ke(a,e),c=new ke(l,t),d=(()=>h.length+c.length<1700?this.dynamicProgrammingDiffing.compute(h,c,i,((n,i)=>e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99)):this.myersDiffingAlgorithm.compute(h,c,i))();let g=d.diffs,f=d.hitTimeout;g=pe(h,c,g),g=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const o=[i[0]];for(let a=1;a<i.length;a++){const l=i[a],h=o[o.length-1];function c(t,n){const i=new I.L(h.seq1Range.endExclusive,l.seq1Range.start);return e.getText(i).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}c(h,l)?(r=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}i=o}while(s++<10&&r);return i}(h,0,g);const m=[],p=n=>{if(r)for(let s=0;s<n;s++){const n=_+s,o=b+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new Q(new I.L(n,n+1),new I.L(o,o+1)),i,r);for(const e of s.mappings)m.push(e);s.hitTimeout&&(f=!0)}}};let _=0,b=0;for(const u of g){(0,N.Ft)((()=>u.seq1Range.start-_===u.seq2Range.start-b));p(u.seq1Range.start-_),_=u.seq1Range.endExclusive,b=u.seq2Range.endExclusive;const n=this.refineDiff(e,t,u,i,r);n.hitTimeout&&(f=!0);for(const e of n.mappings)m.push(e)}p(e.length-_);const k=Le(m,e,t);let v=[];return n.computeMoves&&(v=this.computeMoves(k,e,t,a,l,i,r)),(0,N.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function i(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const r of k){if(!r.innerChanges)return!1;for(const i of r.innerChanges){if(!(n(i.modifiedRange.getStartPosition(),t)&&n(i.modifiedRange.getEndPosition(),t)&&n(i.originalRange.getStartPosition(),e)&&n(i.originalRange.getEndPosition(),e)))return!1}if(!i(r.modified,t)||!i(r.original,e))return!1}return!0})),new y(k,v,f)}computeMoves(e,t,n,i,r,s,o){return fe(e,t,n,i,r,s).map((e=>{const i=Le(this.refineDiff(t,n,new Q(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new w(e,i)}))}refineDiff(e,t,n,i,r){var s;const o=(s=n,new A(new x.M(s.seq1Range.start+1,s.seq1Range.endExclusive+1),new x.M(s.seq2Range.start+1,s.seq2Range.endExclusive+1))).toRangeMapping2(e,t),a=new he(e,o.originalRange,r),l=new he(t,o.modifiedRange,r),h=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,i):this.myersDiffingAlgorithm.compute(a,l,i),c=!1;let u=h.diffs;u=pe(a,l,u),u=function(e,t,n){const i=Q.invert(n,e.length),r=[];let s=new Y(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let h=new Q(a,l);const c=h.intersect(o);let u=c.seq1Range.length,d=c.seq2Range.length;for(;i.length>0;){const n=i[0];if(!n.seq1Range.intersects(h.seq1Range)&&!n.seq2Range.intersects(h.seq2Range))break;const r=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new Q(r,s),a=o.intersect(n);if(u+=a.seq1Range.length,d+=a.seq2Range.length,h=h.join(o),!(h.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;i.shift()}u+d<2*(h.seq1Range.length+h.seq2Range.length)/3&&r.push(h),s=h.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let s;s=i&&(!r||i.seq1Range.start<r.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,r)}(a,l,u),u=function(e,t,n){const i=[];for(const r of n){const e=i[i.length-1];e&&(r.seq1Range.start-e.seq1Range.endExclusive<=2||r.seq2Range.start-e.seq2Range.endExclusive<=2)?i[i.length-1]=new Q(e.seq1Range.join(r.seq1Range),e.seq2Range.join(r.seq2Range)):i.push(r)}return i}(0,0,u),u=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const a=[i[0]];for(let l=1;l<i.length;l++){const h=i[l],c=a[a.length-1];function u(n,i){const r=new I.L(c.seq1Range.endExclusive,h.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const s=e.getText(r).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),u=n.seq2Range.length,d=e.countLinesIn(i.seq1Range),g=i.seq1Range.length,f=t.countLinesIn(i.seq2Range),m=i.seq2Range.length;function p(e){return Math.min(e,130)}return Math.pow(Math.pow(p(40*o+a),1.5)+Math.pow(p(40*l+u),1.5),1.5)+Math.pow(Math.pow(p(40*d+g),1.5)+Math.pow(p(40*f+m),1.5),1.5)>74184.96480721243}u(c,h)?(r=!0,a[a.length-1]=a[a.length-1].join(h)):a.push(h)}i=a}while(s++<10&&r);const o=[];return(0,$.kj)(i,((t,n,i)=>{let r=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new I.L(a.start,n.seq1Range.start));s(l)&&(r=r.deltaStart(-l.length));const h=e.getText(new I.L(n.seq1Range.endExclusive,a.endExclusive));s(h)&&(r=r.deltaEnd(h.length));const c=Q.fromOffsetPairs(t?t.getEndExclusives():Y.zero,i?i.getStarts():Y.max),u=r.intersect(c);o.length>0&&u.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(u):o.push(u)})),o}(a,l,u);const d=u.map((e=>new O(a.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:d,hitTimeout:h.hitTimeout}}}function Le(e,t,n,i=!1){const r=[];for(const s of(0,$.n)(e.map((e=>function(e,t,n){let i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const s=new x.M(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),o=new x.M(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new M(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];r.push(new M(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,N.Ft)((()=>{if(!i&&r.length>0){if(r[0].modified.startLineNumber!==r[0].original.startLineNumber)return!1;if(n.length-r[r.length-1].modified.endLineNumberExclusive!==t.length-r[r.length-1].original.endLineNumberExclusive)return!1}return(0,N.Xo)(r,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),r}const ye=()=>new F,we=()=>new Ce;var Se=n(146),xe=n(6456),Ee=n(7661);function Ne(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Ie(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function Te(e,t){const n=t.index,i=t[0].length;if(!n)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Ae(e,t){if(!e)return;const n=Ee.Q1.Format.CSS.parseHex(t);return n?{range:e,color:Ie(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function De(e,t,n){if(!e||1!==t.length)return;const i=Ne(t[0].values());return{range:e,color:Ie(i[0],i[1],i[2],n?i[3]:1)}}function Re(e,t,n){if(!e||1!==t.length)return;const i=Ne(t[0].values()),r=new Ee.Q1(new Ee.hB(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:Ie(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function Me(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function Oe(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Me(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(const i of n){const n=i.filter((e=>void 0!==e)),r=n[1],s=n[2];if(!s)continue;let o;if("rgb"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=De(Te(e,i),Me(s,t),!1)}else if("rgba"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=De(Te(e,i),Me(s,t),!0)}else if("hsl"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=Re(Te(e,i),Me(s,t),!1)}else if("hsla"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Re(Te(e,i),Me(s,t),!0)}else"#"===r&&(o=Ae(Te(e,i),r+s));o&&t.push(o)}return t}(e):[]}var Be=n(6691),Fe=n(796);class Pe{constructor(){this._workerTextModelSyncServer=new Fe.WorkerTextModelSyncServer}dispose(){}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,n){const i=this._getModel(e);return i?L.UnicodeTextModelHighlighter.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Be.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,i){const r=this._getModel(e),s=this._getModel(t);if(!r||!s)return null;return ze.computeDiff(r,s,n,i)}static computeDiff(e,t,n,i){const r="advanced"===i?we():ye(),s=e.getLinesContent(),o=t.getLinesContent(),a=r.computeDiff(s,o,n);function l(e){return e.map((e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,n){const i=this._getModel(e);if(!i)return t;const r=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return u.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let a=0;for(let o=1;o<t.length;o++)u.Q.getEndPosition(t[a].range).equals(u.Q.getStartPosition(t[o].range))?(t[a].range=u.Q.fromPositions(u.Q.getStartPosition(t[a].range),u.Q.getEndPosition(t[o].range)),t[a].text+=t[o].text):(a++,t[a]=t[o]);t.length=a+1;for(let{range:l,text:h,eol:c}of t){if("number"===typeof c&&(s=c),u.Q.isEmpty(l)&&!h)continue;const e=i.getValueInRange(l);if(h=h.replace(/\r\n|\n|\r/g,i.eol),e===h)continue;if(Math.max(h.length,e.length)>ze._diffLimit){r.push({range:l,text:h});continue}const t=o(e,h,n),a=i.offsetAt(u.Q.lift(l).getStartPosition());for(const n of t){const e=i.positionAt(a+n.originalStart),t=i.positionAt(a+n.originalStart+n.originalLength),s={text:h.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};i.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"===typeof s&&r.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?_.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?Oe(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,i){const r=new C.W,s=new RegExp(n,i),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>ze._suggestionsLimit))break e}return{words:Array.from(o),duration:r.elapsed()}}async $computeWordRanges(e,t,n,i){const r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=r.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,n,i,r){const s=this._getModel(e);if(!s)return null;const o=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const h=s.getValueInRange(l);return b.INSTANCE.navigateValueSet(t,a,l,h,n)}}class ze extends Pe{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,i){const r={host:(0,Se.kT)(i,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve((0,Se.V0)(this._foreignModule))):new Promise(((i,s)=>{const o=e=>{this._foreignModule=e.create(r,t),i((0,Se.V0)(this._foreignModule))};{const t=xe.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(o).catch(s)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function Ve(e){return new ze(v.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,k.createMonacoBaseAPI)())},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>i});const i=(0,n(3591).u1)("editorWorkerService")},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>i});class i{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(i.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(i.CHANNEL_NAME,t)}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>s});const i=new RegExp("\\bMARK:\\s*(.*)$","d"),r=/^-+|-+$/g;function s(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const i=function(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const i=e.getLineContent(r),s=i.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:r,startColumn:s[0].length+1,endLineNumber:r,endColumn:i.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(i.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++){o(e.getLineContent(i),i,t)}return t}(e);n=n.concat(t)}return n}function o(e,t,n){i.lastIndex=0;const r=i.exec(e);if(r){const e={startLineNumber:t,startColumn:r.indices[1][0]+1,endLineNumber:t,endColumn:r.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(r[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(r,""),hasSeparatorLine:t}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>d});var i,r=n(6456),s=n(9403),o=n(9400),a=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(i||(i={}));var l,h,c=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const i=t.exec(e.id);if(!i)return n(c.W.error);const[,r,s]=i,o=["codicon","codicon-"+r];return s&&o.push("codicon-modifier-"+s.substring(1)),o}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const i=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=i.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(h||(h={}));const u=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function d(e,t,n,l,c){if(h.isThemeIcon(c))return[`codicon-${c.id}`,"predefined-file-icon"];if(o.r.isUri(c))return[];const d=l===i.ROOT_FOLDER?["rootfolder-icon"]:l===i.FOLDER?["folder-icon"]:["file-icon"];if(n){let o;if(n.scheme===r.ny.data){o=s.B6.parseMetaData(n).get(s.B6.META_DATA_LABEL)}else{const e=n.path.match(u);e?(o=g(e[2].toLowerCase()),e[1]&&d.push(`${g(e[1].toLowerCase())}-name-dir-icon`)):o=g(n.authority.toLowerCase())}if(l===i.ROOT_FOLDER)d.push(`${o}-root-name-folder-icon`);else if(l===i.FOLDER)d.push(`${o}-name-folder-icon`);else{if(o){if(d.push(`${o}-name-file-icon`),d.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t<e.length;t++)d.push(`${e.slice(t).join(".")}-ext-file-icon`)}d.push("ext-file-icon")}const i=function(e,t,n){if(!n)return null;let i=null;if(n.scheme===r.ny.data){const e=s.B6.parseMetaData(n).get(s.B6.META_DATA_MIME);e&&(i=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(i=t.getLanguageId())}if(i&&i!==a.vH)return i;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);i&&d.push(`${g(i)}-lang-file-icon`)}}return d}function g(e){return e.replace(/[\s]/g,"/")}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>m,LanguageFeatureDebounceService:()=>k});var i=n(5600),r=n(4320);function s(e,t,n){return Math.min(Math.max(e,t),n)}class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class a{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const h=(0,l.u1)("environmentService");var c=n(4621),u=n(3511),d=n(6456),g=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},f=function(e,t){return function(n,i){t(n,i,e)}};const m=(0,l.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let i=t.get(e);return void 0===i&&(i=++n,t.set(e,i)),i}}(p||(p={}));class _{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class b{constructor(e,t,n,i,s,o){this._logService=e,this._name=t,this._registry=n,this._default=i,this._min=s,this._max=o,this._cache=new r.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,i.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?s(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let i=this._cache.get(n);i||(i=new a(6),this._cache.set(n,i));const r=s(i.update(t),this._min,this._max);return(0,d.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${r}ms`),r}_overall(){const e=new o;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return s(0|this._overall()||this._default,this._min,this._max)}}let k=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const i=n?.min??50,r=n?.max??i**2,s=n?.key??void 0,o=`${p.of(e)},${i}${s?","+s:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new _(1.5*i)):a=new b(this._logService,t,e,0|this._overallAverage()||1.5*i,i,r),this._data.set(o,a)),a}_overallAverage(){const e=new o;for(const t of this._data.values())e.update(t.default());return e.value}};k=g([f(0,u.rr),f(1,h)],k),(0,c.v)(m,k,1)},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>i});const i=(0,n(3591).u1)("ILanguageFeaturesService")},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>m});var i=n(1234),r=n(1484),s=n(6223),o=n(6958),a=n(8821);function l(e,t,n,i,r,s){if(Array.isArray(e)){let o=0;for(const a of e){const e=l(a,t,n,i,r,s);if(10===e)return e;e>o&&(o=e)}return o}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:h,scheme:c,hasAccessToAllModels:u,notebookType:d}=e;if(!i&&!u)return 0;d&&r&&(t=r);let g=0;if(c)if(c===t.scheme)g=10;else{if("*"!==c)return 0;g=5}if(l)if(l===n)g=10;else{if("*"!==l)return 0;g=Math.max(g,5)}if(d)if(d===s)g=10;else{if("*"!==d||void 0===s)return 0;g=Math.max(g,5)}if(h){let e;if(e="string"===typeof h?h:{...h,base:(0,a.S8)(h.base)},e!==t.fsPath&&!(0,o.YW)(e,t.fsPath))return 0;g=10}return g}return 0}function h(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(h):!!e.exclusive)}class c{constructor(e,t,n,i,r){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=i,this.recursive=r}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class u{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new i.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,r.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,i;return this._orderedForEach(e,!1,(e=>{n&&i===e._score?n.push(e.provider):(i=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const i of this._entries)i._score>0&&n(i)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),i=n?new c(e.uri,e.getLanguageId(),n.uri,n.type,t):new c(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(i)){this._lastCandidate=i;for(const n of this._entries)if(n._score=l(n.selector,i.uri,i.languageId,(0,s.vd)(e),i.notebookUri,i.notebookType),h(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(u._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:d(e.selector)&&!d(t.selector)?1:!d(e.selector)&&d(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function d(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(d):Boolean(e.isBuiltin))}var g=n(6942),f=n(4621);class m{constructor(){this.referenceProvider=new u(this._score.bind(this)),this.renameProvider=new u(this._score.bind(this)),this.newSymbolNamesProvider=new u(this._score.bind(this)),this.codeActionProvider=new u(this._score.bind(this)),this.definitionProvider=new u(this._score.bind(this)),this.typeDefinitionProvider=new u(this._score.bind(this)),this.declarationProvider=new u(this._score.bind(this)),this.implementationProvider=new u(this._score.bind(this)),this.documentSymbolProvider=new u(this._score.bind(this)),this.inlayHintsProvider=new u(this._score.bind(this)),this.colorProvider=new u(this._score.bind(this)),this.codeLensProvider=new u(this._score.bind(this)),this.documentFormattingEditProvider=new u(this._score.bind(this)),this.documentRangeFormattingEditProvider=new u(this._score.bind(this)),this.onTypeFormattingEditProvider=new u(this._score.bind(this)),this.signatureHelpProvider=new u(this._score.bind(this)),this.hoverProvider=new u(this._score.bind(this)),this.documentHighlightProvider=new u(this._score.bind(this)),this.multiDocumentHighlightProvider=new u(this._score.bind(this)),this.selectionRangeProvider=new u(this._score.bind(this)),this.foldingRangeProvider=new u(this._score.bind(this)),this.linkProvider=new u(this._score.bind(this)),this.inlineCompletionsProvider=new u(this._score.bind(this)),this.inlineEditProvider=new u(this._score.bind(this)),this.completionProvider=new u(this._score.bind(this)),this.linkedEditingRangeProvider=new u(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new u(this._score.bind(this)),this.documentSemanticTokensProvider=new u(this._score.bind(this)),this.documentDropEditProvider=new u(this._score.bind(this)),this.documentPasteEditProvider=new u(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,f.v)(g.ILanguageFeaturesService,m,1)},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>D});var i=n(1234),r=n(1484),s=n(9259),o=n(9861),a=n(2083),l=n(3941);const h=(e,t)=>e===t;new WeakMap;class c{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=d.get(e);if(n)return n;const i=function(e,t){const n=d.get(e);if(n)return n;const i=t.owner?function(e){const t=f.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let i=g.get(n)??0;i++,g.set(n,i);const r=1===i?n:`${n}#${i}`;return f.set(e,r),r}(t.owner)+".":"";let r;const s=t.debugNameSource;if(void 0!==s){if("function"!==typeof s)return i+s;if(r=s(),void 0!==r)return i+r}const o=t.referenceFn;if(void 0!==o&&(r=m(o),void 0!==r))return i+r;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return i+n}return}(e,t);if(i){let t=u.get(i)??0;t++,u.set(i,t);const n=1===t?i:`${i}#${t}`;return d.set(e,n),n}return}(e,this)}}const u=new Map,d=new WeakMap;const g=new Map,f=new WeakMap;function m(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),i=n?n[1]:void 0;return i?.trim()}let p,_,b,k;function v(){return p}class C{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,i=void 0===t?e:t;return k({owner:n,debugName:()=>{const e=m(i);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:i},(e=>i(this.read(e),e)))}flatten(){return k({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(_(this,t)),this}keepObserved(e){return e.add(b(this)),this}}class L extends C{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function y(e,t){const n=new w(e,t);try{e(n)}finally{n.finish()}}class w{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],v()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():m(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:i}=e[t];n.endUpdate(i)}this.updatingObservers=null,v()?.handleEndTransaction()}}var S=n(6782);!function(e){k=e}((function(e,t){return new x(new c(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??h)}));class x extends L{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i,r=void 0,s){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=i,this._handleLastObserverRemoved=r,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),v()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const i=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,i)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=t&&!this._equalityComparator(n,this.value);if(v()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:r,hadValue:t}),r)for(const s of this.observers)s.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),i=3===this.state;if(n&&(1===this.state||i)&&(this.state=2,i))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function E(e){return new N(new c(void 0,void 0,e),e,void 0,void 0)}class N{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=i,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),v()?.handleAutorunCreated(this),this._runIfNeeded(),(0,r.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,r.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){v()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||v()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=N}(E||(E={}));function I(...e){let t,n,i;return 3===e.length?[t,n,i]=e:[n,i]=e,new T(new c(t,void 0,i),n,i,(()=>T.globalTransaction),h)}class T extends L{constructor(e,t,n,i,r){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=i,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,i=!this.hasValue||!this._equalityComparator(n,t);let r=!1;i&&(this.value=t,this.hasValue&&(r=!0,function(e,t,n){e?t(e):y(t,n)}(this._getTransaction(),(e=>{v()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||v()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=T,e.batchEventsGlobally=function(e,t){let n=!1;void 0===T.globalTransaction&&(T.globalTransaction=e,n=!0);try{t()}finally{n&&(T.globalTransaction=void 0)}}}(I||(I={}));!function(e){b=e}((function(e){const t=new A(!1,void 0);return e.addObserver(t),(0,r.s)((()=>{e.removeObserver(t)}))})),function(e){_=e}((function(e,t){const n=new A(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,r.s)((()=>{e.removeObserver(n)}))}));class A{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class D extends r.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new i.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new i.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new i.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,D.instanceCount++,this._registry=this._register(new s.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){D.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(n,null)}createById(e){return new R(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new R(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class R{constructor(e,t){this._value=I(this,e,(()=>t())),this.onDidChange=i.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>f,getLanguageIds:()=>m,registerPlatformLanguageAssociation:()=>g});var i=n(6958),r=n(1939),s=n(6456),o=n(8821),a=n(9403),l=n(1508),h=n(3941);let c=[],u=[],d=[];function g(e,t=!1){!function(e,t,n){const r=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,i.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);c.push(r),r.userConfigured?d.push(r):u.push(r);n&&!r.userConfigured&&c.forEach((e=>{e.mime===r.mime||e.userConfigured||(r.extension&&e.extension===r.extension&&console.warn(`Overwriting extension <<${r.extension}>> to now point to mime <<${r.mime}>>`),r.filename&&e.filename===r.filename&&console.warn(`Overwriting filename <<${r.filename}>> to now point to mime <<${r.mime}>>`),r.filepattern&&e.filepattern===r.filepattern&&console.warn(`Overwriting filepattern <<${r.filepattern}>> to now point to mime <<${r.mime}>>`),r.firstline&&e.firstline===r.firstline&&console.warn(`Overwriting firstline <<${r.firstline}>> to now point to mime <<${r.mime}>>`))}))}(e,!1,t)}function f(){c=c.filter((e=>e.userConfigured)),u=[]}function m(e,t){return function(e,t){let n;if(e)switch(e.scheme){case s.ny.file:n=e.fsPath;break;case s.ny.data:n=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case s.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:r.K.unknown}];n=n.toLowerCase();const i=(0,o.P8)(n),g=p(n,i,d);if(g)return[g,{id:h.vH,mime:r.K.text}];const f=p(n,i,u);if(f)return[f,{id:h.vH,mime:r.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=c.length-1;t>=0;t--){const n=c[t];if(!n.firstline)continue;const i=e.match(n.firstline);if(i&&i.length>0)return n}return}(t);if(e)return[e,{id:h.vH,mime:r.K.text}]}return[{id:"unknown",mime:r.K.unknown}]}(e,t).map((e=>e.id))}function p(e,t,n){let i,r,s;for(let o=n.length-1;o>=0;o--){const a=n[o];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!r||a.filepattern.length>r.filepattern.length)){const n=a.filepatternOnPath?e:t;a.filepatternLowercase?.(n)&&(r=a)}a.extension&&(!s||a.extension.length>s.extension.length)&&t.endsWith(a.extensionLowercase)&&(s=a)}return i||(r||(s||void 0))}},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>d,LanguagesRegistry:()=>g});var i=n(1234),r=n(1484),s=n(1508),o=n(9908),a=n(3941),l=n(1646),h=n(6359);const c=Object.prototype.hasOwnProperty,u="vs.editor.nullLanguage";class d{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(u,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||u}}class g extends r.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new d,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),h.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;c.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let i=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),i=t.mimetypes[0]),i||(i=`text/x-${n}`,e.mimetypes.push(i)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const s of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filename:s},this._warnOnOverwrite),e.filenames.push(s);if(Array.isArray(t.filenamePatterns))for(const s of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filepattern:s},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,s.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let r=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(r=0===t.aliases.length?[null]:t.aliases),null!==r)for(const s of r)s&&0!==s.length&&e.aliases.push(s);const a=null!==r&&r.length>0;if(a&&null===r[0]);else{const t=(a?r[0]:null)||n;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&c.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return c.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&c.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>i});const i=(0,n(3591).u1)("markerDecorationsService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>y});var i,r=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){const t="error",n="warning",i="info";e.fromValue=function(s){return s?r.Q_(t,s)?e.Error:r.Q_(n,s)||r.Q_("warn",s)?e.Warning:r.Q_(i,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(r){switch(r){case e.Error:return t;case e.Warning:return n;case e.Info:return i;default:return"ignore"}}}(i||(i={}));const s=i;var o,a,l=n(8209),h=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(o||(o={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.Error:return e.Error;case s.Warning:return e.Warning;case s.Info:return e.Info;case s.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.Error;case e.Warning:return s.Warning;case e.Info:return s.Info;case e.Hint:return s.Ignore}}}(o||(o={})),function(e){const t="";function n(e,n){const i=[t];return e.source?i.push(e.source.replace("\xa6","\\\xa6")):i.push(t),e.code?"string"===typeof e.code?i.push(e.code.replace("\xa6","\\\xa6")):i.push(e.code.value.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.severity&&null!==e.severity?i.push(o.toString(e.severity)):i.push(t),e.message&&n?i.push(e.message.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(t),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(t),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(t),i.push(t),i.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(a||(a={}));const c=(0,h.u1)("markerService");var u=n(1484),d=n(6223),g=n(5724),f=n(7119),m=n(3750),p=n(6677),_=n(6456),b=n(1234),k=n(5845),v=n(4320);var C=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},L=function(e,t){return function(n,i){t(n,i,e)}};let y=class extends u.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new b.vl),this._markerDecorations=new v.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new w(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==_.ny.inMemory&&e.uri.scheme!==_.ny.internal&&e.uri.scheme!==_.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};y=C([L(0,m.IModelService),L(1,c)],y);class w extends u.jG{constructor(e){super(),this.model=e,this._map=new v.cO,this._register((0,u.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],i=[];for(const r of e)t.has(r)||n.push(r);for(const r of t)e.has(r)||i.push(r);return{removed:n,added:i}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const i=n.map((e=>this._map.get(e))),r=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(i,r);for(const o of n)this._map.delete(o);for(let o=0;o<s.length;o++)this._map.set(t[o],s[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=p.Q.lift(t);if(t.severity!==o.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const i=e.getWordAtPosition(n.getStartPosition());i&&(n=new p.Q(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const i=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);i<n.endColumn&&(n=new p.Q(n.startLineNumber,i,n.endLineNumber,n.endColumn),t.startColumn=i)}return n}_createDecorationOption(e){let t,n,i,r,s;switch(e.severity){case o.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",i=0;break;case o.Info:t="squiggly-info",n=(0,g.Yf)(f.AQ),i=10,s={color:(0,g.Yf)(k.KoI),position:1};break;case o.Warning:t="squiggly-warning",n=(0,g.Yf)(f.aZ),i=20,s={color:(0,g.Yf)(k.uMG),position:1};break;case o.Error:default:t="squiggly-error",n=(0,g.Yf)(f.yI),i=30,s={color:(0,g.Yf)(k.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(r="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(r="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:d.A5.Right},minimap:s,zIndex:i,inlineClassName:r}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>i});const i=(0,n(3591).u1)("modelService")},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>Lr,ModelService:()=>Cr});var i=n(1234),r=n(1484),s=n(8067),o=n(9861),a=n(7661),l=n(4383),h=n(1508),c=n(9400),u=n(4454);class d{static _nextVisibleColumn(e,t,n){return 9===e?d.nextRenderTabStop(t,n):h.ne(e)||h.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const i=Math.min(t-1,e.length),r=e.substring(0,i),s=new h.km(r);let o=0;for(;!s.eol();){const e=h.Z5(r,i,s.offset);s.nextGraphemeLength(),o=this._nextVisibleColumn(e,o,n)}return o}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const i=e.length,r=new h.km(e);let s=0,o=1;for(;!r.eol();){const a=h.Z5(e,i,r.offset);r.nextGraphemeLength();const l=this._nextVisibleColumn(a,s,n),c=r.offset+1;if(l>=t){return l-t<t-s?c:o}s=l,o=c}return i+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function g(e,t,n){let i=h.HG(e);return-1===i&&(i=e.length),function(e,t,n){let i=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?i=d.nextIndentTabStop(i,t):i++;let r="";if(!n){const e=Math.floor(i/t);i%=t;for(let t=0;t<e;t++)r+="\t"}for(let s=0;s<i;s++)r+=" ";return r}(e.substring(0,i),t,n)+e.substring(i)}var f=n(3069),m=n(6677),p=n(5326);const _={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var b,k=n(154),v=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(b||(b={}));class C{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),i=e.getStandardTokenType(n);return this.isOK(i)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class L{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)y(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),y(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),y(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),y(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&y(this.autoClosingPairsCloseSingleChar,t.close,t)}}function y(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class w{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new C(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new C({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new C({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:w.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:w.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function S(e){return 0!==(3&e)}var x=n(1674);let E,N,I;function T(){return E||(E=new TextDecoder("UTF-16LE")),E}function A(){return I||(I=s.cm()?T():(N||(N=new TextDecoder("UTF-16BE")),N)),I}function D(e,t,n){const i=new Uint16Array(e.buffer,t,n);return n>0&&(65279===i[0]||65534===i[0])?function(e,t,n){const i=[];let r=0;for(let s=0;s<n;s++){const n=x.$l(e,t);t+=2,i[r++]=String.fromCharCode(n)}return i.join("")}(e,t,n):T().decode(i)}class R{constructor(e,t,n,i,r,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=r,this.reversedRegex=s,this._openSet=R._toSet(this.open),this._closeSet=R._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class M{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let o=0;o<t;o++)n[o]=o;const i=(e,t)=>{const[n,i]=e,[r,s]=t;return n===r||n===s||i===r||i===s},r=(e,i)=>{const r=Math.min(e,i),s=Math.max(e,i);for(let o=0;o<t;o++)n[o]===s&&(n[o]=r)};for(let o=0;o<t;o++){const s=e[o];for(let a=o+1;a<t;a++)i(s,e[a])&&r(n[o],n[a])}const s=[];for(let o=0;o<t;o++){const i=[],r=[];for(let s=0;s<t;s++)if(n[s]===o){const[t,n]=e[s];i.push(t),r.push(n)}i.length>0&&s.push({open:i,close:r})}return s}(t);this.brackets=n.map(((t,i)=>new R(e,i,t.open,t.close,function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)O(r[s],n,i,r);return r=F(r),r.sort(B),r.reverse(),z(r)}(t.open,t.close,n,i),function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)O(r[s],n,i,r);return r=F(r),r.sort(B),r.reverse(),z(r.map(V))}(t.open,t.close,n,i)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),z(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),z(t.map(V))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const i of this.brackets){for(const e of i.open)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of i.close)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function O(e,t,n,i){for(let r=0,s=t.length;r<s;r++){if(r===n)continue;const s=t[r];for(const t of s.open)t.indexOf(e)>=0&&i.push(t);for(const t of s.close)t.indexOf(e)>=0&&i.push(t)}}function B(e,t){return e.length-t.length}function F(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function P(e){const t=/^[\w ]+$/.test(e);return e=h.bm(e),t?`\\b${e}\\b`:e}function z(e,t){const n=`(${e.map(P).join(")|(")})`;return h.OS(n,!0,t)}const V=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charCodeAt(i);return A().decode(t)}(e)),t}}();class W{static _findPrevBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=n.length-(r.index||0),o=r[0].length,a=i+s;return new m.Q(t,a-o+1,t,a+1)}static findPrevBracketInRange(e,t,n,i,r){const s=V(n).substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,s,i)}static findNextBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=r.index||0,o=r[0].length;if(0===o)return null;const a=i+s;return new m.Q(t,a+1,t,a+1+o)}static findNextBracketInRange(e,t,n,i,r){const s=n.substring(i,r);return this.findNextBracketInText(e,t,s,i)}}class q{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,o.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const i=t.findTokenIndexAtOffset(n-1);if(S(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,n-1)+e,o=W.findPrevBracketInRange(r,1,s,0,s.length);if(!o)return null;const a=s.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function H(e){return e.global&&(e.lastIndex=0),!0}class U{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&H(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&H(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&H(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&H(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class j{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=j._createOpenBracketRegExp(e[0]),n=j._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,i){if(e>=3)for(let r=0,s=this._regExpRules.length;r<s;r++){const e=this._regExpRules[r];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:i},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&i.length>0)for(let r=0,s=this._brackets.length;r<s;r++){const e=this._brackets[r];if(e.openRegExp.test(n)&&e.closeRegExp.test(i))return{indentAction:b.IndentOutdent}}if(e>=2&&n.length>0)for(let r=0,s=this._brackets.length;r<s;r++){if(this._brackets[r].openRegExp.test(n))return{indentAction:b.Indent}}return null}static _createOpenBracketRegExp(e){let t=h.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",j._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=h.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,j._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var K=n(3591),$=n(4001),G=n(4621),Q=n(3941),Y=n(1788);class X{constructor(e,t){this.languageId=e;const n=t.brackets?Z(t.brackets):[],i=new Y.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),r=new Y.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[o,a]of n){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.opening.add(e.info)}const s=t.colorizedBracketPairs?Z(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of s){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...i.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return z(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function Z(e){return e.filter((([e,t])=>""!==e&&""!==t))}class J{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends J{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends J{constructor(e,t,n,i){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=i,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},ie=function(e,t){return function(n,i){t(n,i,e)}};class re{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const se=(0,K.u1)("languageConfigurationService");let oe=class extends r.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new ge),this.onDidChangeEmitter=this._register(new i.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(ae));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),i=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new re(void 0));else for(const n of i)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new re(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new re(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,i){let r=t.getLanguageConfiguration(e);if(!r){if(!i.isRegisteredLanguageId(e))return new fe(e,{});r=new fe(e,{})}const s=function(e,t){const n=t.getValue(ae.brackets,{overrideIdentifier:e}),i=t.getValue(ae.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(i)}}(r.languageId,n),o=ce([r.underlyingConfig,s]);return new fe(r.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};oe=ne([ie(0,$.pG),ie(1,k.L)],oe);const ae={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class he{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new ue(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,r.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new fe(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(ue.cmp),ce(this._entries.map((e=>e.configuration))))}}function ce(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class ue{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class de{constructor(e){this.languageId=e}}class ge extends r.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(Q.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let i=this._entries.get(e);i||(i=new he(e),this._entries.set(e,i));const s=i.register(t,n);return this._onDidChange.fire(new de(e)),(0,r.s)((()=>{s.dispose(),this._onDidChange.fire(new de(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class fe{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new j(this.underlyingConfig):null,this.comments=fe._handleComments(this.underlyingConfig),this.characterPair=new w(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||v.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new U(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new X(e,this.underlyingConfig)}getWordDefinition(){return(0,v.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new M(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new q(this.brackets)),this._electricCharacter}onEnter(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}getAutoClosingPairs(){return new L(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,i]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=i}return n}}(0,G.v)(se,oe,1);var me=n(6223);class pe{constructor(e,t,n,i){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=i}}class _e{constructor(e,t,n,i,r,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=i,this.nestingLevelOfEqualBracketType=r,this.bracketPairNode=s}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class be extends _e{constructor(e,t,n,i,r,s,o){super(e,t,n,i,r,s),this.minVisibleColumnIndentation=o}}var ke=n(973);function ve(e){return 0===e}const Ce=2**26;function Le(e,t){return e*Ce+t}function ye(e){const t=e,n=Math.floor(t/Ce),i=t-n*Ce;return new ke.W(n,i)}function we(e,t){let n=e+t;return t>=Ce&&(n-=e%Ce),n}function Se(e,t){return e.reduce(((e,n)=>we(e,t(n))),0)}function xe(e,t){return e===t}function Ee(e,t){const n=e,i=t;if(i-n<=0)return 0;const r=Math.floor(n/Ce),s=Math.floor(i/Ce),o=i-s*Ce;if(r===s){return Le(0,o-(n-r*Ce))}return Le(s-r,o)}function Ne(e,t){return e<t}function Ie(e,t){return e<=t}function Te(e,t){return e>=t}function Ae(e){return Le(e.lineNumber-1,e.column-1)}function De(e,t){const n=e,i=Math.floor(n/Ce),r=n-i*Ce,s=t,o=Math.floor(s/Ce),a=s-o*Ce;return new m.Q(i+1,r+1,o+1,a+1)}class Re{static fromModelContentChanges(e){return e.map((e=>{const t=m.Q.lift(e.range);return new Re(Ae(t.getStartPosition()),Ae(t.getEndPosition()),function(e){const t=(0,h.uz)(e);return Le(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${ye(this.startOffset)}...${ye(this.endOffset)}) -> ${ye(this.newLength)}`}}class Me{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>Oe.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:Ee(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?Le(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):Le(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=ye(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?Le(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):Le(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!Ie(n,e))break;{this.nextEditIdx++;const e=ye(n),i=ye(this.translateOldToCur(t.endOffsetBeforeObj)),r=e.lineCount-i.lineCount;this.deltaOldToNewLineCount+=r;const s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,o=e.columnCount-i.columnCount;this.deltaOldToNewColumnCount=s+o,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class Oe{static from(e){return new Oe(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=ye(t),this.endOffsetAfterObj=ye(we(e,n)),this.offsetObj=ye(e)}}const Be=[];class Fe{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=Fe.cache[e];return n||(n=new Fe(e,t),Fe.cache[e]=n),n}return new Fe(e,t)}static{this.empty=Fe.create(0,Be)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let i=n>>5;if(0===i){const e=1<<n|this.items;return e===this.items?this:Fe.create(e,this.additionalItems)}i--;const r=this.additionalItems.slice(0);for(;r.length<i;)r.push(0);return r[i]|=1<<(31&n),Fe.create(this.items,r)}merge(e){const t=this.items|e.items;if(this.additionalItems===Be&&e.additionalItems===Be)return t===this.items?this:t===e.items?e:Fe.create(t,Be);const n=[];for(let i=0;i<Math.max(this.additionalItems.length,e.additionalItems.length);i++){const t=this.additionalItems[i]||0,r=e.additionalItems[i]||0;n.push(t|r)}return Fe.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const Pe={getKey:e=>e};class ze{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class Ve{get length(){return this._length}constructor(e){this._length=e}}class We extends Ve{static create(e,t,n){let i=e.length;return t&&(i=we(i,t.length)),n&&(i=we(i,n.length)),new We(i,e,t,n,t?t.missingOpeningBracketIds:Fe.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,i,r){super(e),this.openingBracket=t,this.child=n,this.closingBracket=i,this.missingOpeningBracketIds=r}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new We(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(we(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class qe extends Ve{static create23(e,t,n,i=!1){let r=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(r=we(r,t.length),s=s.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");r=we(r,n.length),s=s.merge(n.missingOpeningBracketIds)}return i?new Ue(r,e.listHeight+1,e,t,n,s):new He(r,e.listHeight+1,e,t,n,s)}static getEmpty(){return new Ke(0,0,[],Fe.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let i=1;i<e;i++){const e=this.getChild(i);t=we(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,i=e;for(let r=0;r<this.childrenLength;r++){const e=this.getChild(r);e&&(n=Math.min(n,e.computeMinIndentation(i,t)),i=we(i,e.length))}return this.cachedMinIndentation=n,n}}class He extends qe{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,i,r,s){super(e,t,s),this._item1=n,this._item2=i,this._item3=r}deepClone(){return new He(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class Ue extends He{toMutable(){return new He(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class je extends qe{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,i){super(e,t,i),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new je(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class Ke extends je{toMutable(){return new je(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const $e=[];class Ge extends Ve{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return $e}deepClone(){return this}}class Qe extends Ge{get kind(){return 0}get missingOpeningBracketIds(){return Fe.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=ye(e),i=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,r=(s=we(e,this.length),Math.floor(s/Ce)+1);var s;let o=Number.MAX_SAFE_INTEGER;for(let a=i;a<=r;a++){const e=t.getLineFirstNonWhitespaceColumn(a),n=t.getLineContent(a);if(0===e)continue;const i=d.visibleColumnFromColumn(n,e,t.getOptions().tabSize);o=Math.min(o,i)}return o}}class Ye extends Ge{static create(e,t,n){return new Ye(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return Fe.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Xe extends Ge{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Ze=n(5982);class Je{constructor(e,t,n,i,r){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=i,this.astNode=r}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return Le(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=we(this._offset,e);const t=ye(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=we(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const i=this.lineTokens,r=i.getCount();let s=null;if(this.lineTokenOffset<r){const o=i.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&o===i.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const a=0===Ze.x.getTokenType(o),l=Ze.x.containsBalancedBrackets(o),h=i.getEndOffset(this.lineTokenOffset);if(l&&a&&this.lineCharOffset<h){const e=i.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,h),n=this.bracketTokens.getSingleLanguageBracketTokens(e),r=n.regExpGlobal;if(r){r.lastIndex=0;const e=r.exec(t);e&&(s=n.getToken(e[0]),s&&(this.lineCharOffset+=e.index))}}if(n+=h-this.lineCharOffset,s){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=s;break}return this.lineCharOffset+=s.length,s}this.lineTokenOffset++,this.lineCharOffset=h}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const i=(r=e,s=t,o=this.lineIdx,a=this.lineCharOffset,r!==o?Le(o-r,a):Le(0,a-s));var r,s,o,a;return new Je(i,0,-1,Fe.getEmpty(),new Qe(i))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),i=n?new RegExp(n+"|\n","gi"):null,r=[];let s,o=0,a=0,l=0,h=0;const c=[];for(let g=0;g<60;g++)c.push(new Je(Le(0,g),0,-1,Fe.getEmpty(),new Qe(Le(0,g))));const u=[];for(let g=0;g<60;g++)u.push(new Je(Le(1,g),0,-1,Fe.getEmpty(),new Qe(Le(1,g))));if(i)for(i.lastIndex=0;null!==(s=i.exec(e));){const e=s.index,n=s[0];if("\n"===n)o++,a=e+1;else{if(l!==e){let t;if(h===o){const n=e-l;if(n<c.length)t=c[n];else{const e=Le(0,n);t=new Je(e,0,-1,Fe.getEmpty(),new Qe(e))}}else{const n=o-h,i=e-a;if(1===n&&i<u.length)t=u[i];else{const e=Le(n,i);t=new Je(e,0,-1,Fe.getEmpty(),new Qe(e))}}r.push(t)}r.push(t.getToken(n)),l=e+n.length,h=o}}const d=e.length;if(l!==d){const e=h===o?Le(0,d-l):Le(o-h,d-a);r.push(new Je(e,0,-1,Fe.getEmpty(),new Qe(e)))}this.length=Le(o,d-a),this.tokens=r}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class it{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const i=new Map;for(const r of e.bracketsNew.openingBrackets){const e=Le(0,r.bracketText.length),t=n(r),s=Fe.getEmpty().add(t,Pe);i.set(r.bracketText,new Je(e,1,t,s,Ye.create(e,r,s)))}for(const r of e.bracketsNew.closingBrackets){const e=Le(0,r.bracketText.length);let t=Fe.getEmpty();const s=r.getOpeningBrackets();for(const i of s)t=t.add(n(i),Pe);i.set(r.bracketText,new Je(e,2,n(s[0]),t,Ye.create(e,r,t)))}return new it(i)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,h.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class rt{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=it.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function st(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const i=n>>1;for(let r=0;r<i;r++){const i=r<<1;e[r]=qe.create23(e[i],e[i+1],i+3===n?e[i+2]:null,t)}n=i}return qe.create23(e[0],e[1],n>=3?e[2]:null,t)}function ot(e,t){return Math.abs(e.listHeight-t.listHeight)}function at(e,t){return e.listHeight===t.listHeight?qe.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const i=[];let r;for(;;){if(t.listHeight===n.listHeight){r=t;break}if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeLastElementMutable()}for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=qe.create23(e.unappendChild(),r,null,!1):(e.appendChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?qe.create23(e,r,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const i=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeFirstElementMutable()}let r=t;for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=qe.create23(r,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?qe.create23(r,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Ne(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=ct(this.nextNodes);if(!n)return;const i=ct(this.offsets);if(Ne(e,i))return;if(Ne(i,e))if(we(i,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ht(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ht(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=ct(this.offsets),t=ct(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=ct(this.nextNodes),i=ht(n,this.idxs[this.idxs.length-1]);if(-1!==i){this.nextNodes.push(n.getChild(i)),this.offsets.push(we(e,t.length)),this.idxs[this.idxs.length-1]=i;break}this.idxs.pop()}}}function ht(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function ct(e){return e.length>0?e[e.length-1]:void 0}function ut(e,t,n,i){return new dt(e,t,n,i).parseDocument()}class dt{constructor(e,t,n,i){if(this.tokenizer=e,this.createImmutableLists=i,this._itemsConstructed=0,this._itemsFromCache=0,n&&i)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new Me(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(Fe.getEmpty(),0);return e||(e=qe.getEmpty()),e}parseList(e,t){const n=[];for(;;){let i=this.tryReadChildFromCache(e);if(!i){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;i=this.parseChild(e,t+1)}4===i.kind&&0===i.childrenLength||n.push(i)}const i=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,i=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===i;)t++;return t-n>=2?st(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let i=n(),r=n();if(!r)return i;for(let s=n();s;s=n())ot(i,r)<=ot(r,s)?(i=at(i,r),r=s):r=at(r,s);return at(i,r)}(n):st(n,this.createImmutableLists);return i}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!ve(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Ne(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Xe(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Qe(n.length);const i=e.merge(n.bracketIds),r=this.parseList(i,t+1),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===n.bracketId||s.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),We.create(n.astNode,r,s.astNode)):We.create(n.astNode,r,null)}default:throw new Error("unexpected")}}}function gt(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new o.j3(mt(e)),i=mt(t);i.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let r=n.dequeue();function s(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return r&&e.unshift(r),e}const t=[];for(;r&&!ve(e);){const[i,s]=r.splitAt(e);t.push(i),e=Ee(i.lengthAfter,e),r=s??n.dequeue()}return ve(e)||t.push(new ft(!1,e,e)),t}const a=[];function l(e,t,n){if(a.length>0&&xe(a[a.length-1].endOffset,e)){const e=a[a.length-1];a[a.length-1]=new Re(e.startOffset,t,we(e.newLength,n))}else a.push({startOffset:e,endOffset:t,newLength:n})}let h=0;for(const o of i){const e=s(o.lengthBefore);if(o.modified){const t=we(h,Se(e,(e=>e.lengthBefore)));l(h,t,o.lengthAfter),h=t}else for(const t of e){const e=h;h=we(h,t.lengthBefore),t.modified&&l(e,h,t.lengthAfter)}}return a}class ft{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=Ee(e,this.lengthAfter);return xe(t,0)?[this,void 0]:this.modified?[new ft(this.modified,this.lengthBefore,e),new ft(this.modified,0,t)]:[new ft(this.modified,e,e),new ft(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${ye(this.lengthBefore)} -> ${ye(this.lengthAfter)}`}}function mt(e){const t=[];let n=0;for(const i of e){const e=Ee(n,i.startOffset);ve(e)||t.push(new ft(!1,e,e));const r=Ee(i.startOffset,i.endOffset);t.push(new ft(!0,r,i.newLength)),n=i.endOffset}return t}class pt extends r.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new i.vl,this.denseKeyProvider=new ze,this.brackets=new rt(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=ut(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new Re(Le(e.fromLineNumber-1,0),Le(e.toLineNumber,0),Le(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=Re.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=gt(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=gt(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const i=t;return ut(new et(this.textModel,this.brackets),e,i,n)}getBracketsInRange(e,t){this.flushQueue();const n=Le(e.startLineNumber-1,e.startColumn-1),i=Le(e.endLineNumber-1,e.endColumn-1);return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens;kt(r,0,r.length,n,i,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Ae(e.getStartPosition()),i=Ae(e.getEndPosition());return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens,s=new vt(e,t,this.textModel);Ct(r,0,r.length,n,i,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return bt(t,0,t.length,Ae(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return _t(t,0,t.length,Ae(e))}}function _t(e,t,n,i){if(4===e.kind||2===e.kind){const r=[];for(const i of e.children)n=we(t,i.length),r.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=r.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:s}=r[t];if(Ne(n,i)){const r=_t(e.children[t],n,s,i);if(r)return r}}return null}if(3===e.kind)return null;if(1===e.kind){const i=De(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function bt(e,t,n,i){if(4===e.kind||2===e.kind){for(const r of e.children){if(Ne(i,n=we(t,r.length))){const e=bt(r,t,n,i);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const i=De(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function kt(e,t,n,i,r,s,o,a,l,h,c=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let c=0;c<a;c++){const a=e.getChild(c);if(a){if(n=we(t,a.length),Ie(t,r)&&Te(n,i)){if(Te(n,r)){e=a;continue e}if(!kt(a,t,n,i,r,s,o,0,l,h))return!1}t=n}}return!0}case 2:{const c=!h||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let u=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),u=t,c&&(t++,l.set(e.openingBracket.text,t))}const d=e.childrenLength;for(let g=0;g<d;g++){const d=e.getChild(g);if(d){if(n=we(t,d.length),Ie(t,r)&&Te(n,i)){if(Te(n,r)&&1!==d.kind){e=d,c?(o++,a=u+1):a=u;continue e}if(c||1!==d.kind||!e.closingBracket){if(!kt(d,t,n,i,r,s,c?o+1:o,c?u+1:u,l,h,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,u),!0}case 3:{const e=De(t,n);return s(new pe(e,o-1,0,!0))}case 1:{const e=De(t,n);return s(new pe(e,o-1,a-1,c))}case 0:return!0}}class vt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function Ct(e,t,n,i,r,s,o,a){if(o>200)return!0;let l=!0;if(2===e.kind){let h=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),h=t,t++,a.set(e.openingBracket.text,t)}const c=we(t,e.openingBracket.length);let u=-1;if(s.includeMinIndentation&&(u=e.computeMinIndentation(t,s.textModel)),l=s.push(new be(De(t,n),De(t,c),e.closingBracket?De(we(c,e.child?.length||0),n):void 0,o,h,e,u)),t=c,l&&e.child){const h=e.child;if(n=we(t,h.length),Ie(t,r)&&Te(n,i)&&(l=Ct(h,t,n,i,r,s,o+1,a),!l))return!1}a?.set(e.openingBracket.text,h)}else{let n=t;for(const t of e.children){const e=n;if(n=we(n,t.length),Ie(e,r)&&Ie(i,n)&&(l=Ct(t,e,n,i,r,s,o,a),!l))return!1}}return l}class Lt extends r.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new r.HE),this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new r.Cm;this.bracketPairsTree.value=(e=n.add(new pt(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||o.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||o.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||o.c1.empty}findMatchingBracketUp(e,t,n){const i=this.textModel.validatePosition(t),r=this.textModel.getLanguageIdAtPosition(i.lineNumber,i.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const i=this.getBracketPairsInRange(m.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return i?i.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!s)return null;const o=s.textIsBracket[t];return o?St(this._findMatchingBracketUp(o,i,yt(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(m.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,o.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),m.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=yt(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,i){const r=t.getCount(),s=t.getLanguageId(i);let o=Math.max(0,e.column-1-n.maxBracketLength);for(let l=i-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=o)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=i+1;l<r;l++){const e=t.getStartOffset(l);if(e>=a)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const n=e.lineNumber,i=this.textModel.tokenization.getLineTokens(n),r=this.textModel.getLineContent(n),s=i.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(s)).brackets;if(o&&!S(i.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,o,s),h=null;for(;;){const i=W.findNextBracketInRange(o.forwardRegex,n,r,a,l);if(!i)break;if(i.startColumn<=e.column&&e.column<=i.endColumn){const e=r.substring(i.startColumn-1,i.endColumn-1).toLowerCase(),n=this._matchFoundBracket(i,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(n){if(n instanceof wt)return null;h=n}}a=i.endColumn-1}if(h)return h}if(s>0&&i.getStartOffset(s)===e.column-1){const o=s-1,a=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(o)).brackets;if(a&&!S(i.getStandardTokenType(o))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,a,o),h=W.findPrevBracketInRange(a.reversedRegex,n,r,s,l);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn){const e=r.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),n=this._matchFoundBracket(h,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n)return n instanceof wt?null:n}}}return null}_matchFoundBracket(e,t,n,i){if(!t)return null;const r=n?this._findMatchingBracketDown(t,e.getEndPosition(),i):this._findMatchingBracketUp(t,e.getStartPosition(),i);return r?r instanceof wt?r:[e,r]:null}_findMatchingBracketUp(e,t,n){const i=e.languageId,r=e.reversedRegex;let s=-1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return wt.INSTANCE;const h=W.findPrevBracketInRange(r,t,i,a,l);if(!h)break;const c=i.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(e.isOpen(c)?s++:e.isClose(c)&&s--,0===s)return h;l=h.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),r=this.textModel.getLineContent(l);let s=n-1,o=r.length,h=r.length;l===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,h=t.column-1);let c=!0;for(;s>=0;s--){const t=e.getLanguageId(s)===i&&!S(e.getStandardTokenType(s));if(t)c?o=e.getStartOffset(s):(o=e.getStartOffset(s),h=e.getEndOffset(s));else if(c&&o!==h){const e=a(l,r,o,h);if(e)return e}c=t}if(c&&o!==h){const e=a(l,r,o,h);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const i=e.languageId,r=e.forwardRegex;let s=1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return wt.INSTANCE;const h=W.findNextBracketInRange(r,t,i,a,l);if(!h)break;const c=i.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(e.isOpen(c)?s++:e.isClose(c)&&s--,0===s)return h;a=h.endColumn-1}return null},l=this.textModel.getLineCount();for(let h=t.lineNumber;h<=l;h++){const e=this.textModel.tokenization.getLineTokens(h),n=e.getCount(),r=this.textModel.getLineContent(h);let s=0,o=0,l=0;h===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let c=!0;for(;s<n;s++){const t=e.getLanguageId(s)===i&&!S(e.getStandardTokenType(s));if(t)c||(o=e.getStartOffset(s)),l=e.getEndOffset(s);else if(c&&o!==l){const e=a(h,r,o,l);if(e)return e}c=t}if(c&&o!==l){const e=a(h,r,o,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,i=null,r=null;for(let s=t.lineNumber;s>=1;s--){const e=this.textModel.tokenization.getLineTokens(s),o=e.getCount(),a=this.textModel.getLineContent(s);let l=o-1,h=a.length,c=a.length;if(s===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),h=t.column-1,c=t.column-1;const s=e.getLanguageId(l);n!==s&&(n=s,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let u=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(i&&r&&u&&h!==c){const e=W.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e);u=!1}n=t,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const o=!!i&&!S(e.getStandardTokenType(l));if(o)u?h=e.getStartOffset(l):(h=e.getStartOffset(l),c=e.getEndOffset(l));else if(r&&i&&u&&h!==c){const e=W.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e)}u=o}if(r&&i&&u&&h!==c){const e=W.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let i=null,r=null,s=null;for(let o=t.lineNumber;o<=n;o++){const e=this.textModel.tokenization.getLineTokens(o),n=e.getCount(),a=this.textModel.getLineContent(o);let l=0,h=0,c=0;if(o===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),h=t.column-1,c=t.column-1;const n=e.getLanguageId(l);i!==n&&(i=n,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let u=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(i!==t){if(s&&r&&u&&h!==c){const e=W.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e);u=!1}i=t,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const n=!!r&&!S(e.getStandardTokenType(l));if(n)u||(h=e.getStartOffset(l)),c=e.getEndOffset(l);else if(s&&r&&u&&h!==c){const e=W.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e)}u=n}if(s&&r&&u&&h!==c){const e=W.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=m.Q.fromPositions(n),t=this.getBracketPairsInRange(m.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const i=yt(t),r=this.textModel.getLineCount(),s=new Map;let o=[];const a=(e,t)=>{if(!s.has(e)){const n=[];for(let e=0,i=t?t.brackets.length:0;e<i;e++)n[e]=0;s.set(e,n)}o=s.get(e)};let l=0;const h=(e,t,n,r,s)=>{for(;;){if(i&&++l%100===0&&!i())return wt.INSTANCE;const a=W.findNextBracketInRange(e.forwardRegex,t,n,r,s);if(!a)break;const h=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),c=e.textIsBracket[h];if(c&&(c.isOpen(h)?o[c.index]++:c.isClose(h)&&o[c.index]--,-1===o[c.index]))return this._matchFoundBracket(a,c,!1,i);r=a.endColumn-1}return null};let c=null,u=null;for(let d=n.lineNumber;d<=r;d++){const e=this.textModel.tokenization.getLineTokens(d),t=e.getCount(),i=this.textModel.getLineContent(d);let r=0,s=0,o=0;if(d===n.lineNumber){r=e.findTokenIndexAtOffset(n.column-1),s=n.column-1,o=n.column-1;const t=e.getLanguageId(r);c!==t&&(c=t,u=this.languageConfigurationService.getLanguageConfiguration(c).brackets,a(c,u))}let l=!0;for(;r<t;r++){const t=e.getLanguageId(r);if(c!==t){if(u&&l&&s!==o){const e=h(u,d,i,s,o);if(e)return St(e);l=!1}c=t,u=this.languageConfigurationService.getLanguageConfiguration(c).brackets,a(c,u)}const n=!!u&&!S(e.getStandardTokenType(r));if(n)l||(s=e.getStartOffset(r)),o=e.getEndOffset(r);else if(u&&l&&s!==o){const e=h(u,d,i,s,o);if(e)return St(e)}l=n}if(u&&l&&s!==o){const e=h(u,d,i,s,o);if(e)return St(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const i=e.getBracketInfo(n);return i?{range:t,bracketInfo:i}:null}}function yt(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class wt{static{this.INSTANCE=new wt}constructor(){this._searchCanceledBrand=void 0}}function St(e){return e instanceof wt?null:e}var xt=n(7119),Et=n(5724);class Nt extends r.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new It,this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,i){if(i)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new m.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class It{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,Et.zy)(((e,t)=>{const n=[xt.sN,xt.lQ,xt.ss,xt.l5,xt.sH,xt.zp],i=new It;t.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${e.getColor(xt.s7)}; }`);const r=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let s=0;s<30;s++){const e=r[s%r.length];t.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(s)} { color: ${e}; }`)}}));var Tt=n(8209);function At(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Dt{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,i){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=i}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${At(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${At(this.oldText)}")`:`(replace@${this.oldPosition} "${At(this.oldText)}" with "${At(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const i=t.length;x.Sw(e,i,n),n+=4;for(let r=0;r<i;r++)x.gN(e,t.charCodeAt(r),n),n+=2;return n}static _readString(e,t){const n=x.bb(e,t);return D(e,t+=4,n)}writeSize(){return 8+Dt._writeStringSize(this.oldText)+Dt._writeStringSize(this.newText)}write(e,t){return x.Sw(e,this.oldPosition,t),t+=4,x.Sw(e,this.newPosition,t),t+=4,t=Dt._writeString(e,this.oldText,t),t=Dt._writeString(e,this.newText,t)}static read(e,t,n){const i=x.bb(e,t);t+=4;const r=x.bb(e,t);t+=4;const s=Dt._readString(e,t);t+=Dt._writeStringSize(s);const o=Dt._readString(e,t);return t+=Dt._writeStringSize(o),n.push(new Dt(i,s,r,o)),t}}class Rt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),i=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(i),i=this._getCurr(++t);continue}if(null===i){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldEnd<=n.newPosition){this._acceptCurr(i),i=this._getCurr(++t);continue}if(n.newEnd<=i.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldPosition<n.newPosition){const[e,t]=Rt._splitCurr(i,n.newPosition-i.oldPosition);this._acceptCurr(e),i=t;continue}if(n.newPosition<i.oldPosition){const[e,t]=Rt._splitPrev(n,i.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let r,s;if(i.oldEnd===n.newEnd)r=n,s=i,n=this._getPrev(++e),i=this._getCurr(++t);else if(i.oldEnd<n.newEnd){const[e,o]=Rt._splitPrev(n,i.oldLength);r=e,s=i,n=o,i=this._getCurr(++t)}else{const[t,o]=Rt._splitCurr(i,n.newLength);r=n,s=t,n=this._getPrev(++e),i=o}this._result[this._resultLen++]=new Dt(r.oldPosition,r.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=r.newLength-r.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const r=Rt._merge(this._result);return Rt._removeNoOps(r)}_acceptCurr(e){this._result[this._resultLen++]=Rt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=Rt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Dt(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Dt(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),i=e.newText.substr(t);return[new Dt(e.oldPosition,e.oldText,e.newPosition,n),new Dt(e.oldEnd,"",e.newPosition+t,i)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),i=e.oldText.substr(t);return[new Dt(e.oldPosition,n,e.newPosition,e.newText),new Dt(e.oldPosition+t,i,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,i=e[0];for(let r=1;r<e.length;r++){const s=e[r];i.oldEnd===s.oldPosition?i=new Dt(i.oldPosition,i.oldText+s.oldText,i.newPosition,i.newText+s.newText):(t[n++]=i,i=s)}return t[n++]=i,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let i=0;i<e.length;i++){const r=e[i];r.oldText!==r.newText&&(t[n++]=r)}return t}}var Mt=n(9403);function Ot(e){return e.toString()}class Bt{static create(e,t){const n=e.getAlternativeVersionId(),i=zt(e);return new Bt(n,n,i,i,t,t,[])}constructor(e,t,n,i,r,s,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=i,this.beforeCursorState=r,this.afterCursorState=s,this.changes=o}append(e,t,n,i,r){var s,o;t.length>0&&(this.changes=(s=this.changes,o=t,null===s||0===s.length?o:new Rt(s,o).compress())),this.afterEOL=n,this.afterVersionId=i,this.afterCursorState=r}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(x.Sw(e,t?t.length:0,n),n+=4,t)for(const i of t)x.Sw(e,i.selectionStartLineNumber,n),n+=4,x.Sw(e,i.selectionStartColumn,n),n+=4,x.Sw(e,i.positionLineNumber,n),n+=4,x.Sw(e,i.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const i=x.bb(e,t);t+=4;for(let r=0;r<i;r++){const i=x.bb(e,t);t+=4;const r=x.bb(e,t);t+=4;const s=x.bb(e,t);t+=4;const o=x.bb(e,t);t+=4,n.push(new p.L(i,r,s,o))}return t}serialize(){let e=10+Bt._writeSelectionsSize(this.beforeCursorState)+Bt._writeSelectionsSize(this.afterCursorState)+4;for(const i of this.changes)e+=i.writeSize();const t=new Uint8Array(e);let n=0;x.Sw(t,this.beforeVersionId,n),n+=4,x.Sw(t,this.afterVersionId,n),n+=4,x.Gs(t,this.beforeEOL,n),n+=1,x.Gs(t,this.afterEOL,n),n+=1,n=Bt._writeSelections(t,this.beforeCursorState,n),n=Bt._writeSelections(t,this.afterCursorState,n),x.Sw(t,this.changes.length,n),n+=4;for(const i of this.changes)n=i.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const i=x.bb(t,n);n+=4;const r=x.bb(t,n);n+=4;const s=x.pJ(t,n);n+=1;const o=x.pJ(t,n);n+=1;const a=[];n=Bt._readSelections(t,n,a);const l=[];n=Bt._readSelections(t,n,l);const h=x.bb(t,n);n+=4;const c=[];for(let u=0;u<h;u++)n=Dt.read(t,n,c);return new Bt(i,r,s,o,a,l,c)}}class Ft{get type(){return 0}get resource(){return c.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,i){this.label=e,this.code=t,this.model=n,this._data=Bt.create(n,i)}toString(){return(this._data instanceof Bt?this._data:Bt.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(c.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Bt}append(e,t,n,i,r){this._data instanceof Bt&&this._data.append(e,t,n,i,r)}close(){this._data instanceof Bt&&(this._data=this._data.serialize())}open(){this._data instanceof Bt||(this._data=Bt.deserialize(this._data))}undo(){if(c.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(c.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Bt&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Pt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const i of this._editStackElementsArr){const e=Ot(i.resource);this._editStackElementsMap.set(e,i)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Ot(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Ot(c.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Ot(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,i,r){const s=Ot(e.uri);this._editStackElementsMap.get(s).append(e,t,n,i,r)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Ot(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,Mt.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function zt(e){return"\n"===e.getEOL()?0:1}function Vt(e){return!!e&&(e instanceof Ft||e instanceof Pt)}class Wt{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Vt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Vt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(Vt(n)&&n.canAppend(this._model))return n;const i=new Ft(Tt.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(i,t),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],zt(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,i){const r=this._getOrCreateEditStackElement(e,i),s=this._model.applyEdits(t,!0),o=Wt._computeCursorState(n,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),r.append(this._model,a.map((e=>e.textChange)),zt(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var qt,Ht=n(6041);class Ut extends r.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(qt||(qt={}));class jt{constructor(e,t,n,i,r,s){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=i,this.forWrappedLinesAfterColumn=r,this.forWrappedLinesBeforeOrAtColumn=s,-1!==e===(-1!==t))throw new Error}}class Kt{constructor(e,t){this.top=e,this.endColumn=t}}class $t extends Ut{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,i=0;const r=e.length;for(;i<r;){const r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===r?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new l.D7("Illegal value for lineNumber");const r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide);let o=-2,a=-1,h=-2,c=-1;const u=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===h){h=-1,c=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){h=t,c=e;break}}}};let d=-2,g=-1,f=-2,m=-1;const p=e=>{if(-2===d){d=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){d=t,g=e;break}}}if(-1!==f&&(-2===f||f<e-1)){f=-1,m=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){f=t,m=e;break}}}};let _=0,b=!0,k=0,v=!0,C=0,L=0;for(let l=0;b||v;l++){const r=e-l,o=e+l;l>1&&(r<1||r<t)&&(b=!1),l>1&&(o>i||o>n)&&(v=!1),l>5e4&&(b=!1,v=!1);let f=-1;if(b&&r>=1){const e=this._computeIndentLevel(r-1);e>=0?(h=r-1,c=e,f=Math.ceil(e/this.textModel.getOptions().indentSize)):(u(r),f=this._getIndentLevelForWhitespaceLine(s,a,c))}let y=-1;if(v&&o<=i){const e=this._computeIndentLevel(o-1);e>=0?(d=o-1,g=e,y=Math.ceil(e/this.textModel.getOptions().indentSize)):(p(o),y=this._getIndentLevelForWhitespaceLine(s,g,m))}if(0!==l){if(1===l){if(o<=i&&y>=0&&L+1===y){b=!1,_=o,k=o,C=y;continue}if(r>=1&&f>=0&&f-1===L){v=!1,_=r,k=r,C=f;continue}if(_=e,k=e,C=L,0===C)return{startLineNumber:_,endLineNumber:k,indent:C}}b&&(f>=C?_=r:b=!1),v&&(y>=C?k=o:v=!1)}else L=f}return{startLineNumber:_,endLineNumber:k,indent:C}}getLinesBracketGuides(e,t,n,i){const r=[];for(let h=e;h<=t;h++)r.push([]);const s=!0,o=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new m.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let a;if(n&&o.length>0){const i=(e<=n.lineNumber&&n.lineNumber<=t?o:this.textModel.bracketPairs.getBracketPairsInRange(m.Q.fromPositions(n)).toArray()).filter((e=>m.Q.strictContainsPosition(e.range,n)));a=(0,Ht.Uk)(i,(e=>s))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,c=new Gt;for(const u of o){if(!u.closingBracketRange)continue;const n=a&&u.range.equalsRange(a);if(!n&&!i.includeInactive)continue;const s=c.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,l)+(i.highlightActive&&n?" "+c.activeClassName:""),o=u.openingBracketRange.getStartPosition(),d=u.closingBracketRange.getStartPosition(),g=i.horizontalGuides===qt.Enabled||i.horizontalGuides===qt.EnabledForActive&&n;if(u.range.startLineNumber===u.range.endLineNumber){g&&r[u.range.startLineNumber-e].push(new jt(-1,u.openingBracketRange.getEndPosition().column,s,new Kt(!1,d.column),-1,-1));continue}const f=this.getVisibleColumnFromPosition(d),m=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),p=Math.min(m,f,u.minVisibleColumnIndentation+1);let _=!1;h.HG(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))<u.closingBracketRange.startColumn-1&&(_=!0);const b=Math.max(o.lineNumber,e),k=Math.min(d.lineNumber,t),v=_?1:0;for(let t=b;t<k+v;t++)r[t-e].push(new jt(p,-1,s,null,t===o.lineNumber?o.column:-1,t===d.lineNumber?d.column:-1));g&&(o.lineNumber>=e&&m>p&&r[o.lineNumber-e].push(new jt(p,-1,s,new Kt(!1,o.column),-1,-1)),d.lineNumber<=t&&f>p&&r[d.lineNumber-e].push(new jt(p,-1,s,new Kt(!_,d.column),-1,-1)))}for(const h of r)h.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return r}getVisibleColumnFromPosition(e){return d.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const i=this.textModel.getOptions(),r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide),o=new Array(t-e+1);let a=-2,l=-1,h=-2,c=-1;for(let u=e;u<=t;u++){const t=u-e,r=this._computeIndentLevel(u-1);if(r>=0)a=u-1,l=r,o[t]=Math.ceil(r/i.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=u-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==h&&(-2===h||h<u-1)){h=-1,c=-1;for(let e=u;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){h=e,c=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(s,l,c)}}return o}_getIndentLevelForWhitespaceLine(e,t,n){const i=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/i.indentSize):t===n||e?Math.ceil(n/i.indentSize):1+Math.floor(n/i.indentSize)}}class Gt{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Qt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Yt(e,t,n,i,r){let s;for(r.spacesDiff=0,r.looksLikeAlignment=!1,s=0;s<t&&s<i;s++){if(e.charCodeAt(s)!==n.charCodeAt(s))break}let o=0,a=0;for(let d=s;d<t;d++){32===e.charCodeAt(d)?o++:a++}let l=0,h=0;for(let d=s;d<i;d++){32===n.charCodeAt(d)?l++:h++}if(o>0&&a>0)return;if(l>0&&h>0)return;const c=Math.abs(a-h),u=Math.abs(o-l);if(0===c)return r.spacesDiff=u,void(u>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(r.looksLikeAlignment=!0));u%c!==0||(r.spacesDiff=u/c)}function Xt(e,t,n){const i=Math.min(e.getLineCount(),1e4);let r=0,s=0,o="",a=0;const l=[2,4,6,8,3,5,7],h=[0,0,0,0,0,0,0,0,0],c=new Qt;for(let g=1;g<=i;g++){const i=e.getLineLength(g),l=e.getLineContent(g),u=i<=65536;let d=!1,f=0,m=0,p=0;for(let t=0,n=i;t<n;t++){const n=u?l.charCodeAt(t):e.getLineCharCode(g,t);if(9===n)p++;else{if(32!==n){d=!0,f=t;break}m++}}if(!d)continue;if(p>0?r++:m>1&&s++,Yt(o,a,l,f,c),c.looksLikeAlignment&&(!n||t!==c.spacesDiff))continue;const _=c.spacesDiff;_<=8&&h[_]++,o=l,a=f}let u=n;r!==s&&(u=r<s);let d=t;if(u){let e=u?0:.1*i;l.forEach((t=>{const n=h[t];n>e&&(e=n,d=t)})),4===d&&h[4]>0&&h[2]>0&&h[2]>=h[4]/2&&(d=2)}return{insertSpaces:u,tabSize:d}}function Zt(e){return(1&e.metadata)>>>0}function Jt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function sn(e){return(64&e.metadata)>>>6===1}function on(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function an(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class hn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Jt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),on(this,!1),an(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),on(this,null!==this.options.glyphMarginClassName),an(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const cn=new hn(null,0,0);cn.parent=cn,cn.left=cn,cn.right=cn,Jt(cn,0);class un{constructor(){this.root=cn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,i,r,s){return this.root===cn?[]:function(e,t,n,i,r,s,o){let a=e.root,l=0,h=0,c=0,u=0;const d=[];let g=0;for(;a!==cn;)if(en(a))tn(a.left,!1),tn(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!en(a.left)){if(h=l+a.maxEnd,h<t){tn(a,!0);continue}if(a.left!==cn){a=a.left;continue}}if(c=l+a.start,c>n)tn(a,!0);else{if(u=l+a.end,u>=t){a.setCachedOffsets(c,u,s);let e=!0;i&&a.ownerId&&a.ownerId!==i&&(e=!1),r&&nn(a)&&(e=!1),o&&!sn(a)&&(e=!1),e&&(d[g++]=a)}tn(a,!0),a.right===cn||en(a.right)||(l+=a.delta,a=a.right)}}return tn(e.root,!1),d}(this,e,t,n,i,r,s)}search(e,t,n,i){return this.root===cn?[]:function(e,t,n,i,r){let s=e.root,o=0,a=0,l=0;const h=[];let c=0;for(;s!==cn;){if(en(s)){tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),s=s.parent;continue}if(s.left!==cn&&!en(s.left)){s=s.left;continue}a=o+s.start,l=o+s.end,s.setCachedOffsets(a,l,i);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),n&&nn(s)&&(e=!1),r&&!sn(s)&&(e=!1),e&&(h[c++]=s),tn(s,!0),s.right===cn||en(s.right)||(o+=s.delta,s=s.right)}return tn(e.root,!1),h}(this,e,t,n,i)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const i=[];let r=0;for(;n!==cn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===cn||en(n.left)?(n.ownerId===t&&(i[r++]=n),tn(n,!0),n.right===cn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),i}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let i=0;for(;t!==cn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===cn||en(t.left)?t.right===cn||en(t.right)?(n[i++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){fn(this,e),this._normalizeDeltaIfNecessary()}delete(e){mn(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let i=0;for(;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;const r=n.start+i,s=n.end+i;n.setCachedOffsets(r,s,t)}acceptReplace(e,t,n,i){const r=function(e,t,n){let i=e.root,r=0,s=0,o=0,a=0;const l=[];let h=0;for(;i!==cn;)if(en(i))tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else{if(!en(i.left)){if(s=r+i.maxEnd,s<t){tn(i,!0);continue}if(i.left!==cn){i=i.left;continue}}o=r+i.start,o>n?tn(i,!0):(a=r+i.end,a>=t&&(i.setCachedOffsets(o,a,0),l[h++]=i),tn(i,!0),i.right===cn||en(i.right)||(r+=i.delta,i=i.right))}return tn(e.root,!1),l}(this,e,e+t);for(let s=0,o=r.length;s<o;s++){mn(this,r[s])}this._normalizeDeltaIfNecessary(),function(e,t,n,i){let r=e.root,s=0,o=0,a=0;const l=i-(n-t);for(;r!==cn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(s-=r.parent.delta),vn(r),r=r.parent;else{if(!en(r.left)){if(o=s+r.maxEnd,o<t){tn(r,!0);continue}if(r.left!==cn){r=r.left;continue}}a=s+r.start,a>n?(r.start+=l,r.end+=l,r.delta+=l,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(r,!0)):(tn(r,!0),r.right===cn||en(r.right)||(s+=r.delta,r=r.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let s=0,o=r.length;s<o;s++){const o=r[s];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,gn(o,e,e+t,n,i),o.maxEnd=o.end,fn(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==cn;)t.left===cn||en(t.left)?t.right===cn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,vn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function dn(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function gn(e,t,n,i,r){const s=function(e){return(24&e.metadata)>>>3}(e),o=0===s||2===s,a=1===s||2===s,l=n-t,h=i,c=Math.min(l,h),u=e.start;let d=!1;const g=e.end;let f=!1;t<=u&&g<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,d=!0,e.end=t,f=!0);{const e=r?1:l>0?2:0;!d&&dn(u,o,t,e)&&(d=!0),!f&&dn(g,a,t,e)&&(f=!0)}if(c>0&&!r){const e=l>h?2:0;!d&&dn(u,o,t+c,e)&&(d=!0),!f&&dn(g,a,t+c,e)&&(f=!0)}{const i=r?1:0;!d&&dn(u,o,n,i)&&(e.start=t+h,d=!0),!f&&dn(g,a,n,i)&&(e.end=t+h,f=!0)}const m=h-l;d||(e.start=Math.max(0,u+m)),f||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function fn(e,t){if(e.root===cn)return t.parent=cn,t.left=cn,t.right=cn,Jt(t,0),e.root=t,e.root;!function(e,t){let n=0,i=e.root;const r=t.start,s=t.end;for(;;){if(Ln(r,s,i.start+n,i.end+n)<0){if(i.left===cn){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===cn){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=cn,t.right=cn,Jt(t,1)}(e,t),Cn(t.parent);let n=t;for(;n!==e.root&&1===Zt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Zt(t)?(Jt(n.parent,0),Jt(t,0),Jt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,_n(e,n)),Jt(n.parent,0),Jt(n.parent.parent,1),bn(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Zt(t)?(Jt(n.parent,0),Jt(t,0),Jt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,bn(e,n)),Jt(n.parent,0),Jt(n.parent.parent,1),_n(e,n.parent.parent))}return Jt(e.root,0),t}function mn(e,t){let n,i;if(t.left===cn?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===cn?(n=t.left,i=t):(i=function(e){for(;e.left!==cn;)e=e.left;return e}(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Jt(n,0),t.detach(),pn(),vn(n),void(e.root.parent=cn);const r=1===Zt(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Jt(i,Zt(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==cn&&(i.left.parent=i),i.right!==cn&&(i.right.parent=i)),t.detach(),r)return Cn(n.parent),i!==t&&(Cn(i),Cn(i.parent)),void pn();let s;for(Cn(n),Cn(n.parent),i!==t&&(Cn(i),Cn(i.parent));n!==e.root&&0===Zt(n);)n===n.parent.left?(s=n.parent.right,1===Zt(s)&&(Jt(s,0),Jt(n.parent,1),_n(e,n.parent),s=n.parent.right),0===Zt(s.left)&&0===Zt(s.right)?(Jt(s,1),n=n.parent):(0===Zt(s.right)&&(Jt(s.left,0),Jt(s,1),bn(e,s),s=n.parent.right),Jt(s,Zt(n.parent)),Jt(n.parent,0),Jt(s.right,0),_n(e,n.parent),n=e.root)):(s=n.parent.left,1===Zt(s)&&(Jt(s,0),Jt(n.parent,1),bn(e,n.parent),s=n.parent.left),0===Zt(s.left)&&0===Zt(s.right)?(Jt(s,1),n=n.parent):(0===Zt(s.left)&&(Jt(s.right,0),Jt(s,1),_n(e,s),s=n.parent.left),Jt(s,Zt(n.parent)),Jt(n.parent,0),Jt(s.left,0),bn(e,n.parent),n=e.root));Jt(n,0),pn()}function pn(){cn.parent=cn,cn.delta=0,cn.start=0,cn.end=0}function _n(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==cn&&(n.left.parent=t),n.parent=t.parent,t.parent===cn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,vn(t),vn(n)}function bn(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==cn&&(n.right.parent=t),n.parent=t.parent,t.parent===cn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,vn(t),vn(n)}function kn(e){let t=e.end;if(e.left!==cn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==cn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function vn(e){e.maxEnd=kn(e)}function Cn(e){for(;e!==cn;){const t=kn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Ln(e,t,n,i){return e===n?t-i:e-n}class yn{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==wn)return Sn(this.right);let e=this;for(;e.parent!==wn&&e.parent.left!==e;)e=e.parent;return e.parent===wn?wn:e.parent}prev(){if(this.left!==wn)return xn(this.left);let e=this;for(;e.parent!==wn&&e.parent.right!==e;)e=e.parent;return e.parent===wn?wn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const wn=new yn(null,0);function Sn(e){for(;e.left!==wn;)e=e.left;return e}function xn(e){for(;e.right!==wn;)e=e.right;return e}function En(e){return e===wn?0:e.size_left+e.piece.length+En(e.right)}function Nn(e){return e===wn?0:e.lf_left+e.piece.lineFeedCnt+Nn(e.right)}function In(){wn.parent=wn}function Tn(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==wn&&(n.left.parent=t),n.parent=t.parent,t.parent===wn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function An(e,t){const n=t.left;t.left=n.right,n.right!==wn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===wn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Dn(e,t){let n,i;if(t.left===wn?(i=t,n=i.right):t.right===wn?(i=t,n=i.left):(i=Sn(t.right),n=i.right),i===e.root)return e.root=n,n.color=0,t.detach(),In(),void(e.root.parent=wn);const r=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,On(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,On(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==wn&&(i.left.parent=i),i.right!==wn&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,On(e,i)),t.detach(),n.parent.left===n){const t=En(n),i=Nn(n);if(t!==n.parent.size_left||i!==n.parent.lf_left){const r=t-n.parent.size_left,s=i-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=i,Mn(e,n.parent,r,s)}}if(On(e,n.parent),r)return void In();let s;for(;n!==e.root&&0===n.color;)n===n.parent.left?(s=n.parent.right,1===s.color&&(s.color=0,n.parent.color=1,Tn(e,n.parent),s=n.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.right.color&&(s.left.color=0,s.color=1,An(e,s),s=n.parent.right),s.color=n.parent.color,n.parent.color=0,s.right.color=0,Tn(e,n.parent),n=e.root)):(s=n.parent.left,1===s.color&&(s.color=0,n.parent.color=1,An(e,n.parent),s=n.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.left.color&&(s.right.color=0,s.color=1,Tn(e,s),s=n.parent.left),s.color=n.parent.color,n.parent.color=0,s.left.color=0,An(e,n.parent),n=e.root));n.color=0,In()}function Rn(e,t){for(On(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Tn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,An(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&An(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Tn(e,t.parent.parent))}e.root.color=0}function Mn(e,t,n,i){for(;t!==e.root&&t!==wn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function On(e,t){let n=0,i=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=En((t=t.parent).left)-t.size_left,i=Nn(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}wn.parent=wn,wn.left=wn,wn.right=wn,wn.color=0;var Bn=n(7729);const Fn=65535;function Pn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class zn{constructor(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}}function Vn(e,t=!0){const n=[0];let i=1;for(let r=0,s=e.length;r<s;r++){const t=e.charCodeAt(r);13===t?r+1<s&&10===e.charCodeAt(r+1)?(n[i++]=r+2,r++):n[i++]=r+1:10===t&&(n[i++]=r+1)}return t?Pn(n):n}class Wn{constructor(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}}class qn{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Hn{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==wn&&e.iterate(e.root,(e=>(e!==wn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Un{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let i=0;i<n.length;i++){const r=n[i];(null===r.node.parent||r.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class jn{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new qn("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=wn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let i=null;for(let r=0,s=e.length;r<s;r++)if(e[r].buffer.length>0){e[r].lineStarts||(e[r].lineStarts=Vn(e[r].buffer));const t=new Wn(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,t)}this._searchCache=new Un(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=Fn,n=t-Math.floor(21845),i=2*n;let r="",s=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),l=a.length;if(s<=n||s+l<i)return r+=a,s+=l,!0;const h=r.replace(/\r\n|\r|\n/g,e);return o.push(new qn(h,Vn(h))),r=a,s=l,!0})),s>0){const t=r.replace(/\r\n|\r|\n/g,e);o.push(new qn(t,Vn(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Hn(this,e)}getOffsetAt(e,t){let n=0,i=this.root;for(;i!==wn;)if(i.left!==wn&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;return n+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const i=e;for(;t!==wn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){const e=i-this.getOffsetAt(n+1,1);return new f.y(n+1,e+1)}return new f.y(n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===wn){const t=i-e-this.getOffsetAt(n+1,1);return new f.y(n+1,t+1)}t=t.right}return new f.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}let n=e.node;const i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let s=i.substring(r+e.remainder,r+n.piece.length);for(n=n.next();n!==wn;){const e=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){s+=e.substring(i,i+t.remainder);break}s+=e.substr(i,n.piece.length),n=n.next()}return s}getLinesContent(){const e=[];let t=0,n="",i=!1;return this.iterate(this.root,(r=>{if(r===wn)return!0;const s=r.piece;let o=s.length;if(0===o)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,h=s.start.line,c=s.end.line;let u=l[h]+s.start.column;if(i&&(10===a.charCodeAt(u)&&(u++,o--),e[t++]=n,n="",i=!1,0===o))return!0;if(h===c)return this._EOLNormalized||13!==a.charCodeAt(u+o-1)?n+=a.substr(u,o):(i=!0,n+=a.substr(u,o-1)),!0;n+=this._EOLNormalized?a.substring(u,Math.max(u,l[h+1]-this._EOLLength)):a.substring(u,l[h+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let i=h+1;i<c;i++)n=this._EOLNormalized?a.substring(l[i],l[i+1]-this._EOLLength):a.substring(l[i],l[i+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==a.charCodeAt(l[c]+s.end.column-1)?n=a.substr(l[c],s.end.column):(i=!0,0===s.end.column?t--:n=a.substr(l[c],s.end.column-1)),!0})),i&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],i=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(i)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,i,r,s,o,a,l,h,c){const u=this._buffers[e.piece.bufferIndex],d=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,r),f=this.offsetInBuffer(e.piece.bufferIndex,s);let p;const _={line:0,column:0};let b,k;t._wordSeparators?(b=u.buffer.substring(g,f),k=e=>e+g,t.reset(0)):(b=u.buffer,k=e=>e,t.reset(g));do{if(p=t.next(b),p){if(k(p.index)>=f)return h;this.positionInBuffer(e,k(p.index)-d,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,r,_),s=_.line===r.line?_.column-r.column+i:_.column+1,o=s+p[0].length;if(c[h++]=(0,Bn.dr)(new m.Q(n+t,s,n+t,o),p,a),k(p.index)+p[0].length>=f)return h;if(h>=l)return h}}while(p);return h}findMatchesLineByLine(e,t,n,i){const r=[];let s=0;const o=new Bn.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let h=this.positionInBuffer(a.node,a.remainder);const c=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,h,c,t,n,i,s,r),r;let u=e.startLineNumber,d=a.node;for(;d!==l.node;){const l=this.getLineFeedCnt(d.piece.bufferIndex,h,d.piece.end);if(l>=1){const a=this._buffers[d.piece.bufferIndex].lineStarts,c=this.offsetInBuffer(d.piece.bufferIndex,d.piece.start),g=a[h.line+l],f=u===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(d,o,u,f,h,this.positionInBuffer(d,g-c),t,n,i,s,r),s>=i)return r;u+=l}const c=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const a=this.getLineContent(u).substring(c,e.endColumn-1);return s=this._findMatchesInLine(t,o,a,e.endLineNumber,c,s,r,n,i),r}if(s=this._findMatchesInLine(t,o,this.getLineContent(u).substr(c),u,c,s,r,n,i),s>=i)return r;u++,a=this.nodeAt2(u,1),d=a.node,h=this.positionInBuffer(a.node,a.remainder)}if(u===e.endLineNumber){const a=u===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(u).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,o,l,e.endLineNumber,a,s,r,n,i),r}const g=u===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,o,u,g,h,c,t,n,i,s,r),r}_findMatchesInLine(e,t,n,i,r,s,o,a,l){const h=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,c=n.length;let u=-a;for(;-1!==(u=n.indexOf(t,u+a));)if((!h||(0,Bn.wC)(h,n,c,u,a))&&(o[s++]=new me.Dg(new m.Q(i,u+1+r,i,u+1+a+r),null),s>=l))return s;return s}let c;t.reset(0);do{if(c=t.next(n),c&&(o[s++]=(0,Bn.dr)(new m.Q(i,c.index+1+r,i,c.index+1+c[0].length+r),c,a),s>=l))return s}while(c);return s}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==wn){const{node:n,remainder:i,nodeStartOffset:r}=this.nodeAt(e),s=n.piece,o=s.bufferIndex,a=this.positionInBuffer(n,i);if(0===n.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&r+s.length===e&&t.length<Fn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(r===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(r+n.piece.length>e){const e=[];let r=new Wn(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(o,s.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,i)){const e={line:r.start.line+1,column:0};r=new Wn(r.bufferIndex,e,r.end,this.getLineFeedCnt(r.bufferIndex,e,r.end),r.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,i-1)){const r=this.positionInBuffer(n,i-1);this.deleteNodeTail(n,r),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,a)}else this.deleteNodeTail(n,a);const l=this.createNewPieces(t);r.length>0&&this.rbInsertRight(n,r);let h=n;for(let t=0;t<l.length;t++)h=this.rbInsertRight(h,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===wn)return;const n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,s=i.node;if(r===s){const s=this.positionInBuffer(r,n.remainder),o=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){const e=r.next();return Dn(this,r),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(r,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,s),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,s,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,a),this._searchCache.validate(e),0===r.piece.length&&o.push(r);const l=this.positionInBuffer(s,i.remainder);this.deleteNodeHead(s,l),0===s.piece.length&&o.push(s);for(let c=r.next();c!==wn&&c!==s;c=c.next())o.push(c);const h=0===r.piece.length?r.prev():r;this.deleteNodes(o),this.validateCRLFWithNextNode(h),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const i=t.piece,r={line:i.start.line+1,column:0},s=new Wn(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=s,e+="\n",Mn(this,t,-1,-1),0===t.piece.length&&n.push(t)}const i=this.createNewPieces(e);let r=this.rbInsertLeft(t,i[i.length-1]);for(let s=i.length-2;s>=0;s--)r=this.rbInsertLeft(r,i[s]);this.validateCRLFWithPrevNode(r),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]);let r=i;for(let s=1;s<n.length;s++)r=this.rbInsertRight(r,n[s]);this.validateCRLFWithPrevNode(i)}positionInBuffer(e,t,n){const i=e.piece,r=e.piece.bufferIndex,s=this._buffers[r].lineStarts,o=s[i.start.line]+i.start.column+t;let a=i.start.line,l=i.end.line,h=0,c=0,u=0;for(;a<=l&&(h=a+(l-a)/2|0,u=s[h],h!==l);)if(c=s[h+1],o<u)l=h-1;else{if(!(o>=c))break;a=h+1}return n?(n.line=h,n.column=o-u,null):{line:h,column:o-u}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;const r=i[n.line+1],s=i[n.line]+n.column;if(r>s+1)return n.line-t.line;const o=s-1;return 13===this._buffers[e].buffer.charCodeAt(o)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Dn(this,e[t])}createNewPieces(e){if(e.length>Fn){const t=[];for(;e.length>Fn;){const n=e.charCodeAt(65534);let i;13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,Fn),e=e.substring(Fn));const r=Vn(i);t.push(new Wn(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new qn(i,r))}const n=Vn(e);return t.push(new Wn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new qn(e,n)),t}let t=this._buffers[0].buffer.length;const n=Vn(e,!1);let i=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},i=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const r=this._buffers[0].buffer.length,s=this._buffers[0].lineStarts.length-1,o={line:s,column:r-this._buffers[0].lineStarts[s]},a=new Wn(0,i,o,this.getLineFeedCnt(0,i,o),r-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let n=this.root,i="";const r=this._searchCache.get2(e);if(r){n=r.node;const s=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),o=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const i=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return o.substring(a+s,a+i-t)}i=o.substring(a+s,a+n.piece.length)}else{let r=0;const s=e;for(;n!==wn;)if(n.left!==wn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:r,nodeStartLineNumber:s-(e-1-n.lf_left)}),a.substring(l+i,l+o-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),r=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=r.substring(s+t,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==wn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const r=this.getAccumulatedValue(n,0),s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=e.substring(s,s+r-t),i}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=e.substr(t,n.piece.length)}n=n.next()}return i}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==wn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(t!==r)return{index:t,remainder:0}}return{index:r,remainder:i.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),s=t,o=this.offsetInBuffer(n.bufferIndex,s),a=this.getLineFeedCnt(n.bufferIndex,n.start,s),l=a-i,h=o-r,c=n.length+h;e.piece=new Wn(n.bufferIndex,n.start,s,a,c),Mn(this,e,h,l)}deleteNodeHead(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),s=t,o=this.getLineFeedCnt(n.bufferIndex,s,n.end),a=o-i,l=r-this.offsetInBuffer(n.bufferIndex,s),h=n.length+l;e.piece=new Wn(n.bufferIndex,s,n.end,o,h),Mn(this,e,l,a)}shrinkNode(e,t,n){const i=e.piece,r=i.start,s=i.end,o=i.length,a=i.lineFeedCnt,l=t,h=this.getLineFeedCnt(i.bufferIndex,i.start,l),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new Wn(i.bufferIndex,i.start,l,h,c),Mn(this,e,c-o,h-a);const u=new Wn(i.bufferIndex,n,s,this.getLineFeedCnt(i.bufferIndex,n,s),this.offsetInBuffer(i.bufferIndex,s)-this.offsetInBuffer(i.bufferIndex,n)),d=this.rbInsertRight(e,u);this.validateCRLFWithPrevNode(d)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const r=Vn(t,!1);for(let u=0;u<r.length;u++)r[u]+=i;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));const s=this._buffers[0].lineStarts.length-1,o={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,h=this.getLineFeedCnt(0,e.piece.start,o),c=h-l;e.piece=new Wn(e.piece.bufferIndex,e.piece.start,o,h,a),this._lastChangeBufferPos=o,Mn(this,e,t.length,c)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let i=0;for(;t!==wn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,i=0;for(;n!==wn;)if(n.left!==wn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,s),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==wn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),i=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:i}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===wn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;if(i===n.length-1)return!1;return!(n[i+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==wn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],i=this._buffers[e.piece.bufferIndex].lineStarts;let r;r=0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new Wn(e.piece.bufferIndex,e.piece.start,r,o,s),Mn(this,e,-1,-1),0===e.piece.length&&n.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,h=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Wn(t.piece.bufferIndex,a,t.piece.end,h,l),Mn(this,t,-1,-1),0===t.piece.length&&n.push(t);const c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(let u=0;u<n.length;u++)Dn(this,n[u])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Dn(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},i=e.length-1,r=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new Wn(e.bufferIndex,t,e.end,r,i),Mn(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===wn)return t(wn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===wn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,i=this.offsetInBuffer(n.bufferIndex,n.start),r=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(i,r)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),i=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,i)}rbInsertRight(e,t){const n=new yn(t,1);n.left=wn,n.right=wn,n.parent=wn,n.size_left=0,n.lf_left=0;if(this.root===wn)this.root=n,n.color=0;else if(e.right===wn)e.right=n,n.parent=e;else{const t=Sn(e.right);t.left=n,n.parent=t}return Rn(this,n),n}rbInsertLeft(e,t){const n=new yn(t,1);if(n.left=wn,n.right=wn,n.parent=wn,n.size_left=0,n.lf_left=0,this.root===wn)this.root=n,n.color=0;else if(e.left===wn)e.left=n,n.parent=e;else{const t=xn(e.left);t.right=n,n.parent=t}return Rn(this,n),n}}class Kn extends r.jG{constructor(e,t,n,r,s,o,a){super(),this._onDidChangeContent=this._register(new i.vl),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=r,this._mightContainUnusualLineTerminators=s,this._pieceTree=new jn(e,n,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,i=this.getPositionAt(e),r=this.getPositionAt(n);return new m.Q(i.lineNumber,i.column,r.lineNumber,r.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),i=this.getOffsetAt(e.endLineNumber,e.endColumn);let r=0;const s=this._getEndOfLine(t),o=this.getEOL();if(s.length!==o.length){r=(s.length-o.length)*(e.endLineNumber-e.startLineNumber)}return i-n+r}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const i=e.startLineNumber,r=e.endLineNumber;for(let t=i;t<=r;t++){const s=this.getLineContent(t),o=t===i?e.startColumn-1:0,a=t===r?e.endColumn-1:s.length;for(let e=o;e<a;e++)h.pc(s.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(r-i),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=h.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=h.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let i=this._mightContainRTL,r=this._mightContainUnusualLineTerminators,s=this._mightContainNonBasicASCII,o=!0,a=[];for(let p=0;p<e.length;p++){const t=e[p];o&&t._isTracked&&(o=!1);const n=t.range;if(t.text){let e=!0;s||(e=!h.aC(t.text),s=e),!i&&e&&(i=h.E_(t.text)),!r&&e&&(r=h.$X(t.text))}let l="",c=0,d=0,g=0;if(t.text){let e;[c,d,g,e]=(0,u.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}a[p]={sortIndex:p,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:c,firstLineLength:d,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Kn._sortOpsAscending);let l=!1;for(let h=0,u=a.length-1;h<u;h++){const e=a[h].range.getEndPosition(),t=a[h+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const c=n||t?Kn._getInverseEditRanges(a):[],d=[];if(t)for(let u=0;u<a.length;u++){const e=a[u],t=c[u];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let i="";n===t.startLineNumber&&(i=this.getLineContent(e.range.startLineNumber),-1!==h.HG(i))||d.push({lineNumber:n,oldContent:i})}}let g=null;if(n){let e=0;g=[];for(let t=0;t<a.length;t++){const n=a[t],i=c[t],r=this.getValueInRange(n.range),s=n.rangeOffset+e;e+=n.text.length-r.length,g[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:i,text:r,textChange:new Dt(n.rangeOffset,r,s,n.text)}}l||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=i,this._mightContainUnusualLineTerminators=r,this._mightContainNonBasicASCII=s;const f=this._doApplyEdits(a);let m=null;if(t&&d.length>0){d.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=d.length;e<t;e++){const t=d[e].lineNumber;if(e>0&&d[e-1].lineNumber===t)continue;const n=d[e].oldContent,i=this.getLineContent(t);0!==i.length&&i!==n&&-1===h.HG(i)&&m.push(t)}}return this._onDidChangeContent.fire(),new me.F4(g,f,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,i=e[e.length-1].range,r=new m.Q(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn);let s=n.startLineNumber,o=n.startColumn;const a=[];for(let u=0,g=e.length;u<g;u++){const n=e[u],i=n.range;t=t||n.forceMoveMarkers,a.push(this.getValueInRange(new m.Q(s,o,i.startLineNumber,i.startColumn))),n.text.length>0&&a.push(n.text),s=i.endLineNumber,o=i.endColumn}const l=a.join(""),[h,c,d]=(0,u.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:r,rangeOffset:this.getOffsetAt(r.startLineNumber,r.startColumn),rangeLength:this.getValueLengthInRange(r,0),text:l,eolCount:h,firstLineLength:c,lastLineLength:d,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Kn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const i=e[n],r=i.range.startLineNumber,s=i.range.startColumn,o=i.range.endLineNumber,a=i.range.endColumn;if(r===o&&s===a&&0===i.text.length)continue;i.text?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,i.text,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength);const l=new m.Q(r,s,o,a);t.push({range:l,rangeLength:i.rangeLength,text:i.text,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)}static _getInverseEditRanges(e){const t=[];let n=0,i=0,r=null;for(let s=0,o=e.length;s<o;s++){const o=e[s];let a,l,h;if(r?r.range.endLineNumber===o.range.startLineNumber?(a=n,l=i+(o.range.startColumn-r.range.endColumn)):(a=n+(o.range.startLineNumber-r.range.endLineNumber),l=o.range.startColumn):(a=o.range.startLineNumber,l=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;h=1===e?new m.Q(a,l,a,l+o.firstLineLength):new m.Q(a,l,a+e-1,o.lastLineLength+1)}else h=new m.Q(a,l,a,l);n=h.endLineNumber,i=h.endColumn,t.push(h),r=o}return t}static _sortOpsAscending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class $n{constructor(e,t,n,i,r,s,o,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=r,this._containsRTL=s,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let r=0,s=n.length;r<s;r++){const e=n[r].buffer.replace(/\r\n|\r|\n/g,t),i=Vn(e);n[r]=new qn(e,i)}const i=new Kn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:i,disposable:i}}}class Gn{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&h.LU(e)&&(this.BOM=h.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,i=0,r=0,s=0,o=!0;for(let l=0,h=t.length;l<h;l++){const a=t.charCodeAt(l);13===a?l+1<h&&10===t.charCodeAt(l+1)?(s++,e[n++]=l+2,l++):(i++,e[n++]=l+1):10===a?(r++,e[n++]=l+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new zn(Pn(e),i,r,s,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new qn(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=h.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=h.$X(e)))}finish(e=!0){return this._finish(),new $n(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Vn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Qn=n(6571),Yn=n(2083),Xn=n(1940),Zn=n(8381),Jn=n(4444);const ei=new class{clone(){return this}equals(e){return this===e}};class ti{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const i=this._store.slice(0,e),r=this._store.slice(e+t),s=function(e,t){const n=[];for(let i=0;i<e;i++)n[i]=t;return n}(n,this._default);this._store=i.concat(s,r)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let i=0;i<t;i++)n[i]=this._default;this._store=(0,o.nK)(this._store,e,n)}}class ni{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class ii{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new ni(e,[t]))}finalize(){return this._tokens}}class ri{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=ri.defaultTokenMetadata,i=new Uint32Array(2);return i[0]=e.length,i[1]=n,new ri(i,e,t)}static createFromTextAndMetadata(e,t){let n=0,i="";const r=new Array;for(const{text:s,metadata:o}of e)r.push(n+s.length,o),n+=s.length,i+=s;return new ri(new Uint32Array(r),i,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof ri&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const i=t<<1,r=i+(n<<1);for(let s=i;s<r;s++)if(this._tokens[s]!==e._tokens[s])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Ze.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Ze.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Ze.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Ze.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Ze.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Ze.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ri.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new si(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let i=0;i<n;i++)e[i<<1]=e[i+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,i=(e.length>>>1)-1;for(;n<i;){const r=n+Math.floor((i-n)/2),s=e[r<<1];if(s===t)return r+1;s<t?n=r+1:s>t&&(i=r)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,i="";const r=new Array;let s=0;for(;;){const o=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==o&&(null===a||o<=a.offset)){i+=this._text.substring(s,o);const e=this._tokens[1+(t<<1)];r.push(i.length,e),t++,s=o}else{if(!a)break;if(a.offset>s){i+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];r.push(i.length,e),s=a.offset}i+=a.text,r.push(i.length,a.tokenMetadata),n++}}return new ri(new Uint32Array(r),i,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class si{constructor(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let r=this._firstTokenIndex,s=e.getCount();r<s;r++){if(e.getStartOffset(r)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof si&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),i=this._source.getEndOffset(t);let r=this._source.getTokenText(t);return n<this._startOffset&&(r=r.substring(this._startOffset-n)),i>this._endOffset&&(r=r.substring(0,r.length-(i-this._endOffset))),r}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class oi{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new li(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class ai extends oi{constructor(e,t,n,i){super(e,t),this._textModel=n,this._languageIdCodec=i}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const i=this.getFirstInvalidLine();if(!i||i.lineNumber>t)break;const r=this._textModel.getLineContent(i.lineNumber),s=ui(this._languageIdCodec,n,this.tokenizationSupport,r,!0,i.startState);e.add(i.lineNumber,s.tokens),this.store.setEndState(i.lineNumber,s.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const i=this._textModel.getLanguageId(),r=this._textModel.getLineContent(e.lineNumber),s=r.substring(0,e.column-1)+t+r.substring(e.column-1),o=ui(this._languageIdCodec,i,this.tokenizationSupport,s,!0,n),a=new ri(o.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const i=e.lineNumber,r=e.column,s=this.getStartState(i);if(!s)return null;const o=this._textModel.getLineContent(i),a=o.substring(0,r-1)+n+o.substring(r-1+t),l=this._textModel.getLanguageIdAtPosition(i,0),h=ui(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new ri(h.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let i=this.guessStartState(t);const r=this._textModel.getLanguageId();for(let s=t;s<=n;s++){const t=this._textModel.getLineContent(s),n=ui(this._languageIdCodec,r,this.tokenizationSupport,t,!0,i);e.add(s,n.tokens),i=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let i=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(o)),t=e,i=this.getStartState(o),i)))break}i||(i=this.tokenizationSupport.getInitialState()),n.reverse();const r=this._textModel.getLanguageId();let s=i;for(const o of n){s=ui(this._languageIdCodec,r,this.tokenizationSupport,o,!1,s).endState}return s}}class li{constructor(e){this.lineCount=e,this._tokenizationStateStore=new hi,this._invalidEndStatesLineNumbers=new ci,this._invalidEndStatesLineNumbers.addRange(new Jn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Jn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Jn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,u.W)(t.text);this.acceptChange(new Qn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Jn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class hi{constructor(){this._lineEndStates=new ti(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class ci{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Jn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Jn.L(n.start,e):this._ranges.splice(t,1,new Jn.L(n.start,e),new Jn.L(e+1,n.endExclusive))}}addRange(e){Jn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let i=n;for(;!(i>=this._ranges.length||e.endExclusive<this._ranges[i].start);)i++;const r=t-e.length;for(let s=i;s<this._ranges.length;s++)this._ranges[s]=this._ranges[s].delta(r);if(n===i){const i=new Jn.L(e.start,e.start+t);i.isEmpty||this._ranges.splice(n,0,i)}else{const t=Math.min(e.start,this._ranges[n].start),s=Math.max(e.endExclusive,this._ranges[i-1].endExclusive),o=new Jn.L(t,s+r);o.isEmpty?this._ranges.splice(n,i-n):this._ranges.splice(n,i-n,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function ui(e,t,n,i,r,s){let o=null;if(n)try{o=n.tokenizeEncoded(i,r,s.clone())}catch(a){(0,l.dz)(a)}return o||(o=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new Yn.rY(n,null===t?ei:t)}(e.encodeLanguageId(t),s)),ri.convertToEndOffset(o.tokens,i.length),o}class di{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Xn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,s._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new ii,n=Zn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Qn.M(e,t))}}class gi{constructor(){this._onDidChangeVisibleRanges=new i.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new fi((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class fi{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Qn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class mi extends r.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Xn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,o.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class pi extends r.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new i.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class _i extends pi{constructor(e,t,n,i){super(t,n,i),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=Yn.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new ri(n,t,this._languageIdCodec)}return ri.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var bi=n(4432);const ki=new Uint32Array(0).buffer;class vi{static deleteBeginning(e,t){return null===e||e===ki?e:vi.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===ki)return e;const n=Ci(e),i=n[n.length-2];return vi.delete(e,t,i)}static delete(e,t,n){if(null===e||e===ki||t===n)return e;const i=Ci(e),r=i.length>>>1;if(0===t&&i[i.length-2]===n)return ki;const s=ri.findIndexInTokensArray(i,t),o=s>0?i[s-1<<1]:0;if(n<i[s<<1]){const o=n-t;for(let e=s;e<r;e++)i[e<<1]-=o;return e}let a,l;o!==t?(i[s<<1]=t,a=s+1<<1,l=t):(a=s<<1,l=o);const h=n-t;for(let u=s+1;u<r;u++){const e=i[u<<1]-h;e>l&&(i[a++]=e,i[a++]=i[1+(u<<1)],l=e)}if(a===i.length)return e;const c=new Uint32Array(a);return c.set(i.subarray(0,a),0),c.buffer}static append(e,t){if(t===ki)return e;if(e===ki)return t;if(null===e)return e;if(null===t)return null;const n=Ci(e),i=Ci(t),r=i.length>>>1,s=new Uint32Array(n.length+i.length);s.set(n,0);let o=n.length;const a=n[n.length-2];for(let l=0;l<r;l++)s[o++]=i[l<<1]+a,s[o++]=i[1+(l<<1)];return s.buffer}static insert(e,t,n){if(null===e||e===ki)return e;const i=Ci(e),r=i.length>>>1;let s=ri.findIndexInTokensArray(i,t);if(s>0){i[s-1<<1]===t&&s--}for(let o=s;o<r;o++)i[o<<1]+=n;return e}}function Ci(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class Li{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==ki)return new ri(Ci(i),n,this._languageIdCodec);const r=new Uint32Array(2);return r[0]=n.length,r[1]=yi(this._languageIdCodec.encodeLanguageId(e)),new ri(r,n,this._languageIdCodec)}static _massageTokens(e,t,n){const i=n?Ci(n):null;if(0===t){let t=!1;if(i&&i.length>1&&(t=Ze.x.getLanguageId(i[1])!==e),!t)return ki}if(!i||0===i.length){const n=new Uint32Array(2);return n[0]=t,n[1]=yi(e),n.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let i=0;i<t;i++)n[i]=null;this._lineTokens=o.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,i,r){const s=Li._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,i);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=s,!!r&&!Li._equals(o,s)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=Ci(e),i=Ci(t);if(n.length!==i.length)return!1;for(let r=0,s=n.length;r<s;r++)if(n[r]!==i[r])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new f.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=vi.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=vi.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let i=null;n<this._len&&(i=vi.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=vi.append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=vi.deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=vi.insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=vi.insert(this._lineTokens[i],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];let s=0,o=0,a=!1;for(let e=r.startLineNumber;e<=r.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!0)&&(a=!0,s=e,o=e)}a&&n.push({fromLineNumber:s,toLineNumber:o})}return{changes:n}}}function yi(e){return(32768|e|2<<24|1024)>>>0}class wi{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const i=t[0].getRange(),r=t[t.length-1].getRange();if(!i||!r)return e;n=e.plusRange(i).plusRange(r)}let i=null;for(let r=0,s=this._pieces.length;r<s;r++){const e=this._pieces[r];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(r,1),r--,s--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};continue}const[t,o]=e.split(n);t.isEmpty()?i=i||{index:r}:o.isEmpty()||(this._pieces.splice(r,1,t,o),r++,s++,i=i||{index:r})}return i=i||{index:this._pieces.length},t.length>0&&(this._pieces=o.nK(this._pieces,i.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const i=n[wi._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!i)return t;const r=t.getCount(),s=i.getCount();let o=0;const a=[];let l=0,h=0;const c=(e,t)=>{e!==h&&(h=e,a[l++]=e,a[l++]=t)};for(let u=0;u<s;u++){const e=i.getStartCharacter(u),n=i.getEndCharacter(u),s=i.getMetadata(u),a=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?16384:0)|(16&s?16744448:0)|(32&s?4278190080:0))>>>0,l=~a>>>0;for(;o<r&&t.getEndOffset(o)<=e;)c(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<r&&t.getStartOffset(o)<e&&c(e,t.getMetadata(o));o<r&&t.getEndOffset(o)<n;)c(t.getEndOffset(o),t.getMetadata(o)&l|s&a),o++;if(o<r)c(n,t.getMetadata(o)&l|s&a),t.getEndOffset(o)===n&&o++;else{const e=Math.min(Math.max(0,o-1),r-1);c(n,t.getMetadata(e)&l|s&a)}}for(;o<r;)c(t.getEndOffset(o),t.getMetadata(o)),o++;return new ri(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,i=e.length-1;for(;n<i;){let r=n+Math.floor((i-n)/2);if(e[r].endLineNumber<t)n=r+1;else{if(!(e[r].startLineNumber>t)){for(;r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber;)r--;return r}i=r-1}}return n}acceptEdit(e,t,n,i,r){for(const s of this._pieces)s.acceptEdit(e,t,n,i,r)}}var Si,xi=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Ei=function(e,t){return function(n,i){t(n,i,e)}};let Ni=Si=class extends Ut{constructor(e,t,n,s,o,a,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=s,this._languageService=o,this._languageConfigurationService=a,this._treeSitterService=l,this._semanticTokens=new wi(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new i.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new i.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new r.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(i.Jh.filter(Yn.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Ii(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new _i(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){Yn.OB.get(this._languageId)?this._tokens instanceof _i||this.createTokens(!0):this._tokens instanceof Ii||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,i]=(0,u.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,i,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),i=this.getLineTokens(t.lineNumber),r=i.findTokenIndexAtOffset(t.column-1),[s,o]=Si._findLanguageBoundaries(i,r),a=(0,v.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(r>0&&s===t.column-1){const[s,o]=Si._findLanguageBoundaries(i,r-1),a=(0,v.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r-1)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let i=0;for(let s=t;s>=0&&e.getLanguageId(s)===n;s--)i=e.getStartOffset(s);let r=e.getLineContent().length;for(let s=t,o=e.getCount();s<o&&e.getLanguageId(s)===n;s++)r=e.getEndOffset(s);return[i,r]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new f.y(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Ni=Si=xi([Ei(4,k.L),Ei(5,se),Ei(6,bi.ITreeSitterParserService)],Ni);class Ii extends pi{constructor(e,t,n,i){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new r.HE),this._tokens=new Li(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new r.HE),this._attachedViewStates=this._register(new r.$w),this._register(Yn.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(i.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new mi((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new li(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Yn.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new ai(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new di(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new Li(this._languageIdCodec),this._debugBackgroundStates=new li(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,u.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Qn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new ii,{heuristicTokens:i}=this._tokenizer.tokenizeHeuristically(n,e,t),r=this.setTokens(n.finalize());if(i)for(const s of r.changes)this._backgroundTokenizer.value?.requestTokens(s.fromLineNumber,s.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new ii;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const i=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(i)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const i=this._textModel.validatePosition(new f.y(e,t));return this.forceTokenization(i.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(i,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const i=this._textModel.validatePosition(e);return this.forceTokenization(i.lineNumber),this._tokenizer.tokenizeLineWithEdit(i,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Ti{constructor(){this.changeType=1}}class Ai{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",i=0;for(const r of t)n+=e.substring(i,r.column-1),i=r.column-1,n+=r.options.content;return n+=e.substring(i),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Ai(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Ai(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,i,r){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=i,this.order=r}}class Di{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class Ri{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Mi{constructor(e,t,n,i){this.changeType=4,this.injectedTexts=i,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class Oi{constructor(){this.changeType=5}}class Bi{constructor(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.versionId,r=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing;return new Bi(n,i,r,s)}}class Fi{constructor(e){this.changes=e}}class Pi{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Bi.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Pi._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Pi(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.eol,r=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:i,isEolChange:e.isEolChange&&t.isEolChange,versionId:r,isUndoing:s,isRedoing:o,isFlush:a}}}const zi=(0,K.u1)("undoRedoService");class Vi{static{this._ID=0}constructor(){this.id=Vi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Vi}}class Wi{static{this._ID=0}constructor(){this.id=Wi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Wi}}var qi,Hi=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Ui=function(e,t){return function(n,i){t(n,i,e)}};function ji(e,t){let n;return n="string"===typeof e?function(e){const t=new Gn;return t.acceptChunk(e),t.finish()}(e):me.nk(e)?function(e){const t=new Gn;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Ki=0;class $i{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}}}const Gi=()=>{throw new Error("Invalid change accessor")};let Qi=class extends r.jG{static{qi=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:_.tabSize,indentSize:_.indentSize,insertSpaces:_.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:_.trimAutoWhitespace,largeFileOptimizations:_.largeFileOptimizations,bracketPairColorizationOptions:_.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Xt(e,t.tabSize,t.insertSpaces);return new me.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new me.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,r.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,s=null,o,a,l,u){super(),this._undoRedoService=o,this._languageService=a,this._languageConfigurationService=l,this.instantiationService=u,this._onWillDispose=this._register(new i.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new lr((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new i.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new i.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new i.vl),this._eventEmitter=this._register(new hr),this._languageSelectionListener=this._register(new r.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new gi,Ki++,this.id="$model"+Ki,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?c.r.parse("inmemory://model/"+Ki):s,this._attachedEditorCount=0;const{textBuffer:d,disposable:g}=ji(e,n.defaultEOL);this._buffer=d,this._bufferDisposable=g,this._options=qi.resolveOptions(this._buffer,n);const f="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new Lt(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new $t(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Nt(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Ni,this,this._bracketPairs,f,this._attachedViews);const p=this._buffer.getLineCount(),_=this._buffer.getValueLengthInRange(new m.Q(1,1,p,this._buffer.getLineLength(p)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=_>qi.LARGE_FILE_SIZE_THRESHOLD||p>qi.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=_>qi.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=_>qi._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=h.tk(Ki),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Zi,this._commandManager=new Wt(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(f),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Kn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=r.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Pi(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=ji(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,i,r,s,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:r,isRedoing:s,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Zi,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Bi([new Ti],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Bi([new Oi],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,i=t.length;n<i;n++){const i=t[n],r=i.range,s=i.cachedAbsoluteStart-i.start,o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),a=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);i.cachedAbsoluteStart=o,i.cachedAbsoluteEnd=a,i.cachedVersionId=e,i.start=o-s,i.end=a-s,vn(i)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let i=1;i<=n;i++){const n=this._buffer.getLineLength(i);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new me.X2({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r,bracketPairColorizationOptions:s});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const n=Xt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),g(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(h._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i}createSnapshot(e=!1){return new $i(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,i=e.startColumn;let r=Math.floor("number"!==typeof n||isNaN(n)?1:n),s=Math.floor("number"!==typeof i||isNaN(i)?1:i);if(r<1)r=1,s=1;else if(r>t)r=t,s=this.getLineMaxColumn(r);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(r);s>=e&&(s=e)}const o=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof o||isNaN(o)?1:o),h=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,h=1;else if(l>t)l=t,h=this.getLineMaxColumn(l);else if(h<=1)h=1;else{const e=this.getLineMaxColumn(l);h>=e&&(h=e)}return n===r&&i===s&&o===l&&a===h&&e instanceof m.Q&&!(e instanceof p.L)?e:new m.Q(r,s,l,h)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(h.pc(n))return!1}return!0}_validatePosition(e,t,n){const i=Math.floor("number"!==typeof e||isNaN(e)?1:e),r=Math.floor("number"!==typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(i<1)return new f.y(1,1);if(i>s)return new f.y(s,this.getLineMaxColumn(s));if(r<=1)return new f.y(i,1);const o=this.getLineMaxColumn(i);if(r>=o)return new f.y(i,o);if(1===n){const e=this._buffer.getLineCharCode(i,r-2);if(h.pc(e))return new f.y(i,r-1)}return new f.y(i,r)}validatePosition(e){return this._assertNotDisposed(),e instanceof f.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,s,0))return!1;if(1===t){const e=i>1?this._buffer.getLineCharCode(n,i-2):0,t=s>1&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,o=h.pc(e),a=h.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof m.Q&&!(e instanceof p.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),i=t.lineNumber,r=t.column,s=n.lineNumber,o=n.column;{const e=r>1?this._buffer.getLineCharCode(i,r-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,n=h.pc(e),a=h.pc(t);return n||a?i===s&&r===o?new m.Q(i,r-1,s,o-1):n&&a?new m.Q(i,r-1,s,o+1):n?new m.Q(i,r-1,s,o):new m.Q(i,r,s,o+1):new m.Q(i,r,s,o)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new m.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)}findMatches(e,t,n,i,r,s,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>m.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let h;if(l.push(a.reduce(((e,t)=>m.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,i,r).parseSearchRequest();if(!t)return[];h=e=>this.findMatchesLineByLine(e,t,s,o)}else h=t=>Bn.hB.findMatches(this,new Bn.lt(e,n,i,r),t,s,o);return l.map(h).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,i,r).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new m.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),h=this.findMatchesLineByLine(l,t,s,1);return Bn.hB.findNextMatch(this,new Bn.lt(e,n,i,r),o,s),h.length>0?h[0]:(l=new m.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),h=this.findMatchesLineByLine(l,t,s,1),h.length>0?h[0]:null)}return Bn.hB.findNextMatch(this,new Bn.lt(e,n,i,r),o,s)}findPreviousMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);return Bn.hB.findPreviousMatch(this,new Bn.lt(e,n,i,r),o,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof me.Wo?e:new me.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,i){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,i){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let i=!0;if(e)for(let t=0,r=e.length;t<r;t++){const r=e[t];let s=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,i=t.startLineNumber>r.endLineNumber,o=r.startLineNumber>t.endLineNumber;if(!i&&!o){s=!0;break}}if(!s){i=!1;break}}if(i)for(let e=0,r=this._trimAutoWhitespaceLines.length;e<r;e++){const i=this._trimAutoWhitespaceLines[e],r=this.getLineMaxColumn(i);let s=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,o=n[e].text;if(!(i<t.startLineNumber||i>t.endLineNumber)&&(!(i===t.startLineNumber&&t.startColumn===r&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(i===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){s=!1;break}}if(s){const e=new m.Q(i,1,i,r);t.push(new me.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,i)}_applyUndo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(r,t,!0,!1,n,i)}_applyRedo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(r,t,!1,!0,n,i)}_applyUndoRedoEdits(e,t,n,i,r,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=i,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(r)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),s=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==s.length){for(let n=0,i=s.length;n<i;n++){const e=s[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,i=s.length;n<i;n++){const i=s[n],[a]=(0,u.W)(i.text);this._onDidChangeDecorations.fire();const l=i.range.startLineNumber,h=i.range.endLineNumber,c=h-l,d=a,g=Math.min(c,d),m=d-c,p=r-t-m+l,_=p,b=p+d,k=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new f.y(_,1)),this.getOffsetAt(new f.y(b,this.getLineMaxColumn(b))),0),v=Ai.fromDecorations(k),C=new o.j3(v);for(let t=g;t>=0;t--){const n=l+t,i=p+t;C.takeFromEndWhile((e=>e.lineNumber>i));const r=C.takeFromEndWhile((e=>e.lineNumber===i));e.push(new Di(n,this.getLineContent(i),r))}if(g<c){const t=l+g;e.push(new Ri(t+1,h))}if(g<d){const n=new o.j3(v),i=l+g,s=d-g,a=r-t-s+i+1,h=[],c=[];for(let e=0;e<s;e++){const t=a+e;c[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),h[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Mi(i+1,l+d,c,h))}t+=m}this._emitContentChangedEvent(new Bi(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===i.reverseEdits?void 0:i.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Di(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new Fi(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,ar(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let i=null;try{i=t(n)}catch(r){(0,l.dz)(r)}return n.addDecoration=Gi,n.changeDecoration=Gi,n.changeDecorationOptions=Gi,n.removeDecoration=Gi,n.deltaDecorations=Gi,i}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:or[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;const r=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),o=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,o,r),i.setOptions(or[n]),this._decorationsTree.insert(i),i.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,i=t.length;n<i;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,i=!1,r=!1){const s=this.getLineCount(),a=Math.min(s,Math.max(1,e)),l=Math.min(s,Math.max(1,t)),h=this.getLineMaxColumn(l),c=new m.Q(a,1,l,h),u=this._getDecorationsInRange(c,n,i,r);return(0,o.E4)(u,this._decorationProvider.getDecorationsInRange(c,n,i)),u}getDecorationsInRange(e,t=0,n=!1,i=!1,r=!1){const s=this.validateRange(e),a=this._getDecorationsInRange(s,t,n,r);return(0,o.E4)(a,this._decorationProvider.getDecorationsInRange(s,t,n,i)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),i=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Ai.fromDecorations(i).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,i){const r=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,r,s,t,n,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const i=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),s=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,s,i),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const s=i!==r,o=function(e){return!!e.after||!!e.before}(t)!==Xi(n);s||o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,i=!1){const r=this.getVersionId(),s=t.length;let o=0;const a=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const h=new Array(a);for(;o<s||l<a;){let c=null;if(o<s){do{c=this._decorations[t[o++]]}while(!c&&o<s);if(c){if(c.options.after){const e=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(c.options.before){const e=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(c),i||this._onDidChangeDecorations.checkAffectedAndFire(c.options)}}if(l<a){if(!c){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;c=new hn(t,0,0),this._decorations[t]=c}const t=n[l],s=this._validateRangeRelaxedNoAllocations(t.range),o=ar(t.options),a=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),u=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);c.ownerId=e,c.reset(r,a,u,s),c.setOptions(o),c.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),c.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber),i||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(c),h[l]=c.id,l++}else c&&delete this._decorations[c.id]}return h}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function Yi(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Xi(e){return!!e.options.after||!!e.options.before}Qi=qi=Hi([Ui(4,zi),Ui(5,k.L),Ui(6,se),Ui(7,K._Y)],Qi);class Zi{constructor(){this._decorationsTree0=new un,this._decorationsTree1=new un,this._injectedTextDecorationsTree=new un}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,i,r,s){const o=e.getVersionId(),a=this._intervalSearch(t,n,i,r,o,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,n,i,r,s){const o=this._decorationsTree0.intervalSearch(e,t,n,i,r,s),a=this._decorationsTree1.intervalSearch(e,t,n,i,r,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,i,r,s);return o.concat(a).concat(l)}getInjectedTextInInterval(e,t,n,i){const r=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,n,i,!1,r,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),i=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,i).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,i,r){const s=e.getVersionId(),o=this._search(t,n,i,s,r);return this._ensureNodesHaveRanges(e,o)}_search(e,t,n,i,r){if(n)return this._decorationsTree1.search(e,t,i,r);{const n=this._decorationsTree0.search(e,t,i,r),s=this._decorationsTree1.search(e,t,i,r),o=this._injectedTextDecorationsTree.search(e,t,i,r);return n.concat(s).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),i=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(i)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Xi(e)?this._injectedTextDecorationsTree.insert(e):Yi(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Xi(e)?this._injectedTextDecorationsTree.delete(e):Yi(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Xi(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Yi(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i),this._injectedTextDecorationsTree.acceptReplace(e,t,n,i)}}function Ji(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class er{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class tr extends er{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:me.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class nr{constructor(e){this.position=e?.position??me.ZS.Center,this.persistLane=e?.persistLane}}class ir extends er{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?a.Q1.fromHex(e):t.getColor(e.id)}}class rr{static from(e){return e instanceof rr?e:new rr(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class sr{static register(e){return new sr(e)}static createDynamic(e){return new sr(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Ji(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Ji(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new tr(e.overviewRuler):null,this.minimap=e.minimap?new ir(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new nr(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Ji(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Ji(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Ji(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?h.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Ji(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Ji(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Ji(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Ji(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Ji(e.afterContentClassName):null,this.after=e.after?rr.from(e.after):null,this.before=e.before?rr.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}sr.EMPTY=sr.register({description:"empty"});const or=[sr.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),sr.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),sr.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),sr.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function ar(e){return e instanceof sr?e:sr.createDynamic(e)}class lr extends r.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new i.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class hr extends r.jG{constructor(){super(),this._fastEmitter=this._register(new i.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new i.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var cr,ur=n(360),dr=n(5600),gr=n(6456),fr=n(146),mr=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},pr=function(e,t){return function(n,i){t(n,i,e)}};function _r(e){return e.toString()}class br{constructor(e,t,n){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const kr=s.j9||s.zx?1:2;class vr{constructor(e,t,n,i,r,s,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=i,this.heapSize=r,this.sha1=s,this.versionId=o,this.alternativeVersionId=a}}let Cr=class extends r.jG{static{cr=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,r){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=r,this._onModelAdded=this._register(new i.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new i.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new i.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=_.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let i="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(i=Math.max(t,1))}let r=_.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(r="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let s=kr;const o=e.eol;"\r\n"===o?s=2:"\n"===o&&(s=1);let a=_.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=_.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=_.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let c=_.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(c={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:r,detectIndentation:l,defaultEOL:s,trimAutoWhitespace:a,largeFileOptimizations:h,bracketPairColorizationOptions:c}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===s.OS||2===s.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const i="string"===typeof e?e:e.languageId;let r=this._modelCreationOptionsByLanguageAndResource[i+t];if(!r){const e=this._configurationService.getValue("editor",{overrideIdentifier:i,resource:t}),s=this._getEOL(t,i);r=cr._readModelOptions({editor:e,eol:s},n),this._modelCreationOptionsByLanguageAndResource[i+t]=r}return r}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let i=0,r=n.length;i<r;i++){const r=n[i],s=this._models[r],o=s.model.getLanguageId(),a=s.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:o,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:o,resource:a}))continue;const l=t[o+a],h=this.getCreationOptions(o,a,s.model.isForSimpleWidget);cr._setModelOptionsForModel(s.model,h,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,fr.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(_r(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(_r(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(_r(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,i){const r=this.getCreationOptions(t,n,i),s=this._instantiationService.createInstance(Qi,e,t,r,n);if(n&&this._disposedModels.has(_r(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),i=this._getSHA1Computer(),r=!!i.canComputeSHA1(s)&&i.computeSHA1(s)===e.sha1;if(r||e.sharesUndoRedoStack){for(const e of t.past)Vt(e)&&e.matchesResource(n)&&e.setModel(s);for(const e of t.future)Vt(e)&&e.matchesResource(n)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(n,!0,(e=>Vt(e)&&e.matchesResource(n))),r&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=_r(s.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const a=new br(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=a,a}createModel(e,t,n,i=!1){let r;return r=t?this._createModelData(e,t,n,i):this._createModelData(e,Q.vH,n,i),this._onModelAdded.fire(r.model),r.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._models[i].model)}return e}getModel(e){const t=_r(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===gr.ny.file||e.scheme===gr.ny.vscodeRemote||e.scheme===gr.ny.vscodeUserData||e.scheme===gr.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=_r(e.uri),n=this._models[t],i=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let r=!1,s=0;if(i||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)Vt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)Vt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri))}}const o=cr.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(r)if(i||!(s>o)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(o-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>Vt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new vr(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),i,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!i){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,i=e.getLanguageId(),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget);cr._setModelOptionsForModel(e,s,r),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new Lr}};Cr=cr=mr([pr(0,$.pG),pr(1,ur.ITextResourcePropertiesService),pr(2,zi),pr(3,K._Y)],Cr);class Lr{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=Lr.MAX_MODEL_SIZE}computeSHA1(e){const t=new dr.v7,n=e.createSnapshot();let i;for(;i=n.read();)t.update(i);return t.digest()}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>i});const i=(0,n(3591).u1)("textModelService")},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>s});var i=n(1674),r=n(8067);function s(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const i of e.deltas)t[n++]=i.start,t[n++]=i.deleteCount,i.data?(t[n++]=i.data.length,t.set(i.data,n),n+=i.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return r.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],i=e[t+1],r=e[t+2],s=e[t+3];e[t+0]=s,e[t+1]=r,e[t+2]=i,e[t+3]=n}}(t),i.MB.wrap(t)}(t)}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>m,toMultilineTokens2:()=>p});n(5982);var i=n(5724),r=n(3511),s=n(3069),o=n(6677),a=n(4454);class l{static create(e,t){return new l(e,new h(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[i,r,s]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,i),new l(this._startLineNumber+s,r)]}applyEdit(e,t){const[n,i,r]=(0,a.W)(t);this.acceptEdit(e,n,i,r,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new s.y(e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const i=this._tokens.getMaxDeltaLine();if(!(t>=i+1)){if(t<0&&n>=i+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const i=-t;this._startLineNumber-=i,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,i,r){if(0===t&&0===n)return;const s=e.lineNumber-this._startLineNumber;if(s<0)return void(this._startLineNumber+=t);s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,n,i,r)}}class h{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),i=this._getEndCharacter(e-1);return new o.Q(0,t+1,n,i+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const i=t+Math.floor((n-t)/2),r=this._getDeltaLine(i);if(r<e)t=i+1;else{if(!(r>e)){let r=i;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let s=i;for(;s<n&&this._getDeltaLine(s+1)===e;)s++;return new c(this._tokens.subarray(4*r,4*s+4))}n=i-1}}return this._getDeltaLine(t)===e?new c(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,i){const r=this._tokens,s=this._tokenCount;let o=0,a=!1,l=0;for(let h=0;h<s;h++){const s=4*h,c=r[s],u=r[s+1],d=r[s+2],g=r[s+3];if((c>e||c===e&&d>=t)&&(c<n||c===n&&u<=i))a=!0;else{if(0===o&&(l=c),a){const e=4*o;r[e]=c-l,r[e+1]=u,r[e+2]=d,r[e+3]=g}o++}}return this._tokenCount=o,l}split(e,t,n,i){const r=this._tokens,s=this._tokenCount,o=[],a=[];let l=o,c=0,u=0;for(let h=0;h<s;h++){const s=4*h,o=r[s],d=r[s+1],g=r[s+2],f=r[s+3];if(o>e||o===e&&g>=t){if(o<n||o===n&&d<=i)continue;l!==a&&(l=a,c=0,u=o)}l[c++]=o-u,l[c++]=d,l[c++]=g,l[c++]=f}return[new h(new Uint32Array(o)),new h(new Uint32Array(a)),u]}acceptDeleteRange(e,t,n,i,r){const s=this._tokens,o=this._tokenCount,a=i-t;let l=0,h=!1;for(let c=0;c<o;c++){const u=4*c;let d=s[u],g=s[u+1],f=s[u+2];const m=s[u+3];if(d<t||d===t&&f<=n){l++;continue}if(d===t&&g<n)d===i&&f>r?f-=r-n:f=n;else if(d===t&&g===n){if(!(d===i&&f>r)){h=!0;continue}f-=r-n}else if(d<i||d===i&&g<r){if(!(d===i&&f>r)){h=!0;continue}d=t,g=n,f=g+(f-r)}else if(d>i){if(0===a&&!h){l=o;break}d-=a}else{if(!(d===i&&g>=r))throw new Error("Not possible!");e&&0===d&&(g+=e,f+=e),d-=a,g-=r-n,f-=r-n}const p=4*l;s[p]=d,s[p+1]=g,s[p+2]=f,s[p+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,n,i,r,s){const o=0===n&&1===i&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let h=0;h<l;h++){const s=4*h;let l=a[s],c=a[s+1],u=a[s+2];if(!(l<e||l===e&&u<t)){if(l===e&&u===t){if(!o)continue;u+=1}else if(l===e&&c<t&&t<u)0===n?u+=i:u=t;else{if(l===e&&c===t&&o)continue;if(l===e)if(l+=n,0===n)c+=i,u+=i;else{const e=u-c;c=r+(c-t),u=c+e}else l+=n}a[s]=l,a[s+1]=c,a[s+2]=u}}}}class c{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var u=n(154),d=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},g=function(e,t){return function(n,i){t(n,i,e)}};const f=!1;let m=class{constructor(e,t,n,i){this._legend=e,this._themeService=t,this._languageService=n,this._logService=i,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new b}getMetadata(e,t,n){const i=this._languageService.languageIdCodec.encodeLanguageId(n),r=this._hashTable.get(e,t,i);let s;if(r)s=r.metadata;else{let r=this._legend.tokenTypes[e];const o=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;f;const i=this._themeService.getColorTheme().getTokenStyleMetadata(r,o,n);if("undefined"===typeof i)s=2147483647;else{if(s=0,"undefined"!==typeof i.italic){s|=1|(i.italic?1:0)<<11}if("undefined"!==typeof i.bold){s|=2|(i.bold?2:0)<<11}if("undefined"!==typeof i.underline){s|=4|(i.underline?4:0)<<11}if("undefined"!==typeof i.strikethrough){s|=8|(i.strikethrough?8:0)<<11}if(i.foreground){s|=16|i.foreground<<15}0===s&&(s=2147483647)}}else s=2147483647,r="not-in-legend";this._hashTable.add(e,t,i,s)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,i,r){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${i} is outside the previous data (length ${r}).`))}};function p(e,t,n){const i=e.data,r=e.data.length/5|0,s=Math.max(Math.ceil(r/1024),400),o=[];let a=0,h=1,c=0;for(;a<r;){const e=a;let u=Math.min(e+s,r);if(u<r){let t=u;for(;t-1>e&&0===i[5*t];)t--;if(t-1===e){let e=u;for(;e+1<r&&0===i[5*e];)e++;u=e}else u=t}let d=new Uint32Array(4*(u-e)),g=0,f=0,m=0,p=0;for(;a<u;){const e=5*a,r=i[e],s=i[e+1],o=h+r|0,l=0===r?c+s|0:s,u=l+i[e+2]|0,_=i[e+3],b=i[e+4];if(u<=l)t.warnInvalidLengthSemanticTokens(o,l+1);else if(m===o&&p>l)t.warnOverlappingSemanticTokens(o,l+1);else{const e=t.getMetadata(_,b,n);2147483647!==e&&(0===f&&(f=o),d[g]=o-f,d[g+1]=l,d[g+2]=u,d[g+3]=e,g+=4,m=o,p=u)}h=o,c=l,a++}g!==d.length&&(d=d.subarray(0,g));const _=l.create(f,d);o.push(_)}return o}m=d([g(1,i.Gy),g(2,u.L),g(3,r.rr)],m);class _{constructor(e,t,n,i){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=i,this.next=null}}class b{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=b._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<b._SIZES.length?2/3*this._currentLength:0),this._elements=[],b._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const i=this._hashFunc(e,t,n);let r=this._elements[i];for(;r;){if(r.tokenTypeIndex===e&&r.tokenModifierSet===t&&r.languageId===n)return r;r=r.next}return null}add(e,t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=b._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<b._SIZES.length?2/3*this._currentLength:0),this._elements=[],b._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,n,i))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>i});const i=(0,n(3591).u1)("semanticTokensStylingService")},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>d});var i=n(1484),r=n(154),s=n(5724),o=n(3511),a=n(5538),l=n(4243),h=n(4621),c=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},u=function(e,t){return function(n,i){t(n,i,e)}};let d=class extends i.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};d=c([u(0,s.Gy),u(1,o.rr),u(2,r.L)],d),(0,h.v)(l.ISemanticTokensStylingService,d,1)},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>_,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>f,WorkerTextModelSyncClient:()=>m,WorkerTextModelSyncServer:()=>p});var i=n(1940),r=n(1484),s=n(9400),o=n(3069),a=n(6677),l=n(6486),h=n(1508),c=(n(9861),n(5152));class u{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,c.j)(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,c.j)(e),t=(0,c.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,c.j)(e),t=(0,c.j)(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,c.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,r=0,s=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],s=r-this.values[i],e<s)n=i-1;else{if(!(e>=r))break;t=i+1}return new d(i,e-s)}}class d{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class g{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new o.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new u(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,h.uz)(t);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);const i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const f=6e4;class m extends r.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new i.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(f/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,r.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>f&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const i=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const s=new r.Cm;s.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(i.toString(),e)}))),s.add(n.onWillDispose((()=>{this._stopModelSync(i)}))),s.add((0,r.s)((()=>{this._proxy.$acceptRemovedModel(i)}))),this._syncedModels[i]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,r.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new _(s.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class _ extends g{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const i=this._lines[n],r=this.offsetAt(new o.y(n+1,1)),s=i.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+r),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=r.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(i<t.length))break;r=t[i],o=n(r,e),s=0,i+=1}}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const s of i)r.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<i;s++)r.push(this._lines[s]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}},8868:(e,t,n)=>{"use strict";n.r(t)},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>r,ITextResourcePropertiesService:()=>s});var i=n(3591);const r=(0,i.u1)("textResourceConfigurationService"),s=(0,i.u1)("textResourcePropertiesService")},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>i});const i=(0,n(3591).u1)("treeSitterParserService")},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>r,TreeViewsDnDService:()=>i});class i{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class r{constructor(e){this.identifier=e}}},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>o});var i=n(4621),r=n(3591),s=n(6723);const o=(0,r.u1)("treeViewsDndService");(0,i.v)(o,s.TreeViewsDnDService,1)},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var i=n(6677),r=n(7729),s=n(1508),o=n(6782),a=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,c=n?n.endLineNumber:e.getLineCount(),u=new h(t),d=u.getCandidateCodePoints();let g;var f;g="allNonBasicAscii"===d?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(f=Array.from(d),`[${s.bm(f.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new r.W5(null,g),p=[];let _,b=!1,k=0,v=0,C=0;e:for(let r=l,h=c;r<=h;r++){const t=e.getLineContent(r),n=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,l=_.index+_[0].length;if(e>0){const n=t.charCodeAt(e-1);s.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);s.pc(e)&&l++}const h=t.substring(e,l);let c=(0,a.Th)(e+1,a.Ld,t,0);c&&c.endColumn<=e+1&&(c=null);const d=u.shouldHighlightNonBasicASCII(h,c?c.word:null);if(0!==d){3===d?k++:2===d?v++:1===d?C++:(0,o.xb)(d);const t=1e3;if(p.length>=t){b=!0;break e}p.push(new i.Q(r,e+1,r,l+1))}}}while(_)}return{ranges:p,hasMore:b,ambiguousCharacterCount:k,invisibleCharacterCount:v,nonBasicAsciiCharacterCount:C}}static computeUnicodeHighlightReason(e,t){const n=new h(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),r=n.ambiguousCharacters.getPrimaryConfusable(i),o=s.tl.getLocales().filter((e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i)));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class h{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)c(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=s.aC(o);i=i||t,t||this.ambiguousCharacters.isAmbiguous(e)||s.y_.isInvisibleCharacter(e)||(r=!0)}return!i&&r?0:this.options.invisibleCharacters&&!c(e)&&s.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function c(e){return" "===e||"\n"===e||"\t"===e}},8209:(e,t,n)=>{"use strict";function i(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>i,kg:()=>o});const r="pseudo"===i()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const i=n[0],r=t[i];let s=e;return"string"===typeof r?s=r:"number"!==typeof r&&"boolean"!==typeof r&&void 0!==r&&null!==r||(s=String(r)),s})),r&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function o(e,t,...n){return s("number"===typeof e?a(e,t):t,n)}function a(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>r,pG:()=>i});const i=(0,n(3591).u1)("configurationService");function r(e){return e.replace(/[\[\]]/g,"")}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>c});var i=n(9861),r=n(1234),s=n(631),o=n(8209),a=n(4001),l=n(8748),h=n(6359);const c={Configuration:"base.contributions.configuration"},u={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",b=h.O.as(l.F.JSONContribution);const k="\\[([^\\]]+)\\]",v=new RegExp(k,"g"),C=`^(${k})+$`,L=new RegExp(C);function y(e){const t=[];if(L.test(e)){let n=v.exec(e);for(;n?.length;){const i=n[1].trim();i&&t.push(i),n=v.exec(e)}}return(0,i.dM)(t)}const w=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new r.vl,this._onDidUpdateConfiguration=new r.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},b.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),b.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:i,source:r}of e)for(const e in i){t.add(e);const s=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=i[e];if(s.configurationDefaultOverrides.push({value:o,source:r}),L.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,r),n.push(...y(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const i={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:_,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=i,this.defaultLanguageConfigurationOverridesNode.properties[e]=i}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,i){const r=i?.value||{},o=i?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const i=t[e];if(s.Gv(i)&&(s.b0(r[e])||s.Gv(r[e]))){if(r[e]={...r[e]??{},...i},n)for(const t in i)o.set(`${e}.${t}`,n)}else r[e]=i,n?o.set(e,n):o.delete(e)}return{value:r,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,i){const r=this.configurationProperties[e],o=i?.value??r?.defaultDefaultValue;let a=n;if(s.Gv(t)&&(void 0!==r&&"object"===r.type||void 0===r&&(s.b0(o)||s.Gv(o)))){if(a=i?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const i in t)n&&a.set(`${e}.${i}`,n);t={...s.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,i,r=3,o){r=s.z(e.scope)?r:e.scope;const a=e.properties;if(a)for(const h in a){const e=a[h];t&&S(h,e)?delete a[h]:(e.source=n,e.defaultDefaultValue=a[h].default,this.updatePropertyDefaultValue(h,e),L.test(h)?e.scope=void 0:(e.scope=s.z(e.scope)?r:e.scope,e.restricted=s.z(e.restricted)?!!i?.includes(h):e.restricted),!a[h].hasOwnProperty("included")||a[h].included?(this.configurationProperties[h]=a[h],a[h].policy?.name&&this.policyConfigurations.set(a[h].policy.name,h),!a[h].deprecationMessage&&a[h].markdownDeprecationMessage&&(a[h].deprecationMessage=a[h].markdownDeprecationMessage),o.add(h)):(this.excludedConfigurationProperties[h]=a[h],delete a[h]))}const l=e.allOf;if(l)for(const s of l)this.validateAndRegisterProperties(s,t,n,i,r,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const i=e.allOf;i?.forEach(t)};t(e)}updateSchema(e,t){switch(u.properties[e]=t,t.scope){case 1:d.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:f.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:p.properties[e]=t;break;case 5:p.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,n),u.properties[t]=n,d.properties[t]=n,g.properties[t]=n,f.properties[t]=n,m.properties[t]=n,p.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};u.patternProperties[C]=e,d.patternProperties[C]=e,g.patternProperties[C]=e,f.patternProperties[C]=e,m.patternProperties[C]=e,p.patternProperties[C]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let i,r;!n||t.disallowConfigurationDefault&&n.source||(i=n.value,r=n.source),s.b0(i)&&(i=t.defaultDefaultValue,r=void 0),s.b0(i)&&(i=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=i,t.defaultValueSource=r}};function S(e,t){return e.trim()?L.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==w.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==w.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,w.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}h.O.add(c.Configuration,w)},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});class i{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const r=[];function s(e,t,n){t instanceof i||(t=new i(t,[],Boolean(n))),r.push([e,t])}},3591:(e,t,n)=>{"use strict";var i;n.d(t,{_Y:()=>r,u1:()=>s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i||(i={}));const r=s("instantiationService");function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n}],t[i.DI_TARGET]=t)}(t,e,r)};return t.toString=()=>e,i.serviceIds.set(e,t),t}},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var i=n(1234),r=n(6359);const s={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new i.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};r.O.add(s.JSONContribution,o)},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>Q,$b:()=>Y});n(1234);var i=n(1484),r=n(8067),s=n(1508),o=n(4383),a=n(8209);function l(...e){switch(e.length){case 1:return(0,a.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,a.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,a.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const h=(0,a.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),c=(0,a.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class u{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),i={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(i)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=u._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(h):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(c);const i=this._input.charCodeAt(e);if(t)t=!1;else{if(47===i&&!n){e++;break}91===i?n=!0:92===i?t=!0:93===i&&(n=!1)}e++}for(;e<this._input.length&&u._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const i=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:i,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var d=n(3591);const g=new Map;g.set("false",!1),g.set("true",!0),g.set("isMac",r.zx),g.set("isLinux",r.j9),g.set("isWindows",r.uF),g.set("isWeb",r.HZ),g.set("isMacNative",r.zx&&!r.HZ),g.set("isEdge",r.UP),g.set("isFirefox",r.gm),g.set("isChrome",r.H8),g.set("isSafari",r.nr);const f=Object.prototype.hasOwnProperty,m={regexParsingWithErrorRecovery:!0},p=(0,a.kg)("contextkey.parser.error.emptyString","Empty context key expression"),_=(0,a.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),b=(0,a.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),k=(0,a.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),v=(0,a.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),C=(0,a.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),L=(0,a.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),y=(0,a.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class w{static{this._parseError=new Error}constructor(e=m){this._config=e,this._scanner=new u,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?C:void 0;throw this._parsingErrors.push({message:v,offset:e.offset,lexeme:u.getLexeme(e),additionalInfo:t}),w._parseError}return e}catch(t){if(t!==w._parseError)throw t;return}}else this._parsingErrors.push({message:p,offset:0,lexeme:"",additionalInfo:_})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:S.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:S.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),E.INSTANCE;case 12:return this._advance(),N.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,k),e?.negate()}case 17:return this._advance(),M.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),S.true();case 12:return this._advance(),S.false();case 0:{this._advance();const e=this._expr();return this._consume(1,k),e}case 17:{const i=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,r=n.lastIndexOf("/"),s=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));let o;try{o=new RegExp(n.substring(1,r),s)}catch(t){throw this._errExpectedButGot("REGEX",e)}return V.create(i,o)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let r=this._peek(),s=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--;for(;!this._isAtEnd()&&15!==r.type&&16!==r.type;){switch(r.type){case 0:s++;break;case 1:s--;break;case 10:case 18:for(let t=0;t<r.lexeme.length;t++)40===r.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--}if(s<0)break;n.push(u.getLexeme(r)),this._advance(),r=this._peek()}const o=n.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let h;try{h=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return S.regex(i,h)}case 18:{const t=e.lexeme;this._advance();let r=null;if(!(0,s.AV)(t)){const i=t.indexOf("/"),s=t.lastIndexOf("/");if(i!==s&&i>=0){const o=t.slice(i+1,s),a="i"===t[s+1]?"i":"";try{r=new RegExp(o,a)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return V.create(i,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,b);const e=this._value();return S.notIn(i,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return S.equals(i,e);switch(e){case"true":return S.has(i);case"false":return S.not(i);default:return S.equals(i,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return S.notEquals(i,e);switch(e){case"true":return S.not(i);case"false":return S.has(i);default:return S.notEquals(i,e)}}case 5:return this._advance(),P.create(i,this._value());case 6:return this._advance(),z.create(i,this._value());case 7:return this._advance(),B.create(i,this._value());case 8:return this._advance(),F.create(i,this._value());case 13:return this._advance(),S.in(i,this._value());default:return S.has(i)}}case 20:throw this._parsingErrors.push({message:L,offset:e.offset,lexeme:"",additionalInfo:y}),w._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const i=(0,a.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,u.getLexeme(t)),r=t.offset,s=u.getLexeme(t);return this._parsingErrors.push({message:i,offset:r,lexeme:s,additionalInfo:n}),w._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class S{static false(){return E.INSTANCE}static true(){return N.INSTANCE}static has(e){return I.create(e)}static equals(e,t){return T.create(e,t)}static notEquals(e,t){return R.create(e,t)}static regex(e,t){return V.create(e,t)}static in(e,t){return A.create(e,t)}static notIn(e,t){return D.create(e,t)}static not(e){return M.create(e)}static and(...e){return H.create(e,null,!0)}static or(...e){return U.create(e,null,!0)}static{this._parser=new w({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function x(e,t){return e.cmp(t)}class E{static{this.INSTANCE=new E}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}class N{static{this.INSTANCE=new N}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return E.INSTANCE}}class I{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?N.INSTANCE:E.INSTANCE:new I(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?N.INSTANCE:E.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this)),this.negated}}class T{static create(e,t,n=null){if("boolean"===typeof t)return t?I.create(e,n):M.create(e,n);const i=g.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?N.INSTANCE:E.INSTANCE}return new T(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?N.INSTANCE:E.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class A{static create(e,t){return new A(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&f.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=D.create(this.key,this.valueKey)),this.negated}}class D{static create(e,t){return new D(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=A.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class R{static create(e,t,n=null){if("boolean"===typeof t)return t?M.create(e,n):I.create(e,n);const i=g.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?E.INSTANCE:N.INSTANCE}return new R(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?E.INSTANCE:N.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class M{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?E.INSTANCE:N.INSTANCE:new M(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?E.INSTANCE:N.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this)),this.negated}}function O(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):E.INSTANCE}class B{static create(e,t,n=null){return O(t,(t=>new B(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,n=null){return O(t,(t=>new F(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class P{static create(e,t,n=null){return O(t,(t=>new P(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class z{static create(e,t,n=null){return O(t,(t=>new z(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class V{static create(e,t){return new V(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this)),this.negated}}class W{static create(e){return new W(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function q(e){let t=null;for(let n=0,i=e.length;n<i;n++){const i=e[n].substituteConstants();if(e[n]!==i&&null===t){t=[];for(let i=0;i<n;i++)t[i]=e[i]}null!==t&&(t[n]=i)}return null===t?e:t}class H{static create(e,t,n){return H._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=x(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=q(this.expr);return e===this.expr?this:H.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const i=[];let r=!1;for(const s of e)if(s)if(1!==s.type){if(0===s.type)return E.INSTANCE;6!==s.type?i.push(s):i.push(...s.expr)}else r=!0;if(0===i.length&&r)return N.INSTANCE;if(0!==i.length){if(1===i.length)return i[0];i.sort(x);for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];for(;i.length>1;){const e=i[i.length-1];if(9!==e.type)break;i.pop();const t=i.pop(),r=0===i.length,s=U.create(e.expr.map((e=>H.create([e,t],null,n))),null,r);s&&(i.push(s),i.sort(x))}if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return E.INSTANCE;if(1===i.length)return i[0]}return new H(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,n){return U._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=x(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=q(this.expr);return e===this.expr?this:U.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let i=[],r=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return N.INSTANCE;9!==n.type?i.push(n):i=i.concat(n.expr)}else r=!0}if(0===i.length&&r)return E.INSTANCE;i.sort(x)}if(0!==i.length){if(1===i.length)return i[0];for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return N.INSTANCE;if(1===i.length)return i[0]}return new U(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),i=[];for(const e of G(t))for(const t of G(n))i.push(H.create([e,t],null,!1));e.unshift(U.create(i,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class j extends I{static{this._info=[]}static all(){return j._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?j._info.push({...n,key:e}):!0!==n&&j._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return T.create(this.key,e)}}(0,d.u1)("contextKeyService");function K(e,t){return e<t?-1:e>t?1:0}function $(e,t,n,i){return e<n?-1:e>n?1:t<i?-1:t>i?1:0}function G(e){return 9===e.type?e.expr:[e]}const Q=(0,d.u1)("logService");var Y;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(Y||(Y={}));Y.Info;i.jG;new j("logLevel",function(e){switch(e){case Y.Trace:return"trace";case Y.Debug:return"debug";case Y.Info:return"info";case Y.Warning:return"warn";case Y.Error:return"error";case Y.Off:return"off"}}(Y.Info))},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var i=n(6782),r=n(631);const s=new class{constructor(){this.data=new Map}add(e,t){i.ok(r.Kg(e)),i.ok(r.Gv(t)),i.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>S,b1q:()=>w,YtV:()=>A,Ubg:()=>q,IIb:()=>V,pOz:()=>z,whs:()=>B,Stt:()=>P,Hng:()=>F,yLC:()=>le,KoI:()=>oe,uMG:()=>ae,x1A:()=>u});var i=n(6782),r=n(1940),s=n(7661),o=n(1234),a=n(8748),l=n(6359),h=n(8209);const c=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,i=!1,r){const s={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=s;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(o.deprecationMessage=r),i&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=h.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[o,{type:"string",const:"default",description:h.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return _(null!==(i=n.defaults)&&"object"===typeof i&&"light"in i&&"dark"in i?n.defaults[t.type]:n.defaults,t)}var i}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function u(e,t,n,i,r){return c.registerColor(e,t,n,i,r)}function d(e,t){return{op:0,value:e,factor:t}}function g(e,t){return{op:1,value:e,factor:t}}function f(e,t){return{op:2,value:e,factor:t}}function m(...e){return{op:4,values:e}}function p(e,t,n,i){return{op:5,value:e,background:t,factor:n,transparency:i}}function _(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?s.Q1.fromHex(e):t.getColor(e):e instanceof s.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return _(e.value,t)?.darken(e.factor);case 1:return _(e.value,t)?.lighten(e.factor);case 2:return _(e.value,t)?.transparent(e.factor);case 3:{const n=_(e.background,t);return n?_(e.value,t)?.makeOpaque(n):_(e.value,t)}case 4:for(const n of e.values){const e=_(n,t);if(e)return e}return;case 6:return _(t.defines(e.if)?e.then:e.else,t);case 5:{const n=_(e.value,t);if(!n)return;const i=_(e.background,t);return i?n.isDarkerThan(i)?s.Q1.getLighterColor(n,i,e.factor).transparent(e.transparency):s.Q1.getDarkerColor(n,i,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,i.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",c);const b="vscode://schemas/workbench-colors",k=l.O.as(a.F.JSONContribution);k.registerSchema(b,c.getColorSchema());const v=new r.uC((()=>k.notifySchemaChanged(b)),200);c.onDidChangeSchema((()=>{v.isScheduled()||v.schedule()}));const C=u("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},h.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),L=(u("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},h.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),u("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},h.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),u("descriptionForeground",{light:"#717171",dark:f(C,.7),hcDark:f(C,.7),hcLight:f(C,.7)},h.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),u("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},h.kg("iconForeground","The default color for icons in the workbench."))),y=u("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},h.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),w=u("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},h.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),S=u("contrastActiveBorder",{light:null,dark:null,hcDark:y,hcLight:y},h.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),x=(u("selection.background",null,h.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),u("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},h.kg("textLinkForeground","Foreground color for links in text.")),u("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},h.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),u("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:s.Q1.black,hcLight:"#292929"},h.kg("textSeparatorForeground","Color for text separators.")),u("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},h.kg("textPreformatForeground","Foreground color for preformatted text segments.")),u("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},h.kg("textPreformatBackground","Background color for preformatted text segments.")),u("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},h.kg("textBlockQuoteBackground","Background color for block quotes in text.")),u("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:s.Q1.white,hcLight:"#292929"},h.kg("textBlockQuoteBorder","Border color for block quotes in text.")),u("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:s.Q1.black,hcLight:"#F2F2F2"},h.kg("textCodeBlockBackground","Background color for code blocks in text.")),u("sash.hoverBorder",y,h.kg("sashActiveBorder","Border color of active sashes.")),u("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},h.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),E=(u("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},h.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),u("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},h.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),N=u("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:f(w,.6),hcLight:f(w,.4)},h.kg("scrollbarSliderBackground","Scrollbar slider background color.")),I=u("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:f(w,.8),hcLight:f(w,.8)},h.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),T=u("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:w,hcLight:w},h.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),A=(u("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:w,hcLight:w},h.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),u("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("editorBackground","Editor background color."))),D=(u("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:C},h.kg("editorForeground","Editor default foreground color.")),u("editorStickyScroll.background",A,h.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),u("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),u("editorStickyScroll.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),u("editorStickyScroll.shadow",E,h.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),u("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},h.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),R=u("editorWidget.foreground",C,h.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),M=u("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:w,hcLight:w},h.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),O=(u("editorWidget.resizeBorder",null,h.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),u("editorError.background",null,h.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},h.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),B=(u("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},h.kg("errorBorder","If set, color of double underlines for errors in the editor.")),u("editorWarning.background",null,h.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),F=u("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},h.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),P=u("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},h.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),z=(u("editorInfo.background",null,h.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},h.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),V=u("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},h.kg("infoBorder","If set, color of double underlines for infos in the editor.")),W=(u("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},h.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),u("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},h.kg("hintBorder","If set, color of double underlines for hints in the editor.")),u("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},h.kg("activeLinkForeground","Color of active links.")),u("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},h.kg("editorSelectionBackground","Color of the editor selection."))),q=(u("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},h.kg("editorSelectionForeground","Color of the selected text for high contrast.")),u("editor.inactiveSelectionBackground",{light:f(W,.5),dark:f(W,.5),hcDark:f(W,.7),hcLight:f(W,.5)},h.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBackground",{light:p(W,A,.3,.6),dark:p(W,A,.3,.6),hcDark:null,hcLight:null},h.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),u("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},h.kg("editorFindMatch","Color of the current search match.")),u("editor.findMatchForeground",null,h.kg("editorFindMatchForeground","Text color of the current search match.")),u("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},h.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),H=(u("editor.findMatchHighlightForeground",null,h.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),u("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},h.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.findMatchBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("editorFindMatchBorder","Border color of the current search match.")),u("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("findMatchHighlightBorder","Border color of the other search matches."))),U=(u("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:f(S,.4),hcLight:f(S,.4)},h.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},h.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorHoverWidget.background",D,h.kg("hoverBackground","Background color of the editor hover."))),j=(u("editorHoverWidget.foreground",R,h.kg("hoverForeground","Foreground color of the editor hover.")),u("editorHoverWidget.border",M,h.kg("hoverBorder","Border color of the editor hover.")),u("editorHoverWidget.statusBarBackground",{dark:g(U,.2),light:d(U,.05),hcDark:D,hcLight:D},h.kg("statusBarBackground","Background color of the editor hover status bar.")),u("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},h.kg("editorInlayHintForeground","Foreground color of inline hints"))),K=u("editorInlayHint.background",{dark:f(x,.1),light:f(x,.1),hcDark:f(s.Q1.white,.1),hcLight:f(x,.1)},h.kg("editorInlayHintBackground","Background color of inline hints")),$=(u("editorInlayHint.typeForeground",j,h.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),u("editorInlayHint.typeBackground",K,h.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),u("editorInlayHint.parameterForeground",j,h.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),u("editorInlayHint.parameterBackground",K,h.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),u("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},h.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),G=(u("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},h.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),u("editorLightBulbAi.foreground",$,h.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),u("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},h.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),u("editor.snippetTabstopHighlightBorder",null,h.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),u("editor.snippetFinalTabstopHighlightBackground",null,h.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),u("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},h.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new s.Q1(new s.bU(155,185,85,.2))),Q=new s.Q1(new s.bU(255,0,0,.2)),Y=(u("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},h.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},h.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.insertedLineBackground",{dark:G,light:G,hcDark:null,hcLight:null},h.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedLineBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},h.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditorGutter.insertedLineBackground",null,h.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),u("diffEditorGutter.removedLineBackground",null,h.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),u("diffEditorOverview.insertedForeground",null,h.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),u("diffEditorOverview.removedForeground",null,h.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),u("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},h.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),u("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},h.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),u("diffEditor.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("diffEditorBorder","Border color between the two text editors.")),u("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},h.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),u("diffEditor.unchangedRegionBackground","sideBar.background",h.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedRegionForeground","foreground",h.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},h.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),u("widget.shadow",{dark:f(s.Q1.black,.36),light:f(s.Q1.black,.16),hcDark:null,hcLight:null},h.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),X=(u("widget.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),u("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},h.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),Z=(u("toolbar.hoverOutline",{dark:null,light:null,hcDark:S,hcLight:S},h.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),u("toolbar.activeBackground",{dark:g(X,.1),light:d(X,.1),hcDark:null,hcLight:null},h.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),u("breadcrumb.foreground",f(C,.8),h.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.background",A,h.kg("breadcrumbsBackground","Background color of breadcrumb items.")),u("breadcrumb.focusForeground",{light:d(C,.2),dark:g(C,.1),hcDark:g(C,.1),hcLight:g(C,.1)},h.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.activeSelectionForeground",{light:d(C,.2),dark:g(C,.1),hcDark:g(C,.1),hcLight:g(C,.1)},h.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),u("breadcrumbPicker.background",D,h.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),s.Q1.fromHex("#40C8AE").transparent(.5)),J=s.Q1.fromHex("#40A6FF").transparent(.5),ee=s.Q1.fromHex("#606060").transparent(.4),te=u("merge.currentHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},h.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(u("merge.currentContentBackground",f(te,.4),h.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.incomingHeaderBackground",{dark:J,light:J,hcDark:null,hcLight:null},h.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),ie=(u("merge.incomingContentBackground",f(ne,.4),h.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},h.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(u("merge.commonContentBackground",f(ie,.4),h.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},h.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),se=(u("editorOverviewRuler.currentContentForeground",{dark:f(te,1),light:f(te,1),hcDark:re,hcLight:re},h.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.incomingContentForeground",{dark:f(ne,1),light:f(ne,1),hcDark:re,hcLight:re},h.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.commonContentForeground",{dark:f(ie,1),light:f(ie,1),hcDark:re,hcLight:re},h.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},h.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",h.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u("problemsErrorIcon.foreground",O,h.kg("problemsErrorIconForeground","The color used for the problems error icon.")),u("problemsWarningIcon.foreground",F,h.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),u("problemsInfoIcon.foreground",z,h.kg("problemsInfoIconForeground","The color used for the problems info icon.")),u("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},h.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),oe=(u("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},h.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),u("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},h.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),u("minimap.infoHighlight",{dark:z,light:z,hcDark:V,hcLight:V},h.kg("minimapInfo","Minimap marker color for infos."))),ae=u("minimap.warningHighlight",{dark:F,light:F,hcDark:P,hcLight:P},h.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=u("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},h.kg("minimapError","Minimap marker color for errors.")),he=(u("minimap.background",null,h.kg("minimapBackground","Minimap background color.")),u("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),h.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),u("minimapSlider.background",f(N,.5),h.kg("minimapSliderBackground","Minimap slider background color.")),u("minimapSlider.hoverBackground",f(I,.5),h.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),u("minimapSlider.activeBackground",f(T,.5),h.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),u("charts.foreground",C,h.kg("chartsForeground","The foreground color used in charts.")),u("charts.lines",f(C,.5),h.kg("chartsLines","The color used for horizontal lines in charts.")),u("charts.red",O,h.kg("chartsRed","The red color used in chart visualizations.")),u("charts.blue",z,h.kg("chartsBlue","The blue color used in chart visualizations.")),u("charts.yellow",F,h.kg("chartsYellow","The yellow color used in chart visualizations.")),u("charts.orange",se,h.kg("chartsOrange","The orange color used in chart visualizations.")),u("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},h.kg("chartsGreen","The green color used in chart visualizations.")),u("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},h.kg("chartsPurple","The purple color used in chart visualizations.")),u("input.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputBoxBackground","Input box background.")),u("input.foreground",C,h.kg("inputBoxForeground","Input box foreground.")),u("input.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("inputBoxBorder","Input box border.")),u("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:w,hcLight:w},h.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),ce=u("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},h.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),ue=u("inputOption.activeBackground",{dark:f(y,.4),light:f(y,.2),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},h.kg("inputOption.activeBackground","Background hover color of options in input fields.")),de=u("inputOption.activeForeground",{dark:s.Q1.white,light:s.Q1.black,hcDark:C,hcLight:C},h.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),ge=(u("input.placeholderForeground",{light:f(C,.5),dark:f(C,.5),hcDark:f(C,.7),hcLight:f(C,.7)},h.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),u("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationInfoBackground","Input validation background color for information severity.")),u("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:C},h.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),u("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:w,hcLight:w},h.kg("inputValidationInfoBorder","Input validation border color for information severity.")),u("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),u("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:C},h.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),u("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:w,hcLight:w},h.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),u("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationErrorBackground","Input validation background color for error severity.")),u("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:C},h.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),u("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},h.kg("inputValidationErrorBorder","Input validation border color for error severity.")),u("dropdown.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("dropdownBackground","Dropdown background."))),fe=(u("dropdown.listBackground",{dark:null,light:null,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("dropdownListBackground","Dropdown list background.")),u("dropdown.foreground",{dark:"#F0F0F0",light:C,hcDark:s.Q1.white,hcLight:C},h.kg("dropdownForeground","Dropdown foreground."))),me=u("dropdown.border",{dark:ge,light:"#CECECE",hcDark:w,hcLight:w},h.kg("dropdownBorder","Dropdown border.")),pe=u("button.foreground",s.Q1.white,h.kg("buttonForeground","Button foreground color.")),_e=(u("button.separator",f(pe,.4),h.kg("buttonSeparator","Button separator color.")),u("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},h.kg("buttonBackground","Button background color."))),be=(u("button.hoverBackground",{dark:g(_e,.2),light:d(_e,.2),hcDark:_e,hcLight:_e},h.kg("buttonHoverBackground","Button background color when hovering.")),u("button.border",w,h.kg("buttonBorder","Button border color.")),u("button.secondaryForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:C},h.kg("buttonSecondaryForeground","Secondary button foreground color.")),u("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:s.Q1.white},h.kg("buttonSecondaryBackground","Secondary button background color."))),ke=(u("button.secondaryHoverBackground",{dark:g(be,.2),light:d(be,.2),hcDark:null,hcLight:null},h.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),u("radio.activeForeground",de,h.kg("radioActiveForeground","Foreground color of active radio option."))),ve=(u("radio.activeBackground",ue,h.kg("radioBackground","Background color of active radio option.")),u("radio.activeBorder",he,h.kg("radioActiveBorder","Border color of the active radio option.")),u("radio.inactiveForeground",null,h.kg("radioInactiveForeground","Foreground color of inactive radio option.")),u("radio.inactiveBackground",null,h.kg("radioInactiveBackground","Background color of inactive radio option.")),u("radio.inactiveBorder",{light:f(ke,.2),dark:f(ke,.2),hcDark:f(ke,.4),hcLight:f(ke,.2)},h.kg("radioInactiveBorder","Border color of the inactive radio option.")),u("radio.inactiveHoverBackground",ce,h.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),u("checkbox.background",ge,h.kg("checkbox.background","Background color of checkbox widget.")),u("checkbox.selectBackground",D,h.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),u("checkbox.foreground",fe,h.kg("checkbox.foreground","Foreground color of checkbox widget.")),u("checkbox.border",me,h.kg("checkbox.border","Border color of checkbox widget.")),u("checkbox.selectBorder",L,h.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),u("keybindingLabel.background",{dark:new s.Q1(new s.bU(128,128,128,.17)),light:new s.Q1(new s.bU(221,221,221,.4)),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},h.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.foreground",{dark:s.Q1.fromHex("#CCCCCC"),light:s.Q1.fromHex("#555555"),hcDark:s.Q1.white,hcLight:C},h.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.border",{dark:new s.Q1(new s.bU(51,51,51,.6)),light:new s.Q1(new s.bU(204,204,204,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:w},h.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.bottomBorder",{dark:new s.Q1(new s.bU(68,68,68,.6)),light:new s.Q1(new s.bU(187,187,187,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:C},h.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),u("list.focusBackground",null,h.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusForeground",null,h.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusOutline",{dark:y,light:y,hcDark:S,hcLight:S},h.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusAndSelectionOutline",null,h.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),u("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),Ce=u("list.activeSelectionForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:null,hcLight:null},h.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Le=u("list.activeSelectionIconForeground",null,h.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ye=(u("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionForeground",null,h.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionIconForeground",null,h.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusBackground",null,h.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusOutline",null,h.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Q1.white.transparent(.1),hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),u("list.hoverForeground",null,h.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),u("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},h.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),u("list.dropBetweenBackground",{dark:L,light:L,hcDark:null,hcLight:null},h.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),u("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:y,hcLight:y},h.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));u("list.focusHighlightForeground",{dark:ye,light:(we=ve,Se=ye,xe="#BBE7FF",{op:6,if:we,then:Se,else:xe}),hcDark:ye,hcLight:ye},h.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var we,Se,xe;u("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},h.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),u("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},h.kg("listErrorForeground","Foreground color of list items containing errors.")),u("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},h.kg("listWarningForeground","Foreground color of list items containing warnings.")),u("listFilterWidget.background",{light:d(D,0),dark:g(D,0),hcDark:D,hcLight:D},h.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),u("listFilterWidget.outline",{dark:s.Q1.transparent,light:s.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},h.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),u("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},h.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),u("listFilterWidget.shadow",Y,h.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),u("list.filterMatchBackground",{dark:q,light:q,hcDark:null,hcLight:null},h.kg("listFilterMatchHighlight","Background color of the filtered match.")),u("list.filterMatchBorder",{dark:H,light:H,hcDark:w,hcLight:S},h.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),u("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},h.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const Ee=u("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},h.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ne=(u("tree.inactiveIndentGuidesStroke",f(Ee,.4),h.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),u("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},h.kg("tableColumnsBorder","Table border color between columns.")),u("tree.tableOddRowsBackground",{dark:f(C,.04),light:f(C,.04),hcDark:null,hcLight:null},h.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),u("editorActionList.background",D,h.kg("editorActionListBackground","Action List background color.")),u("editorActionList.foreground",R,h.kg("editorActionListForeground","Action List foreground color.")),u("editorActionList.focusForeground",Ce,h.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),u("editorActionList.focusBackground",ve,h.kg("editorActionListFocusBackground","Action List background color for the focused item.")),u("menu.border",{dark:null,light:null,hcDark:w,hcLight:w},h.kg("menuBorder","Border color of menus.")),u("menu.foreground",fe,h.kg("menuForeground","Foreground color of menu items.")),u("menu.background",ge,h.kg("menuBackground","Background color of menu items.")),u("menu.selectionForeground",Ce,h.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),u("menu.selectionBackground",ve,h.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),u("menu.selectionBorder",{dark:null,light:null,hcDark:S,hcLight:S},h.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),u("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:w,hcLight:w},h.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),u("quickInput.background",D,h.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),u("quickInput.foreground",R,h.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),u("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},h.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),u("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},h.kg("pickerGroupForeground","Quick picker color for grouping labels.")),u("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},h.kg("pickerGroupBorder","Quick picker color for grouping borders.")),u("quickInput.list.focusBackground",null,"",void 0,h.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));u("quickInputList.focusForeground",Ce,h.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),u("quickInputList.focusIconForeground",Le,h.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),u("quickInputList.focusBackground",{dark:m(Ne,ve),light:m(Ne,ve),hcDark:null,hcLight:null},h.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),u("search.resultsInfoForeground",{light:C,dark:f(C,.65),hcDark:C,hcLight:C},h.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),u("searchEditor.findMatchBackground",{light:f(q,.66),dark:f(q,.66),hcDark:q,hcLight:q},h.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),u("searchEditor.findMatchBorder",{light:f(H,.66),dark:f(H,.66),hcDark:H,hcLight:H},h.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>u,Yf:()=>h});var i,r=n(1234),s=n(1484),o=n(3591),a=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(i||(i={}));const l=(0,o.u1)("themeService");function h(e){return{id:e}}const c=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function u(e){return c.onColorThemeChange(e)}a.O.add("base.contributions.theming",c);s.jG},5890:(e,t,n)=>{var i={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function r(e){return Promise.resolve().then((()=>{if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(i[e])}))}r.keys=()=>Object.keys(i),r.id=5890,e.exports=r},9204:(e,t,n)=>{var i={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function r(e){if(!n.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(r)))}r.keys=()=>Object.keys(i),r.id=9204,e.exports=r},7614:(e,t,n)=>{var i={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function r(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=s,e.exports=r,r.id=7614}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.e=()=>Promise.resolve(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),i=n(718);let r=!1;globalThis.onmessage=n=>{r||function(n){if(r)return;r=!0;const s=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(i.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{s.onmessage(e.data)}}(null)}})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/html.worker.js b/ydb/core/viewer/monitoring/html.worker.js index 4e5efb3b8b2..51b5565992b 100644 --- a/ydb/core/viewer/monitoring/html.worker.js +++ b/ydb/core/viewer/monitoring/html.worker.js @@ -1,2 +1 @@ -/*! For license information please see html.worker.js.LICENSE.txt */ -(()=>{"use strict";const e=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(a.isErrorNoTelemetry(e))throw new a(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function t(t){r(t)||e.onUnexpectedError(t)}function n(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:a.isErrorNoTelemetry(e)}}return e}const i="Canceled";function r(e){return e instanceof o||e instanceof Error&&e.name===i&&e.message===i}class o extends Error{constructor(){super(i),this.name=this.message}}Error;class a extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof a)return e;const t=new a;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class s extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,s.prototype)}}function l(e,t){const n=this;let i,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}var h;!function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*i(e){yield e}e.empty=function(){return n},e.single=i,e.wrap=function(e){return t(e)?e:i(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let i=n;for(const r of e)i=t(i,r);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let o=0;o<n;o++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(h||(h={}));let c=null;function d(e){return null===c||void 0===c||c.trackDisposable(e),e}function u(e){null===c||void 0===c||c.markAsDisposed(e)}function m(e,t){null===c||void 0===c||c.setParent(e,t)}function p(e){if(h.is(e)){const n=[];for(const i of e)if(i)try{i.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function f(...e){const t=g((()=>p(e)));return function(e,t){if(c)for(const n of e)c.setParent(n,t)}(e,t),t}function g(e){const t=d({dispose:l((()=>{u(t),e()}))});return t}class b{constructor(){this._toDispose=new Set,this._isDisposed=!1,d(this)}dispose(){this._isDisposed||(u(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{p(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return m(e,this),this._isDisposed?b.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),m(e,null))}}b.DISABLE_DISPOSED_WARNING=!1;class _{constructor(){this._store=new b,d(this),m(this._store,this)}dispose(){u(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}_.None=Object.freeze({dispose(){}});Symbol.iterator;class v{constructor(e){this.element=e,this.next=v.Undefined,this.prev=v.Undefined}}v.Undefined=new v(void 0);class w{constructor(){this._first=v.Undefined,this._last=v.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===v.Undefined}clear(){let e=this._first;for(;e!==v.Undefined;){const t=e.next;e.prev=v.Undefined,e.next=v.Undefined,e=t}this._first=v.Undefined,this._last=v.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new v(e);if(this._first===v.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==v.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==v.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==v.Undefined&&e.next!==v.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===v.Undefined&&e.next===v.Undefined?(this._first=v.Undefined,this._last=v.Undefined):e.next===v.Undefined?(this._last=this._last.prev,this._last.next=v.Undefined):e.prev===v.Undefined&&(this._first=this._first.next,this._first.prev=v.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==v.Undefined;)yield e.element,e=e.next}}const y=globalThis.performance&&"function"===typeof globalThis.performance.now;class T{static create(e){return new T(e)}constructor(e){this._now=y&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}var k;!function(e){function t(e){false}function n(e){return(t,n=null,i)=>{let r,o=!1;return r=e((e=>{if(!o)return r?r.dispose():o=!0,t.call(n,e)}),null,i),o&&r.dispose(),r}}function i(e,t,n){return o(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)),n)}function r(e,t,n){return o(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)),n)}function o(e,n){let i;const r={onWillAddFirstListener(){i=e(o.fire,o)},onDidRemoveLastListener(){null===i||void 0===i||i.dispose()}};n||t();const o=new A(r);return null===n||void 0===n||n.add(o),o.event}function a(e,n,i=100,r=!1,o=!1,a,s){let l,h,c,d,u=0;const m={leakWarningThreshold:a,onWillAddFirstListener(){l=e((e=>{u++,h=n(h,e),r&&!c&&(p.fire(h),h=void 0),d=()=>{const e=h;h=void 0,c=void 0,(!r||u>1)&&p.fire(e),u=0},"number"===typeof i?(clearTimeout(c),c=setTimeout(d,i)):void 0===c&&(c=0,queueMicrotask(d))}))},onWillRemoveListener(){o&&u>0&&(null===d||void 0===d||d())},onDidRemoveLastListener(){d=void 0,l.dispose()}};s||t();const p=new A(m);return null===s||void 0===s||s.add(p),p.event}e.None=()=>_.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.map=i,e.forEach=function(e,t,n){return o(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)),n)},e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}(f(...e.map((e=>e((e=>t.call(n,e)))))),i)},e.reduce=function(e,t,n,r){let o=n;return i(e,(e=>(o=t(o,e),o)),r)},e.debounce=a,e.accumulate=function(t,n=0,i){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,i)},e.latch=function(e,t=(e,t)=>e===t,n){let i,o=!0;return r(e,(e=>{const n=o||!t(e,i);return o=!1,i=e,n}),n)},e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,(e=>!n(e)),i)]},e.buffer=function(e,t=!1,n=[],i){let r=n.slice(),o=e((e=>{r?r.push(e):s.fire(e)}));i&&i.add(o);const a=()=>{null===r||void 0===r||r.forEach((e=>s.fire(e))),r=null},s=new A({onWillAddFirstListener(){o||(o=e((e=>s.fire(e))),i&&i.add(o))},onDidAddFirstListener(){r&&(t?setTimeout(a):a())},onDidRemoveLastListener(){o&&o.dispose(),o=null}});return i&&i.add(s),s.event},e.chain=function(e,t){return(n,i,r)=>{const o=t(new l);return e((function(e){const t=o.evaluate(e);t!==s&&n.call(i,t)}),void 0,r)}};const s=Symbol("HaltChainable");class l{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:s)),this}reduce(e,t){let n=t;return this.steps.push((t=>(n=e(n,t),n))),this}latch(e=(e,t)=>e===t){let t,n=!0;return this.steps.push((i=>{const r=n||!e(i,t);return n=!1,t=i,r?i:s})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===s)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new A({onWillAddFirstListener:()=>e.on(t,i),onDidRemoveLastListener:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new A({onWillAddFirstListener:()=>e.addEventListener(t,i),onDidRemoveLastListener:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new A;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class h{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new A(i),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,i)=>{let r=0,o=!1;const a={beginUpdate(){r++},endUpdate(){r--,0===r&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const s={dispose(){e.removeObserver(a)}};return i instanceof b?i.add(s):Array.isArray(i)&&i.push(s),s}}}(k||(k={}));class S{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${S._idPool++}`,S.all.add(this)}start(e){this._stopWatch=new T,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}S.all=new Set,S._idPool=0;class L{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){let e;this._warnCountdown=.5*n;let i=0;for(const[t,n]of this._stacks)(!e||i<n)&&(e=t,i=n);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${i}):`),console.warn(e)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class x{static create(){var e;return new x(null!==(e=(new Error).stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class C{constructor(e){this.value=e}}const E=void 0;class A{constructor(e){var t,n,i,r,o;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new L(null!==(i=null===(n=this._options)||void 0===n?void 0:n.leakWarningThreshold)&&void 0!==i?i:-1):void 0,this._perfMon=(null===(r=this._options)||void 0===r?void 0:r._profName)?new S(this._options._profName):void 0,this._deliveryQueue=null===(o=this._options)||void 0===o?void 0:o.deliveryQueue}dispose(){var e,t,n,i;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(n=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===n||n.call(t),null===(i=this._leakageMon)||void 0===i||i.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,n)=>{var i,r,o,a,s;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),_.None;if(this._disposed)return _.None;t&&(e=e.bind(t));const l=new C(e);let h;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(l.stack=x.create(),h=this._leakageMon.check(l.stack,this._size+1)),this._listeners?this._listeners instanceof C?(null!==(s=this._deliveryQueue)&&void 0!==s||(this._deliveryQueue=new R),this._listeners=[this._listeners,l]):this._listeners.push(l):(null===(r=null===(i=this._options)||void 0===i?void 0:i.onWillAddFirstListener)||void 0===r||r.call(i,this),this._listeners=l,null===(a=null===(o=this._options)||void 0===o?void 0:o.onDidAddFirstListener)||void 0===a||a.call(o,this)),this._size++;const c=g((()=>{null===E||void 0===E||E.unregister(c),null===h||void 0===h||h(),this._removeListener(l)}));if(n instanceof b?n.add(c):Array.isArray(n)&&n.push(c),E){const e=(new Error).stack.split("\n").slice(2).join("\n").trim();E.register(c,e,c)}return c}),this._event}_removeListener(e){var t,n,i,r;if(null===(n=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===n||n.call(t,this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,null===(r=null===(i=this._options)||void 0===i?void 0:i.onDidRemoveLastListener)||void 0===r||r.call(i,this),void(this._size=0);const o=this._listeners,a=o.indexOf(e);if(-1===a)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,o[a]=void 0;const s=this._deliveryQueue.current===this;if(2*this._size<=o.length){let e=0;for(let t=0;t<o.length;t++)o[t]?o[e++]=o[t]:s&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);o.length=e}}_deliver(e,n){var i;if(!e)return;const r=(null===(i=this._options)||void 0===i?void 0:i.onListenerError)||t;if(r)try{e.value(n)}catch(o){r(o)}else e.value(n)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){var t,n,i,r;if((null===(t=this._deliveryQueue)||void 0===t?void 0:t.current)&&(this._deliverQueue(this._deliveryQueue),null===(n=this._perfMon)||void 0===n||n.stop()),null===(i=this._perfMon)||void 0===i||i.start(this._size),this._listeners)if(this._listeners instanceof C)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;null===(r=this._perfMon)||void 0===r||r.stop()}hasListeners(){return this._size>0}}class R{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}Object.prototype.hasOwnProperty;function M(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}let N="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function I(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const i=n[0],r=t[i];let o=e;return"string"===typeof r?o=r:"number"!==typeof r&&"boolean"!==typeof r&&void 0!==r&&null!==r||(o=String(r)),o})),N&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function z(e,t,...n){return I(t,n)}var U,H;const D="en";let O,W,P=!1,q=!1,F=!1,B=!1,V=!1,K=!1,j=!1,G=!1,$=!1,J=!1,X=null,Y=null,Q=null;const Z=globalThis;let ee;"undefined"!==typeof Z.vscode&&"undefined"!==typeof Z.vscode.process?ee=Z.vscode.process:"undefined"!==typeof process&&"string"===typeof(null===(U=null===process||void 0===process?void 0:process.versions)||void 0===U?void 0:U.node)&&(ee=process);const te="string"===typeof(null===(H=null===ee||void 0===ee?void 0:ee.versions)||void 0===H?void 0:H.electron),ne=te&&"renderer"===(null===ee||void 0===ee?void 0:ee.type);if("object"===typeof ee){P="win32"===ee.platform,q="darwin"===ee.platform,F="linux"===ee.platform,B=F&&!!ee.env.SNAP&&!!ee.env.SNAP_REVISION,j=te,$=!!ee.env.CI||!!ee.env.BUILD_ARTIFACTSTAGINGDIRECTORY,O=D,X=D;const e=ee.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];O=t.locale,Y=t.osLocale,X=n||D,Q=t._translationsConfigFile}catch(Gl){}V=!0}else if("object"!==typeof navigator||ne)console.error("Unable to resolve platform.");else{W=navigator.userAgent,P=W.indexOf("Windows")>=0,q=W.indexOf("Macintosh")>=0,G=(W.indexOf("Macintosh")>=0||W.indexOf("iPad")>=0||W.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,F=W.indexOf("Linux")>=0,J=(null===W||void 0===W?void 0:W.indexOf("Mobi"))>=0,K=!0;O=void z(0,"_")||D,X=O,Y=navigator.language}let ie=0;q?ie=1:P?ie=3:F&&(ie=2);const re=P,oe=q,ae=(K&&"function"===typeof Z.importScripts&&Z.origin,W),se="function"===typeof Z.postMessage&&!Z.importScripts;(()=>{if(se){const e=[];Z.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void i.callback()}}));let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),Z.postMessage({vscodeScheduleAsyncWork:i},"*")}}})();const le=!!(ae&&ae.indexOf("Chrome")>=0);ae&&ae.indexOf("Firefox"),!le&&ae&&ae.indexOf("Safari"),ae&&ae.indexOf("Edg/"),ae&&ae.indexOf("Android");class he{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var ce;function de(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function ue(e){return e>=65&&e<=90}function me(e){return 55296<=e&&e<=56319}function pe(e){return 56320<=e&&e<=57343}function fe(e,t){return t-56320+(e-55296<<10)+65536}function ge(e,t,n){const i=e.charCodeAt(n);if(me(i)&&n+1<t){const t=e.charCodeAt(n+1);if(pe(t))return fe(i,t)}return i}const be=/^[\t\n\r\x20-\x7E]*$/;String.fromCharCode(65279);class _e{static getInstance(){return _e._INSTANCE||(_e._INSTANCE=new _e),_e._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}_e._INSTANCE=null;class ve{static getInstance(e){return ce.cache.get(Array.from(e))}static getLocales(){return ce._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}ce=ve,ve.ambiguousCharacterData=new he((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),ve.cache=new class{constructor(e,t=JSON.stringify){this.fn=e,this._computeKey=t,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}((e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[i,r]of e)t.has(i)&&n.set(i,r);return n}const i=ce.ambiguousCharacterData.value;let r,o=e.filter((e=>!e.startsWith("_")&&e in i));0===o.length&&(o=["_default"]);for(const s of o){r=n(r,t(i[s]))}const a=function(e,t){const n=new Map(e);for(const[i,r]of t)n.set(i,r);return n}(t(i._common),r);return new ce(a)})),ve._locales=new he((()=>Object.keys(ce.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class we{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(we.getRawData())),this._data}static isInvisibleCharacter(e){return we.getData().has(e)}static get codePoints(){return we.getData()}}we._data=void 0;const ye="$initialize";let Te;class ke{constructor(e,t,n,i){this.vsWorker=e,this.req=t,this.method=n,this.args=i,this.type=0}}class Se{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class Le{constructor(e,t,n,i){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=i,this.type=2}}class xe{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class Ce{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class Ee{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const n=String(++this._lastSentReq);return new Promise(((i,r)=>{this._pendingReplies[n]={resolve:i,reject:r},this._send(new ke(this._workerId,n,e,t))}))}listen(e,t){let n=null;const i=new A({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,i),this._send(new Le(this._workerId,n,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new Ce(this._workerId,n)),n=null}});return i.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new Se(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=n(e.detail)),this._send(new Se(this._workerId,t,void 0,n(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new xe(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}function Ae(e){return"o"===e[0]&&"n"===e[1]&&ue(e.charCodeAt(2))}function Re(e){return/^onDynamic/.test(e)&&ue(e.charCodeAt(9))}function Me(e,t,n){const i=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r=e=>function(t){return n(e,t)},o={};for(const a of e)Re(a)?o[a]=r(a):Ae(a)?o[a]=n(a,void 0):o[a]=i(a);return o}class Ne{constructor(e,t){this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new Ee({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t),handleEvent:(e,t)=>this._handleEvent(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if(e===ye)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!==typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(Gl){return Promise.reject(Gl)}}_handleEvent(e,t){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Re(e)){const n=this._requestHandler[e].call(this._requestHandler,t);if("function"!==typeof n)throw new Error(`Missing dynamic event ${e} on request handler.`);return n}if(Ae(e)){const t=this._requestHandler[e];if("function"!==typeof t)throw new Error(`Missing event ${e} on request handler.`);return t}throw new Error(`Malformed event name ${e}`)}initialize(e,t,n,i){this._protocol.setWorkerId(e);const r=Me(i,((e,t)=>this._protocol.sendMessage(e,t)),((e,t)=>this._protocol.listen(e,t)));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(r),Promise.resolve(M(this._requestHandler))):(t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t)),new Promise(((e,t)=>{(0,globalThis.require)([n],(n=>{this._requestHandler=n.create(r),this._requestHandler?e(M(this._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}}class Ie{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function ze(e,t){return(t<<5)-t+e|0}function Ue(e,t){t=ze(149417,t);for(let n=0,i=e.length;n<i;n++)t=ze(e.charCodeAt(n),t);return t}function He(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function De(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function Oe(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class We{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let i,r,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(i=a,r=-1,a=0):(i=e.charCodeAt(0),r=0);;){let s=i;if(me(i)){if(!(r+1<t)){a=i;break}{const t=e.charCodeAt(r+1);pe(t)?(r++,s=fe(i,t)):s=65533}}else pe(i)&&(s=65533);if(o=this._push(n,o,s),r++,!(r<t))break;i=e.charCodeAt(r)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Oe(this._h0)+Oe(this._h1)+Oe(this._h2)+Oe(this._h3)+Oe(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,De(this._buff,this._buffLen),this._buffLen>56&&(this._step(),De(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=We._bigBlock32,t=this._buffDV;for(let c=0;c<64;c+=4)e.setUint32(c,t.getUint32(c,!1),!1);for(let c=64;c<320;c+=4)e.setUint32(c,He(e.getUint32(c-12,!1)^e.getUint32(c-32,!1)^e.getUint32(c-56,!1)^e.getUint32(c-64,!1),1),!1);let n,i,r,o=this._h0,a=this._h1,s=this._h2,l=this._h3,h=this._h4;for(let c=0;c<80;c++)c<20?(n=a&s|~a&l,i=1518500249):c<40?(n=a^s^l,i=1859775393):c<60?(n=a&s|a&l|s&l,i=2400959708):(n=a^s^l,i=3395469782),r=He(o,5)+n+h+i+e.getUint32(4*c,!1)&4294967295,h=l,l=s,s=He(a,30),a=o,o=r;this._h0=this._h0+o&4294967295,this._h1=this._h1+a&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+h&4294967295}}We._bigBlock32=new DataView(new ArrayBuffer(320));class Pe{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function qe(e,t,n){return new Ke(new Pe(e),new Pe(t)).ComputeDiff(n).changes}class Fe{static Assert(e,t){if(!e)throw new Error(t)}}class Be{static Copy(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}static Copy2(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}}class Ve{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Ie(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Ke{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,o]=Ke._getElements(e),[a,s,l]=Ke._getElements(t);this._hasStrings=o&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=a,this._modifiedElementsOrHash=s,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(Ke._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=Ue(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return Ke._getStrictElement(this._originalSequence,e)===Ke._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const o=[!1];let a=this.ComputeDiffRecursive(e,t,n,i,o);return r&&(a=this.PrettifyChanges(a)),{quitEarly:o[0],changes:a}}ComputeDiffRecursive(e,t,n,i,r){for(r[0]=!1;e<=t&&n<=i&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){let r;return n<=i?(Fe.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new Ie(e,0,n,i-n+1)]):e<=t?(Fe.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[new Ie(e,t-e+1,n,0)]):(Fe.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Fe.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}const o=[0],a=[0],s=this.ComputeRecursionPoint(e,t,n,i,o,a,r),l=o[0],h=a[0];if(null!==s)return s;if(!r[0]){const o=this.ComputeDiffRecursive(e,l,n,h,r);let a=[];return a=r[0]?[new Ie(l+1,t-(l+1)+1,h+1,i-(h+1)+1)]:this.ComputeDiffRecursive(l+1,t,h+1,i,r),this.ConcatenateChanges(o,a)}return[new Ie(e,t-e+1,n,i-n+1)]}WALKTRACE(e,t,n,i,r,o,a,s,l,h,c,d,u,m,p,f,g,b){let _=null,v=null,w=new Ve,y=t,T=n,k=u[0]-f[0]-i,S=-1073741824,L=this.m_forwardHistory.length-1;do{const t=k+e;t===y||t<T&&l[t-1]<l[t+1]?(m=(c=l[t+1])-k-i,c<S&&w.MarkNextChange(),S=c,w.AddModifiedElement(c+1,m),k=t+1-e):(m=(c=l[t-1]+1)-k-i,c<S&&w.MarkNextChange(),S=c-1,w.AddOriginalElement(c,m+1),k=t-1-e),L>=0&&(e=(l=this.m_forwardHistory[L])[0],y=1,T=l.length-1)}while(--L>=-1);if(_=w.getReverseChanges(),b[0]){let e=u[0]+1,t=f[0]+1;if(null!==_&&_.length>0){const n=_[_.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}v=[new Ie(e,d-e+1,t,p-t+1)]}else{w=new Ve,y=o,T=a,k=u[0]-f[0]-s,S=1073741824,L=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=k+r;e===y||e<T&&h[e-1]>=h[e+1]?(m=(c=h[e+1]-1)-k-s,c>S&&w.MarkNextChange(),S=c+1,w.AddOriginalElement(c+1,m+1),k=e+1-r):(m=(c=h[e-1])-k-s,c>S&&w.MarkNextChange(),S=c,w.AddModifiedElement(c+1,m+1),k=e-1-r),L>=0&&(r=(h=this.m_reverseHistory[L])[0],y=1,T=h.length-1)}while(--L>=-1);v=w.getChanges()}return this.ConcatenateChanges(_,v)}ComputeRecursionPoint(e,t,n,i,r,o,a){let s=0,l=0,h=0,c=0,d=0,u=0;e--,n--,r[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(i-n),p=m+1,f=new Int32Array(p),g=new Int32Array(p),b=i-n,_=t-e,v=e-n,w=t-i,y=(_-b)%2===0;f[b]=e,g[_]=t,a[0]=!1;for(let T=1;T<=m/2+1;T++){let m=0,k=0;h=this.ClipDiagonalBound(b-T,T,b,p),c=this.ClipDiagonalBound(b+T,T,b,p);for(let e=h;e<=c;e+=2){s=e===h||e<c&&f[e-1]<f[e+1]?f[e+1]:f[e-1]+1,l=s-(e-b)-v;const n=s;for(;s<t&&l<i&&this.ElementsAreEqual(s+1,l+1);)s++,l++;if(f[e]=s,s+l>m+k&&(m=s,k=l),!y&&Math.abs(e-_)<=T-1&&s>=g[e])return r[0]=s,o[0]=l,n<=g[e]&&T<=1448?this.WALKTRACE(b,h,c,v,_,d,u,w,f,g,s,t,r,l,i,o,y,a):null}const S=(m-e+(k-n)-T)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,S))return a[0]=!0,r[0]=m,o[0]=k,S>0&&T<=1448?this.WALKTRACE(b,h,c,v,_,d,u,w,f,g,s,t,r,l,i,o,y,a):(e++,n++,[new Ie(e,t-e+1,n,i-n+1)]);d=this.ClipDiagonalBound(_-T,T,_,p),u=this.ClipDiagonalBound(_+T,T,_,p);for(let p=d;p<=u;p+=2){s=p===d||p<u&&g[p-1]>=g[p+1]?g[p+1]-1:g[p-1],l=s-(p-_)-w;const m=s;for(;s>e&&l>n&&this.ElementsAreEqual(s,l);)s--,l--;if(g[p]=s,y&&Math.abs(p-b)<=T&&s<=f[p])return r[0]=s,o[0]=l,m>=f[p]&&T<=1448?this.WALKTRACE(b,h,c,v,_,d,u,w,f,g,s,t,r,l,i,o,y,a):null}if(T<=1447){let e=new Int32Array(c-h+2);e[0]=b-h+1,Be.Copy2(f,h,e,1,c-h+1),this.m_forwardHistory.push(e),e=new Int32Array(u-d+2),e[0]=_-d+1,Be.Copy2(g,d,e,1,u-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,h,c,v,_,d,u,w,f,g,s,t,r,l,i,o,y,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,o=n.originalLength>0,a=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!o||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!a||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const s=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],s)&&(e[t]=s[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const o=n.originalLength>0,a=n.modifiedLength>0;let s=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,h=n.modifiedStart-e;if(t<i||h<r)break;if(o&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(a&&!this.ModifiedElementsAreEqual(h,h+n.modifiedLength))break;const c=(t===i&&h===r?5:0)+this._boundaryScore(t,n.originalLength,h,n.modifiedLength);c>l&&(l=c,s=e)}n.originalStart-=s,n.modifiedStart-=s;const h=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],h)&&(e[t-1]=h[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],i=e[t],r=i.originalStart-n.originalStart-n.originalLength,o=n.originalStart,a=i.originalStart+i.originalLength,s=a-o,l=n.modifiedStart,h=i.modifiedStart+i.modifiedLength,c=h-l;if(r<5&&s<20&&c<20){const e=this._findBetterContiguousSequence(o,s,l,c,r);if(e){const[t,o]=e;t===n.originalStart+n.originalLength&&o===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=o-n.modifiedStart,i.originalStart=t+r,i.modifiedStart=o+r,i.originalLength=a-i.originalStart,i.modifiedLength=h-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,r){if(t<r||i<r)return null;const o=e+t-r+1,a=n+i-r+1;let s=0,l=0,h=0;for(let c=e;c<o;c++)for(let e=n;e<a;e++){const t=this._contiguousSequenceScore(c,e,r);t>0&&t>s&&(s=t,l=c,h=e)}return s>0?[l,h]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return Be.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],Be.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return Be.Copy(e,0,n,0,e.length),Be.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(Fe.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Fe.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const i=e.originalStart;let r=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new Ie(i,r,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2===0;if(e<0){return r===(n%2===0)?0:1}return r===((i-n-1)%2===0)?i-1:i-2}}const je=globalThis.vscode;if("undefined"!==typeof je&&"undefined"!==typeof je.process){const e=je.process;Te={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else Te="undefined"!==typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return re?"win32":oe?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const Ge=Te.cwd,$e=(Te.env,Te.platform),Je=46,Xe=47,Ye=92,Qe=58;class Ze extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let o=`The "${e}" ${r} ${i} of type ${t}`;o+=". Received type "+typeof n,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function et(e,t){if("string"!==typeof e)throw new Ze(t,"string",e)}const tt="win32"===$e;function nt(e){return e===Xe||e===Ye}function it(e){return e===Xe}function rt(e){return e>=65&&e<=90||e>=97&&e<=122}function ot(e,t,n,i){let r="",o=0,a=-1,s=0,l=0;for(let h=0;h<=e.length;++h){if(h<e.length)l=e.charCodeAt(h);else{if(i(l))break;l=Xe}if(i(l)){if(a===h-1||1===s);else if(2===s){if(r.length<2||2!==o||r.charCodeAt(r.length-1)!==Je||r.charCodeAt(r.length-2)!==Je){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",o=0):(r=r.slice(0,e),o=r.length-1-r.lastIndexOf(n)),a=h,s=0;continue}if(0!==r.length){r="",o=0,a=h,s=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",o=2)}else r.length>0?r+=`${n}${e.slice(a+1,h)}`:r=e.slice(a+1,h),o=h-a-1;a=h,s=0}else l===Je&&-1!==s?++s:s=-1}return r}function at(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new Ze(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const st={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let o;if(r>=0){if(o=e[r],et(o,"path"),0===o.length)continue}else 0===t.length?o=Ge():(o={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||Ge(),(void 0===o||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&o.charCodeAt(2)===Ye)&&(o=`${t}\\`));const a=o.length;let s=0,l="",h=!1;const c=o.charCodeAt(0);if(1===a)nt(c)&&(s=1,h=!0);else if(nt(c))if(h=!0,nt(o.charCodeAt(1))){let e=2,t=e;for(;e<a&&!nt(o.charCodeAt(e));)e++;if(e<a&&e!==t){const n=o.slice(t,e);for(t=e;e<a&&nt(o.charCodeAt(e));)e++;if(e<a&&e!==t){for(t=e;e<a&&!nt(o.charCodeAt(e));)e++;e!==a&&e===t||(l=`\\\\${n}\\${o.slice(t,e)}`,s=e)}}}else s=1;else rt(c)&&o.charCodeAt(1)===Qe&&(l=o.slice(0,2),s=2,a>2&&nt(o.charCodeAt(2))&&(h=!0,s=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(i){if(t.length>0)break}else if(n=`${o.slice(s)}\\${n}`,i=h,h&&t.length>0)break}return n=ot(n,!i,"\\",nt),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){et(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const o=e.charCodeAt(0);if(1===t)return it(o)?"\\":e;if(nt(o))if(r=!0,nt(e.charCodeAt(1))){let r=2,o=r;for(;r<t&&!nt(e.charCodeAt(r));)r++;if(r<t&&r!==o){const a=e.slice(o,r);for(o=r;r<t&&nt(e.charCodeAt(r));)r++;if(r<t&&r!==o){for(o=r;r<t&&!nt(e.charCodeAt(r));)r++;if(r===t)return`\\\\${a}\\${e.slice(o)}\\`;r!==o&&(n=`\\\\${a}\\${e.slice(o,r)}`,i=r)}}}else i=1;else rt(o)&&e.charCodeAt(1)===Qe&&(n=e.slice(0,2),i=2,t>2&&nt(e.charCodeAt(2))&&(r=!0,i=3));let a=i<t?ot(e.slice(i),!r,"\\",nt):"";return 0!==a.length||r||(a="."),a.length>0&&nt(e.charCodeAt(t-1))&&(a+="\\"),void 0===n?r?`\\${a}`:a:r?`${n}\\${a}`:`${n}${a}`},isAbsolute(e){et(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return nt(n)||t>2&&rt(n)&&e.charCodeAt(1)===Qe&&nt(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let o=0;o<e.length;++o){const i=e[o];et(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&nt(n.charCodeAt(0))){++r;const e=n.length;e>1&&nt(n.charCodeAt(1))&&(++r,e>2&&(nt(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&nt(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return st.normalize(t)},relative(e,t){if(et(e,"from"),et(t,"to"),e===t)return"";const n=st.resolve(e),i=st.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===Ye;)r++;let o=e.length;for(;o-1>r&&e.charCodeAt(o-1)===Ye;)o--;const a=o-r;let s=0;for(;s<t.length&&t.charCodeAt(s)===Ye;)s++;let l=t.length;for(;l-1>s&&t.charCodeAt(l-1)===Ye;)l--;const h=l-s,c=a<h?a:h;let d=-1,u=0;for(;u<c;u++){const n=e.charCodeAt(r+u);if(n!==t.charCodeAt(s+u))break;n===Ye&&(d=u)}if(u!==c){if(-1===d)return i}else{if(h>c){if(t.charCodeAt(s+u)===Ye)return i.slice(s+u+1);if(2===u)return i.slice(s+u)}a>c&&(e.charCodeAt(r+u)===Ye?d=u:2===u&&(d=3)),-1===d&&(d=0)}let m="";for(u=r+d+1;u<=o;++u)u!==o&&e.charCodeAt(u)!==Ye||(m+=0===m.length?"..":"\\..");return s+=d,m.length>0?`${m}${i.slice(s,l)}`:(i.charCodeAt(s)===Ye&&++s,i.slice(s,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=st.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Ye){if(t.charCodeAt(1)===Ye){const e=t.charCodeAt(2);if(63!==e&&e!==Je)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(rt(t.charCodeAt(0))&&t.charCodeAt(1)===Qe&&t.charCodeAt(2)===Ye)return`\\\\?\\${t}`;return e},dirname(e){et(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return nt(r)?e:".";if(nt(r)){if(n=i=1,nt(e.charCodeAt(1))){let r=2,o=r;for(;r<t&&!nt(e.charCodeAt(r));)r++;if(r<t&&r!==o){for(o=r;r<t&&nt(e.charCodeAt(r));)r++;if(r<t&&r!==o){for(o=r;r<t&&!nt(e.charCodeAt(r));)r++;if(r===t)return e;r!==o&&(n=i=r+1)}}}}else rt(r)&&e.charCodeAt(1)===Qe&&(n=t>2&&nt(e.charCodeAt(2))?3:2,i=n);let o=-1,a=!0;for(let s=t-1;s>=i;--s)if(nt(e.charCodeAt(s))){if(!a){o=s;break}}else a=!1;if(-1===o){if(-1===n)return".";o=n}return e.slice(0,o)},basename(e,t){void 0!==t&&et(t,"ext"),et(e,"path");let n,i=0,r=-1,o=!0;if(e.length>=2&&rt(e.charCodeAt(0))&&e.charCodeAt(1)===Qe&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,s=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(nt(l)){if(!o){i=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(r=n):(a=-1,r=s))}return i===r?r=s:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(nt(e.charCodeAt(n))){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){et(e,"path");let t=0,n=-1,i=0,r=-1,o=!0,a=0;e.length>=2&&e.charCodeAt(1)===Qe&&rt(e.charCodeAt(0))&&(t=i=2);for(let s=e.length-1;s>=t;--s){const t=e.charCodeAt(s);if(nt(t)){if(!o){i=s+1;break}}else-1===r&&(o=!1,r=s+1),t===Je?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return-1===n||-1===r||0===a||1===a&&n===r-1&&n===i+1?"":e.slice(n,r)},format:at.bind(null,"\\"),parse(e){et(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return nt(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(nt(r)){if(i=1,nt(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!nt(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&nt(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!nt(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(rt(r)&&e.charCodeAt(1)===Qe){if(n<=2)return t.root=t.dir=e,t;if(i=2,nt(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let o=-1,a=i,s=-1,l=!0,h=e.length-1,c=0;for(;h>=i;--h)if(r=e.charCodeAt(h),nt(r)){if(!l){a=h+1;break}}else-1===s&&(l=!1,s=h+1),r===Je?-1===o?o=h:1!==c&&(c=1):-1!==o&&(c=-1);return-1!==s&&(-1===o||0===c||1===c&&o===s-1&&o===a+1?t.base=t.name=e.slice(a,s):(t.name=e.slice(a,o),t.base=e.slice(a,s),t.ext=e.slice(o,s))),t.dir=a>0&&a!==i?e.slice(0,a-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},lt=(()=>{if(tt){const e=/\\/g;return()=>{const t=Ge().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>Ge()})(),ht={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:lt();et(r,"path"),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===Xe)}return t=ot(t,!n,"/",it),n?`/${t}`:t.length>0?t:"."},normalize(e){if(et(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Xe,n=e.charCodeAt(e.length-1)===Xe;return 0===(e=ot(e,!t,"/",it)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(et(e,"path"),e.length>0&&e.charCodeAt(0)===Xe),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];et(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":ht.normalize(t)},relative(e,t){if(et(e,"from"),et(t,"to"),e===t)return"";if((e=ht.resolve(e))===(t=ht.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,o=i<r?i:r;let a=-1,s=0;for(;s<o;s++){const n=e.charCodeAt(1+s);if(n!==t.charCodeAt(1+s))break;n===Xe&&(a=s)}if(s===o)if(r>o){if(t.charCodeAt(1+s)===Xe)return t.slice(1+s+1);if(0===s)return t.slice(1+s)}else i>o&&(e.charCodeAt(1+s)===Xe?a=s:0===s&&(a=0));let l="";for(s=1+a+1;s<=n;++s)s!==n&&e.charCodeAt(s)!==Xe||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(et(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Xe;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===Xe){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&et(t,"ext"),et(e,"path");let n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,s=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===Xe){if(!o){i=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(r=n):(a=-1,r=s))}return i===r?r=s:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===Xe){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){et(e,"path");let t=-1,n=0,i=-1,r=!0,o=0;for(let a=e.length-1;a>=0;--a){const s=e.charCodeAt(a);if(s!==Xe)-1===i&&(r=!1,i=a+1),s===Je?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:at.bind(null,"/"),parse(e){et(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===Xe;let i;n?(t.root="/",i=1):i=0;let r=-1,o=0,a=-1,s=!0,l=e.length-1,h=0;for(;l>=i;--l){const t=e.charCodeAt(l);if(t!==Xe)-1===a&&(s=!1,a=l+1),t===Je?-1===r?r=l:1!==h&&(h=1):-1!==r&&(h=-1);else if(!s){o=l+1;break}}if(-1!==a){const i=0===o&&n?1:o;-1===r||0===h||1===h&&r===a-1&&r===o+1?t.base=t.name=e.slice(i,a):(t.name=e.slice(i,r),t.base=e.slice(i,a),t.ext=e.slice(r,a))}return o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ht.win32=st.win32=st,ht.posix=st.posix=ht;tt?st.normalize:ht.normalize,tt?st.resolve:ht.resolve,tt?st.relative:ht.relative,tt?st.dirname:ht.dirname,tt?st.basename:ht.basename,tt?st.extname:ht.extname,tt?st.sep:ht.sep;const ct=/^\w[\w\d+.-]*$/,dt=/^\//,ut=/^\/\//;const mt="",pt="/",ft=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class gt{static isUri(e){return e instanceof gt||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,i,r,o=!1){"object"===typeof e?(this.scheme=e.scheme||mt,this.authority=e.authority||mt,this.path=e.path||mt,this.query=e.query||mt,this.fragment=e.fragment||mt):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||mt,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==pt&&(t=pt+t):t=pt}return t}(this.scheme,n||mt),this.query=i||mt,this.fragment=r||mt,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!ct.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!dt.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(ut.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}get fsPath(){return Tt(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=mt),void 0===n?n=this.authority:null===n&&(n=mt),void 0===i?i=this.path:null===i&&(i=mt),void 0===r?r=this.query:null===r&&(r=mt),void 0===o?o=this.fragment:null===o&&(o=mt),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&o===this.fragment?this:new _t(t,n,i,r,o)}static parse(e,t=!1){const n=ft.exec(e);return n?new _t(n[2]||mt,xt(n[4]||mt),xt(n[5]||mt),xt(n[7]||mt),xt(n[9]||mt),t):new _t(mt,mt,mt,mt,mt)}static file(e){let t=mt;if(re&&(e=e.replace(/\\/g,pt)),e[0]===pt&&e[1]===pt){const n=e.indexOf(pt,2);-1===n?(t=e.substring(2),e=pt):(t=e.substring(2,n),e=e.substring(n)||pt)}return new _t("file",t,e,mt,mt)}static from(e,t){return new _t(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=re&&"file"===e.scheme?gt.file(st.join(Tt(e,!0),...t)).path:ht.join(e.path,...t),e.with({path:n})}toString(e=!1){return kt(this,e)}toJSON(){return this}static revive(e){var t,n;if(e){if(e instanceof gt)return e;{const i=new _t(e);return i._formatted=null!==(t=e.external)&&void 0!==t?t:null,i._fsPath=e._sep===bt&&null!==(n=e.fsPath)&&void 0!==n?n:null,i}}return e}}const bt=re?1:void 0;class _t extends gt{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Tt(this,!1)),this._fsPath}toString(e=!1){return e?kt(this,!0):(this._formatted||(this._formatted=kt(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=bt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const vt={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function wt(e,t,n){let i,r=-1;for(let o=0;o<e.length;o++){const a=e.charCodeAt(o);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||45===a||46===a||95===a||126===a||t&&47===a||n&&91===a||n&&93===a||n&&58===a)-1!==r&&(i+=encodeURIComponent(e.substring(r,o)),r=-1),void 0!==i&&(i+=e.charAt(o));else{void 0===i&&(i=e.substr(0,o));const t=vt[a];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,o)),r=-1),i+=t):-1===r&&(r=o)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function yt(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=vt[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function Tt(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,re&&(n=n.replace(/\//g,"\\")),n}function kt(e,t){const n=t?yt:wt;let i="",{scheme:r,authority:o,path:a,query:s,fragment:l}=e;if(r&&(i+=r,i+=":"),(o||"file"===r)&&(i+=pt,i+=pt),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}o=o.toLowerCase(),e=o.lastIndexOf(":"),-1===e?i+=n(o,!1,!0):(i+=n(o.substr(0,e),!1,!0),i+=o.substr(e))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){const e=a.charCodeAt(1);e>=65&&e<=90&&(a=`/${String.fromCharCode(e+32)}:${a.substr(3)}`)}else if(a.length>=2&&58===a.charCodeAt(1)){const e=a.charCodeAt(0);e>=65&&e<=90&&(a=`${String.fromCharCode(e+32)}:${a.substr(2)}`)}i+=n(a,!0,!1)}return s&&(i+="?",i+=n(s,!1,!1)),l&&(i+="#",i+=t?l:wt(l,!1,!1)),i}function St(e){try{return decodeURIComponent(e)}catch(U){return e.length>3?e.substr(0,3)+St(e.substr(3)):e}}const Lt=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function xt(e){return e.match(Lt)?e.replace(Lt,(e=>St(e))):e}class Ct{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new Ct(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Ct.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Ct.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return Ct.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){return(0|e.column)-(0|t.column)}return n-i}clone(){return new Ct(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new Ct(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}class Et{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return Et.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Et.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return Et.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return Et.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return Et.plusRange(this,e)}static plusRange(e,t){let n,i,r,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(r=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,o=e.endColumn),new Et(n,i,r,o)}intersectRanges(e){return Et.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,s=t.startColumn,l=t.endLineNumber,h=t.endColumn;return n<a?(n=a,i=s):n===a&&(i=Math.max(i,s)),r>l?(r=l,o=h):r===l&&(o=Math.min(o,h)),n>r||n===r&&i>o?null:new Et(n,i,r,o)}equalsRange(e){return Et.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return Et.getEndPosition(this)}static getEndPosition(e){return new Ct(e.endLineNumber,e.endColumn)}getStartPosition(){return Et.getStartPosition(this)}static getStartPosition(e){return new Ct(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new Et(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new Et(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return Et.collapseToStart(this)}static collapseToStart(e){return new Et(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return Et.collapseToEnd(this)}static collapseToEnd(e){return new Et(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new Et(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new Et(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new Et(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){return(0|e.endColumn)-(0|t.endColumn)}return n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}var At;function Rt(e,t){return(n,i)=>t(e(n),e(i))}!function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(At||(At={}));const Mt=(e,t)=>e-t;class Nt{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new Nt((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new Nt((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((i=>((n||At.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0))),t}}Nt.empty=new Nt((e=>{}));function It(e){return e<0?0:e>255?255:0|e}function zt(e){return e<0?0:e>4294967295?4294967295:0|e}class Ut{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=zt(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=zt(e),t=zt(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=zt(e),t=zt(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=zt(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,r=0,o=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],o=r-this.values[i],e<o)n=i-1;else{if(!(e>=r))break;t=i+1}return new Ht(i,e-o)}}class Ht{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class Dt{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new Ct(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new Ut(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const n=t.split(/\r\n|\r|\n/);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);const i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const Ot=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function Wt(e){let t=Ot;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const Pt=new w;function qt(e,t,n,i,r){if(t=Wt(t),r||(r=h.first(Pt)),n.length>r.maxLen){let o=e-r.maxLen/2;return o<0?o=0:i+=o,qt(e,t,n=n.substring(o,e+r.maxLen/2),i,r)}const o=Date.now(),a=e-1-i;let s=-1,l=null;for(let h=1;!(Date.now()-o>=r.timeBudget);h++){const e=a-r.windowSize*h;t.lastIndex=Math.max(0,e);const i=Ft(t,n,a,s);if(!i&&l)break;if(l=i,e<=0)break;s=e}if(l){const e={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return t.lastIndex=0,e}return null}function Ft(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}Pt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});class Bt{constructor(e){const t=It(e);this._defaultValue=t,this._asciiMap=Bt._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=It(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Vt{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,o=e*t;r<o;r++)i[r]=n;this._data=i,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class Kt{constructor(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++){const[i,o,a]=e[r];o>t&&(t=o),i>n&&(n=i),a>n&&(n=a)}t++,n++;const i=new Vt(n,t,0);for(let r=0,o=e.length;r<o;r++){const[t,n,o]=e[r];i.set(t,n,o)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let jt=null;let Gt=null;class $t{static _createLink(e,t,n,i,r){let o=r-1;do{const n=t.charCodeAt(o);if(2!==e.get(n))break;o--}while(o>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(o);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&o--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:o+2},url:t.substring(i,o+1)}}static computeLinks(e,t=function(){return null===jt&&(jt=new Kt([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),jt}()){const n=function(){if(null===Gt){Gt=new Bt(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)Gt.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)Gt.set(t.charCodeAt(n),2)}return Gt}(),i=[];for(let r=1,o=e.getLineCount();r<=o;r++){const o=e.getLineContent(r),a=o.length;let s=0,l=0,h=0,c=1,d=!1,u=!1,m=!1,p=!1;for(;s<a;){let e=!1;const a=o.charCodeAt(s);if(13===c){let t;switch(a){case 40:d=!0,t=0;break;case 41:t=d?0:1;break;case 91:m=!0,u=!0,t=0;break;case 93:m=!1,t=u?0:1;break;case 123:p=!0,t=0;break;case 125:t=p?0:1;break;case 39:case 34:case 96:t=h===a?1:39===h||34===h||96===h?0:1;break;case 42:t=42===h?1:0;break;case 124:t=124===h?1:0;break;case 32:t=m?0:1;break;default:t=n.get(a)}1===t&&(i.push($t._createLink(n,o,r,l,s)),e=!0)}else if(12===c){let t;91===a?(u=!0,t=0):t=n.get(a),1===t?e=!0:c=13}else c=t.nextState(c,a),0===c&&(e=!0);e&&(c=1,d=!1,u=!1,p=!1,l=s+1,h=a),s++}13===c&&i.push($t._createLink(n,o,r,l,a))}return i}}class Jt{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,i,r){if(e&&t){const n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){const e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,o=e.length;null===i&&r<o;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}Jt.INSTANCE=new Jt;const Xt=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var Yt;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof Qt||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:k.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Xt})}(Yt||(Yt={}));class Qt{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Xt:(this._emitter||(this._emitter=new A),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Zt{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Qt),this._token}cancel(){this._token?this._token instanceof Qt&&this._token.cancel():this._token=Yt.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof Qt&&this._token.dispose():this._token=Yt.None}}class en{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const tn=new en,nn=new en,rn=new en,on=new Array(230),an={},sn=[],ln=Object.create(null),hn=Object.create(null),cn=[],dn=[];for(let $l=0;$l<=193;$l++)cn[$l]=-1;for(let $l=0;$l<=132;$l++)dn[$l]=-1;var un;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[e,t,o,a,s,l,h,c,d]=r;if(i[t]||(i[t]=!0,sn[t]=o,ln[o]=t,hn[o.toLowerCase()]=t,e&&(cn[t]=a,0!==a&&3!==a&&5!==a&&4!==a&&6!==a&&57!==a&&(dn[a]=t))),!n[a]){if(n[a]=!0,!s)throw new Error(`String representation missing for key code ${a} around scan code ${o}`);tn.define(a,s),nn.define(a,c||s),rn.define(a,d||c||s)}l&&(on[l]=a),h&&(an[h]=a)}dn[3]=46}(),function(e){e.toString=function(e){return tn.keyCodeToStr(e)},e.fromString=function(e){return tn.strToKeyCode(e)},e.toUserSettingsUS=function(e){return nn.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return rn.keyCodeToStr(e)},e.fromUserSettings=function(e){return nn.strToKeyCode(e)||rn.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return tn.keyCodeToStr(e)}}(un||(un={}));class mn extends Et{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return mn.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new mn(this.startLineNumber,this.startColumn,e,t):new mn(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new Ct(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Ct(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new mn(e,t,this.endLineNumber,this.endColumn):new mn(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new mn(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new mn(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new mn(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new mn(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new mn(e,t,n,i):new mn(n,i,e,t)}}function pn(e){return"string"===typeof e}const fn=Object.create(null);function gn(e,t){if(pn(t)){const n=fn[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return fn[e]=t,{id:e}}const bn={...{add:gn("add",6e4),plus:gn("plus",6e4),gistNew:gn("gist-new",6e4),repoCreate:gn("repo-create",6e4),lightbulb:gn("lightbulb",60001),lightBulb:gn("light-bulb",60001),repo:gn("repo",60002),repoDelete:gn("repo-delete",60002),gistFork:gn("gist-fork",60003),repoForked:gn("repo-forked",60003),gitPullRequest:gn("git-pull-request",60004),gitPullRequestAbandoned:gn("git-pull-request-abandoned",60004),recordKeys:gn("record-keys",60005),keyboard:gn("keyboard",60005),tag:gn("tag",60006),gitPullRequestLabel:gn("git-pull-request-label",60006),tagAdd:gn("tag-add",60006),tagRemove:gn("tag-remove",60006),person:gn("person",60007),personFollow:gn("person-follow",60007),personOutline:gn("person-outline",60007),personFilled:gn("person-filled",60007),gitBranch:gn("git-branch",60008),gitBranchCreate:gn("git-branch-create",60008),gitBranchDelete:gn("git-branch-delete",60008),sourceControl:gn("source-control",60008),mirror:gn("mirror",60009),mirrorPublic:gn("mirror-public",60009),star:gn("star",60010),starAdd:gn("star-add",60010),starDelete:gn("star-delete",60010),starEmpty:gn("star-empty",60010),comment:gn("comment",60011),commentAdd:gn("comment-add",60011),alert:gn("alert",60012),warning:gn("warning",60012),search:gn("search",60013),searchSave:gn("search-save",60013),logOut:gn("log-out",60014),signOut:gn("sign-out",60014),logIn:gn("log-in",60015),signIn:gn("sign-in",60015),eye:gn("eye",60016),eyeUnwatch:gn("eye-unwatch",60016),eyeWatch:gn("eye-watch",60016),circleFilled:gn("circle-filled",60017),primitiveDot:gn("primitive-dot",60017),closeDirty:gn("close-dirty",60017),debugBreakpoint:gn("debug-breakpoint",60017),debugBreakpointDisabled:gn("debug-breakpoint-disabled",60017),debugHint:gn("debug-hint",60017),terminalDecorationSuccess:gn("terminal-decoration-success",60017),primitiveSquare:gn("primitive-square",60018),edit:gn("edit",60019),pencil:gn("pencil",60019),info:gn("info",60020),issueOpened:gn("issue-opened",60020),gistPrivate:gn("gist-private",60021),gitForkPrivate:gn("git-fork-private",60021),lock:gn("lock",60021),mirrorPrivate:gn("mirror-private",60021),close:gn("close",60022),removeClose:gn("remove-close",60022),x:gn("x",60022),repoSync:gn("repo-sync",60023),sync:gn("sync",60023),clone:gn("clone",60024),desktopDownload:gn("desktop-download",60024),beaker:gn("beaker",60025),microscope:gn("microscope",60025),vm:gn("vm",60026),deviceDesktop:gn("device-desktop",60026),file:gn("file",60027),fileText:gn("file-text",60027),more:gn("more",60028),ellipsis:gn("ellipsis",60028),kebabHorizontal:gn("kebab-horizontal",60028),mailReply:gn("mail-reply",60029),reply:gn("reply",60029),organization:gn("organization",60030),organizationFilled:gn("organization-filled",60030),organizationOutline:gn("organization-outline",60030),newFile:gn("new-file",60031),fileAdd:gn("file-add",60031),newFolder:gn("new-folder",60032),fileDirectoryCreate:gn("file-directory-create",60032),trash:gn("trash",60033),trashcan:gn("trashcan",60033),history:gn("history",60034),clock:gn("clock",60034),folder:gn("folder",60035),fileDirectory:gn("file-directory",60035),symbolFolder:gn("symbol-folder",60035),logoGithub:gn("logo-github",60036),markGithub:gn("mark-github",60036),github:gn("github",60036),terminal:gn("terminal",60037),console:gn("console",60037),repl:gn("repl",60037),zap:gn("zap",60038),symbolEvent:gn("symbol-event",60038),error:gn("error",60039),stop:gn("stop",60039),variable:gn("variable",60040),symbolVariable:gn("symbol-variable",60040),array:gn("array",60042),symbolArray:gn("symbol-array",60042),symbolModule:gn("symbol-module",60043),symbolPackage:gn("symbol-package",60043),symbolNamespace:gn("symbol-namespace",60043),symbolObject:gn("symbol-object",60043),symbolMethod:gn("symbol-method",60044),symbolFunction:gn("symbol-function",60044),symbolConstructor:gn("symbol-constructor",60044),symbolBoolean:gn("symbol-boolean",60047),symbolNull:gn("symbol-null",60047),symbolNumeric:gn("symbol-numeric",60048),symbolNumber:gn("symbol-number",60048),symbolStructure:gn("symbol-structure",60049),symbolStruct:gn("symbol-struct",60049),symbolParameter:gn("symbol-parameter",60050),symbolTypeParameter:gn("symbol-type-parameter",60050),symbolKey:gn("symbol-key",60051),symbolText:gn("symbol-text",60051),symbolReference:gn("symbol-reference",60052),goToFile:gn("go-to-file",60052),symbolEnum:gn("symbol-enum",60053),symbolValue:gn("symbol-value",60053),symbolRuler:gn("symbol-ruler",60054),symbolUnit:gn("symbol-unit",60054),activateBreakpoints:gn("activate-breakpoints",60055),archive:gn("archive",60056),arrowBoth:gn("arrow-both",60057),arrowDown:gn("arrow-down",60058),arrowLeft:gn("arrow-left",60059),arrowRight:gn("arrow-right",60060),arrowSmallDown:gn("arrow-small-down",60061),arrowSmallLeft:gn("arrow-small-left",60062),arrowSmallRight:gn("arrow-small-right",60063),arrowSmallUp:gn("arrow-small-up",60064),arrowUp:gn("arrow-up",60065),bell:gn("bell",60066),bold:gn("bold",60067),book:gn("book",60068),bookmark:gn("bookmark",60069),debugBreakpointConditionalUnverified:gn("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:gn("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:gn("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:gn("debug-breakpoint-data-unverified",60072),debugBreakpointData:gn("debug-breakpoint-data",60073),debugBreakpointDataDisabled:gn("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:gn("debug-breakpoint-log-unverified",60074),debugBreakpointLog:gn("debug-breakpoint-log",60075),debugBreakpointLogDisabled:gn("debug-breakpoint-log-disabled",60075),briefcase:gn("briefcase",60076),broadcast:gn("broadcast",60077),browser:gn("browser",60078),bug:gn("bug",60079),calendar:gn("calendar",60080),caseSensitive:gn("case-sensitive",60081),check:gn("check",60082),checklist:gn("checklist",60083),chevronDown:gn("chevron-down",60084),chevronLeft:gn("chevron-left",60085),chevronRight:gn("chevron-right",60086),chevronUp:gn("chevron-up",60087),chromeClose:gn("chrome-close",60088),chromeMaximize:gn("chrome-maximize",60089),chromeMinimize:gn("chrome-minimize",60090),chromeRestore:gn("chrome-restore",60091),circleOutline:gn("circle-outline",60092),circle:gn("circle",60092),debugBreakpointUnverified:gn("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:gn("terminal-decoration-incomplete",60092),circleSlash:gn("circle-slash",60093),circuitBoard:gn("circuit-board",60094),clearAll:gn("clear-all",60095),clippy:gn("clippy",60096),closeAll:gn("close-all",60097),cloudDownload:gn("cloud-download",60098),cloudUpload:gn("cloud-upload",60099),code:gn("code",60100),collapseAll:gn("collapse-all",60101),colorMode:gn("color-mode",60102),commentDiscussion:gn("comment-discussion",60103),creditCard:gn("credit-card",60105),dash:gn("dash",60108),dashboard:gn("dashboard",60109),database:gn("database",60110),debugContinue:gn("debug-continue",60111),debugDisconnect:gn("debug-disconnect",60112),debugPause:gn("debug-pause",60113),debugRestart:gn("debug-restart",60114),debugStart:gn("debug-start",60115),debugStepInto:gn("debug-step-into",60116),debugStepOut:gn("debug-step-out",60117),debugStepOver:gn("debug-step-over",60118),debugStop:gn("debug-stop",60119),debug:gn("debug",60120),deviceCameraVideo:gn("device-camera-video",60121),deviceCamera:gn("device-camera",60122),deviceMobile:gn("device-mobile",60123),diffAdded:gn("diff-added",60124),diffIgnored:gn("diff-ignored",60125),diffModified:gn("diff-modified",60126),diffRemoved:gn("diff-removed",60127),diffRenamed:gn("diff-renamed",60128),diff:gn("diff",60129),diffSidebyside:gn("diff-sidebyside",60129),discard:gn("discard",60130),editorLayout:gn("editor-layout",60131),emptyWindow:gn("empty-window",60132),exclude:gn("exclude",60133),extensions:gn("extensions",60134),eyeClosed:gn("eye-closed",60135),fileBinary:gn("file-binary",60136),fileCode:gn("file-code",60137),fileMedia:gn("file-media",60138),filePdf:gn("file-pdf",60139),fileSubmodule:gn("file-submodule",60140),fileSymlinkDirectory:gn("file-symlink-directory",60141),fileSymlinkFile:gn("file-symlink-file",60142),fileZip:gn("file-zip",60143),files:gn("files",60144),filter:gn("filter",60145),flame:gn("flame",60146),foldDown:gn("fold-down",60147),foldUp:gn("fold-up",60148),fold:gn("fold",60149),folderActive:gn("folder-active",60150),folderOpened:gn("folder-opened",60151),gear:gn("gear",60152),gift:gn("gift",60153),gistSecret:gn("gist-secret",60154),gist:gn("gist",60155),gitCommit:gn("git-commit",60156),gitCompare:gn("git-compare",60157),compareChanges:gn("compare-changes",60157),gitMerge:gn("git-merge",60158),githubAction:gn("github-action",60159),githubAlt:gn("github-alt",60160),globe:gn("globe",60161),grabber:gn("grabber",60162),graph:gn("graph",60163),gripper:gn("gripper",60164),heart:gn("heart",60165),home:gn("home",60166),horizontalRule:gn("horizontal-rule",60167),hubot:gn("hubot",60168),inbox:gn("inbox",60169),issueReopened:gn("issue-reopened",60171),issues:gn("issues",60172),italic:gn("italic",60173),jersey:gn("jersey",60174),json:gn("json",60175),kebabVertical:gn("kebab-vertical",60176),key:gn("key",60177),law:gn("law",60178),lightbulbAutofix:gn("lightbulb-autofix",60179),linkExternal:gn("link-external",60180),link:gn("link",60181),listOrdered:gn("list-ordered",60182),listUnordered:gn("list-unordered",60183),liveShare:gn("live-share",60184),loading:gn("loading",60185),location:gn("location",60186),mailRead:gn("mail-read",60187),mail:gn("mail",60188),markdown:gn("markdown",60189),megaphone:gn("megaphone",60190),mention:gn("mention",60191),milestone:gn("milestone",60192),gitPullRequestMilestone:gn("git-pull-request-milestone",60192),mortarBoard:gn("mortar-board",60193),move:gn("move",60194),multipleWindows:gn("multiple-windows",60195),mute:gn("mute",60196),noNewline:gn("no-newline",60197),note:gn("note",60198),octoface:gn("octoface",60199),openPreview:gn("open-preview",60200),package:gn("package",60201),paintcan:gn("paintcan",60202),pin:gn("pin",60203),play:gn("play",60204),run:gn("run",60204),plug:gn("plug",60205),preserveCase:gn("preserve-case",60206),preview:gn("preview",60207),project:gn("project",60208),pulse:gn("pulse",60209),question:gn("question",60210),quote:gn("quote",60211),radioTower:gn("radio-tower",60212),reactions:gn("reactions",60213),references:gn("references",60214),refresh:gn("refresh",60215),regex:gn("regex",60216),remoteExplorer:gn("remote-explorer",60217),remote:gn("remote",60218),remove:gn("remove",60219),replaceAll:gn("replace-all",60220),replace:gn("replace",60221),repoClone:gn("repo-clone",60222),repoForcePush:gn("repo-force-push",60223),repoPull:gn("repo-pull",60224),repoPush:gn("repo-push",60225),report:gn("report",60226),requestChanges:gn("request-changes",60227),rocket:gn("rocket",60228),rootFolderOpened:gn("root-folder-opened",60229),rootFolder:gn("root-folder",60230),rss:gn("rss",60231),ruby:gn("ruby",60232),saveAll:gn("save-all",60233),saveAs:gn("save-as",60234),save:gn("save",60235),screenFull:gn("screen-full",60236),screenNormal:gn("screen-normal",60237),searchStop:gn("search-stop",60238),server:gn("server",60240),settingsGear:gn("settings-gear",60241),settings:gn("settings",60242),shield:gn("shield",60243),smiley:gn("smiley",60244),sortPrecedence:gn("sort-precedence",60245),splitHorizontal:gn("split-horizontal",60246),splitVertical:gn("split-vertical",60247),squirrel:gn("squirrel",60248),starFull:gn("star-full",60249),starHalf:gn("star-half",60250),symbolClass:gn("symbol-class",60251),symbolColor:gn("symbol-color",60252),symbolConstant:gn("symbol-constant",60253),symbolEnumMember:gn("symbol-enum-member",60254),symbolField:gn("symbol-field",60255),symbolFile:gn("symbol-file",60256),symbolInterface:gn("symbol-interface",60257),symbolKeyword:gn("symbol-keyword",60258),symbolMisc:gn("symbol-misc",60259),symbolOperator:gn("symbol-operator",60260),symbolProperty:gn("symbol-property",60261),wrench:gn("wrench",60261),wrenchSubaction:gn("wrench-subaction",60261),symbolSnippet:gn("symbol-snippet",60262),tasklist:gn("tasklist",60263),telescope:gn("telescope",60264),textSize:gn("text-size",60265),threeBars:gn("three-bars",60266),thumbsdown:gn("thumbsdown",60267),thumbsup:gn("thumbsup",60268),tools:gn("tools",60269),triangleDown:gn("triangle-down",60270),triangleLeft:gn("triangle-left",60271),triangleRight:gn("triangle-right",60272),triangleUp:gn("triangle-up",60273),twitter:gn("twitter",60274),unfold:gn("unfold",60275),unlock:gn("unlock",60276),unmute:gn("unmute",60277),unverified:gn("unverified",60278),verified:gn("verified",60279),versions:gn("versions",60280),vmActive:gn("vm-active",60281),vmOutline:gn("vm-outline",60282),vmRunning:gn("vm-running",60283),watch:gn("watch",60284),whitespace:gn("whitespace",60285),wholeWord:gn("whole-word",60286),window:gn("window",60287),wordWrap:gn("word-wrap",60288),zoomIn:gn("zoom-in",60289),zoomOut:gn("zoom-out",60290),listFilter:gn("list-filter",60291),listFlat:gn("list-flat",60292),listSelection:gn("list-selection",60293),selection:gn("selection",60293),listTree:gn("list-tree",60294),debugBreakpointFunctionUnverified:gn("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:gn("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:gn("debug-breakpoint-function-disabled",60296),debugStackframeActive:gn("debug-stackframe-active",60297),circleSmallFilled:gn("circle-small-filled",60298),debugStackframeDot:gn("debug-stackframe-dot",60298),terminalDecorationMark:gn("terminal-decoration-mark",60298),debugStackframe:gn("debug-stackframe",60299),debugStackframeFocused:gn("debug-stackframe-focused",60299),debugBreakpointUnsupported:gn("debug-breakpoint-unsupported",60300),symbolString:gn("symbol-string",60301),debugReverseContinue:gn("debug-reverse-continue",60302),debugStepBack:gn("debug-step-back",60303),debugRestartFrame:gn("debug-restart-frame",60304),debugAlt:gn("debug-alt",60305),callIncoming:gn("call-incoming",60306),callOutgoing:gn("call-outgoing",60307),menu:gn("menu",60308),expandAll:gn("expand-all",60309),feedback:gn("feedback",60310),gitPullRequestReviewer:gn("git-pull-request-reviewer",60310),groupByRefType:gn("group-by-ref-type",60311),ungroupByRefType:gn("ungroup-by-ref-type",60312),account:gn("account",60313),gitPullRequestAssignee:gn("git-pull-request-assignee",60313),bellDot:gn("bell-dot",60314),debugConsole:gn("debug-console",60315),library:gn("library",60316),output:gn("output",60317),runAll:gn("run-all",60318),syncIgnored:gn("sync-ignored",60319),pinned:gn("pinned",60320),githubInverted:gn("github-inverted",60321),serverProcess:gn("server-process",60322),serverEnvironment:gn("server-environment",60323),pass:gn("pass",60324),issueClosed:gn("issue-closed",60324),stopCircle:gn("stop-circle",60325),playCircle:gn("play-circle",60326),record:gn("record",60327),debugAltSmall:gn("debug-alt-small",60328),vmConnect:gn("vm-connect",60329),cloud:gn("cloud",60330),merge:gn("merge",60331),export:gn("export",60332),graphLeft:gn("graph-left",60333),magnet:gn("magnet",60334),notebook:gn("notebook",60335),redo:gn("redo",60336),checkAll:gn("check-all",60337),pinnedDirty:gn("pinned-dirty",60338),passFilled:gn("pass-filled",60339),circleLargeFilled:gn("circle-large-filled",60340),circleLarge:gn("circle-large",60341),circleLargeOutline:gn("circle-large-outline",60341),combine:gn("combine",60342),gather:gn("gather",60342),table:gn("table",60343),variableGroup:gn("variable-group",60344),typeHierarchy:gn("type-hierarchy",60345),typeHierarchySub:gn("type-hierarchy-sub",60346),typeHierarchySuper:gn("type-hierarchy-super",60347),gitPullRequestCreate:gn("git-pull-request-create",60348),runAbove:gn("run-above",60349),runBelow:gn("run-below",60350),notebookTemplate:gn("notebook-template",60351),debugRerun:gn("debug-rerun",60352),workspaceTrusted:gn("workspace-trusted",60353),workspaceUntrusted:gn("workspace-untrusted",60354),workspaceUnknown:gn("workspace-unknown",60355),terminalCmd:gn("terminal-cmd",60356),terminalDebian:gn("terminal-debian",60357),terminalLinux:gn("terminal-linux",60358),terminalPowershell:gn("terminal-powershell",60359),terminalTmux:gn("terminal-tmux",60360),terminalUbuntu:gn("terminal-ubuntu",60361),terminalBash:gn("terminal-bash",60362),arrowSwap:gn("arrow-swap",60363),copy:gn("copy",60364),personAdd:gn("person-add",60365),filterFilled:gn("filter-filled",60366),wand:gn("wand",60367),debugLineByLine:gn("debug-line-by-line",60368),inspect:gn("inspect",60369),layers:gn("layers",60370),layersDot:gn("layers-dot",60371),layersActive:gn("layers-active",60372),compass:gn("compass",60373),compassDot:gn("compass-dot",60374),compassActive:gn("compass-active",60375),azure:gn("azure",60376),issueDraft:gn("issue-draft",60377),gitPullRequestClosed:gn("git-pull-request-closed",60378),gitPullRequestDraft:gn("git-pull-request-draft",60379),debugAll:gn("debug-all",60380),debugCoverage:gn("debug-coverage",60381),runErrors:gn("run-errors",60382),folderLibrary:gn("folder-library",60383),debugContinueSmall:gn("debug-continue-small",60384),beakerStop:gn("beaker-stop",60385),graphLine:gn("graph-line",60386),graphScatter:gn("graph-scatter",60387),pieChart:gn("pie-chart",60388),bracket:gn("bracket",60175),bracketDot:gn("bracket-dot",60389),bracketError:gn("bracket-error",60390),lockSmall:gn("lock-small",60391),azureDevops:gn("azure-devops",60392),verifiedFilled:gn("verified-filled",60393),newline:gn("newline",60394),layout:gn("layout",60395),layoutActivitybarLeft:gn("layout-activitybar-left",60396),layoutActivitybarRight:gn("layout-activitybar-right",60397),layoutPanelLeft:gn("layout-panel-left",60398),layoutPanelCenter:gn("layout-panel-center",60399),layoutPanelJustify:gn("layout-panel-justify",60400),layoutPanelRight:gn("layout-panel-right",60401),layoutPanel:gn("layout-panel",60402),layoutSidebarLeft:gn("layout-sidebar-left",60403),layoutSidebarRight:gn("layout-sidebar-right",60404),layoutStatusbar:gn("layout-statusbar",60405),layoutMenubar:gn("layout-menubar",60406),layoutCentered:gn("layout-centered",60407),target:gn("target",60408),indent:gn("indent",60409),recordSmall:gn("record-small",60410),errorSmall:gn("error-small",60411),terminalDecorationError:gn("terminal-decoration-error",60411),arrowCircleDown:gn("arrow-circle-down",60412),arrowCircleLeft:gn("arrow-circle-left",60413),arrowCircleRight:gn("arrow-circle-right",60414),arrowCircleUp:gn("arrow-circle-up",60415),layoutSidebarRightOff:gn("layout-sidebar-right-off",60416),layoutPanelOff:gn("layout-panel-off",60417),layoutSidebarLeftOff:gn("layout-sidebar-left-off",60418),blank:gn("blank",60419),heartFilled:gn("heart-filled",60420),map:gn("map",60421),mapHorizontal:gn("map-horizontal",60421),foldHorizontal:gn("fold-horizontal",60421),mapFilled:gn("map-filled",60422),mapHorizontalFilled:gn("map-horizontal-filled",60422),foldHorizontalFilled:gn("fold-horizontal-filled",60422),circleSmall:gn("circle-small",60423),bellSlash:gn("bell-slash",60424),bellSlashDot:gn("bell-slash-dot",60425),commentUnresolved:gn("comment-unresolved",60426),gitPullRequestGoToChanges:gn("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:gn("git-pull-request-new-changes",60428),searchFuzzy:gn("search-fuzzy",60429),commentDraft:gn("comment-draft",60430),send:gn("send",60431),sparkle:gn("sparkle",60432),insert:gn("insert",60433),mic:gn("mic",60434),thumbsdownFilled:gn("thumbsdown-filled",60435),thumbsupFilled:gn("thumbsup-filled",60436),coffee:gn("coffee",60437),snake:gn("snake",60438),game:gn("game",60439),vr:gn("vr",60440),chip:gn("chip",60441),piano:gn("piano",60442),music:gn("music",60443),micFilled:gn("mic-filled",60444),repoFetch:gn("repo-fetch",60445),copilot:gn("copilot",60446),lightbulbSparkle:gn("lightbulb-sparkle",60447),robot:gn("robot",60448),sparkleFilled:gn("sparkle-filled",60449),diffSingle:gn("diff-single",60450),diffMultiple:gn("diff-multiple",60451),surroundWith:gn("surround-with",60452),share:gn("share",60453),gitStash:gn("git-stash",60454),gitStashApply:gn("git-stash-apply",60455),gitStashPop:gn("git-stash-pop",60456),vscode:gn("vscode",60457),vscodeInsiders:gn("vscode-insiders",60458),codeOss:gn("code-oss",60459),runCoverage:gn("run-coverage",60460),runAllCoverage:gn("run-all-coverage",60461),coverage:gn("coverage",60462),githubProject:gn("github-project",60463),mapVertical:gn("map-vertical",60464),foldVertical:gn("fold-vertical",60464),mapVerticalFilled:gn("map-vertical-filled",60465),foldVerticalFilled:gn("fold-vertical-filled",60465)},...{dialogError:gn("dialog-error","error"),dialogWarning:gn("dialog-warning","warning"),dialogInfo:gn("dialog-info","info"),dialogClose:gn("dialog-close","close"),treeItemExpanded:gn("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:gn("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:gn("tree-filter-on-type-off","list-selection"),treeFilterClear:gn("tree-filter-clear","close"),treeItemLoading:gn("tree-item-loading","loading"),menuSelection:gn("menu-selection","check"),menuSubmenu:gn("menu-submenu","chevron-right"),menuBarMore:gn("menubar-more","more"),scrollbarButtonLeft:gn("scrollbar-button-left","triangle-left"),scrollbarButtonRight:gn("scrollbar-button-right","triangle-right"),scrollbarButtonUp:gn("scrollbar-button-up","triangle-up"),scrollbarButtonDown:gn("scrollbar-button-down","triangle-down"),toolBarMore:gn("toolbar-more","more"),quickInputBack:gn("quick-input-back","arrow-left"),dropDownButton:gn("drop-down-button",60084),symbolCustomColor:gn("symbol-customcolor",60252),exportIcon:gn("export",60332),workspaceUnspecified:gn("workspace-unspecified",60355),newLine:gn("newline",60394),thumbsDownFilled:gn("thumbsdown-filled",60435),thumbsUpFilled:gn("thumbsup-filled",60436),gitFetch:gn("git-fetch",60445),lightbulbSparkleAutofix:gn("lightbulb-sparkle-autofix",60447),debugBreakpointPending:gn("debug-breakpoint-pending",60377)}};class _n extends _{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class vn{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var wn,yn,Tn,kn,Sn;!function(e){const t=new Map;t.set(0,bn.symbolMethod),t.set(1,bn.symbolFunction),t.set(2,bn.symbolConstructor),t.set(3,bn.symbolField),t.set(4,bn.symbolVariable),t.set(5,bn.symbolClass),t.set(6,bn.symbolStruct),t.set(7,bn.symbolInterface),t.set(8,bn.symbolModule),t.set(9,bn.symbolProperty),t.set(10,bn.symbolEvent),t.set(11,bn.symbolOperator),t.set(12,bn.symbolUnit),t.set(13,bn.symbolValue),t.set(15,bn.symbolEnum),t.set(14,bn.symbolConstant),t.set(15,bn.symbolEnum),t.set(16,bn.symbolEnumMember),t.set(17,bn.symbolKeyword),t.set(27,bn.symbolSnippet),t.set(18,bn.symbolText),t.set(19,bn.symbolColor),t.set(20,bn.symbolFile),t.set(21,bn.symbolReference),t.set(22,bn.symbolCustomColor),t.set(23,bn.symbolFolder),t.set(24,bn.symbolTypeParameter),t.set(25,bn.account),t.set(26,bn.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=bn.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let i=n.get(e);return"undefined"!==typeof i||t||(i=9),i}}(wn||(wn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(yn||(yn={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(Tn||(Tn={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(kn||(kn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Sn||(Sn={}));z(0,"array"),z(0,"boolean"),z(0,"class"),z(0,"constant"),z(0,"constructor"),z(0,"enumeration"),z(0,"enumeration member"),z(0,"event"),z(0,"field"),z(0,"file"),z(0,"function"),z(0,"interface"),z(0,"key"),z(0,"method"),z(0,"module"),z(0,"namespace"),z(0,"null"),z(0,"number"),z(0,"object"),z(0,"operator"),z(0,"package"),z(0,"property"),z(0,"string"),z(0,"struct"),z(0,"type parameter"),z(0,"variable");var Ln,xn,Cn,En;!function(e){const t=new Map;t.set(0,bn.symbolFile),t.set(1,bn.symbolModule),t.set(2,bn.symbolNamespace),t.set(3,bn.symbolPackage),t.set(4,bn.symbolClass),t.set(5,bn.symbolMethod),t.set(6,bn.symbolProperty),t.set(7,bn.symbolField),t.set(8,bn.symbolConstructor),t.set(9,bn.symbolEnum),t.set(10,bn.symbolInterface),t.set(11,bn.symbolFunction),t.set(12,bn.symbolVariable),t.set(13,bn.symbolConstant),t.set(14,bn.symbolString),t.set(15,bn.symbolNumber),t.set(16,bn.symbolBoolean),t.set(17,bn.symbolArray),t.set(18,bn.symbolObject),t.set(19,bn.symbolKey),t.set(20,bn.symbolNull),t.set(21,bn.symbolEnumMember),t.set(22,bn.symbolStruct),t.set(23,bn.symbolEvent),t.set(24,bn.symbolOperator),t.set(25,bn.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=bn.symbolProperty),n}}(Ln||(Ln={}));class An{static fromValue(e){switch(e){case"comment":return An.Comment;case"imports":return An.Imports;case"region":return An.Region}return new An(e)}constructor(e){this.value=e}}An.Comment=new An("comment"),An.Imports=new An("imports"),An.Region=new An("region"),function(e){e[e.AIGenerated=1]="AIGenerated"}(xn||(xn={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(Cn||(Cn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(En||(En={}));new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new A,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),g((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var n;null===(n=this._factories.get(e))||void 0===n||n.dispose();const i=new _n(this,e,t);return this._factories.set(e,i),g((()=>{const t=this._factories.get(e);t&&t===i&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};var Rn,Mn,Nn,In,zn,Un,Hn,Dn,On,Wn,Pn,qn,Fn,Bn,Vn,Kn,jn,Gn,$n,Jn,Xn,Yn,Qn,Zn,ei,ti,ni,ii,ri,oi,ai,si,li,hi,ci,di,ui,mi,pi,fi,gi,bi,_i,vi,wi,yi,Ti;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Rn||(Rn={})),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(Mn||(Mn={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(Nn||(Nn={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(In||(In={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(zn||(zn={})),function(e){e[e.Deprecated=1]="Deprecated"}(Un||(Un={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(Hn||(Hn={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(Dn||(Dn={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(On||(On={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Wn||(Wn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Pn||(Pn={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(qn||(qn={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",e[e.quickSuggestions=89]="quickSuggestions",e[e.quickSuggestionsDelay=90]="quickSuggestionsDelay",e[e.readOnly=91]="readOnly",e[e.readOnlyMessage=92]="readOnlyMessage",e[e.renameOnType=93]="renameOnType",e[e.renderControlCharacters=94]="renderControlCharacters",e[e.renderFinalNewline=95]="renderFinalNewline",e[e.renderLineHighlight=96]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=98]="renderValidationDecorations",e[e.renderWhitespace=99]="renderWhitespace",e[e.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",e[e.roundedSelection=101]="roundedSelection",e[e.rulers=102]="rulers",e[e.scrollbar=103]="scrollbar",e[e.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=105]="scrollBeyondLastLine",e[e.scrollPredominantAxis=106]="scrollPredominantAxis",e[e.selectionClipboard=107]="selectionClipboard",e[e.selectionHighlight=108]="selectionHighlight",e[e.selectOnLineNumbers=109]="selectOnLineNumbers",e[e.showFoldingControls=110]="showFoldingControls",e[e.showUnused=111]="showUnused",e[e.snippetSuggestions=112]="snippetSuggestions",e[e.smartSelect=113]="smartSelect",e[e.smoothScrolling=114]="smoothScrolling",e[e.stickyScroll=115]="stickyScroll",e[e.stickyTabStops=116]="stickyTabStops",e[e.stopRenderingLineAfter=117]="stopRenderingLineAfter",e[e.suggest=118]="suggest",e[e.suggestFontSize=119]="suggestFontSize",e[e.suggestLineHeight=120]="suggestLineHeight",e[e.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",e[e.suggestSelection=122]="suggestSelection",e[e.tabCompletion=123]="tabCompletion",e[e.tabIndex=124]="tabIndex",e[e.unicodeHighlighting=125]="unicodeHighlighting",e[e.unusualLineTerminators=126]="unusualLineTerminators",e[e.useShadowDOM=127]="useShadowDOM",e[e.useTabStops=128]="useTabStops",e[e.wordBreak=129]="wordBreak",e[e.wordSegmenterLocales=130]="wordSegmenterLocales",e[e.wordSeparators=131]="wordSeparators",e[e.wordWrap=132]="wordWrap",e[e.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=135]="wordWrapColumn",e[e.wordWrapOverride1=136]="wordWrapOverride1",e[e.wordWrapOverride2=137]="wordWrapOverride2",e[e.wrappingIndent=138]="wrappingIndent",e[e.wrappingStrategy=139]="wrappingStrategy",e[e.showDeprecated=140]="showDeprecated",e[e.inlayHints=141]="inlayHints",e[e.editorClassName=142]="editorClassName",e[e.pixelRatio=143]="pixelRatio",e[e.tabFocusMode=144]="tabFocusMode",e[e.layoutInfo=145]="layoutInfo",e[e.wrappingInfo=146]="wrappingInfo",e[e.defaultColorDecorators=147]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"}(Fn||(Fn={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Bn||(Bn={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(Vn||(Vn={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(Kn||(Kn={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(jn||(jn={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Gn||(Gn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}($n||($n={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(Jn||(Jn={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Xn||(Xn={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(Yn||(Yn={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(Qn||(Qn={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(Zn||(Zn={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(ei||(ei={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(ti||(ti={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(ni||(ni={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(ii||(ii={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(ri||(ri={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(oi||(oi={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(ai||(ai={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(si||(si={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(li||(li={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(hi||(hi={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(ci||(ci={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(di||(di={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ui||(ui={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(mi||(mi={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(pi||(pi={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(fi||(fi={})),function(e){e[e.Deprecated=1]="Deprecated"}(gi||(gi={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(bi||(bi={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(_i||(_i={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(vi||(vi={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(wi||(wi={}));class ki{static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}ki.CtrlCmd=2048,ki.Shift=1024,ki.Alt=512,ki.WinCtrl=256;class Si{constructor(e,t){this.uri=e,this.value=t}}class Li{constructor(e,t){if(this[yi]="ResourceMap",e instanceof Li)this.map=new Map(e.map),this.toKey=null!==t&&void 0!==t?t:Li.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=null!==t&&void 0!==t?t:Li.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=null!==e&&void 0!==e?e:Li.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new Si(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(yi=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}Li.defaultToKey=e=>e.toString();class xi{constructor(){this[Ti]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(Ti=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class Ci{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}new class extends xi{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}(10);var Ei,Ai,Ri;!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Ei||(Ei={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(Ai||(Ai={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Ri||(Ri={}));function Mi(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const o=t.charCodeAt(i-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const o=t.charCodeAt(i+r);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}class Ni{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const i=n.index,r=n[0].length;if(i===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){ge(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=r,!this._wordSeparators||Mi(this._wordSeparators,e,t,i,r))return n}while(n);return null}}function Ii(e,t="Unreachable"){throw new Error(t)}function zi(e){e()||(e(),t(new s("Assertion Failed")))}function Ui(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}class Hi{static computeUnicodeHighlights(e,t,n){const i=n?n.startLineNumber:1,r=n?n.endLineNumber:e.getLineCount(),o=new Di(t),a=o.getCandidateCodePoints();let s;s="allNonBasicAscii"===a?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+`[${de(Array.from(a).map((e=>String.fromCodePoint(e))).join(""))}]`,"g");const l=new Ni(null,s),h=[];let c,d=!1,u=0,m=0,p=0;e:for(let f=i,g=r;f<=g;f++){const t=e.getLineContent(f),n=t.length;l.reset(0);do{if(c=l.next(t),c){let e=c.index,i=c.index+c[0].length;if(e>0){me(t.charCodeAt(e-1))&&e--}if(i+1<n){me(t.charCodeAt(i-1))&&i++}const r=t.substring(e,i);let a=qt(e+1,Ot,t,0);a&&a.endColumn<=e+1&&(a=null);const s=o.shouldHighlightNonBasicASCII(r,a?a.word:null);if(0!==s){3===s?u++:2===s?m++:1===s?p++:Ii();const t=1e3;if(h.length>=t){d=!0;break e}h.push(new Et(f,e+1,f,i+1))}}}while(c)}return{ranges:h,hasMore:d,ambiguousCharacterCount:u,invisibleCharacterCount:m,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(e,t){const n=new Di(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),r=n.ambiguousCharacters.getPrimaryConfusable(i),o=ve.getLocales().filter((e=>!ve.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i)));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class Di{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=ve.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of we.codePoints)Oi(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const a of t){const e=a.codePointAt(0),t=(o=a,be.test(o));i=i||t,t||this.ambiguousCharacters.isAmbiguous(e)||we.isInvisibleCharacter(e)||(r=!0)}var o;return!i&&r?0:this.options.invisibleCharacters&&!Oi(e)&&we.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function Oi(e){return" "===e||"\n"===e||"\t"===e}class Wi{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class Pi{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}class qi{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let i=n;for(;i<t.length&&t[i].start<=e.endExclusive;)i++;if(n===i)t.splice(n,0,e);else{const r=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[i-1].endExclusive);t.splice(n,i-n,new qi(r,o))}}static tryCreate(e,t){if(!(e>t))return new qi(e,t)}static ofLength(e){return new qi(0,e)}static ofStartAndLength(e,t){return new qi(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new s(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new qi(this.start+e,this.endExclusive+e)}deltaStart(e){return new qi(this.start+e,this.endExclusive)}deltaEnd(e){return new qi(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new qi(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new qi(t,n)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new s(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new s(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}function Fi(e,t){const n=Bi(e,t);return-1===n?void 0:e[n]}function Bi(e,t,n=0,i=e.length){let r=n,o=i;for(;r<o;){const n=Math.floor((r+o)/2);t(e[n])?r=n+1:o=n}return r-1}function Vi(e,t,n=0,i=e.length){let r=n,o=i;for(;r<o;){const n=Math.floor((r+o)/2);t(e[n])?o=n:r=n+1}return r}class Ki{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(Ki.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=Bi(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}Ki.assertInvariants=!1;class ji{static fromRangeInclusive(e){return new ji(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new Gi(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new Gi(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new s("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)t=Math.min(t,e[i].startLineNumber),n=Math.max(n,e[i].endLineNumberExclusive);return new ji(t,n)}static ofLength(e,t){return new ji(e,e+t)}static deserialize(e){return new ji(e[0],e[1])}constructor(e,t){if(e>t)throw new s(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new ji(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new ji(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new ji(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new ji(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Et(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Et(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new qi(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class Gi{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=Vi(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=Bi(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){const t=Fi(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=Fi(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,i=0,r=null;for(;n<this._normalizedRanges.length||i<e._normalizedRanges.length;){let o=null;if(n<this._normalizedRanges.length&&i<e._normalizedRanges.length){const t=this._normalizedRanges[n],r=e._normalizedRanges[i];t.startLineNumber<r.startLineNumber?(o=t,n++):(o=r,i++)}else n<this._normalizedRanges.length?(o=this._normalizedRanges[n],n++):(o=e._normalizedRanges[i],i++);null===r?r=o:r.endLineNumberExclusive>=o.startLineNumber?r=new ji(r.startLineNumber,Math.max(r.endLineNumberExclusive,o.endLineNumberExclusive)):(t.push(r),r=o)}return null!==r&&t.push(r),new Gi(t)}subtractFrom(e){const t=Vi(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=Bi(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new Gi([e]);const i=[];let r=e.startLineNumber;for(let o=t;o<n;o++){const e=this._normalizedRanges[o];e.startLineNumber>r&&i.push(new ji(r,e.startLineNumber)),r=e.endLineNumberExclusive}return r<e.endLineNumberExclusive&&i.push(new ji(r,e.endLineNumberExclusive)),new Gi(i)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,i=0;for(;n<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const r=this._normalizedRanges[n],o=e._normalizedRanges[i],a=r.intersect(o);a&&!a.isEmpty&&t.push(a),r.endLineNumberExclusive<o.endLineNumberExclusive?n++:i++}return new Gi(t)}getWithDelta(e){return new Gi(this._normalizedRanges.map((t=>t.delta(e))))}}class $i{static inverse(e,t,n){const i=[];let r=1,o=1;for(const s of e){const e=new $i(new ji(r,s.original.startLineNumber),new ji(o,s.modified.startLineNumber));e.modified.isEmpty||i.push(e),r=s.original.endLineNumberExclusive,o=s.modified.endLineNumberExclusive}const a=new $i(new ji(r,t+1),new ji(o,n+1));return a.modified.isEmpty||i.push(a),i}static clip(e,t,n){const i=[];for(const r of e){const e=r.original.intersect(t),o=r.modified.intersect(n);e&&!e.isEmpty&&o&&!o.isEmpty&&i.push(new $i(e,o))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new $i(this.modified,this.original)}join(e){return new $i(this.original.join(e.original),this.modified.join(e.modified))}}class Ji extends $i{static fromRangeMappings(e){const t=ji.join(e.map((e=>ji.fromRangeInclusive(e.originalRange)))),n=ji.join(e.map((e=>ji.fromRangeInclusive(e.modifiedRange))));return new Ji(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){var e;return new Ji(this.modified,this.original,null===(e=this.innerChanges)||void 0===e?void 0:e.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new Ji(this.original,this.modified,[new Xi(this.original.toExclusiveRange(),this.modified.toExclusiveRange())])}}class Xi{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Xi(this.modifiedRange,this.originalRange)}}class Yi{computeDiff(e,t,n){var i;const r=new ir(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let a=null;for(const s of r.changes){let e,t;e=0===s.originalEndLineNumber?new ji(s.originalStartLineNumber+1,s.originalStartLineNumber+1):new ji(s.originalStartLineNumber,s.originalEndLineNumber+1),t=0===s.modifiedEndLineNumber?new ji(s.modifiedStartLineNumber+1,s.modifiedStartLineNumber+1):new ji(s.modifiedStartLineNumber,s.modifiedEndLineNumber+1);let n=new Ji(e,t,null===(i=s.charChanges)||void 0===i?void 0:i.map((e=>new Xi(new Et(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new Et(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));a&&(a.modified.endLineNumberExclusive!==n.modified.startLineNumber&&a.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new Ji(a.original.join(n.original),a.modified.join(n.modified),a.innerChanges&&n.innerChanges?a.innerChanges.concat(n.innerChanges):void 0),o.pop())),o.push(n),a=n}return zi((()=>Ui(o,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new Wi(o,[],r.quitEarly)}}function Qi(e,t,n,i){return new Ke(e,t,n).ComputeDiff(i)}class Zi{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=rr(e[i],1),n[i]=or(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const i=[],r=[],o=[];let a=0;for(let s=t;s<=n;s++){const t=this.lines[s],l=e?this._startColumns[s]:1,h=e?this._endColumns[s]:t.length+1;for(let e=l;e<h;e++)i[a]=t.charCodeAt(e-1),r[a]=s+1,o[a]=e,a++;!e&&s<n&&(i[a]=10,r[a]=s+1,o[a]=t.length+1,a++)}return new er(i,r,o)}}class er{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class tr{constructor(e,t,n,i,r,o,a,s){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=o,this.modifiedEndLineNumber=a,this.modifiedEndColumn=s}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),a=t.getEndColumn(e.originalStart+e.originalLength-1),s=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),h=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new tr(i,r,o,a,s,l,h,c)}}class nr{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,o,a){let s,l,h,c,d;if(0===t.originalLength?(s=n.getStartLineNumber(t.originalStart)-1,l=0):(s=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(h=i.getStartLineNumber(t.modifiedStart)-1,c=0):(h=i.getStartLineNumber(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const o=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),s=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(o.getElements().length>0&&s.getElements().length>0){let e=Qi(o,s,r,!0).changes;a&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],o=r.originalStart-(n.originalStart+n.originalLength),a=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(o,a)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(e)),d=[];for(let t=0,n=e.length;t<n;t++)d.push(tr.createFromDiffChange(e[t],o,s))}}return new nr(s,l,h,c,d)}}class ir{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new Zi(e),this.modified=new Zi(t),this.continueLineDiff=ar(n.maxComputationTime),this.continueCharDiff=ar(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=Qi(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(nr.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,o=0;for(let a=-1,s=t.length;a<s;a++){const e=a+1<s?t[a+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;r<n&&o<l;){const e=this.originalLines[r],t=this.modifiedLines[o];if(e!==t){{let n=rr(e,1),a=rr(t,1);for(;n>1&&a>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(a-2))break;n--,a--}(n>1||a>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,o+1,1,a)}{let n=or(e,1),a=or(t,1);const s=e.length+1,l=t.length+1;for(;n<s&&a<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(a-1))break;n++,a++}(n<s||a<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,s,o+1,a,l)}}r++,o++}e&&(i.push(nr.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=e.originalLength,o+=e.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,o,a){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,o,a))return;let s;this.shouldComputeCharChanges&&(s=[new tr(t,n,t,i,r,o,r,a)]),e.push(new nr(t,t,r,r,s))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,o,a){const s=e.length;if(0===s)return!1;const l=e[s-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===r?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new tr(t,n,t,i,r,o,r,a)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new tr(t,n,t,i,r,o,r,a)),!0))}}function rr(e,t){const n=function(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}(e);return-1===n?t:n+1}function or(e,t){const n=function(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===n?t:n+2}function ar(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}class sr{static trivial(e,t){return new sr([new lr(qi.ofLength(e.length),qi.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new sr([new lr(qi.ofLength(e.length),qi.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class lr{static invert(e,t){const n=[];return function(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}(e,((e,i)=>{n.push(lr.fromOffsetPairs(e?e.getEndExclusives():hr.zero,i?i.getStarts():new hr(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new lr(new qi(e.offset1,t.offset1),new qi(e.offset2,t.offset2))}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new lr(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new lr(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new lr(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new lr(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new lr(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new lr(t,n)}getStarts(){return new hr(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new hr(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class hr{constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new hr(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}hr.zero=new hr(0,0),hr.max=new hr(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class cr{isValid(){return!0}}cr.instance=new cr;class dr{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new s("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class ur{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}}function mr(e){return 32===e||9===e}class pr{static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let i=0;for(let r=e.startLineNumber-1;r<e.endLineNumberExclusive-1;r++){const e=t[r];for(let t=0;t<e.length;t++){i++;const n=e[t],r=pr.getKey(n);this.histogram[r]=(this.histogram[r]||0)+1}i++;const n=pr.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=i}computeSimilarity(e){var t,n;let i=0;const r=Math.max(this.histogram.length,e.histogram.length);for(let o=0;o<r;o++)i+=Math.abs((null!==(t=this.histogram[o])&&void 0!==t?t:0)-(null!==(n=e.histogram[o])&&void 0!==n?n:0));return 1-i/(this.totalCount+e.totalCount)}}pr.chrKeys=new Map;class fr{compute(e,t,n=cr.instance,i){if(0===e.length||0===t.length)return sr.trivial(e,t);const r=new ur(e.length,t.length),o=new ur(e.length,t.length),a=new ur(e.length,t.length);for(let m=0;m<e.length;m++)for(let s=0;s<t.length;s++){if(!n.isValid())return sr.trivialTimedOut(e,t);const l=0===m?0:r.get(m-1,s),h=0===s?0:r.get(m,s-1);let c;e.getElement(m)===t.getElement(s)?(c=0===m||0===s?0:r.get(m-1,s-1),m>0&&s>0&&3===o.get(m-1,s-1)&&(c+=a.get(m-1,s-1)),c+=i?i(m,s):1):c=-1;const d=Math.max(l,h,c);if(d===c){const e=m>0&&s>0?a.get(m-1,s-1):0;a.set(m,s,e+1),o.set(m,s,3)}else d===l?(a.set(m,s,0),o.set(m,s,1)):d===h&&(a.set(m,s,0),o.set(m,s,2));r.set(m,s,d)}const s=[];let l=e.length,h=t.length;function c(e,t){e+1===l&&t+1===h||s.push(new lr(new qi(e+1,l),new qi(t+1,h))),l=e,h=t}let d=e.length-1,u=t.length-1;for(;d>=0&&u>=0;)3===o.get(d,u)?(c(d,u),d--,u--):1===o.get(d,u)?d--:u--;return c(-1,-1),s.reverse(),new sr(s,!1)}}class gr{compute(e,t,n=cr.instance){if(0===e.length||0===t.length)return sr.trivial(e,t);const i=e,r=t;function o(e,t){for(;e<i.length&&t<r.length&&i.getElement(e)===r.getElement(t);)e++,t++;return e}let a=0;const s=new _r;s.set(0,o(0,0));const l=new vr;l.set(0,0===s.get(0)?null:new br(null,0,0,s.get(0)));let h=0;e:for(;;){if(a++,!n.isValid())return sr.trivialTimedOut(i,r);const e=-Math.min(a,r.length+a%2),t=Math.min(a,i.length+a%2);for(h=e;h<=t;h+=2){let n=0;const a=h===t?-1:s.get(h+1),c=h===e?-1:s.get(h-1)+1;n++;const d=Math.min(Math.max(a,c),i.length),u=d-h;if(n++,d>i.length||u>r.length)continue;const m=o(d,u);s.set(h,m);const p=d===a?l.get(h+1):l.get(h-1);if(l.set(h,m!==d?new br(p,d,u,m-d):p),s.get(h)===i.length&&s.get(h)-h===r.length)break e}}let c=l.get(h);const d=[];let u=i.length,m=r.length;for(;;){const e=c?c.x+c.length:0,t=c?c.y+c.length:0;if(e===u&&t===m||d.push(new lr(new qi(e,u),new qi(t,m))),!c)break;u=c.x,m=c.y,c=c.prev}return d.reverse(),new sr(d,!1)}}class br{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class _r{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class vr{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class wr{constructor(e,t,n){this.lines=e,this.considerWhitespaceChanges=n,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let i=!1;t.start>0&&t.endExclusive>=e.length&&(t=new qi(t.start-1,t.endExclusive),i=!0),this.lineRange=t,this.firstCharOffsetByLine[0]=0;for(let r=this.lineRange.start;r<this.lineRange.endExclusive;r++){let t=e[r],o=0;if(i)o=t.length,t="",i=!1;else if(!n){const e=t.trimStart();o=t.length-e.length,t=e.trimEnd()}this.additionalOffsetByLine.push(o);for(let e=0;e<t.length;e++)this.elements.push(t.charCodeAt(e));r<e.length-1&&(this.elements.push("\n".charCodeAt(0)),this.firstCharOffsetByLine[r-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new qi(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=Sr(e>0?this.elements[e-1]:-1),n=Sr(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let i=0;return t!==n&&(i+=10,0===t&&1===n&&(i+=1)),i+=kr(t),i+=kr(n),i}translateOffset(e){if(this.lineRange.isEmpty)return new Ct(this.lineRange.start+1,1);const t=Bi(this.firstCharOffsetByLine,(t=>t<=e));return new Ct(this.lineRange.start+t+1,e-this.firstCharOffsetByLine[t]+this.additionalOffsetByLine[t]+1)}translateRange(e){return Et.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!yr(this.elements[e]))return;let t=e;for(;t>0&&yr(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&yr(this.elements[n]);)n++;return new qi(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){var t,n;const i=null!==(t=Fi(this.firstCharOffsetByLine,(t=>t<=e.start)))&&void 0!==t?t:0,r=null!==(n=function(e,t){const n=Vi(e,t);return n===e.length?void 0:e[n]}(this.firstCharOffsetByLine,(t=>e.endExclusive<=t)))&&void 0!==n?n:this.elements.length;return new qi(i,r)}}function yr(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const Tr={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function kr(e){return Tr[e]}function Sr(e){return 10===e?8:13===e?7:mr(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function Lr(e,t,n,i,r,o){let{moves:a,excludedChanges:s}=function(e,t,n,i){const r=[],o=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new pr(e.original,t,e))),a=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new pr(e.modified,n,e)))),s=new Set;for(const l of o){let e,t=-1;for(const n of a){const i=l.computeSimilarity(n);i>t&&(t=i,e=n)}if(t>.9&&e&&(a.delete(e),r.push(new $i(l.range,e.range)),s.add(l.source),s.add(e.source)),!i.isValid())return{moves:r,excludedChanges:s}}return{moves:r,excludedChanges:s}}(e,t,n,o);if(!o.isValid())return[];const l=function(e,t,n,i,r,o){const a=[],s=new Ci;for(const m of e)for(let e=m.original.startLineNumber;e<m.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;s.add(n,{range:new ji(e,e+3)})}const l=[];e.sort(Rt((e=>e.modified.startLineNumber),Mt));for(const m of e){let e=[];for(let t=m.modified.startLineNumber;t<m.modified.endLineNumberExclusive-2;t++){const i=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,r=new ji(t,t+3),o=[];s.forEach(i,(({range:t})=>{for(const i of e)if(i.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&i.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return i.originalLineRange=new ji(i.originalLineRange.startLineNumber,t.endLineNumberExclusive),i.modifiedLineRange=new ji(i.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void o.push(i);const n={modifiedLineRange:r,originalLineRange:t};l.push(n),o.push(n)})),e=o}if(!o.isValid())return[]}l.sort((h=Rt((e=>e.modifiedLineRange.length),Mt),(e,t)=>-h(e,t)));var h;const c=new Gi,d=new Gi;for(const m of l){const e=m.modifiedLineRange.startLineNumber-m.originalLineRange.startLineNumber,t=c.subtractFrom(m.modifiedLineRange),n=d.subtractFrom(m.originalLineRange).getWithDelta(e),i=t.getIntersection(n);for(const r of i.ranges){if(r.length<3)continue;const t=r,n=r.delta(-e);a.push(new $i(n,t)),c.addRange(t),d.addRange(n)}}a.sort(Rt((e=>e.original.startLineNumber),Mt));const u=new Ki(e);for(let m=0;m<a.length;m++){const t=a[m],n=u.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),s=Fi(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-s.modified.startLineNumber),h=u.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),p=Fi(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),f=Math.max(h.original.endLineNumberExclusive-t.original.endLineNumberExclusive,p.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let g,b;for(g=0;g<l;g++){const e=t.original.startLineNumber-g-1,n=t.modified.startLineNumber-g-1;if(e>i.length||n>r.length)break;if(c.contains(n)||d.contains(e))break;if(!xr(i[e-1],r[n-1],o))break}for(g>0&&(d.addRange(new ji(t.original.startLineNumber-g,t.original.startLineNumber)),c.addRange(new ji(t.modified.startLineNumber-g,t.modified.startLineNumber))),b=0;b<f;b++){const e=t.original.endLineNumberExclusive+b,n=t.modified.endLineNumberExclusive+b;if(e>i.length||n>r.length)break;if(c.contains(n)||d.contains(e))break;if(!xr(i[e-1],r[n-1],o))break}b>0&&(d.addRange(new ji(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+b)),c.addRange(new ji(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+b))),(g>0||b>0)&&(a[m]=new $i(new ji(t.original.startLineNumber-g,t.original.endLineNumberExclusive+b),new ji(t.modified.startLineNumber-g,t.modified.endLineNumberExclusive+b)))}return a}(e.filter((e=>!s.has(e))),i,r,t,n,o);return function(e,t){for(const n of t)e.push(n)}(a,l),a=function(e){if(0===e.length)return e;e.sort(Rt((e=>e.original.startLineNumber),Mt));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],o=r.original.startLineNumber-i.original.endLineNumberExclusive,a=r.modified.startLineNumber-i.modified.endLineNumberExclusive;o>=0&&a>=0&&o+a<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(a),a=a.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const i of e)t(i)&&n++;return n}(n,(e=>e.length>=2))>=2})),a=function(e,t){const n=new Ki(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new $i(new ji(1,1),new ji(1,1)))!==Fi(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,a),a}function xr(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=(new gr).compute(new wr([e],new qi(0,1),!1),new wr([t],new qi(0,1),!1),n);let r=0;const o=lr.invert(i.diffs,e.length);for(const s of o)s.seq1Range.forEach((t=>{mr(e.charCodeAt(t))||r++}));const a=function(t){let n=0;for(let i=0;i<e.length;i++)mr(t.charCodeAt(i))||n++;return n}(e.length>t.length?e:t);return r/a>.6&&a>10}function Cr(e,t,n){let i=n;return i=Er(e,t,i),i=Er(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,o=n[i],a=i+1<n.length?n[i+1]:void 0,s=new qi(r?r.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),l=new qi(r?r.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);o.seq1Range.isEmpty?n[i]=Ar(o,e,t,s,l):o.seq2Range.isEmpty&&(n[i]=Ar(o.swap(),t,e,l,s).swap())}return n}(e,t,i),i}function Er(e,t,n){if(0===n.length)return n;const i=[];i.push(n[0]);for(let o=1;o<n.length;o++){const r=i[i.length-1];let a=n[o];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){const n=a.seq1Range.start-r.seq1Range.endExclusive;let o;for(o=1;o<=n&&(e.getElement(a.seq1Range.start-o)===e.getElement(a.seq1Range.endExclusive-o)&&t.getElement(a.seq2Range.start-o)===t.getElement(a.seq2Range.endExclusive-o));o++);if(o--,o===n){i[i.length-1]=new lr(new qi(r.seq1Range.start,a.seq1Range.endExclusive-n),new qi(r.seq2Range.start,a.seq2Range.endExclusive-n));continue}a=a.delta(-o)}i.push(a)}const r=[];for(let o=0;o<i.length-1;o++){const n=i[o+1];let a=i[o];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){const r=n.seq1Range.start-a.seq1Range.endExclusive;let s;for(s=0;s<r&&(e.isStronglyEqual(a.seq1Range.start+s,a.seq1Range.endExclusive+s)&&t.isStronglyEqual(a.seq2Range.start+s,a.seq2Range.endExclusive+s));s++);if(s===r){i[o+1]=new lr(new qi(a.seq1Range.start+r,n.seq1Range.endExclusive),new qi(a.seq2Range.start+r,n.seq2Range.endExclusive));continue}s>0&&(a=a.delta(s))}r.push(a)}return i.length>0&&r.push(i[i.length-1]),r}function Ar(e,t,n,i,r){let o=1;for(;e.seq1Range.start-o>=i.start&&e.seq2Range.start-o>=r.start&&n.isStronglyEqual(e.seq2Range.start-o,e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let a=0;for(;e.seq1Range.start+a<i.endExclusive&&e.seq2Range.endExclusive+a<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+a,e.seq2Range.endExclusive+a)&&a<100;)a++;if(0===o&&0===a)return e;let s=0,l=-1;for(let h=-o;h<=a;h++){const i=e.seq2Range.start+h,r=e.seq2Range.endExclusive+h,o=e.seq1Range.start+h,a=t.getBoundaryScore(o)+n.getBoundaryScore(i)+n.getBoundaryScore(r);a>l&&(l=a,s=h)}return e.delta(s)}class Rr{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:Mr(this.lines[e-1]))+(e===this.lines.length?0:Mr(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function Mr(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class Nr{constructor(){this.dynamicProgrammingDiffing=new fr,this.myersDiffingAlgorithm=new gr}computeDiff(e,t,n){if(e.length<=1&&function(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}(e,t,((e,t)=>e===t)))return new Wi([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new Wi([new Ji(new ji(1,e.length+1),new ji(1,t.length+1),[new Xi(new Et(1,1,e.length,e[0].length+1),new Et(1,1,t.length,t[0].length+1))])],[],!1);const i=0===n.maxComputationTimeMs?cr.instance:new dr(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,o=new Map;function a(e){let t=o.get(e);return void 0===t&&(t=o.size,o.set(e,t)),t}const s=e.map((e=>a(e.trim()))),l=t.map((e=>a(e.trim()))),h=new Rr(s,e),c=new Rr(l,t),d=(()=>h.length+c.length<1700?this.dynamicProgrammingDiffing.compute(h,c,i,((n,i)=>e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99)):this.myersDiffingAlgorithm.compute(h,c))();let u=d.diffs,m=d.hitTimeout;u=Cr(h,c,u),u=function(e,t,n){let i=n;if(0===i.length)return i;let r,o=0;do{r=!1;const a=[i[0]];for(let s=1;s<i.length;s++){const l=i[s],h=a[a.length-1];function c(t,n){const i=new qi(h.seq1Range.endExclusive,l.seq1Range.start);return e.getText(i).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}c(h,l)?(r=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}i=a}while(o++<10&&r);return i}(h,0,u);const p=[],f=n=>{if(r)for(let o=0;o<n;o++){const n=g+o,a=b+o;if(e[n]!==t[a]){const o=this.refineDiff(e,t,new lr(new qi(n,n+1),new qi(a,a+1)),i,r);for(const e of o.mappings)p.push(e);o.hitTimeout&&(m=!0)}}};let g=0,b=0;for(const w of u){zi((()=>w.seq1Range.start-g===w.seq2Range.start-b));f(w.seq1Range.start-g),g=w.seq1Range.endExclusive,b=w.seq2Range.endExclusive;const n=this.refineDiff(e,t,w,i,r);n.hitTimeout&&(m=!0);for(const e of n.mappings)p.push(e)}f(e.length-g);const _=Ir(p,e,t);let v=[];return n.computeMoves&&(v=this.computeMoves(_,e,t,s,l,i,r)),zi((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function i(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const r of _){if(!r.innerChanges)return!1;for(const i of r.innerChanges){if(!(n(i.modifiedRange.getStartPosition(),t)&&n(i.modifiedRange.getEndPosition(),t)&&n(i.originalRange.getStartPosition(),e)&&n(i.originalRange.getEndPosition(),e)))return!1}if(!i(r.modified,t)||!i(r.original,e))return!1}return!0})),new Wi(_,v,m)}computeMoves(e,t,n,i,r,o,a){return Lr(e,t,n,i,r,o).map((e=>{const i=Ir(this.refineDiff(t,n,new lr(e.original.toOffsetRange(),e.modified.toOffsetRange()),o,a).mappings,t,n,!0);return new Pi(e,i)}))}refineDiff(e,t,n,i,r){const o=new wr(e,n.seq1Range,r),a=new wr(t,n.seq2Range,r),s=o.length+a.length<500?this.dynamicProgrammingDiffing.compute(o,a,i):this.myersDiffingAlgorithm.compute(o,a,i);let l=s.diffs;l=Cr(o,a,l),l=function(e,t,n){const i=lr.invert(n,e.length),r=[];let o=new hr(0,0);function a(n,a){if(n.offset1<o.offset1||n.offset2<o.offset2)return;const s=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!s||!l)return;let h=new lr(s,l);const c=h.intersect(a);let d=c.seq1Range.length,u=c.seq2Range.length;for(;i.length>0;){const n=i[0];if(!n.seq1Range.intersects(h.seq1Range)&&!n.seq2Range.intersects(h.seq2Range))break;const r=e.findWordContaining(n.seq1Range.start),o=t.findWordContaining(n.seq2Range.start),a=new lr(r,o),s=a.intersect(n);if(d+=s.seq1Range.length,u+=s.seq2Range.length,h=h.join(a),!(h.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;i.shift()}d+u<2*(h.seq1Range.length+h.seq2Range.length)/3&&r.push(h),o=h.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(a(e.getStarts(),e),a(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let o;o=i&&(!r||i.seq1Range.start<r.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=o.seq1Range.start?n[n.length-1]=n[n.length-1].join(o):n.push(o)}return n}(n,r)}(o,a,l),l=function(e,t,n){const i=[];for(const r of n){const e=i[i.length-1];e&&(r.seq1Range.start-e.seq1Range.endExclusive<=2||r.seq2Range.start-e.seq2Range.endExclusive<=2)?i[i.length-1]=new lr(e.seq1Range.join(r.seq1Range),e.seq2Range.join(r.seq2Range)):i.push(r)}return i}(0,0,l),l=function(e,t,n){let i=n;if(0===i.length)return i;let r,o=0;do{r=!1;const s=[i[0]];for(let l=1;l<i.length;l++){const h=i[l],c=s[s.length-1];function d(n,i){const r=new qi(c.seq1Range.endExclusive,h.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const o=e.getText(r).trim();if(o.length>20||o.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(n.seq1Range),s=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,u=e.countLinesIn(i.seq1Range),m=i.seq1Range.length,p=t.countLinesIn(i.seq2Range),f=i.seq2Range.length;function g(e){return Math.min(e,130)}return Math.pow(Math.pow(g(40*a+s),1.5)+Math.pow(g(40*l+d),1.5),1.5)+Math.pow(Math.pow(g(40*u+m),1.5)+Math.pow(g(40*p+f),1.5),1.5)>74184.96480721243}d(c,h)?(r=!0,s[s.length-1]=s[s.length-1].join(h)):s.push(h)}i=s}while(o++<10&&r);const a=[];return function(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}(i,((t,n,i)=>{let r=n;function o(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const s=e.extendToFullLines(n.seq1Range),l=e.getText(new qi(s.start,n.seq1Range.start));o(l)&&(r=r.deltaStart(-l.length));const h=e.getText(new qi(n.seq1Range.endExclusive,s.endExclusive));o(h)&&(r=r.deltaEnd(h.length));const c=lr.fromOffsetPairs(t?t.getEndExclusives():hr.zero,i?i.getStarts():hr.max),d=r.intersect(c);a.length>0&&d.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(d):a.push(d)})),a}(o,a,l);return{mappings:l.map((e=>new Xi(o.translateRange(e.seq1Range),a.translateRange(e.seq2Range)))),hitTimeout:s.hitTimeout}}}function Ir(e,t,n,i=!1){const r=[];for(const o of function*(e,t){let n,i;for(const r of e)void 0!==i&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}(e.map((e=>function(e,t,n){let i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const o=new ji(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),a=new ji(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new Ji(o,a,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=o[0],t=o[o.length-1];r.push(new Ji(e.original.join(t.original),e.modified.join(t.modified),o.map((e=>e.innerChanges[0]))))}return zi((()=>{if(!i&&r.length>0){if(r[0].modified.startLineNumber!==r[0].original.startLineNumber)return!1;if(n.length-r[r.length-1].modified.endLineNumberExclusive!==t.length-r[r.length-1].original.endLineNumberExclusive)return!1}return Ui(r,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),r}const zr=()=>new Yi,Ur=()=>new Nr;function Hr(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class Dr{constructor(e,t,n,i=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=Hr(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class Or{constructor(e,t,n,i){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Hr(Math.max(Math.min(1,t),0),3),this.l=Hr(Math.max(Math.min(1,n),0),3),this.a=Hr(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,o=Math.max(t,n,i),a=Math.min(t,n,i);let s=0,l=0;const h=(a+o)/2,c=o-a;if(c>0){switch(l=Math.min(h<=.5?c/(2*h):c/(2-2*h),1),o){case t:s=(n-i)/c+(n<i?6:0);break;case n:s=(i-t)/c+2;break;case i:s=(t-n)/c+4}s*=60,s=Math.round(s)}return new Or(s,l,h,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:r}=e;let o,a,s;if(0===n)o=a=s=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;o=Or._hue2rgb(r,e,t+1/3),a=Or._hue2rgb(r,e,t),s=Or._hue2rgb(r,e,t-1/3)}return new Dr(Math.round(255*o),Math.round(255*a),Math.round(255*s),r)}}class Wr{constructor(e,t,n,i){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Hr(Math.max(Math.min(1,t),0),3),this.v=Hr(Math.max(Math.min(1,n),0),3),this.a=Hr(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),o=r-Math.min(t,n,i),a=0===r?0:o/r;let s;return s=0===o?0:r===t?((n-i)/o%6+6)%6:r===n?(i-t)/o+2:(t-n)/o+4,new Wr(Math.round(60*s),a,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:r}=e,o=i*n,a=o*(1-Math.abs(t/60%2-1)),s=i-o;let[l,h,c]=[0,0,0];return t<60?(l=o,h=a):t<120?(l=a,h=o):t<180?(h=o,c=a):t<240?(h=a,c=o):t<300?(l=a,c=o):t<=360&&(l=o,c=a),l=Math.round(255*(l+s)),h=Math.round(255*(h+s)),c=Math.round(255*(c+s)),new Dr(l,h,c,r)}}class Pr{static fromHex(e){return Pr.Format.CSS.parseHex(e)||Pr.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:Or.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Wr.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof Dr)this.rgba=e;else if(e instanceof Or)this._hsla=e,this.rgba=Or.toRGBA(e);else{if(!(e instanceof Wr))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=Wr.toRGBA(e)}}equals(e){return!!e&&Dr.equals(this.rgba,e.rgba)&&Or.equals(this.hsla,e.hsla)&&Wr.equals(this.hsva,e.hsva)}getRelativeLuminance(){return Hr(.2126*Pr._relativeLuminanceForComponent(this.rgba.r)+.7152*Pr._relativeLuminanceForComponent(this.rgba.g)+.0722*Pr._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new Pr(new Or(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new Pr(new Or(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:r}=this.rgba;return new Pr(new Dr(t,n,i,r*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new Pr(new Dr(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:i,a:r}=this.rgba;return new Pr(new Dr(e.rgba.r-r*(e.rgba.r-t),e.rgba.g-r*(e.rgba.g-n),e.rgba.b-r*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=Pr.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}}function qr(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Fr(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function Br(e,t){const n=t.index,i=t[0].length;if(!n)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Vr(e,t){if(!e)return;const n=Pr.Format.CSS.parseHex(t);return n?{range:e,color:Fr(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Kr(e,t,n){if(!e||1!==t.length)return;const i=qr(t[0].values());return{range:e,color:Fr(i[0],i[1],i[2],n?i[3]:1)}}function jr(e,t,n){if(!e||1!==t.length)return;const i=qr(t[0].values()),r=new Pr(new Or(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:Fr(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function Gr(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function $r(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Gr(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(const i of n){const n=i.filter((e=>void 0!==e)),r=n[1],o=n[2];if(!o)continue;let a;if("rgb"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;a=Kr(Br(e,i),Gr(o,t),!1)}else if("rgba"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;a=Kr(Br(e,i),Gr(o,t),!0)}else if("hsl"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;a=jr(Br(e,i),Gr(o,t),!1)}else if("hsla"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;a=jr(Br(e,i),Gr(o,t),!0)}else"#"===r&&(a=Vr(Br(e,i),r+o));a&&t.push(a)}return t}(e):[]}Pr.white=new Pr(new Dr(255,255,255,1)),Pr.black=new Pr(new Dr(0,0,0,1)),Pr.red=new Pr(new Dr(255,0,0,1)),Pr.blue=new Pr(new Dr(0,0,255,1)),Pr.green=new Pr(new Dr(0,255,0,1)),Pr.cyan=new Pr(new Dr(0,255,255,1)),Pr.lightgrey=new Pr(new Dr(211,211,211,1)),Pr.transparent=new Pr(new Dr(0,0,0,0)),function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function i(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),r=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new Dr(n,r,o,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),r=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),a=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new Dr(n,r,o,a/255))}if(4===n){const n=i(t.charCodeAt(1)),r=i(t.charCodeAt(2)),o=i(t.charCodeAt(3));return new e(new Dr(16*n+n,16*r+r,16*o+o))}if(5===n){const n=i(t.charCodeAt(1)),r=i(t.charCodeAt(2)),o=i(t.charCodeAt(3)),a=i(t.charCodeAt(4));return new e(new Dr(16*n+n,16*r+r,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(Pr||(Pr={}));const Jr=/\bMARK:\s*(.*)$/d,Xr=/^-+|-+$/g;function Yr(e,t){var n;let i=[];if(t.findRegionSectionHeaders&&(null===(n=t.foldingRules)||void 0===n?void 0:n.markers)){const n=function(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const i=e.getLineContent(r),o=i.match(t.foldingRules.markers.start);if(o){const e={startLineNumber:r,startColumn:o[0].length+1,endLineNumber:r,endColumn:i.length+1};if(e.endColumn>e.startColumn){const t={range:e,...Zr(i.substring(o[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);i=i.concat(n)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++){Qr(e.getLineContent(i),i,t)}return t}(e);i=i.concat(t)}return i}function Qr(e,t,n){Jr.lastIndex=0;const i=Jr.exec(e);if(i){const e={startLineNumber:t,startColumn:i.indices[1][0]+1,endLineNumber:t,endColumn:i.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...Zr(i[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function Zr(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(Xr,""),hasSeparatorLine:t}}class eo extends Dt{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const i=this._lines[n],r=this.offsetAt(new Ct(n+1,1)),o=i.matchAll(e);for(const e of o)(e.index||0===e.index)&&(e.index=e.index+r),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=qt(e.column,Wt(t),this._lines[e.lineNumber-1],0);return n?new Et(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",o=0,a=[];return{*[Symbol.iterator](){for(;;)if(o<a.length){const e=r.substring(a[o].start,a[o].end);o+=1,yield e}else{if(!(i<t.length))break;r=t[i],a=n(r,e),o=0,i+=1}}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const o of i)r.push({word:n.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let o=n+1;o<i;o++)r.push(this._lines[o]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!Ct.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}class to{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new eo(gt.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,t,n){const i=this._getModel(e);return i?Hi.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,t){const n=this._getModel(e);return n?Yr(n,t):[]}async computeDiff(e,t,n,i){const r=this._getModel(e),o=this._getModel(t);if(!r||!o)return null;return to.computeDiff(r,o,n,i)}static computeDiff(e,t,n,i){const r="advanced"===i?Ur():zr(),o=e.getLinesContent(),a=t.getLinesContent(),s=r.computeDiff(o,a,n);function l(e){return e.map((e=>{var t;return[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]}))}return{identical:!(s.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:s.hitTimeout,changes:l(s.changes),moves:s.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}async computeMoreMinimalEdits(e,t,n){const i=this._getModel(e);if(!i)return t;const r=[];let o;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return Et.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let a=0;for(let s=1;s<t.length;s++)Et.getEndPosition(t[a].range).equals(Et.getStartPosition(t[s].range))?(t[a].range=Et.fromPositions(Et.getStartPosition(t[a].range),Et.getEndPosition(t[s].range)),t[a].text+=t[s].text):(a++,t[a]=t[s]);t.length=a+1;for(let{range:s,text:l,eol:h}of t){if("number"===typeof h&&(o=h),Et.isEmpty(s)&&!l)continue;const e=i.getValueInRange(s);if(l=l.replace(/\r\n|\n|\r/g,i.eol),e===l)continue;if(Math.max(l.length,e.length)>to._diffLimit){r.push({range:s,text:l});continue}const t=qe(e,l,n),a=i.offsetAt(Et.lift(s).getStartPosition());for(const n of t){const e=i.positionAt(a+n.originalStart),t=i.positionAt(a+n.originalStart+n.originalLength),o={text:l.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};i.getValueInRange(o.range)!==o.text&&r.push(o)}}return"number"===typeof o&&r.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}async computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?$t.computeLinks(e):[]}(t):null}async computeDefaultDocumentColors(e){const t=this._getModel(e);return t?$r(t):null}async textualSuggest(e,t,n,i){const r=new T,o=new RegExp(n,i),a=new Set;e:for(const s of e){const e=this._getModel(s);if(e)for(const n of e.words(o))if(n!==t&&isNaN(Number(n))&&(a.add(n),a.size>to._suggestionsLimit))break e}return{words:Array.from(a),duration:r.elapsed()}}async computeWordRanges(e,t,n,i){const r=this._getModel(e);if(!r)return Object.create(null);const o=new RegExp(n,i),a=Object.create(null);for(let s=t.startLineNumber;s<t.endLineNumber;s++){const e=r.getLineWords(s,o);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=a[t.word];e||(e=[],a[t.word]=e),e.push({startLineNumber:s,startColumn:t.startColumn,endLineNumber:s,endColumn:t.endColumn})}}return a}async navigateValueSet(e,t,n,i,r){const o=this._getModel(e);if(!o)return null;const a=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const s=o.getValueInRange(t),l=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},a);if(!l)return null;const h=o.getValueInRange(l);return Jt.INSTANCE.navigateValueSet(t,s,l,h,n)}loadForeignModule(e,t,n){const i=function(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i={};for(const r of e)i[r]=n(r);return i}(n,((e,t)=>this._host.fhr(e,t))),r={host:i,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve(M(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(Gl){return Promise.reject(Gl)}}}to._diffLimit=1e5,to._suggestionsLimit=1e4,"function"===typeof importScripts&&(globalThis.monaco={editor:void 0,languages:void 0,CancellationTokenSource:Zt,Emitter:A,KeyCode:Yn,KeyMod:ki,Position:Ct,Range:Et,Selection:mn,SelectionDirection:ui,MarkerSeverity:Qn,MarkerTag:Zn,Uri:gt,Token:vn});let no=!1;function io(e){if(no)return;no=!0;const t=new Ne((e=>{globalThis.postMessage(e)}),(t=>new to(t,e)));globalThis.onmessage=e=>{t.onmessage(e.data)}}function ro(e,t,...n){return function(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{let i=n[0];return"undefined"!==typeof t[i]?t[i]:e})),n}(t,n)}function oo(e){return ro}var ao,so,lo,ho,co,uo,mo,po,fo,go,bo,_o,vo,wo,yo,To,ko,So,Lo,xo,Co,Eo,Ao,Ro,Mo,No,Io,zo,Uo,Ho,Do,Oo,Wo,Po,qo,Fo,Bo,Vo,Ko,jo,Go,$o,Jo,Xo,Yo,Qo,Zo,ea,ta;globalThis.onmessage=e=>{no||io(null)},(so=ao||(ao={})).MIN_VALUE=-2147483648,so.MAX_VALUE=2147483647,(ho=lo||(lo={})).MIN_VALUE=0,ho.MAX_VALUE=2147483647,(uo=co||(co={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=lo.MAX_VALUE),t===Number.MAX_VALUE&&(t=lo.MAX_VALUE),{line:e,character:t}},uo.is=function(e){var t=e;return ts.objectLiteral(t)&&ts.uinteger(t.line)&&ts.uinteger(t.character)},(po=mo||(mo={})).create=function(e,t,n,i){if(ts.uinteger(e)&&ts.uinteger(t)&&ts.uinteger(n)&&ts.uinteger(i))return{start:co.create(e,t),end:co.create(n,i)};if(co.is(e)&&co.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+i+"]")},po.is=function(e){var t=e;return ts.objectLiteral(t)&&co.is(t.start)&&co.is(t.end)},(go=fo||(fo={})).create=function(e,t){return{uri:e,range:t}},go.is=function(e){var t=e;return ts.defined(t)&&mo.is(t.range)&&(ts.string(t.uri)||ts.undefined(t.uri))},(_o=bo||(bo={})).create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},_o.is=function(e){var t=e;return ts.defined(t)&&mo.is(t.targetRange)&&ts.string(t.targetUri)&&(mo.is(t.targetSelectionRange)||ts.undefined(t.targetSelectionRange))&&(mo.is(t.originSelectionRange)||ts.undefined(t.originSelectionRange))},(wo=vo||(vo={})).create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},wo.is=function(e){var t=e;return ts.numberRange(t.red,0,1)&&ts.numberRange(t.green,0,1)&&ts.numberRange(t.blue,0,1)&&ts.numberRange(t.alpha,0,1)},(To=yo||(yo={})).create=function(e,t){return{range:e,color:t}},To.is=function(e){var t=e;return mo.is(t.range)&&vo.is(t.color)},(So=ko||(ko={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},So.is=function(e){var t=e;return ts.string(t.label)&&(ts.undefined(t.textEdit)||Po.is(t))&&(ts.undefined(t.additionalTextEdits)||ts.typedArray(t.additionalTextEdits,Po.is))},(xo=Lo||(Lo={})).Comment="comment",xo.Imports="imports",xo.Region="region",(Eo=Co||(Co={})).create=function(e,t,n,i,r){var o={startLine:e,endLine:t};return ts.defined(n)&&(o.startCharacter=n),ts.defined(i)&&(o.endCharacter=i),ts.defined(r)&&(o.kind=r),o},Eo.is=function(e){var t=e;return ts.uinteger(t.startLine)&&ts.uinteger(t.startLine)&&(ts.undefined(t.startCharacter)||ts.uinteger(t.startCharacter))&&(ts.undefined(t.endCharacter)||ts.uinteger(t.endCharacter))&&(ts.undefined(t.kind)||ts.string(t.kind))},(Ro=Ao||(Ao={})).create=function(e,t){return{location:e,message:t}},Ro.is=function(e){var t=e;return ts.defined(t)&&fo.is(t.location)&&ts.string(t.message)},(No=Mo||(Mo={})).Error=1,No.Warning=2,No.Information=3,No.Hint=4,(zo=Io||(Io={})).Unnecessary=1,zo.Deprecated=2,(Uo||(Uo={})).is=function(e){var t=e;return void 0!==t&&null!==t&&ts.string(t.href)},(Do=Ho||(Ho={})).create=function(e,t,n,i,r,o){var a={range:e,message:t};return ts.defined(n)&&(a.severity=n),ts.defined(i)&&(a.code=i),ts.defined(r)&&(a.source=r),ts.defined(o)&&(a.relatedInformation=o),a},Do.is=function(e){var t,n=e;return ts.defined(n)&&mo.is(n.range)&&ts.string(n.message)&&(ts.number(n.severity)||ts.undefined(n.severity))&&(ts.integer(n.code)||ts.string(n.code)||ts.undefined(n.code))&&(ts.undefined(n.codeDescription)||ts.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ts.string(n.source)||ts.undefined(n.source))&&(ts.undefined(n.relatedInformation)||ts.typedArray(n.relatedInformation,Ao.is))},(Wo=Oo||(Oo={})).create=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r={title:e,command:t};return ts.defined(n)&&n.length>0&&(r.arguments=n),r},Wo.is=function(e){var t=e;return ts.defined(t)&&ts.string(t.title)&&ts.string(t.command)},(qo=Po||(Po={})).replace=function(e,t){return{range:e,newText:t}},qo.insert=function(e,t){return{range:{start:e,end:e},newText:t}},qo.del=function(e){return{range:e,newText:""}},qo.is=function(e){var t=e;return ts.objectLiteral(t)&&ts.string(t.newText)&&mo.is(t.range)},(Bo=Fo||(Fo={})).create=function(e,t,n){var i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},Bo.is=function(e){var t=e;return void 0!==t&&ts.objectLiteral(t)&&ts.string(t.label)&&(ts.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ts.string(t.description)||void 0===t.description)},(Vo||(Vo={})).is=function(e){return"string"===typeof e},(jo=Ko||(Ko={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},jo.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},jo.del=function(e,t){return{range:e,newText:"",annotationId:t}},jo.is=function(e){var t=e;return Po.is(t)&&(Fo.is(t.annotationId)||Vo.is(t.annotationId))},($o=Go||(Go={})).create=function(e,t){return{textDocument:e,edits:t}},$o.is=function(e){var t=e;return ts.defined(t)&&aa.is(t.textDocument)&&Array.isArray(t.edits)},(Xo=Jo||(Jo={})).create=function(e,t,n){var i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},Xo.is=function(e){var t=e;return t&&"create"===t.kind&&ts.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ts.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ts.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Vo.is(t.annotationId))},(Qo=Yo||(Yo={})).create=function(e,t,n,i){var r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},Qo.is=function(e){var t=e;return t&&"rename"===t.kind&&ts.string(t.oldUri)&&ts.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ts.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ts.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Vo.is(t.annotationId))},(ea=Zo||(Zo={})).create=function(e,t,n){var i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},ea.is=function(e){var t=e;return t&&"delete"===t.kind&&ts.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ts.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ts.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Vo.is(t.annotationId))},(ta||(ta={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return ts.string(e.kind)?Jo.is(e)||Yo.is(e)||Zo.is(e):Go.is(e)})))};var na,ia,ra,oa,aa,sa,la,ha,ca,da,ua,ma,pa,fa,ga,ba,_a,va,wa,ya,Ta,ka,Sa,La,xa,Ca,Ea,Aa,Ra,Ma,Na,Ia,za,Ua,Ha,Da,Oa,Wa,Pa,qa,Fa,Ba,Va,Ka,ja,Ga,$a,Ja,Xa,Ya,Qa,Za=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var i,r;if(void 0===n?i=Po.insert(e,t):Vo.is(n)?(r=n,i=Ko.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=Ko.insert(e,t,r)),this.edits.push(i),void 0!==r)return r},e.prototype.replace=function(e,t,n){var i,r;if(void 0===n?i=Po.replace(e,t):Vo.is(n)?(r=n,i=Ko.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=Ko.replace(e,t,r)),this.edits.push(i),void 0!==r)return r},e.prototype.delete=function(e,t){var n,i;if(void 0===t?n=Po.del(e):Vo.is(t)?(i=t,n=Ko.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),n=Ko.del(e,i)),this.edits.push(n),void 0!==i)return i},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),es=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(Vo.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new es(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Go.is(e)){var n=new Za(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var i=new Za(e.changes[n]);t._textEditChanges[n]=i}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(aa.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(i=this._textEditChanges[t.uri])){var n={textDocument:t,edits:r=[]};this._workspaceEdit.documentChanges.push(n),i=new Za(r,this._changeAnnotations),this._textEditChanges[t.uri]=i}return i}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var i;if(!(i=this._textEditChanges[e])){var r=[];this._workspaceEdit.changes[e]=r,i=new Za(r),this._textEditChanges[e]=i}return i},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new es,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,r,o;if(Fo.is(t)||Vo.is(t)?i=t:n=t,void 0===i?r=Jo.create(e,n):(o=Vo.is(i)?i:this._changeAnnotations.manage(i),r=Jo.create(e,n,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,i){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,a;if(Fo.is(n)||Vo.is(n)?r=n:i=n,void 0===r?o=Yo.create(e,t,i):(a=Vo.is(r)?r:this._changeAnnotations.manage(r),o=Yo.create(e,t,i,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,r,o;if(Fo.is(t)||Vo.is(t)?i=t:n=t,void 0===i?r=Zo.create(e,n):(o=Vo.is(i)?i:this._changeAnnotations.manage(i),r=Zo.create(e,n,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o}}();(ia=na||(na={})).create=function(e){return{uri:e}},ia.is=function(e){var t=e;return ts.defined(t)&&ts.string(t.uri)},(oa=ra||(ra={})).create=function(e,t){return{uri:e,version:t}},oa.is=function(e){var t=e;return ts.defined(t)&&ts.string(t.uri)&&ts.integer(t.version)},(sa=aa||(aa={})).create=function(e,t){return{uri:e,version:t}},sa.is=function(e){var t=e;return ts.defined(t)&&ts.string(t.uri)&&(null===t.version||ts.integer(t.version))},(ha=la||(la={})).create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},ha.is=function(e){var t=e;return ts.defined(t)&&ts.string(t.uri)&&ts.string(t.languageId)&&ts.integer(t.version)&&ts.string(t.text)},(da=ca||(ca={})).PlainText="plaintext",da.Markdown="markdown",function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(ca||(ca={})),(ua||(ua={})).is=function(e){var t=e;return ts.objectLiteral(e)&&ca.is(t.kind)&&ts.string(t.value)},(pa=ma||(ma={})).Text=1,pa.Method=2,pa.Function=3,pa.Constructor=4,pa.Field=5,pa.Variable=6,pa.Class=7,pa.Interface=8,pa.Module=9,pa.Property=10,pa.Unit=11,pa.Value=12,pa.Enum=13,pa.Keyword=14,pa.Snippet=15,pa.Color=16,pa.File=17,pa.Reference=18,pa.Folder=19,pa.EnumMember=20,pa.Constant=21,pa.Struct=22,pa.Event=23,pa.Operator=24,pa.TypeParameter=25,(ga=fa||(fa={})).PlainText=1,ga.Snippet=2,(ba||(ba={})).Deprecated=1,(va=_a||(_a={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},va.is=function(e){var t=e;return t&&ts.string(t.newText)&&mo.is(t.insert)&&mo.is(t.replace)},(ya=wa||(wa={})).asIs=1,ya.adjustIndentation=2,(Ta||(Ta={})).create=function(e){return{label:e}},(ka||(ka={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(La=Sa||(Sa={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},La.is=function(e){var t=e;return ts.string(t)||ts.objectLiteral(t)&&ts.string(t.language)&&ts.string(t.value)},(xa||(xa={})).is=function(e){var t=e;return!!t&&ts.objectLiteral(t)&&(ua.is(t.contents)||Sa.is(t.contents)||ts.typedArray(t.contents,Sa.is))&&(void 0===e.range||mo.is(e.range))},(Ca||(Ca={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Ea||(Ea={})).create=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r={label:e};return ts.defined(t)&&(r.documentation=t),ts.defined(n)?r.parameters=n:r.parameters=[],r},(Ra=Aa||(Aa={})).Text=1,Ra.Read=2,Ra.Write=3,(Ma||(Ma={})).create=function(e,t){var n={range:e};return ts.number(t)&&(n.kind=t),n},(Ia=Na||(Na={})).File=1,Ia.Module=2,Ia.Namespace=3,Ia.Package=4,Ia.Class=5,Ia.Method=6,Ia.Property=7,Ia.Field=8,Ia.Constructor=9,Ia.Enum=10,Ia.Interface=11,Ia.Function=12,Ia.Variable=13,Ia.Constant=14,Ia.String=15,Ia.Number=16,Ia.Boolean=17,Ia.Array=18,Ia.Object=19,Ia.Key=20,Ia.Null=21,Ia.EnumMember=22,Ia.Struct=23,Ia.Event=24,Ia.Operator=25,Ia.TypeParameter=26,(za||(za={})).Deprecated=1,(Ua||(Ua={})).create=function(e,t,n,i,r){var o={name:e,kind:t,location:{uri:i,range:n}};return r&&(o.containerName=r),o},(Da=Ha||(Ha={})).create=function(e,t,n,i,r,o){var a={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==o&&(a.children=o),a},Da.is=function(e){var t=e;return t&&ts.string(t.name)&&ts.number(t.kind)&&mo.is(t.range)&&mo.is(t.selectionRange)&&(void 0===t.detail||ts.string(t.detail))&&(void 0===t.deprecated||ts.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(Wa=Oa||(Oa={})).Empty="",Wa.QuickFix="quickfix",Wa.Refactor="refactor",Wa.RefactorExtract="refactor.extract",Wa.RefactorInline="refactor.inline",Wa.RefactorRewrite="refactor.rewrite",Wa.Source="source",Wa.SourceOrganizeImports="source.organizeImports",Wa.SourceFixAll="source.fixAll",(qa=Pa||(Pa={})).create=function(e,t){var n={diagnostics:e};return void 0!==t&&null!==t&&(n.only=t),n},qa.is=function(e){var t=e;return ts.defined(t)&&ts.typedArray(t.diagnostics,Ho.is)&&(void 0===t.only||ts.typedArray(t.only,ts.string))},(Ba=Fa||(Fa={})).create=function(e,t,n){var i={title:e},r=!0;return"string"===typeof t?(r=!1,i.kind=t):Oo.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},Ba.is=function(e){var t=e;return t&&ts.string(t.title)&&(void 0===t.diagnostics||ts.typedArray(t.diagnostics,Ho.is))&&(void 0===t.kind||ts.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||Oo.is(t.command))&&(void 0===t.isPreferred||ts.boolean(t.isPreferred))&&(void 0===t.edit||ta.is(t.edit))},(Ka=Va||(Va={})).create=function(e,t){var n={range:e};return ts.defined(t)&&(n.data=t),n},Ka.is=function(e){var t=e;return ts.defined(t)&&mo.is(t.range)&&(ts.undefined(t.command)||Oo.is(t.command))},(Ga=ja||(ja={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},Ga.is=function(e){var t=e;return ts.defined(t)&&ts.uinteger(t.tabSize)&&ts.boolean(t.insertSpaces)},(Ja=$a||($a={})).create=function(e,t,n){return{range:e,target:t,data:n}},Ja.is=function(e){var t=e;return ts.defined(t)&&mo.is(t.range)&&(ts.undefined(t.target)||ts.string(t.target))},(Ya=Xa||(Xa={})).create=function(e,t){return{range:e,parent:t}},Ya.is=function(e){var t=e;return void 0!==t&&mo.is(t.range)&&(void 0===t.parent||Ya.is(t.parent))},function(e){function t(e,n){if(e.length<=1)return e;var i=e.length/2|0,r=e.slice(0,i),o=e.slice(i);t(r,n),t(o,n);for(var a=0,s=0,l=0;a<r.length&&s<o.length;){var h=n(r[a],o[s]);e[l++]=h<=0?r[a++]:o[s++]}for(;a<r.length;)e[l++]=r[a++];for(;s<o.length;)e[l++]=o[s++];return e}e.create=function(e,t,n,i){return new ns(e,t,n,i)},e.is=function(e){var t=e;return!!(ts.defined(t)&&ts.string(t.uri)&&(ts.undefined(t.languageId)||ts.string(t.languageId))&&ts.uinteger(t.lineCount)&&ts.func(t.getText)&&ts.func(t.positionAt)&&ts.func(t.offsetAt))},e.applyEdits=function(e,n){for(var i=e.getText(),r=t(n,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=i.length,a=r.length-1;a>=0;a--){var s=r[a],l=e.offsetAt(s.range.start),h=e.offsetAt(s.range.end);if(!(h<=o))throw new Error("Overlapping edit");i=i.substring(0,l)+s.newText+i.substring(h,i.length),o=l}return i}}(Qa||(Qa={}));var ts,ns=function(){function e(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,i=0;i<t.length;i++){n&&(e.push(i),n=!1);var r=t.charAt(i);n="\r"===r||"\n"===r,"\r"===r&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return co.create(0,e);for(;n<i;){var r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}var o=n-1;return co.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,i){return"[object Number]"===t.call(e)&&n<=e&&e<=i},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(ts||(ts={}));var is,rs,os,as,ss,ls,hs,cs,ds,us=class e{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let i of t)if(e.isIncremental(i)){const e=fs(i.range),t=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,t)+i.text+this._content.substring(n,this._content.length);const r=Math.max(e.start.line,0),o=Math.max(e.end.line,0);let a=this._lineOffsets;const s=ps(i.text,!1,t);if(o-r===s.length)for(let i=0,h=s.length;i<h;i++)a[i+r+1]=s[i];else s.length<1e4?a.splice(r+1,o-r,...s):this._lineOffsets=a=a.slice(0,r+1).concat(s,a.slice(o+1));const l=i.text.length-(n-t);if(0!==l)for(let i=r+1+s.length,h=a.length;i<h;i++)a[i]=a[i]+l}else{if(!e.isFull(i))throw new Error("Unknown change event received");this._content=i.text,this._lineOffsets=void 0}this._version=n}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=ps(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return{line:0,character:e};for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return{line:r,character:e-t[r]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"===typeof t.rangeLength)}static isFull(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0===t.range&&void 0===t.rangeLength}};function ms(e,t){if(e.length<=1)return e;const n=e.length/2|0,i=e.slice(0,n),r=e.slice(n);ms(i,t),ms(r,t);let o=0,a=0,s=0;for(;o<i.length&&a<r.length;){let n=t(i[o],r[a]);e[s++]=n<=0?i[o++]:r[a++]}for(;o<i.length;)e[s++]=i[o++];for(;a<r.length;)e[s++]=r[a++];return e}function ps(e,t,n=0){const i=t?[n]:[];for(let r=0;r<e.length;r++){let t=e.charCodeAt(r);13!==t&&10!==t||(13===t&&r+1<e.length&&10===e.charCodeAt(r+1)&&r++,i.push(n+r+1))}return i}function fs(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function gs(e){const t=fs(e.range);return t!==e.range?{newText:e.newText,range:t}:e}(rs=is||(is={})).create=function(e,t,n,i){return new us(e,t,n,i)},rs.update=function(e,t,n){if(e instanceof us)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},rs.applyEdits=function(e,t){let n=e.getText(),i=ms(t.map(gs),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),r=0;const o=[];for(const a of i){let t=e.offsetAt(a.range.start);if(t<r)throw new Error("Overlapping edit");t>r&&o.push(n.substring(r,t)),a.newText.length&&o.push(a.newText),r=e.offsetAt(a.range.end)}return o.push(n.substr(r)),o.join("")},(as=os||(os={}))[as.StartCommentTag=0]="StartCommentTag",as[as.Comment=1]="Comment",as[as.EndCommentTag=2]="EndCommentTag",as[as.StartTagOpen=3]="StartTagOpen",as[as.StartTagClose=4]="StartTagClose",as[as.StartTagSelfClose=5]="StartTagSelfClose",as[as.StartTag=6]="StartTag",as[as.EndTagOpen=7]="EndTagOpen",as[as.EndTagClose=8]="EndTagClose",as[as.EndTag=9]="EndTag",as[as.DelimiterAssign=10]="DelimiterAssign",as[as.AttributeName=11]="AttributeName",as[as.AttributeValue=12]="AttributeValue",as[as.StartDoctypeTag=13]="StartDoctypeTag",as[as.Doctype=14]="Doctype",as[as.EndDoctypeTag=15]="EndDoctypeTag",as[as.Content=16]="Content",as[as.Whitespace=17]="Whitespace",as[as.Unknown=18]="Unknown",as[as.Script=19]="Script",as[as.Styles=20]="Styles",as[as.EOS=21]="EOS",(ls=ss||(ss={}))[ls.WithinContent=0]="WithinContent",ls[ls.AfterOpeningStartTag=1]="AfterOpeningStartTag",ls[ls.AfterOpeningEndTag=2]="AfterOpeningEndTag",ls[ls.WithinDoctype=3]="WithinDoctype",ls[ls.WithinTag=4]="WithinTag",ls[ls.WithinEndTag=5]="WithinEndTag",ls[ls.WithinComment=6]="WithinComment",ls[ls.WithinScriptContent=7]="WithinScriptContent",ls[ls.WithinStyleContent=8]="WithinStyleContent",ls[ls.AfterAttributeName=9]="AfterAttributeName",ls[ls.BeforeAttributeValue=10]="BeforeAttributeValue",(hs||(hs={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ca.Markdown,ca.PlainText]}},hover:{contentFormat:[ca.Markdown,ca.PlainText]}}},(ds=cs||(cs={}))[ds.Unknown=0]="Unknown",ds[ds.File=1]="File",ds[ds.Directory=2]="Directory",ds[ds.SymbolicLink=64]="SymbolicLink";var bs=oo(),_s=function(){function e(e,t){this.source=e,this.len=e.length,this.position=t}return e.prototype.eos=function(){return this.len<=this.position},e.prototype.getSource=function(){return this.source},e.prototype.pos=function(){return this.position},e.prototype.goBackTo=function(e){this.position=e},e.prototype.goBack=function(e){this.position-=e},e.prototype.advance=function(e){this.position+=e},e.prototype.goToEnd=function(){this.position=this.source.length},e.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.source.charCodeAt(this.position+e)||0},e.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)},e.prototype.advanceIfChars=function(e){var t;if(this.position+e.length>this.source.length)return!1;for(t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0},e.prototype.advanceIfRegExp=function(e){var t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index+t[0].length,t[0]):""},e.prototype.advanceUntilRegExp=function(e){var t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index,t[0]):(this.goToEnd(),"")},e.prototype.advanceUntilChar=function(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1},e.prototype.advanceUntilChars=function(e){for(;this.position+e.length<=this.source.length;){for(var t=0;t<e.length&&this.source.charCodeAt(this.position+t)===e[t];t++);if(t===e.length)return!0;this.advance(1)}return this.goToEnd(),!1},e.prototype.skipWhitespace=function(){return this.advanceWhileChar((function(e){return e===Rs||e===Ms||e===Cs||e===As||e===Es}))>0},e.prototype.advanceWhileChar=function(e){for(var t=this.position;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t},e}(),vs="!".charCodeAt(0),ws="-".charCodeAt(0),ys="<".charCodeAt(0),Ts=">".charCodeAt(0),ks="/".charCodeAt(0),Ss="=".charCodeAt(0),Ls='"'.charCodeAt(0),xs="'".charCodeAt(0),Cs="\n".charCodeAt(0),Es="\r".charCodeAt(0),As="\f".charCodeAt(0),Rs=" ".charCodeAt(0),Ms="\t".charCodeAt(0),Ns={"text/x-handlebars-template":!0,"text/html":!0};function Is(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=ss.WithinContent),void 0===i&&(i=!1);var r,o,a,s,l,h=new _s(e,t),c=n,d=0,u=os.Unknown;function m(){return h.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase()}function p(e,t,n){return u=t,d=e,r=n,t}function f(){var e,t=h.pos();if(h.eos())return p(t,os.EOS);switch(c){case ss.WithinComment:return h.advanceIfChars([ws,ws,Ts])?(c=ss.WithinContent,p(t,os.EndCommentTag)):(h.advanceUntilChars([ws,ws,Ts]),p(t,os.Comment));case ss.WithinDoctype:return h.advanceIfChar(Ts)?(c=ss.WithinContent,p(t,os.EndDoctypeTag)):(h.advanceUntilChar(Ts),p(t,os.Doctype));case ss.WithinContent:if(h.advanceIfChar(ys)){if(!h.eos()&&h.peekChar()===vs){if(h.advanceIfChars([vs,ws,ws]))return c=ss.WithinComment,p(t,os.StartCommentTag);if(h.advanceIfRegExp(/^!doctype/i))return c=ss.WithinDoctype,p(t,os.StartDoctypeTag)}return h.advanceIfChar(ks)?(c=ss.AfterOpeningEndTag,p(t,os.EndTagOpen)):(c=ss.AfterOpeningStartTag,p(t,os.StartTagOpen))}return h.advanceUntilChar(ys),p(t,os.Content);case ss.AfterOpeningEndTag:return m().length>0?(c=ss.WithinEndTag,p(t,os.EndTag)):h.skipWhitespace()?p(t,os.Whitespace,bs("error.unexpectedWhitespace","Tag name must directly follow the open bracket.")):(c=ss.WithinEndTag,h.advanceUntilChar(Ts),t<h.pos()?p(t,os.Unknown,bs("error.endTagNameExpected","End tag name expected.")):f());case ss.WithinEndTag:if(h.skipWhitespace())return p(t,os.Whitespace);if(h.advanceIfChar(Ts))return c=ss.WithinContent,p(t,os.EndTagClose);if(i&&h.peekChar()===ys)return c=ss.WithinContent,p(t,os.EndTagClose,bs("error.closingBracketMissing","Closing bracket missing."));e=bs("error.closingBracketExpected","Closing bracket expected.");break;case ss.AfterOpeningStartTag:return a=m(),l=void 0,s=void 0,a.length>0?(o=!1,c=ss.WithinTag,p(t,os.StartTag)):h.skipWhitespace()?p(t,os.Whitespace,bs("error.unexpectedWhitespace","Tag name must directly follow the open bracket.")):(c=ss.WithinTag,h.advanceUntilChar(Ts),t<h.pos()?p(t,os.Unknown,bs("error.startTagNameExpected","Start tag name expected.")):f());case ss.WithinTag:return h.skipWhitespace()?(o=!0,p(t,os.Whitespace)):o&&(s=h.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase()).length>0?(c=ss.AfterAttributeName,o=!1,p(t,os.AttributeName)):h.advanceIfChars([ks,Ts])?(c=ss.WithinContent,p(t,os.StartTagSelfClose)):h.advanceIfChar(Ts)?(c="script"===a?l&&Ns[l]?ss.WithinContent:ss.WithinScriptContent:"style"===a?ss.WithinStyleContent:ss.WithinContent,p(t,os.StartTagClose)):i&&h.peekChar()===ys?(c=ss.WithinContent,p(t,os.StartTagClose,bs("error.closingBracketMissing","Closing bracket missing."))):(h.advance(1),p(t,os.Unknown,bs("error.unexpectedCharacterInTag","Unexpected character in tag.")));case ss.AfterAttributeName:return h.skipWhitespace()?(o=!0,p(t,os.Whitespace)):h.advanceIfChar(Ss)?(c=ss.BeforeAttributeValue,p(t,os.DelimiterAssign)):(c=ss.WithinTag,f());case ss.BeforeAttributeValue:if(h.skipWhitespace())return p(t,os.Whitespace);var n=h.advanceIfRegExp(/^[^\s"'`=<>]+/);if(n.length>0)return h.peekChar()===Ts&&h.peekChar(-1)===ks&&(h.goBack(1),n=n.substr(0,n.length-1)),"type"===s&&(l=n),c=ss.WithinTag,o=!1,p(t,os.AttributeValue);var r=h.peekChar();return r===xs||r===Ls?(h.advance(1),h.advanceUntilChar(r)&&h.advance(1),"type"===s&&(l=h.getSource().substring(t+1,h.pos()-1)),c=ss.WithinTag,o=!1,p(t,os.AttributeValue)):(c=ss.WithinTag,o=!1,f());case ss.WithinScriptContent:for(var d=1;!h.eos();){var u=h.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(0===u.length)return h.goToEnd(),p(t,os.Script);if("\x3c!--"===u)1===d&&(d=2);else if("--\x3e"===u)d=1;else if("/"!==u[1])2===d&&(d=3);else{if(3!==d){h.goBack(u.length);break}d=2}}return c=ss.WithinContent,t<h.pos()?p(t,os.Script):f();case ss.WithinStyleContent:return h.advanceUntilRegExp(/<\/style/i),c=ss.WithinContent,t<h.pos()?p(t,os.Styles):f()}return h.advance(1),c=ss.WithinContent,p(t,os.Unknown,e)}return{scan:function(){var e=h.pos(),t=c,n=f();return n===os.EOS||e!==h.pos()||i&&(n===os.StartTagClose||n===os.EndTagClose)?n:(console.log("Scanner.scan has not advanced at offset "+e+", state before: "+t+" after: "+c),h.advance(1),p(e,os.Unknown))},getTokenType:function(){return u},getTokenOffset:function(){return d},getTokenLength:function(){return h.pos()-d},getTokenEnd:function(){return h.pos()},getTokenText:function(){return h.getSource().substring(d,h.pos())},getScannerState:function(){return c},getTokenError:function(){return r}}}function zs(e,t){var n=0,i=e.length;if(0===i)return 0;for(;n<i;){var r=Math.floor((n+i)/2);t(e[r])?i=r:n=r+1}return n}var Us=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function Hs(e){return!!e&&function(e,t,n){for(var i=0,r=e.length-1;i<=r;){var o=(i+r)/2|0,a=n(e[o],t);if(a<0)i=o+1;else{if(!(a>0))return o;r=o-1}}return-(i+1)}(Us,e.toLowerCase(),(function(e,t){return e.localeCompare(t)}))>=0}var Ds=function(){function e(e,t,n,i){this.start=e,this.end=t,this.children=n,this.parent=i,this.closed=!1}return Object.defineProperty(e.prototype,"attributeNames",{get:function(){return this.attributes?Object.keys(this.attributes):[]},enumerable:!1,configurable:!0}),e.prototype.isSameTag=function(e){return void 0===this.tag?void 0===e:void 0!==e&&this.tag.length===e.length&&this.tag.toLowerCase()===e},Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.children[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length?this.children[this.children.length-1]:void 0},enumerable:!1,configurable:!0}),e.prototype.findNodeBefore=function(e){var t=zs(this.children,(function(t){return e<=t.start}))-1;if(t>=0){var n=this.children[t];if(e>n.start){if(e<n.end)return n.findNodeBefore(e);var i=n.lastChild;return i&&i.end===n.end?n.findNodeBefore(e):n}}return this},e.prototype.findNodeAt=function(e){var t=zs(this.children,(function(t){return e<=t.start}))-1;if(t>=0){var n=this.children[t];if(e>n.start&&e<=n.end)return n.findNodeAt(e)}return this},e}();function Os(e){for(var t=Is(e,void 0,void 0,!0),n=new Ds(0,e.length,[],void 0),i=n,r=-1,o=void 0,a=null,s=t.scan();s!==os.EOS;){switch(s){case os.StartTagOpen:var l=new Ds(t.getTokenOffset(),e.length,[],i);i.children.push(l),i=l;break;case os.StartTag:i.tag=t.getTokenText();break;case os.StartTagClose:i.parent&&(i.end=t.getTokenEnd(),t.getTokenLength()?(i.startTagEnd=t.getTokenEnd(),i.tag&&Hs(i.tag)&&(i.closed=!0,i=i.parent)):i=i.parent);break;case os.StartTagSelfClose:i.parent&&(i.closed=!0,i.end=t.getTokenEnd(),i.startTagEnd=t.getTokenEnd(),i=i.parent);break;case os.EndTagOpen:r=t.getTokenOffset(),o=void 0;break;case os.EndTag:o=t.getTokenText().toLowerCase();break;case os.EndTagClose:for(var h=i;!h.isSameTag(o)&&h.parent;)h=h.parent;if(h.parent){for(;i!==h;)i.end=r,i.closed=!1,i=i.parent;i.closed=!0,i.endTagStart=r,i.end=t.getTokenEnd(),i=i.parent}break;case os.AttributeName:a=t.getTokenText(),(c=i.attributes)||(i.attributes=c={}),c[a]=null;break;case os.AttributeValue:var c,d=t.getTokenText();(c=i.attributes)&&a&&(c[a]=d,a=null)}s=t.scan()}for(;i.parent;)i.end=e.length,i.closed=!1,i=i.parent;return{roots:n.children,findNodeBefore:n.findNodeBefore.bind(n),findNodeAt:n.findNodeAt.bind(n)}}var Ws={"Aacute;":"\xc1",Aacute:"\xc1","aacute;":"\xe1",aacute:"\xe1","Abreve;":"\u0102","abreve;":"\u0103","ac;":"\u223e","acd;":"\u223f","acE;":"\u223e\u0333","Acirc;":"\xc2",Acirc:"\xc2","acirc;":"\xe2",acirc:"\xe2","acute;":"\xb4",acute:"\xb4","Acy;":"\u0410","acy;":"\u0430","AElig;":"\xc6",AElig:"\xc6","aelig;":"\xe6",aelig:"\xe6","af;":"\u2061","Afr;":"\ud835\udd04","afr;":"\ud835\udd1e","Agrave;":"\xc0",Agrave:"\xc0","agrave;":"\xe0",agrave:"\xe0","alefsym;":"\u2135","aleph;":"\u2135","Alpha;":"\u0391","alpha;":"\u03b1","Amacr;":"\u0100","amacr;":"\u0101","amalg;":"\u2a3f","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"\u2a53","and;":"\u2227","andand;":"\u2a55","andd;":"\u2a5c","andslope;":"\u2a58","andv;":"\u2a5a","ang;":"\u2220","ange;":"\u29a4","angle;":"\u2220","angmsd;":"\u2221","angmsdaa;":"\u29a8","angmsdab;":"\u29a9","angmsdac;":"\u29aa","angmsdad;":"\u29ab","angmsdae;":"\u29ac","angmsdaf;":"\u29ad","angmsdag;":"\u29ae","angmsdah;":"\u29af","angrt;":"\u221f","angrtvb;":"\u22be","angrtvbd;":"\u299d","angsph;":"\u2222","angst;":"\xc5","angzarr;":"\u237c","Aogon;":"\u0104","aogon;":"\u0105","Aopf;":"\ud835\udd38","aopf;":"\ud835\udd52","ap;":"\u2248","apacir;":"\u2a6f","apE;":"\u2a70","ape;":"\u224a","apid;":"\u224b","apos;":"'","ApplyFunction;":"\u2061","approx;":"\u2248","approxeq;":"\u224a","Aring;":"\xc5",Aring:"\xc5","aring;":"\xe5",aring:"\xe5","Ascr;":"\ud835\udc9c","ascr;":"\ud835\udcb6","Assign;":"\u2254","ast;":"*","asymp;":"\u2248","asympeq;":"\u224d","Atilde;":"\xc3",Atilde:"\xc3","atilde;":"\xe3",atilde:"\xe3","Auml;":"\xc4",Auml:"\xc4","auml;":"\xe4",auml:"\xe4","awconint;":"\u2233","awint;":"\u2a11","backcong;":"\u224c","backepsilon;":"\u03f6","backprime;":"\u2035","backsim;":"\u223d","backsimeq;":"\u22cd","Backslash;":"\u2216","Barv;":"\u2ae7","barvee;":"\u22bd","Barwed;":"\u2306","barwed;":"\u2305","barwedge;":"\u2305","bbrk;":"\u23b5","bbrktbrk;":"\u23b6","bcong;":"\u224c","Bcy;":"\u0411","bcy;":"\u0431","bdquo;":"\u201e","becaus;":"\u2235","Because;":"\u2235","because;":"\u2235","bemptyv;":"\u29b0","bepsi;":"\u03f6","bernou;":"\u212c","Bernoullis;":"\u212c","Beta;":"\u0392","beta;":"\u03b2","beth;":"\u2136","between;":"\u226c","Bfr;":"\ud835\udd05","bfr;":"\ud835\udd1f","bigcap;":"\u22c2","bigcirc;":"\u25ef","bigcup;":"\u22c3","bigodot;":"\u2a00","bigoplus;":"\u2a01","bigotimes;":"\u2a02","bigsqcup;":"\u2a06","bigstar;":"\u2605","bigtriangledown;":"\u25bd","bigtriangleup;":"\u25b3","biguplus;":"\u2a04","bigvee;":"\u22c1","bigwedge;":"\u22c0","bkarow;":"\u290d","blacklozenge;":"\u29eb","blacksquare;":"\u25aa","blacktriangle;":"\u25b4","blacktriangledown;":"\u25be","blacktriangleleft;":"\u25c2","blacktriangleright;":"\u25b8","blank;":"\u2423","blk12;":"\u2592","blk14;":"\u2591","blk34;":"\u2593","block;":"\u2588","bne;":"=\u20e5","bnequiv;":"\u2261\u20e5","bNot;":"\u2aed","bnot;":"\u2310","Bopf;":"\ud835\udd39","bopf;":"\ud835\udd53","bot;":"\u22a5","bottom;":"\u22a5","bowtie;":"\u22c8","boxbox;":"\u29c9","boxDL;":"\u2557","boxDl;":"\u2556","boxdL;":"\u2555","boxdl;":"\u2510","boxDR;":"\u2554","boxDr;":"\u2553","boxdR;":"\u2552","boxdr;":"\u250c","boxH;":"\u2550","boxh;":"\u2500","boxHD;":"\u2566","boxHd;":"\u2564","boxhD;":"\u2565","boxhd;":"\u252c","boxHU;":"\u2569","boxHu;":"\u2567","boxhU;":"\u2568","boxhu;":"\u2534","boxminus;":"\u229f","boxplus;":"\u229e","boxtimes;":"\u22a0","boxUL;":"\u255d","boxUl;":"\u255c","boxuL;":"\u255b","boxul;":"\u2518","boxUR;":"\u255a","boxUr;":"\u2559","boxuR;":"\u2558","boxur;":"\u2514","boxV;":"\u2551","boxv;":"\u2502","boxVH;":"\u256c","boxVh;":"\u256b","boxvH;":"\u256a","boxvh;":"\u253c","boxVL;":"\u2563","boxVl;":"\u2562","boxvL;":"\u2561","boxvl;":"\u2524","boxVR;":"\u2560","boxVr;":"\u255f","boxvR;":"\u255e","boxvr;":"\u251c","bprime;":"\u2035","Breve;":"\u02d8","breve;":"\u02d8","brvbar;":"\xa6",brvbar:"\xa6","Bscr;":"\u212c","bscr;":"\ud835\udcb7","bsemi;":"\u204f","bsim;":"\u223d","bsime;":"\u22cd","bsol;":"\\","bsolb;":"\u29c5","bsolhsub;":"\u27c8","bull;":"\u2022","bullet;":"\u2022","bump;":"\u224e","bumpE;":"\u2aae","bumpe;":"\u224f","Bumpeq;":"\u224e","bumpeq;":"\u224f","Cacute;":"\u0106","cacute;":"\u0107","Cap;":"\u22d2","cap;":"\u2229","capand;":"\u2a44","capbrcup;":"\u2a49","capcap;":"\u2a4b","capcup;":"\u2a47","capdot;":"\u2a40","CapitalDifferentialD;":"\u2145","caps;":"\u2229\ufe00","caret;":"\u2041","caron;":"\u02c7","Cayleys;":"\u212d","ccaps;":"\u2a4d","Ccaron;":"\u010c","ccaron;":"\u010d","Ccedil;":"\xc7",Ccedil:"\xc7","ccedil;":"\xe7",ccedil:"\xe7","Ccirc;":"\u0108","ccirc;":"\u0109","Cconint;":"\u2230","ccups;":"\u2a4c","ccupssm;":"\u2a50","Cdot;":"\u010a","cdot;":"\u010b","cedil;":"\xb8",cedil:"\xb8","Cedilla;":"\xb8","cemptyv;":"\u29b2","cent;":"\xa2",cent:"\xa2","CenterDot;":"\xb7","centerdot;":"\xb7","Cfr;":"\u212d","cfr;":"\ud835\udd20","CHcy;":"\u0427","chcy;":"\u0447","check;":"\u2713","checkmark;":"\u2713","Chi;":"\u03a7","chi;":"\u03c7","cir;":"\u25cb","circ;":"\u02c6","circeq;":"\u2257","circlearrowleft;":"\u21ba","circlearrowright;":"\u21bb","circledast;":"\u229b","circledcirc;":"\u229a","circleddash;":"\u229d","CircleDot;":"\u2299","circledR;":"\xae","circledS;":"\u24c8","CircleMinus;":"\u2296","CirclePlus;":"\u2295","CircleTimes;":"\u2297","cirE;":"\u29c3","cire;":"\u2257","cirfnint;":"\u2a10","cirmid;":"\u2aef","cirscir;":"\u29c2","ClockwiseContourIntegral;":"\u2232","CloseCurlyDoubleQuote;":"\u201d","CloseCurlyQuote;":"\u2019","clubs;":"\u2663","clubsuit;":"\u2663","Colon;":"\u2237","colon;":":","Colone;":"\u2a74","colone;":"\u2254","coloneq;":"\u2254","comma;":",","commat;":"@","comp;":"\u2201","compfn;":"\u2218","complement;":"\u2201","complexes;":"\u2102","cong;":"\u2245","congdot;":"\u2a6d","Congruent;":"\u2261","Conint;":"\u222f","conint;":"\u222e","ContourIntegral;":"\u222e","Copf;":"\u2102","copf;":"\ud835\udd54","coprod;":"\u2210","Coproduct;":"\u2210","COPY;":"\xa9",COPY:"\xa9","copy;":"\xa9",copy:"\xa9","copysr;":"\u2117","CounterClockwiseContourIntegral;":"\u2233","crarr;":"\u21b5","Cross;":"\u2a2f","cross;":"\u2717","Cscr;":"\ud835\udc9e","cscr;":"\ud835\udcb8","csub;":"\u2acf","csube;":"\u2ad1","csup;":"\u2ad0","csupe;":"\u2ad2","ctdot;":"\u22ef","cudarrl;":"\u2938","cudarrr;":"\u2935","cuepr;":"\u22de","cuesc;":"\u22df","cularr;":"\u21b6","cularrp;":"\u293d","Cup;":"\u22d3","cup;":"\u222a","cupbrcap;":"\u2a48","CupCap;":"\u224d","cupcap;":"\u2a46","cupcup;":"\u2a4a","cupdot;":"\u228d","cupor;":"\u2a45","cups;":"\u222a\ufe00","curarr;":"\u21b7","curarrm;":"\u293c","curlyeqprec;":"\u22de","curlyeqsucc;":"\u22df","curlyvee;":"\u22ce","curlywedge;":"\u22cf","curren;":"\xa4",curren:"\xa4","curvearrowleft;":"\u21b6","curvearrowright;":"\u21b7","cuvee;":"\u22ce","cuwed;":"\u22cf","cwconint;":"\u2232","cwint;":"\u2231","cylcty;":"\u232d","Dagger;":"\u2021","dagger;":"\u2020","daleth;":"\u2138","Darr;":"\u21a1","dArr;":"\u21d3","darr;":"\u2193","dash;":"\u2010","Dashv;":"\u2ae4","dashv;":"\u22a3","dbkarow;":"\u290f","dblac;":"\u02dd","Dcaron;":"\u010e","dcaron;":"\u010f","Dcy;":"\u0414","dcy;":"\u0434","DD;":"\u2145","dd;":"\u2146","ddagger;":"\u2021","ddarr;":"\u21ca","DDotrahd;":"\u2911","ddotseq;":"\u2a77","deg;":"\xb0",deg:"\xb0","Del;":"\u2207","Delta;":"\u0394","delta;":"\u03b4","demptyv;":"\u29b1","dfisht;":"\u297f","Dfr;":"\ud835\udd07","dfr;":"\ud835\udd21","dHar;":"\u2965","dharl;":"\u21c3","dharr;":"\u21c2","DiacriticalAcute;":"\xb4","DiacriticalDot;":"\u02d9","DiacriticalDoubleAcute;":"\u02dd","DiacriticalGrave;":"`","DiacriticalTilde;":"\u02dc","diam;":"\u22c4","Diamond;":"\u22c4","diamond;":"\u22c4","diamondsuit;":"\u2666","diams;":"\u2666","die;":"\xa8","DifferentialD;":"\u2146","digamma;":"\u03dd","disin;":"\u22f2","div;":"\xf7","divide;":"\xf7",divide:"\xf7","divideontimes;":"\u22c7","divonx;":"\u22c7","DJcy;":"\u0402","djcy;":"\u0452","dlcorn;":"\u231e","dlcrop;":"\u230d","dollar;":"$","Dopf;":"\ud835\udd3b","dopf;":"\ud835\udd55","Dot;":"\xa8","dot;":"\u02d9","DotDot;":"\u20dc","doteq;":"\u2250","doteqdot;":"\u2251","DotEqual;":"\u2250","dotminus;":"\u2238","dotplus;":"\u2214","dotsquare;":"\u22a1","doublebarwedge;":"\u2306","DoubleContourIntegral;":"\u222f","DoubleDot;":"\xa8","DoubleDownArrow;":"\u21d3","DoubleLeftArrow;":"\u21d0","DoubleLeftRightArrow;":"\u21d4","DoubleLeftTee;":"\u2ae4","DoubleLongLeftArrow;":"\u27f8","DoubleLongLeftRightArrow;":"\u27fa","DoubleLongRightArrow;":"\u27f9","DoubleRightArrow;":"\u21d2","DoubleRightTee;":"\u22a8","DoubleUpArrow;":"\u21d1","DoubleUpDownArrow;":"\u21d5","DoubleVerticalBar;":"\u2225","DownArrow;":"\u2193","Downarrow;":"\u21d3","downarrow;":"\u2193","DownArrowBar;":"\u2913","DownArrowUpArrow;":"\u21f5","DownBreve;":"\u0311","downdownarrows;":"\u21ca","downharpoonleft;":"\u21c3","downharpoonright;":"\u21c2","DownLeftRightVector;":"\u2950","DownLeftTeeVector;":"\u295e","DownLeftVector;":"\u21bd","DownLeftVectorBar;":"\u2956","DownRightTeeVector;":"\u295f","DownRightVector;":"\u21c1","DownRightVectorBar;":"\u2957","DownTee;":"\u22a4","DownTeeArrow;":"\u21a7","drbkarow;":"\u2910","drcorn;":"\u231f","drcrop;":"\u230c","Dscr;":"\ud835\udc9f","dscr;":"\ud835\udcb9","DScy;":"\u0405","dscy;":"\u0455","dsol;":"\u29f6","Dstrok;":"\u0110","dstrok;":"\u0111","dtdot;":"\u22f1","dtri;":"\u25bf","dtrif;":"\u25be","duarr;":"\u21f5","duhar;":"\u296f","dwangle;":"\u29a6","DZcy;":"\u040f","dzcy;":"\u045f","dzigrarr;":"\u27ff","Eacute;":"\xc9",Eacute:"\xc9","eacute;":"\xe9",eacute:"\xe9","easter;":"\u2a6e","Ecaron;":"\u011a","ecaron;":"\u011b","ecir;":"\u2256","Ecirc;":"\xca",Ecirc:"\xca","ecirc;":"\xea",ecirc:"\xea","ecolon;":"\u2255","Ecy;":"\u042d","ecy;":"\u044d","eDDot;":"\u2a77","Edot;":"\u0116","eDot;":"\u2251","edot;":"\u0117","ee;":"\u2147","efDot;":"\u2252","Efr;":"\ud835\udd08","efr;":"\ud835\udd22","eg;":"\u2a9a","Egrave;":"\xc8",Egrave:"\xc8","egrave;":"\xe8",egrave:"\xe8","egs;":"\u2a96","egsdot;":"\u2a98","el;":"\u2a99","Element;":"\u2208","elinters;":"\u23e7","ell;":"\u2113","els;":"\u2a95","elsdot;":"\u2a97","Emacr;":"\u0112","emacr;":"\u0113","empty;":"\u2205","emptyset;":"\u2205","EmptySmallSquare;":"\u25fb","emptyv;":"\u2205","EmptyVerySmallSquare;":"\u25ab","emsp;":"\u2003","emsp13;":"\u2004","emsp14;":"\u2005","ENG;":"\u014a","eng;":"\u014b","ensp;":"\u2002","Eogon;":"\u0118","eogon;":"\u0119","Eopf;":"\ud835\udd3c","eopf;":"\ud835\udd56","epar;":"\u22d5","eparsl;":"\u29e3","eplus;":"\u2a71","epsi;":"\u03b5","Epsilon;":"\u0395","epsilon;":"\u03b5","epsiv;":"\u03f5","eqcirc;":"\u2256","eqcolon;":"\u2255","eqsim;":"\u2242","eqslantgtr;":"\u2a96","eqslantless;":"\u2a95","Equal;":"\u2a75","equals;":"=","EqualTilde;":"\u2242","equest;":"\u225f","Equilibrium;":"\u21cc","equiv;":"\u2261","equivDD;":"\u2a78","eqvparsl;":"\u29e5","erarr;":"\u2971","erDot;":"\u2253","Escr;":"\u2130","escr;":"\u212f","esdot;":"\u2250","Esim;":"\u2a73","esim;":"\u2242","Eta;":"\u0397","eta;":"\u03b7","ETH;":"\xd0",ETH:"\xd0","eth;":"\xf0",eth:"\xf0","Euml;":"\xcb",Euml:"\xcb","euml;":"\xeb",euml:"\xeb","euro;":"\u20ac","excl;":"!","exist;":"\u2203","Exists;":"\u2203","expectation;":"\u2130","ExponentialE;":"\u2147","exponentiale;":"\u2147","fallingdotseq;":"\u2252","Fcy;":"\u0424","fcy;":"\u0444","female;":"\u2640","ffilig;":"\ufb03","fflig;":"\ufb00","ffllig;":"\ufb04","Ffr;":"\ud835\udd09","ffr;":"\ud835\udd23","filig;":"\ufb01","FilledSmallSquare;":"\u25fc","FilledVerySmallSquare;":"\u25aa","fjlig;":"fj","flat;":"\u266d","fllig;":"\ufb02","fltns;":"\u25b1","fnof;":"\u0192","Fopf;":"\ud835\udd3d","fopf;":"\ud835\udd57","ForAll;":"\u2200","forall;":"\u2200","fork;":"\u22d4","forkv;":"\u2ad9","Fouriertrf;":"\u2131","fpartint;":"\u2a0d","frac12;":"\xbd",frac12:"\xbd","frac13;":"\u2153","frac14;":"\xbc",frac14:"\xbc","frac15;":"\u2155","frac16;":"\u2159","frac18;":"\u215b","frac23;":"\u2154","frac25;":"\u2156","frac34;":"\xbe",frac34:"\xbe","frac35;":"\u2157","frac38;":"\u215c","frac45;":"\u2158","frac56;":"\u215a","frac58;":"\u215d","frac78;":"\u215e","frasl;":"\u2044","frown;":"\u2322","Fscr;":"\u2131","fscr;":"\ud835\udcbb","gacute;":"\u01f5","Gamma;":"\u0393","gamma;":"\u03b3","Gammad;":"\u03dc","gammad;":"\u03dd","gap;":"\u2a86","Gbreve;":"\u011e","gbreve;":"\u011f","Gcedil;":"\u0122","Gcirc;":"\u011c","gcirc;":"\u011d","Gcy;":"\u0413","gcy;":"\u0433","Gdot;":"\u0120","gdot;":"\u0121","gE;":"\u2267","ge;":"\u2265","gEl;":"\u2a8c","gel;":"\u22db","geq;":"\u2265","geqq;":"\u2267","geqslant;":"\u2a7e","ges;":"\u2a7e","gescc;":"\u2aa9","gesdot;":"\u2a80","gesdoto;":"\u2a82","gesdotol;":"\u2a84","gesl;":"\u22db\ufe00","gesles;":"\u2a94","Gfr;":"\ud835\udd0a","gfr;":"\ud835\udd24","Gg;":"\u22d9","gg;":"\u226b","ggg;":"\u22d9","gimel;":"\u2137","GJcy;":"\u0403","gjcy;":"\u0453","gl;":"\u2277","gla;":"\u2aa5","glE;":"\u2a92","glj;":"\u2aa4","gnap;":"\u2a8a","gnapprox;":"\u2a8a","gnE;":"\u2269","gne;":"\u2a88","gneq;":"\u2a88","gneqq;":"\u2269","gnsim;":"\u22e7","Gopf;":"\ud835\udd3e","gopf;":"\ud835\udd58","grave;":"`","GreaterEqual;":"\u2265","GreaterEqualLess;":"\u22db","GreaterFullEqual;":"\u2267","GreaterGreater;":"\u2aa2","GreaterLess;":"\u2277","GreaterSlantEqual;":"\u2a7e","GreaterTilde;":"\u2273","Gscr;":"\ud835\udca2","gscr;":"\u210a","gsim;":"\u2273","gsime;":"\u2a8e","gsiml;":"\u2a90","GT;":">",GT:">","Gt;":"\u226b","gt;":">",gt:">","gtcc;":"\u2aa7","gtcir;":"\u2a7a","gtdot;":"\u22d7","gtlPar;":"\u2995","gtquest;":"\u2a7c","gtrapprox;":"\u2a86","gtrarr;":"\u2978","gtrdot;":"\u22d7","gtreqless;":"\u22db","gtreqqless;":"\u2a8c","gtrless;":"\u2277","gtrsim;":"\u2273","gvertneqq;":"\u2269\ufe00","gvnE;":"\u2269\ufe00","Hacek;":"\u02c7","hairsp;":"\u200a","half;":"\xbd","hamilt;":"\u210b","HARDcy;":"\u042a","hardcy;":"\u044a","hArr;":"\u21d4","harr;":"\u2194","harrcir;":"\u2948","harrw;":"\u21ad","Hat;":"^","hbar;":"\u210f","Hcirc;":"\u0124","hcirc;":"\u0125","hearts;":"\u2665","heartsuit;":"\u2665","hellip;":"\u2026","hercon;":"\u22b9","Hfr;":"\u210c","hfr;":"\ud835\udd25","HilbertSpace;":"\u210b","hksearow;":"\u2925","hkswarow;":"\u2926","hoarr;":"\u21ff","homtht;":"\u223b","hookleftarrow;":"\u21a9","hookrightarrow;":"\u21aa","Hopf;":"\u210d","hopf;":"\ud835\udd59","horbar;":"\u2015","HorizontalLine;":"\u2500","Hscr;":"\u210b","hscr;":"\ud835\udcbd","hslash;":"\u210f","Hstrok;":"\u0126","hstrok;":"\u0127","HumpDownHump;":"\u224e","HumpEqual;":"\u224f","hybull;":"\u2043","hyphen;":"\u2010","Iacute;":"\xcd",Iacute:"\xcd","iacute;":"\xed",iacute:"\xed","ic;":"\u2063","Icirc;":"\xce",Icirc:"\xce","icirc;":"\xee",icirc:"\xee","Icy;":"\u0418","icy;":"\u0438","Idot;":"\u0130","IEcy;":"\u0415","iecy;":"\u0435","iexcl;":"\xa1",iexcl:"\xa1","iff;":"\u21d4","Ifr;":"\u2111","ifr;":"\ud835\udd26","Igrave;":"\xcc",Igrave:"\xcc","igrave;":"\xec",igrave:"\xec","ii;":"\u2148","iiiint;":"\u2a0c","iiint;":"\u222d","iinfin;":"\u29dc","iiota;":"\u2129","IJlig;":"\u0132","ijlig;":"\u0133","Im;":"\u2111","Imacr;":"\u012a","imacr;":"\u012b","image;":"\u2111","ImaginaryI;":"\u2148","imagline;":"\u2110","imagpart;":"\u2111","imath;":"\u0131","imof;":"\u22b7","imped;":"\u01b5","Implies;":"\u21d2","in;":"\u2208","incare;":"\u2105","infin;":"\u221e","infintie;":"\u29dd","inodot;":"\u0131","Int;":"\u222c","int;":"\u222b","intcal;":"\u22ba","integers;":"\u2124","Integral;":"\u222b","intercal;":"\u22ba","Intersection;":"\u22c2","intlarhk;":"\u2a17","intprod;":"\u2a3c","InvisibleComma;":"\u2063","InvisibleTimes;":"\u2062","IOcy;":"\u0401","iocy;":"\u0451","Iogon;":"\u012e","iogon;":"\u012f","Iopf;":"\ud835\udd40","iopf;":"\ud835\udd5a","Iota;":"\u0399","iota;":"\u03b9","iprod;":"\u2a3c","iquest;":"\xbf",iquest:"\xbf","Iscr;":"\u2110","iscr;":"\ud835\udcbe","isin;":"\u2208","isindot;":"\u22f5","isinE;":"\u22f9","isins;":"\u22f4","isinsv;":"\u22f3","isinv;":"\u2208","it;":"\u2062","Itilde;":"\u0128","itilde;":"\u0129","Iukcy;":"\u0406","iukcy;":"\u0456","Iuml;":"\xcf",Iuml:"\xcf","iuml;":"\xef",iuml:"\xef","Jcirc;":"\u0134","jcirc;":"\u0135","Jcy;":"\u0419","jcy;":"\u0439","Jfr;":"\ud835\udd0d","jfr;":"\ud835\udd27","jmath;":"\u0237","Jopf;":"\ud835\udd41","jopf;":"\ud835\udd5b","Jscr;":"\ud835\udca5","jscr;":"\ud835\udcbf","Jsercy;":"\u0408","jsercy;":"\u0458","Jukcy;":"\u0404","jukcy;":"\u0454","Kappa;":"\u039a","kappa;":"\u03ba","kappav;":"\u03f0","Kcedil;":"\u0136","kcedil;":"\u0137","Kcy;":"\u041a","kcy;":"\u043a","Kfr;":"\ud835\udd0e","kfr;":"\ud835\udd28","kgreen;":"\u0138","KHcy;":"\u0425","khcy;":"\u0445","KJcy;":"\u040c","kjcy;":"\u045c","Kopf;":"\ud835\udd42","kopf;":"\ud835\udd5c","Kscr;":"\ud835\udca6","kscr;":"\ud835\udcc0","lAarr;":"\u21da","Lacute;":"\u0139","lacute;":"\u013a","laemptyv;":"\u29b4","lagran;":"\u2112","Lambda;":"\u039b","lambda;":"\u03bb","Lang;":"\u27ea","lang;":"\u27e8","langd;":"\u2991","langle;":"\u27e8","lap;":"\u2a85","Laplacetrf;":"\u2112","laquo;":"\xab",laquo:"\xab","Larr;":"\u219e","lArr;":"\u21d0","larr;":"\u2190","larrb;":"\u21e4","larrbfs;":"\u291f","larrfs;":"\u291d","larrhk;":"\u21a9","larrlp;":"\u21ab","larrpl;":"\u2939","larrsim;":"\u2973","larrtl;":"\u21a2","lat;":"\u2aab","lAtail;":"\u291b","latail;":"\u2919","late;":"\u2aad","lates;":"\u2aad\ufe00","lBarr;":"\u290e","lbarr;":"\u290c","lbbrk;":"\u2772","lbrace;":"{","lbrack;":"[","lbrke;":"\u298b","lbrksld;":"\u298f","lbrkslu;":"\u298d","Lcaron;":"\u013d","lcaron;":"\u013e","Lcedil;":"\u013b","lcedil;":"\u013c","lceil;":"\u2308","lcub;":"{","Lcy;":"\u041b","lcy;":"\u043b","ldca;":"\u2936","ldquo;":"\u201c","ldquor;":"\u201e","ldrdhar;":"\u2967","ldrushar;":"\u294b","ldsh;":"\u21b2","lE;":"\u2266","le;":"\u2264","LeftAngleBracket;":"\u27e8","LeftArrow;":"\u2190","Leftarrow;":"\u21d0","leftarrow;":"\u2190","LeftArrowBar;":"\u21e4","LeftArrowRightArrow;":"\u21c6","leftarrowtail;":"\u21a2","LeftCeiling;":"\u2308","LeftDoubleBracket;":"\u27e6","LeftDownTeeVector;":"\u2961","LeftDownVector;":"\u21c3","LeftDownVectorBar;":"\u2959","LeftFloor;":"\u230a","leftharpoondown;":"\u21bd","leftharpoonup;":"\u21bc","leftleftarrows;":"\u21c7","LeftRightArrow;":"\u2194","Leftrightarrow;":"\u21d4","leftrightarrow;":"\u2194","leftrightarrows;":"\u21c6","leftrightharpoons;":"\u21cb","leftrightsquigarrow;":"\u21ad","LeftRightVector;":"\u294e","LeftTee;":"\u22a3","LeftTeeArrow;":"\u21a4","LeftTeeVector;":"\u295a","leftthreetimes;":"\u22cb","LeftTriangle;":"\u22b2","LeftTriangleBar;":"\u29cf","LeftTriangleEqual;":"\u22b4","LeftUpDownVector;":"\u2951","LeftUpTeeVector;":"\u2960","LeftUpVector;":"\u21bf","LeftUpVectorBar;":"\u2958","LeftVector;":"\u21bc","LeftVectorBar;":"\u2952","lEg;":"\u2a8b","leg;":"\u22da","leq;":"\u2264","leqq;":"\u2266","leqslant;":"\u2a7d","les;":"\u2a7d","lescc;":"\u2aa8","lesdot;":"\u2a7f","lesdoto;":"\u2a81","lesdotor;":"\u2a83","lesg;":"\u22da\ufe00","lesges;":"\u2a93","lessapprox;":"\u2a85","lessdot;":"\u22d6","lesseqgtr;":"\u22da","lesseqqgtr;":"\u2a8b","LessEqualGreater;":"\u22da","LessFullEqual;":"\u2266","LessGreater;":"\u2276","lessgtr;":"\u2276","LessLess;":"\u2aa1","lesssim;":"\u2272","LessSlantEqual;":"\u2a7d","LessTilde;":"\u2272","lfisht;":"\u297c","lfloor;":"\u230a","Lfr;":"\ud835\udd0f","lfr;":"\ud835\udd29","lg;":"\u2276","lgE;":"\u2a91","lHar;":"\u2962","lhard;":"\u21bd","lharu;":"\u21bc","lharul;":"\u296a","lhblk;":"\u2584","LJcy;":"\u0409","ljcy;":"\u0459","Ll;":"\u22d8","ll;":"\u226a","llarr;":"\u21c7","llcorner;":"\u231e","Lleftarrow;":"\u21da","llhard;":"\u296b","lltri;":"\u25fa","Lmidot;":"\u013f","lmidot;":"\u0140","lmoust;":"\u23b0","lmoustache;":"\u23b0","lnap;":"\u2a89","lnapprox;":"\u2a89","lnE;":"\u2268","lne;":"\u2a87","lneq;":"\u2a87","lneqq;":"\u2268","lnsim;":"\u22e6","loang;":"\u27ec","loarr;":"\u21fd","lobrk;":"\u27e6","LongLeftArrow;":"\u27f5","Longleftarrow;":"\u27f8","longleftarrow;":"\u27f5","LongLeftRightArrow;":"\u27f7","Longleftrightarrow;":"\u27fa","longleftrightarrow;":"\u27f7","longmapsto;":"\u27fc","LongRightArrow;":"\u27f6","Longrightarrow;":"\u27f9","longrightarrow;":"\u27f6","looparrowleft;":"\u21ab","looparrowright;":"\u21ac","lopar;":"\u2985","Lopf;":"\ud835\udd43","lopf;":"\ud835\udd5d","loplus;":"\u2a2d","lotimes;":"\u2a34","lowast;":"\u2217","lowbar;":"_","LowerLeftArrow;":"\u2199","LowerRightArrow;":"\u2198","loz;":"\u25ca","lozenge;":"\u25ca","lozf;":"\u29eb","lpar;":"(","lparlt;":"\u2993","lrarr;":"\u21c6","lrcorner;":"\u231f","lrhar;":"\u21cb","lrhard;":"\u296d","lrm;":"\u200e","lrtri;":"\u22bf","lsaquo;":"\u2039","Lscr;":"\u2112","lscr;":"\ud835\udcc1","Lsh;":"\u21b0","lsh;":"\u21b0","lsim;":"\u2272","lsime;":"\u2a8d","lsimg;":"\u2a8f","lsqb;":"[","lsquo;":"\u2018","lsquor;":"\u201a","Lstrok;":"\u0141","lstrok;":"\u0142","LT;":"<",LT:"<","Lt;":"\u226a","lt;":"<",lt:"<","ltcc;":"\u2aa6","ltcir;":"\u2a79","ltdot;":"\u22d6","lthree;":"\u22cb","ltimes;":"\u22c9","ltlarr;":"\u2976","ltquest;":"\u2a7b","ltri;":"\u25c3","ltrie;":"\u22b4","ltrif;":"\u25c2","ltrPar;":"\u2996","lurdshar;":"\u294a","luruhar;":"\u2966","lvertneqq;":"\u2268\ufe00","lvnE;":"\u2268\ufe00","macr;":"\xaf",macr:"\xaf","male;":"\u2642","malt;":"\u2720","maltese;":"\u2720","Map;":"\u2905","map;":"\u21a6","mapsto;":"\u21a6","mapstodown;":"\u21a7","mapstoleft;":"\u21a4","mapstoup;":"\u21a5","marker;":"\u25ae","mcomma;":"\u2a29","Mcy;":"\u041c","mcy;":"\u043c","mdash;":"\u2014","mDDot;":"\u223a","measuredangle;":"\u2221","MediumSpace;":"\u205f","Mellintrf;":"\u2133","Mfr;":"\ud835\udd10","mfr;":"\ud835\udd2a","mho;":"\u2127","micro;":"\xb5",micro:"\xb5","mid;":"\u2223","midast;":"*","midcir;":"\u2af0","middot;":"\xb7",middot:"\xb7","minus;":"\u2212","minusb;":"\u229f","minusd;":"\u2238","minusdu;":"\u2a2a","MinusPlus;":"\u2213","mlcp;":"\u2adb","mldr;":"\u2026","mnplus;":"\u2213","models;":"\u22a7","Mopf;":"\ud835\udd44","mopf;":"\ud835\udd5e","mp;":"\u2213","Mscr;":"\u2133","mscr;":"\ud835\udcc2","mstpos;":"\u223e","Mu;":"\u039c","mu;":"\u03bc","multimap;":"\u22b8","mumap;":"\u22b8","nabla;":"\u2207","Nacute;":"\u0143","nacute;":"\u0144","nang;":"\u2220\u20d2","nap;":"\u2249","napE;":"\u2a70\u0338","napid;":"\u224b\u0338","napos;":"\u0149","napprox;":"\u2249","natur;":"\u266e","natural;":"\u266e","naturals;":"\u2115","nbsp;":"\xa0",nbsp:"\xa0","nbump;":"\u224e\u0338","nbumpe;":"\u224f\u0338","ncap;":"\u2a43","Ncaron;":"\u0147","ncaron;":"\u0148","Ncedil;":"\u0145","ncedil;":"\u0146","ncong;":"\u2247","ncongdot;":"\u2a6d\u0338","ncup;":"\u2a42","Ncy;":"\u041d","ncy;":"\u043d","ndash;":"\u2013","ne;":"\u2260","nearhk;":"\u2924","neArr;":"\u21d7","nearr;":"\u2197","nearrow;":"\u2197","nedot;":"\u2250\u0338","NegativeMediumSpace;":"\u200b","NegativeThickSpace;":"\u200b","NegativeThinSpace;":"\u200b","NegativeVeryThinSpace;":"\u200b","nequiv;":"\u2262","nesear;":"\u2928","nesim;":"\u2242\u0338","NestedGreaterGreater;":"\u226b","NestedLessLess;":"\u226a","NewLine;":"\n","nexist;":"\u2204","nexists;":"\u2204","Nfr;":"\ud835\udd11","nfr;":"\ud835\udd2b","ngE;":"\u2267\u0338","nge;":"\u2271","ngeq;":"\u2271","ngeqq;":"\u2267\u0338","ngeqslant;":"\u2a7e\u0338","nges;":"\u2a7e\u0338","nGg;":"\u22d9\u0338","ngsim;":"\u2275","nGt;":"\u226b\u20d2","ngt;":"\u226f","ngtr;":"\u226f","nGtv;":"\u226b\u0338","nhArr;":"\u21ce","nharr;":"\u21ae","nhpar;":"\u2af2","ni;":"\u220b","nis;":"\u22fc","nisd;":"\u22fa","niv;":"\u220b","NJcy;":"\u040a","njcy;":"\u045a","nlArr;":"\u21cd","nlarr;":"\u219a","nldr;":"\u2025","nlE;":"\u2266\u0338","nle;":"\u2270","nLeftarrow;":"\u21cd","nleftarrow;":"\u219a","nLeftrightarrow;":"\u21ce","nleftrightarrow;":"\u21ae","nleq;":"\u2270","nleqq;":"\u2266\u0338","nleqslant;":"\u2a7d\u0338","nles;":"\u2a7d\u0338","nless;":"\u226e","nLl;":"\u22d8\u0338","nlsim;":"\u2274","nLt;":"\u226a\u20d2","nlt;":"\u226e","nltri;":"\u22ea","nltrie;":"\u22ec","nLtv;":"\u226a\u0338","nmid;":"\u2224","NoBreak;":"\u2060","NonBreakingSpace;":"\xa0","Nopf;":"\u2115","nopf;":"\ud835\udd5f","Not;":"\u2aec","not;":"\xac",not:"\xac","NotCongruent;":"\u2262","NotCupCap;":"\u226d","NotDoubleVerticalBar;":"\u2226","NotElement;":"\u2209","NotEqual;":"\u2260","NotEqualTilde;":"\u2242\u0338","NotExists;":"\u2204","NotGreater;":"\u226f","NotGreaterEqual;":"\u2271","NotGreaterFullEqual;":"\u2267\u0338","NotGreaterGreater;":"\u226b\u0338","NotGreaterLess;":"\u2279","NotGreaterSlantEqual;":"\u2a7e\u0338","NotGreaterTilde;":"\u2275","NotHumpDownHump;":"\u224e\u0338","NotHumpEqual;":"\u224f\u0338","notin;":"\u2209","notindot;":"\u22f5\u0338","notinE;":"\u22f9\u0338","notinva;":"\u2209","notinvb;":"\u22f7","notinvc;":"\u22f6","NotLeftTriangle;":"\u22ea","NotLeftTriangleBar;":"\u29cf\u0338","NotLeftTriangleEqual;":"\u22ec","NotLess;":"\u226e","NotLessEqual;":"\u2270","NotLessGreater;":"\u2278","NotLessLess;":"\u226a\u0338","NotLessSlantEqual;":"\u2a7d\u0338","NotLessTilde;":"\u2274","NotNestedGreaterGreater;":"\u2aa2\u0338","NotNestedLessLess;":"\u2aa1\u0338","notni;":"\u220c","notniva;":"\u220c","notnivb;":"\u22fe","notnivc;":"\u22fd","NotPrecedes;":"\u2280","NotPrecedesEqual;":"\u2aaf\u0338","NotPrecedesSlantEqual;":"\u22e0","NotReverseElement;":"\u220c","NotRightTriangle;":"\u22eb","NotRightTriangleBar;":"\u29d0\u0338","NotRightTriangleEqual;":"\u22ed","NotSquareSubset;":"\u228f\u0338","NotSquareSubsetEqual;":"\u22e2","NotSquareSuperset;":"\u2290\u0338","NotSquareSupersetEqual;":"\u22e3","NotSubset;":"\u2282\u20d2","NotSubsetEqual;":"\u2288","NotSucceeds;":"\u2281","NotSucceedsEqual;":"\u2ab0\u0338","NotSucceedsSlantEqual;":"\u22e1","NotSucceedsTilde;":"\u227f\u0338","NotSuperset;":"\u2283\u20d2","NotSupersetEqual;":"\u2289","NotTilde;":"\u2241","NotTildeEqual;":"\u2244","NotTildeFullEqual;":"\u2247","NotTildeTilde;":"\u2249","NotVerticalBar;":"\u2224","npar;":"\u2226","nparallel;":"\u2226","nparsl;":"\u2afd\u20e5","npart;":"\u2202\u0338","npolint;":"\u2a14","npr;":"\u2280","nprcue;":"\u22e0","npre;":"\u2aaf\u0338","nprec;":"\u2280","npreceq;":"\u2aaf\u0338","nrArr;":"\u21cf","nrarr;":"\u219b","nrarrc;":"\u2933\u0338","nrarrw;":"\u219d\u0338","nRightarrow;":"\u21cf","nrightarrow;":"\u219b","nrtri;":"\u22eb","nrtrie;":"\u22ed","nsc;":"\u2281","nsccue;":"\u22e1","nsce;":"\u2ab0\u0338","Nscr;":"\ud835\udca9","nscr;":"\ud835\udcc3","nshortmid;":"\u2224","nshortparallel;":"\u2226","nsim;":"\u2241","nsime;":"\u2244","nsimeq;":"\u2244","nsmid;":"\u2224","nspar;":"\u2226","nsqsube;":"\u22e2","nsqsupe;":"\u22e3","nsub;":"\u2284","nsubE;":"\u2ac5\u0338","nsube;":"\u2288","nsubset;":"\u2282\u20d2","nsubseteq;":"\u2288","nsubseteqq;":"\u2ac5\u0338","nsucc;":"\u2281","nsucceq;":"\u2ab0\u0338","nsup;":"\u2285","nsupE;":"\u2ac6\u0338","nsupe;":"\u2289","nsupset;":"\u2283\u20d2","nsupseteq;":"\u2289","nsupseteqq;":"\u2ac6\u0338","ntgl;":"\u2279","Ntilde;":"\xd1",Ntilde:"\xd1","ntilde;":"\xf1",ntilde:"\xf1","ntlg;":"\u2278","ntriangleleft;":"\u22ea","ntrianglelefteq;":"\u22ec","ntriangleright;":"\u22eb","ntrianglerighteq;":"\u22ed","Nu;":"\u039d","nu;":"\u03bd","num;":"#","numero;":"\u2116","numsp;":"\u2007","nvap;":"\u224d\u20d2","nVDash;":"\u22af","nVdash;":"\u22ae","nvDash;":"\u22ad","nvdash;":"\u22ac","nvge;":"\u2265\u20d2","nvgt;":">\u20d2","nvHarr;":"\u2904","nvinfin;":"\u29de","nvlArr;":"\u2902","nvle;":"\u2264\u20d2","nvlt;":"<\u20d2","nvltrie;":"\u22b4\u20d2","nvrArr;":"\u2903","nvrtrie;":"\u22b5\u20d2","nvsim;":"\u223c\u20d2","nwarhk;":"\u2923","nwArr;":"\u21d6","nwarr;":"\u2196","nwarrow;":"\u2196","nwnear;":"\u2927","Oacute;":"\xd3",Oacute:"\xd3","oacute;":"\xf3",oacute:"\xf3","oast;":"\u229b","ocir;":"\u229a","Ocirc;":"\xd4",Ocirc:"\xd4","ocirc;":"\xf4",ocirc:"\xf4","Ocy;":"\u041e","ocy;":"\u043e","odash;":"\u229d","Odblac;":"\u0150","odblac;":"\u0151","odiv;":"\u2a38","odot;":"\u2299","odsold;":"\u29bc","OElig;":"\u0152","oelig;":"\u0153","ofcir;":"\u29bf","Ofr;":"\ud835\udd12","ofr;":"\ud835\udd2c","ogon;":"\u02db","Ograve;":"\xd2",Ograve:"\xd2","ograve;":"\xf2",ograve:"\xf2","ogt;":"\u29c1","ohbar;":"\u29b5","ohm;":"\u03a9","oint;":"\u222e","olarr;":"\u21ba","olcir;":"\u29be","olcross;":"\u29bb","oline;":"\u203e","olt;":"\u29c0","Omacr;":"\u014c","omacr;":"\u014d","Omega;":"\u03a9","omega;":"\u03c9","Omicron;":"\u039f","omicron;":"\u03bf","omid;":"\u29b6","ominus;":"\u2296","Oopf;":"\ud835\udd46","oopf;":"\ud835\udd60","opar;":"\u29b7","OpenCurlyDoubleQuote;":"\u201c","OpenCurlyQuote;":"\u2018","operp;":"\u29b9","oplus;":"\u2295","Or;":"\u2a54","or;":"\u2228","orarr;":"\u21bb","ord;":"\u2a5d","order;":"\u2134","orderof;":"\u2134","ordf;":"\xaa",ordf:"\xaa","ordm;":"\xba",ordm:"\xba","origof;":"\u22b6","oror;":"\u2a56","orslope;":"\u2a57","orv;":"\u2a5b","oS;":"\u24c8","Oscr;":"\ud835\udcaa","oscr;":"\u2134","Oslash;":"\xd8",Oslash:"\xd8","oslash;":"\xf8",oslash:"\xf8","osol;":"\u2298","Otilde;":"\xd5",Otilde:"\xd5","otilde;":"\xf5",otilde:"\xf5","Otimes;":"\u2a37","otimes;":"\u2297","otimesas;":"\u2a36","Ouml;":"\xd6",Ouml:"\xd6","ouml;":"\xf6",ouml:"\xf6","ovbar;":"\u233d","OverBar;":"\u203e","OverBrace;":"\u23de","OverBracket;":"\u23b4","OverParenthesis;":"\u23dc","par;":"\u2225","para;":"\xb6",para:"\xb6","parallel;":"\u2225","parsim;":"\u2af3","parsl;":"\u2afd","part;":"\u2202","PartialD;":"\u2202","Pcy;":"\u041f","pcy;":"\u043f","percnt;":"%","period;":".","permil;":"\u2030","perp;":"\u22a5","pertenk;":"\u2031","Pfr;":"\ud835\udd13","pfr;":"\ud835\udd2d","Phi;":"\u03a6","phi;":"\u03c6","phiv;":"\u03d5","phmmat;":"\u2133","phone;":"\u260e","Pi;":"\u03a0","pi;":"\u03c0","pitchfork;":"\u22d4","piv;":"\u03d6","planck;":"\u210f","planckh;":"\u210e","plankv;":"\u210f","plus;":"+","plusacir;":"\u2a23","plusb;":"\u229e","pluscir;":"\u2a22","plusdo;":"\u2214","plusdu;":"\u2a25","pluse;":"\u2a72","PlusMinus;":"\xb1","plusmn;":"\xb1",plusmn:"\xb1","plussim;":"\u2a26","plustwo;":"\u2a27","pm;":"\xb1","Poincareplane;":"\u210c","pointint;":"\u2a15","Popf;":"\u2119","popf;":"\ud835\udd61","pound;":"\xa3",pound:"\xa3","Pr;":"\u2abb","pr;":"\u227a","prap;":"\u2ab7","prcue;":"\u227c","prE;":"\u2ab3","pre;":"\u2aaf","prec;":"\u227a","precapprox;":"\u2ab7","preccurlyeq;":"\u227c","Precedes;":"\u227a","PrecedesEqual;":"\u2aaf","PrecedesSlantEqual;":"\u227c","PrecedesTilde;":"\u227e","preceq;":"\u2aaf","precnapprox;":"\u2ab9","precneqq;":"\u2ab5","precnsim;":"\u22e8","precsim;":"\u227e","Prime;":"\u2033","prime;":"\u2032","primes;":"\u2119","prnap;":"\u2ab9","prnE;":"\u2ab5","prnsim;":"\u22e8","prod;":"\u220f","Product;":"\u220f","profalar;":"\u232e","profline;":"\u2312","profsurf;":"\u2313","prop;":"\u221d","Proportion;":"\u2237","Proportional;":"\u221d","propto;":"\u221d","prsim;":"\u227e","prurel;":"\u22b0","Pscr;":"\ud835\udcab","pscr;":"\ud835\udcc5","Psi;":"\u03a8","psi;":"\u03c8","puncsp;":"\u2008","Qfr;":"\ud835\udd14","qfr;":"\ud835\udd2e","qint;":"\u2a0c","Qopf;":"\u211a","qopf;":"\ud835\udd62","qprime;":"\u2057","Qscr;":"\ud835\udcac","qscr;":"\ud835\udcc6","quaternions;":"\u210d","quatint;":"\u2a16","quest;":"?","questeq;":"\u225f","QUOT;":'"',QUOT:'"',"quot;":'"',quot:'"',"rAarr;":"\u21db","race;":"\u223d\u0331","Racute;":"\u0154","racute;":"\u0155","radic;":"\u221a","raemptyv;":"\u29b3","Rang;":"\u27eb","rang;":"\u27e9","rangd;":"\u2992","range;":"\u29a5","rangle;":"\u27e9","raquo;":"\xbb",raquo:"\xbb","Rarr;":"\u21a0","rArr;":"\u21d2","rarr;":"\u2192","rarrap;":"\u2975","rarrb;":"\u21e5","rarrbfs;":"\u2920","rarrc;":"\u2933","rarrfs;":"\u291e","rarrhk;":"\u21aa","rarrlp;":"\u21ac","rarrpl;":"\u2945","rarrsim;":"\u2974","Rarrtl;":"\u2916","rarrtl;":"\u21a3","rarrw;":"\u219d","rAtail;":"\u291c","ratail;":"\u291a","ratio;":"\u2236","rationals;":"\u211a","RBarr;":"\u2910","rBarr;":"\u290f","rbarr;":"\u290d","rbbrk;":"\u2773","rbrace;":"}","rbrack;":"]","rbrke;":"\u298c","rbrksld;":"\u298e","rbrkslu;":"\u2990","Rcaron;":"\u0158","rcaron;":"\u0159","Rcedil;":"\u0156","rcedil;":"\u0157","rceil;":"\u2309","rcub;":"}","Rcy;":"\u0420","rcy;":"\u0440","rdca;":"\u2937","rdldhar;":"\u2969","rdquo;":"\u201d","rdquor;":"\u201d","rdsh;":"\u21b3","Re;":"\u211c","real;":"\u211c","realine;":"\u211b","realpart;":"\u211c","reals;":"\u211d","rect;":"\u25ad","REG;":"\xae",REG:"\xae","reg;":"\xae",reg:"\xae","ReverseElement;":"\u220b","ReverseEquilibrium;":"\u21cb","ReverseUpEquilibrium;":"\u296f","rfisht;":"\u297d","rfloor;":"\u230b","Rfr;":"\u211c","rfr;":"\ud835\udd2f","rHar;":"\u2964","rhard;":"\u21c1","rharu;":"\u21c0","rharul;":"\u296c","Rho;":"\u03a1","rho;":"\u03c1","rhov;":"\u03f1","RightAngleBracket;":"\u27e9","RightArrow;":"\u2192","Rightarrow;":"\u21d2","rightarrow;":"\u2192","RightArrowBar;":"\u21e5","RightArrowLeftArrow;":"\u21c4","rightarrowtail;":"\u21a3","RightCeiling;":"\u2309","RightDoubleBracket;":"\u27e7","RightDownTeeVector;":"\u295d","RightDownVector;":"\u21c2","RightDownVectorBar;":"\u2955","RightFloor;":"\u230b","rightharpoondown;":"\u21c1","rightharpoonup;":"\u21c0","rightleftarrows;":"\u21c4","rightleftharpoons;":"\u21cc","rightrightarrows;":"\u21c9","rightsquigarrow;":"\u219d","RightTee;":"\u22a2","RightTeeArrow;":"\u21a6","RightTeeVector;":"\u295b","rightthreetimes;":"\u22cc","RightTriangle;":"\u22b3","RightTriangleBar;":"\u29d0","RightTriangleEqual;":"\u22b5","RightUpDownVector;":"\u294f","RightUpTeeVector;":"\u295c","RightUpVector;":"\u21be","RightUpVectorBar;":"\u2954","RightVector;":"\u21c0","RightVectorBar;":"\u2953","ring;":"\u02da","risingdotseq;":"\u2253","rlarr;":"\u21c4","rlhar;":"\u21cc","rlm;":"\u200f","rmoust;":"\u23b1","rmoustache;":"\u23b1","rnmid;":"\u2aee","roang;":"\u27ed","roarr;":"\u21fe","robrk;":"\u27e7","ropar;":"\u2986","Ropf;":"\u211d","ropf;":"\ud835\udd63","roplus;":"\u2a2e","rotimes;":"\u2a35","RoundImplies;":"\u2970","rpar;":")","rpargt;":"\u2994","rppolint;":"\u2a12","rrarr;":"\u21c9","Rrightarrow;":"\u21db","rsaquo;":"\u203a","Rscr;":"\u211b","rscr;":"\ud835\udcc7","Rsh;":"\u21b1","rsh;":"\u21b1","rsqb;":"]","rsquo;":"\u2019","rsquor;":"\u2019","rthree;":"\u22cc","rtimes;":"\u22ca","rtri;":"\u25b9","rtrie;":"\u22b5","rtrif;":"\u25b8","rtriltri;":"\u29ce","RuleDelayed;":"\u29f4","ruluhar;":"\u2968","rx;":"\u211e","Sacute;":"\u015a","sacute;":"\u015b","sbquo;":"\u201a","Sc;":"\u2abc","sc;":"\u227b","scap;":"\u2ab8","Scaron;":"\u0160","scaron;":"\u0161","sccue;":"\u227d","scE;":"\u2ab4","sce;":"\u2ab0","Scedil;":"\u015e","scedil;":"\u015f","Scirc;":"\u015c","scirc;":"\u015d","scnap;":"\u2aba","scnE;":"\u2ab6","scnsim;":"\u22e9","scpolint;":"\u2a13","scsim;":"\u227f","Scy;":"\u0421","scy;":"\u0441","sdot;":"\u22c5","sdotb;":"\u22a1","sdote;":"\u2a66","searhk;":"\u2925","seArr;":"\u21d8","searr;":"\u2198","searrow;":"\u2198","sect;":"\xa7",sect:"\xa7","semi;":";","seswar;":"\u2929","setminus;":"\u2216","setmn;":"\u2216","sext;":"\u2736","Sfr;":"\ud835\udd16","sfr;":"\ud835\udd30","sfrown;":"\u2322","sharp;":"\u266f","SHCHcy;":"\u0429","shchcy;":"\u0449","SHcy;":"\u0428","shcy;":"\u0448","ShortDownArrow;":"\u2193","ShortLeftArrow;":"\u2190","shortmid;":"\u2223","shortparallel;":"\u2225","ShortRightArrow;":"\u2192","ShortUpArrow;":"\u2191","shy;":"\xad",shy:"\xad","Sigma;":"\u03a3","sigma;":"\u03c3","sigmaf;":"\u03c2","sigmav;":"\u03c2","sim;":"\u223c","simdot;":"\u2a6a","sime;":"\u2243","simeq;":"\u2243","simg;":"\u2a9e","simgE;":"\u2aa0","siml;":"\u2a9d","simlE;":"\u2a9f","simne;":"\u2246","simplus;":"\u2a24","simrarr;":"\u2972","slarr;":"\u2190","SmallCircle;":"\u2218","smallsetminus;":"\u2216","smashp;":"\u2a33","smeparsl;":"\u29e4","smid;":"\u2223","smile;":"\u2323","smt;":"\u2aaa","smte;":"\u2aac","smtes;":"\u2aac\ufe00","SOFTcy;":"\u042c","softcy;":"\u044c","sol;":"/","solb;":"\u29c4","solbar;":"\u233f","Sopf;":"\ud835\udd4a","sopf;":"\ud835\udd64","spades;":"\u2660","spadesuit;":"\u2660","spar;":"\u2225","sqcap;":"\u2293","sqcaps;":"\u2293\ufe00","sqcup;":"\u2294","sqcups;":"\u2294\ufe00","Sqrt;":"\u221a","sqsub;":"\u228f","sqsube;":"\u2291","sqsubset;":"\u228f","sqsubseteq;":"\u2291","sqsup;":"\u2290","sqsupe;":"\u2292","sqsupset;":"\u2290","sqsupseteq;":"\u2292","squ;":"\u25a1","Square;":"\u25a1","square;":"\u25a1","SquareIntersection;":"\u2293","SquareSubset;":"\u228f","SquareSubsetEqual;":"\u2291","SquareSuperset;":"\u2290","SquareSupersetEqual;":"\u2292","SquareUnion;":"\u2294","squarf;":"\u25aa","squf;":"\u25aa","srarr;":"\u2192","Sscr;":"\ud835\udcae","sscr;":"\ud835\udcc8","ssetmn;":"\u2216","ssmile;":"\u2323","sstarf;":"\u22c6","Star;":"\u22c6","star;":"\u2606","starf;":"\u2605","straightepsilon;":"\u03f5","straightphi;":"\u03d5","strns;":"\xaf","Sub;":"\u22d0","sub;":"\u2282","subdot;":"\u2abd","subE;":"\u2ac5","sube;":"\u2286","subedot;":"\u2ac3","submult;":"\u2ac1","subnE;":"\u2acb","subne;":"\u228a","subplus;":"\u2abf","subrarr;":"\u2979","Subset;":"\u22d0","subset;":"\u2282","subseteq;":"\u2286","subseteqq;":"\u2ac5","SubsetEqual;":"\u2286","subsetneq;":"\u228a","subsetneqq;":"\u2acb","subsim;":"\u2ac7","subsub;":"\u2ad5","subsup;":"\u2ad3","succ;":"\u227b","succapprox;":"\u2ab8","succcurlyeq;":"\u227d","Succeeds;":"\u227b","SucceedsEqual;":"\u2ab0","SucceedsSlantEqual;":"\u227d","SucceedsTilde;":"\u227f","succeq;":"\u2ab0","succnapprox;":"\u2aba","succneqq;":"\u2ab6","succnsim;":"\u22e9","succsim;":"\u227f","SuchThat;":"\u220b","Sum;":"\u2211","sum;":"\u2211","sung;":"\u266a","Sup;":"\u22d1","sup;":"\u2283","sup1;":"\xb9",sup1:"\xb9","sup2;":"\xb2",sup2:"\xb2","sup3;":"\xb3",sup3:"\xb3","supdot;":"\u2abe","supdsub;":"\u2ad8","supE;":"\u2ac6","supe;":"\u2287","supedot;":"\u2ac4","Superset;":"\u2283","SupersetEqual;":"\u2287","suphsol;":"\u27c9","suphsub;":"\u2ad7","suplarr;":"\u297b","supmult;":"\u2ac2","supnE;":"\u2acc","supne;":"\u228b","supplus;":"\u2ac0","Supset;":"\u22d1","supset;":"\u2283","supseteq;":"\u2287","supseteqq;":"\u2ac6","supsetneq;":"\u228b","supsetneqq;":"\u2acc","supsim;":"\u2ac8","supsub;":"\u2ad4","supsup;":"\u2ad6","swarhk;":"\u2926","swArr;":"\u21d9","swarr;":"\u2199","swarrow;":"\u2199","swnwar;":"\u292a","szlig;":"\xdf",szlig:"\xdf","Tab;":"\t","target;":"\u2316","Tau;":"\u03a4","tau;":"\u03c4","tbrk;":"\u23b4","Tcaron;":"\u0164","tcaron;":"\u0165","Tcedil;":"\u0162","tcedil;":"\u0163","Tcy;":"\u0422","tcy;":"\u0442","tdot;":"\u20db","telrec;":"\u2315","Tfr;":"\ud835\udd17","tfr;":"\ud835\udd31","there4;":"\u2234","Therefore;":"\u2234","therefore;":"\u2234","Theta;":"\u0398","theta;":"\u03b8","thetasym;":"\u03d1","thetav;":"\u03d1","thickapprox;":"\u2248","thicksim;":"\u223c","ThickSpace;":"\u205f\u200a","thinsp;":"\u2009","ThinSpace;":"\u2009","thkap;":"\u2248","thksim;":"\u223c","THORN;":"\xde",THORN:"\xde","thorn;":"\xfe",thorn:"\xfe","Tilde;":"\u223c","tilde;":"\u02dc","TildeEqual;":"\u2243","TildeFullEqual;":"\u2245","TildeTilde;":"\u2248","times;":"\xd7",times:"\xd7","timesb;":"\u22a0","timesbar;":"\u2a31","timesd;":"\u2a30","tint;":"\u222d","toea;":"\u2928","top;":"\u22a4","topbot;":"\u2336","topcir;":"\u2af1","Topf;":"\ud835\udd4b","topf;":"\ud835\udd65","topfork;":"\u2ada","tosa;":"\u2929","tprime;":"\u2034","TRADE;":"\u2122","trade;":"\u2122","triangle;":"\u25b5","triangledown;":"\u25bf","triangleleft;":"\u25c3","trianglelefteq;":"\u22b4","triangleq;":"\u225c","triangleright;":"\u25b9","trianglerighteq;":"\u22b5","tridot;":"\u25ec","trie;":"\u225c","triminus;":"\u2a3a","TripleDot;":"\u20db","triplus;":"\u2a39","trisb;":"\u29cd","tritime;":"\u2a3b","trpezium;":"\u23e2","Tscr;":"\ud835\udcaf","tscr;":"\ud835\udcc9","TScy;":"\u0426","tscy;":"\u0446","TSHcy;":"\u040b","tshcy;":"\u045b","Tstrok;":"\u0166","tstrok;":"\u0167","twixt;":"\u226c","twoheadleftarrow;":"\u219e","twoheadrightarrow;":"\u21a0","Uacute;":"\xda",Uacute:"\xda","uacute;":"\xfa",uacute:"\xfa","Uarr;":"\u219f","uArr;":"\u21d1","uarr;":"\u2191","Uarrocir;":"\u2949","Ubrcy;":"\u040e","ubrcy;":"\u045e","Ubreve;":"\u016c","ubreve;":"\u016d","Ucirc;":"\xdb",Ucirc:"\xdb","ucirc;":"\xfb",ucirc:"\xfb","Ucy;":"\u0423","ucy;":"\u0443","udarr;":"\u21c5","Udblac;":"\u0170","udblac;":"\u0171","udhar;":"\u296e","ufisht;":"\u297e","Ufr;":"\ud835\udd18","ufr;":"\ud835\udd32","Ugrave;":"\xd9",Ugrave:"\xd9","ugrave;":"\xf9",ugrave:"\xf9","uHar;":"\u2963","uharl;":"\u21bf","uharr;":"\u21be","uhblk;":"\u2580","ulcorn;":"\u231c","ulcorner;":"\u231c","ulcrop;":"\u230f","ultri;":"\u25f8","Umacr;":"\u016a","umacr;":"\u016b","uml;":"\xa8",uml:"\xa8","UnderBar;":"_","UnderBrace;":"\u23df","UnderBracket;":"\u23b5","UnderParenthesis;":"\u23dd","Union;":"\u22c3","UnionPlus;":"\u228e","Uogon;":"\u0172","uogon;":"\u0173","Uopf;":"\ud835\udd4c","uopf;":"\ud835\udd66","UpArrow;":"\u2191","Uparrow;":"\u21d1","uparrow;":"\u2191","UpArrowBar;":"\u2912","UpArrowDownArrow;":"\u21c5","UpDownArrow;":"\u2195","Updownarrow;":"\u21d5","updownarrow;":"\u2195","UpEquilibrium;":"\u296e","upharpoonleft;":"\u21bf","upharpoonright;":"\u21be","uplus;":"\u228e","UpperLeftArrow;":"\u2196","UpperRightArrow;":"\u2197","Upsi;":"\u03d2","upsi;":"\u03c5","upsih;":"\u03d2","Upsilon;":"\u03a5","upsilon;":"\u03c5","UpTee;":"\u22a5","UpTeeArrow;":"\u21a5","upuparrows;":"\u21c8","urcorn;":"\u231d","urcorner;":"\u231d","urcrop;":"\u230e","Uring;":"\u016e","uring;":"\u016f","urtri;":"\u25f9","Uscr;":"\ud835\udcb0","uscr;":"\ud835\udcca","utdot;":"\u22f0","Utilde;":"\u0168","utilde;":"\u0169","utri;":"\u25b5","utrif;":"\u25b4","uuarr;":"\u21c8","Uuml;":"\xdc",Uuml:"\xdc","uuml;":"\xfc",uuml:"\xfc","uwangle;":"\u29a7","vangrt;":"\u299c","varepsilon;":"\u03f5","varkappa;":"\u03f0","varnothing;":"\u2205","varphi;":"\u03d5","varpi;":"\u03d6","varpropto;":"\u221d","vArr;":"\u21d5","varr;":"\u2195","varrho;":"\u03f1","varsigma;":"\u03c2","varsubsetneq;":"\u228a\ufe00","varsubsetneqq;":"\u2acb\ufe00","varsupsetneq;":"\u228b\ufe00","varsupsetneqq;":"\u2acc\ufe00","vartheta;":"\u03d1","vartriangleleft;":"\u22b2","vartriangleright;":"\u22b3","Vbar;":"\u2aeb","vBar;":"\u2ae8","vBarv;":"\u2ae9","Vcy;":"\u0412","vcy;":"\u0432","VDash;":"\u22ab","Vdash;":"\u22a9","vDash;":"\u22a8","vdash;":"\u22a2","Vdashl;":"\u2ae6","Vee;":"\u22c1","vee;":"\u2228","veebar;":"\u22bb","veeeq;":"\u225a","vellip;":"\u22ee","Verbar;":"\u2016","verbar;":"|","Vert;":"\u2016","vert;":"|","VerticalBar;":"\u2223","VerticalLine;":"|","VerticalSeparator;":"\u2758","VerticalTilde;":"\u2240","VeryThinSpace;":"\u200a","Vfr;":"\ud835\udd19","vfr;":"\ud835\udd33","vltri;":"\u22b2","vnsub;":"\u2282\u20d2","vnsup;":"\u2283\u20d2","Vopf;":"\ud835\udd4d","vopf;":"\ud835\udd67","vprop;":"\u221d","vrtri;":"\u22b3","Vscr;":"\ud835\udcb1","vscr;":"\ud835\udccb","vsubnE;":"\u2acb\ufe00","vsubne;":"\u228a\ufe00","vsupnE;":"\u2acc\ufe00","vsupne;":"\u228b\ufe00","Vvdash;":"\u22aa","vzigzag;":"\u299a","Wcirc;":"\u0174","wcirc;":"\u0175","wedbar;":"\u2a5f","Wedge;":"\u22c0","wedge;":"\u2227","wedgeq;":"\u2259","weierp;":"\u2118","Wfr;":"\ud835\udd1a","wfr;":"\ud835\udd34","Wopf;":"\ud835\udd4e","wopf;":"\ud835\udd68","wp;":"\u2118","wr;":"\u2240","wreath;":"\u2240","Wscr;":"\ud835\udcb2","wscr;":"\ud835\udccc","xcap;":"\u22c2","xcirc;":"\u25ef","xcup;":"\u22c3","xdtri;":"\u25bd","Xfr;":"\ud835\udd1b","xfr;":"\ud835\udd35","xhArr;":"\u27fa","xharr;":"\u27f7","Xi;":"\u039e","xi;":"\u03be","xlArr;":"\u27f8","xlarr;":"\u27f5","xmap;":"\u27fc","xnis;":"\u22fb","xodot;":"\u2a00","Xopf;":"\ud835\udd4f","xopf;":"\ud835\udd69","xoplus;":"\u2a01","xotime;":"\u2a02","xrArr;":"\u27f9","xrarr;":"\u27f6","Xscr;":"\ud835\udcb3","xscr;":"\ud835\udccd","xsqcup;":"\u2a06","xuplus;":"\u2a04","xutri;":"\u25b3","xvee;":"\u22c1","xwedge;":"\u22c0","Yacute;":"\xdd",Yacute:"\xdd","yacute;":"\xfd",yacute:"\xfd","YAcy;":"\u042f","yacy;":"\u044f","Ycirc;":"\u0176","ycirc;":"\u0177","Ycy;":"\u042b","ycy;":"\u044b","yen;":"\xa5",yen:"\xa5","Yfr;":"\ud835\udd1c","yfr;":"\ud835\udd36","YIcy;":"\u0407","yicy;":"\u0457","Yopf;":"\ud835\udd50","yopf;":"\ud835\udd6a","Yscr;":"\ud835\udcb4","yscr;":"\ud835\udcce","YUcy;":"\u042e","yucy;":"\u044e","Yuml;":"\u0178","yuml;":"\xff",yuml:"\xff","Zacute;":"\u0179","zacute;":"\u017a","Zcaron;":"\u017d","zcaron;":"\u017e","Zcy;":"\u0417","zcy;":"\u0437","Zdot;":"\u017b","zdot;":"\u017c","zeetrf;":"\u2128","ZeroWidthSpace;":"\u200b","Zeta;":"\u0396","zeta;":"\u03b6","Zfr;":"\u2128","zfr;":"\ud835\udd37","ZHcy;":"\u0416","zhcy;":"\u0436","zigrarr;":"\u21dd","Zopf;":"\u2124","zopf;":"\ud835\udd6b","Zscr;":"\ud835\udcb5","zscr;":"\ud835\udccf","zwj;":"\u200d","zwnj;":"\u200c"};function Ps(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function qs(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function Fs(e,t){for(var n="";t>0;)1===(1&t)&&(n+=e),e+=e,t>>>=1;return n}var Bs="a".charCodeAt(0),Vs="z".charCodeAt(0),Ks="A".charCodeAt(0),js="Z".charCodeAt(0),Gs="0".charCodeAt(0),$s="9".charCodeAt(0);function Js(e,t){var n=e.charCodeAt(t);return Bs<=n&&n<=Vs||Ks<=n&&n<=js||Gs<=n&&n<=$s}function Xs(e){return"undefined"!==typeof e}var Ys=function(){function e(e,t){var n=this;this.id=e,this._tags=[],this._tagMap={},this._valueSetMap={},this._tags=t.tags||[],this._globalAttributes=t.globalAttributes||[],this._tags.forEach((function(e){n._tagMap[e.name.toLowerCase()]=e})),t.valueSets&&t.valueSets.forEach((function(e){n._valueSetMap[e.name]=e.values}))}return e.prototype.isApplicable=function(){return!0},e.prototype.getId=function(){return this.id},e.prototype.provideTags=function(){return this._tags},e.prototype.provideAttributes=function(e){var t=[],n=function(e){t.push(e)},i=this._tagMap[e.toLowerCase()];return i&&i.attributes.forEach(n),this._globalAttributes.forEach(n),t},e.prototype.provideValues=function(e,t){var n=this,i=[];t=t.toLowerCase();var r=function(e){e.forEach((function(e){e.name.toLowerCase()===t&&(e.values&&e.values.forEach((function(e){i.push(e)})),e.valueSet&&n._valueSetMap[e.valueSet]&&n._valueSetMap[e.valueSet].forEach((function(e){i.push(e)})))}))},o=this._tagMap[e.toLowerCase()];return o&&r(o.attributes),r(this._globalAttributes),i},e}();function Qs(e,t,n){void 0===t&&(t={});var i={kind:n?"markdown":"plaintext",value:""};if(e.description&&!1!==t.documentation){var r=function(e){if(e)return"string"===typeof e?{kind:"markdown",value:e}:{kind:"markdown",value:e.value}}(e.description);r&&(i.value+=r.value)}if(e.references&&e.references.length>0&&!1!==t.references&&(i.value.length&&(i.value+="\n\n"),i.value+=n?e.references.map((function(e){return"[".concat(e.name,"](").concat(e.url,")")})).join(" | "):e.references.map((function(e){return"".concat(e.name,": ").concat(e.url)})).join("\n")),""!==i.value)return i}var Zs=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(Gl){o(Gl)}}function s(e){try{l(i.throw(e))}catch(Gl){o(Gl)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},el=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(Gl){o=[6,Gl],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},tl=function(){function e(e){this.readDirectory=e,this.atributeCompletions=[]}return e.prototype.onHtmlAttributeValue=function(e){(function(e,t){if("src"===t||"href"===t)return!0;var n=ol[e];if(n)return"string"===typeof n?n===t:-1!==n.indexOf(t);return!1})(e.tag,e.attribute)&&this.atributeCompletions.push(e)},e.prototype.computeCompletions=function(e,t){return Zs(this,void 0,void 0,(function(){var n,i,r,o,a,s,l,h,c,d;return el(this,(function(u){switch(u.label){case 0:n={items:[],isIncomplete:!1},i=0,r=this.atributeCompletions,u.label=1;case 1:return i<r.length?(o=r[i],function(e){if(Ps(e,"http")||Ps(e,"https")||Ps(e,"//"))return!1;return!0}(a=function(e){return Ps(e,"'")||Ps(e,'"')?e.slice(1,-1):e}(e.getText(o.range)))?"."!==a&&".."!==a?[3,2]:(n.isIncomplete=!0,[3,4]):[3,4]):[3,5];case 2:return s=function(e,t,n){var i,r=e.lastIndexOf("/");if(-1===r)i=function(e,t,n){var i=rl(e.start,t),r=rl(e.end,n);return mo.create(i,r)}(n,1,-1);else{var o=t.slice(r+1),a=rl(n.end,-1-o.length),s=o.indexOf(" "),l=void 0;l=-1!==s?rl(a,s):rl(n.end,-1),i=mo.create(a,l)}return i}(o.value,a,o.range),[4,this.providePathSuggestions(o.value,s,e,t)];case 3:for(l=u.sent(),h=0,c=l;h<c.length;h++)d=c[h],n.items.push(d);u.label=4;case 4:return i++,[3,1];case 5:return[2,n]}}))}))},e.prototype.providePathSuggestions=function(e,t,n,i){return Zs(this,void 0,void 0,(function(){var r,o,a,s,l,h,c,d,u;return el(this,(function(m){switch(m.label){case 0:if(r=e.substring(0,e.lastIndexOf("/")+1),!(o=i.resolveReference(r||".",n.uri)))return[3,4];m.label=1;case 1:return m.trys.push([1,3,,4]),a=[],[4,this.readDirectory(o)];case 2:for(s=m.sent(),l=0,h=s;l<h.length;l++)c=h[l],d=c[0],u=c[1],d.charCodeAt(0)!==nl&&a.push(il(d,u===cs.Directory,t));return[2,a];case 3:return m.sent(),[3,4];case 4:return[2,[]]}}))}))},e}(),nl=".".charCodeAt(0);function il(e,t,n){return t?{label:e+="/",kind:ma.Folder,textEdit:Po.replace(n,e),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:e,kind:ma.File,textEdit:Po.replace(n,e)}}function rl(e,t){return co.create(e.line,e.character+t)}var ol={a:"href",area:"href",body:"background",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]},al=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(Gl){o(Gl)}}function s(e){try{l(i.throw(e))}catch(Gl){o(Gl)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))},sl=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(Gl){o=[6,Gl],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},ll=oo(),hl=function(){function e(e,t){this.lsOptions=e,this.dataManager=t,this.completionParticipants=[]}return e.prototype.setCompletionParticipants=function(e){this.completionParticipants=e||[]},e.prototype.doComplete2=function(e,t,n,i,r){return al(this,void 0,void 0,(function(){var o,a,s,l;return sl(this,(function(h){switch(h.label){case 0:if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return[2,this.doComplete(e,t,n,r)];o=new tl(this.lsOptions.fileSystemProvider.readDirectory),a=this.completionParticipants,this.completionParticipants=[o].concat(a),s=this.doComplete(e,t,n,r),h.label=1;case 1:return h.trys.push([1,,3,4]),[4,o.computeCompletions(e,i)];case 2:return l=h.sent(),[2,{isIncomplete:s.isIncomplete||l.isIncomplete,items:l.items.concat(s.items)}];case 3:return this.completionParticipants=a,[7];case 4:return[2]}}))}))},e.prototype.doComplete=function(e,t,n,i){var r=this._doComplete(e,t,n,i);return this.convertCompletionList(r)},e.prototype._doComplete=function(e,t,n,i){var r={isIncomplete:!1,items:[]},o=this.completionParticipants,a=this.dataManager.getDataProviders().filter((function(t){return t.isApplicable(e.languageId)&&(!i||!1!==i[t.getId()])})),s=this.doesSupportMarkdown(),l=e.getText(),h=e.offsetAt(t),c=n.findNodeBefore(h);if(!c)return r;var d,u=Is(l,c.start),m="";function p(t,n){return void 0===n&&(n=h),t>h&&(t=h),{start:e.positionAt(t),end:e.positionAt(n)}}function f(e,t){var n=p(e,t);return a.forEach((function(e){e.provideTags().forEach((function(e){r.items.push({label:e.name,kind:ma.Property,documentation:Qs(e,void 0,s),textEdit:Po.replace(n,e.name),insertTextFormat:fa.PlainText})}))})),r}function g(e){for(var t=e;t>0;){var n=l.charAt(t-1);if("\n\r".indexOf(n)>=0)return l.substring(t,e);if(!cl(n))return null;t--}return l.substring(0,e)}function b(e,t,n){void 0===n&&(n=h);var i=p(e,n),o=dl(l,n,ss.WithinEndTag,os.EndTagClose)?"":">",d=c;for(t&&(d=d.parent);d;){var u=d.tag;if(u&&(!d.closed||d.endTagStart&&d.endTagStart>h)){var m={label:"/"+u,kind:ma.Property,filterText:"/"+u,textEdit:Po.replace(i,"/"+u+o),insertTextFormat:fa.PlainText},f=g(d.start),b=g(e-1);if(null!==f&&null!==b&&f!==b){var _=f+"</"+u+o;m.textEdit=Po.replace(p(e-1-b.length),_),m.filterText=b+"</"+u}return r.items.push(m),r}d=d.parent}return t||a.forEach((function(e){e.provideTags().forEach((function(e){r.items.push({label:"/"+e.name,kind:ma.Property,documentation:Qs(e,void 0,s),filterText:"/"+e.name+o,textEdit:Po.replace(i,"/"+e.name+o),insertTextFormat:fa.PlainText})}))})),r}function _(t,n){if(i&&i.hideAutoCompleteProposals)return r;if(!Hs(n)){var o=e.positionAt(t);r.items.push({label:"</"+n+">",kind:ma.Property,filterText:"</"+n+">",textEdit:Po.insert(o,"$0</"+n+">"),insertTextFormat:fa.Snippet})}return r}function v(e,t){return f(e,t),b(e,!0,t),r}function w(e,t){var o;void 0===t&&(t=h);for(var d=h;d<t&&"<"!==l[d];)d++;var u=l.substring(e,t),f=p(e,d),g="";if(!dl(l,t,ss.AfterAttributeName,os.DelimiterAssign)){var b=null!==(o=null===i||void 0===i?void 0:i.attributeDefaultValue)&&void 0!==o?o:"doublequotes";g="empty"===b?"=$1":"singlequotes"===b?"='$1'":'="$1"'}var _=function(){var e=Object.create(null);return c.attributeNames.forEach((function(t){e[t]=!0})),e}();return _[u]=!1,a.forEach((function(e){e.provideAttributes(m).forEach((function(e){if(!_[e.name]){_[e.name]=!0;var t,n=e.name;"v"!==e.valueSet&&g.length&&(n+=g,(e.valueSet||"style"===e.name)&&(t={title:"Suggest",command:"editor.action.triggerSuggest"})),r.items.push({label:e.name,kind:"handler"===e.valueSet?ma.Function:ma.Value,documentation:Qs(e,void 0,s),textEdit:Po.replace(f,n),insertTextFormat:fa.Snippet,command:t})}}))})),function(e,t){var i="data-",o={};function a(e){e.attributeNames.forEach((function(e){!Ps(e,i)||o[e]||t[e]||(o[e]=e+'="$1"')})),e.children.forEach((function(e){return a(e)}))}o[i]="".concat(i,'$1="$2"'),n&&n.roots.forEach((function(e){return a(e)}));Object.keys(o).forEach((function(t){return r.items.push({label:t,kind:ma.Value,textEdit:Po.replace(e,o[t]),insertTextFormat:fa.Snippet})}))}(f,_),r}function y(n,i){var c,u,f,g;if(void 0===i&&(i=h),h>n&&h<=i&&(g=l[n],/^["']*$/.test(g))){var b=n+1,_=i;i>n&&l[i-1]===l[n]&&_--;var v=function(e,t,n){for(;t>n&&!cl(e[t-1]);)t--;return t}(l,h,b),w=function(e,t,n){for(;t<n&&!cl(e[t]);)t++;return t}(l,h,_);c=p(v,w),f=h>=b&&h<=_?l.substring(b,h):"",u=!1}else c=p(n,i),f=l.substring(n,h),u=!0;if(o.length>0)for(var y=m.toLowerCase(),T=d.toLowerCase(),k=p(n,i),L=0,x=o;L<x.length;L++){var C=x[L];C.onHtmlAttributeValue&&C.onHtmlAttributeValue({document:e,position:t,tag:y,attribute:T,value:f,range:k})}return a.forEach((function(e){e.provideValues(m,d).forEach((function(e){var t=u?'"'+e.name+'"':e.name;r.items.push({label:e.name,filterText:t,kind:ma.Unit,documentation:Qs(e,void 0,s),textEdit:Po.replace(c,t),insertTextFormat:fa.PlainText})}))})),S(),r}function T(e){return h===u.getTokenEnd()&&(x=u.scan())===e&&u.getTokenOffset()===h?u.getTokenEnd():h}function k(){for(var n=0,i=o;n<i.length;n++){var r=i[n];r.onHtmlContent&&r.onHtmlContent({document:e,position:t})}return S()}function S(){for(var e=h-1,n=t.character;e>=0&&Js(l,e);)e--,n--;if(e>=0&&"&"===l[e]){var i=mo.create(co.create(t.line,n-1),t);for(var o in Ws)if(qs(o,";")){var a="&"+o;r.items.push({label:a,kind:ma.Keyword,documentation:ll("entity.propose","Character entity representing '".concat(Ws[o],"'")),textEdit:Po.replace(i,a),insertTextFormat:fa.PlainText})}}return r}function L(e,t){var n=p(e,t);r.items.push({label:"!DOCTYPE",kind:ma.Property,documentation:"A preamble for an HTML document.",textEdit:Po.replace(n,"!DOCTYPE html>"),insertTextFormat:fa.PlainText})}for(var x=u.scan();x!==os.EOS&&u.getTokenOffset()<=h;){switch(x){case os.StartTagOpen:if(u.getTokenEnd()===h){var C=T(os.StartTag);return 0===t.line&&L(h,C),v(h,C)}break;case os.StartTag:if(u.getTokenOffset()<=h&&h<=u.getTokenEnd())return f(u.getTokenOffset(),u.getTokenEnd());m=u.getTokenText();break;case os.AttributeName:if(u.getTokenOffset()<=h&&h<=u.getTokenEnd())return w(u.getTokenOffset(),u.getTokenEnd());d=u.getTokenText();break;case os.DelimiterAssign:if(u.getTokenEnd()===h){C=T(os.AttributeValue);return y(h,C)}break;case os.AttributeValue:if(u.getTokenOffset()<=h&&h<=u.getTokenEnd())return y(u.getTokenOffset(),u.getTokenEnd());break;case os.Whitespace:if(h<=u.getTokenEnd())switch(u.getScannerState()){case ss.AfterOpeningStartTag:return v(u.getTokenOffset(),T(os.StartTag));case ss.WithinTag:case ss.AfterAttributeName:return w(u.getTokenEnd());case ss.BeforeAttributeValue:return y(u.getTokenEnd());case ss.AfterOpeningEndTag:return b(u.getTokenOffset()-1,!1);case ss.WithinContent:return k()}break;case os.EndTagOpen:if(h<=u.getTokenEnd())return b(u.getTokenOffset()+1,!1,T(os.EndTag));break;case os.EndTag:if(h<=u.getTokenEnd())for(var E=u.getTokenOffset()-1;E>=0;){var A=l.charAt(E);if("/"===A)return b(E,!1,u.getTokenEnd());if(!cl(A))break;E--}break;case os.StartTagClose:if(h<=u.getTokenEnd()&&m)return _(u.getTokenEnd(),m);break;case os.Content:if(h<=u.getTokenEnd())return k();break;default:if(h<=u.getTokenEnd())return r}x=u.scan()}return r},e.prototype.doQuoteComplete=function(e,t,n,i){var r,o=e.offsetAt(t);if(o<=0)return null;var a=null!==(r=null===i||void 0===i?void 0:i.attributeDefaultValue)&&void 0!==r?r:"doublequotes";if("empty"===a)return null;if("="!==e.getText().charAt(o-1))return null;var s="doublequotes"===a?'"$1"':"'$1'",l=n.findNodeBefore(o);if(l&&l.attributes&&l.start<o&&(!l.endTagStart||l.endTagStart>o))for(var h=Is(e.getText(),l.start),c=h.scan();c!==os.EOS&&h.getTokenEnd()<=o;){if(c===os.AttributeName&&h.getTokenEnd()===o-1)return(c=h.scan())!==os.DelimiterAssign||(c=h.scan())===os.Unknown||c===os.AttributeValue?null:s;c=h.scan()}return null},e.prototype.doTagComplete=function(e,t,n){var i=e.offsetAt(t);if(i<=0)return null;var r=e.getText().charAt(i-1);if(">"===r){if((a=n.findNodeBefore(i))&&a.tag&&!Hs(a.tag)&&a.start<i&&(!a.endTagStart||a.endTagStart>i))for(var o=(s=Is(e.getText(),a.start)).scan();o!==os.EOS&&s.getTokenEnd()<=i;){if(o===os.StartTagClose&&s.getTokenEnd()===i)return"$0</".concat(a.tag,">");o=s.scan()}}else if("/"===r){for(var a=n.findNodeBefore(i);a&&a.closed&&!(a.endTagStart&&a.endTagStart>i);)a=a.parent;if(a&&a.tag){var s;for(o=(s=Is(e.getText(),a.start)).scan();o!==os.EOS&&s.getTokenEnd()<=i;){if(o===os.EndTagOpen&&s.getTokenEnd()===i)return"".concat(a.tag,">");o=s.scan()}}}return null},e.prototype.convertCompletionList=function(e){return this.doesSupportMarkdown()||e.items.forEach((function(e){e.documentation&&"string"!==typeof e.documentation&&(e.documentation={kind:"plaintext",value:e.documentation.value})})),e},e.prototype.doesSupportMarkdown=function(){var e,t,n;if(!Xs(this.supportsMarkdown)){if(!Xs(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var i=null===(n=null===(t=null===(e=this.lsOptions.clientCapabilities.textDocument)||void 0===e?void 0:e.completion)||void 0===t?void 0:t.completionItem)||void 0===n?void 0:n.documentationFormat;this.supportsMarkdown=Array.isArray(i)&&-1!==i.indexOf(ca.Markdown)}return this.supportsMarkdown},e}();function cl(e){return/^\s*$/.test(e)}function dl(e,t,n,i){for(var r=Is(e,t,n),o=r.scan();o===os.Whitespace;)o=r.scan();return o===i}var ul,ml=oo(),pl=function(){function e(e,t){this.lsOptions=e,this.dataManager=t}return e.prototype.doHover=function(e,t,n,i){var r=this.convertContents.bind(this),o=this.doesSupportMarkdown(),a=e.offsetAt(t),s=n.findNodeAt(a),l=e.getText();if(!s||!s.tag)return null;var h=this.dataManager.getDataProviders().filter((function(t){return t.isApplicable(e.languageId)}));function c(e,t,n){for(var a=function(n){var a=null;if(n.provideTags().forEach((function(n){if(n.name.toLowerCase()===e.toLowerCase()){var r=Qs(n,i,o);r||(r={kind:o?"markdown":"plaintext",value:""}),a={contents:r,range:t}}})),a)return a.contents=r(a.contents),{value:a}},s=0,l=h;s<l.length;s++){var c=a(l[s]);if("object"===typeof c)return c.value}return null}function d(t,n){for(var i=Is(e.getText(),n),r=i.scan();r!==os.EOS&&(i.getTokenEnd()<a||i.getTokenEnd()===a&&r!==t);)r=i.scan();return r===t&&a<=i.getTokenEnd()?{start:e.positionAt(i.getTokenOffset()),end:e.positionAt(i.getTokenEnd())}:null}if(s.endTagStart&&a>=s.endTagStart){var u=d(os.EndTag,s.endTagStart);return u?c(s.tag,u):null}var m=d(os.StartTag,s.start);if(m)return c(s.tag,m);var p=d(os.AttributeName,s.start);if(p)return function(e,t,n){for(var a=function(a){var s=null;if(a.provideAttributes(e).forEach((function(e){if(t===e.name&&e.description){var r=Qs(e,i,o);s=r?{contents:r,range:n}:null}})),s)return s.contents=r(s.contents),{value:s}},s=0,l=h;s<l.length;s++){var c=a(l[s]);if("object"===typeof c)return c.value}return null}(b=s.tag,e.getText(p),p);var f=function(){for(var e=a-1,n=t.character;e>=0&&Js(l,e);)e--,n--;for(var i=e+1,r=n;Js(l,i);)i++,r++;if(e>=0&&"&"===l[e]){return";"===l[i]?mo.create(co.create(t.line,n),co.create(t.line,r+1)):mo.create(co.create(t.line,n),co.create(t.line,r))}return null}();if(f)return function(e,t){var n=function(e){for(var t=a-1,n="&";t>=0&&Js(e,t);)t--;for(t+=1;Js(e,t);)n+=e[t],t+=1;return n+";"}(e);for(var i in Ws){var o=null;if(n==="&"+i){var s=Ws[i].charCodeAt(0).toString(16).toUpperCase(),l="U+";if(s.length<4)for(var h=4-s.length,c=0;c<h;)l+="0",c+=1;l+=s;var d=ml("entity.propose","Character entity representing '".concat(Ws[i],"', unicode equivalent '").concat(l,"'"));o=d?{contents:d,range:t}:null}if(o)return o.contents=r(o.contents),o}return null}(l,f);var g=d(os.AttributeValue,s.start);if(g){var b=s.tag,_=function(e){if(e.length<=1)return e.replace(/['"]/,"");"'"!==e[0]&&'"'!==e[0]||(e=e.slice(1));"'"!==e[e.length-1]&&'"'!==e[e.length-1]||(e=e.slice(0,-1));return e}(e.getText(g)),v=function(t,n){for(var i=Is(e.getText(),t),r=i.scan(),o=void 0;r!==os.EOS&&i.getTokenEnd()<=n;)(r=i.scan())===os.AttributeName&&(o=i.getTokenText());return o}(s.start,e.offsetAt(g.start));if(v)return function(e,t,n,a){for(var s=function(s){var l=null;if(s.provideValues(e,t).forEach((function(e){if(n===e.name&&e.description){var t=Qs(e,i,o);l=t?{contents:t,range:a}:null}})),l)return l.contents=r(l.contents),{value:l}},l=0,c=h;l<c.length;l++){var d=s(c[l]);if("object"===typeof d)return d.value}return null}(b,v,_,g)}return null},e.prototype.convertContents=function(e){if(!this.doesSupportMarkdown()){if("string"===typeof e)return e;if("kind"in e)return{kind:"plaintext",value:e.value};if(!Array.isArray(e))return e.value;e.map((function(e){return"string"===typeof e?e:e.value}))}return e},e.prototype.doesSupportMarkdown=function(){var e,t,n;if(!Xs(this.supportsMarkdown)){if(!Xs(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var i=null===(n=null===(t=null===(e=this.lsOptions.clientCapabilities)||void 0===e?void 0:e.textDocument)||void 0===t?void 0:t.hover)||void 0===n?void 0:n.contentFormat;this.supportsMarkdown=Array.isArray(i)&&-1!==i.indexOf(ca.Markdown)}return this.supportsMarkdown},e}();function fl(e,t){return e}!function(){var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},,,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"===typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},,function(e,t,n){var i=n(16).Beautifier,r=n(17).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(17).Options,r=n(2).Output,o=n(8).InputScanner,a=new(0,n(13).Directives)(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,h=/\s/,c=/(?:\s|\n)+/g,d=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,u=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function m(e,t){this._source_text=e||"",this._options=new i(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}m.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},m.prototype.eatWhitespace=function(e){for(var t=h.test(this._input.peek()),n=0;h.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t},m.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if("{"===n)return!0;if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)return!1;t++,n=this._input.peek(t)}return!1},m.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},m.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},m.prototype.indent=function(){this._indentLevel++},m.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},m.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&s.test(e||"")&&(t=e.match(s)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new o(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,m,p=0,f=!1,g=!1,b=!1,_=!1,v=!1,w=this._ch;i=""!==this._input.read(c),m=w,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var y=this._input.read(d),T=a.get_directives(y);T&&"start"===T.ignore&&(y+=a.readIgnored(this._input)),this.print_string(y),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(u)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var k=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);k.match(/[ :]$/)&&(k=this.eatString(": ").replace(/\s$/,""),this.print_string(k),this._output.space_before_token=!0),"extend"===(k=k.replace(/\s$/,""))?_=!0:"import"===k&&(v=!0),k in this.NESTED_AT_RULE?(this._nestedLevel+=1,k in this.CONDITIONAL_GROUP_RULE&&(b=!0)):f||0!==p||-1===k.indexOf(":")||(g=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(g&&(g=!1,this.outdent()),b?(b=!1,f=this._indentLevel>=this._nestedLevel):f=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&f&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===m&&this._output.trim(!0),v=!1,_=!1,g&&(this.outdent(),g=!1),this.print_string(this._ch),f=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0)):":"===this._ch?!f&&!b||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||_||0!==p?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===p?(g&&(this.outdent(),g=!1),_=!1,v=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),p++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),p&&(p--,this.outdent()))):(this.preserveSingleSpace(i),this.print_string(this._ch),this.eatWhitespace(),p++,this.indent()):")"===this._ch?(p&&(p--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||g||0!==p||v||_?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==p?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(i),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),h.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(i),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&h.test(this._ch)&&(this._ch=""));return this._output.get_code(t)},e.exports.Beautifier=m},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r<n.length;r++)"expand"!==n[r]?this.brace_style="collapse":this.brace_style=n[r]}r.prototype=new i,e.exports.Options=r}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}(15);ul=n}();var gl,bl,_l=ul;function vl(e,t,n){var i=e.getText(),r=!0,o=0,a=n.tabSize||4;if(t){for(var s=e.offsetAt(t.start),l=s;l>0&&Sl(i,l-1);)l--;0===l||kl(i,l-1)?s=l:l<s&&(s=l+1);for(var h=e.offsetAt(t.end),c=h;c<i.length&&Sl(i,c);)c++;(c===i.length||kl(i,c))&&(h=c),t=mo.create(e.positionAt(s),e.positionAt(h));var d=i.substring(0,s);if(new RegExp(/.*[<][^>]*$/).test(d))return[{range:t,newText:i=i.substring(s,h)}];if(r=h===i.length,i=i.substring(s,h),0!==s){var u=e.offsetAt(co.create(t.start.line,0));o=function(e,t,n){var i=t,r=0,o=n.tabSize||4;for(;i<e.length;){var a=e.charAt(i);if(" "===a)r++;else{if("\t"!==a)break;r+=o}i++}return Math.floor(r/o)}(e.getText(),u,n)}}else t=mo.create(co.create(0,0),e.positionAt(i.length));var m={indent_size:a,indent_char:n.insertSpaces?" ":"\t",indent_empty_lines:wl(n,"indentEmptyLines",!1),wrap_line_length:wl(n,"wrapLineLength",120),unformatted:yl(n,"unformatted",void 0),content_unformatted:yl(n,"contentUnformatted",void 0),indent_inner_html:wl(n,"indentInnerHtml",!1),preserve_newlines:wl(n,"preserveNewLines",!0),max_preserve_newlines:wl(n,"maxPreserveNewLines",32786),indent_handlebars:wl(n,"indentHandlebars",!1),end_with_newline:r&&wl(n,"endWithNewline",!1),extra_liners:yl(n,"extraLiners",void 0),wrap_attributes:wl(n,"wrapAttributes","auto"),wrap_attributes_indent_size:wl(n,"wrapAttributesIndentSize",void 0),eol:"\n",indent_scripts:wl(n,"indentScripts","normal"),templating:Tl(n,"all"),unformatted_content_delimiter:wl(n,"unformattedContentDelimiter","")},p=function(e,t){return gl(e,t,fl,_l)}(i.replace(/^\s+/,""),m);if(o>0){var f=n.insertSpaces?Fs(" ",a*o):Fs("\t",o);p=p.split("\n").join("\n"+f),0===t.start.character&&(p=f+p)}return[{range:t,newText:p}]}function wl(e,t,n){if(e&&e.hasOwnProperty(t)){var i=e[t];if(null!==i)return i}return n}function yl(e,t,n){var i=wl(e,t,null);return"string"===typeof i?i.length>0?i.split(",").map((function(e){return e.trim().toLowerCase()})):[]:n}function Tl(e,t){return!0===wl(e,"templating",t)?["auto"]:["none"]}function kl(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}function Sl(e,t){return-1!==" \t".indexOf(e.charAt(t))}!function(){var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},function(e){e.exports.Token=function(e,t,n,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"===typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,n){var i=n(8).InputScanner,r=n(3).Token,o=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new i(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new o,this._reset();for(var t=new r(s.START,""),n=null,i=[],a=new o;t.type!==s.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)a.add(e),e=this._get_next_token(t,n);a.isEmpty()||(e.comments_before=a,a=new o),e.parent=n,this._is_opening(e)?(i.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=i.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new r(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=s},function(e){function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return 0===this.__tokens_length},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},t.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},t.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},e.exports.TokenStream=t},function(e,t,n){var i=n(12).Pattern;function r(e,t){i.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}r.prototype=new i,r.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},r.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},r.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},r.prototype._create=function(){return new r(this._input,this)},r.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,i=[],r=e.exec(t);r;)i.push(t.substring(n,r.index)),n=r.index+r[0].length,r=e.exec(t);return n<t.length?i.push(t.substring(n,t.length)):i.push(""),i},e.exports.WhitespacePattern=r},function(e){function t(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}t.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},e.exports.Pattern=t},function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},function(e,t,n){var i=n(12).Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function o(e,t){i.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},r),this._excluded=Object.assign({},r),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var n=new i(e);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}o.prototype=new i,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},o.prototype.read_options=function(e){var t=this._create();for(var n in r)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},o.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},o.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},o.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},o.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},e.exports.TemplatablePattern=o},,,,function(e,t,n){var i=n(19).Beautifier,r=n(20).Options;e.exports=function(e,t,n,r){return new i(e,t,n,r).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(20).Options,r=n(2).Output,o=n(21).Tokenizer,a=n(21).TOKEN,s=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,h=function(e,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new r(e,t)};h.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},h.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},h.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},h.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},h.prototype.print_preserved_newlines=function(e){var t=0;e.type!==a.TEXT&&e.previous.type!==a.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var n=0;n<t;n++)this.print_newline(n>0);return 0!==t},h.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},h.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},h.prototype.print_newline=function(e){this._output.add_new_line(e)},h.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},h.prototype.indent=function(){this.indent_level++},h.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var c=function(e,t){var n=null,i=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),n=function(e){for(var t=null,n=e.next;n.type!==a.EOF&&e.closed!==n;){if(n.type===a.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===a.EQUALS&&n.next.next&&n.next.next.type===a.VALUE&&(t=n.next.next.text);break}n=n.next}return t}(t)||n,n.search("text/css")>-1?i="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":n.search(/test\/null/)>-1&&(i="null"),i):null};function d(e,t){return-1!==t.indexOf(e)}function u(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function m(e){this._printer=e,this._current_frame=null}function p(e,t,n,r){this._source_text=e||"",t=t||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null;var o=new i(t,"html");this._options=o,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}m.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},m.prototype.record_tag=function(e){var t=new u(this._current_frame,e,this._printer.indent_level);this._current_frame=t},m.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},m.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&-1===e.indexOf(n.tag);){if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},m.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},m.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&s.test(e)&&(t=e.match(s)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0],i={text:"",type:""},r=new f,c=new h(this._options,n),d=new o(e,this._options).tokenize();this._tag_stack=new m(c);for(var u=null,p=d.next();p.type!==a.EOF;)p.type===a.TAG_OPEN||p.type===a.COMMENT?r=u=this._handle_tag_open(c,p,r,i):p.type===a.ATTRIBUTE||p.type===a.EQUALS||p.type===a.VALUE||p.type===a.TEXT&&!r.tag_complete?u=this._handle_inside_tag(c,p,r,d):p.type===a.TAG_CLOSE?u=this._handle_tag_close(c,p,r):p.type===a.TEXT?u=this._handle_text(c,p,r):c.add_raw_token(p),i=u,p=d.next();return c._output.get_code(t)},p.prototype._handle_tag_close=function(e,t,n){var i={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),i},p.prototype._handle_inside_tag=function(e,t,n,i){var r=n.has_wrapped_attrs,o={text:t.text,type:t.type};if(e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted)e.add_raw_token(t);else if("{"===n.tag_start_char&&t.type===a.TEXT)e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t);else{if(t.type===a.ATTRIBUTE?(e.set_space_before_token(!0),n.attr_count+=1):(t.type===a.EQUALS||t.type===a.VALUE&&t.previous.type===a.EQUALS)&&e.set_space_before_token(!1),t.type===a.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),r=r||0!==t.newlines),this._is_wrap_attributes_force)){var s=n.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===n.attr_count){var l,h=!0,c=0;do{if((l=i.peek(c)).type===a.ATTRIBUTE){h=!1;break}c+=1}while(c<4&&l.type!==a.EOF&&l.type!==a.TAG_CLOSE);s=!h}s&&(e.print_newline(!1),r=!0)}e.print_token(t),r=r||e.previous_token_wrapped(),n.has_wrapped_attrs=r}return o},p.prototype._handle_text=function(e,t,n){var i={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),i},p.prototype._print_custom_beatifier_text=function(e,t,n){var i=this;if(""!==t.text){var r,o=t.text,a=1,s="",l="";"javascript"===n.custom_beautifier_name&&"function"===typeof this._js_beautify?r=this._js_beautify:"css"===n.custom_beautifier_name&&"function"===typeof this._css_beautify?r=this._css_beautify:"html"===n.custom_beautifier_name&&(r=function(e,t){return new p(e,t,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?a=0:"separate"===this._options.indent_scripts&&(a=-e.indent_level);var h=e.get_full_indent(a);if(o=o.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===o[0]&&o.match(/^(<!--|<!\[CDATA\[)/)){var c=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(o);if(!c)return void e.add_raw_token(t);s=h+c[1]+"\n",o=c[4],c[5]&&(l=h+c[5]),o=o.replace(/\n[ \t]*$/,""),(c[2]||-1!==c[3].indexOf("\n"))&&(c=c[3].match(/[ \t]+$/))&&(t.whitespace_before=c[0])}if(o)if(r){var d=function(){this.eol="\n"};d.prototype=this._options.raw_options,o=r(h+o,new d)}else{var u=t.whitespace_before;u&&(o=o.replace(new RegExp("\n("+u+")?","g"),"\n")),o=h+o.replace(/\n/g,"\n"+h)}s&&(o=o?s+o+"\n"+l:s+l),e.print_newline(!1),o&&(t.text=o,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},p.prototype._handle_tag_open=function(e,t,n,i){var r=this._get_tag_open_token(t);return!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||t.type!==a.TAG_OPEN||0!==t.text.indexOf("</")?(e.traverse_whitespace(t),this._set_tag_position(e,t,r,n,i),r.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),r.start_tag_token=this._tag_stack.try_pop(r.tag_name)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(r.alignment_size=t.text.length+1),r.tag_complete||r.is_unformatted||(e.alignment_size=r.alignment_size),r};var f=function(e,t){var n;(this.parent=e||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",t)?(this.tag_start_char=t.text[0],this.text=t.text,"<"===this.tag_start_char?(n=t.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=t.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"","{{#>"===t.text&&">"===this.tag_check&&null!==t.next&&(this.tag_check=t.next.text)),this.tag_check=this.tag_check.toLowerCase(),t.type===a.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||t.closed&&"/>"===t.closed.text,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};p.prototype._get_tag_open_token=function(e){var t=new f(this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||d(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&d(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&d(t.tag_check,this._options.content_unformatted),t.is_inline_element=d(t.tag_name,this._options.inline)||"{"===t.tag_start_char,t},p.prototype._set_tag_position=function(e,t,n,i,r){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=c(n.tag_check,t)))),d(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===n.tag_name&&r.type===a.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n))}else if(n.is_end_tag){var o=!1;o=(o=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(r.type===a.TAG_CLOSE&&n.start_tag_token===i)&&"TK_CONTENT"!==r.type,(n.is_content_unformatted||n.is_unformatted)&&(o=!1),o&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===r.type&&!n.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n)},p.prototype._calcluate_parent_multiline=function(e,t){!t.parent||!e._output.just_added_newline()||(t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element||(t.parent.multiline_content=!0)};var g=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],b=["a","audio","del","ins","map","noscript","video"];p.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==g.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==b.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==e.tag_name&&"td"!==e.tag_name||(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},e.exports.Beautifier=p},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}r.prototype=new i,e.exports.Options=r},function(e,t,n){var i=n(9).Tokenizer,r=n(9).TOKEN,o=n(13).Directives,a=n(14).TemplatablePattern,s=n(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},h=new o(/<\!--/,/-->/),c=function(e,t){i.call(this,e,t),this._current_tag_name="";var n=new a(this._input).read_options(this._options),r=new s(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(/<!--/).until_after(/-->/),cdata:r.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:r.starting_with(/<!\[/).until_after(/]>/),processing:r.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(o).until_after(o)}};(c.prototype=new i)._is_comment=function(e){return!1},c.prototype._is_opening=function(e){return e.type===l.TAG_OPEN},c.prototype._is_closing=function(e,t){return e.type===l.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(l.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(i,t))||this._read_attribute(i,e,t))||this._read_close(i,t))||this._read_raw_content(i,e,t))||this._read_content_word(i))||this._read_comment_or_cdata(i))||this._read_processing(i))||this._read_open(i,t))||this._create_token(l.UNKNOWN,this._input.next())},c.prototype._read_comment_or_cdata=function(e){var t=null,n=null,i=null;"<"===e&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(i=h.get_directives(n))&&"start"===i.ignore&&(n+=h.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=i));return t},c.prototype._read_processing=function(e){var t=null,n=null;if("<"===e){var i=this._input.peek(1);"!"!==i&&"?"!==i||(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=null)}return t},c.prototype._read_open=function(e,t){var n=null,i=null;return t||"<"===e&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(l.TAG_OPEN,n)),i},c.prototype._read_open_handlebars=function(e,t){var n=null,i=null;return t||this._options.indent_handlebars&&"{"===e&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),i=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(l.TAG_OPEN,n))),i},c.prototype._read_close=function(e,t){var n=null,i=null;return t&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),i=this._create_token(l.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(l.TAG_CLOSE,"}}"))),i},c.prototype._read_attribute=function(e,t,n){var i=null,r="";if(n&&"<"===n.text[0])if("="===e)i=this._create_token(l.EQUALS,this._input.next());else if('"'===e||"'"===e){var o=this._input.next();o+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(l.VALUE,o)}else(r=this.__patterns.attribute.read())&&(i=t.type===l.EQUALS?this._create_token(l.VALUE,r):this._create_token(l.ATTRIBUTE,r));return i},c.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},c.prototype._read_raw_content=function(e,t,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var r=t.opened.text.substr(1).toLowerCase();if("script"===r||"style"===r){var o=this._read_comment_or_cdata(e);if(o)return o.type=l.TEXT,o;i=this._input.readUntil(new RegExp("</"+r+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(r)&&(i=this._input.readUntil(new RegExp("</"+r+"[\\n\\r\\t ]*?>","ig")))}return i?this._create_token(l.TEXT,i):null},c.prototype._read_content_word=function(e){var t="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(t=this.__patterns.unformatted_content_delimiter.read()),t||(t=this.__patterns.word.read()),t)return this._create_token(l.TEXT,t)},e.exports.Tokenizer=c,e.exports.TOKEN=l}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}(18);gl=n}(),bl=(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,i="",r=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var l=i.lastIndexOf("/");if(l!==i.length-1){-1===l?(i="",r=0):r=(i=i.slice(0,l)).length-1-i.lastIndexOf("/"),o=s,a=0;continue}}else if(2===i.length||1===i.length){i="",r=0,o=s,a=0;continue}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,s):i=e.slice(o+1,s),r=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var i={resolve:function(){for(var e,i="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a;o>=0?a=arguments[o]:(void 0===e&&(e=process.cwd()),a=e),t(a),0!==a.length&&(i=a+"/"+i,r=47===a.charCodeAt(0))}return i=n(i,!r),r?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&r&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];t(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var o=e.length,a=o-r,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var l=n.length-s,h=a<l?a:l,c=-1,d=0;d<=h;++d){if(d===h){if(l>h){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>h&&(47===e.charCodeAt(r+d)?c=d:0===d&&(c=0));break}var u=e.charCodeAt(r+d);if(u!==n.charCodeAt(s+d))break;47===u&&(c=d)}var m="";for(d=r+c+1;d<=o;++d)d!==o&&47!==e.charCodeAt(d)||(0===m.length?m+="..":m+="/..");return m.length>0?m+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),i=47===n,r=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){r=a;break}}else o=!1;return-1===r?i?"/":".":i&&1===r?"//":e.slice(0,r)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var i,r=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(i=e.length-1;i>=0;--i){var h=e.charCodeAt(i);if(47===h){if(!a){r=i+1;break}}else-1===l&&(a=!1,l=i+1),s>=0&&(h===n.charCodeAt(s)?-1==--s&&(o=i):(s=-1,o=l))}return r===o?o=l:-1===o&&(o=e.length),e.slice(r,o)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!a){r=i+1;break}}else-1===o&&(a=!1,o=i+1);return-1===o?"":e.slice(r,o)},extname:function(e){t(e);for(var n=-1,i=0,r=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===r&&(o=!1,r=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){i=s+1;break}}return-1===n||-1===r||0===a||1===a&&n===r-1&&n===i+1?"":e.slice(n,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+"/"+i:i}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i,r=e.charCodeAt(0),o=47===r;o?(n.root="/",i=1):i=0;for(var a=-1,s=0,l=-1,h=!0,c=e.length-1,d=0;c>=i;--c)if(47!==(r=e.charCodeAt(c)))-1===l&&(h=!1,l=c+1),46===r?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1);else if(!h){s=c+1;break}return-1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(n.base=n.name=0===s&&o?e.slice(1,l):e.slice(s,l)):(0===s&&o?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(s,a),n.base=e.slice(s,l)),n.ext=e.slice(a,l)),s>0?n.dir=e.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i},447:(e,t,n)=>{var i;if(n.r(t),n.d(t,{URI:()=>f,Utils:()=>x}),"object"==typeof process)i="win32"===process.platform;else if("object"==typeof navigator){var r=navigator.userAgent;i=r.indexOf("Windows")>=0}var o,a,s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=/^\w[\w\d+.-]*$/,h=/^\//,c=/^\/\//;function d(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!l.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!h.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(c.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}var u="",m="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,f=function(){function e(e,t,n,i,r,o){void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||u,this.authority=e.authority||u,this.path=e.path||u,this.query=e.query||u,this.fragment=e.fragment||u):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||u,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==m&&(t=m+t):t=m}return t}(this.scheme,n||u),this.query=i||u,this.fragment=r||u,d(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"string"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return y(this,!1)},enumerable:!1,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,i=e.path,r=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=u),void 0===n?n=this.authority:null===n&&(n=u),void 0===i?i=this.path:null===i&&(i=u),void 0===r?r=this.query:null===r&&(r=u),void 0===o?o=this.fragment:null===o&&(o=u),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&o===this.fragment?this:new b(t,n,i,r,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=p.exec(e);return n?new b(n[2]||u,L(n[4]||u),L(n[5]||u),L(n[7]||u),L(n[9]||u),t):new b(u,u,u,u,u)},e.file=function(e){var t=u;if(i&&(e=e.replace(/\\/g,m)),e[0]===m&&e[1]===m){var n=e.indexOf(m,2);-1===n?(t=e.substring(2),e=m):(t=e.substring(2,n),e=e.substring(n)||m)}return new b("file",t,e,u,u)},e.from=function(e){var t=new b(e.scheme,e.authority,e.path,e.query,e.fragment);return d(t,!0),t},e.prototype.toString=function(e){return void 0===e&&(e=!1),T(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new b(t);return n._formatted=t.external,n._fsPath=t._sep===g?t.fsPath:null,n}return t},e}(),g=i?1:void 0,b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return s(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=y(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?T(this,!0):(this._formatted||(this._formatted=T(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(f),_=((a={})[58]="%3A",a[47]="%2F",a[63]="%3F",a[35]="%23",a[91]="%5B",a[93]="%5D",a[64]="%40",a[33]="%21",a[36]="%24",a[38]="%26",a[39]="%27",a[40]="%28",a[41]="%29",a[42]="%2A",a[43]="%2B",a[44]="%2C",a[59]="%3B",a[61]="%3D",a[32]="%20",a);function v(e,t){for(var n=void 0,i=-1,r=0;r<e.length;r++){var o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));var a=_[o];void 0!==a?(-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),n+=a):-1===i&&(i=r)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function w(e){for(var t=void 0,n=0;n<e.length;n++){var i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=_[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function y(e,t){var n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?"//".concat(e.authority).concat(e.path):47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i&&(n=n.replace(/\//g,"\\")),n}function T(e,t){var n=t?w:v,i="",r=e.scheme,o=e.authority,a=e.path,s=e.query,l=e.fragment;if(r&&(i+=r,i+=":"),(o||"file"===r)&&(i+=m,i+=m),o){var h=o.indexOf("@");if(-1!==h){var c=o.substr(0,h);o=o.substr(h+1),-1===(h=c.indexOf(":"))?i+=n(c,!1):(i+=n(c.substr(0,h),!1),i+=":",i+=n(c.substr(h+1),!1)),i+="@"}-1===(h=(o=o.toLowerCase()).indexOf(":"))?i+=n(o,!1):(i+=n(o.substr(0,h),!1),i+=o.substr(h))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2))(d=a.charCodeAt(1))>=65&&d<=90&&(a="/".concat(String.fromCharCode(d+32),":").concat(a.substr(3)));else if(a.length>=2&&58===a.charCodeAt(1)){var d;(d=a.charCodeAt(0))>=65&&d<=90&&(a="".concat(String.fromCharCode(d+32),":").concat(a.substr(2)))}i+=n(a,!0)}return s&&(i+="?",i+=n(s,!1)),l&&(i+="#",i+=t?l:v(l,!1)),i}function k(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+k(e.substr(3)):e}}var S=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function L(e){return e.match(S)?e.replace(S,(function(e){return k(e)})):e}var x,C,E=n(470),A=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},R=E.posix||E;(C=x||(x={})).joinPath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.with({path:R.join.apply(R,A([e.path],t,!1))})},C.resolvePath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=e.path||"/";return e.with({path:R.resolve.apply(R,A([i],t,!1))})},C.dirname=function(e){var t=R.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)?e:e.with({path:t})},C.basename=function(e){return R.basename(e.path)},C.extname=function(e){return R.extname(e.path)}}},t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}return n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(447)})();var{URI:Ll,Utils:xl}=bl;function Cl(e){var t=e[0];return t!==e[e.length-1]||"'"!==t&&'"'!==t||(e=e.substr(1,e.length-2)),e}function El(e,t,n,i,r,o){var a=Cl(n);if(s=a,l=e.languageId,s.length&&("handlebars"!==l||!/{{|}}/.test(s))&&/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(s)){var s,l;a.length<n.length&&(i++,r--);var h=function(e,t,n,i){if(!/^\s*javascript\:/i.test(t)&&!/[\n\r]/.test(t))return t=t.replace(/^\s*/g,""),/^https?:\/\//i.test(t)||/^file:\/\//i.test(t)?t:/^\#/i.test(t)?e+t:/^\/\//i.test(t)?(Ps(e,"https://")?"https":"http")+":"+t.replace(/^\s*/g,""):n?n.resolveReference(t,i||e):t}(e.uri,a,t,o);if(h&&function(e){try{return Ll.parse(e),!0}catch(Gl){return!1}}(h))return{range:mo.create(e.positionAt(i),e.positionAt(r)),target:h}}}function Al(e,t){for(var n=[],i=Is(e.getText(),0),r=i.scan(),o=void 0,a=!1,s=void 0,l={};r!==os.EOS;){switch(r){case os.StartTag:if(!s)a="base"===i.getTokenText().toLowerCase();break;case os.AttributeName:o=i.getTokenText().toLowerCase();break;case os.AttributeValue:if("src"===o||"href"===o){var h=i.getTokenText();if(!a)(u=El(e,t,h,i.getTokenOffset(),i.getTokenEnd(),s))&&n.push(u);a&&"undefined"===typeof s&&(s=Cl(h))&&t&&(s=t.resolveReference(s,e.uri)),a=!1,o=void 0}else if("id"===o){l[Cl(i.getTokenText())]=i.getTokenOffset()}}r=i.scan()}for(var c=0,d=n;c<d.length;c++){var u=d[c],m=e.uri+"#";if(u.target&&Ps(u.target,m)){var p=l[u.target.substr(m.length)];if(void 0!==p){var f=e.positionAt(p);u.target="".concat(m).concat(f.line+1,",").concat(f.character+1)}}}return n}function Rl(e,t,n){var i=e.offsetAt(t),r=n.findNodeAt(i);if(!r.tag)return[];var o=[],a=Il(os.StartTag,e,r.start),s="number"===typeof r.endTagStart&&Il(os.EndTag,e,r.endTagStart);return(a&&Nl(a,t)||s&&Nl(s,t))&&(a&&o.push({kind:Aa.Read,range:a}),s&&o.push({kind:Aa.Read,range:s})),o}function Ml(e,t){return e.line<t.line||e.line===t.line&&e.character<=t.character}function Nl(e,t){return Ml(e.start,t)&&Ml(t,e.end)}function Il(e,t,n){for(var i=Is(t.getText(),n),r=i.scan();r!==os.EOS&&r!==e;)r=i.scan();return r!==os.EOS?{start:t.positionAt(i.getTokenOffset()),end:t.positionAt(i.getTokenEnd())}:null}function zl(e,t){var n=[];return t.roots.forEach((function(t){Ul(e,t,"",n)})),n}function Ul(e,t,n,i){var r=function(e){var t=e.tag;if(e.attributes){var n=e.attributes.id,i=e.attributes.class;n&&(t+="#".concat(n.replace(/[\"\']/g,""))),i&&(t+=i.replace(/[\"\']/g,"").split(/\s+/).map((function(e){return".".concat(e)})).join(""))}return t||"?"}(t),o=fo.create(e.uri,mo.create(e.positionAt(t.start),e.positionAt(t.end))),a={name:r,location:o,containerName:n,kind:Na.Field};i.push(a),t.children.forEach((function(t){Ul(e,t,r,i)}))}function Hl(e,t,n,i){var r,o=e.offsetAt(t),a=i.findNodeAt(o);if(!a.tag)return null;if(!function(e,t,n){if(e.endTagStart&&e.endTagStart+2<=t&&t<=e.endTagStart+2+n.length)return!0;return e.start+1<=t&&t<=e.start+1+n.length}(a,o,a.tag))return null;var s=[],l={start:e.positionAt(a.start+1),end:e.positionAt(a.start+1+a.tag.length)};if(s.push({range:l,newText:n}),a.endTagStart){var h={start:e.positionAt(a.endTagStart+2),end:e.positionAt(a.endTagStart+2+a.tag.length)};s.push({range:h,newText:n})}return{changes:((r={})[e.uri.toString()]=s,r)}}function Dl(e,t,n){var i=e.offsetAt(t),r=n.findNodeAt(i);if(!r.tag)return null;if(!r.endTagStart)return null;if(r.start+1<=i&&i<=r.start+1+r.tag.length){var o=i-1-r.start+r.endTagStart+2;return e.positionAt(o)}if(r.endTagStart+2<=i&&i<=r.endTagStart+2+r.tag.length){o=i-2-r.endTagStart+r.start+1;return e.positionAt(o)}return null}function Ol(e,t,n){var i=e.offsetAt(t),r=n.findNodeAt(i),o=r.tag?r.tag.length:0;return r.endTagStart&&(r.start+1<=i&&i<=r.start+1+o||r.endTagStart+2<=i&&i<=r.endTagStart+2+o)?[mo.create(e.positionAt(r.start+1),e.positionAt(r.start+1+o)),mo.create(e.positionAt(r.endTagStart+2),e.positionAt(r.endTagStart+2+o))]:null}function Wl(e,t){var n=Is(e.getText()),i=n.scan(),r=[],o=[],a=null,s=-1;function l(e){r.push(e),s=e.startLine}for(;i!==os.EOS;){switch(i){case os.StartTag:var h=n.getTokenText(),c=e.positionAt(n.getTokenOffset()).line;o.push({startLine:c,tagName:h}),a=h;break;case os.EndTag:a=n.getTokenText();break;case os.StartTagClose:if(!a||!Hs(a))break;case os.EndTagClose:case os.StartTagSelfClose:for(var d=o.length-1;d>=0&&o[d].tagName!==a;)d--;if(d>=0){var u=o[d];o.length=d,(p=e.positionAt(n.getTokenOffset()).line-1)>(c=u.startLine)&&s!==c&&l({startLine:c,endLine:p})}break;case os.Comment:c=e.positionAt(n.getTokenOffset()).line;var m=n.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(m)if(m[1])o.push({startLine:c,tagName:""});else{for(d=o.length-1;d>=0&&o[d].tagName.length;)d--;if(d>=0){var p;u=o[d];o.length=d,(p=c)>(c=u.startLine)&&s!==c&&l({startLine:c,endLine:p,kind:Lo.Region})}}else c<(p=e.positionAt(n.getTokenOffset()+n.getTokenLength()).line)&&l({startLine:c,endLine:p,kind:Lo.Comment})}i=n.scan()}var f=t&&t.rangeLimit||Number.MAX_VALUE;return r.length>f?function(e,t){e=e.sort((function(e,t){var n=e.startLine-t.startLine;return 0===n&&(n=e.endLine-t.endLine),n}));for(var n=void 0,i=[],r=[],o=[],a=function(e,t){r[e]=t,t<30&&(o[t]=(o[t]||0)+1)},s=0;s<e.length;s++){var l=e[s];if(n){if(l.startLine>n.startLine)if(l.endLine<=n.endLine)i.push(n),n=l,a(s,i.length);else if(l.startLine>n.endLine){do{n=i.pop()}while(n&&l.startLine>n.endLine);n&&i.push(n),n=l,a(s,i.length)}}else n=l,a(s,0)}var h=0,c=0;for(s=0;s<o.length;s++){var d=o[s];if(d){if(d+h>t){c=s;break}h+=d}}var u=[];for(s=0;s<e.length;s++){var m=r[s];"number"===typeof m&&(m<c||m===c&&h++<t)&&u.push(e[s])}return u}(r,f):r}function Pl(e,t){return t.map((function(t){for(var n=function(e,t){var n=Os(e.getText()),i=e.offsetAt(t),r=n.findNodeAt(i),o=function(e){var t=e,n=function(e){return e.startTagEnd&&e.endTagStart&&e.startTagEnd<e.endTagStart?[[e.startTagEnd,e.endTagStart],[e.start,e.end]]:[[e.start,e.end]]},i=[];for(;t.parent;)n(t=t.parent).forEach((function(e){return i.push(e)}));return i}(r);if(r.startTagEnd&&!r.endTagStart){if(r.startTagEnd!==r.end)return[[r.start,r.end]];var a=mo.create(e.positionAt(r.startTagEnd-2),e.positionAt(r.startTagEnd));return"/>"===e.getText(a)?o.unshift([r.start+1,r.startTagEnd-2]):o.unshift([r.start+1,r.startTagEnd-1]),o=ql(e,r,i).concat(o)}if(!r.startTagEnd||!r.endTagStart)return o;return o.unshift([r.start,r.end]),r.start<i&&i<r.startTagEnd?(o.unshift([r.start+1,r.startTagEnd-1]),o=ql(e,r,i).concat(o)):r.startTagEnd<=i&&i<=r.endTagStart?(o.unshift([r.startTagEnd,r.endTagStart]),o):(i>=r.endTagStart+2&&o.unshift([r.endTagStart+2,r.end-1]),o)}(e,t),i=void 0,r=void 0,o=n.length-1;o>=0;o--){var a=n[o];i&&a[0]===i[0]&&a[1]===i[1]||(r=Xa.create(mo.create(e.positionAt(n[o][0]),e.positionAt(n[o][1])),r)),i=a}return r||(r=Xa.create(mo.create(t,t))),r}))}function ql(e,t,n){for(var i=mo.create(e.positionAt(t.start),e.positionAt(t.end)),r=e.getText(i),o=n-t.start,a=Is(r),s=a.scan(),l=t.start,h=[],c=!1,d=-1;s!==os.EOS;){switch(s){case os.AttributeName:if(o<a.getTokenOffset()){c=!1;break}o<=a.getTokenEnd()&&h.unshift([a.getTokenOffset(),a.getTokenEnd()]),c=!0,d=a.getTokenOffset();break;case os.AttributeValue:if(!c)break;var u=a.getTokenText();if(o<a.getTokenOffset()){h.push([d,a.getTokenEnd()]);break}o>=a.getTokenOffset()&&o<=a.getTokenEnd()&&(h.unshift([a.getTokenOffset(),a.getTokenEnd()]),('"'===u[0]&&'"'===u[u.length-1]||"'"===u[0]&&"'"===u[u.length-1])&&o>=a.getTokenOffset()+1&&o<=a.getTokenEnd()-1&&h.unshift([a.getTokenOffset()+1,a.getTokenEnd()-1]),h.push([d,a.getTokenEnd()]))}s=a.scan()}return h.map((function(e){return[e[0]+l,e[1]+l]}))}var Fl={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called \u201cquirks mode\u201d when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets \u2014 it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on\xa0the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image,\xa0video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates\xa0**no\xa0preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the\xa0browser\xa0that the resource is of\xa0**high** priority.\n\n**`low`**:\xa0Indicates to the\xa0browser\xa0that the resource is of\xa0**low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata \u2014 a base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},attributes:[{name:"name",description:{kind:"markdown",value:'This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [`itemprop`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.\n\nThis metadata name is associated with the value contained by the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are:\n\n* `application-name` which defines the name of the application running in the web page.\n \n **Note:**\n \n * Browsers may use this to identify the application. It is different from the [`<title>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title "The HTML Title element (<title>) defines the document\'s title that is shown in a browser\'s title bar or a page\'s tab.") element, which usually contain the application name, but may also contain information like the document name or a status.\n * Simple web pages shouldn\'t define an application-name.\n \n* `author` which defines the name of the document\'s author.\n* `description` which contains a short and accurate summary of the content of the page. Several browsers, like Firefox and Opera, use this as the default description of bookmarked pages.\n* `generator` which contains the identifier of the software that generated the page.\n* `keywords` which contains words relevant to the page\'s content separated by commas.\n* `referrer` which controls the [`Referer` HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) attached to requests sent from the document:\n \n Values for the `content` attribute of `<meta name="referrer">`\n \n `no-referrer`\n \n Do not send a HTTP `Referrer` header.\n \n `origin`\n \n Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the document.\n \n `no-referrer-when-downgrade`\n \n Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) as a referrer to URLs as secure as the current page, (https\u2192https), but does not send a referrer to less secure URLs (https\u2192http). This is the default behaviour.\n \n `origin-when-cross-origin`\n \n Send the full URL (stripped of parameters) for same-origin requests, but only send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) for other cases.\n \n `same-origin`\n \n A referrer will be sent for [same-site origins](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy), but cross-origin requests will contain no referrer information.\n \n `strict-origin`\n \n Only send the origin of the document as the referrer to a-priori as-much-secure destination (HTTPS->HTTPS), but don\'t send it to a less secure destination (HTTPS->HTTP).\n \n `strict-origin-when-cross-origin`\n \n Send a full URL when performing a same-origin request, only send the origin of the document to a-priori as-much-secure destination (HTTPS->HTTPS), and send no header to a less secure destination (HTTPS->HTTP).\n \n `unsafe-URL`\n \n Send the full URL (stripped of parameters) for same-origin or cross-origin requests.\n \n **Notes:**\n \n * Some browsers support the deprecated values of `always`, `default`, and `never` for referrer.\n * Dynamically inserting `<meta name="referrer">` (with [`document.write`](https://developer.mozilla.org/en-US/docs/Web/API/Document/write) or [`appendChild`](https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild)) makes the referrer behaviour unpredictable.\n * When several conflicting policies are defined, the no-referrer policy is applied.\n \n\nThis attribute may also have a value taken from the extended list defined on [WHATWG Wiki MetaExtensions page](https://wiki.whatwg.org/wiki/MetaExtensions). Although none have been formally accepted yet, a few commonly used names are:\n\n* `creator` which defines the name of the creator of the document, such as an organization or institution. If there are more than one, several [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") elements should be used.\n* `googlebot`, a synonym of `robots`, is only followed by Googlebot (the indexing crawler for Google).\n* `publisher` which defines the name of the document\'s publisher.\n* `robots` which defines the behaviour that cooperative crawlers, or "robots", should use with the page. It is a comma-separated list of the values below:\n \n Values for the content of `<meta name="robots">`\n \n Value\n \n Description\n \n Used by\n \n `index`\n \n Allows the robot to index the page (default).\n \n All\n \n `noindex`\n \n Requests the robot to not index the page.\n \n All\n \n `follow`\n \n Allows the robot to follow the links on the page (default).\n \n All\n \n `nofollow`\n \n Requests the robot to not follow the links on the page.\n \n All\n \n `none`\n \n Equivalent to `noindex, nofollow`\n \n [Google](https://support.google.com/webmasters/answer/79812)\n \n `noodp`\n \n Prevents using the [Open Directory Project](https://www.dmoz.org/) description, if any, as the page description in search engine results.\n \n [Google](https://support.google.com/webmasters/answer/35624#nodmoz), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/meta-tags-robotstxt-yahoo-search-sln2213.html#cont5), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noarchive`\n \n Requests the search engine not to cache the page content.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/SLN2213.html), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `nosnippet`\n \n Prevents displaying any description of the page in search engine results.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noimageindex`\n \n Requests this page not to appear as the referring page of an indexed image.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives)\n \n `nocache`\n \n Synonym of `noarchive`.\n \n [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n **Notes:**\n \n * Only cooperative robots follow these rules. Do not expect to prevent e-mail harvesters with them.\n * The robot still needs to access the page in order to read these rules. To prevent bandwidth consumption, use a _[robots.txt](https://developer.mozilla.org/en-US/docs/Glossary/robots.txt "robots.txt: Robots.txt is a file which is usually placed in the root of any website. It decides whether\xa0crawlers are permitted or forbidden access to the web site.")_ file.\n * If you want to remove a page, `noindex` will work, but only after the robot visits the page again. Ensure that the `robots.txt` file is not preventing revisits.\n * Some values are mutually exclusive, like `index` and `noindex`, or `follow` and `nofollow`. In these cases the robot\'s behaviour is undefined and may vary between them.\n * Some crawler robots, like Google, Yahoo and Bing, support the same values for the HTTP header `X-Robots-Tag`; this allows non-HTML documents like images to use these rules.\n \n* `slurp`, is a synonym of `robots`, but only for Slurp - the crawler for Yahoo Search.\n* `viewport`, which gives hints about the size of the initial size of the [viewport](https://developer.mozilla.org/en-US/docs/Glossary/viewport "viewport: A viewport represents a polygonal (normally rectangular) area in computer graphics that is currently being viewed. In web browser terms, it refers to the part of the document you\'re viewing which is currently visible in its window (or the screen, if the document is being viewed in full screen mode). Content outside the viewport is not visible onscreen until scrolled into view."). Used by mobile devices only.\n \n Values for the content of `<meta name="viewport">`\n \n Value\n \n Possible subvalues\n \n Description\n \n `width`\n \n A positive integer number, or the text `device-width`\n \n Defines the pixel width of the viewport that you want the web site to be rendered at.\n \n `height`\n \n A positive integer, or the text `device-height`\n \n Defines the height of the viewport. Not used by any browser.\n \n `initial-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the ratio between the device width (`device-width` in portrait mode or `device-height` in landscape mode) and the viewport size.\n \n `maximum-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the maximum amount to zoom in. It must be greater or equal to the `minimum-scale` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default.\n \n `minimum-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the minimum zoom level. It must be smaller or equal to the `maximum-scale` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default.\n \n `user-scalable`\n \n `yes` or `no`\n \n If set to `no`, the user is not able to zoom in the webpage. The default is `yes`. Browser settings can ignore this rule, and iOS10+ ignores it by default.\n \n Specification\n \n Status\n \n Comment\n \n [CSS Device Adaptation \n The definition of \'<meta name="viewport">\' in that specification.](https://drafts.csswg.org/css-device-adapt/#viewport-meta)\n \n Working Draft\n \n Non-normatively describes the Viewport META element\n \n See also: [`@viewport`](https://developer.mozilla.org/en-US/docs/Web/CSS/@viewport "The @viewport CSS at-rule lets you configure the viewport through which the document is viewed. It\'s primarily used for mobile devices, but is also used by desktop browsers that support features like "snap to edge" (such as Microsoft Edge).")\n \n **Notes:**\n \n * Though unstandardized, this declaration is respected by most mobile browsers due to de-facto dominance.\n * The default values may vary between devices and browsers.\n * To learn about this declaration in Firefox for Mobile, see [this article](https://developer.mozilla.org/en-US/docs/Mobile/Viewport_meta_tag "Mobile/Viewport meta tag").'}},{name:"http-equiv",description:{kind:"markdown",value:'Defines a pragma directive. The attribute is named `**http-equiv**(alent)` because all the allowed values are names of particular HTTP headers:\n\n* `"content-language"` \n Defines the default language of the page. It can be overridden by the [lang](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang) attribute on any element.\n \n **Warning:** Do not use this value, as it is obsolete. Prefer the `lang` attribute on the [`<html>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html "The HTML <html> element represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.") element.\n \n* `"content-security-policy"` \n Allows page authors to define a [content policy](https://developer.mozilla.org/en-US/docs/Web/Security/CSP/CSP_policy_directives) for the current page. Content policies mostly specify allowed server origins and script endpoints which help guard against cross-site scripting attacks.\n* `"content-type"` \n Defines the [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type) of the document, followed by its character encoding. It follows the same syntax as the HTTP `content-type` entity-header field, but as it is inside a HTML page, most values other than `text/html` are impossible. Therefore the valid syntax for its `content` is the string \'`text/html`\' followed by a character set with the following syntax: \'`; charset=_IANAcharset_`\', where `IANAcharset` is the _preferred MIME name_ for a character set as [defined by the IANA.](https://www.iana.org/assignments/character-sets)\n \n **Warning:** Do not use this value, as it is obsolete. Use the [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute on the [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element.\n \n **Note:** As [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") can\'t change documents\' types in XHTML or HTML5\'s XHTML serialization, never set the MIME type to an XHTML MIME type with `<meta>`.\n \n* `"refresh"` \n This instruction specifies:\n * The number of seconds until the page should be reloaded - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer.\n * The number of seconds until the page should redirect to another - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer followed by the string \'`;url=`\', and a valid URL.\n* `"set-cookie"` \n Defines a [cookie](https://developer.mozilla.org/en-US/docs/cookie) for the page. Its content must follow the syntax defined in the [IETF HTTP Cookie Specification](https://tools.ietf.org/html/draft-ietf-httpstate-cookie-14).\n \n **Warning:** Do not use this instruction, as it is obsolete. Use the HTTP header [`Set-Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) instead.'}},{name:"content",description:{kind:"markdown",value:"This attribute contains the value for the [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-name) attribute, depending on which is used."}},{name:"charset",description:{kind:"markdown",value:'This attribute declares the page\'s character encoding. It must contain a [standard IANA MIME name for character encodings](https://www.iana.org/assignments/character-sets). Although the standard doesn\'t request a specific encoding, it suggests:\n\n* Authors are encouraged to use [`UTF-8`](https://developer.mozilla.org/en-US/docs/Glossary/UTF-8).\n* Authors should not use ASCII-incompatible encodings to avoid security risk: browsers not supporting them may interpret harmful content as HTML. This happens with the `JIS_C6226-1983`, `JIS_X0212-1990`, `HZ-GB-2312`, `JOHAB`, the ISO-2022 family and the EBCDIC family.\n\n**Note:** ASCII-incompatible encodings are those that don\'t map the 8-bit code points `0x20` to `0x7E` to the `0x0020` to `0x007E` Unicode code points)\n\n* Authors **must not** use `CESU-8`, `UTF-7`, `BOCU-1` and/or `SCSU` as [cross-site scripting](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting) attacks with these encodings have been demonstrated.\n* Authors should not use `UTF-32` because not all HTML5 encoding algorithms can distinguish it from `UTF-16`.\n\n**Notes:**\n\n* The declared character encoding must match the one the page was saved with to avoid garbled characters and security holes.\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element declaring the encoding must be inside the [`<head>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head "The HTML <head> element provides general information (metadata) about the document, including its title and links to its\xa0scripts and style sheets.") element and **within the first 1024 bytes** of the HTML as some browsers only look at those bytes before choosing an encoding.\n* This [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element is only one part of the [algorithm to determine a page\'s character set](https://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#encoding-sniffing-algorithm "Algorithm charset page"). The [`Content-Type` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) and any [Byte-Order Marks](https://developer.mozilla.org/en-US/docs/Glossary/Byte-Order_Mark "The definition of that term (Byte-Order Marks) has not been written yet; please consider contributing it!") override this element.\n* It is strongly recommended to define the character encoding. If a page\'s encoding is undefined, cross-scripting techniques are possible, such as the [`UTF-7` fallback cross-scripting technique](https://code.google.com/p/doctype-mirror/wiki/ArticleUtf7).\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element with a `charset` attribute is a synonym for the pre-HTML5 `<meta http-equiv="Content-Type" content="text/html; charset=_IANAcharset_">`, where _`IANAcharset`_ contains the value of the equivalent [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute. This syntax is still allowed, although no longer recommended.'}},{name:"scheme",description:"This attribute defines the scheme in which metadata is described. A scheme is a context leading to the correct interpretations of the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) value, like a format.\n\n**Warning:** Do not use this value, as it is obsolete. There is no replacement as there was no real usage for it."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/meta"}]},{name:"style",description:{kind:"markdown",value:"The style element allows authors to embed style information in their documents. The style element is one of several inputs to the styling processing model. The element does not represent content for the user."},attributes:[{name:"media",description:{kind:"markdown",value:"This attribute defines which media the style should be applied to. Its value is a [media query](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries), which defaults to `all` if the attribute is missing."}},{name:"nonce",description:{kind:"markdown",value:"A cryptographic nonce (number used once) used to whitelist inline styles in a [style-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource\u2019s policy is otherwise trivial."}},{name:"type",description:{kind:"markdown",value:"This attribute defines the styling language as a MIME type (charset should not be specified). This attribute is optional and defaults to `text/css` if it is not specified \u2014 there is very little reason to include this in modern web documents."}},{name:"scoped",valueSet:"v"},{name:"title",description:"This attribute specifies [alternative style sheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets) sets."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/style"}]},{name:"body",description:{kind:"markdown",value:"The body element represents the content of the document."},attributes:[{name:"onafterprint",description:{kind:"markdown",value:"Function to call after the user has printed the document."}},{name:"onbeforeprint",description:{kind:"markdown",value:"Function to call when the user requests printing of the document."}},{name:"onbeforeunload",description:{kind:"markdown",value:"Function to call when the document is about to be unloaded."}},{name:"onhashchange",description:{kind:"markdown",value:"Function to call when the fragment identifier part (starting with the hash (`'#'`) character) of the document's current address has changed."}},{name:"onlanguagechange",description:{kind:"markdown",value:"Function to call when the preferred languages changed."}},{name:"onmessage",description:{kind:"markdown",value:"Function to call when the document has received a message."}},{name:"onoffline",description:{kind:"markdown",value:"Function to call when network communication has failed."}},{name:"ononline",description:{kind:"markdown",value:"Function to call when network communication has been restored."}},{name:"onpagehide"},{name:"onpageshow"},{name:"onpopstate",description:{kind:"markdown",value:"Function to call when the user has navigated session history."}},{name:"onstorage",description:{kind:"markdown",value:"Function to call when the storage area has changed."}},{name:"onunload",description:{kind:"markdown",value:"Function to call when the document is going away."}},{name:"alink",description:'Color of text for hyperlinks when selected. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:active`](https://developer.mozilla.org/en-US/docs/Web/CSS/:active "The :active CSS pseudo-class represents an element (such as a button) that is being activated by the user.") pseudo-class instead._'},{name:"background",description:'URI of a image to use as a background. _This method is non-conforming, use CSS [`background`](https://developer.mozilla.org/en-US/docs/Web/CSS/background "The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method.") property on the element instead._'},{name:"bgcolor",description:'Background color for the document. _This method is non-conforming, use CSS [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property on the element instead._'},{name:"bottommargin",description:'The margin of the bottom of the body. _This method is non-conforming, use CSS [`margin-bottom`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom "The margin-bottom CSS property sets the margin area on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"leftmargin",description:'The margin of the left of the body. _This method is non-conforming, use CSS [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"link",description:'Color of text for unvisited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:link`](https://developer.mozilla.org/en-US/docs/Web/CSS/:link "The :link CSS pseudo-class represents an element that has not yet been visited. It matches every unvisited <a>, <area>, or <link> element that has an href attribute.") pseudo-class instead._'},{name:"onblur",description:"Function to call when the document loses focus."},{name:"onerror",description:"Function to call when the document fails to load properly."},{name:"onfocus",description:"Function to call when the document receives focus."},{name:"onload",description:"Function to call when the document has finished loading."},{name:"onredo",description:"Function to call when the user has moved forward in undo transaction history."},{name:"onresize",description:"Function to call when the document has been resized."},{name:"onundo",description:"Function to call when the user has moved backward in undo transaction history."},{name:"rightmargin",description:'The margin of the right of the body. _This method is non-conforming, use CSS [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"text",description:'Foreground color of text. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property on the element instead._'},{name:"topmargin",description:'The margin of the top of the body. _This method is non-conforming, use CSS [`margin-top`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top "The margin-top CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"vlink",description:'Color of text for visited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:visited`](https://developer.mozilla.org/en-US/docs/Web/CSS/:visited "The :visited CSS pseudo-class represents links that the user has already visited. For privacy reasons, the styles that can be modified using this selector are very limited.") pseudo-class instead._'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/body"}]},{name:"article",description:{kind:"markdown",value:"The article element represents a complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content. Each article should be identified, typically by including a heading (h1\u2013h6 element) as a child of the article element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/article"}]},{name:"section",description:{kind:"markdown",value:"The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content. Each section should be identified, typically by including a heading ( h1- h6 element) as a child of the section element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/section"}]},{name:"nav",description:{kind:"markdown",value:"The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/nav"}]},{name:"aside",description:{kind:"markdown",value:"The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/aside"}]},{name:"h1",description:{kind:"markdown",value:"The h1 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h2",description:{kind:"markdown",value:"The h2 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h3",description:{kind:"markdown",value:"The h3 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h4",description:{kind:"markdown",value:"The h4 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h5",description:{kind:"markdown",value:"The h5 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h6",description:{kind:"markdown",value:"The h6 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"header",description:{kind:"markdown",value:"The header element represents introductory content for its nearest ancestor sectioning content or sectioning root element. A header typically contains a group of introductory or navigational aids. When the nearest ancestor sectioning content or sectioning root element is the body element, then it applies to the whole page."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/header"}]},{name:"footer",description:{kind:"markdown",value:"The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/footer"}]},{name:"address",description:{kind:"markdown",value:"The address element represents the contact information for its nearest article or body element ancestor. If that is the body element, then the contact information applies to the document as a whole."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/address"}]},{name:"p",description:{kind:"markdown",value:"The p element represents a paragraph."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/p"}]},{name:"hr",description:{kind:"markdown",value:"The hr element represents a paragraph-level thematic break, e.g. a scene change in a story, or a transition to another topic within a section of a reference book."},attributes:[{name:"align",description:"Sets the alignment of the rule on the page. If no value is specified, the default value is `left`."},{name:"color",description:"Sets the color of the rule through color name or hexadecimal value."},{name:"noshade",description:"Sets the rule to have no shading."},{name:"size",description:"Sets the height, in pixels, of the rule."},{name:"width",description:"Sets the length of the rule on the page through a pixel or percentage value."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/hr"}]},{name:"pre",description:{kind:"markdown",value:"The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements."},attributes:[{name:"cols",description:'Contains the _preferred_ count of characters that a line should have. It was a non-standard synonym of [`width`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre#attr-width). To achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'},{name:"width",description:'Contains the _preferred_ count of characters that a line should have. Though technically still implemented, this attribute has no visual effect; to achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'},{name:"wrap",description:'Is a _hint_ indicating how the overflow must happen. In modern browser this hint is ignored and no visual effect results in its present; to achieve such an effect, use CSS [`white-space`](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space "The white-space CSS property sets how white space inside an element is handled.") instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/pre"}]},{name:"blockquote",description:{kind:"markdown",value:"The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations."},attributes:[{name:"cite",description:{kind:"markdown",value:"A URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/blockquote"}]},{name:"ol",description:{kind:"markdown",value:"The ol element represents a list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the document."},attributes:[{name:"reversed",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute specifies that the items of the list are specified in reversed order."}},{name:"start",description:{kind:"markdown",value:'This integer attribute specifies the start value for numbering the individual list items. Although the ordering type of list elements might be Roman numerals, such as XXXI, or letters, the value of start is always represented as a number. To start numbering elements from the letter "C", use `<ol start="3">`.\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.'}},{name:"type",valueSet:"lt",description:{kind:"markdown",value:"Indicates the numbering type:\n\n* `'a'` indicates lowercase letters,\n* `'A'` indicates uppercase letters,\n* `'i'` indicates lowercase Roman numerals,\n* `'I'` indicates uppercase Roman numerals,\n* and `'1'` indicates numbers (default).\n\nThe type set is used for the entire list unless a different [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li#attr-type) attribute is used within an enclosed [`<li>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li \"The HTML <li> element is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.\") element.\n\n**Note:** This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\nUnless the value of the list number matters (e.g. in legal or technical documents where items are to be referenced by their number/letter), the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type \"The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.\") property should be used instead."}},{name:"compact",description:'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Warning:** Do not use this attribute, as it has been deprecated: the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give an effect similar to the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [`line-height`](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height "The line-height CSS property sets the amount of space used for lines, such as in text. On block-level elements, it specifies the minimum height of line boxes within the element. On non-replaced inline elements, it specifies the height that is used to calculate line box height.") can be used with a value of `80%`.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ol"}]},{name:"ul",description:{kind:"markdown",value:"The ul element represents a list of items, where the order of the items is not important \u2014 that is, where changing the order would not materially change the meaning of the document."},attributes:[{name:"compact",description:'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Usage note:\xa0**Do not use this attribute, as it has been deprecated: the [`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give a similar effect as the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [line-height](https://developer.mozilla.org/en-US/docs/CSS/line-height) can be used with a value of `80%`.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ul"}]},{name:"li",description:{kind:"markdown",value:"The li element represents a list item. If its parent element is an ol, ul, or menu element, then the element is an item of the parent element's list, as defined for those elements. Otherwise, the list item has no defined list-related relationship to any other li element."},attributes:[{name:"value",description:{kind:"markdown",value:'This integer attribute indicates the current ordinal value of the list item as defined by the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element. The only allowed value for this attribute is a number, even if the list is displayed with Roman numerals or letters. List items that follow this one continue numbering from the value set. The **value** attribute has no meaning for unordered lists ([`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.")) or for menus ([`<menu>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.")).\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\n**Note:** Prior to Gecko\xa09.0, negative values were incorrectly converted to 0. Starting in Gecko\xa09.0 all integer values are correctly parsed.'}},{name:"type",description:'This character attribute indicates the numbering type:\n\n* `a`: lowercase letters\n* `A`: uppercase letters\n* `i`: lowercase Roman numerals\n* `I`: uppercase Roman numerals\n* `1`: numbers\n\nThis type overrides the one used by its parent [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element, if any.\n\n**Usage note:** This attribute has been deprecated: use the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type "The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.") property instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/li"}]},{name:"dl",description:{kind:"markdown",value:"The dl element represents an association list consisting of zero or more name-value groups (a description list). A name-value group consists of one or more names (dt elements) followed by one or more values (dd elements), ignoring any nodes other than dt and dd elements. Within a single dl element, there should not be more than one dt element for each name."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dl"}]},{name:"dt",description:{kind:"markdown",value:"The dt element represents the term, or name, part of a term-description group in a description list (dl element)."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dt"}]},{name:"dd",description:{kind:"markdown",value:"The dd element represents the description, definition, or value, part of a term-description group in a description list (dl element)."},attributes:[{name:"nowrap",description:"If the value of this attribute is set to `yes`, the definition text will not wrap. The default value is `no`."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dd"}]},{name:"figure",description:{kind:"markdown",value:"The figure element represents some flow content, optionally with a caption, that is self-contained (like a complete sentence) and is typically referenced as a single unit from the main flow of the document."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/figure"}]},{name:"figcaption",description:{kind:"markdown",value:"The figcaption element represents a caption or legend for the rest of the contents of the figcaption element's parent figure element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/figcaption"}]},{name:"main",description:{kind:"markdown",value:"The main element represents the main content of the body of a document or application. The main content area consists of content that is directly related to or expands upon the central topic of a document or central functionality of an application."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/main"}]},{name:"div",description:{kind:"markdown",value:"The div element has no special meaning at all. It represents its children. It can be used with the class, lang, and title attributes to mark up semantics common to a group of consecutive elements."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/div"}]},{name:"a",description:{kind:"markdown",value:"If the a element has an href attribute, then it represents a hyperlink (a hypertext anchor) labeled by its contents."},attributes:[{name:"href",description:{kind:"markdown",value:"Contains a URL or a URL fragment that the hyperlink points to."}},{name:"target",description:{kind:"markdown",value:'Specifies where to display the linked URL. It is a name of, or keyword for, a _browsing context_: a tab, window, or `<iframe>`. The following keywords have special meanings:\n\n* `_self`: Load the URL into the same browsing context as the current one. This is the default behavior.\n* `_blank`: Load the URL into a new browsing context. This is usually a tab, but users can configure browsers to use new windows instead.\n* `_parent`: Load the URL into the parent browsing context of the current one. If there is no parent, this behaves the same way as `_self`.\n* `_top`: Load the URL into the top-level browsing context (that is, the "highest" browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this behaves the same way as `_self`.\n\n**Note:** When using `target`, consider adding `rel="noreferrer"` to avoid exploitation of the `window.opener` API.\n\n**Note:** Linking to another page using `target="_blank"` will run the new page on the same process as your page. If the new page is executing expensive JS, your page\'s performance may suffer. To avoid this use `rel="noopener"`.'}},{name:"download",description:{kind:"markdown",value:"This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. If the attribute has a value, it is used as the pre-filled file name in the Save prompt (the user can still change the file name if they want). There are no restrictions on allowed values, though `/` and `\\` are converted to underscores. Most file systems limit some punctuation in file names, and browsers will adjust the suggested name accordingly.\n\n**Notes:**\n\n* This attribute only works for [same-origin URLs](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy).\n* Although HTTP(s) URLs need to be in the same-origin, [`blob:` URLs](https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL) and [`data:` URLs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) are allowed so that content generated by JavaScript, such as pictures created in an image-editor Web app, can be downloaded.\n* If the HTTP header [`Content-Disposition:`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) gives a different filename than this attribute, the HTTP header takes priority over this attribute.\n* If `Content-Disposition:` is set to `inline`, Firefox prioritizes `Content-Disposition`, like the filename case, while Chrome prioritizes the `download` attribute."}},{name:"ping",description:{kind:"markdown",value:'Contains a space-separated list of URLs to which, when the hyperlink is followed, [`POST`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST "The HTTP POST method sends data to the server. The type of the body of the request is indicated by the Content-Type header.") requests with the body `PING` will be sent by the browser (in the background). Typically used for tracking.'}},{name:"rel",description:{kind:"markdown",value:"Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"hreflang",description:{kind:"markdown",value:'This attribute indicates the human language of the linked resource. It is purely advisory, with no built-in functionality. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt "Tags for Identifying Languages").'}},{name:"type",description:{kind:"markdown",value:'Specifies the media type in the form of a [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type "MIME type: A\xa0MIME type\xa0(now properly called "media type", but\xa0also sometimes "content type") is a string sent along\xa0with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled\xa0audio/ogg, or an image file\xa0image/png).") for the linked URL. It is purely advisory, with no built-in functionality.'}},{name:"referrerpolicy",description:"Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) to send when fetching the URL:\n\n* `'no-referrer'` means the `Referer:` header will not be sent.\n* `'no-referrer-when-downgrade'` means no `Referer:` header will be sent when navigating to an origin without HTTPS. This is the default behavior.\n* `'origin'` means the referrer will be the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the page, not including information after the domain.\n* `'origin-when-cross-origin'` meaning that navigations to other origins will be limited to the scheme, the host and the port, while navigations on the same origin will include the referrer's path.\n* `'strict-origin-when-cross-origin'`\n* `'unsafe-url'` means the referrer will include the origin and path, but not the fragment, password, or username. This is unsafe because it can leak data from secure URLs to insecure ones."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/a"}]},{name:"em",description:{kind:"markdown",value:"The em element represents stress emphasis of its contents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/em"}]},{name:"strong",description:{kind:"markdown",value:"The strong element represents strong importance, seriousness, or urgency for its contents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/strong"}]},{name:"small",description:{kind:"markdown",value:"The small element represents side comments such as small print."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/small"}]},{name:"s",description:{kind:"markdown",value:"The s element represents contents that are no longer accurate or no longer relevant."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/s"}]},{name:"cite",description:{kind:"markdown",value:"The cite element represents a reference to a creative work. It must include the title of the work or the name of the author(person, people or organization) or an URL reference, or a reference in abbreviated form as per the conventions used for the addition of citation metadata."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/cite"}]},{name:"q",description:{kind:"markdown",value:"The q element represents some phrasing content quoted from another source."},attributes:[{name:"cite",description:{kind:"markdown",value:"The value of this attribute is a URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/q"}]},{name:"dfn",description:{kind:"markdown",value:"The dfn element represents the defining instance of a term. The paragraph, description list group, or section that is the nearest ancestor of the dfn element must also contain the definition(s) for the term given by the dfn element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dfn"}]},{name:"abbr",description:{kind:"markdown",value:"The abbr element represents an abbreviation or acronym, optionally with its expansion. The title attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/abbr"}]},{name:"ruby",description:{kind:"markdown",value:"The ruby element allows one or more spans of phrasing content to be marked with ruby annotations. Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation or to include other annotations. In Japanese, this form of typography is also known as furigana. Ruby text can appear on either side, and sometimes both sides, of the base text, and it is possible to control its position using CSS. A more complete introduction to ruby can be found in the Use Cases & Exploratory Approaches for Ruby Markup document as well as in CSS Ruby Module Level 1. [RUBY-UC] [CSSRUBY]"},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ruby"}]},{name:"rb",description:{kind:"markdown",value:"The rb element marks the base text component of a ruby annotation. When it is the child of a ruby element, it doesn't represent anything itself, but its parent ruby element uses it as part of determining what it represents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rb"}]},{name:"rt",description:{kind:"markdown",value:"The rt element marks the ruby text component of a ruby annotation. When it is the child of a ruby element or of an rtc element that is itself the child of a ruby element, it doesn't represent anything itself, but its ancestor ruby element uses it as part of determining what it represents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rt"}]},{name:"rp",description:{kind:"markdown",value:"The rp element is used to provide fallback text to be shown by user agents that don't support ruby annotations. One widespread convention is to provide parentheses around the ruby text component of a ruby annotation."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rp"}]},{name:"time",description:{kind:"markdown",value:"The time element represents its contents, along with a machine-readable form of those contents in the datetime attribute. The kind of content is limited to various kinds of dates, times, time-zone offsets, and durations, as described below."},attributes:[{name:"datetime",description:{kind:"markdown",value:"This attribute indicates the time and/or date of the element and must be in one of the formats described below."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/time"}]},{name:"code",description:{kind:"markdown",value:"The code element represents a fragment of computer code. This could be an XML element name, a file name, a computer program, or any other string that a computer would recognize."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/code"}]},{name:"var",description:{kind:"markdown",value:"The var element represents a variable. This could be an actual variable in a mathematical expression or programming context, an identifier representing a constant, a symbol identifying a physical quantity, a function parameter, or just be a term used as a placeholder in prose."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/var"}]},{name:"samp",description:{kind:"markdown",value:"The samp element represents sample or quoted output from another program or computing system."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/samp"}]},{name:"kbd",description:{kind:"markdown",value:"The kbd element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands)."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/kbd"}]},{name:"sub",description:{kind:"markdown",value:"The sub element represents a subscript."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/sub"}]},{name:"sup",description:{kind:"markdown",value:"The sup element represents a superscript."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/sup"}]},{name:"i",description:{kind:"markdown",value:"The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, transliteration, a thought, or a ship name in Western texts."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/i"}]},{name:"b",description:{kind:"markdown",value:"The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/b"}]},{name:"u",description:{kind:"markdown",value:"The u element represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/u"}]},{name:"mark",description:{kind:"markdown",value:"The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. When used in a quotation or other block of text referred to from the prose, it indicates a highlight that was not originally present but which has been added to bring the reader's attention to a part of the text that might not have been considered important by the original author when the block was originally written, but which is now under previously unexpected scrutiny. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its likely relevance to the user's current activity."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/mark"}]},{name:"bdi",description:{kind:"markdown",value:"The bdi element represents a span of text that is to be isolated from its surroundings for the purposes of bidirectional text formatting. [BIDI]"},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/bdi"}]},{name:"bdo",description:{kind:"markdown",value:"The bdo element represents explicit text directionality formatting control for its children. It allows authors to override the Unicode bidirectional algorithm by explicitly specifying a direction override. [BIDI]"},attributes:[{name:"dir",description:"The direction in which text should be rendered in this element's contents. Possible values are:\n\n* `ltr`: Indicates that the text should go in a left-to-right direction.\n* `rtl`: Indicates that the text should go in a right-to-left direction."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/bdo"}]},{name:"span",description:{kind:"markdown",value:"The span element doesn't mean anything on its own, but can be useful when used together with the global attributes, e.g. class, lang, or dir. It represents its children."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/span"}]},{name:"br",description:{kind:"markdown",value:"The br element represents a line break."},attributes:[{name:"clear",description:"Indicates where to begin the next line after the break."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/br"}]},{name:"wbr",description:{kind:"markdown",value:"The wbr element represents a line break opportunity."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/wbr"}]},{name:"ins",description:{kind:"markdown",value:"The ins element represents an addition to the document."},attributes:[{name:"cite",description:"This attribute defines the URI of a resource that explains the change, such as a link to meeting minutes or a ticket in a troubleshooting system."},{name:"datetime",description:'This attribute indicates the time and date of the change and must be a valid date with an optional time string. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ins"}]},{name:"del",description:{kind:"markdown",value:"The del element represents a removal from the document."},attributes:[{name:"cite",description:{kind:"markdown",value:"A URI for a resource that explains the change (for example, meeting minutes)."}},{name:"datetime",description:{kind:"markdown",value:'This attribute indicates the time and date of the change and must be a valid date string with an optional time. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/del"}]},{name:"picture",description:{kind:"markdown",value:"The picture element is a container which provides multiple sources to its contained img element to allow authors to declaratively control or give hints to the user agent about which image resource to use, based on the screen pixel density, viewport size, image format, and other factors. It represents its children."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/picture"}]},{name:"img",description:{kind:"markdown",value:"An img element represents an image."},attributes:[{name:"alt",description:{kind:"markdown",value:'This attribute defines an alternative text description of the image.\n\n**Note:** Browsers do not always display the image referenced by the element. This is the case for non-graphical browsers (including those used by people with visual impairments), if the user chooses not to display images, or if the browser cannot display the image because it is invalid or an [unsupported type](#Supported_image_formats). In these cases, the browser may replace the image with the text defined in this element\'s `alt` attribute. You should, for these reasons and others, provide a useful value for `alt` whenever possible.\n\n**Note:** Omitting this attribute altogether indicates that the image is a key part of the content, and no textual equivalent is available. Setting this attribute to an empty string (`alt=""`) indicates that this image is _not_ a key part of the content (decorative), and that non-visual browsers may omit it from rendering.'}},{name:"src",description:{kind:"markdown",value:"The image URL. This attribute is mandatory for the `<img>` element. On browsers supporting `srcset`, `src` is treated like a candidate image with a pixel density descriptor `1x` unless an image with this pixel density descriptor is already defined in `srcset,` or unless `srcset` contains '`w`' descriptors."}},{name:"srcset",description:{kind:"markdown",value:"A list of one or more strings separated by commas indicating a set of possible image sources for the user agent to use. Each string is composed of:\n\n1. a URL to an image,\n2. optionally, whitespace followed by one of:\n * A width descriptor, or a positive integer directly followed by '`w`'. The width descriptor is divided by the source size given in the `sizes` attribute to calculate the effective pixel density.\n * A pixel density descriptor, which is a positive floating point number directly followed by '`x`'.\n\nIf no descriptor is specified, the source is assigned the default descriptor: `1x`.\n\nIt is incorrect to mix width descriptors and pixel density descriptors in the same `srcset` attribute. Duplicate descriptors (for instance, two sources in the same `srcset` which are both described with '`2x`') are also invalid.\n\nThe user agent selects any one of the available sources at its discretion. This provides them with significant leeway to tailor their selection based on things like user preferences or bandwidth conditions. See our [Responsive images](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images) tutorial for an example."}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates if the fetching of the related image must be done using CORS or not. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being "[tainted](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image#What_is_a_tainted_canvas)." The allowed values are:'}},{name:"usemap",description:{kind:"markdown",value:'The partial URL (starting with \'#\') of an [image map](https://developer.mozilla.org/en-US/docs/HTML/Element/map) associated with the element.\n\n**Note:** You cannot use this attribute if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") element.'}},{name:"ismap",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the image is part of a server-side map. If so, the precise coordinates of a click are sent to the server.\n\n**Note:** This attribute is allowed only if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") element with a valid [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute.'}},{name:"width",description:{kind:"markdown",value:"The intrinsic width of the image in pixels."}},{name:"height",description:{kind:"markdown",value:"The intrinsic height of the image in pixels."}},{name:"decoding",description:"Provides an image decoding hint to the browser. The allowed values are:"},{name:"decoding",description:"`sync`\n\nDecode the image synchronously for atomic presentation with other content.\n\n`async`\n\nDecode the image asynchronously to reduce delay in presenting other content.\n\n`auto`\n\nDefault mode, which indicates no preference for the decoding mode. The browser decides what is best for the user."},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:"`auto`: Indicates\xa0**no\xa0preference**. The browser may use its own heuristics to decide the priority of the image.\n\n`high`: Indicates to the\xa0browser\xa0that the image is of\xa0**high** priority.\n\n`low`:\xa0Indicates to the\xa0browser\xa0that the image is of\xa0**low** priority."},{name:"intrinsicsize",description:"This attribute tells the browser to ignore the actual intrinsic size of the image and pretend it\u2019s the size specified in the attribute. Specifically, the image would raster at these dimensions and `naturalWidth`/`naturalHeight` on images would return the values specified in this attribute. [Explainer](https://github.com/ojanvafai/intrinsicsize-attribute), [examples](https://googlechrome.github.io/samples/intrinsic-size/index.html)"},{name:"referrerpolicy",description:"A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer:` The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer \"The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.\") header will not be sent.\n* `no-referrer-when-downgrade:` No `Referer` header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior if no policy is otherwise specified.\n* `origin:` The `Referer` header will include the page of origin's scheme, the host, and the port.\n* `origin-when-cross-origin:` Navigating to other origins will limit the included referral data to the scheme, the host and the port, while navigating from the same origin will include the referrer's full path.\n* `unsafe-url:` The `Referer` header will include the origin and the path, but not the fragment, password, or username. This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins."},{name:"sizes",description:"A list of one or more strings separated by commas indicating a set of source sizes. Each source size consists of:\n\n1. a media condition. This must be omitted for the last item.\n2. a source size value.\n\nSource size values specify the intended display size of the image. User agents use the current source size to select one of the sources supplied by the `srcset` attribute, when those sources are described using width ('`w`') descriptors. The selected source size affects the intrinsic size of the image (the image\u2019s display size if no CSS styling is applied). If the `srcset` attribute is absent, or contains no values with a width (`w`) descriptor, then the `sizes` attribute has no effect."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/img"}]},{name:"iframe",description:{kind:"markdown",value:"The iframe element represents a nested browsing context."},attributes:[{name:"src",description:{kind:"markdown",value:'The URL of the page to embed. Use a value of `about:blank` to embed an empty page that conforms to the [same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#Inherited_origins). Also note that programatically removing an `<iframe>`\'s src attribute (e.g. via [`Element.removeAttribute()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttribute "The Element method removeAttribute() removes the attribute with the specified name from the element.")) causes `about:blank` to be loaded in the frame in Firefox (from version 65), Chromium-based browsers, and Safari/iOS.'}},{name:"srcdoc",description:{kind:"markdown",value:"Inline HTML to embed, overriding the `src` attribute. If a browser does not support the `srcdoc` attribute, it will fall back to the URL in the `src` attribute."}},{name:"name",description:{kind:"markdown",value:'A targetable name for the embedded browsing context. This can be used in the `target` attribute of the [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL."), [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server."), or [`<base>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base "The HTML <base> element specifies the base URL to use for all relative URLs contained within a document. There can be only one <base> element in a document.") elements; the `formtarget` attribute of the [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") elements; or the `windowName` parameter in the [`window.open()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/open "The\xa0Window interface\'s open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name. If the name doesn\'t exist, then a new window is opened and the specified resource is loaded into its browsing context.") method.'}},{name:"sandbox",valueSet:"sb",description:{kind:"markdown",value:'Applies extra restrictions to the content in the frame. The value of the attribute can either be empty to apply all restrictions, or space-separated tokens to lift particular restrictions:\n\n* `allow-forms`: Allows the resource to submit forms. If this keyword is not used, form submission is blocked.\n* `allow-modals`: Lets the resource [open modal windows](https://html.spec.whatwg.org/multipage/origin.html#sandboxed-modals-flag).\n* `allow-orientation-lock`: Lets the resource [lock the screen orientation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation).\n* `allow-pointer-lock`: Lets the resource use the [Pointer Lock API](https://developer.mozilla.org/en-US/docs/WebAPI/Pointer_Lock).\n* `allow-popups`: Allows popups (such as `window.open()`, `target="_blank"`, or `showModalDialog()`). If this keyword is not used, the popup will silently fail to open.\n* `allow-popups-to-escape-sandbox`: Lets the sandboxed document open new windows without those windows inheriting the sandboxing. For example, this can safely sandbox an advertisement without forcing the same restrictions upon the page the ad links to.\n* `allow-presentation`: Lets the resource start a [presentation session](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest).\n* `allow-same-origin`: If this token is not used, the resource is treated as being from a special origin that always fails the [same-origin policy](https://developer.mozilla.org/en-US/docs/Glossary/same-origin_policy "same-origin policy: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin.").\n* `allow-scripts`: Lets the resource run scripts (but not create popup windows).\n* `allow-storage-access-by-user-activation` : Lets the resource request access to the parent\'s storage capabilities with the [Storage Access API](https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API).\n* `allow-top-navigation`: Lets the resource navigate the top-level browsing context (the one named `_top`).\n* `allow-top-navigation-by-user-activation`: Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture.\n\n**Notes about sandboxing:**\n\n* When the embedded document has the same origin as the embedding page, it is **strongly discouraged** to use both `allow-scripts` and `allow-same-origin`, as that lets the embedded document remove the `sandbox` attribute \u2014 making it no more secure than not using the `sandbox` attribute at all.\n* Sandboxing is useless if the attacker can display content outside a sandboxed `iframe` \u2014 such as if the viewer opens the frame in a new tab. Such content should be also served from a _separate origin_ to limit potential damage.\n* The `sandbox` attribute is unsupported in Internet Explorer 9 and earlier.'}},{name:"seamless",valueSet:"v"},{name:"allowfullscreen",valueSet:"v",description:{kind:"markdown",value:'Set to `true` if the `<iframe>` can activate fullscreen mode by calling the [`requestFullscreen()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen "The Element.requestFullscreen() method issues an asynchronous request to make the element be displayed in full-screen mode.") method.'}},{name:"width",description:{kind:"markdown",value:"The width of the frame in CSS pixels. Default is `300`."}},{name:"height",description:{kind:"markdown",value:"The height of the frame in CSS pixels. Default is `150`."}},{name:"allow",description:"Specifies a [feature policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Feature_Policy) for the `<iframe>`."},{name:"allowpaymentrequest",description:"Set to `true` if a cross-origin `<iframe>` should be allowed to invoke the [Payment Request API](https://developer.mozilla.org/en-US/docs/Web/API/Payment_Request_API)."},{name:"allowpaymentrequest",description:'This attribute is considered a legacy attribute and redefined as `allow="payment"`.'},{name:"csp",description:'A [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) enforced for the embedded resource. See [`HTMLIFrameElement.csp`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/csp "The csp property of the HTMLIFrameElement interface specifies the Content Security Policy that an embedded document must agree to enforce upon itself.") for details.'},{name:"importance",description:"The download priority of the resource in the `<iframe>`'s `src` attribute. Allowed values:\n\n`auto` (default)\n\nNo preference. The browser uses its own heuristics to decide the priority of the resource.\n\n`high`\n\nThe resource should be downloaded before other lower-priority page resources.\n\n`low`\n\nThe resource should be downloaded after other higher-priority page resources."},{name:"referrerpolicy",description:'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the frame\'s resource:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (HTTPS\u2192HTTPS), but don\'t send it to a less secure destination (HTTPS\u2192HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (HTTPS\u2192HTTPS), and send no header to a less secure destination (HTTPS\u2192HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/iframe"}]},{name:"embed",description:{kind:"markdown",value:"The embed element provides an integration point for an external (typically non-HTML) application or interactive content."},attributes:[{name:"src",description:{kind:"markdown",value:"The URL\xa0of the resource being embedded."}},{name:"type",description:{kind:"markdown",value:"The MIME\xa0type to use to select the plug-in to instantiate."}},{name:"width",description:{kind:"markdown",value:"The displayed width of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}},{name:"height",description:{kind:"markdown",value:"The displayed height of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/embed"}]},{name:"object",description:{kind:"markdown",value:"The object element can represent an external resource, which, depending on the type of the resource, will either be treated as an image, as a nested browsing context, or as an external resource to be processed by a plugin."},attributes:[{name:"data",description:{kind:"markdown",value:"The address of the resource as a valid URL. At least one of **data** and **type** must be defined."}},{name:"type",description:{kind:"markdown",value:"The [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource specified by **data**. At least one of **data** and **type** must be defined."}},{name:"typemustmatch",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates if the **type** attribute and the actual [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource must match to be used."}},{name:"name",description:{kind:"markdown",value:"The name of valid browsing context (HTML5), or the name of the control (HTML 4)."}},{name:"usemap",description:{kind:"markdown",value:"A hash-name reference to a [`<map>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map \"The HTML <map> element is used with <area> elements to define an image map (a clickable link area).\") element; that is a '#' followed by the value of a [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map#attr-name) of a map element."}},{name:"form",description:{kind:"markdown",value:'The form element, if any, that the object element is associated with (its _form owner_). The value of the attribute must be an ID of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document.'}},{name:"width",description:{kind:"markdown",value:"The width of the display resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}},{name:"height",description:{kind:"markdown",value:"The height of the displayed resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}},{name:"archive",description:"A space-separated list of URIs for archives of resources for the object."},{name:"border",description:"The width of a border around the control, in pixels."},{name:"classid",description:"The URI of the object's implementation. It can be used together with, or in place of, the **data** attribute."},{name:"codebase",description:"The base path used to resolve relative URIs specified by **classid**, **data**, or **archive**. If not specified, the default is the base URI of the current document."},{name:"codetype",description:"The content type of the data specified by **classid**."},{name:"declare",description:"The presence of this Boolean attribute makes this element a declaration only. The object must be instantiated by a subsequent `<object>` element. In HTML5, repeat the <object> element completely each that that the resource is reused."},{name:"standby",description:"A message that the browser can show while loading the object's implementation and data."},{name:"tabindex",description:"The position of the element in the tabbing navigation order for the current document."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/object"}]},{name:"param",description:{kind:"markdown",value:"The param element defines parameters for plugins invoked by object elements. It does not represent anything on its own."},attributes:[{name:"name",description:{kind:"markdown",value:"Name of the parameter."}},{name:"value",description:{kind:"markdown",value:"Specifies the value of the parameter."}},{name:"type",description:'Only used if the `valuetype` is set to "ref". Specifies the MIME type of values found at the URI specified by value.'},{name:"valuetype",description:'Specifies the type of the `value` attribute. Possible values are:\n\n* data: Default value. The value is passed to the object\'s implementation as a string.\n* ref: The value is a URI to a resource where run-time values are stored.\n* object: An ID of another [`<object>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object "The HTML <object> element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.") in the same document.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/param"}]},{name:"video",description:{kind:"markdown",value:"A video element is used for playing videos or movies, and audio files with captions."},attributes:[{name:"src"},{name:"crossorigin",valueSet:"xo"},{name:"poster"},{name:"preload",valueSet:"pl"},{name:"autoplay",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute; if specified, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data."}},{name:"mediagroup"},{name:"loop",valueSet:"v"},{name:"muted",valueSet:"v"},{name:"controls",valueSet:"v"},{name:"width"},{name:"height"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/video"}]},{name:"audio",description:{kind:"markdown",value:"An audio element represents a sound or audio stream."},attributes:[{name:"src",description:{kind:"markdown",value:'The URL of the audio to embed. This is subject to [HTTP access controls](https://developer.mozilla.org/en-US/docs/HTTP_access_control). This is optional; you may instead use the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element within the audio block to specify the audio to embed.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether to use CORS to fetch the related image. [CORS-enabled resources](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\nanonymous\n\nSends a cross-origin request without a credential. In other words, it sends the `Origin:` HTTP header without a cookie, X.509 certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (by not setting the `Access-Control-Allow-Origin:` HTTP header), the image will be _tainted_, and its usage restricted.\n\nuse-credentials\n\nSends a cross-origin request with a credential. In other words, it sends the `Origin:` HTTP header with a cookie, a certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (through `Access-Control-Allow-Credentials:` HTTP header), the image will be _tainted_ and its usage restricted.\n\nWhen not present, the resource is fetched without a CORS request (i.e. without sending the `Origin:` HTTP header), preventing its non-tainted used in [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") elements. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/HTML/CORS_settings_attributes) for additional information.'}},{name:"preload",valueSet:"pl",description:{kind:"markdown",value:"This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience. It may have one of the following values:\n\n* `none`: Indicates that the audio should not be preloaded.\n* `metadata`: Indicates that only audio metadata (e.g. length) is fetched.\n* `auto`: Indicates that the whole audio file can be downloaded, even if the user is not expected to use it.\n* _empty string_: A synonym of the `auto` value.\n\nIf not set, `preload`'s default value is browser-defined (i.e. each browser may have its own default value). The spec advises it to be set to `metadata`.\n\n**Usage notes:**\n\n* The `autoplay` attribute has precedence over\xa0`preload`. If `autoplay` is specified, the browser would obviously need to start downloading the audio for playback.\n* The browser is not forced by the specification to follow the value of this attribute; it is a mere hint."}},{name:"autoplay",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute:\xa0if specified, the audio will automatically begin playback as soon as it can do so, without waiting for the entire audio file to finish downloading.\n\n**Note**: Sites that automatically play audio (or videos with an audio track) can be an unpleasant experience for users, so should be avoided when possible. If you must offer autoplay functionality, you should make it opt-in (requiring a user to specifically enable it). However, this can be useful when creating media elements whose source will be set at a later time, under user control."}},{name:"mediagroup"},{name:"loop",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute:\xa0if specified, the audio player will\xa0automatically seek back to the start\xa0upon reaching the end of the audio."}},{name:"muted",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute that indicates whether the audio will be initially silenced. Its default value is `false`."}},{name:"controls",valueSet:"v",description:{kind:"markdown",value:"If this attribute is present, the browser will offer controls to allow the user to control audio playback, including volume, seeking, and pause/resume playback."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/audio"}]},{name:"source",description:{kind:"markdown",value:"The source element allows authors to specify multiple alternative media resources for media elements. It does not represent anything on its own."},attributes:[{name:"src",description:{kind:"markdown",value:'Required for [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element:\xa0the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") and [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document."), address of the media resource. The value of this attribute is ignored when the `<source>` element is placed inside a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}},{name:"type",description:{kind:"markdown",value:"The MIME-type of the resource, optionally with a `codecs` parameter. See [RFC 4281](https://tools.ietf.org/html/rfc4281) for information about how to specify codecs."}},{name:"sizes",description:'Is a list of source sizes that describes the final rendered width of the image represented by the source. Each source size consists of a comma-separated list of media condition-length pairs. This information is used by the browser to determine, before laying the page out, which image defined in [`srcset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-srcset) to use. \nThe `sizes` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'},{name:"srcset",description:"A list of one or more strings separated by commas indicating a set of possible images represented by the source for the browser to use. Each string is composed of:\n\n1. one URL to an image,\n2. a width descriptor, that is a positive integer directly followed by `'w'`. The default value, if missing, is the infinity.\n3. a pixel density descriptor, that is a positive floating number directly followed by `'x'`. The default value, if missing, is `1x`.\n\nEach string in the list must have at least a width descriptor or a pixel density descriptor to be valid. Among the list, there must be only one string containing the same tuple of width descriptor and pixel density descriptor. \nThe browser chooses the most adequate image to display at a given point of time. \nThe `srcset` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source \"The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.\") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture \"The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.\") element."},{name:"media",description:'[Media query](https://developer.mozilla.org/en-US/docs/CSS/Media_queries) of the resource\'s intended media; this should be used only in a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/source"}]},{name:"track",description:{kind:"markdown",value:"The track element allows authors to specify explicit external timed text tracks for media elements. It does not represent anything on its own."},attributes:[{name:"default",valueSet:"v",description:{kind:"markdown",value:"This attribute indicates that the track should be enabled unless the user's preferences indicate that another track is more appropriate. This may only be used on one `track` element per media element."}},{name:"kind",valueSet:"tk",description:{kind:"markdown",value:"How the text track is meant to be used. If omitted the default kind is `subtitles`. If the attribute is not present, it will use the `subtitles`. If the attribute contains an invalid value, it will use `metadata`. (Versions of Chrome earlier than 52 treated an invalid value as `subtitles`.)\xa0The following keywords are allowed:\n\n* `subtitles`\n * Subtitles provide translation of content that cannot be understood by the viewer. For example dialogue or text that is not English in an English language film.\n * Subtitles may contain additional content, usually extra background information. For example the text at the beginning of the Star Wars films, or the date, time, and location of a scene.\n* `captions`\n * Closed captions provide a transcription and possibly a translation of audio.\n * It may include important non-verbal information such as music cues or sound effects. It may indicate the cue's source (e.g. music, text, character).\n * Suitable for users who are deaf or when the sound is muted.\n* `descriptions`\n * Textual description of the video content.\n * Suitable for users who are blind or where the video cannot be seen.\n* `chapters`\n * Chapter titles are intended to be used when the user is navigating the media resource.\n* `metadata`\n * Tracks used by scripts. Not visible to the user."}},{name:"label",description:{kind:"markdown",value:"A user-readable title of the text track which is used by the browser when listing available text tracks."}},{name:"src",description:{kind:"markdown",value:'Address of the track (`.vtt` file). Must be a valid URL. This attribute must be specified and its URL value must have the same origin as the document \u2014 unless the [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element:\xa0the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") or [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document.") parent element of the `track` element has a [`crossorigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) attribute.'}},{name:"srclang",description:{kind:"markdown",value:"Language of the track text data. It must be a valid [BCP 47](https://r12a.github.io/app-subtags/) language tag. If the `kind` attribute is set to\xa0`subtitles,` then `srclang` must be defined."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/track"}]},{name:"map",description:{kind:"markdown",value:"The map element, in conjunction with an img element and any area element descendants, defines an image map. The element represents its children."},attributes:[{name:"name",description:{kind:"markdown",value:"The name attribute gives the map a name so that it can be referenced. The attribute must be present and must have a non-empty value with no space characters. The value of the name attribute must not be a compatibility-caseless match for the value of the name attribute of another map element in the same document. If the id attribute is also specified, both attributes must have the same value."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/map"}]},{name:"area",description:{kind:"markdown",value:"The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map."},attributes:[{name:"alt"},{name:"coords"},{name:"shape",valueSet:"sh"},{name:"href"},{name:"target"},{name:"download"},{name:"ping"},{name:"rel"},{name:"hreflang"},{name:"type"},{name:"accesskey",description:"Specifies a keyboard navigation accelerator for the element. Pressing ALT or a similar key in association with the specified character selects the form control correlated with that key sequence. Page designers are forewarned to avoid key sequences already bound to browsers. This attribute is global since HTML5."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/area"}]},{name:"table",description:{kind:"markdown",value:"The table element represents data with more than one dimension, in the form of a table."},attributes:[{name:"border"},{name:"align",description:'This enumerated attribute indicates how the table must be aligned inside the containing document. It may have the following values:\n\n* left: the table is displayed on the left side of the document;\n* center: the table is displayed in the center of the document;\n* right: the table is displayed on the right side of the document.\n\n**Usage Note**\n\n* **Do not use this attribute**, as it has been deprecated. The [`<table>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table "The HTML <table> element represents tabular data \u2014 that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). Set [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") and [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") to `auto` or [`margin`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin "The margin CSS property sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left.") to `0 auto` to achieve an effect that is similar to the align attribute.\n* Prior to Firefox 4, Firefox also supported the `middle`, `absmiddle`, and `abscenter` values as synonyms of `center`, in quirks mode only.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/table"}]},{name:"caption",description:{kind:"markdown",value:"The caption element represents the title of the table that is its parent, if it has a parent and that is a table element."},attributes:[{name:"align",description:'This enumerated attribute indicates how the caption must be aligned with respect to the table. It may have one of the following values:\n\n`left`\n\nThe caption is displayed to the left of the table.\n\n`top`\n\nThe caption is displayed above the table.\n\n`right`\n\nThe caption is displayed to the right of the table.\n\n`bottom`\n\nThe caption is displayed below the table.\n\n**Usage note:** Do not use this attribute, as it has been deprecated. The [`<caption>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption "The HTML Table Caption element (<caption>) specifies the caption (or title) of a table, and if used is always the first child of a <table>.") element should be styled using the [CSS](https://developer.mozilla.org/en-US/docs/CSS) properties [`caption-side`](https://developer.mozilla.org/en-US/docs/Web/CSS/caption-side "The caption-side CSS property puts the content of a table\'s <caption> on the specified side. The values are relative to the writing-mode of the table.") and [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/caption"}]},{name:"colgroup",description:{kind:"markdown",value:"The colgroup element represents a group of one or more columns in the table that is its parent, if it has a parent and that is a table element."},attributes:[{name:"span"},{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed. The descendant [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") elements may override this value using their own [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-align) attribute.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use one `td:nth-child(an+b)` CSS selector per column, where a is the total number of the columns in the table and b is the ordinal position of this column in the table. Only after this selector the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property can be used.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/colgroup"}]},{name:"col",description:{kind:"markdown",value:"If a col element has a parent and that is a colgroup element that itself has a parent that is a table element, then the col element represents one or more columns in the column group represented by that colgroup."},attributes:[{name:"span"},{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, its value is inherited from the [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-align) of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element this `<col>` element belongs too. If there are none, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use the `td:nth-child(an+b)` CSS selector. Set `a` to zero and `b` to the position of the column in the table, e.g. `td:nth-child(2) { text-align: right; }` to right-align the second column.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/col"}]},{name:"tbody",description:{kind:"markdown",value:"The tbody element represents a block of rows that consist of a body of data for the parent table element, if the tbody element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes.\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tbody"}]},{name:"thead",description:{kind:"markdown",value:"The thead element represents the block of rows that consist of the column labels (headers) for the parent table element, if the thead element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/thead"}]},{name:"tfoot",description:{kind:"markdown",value:"The tfoot element represents the block of rows that consist of the column summaries (footers) for the parent table element, if the tfoot element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tfoot"}]},{name:"tr",description:{kind:"markdown",value:"The tr element represents a row of cells in a table."},attributes:[{name:"align",description:'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") which specifies how the cell\'s context should be aligned horizontally within the cells in the row; this is shorthand for using `align` on every cell in the row individually. Possible values are:\n\n`left`\n\nAlign the content of each cell at its left edge.\n\n`center`\n\nCenter the contents of each cell between their left and right edges.\n\n`right`\n\nAlign the content of each cell at its right edge.\n\n`justify`\n\nWiden whitespaces within the text of each cell so that the text fills the full width of each cell (full justification).\n\n`char`\n\nAlign each cell in the row on a specific character (such that each row in the column that is configured this way will horizontally align its cells on that character). This uses the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-charoff) to establish the alignment character (typically "." or "," when aligning numerical data) and the number of characters that should follow the alignment character. This alignment type was never widely supported.\n\nIf no value is expressly set for `align`, the parent node\'s value is inherited.\n\nInstead of using the obsolete `align` attribute, you should instead use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to establish `left`, `center`, `right`, or `justify` alignment for the row\'s cells. To apply character-based alignment, set the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the alignment character (such as `"."` or `","`).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tr"}]},{name:"td",description:{kind:"markdown",value:"The td element represents a data cell in a table."},attributes:[{name:"colspan"},{name:"rowspan"},{name:"headers"},{name:"abbr",description:"This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard. Alternatively, you can put the abbreviated description inside the cell and place the long content in the **title** attribute."},{name:"align",description:'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char). Unimplemented in CSS3.'},{name:"axis",description:"This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard."},{name:"bgcolor",description:'This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by \'#\'. This attribute may be used with one of sixteen predefined color strings:\n\n\xa0\n\n`black` = "#000000"\n\n\xa0\n\n`green` = "#008000"\n\n\xa0\n\n`silver` = "#C0C0C0"\n\n\xa0\n\n`lime` = "#00FF00"\n\n\xa0\n\n`gray` = "#808080"\n\n\xa0\n\n`olive` = "#808000"\n\n\xa0\n\n`white` = "#FFFFFF"\n\n\xa0\n\n`yellow` = "#FFFF00"\n\n\xa0\n\n`maroon` = "#800000"\n\n\xa0\n\n`navy` = "#000080"\n\n\xa0\n\n`red` = "#FF0000"\n\n\xa0\n\n`blue` = "#0000FF"\n\n\xa0\n\n`purple` = "#800080"\n\n\xa0\n\n`teal` = "#008080"\n\n\xa0\n\n`fuchsia` = "#FF00FF"\n\n\xa0\n\n`aqua` = "#00FFFF"\n\n**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To create a similar effect use the [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/CSS) instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/td"}]},{name:"th",description:{kind:"markdown",value:"The th element represents a header cell in a table."},attributes:[{name:"colspan"},{name:"rowspan"},{name:"headers"},{name:"scope",valueSet:"s"},{name:"sorted"},{name:"abbr",description:{kind:"markdown",value:"This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself."}},{name:"align",description:'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-charoff) attributes.\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char). Unimplemented in CSS3.'},{name:"axis",description:"This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard: use the [`scope`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope) attribute instead."},{name:"bgcolor",description:'This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by \'#\'. This attribute may be used with one of sixteen predefined color strings:\n\n\xa0\n\n`black` = "#000000"\n\n\xa0\n\n`green` = "#008000"\n\n\xa0\n\n`silver` = "#C0C0C0"\n\n\xa0\n\n`lime` = "#00FF00"\n\n\xa0\n\n`gray` = "#808080"\n\n\xa0\n\n`olive` = "#808000"\n\n\xa0\n\n`white` = "#FFFFFF"\n\n\xa0\n\n`yellow` = "#FFFF00"\n\n\xa0\n\n`maroon` = "#800000"\n\n\xa0\n\n`navy` = "#000080"\n\n\xa0\n\n`red` = "#FF0000"\n\n\xa0\n\n`blue` = "#0000FF"\n\n\xa0\n\n`purple` = "#800080"\n\n\xa0\n\n`teal` = "#008080"\n\n\xa0\n\n`fuchsia` = "#FF00FF"\n\n\xa0\n\n`aqua` = "#00FFFF"\n\n**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [`<th>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th "The HTML <th> element defines a cell as header of a group of table cells. The exact nature of this group is defined by the scope and headers attributes.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS). To create a similar effect use the [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/th"}]},{name:"form",description:{kind:"markdown",value:"The form element represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing."},attributes:[{name:"accept-charset",description:{kind:"markdown",value:'A space- or comma-delimited list of character encodings that the server accepts. The browser uses them in the order in which they are listed. The default value, the reserved string `"UNKNOWN"`, indicates the same encoding as that of the document containing the form element. \nIn previous versions of HTML, the different character encodings could be delimited by spaces or commas. In HTML5, only spaces are allowed as delimiters.'}},{name:"action",description:{kind:"markdown",value:'The URI of a program that processes the form information. This value can be overridden by a [`formaction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formaction) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"autocomplete",valueSet:"o",description:{kind:"markdown",value:"Indicates whether input elements can by default have their values automatically completed by the browser. This setting can be overridden by an `autocomplete` attribute on an element belonging to the form. Possible values are:\n\n* `off`: The user must explicitly enter a value into each field for every use, or the document provides its own auto-completion method; the browser does not automatically complete entries.\n* `on`: The browser can automatically complete values based on values that the user has previously entered in the form.\n\nFor most modern browsers (including Firefox 38+, Google Chrome 34+, IE 11+) setting the autocomplete attribute will not prevent a browser's password manager from asking the user if they want to store login fields (username and password), if the user permits the storage the browser will autofill the login the next time the user visits the page. See [The autocomplete attribute and login fields](https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#The_autocomplete_attribute_and_login_fields)."}},{name:"enctype",valueSet:"et",description:{kind:"markdown",value:'When the value of the `method` attribute is `post`, enctype is the [MIME type](https://en.wikipedia.org/wiki/Mime_type) of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: The value used for an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the `type` attribute set to "file".\n* `text/plain`: (HTML5)\n\nThis value can be overridden by a [`formenctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formenctype) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"method",valueSet:"m",description:{kind:"markdown",value:'The [HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) method that the browser uses to submit the form. Possible values are:\n\n* `post`: Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5) ; form data are included in the body of the form and sent to the server.\n* `get`: Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a \'?\' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n* `dialog`: Use when the form is inside a\xa0[`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog "The HTML <dialog> element represents a dialog box or other interactive component, such as an inspector or window.") element to close the dialog when submitted.\n\nThis value can be overridden by a [`formmethod`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formmethod) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"name",description:{kind:"markdown",value:"The name of the form. In HTML 4, its use is deprecated (`id` should be used instead). It must be unique among the forms in a document and not just an empty string in HTML 5."}},{name:"novalidate",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the form is not to be validated when submitted. If this attribute is not specified (and therefore the form is validated), this default setting can be overridden by a [`formnovalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formnovalidate) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element belonging to the form.'}},{name:"target",description:{kind:"markdown",value:'A name or keyword indicating where to display the response that is received after submitting the form. In HTML 4, this is the name/keyword for a frame. In HTML5, it is a name/keyword for a _browsing context_ (for example, tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the response into the same HTML 4 frame (or HTML5 browsing context) as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed HTML 4 window or HTML5 browsing context.\n* `_parent`: Load the response into the HTML 4 frameset parent of the current frame, or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: HTML 4: Load the response into the full original window, and cancel all other frames. HTML5: Load the response into the top-level browsing context (i.e., the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n* _iframename_: The response is displayed in a named [`<iframe>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe "The HTML Inline Frame element (<iframe>) represents a nested browsing context, embedding another HTML page into the current one.").\n\nHTML5: This value can be overridden by a [`formtarget`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formtarget) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"accept",description:'A comma-separated list of content types that the server accepts.\n\n**Usage note:** This attribute has been removed in HTML5 and should no longer be used. Instead, use the [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept) attribute of the specific [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'},{name:"autocapitalize",description:"This is a nonstandard attribute used by iOS Safari Mobile which controls whether and how the text value for textual form control descendants should be automatically capitalized as it is entered/edited by the user. If the `autocapitalize` attribute is specified on an individual form control descendant, it trumps the form-wide `autocapitalize` setting. The non-deprecated values are available in iOS 5 and later. The default value is `sentences`. Possible values are:\n\n* `none`: Completely disables automatic capitalization\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/form"}]},{name:"label",description:{kind:"markdown",value:"The label element represents a caption in a user interface. The caption can be associated with a specific form control, known as the label element's labeled control, either using the for attribute, or by putting the form control inside the label element itself."},attributes:[{name:"form",description:{kind:"markdown",value:'The [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element with which the label is associated (its _form owner_). If specified, the value of the attribute is the `id` of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. This lets you place label elements anywhere within a document, not just as descendants of their form elements.'}},{name:"for",description:{kind:"markdown",value:"The [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-id) of a [labelable](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Form_labelable) form-related element in the same document as the `<label>` element. The first element in the document with an `id` matching the value of the `for` attribute is the _labeled control_ for this label element, if it is a labelable element. If it is\xa0not labelable then the `for` attribute has no effect. If there are other elements which also match the `id` value, later in the document, they are not considered.\n\n**Note**: A `<label>` element can have both a `for` attribute and a contained control element, as long as the `for` attribute points to the contained control element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/label"}]},{name:"input",description:{kind:"markdown",value:"The input element represents a typed data field, usually with a form control to allow the user to edit the data."},attributes:[{name:"accept"},{name:"alt"},{name:"autocomplete",valueSet:"inputautocomplete"},{name:"autofocus",valueSet:"v"},{name:"checked",valueSet:"v"},{name:"dirname"},{name:"disabled",valueSet:"v"},{name:"form"},{name:"formaction"},{name:"formenctype",valueSet:"et"},{name:"formmethod",valueSet:"fm"},{name:"formnovalidate",valueSet:"v"},{name:"formtarget"},{name:"height"},{name:"inputmode",valueSet:"im"},{name:"list"},{name:"max"},{name:"maxlength"},{name:"min"},{name:"minlength"},{name:"multiple",valueSet:"v"},{name:"name"},{name:"pattern"},{name:"placeholder"},{name:"readonly",valueSet:"v"},{name:"required",valueSet:"v"},{name:"size"},{name:"src"},{name:"step"},{name:"type",valueSet:"t"},{name:"value"},{name:"width"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/input"}]},{name:"button",description:{kind:"markdown",value:"The button element represents a button labeled by its contents."},attributes:[{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that the button should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form-associated element in a document can have this attribute specified."}},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the user cannot interact with the button. If this attribute is not specified, the button inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element with the **disabled** attribute set, then the button is enabled.\n\nFirefox will, unlike other browsers, by default, [persist the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Use the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-autocomplete) attribute to control this feature.'}},{name:"form",description:{kind:"markdown",value:'The form element that the button is associated with (its _form owner_). The value of the attribute must be the **id** attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. If this attribute is not specified, the `<button>` element will be associated to an ancestor [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element, if one exists. This attribute enables you to associate `<button>` elements to [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements anywhere within a document, not just as descendants of [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements.'}},{name:"formaction",description:{kind:"markdown",value:"The URI of a program that processes the information submitted by the button. If specified, it overrides the [`action`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action) attribute of the button's form owner."}},{name:"formenctype",valueSet:"et",description:{kind:"markdown",value:'If the button is a submit button, this attribute specifies the type of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: Use this value if you are using an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-type) attribute set to `file`.\n* `text/plain`\n\nIf this attribute is specified, it overrides the [`enctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-enctype) attribute of the button\'s form owner.'}},{name:"formmethod",valueSet:"fm",description:{kind:"markdown",value:"If the button is a submit button, this attribute specifies the HTTP method that the browser uses to submit the form. Possible values are:\n\n* `post`: The data from the form are included in the body of the form and sent to the server.\n* `get`: The data from the form are appended to the **form** attribute URI, with a '?' as a separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n\nIf specified, this attribute overrides the [`method`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-method) attribute of the button's form owner."}},{name:"formnovalidate",valueSet:"v",description:{kind:"markdown",value:"If the button is a submit button, this Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the [`novalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-novalidate) attribute of the button's form owner."}},{name:"formtarget",description:{kind:"markdown",value:"If the button is a submit button, this attribute is a name or keyword indicating where to display the response that is received after submitting the form. This is a name of, or keyword for, a _browsing context_ (for example, tab, window, or inline frame). If this attribute is specified, it overrides the [`target`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-target) attribute of the button's form owner. The following keywords have special meanings:\n\n* `_self`: Load the response into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed browsing context.\n* `_parent`: Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`."}},{name:"name",description:{kind:"markdown",value:"The name of the button, which is submitted with the form data."}},{name:"type",valueSet:"bt",description:{kind:"markdown",value:"The type of the button. Possible values are:\n\n* `submit`: The button submits the form data to the server. This is the default if the attribute is not specified, or if the attribute is dynamically changed to an empty or invalid value.\n* `reset`: The button resets all the controls to their initial values.\n* `button`: The button has no default behavior. It can have client-side scripts associated with the element's events, which are triggered when the events occur."}},{name:"value",description:{kind:"markdown",value:"The initial value of the button. It defines the value associated with the button which is submitted with the form data. This value is passed to the server in params when the form is submitted."}},{name:"autocomplete",description:'The use of this attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") is nonstandard and Firefox-specific. By default, unlike other browsers, [Firefox persists the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Setting the value of this attribute to `off` (i.e. `autocomplete="off"`) disables this feature. See [bug\xa0654072](https://bugzilla.mozilla.org/show_bug.cgi?id=654072 "if disabled state is changed with javascript, the normal state doesn\'t return after refreshing the page").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/button"}]},{name:"select",description:{kind:"markdown",value:"The select element represents a control for selecting amongst a set of options."},attributes:[{name:"autocomplete",valueSet:"inputautocomplete",description:{kind:"markdown",value:'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") providing a hint for a [user agent\'s](https://developer.mozilla.org/en-US/docs/Glossary/user_agent "user agent\'s: A user agent is a computer program representing a person, for example, a browser in a Web context.") autocomplete feature. See [The HTML autocomplete attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for a complete list of values and details on how to use autocomplete.'}},{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form element in a document can have the `autofocus` attribute."}},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example `fieldset`; if there is no containing element with the `disabled` attribute set, then the control is enabled."}},{name:"form",description:{kind:"markdown",value:'This attribute lets you specify the form element to\xa0which\xa0the select element is associated\xa0(that is, its "form owner"). If this attribute is specified, its value must be the same as the `id` of a form element in the same document. This enables you to place select elements anywhere within a document, not just as descendants of their form elements.'}},{name:"multiple",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that multiple options can be selected in the list. If it is not specified, then only one option can be selected at a time. When `multiple` is specified, most browsers will show a scrolling list box instead of a single line dropdown."}},{name:"name",description:{kind:"markdown",value:"This attribute is used to specify the name of the control."}},{name:"required",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute indicating that an option with a non-empty string value must be selected."}},{name:"size",description:{kind:"markdown",value:"If the control is presented as a scrolling list box (e.g. when `multiple` is specified), this attribute represents the number of rows in the list that should be visible at one time. Browsers are not required to present a select element as a scrolled list box. The default value is 0.\n\n**Note:** According to the HTML5 specification, the default value for size should be 1; however, in practice, this has been found to break some web sites, and no other browser currently does that, so Mozilla has opted to continue to return 0 for the time being with Firefox."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/select"}]},{name:"datalist",description:{kind:"markdown",value:"The datalist element represents a set of option elements that represent predefined options for other controls. In the rendering, the datalist element represents nothing and it, along with its children, should be hidden."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/datalist"}]},{name:"optgroup",description:{kind:"markdown",value:"The optgroup element represents a group of option elements with a common label."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"If this Boolean attribute is set, none of the items in this option group is selectable. Often browsers grey out such control and it won't receive any browsing events, like mouse clicks or focus-related ones."}},{name:"label",description:{kind:"markdown",value:"The name of the group of options, which the browser can use when labeling the options in the user interface. This attribute is mandatory if this element is used."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/optgroup"}]},{name:"option",description:{kind:"markdown",value:"The option element represents an option in a select element or as part of a list of suggestions in a datalist element."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'If this Boolean attribute is set, this option is not checkable. Often browsers grey out such control and it won\'t receive any browsing event, like mouse clicks or focus-related ones. If this attribute is not set, the element can still be disabled if one of its ancestors is a disabled [`<optgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup "The HTML <optgroup> element creates a grouping of options within a <select> element.") element.'}},{name:"label",description:{kind:"markdown",value:"This attribute is text for the label indicating the meaning of the option. If the `label` attribute isn't defined, its value is that of the element text content."}},{name:"selected",valueSet:"v",description:{kind:"markdown",value:'If present, this Boolean attribute indicates that the option is initially selected. If the `<option>` element is the descendant of a [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element whose [`multiple`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-multiple) attribute is not set, only one single `<option>` of this [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element may have the `selected` attribute.'}},{name:"value",description:{kind:"markdown",value:"The content of this attribute represents the value to be submitted with the form, should this option be selected.\xa0If this attribute is omitted, the value is taken from the text content of the option element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/option"}]},{name:"textarea",description:{kind:"markdown",value:"The textarea element represents a multiline plain text edit control for the element's raw value. The contents of the control represent the control's default value."},attributes:[{name:"autocomplete",valueSet:"inputautocomplete",description:{kind:"markdown",value:'This attribute indicates whether the value of the control can be automatically completed by the browser. Possible values are:\n\n* `off`: The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry.\n* `on`: The browser can automatically complete the value based on values that the user has entered during previous uses.\n\nIf the `autocomplete` attribute is not specified on a `<textarea>` element, then the browser uses the `autocomplete` attribute value of the `<textarea>` element\'s form owner. The form owner is either the [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element that this `<textarea>` element is a descendant of or the form element whose `id` is specified by the `form` attribute of the input element. For more information, see the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-autocomplete) attribute in [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.").'}},{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form-associated element in a document can have this attribute specified."}},{name:"cols",description:{kind:"markdown",value:"The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. If it is not specified, the default value is `20`."}},{name:"dirname"},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element when the `disabled` attribute is set, the control is enabled.'}},{name:"form",description:{kind:"markdown",value:'The form element that the `<textarea>` element is associated with (its "form owner"). The value of the attribute must be the `id` of a form element in the same document. If this attribute is not specified, the `<textarea>` element must be a descendant of a form element. This attribute enables you to place `<textarea>` elements anywhere within a document, not just as descendants of form elements.'}},{name:"inputmode",valueSet:"im"},{name:"maxlength",description:{kind:"markdown",value:"The maximum number of characters (unicode code points) that the user can enter. If this value isn't specified, the user can enter an unlimited number of characters."}},{name:"minlength",description:{kind:"markdown",value:"The minimum number of characters (unicode code points) required that the user should enter."}},{name:"name",description:{kind:"markdown",value:"The name of the control."}},{name:"placeholder",description:{kind:"markdown",value:'A hint to the user of what can be entered in the control. Carriage returns or line-feeds within the placeholder text must be treated as line breaks when rendering the hint.\n\n**Note:** Placeholders should only be used to show an example of the type of data that should be entered into a form; they are _not_ a substitute for a proper [`<label>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label "The HTML <label> element represents a caption for an item in a user interface.") element tied to the input. See [Labels and placeholders](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Labels_and_placeholders "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") in [<input>: The Input (Form Input) element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") for a full explanation.'}},{name:"readonly",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that the user cannot modify the value of the control. Unlike the `disabled` attribute, the `readonly` attribute does not prevent the user from clicking or selecting in the control. The value of a read-only control is still submitted with the form."}},{name:"required",valueSet:"v",description:{kind:"markdown",value:"This attribute specifies that the user must fill in a value before submitting a form."}},{name:"rows",description:{kind:"markdown",value:"The number of visible text lines for the control."}},{name:"wrap",valueSet:"w",description:{kind:"markdown",value:"Indicates how the control wraps text. Possible values are:\n\n* `hard`: The browser automatically inserts line breaks (CR+LF) so that each line has no more than the width of the control; the `cols` attribute must also be specified for this to take effect.\n* `soft`: The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.\n* `off` : Like `soft` but changes appearance to `white-space: pre` so line segments exceeding `cols` are not wrapped and the `<textarea>` becomes horizontally scrollable.\n\nIf this attribute is not specified, `soft` is its default value."}},{name:"autocapitalize",description:"This is a non-standard attribute supported by WebKit on iOS (therefore nearly all browsers running on iOS, including Safari, Firefox, and Chrome), which controls whether and how the text value should be automatically capitalized as it is entered/edited by the user. The non-deprecated values are available in iOS 5 and later. Possible values are:\n\n* `none`: Completely disables automatic capitalization.\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."},{name:"spellcheck",description:"Specifies whether the `<textarea>` is subject to spell checking by the underlying browser/OS. the value can be:\n\n* `true`: Indicates that the element needs to have its spelling and grammar checked.\n* `default` : Indicates that the element is to act according to a default behavior, possibly based on the parent element's own `spellcheck` value.\n* `false` : Indicates that the element should not be spell checked."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/textarea"}]},{name:"output",description:{kind:"markdown",value:"The output element represents the result of a calculation performed by the application, or the result of a user action."},attributes:[{name:"for",description:{kind:"markdown",value:"A space-separated list of other elements\u2019 [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id)s, indicating that those elements contributed input values to (or otherwise affected) the calculation."}},{name:"form",description:{kind:"markdown",value:'The [form element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) that this element is associated with (its "form owner"). The value of the attribute must be an `id` of a form element in the same document. If this attribute is not specified, the output element must be a descendant of a form element. This attribute enables you to place output elements anywhere within a document, not just as descendants of their form elements.'}},{name:"name",description:{kind:"markdown",value:'The name of the element, exposed in the [`HTMLFormElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement "The HTMLFormElement interface represents a <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements.") API.'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/output"}]},{name:"progress",description:{kind:"markdown",value:"The progress element represents the completion progress of a task. The progress is either indeterminate, indicating that progress is being made but that it is not clear how much more work remains to be done before the task is complete (e.g. because the task is waiting for a remote host to respond), or the progress is a number in the range zero to a maximum, giving the fraction of work that has so far been completed."},attributes:[{name:"value",description:{kind:"markdown",value:"This attribute specifies how much of the task that has been completed. It must be a valid floating point number between 0 and `max`, or between 0 and 1 if `max` is omitted. If there is no `value` attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take."}},{name:"max",description:{kind:"markdown",value:"This attribute describes how much work the task indicated by the `progress` element requires. The `max` attribute, if present, must have a value greater than zero and be a valid floating point number. The default value is 1."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/progress"}]},{name:"meter",description:{kind:"markdown",value:"The meter element represents a scalar measurement within a known range, or a fractional value; for example disk usage, the relevance of a query result, or the fraction of a voting population to have selected a particular candidate."},attributes:[{name:"value",description:{kind:"markdown",value:"The current numeric value. This must be between the minimum and maximum values (`min` attribute and `max` attribute) if they are specified. If unspecified or malformed, the value is 0. If specified, but not within the range given by the `min` attribute and `max` attribute, the value is equal to the nearest end of the range.\n\n**Usage note:** Unless the `value` attribute is between `0` and `1` (inclusive), the `min` and `max` attributes should define the range so that the `value` attribute's value is within it."}},{name:"min",description:{kind:"markdown",value:"The lower numeric bound of the measured range. This must be less than the maximum value (`max` attribute), if specified. If unspecified, the minimum value is 0."}},{name:"max",description:{kind:"markdown",value:"The upper numeric bound of the measured range. This must be greater than the minimum value (`min` attribute), if specified. If unspecified, the maximum value is 1."}},{name:"low",description:{kind:"markdown",value:"The upper numeric bound of the low end of the measured range. This must be greater than the minimum value (`min` attribute), and it also must be less than the high value and maximum value (`high` attribute and `max` attribute, respectively), if any are specified. If unspecified, or if less than the minimum value, the `low` value is equal to the minimum value."}},{name:"high",description:{kind:"markdown",value:"The lower numeric bound of the high end of the measured range. This must be less than the maximum value (`max` attribute), and it also must be greater than the low value and minimum value (`low` attribute and **min** attribute, respectively), if any are specified. If unspecified, or if greater than the maximum value, the `high` value is equal to the maximum value."}},{name:"optimum",description:{kind:"markdown",value:"This attribute indicates the optimal numeric value. It must be within the range (as defined by the `min` attribute and `max` attribute). When used with the `low` attribute and `high` attribute, it gives an indication where along the range is considered preferable. For example, if it is between the `min` attribute and the `low` attribute, then the lower range is considered preferred."}},{name:"form",description:"This attribute associates the element with a `form` element that has ownership of the `meter` element. For example, a `meter` might be displaying a range corresponding to an `input` element of `type` _number_. This attribute is only used if the `meter` element is being used as a form-associated element; even then, it may be omitted if the element appears as a descendant of a `form` element."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/meter"}]},{name:"fieldset",description:{kind:"markdown",value:"The fieldset element represents a set of form controls optionally grouped under a common name."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"If this Boolean attribute is set, all form controls that are descendants of the `<fieldset>`, are disabled, meaning they are not editable and won't be submitted along with the `<form>`. They won't receive any browsing events, like mouse clicks or focus-related events. By default browsers display such controls grayed out. Note that form elements inside the [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend \"The HTML <legend> element represents a caption for the content of its parent <fieldset>.\") element won't be disabled."}},{name:"form",description:{kind:"markdown",value:'This attribute takes the value of the `id` attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element you want the `<fieldset>` to be part of, even if it is not inside the form.'}},{name:"name",description:{kind:"markdown",value:'The name associated with the group.\n\n**Note**: The caption for the fieldset is given by the first [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend "The HTML <legend> element represents a caption for the content of its parent <fieldset>.") element nested inside it.'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/fieldset"}]},{name:"legend",description:{kind:"markdown",value:"The legend element represents a caption for the rest of the contents of the legend element's parent fieldset element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/legend"}]},{name:"details",description:{kind:"markdown",value:"The details element represents a disclosure widget from which the user can obtain additional information or controls."},attributes:[{name:"open",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates whether or not the details \u2014 that is, the contents of the `<details>` element \u2014 are currently visible. The default, `false`, means the details are not visible."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/details"}]},{name:"summary",description:{kind:"markdown",value:"The summary element represents a summary, caption, or legend for the rest of the contents of the summary element's parent details element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/summary"}]},{name:"dialog",description:{kind:"markdown",value:"The dialog element represents a part of an application that a user interacts with to perform a task, for example a dialog box, inspector, or window."},attributes:[{name:"open",description:"Indicates that the dialog is active and available for interaction. When the `open` attribute is not set, the dialog shouldn't be shown to the user."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dialog"}]},{name:"script",description:{kind:"markdown",value:"The script element allows authors to include dynamic script and data blocks in their documents. The element does not represent content for the user."},attributes:[{name:"src",description:{kind:"markdown",value:"This attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a document.\n\nIf a `script` element has a `src` attribute specified, it should not have a script embedded inside its tags."}},{name:"type",description:{kind:"markdown",value:'This attribute indicates the type of script represented. The value of this attribute will be in one of the following categories:\n\n* **Omitted or a JavaScript MIME type:** For HTML5-compliant browsers this indicates the script is JavaScript. HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type. In earlier browsers, this identified the scripting language of the embedded or imported (via the `src` attribute) code. JavaScript MIME types are [listed in the specification](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#JavaScript_types).\n* **`module`:** For HTML5-compliant browsers the code is treated as a JavaScript module. The processing of the script contents is not affected by the `charset` and `defer` attributes. For information on using `module`, see [ES6 in Depth: Modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/). Code may behave differently when the `module` keyword is used.\n* **Any other value:** The embedded content is treated as a data block which won\'t be processed by the browser. Developers must use a valid MIME type that is not a JavaScript MIME type to denote data blocks. The `src` attribute will be ignored.\n\n**Note:** in Firefox you could specify the version of JavaScript contained in a `<script>` element by including a non-standard `version` parameter inside the `type` attribute \u2014 for example `type="text/javascript;version=1.8"`. This has been removed in Firefox 59 (see [bug\xa01428745](https://bugzilla.mozilla.org/show_bug.cgi?id=1428745 "FIXED: Remove support for version parameter from script loader")).'}},{name:"charset"},{name:"async",valueSet:"v",description:{kind:"markdown",value:'This is a Boolean attribute indicating that the browser should, if possible, load the script asynchronously.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts). If it is included in this case it will have no effect.\n\nBrowsers usually assume the worst case scenario and load scripts synchronously, (i.e. `async="false"`) during HTML parsing.\n\nDynamically inserted scripts (using [`document.createElement()`](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement "In an HTML document, the document.createElement() method creates the HTML element specified by tagName, or an HTMLUnknownElement if tagName isn\'t recognized.")) load asynchronously by default, so to turn on synchronous loading (i.e. scripts load in the order they were inserted) set `async="false"`.\n\nSee [Browser compatibility](#Browser_compatibility) for notes on browser support. See also [Async scripts for asm.js](https://developer.mozilla.org/en-US/docs/Games/Techniques/Async_scripts).'}},{name:"defer",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firing [`DOMContentLoaded`](https://developer.mozilla.org/en-US/docs/Web/Events/DOMContentLoaded "/en-US/docs/Web/Events/DOMContentLoaded").\n\nScripts with the `defer` attribute will prevent the `DOMContentLoaded` event from firing until the script has loaded and finished evaluating.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts), in this case it would have no effect.\n\nTo achieve a similar effect for dynamically inserted scripts use `async="false"` instead. Scripts with the `defer` attribute will execute in the order in which they appear in the document.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'Normal `script` elements pass minimal information to the [`window.onerror`](https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror "The onerror property of the GlobalEventHandlers mixin is an EventHandler that processes error events.") for scripts which do not pass the standard [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") checks. To allow error logging for sites which use a separate domain for static media, use this attribute. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for a more descriptive explanation of its valid arguments.'}},{name:"nonce",description:{kind:"markdown",value:"A cryptographic nonce (number used once) to whitelist inline scripts in a [script-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource's policy is otherwise trivial."}},{name:"integrity",description:"This attribute contains inline metadata that a user agent can use to verify that a fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"nomodule",description:"This Boolean attribute is set to indicate that the script should not be executed in browsers that support [ES2015 modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/) \u2014 in effect, this can be used to serve fallback scripts to older browsers that do not support modular JavaScript code."},{name:"referrerpolicy",description:'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the script, or resources fetched by the script:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (e.g. HTTPS\u2192HTTPS), but don\'t send it to a less secure destination (e.g. HTTPS\u2192HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, but only send the origin when the protocol security level stays the same (e.g.HTTPS\u2192HTTPS), and send no header to a less secure destination (e.g. HTTPS\u2192HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.\n\n**Note**: An empty string value (`""`) is both the default value, and a fallback value if `referrerpolicy` is not supported. If `referrerpolicy` is not explicitly specified on the `<script>` element, it will adopt a higher-level referrer policy, i.e. one set on the whole document or domain. If a higher-level policy is not available,\xa0the empty string is treated as being equivalent to `no-referrer-when-downgrade`.'},{name:"text",description:"Like the `textContent` attribute, this attribute sets the text content of the element. Unlike the `textContent` attribute, however, this attribute is evaluated as executable code after the node is inserted into the DOM."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/script"}]},{name:"noscript",description:{kind:"markdown",value:"The noscript element represents nothing if scripting is enabled, and represents its children if scripting is disabled. It is used to present different markup to user agents that support scripting and those that don't support scripting, by affecting how the document is parsed."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/noscript"}]},{name:"template",description:{kind:"markdown",value:"The template element is used to declare fragments of HTML that can be cloned and inserted in the document by script."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/template"}]},{name:"canvas",description:{kind:"markdown",value:"The canvas element provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, art, or other visual images on the fly."},attributes:[{name:"width",description:{kind:"markdown",value:"The width of the coordinate space in CSS pixels. Defaults to 300."}},{name:"height",description:{kind:"markdown",value:"The height of the coordinate space in CSS pixels. Defaults to 150."}},{name:"moz-opaque",description:"Lets the canvas know whether or not translucency will be a factor. If the canvas knows there's no translucency, painting performance can be optimized. This is only supported by Mozilla-based browsers; use the standardized [`canvas.getContext('2d', { alpha: false })`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext \"The HTMLCanvasElement.getContext() method returns a drawing context on the canvas, or null if the context identifier is not supported.\") instead."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/canvas"}]}],globalAttributes:[{name:"accesskey",description:{kind:"markdown",value:"Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/accesskey"}]},{name:"autocapitalize",description:{kind:"markdown",value:"Controls whether and how text input is automatically capitalized as it is entered/edited by the user. It can have the following values:\n\n* `off` or `none`, no autocapitalization is applied (all letters default to lowercase)\n* `on` or `sentences`, the first letter of each sentence defaults to a capital letter; all other letters default to lowercase\n* `words`, the first letter of each word defaults to a capital letter; all other letters default to lowercase\n* `characters`, all letters should default to uppercase"},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/autocapitalize"}]},{name:"class",description:{kind:"markdown",value:'A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the [class selectors](/en-US/docs/Web/CSS/Class_selectors) or functions like the method [`Document.getElementsByClassName()`](/en-US/docs/Web/API/Document/getElementsByClassName "returns an array-like object of all child elements which have all of the given class names.").'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/class"}]},{name:"contenteditable",description:{kind:"markdown",value:"An enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing. The attribute must take one of the following values:\n\n* `true` or the _empty string_, which indicates that the element must be editable;\n* `false`, which indicates that the element must not be editable."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contenteditable"}]},{name:"contextmenu",description:{kind:"markdown",value:'The `[**id**](#attr-id)` of a [`<menu>`](/en-US/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.") to use as the contextual menu for this element.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contextmenu"}]},{name:"dir",description:{kind:"markdown",value:"An enumerated attribute indicating the directionality of the element's text. It can have the following values:\n\n* `ltr`, which means _left to right_ and is to be used for languages that are written from the left to the right (like English);\n* `rtl`, which means _right to left_ and is to be used for languages that are written from the right to the left (like Arabic);\n* `auto`, which lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then it applies that directionality to the whole element."},valueSet:"d",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/dir"}]},{name:"draggable",description:{kind:"markdown",value:"An enumerated attribute indicating whether the element can be dragged, using the [Drag and Drop API](/en-us/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `true`, which indicates that the element may be dragged\n* `false`, which indicates that the element may not be dragged."},valueSet:"b",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/draggable"}]},{name:"dropzone",description:{kind:"markdown",value:"An enumerated attribute indicating what types of content can be dropped on an element, using the [Drag and Drop API](/en-US/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `copy`, which indicates that dropping will create a copy of the element that was dragged\n* `move`, which indicates that the element that was dragged will be moved to this new location.\n* `link`, will create a link to the dragged data."}},{name:"exportparts",description:{kind:"markdown",value:"Used to transitively export shadow parts from a nested shadow tree into a containing light tree."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/exportparts"}]},{name:"hidden",description:{kind:"markdown",value:"A Boolean attribute indicates that the element is not yet, or is no longer, _relevant_. For example, it can be used to hide elements of the page that can't be used until the login process has been completed. The browser won't render such elements. This attribute must not be used to hide content that could legitimately be shown."},valueSet:"v",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/hidden"}]},{name:"id",description:{kind:"markdown",value:"Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS)."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/id"}]},{name:"inputmode",description:{kind:"markdown",value:'Provides a hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents. Used primarily on [`<input>`](/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") elements, but is usable on any element while in `[contenteditable](/en-US/docs/Web/HTML/Global_attributes#attr-contenteditable)` mode.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/inputmode"}]},{name:"is",description:{kind:"markdown",value:"Allows you to specify that a standard HTML element should behave like a registered custom built-in element (see [Using custom elements](/en-US/docs/Web/Web_Components/Using_custom_elements) for more details)."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/is"}]},{name:"itemid",description:{kind:"markdown",value:"The unique, global identifier of an item."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemid"}]},{name:"itemprop",description:{kind:"markdown",value:"Used to add properties to an item. Every HTML element may have an `itemprop` attribute specified, where an `itemprop` consists of a name and value pair."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemprop"}]},{name:"itemref",description:{kind:"markdown",value:"Properties that are not descendants of an element with the `itemscope` attribute can be associated with the item using an `itemref`. It provides a list of element ids (not `itemid`s) with additional properties elsewhere in the document."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemref"}]},{name:"itemscope",description:{kind:"markdown",value:"`itemscope` (usually) works along with `[itemtype](/en-US/docs/Web/HTML/Global_attributes#attr-itemtype)` to specify that the HTML contained in a block is about a particular item. `itemscope` creates the Item and defines the scope of the `itemtype` associated with it. `itemtype` is a valid URL of a vocabulary (such as [schema.org](https://schema.org/)) that describes the item and its properties context."},valueSet:"v",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemscope"}]},{name:"itemtype",description:{kind:"markdown",value:"Specifies the URL of the vocabulary that will be used to define `itemprop`s (item properties) in the data structure. `[itemscope](/en-US/docs/Web/HTML/Global_attributes#attr-itemscope)` is used to set the scope of where in the data structure the vocabulary set by `itemtype` will be active."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemtype"}]},{name:"lang",description:{kind:"markdown",value:"Helps define the language of an element: the language that non-editable elements are in, or the language that editable elements should be written in by the user. The attribute contains one \u201clanguage tag\u201d (made of hyphen-separated \u201clanguage subtags\u201d) in the format defined in [_Tags for Identifying Languages (BCP47)_](https://www.ietf.org/rfc/bcp/bcp47.txt). [**xml:lang**](#attr-xml:lang) has priority over it."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/lang"}]},{name:"part",description:{kind:"markdown",value:'A space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the [`::part`](/en-US/docs/Web/CSS/::part "The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute.") pseudo-element.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/part"}]},{name:"role",valueSet:"roles"},{name:"slot",description:{kind:"markdown",value:"Assigns a slot in a [shadow DOM](/en-US/docs/Web/Web_Components/Shadow_DOM) shadow tree to an element: An element with a `slot` attribute is assigned to the slot created by the [`<slot>`](/en-US/docs/Web/HTML/Element/slot \"The HTML <slot> element\u2014part of the Web Components technology suite\u2014is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.\") element whose `[name](/en-US/docs/Web/HTML/Element/slot#attr-name)` attribute's value matches that `slot` attribute's value."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/slot"}]},{name:"spellcheck",description:{kind:"markdown",value:"An enumerated attribute defines whether the element may be checked for spelling errors. It may have the following values:\n\n* `true`, which indicates that the element should be, if possible, checked for spelling errors;\n* `false`, which indicates that the element should not be checked for spelling errors."},valueSet:"b",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/spellcheck"}]},{name:"style",description:{kind:"markdown",value:'Contains [CSS](/en-US/docs/Web/CSS) styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. This attribute and the [`<style>`](/en-US/docs/Web/HTML/Element/style "The HTML <style> element contains style information for a document, or part of a document.") element have mainly the purpose of allowing for quick styling, for example for testing purposes.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/style"}]},{name:"tabindex",description:{kind:"markdown",value:"An integer attribute indicating if the element can take input focus (is _focusable_), if it should participate to sequential keyboard navigation, and if so, at what position. It can take several values:\n\n* a _negative value_ means that the element should be focusable, but should not be reachable via sequential keyboard navigation;\n* `0` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;\n* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](/en-US/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onmouseenter",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached."}},{name:"onmouseleave",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached."}},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"onpointercancel",description:{kind:"markdown",value:"The pointer is unlikely to produce any more events."}},{name:"onpointerdown",description:{kind:"markdown",value:"The pointer enters the active buttons state."}},{name:"onpointerenter",description:{kind:"markdown",value:"Pointing device is moved inside the hit-testing boundary."}},{name:"onpointerleave",description:{kind:"markdown",value:"Pointing device is moved out of the hit-testing boundary."}},{name:"onpointerlockchange",description:{kind:"markdown",value:"The pointer was locked or released."}},{name:"onpointerlockerror",description:{kind:"markdown",value:"It was impossible to lock the pointer for technical reasons or because the permission was denied."}},{name:"onpointermove",description:{kind:"markdown",value:"The pointer changed coordinates."}},{name:"onpointerout",description:{kind:"markdown",value:"The pointing device moved out of hit-testing boundary or leaves detectable hover range."}},{name:"onpointerover",description:{kind:"markdown",value:"The pointing device is moved into the hit-testing boundary."}},{name:"onpointerup",description:{kind:"markdown",value:"The pointer leaves the active buttons state."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:'\\[Deprecated in ARIA 1.1\\] Indicates an element\'s "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.'}},{name:"aria-haspopup",valueSet:"haspopup",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"get",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"post",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"get"},{name:"post"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]},{name:"haspopup",values:[{name:"false",description:{kind:"markdown",value:"(default) Indicates the element does not have a popup."}},{name:"true",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"menu",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"listbox",description:{kind:"markdown",value:"Indicates the popup is a listbox."}},{name:"tree",description:{kind:"markdown",value:"Indicates the popup is a tree."}},{name:"grid",description:{kind:"markdown",value:"Indicates the popup is a grid."}},{name:"dialog",description:{kind:"markdown",value:"Indicates the popup is a dialog."}}]}]},Bl=function(){function e(e){this.dataProviders=[],this.setDataProviders(!1!==e.useDefaultDataProvider,e.customDataProviders||[])}return e.prototype.setDataProviders=function(e,t){var n;this.dataProviders=[],e&&this.dataProviders.push(new Ys("html5",Fl)),(n=this.dataProviders).push.apply(n,t)},e.prototype.getDataProviders=function(){return this.dataProviders},e}(),Vl={};function Kl(e,t){return new Ys(e,t)}var jl=class{constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId;const n=this._languageSettings.data,i=n?.useDefaultDataProvider,r=[];if(n?.dataProviders)for(const o in n.dataProviders)r.push(Kl(o,n.dataProviders[o]));this._languageService=function(e){void 0===e&&(e=Vl);var t=new Bl(e),n=new pl(e,t),i=new hl(e,t);return{setDataProviders:t.setDataProviders.bind(t),createScanner:Is,parseHTMLDocument:function(e){return Os(e.getText())},doComplete:i.doComplete.bind(i),doComplete2:i.doComplete2.bind(i),setCompletionParticipants:i.setCompletionParticipants.bind(i),doHover:n.doHover.bind(n),format:vl,findDocumentHighlights:Rl,findDocumentLinks:Al,findDocumentSymbols:zl,getFoldingRanges:Wl,getSelectionRanges:Pl,doQuoteComplete:i.doQuoteComplete.bind(i),doTagComplete:i.doTagComplete.bind(i),doRename:Hl,findMatchingTagPosition:Dl,findOnTypeRenameRanges:Ol,findLinkedEditingRanges:Ol}}({useDefaultDataProvider:i,customDataProviders:r})}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let i=this._languageService.parseHTMLDocument(n);return Promise.resolve(this._languageService.doComplete(n,t,i,this._languageSettings&&this._languageSettings.suggest))}async format(e,t,n){let i=this._getTextDocument(e);if(!i)return[];let r={...this._languageSettings.format,...n},o=this._languageService.format(i,t,r);return Promise.resolve(o)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let i=this._languageService.parseHTMLDocument(n),r=this._languageService.doHover(n,t,i);return Promise.resolve(r)}async findDocumentHighlights(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.parseHTMLDocument(n),r=this._languageService.findDocumentHighlights(n,t,i);return Promise.resolve(r)}async findDocumentLinks(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.findDocumentLinks(t,null);return Promise.resolve(n)}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseHTMLDocument(t),i=this._languageService.findDocumentSymbols(t,n);return Promise.resolve(i)}async getFoldingRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.getFoldingRanges(n,t);return Promise.resolve(i)}async getSelectionRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.getSelectionRanges(n,t);return Promise.resolve(i)}async doRename(e,t,n){let i=this._getTextDocument(e);if(!i)return null;let r=this._languageService.parseHTMLDocument(i),o=this._languageService.doRename(i,t,n,r);return Promise.resolve(o)}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return is.create(e,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{io(((e,t)=>new jl(e,t)))}})();
\ No newline at end of file +(()=>{var e={9861:(e,t,n)=>{"use strict";function i(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function*r(e,t){let n,i;for(const r of e)void 0!==i&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function s(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function o(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function a(e,t=e=>e){const n=new Set;return e.filter((e=>{const i=t(e);return!n.has(i)&&(n.add(i),!0)}))}function l(e,t){return e.length>0?e[0]:t}function h(e,t,n){const i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function c(e,t){for(const n of t)e.push(n)}var d;function u(e,t){return(n,i)=>t(e(n),e(i))}n.d(t,{E4:()=>c,Fy:()=>l,Hw:()=>f,U9:()=>g,VE:()=>u,aI:()=>i,c1:()=>p,dM:()=>a,j3:()=>m,kj:()=>o,n:()=>r,nK:()=>h,pN:()=>s}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(d||(d={}));const g=(e,t)=>e-t;function f(e){return(t,n)=>-e(t,n)}class m{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class p{static{this.empty=new p((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new p((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new p((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((i=>((n||d.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0))),t}}},6041:(e,t,n)=>{"use strict";function i(e,t){const n=function(e,t,n=e.length-1){for(let i=n;i>=0;i--){if(t(e[i]))return i}return-1}(e,t);if(-1!==n)return e[n]}function r(e,t){const n=s(e,t);return-1===n?void 0:e[n]}function s(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?r=n+1:s=n}return r-1}function o(e,t){const n=a(e,t);return n===e.length?void 0:e[n]}function a(e,t,n=0,i=e.length){let r=n,s=i;for(;r<s;){const n=Math.floor((r+s)/2);t(e[n])?s=n:r=n+1}return r}n.d(t,{Uk:()=>i,XP:()=>o,hw:()=>a,iM:()=>s,lx:()=>r,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>o,Xo:()=>a,ok:()=>r,xb:()=>s});var i=n(4383);function r(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function o(e){e()||(e(),(0,i.dz)(new i.D7("Assertion Failed")))}function a(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>h,Qg:()=>a,$6:()=>c});n(8447);var i=n(4383),r=n(1234),s=n(1484),o=n(8067);Symbol("MicrotaskDelay");function a(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new i.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const r=n.setInterval((()=>{e()}),t);this.disposable=(0,s.s)((()=>{n.clearInterval(r),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class h{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let c,d;d="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,o._p)((()=>{if(n)return;const e=Date.now()+15,i={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(i))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const i=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let r=!1;return{dispose(){r||(r=!0,e.cancelIdleCallback(i))}}},c=e=>d(globalThis,e);var u;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(i){n(i)}}))}}(u||(u={}));class g{static fromArray(e){return new g((t=>{t.emitMany(e)}))}static fromPromise(e){return new g((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new g((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new g((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=g.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new g((async n=>{for await(const i of e)n.emitOne(t(i))}))}map(e){return g.map(this,e)}static filter(e,t){return new g((async n=>{for await(const i of e)t(i)&&n.emitOne(i)}))}filter(e){return g.filter(this,e)}static coalesce(e){return g.filter(e,(e=>!!e))}coalesce(){return g.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return g.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,Gs:()=>u,MB:()=>o,Sw:()=>c,bb:()=>h,gN:()=>l,pJ:()=>d});var i=n(1090);const r="undefined"!==typeof Buffer;new i.d((()=>new Uint8Array(256)));let s;class o{static wrap(e){return r&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return r?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function h(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function c(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function d(e,t){return e[t]}function u(e,t,n){e[n]=t}},1788:(e,t,n)=>{"use strict";function i(e){return e}n.d(t,{VV:()=>s,o5:()=>r});class r{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=i):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>a});var i=n(1234);const r=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(s||(s={}));class o{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?r:(this._emitter||(this._emitter=new i.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var i=n(631);const r=Object.create(null);function s(e,t){if((0,i.Kg)(t)){const n=r[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return r[e]=t,{id:e}}const o={...{add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),gitPullRequestLabel:s("git-pull-request-label",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),terminalDecorationSuccess:s("terminal-decoration-success",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circleOutline:s("circle-outline",60092),circle:s("circle",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:s("terminal-decoration-incomplete",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),diffSidebyside:s("diff-sidebyside",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),compareChanges:s("compare-changes",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),terminalDecorationMark:s("terminal-decoration-mark",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),debugAlt:s("debug-alt",60305),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),issueClosed:s("issue-closed",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),export:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnknown:s("workspace-unknown",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracket:s("bracket",60175),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newline:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),terminalDecorationError:s("terminal-decoration-error",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),blank:s("blank",60419),heartFilled:s("heart-filled",60420),map:s("map",60421),mapHorizontal:s("map-horizontal",60421),foldHorizontal:s("fold-horizontal",60421),mapFilled:s("map-filled",60422),mapHorizontalFilled:s("map-horizontal-filled",60422),foldHorizontalFilled:s("fold-horizontal-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsdownFilled:s("thumbsdown-filled",60435),thumbsupFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),repoFetch:s("repo-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),share:s("share",60453),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),vscode:s("vscode",60457),vscodeInsiders:s("vscode-insiders",60458),codeOss:s("code-oss",60459),runCoverage:s("run-coverage",60460),runAllCoverage:s("run-all-coverage",60461),coverage:s("coverage",60462),githubProject:s("github-project",60463),mapVertical:s("map-vertical",60464),foldVertical:s("fold-vertical",60464),mapVerticalFilled:s("map-vertical-filled",60465),foldVerticalFilled:s("fold-vertical-filled",60465),goToSearch:s("go-to-search",60466),percentage:s("percentage",60467),sortPercentage:s("sort-percentage",60467),attach:s("attach",60468)},...{dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left"),dropDownButton:s("drop-down-button",60084),symbolCustomColor:s("symbol-customcolor",60252),exportIcon:s("export",60332),workspaceUnspecified:s("workspace-unspecified",60355),newLine:s("newline",60394),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),gitFetch:s("git-fetch",60445),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),debugBreakpointPending:s("debug-breakpoint-pending",60377)}}},7661:(e,t,n)=>{"use strict";function i(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>a,bU:()=>r,hB:()=>s});class r{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class s{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,o=Math.max(t,n,i),a=Math.min(t,n,i);let l=0,h=0;const c=(a+o)/2,d=o-a;if(d>0){switch(h=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),o){case t:l=(n-i)/d+(n<i?6:0);break;case n:l=(i-t)/d+2;break;case i:l=(t-n)/d+4}l*=60,l=Math.round(l)}return new s(l,h,c,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:o}=e;let a,l,h;if(0===n)a=l=h=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;a=s._hue2rgb(r,e,t+1/3),l=s._hue2rgb(r,e,t),h=s._hue2rgb(r,e,t-1/3)}return new r(Math.round(255*a),Math.round(255*l),Math.round(255*h),o)}}class o{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=r-Math.min(t,n,i),a=0===r?0:s/r;let l;return l=0===s?0:r===t?((n-i)/s%6+6)%6:r===n?(i-t)/s+2:(t-n)/s+4,new o(Math.round(60*l),a,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:s}=e,o=i*n,a=o*(1-Math.abs(t/60%2-1)),l=i-o;let[h,c,d]=[0,0,0];return t<60?(h=o,c=a):t<120?(h=a,c=o):t<180?(c=o,d=a):t<240?(c=a,d=o):t<300?(h=a,d=o):t<=360&&(h=o,d=a),h=Math.round(255*(h+l)),c=Math.round(255*(c+l)),d=Math.round(255*(d+l)),new r(h,c,d,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&r.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return i(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(t,n,i,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:i,a:s}=this.rgba;return new a(new r(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-n),e.rgba.b-s*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}static{this.white=new a(new r(255,255,255,1))}static{this.black=new a(new r(0,0,0,1))}static{this.red=new a(new r(255,0,0,1))}static{this.blue=new a(new r(0,0,255,1))}static{this.green=new a(new r(0,255,0,1))}static{this.cyan=new a(new r(0,255,255,1))}static{this.lightgrey=new a(new r(211,211,211,1))}static{this.transparent=new a(new r(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function i(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new r(n,s,o,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),a=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new r(n,s,o,a/255))}if(4===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3));return new e(new r(16*n+n,16*s+s,16*o+o))}if(5===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3)),a=i(t.charCodeAt(4));return new e(new r(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>g,EM:()=>d,Qg:()=>h,cU:()=>s,dz:()=>r,iH:()=>c});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(u.isErrorNoTelemetry(e))throw new u(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){a(e)||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:u.isErrorNoTelemetry(e)}}return e}const o="Canceled";function a(e){return e instanceof l||e instanceof Error&&e.name===o&&e.message===o}class l extends Error{constructor(){super(o),this.name=this.message}}function h(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function c(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class d extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class u extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof u)return e;const t=new u;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class g extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,g.prototype)}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>o,vl:()=>f});var i=n(4383),r=n(1484),s=(n(8925),n(8381));var o;!function(e){function t(e){false}function n(e){return(t,n=null,i)=>{let r,s=!1;return r=e((e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)}),null,i),s&&r.dispose(),r}}function i(e,t,n){return o(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)),n)}function s(e,t,n){return o(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)),n)}function o(e,n){let i;const r={onWillAddFirstListener(){i=e(s.fire,s)},onDidRemoveLastListener(){i?.dispose()}};n||t();const s=new f(r);return n?.add(s),s.event}function a(e,n,i=100,r=!1,s=!1,o,a){let l,h,c,d,u=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{u++,h=n(h,e),r&&!c&&(m.fire(h),h=void 0),d=()=>{const e=h;h=void 0,c=void 0,(!r||u>1)&&m.fire(e),u=0},"number"===typeof i?(clearTimeout(c),c=setTimeout(d,i)):void 0===c&&(c=0,queueMicrotask(d))}))},onWillRemoveListener(){s&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,l.dispose()}};a||t();const m=new f(g);return a?.add(m),m.event}e.None=()=>r.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=i,e.forEach=function(e,t,n){return o(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)),n)},e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,r.qE)(...e.map((e=>e((e=>t.call(n,e)))))),i)},e.reduce=function(e,t,n,r){let s=n;return i(e,(e=>(s=t(s,e),s)),r)},e.debounce=a,e.accumulate=function(t,n=0,i){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,i)},e.latch=function(e,t=(e,t)=>e===t,n){let i,r=!0;return s(e,(e=>{const n=r||!t(e,i);return r=!1,i=e,n}),n)},e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,(e=>!n(e)),i)]},e.buffer=function(e,t=!1,n=[],i){let r=n.slice(),s=e((e=>{r?r.push(e):a.fire(e)}));i&&i.add(s);const o=()=>{r?.forEach((e=>a.fire(e))),r=null},a=new f({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),i&&i.add(s))},onDidAddFirstListener(){r&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return i&&i.add(a),a.event},e.chain=function(e,t){return(n,i,r)=>{const s=t(new h);return e((function(e){const t=s.evaluate(e);t!==l&&n.call(i,t)}),void 0,r)}};const l=Symbol("HaltChainable");class h{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:l)),this}reduce(e,t){let n=t;return this.steps.push((t=>(n=e(n,t),n))),this}latch(e=(e,t)=>e===t){let t,n=!0;return this.steps.push((i=>{const r=n||!e(i,t);return n=!1,t=i,r?i:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new f({onWillAddFirstListener:()=>e.on(t,i),onDidRemoveLastListener:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const i=(...e)=>r.fire(n(...e)),r=new f({onWillAddFirstListener:()=>e.addEventListener(t,i),onDidRemoveLastListener:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new f;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class c{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new f(i),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new c(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,i)=>{let s=0,o=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return i instanceof r.Cm?i.add(l):Array.isArray(i)&&i.push(l),l}}}(o||(o={}));class a{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${a._idPool++}`,a.all.add(this)}start(e){this._stopWatch=new s.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,i]=this.getMostFrequentStack(),r=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${i}):`;console.warn(r),console.warn(e);const s=new c(r,e);this._errorHandler(s)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,i]of this._stacks)(!e||t<i)&&(e=[n,i],t=i);return e}}class h{static create(){const e=new Error;return new h(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class c extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class d extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class u{constructor(e){this.value=e}}let g;class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??i.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new a(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new d(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||i.dz)(n),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const s=new u(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(s.stack=h.create(),o=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof u?(this._deliveryQueue??=new m,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,r.s)((()=>{g?.unregister(a),o?.(),this._removeListener(s)}));if(n instanceof r.Cm?n.add(a):Array.isArray(n)&&n.push(a),g){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);g.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const i=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:i&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||i.dz;if(n)try{e.value(t)}catch(r){n(r)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof u)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}class m{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>o,Zn:()=>l,_1:()=>h,kb:()=>a});var i=n(8821),r=(n(8067),n(1508));function s(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,i.SA.sep)}function a(e){return-1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=i.SA.sep){if(!e)return"";const n=e.length,r=e.charCodeAt(0);if(s(r)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let i=3;const r=i;for(;i<n&&!s(e.charCodeAt(i));i++);if(r!==i&&!s(e.charCodeAt(i+1)))for(i+=1;i<n;i++)if(s(e.charCodeAt(i)))return e.slice(0,i+1).replace(/[\\/]/g,t)}return t}if(c(r)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<n;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1);return""}function h(e,t,n,s=i.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,r.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function c(e){return e>=65&&e<=90||e>=97&&e<=122}},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>I,qg:()=>M});var i=n(1940),r=n(9326),s=n(4320),o=n(8821),a=n(8067),l=n(1508);const h="**",c="/",d="[/\\\\]",u="[^/\\\\]",g=/\//g;function f(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${d}|${u}+${d}${t?`|${d}${u}+`:""})*?`}}function m(e,t){if(!e)return[];const n=[];let i=!1,r=!1,s="";for(const o of e){switch(o){case t:if(!i&&!r){n.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1}s+=o}return s&&n.push(s),n}function p(e){if(!e)return"";let t="";const n=m(e,c);if(n.every((e=>e===h)))t=".*";else{let e=!1;n.forEach(((i,r)=>{if(i===h){if(e)return;t+=f(2,r===n.length-1)}else{let e=!1,s="",o=!1,a="";for(const n of i)if("}"!==n&&e)s+=n;else if(!o||"]"===n&&a)switch(n){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const n=`(?:${m(s,",").map((e=>p(e))).join("|")})`;t+=n,e=!1,s="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=u;continue;case"*":t+=f(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||a?n===c?"":(0,l.bm)(n):"^",a+=e}r<n.length-1&&(n[r+1]!==h||r+2<n.length)&&(t+=d)}e=i===h}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,b=/^\*\*\/([\w\.-]+)\/?$/,v=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,w=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,k=/^\*\*((\/[\w\.-]+)+)\/?$/,y=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,T=new s.qK(1e4),C=function(){return!1},S=function(){return null};function L(e,t){if(!e)return S;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const i=`${n}_${!!t.trimForExclusions}`;let r,s=T.get(i);return s||(s=_.test(n)?function(e,t){return function(n,i){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(r=b.exec(E(n,t)))?function(e,t){const n=`/${e}`,i=`\\${e}`,r=function(r,s){return"string"!==typeof r?null:s?s===e?t:null:r===e||r.endsWith(n)||r.endsWith(i)?t:null},s=[e];return r.basenames=s,r.patterns=[t],r.allBasenames=s,r}(r[1],n):(t.trimForExclusions?w:v).test(n)?function(e,t){const n=N(e.slice(1,-1).split(",").map((e=>L(e,t))).filter((e=>e!==S)),e),i=n.length;if(!i)return S;if(1===i)return n[0];const r=function(t,i){for(let r=0,s=n.length;r<s;r++)if(n[r](t,i))return e;return null},s=n.find((e=>!!e.allBasenames));s&&(r.allBasenames=s.allBasenames);const o=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(r.allPaths=o);return r}(n,t):(r=k.exec(E(n,t)))?A(r[1].substr(1),n,!0):(r=y.exec(E(n,t)))?A(r[1],n,!1):function(e){try{const t=new RegExp(`^${p(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return S}}(n),T.set(i,s)),x(s,e)}function x(e,t){if("string"===typeof t)return e;const n=function(n,i){return(0,r._1)(n,t.base,!a.j9)?e((0,l.NB)(n.substr(t.base.length),o.Vn),i):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function E(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function A(e,t,n){const i=o.Vn===o.SA.sep,r=i?e:e.replace(g,o.Vn),s=o.Vn+r,a=o.SA.sep+e;let l;return l=n?function(n,o){return"string"!==typeof n||n!==r&&!n.endsWith(s)&&(i||n!==e&&!n.endsWith(a))?null:t}:function(n,s){return"string"!==typeof n||n!==r&&(i||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function I(e,t,n){return!(!e||"string"!==typeof t)&&M(e)(t,void 0,n)}function M(e,t={}){if(!e)return C;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=L(e,t);if(n===S)return C;const i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return function(e,t){const n=N(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return S;const r=L(e,n);if(r===S)return S;if("boolean"===typeof t)return r;if(t){const n=t.when;if("string"===typeof n){const t=(t,s,o,a)=>{if(!a||!r(t,s))return null;const l=a(n.replace("$(basename)",(()=>o)));return(0,i.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return r}(n,e[n],t))).filter((e=>e!==S))),r=n.length;if(!r)return S;if(!n.some((e=>!!e.requiresSiblings))){if(1===r)return n[0];const e=function(e,t){let r;for(let s=0,o=n.length;s<o;s++){const o=n[s](e,t);if("string"===typeof o)return o;(0,i.Qg)(o)&&(r||(r=[]),r.push(o))}return r?(async()=>{for(const e of r){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const s=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,r){let s,a;for(let l=0,h=n.length;l<h;l++){const h=n[l];h.requiresSiblings&&r&&(t||(t=(0,o.P8)(e)),s||(s=t.substr(0,t.length-(0,o.LC)(e).length)));const c=h(e,t,s,r);if("string"===typeof c)return c;(0,i.Qg)(c)&&(a||(a=[]),a.push(c))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=n.find((e=>!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(s.allPaths=l);return s}(e,t)}function N(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const i=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let r;if(t){r=[];for(let e=0,n=i.length;e<n;e++)r.push(t)}else r=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const s=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=i.indexOf(t);return-1!==n?r[n]:null};s.basenames=i,s.patterns=r,s.allBasenames=i;const o=e.filter((e=>!e.basenames));return o.push(s),o}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>o,sN:()=>r,v7:()=>c});var i=n(1508);function r(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,i=s(104579,i=t),n.reduce(((e,t)=>r(t,e)),i)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=o(n,t),r(e[n],t))),t)}(e,t);case"string":return o(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,i}function s(e,t){return(t<<5)-t+e|0}function o(e,t){t=s(149417,t);for(let n=0,i=e.length;n<i;n++)t=s(e.charCodeAt(n),t);return t}function a(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function l(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function h(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class c{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(r=a,s=-1,a=0):(r=e.charCodeAt(0),s=0);;){let l=r;if(i.pc(r)){if(!(s+1<t)){a=r;break}{const t=e.charCodeAt(s+1);i.LJ(t)?(s++,l=i.z_(r,t)):l=65533}}else i.LJ(r)&&(l=65533);if(o=this._push(n,o,l),s++,!(s<t))break;r=e.charCodeAt(s)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=c._bigBlock32,t=this._buffDV;for(let a=0;a<64;a+=4)e.setUint32(a,t.getUint32(a,!1),!1);for(let c=64;c<320;c+=4)e.setUint32(c,a(e.getUint32(c-12,!1)^e.getUint32(c-32,!1)^e.getUint32(c-56,!1)^e.getUint32(c-64,!1),1),!1);let n,i,r,s=this._h0,o=this._h1,l=this._h2,h=this._h3,d=this._h4;for(let c=0;c<80;c++)c<20?(n=o&l|~o&h,i=1518500249):c<40?(n=o^l^h,i=1859775393):c<60?(n=o&l|o&h|l&h,i=2400959708):(n=o^l^h,i=3395469782),r=a(s,5)+n+d+i+e.getUint32(4*c,!1)&4294967295,d=h,h=l,l=a(o,30),o=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+d&4294967295}}},2522:(e,t,n)=>{"use strict";var i;n.d(t,{f:()=>i}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*i(e){yield e}e.empty=function(){return n},e.single=i,e.wrap=function(e){return t(e)?e:i(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const i of e)if(t(i,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.flatMap=function*(e,t){let n=0;for(const i of e)yield*t(i,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let i=n;for(const r of e)i=t(i,r);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(i||(i={}))},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});class i{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1484:(e,t,n)=>{"use strict";function i(e,t){const n=this;let i,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}n.d(t,{jG:()=>g,$w:()=>m,Cm:()=>u,HE:()=>f,qE:()=>c,AS:()=>h,VD:()=>a,s:()=>d,Ay:()=>o});var r=n(2522);let s=null;function o(e){return s?.trackDisposable(e),e}function a(e){s?.markAsDisposed(e)}function l(e,t){s?.setParent(e,t)}function h(e){if(r.f.is(e)){const n=[];for(const i of e)if(i)try{i.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function c(...e){const t=d((()=>h(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function d(e){const t=o({dispose:i((()=>{a(t),e()}))});return t}class u{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{h(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?u.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class g{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new u,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class f{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class m{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{h(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});class i{static{this.Undefined=new i(void 0)}constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},4320:(e,t,n)=>{"use strict";var i,r;n.d(t,{cO:()=>c,db:()=>d,fT:()=>o,qK:()=>h});class s{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[i]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(i=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[r]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends a{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class h extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class c{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class d{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});const i=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>i,v$:()=>h,zl:()=>u});var i,r=n(4383),s=n(8067),o=n(1508),a=n(9400),l=n(8821);function h(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(i||(i={}));const c=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,i.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(c){return r.dz(c),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const o=this._ports[t],l=this._connectionTokens[t];let h=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(h+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:i.vscodeRemoteResource,authority:`${n}:${o}`,path:this._remoteResourcesPath,query:h})}};class d{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===i.vscodeRemote?c.rewrite(e):e.scheme!==i.file||!s.ib&&s.lg!==`${i.vscodeFileResource}://${d.FALLBACK_AUTHORITY}`?e:e.with({scheme:i.vscodeFileResource,authority:e.authority||d.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=l.fj(t,e);return a.r.file(n)}return a.r.parse(t.toUrl(e))}}const u=new d;var g;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let i;"string"===typeof e?i=new URL(e).searchParams:e instanceof URL?i=e.searchParams:a.r.isUri(e)&&(i=new URL(e.toString(!0)).searchParams);const r=i?.get(n);if(r)return t.get(r)},e.addSearchParam=function(e,t,i){if(!globalThis.crossOriginIsolated)return;const r=t&&i?"3":i?"2":"1";e instanceof URLSearchParams?e.set(n,r):e[n]=r}}(g||(g={}))},146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>r,aI:()=>i,kT:()=>s});Object.prototype.hasOwnProperty;function i(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else{const s=[];for(r in e)s.push(r);s.sort();const o=[];for(r in t)o.push(r);if(o.sort(),!i(s,o))return!1;for(n=0;n<s.length;n++)if(!i(e[s[n]],t[s[n]]))return!1}return!0}function r(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function s(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i={};for(const r of e)i[r]=n(r);return i}},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>E,pD:()=>x,LC:()=>A,fj:()=>C,S8:()=>T,SA:()=>y,V8:()=>L,hd:()=>S,Vn:()=>I,IN:()=>w});var i=n(8067);let r;const s=globalThis.vscode;if("undefined"!==typeof s&&"undefined"!==typeof s.process){const e=s.process;r={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else r="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return i.uF?"win32":i.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=r.cwd,a=(r.env,r.platform),l=46,h=47,c=92,d=58;class u extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function g(e,t){if("string"!==typeof e)throw new u(t,"string",e)}const f="win32"===a;function m(e){return e===h||e===c}function p(e){return e===h}function _(e){return e>=65&&e<=90||e>=97&&e<=122}function b(e,t,n,i){let r="",s=0,o=-1,a=0,c=0;for(let d=0;d<=e.length;++d){if(d<e.length)c=e.charCodeAt(d);else{if(i(c))break;c=h}if(i(c)){if(o===d-1||1===a);else if(2===a){if(r.length<2||2!==s||r.charCodeAt(r.length-1)!==l||r.charCodeAt(r.length-2)!==l){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",s=0):(r=r.slice(0,e),s=r.length-1-r.lastIndexOf(n)),o=d,a=0;continue}if(0!==r.length){r="",s=0,o=d,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(o+1,d)}`:r=e.slice(o+1,d),s=d-o-1;o=d,a=0}else c===l&&-1!==a?++a:a=-1}return r}function v(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new u(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${r=t.ext,r?`${"."===r[0]?"":"."}${r}`:""}`;var r;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const w={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let s;if(r>=0){if(s=e[r],g(s,`paths[${r}]`),0===s.length)continue}else 0===t.length?s=o():(s={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||o(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===c)&&(s=`${t}\\`));const a=s.length;let l=0,h="",u=!1;const f=s.charCodeAt(0);if(1===a)m(f)&&(l=1,u=!0);else if(m(f))if(u=!0,m(s.charCodeAt(1))){let e=2,t=e;for(;e<a&&!m(s.charCodeAt(e));)e++;if(e<a&&e!==t){const n=s.slice(t,e);for(t=e;e<a&&m(s.charCodeAt(e));)e++;if(e<a&&e!==t){for(t=e;e<a&&!m(s.charCodeAt(e));)e++;e!==a&&e===t||(h=`\\\\${n}\\${s.slice(t,e)}`,l=e)}}}else l=1;else _(f)&&s.charCodeAt(1)===d&&(h=s.slice(0,2),l=2,a>2&&m(s.charCodeAt(2))&&(u=!0,l=3));if(h.length>0)if(t.length>0){if(h.toLowerCase()!==t.toLowerCase())continue}else t=h;if(i){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,i=u,u&&t.length>0)break}return n=b(n,!i,"\\",m),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return p(s)?"\\":e;if(m(s))if(r=!0,m(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!m(e.charCodeAt(r));)r++;if(r<t&&r!==s){const o=e.slice(s,r);for(s=r;r<t&&m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!m(e.charCodeAt(r));)r++;if(r===t)return`\\\\${o}\\${e.slice(s)}\\`;r!==s&&(n=`\\\\${o}\\${e.slice(s,r)}`,i=r)}}}else i=1;else _(s)&&e.charCodeAt(1)===d&&(n=e.slice(0,2),i=2,t>2&&m(e.charCodeAt(2))&&(r=!0,i=3));let o=i<t?b(e.slice(i),!r,"\\",m):"";return 0!==o.length||r||(o="."),o.length>0&&m(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return m(n)||t>2&&_(n)&&e.charCodeAt(1)===d&&m(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){const i=e[s];g(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&m(n.charCodeAt(0))){++r;const e=n.length;e>1&&m(n.charCodeAt(1))&&(++r,e>2&&(m(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&m(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return w.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const n=w.resolve(e),i=w.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===c;)r++;let s=e.length;for(;s-1>r&&e.charCodeAt(s-1)===c;)s--;const o=s-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===c;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===c;)l--;const h=l-a,d=o<h?o:h;let u=-1,f=0;for(;f<d;f++){const n=e.charCodeAt(r+f);if(n!==t.charCodeAt(a+f))break;n===c&&(u=f)}if(f!==d){if(-1===u)return i}else{if(h>d){if(t.charCodeAt(a+f)===c)return i.slice(a+f+1);if(2===f)return i.slice(a+f)}o>d&&(e.charCodeAt(r+f)===c?u=f:2===f&&(u=3)),-1===u&&(u=0)}let m="";for(f=r+u+1;f<=s;++f)f!==s&&e.charCodeAt(f)!==c||(m+=0===m.length?"..":"\\..");return a+=u,m.length>0?`${m}${i.slice(a,l)}`:(i.charCodeAt(a)===c&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=w.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===c){if(t.charCodeAt(1)===c){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(_(t.charCodeAt(0))&&t.charCodeAt(1)===d&&t.charCodeAt(2)===c)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return m(r)?e:".";if(m(r)){if(n=i=1,m(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&m(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!m(e.charCodeAt(r));)r++;if(r===t)return e;r!==s&&(n=i=r+1)}}}}else _(r)&&e.charCodeAt(1)===d&&(n=t>2&&m(e.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let a=t-1;a>=i;--a)if(m(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&g(t,"suffix"),g(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&_(e.charCodeAt(0))&&e.charCodeAt(1)===d&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(m(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(m(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){g(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===d&&_(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(m(t)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1),t===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:v.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return m(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(m(r)){if(i=1,m(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!m(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&m(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!m(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(_(r)&&e.charCodeAt(1)===d){if(n<=2)return t.root=t.dir=e,t;if(i=2,m(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let s=-1,o=i,a=-1,h=!0,c=e.length-1,u=0;for(;c>=i;--c)if(r=e.charCodeAt(c),m(r)){if(!h){o=c+1;break}}else-1===a&&(h=!1,a=c+1),r===l?-1===s?s=c:1!==u&&(u=1):-1!==s&&(u=-1);return-1!==a&&(-1===s||0===u||1===u&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==i?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},k=(()=>{if(f){const e=/\\/g;return()=>{const t=o().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>o()})(),y={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:k();g(r,`paths[${i}]`),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===h)}return t=b(t,!n,"/",p),n?`/${t}`:t.length>0?t:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h,n=e.charCodeAt(e.length-1)===h;return 0===(e=b(e,!t,"/",p)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(g(e,"path"),e.length>0&&e.charCodeAt(0)===h),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];g(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":y.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=y.resolve(e))===(t=y.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,s=i<r?i:r;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===h&&(o=a)}if(a===s)if(r>s){if(t.charCodeAt(1+a)===h)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>s&&(e.charCodeAt(1+a)===h?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==h||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===h){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===h){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===h){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){g(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==h)-1===i&&(r=!1,i=o+1),a===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:v.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===h;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,c=e.length-1,d=0;for(;c>=i;--c){const t=e.charCodeAt(c);if(t!==h)-1===o&&(a=!1,o=c+1),t===l?-1===r?r=c:1!==d&&(d=1):-1!==r&&(d=-1);else if(!a){s=c+1;break}}if(-1!==o){const i=0===s&&n?1:s;-1===r||0===d||1===d&&r===o-1&&r===s+1?t.base=t.name=e.slice(i,o):(t.name=e.slice(i,r),t.base=e.slice(i,o),t.ext=e.slice(r,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};y.win32=w.win32=w,y.posix=w.posix=y;const T=f?w.normalize:y.normalize,C=f?w.join:y.join,S=f?w.resolve:y.resolve,L=f?w.relative:y.relative,x=f?w.dirname:y.dirname,E=f?w.basename:y.basename,A=f?w.extname:y.extname,I=f?w.sep:y.sep},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>P,HZ:()=>A,OS:()=>D,UP:()=>H,_p:()=>R,cm:()=>z,gm:()=>F,ib:()=>E,j9:()=>x,lg:()=>I,nr:()=>W,uF:()=>S,zx:()=>L});var i=n(8209);const r="en";let s,o,a=!1,l=!1,h=!1,c=!1,d=!1,u=!1,g=!1,f=!1,m=!1,p=!1,_=null,b=null,v=null;const w=globalThis;let k;"undefined"!==typeof w.vscode&&"undefined"!==typeof w.vscode.process?k=w.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(k=process);const y="string"===typeof k?.versions?.electron,T=y&&"renderer"===k?.type;if("object"===typeof k){a="win32"===k.platform,l="darwin"===k.platform,h="linux"===k.platform,c=h&&!!k.env.SNAP&&!!k.env.SNAP_REVISION,g=y,m=!!k.env.CI||!!k.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=r,_=r;const e=k.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);s=t.userLocale,b=t.osLocale,_=t.resolvedLanguage||r,v=t.languagePack?.translationsConfigFile}catch(U){}d=!0}else"object"!==typeof navigator||T?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,f=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=o.indexOf("Linux")>=0,p=o?.indexOf("Mobi")>=0,u=!0,_=i.i8()||r,s=navigator.language.toLowerCase(),b=s);let C=0;l?C=1:a?C=3:h&&(C=2);const S=a,L=l,x=h,E=d,A=u,I=u&&"function"===typeof w.importScripts?w.origin:void 0,M=o,N="function"===typeof w.postMessage&&!w.importScripts,R=(()=>{if(N){const e=[];w.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void i.callback()}}));let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),w.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})(),D=l||f?2:a?1:3;let O=!0,B=!1;function z(){if(!B){B=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);O=513===t[0]}return O}const P=!!(M&&M.indexOf("Chrome")>=0),F=!!(M&&M.indexOf("Firefox")>=0),W=!!(!P&&M&&M.indexOf("Safari")>=0),H=!!(M&&M.indexOf("Edg/")>=0);M&&M.indexOf("Android")},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>m,P8:()=>u});var i=n(9326),r=n(6456),s=n(8821),o=n(8067),a=n(1508),l=n(9400);function h(e){return(0,l.I)(e,!0)}class c{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===r.ny.file)return i._1(h(e),h(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(g(e.authority,t.authority))return i._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return u(e)||e.authority}basename(e){return s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===r.ny.file?t=l.r.file(s.pD(h(e))).path:(t=s.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===r.ny.file?l.r.file(s.S8(h(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!g(e.authority,t.authority))return;if(e.scheme===r.ny.file){const n=s.V8(h(e),h(t));return o.uF?i.TH(n):n}let n=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,a.length);e<t&&(n.charCodeAt(e)===a.charCodeAt(e)||n.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);n=a.substr(0,e)+n.substr(e)}return s.SA.relative(n,a)}resolvePath(e,t){if(e.scheme===r.ny.file){const n=l.r.file(s.hd(h(e),t));return e.with({authority:n.authority,path:n.path})}return t=i.kb(t),e.with({path:s.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=s.Vn){if(e.scheme===r.ny.file){const n=h(e);return n.length>i.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.Vn){return f(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let n=!1;if(e.scheme===r.ny.file){const r=h(e);n=void 0!==r&&r.length===i.Zn(r).length&&r[r.length-1]===t}else{t="/";const i=e.path;n=1===i.length&&47===i.charCodeAt(i.length-1)}return n||f(e,t)?e:e.with({path:e.path+"/"})}}const d=new c((()=>!1)),u=(new c((e=>e.scheme!==r.ny.file||!o.j9)),new c((e=>!0)),d.isEqual.bind(d),d.isEqualOrParent.bind(d),d.getComparisonKey.bind(d),d.basenameOrAuthority.bind(d),d.basename.bind(d)),g=(d.extname.bind(d),d.dirname.bind(d),d.joinPath.bind(d),d.normalizePath.bind(d),d.relativePath.bind(d),d.resolvePath.bind(d),d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),f=d.hasTrailingPathSeparator.bind(d);d.removeTrailingPathSeparator.bind(d),d.addTrailingPathSeparator.bind(d);var m;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,i]=e.split(":");t&&i&&n.set(t,i)}));const i=t.path.substring(0,t.path.indexOf(";"));return i&&n.set(e.META_DATA_MIME,i),n}}(m||(m={}))},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const i=globalThis.performance&&"function"===typeof globalThis.performance.now;class r{static create(e){return new r(e)}constructor(e){this._now=i&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>N,AV:()=>s,E_:()=>E,HG:()=>u,LJ:()=>y,LU:()=>B,NB:()=>l,OS:()=>h,Q_:()=>v,Ss:()=>D,UD:()=>f,Wv:()=>b,Z5:()=>C,_J:()=>M,aC:()=>I,bm:()=>a,eY:()=>c,jy:()=>o,km:()=>L,lT:()=>g,ne:()=>R,ns:()=>w,pc:()=>k,r_:()=>O,tk:()=>z,tl:()=>W,uz:()=>d,y_:()=>H,z_:()=>T});var i=n(1788),r=n(1090);function s(e){return!e||"string"!==typeof e||0===e.trim().length}function o(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function h(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function c(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function d(e){return e.split(/\r\n|\r|\n/)}function u(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function g(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function f(e,t){return e<t?-1:e>t?1:0}function m(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){const i=e.charCodeAt(n),s=t.charCodeAt(r);if(i<s)return-1;if(i>s)return 1}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function p(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){let o=e.charCodeAt(n),a=t.charCodeAt(r);if(o===a)continue;if(o>=128||a>=128)return m(e.toLowerCase(),t.toLowerCase(),n,i,r,s);_(o)&&(o-=32),_(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=i-n,a=s-r;return o<a?-1:o>a?1:0}function _(e){return e>=97&&e<=122}function b(e){return e>=65&&e<=90}function v(e,t){return e.length===t.length&&0===p(e,t)}function w(e,t){const n=t.length;return!(t.length>e.length)&&0===p(e,t,0,n)}function k(e){return 55296<=e&&e<=56319}function y(e){return 56320<=e&&e<=57343}function T(e,t){return t-56320+(e-55296<<10)+65536}function C(e,t,n){const i=e.charCodeAt(n);if(k(i)&&n+1<t){const t=e.charCodeAt(n+1);if(y(t))return T(i,t)}return i}class S{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(y(n)&&t>1){const i=e.charCodeAt(t-2);if(k(i))return T(i,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=C(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class L{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new S(e,t)}nextGraphemeLength(){const e=F.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(P(i,r)){t.setOffset(n);break}i=r}return t.offset-n}prevGraphemeLength(){const e=F.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(P(r,i)){t.setOffset(n);break}i=r}return n-t.offset}eol(){return this._iterator.eol()}}let x;function E(e){return x||(x=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),x.test(e)}const A=/^[\t\n\r\x20-\x7E]*$/;function I(e){return A.test(e)}const M=/[\u2028\u2029]/;function N(e){return M.test(e)}function R(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function D(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const O=String.fromCharCode(65279);function B(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function z(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function P(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class F{static{this._INSTANCE=null}static getInstance(){return F._INSTANCE||(F._INSTANCE=new F),F._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}class W{static{this.ambiguousCharacterData=new r.d((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')))}static{this.cache=new i.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[i,r]of e)t.has(i)&&n.set(i,r);return n}const i=this.ambiguousCharacterData.value;let r,s=e.filter((e=>!e.startsWith("_")&&e in i));0===s.length&&(s=["_default"]);for(const a of s){r=n(r,t(i[a]))}const o=function(e,t){const n=new Map(e);for(const[i,r]of t)n.set(i,r);return n}(t(i._common),r);return new W(o)}))}static getInstance(e){return W.cache.get(Array.from(e))}static{this._locales=new r.d((()=>Object.keys(W.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return W._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}class H{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(H.getRawData())),this._data}static isInvisibleCharacter(e){return H.getData().has(e)}static get codePoints(){return H.getData()}}},631:(e,t,n)=>{"use strict";function i(e){return"string"===typeof e}function r(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){return"undefined"===typeof e}function o(e){return s(e)||null===e}n.d(t,{Gv:()=>r,Kg:()=>i,b0:()=>s,z:()=>o})},5152:(e,t,n)=>{"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>i,j:()=>r})},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>_,r:()=>d});var i=n(8821),r=n(8067);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const l="",h="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,i,r,c=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,c),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||l),this.query=i||l,this.fragment=r||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,c))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===i?i=this.path:null===i&&(i=l),void 0===r?r=this.query:null===r&&(r=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new g(t,n,i,r,s)}static parse(e,t=!1){const n=c.exec(e);return n?new g(n[2]||l,k(n[4]||l),k(n[5]||l),k(n[7]||l),k(n[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(r.uF&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new g("file",t,e,l,l)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=r.uF&&"file"===e.scheme?d.file(i.IN.join(_(e,!0),...t)).path:i.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new g(e);return t._formatted=e.external??null,t._fsPath=e._sep===u?e.fsPath??null:null,t}}return e}}const u=r.uF?1:void 0;class g extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const f={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,n){let i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=f[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function p(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=f[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function _(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r.uF&&(n=n.replace(/\//g,"\\")),n}function b(e,t){const n=t?p:m;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=h,i+=h),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),l&&(i+="#",i+=t?l:m(l,!1,!1)),i}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function k(e){return e.match(w)?e.replace(w,(e=>v(e))):e}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>v,SimpleWorkerServer:()=>y,create:()=>T,logOnceWebWorkerWarning:()=>u});var i=n(4383),r=n(1234),s=n(1484),o=n(6456),a=n(8067),l=n(1508);const h="default",c="$initialize";let d=!1;function u(e){a.HZ&&(d||(d=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.method=i,this.args=r,this.type=0}}class f{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class m{constructor(e,t,n,i,r){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=i,this.arg=r,this.type=2}}class p{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class _{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class b{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const i=String(++this._lastSentReq);return new Promise(((r,s)=>{this._pendingReplies[i]={resolve:r,reject:s},this._send(new g(this._workerId,i,e,t,n))}))}listen(e,t,n){let i=null;const s=new r.vl({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new m(this._workerId,i,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new _(this._workerId,i)),i=null}});return s.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,i)=>("string"!==typeof i||n[i]||(k(i)?n[i]=t=>this.listen(e,i,t):w(i)?n[i]=this.listen(e,i,void 0):36===i.charCodeAt(0)&&(n[i]=async(...n)=>(await(t?.()),this.sendMessage(e,i,n)))),n[i])};return new Proxy(Object.create(null),n)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new f(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,i.cU)(e.detail)),this._send(new f(this._workerId,t,void 0,(0,i.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new p(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class v extends s.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,i.dz)(e)}))),this._protocol=new b({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const r=globalThis.require;"undefined"!==typeof r&&"function"===typeof r.getConfig?n=r.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(h,c,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(h,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const i=this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on main thread`);if(k(t)){const r=i[t].call(i,n);if("function"!==typeof r)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return r}if(w(t)){const n=i[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function w(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function k(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class y{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new b({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===h&&t===c)return this.initialize(n[0],n[1],n[2]);const i=e===h?this._requestHandler:this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof i[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i[t].apply(i,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,t,n){const i=e===h?this._requestHandler:this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on worker thread`);if(k(t)){const e=i[t].call(i,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(w(t)){const e=i[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,i){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${i}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function T(e){return new y(e,null)}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var i=n(5152);class r{constructor(e){const t=(0,i.W)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,i.W)(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>_,aZ:()=>p,l5:()=>k,lQ:()=>v,s7:()=>C,sH:()=>y,sN:()=>b,ss:()=>w,yI:()=>m,zp:()=>T});var i=n(8209),r=n(7661),s=n(5845),o=n(5724);const a=(0,s.x1A)("editor.lineHighlightBackground",null,i.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,s.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.b1q},i.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,s.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},i.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,s.x1A)("editor.symbolHighlightBackground",{dark:s.Ubg,light:s.Ubg,hcDark:null,hcLight:null},i.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},i.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,s.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:r.Q1.black,hcDark:r.Q1.white,hcLight:"#0F4A85"},i.kg("caret","Color of the editor cursor."))),h=(0,s.x1A)("editorCursor.background",null,i.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),c=((0,s.x1A)("editorMultiCursor.primary.foreground",l,i.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.primary.background",h,i.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorMultiCursor.secondary.foreground",l,i.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.secondary.background",h,i.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},i.kg("editorWhitespaces","Color of whitespace characters in the editor."))),d=((0,s.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorLineNumbers","Color of editor line numbers.")),(0,s.x1A)("editorIndentGuide.background",c,i.kg("editorIndentGuides","Color of the editor indentation guides."),!1,i.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),u=(0,s.x1A)("editorIndentGuide.activeBackground",c,i.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,i.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),g=((0,s.x1A)("editorIndentGuide.background1",d,i.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.background2","#00000000",i.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.background3","#00000000",i.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.background4","#00000000",i.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.background5","#00000000",i.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.background6","#00000000",i.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,s.x1A)("editorIndentGuide.activeBackground1",u,i.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.activeBackground2","#00000000",i.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.activeBackground3","#00000000",i.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.activeBackground4","#00000000",i.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.activeBackground5","#00000000",i.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.activeBackground6","#00000000",i.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,s.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.buw,hcLight:s.buw},i.kg("editorActiveLineNumber","Color of editor active line number"),!1,i.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),f=((0,s.x1A)("editorLineNumber.activeForeground",g,i.kg("editorActiveLineNumber","Color of editor active line number")),(0,s.x1A)("editorLineNumber.dimmedForeground",null,i.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,s.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:r.Q1.lightgrey,hcDark:r.Q1.white,hcLight:"#292929"},i.kg("editorRuler","Color of the editor rulers.")),(0,s.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},i.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,s.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},i.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,s.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.b1q,hcLight:s.b1q},i.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,s.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},i.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,s.x1A)("editorOverviewRuler.background",null,i.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,s.x1A)("editorGutter.background",s.YtV,i.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,s.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:s.b1q},i.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,s.x1A)("editorUnnecessaryCode.opacity",{dark:r.Q1.fromHex("#000a"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,s.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#fff").transparent(.8),hcLight:r.Q1.fromHex("#292929").transparent(.8)},i.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,s.x1A)("editorGhostText.foreground",{dark:r.Q1.fromHex("#ffffff56"),light:r.Q1.fromHex("#0007"),hcDark:null,hcLight:null},i.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,s.x1A)("editorGhostText.background",null,i.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new r.Q1(new r.bU(0,122,204,.6))),m=((0,s.x1A)("editorOverviewRuler.rangeHighlightForeground",f,i.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editorOverviewRuler.errorForeground",{dark:new r.Q1(new r.bU(255,18,18,.7)),light:new r.Q1(new r.bU(255,18,18,.7)),hcDark:new r.Q1(new r.bU(255,50,50,1)),hcLight:"#B5200D"},i.kg("overviewRuleError","Overview ruler marker color for errors."))),p=(0,s.x1A)("editorOverviewRuler.warningForeground",{dark:s.Hng,light:s.Hng,hcDark:s.Stt,hcLight:s.Stt},i.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),_=(0,s.x1A)("editorOverviewRuler.infoForeground",{dark:s.pOz,light:s.pOz,hcDark:s.IIb,hcLight:s.IIb},i.kg("overviewRuleInfo","Overview ruler marker color for infos.")),b=(0,s.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},i.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),v=(0,s.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},i.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),w=(0,s.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},i.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),k=(0,s.x1A)("editorBracketHighlight.foreground4","#00000000",i.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),y=(0,s.x1A)("editorBracketHighlight.foreground5","#00000000",i.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),T=(0,s.x1A)("editorBracketHighlight.foreground6","#00000000",i.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),C=(0,s.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new r.Q1(new r.bU(255,18,18,.8)),light:new r.Q1(new r.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},i.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,s.x1A)("editorBracketPairGuide.background1","#00000000",i.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background2","#00000000",i.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background3","#00000000",i.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background4","#00000000",i.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background5","#00000000",i.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background6","#00000000",i.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground1","#00000000",i.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground2","#00000000",i.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground3","#00000000",i.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground4","#00000000",i.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground5","#00000000",i.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground6","#00000000",i.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorUnicodeHighlight.border",s.Hng,i.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,s.x1A)("editorUnicodeHighlight.background",s.whs,i.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const n=e.getColor(s.YtV),i=e.getColor(a),r=i&&!i.isTransparent()?i:n;r&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${r}; }`)}))},4454:(e,t,n)=>{"use strict";function i(e){let t=0,n=0,i=0,r=0;for(let s=0,o=e.length;s<o;s++){const a=e.charCodeAt(s);13===a?(0===t&&(n=s),t++,s+1<o&&10===e.charCodeAt(s+1)?(r|=2,s++):r|=3,i=s+1):10===a&&(r|=1,0===t&&(n=s),t++,i=s+1)}return 0===t&&(n=e.length),[t,n,e.length-i,r]}n.d(t,{W:()=>i})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,S:()=>l});var i=n(4383),r=n(4444),s=n(6677),o=n(6041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new i.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)t=Math.min(t,e[i].startLineNumber),n=Math.max(n,e[i].endLineNumberExclusive);return new a(t,n)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new i.D7(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new a(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new s.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new s.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new r.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,i=0,r=null;for(;n<this._normalizedRanges.length||i<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&i<e._normalizedRanges.length){const t=this._normalizedRanges[n],r=e._normalizedRanges[i];t.startLineNumber<r.startLineNumber?(s=t,n++):(s=r,i++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[i],i++);null===r?r=s:r.endLineNumberExclusive>=s.startLineNumber?r=new a(r.startLineNumber,Math.max(r.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(r),r=s)}return null!==r&&t.push(r),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const i=[];let r=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>r&&i.push(new a(r,e.startLineNumber)),r=e.endLineNumberExclusive}return r<e.endLineNumberExclusive&&i.push(new a(r,e.endLineNumberExclusive)),new l(i)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,i=0;for(;n<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const r=this._normalizedRanges[n],s=e._normalizedRanges[i],o=r.intersect(s);o&&!o.isEmpty&&t.push(o),r.endLineNumberExclusive<s.endLineNumberExclusive?n++:i++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var i=n(4383);class r{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let i=n;for(;i<t.length&&t[i].start<=e.endExclusive;)i++;if(n===i)t.splice(n,0,e);else{const s=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[i-1].endExclusive);t.splice(n,i-n,new r(s,o))}}static tryCreate(e,t){if(!(e>t))return new r(e,t)}static ofLength(e){return new r(0,e)}static ofStartAndLength(e,t){return new r(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new i.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new r(this.start+e,this.endExclusive+e)}deltaStart(e){return new r(this.start+e,this.endExclusive)}deltaEnd(e){return new r(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new r(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new r(t,n)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new i.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new i.D7(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){return(0|e.column)-(0|t.column)}return n-i}clone(){return new i(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var i=n(3069);class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return r.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return r.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,h=t.endLineNumber,c=t.endColumn;return n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),s>h?(s=h,o=c):s===h&&(o=Math.min(o,c)),n>s||n===s&&i>o?null:new r(n,i,s,o)}equalsRange(e){return r.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return r.getEndPosition(this)}static getEndPosition(e){return new i.y(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){return(0|e.endColumn)-(0|t.endColumn)}return n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var i=n(3069),r=n(6677);class s extends r.Q{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new i.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new i.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new s(e,t,n,i):new s(n,i,e,t)}}},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var i=n(3069),r=n(6677);class s{static{this.zero=new s(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const i of e)"\n"===i?(t++,n=0):n++;return new s(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new r.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new r.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new i.y(e.lineNumber,e.column+this.columnCount):new i.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>o,Ld:()=>s,Th:()=>l});var i=n(2522),r=n(8925);const s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=s;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const a=new r.w;function l(e,t,n,r,s){if(t=o(t),s||(s=i.f.first(a)),n.length>s.maxLen){let i=e-s.maxLen/2;return i<0?i=0:r+=i,l(e,t,n=n.substring(i,e+s.maxLen/2),r,s)}const c=Date.now(),d=e-1-r;let u=-1,g=null;for(let i=1;!(Date.now()-c>=s.timeBudget);i++){const e=d-s.windowSize*i;t.lastIndex=Math.max(0,e);const r=h(t,n,d,u);if(!r&&g)break;if(g=r,e<=0)break;u=e}if(g){const e={word:g[0],startColumn:r+1+g.index,endColumn:r+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function h(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}a.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});class i{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),i=this.getFontStyle(e);let r=`color: ${t[n]};`;1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;");let s="";return 4&i&&(s+=" underline"),8&i&&(s+=" line-through"),s&&(r+=`text-decoration:${s};`),r}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>p,ou:()=>m,dG:()=>T,OB:()=>C});var i=n(9493),r=(n(9400),n(1234)),s=n(1484);class o{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new r.vl,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,s.s)((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();const n=new a(this,e,t);return this._factories.set(e,n),(0,s.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class a extends s.jG{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,h,c,d,u,g,f=n(8209);class m{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class p{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,i.W.symbolMethod),t.set(1,i.W.symbolFunction),t.set(2,i.W.symbolConstructor),t.set(3,i.W.symbolField),t.set(4,i.W.symbolVariable),t.set(5,i.W.symbolClass),t.set(6,i.W.symbolStruct),t.set(7,i.W.symbolInterface),t.set(8,i.W.symbolModule),t.set(9,i.W.symbolProperty),t.set(10,i.W.symbolEvent),t.set(11,i.W.symbolOperator),t.set(12,i.W.symbolUnit),t.set(13,i.W.symbolValue),t.set(15,i.W.symbolEnum),t.set(14,i.W.symbolConstant),t.set(15,i.W.symbolEnum),t.set(16,i.W.symbolEnumMember),t.set(17,i.W.symbolKeyword),t.set(27,i.W.symbolSnippet),t.set(18,i.W.symbolText),t.set(19,i.W.symbolColor),t.set(20,i.W.symbolFile),t.set(21,i.W.symbolReference),t.set(22,i.W.symbolCustomColor),t.set(23,i.W.symbolFolder),t.set(24,i.W.symbolTypeParameter),t.set(25,i.W.account),t.set(26,i.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=i.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let i=n.get(e);return"undefined"!==typeof i||t||(i=9),i}}(h||(h={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(c||(c={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(d||(d={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(u||(u={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(g||(g={}));(0,f.kg)("Array","array"),(0,f.kg)("Boolean","boolean"),(0,f.kg)("Class","class"),(0,f.kg)("Constant","constant"),(0,f.kg)("Constructor","constructor"),(0,f.kg)("Enum","enumeration"),(0,f.kg)("EnumMember","enumeration member"),(0,f.kg)("Event","event"),(0,f.kg)("Field","field"),(0,f.kg)("File","file"),(0,f.kg)("Function","function"),(0,f.kg)("Interface","interface"),(0,f.kg)("Key","key"),(0,f.kg)("Method","method"),(0,f.kg)("Module","module"),(0,f.kg)("Namespace","namespace"),(0,f.kg)("Null","null"),(0,f.kg)("Number","number"),(0,f.kg)("Object","object"),(0,f.kg)("Operator","operator"),(0,f.kg)("Package","package"),(0,f.kg)("Property","property"),(0,f.kg)("String","string"),(0,f.kg)("Struct","struct"),(0,f.kg)("TypeParameter","type parameter"),(0,f.kg)("Variable","variable");var _,b,v,w,k;!function(e){const t=new Map;t.set(0,i.W.symbolFile),t.set(1,i.W.symbolModule),t.set(2,i.W.symbolNamespace),t.set(3,i.W.symbolPackage),t.set(4,i.W.symbolClass),t.set(5,i.W.symbolMethod),t.set(6,i.W.symbolProperty),t.set(7,i.W.symbolField),t.set(8,i.W.symbolConstructor),t.set(9,i.W.symbolEnum),t.set(10,i.W.symbolInterface),t.set(11,i.W.symbolFunction),t.set(12,i.W.symbolVariable),t.set(13,i.W.symbolConstant),t.set(14,i.W.symbolString),t.set(15,i.W.symbolNumber),t.set(16,i.W.symbolBoolean),t.set(17,i.W.symbolArray),t.set(18,i.W.symbolObject),t.set(19,i.W.symbolKey),t.set(20,i.W.symbolNull),t.set(21,i.W.symbolEnumMember),t.set(22,i.W.symbolStruct),t.set(23,i.W.symbolEvent),t.set(24,i.W.symbolOperator),t.set(25,i.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=i.W.symbolProperty),n}}(_||(_={}));class y{static{this.Comment=new y("comment")}static{this.Imports=new y("imports")}static{this.Region=new y("region")}static fromValue(e){switch(e){case"comment":return y.Comment;case"imports":return y.Imports;case"region":return y.Region}return new y(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(b||(b={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(v||(v={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(w||(w={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(k||(k={}));const T=new o,C=new o;var S;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(S||(S={}))},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});const i=(0,n(3591).u1)("languageService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>h});var i=n(8209),r=n(1234),s=n(6359),o=n(1939),a=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new r.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};s.O.add("editor.modesRegistry",l);const h="plaintext";l.registerLanguage({id:h,extensions:[".txt"],aliases:[i.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),s.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>i,Dg:()=>l,F4:()=>u,L5:()=>d,Wo:()=>c,X2:()=>a,ZS:()=>r,nk:()=>h,vd:()=>g});var i,r,s,o=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(i||(i={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(r||(r={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function h(e){return e&&"function"===typeof e.read}class c{constructor(e,t,n,i,r,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=s}}class d{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class u{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>d,W5:()=>p,hB:()=>f,dr:()=>u,wC:()=>m});var i=n(1508),r=n(4320),s=n(534);class o extends s.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,i=e.length;n<i;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const i of this._getIntlSegmenterWordsOnLine(e)){if(i.index>t)break;n=i}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const a=new r.qK(10);var l=n(3069),h=n(6677),c=n(6223);class d{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(10===i)return!0;if(92===i){if(t++,t>=n)break;const i=e.charCodeAt(t);if(110===i||114===i||87===i)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=i.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(r){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new c.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let i=a.get(n);return i||(i=new o(e,t),a.set(n,i)),i}(this.wordSeparators,[]):null,n?this.searchString:null)}}function u(e,t,n){if(!n)return new c.Dg(e,null);const i=[];for(let r=0,s=t.length;r<s;r++)i[r]=t[r];return new c.Dg(e,i)}class g{constructor(e){const t=[];let n=0;for(let i=0,r=e.length;i<r;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;for(;n<i;){const r=n+((i-n)/2|0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}class f{static findMatches(e,t,n,i,r){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,n,new p(s.wordSeparators,s.regex),i,r):this._doFindMatchesLineByLine(e,n,s,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,s){let o,a,l=0;if(i?(l=i.findLineFeedCountBeforeOffset(r),o=t+r+l):o=t+r,i){const e=i.findLineFeedCountBeforeOffset(r+s.length)-l;a=o+s.length+e}else a=o+s.length;const c=e.getPositionAt(o),d=e.getPositionAt(a);return new h.Q(c.lineNumber,c.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,n,i,r){const s=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new g(o):null,l=[];let h,c=0;for(n.reset(0);h=n.next(o);)if(l[c++]=u(this._getMultilineMatchRange(e,s,o,a,h.index,h[0]),h,i),c>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const s=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,i,r);for(let l=t.startLineNumber+1;l<t.endLineNumber&&o<r;l++)o=this._findMatchesInLine(n,e.getLineContent(l),l,0,o,s,i,r);if(o<r){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,a,t.endLineNumber,0,o,s,i,r)}return s}static _findMatchesInLine(e,t,n,i,r,s,o,a){const l=e.wordSeparators;if(!o&&e.simpleSearch){const o=e.simpleSearch,d=o.length,u=t.length;let g=-d;for(;-1!==(g=t.indexOf(o,g+d));)if((!l||m(l,t,u,g,d))&&(s[r++]=new c.Dg(new h.Q(n,g+1+i,n,g+1+d+i),null),r>=a))return r;return r}const d=new p(e.wordSeparators,e.regex);let g;d.reset(0);do{if(g=d.next(t),g&&(s[r++]=u(new h.Q(n,g.index+1+i,n,g.index+1+g[0].length+i),g,o),r>=a))return r}while(g);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new p(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,s,i):this._doFindNextMatchLineByLine(e,n,s,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new l.y(t.lineNumber,1),s=e.getOffsetAt(r),o=e.getLineCount(),a=e.getValueInRange(new h.Q(r.lineNumber,r.column,o,e.getLineMaxColumn(o)),1),c="\r\n"===e.getEOL()?new g(a):null;n.reset(t.column-1);const d=n.next(a);return d?u(this._getMultilineMatchRange(e,s,a,c,d.index,d[0]),d,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s),a=this._findFirstMatchInLine(n,o,s,t.column,i);if(a)return a;for(let l=1;l<=r;l++){const t=(s+l-1)%r,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(n,o,t+1,1,i);if(a)return a}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const s=e.next(t);return s?u(new h.Q(n,s.index+1,n,s.index+1+s[0].length),s,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const s=new p(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,s,i):this._doFindPreviousMatchLineByLine(e,n,s,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new h.Q(1,1,t.lineNumber,t.column),n,i,9990);if(r.length>0)return r[r.length-1];const s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new l.y(s,e.getLineMaxColumn(s)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(n,o,s,i);if(a)return a;for(let l=1;l<=r;l++){const t=(r+s-l-1)%r,o=e.getLineContent(t+1),a=this._findLastMatchInLine(n,o,t+1,i);if(a)return a}return null}static _findLastMatchInLine(e,t,n,i){let r,s=null;for(e.reset(0);r=e.next(t);)s=u(new h.Q(n,r.index+1,n,r.index+1+r[0].length),r,i);return s}}function m(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const s=t.charCodeAt(i-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const s=t.charCodeAt(i+r);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}class p{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,s=n[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){i.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||m(this._wordSeparators,e,t,r,s))return n}while(n);return null}}},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>fe,createMonacoBaseAPI:()=>me});var i=n(8447),r=n(1234);class s{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const o=new s,a=new s,l=new s,h=new Array(230),c={},d=[],u=Object.create(null),g=Object.create(null),f=[],m=[];for(let pe=0;pe<=193;pe++)f[pe]=-1;for(let pe=0;pe<=132;pe++)m[pe]=-1;var p;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[e,t,s,p,_,b,v,w,k]=r;if(i[t]||(i[t]=!0,d[t]=s,u[s]=t,g[s.toLowerCase()]=t,e&&(f[t]=p,0!==p&&3!==p&&5!==p&&4!==p&&6!==p&&57!==p&&(m[p]=t))),!n[p]){if(n[p]=!0,!_)throw new Error(`String representation missing for key code ${p} around scan code ${s}`);o.define(p,_),a.define(p,w||_),l.define(p,k||w||_)}b&&(h[b]=p),v&&(c[v]=p)}m[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return o.keyCodeToStr(e)}}(p||(p={}));var _,b,v,w,k,y,T,C,S,L,x,E,A,I,M,N,R,D,O,B,z,P,F,W,H,U,q,V,j,G,K,$,Q,Y,X,J,Z,ee,te,ne,ie,re,se,oe,ae,le,he=n(9400),ce=n(3069),de=n(6677),ue=n(5326),ge=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(_||(_={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(b||(b={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(v||(v={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(w||(w={})),function(e){e[e.Deprecated=1]="Deprecated"}(k||(k={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(y||(y={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(T||(T={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(C||(C={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(S||(S={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(L||(L={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(x||(x={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(E||(E={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(A||(A={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(I||(I={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(M||(M={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(N||(N={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(R||(R={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(D||(D={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(O||(O={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(B||(B={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(z||(z={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(P||(P={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(F||(F={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(W||(W={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(H||(H={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(U||(U={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(q||(q={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(V||(V={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(j||(j={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(G||(G={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(K||(K={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}($||($={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(Q||(Q={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(Y||(Y={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(X||(X={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(J||(J={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Z||(Z={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(ie||(ie={})),function(e){e[e.Deprecated=1]="Deprecated"}(re||(re={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(se||(se={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(oe||(oe={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ae||(ae={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class fe{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function me(){return{editor:void 0,languages:void 0,CancellationTokenSource:i.Qi,Emitter:r.vl,KeyCode:P,KeyMod:fe,Position:ce.y,Range:de.Q,Selection:ue.L,SelectionDirection:ee,MarkerSeverity:F,MarkerTag:W,Uri:he.r,Token:ge.ou}}},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>Pe,EditorSimpleWorker:()=>Fe,create:()=>We});class i{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var r=n(5600);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function o(e,t,n){return new c(new s(e),new s(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}static Copy2(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}}class h{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class c{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,s]=c._getElements(e),[o,a,l]=c._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(c._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=(0,r.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return c._getStrictElement(this._originalSequence,e)===c._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,i,s);return r&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,r,s){for(s[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let s;return n<=r?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new i(e,0,n,r-n+1)]):e<=t?(a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new i(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],h=this.ComputeRecursionPoint(e,t,n,r,o,l,s),c=o[0],d=l[0];if(null!==h)return h;if(!s[0]){const o=this.ComputeDiffRecursive(e,c,n,d,s);let a=[];return a=s[0]?[new i(c+1,t-(c+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(c+1,t,d+1,r,s),this.ConcatenateChanges(o,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,s,o,a,l,c,d,u,g,f,m,p,_,b,v){let w=null,k=null,y=new h,T=t,C=n,S=f[0]-_[0]-r,L=-1073741824,x=this.m_forwardHistory.length-1;do{const t=S+e;t===T||t<C&&c[t-1]<c[t+1]?(m=(u=c[t+1])-S-r,u<L&&y.MarkNextChange(),L=u,y.AddModifiedElement(u+1,m),S=t+1-e):(m=(u=c[t-1]+1)-S-r,u<L&&y.MarkNextChange(),L=u-1,y.AddOriginalElement(u,m+1),S=t-1-e),x>=0&&(e=(c=this.m_forwardHistory[x])[0],T=1,C=c.length-1)}while(--x>=-1);if(w=y.getReverseChanges(),v[0]){let e=f[0]+1,t=_[0]+1;if(null!==w&&w.length>0){const n=w[w.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}k=[new i(e,g-e+1,t,p-t+1)]}else{y=new h,T=o,C=a,S=f[0]-_[0]-l,L=1073741824,x=b?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+s;e===T||e<C&&d[e-1]>=d[e+1]?(m=(u=d[e+1]-1)-S-l,u>L&&y.MarkNextChange(),L=u+1,y.AddOriginalElement(u+1,m+1),S=e+1-s):(m=(u=d[e-1])-S-l,u>L&&y.MarkNextChange(),L=u,y.AddModifiedElement(u+1,m+1),S=e-1-s),x>=0&&(s=(d=this.m_reverseHistory[x])[0],T=1,C=d.length-1)}while(--x>=-1);k=y.getChanges()}return this.ConcatenateChanges(w,k)}ComputeRecursionPoint(e,t,n,r,s,o,a){let h=0,c=0,d=0,u=0,g=0,f=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(r-n),p=m+1,_=new Int32Array(p),b=new Int32Array(p),v=r-n,w=t-e,k=e-n,y=t-r,T=(w-v)%2===0;_[v]=e,b[w]=t,a[0]=!1;for(let C=1;C<=m/2+1;C++){let m=0,S=0;d=this.ClipDiagonalBound(v-C,C,v,p),u=this.ClipDiagonalBound(v+C,C,v,p);for(let e=d;e<=u;e+=2){h=e===d||e<u&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,c=h-(e-v)-k;const n=h;for(;h<t&&c<r&&this.ElementsAreEqual(h+1,c+1);)h++,c++;if(_[e]=h,h+c>m+S&&(m=h,S=c),!T&&Math.abs(e-w)<=C-1&&h>=b[e])return s[0]=h,o[0]=c,n<=b[e]&&C<=1448?this.WALKTRACE(v,d,u,k,w,g,f,y,_,b,h,t,s,c,r,o,T,a):null}const L=(m-e+(S-n)-C)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,L))return a[0]=!0,s[0]=m,o[0]=S,L>0&&C<=1448?this.WALKTRACE(v,d,u,k,w,g,f,y,_,b,h,t,s,c,r,o,T,a):(e++,n++,[new i(e,t-e+1,n,r-n+1)]);g=this.ClipDiagonalBound(w-C,C,w,p),f=this.ClipDiagonalBound(w+C,C,w,p);for(let i=g;i<=f;i+=2){h=i===g||i<f&&b[i-1]>=b[i+1]?b[i+1]-1:b[i-1],c=h-(i-w)-y;const l=h;for(;h>e&&c>n&&this.ElementsAreEqual(h,c);)h--,c--;if(b[i]=h,T&&Math.abs(i-v)<=C&&h<=_[i])return s[0]=h,o[0]=c,l>=_[i]&&C<=1448?this.WALKTRACE(v,d,u,k,w,g,f,y,_,b,h,t,s,c,r,o,T,a):null}if(C<=1447){let e=new Int32Array(u-d+2);e[0]=v-d+1,l.Copy2(_,d,e,1,u-d+1),this.m_forwardHistory.push(e),e=new Int32Array(f-g+2),e[0]=w-g+1,l.Copy2(b,g,e,1,f-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(v,d,u,k,w,g,f,y,_,b,h,t,s,c,r,o,T,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,h=n.modifiedStart-e;if(t<i||h<r)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(h,h+n.modifiedLength))break;const c=(t===i&&h===r?5:0)+this._boundaryScore(t,n.originalLength,h,n.modifiedLength);c>l&&(l=c,a=e)}n.originalStart-=a,n.modifiedStart-=a;const h=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],h)&&(e[t-1]=h[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],i=e[t],r=i.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=i.originalStart+i.originalLength,a=o-s,l=n.modifiedStart,h=i.modifiedStart+i.modifiedLength,c=h-l;if(r<5&&a<20&&c<20){const e=this._findBetterContiguousSequence(s,a,l,c,r);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,i.originalStart=t+r,i.modifiedStart=s+r,i.originalLength=o-i.originalStart,i.modifiedLength=h-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,r){if(t<r||i<r)return null;const s=e+t-r+1,o=n+i-r+1;let a=0,l=0,h=0;for(let c=e;c<s;c++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(c,e,r);t>0&&t>a&&(a=t,l=c,h=e)}return a>0?[l,h]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(r,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2===0;if(e<0){return r===(n%2===0)?0:1}return r===((i-n-1)%2===0)?i-1:i-2}}var d=n(6677),u=n(534);class g{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;r<s;r++)i[r]=n;this._data=i,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class f{constructor(e){let t=0,n=0;for(let r=0,s=e.length;r<s;r++){const[i,s,o]=e[r];s>t&&(t=s),i>n&&(n=i),o>n&&(n=o)}t++,n++;const i=new g(n,t,0);for(let r=0,s=e.length;r<s;r++){const[t,n,s]=e[r];i.set(t,n,s)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let m=null;let p=null;class _{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=function(){return null===m&&(m=new f([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),m}()){const n=function(){if(null===p){p=new u.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)p.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)p.set(t.charCodeAt(n),2)}return p}(),i=[];for(let r=1,s=e.getLineCount();r<=s;r++){const s=e.getLineContent(r),o=s.length;let a=0,l=0,h=0,c=1,d=!1,u=!1,g=!1,f=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===c){let t;switch(o){case 40:d=!0,t=0;break;case 41:t=d?0:1;break;case 91:g=!0,u=!0,t=0;break;case 93:g=!1,t=u?0:1;break;case 123:f=!0,t=0;break;case 125:t=f?0:1;break;case 39:case 34:case 96:t=h===o?1:39===h||34===h||96===h?0:1;break;case 42:t=42===h?1:0;break;case 124:t=124===h?1:0;break;case 32:t=g?0:1;break;default:t=n.get(o)}1===t&&(i.push(_._createLink(n,s,r,l,a)),e=!0)}else if(12===c){let t;91===o?(u=!0,t=0):t=n.get(o),1===t?e=!0:c=13}else c=t.nextState(c,o),0===c&&(e=!0);e&&(c=1,d=!1,u=!1,f=!1,l=a+1,h=o),a++}13===c&&i.push(_._createLink(n,s,r,l,o))}return i}}class b{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new b}navigateValueSet(e,t,n,i,r){if(e&&t){const n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){const e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,s=e.length;null===i&&r<s;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}var v=n(4272),w=n(718),k=n(8381),y=n(4855);class T{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class C{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var S=n(4383),L=n(6571),x=n(3069),E=n(6782),A=n(4444);n(973);class I{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class M{static inverse(e,t,n){const i=[];let r=1,s=1;for(const a of e){const e=new M(new L.M(r,a.original.startLineNumber),new L.M(s,a.modified.startLineNumber));e.modified.isEmpty||i.push(e),r=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new M(new L.M(r,t+1),new L.M(s,n+1));return o.modified.isEmpty||i.push(o),i}static clip(e,t,n){const i=[];for(const r of e){const e=r.original.intersect(t),s=r.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&i.push(new M(e,s))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new M(this.modified,this.original)}join(e){return new M(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new O(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new S.D7("not a valid diff");return new O(new d.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new d.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new O(new d.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new d.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(R(this.original.endLineNumberExclusive,e)&&R(this.modified.endLineNumberExclusive,t))return new O(new d.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new d.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new O(d.Q.fromPositions(new x.y(this.original.startLineNumber,1),N(new x.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),d.Q.fromPositions(new x.y(this.modified.startLineNumber,1),N(new x.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new O(d.Q.fromPositions(N(new x.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),N(new x.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),d.Q.fromPositions(N(new x.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),N(new x.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new S.D7}}function N(e,t){if(e.lineNumber<1)return new x.y(1,1);if(e.lineNumber>t.length)return new x.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new x.y(e.lineNumber,n.length+1):e}function R(e,t){return e>=1&&e<=t.length}class D extends M{static fromRangeMappings(e){const t=L.M.join(e.map((e=>L.M.fromRangeInclusive(e.originalRange)))),n=L.M.join(e.map((e=>L.M.fromRangeInclusive(e.modifiedRange))));return new D(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new D(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new D(this.original,this.modified,[this.toRangeMapping()])}}class O{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],i=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition()))throw new S.D7("Range mappings must be sorted")}}constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new O(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new I(this.originalRange,t)}}var B=n(1508);class z{computeDiff(e,t,n){const i=new q(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),r=[];let s=null;for(const o of i.changes){let e,t;e=0===o.originalEndLineNumber?new L.M(o.originalStartLineNumber+1,o.originalStartLineNumber+1):new L.M(o.originalStartLineNumber,o.originalEndLineNumber+1),t=0===o.modifiedEndLineNumber?new L.M(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):new L.M(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let n=new D(e,t,o.charChanges?.map((e=>new O(new d.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new d.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modified.endLineNumberExclusive!==n.modified.startLineNumber&&s.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new D(s.original.join(n.original),s.modified.join(n.modified),s.innerChanges&&n.innerChanges?s.innerChanges.concat(n.innerChanges):void 0),r.pop())),r.push(n),s=n}return(0,E.Ft)((()=>(0,E.Xo)(r,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new T(r,[],i.quitEarly)}}function P(e,t,n,i){return new c(e,t,n).ComputeDiff(i)}class F{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=V(e[i],1),n[i]=j(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const i=[],r=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,h=e?this._endColumns[a]:t.length+1;for(let e=l;e<h;e++)i[o]=t.charCodeAt(e-1),r[o]=a+1,s[o]=e,o++;!e&&a<n&&(i[o]=10,r[o]=a+1,s[o]=t.length+1,o++)}return new W(i,r,s)}}class W{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class H{constructor(e,t,n,i,r,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),h=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new H(i,r,s,o,a,l,h,c)}}class U{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,s,o){let a,l,h,c,d;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(h=i.getStartLineNumber(t.modifiedStart)-1,c=0):(h=i.getStartLineNumber(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=P(s,a,r,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),o=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(e)),d=[];for(let t=0,n=e.length;t<n;t++)d.push(H.createFromDiffChange(e[t],s,a))}}return new U(a,l,h,c,d)}}class q{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new F(e),this.modified=new F(t),this.continueLineDiff=G(n.maxComputationTime),this.continueCharDiff=G(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=P(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(U.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;r<n&&s<l;){const e=this.originalLines[r],t=this.modifiedLines[s];if(e!==t){{let n=V(e,1),o=V(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,s+1,1,o)}{let n=j(e,1),o=j(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,s+1,o,l)}}r++,s++}e&&(i.push(U.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new H(t,n,t,i,r,s,r,o)]),e.push(new U(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===r?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new H(t,n,t,i,r,s,r,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new H(t,n,t,i,r,s,r,o)),!0))}}function V(e,t){const n=B.HG(e);return-1===n?t:n+1}function j(e,t){const n=B.lT(e);return-1===n?t:n+2}function G(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var K=n(9861);class ${static trivial(e,t){return new $([new Q(A.L.ofLength(e.length),A.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new $([new Q(A.L.ofLength(e.length),A.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Q{static invert(e,t){const n=[];return(0,K.pN)(e,((e,i)=>{n.push(Q.fromOffsetPairs(e?e.getEndExclusives():Y.zero,i?i.getStarts():new Y(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new Q(new A.L(e.offset1,t.offset1),new A.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new S.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new Q(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Q(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new Q(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new Q(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new Q(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new Q(t,n)}getStarts(){return new Y(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Y(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class Y{static{this.zero=new Y(0,0)}static{this.max=new Y(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new Y(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class X{static{this.instance=new X}isValid(){return!0}}class J{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new S.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class Z{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}}function ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let i=0;for(let r=e.startLineNumber-1;r<e.endLineNumberExclusive-1;r++){const e=t[r];for(let t=0;t<e.length;t++){i++;const n=e[t],r=te.getKey(n);this.histogram[r]=(this.histogram[r]||0)+1}i++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=i}computeSimilarity(e){let t=0;const n=Math.max(this.histogram.length,e.histogram.length);for(let i=0;i<n;i++)t+=Math.abs((this.histogram[i]??0)-(e.histogram[i]??0));return 1-t/(this.totalCount+e.totalCount)}}class ne{compute(e,t,n=X.instance,i){if(0===e.length||0===t.length)return $.trivial(e,t);const r=new Z(e.length,t.length),s=new Z(e.length,t.length),o=new Z(e.length,t.length);for(let g=0;g<e.length;g++)for(let a=0;a<t.length;a++){if(!n.isValid())return $.trivialTimedOut(e,t);const l=0===g?0:r.get(g-1,a),h=0===a?0:r.get(g,a-1);let c;e.getElement(g)===t.getElement(a)?(c=0===g||0===a?0:r.get(g-1,a-1),g>0&&a>0&&3===s.get(g-1,a-1)&&(c+=o.get(g-1,a-1)),c+=i?i(g,a):1):c=-1;const d=Math.max(l,h,c);if(d===c){const e=g>0&&a>0?o.get(g-1,a-1):0;o.set(g,a,e+1),s.set(g,a,3)}else d===l?(o.set(g,a,0),s.set(g,a,1)):d===h&&(o.set(g,a,0),s.set(g,a,2));r.set(g,a,d)}const a=[];let l=e.length,h=t.length;function c(e,t){e+1===l&&t+1===h||a.push(new Q(new A.L(e+1,l),new A.L(t+1,h))),l=e,h=t}let d=e.length-1,u=t.length-1;for(;d>=0&&u>=0;)3===s.get(d,u)?(c(d,u),d--,u--):1===s.get(d,u)?d--:u--;return c(-1,-1),a.reverse(),new $(a,!1)}}class ie{compute(e,t,n=X.instance){if(0===e.length||0===t.length)return $.trivial(e,t);const i=e,r=t;function s(e,t){for(;e<i.length&&t<r.length&&i.getElement(e)===r.getElement(t);)e++,t++;return e}let o=0;const a=new se;a.set(0,s(0,0));const l=new oe;l.set(0,0===a.get(0)?null:new re(null,0,0,a.get(0)));let h=0;e:for(;;){if(o++,!n.isValid())return $.trivialTimedOut(i,r);const e=-Math.min(o,r.length+o%2),t=Math.min(o,i.length+o%2);for(h=e;h<=t;h+=2){let n=0;const o=h===t?-1:a.get(h+1),c=h===e?-1:a.get(h-1)+1;n++;const d=Math.min(Math.max(o,c),i.length),u=d-h;if(n++,d>i.length||u>r.length)continue;const g=s(d,u);a.set(h,g);const f=d===o?l.get(h+1):l.get(h-1);if(l.set(h,g!==d?new re(f,d,u,g-d):f),a.get(h)===i.length&&a.get(h)-h===r.length)break e}}let c=l.get(h);const d=[];let u=i.length,g=r.length;for(;;){const e=c?c.x+c.length:0,t=c?c.y+c.length:0;if(e===u&&t===g||d.push(new Q(new A.L(e,u),new A.L(t,g))),!c)break;u=c.x,g=c.y,c=c.prev}return d.reverse(),new $(d,!1)}}class re{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class se{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class oe{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}var ae=n(6041),le=n(4320);class he{constructor(e,t,n){this.lines=e,this.range=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let t=e[i-1],r=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(r=this.range.startColumn-1,t=t.substring(r)),this.lineStartOffsets.push(r);let s=0;if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const o=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-r-s,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));i<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new A.L(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=ge(e>0?this.elements[e-1]:-1),n=ge(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let i=0;return t!==n&&(i+=10,0===t&&1===n&&(i+=1)),i+=ue(t),i+=ue(n),i}translateOffset(e,t="right"){const n=(0,ae.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),i=e-this.firstElementOffsetByLineIdx[n];return new x.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+i+(0===i&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?d.Q.fromPositions(n,n):d.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!ce(this.elements[e]))return;let t=e;for(;t>0&&ce(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&ce(this.elements[n]);)n++;return new A.L(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){const t=(0,ae.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,ae.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new A.L(t,n)}}function ce(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const de={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function ue(e){return de[e]}function ge(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function fe(e,t,n,i,r,s){let{moves:o,excludedChanges:a}=function(e,t,n,i){const r=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),a=new Set;for(const l of s){let e,t=-1;for(const n of o){const i=l.computeSimilarity(n);i>t&&(t=i,e=n)}if(t>.9&&e&&(o.delete(e),r.push(new M(l.range,e.range)),a.add(l.source),a.add(e.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,i,r,s){const o=[],a=new le.db;for(const u of e)for(let e=u.original.startLineNumber;e<u.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new L.M(e,e+3)})}const l=[];e.sort((0,K.VE)((e=>e.modified.startLineNumber),K.U9));for(const u of e){let e=[];for(let t=u.modified.startLineNumber;t<u.modified.endLineNumberExclusive-2;t++){const i=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,r=new L.M(t,t+3),s=[];a.forEach(i,(({range:t})=>{for(const i of e)if(i.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&i.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return i.originalLineRange=new L.M(i.originalLineRange.startLineNumber,t.endLineNumberExclusive),i.modifiedLineRange=new L.M(i.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void s.push(i);const n={modifiedLineRange:r,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((0,K.Hw)((0,K.VE)((e=>e.modifiedLineRange.length),K.U9)));const h=new L.S,c=new L.S;for(const u of l){const e=u.modifiedLineRange.startLineNumber-u.originalLineRange.startLineNumber,t=h.subtractFrom(u.modifiedLineRange),n=c.subtractFrom(u.originalLineRange).getWithDelta(e),i=t.getIntersection(n);for(const r of i.ranges){if(r.length<3)continue;const t=r,n=r.delta(-e);o.push(new M(n,t)),h.addRange(t),c.addRange(n)}}o.sort((0,K.VE)((e=>e.original.startLineNumber),K.U9));const d=new ae.vJ(e);for(let u=0;u<o.length;u++){const t=o[u],n=d.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=(0,ae.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),g=d.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),f=(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),m=Math.max(g.original.endLineNumberExclusive-t.original.endLineNumberExclusive,f.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let p,_;for(p=0;p<l;p++){const e=t.original.startLineNumber-p-1,n=t.modified.startLineNumber-p-1;if(e>i.length||n>r.length)break;if(h.contains(n)||c.contains(e))break;if(!me(i[e-1],r[n-1],s))break}for(p>0&&(c.addRange(new L.M(t.original.startLineNumber-p,t.original.startLineNumber)),h.addRange(new L.M(t.modified.startLineNumber-p,t.modified.startLineNumber))),_=0;_<m;_++){const e=t.original.endLineNumberExclusive+_,n=t.modified.endLineNumberExclusive+_;if(e>i.length||n>r.length)break;if(h.contains(n)||c.contains(e))break;if(!me(i[e-1],r[n-1],s))break}_>0&&(c.addRange(new L.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+_)),h.addRange(new L.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+_))),(p>0||_>0)&&(o[u]=new M(new L.M(t.original.startLineNumber-p,t.original.endLineNumberExclusive+_),new L.M(t.modified.startLineNumber-p,t.modified.endLineNumberExclusive+_)))}return o}(e.filter((e=>!a.has(e))),i,r,t,n,s);return(0,K.E4)(o,l),o=function(e){if(0===e.length)return e;e.sort((0,K.VE)((e=>e.original.startLineNumber),K.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const i=t[t.length-1],r=e[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,o=r.modified.startLineNumber-i.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const i of e)t(i)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new ae.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new M(new L.M(1,1),new L.M(1,1)))!==(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function me(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=(new ie).compute(new he([e],new d.Q(1,1,1,e.length),!1),new he([t],new d.Q(1,1,1,t.length),!1),n);let r=0;const s=Q.invert(i.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||r++}));const o=function(t){let n=0;for(let i=0;i<e.length;i++)ee(t.charCodeAt(i))||n++;return n}(e.length>t.length?e:t);return r/o>.6&&o>10}function pe(e,t,n){let i=n;return i=_e(e,t,i),i=_e(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,s=n[i],o=i+1<n.length?n[i+1]:void 0,a=new A.L(r?r.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new A.L(r?r.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[i]=be(s,e,t,a,l):s.seq2Range.isEmpty&&(n[i]=be(s.swap(),t,e,l,a).swap())}return n}(e,t,i),i}function _e(e,t,n){if(0===n.length)return n;const i=[];i.push(n[0]);for(let s=1;s<n.length;s++){const r=i[i.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-r.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){i[i.length-1]=new Q(new A.L(r.seq1Range.start,o.seq1Range.endExclusive-n),new A.L(r.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}i.push(o)}const r=[];for(let s=0;s<i.length-1;s++){const n=i[s+1];let o=i[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const r=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<r&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===r){i[s+1]=new Q(new A.L(o.seq1Range.start+r,n.seq1Range.endExclusive),new A.L(o.seq2Range.start+r,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}r.push(o)}return i.length>0&&r.push(i[i.length-1]),r}function be(e,t,n,i,r){let s=1;for(;e.seq1Range.start-s>=i.start&&e.seq2Range.start-s>=r.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<i.endExclusive&&e.seq2Range.endExclusive+o<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,l=-1;for(let h=-s;h<=o;h++){const i=e.seq2Range.start+h,r=e.seq2Range.endExclusive+h,s=e.seq1Range.start+h,o=t.getBoundaryScore(s)+n.getBoundaryScore(i)+n.getBoundaryScore(r);o>l&&(l=o,a=h)}return e.delta(a)}class ve{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:we(this.lines[e-1]))+(e===this.lines.length?0:we(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function we(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class ke{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new ie}computeDiff(e,t,n){if(e.length<=1&&(0,K.aI)(e,t,((e,t)=>e===t)))return new T([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new T([new D(new L.M(1,e.length+1),new L.M(1,t.length+1),[new O(new d.Q(1,1,e.length,e[e.length-1].length+1),new d.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const i=0===n.maxComputationTimeMs?X.instance:new J(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),h=new ve(a,e),c=new ve(l,t),u=(()=>h.length+c.length<1700?this.dynamicProgrammingDiffing.compute(h,c,i,((n,i)=>e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99)):this.myersDiffingAlgorithm.compute(h,c,i))();let g=u.diffs,f=u.hitTimeout;g=pe(h,c,g),g=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const o=[i[0]];for(let a=1;a<i.length;a++){const l=i[a],h=o[o.length-1];function c(t,n){const i=new A.L(h.seq1Range.endExclusive,l.seq1Range.start);return e.getText(i).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}c(h,l)?(r=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}i=o}while(s++<10&&r);return i}(h,0,g);const m=[],p=n=>{if(r)for(let s=0;s<n;s++){const n=_+s,o=b+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new Q(new A.L(n,n+1),new A.L(o,o+1)),i,r);for(const e of s.mappings)m.push(e);s.hitTimeout&&(f=!0)}}};let _=0,b=0;for(const d of g){(0,E.Ft)((()=>d.seq1Range.start-_===d.seq2Range.start-b));p(d.seq1Range.start-_),_=d.seq1Range.endExclusive,b=d.seq2Range.endExclusive;const n=this.refineDiff(e,t,d,i,r);n.hitTimeout&&(f=!0);for(const e of n.mappings)m.push(e)}p(e.length-_);const v=ye(m,e,t);let w=[];return n.computeMoves&&(w=this.computeMoves(v,e,t,a,l,i,r)),(0,E.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function i(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const r of v){if(!r.innerChanges)return!1;for(const i of r.innerChanges){if(!(n(i.modifiedRange.getStartPosition(),t)&&n(i.modifiedRange.getEndPosition(),t)&&n(i.originalRange.getStartPosition(),e)&&n(i.originalRange.getEndPosition(),e)))return!1}if(!i(r.modified,t)||!i(r.original,e))return!1}return!0})),new T(v,w,f)}computeMoves(e,t,n,i,r,s,o){return fe(e,t,n,i,r,s).map((e=>{const i=ye(this.refineDiff(t,n,new Q(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new C(e,i)}))}refineDiff(e,t,n,i,r){var s;const o=(s=n,new M(new L.M(s.seq1Range.start+1,s.seq1Range.endExclusive+1),new L.M(s.seq2Range.start+1,s.seq2Range.endExclusive+1))).toRangeMapping2(e,t),a=new he(e,o.originalRange,r),l=new he(t,o.modifiedRange,r),h=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,i):this.myersDiffingAlgorithm.compute(a,l,i),c=!1;let d=h.diffs;d=pe(a,l,d),d=function(e,t,n){const i=Q.invert(n,e.length),r=[];let s=new Y(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let h=new Q(a,l);const c=h.intersect(o);let d=c.seq1Range.length,u=c.seq2Range.length;for(;i.length>0;){const n=i[0];if(!n.seq1Range.intersects(h.seq1Range)&&!n.seq2Range.intersects(h.seq2Range))break;const r=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new Q(r,s),a=o.intersect(n);if(d+=a.seq1Range.length,u+=a.seq2Range.length,h=h.join(o),!(h.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;i.shift()}d+u<2*(h.seq1Range.length+h.seq2Range.length)/3&&r.push(h),s=h.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let s;s=i&&(!r||i.seq1Range.start<r.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,r)}(a,l,d),d=function(e,t,n){const i=[];for(const r of n){const e=i[i.length-1];e&&(r.seq1Range.start-e.seq1Range.endExclusive<=2||r.seq2Range.start-e.seq2Range.endExclusive<=2)?i[i.length-1]=new Q(e.seq1Range.join(r.seq1Range),e.seq2Range.join(r.seq2Range)):i.push(r)}return i}(0,0,d),d=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const a=[i[0]];for(let l=1;l<i.length;l++){const h=i[l],c=a[a.length-1];function d(n,i){const r=new A.L(c.seq1Range.endExclusive,h.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const s=e.getText(r).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,u=e.countLinesIn(i.seq1Range),g=i.seq1Range.length,f=t.countLinesIn(i.seq2Range),m=i.seq2Range.length;function p(e){return Math.min(e,130)}return Math.pow(Math.pow(p(40*o+a),1.5)+Math.pow(p(40*l+d),1.5),1.5)+Math.pow(Math.pow(p(40*u+g),1.5)+Math.pow(p(40*f+m),1.5),1.5)>74184.96480721243}d(c,h)?(r=!0,a[a.length-1]=a[a.length-1].join(h)):a.push(h)}i=a}while(s++<10&&r);const o=[];return(0,K.kj)(i,((t,n,i)=>{let r=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new A.L(a.start,n.seq1Range.start));s(l)&&(r=r.deltaStart(-l.length));const h=e.getText(new A.L(n.seq1Range.endExclusive,a.endExclusive));s(h)&&(r=r.deltaEnd(h.length));const c=Q.fromOffsetPairs(t?t.getEndExclusives():Y.zero,i?i.getStarts():Y.max),d=r.intersect(c);o.length>0&&d.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(d):o.push(d)})),o}(a,l,d);const u=d.map((e=>new O(a.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:u,hitTimeout:h.hitTimeout}}}function ye(e,t,n,i=!1){const r=[];for(const s of(0,K.n)(e.map((e=>function(e,t,n){let i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const s=new L.M(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),o=new L.M(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new D(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];r.push(new D(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,E.Ft)((()=>{if(!i&&r.length>0){if(r[0].modified.startLineNumber!==r[0].original.startLineNumber)return!1;if(n.length-r[r.length-1].modified.endLineNumberExclusive!==t.length-r[r.length-1].original.endLineNumberExclusive)return!1}return(0,E.Xo)(r,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),r}const Te=()=>new z,Ce=()=>new ke;var Se=n(146),Le=n(6456),xe=n(7661);function Ee(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Ae(e,t,n,i){return{red:e/255,blue:n/255,green:t/255,alpha:i}}function Ie(e,t){const n=t.index,i=t[0].length;if(!n)return;const r=e.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Me(e,t){if(!e)return;const n=xe.Q1.Format.CSS.parseHex(t);return n?{range:e,color:Ae(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Ne(e,t,n){if(!e||1!==t.length)return;const i=Ee(t[0].values());return{range:e,color:Ae(i[0],i[1],i[2],n?i[3]:1)}}function Re(e,t,n){if(!e||1!==t.length)return;const i=Ee(t[0].values()),r=new xe.Q1(new xe.hB(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:Ae(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function De(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function Oe(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=De(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(const i of n){const n=i.filter((e=>void 0!==e)),r=n[1],s=n[2];if(!s)continue;let o;if("rgb"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=Ne(Ie(e,i),De(s,t),!1)}else if("rgba"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Ne(Ie(e,i),De(s,t),!0)}else if("hsl"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=Re(Ie(e,i),De(s,t),!1)}else if("hsla"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Re(Ie(e,i),De(s,t),!0)}else"#"===r&&(o=Me(Ie(e,i),r+s));o&&t.push(o)}return t}(e):[]}var Be=n(6691),ze=n(796);class Pe{constructor(){this._workerTextModelSyncServer=new ze.WorkerTextModelSyncServer}dispose(){}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,n){const i=this._getModel(e);return i?y.UnicodeTextModelHighlighter.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Be.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,i){const r=this._getModel(e),s=this._getModel(t);if(!r||!s)return null;return Fe.computeDiff(r,s,n,i)}static computeDiff(e,t,n,i){const r="advanced"===i?Ce():Te(),s=e.getLinesContent(),o=t.getLinesContent(),a=r.computeDiff(s,o,n);function l(e){return e.map((e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,n){const i=this._getModel(e);if(!i)return t;const r=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return d.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let a=0;for(let o=1;o<t.length;o++)d.Q.getEndPosition(t[a].range).equals(d.Q.getStartPosition(t[o].range))?(t[a].range=d.Q.fromPositions(d.Q.getStartPosition(t[a].range),d.Q.getEndPosition(t[o].range)),t[a].text+=t[o].text):(a++,t[a]=t[o]);t.length=a+1;for(let{range:l,text:h,eol:c}of t){if("number"===typeof c&&(s=c),d.Q.isEmpty(l)&&!h)continue;const e=i.getValueInRange(l);if(h=h.replace(/\r\n|\n|\r/g,i.eol),e===h)continue;if(Math.max(h.length,e.length)>Fe._diffLimit){r.push({range:l,text:h});continue}const t=o(e,h,n),a=i.offsetAt(d.Q.lift(l).getStartPosition());for(const n of t){const e=i.positionAt(a+n.originalStart),t=i.positionAt(a+n.originalStart+n.originalLength),s={text:h.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};i.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"===typeof s&&r.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?_.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?Oe(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,i){const r=new k.W,s=new RegExp(n,i),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>Fe._suggestionsLimit))break e}return{words:Array.from(o),duration:r.elapsed()}}async $computeWordRanges(e,t,n,i){const r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=r.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,n,i,r){const s=this._getModel(e);if(!s)return null;const o=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const h=s.getValueInRange(l);return b.INSTANCE.navigateValueSet(t,a,l,h,n)}}class Fe extends Pe{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,i){const r={host:(0,Se.kT)(i,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve((0,Se.V0)(this._foreignModule))):new Promise(((i,s)=>{const o=e=>{this._foreignModule=e.create(r,t),i((0,Se.V0)(this._foreignModule))};{const t=Le.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(o).catch(s)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function We(e){return new Fe(w.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,v.createMonacoBaseAPI)())},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>i});const i=(0,n(3591).u1)("editorWorkerService")},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>i});class i{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(i.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(i.CHANNEL_NAME,t)}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>s});const i=new RegExp("\\bMARK:\\s*(.*)$","d"),r=/^-+|-+$/g;function s(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const i=function(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const i=e.getLineContent(r),s=i.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:r,startColumn:s[0].length+1,endLineNumber:r,endColumn:i.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(i.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++){o(e.getLineContent(i),i,t)}return t}(e);n=n.concat(t)}return n}function o(e,t,n){i.lastIndex=0;const r=i.exec(e);if(r){const e={startLineNumber:t,startColumn:r.indices[1][0]+1,endLineNumber:t,endColumn:r.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(r[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(r,""),hasSeparatorLine:t}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>u});var i,r=n(6456),s=n(9403),o=n(9400),a=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(i||(i={}));var l,h,c=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const i=t.exec(e.id);if(!i)return n(c.W.error);const[,r,s]=i,o=["codicon","codicon-"+r];return s&&o.push("codicon-modifier-"+s.substring(1)),o}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const i=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=i.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(h||(h={}));const d=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function u(e,t,n,l,c){if(h.isThemeIcon(c))return[`codicon-${c.id}`,"predefined-file-icon"];if(o.r.isUri(c))return[];const u=l===i.ROOT_FOLDER?["rootfolder-icon"]:l===i.FOLDER?["folder-icon"]:["file-icon"];if(n){let o;if(n.scheme===r.ny.data){o=s.B6.parseMetaData(n).get(s.B6.META_DATA_LABEL)}else{const e=n.path.match(d);e?(o=g(e[2].toLowerCase()),e[1]&&u.push(`${g(e[1].toLowerCase())}-name-dir-icon`)):o=g(n.authority.toLowerCase())}if(l===i.ROOT_FOLDER)u.push(`${o}-root-name-folder-icon`);else if(l===i.FOLDER)u.push(`${o}-name-folder-icon`);else{if(o){if(u.push(`${o}-name-file-icon`),u.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t<e.length;t++)u.push(`${e.slice(t).join(".")}-ext-file-icon`)}u.push("ext-file-icon")}const i=function(e,t,n){if(!n)return null;let i=null;if(n.scheme===r.ny.data){const e=s.B6.parseMetaData(n).get(s.B6.META_DATA_MIME);e&&(i=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(i=t.getLanguageId())}if(i&&i!==a.vH)return i;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);i&&u.push(`${g(i)}-lang-file-icon`)}}return u}function g(e){return e.replace(/[\s]/g,"/")}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>m,LanguageFeatureDebounceService:()=>v});var i=n(5600),r=n(4320);function s(e,t,n){return Math.min(Math.max(e,t),n)}class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class a{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const h=(0,l.u1)("environmentService");var c=n(4621),d=n(3511),u=n(6456),g=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},f=function(e,t){return function(n,i){t(n,i,e)}};const m=(0,l.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let i=t.get(e);return void 0===i&&(i=++n,t.set(e,i)),i}}(p||(p={}));class _{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class b{constructor(e,t,n,i,s,o){this._logService=e,this._name=t,this._registry=n,this._default=i,this._min=s,this._max=o,this._cache=new r.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,i.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?s(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let i=this._cache.get(n);i||(i=new a(6),this._cache.set(n,i));const r=s(i.update(t),this._min,this._max);return(0,u.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${r}ms`),r}_overall(){const e=new o;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return s(0|this._overall()||this._default,this._min,this._max)}}let v=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const i=n?.min??50,r=n?.max??i**2,s=n?.key??void 0,o=`${p.of(e)},${i}${s?","+s:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new _(1.5*i)):a=new b(this._logService,t,e,0|this._overallAverage()||1.5*i,i,r),this._data.set(o,a)),a}_overallAverage(){const e=new o;for(const t of this._data.values())e.update(t.default());return e.value}};v=g([f(0,d.rr),f(1,h)],v),(0,c.v)(m,v,1)},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>i});const i=(0,n(3591).u1)("ILanguageFeaturesService")},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>m});var i=n(1234),r=n(1484),s=n(6223),o=n(6958),a=n(8821);function l(e,t,n,i,r,s){if(Array.isArray(e)){let o=0;for(const a of e){const e=l(a,t,n,i,r,s);if(10===e)return e;e>o&&(o=e)}return o}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:h,scheme:c,hasAccessToAllModels:d,notebookType:u}=e;if(!i&&!d)return 0;u&&r&&(t=r);let g=0;if(c)if(c===t.scheme)g=10;else{if("*"!==c)return 0;g=5}if(l)if(l===n)g=10;else{if("*"!==l)return 0;g=Math.max(g,5)}if(u)if(u===s)g=10;else{if("*"!==u||void 0===s)return 0;g=Math.max(g,5)}if(h){let e;if(e="string"===typeof h?h:{...h,base:(0,a.S8)(h.base)},e!==t.fsPath&&!(0,o.YW)(e,t.fsPath))return 0;g=10}return g}return 0}function h(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(h):!!e.exclusive)}class c{constructor(e,t,n,i,r){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=i,this.recursive=r}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class d{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new i.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,r.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,i;return this._orderedForEach(e,!1,(e=>{n&&i===e._score?n.push(e.provider):(i=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const i of this._entries)i._score>0&&n(i)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),i=n?new c(e.uri,e.getLanguageId(),n.uri,n.type,t):new c(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(i)){this._lastCandidate=i;for(const n of this._entries)if(n._score=l(n.selector,i.uri,i.languageId,(0,s.vd)(e),i.notebookUri,i.notebookType),h(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(d._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:u(e.selector)&&!u(t.selector)?1:!u(e.selector)&&u(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function u(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(u):Boolean(e.isBuiltin))}var g=n(6942),f=n(4621);class m{constructor(){this.referenceProvider=new d(this._score.bind(this)),this.renameProvider=new d(this._score.bind(this)),this.newSymbolNamesProvider=new d(this._score.bind(this)),this.codeActionProvider=new d(this._score.bind(this)),this.definitionProvider=new d(this._score.bind(this)),this.typeDefinitionProvider=new d(this._score.bind(this)),this.declarationProvider=new d(this._score.bind(this)),this.implementationProvider=new d(this._score.bind(this)),this.documentSymbolProvider=new d(this._score.bind(this)),this.inlayHintsProvider=new d(this._score.bind(this)),this.colorProvider=new d(this._score.bind(this)),this.codeLensProvider=new d(this._score.bind(this)),this.documentFormattingEditProvider=new d(this._score.bind(this)),this.documentRangeFormattingEditProvider=new d(this._score.bind(this)),this.onTypeFormattingEditProvider=new d(this._score.bind(this)),this.signatureHelpProvider=new d(this._score.bind(this)),this.hoverProvider=new d(this._score.bind(this)),this.documentHighlightProvider=new d(this._score.bind(this)),this.multiDocumentHighlightProvider=new d(this._score.bind(this)),this.selectionRangeProvider=new d(this._score.bind(this)),this.foldingRangeProvider=new d(this._score.bind(this)),this.linkProvider=new d(this._score.bind(this)),this.inlineCompletionsProvider=new d(this._score.bind(this)),this.inlineEditProvider=new d(this._score.bind(this)),this.completionProvider=new d(this._score.bind(this)),this.linkedEditingRangeProvider=new d(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new d(this._score.bind(this)),this.documentSemanticTokensProvider=new d(this._score.bind(this)),this.documentDropEditProvider=new d(this._score.bind(this)),this.documentPasteEditProvider=new d(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,f.v)(g.ILanguageFeaturesService,m,1)},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>N});var i=n(1234),r=n(1484),s=n(9259),o=n(9861),a=n(2083),l=n(3941);const h=(e,t)=>e===t;new WeakMap;class c{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=u.get(e);if(n)return n;const i=function(e,t){const n=u.get(e);if(n)return n;const i=t.owner?function(e){const t=f.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let i=g.get(n)??0;i++,g.set(n,i);const r=1===i?n:`${n}#${i}`;return f.set(e,r),r}(t.owner)+".":"";let r;const s=t.debugNameSource;if(void 0!==s){if("function"!==typeof s)return i+s;if(r=s(),void 0!==r)return i+r}const o=t.referenceFn;if(void 0!==o&&(r=m(o),void 0!==r))return i+r;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return i+n}return}(e,t);if(i){let t=d.get(i)??0;t++,d.set(i,t);const n=1===t?i:`${i}#${t}`;return u.set(e,n),n}return}(e,this)}}const d=new Map,u=new WeakMap;const g=new Map,f=new WeakMap;function m(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),i=n?n[1]:void 0;return i?.trim()}let p,_,b,v;function w(){return p}class k{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,i=void 0===t?e:t;return v({owner:n,debugName:()=>{const e=m(i);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:i},(e=>i(this.read(e),e)))}flatten(){return v({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(_(this,t)),this}keepObserved(e){return e.add(b(this)),this}}class y extends k{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function T(e,t){const n=new C(e,t);try{e(n)}finally{n.finish()}}class C{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],w()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():m(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:i}=e[t];n.endUpdate(i)}this.updatingObservers=null,w()?.handleEndTransaction()}}var S=n(6782);!function(e){v=e}((function(e,t){return new L(new c(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??h)}));class L extends y{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i,r=void 0,s){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=i,this._handleLastObserverRemoved=r,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),w()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const i=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,i)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=t&&!this._equalityComparator(n,this.value);if(w()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:r,hadValue:t}),r)for(const s of this.observers)s.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),i=3===this.state;if(n&&(1===this.state||i)&&(this.state=2,i))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function x(e){return new E(new c(void 0,void 0,e),e,void 0,void 0)}class E{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,i){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=i,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),w()?.handleAutorunCreated(this),this._runIfNeeded(),(0,r.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,r.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){w()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||w()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=E}(x||(x={}));function A(...e){let t,n,i;return 3===e.length?[t,n,i]=e:[n,i]=e,new I(new c(t,void 0,i),n,i,(()=>I.globalTransaction),h)}class I extends y{constructor(e,t,n,i,r){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=i,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,i=!this.hasValue||!this._equalityComparator(n,t);let r=!1;i&&(this.value=t,this.hasValue&&(r=!0,function(e,t,n){e?t(e):T(t,n)}(this._getTransaction(),(e=>{w()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||w()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:i,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=I,e.batchEventsGlobally=function(e,t){let n=!1;void 0===I.globalTransaction&&(I.globalTransaction=e,n=!0);try{t()}finally{n&&(I.globalTransaction=void 0)}}}(A||(A={}));!function(e){b=e}((function(e){const t=new M(!1,void 0);return e.addObserver(t),(0,r.s)((()=>{e.removeObserver(t)}))})),function(e){_=e}((function(e,t){const n=new M(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,r.s)((()=>{e.removeObserver(n)}))}));class M{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class N extends r.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new i.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new i.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new i.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,N.instanceCount++,this._registry=this._register(new s.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){N.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(n,null)}createById(e){return new R(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new R(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class R{constructor(e,t){this._value=A(this,e,(()=>t())),this.onDidChange=i.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>f,getLanguageIds:()=>m,registerPlatformLanguageAssociation:()=>g});var i=n(6958),r=n(1939),s=n(6456),o=n(8821),a=n(9403),l=n(1508),h=n(3941);let c=[],d=[],u=[];function g(e,t=!1){!function(e,t,n){const r=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,i.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);c.push(r),r.userConfigured?u.push(r):d.push(r);n&&!r.userConfigured&&c.forEach((e=>{e.mime===r.mime||e.userConfigured||(r.extension&&e.extension===r.extension&&console.warn(`Overwriting extension <<${r.extension}>> to now point to mime <<${r.mime}>>`),r.filename&&e.filename===r.filename&&console.warn(`Overwriting filename <<${r.filename}>> to now point to mime <<${r.mime}>>`),r.filepattern&&e.filepattern===r.filepattern&&console.warn(`Overwriting filepattern <<${r.filepattern}>> to now point to mime <<${r.mime}>>`),r.firstline&&e.firstline===r.firstline&&console.warn(`Overwriting firstline <<${r.firstline}>> to now point to mime <<${r.mime}>>`))}))}(e,!1,t)}function f(){c=c.filter((e=>e.userConfigured)),d=[]}function m(e,t){return function(e,t){let n;if(e)switch(e.scheme){case s.ny.file:n=e.fsPath;break;case s.ny.data:n=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case s.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:r.K.unknown}];n=n.toLowerCase();const i=(0,o.P8)(n),g=p(n,i,u);if(g)return[g,{id:h.vH,mime:r.K.text}];const f=p(n,i,d);if(f)return[f,{id:h.vH,mime:r.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=c.length-1;t>=0;t--){const n=c[t];if(!n.firstline)continue;const i=e.match(n.firstline);if(i&&i.length>0)return n}return}(t);if(e)return[e,{id:h.vH,mime:r.K.text}]}return[{id:"unknown",mime:r.K.unknown}]}(e,t).map((e=>e.id))}function p(e,t,n){let i,r,s;for(let o=n.length-1;o>=0;o--){const a=n[o];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!r||a.filepattern.length>r.filepattern.length)){const n=a.filepatternOnPath?e:t;a.filepatternLowercase?.(n)&&(r=a)}a.extension&&(!s||a.extension.length>s.extension.length)&&t.endsWith(a.extensionLowercase)&&(s=a)}return i||(r||(s||void 0))}},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>u,LanguagesRegistry:()=>g});var i=n(1234),r=n(1484),s=n(1508),o=n(9908),a=n(3941),l=n(1646),h=n(6359);const c=Object.prototype.hasOwnProperty,d="vs.editor.nullLanguage";class u{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(d,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||d}}class g extends r.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new u,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),h.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;c.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let i=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),i=t.mimetypes[0]),i||(i=`text/x-${n}`,e.mimetypes.push(i)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const s of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filename:s},this._warnOnOverwrite),e.filenames.push(s);if(Array.isArray(t.filenamePatterns))for(const s of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,filepattern:s},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,s.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:n,mime:i,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let r=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(r=0===t.aliases.length?[null]:t.aliases),null!==r)for(const s of r)s&&0!==s.length&&e.aliases.push(s);const a=null!==r&&r.length>0;if(a&&null===r[0]);else{const t=(a?r[0]:null)||n;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&c.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return c.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&c.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>i});const i=(0,n(3591).u1)("markerDecorationsService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>T});var i,r=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){const t="error",n="warning",i="info";e.fromValue=function(s){return s?r.Q_(t,s)?e.Error:r.Q_(n,s)||r.Q_("warn",s)?e.Warning:r.Q_(i,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(r){switch(r){case e.Error:return t;case e.Warning:return n;case e.Info:return i;default:return"ignore"}}}(i||(i={}));const s=i;var o,a,l=n(8209),h=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(o||(o={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.Error:return e.Error;case s.Warning:return e.Warning;case s.Info:return e.Info;case s.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.Error;case e.Warning:return s.Warning;case e.Info:return s.Info;case e.Hint:return s.Ignore}}}(o||(o={})),function(e){const t="";function n(e,n){const i=[t];return e.source?i.push(e.source.replace("\xa6","\\\xa6")):i.push(t),e.code?"string"===typeof e.code?i.push(e.code.replace("\xa6","\\\xa6")):i.push(e.code.value.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.severity&&null!==e.severity?i.push(o.toString(e.severity)):i.push(t),e.message&&n?i.push(e.message.replace("\xa6","\\\xa6")):i.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(t),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(t),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(t),i.push(t),i.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(a||(a={}));const c=(0,h.u1)("markerService");var d=n(1484),u=n(6223),g=n(5724),f=n(7119),m=n(3750),p=n(6677),_=n(6456),b=n(1234),v=n(5845),w=n(4320);var k=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},y=function(e,t){return function(n,i){t(n,i,e)}};let T=class extends d.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new b.vl),this._markerDecorations=new w.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new C(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==_.ny.inMemory&&e.uri.scheme!==_.ny.internal&&e.uri.scheme!==_.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};T=k([y(0,m.IModelService),y(1,c)],T);class C extends d.jG{constructor(e){super(),this.model=e,this._map=new w.cO,this._register((0,d.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],i=[];for(const r of e)t.has(r)||n.push(r);for(const r of t)e.has(r)||i.push(r);return{removed:n,added:i}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const i=n.map((e=>this._map.get(e))),r=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(i,r);for(const o of n)this._map.delete(o);for(let o=0;o<s.length;o++)this._map.set(t[o],s[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=p.Q.lift(t);if(t.severity!==o.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const i=e.getWordAtPosition(n.getStartPosition());i&&(n=new p.Q(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const i=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);i<n.endColumn&&(n=new p.Q(n.startLineNumber,i,n.endLineNumber,n.endColumn),t.startColumn=i)}return n}_createDecorationOption(e){let t,n,i,r,s;switch(e.severity){case o.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",i=0;break;case o.Info:t="squiggly-info",n=(0,g.Yf)(f.AQ),i=10,s={color:(0,g.Yf)(v.KoI),position:1};break;case o.Warning:t="squiggly-warning",n=(0,g.Yf)(f.aZ),i=20,s={color:(0,g.Yf)(v.uMG),position:1};break;case o.Error:default:t="squiggly-error",n=(0,g.Yf)(f.yI),i=30,s={color:(0,g.Yf)(v.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(r="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(r="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:u.A5.Right},minimap:s,zIndex:i,inlineClassName:r}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>i});const i=(0,n(3591).u1)("modelService")},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>yr,ModelService:()=>kr});var i=n(1234),r=n(1484),s=n(8067),o=n(9861),a=n(7661),l=n(4383),h=n(1508),c=n(9400),d=n(4454);class u{static _nextVisibleColumn(e,t,n){return 9===e?u.nextRenderTabStop(t,n):h.ne(e)||h.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const i=Math.min(t-1,e.length),r=e.substring(0,i),s=new h.km(r);let o=0;for(;!s.eol();){const e=h.Z5(r,i,s.offset);s.nextGraphemeLength(),o=this._nextVisibleColumn(e,o,n)}return o}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const i=e.length,r=new h.km(e);let s=0,o=1;for(;!r.eol();){const a=h.Z5(e,i,r.offset);r.nextGraphemeLength();const l=this._nextVisibleColumn(a,s,n),c=r.offset+1;if(l>=t){return l-t<t-s?c:o}s=l,o=c}return i+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function g(e,t,n){let i=h.HG(e);return-1===i&&(i=e.length),function(e,t,n){let i=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?i=u.nextIndentTabStop(i,t):i++;let r="";if(!n){const e=Math.floor(i/t);i%=t;for(let t=0;t<e;t++)r+="\t"}for(let s=0;s<i;s++)r+=" ";return r}(e.substring(0,i),t,n)+e.substring(i)}var f=n(3069),m=n(6677),p=n(5326);const _={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var b,v=n(154),w=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(b||(b={}));class k{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),i=e.getStandardTokenType(n);return this.isOK(i)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class y{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)T(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),T(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),T(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),T(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&T(this.autoClosingPairsCloseSingleChar,t.close,t)}}function T(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class C{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new k(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new k({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new k({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:C.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:C.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function S(e){return 0!==(3&e)}var L=n(1674);let x,E,A;function I(){return x||(x=new TextDecoder("UTF-16LE")),x}function M(){return A||(A=s.cm()?I():(E||(E=new TextDecoder("UTF-16BE")),E)),A}function N(e,t,n){const i=new Uint16Array(e.buffer,t,n);return n>0&&(65279===i[0]||65534===i[0])?function(e,t,n){const i=[];let r=0;for(let s=0;s<n;s++){const n=L.$l(e,t);t+=2,i[r++]=String.fromCharCode(n)}return i.join("")}(e,t,n):I().decode(i)}class R{constructor(e,t,n,i,r,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=r,this.reversedRegex=s,this._openSet=R._toSet(this.open),this._closeSet=R._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class D{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let o=0;o<t;o++)n[o]=o;const i=(e,t)=>{const[n,i]=e,[r,s]=t;return n===r||n===s||i===r||i===s},r=(e,i)=>{const r=Math.min(e,i),s=Math.max(e,i);for(let o=0;o<t;o++)n[o]===s&&(n[o]=r)};for(let o=0;o<t;o++){const s=e[o];for(let a=o+1;a<t;a++)i(s,e[a])&&r(n[o],n[a])}const s=[];for(let o=0;o<t;o++){const i=[],r=[];for(let s=0;s<t;s++)if(n[s]===o){const[t,n]=e[s];i.push(t),r.push(n)}i.length>0&&s.push({open:i,close:r})}return s}(t);this.brackets=n.map(((t,i)=>new R(e,i,t.open,t.close,function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)O(r[s],n,i,r);return r=z(r),r.sort(B),r.reverse(),F(r)}(t.open,t.close,n,i),function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let s=0,o=r.length;s<o;s++)O(r[s],n,i,r);return r=z(r),r.sort(B),r.reverse(),F(r.map(W))}(t.open,t.close,n,i)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=z(t),F(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=z(t),F(t.map(W))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const i of this.brackets){for(const e of i.open)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of i.close)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function O(e,t,n,i){for(let r=0,s=t.length;r<s;r++){if(r===n)continue;const s=t[r];for(const t of s.open)t.indexOf(e)>=0&&i.push(t);for(const t of s.close)t.indexOf(e)>=0&&i.push(t)}}function B(e,t){return e.length-t.length}function z(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function P(e){const t=/^[\w ]+$/.test(e);return e=h.bm(e),t?`\\b${e}\\b`:e}function F(e,t){const n=`(${e.map(P).join(")|(")})`;return h.OS(n,!0,t)}const W=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charCodeAt(i);return M().decode(t)}(e)),t}}();class H{static _findPrevBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=n.length-(r.index||0),o=r[0].length,a=i+s;return new m.Q(t,a-o+1,t,a+1)}static findPrevBracketInRange(e,t,n,i,r){const s=W(n).substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,s,i)}static findNextBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const s=r.index||0,o=r[0].length;if(0===o)return null;const a=i+s;return new m.Q(t,a+1,t,a+1+o)}static findNextBracketInRange(e,t,n,i,r){const s=n.substring(i,r);return this.findNextBracketInText(e,t,s,i)}}class U{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,o.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const i=t.findTokenIndexAtOffset(n-1);if(S(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,n-1)+e,o=H.findPrevBracketInRange(r,1,s,0,s.length);if(!o)return null;const a=s.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function q(e){return e.global&&(e.lastIndex=0),!0}class V{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&q(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&q(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&q(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&q(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class j{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=j._createOpenBracketRegExp(e[0]),n=j._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,i){if(e>=3)for(let r=0,s=this._regExpRules.length;r<s;r++){const e=this._regExpRules[r];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:i},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&i.length>0)for(let r=0,s=this._brackets.length;r<s;r++){const e=this._brackets[r];if(e.openRegExp.test(n)&&e.closeRegExp.test(i))return{indentAction:b.IndentOutdent}}if(e>=2&&n.length>0)for(let r=0,s=this._brackets.length;r<s;r++){if(this._brackets[r].openRegExp.test(n))return{indentAction:b.Indent}}return null}static _createOpenBracketRegExp(e){let t=h.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",j._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=h.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,j._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var G=n(3591),K=n(4001),$=n(4621),Q=n(3941),Y=n(1788);class X{constructor(e,t){this.languageId=e;const n=t.brackets?J(t.brackets):[],i=new Y.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),r=new Y.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[o,a]of n){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.opening.add(e.info)}const s=t.colorizedBracketPairs?J(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of s){const e=i.get(o),t=r.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...i.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return F(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function J(e){return e.filter((([e,t])=>""!==e&&""!==t))}class Z{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends Z{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends Z{constructor(e,t,n,i){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=i,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},ie=function(e,t){return function(n,i){t(n,i,e)}};class re{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const se=(0,G.u1)("languageConfigurationService");let oe=class extends r.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new ge),this.onDidChangeEmitter=this._register(new i.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(ae));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),i=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new re(void 0));else for(const n of i)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new re(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new re(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,i){let r=t.getLanguageConfiguration(e);if(!r){if(!i.isRegisteredLanguageId(e))return new fe(e,{});r=new fe(e,{})}const s=function(e,t){const n=t.getValue(ae.brackets,{overrideIdentifier:e}),i=t.getValue(ae.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(i)}}(r.languageId,n),o=ce([r.underlyingConfig,s]);return new fe(r.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};oe=ne([ie(0,K.pG),ie(1,v.L)],oe);const ae={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class he{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new de(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,r.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new fe(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(de.cmp),ce(this._entries.map((e=>e.configuration))))}}function ce(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class de{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class ue{constructor(e){this.languageId=e}}class ge extends r.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new i.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(Q.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let i=this._entries.get(e);i||(i=new he(e),this._entries.set(e,i));const s=i.register(t,n);return this._onDidChange.fire(new ue(e)),(0,r.s)((()=>{s.dispose(),this._onDidChange.fire(new ue(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class fe{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new j(this.underlyingConfig):null,this.comments=fe._handleComments(this.underlyingConfig),this.characterPair=new C(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||w.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new V(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new X(e,this.underlyingConfig)}getWordDefinition(){return(0,w.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new D(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new U(this.brackets)),this._electricCharacter}onEnter(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}getAutoClosingPairs(){return new y(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,i]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=i}return n}}(0,$.v)(se,oe,1);var me=n(6223);class pe{constructor(e,t,n,i){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=i}}class _e{constructor(e,t,n,i,r,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=i,this.nestingLevelOfEqualBracketType=r,this.bracketPairNode=s}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class be extends _e{constructor(e,t,n,i,r,s,o){super(e,t,n,i,r,s),this.minVisibleColumnIndentation=o}}var ve=n(973);function we(e){return 0===e}const ke=2**26;function ye(e,t){return e*ke+t}function Te(e){const t=e,n=Math.floor(t/ke),i=t-n*ke;return new ve.W(n,i)}function Ce(e,t){let n=e+t;return t>=ke&&(n-=e%ke),n}function Se(e,t){return e.reduce(((e,n)=>Ce(e,t(n))),0)}function Le(e,t){return e===t}function xe(e,t){const n=e,i=t;if(i-n<=0)return 0;const r=Math.floor(n/ke),s=Math.floor(i/ke),o=i-s*ke;if(r===s){return ye(0,o-(n-r*ke))}return ye(s-r,o)}function Ee(e,t){return e<t}function Ae(e,t){return e<=t}function Ie(e,t){return e>=t}function Me(e){return ye(e.lineNumber-1,e.column-1)}function Ne(e,t){const n=e,i=Math.floor(n/ke),r=n-i*ke,s=t,o=Math.floor(s/ke),a=s-o*ke;return new m.Q(i+1,r+1,o+1,a+1)}class Re{static fromModelContentChanges(e){return e.map((e=>{const t=m.Q.lift(e.range);return new Re(Me(t.getStartPosition()),Me(t.getEndPosition()),function(e){const t=(0,h.uz)(e);return ye(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${Te(this.startOffset)}...${Te(this.endOffset)}) -> ${Te(this.newLength)}`}}class De{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>Oe.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:xe(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?ye(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):ye(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Te(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?ye(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):ye(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!Ae(n,e))break;{this.nextEditIdx++;const e=Te(n),i=Te(this.translateOldToCur(t.endOffsetBeforeObj)),r=e.lineCount-i.lineCount;this.deltaOldToNewLineCount+=r;const s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,o=e.columnCount-i.columnCount;this.deltaOldToNewColumnCount=s+o,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class Oe{static from(e){return new Oe(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=Te(t),this.endOffsetAfterObj=Te(Ce(e,n)),this.offsetObj=Te(e)}}const Be=[];class ze{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=ze.cache[e];return n||(n=new ze(e,t),ze.cache[e]=n),n}return new ze(e,t)}static{this.empty=ze.create(0,Be)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let i=n>>5;if(0===i){const e=1<<n|this.items;return e===this.items?this:ze.create(e,this.additionalItems)}i--;const r=this.additionalItems.slice(0);for(;r.length<i;)r.push(0);return r[i]|=1<<(31&n),ze.create(this.items,r)}merge(e){const t=this.items|e.items;if(this.additionalItems===Be&&e.additionalItems===Be)return t===this.items?this:t===e.items?e:ze.create(t,Be);const n=[];for(let i=0;i<Math.max(this.additionalItems.length,e.additionalItems.length);i++){const t=this.additionalItems[i]||0,r=e.additionalItems[i]||0;n.push(t|r)}return ze.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const Pe={getKey:e=>e};class Fe{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class We{get length(){return this._length}constructor(e){this._length=e}}class He extends We{static create(e,t,n){let i=e.length;return t&&(i=Ce(i,t.length)),n&&(i=Ce(i,n.length)),new He(i,e,t,n,t?t.missingOpeningBracketIds:ze.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,i,r){super(e),this.openingBracket=t,this.child=n,this.closingBracket=i,this.missingOpeningBracketIds=r}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new He(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(Ce(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class Ue extends We{static create23(e,t,n,i=!1){let r=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(r=Ce(r,t.length),s=s.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");r=Ce(r,n.length),s=s.merge(n.missingOpeningBracketIds)}return i?new Ve(r,e.listHeight+1,e,t,n,s):new qe(r,e.listHeight+1,e,t,n,s)}static getEmpty(){return new Ge(0,0,[],ze.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let i=1;i<e;i++){const e=this.getChild(i);t=Ce(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,i=e;for(let r=0;r<this.childrenLength;r++){const e=this.getChild(r);e&&(n=Math.min(n,e.computeMinIndentation(i,t)),i=Ce(i,e.length))}return this.cachedMinIndentation=n,n}}class qe extends Ue{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,i,r,s){super(e,t,s),this._item1=n,this._item2=i,this._item3=r}deepClone(){return new qe(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class Ve extends qe{toMutable(){return new qe(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class je extends Ue{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,i){super(e,t,i),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new je(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class Ge extends je{toMutable(){return new je(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const Ke=[];class $e extends We{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return Ke}deepClone(){return this}}class Qe extends $e{get kind(){return 0}get missingOpeningBracketIds(){return ze.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=Te(e),i=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,r=(s=Ce(e,this.length),Math.floor(s/ke)+1);var s;let o=Number.MAX_SAFE_INTEGER;for(let a=i;a<=r;a++){const e=t.getLineFirstNonWhitespaceColumn(a),n=t.getLineContent(a);if(0===e)continue;const i=u.visibleColumnFromColumn(n,e,t.getOptions().tabSize);o=Math.min(o,i)}return o}}class Ye extends $e{static create(e,t,n){return new Ye(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return ze.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Xe extends $e{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Je=n(5982);class Ze{constructor(e,t,n,i,r){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=i,this.astNode=r}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return ye(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=Ce(this._offset,e);const t=Te(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=Ce(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const i=this.lineTokens,r=i.getCount();let s=null;if(this.lineTokenOffset<r){const o=i.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&o===i.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const a=0===Je.x.getTokenType(o),l=Je.x.containsBalancedBrackets(o),h=i.getEndOffset(this.lineTokenOffset);if(l&&a&&this.lineCharOffset<h){const e=i.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,h),n=this.bracketTokens.getSingleLanguageBracketTokens(e),r=n.regExpGlobal;if(r){r.lastIndex=0;const e=r.exec(t);e&&(s=n.getToken(e[0]),s&&(this.lineCharOffset+=e.index))}}if(n+=h-this.lineCharOffset,s){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=s;break}return this.lineCharOffset+=s.length,s}this.lineTokenOffset++,this.lineCharOffset=h}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const i=(r=e,s=t,o=this.lineIdx,a=this.lineCharOffset,r!==o?ye(o-r,a):ye(0,a-s));var r,s,o,a;return new Ze(i,0,-1,ze.getEmpty(),new Qe(i))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),i=n?new RegExp(n+"|\n","gi"):null,r=[];let s,o=0,a=0,l=0,h=0;const c=[];for(let g=0;g<60;g++)c.push(new Ze(ye(0,g),0,-1,ze.getEmpty(),new Qe(ye(0,g))));const d=[];for(let g=0;g<60;g++)d.push(new Ze(ye(1,g),0,-1,ze.getEmpty(),new Qe(ye(1,g))));if(i)for(i.lastIndex=0;null!==(s=i.exec(e));){const e=s.index,n=s[0];if("\n"===n)o++,a=e+1;else{if(l!==e){let t;if(h===o){const n=e-l;if(n<c.length)t=c[n];else{const e=ye(0,n);t=new Ze(e,0,-1,ze.getEmpty(),new Qe(e))}}else{const n=o-h,i=e-a;if(1===n&&i<d.length)t=d[i];else{const e=ye(n,i);t=new Ze(e,0,-1,ze.getEmpty(),new Qe(e))}}r.push(t)}r.push(t.getToken(n)),l=e+n.length,h=o}}const u=e.length;if(l!==u){const e=h===o?ye(0,u-l):ye(o-h,u-a);r.push(new Ze(e,0,-1,ze.getEmpty(),new Qe(e)))}this.length=ye(o,u-a),this.tokens=r}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class it{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const i=new Map;for(const r of e.bracketsNew.openingBrackets){const e=ye(0,r.bracketText.length),t=n(r),s=ze.getEmpty().add(t,Pe);i.set(r.bracketText,new Ze(e,1,t,s,Ye.create(e,r,s)))}for(const r of e.bracketsNew.closingBrackets){const e=ye(0,r.bracketText.length);let t=ze.getEmpty();const s=r.getOpeningBrackets();for(const i of s)t=t.add(n(i),Pe);i.set(r.bracketText,new Ze(e,2,n(s[0]),t,Ye.create(e,r,t)))}return new it(i)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,h.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class rt{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=it.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function st(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const i=n>>1;for(let r=0;r<i;r++){const i=r<<1;e[r]=Ue.create23(e[i],e[i+1],i+3===n?e[i+2]:null,t)}n=i}return Ue.create23(e[0],e[1],n>=3?e[2]:null,t)}function ot(e,t){return Math.abs(e.listHeight-t.listHeight)}function at(e,t){return e.listHeight===t.listHeight?Ue.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const i=[];let r;for(;;){if(t.listHeight===n.listHeight){r=t;break}if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeLastElementMutable()}for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=Ue.create23(e.unappendChild(),r,null,!1):(e.appendChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?Ue.create23(e,r,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const i=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");i.push(n),n=n.makeFirstElementMutable()}let r=t;for(let s=i.length-1;s>=0;s--){const e=i[s];r?e.childrenLength>=3?r=Ue.create23(r,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?Ue.create23(r,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Ee(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=ct(this.nextNodes);if(!n)return;const i=ct(this.offsets);if(Ee(e,i))return;if(Ee(i,e))if(Ce(i,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ht(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ht(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(i),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=ct(this.offsets),t=ct(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=ct(this.nextNodes),i=ht(n,this.idxs[this.idxs.length-1]);if(-1!==i){this.nextNodes.push(n.getChild(i)),this.offsets.push(Ce(e,t.length)),this.idxs[this.idxs.length-1]=i;break}this.idxs.pop()}}}function ht(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function ct(e){return e.length>0?e[e.length-1]:void 0}function dt(e,t,n,i){return new ut(e,t,n,i).parseDocument()}class ut{constructor(e,t,n,i){if(this.tokenizer=e,this.createImmutableLists=i,this._itemsConstructed=0,this._itemsFromCache=0,n&&i)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new De(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(ze.getEmpty(),0);return e||(e=Ue.getEmpty()),e}parseList(e,t){const n=[];for(;;){let i=this.tryReadChildFromCache(e);if(!i){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;i=this.parseChild(e,t+1)}4===i.kind&&0===i.childrenLength||n.push(i)}const i=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,i=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===i;)t++;return t-n>=2?st(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let i=n(),r=n();if(!r)return i;for(let s=n();s;s=n())ot(i,r)<=ot(r,s)?(i=at(i,r),r=s):r=at(r,s);return at(i,r)}(n):st(n,this.createImmutableLists);return i}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!we(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Ee(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Xe(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Qe(n.length);const i=e.merge(n.bracketIds),r=this.parseList(i,t+1),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===n.bracketId||s.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),He.create(n.astNode,r,s.astNode)):He.create(n.astNode,r,null)}default:throw new Error("unexpected")}}}function gt(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new o.j3(mt(e)),i=mt(t);i.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let r=n.dequeue();function s(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return r&&e.unshift(r),e}const t=[];for(;r&&!we(e);){const[i,s]=r.splitAt(e);t.push(i),e=xe(i.lengthAfter,e),r=s??n.dequeue()}return we(e)||t.push(new ft(!1,e,e)),t}const a=[];function l(e,t,n){if(a.length>0&&Le(a[a.length-1].endOffset,e)){const e=a[a.length-1];a[a.length-1]=new Re(e.startOffset,t,Ce(e.newLength,n))}else a.push({startOffset:e,endOffset:t,newLength:n})}let h=0;for(const o of i){const e=s(o.lengthBefore);if(o.modified){const t=Ce(h,Se(e,(e=>e.lengthBefore)));l(h,t,o.lengthAfter),h=t}else for(const t of e){const e=h;h=Ce(h,t.lengthBefore),t.modified&&l(e,h,t.lengthAfter)}}return a}class ft{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=xe(e,this.lengthAfter);return Le(t,0)?[this,void 0]:this.modified?[new ft(this.modified,this.lengthBefore,e),new ft(this.modified,0,t)]:[new ft(this.modified,e,e),new ft(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${Te(this.lengthBefore)} -> ${Te(this.lengthAfter)}`}}function mt(e){const t=[];let n=0;for(const i of e){const e=xe(n,i.startOffset);we(e)||t.push(new ft(!1,e,e));const r=xe(i.startOffset,i.endOffset);t.push(new ft(!0,r,i.newLength)),n=i.endOffset}return t}class pt extends r.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new i.vl,this.denseKeyProvider=new Fe,this.brackets=new rt(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=dt(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new Re(ye(e.fromLineNumber-1,0),ye(e.toLineNumber,0),ye(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=Re.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=gt(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=gt(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const i=t;return dt(new et(this.textModel,this.brackets),e,i,n)}getBracketsInRange(e,t){this.flushQueue();const n=ye(e.startLineNumber-1,e.startColumn-1),i=ye(e.endLineNumber-1,e.endColumn-1);return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens;vt(r,0,r.length,n,i,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Me(e.getStartPosition()),i=Me(e.getEndPosition());return new o.c1((e=>{const r=this.initialAstWithoutTokens||this.astWithTokens,s=new wt(e,t,this.textModel);kt(r,0,r.length,n,i,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return bt(t,0,t.length,Me(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return _t(t,0,t.length,Me(e))}}function _t(e,t,n,i){if(4===e.kind||2===e.kind){const r=[];for(const i of e.children)n=Ce(t,i.length),r.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=r.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:s}=r[t];if(Ee(n,i)){const r=_t(e.children[t],n,s,i);if(r)return r}}return null}if(3===e.kind)return null;if(1===e.kind){const i=Ne(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function bt(e,t,n,i){if(4===e.kind||2===e.kind){for(const r of e.children){if(Ee(i,n=Ce(t,r.length))){const e=bt(r,t,n,i);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const i=Ne(t,n);return{bracketInfo:e.bracketInfo,range:i}}return null}function vt(e,t,n,i,r,s,o,a,l,h,c=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let c=0;c<a;c++){const a=e.getChild(c);if(a){if(n=Ce(t,a.length),Ae(t,r)&&Ie(n,i)){if(Ie(n,r)){e=a;continue e}if(!vt(a,t,n,i,r,s,o,0,l,h))return!1}t=n}}return!0}case 2:{const c=!h||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let d=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),d=t,c&&(t++,l.set(e.openingBracket.text,t))}const u=e.childrenLength;for(let g=0;g<u;g++){const u=e.getChild(g);if(u){if(n=Ce(t,u.length),Ae(t,r)&&Ie(n,i)){if(Ie(n,r)&&1!==u.kind){e=u,c?(o++,a=d+1):a=d;continue e}if(c||1!==u.kind||!e.closingBracket){if(!vt(u,t,n,i,r,s,c?o+1:o,c?d+1:d,l,h,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,d),!0}case 3:{const e=Ne(t,n);return s(new pe(e,o-1,0,!0))}case 1:{const e=Ne(t,n);return s(new pe(e,o-1,a-1,c))}case 0:return!0}}class wt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function kt(e,t,n,i,r,s,o,a){if(o>200)return!0;let l=!0;if(2===e.kind){let h=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),h=t,t++,a.set(e.openingBracket.text,t)}const c=Ce(t,e.openingBracket.length);let d=-1;if(s.includeMinIndentation&&(d=e.computeMinIndentation(t,s.textModel)),l=s.push(new be(Ne(t,n),Ne(t,c),e.closingBracket?Ne(Ce(c,e.child?.length||0),n):void 0,o,h,e,d)),t=c,l&&e.child){const h=e.child;if(n=Ce(t,h.length),Ae(t,r)&&Ie(n,i)&&(l=kt(h,t,n,i,r,s,o+1,a),!l))return!1}a?.set(e.openingBracket.text,h)}else{let n=t;for(const t of e.children){const e=n;if(n=Ce(n,t.length),Ae(e,r)&&Ae(i,n)&&(l=kt(t,e,n,i,r,s,o,a),!l))return!1}}return l}class yt extends r.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new r.HE),this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new r.Cm;this.bracketPairsTree.value=(e=n.add(new pt(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||o.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||o.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||o.c1.empty}findMatchingBracketUp(e,t,n){const i=this.textModel.validatePosition(t),r=this.textModel.getLanguageIdAtPosition(i.lineNumber,i.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const i=this.getBracketPairsInRange(m.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return i?i.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(r).brackets;if(!s)return null;const o=s.textIsBracket[t];return o?St(this._findMatchingBracketUp(o,i,Tt(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(m.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,o.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),m.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=Tt(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,i){const r=t.getCount(),s=t.getLanguageId(i);let o=Math.max(0,e.column-1-n.maxBracketLength);for(let l=i-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=o)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=i+1;l<r;l++){const e=t.getStartOffset(l);if(e>=a)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const n=e.lineNumber,i=this.textModel.tokenization.getLineTokens(n),r=this.textModel.getLineContent(n),s=i.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(s)).brackets;if(o&&!S(i.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,o,s),h=null;for(;;){const i=H.findNextBracketInRange(o.forwardRegex,n,r,a,l);if(!i)break;if(i.startColumn<=e.column&&e.column<=i.endColumn){const e=r.substring(i.startColumn-1,i.endColumn-1).toLowerCase(),n=this._matchFoundBracket(i,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(n){if(n instanceof Ct)return null;h=n}}a=i.endColumn-1}if(h)return h}if(s>0&&i.getStartOffset(s)===e.column-1){const o=s-1,a=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId(o)).brackets;if(a&&!S(i.getStandardTokenType(o))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,i,a,o),h=H.findPrevBracketInRange(a.reversedRegex,n,r,s,l);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn){const e=r.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),n=this._matchFoundBracket(h,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n)return n instanceof Ct?null:n}}}return null}_matchFoundBracket(e,t,n,i){if(!t)return null;const r=n?this._findMatchingBracketDown(t,e.getEndPosition(),i):this._findMatchingBracketUp(t,e.getStartPosition(),i);return r?r instanceof Ct?r:[e,r]:null}_findMatchingBracketUp(e,t,n){const i=e.languageId,r=e.reversedRegex;let s=-1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return Ct.INSTANCE;const h=H.findPrevBracketInRange(r,t,i,a,l);if(!h)break;const c=i.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(e.isOpen(c)?s++:e.isClose(c)&&s--,0===s)return h;l=h.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),r=this.textModel.getLineContent(l);let s=n-1,o=r.length,h=r.length;l===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,h=t.column-1);let c=!0;for(;s>=0;s--){const t=e.getLanguageId(s)===i&&!S(e.getStandardTokenType(s));if(t)c?o=e.getStartOffset(s):(o=e.getStartOffset(s),h=e.getEndOffset(s));else if(c&&o!==h){const e=a(l,r,o,h);if(e)return e}c=t}if(c&&o!==h){const e=a(l,r,o,h);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const i=e.languageId,r=e.forwardRegex;let s=1,o=0;const a=(t,i,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return Ct.INSTANCE;const h=H.findNextBracketInRange(r,t,i,a,l);if(!h)break;const c=i.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(e.isOpen(c)?s++:e.isClose(c)&&s--,0===s)return h;a=h.endColumn-1}return null},l=this.textModel.getLineCount();for(let h=t.lineNumber;h<=l;h++){const e=this.textModel.tokenization.getLineTokens(h),n=e.getCount(),r=this.textModel.getLineContent(h);let s=0,o=0,l=0;h===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let c=!0;for(;s<n;s++){const t=e.getLanguageId(s)===i&&!S(e.getStandardTokenType(s));if(t)c||(o=e.getStartOffset(s)),l=e.getEndOffset(s);else if(c&&o!==l){const e=a(h,r,o,l);if(e)return e}c=t}if(c&&o!==l){const e=a(h,r,o,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,i=null,r=null;for(let s=t.lineNumber;s>=1;s--){const e=this.textModel.tokenization.getLineTokens(s),o=e.getCount(),a=this.textModel.getLineContent(s);let l=o-1,h=a.length,c=a.length;if(s===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),h=t.column-1,c=t.column-1;const s=e.getLanguageId(l);n!==s&&(n=s,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let d=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(i&&r&&d&&h!==c){const e=H.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e);d=!1}n=t,i=this.languageConfigurationService.getLanguageConfiguration(n).brackets,r=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const o=!!i&&!S(e.getStandardTokenType(l));if(o)d?h=e.getStartOffset(l):(h=e.getStartOffset(l),c=e.getEndOffset(l));else if(r&&i&&d&&h!==c){const e=H.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e)}d=o}if(r&&i&&d&&h!==c){const e=H.findPrevBracketInRange(i.reversedRegex,s,a,h,c);if(e)return this._toFoundBracket(r,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let i=null,r=null,s=null;for(let o=t.lineNumber;o<=n;o++){const e=this.textModel.tokenization.getLineTokens(o),n=e.getCount(),a=this.textModel.getLineContent(o);let l=0,h=0,c=0;if(o===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),h=t.column-1,c=t.column-1;const n=e.getLanguageId(l);i!==n&&(i=n,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let d=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(i!==t){if(s&&r&&d&&h!==c){const e=H.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e);d=!1}i=t,r=this.languageConfigurationService.getLanguageConfiguration(i).brackets,s=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const n=!!r&&!S(e.getStandardTokenType(l));if(n)d||(h=e.getStartOffset(l)),c=e.getEndOffset(l);else if(s&&r&&d&&h!==c){const e=H.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e)}d=n}if(s&&r&&d&&h!==c){const e=H.findNextBracketInRange(r.forwardRegex,o,a,h,c);if(e)return this._toFoundBracket(s,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=m.Q.fromPositions(n),t=this.getBracketPairsInRange(m.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const i=Tt(t),r=this.textModel.getLineCount(),s=new Map;let o=[];const a=(e,t)=>{if(!s.has(e)){const n=[];for(let e=0,i=t?t.brackets.length:0;e<i;e++)n[e]=0;s.set(e,n)}o=s.get(e)};let l=0;const h=(e,t,n,r,s)=>{for(;;){if(i&&++l%100===0&&!i())return Ct.INSTANCE;const a=H.findNextBracketInRange(e.forwardRegex,t,n,r,s);if(!a)break;const h=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),c=e.textIsBracket[h];if(c&&(c.isOpen(h)?o[c.index]++:c.isClose(h)&&o[c.index]--,-1===o[c.index]))return this._matchFoundBracket(a,c,!1,i);r=a.endColumn-1}return null};let c=null,d=null;for(let u=n.lineNumber;u<=r;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),i=this.textModel.getLineContent(u);let r=0,s=0,o=0;if(u===n.lineNumber){r=e.findTokenIndexAtOffset(n.column-1),s=n.column-1,o=n.column-1;const t=e.getLanguageId(r);c!==t&&(c=t,d=this.languageConfigurationService.getLanguageConfiguration(c).brackets,a(c,d))}let l=!0;for(;r<t;r++){const t=e.getLanguageId(r);if(c!==t){if(d&&l&&s!==o){const e=h(d,u,i,s,o);if(e)return St(e);l=!1}c=t,d=this.languageConfigurationService.getLanguageConfiguration(c).brackets,a(c,d)}const n=!!d&&!S(e.getStandardTokenType(r));if(n)l||(s=e.getStartOffset(r)),o=e.getEndOffset(r);else if(d&&l&&s!==o){const e=h(d,u,i,s,o);if(e)return St(e)}l=n}if(d&&l&&s!==o){const e=h(d,u,i,s,o);if(e)return St(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const i=e.getBracketInfo(n);return i?{range:t,bracketInfo:i}:null}}function Tt(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class Ct{static{this.INSTANCE=new Ct}constructor(){this._searchCanceledBrand=void 0}}function St(e){return e instanceof Ct?null:e}var Lt=n(7119),xt=n(5724);class Et extends r.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new At,this.onDidChangeEmitter=new i.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,i){if(i)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new m.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class At{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,xt.zy)(((e,t)=>{const n=[Lt.sN,Lt.lQ,Lt.ss,Lt.l5,Lt.sH,Lt.zp],i=new At;t.addRule(`.monaco-editor .${i.unexpectedClosingBracketClassName} { color: ${e.getColor(Lt.s7)}; }`);const r=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let s=0;s<30;s++){const e=r[s%r.length];t.addRule(`.monaco-editor .${i.getInlineClassNameOfLevel(s)} { color: ${e}; }`)}}));var It=n(8209);function Mt(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Nt{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,i){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=i}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${Mt(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${Mt(this.oldText)}")`:`(replace@${this.oldPosition} "${Mt(this.oldText)}" with "${Mt(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const i=t.length;L.Sw(e,i,n),n+=4;for(let r=0;r<i;r++)L.gN(e,t.charCodeAt(r),n),n+=2;return n}static _readString(e,t){const n=L.bb(e,t);return N(e,t+=4,n)}writeSize(){return 8+Nt._writeStringSize(this.oldText)+Nt._writeStringSize(this.newText)}write(e,t){return L.Sw(e,this.oldPosition,t),t+=4,L.Sw(e,this.newPosition,t),t+=4,t=Nt._writeString(e,this.oldText,t),t=Nt._writeString(e,this.newText,t)}static read(e,t,n){const i=L.bb(e,t);t+=4;const r=L.bb(e,t);t+=4;const s=Nt._readString(e,t);t+=Nt._writeStringSize(s);const o=Nt._readString(e,t);return t+=Nt._writeStringSize(o),n.push(new Nt(i,s,r,o)),t}}class Rt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),i=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(i),i=this._getCurr(++t);continue}if(null===i){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldEnd<=n.newPosition){this._acceptCurr(i),i=this._getCurr(++t);continue}if(n.newEnd<=i.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldPosition<n.newPosition){const[e,t]=Rt._splitCurr(i,n.newPosition-i.oldPosition);this._acceptCurr(e),i=t;continue}if(n.newPosition<i.oldPosition){const[e,t]=Rt._splitPrev(n,i.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let r,s;if(i.oldEnd===n.newEnd)r=n,s=i,n=this._getPrev(++e),i=this._getCurr(++t);else if(i.oldEnd<n.newEnd){const[e,o]=Rt._splitPrev(n,i.oldLength);r=e,s=i,n=o,i=this._getCurr(++t)}else{const[t,o]=Rt._splitCurr(i,n.newLength);r=n,s=t,n=this._getPrev(++e),i=o}this._result[this._resultLen++]=new Nt(r.oldPosition,r.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=r.newLength-r.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const r=Rt._merge(this._result);return Rt._removeNoOps(r)}_acceptCurr(e){this._result[this._resultLen++]=Rt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=Rt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Nt(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Nt(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),i=e.newText.substr(t);return[new Nt(e.oldPosition,e.oldText,e.newPosition,n),new Nt(e.oldEnd,"",e.newPosition+t,i)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),i=e.oldText.substr(t);return[new Nt(e.oldPosition,n,e.newPosition,e.newText),new Nt(e.oldPosition+t,i,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,i=e[0];for(let r=1;r<e.length;r++){const s=e[r];i.oldEnd===s.oldPosition?i=new Nt(i.oldPosition,i.oldText+s.oldText,i.newPosition,i.newText+s.newText):(t[n++]=i,i=s)}return t[n++]=i,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let i=0;i<e.length;i++){const r=e[i];r.oldText!==r.newText&&(t[n++]=r)}return t}}var Dt=n(9403);function Ot(e){return e.toString()}class Bt{static create(e,t){const n=e.getAlternativeVersionId(),i=Ft(e);return new Bt(n,n,i,i,t,t,[])}constructor(e,t,n,i,r,s,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=i,this.beforeCursorState=r,this.afterCursorState=s,this.changes=o}append(e,t,n,i,r){var s,o;t.length>0&&(this.changes=(s=this.changes,o=t,null===s||0===s.length?o:new Rt(s,o).compress())),this.afterEOL=n,this.afterVersionId=i,this.afterCursorState=r}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(L.Sw(e,t?t.length:0,n),n+=4,t)for(const i of t)L.Sw(e,i.selectionStartLineNumber,n),n+=4,L.Sw(e,i.selectionStartColumn,n),n+=4,L.Sw(e,i.positionLineNumber,n),n+=4,L.Sw(e,i.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const i=L.bb(e,t);t+=4;for(let r=0;r<i;r++){const i=L.bb(e,t);t+=4;const r=L.bb(e,t);t+=4;const s=L.bb(e,t);t+=4;const o=L.bb(e,t);t+=4,n.push(new p.L(i,r,s,o))}return t}serialize(){let e=10+Bt._writeSelectionsSize(this.beforeCursorState)+Bt._writeSelectionsSize(this.afterCursorState)+4;for(const i of this.changes)e+=i.writeSize();const t=new Uint8Array(e);let n=0;L.Sw(t,this.beforeVersionId,n),n+=4,L.Sw(t,this.afterVersionId,n),n+=4,L.Gs(t,this.beforeEOL,n),n+=1,L.Gs(t,this.afterEOL,n),n+=1,n=Bt._writeSelections(t,this.beforeCursorState,n),n=Bt._writeSelections(t,this.afterCursorState,n),L.Sw(t,this.changes.length,n),n+=4;for(const i of this.changes)n=i.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const i=L.bb(t,n);n+=4;const r=L.bb(t,n);n+=4;const s=L.pJ(t,n);n+=1;const o=L.pJ(t,n);n+=1;const a=[];n=Bt._readSelections(t,n,a);const l=[];n=Bt._readSelections(t,n,l);const h=L.bb(t,n);n+=4;const c=[];for(let d=0;d<h;d++)n=Nt.read(t,n,c);return new Bt(i,r,s,o,a,l,c)}}class zt{get type(){return 0}get resource(){return c.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,i){this.label=e,this.code=t,this.model=n,this._data=Bt.create(n,i)}toString(){return(this._data instanceof Bt?this._data:Bt.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(c.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Bt}append(e,t,n,i,r){this._data instanceof Bt&&this._data.append(e,t,n,i,r)}close(){this._data instanceof Bt&&(this._data=this._data.serialize())}open(){this._data instanceof Bt||(this._data=Bt.deserialize(this._data))}undo(){if(c.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(c.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Bt&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Pt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const i of this._editStackElementsArr){const e=Ot(i.resource);this._editStackElementsMap.set(e,i)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Ot(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Ot(c.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Ot(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,i,r){const s=Ot(e.uri);this._editStackElementsMap.get(s).append(e,t,n,i,r)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Ot(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,Dt.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function Ft(e){return"\n"===e.getEOL()?0:1}function Wt(e){return!!e&&(e instanceof zt||e instanceof Pt)}class Ht{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Wt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Wt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(Wt(n)&&n.canAppend(this._model))return n;const i=new zt(It.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(i,t),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],Ft(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,i){const r=this._getOrCreateEditStackElement(e,i),s=this._model.applyEdits(t,!0),o=Ht._computeCursorState(n,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),r.append(this._model,a.map((e=>e.textChange)),Ft(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var Ut,qt=n(6041);class Vt extends r.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(Ut||(Ut={}));class jt{constructor(e,t,n,i,r,s){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=i,this.forWrappedLinesAfterColumn=r,this.forWrappedLinesBeforeOrAtColumn=s,-1!==e===(-1!==t))throw new Error}}class Gt{constructor(e,t){this.top=e,this.endColumn=t}}class Kt extends Vt{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,i=0;const r=e.length;for(;i<r;){const r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===r?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new l.D7("Illegal value for lineNumber");const r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide);let o=-2,a=-1,h=-2,c=-1;const d=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===h){h=-1,c=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){h=t,c=e;break}}}};let u=-2,g=-1,f=-2,m=-1;const p=e=>{if(-2===u){u=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,g=e;break}}}if(-1!==f&&(-2===f||f<e-1)){f=-1,m=-1;for(let t=e;t<i;t++){const e=this._computeIndentLevel(t);if(e>=0){f=t,m=e;break}}}};let _=0,b=!0,v=0,w=!0,k=0,y=0;for(let l=0;b||w;l++){const r=e-l,o=e+l;l>1&&(r<1||r<t)&&(b=!1),l>1&&(o>i||o>n)&&(w=!1),l>5e4&&(b=!1,w=!1);let f=-1;if(b&&r>=1){const e=this._computeIndentLevel(r-1);e>=0?(h=r-1,c=e,f=Math.ceil(e/this.textModel.getOptions().indentSize)):(d(r),f=this._getIndentLevelForWhitespaceLine(s,a,c))}let T=-1;if(w&&o<=i){const e=this._computeIndentLevel(o-1);e>=0?(u=o-1,g=e,T=Math.ceil(e/this.textModel.getOptions().indentSize)):(p(o),T=this._getIndentLevelForWhitespaceLine(s,g,m))}if(0!==l){if(1===l){if(o<=i&&T>=0&&y+1===T){b=!1,_=o,v=o,k=T;continue}if(r>=1&&f>=0&&f-1===y){w=!1,_=r,v=r,k=f;continue}if(_=e,v=e,k=y,0===k)return{startLineNumber:_,endLineNumber:v,indent:k}}b&&(f>=k?_=r:b=!1),w&&(T>=k?v=o:w=!1)}else y=f}return{startLineNumber:_,endLineNumber:v,indent:k}}getLinesBracketGuides(e,t,n,i){const r=[];for(let h=e;h<=t;h++)r.push([]);const s=!0,o=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new m.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let a;if(n&&o.length>0){const i=(e<=n.lineNumber&&n.lineNumber<=t?o:this.textModel.bracketPairs.getBracketPairsInRange(m.Q.fromPositions(n)).toArray()).filter((e=>m.Q.strictContainsPosition(e.range,n)));a=(0,qt.Uk)(i,(e=>s))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,c=new $t;for(const d of o){if(!d.closingBracketRange)continue;const n=a&&d.range.equalsRange(a);if(!n&&!i.includeInactive)continue;const s=c.getInlineClassName(d.nestingLevel,d.nestingLevelOfEqualBracketType,l)+(i.highlightActive&&n?" "+c.activeClassName:""),o=d.openingBracketRange.getStartPosition(),u=d.closingBracketRange.getStartPosition(),g=i.horizontalGuides===Ut.Enabled||i.horizontalGuides===Ut.EnabledForActive&&n;if(d.range.startLineNumber===d.range.endLineNumber){g&&r[d.range.startLineNumber-e].push(new jt(-1,d.openingBracketRange.getEndPosition().column,s,new Gt(!1,u.column),-1,-1));continue}const f=this.getVisibleColumnFromPosition(u),m=this.getVisibleColumnFromPosition(d.openingBracketRange.getStartPosition()),p=Math.min(m,f,d.minVisibleColumnIndentation+1);let _=!1;h.HG(this.textModel.getLineContent(d.closingBracketRange.startLineNumber))<d.closingBracketRange.startColumn-1&&(_=!0);const b=Math.max(o.lineNumber,e),v=Math.min(u.lineNumber,t),w=_?1:0;for(let t=b;t<v+w;t++)r[t-e].push(new jt(p,-1,s,null,t===o.lineNumber?o.column:-1,t===u.lineNumber?u.column:-1));g&&(o.lineNumber>=e&&m>p&&r[o.lineNumber-e].push(new jt(p,-1,s,new Gt(!1,o.column),-1,-1)),u.lineNumber<=t&&f>p&&r[u.lineNumber-e].push(new jt(p,-1,s,new Gt(!_,u.column),-1,-1)))}for(const h of r)h.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return r}getVisibleColumnFromPosition(e){return u.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const i=this.textModel.getOptions(),r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(r&&r.offSide),o=new Array(t-e+1);let a=-2,l=-1,h=-2,c=-1;for(let d=e;d<=t;d++){const t=d-e,r=this._computeIndentLevel(d-1);if(r>=0)a=d-1,l=r,o[t]=Math.ceil(r/i.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=d-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==h&&(-2===h||h<d-1)){h=-1,c=-1;for(let e=d;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){h=e,c=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(s,l,c)}}return o}_getIndentLevelForWhitespaceLine(e,t,n){const i=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/i.indentSize):t===n||e?Math.ceil(n/i.indentSize):1+Math.floor(n/i.indentSize)}}class $t{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Qt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Yt(e,t,n,i,r){let s;for(r.spacesDiff=0,r.looksLikeAlignment=!1,s=0;s<t&&s<i;s++){if(e.charCodeAt(s)!==n.charCodeAt(s))break}let o=0,a=0;for(let u=s;u<t;u++){32===e.charCodeAt(u)?o++:a++}let l=0,h=0;for(let u=s;u<i;u++){32===n.charCodeAt(u)?l++:h++}if(o>0&&a>0)return;if(l>0&&h>0)return;const c=Math.abs(a-h),d=Math.abs(o-l);if(0===c)return r.spacesDiff=d,void(d>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(r.looksLikeAlignment=!0));d%c!==0||(r.spacesDiff=d/c)}function Xt(e,t,n){const i=Math.min(e.getLineCount(),1e4);let r=0,s=0,o="",a=0;const l=[2,4,6,8,3,5,7],h=[0,0,0,0,0,0,0,0,0],c=new Qt;for(let g=1;g<=i;g++){const i=e.getLineLength(g),l=e.getLineContent(g),d=i<=65536;let u=!1,f=0,m=0,p=0;for(let t=0,n=i;t<n;t++){const n=d?l.charCodeAt(t):e.getLineCharCode(g,t);if(9===n)p++;else{if(32!==n){u=!0,f=t;break}m++}}if(!u)continue;if(p>0?r++:m>1&&s++,Yt(o,a,l,f,c),c.looksLikeAlignment&&(!n||t!==c.spacesDiff))continue;const _=c.spacesDiff;_<=8&&h[_]++,o=l,a=f}let d=n;r!==s&&(d=r<s);let u=t;if(d){let e=d?0:.1*i;l.forEach((t=>{const n=h[t];n>e&&(e=n,u=t)})),4===u&&h[4]>0&&h[2]>0&&h[2]>=h[4]/2&&(u=2)}return{insertSpaces:d,tabSize:u}}function Jt(e){return(1&e.metadata)>>>0}function Zt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function sn(e){return(64&e.metadata)>>>6===1}function on(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function an(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class hn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Zt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),on(this,!1),an(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),on(this,null!==this.options.glyphMarginClassName),an(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const cn=new hn(null,0,0);cn.parent=cn,cn.left=cn,cn.right=cn,Zt(cn,0);class dn{constructor(){this.root=cn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,i,r,s){return this.root===cn?[]:function(e,t,n,i,r,s,o){let a=e.root,l=0,h=0,c=0,d=0;const u=[];let g=0;for(;a!==cn;)if(en(a))tn(a.left,!1),tn(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!en(a.left)){if(h=l+a.maxEnd,h<t){tn(a,!0);continue}if(a.left!==cn){a=a.left;continue}}if(c=l+a.start,c>n)tn(a,!0);else{if(d=l+a.end,d>=t){a.setCachedOffsets(c,d,s);let e=!0;i&&a.ownerId&&a.ownerId!==i&&(e=!1),r&&nn(a)&&(e=!1),o&&!sn(a)&&(e=!1),e&&(u[g++]=a)}tn(a,!0),a.right===cn||en(a.right)||(l+=a.delta,a=a.right)}}return tn(e.root,!1),u}(this,e,t,n,i,r,s)}search(e,t,n,i){return this.root===cn?[]:function(e,t,n,i,r){let s=e.root,o=0,a=0,l=0;const h=[];let c=0;for(;s!==cn;){if(en(s)){tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),s=s.parent;continue}if(s.left!==cn&&!en(s.left)){s=s.left;continue}a=o+s.start,l=o+s.end,s.setCachedOffsets(a,l,i);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),n&&nn(s)&&(e=!1),r&&!sn(s)&&(e=!1),e&&(h[c++]=s),tn(s,!0),s.right===cn||en(s.right)||(o+=s.delta,s=s.right)}return tn(e.root,!1),h}(this,e,t,n,i)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const i=[];let r=0;for(;n!==cn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===cn||en(n.left)?(n.ownerId===t&&(i[r++]=n),tn(n,!0),n.right===cn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),i}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let i=0;for(;t!==cn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===cn||en(t.left)?t.right===cn||en(t.right)?(n[i++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){fn(this,e),this._normalizeDeltaIfNecessary()}delete(e){mn(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let i=0;for(;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;const r=n.start+i,s=n.end+i;n.setCachedOffsets(r,s,t)}acceptReplace(e,t,n,i){const r=function(e,t,n){let i=e.root,r=0,s=0,o=0,a=0;const l=[];let h=0;for(;i!==cn;)if(en(i))tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else{if(!en(i.left)){if(s=r+i.maxEnd,s<t){tn(i,!0);continue}if(i.left!==cn){i=i.left;continue}}o=r+i.start,o>n?tn(i,!0):(a=r+i.end,a>=t&&(i.setCachedOffsets(o,a,0),l[h++]=i),tn(i,!0),i.right===cn||en(i.right)||(r+=i.delta,i=i.right))}return tn(e.root,!1),l}(this,e,e+t);for(let s=0,o=r.length;s<o;s++){mn(this,r[s])}this._normalizeDeltaIfNecessary(),function(e,t,n,i){let r=e.root,s=0,o=0,a=0;const l=i-(n-t);for(;r!==cn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(s-=r.parent.delta),wn(r),r=r.parent;else{if(!en(r.left)){if(o=s+r.maxEnd,o<t){tn(r,!0);continue}if(r.left!==cn){r=r.left;continue}}a=s+r.start,a>n?(r.start+=l,r.end+=l,r.delta+=l,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(r,!0)):(tn(r,!0),r.right===cn||en(r.right)||(s+=r.delta,r=r.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let s=0,o=r.length;s<o;s++){const o=r[s];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,gn(o,e,e+t,n,i),o.maxEnd=o.end,fn(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==cn;)t.left===cn||en(t.left)?t.right===cn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,wn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function un(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function gn(e,t,n,i,r){const s=function(e){return(24&e.metadata)>>>3}(e),o=0===s||2===s,a=1===s||2===s,l=n-t,h=i,c=Math.min(l,h),d=e.start;let u=!1;const g=e.end;let f=!1;t<=d&&g<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,u=!0,e.end=t,f=!0);{const e=r?1:l>0?2:0;!u&&un(d,o,t,e)&&(u=!0),!f&&un(g,a,t,e)&&(f=!0)}if(c>0&&!r){const e=l>h?2:0;!u&&un(d,o,t+c,e)&&(u=!0),!f&&un(g,a,t+c,e)&&(f=!0)}{const i=r?1:0;!u&&un(d,o,n,i)&&(e.start=t+h,u=!0),!f&&un(g,a,n,i)&&(e.end=t+h,f=!0)}const m=h-l;u||(e.start=Math.max(0,d+m)),f||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function fn(e,t){if(e.root===cn)return t.parent=cn,t.left=cn,t.right=cn,Zt(t,0),e.root=t,e.root;!function(e,t){let n=0,i=e.root;const r=t.start,s=t.end;for(;;){if(yn(r,s,i.start+n,i.end+n)<0){if(i.left===cn){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===cn){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=cn,t.right=cn,Zt(t,1)}(e,t),kn(t.parent);let n=t;for(;n!==e.root&&1===Jt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Jt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,_n(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),bn(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Jt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,bn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),_n(e,n.parent.parent))}return Zt(e.root,0),t}function mn(e,t){let n,i;if(t.left===cn?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===cn?(n=t.left,i=t):(i=function(e){for(;e.left!==cn;)e=e.left;return e}(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Zt(n,0),t.detach(),pn(),wn(n),void(e.root.parent=cn);const r=1===Jt(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Zt(i,Jt(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==cn&&(i.left.parent=i),i.right!==cn&&(i.right.parent=i)),t.detach(),r)return kn(n.parent),i!==t&&(kn(i),kn(i.parent)),void pn();let s;for(kn(n),kn(n.parent),i!==t&&(kn(i),kn(i.parent));n!==e.root&&0===Jt(n);)n===n.parent.left?(s=n.parent.right,1===Jt(s)&&(Zt(s,0),Zt(n.parent,1),_n(e,n.parent),s=n.parent.right),0===Jt(s.left)&&0===Jt(s.right)?(Zt(s,1),n=n.parent):(0===Jt(s.right)&&(Zt(s.left,0),Zt(s,1),bn(e,s),s=n.parent.right),Zt(s,Jt(n.parent)),Zt(n.parent,0),Zt(s.right,0),_n(e,n.parent),n=e.root)):(s=n.parent.left,1===Jt(s)&&(Zt(s,0),Zt(n.parent,1),bn(e,n.parent),s=n.parent.left),0===Jt(s.left)&&0===Jt(s.right)?(Zt(s,1),n=n.parent):(0===Jt(s.left)&&(Zt(s.right,0),Zt(s,1),_n(e,s),s=n.parent.left),Zt(s,Jt(n.parent)),Zt(n.parent,0),Zt(s.left,0),bn(e,n.parent),n=e.root));Zt(n,0),pn()}function pn(){cn.parent=cn,cn.delta=0,cn.start=0,cn.end=0}function _n(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==cn&&(n.left.parent=t),n.parent=t.parent,t.parent===cn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,wn(t),wn(n)}function bn(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==cn&&(n.right.parent=t),n.parent=t.parent,t.parent===cn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,wn(t),wn(n)}function vn(e){let t=e.end;if(e.left!==cn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==cn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function wn(e){e.maxEnd=vn(e)}function kn(e){for(;e!==cn;){const t=vn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function yn(e,t,n,i){return e===n?t-i:e-n}class Tn{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Cn)return Sn(this.right);let e=this;for(;e.parent!==Cn&&e.parent.left!==e;)e=e.parent;return e.parent===Cn?Cn:e.parent}prev(){if(this.left!==Cn)return Ln(this.left);let e=this;for(;e.parent!==Cn&&e.parent.right!==e;)e=e.parent;return e.parent===Cn?Cn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Cn=new Tn(null,0);function Sn(e){for(;e.left!==Cn;)e=e.left;return e}function Ln(e){for(;e.right!==Cn;)e=e.right;return e}function xn(e){return e===Cn?0:e.size_left+e.piece.length+xn(e.right)}function En(e){return e===Cn?0:e.lf_left+e.piece.lineFeedCnt+En(e.right)}function An(){Cn.parent=Cn}function In(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==Cn&&(n.left.parent=t),n.parent=t.parent,t.parent===Cn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function Mn(e,t){const n=t.left;t.left=n.right,n.right!==Cn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===Cn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Nn(e,t){let n,i;if(t.left===Cn?(i=t,n=i.right):t.right===Cn?(i=t,n=i.left):(i=Sn(t.right),n=i.right),i===e.root)return e.root=n,n.color=0,t.detach(),An(),void(e.root.parent=Cn);const r=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,On(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,On(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==Cn&&(i.left.parent=i),i.right!==Cn&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,On(e,i)),t.detach(),n.parent.left===n){const t=xn(n),i=En(n);if(t!==n.parent.size_left||i!==n.parent.lf_left){const r=t-n.parent.size_left,s=i-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=i,Dn(e,n.parent,r,s)}}if(On(e,n.parent),r)return void An();let s;for(;n!==e.root&&0===n.color;)n===n.parent.left?(s=n.parent.right,1===s.color&&(s.color=0,n.parent.color=1,In(e,n.parent),s=n.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.right.color&&(s.left.color=0,s.color=1,Mn(e,s),s=n.parent.right),s.color=n.parent.color,n.parent.color=0,s.right.color=0,In(e,n.parent),n=e.root)):(s=n.parent.left,1===s.color&&(s.color=0,n.parent.color=1,Mn(e,n.parent),s=n.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.left.color&&(s.right.color=0,s.color=1,In(e,s),s=n.parent.left),s.color=n.parent.color,n.parent.color=0,s.left.color=0,Mn(e,n.parent),n=e.root));n.color=0,An()}function Rn(e,t){for(On(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&In(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Mn(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Mn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,In(e,t.parent.parent))}e.root.color=0}function Dn(e,t,n,i){for(;t!==e.root&&t!==Cn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function On(e,t){let n=0,i=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=xn((t=t.parent).left)-t.size_left,i=En(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}Cn.parent=Cn,Cn.left=Cn,Cn.right=Cn,Cn.color=0;var Bn=n(7729);const zn=65535;function Pn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Fn{constructor(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}}function Wn(e,t=!0){const n=[0];let i=1;for(let r=0,s=e.length;r<s;r++){const t=e.charCodeAt(r);13===t?r+1<s&&10===e.charCodeAt(r+1)?(n[i++]=r+2,r++):n[i++]=r+1:10===t&&(n[i++]=r+1)}return t?Pn(n):n}class Hn{constructor(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}}class Un{constructor(e,t){this.buffer=e,this.lineStarts=t}}class qn{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Cn&&e.iterate(e.root,(e=>(e!==Cn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Vn{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let i=0;i<n.length;i++){const r=n[i];(null===r.node.parent||r.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class jn{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new Un("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Cn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let i=null;for(let r=0,s=e.length;r<s;r++)if(e[r].buffer.length>0){e[r].lineStarts||(e[r].lineStarts=Wn(e[r].buffer));const t=new Hn(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,t)}this._searchCache=new Vn(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=zn,n=t-Math.floor(21845),i=2*n;let r="",s=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),l=a.length;if(s<=n||s+l<i)return r+=a,s+=l,!0;const h=r.replace(/\r\n|\r|\n/g,e);return o.push(new Un(h,Wn(h))),r=a,s=l,!0})),s>0){const t=r.replace(/\r\n|\r|\n/g,e);o.push(new Un(t,Wn(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new qn(this,e)}getOffsetAt(e,t){let n=0,i=this.root;for(;i!==Cn;)if(i.left!==Cn&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;return n+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const i=e;for(;t!==Cn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){const e=i-this.getOffsetAt(n+1,1);return new f.y(n+1,e+1)}return new f.y(n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===Cn){const t=i-e-this.getOffsetAt(n+1,1);return new f.y(n+1,t+1)}t=t.right}return new f.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}let n=e.node;const i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let s=i.substring(r+e.remainder,r+n.piece.length);for(n=n.next();n!==Cn;){const e=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){s+=e.substring(i,i+t.remainder);break}s+=e.substr(i,n.piece.length),n=n.next()}return s}getLinesContent(){const e=[];let t=0,n="",i=!1;return this.iterate(this.root,(r=>{if(r===Cn)return!0;const s=r.piece;let o=s.length;if(0===o)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,h=s.start.line,c=s.end.line;let d=l[h]+s.start.column;if(i&&(10===a.charCodeAt(d)&&(d++,o--),e[t++]=n,n="",i=!1,0===o))return!0;if(h===c)return this._EOLNormalized||13!==a.charCodeAt(d+o-1)?n+=a.substr(d,o):(i=!0,n+=a.substr(d,o-1)),!0;n+=this._EOLNormalized?a.substring(d,Math.max(d,l[h+1]-this._EOLLength)):a.substring(d,l[h+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let i=h+1;i<c;i++)n=this._EOLNormalized?a.substring(l[i],l[i+1]-this._EOLLength):a.substring(l[i],l[i+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==a.charCodeAt(l[c]+s.end.column-1)?n=a.substr(l[c],s.end.column):(i=!0,0===s.end.column?t--:n=a.substr(l[c],s.end.column-1)),!0})),i&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],i=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(i)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,i,r,s,o,a,l,h,c){const d=this._buffers[e.piece.bufferIndex],u=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,r),f=this.offsetInBuffer(e.piece.bufferIndex,s);let p;const _={line:0,column:0};let b,v;t._wordSeparators?(b=d.buffer.substring(g,f),v=e=>e+g,t.reset(0)):(b=d.buffer,v=e=>e,t.reset(g));do{if(p=t.next(b),p){if(v(p.index)>=f)return h;this.positionInBuffer(e,v(p.index)-u,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,r,_),s=_.line===r.line?_.column-r.column+i:_.column+1,o=s+p[0].length;if(c[h++]=(0,Bn.dr)(new m.Q(n+t,s,n+t,o),p,a),v(p.index)+p[0].length>=f)return h;if(h>=l)return h}}while(p);return h}findMatchesLineByLine(e,t,n,i){const r=[];let s=0;const o=new Bn.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let h=this.positionInBuffer(a.node,a.remainder);const c=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,h,c,t,n,i,s,r),r;let d=e.startLineNumber,u=a.node;for(;u!==l.node;){const l=this.getLineFeedCnt(u.piece.bufferIndex,h,u.piece.end);if(l>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,c=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[h.line+l],f=d===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(u,o,d,f,h,this.positionInBuffer(u,g-c),t,n,i,s,r),s>=i)return r;d+=l}const c=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const a=this.getLineContent(d).substring(c,e.endColumn-1);return s=this._findMatchesInLine(t,o,a,e.endLineNumber,c,s,r,n,i),r}if(s=this._findMatchesInLine(t,o,this.getLineContent(d).substr(c),d,c,s,r,n,i),s>=i)return r;d++,a=this.nodeAt2(d,1),u=a.node,h=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){const a=d===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(d).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,o,l,e.endLineNumber,a,s,r,n,i),r}const g=d===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,o,d,g,h,c,t,n,i,s,r),r}_findMatchesInLine(e,t,n,i,r,s,o,a,l){const h=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,c=n.length;let d=-a;for(;-1!==(d=n.indexOf(t,d+a));)if((!h||(0,Bn.wC)(h,n,c,d,a))&&(o[s++]=new me.Dg(new m.Q(i,d+1+r,i,d+1+a+r),null),s>=l))return s;return s}let c;t.reset(0);do{if(c=t.next(n),c&&(o[s++]=(0,Bn.dr)(new m.Q(i,c.index+1+r,i,c.index+1+c[0].length+r),c,a),s>=l))return s}while(c);return s}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Cn){const{node:n,remainder:i,nodeStartOffset:r}=this.nodeAt(e),s=n.piece,o=s.bufferIndex,a=this.positionInBuffer(n,i);if(0===n.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&r+s.length===e&&t.length<zn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(r===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(r+n.piece.length>e){const e=[];let r=new Hn(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(o,s.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,i)){const e={line:r.start.line+1,column:0};r=new Hn(r.bufferIndex,e,r.end,this.getLineFeedCnt(r.bufferIndex,e,r.end),r.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,i-1)){const r=this.positionInBuffer(n,i-1);this.deleteNodeTail(n,r),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,a)}else this.deleteNodeTail(n,a);const l=this.createNewPieces(t);r.length>0&&this.rbInsertRight(n,r);let h=n;for(let t=0;t<l.length;t++)h=this.rbInsertRight(h,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===Cn)return;const n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,s=i.node;if(r===s){const s=this.positionInBuffer(r,n.remainder),o=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){const e=r.next();return Nn(this,r),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(r,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,s),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,s,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,a),this._searchCache.validate(e),0===r.piece.length&&o.push(r);const l=this.positionInBuffer(s,i.remainder);this.deleteNodeHead(s,l),0===s.piece.length&&o.push(s);for(let c=r.next();c!==Cn&&c!==s;c=c.next())o.push(c);const h=0===r.piece.length?r.prev():r;this.deleteNodes(o),this.validateCRLFWithNextNode(h),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const i=t.piece,r={line:i.start.line+1,column:0},s=new Hn(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=s,e+="\n",Dn(this,t,-1,-1),0===t.piece.length&&n.push(t)}const i=this.createNewPieces(e);let r=this.rbInsertLeft(t,i[i.length-1]);for(let s=i.length-2;s>=0;s--)r=this.rbInsertLeft(r,i[s]);this.validateCRLFWithPrevNode(r),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]);let r=i;for(let s=1;s<n.length;s++)r=this.rbInsertRight(r,n[s]);this.validateCRLFWithPrevNode(i)}positionInBuffer(e,t,n){const i=e.piece,r=e.piece.bufferIndex,s=this._buffers[r].lineStarts,o=s[i.start.line]+i.start.column+t;let a=i.start.line,l=i.end.line,h=0,c=0,d=0;for(;a<=l&&(h=a+(l-a)/2|0,d=s[h],h!==l);)if(c=s[h+1],o<d)l=h-1;else{if(!(o>=c))break;a=h+1}return n?(n.line=h,n.column=o-d,null):{line:h,column:o-d}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;const r=i[n.line+1],s=i[n.line]+n.column;if(r>s+1)return n.line-t.line;const o=s-1;return 13===this._buffers[e].buffer.charCodeAt(o)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Nn(this,e[t])}createNewPieces(e){if(e.length>zn){const t=[];for(;e.length>zn;){const n=e.charCodeAt(65534);let i;13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,zn),e=e.substring(zn));const r=Wn(i);t.push(new Hn(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new Un(i,r))}const n=Wn(e);return t.push(new Hn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new Un(e,n)),t}let t=this._buffers[0].buffer.length;const n=Wn(e,!1);let i=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},i=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const r=this._buffers[0].buffer.length,s=this._buffers[0].lineStarts.length-1,o={line:s,column:r-this._buffers[0].lineStarts[s]},a=new Hn(0,i,o,this.getLineFeedCnt(0,i,o),r-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let n=this.root,i="";const r=this._searchCache.get2(e);if(r){n=r.node;const s=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),o=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const i=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return o.substring(a+s,a+i-t)}i=o.substring(a+s,a+n.piece.length)}else{let r=0;const s=e;for(;n!==Cn;)if(n.left!==Cn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:r,nodeStartLineNumber:s-(e-1-n.lf_left)}),a.substring(l+i,l+o-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),r=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=r.substring(s+t,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==Cn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const r=this.getAccumulatedValue(n,0),s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=e.substring(s,s+r-t),i}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=e.substr(t,n.piece.length)}n=n.next()}return i}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==Cn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(t!==r)return{index:t,remainder:0}}return{index:r,remainder:i.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),s=t,o=this.offsetInBuffer(n.bufferIndex,s),a=this.getLineFeedCnt(n.bufferIndex,n.start,s),l=a-i,h=o-r,c=n.length+h;e.piece=new Hn(n.bufferIndex,n.start,s,a,c),Dn(this,e,h,l)}deleteNodeHead(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),s=t,o=this.getLineFeedCnt(n.bufferIndex,s,n.end),a=o-i,l=r-this.offsetInBuffer(n.bufferIndex,s),h=n.length+l;e.piece=new Hn(n.bufferIndex,s,n.end,o,h),Dn(this,e,l,a)}shrinkNode(e,t,n){const i=e.piece,r=i.start,s=i.end,o=i.length,a=i.lineFeedCnt,l=t,h=this.getLineFeedCnt(i.bufferIndex,i.start,l),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new Hn(i.bufferIndex,i.start,l,h,c),Dn(this,e,c-o,h-a);const d=new Hn(i.bufferIndex,n,s,this.getLineFeedCnt(i.bufferIndex,n,s),this.offsetInBuffer(i.bufferIndex,s)-this.offsetInBuffer(i.bufferIndex,n)),u=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const r=Wn(t,!1);for(let d=0;d<r.length;d++)r[d]+=i;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));const s=this._buffers[0].lineStarts.length-1,o={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,h=this.getLineFeedCnt(0,e.piece.start,o),c=h-l;e.piece=new Hn(e.piece.bufferIndex,e.piece.start,o,h,a),this._lastChangeBufferPos=o,Dn(this,e,t.length,c)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let i=0;for(;t!==Cn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,i=0;for(;n!==Cn;)if(n.left!==Cn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,s),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Cn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),i=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:i}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===Cn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;if(i===n.length-1)return!1;return!(n[i+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==Cn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],i=this._buffers[e.piece.bufferIndex].lineStarts;let r;r=0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new Hn(e.piece.bufferIndex,e.piece.start,r,o,s),Dn(this,e,-1,-1),0===e.piece.length&&n.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,h=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Hn(t.piece.bufferIndex,a,t.piece.end,h,l),Dn(this,t,-1,-1),0===t.piece.length&&n.push(t);const c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(let d=0;d<n.length;d++)Nn(this,n[d])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Nn(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},i=e.length-1,r=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new Hn(e.bufferIndex,t,e.end,r,i),Dn(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===Cn)return t(Cn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===Cn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,i=this.offsetInBuffer(n.bufferIndex,n.start),r=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(i,r)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),i=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,i)}rbInsertRight(e,t){const n=new Tn(t,1);n.left=Cn,n.right=Cn,n.parent=Cn,n.size_left=0,n.lf_left=0;if(this.root===Cn)this.root=n,n.color=0;else if(e.right===Cn)e.right=n,n.parent=e;else{const t=Sn(e.right);t.left=n,n.parent=t}return Rn(this,n),n}rbInsertLeft(e,t){const n=new Tn(t,1);if(n.left=Cn,n.right=Cn,n.parent=Cn,n.size_left=0,n.lf_left=0,this.root===Cn)this.root=n,n.color=0;else if(e.left===Cn)e.left=n,n.parent=e;else{const t=Ln(e.left);t.right=n,n.parent=t}return Rn(this,n),n}}class Gn extends r.jG{constructor(e,t,n,r,s,o,a){super(),this._onDidChangeContent=this._register(new i.vl),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=r,this._mightContainUnusualLineTerminators=s,this._pieceTree=new jn(e,n,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,i=this.getPositionAt(e),r=this.getPositionAt(n);return new m.Q(i.lineNumber,i.column,r.lineNumber,r.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),i=this.getOffsetAt(e.endLineNumber,e.endColumn);let r=0;const s=this._getEndOfLine(t),o=this.getEOL();if(s.length!==o.length){r=(s.length-o.length)*(e.endLineNumber-e.startLineNumber)}return i-n+r}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const i=e.startLineNumber,r=e.endLineNumber;for(let t=i;t<=r;t++){const s=this.getLineContent(t),o=t===i?e.startColumn-1:0,a=t===r?e.endColumn-1:s.length;for(let e=o;e<a;e++)h.pc(s.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(r-i),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=h.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=h.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let i=this._mightContainRTL,r=this._mightContainUnusualLineTerminators,s=this._mightContainNonBasicASCII,o=!0,a=[];for(let p=0;p<e.length;p++){const t=e[p];o&&t._isTracked&&(o=!1);const n=t.range;if(t.text){let e=!0;s||(e=!h.aC(t.text),s=e),!i&&e&&(i=h.E_(t.text)),!r&&e&&(r=h.$X(t.text))}let l="",c=0,u=0,g=0;if(t.text){let e;[c,u,g,e]=(0,d.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}a[p]={sortIndex:p,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:c,firstLineLength:u,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Gn._sortOpsAscending);let l=!1;for(let h=0,d=a.length-1;h<d;h++){const e=a[h].range.getEndPosition(),t=a[h+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const c=n||t?Gn._getInverseEditRanges(a):[],u=[];if(t)for(let d=0;d<a.length;d++){const e=a[d],t=c[d];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let i="";n===t.startLineNumber&&(i=this.getLineContent(e.range.startLineNumber),-1!==h.HG(i))||u.push({lineNumber:n,oldContent:i})}}let g=null;if(n){let e=0;g=[];for(let t=0;t<a.length;t++){const n=a[t],i=c[t],r=this.getValueInRange(n.range),s=n.rangeOffset+e;e+=n.text.length-r.length,g[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:i,text:r,textChange:new Nt(n.rangeOffset,r,s,n.text)}}l||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=i,this._mightContainUnusualLineTerminators=r,this._mightContainNonBasicASCII=s;const f=this._doApplyEdits(a);let m=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=u.length;e<t;e++){const t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;const n=u[e].oldContent,i=this.getLineContent(t);0!==i.length&&i!==n&&-1===h.HG(i)&&m.push(t)}}return this._onDidChangeContent.fire(),new me.F4(g,f,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,i=e[e.length-1].range,r=new m.Q(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn);let s=n.startLineNumber,o=n.startColumn;const a=[];for(let d=0,g=e.length;d<g;d++){const n=e[d],i=n.range;t=t||n.forceMoveMarkers,a.push(this.getValueInRange(new m.Q(s,o,i.startLineNumber,i.startColumn))),n.text.length>0&&a.push(n.text),s=i.endLineNumber,o=i.endColumn}const l=a.join(""),[h,c,u]=(0,d.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:r,rangeOffset:this.getOffsetAt(r.startLineNumber,r.startColumn),rangeLength:this.getValueLengthInRange(r,0),text:l,eolCount:h,firstLineLength:c,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Gn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const i=e[n],r=i.range.startLineNumber,s=i.range.startColumn,o=i.range.endLineNumber,a=i.range.endColumn;if(r===o&&s===a&&0===i.text.length)continue;i.text?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,i.text,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength);const l=new m.Q(r,s,o,a);t.push({range:l,rangeLength:i.rangeLength,text:i.text,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)}static _getInverseEditRanges(e){const t=[];let n=0,i=0,r=null;for(let s=0,o=e.length;s<o;s++){const o=e[s];let a,l,h;if(r?r.range.endLineNumber===o.range.startLineNumber?(a=n,l=i+(o.range.startColumn-r.range.endColumn)):(a=n+(o.range.startLineNumber-r.range.endLineNumber),l=o.range.startColumn):(a=o.range.startLineNumber,l=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;h=1===e?new m.Q(a,l,a,l+o.firstLineLength):new m.Q(a,l,a+e-1,o.lastLineLength+1)}else h=new m.Q(a,l,a,l);n=h.endLineNumber,i=h.endColumn,t.push(h),r=o}return t}static _sortOpsAscending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class Kn{constructor(e,t,n,i,r,s,o,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=r,this._containsRTL=s,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let r=0,s=n.length;r<s;r++){const e=n[r].buffer.replace(/\r\n|\r|\n/g,t),i=Wn(e);n[r]=new Un(e,i)}const i=new Gn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:i,disposable:i}}}class $n{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&h.LU(e)&&(this.BOM=h.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,i=0,r=0,s=0,o=!0;for(let l=0,h=t.length;l<h;l++){const a=t.charCodeAt(l);13===a?l+1<h&&10===t.charCodeAt(l+1)?(s++,e[n++]=l+2,l++):(i++,e[n++]=l+1):10===a?(r++,e[n++]=l+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new Fn(Pn(e),i,r,s,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new Un(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=h.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=h.$X(e)))}finish(e=!0){return this._finish(),new Kn(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Wn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Qn=n(6571),Yn=n(2083),Xn=n(1940),Jn=n(8381),Zn=n(4444);const ei=new class{clone(){return this}equals(e){return this===e}};class ti{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const i=this._store.slice(0,e),r=this._store.slice(e+t),s=function(e,t){const n=[];for(let i=0;i<e;i++)n[i]=t;return n}(n,this._default);this._store=i.concat(s,r)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let i=0;i<t;i++)n[i]=this._default;this._store=(0,o.nK)(this._store,e,n)}}class ni{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class ii{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new ni(e,[t]))}finalize(){return this._tokens}}class ri{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=ri.defaultTokenMetadata,i=new Uint32Array(2);return i[0]=e.length,i[1]=n,new ri(i,e,t)}static createFromTextAndMetadata(e,t){let n=0,i="";const r=new Array;for(const{text:s,metadata:o}of e)r.push(n+s.length,o),n+=s.length,i+=s;return new ri(new Uint32Array(r),i,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof ri&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const i=t<<1,r=i+(n<<1);for(let s=i;s<r;s++)if(this._tokens[s]!==e._tokens[s])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Je.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Je.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Je.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Je.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Je.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Je.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ri.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new si(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let i=0;i<n;i++)e[i<<1]=e[i+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,i=(e.length>>>1)-1;for(;n<i;){const r=n+Math.floor((i-n)/2),s=e[r<<1];if(s===t)return r+1;s<t?n=r+1:s>t&&(i=r)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,i="";const r=new Array;let s=0;for(;;){const o=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==o&&(null===a||o<=a.offset)){i+=this._text.substring(s,o);const e=this._tokens[1+(t<<1)];r.push(i.length,e),t++,s=o}else{if(!a)break;if(a.offset>s){i+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];r.push(i.length,e),s=a.offset}i+=a.text,r.push(i.length,a.tokenMetadata),n++}}return new ri(new Uint32Array(r),i,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class si{constructor(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let r=this._firstTokenIndex,s=e.getCount();r<s;r++){if(e.getStartOffset(r)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof si&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),i=this._source.getEndOffset(t);let r=this._source.getTokenText(t);return n<this._startOffset&&(r=r.substring(this._startOffset-n)),i>this._endOffset&&(r=r.substring(0,r.length-(i-this._endOffset))),r}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class oi{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new li(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class ai extends oi{constructor(e,t,n,i){super(e,t),this._textModel=n,this._languageIdCodec=i}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const i=this.getFirstInvalidLine();if(!i||i.lineNumber>t)break;const r=this._textModel.getLineContent(i.lineNumber),s=di(this._languageIdCodec,n,this.tokenizationSupport,r,!0,i.startState);e.add(i.lineNumber,s.tokens),this.store.setEndState(i.lineNumber,s.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const i=this._textModel.getLanguageId(),r=this._textModel.getLineContent(e.lineNumber),s=r.substring(0,e.column-1)+t+r.substring(e.column-1),o=di(this._languageIdCodec,i,this.tokenizationSupport,s,!0,n),a=new ri(o.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const i=e.lineNumber,r=e.column,s=this.getStartState(i);if(!s)return null;const o=this._textModel.getLineContent(i),a=o.substring(0,r-1)+n+o.substring(r-1+t),l=this._textModel.getLanguageIdAtPosition(i,0),h=di(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new ri(h.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let i=this.guessStartState(t);const r=this._textModel.getLanguageId();for(let s=t;s<=n;s++){const t=this._textModel.getLineContent(s),n=di(this._languageIdCodec,r,this.tokenizationSupport,t,!0,i);e.add(s,n.tokens),i=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let i=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(o)),t=e,i=this.getStartState(o),i)))break}i||(i=this.tokenizationSupport.getInitialState()),n.reverse();const r=this._textModel.getLanguageId();let s=i;for(const o of n){s=di(this._languageIdCodec,r,this.tokenizationSupport,o,!1,s).endState}return s}}class li{constructor(e){this.lineCount=e,this._tokenizationStateStore=new hi,this._invalidEndStatesLineNumbers=new ci,this._invalidEndStatesLineNumbers.addRange(new Zn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Zn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Zn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,d.W)(t.text);this.acceptChange(new Qn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Zn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class hi{constructor(){this._lineEndStates=new ti(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class ci{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Zn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Zn.L(n.start,e):this._ranges.splice(t,1,new Zn.L(n.start,e),new Zn.L(e+1,n.endExclusive))}}addRange(e){Zn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let i=n;for(;!(i>=this._ranges.length||e.endExclusive<this._ranges[i].start);)i++;const r=t-e.length;for(let s=i;s<this._ranges.length;s++)this._ranges[s]=this._ranges[s].delta(r);if(n===i){const i=new Zn.L(e.start,e.start+t);i.isEmpty||this._ranges.splice(n,0,i)}else{const t=Math.min(e.start,this._ranges[n].start),s=Math.max(e.endExclusive,this._ranges[i-1].endExclusive),o=new Zn.L(t,s+r);o.isEmpty?this._ranges.splice(n,i-n):this._ranges.splice(n,i-n,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function di(e,t,n,i,r,s){let o=null;if(n)try{o=n.tokenizeEncoded(i,r,s.clone())}catch(a){(0,l.dz)(a)}return o||(o=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new Yn.rY(n,null===t?ei:t)}(e.encodeLanguageId(t),s)),ri.convertToEndOffset(o.tokens,i.length),o}class ui{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Xn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,s._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new ii,n=Jn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Qn.M(e,t))}}class gi{constructor(){this._onDidChangeVisibleRanges=new i.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new fi((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class fi{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Qn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class mi extends r.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Xn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,o.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class pi extends r.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new i.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class _i extends pi{constructor(e,t,n,i){super(t,n,i),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=Yn.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new ri(n,t,this._languageIdCodec)}return ri.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var bi=n(4432);const vi=new Uint32Array(0).buffer;class wi{static deleteBeginning(e,t){return null===e||e===vi?e:wi.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===vi)return e;const n=ki(e),i=n[n.length-2];return wi.delete(e,t,i)}static delete(e,t,n){if(null===e||e===vi||t===n)return e;const i=ki(e),r=i.length>>>1;if(0===t&&i[i.length-2]===n)return vi;const s=ri.findIndexInTokensArray(i,t),o=s>0?i[s-1<<1]:0;if(n<i[s<<1]){const o=n-t;for(let e=s;e<r;e++)i[e<<1]-=o;return e}let a,l;o!==t?(i[s<<1]=t,a=s+1<<1,l=t):(a=s<<1,l=o);const h=n-t;for(let d=s+1;d<r;d++){const e=i[d<<1]-h;e>l&&(i[a++]=e,i[a++]=i[1+(d<<1)],l=e)}if(a===i.length)return e;const c=new Uint32Array(a);return c.set(i.subarray(0,a),0),c.buffer}static append(e,t){if(t===vi)return e;if(e===vi)return t;if(null===e)return e;if(null===t)return null;const n=ki(e),i=ki(t),r=i.length>>>1,s=new Uint32Array(n.length+i.length);s.set(n,0);let o=n.length;const a=n[n.length-2];for(let l=0;l<r;l++)s[o++]=i[l<<1]+a,s[o++]=i[1+(l<<1)];return s.buffer}static insert(e,t,n){if(null===e||e===vi)return e;const i=ki(e),r=i.length>>>1;let s=ri.findIndexInTokensArray(i,t);if(s>0){i[s-1<<1]===t&&s--}for(let o=s;o<r;o++)i[o<<1]+=n;return e}}function ki(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class yi{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==vi)return new ri(ki(i),n,this._languageIdCodec);const r=new Uint32Array(2);return r[0]=n.length,r[1]=Ti(this._languageIdCodec.encodeLanguageId(e)),new ri(r,n,this._languageIdCodec)}static _massageTokens(e,t,n){const i=n?ki(n):null;if(0===t){let t=!1;if(i&&i.length>1&&(t=Je.x.getLanguageId(i[1])!==e),!t)return vi}if(!i||0===i.length){const n=new Uint32Array(2);return n[0]=t,n[1]=Ti(e),n.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let i=0;i<t;i++)n[i]=null;this._lineTokens=o.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,i,r){const s=yi._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,i);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=s,!!r&&!yi._equals(o,s)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=ki(e),i=ki(t);if(n.length!==i.length)return!1;for(let r=0,s=n.length;r<s;r++)if(n[r]!==i[r])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new f.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=wi.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=wi.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let i=null;n<this._len&&(i=wi.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=wi.append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=wi.deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=wi.insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=wi.insert(this._lineTokens[i],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];let s=0,o=0,a=!1;for(let e=r.startLineNumber;e<=r.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),r.getLineTokens(e),!0)&&(a=!0,s=e,o=e)}a&&n.push({fromLineNumber:s,toLineNumber:o})}return{changes:n}}}function Ti(e){return(32768|e|2<<24|1024)>>>0}class Ci{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const i=t[0].getRange(),r=t[t.length-1].getRange();if(!i||!r)return e;n=e.plusRange(i).plusRange(r)}let i=null;for(let r=0,s=this._pieces.length;r<s;r++){const e=this._pieces[r];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(r,1),r--,s--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};continue}const[t,o]=e.split(n);t.isEmpty()?i=i||{index:r}:o.isEmpty()||(this._pieces.splice(r,1,t,o),r++,s++,i=i||{index:r})}return i=i||{index:this._pieces.length},t.length>0&&(this._pieces=o.nK(this._pieces,i.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const i=n[Ci._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!i)return t;const r=t.getCount(),s=i.getCount();let o=0;const a=[];let l=0,h=0;const c=(e,t)=>{e!==h&&(h=e,a[l++]=e,a[l++]=t)};for(let d=0;d<s;d++){const e=i.getStartCharacter(d),n=i.getEndCharacter(d),s=i.getMetadata(d),a=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?16384:0)|(16&s?16744448:0)|(32&s?4278190080:0))>>>0,l=~a>>>0;for(;o<r&&t.getEndOffset(o)<=e;)c(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<r&&t.getStartOffset(o)<e&&c(e,t.getMetadata(o));o<r&&t.getEndOffset(o)<n;)c(t.getEndOffset(o),t.getMetadata(o)&l|s&a),o++;if(o<r)c(n,t.getMetadata(o)&l|s&a),t.getEndOffset(o)===n&&o++;else{const e=Math.min(Math.max(0,o-1),r-1);c(n,t.getMetadata(e)&l|s&a)}}for(;o<r;)c(t.getEndOffset(o),t.getMetadata(o)),o++;return new ri(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,i=e.length-1;for(;n<i;){let r=n+Math.floor((i-n)/2);if(e[r].endLineNumber<t)n=r+1;else{if(!(e[r].startLineNumber>t)){for(;r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber;)r--;return r}i=r-1}}return n}acceptEdit(e,t,n,i,r){for(const s of this._pieces)s.acceptEdit(e,t,n,i,r)}}var Si,Li=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},xi=function(e,t){return function(n,i){t(n,i,e)}};let Ei=Si=class extends Vt{constructor(e,t,n,s,o,a,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=s,this._languageService=o,this._languageConfigurationService=a,this._treeSitterService=l,this._semanticTokens=new Ci(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new i.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new i.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new i.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new r.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(i.Jh.filter(Yn.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Ai(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new _i(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){Yn.OB.get(this._languageId)?this._tokens instanceof _i||this.createTokens(!0):this._tokens instanceof Ai||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,i]=(0,d.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,i,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),i=this.getLineTokens(t.lineNumber),r=i.findTokenIndexAtOffset(t.column-1),[s,o]=Si._findLanguageBoundaries(i,r),a=(0,w.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(r>0&&s===t.column-1){const[s,o]=Si._findLanguageBoundaries(i,r-1),a=(0,w.Th)(t.column,this.getLanguageConfiguration(i.getLanguageId(r-1)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let i=0;for(let s=t;s>=0&&e.getLanguageId(s)===n;s--)i=e.getStartOffset(s);let r=e.getLineContent().length;for(let s=t,o=e.getCount();s<o&&e.getLanguageId(s)===n;s++)r=e.getEndOffset(s);return[i,r]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new f.y(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Ei=Si=Li([xi(4,v.L),xi(5,se),xi(6,bi.ITreeSitterParserService)],Ei);class Ai extends pi{constructor(e,t,n,i){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new r.HE),this._tokens=new yi(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new r.HE),this._attachedViewStates=this._register(new r.$w),this._register(Yn.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(i.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new mi((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new li(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Yn.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new ai(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ui(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new yi(this._languageIdCodec),this._debugBackgroundStates=new li(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,d.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Qn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new ii,{heuristicTokens:i}=this._tokenizer.tokenizeHeuristically(n,e,t),r=this.setTokens(n.finalize());if(i)for(const s of r.changes)this._backgroundTokenizer.value?.requestTokens(s.fromLineNumber,s.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new ii;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const i=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(i)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const i=this._textModel.validatePosition(new f.y(e,t));return this.forceTokenization(i.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(i,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const i=this._textModel.validatePosition(e);return this.forceTokenization(i.lineNumber),this._tokenizer.tokenizeLineWithEdit(i,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Ii{constructor(){this.changeType=1}}class Mi{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",i=0;for(const r of t)n+=e.substring(i,r.column-1),i=r.column-1,n+=r.options.content;return n+=e.substring(i),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Mi(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Mi(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,i,r){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=i,this.order=r}}class Ni{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class Ri{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Di{constructor(e,t,n,i){this.changeType=4,this.injectedTexts=i,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class Oi{constructor(){this.changeType=5}}class Bi{constructor(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.versionId,r=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing;return new Bi(n,i,r,s)}}class zi{constructor(e){this.changes=e}}class Pi{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Bi.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Pi._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Pi(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.eol,r=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:i,isEolChange:e.isEolChange&&t.isEolChange,versionId:r,isUndoing:s,isRedoing:o,isFlush:a}}}const Fi=(0,G.u1)("undoRedoService");class Wi{static{this._ID=0}constructor(){this.id=Wi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Wi}}class Hi{static{this._ID=0}constructor(){this.id=Hi._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Hi}}var Ui,qi=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Vi=function(e,t){return function(n,i){t(n,i,e)}};function ji(e,t){let n;return n="string"===typeof e?function(e){const t=new $n;return t.acceptChunk(e),t.finish()}(e):me.nk(e)?function(e){const t=new $n;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Gi=0;class Ki{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}}}const $i=()=>{throw new Error("Invalid change accessor")};let Qi=class extends r.jG{static{Ui=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:_.tabSize,indentSize:_.indentSize,insertSpaces:_.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:_.trimAutoWhitespace,largeFileOptimizations:_.largeFileOptimizations,bracketPairColorizationOptions:_.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Xt(e,t.tabSize,t.insertSpaces);return new me.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new me.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,r.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,s=null,o,a,l,d){super(),this._undoRedoService=o,this._languageService=a,this._languageConfigurationService=l,this.instantiationService=d,this._onWillDispose=this._register(new i.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new lr((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new i.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new i.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new i.vl),this._eventEmitter=this._register(new hr),this._languageSelectionListener=this._register(new r.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new gi,Gi++,this.id="$model"+Gi,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?c.r.parse("inmemory://model/"+Gi):s,this._attachedEditorCount=0;const{textBuffer:u,disposable:g}=ji(e,n.defaultEOL);this._buffer=u,this._bufferDisposable=g,this._options=Ui.resolveOptions(this._buffer,n);const f="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new yt(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Kt(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Et(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Ei,this,this._bracketPairs,f,this._attachedViews);const p=this._buffer.getLineCount(),_=this._buffer.getValueLengthInRange(new m.Q(1,1,p,this._buffer.getLineLength(p)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=_>Ui.LARGE_FILE_SIZE_THRESHOLD||p>Ui.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=_>Ui.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=_>Ui._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=h.tk(Gi),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Ji,this._commandManager=new Ht(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(f),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Gn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=r.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Pi(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=ji(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,i,r,s,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:r,isRedoing:s,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Ji,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Bi([new Ii],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),s=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Bi([new Oi],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,r,s),0,i,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,i=t.length;n<i;n++){const i=t[n],r=i.range,s=i.cachedAbsoluteStart-i.start,o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),a=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);i.cachedAbsoluteStart=o,i.cachedAbsoluteEnd=a,i.cachedVersionId=e,i.start=o-s,i.end=a-s,wn(i)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let i=1;i<=n;i++){const n=this._buffer.getLineLength(i);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new me.X2({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r,bracketPairColorizationOptions:s});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const n=Xt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),g(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(h._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i}createSnapshot(e=!1){return new Ki(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,i=e.startColumn;let r=Math.floor("number"!==typeof n||isNaN(n)?1:n),s=Math.floor("number"!==typeof i||isNaN(i)?1:i);if(r<1)r=1,s=1;else if(r>t)r=t,s=this.getLineMaxColumn(r);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(r);s>=e&&(s=e)}const o=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof o||isNaN(o)?1:o),h=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,h=1;else if(l>t)l=t,h=this.getLineMaxColumn(l);else if(h<=1)h=1;else{const e=this.getLineMaxColumn(l);h>=e&&(h=e)}return n===r&&i===s&&o===l&&a===h&&e instanceof m.Q&&!(e instanceof p.L)?e:new m.Q(r,s,l,h)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(h.pc(n))return!1}return!0}_validatePosition(e,t,n){const i=Math.floor("number"!==typeof e||isNaN(e)?1:e),r=Math.floor("number"!==typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(i<1)return new f.y(1,1);if(i>s)return new f.y(s,this.getLineMaxColumn(s));if(r<=1)return new f.y(i,1);const o=this.getLineMaxColumn(i);if(r>=o)return new f.y(i,o);if(1===n){const e=this._buffer.getLineCharCode(i,r-2);if(h.pc(e))return new f.y(i,r-1)}return new f.y(i,r)}validatePosition(e){return this._assertNotDisposed(),e instanceof f.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,s,0))return!1;if(1===t){const e=i>1?this._buffer.getLineCharCode(n,i-2):0,t=s>1&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,o=h.pc(e),a=h.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof m.Q&&!(e instanceof p.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),i=t.lineNumber,r=t.column,s=n.lineNumber,o=n.column;{const e=r>1?this._buffer.getLineCharCode(i,r-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,n=h.pc(e),a=h.pc(t);return n||a?i===s&&r===o?new m.Q(i,r-1,s,o-1):n&&a?new m.Q(i,r-1,s,o+1):n?new m.Q(i,r-1,s,o):new m.Q(i,r,s,o+1):new m.Q(i,r,s,o)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new m.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)}findMatches(e,t,n,i,r,s,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>m.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let h;if(l.push(a.reduce(((e,t)=>m.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,i,r).parseSearchRequest();if(!t)return[];h=e=>this.findMatchesLineByLine(e,t,s,o)}else h=t=>Bn.hB.findMatches(this,new Bn.lt(e,n,i,r),t,s,o);return l.map(h).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,i,r).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new m.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),h=this.findMatchesLineByLine(l,t,s,1);return Bn.hB.findNextMatch(this,new Bn.lt(e,n,i,r),o,s),h.length>0?h[0]:(l=new m.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),h=this.findMatchesLineByLine(l,t,s,1),h.length>0?h[0]:null)}return Bn.hB.findNextMatch(this,new Bn.lt(e,n,i,r),o,s)}findPreviousMatch(e,t,n,i,r,s){this._assertNotDisposed();const o=this.validatePosition(t);return Bn.hB.findPreviousMatch(this,new Bn.lt(e,n,i,r),o,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof me.Wo?e:new me.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,i){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,i){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let i=!0;if(e)for(let t=0,r=e.length;t<r;t++){const r=e[t];let s=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,i=t.startLineNumber>r.endLineNumber,o=r.startLineNumber>t.endLineNumber;if(!i&&!o){s=!0;break}}if(!s){i=!1;break}}if(i)for(let e=0,r=this._trimAutoWhitespaceLines.length;e<r;e++){const i=this._trimAutoWhitespaceLines[e],r=this.getLineMaxColumn(i);let s=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,o=n[e].text;if(!(i<t.startLineNumber||i>t.endLineNumber)&&(!(i===t.startLineNumber&&t.startColumn===r&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(i===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){s=!1;break}}if(s){const e=new m.Q(i,1,i,r);t.push(new me.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,i)}_applyUndo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(r,t,!0,!1,n,i)}_applyRedo(e,t,n,i){const r=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(r,t,!1,!0,n,i)}_applyUndoRedoEdits(e,t,n,i,r,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=i,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(r)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),s=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==s.length){for(let n=0,i=s.length;n<i;n++){const e=s[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,i=s.length;n<i;n++){const i=s[n],[a]=(0,d.W)(i.text);this._onDidChangeDecorations.fire();const l=i.range.startLineNumber,h=i.range.endLineNumber,c=h-l,u=a,g=Math.min(c,u),m=u-c,p=r-t-m+l,_=p,b=p+u,v=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new f.y(_,1)),this.getOffsetAt(new f.y(b,this.getLineMaxColumn(b))),0),w=Mi.fromDecorations(v),k=new o.j3(w);for(let t=g;t>=0;t--){const n=l+t,i=p+t;k.takeFromEndWhile((e=>e.lineNumber>i));const r=k.takeFromEndWhile((e=>e.lineNumber===i));e.push(new Ni(n,this.getLineContent(i),r))}if(g<c){const t=l+g;e.push(new Ri(t+1,h))}if(g<u){const n=new o.j3(w),i=l+g,s=u-g,a=r-t-s+i+1,h=[],c=[];for(let e=0;e<s;e++){const t=a+e;c[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),h[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Di(i+1,l+u,c,h))}t+=m}this._emitContentChangedEvent(new Bi(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===i.reverseEdits?void 0:i.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Ni(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new zi(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,ar(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let i=null;try{i=t(n)}catch(r){(0,l.dz)(r)}return n.addDecoration=$i,n.changeDecoration=$i,n.changeDecorationOptions=$i,n.removeDecoration=$i,n.deltaDecorations=$i,i}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:or[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;const r=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),o=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,o,r),i.setOptions(or[n]),this._decorationsTree.insert(i),i.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,i=t.length;n<i;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,i=!1,r=!1){const s=this.getLineCount(),a=Math.min(s,Math.max(1,e)),l=Math.min(s,Math.max(1,t)),h=this.getLineMaxColumn(l),c=new m.Q(a,1,l,h),d=this._getDecorationsInRange(c,n,i,r);return(0,o.E4)(d,this._decorationProvider.getDecorationsInRange(c,n,i)),d}getDecorationsInRange(e,t=0,n=!1,i=!1,r=!1){const s=this.validateRange(e),a=this._getDecorationsInRange(s,t,n,r);return(0,o.E4)(a,this._decorationProvider.getDecorationsInRange(s,t,n,i)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),i=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Mi.fromDecorations(i).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,i){const r=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,r,s,t,n,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const i=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),s=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,s,i),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const s=i!==r,o=function(e){return!!e.after||!!e.before}(t)!==Xi(n);s||o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,i=!1){const r=this.getVersionId(),s=t.length;let o=0;const a=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const h=new Array(a);for(;o<s||l<a;){let c=null;if(o<s){do{c=this._decorations[t[o++]]}while(!c&&o<s);if(c){if(c.options.after){const e=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(c.options.before){const e=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(c),i||this._onDidChangeDecorations.checkAffectedAndFire(c.options)}}if(l<a){if(!c){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;c=new hn(t,0,0),this._decorations[t]=c}const t=n[l],s=this._validateRangeRelaxedNoAllocations(t.range),o=ar(t.options),a=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),d=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);c.ownerId=e,c.reset(r,a,d,s),c.setOptions(o),c.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),c.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber),i||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(c),h[l]=c.id,l++}else c&&delete this._decorations[c.id]}return h}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function Yi(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Xi(e){return!!e.options.after||!!e.options.before}Qi=Ui=qi([Vi(4,Fi),Vi(5,v.L),Vi(6,se),Vi(7,G._Y)],Qi);class Ji{constructor(){this._decorationsTree0=new dn,this._decorationsTree1=new dn,this._injectedTextDecorationsTree=new dn}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,i,r,s){const o=e.getVersionId(),a=this._intervalSearch(t,n,i,r,o,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,n,i,r,s){const o=this._decorationsTree0.intervalSearch(e,t,n,i,r,s),a=this._decorationsTree1.intervalSearch(e,t,n,i,r,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,i,r,s);return o.concat(a).concat(l)}getInjectedTextInInterval(e,t,n,i){const r=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,n,i,!1,r,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),i=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,i).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,i,r){const s=e.getVersionId(),o=this._search(t,n,i,s,r);return this._ensureNodesHaveRanges(e,o)}_search(e,t,n,i,r){if(n)return this._decorationsTree1.search(e,t,i,r);{const n=this._decorationsTree0.search(e,t,i,r),s=this._decorationsTree1.search(e,t,i,r),o=this._injectedTextDecorationsTree.search(e,t,i,r);return n.concat(s).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),i=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(i)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Xi(e)?this._injectedTextDecorationsTree.insert(e):Yi(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Xi(e)?this._injectedTextDecorationsTree.delete(e):Yi(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Xi(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Yi(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i),this._injectedTextDecorationsTree.acceptReplace(e,t,n,i)}}function Zi(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class er{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class tr extends er{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:me.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class nr{constructor(e){this.position=e?.position??me.ZS.Center,this.persistLane=e?.persistLane}}class ir extends er{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?a.Q1.fromHex(e):t.getColor(e.id)}}class rr{static from(e){return e instanceof rr?e:new rr(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class sr{static register(e){return new sr(e)}static createDynamic(e){return new sr(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Zi(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Zi(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new tr(e.overviewRuler):null,this.minimap=e.minimap?new ir(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new nr(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Zi(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Zi(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Zi(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?h.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Zi(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Zi(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Zi(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Zi(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Zi(e.afterContentClassName):null,this.after=e.after?rr.from(e.after):null,this.before=e.before?rr.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}sr.EMPTY=sr.register({description:"empty"});const or=[sr.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),sr.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),sr.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),sr.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function ar(e){return e instanceof sr?e:sr.createDynamic(e)}class lr extends r.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new i.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class hr extends r.jG{constructor(){super(),this._fastEmitter=this._register(new i.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new i.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var cr,dr=n(360),ur=n(5600),gr=n(6456),fr=n(146),mr=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},pr=function(e,t){return function(n,i){t(n,i,e)}};function _r(e){return e.toString()}class br{constructor(e,t,n){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const vr=s.j9||s.zx?1:2;class wr{constructor(e,t,n,i,r,s,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=i,this.heapSize=r,this.sha1=s,this.versionId=o,this.alternativeVersionId=a}}let kr=class extends r.jG{static{cr=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,r){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=r,this._onModelAdded=this._register(new i.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new i.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new i.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=_.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let i="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(i=Math.max(t,1))}let r=_.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(r="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let s=vr;const o=e.eol;"\r\n"===o?s=2:"\n"===o&&(s=1);let a=_.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=_.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=_.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let c=_.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(c={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:r,detectIndentation:l,defaultEOL:s,trimAutoWhitespace:a,largeFileOptimizations:h,bracketPairColorizationOptions:c}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===s.OS||2===s.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const i="string"===typeof e?e:e.languageId;let r=this._modelCreationOptionsByLanguageAndResource[i+t];if(!r){const e=this._configurationService.getValue("editor",{overrideIdentifier:i,resource:t}),s=this._getEOL(t,i);r=cr._readModelOptions({editor:e,eol:s},n),this._modelCreationOptionsByLanguageAndResource[i+t]=r}return r}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let i=0,r=n.length;i<r;i++){const r=n[i],s=this._models[r],o=s.model.getLanguageId(),a=s.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:o,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:o,resource:a}))continue;const l=t[o+a],h=this.getCreationOptions(o,a,s.model.isForSimpleWidget);cr._setModelOptionsForModel(s.model,h,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,fr.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(_r(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(_r(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(_r(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,i){const r=this.getCreationOptions(t,n,i),s=this._instantiationService.createInstance(Qi,e,t,r,n);if(n&&this._disposedModels.has(_r(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),i=this._getSHA1Computer(),r=!!i.canComputeSHA1(s)&&i.computeSHA1(s)===e.sha1;if(r||e.sharesUndoRedoStack){for(const e of t.past)Wt(e)&&e.matchesResource(n)&&e.setModel(s);for(const e of t.future)Wt(e)&&e.matchesResource(n)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(n,!0,(e=>Wt(e)&&e.matchesResource(n))),r&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=_r(s.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const a=new br(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=a,a}createModel(e,t,n,i=!1){let r;return r=t?this._createModelData(e,t,n,i):this._createModelData(e,Q.vH,n,i),this._onModelAdded.fire(r.model),r.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._models[i].model)}return e}getModel(e){const t=_r(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===gr.ny.file||e.scheme===gr.ny.vscodeRemote||e.scheme===gr.ny.vscodeUserData||e.scheme===gr.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=_r(e.uri),n=this._models[t],i=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let r=!1,s=0;if(i||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)Wt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)Wt(n)&&n.matchesResource(e.uri)&&(r=!0,s+=n.heapSize(e.uri),n.setModel(e.uri))}}const o=cr.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(r)if(i||!(s>o)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(o-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>Wt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new wr(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),i,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!i){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,i=e.getLanguageId(),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget);cr._setModelOptionsForModel(e,s,r),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new yr}};kr=cr=mr([pr(0,K.pG),pr(1,dr.ITextResourcePropertiesService),pr(2,Fi),pr(3,G._Y)],kr);class yr{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=yr.MAX_MODEL_SIZE}computeSHA1(e){const t=new ur.v7,n=e.createSnapshot();let i;for(;i=n.read();)t.update(i);return t.digest()}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>i});const i=(0,n(3591).u1)("textModelService")},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>s});var i=n(1674),r=n(8067);function s(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const i of e.deltas)t[n++]=i.start,t[n++]=i.deleteCount,i.data?(t[n++]=i.data.length,t.set(i.data,n),n+=i.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return r.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],i=e[t+1],r=e[t+2],s=e[t+3];e[t+0]=s,e[t+1]=r,e[t+2]=i,e[t+3]=n}}(t),i.MB.wrap(t)}(t)}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>m,toMultilineTokens2:()=>p});n(5982);var i=n(5724),r=n(3511),s=n(3069),o=n(6677),a=n(4454);class l{static create(e,t){return new l(e,new h(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[i,r,s]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,i),new l(this._startLineNumber+s,r)]}applyEdit(e,t){const[n,i,r]=(0,a.W)(t);this.acceptEdit(e,n,i,r,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new s.y(e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const i=this._tokens.getMaxDeltaLine();if(!(t>=i+1)){if(t<0&&n>=i+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const i=-t;this._startLineNumber-=i,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,i,r){if(0===t&&0===n)return;const s=e.lineNumber-this._startLineNumber;if(s<0)return void(this._startLineNumber+=t);s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,n,i,r)}}class h{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),i=this._getEndCharacter(e-1);return new o.Q(0,t+1,n,i+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const i=t+Math.floor((n-t)/2),r=this._getDeltaLine(i);if(r<e)t=i+1;else{if(!(r>e)){let r=i;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let s=i;for(;s<n&&this._getDeltaLine(s+1)===e;)s++;return new c(this._tokens.subarray(4*r,4*s+4))}n=i-1}}return this._getDeltaLine(t)===e?new c(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,i){const r=this._tokens,s=this._tokenCount;let o=0,a=!1,l=0;for(let h=0;h<s;h++){const s=4*h,c=r[s],d=r[s+1],u=r[s+2],g=r[s+3];if((c>e||c===e&&u>=t)&&(c<n||c===n&&d<=i))a=!0;else{if(0===o&&(l=c),a){const e=4*o;r[e]=c-l,r[e+1]=d,r[e+2]=u,r[e+3]=g}o++}}return this._tokenCount=o,l}split(e,t,n,i){const r=this._tokens,s=this._tokenCount,o=[],a=[];let l=o,c=0,d=0;for(let h=0;h<s;h++){const s=4*h,o=r[s],u=r[s+1],g=r[s+2],f=r[s+3];if(o>e||o===e&&g>=t){if(o<n||o===n&&u<=i)continue;l!==a&&(l=a,c=0,d=o)}l[c++]=o-d,l[c++]=u,l[c++]=g,l[c++]=f}return[new h(new Uint32Array(o)),new h(new Uint32Array(a)),d]}acceptDeleteRange(e,t,n,i,r){const s=this._tokens,o=this._tokenCount,a=i-t;let l=0,h=!1;for(let c=0;c<o;c++){const d=4*c;let u=s[d],g=s[d+1],f=s[d+2];const m=s[d+3];if(u<t||u===t&&f<=n){l++;continue}if(u===t&&g<n)u===i&&f>r?f-=r-n:f=n;else if(u===t&&g===n){if(!(u===i&&f>r)){h=!0;continue}f-=r-n}else if(u<i||u===i&&g<r){if(!(u===i&&f>r)){h=!0;continue}u=t,g=n,f=g+(f-r)}else if(u>i){if(0===a&&!h){l=o;break}u-=a}else{if(!(u===i&&g>=r))throw new Error("Not possible!");e&&0===u&&(g+=e,f+=e),u-=a,g-=r-n,f-=r-n}const p=4*l;s[p]=u,s[p+1]=g,s[p+2]=f,s[p+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,n,i,r,s){const o=0===n&&1===i&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let h=0;h<l;h++){const s=4*h;let l=a[s],c=a[s+1],d=a[s+2];if(!(l<e||l===e&&d<t)){if(l===e&&d===t){if(!o)continue;d+=1}else if(l===e&&c<t&&t<d)0===n?d+=i:d=t;else{if(l===e&&c===t&&o)continue;if(l===e)if(l+=n,0===n)c+=i,d+=i;else{const e=d-c;c=r+(c-t),d=c+e}else l+=n}a[s]=l,a[s+1]=c,a[s+2]=d}}}}class c{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var d=n(154),u=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},g=function(e,t){return function(n,i){t(n,i,e)}};const f=!1;let m=class{constructor(e,t,n,i){this._legend=e,this._themeService=t,this._languageService=n,this._logService=i,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new b}getMetadata(e,t,n){const i=this._languageService.languageIdCodec.encodeLanguageId(n),r=this._hashTable.get(e,t,i);let s;if(r)s=r.metadata;else{let r=this._legend.tokenTypes[e];const o=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;f;const i=this._themeService.getColorTheme().getTokenStyleMetadata(r,o,n);if("undefined"===typeof i)s=2147483647;else{if(s=0,"undefined"!==typeof i.italic){s|=1|(i.italic?1:0)<<11}if("undefined"!==typeof i.bold){s|=2|(i.bold?2:0)<<11}if("undefined"!==typeof i.underline){s|=4|(i.underline?4:0)<<11}if("undefined"!==typeof i.strikethrough){s|=8|(i.strikethrough?8:0)<<11}if(i.foreground){s|=16|i.foreground<<15}0===s&&(s=2147483647)}}else s=2147483647,r="not-in-legend";this._hashTable.add(e,t,i,s)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,i,r){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${i} is outside the previous data (length ${r}).`))}};function p(e,t,n){const i=e.data,r=e.data.length/5|0,s=Math.max(Math.ceil(r/1024),400),o=[];let a=0,h=1,c=0;for(;a<r;){const e=a;let d=Math.min(e+s,r);if(d<r){let t=d;for(;t-1>e&&0===i[5*t];)t--;if(t-1===e){let e=d;for(;e+1<r&&0===i[5*e];)e++;d=e}else d=t}let u=new Uint32Array(4*(d-e)),g=0,f=0,m=0,p=0;for(;a<d;){const e=5*a,r=i[e],s=i[e+1],o=h+r|0,l=0===r?c+s|0:s,d=l+i[e+2]|0,_=i[e+3],b=i[e+4];if(d<=l)t.warnInvalidLengthSemanticTokens(o,l+1);else if(m===o&&p>l)t.warnOverlappingSemanticTokens(o,l+1);else{const e=t.getMetadata(_,b,n);2147483647!==e&&(0===f&&(f=o),u[g]=o-f,u[g+1]=l,u[g+2]=d,u[g+3]=e,g+=4,m=o,p=d)}h=o,c=l,a++}g!==u.length&&(u=u.subarray(0,g));const _=l.create(f,u);o.push(_)}return o}m=u([g(1,i.Gy),g(2,d.L),g(3,r.rr)],m);class _{constructor(e,t,n,i){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=i,this.next=null}}class b{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=b._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<b._SIZES.length?2/3*this._currentLength:0),this._elements=[],b._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const i=this._hashFunc(e,t,n);let r=this._elements[i];for(;r;){if(r.tokenTypeIndex===e&&r.tokenModifierSet===t&&r.languageId===n)return r;r=r.next}return null}add(e,t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=b._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<b._SIZES.length?2/3*this._currentLength:0),this._elements=[],b._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,n,i))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>i});const i=(0,n(3591).u1)("semanticTokensStylingService")},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>u});var i=n(1484),r=n(154),s=n(5724),o=n(3511),a=n(5538),l=n(4243),h=n(4621),c=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},d=function(e,t){return function(n,i){t(n,i,e)}};let u=class extends i.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};u=c([d(0,s.Gy),d(1,o.rr),d(2,r.L)],u),(0,h.v)(l.ISemanticTokensStylingService,u,1)},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>_,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>f,WorkerTextModelSyncClient:()=>m,WorkerTextModelSyncServer:()=>p});var i=n(1940),r=n(1484),s=n(9400),o=n(3069),a=n(6677),l=n(6486),h=n(1508),c=(n(9861),n(5152));class d{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,c.j)(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,c.j)(e),t=(0,c.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,c.j)(e),t=(0,c.j)(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,c.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,r=0,s=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],s=r-this.values[i],e<s)n=i-1;else{if(!(e>=r))break;t=i+1}return new u(i,e-s)}}class u{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class g{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new o.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new d(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,h.uz)(t);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);const i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const f=6e4;class m extends r.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new i.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(f/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,r.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>f&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const i=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const s=new r.Cm;s.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(i.toString(),e)}))),s.add(n.onWillDispose((()=>{this._stopModelSync(i)}))),s.add((0,r.s)((()=>{this._proxy.$acceptRemovedModel(i)}))),this._syncedModels[i]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,r.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new _(s.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class _ extends g{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const i=this._lines[n],r=this.offsetAt(new o.y(n+1,1)),s=i.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+r),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=r.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(i<t.length))break;r=t[i],o=n(r,e),s=0,i+=1}}}}getLineWords(e,t){const n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const s of i)r.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<i;s++)r.push(this._lines[s]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}},8868:(e,t,n)=>{"use strict";n.r(t)},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>r,ITextResourcePropertiesService:()=>s});var i=n(3591);const r=(0,i.u1)("textResourceConfigurationService"),s=(0,i.u1)("textResourcePropertiesService")},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>i});const i=(0,n(3591).u1)("treeSitterParserService")},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>r,TreeViewsDnDService:()=>i});class i{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class r{constructor(e){this.identifier=e}}},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>o});var i=n(4621),r=n(3591),s=n(6723);const o=(0,r.u1)("treeViewsDndService");(0,i.v)(o,s.TreeViewsDnDService,1)},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var i=n(6677),r=n(7729),s=n(1508),o=n(6782),a=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,c=n?n.endLineNumber:e.getLineCount(),d=new h(t),u=d.getCandidateCodePoints();let g;var f;g="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(f=Array.from(u),`[${s.bm(f.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new r.W5(null,g),p=[];let _,b=!1,v=0,w=0,k=0;e:for(let r=l,h=c;r<=h;r++){const t=e.getLineContent(r),n=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,l=_.index+_[0].length;if(e>0){const n=t.charCodeAt(e-1);s.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);s.pc(e)&&l++}const h=t.substring(e,l);let c=(0,a.Th)(e+1,a.Ld,t,0);c&&c.endColumn<=e+1&&(c=null);const u=d.shouldHighlightNonBasicASCII(h,c?c.word:null);if(0!==u){3===u?v++:2===u?w++:1===u?k++:(0,o.xb)(u);const t=1e3;if(p.length>=t){b=!0;break e}p.push(new i.Q(r,e+1,r,l+1))}}}while(_)}return{ranges:p,hasMore:b,ambiguousCharacterCount:v,invisibleCharacterCount:w,nonBasicAsciiCharacterCount:k}}static computeUnicodeHighlightReason(e,t){const n=new h(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),r=n.ambiguousCharacters.getPrimaryConfusable(i),o=s.tl.getLocales().filter((e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i)));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class h{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)c(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=s.aC(o);i=i||t,t||this.ambiguousCharacters.isAmbiguous(e)||s.y_.isInvisibleCharacter(e)||(r=!0)}return!i&&r?0:this.options.invisibleCharacters&&!c(e)&&s.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function c(e){return" "===e||"\n"===e||"\t"===e}},8209:(e,t,n)=>{"use strict";function i(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>i,kg:()=>o});const r="pseudo"===i()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const i=n[0],r=t[i];let s=e;return"string"===typeof r?s=r:"number"!==typeof r&&"boolean"!==typeof r&&void 0!==r&&null!==r||(s=String(r)),s})),r&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function o(e,t,...n){return s("number"===typeof e?a(e,t):t,n)}function a(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>r,pG:()=>i});const i=(0,n(3591).u1)("configurationService");function r(e){return e.replace(/[\[\]]/g,"")}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>c});var i=n(9861),r=n(1234),s=n(631),o=n(8209),a=n(4001),l=n(8748),h=n(6359);const c={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",b=h.O.as(l.F.JSONContribution);const v="\\[([^\\]]+)\\]",w=new RegExp(v,"g"),k=`^(${v})+$`,y=new RegExp(k);function T(e){const t=[];if(y.test(e)){let n=w.exec(e);for(;n?.length;){const i=n[1].trim();i&&t.push(i),n=w.exec(e)}}return(0,i.dM)(t)}const C=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new r.vl,this._onDidUpdateConfiguration=new r.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},b.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),b.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:i,source:r}of e)for(const e in i){t.add(e);const s=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=i[e];if(s.configurationDefaultOverrides.push({value:o,source:r}),y.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,r),n.push(...T(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,r,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const i={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:_,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=i,this.defaultLanguageConfigurationOverridesNode.properties[e]=i}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,i){const r=i?.value||{},o=i?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const i=t[e];if(s.Gv(i)&&(s.b0(r[e])||s.Gv(r[e]))){if(r[e]={...r[e]??{},...i},n)for(const t in i)o.set(`${e}.${t}`,n)}else r[e]=i,n?o.set(e,n):o.delete(e)}return{value:r,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,i){const r=this.configurationProperties[e],o=i?.value??r?.defaultDefaultValue;let a=n;if(s.Gv(t)&&(void 0!==r&&"object"===r.type||void 0===r&&(s.b0(o)||s.Gv(o)))){if(a=i?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const i in t)n&&a.set(`${e}.${i}`,n);t={...s.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,i,r=3,o){r=s.z(e.scope)?r:e.scope;const a=e.properties;if(a)for(const h in a){const e=a[h];t&&S(h,e)?delete a[h]:(e.source=n,e.defaultDefaultValue=a[h].default,this.updatePropertyDefaultValue(h,e),y.test(h)?e.scope=void 0:(e.scope=s.z(e.scope)?r:e.scope,e.restricted=s.z(e.restricted)?!!i?.includes(h):e.restricted),!a[h].hasOwnProperty("included")||a[h].included?(this.configurationProperties[h]=a[h],a[h].policy?.name&&this.policyConfigurations.set(a[h].policy.name,h),!a[h].deprecationMessage&&a[h].markdownDeprecationMessage&&(a[h].deprecationMessage=a[h].markdownDeprecationMessage),o.add(h)):(this.excludedConfigurationProperties[h]=a[h],delete a[h]))}const l=e.allOf;if(l)for(const s of l)this.validateAndRegisterProperties(s,t,n,i,r,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const i=e.allOf;i?.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:f.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:p.properties[e]=t;break;case 5:p.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,n),d.properties[t]=n,u.properties[t]=n,g.properties[t]=n,f.properties[t]=n,m.properties[t]=n,p.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};d.patternProperties[k]=e,u.patternProperties[k]=e,g.patternProperties[k]=e,f.patternProperties[k]=e,m.patternProperties[k]=e,p.patternProperties[k]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let i,r;!n||t.disallowConfigurationDefault&&n.source||(i=n.value,r=n.source),s.b0(i)&&(i=t.defaultDefaultValue,r=void 0),s.b0(i)&&(i=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=i,t.defaultValueSource=r}};function S(e,t){return e.trim()?y.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==C.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==C.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,C.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}h.O.add(c.Configuration,C)},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});class i{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const r=[];function s(e,t,n){t instanceof i||(t=new i(t,[],Boolean(n))),r.push([e,t])}},3591:(e,t,n)=>{"use strict";var i;n.d(t,{_Y:()=>r,u1:()=>s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i||(i={}));const r=s("instantiationService");function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n}],t[i.DI_TARGET]=t)}(t,e,r)};return t.toString=()=>e,i.serviceIds.set(e,t),t}},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var i=n(1234),r=n(6359);const s={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new i.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};r.O.add(s.JSONContribution,o)},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>Q,$b:()=>Y});n(1234);var i=n(1484),r=n(8067),s=n(1508),o=n(4383),a=n(8209);function l(...e){switch(e.length){case 1:return(0,a.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,a.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,a.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const h=(0,a.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),c=(0,a.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class d{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),i={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(i)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=d._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(h):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(c);const i=this._input.charCodeAt(e);if(t)t=!1;else{if(47===i&&!n){e++;break}91===i?n=!0:92===i?t=!0:93===i&&(n=!1)}e++}for(;e<this._input.length&&d._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const i=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:i,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var u=n(3591);const g=new Map;g.set("false",!1),g.set("true",!0),g.set("isMac",r.zx),g.set("isLinux",r.j9),g.set("isWindows",r.uF),g.set("isWeb",r.HZ),g.set("isMacNative",r.zx&&!r.HZ),g.set("isEdge",r.UP),g.set("isFirefox",r.gm),g.set("isChrome",r.H8),g.set("isSafari",r.nr);const f=Object.prototype.hasOwnProperty,m={regexParsingWithErrorRecovery:!0},p=(0,a.kg)("contextkey.parser.error.emptyString","Empty context key expression"),_=(0,a.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),b=(0,a.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,a.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),w=(0,a.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),k=(0,a.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),y=(0,a.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),T=(0,a.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class C{static{this._parseError=new Error}constructor(e=m){this._config=e,this._scanner=new d,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?k:void 0;throw this._parsingErrors.push({message:w,offset:e.offset,lexeme:d.getLexeme(e),additionalInfo:t}),C._parseError}return e}catch(t){if(t!==C._parseError)throw t;return}}else this._parsingErrors.push({message:p,offset:0,lexeme:"",additionalInfo:_})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:S.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:S.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),x.INSTANCE;case 12:return this._advance(),E.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),e?.negate()}case 17:return this._advance(),D.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),S.true();case 12:return this._advance(),S.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const i=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,r=n.lastIndexOf("/"),s=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));let o;try{o=new RegExp(n.substring(1,r),s)}catch(t){throw this._errExpectedButGot("REGEX",e)}return W.create(i,o)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let r=this._peek(),s=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--;for(;!this._isAtEnd()&&15!==r.type&&16!==r.type;){switch(r.type){case 0:s++;break;case 1:s--;break;case 10:case 18:for(let t=0;t<r.lexeme.length;t++)40===r.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--}if(s<0)break;n.push(d.getLexeme(r)),this._advance(),r=this._peek()}const o=n.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let h;try{h=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return S.regex(i,h)}case 18:{const t=e.lexeme;this._advance();let r=null;if(!(0,s.AV)(t)){const i=t.indexOf("/"),s=t.lastIndexOf("/");if(i!==s&&i>=0){const o=t.slice(i+1,s),a="i"===t[s+1]?"i":"";try{r=new RegExp(o,a)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return W.create(i,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,b);const e=this._value();return S.notIn(i,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return S.equals(i,e);switch(e){case"true":return S.has(i);case"false":return S.not(i);default:return S.equals(i,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return S.notEquals(i,e);switch(e){case"true":return S.not(i);case"false":return S.has(i);default:return S.notEquals(i,e)}}case 5:return this._advance(),P.create(i,this._value());case 6:return this._advance(),F.create(i,this._value());case 7:return this._advance(),B.create(i,this._value());case 8:return this._advance(),z.create(i,this._value());case 13:return this._advance(),S.in(i,this._value());default:return S.has(i)}}case 20:throw this._parsingErrors.push({message:y,offset:e.offset,lexeme:"",additionalInfo:T}),C._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const i=(0,a.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,d.getLexeme(t)),r=t.offset,s=d.getLexeme(t);return this._parsingErrors.push({message:i,offset:r,lexeme:s,additionalInfo:n}),C._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class S{static false(){return x.INSTANCE}static true(){return E.INSTANCE}static has(e){return A.create(e)}static equals(e,t){return I.create(e,t)}static notEquals(e,t){return R.create(e,t)}static regex(e,t){return W.create(e,t)}static in(e,t){return M.create(e,t)}static notIn(e,t){return N.create(e,t)}static not(e){return D.create(e)}static and(...e){return q.create(e,null,!0)}static or(...e){return V.create(e,null,!0)}static{this._parser=new C({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function L(e,t){return e.cmp(t)}class x{static{this.INSTANCE=new x}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return E.INSTANCE}}class E{static{this.INSTANCE=new E}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return x.INSTANCE}}class A{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?E.INSTANCE:x.INSTANCE:new A(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?E.INSTANCE:x.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this)),this.negated}}class I{static create(e,t,n=null){if("boolean"===typeof t)return t?A.create(e,n):D.create(e,n);const i=g.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?E.INSTANCE:x.INSTANCE}return new I(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?E.INSTANCE:x.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class M{static create(e,t){return new M(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&f.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=N.create(this.key,this.valueKey)),this.negated}}class N{static create(e,t){return new N(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=M.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class R{static create(e,t,n=null){if("boolean"===typeof t)return t?D.create(e,n):A.create(e,n);const i=g.get(e);if("boolean"===typeof i){return t===(i?"true":"false")?x.INSTANCE:E.INSTANCE}return new R(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?x.INSTANCE:E.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this.value,this)),this.negated}}class D{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?x.INSTANCE:E.INSTANCE:new D(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?x.INSTANCE:E.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this)),this.negated}}function O(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):x.INSTANCE}class B{static create(e,t,n=null){return O(t,(t=>new B(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class z{static create(e,t,n=null){return O(t,(t=>new z(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class P{static create(e,t,n=null){return O(t,(t=>new P(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,n=null){return O(t,(t=>new F(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class W{static create(e,t){return new W(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this)),this.negated}}class H{static create(e){return new H(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function U(e){let t=null;for(let n=0,i=e.length;n<i;n++){const i=e[n].substituteConstants();if(e[n]!==i&&null===t){t=[];for(let i=0;i<n;i++)t[i]=e[i]}null!==t&&(t[n]=i)}return null===t?e:t}class q{static create(e,t,n){return q._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=L(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=U(this.expr);return e===this.expr?this:q.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const i=[];let r=!1;for(const s of e)if(s)if(1!==s.type){if(0===s.type)return x.INSTANCE;6!==s.type?i.push(s):i.push(...s.expr)}else r=!0;if(0===i.length&&r)return E.INSTANCE;if(0!==i.length){if(1===i.length)return i[0];i.sort(L);for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];for(;i.length>1;){const e=i[i.length-1];if(9!==e.type)break;i.pop();const t=i.pop(),r=0===i.length,s=V.create(e.expr.map((e=>q.create([e,t],null,n))),null,r);s&&(i.push(s),i.sort(L))}if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return x.INSTANCE;if(1===i.length)return i[0]}return new q(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=V.create(e,this,!0)}return this.negated}}class V{static create(e,t,n){return V._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=L(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=U(this.expr);return e===this.expr?this:V.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let i=[],r=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return E.INSTANCE;9!==n.type?i.push(n):i=i.concat(n.expr)}else r=!0}if(0===i.length&&r)return x.INSTANCE;i.sort(L)}if(0!==i.length){if(1===i.length)return i[0];for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return E.INSTANCE;if(1===i.length)return i[0]}return new V(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),i=[];for(const e of $(t))for(const t of $(n))i.push(q.create([e,t],null,!1));e.unshift(V.create(i,null,!1))}this.negated=V.create(e,this,!0)}return this.negated}}class j extends A{static{this._info=[]}static all(){return j._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?j._info.push({...n,key:e}):!0!==n&&j._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return I.create(this.key,e)}}(0,u.u1)("contextKeyService");function G(e,t){return e<t?-1:e>t?1:0}function K(e,t,n,i){return e<n?-1:e>n?1:t<i?-1:t>i?1:0}function $(e){return 9===e.type?e.expr:[e]}const Q=(0,u.u1)("logService");var Y;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(Y||(Y={}));Y.Info;i.jG;new j("logLevel",function(e){switch(e){case Y.Trace:return"trace";case Y.Debug:return"debug";case Y.Info:return"info";case Y.Warning:return"warn";case Y.Error:return"error";case Y.Off:return"off"}}(Y.Info))},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var i=n(6782),r=n(631);const s=new class{constructor(){this.data=new Map}add(e,t){i.ok(r.Kg(e)),i.ok(r.Gv(t)),i.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>S,b1q:()=>C,YtV:()=>M,Ubg:()=>U,IIb:()=>W,pOz:()=>F,whs:()=>B,Stt:()=>P,Hng:()=>z,yLC:()=>le,KoI:()=>oe,uMG:()=>ae,x1A:()=>d});var i=n(6782),r=n(1940),s=n(7661),o=n(1234),a=n(8748),l=n(6359),h=n(8209);const c=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,i=!1,r){const s={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=s;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(o.deprecationMessage=r),i&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=h.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[o,{type:"string",const:"default",description:h.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return _(null!==(i=n.defaults)&&"object"===typeof i&&"light"in i&&"dark"in i?n.defaults[t.type]:n.defaults,t)}var i}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function d(e,t,n,i,r){return c.registerColor(e,t,n,i,r)}function u(e,t){return{op:0,value:e,factor:t}}function g(e,t){return{op:1,value:e,factor:t}}function f(e,t){return{op:2,value:e,factor:t}}function m(...e){return{op:4,values:e}}function p(e,t,n,i){return{op:5,value:e,background:t,factor:n,transparency:i}}function _(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?s.Q1.fromHex(e):t.getColor(e):e instanceof s.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return _(e.value,t)?.darken(e.factor);case 1:return _(e.value,t)?.lighten(e.factor);case 2:return _(e.value,t)?.transparent(e.factor);case 3:{const n=_(e.background,t);return n?_(e.value,t)?.makeOpaque(n):_(e.value,t)}case 4:for(const n of e.values){const e=_(n,t);if(e)return e}return;case 6:return _(t.defines(e.if)?e.then:e.else,t);case 5:{const n=_(e.value,t);if(!n)return;const i=_(e.background,t);return i?n.isDarkerThan(i)?s.Q1.getLighterColor(n,i,e.factor).transparent(e.transparency):s.Q1.getDarkerColor(n,i,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,i.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",c);const b="vscode://schemas/workbench-colors",v=l.O.as(a.F.JSONContribution);v.registerSchema(b,c.getColorSchema());const w=new r.uC((()=>v.notifySchemaChanged(b)),200);c.onDidChangeSchema((()=>{w.isScheduled()||w.schedule()}));const k=d("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},h.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),y=(d("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},h.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),d("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},h.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),d("descriptionForeground",{light:"#717171",dark:f(k,.7),hcDark:f(k,.7),hcLight:f(k,.7)},h.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),d("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},h.kg("iconForeground","The default color for icons in the workbench."))),T=d("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},h.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),C=d("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},h.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),S=d("contrastActiveBorder",{light:null,dark:null,hcDark:T,hcLight:T},h.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),L=(d("selection.background",null,h.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),d("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},h.kg("textLinkForeground","Foreground color for links in text.")),d("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},h.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),d("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:s.Q1.black,hcLight:"#292929"},h.kg("textSeparatorForeground","Color for text separators.")),d("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},h.kg("textPreformatForeground","Foreground color for preformatted text segments.")),d("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},h.kg("textPreformatBackground","Background color for preformatted text segments.")),d("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},h.kg("textBlockQuoteBackground","Background color for block quotes in text.")),d("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:s.Q1.white,hcLight:"#292929"},h.kg("textBlockQuoteBorder","Border color for block quotes in text.")),d("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:s.Q1.black,hcLight:"#F2F2F2"},h.kg("textCodeBlockBackground","Background color for code blocks in text.")),d("sash.hoverBorder",T,h.kg("sashActiveBorder","Border color of active sashes.")),d("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},h.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),x=(d("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},h.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),d("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},h.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),E=d("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:f(C,.6),hcLight:f(C,.4)},h.kg("scrollbarSliderBackground","Scrollbar slider background color.")),A=d("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:f(C,.8),hcLight:f(C,.8)},h.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),I=d("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:C,hcLight:C},h.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),M=(d("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:C,hcLight:C},h.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),d("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("editorBackground","Editor background color."))),N=(d("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:k},h.kg("editorForeground","Editor default foreground color.")),d("editorStickyScroll.background",M,h.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),d("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),d("editorStickyScroll.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),d("editorStickyScroll.shadow",x,h.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),d("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},h.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),R=d("editorWidget.foreground",k,h.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),D=d("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:C,hcLight:C},h.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),O=(d("editorWidget.resizeBorder",null,h.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),d("editorError.background",null,h.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},h.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),B=(d("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},h.kg("errorBorder","If set, color of double underlines for errors in the editor.")),d("editorWarning.background",null,h.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),z=d("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},h.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),P=d("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},h.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),F=(d("editorInfo.background",null,h.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},h.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),W=d("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},h.kg("infoBorder","If set, color of double underlines for infos in the editor.")),H=(d("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},h.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),d("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},h.kg("hintBorder","If set, color of double underlines for hints in the editor.")),d("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},h.kg("activeLinkForeground","Color of active links.")),d("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},h.kg("editorSelectionBackground","Color of the editor selection."))),U=(d("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},h.kg("editorSelectionForeground","Color of the selected text for high contrast.")),d("editor.inactiveSelectionBackground",{light:f(H,.5),dark:f(H,.5),hcDark:f(H,.7),hcLight:f(H,.5)},h.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.selectionHighlightBackground",{light:p(H,M,.3,.6),dark:p(H,M,.3,.6),hcDark:null,hcLight:null},h.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),d("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},h.kg("editorFindMatch","Color of the current search match.")),d("editor.findMatchForeground",null,h.kg("editorFindMatchForeground","Text color of the current search match.")),d("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},h.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),q=(d("editor.findMatchHighlightForeground",null,h.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),d("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},h.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.findMatchBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("editorFindMatchBorder","Border color of the current search match.")),d("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},h.kg("findMatchHighlightBorder","Border color of the other search matches."))),V=(d("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:f(S,.4),hcLight:f(S,.4)},h.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),d("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},h.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorHoverWidget.background",N,h.kg("hoverBackground","Background color of the editor hover."))),j=(d("editorHoverWidget.foreground",R,h.kg("hoverForeground","Foreground color of the editor hover.")),d("editorHoverWidget.border",D,h.kg("hoverBorder","Border color of the editor hover.")),d("editorHoverWidget.statusBarBackground",{dark:g(V,.2),light:u(V,.05),hcDark:N,hcLight:N},h.kg("statusBarBackground","Background color of the editor hover status bar.")),d("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},h.kg("editorInlayHintForeground","Foreground color of inline hints"))),G=d("editorInlayHint.background",{dark:f(L,.1),light:f(L,.1),hcDark:f(s.Q1.white,.1),hcLight:f(L,.1)},h.kg("editorInlayHintBackground","Background color of inline hints")),K=(d("editorInlayHint.typeForeground",j,h.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),d("editorInlayHint.typeBackground",G,h.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),d("editorInlayHint.parameterForeground",j,h.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),d("editorInlayHint.parameterBackground",G,h.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),d("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},h.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),$=(d("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},h.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),d("editorLightBulbAi.foreground",K,h.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),d("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},h.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),d("editor.snippetTabstopHighlightBorder",null,h.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),d("editor.snippetFinalTabstopHighlightBackground",null,h.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),d("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},h.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new s.Q1(new s.bU(155,185,85,.2))),Q=new s.Q1(new s.bU(255,0,0,.2)),Y=(d("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},h.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},h.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.insertedLineBackground",{dark:$,light:$,hcDark:null,hcLight:null},h.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditor.removedLineBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},h.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),d("diffEditorGutter.insertedLineBackground",null,h.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),d("diffEditorGutter.removedLineBackground",null,h.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),d("diffEditorOverview.insertedForeground",null,h.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),d("diffEditorOverview.removedForeground",null,h.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),d("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},h.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),d("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},h.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),d("diffEditor.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("diffEditorBorder","Border color between the two text editors.")),d("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},h.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),d("diffEditor.unchangedRegionBackground","sideBar.background",h.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),d("diffEditor.unchangedRegionForeground","foreground",h.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),d("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},h.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),d("widget.shadow",{dark:f(s.Q1.black,.36),light:f(s.Q1.black,.16),hcDark:null,hcLight:null},h.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),X=(d("widget.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),d("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},h.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),J=(d("toolbar.hoverOutline",{dark:null,light:null,hcDark:S,hcLight:S},h.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),d("toolbar.activeBackground",{dark:g(X,.1),light:u(X,.1),hcDark:null,hcLight:null},h.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),d("breadcrumb.foreground",f(k,.8),h.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),d("breadcrumb.background",M,h.kg("breadcrumbsBackground","Background color of breadcrumb items.")),d("breadcrumb.focusForeground",{light:u(k,.2),dark:g(k,.1),hcDark:g(k,.1),hcLight:g(k,.1)},h.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),d("breadcrumb.activeSelectionForeground",{light:u(k,.2),dark:g(k,.1),hcDark:g(k,.1),hcLight:g(k,.1)},h.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),d("breadcrumbPicker.background",N,h.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),s.Q1.fromHex("#40C8AE").transparent(.5)),Z=s.Q1.fromHex("#40A6FF").transparent(.5),ee=s.Q1.fromHex("#606060").transparent(.4),te=d("merge.currentHeaderBackground",{dark:J,light:J,hcDark:null,hcLight:null},h.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(d("merge.currentContentBackground",f(te,.4),h.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.incomingHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},h.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),ie=(d("merge.incomingContentBackground",f(ne,.4),h.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},h.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(d("merge.commonContentBackground",f(ie,.4),h.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),d("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},h.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),se=(d("editorOverviewRuler.currentContentForeground",{dark:f(te,1),light:f(te,1),hcDark:re,hcLight:re},h.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.incomingContentForeground",{dark:f(ne,1),light:f(ne,1),hcDark:re,hcLight:re},h.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.commonContentForeground",{dark:f(ie,1),light:f(ie,1),hcDark:re,hcLight:re},h.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),d("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},h.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),d("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",h.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),d("problemsErrorIcon.foreground",O,h.kg("problemsErrorIconForeground","The color used for the problems error icon.")),d("problemsWarningIcon.foreground",z,h.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),d("problemsInfoIcon.foreground",F,h.kg("problemsInfoIconForeground","The color used for the problems info icon.")),d("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},h.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),oe=(d("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},h.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),d("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},h.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),d("minimap.infoHighlight",{dark:F,light:F,hcDark:W,hcLight:W},h.kg("minimapInfo","Minimap marker color for infos."))),ae=d("minimap.warningHighlight",{dark:z,light:z,hcDark:P,hcLight:P},h.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=d("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},h.kg("minimapError","Minimap marker color for errors.")),he=(d("minimap.background",null,h.kg("minimapBackground","Minimap background color.")),d("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),h.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),d("minimapSlider.background",f(E,.5),h.kg("minimapSliderBackground","Minimap slider background color.")),d("minimapSlider.hoverBackground",f(A,.5),h.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),d("minimapSlider.activeBackground",f(I,.5),h.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),d("charts.foreground",k,h.kg("chartsForeground","The foreground color used in charts.")),d("charts.lines",f(k,.5),h.kg("chartsLines","The color used for horizontal lines in charts.")),d("charts.red",O,h.kg("chartsRed","The red color used in chart visualizations.")),d("charts.blue",F,h.kg("chartsBlue","The blue color used in chart visualizations.")),d("charts.yellow",z,h.kg("chartsYellow","The yellow color used in chart visualizations.")),d("charts.orange",se,h.kg("chartsOrange","The orange color used in chart visualizations.")),d("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},h.kg("chartsGreen","The green color used in chart visualizations.")),d("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},h.kg("chartsPurple","The purple color used in chart visualizations.")),d("input.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputBoxBackground","Input box background.")),d("input.foreground",k,h.kg("inputBoxForeground","Input box foreground.")),d("input.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("inputBoxBorder","Input box border.")),d("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:C,hcLight:C},h.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),ce=d("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},h.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),de=d("inputOption.activeBackground",{dark:f(T,.4),light:f(T,.2),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},h.kg("inputOption.activeBackground","Background hover color of options in input fields.")),ue=d("inputOption.activeForeground",{dark:s.Q1.white,light:s.Q1.black,hcDark:k,hcLight:k},h.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),ge=(d("input.placeholderForeground",{light:f(k,.5),dark:f(k,.5),hcDark:f(k,.7),hcLight:f(k,.7)},h.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),d("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationInfoBackground","Input validation background color for information severity.")),d("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:k},h.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),d("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:C,hcLight:C},h.kg("inputValidationInfoBorder","Input validation border color for information severity.")),d("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),d("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:k},h.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),d("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:C,hcLight:C},h.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),d("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("inputValidationErrorBackground","Input validation background color for error severity.")),d("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:k},h.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),d("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:C,hcLight:C},h.kg("inputValidationErrorBorder","Input validation border color for error severity.")),d("dropdown.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("dropdownBackground","Dropdown background."))),fe=(d("dropdown.listBackground",{dark:null,light:null,hcDark:s.Q1.black,hcLight:s.Q1.white},h.kg("dropdownListBackground","Dropdown list background.")),d("dropdown.foreground",{dark:"#F0F0F0",light:k,hcDark:s.Q1.white,hcLight:k},h.kg("dropdownForeground","Dropdown foreground."))),me=d("dropdown.border",{dark:ge,light:"#CECECE",hcDark:C,hcLight:C},h.kg("dropdownBorder","Dropdown border.")),pe=d("button.foreground",s.Q1.white,h.kg("buttonForeground","Button foreground color.")),_e=(d("button.separator",f(pe,.4),h.kg("buttonSeparator","Button separator color.")),d("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},h.kg("buttonBackground","Button background color."))),be=(d("button.hoverBackground",{dark:g(_e,.2),light:u(_e,.2),hcDark:_e,hcLight:_e},h.kg("buttonHoverBackground","Button background color when hovering.")),d("button.border",C,h.kg("buttonBorder","Button border color.")),d("button.secondaryForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:k},h.kg("buttonSecondaryForeground","Secondary button foreground color.")),d("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:s.Q1.white},h.kg("buttonSecondaryBackground","Secondary button background color."))),ve=(d("button.secondaryHoverBackground",{dark:g(be,.2),light:u(be,.2),hcDark:null,hcLight:null},h.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),d("radio.activeForeground",ue,h.kg("radioActiveForeground","Foreground color of active radio option."))),we=(d("radio.activeBackground",de,h.kg("radioBackground","Background color of active radio option.")),d("radio.activeBorder",he,h.kg("radioActiveBorder","Border color of the active radio option.")),d("radio.inactiveForeground",null,h.kg("radioInactiveForeground","Foreground color of inactive radio option.")),d("radio.inactiveBackground",null,h.kg("radioInactiveBackground","Background color of inactive radio option.")),d("radio.inactiveBorder",{light:f(ve,.2),dark:f(ve,.2),hcDark:f(ve,.4),hcLight:f(ve,.2)},h.kg("radioInactiveBorder","Border color of the inactive radio option.")),d("radio.inactiveHoverBackground",ce,h.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),d("checkbox.background",ge,h.kg("checkbox.background","Background color of checkbox widget.")),d("checkbox.selectBackground",N,h.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),d("checkbox.foreground",fe,h.kg("checkbox.foreground","Foreground color of checkbox widget.")),d("checkbox.border",me,h.kg("checkbox.border","Border color of checkbox widget.")),d("checkbox.selectBorder",y,h.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),d("keybindingLabel.background",{dark:new s.Q1(new s.bU(128,128,128,.17)),light:new s.Q1(new s.bU(221,221,221,.4)),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},h.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.foreground",{dark:s.Q1.fromHex("#CCCCCC"),light:s.Q1.fromHex("#555555"),hcDark:s.Q1.white,hcLight:k},h.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.border",{dark:new s.Q1(new s.bU(51,51,51,.6)),light:new s.Q1(new s.bU(204,204,204,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:C},h.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),d("keybindingLabel.bottomBorder",{dark:new s.Q1(new s.bU(68,68,68,.6)),light:new s.Q1(new s.bU(187,187,187,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:k},h.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),d("list.focusBackground",null,h.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusForeground",null,h.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusOutline",{dark:T,light:T,hcDark:S,hcLight:S},h.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d("list.focusAndSelectionOutline",null,h.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),d("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),ke=d("list.activeSelectionForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:null,hcLight:null},h.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ye=d("list.activeSelectionIconForeground",null,h.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Te=(d("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveSelectionForeground",null,h.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveSelectionIconForeground",null,h.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveFocusBackground",null,h.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.inactiveFocusOutline",null,h.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),d("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Q1.white.transparent(.1),hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},h.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),d("list.hoverForeground",null,h.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),d("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},h.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),d("list.dropBetweenBackground",{dark:y,light:y,hcDark:null,hcLight:null},h.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),d("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:T,hcLight:T},h.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));d("list.focusHighlightForeground",{dark:Te,light:(Ce=we,Se=Te,Le="#BBE7FF",{op:6,if:Ce,then:Se,else:Le}),hcDark:Te,hcLight:Te},h.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var Ce,Se,Le;d("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},h.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),d("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},h.kg("listErrorForeground","Foreground color of list items containing errors.")),d("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},h.kg("listWarningForeground","Foreground color of list items containing warnings.")),d("listFilterWidget.background",{light:u(N,0),dark:g(N,0),hcDark:N,hcLight:N},h.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),d("listFilterWidget.outline",{dark:s.Q1.transparent,light:s.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},h.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),d("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:C,hcLight:C},h.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),d("listFilterWidget.shadow",Y,h.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),d("list.filterMatchBackground",{dark:U,light:U,hcDark:null,hcLight:null},h.kg("listFilterMatchHighlight","Background color of the filtered match.")),d("list.filterMatchBorder",{dark:q,light:q,hcDark:C,hcLight:S},h.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),d("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},h.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const xe=d("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},h.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ee=(d("tree.inactiveIndentGuidesStroke",f(xe,.4),h.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),d("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},h.kg("tableColumnsBorder","Table border color between columns.")),d("tree.tableOddRowsBackground",{dark:f(k,.04),light:f(k,.04),hcDark:null,hcLight:null},h.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),d("editorActionList.background",N,h.kg("editorActionListBackground","Action List background color.")),d("editorActionList.foreground",R,h.kg("editorActionListForeground","Action List foreground color.")),d("editorActionList.focusForeground",ke,h.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),d("editorActionList.focusBackground",we,h.kg("editorActionListFocusBackground","Action List background color for the focused item.")),d("menu.border",{dark:null,light:null,hcDark:C,hcLight:C},h.kg("menuBorder","Border color of menus.")),d("menu.foreground",fe,h.kg("menuForeground","Foreground color of menu items.")),d("menu.background",ge,h.kg("menuBackground","Background color of menu items.")),d("menu.selectionForeground",ke,h.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),d("menu.selectionBackground",we,h.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),d("menu.selectionBorder",{dark:null,light:null,hcDark:S,hcLight:S},h.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),d("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:C,hcLight:C},h.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),d("quickInput.background",N,h.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),d("quickInput.foreground",R,h.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),d("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},h.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),d("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},h.kg("pickerGroupForeground","Quick picker color for grouping labels.")),d("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},h.kg("pickerGroupBorder","Quick picker color for grouping borders.")),d("quickInput.list.focusBackground",null,"",void 0,h.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));d("quickInputList.focusForeground",ke,h.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),d("quickInputList.focusIconForeground",ye,h.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),d("quickInputList.focusBackground",{dark:m(Ee,we),light:m(Ee,we),hcDark:null,hcLight:null},h.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),d("search.resultsInfoForeground",{light:k,dark:f(k,.65),hcDark:k,hcLight:k},h.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),d("searchEditor.findMatchBackground",{light:f(U,.66),dark:f(U,.66),hcDark:U,hcLight:U},h.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),d("searchEditor.findMatchBorder",{light:f(q,.66),dark:f(q,.66),hcDark:q,hcLight:q},h.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>d,Yf:()=>h});var i,r=n(1234),s=n(1484),o=n(3591),a=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(i||(i={}));const l=(0,o.u1)("themeService");function h(e){return{id:e}}const c=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function d(e){return c.onColorThemeChange(e)}a.O.add("base.contributions.theming",c);s.jG},5890:(e,t,n)=>{var i={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function r(e){return Promise.resolve().then((()=>{if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(i[e])}))}r.keys=()=>Object.keys(i),r.id=5890,e.exports=r},9204:(e,t,n)=>{var i={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function r(e){if(!n.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(r)))}r.keys=()=>Object.keys(i),r.id=9204,e.exports=r},7614:(e,t,n)=>{var i={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function r(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=s,e.exports=r,r.id=7614}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.e=()=>Promise.resolve(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),i=n(718);let r=!1;function s(n){if(r)return;r=!0;const s=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(i.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{s.onmessage(e.data)}}function o(...e){const t=e[0];let n,i,r;if("string"===typeof t)n=t,i=t,e.splice(0,1),r=e&&"object"===typeof e[0]?e[0]:e;else{if(t instanceof Array){const n=e.slice(1);if(t.length!==n.length+1)throw new Error("expected a string as the first argument to l10n.t");let i=t[0];for(let e=1;e<t.length;e++)i+=`{${e-1}}`+t[e];return o(i,...n)}i=t.message,n=i,t.comment&&t.comment.length>0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(""):t.comment}`),r=t.args??{}}return Rt(i,r)}globalThis.onmessage=e=>{r||s(null)};var a,l,h,c,d,u,g,f,m,p,_,b,v,w,k,y,T,C,S,L,x,E,A,I,M,N,R,D,O,B,z,P,F,W,H,U,q,V,j,G,K,$,Q,Y,X,J,Z,ee,te,ne,ie,re,se,oe,ae,le,he,ce,de,ue,ge,fe,me,pe,_e,be,ve,we,ke,ye,Te,Ce,Se,Le,xe,Ee,Ae,Ie,Me,Ne,Re,De,Oe,Be,ze,Pe,Fe,We,He,Ue,qe,Ve,je,Ge,Ke,$e,Qe,Ye,Xe,Je,Ze,et,tt,nt,it,rt,st,ot,at,lt,ht,ct,dt,ut,gt,ft,mt,pt,_t,bt,vt,wt,kt,yt,Tt,Ct,St,Lt,xt,Et,At,It,Mt,Nt=/{([^}]+)}/g;function Rt(e,t){return 0===Object.keys(t).length?e:e.replace(Nt,((e,n)=>t[n]??e))}(a||(a={})).is=function(e){return"string"===typeof e},(l||(l={})).is=function(e){return"string"===typeof e},(c=h||(h={})).MIN_VALUE=-2147483648,c.MAX_VALUE=2147483647,c.is=function(e){return"number"===typeof e&&c.MIN_VALUE<=e&&e<=c.MAX_VALUE},(u=d||(d={})).MIN_VALUE=0,u.MAX_VALUE=2147483647,u.is=function(e){return"number"===typeof e&&u.MIN_VALUE<=e&&e<=u.MAX_VALUE},(f=g||(g={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=d.MAX_VALUE),t===Number.MAX_VALUE&&(t=d.MAX_VALUE),{line:e,character:t}},f.is=function(e){let t=e;return Dt.objectLiteral(t)&&Dt.uinteger(t.line)&&Dt.uinteger(t.character)},(p=m||(m={})).create=function(e,t,n,i){if(Dt.uinteger(e)&&Dt.uinteger(t)&&Dt.uinteger(n)&&Dt.uinteger(i))return{start:g.create(e,t),end:g.create(n,i)};if(g.is(e)&&g.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${i}]`)},p.is=function(e){let t=e;return Dt.objectLiteral(t)&&g.is(t.start)&&g.is(t.end)},(b=_||(_={})).create=function(e,t){return{uri:e,range:t}},b.is=function(e){let t=e;return Dt.objectLiteral(t)&&m.is(t.range)&&(Dt.string(t.uri)||Dt.undefined(t.uri))},(w=v||(v={})).create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},w.is=function(e){let t=e;return Dt.objectLiteral(t)&&m.is(t.targetRange)&&Dt.string(t.targetUri)&&m.is(t.targetSelectionRange)&&(m.is(t.originSelectionRange)||Dt.undefined(t.originSelectionRange))},(y=k||(k={})).create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},y.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.numberRange(t.red,0,1)&&Dt.numberRange(t.green,0,1)&&Dt.numberRange(t.blue,0,1)&&Dt.numberRange(t.alpha,0,1)},(C=T||(T={})).create=function(e,t){return{range:e,color:t}},C.is=function(e){const t=e;return Dt.objectLiteral(t)&&m.is(t.range)&&k.is(t.color)},(L=S||(S={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},L.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.string(t.label)&&(Dt.undefined(t.textEdit)||U.is(t))&&(Dt.undefined(t.additionalTextEdits)||Dt.typedArray(t.additionalTextEdits,U.is))},(E=x||(x={})).Comment="comment",E.Imports="imports",E.Region="region",(I=A||(A={})).create=function(e,t,n,i,r,s){const o={startLine:e,endLine:t};return Dt.defined(n)&&(o.startCharacter=n),Dt.defined(i)&&(o.endCharacter=i),Dt.defined(r)&&(o.kind=r),Dt.defined(s)&&(o.collapsedText=s),o},I.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.uinteger(t.startLine)&&Dt.uinteger(t.startLine)&&(Dt.undefined(t.startCharacter)||Dt.uinteger(t.startCharacter))&&(Dt.undefined(t.endCharacter)||Dt.uinteger(t.endCharacter))&&(Dt.undefined(t.kind)||Dt.string(t.kind))},(N=M||(M={})).create=function(e,t){return{location:e,message:t}},N.is=function(e){let t=e;return Dt.defined(t)&&_.is(t.location)&&Dt.string(t.message)},(D=R||(R={})).Error=1,D.Warning=2,D.Information=3,D.Hint=4,(B=O||(O={})).Unnecessary=1,B.Deprecated=2,(z||(z={})).is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.string(t.href)},(F=P||(P={})).create=function(e,t,n,i,r,s){let o={range:e,message:t};return Dt.defined(n)&&(o.severity=n),Dt.defined(i)&&(o.code=i),Dt.defined(r)&&(o.source=r),Dt.defined(s)&&(o.relatedInformation=s),o},F.is=function(e){var t;let n=e;return Dt.defined(n)&&m.is(n.range)&&Dt.string(n.message)&&(Dt.number(n.severity)||Dt.undefined(n.severity))&&(Dt.integer(n.code)||Dt.string(n.code)||Dt.undefined(n.code))&&(Dt.undefined(n.codeDescription)||Dt.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Dt.string(n.source)||Dt.undefined(n.source))&&(Dt.undefined(n.relatedInformation)||Dt.typedArray(n.relatedInformation,M.is))},(H=W||(W={})).create=function(e,t,...n){let i={title:e,command:t};return Dt.defined(n)&&n.length>0&&(i.arguments=n),i},H.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.title)&&Dt.string(t.command)},(q=U||(U={})).replace=function(e,t){return{range:e,newText:t}},q.insert=function(e,t){return{range:{start:e,end:e},newText:t}},q.del=function(e){return{range:e,newText:""}},q.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.string(t.newText)&&m.is(t.range)},(j=V||(V={})).create=function(e,t,n){const i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},j.is=function(e){const t=e;return Dt.objectLiteral(t)&&Dt.string(t.label)&&(Dt.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Dt.string(t.description)||void 0===t.description)},(G||(G={})).is=function(e){const t=e;return Dt.string(t)},($=K||(K={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},$.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},$.del=function(e,t){return{range:e,newText:"",annotationId:t}},$.is=function(e){const t=e;return U.is(t)&&(V.is(t.annotationId)||G.is(t.annotationId))},(Y=Q||(Q={})).create=function(e,t){return{textDocument:e,edits:t}},Y.is=function(e){let t=e;return Dt.defined(t)&&le.is(t.textDocument)&&Array.isArray(t.edits)},(J=X||(X={})).create=function(e,t,n){let i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},J.is=function(e){let t=e;return t&&"create"===t.kind&&Dt.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Dt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Dt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(ee=Z||(Z={})).create=function(e,t,n,i){let r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},ee.is=function(e){let t=e;return t&&"rename"===t.kind&&Dt.string(t.oldUri)&&Dt.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Dt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Dt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(ne=te||(te={})).create=function(e,t,n){let i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},ne.is=function(e){let t=e;return t&&"delete"===t.kind&&Dt.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Dt.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Dt.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(ie||(ie={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Dt.string(e.kind)?X.is(e)||Z.is(e)||te.is(e):Q.is(e))))},(se=re||(re={})).create=function(e){return{uri:e}},se.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.uri)},(ae=oe||(oe={})).create=function(e,t){return{uri:e,version:t}},ae.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.uri)&&Dt.integer(t.version)},(he=le||(le={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.uri)&&(null===t.version||Dt.integer(t.version))},(de=ce||(ce={})).create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},de.is=function(e){let t=e;return Dt.defined(t)&&Dt.string(t.uri)&&Dt.string(t.languageId)&&Dt.integer(t.version)&&Dt.string(t.text)},(ge=ue||(ue={})).PlainText="plaintext",ge.Markdown="markdown",ge.is=function(e){const t=e;return t===ge.PlainText||t===ge.Markdown},(fe||(fe={})).is=function(e){const t=e;return Dt.objectLiteral(e)&&ue.is(t.kind)&&Dt.string(t.value)},(pe=me||(me={})).Text=1,pe.Method=2,pe.Function=3,pe.Constructor=4,pe.Field=5,pe.Variable=6,pe.Class=7,pe.Interface=8,pe.Module=9,pe.Property=10,pe.Unit=11,pe.Value=12,pe.Enum=13,pe.Keyword=14,pe.Snippet=15,pe.Color=16,pe.File=17,pe.Reference=18,pe.Folder=19,pe.EnumMember=20,pe.Constant=21,pe.Struct=22,pe.Event=23,pe.Operator=24,pe.TypeParameter=25,(be=_e||(_e={})).PlainText=1,be.Snippet=2,(ve||(ve={})).Deprecated=1,(ke=we||(we={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},ke.is=function(e){const t=e;return t&&Dt.string(t.newText)&&m.is(t.insert)&&m.is(t.replace)},(Te=ye||(ye={})).asIs=1,Te.adjustIndentation=2,(Ce||(Ce={})).is=function(e){const t=e;return t&&(Dt.string(t.detail)||void 0===t.detail)&&(Dt.string(t.description)||void 0===t.description)},(Se||(Se={})).create=function(e){return{label:e}},(Le||(Le={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Ee=xe||(xe={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Ee.is=function(e){const t=e;return Dt.string(t)||Dt.objectLiteral(t)&&Dt.string(t.language)&&Dt.string(t.value)},(Ae||(Ae={})).is=function(e){let t=e;return!!t&&Dt.objectLiteral(t)&&(fe.is(t.contents)||xe.is(t.contents)||Dt.typedArray(t.contents,xe.is))&&(void 0===e.range||m.is(e.range))},(Ie||(Ie={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Me||(Me={})).create=function(e,t,...n){let i={label:e};return Dt.defined(t)&&(i.documentation=t),Dt.defined(n)?i.parameters=n:i.parameters=[],i},(Re=Ne||(Ne={})).Text=1,Re.Read=2,Re.Write=3,(De||(De={})).create=function(e,t){let n={range:e};return Dt.number(t)&&(n.kind=t),n},(Be=Oe||(Oe={})).File=1,Be.Module=2,Be.Namespace=3,Be.Package=4,Be.Class=5,Be.Method=6,Be.Property=7,Be.Field=8,Be.Constructor=9,Be.Enum=10,Be.Interface=11,Be.Function=12,Be.Variable=13,Be.Constant=14,Be.String=15,Be.Number=16,Be.Boolean=17,Be.Array=18,Be.Object=19,Be.Key=20,Be.Null=21,Be.EnumMember=22,Be.Struct=23,Be.Event=24,Be.Operator=25,Be.TypeParameter=26,(ze||(ze={})).Deprecated=1,(Pe||(Pe={})).create=function(e,t,n,i,r){let s={name:e,kind:t,location:{uri:i,range:n}};return r&&(s.containerName=r),s},(Fe||(Fe={})).create=function(e,t,n,i){return void 0!==i?{name:e,kind:t,location:{uri:n,range:i}}:{name:e,kind:t,location:{uri:n}}},(He=We||(We={})).create=function(e,t,n,i,r,s){let o={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==s&&(o.children=s),o},He.is=function(e){let t=e;return t&&Dt.string(t.name)&&Dt.number(t.kind)&&m.is(t.range)&&m.is(t.selectionRange)&&(void 0===t.detail||Dt.string(t.detail))&&(void 0===t.deprecated||Dt.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(qe=Ue||(Ue={})).Empty="",qe.QuickFix="quickfix",qe.Refactor="refactor",qe.RefactorExtract="refactor.extract",qe.RefactorInline="refactor.inline",qe.RefactorRewrite="refactor.rewrite",qe.Source="source",qe.SourceOrganizeImports="source.organizeImports",qe.SourceFixAll="source.fixAll",(je=Ve||(Ve={})).Invoked=1,je.Automatic=2,(Ke=Ge||(Ge={})).create=function(e,t,n){let i={diagnostics:e};return void 0!==t&&null!==t&&(i.only=t),void 0!==n&&null!==n&&(i.triggerKind=n),i},Ke.is=function(e){let t=e;return Dt.defined(t)&&Dt.typedArray(t.diagnostics,P.is)&&(void 0===t.only||Dt.typedArray(t.only,Dt.string))&&(void 0===t.triggerKind||t.triggerKind===Ve.Invoked||t.triggerKind===Ve.Automatic)},(Qe=$e||($e={})).create=function(e,t,n){let i={title:e},r=!0;return"string"===typeof t?(r=!1,i.kind=t):W.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},Qe.is=function(e){let t=e;return t&&Dt.string(t.title)&&(void 0===t.diagnostics||Dt.typedArray(t.diagnostics,P.is))&&(void 0===t.kind||Dt.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||W.is(t.command))&&(void 0===t.isPreferred||Dt.boolean(t.isPreferred))&&(void 0===t.edit||ie.is(t.edit))},(Xe=Ye||(Ye={})).create=function(e,t){let n={range:e};return Dt.defined(t)&&(n.data=t),n},Xe.is=function(e){let t=e;return Dt.defined(t)&&m.is(t.range)&&(Dt.undefined(t.command)||W.is(t.command))},(Ze=Je||(Je={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},Ze.is=function(e){let t=e;return Dt.defined(t)&&Dt.uinteger(t.tabSize)&&Dt.boolean(t.insertSpaces)},(tt=et||(et={})).create=function(e,t,n){return{range:e,target:t,data:n}},tt.is=function(e){let t=e;return Dt.defined(t)&&m.is(t.range)&&(Dt.undefined(t.target)||Dt.string(t.target))},(it=nt||(nt={})).create=function(e,t){return{range:e,parent:t}},it.is=function(e){let t=e;return Dt.objectLiteral(t)&&m.is(t.range)&&(void 0===t.parent||it.is(t.parent))},(st=rt||(rt={})).namespace="namespace",st.type="type",st.class="class",st.enum="enum",st.interface="interface",st.struct="struct",st.typeParameter="typeParameter",st.parameter="parameter",st.variable="variable",st.property="property",st.enumMember="enumMember",st.event="event",st.function="function",st.method="method",st.macro="macro",st.keyword="keyword",st.modifier="modifier",st.comment="comment",st.string="string",st.number="number",st.regexp="regexp",st.operator="operator",st.decorator="decorator",(at=ot||(ot={})).declaration="declaration",at.definition="definition",at.readonly="readonly",at.static="static",at.deprecated="deprecated",at.abstract="abstract",at.async="async",at.modification="modification",at.documentation="documentation",at.defaultLibrary="defaultLibrary",(lt||(lt={})).is=function(e){const t=e;return Dt.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(ct=ht||(ht={})).create=function(e,t){return{range:e,text:t}},ct.is=function(e){const t=e;return void 0!==t&&null!==t&&m.is(t.range)&&Dt.string(t.text)},(ut=dt||(dt={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},ut.is=function(e){const t=e;return void 0!==t&&null!==t&&m.is(t.range)&&Dt.boolean(t.caseSensitiveLookup)&&(Dt.string(t.variableName)||void 0===t.variableName)},(ft=gt||(gt={})).create=function(e,t){return{range:e,expression:t}},ft.is=function(e){const t=e;return void 0!==t&&null!==t&&m.is(t.range)&&(Dt.string(t.expression)||void 0===t.expression)},(pt=mt||(mt={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},pt.is=function(e){const t=e;return Dt.defined(t)&&m.is(e.stoppedLocation)},(bt=_t||(_t={})).Type=1,bt.Parameter=2,bt.is=function(e){return 1===e||2===e},(wt=vt||(vt={})).create=function(e){return{value:e}},wt.is=function(e){const t=e;return Dt.objectLiteral(t)&&(void 0===t.tooltip||Dt.string(t.tooltip)||fe.is(t.tooltip))&&(void 0===t.location||_.is(t.location))&&(void 0===t.command||W.is(t.command))},(yt=kt||(kt={})).create=function(e,t,n){const i={position:e,label:t};return void 0!==n&&(i.kind=n),i},yt.is=function(e){const t=e;return Dt.objectLiteral(t)&&g.is(t.position)&&(Dt.string(t.label)||Dt.typedArray(t.label,vt.is))&&(void 0===t.kind||_t.is(t.kind))&&void 0===t.textEdits||Dt.typedArray(t.textEdits,U.is)&&(void 0===t.tooltip||Dt.string(t.tooltip)||fe.is(t.tooltip))&&(void 0===t.paddingLeft||Dt.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Dt.boolean(t.paddingRight))},(Tt||(Tt={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Ct||(Ct={})).create=function(e,t,n,i){return{insertText:e,filterText:t,range:n,command:i}},(St||(St={})).create=function(e){return{items:e}},(xt=Lt||(Lt={})).Invoked=0,xt.Automatic=1,(Et||(Et={})).create=function(e,t){return{range:e,text:t}},(At||(At={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(It||(It={})).is=function(e){const t=e;return Dt.objectLiteral(t)&&l.is(t.uri)&&Dt.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const i=e.length/2|0,r=e.slice(0,i),s=e.slice(i);t(r,n),t(s,n);let o=0,a=0,l=0;for(;o<r.length&&a<s.length;){let t=n(r[o],s[a]);e[l++]=t<=0?r[o++]:s[a++]}for(;o<r.length;)e[l++]=r[o++];for(;a<s.length;)e[l++]=s[a++];return e}e.create=function(e,t,n,i){return new Ot(e,t,n,i)},e.is=function(e){let t=e;return!!(Dt.defined(t)&&Dt.string(t.uri)&&(Dt.undefined(t.languageId)||Dt.string(t.languageId))&&Dt.uinteger(t.lineCount)&&Dt.func(t.getText)&&Dt.func(t.positionAt)&&Dt.func(t.offsetAt))},e.applyEdits=function(e,n){let i=e.getText(),r=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=i.length;for(let t=r.length-1;t>=0;t--){let n=r[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=s))throw new Error("Overlapping edit");i=i.substring(0,o)+n.newText+i.substring(a,i.length),s=o}return i}}(Mt||(Mt={}));var Dt,Ot=class{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let i=0;i<t.length;i++){n&&(e.push(i),n=!1);let r=t.charAt(i);n="\r"===r||"\n"===r,"\r"===r&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return g.create(0,e);for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return g.create(r,e-t[r])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,i){return"[object Number]"===t.call(e)&&n<=e&&e<=i},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Dt||(Dt={}));var Bt,zt,Pt,Ft,Wt,Ht,Ut,qt,Vt,jt=class e{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let i of t)if(e.isIncremental(i)){const e=$t(i.range),t=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,t)+i.text+this._content.substring(n,this._content.length);const r=Math.max(e.start.line,0),s=Math.max(e.end.line,0);let o=this._lineOffsets;const a=Kt(i.text,!1,t);if(s-r===a.length)for(let i=0,h=a.length;i<h;i++)o[i+r+1]=a[i];else a.length<1e4?o.splice(r+1,s-r,...a):this._lineOffsets=o=o.slice(0,r+1).concat(a,o.slice(s+1));const l=i.text.length-(n-t);if(0!==l)for(let i=r+1+a.length,h=o.length;i<h;i++)o[i]=o[i]+l}else{if(!e.isFull(i))throw new Error("Unknown change event received");this._content=i.text,this._lineOffsets=void 0}this._version=n}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=Kt(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return{line:0,character:e};for(;n<i;){let r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}let r=n-1;return{line:r,character:e-t[r]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"===typeof t.rangeLength)}static isFull(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0===t.range&&void 0===t.rangeLength}};function Gt(e,t){if(e.length<=1)return e;const n=e.length/2|0,i=e.slice(0,n),r=e.slice(n);Gt(i,t),Gt(r,t);let s=0,o=0,a=0;for(;s<i.length&&o<r.length;){let n=t(i[s],r[o]);e[a++]=n<=0?i[s++]:r[o++]}for(;s<i.length;)e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];return e}function Kt(e,t,n=0){const i=t?[n]:[];for(let r=0;r<e.length;r++){let t=e.charCodeAt(r);13!==t&&10!==t||(13===t&&r+1<e.length&&10===e.charCodeAt(r+1)&&r++,i.push(n+r+1))}return i}function $t(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Qt(e){const t=$t(e.range);return t!==e.range?{newText:e.newText,range:t}:e}(zt=Bt||(Bt={})).create=function(e,t,n,i){return new jt(e,t,n,i)},zt.update=function(e,t,n){if(e instanceof jt)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},zt.applyEdits=function(e,t){let n=e.getText(),i=Gt(t.map(Qt),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),r=0;const s=[];for(const o of i){let t=e.offsetAt(o.range.start);if(t<r)throw new Error("Overlapping edit");t>r&&s.push(n.substring(r,t)),o.newText.length&&s.push(o.newText),r=e.offsetAt(o.range.end)}return s.push(n.substr(r)),s.join("")},(Ft=Pt||(Pt={}))[Ft.StartCommentTag=0]="StartCommentTag",Ft[Ft.Comment=1]="Comment",Ft[Ft.EndCommentTag=2]="EndCommentTag",Ft[Ft.StartTagOpen=3]="StartTagOpen",Ft[Ft.StartTagClose=4]="StartTagClose",Ft[Ft.StartTagSelfClose=5]="StartTagSelfClose",Ft[Ft.StartTag=6]="StartTag",Ft[Ft.EndTagOpen=7]="EndTagOpen",Ft[Ft.EndTagClose=8]="EndTagClose",Ft[Ft.EndTag=9]="EndTag",Ft[Ft.DelimiterAssign=10]="DelimiterAssign",Ft[Ft.AttributeName=11]="AttributeName",Ft[Ft.AttributeValue=12]="AttributeValue",Ft[Ft.StartDoctypeTag=13]="StartDoctypeTag",Ft[Ft.Doctype=14]="Doctype",Ft[Ft.EndDoctypeTag=15]="EndDoctypeTag",Ft[Ft.Content=16]="Content",Ft[Ft.Whitespace=17]="Whitespace",Ft[Ft.Unknown=18]="Unknown",Ft[Ft.Script=19]="Script",Ft[Ft.Styles=20]="Styles",Ft[Ft.EOS=21]="EOS",(Ht=Wt||(Wt={}))[Ht.WithinContent=0]="WithinContent",Ht[Ht.AfterOpeningStartTag=1]="AfterOpeningStartTag",Ht[Ht.AfterOpeningEndTag=2]="AfterOpeningEndTag",Ht[Ht.WithinDoctype=3]="WithinDoctype",Ht[Ht.WithinTag=4]="WithinTag",Ht[Ht.WithinEndTag=5]="WithinEndTag",Ht[Ht.WithinComment=6]="WithinComment",Ht[Ht.WithinScriptContent=7]="WithinScriptContent",Ht[Ht.WithinStyleContent=8]="WithinStyleContent",Ht[Ht.AfterAttributeName=9]="AfterAttributeName",Ht[Ht.BeforeAttributeValue=10]="BeforeAttributeValue",(Ut||(Ut={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ue.Markdown,ue.PlainText]}},hover:{contentFormat:[ue.Markdown,ue.PlainText]}}},(Vt=qt||(qt={}))[Vt.Unknown=0]="Unknown",Vt[Vt.File=1]="File",Vt[Vt.Directory=2]="Directory",Vt[Vt.SymbolicLink=64]="SymbolicLink";var Yt=class{constructor(e,t){this.source=e,this.len=e.length,this.position=t}eos(){return this.len<=this.position}getSource(){return this.source}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}goToEnd(){this.position=this.source.length}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)}advanceIfChars(e){let t;if(this.position+e.length>this.source.length)return!1;for(t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0}advanceIfRegExp(e){const t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index+t[0].length,t[0]):""}advanceUntilRegExp(e){const t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index,t[0]):(this.goToEnd(),"")}advanceUntilChar(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1}advanceUntilChars(e){for(;this.position+e.length<=this.source.length;){let t=0;for(;t<e.length&&this.source.charCodeAt(this.position+t)===e[t];t++);if(t===e.length)return!0;this.advance(1)}return this.goToEnd(),!1}skipWhitespace(){return this.advanceWhileChar((e=>e===hn||e===cn||e===on||e===ln||e===an))>0}advanceWhileChar(e){const t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}},Xt="!".charCodeAt(0),Jt="-".charCodeAt(0),Zt="<".charCodeAt(0),en=">".charCodeAt(0),tn="/".charCodeAt(0),nn="=".charCodeAt(0),rn='"'.charCodeAt(0),sn="'".charCodeAt(0),on="\n".charCodeAt(0),an="\r".charCodeAt(0),ln="\f".charCodeAt(0),hn=" ".charCodeAt(0),cn="\t".charCodeAt(0),dn={"text/x-handlebars-template":!0,"text/html":!0};function un(e,t=0,n=Wt.WithinContent,i=!1){const r=new Yt(e,t);let s,a,l,h,c,d=n,u=0,g=Pt.Unknown;function f(){return r.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase()}function m(e,t,n){return g=t,u=e,s=n,t}function p(){const e=r.pos();if(r.eos())return m(e,Pt.EOS);let t;switch(d){case Wt.WithinComment:return r.advanceIfChars([Jt,Jt,en])?(d=Wt.WithinContent,m(e,Pt.EndCommentTag)):(r.advanceUntilChars([Jt,Jt,en]),m(e,Pt.Comment));case Wt.WithinDoctype:return r.advanceIfChar(en)?(d=Wt.WithinContent,m(e,Pt.EndDoctypeTag)):(r.advanceUntilChar(en),m(e,Pt.Doctype));case Wt.WithinContent:if(r.advanceIfChar(Zt)){if(!r.eos()&&r.peekChar()===Xt){if(r.advanceIfChars([Xt,Jt,Jt]))return d=Wt.WithinComment,m(e,Pt.StartCommentTag);if(r.advanceIfRegExp(/^!doctype/i))return d=Wt.WithinDoctype,m(e,Pt.StartDoctypeTag)}return r.advanceIfChar(tn)?(d=Wt.AfterOpeningEndTag,m(e,Pt.EndTagOpen)):(d=Wt.AfterOpeningStartTag,m(e,Pt.StartTagOpen))}return r.advanceUntilChar(Zt),m(e,Pt.Content);case Wt.AfterOpeningEndTag:return f().length>0?(d=Wt.WithinEndTag,m(e,Pt.EndTag)):r.skipWhitespace()?m(e,Pt.Whitespace,o("Tag name must directly follow the open bracket.")):(d=Wt.WithinEndTag,r.advanceUntilChar(en),e<r.pos()?m(e,Pt.Unknown,o("End tag name expected.")):p());case Wt.WithinEndTag:if(r.skipWhitespace())return m(e,Pt.Whitespace);if(r.advanceIfChar(en))return d=Wt.WithinContent,m(e,Pt.EndTagClose);if(i&&r.peekChar()===Zt)return d=Wt.WithinContent,m(e,Pt.EndTagClose,o("Closing bracket missing."));t=o("Closing bracket expected.");break;case Wt.AfterOpeningStartTag:return l=f(),c=void 0,h=void 0,l.length>0?(a=!1,d=Wt.WithinTag,m(e,Pt.StartTag)):r.skipWhitespace()?m(e,Pt.Whitespace,o("Tag name must directly follow the open bracket.")):(d=Wt.WithinTag,r.advanceUntilChar(en),e<r.pos()?m(e,Pt.Unknown,o("Start tag name expected.")):p());case Wt.WithinTag:return r.skipWhitespace()?(a=!0,m(e,Pt.Whitespace)):a&&(h=r.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase(),h.length>0)?(d=Wt.AfterAttributeName,a=!1,m(e,Pt.AttributeName)):r.advanceIfChars([tn,en])?(d=Wt.WithinContent,m(e,Pt.StartTagSelfClose)):r.advanceIfChar(en)?(d="script"===l?c&&dn[c]?Wt.WithinContent:Wt.WithinScriptContent:"style"===l?Wt.WithinStyleContent:Wt.WithinContent,m(e,Pt.StartTagClose)):i&&r.peekChar()===Zt?(d=Wt.WithinContent,m(e,Pt.StartTagClose,o("Closing bracket missing."))):(r.advance(1),m(e,Pt.Unknown,o("Unexpected character in tag.")));case Wt.AfterAttributeName:return r.skipWhitespace()?(a=!0,m(e,Pt.Whitespace)):r.advanceIfChar(nn)?(d=Wt.BeforeAttributeValue,m(e,Pt.DelimiterAssign)):(d=Wt.WithinTag,p());case Wt.BeforeAttributeValue:if(r.skipWhitespace())return m(e,Pt.Whitespace);let n=r.advanceIfRegExp(/^[^\s"'`=<>]+/);if(n.length>0&&(r.peekChar()===en&&r.peekChar(-1)===tn&&(r.goBack(1),n=n.substring(0,n.length-1)),"type"===h&&(c=n),n.length>0))return d=Wt.WithinTag,a=!1,m(e,Pt.AttributeValue);const s=r.peekChar();return s===sn||s===rn?(r.advance(1),r.advanceUntilChar(s)&&r.advance(1),"type"===h&&(c=r.getSource().substring(e+1,r.pos()-1)),d=Wt.WithinTag,a=!1,m(e,Pt.AttributeValue)):(d=Wt.WithinTag,a=!1,p());case Wt.WithinScriptContent:let u=1;for(;!r.eos();){const t=r.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(0===t.length)return r.goToEnd(),m(e,Pt.Script);if("\x3c!--"===t)1===u&&(u=2);else if("--\x3e"===t)u=1;else if("/"!==t[1])2===u&&(u=3);else{if(3!==u){r.goBack(t.length);break}u=2}}return d=Wt.WithinContent,e<r.pos()?m(e,Pt.Script):p();case Wt.WithinStyleContent:return r.advanceUntilRegExp(/<\/style/i),d=Wt.WithinContent,e<r.pos()?m(e,Pt.Styles):p()}return r.advance(1),d=Wt.WithinContent,m(e,Pt.Unknown,t)}return{scan:function(){const e=r.pos(),t=d,n=p();return n===Pt.EOS||e!==r.pos()||i&&(n===Pt.StartTagClose||n===Pt.EndTagClose)?n:(console.warn("Scanner.scan has not advanced at offset "+e+", state before: "+t+" after: "+d),r.advance(1),m(e,Pt.Unknown))},getTokenType:()=>g,getTokenOffset:()=>u,getTokenLength:()=>r.pos()-u,getTokenEnd:()=>r.pos(),getTokenText:()=>r.getSource().substring(u,r.pos()),getScannerState:()=>d,getTokenError:()=>s}}function gn(e,t){let n=0,i=e.length;if(0===i)return 0;for(;n<i;){let r=Math.floor((n+i)/2);t(e[r])?i=r:n=r+1}return n}var fn=class{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}constructor(e,t,n,i){this.start=e,this.end=t,this.children=n,this.parent=i,this.closed=!1}isSameTag(e){return void 0===this.tag?void 0===e:void 0!==e&&this.tag.length===e.length&&this.tag.toLowerCase()===e}get firstChild(){return this.children[0]}get lastChild(){return this.children.length?this.children[this.children.length-1]:void 0}findNodeBefore(e){const t=gn(this.children,(t=>e<=t.start))-1;if(t>=0){const n=this.children[t];if(e>n.start){if(e<n.end)return n.findNodeBefore(e);const t=n.lastChild;return t&&t.end===n.end?n.findNodeBefore(e):n}}return this}findNodeAt(e){const t=gn(this.children,(t=>e<=t.start))-1;if(t>=0){const n=this.children[t];if(e>n.start&&e<=n.end)return n.findNodeAt(e)}return this}},mn=class{constructor(e){this.dataManager=e}parseDocument(e){return this.parse(e.getText(),this.dataManager.getVoidElements(e.languageId))}parse(e,t){const n=un(e,void 0,void 0,!0),i=new fn(0,e.length,[],void 0);let r,s=i,o=-1,a=null,l=n.scan();for(;l!==Pt.EOS;){switch(l){case Pt.StartTagOpen:const i=new fn(n.getTokenOffset(),e.length,[],s);s.children.push(i),s=i;break;case Pt.StartTag:s.tag=n.getTokenText();break;case Pt.StartTagClose:s.parent&&(s.end=n.getTokenEnd(),n.getTokenLength()?(s.startTagEnd=n.getTokenEnd(),s.tag&&this.dataManager.isVoidElement(s.tag,t)&&(s.closed=!0,s=s.parent)):s=s.parent);break;case Pt.StartTagSelfClose:s.parent&&(s.closed=!0,s.end=n.getTokenEnd(),s.startTagEnd=n.getTokenEnd(),s=s.parent);break;case Pt.EndTagOpen:o=n.getTokenOffset(),r=void 0;break;case Pt.EndTag:r=n.getTokenText().toLowerCase();break;case Pt.EndTagClose:let l=s;for(;!l.isSameTag(r)&&l.parent;)l=l.parent;if(l.parent){for(;s!==l;)s.end=o,s.closed=!1,s=s.parent;s.closed=!0,s.endTagStart=o,s.end=n.getTokenEnd(),s=s.parent}break;case Pt.AttributeName:{a=n.getTokenText();let e=s.attributes;e||(s.attributes=e={}),e[a]=null;break}case Pt.AttributeValue:{const e=n.getTokenText(),t=s.attributes;t&&a&&(t[a]=e,a=null);break}}l=n.scan()}for(;s.parent;)s.end=e.length,s.closed=!1,s=s.parent;return{roots:i.children,findNodeBefore:i.findNodeBefore.bind(i),findNodeAt:i.findNodeAt.bind(i)}}},pn={"Aacute;":"\xc1",Aacute:"\xc1","aacute;":"\xe1",aacute:"\xe1","Abreve;":"\u0102","abreve;":"\u0103","ac;":"\u223e","acd;":"\u223f","acE;":"\u223e\u0333","Acirc;":"\xc2",Acirc:"\xc2","acirc;":"\xe2",acirc:"\xe2","acute;":"\xb4",acute:"\xb4","Acy;":"\u0410","acy;":"\u0430","AElig;":"\xc6",AElig:"\xc6","aelig;":"\xe6",aelig:"\xe6","af;":"\u2061","Afr;":"\ud835\udd04","afr;":"\ud835\udd1e","Agrave;":"\xc0",Agrave:"\xc0","agrave;":"\xe0",agrave:"\xe0","alefsym;":"\u2135","aleph;":"\u2135","Alpha;":"\u0391","alpha;":"\u03b1","Amacr;":"\u0100","amacr;":"\u0101","amalg;":"\u2a3f","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"\u2a53","and;":"\u2227","andand;":"\u2a55","andd;":"\u2a5c","andslope;":"\u2a58","andv;":"\u2a5a","ang;":"\u2220","ange;":"\u29a4","angle;":"\u2220","angmsd;":"\u2221","angmsdaa;":"\u29a8","angmsdab;":"\u29a9","angmsdac;":"\u29aa","angmsdad;":"\u29ab","angmsdae;":"\u29ac","angmsdaf;":"\u29ad","angmsdag;":"\u29ae","angmsdah;":"\u29af","angrt;":"\u221f","angrtvb;":"\u22be","angrtvbd;":"\u299d","angsph;":"\u2222","angst;":"\xc5","angzarr;":"\u237c","Aogon;":"\u0104","aogon;":"\u0105","Aopf;":"\ud835\udd38","aopf;":"\ud835\udd52","ap;":"\u2248","apacir;":"\u2a6f","apE;":"\u2a70","ape;":"\u224a","apid;":"\u224b","apos;":"'","ApplyFunction;":"\u2061","approx;":"\u2248","approxeq;":"\u224a","Aring;":"\xc5",Aring:"\xc5","aring;":"\xe5",aring:"\xe5","Ascr;":"\ud835\udc9c","ascr;":"\ud835\udcb6","Assign;":"\u2254","ast;":"*","asymp;":"\u2248","asympeq;":"\u224d","Atilde;":"\xc3",Atilde:"\xc3","atilde;":"\xe3",atilde:"\xe3","Auml;":"\xc4",Auml:"\xc4","auml;":"\xe4",auml:"\xe4","awconint;":"\u2233","awint;":"\u2a11","backcong;":"\u224c","backepsilon;":"\u03f6","backprime;":"\u2035","backsim;":"\u223d","backsimeq;":"\u22cd","Backslash;":"\u2216","Barv;":"\u2ae7","barvee;":"\u22bd","Barwed;":"\u2306","barwed;":"\u2305","barwedge;":"\u2305","bbrk;":"\u23b5","bbrktbrk;":"\u23b6","bcong;":"\u224c","Bcy;":"\u0411","bcy;":"\u0431","bdquo;":"\u201e","becaus;":"\u2235","Because;":"\u2235","because;":"\u2235","bemptyv;":"\u29b0","bepsi;":"\u03f6","bernou;":"\u212c","Bernoullis;":"\u212c","Beta;":"\u0392","beta;":"\u03b2","beth;":"\u2136","between;":"\u226c","Bfr;":"\ud835\udd05","bfr;":"\ud835\udd1f","bigcap;":"\u22c2","bigcirc;":"\u25ef","bigcup;":"\u22c3","bigodot;":"\u2a00","bigoplus;":"\u2a01","bigotimes;":"\u2a02","bigsqcup;":"\u2a06","bigstar;":"\u2605","bigtriangledown;":"\u25bd","bigtriangleup;":"\u25b3","biguplus;":"\u2a04","bigvee;":"\u22c1","bigwedge;":"\u22c0","bkarow;":"\u290d","blacklozenge;":"\u29eb","blacksquare;":"\u25aa","blacktriangle;":"\u25b4","blacktriangledown;":"\u25be","blacktriangleleft;":"\u25c2","blacktriangleright;":"\u25b8","blank;":"\u2423","blk12;":"\u2592","blk14;":"\u2591","blk34;":"\u2593","block;":"\u2588","bne;":"=\u20e5","bnequiv;":"\u2261\u20e5","bNot;":"\u2aed","bnot;":"\u2310","Bopf;":"\ud835\udd39","bopf;":"\ud835\udd53","bot;":"\u22a5","bottom;":"\u22a5","bowtie;":"\u22c8","boxbox;":"\u29c9","boxDL;":"\u2557","boxDl;":"\u2556","boxdL;":"\u2555","boxdl;":"\u2510","boxDR;":"\u2554","boxDr;":"\u2553","boxdR;":"\u2552","boxdr;":"\u250c","boxH;":"\u2550","boxh;":"\u2500","boxHD;":"\u2566","boxHd;":"\u2564","boxhD;":"\u2565","boxhd;":"\u252c","boxHU;":"\u2569","boxHu;":"\u2567","boxhU;":"\u2568","boxhu;":"\u2534","boxminus;":"\u229f","boxplus;":"\u229e","boxtimes;":"\u22a0","boxUL;":"\u255d","boxUl;":"\u255c","boxuL;":"\u255b","boxul;":"\u2518","boxUR;":"\u255a","boxUr;":"\u2559","boxuR;":"\u2558","boxur;":"\u2514","boxV;":"\u2551","boxv;":"\u2502","boxVH;":"\u256c","boxVh;":"\u256b","boxvH;":"\u256a","boxvh;":"\u253c","boxVL;":"\u2563","boxVl;":"\u2562","boxvL;":"\u2561","boxvl;":"\u2524","boxVR;":"\u2560","boxVr;":"\u255f","boxvR;":"\u255e","boxvr;":"\u251c","bprime;":"\u2035","Breve;":"\u02d8","breve;":"\u02d8","brvbar;":"\xa6",brvbar:"\xa6","Bscr;":"\u212c","bscr;":"\ud835\udcb7","bsemi;":"\u204f","bsim;":"\u223d","bsime;":"\u22cd","bsol;":"\\","bsolb;":"\u29c5","bsolhsub;":"\u27c8","bull;":"\u2022","bullet;":"\u2022","bump;":"\u224e","bumpE;":"\u2aae","bumpe;":"\u224f","Bumpeq;":"\u224e","bumpeq;":"\u224f","Cacute;":"\u0106","cacute;":"\u0107","Cap;":"\u22d2","cap;":"\u2229","capand;":"\u2a44","capbrcup;":"\u2a49","capcap;":"\u2a4b","capcup;":"\u2a47","capdot;":"\u2a40","CapitalDifferentialD;":"\u2145","caps;":"\u2229\ufe00","caret;":"\u2041","caron;":"\u02c7","Cayleys;":"\u212d","ccaps;":"\u2a4d","Ccaron;":"\u010c","ccaron;":"\u010d","Ccedil;":"\xc7",Ccedil:"\xc7","ccedil;":"\xe7",ccedil:"\xe7","Ccirc;":"\u0108","ccirc;":"\u0109","Cconint;":"\u2230","ccups;":"\u2a4c","ccupssm;":"\u2a50","Cdot;":"\u010a","cdot;":"\u010b","cedil;":"\xb8",cedil:"\xb8","Cedilla;":"\xb8","cemptyv;":"\u29b2","cent;":"\xa2",cent:"\xa2","CenterDot;":"\xb7","centerdot;":"\xb7","Cfr;":"\u212d","cfr;":"\ud835\udd20","CHcy;":"\u0427","chcy;":"\u0447","check;":"\u2713","checkmark;":"\u2713","Chi;":"\u03a7","chi;":"\u03c7","cir;":"\u25cb","circ;":"\u02c6","circeq;":"\u2257","circlearrowleft;":"\u21ba","circlearrowright;":"\u21bb","circledast;":"\u229b","circledcirc;":"\u229a","circleddash;":"\u229d","CircleDot;":"\u2299","circledR;":"\xae","circledS;":"\u24c8","CircleMinus;":"\u2296","CirclePlus;":"\u2295","CircleTimes;":"\u2297","cirE;":"\u29c3","cire;":"\u2257","cirfnint;":"\u2a10","cirmid;":"\u2aef","cirscir;":"\u29c2","ClockwiseContourIntegral;":"\u2232","CloseCurlyDoubleQuote;":"\u201d","CloseCurlyQuote;":"\u2019","clubs;":"\u2663","clubsuit;":"\u2663","Colon;":"\u2237","colon;":":","Colone;":"\u2a74","colone;":"\u2254","coloneq;":"\u2254","comma;":",","commat;":"@","comp;":"\u2201","compfn;":"\u2218","complement;":"\u2201","complexes;":"\u2102","cong;":"\u2245","congdot;":"\u2a6d","Congruent;":"\u2261","Conint;":"\u222f","conint;":"\u222e","ContourIntegral;":"\u222e","Copf;":"\u2102","copf;":"\ud835\udd54","coprod;":"\u2210","Coproduct;":"\u2210","COPY;":"\xa9",COPY:"\xa9","copy;":"\xa9",copy:"\xa9","copysr;":"\u2117","CounterClockwiseContourIntegral;":"\u2233","crarr;":"\u21b5","Cross;":"\u2a2f","cross;":"\u2717","Cscr;":"\ud835\udc9e","cscr;":"\ud835\udcb8","csub;":"\u2acf","csube;":"\u2ad1","csup;":"\u2ad0","csupe;":"\u2ad2","ctdot;":"\u22ef","cudarrl;":"\u2938","cudarrr;":"\u2935","cuepr;":"\u22de","cuesc;":"\u22df","cularr;":"\u21b6","cularrp;":"\u293d","Cup;":"\u22d3","cup;":"\u222a","cupbrcap;":"\u2a48","CupCap;":"\u224d","cupcap;":"\u2a46","cupcup;":"\u2a4a","cupdot;":"\u228d","cupor;":"\u2a45","cups;":"\u222a\ufe00","curarr;":"\u21b7","curarrm;":"\u293c","curlyeqprec;":"\u22de","curlyeqsucc;":"\u22df","curlyvee;":"\u22ce","curlywedge;":"\u22cf","curren;":"\xa4",curren:"\xa4","curvearrowleft;":"\u21b6","curvearrowright;":"\u21b7","cuvee;":"\u22ce","cuwed;":"\u22cf","cwconint;":"\u2232","cwint;":"\u2231","cylcty;":"\u232d","Dagger;":"\u2021","dagger;":"\u2020","daleth;":"\u2138","Darr;":"\u21a1","dArr;":"\u21d3","darr;":"\u2193","dash;":"\u2010","Dashv;":"\u2ae4","dashv;":"\u22a3","dbkarow;":"\u290f","dblac;":"\u02dd","Dcaron;":"\u010e","dcaron;":"\u010f","Dcy;":"\u0414","dcy;":"\u0434","DD;":"\u2145","dd;":"\u2146","ddagger;":"\u2021","ddarr;":"\u21ca","DDotrahd;":"\u2911","ddotseq;":"\u2a77","deg;":"\xb0",deg:"\xb0","Del;":"\u2207","Delta;":"\u0394","delta;":"\u03b4","demptyv;":"\u29b1","dfisht;":"\u297f","Dfr;":"\ud835\udd07","dfr;":"\ud835\udd21","dHar;":"\u2965","dharl;":"\u21c3","dharr;":"\u21c2","DiacriticalAcute;":"\xb4","DiacriticalDot;":"\u02d9","DiacriticalDoubleAcute;":"\u02dd","DiacriticalGrave;":"`","DiacriticalTilde;":"\u02dc","diam;":"\u22c4","Diamond;":"\u22c4","diamond;":"\u22c4","diamondsuit;":"\u2666","diams;":"\u2666","die;":"\xa8","DifferentialD;":"\u2146","digamma;":"\u03dd","disin;":"\u22f2","div;":"\xf7","divide;":"\xf7",divide:"\xf7","divideontimes;":"\u22c7","divonx;":"\u22c7","DJcy;":"\u0402","djcy;":"\u0452","dlcorn;":"\u231e","dlcrop;":"\u230d","dollar;":"$","Dopf;":"\ud835\udd3b","dopf;":"\ud835\udd55","Dot;":"\xa8","dot;":"\u02d9","DotDot;":"\u20dc","doteq;":"\u2250","doteqdot;":"\u2251","DotEqual;":"\u2250","dotminus;":"\u2238","dotplus;":"\u2214","dotsquare;":"\u22a1","doublebarwedge;":"\u2306","DoubleContourIntegral;":"\u222f","DoubleDot;":"\xa8","DoubleDownArrow;":"\u21d3","DoubleLeftArrow;":"\u21d0","DoubleLeftRightArrow;":"\u21d4","DoubleLeftTee;":"\u2ae4","DoubleLongLeftArrow;":"\u27f8","DoubleLongLeftRightArrow;":"\u27fa","DoubleLongRightArrow;":"\u27f9","DoubleRightArrow;":"\u21d2","DoubleRightTee;":"\u22a8","DoubleUpArrow;":"\u21d1","DoubleUpDownArrow;":"\u21d5","DoubleVerticalBar;":"\u2225","DownArrow;":"\u2193","Downarrow;":"\u21d3","downarrow;":"\u2193","DownArrowBar;":"\u2913","DownArrowUpArrow;":"\u21f5","DownBreve;":"\u0311","downdownarrows;":"\u21ca","downharpoonleft;":"\u21c3","downharpoonright;":"\u21c2","DownLeftRightVector;":"\u2950","DownLeftTeeVector;":"\u295e","DownLeftVector;":"\u21bd","DownLeftVectorBar;":"\u2956","DownRightTeeVector;":"\u295f","DownRightVector;":"\u21c1","DownRightVectorBar;":"\u2957","DownTee;":"\u22a4","DownTeeArrow;":"\u21a7","drbkarow;":"\u2910","drcorn;":"\u231f","drcrop;":"\u230c","Dscr;":"\ud835\udc9f","dscr;":"\ud835\udcb9","DScy;":"\u0405","dscy;":"\u0455","dsol;":"\u29f6","Dstrok;":"\u0110","dstrok;":"\u0111","dtdot;":"\u22f1","dtri;":"\u25bf","dtrif;":"\u25be","duarr;":"\u21f5","duhar;":"\u296f","dwangle;":"\u29a6","DZcy;":"\u040f","dzcy;":"\u045f","dzigrarr;":"\u27ff","Eacute;":"\xc9",Eacute:"\xc9","eacute;":"\xe9",eacute:"\xe9","easter;":"\u2a6e","Ecaron;":"\u011a","ecaron;":"\u011b","ecir;":"\u2256","Ecirc;":"\xca",Ecirc:"\xca","ecirc;":"\xea",ecirc:"\xea","ecolon;":"\u2255","Ecy;":"\u042d","ecy;":"\u044d","eDDot;":"\u2a77","Edot;":"\u0116","eDot;":"\u2251","edot;":"\u0117","ee;":"\u2147","efDot;":"\u2252","Efr;":"\ud835\udd08","efr;":"\ud835\udd22","eg;":"\u2a9a","Egrave;":"\xc8",Egrave:"\xc8","egrave;":"\xe8",egrave:"\xe8","egs;":"\u2a96","egsdot;":"\u2a98","el;":"\u2a99","Element;":"\u2208","elinters;":"\u23e7","ell;":"\u2113","els;":"\u2a95","elsdot;":"\u2a97","Emacr;":"\u0112","emacr;":"\u0113","empty;":"\u2205","emptyset;":"\u2205","EmptySmallSquare;":"\u25fb","emptyv;":"\u2205","EmptyVerySmallSquare;":"\u25ab","emsp;":"\u2003","emsp13;":"\u2004","emsp14;":"\u2005","ENG;":"\u014a","eng;":"\u014b","ensp;":"\u2002","Eogon;":"\u0118","eogon;":"\u0119","Eopf;":"\ud835\udd3c","eopf;":"\ud835\udd56","epar;":"\u22d5","eparsl;":"\u29e3","eplus;":"\u2a71","epsi;":"\u03b5","Epsilon;":"\u0395","epsilon;":"\u03b5","epsiv;":"\u03f5","eqcirc;":"\u2256","eqcolon;":"\u2255","eqsim;":"\u2242","eqslantgtr;":"\u2a96","eqslantless;":"\u2a95","Equal;":"\u2a75","equals;":"=","EqualTilde;":"\u2242","equest;":"\u225f","Equilibrium;":"\u21cc","equiv;":"\u2261","equivDD;":"\u2a78","eqvparsl;":"\u29e5","erarr;":"\u2971","erDot;":"\u2253","Escr;":"\u2130","escr;":"\u212f","esdot;":"\u2250","Esim;":"\u2a73","esim;":"\u2242","Eta;":"\u0397","eta;":"\u03b7","ETH;":"\xd0",ETH:"\xd0","eth;":"\xf0",eth:"\xf0","Euml;":"\xcb",Euml:"\xcb","euml;":"\xeb",euml:"\xeb","euro;":"\u20ac","excl;":"!","exist;":"\u2203","Exists;":"\u2203","expectation;":"\u2130","ExponentialE;":"\u2147","exponentiale;":"\u2147","fallingdotseq;":"\u2252","Fcy;":"\u0424","fcy;":"\u0444","female;":"\u2640","ffilig;":"\ufb03","fflig;":"\ufb00","ffllig;":"\ufb04","Ffr;":"\ud835\udd09","ffr;":"\ud835\udd23","filig;":"\ufb01","FilledSmallSquare;":"\u25fc","FilledVerySmallSquare;":"\u25aa","fjlig;":"fj","flat;":"\u266d","fllig;":"\ufb02","fltns;":"\u25b1","fnof;":"\u0192","Fopf;":"\ud835\udd3d","fopf;":"\ud835\udd57","ForAll;":"\u2200","forall;":"\u2200","fork;":"\u22d4","forkv;":"\u2ad9","Fouriertrf;":"\u2131","fpartint;":"\u2a0d","frac12;":"\xbd",frac12:"\xbd","frac13;":"\u2153","frac14;":"\xbc",frac14:"\xbc","frac15;":"\u2155","frac16;":"\u2159","frac18;":"\u215b","frac23;":"\u2154","frac25;":"\u2156","frac34;":"\xbe",frac34:"\xbe","frac35;":"\u2157","frac38;":"\u215c","frac45;":"\u2158","frac56;":"\u215a","frac58;":"\u215d","frac78;":"\u215e","frasl;":"\u2044","frown;":"\u2322","Fscr;":"\u2131","fscr;":"\ud835\udcbb","gacute;":"\u01f5","Gamma;":"\u0393","gamma;":"\u03b3","Gammad;":"\u03dc","gammad;":"\u03dd","gap;":"\u2a86","Gbreve;":"\u011e","gbreve;":"\u011f","Gcedil;":"\u0122","Gcirc;":"\u011c","gcirc;":"\u011d","Gcy;":"\u0413","gcy;":"\u0433","Gdot;":"\u0120","gdot;":"\u0121","gE;":"\u2267","ge;":"\u2265","gEl;":"\u2a8c","gel;":"\u22db","geq;":"\u2265","geqq;":"\u2267","geqslant;":"\u2a7e","ges;":"\u2a7e","gescc;":"\u2aa9","gesdot;":"\u2a80","gesdoto;":"\u2a82","gesdotol;":"\u2a84","gesl;":"\u22db\ufe00","gesles;":"\u2a94","Gfr;":"\ud835\udd0a","gfr;":"\ud835\udd24","Gg;":"\u22d9","gg;":"\u226b","ggg;":"\u22d9","gimel;":"\u2137","GJcy;":"\u0403","gjcy;":"\u0453","gl;":"\u2277","gla;":"\u2aa5","glE;":"\u2a92","glj;":"\u2aa4","gnap;":"\u2a8a","gnapprox;":"\u2a8a","gnE;":"\u2269","gne;":"\u2a88","gneq;":"\u2a88","gneqq;":"\u2269","gnsim;":"\u22e7","Gopf;":"\ud835\udd3e","gopf;":"\ud835\udd58","grave;":"`","GreaterEqual;":"\u2265","GreaterEqualLess;":"\u22db","GreaterFullEqual;":"\u2267","GreaterGreater;":"\u2aa2","GreaterLess;":"\u2277","GreaterSlantEqual;":"\u2a7e","GreaterTilde;":"\u2273","Gscr;":"\ud835\udca2","gscr;":"\u210a","gsim;":"\u2273","gsime;":"\u2a8e","gsiml;":"\u2a90","GT;":">",GT:">","Gt;":"\u226b","gt;":">",gt:">","gtcc;":"\u2aa7","gtcir;":"\u2a7a","gtdot;":"\u22d7","gtlPar;":"\u2995","gtquest;":"\u2a7c","gtrapprox;":"\u2a86","gtrarr;":"\u2978","gtrdot;":"\u22d7","gtreqless;":"\u22db","gtreqqless;":"\u2a8c","gtrless;":"\u2277","gtrsim;":"\u2273","gvertneqq;":"\u2269\ufe00","gvnE;":"\u2269\ufe00","Hacek;":"\u02c7","hairsp;":"\u200a","half;":"\xbd","hamilt;":"\u210b","HARDcy;":"\u042a","hardcy;":"\u044a","hArr;":"\u21d4","harr;":"\u2194","harrcir;":"\u2948","harrw;":"\u21ad","Hat;":"^","hbar;":"\u210f","Hcirc;":"\u0124","hcirc;":"\u0125","hearts;":"\u2665","heartsuit;":"\u2665","hellip;":"\u2026","hercon;":"\u22b9","Hfr;":"\u210c","hfr;":"\ud835\udd25","HilbertSpace;":"\u210b","hksearow;":"\u2925","hkswarow;":"\u2926","hoarr;":"\u21ff","homtht;":"\u223b","hookleftarrow;":"\u21a9","hookrightarrow;":"\u21aa","Hopf;":"\u210d","hopf;":"\ud835\udd59","horbar;":"\u2015","HorizontalLine;":"\u2500","Hscr;":"\u210b","hscr;":"\ud835\udcbd","hslash;":"\u210f","Hstrok;":"\u0126","hstrok;":"\u0127","HumpDownHump;":"\u224e","HumpEqual;":"\u224f","hybull;":"\u2043","hyphen;":"\u2010","Iacute;":"\xcd",Iacute:"\xcd","iacute;":"\xed",iacute:"\xed","ic;":"\u2063","Icirc;":"\xce",Icirc:"\xce","icirc;":"\xee",icirc:"\xee","Icy;":"\u0418","icy;":"\u0438","Idot;":"\u0130","IEcy;":"\u0415","iecy;":"\u0435","iexcl;":"\xa1",iexcl:"\xa1","iff;":"\u21d4","Ifr;":"\u2111","ifr;":"\ud835\udd26","Igrave;":"\xcc",Igrave:"\xcc","igrave;":"\xec",igrave:"\xec","ii;":"\u2148","iiiint;":"\u2a0c","iiint;":"\u222d","iinfin;":"\u29dc","iiota;":"\u2129","IJlig;":"\u0132","ijlig;":"\u0133","Im;":"\u2111","Imacr;":"\u012a","imacr;":"\u012b","image;":"\u2111","ImaginaryI;":"\u2148","imagline;":"\u2110","imagpart;":"\u2111","imath;":"\u0131","imof;":"\u22b7","imped;":"\u01b5","Implies;":"\u21d2","in;":"\u2208","incare;":"\u2105","infin;":"\u221e","infintie;":"\u29dd","inodot;":"\u0131","Int;":"\u222c","int;":"\u222b","intcal;":"\u22ba","integers;":"\u2124","Integral;":"\u222b","intercal;":"\u22ba","Intersection;":"\u22c2","intlarhk;":"\u2a17","intprod;":"\u2a3c","InvisibleComma;":"\u2063","InvisibleTimes;":"\u2062","IOcy;":"\u0401","iocy;":"\u0451","Iogon;":"\u012e","iogon;":"\u012f","Iopf;":"\ud835\udd40","iopf;":"\ud835\udd5a","Iota;":"\u0399","iota;":"\u03b9","iprod;":"\u2a3c","iquest;":"\xbf",iquest:"\xbf","Iscr;":"\u2110","iscr;":"\ud835\udcbe","isin;":"\u2208","isindot;":"\u22f5","isinE;":"\u22f9","isins;":"\u22f4","isinsv;":"\u22f3","isinv;":"\u2208","it;":"\u2062","Itilde;":"\u0128","itilde;":"\u0129","Iukcy;":"\u0406","iukcy;":"\u0456","Iuml;":"\xcf",Iuml:"\xcf","iuml;":"\xef",iuml:"\xef","Jcirc;":"\u0134","jcirc;":"\u0135","Jcy;":"\u0419","jcy;":"\u0439","Jfr;":"\ud835\udd0d","jfr;":"\ud835\udd27","jmath;":"\u0237","Jopf;":"\ud835\udd41","jopf;":"\ud835\udd5b","Jscr;":"\ud835\udca5","jscr;":"\ud835\udcbf","Jsercy;":"\u0408","jsercy;":"\u0458","Jukcy;":"\u0404","jukcy;":"\u0454","Kappa;":"\u039a","kappa;":"\u03ba","kappav;":"\u03f0","Kcedil;":"\u0136","kcedil;":"\u0137","Kcy;":"\u041a","kcy;":"\u043a","Kfr;":"\ud835\udd0e","kfr;":"\ud835\udd28","kgreen;":"\u0138","KHcy;":"\u0425","khcy;":"\u0445","KJcy;":"\u040c","kjcy;":"\u045c","Kopf;":"\ud835\udd42","kopf;":"\ud835\udd5c","Kscr;":"\ud835\udca6","kscr;":"\ud835\udcc0","lAarr;":"\u21da","Lacute;":"\u0139","lacute;":"\u013a","laemptyv;":"\u29b4","lagran;":"\u2112","Lambda;":"\u039b","lambda;":"\u03bb","Lang;":"\u27ea","lang;":"\u27e8","langd;":"\u2991","langle;":"\u27e8","lap;":"\u2a85","Laplacetrf;":"\u2112","laquo;":"\xab",laquo:"\xab","Larr;":"\u219e","lArr;":"\u21d0","larr;":"\u2190","larrb;":"\u21e4","larrbfs;":"\u291f","larrfs;":"\u291d","larrhk;":"\u21a9","larrlp;":"\u21ab","larrpl;":"\u2939","larrsim;":"\u2973","larrtl;":"\u21a2","lat;":"\u2aab","lAtail;":"\u291b","latail;":"\u2919","late;":"\u2aad","lates;":"\u2aad\ufe00","lBarr;":"\u290e","lbarr;":"\u290c","lbbrk;":"\u2772","lbrace;":"{","lbrack;":"[","lbrke;":"\u298b","lbrksld;":"\u298f","lbrkslu;":"\u298d","Lcaron;":"\u013d","lcaron;":"\u013e","Lcedil;":"\u013b","lcedil;":"\u013c","lceil;":"\u2308","lcub;":"{","Lcy;":"\u041b","lcy;":"\u043b","ldca;":"\u2936","ldquo;":"\u201c","ldquor;":"\u201e","ldrdhar;":"\u2967","ldrushar;":"\u294b","ldsh;":"\u21b2","lE;":"\u2266","le;":"\u2264","LeftAngleBracket;":"\u27e8","LeftArrow;":"\u2190","Leftarrow;":"\u21d0","leftarrow;":"\u2190","LeftArrowBar;":"\u21e4","LeftArrowRightArrow;":"\u21c6","leftarrowtail;":"\u21a2","LeftCeiling;":"\u2308","LeftDoubleBracket;":"\u27e6","LeftDownTeeVector;":"\u2961","LeftDownVector;":"\u21c3","LeftDownVectorBar;":"\u2959","LeftFloor;":"\u230a","leftharpoondown;":"\u21bd","leftharpoonup;":"\u21bc","leftleftarrows;":"\u21c7","LeftRightArrow;":"\u2194","Leftrightarrow;":"\u21d4","leftrightarrow;":"\u2194","leftrightarrows;":"\u21c6","leftrightharpoons;":"\u21cb","leftrightsquigarrow;":"\u21ad","LeftRightVector;":"\u294e","LeftTee;":"\u22a3","LeftTeeArrow;":"\u21a4","LeftTeeVector;":"\u295a","leftthreetimes;":"\u22cb","LeftTriangle;":"\u22b2","LeftTriangleBar;":"\u29cf","LeftTriangleEqual;":"\u22b4","LeftUpDownVector;":"\u2951","LeftUpTeeVector;":"\u2960","LeftUpVector;":"\u21bf","LeftUpVectorBar;":"\u2958","LeftVector;":"\u21bc","LeftVectorBar;":"\u2952","lEg;":"\u2a8b","leg;":"\u22da","leq;":"\u2264","leqq;":"\u2266","leqslant;":"\u2a7d","les;":"\u2a7d","lescc;":"\u2aa8","lesdot;":"\u2a7f","lesdoto;":"\u2a81","lesdotor;":"\u2a83","lesg;":"\u22da\ufe00","lesges;":"\u2a93","lessapprox;":"\u2a85","lessdot;":"\u22d6","lesseqgtr;":"\u22da","lesseqqgtr;":"\u2a8b","LessEqualGreater;":"\u22da","LessFullEqual;":"\u2266","LessGreater;":"\u2276","lessgtr;":"\u2276","LessLess;":"\u2aa1","lesssim;":"\u2272","LessSlantEqual;":"\u2a7d","LessTilde;":"\u2272","lfisht;":"\u297c","lfloor;":"\u230a","Lfr;":"\ud835\udd0f","lfr;":"\ud835\udd29","lg;":"\u2276","lgE;":"\u2a91","lHar;":"\u2962","lhard;":"\u21bd","lharu;":"\u21bc","lharul;":"\u296a","lhblk;":"\u2584","LJcy;":"\u0409","ljcy;":"\u0459","Ll;":"\u22d8","ll;":"\u226a","llarr;":"\u21c7","llcorner;":"\u231e","Lleftarrow;":"\u21da","llhard;":"\u296b","lltri;":"\u25fa","Lmidot;":"\u013f","lmidot;":"\u0140","lmoust;":"\u23b0","lmoustache;":"\u23b0","lnap;":"\u2a89","lnapprox;":"\u2a89","lnE;":"\u2268","lne;":"\u2a87","lneq;":"\u2a87","lneqq;":"\u2268","lnsim;":"\u22e6","loang;":"\u27ec","loarr;":"\u21fd","lobrk;":"\u27e6","LongLeftArrow;":"\u27f5","Longleftarrow;":"\u27f8","longleftarrow;":"\u27f5","LongLeftRightArrow;":"\u27f7","Longleftrightarrow;":"\u27fa","longleftrightarrow;":"\u27f7","longmapsto;":"\u27fc","LongRightArrow;":"\u27f6","Longrightarrow;":"\u27f9","longrightarrow;":"\u27f6","looparrowleft;":"\u21ab","looparrowright;":"\u21ac","lopar;":"\u2985","Lopf;":"\ud835\udd43","lopf;":"\ud835\udd5d","loplus;":"\u2a2d","lotimes;":"\u2a34","lowast;":"\u2217","lowbar;":"_","LowerLeftArrow;":"\u2199","LowerRightArrow;":"\u2198","loz;":"\u25ca","lozenge;":"\u25ca","lozf;":"\u29eb","lpar;":"(","lparlt;":"\u2993","lrarr;":"\u21c6","lrcorner;":"\u231f","lrhar;":"\u21cb","lrhard;":"\u296d","lrm;":"\u200e","lrtri;":"\u22bf","lsaquo;":"\u2039","Lscr;":"\u2112","lscr;":"\ud835\udcc1","Lsh;":"\u21b0","lsh;":"\u21b0","lsim;":"\u2272","lsime;":"\u2a8d","lsimg;":"\u2a8f","lsqb;":"[","lsquo;":"\u2018","lsquor;":"\u201a","Lstrok;":"\u0141","lstrok;":"\u0142","LT;":"<",LT:"<","Lt;":"\u226a","lt;":"<",lt:"<","ltcc;":"\u2aa6","ltcir;":"\u2a79","ltdot;":"\u22d6","lthree;":"\u22cb","ltimes;":"\u22c9","ltlarr;":"\u2976","ltquest;":"\u2a7b","ltri;":"\u25c3","ltrie;":"\u22b4","ltrif;":"\u25c2","ltrPar;":"\u2996","lurdshar;":"\u294a","luruhar;":"\u2966","lvertneqq;":"\u2268\ufe00","lvnE;":"\u2268\ufe00","macr;":"\xaf",macr:"\xaf","male;":"\u2642","malt;":"\u2720","maltese;":"\u2720","Map;":"\u2905","map;":"\u21a6","mapsto;":"\u21a6","mapstodown;":"\u21a7","mapstoleft;":"\u21a4","mapstoup;":"\u21a5","marker;":"\u25ae","mcomma;":"\u2a29","Mcy;":"\u041c","mcy;":"\u043c","mdash;":"\u2014","mDDot;":"\u223a","measuredangle;":"\u2221","MediumSpace;":"\u205f","Mellintrf;":"\u2133","Mfr;":"\ud835\udd10","mfr;":"\ud835\udd2a","mho;":"\u2127","micro;":"\xb5",micro:"\xb5","mid;":"\u2223","midast;":"*","midcir;":"\u2af0","middot;":"\xb7",middot:"\xb7","minus;":"\u2212","minusb;":"\u229f","minusd;":"\u2238","minusdu;":"\u2a2a","MinusPlus;":"\u2213","mlcp;":"\u2adb","mldr;":"\u2026","mnplus;":"\u2213","models;":"\u22a7","Mopf;":"\ud835\udd44","mopf;":"\ud835\udd5e","mp;":"\u2213","Mscr;":"\u2133","mscr;":"\ud835\udcc2","mstpos;":"\u223e","Mu;":"\u039c","mu;":"\u03bc","multimap;":"\u22b8","mumap;":"\u22b8","nabla;":"\u2207","Nacute;":"\u0143","nacute;":"\u0144","nang;":"\u2220\u20d2","nap;":"\u2249","napE;":"\u2a70\u0338","napid;":"\u224b\u0338","napos;":"\u0149","napprox;":"\u2249","natur;":"\u266e","natural;":"\u266e","naturals;":"\u2115","nbsp;":"\xa0",nbsp:"\xa0","nbump;":"\u224e\u0338","nbumpe;":"\u224f\u0338","ncap;":"\u2a43","Ncaron;":"\u0147","ncaron;":"\u0148","Ncedil;":"\u0145","ncedil;":"\u0146","ncong;":"\u2247","ncongdot;":"\u2a6d\u0338","ncup;":"\u2a42","Ncy;":"\u041d","ncy;":"\u043d","ndash;":"\u2013","ne;":"\u2260","nearhk;":"\u2924","neArr;":"\u21d7","nearr;":"\u2197","nearrow;":"\u2197","nedot;":"\u2250\u0338","NegativeMediumSpace;":"\u200b","NegativeThickSpace;":"\u200b","NegativeThinSpace;":"\u200b","NegativeVeryThinSpace;":"\u200b","nequiv;":"\u2262","nesear;":"\u2928","nesim;":"\u2242\u0338","NestedGreaterGreater;":"\u226b","NestedLessLess;":"\u226a","NewLine;":"\n","nexist;":"\u2204","nexists;":"\u2204","Nfr;":"\ud835\udd11","nfr;":"\ud835\udd2b","ngE;":"\u2267\u0338","nge;":"\u2271","ngeq;":"\u2271","ngeqq;":"\u2267\u0338","ngeqslant;":"\u2a7e\u0338","nges;":"\u2a7e\u0338","nGg;":"\u22d9\u0338","ngsim;":"\u2275","nGt;":"\u226b\u20d2","ngt;":"\u226f","ngtr;":"\u226f","nGtv;":"\u226b\u0338","nhArr;":"\u21ce","nharr;":"\u21ae","nhpar;":"\u2af2","ni;":"\u220b","nis;":"\u22fc","nisd;":"\u22fa","niv;":"\u220b","NJcy;":"\u040a","njcy;":"\u045a","nlArr;":"\u21cd","nlarr;":"\u219a","nldr;":"\u2025","nlE;":"\u2266\u0338","nle;":"\u2270","nLeftarrow;":"\u21cd","nleftarrow;":"\u219a","nLeftrightarrow;":"\u21ce","nleftrightarrow;":"\u21ae","nleq;":"\u2270","nleqq;":"\u2266\u0338","nleqslant;":"\u2a7d\u0338","nles;":"\u2a7d\u0338","nless;":"\u226e","nLl;":"\u22d8\u0338","nlsim;":"\u2274","nLt;":"\u226a\u20d2","nlt;":"\u226e","nltri;":"\u22ea","nltrie;":"\u22ec","nLtv;":"\u226a\u0338","nmid;":"\u2224","NoBreak;":"\u2060","NonBreakingSpace;":"\xa0","Nopf;":"\u2115","nopf;":"\ud835\udd5f","Not;":"\u2aec","not;":"\xac",not:"\xac","NotCongruent;":"\u2262","NotCupCap;":"\u226d","NotDoubleVerticalBar;":"\u2226","NotElement;":"\u2209","NotEqual;":"\u2260","NotEqualTilde;":"\u2242\u0338","NotExists;":"\u2204","NotGreater;":"\u226f","NotGreaterEqual;":"\u2271","NotGreaterFullEqual;":"\u2267\u0338","NotGreaterGreater;":"\u226b\u0338","NotGreaterLess;":"\u2279","NotGreaterSlantEqual;":"\u2a7e\u0338","NotGreaterTilde;":"\u2275","NotHumpDownHump;":"\u224e\u0338","NotHumpEqual;":"\u224f\u0338","notin;":"\u2209","notindot;":"\u22f5\u0338","notinE;":"\u22f9\u0338","notinva;":"\u2209","notinvb;":"\u22f7","notinvc;":"\u22f6","NotLeftTriangle;":"\u22ea","NotLeftTriangleBar;":"\u29cf\u0338","NotLeftTriangleEqual;":"\u22ec","NotLess;":"\u226e","NotLessEqual;":"\u2270","NotLessGreater;":"\u2278","NotLessLess;":"\u226a\u0338","NotLessSlantEqual;":"\u2a7d\u0338","NotLessTilde;":"\u2274","NotNestedGreaterGreater;":"\u2aa2\u0338","NotNestedLessLess;":"\u2aa1\u0338","notni;":"\u220c","notniva;":"\u220c","notnivb;":"\u22fe","notnivc;":"\u22fd","NotPrecedes;":"\u2280","NotPrecedesEqual;":"\u2aaf\u0338","NotPrecedesSlantEqual;":"\u22e0","NotReverseElement;":"\u220c","NotRightTriangle;":"\u22eb","NotRightTriangleBar;":"\u29d0\u0338","NotRightTriangleEqual;":"\u22ed","NotSquareSubset;":"\u228f\u0338","NotSquareSubsetEqual;":"\u22e2","NotSquareSuperset;":"\u2290\u0338","NotSquareSupersetEqual;":"\u22e3","NotSubset;":"\u2282\u20d2","NotSubsetEqual;":"\u2288","NotSucceeds;":"\u2281","NotSucceedsEqual;":"\u2ab0\u0338","NotSucceedsSlantEqual;":"\u22e1","NotSucceedsTilde;":"\u227f\u0338","NotSuperset;":"\u2283\u20d2","NotSupersetEqual;":"\u2289","NotTilde;":"\u2241","NotTildeEqual;":"\u2244","NotTildeFullEqual;":"\u2247","NotTildeTilde;":"\u2249","NotVerticalBar;":"\u2224","npar;":"\u2226","nparallel;":"\u2226","nparsl;":"\u2afd\u20e5","npart;":"\u2202\u0338","npolint;":"\u2a14","npr;":"\u2280","nprcue;":"\u22e0","npre;":"\u2aaf\u0338","nprec;":"\u2280","npreceq;":"\u2aaf\u0338","nrArr;":"\u21cf","nrarr;":"\u219b","nrarrc;":"\u2933\u0338","nrarrw;":"\u219d\u0338","nRightarrow;":"\u21cf","nrightarrow;":"\u219b","nrtri;":"\u22eb","nrtrie;":"\u22ed","nsc;":"\u2281","nsccue;":"\u22e1","nsce;":"\u2ab0\u0338","Nscr;":"\ud835\udca9","nscr;":"\ud835\udcc3","nshortmid;":"\u2224","nshortparallel;":"\u2226","nsim;":"\u2241","nsime;":"\u2244","nsimeq;":"\u2244","nsmid;":"\u2224","nspar;":"\u2226","nsqsube;":"\u22e2","nsqsupe;":"\u22e3","nsub;":"\u2284","nsubE;":"\u2ac5\u0338","nsube;":"\u2288","nsubset;":"\u2282\u20d2","nsubseteq;":"\u2288","nsubseteqq;":"\u2ac5\u0338","nsucc;":"\u2281","nsucceq;":"\u2ab0\u0338","nsup;":"\u2285","nsupE;":"\u2ac6\u0338","nsupe;":"\u2289","nsupset;":"\u2283\u20d2","nsupseteq;":"\u2289","nsupseteqq;":"\u2ac6\u0338","ntgl;":"\u2279","Ntilde;":"\xd1",Ntilde:"\xd1","ntilde;":"\xf1",ntilde:"\xf1","ntlg;":"\u2278","ntriangleleft;":"\u22ea","ntrianglelefteq;":"\u22ec","ntriangleright;":"\u22eb","ntrianglerighteq;":"\u22ed","Nu;":"\u039d","nu;":"\u03bd","num;":"#","numero;":"\u2116","numsp;":"\u2007","nvap;":"\u224d\u20d2","nVDash;":"\u22af","nVdash;":"\u22ae","nvDash;":"\u22ad","nvdash;":"\u22ac","nvge;":"\u2265\u20d2","nvgt;":">\u20d2","nvHarr;":"\u2904","nvinfin;":"\u29de","nvlArr;":"\u2902","nvle;":"\u2264\u20d2","nvlt;":"<\u20d2","nvltrie;":"\u22b4\u20d2","nvrArr;":"\u2903","nvrtrie;":"\u22b5\u20d2","nvsim;":"\u223c\u20d2","nwarhk;":"\u2923","nwArr;":"\u21d6","nwarr;":"\u2196","nwarrow;":"\u2196","nwnear;":"\u2927","Oacute;":"\xd3",Oacute:"\xd3","oacute;":"\xf3",oacute:"\xf3","oast;":"\u229b","ocir;":"\u229a","Ocirc;":"\xd4",Ocirc:"\xd4","ocirc;":"\xf4",ocirc:"\xf4","Ocy;":"\u041e","ocy;":"\u043e","odash;":"\u229d","Odblac;":"\u0150","odblac;":"\u0151","odiv;":"\u2a38","odot;":"\u2299","odsold;":"\u29bc","OElig;":"\u0152","oelig;":"\u0153","ofcir;":"\u29bf","Ofr;":"\ud835\udd12","ofr;":"\ud835\udd2c","ogon;":"\u02db","Ograve;":"\xd2",Ograve:"\xd2","ograve;":"\xf2",ograve:"\xf2","ogt;":"\u29c1","ohbar;":"\u29b5","ohm;":"\u03a9","oint;":"\u222e","olarr;":"\u21ba","olcir;":"\u29be","olcross;":"\u29bb","oline;":"\u203e","olt;":"\u29c0","Omacr;":"\u014c","omacr;":"\u014d","Omega;":"\u03a9","omega;":"\u03c9","Omicron;":"\u039f","omicron;":"\u03bf","omid;":"\u29b6","ominus;":"\u2296","Oopf;":"\ud835\udd46","oopf;":"\ud835\udd60","opar;":"\u29b7","OpenCurlyDoubleQuote;":"\u201c","OpenCurlyQuote;":"\u2018","operp;":"\u29b9","oplus;":"\u2295","Or;":"\u2a54","or;":"\u2228","orarr;":"\u21bb","ord;":"\u2a5d","order;":"\u2134","orderof;":"\u2134","ordf;":"\xaa",ordf:"\xaa","ordm;":"\xba",ordm:"\xba","origof;":"\u22b6","oror;":"\u2a56","orslope;":"\u2a57","orv;":"\u2a5b","oS;":"\u24c8","Oscr;":"\ud835\udcaa","oscr;":"\u2134","Oslash;":"\xd8",Oslash:"\xd8","oslash;":"\xf8",oslash:"\xf8","osol;":"\u2298","Otilde;":"\xd5",Otilde:"\xd5","otilde;":"\xf5",otilde:"\xf5","Otimes;":"\u2a37","otimes;":"\u2297","otimesas;":"\u2a36","Ouml;":"\xd6",Ouml:"\xd6","ouml;":"\xf6",ouml:"\xf6","ovbar;":"\u233d","OverBar;":"\u203e","OverBrace;":"\u23de","OverBracket;":"\u23b4","OverParenthesis;":"\u23dc","par;":"\u2225","para;":"\xb6",para:"\xb6","parallel;":"\u2225","parsim;":"\u2af3","parsl;":"\u2afd","part;":"\u2202","PartialD;":"\u2202","Pcy;":"\u041f","pcy;":"\u043f","percnt;":"%","period;":".","permil;":"\u2030","perp;":"\u22a5","pertenk;":"\u2031","Pfr;":"\ud835\udd13","pfr;":"\ud835\udd2d","Phi;":"\u03a6","phi;":"\u03c6","phiv;":"\u03d5","phmmat;":"\u2133","phone;":"\u260e","Pi;":"\u03a0","pi;":"\u03c0","pitchfork;":"\u22d4","piv;":"\u03d6","planck;":"\u210f","planckh;":"\u210e","plankv;":"\u210f","plus;":"+","plusacir;":"\u2a23","plusb;":"\u229e","pluscir;":"\u2a22","plusdo;":"\u2214","plusdu;":"\u2a25","pluse;":"\u2a72","PlusMinus;":"\xb1","plusmn;":"\xb1",plusmn:"\xb1","plussim;":"\u2a26","plustwo;":"\u2a27","pm;":"\xb1","Poincareplane;":"\u210c","pointint;":"\u2a15","Popf;":"\u2119","popf;":"\ud835\udd61","pound;":"\xa3",pound:"\xa3","Pr;":"\u2abb","pr;":"\u227a","prap;":"\u2ab7","prcue;":"\u227c","prE;":"\u2ab3","pre;":"\u2aaf","prec;":"\u227a","precapprox;":"\u2ab7","preccurlyeq;":"\u227c","Precedes;":"\u227a","PrecedesEqual;":"\u2aaf","PrecedesSlantEqual;":"\u227c","PrecedesTilde;":"\u227e","preceq;":"\u2aaf","precnapprox;":"\u2ab9","precneqq;":"\u2ab5","precnsim;":"\u22e8","precsim;":"\u227e","Prime;":"\u2033","prime;":"\u2032","primes;":"\u2119","prnap;":"\u2ab9","prnE;":"\u2ab5","prnsim;":"\u22e8","prod;":"\u220f","Product;":"\u220f","profalar;":"\u232e","profline;":"\u2312","profsurf;":"\u2313","prop;":"\u221d","Proportion;":"\u2237","Proportional;":"\u221d","propto;":"\u221d","prsim;":"\u227e","prurel;":"\u22b0","Pscr;":"\ud835\udcab","pscr;":"\ud835\udcc5","Psi;":"\u03a8","psi;":"\u03c8","puncsp;":"\u2008","Qfr;":"\ud835\udd14","qfr;":"\ud835\udd2e","qint;":"\u2a0c","Qopf;":"\u211a","qopf;":"\ud835\udd62","qprime;":"\u2057","Qscr;":"\ud835\udcac","qscr;":"\ud835\udcc6","quaternions;":"\u210d","quatint;":"\u2a16","quest;":"?","questeq;":"\u225f","QUOT;":'"',QUOT:'"',"quot;":'"',quot:'"',"rAarr;":"\u21db","race;":"\u223d\u0331","Racute;":"\u0154","racute;":"\u0155","radic;":"\u221a","raemptyv;":"\u29b3","Rang;":"\u27eb","rang;":"\u27e9","rangd;":"\u2992","range;":"\u29a5","rangle;":"\u27e9","raquo;":"\xbb",raquo:"\xbb","Rarr;":"\u21a0","rArr;":"\u21d2","rarr;":"\u2192","rarrap;":"\u2975","rarrb;":"\u21e5","rarrbfs;":"\u2920","rarrc;":"\u2933","rarrfs;":"\u291e","rarrhk;":"\u21aa","rarrlp;":"\u21ac","rarrpl;":"\u2945","rarrsim;":"\u2974","Rarrtl;":"\u2916","rarrtl;":"\u21a3","rarrw;":"\u219d","rAtail;":"\u291c","ratail;":"\u291a","ratio;":"\u2236","rationals;":"\u211a","RBarr;":"\u2910","rBarr;":"\u290f","rbarr;":"\u290d","rbbrk;":"\u2773","rbrace;":"}","rbrack;":"]","rbrke;":"\u298c","rbrksld;":"\u298e","rbrkslu;":"\u2990","Rcaron;":"\u0158","rcaron;":"\u0159","Rcedil;":"\u0156","rcedil;":"\u0157","rceil;":"\u2309","rcub;":"}","Rcy;":"\u0420","rcy;":"\u0440","rdca;":"\u2937","rdldhar;":"\u2969","rdquo;":"\u201d","rdquor;":"\u201d","rdsh;":"\u21b3","Re;":"\u211c","real;":"\u211c","realine;":"\u211b","realpart;":"\u211c","reals;":"\u211d","rect;":"\u25ad","REG;":"\xae",REG:"\xae","reg;":"\xae",reg:"\xae","ReverseElement;":"\u220b","ReverseEquilibrium;":"\u21cb","ReverseUpEquilibrium;":"\u296f","rfisht;":"\u297d","rfloor;":"\u230b","Rfr;":"\u211c","rfr;":"\ud835\udd2f","rHar;":"\u2964","rhard;":"\u21c1","rharu;":"\u21c0","rharul;":"\u296c","Rho;":"\u03a1","rho;":"\u03c1","rhov;":"\u03f1","RightAngleBracket;":"\u27e9","RightArrow;":"\u2192","Rightarrow;":"\u21d2","rightarrow;":"\u2192","RightArrowBar;":"\u21e5","RightArrowLeftArrow;":"\u21c4","rightarrowtail;":"\u21a3","RightCeiling;":"\u2309","RightDoubleBracket;":"\u27e7","RightDownTeeVector;":"\u295d","RightDownVector;":"\u21c2","RightDownVectorBar;":"\u2955","RightFloor;":"\u230b","rightharpoondown;":"\u21c1","rightharpoonup;":"\u21c0","rightleftarrows;":"\u21c4","rightleftharpoons;":"\u21cc","rightrightarrows;":"\u21c9","rightsquigarrow;":"\u219d","RightTee;":"\u22a2","RightTeeArrow;":"\u21a6","RightTeeVector;":"\u295b","rightthreetimes;":"\u22cc","RightTriangle;":"\u22b3","RightTriangleBar;":"\u29d0","RightTriangleEqual;":"\u22b5","RightUpDownVector;":"\u294f","RightUpTeeVector;":"\u295c","RightUpVector;":"\u21be","RightUpVectorBar;":"\u2954","RightVector;":"\u21c0","RightVectorBar;":"\u2953","ring;":"\u02da","risingdotseq;":"\u2253","rlarr;":"\u21c4","rlhar;":"\u21cc","rlm;":"\u200f","rmoust;":"\u23b1","rmoustache;":"\u23b1","rnmid;":"\u2aee","roang;":"\u27ed","roarr;":"\u21fe","robrk;":"\u27e7","ropar;":"\u2986","Ropf;":"\u211d","ropf;":"\ud835\udd63","roplus;":"\u2a2e","rotimes;":"\u2a35","RoundImplies;":"\u2970","rpar;":")","rpargt;":"\u2994","rppolint;":"\u2a12","rrarr;":"\u21c9","Rrightarrow;":"\u21db","rsaquo;":"\u203a","Rscr;":"\u211b","rscr;":"\ud835\udcc7","Rsh;":"\u21b1","rsh;":"\u21b1","rsqb;":"]","rsquo;":"\u2019","rsquor;":"\u2019","rthree;":"\u22cc","rtimes;":"\u22ca","rtri;":"\u25b9","rtrie;":"\u22b5","rtrif;":"\u25b8","rtriltri;":"\u29ce","RuleDelayed;":"\u29f4","ruluhar;":"\u2968","rx;":"\u211e","Sacute;":"\u015a","sacute;":"\u015b","sbquo;":"\u201a","Sc;":"\u2abc","sc;":"\u227b","scap;":"\u2ab8","Scaron;":"\u0160","scaron;":"\u0161","sccue;":"\u227d","scE;":"\u2ab4","sce;":"\u2ab0","Scedil;":"\u015e","scedil;":"\u015f","Scirc;":"\u015c","scirc;":"\u015d","scnap;":"\u2aba","scnE;":"\u2ab6","scnsim;":"\u22e9","scpolint;":"\u2a13","scsim;":"\u227f","Scy;":"\u0421","scy;":"\u0441","sdot;":"\u22c5","sdotb;":"\u22a1","sdote;":"\u2a66","searhk;":"\u2925","seArr;":"\u21d8","searr;":"\u2198","searrow;":"\u2198","sect;":"\xa7",sect:"\xa7","semi;":";","seswar;":"\u2929","setminus;":"\u2216","setmn;":"\u2216","sext;":"\u2736","Sfr;":"\ud835\udd16","sfr;":"\ud835\udd30","sfrown;":"\u2322","sharp;":"\u266f","SHCHcy;":"\u0429","shchcy;":"\u0449","SHcy;":"\u0428","shcy;":"\u0448","ShortDownArrow;":"\u2193","ShortLeftArrow;":"\u2190","shortmid;":"\u2223","shortparallel;":"\u2225","ShortRightArrow;":"\u2192","ShortUpArrow;":"\u2191","shy;":"\xad",shy:"\xad","Sigma;":"\u03a3","sigma;":"\u03c3","sigmaf;":"\u03c2","sigmav;":"\u03c2","sim;":"\u223c","simdot;":"\u2a6a","sime;":"\u2243","simeq;":"\u2243","simg;":"\u2a9e","simgE;":"\u2aa0","siml;":"\u2a9d","simlE;":"\u2a9f","simne;":"\u2246","simplus;":"\u2a24","simrarr;":"\u2972","slarr;":"\u2190","SmallCircle;":"\u2218","smallsetminus;":"\u2216","smashp;":"\u2a33","smeparsl;":"\u29e4","smid;":"\u2223","smile;":"\u2323","smt;":"\u2aaa","smte;":"\u2aac","smtes;":"\u2aac\ufe00","SOFTcy;":"\u042c","softcy;":"\u044c","sol;":"/","solb;":"\u29c4","solbar;":"\u233f","Sopf;":"\ud835\udd4a","sopf;":"\ud835\udd64","spades;":"\u2660","spadesuit;":"\u2660","spar;":"\u2225","sqcap;":"\u2293","sqcaps;":"\u2293\ufe00","sqcup;":"\u2294","sqcups;":"\u2294\ufe00","Sqrt;":"\u221a","sqsub;":"\u228f","sqsube;":"\u2291","sqsubset;":"\u228f","sqsubseteq;":"\u2291","sqsup;":"\u2290","sqsupe;":"\u2292","sqsupset;":"\u2290","sqsupseteq;":"\u2292","squ;":"\u25a1","Square;":"\u25a1","square;":"\u25a1","SquareIntersection;":"\u2293","SquareSubset;":"\u228f","SquareSubsetEqual;":"\u2291","SquareSuperset;":"\u2290","SquareSupersetEqual;":"\u2292","SquareUnion;":"\u2294","squarf;":"\u25aa","squf;":"\u25aa","srarr;":"\u2192","Sscr;":"\ud835\udcae","sscr;":"\ud835\udcc8","ssetmn;":"\u2216","ssmile;":"\u2323","sstarf;":"\u22c6","Star;":"\u22c6","star;":"\u2606","starf;":"\u2605","straightepsilon;":"\u03f5","straightphi;":"\u03d5","strns;":"\xaf","Sub;":"\u22d0","sub;":"\u2282","subdot;":"\u2abd","subE;":"\u2ac5","sube;":"\u2286","subedot;":"\u2ac3","submult;":"\u2ac1","subnE;":"\u2acb","subne;":"\u228a","subplus;":"\u2abf","subrarr;":"\u2979","Subset;":"\u22d0","subset;":"\u2282","subseteq;":"\u2286","subseteqq;":"\u2ac5","SubsetEqual;":"\u2286","subsetneq;":"\u228a","subsetneqq;":"\u2acb","subsim;":"\u2ac7","subsub;":"\u2ad5","subsup;":"\u2ad3","succ;":"\u227b","succapprox;":"\u2ab8","succcurlyeq;":"\u227d","Succeeds;":"\u227b","SucceedsEqual;":"\u2ab0","SucceedsSlantEqual;":"\u227d","SucceedsTilde;":"\u227f","succeq;":"\u2ab0","succnapprox;":"\u2aba","succneqq;":"\u2ab6","succnsim;":"\u22e9","succsim;":"\u227f","SuchThat;":"\u220b","Sum;":"\u2211","sum;":"\u2211","sung;":"\u266a","Sup;":"\u22d1","sup;":"\u2283","sup1;":"\xb9",sup1:"\xb9","sup2;":"\xb2",sup2:"\xb2","sup3;":"\xb3",sup3:"\xb3","supdot;":"\u2abe","supdsub;":"\u2ad8","supE;":"\u2ac6","supe;":"\u2287","supedot;":"\u2ac4","Superset;":"\u2283","SupersetEqual;":"\u2287","suphsol;":"\u27c9","suphsub;":"\u2ad7","suplarr;":"\u297b","supmult;":"\u2ac2","supnE;":"\u2acc","supne;":"\u228b","supplus;":"\u2ac0","Supset;":"\u22d1","supset;":"\u2283","supseteq;":"\u2287","supseteqq;":"\u2ac6","supsetneq;":"\u228b","supsetneqq;":"\u2acc","supsim;":"\u2ac8","supsub;":"\u2ad4","supsup;":"\u2ad6","swarhk;":"\u2926","swArr;":"\u21d9","swarr;":"\u2199","swarrow;":"\u2199","swnwar;":"\u292a","szlig;":"\xdf",szlig:"\xdf","Tab;":"\t","target;":"\u2316","Tau;":"\u03a4","tau;":"\u03c4","tbrk;":"\u23b4","Tcaron;":"\u0164","tcaron;":"\u0165","Tcedil;":"\u0162","tcedil;":"\u0163","Tcy;":"\u0422","tcy;":"\u0442","tdot;":"\u20db","telrec;":"\u2315","Tfr;":"\ud835\udd17","tfr;":"\ud835\udd31","there4;":"\u2234","Therefore;":"\u2234","therefore;":"\u2234","Theta;":"\u0398","theta;":"\u03b8","thetasym;":"\u03d1","thetav;":"\u03d1","thickapprox;":"\u2248","thicksim;":"\u223c","ThickSpace;":"\u205f\u200a","thinsp;":"\u2009","ThinSpace;":"\u2009","thkap;":"\u2248","thksim;":"\u223c","THORN;":"\xde",THORN:"\xde","thorn;":"\xfe",thorn:"\xfe","Tilde;":"\u223c","tilde;":"\u02dc","TildeEqual;":"\u2243","TildeFullEqual;":"\u2245","TildeTilde;":"\u2248","times;":"\xd7",times:"\xd7","timesb;":"\u22a0","timesbar;":"\u2a31","timesd;":"\u2a30","tint;":"\u222d","toea;":"\u2928","top;":"\u22a4","topbot;":"\u2336","topcir;":"\u2af1","Topf;":"\ud835\udd4b","topf;":"\ud835\udd65","topfork;":"\u2ada","tosa;":"\u2929","tprime;":"\u2034","TRADE;":"\u2122","trade;":"\u2122","triangle;":"\u25b5","triangledown;":"\u25bf","triangleleft;":"\u25c3","trianglelefteq;":"\u22b4","triangleq;":"\u225c","triangleright;":"\u25b9","trianglerighteq;":"\u22b5","tridot;":"\u25ec","trie;":"\u225c","triminus;":"\u2a3a","TripleDot;":"\u20db","triplus;":"\u2a39","trisb;":"\u29cd","tritime;":"\u2a3b","trpezium;":"\u23e2","Tscr;":"\ud835\udcaf","tscr;":"\ud835\udcc9","TScy;":"\u0426","tscy;":"\u0446","TSHcy;":"\u040b","tshcy;":"\u045b","Tstrok;":"\u0166","tstrok;":"\u0167","twixt;":"\u226c","twoheadleftarrow;":"\u219e","twoheadrightarrow;":"\u21a0","Uacute;":"\xda",Uacute:"\xda","uacute;":"\xfa",uacute:"\xfa","Uarr;":"\u219f","uArr;":"\u21d1","uarr;":"\u2191","Uarrocir;":"\u2949","Ubrcy;":"\u040e","ubrcy;":"\u045e","Ubreve;":"\u016c","ubreve;":"\u016d","Ucirc;":"\xdb",Ucirc:"\xdb","ucirc;":"\xfb",ucirc:"\xfb","Ucy;":"\u0423","ucy;":"\u0443","udarr;":"\u21c5","Udblac;":"\u0170","udblac;":"\u0171","udhar;":"\u296e","ufisht;":"\u297e","Ufr;":"\ud835\udd18","ufr;":"\ud835\udd32","Ugrave;":"\xd9",Ugrave:"\xd9","ugrave;":"\xf9",ugrave:"\xf9","uHar;":"\u2963","uharl;":"\u21bf","uharr;":"\u21be","uhblk;":"\u2580","ulcorn;":"\u231c","ulcorner;":"\u231c","ulcrop;":"\u230f","ultri;":"\u25f8","Umacr;":"\u016a","umacr;":"\u016b","uml;":"\xa8",uml:"\xa8","UnderBar;":"_","UnderBrace;":"\u23df","UnderBracket;":"\u23b5","UnderParenthesis;":"\u23dd","Union;":"\u22c3","UnionPlus;":"\u228e","Uogon;":"\u0172","uogon;":"\u0173","Uopf;":"\ud835\udd4c","uopf;":"\ud835\udd66","UpArrow;":"\u2191","Uparrow;":"\u21d1","uparrow;":"\u2191","UpArrowBar;":"\u2912","UpArrowDownArrow;":"\u21c5","UpDownArrow;":"\u2195","Updownarrow;":"\u21d5","updownarrow;":"\u2195","UpEquilibrium;":"\u296e","upharpoonleft;":"\u21bf","upharpoonright;":"\u21be","uplus;":"\u228e","UpperLeftArrow;":"\u2196","UpperRightArrow;":"\u2197","Upsi;":"\u03d2","upsi;":"\u03c5","upsih;":"\u03d2","Upsilon;":"\u03a5","upsilon;":"\u03c5","UpTee;":"\u22a5","UpTeeArrow;":"\u21a5","upuparrows;":"\u21c8","urcorn;":"\u231d","urcorner;":"\u231d","urcrop;":"\u230e","Uring;":"\u016e","uring;":"\u016f","urtri;":"\u25f9","Uscr;":"\ud835\udcb0","uscr;":"\ud835\udcca","utdot;":"\u22f0","Utilde;":"\u0168","utilde;":"\u0169","utri;":"\u25b5","utrif;":"\u25b4","uuarr;":"\u21c8","Uuml;":"\xdc",Uuml:"\xdc","uuml;":"\xfc",uuml:"\xfc","uwangle;":"\u29a7","vangrt;":"\u299c","varepsilon;":"\u03f5","varkappa;":"\u03f0","varnothing;":"\u2205","varphi;":"\u03d5","varpi;":"\u03d6","varpropto;":"\u221d","vArr;":"\u21d5","varr;":"\u2195","varrho;":"\u03f1","varsigma;":"\u03c2","varsubsetneq;":"\u228a\ufe00","varsubsetneqq;":"\u2acb\ufe00","varsupsetneq;":"\u228b\ufe00","varsupsetneqq;":"\u2acc\ufe00","vartheta;":"\u03d1","vartriangleleft;":"\u22b2","vartriangleright;":"\u22b3","Vbar;":"\u2aeb","vBar;":"\u2ae8","vBarv;":"\u2ae9","Vcy;":"\u0412","vcy;":"\u0432","VDash;":"\u22ab","Vdash;":"\u22a9","vDash;":"\u22a8","vdash;":"\u22a2","Vdashl;":"\u2ae6","Vee;":"\u22c1","vee;":"\u2228","veebar;":"\u22bb","veeeq;":"\u225a","vellip;":"\u22ee","Verbar;":"\u2016","verbar;":"|","Vert;":"\u2016","vert;":"|","VerticalBar;":"\u2223","VerticalLine;":"|","VerticalSeparator;":"\u2758","VerticalTilde;":"\u2240","VeryThinSpace;":"\u200a","Vfr;":"\ud835\udd19","vfr;":"\ud835\udd33","vltri;":"\u22b2","vnsub;":"\u2282\u20d2","vnsup;":"\u2283\u20d2","Vopf;":"\ud835\udd4d","vopf;":"\ud835\udd67","vprop;":"\u221d","vrtri;":"\u22b3","Vscr;":"\ud835\udcb1","vscr;":"\ud835\udccb","vsubnE;":"\u2acb\ufe00","vsubne;":"\u228a\ufe00","vsupnE;":"\u2acc\ufe00","vsupne;":"\u228b\ufe00","Vvdash;":"\u22aa","vzigzag;":"\u299a","Wcirc;":"\u0174","wcirc;":"\u0175","wedbar;":"\u2a5f","Wedge;":"\u22c0","wedge;":"\u2227","wedgeq;":"\u2259","weierp;":"\u2118","Wfr;":"\ud835\udd1a","wfr;":"\ud835\udd34","Wopf;":"\ud835\udd4e","wopf;":"\ud835\udd68","wp;":"\u2118","wr;":"\u2240","wreath;":"\u2240","Wscr;":"\ud835\udcb2","wscr;":"\ud835\udccc","xcap;":"\u22c2","xcirc;":"\u25ef","xcup;":"\u22c3","xdtri;":"\u25bd","Xfr;":"\ud835\udd1b","xfr;":"\ud835\udd35","xhArr;":"\u27fa","xharr;":"\u27f7","Xi;":"\u039e","xi;":"\u03be","xlArr;":"\u27f8","xlarr;":"\u27f5","xmap;":"\u27fc","xnis;":"\u22fb","xodot;":"\u2a00","Xopf;":"\ud835\udd4f","xopf;":"\ud835\udd69","xoplus;":"\u2a01","xotime;":"\u2a02","xrArr;":"\u27f9","xrarr;":"\u27f6","Xscr;":"\ud835\udcb3","xscr;":"\ud835\udccd","xsqcup;":"\u2a06","xuplus;":"\u2a04","xutri;":"\u25b3","xvee;":"\u22c1","xwedge;":"\u22c0","Yacute;":"\xdd",Yacute:"\xdd","yacute;":"\xfd",yacute:"\xfd","YAcy;":"\u042f","yacy;":"\u044f","Ycirc;":"\u0176","ycirc;":"\u0177","Ycy;":"\u042b","ycy;":"\u044b","yen;":"\xa5",yen:"\xa5","Yfr;":"\ud835\udd1c","yfr;":"\ud835\udd36","YIcy;":"\u0407","yicy;":"\u0457","Yopf;":"\ud835\udd50","yopf;":"\ud835\udd6a","Yscr;":"\ud835\udcb4","yscr;":"\ud835\udcce","YUcy;":"\u042e","yucy;":"\u044e","Yuml;":"\u0178","yuml;":"\xff",yuml:"\xff","Zacute;":"\u0179","zacute;":"\u017a","Zcaron;":"\u017d","zcaron;":"\u017e","Zcy;":"\u0417","zcy;":"\u0437","Zdot;":"\u017b","zdot;":"\u017c","zeetrf;":"\u2128","ZeroWidthSpace;":"\u200b","Zeta;":"\u0396","zeta;":"\u03b6","Zfr;":"\u2128","zfr;":"\ud835\udd37","ZHcy;":"\u0416","zhcy;":"\u0436","zigrarr;":"\u21dd","Zopf;":"\u2124","zopf;":"\ud835\udd6b","Zscr;":"\ud835\udcb5","zscr;":"\ud835\udccf","zwj;":"\u200d","zwnj;":"\u200c"};function _n(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function bn(e,t){const n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function vn(e,t){let n="";for(;t>0;)1===(1&t)&&(n+=e),e+=e,t>>>=1;return n}var wn="a".charCodeAt(0),kn="z".charCodeAt(0),yn="A".charCodeAt(0),Tn="Z".charCodeAt(0),Cn="0".charCodeAt(0),Sn="9".charCodeAt(0);function Ln(e,t){const n=e.charCodeAt(t);return wn<=n&&n<=kn||yn<=n&&n<=Tn||Cn<=n&&n<=Sn}function xn(e){return"undefined"!==typeof e}var En=class{isApplicable(){return!0}constructor(e,t){this.id=e,this._tags=[],this._tagMap={},this._valueSetMap={},this._tags=t.tags||[],this._globalAttributes=t.globalAttributes||[],this._tags.forEach((e=>{this._tagMap[e.name.toLowerCase()]=e})),t.valueSets&&t.valueSets.forEach((e=>{this._valueSetMap[e.name]=e.values}))}getId(){return this.id}provideTags(){return this._tags}provideAttributes(e){const t=[],n=e=>{t.push(e)},i=this._tagMap[e.toLowerCase()];return i&&i.attributes.forEach(n),this._globalAttributes.forEach(n),t}provideValues(e,t){const n=[];t=t.toLowerCase();const i=e=>{e.forEach((e=>{e.name.toLowerCase()===t&&(e.values&&e.values.forEach((e=>{n.push(e)})),e.valueSet&&this._valueSetMap[e.valueSet]&&this._valueSetMap[e.valueSet].forEach((e=>{n.push(e)})))}))},r=this._tagMap[e.toLowerCase()];return r&&i(r.attributes),i(this._globalAttributes),n}};function An(e,t={},n){const i={kind:n?"markdown":"plaintext",value:""};if(e.description&&!1!==t.documentation){const t=function(e){if(e)return"string"===typeof e?{kind:"markdown",value:e}:{kind:"markdown",value:e.value}}(e.description);t&&(i.value+=t.value)}if(e.references&&e.references.length>0&&!1!==t.references&&(i.value.length&&(i.value+="\n\n"),i.value+=n?e.references.map((e=>`[${e.name}](${e.url})`)).join(" | "):e.references.map((e=>`${e.name}: ${e.url}`)).join("\n")),""!==i.value)return i}var In=class{constructor(e,t){this.dataManager=e,this.readDirectory=t,this.atributeCompletions=[]}onHtmlAttributeValue(e){this.dataManager.isPathAttribute(e.tag,e.attribute)&&this.atributeCompletions.push(e)}async computeCompletions(e,t){const n={items:[],isIncomplete:!1};for(const i of this.atributeCompletions){const r=Nn(e.getText(i.range));if(Rn(r))if("."===r||".."===r)n.isIncomplete=!0;else{const s=Dn(i.value,r,i.range),o=await this.providePathSuggestions(i.value,s,e,t);for(const e of o)n.items.push(e)}}return n}async providePathSuggestions(e,t,n,i){const r=e.substring(0,e.lastIndexOf("/")+1);let s=i.resolveReference(r||".",n.uri);if(s)try{const e=[],n=await this.readDirectory(s);for(const[i,r]of n)i.charCodeAt(0)!==Mn&&e.push(On(i,r===qt.Directory,t));return e}catch(o){}return[]}},Mn=".".charCodeAt(0);function Nn(e){return _n(e,"'")||_n(e,'"')?e.slice(1,-1):e}function Rn(e){return!(_n(e,"http")||_n(e,"https")||_n(e,"//"))}function Dn(e,t,n){let i;const r=e.lastIndexOf("/");if(-1===r)i=function(e,t,n){const i=Bn(e.start,t),r=Bn(e.end,n);return m.create(i,r)}(n,1,-1);else{const e=t.slice(r+1),s=Bn(n.end,-1-e.length),o=e.indexOf(" ");let a;a=-1!==o?Bn(s,o):Bn(n.end,-1),i=m.create(s,a)}return i}function On(e,t,n){return t?{label:e+="/",kind:me.Folder,textEdit:U.replace(n,e),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:e,kind:me.File,textEdit:U.replace(n,e)}}function Bn(e,t){return g.create(e.line,e.character+t)}var zn=class{constructor(e,t){this.lsOptions=e,this.dataManager=t,this.completionParticipants=[]}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,t,n,i,r){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,t,n,r);const s=new In(this.dataManager,this.lsOptions.fileSystemProvider.readDirectory),o=this.completionParticipants;this.completionParticipants=[s].concat(o);const a=this.doComplete(e,t,n,r);try{const t=await s.computeCompletions(e,i);return{isIncomplete:a.isIncomplete||t.isIncomplete,items:t.items.concat(a.items)}}finally{this.completionParticipants=o}}doComplete(e,t,n,i){const r=this._doComplete(e,t,n,i);return this.convertCompletionList(r)}_doComplete(e,t,n,i){const r={isIncomplete:!1,items:[]},s=this.completionParticipants,a=this.dataManager.getDataProviders().filter((t=>t.isApplicable(e.languageId)&&(!i||!1!==i[t.getId()]))),l=this.dataManager.getVoidElements(a),h=this.doesSupportMarkdown(),c=e.getText(),d=e.offsetAt(t),u=n.findNodeBefore(d);if(!u)return r;const f=un(c,u.start);let p,_="";function b(t,n=d){return t>d&&(t=d),{start:e.positionAt(t),end:e.positionAt(n)}}function v(e,t){const n=b(e,t);return a.forEach((e=>{e.provideTags().forEach((e=>{r.items.push({label:e.name,kind:me.Property,documentation:An(e,void 0,h),textEdit:U.replace(n,e.name),insertTextFormat:_e.PlainText})}))})),r}function w(e){let t=e;for(;t>0;){const n=c.charAt(t-1);if("\n\r".indexOf(n)>=0)return c.substring(t,e);if(!Pn(n))return null;t--}return c.substring(0,e)}function k(e,t,n=d){const i=b(e,n),s=Fn(c,n,Wt.WithinEndTag,Pt.EndTagClose)?"":">";let o=u;for(t&&(o=o.parent);o;){const t=o.tag;if(t&&(!o.closed||o.endTagStart&&o.endTagStart>d)){const n={label:"/"+t,kind:me.Property,filterText:"/"+t,textEdit:U.replace(i,"/"+t+s),insertTextFormat:_e.PlainText},a=w(o.start),l=w(e-1);if(null!==a&&null!==l&&a!==l){const i=a+"</"+t+s;n.textEdit=U.replace(b(e-1-l.length),i),n.filterText=l+"</"+t}return r.items.push(n),r}o=o.parent}return t||a.forEach((e=>{e.provideTags().forEach((e=>{r.items.push({label:"/"+e.name,kind:me.Property,documentation:An(e,void 0,h),filterText:"/"+e.name+s,textEdit:U.replace(i,"/"+e.name+s),insertTextFormat:_e.PlainText})}))})),r}const y=(t,n)=>{if(i&&i.hideAutoCompleteProposals)return r;if(!this.dataManager.isVoidElement(n,l)){const i=e.positionAt(t);r.items.push({label:"</"+n+">",kind:me.Property,filterText:"</"+n+">",textEdit:U.insert(i,"$0</"+n+">"),insertTextFormat:_e.Snippet})}return r};function T(e,t){return v(e,t),k(e,!0,t),r}function C(e,t=d){let s=d;for(;s<t&&"<"!==c[s];)s++;const o=c.substring(e,t),l=b(e,s);let g="";if(!Fn(c,t,Wt.AfterAttributeName,Pt.DelimiterAssign)){const e=i?.attributeDefaultValue??"doublequotes";g="empty"===e?"=$1":"singlequotes"===e?"='$1'":'="$1"'}const f=function(){const e=Object.create(null);return u.attributeNames.forEach((t=>{e[t]=!0})),e}();return f[o]=!1,a.forEach((e=>{e.provideAttributes(_).forEach((e=>{if(f[e.name])return;f[e.name]=!0;let t,n=e.name;"v"!==e.valueSet&&g.length&&(n+=g,(e.valueSet||"style"===e.name)&&(t={title:"Suggest",command:"editor.action.triggerSuggest"})),r.items.push({label:e.name,kind:"handler"===e.valueSet?me.Function:me.Value,documentation:An(e,void 0,h),textEdit:U.replace(l,n),insertTextFormat:_e.Snippet,command:t})}))})),function(e,t){const i="data-",s={};function o(e){e.attributeNames.forEach((e=>{!_n(e,i)||s[e]||t[e]||(s[e]=e+'="$1"')})),e.children.forEach((e=>o(e)))}s[i]=`${i}$1="$2"`,n&&n.roots.forEach((e=>o(e)));Object.keys(s).forEach((t=>r.items.push({label:t,kind:me.Value,textEdit:U.replace(e,s[t]),insertTextFormat:_e.Snippet})))}(l,f),r}function S(n,i=d){let o,l,u;if(d>n&&d<=i&&(g=c[n],/^["']*$/.test(g))){const e=n+1;let t=i;i>n&&c[i-1]===c[n]&&t--;const r=function(e,t,n){for(;t>n&&!Pn(e[t-1]);)t--;return t}(c,d,e),s=function(e,t,n){for(;t<n&&!Pn(e[t]);)t++;return t}(c,d,t);o=b(r,s),u=d>=e&&d<=t?c.substring(e,d):"",l=!1}else o=b(n,i),u=c.substring(n,d),l=!0;var g;if(s.length>0){const r=_.toLowerCase(),o=p.toLowerCase(),a=b(n,i);for(const n of s)n.onHtmlAttributeValue&&n.onHtmlAttributeValue({document:e,position:t,tag:r,attribute:o,value:u,range:a})}return a.forEach((e=>{e.provideValues(_,p).forEach((e=>{const t=l?'"'+e.name+'"':e.name;r.items.push({label:e.name,filterText:t,kind:me.Unit,documentation:An(e,void 0,h),textEdit:U.replace(o,t),insertTextFormat:_e.PlainText})}))})),E(),r}function L(e){return d===f.getTokenEnd()&&(I=f.scan(),I===e&&f.getTokenOffset()===d)?f.getTokenEnd():d}function x(){for(const n of s)n.onHtmlContent&&n.onHtmlContent({document:e,position:t});return E()}function E(){let e=d-1,n=t.character;for(;e>=0&&Ln(c,e);)e--,n--;if(e>=0&&"&"===c[e]){const e=m.create(g.create(t.line,n-1),t);for(const t in pn)if(bn(t,";")){const n="&"+t;r.items.push({label:n,kind:me.Keyword,documentation:o("Character entity representing '{0}'",pn[t]),textEdit:U.replace(e,n),insertTextFormat:_e.PlainText})}}return r}function A(e,t){const n=b(e,t);r.items.push({label:"!DOCTYPE",kind:me.Property,documentation:"A preamble for an HTML document.",textEdit:U.replace(n,"!DOCTYPE html>"),insertTextFormat:_e.PlainText})}let I=f.scan();for(;I!==Pt.EOS&&f.getTokenOffset()<=d;){switch(I){case Pt.StartTagOpen:if(f.getTokenEnd()===d){const e=L(Pt.StartTag);return 0===t.line&&A(d,e),T(d,e)}break;case Pt.StartTag:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return v(f.getTokenOffset(),f.getTokenEnd());_=f.getTokenText();break;case Pt.AttributeName:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return C(f.getTokenOffset(),f.getTokenEnd());p=f.getTokenText();break;case Pt.DelimiterAssign:if(f.getTokenEnd()===d){const e=L(Pt.AttributeValue);return S(d,e)}break;case Pt.AttributeValue:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return S(f.getTokenOffset(),f.getTokenEnd());break;case Pt.Whitespace:if(d<=f.getTokenEnd())switch(f.getScannerState()){case Wt.AfterOpeningStartTag:return T(f.getTokenOffset(),L(Pt.StartTag));case Wt.WithinTag:case Wt.AfterAttributeName:return C(f.getTokenEnd());case Wt.BeforeAttributeValue:return S(f.getTokenEnd());case Wt.AfterOpeningEndTag:return k(f.getTokenOffset()-1,!1);case Wt.WithinContent:return x()}break;case Pt.EndTagOpen:if(d<=f.getTokenEnd()){return k(f.getTokenOffset()+1,!1,L(Pt.EndTag))}break;case Pt.EndTag:if(d<=f.getTokenEnd()){let e=f.getTokenOffset()-1;for(;e>=0;){const t=c.charAt(e);if("/"===t)return k(e,!1,f.getTokenEnd());if(!Pn(t))break;e--}}break;case Pt.StartTagClose:if(d<=f.getTokenEnd()&&_)return y(f.getTokenEnd(),_);break;case Pt.Content:if(d<=f.getTokenEnd())return x();break;default:if(d<=f.getTokenEnd())return r}I=f.scan()}return r}doQuoteComplete(e,t,n,i){const r=e.offsetAt(t);if(r<=0)return null;const s=i?.attributeDefaultValue??"doublequotes";if("empty"===s)return null;if("="!==e.getText().charAt(r-1))return null;const o="doublequotes"===s?'"$1"':"'$1'",a=n.findNodeBefore(r);if(a&&a.attributes&&a.start<r&&(!a.endTagStart||a.endTagStart>r)){const t=un(e.getText(),a.start);let n=t.scan();for(;n!==Pt.EOS&&t.getTokenEnd()<=r;){if(n===Pt.AttributeName&&t.getTokenEnd()===r-1)return n=t.scan(),n!==Pt.DelimiterAssign?null:(n=t.scan(),n===Pt.Unknown||n===Pt.AttributeValue?null:o);n=t.scan()}}return null}doTagComplete(e,t,n){const i=e.offsetAt(t);if(i<=0)return null;const r=e.getText().charAt(i-1);if(">"===r){const t=this.dataManager.getVoidElements(e.languageId),r=n.findNodeBefore(i);if(r&&r.tag&&!this.dataManager.isVoidElement(r.tag,t)&&r.start<i&&(!r.endTagStart||r.endTagStart>i)){const t=un(e.getText(),r.start);let n=t.scan();for(;n!==Pt.EOS&&t.getTokenEnd()<=i;){if(n===Pt.StartTagClose&&t.getTokenEnd()===i)return`$0</${r.tag}>`;n=t.scan()}}}else if("/"===r){let t=n.findNodeBefore(i);for(;t&&t.closed&&!(t.endTagStart&&t.endTagStart>i);)t=t.parent;if(t&&t.tag){const n=un(e.getText(),t.start);let r=n.scan();for(;r!==Pt.EOS&&n.getTokenEnd()<=i;){if(r===Pt.EndTagOpen&&n.getTokenEnd()===i)return">"!==e.getText().charAt(i)?`${t.tag}>`:t.tag;r=n.scan()}}}return null}convertCompletionList(e){return this.doesSupportMarkdown()||e.items.forEach((e=>{e.documentation&&"string"!==typeof e.documentation&&(e.documentation={kind:"plaintext",value:e.documentation.value})})),e}doesSupportMarkdown(){if(!xn(this.supportsMarkdown)){if(!xn(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(ue.Markdown)}return this.supportsMarkdown}};function Pn(e){return/^\s*$/.test(e)}function Fn(e,t,n,i){const r=un(e,t,n);let s=r.scan();for(;s===Pt.Whitespace;)s=r.scan();return s===i}var Wn,Hn=class{constructor(e,t){this.lsOptions=e,this.dataManager=t}doHover(e,t,n,i){const r=this.convertContents.bind(this),s=this.doesSupportMarkdown(),a=e.offsetAt(t),l=n.findNodeAt(a),h=e.getText();if(!l||!l.tag)return null;const c=this.dataManager.getDataProviders().filter((t=>t.isApplicable(e.languageId)));function d(e,t,n){for(const o of c){let n=null;if(o.provideTags().forEach((r=>{if(r.name.toLowerCase()===e.toLowerCase()){let e=An(r,i,s);e||(e={kind:s?"markdown":"plaintext",value:""}),n={contents:e,range:t}}})),n)return n.contents=r(n.contents),n}return null}function u(t,n){const i=un(e.getText(),n);let r=i.scan();for(;r!==Pt.EOS&&(i.getTokenEnd()<a||i.getTokenEnd()===a&&r!==t);)r=i.scan();return r===t&&a<=i.getTokenEnd()?{start:e.positionAt(i.getTokenOffset()),end:e.positionAt(i.getTokenEnd())}:null}if(l.endTagStart&&a>=l.endTagStart){const e=u(Pt.EndTag,l.endTagStart);return e?d(l.tag,e):null}const f=u(Pt.StartTag,l.start);if(f)return d(l.tag,f);const p=u(Pt.AttributeName,l.start);if(p){return function(e,t,n){for(const o of c){let a=null;if(o.provideAttributes(e).forEach((e=>{if(t===e.name&&e.description){const t=An(e,i,s);a=t?{contents:t,range:n}:null}})),a)return a.contents=r(a.contents),a}return null}(l.tag,e.getText(p),p)}const _=function(){let e=a-1,n=t.character;for(;e>=0&&Ln(h,e);)e--,n--;let i=e+1,r=n;for(;Ln(h,i);)i++,r++;if(e>=0&&"&"===h[e]){let e=null;return e=";"===h[i]?m.create(g.create(t.line,n),g.create(t.line,r+1)):m.create(g.create(t.line,n),g.create(t.line,r)),e}return null}();if(_)return function(e,t){let n=function(e){let t=a-1,n="&";for(;t>=0&&Ln(e,t);)t--;for(t+=1;Ln(e,t);)n+=e[t],t+=1;return n+=";",n}(e);for(const i in pn){let e=null;if(n==="&"+i){let n=pn[i].charCodeAt(0).toString(16).toUpperCase(),r="U+";if(n.length<4){const e=4-n.length;let t=0;for(;t<e;)r+="0",t+=1}r+=n;const s=o("Character entity representing '{0}', unicode equivalent '{1}'",pn[i],r);e=s?{contents:s,range:t}:null}if(e)return e.contents=r(e.contents),e}return null}(h,_);const b=u(Pt.AttributeValue,l.start);if(b){const t=l.tag,n=function(e){if(e.length<=1)return e.replace(/['"]/,"");"'"!==e[0]&&'"'!==e[0]||(e=e.slice(1));"'"!==e[e.length-1]&&'"'!==e[e.length-1]||(e=e.slice(0,-1));return e}(e.getText(b)),o=function(t,n){const i=un(e.getText(),t);let r,s=i.scan();for(;s!==Pt.EOS&&i.getTokenEnd()<=n;)s=i.scan(),s===Pt.AttributeName&&(r=i.getTokenText());return r}(l.start,e.offsetAt(b.start));if(o)return function(e,t,n,o){for(const a of c){let l=null;if(a.provideValues(e,t).forEach((e=>{if(n===e.name&&e.description){const t=An(e,i,s);l=t?{contents:t,range:o}:null}})),l)return l.contents=r(l.contents),l}return null}(t,o,n,b)}return null}convertContents(e){if(!this.doesSupportMarkdown()){if("string"===typeof e)return e;if("kind"in e)return{kind:"plaintext",value:e.value};if(!Array.isArray(e))return e.value;e.map((e=>"string"===typeof e?e:e.value))}return e}doesSupportMarkdown(){if(!xn(this.supportsMarkdown)){if(!xn(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities?.textDocument?.hover?.contentFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(ue.Markdown)}return this.supportsMarkdown}};function Un(e,t){return e}!function(){var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},,,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"===typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},,function(e,t,n){var i=n(16).Beautifier,r=n(17).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(17).Options,r=n(2).Output,s=n(8).InputScanner,o=new(0,n(13).Directives)(/\/\*/,/\*\//),a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,h=/\s/,c=/(?:\s|\n)+/g,d=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,u=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function g(e,t){this._source_text=e||"",this._options=new i(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}g.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},g.prototype.eatWhitespace=function(e){for(var t=h.test(this._input.peek()),n=0;h.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t},g.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if("{"===n)return!0;if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)return!1;t++,n=this._input.peek(t)}return!1},g.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},g.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},g.prototype.indent=function(){this._indentLevel++},g.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},g.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&a.test(e||"")&&(t=e.match(a)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new s(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,g,f=0,m=!1,p=!1,_=!1,b=!1,v=!1,w=this._ch,k=!1;i=""!==this._input.read(c),g=w,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var y=this._input.read(d),T=o.get_directives(y);T&&"start"===T.ignore&&(y+=o.readIgnored(this._input)),this.print_string(y),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(u)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(i),this.print_string(this._ch);var C=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);C.match(/[ :]$/)&&(C=this.eatString(": ").replace(/\s+$/,""),this.print_string(C),this._output.space_before_token=!0),0===f&&-1!==C.indexOf(":")&&(p=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s+$/,""),this.print_string(S),this._output.space_before_token=!0),0===f&&-1!==S.indexOf(":")?(p=!0,this.indent()):S in this.NESTED_AT_RULE?(this._nestedLevel+=1,S in this.CONDITIONAL_GROUP_RULE&&(_=!0)):0!==f||p||(b=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)p&&(p=!1,this.outdent()),b=!1,_?(_=!1,m=this._indentLevel>=this._nestedLevel):m=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&m&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===g?this._output.space_before_token=!1:","!==g&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===g&&this._output.trim(!0),p&&(this.outdent(),p=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var L=0;L<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;L++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[L])){k=!0;break}!m&&!_||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||b||0!==f?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),p||(p=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var x='"'===g||"'"===g;this.preserveSingleSpace(x||i),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)k=!1,0===f?(p&&(this.outdent(),p=!1),b=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),f++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),f&&(f--,this.outdent()));else{var E=!1;this._input.lookBack("with")&&(E=!0),this.preserveSingleSpace(i||E),this.print_string(this._ch),p&&"$"===g&&this._options.selector_separator_newline?(this._output.add_new_line(),v=!0):(this.eatWhitespace(),f++,this.indent())}else if(")"===this._ch)f&&(f--,this.outdent()),v&&";"===this._input.peek()&&this._options.selector_separator_newline&&(v=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||p&&!v||0!==f||b?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||p||0!==f)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(i),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),h.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var A='"'===g||"'"===g;this.preserveSingleSpace(A||i),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&k&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&h.test(this._ch)&&(this._ch=""));return this._output.get_code(t)},e.exports.Beautifier=g},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r<n.length;r++)"expand"!==n[r]?this.brace_style="collapse":this.brace_style=n[r]}r.prototype=new i,e.exports.Options=r}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}(15);Wn=n}();var qn,Vn,jn=Wn;function Gn(e,t,n){let i=e.getText(),r=!0,s=0;const o=n.tabSize||4;if(t){let o=e.offsetAt(t.start),a=o;for(;a>0&&Xn(i,a-1);)a--;0===a||Yn(i,a-1)?o=a:a<o&&(o=a+1);let l=e.offsetAt(t.end),h=l;for(;h<i.length&&Xn(i,h);)h++;(h===i.length||Yn(i,h))&&(l=h),t=m.create(e.positionAt(o),e.positionAt(l));const c=i.substring(0,o);if(new RegExp(/.*[<][^>]*$/).test(c))return i=i.substring(o,l),[{range:t,newText:i}];if(r=l===i.length,i=i.substring(o,l),0!==o){const i=e.offsetAt(g.create(t.start.line,0));s=function(e,t,n){let i=t,r=0;const s=n.tabSize||4;for(;i<e.length;){const t=e.charAt(i);if(" "===t)r++;else{if("\t"!==t)break;r+=s}i++}return Math.floor(r/s)}(e.getText(),i,n)}}else t=m.create(g.create(0,0),e.positionAt(i.length));const a={indent_size:o,indent_char:n.insertSpaces?" ":"\t",indent_empty_lines:Kn(n,"indentEmptyLines",!1),wrap_line_length:Kn(n,"wrapLineLength",120),unformatted:$n(n,"unformatted",void 0),content_unformatted:$n(n,"contentUnformatted",void 0),indent_inner_html:Kn(n,"indentInnerHtml",!1),preserve_newlines:Kn(n,"preserveNewLines",!0),max_preserve_newlines:Kn(n,"maxPreserveNewLines",32786),indent_handlebars:Kn(n,"indentHandlebars",!1),end_with_newline:r&&Kn(n,"endWithNewline",!1),extra_liners:$n(n,"extraLiners",void 0),wrap_attributes:Kn(n,"wrapAttributes","auto"),wrap_attributes_indent_size:Kn(n,"wrapAttributesIndentSize",void 0),eol:"\n",indent_scripts:Kn(n,"indentScripts","normal"),templating:Qn(n,"all"),unformatted_content_delimiter:Kn(n,"unformattedContentDelimiter","")};let l=function(e,t){return qn(e,t,Un,jn)}(i.replace(/^\s+/,""),a);if(s>0){const e=n.insertSpaces?vn(" ",o*s):vn("\t",s);l=l.split("\n").join("\n"+e),0===t.start.character&&(l=e+l)}return[{range:t,newText:l}]}function Kn(e,t,n){if(e&&e.hasOwnProperty(t)){const n=e[t];if(null!==n)return n}return n}function $n(e,t,n){const i=Kn(e,t,null);return"string"===typeof i?i.length>0?i.split(",").map((e=>e.trim().toLowerCase())):[]:n}function Qn(e,t){const n=Kn(e,"templating",t);return!0===n?["auto"]:!1===n||n===t||!1===Array.isArray(n)?["none"]:n}function Yn(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}function Xn(e,t){return-1!==" \t".indexOf(e.charAt(t))}!function(){var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},function(e){e.exports.Token=function(e,t,n,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"===typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,n){var i=n(8).InputScanner,r=n(3).Token,s=n(10).TokenStream,o=n(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new i(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new s,this._reset();for(var t=new r(a.START,""),n=null,i=[],o=new s;t.type!==a.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)o.add(e),e=this._get_next_token(t,n);o.isEmpty()||(e.comments_before=o,o=new s),e.parent=n,this._is_opening(e)?(i.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=i.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(a.RAW,n):this._create_token(a.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new r(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=a},function(e){function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return 0===this.__tokens_length},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},t.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},t.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},e.exports.TokenStream=t},function(e,t,n){var i=n(12).Pattern;function r(e,t){i.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}r.prototype=new i,r.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},r.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},r.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},r.prototype._create=function(){return new r(this._input,this)},r.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,i=[],r=e.exec(t);r;)i.push(t.substring(n,r.index)),n=r.index+r[0].length,r=e.exec(t);return n<t.length?i.push(t.substring(n,t.length)):i.push(""),i},e.exports.WhitespacePattern=r},function(e){function t(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}t.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},e.exports.Pattern=t},function(e){function t(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},function(e,t,n){var i=n(12).Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function s(e,t){i.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},r),this._excluded=Object.assign({},r),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var n=new i(e);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},s.prototype.read_options=function(e){var t=this._create();for(var n in r)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},s.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},s.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},s.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},s.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},e.exports.TemplatablePattern=s},,,,function(e,t,n){var i=n(19).Beautifier,r=n(20).Options;e.exports=function(e,t,n,r){return new i(e,t,n,r).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(20).Options,r=n(2).Output,s=n(21).Tokenizer,o=n(21).TOKEN,a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,h=function(e,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new r(e,t)};h.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},h.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},h.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},h.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},h.prototype.print_preserved_newlines=function(e){var t=0;e.type!==o.TEXT&&e.previous.type!==o.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var n=0;n<t;n++)this.print_newline(n>0);return 0!==t},h.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},h.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},h.prototype.print_newline=function(e){this._output.add_new_line(e)},h.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},h.prototype.indent=function(){this.indent_level++},h.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},h.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var c=function(e,t){var n=null,i=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),n=function(e){for(var t=null,n=e.next;n.type!==o.EOF&&e.closed!==n;){if(n.type===o.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===o.EQUALS&&n.next.next&&n.next.next.type===o.VALUE&&(t=n.next.next.text);break}n=n.next}return t}(t)||n,n.search("text/css")>-1?i="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":n.search(/test\/null/)>-1&&(i="null"),i):null};function d(e,t){return-1!==t.indexOf(e)}function u(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function g(e){this._printer=e,this._current_frame=null}function f(e,t,n,r){this._source_text=e||"",t=t||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null;var s=new i(t,"html");this._options=s,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}g.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},g.prototype.record_tag=function(e){var t=new u(this._current_frame,e,this._printer.indent_level);this._current_frame=t},g.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},g.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&-1===e.indexOf(n.tag);){if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},g.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},g.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&a.test(e)&&(t=e.match(a)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0],i={text:"",type:""},r=new m,c=new h(this._options,n),d=new s(e,this._options).tokenize();this._tag_stack=new g(c);for(var u=null,f=d.next();f.type!==o.EOF;)f.type===o.TAG_OPEN||f.type===o.COMMENT?r=u=this._handle_tag_open(c,f,r,i,d):f.type===o.ATTRIBUTE||f.type===o.EQUALS||f.type===o.VALUE||f.type===o.TEXT&&!r.tag_complete?u=this._handle_inside_tag(c,f,r,i):f.type===o.TAG_CLOSE?u=this._handle_tag_close(c,f,r):f.type===o.TEXT?u=this._handle_text(c,f,r):f.type===o.CONTROL_FLOW_OPEN?u=this._handle_control_flow_open(c,f):f.type===o.CONTROL_FLOW_CLOSE?u=this._handle_control_flow_close(c,f):c.add_raw_token(f),i=u,f=d.next();return c._output.get_code(t)},f.prototype._handle_control_flow_open=function(e,t){var n={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),n},f.prototype._handle_control_flow_close=function(e,t){var n={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),n},f.prototype._handle_tag_close=function(e,t,n){var i={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),i},f.prototype._handle_inside_tag=function(e,t,n,i){var r=n.has_wrapped_attrs,s={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):"{"===n.tag_start_char&&t.type===o.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===o.ATTRIBUTE?e.set_space_before_token(!0):(t.type===o.EQUALS||t.type===o.VALUE&&t.previous.type===o.EQUALS)&&e.set_space_before_token(!1),t.type===o.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),r=r||0!==t.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(i.type!==o.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),r=!0)),e.print_token(t),r=r||e.previous_token_wrapped(),n.has_wrapped_attrs=r),s},f.prototype._handle_text=function(e,t,n){var i={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),i},f.prototype._print_custom_beatifier_text=function(e,t,n){var i=this;if(""!==t.text){var r,s=t.text,o=1,a="",l="";"javascript"===n.custom_beautifier_name&&"function"===typeof this._js_beautify?r=this._js_beautify:"css"===n.custom_beautifier_name&&"function"===typeof this._css_beautify?r=this._css_beautify:"html"===n.custom_beautifier_name&&(r=function(e,t){return new f(e,t,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?o=0:"separate"===this._options.indent_scripts&&(o=-e.indent_level);var h=e.get_full_indent(o);if(s=s.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===s[0]&&s.match(/^(<!--|<!\[CDATA\[)/)){var c=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(s);if(!c)return void e.add_raw_token(t);a=h+c[1]+"\n",s=c[4],c[5]&&(l=h+c[5]),s=s.replace(/\n[ \t]*$/,""),(c[2]||-1!==c[3].indexOf("\n"))&&(c=c[3].match(/[ \t]+$/))&&(t.whitespace_before=c[0])}if(s)if(r){var d=function(){this.eol="\n"};d.prototype=this._options.raw_options,s=r(h+s,new d)}else{var u=t.whitespace_before;u&&(s=s.replace(new RegExp("\n("+u+")?","g"),"\n")),s=h+s.replace(/\n/g,"\n"+h)}a&&(s=s?a+s+"\n"+l:a+l),e.print_newline(!1),s&&(t.text=s,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},f.prototype._handle_tag_open=function(e,t,n,i,r){var s=this._get_tag_open_token(t);if(!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||t.type!==o.TAG_OPEN||s.is_start_tag?(e.traverse_whitespace(t),this._set_tag_position(e,t,s,n,i),s.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),s.start_tag_token=this._tag_stack.try_pop(s.tag_name)),s.is_start_tag&&this._is_wrap_attributes_force){var a,l=0;do{(a=r.peek(l)).type===o.ATTRIBUTE&&(s.attr_count+=1),l+=1}while(a.type!==o.EOF&&a.type!==o.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(s.alignment_size=t.text.length+1),s.tag_complete||s.is_unformatted||(e.alignment_size=s.alignment_size),s};var m=function(e,t){if(this.parent=e||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",t){var n;this.tag_start_char=t.text[0],this.text=t.text,"<"===this.tag_start_char?(n=t.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=t.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"",(t.text.startsWith("{{#>")||t.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==t.next?this.tag_check=t.next.text.split(" ")[0]:this.tag_check=t.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),t.type===o.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||t.closed&&"/>"===t.closed.text;var i=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(i=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(i)))}else this.tag_complete=!0};f.prototype._get_tag_open_token=function(e){var t=new m(this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||d(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&d(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&d(t.tag_check,this._options.content_unformatted),t.is_inline_element=d(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},f.prototype._set_tag_position=function(e,t,n,i,r){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=c(n.tag_check,t)))),d(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===n.tag_name&&r.type===o.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n))}else if(n.is_end_tag){var s=!1;s=(s=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(r.type===o.TAG_CLOSE&&n.start_tag_token===i)&&"TK_CONTENT"!==r.type,(n.is_content_unformatted||n.is_unformatted)&&(s=!1),s&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===r.type&&!n.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n)},f.prototype._calcluate_parent_multiline=function(e,t){!t.parent||!e._output.just_added_newline()||(t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element||(t.parent.multiline_content=!0)};var p=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],_=["a","audio","del","ins","map","noscript","video"];f.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==p.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==_.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==e.tag_name&&"td"!==e.tag_name||(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},e.exports.Beautifier=f},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}r.prototype=new i,e.exports.Options=r},function(e,t,n){var i=n(9).Tokenizer,r=n(9).TOKEN,s=n(13).Directives,o=n(14).TemplatablePattern,a=n(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},h=new s(/<\!--/,/-->/),c=function(e,t){i.call(this,e,t),this._current_tag_name="";var n=new o(this._input).read_options(this._options),r=new a(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),word_control_flow_close_excluded:n.until(/[\n\r\t <}]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),angular_control_flow_start:r.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(/<!--/).until_after(/-->/),cdata:r.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:r.starting_with(/<!\[/).until_after(/]>/),processing:r.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var s=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(s).until_after(s)}};(c.prototype=new i)._is_comment=function(e){return!1},c.prototype._is_opening=function(e){return e.type===l.TAG_OPEN||e.type===l.CONTROL_FLOW_OPEN},c.prototype._is_closing=function(e,t){return e.type===l.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])||e.type===l.CONTROL_FLOW_CLOSE&&"}"===e.text&&t.text.endsWith("{")},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(l.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(i,t))||this._read_attribute(i,e,t))||this._read_close(i,t))||this._read_control_flows(i,t))||this._read_raw_content(i,e,t))||this._read_content_word(i,t))||this._read_comment_or_cdata(i))||this._read_processing(i))||this._read_open(i,t))||this._create_token(l.UNKNOWN,this._input.next())},c.prototype._read_comment_or_cdata=function(e){var t=null,n=null,i=null;"<"===e&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(i=h.get_directives(n))&&"start"===i.ignore&&(n+=h.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=i));return t},c.prototype._read_processing=function(e){var t=null,n=null;if("<"===e){var i=this._input.peek(1);"!"!==i&&"?"!==i||(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=null)}return t},c.prototype._read_open=function(e,t){var n=null,i=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||"<"===e&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(l.TAG_OPEN,n)),i},c.prototype._read_open_handlebars=function(e,t){var n=null,i=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||this._options.indent_handlebars&&"{"===e&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),i=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(l.TAG_OPEN,n))),i},c.prototype._read_control_flows=function(e,t){var n="",i=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return i;if("@"===e){if(""===(n=this.__patterns.angular_control_flow_start.read()))return i;for(var r=n.endsWith("(")?1:0,s=0;!n.endsWith("{")||r!==s;){var o=this._input.next();if(null===o)break;"("===o?r++:")"===o&&s++,n+=o}i=this._create_token(l.CONTROL_FLOW_OPEN,n)}else"}"===e&&t&&t.type===l.CONTROL_FLOW_OPEN&&(n=this._input.next(),i=this._create_token(l.CONTROL_FLOW_CLOSE,n));return i},c.prototype._read_close=function(e,t){var n=null,i=null;return t&&t.type===l.TAG_OPEN&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),i=this._create_token(l.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(l.TAG_CLOSE,"}}"))),i},c.prototype._read_attribute=function(e,t,n){var i=null,r="";if(n&&"<"===n.text[0])if("="===e)i=this._create_token(l.EQUALS,this._input.next());else if('"'===e||"'"===e){var s=this._input.next();s+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(l.VALUE,s)}else(r=this.__patterns.attribute.read())&&(i=t.type===l.EQUALS?this._create_token(l.VALUE,r):this._create_token(l.ATTRIBUTE,r));return i},c.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},c.prototype._read_raw_content=function(e,t,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var r=t.opened.text.substr(1).toLowerCase();if("script"===r||"style"===r){var s=this._read_comment_or_cdata(e);if(s)return s.type=l.TEXT,s;i=this._input.readUntil(new RegExp("</"+r+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(r)&&(i=this._input.readUntil(new RegExp("</"+r+"[\\n\\r\\t ]*?>","ig")))}return i?this._create_token(l.TEXT,i):null},c.prototype._read_content_word=function(e,t){var n="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(n=this.__patterns.unformatted_content_delimiter.read()),n||(n=t&&t.type===l.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),n)return this._create_token(l.TEXT,n)},e.exports.Tokenizer=c,e.exports.TOKEN=l}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}(18);qn=n}(),(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,i="",r=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var l=i.lastIndexOf("/");if(l!==i.length-1){-1===l?(i="",r=0):r=(i=i.slice(0,l)).length-1-i.lastIndexOf("/"),s=a,o=0;continue}}else if(2===i.length||1===i.length){i="",r=0,s=a,o=0;continue}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(s+1,a):i=e.slice(s+1,a),r=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return i}var i={resolve:function(){for(var e,i="",r=!1,s=arguments.length-1;s>=-1&&!r;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(i=o+"/"+i,r=47===o.charCodeAt(0))}return i=n(i,!r),r?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&r&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];t(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var s=e.length,o=s-r,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,h=o<l?o:l,c=-1,d=0;d<=h;++d){if(d===h){if(l>h){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else o>h&&(47===e.charCodeAt(r+d)?c=d:0===d&&(c=0));break}var u=e.charCodeAt(r+d);if(u!==n.charCodeAt(a+d))break;47===u&&(c=d)}var g="";for(d=r+c+1;d<=s;++d)d!==s&&47!==e.charCodeAt(d)||(0===g.length?g+="..":g+="/..");return g.length>0?g+n.slice(a+c):(a+=c,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),i=47===n,r=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){r=o;break}}else s=!1;return-1===r?i?"/":".":i&&1===r?"//":e.slice(0,r)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var i,r=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(i=e.length-1;i>=0;--i){var h=e.charCodeAt(i);if(47===h){if(!o){r=i+1;break}}else-1===l&&(o=!1,l=i+1),a>=0&&(h===n.charCodeAt(a)?-1==--a&&(s=i):(a=-1,s=l))}return r===s?s=l:-1===s&&(s=e.length),e.slice(r,s)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){r=i+1;break}}else-1===s&&(o=!1,s=i+1);return-1===s?"":e.slice(r,s)},extname:function(e){t(e);for(var n=-1,i=0,r=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(s=!1,r=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){i=a+1;break}}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+"/"+i:i}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i,r=e.charCodeAt(0),s=47===r;s?(n.root="/",i=1):i=0;for(var o=-1,a=0,l=-1,h=!0,c=e.length-1,d=0;c>=i;--c)if(47!==(r=e.charCodeAt(c)))-1===l&&(h=!1,l=c+1),46===r?-1===o?o=c:1!==d&&(d=1):-1!==o&&(d=-1);else if(!h){a=c+1;break}return-1===o||-1===l||0===d||1===d&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(a,o),n.base=e.slice(a,l)),n.ext=e.slice(o,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{let e;if(n.r(i),n.d(i,{URI:()=>c,Utils:()=>C}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,r=/^\//,s=/^\/\//;function o(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const a="",l="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{static isUri(e){return e instanceof c||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,i,r,s=!1){"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,n||a),this.query=i||a,this.fragment=r||a,o(this,s))}get fsPath(){return p(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===i?i=this.path:null===i&&(i=a),void 0===r?r=this.query:null===r&&(r=a),void 0===s?s=this.fragment:null===s&&(s=a),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new u(t,n,i,r,s)}static parse(e,t=!1){const n=h.exec(e);return n?new u(n[2]||a,w(n[4]||a),w(n[5]||a),w(n[7]||a),w(n[9]||a),t):new u(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,l)),t[0]===l&&t[1]===l){const e=t.indexOf(l,2);-1===e?(n=t.substring(2),t=l):(n=t.substring(2,e),t=t.substring(e)||l)}return new u("file",n,t,a,a)}static from(e){const t=new u(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof c)return e;{const t=new u(e);return t._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t}}return e}}const d=e?1:void 0;class u extends c{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=p(this,!1)),this._fsPath}toString(e=!1){return e?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function f(e,t,n){let i,r=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=g[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function m(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=g[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function p(t,n){let i;return i=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(i=i.replace(/\//g,"\\")),i}function _(e,t){const n=t?m:f;let i="",{scheme:r,authority:s,path:o,query:a,fragment:h}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=l,i+=l),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),h&&(i+="#",i+=t?h:f(h,!1,!1)),i}function b(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+b(e.substr(3)):e}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(e){return e.match(v)?e.replace(v,(e=>b(e))):e}var k=n(470);const y=k.posix||k,T="/";var C,S;(S=C||(C={})).joinPath=function(e,...t){return e.with({path:y.join(e.path,...t)})},S.resolvePath=function(e,...t){let n=e.path,i=!1;n[0]!==T&&(n=T+n,i=!0);let r=y.resolve(n,...t);return i&&r[0]===T&&!e.authority&&(r=r.substring(1)),e.with({path:r})},S.dirname=function(e){if(0===e.path.length||e.path===T)return e;let t=y.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},S.basename=function(e){return y.basename(e.path)},S.extname=function(e){return y.extname(e.path)}})(),Vn=i})();var{URI:Jn,Utils:Zn}=Vn;function ei(e){const t=e[0];return t!==e[e.length-1]||"'"!==t&&'"'!==t||(e=e.substring(1,e.length-1)),e}function ti(e,t,n,i,r,s){const o=ei(n);if(a=o,l=e.languageId,!a.length||"handlebars"===l&&/{{|}}/.test(a)||!/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(a))return;var a,l;o.length<n.length&&(i++,r--);const h=function(e,t,n,i){if(/^\s*javascript\:/i.test(t)||/[\n\r]/.test(t))return;const r=(t=t.replace(/^\s*/g,"")).match(/^(\w[\w\d+.-]*):/);if(r){const e=r[1].toLowerCase();return"http"===e||"https"===e||"file"===e?t:void 0}if(/^\#/i.test(t))return e+t;if(/^\/\//i.test(t))return(_n(e,"https://")?"https":"http")+":"+t.replace(/^\s*/g,"");return n?n.resolveReference(t,i||e):t}(e.uri,o,t,s);if(!h)return;const c=function(e,t){try{let n=Jn.parse(e);return"file"===n.scheme&&n.query&&(n=n.with({query:null}),e=n.toString(!0)),"file"!==n.scheme||!n.fragment||e.startsWith(t.uri)&&e.charCodeAt(t.uri.length)===ni?e:n.with({fragment:null}).toString(!0)}catch(n){return}}(h,e);return{range:m.create(e.positionAt(i),e.positionAt(r)),target:c}}var ni="#".charCodeAt(0);var ii=class{constructor(e){this.dataManager=e}findDocumentLinks(e,t){const n=[],i=un(e.getText(),0);let r,s,o,a=i.scan(),l=!1;const h={};for(;a!==Pt.EOS;){switch(a){case Pt.StartTag:s=i.getTokenText().toLowerCase(),o||(l="base"===s);break;case Pt.AttributeName:r=i.getTokenText().toLowerCase();break;case Pt.AttributeValue:if(s&&r&&this.dataManager.isPathAttribute(s,r)){const s=i.getTokenText();if(!l){const r=ti(e,t,s,i.getTokenOffset(),i.getTokenEnd(),o);r&&n.push(r)}l&&"undefined"===typeof o&&(o=ei(s),o&&t&&(o=t.resolveReference(o,e.uri))),l=!1,r=void 0}else if("id"===r){h[ei(i.getTokenText())]=i.getTokenOffset()}}a=i.scan()}for(const c of n){const t=e.uri+"#";if(c.target&&_n(c.target,t)){const n=h[c.target.substring(t.length)];if(void 0!==n){const i=e.positionAt(n);c.target=`${t}${i.line+1},${i.character+1}`}else c.target=e.uri}}return n}};function ri(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i);if(!r.tag)return[];const s=[],o=ai(Pt.StartTag,e,r.start),a="number"===typeof r.endTagStart&&ai(Pt.EndTag,e,r.endTagStart);return(o&&oi(o,t)||a&&oi(a,t))&&(o&&s.push({kind:Ne.Read,range:o}),a&&s.push({kind:Ne.Read,range:a})),s}function si(e,t){return e.line<t.line||e.line===t.line&&e.character<=t.character}function oi(e,t){return si(e.start,t)&&si(t,e.end)}function ai(e,t,n){const i=un(t.getText(),n);let r=i.scan();for(;r!==Pt.EOS&&r!==e;)r=i.scan();return r!==Pt.EOS?{start:t.positionAt(i.getTokenOffset()),end:t.positionAt(i.getTokenEnd())}:null}function li(e,t){const n=[],i=hi(e,t);for(const s of i)r(s,void 0);return n;function r(t,i){const s=Pe.create(t.name,t.kind,t.range,e.uri,i?.name);if(s.containerName??(s.containerName=""),n.push(s),t.children)for(const e of t.children)r(e,t)}}function hi(e,t){const n=[];return t.roots.forEach((t=>{ci(e,t,n)})),n}function ci(e,t,n){const i=function(e){let t=e.tag;if(e.attributes){const n=e.attributes.id,i=e.attributes.class;n&&(t+=`#${n.replace(/[\"\']/g,"")}`),i&&(t+=i.replace(/[\"\']/g,"").split(/\s+/).map((e=>`.${e}`)).join(""))}return t||"?"}(t),r=m.create(e.positionAt(t.start),e.positionAt(t.end)),s=We.create(i,void 0,Oe.Field,r,r);n.push(s),t.children.forEach((t=>{s.children??(s.children=[]),ci(e,t,s.children)}))}function di(e,t,n,i){const r=e.offsetAt(t),s=i.findNodeAt(r);if(!s.tag)return null;if(!function(e,t,n){if(e.endTagStart&&e.endTagStart+2<=t&&t<=e.endTagStart+2+n.length)return!0;return e.start+1<=t&&t<=e.start+1+n.length}(s,r,s.tag))return null;const o=[],a={start:e.positionAt(s.start+1),end:e.positionAt(s.start+1+s.tag.length)};if(o.push({range:a,newText:n}),s.endTagStart){const t={start:e.positionAt(s.endTagStart+2),end:e.positionAt(s.endTagStart+2+s.tag.length)};o.push({range:t,newText:n})}return{changes:{[e.uri.toString()]:o}}}function ui(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i);if(!r.tag)return null;if(!r.endTagStart)return null;if(r.start+1<=i&&i<=r.start+1+r.tag.length){const t=i-1-r.start+r.endTagStart+2;return e.positionAt(t)}if(r.endTagStart+2<=i&&i<=r.endTagStart+2+r.tag.length){const t=i-2-r.endTagStart+r.start+1;return e.positionAt(t)}return null}function gi(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i),s=r.tag?r.tag.length:0;return r.endTagStart&&(r.start+1<=i&&i<=r.start+1+s||r.endTagStart+2<=i&&i<=r.endTagStart+2+s)?[m.create(e.positionAt(r.start+1),e.positionAt(r.start+1+s)),m.create(e.positionAt(r.endTagStart+2),e.positionAt(r.endTagStart+2+s))]:null}var fi=class{constructor(e){this.dataManager=e}limitRanges(e,t){let n;e=e.sort(((e,t)=>{let n=e.startLine-t.startLine;return 0===n&&(n=e.endLine-t.endLine),n}));const i=[],r=[],s=[],o=(e,t)=>{r[e]=t,t<30&&(s[t]=(s[t]||0)+1)};for(let c=0;c<e.length;c++){const t=e[c];if(n){if(t.startLine>n.startLine)if(t.endLine<=n.endLine)i.push(n),n=t,o(c,i.length);else if(t.startLine>n.endLine){do{n=i.pop()}while(n&&t.startLine>n.endLine);n&&i.push(n),n=t,o(c,i.length)}}else n=t,o(c,0)}let a=0,l=0;for(let c=0;c<s.length;c++){const e=s[c];if(e){if(e+a>t){l=c;break}a+=e}}const h=[];for(let c=0;c<e.length;c++){const n=r[c];"number"===typeof n&&(n<l||n===l&&a++<t)&&h.push(e[c])}return h}getFoldingRanges(e,t){const n=this.dataManager.getVoidElements(e.languageId),i=un(e.getText());let r=i.scan();const s=[],o=[];let a=null,l=-1;function h(e){s.push(e),l=e.startLine}for(;r!==Pt.EOS;){switch(r){case Pt.StartTag:{const t=i.getTokenText(),n=e.positionAt(i.getTokenOffset()).line;o.push({startLine:n,tagName:t}),a=t;break}case Pt.EndTag:a=i.getTokenText();break;case Pt.StartTagClose:if(!a||!this.dataManager.isVoidElement(a,n))break;case Pt.EndTagClose:case Pt.StartTagSelfClose:{let t=o.length-1;for(;t>=0&&o[t].tagName!==a;)t--;if(t>=0){const n=o[t];o.length=t;const r=e.positionAt(i.getTokenOffset()).line,s=n.startLine,a=r-1;a>s&&l!==s&&h({startLine:s,endLine:a})}break}case Pt.Comment:{let t=e.positionAt(i.getTokenOffset()).line;const n=i.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(n)if(n[1])o.push({startLine:t,tagName:""});else{let e=o.length-1;for(;e>=0&&o[e].tagName.length;)e--;if(e>=0){const n=o[e];o.length=e;const i=t;t=n.startLine,i>t&&l!==t&&h({startLine:t,endLine:i,kind:x.Region})}}else{const n=e.positionAt(i.getTokenOffset()+i.getTokenLength()).line;t<n&&h({startLine:t,endLine:n,kind:x.Comment})}break}}r=i.scan()}const c=t&&t.rangeLimit||Number.MAX_VALUE;return s.length>c?this.limitRanges(s,c):s}},mi=class{constructor(e){this.htmlParser=e}getSelectionRanges(e,t){const n=this.htmlParser.parseDocument(e);return t.map((t=>this.getSelectionRange(t,e,n)))}getSelectionRange(e,t,n){const i=this.getApplicableRanges(t,e,n);let r,s;for(let o=i.length-1;o>=0;o--){const e=i[o];r&&e[0]===r[0]&&e[1]===r[1]||(s=nt.create(m.create(t.positionAt(i[o][0]),t.positionAt(i[o][1])),s)),r=e}return s||(s=nt.create(m.create(e,e))),s}getApplicableRanges(e,t,n){const i=e.offsetAt(t),r=n.findNodeAt(i);let s=this.getAllParentTagRanges(r);if(r.startTagEnd&&!r.endTagStart){if(r.startTagEnd!==r.end)return[[r.start,r.end]];const t=m.create(e.positionAt(r.startTagEnd-2),e.positionAt(r.startTagEnd));"/>"===e.getText(t)?s.unshift([r.start+1,r.startTagEnd-2]):s.unshift([r.start+1,r.startTagEnd-1]);return s=this.getAttributeLevelRanges(e,r,i).concat(s),s}if(!r.startTagEnd||!r.endTagStart)return s;if(s.unshift([r.start,r.end]),r.start<i&&i<r.startTagEnd){s.unshift([r.start+1,r.startTagEnd-1]);return s=this.getAttributeLevelRanges(e,r,i).concat(s),s}return r.startTagEnd<=i&&i<=r.endTagStart?(s.unshift([r.startTagEnd,r.endTagStart]),s):(i>=r.endTagStart+2&&s.unshift([r.endTagStart+2,r.end-1]),s)}getAllParentTagRanges(e){let t=e;const n=[];for(;t.parent;)t=t.parent,this.getNodeRanges(t).forEach((e=>n.push(e)));return n}getNodeRanges(e){return e.startTagEnd&&e.endTagStart&&e.startTagEnd<e.endTagStart?[[e.startTagEnd,e.endTagStart],[e.start,e.end]]:[[e.start,e.end]]}getAttributeLevelRanges(e,t,n){const i=m.create(e.positionAt(t.start),e.positionAt(t.end)),r=e.getText(i),s=n-t.start,o=un(r);let a=o.scan();const l=t.start,h=[];let c=!1,d=-1;for(;a!==Pt.EOS;){switch(a){case Pt.AttributeName:if(s<o.getTokenOffset()){c=!1;break}s<=o.getTokenEnd()&&h.unshift([o.getTokenOffset(),o.getTokenEnd()]),c=!0,d=o.getTokenOffset();break;case Pt.AttributeValue:{if(!c)break;const e=o.getTokenText();if(s<o.getTokenOffset()){h.push([d,o.getTokenEnd()]);break}s>=o.getTokenOffset()&&s<=o.getTokenEnd()&&(h.unshift([o.getTokenOffset(),o.getTokenEnd()]),('"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1])&&s>=o.getTokenOffset()+1&&s<=o.getTokenEnd()-1&&h.unshift([o.getTokenOffset()+1,o.getTokenEnd()-1]),h.push([d,o.getTokenEnd()]));break}}a=o.scan()}return h.map((e=>[e[0]+l,e[1]+l]))}},pi={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called \u201cquirks mode\u201d when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",valueSet:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets \u2014 it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on\xa0the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image,\xa0video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates\xa0**no\xa0preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the\xa0browser\xa0that the resource is of\xa0**high** priority.\n\n**`low`**:\xa0Indicates to the\xa0browser\xa0that the resource is of\xa0**low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata \u2014 a base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:'This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [`itemprop`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.\n\nThis metadata name is associated with the value contained by the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are:\n\n* `application-name` which defines the name of the application running in the web page.\n \n **Note:**\n \n * Browsers may use this to identify the application. It is different from the [`<title>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title "The HTML Title element (<title>) defines the document\'s title that is shown in a browser\'s title bar or a page\'s tab.") element, which usually contain the application name, but may also contain information like the document name or a status.\n * Simple web pages shouldn\'t define an application-name.\n \n* `author` which defines the name of the document\'s author.\n* `description` which contains a short and accurate summary of the content of the page. Several browsers, like Firefox and Opera, use this as the default description of bookmarked pages.\n* `generator` which contains the identifier of the software that generated the page.\n* `keywords` which contains words relevant to the page\'s content separated by commas.\n* `referrer` which controls the [`Referer` HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) attached to requests sent from the document:\n \n Values for the `content` attribute of `<meta name="referrer">`\n \n `no-referrer`\n \n Do not send a HTTP `Referrer` header.\n \n `origin`\n \n Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the document.\n \n `no-referrer-when-downgrade`\n \n Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) as a referrer to URLs as secure as the current page, (https\u2192https), but does not send a referrer to less secure URLs (https\u2192http). This is the default behaviour.\n \n `origin-when-cross-origin`\n \n Send the full URL (stripped of parameters) for same-origin requests, but only send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) for other cases.\n \n `same-origin`\n \n A referrer will be sent for [same-site origins](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy), but cross-origin requests will contain no referrer information.\n \n `strict-origin`\n \n Only send the origin of the document as the referrer to a-priori as-much-secure destination (HTTPS->HTTPS), but don\'t send it to a less secure destination (HTTPS->HTTP).\n \n `strict-origin-when-cross-origin`\n \n Send a full URL when performing a same-origin request, only send the origin of the document to a-priori as-much-secure destination (HTTPS->HTTPS), and send no header to a less secure destination (HTTPS->HTTP).\n \n `unsafe-URL`\n \n Send the full URL (stripped of parameters) for same-origin or cross-origin requests.\n \n **Notes:**\n \n * Some browsers support the deprecated values of `always`, `default`, and `never` for referrer.\n * Dynamically inserting `<meta name="referrer">` (with [`document.write`](https://developer.mozilla.org/en-US/docs/Web/API/Document/write) or [`appendChild`](https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild)) makes the referrer behaviour unpredictable.\n * When several conflicting policies are defined, the no-referrer policy is applied.\n \n\nThis attribute may also have a value taken from the extended list defined on [WHATWG Wiki MetaExtensions page](https://wiki.whatwg.org/wiki/MetaExtensions). Although none have been formally accepted yet, a few commonly used names are:\n\n* `creator` which defines the name of the creator of the document, such as an organization or institution. If there are more than one, several [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") elements should be used.\n* `googlebot`, a synonym of `robots`, is only followed by Googlebot (the indexing crawler for Google).\n* `publisher` which defines the name of the document\'s publisher.\n* `robots` which defines the behaviour that cooperative crawlers, or "robots", should use with the page. It is a comma-separated list of the values below:\n \n Values for the content of `<meta name="robots">`\n \n Value\n \n Description\n \n Used by\n \n `index`\n \n Allows the robot to index the page (default).\n \n All\n \n `noindex`\n \n Requests the robot to not index the page.\n \n All\n \n `follow`\n \n Allows the robot to follow the links on the page (default).\n \n All\n \n `nofollow`\n \n Requests the robot to not follow the links on the page.\n \n All\n \n `none`\n \n Equivalent to `noindex, nofollow`\n \n [Google](https://support.google.com/webmasters/answer/79812)\n \n `noodp`\n \n Prevents using the [Open Directory Project](https://www.dmoz.org/) description, if any, as the page description in search engine results.\n \n [Google](https://support.google.com/webmasters/answer/35624#nodmoz), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/meta-tags-robotstxt-yahoo-search-sln2213.html#cont5), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noarchive`\n \n Requests the search engine not to cache the page content.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/SLN2213.html), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `nosnippet`\n \n Prevents displaying any description of the page in search engine results.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noimageindex`\n \n Requests this page not to appear as the referring page of an indexed image.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives)\n \n `nocache`\n \n Synonym of `noarchive`.\n \n [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n **Notes:**\n \n * Only cooperative robots follow these rules. Do not expect to prevent e-mail harvesters with them.\n * The robot still needs to access the page in order to read these rules. To prevent bandwidth consumption, use a _[robots.txt](https://developer.mozilla.org/en-US/docs/Glossary/robots.txt "robots.txt: Robots.txt is a file which is usually placed in the root of any website. It decides whether\xa0crawlers are permitted or forbidden access to the web site.")_ file.\n * If you want to remove a page, `noindex` will work, but only after the robot visits the page again. Ensure that the `robots.txt` file is not preventing revisits.\n * Some values are mutually exclusive, like `index` and `noindex`, or `follow` and `nofollow`. In these cases the robot\'s behaviour is undefined and may vary between them.\n * Some crawler robots, like Google, Yahoo and Bing, support the same values for the HTTP header `X-Robots-Tag`; this allows non-HTML documents like images to use these rules.\n \n* `slurp`, is a synonym of `robots`, but only for Slurp - the crawler for Yahoo Search.\n* `viewport`, which gives hints about the size of the initial size of the [viewport](https://developer.mozilla.org/en-US/docs/Glossary/viewport "viewport: A viewport represents a polygonal (normally rectangular) area in computer graphics that is currently being viewed. In web browser terms, it refers to the part of the document you\'re viewing which is currently visible in its window (or the screen, if the document is being viewed in full screen mode). Content outside the viewport is not visible onscreen until scrolled into view."). Used by mobile devices only.\n \n Values for the content of `<meta name="viewport">`\n \n Value\n \n Possible subvalues\n \n Description\n \n `width`\n \n A positive integer number, or the text `device-width`\n \n Defines the pixel width of the viewport that you want the web site to be rendered at.\n \n `height`\n \n A positive integer, or the text `device-height`\n \n Defines the height of the viewport. Not used by any browser.\n \n `initial-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the ratio between the device width (`device-width` in portrait mode or `device-height` in landscape mode) and the viewport size.\n \n `maximum-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the maximum amount to zoom in. It must be greater or equal to the `minimum-scale` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default.\n \n `minimum-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the minimum zoom level. It must be smaller or equal to the `maximum-scale` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default.\n \n `user-scalable`\n \n `yes` or `no`\n \n If set to `no`, the user is not able to zoom in the webpage. The default is `yes`. Browser settings can ignore this rule, and iOS10+ ignores it by default.\n \n Specification\n \n Status\n \n Comment\n \n [CSS Device Adaptation \n The definition of \'<meta name="viewport">\' in that specification.](https://drafts.csswg.org/css-device-adapt/#viewport-meta)\n \n Working Draft\n \n Non-normatively describes the Viewport META element\n \n See also: [`@viewport`](https://developer.mozilla.org/en-US/docs/Web/CSS/@viewport "The @viewport CSS at-rule lets you configure the viewport through which the document is viewed. It\'s primarily used for mobile devices, but is also used by desktop browsers that support features like "snap to edge" (such as Microsoft Edge).")\n \n **Notes:**\n \n * Though unstandardized, this declaration is respected by most mobile browsers due to de-facto dominance.\n * The default values may vary between devices and browsers.\n * To learn about this declaration in Firefox for Mobile, see [this article](https://developer.mozilla.org/en-US/docs/Mobile/Viewport_meta_tag "Mobile/Viewport meta tag").'}},{name:"http-equiv",description:{kind:"markdown",value:'Defines a pragma directive. The attribute is named `**http-equiv**(alent)` because all the allowed values are names of particular HTTP headers:\n\n* `"content-language"` \n Defines the default language of the page. It can be overridden by the [lang](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang) attribute on any element.\n \n **Warning:** Do not use this value, as it is obsolete. Prefer the `lang` attribute on the [`<html>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html "The HTML <html> element represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.") element.\n \n* `"content-security-policy"` \n Allows page authors to define a [content policy](https://developer.mozilla.org/en-US/docs/Web/Security/CSP/CSP_policy_directives) for the current page. Content policies mostly specify allowed server origins and script endpoints which help guard against cross-site scripting attacks.\n* `"content-type"` \n Defines the [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type) of the document, followed by its character encoding. It follows the same syntax as the HTTP `content-type` entity-header field, but as it is inside a HTML page, most values other than `text/html` are impossible. Therefore the valid syntax for its `content` is the string \'`text/html`\' followed by a character set with the following syntax: \'`; charset=_IANAcharset_`\', where `IANAcharset` is the _preferred MIME name_ for a character set as [defined by the IANA.](https://www.iana.org/assignments/character-sets)\n \n **Warning:** Do not use this value, as it is obsolete. Use the [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute on the [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element.\n \n **Note:** As [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") can\'t change documents\' types in XHTML or HTML5\'s XHTML serialization, never set the MIME type to an XHTML MIME type with `<meta>`.\n \n* `"refresh"` \n This instruction specifies:\n * The number of seconds until the page should be reloaded - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer.\n * The number of seconds until the page should redirect to another - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer followed by the string \'`;url=`\', and a valid URL.\n* `"set-cookie"` \n Defines a [cookie](https://developer.mozilla.org/en-US/docs/cookie) for the page. Its content must follow the syntax defined in the [IETF HTTP Cookie Specification](https://tools.ietf.org/html/draft-ietf-httpstate-cookie-14).\n \n **Warning:** Do not use this instruction, as it is obsolete. Use the HTTP header [`Set-Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) instead.'}},{name:"content",description:{kind:"markdown",value:"This attribute contains the value for the [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-name) attribute, depending on which is used."}},{name:"charset",description:{kind:"markdown",value:'This attribute declares the page\'s character encoding. It must contain a [standard IANA MIME name for character encodings](https://www.iana.org/assignments/character-sets). Although the standard doesn\'t request a specific encoding, it suggests:\n\n* Authors are encouraged to use [`UTF-8`](https://developer.mozilla.org/en-US/docs/Glossary/UTF-8).\n* Authors should not use ASCII-incompatible encodings to avoid security risk: browsers not supporting them may interpret harmful content as HTML. This happens with the `JIS_C6226-1983`, `JIS_X0212-1990`, `HZ-GB-2312`, `JOHAB`, the ISO-2022 family and the EBCDIC family.\n\n**Note:** ASCII-incompatible encodings are those that don\'t map the 8-bit code points `0x20` to `0x7E` to the `0x0020` to `0x007E` Unicode code points)\n\n* Authors **must not** use `CESU-8`, `UTF-7`, `BOCU-1` and/or `SCSU` as [cross-site scripting](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting) attacks with these encodings have been demonstrated.\n* Authors should not use `UTF-32` because not all HTML5 encoding algorithms can distinguish it from `UTF-16`.\n\n**Notes:**\n\n* The declared character encoding must match the one the page was saved with to avoid garbled characters and security holes.\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element declaring the encoding must be inside the [`<head>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head "The HTML <head> element provides general information (metadata) about the document, including its title and links to its\xa0scripts and style sheets.") element and **within the first 1024 bytes** of the HTML as some browsers only look at those bytes before choosing an encoding.\n* This [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element is only one part of the [algorithm to determine a page\'s character set](https://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#encoding-sniffing-algorithm "Algorithm charset page"). The [`Content-Type` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) and any [Byte-Order Marks](https://developer.mozilla.org/en-US/docs/Glossary/Byte-Order_Mark "The definition of that term (Byte-Order Marks) has not been written yet; please consider contributing it!") override this element.\n* It is strongly recommended to define the character encoding. If a page\'s encoding is undefined, cross-scripting techniques are possible, such as the [`UTF-7` fallback cross-scripting technique](https://code.google.com/p/doctype-mirror/wiki/ArticleUtf7).\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element with a `charset` attribute is a synonym for the pre-HTML5 `<meta http-equiv="Content-Type" content="text/html; charset=_IANAcharset_">`, where _`IANAcharset`_ contains the value of the equivalent [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute. This syntax is still allowed, although no longer recommended.'}},{name:"scheme",description:"This attribute defines the scheme in which metadata is described. A scheme is a context leading to the correct interpretations of the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) value, like a format.\n\n**Warning:** Do not use this value, as it is obsolete. There is no replacement as there was no real usage for it."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/meta"}]},{name:"style",description:{kind:"markdown",value:"The style element allows authors to embed style information in their documents. The style element is one of several inputs to the styling processing model. The element does not represent content for the user."},attributes:[{name:"media",description:{kind:"markdown",value:"This attribute defines which media the style should be applied to. Its value is a [media query](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries), which defaults to `all` if the attribute is missing."}},{name:"nonce",description:{kind:"markdown",value:"A cryptographic nonce (number used once) used to whitelist inline styles in a [style-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource\u2019s policy is otherwise trivial."}},{name:"type",description:{kind:"markdown",value:"This attribute defines the styling language as a MIME type (charset should not be specified). This attribute is optional and defaults to `text/css` if it is not specified \u2014 there is very little reason to include this in modern web documents."}},{name:"scoped",valueSet:"v"},{name:"title",description:"This attribute specifies [alternative style sheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets) sets."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/style"}]},{name:"body",description:{kind:"markdown",value:"The body element represents the content of the document."},attributes:[{name:"onafterprint",description:{kind:"markdown",value:"Function to call after the user has printed the document."}},{name:"onbeforeprint",description:{kind:"markdown",value:"Function to call when the user requests printing of the document."}},{name:"onbeforeunload",description:{kind:"markdown",value:"Function to call when the document is about to be unloaded."}},{name:"onhashchange",description:{kind:"markdown",value:"Function to call when the fragment identifier part (starting with the hash (`'#'`) character) of the document's current address has changed."}},{name:"onlanguagechange",description:{kind:"markdown",value:"Function to call when the preferred languages changed."}},{name:"onmessage",description:{kind:"markdown",value:"Function to call when the document has received a message."}},{name:"onoffline",description:{kind:"markdown",value:"Function to call when network communication has failed."}},{name:"ononline",description:{kind:"markdown",value:"Function to call when network communication has been restored."}},{name:"onpagehide"},{name:"onpageshow"},{name:"onpopstate",description:{kind:"markdown",value:"Function to call when the user has navigated session history."}},{name:"onstorage",description:{kind:"markdown",value:"Function to call when the storage area has changed."}},{name:"onunload",description:{kind:"markdown",value:"Function to call when the document is going away."}},{name:"alink",description:'Color of text for hyperlinks when selected. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:active`](https://developer.mozilla.org/en-US/docs/Web/CSS/:active "The :active CSS pseudo-class represents an element (such as a button) that is being activated by the user.") pseudo-class instead._'},{name:"background",description:'URI of a image to use as a background. _This method is non-conforming, use CSS [`background`](https://developer.mozilla.org/en-US/docs/Web/CSS/background "The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method.") property on the element instead._'},{name:"bgcolor",description:'Background color for the document. _This method is non-conforming, use CSS [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property on the element instead._'},{name:"bottommargin",description:'The margin of the bottom of the body. _This method is non-conforming, use CSS [`margin-bottom`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom "The margin-bottom CSS property sets the margin area on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"leftmargin",description:'The margin of the left of the body. _This method is non-conforming, use CSS [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"link",description:'Color of text for unvisited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:link`](https://developer.mozilla.org/en-US/docs/Web/CSS/:link "The :link CSS pseudo-class represents an element that has not yet been visited. It matches every unvisited <a>, <area>, or <link> element that has an href attribute.") pseudo-class instead._'},{name:"onblur",description:"Function to call when the document loses focus."},{name:"onerror",description:"Function to call when the document fails to load properly."},{name:"onfocus",description:"Function to call when the document receives focus."},{name:"onload",description:"Function to call when the document has finished loading."},{name:"onredo",description:"Function to call when the user has moved forward in undo transaction history."},{name:"onresize",description:"Function to call when the document has been resized."},{name:"onundo",description:"Function to call when the user has moved backward in undo transaction history."},{name:"rightmargin",description:'The margin of the right of the body. _This method is non-conforming, use CSS [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"text",description:'Foreground color of text. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property on the element instead._'},{name:"topmargin",description:'The margin of the top of the body. _This method is non-conforming, use CSS [`margin-top`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top "The margin-top CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"vlink",description:'Color of text for visited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:visited`](https://developer.mozilla.org/en-US/docs/Web/CSS/:visited "The :visited CSS pseudo-class represents links that the user has already visited. For privacy reasons, the styles that can be modified using this selector are very limited.") pseudo-class instead._'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/body"}]},{name:"article",description:{kind:"markdown",value:"The article element represents a complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content. Each article should be identified, typically by including a heading (h1\u2013h6 element) as a child of the article element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/article"}]},{name:"section",description:{kind:"markdown",value:"The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content. Each section should be identified, typically by including a heading ( h1- h6 element) as a child of the section element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/section"}]},{name:"nav",description:{kind:"markdown",value:"The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/nav"}]},{name:"aside",description:{kind:"markdown",value:"The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/aside"}]},{name:"h1",description:{kind:"markdown",value:"The h1 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h2",description:{kind:"markdown",value:"The h2 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h3",description:{kind:"markdown",value:"The h3 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h4",description:{kind:"markdown",value:"The h4 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h5",description:{kind:"markdown",value:"The h5 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h6",description:{kind:"markdown",value:"The h6 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"header",description:{kind:"markdown",value:"The header element represents introductory content for its nearest ancestor sectioning content or sectioning root element. A header typically contains a group of introductory or navigational aids. When the nearest ancestor sectioning content or sectioning root element is the body element, then it applies to the whole page."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/header"}]},{name:"footer",description:{kind:"markdown",value:"The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/footer"}]},{name:"address",description:{kind:"markdown",value:"The address element represents the contact information for its nearest article or body element ancestor. If that is the body element, then the contact information applies to the document as a whole."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/address"}]},{name:"p",description:{kind:"markdown",value:"The p element represents a paragraph."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/p"}]},{name:"hr",description:{kind:"markdown",value:"The hr element represents a paragraph-level thematic break, e.g. a scene change in a story, or a transition to another topic within a section of a reference book."},void:!0,attributes:[{name:"align",description:"Sets the alignment of the rule on the page. If no value is specified, the default value is `left`."},{name:"color",description:"Sets the color of the rule through color name or hexadecimal value."},{name:"noshade",description:"Sets the rule to have no shading."},{name:"size",description:"Sets the height, in pixels, of the rule."},{name:"width",description:"Sets the length of the rule on the page through a pixel or percentage value."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/hr"}]},{name:"pre",description:{kind:"markdown",value:"The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements."},attributes:[{name:"cols",description:'Contains the _preferred_ count of characters that a line should have. It was a non-standard synonym of [`width`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre#attr-width). To achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'},{name:"width",description:'Contains the _preferred_ count of characters that a line should have. Though technically still implemented, this attribute has no visual effect; to achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'},{name:"wrap",description:'Is a _hint_ indicating how the overflow must happen. In modern browser this hint is ignored and no visual effect results in its present; to achieve such an effect, use CSS [`white-space`](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space "The white-space CSS property sets how white space inside an element is handled.") instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/pre"}]},{name:"blockquote",description:{kind:"markdown",value:"The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations."},attributes:[{name:"cite",description:{kind:"markdown",value:"A URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/blockquote"}]},{name:"ol",description:{kind:"markdown",value:"The ol element represents a list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the document."},attributes:[{name:"reversed",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute specifies that the items of the list are specified in reversed order."}},{name:"start",description:{kind:"markdown",value:'This integer attribute specifies the start value for numbering the individual list items. Although the ordering type of list elements might be Roman numerals, such as XXXI, or letters, the value of start is always represented as a number. To start numbering elements from the letter "C", use `<ol start="3">`.\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.'}},{name:"type",valueSet:"lt",description:{kind:"markdown",value:"Indicates the numbering type:\n\n* `'a'` indicates lowercase letters,\n* `'A'` indicates uppercase letters,\n* `'i'` indicates lowercase Roman numerals,\n* `'I'` indicates uppercase Roman numerals,\n* and `'1'` indicates numbers (default).\n\nThe type set is used for the entire list unless a different [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li#attr-type) attribute is used within an enclosed [`<li>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li \"The HTML <li> element is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.\") element.\n\n**Note:** This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\nUnless the value of the list number matters (e.g. in legal or technical documents where items are to be referenced by their number/letter), the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type \"The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.\") property should be used instead."}},{name:"compact",description:'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Warning:** Do not use this attribute, as it has been deprecated: the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give an effect similar to the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [`line-height`](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height "The line-height CSS property sets the amount of space used for lines, such as in text. On block-level elements, it specifies the minimum height of line boxes within the element. On non-replaced inline elements, it specifies the height that is used to calculate line box height.") can be used with a value of `80%`.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ol"}]},{name:"ul",description:{kind:"markdown",value:"The ul element represents a list of items, where the order of the items is not important \u2014 that is, where changing the order would not materially change the meaning of the document."},attributes:[{name:"compact",description:'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Usage note:\xa0**Do not use this attribute, as it has been deprecated: the [`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give a similar effect as the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [line-height](https://developer.mozilla.org/en-US/docs/CSS/line-height) can be used with a value of `80%`.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ul"}]},{name:"li",description:{kind:"markdown",value:"The li element represents a list item. If its parent element is an ol, ul, or menu element, then the element is an item of the parent element's list, as defined for those elements. Otherwise, the list item has no defined list-related relationship to any other li element."},attributes:[{name:"value",description:{kind:"markdown",value:'This integer attribute indicates the current ordinal value of the list item as defined by the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element. The only allowed value for this attribute is a number, even if the list is displayed with Roman numerals or letters. List items that follow this one continue numbering from the value set. The **value** attribute has no meaning for unordered lists ([`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.")) or for menus ([`<menu>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.")).\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\n**Note:** Prior to Gecko\xa09.0, negative values were incorrectly converted to 0. Starting in Gecko\xa09.0 all integer values are correctly parsed.'}},{name:"type",description:'This character attribute indicates the numbering type:\n\n* `a`: lowercase letters\n* `A`: uppercase letters\n* `i`: lowercase Roman numerals\n* `I`: uppercase Roman numerals\n* `1`: numbers\n\nThis type overrides the one used by its parent [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element, if any.\n\n**Usage note:** This attribute has been deprecated: use the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type "The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.") property instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/li"}]},{name:"dl",description:{kind:"markdown",value:"The dl element represents an association list consisting of zero or more name-value groups (a description list). A name-value group consists of one or more names (dt elements) followed by one or more values (dd elements), ignoring any nodes other than dt and dd elements. Within a single dl element, there should not be more than one dt element for each name."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dl"}]},{name:"dt",description:{kind:"markdown",value:"The dt element represents the term, or name, part of a term-description group in a description list (dl element)."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dt"}]},{name:"dd",description:{kind:"markdown",value:"The dd element represents the description, definition, or value, part of a term-description group in a description list (dl element)."},attributes:[{name:"nowrap",description:"If the value of this attribute is set to `yes`, the definition text will not wrap. The default value is `no`."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dd"}]},{name:"figure",description:{kind:"markdown",value:"The figure element represents some flow content, optionally with a caption, that is self-contained (like a complete sentence) and is typically referenced as a single unit from the main flow of the document."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/figure"}]},{name:"figcaption",description:{kind:"markdown",value:"The figcaption element represents a caption or legend for the rest of the contents of the figcaption element's parent figure element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/figcaption"}]},{name:"main",description:{kind:"markdown",value:"The main element represents the main content of the body of a document or application. The main content area consists of content that is directly related to or expands upon the central topic of a document or central functionality of an application."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/main"}]},{name:"div",description:{kind:"markdown",value:"The div element has no special meaning at all. It represents its children. It can be used with the class, lang, and title attributes to mark up semantics common to a group of consecutive elements."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/div"}]},{name:"a",description:{kind:"markdown",value:"If the a element has an href attribute, then it represents a hyperlink (a hypertext anchor) labeled by its contents."},attributes:[{name:"href",description:{kind:"markdown",value:'Contains a URL or a URL fragment that the hyperlink points to.\nA URL fragment is a name preceded by a hash mark (`#`), which specifies an internal target location (an [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-id) of an HTML element) within the current document. URLs are not restricted to Web (HTTP)-based documents, but can use any protocol supported by the browser. For example, [`file:`](https://en.wikipedia.org/wiki/File_URI_scheme), `ftp:`, and `mailto:` work in most browsers.\n\n**Note:** You can use `href="#top"` or the empty fragment `href="#"` to link to the top of the current page. [This behavior is specified by HTML5](https://www.w3.org/TR/html5/single-page.html#scroll-to-fragid).'}},{name:"target",valueSet:"target",description:{kind:"markdown",value:'Specifies where to display the linked URL. It is a name of, or keyword for, a _browsing context_: a tab, window, or `<iframe>`. The following keywords have special meanings:\n\n* `_self`: Load the URL into the same browsing context as the current one. This is the default behavior.\n* `_blank`: Load the URL into a new browsing context. This is usually a tab, but users can configure browsers to use new windows instead.\n* `_parent`: Load the URL into the parent browsing context of the current one. If there is no parent, this behaves the same way as `_self`.\n* `_top`: Load the URL into the top-level browsing context (that is, the "highest" browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this behaves the same way as `_self`.\n\n**Note:** When using `target`, consider adding `rel="noreferrer"` to avoid exploitation of the `window.opener` API.\n\n**Note:** Linking to another page using `target="_blank"` will run the new page on the same process as your page. If the new page is executing expensive JS, your page\'s performance may suffer. To avoid this use `rel="noopener"`.'}},{name:"download",description:{kind:"markdown",value:"This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. If the attribute has a value, it is used as the pre-filled file name in the Save prompt (the user can still change the file name if they want). There are no restrictions on allowed values, though `/` and `\\` are converted to underscores. Most file systems limit some punctuation in file names, and browsers will adjust the suggested name accordingly.\n\n**Notes:**\n\n* This attribute only works for [same-origin URLs](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy).\n* Although HTTP(s) URLs need to be in the same-origin, [`blob:` URLs](https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL) and [`data:` URLs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) are allowed so that content generated by JavaScript, such as pictures created in an image-editor Web app, can be downloaded.\n* If the HTTP header [`Content-Disposition:`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) gives a different filename than this attribute, the HTTP header takes priority over this attribute.\n* If `Content-Disposition:` is set to `inline`, Firefox prioritizes `Content-Disposition`, like the filename case, while Chrome prioritizes the `download` attribute."}},{name:"ping",description:{kind:"markdown",value:'Contains a space-separated list of URLs to which, when the hyperlink is followed, [`POST`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST "The HTTP POST method sends data to the server. The type of the body of the request is indicated by the Content-Type header.") requests with the body `PING` will be sent by the browser (in the background). Typically used for tracking.'}},{name:"rel",description:{kind:"markdown",value:"Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"hreflang",description:{kind:"markdown",value:'This attribute indicates the human language of the linked resource. It is purely advisory, with no built-in functionality. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt "Tags for Identifying Languages").'}},{name:"type",description:{kind:"markdown",value:'Specifies the media type in the form of a [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type "MIME type: A\xa0MIME type\xa0(now properly called "media type", but\xa0also sometimes "content type") is a string sent along\xa0with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled\xa0audio/ogg, or an image file\xa0image/png).") for the linked URL. It is purely advisory, with no built-in functionality.'}},{name:"referrerpolicy",description:"Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) to send when fetching the URL:\n\n* `'no-referrer'` means the `Referer:` header will not be sent.\n* `'no-referrer-when-downgrade'` means no `Referer:` header will be sent when navigating to an origin without HTTPS. This is the default behavior.\n* `'origin'` means the referrer will be the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the page, not including information after the domain.\n* `'origin-when-cross-origin'` meaning that navigations to other origins will be limited to the scheme, the host and the port, while navigations on the same origin will include the referrer's path.\n* `'strict-origin-when-cross-origin'`\n* `'unsafe-url'` means the referrer will include the origin and path, but not the fragment, password, or username. This is unsafe because it can leak data from secure URLs to insecure ones."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/a"}]},{name:"em",description:{kind:"markdown",value:"The em element represents stress emphasis of its contents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/em"}]},{name:"strong",description:{kind:"markdown",value:"The strong element represents strong importance, seriousness, or urgency for its contents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/strong"}]},{name:"small",description:{kind:"markdown",value:"The small element represents side comments such as small print."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/small"}]},{name:"s",description:{kind:"markdown",value:"The s element represents contents that are no longer accurate or no longer relevant."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/s"}]},{name:"cite",description:{kind:"markdown",value:"The cite element represents a reference to a creative work. It must include the title of the work or the name of the author(person, people or organization) or an URL reference, or a reference in abbreviated form as per the conventions used for the addition of citation metadata."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/cite"}]},{name:"q",description:{kind:"markdown",value:"The q element represents some phrasing content quoted from another source."},attributes:[{name:"cite",description:{kind:"markdown",value:"The value of this attribute is a URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/q"}]},{name:"dfn",description:{kind:"markdown",value:"The dfn element represents the defining instance of a term. The paragraph, description list group, or section that is the nearest ancestor of the dfn element must also contain the definition(s) for the term given by the dfn element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dfn"}]},{name:"abbr",description:{kind:"markdown",value:"The abbr element represents an abbreviation or acronym, optionally with its expansion. The title attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/abbr"}]},{name:"ruby",description:{kind:"markdown",value:"The ruby element allows one or more spans of phrasing content to be marked with ruby annotations. Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation or to include other annotations. In Japanese, this form of typography is also known as furigana. Ruby text can appear on either side, and sometimes both sides, of the base text, and it is possible to control its position using CSS. A more complete introduction to ruby can be found in the Use Cases & Exploratory Approaches for Ruby Markup document as well as in CSS Ruby Module Level 1. [RUBY-UC] [CSSRUBY]"},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ruby"}]},{name:"rb",description:{kind:"markdown",value:"The rb element marks the base text component of a ruby annotation. When it is the child of a ruby element, it doesn't represent anything itself, but its parent ruby element uses it as part of determining what it represents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rb"}]},{name:"rt",description:{kind:"markdown",value:"The rt element marks the ruby text component of a ruby annotation. When it is the child of a ruby element or of an rtc element that is itself the child of a ruby element, it doesn't represent anything itself, but its ancestor ruby element uses it as part of determining what it represents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rt"}]},{name:"rp",description:{kind:"markdown",value:"The rp element is used to provide fallback text to be shown by user agents that don't support ruby annotations. One widespread convention is to provide parentheses around the ruby text component of a ruby annotation."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rp"}]},{name:"time",description:{kind:"markdown",value:"The time element represents its contents, along with a machine-readable form of those contents in the datetime attribute. The kind of content is limited to various kinds of dates, times, time-zone offsets, and durations, as described below."},attributes:[{name:"datetime",description:{kind:"markdown",value:"This attribute indicates the time and/or date of the element and must be in one of the formats described below."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/time"}]},{name:"code",description:{kind:"markdown",value:"The code element represents a fragment of computer code. This could be an XML element name, a file name, a computer program, or any other string that a computer would recognize."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/code"}]},{name:"var",description:{kind:"markdown",value:"The var element represents a variable. This could be an actual variable in a mathematical expression or programming context, an identifier representing a constant, a symbol identifying a physical quantity, a function parameter, or just be a term used as a placeholder in prose."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/var"}]},{name:"samp",description:{kind:"markdown",value:"The samp element represents sample or quoted output from another program or computing system."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/samp"}]},{name:"kbd",description:{kind:"markdown",value:"The kbd element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands)."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/kbd"}]},{name:"sub",description:{kind:"markdown",value:"The sub element represents a subscript."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/sub"}]},{name:"sup",description:{kind:"markdown",value:"The sup element represents a superscript."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/sup"}]},{name:"i",description:{kind:"markdown",value:"The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, transliteration, a thought, or a ship name in Western texts."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/i"}]},{name:"b",description:{kind:"markdown",value:"The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/b"}]},{name:"u",description:{kind:"markdown",value:"The u element represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/u"}]},{name:"mark",description:{kind:"markdown",value:"The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. When used in a quotation or other block of text referred to from the prose, it indicates a highlight that was not originally present but which has been added to bring the reader's attention to a part of the text that might not have been considered important by the original author when the block was originally written, but which is now under previously unexpected scrutiny. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its likely relevance to the user's current activity."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/mark"}]},{name:"bdi",description:{kind:"markdown",value:"The bdi element represents a span of text that is to be isolated from its surroundings for the purposes of bidirectional text formatting. [BIDI]"},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/bdi"}]},{name:"bdo",description:{kind:"markdown",value:"The bdo element represents explicit text directionality formatting control for its children. It allows authors to override the Unicode bidirectional algorithm by explicitly specifying a direction override. [BIDI]"},attributes:[{name:"dir",description:"The direction in which text should be rendered in this element's contents. Possible values are:\n\n* `ltr`: Indicates that the text should go in a left-to-right direction.\n* `rtl`: Indicates that the text should go in a right-to-left direction."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/bdo"}]},{name:"span",description:{kind:"markdown",value:"The span element doesn't mean anything on its own, but can be useful when used together with the global attributes, e.g. class, lang, or dir. It represents its children."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/span"}]},{name:"br",description:{kind:"markdown",value:"The br element represents a line break."},void:!0,attributes:[{name:"clear",description:"Indicates where to begin the next line after the break."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/br"}]},{name:"wbr",description:{kind:"markdown",value:"The wbr element represents a line break opportunity."},void:!0,attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/wbr"}]},{name:"ins",description:{kind:"markdown",value:"The ins element represents an addition to the document."},attributes:[{name:"cite",description:"This attribute defines the URI of a resource that explains the change, such as a link to meeting minutes or a ticket in a troubleshooting system."},{name:"datetime",description:'This attribute indicates the time and date of the change and must be a valid date with an optional time string. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ins"}]},{name:"del",description:{kind:"markdown",value:"The del element represents a removal from the document."},attributes:[{name:"cite",description:{kind:"markdown",value:"A URI for a resource that explains the change (for example, meeting minutes)."}},{name:"datetime",description:{kind:"markdown",value:'This attribute indicates the time and date of the change and must be a valid date string with an optional time. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/del"}]},{name:"picture",description:{kind:"markdown",value:"The picture element is a container which provides multiple sources to its contained img element to allow authors to declaratively control or give hints to the user agent about which image resource to use, based on the screen pixel density, viewport size, image format, and other factors. It represents its children."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/picture"}]},{name:"img",description:{kind:"markdown",value:"An img element represents an image."},void:!0,attributes:[{name:"alt",description:{kind:"markdown",value:'This attribute defines an alternative text description of the image.\n\n**Note:** Browsers do not always display the image referenced by the element. This is the case for non-graphical browsers (including those used by people with visual impairments), if the user chooses not to display images, or if the browser cannot display the image because it is invalid or an [unsupported type](#Supported_image_formats). In these cases, the browser may replace the image with the text defined in this element\'s `alt` attribute. You should, for these reasons and others, provide a useful value for `alt` whenever possible.\n\n**Note:** Omitting this attribute altogether indicates that the image is a key part of the content, and no textual equivalent is available. Setting this attribute to an empty string (`alt=""`) indicates that this image is _not_ a key part of the content (decorative), and that non-visual browsers may omit it from rendering.'}},{name:"src",description:{kind:"markdown",value:"The image URL. This attribute is mandatory for the `<img>` element. On browsers supporting `srcset`, `src` is treated like a candidate image with a pixel density descriptor `1x` unless an image with this pixel density descriptor is already defined in `srcset,` or unless `srcset` contains '`w`' descriptors."}},{name:"srcset",description:{kind:"markdown",value:"A list of one or more strings separated by commas indicating a set of possible image sources for the user agent to use. Each string is composed of:\n\n1. a URL to an image,\n2. optionally, whitespace followed by one of:\n * A width descriptor, or a positive integer directly followed by '`w`'. The width descriptor is divided by the source size given in the `sizes` attribute to calculate the effective pixel density.\n * A pixel density descriptor, which is a positive floating point number directly followed by '`x`'.\n\nIf no descriptor is specified, the source is assigned the default descriptor: `1x`.\n\nIt is incorrect to mix width descriptors and pixel density descriptors in the same `srcset` attribute. Duplicate descriptors (for instance, two sources in the same `srcset` which are both described with '`2x`') are also invalid.\n\nThe user agent selects any one of the available sources at its discretion. This provides them with significant leeway to tailor their selection based on things like user preferences or bandwidth conditions. See our [Responsive images](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images) tutorial for an example."}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates if the fetching of the related image must be done using CORS or not. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being "[tainted](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image#What_is_a_tainted_canvas)." The allowed values are:\n`anonymous`\n\nA cross-origin request (i.e., with `Origin:` HTTP header) is performed, but no credential is sent (i.e., no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header), the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e., with the [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) performed along with credentials sent (i.e., a cookie, certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (through the `Access-Control-Allow-Credentials` HTTP header), the image will be tainted and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a CORS request (i.e., without sending the `Origin` HTTP header), preventing its non-tainted usage in [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") elements. If invalid, it is handled as if the `anonymous` value was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/HTML/CORS_settings_attributes) for additional information.'}},{name:"usemap",description:{kind:"markdown",value:'The partial URL (starting with \'#\') of an [image map](https://developer.mozilla.org/en-US/docs/HTML/Element/map) associated with the element.\n\n**Note:** You cannot use this attribute if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") element.'}},{name:"ismap",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the image is part of a server-side map. If so, the precise coordinates of a click are sent to the server.\n\n**Note:** This attribute is allowed only if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") element with a valid [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute.'}},{name:"width",description:{kind:"markdown",value:"The intrinsic width of the image in pixels."}},{name:"height",description:{kind:"markdown",value:"The intrinsic height of the image in pixels."}},{name:"decoding",valueSet:"decoding",description:{kind:"markdown",value:"Provides an image decoding hint to the browser. The allowed values are:\n`sync`\n\nDecode the image synchronously for atomic presentation with other content.\n\n`async`\n\nDecode the image asynchronously to reduce delay in presenting other content.\n\n`auto`\n\nDefault mode, which indicates no preference for the decoding mode. The browser decides what is best for the user."}},{name:"loading",valueSet:"loading",description:{kind:"markdown",value:"Indicates how the browser should load the image."}},{name:"referrerpolicy",valueSet:"referrerpolicy",description:{kind:"markdown",value:"A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer:` The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer \"The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.\") header will not be sent.\n* `no-referrer-when-downgrade:` No `Referer` header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior if no policy is otherwise specified.\n* `origin:` The `Referer` header will include the page of origin's scheme, the host, and the port.\n* `origin-when-cross-origin:` Navigating to other origins will limit the included referral data to the scheme, the host and the port, while navigating from the same origin will include the referrer's full path.\n* `unsafe-url:` The `Referer` header will include the origin and the path, but not the fragment, password, or username. This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins."}},{name:"sizes",description:{kind:"markdown",value:"A list of one or more strings separated by commas indicating a set of source sizes. Each source size consists of:\n\n1. a media condition. This must be omitted for the last item.\n2. a source size value.\n\nSource size values specify the intended display size of the image. User agents use the current source size to select one of the sources supplied by the `srcset` attribute, when those sources are described using width ('`w`') descriptors. The selected source size affects the intrinsic size of the image (the image\u2019s display size if no CSS styling is applied). If the `srcset` attribute is absent, or contains no values with a width (`w`) descriptor, then the `sizes` attribute has no effect."}},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:"`auto`: Indicates\xa0**no\xa0preference**. The browser may use its own heuristics to decide the priority of the image.\n\n`high`: Indicates to the\xa0browser\xa0that the image is of\xa0**high** priority.\n\n`low`:\xa0Indicates to the\xa0browser\xa0that the image is of\xa0**low** priority."},{name:"intrinsicsize",description:"This attribute tells the browser to ignore the actual intrinsic size of the image and pretend it\u2019s the size specified in the attribute. Specifically, the image would raster at these dimensions and `naturalWidth`/`naturalHeight` on images would return the values specified in this attribute. [Explainer](https://github.com/ojanvafai/intrinsicsize-attribute), [examples](https://googlechrome.github.io/samples/intrinsic-size/index.html)"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/img"}]},{name:"iframe",description:{kind:"markdown",value:"The iframe element represents a nested browsing context."},attributes:[{name:"src",description:{kind:"markdown",value:'The URL of the page to embed. Use a value of `about:blank` to embed an empty page that conforms to the [same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#Inherited_origins). Also note that programatically removing an `<iframe>`\'s src attribute (e.g. via [`Element.removeAttribute()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttribute "The Element method removeAttribute() removes the attribute with the specified name from the element.")) causes `about:blank` to be loaded in the frame in Firefox (from version 65), Chromium-based browsers, and Safari/iOS.'}},{name:"srcdoc",description:{kind:"markdown",value:"Inline HTML to embed, overriding the `src` attribute. If a browser does not support the `srcdoc` attribute, it will fall back to the URL in the `src` attribute."}},{name:"name",description:{kind:"markdown",value:'A targetable name for the embedded browsing context. This can be used in the `target` attribute of the [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL."), [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server."), or [`<base>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base "The HTML <base> element specifies the base URL to use for all relative URLs contained within a document. There can be only one <base> element in a document.") elements; the `formtarget` attribute of the [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") elements; or the `windowName` parameter in the [`window.open()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/open "The\xa0Window interface\'s open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name. If the name doesn\'t exist, then a new window is opened and the specified resource is loaded into its browsing context.") method.'}},{name:"sandbox",valueSet:"sb",description:{kind:"markdown",value:'Applies extra restrictions to the content in the frame. The value of the attribute can either be empty to apply all restrictions, or space-separated tokens to lift particular restrictions:\n\n* `allow-forms`: Allows the resource to submit forms. If this keyword is not used, form submission is blocked.\n* `allow-modals`: Lets the resource [open modal windows](https://html.spec.whatwg.org/multipage/origin.html#sandboxed-modals-flag).\n* `allow-orientation-lock`: Lets the resource [lock the screen orientation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation).\n* `allow-pointer-lock`: Lets the resource use the [Pointer Lock API](https://developer.mozilla.org/en-US/docs/WebAPI/Pointer_Lock).\n* `allow-popups`: Allows popups (such as `window.open()`, `target="_blank"`, or `showModalDialog()`). If this keyword is not used, the popup will silently fail to open.\n* `allow-popups-to-escape-sandbox`: Lets the sandboxed document open new windows without those windows inheriting the sandboxing. For example, this can safely sandbox an advertisement without forcing the same restrictions upon the page the ad links to.\n* `allow-presentation`: Lets the resource start a [presentation session](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest).\n* `allow-same-origin`: If this token is not used, the resource is treated as being from a special origin that always fails the [same-origin policy](https://developer.mozilla.org/en-US/docs/Glossary/same-origin_policy "same-origin policy: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin.").\n* `allow-scripts`: Lets the resource run scripts (but not create popup windows).\n* `allow-storage-access-by-user-activation` : Lets the resource request access to the parent\'s storage capabilities with the [Storage Access API](https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API).\n* `allow-top-navigation`: Lets the resource navigate the top-level browsing context (the one named `_top`).\n* `allow-top-navigation-by-user-activation`: Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture.\n\n**Notes about sandboxing:**\n\n* When the embedded document has the same origin as the embedding page, it is **strongly discouraged** to use both `allow-scripts` and `allow-same-origin`, as that lets the embedded document remove the `sandbox` attribute \u2014 making it no more secure than not using the `sandbox` attribute at all.\n* Sandboxing is useless if the attacker can display content outside a sandboxed `iframe` \u2014 such as if the viewer opens the frame in a new tab. Such content should be also served from a _separate origin_ to limit potential damage.\n* The `sandbox` attribute is unsupported in Internet Explorer 9 and earlier.'}},{name:"seamless",valueSet:"v"},{name:"allowfullscreen",valueSet:"v",description:{kind:"markdown",value:'Set to `true` if the `<iframe>` can activate fullscreen mode by calling the [`requestFullscreen()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen "The Element.requestFullscreen() method issues an asynchronous request to make the element be displayed in full-screen mode.") method.\nThis attribute is considered a legacy attribute and redefined as `allow="fullscreen"`.'}},{name:"width",description:{kind:"markdown",value:"The width of the frame in CSS pixels. Default is `300`."}},{name:"height",description:{kind:"markdown",value:"The height of the frame in CSS pixels. Default is `150`."}},{name:"allow",description:"Specifies a [feature policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Feature_Policy) for the `<iframe>`."},{name:"allowpaymentrequest",description:"Set to `true` if a cross-origin `<iframe>` should be allowed to invoke the [Payment Request API](https://developer.mozilla.org/en-US/docs/Web/API/Payment_Request_API)."},{name:"allowpaymentrequest",description:'This attribute is considered a legacy attribute and redefined as `allow="payment"`.'},{name:"csp",description:'A [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) enforced for the embedded resource. See [`HTMLIFrameElement.csp`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/csp "The csp property of the HTMLIFrameElement interface specifies the Content Security Policy that an embedded document must agree to enforce upon itself.") for details.'},{name:"importance",description:"The download priority of the resource in the `<iframe>`'s `src` attribute. Allowed values:\n\n`auto` (default)\n\nNo preference. The browser uses its own heuristics to decide the priority of the resource.\n\n`high`\n\nThe resource should be downloaded before other lower-priority page resources.\n\n`low`\n\nThe resource should be downloaded after other higher-priority page resources."},{name:"referrerpolicy",description:'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the frame\'s resource:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (HTTPS\u2192HTTPS), but don\'t send it to a less secure destination (HTTPS\u2192HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (HTTPS\u2192HTTPS), and send no header to a less secure destination (HTTPS\u2192HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/iframe"}]},{name:"embed",description:{kind:"markdown",value:"The embed element provides an integration point for an external (typically non-HTML) application or interactive content."},void:!0,attributes:[{name:"src",description:{kind:"markdown",value:"The URL\xa0of the resource being embedded."}},{name:"type",description:{kind:"markdown",value:"The MIME\xa0type to use to select the plug-in to instantiate."}},{name:"width",description:{kind:"markdown",value:"The displayed width of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}},{name:"height",description:{kind:"markdown",value:"The displayed height of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/embed"}]},{name:"object",description:{kind:"markdown",value:"The object element can represent an external resource, which, depending on the type of the resource, will either be treated as an image, as a nested browsing context, or as an external resource to be processed by a plugin."},attributes:[{name:"data",description:{kind:"markdown",value:"The address of the resource as a valid URL. At least one of **data** and **type** must be defined."}},{name:"type",description:{kind:"markdown",value:"The [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource specified by **data**. At least one of **data** and **type** must be defined."}},{name:"typemustmatch",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates if the **type** attribute and the actual [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource must match to be used."}},{name:"name",description:{kind:"markdown",value:"The name of valid browsing context (HTML5), or the name of the control (HTML 4)."}},{name:"usemap",description:{kind:"markdown",value:"A hash-name reference to a [`<map>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map \"The HTML <map> element is used with <area> elements to define an image map (a clickable link area).\") element; that is a '#' followed by the value of a [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map#attr-name) of a map element."}},{name:"form",description:{kind:"markdown",value:'The form element, if any, that the object element is associated with (its _form owner_). The value of the attribute must be an ID of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document.'}},{name:"width",description:{kind:"markdown",value:"The width of the display resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}},{name:"height",description:{kind:"markdown",value:"The height of the displayed resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}},{name:"archive",description:"A space-separated list of URIs for archives of resources for the object."},{name:"border",description:"The width of a border around the control, in pixels."},{name:"classid",description:"The URI of the object's implementation. It can be used together with, or in place of, the **data** attribute."},{name:"codebase",description:"The base path used to resolve relative URIs specified by **classid**, **data**, or **archive**. If not specified, the default is the base URI of the current document."},{name:"codetype",description:"The content type of the data specified by **classid**."},{name:"declare",description:"The presence of this Boolean attribute makes this element a declaration only. The object must be instantiated by a subsequent `<object>` element. In HTML5, repeat the <object> element completely each that that the resource is reused."},{name:"standby",description:"A message that the browser can show while loading the object's implementation and data."},{name:"tabindex",description:"The position of the element in the tabbing navigation order for the current document."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/object"}]},{name:"param",description:{kind:"markdown",value:"The param element defines parameters for plugins invoked by object elements. It does not represent anything on its own."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:"Name of the parameter."}},{name:"value",description:{kind:"markdown",value:"Specifies the value of the parameter."}},{name:"type",description:'Only used if the `valuetype` is set to "ref". Specifies the MIME type of values found at the URI specified by value.'},{name:"valuetype",description:'Specifies the type of the `value` attribute. Possible values are:\n\n* data: Default value. The value is passed to the object\'s implementation as a string.\n* ref: The value is a URI to a resource where run-time values are stored.\n* object: An ID of another [`<object>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object "The HTML <object> element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.") in the same document.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/param"}]},{name:"video",description:{kind:"markdown",value:"A video element is used for playing videos or movies, and audio files with captions."},attributes:[{name:"src"},{name:"crossorigin",valueSet:"xo"},{name:"poster"},{name:"preload",valueSet:"pl"},{name:"autoplay",valueSet:"v",description:{kind:"markdown",value:'A Boolean attribute; if specified, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data.\n**Note**: Sites that automatically play audio (or video with an audio track) can be an unpleasant experience for users, so it should be avoided when possible. If you must offer autoplay functionality, you should make it opt-in (requiring a user to specifically enable it). However, this can be useful when creating media elements whose source will be set at a later time, under user control.\n\nTo disable video autoplay, `autoplay="false"` will not work; the video will autoplay if the attribute is there in the `<video>` tag at all. To remove autoplay the attribute needs to be removed altogether.\n\nIn some browsers (e.g. Chrome 70.0) autoplay is not working if no `muted` attribute is present.'}},{name:"mediagroup"},{name:"loop",valueSet:"v"},{name:"muted",valueSet:"v"},{name:"controls",valueSet:"v"},{name:"width"},{name:"height"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/video"}]},{name:"audio",description:{kind:"markdown",value:"An audio element represents a sound or audio stream."},attributes:[{name:"src",description:{kind:"markdown",value:'The URL of the audio to embed. This is subject to [HTTP access controls](https://developer.mozilla.org/en-US/docs/HTTP_access_control). This is optional; you may instead use the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element within the audio block to specify the audio to embed.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether to use CORS to fetch the related image. [CORS-enabled resources](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\nanonymous\n\nSends a cross-origin request without a credential. In other words, it sends the `Origin:` HTTP header without a cookie, X.509 certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (by not setting the `Access-Control-Allow-Origin:` HTTP header), the image will be _tainted_, and its usage restricted.\n\nuse-credentials\n\nSends a cross-origin request with a credential. In other words, it sends the `Origin:` HTTP header with a cookie, a certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (through `Access-Control-Allow-Credentials:` HTTP header), the image will be _tainted_ and its usage restricted.\n\nWhen not present, the resource is fetched without a CORS request (i.e. without sending the `Origin:` HTTP header), preventing its non-tainted used in [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") elements. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/HTML/CORS_settings_attributes) for additional information.'}},{name:"preload",valueSet:"pl",description:{kind:"markdown",value:"This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience. It may have one of the following values:\n\n* `none`: Indicates that the audio should not be preloaded.\n* `metadata`: Indicates that only audio metadata (e.g. length) is fetched.\n* `auto`: Indicates that the whole audio file can be downloaded, even if the user is not expected to use it.\n* _empty string_: A synonym of the `auto` value.\n\nIf not set, `preload`'s default value is browser-defined (i.e. each browser may have its own default value). The spec advises it to be set to `metadata`.\n\n**Usage notes:**\n\n* The `autoplay` attribute has precedence over\xa0`preload`. If `autoplay` is specified, the browser would obviously need to start downloading the audio for playback.\n* The browser is not forced by the specification to follow the value of this attribute; it is a mere hint."}},{name:"autoplay",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute:\xa0if specified, the audio will automatically begin playback as soon as it can do so, without waiting for the entire audio file to finish downloading.\n\n**Note**: Sites that automatically play audio (or videos with an audio track) can be an unpleasant experience for users, so should be avoided when possible. If you must offer autoplay functionality, you should make it opt-in (requiring a user to specifically enable it). However, this can be useful when creating media elements whose source will be set at a later time, under user control."}},{name:"mediagroup"},{name:"loop",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute:\xa0if specified, the audio player will\xa0automatically seek back to the start\xa0upon reaching the end of the audio."}},{name:"muted",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute that indicates whether the audio will be initially silenced. Its default value is `false`."}},{name:"controls",valueSet:"v",description:{kind:"markdown",value:"If this attribute is present, the browser will offer controls to allow the user to control audio playback, including volume, seeking, and pause/resume playback."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/audio"}]},{name:"source",description:{kind:"markdown",value:"The source element allows authors to specify multiple alternative media resources for media elements. It does not represent anything on its own."},void:!0,attributes:[{name:"src",description:{kind:"markdown",value:'Required for [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element:\xa0the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") and [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document."), address of the media resource. The value of this attribute is ignored when the `<source>` element is placed inside a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}},{name:"type",description:{kind:"markdown",value:"The MIME-type of the resource, optionally with a `codecs` parameter. See [RFC 4281](https://tools.ietf.org/html/rfc4281) for information about how to specify codecs."}},{name:"sizes",description:'Is a list of source sizes that describes the final rendered width of the image represented by the source. Each source size consists of a comma-separated list of media condition-length pairs. This information is used by the browser to determine, before laying the page out, which image defined in [`srcset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-srcset) to use. \nThe `sizes` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'},{name:"srcset",description:"A list of one or more strings separated by commas indicating a set of possible images represented by the source for the browser to use. Each string is composed of:\n\n1. one URL to an image,\n2. a width descriptor, that is a positive integer directly followed by `'w'`. The default value, if missing, is the infinity.\n3. a pixel density descriptor, that is a positive floating number directly followed by `'x'`. The default value, if missing, is `1x`.\n\nEach string in the list must have at least a width descriptor or a pixel density descriptor to be valid. Among the list, there must be only one string containing the same tuple of width descriptor and pixel density descriptor. \nThe browser chooses the most adequate image to display at a given point of time. \nThe `srcset` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source \"The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.\") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture \"The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.\") element."},{name:"media",description:'[Media query](https://developer.mozilla.org/en-US/docs/CSS/Media_queries) of the resource\'s intended media; this should be used only in a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/source"}]},{name:"track",description:{kind:"markdown",value:"The track element allows authors to specify explicit external timed text tracks for media elements. It does not represent anything on its own."},void:!0,attributes:[{name:"default",valueSet:"v",description:{kind:"markdown",value:"This attribute indicates that the track should be enabled unless the user's preferences indicate that another track is more appropriate. This may only be used on one `track` element per media element."}},{name:"kind",valueSet:"tk",description:{kind:"markdown",value:"How the text track is meant to be used. If omitted the default kind is `subtitles`. If the attribute is not present, it will use the `subtitles`. If the attribute contains an invalid value, it will use `metadata`. (Versions of Chrome earlier than 52 treated an invalid value as `subtitles`.)\xa0The following keywords are allowed:\n\n* `subtitles`\n * Subtitles provide translation of content that cannot be understood by the viewer. For example dialogue or text that is not English in an English language film.\n * Subtitles may contain additional content, usually extra background information. For example the text at the beginning of the Star Wars films, or the date, time, and location of a scene.\n* `captions`\n * Closed captions provide a transcription and possibly a translation of audio.\n * It may include important non-verbal information such as music cues or sound effects. It may indicate the cue's source (e.g. music, text, character).\n * Suitable for users who are deaf or when the sound is muted.\n* `descriptions`\n * Textual description of the video content.\n * Suitable for users who are blind or where the video cannot be seen.\n* `chapters`\n * Chapter titles are intended to be used when the user is navigating the media resource.\n* `metadata`\n * Tracks used by scripts. Not visible to the user."}},{name:"label",description:{kind:"markdown",value:"A user-readable title of the text track which is used by the browser when listing available text tracks."}},{name:"src",description:{kind:"markdown",value:'Address of the track (`.vtt` file). Must be a valid URL. This attribute must be specified and its URL value must have the same origin as the document \u2014 unless the [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element:\xa0the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") or [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document.") parent element of the `track` element has a [`crossorigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) attribute.'}},{name:"srclang",description:{kind:"markdown",value:"Language of the track text data. It must be a valid [BCP 47](https://r12a.github.io/app-subtags/) language tag. If the `kind` attribute is set to\xa0`subtitles,` then `srclang` must be defined."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/track"}]},{name:"map",description:{kind:"markdown",value:"The map element, in conjunction with an img element and any area element descendants, defines an image map. The element represents its children."},attributes:[{name:"name",description:{kind:"markdown",value:"The name attribute gives the map a name so that it can be referenced. The attribute must be present and must have a non-empty value with no space characters. The value of the name attribute must not be a compatibility-caseless match for the value of the name attribute of another map element in the same document. If the id attribute is also specified, both attributes must have the same value."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/map"}]},{name:"area",description:{kind:"markdown",value:"The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map."},void:!0,attributes:[{name:"alt"},{name:"coords"},{name:"shape",valueSet:"sh"},{name:"href"},{name:"target",valueSet:"target"},{name:"download"},{name:"ping"},{name:"rel"},{name:"hreflang"},{name:"type"},{name:"accesskey",description:"Specifies a keyboard navigation accelerator for the element. Pressing ALT or a similar key in association with the specified character selects the form control correlated with that key sequence. Page designers are forewarned to avoid key sequences already bound to browsers. This attribute is global since HTML5."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/area"}]},{name:"table",description:{kind:"markdown",value:"The table element represents data with more than one dimension, in the form of a table."},attributes:[{name:"border"},{name:"align",description:'This enumerated attribute indicates how the table must be aligned inside the containing document. It may have the following values:\n\n* left: the table is displayed on the left side of the document;\n* center: the table is displayed in the center of the document;\n* right: the table is displayed on the right side of the document.\n\n**Usage Note**\n\n* **Do not use this attribute**, as it has been deprecated. The [`<table>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table "The HTML <table> element represents tabular data \u2014 that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). Set [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") and [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") to `auto` or [`margin`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin "The margin CSS property sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left.") to `0 auto` to achieve an effect that is similar to the align attribute.\n* Prior to Firefox 4, Firefox also supported the `middle`, `absmiddle`, and `abscenter` values as synonyms of `center`, in quirks mode only.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/table"}]},{name:"caption",description:{kind:"markdown",value:"The caption element represents the title of the table that is its parent, if it has a parent and that is a table element."},attributes:[{name:"align",description:'This enumerated attribute indicates how the caption must be aligned with respect to the table. It may have one of the following values:\n\n`left`\n\nThe caption is displayed to the left of the table.\n\n`top`\n\nThe caption is displayed above the table.\n\n`right`\n\nThe caption is displayed to the right of the table.\n\n`bottom`\n\nThe caption is displayed below the table.\n\n**Usage note:** Do not use this attribute, as it has been deprecated. The [`<caption>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption "The HTML Table Caption element (<caption>) specifies the caption (or title) of a table, and if used is always the first child of a <table>.") element should be styled using the [CSS](https://developer.mozilla.org/en-US/docs/CSS) properties [`caption-side`](https://developer.mozilla.org/en-US/docs/Web/CSS/caption-side "The caption-side CSS property puts the content of a table\'s <caption> on the specified side. The values are relative to the writing-mode of the table.") and [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/caption"}]},{name:"colgroup",description:{kind:"markdown",value:"The colgroup element represents a group of one or more columns in the table that is its parent, if it has a parent and that is a table element."},attributes:[{name:"span"},{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed. The descendant [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") elements may override this value using their own [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-align) attribute.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use one `td:nth-child(an+b)` CSS selector per column, where a is the total number of the columns in the table and b is the ordinal position of this column in the table. Only after this selector the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property can be used.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/colgroup"}]},{name:"col",description:{kind:"markdown",value:"If a col element has a parent and that is a colgroup element that itself has a parent that is a table element, then the col element represents one or more columns in the column group represented by that colgroup."},void:!0,attributes:[{name:"span"},{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, its value is inherited from the [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-align) of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element this `<col>` element belongs too. If there are none, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use the `td:nth-child(an+b)` CSS selector. Set `a` to zero and `b` to the position of the column in the table, e.g. `td:nth-child(2) { text-align: right; }` to right-align the second column.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/col"}]},{name:"tbody",description:{kind:"markdown",value:"The tbody element represents a block of rows that consist of a body of data for the parent table element, if the tbody element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes.\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tbody"}]},{name:"thead",description:{kind:"markdown",value:"The thead element represents the block of rows that consist of the column labels (headers) for the parent table element, if the thead element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/thead"}]},{name:"tfoot",description:{kind:"markdown",value:"The tfoot element represents the block of rows that consist of the column summaries (footers) for the parent table element, if the tfoot element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tfoot"}]},{name:"tr",description:{kind:"markdown",value:"The tr element represents a row of cells in a table."},attributes:[{name:"align",description:'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") which specifies how the cell\'s context should be aligned horizontally within the cells in the row; this is shorthand for using `align` on every cell in the row individually. Possible values are:\n\n`left`\n\nAlign the content of each cell at its left edge.\n\n`center`\n\nCenter the contents of each cell between their left and right edges.\n\n`right`\n\nAlign the content of each cell at its right edge.\n\n`justify`\n\nWiden whitespaces within the text of each cell so that the text fills the full width of each cell (full justification).\n\n`char`\n\nAlign each cell in the row on a specific character (such that each row in the column that is configured this way will horizontally align its cells on that character). This uses the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-charoff) to establish the alignment character (typically "." or "," when aligning numerical data) and the number of characters that should follow the alignment character. This alignment type was never widely supported.\n\nIf no value is expressly set for `align`, the parent node\'s value is inherited.\n\nInstead of using the obsolete `align` attribute, you should instead use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to establish `left`, `center`, `right`, or `justify` alignment for the row\'s cells. To apply character-based alignment, set the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the alignment character (such as `"."` or `","`).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tr"}]},{name:"td",description:{kind:"markdown",value:"The td element represents a data cell in a table."},attributes:[{name:"colspan"},{name:"rowspan"},{name:"headers"},{name:"abbr",description:"This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard. Alternatively, you can put the abbreviated description inside the cell and place the long content in the **title** attribute."},{name:"align",description:'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-charoff) attributes Unimplemented (see [bug\xa02212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char). Unimplemented in CSS3.'},{name:"axis",description:"This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard."},{name:"bgcolor",description:'This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by \'#\'. This attribute may be used with one of sixteen predefined color strings:\n\n\xa0\n\n`black` = "#000000"\n\n\xa0\n\n`green` = "#008000"\n\n\xa0\n\n`silver` = "#C0C0C0"\n\n\xa0\n\n`lime` = "#00FF00"\n\n\xa0\n\n`gray` = "#808080"\n\n\xa0\n\n`olive` = "#808000"\n\n\xa0\n\n`white` = "#FFFFFF"\n\n\xa0\n\n`yellow` = "#FFFF00"\n\n\xa0\n\n`maroon` = "#800000"\n\n\xa0\n\n`navy` = "#000080"\n\n\xa0\n\n`red` = "#FF0000"\n\n\xa0\n\n`blue` = "#0000FF"\n\n\xa0\n\n`purple` = "#800080"\n\n\xa0\n\n`teal` = "#008080"\n\n\xa0\n\n`fuchsia` = "#FF00FF"\n\n\xa0\n\n`aqua` = "#00FFFF"\n\n**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To create a similar effect use the [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/CSS) instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/td"}]},{name:"th",description:{kind:"markdown",value:"The th element represents a header cell in a table."},attributes:[{name:"colspan"},{name:"rowspan"},{name:"headers"},{name:"scope",valueSet:"s"},{name:"sorted"},{name:"abbr",description:{kind:"markdown",value:"This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself."}},{name:"align",description:'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-charoff) attributes.\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char). Unimplemented in CSS3.'},{name:"axis",description:"This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard: use the [`scope`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope) attribute instead."},{name:"bgcolor",description:'This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by \'#\'. This attribute may be used with one of sixteen predefined color strings:\n\n\xa0\n\n`black` = "#000000"\n\n\xa0\n\n`green` = "#008000"\n\n\xa0\n\n`silver` = "#C0C0C0"\n\n\xa0\n\n`lime` = "#00FF00"\n\n\xa0\n\n`gray` = "#808080"\n\n\xa0\n\n`olive` = "#808000"\n\n\xa0\n\n`white` = "#FFFFFF"\n\n\xa0\n\n`yellow` = "#FFFF00"\n\n\xa0\n\n`maroon` = "#800000"\n\n\xa0\n\n`navy` = "#000080"\n\n\xa0\n\n`red` = "#FF0000"\n\n\xa0\n\n`blue` = "#0000FF"\n\n\xa0\n\n`purple` = "#800080"\n\n\xa0\n\n`teal` = "#008080"\n\n\xa0\n\n`fuchsia` = "#FF00FF"\n\n\xa0\n\n`aqua` = "#00FFFF"\n\n**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [`<th>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th "The HTML <th> element defines a cell as header of a group of table cells. The exact nature of this group is defined by the scope and headers attributes.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS). To create a similar effect use the [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/th"}]},{name:"form",description:{kind:"markdown",value:"The form element represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing."},attributes:[{name:"accept-charset",description:{kind:"markdown",value:'A space- or comma-delimited list of character encodings that the server accepts. The browser uses them in the order in which they are listed. The default value, the reserved string `"UNKNOWN"`, indicates the same encoding as that of the document containing the form element. \nIn previous versions of HTML, the different character encodings could be delimited by spaces or commas. In HTML5, only spaces are allowed as delimiters.'}},{name:"action",description:{kind:"markdown",value:'The URI of a program that processes the form information. This value can be overridden by a [`formaction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formaction) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"autocomplete",valueSet:"o",description:{kind:"markdown",value:"Indicates whether input elements can by default have their values automatically completed by the browser. This setting can be overridden by an `autocomplete` attribute on an element belonging to the form. Possible values are:\n\n* `off`: The user must explicitly enter a value into each field for every use, or the document provides its own auto-completion method; the browser does not automatically complete entries.\n* `on`: The browser can automatically complete values based on values that the user has previously entered in the form.\n\nFor most modern browsers (including Firefox 38+, Google Chrome 34+, IE 11+) setting the autocomplete attribute will not prevent a browser's password manager from asking the user if they want to store login fields (username and password), if the user permits the storage the browser will autofill the login the next time the user visits the page. See [The autocomplete attribute and login fields](https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#The_autocomplete_attribute_and_login_fields).\n**Note:** If you set `autocomplete` to `off` in a form because the document provides its own auto-completion, then you should also set `autocomplete` to `off` for each of the form's `input` elements that the document can auto-complete. For details, see the note regarding Google Chrome in the [Browser Compatibility chart](#compatChart)."}},{name:"enctype",valueSet:"et",description:{kind:"markdown",value:'When the value of the `method` attribute is `post`, enctype is the [MIME type](https://en.wikipedia.org/wiki/Mime_type) of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: The value used for an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the `type` attribute set to "file".\n* `text/plain`: (HTML5)\n\nThis value can be overridden by a [`formenctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formenctype) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"method",valueSet:"m",description:{kind:"markdown",value:'The [HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) method that the browser uses to submit the form. Possible values are:\n\n* `post`: Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5) ; form data are included in the body of the form and sent to the server.\n* `get`: Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a \'?\' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n* `dialog`: Use when the form is inside a\xa0[`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog "The HTML <dialog> element represents a dialog box or other interactive component, such as an inspector or window.") element to close the dialog when submitted.\n\nThis value can be overridden by a [`formmethod`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formmethod) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"name",description:{kind:"markdown",value:"The name of the form. In HTML 4, its use is deprecated (`id` should be used instead). It must be unique among the forms in a document and not just an empty string in HTML 5."}},{name:"novalidate",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the form is not to be validated when submitted. If this attribute is not specified (and therefore the form is validated), this default setting can be overridden by a [`formnovalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formnovalidate) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element belonging to the form.'}},{name:"target",valueSet:"target",description:{kind:"markdown",value:'A name or keyword indicating where to display the response that is received after submitting the form. In HTML 4, this is the name/keyword for a frame. In HTML5, it is a name/keyword for a _browsing context_ (for example, tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the response into the same HTML 4 frame (or HTML5 browsing context) as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed HTML 4 window or HTML5 browsing context.\n* `_parent`: Load the response into the HTML 4 frameset parent of the current frame, or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: HTML 4: Load the response into the full original window, and cancel all other frames. HTML5: Load the response into the top-level browsing context (i.e., the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n* _iframename_: The response is displayed in a named [`<iframe>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe "The HTML Inline Frame element (<iframe>) represents a nested browsing context, embedding another HTML page into the current one.").\n\nHTML5: This value can be overridden by a [`formtarget`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formtarget) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"accept",description:'A comma-separated list of content types that the server accepts.\n\n**Usage note:** This attribute has been removed in HTML5 and should no longer be used. Instead, use the [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept) attribute of the specific [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'},{name:"autocapitalize",description:"This is a nonstandard attribute used by iOS Safari Mobile which controls whether and how the text value for textual form control descendants should be automatically capitalized as it is entered/edited by the user. If the `autocapitalize` attribute is specified on an individual form control descendant, it trumps the form-wide `autocapitalize` setting. The non-deprecated values are available in iOS 5 and later. The default value is `sentences`. Possible values are:\n\n* `none`: Completely disables automatic capitalization\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/form"}]},{name:"label",description:{kind:"markdown",value:"The label element represents a caption in a user interface. The caption can be associated with a specific form control, known as the label element's labeled control, either using the for attribute, or by putting the form control inside the label element itself."},attributes:[{name:"form",description:{kind:"markdown",value:'The [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element with which the label is associated (its _form owner_). If specified, the value of the attribute is the `id` of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. This lets you place label elements anywhere within a document, not just as descendants of their form elements.'}},{name:"for",description:{kind:"markdown",value:"The [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-id) of a [labelable](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Form_labelable) form-related element in the same document as the `<label>` element. The first element in the document with an `id` matching the value of the `for` attribute is the _labeled control_ for this label element, if it is a labelable element. If it is\xa0not labelable then the `for` attribute has no effect. If there are other elements which also match the `id` value, later in the document, they are not considered.\n\n**Note**: A `<label>` element can have both a `for` attribute and a contained control element, as long as the `for` attribute points to the contained control element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/label"}]},{name:"input",description:{kind:"markdown",value:"The input element represents a typed data field, usually with a form control to allow the user to edit the data."},void:!0,attributes:[{name:"accept"},{name:"alt"},{name:"autocomplete",valueSet:"inputautocomplete"},{name:"autofocus",valueSet:"v"},{name:"checked",valueSet:"v"},{name:"dirname"},{name:"disabled",valueSet:"v"},{name:"form"},{name:"formaction"},{name:"formenctype",valueSet:"et"},{name:"formmethod",valueSet:"fm"},{name:"formnovalidate",valueSet:"v"},{name:"formtarget"},{name:"height"},{name:"inputmode",valueSet:"im"},{name:"list"},{name:"max"},{name:"maxlength"},{name:"min"},{name:"minlength"},{name:"multiple",valueSet:"v"},{name:"name"},{name:"pattern"},{name:"placeholder"},{name:"readonly",valueSet:"v"},{name:"required",valueSet:"v"},{name:"size"},{name:"src"},{name:"step"},{name:"type",valueSet:"t"},{name:"value"},{name:"width"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/input"}]},{name:"button",description:{kind:"markdown",value:"The button element represents a button labeled by its contents."},attributes:[{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that the button should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form-associated element in a document can have this attribute specified."}},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the user cannot interact with the button. If this attribute is not specified, the button inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element with the **disabled** attribute set, then the button is enabled.\n\nFirefox will, unlike other browsers, by default, [persist the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Use the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-autocomplete) attribute to control this feature.'}},{name:"form",description:{kind:"markdown",value:'The form element that the button is associated with (its _form owner_). The value of the attribute must be the **id** attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. If this attribute is not specified, the `<button>` element will be associated to an ancestor [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element, if one exists. This attribute enables you to associate `<button>` elements to [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements anywhere within a document, not just as descendants of [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements.'}},{name:"formaction",description:{kind:"markdown",value:"The URI of a program that processes the information submitted by the button. If specified, it overrides the [`action`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action) attribute of the button's form owner."}},{name:"formenctype",valueSet:"et",description:{kind:"markdown",value:'If the button is a submit button, this attribute specifies the type of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: Use this value if you are using an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-type) attribute set to `file`.\n* `text/plain`\n\nIf this attribute is specified, it overrides the [`enctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-enctype) attribute of the button\'s form owner.'}},{name:"formmethod",valueSet:"fm",description:{kind:"markdown",value:"If the button is a submit button, this attribute specifies the HTTP method that the browser uses to submit the form. Possible values are:\n\n* `post`: The data from the form are included in the body of the form and sent to the server.\n* `get`: The data from the form are appended to the **form** attribute URI, with a '?' as a separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n\nIf specified, this attribute overrides the [`method`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-method) attribute of the button's form owner."}},{name:"formnovalidate",valueSet:"v",description:{kind:"markdown",value:"If the button is a submit button, this Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the [`novalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-novalidate) attribute of the button's form owner."}},{name:"formtarget",description:{kind:"markdown",value:"If the button is a submit button, this attribute is a name or keyword indicating where to display the response that is received after submitting the form. This is a name of, or keyword for, a _browsing context_ (for example, tab, window, or inline frame). If this attribute is specified, it overrides the [`target`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-target) attribute of the button's form owner. The following keywords have special meanings:\n\n* `_self`: Load the response into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed browsing context.\n* `_parent`: Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`."}},{name:"name",description:{kind:"markdown",value:"The name of the button, which is submitted with the form data."}},{name:"type",valueSet:"bt",description:{kind:"markdown",value:"The type of the button. Possible values are:\n\n* `submit`: The button submits the form data to the server. This is the default if the attribute is not specified, or if the attribute is dynamically changed to an empty or invalid value.\n* `reset`: The button resets all the controls to their initial values.\n* `button`: The button has no default behavior. It can have client-side scripts associated with the element's events, which are triggered when the events occur."}},{name:"value",description:{kind:"markdown",value:"The initial value of the button. It defines the value associated with the button which is submitted with the form data. This value is passed to the server in params when the form is submitted."}},{name:"autocomplete",description:'The use of this attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") is nonstandard and Firefox-specific. By default, unlike other browsers, [Firefox persists the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Setting the value of this attribute to `off` (i.e. `autocomplete="off"`) disables this feature. See [bug\xa0654072](https://bugzilla.mozilla.org/show_bug.cgi?id=654072 "if disabled state is changed with javascript, the normal state doesn\'t return after refreshing the page").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/button"}]},{name:"select",description:{kind:"markdown",value:"The select element represents a control for selecting amongst a set of options."},attributes:[{name:"autocomplete",valueSet:"inputautocomplete",description:{kind:"markdown",value:'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") providing a hint for a [user agent\'s](https://developer.mozilla.org/en-US/docs/Glossary/user_agent "user agent\'s: A user agent is a computer program representing a person, for example, a browser in a Web context.") autocomplete feature. See [The HTML autocomplete attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for a complete list of values and details on how to use autocomplete.'}},{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form element in a document can have the `autofocus` attribute."}},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example `fieldset`; if there is no containing element with the `disabled` attribute set, then the control is enabled."}},{name:"form",description:{kind:"markdown",value:'This attribute lets you specify the form element to\xa0which\xa0the select element is associated\xa0(that is, its "form owner"). If this attribute is specified, its value must be the same as the `id` of a form element in the same document. This enables you to place select elements anywhere within a document, not just as descendants of their form elements.'}},{name:"multiple",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that multiple options can be selected in the list. If it is not specified, then only one option can be selected at a time. When `multiple` is specified, most browsers will show a scrolling list box instead of a single line dropdown."}},{name:"name",description:{kind:"markdown",value:"This attribute is used to specify the name of the control."}},{name:"required",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute indicating that an option with a non-empty string value must be selected."}},{name:"size",description:{kind:"markdown",value:"If the control is presented as a scrolling list box (e.g. when `multiple` is specified), this attribute represents the number of rows in the list that should be visible at one time. Browsers are not required to present a select element as a scrolled list box. The default value is 0.\n\n**Note:** According to the HTML5 specification, the default value for size should be 1; however, in practice, this has been found to break some web sites, and no other browser currently does that, so Mozilla has opted to continue to return 0 for the time being with Firefox."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/select"}]},{name:"datalist",description:{kind:"markdown",value:"The datalist element represents a set of option elements that represent predefined options for other controls. In the rendering, the datalist element represents nothing and it, along with its children, should be hidden."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/datalist"}]},{name:"optgroup",description:{kind:"markdown",value:"The optgroup element represents a group of option elements with a common label."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"If this Boolean attribute is set, none of the items in this option group is selectable. Often browsers grey out such control and it won't receive any browsing events, like mouse clicks or focus-related ones."}},{name:"label",description:{kind:"markdown",value:"The name of the group of options, which the browser can use when labeling the options in the user interface. This attribute is mandatory if this element is used."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/optgroup"}]},{name:"option",description:{kind:"markdown",value:"The option element represents an option in a select element or as part of a list of suggestions in a datalist element."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'If this Boolean attribute is set, this option is not checkable. Often browsers grey out such control and it won\'t receive any browsing event, like mouse clicks or focus-related ones. If this attribute is not set, the element can still be disabled if one of its ancestors is a disabled [`<optgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup "The HTML <optgroup> element creates a grouping of options within a <select> element.") element.'}},{name:"label",description:{kind:"markdown",value:"This attribute is text for the label indicating the meaning of the option. If the `label` attribute isn't defined, its value is that of the element text content."}},{name:"selected",valueSet:"v",description:{kind:"markdown",value:'If present, this Boolean attribute indicates that the option is initially selected. If the `<option>` element is the descendant of a [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element whose [`multiple`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-multiple) attribute is not set, only one single `<option>` of this [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element may have the `selected` attribute.'}},{name:"value",description:{kind:"markdown",value:"The content of this attribute represents the value to be submitted with the form, should this option be selected.\xa0If this attribute is omitted, the value is taken from the text content of the option element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/option"}]},{name:"textarea",description:{kind:"markdown",value:"The textarea element represents a multiline plain text edit control for the element's raw value. The contents of the control represent the control's default value."},attributes:[{name:"autocomplete",valueSet:"inputautocomplete",description:{kind:"markdown",value:'This attribute indicates whether the value of the control can be automatically completed by the browser. Possible values are:\n\n* `off`: The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry.\n* `on`: The browser can automatically complete the value based on values that the user has entered during previous uses.\n\nIf the `autocomplete` attribute is not specified on a `<textarea>` element, then the browser uses the `autocomplete` attribute value of the `<textarea>` element\'s form owner. The form owner is either the [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element that this `<textarea>` element is a descendant of or the form element whose `id` is specified by the `form` attribute of the input element. For more information, see the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-autocomplete) attribute in [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.").'}},{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form-associated element in a document can have this attribute specified."}},{name:"cols",description:{kind:"markdown",value:"The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. If it is not specified, the default value is `20`."}},{name:"dirname"},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element when the `disabled` attribute is set, the control is enabled.'}},{name:"form",description:{kind:"markdown",value:'The form element that the `<textarea>` element is associated with (its "form owner"). The value of the attribute must be the `id` of a form element in the same document. If this attribute is not specified, the `<textarea>` element must be a descendant of a form element. This attribute enables you to place `<textarea>` elements anywhere within a document, not just as descendants of form elements.'}},{name:"inputmode",valueSet:"im"},{name:"maxlength",description:{kind:"markdown",value:"The maximum number of characters (unicode code points) that the user can enter. If this value isn't specified, the user can enter an unlimited number of characters."}},{name:"minlength",description:{kind:"markdown",value:"The minimum number of characters (unicode code points) required that the user should enter."}},{name:"name",description:{kind:"markdown",value:"The name of the control."}},{name:"placeholder",description:{kind:"markdown",value:'A hint to the user of what can be entered in the control. Carriage returns or line-feeds within the placeholder text must be treated as line breaks when rendering the hint.\n\n**Note:** Placeholders should only be used to show an example of the type of data that should be entered into a form; they are _not_ a substitute for a proper [`<label>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label "The HTML <label> element represents a caption for an item in a user interface.") element tied to the input. See [Labels and placeholders](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Labels_and_placeholders "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") in [<input>: The Input (Form Input) element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") for a full explanation.'}},{name:"readonly",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that the user cannot modify the value of the control. Unlike the `disabled` attribute, the `readonly` attribute does not prevent the user from clicking or selecting in the control. The value of a read-only control is still submitted with the form."}},{name:"required",valueSet:"v",description:{kind:"markdown",value:"This attribute specifies that the user must fill in a value before submitting a form."}},{name:"rows",description:{kind:"markdown",value:"The number of visible text lines for the control."}},{name:"wrap",valueSet:"w",description:{kind:"markdown",value:"Indicates how the control wraps text. Possible values are:\n\n* `hard`: The browser automatically inserts line breaks (CR+LF) so that each line has no more than the width of the control; the `cols` attribute must also be specified for this to take effect.\n* `soft`: The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.\n* `off` : Like `soft` but changes appearance to `white-space: pre` so line segments exceeding `cols` are not wrapped and the `<textarea>` becomes horizontally scrollable.\n\nIf this attribute is not specified, `soft` is its default value."}},{name:"autocapitalize",description:"This is a non-standard attribute supported by WebKit on iOS (therefore nearly all browsers running on iOS, including Safari, Firefox, and Chrome), which controls whether and how the text value should be automatically capitalized as it is entered/edited by the user. The non-deprecated values are available in iOS 5 and later. Possible values are:\n\n* `none`: Completely disables automatic capitalization.\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."},{name:"spellcheck",description:"Specifies whether the `<textarea>` is subject to spell checking by the underlying browser/OS. the value can be:\n\n* `true`: Indicates that the element needs to have its spelling and grammar checked.\n* `default` : Indicates that the element is to act according to a default behavior, possibly based on the parent element's own `spellcheck` value.\n* `false` : Indicates that the element should not be spell checked."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/textarea"}]},{name:"output",description:{kind:"markdown",value:"The output element represents the result of a calculation performed by the application, or the result of a user action."},attributes:[{name:"for",description:{kind:"markdown",value:"A space-separated list of other elements\u2019 [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id)s, indicating that those elements contributed input values to (or otherwise affected) the calculation."}},{name:"form",description:{kind:"markdown",value:'The [form element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) that this element is associated with (its "form owner"). The value of the attribute must be an `id` of a form element in the same document. If this attribute is not specified, the output element must be a descendant of a form element. This attribute enables you to place output elements anywhere within a document, not just as descendants of their form elements.'}},{name:"name",description:{kind:"markdown",value:'The name of the element, exposed in the [`HTMLFormElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement "The HTMLFormElement interface represents a <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements.") API.'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/output"}]},{name:"progress",description:{kind:"markdown",value:"The progress element represents the completion progress of a task. The progress is either indeterminate, indicating that progress is being made but that it is not clear how much more work remains to be done before the task is complete (e.g. because the task is waiting for a remote host to respond), or the progress is a number in the range zero to a maximum, giving the fraction of work that has so far been completed."},attributes:[{name:"value",description:{kind:"markdown",value:"This attribute specifies how much of the task that has been completed. It must be a valid floating point number between 0 and `max`, or between 0 and 1 if `max` is omitted. If there is no `value` attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take."}},{name:"max",description:{kind:"markdown",value:"This attribute describes how much work the task indicated by the `progress` element requires. The `max` attribute, if present, must have a value greater than zero and be a valid floating point number. The default value is 1."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/progress"}]},{name:"meter",description:{kind:"markdown",value:"The meter element represents a scalar measurement within a known range, or a fractional value; for example disk usage, the relevance of a query result, or the fraction of a voting population to have selected a particular candidate."},attributes:[{name:"value",description:{kind:"markdown",value:"The current numeric value. This must be between the minimum and maximum values (`min` attribute and `max` attribute) if they are specified. If unspecified or malformed, the value is 0. If specified, but not within the range given by the `min` attribute and `max` attribute, the value is equal to the nearest end of the range.\n\n**Usage note:** Unless the `value` attribute is between `0` and `1` (inclusive), the `min` and `max` attributes should define the range so that the `value` attribute's value is within it."}},{name:"min",description:{kind:"markdown",value:"The lower numeric bound of the measured range. This must be less than the maximum value (`max` attribute), if specified. If unspecified, the minimum value is 0."}},{name:"max",description:{kind:"markdown",value:"The upper numeric bound of the measured range. This must be greater than the minimum value (`min` attribute), if specified. If unspecified, the maximum value is 1."}},{name:"low",description:{kind:"markdown",value:"The upper numeric bound of the low end of the measured range. This must be greater than the minimum value (`min` attribute), and it also must be less than the high value and maximum value (`high` attribute and `max` attribute, respectively), if any are specified. If unspecified, or if less than the minimum value, the `low` value is equal to the minimum value."}},{name:"high",description:{kind:"markdown",value:"The lower numeric bound of the high end of the measured range. This must be less than the maximum value (`max` attribute), and it also must be greater than the low value and minimum value (`low` attribute and **min** attribute, respectively), if any are specified. If unspecified, or if greater than the maximum value, the `high` value is equal to the maximum value."}},{name:"optimum",description:{kind:"markdown",value:"This attribute indicates the optimal numeric value. It must be within the range (as defined by the `min` attribute and `max` attribute). When used with the `low` attribute and `high` attribute, it gives an indication where along the range is considered preferable. For example, if it is between the `min` attribute and the `low` attribute, then the lower range is considered preferred."}},{name:"form",description:"This attribute associates the element with a `form` element that has ownership of the `meter` element. For example, a `meter` might be displaying a range corresponding to an `input` element of `type` _number_. This attribute is only used if the `meter` element is being used as a form-associated element; even then, it may be omitted if the element appears as a descendant of a `form` element."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/meter"}]},{name:"fieldset",description:{kind:"markdown",value:"The fieldset element represents a set of form controls optionally grouped under a common name."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"If this Boolean attribute is set, all form controls that are descendants of the `<fieldset>`, are disabled, meaning they are not editable and won't be submitted along with the `<form>`. They won't receive any browsing events, like mouse clicks or focus-related events. By default browsers display such controls grayed out. Note that form elements inside the [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend \"The HTML <legend> element represents a caption for the content of its parent <fieldset>.\") element won't be disabled."}},{name:"form",description:{kind:"markdown",value:'This attribute takes the value of the `id` attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element you want the `<fieldset>` to be part of, even if it is not inside the form.'}},{name:"name",description:{kind:"markdown",value:'The name associated with the group.\n\n**Note**: The caption for the fieldset is given by the first [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend "The HTML <legend> element represents a caption for the content of its parent <fieldset>.") element nested inside it.'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/fieldset"}]},{name:"legend",description:{kind:"markdown",value:"The legend element represents a caption for the rest of the contents of the legend element's parent fieldset element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/legend"}]},{name:"details",description:{kind:"markdown",value:"The details element represents a disclosure widget from which the user can obtain additional information or controls."},attributes:[{name:"open",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates whether or not the details \u2014 that is, the contents of the `<details>` element \u2014 are currently visible. The default, `false`, means the details are not visible."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/details"}]},{name:"summary",description:{kind:"markdown",value:"The summary element represents a summary, caption, or legend for the rest of the contents of the summary element's parent details element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/summary"}]},{name:"dialog",description:{kind:"markdown",value:"The dialog element represents a part of an application that a user interacts with to perform a task, for example a dialog box, inspector, or window."},attributes:[{name:"open",description:"Indicates that the dialog is active and available for interaction. When the `open` attribute is not set, the dialog shouldn't be shown to the user."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dialog"}]},{name:"script",description:{kind:"markdown",value:"The script element allows authors to include dynamic script and data blocks in their documents. The element does not represent content for the user."},attributes:[{name:"src",description:{kind:"markdown",value:"This attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a document.\n\nIf a `script` element has a `src` attribute specified, it should not have a script embedded inside its tags."}},{name:"type",description:{kind:"markdown",value:'This attribute indicates the type of script represented. The value of this attribute will be in one of the following categories:\n\n* **Omitted or a JavaScript MIME type:** For HTML5-compliant browsers this indicates the script is JavaScript. HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type. In earlier browsers, this identified the scripting language of the embedded or imported (via the `src` attribute) code. JavaScript MIME types are [listed in the specification](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#JavaScript_types).\n* **`module`:** For HTML5-compliant browsers the code is treated as a JavaScript module. The processing of the script contents is not affected by the `charset` and `defer` attributes. For information on using `module`, see [ES6 in Depth: Modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/). Code may behave differently when the `module` keyword is used.\n* **Any other value:** The embedded content is treated as a data block which won\'t be processed by the browser. Developers must use a valid MIME type that is not a JavaScript MIME type to denote data blocks. The `src` attribute will be ignored.\n\n**Note:** in Firefox you could specify the version of JavaScript contained in a `<script>` element by including a non-standard `version` parameter inside the `type` attribute \u2014 for example `type="text/javascript;version=1.8"`. This has been removed in Firefox 59 (see [bug\xa01428745](https://bugzilla.mozilla.org/show_bug.cgi?id=1428745 "FIXED: Remove support for version parameter from script loader")).'}},{name:"charset"},{name:"async",valueSet:"v",description:{kind:"markdown",value:'This is a Boolean attribute indicating that the browser should, if possible, load the script asynchronously.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts). If it is included in this case it will have no effect.\n\nBrowsers usually assume the worst case scenario and load scripts synchronously, (i.e. `async="false"`) during HTML parsing.\n\nDynamically inserted scripts (using [`document.createElement()`](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement "In an HTML document, the document.createElement() method creates the HTML element specified by tagName, or an HTMLUnknownElement if tagName isn\'t recognized.")) load asynchronously by default, so to turn on synchronous loading (i.e. scripts load in the order they were inserted) set `async="false"`.\n\nSee [Browser compatibility](#Browser_compatibility) for notes on browser support. See also [Async scripts for asm.js](https://developer.mozilla.org/en-US/docs/Games/Techniques/Async_scripts).'}},{name:"defer",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firing [`DOMContentLoaded`](https://developer.mozilla.org/en-US/docs/Web/Events/DOMContentLoaded "/en-US/docs/Web/Events/DOMContentLoaded").\n\nScripts with the `defer` attribute will prevent the `DOMContentLoaded` event from firing until the script has loaded and finished evaluating.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts), in this case it would have no effect.\n\nTo achieve a similar effect for dynamically inserted scripts use `async="false"` instead. Scripts with the `defer` attribute will execute in the order in which they appear in the document.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'Normal `script` elements pass minimal information to the [`window.onerror`](https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror "The onerror property of the GlobalEventHandlers mixin is an EventHandler that processes error events.") for scripts which do not pass the standard [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") checks. To allow error logging for sites which use a separate domain for static media, use this attribute. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for a more descriptive explanation of its valid arguments.'}},{name:"nonce",description:{kind:"markdown",value:"A cryptographic nonce (number used once) to list the allowed inline scripts in a [script-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource's policy is otherwise trivial."}},{name:"integrity",description:"This attribute contains inline metadata that a user agent can use to verify that a fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"nomodule",description:"This Boolean attribute is set to indicate that the script should not be executed in browsers that support [ES2015 modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/) \u2014 in effect, this can be used to serve fallback scripts to older browsers that do not support modular JavaScript code."},{name:"referrerpolicy",description:'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the script, or resources fetched by the script:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (e.g. HTTPS\u2192HTTPS), but don\'t send it to a less secure destination (e.g. HTTPS\u2192HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, but only send the origin when the protocol security level stays the same (e.g.HTTPS\u2192HTTPS), and send no header to a less secure destination (e.g. HTTPS\u2192HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.\n\n**Note**: An empty string value (`""`) is both the default value, and a fallback value if `referrerpolicy` is not supported. If `referrerpolicy` is not explicitly specified on the `<script>` element, it will adopt a higher-level referrer policy, i.e. one set on the whole document or domain. If a higher-level policy is not available,\xa0the empty string is treated as being equivalent to `no-referrer-when-downgrade`.'},{name:"text",description:"Like the `textContent` attribute, this attribute sets the text content of the element. Unlike the `textContent` attribute, however, this attribute is evaluated as executable code after the node is inserted into the DOM."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/script"}]},{name:"noscript",description:{kind:"markdown",value:"The noscript element represents nothing if scripting is enabled, and represents its children if scripting is disabled. It is used to present different markup to user agents that support scripting and those that don't support scripting, by affecting how the document is parsed."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/noscript"}]},{name:"template",description:{kind:"markdown",value:"The template element is used to declare fragments of HTML that can be cloned and inserted in the document by script."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/template"}]},{name:"canvas",description:{kind:"markdown",value:"The canvas element provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, art, or other visual images on the fly."},attributes:[{name:"width",description:{kind:"markdown",value:"The width of the coordinate space in CSS pixels. Defaults to 300."}},{name:"height",description:{kind:"markdown",value:"The height of the coordinate space in CSS pixels. Defaults to 150."}},{name:"moz-opaque",description:"Lets the canvas know whether or not translucency will be a factor. If the canvas knows there's no translucency, painting performance can be optimized. This is only supported by Mozilla-based browsers; use the standardized [`canvas.getContext('2d', { alpha: false })`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext \"The HTMLCanvasElement.getContext() method returns a drawing context on the canvas, or null if the context identifier is not supported.\") instead."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/canvas"}]},{name:"slot",description:{kind:"markdown",value:"The slot element is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together."},attributes:[{name:"name",description:{kind:"markdown",value:"The slot's name.\nA **named slot** is a `<slot>` element with a `name` attribute."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/slot"}]},{name:"data",description:{kind:"markdown",value:"The data element links a given piece of content with a machine-readable translation."},attributes:[{name:"value",description:{kind:"markdown",value:"This attribute specifies the machine-readable translation of the content of the element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/data"}]},{name:"hgroup",description:{kind:"markdown",value:"The hgroup element represents a heading and related content. It groups a single h1\u2013h6 element with one or more p."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/hgroup"}]},{name:"menu",description:{kind:"markdown",value:"The menu element represents an unordered list of interactive items."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/menu"}]}],globalAttributes:[{name:"accesskey",description:{kind:"markdown",value:"Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/accesskey"}]},{name:"autocapitalize",description:{kind:"markdown",value:"Controls whether and how text input is automatically capitalized as it is entered/edited by the user. It can have the following values:\n\n* `off` or `none`, no autocapitalization is applied (all letters default to lowercase)\n* `on` or `sentences`, the first letter of each sentence defaults to a capital letter; all other letters default to lowercase\n* `words`, the first letter of each word defaults to a capital letter; all other letters default to lowercase\n* `characters`, all letters should default to uppercase"},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/autocapitalize"}]},{name:"class",description:{kind:"markdown",value:'A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the [class selectors](https://developer.mozilla.org/docs/Web/CSS/Class_selectors) or functions like the method [`Document.getElementsByClassName()`](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName "returns an array-like object of all child elements which have all of the given class names.").'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/class"}]},{name:"contenteditable",description:{kind:"markdown",value:"An enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing. The attribute must take one of the following values:\n\n* `true` or the _empty string_, which indicates that the element must be editable;\n* `false`, which indicates that the element must not be editable."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contenteditable"}]},{name:"contextmenu",description:{kind:"markdown",value:'The `[**id**](#attr-id)` of a [`<menu>`](https://developer.mozilla.org/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.") to use as the contextual menu for this element.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contextmenu"}]},{name:"dir",description:{kind:"markdown",value:"An enumerated attribute indicating the directionality of the element's text. It can have the following values:\n\n* `ltr`, which means _left to right_ and is to be used for languages that are written from the left to the right (like English);\n* `rtl`, which means _right to left_ and is to be used for languages that are written from the right to the left (like Arabic);\n* `auto`, which lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then it applies that directionality to the whole element."},valueSet:"d",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/dir"}]},{name:"draggable",description:{kind:"markdown",value:"An enumerated attribute indicating whether the element can be dragged, using the [Drag and Drop API](https://developer.mozilla.org/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `true`, which indicates that the element may be dragged\n* `false`, which indicates that the element may not be dragged."},valueSet:"b",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/draggable"}]},{name:"dropzone",description:{kind:"markdown",value:"An enumerated attribute indicating what types of content can be dropped on an element, using the [Drag and Drop API](https://developer.mozilla.org/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `copy`, which indicates that dropping will create a copy of the element that was dragged\n* `move`, which indicates that the element that was dragged will be moved to this new location.\n* `link`, will create a link to the dragged data."}},{name:"exportparts",description:{kind:"markdown",value:"Used to transitively export shadow parts from a nested shadow tree into a containing light tree."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/exportparts"}]},{name:"hidden",description:{kind:"markdown",value:"A Boolean attribute indicates that the element is not yet, or is no longer, _relevant_. For example, it can be used to hide elements of the page that can't be used until the login process has been completed. The browser won't render such elements. This attribute must not be used to hide content that could legitimately be shown."},valueSet:"v",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/hidden"}]},{name:"id",description:{kind:"markdown",value:"Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS)."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/id"}]},{name:"inputmode",description:{kind:"markdown",value:'Provides a hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents. Used primarily on [`<input>`](https://developer.mozilla.org/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") elements, but is usable on any element while in `[contenteditable](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-contenteditable)` mode.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/inputmode"}]},{name:"is",description:{kind:"markdown",value:"Allows you to specify that a standard HTML element should behave like a registered custom built-in element (see [Using custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements) for more details)."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/is"}]},{name:"itemid",description:{kind:"markdown",value:"The unique, global identifier of an item."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemid"}]},{name:"itemprop",description:{kind:"markdown",value:"Used to add properties to an item. Every HTML element may have an `itemprop` attribute specified, where an `itemprop` consists of a name and value pair."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemprop"}]},{name:"itemref",description:{kind:"markdown",value:"Properties that are not descendants of an element with the `itemscope` attribute can be associated with the item using an `itemref`. It provides a list of element ids (not `itemid`s) with additional properties elsewhere in the document."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemref"}]},{name:"itemscope",description:{kind:"markdown",value:"`itemscope` (usually) works along with `[itemtype](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-itemtype)` to specify that the HTML contained in a block is about a particular item. `itemscope` creates the Item and defines the scope of the `itemtype` associated with it. `itemtype` is a valid URL of a vocabulary (such as [schema.org](https://schema.org/)) that describes the item and its properties context."},valueSet:"v",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemscope"}]},{name:"itemtype",description:{kind:"markdown",value:"Specifies the URL of the vocabulary that will be used to define `itemprop`s (item properties) in the data structure. `[itemscope](https://developer.mozilla.org/docs/Web/HTML/Global_attributes#attr-itemscope)` is used to set the scope of where in the data structure the vocabulary set by `itemtype` will be active."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemtype"}]},{name:"lang",description:{kind:"markdown",value:"Helps define the language of an element: the language that non-editable elements are in, or the language that editable elements should be written in by the user. The attribute contains one \u201clanguage tag\u201d (made of hyphen-separated \u201clanguage subtags\u201d) in the format defined in [_Tags for Identifying Languages (BCP47)_](https://www.ietf.org/rfc/bcp/bcp47.txt). [**xml:lang**](#attr-xml:lang) has priority over it."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/lang"}]},{name:"part",description:{kind:"markdown",value:'A space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the [`::part`](https://developer.mozilla.org/docs/Web/CSS/::part "The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute.") pseudo-element.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/part"}]},{name:"role",valueSet:"roles"},{name:"slot",description:{kind:"markdown",value:"Assigns a slot in a [shadow DOM](https://developer.mozilla.org/docs/Web/Web_Components/Shadow_DOM) shadow tree to an element: An element with a `slot` attribute is assigned to the slot created by the [`<slot>`](https://developer.mozilla.org/docs/Web/HTML/Element/slot \"The HTML <slot> element\u2014part of the Web Components technology suite\u2014is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.\") element whose `[name](https://developer.mozilla.org/docs/Web/HTML/Element/slot#attr-name)` attribute's value matches that `slot` attribute's value."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/slot"}]},{name:"spellcheck",description:{kind:"markdown",value:"An enumerated attribute defines whether the element may be checked for spelling errors. It may have the following values:\n\n* `true`, which indicates that the element should be, if possible, checked for spelling errors;\n* `false`, which indicates that the element should not be checked for spelling errors."},valueSet:"b",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/spellcheck"}]},{name:"style",description:{kind:"markdown",value:'Contains [CSS](https://developer.mozilla.org/docs/Web/CSS) styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. This attribute and the [`<style>`](https://developer.mozilla.org/docs/Web/HTML/Element/style "The HTML <style> element contains style information for a document, or part of a document.") element have mainly the purpose of allowing for quick styling, for example for testing purposes.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/style"}]},{name:"tabindex",description:{kind:"markdown",value:"An integer attribute indicating if the element can take input focus (is _focusable_), if it should participate to sequential keyboard navigation, and if so, at what position. It can take several values:\n\n* a _negative value_ means that the element should be focusable, but should not be reachable via sequential keyboard navigation;\n* `0` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;\n* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](https://developer.mozilla.org/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onmouseenter",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached."}},{name:"onmouseleave",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached."}},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"onpointercancel",description:{kind:"markdown",value:"The pointer is unlikely to produce any more events."}},{name:"onpointerdown",description:{kind:"markdown",value:"The pointer enters the active buttons state."}},{name:"onpointerenter",description:{kind:"markdown",value:"Pointing device is moved inside the hit-testing boundary."}},{name:"onpointerleave",description:{kind:"markdown",value:"Pointing device is moved out of the hit-testing boundary."}},{name:"onpointerlockchange",description:{kind:"markdown",value:"The pointer was locked or released."}},{name:"onpointerlockerror",description:{kind:"markdown",value:"It was impossible to lock the pointer for technical reasons or because the permission was denied."}},{name:"onpointermove",description:{kind:"markdown",value:"The pointer changed coordinates."}},{name:"onpointerout",description:{kind:"markdown",value:"The pointing device moved out of hit-testing boundary or leaves detectable hover range."}},{name:"onpointerover",description:{kind:"markdown",value:"The pointing device is moved into the hit-testing boundary."}},{name:"onpointerup",description:{kind:"markdown",value:"The pointer leaves the active buttons state."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:'\\[Deprecated in ARIA 1.1\\] Indicates an element\'s "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.'}},{name:"aria-haspopup",valueSet:"haspopup",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"get",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"post",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"get"},{name:"post"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"target",values:[{name:"_self"},{name:"_blank"},{name:"_parent"},{name:"_top"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"off"},{name:"on"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]},{name:"haspopup",values:[{name:"false",description:{kind:"markdown",value:"(default) Indicates the element does not have a popup."}},{name:"true",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"menu",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"listbox",description:{kind:"markdown",value:"Indicates the popup is a listbox."}},{name:"tree",description:{kind:"markdown",value:"Indicates the popup is a tree."}},{name:"grid",description:{kind:"markdown",value:"Indicates the popup is a grid."}},{name:"dialog",description:{kind:"markdown",value:"Indicates the popup is a dialog."}}]},{name:"decoding",values:[{name:"sync"},{name:"async"},{name:"auto"}]},{name:"loading",values:[{name:"eager",description:{kind:"markdown",value:"Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value)."}},{name:"lazy",description:{kind:"markdown",value:"Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases."}}]},{name:"referrerpolicy",values:[{name:"no-referrer"},{name:"no-referrer-when-downgrade"},{name:"origin"},{name:"origin-when-cross-origin"},{name:"same-origin"},{name:"strict-origin"},{name:"strict-origin-when-cross-origin"},{name:"unsafe-url"}]}]},_i=class{constructor(e){this.dataProviders=[],this.setDataProviders(!1!==e.useDefaultDataProvider,e.customDataProviders||[])}setDataProviders(e,t){this.dataProviders=[],e&&this.dataProviders.push(new En("html5",pi)),this.dataProviders.push(...t)}getDataProviders(){return this.dataProviders}isVoidElement(e,t){return!!e&&function(e,t,n){let i=0,r=e.length-1;for(;i<=r;){const s=(i+r)/2|0,o=n(e[s],t);if(o<0)i=s+1;else{if(!(o>0))return s;r=s-1}}return-(i+1)}(t,e.toLowerCase(),((e,t)=>e.localeCompare(t)))>=0}getVoidElements(e){const t=Array.isArray(e)?e:this.getDataProviders().filter((t=>t.isApplicable(e))),n=[];return t.forEach((e=>{e.provideTags().filter((e=>e.void)).forEach((e=>n.push(e.name)))})),n.sort()}isPathAttribute(e,t){if("src"===t||"href"===t)return!0;const n=bi[e];return!!n&&("string"===typeof n?n===t:-1!==n.indexOf(t))}},bi={a:"href",area:"href",body:"background",blockquote:"cite",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]},vi={};function wi(e,t){return new En(e,t)}var ki=class{constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId;const n=this._languageSettings.data,i=n?.useDefaultDataProvider,r=[];if(n?.dataProviders)for(const s in n.dataProviders)r.push(wi(s,n.dataProviders[s]));this._languageService=function(e=vi){const t=new _i(e),n=new Hn(e,t),i=new zn(e,t),r=new mn(t),s=new mi(r),o=new fi(t),a=new ii(t);return{setDataProviders:t.setDataProviders.bind(t),createScanner:un,parseHTMLDocument:r.parseDocument.bind(r),doComplete:i.doComplete.bind(i),doComplete2:i.doComplete2.bind(i),setCompletionParticipants:i.setCompletionParticipants.bind(i),doHover:n.doHover.bind(n),format:Gn,findDocumentHighlights:ri,findDocumentLinks:a.findDocumentLinks.bind(a),findDocumentSymbols:li,findDocumentSymbols2:hi,getFoldingRanges:o.getFoldingRanges.bind(o),getSelectionRanges:s.getSelectionRanges.bind(s),doQuoteComplete:i.doQuoteComplete.bind(i),doTagComplete:i.doTagComplete.bind(i),doRename:di,findMatchingTagPosition:ui,findOnTypeRenameRanges:gi,findLinkedEditingRanges:gi}}({useDefaultDataProvider:i,customDataProviders:r})}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let i=this._languageService.parseHTMLDocument(n);return Promise.resolve(this._languageService.doComplete(n,t,i,this._languageSettings&&this._languageSettings.suggest))}async format(e,t,n){let i=this._getTextDocument(e);if(!i)return[];let r={...this._languageSettings.format,...n},s=this._languageService.format(i,t,r);return Promise.resolve(s)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let i=this._languageService.parseHTMLDocument(n),r=this._languageService.doHover(n,t,i);return Promise.resolve(r)}async findDocumentHighlights(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.parseHTMLDocument(n),r=this._languageService.findDocumentHighlights(n,t,i);return Promise.resolve(r)}async findDocumentLinks(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.findDocumentLinks(t,null);return Promise.resolve(n)}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseHTMLDocument(t),i=this._languageService.findDocumentSymbols(t,n);return Promise.resolve(i)}async getFoldingRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.getFoldingRanges(n,t);return Promise.resolve(i)}async getSelectionRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let i=this._languageService.getSelectionRanges(n,t);return Promise.resolve(i)}async doRename(e,t,n){let i=this._getTextDocument(e);if(!i)return null;let r=this._languageService.parseHTMLDocument(i),s=this._languageService.doRename(i,t,n,r);return Promise.resolve(s)}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return Bt.create(e,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{s(((e,t)=>new ki(e,t)))}})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/index.html b/ydb/core/viewer/monitoring/index.html index cbf9051d9e8..928cf91c6ae 100644 --- a/ydb/core/viewer/monitoring/index.html +++ b/ydb/core/viewer/monitoring/index.html @@ -1 +1 @@ -<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./static/favicon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="YDB Monitoring"/><meta name="referrer" content="no-referrer-when-downgrade"/><title>YDB Monitoring</title><script>window.systemSettings={},window.userSettings={},window.web_version=!1,window.custom_backend=!1,window.meta_backend="undefined"</script><script defer="defer" src="./static/js/main.3b2c9faf.js"></script><link href="./static/css/main.ea1b4d9b.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
\ No newline at end of file +<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./static/favicon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="YDB Monitoring"/><meta name="referrer" content="no-referrer-when-downgrade"/><title>YDB Monitoring</title><script>window.systemSettings={},window.userSettings={},window.web_version=!1,window.custom_backend=!1,window.meta_backend="undefined"</script><script defer="defer" src="./static/js/main.73969f38.js"></script><link href="./static/css/main.c06e6faa.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/json.worker.js b/ydb/core/viewer/monitoring/json.worker.js index 1dc3df7daf6..42d921d50fa 100644 --- a/ydb/core/viewer/monitoring/json.worker.js +++ b/ydb/core/viewer/monitoring/json.worker.js @@ -1,2 +1,2 @@ /*! For license information please see json.worker.js.LICENSE.txt */ -(()=>{"use strict";const e=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(o.isErrorNoTelemetry(e))throw new o(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function t(t){i(t)||e.onUnexpectedError(t)}function n(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:o.isErrorNoTelemetry(e)}}return e}const r="Canceled";function i(e){return e instanceof s||e instanceof Error&&e.name===r&&e.message===r}class s extends Error{constructor(){super(r),this.name=this.message}}Error;class o extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof o)return e;const t=new o;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class a extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,a.prototype)}}function l(e,t){const n=this;let r,i=!1;return function(){if(i)return r;if(i=!0,t)try{r=e.apply(n,arguments)}finally{t()}else r=e.apply(n,arguments);return r}}var u;!function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*r(e){yield e}e.empty=function(){return n},e.single=r,e.wrap=function(e){return t(e)?e:r(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let r=n;for(const i of e)r=t(r,i);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const r=[];if(0===n)return[r,t];const i=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>i}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(u||(u={}));let c=null;function h(e){return null===c||void 0===c||c.trackDisposable(e),e}function d(e){null===c||void 0===c||c.markAsDisposed(e)}function f(e,t){null===c||void 0===c||c.setParent(e,t)}function m(e){if(u.is(e)){const n=[];for(const r of e)if(r)try{r.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function g(...e){const t=p((()=>m(e)));return function(e,t){if(c)for(const n of e)c.setParent(n,t)}(e,t),t}function p(e){const t=h({dispose:l((()=>{d(t),e()}))});return t}class v{constructor(){this._toDispose=new Set,this._isDisposed=!1,h(this)}dispose(){this._isDisposed||(d(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{m(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return f(e,this),this._isDisposed?v.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),f(e,null))}}v.DISABLE_DISPOSED_WARNING=!1;class b{constructor(){this._store=new v,h(this),f(this._store,this)}dispose(){d(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}b.None=Object.freeze({dispose(){}});Symbol.iterator;class y{constructor(e){this.element=e,this.next=y.Undefined,this.prev=y.Undefined}}y.Undefined=new y(void 0);class _{constructor(){this._first=y.Undefined,this._last=y.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===y.Undefined}clear(){let e=this._first;for(;e!==y.Undefined;){const t=e.next;e.prev=y.Undefined,e.next=y.Undefined,e=t}this._first=y.Undefined,this._last=y.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new y(e);if(this._first===y.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==y.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==y.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==y.Undefined&&e.next!==y.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===y.Undefined&&e.next===y.Undefined?(this._first=y.Undefined,this._last=y.Undefined):e.next===y.Undefined?(this._last=this._last.prev,this._last.next=y.Undefined):e.prev===y.Undefined&&(this._first=this._first.next,this._first.prev=y.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==y.Undefined;)yield e.element,e=e.next}}const C=globalThis.performance&&"function"===typeof globalThis.performance.now;class w{static create(e){return new w(e)}constructor(e){this._now=C&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}var S;!function(e){function t(e){false}function n(e){return(t,n=null,r)=>{let i,s=!1;return i=e((e=>{if(!s)return i?i.dispose():s=!0,t.call(n,e)}),null,r),s&&i.dispose(),i}}function r(e,t,n){return s(((n,r=null,i)=>e((e=>n.call(r,t(e))),null,i)),n)}function i(e,t,n){return s(((n,r=null,i)=>e((e=>t(e)&&n.call(r,e)),null,i)),n)}function s(e,n){let r;const i={onWillAddFirstListener(){r=e(s.fire,s)},onDidRemoveLastListener(){null===r||void 0===r||r.dispose()}};n||t();const s=new k(i);return null===n||void 0===n||n.add(s),s.event}function o(e,n,r=100,i=!1,s=!1,o,a){let l,u,c,h,d=0;const f={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{d++,u=n(u,e),i&&!c&&(m.fire(u),u=void 0),h=()=>{const e=u;u=void 0,c=void 0,(!i||d>1)&&m.fire(e),d=0},"number"===typeof r?(clearTimeout(c),c=setTimeout(h,r)):void 0===c&&(c=0,queueMicrotask(h))}))},onWillRemoveListener(){s&&d>0&&(null===h||void 0===h||h())},onDidRemoveLastListener(){h=void 0,l.dispose()}};a||t();const m=new k(f);return null===a||void 0===a||a.add(m),m.event}e.None=()=>b.None,e.defer=function(e,t){return o(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.map=r,e.forEach=function(e,t,n){return s(((n,r=null,i)=>e((e=>{t(e),n.call(r,e)}),null,i)),n)},e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}(g(...e.map((e=>e((e=>t.call(n,e)))))),r)},e.reduce=function(e,t,n,i){let s=n;return r(e,(e=>(s=t(s,e),s)),i)},e.debounce=o,e.accumulate=function(t,n=0,r){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,r)},e.latch=function(e,t=(e,t)=>e===t,n){let r,s=!0;return i(e,(e=>{const n=s||!t(e,r);return s=!1,r=e,n}),n)},e.split=function(t,n,r){return[e.filter(t,n,r),e.filter(t,(e=>!n(e)),r)]},e.buffer=function(e,t=!1,n=[],r){let i=n.slice(),s=e((e=>{i?i.push(e):a.fire(e)}));r&&r.add(s);const o=()=>{null===i||void 0===i||i.forEach((e=>a.fire(e))),i=null},a=new k({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),r&&r.add(s))},onDidAddFirstListener(){i&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return r&&r.add(a),a.event},e.chain=function(e,t){return(n,r,i)=>{const s=t(new l);return e((function(e){const t=s.evaluate(e);t!==a&&n.call(r,t)}),void 0,i)}};const a=Symbol("HaltChainable");class l{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:a)),this}reduce(e,t){let n=t;return this.steps.push((t=>(n=e(n,t),n))),this}latch(e=(e,t)=>e===t){let t,n=!0;return this.steps.push((r=>{const i=n||!e(r,t);return n=!1,t=r,i?r:a})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===a)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const r=(...e)=>i.fire(n(...e)),i=new k({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const r=(...e)=>i.fire(n(...e)),i=new k({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new k;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class u{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const r={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new k(r),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new u(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,r)=>{let i=0,s=!1;const o={beginUpdate(){i++},endUpdate(){i--,0===i&&(e.reportChanges(),s&&(s=!1,t.call(n)))},handlePossibleChange(){},handleChange(){s=!0}};e.addObserver(o),e.reportChanges();const a={dispose(){e.removeObserver(o)}};return r instanceof v?r.add(a):Array.isArray(r)&&r.push(a),a}}}(S||(S={}));class E{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${E._idPool++}`,E.all.add(this)}start(e){this._stopWatch=new w,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}E.all=new Set,E._idPool=0;class L{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){let e;this._warnCountdown=.5*n;let r=0;for(const[t,n]of this._stacks)(!e||r<n)&&(e=t,r=n);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`),console.warn(e)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class x{static create(){var e;return new x(null!==(e=(new Error).stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class N{constructor(e){this.value=e}}const A=void 0;class k{constructor(e){var t,n,r,i,s;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new L(null!==(r=null===(n=this._options)||void 0===n?void 0:n.leakWarningThreshold)&&void 0!==r?r:-1):void 0,this._perfMon=(null===(i=this._options)||void 0===i?void 0:i._profName)?new E(this._options._profName):void 0,this._deliveryQueue=null===(s=this._options)||void 0===s?void 0:s.deliveryQueue}dispose(){var e,t,n,r;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(n=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===n||n.call(t),null===(r=this._leakageMon)||void 0===r||r.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,n)=>{var r,i,s,o,a;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),b.None;if(this._disposed)return b.None;t&&(e=e.bind(t));const l=new N(e);let u;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(l.stack=x.create(),u=this._leakageMon.check(l.stack,this._size+1)),this._listeners?this._listeners instanceof N?(null!==(a=this._deliveryQueue)&&void 0!==a||(this._deliveryQueue=new R),this._listeners=[this._listeners,l]):this._listeners.push(l):(null===(i=null===(r=this._options)||void 0===r?void 0:r.onWillAddFirstListener)||void 0===i||i.call(r,this),this._listeners=l,null===(o=null===(s=this._options)||void 0===s?void 0:s.onDidAddFirstListener)||void 0===o||o.call(s,this)),this._size++;const c=p((()=>{null===A||void 0===A||A.unregister(c),null===u||void 0===u||u(),this._removeListener(l)}));if(n instanceof v?n.add(c):Array.isArray(n)&&n.push(c),A){const e=(new Error).stack.split("\n").slice(2).join("\n").trim();A.register(c,e,c)}return c}),this._event}_removeListener(e){var t,n,r,i;if(null===(n=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===n||n.call(t,this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,null===(i=null===(r=this._options)||void 0===r?void 0:r.onDidRemoveLastListener)||void 0===i||i.call(r,this),void(this._size=0);const s=this._listeners,o=s.indexOf(e);if(-1===o)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,s[o]=void 0;const a=this._deliveryQueue.current===this;if(2*this._size<=s.length){let e=0;for(let t=0;t<s.length;t++)s[t]?s[e++]=s[t]:a&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);s.length=e}}_deliver(e,n){var r;if(!e)return;const i=(null===(r=this._options)||void 0===r?void 0:r.onListenerError)||t;if(i)try{e.value(n)}catch(s){i(s)}else e.value(n)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){var t,n,r,i;if((null===(t=this._deliveryQueue)||void 0===t?void 0:t.current)&&(this._deliverQueue(this._deliveryQueue),null===(n=this._perfMon)||void 0===n||n.stop()),null===(r=this._perfMon)||void 0===r||r.start(this._size),this._listeners)if(this._listeners instanceof N)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;null===(i=this._perfMon)||void 0===i||i.stop()}hasListeners(){return this._size>0}}class R{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}Object.prototype.hasOwnProperty;function T(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}let M="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function O(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const r=n[0],i=t[r];let s=e;return"string"===typeof i?s=i:"number"!==typeof i&&"boolean"!==typeof i&&void 0!==i&&null!==i||(s=String(i)),s})),M&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function I(e,t,...n){return O(t,n)}var P,F;const D="en";let V,q,K=!1,j=!1,U=!1,B=!1,$=!1,W=!1,H=!1,z=!1,G=!1,J=!1,X=null,Q=null,Z=null;const Y=globalThis;let ee;"undefined"!==typeof Y.vscode&&"undefined"!==typeof Y.vscode.process?ee=Y.vscode.process:"undefined"!==typeof process&&"string"===typeof(null===(P=null===process||void 0===process?void 0:process.versions)||void 0===P?void 0:P.node)&&(ee=process);const te="string"===typeof(null===(F=null===ee||void 0===ee?void 0:ee.versions)||void 0===F?void 0:F.electron),ne=te&&"renderer"===(null===ee||void 0===ee?void 0:ee.type);if("object"===typeof ee){K="win32"===ee.platform,j="darwin"===ee.platform,U="linux"===ee.platform,B=U&&!!ee.env.SNAP&&!!ee.env.SNAP_REVISION,H=te,G=!!ee.env.CI||!!ee.env.BUILD_ARTIFACTSTAGINGDIRECTORY,V=D,X=D;const e=ee.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];V=t.locale,Q=t.osLocale,X=n||D,Z=t._translationsConfigFile}catch(Jl){}$=!0}else if("object"!==typeof navigator||ne)console.error("Unable to resolve platform.");else{q=navigator.userAgent,K=q.indexOf("Windows")>=0,j=q.indexOf("Macintosh")>=0,z=(q.indexOf("Macintosh")>=0||q.indexOf("iPad")>=0||q.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,U=q.indexOf("Linux")>=0,J=(null===q||void 0===q?void 0:q.indexOf("Mobi"))>=0,W=!0;V=void I(0,"_")||D,X=V,Q=navigator.language}let re=0;j?re=1:K?re=3:U&&(re=2);const ie=K,se=j,oe=(W&&"function"===typeof Y.importScripts&&Y.origin,q),ae="function"===typeof Y.postMessage&&!Y.importScripts;(()=>{if(ae){const e=[];Y.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void r.callback()}}));let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),Y.postMessage({vscodeScheduleAsyncWork:r},"*")}}})();const le=!!(oe&&oe.indexOf("Chrome")>=0);oe&&oe.indexOf("Firefox"),!le&&oe&&oe.indexOf("Safari"),oe&&oe.indexOf("Edg/"),oe&&oe.indexOf("Android");class ue{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var ce;function he(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function de(e){return e>=65&&e<=90}function fe(e){return 55296<=e&&e<=56319}function me(e){return 56320<=e&&e<=57343}function ge(e,t){return t-56320+(e-55296<<10)+65536}function pe(e,t,n){const r=e.charCodeAt(n);if(fe(r)&&n+1<t){const t=e.charCodeAt(n+1);if(me(t))return ge(r,t)}return r}const ve=/^[\t\n\r\x20-\x7E]*$/;String.fromCharCode(65279);class be{static getInstance(){return be._INSTANCE||(be._INSTANCE=new be),be._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let r=1;for(;r<=n;)if(e<t[3*r])r*=2;else{if(!(e>t[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}be._INSTANCE=null;class ye{static getInstance(e){return ce.cache.get(Array.from(e))}static getLocales(){return ce._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}ce=ye,ye.ambiguousCharacterData=new ue((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),ye.cache=new class{constructor(e,t=JSON.stringify){this.fn=e,this._computeKey=t,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}((e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[r,i]of e)t.has(r)&&n.set(r,i);return n}const r=ce.ambiguousCharacterData.value;let i,s=e.filter((e=>!e.startsWith("_")&&e in r));0===s.length&&(s=["_default"]);for(const a of s){i=n(i,t(r[a]))}const o=function(e,t){const n=new Map(e);for(const[r,i]of t)n.set(r,i);return n}(t(r._common),i);return new ce(o)})),ye._locales=new ue((()=>Object.keys(ce.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class _e{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(_e.getRawData())),this._data}static isInvisibleCharacter(e){return _e.getData().has(e)}static get codePoints(){return _e.getData()}}_e._data=void 0;const Ce="$initialize";let we;class Se{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.method=n,this.args=r,this.type=0}}class Ee{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class Le{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=r,this.type=2}}class xe{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class Ne{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class Ae{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const n=String(++this._lastSentReq);return new Promise(((r,i)=>{this._pendingReplies[n]={resolve:r,reject:i},this._send(new Se(this._workerId,n,e,t))}))}listen(e,t){let n=null;const r=new k({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,r),this._send(new Le(this._workerId,n,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new Ne(this._workerId,n)),n=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new Ee(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=n(e.detail)),this._send(new Ee(this._workerId,t,void 0,n(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new xe(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}function ke(e){return"o"===e[0]&&"n"===e[1]&&de(e.charCodeAt(2))}function Re(e){return/^onDynamic/.test(e)&&de(e.charCodeAt(9))}function Te(e,t,n){const r=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i=e=>function(t){return n(e,t)},s={};for(const o of e)Re(o)?s[o]=i(o):ke(o)?s[o]=n(o,void 0):s[o]=r(o);return s}class Me{constructor(e,t){this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new Ae({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t),handleEvent:(e,t)=>this._handleEvent(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if(e===Ce)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!==typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(Jl){return Promise.reject(Jl)}}_handleEvent(e,t){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Re(e)){const n=this._requestHandler[e].call(this._requestHandler,t);if("function"!==typeof n)throw new Error(`Missing dynamic event ${e} on request handler.`);return n}if(ke(e)){const t=this._requestHandler[e];if("function"!==typeof t)throw new Error(`Missing event ${e} on request handler.`);return t}throw new Error(`Malformed event name ${e}`)}initialize(e,t,n,r){this._protocol.setWorkerId(e);const i=Te(r,((e,t)=>this._protocol.sendMessage(e,t)),((e,t)=>this._protocol.listen(e,t)));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(i),Promise.resolve(T(this._requestHandler))):(t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t)),new Promise(((e,t)=>{(0,globalThis.require)([n],(n=>{this._requestHandler=n.create(i),this._requestHandler?e(T(this._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}}class Oe{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Ie(e,t){return(t<<5)-t+e|0}function Pe(e,t){t=Ie(149417,t);for(let n=0,r=e.length;n<r;n++)t=Ie(e.charCodeAt(n),t);return t}function Fe(e,t,n=32){const r=n-t;return(e<<t|(~((1<<r)-1)&e)>>>r)>>>0}function De(e,t=0,n=e.byteLength,r=0){for(let i=0;i<n;i++)e[t+i]=r}function Ve(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class qe{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,i,s=this._buffLen,o=this._leftoverHighSurrogate;for(0!==o?(r=o,i=-1,o=0):(r=e.charCodeAt(0),i=0);;){let a=r;if(fe(r)){if(!(i+1<t)){o=r;break}{const t=e.charCodeAt(i+1);me(t)?(i++,a=ge(r,t)):a=65533}}else me(r)&&(a=65533);if(s=this._push(n,s,a),i++,!(i<t))break;r=e.charCodeAt(i)}this._buffLen=s,this._leftoverHighSurrogate=o}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Ve(this._h0)+Ve(this._h1)+Ve(this._h2)+Ve(this._h3)+Ve(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,De(this._buff,this._buffLen),this._buffLen>56&&(this._step(),De(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=qe._bigBlock32,t=this._buffDV;for(let c=0;c<64;c+=4)e.setUint32(c,t.getUint32(c,!1),!1);for(let c=64;c<320;c+=4)e.setUint32(c,Fe(e.getUint32(c-12,!1)^e.getUint32(c-32,!1)^e.getUint32(c-56,!1)^e.getUint32(c-64,!1),1),!1);let n,r,i,s=this._h0,o=this._h1,a=this._h2,l=this._h3,u=this._h4;for(let c=0;c<80;c++)c<20?(n=o&a|~o&l,r=1518500249):c<40?(n=o^a^l,r=1859775393):c<60?(n=o&a|o&l|a&l,r=2400959708):(n=o^a^l,r=3395469782),i=Fe(s,5)+n+u+r+e.getUint32(4*c,!1)&4294967295,u=l,l=a,a=Fe(o,30),o=s,s=i;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+u&4294967295}}qe._bigBlock32=new DataView(new ArrayBuffer(320));class Ke{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t}}function je(e,t,n){return new We(new Ke(e),new Ke(t)).ComputeDiff(n).changes}class Ue{static Assert(e,t){if(!e)throw new Error(t)}}class Be{static Copy(e,t,n,r,i){for(let s=0;s<i;s++)n[r+s]=e[t+s]}static Copy2(e,t,n,r,i){for(let s=0;s<i;s++)n[r+s]=e[t+s]}}class $e{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Oe(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class We{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,i,s]=We._getElements(e),[o,a,l]=We._getElements(t);this._hasStrings=s&&l,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(We._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=Pe(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return We._getStrictElement(this._originalSequence,e)===We._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,i){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,r,s);return i&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,r,i){for(i[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let i;return n<=r?(Ue.Assert(e===t+1,"originalStart should only be one more than originalEnd"),i=[new Oe(e,0,n,r-n+1)]):e<=t?(Ue.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[new Oe(e,t-e+1,n,0)]):(Ue.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Ue.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i}const s=[0],o=[0],a=this.ComputeRecursionPoint(e,t,n,r,s,o,i),l=s[0],u=o[0];if(null!==a)return a;if(!i[0]){const s=this.ComputeDiffRecursive(e,l,n,u,i);let o=[];return o=i[0]?[new Oe(l+1,t-(l+1)+1,u+1,r-(u+1)+1)]:this.ComputeDiffRecursive(l+1,t,u+1,r,i),this.ConcatenateChanges(s,o)}return[new Oe(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,i,s,o,a,l,u,c,h,d,f,m,g,p,v){let b=null,y=null,_=new $e,C=t,w=n,S=d[0]-g[0]-r,E=-1073741824,L=this.m_forwardHistory.length-1;do{const t=S+e;t===C||t<w&&l[t-1]<l[t+1]?(f=(c=l[t+1])-S-r,c<E&&_.MarkNextChange(),E=c,_.AddModifiedElement(c+1,f),S=t+1-e):(f=(c=l[t-1]+1)-S-r,c<E&&_.MarkNextChange(),E=c-1,_.AddOriginalElement(c,f+1),S=t-1-e),L>=0&&(e=(l=this.m_forwardHistory[L])[0],C=1,w=l.length-1)}while(--L>=-1);if(b=_.getReverseChanges(),v[0]){let e=d[0]+1,t=g[0]+1;if(null!==b&&b.length>0){const n=b[b.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}y=[new Oe(e,h-e+1,t,m-t+1)]}else{_=new $e,C=s,w=o,S=d[0]-g[0]-a,E=1073741824,L=p?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+i;e===C||e<w&&u[e-1]>=u[e+1]?(f=(c=u[e+1]-1)-S-a,c>E&&_.MarkNextChange(),E=c+1,_.AddOriginalElement(c+1,f+1),S=e+1-i):(f=(c=u[e-1])-S-a,c>E&&_.MarkNextChange(),E=c,_.AddModifiedElement(c+1,f+1),S=e-1-i),L>=0&&(i=(u=this.m_reverseHistory[L])[0],C=1,w=u.length-1)}while(--L>=-1);y=_.getChanges()}return this.ConcatenateChanges(b,y)}ComputeRecursionPoint(e,t,n,r,i,s,o){let a=0,l=0,u=0,c=0,h=0,d=0;e--,n--,i[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=t-e+(r-n),m=f+1,g=new Int32Array(m),p=new Int32Array(m),v=r-n,b=t-e,y=e-n,_=t-r,C=(b-v)%2===0;g[v]=e,p[b]=t,o[0]=!1;for(let w=1;w<=f/2+1;w++){let f=0,S=0;u=this.ClipDiagonalBound(v-w,w,v,m),c=this.ClipDiagonalBound(v+w,w,v,m);for(let e=u;e<=c;e+=2){a=e===u||e<c&&g[e-1]<g[e+1]?g[e+1]:g[e-1]+1,l=a-(e-v)-y;const n=a;for(;a<t&&l<r&&this.ElementsAreEqual(a+1,l+1);)a++,l++;if(g[e]=a,a+l>f+S&&(f=a,S=l),!C&&Math.abs(e-b)<=w-1&&a>=p[e])return i[0]=a,s[0]=l,n<=p[e]&&w<=1448?this.WALKTRACE(v,u,c,y,b,h,d,_,g,p,a,t,i,l,r,s,C,o):null}const E=(f-e+(S-n)-w)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(f,E))return o[0]=!0,i[0]=f,s[0]=S,E>0&&w<=1448?this.WALKTRACE(v,u,c,y,b,h,d,_,g,p,a,t,i,l,r,s,C,o):(e++,n++,[new Oe(e,t-e+1,n,r-n+1)]);h=this.ClipDiagonalBound(b-w,w,b,m),d=this.ClipDiagonalBound(b+w,w,b,m);for(let m=h;m<=d;m+=2){a=m===h||m<d&&p[m-1]>=p[m+1]?p[m+1]-1:p[m-1],l=a-(m-b)-_;const f=a;for(;a>e&&l>n&&this.ElementsAreEqual(a,l);)a--,l--;if(p[m]=a,C&&Math.abs(m-v)<=w&&a<=g[m])return i[0]=a,s[0]=l,f>=g[m]&&w<=1448?this.WALKTRACE(v,u,c,y,b,h,d,_,g,p,a,t,i,l,r,s,C,o):null}if(w<=1447){let e=new Int32Array(c-u+2);e[0]=v-u+1,Be.Copy2(g,u,e,1,c-u+1),this.m_forwardHistory.push(e),e=new Int32Array(d-h+2),e[0]=b-h+1,Be.Copy2(p,h,e,1,d-h+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(v,u,c,y,b,h,d,_,g,p,a,t,i,l,r,s,C,o)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],r=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,i=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let r=0,i=0;if(t>0){const n=e[t-1];r=n.originalStart+n.originalLength,i=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,u=n.modifiedStart-e;if(t<r||u<i)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(u,u+n.modifiedLength))break;const c=(t===r&&u===i?5:0)+this._boundaryScore(t,n.originalLength,u,n.modifiedLength);c>l&&(l=c,a=e)}n.originalStart-=a,n.modifiedStart-=a;const u=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],u)&&(e[t-1]=u[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],r=e[t],i=r.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=r.originalStart+r.originalLength,a=o-s,l=n.modifiedStart,u=r.modifiedStart+r.modifiedLength,c=u-l;if(i<5&&a<20&&c<20){const e=this._findBetterContiguousSequence(s,a,l,c,i);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,r.originalStart=t+i,r.modifiedStart=s+i,r.originalLength=o-r.originalStart,r.modifiedLength=u-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,i){if(t<i||r<i)return null;const s=e+t-i+1,o=n+r-i+1;let a=0,l=0,u=0;for(let c=e;c<s;c++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(c,e,i);t>0&&t>a&&(a=t,l=c,u=e)}return a>0?[l,u]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i<n;i++){if(!this.ElementsAreEqual(e+i,t+i))return 0;r+=this._originalStringElements[e+i].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return Be.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],Be.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return Be.Copy(e,0,n,0,e.length),Be.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(Ue.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Ue.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let i=e.originalLength;const s=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(o=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new Oe(r,i,s,o),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;const i=t%2===0;if(e<0){return i===(n%2===0)?0:1}return i===((r-n-1)%2===0)?r-1:r-2}}const He=globalThis.vscode;if("undefined"!==typeof He&&"undefined"!==typeof He.process){const e=He.process;we={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else we="undefined"!==typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return ie?"win32":se?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const ze=we.cwd,Ge=(we.env,we.platform),Je=46,Xe=47,Qe=92,Ze=58;class Ye extends Error{constructor(e,t,n){let r;"string"===typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const i=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${i} ${r} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function et(e,t){if("string"!==typeof e)throw new Ye(t,"string",e)}const tt="win32"===Ge;function nt(e){return e===Xe||e===Qe}function rt(e){return e===Xe}function it(e){return e>=65&&e<=90||e>=97&&e<=122}function st(e,t,n,r){let i="",s=0,o=-1,a=0,l=0;for(let u=0;u<=e.length;++u){if(u<e.length)l=e.charCodeAt(u);else{if(r(l))break;l=Xe}if(r(l)){if(o===u-1||1===a);else if(2===a){if(i.length<2||2!==s||i.charCodeAt(i.length-1)!==Je||i.charCodeAt(i.length-2)!==Je){if(i.length>2){const e=i.lastIndexOf(n);-1===e?(i="",s=0):(i=i.slice(0,e),s=i.length-1-i.lastIndexOf(n)),o=u,a=0;continue}if(0!==i.length){i="",s=0,o=u,a=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(o+1,u)}`:i=e.slice(o+1,u),s=u-o-1;o=u,a=0}else l===Je&&-1!==a?++a:a=-1}return i}function ot(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new Ye(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const at={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],et(s,"path"),0===s.length)continue}else 0===t.length?s=ze():(s={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||ze(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===Qe)&&(s=`${t}\\`));const o=s.length;let a=0,l="",u=!1;const c=s.charCodeAt(0);if(1===o)nt(c)&&(a=1,u=!0);else if(nt(c))if(u=!0,nt(s.charCodeAt(1))){let e=2,t=e;for(;e<o&&!nt(s.charCodeAt(e));)e++;if(e<o&&e!==t){const n=s.slice(t,e);for(t=e;e<o&&nt(s.charCodeAt(e));)e++;if(e<o&&e!==t){for(t=e;e<o&&!nt(s.charCodeAt(e));)e++;e!==o&&e===t||(l=`\\\\${n}\\${s.slice(t,e)}`,a=e)}}}else a=1;else it(c)&&s.charCodeAt(1)===Ze&&(l=s.slice(0,2),a=2,o>2&&nt(s.charCodeAt(2))&&(u=!0,a=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(r){if(t.length>0)break}else if(n=`${s.slice(a)}\\${n}`,r=u,u&&t.length>0)break}return n=st(n,!r,"\\",nt),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){et(e,"path");const t=e.length;if(0===t)return".";let n,r=0,i=!1;const s=e.charCodeAt(0);if(1===t)return rt(s)?"\\":e;if(nt(s))if(i=!0,nt(e.charCodeAt(1))){let i=2,s=i;for(;i<t&&!nt(e.charCodeAt(i));)i++;if(i<t&&i!==s){const o=e.slice(s,i);for(s=i;i<t&&nt(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&!nt(e.charCodeAt(i));)i++;if(i===t)return`\\\\${o}\\${e.slice(s)}\\`;i!==s&&(n=`\\\\${o}\\${e.slice(s,i)}`,r=i)}}}else r=1;else it(s)&&e.charCodeAt(1)===Ze&&(n=e.slice(0,2),r=2,t>2&&nt(e.charCodeAt(2))&&(i=!0,r=3));let o=r<t?st(e.slice(r),!i,"\\",nt):"";return 0!==o.length||i||(o="."),o.length>0&&nt(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?i?`\\${o}`:o:i?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){et(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return nt(n)||t>2&&it(n)&&e.charCodeAt(1)===Ze&&nt(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){const r=e[s];et(r,"path"),r.length>0&&(void 0===t?t=n=r:t+=`\\${r}`)}if(void 0===t)return".";let r=!0,i=0;if("string"===typeof n&&nt(n.charCodeAt(0))){++i;const e=n.length;e>1&&nt(n.charCodeAt(1))&&(++i,e>2&&(nt(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&nt(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return at.normalize(t)},relative(e,t){if(et(e,"from"),et(t,"to"),e===t)return"";const n=at.resolve(e),r=at.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===Qe;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===Qe;)s--;const o=s-i;let a=0;for(;a<t.length&&t.charCodeAt(a)===Qe;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===Qe;)l--;const u=l-a,c=o<u?o:u;let h=-1,d=0;for(;d<c;d++){const n=e.charCodeAt(i+d);if(n!==t.charCodeAt(a+d))break;n===Qe&&(h=d)}if(d!==c){if(-1===h)return r}else{if(u>c){if(t.charCodeAt(a+d)===Qe)return r.slice(a+d+1);if(2===d)return r.slice(a+d)}o>c&&(e.charCodeAt(i+d)===Qe?h=d:2===d&&(h=3)),-1===h&&(h=0)}let f="";for(d=i+h+1;d<=s;++d)d!==s&&e.charCodeAt(d)!==Qe||(f+=0===f.length?"..":"\\..");return a+=h,f.length>0?`${f}${r.slice(a,l)}`:(r.charCodeAt(a)===Qe&&++a,r.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=at.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Qe){if(t.charCodeAt(1)===Qe){const e=t.charCodeAt(2);if(63!==e&&e!==Je)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(it(t.charCodeAt(0))&&t.charCodeAt(1)===Ze&&t.charCodeAt(2)===Qe)return`\\\\?\\${t}`;return e},dirname(e){et(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(1===t)return nt(i)?e:".";if(nt(i)){if(n=r=1,nt(e.charCodeAt(1))){let i=2,s=i;for(;i<t&&!nt(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&nt(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&!nt(e.charCodeAt(i));)i++;if(i===t)return e;i!==s&&(n=r=i+1)}}}}else it(i)&&e.charCodeAt(1)===Ze&&(n=t>2&&nt(e.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let a=t-1;a>=r;--a)if(nt(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&et(t,"ext"),et(e,"path");let n,r=0,i=-1,s=!0;if(e.length>=2&&it(e.charCodeAt(0))&&e.charCodeAt(1)===Ze&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){const l=e.charCodeAt(n);if(nt(l)){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(i=n):(o=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(nt(e.charCodeAt(n))){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){et(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===Ze&&it(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(nt(t)){if(!s){r=a+1;break}}else-1===i&&(s=!1,i=a+1),t===Je?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:ot.bind(null,"\\"),parse(e){et(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(1===n)return nt(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(nt(i)){if(r=1,nt(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!nt(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&nt(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!nt(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(it(i)&&e.charCodeAt(1)===Ze){if(n<=2)return t.root=t.dir=e,t;if(r=2,nt(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,o=r,a=-1,l=!0,u=e.length-1,c=0;for(;u>=r;--u)if(i=e.charCodeAt(u),nt(i)){if(!l){o=u+1;break}}else-1===a&&(l=!1,a=u+1),i===Je?-1===s?s=u:1!==c&&(c=1):-1!==s&&(c=-1);return-1!==a&&(-1===s||0===c||1===c&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==r?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},lt=(()=>{if(tt){const e=/\\/g;return()=>{const t=ze().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>ze()})(),ut={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:lt();et(i,"path"),0!==i.length&&(t=`${i}/${t}`,n=i.charCodeAt(0)===Xe)}return t=st(t,!n,"/",rt),n?`/${t}`:t.length>0?t:"."},normalize(e){if(et(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Xe,n=e.charCodeAt(e.length-1)===Xe;return 0===(e=st(e,!t,"/",rt)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(et(e,"path"),e.length>0&&e.charCodeAt(0)===Xe),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];et(r,"path"),r.length>0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":ut.normalize(t)},relative(e,t){if(et(e,"from"),et(t,"to"),e===t)return"";if((e=ut.resolve(e))===(t=ut.resolve(t)))return"";const n=e.length,r=n-1,i=t.length-1,s=r<i?r:i;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===Xe&&(o=a)}if(a===s)if(i>s){if(t.charCodeAt(1+a)===Xe)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else r>s&&(e.charCodeAt(1+a)===Xe?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==Xe||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(et(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Xe;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===Xe){if(!r){n=i;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&et(t,"ext"),et(e,"path");let n,r=0,i=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===Xe){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(i=n):(o=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===Xe){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){et(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==Xe)-1===r&&(i=!1,r=o+1),a===Je?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===s||1===s&&t===r-1&&t===n+1?"":e.slice(t,r)},format:ot.bind(null,"/"),parse(e){et(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===Xe;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,o=-1,a=!0,l=e.length-1,u=0;for(;l>=r;--l){const t=e.charCodeAt(l);if(t!==Xe)-1===o&&(a=!1,o=l+1),t===Je?-1===i?i=l:1!==u&&(u=1):-1!==i&&(u=-1);else if(!a){s=l+1;break}}if(-1!==o){const r=0===s&&n?1:s;-1===i||0===u||1===u&&i===o-1&&i===s+1?t.base=t.name=e.slice(r,o):(t.name=e.slice(r,i),t.base=e.slice(r,o),t.ext=e.slice(i,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ut.win32=at.win32=at,ut.posix=at.posix=ut;tt?at.normalize:ut.normalize,tt?at.resolve:ut.resolve,tt?at.relative:ut.relative,tt?at.dirname:ut.dirname,tt?at.basename:ut.basename,tt?at.extname:ut.extname,tt?at.sep:ut.sep;const ct=/^\w[\w\d+.-]*$/,ht=/^\//,dt=/^\/\//;const ft="",mt="/",gt=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class pt{static isUri(e){return e instanceof pt||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,r,i,s=!1){"object"===typeof e?(this.scheme=e.scheme||ft,this.authority=e.authority||ft,this.path=e.path||ft,this.query=e.query||ft,this.fragment=e.fragment||ft):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||ft,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==mt&&(t=mt+t):t=mt}return t}(this.scheme,n||ft),this.query=r||ft,this.fragment=i||ft,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!ct.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!ht.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(dt.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,s))}get fsPath(){return wt(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=ft),void 0===n?n=this.authority:null===n&&(n=ft),void 0===r?r=this.path:null===r&&(r=ft),void 0===i?i=this.query:null===i&&(i=ft),void 0===s?s=this.fragment:null===s&&(s=ft),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new bt(t,n,r,i,s)}static parse(e,t=!1){const n=gt.exec(e);return n?new bt(n[2]||ft,xt(n[4]||ft),xt(n[5]||ft),xt(n[7]||ft),xt(n[9]||ft),t):new bt(ft,ft,ft,ft,ft)}static file(e){let t=ft;if(ie&&(e=e.replace(/\\/g,mt)),e[0]===mt&&e[1]===mt){const n=e.indexOf(mt,2);-1===n?(t=e.substring(2),e=mt):(t=e.substring(2,n),e=e.substring(n)||mt)}return new bt("file",t,e,ft,ft)}static from(e,t){return new bt(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=ie&&"file"===e.scheme?pt.file(at.join(wt(e,!0),...t)).path:ut.join(e.path,...t),e.with({path:n})}toString(e=!1){return St(this,e)}toJSON(){return this}static revive(e){var t,n;if(e){if(e instanceof pt)return e;{const r=new bt(e);return r._formatted=null!==(t=e.external)&&void 0!==t?t:null,r._fsPath=e._sep===vt&&null!==(n=e.fsPath)&&void 0!==n?n:null,r}}return e}}const vt=ie?1:void 0;class bt extends pt{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=wt(this,!1)),this._fsPath}toString(e=!1){return e?St(this,!0):(this._formatted||(this._formatted=St(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=vt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const yt={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _t(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));const t=yt[o];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=t):-1===i&&(i=s)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function Ct(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=yt[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function wt(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,ie&&(n=n.replace(/\//g,"\\")),n}function St(e,t){const n=t?Ct:_t;let r="",{scheme:i,authority:s,path:o,query:a,fragment:l}=e;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=mt,r+=mt),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?r+=n(s,!1,!0):(r+=n(s.substr(0,e),!1,!0),r+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),l&&(r+="#",r+=t?l:_t(l,!1,!1)),r}function Et(e){try{return decodeURIComponent(e)}catch(P){return e.length>3?e.substr(0,3)+Et(e.substr(3)):e}}const Lt=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function xt(e){return e.match(Lt)?e.replace(Lt,(e=>Et(e))):e}class Nt{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new Nt(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Nt.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Nt.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return Nt.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,r=0|t.lineNumber;if(n===r){return(0|e.column)-(0|t.column)}return n-r}clone(){return new Nt(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new Nt(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}class At{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return At.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return At.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return At.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return At.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return At.plusRange(this,e)}static plusRange(e,t){let n,r,i,s;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,r=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,r=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,r=e.startColumn),t.endLineNumber>e.endLineNumber?(i=t.endLineNumber,s=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,s=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,s=e.endColumn),new At(n,r,i,s)}intersectRanges(e){return At.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,s=e.endColumn;const o=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,u=t.endColumn;return n<o?(n=o,r=a):n===o&&(r=Math.max(r,a)),i>l?(i=l,s=u):i===l&&(s=Math.min(s,u)),n>i||n===i&&r>s?null:new At(n,r,i,s)}equalsRange(e){return At.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return At.getEndPosition(this)}static getEndPosition(e){return new Nt(e.endLineNumber,e.endColumn)}getStartPosition(){return At.getStartPosition(this)}static getStartPosition(e){return new Nt(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new At(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new At(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return At.collapseToStart(this)}static collapseToStart(e){return new At(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return At.collapseToEnd(this)}static collapseToEnd(e){return new At(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new At(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new At(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new At(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){const n=0|e.startColumn,r=0|t.startColumn;if(n===r){const n=0|e.endLineNumber,r=0|t.endLineNumber;if(n===r){return(0|e.endColumn)-(0|t.endColumn)}return n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}var kt;function Rt(e,t){return(n,r)=>t(e(n),e(r))}!function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(kt||(kt={}));const Tt=(e,t)=>e-t;class Mt{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new Mt((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new Mt((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((r=>((n||kt.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0))),t}}Mt.empty=new Mt((e=>{}));function Ot(e){return e<0?0:e>255?255:0|e}function It(e){return e<0?0:e>4294967295?4294967295:0|e}class Pt{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=It(e);const n=this.values,r=this.prefixSum,i=t.length;return 0!==i&&(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=It(e),t=It(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=It(e),t=It(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;const i=n.length-e;return t>=i&&(t=i),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=It(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0,i=0,s=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],s=i-this.values[r],e<s)n=r-1;else{if(!(e>=i))break;t=r+1}return new Ft(r,e-s)}}class Ft{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class Dt{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new Nt(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new Pt(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const n=t.split(/\r\n|\r|\n/);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);const r=new Uint32Array(n.length-1);for(let i=1;i<n.length;i++)this._lines.splice(e.lineNumber+i-1,0,n[i]),r[i-1]=n[i].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}const Vt=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function qt(e){let t=Vt;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const Kt=new _;function jt(e,t,n,r,i){if(t=qt(t),i||(i=u.first(Kt)),n.length>i.maxLen){let s=e-i.maxLen/2;return s<0?s=0:r+=s,jt(e,t,n=n.substring(s,e+i.maxLen/2),r,i)}const s=Date.now(),o=e-1-r;let a=-1,l=null;for(let u=1;!(Date.now()-s>=i.timeBudget);u++){const e=o-i.windowSize*u;t.lastIndex=Math.max(0,e);const r=Ut(t,n,o,a);if(!r&&l)break;if(l=r,e<=0)break;a=e}if(l){const e={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return t.lastIndex=0,e}return null}function Ut(e,t,n,r){let i;for(;i=e.exec(t);){const t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}Kt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});class Bt{constructor(e){const t=Ot(e);this._defaultValue=t,this._asciiMap=Bt._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=Ot(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class $t{constructor(e,t,n){const r=new Uint8Array(e*t);for(let i=0,s=e*t;i<s;i++)r[i]=n;this._data=r,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class Wt{constructor(e){let t=0,n=0;for(let i=0,s=e.length;i<s;i++){const[r,s,o]=e[i];s>t&&(t=s),r>n&&(n=r),o>n&&(n=o)}t++,n++;const r=new $t(n,t,0);for(let i=0,s=e.length;i<s;i++){const[t,n,s]=e[i];r.set(t,n,s)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let Ht=null;let zt=null;class Gt{static _createLink(e,t,n,r,i){let s=i-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:s+2},url:t.substring(r,s+1)}}static computeLinks(e,t=function(){return null===Ht&&(Ht=new Wt([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Ht}()){const n=function(){if(null===zt){zt=new Bt(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)zt.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)zt.set(t.charCodeAt(n),2)}return zt}(),r=[];for(let i=1,s=e.getLineCount();i<=s;i++){const s=e.getLineContent(i),o=s.length;let a=0,l=0,u=0,c=1,h=!1,d=!1,f=!1,m=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===c){let t;switch(o){case 40:h=!0,t=0;break;case 41:t=h?0:1;break;case 91:f=!0,d=!0,t=0;break;case 93:f=!1,t=d?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=u===o?1:39===u||34===u||96===u?0:1;break;case 42:t=42===u?1:0;break;case 124:t=124===u?1:0;break;case 32:t=f?0:1;break;default:t=n.get(o)}1===t&&(r.push(Gt._createLink(n,s,i,l,a)),e=!0)}else if(12===c){let t;91===o?(d=!0,t=0):t=n.get(o),1===t?e=!0:c=13}else c=t.nextState(c,o),0===c&&(e=!0);e&&(c=1,h=!1,d=!1,m=!1,l=a+1,u=o),a++}13===c&&r.push(Gt._createLink(n,s,i,l,o))}return r}}class Jt{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,r,i){if(e&&t){const n=this.doNavigateValueSet(t,i);if(n)return{range:e,value:n}}if(n&&r){const e=this.doNavigateValueSet(r,i);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const i=parseFloat(e);return isNaN(r)||isNaN(i)||r!==i?null:0!==r||t?(r=Math.floor(r*n),r+=t?n:-n,String(r/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let r=null;for(let i=0,s=e.length;null===r&&i<s;i++)r=this.valueSetReplace(e[i],t,n);return r}valueSetReplace(e,t,n){let r=e.indexOf(t);return r>=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}Jt.INSTANCE=new Jt;const Xt=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var Qt;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof Zt||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:S.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Xt})}(Qt||(Qt={}));class Zt{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Xt:(this._emitter||(this._emitter=new k),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Yt{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Zt),this._token}cancel(){this._token?this._token instanceof Zt&&this._token.cancel():this._token=Qt.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof Zt&&this._token.dispose():this._token=Qt.None}}class en{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const tn=new en,nn=new en,rn=new en,sn=new Array(230),on={},an=[],ln=Object.create(null),un=Object.create(null),cn=[],hn=[];for(let Xl=0;Xl<=193;Xl++)cn[Xl]=-1;for(let Xl=0;Xl<=132;Xl++)hn[Xl]=-1;var dn;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const i of t){const[e,t,s,o,a,l,u,c,h]=i;if(r[t]||(r[t]=!0,an[t]=s,ln[s]=t,un[s.toLowerCase()]=t,e&&(cn[t]=o,0!==o&&3!==o&&5!==o&&4!==o&&6!==o&&57!==o&&(hn[o]=t))),!n[o]){if(n[o]=!0,!a)throw new Error(`String representation missing for key code ${o} around scan code ${s}`);tn.define(o,a),nn.define(o,c||a),rn.define(o,h||c||a)}l&&(sn[l]=o),u&&(on[u]=o)}hn[3]=46}(),function(e){e.toString=function(e){return tn.keyCodeToStr(e)},e.fromString=function(e){return tn.strToKeyCode(e)},e.toUserSettingsUS=function(e){return nn.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return rn.keyCodeToStr(e)},e.fromUserSettings=function(e){return nn.strToKeyCode(e)||rn.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return tn.keyCodeToStr(e)}}(dn||(dn={}));class fn extends At{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return fn.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new fn(this.startLineNumber,this.startColumn,e,t):new fn(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new Nt(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Nt(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new fn(e,t,this.endLineNumber,this.endColumn):new fn(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new fn(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new fn(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new fn(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new fn(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,r,i){return 0===i?new fn(e,t,n,r):new fn(n,r,e,t)}}function mn(e){return"string"===typeof e}const gn=Object.create(null);function pn(e,t){if(mn(t)){const n=gn[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return gn[e]=t,{id:e}}const vn={...{add:pn("add",6e4),plus:pn("plus",6e4),gistNew:pn("gist-new",6e4),repoCreate:pn("repo-create",6e4),lightbulb:pn("lightbulb",60001),lightBulb:pn("light-bulb",60001),repo:pn("repo",60002),repoDelete:pn("repo-delete",60002),gistFork:pn("gist-fork",60003),repoForked:pn("repo-forked",60003),gitPullRequest:pn("git-pull-request",60004),gitPullRequestAbandoned:pn("git-pull-request-abandoned",60004),recordKeys:pn("record-keys",60005),keyboard:pn("keyboard",60005),tag:pn("tag",60006),gitPullRequestLabel:pn("git-pull-request-label",60006),tagAdd:pn("tag-add",60006),tagRemove:pn("tag-remove",60006),person:pn("person",60007),personFollow:pn("person-follow",60007),personOutline:pn("person-outline",60007),personFilled:pn("person-filled",60007),gitBranch:pn("git-branch",60008),gitBranchCreate:pn("git-branch-create",60008),gitBranchDelete:pn("git-branch-delete",60008),sourceControl:pn("source-control",60008),mirror:pn("mirror",60009),mirrorPublic:pn("mirror-public",60009),star:pn("star",60010),starAdd:pn("star-add",60010),starDelete:pn("star-delete",60010),starEmpty:pn("star-empty",60010),comment:pn("comment",60011),commentAdd:pn("comment-add",60011),alert:pn("alert",60012),warning:pn("warning",60012),search:pn("search",60013),searchSave:pn("search-save",60013),logOut:pn("log-out",60014),signOut:pn("sign-out",60014),logIn:pn("log-in",60015),signIn:pn("sign-in",60015),eye:pn("eye",60016),eyeUnwatch:pn("eye-unwatch",60016),eyeWatch:pn("eye-watch",60016),circleFilled:pn("circle-filled",60017),primitiveDot:pn("primitive-dot",60017),closeDirty:pn("close-dirty",60017),debugBreakpoint:pn("debug-breakpoint",60017),debugBreakpointDisabled:pn("debug-breakpoint-disabled",60017),debugHint:pn("debug-hint",60017),terminalDecorationSuccess:pn("terminal-decoration-success",60017),primitiveSquare:pn("primitive-square",60018),edit:pn("edit",60019),pencil:pn("pencil",60019),info:pn("info",60020),issueOpened:pn("issue-opened",60020),gistPrivate:pn("gist-private",60021),gitForkPrivate:pn("git-fork-private",60021),lock:pn("lock",60021),mirrorPrivate:pn("mirror-private",60021),close:pn("close",60022),removeClose:pn("remove-close",60022),x:pn("x",60022),repoSync:pn("repo-sync",60023),sync:pn("sync",60023),clone:pn("clone",60024),desktopDownload:pn("desktop-download",60024),beaker:pn("beaker",60025),microscope:pn("microscope",60025),vm:pn("vm",60026),deviceDesktop:pn("device-desktop",60026),file:pn("file",60027),fileText:pn("file-text",60027),more:pn("more",60028),ellipsis:pn("ellipsis",60028),kebabHorizontal:pn("kebab-horizontal",60028),mailReply:pn("mail-reply",60029),reply:pn("reply",60029),organization:pn("organization",60030),organizationFilled:pn("organization-filled",60030),organizationOutline:pn("organization-outline",60030),newFile:pn("new-file",60031),fileAdd:pn("file-add",60031),newFolder:pn("new-folder",60032),fileDirectoryCreate:pn("file-directory-create",60032),trash:pn("trash",60033),trashcan:pn("trashcan",60033),history:pn("history",60034),clock:pn("clock",60034),folder:pn("folder",60035),fileDirectory:pn("file-directory",60035),symbolFolder:pn("symbol-folder",60035),logoGithub:pn("logo-github",60036),markGithub:pn("mark-github",60036),github:pn("github",60036),terminal:pn("terminal",60037),console:pn("console",60037),repl:pn("repl",60037),zap:pn("zap",60038),symbolEvent:pn("symbol-event",60038),error:pn("error",60039),stop:pn("stop",60039),variable:pn("variable",60040),symbolVariable:pn("symbol-variable",60040),array:pn("array",60042),symbolArray:pn("symbol-array",60042),symbolModule:pn("symbol-module",60043),symbolPackage:pn("symbol-package",60043),symbolNamespace:pn("symbol-namespace",60043),symbolObject:pn("symbol-object",60043),symbolMethod:pn("symbol-method",60044),symbolFunction:pn("symbol-function",60044),symbolConstructor:pn("symbol-constructor",60044),symbolBoolean:pn("symbol-boolean",60047),symbolNull:pn("symbol-null",60047),symbolNumeric:pn("symbol-numeric",60048),symbolNumber:pn("symbol-number",60048),symbolStructure:pn("symbol-structure",60049),symbolStruct:pn("symbol-struct",60049),symbolParameter:pn("symbol-parameter",60050),symbolTypeParameter:pn("symbol-type-parameter",60050),symbolKey:pn("symbol-key",60051),symbolText:pn("symbol-text",60051),symbolReference:pn("symbol-reference",60052),goToFile:pn("go-to-file",60052),symbolEnum:pn("symbol-enum",60053),symbolValue:pn("symbol-value",60053),symbolRuler:pn("symbol-ruler",60054),symbolUnit:pn("symbol-unit",60054),activateBreakpoints:pn("activate-breakpoints",60055),archive:pn("archive",60056),arrowBoth:pn("arrow-both",60057),arrowDown:pn("arrow-down",60058),arrowLeft:pn("arrow-left",60059),arrowRight:pn("arrow-right",60060),arrowSmallDown:pn("arrow-small-down",60061),arrowSmallLeft:pn("arrow-small-left",60062),arrowSmallRight:pn("arrow-small-right",60063),arrowSmallUp:pn("arrow-small-up",60064),arrowUp:pn("arrow-up",60065),bell:pn("bell",60066),bold:pn("bold",60067),book:pn("book",60068),bookmark:pn("bookmark",60069),debugBreakpointConditionalUnverified:pn("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:pn("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:pn("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:pn("debug-breakpoint-data-unverified",60072),debugBreakpointData:pn("debug-breakpoint-data",60073),debugBreakpointDataDisabled:pn("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:pn("debug-breakpoint-log-unverified",60074),debugBreakpointLog:pn("debug-breakpoint-log",60075),debugBreakpointLogDisabled:pn("debug-breakpoint-log-disabled",60075),briefcase:pn("briefcase",60076),broadcast:pn("broadcast",60077),browser:pn("browser",60078),bug:pn("bug",60079),calendar:pn("calendar",60080),caseSensitive:pn("case-sensitive",60081),check:pn("check",60082),checklist:pn("checklist",60083),chevronDown:pn("chevron-down",60084),chevronLeft:pn("chevron-left",60085),chevronRight:pn("chevron-right",60086),chevronUp:pn("chevron-up",60087),chromeClose:pn("chrome-close",60088),chromeMaximize:pn("chrome-maximize",60089),chromeMinimize:pn("chrome-minimize",60090),chromeRestore:pn("chrome-restore",60091),circleOutline:pn("circle-outline",60092),circle:pn("circle",60092),debugBreakpointUnverified:pn("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:pn("terminal-decoration-incomplete",60092),circleSlash:pn("circle-slash",60093),circuitBoard:pn("circuit-board",60094),clearAll:pn("clear-all",60095),clippy:pn("clippy",60096),closeAll:pn("close-all",60097),cloudDownload:pn("cloud-download",60098),cloudUpload:pn("cloud-upload",60099),code:pn("code",60100),collapseAll:pn("collapse-all",60101),colorMode:pn("color-mode",60102),commentDiscussion:pn("comment-discussion",60103),creditCard:pn("credit-card",60105),dash:pn("dash",60108),dashboard:pn("dashboard",60109),database:pn("database",60110),debugContinue:pn("debug-continue",60111),debugDisconnect:pn("debug-disconnect",60112),debugPause:pn("debug-pause",60113),debugRestart:pn("debug-restart",60114),debugStart:pn("debug-start",60115),debugStepInto:pn("debug-step-into",60116),debugStepOut:pn("debug-step-out",60117),debugStepOver:pn("debug-step-over",60118),debugStop:pn("debug-stop",60119),debug:pn("debug",60120),deviceCameraVideo:pn("device-camera-video",60121),deviceCamera:pn("device-camera",60122),deviceMobile:pn("device-mobile",60123),diffAdded:pn("diff-added",60124),diffIgnored:pn("diff-ignored",60125),diffModified:pn("diff-modified",60126),diffRemoved:pn("diff-removed",60127),diffRenamed:pn("diff-renamed",60128),diff:pn("diff",60129),diffSidebyside:pn("diff-sidebyside",60129),discard:pn("discard",60130),editorLayout:pn("editor-layout",60131),emptyWindow:pn("empty-window",60132),exclude:pn("exclude",60133),extensions:pn("extensions",60134),eyeClosed:pn("eye-closed",60135),fileBinary:pn("file-binary",60136),fileCode:pn("file-code",60137),fileMedia:pn("file-media",60138),filePdf:pn("file-pdf",60139),fileSubmodule:pn("file-submodule",60140),fileSymlinkDirectory:pn("file-symlink-directory",60141),fileSymlinkFile:pn("file-symlink-file",60142),fileZip:pn("file-zip",60143),files:pn("files",60144),filter:pn("filter",60145),flame:pn("flame",60146),foldDown:pn("fold-down",60147),foldUp:pn("fold-up",60148),fold:pn("fold",60149),folderActive:pn("folder-active",60150),folderOpened:pn("folder-opened",60151),gear:pn("gear",60152),gift:pn("gift",60153),gistSecret:pn("gist-secret",60154),gist:pn("gist",60155),gitCommit:pn("git-commit",60156),gitCompare:pn("git-compare",60157),compareChanges:pn("compare-changes",60157),gitMerge:pn("git-merge",60158),githubAction:pn("github-action",60159),githubAlt:pn("github-alt",60160),globe:pn("globe",60161),grabber:pn("grabber",60162),graph:pn("graph",60163),gripper:pn("gripper",60164),heart:pn("heart",60165),home:pn("home",60166),horizontalRule:pn("horizontal-rule",60167),hubot:pn("hubot",60168),inbox:pn("inbox",60169),issueReopened:pn("issue-reopened",60171),issues:pn("issues",60172),italic:pn("italic",60173),jersey:pn("jersey",60174),json:pn("json",60175),kebabVertical:pn("kebab-vertical",60176),key:pn("key",60177),law:pn("law",60178),lightbulbAutofix:pn("lightbulb-autofix",60179),linkExternal:pn("link-external",60180),link:pn("link",60181),listOrdered:pn("list-ordered",60182),listUnordered:pn("list-unordered",60183),liveShare:pn("live-share",60184),loading:pn("loading",60185),location:pn("location",60186),mailRead:pn("mail-read",60187),mail:pn("mail",60188),markdown:pn("markdown",60189),megaphone:pn("megaphone",60190),mention:pn("mention",60191),milestone:pn("milestone",60192),gitPullRequestMilestone:pn("git-pull-request-milestone",60192),mortarBoard:pn("mortar-board",60193),move:pn("move",60194),multipleWindows:pn("multiple-windows",60195),mute:pn("mute",60196),noNewline:pn("no-newline",60197),note:pn("note",60198),octoface:pn("octoface",60199),openPreview:pn("open-preview",60200),package:pn("package",60201),paintcan:pn("paintcan",60202),pin:pn("pin",60203),play:pn("play",60204),run:pn("run",60204),plug:pn("plug",60205),preserveCase:pn("preserve-case",60206),preview:pn("preview",60207),project:pn("project",60208),pulse:pn("pulse",60209),question:pn("question",60210),quote:pn("quote",60211),radioTower:pn("radio-tower",60212),reactions:pn("reactions",60213),references:pn("references",60214),refresh:pn("refresh",60215),regex:pn("regex",60216),remoteExplorer:pn("remote-explorer",60217),remote:pn("remote",60218),remove:pn("remove",60219),replaceAll:pn("replace-all",60220),replace:pn("replace",60221),repoClone:pn("repo-clone",60222),repoForcePush:pn("repo-force-push",60223),repoPull:pn("repo-pull",60224),repoPush:pn("repo-push",60225),report:pn("report",60226),requestChanges:pn("request-changes",60227),rocket:pn("rocket",60228),rootFolderOpened:pn("root-folder-opened",60229),rootFolder:pn("root-folder",60230),rss:pn("rss",60231),ruby:pn("ruby",60232),saveAll:pn("save-all",60233),saveAs:pn("save-as",60234),save:pn("save",60235),screenFull:pn("screen-full",60236),screenNormal:pn("screen-normal",60237),searchStop:pn("search-stop",60238),server:pn("server",60240),settingsGear:pn("settings-gear",60241),settings:pn("settings",60242),shield:pn("shield",60243),smiley:pn("smiley",60244),sortPrecedence:pn("sort-precedence",60245),splitHorizontal:pn("split-horizontal",60246),splitVertical:pn("split-vertical",60247),squirrel:pn("squirrel",60248),starFull:pn("star-full",60249),starHalf:pn("star-half",60250),symbolClass:pn("symbol-class",60251),symbolColor:pn("symbol-color",60252),symbolConstant:pn("symbol-constant",60253),symbolEnumMember:pn("symbol-enum-member",60254),symbolField:pn("symbol-field",60255),symbolFile:pn("symbol-file",60256),symbolInterface:pn("symbol-interface",60257),symbolKeyword:pn("symbol-keyword",60258),symbolMisc:pn("symbol-misc",60259),symbolOperator:pn("symbol-operator",60260),symbolProperty:pn("symbol-property",60261),wrench:pn("wrench",60261),wrenchSubaction:pn("wrench-subaction",60261),symbolSnippet:pn("symbol-snippet",60262),tasklist:pn("tasklist",60263),telescope:pn("telescope",60264),textSize:pn("text-size",60265),threeBars:pn("three-bars",60266),thumbsdown:pn("thumbsdown",60267),thumbsup:pn("thumbsup",60268),tools:pn("tools",60269),triangleDown:pn("triangle-down",60270),triangleLeft:pn("triangle-left",60271),triangleRight:pn("triangle-right",60272),triangleUp:pn("triangle-up",60273),twitter:pn("twitter",60274),unfold:pn("unfold",60275),unlock:pn("unlock",60276),unmute:pn("unmute",60277),unverified:pn("unverified",60278),verified:pn("verified",60279),versions:pn("versions",60280),vmActive:pn("vm-active",60281),vmOutline:pn("vm-outline",60282),vmRunning:pn("vm-running",60283),watch:pn("watch",60284),whitespace:pn("whitespace",60285),wholeWord:pn("whole-word",60286),window:pn("window",60287),wordWrap:pn("word-wrap",60288),zoomIn:pn("zoom-in",60289),zoomOut:pn("zoom-out",60290),listFilter:pn("list-filter",60291),listFlat:pn("list-flat",60292),listSelection:pn("list-selection",60293),selection:pn("selection",60293),listTree:pn("list-tree",60294),debugBreakpointFunctionUnverified:pn("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:pn("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:pn("debug-breakpoint-function-disabled",60296),debugStackframeActive:pn("debug-stackframe-active",60297),circleSmallFilled:pn("circle-small-filled",60298),debugStackframeDot:pn("debug-stackframe-dot",60298),terminalDecorationMark:pn("terminal-decoration-mark",60298),debugStackframe:pn("debug-stackframe",60299),debugStackframeFocused:pn("debug-stackframe-focused",60299),debugBreakpointUnsupported:pn("debug-breakpoint-unsupported",60300),symbolString:pn("symbol-string",60301),debugReverseContinue:pn("debug-reverse-continue",60302),debugStepBack:pn("debug-step-back",60303),debugRestartFrame:pn("debug-restart-frame",60304),debugAlt:pn("debug-alt",60305),callIncoming:pn("call-incoming",60306),callOutgoing:pn("call-outgoing",60307),menu:pn("menu",60308),expandAll:pn("expand-all",60309),feedback:pn("feedback",60310),gitPullRequestReviewer:pn("git-pull-request-reviewer",60310),groupByRefType:pn("group-by-ref-type",60311),ungroupByRefType:pn("ungroup-by-ref-type",60312),account:pn("account",60313),gitPullRequestAssignee:pn("git-pull-request-assignee",60313),bellDot:pn("bell-dot",60314),debugConsole:pn("debug-console",60315),library:pn("library",60316),output:pn("output",60317),runAll:pn("run-all",60318),syncIgnored:pn("sync-ignored",60319),pinned:pn("pinned",60320),githubInverted:pn("github-inverted",60321),serverProcess:pn("server-process",60322),serverEnvironment:pn("server-environment",60323),pass:pn("pass",60324),issueClosed:pn("issue-closed",60324),stopCircle:pn("stop-circle",60325),playCircle:pn("play-circle",60326),record:pn("record",60327),debugAltSmall:pn("debug-alt-small",60328),vmConnect:pn("vm-connect",60329),cloud:pn("cloud",60330),merge:pn("merge",60331),export:pn("export",60332),graphLeft:pn("graph-left",60333),magnet:pn("magnet",60334),notebook:pn("notebook",60335),redo:pn("redo",60336),checkAll:pn("check-all",60337),pinnedDirty:pn("pinned-dirty",60338),passFilled:pn("pass-filled",60339),circleLargeFilled:pn("circle-large-filled",60340),circleLarge:pn("circle-large",60341),circleLargeOutline:pn("circle-large-outline",60341),combine:pn("combine",60342),gather:pn("gather",60342),table:pn("table",60343),variableGroup:pn("variable-group",60344),typeHierarchy:pn("type-hierarchy",60345),typeHierarchySub:pn("type-hierarchy-sub",60346),typeHierarchySuper:pn("type-hierarchy-super",60347),gitPullRequestCreate:pn("git-pull-request-create",60348),runAbove:pn("run-above",60349),runBelow:pn("run-below",60350),notebookTemplate:pn("notebook-template",60351),debugRerun:pn("debug-rerun",60352),workspaceTrusted:pn("workspace-trusted",60353),workspaceUntrusted:pn("workspace-untrusted",60354),workspaceUnknown:pn("workspace-unknown",60355),terminalCmd:pn("terminal-cmd",60356),terminalDebian:pn("terminal-debian",60357),terminalLinux:pn("terminal-linux",60358),terminalPowershell:pn("terminal-powershell",60359),terminalTmux:pn("terminal-tmux",60360),terminalUbuntu:pn("terminal-ubuntu",60361),terminalBash:pn("terminal-bash",60362),arrowSwap:pn("arrow-swap",60363),copy:pn("copy",60364),personAdd:pn("person-add",60365),filterFilled:pn("filter-filled",60366),wand:pn("wand",60367),debugLineByLine:pn("debug-line-by-line",60368),inspect:pn("inspect",60369),layers:pn("layers",60370),layersDot:pn("layers-dot",60371),layersActive:pn("layers-active",60372),compass:pn("compass",60373),compassDot:pn("compass-dot",60374),compassActive:pn("compass-active",60375),azure:pn("azure",60376),issueDraft:pn("issue-draft",60377),gitPullRequestClosed:pn("git-pull-request-closed",60378),gitPullRequestDraft:pn("git-pull-request-draft",60379),debugAll:pn("debug-all",60380),debugCoverage:pn("debug-coverage",60381),runErrors:pn("run-errors",60382),folderLibrary:pn("folder-library",60383),debugContinueSmall:pn("debug-continue-small",60384),beakerStop:pn("beaker-stop",60385),graphLine:pn("graph-line",60386),graphScatter:pn("graph-scatter",60387),pieChart:pn("pie-chart",60388),bracket:pn("bracket",60175),bracketDot:pn("bracket-dot",60389),bracketError:pn("bracket-error",60390),lockSmall:pn("lock-small",60391),azureDevops:pn("azure-devops",60392),verifiedFilled:pn("verified-filled",60393),newline:pn("newline",60394),layout:pn("layout",60395),layoutActivitybarLeft:pn("layout-activitybar-left",60396),layoutActivitybarRight:pn("layout-activitybar-right",60397),layoutPanelLeft:pn("layout-panel-left",60398),layoutPanelCenter:pn("layout-panel-center",60399),layoutPanelJustify:pn("layout-panel-justify",60400),layoutPanelRight:pn("layout-panel-right",60401),layoutPanel:pn("layout-panel",60402),layoutSidebarLeft:pn("layout-sidebar-left",60403),layoutSidebarRight:pn("layout-sidebar-right",60404),layoutStatusbar:pn("layout-statusbar",60405),layoutMenubar:pn("layout-menubar",60406),layoutCentered:pn("layout-centered",60407),target:pn("target",60408),indent:pn("indent",60409),recordSmall:pn("record-small",60410),errorSmall:pn("error-small",60411),terminalDecorationError:pn("terminal-decoration-error",60411),arrowCircleDown:pn("arrow-circle-down",60412),arrowCircleLeft:pn("arrow-circle-left",60413),arrowCircleRight:pn("arrow-circle-right",60414),arrowCircleUp:pn("arrow-circle-up",60415),layoutSidebarRightOff:pn("layout-sidebar-right-off",60416),layoutPanelOff:pn("layout-panel-off",60417),layoutSidebarLeftOff:pn("layout-sidebar-left-off",60418),blank:pn("blank",60419),heartFilled:pn("heart-filled",60420),map:pn("map",60421),mapHorizontal:pn("map-horizontal",60421),foldHorizontal:pn("fold-horizontal",60421),mapFilled:pn("map-filled",60422),mapHorizontalFilled:pn("map-horizontal-filled",60422),foldHorizontalFilled:pn("fold-horizontal-filled",60422),circleSmall:pn("circle-small",60423),bellSlash:pn("bell-slash",60424),bellSlashDot:pn("bell-slash-dot",60425),commentUnresolved:pn("comment-unresolved",60426),gitPullRequestGoToChanges:pn("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:pn("git-pull-request-new-changes",60428),searchFuzzy:pn("search-fuzzy",60429),commentDraft:pn("comment-draft",60430),send:pn("send",60431),sparkle:pn("sparkle",60432),insert:pn("insert",60433),mic:pn("mic",60434),thumbsdownFilled:pn("thumbsdown-filled",60435),thumbsupFilled:pn("thumbsup-filled",60436),coffee:pn("coffee",60437),snake:pn("snake",60438),game:pn("game",60439),vr:pn("vr",60440),chip:pn("chip",60441),piano:pn("piano",60442),music:pn("music",60443),micFilled:pn("mic-filled",60444),repoFetch:pn("repo-fetch",60445),copilot:pn("copilot",60446),lightbulbSparkle:pn("lightbulb-sparkle",60447),robot:pn("robot",60448),sparkleFilled:pn("sparkle-filled",60449),diffSingle:pn("diff-single",60450),diffMultiple:pn("diff-multiple",60451),surroundWith:pn("surround-with",60452),share:pn("share",60453),gitStash:pn("git-stash",60454),gitStashApply:pn("git-stash-apply",60455),gitStashPop:pn("git-stash-pop",60456),vscode:pn("vscode",60457),vscodeInsiders:pn("vscode-insiders",60458),codeOss:pn("code-oss",60459),runCoverage:pn("run-coverage",60460),runAllCoverage:pn("run-all-coverage",60461),coverage:pn("coverage",60462),githubProject:pn("github-project",60463),mapVertical:pn("map-vertical",60464),foldVertical:pn("fold-vertical",60464),mapVerticalFilled:pn("map-vertical-filled",60465),foldVerticalFilled:pn("fold-vertical-filled",60465)},...{dialogError:pn("dialog-error","error"),dialogWarning:pn("dialog-warning","warning"),dialogInfo:pn("dialog-info","info"),dialogClose:pn("dialog-close","close"),treeItemExpanded:pn("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:pn("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:pn("tree-filter-on-type-off","list-selection"),treeFilterClear:pn("tree-filter-clear","close"),treeItemLoading:pn("tree-item-loading","loading"),menuSelection:pn("menu-selection","check"),menuSubmenu:pn("menu-submenu","chevron-right"),menuBarMore:pn("menubar-more","more"),scrollbarButtonLeft:pn("scrollbar-button-left","triangle-left"),scrollbarButtonRight:pn("scrollbar-button-right","triangle-right"),scrollbarButtonUp:pn("scrollbar-button-up","triangle-up"),scrollbarButtonDown:pn("scrollbar-button-down","triangle-down"),toolBarMore:pn("toolbar-more","more"),quickInputBack:pn("quick-input-back","arrow-left"),dropDownButton:pn("drop-down-button",60084),symbolCustomColor:pn("symbol-customcolor",60252),exportIcon:pn("export",60332),workspaceUnspecified:pn("workspace-unspecified",60355),newLine:pn("newline",60394),thumbsDownFilled:pn("thumbsdown-filled",60435),thumbsUpFilled:pn("thumbsup-filled",60436),gitFetch:pn("git-fetch",60445),lightbulbSparkleAutofix:pn("lightbulb-sparkle-autofix",60447),debugBreakpointPending:pn("debug-breakpoint-pending",60377)}};class bn extends b{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class yn{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var _n,Cn,wn,Sn,En;!function(e){const t=new Map;t.set(0,vn.symbolMethod),t.set(1,vn.symbolFunction),t.set(2,vn.symbolConstructor),t.set(3,vn.symbolField),t.set(4,vn.symbolVariable),t.set(5,vn.symbolClass),t.set(6,vn.symbolStruct),t.set(7,vn.symbolInterface),t.set(8,vn.symbolModule),t.set(9,vn.symbolProperty),t.set(10,vn.symbolEvent),t.set(11,vn.symbolOperator),t.set(12,vn.symbolUnit),t.set(13,vn.symbolValue),t.set(15,vn.symbolEnum),t.set(14,vn.symbolConstant),t.set(15,vn.symbolEnum),t.set(16,vn.symbolEnumMember),t.set(17,vn.symbolKeyword),t.set(27,vn.symbolSnippet),t.set(18,vn.symbolText),t.set(19,vn.symbolColor),t.set(20,vn.symbolFile),t.set(21,vn.symbolReference),t.set(22,vn.symbolCustomColor),t.set(23,vn.symbolFolder),t.set(24,vn.symbolTypeParameter),t.set(25,vn.account),t.set(26,vn.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=vn.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let r=n.get(e);return"undefined"!==typeof r||t||(r=9),r}}(_n||(_n={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(Cn||(Cn={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(wn||(wn={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(Sn||(Sn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(En||(En={}));I(0,"array"),I(0,"boolean"),I(0,"class"),I(0,"constant"),I(0,"constructor"),I(0,"enumeration"),I(0,"enumeration member"),I(0,"event"),I(0,"field"),I(0,"file"),I(0,"function"),I(0,"interface"),I(0,"key"),I(0,"method"),I(0,"module"),I(0,"namespace"),I(0,"null"),I(0,"number"),I(0,"object"),I(0,"operator"),I(0,"package"),I(0,"property"),I(0,"string"),I(0,"struct"),I(0,"type parameter"),I(0,"variable");var Ln,xn,Nn,An;!function(e){const t=new Map;t.set(0,vn.symbolFile),t.set(1,vn.symbolModule),t.set(2,vn.symbolNamespace),t.set(3,vn.symbolPackage),t.set(4,vn.symbolClass),t.set(5,vn.symbolMethod),t.set(6,vn.symbolProperty),t.set(7,vn.symbolField),t.set(8,vn.symbolConstructor),t.set(9,vn.symbolEnum),t.set(10,vn.symbolInterface),t.set(11,vn.symbolFunction),t.set(12,vn.symbolVariable),t.set(13,vn.symbolConstant),t.set(14,vn.symbolString),t.set(15,vn.symbolNumber),t.set(16,vn.symbolBoolean),t.set(17,vn.symbolArray),t.set(18,vn.symbolObject),t.set(19,vn.symbolKey),t.set(20,vn.symbolNull),t.set(21,vn.symbolEnumMember),t.set(22,vn.symbolStruct),t.set(23,vn.symbolEvent),t.set(24,vn.symbolOperator),t.set(25,vn.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=vn.symbolProperty),n}}(Ln||(Ln={}));class kn{static fromValue(e){switch(e){case"comment":return kn.Comment;case"imports":return kn.Imports;case"region":return kn.Region}return new kn(e)}constructor(e){this.value=e}}kn.Comment=new kn("comment"),kn.Imports=new kn("imports"),kn.Region=new kn("region"),function(e){e[e.AIGenerated=1]="AIGenerated"}(xn||(xn={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(Nn||(Nn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(An||(An={}));new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new k,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),p((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var n;null===(n=this._factories.get(e))||void 0===n||n.dispose();const r=new bn(this,e,t);return this._factories.set(e,r),p((()=>{const t=this._factories.get(e);t&&t===r&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};var Rn,Tn,Mn,On,In,Pn,Fn,Dn,Vn,qn,Kn,jn,Un,Bn,$n,Wn,Hn,zn,Gn,Jn,Xn,Qn,Zn,Yn,er,tr,nr,rr,ir,sr,or,ar,lr,ur,cr,hr,dr,fr,mr,gr,pr,vr,br,yr,_r,Cr,wr;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Rn||(Rn={})),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(Tn||(Tn={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(Mn||(Mn={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(On||(On={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(In||(In={})),function(e){e[e.Deprecated=1]="Deprecated"}(Pn||(Pn={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(Fn||(Fn={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(Dn||(Dn={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(Vn||(Vn={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(qn||(qn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Kn||(Kn={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(jn||(jn={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",e[e.quickSuggestions=89]="quickSuggestions",e[e.quickSuggestionsDelay=90]="quickSuggestionsDelay",e[e.readOnly=91]="readOnly",e[e.readOnlyMessage=92]="readOnlyMessage",e[e.renameOnType=93]="renameOnType",e[e.renderControlCharacters=94]="renderControlCharacters",e[e.renderFinalNewline=95]="renderFinalNewline",e[e.renderLineHighlight=96]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=98]="renderValidationDecorations",e[e.renderWhitespace=99]="renderWhitespace",e[e.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",e[e.roundedSelection=101]="roundedSelection",e[e.rulers=102]="rulers",e[e.scrollbar=103]="scrollbar",e[e.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=105]="scrollBeyondLastLine",e[e.scrollPredominantAxis=106]="scrollPredominantAxis",e[e.selectionClipboard=107]="selectionClipboard",e[e.selectionHighlight=108]="selectionHighlight",e[e.selectOnLineNumbers=109]="selectOnLineNumbers",e[e.showFoldingControls=110]="showFoldingControls",e[e.showUnused=111]="showUnused",e[e.snippetSuggestions=112]="snippetSuggestions",e[e.smartSelect=113]="smartSelect",e[e.smoothScrolling=114]="smoothScrolling",e[e.stickyScroll=115]="stickyScroll",e[e.stickyTabStops=116]="stickyTabStops",e[e.stopRenderingLineAfter=117]="stopRenderingLineAfter",e[e.suggest=118]="suggest",e[e.suggestFontSize=119]="suggestFontSize",e[e.suggestLineHeight=120]="suggestLineHeight",e[e.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",e[e.suggestSelection=122]="suggestSelection",e[e.tabCompletion=123]="tabCompletion",e[e.tabIndex=124]="tabIndex",e[e.unicodeHighlighting=125]="unicodeHighlighting",e[e.unusualLineTerminators=126]="unusualLineTerminators",e[e.useShadowDOM=127]="useShadowDOM",e[e.useTabStops=128]="useTabStops",e[e.wordBreak=129]="wordBreak",e[e.wordSegmenterLocales=130]="wordSegmenterLocales",e[e.wordSeparators=131]="wordSeparators",e[e.wordWrap=132]="wordWrap",e[e.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=135]="wordWrapColumn",e[e.wordWrapOverride1=136]="wordWrapOverride1",e[e.wordWrapOverride2=137]="wordWrapOverride2",e[e.wrappingIndent=138]="wrappingIndent",e[e.wrappingStrategy=139]="wrappingStrategy",e[e.showDeprecated=140]="showDeprecated",e[e.inlayHints=141]="inlayHints",e[e.editorClassName=142]="editorClassName",e[e.pixelRatio=143]="pixelRatio",e[e.tabFocusMode=144]="tabFocusMode",e[e.layoutInfo=145]="layoutInfo",e[e.wrappingInfo=146]="wrappingInfo",e[e.defaultColorDecorators=147]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"}(Un||(Un={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Bn||(Bn={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}($n||($n={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(Wn||(Wn={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(Hn||(Hn={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(zn||(zn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(Gn||(Gn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(Jn||(Jn={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Xn||(Xn={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(Qn||(Qn={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(Zn||(Zn={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(Yn||(Yn={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(er||(er={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(tr||(tr={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(nr||(nr={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(rr||(rr={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(ir||(ir={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(sr||(sr={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(or||(or={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(ar||(ar={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(lr||(lr={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(ur||(ur={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(cr||(cr={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(hr||(hr={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(dr||(dr={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(fr||(fr={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(mr||(mr={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(gr||(gr={})),function(e){e[e.Deprecated=1]="Deprecated"}(pr||(pr={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(vr||(vr={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(br||(br={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(yr||(yr={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(_r||(_r={}));class Sr{static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}Sr.CtrlCmd=2048,Sr.Shift=1024,Sr.Alt=512,Sr.WinCtrl=256;class Er{constructor(e,t){this.uri=e,this.value=t}}class Lr{constructor(e,t){if(this[Cr]="ResourceMap",e instanceof Lr)this.map=new Map(e.map),this.toKey=null!==t&&void 0!==t?t:Lr.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=null!==t&&void 0!==t?t:Lr.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=null!==e&&void 0!==e?e:Lr.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new Er(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,r]of this.map)e(r.value,r.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(Cr=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}Lr.defaultToKey=e=>e.toString();class xr{constructor(){this[wr]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(r);break;case 1:this.addItemFirst(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}values(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}entries(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}[(wr=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class Nr{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}new class extends xr{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}(10);var Ar,kr,Rr;!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Ar||(Ar={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(kr||(kr={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Rr||(Rr={}));function Tr(e,t,n,r,i){return function(e,t,n,r,i){if(0===r)return!0;const s=t.charCodeAt(r-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(i>0){const n=t.charCodeAt(r);if(0!==e.get(n))return!0}return!1}(e,t,0,r,i)&&function(e,t,n,r,i){if(r+i===n)return!0;const s=t.charCodeAt(r+i);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(i>0){const n=t.charCodeAt(r+i-1);if(0!==e.get(n))return!0}return!1}(e,t,n,r,i)}class Mr{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,i=n[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength){if(0===i){pe(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||Tr(this._wordSeparators,e,t,r,i))return n}while(n);return null}}function Or(e,t="Unreachable"){throw new Error(t)}function Ir(e){e()||(e(),t(new a("Assertion Failed")))}function Pr(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}class Fr{static computeUnicodeHighlights(e,t,n){const r=n?n.startLineNumber:1,i=n?n.endLineNumber:e.getLineCount(),s=new Dr(t),o=s.getCandidateCodePoints();let a;a="allNonBasicAscii"===o?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+`[${he(Array.from(o).map((e=>String.fromCodePoint(e))).join(""))}]`,"g");const l=new Mr(null,a),u=[];let c,h=!1,d=0,f=0,m=0;e:for(let g=r,p=i;g<=p;g++){const t=e.getLineContent(g),n=t.length;l.reset(0);do{if(c=l.next(t),c){let e=c.index,r=c.index+c[0].length;if(e>0){fe(t.charCodeAt(e-1))&&e--}if(r+1<n){fe(t.charCodeAt(r-1))&&r++}const i=t.substring(e,r);let o=jt(e+1,Vt,t,0);o&&o.endColumn<=e+1&&(o=null);const a=s.shouldHighlightNonBasicASCII(i,o?o.word:null);if(0!==a){3===a?d++:2===a?f++:1===a?m++:Or();const t=1e3;if(u.length>=t){h=!0;break e}u.push(new At(g,e+1,g,r+1))}}}while(c)}return{ranges:u,hasMore:h,ambiguousCharacterCount:d,invisibleCharacterCount:f,nonBasicAsciiCharacterCount:m}}static computeUnicodeHighlightReason(e,t){const n=new Dr(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),i=n.ambiguousCharacters.getPrimaryConfusable(r),s=ye.getLocales().filter((e=>!ye.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r)));return{kind:0,confusableWith:String.fromCodePoint(i),notAmbiguousInLocales:s}}case 1:return{kind:2}}}}class Dr{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=ye.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of _e.codePoints)Vr(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,i=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=(s=o,ve.test(s));r=r||t,t||this.ambiguousCharacters.isAmbiguous(e)||_e.isInvisibleCharacter(e)||(i=!0)}var s;return!r&&i?0:this.options.invisibleCharacters&&!Vr(e)&&_e.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function Vr(e){return" "===e||"\n"===e||"\t"===e}class qr{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class Kr{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}class jr{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let r=n;for(;r<t.length&&t[r].start<=e.endExclusive;)r++;if(n===r)t.splice(n,0,e);else{const i=Math.min(e.start,t[n].start),s=Math.max(e.endExclusive,t[r-1].endExclusive);t.splice(n,r-n,new jr(i,s))}}static tryCreate(e,t){if(!(e>t))return new jr(e,t)}static ofLength(e){return new jr(0,e)}static ofStartAndLength(e,t){return new jr(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new a(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new jr(this.start+e,this.endExclusive+e)}deltaStart(e){return new jr(this.start+e,this.endExclusive)}deltaEnd(e){return new jr(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new jr(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new jr(t,n)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new a(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new a(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}function Ur(e,t){const n=Br(e,t);return-1===n?void 0:e[n]}function Br(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const n=Math.floor((i+s)/2);t(e[n])?i=n+1:s=n}return i-1}function $r(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const n=Math.floor((i+s)/2);t(e[n])?s=n:i=n+1}return i}class Wr{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(Wr.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=Br(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}Wr.assertInvariants=!1;class Hr{static fromRangeInclusive(e){return new Hr(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new zr(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new zr(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new a("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let r=1;r<e.length;r++)t=Math.min(t,e[r].startLineNumber),n=Math.max(n,e[r].endLineNumberExclusive);return new Hr(t,n)}static ofLength(e,t){return new Hr(e,e+t)}static deserialize(e){return new Hr(e[0],e[1])}constructor(e,t){if(e>t)throw new a(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new Hr(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new Hr(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new Hr(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new Hr(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new At(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new At(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new jr(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class zr{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=$r(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=Br(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const r=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,r)}}contains(e){const t=Ur(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=Ur(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,r=0,i=null;for(;n<this._normalizedRanges.length||r<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&r<e._normalizedRanges.length){const t=this._normalizedRanges[n],i=e._normalizedRanges[r];t.startLineNumber<i.startLineNumber?(s=t,n++):(s=i,r++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[r],r++);null===i?i=s:i.endLineNumberExclusive>=s.startLineNumber?i=new Hr(i.startLineNumber,Math.max(i.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(i),i=s)}return null!==i&&t.push(i),new zr(t)}subtractFrom(e){const t=$r(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=Br(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new zr([e]);const r=[];let i=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>i&&r.push(new Hr(i,e.startLineNumber)),i=e.endLineNumberExclusive}return i<e.endLineNumberExclusive&&r.push(new Hr(i,e.endLineNumberExclusive)),new zr(r)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,r=0;for(;n<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const i=this._normalizedRanges[n],s=e._normalizedRanges[r],o=i.intersect(s);o&&!o.isEmpty&&t.push(o),i.endLineNumberExclusive<s.endLineNumberExclusive?n++:r++}return new zr(t)}getWithDelta(e){return new zr(this._normalizedRanges.map((t=>t.delta(e))))}}class Gr{static inverse(e,t,n){const r=[];let i=1,s=1;for(const a of e){const e=new Gr(new Hr(i,a.original.startLineNumber),new Hr(s,a.modified.startLineNumber));e.modified.isEmpty||r.push(e),i=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new Gr(new Hr(i,t+1),new Hr(s,n+1));return o.modified.isEmpty||r.push(o),r}static clip(e,t,n){const r=[];for(const i of e){const e=i.original.intersect(t),s=i.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&r.push(new Gr(e,s))}return r}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Gr(this.modified,this.original)}join(e){return new Gr(this.original.join(e.original),this.modified.join(e.modified))}}class Jr extends Gr{static fromRangeMappings(e){const t=Hr.join(e.map((e=>Hr.fromRangeInclusive(e.originalRange)))),n=Hr.join(e.map((e=>Hr.fromRangeInclusive(e.modifiedRange))));return new Jr(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){var e;return new Jr(this.modified,this.original,null===(e=this.innerChanges)||void 0===e?void 0:e.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new Jr(this.original,this.modified,[new Xr(this.original.toExclusiveRange(),this.modified.toExclusiveRange())])}}class Xr{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Xr(this.modifiedRange,this.originalRange)}}class Qr{computeDiff(e,t,n){var r;const i=new ri(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),s=[];let o=null;for(const a of i.changes){let e,t;e=0===a.originalEndLineNumber?new Hr(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new Hr(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new Hr(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new Hr(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let n=new Jr(e,t,null===(r=a.charChanges)||void 0===r?void 0:r.map((e=>new Xr(new At(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new At(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));o&&(o.modified.endLineNumberExclusive!==n.modified.startLineNumber&&o.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new Jr(o.original.join(n.original),o.modified.join(n.modified),o.innerChanges&&n.innerChanges?o.innerChanges.concat(n.innerChanges):void 0),s.pop())),s.push(n),o=n}return Ir((()=>Pr(s,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new qr(s,[],i.quitEarly)}}function Zr(e,t,n,r){return new We(e,t,n).ComputeDiff(r)}class Yr{constructor(e){const t=[],n=[];for(let r=0,i=e.length;r<i;r++)t[r]=ii(e[r],1),n[r]=si(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const r=[],i=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,u=e?this._endColumns[a]:t.length+1;for(let e=l;e<u;e++)r[o]=t.charCodeAt(e-1),i[o]=a+1,s[o]=e,o++;!e&&a<n&&(r[o]=10,i[o]=a+1,s[o]=t.length+1,o++)}return new ei(r,i,s)}}class ei{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class ti{constructor(e,t,n,r,i,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const r=t.getStartLineNumber(e.originalStart),i=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),u=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new ti(r,i,s,o,a,l,u,c)}}class ni{constructor(e,t,n,r,i){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=i}static createFromDiffResult(e,t,n,r,i,s,o){let a,l,u,c,h;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(u=r.getStartLineNumber(t.modifiedStart)-1,c=0):(u=r.getStartLineNumber(t.modifiedStart),c=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=Zr(s,a,i,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const i=e[r],s=i.originalStart-(n.originalStart+n.originalLength),o=i.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=i.originalStart+i.originalLength-n.originalStart,n.modifiedLength=i.modifiedStart+i.modifiedLength-n.modifiedStart):(t.push(i),n=i)}return t}(e)),h=[];for(let t=0,n=e.length;t<n;t++)h.push(ti.createFromDiffChange(e[t],s,a))}}return new ni(a,l,u,c,h)}}class ri{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new Yr(e),this.modified=new Yr(t),this.continueLineDiff=oi(n.maxComputationTime),this.continueCharDiff=oi(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=Zr(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(ni.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const r=[];let i=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;i<n&&s<l;){const e=this.originalLines[i],t=this.modifiedLines[s];if(e!==t){{let n=ii(e,1),o=ii(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,s+1,1,o)}{let n=si(e,1),o=si(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(r,i+1,n,a,s+1,o,l)}}i++,s++}e&&(r.push(ni.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,i,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,i,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new ti(t,n,t,r,i,s,i,o)]),e.push(new ni(t,t,i,i,a))}_mergeTrimWhitespaceCharChange(e,t,n,r,i,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===i?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new ti(t,n,t,r,i,s,i,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===i&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new ti(t,n,t,r,i,s,i,o)),!0))}}function ii(e,t){const n=function(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}(e);return-1===n?t:n+1}function si(e,t){const n=function(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===n?t:n+2}function oi(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}class ai{static trivial(e,t){return new ai([new li(jr.ofLength(e.length),jr.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new ai([new li(jr.ofLength(e.length),jr.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class li{static invert(e,t){const n=[];return function(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}(e,((e,r)=>{n.push(li.fromOffsetPairs(e?e.getEndExclusives():ui.zero,r?r.getStarts():new ui(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new li(new jr(e.offset1,t.offset1),new jr(e.offset2,t.offset2))}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new li(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new li(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new li(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new li(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new li(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new li(t,n)}getStarts(){return new ui(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new ui(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class ui{constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new ui(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}ui.zero=new ui(0,0),ui.max=new ui(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class ci{isValid(){return!0}}ci.instance=new ci;class hi{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new a("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class di{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}}function fi(e){return 32===e||9===e}class mi{static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let r=0;for(let i=e.startLineNumber-1;i<e.endLineNumberExclusive-1;i++){const e=t[i];for(let t=0;t<e.length;t++){r++;const n=e[t],i=mi.getKey(n);this.histogram[i]=(this.histogram[i]||0)+1}r++;const n=mi.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=r}computeSimilarity(e){var t,n;let r=0;const i=Math.max(this.histogram.length,e.histogram.length);for(let s=0;s<i;s++)r+=Math.abs((null!==(t=this.histogram[s])&&void 0!==t?t:0)-(null!==(n=e.histogram[s])&&void 0!==n?n:0));return 1-r/(this.totalCount+e.totalCount)}}mi.chrKeys=new Map;class gi{compute(e,t,n=ci.instance,r){if(0===e.length||0===t.length)return ai.trivial(e,t);const i=new di(e.length,t.length),s=new di(e.length,t.length),o=new di(e.length,t.length);for(let f=0;f<e.length;f++)for(let a=0;a<t.length;a++){if(!n.isValid())return ai.trivialTimedOut(e,t);const l=0===f?0:i.get(f-1,a),u=0===a?0:i.get(f,a-1);let c;e.getElement(f)===t.getElement(a)?(c=0===f||0===a?0:i.get(f-1,a-1),f>0&&a>0&&3===s.get(f-1,a-1)&&(c+=o.get(f-1,a-1)),c+=r?r(f,a):1):c=-1;const h=Math.max(l,u,c);if(h===c){const e=f>0&&a>0?o.get(f-1,a-1):0;o.set(f,a,e+1),s.set(f,a,3)}else h===l?(o.set(f,a,0),s.set(f,a,1)):h===u&&(o.set(f,a,0),s.set(f,a,2));i.set(f,a,h)}const a=[];let l=e.length,u=t.length;function c(e,t){e+1===l&&t+1===u||a.push(new li(new jr(e+1,l),new jr(t+1,u))),l=e,u=t}let h=e.length-1,d=t.length-1;for(;h>=0&&d>=0;)3===s.get(h,d)?(c(h,d),h--,d--):1===s.get(h,d)?h--:d--;return c(-1,-1),a.reverse(),new ai(a,!1)}}class pi{compute(e,t,n=ci.instance){if(0===e.length||0===t.length)return ai.trivial(e,t);const r=e,i=t;function s(e,t){for(;e<r.length&&t<i.length&&r.getElement(e)===i.getElement(t);)e++,t++;return e}let o=0;const a=new bi;a.set(0,s(0,0));const l=new yi;l.set(0,0===a.get(0)?null:new vi(null,0,0,a.get(0)));let u=0;e:for(;;){if(o++,!n.isValid())return ai.trivialTimedOut(r,i);const e=-Math.min(o,i.length+o%2),t=Math.min(o,r.length+o%2);for(u=e;u<=t;u+=2){let n=0;const o=u===t?-1:a.get(u+1),c=u===e?-1:a.get(u-1)+1;n++;const h=Math.min(Math.max(o,c),r.length),d=h-u;if(n++,h>r.length||d>i.length)continue;const f=s(h,d);a.set(u,f);const m=h===o?l.get(u+1):l.get(u-1);if(l.set(u,f!==h?new vi(m,h,d,f-h):m),a.get(u)===r.length&&a.get(u)-u===i.length)break e}}let c=l.get(u);const h=[];let d=r.length,f=i.length;for(;;){const e=c?c.x+c.length:0,t=c?c.y+c.length:0;if(e===d&&t===f||h.push(new li(new jr(e,d),new jr(t,f))),!c)break;d=c.x,f=c.y,c=c.prev}return h.reverse(),new ai(h,!1)}}class vi{constructor(e,t,n,r){this.prev=e,this.x=t,this.y=n,this.length=r}}class bi{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class yi{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class _i{constructor(e,t,n){this.lines=e,this.considerWhitespaceChanges=n,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let r=!1;t.start>0&&t.endExclusive>=e.length&&(t=new jr(t.start-1,t.endExclusive),r=!0),this.lineRange=t,this.firstCharOffsetByLine[0]=0;for(let i=this.lineRange.start;i<this.lineRange.endExclusive;i++){let t=e[i],s=0;if(r)s=t.length,t="",r=!1;else if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.additionalOffsetByLine.push(s);for(let e=0;e<t.length;e++)this.elements.push(t.charCodeAt(e));i<e.length-1&&(this.elements.push("\n".charCodeAt(0)),this.firstCharOffsetByLine[i-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new jr(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=Ei(e>0?this.elements[e-1]:-1),n=Ei(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let r=0;return t!==n&&(r+=10,0===t&&1===n&&(r+=1)),r+=Si(t),r+=Si(n),r}translateOffset(e){if(this.lineRange.isEmpty)return new Nt(this.lineRange.start+1,1);const t=Br(this.firstCharOffsetByLine,(t=>t<=e));return new Nt(this.lineRange.start+t+1,e-this.firstCharOffsetByLine[t]+this.additionalOffsetByLine[t]+1)}translateRange(e){return At.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!Ci(this.elements[e]))return;let t=e;for(;t>0&&Ci(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&Ci(this.elements[n]);)n++;return new jr(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){var t,n;const r=null!==(t=Ur(this.firstCharOffsetByLine,(t=>t<=e.start)))&&void 0!==t?t:0,i=null!==(n=function(e,t){const n=$r(e,t);return n===e.length?void 0:e[n]}(this.firstCharOffsetByLine,(t=>e.endExclusive<=t)))&&void 0!==n?n:this.elements.length;return new jr(r,i)}}function Ci(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const wi={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Si(e){return wi[e]}function Ei(e){return 10===e?8:13===e?7:fi(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function Li(e,t,n,r,i,s){let{moves:o,excludedChanges:a}=function(e,t,n,r){const i=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new mi(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new mi(e.modified,n,e)))),a=new Set;for(const l of s){let e,t=-1;for(const n of o){const r=l.computeSimilarity(n);r>t&&(t=r,e=n)}if(t>.9&&e&&(o.delete(e),i.push(new Gr(l.range,e.range)),a.add(l.source),a.add(e.source)),!r.isValid())return{moves:i,excludedChanges:a}}return{moves:i,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,r,i,s){const o=[],a=new Nr;for(const f of e)for(let e=f.original.startLineNumber;e<f.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new Hr(e,e+3)})}const l=[];e.sort(Rt((e=>e.modified.startLineNumber),Tt));for(const f of e){let e=[];for(let t=f.modified.startLineNumber;t<f.modified.endLineNumberExclusive-2;t++){const r=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,i=new Hr(t,t+3),s=[];a.forEach(r,(({range:t})=>{for(const r of e)if(r.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&r.modifiedLineRange.endLineNumberExclusive+1===i.endLineNumberExclusive)return r.originalLineRange=new Hr(r.originalLineRange.startLineNumber,t.endLineNumberExclusive),r.modifiedLineRange=new Hr(r.modifiedLineRange.startLineNumber,i.endLineNumberExclusive),void s.push(r);const n={modifiedLineRange:i,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((u=Rt((e=>e.modifiedLineRange.length),Tt),(e,t)=>-u(e,t)));var u;const c=new zr,h=new zr;for(const f of l){const e=f.modifiedLineRange.startLineNumber-f.originalLineRange.startLineNumber,t=c.subtractFrom(f.modifiedLineRange),n=h.subtractFrom(f.originalLineRange).getWithDelta(e),r=t.getIntersection(n);for(const i of r.ranges){if(i.length<3)continue;const t=i,n=i.delta(-e);o.push(new Gr(n,t)),c.addRange(t),h.addRange(n)}}o.sort(Rt((e=>e.original.startLineNumber),Tt));const d=new Wr(e);for(let f=0;f<o.length;f++){const t=o[f],n=d.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=Ur(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),u=d.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=Ur(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),g=Math.max(u.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let p,v;for(p=0;p<l;p++){const e=t.original.startLineNumber-p-1,n=t.modified.startLineNumber-p-1;if(e>r.length||n>i.length)break;if(c.contains(n)||h.contains(e))break;if(!xi(r[e-1],i[n-1],s))break}for(p>0&&(h.addRange(new Hr(t.original.startLineNumber-p,t.original.startLineNumber)),c.addRange(new Hr(t.modified.startLineNumber-p,t.modified.startLineNumber))),v=0;v<g;v++){const e=t.original.endLineNumberExclusive+v,n=t.modified.endLineNumberExclusive+v;if(e>r.length||n>i.length)break;if(c.contains(n)||h.contains(e))break;if(!xi(r[e-1],i[n-1],s))break}v>0&&(h.addRange(new Hr(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+v)),c.addRange(new Hr(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+v))),(p>0||v>0)&&(o[f]=new Gr(new Hr(t.original.startLineNumber-p,t.original.endLineNumberExclusive+v),new Hr(t.modified.startLineNumber-p,t.modified.endLineNumberExclusive+v)))}return o}(e.filter((e=>!a.has(e))),r,i,t,n,s);return function(e,t){for(const n of t)e.push(n)}(o,l),o=function(e){if(0===e.length)return e;e.sort(Rt((e=>e.original.startLineNumber),Tt));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,o=i.modified.startLineNumber-r.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=r.join(i):t.push(i)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const r of e)t(r)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new Wr(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new Gr(new Hr(1,1),new Hr(1,1)))!==Ur(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function xi(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const r=(new pi).compute(new _i([e],new jr(0,1),!1),new _i([t],new jr(0,1),!1),n);let i=0;const s=li.invert(r.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{fi(e.charCodeAt(t))||i++}));const o=function(t){let n=0;for(let r=0;r<e.length;r++)fi(t.charCodeAt(r))||n++;return n}(e.length>t.length?e:t);return i/o>.6&&o>10}function Ni(e,t,n){let r=n;return r=Ai(e,t,r),r=Ai(e,t,r),r=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const i=r>0?n[r-1]:void 0,s=n[r],o=r+1<n.length?n[r+1]:void 0,a=new jr(i?i.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new jr(i?i.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[r]=ki(s,e,t,a,l):s.seq2Range.isEmpty&&(n[r]=ki(s.swap(),t,e,l,a).swap())}return n}(e,t,r),r}function Ai(e,t,n){if(0===n.length)return n;const r=[];r.push(n[0]);for(let s=1;s<n.length;s++){const i=r[r.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-i.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){r[r.length-1]=new li(new jr(i.seq1Range.start,o.seq1Range.endExclusive-n),new jr(i.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}r.push(o)}const i=[];for(let s=0;s<r.length-1;s++){const n=r[s+1];let o=r[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const i=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<i&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===i){r[s+1]=new li(new jr(o.seq1Range.start+i,n.seq1Range.endExclusive),new jr(o.seq2Range.start+i,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function ki(e,t,n,r,i){let s=1;for(;e.seq1Range.start-s>=r.start&&e.seq2Range.start-s>=i.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<r.endExclusive&&e.seq2Range.endExclusive+o<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,l=-1;for(let u=-s;u<=o;u++){const r=e.seq2Range.start+u,i=e.seq2Range.endExclusive+u,s=e.seq1Range.start+u,o=t.getBoundaryScore(s)+n.getBoundaryScore(r)+n.getBoundaryScore(i);o>l&&(l=o,a=u)}return e.delta(a)}class Ri{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:Ti(this.lines[e-1]))+(e===this.lines.length?0:Ti(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function Ti(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class Mi{constructor(){this.dynamicProgrammingDiffing=new gi,this.myersDiffingAlgorithm=new pi}computeDiff(e,t,n){if(e.length<=1&&function(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}(e,t,((e,t)=>e===t)))return new qr([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new qr([new Jr(new Hr(1,e.length+1),new Hr(1,t.length+1),[new Xr(new At(1,1,e.length,e[0].length+1),new At(1,1,t.length,t[0].length+1))])],[],!1);const r=0===n.maxComputationTimeMs?ci.instance:new hi(n.maxComputationTimeMs),i=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),u=new Ri(a,e),c=new Ri(l,t),h=(()=>u.length+c.length<1700?this.dynamicProgrammingDiffing.compute(u,c,r,((n,r)=>e[n]===t[r]?0===t[r].length?.1:1+Math.log(1+t[r].length):.99)):this.myersDiffingAlgorithm.compute(u,c))();let d=h.diffs,f=h.hitTimeout;d=Ni(u,c,d),d=function(e,t,n){let r=n;if(0===r.length)return r;let i,s=0;do{i=!1;const o=[r[0]];for(let a=1;a<r.length;a++){const l=r[a],u=o[o.length-1];function c(t,n){const r=new jr(u.seq1Range.endExclusive,l.seq1Range.start);return e.getText(r).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}c(u,l)?(i=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}r=o}while(s++<10&&i);return r}(u,0,d);const m=[],g=n=>{if(i)for(let s=0;s<n;s++){const n=p+s,o=v+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new li(new jr(n,n+1),new jr(o,o+1)),r,i);for(const e of s.mappings)m.push(e);s.hitTimeout&&(f=!0)}}};let p=0,v=0;for(const _ of d){Ir((()=>_.seq1Range.start-p===_.seq2Range.start-v));g(_.seq1Range.start-p),p=_.seq1Range.endExclusive,v=_.seq2Range.endExclusive;const n=this.refineDiff(e,t,_,r,i);n.hitTimeout&&(f=!0);for(const e of n.mappings)m.push(e)}g(e.length-p);const b=Oi(m,e,t);let y=[];return n.computeMoves&&(y=this.computeMoves(b,e,t,a,l,r,i)),Ir((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function r(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const i of b){if(!i.innerChanges)return!1;for(const r of i.innerChanges){if(!(n(r.modifiedRange.getStartPosition(),t)&&n(r.modifiedRange.getEndPosition(),t)&&n(r.originalRange.getStartPosition(),e)&&n(r.originalRange.getEndPosition(),e)))return!1}if(!r(i.modified,t)||!r(i.original,e))return!1}return!0})),new qr(b,y,f)}computeMoves(e,t,n,r,i,s,o){return Li(e,t,n,r,i,s).map((e=>{const r=Oi(this.refineDiff(t,n,new li(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new Kr(e,r)}))}refineDiff(e,t,n,r,i){const s=new _i(e,n.seq1Range,i),o=new _i(t,n.seq2Range,i),a=s.length+o.length<500?this.dynamicProgrammingDiffing.compute(s,o,r):this.myersDiffingAlgorithm.compute(s,o,r);let l=a.diffs;l=Ni(s,o,l),l=function(e,t,n){const r=li.invert(n,e.length),i=[];let s=new ui(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let u=new li(a,l);const c=u.intersect(o);let h=c.seq1Range.length,d=c.seq2Range.length;for(;r.length>0;){const n=r[0];if(!n.seq1Range.intersects(u.seq1Range)&&!n.seq2Range.intersects(u.seq2Range))break;const i=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new li(i,s),a=o.intersect(n);if(h+=a.seq1Range.length,d+=a.seq2Range.length,u=u.join(o),!(u.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;r.shift()}h+d<2*(u.seq1Range.length+u.seq2Range.length)/3&&i.push(u),s=u.getEndExclusives()}for(;r.length>0;){const e=r.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],i=t[0];let s;s=r&&(!i||r.seq1Range.start<i.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,i)}(s,o,l),l=function(e,t,n){const r=[];for(const i of n){const e=r[r.length-1];e&&(i.seq1Range.start-e.seq1Range.endExclusive<=2||i.seq2Range.start-e.seq2Range.endExclusive<=2)?r[r.length-1]=new li(e.seq1Range.join(i.seq1Range),e.seq2Range.join(i.seq2Range)):r.push(i)}return r}(0,0,l),l=function(e,t,n){let r=n;if(0===r.length)return r;let i,s=0;do{i=!1;const a=[r[0]];for(let l=1;l<r.length;l++){const u=r[l],c=a[a.length-1];function h(n,r){const i=new jr(c.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(i)>5||i.length>500)return!1;const s=e.getText(i).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),h=n.seq2Range.length,d=e.countLinesIn(r.seq1Range),f=r.seq1Range.length,m=t.countLinesIn(r.seq2Range),g=r.seq2Range.length;function p(e){return Math.min(e,130)}return Math.pow(Math.pow(p(40*o+a),1.5)+Math.pow(p(40*l+h),1.5),1.5)+Math.pow(Math.pow(p(40*d+f),1.5)+Math.pow(p(40*m+g),1.5),1.5)>74184.96480721243}h(c,u)?(i=!0,a[a.length-1]=a[a.length-1].join(u)):a.push(u)}r=a}while(s++<10&&i);const o=[];return function(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}(r,((t,n,r)=>{let i=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new jr(a.start,n.seq1Range.start));s(l)&&(i=i.deltaStart(-l.length));const u=e.getText(new jr(n.seq1Range.endExclusive,a.endExclusive));s(u)&&(i=i.deltaEnd(u.length));const c=li.fromOffsetPairs(t?t.getEndExclusives():ui.zero,r?r.getStarts():ui.max),h=i.intersect(c);o.length>0&&h.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(h):o.push(h)})),o}(s,o,l);return{mappings:l.map((e=>new Xr(s.translateRange(e.seq1Range),o.translateRange(e.seq2Range)))),hitTimeout:a.hitTimeout}}}function Oi(e,t,n,r=!1){const i=[];for(const s of function*(e,t){let n,r;for(const i of e)void 0!==r&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}(e.map((e=>function(e,t,n){let r=0,i=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);const s=new Hr(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),o=new Hr(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new Jr(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];i.push(new Jr(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return Ir((()=>{if(!r&&i.length>0){if(i[0].modified.startLineNumber!==i[0].original.startLineNumber)return!1;if(n.length-i[i.length-1].modified.endLineNumberExclusive!==t.length-i[i.length-1].original.endLineNumberExclusive)return!1}return Pr(i,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),i}const Ii=()=>new Qr,Pi=()=>new Mi;function Fi(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class Di{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=Fi(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class Vi{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Fi(Math.max(Math.min(1,t),0),3),this.l=Fi(Math.max(Math.min(1,n),0),3),this.a=Fi(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=e.a,s=Math.max(t,n,r),o=Math.min(t,n,r);let a=0,l=0;const u=(o+s)/2,c=s-o;if(c>0){switch(l=Math.min(u<=.5?c/(2*u):c/(2-2*u),1),s){case t:a=(n-r)/c+(n<r?6:0);break;case n:a=(r-t)/c+2;break;case r:a=(t-n)/c+4}a*=60,a=Math.round(a)}return new Vi(a,l,u,i)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:r,a:i}=e;let s,o,a;if(0===n)s=o=a=r;else{const e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;s=Vi._hue2rgb(i,e,t+1/3),o=Vi._hue2rgb(i,e,t),a=Vi._hue2rgb(i,e,t-1/3)}return new Di(Math.round(255*s),Math.round(255*o),Math.round(255*a),i)}}class qi{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Fi(Math.max(Math.min(1,t),0),3),this.v=Fi(Math.max(Math.min(1,n),0),3),this.a=Fi(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),s=i-Math.min(t,n,r),o=0===i?0:s/i;let a;return a=0===s?0:i===t?((n-r)/s%6+6)%6:i===n?(r-t)/s+2:(t-n)/s+4,new qi(Math.round(60*a),o,i,e.a)}static toRGBA(e){const{h:t,s:n,v:r,a:i}=e,s=r*n,o=s*(1-Math.abs(t/60%2-1)),a=r-s;let[l,u,c]=[0,0,0];return t<60?(l=s,u=o):t<120?(l=o,u=s):t<180?(u=s,c=o):t<240?(u=o,c=s):t<300?(l=o,c=s):t<=360&&(l=s,c=o),l=Math.round(255*(l+a)),u=Math.round(255*(u+a)),c=Math.round(255*(c+a)),new Di(l,u,c,i)}}class Ki{static fromHex(e){return Ki.Format.CSS.parseHex(e)||Ki.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:Vi.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:qi.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof Di)this.rgba=e;else if(e instanceof Vi)this._hsla=e,this.rgba=Vi.toRGBA(e);else{if(!(e instanceof qi))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=qi.toRGBA(e)}}equals(e){return!!e&&Di.equals(this.rgba,e.rgba)&&Vi.equals(this.hsla,e.hsla)&&qi.equals(this.hsva,e.hsva)}getRelativeLuminance(){return Fi(.2126*Ki._relativeLuminanceForComponent(this.rgba.r)+.7152*Ki._relativeLuminanceForComponent(this.rgba.g)+.0722*Ki._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new Ki(new Vi(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new Ki(new Vi(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:r,a:i}=this.rgba;return new Ki(new Di(t,n,r,i*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new Ki(new Di(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:r,a:i}=this.rgba;return new Ki(new Di(e.rgba.r-i*(e.rgba.r-t),e.rgba.g-i*(e.rgba.g-n),e.rgba.b-i*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=Ki.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(i-r)/i,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const r=e.getRelativeLuminance();return n=n*(r-t.getRelativeLuminance())/r,e.darken(n)}}function ji(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Ui(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Bi(e,t){const n=t.index,r=t[0].length;if(!n)return;const i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function $i(e,t){if(!e)return;const n=Ki.Format.CSS.parseHex(t);return n?{range:e,color:Ui(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Wi(e,t,n){if(!e||1!==t.length)return;const r=ji(t[0].values());return{range:e,color:Ui(r[0],r[1],r[2],n?r[3]:1)}}function Hi(e,t,n){if(!e||1!==t.length)return;const r=ji(t[0].values()),i=new Ki(new Vi(r[0],r[1]/100,r[2]/100,n?r[3]:1));return{range:e,color:Ui(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}function zi(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function Gi(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=zi(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(const r of n){const n=r.filter((e=>void 0!==e)),i=n[1],s=n[2];if(!s)continue;let o;if("rgb"===i){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=Wi(Bi(e,r),zi(s,t),!1)}else if("rgba"===i){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Wi(Bi(e,r),zi(s,t),!0)}else if("hsl"===i){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=Hi(Bi(e,r),zi(s,t),!1)}else if("hsla"===i){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Hi(Bi(e,r),zi(s,t),!0)}else"#"===i&&(o=$i(Bi(e,r),i+s));o&&t.push(o)}return t}(e):[]}Ki.white=new Ki(new Di(255,255,255,1)),Ki.black=new Ki(new Di(0,0,0,1)),Ki.red=new Ki(new Di(255,0,0,1)),Ki.blue=new Ki(new Di(0,0,255,1)),Ki.green=new Ki(new Di(0,255,0,1)),Ki.cyan=new Ki(new Di(0,255,255,1)),Ki.lightgrey=new Ki(new Di(211,211,211,1)),Ki.transparent=new Ki(new Di(0,0,0,0)),function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function r(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,r=!1){return r&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),i=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),s=16*r(t.charCodeAt(5))+r(t.charCodeAt(6));return new e(new Di(n,i,s,1))}if(9===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),i=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),s=16*r(t.charCodeAt(5))+r(t.charCodeAt(6)),o=16*r(t.charCodeAt(7))+r(t.charCodeAt(8));return new e(new Di(n,i,s,o/255))}if(4===n){const n=r(t.charCodeAt(1)),i=r(t.charCodeAt(2)),s=r(t.charCodeAt(3));return new e(new Di(16*n+n,16*i+i,16*s+s))}if(5===n){const n=r(t.charCodeAt(1)),i=r(t.charCodeAt(2)),s=r(t.charCodeAt(3)),o=r(t.charCodeAt(4));return new e(new Di(16*n+n,16*i+i,16*s+s,(16*o+o)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(Ki||(Ki={}));const Ji=/\bMARK:\s*(.*)$/d,Xi=/^-+|-+$/g;function Qi(e,t){var n;let r=[];if(t.findRegionSectionHeaders&&(null===(n=t.foldingRules)||void 0===n?void 0:n.markers)){const n=function(e,t){const n=[],r=e.getLineCount();for(let i=1;i<=r;i++){const r=e.getLineContent(i),s=r.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:i,startColumn:s[0].length+1,endLineNumber:i,endColumn:r.length+1};if(e.endColumn>e.startColumn){const t={range:e,...Yi(r.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);r=r.concat(n)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let r=1;r<=n;r++){Zi(e.getLineContent(r),r,t)}return t}(e);r=r.concat(t)}return r}function Zi(e,t,n){Ji.lastIndex=0;const r=Ji.exec(e);if(r){const e={startLineNumber:t,startColumn:r.indices[1][0]+1,endLineNumber:t,endColumn:r.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...Yi(r[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function Yi(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(Xi,""),hasSeparatorLine:t}}class es extends Dt{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const r=this._lines[n],i=this.offsetAt(new Nt(n+1,1)),s=r.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+i),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=jt(e.column,qt(t),this._lines[e.lineNumber-1],0);return n?new At(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,i="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=i.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(r<t.length))break;i=t[r],o=n(i,e),s=0,r+=1}}}}getLineWords(e,t){const n=this._lines[e-1],r=this._wordenize(n,t),i=[];for(const s of r)i.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return i}_wordenize(e,t){const n=[];let r;for(t.lastIndex=0;(r=t.exec(e))&&0!==r[0].length;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<r;s++)i.push(this._lines[s]);return i.push(this._lines[r].substring(0,e.endColumn-1)),i.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!Nt.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,r=!1;if(t<1)t=1,n=1,r=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}}class ts{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new es(pt.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,t,n){const r=this._getModel(e);return r?Fr.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,t){const n=this._getModel(e);return n?Qi(n,t):[]}async computeDiff(e,t,n,r){const i=this._getModel(e),s=this._getModel(t);if(!i||!s)return null;return ts.computeDiff(i,s,n,r)}static computeDiff(e,t,n,r){const i="advanced"===r?Pi():Ii(),s=e.getLinesContent(),o=t.getLinesContent(),a=i.computeDiff(s,o,n);function l(e){return e.map((e=>{var t;return[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]}))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++){if(e.getLineContent(r)!==t.getLineContent(r))return!1}return!0}async computeMoreMinimalEdits(e,t,n){const r=this._getModel(e);if(!r)return t;const i=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return At.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let o=0;for(let a=1;a<t.length;a++)At.getEndPosition(t[o].range).equals(At.getStartPosition(t[a].range))?(t[o].range=At.fromPositions(At.getStartPosition(t[o].range),At.getEndPosition(t[a].range)),t[o].text+=t[a].text):(o++,t[o]=t[a]);t.length=o+1;for(let{range:a,text:l,eol:u}of t){if("number"===typeof u&&(s=u),At.isEmpty(a)&&!l)continue;const e=r.getValueInRange(a);if(l=l.replace(/\r\n|\n|\r/g,r.eol),e===l)continue;if(Math.max(l.length,e.length)>ts._diffLimit){i.push({range:a,text:l});continue}const t=je(e,l,n),o=r.offsetAt(At.lift(a).getStartPosition());for(const n of t){const e=r.positionAt(o+n.originalStart),t=r.positionAt(o+n.originalStart+n.originalLength),s={text:l.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};r.getValueInRange(s.range)!==s.text&&i.push(s)}}return"number"===typeof s&&i.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}async computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?Gt.computeLinks(e):[]}(t):null}async computeDefaultDocumentColors(e){const t=this._getModel(e);return t?Gi(t):null}async textualSuggest(e,t,n,r){const i=new w,s=new RegExp(n,r),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>ts._suggestionsLimit))break e}return{words:Array.from(o),duration:i.elapsed()}}async computeWordRanges(e,t,n,r){const i=this._getModel(e);if(!i)return Object.create(null);const s=new RegExp(n,r),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=i.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async navigateValueSet(e,t,n,r,i){const s=this._getModel(e);if(!s)return null;const o=new RegExp(r,i);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const u=s.getValueInRange(l);return Jt.INSTANCE.navigateValueSet(t,a,l,u,n)}loadForeignModule(e,t,n){const r=function(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r={};for(const i of e)r[i]=n(i);return r}(n,((e,t)=>this._host.fhr(e,t))),i={host:r,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve(T(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(Jl){return Promise.reject(Jl)}}}ts._diffLimit=1e5,ts._suggestionsLimit=1e4,"function"===typeof importScripts&&(globalThis.monaco={editor:void 0,languages:void 0,CancellationTokenSource:Yt,Emitter:k,KeyCode:Qn,KeyMod:Sr,Position:Nt,Range:At,Selection:fn,SelectionDirection:dr,MarkerSeverity:Zn,MarkerTag:Yn,Uri:pt,Token:yn});let ns=!1;function rs(e){if(ns)return;ns=!0;const t=new Me((e=>{globalThis.postMessage(e)}),(t=>new ts(t,e)));globalThis.onmessage=e=>{t.onmessage(e.data)}}function is(e,t){void 0===t&&(t=!1);var n=e.length,r=0,i="",s=0,o=16,a=0,l=0,u=0,c=0,h=0;function d(t,n){for(var i=0,s=0;i<t||!n;){var o=e.charCodeAt(r);if(o>=48&&o<=57)s=16*s+o-48;else if(o>=65&&o<=70)s=16*s+o-65+10;else{if(!(o>=97&&o<=102))break;s=16*s+o-97+10}r++,i++}return i<t&&(s=-1),s}function f(){if(i="",h=0,s=r,l=a,c=u,r>=n)return s=n,o=17;var t=e.charCodeAt(r);if(ss(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(ss(t));return o=15}if(os(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),a++,u=r,o=14;switch(t){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=function(){for(var t="",i=r;;){if(r>=n){t+=e.substring(i,r),h=2;break}var s=e.charCodeAt(r);if(34===s){t+=e.substring(i,r),r++;break}if(92!==s){if(s>=0&&s<=31){if(os(s)){t+=e.substring(i,r),h=2;break}h=6}r++}else{if(t+=e.substring(i,r),++r>=n){h=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var o=d(4,!0);o>=0?t+=String.fromCharCode(o):h=4;break;default:h=5}i=r}}return t}(),o=10;case 47:var f=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!os(e.charCodeAt(r));)r++;return i=e.substring(f,r),o=12}if(42===e.charCodeAt(r+1)){r+=2;for(var g=n-1,p=!1;r<g;){var v=e.charCodeAt(r);if(42===v&&47===e.charCodeAt(r+1)){r+=2,p=!0;break}r++,os(v)&&(13===v&&10===e.charCodeAt(r)&&r++,a++,u=r)}return p||(r++,h=1),i=e.substring(f,r),o=13}return i+=String.fromCharCode(t),r++,o=16;case 45:if(i+=String.fromCharCode(t),++r===n||!as(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){var t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&as(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(!(++r<e.length&&as(e.charCodeAt(r))))return h=3,e.substring(t,r);for(r++;r<e.length&&as(e.charCodeAt(r));)r++}var n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if((++r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&as(e.charCodeAt(r))){for(r++;r<e.length&&as(e.charCodeAt(r));)r++;n=r}else h=3;return e.substring(t,n)}(),o=11;default:for(;r<n&&m(t);)r++,t=e.charCodeAt(r);if(s!==r){switch(i=e.substring(s,r)){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return i+=String.fromCharCode(t),r++,o=16}}function m(e){if(ss(e)||os(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,i="",s=0,o=16,h=0},getPosition:function(){return r},scan:t?function(){var e;do{e=f()}while(e>=12&&e<=15);return e}:f,getToken:function(){return o},getTokenValue:function(){return i},getTokenOffset:function(){return s},getTokenLength:function(){return r-s},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return s-c},getTokenError:function(){return h}}}function ss(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function os(e){return 10===e||13===e||8232===e||8233===e}function as(e){return e>=48&&e<=57}function ls(e,t,n){var r,i,s,o,a;if(t){for(o=t.offset,a=o+t.length,s=o;s>0&&!cs(e,s-1);)s--;for(var l=a;l<e.length&&!cs(e,l);)l++;i=e.substring(s,l),r=function(e,t){var n=0,r=0,i=t.tabSize||4;for(;n<e.length;){var s=e.charAt(n);if(" "===s)r++;else{if("\t"!==s)break;r+=i}n++}return Math.floor(r/i)}(i,n)}else i=e,r=0,s=0,o=0,a=e.length;var u,c=function(e,t){for(var n=0;n<t.length;n++){var r=t.charAt(n);if("\r"===r)return n+1<t.length&&"\n"===t.charAt(n+1)?"\r\n":"\r";if("\n"===r)return"\n"}return e&&e.eol||"\n"}(n,e),h=!1,d=0;u=n.insertSpaces?us(" ",n.tabSize||4):"\t";var f=is(i,!1),m=!1;function g(){return c+us(u,r+d)}function p(){var e=f.scan();for(h=!1;15===e||14===e;)h=h||14===e,e=f.scan();return m=16===e||0!==f.getTokenError(),e}var v=[];function b(n,r,i){m||t&&!(r<a&&i>o)||e.substring(r,i)===n||v.push({offset:r,length:i-r,content:n})}var y=p();if(17!==y){var _=f.getTokenOffset()+s;b(us(u,r),s,_)}for(;17!==y;){for(var C=f.getTokenOffset()+f.getTokenLength()+s,w=p(),S="",E=!1;!h&&(12===w||13===w);){b(" ",C,f.getTokenOffset()+s),C=f.getTokenOffset()+f.getTokenLength()+s,S=(E=12===w)?g():"",w=p()}if(2===w)1!==y&&(d--,S=g());else if(4===w)3!==y&&(d--,S=g());else{switch(y){case 3:case 1:d++,S=g();break;case 5:case 12:S=g();break;case 13:h?S=g():E||(S=" ");break;case 6:E||(S=" ");break;case 10:if(6===w){E||(S="");break}case 7:case 8:case 9:case 11:case 2:case 4:12===w||13===w?E||(S=" "):5!==w&&17!==w&&(m=!0);break;case 16:m=!0}!h||12!==w&&13!==w||(S=g())}17===w&&(S=n.insertFinalNewline?c:""),b(S,C,f.getTokenOffset()+s),y=w}return v}function us(e,t){for(var n="",r=0;r<t;r++)n+=e;return n}function cs(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}var hs;globalThis.onmessage=e=>{ns||rs(null)},(hs||(hs={})).DEFAULT={allowTrailingComma:!1};var ds,fs,ms,gs,ps,vs,bs,ys,_s,Cs,ws,Ss,Es,Ls,xs,Ns,As,ks,Rs,Ts,Ms,Os,Is,Ps,Fs,Ds,Vs,qs,Ks,js,Us,Bs,$s,Ws,Hs,zs,Gs,Js,Xs,Qs,Zs,Ys,eo,to,no,ro,io,so,oo,ao=is,lo=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=hs.DEFAULT);var r=null,i=[],s=[];function o(e){Array.isArray(i)?i.push(e):null!==r&&(i[r]=e)}return function(e,t,n){void 0===n&&(n=hs.DEFAULT);var r=is(e,!1);function i(e){return e?function(){return e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function s(e){return e?function(t){return e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var o=i(t.onObjectBegin),a=s(t.onObjectProperty),l=i(t.onObjectEnd),u=i(t.onArrayBegin),c=i(t.onArrayEnd),h=s(t.onLiteralValue),d=s(t.onSeparator),f=i(t.onComment),m=s(t.onError),g=n&&n.disallowComments,p=n&&n.allowTrailingComma;function v(){for(;;){var e=r.scan();switch(r.getTokenError()){case 4:b(14);break;case 5:b(15);break;case 3:b(13);break;case 1:g||b(11);break;case 2:b(12);break;case 6:b(16)}switch(e){case 12:case 13:g?b(10):f();break;case 16:b(1);break;case 15:case 14:break;default:return e}}}function b(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),m(e),t.length+n.length>0)for(var i=r.getToken();17!==i;){if(-1!==t.indexOf(i)){v();break}if(-1!==n.indexOf(i))break;i=v()}}function y(e){var t=r.getTokenValue();return e?h(t):a(t),v(),!0}function _(){switch(r.getToken()){case 11:var e=r.getTokenValue(),t=Number(e);isNaN(t)&&(b(2),t=0),h(t);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return v(),!0}function C(){return 10!==r.getToken()?(b(3,[],[2,5]),!1):(y(!1),6===r.getToken()?(d(":"),v(),E()||b(4,[],[2,5])):b(5,[],[2,5]),!0)}function w(){o(),v();for(var e=!1;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||b(4,[],[]),d(","),v(),2===r.getToken()&&p)break}else e&&b(6,[],[]);C()||b(4,[],[2,5]),e=!0}return l(),2!==r.getToken()?b(7,[2],[]):v(),!0}function S(){u(),v();for(var e=!1;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||b(4,[],[]),d(","),v(),4===r.getToken()&&p)break}else e&&b(6,[],[]);E()||b(4,[],[4,5]),e=!0}return c(),4!==r.getToken()?b(8,[4],[]):v(),!0}function E(){switch(r.getToken()){case 3:return S();case 1:return w();case 10:return y(!0);default:return _()}}if(v(),17===r.getToken())return!!n.allowEmptyContent||(b(4,[],[]),!1);if(!E())return b(4,[],[]),!1;17!==r.getToken()&&b(9,[],[])}(e,{onObjectBegin:function(){var e={};o(e),s.push(i),i=e,r=null},onObjectProperty:function(e){r=e},onObjectEnd:function(){i=s.pop()},onArrayBegin:function(){var e=[];o(e),s.push(i),i=e,r=null},onArrayEnd:function(){i=s.pop()},onLiteralValue:o,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n),i[0]},uo=function e(t,n,r){if(void 0===r&&(r=!1),function(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}(t,n,r)){var i=t.children;if(Array.isArray(i))for(var s=0;s<i.length&&i[s].offset<=n;s++){var o=e(i[s],n,r);if(o)return o}return t}},co=function e(t){if(!t.parent||!t.parent.children)return[];var n=e(t.parent);if("property"===t.parent.type){var r=t.parent.children[0].value;n.push(r)}else if("array"===t.parent.type){var i=t.parent.children.indexOf(t);-1!==i&&n.push(i)}return n},ho=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":for(var n=Object.create(null),r=0,i=t.children;r<i.length;r++){var s=i[r],o=s.children[1];o&&(n[s.children[0].value]=e(o))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}};function fo(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!fo(e[n],t[n]))return!1}else{var i=[];for(r in e)i.push(r);i.sort();var s=[];for(r in t)s.push(r);if(s.sort(),!fo(i,s))return!1;for(n=0;n<i.length;n++)if(!fo(e[i[n]],t[i[n]]))return!1}return!0}function mo(e){return"number"===typeof e}function go(e){return"undefined"!==typeof e}function po(e){return"boolean"===typeof e}function vo(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function bo(e){var t="";(function(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0})(e,"(?i)")&&(e=e.substring(4),t="i");try{return new RegExp(e,t+"u")}catch(Jl){try{return new RegExp(e,t)}catch(n){return}}}(fs=ds||(ds={})).MIN_VALUE=-2147483648,fs.MAX_VALUE=2147483647,(gs=ms||(ms={})).MIN_VALUE=0,gs.MAX_VALUE=2147483647,(vs=ps||(ps={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=ms.MAX_VALUE),t===Number.MAX_VALUE&&(t=ms.MAX_VALUE),{line:e,character:t}},vs.is=function(e){var t=e;return ba.objectLiteral(t)&&ba.uinteger(t.line)&&ba.uinteger(t.character)},(ys=bs||(bs={})).create=function(e,t,n,r){if(ba.uinteger(e)&&ba.uinteger(t)&&ba.uinteger(n)&&ba.uinteger(r))return{start:ps.create(e,t),end:ps.create(n,r)};if(ps.is(e)&&ps.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},ys.is=function(e){var t=e;return ba.objectLiteral(t)&&ps.is(t.start)&&ps.is(t.end)},(Cs=_s||(_s={})).create=function(e,t){return{uri:e,range:t}},Cs.is=function(e){var t=e;return ba.defined(t)&&bs.is(t.range)&&(ba.string(t.uri)||ba.undefined(t.uri))},(Ss=ws||(ws={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},Ss.is=function(e){var t=e;return ba.defined(t)&&bs.is(t.targetRange)&&ba.string(t.targetUri)&&(bs.is(t.targetSelectionRange)||ba.undefined(t.targetSelectionRange))&&(bs.is(t.originSelectionRange)||ba.undefined(t.originSelectionRange))},(Ls=Es||(Es={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},Ls.is=function(e){var t=e;return ba.numberRange(t.red,0,1)&&ba.numberRange(t.green,0,1)&&ba.numberRange(t.blue,0,1)&&ba.numberRange(t.alpha,0,1)},(Ns=xs||(xs={})).create=function(e,t){return{range:e,color:t}},Ns.is=function(e){var t=e;return bs.is(t.range)&&Es.is(t.color)},(ks=As||(As={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},ks.is=function(e){var t=e;return ba.string(t.label)&&(ba.undefined(t.textEdit)||Ws.is(t))&&(ba.undefined(t.additionalTextEdits)||ba.typedArray(t.additionalTextEdits,Ws.is))},(Ts=Rs||(Rs={})).Comment="comment",Ts.Imports="imports",Ts.Region="region",(Os=Ms||(Ms={})).create=function(e,t,n,r,i){var s={startLine:e,endLine:t};return ba.defined(n)&&(s.startCharacter=n),ba.defined(r)&&(s.endCharacter=r),ba.defined(i)&&(s.kind=i),s},Os.is=function(e){var t=e;return ba.uinteger(t.startLine)&&ba.uinteger(t.startLine)&&(ba.undefined(t.startCharacter)||ba.uinteger(t.startCharacter))&&(ba.undefined(t.endCharacter)||ba.uinteger(t.endCharacter))&&(ba.undefined(t.kind)||ba.string(t.kind))},(Ps=Is||(Is={})).create=function(e,t){return{location:e,message:t}},Ps.is=function(e){var t=e;return ba.defined(t)&&_s.is(t.location)&&ba.string(t.message)},(Ds=Fs||(Fs={})).Error=1,Ds.Warning=2,Ds.Information=3,Ds.Hint=4,(qs=Vs||(Vs={})).Unnecessary=1,qs.Deprecated=2,(Ks||(Ks={})).is=function(e){var t=e;return void 0!==t&&null!==t&&ba.string(t.href)},(Us=js||(js={})).create=function(e,t,n,r,i,s){var o={range:e,message:t};return ba.defined(n)&&(o.severity=n),ba.defined(r)&&(o.code=r),ba.defined(i)&&(o.source=i),ba.defined(s)&&(o.relatedInformation=s),o},Us.is=function(e){var t,n=e;return ba.defined(n)&&bs.is(n.range)&&ba.string(n.message)&&(ba.number(n.severity)||ba.undefined(n.severity))&&(ba.integer(n.code)||ba.string(n.code)||ba.undefined(n.code))&&(ba.undefined(n.codeDescription)||ba.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ba.string(n.source)||ba.undefined(n.source))&&(ba.undefined(n.relatedInformation)||ba.typedArray(n.relatedInformation,Is.is))},($s=Bs||(Bs={})).create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return ba.defined(n)&&n.length>0&&(i.arguments=n),i},$s.is=function(e){var t=e;return ba.defined(t)&&ba.string(t.title)&&ba.string(t.command)},(Hs=Ws||(Ws={})).replace=function(e,t){return{range:e,newText:t}},Hs.insert=function(e,t){return{range:{start:e,end:e},newText:t}},Hs.del=function(e){return{range:e,newText:""}},Hs.is=function(e){var t=e;return ba.objectLiteral(t)&&ba.string(t.newText)&&bs.is(t.range)},(Gs=zs||(zs={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},Gs.is=function(e){var t=e;return void 0!==t&&ba.objectLiteral(t)&&ba.string(t.label)&&(ba.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ba.string(t.description)||void 0===t.description)},(Js||(Js={})).is=function(e){return"string"===typeof e},(Qs=Xs||(Xs={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Qs.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Qs.del=function(e,t){return{range:e,newText:"",annotationId:t}},Qs.is=function(e){var t=e;return Ws.is(t)&&(zs.is(t.annotationId)||Js.is(t.annotationId))},(Ys=Zs||(Zs={})).create=function(e,t){return{textDocument:e,edits:t}},Ys.is=function(e){var t=e;return ba.defined(t)&&So.is(t.textDocument)&&Array.isArray(t.edits)},(to=eo||(eo={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},to.is=function(e){var t=e;return t&&"create"===t.kind&&ba.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ba.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ba.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Js.is(t.annotationId))},(ro=no||(no={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},ro.is=function(e){var t=e;return t&&"rename"===t.kind&&ba.string(t.oldUri)&&ba.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ba.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ba.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Js.is(t.annotationId))},(so=io||(io={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},so.is=function(e){var t=e;return t&&"delete"===t.kind&&ba.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ba.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ba.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Js.is(t.annotationId))},(oo||(oo={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return ba.string(e.kind)?eo.is(e)||no.is(e)||io.is(e):Zs.is(e)})))};var yo,_o,Co,wo,So,Eo,Lo,xo,No,Ao,ko,Ro,To,Mo,Oo,Io,Po,Fo,Do,Vo,qo,Ko,jo,Uo,Bo,$o,Wo,Ho,zo,Go,Jo,Xo,Qo,Zo,Yo,ea,ta,na,ra,ia,sa,oa,aa,la,ua,ca,ha,da,fa,ma,ga,pa=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=Ws.insert(e,t):Js.is(n)?(i=n,r=Xs.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Xs.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=Ws.replace(e,t):Js.is(n)?(i=n,r=Xs.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Xs.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=Ws.del(e):Js.is(t)?(r=t,n=Xs.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=Xs.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),va=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(Js.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new va(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Zs.is(e)){var n=new pa(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new pa(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(So.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new pa(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new pa(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new va,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,s;if(zs.is(t)||Js.is(t)?r=t:n=t,void 0===r?i=eo.create(e,n):(s=Js.is(r)?r:this._changeAnnotations.manage(r),i=eo.create(e,n,s)),this._workspaceEdit.documentChanges.push(i),void 0!==s)return s},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,s,o;if(zs.is(n)||Js.is(n)?i=n:r=n,void 0===i?s=no.create(e,t,r):(o=Js.is(i)?i:this._changeAnnotations.manage(i),s=no.create(e,t,r,o)),this._workspaceEdit.documentChanges.push(s),void 0!==o)return o},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,s;if(zs.is(t)||Js.is(t)?r=t:n=t,void 0===r?i=io.create(e,n):(s=Js.is(r)?r:this._changeAnnotations.manage(r),i=io.create(e,n,s)),this._workspaceEdit.documentChanges.push(i),void 0!==s)return s}}();(_o=yo||(yo={})).create=function(e){return{uri:e}},_o.is=function(e){var t=e;return ba.defined(t)&&ba.string(t.uri)},(wo=Co||(Co={})).create=function(e,t){return{uri:e,version:t}},wo.is=function(e){var t=e;return ba.defined(t)&&ba.string(t.uri)&&ba.integer(t.version)},(Eo=So||(So={})).create=function(e,t){return{uri:e,version:t}},Eo.is=function(e){var t=e;return ba.defined(t)&&ba.string(t.uri)&&(null===t.version||ba.integer(t.version))},(xo=Lo||(Lo={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},xo.is=function(e){var t=e;return ba.defined(t)&&ba.string(t.uri)&&ba.string(t.languageId)&&ba.integer(t.version)&&ba.string(t.text)},(Ao=No||(No={})).PlainText="plaintext",Ao.Markdown="markdown",function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(No||(No={})),(ko||(ko={})).is=function(e){var t=e;return ba.objectLiteral(e)&&No.is(t.kind)&&ba.string(t.value)},(To=Ro||(Ro={})).Text=1,To.Method=2,To.Function=3,To.Constructor=4,To.Field=5,To.Variable=6,To.Class=7,To.Interface=8,To.Module=9,To.Property=10,To.Unit=11,To.Value=12,To.Enum=13,To.Keyword=14,To.Snippet=15,To.Color=16,To.File=17,To.Reference=18,To.Folder=19,To.EnumMember=20,To.Constant=21,To.Struct=22,To.Event=23,To.Operator=24,To.TypeParameter=25,(Oo=Mo||(Mo={})).PlainText=1,Oo.Snippet=2,(Io||(Io={})).Deprecated=1,(Fo=Po||(Po={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Fo.is=function(e){var t=e;return t&&ba.string(t.newText)&&bs.is(t.insert)&&bs.is(t.replace)},(Vo=Do||(Do={})).asIs=1,Vo.adjustIndentation=2,(qo||(qo={})).create=function(e){return{label:e}},(Ko||(Ko={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Uo=jo||(jo={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Uo.is=function(e){var t=e;return ba.string(t)||ba.objectLiteral(t)&&ba.string(t.language)&&ba.string(t.value)},(Bo||(Bo={})).is=function(e){var t=e;return!!t&&ba.objectLiteral(t)&&(ko.is(t.contents)||jo.is(t.contents)||ba.typedArray(t.contents,jo.is))&&(void 0===e.range||bs.is(e.range))},($o||($o={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Wo||(Wo={})).create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return ba.defined(t)&&(i.documentation=t),ba.defined(n)?i.parameters=n:i.parameters=[],i},(zo=Ho||(Ho={})).Text=1,zo.Read=2,zo.Write=3,(Go||(Go={})).create=function(e,t){var n={range:e};return ba.number(t)&&(n.kind=t),n},(Xo=Jo||(Jo={})).File=1,Xo.Module=2,Xo.Namespace=3,Xo.Package=4,Xo.Class=5,Xo.Method=6,Xo.Property=7,Xo.Field=8,Xo.Constructor=9,Xo.Enum=10,Xo.Interface=11,Xo.Function=12,Xo.Variable=13,Xo.Constant=14,Xo.String=15,Xo.Number=16,Xo.Boolean=17,Xo.Array=18,Xo.Object=19,Xo.Key=20,Xo.Null=21,Xo.EnumMember=22,Xo.Struct=23,Xo.Event=24,Xo.Operator=25,Xo.TypeParameter=26,(Qo||(Qo={})).Deprecated=1,(Zo||(Zo={})).create=function(e,t,n,r,i){var s={name:e,kind:t,location:{uri:r,range:n}};return i&&(s.containerName=i),s},(ea=Yo||(Yo={})).create=function(e,t,n,r,i,s){var o={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==s&&(o.children=s),o},ea.is=function(e){var t=e;return t&&ba.string(t.name)&&ba.number(t.kind)&&bs.is(t.range)&&bs.is(t.selectionRange)&&(void 0===t.detail||ba.string(t.detail))&&(void 0===t.deprecated||ba.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(na=ta||(ta={})).Empty="",na.QuickFix="quickfix",na.Refactor="refactor",na.RefactorExtract="refactor.extract",na.RefactorInline="refactor.inline",na.RefactorRewrite="refactor.rewrite",na.Source="source",na.SourceOrganizeImports="source.organizeImports",na.SourceFixAll="source.fixAll",(ia=ra||(ra={})).create=function(e,t){var n={diagnostics:e};return void 0!==t&&null!==t&&(n.only=t),n},ia.is=function(e){var t=e;return ba.defined(t)&&ba.typedArray(t.diagnostics,js.is)&&(void 0===t.only||ba.typedArray(t.only,ba.string))},(oa=sa||(sa={})).create=function(e,t,n){var r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):Bs.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},oa.is=function(e){var t=e;return t&&ba.string(t.title)&&(void 0===t.diagnostics||ba.typedArray(t.diagnostics,js.is))&&(void 0===t.kind||ba.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||Bs.is(t.command))&&(void 0===t.isPreferred||ba.boolean(t.isPreferred))&&(void 0===t.edit||oo.is(t.edit))},(la=aa||(aa={})).create=function(e,t){var n={range:e};return ba.defined(t)&&(n.data=t),n},la.is=function(e){var t=e;return ba.defined(t)&&bs.is(t.range)&&(ba.undefined(t.command)||Bs.is(t.command))},(ca=ua||(ua={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},ca.is=function(e){var t=e;return ba.defined(t)&&ba.uinteger(t.tabSize)&&ba.boolean(t.insertSpaces)},(da=ha||(ha={})).create=function(e,t,n){return{range:e,target:t,data:n}},da.is=function(e){var t=e;return ba.defined(t)&&bs.is(t.range)&&(ba.undefined(t.target)||ba.string(t.target))},(ma=fa||(fa={})).create=function(e,t){return{range:e,parent:t}},ma.is=function(e){var t=e;return void 0!==t&&bs.is(t.range)&&(void 0===t.parent||ma.is(t.parent))},function(e){function t(e,n){if(e.length<=1)return e;var r=e.length/2|0,i=e.slice(0,r),s=e.slice(r);t(i,n),t(s,n);for(var o=0,a=0,l=0;o<i.length&&a<s.length;){var u=n(i[o],s[a]);e[l++]=u<=0?i[o++]:s[a++]}for(;o<i.length;)e[l++]=i[o++];for(;a<s.length;)e[l++]=s[a++];return e}e.create=function(e,t,n,r){return new ya(e,t,n,r)},e.is=function(e){var t=e;return!!(ba.defined(t)&&ba.string(t.uri)&&(ba.undefined(t.languageId)||ba.string(t.languageId))&&ba.uinteger(t.lineCount)&&ba.func(t.getText)&&ba.func(t.positionAt)&&ba.func(t.offsetAt))},e.applyEdits=function(e,n){for(var r=e.getText(),i=t(n,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=r.length,o=i.length-1;o>=0;o--){var a=i[o],l=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=s))throw new Error("Overlapping edit");r=r.substring(0,l)+a.newText+r.substring(u,r.length),s=l}return r}}(ga||(ga={}));var ba,ya=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return ps.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var s=n-1;return ps.create(s,e-t[s])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(ba||(ba={}));var _a,Ca,wa,Sa,Ea,La=class e{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){const e=Aa(r.range),t=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,t)+r.text+this._content.substring(n,this._content.length);const i=Math.max(e.start.line,0),s=Math.max(e.end.line,0);let o=this._lineOffsets;const a=Na(r.text,!1,t);if(s-i===a.length)for(let r=0,u=a.length;r<u;r++)o[r+i+1]=a[r];else a.length<1e4?o.splice(i+1,s-i,...a):this._lineOffsets=o=o.slice(0,i+1).concat(a,o.slice(s+1));const l=r.text.length-(n-t);if(0!==l)for(let r=i+1+a.length,u=o.length;r<u;r++)o[r]=o[r]+l}else{if(!e.isFull(r))throw new Error("Unknown change event received");this._content=r.text,this._lineOffsets=void 0}this._version=n}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=Na(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return{line:0,character:e};for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"===typeof t.rangeLength)}static isFull(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0===t.range&&void 0===t.rangeLength}};function xa(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);xa(r,t),xa(i,t);let s=0,o=0,a=0;for(;s<r.length&&o<i.length;){let n=t(r[s],i[o]);e[a++]=n<=0?r[s++]:i[o++]}for(;s<r.length;)e[a++]=r[s++];for(;o<i.length;)e[a++]=i[o++];return e}function Na(e,t,n=0){const r=t?[n]:[];for(let i=0;i<e.length;i++){let t=e.charCodeAt(i);13!==t&&10!==t||(13===t&&i+1<e.length&&10===e.charCodeAt(i+1)&&i++,r.push(n+i+1))}return r}function Aa(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function ka(e){const t=Aa(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function Ra(e,t,...n){return function(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{let r=n[0];return"undefined"!==typeof t[r]?t[r]:e})),n}(t,n)}function Ta(e){return Ra}(Ca=_a||(_a={})).create=function(e,t,n,r){return new La(e,t,n,r)},Ca.update=function(e,t,n){if(e instanceof La)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},Ca.applyEdits=function(e,t){let n=e.getText(),r=xa(t.map(ka),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=0;const s=[];for(const o of r){let t=e.offsetAt(o.range.start);if(t<i)throw new Error("Overlapping edit");t>i&&s.push(n.substring(i,t)),o.newText.length&&s.push(o.newText),i=e.offsetAt(o.range.end)}return s.push(n.substr(i)),s.join("")},(Sa=wa||(wa={}))[Sa.Undefined=0]="Undefined",Sa[Sa.EnumValueMismatch=1]="EnumValueMismatch",Sa[Sa.Deprecated=2]="Deprecated",Sa[Sa.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",Sa[Sa.UnexpectedEndOfString=258]="UnexpectedEndOfString",Sa[Sa.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",Sa[Sa.InvalidUnicode=260]="InvalidUnicode",Sa[Sa.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",Sa[Sa.InvalidCharacter=262]="InvalidCharacter",Sa[Sa.PropertyExpected=513]="PropertyExpected",Sa[Sa.CommaExpected=514]="CommaExpected",Sa[Sa.ColonExpected=515]="ColonExpected",Sa[Sa.ValueExpected=516]="ValueExpected",Sa[Sa.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",Sa[Sa.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",Sa[Sa.TrailingComma=519]="TrailingComma",Sa[Sa.DuplicateKey=520]="DuplicateKey",Sa[Sa.CommentNotPermitted=521]="CommentNotPermitted",Sa[Sa.SchemaResolveError=768]="SchemaResolveError",(Ea||(Ea={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[No.Markdown,No.PlainText],commitCharactersSupport:!0}}}};var Ma,Oa,Ia=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pa=Ta(),Fa={"color-hex":{errorMessage:Pa("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:Pa("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:Pa("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:Pa("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:Pa("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))$/},hostname:{errorMessage:Pa("hostnameFormatWarning","String is not a hostname."),pattern:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i},ipv4:{errorMessage:Pa("ipv4FormatWarning","String is not an IPv4 address."),pattern:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/},ipv6:{errorMessage:Pa("ipv6FormatWarning","String is not an IPv6 address."),pattern:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i}},Da=function(){function e(e,t,n){void 0===n&&(n=0),this.offset=t,this.length=n,this.parent=e}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),Va=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="null",r.value=null,r}return Ia(t,e),t}(Da),qa=function(e){function t(t,n,r){var i=e.call(this,t,r)||this;return i.type="boolean",i.value=n,i}return Ia(t,e),t}(Da),Ka=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="array",r.items=[],r}return Ia(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t}(Da),ja=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="number",r.isInteger=!0,r.value=Number.NaN,r}return Ia(t,e),t}(Da),Ua=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="string",i.value="",i}return Ia(t,e),t}(Da),Ba=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.type="property",i.colonOffset=-1,i.keyNode=r,i}return Ia(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t}(Da),$a=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="object",r.properties=[],r}return Ia(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t}(Da);function Wa(e){return po(e)?e?{}:{not:{}}:e}(Oa=Ma||(Ma={}))[Oa.Key=0]="Key",Oa[Oa.Enum=1]="Enum";var Ha=function(){function e(e,t){void 0===e&&(e=-1),this.focusOffset=e,this.exclude=t,this.schemas=[]}return e.prototype.add=function(e){this.schemas.push(e)},e.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},e.prototype.include=function(e){return(-1===this.focusOffset||Qa(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),za=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(e){},e.prototype.merge=function(e){},e.prototype.include=function(e){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),Ga=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.merge(r)}},e.prototype.merge=function(e){this.problems=this.problems.concat(e.problems)},e.prototype.mergeEnumValues=function(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(var t=0,n=this.problems;t<n.length;t++){var r=n[t];r.code===wa.EnumValueMismatch&&(r.message=Pa("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map((function(e){return JSON.stringify(e)})).join(", ")))}}},e.prototype.mergePropertyMatch=function(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&1===e.enumValues.length&&this.primaryValueMatches++},e.prototype.compare=function(e){var t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches},e}();function Ja(e){return ho(e)}function Xa(e){return co(e)}function Qa(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}var Za=function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=[]),this.root=e,this.syntaxErrors=t,this.comments=n}return e.prototype.getNodeFromOffset=function(e,t){if(void 0===t&&(t=!1),this.root)return uo(this.root,e,t)},e.prototype.visit=function(e){if(this.root){var t=function(n){var r=e(n),i=n.children;if(Array.isArray(i))for(var s=0;s<i.length&&r;s++)r=t(i[s]);return r};t(this.root)}},e.prototype.validate=function(e,t,n){if(void 0===n&&(n=Fs.Warning),this.root&&t){var r=new Ga;return Ya(this.root,t,r,za.instance),r.problems.map((function(t){var r,i=bs.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length));return js.create(i,t.message,null!==(r=t.severity)&&void 0!==r?r:n,t.code)}))}},e.prototype.getMatchingSchemas=function(e,t,n){void 0===t&&(t=-1);var r=new Ha(t,n);return this.root&&e&&Ya(this.root,e,new Ga,r),r.schemas},e}();function Ya(e,t,n,r){if(e&&r.include(e)){var i=e;switch(i.type){case"object":!function(e,t,n,r){for(var i=Object.create(null),s=[],o=0,a=e.properties;o<a.length;o++){i[q=(p=a[o]).keyNode.value]=p.valueNode,s.push(q)}if(Array.isArray(t.required))for(var l=0,u=t.required;l<u.length;l++){if(!i[S=u[l]]){var c=e.parent&&"property"===e.parent.type&&e.parent.keyNode,h=c?{offset:c.offset,length:c.length}:{offset:e.offset,length:1};n.problems.push({location:h,message:Pa("MissingRequiredPropWarning",'Missing property "{0}".',S)})}}var d=function(e){for(var t=s.indexOf(e);t>=0;)s.splice(t,1),t=s.indexOf(e)};if(t.properties)for(var f=0,m=Object.keys(t.properties);f<m.length;f++){d(S=m[f]);var g=t.properties[S];if(k=i[S])if(po(g))if(g)n.propertiesMatches++,n.propertiesValueMatches++;else{var p=k.parent;n.problems.push({location:{offset:p.keyNode.offset,length:p.keyNode.length},message:t.errorMessage||Pa("DisallowedExtraPropWarning","Property {0} is not allowed.",S)})}else Ya(k,g,x=new Ga,r),n.mergePropertyMatch(x)}if(t.patternProperties)for(var v=0,b=Object.keys(t.patternProperties);v<b.length;v++)for(var y=b[v],_=bo(y),C=0,w=s.slice(0);C<w.length;C++){var S=w[C];if(null===_||void 0===_?void 0:_.test(S))if(d(S),k=i[S])if(po(g=t.patternProperties[y]))if(g)n.propertiesMatches++,n.propertiesValueMatches++;else{p=k.parent;n.problems.push({location:{offset:p.keyNode.offset,length:p.keyNode.length},message:t.errorMessage||Pa("DisallowedExtraPropWarning","Property {0} is not allowed.",S)})}else Ya(k,g,x=new Ga,r),n.mergePropertyMatch(x)}if("object"===typeof t.additionalProperties)for(var E=0,L=s;E<L.length;E++){if(k=i[S=L[E]]){var x=new Ga;Ya(k,t.additionalProperties,x,r),n.mergePropertyMatch(x)}}else if(!1===t.additionalProperties&&s.length>0)for(var N=0,A=s;N<A.length;N++){var k;if(k=i[S=A[N]]){p=k.parent;n.problems.push({location:{offset:p.keyNode.offset,length:p.keyNode.length},message:t.errorMessage||Pa("DisallowedExtraPropWarning","Property {0} is not allowed.",S)})}}mo(t.maxProperties)&&e.properties.length>t.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:Pa("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)});mo(t.minProperties)&&e.properties.length<t.minProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:Pa("MinPropWarning","Object has fewer properties than the required number of {0}",t.minProperties)});if(t.dependencies)for(var R=0,T=Object.keys(t.dependencies);R<T.length;R++){if(i[q=T[R]]){var M=t.dependencies[q];if(Array.isArray(M))for(var O=0,I=M;O<I.length;O++){var P=I[O];i[P]?n.propertiesValueMatches++:n.problems.push({location:{offset:e.offset,length:e.length},message:Pa("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",P,q)})}else if(g=Wa(M))Ya(e,g,x=new Ga,r),n.mergePropertyMatch(x)}}var F=Wa(t.propertyNames);if(F)for(var D=0,V=e.properties;D<V.length;D++){var q;(q=V[D].keyNode)&&Ya(q,F,n,za.instance)}}(i,t,n,r);break;case"array":!function(e,t,n,r){if(Array.isArray(t.items)){for(var i=t.items,s=0;s<i.length;s++){var o=Wa(i[s]),a=new Ga;(d=e.items[s])?(Ya(d,o,a,r),n.mergePropertyMatch(a)):e.items.length>=i.length&&n.propertiesValueMatches++}if(e.items.length>i.length)if("object"===typeof t.additionalItems)for(var l=i.length;l<e.items.length;l++){a=new Ga;Ya(e.items[l],t.additionalItems,a,r),n.mergePropertyMatch(a)}else!1===t.additionalItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:Pa("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",i.length)})}else{var u=Wa(t.items);if(u)for(var c=0,h=e.items;c<h.length;c++){var d;Ya(d=h[c],u,a=new Ga,r),n.mergePropertyMatch(a)}}var f=Wa(t.contains);if(f){e.items.some((function(e){var t=new Ga;return Ya(e,f,t,za.instance),!t.hasProblems()}))||n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||Pa("requiredItemMissingWarning","Array does not contain required item.")})}mo(t.minItems)&&e.items.length<t.minItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:Pa("minItemsWarning","Array has too few items. Expected {0} or more.",t.minItems)});mo(t.maxItems)&&e.items.length>t.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:Pa("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)});if(!0===t.uniqueItems){var m=Ja(e);m.some((function(e,t){return t!==m.lastIndexOf(e)}))&&n.problems.push({location:{offset:e.offset,length:e.length},message:Pa("uniqueItemsWarning","Array has duplicate items.")})}}(i,t,n,r);break;case"string":!function(e,t,n){mo(t.minLength)&&e.value.length<t.minLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:Pa("minLengthWarning","String is shorter than the minimum length of {0}.",t.minLength)});mo(t.maxLength)&&e.value.length>t.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:Pa("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)});if(i=t.pattern,"string"===typeof i){var r=bo(t.pattern);(null===r||void 0===r?void 0:r.test(e.value))||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||Pa("patternWarning",'String does not match the pattern of "{0}".',t.pattern)})}var i;if(t.format)switch(t.format){case"uri":case"uri-reference":var s=void 0;if(e.value){var o=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);o?o[2]||"uri"!==t.format||(s=Pa("uriSchemeMissing","URI with a scheme is expected.")):s=Pa("uriMissing","URI is expected.")}else s=Pa("uriEmpty","URI expected.");s&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||Pa("uriFormatWarning","String is not a URI: {0}",s)});break;case"color-hex":case"date-time":case"date":case"time":case"email":case"hostname":case"ipv4":case"ipv6":var a=Fa[t.format];e.value&&a.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||a.errorMessage})}}(i,t,n);break;case"number":!function(e,t,n){var r=e.value;function i(e){var t,n=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return n&&{value:Number(n[1]+(n[2]||"")),multiplier:((null===(t=n[2])||void 0===t?void 0:t.length)||0)-(parseInt(n[3])||0)}}if(mo(t.multipleOf)){var s=-1;if(Number.isInteger(t.multipleOf))s=r%t.multipleOf;else{var o=i(t.multipleOf),a=i(r);if(o&&a){var l=Math.pow(10,Math.abs(a.multiplier-o.multiplier));a.multiplier<o.multiplier?a.value*=l:o.value*=l,s=a.value%o.value}}0!==s&&n.problems.push({location:{offset:e.offset,length:e.length},message:Pa("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf)})}function u(e,t){return mo(t)?t:po(t)&&t?e:void 0}function c(e,t){if(!po(t)||!t)return e}var h=u(t.minimum,t.exclusiveMinimum);mo(h)&&r<=h&&n.problems.push({location:{offset:e.offset,length:e.length},message:Pa("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",h)});var d=u(t.maximum,t.exclusiveMaximum);mo(d)&&r>=d&&n.problems.push({location:{offset:e.offset,length:e.length},message:Pa("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",d)});var f=c(t.minimum,t.exclusiveMinimum);mo(f)&&r<f&&n.problems.push({location:{offset:e.offset,length:e.length},message:Pa("minimumWarning","Value is below the minimum of {0}.",f)});var m=c(t.maximum,t.exclusiveMaximum);mo(m)&&r>m&&n.problems.push({location:{offset:e.offset,length:e.length},message:Pa("maximumWarning","Value is above the maximum of {0}.",m)})}(i,t,n);break;case"property":return Ya(i.valueNode,t,n,r)}!function(){function e(e){return i.type===e||"integer"===e&&"number"===i.type&&i.isInteger}Array.isArray(t.type)?t.type.some(e)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||Pa("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||Pa("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)}));if(Array.isArray(t.allOf))for(var s=0,o=t.allOf;s<o.length;s++){var a=o[s];Ya(i,Wa(a),n,r)}var l=Wa(t.not);if(l){var u=new Ga,c=r.newSub();Ya(i,l,u,c),u.hasProblems()||n.problems.push({location:{offset:i.offset,length:i.length},message:Pa("notSchemaWarning","Matches a schema that is not allowed.")});for(var h=0,d=c.schemas;h<d.length;h++){var f=d[h];f.inverted=!f.inverted,r.add(f)}}var m=function(e,t){for(var s=[],o=void 0,a=0,l=e;a<l.length;a++){var u=Wa(l[a]),c=new Ga,h=r.newSub();if(Ya(i,u,c,h),c.hasProblems()||s.push(u),o)if(t||c.hasProblems()||o.validationResult.hasProblems()){var d=c.compare(o.validationResult);d>0?o={schema:u,validationResult:c,matchingSchemas:h}:0===d&&(o.matchingSchemas.merge(h),o.validationResult.mergeEnumValues(c))}else o.matchingSchemas.merge(h),o.validationResult.propertiesMatches+=c.propertiesMatches,o.validationResult.propertiesValueMatches+=c.propertiesValueMatches;else o={schema:u,validationResult:c,matchingSchemas:h}}return s.length>1&&t&&n.problems.push({location:{offset:i.offset,length:1},message:Pa("oneOfWarning","Matches multiple schemas when only one must validate.")}),o&&(n.merge(o.validationResult),n.propertiesMatches+=o.validationResult.propertiesMatches,n.propertiesValueMatches+=o.validationResult.propertiesValueMatches,r.merge(o.matchingSchemas)),s.length};Array.isArray(t.anyOf)&&m(t.anyOf,!1);Array.isArray(t.oneOf)&&m(t.oneOf,!0);var g=function(e){var t=new Ga,s=r.newSub();Ya(i,Wa(e),t,s),n.merge(t),n.propertiesMatches+=t.propertiesMatches,n.propertiesValueMatches+=t.propertiesValueMatches,r.merge(s)},p=Wa(t.if);p&&function(e,t,n){var s=Wa(e),o=new Ga,a=r.newSub();Ya(i,s,o,a),r.merge(a),o.hasProblems()?n&&g(n):t&&g(t)}(p,Wa(t.then),Wa(t.else));if(Array.isArray(t.enum)){for(var v=Ja(i),b=!1,y=0,_=t.enum;y<_.length;y++){if(fo(v,_[y])){b=!0;break}}n.enumValues=t.enum,n.enumValueMatch=b,b||n.problems.push({location:{offset:i.offset,length:i.length},code:wa.EnumValueMismatch,message:t.errorMessage||Pa("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((function(e){return JSON.stringify(e)})).join(", "))})}if(go(t.const)){fo(v=Ja(i),t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:i.offset,length:i.length},code:wa.EnumValueMismatch,message:t.errorMessage||Pa("constWarning","Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]}t.deprecationMessage&&i.parent&&n.problems.push({location:{offset:i.parent.offset,length:i.parent.length},severity:Fs.Warning,message:t.deprecationMessage,code:wa.Deprecated})}(),r.add({node:i,schema:t})}}function el(e,t){var n=[],r=-1,i=e.getText(),s=ao(i,!1),o=t&&t.collectComments?[]:void 0;function a(){for(;;){var t=s.scan();switch(c(),t){case 12:case 13:Array.isArray(o)&&o.push(bs.create(e.positionAt(s.getTokenOffset()),e.positionAt(s.getTokenOffset()+s.getTokenLength())));break;case 15:case 14:break;default:return t}}}function l(t,i,s,o,a){if(void 0===a&&(a=Fs.Error),0===n.length||s!==r){var l=bs.create(e.positionAt(s),e.positionAt(o));n.push(js.create(l,t,a,i,e.languageId)),r=s}}function u(e,t,n,r,o){void 0===n&&(n=void 0),void 0===r&&(r=[]),void 0===o&&(o=[]);var u=s.getTokenOffset(),c=s.getTokenOffset()+s.getTokenLength();if(u===c&&u>0){for(u--;u>0&&/\s/.test(i.charAt(u));)u--;c=u+1}if(l(e,t,u,c),n&&h(n,!1),r.length+o.length>0)for(var d=s.getToken();17!==d;){if(-1!==r.indexOf(d)){a();break}if(-1!==o.indexOf(d))break;d=a()}return n}function c(){switch(s.getTokenError()){case 4:return u(Pa("InvalidUnicode","Invalid unicode sequence in string."),wa.InvalidUnicode),!0;case 5:return u(Pa("InvalidEscapeCharacter","Invalid escape character in string."),wa.InvalidEscapeCharacter),!0;case 3:return u(Pa("UnexpectedEndOfNumber","Unexpected end of number."),wa.UnexpectedEndOfNumber),!0;case 1:return u(Pa("UnexpectedEndOfComment","Unexpected end of comment."),wa.UnexpectedEndOfComment),!0;case 2:return u(Pa("UnexpectedEndOfString","Unexpected end of string."),wa.UnexpectedEndOfString),!0;case 6:return u(Pa("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),wa.InvalidCharacter),!0}return!1}function h(e,t){return e.length=s.getTokenOffset()+s.getTokenLength()-e.offset,t&&a(),e}var d=new Ua(void 0,0,0);function f(t,n){var r=new Ba(t,s.getTokenOffset(),d),i=m(r);if(!i){if(16!==s.getToken())return;u(Pa("DoubleQuotesExpected","Property keys must be doublequoted"),wa.Undefined);var o=new Ua(r,s.getTokenOffset(),s.getTokenLength());o.value=s.getTokenValue(),i=o,a()}r.keyNode=i;var c=n[i.value];if(c?(l(Pa("DuplicateKeyWarning","Duplicate object key"),wa.DuplicateKey,r.keyNode.offset,r.keyNode.offset+r.keyNode.length,Fs.Warning),"object"===typeof c&&l(Pa("DuplicateKeyWarning","Duplicate object key"),wa.DuplicateKey,c.keyNode.offset,c.keyNode.offset+c.keyNode.length,Fs.Warning),n[i.value]=!0):n[i.value]=r,6===s.getToken())r.colonOffset=s.getTokenOffset(),a();else if(u(Pa("ColonExpected","Colon expected"),wa.ColonExpected),10===s.getToken()&&e.positionAt(i.offset+i.length).line<e.positionAt(s.getTokenOffset()).line)return r.length=i.length,r;var h=g(r);return h?(r.valueNode=h,r.length=h.offset+h.length-r.offset,r):u(Pa("ValueExpected","Value expected"),wa.ValueExpected,r,[],[2,5])}function m(e){if(10===s.getToken()){var t=new Ua(e,s.getTokenOffset());return t.value=s.getTokenValue(),h(t,!0)}}function g(e){return function(e){if(3===s.getToken()){var t=new Ka(e,s.getTokenOffset());a();for(var n=!1;4!==s.getToken()&&17!==s.getToken();){if(5===s.getToken()){n||u(Pa("ValueExpected","Value expected"),wa.ValueExpected);var r=s.getTokenOffset();if(a(),4===s.getToken()){n&&l(Pa("TrailingComma","Trailing comma"),wa.TrailingComma,r,r+1);continue}}else n&&u(Pa("ExpectedComma","Expected comma"),wa.CommaExpected);var i=g(t);i?t.items.push(i):u(Pa("PropertyExpected","Value expected"),wa.ValueExpected,void 0,[],[4,5]),n=!0}return 4!==s.getToken()?u(Pa("ExpectedCloseBracket","Expected comma or closing bracket"),wa.CommaOrCloseBacketExpected,t):h(t,!0)}}(e)||function(e){if(1===s.getToken()){var t=new $a(e,s.getTokenOffset()),n=Object.create(null);a();for(var r=!1;2!==s.getToken()&&17!==s.getToken();){if(5===s.getToken()){r||u(Pa("PropertyExpected","Property expected"),wa.PropertyExpected);var i=s.getTokenOffset();if(a(),2===s.getToken()){r&&l(Pa("TrailingComma","Trailing comma"),wa.TrailingComma,i,i+1);continue}}else r&&u(Pa("ExpectedComma","Expected comma"),wa.CommaExpected);var o=f(t,n);o?t.properties.push(o):u(Pa("PropertyExpected","Property expected"),wa.PropertyExpected,void 0,[],[2,5]),r=!0}return 2!==s.getToken()?u(Pa("ExpectedCloseBrace","Expected comma or closing brace"),wa.CommaOrCloseBraceExpected,t):h(t,!0)}}(e)||m(e)||function(e){if(11===s.getToken()){var t=new ja(e,s.getTokenOffset());if(0===s.getTokenError()){var n=s.getTokenValue();try{var r=JSON.parse(n);if(!mo(r))return u(Pa("InvalidNumberFormat","Invalid number format."),wa.Undefined,t);t.value=r}catch(Jl){return u(Pa("InvalidNumberFormat","Invalid number format."),wa.Undefined,t)}t.isInteger=-1===n.indexOf(".")}return h(t,!0)}}(e)||function(e){switch(s.getToken()){case 7:return h(new Va(e,s.getTokenOffset()),!0);case 8:return h(new qa(e,!0,s.getTokenOffset()),!0);case 9:return h(new qa(e,!1,s.getTokenOffset()),!0);default:return}}(e)}var p=void 0;return 17!==a()&&((p=g(p))?17!==s.getToken()&&u(Pa("End of file expected","End of file expected."),wa.Undefined):u(Pa("Invalid symbol","Expected a JSON object, array or literal."),wa.Undefined)),new Za(p,n,o)}function tl(e,t,n){if(null!==e&&"object"===typeof e){var r=t+"\t";if(Array.isArray(e)){if(0===e.length)return"[]";for(var i="[\n",s=0;s<e.length;s++)i+=r+tl(e[s],r,n),s<e.length-1&&(i+=","),i+="\n";return i+=t+"]"}var o=Object.keys(e);if(0===o.length)return"{}";for(i="{\n",s=0;s<o.length;s++){var a=o[s];i+=r+JSON.stringify(a)+": "+tl(e[a],r,n),s<o.length-1&&(i+=","),i+="\n"}return i+=t+"}"}return n(e)}var nl=Ta(),rl=function(){function e(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=Promise),void 0===r&&(r={}),this.schemaService=e,this.contributions=t,this.promiseConstructor=n,this.clientCapabilities=r}return e.prototype.doResolve=function(e){for(var t=this.contributions.length-1;t>=0;t--){var n=this.contributions[t].resolveCompletion;if(n){var r=n(e);if(r)return r}}return this.promiseConstructor.resolve(e)},e.prototype.doComplete=function(e,t,n){var r=this,i={items:[],isIncomplete:!1},s=e.getText(),o=e.offsetAt(t),a=n.getNodeFromOffset(o,!0);if(this.isInComment(e,a?a.offset:0,o))return Promise.resolve(i);if(a&&o===a.offset+a.length&&o>0){var l=s[o-1];("object"===a.type&&"}"===l||"array"===a.type&&"]"===l)&&(a=a.parent)}var u,c=this.getCurrentWord(e,o);if(!a||"string"!==a.type&&"number"!==a.type&&"boolean"!==a.type&&"null"!==a.type){var h=o-c.length;h>0&&'"'===s[h-1]&&h--,u=bs.create(e.positionAt(h),t)}else u=bs.create(e.positionAt(a.offset),e.positionAt(a.offset+a.length));var d={},f={add:function(e){var t=e.label,n=d[t];if(n)n.documentation||(n.documentation=e.documentation),n.detail||(n.detail=e.detail);else{if((t=t.replace(/[\n]/g,"\u21b5")).length>60){var r=t.substr(0,57).trim()+"...";d[r]||(t=r)}u&&void 0!==e.insertText&&(e.textEdit=Ws.replace(u,e.insertText)),e.label=t,d[t]=e,i.items.push(e)}},setAsIncomplete:function(){i.isIncomplete=!0},error:function(e){console.error(e)},log:function(e){console.log(e)},getNumberOfProposals:function(){return i.items.length}};return this.schemaService.getSchemaForResource(e.uri,n).then((function(t){var l=[],h=!0,m="",g=void 0;if(a&&"string"===a.type){var p=a.parent;p&&"property"===p.type&&p.keyNode===a&&(h=!p.valueNode,g=p,m=s.substr(a.offset+1,a.length-2),p&&(a=p.parent))}if(a&&"object"===a.type){if(a.offset===o)return i;a.properties.forEach((function(e){g&&g===e||(d[e.keyNode.value]=qo.create("__"))}));var v="";h&&(v=r.evaluateSeparatorAfter(e,e.offsetAt(u.end))),t?r.getPropertyCompletions(t,n,a,h,v,f):r.getSchemaLessPropertyCompletions(n,a,m,f);var b=Xa(a);r.contributions.forEach((function(t){var n=t.collectPropertyCompletions(e.uri,b,c,h,""===v,f);n&&l.push(n)})),!t&&c.length>0&&'"'!==s.charAt(o-c.length-1)&&(f.add({kind:Ro.Property,label:r.getLabelForValue(c),insertText:r.getInsertTextForProperty(c,void 0,!1,v),insertTextFormat:Mo.Snippet,documentation:""}),f.setAsIncomplete())}var y={};return t?r.getValueCompletions(t,n,a,o,e,f,y):r.getSchemaLessValueCompletions(n,a,o,e,f),r.contributions.length>0&&r.getContributedValueCompletions(n,a,o,e,f,l),r.promiseConstructor.all(l).then((function(){if(0===f.getNumberOfProposals()){var t=o;!a||"string"!==a.type&&"number"!==a.type&&"boolean"!==a.type&&"null"!==a.type||(t=a.offset+a.length);var n=r.evaluateSeparatorAfter(e,t);r.addFillerValueCompletions(y,n,f)}return i}))}))},e.prototype.getPropertyCompletions=function(e,t,n,r,i,s){var o=this;t.getMatchingSchemas(e.schema,n.offset).forEach((function(e){if(e.node===n&&!e.inverted){var t=e.schema.properties;t&&Object.keys(t).forEach((function(e){var n=t[e];if("object"===typeof n&&!n.deprecationMessage&&!n.doNotSuggest){var a={kind:Ro.Property,label:e,insertText:o.getInsertTextForProperty(e,n,r,i),insertTextFormat:Mo.Snippet,filterText:o.getFilterTextForValue(e),documentation:o.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(a.sortText=n.suggestSortText),a.insertText&&vo(a.insertText,"$1".concat(i))&&(a.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(a)}}));var a=e.schema.propertyNames;if("object"===typeof a&&!a.deprecationMessage&&!a.doNotSuggest){var l=function(e,t){void 0===t&&(t=void 0);var n={kind:Ro.Property,label:e,insertText:o.getInsertTextForProperty(e,void 0,r,i),insertTextFormat:Mo.Snippet,filterText:o.getFilterTextForValue(e),documentation:t||o.fromMarkup(a.markdownDescription)||a.description||""};void 0!==a.suggestSortText&&(n.sortText=a.suggestSortText),n.insertText&&vo(n.insertText,"$1".concat(i))&&(n.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(n)};if(a.enum)for(var u=0;u<a.enum.length;u++){var c=void 0;a.markdownEnumDescriptions&&u<a.markdownEnumDescriptions.length?c=o.fromMarkup(a.markdownEnumDescriptions[u]):a.enumDescriptions&&u<a.enumDescriptions.length&&(c=a.enumDescriptions[u]),l(a.enum[u],c)}a.const&&l(a.const)}}}))},e.prototype.getSchemaLessPropertyCompletions=function(e,t,n,r){var i=this,s=function(e){e.properties.forEach((function(e){var t=e.keyNode.value;r.add({kind:Ro.Property,label:t,insertText:i.getInsertTextForValue(t,""),insertTextFormat:Mo.Snippet,filterText:i.getFilterTextForValue(t),documentation:""})}))};if(t.parent)if("property"===t.parent.type){var o=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e!==t.parent&&e.keyNode.value===o&&e.valueNode&&"object"===e.valueNode.type&&s(e.valueNode),!0}))}else"array"===t.parent.type&&t.parent.items.forEach((function(e){"object"===e.type&&e!==t&&s(e)}));else"object"===t.type&&r.add({kind:Ro.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:Mo.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(e,t,n,r,i){var s=this,o=n;if(!t||"string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(o=t.offset+t.length,t=t.parent),!t)return i.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Mo.Snippet,documentation:""}),void i.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Mo.Snippet,documentation:""});var a=this.evaluateSeparatorAfter(r,o),l=function(e){e.parent&&!Qa(e.parent,n,!0)&&i.add({kind:s.getSuggestionKind(e.type),label:s.getLabelTextForMatchingNode(e,r),insertText:s.getInsertTextForMatchingNode(e,r,a),insertTextFormat:Mo.Snippet,documentation:""}),"boolean"===e.type&&s.addBooleanValueCompletion(!e.value,a,i)};if("property"===t.type&&n>(t.colonOffset||0)){var u=t.valueNode;if(u&&(n>u.offset+u.length||"object"===u.type||"array"===u.type))return;var c=t.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===c&&e.valueNode&&l(e.valueNode),!0})),"$schema"===c&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(a,i)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){var h=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===h&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(l),!0}))}else t.items.forEach(l)},e.prototype.getValueCompletions=function(e,t,n,r,i,s,o){var a=r,l=void 0,u=void 0;if(!n||"string"!==n.type&&"number"!==n.type&&"boolean"!==n.type&&"null"!==n.type||(a=n.offset+n.length,u=n,n=n.parent),n){if("property"===n.type&&r>(n.colonOffset||0)){var c=n.valueNode;if(c&&r>c.offset+c.length)return;l=n.keyNode.value,n=n.parent}if(n&&(void 0!==l||"array"===n.type)){for(var h=this.evaluateSeparatorAfter(i,a),d=0,f=t.getMatchingSchemas(e.schema,n.offset,u);d<f.length;d++){var m=f[d];if(m.node===n&&!m.inverted&&m.schema){if("array"===n.type&&m.schema.items)if(Array.isArray(m.schema.items)){var g=this.findItemAtOffset(n,i,r);g<m.schema.items.length&&this.addSchemaValueCompletions(m.schema.items[g],h,s,o)}else this.addSchemaValueCompletions(m.schema.items,h,s,o);if(void 0!==l){var p=!1;if(m.schema.properties)(C=m.schema.properties[l])&&(p=!0,this.addSchemaValueCompletions(C,h,s,o));if(m.schema.patternProperties&&!p)for(var v=0,b=Object.keys(m.schema.patternProperties);v<b.length;v++){var y=b[v],_=bo(y);if(null===_||void 0===_?void 0:_.test(l)){p=!0;var C=m.schema.patternProperties[y];this.addSchemaValueCompletions(C,h,s,o)}}if(m.schema.additionalProperties&&!p){C=m.schema.additionalProperties;this.addSchemaValueCompletions(C,h,s,o)}}}}"$schema"!==l||n.parent||this.addDollarSchemaCompletions(h,s),o.boolean&&(this.addBooleanValueCompletion(!0,h,s),this.addBooleanValueCompletion(!1,h,s)),o.null&&this.addNullValueCompletion(h,s)}}else this.addSchemaValueCompletions(e.schema,"",s,o)},e.prototype.getContributedValueCompletions=function(e,t,n,r,i,s){if(t){if("string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(t=t.parent),t&&"property"===t.type&&n>(t.colonOffset||0)){var o=t.keyNode.value,a=t.valueNode;if((!a||n<=a.offset+a.length)&&t.parent){var l=Xa(t.parent);this.contributions.forEach((function(e){var t=e.collectValueCompletions(r.uri,l,o,i);t&&s.push(t)}))}}}else this.contributions.forEach((function(e){var t=e.collectDefaultCompletions(r.uri,i);t&&s.push(t)}))},e.prototype.addSchemaValueCompletions=function(e,t,n,r){var i=this;"object"===typeof e&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.anyOf)&&e.anyOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.oneOf)&&e.oneOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})))},e.prototype.addDefaultValueCompletions=function(e,t,n,r){var i=this;void 0===r&&(r=0);var s=!1;if(go(e.default)){for(var o=e.type,a=e.default,l=r;l>0;l--)a=[a],o="array";n.add({kind:this.getSuggestionKind(o),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t),insertTextFormat:Mo.Snippet,detail:nl("json.suggest.default","Default value")}),s=!0}Array.isArray(e.examples)&&e.examples.forEach((function(o){for(var a=e.type,l=o,u=r;u>0;u--)l=[l],a="array";n.add({kind:i.getSuggestionKind(a),label:i.getLabelForValue(l),insertText:i.getInsertTextForValue(l,t),insertTextFormat:Mo.Snippet}),s=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((function(o){var a,l,u=e.type,c=o.body,h=o.label;if(go(c)){e.type;for(var d=r;d>0;d--)c=[c];a=i.getInsertTextForSnippetValue(c,t),l=i.getFilterTextForSnippetValue(c),h=h||i.getLabelForSnippetValue(c)}else{if("string"!==typeof o.bodyText)return;var f="",m="",g="";for(d=r;d>0;d--)f=f+g+"[\n",m=m+"\n"+g+"]",g+="\t",u="array";a=f+g+o.bodyText.split("\n").join("\n"+g)+m+t,h=h||a,l=a.replace(/[\n]/g,"")}n.add({kind:i.getSuggestionKind(u),label:h,documentation:i.fromMarkup(o.markdownDescription)||o.description,insertText:a,insertTextFormat:Mo.Snippet,filterText:l}),s=!0})),!s&&"object"===typeof e.items&&!Array.isArray(e.items)&&r<5&&this.addDefaultValueCompletions(e.items,t,n,r+1)},e.prototype.addEnumValueCompletions=function(e,t,n){if(go(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:Mo.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(var r=0,i=e.enum.length;r<i;r++){var s=e.enum[r],o=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&r<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?o=this.fromMarkup(e.markdownEnumDescriptions[r]):e.enumDescriptions&&r<e.enumDescriptions.length&&(o=e.enumDescriptions[r]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(s),insertText:this.getInsertTextForValue(s,t),insertTextFormat:Mo.Snippet,documentation:o})}},e.prototype.collectTypes=function(e,t){if(!Array.isArray(e.enum)&&!go(e.const)){var n=e.type;Array.isArray(n)?n.forEach((function(e){return t[e]=!0})):n&&(t[n]=!0)}},e.prototype.addFillerValueCompletions=function(e,t,n){e.object&&n.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},t),insertTextFormat:Mo.Snippet,detail:nl("defaults.object","New object"),documentation:""}),e.array&&n.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],t),insertTextFormat:Mo.Snippet,detail:nl("defaults.array","New array"),documentation:""})},e.prototype.addBooleanValueCompletion=function(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t),insertTextFormat:Mo.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:Mo.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(e,t){var n=this,r=this.schemaService.getRegisteredSchemaIds((function(e){return"http"===e||"https"===e}));r.forEach((function(r){return t.add({kind:Ro.Module,label:n.getLabelForValue(r),filterText:n.getFilterTextForValue(r),insertText:n.getInsertTextForValue(r,e),insertTextFormat:Mo.Snippet,documentation:""})}))},e.prototype.getLabelForValue=function(e){return JSON.stringify(e)},e.prototype.getFilterTextForValue=function(e){return JSON.stringify(e)},e.prototype.getFilterTextForSnippetValue=function(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getInsertTextForPlainText=function(e){return e.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(e,t){var n=JSON.stringify(e,null,"\t");return"{}"===n?"{$1}"+t:"[]"===n?"[$1]"+t:this.getInsertTextForPlainText(n+t)},e.prototype.getInsertTextForSnippetValue=function(e,t){return tl(e,"",(function(e){return"string"===typeof e&&"^"===e[0]?e.substr(1):JSON.stringify(e)}))+t},e.prototype.getInsertTextForGuessedValue=function(e,t){switch(typeof e){case"object":return null===e?"${1:null}"+t:this.getInsertTextForValue(e,t);case"string":var n=JSON.stringify(e);return n=n.substr(1,n.length-2),'"${1:'+(n=this.getInsertTextForPlainText(n))+'}"'+t;case"number":case"boolean":return"${1:"+JSON.stringify(e)+"}"+t}return this.getInsertTextForValue(e,t)},e.prototype.getSuggestionKind=function(e){if(Array.isArray(e)){var t=e;e=t.length>0?t[0]:void 0}if(!e)return Ro.Value;switch(e){case"string":default:return Ro.Value;case"object":return Ro.Module;case"property":return Ro.Property}},e.prototype.getLabelTextForMatchingNode=function(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}},e.prototype.getInsertTextForMatchingNode=function(e,t,n){switch(e.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:var r=t.getText().substr(e.offset,e.length)+n;return this.getInsertTextForPlainText(r)}},e.prototype.getInsertTextForProperty=function(e,t,n,r){var i=this.getInsertTextForValue(e,"");if(!n)return i;var s,o=i+": ",a=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){var l=t.defaultSnippets[0].body;go(l)&&(s=this.getInsertTextForSnippetValue(l,""))}a+=t.defaultSnippets.length}if(t.enum&&(s||1!==t.enum.length||(s=this.getInsertTextForGuessedValue(t.enum[0],"")),a+=t.enum.length),go(t.default)&&(s||(s=this.getInsertTextForGuessedValue(t.default,"")),a++),Array.isArray(t.examples)&&t.examples.length&&(s||(s=this.getInsertTextForGuessedValue(t.examples[0],"")),a+=t.examples.length),0===a){var u=Array.isArray(t.type)?t.type[0]:t.type;switch(u||(t.properties?u="object":t.items&&(u="array")),u){case"boolean":s="$1";break;case"string":s='"$1"';break;case"object":s="{$1}";break;case"array":s="[$1]";break;case"number":case"integer":s="${1:0}";break;case"null":s="${1:null}";break;default:return i}}}return(!s||a>1)&&(s="$1"),o+s+r},e.prototype.getCurrentWord=function(e,t){for(var n=t-1,r=e.getText();n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)},e.prototype.evaluateSeparatorAfter=function(e,t){var n=ao(e.getText(),!0);switch(n.setPosition(t),n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(e,t,n){for(var r=ao(t.getText(),!0),i=e.items,s=i.length-1;s>=0;s--){var o=i[s];if(n>o.offset+o.length)return r.setPosition(o.offset+o.length),5===r.scan()&&n>=r.getTokenOffset()+r.getTokenLength()?s+1:s;if(n>=o.offset)return s}return 0},e.prototype.isInComment=function(e,t,n){var r=ao(e.getText(),!1);r.setPosition(t);for(var i=r.scan();17!==i&&r.getTokenOffset()+r.getTokenLength()<n;)i=r.scan();return(12===i||13===i)&&r.getTokenOffset()<=n},e.prototype.fromMarkup=function(e){if(e&&this.doesSupportMarkdown())return{kind:No.Markdown,value:e}},e.prototype.doesSupportMarkdown=function(){if(!go(this.supportsMarkdown)){var e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&-1!==e.completionItem.documentationFormat.indexOf(No.Markdown)}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!go(this.supportsCommitCharacters)){var e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=e&&e.completionItem&&!!e.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},e}(),il=function(){function e(e,t,n){void 0===t&&(t=[]),this.schemaService=e,this.contributions=t,this.promise=n||Promise}return e.prototype.doHover=function(e,t,n){var r=e.offsetAt(t),i=n.getNodeFromOffset(r);if(!i||("object"===i.type||"array"===i.type)&&r>i.offset+1&&r<i.offset+i.length-1)return this.promise.resolve(null);var s=i;if("string"===i.type){var o=i.parent;if(o&&"property"===o.type&&o.keyNode===i&&!(i=o.valueNode))return this.promise.resolve(null)}for(var a=bs.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),l=function(e){return{contents:e,range:a}},u=Xa(i),c=this.contributions.length-1;c>=0;c--){var h=this.contributions[c].getInfoContribution(e.uri,u);if(h)return h.then((function(e){return l(e)}))}return this.schemaService.getSchemaForResource(e.uri,n).then((function(e){if(e&&i){var t=n.getMatchingSchemas(e.schema,i.offset),r=void 0,s=void 0,o=void 0,a=void 0;t.every((function(e){if(e.node===i&&!e.inverted&&e.schema&&(r=r||e.schema.title,s=s||e.schema.markdownDescription||sl(e.schema.description),e.schema.enum)){var t=e.schema.enum.indexOf(Ja(i));e.schema.markdownEnumDescriptions?o=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(o=sl(e.schema.enumDescriptions[t])),o&&"string"!==typeof(a=e.schema.enum[t])&&(a=JSON.stringify(a))}return!0}));var u="";return r&&(u=sl(r)),s&&(u.length>0&&(u+="\n\n"),u+=s),o&&(u.length>0&&(u+="\n\n"),u+="`".concat(function(e){if(-1!==e.indexOf("`"))return"`` "+e+" ``";return e}(a),"`: ").concat(o)),l([u])}return null}))},e}();function sl(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}var ol=Ta(),al=function(){function e(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}return e.prototype.configure=function(e){e&&(this.validationEnabled=!1!==e.validate,this.commentSeverity=e.allowComments?void 0:Fs.Error)},e.prototype.doValidation=function(e,t,n,r){var i=this;if(!this.validationEnabled)return this.promise.resolve([]);var s=[],o={},a=function(e){var t=e.range.start.line+" "+e.range.start.character+" "+e.message;o[t]||(o[t]=!0,s.push(e))},l=function(r){var o=(null===n||void 0===n?void 0:n.trailingCommas)?hl(n.trailingCommas):Fs.Error,l=(null===n||void 0===n?void 0:n.comments)?hl(n.comments):i.commentSeverity,u=(null===n||void 0===n?void 0:n.schemaValidation)?hl(n.schemaValidation):Fs.Warning,c=(null===n||void 0===n?void 0:n.schemaRequest)?hl(n.schemaRequest):Fs.Warning;if(r){if(r.errors.length&&t.root&&c){var h=t.root,d="object"===h.type?h.properties[0]:void 0;if(d&&"$schema"===d.keyNode.value){var f=d.valueNode||d,m=bs.create(e.positionAt(f.offset),e.positionAt(f.offset+f.length));a(js.create(m,r.errors[0],c,wa.SchemaResolveError))}else{m=bs.create(e.positionAt(h.offset),e.positionAt(h.offset+1));a(js.create(m,r.errors[0],c,wa.SchemaResolveError))}}else if(u){var g=t.validate(e,r.schema,u);g&&g.forEach(a)}ul(r.schema)&&(l=void 0),cl(r.schema)&&(o=void 0)}for(var p=0,v=t.syntaxErrors;p<v.length;p++){var b=v[p];if(b.code===wa.TrailingComma){if("number"!==typeof o)continue;b.severity=o}a(b)}if("number"===typeof l){var y=ol("InvalidCommentToken","Comments are not permitted in JSON.");t.comments.forEach((function(e){a(js.create(e,y,l,wa.CommentNotPermitted))}))}return s};if(r){var u=r.id||"schemaservice://untitled/"+ll++;return this.jsonSchemaService.registerExternalSchema(u,[],r).getResolvedSchema().then((function(e){return l(e)}))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then((function(e){return l(e)}))},e.prototype.getLanguageStatus=function(e,t){return{schemas:this.jsonSchemaService.getSchemaURIsForResource(e.uri,t)}},e}(),ll=0;function ul(e){if(e&&"object"===typeof e){if(po(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=ul(n[t]);if(po(r))return r}}}function cl(e){if(e&&"object"===typeof e){if(po(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(po(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(var n=0,r=e.allOf;n<r.length;n++){var i=cl(r[n]);if(po(i))return i}}}function hl(e){switch(e){case"error":return Fs.Error;case"warning":return Fs.Warning;case"ignore":return}}function dl(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function fl(e){if("#"===e[0])switch(e.length){case 4:return{red:17*dl(e.charCodeAt(1))/255,green:17*dl(e.charCodeAt(2))/255,blue:17*dl(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*dl(e.charCodeAt(1))/255,green:17*dl(e.charCodeAt(2))/255,blue:17*dl(e.charCodeAt(3))/255,alpha:17*dl(e.charCodeAt(4))/255};case 7:return{red:(16*dl(e.charCodeAt(1))+dl(e.charCodeAt(2)))/255,green:(16*dl(e.charCodeAt(3))+dl(e.charCodeAt(4)))/255,blue:(16*dl(e.charCodeAt(5))+dl(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*dl(e.charCodeAt(1))+dl(e.charCodeAt(2)))/255,green:(16*dl(e.charCodeAt(3))+dl(e.charCodeAt(4)))/255,blue:(16*dl(e.charCodeAt(5))+dl(e.charCodeAt(6)))/255,alpha:(16*dl(e.charCodeAt(7))+dl(e.charCodeAt(8)))/255}}}var ml=function(){function e(e){this.schemaService=e}return e.prototype.findDocumentSymbols=function(e,t,n){var r=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var s=n.resultLimit||Number.MAX_VALUE,o=e.uri;if(("vscode://defaultsettings/keybindings.json"===o||vo(o.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var a=[],l=0,u=i.items;l<u.length;l++){var c=u[l];if("object"===c.type)for(var h=0,d=c.properties;h<d.length;h++){var f=d[h];if("key"===f.keyNode.value&&f.valueNode){var m=_s.create(e.uri,gl(e,c));if(a.push({name:Ja(f.valueNode),kind:Jo.Function,location:m}),--s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),a}}}return a}for(var g=[{node:i,containerName:""}],p=0,v=!1,b=[],y=function(t,n){"array"===t.type?t.items.forEach((function(e){e&&g.push({node:e,containerName:n})})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(s>0){s--;var o=_s.create(e.uri,gl(e,t)),a=n?n+"."+t.keyNode.value:t.keyNode.value;b.push({name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),location:o,containerName:n}),g.push({node:i,containerName:a})}else v=!0}))};p<g.length;){var _=g[p++];y(_.node,_.containerName)}return v&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),b},e.prototype.findDocumentSymbols2=function(e,t,n){var r=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var s=n.resultLimit||Number.MAX_VALUE,o=e.uri;if(("vscode://defaultsettings/keybindings.json"===o||vo(o.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var a=[],l=0,u=i.items;l<u.length;l++){var c=u[l];if("object"===c.type)for(var h=0,d=c.properties;h<d.length;h++){var f=d[h];if("key"===f.keyNode.value&&f.valueNode){var m=gl(e,c),g=gl(e,f.keyNode);if(a.push({name:Ja(f.valueNode),kind:Jo.Function,range:m,selectionRange:g}),--s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),a}}}return a}for(var p=[],v=[{node:i,result:p}],b=0,y=!1,_=function(t,n){"array"===t.type?t.items.forEach((function(t,i){if(t)if(s>0){s--;var o=gl(e,t),a=o,l={name:String(i),kind:r.getSymbolKind(t.type),range:o,selectionRange:a,children:[]};n.push(l),v.push({result:l.children,node:t})}else y=!0})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(s>0){s--;var o=gl(e,t),a=gl(e,t.keyNode),l=[],u={name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),range:o,selectionRange:a,children:l,detail:r.getDetail(i)};n.push(u),v.push({result:l,node:i})}else y=!0}))};b<v.length;){var C=v[b++];_(C.node,C.result)}return y&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),p},e.prototype.getSymbolKind=function(e){switch(e){case"object":return Jo.Module;case"string":return Jo.String;case"number":return Jo.Number;case"array":return Jo.Array;case"boolean":return Jo.Boolean;default:return Jo.Variable}},e.prototype.getKeyLabel=function(e){var t=e.keyNode.value;return t&&(t=t.replace(/[\n]/g,"\u21b5")),t&&t.trim()?t:'"'.concat(t,'"')},e.prototype.getDetail=function(e){if(e)return"boolean"===e.type||"number"===e.type||"null"===e.type||"string"===e.type?String(e.value):"array"===e.type?e.children.length?void 0:"[]":"object"===e.type?e.children.length?void 0:"{}":void 0},e.prototype.findDocumentColors=function(e,t,n){return this.schemaService.getSchemaForResource(e.uri,t).then((function(r){var i=[];if(r)for(var s=n&&"number"===typeof n.resultLimit?n.resultLimit:Number.MAX_VALUE,o={},a=0,l=t.getMatchingSchemas(r.schema);a<l.length;a++){var u=l[a];if(!u.inverted&&u.schema&&("color"===u.schema.format||"color-hex"===u.schema.format)&&u.node&&"string"===u.node.type){var c=String(u.node.offset);if(!o[c]){var h=fl(Ja(u.node));if(h){var d=gl(e,u.node);i.push({color:h,range:d})}if(o[c]=!0,--s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),i}}}return i}))},e.prototype.getColorPresentations=function(e,t,n,r){var i,s=[],o=Math.round(255*n.red),a=Math.round(255*n.green),l=Math.round(255*n.blue);function u(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}return i=1===n.alpha?"#".concat(u(o)).concat(u(a)).concat(u(l)):"#".concat(u(o)).concat(u(a)).concat(u(l)).concat(u(Math.round(255*n.alpha))),s.push({label:i,textEdit:Ws.replace(r,JSON.stringify(i))}),s},e}();function gl(e,t){return bs.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var pl,vl,bl,yl,_l,Cl,wl=Ta(),Sl={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},El={id:wl("schema.json.id","A unique identifier for the schema."),$schema:wl("schema.json.$schema","The schema to verify this document against."),title:wl("schema.json.title","A descriptive title of the element."),description:wl("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:wl("schema.json.default","A default value. Used by suggestions."),multipleOf:wl("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:wl("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:wl("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:wl("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:wl("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:wl("schema.json.maxLength","The maximum length of a string."),minLength:wl("schema.json.minLength","The minimum length of a string."),pattern:wl("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:wl("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:wl("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:wl("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:wl("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:wl("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:wl("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:wl("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:wl("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:wl("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:wl("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:wl("schema.json.properties","A map of property names to schemas for each property."),patternProperties:wl("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:wl("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:wl("schema.json.enum","The set of literal values that are valid."),type:wl("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:wl("schema.json.format","Describes the format expected for the value."),allOf:wl("schema.json.allOf","An array of schemas, all of which must match."),anyOf:wl("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:wl("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:wl("schema.json.not","A schema which must not match."),$id:wl("schema.json.$id","A unique identifier for the schema."),$ref:wl("schema.json.$ref","Reference a definition hosted on any location."),$comment:wl("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:wl("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:wl("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:wl("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:wl("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:wl("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:wl("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:wl("schema.json.contentEncoding","Describes the content encoding of a string property."),if:wl("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:wl("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:wl("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(_l in Sl.schemas)for(yl in(pl=Sl.schemas[_l]).properties)"boolean"===typeof(vl=pl.properties[yl])&&(vl=pl.properties[yl]={}),(bl=El[yl])?vl.description=bl:console.log("".concat(yl,": localize('schema.json.").concat(yl,'\', "")'));Cl=(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=a,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),i=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,s=arguments.length-1;s>=-1&&!i;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var s=e.length,o=s-i,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,u=o<l?o:l,c=-1,h=0;h<=u;++h){if(h===u){if(l>u){if(47===n.charCodeAt(a+h))return n.slice(a+h+1);if(0===h)return n.slice(a+h)}else o>u&&(47===e.charCodeAt(i+h)?c=h:0===h&&(c=0));break}var d=e.charCodeAt(i+h);if(d!==n.charCodeAt(a+h))break;47===d&&(c=h)}var f="";for(h=i+c+1;h<=s;++h)h!==s&&47!==e.charCodeAt(h)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(a+c):(a+=c,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){i=o;break}}else s=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!o){i=r+1;break}}else-1===l&&(o=!1,l=r+1),a>=0&&(u===n.charCodeAt(a)?-1==--a&&(s=r):(a=-1,s=l))}return i===s?s=l:-1===s&&(s=e.length),e.slice(i,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else-1===s&&(o=!1,s=r+1);return-1===s?"":e.slice(i,s)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===i&&(s=!1,i=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){r=a+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var o=-1,a=0,l=-1,u=!0,c=e.length-1,h=0;c>=r;--c)if(47!==(i=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===i?-1===o?o=c:1!==h&&(h=1):-1!==o&&(h=-1);else if(!u){a=c+1;break}return-1===o||-1===l||0===h||1===h&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(a,o),n.base=e.slice(a,l)),n.ext=e.slice(o,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},447:(e,t,n)=>{var r;if(n.r(t),n.d(t,{URI:()=>g,Utils:()=>x}),"object"==typeof process)r="win32"===process.platform;else if("object"==typeof navigator){var i=navigator.userAgent;r=i.indexOf("Windows")>=0}var s,o,a=(s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=/^\w[\w\d+.-]*$/,u=/^\//,c=/^\/\//;function h(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!l.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!u.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(c.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}var d="",f="/",m=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,g=function(){function e(e,t,n,r,i,s){void 0===s&&(s=!1),"object"==typeof e?(this.scheme=e.scheme||d,this.authority=e.authority||d,this.path=e.path||d,this.query=e.query||d,this.fragment=e.fragment||d):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||d,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==f&&(t=f+t):t=f}return t}(this.scheme,n||d),this.query=r||d,this.fragment=i||d,h(this,s))}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"string"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return C(this,!1)},enumerable:!1,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,s=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=d),void 0===n?n=this.authority:null===n&&(n=d),void 0===r?r=this.path:null===r&&(r=d),void 0===i?i=this.query:null===i&&(i=d),void 0===s?s=this.fragment:null===s&&(s=d),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new v(t,n,r,i,s)},e.parse=function(e,t){void 0===t&&(t=!1);var n=m.exec(e);return n?new v(n[2]||d,L(n[4]||d),L(n[5]||d),L(n[7]||d),L(n[9]||d),t):new v(d,d,d,d,d)},e.file=function(e){var t=d;if(r&&(e=e.replace(/\\/g,f)),e[0]===f&&e[1]===f){var n=e.indexOf(f,2);-1===n?(t=e.substring(2),e=f):(t=e.substring(2,n),e=e.substring(n)||f)}return new v("file",t,e,d,d)},e.from=function(e){var t=new v(e.scheme,e.authority,e.path,e.query,e.fragment);return h(t,!0),t},e.prototype.toString=function(e){return void 0===e&&(e=!1),w(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new v(t);return n._formatted=t.external,n._fsPath=t._sep===p?t.fsPath:null,n}return t},e}(),p=r?1:void 0,v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return a(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=C(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?w(this,!0):(this._formatted||(this._formatted=w(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=p),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(g),b=((o={})[58]="%3A",o[47]="%2F",o[63]="%3F",o[35]="%23",o[91]="%5B",o[93]="%5D",o[64]="%40",o[33]="%21",o[36]="%24",o[38]="%26",o[39]="%27",o[40]="%28",o[41]="%29",o[42]="%2A",o[43]="%2B",o[44]="%2C",o[59]="%3B",o[61]="%3D",o[32]="%20",o);function y(e,t){for(var n=void 0,r=-1,i=0;i<e.length;i++){var s=e.charCodeAt(i);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var o=b[s];void 0!==o?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=o):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function _(e){for(var t=void 0,n=0;n<e.length;n++){var r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=b[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function C(e,t){var n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?"//".concat(e.authority).concat(e.path):47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r&&(n=n.replace(/\//g,"\\")),n}function w(e,t){var n=t?_:y,r="",i=e.scheme,s=e.authority,o=e.path,a=e.query,l=e.fragment;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=f,r+=f),s){var u=s.indexOf("@");if(-1!==u){var c=s.substr(0,u);s=s.substr(u+1),-1===(u=c.indexOf(":"))?r+=n(c,!1):(r+=n(c.substr(0,u),!1),r+=":",r+=n(c.substr(u+1),!1)),r+="@"}-1===(u=(s=s.toLowerCase()).indexOf(":"))?r+=n(s,!1):(r+=n(s.substr(0,u),!1),r+=s.substr(u))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2))(h=o.charCodeAt(1))>=65&&h<=90&&(o="/".concat(String.fromCharCode(h+32),":").concat(o.substr(3)));else if(o.length>=2&&58===o.charCodeAt(1)){var h;(h=o.charCodeAt(0))>=65&&h<=90&&(o="".concat(String.fromCharCode(h+32),":").concat(o.substr(2)))}r+=n(o,!0)}return a&&(r+="?",r+=n(a,!1)),l&&(r+="#",r+=t?l:y(l,!1)),r}function S(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+S(e.substr(3)):e}}var E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function L(e){return e.match(E)?e.replace(E,(function(e){return S(e)})):e}var x,N,A=n(470),k=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},R=A.posix||A;(N=x||(x={})).joinPath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.with({path:R.join.apply(R,k([e.path],t,!1))})},N.resolvePath=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=e.path||"/";return e.with({path:R.resolve.apply(R,k([r],t,!1))})},N.dirname=function(e){var t=R.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)?e:e.with({path:t})},N.basename=function(e){return R.basename(e.path)},N.extname=function(e){return R.extname(e.path)}}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(447)})();var{URI:Ll,Utils:xl}=Cl;function Nl(e,t){if("string"!==typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),i="",s=!!t&&!!t.extended,o=!!t&&!!t.globstar,a=!1,l=t&&"string"===typeof t.flags?t.flags:"",u=0,c=r.length;u<c;u++)switch(n=r[u]){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":i+="\\"+n;break;case"?":if(s){i+=".";break}case"[":case"]":if(s){i+=n;break}case"{":if(s){a=!0,i+="(";break}case"}":if(s){a=!1,i+=")";break}case",":if(a){i+="|";break}i+="\\"+n;break;case"*":for(var h=r[u-1],d=1;"*"===r[u+1];)d++,u++;var f=r[u+1];if(o)d>1&&("/"===h||void 0===h||"{"===h||","===h)&&("/"===f||void 0===f||","===f||"}"===f)?("/"===f?u++:"/"===h&&i.endsWith("\\/")&&(i=i.substr(0,i.length-2)),i+="((?:[^/]*(?:/|$))*)"):i+="([^/]*)";else i+=".*";break;default:i+=n}return l&&~l.indexOf("g")||(i="^"+i+"$"),new RegExp(i,l)}var Al,kl=Ta(),Rl=function(){function e(e,t){this.globWrappers=[];try{for(var n=0,r=e;n<r.length;n++){var i=r[n],s="!"!==i[0];s||(i=i.substring(1)),i.length>0&&("/"===i[0]&&(i=i.substring(1)),this.globWrappers.push({regexp:Nl("**/"+i,{extended:!0,globstar:!0}),include:s}))}this.uris=t}catch(Jl){this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,n=0,r=this.globWrappers;n<r.length;n++){var i=r[n],s=i.regexp,o=i.include;s.test(e)&&(t=o)}return t},e.prototype.getURIs=function(){return this.uris},e}(),Tl=function(){function e(e,t,n){this.service=e,this.uri=t,this.dependencies=new Set,this.anchors=void 0,n&&(this.unresolvedSchema=this.service.promise.resolve(new Ml(n)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.uri)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var e=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then((function(t){return e.service.resolveSchemaContent(t,e)}))),this.resolvedSchema},e.prototype.clearSchema=function(){var e=!!this.unresolvedSchema;return this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies.clear(),this.anchors=void 0,e},e}(),Ml=function(){return function(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t}}(),Ol=function(){function e(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t}return e.prototype.getSection=function(e){var t=this.getSectionRecursive(e,this.schema);if(t)return Wa(t)},e.prototype.getSectionRecursive=function(e,t){if(!t||"boolean"===typeof t||0===e.length)return t;var n=e.shift();if(t.properties&&(t.properties[n],1))return this.getSectionRecursive(e,t.properties[n]);if(t.patternProperties)for(var r=0,i=Object.keys(t.patternProperties);r<i.length;r++){var s=i[r],o=bo(s);if(null===o||void 0===o?void 0:o.test(n))return this.getSectionRecursive(e,t.patternProperties[s])}else{if("object"===typeof t.additionalProperties)return this.getSectionRecursive(e,t.additionalProperties);if(n.match("[0-9]+"))if(Array.isArray(t.items)){var a=parseInt(n,10);if(!isNaN(a)&&t.items[a])return this.getSectionRecursive(e,t.items[a])}else if(t.items)return this.getSectionRecursive(e,t.items)}},e}(),Il=function(){function e(e,t,n){this.contextService=t,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(e){return Object.keys(this.registeredSchemasIds).filter((function(t){var n=Ll.parse(t).scheme;return"schemaservice"!==n&&(!e||e(n))}))},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(e){var t=this;this.cachedSchemaForResource=void 0;for(var n=!1,r=[e=Fl(e)],i=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));r.length;)for(var s=r.pop(),o=0;o<i.length;o++){var a=i[o];a&&(a.uri===s||a.dependencies.has(s))&&(a.uri!==s&&r.push(a.uri),a.clearSchema()&&(n=!0),i[o]=void 0)}return n},e.prototype.setSchemaContributions=function(e){if(e.schemas){var t=e.schemas;for(var n in t){var r=Fl(n);this.contributionSchemas[r]=this.addSchemaHandle(r,t[n])}}if(Array.isArray(e.schemaAssociations))for(var i=0,s=e.schemaAssociations;i<s.length;i++){var o=s[i],a=o.uris.map(Fl),l=this.addFilePatternAssociation(o.pattern,a);this.contributionAssociations.push(l)}},e.prototype.addSchemaHandle=function(e,t){var n=new Tl(this,e,t);return this.schemasById[e]=n,n},e.prototype.getOrAddSchemaHandle=function(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)},e.prototype.addFilePatternAssociation=function(e,t){var n=new Rl(e,t);return this.filePatternAssociations.push(n),n},e.prototype.registerExternalSchema=function(e,t,n){var r=Fl(e);return this.registeredSchemasIds[r]=!0,this.cachedSchemaForResource=void 0,t&&this.addFilePatternAssociation(t,[r]),n?this.addSchemaHandle(r,n):this.getOrAddSchemaHandle(r)},e.prototype.clearExternalSchemas=function(){for(var e in this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0,this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(var t=0,n=this.contributionAssociations;t<n.length;t++){var r=n[t];this.filePatternAssociations.push(r)}},e.prototype.getResolvedSchema=function(e){var t=Fl(e),n=this.schemasById[t];return n?n.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(e){if(!this.requestService){var t=kl("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Dl(e));return this.promise.resolve(new Ml({},[t]))}return this.requestService(e).then((function(t){if(!t){var n=kl("json.schema.nocontent","Unable to load schema from '{0}': No content.",Dl(e));return new Ml({},[n])}var r,i=[];r=lo(t,i);var s=i.length?[kl("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Dl(e),i[0].offset)]:[];return new Ml(r,s)}),(function(t){var n=t.toString(),r=t.toString().split("Error: ");return r.length>1&&(n=r[1]),vo(n,".")&&(n=n.substr(0,n.length-1)),new Ml({},[kl("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Dl(e),n)])}))},e.prototype.resolveSchemaContent=function(e,t){var n=this,r=e.errors.slice(0),i=e.schema;if(i.$schema){var s=Fl(i.$schema);if("http://json-schema.org/draft-03/schema"===s)return this.promise.resolve(new Ol({},[kl("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===s?r.push(kl("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported.")):"https://json-schema.org/draft/2020-12/schema"===s&&r.push(kl("json.schema.draft202012.notsupported","Draft 2020-12 schemas are not yet fully supported."))}var o=this.contextService,a=function(e,t,n,i){var s,o,a,l;void 0===i||0===i.length?s=t:"/"===i.charAt(0)?s=function(e,t){t=decodeURIComponent(t);var n=e;return"/"===t[0]&&(t=t.substring(1)),t.split("/").some((function(e){return e=e.replace(/~1/g,"/").replace(/~0/g,"~"),!(n=n[e])})),n}(t,i):(o=t,l=i,(a=n).anchors||(a.anchors=c(o)),s=a.anchors.get(l)),s?function(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&"id"!==n&&"$id"!==n&&(e[n]=t[n])}(e,s):r.push(kl("json.schema.invalidid","$ref '{0}' in '{1}' can not be resolved.",i,n.uri))},l=function(e,t,i,s){o&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=o.resolveRelativePath(t,s.uri)),t=Fl(t);var l=n.getOrAddSchemaHandle(t);return l.getUnresolvedSchema().then((function(n){if(s.dependencies.add(t),n.errors.length){var o=i?t+"#"+i:t;r.push(kl("json.schema.problemloadingref","Problems loading reference '{0}': {1}",o,n.errors[0]))}return a(e,n.schema,l,i),u(e,n.schema,l)}))},u=function(e,t,r){var i=[];return n.traverseNodes(e,(function(e){for(var n=new Set;e.$ref;){var s=e.$ref,o=s.split("#",2);if(delete e.$ref,o[0].length>0)return void i.push(l(e,o[0],o[1],r));if(!n.has(s)){var u=o[1];a(e,t,r,u),n.add(s)}}})),n.promise.all(i)},c=function(e){var t=new Map;return n.traverseNodes(e,(function(e){var n=e.$id||e.id;if("string"===typeof n&&"#"===n.charAt(0)){var i=n.substring(1);t.has(i)?r.push(kl("json.schema.duplicateid","Duplicate id declaration: '{0}'",n)):t.set(i,e)}})),t};return u(i,i,t).then((function(e){return new Ol(i,r)}))},e.prototype.traverseNodes=function(e,t){if(!e||"object"!==typeof e)return Promise.resolve(null);for(var n=new Set,r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];"object"===typeof i&&o.push(i)}},i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];if("object"===typeof i)for(var s in i){var a=i[s];"object"===typeof a&&o.push(a)}}},s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];if(Array.isArray(i))for(var s=0,a=i;s<a.length;s++){var l=a[s];"object"===typeof l&&o.push(l)}}},o=[e],a=o.pop();a;)n.has(a)||(n.add(a),t(a),r(a.items,a.additionalItems,a.additionalProperties,a.not,a.contains,a.propertyNames,a.if,a.then,a.else),i(a.definitions,a.properties,a.patternProperties,a.dependencies),s(a.anyOf,a.allOf,a.oneOf,a.items)),a=o.pop()},e.prototype.getSchemaFromProperty=function(e,t){var n,r;if("object"===(null===(n=t.root)||void 0===n?void 0:n.type))for(var i=0,s=t.root.properties;i<s.length;i++){var o=s[i];if("$schema"===o.keyNode.value&&"string"===(null===(r=o.valueNode)||void 0===r?void 0:r.type)){var a=o.valueNode.value;return this.contextService&&!/^\w[\w\d+.-]*:/.test(a)&&(a=this.contextService.resolveRelativePath(a,e)),a}}},e.prototype.getAssociatedSchemas=function(e){for(var t=Object.create(null),n=[],r=function(e){try{return Ll.parse(e).with({fragment:null,query:null}).toString(!0)}catch(Jl){return e}}(e),i=0,s=this.filePatternAssociations;i<s.length;i++){var o=s[i];if(o.matchesPattern(r))for(var a=0,l=o.getURIs();a<l.length;a++){var u=l[a];t[u]||(n.push(u),t[u]=!0)}}return n},e.prototype.getSchemaURIsForResource=function(e,t){var n=t&&this.getSchemaFromProperty(e,t);return n?[n]:this.getAssociatedSchemas(e)},e.prototype.getSchemaForResource=function(e,t){if(t){var n=this.getSchemaFromProperty(e,t);if(n){var r=Fl(n);return this.getOrAddSchemaHandle(r).getResolvedSchema()}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;var i=this.getAssociatedSchemas(e),s=i.length>0?this.createCombinedSchema(e,i).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:s},s},e.prototype.createCombinedSchema=function(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map((function(e){return{$ref:e}}))};return this.addSchemaHandle(n,r)},e.prototype.getMatchingSchemas=function(e,t,n){if(n){var r=n.id||"schemaservice://untitled/matchingSchemas/"+Pl++;return this.addSchemaHandle(r,n).getResolvedSchema().then((function(e){return t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted}))}))}return this.getSchemaForResource(e.uri,t).then((function(e){return e?t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted})):[]}))},e}(),Pl=0;function Fl(e){try{return Ll.parse(e).toString(!0)}catch(Jl){return e}}function Dl(e){try{var t=Ll.parse(e);if("file"===t.scheme)return t.fsPath}catch(Jl){}return e}function Vl(e,t){var n=[],r=[],i=[],s=-1,o=ao(e.getText(),!1),a=o.scan();function l(e){n.push(e),r.push(i.length)}for(;17!==a;){switch(a){case 1:case 3:var u={startLine:d=e.positionAt(o.getTokenOffset()).line,endLine:d,kind:1===a?"object":"array"};i.push(u);break;case 2:case 4:var c=2===a?"object":"array";if(i.length>0&&i[i.length-1].kind===c){u=i.pop();var h=e.positionAt(o.getTokenOffset()).line;u&&h>u.startLine+1&&s!==u.startLine&&(u.endLine=h-1,l(u),s=u.startLine)}break;case 13:var d=e.positionAt(o.getTokenOffset()).line,f=e.positionAt(o.getTokenOffset()+o.getTokenLength()).line;1===o.getTokenError()&&d+1<e.lineCount?o.setPosition(e.offsetAt(ps.create(d+1,0))):d<f&&(l({startLine:d,endLine:f,kind:Rs.Comment}),s=d);break;case 12:var m=e.getText().substr(o.getTokenOffset(),o.getTokenLength()).match(/^\/\/\s*#(region\b)|(endregion\b)/);if(m){h=e.positionAt(o.getTokenOffset()).line;if(m[1]){u={startLine:h,endLine:h,kind:Rs.Region};i.push(u)}else{for(var g=i.length-1;g>=0&&i[g].kind!==Rs.Region;)g--;if(g>=0){u=i[g];i.length=g,h>u.startLine&&s!==u.startLine&&(u.endLine=h,l(u),s=u.startLine)}}}}a=o.scan()}var p=t&&t.rangeLimit;if("number"!==typeof p||n.length<=p)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);for(var v=[],b=0,y=r;b<y.length;b++){(E=y[b])<30&&(v[E]=(v[E]||0)+1)}var _=0,C=0;for(g=0;g<v.length;g++){var w=v[g];if(w){if(w+_>p){C=g;break}_+=w}}var S=[];for(g=0;g<n.length;g++){var E;"number"===typeof(E=r[g])&&(E<C||E===C&&_++<p)&&S.push(n[g])}return S}function ql(e,t,n){function r(t,n){return bs.create(e.positionAt(t),e.positionAt(n))}var i=ao(e.getText(),!0);function s(e,t){return i.setPosition(e),i.scan()===t?i.getTokenOffset()+i.getTokenLength():-1}return t.map((function(t){for(var i=e.offsetAt(t),o=n.getNodeFromOffset(i,!0),a=[];o;){switch(o.type){case"string":case"object":case"array":var l=o.offset+1,u=o.offset+o.length-1;l<u&&i>=l&&i<=u&&a.push(r(l,u)),a.push(r(o.offset,o.offset+o.length));break;case"number":case"boolean":case"null":case"property":a.push(r(o.offset,o.offset+o.length))}if("property"===o.type||o.parent&&"array"===o.parent.type){var c=s(o.offset+o.length,5);-1!==c&&a.push(r(o.offset,c))}o=o.parent}for(var h=void 0,d=a.length-1;d>=0;d--)h=fa.create(a[d],h);return h||(h=fa.create(bs.create(t,t))),h}))}function Kl(e,t){var n=[];return t.visit((function(r){var i;if("property"===r.type&&"$ref"===r.keyNode.value&&"string"===(null===(i=r.valueNode)||void 0===i?void 0:i.type)){var s=r.valueNode.value,o=function(e,t){var n=function(e){if("#"===e)return[];if("#"!==e[0]||"/"!==e[1])return null;return e.substring(2).split(/\//).map(Bl)}(t);if(!n)return null;return Ul(n,e.root)}(t,s);if(o){var a=e.positionAt(o.offset);n.push({target:"".concat(e.uri,"#").concat(a.line+1,",").concat(a.character+1),range:jl(e,r.valueNode)})}}return!0})),Promise.resolve(n)}function jl(e,t){return bs.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function Ul(e,t){if(!t)return null;if(0===e.length)return t;var n=e.shift();if(t&&"object"===t.type){var r=t.properties.find((function(e){return e.keyNode.value===n}));return r?Ul(e,r.valueNode):null}if(t&&"array"===t.type&&n.match(/^(0|[1-9][0-9]*)$/)){var i=Number.parseInt(n),s=t.items[i];return s?Ul(e,s):null}return null}function Bl(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function $l(e){var t=e.promiseConstructor||Promise,n=new Il(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(Sl);var r=new rl(n,e.contributions,t,e.clientCapabilities),i=new il(n,e.contributions,t),s=new ml(n),o=new al(n,t);return{configure:function(e){n.clearExternalSchemas(),e.schemas&&e.schemas.forEach((function(e){n.registerExternalSchema(e.uri,e.fileMatch,e.schema)})),o.configure(e)},resetSchema:function(e){return n.onResourceChange(e)},doValidation:o.doValidation.bind(o),getLanguageStatus:o.getLanguageStatus.bind(o),parseJSONDocument:function(e){return el(e,{collectComments:!0})},newJSONDocument:function(e,t){return function(e,t){return void 0===t&&(t=[]),new Za(e,t,[])}(e,t)},getMatchingSchemas:n.getMatchingSchemas.bind(n),doResolve:r.doResolve.bind(r),doComplete:r.doComplete.bind(r),findDocumentSymbols:s.findDocumentSymbols.bind(s),findDocumentSymbols2:s.findDocumentSymbols2.bind(s),findDocumentColors:s.findDocumentColors.bind(s),getColorPresentations:s.getColorPresentations.bind(s),doHover:i.doHover.bind(i),getFoldingRanges:Vl,getSelectionRanges:ql,findDefinition:function(){return Promise.resolve([])},findLinks:Kl,format:function(e,t,n){var r=void 0;if(t){var i=e.offsetAt(t.start);r={offset:i,length:e.offsetAt(t.end)-i}}var s={tabSize:n?n.tabSize:4,insertSpaces:!0===(null===n||void 0===n?void 0:n.insertSpaces),insertFinalNewline:!0===(null===n||void 0===n?void 0:n.insertFinalNewline),eol:"\n"};return function(e,t,n){return ls(e,t,n)}(e.getText(),r,s).map((function(t){return Ws.replace(bs.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length)),t.content)}))}}}"undefined"!==typeof fetch&&(Al=function(e){return fetch(e).then((e=>e.text()))});var Wl=class{constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId,this._languageService=$l({workspaceContext:{resolveRelativePath:(e,t)=>function(e,t){if(function(e){return e.charCodeAt(0)===Hl}(t)){const n=Ll.parse(e),r=t.split("/");return n.with({path:Gl(r)}).toString()}return function(e,...t){const n=Ll.parse(e),r=n.path.split("/");for(let i of t)r.push(...i.split("/"));return n.with({path:Gl(r)}).toString()}(e,t)}(t.substr(0,t.lastIndexOf("/")+1),e)},schemaRequestService:t.enableSchemaRequest?Al:void 0,clientCapabilities:Ea.LATEST}),this._languageService.configure(this._languageSettings)}async doValidation(e){let t=this._getTextDocument(e);if(t){let e=this._languageService.parseJSONDocument(t);return this._languageService.doValidation(t,e,this._languageSettings)}return Promise.resolve([])}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doComplete(n,t,r)}async doResolve(e){return this._languageService.doResolve(e)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doHover(n,t,r)}async format(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.format(r,t,n);return Promise.resolve(i)}async resetSchema(e){return Promise.resolve(this._languageService.resetSchema(e))}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentSymbols2(t,n);return Promise.resolve(r)}async findDocumentColors(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentColors(t,n);return Promise.resolve(r)}async getColorPresentations(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.parseJSONDocument(r),s=this._languageService.getColorPresentations(r,i,t,n);return Promise.resolve(s)}async getFoldingRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.getFoldingRanges(n,t);return Promise.resolve(r)}async getSelectionRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.parseJSONDocument(n),i=this._languageService.getSelectionRanges(n,t,r);return Promise.resolve(i)}async parseJSONDocument(e){let t=this._getTextDocument(e);if(!t)return null;let n=this._languageService.parseJSONDocument(t);return Promise.resolve(n)}async getMatchingSchemas(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t);return Promise.resolve(this._languageService.getMatchingSchemas(t,n))}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return _a.create(e,this._languageId,n.version,n.getValue());return null}},Hl="/".charCodeAt(0),zl=".".charCodeAt(0);function Gl(e){const t=[];for(const r of e)0===r.length||1===r.length&&r.charCodeAt(0)===zl||(2===r.length&&r.charCodeAt(0)===zl&&r.charCodeAt(1)===zl?t.pop():t.push(r));e.length>1&&0===e[e.length-1].length&&t.push("");let n=t.join("/");return 0===e[0].length&&(n="/"+n),n}self.onmessage=()=>{rs(((e,t)=>new Wl(e,t)))}})();
\ No newline at end of file +(()=>{var e={9861:(e,t,n)=>{"use strict";function r(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function*i(e,t){let n,r;for(const i of e)void 0!==r&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function s(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function o(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function a(e,t=e=>e){const n=new Set;return e.filter((e=>{const r=t(e);return!n.has(r)&&(n.add(r),!0)}))}function l(e,t){return e.length>0?e[0]:t}function c(e,t,n){const r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)}function h(e,t){for(const n of t)e.push(n)}var u;function d(e,t){return(n,r)=>t(e(n),e(r))}n.d(t,{E4:()=>h,Fy:()=>l,Hw:()=>f,U9:()=>g,VE:()=>d,aI:()=>r,c1:()=>p,dM:()=>a,j3:()=>m,kj:()=>o,n:()=>i,nK:()=>c,pN:()=>s}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(u||(u={}));const g=(e,t)=>e-t;function f(e){return(t,n)=>-e(t,n)}class m{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class p{static{this.empty=new p((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new p((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new p((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((r=>((n||u.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0))),t}}},6041:(e,t,n)=>{"use strict";function r(e,t){const n=function(e,t,n=e.length-1){for(let r=n;r>=0;r--){if(t(e[r]))return r}return-1}(e,t);if(-1!==n)return e[n]}function i(e,t){const n=s(e,t);return-1===n?void 0:e[n]}function s(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const n=Math.floor((i+s)/2);t(e[n])?i=n+1:s=n}return i-1}function o(e,t){const n=a(e,t);return n===e.length?void 0:e[n]}function a(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const n=Math.floor((i+s)/2);t(e[n])?s=n:i=n+1}return i}n.d(t,{Uk:()=>r,XP:()=>o,hw:()=>a,iM:()=>s,lx:()=>i,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>o,Xo:()=>a,ok:()=>i,xb:()=>s});var r=n(4383);function i(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function o(e){e()||(e(),(0,r.dz)(new r.D7("Assertion Failed")))}function a(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>c,Qg:()=>a,$6:()=>h});n(8447);var r=n(4383),i=n(1234),s=n(1484),o=n(8067);Symbol("MicrotaskDelay");function a(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new r.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const i=n.setInterval((()=>{e()}),t);this.disposable=(0,s.s)((()=>{n.clearInterval(i),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class c{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let h,u;u="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,o._p)((()=>{if(n)return;const e=Date.now()+15,r={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(r))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const r=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let i=!1;return{dispose(){i||(i=!0,e.cancelIdleCallback(r))}}},h=e=>u(globalThis,e);var d;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(r){n(r)}}))}}(d||(d={}));class g{static fromArray(e){return new g((t=>{t.emitMany(e)}))}static fromPromise(e){return new g((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new g((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new g((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=g.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new i.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await i.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new g((async n=>{for await(const r of e)n.emitOne(t(r))}))}map(e){return g.map(this,e)}static filter(e,t){return new g((async n=>{for await(const r of e)t(r)&&n.emitOne(r)}))}filter(e){return g.filter(this,e)}static coalesce(e){return g.filter(e,(e=>!!e))}coalesce(){return g.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return g.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>a,Gs:()=>d,MB:()=>o,Sw:()=>h,bb:()=>c,gN:()=>l,pJ:()=>u});var r=n(1090);const i="undefined"!==typeof Buffer;new r.d((()=>new Uint8Array(256)));let s;class o{static wrap(e){return i&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return i?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function c(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function u(e,t){return e[t]}function d(e,t,n){e[n]=t}},1788:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{VV:()=>s,o5:()=>i});class i{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=r):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=r):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>a});var r=n(1234);const i=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i})}(s||(s={}));class o{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?i:(this._emitter||(this._emitter=new r.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var r=n(631);const i=Object.create(null);function s(e,t){if((0,r.Kg)(t)){const n=i[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return i[e]=t,{id:e}}const o={...{add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),gitPullRequestLabel:s("git-pull-request-label",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),terminalDecorationSuccess:s("terminal-decoration-success",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circleOutline:s("circle-outline",60092),circle:s("circle",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:s("terminal-decoration-incomplete",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),diffSidebyside:s("diff-sidebyside",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),compareChanges:s("compare-changes",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),terminalDecorationMark:s("terminal-decoration-mark",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),debugAlt:s("debug-alt",60305),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),issueClosed:s("issue-closed",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),export:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnknown:s("workspace-unknown",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracket:s("bracket",60175),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newline:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),terminalDecorationError:s("terminal-decoration-error",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),blank:s("blank",60419),heartFilled:s("heart-filled",60420),map:s("map",60421),mapHorizontal:s("map-horizontal",60421),foldHorizontal:s("fold-horizontal",60421),mapFilled:s("map-filled",60422),mapHorizontalFilled:s("map-horizontal-filled",60422),foldHorizontalFilled:s("fold-horizontal-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsdownFilled:s("thumbsdown-filled",60435),thumbsupFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),repoFetch:s("repo-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),share:s("share",60453),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),vscode:s("vscode",60457),vscodeInsiders:s("vscode-insiders",60458),codeOss:s("code-oss",60459),runCoverage:s("run-coverage",60460),runAllCoverage:s("run-all-coverage",60461),coverage:s("coverage",60462),githubProject:s("github-project",60463),mapVertical:s("map-vertical",60464),foldVertical:s("fold-vertical",60464),mapVerticalFilled:s("map-vertical-filled",60465),foldVerticalFilled:s("fold-vertical-filled",60465),goToSearch:s("go-to-search",60466),percentage:s("percentage",60467),sortPercentage:s("sort-percentage",60467),attach:s("attach",60468)},...{dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left"),dropDownButton:s("drop-down-button",60084),symbolCustomColor:s("symbol-customcolor",60252),exportIcon:s("export",60332),workspaceUnspecified:s("workspace-unspecified",60355),newLine:s("newline",60394),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),gitFetch:s("git-fetch",60445),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),debugBreakpointPending:s("debug-breakpoint-pending",60377)}}},7661:(e,t,n)=>{"use strict";function r(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>a,bU:()=>i,hB:()=>s});class i{constructor(e,t,n,i=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=r(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class s{constructor(e,t,n,i){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.l=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=e.a,o=Math.max(t,n,r),a=Math.min(t,n,r);let l=0,c=0;const h=(a+o)/2,u=o-a;if(u>0){switch(c=Math.min(h<=.5?u/(2*h):u/(2-2*h),1),o){case t:l=(n-r)/u+(n<r?6:0);break;case n:l=(r-t)/u+2;break;case r:l=(t-n)/u+4}l*=60,l=Math.round(l)}return new s(l,c,h,i)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:r,a:o}=e;let a,l,c;if(0===n)a=l=c=r;else{const e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;a=s._hue2rgb(i,e,t+1/3),l=s._hue2rgb(i,e,t),c=s._hue2rgb(i,e,t-1/3)}return new i(Math.round(255*a),Math.round(255*l),Math.round(255*c),o)}}class o{constructor(e,t,n,i){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.v=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=0===i?0:s/i;let l;return l=0===s?0:i===t?((n-r)/s%6+6)%6:i===n?(r-t)/s+2:(t-n)/s+4,new o(Math.round(60*l),a,i,e.a)}static toRGBA(e){const{h:t,s:n,v:r,a:s}=e,o=r*n,a=o*(1-Math.abs(t/60%2-1)),l=r-o;let[c,h,u]=[0,0,0];return t<60?(c=o,h=a):t<120?(c=a,h=o):t<180?(h=o,u=a):t<240?(h=a,u=o):t<300?(c=a,u=o):t<=360&&(c=o,u=a),c=Math.round(255*(c+l)),h=Math.round(255*(h+l)),u=Math.round(255*(u+l)),new i(c,h,u,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof i)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&i.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return r(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:r,a:s}=this.rgba;return new a(new i(t,n,r,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new i(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:r,a:s}=this.rgba;return new a(new i(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-n),e.rgba.b-s*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(i-r)/i,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const r=e.getRelativeLuminance();return n=n*(r-t.getRelativeLuminance())/r,e.darken(n)}static{this.white=new a(new i(255,255,255,1))}static{this.black=new a(new i(0,0,0,1))}static{this.red=new a(new i(255,0,0,1))}static{this.blue=new a(new i(0,0,255,1))}static{this.green=new a(new i(0,255,0,1))}static{this.cyan=new a(new i(0,255,255,1))}static{this.lightgrey=new a(new i(211,211,211,1))}static{this.transparent=new a(new i(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function r(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,r=!1){return r&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),s=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),o=16*r(t.charCodeAt(5))+r(t.charCodeAt(6));return new e(new i(n,s,o,1))}if(9===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),s=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),o=16*r(t.charCodeAt(5))+r(t.charCodeAt(6)),a=16*r(t.charCodeAt(7))+r(t.charCodeAt(8));return new e(new i(n,s,o,a/255))}if(4===n){const n=r(t.charCodeAt(1)),s=r(t.charCodeAt(2)),o=r(t.charCodeAt(3));return new e(new i(16*n+n,16*s+s,16*o+o))}if(5===n){const n=r(t.charCodeAt(1)),s=r(t.charCodeAt(2)),o=r(t.charCodeAt(3)),a=r(t.charCodeAt(4));return new e(new i(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>g,EM:()=>u,Qg:()=>c,cU:()=>s,dz:()=>i,iH:()=>h});const r=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(d.isErrorNoTelemetry(e))throw new d(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i(e){a(e)||r.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:d.isErrorNoTelemetry(e)}}return e}const o="Canceled";function a(e){return e instanceof l||e instanceof Error&&e.name===o&&e.message===o}class l extends Error{constructor(){super(o),this.name=this.message}}function c(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function h(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class u extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class d extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof d)return e;const t=new d;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class g extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,g.prototype)}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>o,vl:()=>f});var r=n(4383),i=n(1484),s=(n(8925),n(8381));var o;!function(e){function t(e){false}function n(e){return(t,n=null,r)=>{let i,s=!1;return i=e((e=>{if(!s)return i?i.dispose():s=!0,t.call(n,e)}),null,r),s&&i.dispose(),i}}function r(e,t,n){return o(((n,r=null,i)=>e((e=>n.call(r,t(e))),null,i)),n)}function s(e,t,n){return o(((n,r=null,i)=>e((e=>t(e)&&n.call(r,e)),null,i)),n)}function o(e,n){let r;const i={onWillAddFirstListener(){r=e(s.fire,s)},onDidRemoveLastListener(){r?.dispose()}};n||t();const s=new f(i);return n?.add(s),s.event}function a(e,n,r=100,i=!1,s=!1,o,a){let l,c,h,u,d=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{d++,c=n(c,e),i&&!h&&(m.fire(c),c=void 0),u=()=>{const e=c;c=void 0,h=void 0,(!i||d>1)&&m.fire(e),d=0},"number"===typeof r?(clearTimeout(h),h=setTimeout(u,r)):void 0===h&&(h=0,queueMicrotask(u))}))},onWillRemoveListener(){s&&d>0&&u?.()},onDidRemoveLastListener(){u=void 0,l.dispose()}};a||t();const m=new f(g);return a?.add(m),m.event}e.None=()=>i.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=r,e.forEach=function(e,t,n){return o(((n,r=null,i)=>e((e=>{t(e),n.call(r,e)}),null,i)),n)},e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,i.qE)(...e.map((e=>e((e=>t.call(n,e)))))),r)},e.reduce=function(e,t,n,i){let s=n;return r(e,(e=>(s=t(s,e),s)),i)},e.debounce=a,e.accumulate=function(t,n=0,r){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,r)},e.latch=function(e,t=(e,t)=>e===t,n){let r,i=!0;return s(e,(e=>{const n=i||!t(e,r);return i=!1,r=e,n}),n)},e.split=function(t,n,r){return[e.filter(t,n,r),e.filter(t,(e=>!n(e)),r)]},e.buffer=function(e,t=!1,n=[],r){let i=n.slice(),s=e((e=>{i?i.push(e):a.fire(e)}));r&&r.add(s);const o=()=>{i?.forEach((e=>a.fire(e))),i=null},a=new f({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),r&&r.add(s))},onDidAddFirstListener(){i&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return r&&r.add(a),a.event},e.chain=function(e,t){return(n,r,i)=>{const s=t(new c);return e((function(e){const t=s.evaluate(e);t!==l&&n.call(r,t)}),void 0,i)}};const l=Symbol("HaltChainable");class c{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:l)),this}reduce(e,t){let n=t;return this.steps.push((t=>(n=e(n,t),n))),this}latch(e=(e,t)=>e===t){let t,n=!0;return this.steps.push((r=>{const i=n||!e(r,t);return n=!1,t=r,i?r:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const r=(...e)=>i.fire(n(...e)),i=new f({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const r=(...e)=>i.fire(n(...e)),i=new f({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new f;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class h{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const r={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new f(r),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,r)=>{let s=0,o=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return r instanceof i.Cm?r.add(l):Array.isArray(r)&&r.push(l),l}}}(o||(o={}));class a{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${a._idPool++}`,a.all.add(this)}start(e){this._stopWatch=new s.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,r]=this.getMostFrequentStack(),i=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(i),console.warn(e);const s=new h(i,e);this._errorHandler(s)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,r]of this._stacks)(!e||t<r)&&(e=[n,r],t=r);return e}}class c{static create(){const e=new Error;return new c(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class h extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class u extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class d{constructor(e){this.value=e}}let g;class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??r.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new a(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new u(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||r.dz)(n),i.jG.None}if(this._disposed)return i.jG.None;t&&(e=e.bind(t));const s=new d(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(s.stack=c.create(),o=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof d?(this._deliveryQueue??=new m,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,i.s)((()=>{g?.unregister(a),o?.(),this._removeListener(s)}));if(n instanceof i.Cm?n.add(a):Array.isArray(n)&&n.push(a),g){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);g.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const r=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||r.dz;if(n)try{e.value(t)}catch(i){n(i)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof d)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}class m{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>o,Zn:()=>l,_1:()=>c,kb:()=>a});var r=n(8821),i=(n(8067),n(1508));function s(e){return 47===e||92===e}function o(e){return e.replace(/[\\/]/g,r.SA.sep)}function a(e){return-1===e.indexOf("/")&&(e=o(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=r.SA.sep){if(!e)return"";const n=e.length,i=e.charCodeAt(0);if(s(i)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let r=3;const i=r;for(;r<n&&!s(e.charCodeAt(r));r++);if(i!==r&&!s(e.charCodeAt(r+1)))for(r+=1;r<n;r++)if(s(e.charCodeAt(r)))return e.slice(0,r+1).replace(/[\\/]/g,t)}return t}if(h(i)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<n;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1);return""}function c(e,t,n,s=r.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,i.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function h(e){return e>=65&&e<=90||e>=97&&e<=122}},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>A,qg:()=>I});var r=n(1940),i=n(9326),s=n(4320),o=n(8821),a=n(8067),l=n(1508);const c="**",h="/",u="[/\\\\]",d="[^/\\\\]",g=/\//g;function f(e,t){switch(e){case 0:return"";case 1:return`${d}*?`;default:return`(?:${u}|${d}+${u}${t?`|${u}${d}+`:""})*?`}}function m(e,t){if(!e)return[];const n=[];let r=!1,i=!1,s="";for(const o of e){switch(o){case t:if(!r&&!i){n.push(s),s="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":i=!0;break;case"]":i=!1}s+=o}return s&&n.push(s),n}function p(e){if(!e)return"";let t="";const n=m(e,h);if(n.every((e=>e===c)))t=".*";else{let e=!1;n.forEach(((r,i)=>{if(r===c){if(e)return;t+=f(2,i===n.length-1)}else{let e=!1,s="",o=!1,a="";for(const n of r)if("}"!==n&&e)s+=n;else if(!o||"]"===n&&a)switch(n){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const n=`(?:${m(s,",").map((e=>p(e))).join("|")})`;t+=n,e=!1,s="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=d;continue;case"*":t+=f(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||a?n===h?"":(0,l.bm)(n):"^",a+=e}i<n.length-1&&(n[i+1]!==c||i+2<n.length)&&(t+=u)}e=r===c}))}return t}const b=/^\*\*\/\*\.[\w\.-]+$/,_=/^\*\*\/([\w\.-]+)\/?$/,k=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,v=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,C=/^\*\*((\/[\w\.-]+)+)\/?$/,y=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,L=new s.qK(1e4),w=function(){return!1},S=function(){return null};function x(e,t){if(!e)return S;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const r=`${n}_${!!t.trimForExclusions}`;let i,s=L.get(r);return s||(s=b.test(n)?function(e,t){return function(n,r){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(i=_.exec(N(n,t)))?function(e,t){const n=`/${e}`,r=`\\${e}`,i=function(i,s){return"string"!==typeof i?null:s?s===e?t:null:i===e||i.endsWith(n)||i.endsWith(r)?t:null},s=[e];return i.basenames=s,i.patterns=[t],i.allBasenames=s,i}(i[1],n):(t.trimForExclusions?v:k).test(n)?function(e,t){const n=O(e.slice(1,-1).split(",").map((e=>x(e,t))).filter((e=>e!==S)),e),r=n.length;if(!r)return S;if(1===r)return n[0];const i=function(t,r){for(let i=0,s=n.length;i<s;i++)if(n[i](t,r))return e;return null},s=n.find((e=>!!e.allBasenames));s&&(i.allBasenames=s.allBasenames);const o=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(i.allPaths=o);return i}(n,t):(i=C.exec(N(n,t)))?T(i[1].substr(1),n,!0):(i=y.exec(N(n,t)))?T(i[1],n,!1):function(e){try{const t=new RegExp(`^${p(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return S}}(n),L.set(r,s)),E(s,e)}function E(e,t){if("string"===typeof t)return e;const n=function(n,r){return(0,i._1)(n,t.base,!a.j9)?e((0,l.NB)(n.substr(t.base.length),o.Vn),r):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function N(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function T(e,t,n){const r=o.Vn===o.SA.sep,i=r?e:e.replace(g,o.Vn),s=o.Vn+i,a=o.SA.sep+e;let l;return l=n?function(n,o){return"string"!==typeof n||n!==i&&!n.endsWith(s)&&(r||n!==e&&!n.endsWith(a))?null:t}:function(n,s){return"string"!==typeof n||n!==i&&(r||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function A(e,t,n){return!(!e||"string"!==typeof t)&&I(e)(t,void 0,n)}function I(e,t={}){if(!e)return w;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=x(e,t);if(n===S)return w;const r=function(e,t){return!!n(e,t)};return n.allBasenames&&(r.allBasenames=n.allBasenames),n.allPaths&&(r.allPaths=n.allPaths),r}return function(e,t){const n=O(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return S;const i=x(e,n);if(i===S)return S;if("boolean"===typeof t)return i;if(t){const n=t.when;if("string"===typeof n){const t=(t,s,o,a)=>{if(!a||!i(t,s))return null;const l=a(n.replace("$(basename)",(()=>o)));return(0,r.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return i}(n,e[n],t))).filter((e=>e!==S))),i=n.length;if(!i)return S;if(!n.some((e=>!!e.requiresSiblings))){if(1===i)return n[0];const e=function(e,t){let i;for(let s=0,o=n.length;s<o;s++){const o=n[s](e,t);if("string"===typeof o)return o;(0,r.Qg)(o)&&(i||(i=[]),i.push(o))}return i?(async()=>{for(const e of i){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const s=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,i){let s,a;for(let l=0,c=n.length;l<c;l++){const c=n[l];c.requiresSiblings&&i&&(t||(t=(0,o.P8)(e)),s||(s=t.substr(0,t.length-(0,o.LC)(e).length)));const h=c(e,t,s,i);if("string"===typeof h)return h;(0,r.Qg)(h)&&(a||(a=[]),a.push(h))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=n.find((e=>!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(s.allPaths=l);return s}(e,t)}function O(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const r=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let i;if(t){i=[];for(let e=0,n=r.length;e<n;e++)i.push(t)}else i=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const s=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=r.indexOf(t);return-1!==n?i[n]:null};s.basenames=r,s.patterns=i,s.allBasenames=r;const o=e.filter((e=>!e.basenames));return o.push(s),o}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>o,sN:()=>i,v7:()=>h});var r=n(1508);function i(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,r=s(104579,r=t),n.reduce(((e,t)=>i(t,e)),r)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=o(n,t),i(e[n],t))),t)}(e,t);case"string":return o(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,r}function s(e,t){return(t<<5)-t+e|0}function o(e,t){t=s(149417,t);for(let n=0,r=e.length;n<r;n++)t=s(e.charCodeAt(n),t);return t}function a(e,t,n=32){const r=n-t;return(e<<t|(~((1<<r)-1)&e)>>>r)>>>0}function l(e,t=0,n=e.byteLength,r=0){for(let i=0;i<n;i++)e[t+i]=r}function c(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class h{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let i,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(i=a,s=-1,a=0):(i=e.charCodeAt(0),s=0);;){let l=i;if(r.pc(i)){if(!(s+1<t)){a=i;break}{const t=e.charCodeAt(s+1);r.LJ(t)?(s++,l=r.z_(i,t)):l=65533}}else r.LJ(i)&&(l=65533);if(o=this._push(n,o,l),s++,!(s<t))break;i=e.charCodeAt(s)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),c(this._h0)+c(this._h1)+c(this._h2)+c(this._h3)+c(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=h._bigBlock32,t=this._buffDV;for(let a=0;a<64;a+=4)e.setUint32(a,t.getUint32(a,!1),!1);for(let h=64;h<320;h+=4)e.setUint32(h,a(e.getUint32(h-12,!1)^e.getUint32(h-32,!1)^e.getUint32(h-56,!1)^e.getUint32(h-64,!1),1),!1);let n,r,i,s=this._h0,o=this._h1,l=this._h2,c=this._h3,u=this._h4;for(let h=0;h<80;h++)h<20?(n=o&l|~o&c,r=1518500249):h<40?(n=o^l^c,r=1859775393):h<60?(n=o&l|o&c|l&c,r=2400959708):(n=o^l^c,r=3395469782),i=a(s,5)+n+u+r+e.getUint32(4*h,!1)&4294967295,u=c,c=l,l=a(o,30),o=s,s=i;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+u&4294967295}}},2522:(e,t,n)=>{"use strict";var r;n.d(t,{f:()=>r}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*r(e){yield e}e.empty=function(){return n},e.single=r,e.wrap=function(e){return t(e)?e:r(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const r of e)if(t(r,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},e.flatMap=function*(e,t){let n=0;for(const r of e)yield*t(r,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let r=n;for(const i of e)r=t(r,i);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const r=[];if(0===n)return[r,t];const i=t[Symbol.iterator]();for(let s=0;s<n;s++){const t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>i}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(r||(r={}))},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});class r{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1484:(e,t,n)=>{"use strict";function r(e,t){const n=this;let r,i=!1;return function(){if(i)return r;if(i=!0,t)try{r=e.apply(n,arguments)}finally{t()}else r=e.apply(n,arguments);return r}}n.d(t,{jG:()=>g,$w:()=>m,Cm:()=>d,HE:()=>f,qE:()=>h,AS:()=>c,VD:()=>a,s:()=>u,Ay:()=>o});var i=n(2522);let s=null;function o(e){return s?.trackDisposable(e),e}function a(e){s?.markAsDisposed(e)}function l(e,t){s?.setParent(e,t)}function c(e){if(i.f.is(e)){const n=[];for(const r of e)if(r)try{r.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function h(...e){const t=u((()=>c(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function u(e){const t=o({dispose:r((()=>{a(t),e()}))});return t}class d{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{c(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?d.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class g{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new d,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class f{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class m{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{c(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});class r{static{this.Undefined=new r(void 0)}constructor(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}}class i{constructor(){this._first=r.Undefined,this._last=r.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===r.Undefined}clear(){let e=this._first;for(;e!==r.Undefined;){const t=e.next;e.prev=r.Undefined,e.next=r.Undefined,e=t}this._first=r.Undefined,this._last=r.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new r(e);if(this._first===r.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==r.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==r.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==r.Undefined&&e.next!==r.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===r.Undefined&&e.next===r.Undefined?(this._first=r.Undefined,this._last=r.Undefined):e.next===r.Undefined?(this._last=this._last.prev,this._last.next=r.Undefined):e.prev===r.Undefined&&(this._first=this._first.next,this._first.prev=r.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==r.Undefined;)yield e.element,e=e.next}}},4320:(e,t,n)=>{"use strict";var r,i;n.d(t,{cO:()=>h,db:()=>u,fT:()=>o,qK:()=>c});class s{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[r]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,r]of this.map)e(r.value,r.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(r=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[i]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(r);break;case 1:this.addItemFirst(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}values(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}entries(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}[(i=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends a{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class c extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class h{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class u{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});const r=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>r,v$:()=>c,zl:()=>d});var r,i=n(4383),s=n(8067),o=n(1508),a=n(9400),l=n(8821);function c(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(r||(r={}));const h=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,r.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(h){return i.dz(h),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const o=this._ports[t],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(c+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:r.vscodeRemoteResource,authority:`${n}:${o}`,path:this._remoteResourcesPath,query:c})}};class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===r.vscodeRemote?h.rewrite(e):e.scheme!==r.file||!s.ib&&s.lg!==`${r.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:r.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=l.fj(t,e);return a.r.file(n)}return a.r.parse(t.toUrl(e))}}const d=new u;var g;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let r;"string"===typeof e?r=new URL(e).searchParams:e instanceof URL?r=e.searchParams:a.r.isUri(e)&&(r=new URL(e.toString(!0)).searchParams);const i=r?.get(n);if(i)return t.get(i)},e.addSearchParam=function(e,t,r){if(!globalThis.crossOriginIsolated)return;const i=t&&r?"3":r?"2":"1";e instanceof URLSearchParams?e.set(n,i):e[n]=i}}(g||(g={}))},146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>i,aI:()=>r,kT:()=>s});Object.prototype.hasOwnProperty;function r(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else{const s=[];for(i in e)s.push(i);s.sort();const o=[];for(i in t)o.push(i);if(o.sort(),!r(s,o))return!1;for(n=0;n<s.length;n++)if(!r(e[s[n]],t[s[n]]))return!1}return!0}function i(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function s(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r={};for(const i of e)r[i]=n(i);return r}},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>N,pD:()=>E,LC:()=>T,fj:()=>w,S8:()=>L,SA:()=>y,V8:()=>x,hd:()=>S,Vn:()=>A,IN:()=>v});var r=n(8067);let i;const s=globalThis.vscode;if("undefined"!==typeof s&&"undefined"!==typeof s.process){const e=s.process;i={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else i="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return r.uF?"win32":r.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=i.cwd,a=(i.env,i.platform),l=46,c=47,h=92,u=58;class d extends Error{constructor(e,t,n){let r;"string"===typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const i=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${i} ${r} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function g(e,t){if("string"!==typeof e)throw new d(t,"string",e)}const f="win32"===a;function m(e){return e===c||e===h}function p(e){return e===c}function b(e){return e>=65&&e<=90||e>=97&&e<=122}function _(e,t,n,r){let i="",s=0,o=-1,a=0,h=0;for(let u=0;u<=e.length;++u){if(u<e.length)h=e.charCodeAt(u);else{if(r(h))break;h=c}if(r(h)){if(o===u-1||1===a);else if(2===a){if(i.length<2||2!==s||i.charCodeAt(i.length-1)!==l||i.charCodeAt(i.length-2)!==l){if(i.length>2){const e=i.lastIndexOf(n);-1===e?(i="",s=0):(i=i.slice(0,e),s=i.length-1-i.lastIndexOf(n)),o=u,a=0;continue}if(0!==i.length){i="",s=0,o=u,a=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(o+1,u)}`:i=e.slice(o+1,u),s=u-o-1;o=u,a=0}else h===l&&-1!==a?++a:a=-1}return i}function k(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new d(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${i=t.ext,i?`${"."===i[0]?"":"."}${i}`:""}`;var i;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const v={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],g(s,`paths[${i}]`),0===s.length)continue}else 0===t.length?s=o():(s={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||o(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===h)&&(s=`${t}\\`));const a=s.length;let l=0,c="",d=!1;const f=s.charCodeAt(0);if(1===a)m(f)&&(l=1,d=!0);else if(m(f))if(d=!0,m(s.charCodeAt(1))){let e=2,t=e;for(;e<a&&!m(s.charCodeAt(e));)e++;if(e<a&&e!==t){const n=s.slice(t,e);for(t=e;e<a&&m(s.charCodeAt(e));)e++;if(e<a&&e!==t){for(t=e;e<a&&!m(s.charCodeAt(e));)e++;e!==a&&e===t||(c=`\\\\${n}\\${s.slice(t,e)}`,l=e)}}}else l=1;else b(f)&&s.charCodeAt(1)===u&&(c=s.slice(0,2),l=2,a>2&&m(s.charCodeAt(2))&&(d=!0,l=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(r){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,r=d,d&&t.length>0)break}return n=_(n,!r,"\\",m),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let n,r=0,i=!1;const s=e.charCodeAt(0);if(1===t)return p(s)?"\\":e;if(m(s))if(i=!0,m(e.charCodeAt(1))){let i=2,s=i;for(;i<t&&!m(e.charCodeAt(i));)i++;if(i<t&&i!==s){const o=e.slice(s,i);for(s=i;i<t&&m(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&!m(e.charCodeAt(i));)i++;if(i===t)return`\\\\${o}\\${e.slice(s)}\\`;i!==s&&(n=`\\\\${o}\\${e.slice(s,i)}`,r=i)}}}else r=1;else b(s)&&e.charCodeAt(1)===u&&(n=e.slice(0,2),r=2,t>2&&m(e.charCodeAt(2))&&(i=!0,r=3));let o=r<t?_(e.slice(r),!i,"\\",m):"";return 0!==o.length||i||(o="."),o.length>0&&m(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?i?`\\${o}`:o:i?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return m(n)||t>2&&b(n)&&e.charCodeAt(1)===u&&m(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){const r=e[s];g(r,"path"),r.length>0&&(void 0===t?t=n=r:t+=`\\${r}`)}if(void 0===t)return".";let r=!0,i=0;if("string"===typeof n&&m(n.charCodeAt(0))){++i;const e=n.length;e>1&&m(n.charCodeAt(1))&&(++i,e>2&&(m(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&m(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return v.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const n=v.resolve(e),r=v.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===h;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===h;)s--;const o=s-i;let a=0;for(;a<t.length&&t.charCodeAt(a)===h;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===h;)l--;const c=l-a,u=o<c?o:c;let d=-1,f=0;for(;f<u;f++){const n=e.charCodeAt(i+f);if(n!==t.charCodeAt(a+f))break;n===h&&(d=f)}if(f!==u){if(-1===d)return r}else{if(c>u){if(t.charCodeAt(a+f)===h)return r.slice(a+f+1);if(2===f)return r.slice(a+f)}o>u&&(e.charCodeAt(i+f)===h?d=f:2===f&&(d=3)),-1===d&&(d=0)}let m="";for(f=i+d+1;f<=s;++f)f!==s&&e.charCodeAt(f)!==h||(m+=0===m.length?"..":"\\..");return a+=d,m.length>0?`${m}${r.slice(a,l)}`:(r.charCodeAt(a)===h&&++a,r.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=v.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===h){if(t.charCodeAt(1)===h){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(b(t.charCodeAt(0))&&t.charCodeAt(1)===u&&t.charCodeAt(2)===h)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(1===t)return m(i)?e:".";if(m(i)){if(n=r=1,m(e.charCodeAt(1))){let i=2,s=i;for(;i<t&&!m(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&m(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&!m(e.charCodeAt(i));)i++;if(i===t)return e;i!==s&&(n=r=i+1)}}}}else b(i)&&e.charCodeAt(1)===u&&(n=t>2&&m(e.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let a=t-1;a>=r;--a)if(m(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&g(t,"suffix"),g(e,"path");let n,r=0,i=-1,s=!0;if(e.length>=2&&b(e.charCodeAt(0))&&e.charCodeAt(1)===u&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){const l=e.charCodeAt(n);if(m(l)){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(i=n):(o=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(m(e.charCodeAt(n))){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){g(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===u&&b(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(m(t)){if(!s){r=a+1;break}}else-1===i&&(s=!1,i=a+1),t===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:k.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(1===n)return m(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(m(i)){if(r=1,m(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!m(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&m(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!m(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(b(i)&&e.charCodeAt(1)===u){if(n<=2)return t.root=t.dir=e,t;if(r=2,m(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,o=r,a=-1,c=!0,h=e.length-1,d=0;for(;h>=r;--h)if(i=e.charCodeAt(h),m(i)){if(!c){o=h+1;break}}else-1===a&&(c=!1,a=h+1),i===l?-1===s?s=h:1!==d&&(d=1):-1!==s&&(d=-1);return-1!==a&&(-1===s||0===d||1===d&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==r?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},C=(()=>{if(f){const e=/\\/g;return()=>{const t=o().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>o()})(),y={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:C();g(i,`paths[${r}]`),0!==i.length&&(t=`${i}/${t}`,n=i.charCodeAt(0)===c)}return t=_(t,!n,"/",p),n?`/${t}`:t.length>0?t:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return 0===(e=_(e,!t,"/",p)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(g(e,"path"),e.length>0&&e.charCodeAt(0)===c),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];g(r,"path"),r.length>0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":y.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=y.resolve(e))===(t=y.resolve(t)))return"";const n=e.length,r=n-1,i=t.length-1,s=r<i?r:i;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===c&&(o=a)}if(a===s)if(i>s){if(t.charCodeAt(1+a)===c)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else r>s&&(e.charCodeAt(1+a)===c?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==c||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===c){if(!r){n=i;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let n,r=0,i=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===c){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(i=n):(o=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){g(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==c)-1===r&&(i=!1,r=o+1),a===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===s||1===s&&t===r-1&&t===n+1?"":e.slice(t,r)},format:k.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===c;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,o=-1,a=!0,h=e.length-1,u=0;for(;h>=r;--h){const t=e.charCodeAt(h);if(t!==c)-1===o&&(a=!1,o=h+1),t===l?-1===i?i=h:1!==u&&(u=1):-1!==i&&(u=-1);else if(!a){s=h+1;break}}if(-1!==o){const r=0===s&&n?1:s;-1===i||0===u||1===u&&i===o-1&&i===s+1?t.base=t.name=e.slice(r,o):(t.name=e.slice(r,i),t.base=e.slice(r,o),t.ext=e.slice(i,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};y.win32=v.win32=v,y.posix=v.posix=y;const L=f?v.normalize:y.normalize,w=f?v.join:y.join,S=f?v.resolve:y.resolve,x=f?v.relative:y.relative,E=f?v.dirname:y.dirname,N=f?v.basename:y.basename,T=f?v.extname:y.extname,A=f?v.sep:y.sep},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>P,HZ:()=>T,OS:()=>R,UP:()=>j,_p:()=>M,cm:()=>F,gm:()=>V,ib:()=>N,j9:()=>E,lg:()=>A,nr:()=>z,uF:()=>S,zx:()=>x});var r=n(8209);const i="en";let s,o,a=!1,l=!1,c=!1,h=!1,u=!1,d=!1,g=!1,f=!1,m=!1,p=!1,b=null,_=null,k=null;const v=globalThis;let C;"undefined"!==typeof v.vscode&&"undefined"!==typeof v.vscode.process?C=v.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(C=process);const y="string"===typeof C?.versions?.electron,L=y&&"renderer"===C?.type;if("object"===typeof C){a="win32"===C.platform,l="darwin"===C.platform,c="linux"===C.platform,h=c&&!!C.env.SNAP&&!!C.env.SNAP_REVISION,g=y,m=!!C.env.CI||!!C.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=i,b=i;const e=C.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);s=t.userLocale,_=t.osLocale,b=t.resolvedLanguage||i,k=t.languagePack?.translationsConfigFile}catch(q){}u=!0}else"object"!==typeof navigator||L?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,f=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=o.indexOf("Linux")>=0,p=o?.indexOf("Mobi")>=0,d=!0,b=r.i8()||i,s=navigator.language.toLowerCase(),_=s);let w=0;l?w=1:a?w=3:c&&(w=2);const S=a,x=l,E=c,N=u,T=d,A=d&&"function"===typeof v.importScripts?v.origin:void 0,I=o,O="function"===typeof v.postMessage&&!v.importScripts,M=(()=>{if(O){const e=[];v.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void r.callback()}}));let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),v.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),R=l||f?2:a?1:3;let D=!0,B=!1;function F(){if(!B){B=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);D=513===t[0]}return D}const P=!!(I&&I.indexOf("Chrome")>=0),V=!!(I&&I.indexOf("Firefox")>=0),z=!!(!P&&I&&I.indexOf("Safari")>=0),j=!!(I&&I.indexOf("Edg/")>=0);I&&I.indexOf("Android")},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>m,P8:()=>d});var r=n(9326),i=n(6456),s=n(8821),o=n(8067),a=n(1508),l=n(9400);function c(e){return(0,l.I)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===i.ny.file)return r._1(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(g(e.authority,t.authority))return r._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return d(e)||e.authority}basename(e){return s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===i.ny.file?t=l.r.file(s.pD(c(e))).path:(t=s.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===i.ny.file?l.r.file(s.S8(c(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!g(e.authority,t.authority))return;if(e.scheme===i.ny.file){const n=s.V8(c(e),c(t));return o.uF?r.TH(n):n}let n=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,a.length);e<t&&(n.charCodeAt(e)===a.charCodeAt(e)||n.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);n=a.substr(0,e)+n.substr(e)}return s.SA.relative(n,a)}resolvePath(e,t){if(e.scheme===i.ny.file){const n=l.r.file(s.hd(c(e),t));return e.with({authority:n.authority,path:n.path})}return t=r.kb(t),e.with({path:s.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=s.Vn){if(e.scheme===i.ny.file){const n=c(e);return n.length>r.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.Vn){return f(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let n=!1;if(e.scheme===i.ny.file){const i=c(e);n=void 0!==i&&i.length===r.Zn(i).length&&i[i.length-1]===t}else{t="/";const r=e.path;n=1===r.length&&47===r.charCodeAt(r.length-1)}return n||f(e,t)?e:e.with({path:e.path+"/"})}}const u=new h((()=>!1)),d=(new h((e=>e.scheme!==i.ny.file||!o.j9)),new h((e=>!0)),u.isEqual.bind(u),u.isEqualOrParent.bind(u),u.getComparisonKey.bind(u),u.basenameOrAuthority.bind(u),u.basename.bind(u)),g=(u.extname.bind(u),u.dirname.bind(u),u.joinPath.bind(u),u.normalizePath.bind(u),u.relativePath.bind(u),u.resolvePath.bind(u),u.isAbsolutePath.bind(u),u.isEqualAuthority.bind(u)),f=u.hasTrailingPathSeparator.bind(u);u.removeTrailingPathSeparator.bind(u),u.addTrailingPathSeparator.bind(u);var m;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,r]=e.split(":");t&&r&&n.set(t,r)}));const r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(m||(m={}))},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});const r=globalThis.performance&&"function"===typeof globalThis.performance.now;class i{static create(e){return new i(e)}constructor(e){this._now=r&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>O,AV:()=>s,E_:()=>N,HG:()=>d,LJ:()=>y,LU:()=>B,NB:()=>l,OS:()=>c,Q_:()=>k,Ss:()=>R,UD:()=>f,Wv:()=>_,Z5:()=>w,_J:()=>I,aC:()=>A,bm:()=>a,eY:()=>h,jy:()=>o,km:()=>x,lT:()=>g,ne:()=>M,ns:()=>v,pc:()=>C,r_:()=>D,tk:()=>F,tl:()=>z,uz:()=>u,y_:()=>j,z_:()=>L});var r=n(1788),i=n(1090);function s(e){return!e||"string"!==typeof e||0===e.trim().length}function o(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let r=0;for(;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function c(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(e,r)}function h(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function u(e){return e.split(/\r\n|\r|\n/)}function d(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function g(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function f(e,t){return e<t?-1:e>t?1:0}function m(e,t,n=0,r=e.length,i=0,s=t.length){for(;n<r&&i<s;n++,i++){const r=e.charCodeAt(n),s=t.charCodeAt(i);if(r<s)return-1;if(r>s)return 1}const o=r-n,a=s-i;return o<a?-1:o>a?1:0}function p(e,t,n=0,r=e.length,i=0,s=t.length){for(;n<r&&i<s;n++,i++){let o=e.charCodeAt(n),a=t.charCodeAt(i);if(o===a)continue;if(o>=128||a>=128)return m(e.toLowerCase(),t.toLowerCase(),n,r,i,s);b(o)&&(o-=32),b(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=r-n,a=s-i;return o<a?-1:o>a?1:0}function b(e){return e>=97&&e<=122}function _(e){return e>=65&&e<=90}function k(e,t){return e.length===t.length&&0===p(e,t)}function v(e,t){const n=t.length;return!(t.length>e.length)&&0===p(e,t,0,n)}function C(e){return 55296<=e&&e<=56319}function y(e){return 56320<=e&&e<=57343}function L(e,t){return t-56320+(e-55296<<10)+65536}function w(e,t,n){const r=e.charCodeAt(n);if(C(r)&&n+1<t){const t=e.charCodeAt(n+1);if(y(t))return L(r,t)}return r}class S{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(y(n)&&t>1){const r=e.charCodeAt(t-2);if(C(r))return L(r,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=w(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class x{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new S(e,t)}nextGraphemeLength(){const e=V.getInstance(),t=this._iterator,n=t.offset;let r=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,i=e.getGraphemeBreakType(t.nextCodePoint());if(P(r,i)){t.setOffset(n);break}r=i}return t.offset-n}prevGraphemeLength(){const e=V.getInstance(),t=this._iterator,n=t.offset;let r=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,i=e.getGraphemeBreakType(t.prevCodePoint());if(P(i,r)){t.setOffset(n);break}r=i}return n-t.offset}eol(){return this._iterator.eol()}}let E;function N(e){return E||(E=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),E.test(e)}const T=/^[\t\n\r\x20-\x7E]*$/;function A(e){return T.test(e)}const I=/[\u2028\u2029]/;function O(e){return I.test(e)}function M(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function R(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const D=String.fromCharCode(65279);function B(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function F(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function P(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class V{static{this._INSTANCE=null}static getInstance(){return V._INSTANCE||(V._INSTANCE=new V),V._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let r=1;for(;r<=n;)if(e<t[3*r])r*=2;else{if(!(e>t[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}class z{static{this.ambiguousCharacterData=new i.d((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')))}static{this.cache=new r.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[r,i]of e)t.has(r)&&n.set(r,i);return n}const r=this.ambiguousCharacterData.value;let i,s=e.filter((e=>!e.startsWith("_")&&e in r));0===s.length&&(s=["_default"]);for(const a of s){i=n(i,t(r[a]))}const o=function(e,t){const n=new Map(e);for(const[r,i]of t)n.set(r,i);return n}(t(r._common),i);return new z(o)}))}static getInstance(e){return z.cache.get(Array.from(e))}static{this._locales=new i.d((()=>Object.keys(z.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return z._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}class j{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(j.getRawData())),this._data}static isInvisibleCharacter(e){return j.getData().has(e)}static get codePoints(){return j.getData()}}},631:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e}function i(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){return"undefined"===typeof e}function o(e){return s(e)||null===e}n.d(t,{Gv:()=>i,Kg:()=>r,b0:()=>s,z:()=>o})},5152:(e,t,n)=>{"use strict";function r(e){return e<0?0:e>255?255:0|e}function i(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>r,j:()=>i})},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>b,r:()=>u});var r=n(8821),i=n(8067);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const l="",c="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(e){return e instanceof u||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,r,i,h=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||l),this.query=r||l,this.fragment=i||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,h))}get fsPath(){return b(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===r?r=this.path:null===r&&(r=l),void 0===i?i=this.query:null===i&&(i=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new g(t,n,r,i,s)}static parse(e,t=!1){const n=h.exec(e);return n?new g(n[2]||l,C(n[4]||l),C(n[5]||l),C(n[7]||l),C(n[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(i.uF&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){const n=e.indexOf(c,2);-1===n?(t=e.substring(2),e=c):(t=e.substring(2,n),e=e.substring(n)||c)}return new g("file",t,e,l,l)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=i.uF&&"file"===e.scheme?u.file(r.IN.join(b(e,!0),...t)).path:r.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new g(e);return t._formatted=e.external??null,t._fsPath=e._sep===d?e.fsPath??null:null,t}}return e}}const d=i.uF?1:void 0;class g extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(e=!1){return e?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const f={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));const t=f[o];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=t):-1===i&&(i=s)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function p(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=f[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function b(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i.uF&&(n=n.replace(/\//g,"\\")),n}function _(e,t){const n=t?p:m;let r="",{scheme:i,authority:s,path:o,query:a,fragment:l}=e;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=c,r+=c),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?r+=n(s,!1,!0):(r+=n(s.substr(0,e),!1,!0),r+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),l&&(r+="#",r+=t?l:m(l,!1,!1)),r}function k(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+k(e.substr(3)):e}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(e){return e.match(v)?e.replace(v,(e=>k(e))):e}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>k,SimpleWorkerServer:()=>y,create:()=>L,logOnceWebWorkerWarning:()=>d});var r=n(4383),i=n(1234),s=n(1484),o=n(6456),a=n(8067),l=n(1508);const c="default",h="$initialize";let u=!1;function d(e){a.HZ&&(u||(u=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.method=r,this.args=i,this.type=0}}class f{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class m{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=r,this.arg=i,this.type=2}}class p{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class b{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class _{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const r=String(++this._lastSentReq);return new Promise(((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new g(this._workerId,r,e,t,n))}))}listen(e,t,n){let r=null;const s=new i.vl({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,s),this._send(new m(this._workerId,r,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new b(this._workerId,r)),r=null}});return s.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,r)=>("string"!==typeof r||n[r]||(C(r)?n[r]=t=>this.listen(e,r,t):v(r)?n[r]=this.listen(e,r,void 0):36===r.charCodeAt(0)&&(n[r]=async(...n)=>(await(t?.()),this.sendMessage(e,r,n)))),n[r])};return new Proxy(Object.create(null),n)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new f(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,r.cU)(e.detail)),this._send(new f(this._workerId,t,void 0,(0,r.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new p(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class k extends s.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,r.dz)(e)}))),this._protocol=new _({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const i=globalThis.require;"undefined"!==typeof i&&"function"===typeof i.getConfig?n=i.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(c,h,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(c,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const r=this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof r[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(r[t].apply(r,n))}catch(i){return Promise.reject(i)}}_handleEvent(e,t,n){const r=this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on main thread`);if(C(t)){const i=r[t].call(r,n);if("function"!==typeof i)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return i}if(v(t)){const n=r[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function v(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function C(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class y{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new _({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===c&&t===h)return this.initialize(n[0],n[1],n[2]);const r=e===c?this._requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof r[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(r[t].apply(r,n))}catch(i){return Promise.reject(i)}}_handleEvent(e,t,n){const r=e===c?this._requestHandler:this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on worker thread`);if(C(t)){const e=r[t].call(r,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(v(t)){const e=r[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,r){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${r}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function L(e){return new y(e,null)}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(5152);class i{constructor(e){const t=(0,r.W)(e);this._defaultValue=t,this._asciiMap=i._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,r.W)(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>b,aZ:()=>p,l5:()=>C,lQ:()=>k,s7:()=>w,sH:()=>y,sN:()=>_,ss:()=>v,yI:()=>m,zp:()=>L});var r=n(8209),i=n(7661),s=n(5845),o=n(5724);const a=(0,s.x1A)("editor.lineHighlightBackground",null,r.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,s.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.b1q},r.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,s.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},r.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},r.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,s.x1A)("editor.symbolHighlightBackground",{dark:s.Ubg,light:s.Ubg,hcDark:null,hcLight:null},r.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},r.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,s.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:i.Q1.black,hcDark:i.Q1.white,hcLight:"#0F4A85"},r.kg("caret","Color of the editor cursor."))),c=(0,s.x1A)("editorCursor.background",null,r.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),h=((0,s.x1A)("editorMultiCursor.primary.foreground",l,r.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.primary.background",c,r.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorMultiCursor.secondary.foreground",l,r.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,s.x1A)("editorMultiCursor.secondary.background",c,r.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,s.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},r.kg("editorWhitespaces","Color of whitespace characters in the editor."))),u=((0,s.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:i.Q1.white,hcLight:"#292929"},r.kg("editorLineNumbers","Color of editor line numbers.")),(0,s.x1A)("editorIndentGuide.background",h,r.kg("editorIndentGuides","Color of the editor indentation guides."),!1,r.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),d=(0,s.x1A)("editorIndentGuide.activeBackground",h,r.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,r.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),g=((0,s.x1A)("editorIndentGuide.background1",u,r.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.background2","#00000000",r.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.background3","#00000000",r.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.background4","#00000000",r.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.background5","#00000000",r.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.background6","#00000000",r.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,s.x1A)("editorIndentGuide.activeBackground1",d,r.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,s.x1A)("editorIndentGuide.activeBackground2","#00000000",r.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,s.x1A)("editorIndentGuide.activeBackground3","#00000000",r.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,s.x1A)("editorIndentGuide.activeBackground4","#00000000",r.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,s.x1A)("editorIndentGuide.activeBackground5","#00000000",r.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,s.x1A)("editorIndentGuide.activeBackground6","#00000000",r.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,s.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.buw,hcLight:s.buw},r.kg("editorActiveLineNumber","Color of editor active line number"),!1,r.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),f=((0,s.x1A)("editorLineNumber.activeForeground",g,r.kg("editorActiveLineNumber","Color of editor active line number")),(0,s.x1A)("editorLineNumber.dimmedForeground",null,r.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,s.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:i.Q1.lightgrey,hcDark:i.Q1.white,hcLight:"#292929"},r.kg("editorRuler","Color of the editor rulers.")),(0,s.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},r.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,s.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},r.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,s.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.b1q,hcLight:s.b1q},r.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,s.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},r.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,s.x1A)("editorOverviewRuler.background",null,r.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,s.x1A)("editorGutter.background",s.YtV,r.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,s.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#fff").transparent(.8),hcLight:s.b1q},r.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,s.x1A)("editorUnnecessaryCode.opacity",{dark:i.Q1.fromHex("#000a"),light:i.Q1.fromHex("#0007"),hcDark:null,hcLight:null},r.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,s.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#fff").transparent(.8),hcLight:i.Q1.fromHex("#292929").transparent(.8)},r.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,s.x1A)("editorGhostText.foreground",{dark:i.Q1.fromHex("#ffffff56"),light:i.Q1.fromHex("#0007"),hcDark:null,hcLight:null},r.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,s.x1A)("editorGhostText.background",null,r.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new i.Q1(new i.bU(0,122,204,.6))),m=((0,s.x1A)("editorOverviewRuler.rangeHighlightForeground",f,r.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editorOverviewRuler.errorForeground",{dark:new i.Q1(new i.bU(255,18,18,.7)),light:new i.Q1(new i.bU(255,18,18,.7)),hcDark:new i.Q1(new i.bU(255,50,50,1)),hcLight:"#B5200D"},r.kg("overviewRuleError","Overview ruler marker color for errors."))),p=(0,s.x1A)("editorOverviewRuler.warningForeground",{dark:s.Hng,light:s.Hng,hcDark:s.Stt,hcLight:s.Stt},r.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),b=(0,s.x1A)("editorOverviewRuler.infoForeground",{dark:s.pOz,light:s.pOz,hcDark:s.IIb,hcLight:s.IIb},r.kg("overviewRuleInfo","Overview ruler marker color for infos.")),_=(0,s.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},r.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),k=(0,s.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},r.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),v=(0,s.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},r.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),C=(0,s.x1A)("editorBracketHighlight.foreground4","#00000000",r.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),y=(0,s.x1A)("editorBracketHighlight.foreground5","#00000000",r.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),L=(0,s.x1A)("editorBracketHighlight.foreground6","#00000000",r.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),w=(0,s.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new i.Q1(new i.bU(255,18,18,.8)),light:new i.Q1(new i.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},r.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,s.x1A)("editorBracketPairGuide.background1","#00000000",r.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background2","#00000000",r.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background3","#00000000",r.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background4","#00000000",r.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background5","#00000000",r.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.background6","#00000000",r.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground1","#00000000",r.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground2","#00000000",r.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground3","#00000000",r.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground4","#00000000",r.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground5","#00000000",r.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,s.x1A)("editorBracketPairGuide.activeBackground6","#00000000",r.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,s.x1A)("editorUnicodeHighlight.border",s.Hng,r.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,s.x1A)("editorUnicodeHighlight.background",s.whs,r.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const n=e.getColor(s.YtV),r=e.getColor(a),i=r&&!r.isTransparent()?r:n;i&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${i}; }`)}))},4454:(e,t,n)=>{"use strict";function r(e){let t=0,n=0,r=0,i=0;for(let s=0,o=e.length;s<o;s++){const a=e.charCodeAt(s);13===a?(0===t&&(n=s),t++,s+1<o&&10===e.charCodeAt(s+1)?(i|=2,s++):i|=3,r=s+1):10===a&&(i|=1,0===t&&(n=s),t++,r=s+1)}return 0===t&&(n=e.length),[t,n,e.length-r,i]}n.d(t,{W:()=>r})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,S:()=>l});var r=n(4383),i=n(4444),s=n(6677),o=n(6041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new r.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let r=1;r<e.length;r++)t=Math.min(t,e[r].startLineNumber),n=Math.max(n,e[r].endLineNumberExclusive);return new a(t,n)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new r.D7(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new a(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new s.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new s.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new i.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const r=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,r)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,r=0,i=null;for(;n<this._normalizedRanges.length||r<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&r<e._normalizedRanges.length){const t=this._normalizedRanges[n],i=e._normalizedRanges[r];t.startLineNumber<i.startLineNumber?(s=t,n++):(s=i,r++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[r],r++);null===i?i=s:i.endLineNumberExclusive>=s.startLineNumber?i=new a(i.startLineNumber,Math.max(i.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(i),i=s)}return null!==i&&t.push(i),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const r=[];let i=e.startLineNumber;for(let s=t;s<n;s++){const e=this._normalizedRanges[s];e.startLineNumber>i&&r.push(new a(i,e.startLineNumber)),i=e.endLineNumberExclusive}return i<e.endLineNumberExclusive&&r.push(new a(i,e.endLineNumberExclusive)),new l(r)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,r=0;for(;n<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const i=this._normalizedRanges[n],s=e._normalizedRanges[r],o=i.intersect(s);o&&!o.isEmpty&&t.push(o),i.endLineNumberExclusive<s.endLineNumberExclusive?n++:r++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(4383);class i{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let r=n;for(;r<t.length&&t[r].start<=e.endExclusive;)r++;if(n===r)t.splice(n,0,e);else{const s=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[r-1].endExclusive);t.splice(n,r-n,new i(s,o))}}static tryCreate(e,t){if(!(e>t))return new i(e,t)}static ofLength(e){return new i(0,e)}static ofStartAndLength(e,t){return new i(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new r.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new i(this.start+e,this.endExclusive+e)}deltaStart(e){return new i(this.start+e,this.endExclusive)}deltaEnd(e){return new i(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new i(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new i(t,n)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new r.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new r.D7(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});class r{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new r(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return r.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return r.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return r.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,r=0|t.lineNumber;if(n===r){return(0|e.column)-(0|t.column)}return n-r}clone(){return new r(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new r(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var r=n(3069);class i{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return i.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return i.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return i.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return i.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return i.plusRange(this,e)}static plusRange(e,t){let n,r,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,r=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,r=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,r=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new i(n,r,s,o)}intersectRanges(e){return i.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,h=t.endColumn;return n<a?(n=a,r=l):n===a&&(r=Math.max(r,l)),s>c?(s=c,o=h):s===c&&(o=Math.min(o,h)),n>s||n===s&&r>o?null:new i(n,r,s,o)}equalsRange(e){return i.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return i.getEndPosition(this)}static getEndPosition(e){return new r.y(e.endLineNumber,e.endColumn)}getStartPosition(){return i.getStartPosition(this)}static getStartPosition(e){return new r.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new i(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new i(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return i.collapseToStart(this)}static collapseToStart(e){return new i(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return i.collapseToEnd(this)}static collapseToEnd(e){return new i(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new i(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new i(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new i(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){const n=0|e.startColumn,r=0|t.startColumn;if(n===r){const n=0|e.endLineNumber,r=0|t.endLineNumber;if(n===r){return(0|e.endColumn)-(0|t.endColumn)}return n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(3069),i=n(6677);class s extends i.Q{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new r.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new r.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,r,i){return 0===i?new s(e,t,n,r):new s(n,r,e,t)}}},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var r=n(3069),i=n(6677);class s{static{this.zero=new s(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const r of e)"\n"===r?(t++,n=0):n++;return new s(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new i.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new i.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new r.y(e.lineNumber,e.column+this.columnCount):new r.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>o,Ld:()=>s,Th:()=>l});var r=n(2522),i=n(8925);const s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=s;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const a=new i.w;function l(e,t,n,i,s){if(t=o(t),s||(s=r.f.first(a)),n.length>s.maxLen){let r=e-s.maxLen/2;return r<0?r=0:i+=r,l(e,t,n=n.substring(r,e+s.maxLen/2),i,s)}const h=Date.now(),u=e-1-i;let d=-1,g=null;for(let r=1;!(Date.now()-h>=s.timeBudget);r++){const e=u-s.windowSize*r;t.lastIndex=Math.max(0,e);const i=c(t,n,u,d);if(!i&&g)break;if(g=i,e<=0)break;d=e}if(g){const e={word:g[0],startColumn:i+1+g.index,endColumn:i+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function c(e,t,n,r){let i;for(;i=e.exec(t);){const t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}a.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});class r{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),r=this.getFontStyle(e);let i=`color: ${t[n]};`;1&r&&(i+="font-style: italic;"),2&r&&(i+="font-weight: bold;");let s="";return 4&r&&(s+=" underline"),8&r&&(s+=" line-through"),s&&(i+=`text-decoration:${s};`),i}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>p,ou:()=>m,dG:()=>L,OB:()=>w});var r=n(9493),i=(n(9400),n(1234)),s=n(1484);class o{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new i.vl,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,s.s)((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();const n=new a(this,e,t);return this._factories.set(e,n),(0,s.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class a extends s.jG{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,c,h,u,d,g,f=n(8209);class m{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class p{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,r.W.symbolMethod),t.set(1,r.W.symbolFunction),t.set(2,r.W.symbolConstructor),t.set(3,r.W.symbolField),t.set(4,r.W.symbolVariable),t.set(5,r.W.symbolClass),t.set(6,r.W.symbolStruct),t.set(7,r.W.symbolInterface),t.set(8,r.W.symbolModule),t.set(9,r.W.symbolProperty),t.set(10,r.W.symbolEvent),t.set(11,r.W.symbolOperator),t.set(12,r.W.symbolUnit),t.set(13,r.W.symbolValue),t.set(15,r.W.symbolEnum),t.set(14,r.W.symbolConstant),t.set(15,r.W.symbolEnum),t.set(16,r.W.symbolEnumMember),t.set(17,r.W.symbolKeyword),t.set(27,r.W.symbolSnippet),t.set(18,r.W.symbolText),t.set(19,r.W.symbolColor),t.set(20,r.W.symbolFile),t.set(21,r.W.symbolReference),t.set(22,r.W.symbolCustomColor),t.set(23,r.W.symbolFolder),t.set(24,r.W.symbolTypeParameter),t.set(25,r.W.account),t.set(26,r.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=r.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let r=n.get(e);return"undefined"!==typeof r||t||(r=9),r}}(c||(c={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(h||(h={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(u||(u={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(g||(g={}));(0,f.kg)("Array","array"),(0,f.kg)("Boolean","boolean"),(0,f.kg)("Class","class"),(0,f.kg)("Constant","constant"),(0,f.kg)("Constructor","constructor"),(0,f.kg)("Enum","enumeration"),(0,f.kg)("EnumMember","enumeration member"),(0,f.kg)("Event","event"),(0,f.kg)("Field","field"),(0,f.kg)("File","file"),(0,f.kg)("Function","function"),(0,f.kg)("Interface","interface"),(0,f.kg)("Key","key"),(0,f.kg)("Method","method"),(0,f.kg)("Module","module"),(0,f.kg)("Namespace","namespace"),(0,f.kg)("Null","null"),(0,f.kg)("Number","number"),(0,f.kg)("Object","object"),(0,f.kg)("Operator","operator"),(0,f.kg)("Package","package"),(0,f.kg)("Property","property"),(0,f.kg)("String","string"),(0,f.kg)("Struct","struct"),(0,f.kg)("TypeParameter","type parameter"),(0,f.kg)("Variable","variable");var b,_,k,v,C;!function(e){const t=new Map;t.set(0,r.W.symbolFile),t.set(1,r.W.symbolModule),t.set(2,r.W.symbolNamespace),t.set(3,r.W.symbolPackage),t.set(4,r.W.symbolClass),t.set(5,r.W.symbolMethod),t.set(6,r.W.symbolProperty),t.set(7,r.W.symbolField),t.set(8,r.W.symbolConstructor),t.set(9,r.W.symbolEnum),t.set(10,r.W.symbolInterface),t.set(11,r.W.symbolFunction),t.set(12,r.W.symbolVariable),t.set(13,r.W.symbolConstant),t.set(14,r.W.symbolString),t.set(15,r.W.symbolNumber),t.set(16,r.W.symbolBoolean),t.set(17,r.W.symbolArray),t.set(18,r.W.symbolObject),t.set(19,r.W.symbolKey),t.set(20,r.W.symbolNull),t.set(21,r.W.symbolEnumMember),t.set(22,r.W.symbolStruct),t.set(23,r.W.symbolEvent),t.set(24,r.W.symbolOperator),t.set(25,r.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=r.W.symbolProperty),n}}(b||(b={}));class y{static{this.Comment=new y("comment")}static{this.Imports=new y("imports")}static{this.Region=new y("region")}static fromValue(e){switch(e){case"comment":return y.Comment;case"imports":return y.Imports;case"region":return y.Region}return new y(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(_||(_={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(k||(k={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(v||(v={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(C||(C={}));const L=new o,w=new o;var S;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(S||(S={}))},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});const r=(0,n(3591).u1)("languageService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>c});var r=n(8209),i=n(1234),s=n(6359),o=n(1939),a=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new i.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};s.O.add("editor.modesRegistry",l);const c="plaintext";l.registerLanguage({id:c,extensions:[".txt"],aliases:[r.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),s.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>r,Dg:()=>l,F4:()=>d,L5:()=>u,Wo:()=>h,X2:()=>a,ZS:()=>i,nk:()=>c,vd:()=>g});var r,i,s,o=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(r||(r={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(i||(i={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function c(e){return e&&"function"===typeof e.read}class h{constructor(e,t,n,r,i,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=r,this.isAutoWhitespaceEdit=i,this._isTracked=s}}class u{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class d{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>u,W5:()=>p,hB:()=>f,dr:()=>d,wC:()=>m});var r=n(1508),i=n(4320),s=n(534);class o extends s.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,r=e.length;n<r;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const r of this._getIntlSegmenterWordsOnLine(e)){if(r.index>t)break;n=r}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const a=new i.qK(10);var l=n(3069),c=n(6677),h=n(6223);class u{constructor(e,t,n,r){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=r}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(10===r)return!0;if(92===r){if(t++,t>=n)break;const r=e.charCodeAt(t);if(110===r||114===r||87===r)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=r.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(i){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new h.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let r=a.get(n);return r||(r=new o(e,t),a.set(n,r)),r}(this.wordSeparators,[]):null,n?this.searchString:null)}}function d(e,t,n){if(!n)return new h.Dg(e,null);const r=[];for(let i=0,s=t.length;i<s;i++)r[i]=t[i];return new h.Dg(e,r)}class g{constructor(e){const t=[];let n=0;for(let r=0,i=e.length;r<i;r++)10===e.charCodeAt(r)&&(t[n++]=r);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,r=t.length-1;if(-1===r)return 0;if(e<=t[0])return 0;for(;n<r;){const i=n+((r-n)/2|0);t[i]>=e?r=i-1:t[i+1]>=e?(n=i,r=i):n=i+1}return n+1}}class f{static findMatches(e,t,n,r,i){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,n,new p(s.wordSeparators,s.regex),r,i):this._doFindMatchesLineByLine(e,n,s,r,i):[]}static _getMultilineMatchRange(e,t,n,r,i,s){let o,a,l=0;if(r?(l=r.findLineFeedCountBeforeOffset(i),o=t+i+l):o=t+i,r){const e=r.findLineFeedCountBeforeOffset(i+s.length)-l;a=o+s.length+e}else a=o+s.length;const h=e.getPositionAt(o),u=e.getPositionAt(a);return new c.Q(h.lineNumber,h.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,n,r,i){const s=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new g(o):null,l=[];let c,h=0;for(n.reset(0);c=n.next(o);)if(l[h++]=d(this._getMultilineMatchRange(e,s,o,a,c.index,c[0]),c,r),h>=i)return l;return l}static _doFindMatchesLineByLine(e,t,n,r,i){const s=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,r,i),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,r,i);for(let l=t.startLineNumber+1;l<t.endLineNumber&&o<i;l++)o=this._findMatchesInLine(n,e.getLineContent(l),l,0,o,s,r,i);if(o<i){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,a,t.endLineNumber,0,o,s,r,i)}return s}static _findMatchesInLine(e,t,n,r,i,s,o,a){const l=e.wordSeparators;if(!o&&e.simpleSearch){const o=e.simpleSearch,u=o.length,d=t.length;let g=-u;for(;-1!==(g=t.indexOf(o,g+u));)if((!l||m(l,t,d,g,u))&&(s[i++]=new h.Dg(new c.Q(n,g+1+r,n,g+1+u+r),null),i>=a))return i;return i}const u=new p(e.wordSeparators,e.regex);let g;u.reset(0);do{if(g=u.next(t),g&&(s[i++]=d(new c.Q(n,g.index+1+r,n,g.index+1+g[0].length+r),g,o),i>=a))return i}while(g);return i}static findNextMatch(e,t,n,r){const i=t.parseSearchRequest();if(!i)return null;const s=new p(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindNextMatchMultiline(e,n,s,r):this._doFindNextMatchLineByLine(e,n,s,r)}static _doFindNextMatchMultiline(e,t,n,r){const i=new l.y(t.lineNumber,1),s=e.getOffsetAt(i),o=e.getLineCount(),a=e.getValueInRange(new c.Q(i.lineNumber,i.column,o,e.getLineMaxColumn(o)),1),h="\r\n"===e.getEOL()?new g(a):null;n.reset(t.column-1);const u=n.next(a);return u?d(this._getMultilineMatchRange(e,s,a,h,u.index,u[0]),u,r):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,r):null}static _doFindNextMatchLineByLine(e,t,n,r){const i=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s),a=this._findFirstMatchInLine(n,o,s,t.column,r);if(a)return a;for(let l=1;l<=i;l++){const t=(s+l-1)%i,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(n,o,t+1,1,r);if(a)return a}return null}static _findFirstMatchInLine(e,t,n,r,i){e.reset(r-1);const s=e.next(t);return s?d(new c.Q(n,s.index+1,n,s.index+1+s[0].length),s,i):null}static findPreviousMatch(e,t,n,r){const i=t.parseSearchRequest();if(!i)return null;const s=new p(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindPreviousMatchMultiline(e,n,s,r):this._doFindPreviousMatchLineByLine(e,n,s,r)}static _doFindPreviousMatchMultiline(e,t,n,r){const i=this._doFindMatchesMultiline(e,new c.Q(1,1,t.lineNumber,t.column),n,r,9990);if(i.length>0)return i[i.length-1];const s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new l.y(s,e.getLineMaxColumn(s)),n,r):null}static _doFindPreviousMatchLineByLine(e,t,n,r){const i=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(n,o,s,r);if(a)return a;for(let l=1;l<=i;l++){const t=(i+s-l-1)%i,o=e.getLineContent(t+1),a=this._findLastMatchInLine(n,o,t+1,r);if(a)return a}return null}static _findLastMatchInLine(e,t,n,r){let i,s=null;for(e.reset(0);i=e.next(t);)s=d(new c.Q(n,i.index+1,n,i.index+1+i[0].length),i,r);return s}}function m(e,t,n,r,i){return function(e,t,n,r,i){if(0===r)return!0;const s=t.charCodeAt(r-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(i>0){const n=t.charCodeAt(r);if(0!==e.get(n))return!0}return!1}(e,t,0,r,i)&&function(e,t,n,r,i){if(r+i===n)return!0;const s=t.charCodeAt(r+i);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(i>0){const n=t.charCodeAt(r+i-1);if(0!==e.get(n))return!0}return!1}(e,t,n,r,i)}class p{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const i=n.index,s=n[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){r.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||m(this._wordSeparators,e,t,i,s))return n}while(n);return null}}},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>fe,createMonacoBaseAPI:()=>me});var r=n(8447),i=n(1234);class s{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const o=new s,a=new s,l=new s,c=new Array(230),h={},u=[],d=Object.create(null),g=Object.create(null),f=[],m=[];for(let pe=0;pe<=193;pe++)f[pe]=-1;for(let pe=0;pe<=132;pe++)m[pe]=-1;var p;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const i of t){const[e,t,s,p,b,_,k,v,C]=i;if(r[t]||(r[t]=!0,u[t]=s,d[s]=t,g[s.toLowerCase()]=t,e&&(f[t]=p,0!==p&&3!==p&&5!==p&&4!==p&&6!==p&&57!==p&&(m[p]=t))),!n[p]){if(n[p]=!0,!b)throw new Error(`String representation missing for key code ${p} around scan code ${s}`);o.define(p,b),a.define(p,v||b),l.define(p,C||v||b)}_&&(c[_]=p),k&&(h[k]=p)}m[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return o.keyCodeToStr(e)}}(p||(p={}));var b,_,k,v,C,y,L,w,S,x,E,N,T,A,I,O,M,R,D,B,F,P,V,z,j,q,W,U,$,H,K,G,Q,J,X,Y,Z,ee,te,ne,re,ie,se,oe,ae,le,ce=n(9400),he=n(3069),ue=n(6677),de=n(5326),ge=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(b||(b={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(_||(_={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(k||(k={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(v||(v={})),function(e){e[e.Deprecated=1]="Deprecated"}(C||(C={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(y||(y={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(L||(L={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(w||(w={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(S||(S={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(x||(x={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(E||(E={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(N||(N={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(T||(T={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(A||(A={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(I||(I={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(O||(O={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(M||(M={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(R||(R={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(D||(D={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(B||(B={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(F||(F={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(P||(P={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(V||(V={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(z||(z={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(j||(j={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(q||(q={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(W||(W={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(U||(U={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}($||($={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(H||(H={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(K||(K={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(G||(G={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(Q||(Q={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(J||(J={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(X||(X={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Y||(Y={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Z||(Z={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(re||(re={})),function(e){e[e.Deprecated=1]="Deprecated"}(ie||(ie={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(se||(se={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(oe||(oe={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ae||(ae={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class fe{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function me(){return{editor:void 0,languages:void 0,CancellationTokenSource:r.Qi,Emitter:i.vl,KeyCode:P,KeyMod:fe,Position:he.y,Range:ue.Q,Selection:de.L,SelectionDirection:ee,MarkerSeverity:V,MarkerTag:z,Uri:ce.r,Token:ge.ou}}},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>Pe,EditorSimpleWorker:()=>Ve,create:()=>ze});class r{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var i=n(5600);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t}}function o(e,t,n){return new h(new s(e),new s(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,r,i){for(let s=0;s<i;s++)n[r+s]=e[t+s]}static Copy2(e,t,n,r,i){for(let s=0;s<i;s++)n[r+s]=e[t+s]}}class c{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new r(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class h{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,i,s]=h._getElements(e),[o,a,l]=h._getElements(t);this._hasStrings=s&&l,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=(0,i.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,i){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,r,s);return i&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,i,s){for(s[0]=!1;e<=t&&n<=i&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){let s;return n<=i?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new r(e,0,n,i-n+1)]):e<=t?(a.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),s=[new r(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],c=this.ComputeRecursionPoint(e,t,n,i,o,l,s),h=o[0],u=l[0];if(null!==c)return c;if(!s[0]){const o=this.ComputeDiffRecursive(e,h,n,u,s);let a=[];return a=s[0]?[new r(h+1,t-(h+1)+1,u+1,i-(u+1)+1)]:this.ComputeDiffRecursive(h+1,t,u+1,i,s),this.ConcatenateChanges(o,a)}return[new r(e,t-e+1,n,i-n+1)]}WALKTRACE(e,t,n,i,s,o,a,l,h,u,d,g,f,m,p,b,_,k){let v=null,C=null,y=new c,L=t,w=n,S=f[0]-b[0]-i,x=-1073741824,E=this.m_forwardHistory.length-1;do{const t=S+e;t===L||t<w&&h[t-1]<h[t+1]?(m=(d=h[t+1])-S-i,d<x&&y.MarkNextChange(),x=d,y.AddModifiedElement(d+1,m),S=t+1-e):(m=(d=h[t-1]+1)-S-i,d<x&&y.MarkNextChange(),x=d-1,y.AddOriginalElement(d,m+1),S=t-1-e),E>=0&&(e=(h=this.m_forwardHistory[E])[0],L=1,w=h.length-1)}while(--E>=-1);if(v=y.getReverseChanges(),k[0]){let e=f[0]+1,t=b[0]+1;if(null!==v&&v.length>0){const n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}C=[new r(e,g-e+1,t,p-t+1)]}else{y=new c,L=o,w=a,S=f[0]-b[0]-l,x=1073741824,E=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+s;e===L||e<w&&u[e-1]>=u[e+1]?(m=(d=u[e+1]-1)-S-l,d>x&&y.MarkNextChange(),x=d+1,y.AddOriginalElement(d+1,m+1),S=e+1-s):(m=(d=u[e-1])-S-l,d>x&&y.MarkNextChange(),x=d,y.AddModifiedElement(d+1,m+1),S=e-1-s),E>=0&&(s=(u=this.m_reverseHistory[E])[0],L=1,w=u.length-1)}while(--E>=-1);C=y.getChanges()}return this.ConcatenateChanges(v,C)}ComputeRecursionPoint(e,t,n,i,s,o,a){let c=0,h=0,u=0,d=0,g=0,f=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(i-n),p=m+1,b=new Int32Array(p),_=new Int32Array(p),k=i-n,v=t-e,C=e-n,y=t-i,L=(v-k)%2===0;b[k]=e,_[v]=t,a[0]=!1;for(let w=1;w<=m/2+1;w++){let m=0,S=0;u=this.ClipDiagonalBound(k-w,w,k,p),d=this.ClipDiagonalBound(k+w,w,k,p);for(let e=u;e<=d;e+=2){c=e===u||e<d&&b[e-1]<b[e+1]?b[e+1]:b[e-1]+1,h=c-(e-k)-C;const n=c;for(;c<t&&h<i&&this.ElementsAreEqual(c+1,h+1);)c++,h++;if(b[e]=c,c+h>m+S&&(m=c,S=h),!L&&Math.abs(e-v)<=w-1&&c>=_[e])return s[0]=c,o[0]=h,n<=_[e]&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,y,b,_,c,t,s,h,i,o,L,a):null}const x=(m-e+(S-n)-w)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,x))return a[0]=!0,s[0]=m,o[0]=S,x>0&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,y,b,_,c,t,s,h,i,o,L,a):(e++,n++,[new r(e,t-e+1,n,i-n+1)]);g=this.ClipDiagonalBound(v-w,w,v,p),f=this.ClipDiagonalBound(v+w,w,v,p);for(let r=g;r<=f;r+=2){c=r===g||r<f&&_[r-1]>=_[r+1]?_[r+1]-1:_[r-1],h=c-(r-v)-y;const l=c;for(;c>e&&h>n&&this.ElementsAreEqual(c,h);)c--,h--;if(_[r]=c,L&&Math.abs(r-k)<=w&&c<=b[r])return s[0]=c,o[0]=h,l>=b[r]&&w<=1448?this.WALKTRACE(k,u,d,C,v,g,f,y,b,_,c,t,s,h,i,o,L,a):null}if(w<=1447){let e=new Int32Array(d-u+2);e[0]=k-u+1,l.Copy2(b,u,e,1,d-u+1),this.m_forwardHistory.push(e),e=new Int32Array(f-g+2),e[0]=v-g+1,l.Copy2(_,g,e,1,f-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(k,u,d,C,v,g,f,y,b,_,c,t,s,h,i,o,L,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],r=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,i=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let r=0,i=0;if(t>0){const n=e[t-1];r=n.originalStart+n.originalLength,i=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<r||c<i)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const h=(t===r&&c===i?5:0)+this._boundaryScore(t,n.originalLength,c,n.modifiedLength);h>l&&(l=h,a=e)}n.originalStart-=a,n.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],r=e[t],i=r.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=r.originalStart+r.originalLength,a=o-s,l=n.modifiedStart,c=r.modifiedStart+r.modifiedLength,h=c-l;if(i<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(s,a,l,h,i);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,r.originalStart=t+i,r.modifiedStart=s+i,r.originalLength=o-r.originalStart,r.modifiedLength=c-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,i){if(t<i||r<i)return null;const s=e+t-i+1,o=n+r-i+1;let a=0,l=0,c=0;for(let h=e;h<s;h++)for(let e=n;e<o;e++){const t=this._contiguousSequenceScore(h,e,i);t>0&&t>a&&(a=t,l=h,c=e)}return a>0?[l,c]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i<n;i++){if(!this.ElementsAreEqual(e+i,t+i))return 0;r+=this._originalStringElements[e+i].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return l.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],l.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const i=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new r(i,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;const i=t%2===0;if(e<0){return i===(n%2===0)?0:1}return i===((r-n-1)%2===0)?r-1:r-2}}var u=n(6677),d=n(534);class g{constructor(e,t,n){const r=new Uint8Array(e*t);for(let i=0,s=e*t;i<s;i++)r[i]=n;this._data=r,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class f{constructor(e){let t=0,n=0;for(let i=0,s=e.length;i<s;i++){const[r,s,o]=e[i];s>t&&(t=s),r>n&&(n=r),o>n&&(n=o)}t++,n++;const r=new g(n,t,0);for(let i=0,s=e.length;i<s;i++){const[t,n,s]=e[i];r.set(t,n,s)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let m=null;let p=null;class b{static _createLink(e,t,n,r,i){let s=i-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:s+2},url:t.substring(r,s+1)}}static computeLinks(e,t=function(){return null===m&&(m=new f([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),m}()){const n=function(){if(null===p){p=new d.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)p.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)p.set(t.charCodeAt(n),2)}return p}(),r=[];for(let i=1,s=e.getLineCount();i<=s;i++){const s=e.getLineContent(i),o=s.length;let a=0,l=0,c=0,h=1,u=!1,d=!1,g=!1,f=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===h){let t;switch(o){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:g=!0,d=!0,t=0;break;case 93:g=!1,t=d?0:1;break;case 123:f=!0,t=0;break;case 125:t=f?0:1;break;case 39:case 34:case 96:t=c===o?1:39===c||34===c||96===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=g?0:1;break;default:t=n.get(o)}1===t&&(r.push(b._createLink(n,s,i,l,a)),e=!0)}else if(12===h){let t;91===o?(d=!0,t=0):t=n.get(o),1===t?e=!0:h=13}else h=t.nextState(h,o),0===h&&(e=!0);e&&(h=1,u=!1,d=!1,f=!1,l=a+1,c=o),a++}13===h&&r.push(b._createLink(n,s,i,l,o))}return r}}class _{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new _}navigateValueSet(e,t,n,r,i){if(e&&t){const n=this.doNavigateValueSet(t,i);if(n)return{range:e,value:n}}if(n&&r){const e=this.doNavigateValueSet(r,i);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const i=parseFloat(e);return isNaN(r)||isNaN(i)||r!==i?null:0!==r||t?(r=Math.floor(r*n),r+=t?n:-n,String(r/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let r=null;for(let i=0,s=e.length;null===r&&i<s;i++)r=this.valueSetReplace(e[i],t,n);return r}valueSetReplace(e,t,n){let r=e.indexOf(t);return r>=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}var k=n(4272),v=n(718),C=n(8381),y=n(4855);class L{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class w{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var S=n(4383),x=n(6571),E=n(3069),N=n(6782),T=n(4444);n(973);class A{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class I{static inverse(e,t,n){const r=[];let i=1,s=1;for(const a of e){const e=new I(new x.M(i,a.original.startLineNumber),new x.M(s,a.modified.startLineNumber));e.modified.isEmpty||r.push(e),i=a.original.endLineNumberExclusive,s=a.modified.endLineNumberExclusive}const o=new I(new x.M(i,t+1),new x.M(s,n+1));return o.modified.isEmpty||r.push(o),r}static clip(e,t,n){const r=[];for(const i of e){const e=i.original.intersect(t),s=i.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&r.push(new I(e,s))}return r}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new I(this.modified,this.original)}join(e){return new I(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new D(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new S.D7("not a valid diff");return new D(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new D(new u.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new u.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(M(this.original.endLineNumberExclusive,e)&&M(this.modified.endLineNumberExclusive,t))return new D(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new D(u.Q.fromPositions(new E.y(this.original.startLineNumber,1),O(new E.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(new E.y(this.modified.startLineNumber,1),O(new E.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new D(u.Q.fromPositions(O(new E.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),O(new E.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(O(new E.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),O(new E.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new S.D7}}function O(e,t){if(e.lineNumber<1)return new E.y(1,1);if(e.lineNumber>t.length)return new E.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new E.y(e.lineNumber,n.length+1):e}function M(e,t){return e>=1&&e<=t.length}class R extends I{static fromRangeMappings(e){const t=x.M.join(e.map((e=>x.M.fromRangeInclusive(e.originalRange)))),n=x.M.join(e.map((e=>x.M.fromRangeInclusive(e.modifiedRange))));return new R(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new R(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new R(this.original,this.modified,[this.toRangeMapping()])}}class D{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],r=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition()))throw new S.D7("Range mappings must be sorted")}}constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new D(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new A(this.originalRange,t)}}var B=n(1508);class F{computeDiff(e,t,n){const r=new W(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),i=[];let s=null;for(const o of r.changes){let e,t;e=0===o.originalEndLineNumber?new x.M(o.originalStartLineNumber+1,o.originalStartLineNumber+1):new x.M(o.originalStartLineNumber,o.originalEndLineNumber+1),t=0===o.modifiedEndLineNumber?new x.M(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):new x.M(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let n=new R(e,t,o.charChanges?.map((e=>new D(new u.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new u.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modified.endLineNumberExclusive!==n.modified.startLineNumber&&s.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new R(s.original.join(n.original),s.modified.join(n.modified),s.innerChanges&&n.innerChanges?s.innerChanges.concat(n.innerChanges):void 0),i.pop())),i.push(n),s=n}return(0,N.Ft)((()=>(0,N.Xo)(i,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new L(i,[],r.quitEarly)}}function P(e,t,n,r){return new h(e,t,n).ComputeDiff(r)}class V{constructor(e){const t=[],n=[];for(let r=0,i=e.length;r<i;r++)t[r]=U(e[r],1),n[r]=$(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const r=[],i=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:t.length+1;for(let e=l;e<c;e++)r[o]=t.charCodeAt(e-1),i[o]=a+1,s[o]=e,o++;!e&&a<n&&(r[o]=10,i[o]=a+1,s[o]=t.length+1,o++)}return new z(r,i,s)}}class z{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class j{constructor(e,t,n,r,i,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const r=t.getStartLineNumber(e.originalStart),i=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new j(r,i,s,o,a,l,c,h)}}class q{constructor(e,t,n,r,i){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=i}static createFromDiffResult(e,t,n,r,i,s,o){let a,l,c,h,u;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=r.getStartLineNumber(t.modifiedStart)-1,h=0):(c=r.getStartLineNumber(t.modifiedStart),h=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=P(s,a,i,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const i=e[r],s=i.originalStart-(n.originalStart+n.originalLength),o=i.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=i.originalStart+i.originalLength-n.originalStart,n.modifiedLength=i.modifiedStart+i.modifiedLength-n.modifiedStart):(t.push(i),n=i)}return t}(e)),u=[];for(let t=0,n=e.length;t<n;t++)u.push(j.createFromDiffChange(e[t],s,a))}}return new q(a,l,c,h,u)}}class W{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new V(e),this.modified=new V(t),this.continueLineDiff=H(n.maxComputationTime),this.continueCharDiff=H(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=P(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(q.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const r=[];let i=0,s=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;i<n&&s<l;){const e=this.originalLines[i],t=this.modifiedLines[s];if(e!==t){{let n=U(e,1),o=U(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,s+1,1,o)}{let n=$(e,1),o=$(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(r,i+1,n,a,s+1,o,l)}}i++,s++}e&&(r.push(q.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=e.originalLength,s+=e.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,i,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,i,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new j(t,n,t,r,i,s,i,o)]),e.push(new q(t,t,i,i,a))}_mergeTrimWhitespaceCharChange(e,t,n,r,i,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===i?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new j(t,n,t,r,i,s,i,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===i&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new j(t,n,t,r,i,s,i,o)),!0))}}function U(e,t){const n=B.HG(e);return-1===n?t:n+1}function $(e,t){const n=B.lT(e);return-1===n?t:n+2}function H(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var K=n(9861);class G{static trivial(e,t){return new G([new Q(T.L.ofLength(e.length),T.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new G([new Q(T.L.ofLength(e.length),T.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Q{static invert(e,t){const n=[];return(0,K.pN)(e,((e,r)=>{n.push(Q.fromOffsetPairs(e?e.getEndExclusives():J.zero,r?r.getStarts():new J(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new Q(new T.L(e.offset1,t.offset1),new T.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new S.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new Q(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Q(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new Q(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new Q(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new Q(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new Q(t,n)}getStarts(){return new J(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new J(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class J{static{this.zero=new J(0,0)}static{this.max=new J(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new J(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class X{static{this.instance=new X}isValid(){return!0}}class Y{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new S.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class Z{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}}function ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let r=0;for(let i=e.startLineNumber-1;i<e.endLineNumberExclusive-1;i++){const e=t[i];for(let t=0;t<e.length;t++){r++;const n=e[t],i=te.getKey(n);this.histogram[i]=(this.histogram[i]||0)+1}r++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=r}computeSimilarity(e){let t=0;const n=Math.max(this.histogram.length,e.histogram.length);for(let r=0;r<n;r++)t+=Math.abs((this.histogram[r]??0)-(e.histogram[r]??0));return 1-t/(this.totalCount+e.totalCount)}}class ne{compute(e,t,n=X.instance,r){if(0===e.length||0===t.length)return G.trivial(e,t);const i=new Z(e.length,t.length),s=new Z(e.length,t.length),o=new Z(e.length,t.length);for(let g=0;g<e.length;g++)for(let a=0;a<t.length;a++){if(!n.isValid())return G.trivialTimedOut(e,t);const l=0===g?0:i.get(g-1,a),c=0===a?0:i.get(g,a-1);let h;e.getElement(g)===t.getElement(a)?(h=0===g||0===a?0:i.get(g-1,a-1),g>0&&a>0&&3===s.get(g-1,a-1)&&(h+=o.get(g-1,a-1)),h+=r?r(g,a):1):h=-1;const u=Math.max(l,c,h);if(u===h){const e=g>0&&a>0?o.get(g-1,a-1):0;o.set(g,a,e+1),s.set(g,a,3)}else u===l?(o.set(g,a,0),s.set(g,a,1)):u===c&&(o.set(g,a,0),s.set(g,a,2));i.set(g,a,u)}const a=[];let l=e.length,c=t.length;function h(e,t){e+1===l&&t+1===c||a.push(new Q(new T.L(e+1,l),new T.L(t+1,c))),l=e,c=t}let u=e.length-1,d=t.length-1;for(;u>=0&&d>=0;)3===s.get(u,d)?(h(u,d),u--,d--):1===s.get(u,d)?u--:d--;return h(-1,-1),a.reverse(),new G(a,!1)}}class re{compute(e,t,n=X.instance){if(0===e.length||0===t.length)return G.trivial(e,t);const r=e,i=t;function s(e,t){for(;e<r.length&&t<i.length&&r.getElement(e)===i.getElement(t);)e++,t++;return e}let o=0;const a=new se;a.set(0,s(0,0));const l=new oe;l.set(0,0===a.get(0)?null:new ie(null,0,0,a.get(0)));let c=0;e:for(;;){if(o++,!n.isValid())return G.trivialTimedOut(r,i);const e=-Math.min(o,i.length+o%2),t=Math.min(o,r.length+o%2);for(c=e;c<=t;c+=2){let n=0;const o=c===t?-1:a.get(c+1),h=c===e?-1:a.get(c-1)+1;n++;const u=Math.min(Math.max(o,h),r.length),d=u-c;if(n++,u>r.length||d>i.length)continue;const g=s(u,d);a.set(c,g);const f=u===o?l.get(c+1):l.get(c-1);if(l.set(c,g!==u?new ie(f,u,d,g-u):f),a.get(c)===r.length&&a.get(c)-c===i.length)break e}}let h=l.get(c);const u=[];let d=r.length,g=i.length;for(;;){const e=h?h.x+h.length:0,t=h?h.y+h.length:0;if(e===d&&t===g||u.push(new Q(new T.L(e,d),new T.L(t,g))),!h)break;d=h.x,g=h.y,h=h.prev}return u.reverse(),new G(u,!1)}}class ie{constructor(e,t,n,r){this.prev=e,this.x=t,this.y=n,this.length=r}}class se{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class oe{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}var ae=n(6041),le=n(4320);class ce{constructor(e,t,n){this.lines=e,this.range=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let r=this.range.startLineNumber;r<=this.range.endLineNumber;r++){let t=e[r-1],i=0;r===this.range.startLineNumber&&this.range.startColumn>1&&(i=this.range.startColumn-1,t=t.substring(i)),this.lineStartOffsets.push(i);let s=0;if(!n){const e=t.trimStart();s=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const o=r===this.range.endLineNumber?Math.min(this.range.endColumn-1-i-s,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));r<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new T.L(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=ge(e>0?this.elements[e-1]:-1),n=ge(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let r=0;return t!==n&&(r+=10,0===t&&1===n&&(r+=1)),r+=de(t),r+=de(n),r}translateOffset(e,t="right"){const n=(0,ae.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),r=e-this.firstElementOffsetByLineIdx[n];return new E.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+r+(0===r&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?u.Q.fromPositions(n,n):u.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!he(this.elements[e]))return;let t=e;for(;t>0&&he(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&he(this.elements[n]);)n++;return new T.L(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){const t=(0,ae.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,ae.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new T.L(t,n)}}function he(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const ue={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function de(e){return ue[e]}function ge(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function fe(e,t,n,r,i,s){let{moves:o,excludedChanges:a}=function(e,t,n,r){const i=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),a=new Set;for(const l of s){let e,t=-1;for(const n of o){const r=l.computeSimilarity(n);r>t&&(t=r,e=n)}if(t>.9&&e&&(o.delete(e),i.push(new I(l.range,e.range)),a.add(l.source),a.add(e.source)),!r.isValid())return{moves:i,excludedChanges:a}}return{moves:i,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,r,i,s){const o=[],a=new le.db;for(const d of e)for(let e=d.original.startLineNumber;e<d.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new x.M(e,e+3)})}const l=[];e.sort((0,K.VE)((e=>e.modified.startLineNumber),K.U9));for(const d of e){let e=[];for(let t=d.modified.startLineNumber;t<d.modified.endLineNumberExclusive-2;t++){const r=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,i=new x.M(t,t+3),s=[];a.forEach(r,(({range:t})=>{for(const r of e)if(r.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&r.modifiedLineRange.endLineNumberExclusive+1===i.endLineNumberExclusive)return r.originalLineRange=new x.M(r.originalLineRange.startLineNumber,t.endLineNumberExclusive),r.modifiedLineRange=new x.M(r.modifiedLineRange.startLineNumber,i.endLineNumberExclusive),void s.push(r);const n={modifiedLineRange:i,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((0,K.Hw)((0,K.VE)((e=>e.modifiedLineRange.length),K.U9)));const c=new x.S,h=new x.S;for(const d of l){const e=d.modifiedLineRange.startLineNumber-d.originalLineRange.startLineNumber,t=c.subtractFrom(d.modifiedLineRange),n=h.subtractFrom(d.originalLineRange).getWithDelta(e),r=t.getIntersection(n);for(const i of r.ranges){if(i.length<3)continue;const t=i,n=i.delta(-e);o.push(new I(n,t)),c.addRange(t),h.addRange(n)}}o.sort((0,K.VE)((e=>e.original.startLineNumber),K.U9));const u=new ae.vJ(e);for(let d=0;d<o.length;d++){const t=o[d],n=u.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),a=(0,ae.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-a.modified.startLineNumber),g=u.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),f=(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),m=Math.max(g.original.endLineNumberExclusive-t.original.endLineNumberExclusive,f.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let p,b;for(p=0;p<l;p++){const e=t.original.startLineNumber-p-1,n=t.modified.startLineNumber-p-1;if(e>r.length||n>i.length)break;if(c.contains(n)||h.contains(e))break;if(!me(r[e-1],i[n-1],s))break}for(p>0&&(h.addRange(new x.M(t.original.startLineNumber-p,t.original.startLineNumber)),c.addRange(new x.M(t.modified.startLineNumber-p,t.modified.startLineNumber))),b=0;b<m;b++){const e=t.original.endLineNumberExclusive+b,n=t.modified.endLineNumberExclusive+b;if(e>r.length||n>i.length)break;if(c.contains(n)||h.contains(e))break;if(!me(r[e-1],i[n-1],s))break}b>0&&(h.addRange(new x.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+b)),c.addRange(new x.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+b))),(p>0||b>0)&&(o[d]=new I(new x.M(t.original.startLineNumber-p,t.original.endLineNumberExclusive+b),new x.M(t.modified.startLineNumber-p,t.modified.endLineNumberExclusive+b)))}return o}(e.filter((e=>!a.has(e))),r,i,t,n,s);return(0,K.E4)(o,l),o=function(e){if(0===e.length)return e;e.sort((0,K.VE)((e=>e.original.startLineNumber),K.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,o=i.modified.startLineNumber-r.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=r.join(i):t.push(i)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const r of e)t(r)&&n++;return n}(n,(e=>e.length>=2))>=2})),o=function(e,t){const n=new ae.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new I(new x.M(1,1),new x.M(1,1)))!==(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,o),o}function me(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const r=(new re).compute(new ce([e],new u.Q(1,1,1,e.length),!1),new ce([t],new u.Q(1,1,1,t.length),!1),n);let i=0;const s=Q.invert(r.diffs,e.length);for(const a of s)a.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||i++}));const o=function(t){let n=0;for(let r=0;r<e.length;r++)ee(t.charCodeAt(r))||n++;return n}(e.length>t.length?e:t);return i/o>.6&&o>10}function pe(e,t,n){let r=n;return r=be(e,t,r),r=be(e,t,r),r=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const i=r>0?n[r-1]:void 0,s=n[r],o=r+1<n.length?n[r+1]:void 0,a=new T.L(i?i.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new T.L(i?i.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[r]=_e(s,e,t,a,l):s.seq2Range.isEmpty&&(n[r]=_e(s.swap(),t,e,l,a).swap())}return n}(e,t,r),r}function be(e,t,n){if(0===n.length)return n;const r=[];r.push(n[0]);for(let s=1;s<n.length;s++){const i=r[r.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-i.seq1Range.endExclusive;let s;for(s=1;s<=n&&(e.getElement(o.seq1Range.start-s)===e.getElement(o.seq1Range.endExclusive-s)&&t.getElement(o.seq2Range.start-s)===t.getElement(o.seq2Range.endExclusive-s));s++);if(s--,s===n){r[r.length-1]=new Q(new T.L(i.seq1Range.start,o.seq1Range.endExclusive-n),new T.L(i.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-s)}r.push(o)}const i=[];for(let s=0;s<r.length-1;s++){const n=r[s+1];let o=r[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const i=n.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<i&&(e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a));a++);if(a===i){r[s+1]=new Q(new T.L(o.seq1Range.start+i,n.seq1Range.endExclusive),new T.L(o.seq2Range.start+i,n.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function _e(e,t,n,r,i){let s=1;for(;e.seq1Range.start-s>=r.start&&e.seq2Range.start-s>=i.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<r.endExclusive&&e.seq2Range.endExclusive+o<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,l=-1;for(let c=-s;c<=o;c++){const r=e.seq2Range.start+c,i=e.seq2Range.endExclusive+c,s=e.seq1Range.start+c,o=t.getBoundaryScore(s)+n.getBoundaryScore(r)+n.getBoundaryScore(i);o>l&&(l=o,a=c)}return e.delta(a)}class ke{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:ve(this.lines[e-1]))+(e===this.lines.length?0:ve(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function ve(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class Ce{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new re}computeDiff(e,t,n){if(e.length<=1&&(0,K.aI)(e,t,((e,t)=>e===t)))return new L([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new L([new R(new x.M(1,e.length+1),new x.M(1,t.length+1),[new D(new u.Q(1,1,e.length,e[e.length-1].length+1),new u.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const r=0===n.maxComputationTimeMs?X.instance:new Y(n.maxComputationTimeMs),i=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),c=new ke(a,e),h=new ke(l,t),d=(()=>c.length+h.length<1700?this.dynamicProgrammingDiffing.compute(c,h,r,((n,r)=>e[n]===t[r]?0===t[r].length?.1:1+Math.log(1+t[r].length):.99)):this.myersDiffingAlgorithm.compute(c,h,r))();let g=d.diffs,f=d.hitTimeout;g=pe(c,h,g),g=function(e,t,n){let r=n;if(0===r.length)return r;let i,s=0;do{i=!1;const o=[r[0]];for(let a=1;a<r.length;a++){const l=r[a],c=o[o.length-1];function h(t,n){const r=new T.L(c.seq1Range.endExclusive,l.seq1Range.start);return e.getText(r).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}h(c,l)?(i=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}r=o}while(s++<10&&i);return r}(c,0,g);const m=[],p=n=>{if(i)for(let s=0;s<n;s++){const n=b+s,o=_+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new Q(new T.L(n,n+1),new T.L(o,o+1)),r,i);for(const e of s.mappings)m.push(e);s.hitTimeout&&(f=!0)}}};let b=0,_=0;for(const u of g){(0,N.Ft)((()=>u.seq1Range.start-b===u.seq2Range.start-_));p(u.seq1Range.start-b),b=u.seq1Range.endExclusive,_=u.seq2Range.endExclusive;const n=this.refineDiff(e,t,u,r,i);n.hitTimeout&&(f=!0);for(const e of n.mappings)m.push(e)}p(e.length-b);const k=ye(m,e,t);let v=[];return n.computeMoves&&(v=this.computeMoves(k,e,t,a,l,r,i)),(0,N.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function r(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const i of k){if(!i.innerChanges)return!1;for(const r of i.innerChanges){if(!(n(r.modifiedRange.getStartPosition(),t)&&n(r.modifiedRange.getEndPosition(),t)&&n(r.originalRange.getStartPosition(),e)&&n(r.originalRange.getEndPosition(),e)))return!1}if(!r(i.modified,t)||!r(i.original,e))return!1}return!0})),new L(k,v,f)}computeMoves(e,t,n,r,i,s,o){return fe(e,t,n,r,i,s).map((e=>{const r=ye(this.refineDiff(t,n,new Q(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new w(e,r)}))}refineDiff(e,t,n,r,i){var s;const o=(s=n,new I(new x.M(s.seq1Range.start+1,s.seq1Range.endExclusive+1),new x.M(s.seq2Range.start+1,s.seq2Range.endExclusive+1))).toRangeMapping2(e,t),a=new ce(e,o.originalRange,i),l=new ce(t,o.modifiedRange,i),c=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,r):this.myersDiffingAlgorithm.compute(a,l,r),h=!1;let u=c.diffs;u=pe(a,l,u),u=function(e,t,n){const r=Q.invert(n,e.length),i=[];let s=new J(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let c=new Q(a,l);const h=c.intersect(o);let u=h.seq1Range.length,d=h.seq2Range.length;for(;r.length>0;){const n=r[0];if(!n.seq1Range.intersects(c.seq1Range)&&!n.seq2Range.intersects(c.seq2Range))break;const i=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new Q(i,s),a=o.intersect(n);if(u+=a.seq1Range.length,d+=a.seq2Range.length,c=c.join(o),!(c.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;r.shift()}u+d<2*(c.seq1Range.length+c.seq2Range.length)/3&&i.push(c),s=c.getEndExclusives()}for(;r.length>0;){const e=r.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],i=t[0];let s;s=r&&(!i||r.seq1Range.start<i.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,i)}(a,l,u),u=function(e,t,n){const r=[];for(const i of n){const e=r[r.length-1];e&&(i.seq1Range.start-e.seq1Range.endExclusive<=2||i.seq2Range.start-e.seq2Range.endExclusive<=2)?r[r.length-1]=new Q(e.seq1Range.join(i.seq1Range),e.seq2Range.join(i.seq2Range)):r.push(i)}return r}(0,0,u),u=function(e,t,n){let r=n;if(0===r.length)return r;let i,s=0;do{i=!1;const a=[r[0]];for(let l=1;l<r.length;l++){const c=r[l],h=a[a.length-1];function u(n,r){const i=new T.L(h.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(i)>5||i.length>500)return!1;const s=e.getText(i).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),u=n.seq2Range.length,d=e.countLinesIn(r.seq1Range),g=r.seq1Range.length,f=t.countLinesIn(r.seq2Range),m=r.seq2Range.length;function p(e){return Math.min(e,130)}return Math.pow(Math.pow(p(40*o+a),1.5)+Math.pow(p(40*l+u),1.5),1.5)+Math.pow(Math.pow(p(40*d+g),1.5)+Math.pow(p(40*f+m),1.5),1.5)>74184.96480721243}u(h,c)?(i=!0,a[a.length-1]=a[a.length-1].join(c)):a.push(c)}r=a}while(s++<10&&i);const o=[];return(0,K.kj)(r,((t,n,r)=>{let i=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new T.L(a.start,n.seq1Range.start));s(l)&&(i=i.deltaStart(-l.length));const c=e.getText(new T.L(n.seq1Range.endExclusive,a.endExclusive));s(c)&&(i=i.deltaEnd(c.length));const h=Q.fromOffsetPairs(t?t.getEndExclusives():J.zero,r?r.getStarts():J.max),u=i.intersect(h);o.length>0&&u.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(u):o.push(u)})),o}(a,l,u);const d=u.map((e=>new D(a.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:d,hitTimeout:c.hitTimeout}}}function ye(e,t,n,r=!1){const i=[];for(const s of(0,K.n)(e.map((e=>function(e,t,n){let r=0,i=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);const s=new x.M(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),o=new x.M(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new R(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];i.push(new R(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,N.Ft)((()=>{if(!r&&i.length>0){if(i[0].modified.startLineNumber!==i[0].original.startLineNumber)return!1;if(n.length-i[i.length-1].modified.endLineNumberExclusive!==t.length-i[i.length-1].original.endLineNumberExclusive)return!1}return(0,N.Xo)(i,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),i}const Le=()=>new F,we=()=>new Ce;var Se=n(146),xe=n(6456),Ee=n(7661);function Ne(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function Te(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Ae(e,t){const n=t.index,r=t[0].length;if(!n)return;const i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Ie(e,t){if(!e)return;const n=Ee.Q1.Format.CSS.parseHex(t);return n?{range:e,color:Te(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Oe(e,t,n){if(!e||1!==t.length)return;const r=Ne(t[0].values());return{range:e,color:Te(r[0],r[1],r[2],n?r[3]:1)}}function Me(e,t,n){if(!e||1!==t.length)return;const r=Ne(t[0].values()),i=new Ee.Q1(new Ee.hB(r[0],r[1]/100,r[2]/100,n?r[3]:1));return{range:e,color:Te(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}function Re(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function De(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Re(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(const r of n){const n=r.filter((e=>void 0!==e)),i=n[1],s=n[2];if(!s)continue;let o;if("rgb"===i){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=Oe(Ae(e,r),Re(s,t),!1)}else if("rgba"===i){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Oe(Ae(e,r),Re(s,t),!0)}else if("hsl"===i){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=Me(Ae(e,r),Re(s,t),!1)}else if("hsla"===i){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Me(Ae(e,r),Re(s,t),!0)}else"#"===i&&(o=Ie(Ae(e,r),i+s));o&&t.push(o)}return t}(e):[]}var Be=n(6691),Fe=n(796);class Pe{constructor(){this._workerTextModelSyncServer=new Fe.WorkerTextModelSyncServer}dispose(){}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,n){const r=this._getModel(e);return r?y.UnicodeTextModelHighlighter.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Be.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,r){const i=this._getModel(e),s=this._getModel(t);if(!i||!s)return null;return Ve.computeDiff(i,s,n,r)}static computeDiff(e,t,n,r){const i="advanced"===r?we():Le(),s=e.getLinesContent(),o=t.getLinesContent(),a=i.computeDiff(s,o,n);function l(e){return e.map((e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++){if(e.getLineContent(r)!==t.getLineContent(r))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,n){const r=this._getModel(e);if(!r)return t;const i=[];let s;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return u.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let a=0;for(let o=1;o<t.length;o++)u.Q.getEndPosition(t[a].range).equals(u.Q.getStartPosition(t[o].range))?(t[a].range=u.Q.fromPositions(u.Q.getStartPosition(t[a].range),u.Q.getEndPosition(t[o].range)),t[a].text+=t[o].text):(a++,t[a]=t[o]);t.length=a+1;for(let{range:l,text:c,eol:h}of t){if("number"===typeof h&&(s=h),u.Q.isEmpty(l)&&!c)continue;const e=r.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,r.eol),e===c)continue;if(Math.max(c.length,e.length)>Ve._diffLimit){i.push({range:l,text:c});continue}const t=o(e,c,n),a=r.offsetAt(u.Q.lift(l).getStartPosition());for(const n of t){const e=r.positionAt(a+n.originalStart),t=r.positionAt(a+n.originalStart+n.originalLength),s={text:c.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};r.getValueInRange(s.range)!==s.text&&i.push(s)}}return"number"===typeof s&&i.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?b.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?De(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,r){const i=new C.W,s=new RegExp(n,r),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>Ve._suggestionsLimit))break e}return{words:Array.from(o),duration:i.elapsed()}}async $computeWordRanges(e,t,n,r){const i=this._getModel(e);if(!i)return Object.create(null);const s=new RegExp(n,r),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=i.getLineWords(a,s);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,n,r,i){const s=this._getModel(e);if(!s)return null;const o=new RegExp(r,i);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const c=s.getValueInRange(l);return _.INSTANCE.navigateValueSet(t,a,l,c,n)}}class Ve extends Pe{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,r){const i={host:(0,Se.kT)(r,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve((0,Se.V0)(this._foreignModule))):new Promise(((r,s)=>{const o=e=>{this._foreignModule=e.create(i,t),r((0,Se.V0)(this._foreignModule))};{const t=xe.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(o).catch(s)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function ze(e){return new Ve(v.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,k.createMonacoBaseAPI)())},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>r});const r=(0,n(3591).u1)("editorWorkerService")},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>r});class r{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(r.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(r.CHANNEL_NAME,t)}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>s});const r=new RegExp("\\bMARK:\\s*(.*)$","d"),i=/^-+|-+$/g;function s(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const r=function(e,t){const n=[],r=e.getLineCount();for(let i=1;i<=r;i++){const r=e.getLineContent(i),s=r.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:i,startColumn:s[0].length+1,endLineNumber:i,endColumn:r.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(r.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let r=1;r<=n;r++){o(e.getLineContent(r),r,t)}return t}(e);n=n.concat(t)}return n}function o(e,t,n){r.lastIndex=0;const i=r.exec(e);if(i){const e={startLineNumber:t,startColumn:i.indices[1][0]+1,endLineNumber:t,endColumn:i.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(i[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(i,""),hasSeparatorLine:t}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>d});var r,i=n(6456),s=n(9403),o=n(9400),a=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(r||(r={}));var l,c,h=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const r=t.exec(e.id);if(!r)return n(h.W.error);const[,i,s]=r,o=["codicon","codicon-"+i];return s&&o.push("codicon-modifier-"+s.substring(1)),o}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const r=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=r.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const r=n.lastIndexOf("~");return-1!==r&&(n=n.substring(0,r)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(c||(c={}));const u=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function d(e,t,n,l,h){if(c.isThemeIcon(h))return[`codicon-${h.id}`,"predefined-file-icon"];if(o.r.isUri(h))return[];const d=l===r.ROOT_FOLDER?["rootfolder-icon"]:l===r.FOLDER?["folder-icon"]:["file-icon"];if(n){let o;if(n.scheme===i.ny.data){o=s.B6.parseMetaData(n).get(s.B6.META_DATA_LABEL)}else{const e=n.path.match(u);e?(o=g(e[2].toLowerCase()),e[1]&&d.push(`${g(e[1].toLowerCase())}-name-dir-icon`)):o=g(n.authority.toLowerCase())}if(l===r.ROOT_FOLDER)d.push(`${o}-root-name-folder-icon`);else if(l===r.FOLDER)d.push(`${o}-name-folder-icon`);else{if(o){if(d.push(`${o}-name-file-icon`),d.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t<e.length;t++)d.push(`${e.slice(t).join(".")}-ext-file-icon`)}d.push("ext-file-icon")}const r=function(e,t,n){if(!n)return null;let r=null;if(n.scheme===i.ny.data){const e=s.B6.parseMetaData(n).get(s.B6.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(r=t.getLanguageId())}if(r&&r!==a.vH)return r;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);r&&d.push(`${g(r)}-lang-file-icon`)}}return d}function g(e){return e.replace(/[\s]/g,"/")}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>m,LanguageFeatureDebounceService:()=>k});var r=n(5600),i=n(4320);function s(e,t,n){return Math.min(Math.max(e,t),n)}class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class a{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const c=(0,l.u1)("environmentService");var h=n(4621),u=n(3511),d=n(6456),g=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},f=function(e,t){return function(n,r){t(n,r,e)}};const m=(0,l.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let r=t.get(e);return void 0===r&&(r=++n,t.set(e,r)),r}}(p||(p={}));class b{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class _{constructor(e,t,n,r,s,o){this._logService=e,this._name=t,this._registry=n,this._default=r,this._min=s,this._max=o,this._cache=new i.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,r.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?s(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let r=this._cache.get(n);r||(r=new a(6),this._cache.set(n,r));const i=s(r.update(t),this._min,this._max);return(0,d.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${i}ms`),i}_overall(){const e=new o;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return s(0|this._overall()||this._default,this._min,this._max)}}let k=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const r=n?.min??50,i=n?.max??r**2,s=n?.key??void 0,o=`${p.of(e)},${r}${s?","+s:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new b(1.5*r)):a=new _(this._logService,t,e,0|this._overallAverage()||1.5*r,r,i),this._data.set(o,a)),a}_overallAverage(){const e=new o;for(const t of this._data.values())e.update(t.default());return e.value}};k=g([f(0,u.rr),f(1,c)],k),(0,h.v)(m,k,1)},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>r});const r=(0,n(3591).u1)("ILanguageFeaturesService")},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>m});var r=n(1234),i=n(1484),s=n(6223),o=n(6958),a=n(8821);function l(e,t,n,r,i,s){if(Array.isArray(e)){let o=0;for(const a of e){const e=l(a,t,n,r,i,s);if(10===e)return e;e>o&&(o=e)}return o}if("string"===typeof e)return r?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:c,scheme:h,hasAccessToAllModels:u,notebookType:d}=e;if(!r&&!u)return 0;d&&i&&(t=i);let g=0;if(h)if(h===t.scheme)g=10;else{if("*"!==h)return 0;g=5}if(l)if(l===n)g=10;else{if("*"!==l)return 0;g=Math.max(g,5)}if(d)if(d===s)g=10;else{if("*"!==d||void 0===s)return 0;g=Math.max(g,5)}if(c){let e;if(e="string"===typeof c?c:{...c,base:(0,a.S8)(c.base)},e!==t.fsPath&&!(0,o.YW)(e,t.fsPath))return 0;g=10}return g}return 0}function c(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(c):!!e.exclusive)}class h{constructor(e,t,n,r,i){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=r,this.recursive=i}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class u{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new r.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,i.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,r;return this._orderedForEach(e,!1,(e=>{n&&r===e._score?n.push(e.provider):(r=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const r of this._entries)r._score>0&&n(r)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),r=n?new h(e.uri,e.getLanguageId(),n.uri,n.type,t):new h(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(r)){this._lastCandidate=r;for(const n of this._entries)if(n._score=l(n.selector,r.uri,r.languageId,(0,s.vd)(e),r.notebookUri,r.notebookType),c(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(u._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:d(e.selector)&&!d(t.selector)?1:!d(e.selector)&&d(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function d(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(d):Boolean(e.isBuiltin))}var g=n(6942),f=n(4621);class m{constructor(){this.referenceProvider=new u(this._score.bind(this)),this.renameProvider=new u(this._score.bind(this)),this.newSymbolNamesProvider=new u(this._score.bind(this)),this.codeActionProvider=new u(this._score.bind(this)),this.definitionProvider=new u(this._score.bind(this)),this.typeDefinitionProvider=new u(this._score.bind(this)),this.declarationProvider=new u(this._score.bind(this)),this.implementationProvider=new u(this._score.bind(this)),this.documentSymbolProvider=new u(this._score.bind(this)),this.inlayHintsProvider=new u(this._score.bind(this)),this.colorProvider=new u(this._score.bind(this)),this.codeLensProvider=new u(this._score.bind(this)),this.documentFormattingEditProvider=new u(this._score.bind(this)),this.documentRangeFormattingEditProvider=new u(this._score.bind(this)),this.onTypeFormattingEditProvider=new u(this._score.bind(this)),this.signatureHelpProvider=new u(this._score.bind(this)),this.hoverProvider=new u(this._score.bind(this)),this.documentHighlightProvider=new u(this._score.bind(this)),this.multiDocumentHighlightProvider=new u(this._score.bind(this)),this.selectionRangeProvider=new u(this._score.bind(this)),this.foldingRangeProvider=new u(this._score.bind(this)),this.linkProvider=new u(this._score.bind(this)),this.inlineCompletionsProvider=new u(this._score.bind(this)),this.inlineEditProvider=new u(this._score.bind(this)),this.completionProvider=new u(this._score.bind(this)),this.linkedEditingRangeProvider=new u(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new u(this._score.bind(this)),this.documentSemanticTokensProvider=new u(this._score.bind(this)),this.documentDropEditProvider=new u(this._score.bind(this)),this.documentPasteEditProvider=new u(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,f.v)(g.ILanguageFeaturesService,m,1)},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>O});var r=n(1234),i=n(1484),s=n(9259),o=n(9861),a=n(2083),l=n(3941);const c=(e,t)=>e===t;new WeakMap;class h{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=d.get(e);if(n)return n;const r=function(e,t){const n=d.get(e);if(n)return n;const r=t.owner?function(e){const t=f.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let r=g.get(n)??0;r++,g.set(n,r);const i=1===r?n:`${n}#${r}`;return f.set(e,i),i}(t.owner)+".":"";let i;const s=t.debugNameSource;if(void 0!==s){if("function"!==typeof s)return r+s;if(i=s(),void 0!==i)return r+i}const o=t.referenceFn;if(void 0!==o&&(i=m(o),void 0!==i))return r+i;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return r+n}return}(e,t);if(r){let t=u.get(r)??0;t++,u.set(r,t);const n=1===t?r:`${r}#${t}`;return d.set(e,n),n}return}(e,this)}}const u=new Map,d=new WeakMap;const g=new Map,f=new WeakMap;function m(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),r=n?n[1]:void 0;return r?.trim()}let p,b,_,k;function v(){return p}class C{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,r=void 0===t?e:t;return k({owner:n,debugName:()=>{const e=m(r);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(r.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:r},(e=>r(this.read(e),e)))}flatten(){return k({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(b(this,t)),this}keepObserved(e){return e.add(_(this)),this}}class y extends C{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function L(e,t){const n=new w(e,t);try{e(n)}finally{n.finish()}}class w{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],v()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():m(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:r}=e[t];n.endUpdate(r)}this.updatingObservers=null,v()?.handleEndTransaction()}}var S=n(6782);!function(e){k=e}((function(e,t){return new x(new h(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??c)}));class x extends y{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,r,i=void 0,s){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=r,this._handleLastObserverRemoved=i,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),v()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const r=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,r)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const i=t&&!this._equalityComparator(n,this.value);if(v()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:i,hadValue:t}),i)for(const s of this.observers)s.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),r=3===this.state;if(n&&(1===this.state||r)&&(this.state=2,r))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function E(e){return new N(new h(void 0,void 0,e),e,void 0,void 0)}class N{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,r){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=r,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),v()?.handleAutorunCreated(this),this._runIfNeeded(),(0,i.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,i.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){v()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||v()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,S.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=N}(E||(E={}));function T(...e){let t,n,r;return 3===e.length?[t,n,r]=e:[n,r]=e,new A(new h(t,void 0,r),n,r,(()=>A.globalTransaction),c)}class A extends y{constructor(e,t,n,r,i){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=r,this._equalityComparator=i,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,r=!this.hasValue||!this._equalityComparator(n,t);let i=!1;r&&(this.value=t,this.hasValue&&(i=!0,function(e,t,n){e?t(e):L(t,n)}(this._getTransaction(),(e=>{v()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:r,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),i||v()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:r,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=A,e.batchEventsGlobally=function(e,t){let n=!1;void 0===A.globalTransaction&&(A.globalTransaction=e,n=!0);try{t()}finally{n&&(A.globalTransaction=void 0)}}}(T||(T={}));!function(e){_=e}((function(e){const t=new I(!1,void 0);return e.addObserver(t),(0,i.s)((()=>{e.removeObserver(t)}))})),function(e){b=e}((function(e,t){const n=new I(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,i.s)((()=>{e.removeObserver(n)}))}));class I{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class O extends i.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new r.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new r.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new r.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,O.instanceCount++,this._registry=this._register(new s.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){O.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(n,null)}createById(e){return new M(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new M(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class M{constructor(e,t){this._value=T(this,e,(()=>t())),this.onDidChange=r.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>f,getLanguageIds:()=>m,registerPlatformLanguageAssociation:()=>g});var r=n(6958),i=n(1939),s=n(6456),o=n(8821),a=n(9403),l=n(1508),c=n(3941);let h=[],u=[],d=[];function g(e,t=!1){!function(e,t,n){const i=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,r.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);h.push(i),i.userConfigured?d.push(i):u.push(i);n&&!i.userConfigured&&h.forEach((e=>{e.mime===i.mime||e.userConfigured||(i.extension&&e.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&e.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&e.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&e.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))}))}(e,!1,t)}function f(){h=h.filter((e=>e.userConfigured)),u=[]}function m(e,t){return function(e,t){let n;if(e)switch(e.scheme){case s.ny.file:n=e.fsPath;break;case s.ny.data:n=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case s.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:i.K.unknown}];n=n.toLowerCase();const r=(0,o.P8)(n),g=p(n,r,d);if(g)return[g,{id:c.vH,mime:i.K.text}];const f=p(n,r,u);if(f)return[f,{id:c.vH,mime:i.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=h.length-1;t>=0;t--){const n=h[t];if(!n.firstline)continue;const r=e.match(n.firstline);if(r&&r.length>0)return n}return}(t);if(e)return[e,{id:c.vH,mime:i.K.text}]}return[{id:"unknown",mime:i.K.unknown}]}(e,t).map((e=>e.id))}function p(e,t,n){let r,i,s;for(let o=n.length-1;o>=0;o--){const a=n[o];if(t===a.filenameLowercase){r=a;break}if(a.filepattern&&(!i||a.filepattern.length>i.filepattern.length)){const n=a.filepatternOnPath?e:t;a.filepatternLowercase?.(n)&&(i=a)}a.extension&&(!s||a.extension.length>s.extension.length)&&t.endsWith(a.extensionLowercase)&&(s=a)}return r||(i||(s||void 0))}},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>d,LanguagesRegistry:()=>g});var r=n(1234),i=n(1484),s=n(1508),o=n(9908),a=n(3941),l=n(1646),c=n(6359);const h=Object.prototype.hasOwnProperty,u="vs.editor.nullLanguage";class d{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(u,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||u}}class g extends i.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new d,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),c.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;h.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let r=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),r=t.mimetypes[0]),r||(r=`text/x-${n}`,e.mimetypes.push(r)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:n,mime:r,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const s of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:n,mime:r,filename:s},this._warnOnOverwrite),e.filenames.push(s);if(Array.isArray(t.filenamePatterns))for(const s of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:n,mime:r,filepattern:s},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,s.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:n,mime:r,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let i=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(i=0===t.aliases.length?[null]:t.aliases),null!==i)for(const s of i)s&&0!==s.length&&e.aliases.push(s);const a=null!==i&&i.length>0;if(a&&null===i[0]);else{const t=(a?i[0]:null)||n;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&h.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return h.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&h.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>r});const r=(0,n(3591).u1)("markerDecorationsService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>L});var r,i=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(r||(r={})),function(e){const t="error",n="warning",r="info";e.fromValue=function(s){return s?i.Q_(t,s)?e.Error:i.Q_(n,s)||i.Q_("warn",s)?e.Warning:i.Q_(r,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(i){switch(i){case e.Error:return t;case e.Warning:return n;case e.Info:return r;default:return"ignore"}}}(r||(r={}));const s=r;var o,a,l=n(8209),c=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(o||(o={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.Error:return e.Error;case s.Warning:return e.Warning;case s.Info:return e.Info;case s.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.Error;case e.Warning:return s.Warning;case e.Info:return s.Info;case e.Hint:return s.Ignore}}}(o||(o={})),function(e){const t="";function n(e,n){const r=[t];return e.source?r.push(e.source.replace("\xa6","\\\xa6")):r.push(t),e.code?"string"===typeof e.code?r.push(e.code.replace("\xa6","\\\xa6")):r.push(e.code.value.replace("\xa6","\\\xa6")):r.push(t),void 0!==e.severity&&null!==e.severity?r.push(o.toString(e.severity)):r.push(t),e.message&&n?r.push(e.message.replace("\xa6","\\\xa6")):r.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?r.push(e.startLineNumber.toString()):r.push(t),void 0!==e.startColumn&&null!==e.startColumn?r.push(e.startColumn.toString()):r.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?r.push(e.endLineNumber.toString()):r.push(t),void 0!==e.endColumn&&null!==e.endColumn?r.push(e.endColumn.toString()):r.push(t),r.push(t),r.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(a||(a={}));const h=(0,c.u1)("markerService");var u=n(1484),d=n(6223),g=n(5724),f=n(7119),m=n(3750),p=n(6677),b=n(6456),_=n(1234),k=n(5845),v=n(4320);var C=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},y=function(e,t){return function(n,r){t(n,r,e)}};let L=class extends u.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new _.vl),this._markerDecorations=new v.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new w(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==b.ny.inMemory&&e.uri.scheme!==b.ny.internal&&e.uri.scheme!==b.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};L=C([y(0,m.IModelService),y(1,h)],L);class w extends u.jG{constructor(e){super(),this.model=e,this._map=new v.cO,this._register((0,u.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],r=[];for(const i of e)t.has(i)||n.push(i);for(const i of t)e.has(i)||r.push(i);return{removed:n,added:r}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const r=n.map((e=>this._map.get(e))),i=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(r,i);for(const o of n)this._map.delete(o);for(let o=0;o<s.length;o++)this._map.set(t[o],s[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=p.Q.lift(t);if(t.severity!==o.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const r=e.getWordAtPosition(n.getStartPosition());r&&(n=new p.Q(n.startLineNumber,r.startColumn,n.endLineNumber,r.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const r=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);r<n.endColumn&&(n=new p.Q(n.startLineNumber,r,n.endLineNumber,n.endColumn),t.startColumn=r)}return n}_createDecorationOption(e){let t,n,r,i,s;switch(e.severity){case o.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",r=0;break;case o.Info:t="squiggly-info",n=(0,g.Yf)(f.AQ),r=10,s={color:(0,g.Yf)(k.KoI),position:1};break;case o.Warning:t="squiggly-warning",n=(0,g.Yf)(f.aZ),r=20,s={color:(0,g.Yf)(k.uMG),position:1};break;case o.Error:default:t="squiggly-error",n=(0,g.Yf)(f.yI),r=30,s={color:(0,g.Yf)(k.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(i="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(i="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:d.A5.Right},minimap:s,zIndex:r,inlineClassName:i}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>r});const r=(0,n(3591).u1)("modelService")},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>yi,ModelService:()=>Ci});var r=n(1234),i=n(1484),s=n(8067),o=n(9861),a=n(7661),l=n(4383),c=n(1508),h=n(9400),u=n(4454);class d{static _nextVisibleColumn(e,t,n){return 9===e?d.nextRenderTabStop(t,n):c.ne(e)||c.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const r=Math.min(t-1,e.length),i=e.substring(0,r),s=new c.km(i);let o=0;for(;!s.eol();){const e=c.Z5(i,r,s.offset);s.nextGraphemeLength(),o=this._nextVisibleColumn(e,o,n)}return o}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const r=e.length,i=new c.km(e);let s=0,o=1;for(;!i.eol();){const a=c.Z5(e,r,i.offset);i.nextGraphemeLength();const l=this._nextVisibleColumn(a,s,n),h=i.offset+1;if(l>=t){return l-t<t-s?h:o}s=l,o=h}return r+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function g(e,t,n){let r=c.HG(e);return-1===r&&(r=e.length),function(e,t,n){let r=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?r=d.nextIndentTabStop(r,t):r++;let i="";if(!n){const e=Math.floor(r/t);r%=t;for(let t=0;t<e;t++)i+="\t"}for(let s=0;s<r;s++)i+=" ";return i}(e.substring(0,r),t,n)+e.substring(r)}var f=n(3069),m=n(6677),p=n(5326);const b={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var _,k=n(154),v=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(_||(_={}));class C{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),r=e.getStandardTokenType(n);return this.isOK(r)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class y{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)L(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),L(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),L(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),L(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&L(this.autoClosingPairsCloseSingleChar,t.close,t)}}function L(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class w{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new C(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new C({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new C({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:w.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:w.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function S(e){return 0!==(3&e)}var x=n(1674);let E,N,T;function A(){return E||(E=new TextDecoder("UTF-16LE")),E}function I(){return T||(T=s.cm()?A():(N||(N=new TextDecoder("UTF-16BE")),N)),T}function O(e,t,n){const r=new Uint16Array(e.buffer,t,n);return n>0&&(65279===r[0]||65534===r[0])?function(e,t,n){const r=[];let i=0;for(let s=0;s<n;s++){const n=x.$l(e,t);t+=2,r[i++]=String.fromCharCode(n)}return r.join("")}(e,t,n):A().decode(r)}class M{constructor(e,t,n,r,i,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=r,this.forwardRegex=i,this.reversedRegex=s,this._openSet=M._toSet(this.open),this._closeSet=M._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class R{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let o=0;o<t;o++)n[o]=o;const r=(e,t)=>{const[n,r]=e,[i,s]=t;return n===i||n===s||r===i||r===s},i=(e,r)=>{const i=Math.min(e,r),s=Math.max(e,r);for(let o=0;o<t;o++)n[o]===s&&(n[o]=i)};for(let o=0;o<t;o++){const s=e[o];for(let a=o+1;a<t;a++)r(s,e[a])&&i(n[o],n[a])}const s=[];for(let o=0;o<t;o++){const r=[],i=[];for(let s=0;s<t;s++)if(n[s]===o){const[t,n]=e[s];r.push(t),i.push(n)}r.length>0&&s.push({open:r,close:i})}return s}(t);this.brackets=n.map(((t,r)=>new M(e,r,t.open,t.close,function(e,t,n,r){let i=[];i=i.concat(e),i=i.concat(t);for(let s=0,o=i.length;s<o;s++)D(i[s],n,r,i);return i=F(i),i.sort(B),i.reverse(),V(i)}(t.open,t.close,n,r),function(e,t,n,r){let i=[];i=i.concat(e),i=i.concat(t);for(let s=0,o=i.length;s<o;s++)D(i[s],n,r,i);return i=F(i),i.sort(B),i.reverse(),V(i.map(z))}(t.open,t.close,n,r)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),V(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),V(t.map(z))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const r of this.brackets){for(const e of r.open)this.textIsBracket[e]=r,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of r.close)this.textIsBracket[e]=r,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function D(e,t,n,r){for(let i=0,s=t.length;i<s;i++){if(i===n)continue;const s=t[i];for(const t of s.open)t.indexOf(e)>=0&&r.push(t);for(const t of s.close)t.indexOf(e)>=0&&r.push(t)}}function B(e,t){return e.length-t.length}function F(e){if(e.length<=1)return e;const t=[],n=new Set;for(const r of e)n.has(r)||(t.push(r),n.add(r));return t}function P(e){const t=/^[\w ]+$/.test(e);return e=c.bm(e),t?`\\b${e}\\b`:e}function V(e,t){const n=`(${e.map(P).join(")|(")})`;return c.OS(n,!0,t)}const z=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let r=e.length-1;r>=0;r--)t[n++]=e.charCodeAt(r);return I().decode(t)}(e)),t}}();class j{static _findPrevBracketInText(e,t,n,r){const i=n.match(e);if(!i)return null;const s=n.length-(i.index||0),o=i[0].length,a=r+s;return new m.Q(t,a-o+1,t,a+1)}static findPrevBracketInRange(e,t,n,r,i){const s=z(n).substring(n.length-i,n.length-r);return this._findPrevBracketInText(e,t,s,r)}static findNextBracketInText(e,t,n,r){const i=n.match(e);if(!i)return null;const s=i.index||0,o=i[0].length;if(0===o)return null;const a=r+s;return new m.Q(t,a+1,t,a+1+o)}static findNextBracketInRange(e,t,n,r,i){const s=n.substring(r,i);return this.findNextBracketInText(e,t,s,r)}}class q{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,o.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const r=t.findTokenIndexAtOffset(n-1);if(S(t.getStandardTokenType(r)))return null;const i=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,n-1)+e,o=j.findPrevBracketInRange(i,1,s,0,s.length);if(!o)return null;const a=s.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function W(e){return e.global&&(e.lastIndex=0),!0}class U{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&W(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&W(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&W(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&W(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class ${constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=$._createOpenBracketRegExp(e[0]),n=$._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,r){if(e>=3)for(let i=0,s=this._regExpRules.length;i<s;i++){const e=this._regExpRules[i];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:r},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&r.length>0)for(let i=0,s=this._brackets.length;i<s;i++){const e=this._brackets[i];if(e.openRegExp.test(n)&&e.closeRegExp.test(r))return{indentAction:_.IndentOutdent}}if(e>=2&&n.length>0)for(let i=0,s=this._brackets.length;i<s;i++){if(this._brackets[i].openRegExp.test(n))return{indentAction:_.Indent}}return null}static _createOpenBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",$._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,$._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var H=n(3591),K=n(4001),G=n(4621),Q=n(3941),J=n(1788);class X{constructor(e,t){this.languageId=e;const n=t.brackets?Y(t.brackets):[],r=new J.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),i=new J.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[o,a]of n){const e=r.get(o),t=i.get(a);e.closing.add(t.info),t.opening.add(e.info)}const s=t.colorizedBracketPairs?Y(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of s){const e=r.get(o),t=i.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...i.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return V(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function Y(e){return e.filter((([e,t])=>""!==e&&""!==t))}class Z{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends Z{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends Z{constructor(e,t,n,r){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=r,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},re=function(e,t){return function(n,r){t(n,r,e)}};class ie{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const se=(0,H.u1)("languageConfigurationService");let oe=class extends i.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new ge),this.onDidChangeEmitter=this._register(new r.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(ae));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),r=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new ie(void 0));else for(const n of r)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new ie(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new ie(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,r){let i=t.getLanguageConfiguration(e);if(!i){if(!r.isRegisteredLanguageId(e))return new fe(e,{});i=new fe(e,{})}const s=function(e,t){const n=t.getValue(ae.brackets,{overrideIdentifier:e}),r=t.getValue(ae.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(r)}}(i.languageId,n),o=he([i.underlyingConfig,s]);return new fe(i.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};oe=ne([re(0,K.pG),re(1,k.L)],oe);const ae={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class ce{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new ue(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,i.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new fe(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(ue.cmp),he(this._entries.map((e=>e.configuration))))}}function he(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class ue{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class de{constructor(e){this.languageId=e}}class ge extends i.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(Q.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let r=this._entries.get(e);r||(r=new ce(e),this._entries.set(e,r));const s=r.register(t,n);return this._onDidChange.fire(new de(e)),(0,i.s)((()=>{s.dispose(),this._onDidChange.fire(new de(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class fe{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new $(this.underlyingConfig):null,this.comments=fe._handleComments(this.underlyingConfig),this.characterPair=new w(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||v.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new U(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new X(e,this.underlyingConfig)}getWordDefinition(){return(0,v.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new R(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new q(this.brackets)),this._electricCharacter}onEnter(e,t,n,r){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,r):null}getAutoClosingPairs(){return new y(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,r]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=r}return n}}(0,G.v)(se,oe,1);var me=n(6223);class pe{constructor(e,t,n,r){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=r}}class be{constructor(e,t,n,r,i,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=r,this.nestingLevelOfEqualBracketType=i,this.bracketPairNode=s}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class _e extends be{constructor(e,t,n,r,i,s,o){super(e,t,n,r,i,s),this.minVisibleColumnIndentation=o}}var ke=n(973);function ve(e){return 0===e}const Ce=2**26;function ye(e,t){return e*Ce+t}function Le(e){const t=e,n=Math.floor(t/Ce),r=t-n*Ce;return new ke.W(n,r)}function we(e,t){let n=e+t;return t>=Ce&&(n-=e%Ce),n}function Se(e,t){return e.reduce(((e,n)=>we(e,t(n))),0)}function xe(e,t){return e===t}function Ee(e,t){const n=e,r=t;if(r-n<=0)return 0;const i=Math.floor(n/Ce),s=Math.floor(r/Ce),o=r-s*Ce;if(i===s){return ye(0,o-(n-i*Ce))}return ye(s-i,o)}function Ne(e,t){return e<t}function Te(e,t){return e<=t}function Ae(e,t){return e>=t}function Ie(e){return ye(e.lineNumber-1,e.column-1)}function Oe(e,t){const n=e,r=Math.floor(n/Ce),i=n-r*Ce,s=t,o=Math.floor(s/Ce),a=s-o*Ce;return new m.Q(r+1,i+1,o+1,a+1)}class Me{static fromModelContentChanges(e){return e.map((e=>{const t=m.Q.lift(e.range);return new Me(Ie(t.getStartPosition()),Ie(t.getEndPosition()),function(e){const t=(0,c.uz)(e);return ye(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${Le(this.startOffset)}...${Le(this.endOffset)}) -> ${Le(this.newLength)}`}}class Re{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>De.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:Ee(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?ye(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):ye(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Le(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?ye(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):ye(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!Te(n,e))break;{this.nextEditIdx++;const e=Le(n),r=Le(this.translateOldToCur(t.endOffsetBeforeObj)),i=e.lineCount-r.lineCount;this.deltaOldToNewLineCount+=i;const s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,o=e.columnCount-r.columnCount;this.deltaOldToNewColumnCount=s+o,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class De{static from(e){return new De(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=Le(t),this.endOffsetAfterObj=Le(we(e,n)),this.offsetObj=Le(e)}}const Be=[];class Fe{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=Fe.cache[e];return n||(n=new Fe(e,t),Fe.cache[e]=n),n}return new Fe(e,t)}static{this.empty=Fe.create(0,Be)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let r=n>>5;if(0===r){const e=1<<n|this.items;return e===this.items?this:Fe.create(e,this.additionalItems)}r--;const i=this.additionalItems.slice(0);for(;i.length<r;)i.push(0);return i[r]|=1<<(31&n),Fe.create(this.items,i)}merge(e){const t=this.items|e.items;if(this.additionalItems===Be&&e.additionalItems===Be)return t===this.items?this:t===e.items?e:Fe.create(t,Be);const n=[];for(let r=0;r<Math.max(this.additionalItems.length,e.additionalItems.length);r++){const t=this.additionalItems[r]||0,i=e.additionalItems[r]||0;n.push(t|i)}return Fe.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const Pe={getKey:e=>e};class Ve{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class ze{get length(){return this._length}constructor(e){this._length=e}}class je extends ze{static create(e,t,n){let r=e.length;return t&&(r=we(r,t.length)),n&&(r=we(r,n.length)),new je(r,e,t,n,t?t.missingOpeningBracketIds:Fe.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,r,i){super(e),this.openingBracket=t,this.child=n,this.closingBracket=r,this.missingOpeningBracketIds=i}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new je(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(we(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class qe extends ze{static create23(e,t,n,r=!1){let i=e.length,s=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(i=we(i,t.length),s=s.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");i=we(i,n.length),s=s.merge(n.missingOpeningBracketIds)}return r?new Ue(i,e.listHeight+1,e,t,n,s):new We(i,e.listHeight+1,e,t,n,s)}static getEmpty(){return new He(0,0,[],Fe.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let r=1;r<e;r++){const e=this.getChild(r);t=we(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,r=e;for(let i=0;i<this.childrenLength;i++){const e=this.getChild(i);e&&(n=Math.min(n,e.computeMinIndentation(r,t)),r=we(r,e.length))}return this.cachedMinIndentation=n,n}}class We extends qe{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,r,i,s){super(e,t,s),this._item1=n,this._item2=r,this._item3=i}deepClone(){return new We(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class Ue extends We{toMutable(){return new We(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class $e extends qe{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,r){super(e,t,r),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new $e(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class He extends $e{toMutable(){return new $e(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const Ke=[];class Ge extends ze{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return Ke}deepClone(){return this}}class Qe extends Ge{get kind(){return 0}get missingOpeningBracketIds(){return Fe.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=Le(e),r=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,i=(s=we(e,this.length),Math.floor(s/Ce)+1);var s;let o=Number.MAX_SAFE_INTEGER;for(let a=r;a<=i;a++){const e=t.getLineFirstNonWhitespaceColumn(a),n=t.getLineContent(a);if(0===e)continue;const r=d.visibleColumnFromColumn(n,e,t.getOptions().tabSize);o=Math.min(o,r)}return o}}class Je extends Ge{static create(e,t,n){return new Je(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return Fe.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Xe extends Ge{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Ye=n(5982);class Ze{constructor(e,t,n,r,i){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=r,this.astNode=i}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return ye(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=we(this._offset,e);const t=Le(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=we(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const r=this.lineTokens,i=r.getCount();let s=null;if(this.lineTokenOffset<i){const o=r.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<i&&o===r.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const a=0===Ye.x.getTokenType(o),l=Ye.x.containsBalancedBrackets(o),c=r.getEndOffset(this.lineTokenOffset);if(l&&a&&this.lineCharOffset<c){const e=r.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,c),n=this.bracketTokens.getSingleLanguageBracketTokens(e),i=n.regExpGlobal;if(i){i.lastIndex=0;const e=i.exec(t);e&&(s=n.getToken(e[0]),s&&(this.lineCharOffset+=e.index))}}if(n+=c-this.lineCharOffset,s){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=s;break}return this.lineCharOffset+=s.length,s}this.lineTokenOffset++,this.lineCharOffset=c}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const r=(i=e,s=t,o=this.lineIdx,a=this.lineCharOffset,i!==o?ye(o-i,a):ye(0,a-s));var i,s,o,a;return new Ze(r,0,-1,Fe.getEmpty(),new Qe(r))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),r=n?new RegExp(n+"|\n","gi"):null,i=[];let s,o=0,a=0,l=0,c=0;const h=[];for(let g=0;g<60;g++)h.push(new Ze(ye(0,g),0,-1,Fe.getEmpty(),new Qe(ye(0,g))));const u=[];for(let g=0;g<60;g++)u.push(new Ze(ye(1,g),0,-1,Fe.getEmpty(),new Qe(ye(1,g))));if(r)for(r.lastIndex=0;null!==(s=r.exec(e));){const e=s.index,n=s[0];if("\n"===n)o++,a=e+1;else{if(l!==e){let t;if(c===o){const n=e-l;if(n<h.length)t=h[n];else{const e=ye(0,n);t=new Ze(e,0,-1,Fe.getEmpty(),new Qe(e))}}else{const n=o-c,r=e-a;if(1===n&&r<u.length)t=u[r];else{const e=ye(n,r);t=new Ze(e,0,-1,Fe.getEmpty(),new Qe(e))}}i.push(t)}i.push(t.getToken(n)),l=e+n.length,c=o}}const d=e.length;if(l!==d){const e=c===o?ye(0,d-l):ye(o-c,d-a);i.push(new Ze(e,0,-1,Fe.getEmpty(),new Qe(e)))}this.length=ye(o,d-a),this.tokens=i}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class rt{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const r=new Map;for(const i of e.bracketsNew.openingBrackets){const e=ye(0,i.bracketText.length),t=n(i),s=Fe.getEmpty().add(t,Pe);r.set(i.bracketText,new Ze(e,1,t,s,Je.create(e,i,s)))}for(const i of e.bracketsNew.closingBrackets){const e=ye(0,i.bracketText.length);let t=Fe.getEmpty();const s=i.getOpeningBrackets();for(const r of s)t=t.add(n(r),Pe);r.set(i.bracketText,new Ze(e,2,n(s[0]),t,Je.create(e,i,t)))}return new rt(r)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,c.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class it{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=rt.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function st(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const r=n>>1;for(let i=0;i<r;i++){const r=i<<1;e[i]=qe.create23(e[r],e[r+1],r+3===n?e[r+2]:null,t)}n=r}return qe.create23(e[0],e[1],n>=3?e[2]:null,t)}function ot(e,t){return Math.abs(e.listHeight-t.listHeight)}function at(e,t){return e.listHeight===t.listHeight?qe.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const r=[];let i;for(;;){if(t.listHeight===n.listHeight){i=t;break}if(4!==n.kind)throw new Error("unexpected");r.push(n),n=n.makeLastElementMutable()}for(let s=r.length-1;s>=0;s--){const e=r[s];i?e.childrenLength>=3?i=qe.create23(e.unappendChild(),i,null,!1):(e.appendChildOfSameHeight(i),i=void 0):e.handleChildrenChanged()}return i?qe.create23(e,i,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const r=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");r.push(n),n=n.makeFirstElementMutable()}let i=t;for(let s=r.length-1;s>=0;s--){const e=r[s];i?e.childrenLength>=3?i=qe.create23(i,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(i),i=void 0):e.handleChildrenChanged()}return i?qe.create23(i,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Ne(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=ht(this.nextNodes);if(!n)return;const r=ht(this.offsets);if(Ne(e,r))return;if(Ne(r,e))if(we(r,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ct(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(r),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ct(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(r),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=ht(this.offsets),t=ht(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=ht(this.nextNodes),r=ct(n,this.idxs[this.idxs.length-1]);if(-1!==r){this.nextNodes.push(n.getChild(r)),this.offsets.push(we(e,t.length)),this.idxs[this.idxs.length-1]=r;break}this.idxs.pop()}}}function ct(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function ht(e){return e.length>0?e[e.length-1]:void 0}function ut(e,t,n,r){return new dt(e,t,n,r).parseDocument()}class dt{constructor(e,t,n,r){if(this.tokenizer=e,this.createImmutableLists=r,this._itemsConstructed=0,this._itemsFromCache=0,n&&r)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new Re(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(Fe.getEmpty(),0);return e||(e=qe.getEmpty()),e}parseList(e,t){const n=[];for(;;){let r=this.tryReadChildFromCache(e);if(!r){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;r=this.parseChild(e,t+1)}4===r.kind&&0===r.childrenLength||n.push(r)}const r=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,r=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===r;)t++;return t-n>=2?st(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let r=n(),i=n();if(!i)return r;for(let s=n();s;s=n())ot(r,i)<=ot(i,s)?(r=at(r,i),i=s):i=at(i,s);return at(r,i)}(n):st(n,this.createImmutableLists);return r}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!ve(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Ne(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Xe(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Qe(n.length);const r=e.merge(n.bracketIds),i=this.parseList(r,t+1),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===n.bracketId||s.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),je.create(n.astNode,i,s.astNode)):je.create(n.astNode,i,null)}default:throw new Error("unexpected")}}}function gt(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new o.j3(mt(e)),r=mt(t);r.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let i=n.dequeue();function s(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return i&&e.unshift(i),e}const t=[];for(;i&&!ve(e);){const[r,s]=i.splitAt(e);t.push(r),e=Ee(r.lengthAfter,e),i=s??n.dequeue()}return ve(e)||t.push(new ft(!1,e,e)),t}const a=[];function l(e,t,n){if(a.length>0&&xe(a[a.length-1].endOffset,e)){const e=a[a.length-1];a[a.length-1]=new Me(e.startOffset,t,we(e.newLength,n))}else a.push({startOffset:e,endOffset:t,newLength:n})}let c=0;for(const o of r){const e=s(o.lengthBefore);if(o.modified){const t=we(c,Se(e,(e=>e.lengthBefore)));l(c,t,o.lengthAfter),c=t}else for(const t of e){const e=c;c=we(c,t.lengthBefore),t.modified&&l(e,c,t.lengthAfter)}}return a}class ft{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=Ee(e,this.lengthAfter);return xe(t,0)?[this,void 0]:this.modified?[new ft(this.modified,this.lengthBefore,e),new ft(this.modified,0,t)]:[new ft(this.modified,e,e),new ft(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${Le(this.lengthBefore)} -> ${Le(this.lengthAfter)}`}}function mt(e){const t=[];let n=0;for(const r of e){const e=Ee(n,r.startOffset);ve(e)||t.push(new ft(!1,e,e));const i=Ee(r.startOffset,r.endOffset);t.push(new ft(!0,i,r.newLength)),n=r.endOffset}return t}class pt extends i.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new r.vl,this.denseKeyProvider=new Ve,this.brackets=new it(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=ut(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new Me(ye(e.fromLineNumber-1,0),ye(e.toLineNumber,0),ye(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=Me.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=gt(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=gt(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const r=t;return ut(new et(this.textModel,this.brackets),e,r,n)}getBracketsInRange(e,t){this.flushQueue();const n=ye(e.startLineNumber-1,e.startColumn-1),r=ye(e.endLineNumber-1,e.endColumn-1);return new o.c1((e=>{const i=this.initialAstWithoutTokens||this.astWithTokens;kt(i,0,i.length,n,r,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Ie(e.getStartPosition()),r=Ie(e.getEndPosition());return new o.c1((e=>{const i=this.initialAstWithoutTokens||this.astWithTokens,s=new vt(e,t,this.textModel);Ct(i,0,i.length,n,r,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return _t(t,0,t.length,Ie(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return bt(t,0,t.length,Ie(e))}}function bt(e,t,n,r){if(4===e.kind||2===e.kind){const i=[];for(const r of e.children)n=we(t,r.length),i.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=i.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:s}=i[t];if(Ne(n,r)){const i=bt(e.children[t],n,s,r);if(i)return i}}return null}if(3===e.kind)return null;if(1===e.kind){const r=Oe(t,n);return{bracketInfo:e.bracketInfo,range:r}}return null}function _t(e,t,n,r){if(4===e.kind||2===e.kind){for(const i of e.children){if(Ne(r,n=we(t,i.length))){const e=_t(i,t,n,r);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const r=Oe(t,n);return{bracketInfo:e.bracketInfo,range:r}}return null}function kt(e,t,n,r,i,s,o,a,l,c,h=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h<a;h++){const a=e.getChild(h);if(a){if(n=we(t,a.length),Te(t,i)&&Ae(n,r)){if(Ae(n,i)){e=a;continue e}if(!kt(a,t,n,r,i,s,o,0,l,c))return!1}t=n}}return!0}case 2:{const h=!c||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let u=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),u=t,h&&(t++,l.set(e.openingBracket.text,t))}const d=e.childrenLength;for(let g=0;g<d;g++){const d=e.getChild(g);if(d){if(n=we(t,d.length),Te(t,i)&&Ae(n,r)){if(Ae(n,i)&&1!==d.kind){e=d,h?(o++,a=u+1):a=u;continue e}if(h||1!==d.kind||!e.closingBracket){if(!kt(d,t,n,r,i,s,h?o+1:o,h?u+1:u,l,c,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,u),!0}case 3:{const e=Oe(t,n);return s(new pe(e,o-1,0,!0))}case 1:{const e=Oe(t,n);return s(new pe(e,o-1,a-1,h))}case 0:return!0}}class vt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function Ct(e,t,n,r,i,s,o,a){if(o>200)return!0;let l=!0;if(2===e.kind){let c=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),c=t,t++,a.set(e.openingBracket.text,t)}const h=we(t,e.openingBracket.length);let u=-1;if(s.includeMinIndentation&&(u=e.computeMinIndentation(t,s.textModel)),l=s.push(new _e(Oe(t,n),Oe(t,h),e.closingBracket?Oe(we(h,e.child?.length||0),n):void 0,o,c,e,u)),t=h,l&&e.child){const c=e.child;if(n=we(t,c.length),Te(t,i)&&Ae(n,r)&&(l=Ct(c,t,n,r,i,s,o+1,a),!l))return!1}a?.set(e.openingBracket.text,c)}else{let n=t;for(const t of e.children){const e=n;if(n=we(n,t.length),Te(e,i)&&Te(r,n)&&(l=Ct(t,e,n,r,i,s,o,a),!l))return!1}}return l}class yt extends i.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new i.HE),this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new i.Cm;this.bracketPairsTree.value=(e=n.add(new pt(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||o.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||o.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||o.c1.empty}findMatchingBracketUp(e,t,n){const r=this.textModel.validatePosition(t),i=this.textModel.getLanguageIdAtPosition(r.lineNumber,r.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const r=this.getBracketPairsInRange(m.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return r?r.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(i).brackets;if(!s)return null;const o=s.textIsBracket[t];return o?St(this._findMatchingBracketUp(o,r,Lt(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(m.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,o.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),m.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=Lt(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,r){const i=t.getCount(),s=t.getLanguageId(r);let o=Math.max(0,e.column-1-n.maxBracketLength);for(let l=r-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=o)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=r+1;l<i;l++){const e=t.getStartOffset(l);if(e>=a)break;if(S(t.getStandardTokenType(l))||t.getLanguageId(l)!==s){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const n=e.lineNumber,r=this.textModel.tokenization.getLineTokens(n),i=this.textModel.getLineContent(n),s=r.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId(s)).brackets;if(o&&!S(r.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,r,o,s),c=null;for(;;){const r=j.findNextBracketInRange(o.forwardRegex,n,i,a,l);if(!r)break;if(r.startColumn<=e.column&&e.column<=r.endColumn){const e=i.substring(r.startColumn-1,r.endColumn-1).toLowerCase(),n=this._matchFoundBracket(r,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(n){if(n instanceof wt)return null;c=n}}a=r.endColumn-1}if(c)return c}if(s>0&&r.getStartOffset(s)===e.column-1){const o=s-1,a=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId(o)).brackets;if(a&&!S(r.getStandardTokenType(o))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,r,a,o),c=j.findPrevBracketInRange(a.reversedRegex,n,i,s,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),n=this._matchFoundBracket(c,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n)return n instanceof wt?null:n}}}return null}_matchFoundBracket(e,t,n,r){if(!t)return null;const i=n?this._findMatchingBracketDown(t,e.getEndPosition(),r):this._findMatchingBracketUp(t,e.getStartPosition(),r);return i?i instanceof wt?i:[e,i]:null}_findMatchingBracketUp(e,t,n){const r=e.languageId,i=e.reversedRegex;let s=-1,o=0;const a=(t,r,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return wt.INSTANCE;const c=j.findPrevBracketInRange(i,t,r,a,l);if(!c)break;const h=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?s++:e.isClose(h)&&s--,0===s)return c;l=c.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),i=this.textModel.getLineContent(l);let s=n-1,o=i.length,c=i.length;l===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,c=t.column-1);let h=!0;for(;s>=0;s--){const t=e.getLanguageId(s)===r&&!S(e.getStandardTokenType(s));if(t)h?o=e.getStartOffset(s):(o=e.getStartOffset(s),c=e.getEndOffset(s));else if(h&&o!==c){const e=a(l,i,o,c);if(e)return e}h=t}if(h&&o!==c){const e=a(l,i,o,c);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const r=e.languageId,i=e.forwardRegex;let s=1,o=0;const a=(t,r,a,l)=>{for(;;){if(n&&++o%100===0&&!n())return wt.INSTANCE;const c=j.findNextBracketInRange(i,t,r,a,l);if(!c)break;const h=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?s++:e.isClose(h)&&s--,0===s)return c;a=c.endColumn-1}return null},l=this.textModel.getLineCount();for(let c=t.lineNumber;c<=l;c++){const e=this.textModel.tokenization.getLineTokens(c),n=e.getCount(),i=this.textModel.getLineContent(c);let s=0,o=0,l=0;c===t.lineNumber&&(s=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let h=!0;for(;s<n;s++){const t=e.getLanguageId(s)===r&&!S(e.getStandardTokenType(s));if(t)h||(o=e.getStartOffset(s)),l=e.getEndOffset(s);else if(h&&o!==l){const e=a(c,i,o,l);if(e)return e}h=t}if(h&&o!==l){const e=a(c,i,o,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,r=null,i=null;for(let s=t.lineNumber;s>=1;s--){const e=this.textModel.tokenization.getLineTokens(s),o=e.getCount(),a=this.textModel.getLineContent(s);let l=o-1,c=a.length,h=a.length;if(s===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const s=e.getLanguageId(l);n!==s&&(n=s,r=this.languageConfigurationService.getLanguageConfiguration(n).brackets,i=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let u=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(r&&i&&u&&c!==h){const e=j.findPrevBracketInRange(r.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(i,e);u=!1}n=t,r=this.languageConfigurationService.getLanguageConfiguration(n).brackets,i=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const o=!!r&&!S(e.getStandardTokenType(l));if(o)u?c=e.getStartOffset(l):(c=e.getStartOffset(l),h=e.getEndOffset(l));else if(i&&r&&u&&c!==h){const e=j.findPrevBracketInRange(r.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(i,e)}u=o}if(i&&r&&u&&c!==h){const e=j.findPrevBracketInRange(r.reversedRegex,s,a,c,h);if(e)return this._toFoundBracket(i,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let r=null,i=null,s=null;for(let o=t.lineNumber;o<=n;o++){const e=this.textModel.tokenization.getLineTokens(o),n=e.getCount(),a=this.textModel.getLineContent(o);let l=0,c=0,h=0;if(o===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const n=e.getLanguageId(l);r!==n&&(r=n,i=this.languageConfigurationService.getLanguageConfiguration(r).brackets,s=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew)}let u=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(r!==t){if(s&&i&&u&&c!==h){const e=j.findNextBracketInRange(i.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e);u=!1}r=t,i=this.languageConfigurationService.getLanguageConfiguration(r).brackets,s=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew}const n=!!i&&!S(e.getStandardTokenType(l));if(n)u||(c=e.getStartOffset(l)),h=e.getEndOffset(l);else if(s&&i&&u&&c!==h){const e=j.findNextBracketInRange(i.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e)}u=n}if(s&&i&&u&&c!==h){const e=j.findNextBracketInRange(i.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(s,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=m.Q.fromPositions(n),t=this.getBracketPairsInRange(m.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const r=Lt(t),i=this.textModel.getLineCount(),s=new Map;let o=[];const a=(e,t)=>{if(!s.has(e)){const n=[];for(let e=0,r=t?t.brackets.length:0;e<r;e++)n[e]=0;s.set(e,n)}o=s.get(e)};let l=0;const c=(e,t,n,i,s)=>{for(;;){if(r&&++l%100===0&&!r())return wt.INSTANCE;const a=j.findNextBracketInRange(e.forwardRegex,t,n,i,s);if(!a)break;const c=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[c];if(h&&(h.isOpen(c)?o[h.index]++:h.isClose(c)&&o[h.index]--,-1===o[h.index]))return this._matchFoundBracket(a,h,!1,r);i=a.endColumn-1}return null};let h=null,u=null;for(let d=n.lineNumber;d<=i;d++){const e=this.textModel.tokenization.getLineTokens(d),t=e.getCount(),r=this.textModel.getLineContent(d);let i=0,s=0,o=0;if(d===n.lineNumber){i=e.findTokenIndexAtOffset(n.column-1),s=n.column-1,o=n.column-1;const t=e.getLanguageId(i);h!==t&&(h=t,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,u))}let l=!0;for(;i<t;i++){const t=e.getLanguageId(i);if(h!==t){if(u&&l&&s!==o){const e=c(u,d,r,s,o);if(e)return St(e);l=!1}h=t,u=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,u)}const n=!!u&&!S(e.getStandardTokenType(i));if(n)l||(s=e.getStartOffset(i)),o=e.getEndOffset(i);else if(u&&l&&s!==o){const e=c(u,d,r,s,o);if(e)return St(e)}l=n}if(u&&l&&s!==o){const e=c(u,d,r,s,o);if(e)return St(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const r=e.getBracketInfo(n);return r?{range:t,bracketInfo:r}:null}}function Lt(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class wt{static{this.INSTANCE=new wt}constructor(){this._searchCanceledBrand=void 0}}function St(e){return e instanceof wt?null:e}var xt=n(7119),Et=n(5724);class Nt extends i.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new Tt,this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,r){if(r)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new m.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class Tt{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,Et.zy)(((e,t)=>{const n=[xt.sN,xt.lQ,xt.ss,xt.l5,xt.sH,xt.zp],r=new Tt;t.addRule(`.monaco-editor .${r.unexpectedClosingBracketClassName} { color: ${e.getColor(xt.s7)}; }`);const i=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let s=0;s<30;s++){const e=i[s%i.length];t.addRule(`.monaco-editor .${r.getInlineClassNameOfLevel(s)} { color: ${e}; }`)}}));var At=n(8209);function It(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Ot{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,r){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=r}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${It(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${It(this.oldText)}")`:`(replace@${this.oldPosition} "${It(this.oldText)}" with "${It(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const r=t.length;x.Sw(e,r,n),n+=4;for(let i=0;i<r;i++)x.gN(e,t.charCodeAt(i),n),n+=2;return n}static _readString(e,t){const n=x.bb(e,t);return O(e,t+=4,n)}writeSize(){return 8+Ot._writeStringSize(this.oldText)+Ot._writeStringSize(this.newText)}write(e,t){return x.Sw(e,this.oldPosition,t),t+=4,x.Sw(e,this.newPosition,t),t+=4,t=Ot._writeString(e,this.oldText,t),t=Ot._writeString(e,this.newText,t)}static read(e,t,n){const r=x.bb(e,t);t+=4;const i=x.bb(e,t);t+=4;const s=Ot._readString(e,t);t+=Ot._writeStringSize(s);const o=Ot._readString(e,t);return t+=Ot._writeStringSize(o),n.push(new Ot(r,s,i,o)),t}}class Mt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),r=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(r),r=this._getCurr(++t);continue}if(null===r){this._acceptPrev(n),n=this._getPrev(++e);continue}if(r.oldEnd<=n.newPosition){this._acceptCurr(r),r=this._getCurr(++t);continue}if(n.newEnd<=r.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(r.oldPosition<n.newPosition){const[e,t]=Mt._splitCurr(r,n.newPosition-r.oldPosition);this._acceptCurr(e),r=t;continue}if(n.newPosition<r.oldPosition){const[e,t]=Mt._splitPrev(n,r.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let i,s;if(r.oldEnd===n.newEnd)i=n,s=r,n=this._getPrev(++e),r=this._getCurr(++t);else if(r.oldEnd<n.newEnd){const[e,o]=Mt._splitPrev(n,r.oldLength);i=e,s=r,n=o,r=this._getCurr(++t)}else{const[t,o]=Mt._splitCurr(r,n.newLength);i=n,s=t,n=this._getPrev(++e),r=o}this._result[this._resultLen++]=new Ot(i.oldPosition,i.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=i.newLength-i.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const i=Mt._merge(this._result);return Mt._removeNoOps(i)}_acceptCurr(e){this._result[this._resultLen++]=Mt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=Mt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Ot(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Ot(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),r=e.newText.substr(t);return[new Ot(e.oldPosition,e.oldText,e.newPosition,n),new Ot(e.oldEnd,"",e.newPosition+t,r)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),r=e.oldText.substr(t);return[new Ot(e.oldPosition,n,e.newPosition,e.newText),new Ot(e.oldPosition+t,r,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,r=e[0];for(let i=1;i<e.length;i++){const s=e[i];r.oldEnd===s.oldPosition?r=new Ot(r.oldPosition,r.oldText+s.oldText,r.newPosition,r.newText+s.newText):(t[n++]=r,r=s)}return t[n++]=r,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let r=0;r<e.length;r++){const i=e[r];i.oldText!==i.newText&&(t[n++]=i)}return t}}var Rt=n(9403);function Dt(e){return e.toString()}class Bt{static create(e,t){const n=e.getAlternativeVersionId(),r=Vt(e);return new Bt(n,n,r,r,t,t,[])}constructor(e,t,n,r,i,s,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=r,this.beforeCursorState=i,this.afterCursorState=s,this.changes=o}append(e,t,n,r,i){var s,o;t.length>0&&(this.changes=(s=this.changes,o=t,null===s||0===s.length?o:new Mt(s,o).compress())),this.afterEOL=n,this.afterVersionId=r,this.afterCursorState=i}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(x.Sw(e,t?t.length:0,n),n+=4,t)for(const r of t)x.Sw(e,r.selectionStartLineNumber,n),n+=4,x.Sw(e,r.selectionStartColumn,n),n+=4,x.Sw(e,r.positionLineNumber,n),n+=4,x.Sw(e,r.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const r=x.bb(e,t);t+=4;for(let i=0;i<r;i++){const r=x.bb(e,t);t+=4;const i=x.bb(e,t);t+=4;const s=x.bb(e,t);t+=4;const o=x.bb(e,t);t+=4,n.push(new p.L(r,i,s,o))}return t}serialize(){let e=10+Bt._writeSelectionsSize(this.beforeCursorState)+Bt._writeSelectionsSize(this.afterCursorState)+4;for(const r of this.changes)e+=r.writeSize();const t=new Uint8Array(e);let n=0;x.Sw(t,this.beforeVersionId,n),n+=4,x.Sw(t,this.afterVersionId,n),n+=4,x.Gs(t,this.beforeEOL,n),n+=1,x.Gs(t,this.afterEOL,n),n+=1,n=Bt._writeSelections(t,this.beforeCursorState,n),n=Bt._writeSelections(t,this.afterCursorState,n),x.Sw(t,this.changes.length,n),n+=4;for(const r of this.changes)n=r.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const r=x.bb(t,n);n+=4;const i=x.bb(t,n);n+=4;const s=x.pJ(t,n);n+=1;const o=x.pJ(t,n);n+=1;const a=[];n=Bt._readSelections(t,n,a);const l=[];n=Bt._readSelections(t,n,l);const c=x.bb(t,n);n+=4;const h=[];for(let u=0;u<c;u++)n=Ot.read(t,n,h);return new Bt(r,i,s,o,a,l,h)}}class Ft{get type(){return 0}get resource(){return h.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,r){this.label=e,this.code=t,this.model=n,this._data=Bt.create(n,r)}toString(){return(this._data instanceof Bt?this._data:Bt.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(h.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Bt}append(e,t,n,r,i){this._data instanceof Bt&&this._data.append(e,t,n,r,i)}close(){this._data instanceof Bt&&(this._data=this._data.serialize())}open(){this._data instanceof Bt||(this._data=Bt.deserialize(this._data))}undo(){if(h.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(h.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Bt&&(this._data=this._data.serialize());const e=Bt.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Bt&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Pt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const r of this._editStackElementsArr){const e=Dt(r.resource);this._editStackElementsMap.set(e,r)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Dt(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Dt(h.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Dt(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,r,i){const s=Dt(e.uri);this._editStackElementsMap.get(s).append(e,t,n,r,i)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=Dt(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,Rt.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function Vt(e){return"\n"===e.getEOL()?0:1}function zt(e){return!!e&&(e instanceof Ft||e instanceof Pt)}class jt{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);zt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);zt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(zt(n)&&n.canAppend(this._model))return n;const r=new Ft(At.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(r,t),r}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],Vt(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,r){const i=this._getOrCreateEditStackElement(e,r),s=this._model.applyEdits(t,!0),o=jt._computeCursorState(n,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),i.append(this._model,a.map((e=>e.textChange)),Vt(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var qt,Wt=n(6041);class Ut extends i.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(qt||(qt={}));class $t{constructor(e,t,n,r,i,s){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=r,this.forWrappedLinesAfterColumn=i,this.forWrappedLinesBeforeOrAtColumn=s,-1!==e===(-1!==t))throw new Error}}class Ht{constructor(e,t){this.top=e,this.endColumn=t}}class Kt extends Ut{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,r=0;const i=e.length;for(;r<i;){const i=e.charCodeAt(r);if(32===i)n++;else{if(9!==i)break;n=n-n%t+t}r++}return r===i?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const r=this.textModel.getLineCount();if(e<1||e>r)throw new l.D7("Illegal value for lineNumber");const i=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(i&&i.offSide);let o=-2,a=-1,c=-2,h=-1;const u=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===c){c=-1,h=-1;for(let t=e;t<r;t++){const e=this._computeIndentLevel(t);if(e>=0){c=t,h=e;break}}}};let d=-2,g=-1,f=-2,m=-1;const p=e=>{if(-2===d){d=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){d=t,g=e;break}}}if(-1!==f&&(-2===f||f<e-1)){f=-1,m=-1;for(let t=e;t<r;t++){const e=this._computeIndentLevel(t);if(e>=0){f=t,m=e;break}}}};let b=0,_=!0,k=0,v=!0,C=0,y=0;for(let l=0;_||v;l++){const i=e-l,o=e+l;l>1&&(i<1||i<t)&&(_=!1),l>1&&(o>r||o>n)&&(v=!1),l>5e4&&(_=!1,v=!1);let f=-1;if(_&&i>=1){const e=this._computeIndentLevel(i-1);e>=0?(c=i-1,h=e,f=Math.ceil(e/this.textModel.getOptions().indentSize)):(u(i),f=this._getIndentLevelForWhitespaceLine(s,a,h))}let L=-1;if(v&&o<=r){const e=this._computeIndentLevel(o-1);e>=0?(d=o-1,g=e,L=Math.ceil(e/this.textModel.getOptions().indentSize)):(p(o),L=this._getIndentLevelForWhitespaceLine(s,g,m))}if(0!==l){if(1===l){if(o<=r&&L>=0&&y+1===L){_=!1,b=o,k=o,C=L;continue}if(i>=1&&f>=0&&f-1===y){v=!1,b=i,k=i,C=f;continue}if(b=e,k=e,C=y,0===C)return{startLineNumber:b,endLineNumber:k,indent:C}}_&&(f>=C?b=i:_=!1),v&&(L>=C?k=o:v=!1)}else y=f}return{startLineNumber:b,endLineNumber:k,indent:C}}getLinesBracketGuides(e,t,n,r){const i=[];for(let c=e;c<=t;c++)i.push([]);const s=!0,o=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new m.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let a;if(n&&o.length>0){const r=(e<=n.lineNumber&&n.lineNumber<=t?o:this.textModel.bracketPairs.getBracketPairsInRange(m.Q.fromPositions(n)).toArray()).filter((e=>m.Q.strictContainsPosition(e.range,n)));a=(0,Wt.Uk)(r,(e=>s))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,h=new Gt;for(const u of o){if(!u.closingBracketRange)continue;const n=a&&u.range.equalsRange(a);if(!n&&!r.includeInactive)continue;const s=h.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,l)+(r.highlightActive&&n?" "+h.activeClassName:""),o=u.openingBracketRange.getStartPosition(),d=u.closingBracketRange.getStartPosition(),g=r.horizontalGuides===qt.Enabled||r.horizontalGuides===qt.EnabledForActive&&n;if(u.range.startLineNumber===u.range.endLineNumber){g&&i[u.range.startLineNumber-e].push(new $t(-1,u.openingBracketRange.getEndPosition().column,s,new Ht(!1,d.column),-1,-1));continue}const f=this.getVisibleColumnFromPosition(d),m=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),p=Math.min(m,f,u.minVisibleColumnIndentation+1);let b=!1;c.HG(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))<u.closingBracketRange.startColumn-1&&(b=!0);const _=Math.max(o.lineNumber,e),k=Math.min(d.lineNumber,t),v=b?1:0;for(let t=_;t<k+v;t++)i[t-e].push(new $t(p,-1,s,null,t===o.lineNumber?o.column:-1,t===d.lineNumber?d.column:-1));g&&(o.lineNumber>=e&&m>p&&i[o.lineNumber-e].push(new $t(p,-1,s,new Ht(!1,o.column),-1,-1)),d.lineNumber<=t&&f>p&&i[d.lineNumber-e].push(new $t(p,-1,s,new Ht(!b,d.column),-1,-1)))}for(const c of i)c.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return i}getVisibleColumnFromPosition(e){return d.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const r=this.textModel.getOptions(),i=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(i&&i.offSide),o=new Array(t-e+1);let a=-2,l=-1,c=-2,h=-1;for(let u=e;u<=t;u++){const t=u-e,i=this._computeIndentLevel(u-1);if(i>=0)a=u-1,l=i,o[t]=Math.ceil(i/r.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=u-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==c&&(-2===c||c<u-1)){c=-1,h=-1;for(let e=u;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){c=e,h=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(s,l,h)}}return o}_getIndentLevelForWhitespaceLine(e,t,n){const r=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/r.indentSize):t===n||e?Math.ceil(n/r.indentSize):1+Math.floor(n/r.indentSize)}}class Gt{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Qt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Jt(e,t,n,r,i){let s;for(i.spacesDiff=0,i.looksLikeAlignment=!1,s=0;s<t&&s<r;s++){if(e.charCodeAt(s)!==n.charCodeAt(s))break}let o=0,a=0;for(let d=s;d<t;d++){32===e.charCodeAt(d)?o++:a++}let l=0,c=0;for(let d=s;d<r;d++){32===n.charCodeAt(d)?l++:c++}if(o>0&&a>0)return;if(l>0&&c>0)return;const h=Math.abs(a-c),u=Math.abs(o-l);if(0===h)return i.spacesDiff=u,void(u>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(i.looksLikeAlignment=!0));u%h!==0||(i.spacesDiff=u/h)}function Xt(e,t,n){const r=Math.min(e.getLineCount(),1e4);let i=0,s=0,o="",a=0;const l=[2,4,6,8,3,5,7],c=[0,0,0,0,0,0,0,0,0],h=new Qt;for(let g=1;g<=r;g++){const r=e.getLineLength(g),l=e.getLineContent(g),u=r<=65536;let d=!1,f=0,m=0,p=0;for(let t=0,n=r;t<n;t++){const n=u?l.charCodeAt(t):e.getLineCharCode(g,t);if(9===n)p++;else{if(32!==n){d=!0,f=t;break}m++}}if(!d)continue;if(p>0?i++:m>1&&s++,Jt(o,a,l,f,h),h.looksLikeAlignment&&(!n||t!==h.spacesDiff))continue;const b=h.spacesDiff;b<=8&&c[b]++,o=l,a=f}let u=n;i!==s&&(u=i<s);let d=t;if(u){let e=u?0:.1*r;l.forEach((t=>{const n=c[t];n>e&&(e=n,d=t)})),4===d&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(d=2)}return{insertSpaces:u,tabSize:d}}function Yt(e){return(1&e.metadata)>>>0}function Zt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function sn(e){return(64&e.metadata)>>>6===1}function on(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function an(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class cn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Zt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),on(this,!1),an(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,r){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=r}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),on(this,null!==this.options.glyphMarginClassName),an(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const hn=new cn(null,0,0);hn.parent=hn,hn.left=hn,hn.right=hn,Zt(hn,0);class un{constructor(){this.root=hn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,r,i,s){return this.root===hn?[]:function(e,t,n,r,i,s,o){let a=e.root,l=0,c=0,h=0,u=0;const d=[];let g=0;for(;a!==hn;)if(en(a))tn(a.left,!1),tn(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!en(a.left)){if(c=l+a.maxEnd,c<t){tn(a,!0);continue}if(a.left!==hn){a=a.left;continue}}if(h=l+a.start,h>n)tn(a,!0);else{if(u=l+a.end,u>=t){a.setCachedOffsets(h,u,s);let e=!0;r&&a.ownerId&&a.ownerId!==r&&(e=!1),i&&nn(a)&&(e=!1),o&&!sn(a)&&(e=!1),e&&(d[g++]=a)}tn(a,!0),a.right===hn||en(a.right)||(l+=a.delta,a=a.right)}}return tn(e.root,!1),d}(this,e,t,n,r,i,s)}search(e,t,n,r){return this.root===hn?[]:function(e,t,n,r,i){let s=e.root,o=0,a=0,l=0;const c=[];let h=0;for(;s!==hn;){if(en(s)){tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),s=s.parent;continue}if(s.left!==hn&&!en(s.left)){s=s.left;continue}a=o+s.start,l=o+s.end,s.setCachedOffsets(a,l,r);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),n&&nn(s)&&(e=!1),i&&!sn(s)&&(e=!1),e&&(c[h++]=s),tn(s,!0),s.right===hn||en(s.right)||(o+=s.delta,s=s.right)}return tn(e.root,!1),c}(this,e,t,n,r)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const r=[];let i=0;for(;n!==hn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===hn||en(n.left)?(n.ownerId===t&&(r[i++]=n),tn(n,!0),n.right===hn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),r}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let r=0;for(;t!==hn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===hn||en(t.left)?t.right===hn||en(t.right)?(n[r++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){fn(this,e),this._normalizeDeltaIfNecessary()}delete(e){mn(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let r=0;for(;e!==this.root;)e===e.parent.right&&(r+=e.parent.delta),e=e.parent;const i=n.start+r,s=n.end+r;n.setCachedOffsets(i,s,t)}acceptReplace(e,t,n,r){const i=function(e,t,n){let r=e.root,i=0,s=0,o=0,a=0;const l=[];let c=0;for(;r!==hn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(i-=r.parent.delta),r=r.parent;else{if(!en(r.left)){if(s=i+r.maxEnd,s<t){tn(r,!0);continue}if(r.left!==hn){r=r.left;continue}}o=i+r.start,o>n?tn(r,!0):(a=i+r.end,a>=t&&(r.setCachedOffsets(o,a,0),l[c++]=r),tn(r,!0),r.right===hn||en(r.right)||(i+=r.delta,r=r.right))}return tn(e.root,!1),l}(this,e,e+t);for(let s=0,o=i.length;s<o;s++){mn(this,i[s])}this._normalizeDeltaIfNecessary(),function(e,t,n,r){let i=e.root,s=0,o=0,a=0;const l=r-(n-t);for(;i!==hn;)if(en(i))tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(s-=i.parent.delta),vn(i),i=i.parent;else{if(!en(i.left)){if(o=s+i.maxEnd,o<t){tn(i,!0);continue}if(i.left!==hn){i=i.left;continue}}a=s+i.start,a>n?(i.start+=l,i.end+=l,i.delta+=l,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(i,!0)):(tn(i,!0),i.right===hn||en(i.right)||(s+=i.delta,i=i.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let s=0,o=i.length;s<o;s++){const o=i[s];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,gn(o,e,e+t,n,r),o.maxEnd=o.end,fn(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==hn;)t.left===hn||en(t.left)?t.right===hn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,vn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function dn(e,t,n,r){return e<n||!(e>n)&&(1!==r&&(2===r||t))}function gn(e,t,n,r,i){const s=function(e){return(24&e.metadata)>>>3}(e),o=0===s||2===s,a=1===s||2===s,l=n-t,c=r,h=Math.min(l,c),u=e.start;let d=!1;const g=e.end;let f=!1;t<=u&&g<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,d=!0,e.end=t,f=!0);{const e=i?1:l>0?2:0;!d&&dn(u,o,t,e)&&(d=!0),!f&&dn(g,a,t,e)&&(f=!0)}if(h>0&&!i){const e=l>c?2:0;!d&&dn(u,o,t+h,e)&&(d=!0),!f&&dn(g,a,t+h,e)&&(f=!0)}{const r=i?1:0;!d&&dn(u,o,n,r)&&(e.start=t+c,d=!0),!f&&dn(g,a,n,r)&&(e.end=t+c,f=!0)}const m=c-l;d||(e.start=Math.max(0,u+m)),f||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function fn(e,t){if(e.root===hn)return t.parent=hn,t.left=hn,t.right=hn,Zt(t,0),e.root=t,e.root;!function(e,t){let n=0,r=e.root;const i=t.start,s=t.end;for(;;){if(yn(i,s,r.start+n,r.end+n)<0){if(r.left===hn){t.start-=n,t.end-=n,t.maxEnd-=n,r.left=t;break}r=r.left}else{if(r.right===hn){t.start-=n+r.delta,t.end-=n+r.delta,t.maxEnd-=n+r.delta,r.right=t;break}n+=r.delta,r=r.right}}t.parent=r,t.left=hn,t.right=hn,Zt(t,1)}(e,t),Cn(t.parent);let n=t;for(;n!==e.root&&1===Yt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Yt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,bn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),_n(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Yt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,_n(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),bn(e,n.parent.parent))}return Zt(e.root,0),t}function mn(e,t){let n,r;if(t.left===hn?(n=t.right,r=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===hn?(n=t.left,r=t):(r=function(e){for(;e.left!==hn;)e=e.left;return e}(t.right),n=r.right,n.start+=r.delta,n.end+=r.delta,n.delta+=r.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),r.start+=t.delta,r.end+=t.delta,r.delta=t.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0)),r===e.root)return e.root=n,Zt(n,0),t.detach(),pn(),vn(n),void(e.root.parent=hn);const i=1===Yt(r);if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?n.parent=r.parent:(r.parent===t?n.parent=r:n.parent=r.parent,r.left=t.left,r.right=t.right,r.parent=t.parent,Zt(r,Yt(t)),t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==hn&&(r.left.parent=r),r.right!==hn&&(r.right.parent=r)),t.detach(),i)return Cn(n.parent),r!==t&&(Cn(r),Cn(r.parent)),void pn();let s;for(Cn(n),Cn(n.parent),r!==t&&(Cn(r),Cn(r.parent));n!==e.root&&0===Yt(n);)n===n.parent.left?(s=n.parent.right,1===Yt(s)&&(Zt(s,0),Zt(n.parent,1),bn(e,n.parent),s=n.parent.right),0===Yt(s.left)&&0===Yt(s.right)?(Zt(s,1),n=n.parent):(0===Yt(s.right)&&(Zt(s.left,0),Zt(s,1),_n(e,s),s=n.parent.right),Zt(s,Yt(n.parent)),Zt(n.parent,0),Zt(s.right,0),bn(e,n.parent),n=e.root)):(s=n.parent.left,1===Yt(s)&&(Zt(s,0),Zt(n.parent,1),_n(e,n.parent),s=n.parent.left),0===Yt(s.left)&&0===Yt(s.right)?(Zt(s,1),n=n.parent):(0===Yt(s.left)&&(Zt(s.right,0),Zt(s,1),bn(e,s),s=n.parent.left),Zt(s,Yt(n.parent)),Zt(n.parent,0),Zt(s.left,0),_n(e,n.parent),n=e.root));Zt(n,0),pn()}function pn(){hn.parent=hn,hn.delta=0,hn.start=0,hn.end=0}function bn(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==hn&&(n.left.parent=t),n.parent=t.parent,t.parent===hn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,vn(t),vn(n)}function _n(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==hn&&(n.right.parent=t),n.parent=t.parent,t.parent===hn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,vn(t),vn(n)}function kn(e){let t=e.end;if(e.left!==hn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==hn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function vn(e){e.maxEnd=kn(e)}function Cn(e){for(;e!==hn;){const t=kn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function yn(e,t,n,r){return e===n?t-r:e-n}class Ln{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==wn)return Sn(this.right);let e=this;for(;e.parent!==wn&&e.parent.left!==e;)e=e.parent;return e.parent===wn?wn:e.parent}prev(){if(this.left!==wn)return xn(this.left);let e=this;for(;e.parent!==wn&&e.parent.right!==e;)e=e.parent;return e.parent===wn?wn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const wn=new Ln(null,0);function Sn(e){for(;e.left!==wn;)e=e.left;return e}function xn(e){for(;e.right!==wn;)e=e.right;return e}function En(e){return e===wn?0:e.size_left+e.piece.length+En(e.right)}function Nn(e){return e===wn?0:e.lf_left+e.piece.lineFeedCnt+Nn(e.right)}function Tn(){wn.parent=wn}function An(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==wn&&(n.left.parent=t),n.parent=t.parent,t.parent===wn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function In(e,t){const n=t.left;t.left=n.right,n.right!==wn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===wn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function On(e,t){let n,r;if(t.left===wn?(r=t,n=r.right):t.right===wn?(r=t,n=r.left):(r=Sn(t.right),n=r.right),r===e.root)return e.root=n,n.color=0,t.detach(),Tn(),void(e.root.parent=wn);const i=1===r.color;if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?(n.parent=r.parent,Dn(e,n)):(r.parent===t?n.parent=r:n.parent=r.parent,Dn(e,n),r.left=t.left,r.right=t.right,r.parent=t.parent,r.color=t.color,t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==wn&&(r.left.parent=r),r.right!==wn&&(r.right.parent=r),r.size_left=t.size_left,r.lf_left=t.lf_left,Dn(e,r)),t.detach(),n.parent.left===n){const t=En(n),r=Nn(n);if(t!==n.parent.size_left||r!==n.parent.lf_left){const i=t-n.parent.size_left,s=r-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=r,Rn(e,n.parent,i,s)}}if(Dn(e,n.parent),i)return void Tn();let s;for(;n!==e.root&&0===n.color;)n===n.parent.left?(s=n.parent.right,1===s.color&&(s.color=0,n.parent.color=1,An(e,n.parent),s=n.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.right.color&&(s.left.color=0,s.color=1,In(e,s),s=n.parent.right),s.color=n.parent.color,n.parent.color=0,s.right.color=0,An(e,n.parent),n=e.root)):(s=n.parent.left,1===s.color&&(s.color=0,n.parent.color=1,In(e,n.parent),s=n.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,n=n.parent):(0===s.left.color&&(s.right.color=0,s.color=1,An(e,s),s=n.parent.left),s.color=n.parent.color,n.parent.color=0,s.left.color=0,In(e,n.parent),n=e.root));n.color=0,Tn()}function Mn(e,t){for(Dn(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&An(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,In(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&In(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,An(e,t.parent.parent))}e.root.color=0}function Rn(e,t,n,r){for(;t!==e.root&&t!==wn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}function Dn(e,t){let n=0,r=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=En((t=t.parent).left)-t.size_left,r=Nn(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=r;t!==e.root&&(0!==n||0!==r);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}}wn.parent=wn,wn.left=wn,wn.right=wn,wn.color=0;var Bn=n(7729);const Fn=65535;function Pn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Vn{constructor(e,t,n,r,i){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=r,this.isBasicASCII=i}}function zn(e,t=!0){const n=[0];let r=1;for(let i=0,s=e.length;i<s;i++){const t=e.charCodeAt(i);13===t?i+1<s&&10===e.charCodeAt(i+1)?(n[r++]=i+2,i++):n[r++]=i+1:10===t&&(n[r++]=i+1)}return t?Pn(n):n}class jn{constructor(e,t,n,r,i){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=r,this.length=i}}class qn{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Wn{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==wn&&e.iterate(e.root,(e=>(e!==wn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Un{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let r=0;r<n.length;r++){const i=n[r];(null===i.node.parent||i.nodeStartOffset>=e)&&(n[r]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class $n{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new qn("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=wn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let r=null;for(let i=0,s=e.length;i<s;i++)if(e[i].buffer.length>0){e[i].lineStarts||(e[i].lineStarts=zn(e[i].buffer));const t=new jn(i+1,{line:0,column:0},{line:e[i].lineStarts.length-1,column:e[i].buffer.length-e[i].lineStarts[e[i].lineStarts.length-1]},e[i].lineStarts.length-1,e[i].buffer.length);this._buffers.push(e[i]),r=this.rbInsertRight(r,t)}this._searchCache=new Un(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=Fn,n=t-Math.floor(21845),r=2*n;let i="",s=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),l=a.length;if(s<=n||s+l<r)return i+=a,s+=l,!0;const c=i.replace(/\r\n|\r|\n/g,e);return o.push(new qn(c,zn(c))),i=a,s=l,!0})),s>0){const t=i.replace(/\r\n|\r|\n/g,e);o.push(new qn(t,zn(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Wn(this,e)}getOffsetAt(e,t){let n=0,r=this.root;for(;r!==wn;)if(r.left!==wn&&r.lf_left+1>=e)r=r.left;else{if(r.lf_left+r.piece.lineFeedCnt+1>=e){n+=r.size_left;return n+(this.getAccumulatedValue(r,e-r.lf_left-2)+t-1)}e-=r.lf_left+r.piece.lineFeedCnt,n+=r.size_left+r.piece.length,r=r.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const r=e;for(;t!==wn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const i=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+i.index,0===i.index){const e=r-this.getOffsetAt(n+1,1);return new f.y(n+1,e+1)}return new f.y(n+1,i.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===wn){const t=r-e-this.getOffsetAt(n+1,1);return new f.y(n+1,t+1)}t=t.right}return new f.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),r=this.nodeAt2(e.endLineNumber,e.endColumn),i=this.getValueInRange2(n,r);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?i:i.replace(/\r\n|\r|\n/g,t):i}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,r=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r.substring(i+e.remainder,i+t.remainder)}let n=e.node;const r=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let s=r.substring(i+e.remainder,i+n.piece.length);for(n=n.next();n!==wn;){const e=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){s+=e.substring(r,r+t.remainder);break}s+=e.substr(r,n.piece.length),n=n.next()}return s}getLinesContent(){const e=[];let t=0,n="",r=!1;return this.iterate(this.root,(i=>{if(i===wn)return!0;const s=i.piece;let o=s.length;if(0===o)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,c=s.start.line,h=s.end.line;let u=l[c]+s.start.column;if(r&&(10===a.charCodeAt(u)&&(u++,o--),e[t++]=n,n="",r=!1,0===o))return!0;if(c===h)return this._EOLNormalized||13!==a.charCodeAt(u+o-1)?n+=a.substr(u,o):(r=!0,n+=a.substr(u,o-1)),!0;n+=this._EOLNormalized?a.substring(u,Math.max(u,l[c+1]-this._EOLLength)):a.substring(u,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let r=c+1;r<h;r++)n=this._EOLNormalized?a.substring(l[r],l[r+1]-this._EOLLength):a.substring(l[r],l[r+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==a.charCodeAt(l[h]+s.end.column-1)?n=a.substr(l[h],s.end.column):(r=!0,0===s.end.column?t--:n=a.substr(l[h],s.end.column-1)),!0})),r&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],r=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(r)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,r,i,s,o,a,l,c,h){const u=this._buffers[e.piece.bufferIndex],d=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,i),f=this.offsetInBuffer(e.piece.bufferIndex,s);let p;const b={line:0,column:0};let _,k;t._wordSeparators?(_=u.buffer.substring(g,f),k=e=>e+g,t.reset(0)):(_=u.buffer,k=e=>e,t.reset(g));do{if(p=t.next(_),p){if(k(p.index)>=f)return c;this.positionInBuffer(e,k(p.index)-d,b);const t=this.getLineFeedCnt(e.piece.bufferIndex,i,b),s=b.line===i.line?b.column-i.column+r:b.column+1,o=s+p[0].length;if(h[c++]=(0,Bn.dr)(new m.Q(n+t,s,n+t,o),p,a),k(p.index)+p[0].length>=f)return c;if(c>=l)return c}}while(p);return c}findMatchesLineByLine(e,t,n,r){const i=[];let s=0;const o=new Bn.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,c,h,t,n,r,s,i),i;let u=e.startLineNumber,d=a.node;for(;d!==l.node;){const l=this.getLineFeedCnt(d.piece.bufferIndex,c,d.piece.end);if(l>=1){const a=this._buffers[d.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(d.piece.bufferIndex,d.piece.start),g=a[c.line+l],f=u===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(d,o,u,f,c,this.positionInBuffer(d,g-h),t,n,r,s,i),s>=r)return i;u+=l}const h=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const a=this.getLineContent(u).substring(h,e.endColumn-1);return s=this._findMatchesInLine(t,o,a,e.endLineNumber,h,s,i,n,r),i}if(s=this._findMatchesInLine(t,o,this.getLineContent(u).substr(h),u,h,s,i,n,r),s>=r)return i;u++,a=this.nodeAt2(u,1),d=a.node,c=this.positionInBuffer(a.node,a.remainder)}if(u===e.endLineNumber){const a=u===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(u).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,o,l,e.endLineNumber,a,s,i,n,r),i}const g=u===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,o,u,g,c,h,t,n,r,s,i),i}_findMatchesInLine(e,t,n,r,i,s,o,a,l){const c=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=n.length;let u=-a;for(;-1!==(u=n.indexOf(t,u+a));)if((!c||(0,Bn.wC)(c,n,h,u,a))&&(o[s++]=new me.Dg(new m.Q(r,u+1+i,r,u+1+a+i),null),s>=l))return s;return s}let h;t.reset(0);do{if(h=t.next(n),h&&(o[s++]=(0,Bn.dr)(new m.Q(r,h.index+1+i,r,h.index+1+h[0].length+i),h,a),s>=l))return s}while(h);return s}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==wn){const{node:n,remainder:r,nodeStartOffset:i}=this.nodeAt(e),s=n.piece,o=s.bufferIndex,a=this.positionInBuffer(n,r);if(0===n.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&i+s.length===e&&t.length<Fn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(i===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(i+n.piece.length>e){const e=[];let i=new jn(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(o,s.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,r)){const e={line:i.start.line+1,column:0};i=new jn(i.bufferIndex,e,i.end,this.getLineFeedCnt(i.bufferIndex,e,i.end),i.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,r-1)){const i=this.positionInBuffer(n,r-1);this.deleteNodeTail(n,i),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,a)}else this.deleteNodeTail(n,a);const l=this.createNewPieces(t);i.length>0&&this.rbInsertRight(n,i);let c=n;for(let t=0;t<l.length;t++)c=this.rbInsertRight(c,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===wn)return;const n=this.nodeAt(e),r=this.nodeAt(e+t),i=n.node,s=r.node;if(i===s){const s=this.positionInBuffer(i,n.remainder),o=this.positionInBuffer(i,r.remainder);if(n.nodeStartOffset===e){if(t===i.piece.length){const e=i.next();return On(this,i),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(i,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(i),void this.computeBufferMetadata()}return n.nodeStartOffset+i.piece.length===e+t?(this.deleteNodeTail(i,s),this.validateCRLFWithNextNode(i),void this.computeBufferMetadata()):(this.shrinkNode(i,s,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(i,n.remainder);this.deleteNodeTail(i,a),this._searchCache.validate(e),0===i.piece.length&&o.push(i);const l=this.positionInBuffer(s,r.remainder);this.deleteNodeHead(s,l),0===s.piece.length&&o.push(s);for(let h=i.next();h!==wn&&h!==s;h=h.next())o.push(h);const c=0===i.piece.length?i.prev():i;this.deleteNodes(o),this.validateCRLFWithNextNode(c),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const r=t.piece,i={line:r.start.line+1,column:0},s=new jn(r.bufferIndex,i,r.end,this.getLineFeedCnt(r.bufferIndex,i,r.end),r.length-1);t.piece=s,e+="\n",Rn(this,t,-1,-1),0===t.piece.length&&n.push(t)}const r=this.createNewPieces(e);let i=this.rbInsertLeft(t,r[r.length-1]);for(let s=r.length-2;s>=0;s--)i=this.rbInsertLeft(i,r[s]);this.validateCRLFWithPrevNode(i),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),r=this.rbInsertRight(t,n[0]);let i=r;for(let s=1;s<n.length;s++)i=this.rbInsertRight(i,n[s]);this.validateCRLFWithPrevNode(r)}positionInBuffer(e,t,n){const r=e.piece,i=e.piece.bufferIndex,s=this._buffers[i].lineStarts,o=s[r.start.line]+r.start.column+t;let a=r.start.line,l=r.end.line,c=0,h=0,u=0;for(;a<=l&&(c=a+(l-a)/2|0,u=s[c],c!==l);)if(h=s[c+1],o<u)l=c-1;else{if(!(o>=h))break;a=c+1}return n?(n.line=c,n.column=o-u,null):{line:c,column:o-u}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const r=this._buffers[e].lineStarts;if(n.line===r.length-1)return n.line-t.line;const i=r[n.line+1],s=r[n.line]+n.column;if(i>s+1)return n.line-t.line;const o=s-1;return 13===this._buffers[e].buffer.charCodeAt(o)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)On(this,e[t])}createNewPieces(e){if(e.length>Fn){const t=[];for(;e.length>Fn;){const n=e.charCodeAt(65534);let r;13===n||n>=55296&&n<=56319?(r=e.substring(0,65534),e=e.substring(65534)):(r=e.substring(0,Fn),e=e.substring(Fn));const i=zn(r);t.push(new jn(this._buffers.length,{line:0,column:0},{line:i.length-1,column:r.length-i[i.length-1]},i.length-1,r.length)),this._buffers.push(new qn(r,i))}const n=zn(e);return t.push(new jn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new qn(e,n)),t}let t=this._buffers[0].buffer.length;const n=zn(e,!1);let r=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},r=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const i=this._buffers[0].buffer.length,s=this._buffers[0].lineStarts.length-1,o={line:s,column:i-this._buffers[0].lineStarts[s]},a=new jn(0,r,o,this.getLineFeedCnt(0,r,o),i-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let n=this.root,r="";const i=this._searchCache.get2(e);if(i){n=i.node;const s=this.getAccumulatedValue(n,e-i.nodeStartLineNumber-1),o=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(i.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const r=this.getAccumulatedValue(n,e-i.nodeStartLineNumber);return o.substring(a+s,a+r-t)}r=o.substring(a+s,a+n.piece.length)}else{let i=0;const s=e;for(;n!==wn;)if(n.left!==wn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:i,nodeStartLineNumber:s-(e-1-n.lf_left)}),a.substring(l+r,l+o-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),i=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r=i.substring(s+t,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==wn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const i=this.getAccumulatedValue(n,0),s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=e.substring(s,s+i-t),r}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r+=e.substr(t,n.piece.length)}n=n.next()}return r}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==wn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,r=this.positionInBuffer(e,t),i=r.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,r);if(t!==i)return{index:t,remainder:0}}return{index:i,remainder:r.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,r=this._buffers[n.bufferIndex].lineStarts,i=n.start.line+t+1;return i>n.end.line?r[n.end.line]+n.end.column-r[n.start.line]-n.start.column:r[i]-r[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,r=n.lineFeedCnt,i=this.offsetInBuffer(n.bufferIndex,n.end),s=t,o=this.offsetInBuffer(n.bufferIndex,s),a=this.getLineFeedCnt(n.bufferIndex,n.start,s),l=a-r,c=o-i,h=n.length+c;e.piece=new jn(n.bufferIndex,n.start,s,a,h),Rn(this,e,c,l)}deleteNodeHead(e,t){const n=e.piece,r=n.lineFeedCnt,i=this.offsetInBuffer(n.bufferIndex,n.start),s=t,o=this.getLineFeedCnt(n.bufferIndex,s,n.end),a=o-r,l=i-this.offsetInBuffer(n.bufferIndex,s),c=n.length+l;e.piece=new jn(n.bufferIndex,s,n.end,o,c),Rn(this,e,l,a)}shrinkNode(e,t,n){const r=e.piece,i=r.start,s=r.end,o=r.length,a=r.lineFeedCnt,l=t,c=this.getLineFeedCnt(r.bufferIndex,r.start,l),h=this.offsetInBuffer(r.bufferIndex,t)-this.offsetInBuffer(r.bufferIndex,i);e.piece=new jn(r.bufferIndex,r.start,l,c,h),Rn(this,e,h-o,c-a);const u=new jn(r.bufferIndex,n,s,this.getLineFeedCnt(r.bufferIndex,n,s),this.offsetInBuffer(r.bufferIndex,s)-this.offsetInBuffer(r.bufferIndex,n)),d=this.rbInsertRight(e,u);this.validateCRLFWithPrevNode(d)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),r=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const i=zn(t,!1);for(let u=0;u<i.length;u++)i[u]+=r;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:r-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1));const s=this._buffers[0].lineStarts.length-1,o={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,c=this.getLineFeedCnt(0,e.piece.start,o),h=c-l;e.piece=new jn(e.piece.bufferIndex,e.piece.start,o,c,a),this._lastChangeBufferPos=o,Rn(this,e,t.length,h)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let r=0;for(;t!==wn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){r+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:r};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,r+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,r=0;for(;n!==wn;)if(n.left!==wn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1);return r+=n.size_left,{node:n,remainder:Math.min(i+t-1,s),nodeStartOffset:r}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const i=this.getAccumulatedValue(n,e-n.lf_left-2);if(i+t-1<=n.piece.length)return{node:n,remainder:i+t-1,nodeStartOffset:r};t-=n.piece.length-i;break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==wn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),r=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:r}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],r=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(r)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===wn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,r=t.start.line,i=n[r]+t.start.column;if(r===n.length-1)return!1;return!(n[r+1]>i+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(i)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==wn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],r=this._buffers[e.piece.bufferIndex].lineStarts;let i;i=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new jn(e.piece.bufferIndex,e.piece.start,i,o,s),Rn(this,e,-1,-1),0===e.piece.length&&n.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new jn(t.piece.bufferIndex,a,t.piece.end,c,l),Rn(this,t,-1,-1),0===t.piece.length&&n.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let u=0;u<n.length;u++)On(this,n[u])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)On(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},r=e.length-1,i=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new jn(e.bufferIndex,t,e.end,i,r),Rn(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===wn)return t(wn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===wn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,r=this.offsetInBuffer(n.bufferIndex,n.start),i=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(r,i)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),r=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,r)}rbInsertRight(e,t){const n=new Ln(t,1);n.left=wn,n.right=wn,n.parent=wn,n.size_left=0,n.lf_left=0;if(this.root===wn)this.root=n,n.color=0;else if(e.right===wn)e.right=n,n.parent=e;else{const t=Sn(e.right);t.left=n,n.parent=t}return Mn(this,n),n}rbInsertLeft(e,t){const n=new Ln(t,1);if(n.left=wn,n.right=wn,n.parent=wn,n.size_left=0,n.lf_left=0,this.root===wn)this.root=n,n.color=0;else if(e.left===wn)e.left=n,n.parent=e;else{const t=xn(e.left);t.right=n,n.parent=t}return Mn(this,n),n}}class Hn extends i.jG{constructor(e,t,n,i,s,o,a){super(),this._onDidChangeContent=this._register(new r.vl),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=i,this._mightContainUnusualLineTerminators=s,this._pieceTree=new $n(e,n,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,r=this.getPositionAt(e),i=this.getPositionAt(n);return new m.Q(r.lineNumber,r.column,i.lineNumber,i.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),r=this.getOffsetAt(e.endLineNumber,e.endColumn);let i=0;const s=this._getEndOfLine(t),o=this.getEOL();if(s.length!==o.length){i=(s.length-o.length)*(e.endLineNumber-e.startLineNumber)}return r-n+i}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const r=e.startLineNumber,i=e.endLineNumber;for(let t=r;t<=i;t++){const s=this.getLineContent(t),o=t===r?e.startColumn-1:0,a=t===i?e.endColumn-1:s.length;for(let e=o;e<a;e++)c.pc(s.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(i-r),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=c.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=c.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let r=this._mightContainRTL,i=this._mightContainUnusualLineTerminators,s=this._mightContainNonBasicASCII,o=!0,a=[];for(let p=0;p<e.length;p++){const t=e[p];o&&t._isTracked&&(o=!1);const n=t.range;if(t.text){let e=!0;s||(e=!c.aC(t.text),s=e),!r&&e&&(r=c.E_(t.text)),!i&&e&&(i=c.$X(t.text))}let l="",h=0,d=0,g=0;if(t.text){let e;[h,d,g,e]=(0,u.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}a[p]={sortIndex:p,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:h,firstLineLength:d,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Hn._sortOpsAscending);let l=!1;for(let c=0,u=a.length-1;c<u;c++){const e=a[c].range.getEndPosition(),t=a[c+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}o&&(a=this._reduceOperations(a));const h=n||t?Hn._getInverseEditRanges(a):[],d=[];if(t)for(let u=0;u<a.length;u++){const e=a[u],t=h[u];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let r="";n===t.startLineNumber&&(r=this.getLineContent(e.range.startLineNumber),-1!==c.HG(r))||d.push({lineNumber:n,oldContent:r})}}let g=null;if(n){let e=0;g=[];for(let t=0;t<a.length;t++){const n=a[t],r=h[t],i=this.getValueInRange(n.range),s=n.rangeOffset+e;e+=n.text.length-i.length,g[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:r,text:i,textChange:new Ot(n.rangeOffset,i,s,n.text)}}l||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=r,this._mightContainUnusualLineTerminators=i,this._mightContainNonBasicASCII=s;const f=this._doApplyEdits(a);let m=null;if(t&&d.length>0){d.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=d.length;e<t;e++){const t=d[e].lineNumber;if(e>0&&d[e-1].lineNumber===t)continue;const n=d[e].oldContent,r=this.getLineContent(t);0!==r.length&&r!==n&&-1===c.HG(r)&&m.push(t)}}return this._onDidChangeContent.fire(),new me.F4(g,f,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,r=e[e.length-1].range,i=new m.Q(n.startLineNumber,n.startColumn,r.endLineNumber,r.endColumn);let s=n.startLineNumber,o=n.startColumn;const a=[];for(let u=0,g=e.length;u<g;u++){const n=e[u],r=n.range;t=t||n.forceMoveMarkers,a.push(this.getValueInRange(new m.Q(s,o,r.startLineNumber,r.startColumn))),n.text.length>0&&a.push(n.text),s=r.endLineNumber,o=r.endColumn}const l=a.join(""),[c,h,d]=(0,u.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i,0),text:l,eolCount:c,firstLineLength:h,lastLineLength:d,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Hn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const r=e[n],i=r.range.startLineNumber,s=r.range.startColumn,o=r.range.endLineNumber,a=r.range.endColumn;if(i===o&&s===a&&0===r.text.length)continue;r.text?(this._pieceTree.delete(r.rangeOffset,r.rangeLength),this._pieceTree.insert(r.rangeOffset,r.text,!0)):this._pieceTree.delete(r.rangeOffset,r.rangeLength);const l=new m.Q(i,s,o,a);t.push({range:l,rangeLength:r.rangeLength,text:r.text,rangeOffset:r.rangeOffset,forceMoveMarkers:r.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,r){return this._pieceTree.findMatchesLineByLine(e,t,n,r)}static _getInverseEditRanges(e){const t=[];let n=0,r=0,i=null;for(let s=0,o=e.length;s<o;s++){const o=e[s];let a,l,c;if(i?i.range.endLineNumber===o.range.startLineNumber?(a=n,l=r+(o.range.startColumn-i.range.endColumn)):(a=n+(o.range.startLineNumber-i.range.endLineNumber),l=o.range.startColumn):(a=o.range.startLineNumber,l=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;c=1===e?new m.Q(a,l,a,l+o.firstLineLength):new m.Q(a,l,a+e-1,o.lastLineLength+1)}else c=new m.Q(a,l,a,l);n=c.endLineNumber,r=c.endColumn,t.push(c),i=o}return t}static _sortOpsAscending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=m.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class Kn{constructor(e,t,n,r,i,s,o,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=r,this._crlf=i,this._containsRTL=s,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let i=0,s=n.length;i<s;i++){const e=n[i].buffer.replace(/\r\n|\r|\n/g,t),r=zn(e);n[i]=new qn(e,r)}const r=new Hn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:r,disposable:r}}}class Gn{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&c.LU(e)&&(this.BOM=c.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,r=0,i=0,s=0,o=!0;for(let l=0,c=t.length;l<c;l++){const a=t.charCodeAt(l);13===a?l+1<c&&10===t.charCodeAt(l+1)?(s++,e[n++]=l+2,l++):(r++,e[n++]=l+1):10===a?(i++,e[n++]=l+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new Vn(Pn(e),r,i,s,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new qn(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.$X(e)))}finish(e=!0){return this._finish(),new Kn(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=zn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Qn=n(6571),Jn=n(2083),Xn=n(1940),Yn=n(8381),Zn=n(4444);const er=new class{clone(){return this}equals(e){return this===e}};class tr{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const r=this._store.slice(0,e),i=this._store.slice(e+t),s=function(e,t){const n=[];for(let r=0;r<e;r++)n[r]=t;return n}(n,this._default);this._store=r.concat(s,i)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let r=0;r<t;r++)n[r]=this._default;this._store=(0,o.nK)(this._store,e,n)}}class nr{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class rr{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new nr(e,[t]))}finalize(){return this._tokens}}class ir{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=ir.defaultTokenMetadata,r=new Uint32Array(2);return r[0]=e.length,r[1]=n,new ir(r,e,t)}static createFromTextAndMetadata(e,t){let n=0,r="";const i=new Array;for(const{text:s,metadata:o}of e)i.push(n+s.length,o),n+=s.length,r+=s;return new ir(new Uint32Array(i),r,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof ir&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const r=t<<1,i=r+(n<<1);for(let s=r;s<i;s++)if(this._tokens[s]!==e._tokens[s])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Ye.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Ye.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Ye.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Ye.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Ye.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Ye.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ir.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new sr(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let r=0;r<n;r++)e[r<<1]=e[r+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,r=(e.length>>>1)-1;for(;n<r;){const i=n+Math.floor((r-n)/2),s=e[i<<1];if(s===t)return i+1;s<t?n=i+1:s>t&&(r=i)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,r="";const i=new Array;let s=0;for(;;){const o=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==o&&(null===a||o<=a.offset)){r+=this._text.substring(s,o);const e=this._tokens[1+(t<<1)];i.push(r.length,e),t++,s=o}else{if(!a)break;if(a.offset>s){r+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];i.push(r.length,e),s=a.offset}r+=a.text,i.push(r.length,a.tokenMetadata),n++}}return new ir(new Uint32Array(i),r,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class sr{constructor(e,t,n,r){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=r,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let i=this._firstTokenIndex,s=e.getCount();i<s;i++){if(e.getStartOffset(i)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof sr&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),r=this._source.getEndOffset(t);let i=this._source.getTokenText(t);return n<this._startOffset&&(i=i.substring(this._startOffset-n)),r>this._endOffset&&(i=i.substring(0,i.length-(r-this._endOffset))),i}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class or{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new lr(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class ar extends or{constructor(e,t,n,r){super(e,t),this._textModel=n,this._languageIdCodec=r}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const r=this.getFirstInvalidLine();if(!r||r.lineNumber>t)break;const i=this._textModel.getLineContent(r.lineNumber),s=ur(this._languageIdCodec,n,this.tokenizationSupport,i,!0,r.startState);e.add(r.lineNumber,s.tokens),this.store.setEndState(r.lineNumber,s.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const r=this._textModel.getLanguageId(),i=this._textModel.getLineContent(e.lineNumber),s=i.substring(0,e.column-1)+t+i.substring(e.column-1),o=ur(this._languageIdCodec,r,this.tokenizationSupport,s,!0,n),a=new ir(o.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const r=e.lineNumber,i=e.column,s=this.getStartState(r);if(!s)return null;const o=this._textModel.getLineContent(r),a=o.substring(0,i-1)+n+o.substring(i-1+t),l=this._textModel.getLanguageIdAtPosition(r,0),c=ur(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new ir(c.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let r=this.guessStartState(t);const i=this._textModel.getLanguageId();for(let s=t;s<=n;s++){const t=this._textModel.getLineContent(s),n=ur(this._languageIdCodec,i,this.tokenizationSupport,t,!0,r);e.add(s,n.tokens),r=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let r=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(o)),t=e,r=this.getStartState(o),r)))break}r||(r=this.tokenizationSupport.getInitialState()),n.reverse();const i=this._textModel.getLanguageId();let s=r;for(const o of n){s=ur(this._languageIdCodec,i,this.tokenizationSupport,o,!1,s).endState}return s}}class lr{constructor(e){this.lineCount=e,this._tokenizationStateStore=new cr,this._invalidEndStatesLineNumbers=new hr,this._invalidEndStatesLineNumbers.addRange(new Zn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Zn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Zn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,u.W)(t.text);this.acceptChange(new Qn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Zn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class cr{constructor(){this._lineEndStates=new tr(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class hr{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Zn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Zn.L(n.start,e):this._ranges.splice(t,1,new Zn.L(n.start,e),new Zn.L(e+1,n.endExclusive))}}addRange(e){Zn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let r=n;for(;!(r>=this._ranges.length||e.endExclusive<this._ranges[r].start);)r++;const i=t-e.length;for(let s=r;s<this._ranges.length;s++)this._ranges[s]=this._ranges[s].delta(i);if(n===r){const r=new Zn.L(e.start,e.start+t);r.isEmpty||this._ranges.splice(n,0,r)}else{const t=Math.min(e.start,this._ranges[n].start),s=Math.max(e.endExclusive,this._ranges[r-1].endExclusive),o=new Zn.L(t,s+i);o.isEmpty?this._ranges.splice(n,r-n):this._ranges.splice(n,r-n,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function ur(e,t,n,r,i,s){let o=null;if(n)try{o=n.tokenizeEncoded(r,i,s.clone())}catch(a){(0,l.dz)(a)}return o||(o=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new Jn.rY(n,null===t?er:t)}(e.encodeLanguageId(t),s)),ir.convertToEndOffset(o.tokens,r.length),o}class dr{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Xn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,s._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new rr,n=Yn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Qn.M(e,t))}}class gr{constructor(){this._onDidChangeVisibleRanges=new r.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new fr((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class fr{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Qn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class mr extends i.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Xn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,o.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class pr extends i.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new r.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class br extends pr{constructor(e,t,n,r){super(t,n,r),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=Jn.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new ir(n,t,this._languageIdCodec)}return ir.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var _r=n(4432);const kr=new Uint32Array(0).buffer;class vr{static deleteBeginning(e,t){return null===e||e===kr?e:vr.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===kr)return e;const n=Cr(e),r=n[n.length-2];return vr.delete(e,t,r)}static delete(e,t,n){if(null===e||e===kr||t===n)return e;const r=Cr(e),i=r.length>>>1;if(0===t&&r[r.length-2]===n)return kr;const s=ir.findIndexInTokensArray(r,t),o=s>0?r[s-1<<1]:0;if(n<r[s<<1]){const o=n-t;for(let e=s;e<i;e++)r[e<<1]-=o;return e}let a,l;o!==t?(r[s<<1]=t,a=s+1<<1,l=t):(a=s<<1,l=o);const c=n-t;for(let u=s+1;u<i;u++){const e=r[u<<1]-c;e>l&&(r[a++]=e,r[a++]=r[1+(u<<1)],l=e)}if(a===r.length)return e;const h=new Uint32Array(a);return h.set(r.subarray(0,a),0),h.buffer}static append(e,t){if(t===kr)return e;if(e===kr)return t;if(null===e)return e;if(null===t)return null;const n=Cr(e),r=Cr(t),i=r.length>>>1,s=new Uint32Array(n.length+r.length);s.set(n,0);let o=n.length;const a=n[n.length-2];for(let l=0;l<i;l++)s[o++]=r[l<<1]+a,s[o++]=r[1+(l<<1)];return s.buffer}static insert(e,t,n){if(null===e||e===kr)return e;const r=Cr(e),i=r.length>>>1;let s=ir.findIndexInTokensArray(r,t);if(s>0){r[s-1<<1]===t&&s--}for(let o=s;o<i;o++)r[o<<1]+=n;return e}}function Cr(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class yr{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let r=null;if(t<this._len&&(r=this._lineTokens[t]),null!==r&&r!==kr)return new ir(Cr(r),n,this._languageIdCodec);const i=new Uint32Array(2);return i[0]=n.length,i[1]=Lr(this._languageIdCodec.encodeLanguageId(e)),new ir(i,n,this._languageIdCodec)}static _massageTokens(e,t,n){const r=n?Cr(n):null;if(0===t){let t=!1;if(r&&r.length>1&&(t=Ye.x.getLanguageId(r[1])!==e),!t)return kr}if(!r||0===r.length){const n=new Uint32Array(2);return n[0]=t,n[1]=Lr(e),n.buffer}return r[r.length-2]=t,0===r.byteOffset&&r.byteLength===r.buffer.byteLength?r.buffer:r}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let r=0;r<t;r++)n[r]=null;this._lineTokens=o.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,r,i){const s=yr._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,r);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=s,!!i&&!yr._equals(o,s)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=Cr(e),r=Cr(t);if(n.length!==r.length)return!1;for(let i=0,s=n.length;i<s;i++)if(n[i]!==r[i])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new f.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=vr.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=vr.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let r=null;n<this._len&&(r=vr.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=vr.append(this._lineTokens[t],r),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const r=e.lineNumber-1;r>=this._len||(0!==t?(this._lineTokens[r]=vr.deleteEnding(this._lineTokens[r],e.column-1),this._lineTokens[r]=vr.insert(this._lineTokens[r],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[r]=vr.insert(this._lineTokens[r],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let r=0,i=e.length;r<i;r++){const i=e[r];let s=0,o=0,a=!1;for(let e=i.startLineNumber;e<=i.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),i.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),i.getLineTokens(e),!0)&&(a=!0,s=e,o=e)}a&&n.push({fromLineNumber:s,toLineNumber:o})}return{changes:n}}}function Lr(e){return(32768|e|2<<24|1024)>>>0}class wr{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const r=t[0].getRange(),i=t[t.length-1].getRange();if(!r||!i)return e;n=e.plusRange(r).plusRange(i)}let r=null;for(let i=0,s=this._pieces.length;i<s;i++){const e=this._pieces[i];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){r=r||{index:i};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(i,1),i--,s--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){r=r||{index:i};continue}const[t,o]=e.split(n);t.isEmpty()?r=r||{index:i}:o.isEmpty()||(this._pieces.splice(i,1,t,o),i++,s++,r=r||{index:i})}return r=r||{index:this._pieces.length},t.length>0&&(this._pieces=o.nK(this._pieces,r.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const r=n[wr._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!r)return t;const i=t.getCount(),s=r.getCount();let o=0;const a=[];let l=0,c=0;const h=(e,t)=>{e!==c&&(c=e,a[l++]=e,a[l++]=t)};for(let u=0;u<s;u++){const e=r.getStartCharacter(u),n=r.getEndCharacter(u),s=r.getMetadata(u),a=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?16384:0)|(16&s?16744448:0)|(32&s?4278190080:0))>>>0,l=~a>>>0;for(;o<i&&t.getEndOffset(o)<=e;)h(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<i&&t.getStartOffset(o)<e&&h(e,t.getMetadata(o));o<i&&t.getEndOffset(o)<n;)h(t.getEndOffset(o),t.getMetadata(o)&l|s&a),o++;if(o<i)h(n,t.getMetadata(o)&l|s&a),t.getEndOffset(o)===n&&o++;else{const e=Math.min(Math.max(0,o-1),i-1);h(n,t.getMetadata(e)&l|s&a)}}for(;o<i;)h(t.getEndOffset(o),t.getMetadata(o)),o++;return new ir(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,r=e.length-1;for(;n<r;){let i=n+Math.floor((r-n)/2);if(e[i].endLineNumber<t)n=i+1;else{if(!(e[i].startLineNumber>t)){for(;i>n&&e[i-1].startLineNumber<=t&&t<=e[i-1].endLineNumber;)i--;return i}r=i-1}}return n}acceptEdit(e,t,n,r,i){for(const s of this._pieces)s.acceptEdit(e,t,n,r,i)}}var Sr,xr=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Er=function(e,t){return function(n,r){t(n,r,e)}};let Nr=Sr=class extends Ut{constructor(e,t,n,s,o,a,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=s,this._languageService=o,this._languageConfigurationService=a,this._treeSitterService=l,this._semanticTokens=new wr(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new r.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new r.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new i.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(r.Jh.filter(Jn.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Tr(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new br(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){Jn.OB.get(this._languageId)?this._tokens instanceof br||this.createTokens(!0):this._tokens instanceof Tr||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,r]=(0,u.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,r,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),r=this.getLineTokens(t.lineNumber),i=r.findTokenIndexAtOffset(t.column-1),[s,o]=Sr._findLanguageBoundaries(r,i),a=(0,v.Th)(t.column,this.getLanguageConfiguration(r.getLanguageId(i)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(i>0&&s===t.column-1){const[s,o]=Sr._findLanguageBoundaries(r,i-1),a=(0,v.Th)(t.column,this.getLanguageConfiguration(r.getLanguageId(i-1)).getWordDefinition(),n.substring(s,o),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let r=0;for(let s=t;s>=0&&e.getLanguageId(s)===n;s--)r=e.getStartOffset(s);let i=e.getLineContent().length;for(let s=t,o=e.getCount();s<o&&e.getLanguageId(s)===n;s++)i=e.getEndOffset(s);return[r,i]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new f.y(e,t)),r=this.getLineTokens(n.lineNumber);return r.getLanguageId(r.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Nr=Sr=xr([Er(4,k.L),Er(5,se),Er(6,_r.ITreeSitterParserService)],Nr);class Tr extends pr{constructor(e,t,n,r){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new i.HE),this._tokens=new yr(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new i.HE),this._attachedViewStates=this._register(new i.$w),this._register(Jn.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(r.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new mr((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new lr(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Jn.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new ar(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new dr(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new yr(this._languageIdCodec),this._debugBackgroundStates=new lr(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,u.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Qn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new rr,{heuristicTokens:r}=this._tokenizer.tokenizeHeuristically(n,e,t),i=this.setTokens(n.finalize());if(r)for(const s of i.changes)this._backgroundTokenizer.value?.requestTokens(s.fromLineNumber,s.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new rr;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const r=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(r)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const r=this._textModel.validatePosition(new f.y(e,t));return this.forceTokenization(r.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(r,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const r=this._textModel.validatePosition(e);return this.forceTokenization(r.lineNumber),this._tokenizer.tokenizeLineWithEdit(r,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Ar{constructor(){this.changeType=1}}class Ir{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",r=0;for(const i of t)n+=e.substring(r,i.column-1),r=i.column-1,n+=i.options.content;return n+=e.substring(r),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Ir(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Ir(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,r,i){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=r,this.order=i}}class Or{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class Mr{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Rr{constructor(e,t,n,r){this.changeType=4,this.injectedTexts=r,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class Dr{constructor(){this.changeType=5}}class Br{constructor(e,t,n,r){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=r,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),r=t.versionId,i=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing;return new Br(n,r,i,s)}}class Fr{constructor(e){this.changes=e}}class Pr{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Br.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Pr._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Pr(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),r=t.eol,i=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:r,isEolChange:e.isEolChange&&t.isEolChange,versionId:i,isUndoing:s,isRedoing:o,isFlush:a}}}const Vr=(0,H.u1)("undoRedoService");class zr{static{this._ID=0}constructor(){this.id=zr._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new zr}}class jr{static{this._ID=0}constructor(){this.id=jr._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new jr}}var qr,Wr=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Ur=function(e,t){return function(n,r){t(n,r,e)}};function $r(e,t){let n;return n="string"===typeof e?function(e){const t=new Gn;return t.acceptChunk(e),t.finish()}(e):me.nk(e)?function(e){const t=new Gn;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Hr=0;class Kr{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const r=this._source.read();if(null===r)return this._eos=!0,0===t?null:e.join("");if(r.length>0&&(e[t++]=r,n+=r.length),n>=65536)return e.join("")}}}const Gr=()=>{throw new Error("Invalid change accessor")};let Qr=class extends i.jG{static{qr=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:b.tabSize,indentSize:b.indentSize,insertSpaces:b.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:b.trimAutoWhitespace,largeFileOptimizations:b.largeFileOptimizations,bracketPairColorizationOptions:b.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Xt(e,t.tabSize,t.insertSpaces);return new me.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new me.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,i.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,s=null,o,a,l,u){super(),this._undoRedoService=o,this._languageService=a,this._languageConfigurationService=l,this.instantiationService=u,this._onWillDispose=this._register(new r.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new li((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new r.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new r.vl),this._eventEmitter=this._register(new ci),this._languageSelectionListener=this._register(new i.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new gr,Hr++,this.id="$model"+Hr,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?h.r.parse("inmemory://model/"+Hr):s,this._attachedEditorCount=0;const{textBuffer:d,disposable:g}=$r(e,n.defaultEOL);this._buffer=d,this._bufferDisposable=g,this._options=qr.resolveOptions(this._buffer,n);const f="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new yt(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Kt(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Nt(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Nr,this,this._bracketPairs,f,this._attachedViews);const p=this._buffer.getLineCount(),b=this._buffer.getValueLengthInRange(new m.Q(1,1,p,this._buffer.getLineLength(p)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=b>qr.LARGE_FILE_SIZE_THRESHOLD||p>qr.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=b>qr.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=b>qr._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=c.tk(Hr),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Yr,this._commandManager=new jt(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(f),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Hn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=i.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Pr(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=$r(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,r,i,s,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:r}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:i,isRedoing:s,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),r=this.getValueLengthInRange(n),i=this.getLineCount(),s=this.getLineMaxColumn(i);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Yr,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Br([new Ar],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,i,s),0,r,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),r=this.getValueLengthInRange(n),i=this.getLineCount(),s=this.getLineMaxColumn(i);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Br([new Dr],this._versionId,!1,!1),this._createContentChanged2(new m.Q(1,1,i,s),0,r,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,r=t.length;n<r;n++){const r=t[n],i=r.range,s=r.cachedAbsoluteStart-r.start,o=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),a=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);r.cachedAbsoluteStart=o,r.cachedAbsoluteEnd=a,r.cachedVersionId=e,r.start=o-s,r.end=a-s,vn(r)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let r=1;r<=n;r++){const n=this._buffer.getLineLength(r);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,r="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,i="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new me.X2({tabSize:t,indentSize:n,insertSpaces:r,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:i,bracketPairColorizationOptions:s});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const n=Xt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),g(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(c._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),r=this.getValueInRange(n,e);return t?this._buffer.getBOM()+r:r}createSnapshot(e=!1){return new Kr(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),r=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+r:r}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,r=e.startColumn;let i=Math.floor("number"!==typeof n||isNaN(n)?1:n),s=Math.floor("number"!==typeof r||isNaN(r)?1:r);if(i<1)i=1,s=1;else if(i>t)i=t,s=this.getLineMaxColumn(i);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(i);s>=e&&(s=e)}const o=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof o||isNaN(o)?1:o),c=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{const e=this.getLineMaxColumn(l);c>=e&&(c=e)}return n===i&&r===s&&o===l&&a===c&&e instanceof m.Q&&!(e instanceof p.L)?e:new m.Q(i,s,l,c)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(c.pc(n))return!1}return!0}_validatePosition(e,t,n){const r=Math.floor("number"!==typeof e||isNaN(e)?1:e),i=Math.floor("number"!==typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(r<1)return new f.y(1,1);if(r>s)return new f.y(s,this.getLineMaxColumn(s));if(i<=1)return new f.y(r,1);const o=this.getLineMaxColumn(r);if(i>=o)return new f.y(r,o);if(1===n){const e=this._buffer.getLineCharCode(r,i-2);if(c.pc(e))return new f.y(r,i-1)}return new f.y(r,i)}validatePosition(e){return this._assertNotDisposed(),e instanceof f.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(n,r,0))return!1;if(!this._isValidPosition(i,s,0))return!1;if(1===t){const e=r>1?this._buffer.getLineCharCode(n,r-2):0,t=s>1&&s<=this._buffer.getLineLength(i)?this._buffer.getLineCharCode(i,s-2):0,o=c.pc(e),a=c.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof m.Q&&!(e instanceof p.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),r=t.lineNumber,i=t.column,s=n.lineNumber,o=n.column;{const e=i>1?this._buffer.getLineCharCode(r,i-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,n=c.pc(e),a=c.pc(t);return n||a?r===s&&i===o?new m.Q(r,i-1,s,o-1):n&&a?new m.Q(r,i-1,s,o+1):n?new m.Q(r,i-1,s,o):new m.Q(r,i,s,o+1):new m.Q(r,i,s,o)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new m.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,r){return this._buffer.findMatchesLineByLine(e,t,n,r)}findMatches(e,t,n,r,i,s,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>m.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let c;if(l.push(a.reduce(((e,t)=>m.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,r,i).parseSearchRequest();if(!t)return[];c=e=>this.findMatchesLineByLine(e,t,s,o)}else c=t=>Bn.hB.findMatches(this,new Bn.lt(e,n,r,i),t,s,o);return l.map(c).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,r,i,s){this._assertNotDisposed();const o=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new Bn.lt(e,n,r,i).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new m.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),c=this.findMatchesLineByLine(l,t,s,1);return Bn.hB.findNextMatch(this,new Bn.lt(e,n,r,i),o,s),c.length>0?c[0]:(l=new m.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),c=this.findMatchesLineByLine(l,t,s,1),c.length>0?c[0]:null)}return Bn.hB.findNextMatch(this,new Bn.lt(e,n,r,i),o,s)}findPreviousMatch(e,t,n,r,i,s){this._assertNotDisposed();const o=this.validatePosition(t);return Bn.hB.findPreviousMatch(this,new Bn.lt(e,n,r,i),o,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof me.Wo?e:new me.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,r=e.length;n<r;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,r){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,r)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,r){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let r=!0;if(e)for(let t=0,i=e.length;t<i;t++){const i=e[t];let s=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,r=t.startLineNumber>i.endLineNumber,o=i.startLineNumber>t.endLineNumber;if(!r&&!o){s=!0;break}}if(!s){r=!1;break}}if(r)for(let e=0,i=this._trimAutoWhitespaceLines.length;e<i;e++){const r=this._trimAutoWhitespaceLines[e],i=this.getLineMaxColumn(r);let s=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,o=n[e].text;if(!(r<t.startLineNumber||r>t.endLineNumber)&&(!(r===t.startLineNumber&&t.startColumn===i&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(r===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){s=!1;break}}if(s){const e=new m.Q(r,1,r,i);t.push(new me.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,r)}_applyUndo(e,t,n,r){const i=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(i,t,!0,!1,n,r)}_applyRedo(e,t,n,r){const i=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new m.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(i,t,!1,!0,n,r)}_applyUndoRedoEdits(e,t,n,r,i,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=r,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(i)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),r=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),i=this._buffer.getLineCount(),s=r.changes;if(this._trimAutoWhitespaceLines=r.trimAutoWhitespaceLineNumbers,0!==s.length){for(let n=0,r=s.length;n<r;n++){const e=s[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,r=s.length;n<r;n++){const r=s[n],[a]=(0,u.W)(r.text);this._onDidChangeDecorations.fire();const l=r.range.startLineNumber,c=r.range.endLineNumber,h=c-l,d=a,g=Math.min(h,d),m=d-h,p=i-t-m+l,b=p,_=p+d,k=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new f.y(b,1)),this.getOffsetAt(new f.y(_,this.getLineMaxColumn(_))),0),v=Ir.fromDecorations(k),C=new o.j3(v);for(let t=g;t>=0;t--){const n=l+t,r=p+t;C.takeFromEndWhile((e=>e.lineNumber>r));const i=C.takeFromEndWhile((e=>e.lineNumber===r));e.push(new Or(n,this.getLineContent(r),i))}if(g<h){const t=l+g;e.push(new Mr(t+1,c))}if(g<d){const n=new o.j3(v),r=l+g,s=d-g,a=i-t-s+r+1,c=[],h=[];for(let e=0;e<s;e++){const t=a+e;h[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),c[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Rr(r+1,l+d,h,c))}t+=m}this._emitContentChangedEvent(new Br(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===r.reverseEdits?void 0:r.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Or(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new Fr(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,ai(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let r=null;try{r=t(n)}catch(i){(0,l.dz)(i)}return n.addDecoration=Gr,n.changeDecoration=Gr,n.changeDecorationOptions=Gr,n.removeDecoration=Gr,n.deltaDecorations=Gr,r}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const r=e?this._decorations[e]:null;if(!r)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:oi[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(r),delete this._decorations[r.id],null;const i=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),o=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);return this._decorationsTree.delete(r),r.reset(this.getVersionId(),s,o,i),r.setOptions(oi[n]),this._decorationsTree.insert(r),r.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,r=t.length;n<r;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,r=!1,i=!1){const s=this.getLineCount(),a=Math.min(s,Math.max(1,e)),l=Math.min(s,Math.max(1,t)),c=this.getLineMaxColumn(l),h=new m.Q(a,1,l,c),u=this._getDecorationsInRange(h,n,r,i);return(0,o.E4)(u,this._decorationProvider.getDecorationsInRange(h,n,r)),u}getDecorationsInRange(e,t=0,n=!1,r=!1,i=!1){const s=this.validateRange(e),a=this._getDecorationsInRange(s,t,n,i);return(0,o.E4)(a,this._decorationProvider.getDecorationsInRange(s,t,n,r)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),r=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Ir.fromDecorations(r).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,r){const i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,i,s,t,n,r)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const r=this._validateRangeRelaxedNoAllocations(t),i=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),s=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),i,s,r),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const r=!(!n.options.overviewRuler||!n.options.overviewRuler.color),i=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const s=r!==i,o=function(e){return!!e.after||!!e.before}(t)!==Xr(n);s||o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,r=!1){const i=this.getVersionId(),s=t.length;let o=0;const a=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const c=new Array(a);for(;o<s||l<a;){let h=null;if(o<s){do{h=this._decorations[t[o++]]}while(!h&&o<s);if(h){if(h.options.after){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(h.options.before){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(h),r||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(l<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new cn(t,0,0),this._decorations[t]=h}const t=n[l],s=this._validateRangeRelaxedNoAllocations(t.range),o=ai(t.options),a=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),u=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);h.ownerId=e,h.reset(i,a,u,s),h.setOptions(o),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber),r||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(h),c[l]=h.id,l++}else h&&delete this._decorations[h.id]}return c}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function Jr(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Xr(e){return!!e.options.after||!!e.options.before}Qr=qr=Wr([Ur(4,Vr),Ur(5,k.L),Ur(6,se),Ur(7,H._Y)],Qr);class Yr{constructor(){this._decorationsTree0=new un,this._decorationsTree1=new un,this._injectedTextDecorationsTree=new un}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,r,i,s){const o=e.getVersionId(),a=this._intervalSearch(t,n,r,i,o,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,n,r,i,s){const o=this._decorationsTree0.intervalSearch(e,t,n,r,i,s),a=this._decorationsTree1.intervalSearch(e,t,n,r,i,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,r,i,s);return o.concat(a).concat(l)}getInjectedTextInInterval(e,t,n,r){const i=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,n,r,!1,i,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),r=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,r).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,r,i){const s=e.getVersionId(),o=this._search(t,n,r,s,i);return this._ensureNodesHaveRanges(e,o)}_search(e,t,n,r,i){if(n)return this._decorationsTree1.search(e,t,r,i);{const n=this._decorationsTree0.search(e,t,r,i),s=this._decorationsTree1.search(e,t,r,i),o=this._injectedTextDecorationsTree.search(e,t,r,i);return n.concat(s).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),r=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(r)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Xr(e)?this._injectedTextDecorationsTree.insert(e):Jr(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Xr(e)?this._injectedTextDecorationsTree.delete(e):Jr(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Xr(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Jr(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,r){this._decorationsTree0.acceptReplace(e,t,n,r),this._decorationsTree1.acceptReplace(e,t,n,r),this._injectedTextDecorationsTree.acceptReplace(e,t,n,r)}}function Zr(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class ei{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class ti extends ei{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:me.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class ni{constructor(e){this.position=e?.position??me.ZS.Center,this.persistLane=e?.persistLane}}class ri extends ei{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?a.Q1.fromHex(e):t.getColor(e.id)}}class ii{static from(e){return e instanceof ii?e:new ii(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class si{static register(e){return new si(e)}static createDynamic(e){return new si(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Zr(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Zr(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new ti(e.overviewRuler):null,this.minimap=e.minimap?new ri(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new ni(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Zr(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Zr(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Zr(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?c.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Zr(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Zr(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Zr(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Zr(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Zr(e.afterContentClassName):null,this.after=e.after?ii.from(e.after):null,this.before=e.before?ii.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}si.EMPTY=si.register({description:"empty"});const oi=[si.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),si.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),si.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),si.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function ai(e){return e instanceof si?e:si.createDynamic(e)}class li extends i.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new r.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class ci extends i.jG{constructor(){super(),this._fastEmitter=this._register(new r.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var hi,ui=n(360),di=n(5600),gi=n(6456),fi=n(146),mi=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},pi=function(e,t){return function(n,r){t(n,r,e)}};function bi(e){return e.toString()}class _i{constructor(e,t,n){this.model=e,this._modelEventListeners=new i.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const ki=s.j9||s.zx?1:2;class vi{constructor(e,t,n,r,i,s,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=r,this.heapSize=i,this.sha1=s,this.versionId=o,this.alternativeVersionId=a}}let Ci=class extends i.jG{static{hi=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,i){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=i,this._onModelAdded=this._register(new r.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new r.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new r.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=b.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let r="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(r=Math.max(t,1))}let i=b.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(i="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let s=ki;const o=e.eol;"\r\n"===o?s=2:"\n"===o&&(s=1);let a=b.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=b.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let c=b.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(c="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let h=b.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(h={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:r,insertSpaces:i,detectIndentation:l,defaultEOL:s,trimAutoWhitespace:a,largeFileOptimizations:c,bracketPairColorizationOptions:h}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===s.OS||2===s.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const r="string"===typeof e?e:e.languageId;let i=this._modelCreationOptionsByLanguageAndResource[r+t];if(!i){const e=this._configurationService.getValue("editor",{overrideIdentifier:r,resource:t}),s=this._getEOL(t,r);i=hi._readModelOptions({editor:e,eol:s},n),this._modelCreationOptionsByLanguageAndResource[r+t]=i}return i}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let r=0,i=n.length;r<i;r++){const i=n[r],s=this._models[i],o=s.model.getLanguageId(),a=s.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:o,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:o,resource:a}))continue;const l=t[o+a],c=this.getCreationOptions(o,a,s.model.isForSimpleWidget);hi._setModelOptionsForModel(s.model,c,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,fi.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(bi(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(bi(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(bi(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,r){const i=this.getCreationOptions(t,n,r),s=this._instantiationService.createInstance(Qr,e,t,i,n);if(n&&this._disposedModels.has(bi(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),r=this._getSHA1Computer(),i=!!r.canComputeSHA1(s)&&r.computeSHA1(s)===e.sha1;if(i||e.sharesUndoRedoStack){for(const e of t.past)zt(e)&&e.matchesResource(n)&&e.setModel(s);for(const e of t.future)zt(e)&&e.matchesResource(n)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(n,!0,(e=>zt(e)&&e.matchesResource(n))),i&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=bi(s.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const a=new _i(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=a,a}createModel(e,t,n,r=!1){let i;return i=t?this._createModelData(e,t,n,r):this._createModelData(e,Q.vH,n,r),this._onModelAdded.fire(i.model),i.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,r=t.length;n<r;n++){const r=t[n];e.push(this._models[r].model)}return e}getModel(e){const t=bi(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===gi.ny.file||e.scheme===gi.ny.vscodeRemote||e.scheme===gi.ny.vscodeUserData||e.scheme===gi.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=bi(e.uri),n=this._models[t],r=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let i=!1,s=0;if(r||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)zt(n)&&n.matchesResource(e.uri)&&(i=!0,s+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)zt(n)&&n.matchesResource(e.uri)&&(i=!0,s+=n.heapSize(e.uri),n.setModel(e.uri))}}const o=hi.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(i)if(r||!(s>o)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(o-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>zt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new vi(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),r,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!r){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,r=e.getLanguageId(),i=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(r,e.uri,e.isForSimpleWidget);hi._setModelOptionsForModel(e,s,i),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new yi}};Ci=hi=mi([pi(0,K.pG),pi(1,ui.ITextResourcePropertiesService),pi(2,Vr),pi(3,H._Y)],Ci);class yi{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=yi.MAX_MODEL_SIZE}computeSHA1(e){const t=new di.v7,n=e.createSnapshot();let r;for(;r=n.read();)t.update(r);return t.digest()}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>r});const r=(0,n(3591).u1)("textModelService")},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>s});var r=n(1674),i=n(8067);function s(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const r of e.deltas)t[n++]=r.start,t[n++]=r.deleteCount,r.data?(t[n++]=r.data.length,t.set(r.data,n),n+=r.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return i.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],r=e[t+1],i=e[t+2],s=e[t+3];e[t+0]=s,e[t+1]=i,e[t+2]=r,e[t+3]=n}}(t),r.MB.wrap(t)}(t)}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>m,toMultilineTokens2:()=>p});n(5982);var r=n(5724),i=n(3511),s=n(3069),o=n(6677),a=n(4454);class l{static create(e,t){return new l(e,new c(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[r,i,s]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,r),new l(this._startLineNumber+s,i)]}applyEdit(e,t){const[n,r,i]=(0,a.W)(t);this.acceptEdit(e,n,r,i,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,r,i){this._acceptDeleteRange(e),this._acceptInsertText(new s.y(e.startLineNumber,e.startColumn),t,n,r,i),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const r=this._tokens.getMaxDeltaLine();if(!(t>=r+1)){if(t<0&&n>=r+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const r=-t;this._startLineNumber-=r,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,r,i){if(0===t&&0===n)return;const s=e.lineNumber-this._startLineNumber;if(s<0)return void(this._startLineNumber+=t);s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,n,r,i)}}class c{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),r=this._getEndCharacter(e-1);return new o.Q(0,t+1,n,r+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const r=t+Math.floor((n-t)/2),i=this._getDeltaLine(r);if(i<e)t=r+1;else{if(!(i>e)){let i=r;for(;i>t&&this._getDeltaLine(i-1)===e;)i--;let s=r;for(;s<n&&this._getDeltaLine(s+1)===e;)s++;return new h(this._tokens.subarray(4*i,4*s+4))}n=r-1}}return this._getDeltaLine(t)===e?new h(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,r){const i=this._tokens,s=this._tokenCount;let o=0,a=!1,l=0;for(let c=0;c<s;c++){const s=4*c,h=i[s],u=i[s+1],d=i[s+2],g=i[s+3];if((h>e||h===e&&d>=t)&&(h<n||h===n&&u<=r))a=!0;else{if(0===o&&(l=h),a){const e=4*o;i[e]=h-l,i[e+1]=u,i[e+2]=d,i[e+3]=g}o++}}return this._tokenCount=o,l}split(e,t,n,r){const i=this._tokens,s=this._tokenCount,o=[],a=[];let l=o,h=0,u=0;for(let c=0;c<s;c++){const s=4*c,o=i[s],d=i[s+1],g=i[s+2],f=i[s+3];if(o>e||o===e&&g>=t){if(o<n||o===n&&d<=r)continue;l!==a&&(l=a,h=0,u=o)}l[h++]=o-u,l[h++]=d,l[h++]=g,l[h++]=f}return[new c(new Uint32Array(o)),new c(new Uint32Array(a)),u]}acceptDeleteRange(e,t,n,r,i){const s=this._tokens,o=this._tokenCount,a=r-t;let l=0,c=!1;for(let h=0;h<o;h++){const u=4*h;let d=s[u],g=s[u+1],f=s[u+2];const m=s[u+3];if(d<t||d===t&&f<=n){l++;continue}if(d===t&&g<n)d===r&&f>i?f-=i-n:f=n;else if(d===t&&g===n){if(!(d===r&&f>i)){c=!0;continue}f-=i-n}else if(d<r||d===r&&g<i){if(!(d===r&&f>i)){c=!0;continue}d=t,g=n,f=g+(f-i)}else if(d>r){if(0===a&&!c){l=o;break}d-=a}else{if(!(d===r&&g>=i))throw new Error("Not possible!");e&&0===d&&(g+=e,f+=e),d-=a,g-=i-n,f-=i-n}const p=4*l;s[p]=d,s[p+1]=g,s[p+2]=f,s[p+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,n,r,i,s){const o=0===n&&1===r&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let c=0;c<l;c++){const s=4*c;let l=a[s],h=a[s+1],u=a[s+2];if(!(l<e||l===e&&u<t)){if(l===e&&u===t){if(!o)continue;u+=1}else if(l===e&&h<t&&t<u)0===n?u+=r:u=t;else{if(l===e&&h===t&&o)continue;if(l===e)if(l+=n,0===n)h+=r,u+=r;else{const e=u-h;h=i+(h-t),u=h+e}else l+=n}a[s]=l,a[s+1]=h,a[s+2]=u}}}}class h{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var u=n(154),d=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},g=function(e,t){return function(n,r){t(n,r,e)}};const f=!1;let m=class{constructor(e,t,n,r){this._legend=e,this._themeService=t,this._languageService=n,this._logService=r,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new _}getMetadata(e,t,n){const r=this._languageService.languageIdCodec.encodeLanguageId(n),i=this._hashTable.get(e,t,r);let s;if(i)s=i.metadata;else{let i=this._legend.tokenTypes[e];const o=[];if(i){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;f;const r=this._themeService.getColorTheme().getTokenStyleMetadata(i,o,n);if("undefined"===typeof r)s=2147483647;else{if(s=0,"undefined"!==typeof r.italic){s|=1|(r.italic?1:0)<<11}if("undefined"!==typeof r.bold){s|=2|(r.bold?2:0)<<11}if("undefined"!==typeof r.underline){s|=4|(r.underline?4:0)<<11}if("undefined"!==typeof r.strikethrough){s|=8|(r.strikethrough?8:0)<<11}if(r.foreground){s|=16|r.foreground<<15}0===s&&(s=2147483647)}}else s=2147483647,i="not-in-legend";this._hashTable.add(e,t,r,s)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,r,i){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${r} is outside the previous data (length ${i}).`))}};function p(e,t,n){const r=e.data,i=e.data.length/5|0,s=Math.max(Math.ceil(i/1024),400),o=[];let a=0,c=1,h=0;for(;a<i;){const e=a;let u=Math.min(e+s,i);if(u<i){let t=u;for(;t-1>e&&0===r[5*t];)t--;if(t-1===e){let e=u;for(;e+1<i&&0===r[5*e];)e++;u=e}else u=t}let d=new Uint32Array(4*(u-e)),g=0,f=0,m=0,p=0;for(;a<u;){const e=5*a,i=r[e],s=r[e+1],o=c+i|0,l=0===i?h+s|0:s,u=l+r[e+2]|0,b=r[e+3],_=r[e+4];if(u<=l)t.warnInvalidLengthSemanticTokens(o,l+1);else if(m===o&&p>l)t.warnOverlappingSemanticTokens(o,l+1);else{const e=t.getMetadata(b,_,n);2147483647!==e&&(0===f&&(f=o),d[g]=o-f,d[g+1]=l,d[g+2]=u,d[g+3]=e,g+=4,m=o,p=u)}c=o,h=l,a++}g!==d.length&&(d=d.subarray(0,g));const b=l.create(f,d);o.push(b)}return o}m=d([g(1,r.Gy),g(2,u.L),g(3,i.rr)],m);class b{constructor(e,t,n,r){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=r,this.next=null}}class _{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=_._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<_._SIZES.length?2/3*this._currentLength:0),this._elements=[],_._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const r=this._hashFunc(e,t,n);let i=this._elements[r];for(;i;){if(i.tokenTypeIndex===e&&i.tokenModifierSet===t&&i.languageId===n)return i;i=i.next}return null}add(e,t,n,r){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=_._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<_._SIZES.length?2/3*this._currentLength:0),this._elements=[],_._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new b(e,t,n,r))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>r});const r=(0,n(3591).u1)("semanticTokensStylingService")},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>d});var r=n(1484),i=n(154),s=n(5724),o=n(3511),a=n(5538),l=n(4243),c=n(4621),h=function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},u=function(e,t){return function(n,r){t(n,r,e)}};let d=class extends r.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};d=h([u(0,s.Gy),u(1,o.rr),u(2,i.L)],d),(0,c.v)(l.ISemanticTokensStylingService,d,1)},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>b,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>f,WorkerTextModelSyncClient:()=>m,WorkerTextModelSyncServer:()=>p});var r=n(1940),i=n(1484),s=n(9400),o=n(3069),a=n(6677),l=n(6486),c=n(1508),h=(n(9861),n(5152));class u{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,h.j)(e);const n=this.values,r=this.prefixSum,i=t.length;return 0!==i&&(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,h.j)(e),t=(0,h.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,h.j)(e),t=(0,h.j)(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;const i=n.length-e;return t>=i&&(t=i),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,h.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0,i=0,s=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],s=i-this.values[r],e<s)n=r-1;else{if(!(e>=i))break;t=r+1}return new d(r,e-s)}}class d{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class g{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new o.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new u(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,c.uz)(t);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);const r=new Uint32Array(n.length-1);for(let i=1;i<n.length;i++)this._lines.splice(e.lineNumber+i-1,0,n[i]),r[i-1]=n[i].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}const f=6e4;class m extends i.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new r.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(f/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,i.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>f&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const r=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const s=new i.Cm;s.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(r.toString(),e)}))),s.add(n.onWillDispose((()=>{this._stopModelSync(r)}))),s.add((0,i.s)((()=>{this._proxy.$acceptRemovedModel(r)}))),this._syncedModels[r]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,i.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new b(s.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class b extends g{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const r=this._lines[n],i=this.offsetAt(new o.y(n+1,1)),s=r.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+i),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,i="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=i.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(r<t.length))break;i=t[r],o=n(i,e),s=0,r+=1}}}}getLineWords(e,t){const n=this._lines[e-1],r=this._wordenize(n,t),i=[];for(const s of r)i.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return i}_wordenize(e,t){const n=[];let r;for(t.lastIndex=0;(r=t.exec(e))&&0!==r[0].length;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[n].substring(e.startColumn-1));for(let s=n+1;s<r;s++)i.push(this._lines[s]);return i.push(this._lines[r].substring(0,e.endColumn-1)),i.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,r=!1;if(t<1)t=1,n=1,r=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}}},8868:(e,t,n)=>{"use strict";n.r(t)},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>i,ITextResourcePropertiesService:()=>s});var r=n(3591);const i=(0,r.u1)("textResourceConfigurationService"),s=(0,r.u1)("textResourcePropertiesService")},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>r});const r=(0,n(3591).u1)("treeSitterParserService")},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>i,TreeViewsDnDService:()=>r});class r{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class i{constructor(e){this.identifier=e}}},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>o});var r=n(4621),i=n(3591),s=n(6723);const o=(0,i.u1)("treeViewsDndService");(0,r.v)(o,s.TreeViewsDnDService,1)},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var r=n(6677),i=n(7729),s=n(1508),o=n(6782),a=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,h=n?n.endLineNumber:e.getLineCount(),u=new c(t),d=u.getCandidateCodePoints();let g;var f;g="allNonBasicAscii"===d?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(f=Array.from(d),`[${s.bm(f.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new i.W5(null,g),p=[];let b,_=!1,k=0,v=0,C=0;e:for(let i=l,c=h;i<=c;i++){const t=e.getLineContent(i),n=t.length;m.reset(0);do{if(b=m.next(t),b){let e=b.index,l=b.index+b[0].length;if(e>0){const n=t.charCodeAt(e-1);s.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);s.pc(e)&&l++}const c=t.substring(e,l);let h=(0,a.Th)(e+1,a.Ld,t,0);h&&h.endColumn<=e+1&&(h=null);const d=u.shouldHighlightNonBasicASCII(c,h?h.word:null);if(0!==d){3===d?k++:2===d?v++:1===d?C++:(0,o.xb)(d);const t=1e3;if(p.length>=t){_=!0;break e}p.push(new r.Q(i,e+1,i,l+1))}}}while(b)}return{ranges:p,hasMore:_,ambiguousCharacterCount:k,invisibleCharacterCount:v,nonBasicAsciiCharacterCount:C}}static computeUnicodeHighlightReason(e,t){const n=new c(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),i=n.ambiguousCharacters.getPrimaryConfusable(r),o=s.tl.getLocales().filter((e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r)));return{kind:0,confusableWith:String.fromCodePoint(i),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class c{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,i=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=s.aC(o);r=r||t,t||this.ambiguousCharacters.isAmbiguous(e)||s.y_.isInvisibleCharacter(e)||(i=!0)}return!r&&i?0:this.options.invisibleCharacters&&!h(e)&&s.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},8209:(e,t,n)=>{"use strict";function r(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>r,kg:()=>o});const i="pseudo"===r()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const r=n[0],i=t[r];let s=e;return"string"===typeof i?s=i:"number"!==typeof i&&"boolean"!==typeof i&&void 0!==i&&null!==i||(s=String(i)),s})),i&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function o(e,t,...n){return s("number"===typeof e?a(e,t):t,n)}function a(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>i,pG:()=>r});const r=(0,n(3591).u1)("configurationService");function i(e){return e.replace(/[\[\]]/g,"")}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>h});var r=n(9861),i=n(1234),s=n(631),o=n(8209),a=n(4001),l=n(8748),c=n(6359);const h={Configuration:"base.contributions.configuration"},u={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},b="vscode://schemas/settings/resourceLanguage",_=c.O.as(l.F.JSONContribution);const k="\\[([^\\]]+)\\]",v=new RegExp(k,"g"),C=`^(${k})+$`,y=new RegExp(C);function L(e){const t=[];if(y.test(e)){let n=v.exec(e);for(;n?.length;){const r=n[1].trim();r&&t.push(r),n=v.exec(e)}}return(0,r.dM)(t)}const w=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new i.vl,this._onDidUpdateConfiguration=new i.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},_.registerSchema(b,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),_.registerSchema(b,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:r,source:i}of e)for(const e in r){t.add(e);const s=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=r[e];if(s.configurationDefaultOverrides.push({value:o,source:i}),y.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,i,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,i),n.push(...L(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,i,s.configurationDefaultOverrideValue);if(!t)continue;s.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const r={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:b,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=r,this.defaultLanguageConfigurationOverridesNode.properties[e]=r}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,r){const i=r?.value||{},o=r?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const r=t[e];if(s.Gv(r)&&(s.b0(i[e])||s.Gv(i[e]))){if(i[e]={...i[e]??{},...r},n)for(const t in r)o.set(`${e}.${t}`,n)}else i[e]=r,n?o.set(e,n):o.delete(e)}return{value:i,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,r){const i=this.configurationProperties[e],o=r?.value??i?.defaultDefaultValue;let a=n;if(s.Gv(t)&&(void 0!==i&&"object"===i.type||void 0===i&&(s.b0(o)||s.Gv(o)))){if(a=r?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const r in t)n&&a.set(`${e}.${r}`,n);t={...s.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,r,i=3,o){i=s.z(e.scope)?i:e.scope;const a=e.properties;if(a)for(const c in a){const e=a[c];t&&S(c,e)?delete a[c]:(e.source=n,e.defaultDefaultValue=a[c].default,this.updatePropertyDefaultValue(c,e),y.test(c)?e.scope=void 0:(e.scope=s.z(e.scope)?i:e.scope,e.restricted=s.z(e.restricted)?!!r?.includes(c):e.restricted),!a[c].hasOwnProperty("included")||a[c].included?(this.configurationProperties[c]=a[c],a[c].policy?.name&&this.policyConfigurations.set(a[c].policy.name,c),!a[c].deprecationMessage&&a[c].markdownDeprecationMessage&&(a[c].deprecationMessage=a[c].markdownDeprecationMessage),o.add(c)):(this.excludedConfigurationProperties[c]=a[c],delete a[c]))}const l=e.allOf;if(l)for(const s of l)this.validateAndRegisterProperties(s,t,n,r,i,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const r=e.allOf;r?.forEach(t)};t(e)}updateSchema(e,t){switch(u.properties[e]=t,t.scope){case 1:d.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:f.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:p.properties[e]=t;break;case 5:p.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};this.updatePropertyDefaultValue(t,n),u.properties[t]=n,d.properties[t]=n,g.properties[t]=n,f.properties[t]=n,m.properties[t]=n,p.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};u.patternProperties[C]=e,d.patternProperties[C]=e,g.patternProperties[C]=e,f.patternProperties[C]=e,m.patternProperties[C]=e,p.patternProperties[C]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let r,i;!n||t.disallowConfigurationDefault&&n.source||(r=n.value,i=n.source),s.b0(r)&&(r=t.defaultDefaultValue,i=void 0),s.b0(r)&&(r=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=r,t.defaultValueSource=i}};function S(e,t){return e.trim()?y.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==w.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==w.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,w.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}c.O.add(h.Configuration,w)},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});class r{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const i=[];function s(e,t,n){t instanceof r||(t=new r(t,[],Boolean(n))),i.push([e,t])}},3591:(e,t,n)=>{"use strict";var r;n.d(t,{_Y:()=>i,u1:()=>s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(r||(r={}));const i=s("instantiationService");function s(e){if(r.serviceIds.has(e))return r.serviceIds.get(e);const t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[r.DI_TARGET]===t?t[r.DI_DEPENDENCIES].push({id:e,index:n}):(t[r.DI_DEPENDENCIES]=[{id:e,index:n}],t[r.DI_TARGET]=t)}(t,e,i)};return t.toString=()=>e,r.serviceIds.set(e,t),t}},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(1234),i=n(6359);const s={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new r.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};i.O.add(s.JSONContribution,o)},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>Q,$b:()=>J});n(1234);var r=n(1484),i=n(8067),s=n(1508),o=n(4383),a=n(8209);function l(...e){switch(e.length){case 1:return(0,a.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,a.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,a.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const c=(0,a.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),h=(0,a.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class u{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),r={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(r)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=u._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(c):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(h);const r=this._input.charCodeAt(e);if(t)t=!1;else{if(47===r&&!n){e++;break}91===r?n=!0:92===r?t=!0:93===r&&(n=!1)}e++}for(;e<this._input.length&&u._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const r=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:r,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var d=n(3591);const g=new Map;g.set("false",!1),g.set("true",!0),g.set("isMac",i.zx),g.set("isLinux",i.j9),g.set("isWindows",i.uF),g.set("isWeb",i.HZ),g.set("isMacNative",i.zx&&!i.HZ),g.set("isEdge",i.UP),g.set("isFirefox",i.gm),g.set("isChrome",i.H8),g.set("isSafari",i.nr);const f=Object.prototype.hasOwnProperty,m={regexParsingWithErrorRecovery:!0},p=(0,a.kg)("contextkey.parser.error.emptyString","Empty context key expression"),b=(0,a.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,a.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),k=(0,a.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),v=(0,a.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),C=(0,a.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),y=(0,a.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),L=(0,a.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class w{static{this._parseError=new Error}constructor(e=m){this._config=e,this._scanner=new u,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?C:void 0;throw this._parsingErrors.push({message:v,offset:e.offset,lexeme:u.getLexeme(e),additionalInfo:t}),w._parseError}return e}catch(t){if(t!==w._parseError)throw t;return}}else this._parsingErrors.push({message:p,offset:0,lexeme:"",additionalInfo:b})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:S.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:S.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),E.INSTANCE;case 12:return this._advance(),N.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,k),e?.negate()}case 17:return this._advance(),R.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),S.true();case 12:return this._advance(),S.false();case 0:{this._advance();const e=this._expr();return this._consume(1,k),e}case 17:{const r=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,i=n.lastIndexOf("/"),s=i===n.length-1?void 0:this._removeFlagsGY(n.substring(i+1));let o;try{o=new RegExp(n.substring(1,i),s)}catch(t){throw this._errExpectedButGot("REGEX",e)}return z.create(r,o)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let i=this._peek(),s=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--;for(;!this._isAtEnd()&&15!==i.type&&16!==i.type;){switch(i.type){case 0:s++;break;case 1:s--;break;case 10:case 18:for(let t=0;t<i.lexeme.length;t++)40===i.lexeme.charCodeAt(t)?s++:41===e.lexeme.charCodeAt(t)&&s--}if(s<0)break;n.push(u.getLexeme(i)),this._advance(),i=this._peek()}const o=n.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let c;try{c=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return S.regex(r,c)}case 18:{const t=e.lexeme;this._advance();let i=null;if(!(0,s.AV)(t)){const r=t.indexOf("/"),s=t.lastIndexOf("/");if(r!==s&&r>=0){const o=t.slice(r+1,s),a="i"===t[s+1]?"i":"";try{i=new RegExp(o,a)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===i)throw this._errExpectedButGot("REGEX",e);return z.create(r,i)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);const e=this._value();return S.notIn(r,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return S.equals(r,e);switch(e){case"true":return S.has(r);case"false":return S.not(r);default:return S.equals(r,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return S.notEquals(r,e);switch(e){case"true":return S.not(r);case"false":return S.has(r);default:return S.notEquals(r,e)}}case 5:return this._advance(),P.create(r,this._value());case 6:return this._advance(),V.create(r,this._value());case 7:return this._advance(),B.create(r,this._value());case 8:return this._advance(),F.create(r,this._value());case 13:return this._advance(),S.in(r,this._value());default:return S.has(r)}}case 20:throw this._parsingErrors.push({message:y,offset:e.offset,lexeme:"",additionalInfo:L}),w._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const r=(0,a.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,u.getLexeme(t)),i=t.offset,s=u.getLexeme(t);return this._parsingErrors.push({message:r,offset:i,lexeme:s,additionalInfo:n}),w._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class S{static false(){return E.INSTANCE}static true(){return N.INSTANCE}static has(e){return T.create(e)}static equals(e,t){return A.create(e,t)}static notEquals(e,t){return M.create(e,t)}static regex(e,t){return z.create(e,t)}static in(e,t){return I.create(e,t)}static notIn(e,t){return O.create(e,t)}static not(e){return R.create(e)}static and(...e){return W.create(e,null,!0)}static or(...e){return U.create(e,null,!0)}static{this._parser=new w({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function x(e,t){return e.cmp(t)}class E{static{this.INSTANCE=new E}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}class N{static{this.INSTANCE=new N}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return E.INSTANCE}}class T{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?N.INSTANCE:E.INSTANCE:new T(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?N.INSTANCE:E.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this)),this.negated}}class A{static create(e,t,n=null){if("boolean"===typeof t)return t?T.create(e,n):R.create(e,n);const r=g.get(e);if("boolean"===typeof r){return t===(r?"true":"false")?N.INSTANCE:E.INSTANCE}return new A(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?N.INSTANCE:E.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this.value,this)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&f.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=O.create(this.key,this.valueKey)),this.negated}}class O{static create(e,t){return new O(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=I.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class M{static create(e,t,n=null){if("boolean"===typeof t)return t?R.create(e,n):T.create(e,n);const r=g.get(e);if("boolean"===typeof r){return t===(r?"true":"false")?E.INSTANCE:N.INSTANCE}return new M(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=g.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?E.INSTANCE:N.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class R{static create(e,t=null){const n=g.get(e);return"boolean"===typeof n?n?E.INSTANCE:N.INSTANCE:new R(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:H(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=g.get(this.key);return"boolean"===typeof e?e?E.INSTANCE:N.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this)),this.negated}}function D(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):E.INSTANCE}class B{static create(e,t,n=null){return D(t,(t=>new B(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,n=null){return D(t,(t=>new F(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class P{static create(e,t,n=null){return D(t,(t=>new P(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class V{static create(e,t,n=null){return D(t,(t=>new V(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class z{static create(e,t){return new z(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=j.create(this)),this.negated}}class j{static create(e){return new j(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function q(e){let t=null;for(let n=0,r=e.length;n<r;n++){const r=e[n].substituteConstants();if(e[n]!==r&&null===t){t=[];for(let r=0;r<n;r++)t[r]=e[r]}null!==t&&(t[n]=r)}return null===t?e:t}class W{static create(e,t,n){return W._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=x(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=q(this.expr);return e===this.expr?this:W.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const r=[];let i=!1;for(const s of e)if(s)if(1!==s.type){if(0===s.type)return E.INSTANCE;6!==s.type?r.push(s):r.push(...s.expr)}else i=!0;if(0===r.length&&i)return N.INSTANCE;if(0!==r.length){if(1===r.length)return r[0];r.sort(x);for(let e=1;e<r.length;e++)r[e-1].equals(r[e])&&(r.splice(e,1),e--);if(1===r.length)return r[0];for(;r.length>1;){const e=r[r.length-1];if(9!==e.type)break;r.pop();const t=r.pop(),i=0===r.length,s=U.create(e.expr.map((e=>W.create([e,t],null,n))),null,i);s&&(r.push(s),r.sort(x))}if(1===r.length)return r[0];if(n){for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)if(r[e].negate().equals(r[t]))return E.INSTANCE;if(1===r.length)return r[0]}return new W(r,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,n){return U._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=x(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=q(this.expr);return e===this.expr?this:U.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let r=[],i=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return N.INSTANCE;9!==n.type?r.push(n):r=r.concat(n.expr)}else i=!0}if(0===r.length&&i)return E.INSTANCE;r.sort(x)}if(0!==r.length){if(1===r.length)return r[0];for(let e=1;e<r.length;e++)r[e-1].equals(r[e])&&(r.splice(e,1),e--);if(1===r.length)return r[0];if(n){for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)if(r[e].negate().equals(r[t]))return N.INSTANCE;if(1===r.length)return r[0]}return new U(r,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),r=[];for(const e of G(t))for(const t of G(n))r.push(W.create([e,t],null,!1));e.unshift(U.create(r,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class $ extends T{static{this._info=[]}static all(){return $._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?$._info.push({...n,key:e}):!0!==n&&$._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return A.create(this.key,e)}}(0,d.u1)("contextKeyService");function H(e,t){return e<t?-1:e>t?1:0}function K(e,t,n,r){return e<n?-1:e>n?1:t<r?-1:t>r?1:0}function G(e){return 9===e.type?e.expr:[e]}const Q=(0,d.u1)("logService");var J;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(J||(J={}));J.Info;r.jG;new $("logLevel",function(e){switch(e){case J.Trace:return"trace";case J.Debug:return"debug";case J.Info:return"info";case J.Warning:return"warn";case J.Error:return"error";case J.Off:return"off"}}(J.Info))},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(6782),i=n(631);const s=new class{constructor(){this.data=new Map}add(e,t){r.ok(i.Kg(e)),r.ok(i.Gv(t)),r.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>S,b1q:()=>w,YtV:()=>I,Ubg:()=>q,IIb:()=>z,pOz:()=>V,whs:()=>B,Stt:()=>P,Hng:()=>F,yLC:()=>le,KoI:()=>oe,uMG:()=>ae,x1A:()=>u});var r=n(6782),i=n(1940),s=n(7661),o=n(1234),a=n(8748),l=n(6359),c=n(8209);const h=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,r=!1,i){const s={id:e,description:n,defaults:t,needsTransparency:r,deprecationMessage:i};this.colorsById[e]=s;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return i&&(o.deprecationMessage=i),r&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=c.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[o,{type:"string",const:"default",description:c.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return b(null!==(r=n.defaults)&&"object"===typeof r&&"light"in r&&"dark"in r?n.defaults[t.type]:n.defaults,t)}var r}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,r=-1===t.indexOf(".")?0:1;return n!==r?n-r:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function u(e,t,n,r,i){return h.registerColor(e,t,n,r,i)}function d(e,t){return{op:0,value:e,factor:t}}function g(e,t){return{op:1,value:e,factor:t}}function f(e,t){return{op:2,value:e,factor:t}}function m(...e){return{op:4,values:e}}function p(e,t,n,r){return{op:5,value:e,background:t,factor:n,transparency:r}}function b(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?s.Q1.fromHex(e):t.getColor(e):e instanceof s.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return b(e.value,t)?.darken(e.factor);case 1:return b(e.value,t)?.lighten(e.factor);case 2:return b(e.value,t)?.transparent(e.factor);case 3:{const n=b(e.background,t);return n?b(e.value,t)?.makeOpaque(n):b(e.value,t)}case 4:for(const n of e.values){const e=b(n,t);if(e)return e}return;case 6:return b(t.defines(e.if)?e.then:e.else,t);case 5:{const n=b(e.value,t);if(!n)return;const r=b(e.background,t);return r?n.isDarkerThan(r)?s.Q1.getLighterColor(n,r,e.factor).transparent(e.transparency):s.Q1.getDarkerColor(n,r,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,r.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",h);const _="vscode://schemas/workbench-colors",k=l.O.as(a.F.JSONContribution);k.registerSchema(_,h.getColorSchema());const v=new i.uC((()=>k.notifySchemaChanged(_)),200);h.onDidChangeSchema((()=>{v.isScheduled()||v.schedule()}));const C=u("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),y=(u("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},c.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),u("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),u("descriptionForeground",{light:"#717171",dark:f(C,.7),hcDark:f(C,.7),hcLight:f(C,.7)},c.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),u("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("iconForeground","The default color for icons in the workbench."))),L=u("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},c.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),w=u("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},c.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),S=u("contrastActiveBorder",{light:null,dark:null,hcDark:L,hcLight:L},c.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),x=(u("selection.background",null,c.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),u("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkForeground","Foreground color for links in text.")),u("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),u("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:s.Q1.black,hcLight:"#292929"},c.kg("textSeparatorForeground","Color for text separators.")),u("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},c.kg("textPreformatForeground","Foreground color for preformatted text segments.")),u("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},c.kg("textPreformatBackground","Background color for preformatted text segments.")),u("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},c.kg("textBlockQuoteBackground","Background color for block quotes in text.")),u("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:s.Q1.white,hcLight:"#292929"},c.kg("textBlockQuoteBorder","Border color for block quotes in text.")),u("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:s.Q1.black,hcLight:"#F2F2F2"},c.kg("textCodeBlockBackground","Background color for code blocks in text.")),u("sash.hoverBorder",L,c.kg("sashActiveBorder","Border color of active sashes.")),u("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},c.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),E=(u("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},c.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),u("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},c.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),N=u("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:f(w,.6),hcLight:f(w,.4)},c.kg("scrollbarSliderBackground","Scrollbar slider background color.")),T=u("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:f(w,.8),hcLight:f(w,.8)},c.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),A=u("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:w,hcLight:w},c.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),I=(u("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:w,hcLight:w},c.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),u("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("editorBackground","Editor background color."))),O=(u("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:C},c.kg("editorForeground","Editor default foreground color.")),u("editorStickyScroll.background",I,c.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),u("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),u("editorStickyScroll.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),u("editorStickyScroll.shadow",E,c.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),u("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},c.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),M=u("editorWidget.foreground",C,c.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),R=u("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:w,hcLight:w},c.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),D=(u("editorWidget.resizeBorder",null,c.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),u("editorError.background",null,c.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),B=(u("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},c.kg("errorBorder","If set, color of double underlines for errors in the editor.")),u("editorWarning.background",null,c.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),F=u("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},c.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),P=u("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},c.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),V=(u("editorInfo.background",null,c.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},c.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),z=u("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},c.kg("infoBorder","If set, color of double underlines for infos in the editor.")),j=(u("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},c.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),u("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},c.kg("hintBorder","If set, color of double underlines for hints in the editor.")),u("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},c.kg("activeLinkForeground","Color of active links.")),u("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},c.kg("editorSelectionBackground","Color of the editor selection."))),q=(u("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},c.kg("editorSelectionForeground","Color of the selected text for high contrast.")),u("editor.inactiveSelectionBackground",{light:f(j,.5),dark:f(j,.5),hcDark:f(j,.7),hcLight:f(j,.5)},c.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBackground",{light:p(j,I,.3,.6),dark:p(j,I,.3,.6),hcDark:null,hcLight:null},c.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},c.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),u("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},c.kg("editorFindMatch","Color of the current search match.")),u("editor.findMatchForeground",null,c.kg("editorFindMatchForeground","Text color of the current search match.")),u("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},c.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),W=(u("editor.findMatchHighlightForeground",null,c.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),u("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},c.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.findMatchBorder",{light:null,dark:null,hcDark:S,hcLight:S},c.kg("editorFindMatchBorder","Border color of the current search match.")),u("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:S,hcLight:S},c.kg("findMatchHighlightBorder","Border color of the other search matches."))),U=(u("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:f(S,.4),hcLight:f(S,.4)},c.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},c.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorHoverWidget.background",O,c.kg("hoverBackground","Background color of the editor hover."))),$=(u("editorHoverWidget.foreground",M,c.kg("hoverForeground","Foreground color of the editor hover.")),u("editorHoverWidget.border",R,c.kg("hoverBorder","Border color of the editor hover.")),u("editorHoverWidget.statusBarBackground",{dark:g(U,.2),light:d(U,.05),hcDark:O,hcLight:O},c.kg("statusBarBackground","Background color of the editor hover status bar.")),u("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},c.kg("editorInlayHintForeground","Foreground color of inline hints"))),H=u("editorInlayHint.background",{dark:f(x,.1),light:f(x,.1),hcDark:f(s.Q1.white,.1),hcLight:f(x,.1)},c.kg("editorInlayHintBackground","Background color of inline hints")),K=(u("editorInlayHint.typeForeground",$,c.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),u("editorInlayHint.typeBackground",H,c.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),u("editorInlayHint.parameterForeground",$,c.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),u("editorInlayHint.parameterBackground",H,c.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),u("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},c.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),G=(u("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},c.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),u("editorLightBulbAi.foreground",K,c.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),u("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},c.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),u("editor.snippetTabstopHighlightBorder",null,c.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),u("editor.snippetFinalTabstopHighlightBackground",null,c.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),u("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},c.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new s.Q1(new s.bU(155,185,85,.2))),Q=new s.Q1(new s.bU(255,0,0,.2)),J=(u("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},c.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},c.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.insertedLineBackground",{dark:G,light:G,hcDark:null,hcLight:null},c.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedLineBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},c.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditorGutter.insertedLineBackground",null,c.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),u("diffEditorGutter.removedLineBackground",null,c.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),u("diffEditorOverview.insertedForeground",null,c.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),u("diffEditorOverview.removedForeground",null,c.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),u("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},c.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),u("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},c.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),u("diffEditor.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("diffEditorBorder","Border color between the two text editors.")),u("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},c.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),u("diffEditor.unchangedRegionBackground","sideBar.background",c.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedRegionForeground","foreground",c.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},c.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),u("widget.shadow",{dark:f(s.Q1.black,.36),light:f(s.Q1.black,.16),hcDark:null,hcLight:null},c.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),X=(u("widget.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),u("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),Y=(u("toolbar.hoverOutline",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),u("toolbar.activeBackground",{dark:g(X,.1),light:d(X,.1),hcDark:null,hcLight:null},c.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),u("breadcrumb.foreground",f(C,.8),c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.background",I,c.kg("breadcrumbsBackground","Background color of breadcrumb items.")),u("breadcrumb.focusForeground",{light:d(C,.2),dark:g(C,.1),hcDark:g(C,.1),hcLight:g(C,.1)},c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.activeSelectionForeground",{light:d(C,.2),dark:g(C,.1),hcDark:g(C,.1),hcLight:g(C,.1)},c.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),u("breadcrumbPicker.background",O,c.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),s.Q1.fromHex("#40C8AE").transparent(.5)),Z=s.Q1.fromHex("#40A6FF").transparent(.5),ee=s.Q1.fromHex("#606060").transparent(.4),te=u("merge.currentHeaderBackground",{dark:Y,light:Y,hcDark:null,hcLight:null},c.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(u("merge.currentContentBackground",f(te,.4),c.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.incomingHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},c.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(u("merge.incomingContentBackground",f(ne,.4),c.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},c.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),ie=(u("merge.commonContentBackground",f(re,.4),c.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},c.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),se=(u("editorOverviewRuler.currentContentForeground",{dark:f(te,1),light:f(te,1),hcDark:ie,hcLight:ie},c.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.incomingContentForeground",{dark:f(ne,1),light:f(ne,1),hcDark:ie,hcLight:ie},c.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.commonContentForeground",{dark:f(re,1),light:f(re,1),hcDark:ie,hcLight:ie},c.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},c.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",c.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u("problemsErrorIcon.foreground",D,c.kg("problemsErrorIconForeground","The color used for the problems error icon.")),u("problemsWarningIcon.foreground",F,c.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),u("problemsInfoIcon.foreground",V,c.kg("problemsInfoIconForeground","The color used for the problems info icon.")),u("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},c.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),oe=(u("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),u("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),u("minimap.infoHighlight",{dark:V,light:V,hcDark:z,hcLight:z},c.kg("minimapInfo","Minimap marker color for infos."))),ae=u("minimap.warningHighlight",{dark:F,light:F,hcDark:P,hcLight:P},c.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=u("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},c.kg("minimapError","Minimap marker color for errors.")),ce=(u("minimap.background",null,c.kg("minimapBackground","Minimap background color.")),u("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),c.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),u("minimapSlider.background",f(N,.5),c.kg("minimapSliderBackground","Minimap slider background color.")),u("minimapSlider.hoverBackground",f(T,.5),c.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),u("minimapSlider.activeBackground",f(A,.5),c.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),u("charts.foreground",C,c.kg("chartsForeground","The foreground color used in charts.")),u("charts.lines",f(C,.5),c.kg("chartsLines","The color used for horizontal lines in charts.")),u("charts.red",D,c.kg("chartsRed","The red color used in chart visualizations.")),u("charts.blue",V,c.kg("chartsBlue","The blue color used in chart visualizations.")),u("charts.yellow",F,c.kg("chartsYellow","The yellow color used in chart visualizations.")),u("charts.orange",se,c.kg("chartsOrange","The orange color used in chart visualizations.")),u("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},c.kg("chartsGreen","The green color used in chart visualizations.")),u("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},c.kg("chartsPurple","The purple color used in chart visualizations.")),u("input.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputBoxBackground","Input box background.")),u("input.foreground",C,c.kg("inputBoxForeground","Input box foreground.")),u("input.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("inputBoxBorder","Input box border.")),u("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:w,hcLight:w},c.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),he=u("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),ue=u("inputOption.activeBackground",{dark:f(L,.4),light:f(L,.2),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},c.kg("inputOption.activeBackground","Background hover color of options in input fields.")),de=u("inputOption.activeForeground",{dark:s.Q1.white,light:s.Q1.black,hcDark:C,hcLight:C},c.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),ge=(u("input.placeholderForeground",{light:f(C,.5),dark:f(C,.5),hcDark:f(C,.7),hcLight:f(C,.7)},c.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),u("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationInfoBackground","Input validation background color for information severity.")),u("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:C},c.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),u("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:w,hcLight:w},c.kg("inputValidationInfoBorder","Input validation border color for information severity.")),u("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),u("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:C},c.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),u("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:w,hcLight:w},c.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),u("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("inputValidationErrorBackground","Input validation background color for error severity.")),u("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:C},c.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),u("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},c.kg("inputValidationErrorBorder","Input validation border color for error severity.")),u("dropdown.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("dropdownBackground","Dropdown background."))),fe=(u("dropdown.listBackground",{dark:null,light:null,hcDark:s.Q1.black,hcLight:s.Q1.white},c.kg("dropdownListBackground","Dropdown list background.")),u("dropdown.foreground",{dark:"#F0F0F0",light:C,hcDark:s.Q1.white,hcLight:C},c.kg("dropdownForeground","Dropdown foreground."))),me=u("dropdown.border",{dark:ge,light:"#CECECE",hcDark:w,hcLight:w},c.kg("dropdownBorder","Dropdown border.")),pe=u("button.foreground",s.Q1.white,c.kg("buttonForeground","Button foreground color.")),be=(u("button.separator",f(pe,.4),c.kg("buttonSeparator","Button separator color.")),u("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},c.kg("buttonBackground","Button background color."))),_e=(u("button.hoverBackground",{dark:g(be,.2),light:d(be,.2),hcDark:be,hcLight:be},c.kg("buttonHoverBackground","Button background color when hovering.")),u("button.border",w,c.kg("buttonBorder","Button border color.")),u("button.secondaryForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:C},c.kg("buttonSecondaryForeground","Secondary button foreground color.")),u("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:s.Q1.white},c.kg("buttonSecondaryBackground","Secondary button background color."))),ke=(u("button.secondaryHoverBackground",{dark:g(_e,.2),light:d(_e,.2),hcDark:null,hcLight:null},c.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),u("radio.activeForeground",de,c.kg("radioActiveForeground","Foreground color of active radio option."))),ve=(u("radio.activeBackground",ue,c.kg("radioBackground","Background color of active radio option.")),u("radio.activeBorder",ce,c.kg("radioActiveBorder","Border color of the active radio option.")),u("radio.inactiveForeground",null,c.kg("radioInactiveForeground","Foreground color of inactive radio option.")),u("radio.inactiveBackground",null,c.kg("radioInactiveBackground","Background color of inactive radio option.")),u("radio.inactiveBorder",{light:f(ke,.2),dark:f(ke,.2),hcDark:f(ke,.4),hcLight:f(ke,.2)},c.kg("radioInactiveBorder","Border color of the inactive radio option.")),u("radio.inactiveHoverBackground",he,c.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),u("checkbox.background",ge,c.kg("checkbox.background","Background color of checkbox widget.")),u("checkbox.selectBackground",O,c.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),u("checkbox.foreground",fe,c.kg("checkbox.foreground","Foreground color of checkbox widget.")),u("checkbox.border",me,c.kg("checkbox.border","Border color of checkbox widget.")),u("checkbox.selectBorder",y,c.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),u("keybindingLabel.background",{dark:new s.Q1(new s.bU(128,128,128,.17)),light:new s.Q1(new s.bU(221,221,221,.4)),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},c.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.foreground",{dark:s.Q1.fromHex("#CCCCCC"),light:s.Q1.fromHex("#555555"),hcDark:s.Q1.white,hcLight:C},c.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.border",{dark:new s.Q1(new s.bU(51,51,51,.6)),light:new s.Q1(new s.bU(204,204,204,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:w},c.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.bottomBorder",{dark:new s.Q1(new s.bU(68,68,68,.6)),light:new s.Q1(new s.bU(187,187,187,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:C},c.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),u("list.focusBackground",null,c.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusForeground",null,c.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusOutline",{dark:L,light:L,hcDark:S,hcLight:S},c.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusAndSelectionOutline",null,c.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),u("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),Ce=u("list.activeSelectionForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:null,hcLight:null},c.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ye=u("list.activeSelectionIconForeground",null,c.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Le=(u("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionForeground",null,c.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionIconForeground",null,c.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusBackground",null,c.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusOutline",null,c.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Q1.white.transparent(.1),hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),u("list.hoverForeground",null,c.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),u("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},c.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),u("list.dropBetweenBackground",{dark:y,light:y,hcDark:null,hcLight:null},c.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),u("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:L,hcLight:L},c.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));u("list.focusHighlightForeground",{dark:Le,light:(we=ve,Se=Le,xe="#BBE7FF",{op:6,if:we,then:Se,else:xe}),hcDark:Le,hcLight:Le},c.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var we,Se,xe;u("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},c.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),u("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},c.kg("listErrorForeground","Foreground color of list items containing errors.")),u("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},c.kg("listWarningForeground","Foreground color of list items containing warnings.")),u("listFilterWidget.background",{light:d(O,0),dark:g(O,0),hcDark:O,hcLight:O},c.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),u("listFilterWidget.outline",{dark:s.Q1.transparent,light:s.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},c.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),u("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:w,hcLight:w},c.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),u("listFilterWidget.shadow",J,c.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),u("list.filterMatchBackground",{dark:q,light:q,hcDark:null,hcLight:null},c.kg("listFilterMatchHighlight","Background color of the filtered match.")),u("list.filterMatchBorder",{dark:W,light:W,hcDark:w,hcLight:S},c.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),u("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},c.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const Ee=u("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},c.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ne=(u("tree.inactiveIndentGuidesStroke",f(Ee,.4),c.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),u("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},c.kg("tableColumnsBorder","Table border color between columns.")),u("tree.tableOddRowsBackground",{dark:f(C,.04),light:f(C,.04),hcDark:null,hcLight:null},c.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),u("editorActionList.background",O,c.kg("editorActionListBackground","Action List background color.")),u("editorActionList.foreground",M,c.kg("editorActionListForeground","Action List foreground color.")),u("editorActionList.focusForeground",Ce,c.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),u("editorActionList.focusBackground",ve,c.kg("editorActionListFocusBackground","Action List background color for the focused item.")),u("menu.border",{dark:null,light:null,hcDark:w,hcLight:w},c.kg("menuBorder","Border color of menus.")),u("menu.foreground",fe,c.kg("menuForeground","Foreground color of menu items.")),u("menu.background",ge,c.kg("menuBackground","Background color of menu items.")),u("menu.selectionForeground",Ce,c.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),u("menu.selectionBackground",ve,c.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),u("menu.selectionBorder",{dark:null,light:null,hcDark:S,hcLight:S},c.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),u("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:w,hcLight:w},c.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),u("quickInput.background",O,c.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),u("quickInput.foreground",M,c.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),u("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},c.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),u("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupForeground","Quick picker color for grouping labels.")),u("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupBorder","Quick picker color for grouping borders.")),u("quickInput.list.focusBackground",null,"",void 0,c.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));u("quickInputList.focusForeground",Ce,c.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),u("quickInputList.focusIconForeground",ye,c.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),u("quickInputList.focusBackground",{dark:m(Ne,ve),light:m(Ne,ve),hcDark:null,hcLight:null},c.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),u("search.resultsInfoForeground",{light:C,dark:f(C,.65),hcDark:C,hcLight:C},c.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),u("searchEditor.findMatchBackground",{light:f(q,.66),dark:f(q,.66),hcDark:q,hcLight:q},c.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),u("searchEditor.findMatchBorder",{light:f(W,.66),dark:f(W,.66),hcDark:W,hcLight:W},c.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>u,Yf:()=>c});var r,i=n(1234),s=n(1484),o=n(3591),a=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(r||(r={}));const l=(0,o.u1)("themeService");function c(e){return{id:e}}const h=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new i.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function u(e){return h.onColorThemeChange(e)}a.O.add("base.contributions.theming",h);s.jG},5890:(e,t,n)=>{var r={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function i(e){return Promise.resolve().then((()=>{if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(r[e])}))}i.keys=()=>Object.keys(r),i.id=5890,e.exports=i},9204:(e,t,n)=>{var r={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function i(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(i)))}i.keys=()=>Object.keys(r),i.id=9204,e.exports=i},7614:(e,t,n)=>{var r={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function i(e){var t=s(e);return n(t)}function s(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=s,e.exports=i,i.id=7614}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.e=()=>Promise.resolve(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),r=n(718);let i=!1;function s(n){if(i)return;i=!0;const s=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(r.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{s.onmessage(e.data)}}function o(e,t=!1){const n=e.length;let r=0,i="",s=0,o=16,h=0,u=0,d=0,g=0,f=0;function m(t,n){let i=0,s=0;for(;i<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)s=16*s+t-48;else if(t>=65&&t<=70)s=16*s+t-65+10;else{if(!(t>=97&&t<=102))break;s=16*s+t-97+10}r++,i++}return i<t&&(s=-1),s}function p(){if(i="",f=0,s=r,u=h,g=d,r>=n)return s=n,o=17;let t=e.charCodeAt(r);if(a(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(a(t));return o=15}if(l(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),h++,d=r,o=14;switch(t){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=function(){let t="",i=r;for(;;){if(r>=n){t+=e.substring(i,r),f=2;break}const s=e.charCodeAt(r);if(34===s){t+=e.substring(i,r),r++;break}if(92!==s){if(s>=0&&s<=31){if(l(s)){t+=e.substring(i,r),f=2;break}f=6}r++}else{if(t+=e.substring(i,r),r++,r>=n){f=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=m(4,!0);e>=0?t+=String.fromCharCode(e):f=4;break;default:f=5}i=r}}return t}(),o=10;case 47:const a=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!l(e.charCodeAt(r));)r++;return i=e.substring(a,r),o=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let s=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,s=!0;break}r++,l(t)&&(13===t&&10===e.charCodeAt(r)&&r++,h++,d=r)}return s||(r++,f=1),i=e.substring(a,r),o=13}return i+=String.fromCharCode(t),r++,o=16;case 45:if(i+=String.fromCharCode(t),r++,r===n||!c(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&c(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&c(e.charCodeAt(r))))return f=3,e.substring(t,r);for(r++;r<e.length&&c(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&c(e.charCodeAt(r))){for(r++;r<e.length&&c(e.charCodeAt(r));)r++;n=r}else f=3;return e.substring(t,n)}(),o=11;default:for(;r<n&&b(t);)r++,t=e.charCodeAt(r);if(s!==r){switch(i=e.substring(s,r),i){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return i+=String.fromCharCode(t),r++,o=16}}function b(e){if(a(e)||l(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,i="",s=0,o=16,f=0},getPosition:()=>r,scan:t?function(){let e;do{e=p()}while(e>=12&&e<=15);return e}:p,getToken:()=>o,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>u,getTokenStartCharacter:()=>s-g,getTokenError:()=>f}}function a(e){return 32===e||9===e}function l(e){return 10===e||13===e}function c(e){return e>=48&&e<=57}var h,u;globalThis.onmessage=e=>{i||s(null)},(u=h||(h={}))[u.lineFeed=10]="lineFeed",u[u.carriageReturn=13]="carriageReturn",u[u.space=32]="space",u[u._0=48]="_0",u[u._1=49]="_1",u[u._2=50]="_2",u[u._3=51]="_3",u[u._4=52]="_4",u[u._5=53]="_5",u[u._6=54]="_6",u[u._7=55]="_7",u[u._8=56]="_8",u[u._9=57]="_9",u[u.a=97]="a",u[u.b=98]="b",u[u.c=99]="c",u[u.d=100]="d",u[u.e=101]="e",u[u.f=102]="f",u[u.g=103]="g",u[u.h=104]="h",u[u.i=105]="i",u[u.j=106]="j",u[u.k=107]="k",u[u.l=108]="l",u[u.m=109]="m",u[u.n=110]="n",u[u.o=111]="o",u[u.p=112]="p",u[u.q=113]="q",u[u.r=114]="r",u[u.s=115]="s",u[u.t=116]="t",u[u.u=117]="u",u[u.v=118]="v",u[u.w=119]="w",u[u.x=120]="x",u[u.y=121]="y",u[u.z=122]="z",u[u.A=65]="A",u[u.B=66]="B",u[u.C=67]="C",u[u.D=68]="D",u[u.E=69]="E",u[u.F=70]="F",u[u.G=71]="G",u[u.H=72]="H",u[u.I=73]="I",u[u.J=74]="J",u[u.K=75]="K",u[u.L=76]="L",u[u.M=77]="M",u[u.N=78]="N",u[u.O=79]="O",u[u.P=80]="P",u[u.Q=81]="Q",u[u.R=82]="R",u[u.S=83]="S",u[u.T=84]="T",u[u.U=85]="U",u[u.V=86]="V",u[u.W=87]="W",u[u.X=88]="X",u[u.Y=89]="Y",u[u.Z=90]="Z",u[u.asterisk=42]="asterisk",u[u.backslash=92]="backslash",u[u.closeBrace=125]="closeBrace",u[u.closeBracket=93]="closeBracket",u[u.colon=58]="colon",u[u.comma=44]="comma",u[u.dot=46]="dot",u[u.doubleQuote=34]="doubleQuote",u[u.minus=45]="minus",u[u.openBrace=123]="openBrace",u[u.openBracket=91]="openBracket",u[u.plus=43]="plus",u[u.slash=47]="slash",u[u.formFeed=12]="formFeed",u[u.tab=9]="tab";var d,g=new Array(20).fill(0).map(((e,t)=>" ".repeat(t))),f=200,m={" ":{"\n":new Array(f).fill(0).map(((e,t)=>"\n"+" ".repeat(t))),"\r":new Array(f).fill(0).map(((e,t)=>"\r"+" ".repeat(t))),"\r\n":new Array(f).fill(0).map(((e,t)=>"\r\n"+" ".repeat(t)))},"\t":{"\n":new Array(f).fill(0).map(((e,t)=>"\n"+"\t".repeat(t))),"\r":new Array(f).fill(0).map(((e,t)=>"\r"+"\t".repeat(t))),"\r\n":new Array(f).fill(0).map(((e,t)=>"\r\n"+"\t".repeat(t)))}},p=["\n","\r","\r\n"];function b(e,t,n){let r,i,s,a,l;if(t){for(a=t.offset,l=a+t.length,s=a;s>0&&!k(e,s-1);)s--;let o=l;for(;o<e.length&&!k(e,o);)o++;i=e.substring(s,o),r=function(e,t){let n=0,r=0;const i=t.tabSize||4;for(;n<e.length;){let t=e.charAt(n);if(t===g[1])r++;else{if("\t"!==t)break;r+=i}n++}return Math.floor(r/i)}(i,n)}else i=e,r=0,s=0,a=0,l=e.length;const c=function(e,t){for(let n=0;n<t.length;n++){const e=t.charAt(n);if("\r"===e)return n+1<t.length&&"\n"===t.charAt(n+1)?"\r\n":"\r";if("\n"===e)return"\n"}return e&&e.eol||"\n"}(n,e),h=p.includes(c);let u,d=0,f=0;u=n.insertSpaces?g[n.tabSize||4]??_(g[1],n.tabSize||4):"\t";const b="\t"===u?"\t":" ";let v=o(i,!1),C=!1;function y(){if(d>1)return _(c,d)+_(u,r+f);const e=u.length*(r+f);return!h||e>m[b][c].length?c+_(u,r+f):e<=0?c:m[b][c][e]}function L(){let e=v.scan();for(d=0;15===e||14===e;)14===e&&n.keepLines?d+=1:14===e&&(d=1),e=v.scan();return C=16===e||0!==v.getTokenError(),e}const w=[];function S(n,r,i){C||t&&!(r<l&&i>a)||e.substring(r,i)===n||w.push({offset:r,length:i-r,content:n})}let x=L();if(n.keepLines&&d>0&&S(_(c,d),0,0),17!==x){let e=v.getTokenOffset()+s;S(u.length*r<20&&n.insertSpaces?g[u.length*r]:_(u,r),s,e)}for(;17!==x;){let e=v.getTokenOffset()+v.getTokenLength()+s,t=L(),r="",i=!1;for(;0===d&&(12===t||13===t);){let n=v.getTokenOffset()+s;S(g[1],e,n),e=v.getTokenOffset()+v.getTokenLength()+s,i=12===t,r=i?y():"",t=L()}if(2===t)1!==x&&f--,n.keepLines&&d>0||!n.keepLines&&1!==x?r=y():n.keepLines&&(r=g[1]);else if(4===t)3!==x&&f--,n.keepLines&&d>0||!n.keepLines&&3!==x?r=y():n.keepLines&&(r=g[1]);else{switch(x){case 3:case 1:f++,r=n.keepLines&&d>0||!n.keepLines?y():g[1];break;case 5:r=n.keepLines&&d>0||!n.keepLines?y():g[1];break;case 12:r=y();break;case 13:d>0?r=y():i||(r=g[1]);break;case 6:n.keepLines&&d>0?r=y():i||(r=g[1]);break;case 10:n.keepLines&&d>0?r=y():6!==t||i||(r="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&d>0?r=y():12!==t&&13!==t||i?5!==t&&17!==t&&(C=!0):r=g[1];break;case 16:C=!0}d>0&&(12===t||13===t)&&(r=y())}17===t&&(r=n.keepLines&&d>0?y():n.insertFinalNewline?c:"");S(r,e,v.getTokenOffset()+s),x=t}return w}function _(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function k(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}(d||(d={})).DEFAULT={allowTrailingComma:!1};var v,C,y,L,w=o;(C=v||(v={}))[C.None=0]="None",C[C.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",C[C.UnexpectedEndOfString=2]="UnexpectedEndOfString",C[C.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",C[C.InvalidUnicode=4]="InvalidUnicode",C[C.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",C[C.InvalidCharacter=6]="InvalidCharacter",(L=y||(y={}))[L.OpenBraceToken=1]="OpenBraceToken",L[L.CloseBraceToken=2]="CloseBraceToken",L[L.OpenBracketToken=3]="OpenBracketToken",L[L.CloseBracketToken=4]="CloseBracketToken",L[L.CommaToken=5]="CommaToken",L[L.ColonToken=6]="ColonToken",L[L.NullKeyword=7]="NullKeyword",L[L.TrueKeyword=8]="TrueKeyword",L[L.FalseKeyword=9]="FalseKeyword",L[L.StringLiteral=10]="StringLiteral",L[L.NumericLiteral=11]="NumericLiteral",L[L.LineCommentTrivia=12]="LineCommentTrivia",L[L.BlockCommentTrivia=13]="BlockCommentTrivia",L[L.LineBreakTrivia=14]="LineBreakTrivia",L[L.Trivia=15]="Trivia",L[L.Unknown=16]="Unknown",L[L.EOF=17]="EOF";var S,x,E,N,T,A,I,O,M,R,D,B,F,P,V,z,j,q,W,U,$,H,K,G,Q,J,X,Y,Z,ee,te,ne,re,ie,se,oe,ae,le,ce,he,ue,de,ge,fe,me,pe,be,_e,ke,ve,Ce,ye,Le,we,Se,xe,Ee,Ne,Te,Ae,Ie,Oe,Me,Re,De,Be,Fe,Pe,Ve,ze,je,qe,We,Ue,$e,He,Ke,Ge,Qe,Je,Xe,Ye,Ze,et,tt,nt,rt,it,st,ot,at,lt,ct,ht,ut,dt,gt,ft,mt,pt,bt,_t,kt,vt,Ct,yt,Lt,wt,St,xt,Et,Nt,Tt,At,It,Ot,Mt,Rt,Dt,Bt,Ft,Pt,Vt,zt,jt,qt,Wt,Ut,$t,Ht,Kt,Gt,Qt,Jt,Xt,Yt=function(e,t=[],n=d.DEFAULT){let r=null,i=[];const s=[];function a(e){Array.isArray(i)?i.push(e):null!==r&&(i[r]=e)}return function(e,t,n=d.DEFAULT){const r=o(e,!1),i=[];function s(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>i.slice())):()=>!0}function l(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function c(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>i.slice())):()=>!0}const h=a(t.onObjectBegin),u=c(t.onObjectProperty),g=s(t.onObjectEnd),f=a(t.onArrayBegin),m=s(t.onArrayEnd),p=c(t.onLiteralValue),b=l(t.onSeparator),_=s(t.onComment),k=l(t.onError),v=n&&n.disallowComments,C=n&&n.allowTrailingComma;function y(){for(;;){const e=r.scan();switch(r.getTokenError()){case 4:L(14);break;case 5:L(15);break;case 3:L(13);break;case 1:v||L(11);break;case 2:L(12);break;case 6:L(16)}switch(e){case 12:case 13:v?L(10):_();break;case 16:L(1);break;case 15:case 14:break;default:return e}}}function L(e,t=[],n=[]){if(k(e),t.length+n.length>0){let e=r.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){y();break}if(-1!==n.indexOf(e))break;e=y()}}}function w(e){const t=r.getTokenValue();return e?p(t):(u(t),i.push(t)),y(),!0}function S(){switch(r.getToken()){case 11:const e=r.getTokenValue();let t=Number(e);isNaN(t)&&(L(2),t=0),p(t);break;case 7:p(null);break;case 8:p(!0);break;case 9:p(!1);break;default:return!1}return y(),!0}function x(){return 10!==r.getToken()?(L(3,[],[2,5]),!1):(w(!1),6===r.getToken()?(b(":"),y(),T()||L(4,[],[2,5])):L(5,[],[2,5]),i.pop(),!0)}function E(){h(),y();let e=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||L(4,[],[]),b(","),y(),2===r.getToken()&&C)break}else e&&L(6,[],[]);x()||L(4,[],[2,5]),e=!0}return g(),2!==r.getToken()?L(7,[2],[]):y(),!0}function N(){f(),y();let e=!0,t=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||L(4,[],[]),b(","),y(),4===r.getToken()&&C)break}else t&&L(6,[],[]);e?(i.push(0),e=!1):i[i.length-1]++,T()||L(4,[],[4,5]),t=!0}return m(),e||i.pop(),4!==r.getToken()?L(8,[4],[]):y(),!0}function T(){switch(r.getToken()){case 3:return N();case 1:return E();case 10:return w(!0);default:return S()}}if(y(),17===r.getToken())return!!n.allowEmptyContent||(L(4,[],[]),!1);if(!T())return L(4,[],[]),!1;17!==r.getToken()&&L(9,[],[])}(e,{onObjectBegin:()=>{const e={};a(e),s.push(i),i=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{i=s.pop()},onArrayBegin:()=>{const e=[];a(e),s.push(i),i=e,r=null},onArrayEnd:()=>{i=s.pop()},onLiteralValue:a,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),i[0]},Zt=function e(t,n,r=!1){if(function(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}(t,n,r)){const i=t.children;if(Array.isArray(i))for(let t=0;t<i.length&&i[t].offset<=n;t++){const s=e(i[t],n,r);if(s)return s}return t}},en=function e(t){if(!t.parent||!t.parent.children)return[];const n=e(t.parent);if("property"===t.parent.type){const e=t.parent.children[0].value;n.push(e)}else if("array"===t.parent.type){const e=t.parent.children.indexOf(t);-1!==e&&n.push(e)}return n},tn=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":const n=Object.create(null);for(let r of t.children){const t=r.children[1];t&&(n[r.children[0].value]=e(t))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}};function nn(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!nn(e[n],t[n]))return!1}else{const i=[];for(r in e)i.push(r);i.sort();const s=[];for(r in t)s.push(r);if(s.sort(),!nn(i,s))return!1;for(n=0;n<i.length;n++)if(!nn(e[i[n]],t[i[n]]))return!1}return!0}function rn(e){return"number"===typeof e}function sn(e){return"undefined"!==typeof e}function on(e){return"boolean"===typeof e}function an(e){return"string"===typeof e}function ln(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)}function cn(e,t){const n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function hn(e){let t="";(function(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0})(e,"(?i)")&&(e=e.substring(4),t="i");try{return new RegExp(e,t+"u")}catch(n){try{return new RegExp(e,t)}catch(r){return}}}function un(e){let t=0;for(let n=0;n<e.length;n++){t++;const r=e.charCodeAt(n);55296<=r&&r<=56319&&n++}return t}(x=S||(S={}))[x.InvalidSymbol=1]="InvalidSymbol",x[x.InvalidNumberFormat=2]="InvalidNumberFormat",x[x.PropertyNameExpected=3]="PropertyNameExpected",x[x.ValueExpected=4]="ValueExpected",x[x.ColonExpected=5]="ColonExpected",x[x.CommaExpected=6]="CommaExpected",x[x.CloseBraceExpected=7]="CloseBraceExpected",x[x.CloseBracketExpected=8]="CloseBracketExpected",x[x.EndOfFileExpected=9]="EndOfFileExpected",x[x.InvalidCommentToken=10]="InvalidCommentToken",x[x.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",x[x.UnexpectedEndOfString=12]="UnexpectedEndOfString",x[x.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",x[x.InvalidUnicode=14]="InvalidUnicode",x[x.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",x[x.InvalidCharacter=16]="InvalidCharacter",(E||(E={})).is=function(e){return"string"===typeof e},(N||(N={})).is=function(e){return"string"===typeof e},(A=T||(T={})).MIN_VALUE=-2147483648,A.MAX_VALUE=2147483647,A.is=function(e){return"number"===typeof e&&A.MIN_VALUE<=e&&e<=A.MAX_VALUE},(O=I||(I={})).MIN_VALUE=0,O.MAX_VALUE=2147483647,O.is=function(e){return"number"===typeof e&&O.MIN_VALUE<=e&&e<=O.MAX_VALUE},(R=M||(M={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=I.MAX_VALUE),t===Number.MAX_VALUE&&(t=I.MAX_VALUE),{line:e,character:t}},R.is=function(e){let t=e;return dn.objectLiteral(t)&&dn.uinteger(t.line)&&dn.uinteger(t.character)},(B=D||(D={})).create=function(e,t,n,r){if(dn.uinteger(e)&&dn.uinteger(t)&&dn.uinteger(n)&&dn.uinteger(r))return{start:M.create(e,t),end:M.create(n,r)};if(M.is(e)&&M.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},B.is=function(e){let t=e;return dn.objectLiteral(t)&&M.is(t.start)&&M.is(t.end)},(P=F||(F={})).create=function(e,t){return{uri:e,range:t}},P.is=function(e){let t=e;return dn.objectLiteral(t)&&D.is(t.range)&&(dn.string(t.uri)||dn.undefined(t.uri))},(z=V||(V={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},z.is=function(e){let t=e;return dn.objectLiteral(t)&&D.is(t.targetRange)&&dn.string(t.targetUri)&&D.is(t.targetSelectionRange)&&(D.is(t.originSelectionRange)||dn.undefined(t.originSelectionRange))},(q=j||(j={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},q.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.numberRange(t.red,0,1)&&dn.numberRange(t.green,0,1)&&dn.numberRange(t.blue,0,1)&&dn.numberRange(t.alpha,0,1)},(U=W||(W={})).create=function(e,t){return{range:e,color:t}},U.is=function(e){const t=e;return dn.objectLiteral(t)&&D.is(t.range)&&j.is(t.color)},(H=$||($={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},H.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.string(t.label)&&(dn.undefined(t.textEdit)||le.is(t))&&(dn.undefined(t.additionalTextEdits)||dn.typedArray(t.additionalTextEdits,le.is))},(G=K||(K={})).Comment="comment",G.Imports="imports",G.Region="region",(J=Q||(Q={})).create=function(e,t,n,r,i,s){const o={startLine:e,endLine:t};return dn.defined(n)&&(o.startCharacter=n),dn.defined(r)&&(o.endCharacter=r),dn.defined(i)&&(o.kind=i),dn.defined(s)&&(o.collapsedText=s),o},J.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.uinteger(t.startLine)&&dn.uinteger(t.startLine)&&(dn.undefined(t.startCharacter)||dn.uinteger(t.startCharacter))&&(dn.undefined(t.endCharacter)||dn.uinteger(t.endCharacter))&&(dn.undefined(t.kind)||dn.string(t.kind))},(Y=X||(X={})).create=function(e,t){return{location:e,message:t}},Y.is=function(e){let t=e;return dn.defined(t)&&F.is(t.location)&&dn.string(t.message)},(ee=Z||(Z={})).Error=1,ee.Warning=2,ee.Information=3,ee.Hint=4,(ne=te||(te={})).Unnecessary=1,ne.Deprecated=2,(re||(re={})).is=function(e){const t=e;return dn.objectLiteral(t)&&dn.string(t.href)},(se=ie||(ie={})).create=function(e,t,n,r,i,s){let o={range:e,message:t};return dn.defined(n)&&(o.severity=n),dn.defined(r)&&(o.code=r),dn.defined(i)&&(o.source=i),dn.defined(s)&&(o.relatedInformation=s),o},se.is=function(e){var t;let n=e;return dn.defined(n)&&D.is(n.range)&&dn.string(n.message)&&(dn.number(n.severity)||dn.undefined(n.severity))&&(dn.integer(n.code)||dn.string(n.code)||dn.undefined(n.code))&&(dn.undefined(n.codeDescription)||dn.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(dn.string(n.source)||dn.undefined(n.source))&&(dn.undefined(n.relatedInformation)||dn.typedArray(n.relatedInformation,X.is))},(ae=oe||(oe={})).create=function(e,t,...n){let r={title:e,command:t};return dn.defined(n)&&n.length>0&&(r.arguments=n),r},ae.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.title)&&dn.string(t.command)},(ce=le||(le={})).replace=function(e,t){return{range:e,newText:t}},ce.insert=function(e,t){return{range:{start:e,end:e},newText:t}},ce.del=function(e){return{range:e,newText:""}},ce.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.string(t.newText)&&D.is(t.range)},(ue=he||(he={})).create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},ue.is=function(e){const t=e;return dn.objectLiteral(t)&&dn.string(t.label)&&(dn.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(dn.string(t.description)||void 0===t.description)},(de||(de={})).is=function(e){const t=e;return dn.string(t)},(fe=ge||(ge={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},fe.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},fe.del=function(e,t){return{range:e,newText:"",annotationId:t}},fe.is=function(e){const t=e;return le.is(t)&&(he.is(t.annotationId)||de.is(t.annotationId))},(pe=me||(me={})).create=function(e,t){return{textDocument:e,edits:t}},pe.is=function(e){let t=e;return dn.defined(t)&&Ne.is(t.textDocument)&&Array.isArray(t.edits)},(_e=be||(be={})).create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},_e.is=function(e){let t=e;return t&&"create"===t.kind&&dn.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||dn.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||dn.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||de.is(t.annotationId))},(ve=ke||(ke={})).create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},ve.is=function(e){let t=e;return t&&"rename"===t.kind&&dn.string(t.oldUri)&&dn.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||dn.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||dn.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||de.is(t.annotationId))},(ye=Ce||(Ce={})).create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},ye.is=function(e){let t=e;return t&&"delete"===t.kind&&dn.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||dn.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||dn.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||de.is(t.annotationId))},(Le||(Le={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>dn.string(e.kind)?be.is(e)||ke.is(e)||Ce.is(e):me.is(e))))},(Se=we||(we={})).create=function(e){return{uri:e}},Se.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.uri)},(Ee=xe||(xe={})).create=function(e,t){return{uri:e,version:t}},Ee.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.uri)&&dn.integer(t.version)},(Te=Ne||(Ne={})).create=function(e,t){return{uri:e,version:t}},Te.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.uri)&&(null===t.version||dn.integer(t.version))},(Ie=Ae||(Ae={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},Ie.is=function(e){let t=e;return dn.defined(t)&&dn.string(t.uri)&&dn.string(t.languageId)&&dn.integer(t.version)&&dn.string(t.text)},(Me=Oe||(Oe={})).PlainText="plaintext",Me.Markdown="markdown",Me.is=function(e){const t=e;return t===Me.PlainText||t===Me.Markdown},(Re||(Re={})).is=function(e){const t=e;return dn.objectLiteral(e)&&Oe.is(t.kind)&&dn.string(t.value)},(Be=De||(De={})).Text=1,Be.Method=2,Be.Function=3,Be.Constructor=4,Be.Field=5,Be.Variable=6,Be.Class=7,Be.Interface=8,Be.Module=9,Be.Property=10,Be.Unit=11,Be.Value=12,Be.Enum=13,Be.Keyword=14,Be.Snippet=15,Be.Color=16,Be.File=17,Be.Reference=18,Be.Folder=19,Be.EnumMember=20,Be.Constant=21,Be.Struct=22,Be.Event=23,Be.Operator=24,Be.TypeParameter=25,(Pe=Fe||(Fe={})).PlainText=1,Pe.Snippet=2,(Ve||(Ve={})).Deprecated=1,(je=ze||(ze={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},je.is=function(e){const t=e;return t&&dn.string(t.newText)&&D.is(t.insert)&&D.is(t.replace)},(We=qe||(qe={})).asIs=1,We.adjustIndentation=2,(Ue||(Ue={})).is=function(e){const t=e;return t&&(dn.string(t.detail)||void 0===t.detail)&&(dn.string(t.description)||void 0===t.description)},($e||($e={})).create=function(e){return{label:e}},(He||(He={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Ge=Ke||(Ke={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Ge.is=function(e){const t=e;return dn.string(t)||dn.objectLiteral(t)&&dn.string(t.language)&&dn.string(t.value)},(Qe||(Qe={})).is=function(e){let t=e;return!!t&&dn.objectLiteral(t)&&(Re.is(t.contents)||Ke.is(t.contents)||dn.typedArray(t.contents,Ke.is))&&(void 0===e.range||D.is(e.range))},(Je||(Je={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Xe||(Xe={})).create=function(e,t,...n){let r={label:e};return dn.defined(t)&&(r.documentation=t),dn.defined(n)?r.parameters=n:r.parameters=[],r},(Ze=Ye||(Ye={})).Text=1,Ze.Read=2,Ze.Write=3,(et||(et={})).create=function(e,t){let n={range:e};return dn.number(t)&&(n.kind=t),n},(nt=tt||(tt={})).File=1,nt.Module=2,nt.Namespace=3,nt.Package=4,nt.Class=5,nt.Method=6,nt.Property=7,nt.Field=8,nt.Constructor=9,nt.Enum=10,nt.Interface=11,nt.Function=12,nt.Variable=13,nt.Constant=14,nt.String=15,nt.Number=16,nt.Boolean=17,nt.Array=18,nt.Object=19,nt.Key=20,nt.Null=21,nt.EnumMember=22,nt.Struct=23,nt.Event=24,nt.Operator=25,nt.TypeParameter=26,(rt||(rt={})).Deprecated=1,(it||(it={})).create=function(e,t,n,r,i){let s={name:e,kind:t,location:{uri:r,range:n}};return i&&(s.containerName=i),s},(st||(st={})).create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}},(at=ot||(ot={})).create=function(e,t,n,r,i,s){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==s&&(o.children=s),o},at.is=function(e){let t=e;return t&&dn.string(t.name)&&dn.number(t.kind)&&D.is(t.range)&&D.is(t.selectionRange)&&(void 0===t.detail||dn.string(t.detail))&&(void 0===t.deprecated||dn.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(ct=lt||(lt={})).Empty="",ct.QuickFix="quickfix",ct.Refactor="refactor",ct.RefactorExtract="refactor.extract",ct.RefactorInline="refactor.inline",ct.RefactorRewrite="refactor.rewrite",ct.Source="source",ct.SourceOrganizeImports="source.organizeImports",ct.SourceFixAll="source.fixAll",(ut=ht||(ht={})).Invoked=1,ut.Automatic=2,(gt=dt||(dt={})).create=function(e,t,n){let r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r},gt.is=function(e){let t=e;return dn.defined(t)&&dn.typedArray(t.diagnostics,ie.is)&&(void 0===t.only||dn.typedArray(t.only,dn.string))&&(void 0===t.triggerKind||t.triggerKind===ht.Invoked||t.triggerKind===ht.Automatic)},(mt=ft||(ft={})).create=function(e,t,n){let r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):oe.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},mt.is=function(e){let t=e;return t&&dn.string(t.title)&&(void 0===t.diagnostics||dn.typedArray(t.diagnostics,ie.is))&&(void 0===t.kind||dn.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||oe.is(t.command))&&(void 0===t.isPreferred||dn.boolean(t.isPreferred))&&(void 0===t.edit||Le.is(t.edit))},(bt=pt||(pt={})).create=function(e,t){let n={range:e};return dn.defined(t)&&(n.data=t),n},bt.is=function(e){let t=e;return dn.defined(t)&&D.is(t.range)&&(dn.undefined(t.command)||oe.is(t.command))},(kt=_t||(_t={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},kt.is=function(e){let t=e;return dn.defined(t)&&dn.uinteger(t.tabSize)&&dn.boolean(t.insertSpaces)},(Ct=vt||(vt={})).create=function(e,t,n){return{range:e,target:t,data:n}},Ct.is=function(e){let t=e;return dn.defined(t)&&D.is(t.range)&&(dn.undefined(t.target)||dn.string(t.target))},(Lt=yt||(yt={})).create=function(e,t){return{range:e,parent:t}},Lt.is=function(e){let t=e;return dn.objectLiteral(t)&&D.is(t.range)&&(void 0===t.parent||Lt.is(t.parent))},(St=wt||(wt={})).namespace="namespace",St.type="type",St.class="class",St.enum="enum",St.interface="interface",St.struct="struct",St.typeParameter="typeParameter",St.parameter="parameter",St.variable="variable",St.property="property",St.enumMember="enumMember",St.event="event",St.function="function",St.method="method",St.macro="macro",St.keyword="keyword",St.modifier="modifier",St.comment="comment",St.string="string",St.number="number",St.regexp="regexp",St.operator="operator",St.decorator="decorator",(Et=xt||(xt={})).declaration="declaration",Et.definition="definition",Et.readonly="readonly",Et.static="static",Et.deprecated="deprecated",Et.abstract="abstract",Et.async="async",Et.modification="modification",Et.documentation="documentation",Et.defaultLibrary="defaultLibrary",(Nt||(Nt={})).is=function(e){const t=e;return dn.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(At=Tt||(Tt={})).create=function(e,t){return{range:e,text:t}},At.is=function(e){const t=e;return void 0!==t&&null!==t&&D.is(t.range)&&dn.string(t.text)},(Ot=It||(It={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},Ot.is=function(e){const t=e;return void 0!==t&&null!==t&&D.is(t.range)&&dn.boolean(t.caseSensitiveLookup)&&(dn.string(t.variableName)||void 0===t.variableName)},(Rt=Mt||(Mt={})).create=function(e,t){return{range:e,expression:t}},Rt.is=function(e){const t=e;return void 0!==t&&null!==t&&D.is(t.range)&&(dn.string(t.expression)||void 0===t.expression)},(Bt=Dt||(Dt={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},Bt.is=function(e){const t=e;return dn.defined(t)&&D.is(e.stoppedLocation)},(Pt=Ft||(Ft={})).Type=1,Pt.Parameter=2,Pt.is=function(e){return 1===e||2===e},(zt=Vt||(Vt={})).create=function(e){return{value:e}},zt.is=function(e){const t=e;return dn.objectLiteral(t)&&(void 0===t.tooltip||dn.string(t.tooltip)||Re.is(t.tooltip))&&(void 0===t.location||F.is(t.location))&&(void 0===t.command||oe.is(t.command))},(qt=jt||(jt={})).create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},qt.is=function(e){const t=e;return dn.objectLiteral(t)&&M.is(t.position)&&(dn.string(t.label)||dn.typedArray(t.label,Vt.is))&&(void 0===t.kind||Ft.is(t.kind))&&void 0===t.textEdits||dn.typedArray(t.textEdits,le.is)&&(void 0===t.tooltip||dn.string(t.tooltip)||Re.is(t.tooltip))&&(void 0===t.paddingLeft||dn.boolean(t.paddingLeft))&&(void 0===t.paddingRight||dn.boolean(t.paddingRight))},(Wt||(Wt={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Ut||(Ut={})).create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}},($t||($t={})).create=function(e){return{items:e}},(Kt=Ht||(Ht={})).Invoked=0,Kt.Automatic=1,(Gt||(Gt={})).create=function(e,t){return{range:e,text:t}},(Qt||(Qt={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(Jt||(Jt={})).is=function(e){const t=e;return dn.objectLiteral(t)&&N.is(t.uri)&&dn.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),s=e.slice(r);t(i,n),t(s,n);let o=0,a=0,l=0;for(;o<i.length&&a<s.length;){let t=n(i[o],s[a]);e[l++]=t<=0?i[o++]:s[a++]}for(;o<i.length;)e[l++]=i[o++];for(;a<s.length;)e[l++]=s[a++];return e}e.create=function(e,t,n,r){return new gn(e,t,n,r)},e.is=function(e){let t=e;return!!(dn.defined(t)&&dn.string(t.uri)&&(dn.undefined(t.languageId)||dn.string(t.languageId))&&dn.uinteger(t.lineCount)&&dn.func(t.getText)&&dn.func(t.positionAt)&&dn.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=s))throw new Error("Overlapping edit");r=r.substring(0,o)+n.newText+r.substring(a,r.length),s=o}return r}}(Xt||(Xt={}));var dn,gn=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return M.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return M.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(dn||(dn={}));var fn,mn,pn,bn,_n,kn,vn,Cn=class e{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){const e=wn(r.range),t=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,t)+r.text+this._content.substring(n,this._content.length);const i=Math.max(e.start.line,0),s=Math.max(e.end.line,0);let o=this._lineOffsets;const a=Ln(r.text,!1,t);if(s-i===a.length)for(let r=0,c=a.length;r<c;r++)o[r+i+1]=a[r];else a.length<1e4?o.splice(i+1,s-i,...a):this._lineOffsets=o=o.slice(0,i+1).concat(a,o.slice(s+1));const l=r.text.length-(n-t);if(0!==l)for(let r=i+1+a.length,c=o.length;r<c;r++)o[r]=o[r]+l}else{if(!e.isFull(r))throw new Error("Unknown change event received");this._content=r.text,this._lineOffsets=void 0}this._version=n}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=Ln(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return{line:0,character:e};for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"===typeof t.rangeLength)}static isFull(e){let t=e;return void 0!==t&&null!==t&&"string"===typeof t.text&&void 0===t.range&&void 0===t.rangeLength}};function yn(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);yn(r,t),yn(i,t);let s=0,o=0,a=0;for(;s<r.length&&o<i.length;){let n=t(r[s],i[o]);e[a++]=n<=0?r[s++]:i[o++]}for(;s<r.length;)e[a++]=r[s++];for(;o<i.length;)e[a++]=i[o++];return e}function Ln(e,t,n=0){const r=t?[n]:[];for(let i=0;i<e.length;i++){let t=e.charCodeAt(i);13!==t&&10!==t||(13===t&&i+1<e.length&&10===e.charCodeAt(i+1)&&i++,r.push(n+i+1))}return r}function wn(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Sn(e){const t=wn(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function xn(...e){const t=e[0];let n,r,i;if("string"===typeof t)n=t,r=t,e.splice(0,1),i=e&&"object"===typeof e[0]?e[0]:e;else{if(t instanceof Array){const n=e.slice(1);if(t.length!==n.length+1)throw new Error("expected a string as the first argument to l10n.t");let r=t[0];for(let e=1;e<t.length;e++)r+=`{${e-1}}`+t[e];return xn(r,...n)}r=t.message,n=r,t.comment&&t.comment.length>0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(""):t.comment}`),i=t.args??{}}return Nn(r,i)}(mn=fn||(fn={})).create=function(e,t,n,r){return new Cn(e,t,n,r)},mn.update=function(e,t,n){if(e instanceof Cn)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},mn.applyEdits=function(e,t){let n=e.getText(),r=yn(t.map(Sn),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=0;const s=[];for(const o of r){let t=e.offsetAt(o.range.start);if(t<i)throw new Error("Overlapping edit");t>i&&s.push(n.substring(i,t)),o.newText.length&&s.push(o.newText),i=e.offsetAt(o.range.end)}return s.push(n.substr(i)),s.join("")},(bn=pn||(pn={}))[bn.Undefined=0]="Undefined",bn[bn.EnumValueMismatch=1]="EnumValueMismatch",bn[bn.Deprecated=2]="Deprecated",bn[bn.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",bn[bn.UnexpectedEndOfString=258]="UnexpectedEndOfString",bn[bn.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",bn[bn.InvalidUnicode=260]="InvalidUnicode",bn[bn.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",bn[bn.InvalidCharacter=262]="InvalidCharacter",bn[bn.PropertyExpected=513]="PropertyExpected",bn[bn.CommaExpected=514]="CommaExpected",bn[bn.ColonExpected=515]="ColonExpected",bn[bn.ValueExpected=516]="ValueExpected",bn[bn.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",bn[bn.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",bn[bn.TrailingComma=519]="TrailingComma",bn[bn.DuplicateKey=520]="DuplicateKey",bn[bn.CommentNotPermitted=521]="CommentNotPermitted",bn[bn.PropertyKeysMustBeDoublequoted=528]="PropertyKeysMustBeDoublequoted",bn[bn.SchemaResolveError=768]="SchemaResolveError",bn[bn.SchemaUnsupportedFeature=769]="SchemaUnsupportedFeature",(kn=_n||(_n={}))[kn.v3=3]="v3",kn[kn.v4=4]="v4",kn[kn.v6=6]="v6",kn[kn.v7=7]="v7",kn[kn.v2019_09=19]="v2019_09",kn[kn.v2020_12=20]="v2020_12",(vn||(vn={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Oe.Markdown,Oe.PlainText],commitCharactersSupport:!0,labelDetailsSupport:!0}}}};var En=/{([^}]+)}/g;function Nn(e,t){return 0===Object.keys(t).length?e:e.replace(En,((e,n)=>t[n]??e))}var Tn,An,In={"color-hex":{errorMessage:xn("Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:xn("String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:xn("String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:xn("String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:xn("String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))$/},hostname:{errorMessage:xn("String is not a hostname."),pattern:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i},ipv4:{errorMessage:xn("String is not an IPv4 address."),pattern:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/},ipv6:{errorMessage:xn("String is not an IPv6 address."),pattern:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i}},On=class{constructor(e,t,n=0){this.offset=t,this.length=n,this.parent=e}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},Mn=class extends On{constructor(e,t){super(e,t),this.type="null",this.value=null}},Rn=class extends On{constructor(e,t,n){super(e,n),this.type="boolean",this.value=t}},Dn=class extends On{constructor(e,t){super(e,t),this.type="array",this.items=[]}get children(){return this.items}},Bn=class extends On{constructor(e,t){super(e,t),this.type="number",this.isInteger=!0,this.value=Number.NaN}},Fn=class extends On{constructor(e,t,n){super(e,t,n),this.type="string",this.value=""}},Pn=class extends On{constructor(e,t,n){super(e,t),this.type="property",this.colonOffset=-1,this.keyNode=n}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}},Vn=class extends On{constructor(e,t){super(e,t),this.type="object",this.properties=[]}get children(){return this.properties}};function zn(e){return on(e)?e?{}:{not:{}}:e}(An=Tn||(Tn={}))[An.Key=0]="Key",An[An.Enum=1]="Enum";var jn={"http://json-schema.org/draft-03/schema#":_n.v3,"http://json-schema.org/draft-04/schema#":_n.v4,"http://json-schema.org/draft-06/schema#":_n.v6,"http://json-schema.org/draft-07/schema#":_n.v7,"https://json-schema.org/draft/2019-09/schema":_n.v2019_09,"https://json-schema.org/draft/2020-12/schema":_n.v2020_12},qn=class{constructor(e){this.schemaDraft=e}},Wn=class e{constructor(e=-1,t){this.focusOffset=e,this.exclude=t,this.schemas=[]}add(e){this.schemas.push(e)}merge(e){Array.prototype.push.apply(this.schemas,e.schemas)}include(e){return(-1===this.focusOffset||Gn(e,this.focusOffset))&&e!==this.exclude}newSub(){return new e(-1,this.exclude)}},Un=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};Un.instance=new Un;var $n=class{constructor(){this.problems=[],this.propertiesMatches=0,this.processedProperties=new Set,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}hasProblems(){return!!this.problems.length}merge(e){this.problems=this.problems.concat(e.problems),this.propertiesMatches+=e.propertiesMatches,this.propertiesValueMatches+=e.propertiesValueMatches,this.mergeProcessedProperties(e)}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(const e of this.problems)e.code===pn.EnumValueMismatch&&(e.message=xn("Value is not accepted. Valid values: {0}.",this.enumValues.map((e=>JSON.stringify(e))).join(", ")))}}mergePropertyMatch(e){this.problems=this.problems.concat(e.problems),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&1===e.enumValues.length&&this.primaryValueMatches++}mergeProcessedProperties(e){e.processedProperties.forEach((e=>this.processedProperties.add(e)))}compare(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches}};function Hn(e){return tn(e)}function Kn(e){return en(e)}function Gn(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}var Qn=class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return Zt(this.root,e,t)}visit(e){if(this.root){const t=n=>{let r=e(n);const i=n.children;if(Array.isArray(i))for(let e=0;e<i.length&&r;e++)r=t(i[e]);return r};t(this.root)}}validate(e,t,n=Z.Warning,r){if(this.root&&t){const i=new $n;return Xn(this.root,t,i,Un.instance,new qn(r??Jn(t))),i.problems.map((t=>{const r=D.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length));return ie.create(r,t.message,t.severity??n,t.code)}))}}getMatchingSchemas(e,t=-1,n){if(this.root&&e){const r=new Wn(t,n),i=Jn(e),s=new qn(i);return Xn(this.root,e,new $n,r,s),r.schemas}return[]}};function Jn(e,t=_n.v2020_12){let n=e.$schema;return n?jn[n]??t:t}function Xn(e,t,n,r,i){if(!e||!r.include(e))return;if("property"===e.type)return Xn(e.valueNode,t,n,r,i);const s=e;switch(function(){function e(e){return s.type===e||"integer"===e&&"number"===s.type&&s.isInteger}Array.isArray(t.type)?t.type.some(e)||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||xn("Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||xn('Incorrect type. Expected "{0}".',t.type)}));if(Array.isArray(t.allOf))for(const u of t.allOf){const e=new $n,t=r.newSub();Xn(s,zn(u),e,t,i),n.merge(e),r.merge(t)}const o=zn(t.not);if(o){const e=new $n,a=r.newSub();Xn(s,o,e,a,i),e.hasProblems()||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||xn("Matches a schema that is not allowed.")});for(const t of a.schemas)t.inverted=!t.inverted,r.add(t)}const a=(e,t)=>{const o=[];let a;for(const n of e){const e=zn(n),l=new $n,c=r.newSub();if(Xn(s,e,l,c,i),l.hasProblems()||o.push(e),a)if(t||l.hasProblems()||a.validationResult.hasProblems()){const t=l.compare(a.validationResult);t>0?a={schema:e,validationResult:l,matchingSchemas:c}:0===t&&(a.matchingSchemas.merge(c),a.validationResult.mergeEnumValues(l))}else a.matchingSchemas.merge(c),a.validationResult.propertiesMatches+=l.propertiesMatches,a.validationResult.propertiesValueMatches+=l.propertiesValueMatches,a.validationResult.mergeProcessedProperties(l);else a={schema:e,validationResult:l,matchingSchemas:c}}return o.length>1&&t&&n.problems.push({location:{offset:s.offset,length:1},message:xn("Matches multiple schemas when only one must validate.")}),a&&(n.merge(a.validationResult),r.merge(a.matchingSchemas)),o.length};Array.isArray(t.anyOf)&&a(t.anyOf,!1);Array.isArray(t.oneOf)&&a(t.oneOf,!0);const l=e=>{const t=new $n,o=r.newSub();Xn(s,zn(e),t,o,i),n.merge(t),r.merge(o)},c=zn(t.if);c&&((e,t,o)=>{const a=zn(e),c=new $n,h=r.newSub();Xn(s,a,c,h,i),r.merge(h),n.mergeProcessedProperties(c),c.hasProblems()?o&&l(o):t&&l(t)})(c,zn(t.then),zn(t.else));if(Array.isArray(t.enum)){const e=Hn(s);let r=!1;for(const n of t.enum)if(nn(e,n)){r=!0;break}n.enumValues=t.enum,n.enumValueMatch=r,r||n.problems.push({location:{offset:s.offset,length:s.length},code:pn.EnumValueMismatch,message:t.errorMessage||xn("Value is not accepted. Valid values: {0}.",t.enum.map((e=>JSON.stringify(e))).join(", "))})}if(sn(t.const)){nn(Hn(s),t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:s.offset,length:s.length},code:pn.EnumValueMismatch,message:t.errorMessage||xn("Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]}let h=t.deprecationMessage;if(h||t.deprecated){h=h||xn("Value is deprecated");let e="property"===s.parent?.type?s.parent:s;n.problems.push({location:{offset:e.offset,length:e.length},severity:Z.Warning,message:h,code:pn.Deprecated})}}(),s.type){case"object":!function(e){const s=Object.create(null),o=new Set;for(const t of e.properties){const e=t.keyNode.value;s[e]=t.valueNode,o.add(e)}if(Array.isArray(t.required))for(const r of t.required)if(!s[r]){const t=e.parent&&"property"===e.parent.type&&e.parent.keyNode,i=t?{offset:t.offset,length:t.length}:{offset:e.offset,length:1};n.problems.push({location:i,message:xn('Missing property "{0}".',r)})}const a=e=>{o.delete(e),n.processedProperties.add(e)};if(t.properties)for(const d of Object.keys(t.properties)){a(d);const e=t.properties[d],o=s[d];if(o)if(on(e))if(e)n.propertiesMatches++,n.propertiesValueMatches++;else{const e=o.parent;n.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},message:t.errorMessage||xn("Property {0} is not allowed.",d)})}else{const t=new $n;Xn(o,e,t,r,i),n.mergePropertyMatch(t)}}if(t.patternProperties)for(const d of Object.keys(t.patternProperties)){const e=hn(d);if(e){const l=[];for(const a of o)if(e.test(a)){l.push(a);const e=s[a];if(e){const s=t.patternProperties[d];if(on(s))if(s)n.propertiesMatches++,n.propertiesValueMatches++;else{const r=e.parent;n.problems.push({location:{offset:r.keyNode.offset,length:r.keyNode.length},message:t.errorMessage||xn("Property {0} is not allowed.",a)})}else{const t=new $n;Xn(e,s,t,r,i),n.mergePropertyMatch(t)}}}l.forEach(a)}}const l=t.additionalProperties;if(void 0!==l)for(const d of o){a(d);const e=s[d];if(e)if(!1===l){const r=e.parent;n.problems.push({location:{offset:r.keyNode.offset,length:r.keyNode.length},message:t.errorMessage||xn("Property {0} is not allowed.",d)})}else if(!0!==l){const t=new $n;Xn(e,l,t,r,i),n.mergePropertyMatch(t)}}const c=t.unevaluatedProperties;if(void 0!==c){const e=[];for(const a of o)if(!n.processedProperties.has(a)){e.push(a);const o=s[a];if(o)if(!1===c){const e=o.parent;n.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},message:t.errorMessage||xn("Property {0} is not allowed.",a)})}else if(!0!==c){const e=new $n;Xn(o,c,e,r,i),n.mergePropertyMatch(e)}}e.forEach(a)}rn(t.maxProperties)&&e.properties.length>t.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Object has more properties than limit of {0}.",t.maxProperties)});rn(t.minProperties)&&e.properties.length<t.minProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Object has fewer properties than the required number of {0}",t.minProperties)});if(t.dependentRequired)for(const n in t.dependentRequired){const e=s[n],r=t.dependentRequired[n];e&&Array.isArray(r)&&u(n,r)}if(t.dependentSchemas)for(const n in t.dependentSchemas){const e=s[n],r=t.dependentSchemas[n];e&&ln(r)&&u(n,r)}if(t.dependencies)for(const n in t.dependencies){s[n]&&u(n,t.dependencies[n])}const h=zn(t.propertyNames);if(h)for(const t of e.properties){const e=t.keyNode;e&&Xn(e,h,n,Un.instance,i)}function u(t,o){if(Array.isArray(o))for(const r of o)s[r]?n.propertiesValueMatches++:n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Object is missing property {0} required by property {1}.",r,t)});else{const t=zn(o);if(t){const s=new $n;Xn(e,t,s,r,i),n.mergePropertyMatch(s)}}}}(s);break;case"array":!function(e){let s,o;i.schemaDraft>=_n.v2020_12?(s=t.prefixItems,o=Array.isArray(t.items)?void 0:t.items):(s=Array.isArray(t.items)?t.items:void 0,o=Array.isArray(t.items)?t.additionalItems:t.items);let a=0;if(void 0!==s){const t=Math.min(s.length,e.items.length);for(;a<t;a++){const t=zn(s[a]),o=new $n,l=e.items[a];l&&(Xn(l,t,o,r,i),n.mergePropertyMatch(o)),n.processedProperties.add(String(a))}}if(void 0!==o&&a<e.items.length)if("boolean"===typeof o)for(!1===o&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Array has too many items according to schema. Expected {0} or fewer.",a)});a<e.items.length;a++)n.processedProperties.add(String(a)),n.propertiesValueMatches++;else for(;a<e.items.length;a++){const t=new $n;Xn(e.items[a],o,t,r,i),n.mergePropertyMatch(t),n.processedProperties.add(String(a))}const l=zn(t.contains);if(l){let r=0;for(let t=0;t<e.items.length;t++){const s=e.items[t],o=new $n;Xn(s,l,o,Un.instance,i),o.hasProblems()||(r++,i.schemaDraft>=_n.v2020_12&&n.processedProperties.add(String(t)))}0!==r||rn(t.minContains)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||xn("Array does not contain required item.")}),rn(t.minContains)&&r<t.minContains&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||xn("Array has too few items that match the contains contraint. Expected {0} or more.",t.minContains)}),rn(t.maxContains)&&r>t.maxContains&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||xn("Array has too many items that match the contains contraint. Expected {0} or less.",t.maxContains)})}const c=t.unevaluatedItems;if(void 0!==c)for(let h=0;h<e.items.length;h++){if(!n.processedProperties.has(String(h)))if(!1===c)n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Item does not match any validation rule from the array.")});else{const s=new $n;Xn(e.items[h],t.unevaluatedItems,s,r,i),n.mergePropertyMatch(s)}n.processedProperties.add(String(h)),n.propertiesValueMatches++}rn(t.minItems)&&e.items.length<t.minItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Array has too few items. Expected {0} or more.",t.minItems)});rn(t.maxItems)&&e.items.length>t.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Array has too many items. Expected {0} or fewer.",t.maxItems)});if(!0===t.uniqueItems){let t=function(){for(let e=0;e<r.length-1;e++){const t=r[e];for(let n=e+1;n<r.length;n++)if(nn(t,r[n]))return!0}return!1};const r=Hn(e);t()&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Array has duplicate items.")})}}(s);break;case"string":!function(e){rn(t.minLength)&&un(e.value)<t.minLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("String is shorter than the minimum length of {0}.",t.minLength)});rn(t.maxLength)&&un(e.value)>t.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("String is longer than the maximum length of {0}.",t.maxLength)});if(an(t.pattern)){const r=hn(t.pattern);r?.test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||xn('String does not match the pattern of "{0}".',t.pattern)})}if(t.format)switch(t.format){case"uri":case"uri-reference":{let r;if(e.value){const n=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);n?n[2]||"uri"!==t.format||(r=xn("URI with a scheme is expected.")):r=xn("URI is expected.")}else r=xn("URI expected.");r&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||xn("String is not a URI: {0}",r)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"hostname":case"ipv4":case"ipv6":const r=In[t.format];e.value&&r.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||r.errorMessage})}}(s);break;case"number":!function(e){const r=e.value;function i(e){const t=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return t&&{value:Number(t[1]+(t[2]||"")),multiplier:(t[2]?.length||0)-(parseInt(t[3])||0)}}if(rn(t.multipleOf)){let s=-1;if(Number.isInteger(t.multipleOf))s=r%t.multipleOf;else{let e=i(t.multipleOf),n=i(r);if(e&&n){const t=10**Math.abs(n.multiplier-e.multiplier);n.multiplier<e.multiplier?n.value*=t:e.value*=t,s=n.value%e.value}}0!==s&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is not divisible by {0}.",t.multipleOf)})}function s(e,t){return rn(t)?t:on(t)&&t?e:void 0}function o(e,t){if(!on(t)||!t)return e}const a=s(t.minimum,t.exclusiveMinimum);rn(a)&&r<=a&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is below the exclusive minimum of {0}.",a)});const l=s(t.maximum,t.exclusiveMaximum);rn(l)&&r>=l&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is above the exclusive maximum of {0}.",l)});const c=o(t.minimum,t.exclusiveMinimum);rn(c)&&r<c&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is below the minimum of {0}.",c)});const h=o(t.maximum,t.exclusiveMaximum);rn(h)&&r>h&&n.problems.push({location:{offset:e.offset,length:e.length},message:xn("Value is above the maximum of {0}.",h)})}(s)}r.add({node:s,schema:t})}function Yn(e,t){const n=[];let r=-1;const i=e.getText(),s=w(i,!1),o=t&&t.collectComments?[]:void 0;function a(){for(;;){const t=s.scan();switch(h(),t){case 12:case 13:Array.isArray(o)&&o.push(D.create(e.positionAt(s.getTokenOffset()),e.positionAt(s.getTokenOffset()+s.getTokenLength())));break;case 15:case 14:break;default:return t}}}function l(t,i,s,o,a=Z.Error){if(0===n.length||s!==r){const l=D.create(e.positionAt(s),e.positionAt(o));n.push(ie.create(l,t,a,i,e.languageId)),r=s}}function c(e,t,n=void 0,r=[],o=[]){let c=s.getTokenOffset(),h=s.getTokenOffset()+s.getTokenLength();if(c===h&&c>0){for(c--;c>0&&/\s/.test(i.charAt(c));)c--;h=c+1}if(l(e,t,c,h),n&&u(n,!1),r.length+o.length>0){let e=s.getToken();for(;17!==e;){if(-1!==r.indexOf(e)){a();break}if(-1!==o.indexOf(e))break;e=a()}}return n}function h(){switch(s.getTokenError()){case 4:return c(xn("Invalid unicode sequence in string."),pn.InvalidUnicode),!0;case 5:return c(xn("Invalid escape character in string."),pn.InvalidEscapeCharacter),!0;case 3:return c(xn("Unexpected end of number."),pn.UnexpectedEndOfNumber),!0;case 1:return c(xn("Unexpected end of comment."),pn.UnexpectedEndOfComment),!0;case 2:return c(xn("Unexpected end of string."),pn.UnexpectedEndOfString),!0;case 6:return c(xn("Invalid characters in string. Control characters must be escaped."),pn.InvalidCharacter),!0}return!1}function u(e,t){return e.length=s.getTokenOffset()+s.getTokenLength()-e.offset,t&&a(),e}const d=new Fn(void 0,0,0);function g(t,n){const r=new Pn(t,s.getTokenOffset(),d);let i=f(r);if(!i){if(16!==s.getToken())return;{c(xn("Property keys must be doublequoted"),pn.PropertyKeysMustBeDoublequoted);const e=new Fn(r,s.getTokenOffset(),s.getTokenLength());e.value=s.getTokenValue(),i=e,a()}}if(r.keyNode=i,"//"!==i.value){const e=n[i.value];e?(l(xn("Duplicate object key"),pn.DuplicateKey,r.keyNode.offset,r.keyNode.offset+r.keyNode.length,Z.Warning),ln(e)&&l(xn("Duplicate object key"),pn.DuplicateKey,e.keyNode.offset,e.keyNode.offset+e.keyNode.length,Z.Warning),n[i.value]=!0):n[i.value]=r}if(6===s.getToken())r.colonOffset=s.getTokenOffset(),a();else if(c(xn("Colon expected"),pn.ColonExpected),10===s.getToken()&&e.positionAt(i.offset+i.length).line<e.positionAt(s.getTokenOffset()).line)return r.length=i.length,r;const o=m(r);return o?(r.valueNode=o,r.length=o.offset+o.length-r.offset,r):c(xn("Value expected"),pn.ValueExpected,r,[],[2,5])}function f(e){if(10!==s.getToken())return;const t=new Fn(e,s.getTokenOffset());return t.value=s.getTokenValue(),u(t,!0)}function m(e){return function(e){if(3!==s.getToken())return;const t=new Dn(e,s.getTokenOffset());a();let n=!1;for(;4!==s.getToken()&&17!==s.getToken();){if(5===s.getToken()){n||c(xn("Value expected"),pn.ValueExpected);const e=s.getTokenOffset();if(a(),4===s.getToken()){n&&l(xn("Trailing comma"),pn.TrailingComma,e,e+1);continue}}else n&&c(xn("Expected comma"),pn.CommaExpected);const e=m(t);e?t.items.push(e):c(xn("Value expected"),pn.ValueExpected,void 0,[],[4,5]),n=!0}return 4!==s.getToken()?c(xn("Expected comma or closing bracket"),pn.CommaOrCloseBacketExpected,t):u(t,!0)}(e)||function(e){if(1!==s.getToken())return;const t=new Vn(e,s.getTokenOffset()),n=Object.create(null);a();let r=!1;for(;2!==s.getToken()&&17!==s.getToken();){if(5===s.getToken()){r||c(xn("Property expected"),pn.PropertyExpected);const e=s.getTokenOffset();if(a(),2===s.getToken()){r&&l(xn("Trailing comma"),pn.TrailingComma,e,e+1);continue}}else r&&c(xn("Expected comma"),pn.CommaExpected);const e=g(t,n);e?t.properties.push(e):c(xn("Property expected"),pn.PropertyExpected,void 0,[],[2,5]),r=!0}return 2!==s.getToken()?c(xn("Expected comma or closing brace"),pn.CommaOrCloseBraceExpected,t):u(t,!0)}(e)||f(e)||function(e){if(11!==s.getToken())return;const t=new Bn(e,s.getTokenOffset());if(0===s.getTokenError()){const e=s.getTokenValue();try{const n=JSON.parse(e);if(!rn(n))return c(xn("Invalid number format."),pn.Undefined,t);t.value=n}catch(n){return c(xn("Invalid number format."),pn.Undefined,t)}t.isInteger=-1===e.indexOf(".")}return u(t,!0)}(e)||function(e){switch(s.getToken()){case 7:return u(new Mn(e,s.getTokenOffset()),!0);case 8:return u(new Rn(e,!0,s.getTokenOffset()),!0);case 9:return u(new Rn(e,!1,s.getTokenOffset()),!0);default:return}}(e)}let p;return 17!==a()&&(p=m(p),p?17!==s.getToken()&&c(xn("End of file expected."),pn.Undefined):c(xn("Expected a JSON object, array or literal."),pn.Undefined)),new Qn(p,n,o)}function Zn(e,t,n){if(null!==e&&"object"===typeof e){const r=t+"\t";if(Array.isArray(e)){if(0===e.length)return"[]";let i="[\n";for(let t=0;t<e.length;t++)i+=r+Zn(e[t],r,n),t<e.length-1&&(i+=","),i+="\n";return i+=t+"]",i}{const i=Object.keys(e);if(0===i.length)return"{}";let s="{\n";for(let t=0;t<i.length;t++){const o=i[t];s+=r+JSON.stringify(o)+": "+Zn(e[o],r,n),t<i.length-1&&(s+=","),s+="\n"}return s+=t+"}",s}}return n(e)}var er=class{constructor(e,t=[],n=Promise,r={}){this.schemaService=e,this.contributions=t,this.promiseConstructor=n,this.clientCapabilities=r}doResolve(e){for(let t=this.contributions.length-1;t>=0;t--){const n=this.contributions[t].resolveCompletion;if(n){const t=n(e);if(t)return t}}return this.promiseConstructor.resolve(e)}doComplete(e,t,n){const r={items:[],isIncomplete:!1},i=e.getText(),s=e.offsetAt(t);let o=n.getNodeFromOffset(s,!0);if(this.isInComment(e,o?o.offset:0,s))return Promise.resolve(r);if(o&&s===o.offset+o.length&&s>0){const e=i[s-1];("object"===o.type&&"}"===e||"array"===o.type&&"]"===e)&&(o=o.parent)}const a=this.getCurrentWord(e,s);let l;if(!o||"string"!==o.type&&"number"!==o.type&&"boolean"!==o.type&&"null"!==o.type){let n=s-a.length;n>0&&'"'===i[n-1]&&n--,l=D.create(e.positionAt(n),t)}else l=D.create(e.positionAt(o.offset),e.positionAt(o.offset+o.length));const c=new Map,h={add:e=>{let t=e.label;const n=c.get(t);if(n)n.documentation||(n.documentation=e.documentation),n.detail||(n.detail=e.detail),n.labelDetails||(n.labelDetails=e.labelDetails);else{if(t=t.replace(/[\n]/g,"\u21b5"),t.length>60){const e=t.substr(0,57).trim()+"...";c.has(e)||(t=e)}e.textEdit=le.replace(l,e.insertText),e.label=t,c.set(t,e),r.items.push(e)}},setAsIncomplete:()=>{r.isIncomplete=!0},error:e=>{console.error(e)},getNumberOfProposals:()=>r.items.length};return this.schemaService.getSchemaForResource(e.uri,n).then((t=>{const u=[];let d,g=!0,f="";if(o&&"string"===o.type){const e=o.parent;e&&"property"===e.type&&e.keyNode===o&&(g=!e.valueNode,d=e,f=i.substr(o.offset+1,o.length-2),e&&(o=e.parent))}if(o&&"object"===o.type){if(o.offset===s)return r;o.properties.forEach((e=>{d&&d===e||c.set(e.keyNode.value,$e.create("__"))}));let m="";g&&(m=this.evaluateSeparatorAfter(e,e.offsetAt(l.end))),t?this.getPropertyCompletions(t,n,o,g,m,h):this.getSchemaLessPropertyCompletions(n,o,f,h);const p=Kn(o);this.contributions.forEach((t=>{const n=t.collectPropertyCompletions(e.uri,p,a,g,""===m,h);n&&u.push(n)})),!t&&a.length>0&&'"'!==i.charAt(s-a.length-1)&&(h.add({kind:De.Property,label:this.getLabelForValue(a),insertText:this.getInsertTextForProperty(a,void 0,!1,m),insertTextFormat:Fe.Snippet,documentation:""}),h.setAsIncomplete())}const m={};return t?this.getValueCompletions(t,n,o,s,e,h,m):this.getSchemaLessValueCompletions(n,o,s,e,h),this.contributions.length>0&&this.getContributedValueCompletions(n,o,s,e,h,u),this.promiseConstructor.all(u).then((()=>{if(0===h.getNumberOfProposals()){let t=s;!o||"string"!==o.type&&"number"!==o.type&&"boolean"!==o.type&&"null"!==o.type||(t=o.offset+o.length);const n=this.evaluateSeparatorAfter(e,t);this.addFillerValueCompletions(m,n,h)}return r}))}))}getPropertyCompletions(e,t,n,r,i,s){t.getMatchingSchemas(e.schema,n.offset).forEach((e=>{if(e.node===n&&!e.inverted){const t=e.schema.properties;t&&Object.keys(t).forEach((e=>{const n=t[e];if("object"===typeof n&&!n.deprecationMessage&&!n.doNotSuggest){const t={kind:De.Property,label:e,insertText:this.getInsertTextForProperty(e,n,r,i),insertTextFormat:Fe.Snippet,filterText:this.getFilterTextForValue(e),documentation:this.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(t.sortText=n.suggestSortText),t.insertText&&cn(t.insertText,`$1${i}`)&&(t.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(t)}}));const n=e.schema.propertyNames;if("object"===typeof n&&!n.deprecationMessage&&!n.doNotSuggest){const e=(e,t=void 0)=>{const o={kind:De.Property,label:e,insertText:this.getInsertTextForProperty(e,void 0,r,i),insertTextFormat:Fe.Snippet,filterText:this.getFilterTextForValue(e),documentation:t||this.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(o.sortText=n.suggestSortText),o.insertText&&cn(o.insertText,`$1${i}`)&&(o.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(o)};if(n.enum)for(let t=0;t<n.enum.length;t++){let r;n.markdownEnumDescriptions&&t<n.markdownEnumDescriptions.length?r=this.fromMarkup(n.markdownEnumDescriptions[t]):n.enumDescriptions&&t<n.enumDescriptions.length&&(r=n.enumDescriptions[t]),e(n.enum[t],r)}n.const&&e(n.const)}}}))}getSchemaLessPropertyCompletions(e,t,n,r){const i=e=>{e.properties.forEach((e=>{const t=e.keyNode.value;r.add({kind:De.Property,label:t,insertText:this.getInsertTextForValue(t,""),insertTextFormat:Fe.Snippet,filterText:this.getFilterTextForValue(t),documentation:""})}))};if(t.parent)if("property"===t.parent.type){const n=t.parent.keyNode.value;e.visit((e=>("property"===e.type&&e!==t.parent&&e.keyNode.value===n&&e.valueNode&&"object"===e.valueNode.type&&i(e.valueNode),!0)))}else"array"===t.parent.type&&t.parent.items.forEach((e=>{"object"===e.type&&e!==t&&i(e)}));else"object"===t.type&&r.add({kind:De.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:Fe.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})}getSchemaLessValueCompletions(e,t,n,r,i){let s=n;if(!t||"string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(s=t.offset+t.length,t=t.parent),!t)return i.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Fe.Snippet,documentation:""}),void i.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Fe.Snippet,documentation:""});const o=this.evaluateSeparatorAfter(r,s),a=e=>{e.parent&&!Gn(e.parent,n,!0)&&i.add({kind:this.getSuggestionKind(e.type),label:this.getLabelTextForMatchingNode(e,r),insertText:this.getInsertTextForMatchingNode(e,r,o),insertTextFormat:Fe.Snippet,documentation:""}),"boolean"===e.type&&this.addBooleanValueCompletion(!e.value,o,i)};if("property"===t.type&&n>(t.colonOffset||0)){const r=t.valueNode;if(r&&(n>r.offset+r.length||"object"===r.type||"array"===r.type))return;const s=t.keyNode.value;e.visit((e=>("property"===e.type&&e.keyNode.value===s&&e.valueNode&&a(e.valueNode),!0))),"$schema"===s&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(o,i)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){const n=t.parent.keyNode.value;e.visit((e=>("property"===e.type&&e.keyNode.value===n&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(a),!0)))}else t.items.forEach(a)}getValueCompletions(e,t,n,r,i,s,o){let a,l,c=r;if(!n||"string"!==n.type&&"number"!==n.type&&"boolean"!==n.type&&"null"!==n.type||(c=n.offset+n.length,l=n,n=n.parent),n){if("property"===n.type&&r>(n.colonOffset||0)){const e=n.valueNode;if(e&&r>e.offset+e.length)return;a=n.keyNode.value,n=n.parent}if(n&&(void 0!==a||"array"===n.type)){const h=this.evaluateSeparatorAfter(i,c),u=t.getMatchingSchemas(e.schema,n.offset,l);for(const e of u)if(e.node===n&&!e.inverted&&e.schema){if("array"===n.type&&e.schema.items){let t=s;if(e.schema.uniqueItems){const e=new Set;n.children.forEach((t=>{"array"!==t.type&&"object"!==t.type&&e.add(this.getLabelForValue(Hn(t)))})),t={...s,add(t){e.has(t.label)||s.add(t)}}}if(Array.isArray(e.schema.items)){const s=this.findItemAtOffset(n,i,r);s<e.schema.items.length&&this.addSchemaValueCompletions(e.schema.items[s],h,t,o)}else this.addSchemaValueCompletions(e.schema.items,h,t,o)}if(void 0!==a){let t=!1;if(e.schema.properties){const n=e.schema.properties[a];n&&(t=!0,this.addSchemaValueCompletions(n,h,s,o))}if(e.schema.patternProperties&&!t)for(const n of Object.keys(e.schema.patternProperties)){const r=hn(n);if(r?.test(a)){t=!0;const r=e.schema.patternProperties[n];this.addSchemaValueCompletions(r,h,s,o)}}if(e.schema.additionalProperties&&!t){const t=e.schema.additionalProperties;this.addSchemaValueCompletions(t,h,s,o)}}}"$schema"!==a||n.parent||this.addDollarSchemaCompletions(h,s),o.boolean&&(this.addBooleanValueCompletion(!0,h,s),this.addBooleanValueCompletion(!1,h,s)),o.null&&this.addNullValueCompletion(h,s)}}else this.addSchemaValueCompletions(e.schema,"",s,o)}getContributedValueCompletions(e,t,n,r,i,s){if(t){if("string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(t=t.parent),t&&"property"===t.type&&n>(t.colonOffset||0)){const e=t.keyNode.value,o=t.valueNode;if((!o||n<=o.offset+o.length)&&t.parent){const n=Kn(t.parent);this.contributions.forEach((t=>{const o=t.collectValueCompletions(r.uri,n,e,i);o&&s.push(o)}))}}}else this.contributions.forEach((e=>{const t=e.collectDefaultCompletions(r.uri,i);t&&s.push(t)}))}addSchemaValueCompletions(e,t,n,r){"object"===typeof e&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))),Array.isArray(e.anyOf)&&e.anyOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))),Array.isArray(e.oneOf)&&e.oneOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r))))}addDefaultValueCompletions(e,t,n,r=0){let i=!1;if(sn(e.default)){let s=e.type,o=e.default;for(let e=r;e>0;e--)o=[o],s="array";const a={kind:this.getSuggestionKind(s),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,t),insertTextFormat:Fe.Snippet};this.doesSupportsLabelDetails()?a.labelDetails={description:xn("Default value")}:a.detail=xn("Default value"),n.add(a),i=!0}Array.isArray(e.examples)&&e.examples.forEach((s=>{let o=e.type,a=s;for(let e=r;e>0;e--)a=[a],o="array";n.add({kind:this.getSuggestionKind(o),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t),insertTextFormat:Fe.Snippet}),i=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((s=>{let o,a,l=e.type,c=s.body,h=s.label;if(sn(c)){let n=e.type;for(let e=r;e>0;e--)c=[c],n="array";o=this.getInsertTextForSnippetValue(c,t),a=this.getFilterTextForSnippetValue(c),h=h||this.getLabelForSnippetValue(c)}else{if("string"!==typeof s.bodyText)return;{let e="",n="",i="";for(let t=r;t>0;t--)e=e+i+"[\n",n=n+"\n"+i+"]",i+="\t",l="array";o=e+i+s.bodyText.split("\n").join("\n"+i)+n+t,h=h||o,a=o.replace(/[\n]/g,"")}}n.add({kind:this.getSuggestionKind(l),label:h,documentation:this.fromMarkup(s.markdownDescription)||s.description,insertText:o,insertTextFormat:Fe.Snippet,filterText:a}),i=!0})),!i&&"object"===typeof e.items&&!Array.isArray(e.items)&&r<5&&this.addDefaultValueCompletions(e.items,t,n,r+1)}addEnumValueCompletions(e,t,n){if(sn(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:Fe.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let r=0,i=e.enum.length;r<i;r++){const i=e.enum[r];let s=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&r<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?s=this.fromMarkup(e.markdownEnumDescriptions[r]):e.enumDescriptions&&r<e.enumDescriptions.length&&(s=e.enumDescriptions[r]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(i),insertText:this.getInsertTextForValue(i,t),insertTextFormat:Fe.Snippet,documentation:s})}}collectTypes(e,t){if(Array.isArray(e.enum)||sn(e.const))return;const n=e.type;Array.isArray(n)?n.forEach((e=>t[e]=!0)):n&&(t[n]=!0)}addFillerValueCompletions(e,t,n){e.object&&n.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},t),insertTextFormat:Fe.Snippet,detail:xn("New object"),documentation:""}),e.array&&n.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],t),insertTextFormat:Fe.Snippet,detail:xn("New array"),documentation:""})}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t),insertTextFormat:Fe.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:Fe.Snippet,documentation:""})}addDollarSchemaCompletions(e,t){this.schemaService.getRegisteredSchemaIds((e=>"http"===e||"https"===e)).forEach((n=>{n.startsWith("http://json-schema.org/draft-")&&(n+="#"),t.add({kind:De.Module,label:this.getLabelForValue(n),filterText:this.getFilterTextForValue(n),insertText:this.getInsertTextForValue(n,e),insertTextFormat:Fe.Snippet,documentation:""})}))}getLabelForValue(e){return JSON.stringify(e)}getValueFromLabel(e){return JSON.parse(e)}getFilterTextForValue(e){return JSON.stringify(e)}getFilterTextForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getInsertTextForPlainText(e){return e.replace(/[\\\$\}]/g,"\\$&")}getInsertTextForValue(e,t){const n=JSON.stringify(e,null,"\t");return"{}"===n?"{$1}"+t:"[]"===n?"[$1]"+t:this.getInsertTextForPlainText(n+t)}getInsertTextForSnippetValue(e,t){return Zn(e,"",(e=>"string"===typeof e&&"^"===e[0]?e.substr(1):JSON.stringify(e)))+t}getInsertTextForGuessedValue(e,t){switch(typeof e){case"object":return null===e?"${1:null}"+t:this.getInsertTextForValue(e,t);case"string":let n=JSON.stringify(e);return n=n.substr(1,n.length-2),n=this.getInsertTextForPlainText(n),'"${1:'+n+'}"'+t;case"number":case"boolean":return"${1:"+JSON.stringify(e)+"}"+t}return this.getInsertTextForValue(e,t)}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:void 0}if(!e)return De.Value;switch(e){case"string":default:return De.Value;case"object":return De.Module;case"property":return De.Property}}getLabelTextForMatchingNode(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}}getInsertTextForMatchingNode(e,t,n){switch(e.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:const r=t.getText().substr(e.offset,e.length)+n;return this.getInsertTextForPlainText(r)}}getInsertTextForProperty(e,t,n,r){const i=this.getInsertTextForValue(e,"");if(!n)return i;const s=i+": ";let o,a=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){const e=t.defaultSnippets[0].body;sn(e)&&(o=this.getInsertTextForSnippetValue(e,""))}a+=t.defaultSnippets.length}if(t.enum&&(o||1!==t.enum.length||(o=this.getInsertTextForGuessedValue(t.enum[0],"")),a+=t.enum.length),sn(t.const)&&(o||(o=this.getInsertTextForGuessedValue(t.const,"")),a++),sn(t.default)&&(o||(o=this.getInsertTextForGuessedValue(t.default,"")),a++),Array.isArray(t.examples)&&t.examples.length&&(o||(o=this.getInsertTextForGuessedValue(t.examples[0],"")),a+=t.examples.length),0===a){let e=Array.isArray(t.type)?t.type[0]:t.type;switch(e||(t.properties?e="object":t.items&&(e="array")),e){case"boolean":o="$1";break;case"string":o='"$1"';break;case"object":o="{$1}";break;case"array":o="[$1]";break;case"number":case"integer":o="${1:0}";break;case"null":o="${1:null}";break;default:return i}}}return(!o||a>1)&&(o="$1"),s+o+r}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)}evaluateSeparatorAfter(e,t){const n=w(e.getText(),!0);n.setPosition(t);switch(n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}}findItemAtOffset(e,t,n){const r=w(t.getText(),!0),i=e.items;for(let s=i.length-1;s>=0;s--){const e=i[s];if(n>e.offset+e.length){r.setPosition(e.offset+e.length);return 5===r.scan()&&n>=r.getTokenOffset()+r.getTokenLength()?s+1:s}if(n>=e.offset)return s}return 0}isInComment(e,t,n){const r=w(e.getText(),!1);r.setPosition(t);let i=r.scan();for(;17!==i&&r.getTokenOffset()+r.getTokenLength()<n;)i=r.scan();return(12===i||13===i)&&r.getTokenOffset()<=n}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:Oe.Markdown,value:e}}doesSupportMarkdown(){if(!sn(this.supportsMarkdown)){const e=this.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(Oe.Markdown)}return this.supportsMarkdown}doesSupportsCommitCharacters(){return sn(this.supportsCommitCharacters)||(this.labelDetailsSupport=this.clientCapabilities.textDocument?.completion?.completionItem?.commitCharactersSupport),this.supportsCommitCharacters}doesSupportsLabelDetails(){return sn(this.labelDetailsSupport)||(this.labelDetailsSupport=this.clientCapabilities.textDocument?.completion?.completionItem?.labelDetailsSupport),this.labelDetailsSupport}},tr=class{constructor(e,t=[],n){this.schemaService=e,this.contributions=t,this.promise=n||Promise}doHover(e,t,n){const r=e.offsetAt(t);let i=n.getNodeFromOffset(r);if(!i||("object"===i.type||"array"===i.type)&&r>i.offset+1&&r<i.offset+i.length-1)return this.promise.resolve(null);const s=i;if("string"===i.type){const e=i.parent;if(e&&"property"===e.type&&e.keyNode===i&&(i=e.valueNode,!i))return this.promise.resolve(null)}const o=D.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),a=e=>({contents:e,range:o}),l=Kn(i);for(let c=this.contributions.length-1;c>=0;c--){const t=this.contributions[c].getInfoContribution(e.uri,l);if(t)return t.then((e=>a(e)))}return this.schemaService.getSchemaForResource(e.uri,n).then((e=>{if(e&&i){let t,r,s,o;n.getMatchingSchemas(e.schema,i.offset).every((e=>{if(e.node===i&&!e.inverted&&e.schema&&(t=t||e.schema.title,r=r||e.schema.markdownDescription||nr(e.schema.description),e.schema.enum)){const t=e.schema.enum.indexOf(Hn(i));e.schema.markdownEnumDescriptions?s=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(s=nr(e.schema.enumDescriptions[t])),s&&(o=e.schema.enum[t],"string"!==typeof o&&(o=JSON.stringify(o)))}return!0}));let l="";return t&&(l=nr(t)),r&&(l.length>0&&(l+="\n\n"),l+=r),s&&(l.length>0&&(l+="\n\n"),l+=`\`${function(e){if(-1!==e.indexOf("`"))return"`` "+e+" ``";return e}(o)}\`: ${s}`),a([l])}return null}))}};function nr(e){if(e){return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}var rr=class{constructor(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}configure(e){e&&(this.validationEnabled=!1!==e.validate,this.commentSeverity=e.allowComments?void 0:Z.Error)}doValidation(e,t,n,r){if(!this.validationEnabled)return this.promise.resolve([]);const i=[],s={},o=e=>{const t=e.range.start.line+" "+e.range.start.character+" "+e.message;s[t]||(s[t]=!0,i.push(e))},a=r=>{let s=n?.trailingCommas?ar(n.trailingCommas):Z.Error,a=n?.comments?ar(n.comments):this.commentSeverity,l=n?.schemaValidation?ar(n.schemaValidation):Z.Warning,c=n?.schemaRequest?ar(n.schemaRequest):Z.Warning;if(r){const i=(n,r)=>{if(t.root&&c){const i=t.root,s="object"===i.type?i.properties[0]:void 0;if(s&&"$schema"===s.keyNode.value){const t=s.valueNode||s,i=D.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length));o(ie.create(i,n,c,r))}else{const t=D.create(e.positionAt(i.offset),e.positionAt(i.offset+1));o(ie.create(t,n,c,r))}}};if(r.errors.length)i(r.errors[0],pn.SchemaResolveError);else if(l){for(const e of r.warnings)i(e,pn.SchemaUnsupportedFeature);const s=t.validate(e,r.schema,l,n?.schemaDraft);s&&s.forEach(o)}sr(r.schema)&&(a=void 0),or(r.schema)&&(s=void 0)}for(const e of t.syntaxErrors){if(e.code===pn.TrailingComma){if("number"!==typeof s)continue;e.severity=s}o(e)}if("number"===typeof a){const e=xn("Comments are not permitted in JSON.");t.comments.forEach((t=>{o(ie.create(t,e,a,pn.CommentNotPermitted))}))}return i};if(r){const e=r.id||"schemaservice://untitled/"+ir++;return this.jsonSchemaService.registerExternalSchema({uri:e,schema:r}).getResolvedSchema().then((e=>a(e)))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then((e=>a(e)))}getLanguageStatus(e,t){return{schemas:this.jsonSchemaService.getSchemaURIsForResource(e.uri,t)}}},ir=0;function sr(e){if(e&&"object"===typeof e){if(on(e.allowComments))return e.allowComments;if(e.allOf)for(const t of e.allOf){const e=sr(t);if(on(e))return e}}}function or(e){if(e&&"object"===typeof e){if(on(e.allowTrailingCommas))return e.allowTrailingCommas;const t=e;if(on(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(const n of e.allOf){const e=or(n);if(on(e))return e}}}function ar(e){switch(e){case"error":return Z.Error;case"warning":return Z.Warning;case"ignore":return}}function lr(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function cr(e){if("#"===e[0])switch(e.length){case 4:return{red:17*lr(e.charCodeAt(1))/255,green:17*lr(e.charCodeAt(2))/255,blue:17*lr(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*lr(e.charCodeAt(1))/255,green:17*lr(e.charCodeAt(2))/255,blue:17*lr(e.charCodeAt(3))/255,alpha:17*lr(e.charCodeAt(4))/255};case 7:return{red:(16*lr(e.charCodeAt(1))+lr(e.charCodeAt(2)))/255,green:(16*lr(e.charCodeAt(3))+lr(e.charCodeAt(4)))/255,blue:(16*lr(e.charCodeAt(5))+lr(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*lr(e.charCodeAt(1))+lr(e.charCodeAt(2)))/255,green:(16*lr(e.charCodeAt(3))+lr(e.charCodeAt(4)))/255,blue:(16*lr(e.charCodeAt(5))+lr(e.charCodeAt(6)))/255,alpha:(16*lr(e.charCodeAt(7))+lr(e.charCodeAt(8)))/255}}}var hr=class{constructor(e){this.schemaService=e}findDocumentSymbols(e,t,n={resultLimit:Number.MAX_VALUE}){const r=t.root;if(!r)return[];let i=n.resultLimit||Number.MAX_VALUE;const s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||cn(s.toLowerCase(),"/user/keybindings.json"))&&"array"===r.type){const t=[];for(const o of r.items)if("object"===o.type)for(const r of o.properties)if("key"===r.keyNode.value&&r.valueNode){const a=F.create(e.uri,ur(e,o));if(t.push({name:dr(r.valueNode),kind:tt.Function,location:a}),i--,i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),t}return t}const o=[{node:r,containerName:""}];let a=0,l=!1;const c=[],h=(t,n)=>{"array"===t.type?t.items.forEach((e=>{e&&o.push({node:e,containerName:n})})):"object"===t.type&&t.properties.forEach((t=>{const r=t.valueNode;if(r)if(i>0){i--;const s=F.create(e.uri,ur(e,t)),a=n?n+"."+t.keyNode.value:t.keyNode.value;c.push({name:this.getKeyLabel(t),kind:this.getSymbolKind(r.type),location:s,containerName:n}),o.push({node:r,containerName:a})}else l=!0}))};for(;a<o.length;){const e=o[a++];h(e.node,e.containerName)}return l&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),c}findDocumentSymbols2(e,t,n={resultLimit:Number.MAX_VALUE}){const r=t.root;if(!r)return[];let i=n.resultLimit||Number.MAX_VALUE;const s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||cn(s.toLowerCase(),"/user/keybindings.json"))&&"array"===r.type){const t=[];for(const o of r.items)if("object"===o.type)for(const r of o.properties)if("key"===r.keyNode.value&&r.valueNode){const a=ur(e,o),l=ur(e,r.keyNode);if(t.push({name:dr(r.valueNode),kind:tt.Function,range:a,selectionRange:l}),i--,i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),t}return t}const o=[],a=[{node:r,result:o}];let l=0,c=!1;const h=(t,n)=>{"array"===t.type?t.items.forEach(((t,r)=>{if(t)if(i>0){i--;const s=ur(e,t),o=s,l={name:String(r),kind:this.getSymbolKind(t.type),range:s,selectionRange:o,children:[]};n.push(l),a.push({result:l.children,node:t})}else c=!0})):"object"===t.type&&t.properties.forEach((t=>{const r=t.valueNode;if(r)if(i>0){i--;const s=ur(e,t),o=ur(e,t.keyNode),l=[],c={name:this.getKeyLabel(t),kind:this.getSymbolKind(r.type),range:s,selectionRange:o,children:l,detail:this.getDetail(r)};n.push(c),a.push({result:l,node:r})}else c=!0}))};for(;l<a.length;){const e=a[l++];h(e.node,e.result)}return c&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),o}getSymbolKind(e){switch(e){case"object":return tt.Module;case"string":return tt.String;case"number":return tt.Number;case"array":return tt.Array;case"boolean":return tt.Boolean;default:return tt.Variable}}getKeyLabel(e){let t=e.keyNode.value;return t&&(t=t.replace(/[\n]/g,"\u21b5")),t&&t.trim()?t:`"${t}"`}getDetail(e){if(e)return"boolean"===e.type||"number"===e.type||"null"===e.type||"string"===e.type?String(e.value):"array"===e.type?e.children.length?void 0:"[]":"object"===e.type?e.children.length?void 0:"{}":void 0}findDocumentColors(e,t,n){return this.schemaService.getSchemaForResource(e.uri,t).then((r=>{const i=[];if(r){let s=n&&"number"===typeof n.resultLimit?n.resultLimit:Number.MAX_VALUE;const o=t.getMatchingSchemas(r.schema),a={};for(const t of o)if(!t.inverted&&t.schema&&("color"===t.schema.format||"color-hex"===t.schema.format)&&t.node&&"string"===t.node.type){const r=String(t.node.offset);if(!a[r]){const o=cr(Hn(t.node));if(o){const n=ur(e,t.node);i.push({color:o,range:n})}if(a[r]=!0,s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),i}}}return i}))}getColorPresentations(e,t,n,r){const i=[],s=Math.round(255*n.red),o=Math.round(255*n.green),a=Math.round(255*n.blue);function l(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}let c;return c=1===n.alpha?`#${l(s)}${l(o)}${l(a)}`:`#${l(s)}${l(o)}${l(a)}${l(Math.round(255*n.alpha))}`,i.push({label:c,textEdit:le.replace(r,JSON.stringify(c))}),i}};function ur(e,t){return D.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}function dr(e){return Hn(e)||xn("<empty>")}var gr,fr={schemaAssociations:[],schemas:{"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},mr={id:xn("A unique identifier for the schema."),$schema:xn("The schema to verify this document against."),title:xn("A descriptive title of the element."),description:xn("A long description of the element. Used in hover menus and suggestions."),default:xn("A default value. Used by suggestions."),multipleOf:xn("A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:xn("The maximum numerical value, inclusive by default."),exclusiveMaximum:xn("Makes the maximum property exclusive."),minimum:xn("The minimum numerical value, inclusive by default."),exclusiveMinimum:xn("Makes the minimum property exclusive."),maxLength:xn("The maximum length of a string."),minLength:xn("The minimum length of a string."),pattern:xn("A regular expression to match the string against. It is not implicitly anchored."),additionalItems:xn("For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:xn("For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:xn("The maximum number of items that can be inside an array. Inclusive."),minItems:xn("The minimum number of items that can be inside an array. Inclusive."),uniqueItems:xn("If all of the items in the array must be unique. Defaults to false."),maxProperties:xn("The maximum number of properties an object can have. Inclusive."),minProperties:xn("The minimum number of properties an object can have. Inclusive."),required:xn("An array of strings that lists the names of all properties required on this object."),additionalProperties:xn("Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:xn("Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:xn("A map of property names to schemas for each property."),patternProperties:xn("A map of regular expressions on property names to schemas for matching properties."),dependencies:xn("A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:xn("The set of literal values that are valid."),type:xn("Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:xn("Describes the format expected for the value."),allOf:xn("An array of schemas, all of which must match."),anyOf:xn("An array of schemas, where at least one must match."),oneOf:xn("An array of schemas, exactly one of which must match."),not:xn("A schema which must not match."),$id:xn("A unique identifier for the schema."),$ref:xn("Reference a definition hosted on any location."),$comment:xn("Comments from schema authors to readers or maintainers of the schema."),readOnly:xn("Indicates that the value of the instance is managed exclusively by the owning authority."),examples:xn("Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:xn('An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:xn("If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:xn("An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:xn("Describes the media type of a string property."),contentEncoding:xn("Describes the content encoding of a string property."),if:xn('The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:xn('The "if" subschema is used for validation when the "if" subschema succeeds.'),else:xn('The "else" subschema is used for validation when the "if" subschema fails.')};for(const n in fr.schemas){const e=fr.schemas[n];for(const t in e.properties){let n=e.properties[t];"boolean"===typeof n&&(n=e.properties[t]={});const r=mr[t];r&&(n.description=r)}}(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=a,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),i=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,s=arguments.length-1;s>=-1&&!i;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var s=e.length,o=s-i,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,c=o<l?o:l,h=-1,u=0;u<=c;++u){if(u===c){if(l>c){if(47===n.charCodeAt(a+u))return n.slice(a+u+1);if(0===u)return n.slice(a+u)}else o>c&&(47===e.charCodeAt(i+u)?h=u:0===u&&(h=0));break}var d=e.charCodeAt(i+u);if(d!==n.charCodeAt(a+u))break;47===d&&(h=u)}var g="";for(u=i+h+1;u<=s;++u)u!==s&&47!==e.charCodeAt(u)||(0===g.length?g+="..":g+="/..");return g.length>0?g+n.slice(a+h):(a+=h,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){i=o;break}}else s=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!o){i=r+1;break}}else-1===l&&(o=!1,l=r+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(s=r):(a=-1,s=l))}return i===s?s=l:-1===s&&(s=e.length),e.slice(i,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else-1===s&&(o=!1,s=r+1);return-1===s?"":e.slice(i,s)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===i&&(s=!1,i=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){r=a+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var o=-1,a=0,l=-1,c=!0,h=e.length-1,u=0;h>=r;--h)if(47!==(i=e.charCodeAt(h)))-1===l&&(c=!1,l=h+1),46===i?-1===o?o=h:1!==u&&(u=1):-1!==o&&(u=-1);else if(!c){a=h+1;break}return-1===o||-1===l||0===u||1===u&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(a,o),n.base=e.slice(a,l)),n.ext=e.slice(o,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{let e;if(n.r(r),n.d(r,{URI:()=>h,Utils:()=>w}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,i=/^\//,s=/^\/\//;function o(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!i.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const a="",l="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static isUri(e){return e instanceof h||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,s=!1){"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,n||a),this.query=r||a,this.fragment=i||a,o(this,s))}get fsPath(){return p(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===r?r=this.path:null===r&&(r=a),void 0===i?i=this.query:null===i&&(i=a),void 0===s?s=this.fragment:null===s&&(s=a),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new d(t,n,r,i,s)}static parse(e,t=!1){const n=c.exec(e);return n?new d(n[2]||a,v(n[4]||a),v(n[5]||a),v(n[7]||a),v(n[9]||a),t):new d(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,l)),t[0]===l&&t[1]===l){const e=t.indexOf(l,2);-1===e?(n=t.substring(2),t=l):(n=t.substring(2,e),t=t.substring(e)||l)}return new d("file",n,t,a,a)}static from(e){const t=new d(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof h)return e;{const t=new d(e);return t._formatted=e.external,t._fsPath=e._sep===u?e.fsPath:null,t}}return e}}const u=e?1:void 0;class d extends h{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=p(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function f(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));const t=g[o];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=t):-1===i&&(i=s)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function m(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=g[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function p(t,n){let r;return r=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,"\\")),r}function b(e,t){const n=t?m:f;let r="",{scheme:i,authority:s,path:o,query:a,fragment:c}=e;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=l,r+=l),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?r+=n(s,!1,!0):(r+=n(s.substr(0,e),!1,!0),r+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),c&&(r+="#",r+=t?c:f(c,!1,!1)),r}function _(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+_(e.substr(3)):e}}const k=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function v(e){return e.match(k)?e.replace(k,(e=>_(e))):e}var C=n(470);const y=C.posix||C,L="/";var w,S;(S=w||(w={})).joinPath=function(e,...t){return e.with({path:y.join(e.path,...t)})},S.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==L&&(n=L+n,r=!0);let i=y.resolve(n,...t);return r&&i[0]===L&&!e.authority&&(i=i.substring(1)),e.with({path:i})},S.dirname=function(e){if(0===e.path.length||e.path===L)return e;let t=y.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},S.basename=function(e){return y.basename(e.path)},S.extname=function(e){return y.extname(e.path)}})(),gr=r})();var{URI:pr,Utils:br}=gr;function _r(e,t){if("string"!==typeof e)throw new TypeError("Expected a string");const n=String(e);let r="";const i=!!t&&!!t.extended,s=!!t&&!!t.globstar;let o=!1;const a=t&&"string"===typeof t.flags?t.flags:"";let l;for(let c=0,h=n.length;c<h;c++)switch(l=n[c],l){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+l;break;case"?":if(i){r+=".";break}case"[":case"]":if(i){r+=l;break}case"{":if(i){o=!0,r+="(";break}case"}":if(i){o=!1,r+=")";break}case",":if(o){r+="|";break}r+="\\"+l;break;case"*":const e=n[c-1];let t=1;for(;"*"===n[c+1];)t++,c++;const a=n[c+1];if(s){t>1&&("/"===e||void 0===e||"{"===e||","===e)&&("/"===a||void 0===a||","===a||"}"===a)?("/"===a?c++:"/"===e&&r.endsWith("\\/")&&(r=r.substr(0,r.length-2)),r+="((?:[^/]*(?:/|$))*)"):r+="([^/]*)"}else r+=".*";break;default:r+=l}return a&&~a.indexOf("g")||(r="^"+r+"$"),new RegExp(r,a)}var kr,vr,Cr=class{constructor(e,t,n){this.folderUri=t,this.uris=n,this.globWrappers=[];try{for(let t of e){const e="!"!==t[0];e||(t=t.substring(1)),t.length>0&&("/"===t[0]&&(t=t.substring(1)),this.globWrappers.push({regexp:_r("**/"+t,{extended:!0,globstar:!0}),include:e}))}t&&((t=Nr(t)).endsWith("/")||(t+="/"),this.folderUri=t)}catch(r){this.globWrappers.length=0,this.uris=[]}}matchesPattern(e){if(this.folderUri&&!e.startsWith(this.folderUri))return!1;let t=!1;for(const{regexp:n,include:r}of this.globWrappers)n.test(e)&&(t=r);return t}getURIs(){return this.uris}},yr=class{constructor(e,t,n){this.service=e,this.uri=t,this.dependencies=new Set,this.anchors=void 0,n&&(this.unresolvedSchema=this.service.promise.resolve(new Lr(n)))}getUnresolvedSchema(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.uri)),this.unresolvedSchema}getResolvedSchema(){return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then((e=>this.service.resolveSchemaContent(e,this)))),this.resolvedSchema}clearSchema(){const e=!!this.unresolvedSchema;return this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies.clear(),this.anchors=void 0,e}},Lr=class{constructor(e,t=[]){this.schema=e,this.errors=t}},wr=class{constructor(e,t=[],n=[],r){this.schema=e,this.errors=t,this.warnings=n,this.schemaDraft=r}getSection(e){const t=this.getSectionRecursive(e,this.schema);if(t)return zn(t)}getSectionRecursive(e,t){if(!t||"boolean"===typeof t||0===e.length)return t;const n=e.shift();if(t.properties&&(t.properties[n],1))return this.getSectionRecursive(e,t.properties[n]);if(t.patternProperties)for(const r of Object.keys(t.patternProperties)){const i=hn(r);if(i?.test(n))return this.getSectionRecursive(e,t.patternProperties[r])}else{if("object"===typeof t.additionalProperties)return this.getSectionRecursive(e,t.additionalProperties);if(n.match("[0-9]+"))if(Array.isArray(t.items)){const r=parseInt(n,10);if(!isNaN(r)&&t.items[r])return this.getSectionRecursive(e,t.items[r])}else if(t.items)return this.getSectionRecursive(e,t.items)}}},Sr=class{constructor(e,t,n){this.contextService=t,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}getRegisteredSchemaIds(e){return Object.keys(this.registeredSchemasIds).filter((t=>{const n=pr.parse(t).scheme;return"schemaservice"!==n&&(!e||e(n))}))}get promise(){return this.promiseConstructor}dispose(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()}onResourceChange(e){this.cachedSchemaForResource=void 0;let t=!1;const n=[e=Er(e)],r=Object.keys(this.schemasById).map((e=>this.schemasById[e]));for(;n.length;){const e=n.pop();for(let i=0;i<r.length;i++){const s=r[i];s&&(s.uri===e||s.dependencies.has(e))&&(s.uri!==e&&n.push(s.uri),s.clearSchema()&&(t=!0),r[i]=void 0)}}return t}setSchemaContributions(e){if(e.schemas){const t=e.schemas;for(const e in t){const n=Er(e);this.contributionSchemas[n]=this.addSchemaHandle(n,t[e])}}if(Array.isArray(e.schemaAssociations)){const t=e.schemaAssociations;for(let e of t){const t=e.uris.map(Er),n=this.addFilePatternAssociation(e.pattern,e.folderUri,t);this.contributionAssociations.push(n)}}}addSchemaHandle(e,t){const n=new yr(this,e,t);return this.schemasById[e]=n,n}getOrAddSchemaHandle(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)}addFilePatternAssociation(e,t,n){const r=new Cr(e,t,n);return this.filePatternAssociations.push(r),r}registerExternalSchema(e){const t=Er(e.uri);return this.registeredSchemasIds[t]=!0,this.cachedSchemaForResource=void 0,e.fileMatch&&e.fileMatch.length&&this.addFilePatternAssociation(e.fileMatch,e.folderUri,[t]),e.schema?this.addSchemaHandle(t,e.schema):this.getOrAddSchemaHandle(t)}clearExternalSchemas(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(const e in this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(const e of this.contributionAssociations)this.filePatternAssociations.push(e)}getResolvedSchema(e){const t=Er(e),n=this.schemasById[t];return n?n.getResolvedSchema():this.promise.resolve(void 0)}loadSchema(e){if(!this.requestService){const t=xn("Unable to load schema from '{0}'. No schema request service available",Tr(e));return this.promise.resolve(new Lr({},[t]))}return e.startsWith("http://json-schema.org/")&&(e="https"+e.substring(4)),this.requestService(e).then((t=>{if(!t){const t=xn("Unable to load schema from '{0}': No content.",Tr(e));return new Lr({},[t])}const n=[];65279===t.charCodeAt(0)&&(n.push(xn("Problem reading content from '{0}': UTF-8 with BOM detected, only UTF 8 is allowed.",Tr(e))),t=t.trimStart());let r={};const i=[];return r=Yt(t,i),i.length&&n.push(xn("Unable to parse content from '{0}': Parse error at offset {1}.",Tr(e),i[0].offset)),new Lr(r,n)}),(t=>{let n=t.toString();const r=t.toString().split("Error: ");return r.length>1&&(n=r[1]),cn(n,".")&&(n=n.substr(0,n.length-1)),new Lr({},[xn("Unable to load schema from '{0}': {1}.",Tr(e),n)])}))}resolveSchemaContent(e,t){const n=e.errors.slice(0),r=e.schema;let i=r.$schema?Er(r.$schema):void 0;if("http://json-schema.org/draft-03/schema"===i)return this.promise.resolve(new wr({},[xn("Draft-03 schemas are not supported.")],[],i));let s=new Set;const o=this.contextService,a=(e,t,r,i)=>{let s;var o,a,l;void 0===i||0===i.length?s=t:"/"===i.charAt(0)?s=((e,t)=>{t=decodeURIComponent(t);let n=e;return"/"===t[0]&&(t=t.substring(1)),t.split("/").some((e=>(e=e.replace(/~1/g,"/").replace(/~0/g,"~"),n=n[e],!n))),n})(t,i):(o=t,l=i,(a=r).anchors||(a.anchors=h(o)),s=a.anchors.get(l)),s?((e,t)=>{for(const n in t)t.hasOwnProperty(n)&&"id"!==n&&"$id"!==n&&(e[n]=t[n])})(e,s):n.push(xn("$ref '{0}' in '{1}' can not be resolved.",i||"",r.uri))},l=(e,t,r,i)=>{o&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=o.resolveRelativePath(t,i.uri)),t=Er(t);const s=this.getOrAddSchemaHandle(t);return s.getUnresolvedSchema().then((o=>{if(i.dependencies.add(t),o.errors.length){const e=r?t+"#"+r:t;n.push(xn("Problems loading reference '{0}': {1}",e,o.errors[0]))}return a(e,o.schema,s,r),c(e,o.schema,s)}))},c=(e,t,n)=>{const r=[];return this.traverseNodes(e,(e=>{const i=new Set;for(;e.$ref;){const s=e.$ref,o=s.split("#",2);if(delete e.$ref,o[0].length>0)return void r.push(l(e,o[0],o[1],n));if(!i.has(s)){const r=o[1];a(e,t,n,r),i.add(s)}}e.$recursiveRef&&s.add("$recursiveRef"),e.$dynamicRef&&s.add("$dynamicRef")})),this.promise.all(r)},h=e=>{const t=new Map;return this.traverseNodes(e,(e=>{const r=e.$id||e.id,i=an(r)&&"#"===r.charAt(0)?r.substring(1):e.$anchor;i&&(t.has(i)?n.push(xn("Duplicate anchor declaration: '{0}'",i)):t.set(i,e)),e.$recursiveAnchor&&s.add("$recursiveAnchor"),e.$dynamicAnchor&&s.add("$dynamicAnchor")})),t};return c(r,r,t).then((e=>{let t=[];return s.size&&t.push(xn("The schema uses meta-schema features ({0}) that are not yet supported by the validator.",Array.from(s.keys()).join(", "))),new wr(r,n,t,i)}))}traverseNodes(e,t){if(!e||"object"!==typeof e)return Promise.resolve(null);const n=new Set,r=(...e)=>{for(const t of e)ln(t)&&a.push(t)},i=(...e)=>{for(const t of e)if(ln(t))for(const e in t){const n=t[e];ln(n)&&a.push(n)}},s=(...e)=>{for(const t of e)if(Array.isArray(t))for(const e of t)ln(e)&&a.push(e)},o=e=>{if(Array.isArray(e))for(const t of e)ln(t)&&a.push(t);else ln(e)&&a.push(e)},a=[e];let l=a.pop();for(;l;)n.has(l)||(n.add(l),t(l),r(l.additionalItems,l.additionalProperties,l.not,l.contains,l.propertyNames,l.if,l.then,l.else,l.unevaluatedItems,l.unevaluatedProperties),i(l.definitions,l.$defs,l.properties,l.patternProperties,l.dependencies,l.dependentSchemas),s(l.anyOf,l.allOf,l.oneOf,l.prefixItems),o(l.items)),l=a.pop()}getSchemaFromProperty(e,t){if("object"===t.root?.type)for(const n of t.root.properties)if("$schema"===n.keyNode.value&&"string"===n.valueNode?.type){let t=n.valueNode.value;return this.contextService&&!/^\w[\w\d+.-]*:/.test(t)&&(t=this.contextService.resolveRelativePath(t,e)),t}}getAssociatedSchemas(e){const t=Object.create(null),n=[],r=Nr(e);for(const i of this.filePatternAssociations)if(i.matchesPattern(r))for(const e of i.getURIs())t[e]||(n.push(e),t[e]=!0);return n}getSchemaURIsForResource(e,t){let n=t&&this.getSchemaFromProperty(e,t);return n?[n]:this.getAssociatedSchemas(e)}getSchemaForResource(e,t){if(t){let n=this.getSchemaFromProperty(e,t);if(n){const e=Er(n);return this.getOrAddSchemaHandle(e).getResolvedSchema()}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;const n=this.getAssociatedSchemas(e),r=n.length>0?this.createCombinedSchema(e,n).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:r},r}createCombinedSchema(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);{const n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map((e=>({$ref:e})))};return this.addSchemaHandle(n,r)}}getMatchingSchemas(e,t,n){if(n){const e=n.id||"schemaservice://untitled/matchingSchemas/"+xr++;return this.addSchemaHandle(e,n).getResolvedSchema().then((e=>t.getMatchingSchemas(e.schema).filter((e=>!e.inverted))))}return this.getSchemaForResource(e.uri,t).then((e=>e?t.getMatchingSchemas(e.schema).filter((e=>!e.inverted)):[]))}},xr=0;function Er(e){try{return pr.parse(e).toString(!0)}catch(t){return e}}function Nr(e){try{return pr.parse(e).with({fragment:null,query:null}).toString(!0)}catch(t){return e}}function Tr(e){try{const t=pr.parse(e);if("file"===t.scheme)return t.fsPath}catch(t){}return e}function Ar(e,t){const n=[],r=[],i=[];let s=-1;const o=w(e.getText(),!1);let a=o.scan();function l(e){n.push(e),r.push(i.length)}for(;17!==a;){switch(a){case 1:case 3:{const t=e.positionAt(o.getTokenOffset()).line,n={startLine:t,endLine:t,kind:1===a?"object":"array"};i.push(n);break}case 2:case 4:{const t=2===a?"object":"array";if(i.length>0&&i[i.length-1].kind===t){const t=i.pop(),n=e.positionAt(o.getTokenOffset()).line;t&&n>t.startLine+1&&s!==t.startLine&&(t.endLine=n-1,l(t),s=t.startLine)}break}case 13:{const t=e.positionAt(o.getTokenOffset()).line,n=e.positionAt(o.getTokenOffset()+o.getTokenLength()).line;1===o.getTokenError()&&t+1<e.lineCount?o.setPosition(e.offsetAt(M.create(t+1,0))):t<n&&(l({startLine:t,endLine:n,kind:K.Comment}),s=t);break}case 12:{const t=e.getText().substr(o.getTokenOffset(),o.getTokenLength()).match(/^\/\/\s*#(region\b)|(endregion\b)/);if(t){const n=e.positionAt(o.getTokenOffset()).line;if(t[1]){const e={startLine:n,endLine:n,kind:K.Region};i.push(e)}else{let e=i.length-1;for(;e>=0&&i[e].kind!==K.Region;)e--;if(e>=0){const t=i[e];i.length=e,n>t.startLine&&s!==t.startLine&&(t.endLine=n,l(t),s=t.startLine)}}}break}}a=o.scan()}const c=t&&t.rangeLimit;if("number"!==typeof c||n.length<=c)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);const h=[];for(let f of r)f<30&&(h[f]=(h[f]||0)+1);let u=0,d=0;for(let f=0;f<h.length;f++){const e=h[f];if(e){if(e+u>c){d=f;break}u+=e}}const g=[];for(let f=0;f<n.length;f++){const e=r[f];"number"===typeof e&&(e<d||e===d&&u++<c)&&g.push(n[f])}return g}function Ir(e,t,n){function r(t,n){return D.create(e.positionAt(t),e.positionAt(n))}const i=w(e.getText(),!0);function s(e,t){return i.setPosition(e),i.scan()===t?i.getTokenOffset()+i.getTokenLength():-1}return t.map((function(t){let i=e.offsetAt(t),o=n.getNodeFromOffset(i,!0);const a=[];for(;o;){switch(o.type){case"string":case"object":case"array":const e=o.offset+1,t=o.offset+o.length-1;e<t&&i>=e&&i<=t&&a.push(r(e,t)),a.push(r(o.offset,o.offset+o.length));break;case"number":case"boolean":case"null":case"property":a.push(r(o.offset,o.offset+o.length))}if("property"===o.type||o.parent&&"array"===o.parent.type){const e=s(o.offset+o.length,5);-1!==e&&a.push(r(o.offset,e))}o=o.parent}let l;for(let e=a.length-1;e>=0;e--)l=yt.create(a[e],l);return l||(l=yt.create(D.create(t,t))),l}))}function Or(e,t,n){let r;if(n){const t=e.offsetAt(n.start);r={offset:t,length:e.offsetAt(n.end)-t}}const i={tabSize:t?t.tabSize:4,insertSpaces:!0===t?.insertSpaces,insertFinalNewline:!0===t?.insertFinalNewline,eol:"\n",keepLines:!0===t?.keepLines};return function(e,t,n){return b(e,t,n)}(e.getText(),r,i).map((t=>le.replace(D.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length)),t.content)))}(vr=kr||(kr={}))[vr.Object=0]="Object",vr[vr.Array=1]="Array";var Mr=class{constructor(e,t){this.propertyName=e??"",this.beginningLineNumber=t,this.childrenProperties=[],this.lastProperty=!1,this.noKeyName=!1}addChildProperty(e){if(e.parent=this,this.childrenProperties.length>0){let t=0;t=e.noKeyName?this.childrenProperties.length:function(e,t,n){const r=t.propertyName.toLowerCase(),i=e[0].propertyName.toLowerCase(),s=e[e.length-1].propertyName.toLowerCase();if(r<i)return 0;if(r>s)return e.length;let o=0,a=e.length-1;for(;o<=a;){let r=a+o>>1,i=n(t,e[r]);if(i>0)o=r+1;else{if(!(i<0))return r;a=r-1}}return-o-1}(this.childrenProperties,e,Rr),t<0&&(t=-1*t-1),this.childrenProperties.splice(t,0,e)}else this.childrenProperties.push(e);return e}};function Rr(e,t){const n=e.propertyName.toLowerCase(),r=t.propertyName.toLowerCase();return n<r?-1:n>r?1:0}function Dr(e,t){const n={...t,keepLines:!1},r=fn.applyEdits(e,Or(e,n,void 0)),i=fn.create("test://test.json","json",0,r),s=function(e,t){if(0===t.childrenProperties.length)return e;const n=fn.create("test://test.json","json",0,e.getText()),r=[];Br(r,t,t.beginningLineNumber);for(;r.length>0;){const t=r.shift(),i=t.propertyTreeArray;let s=t.beginningLineNumber;for(let o=0;o<i.length;o++){const t=i[o],a=D.create(M.create(t.beginningLineNumber,0),M.create(t.endLineNumber+1,0)),l=e.getText(a),c=fn.create("test://test.json","json",0,l);if(!0===t.lastProperty&&o!==i.length-1){const e=t.lineWhereToAddComma-t.beginningLineNumber,n=t.indexWhereToAddComa,r={range:D.create(M.create(e,n),M.create(e,n)),text:","};fn.update(c,[r],1)}else if(!1===t.lastProperty&&o===i.length-1){const e=t.commaIndex,n=t.commaLine-t.beginningLineNumber,r={range:D.create(M.create(n,e),M.create(n,e+1)),text:""};fn.update(c,[r],1)}const h=t.endLineNumber-t.beginningLineNumber+1,u={range:D.create(M.create(s,0),M.create(s+h,0)),text:c.getText()};fn.update(n,[u],1),Br(r,t,s),s+=h}}return n}(i,function(e){const t=e.getText(),n=w(t,!1);let r,i,s,o=new Mr,a=o,l=o,c=o,h=0,u=0,d=-1,g=-1,f=0,m=0,p=[],b=!1,_=!1;for(;17!==(r=n.scan());){if(!0===b&&14!==r&&15!==r&&12!==r&&13!==r&&void 0===l.endLineNumber){let e=n.getTokenStartLine();2===s||4===s?c.endLineNumber=e-1:l.endLineNumber=e-1,f=e,b=!1}if(!0===_&&14!==r&&15!==r&&12!==r&&13!==r&&(f=n.getTokenStartLine(),_=!1),n.getTokenStartLine()!==h){for(let t=h;t<n.getTokenStartLine();t++){u+=e.getText(D.create(M.create(t,0),M.create(t+1,0))).length}h=n.getTokenStartLine()}switch(r){case 10:if(void 0===i||1===i||5===i&&p[p.length-1]===kr.Object){const e=new Mr(n.getTokenValue(),f);c=l,l=a.addChildProperty(e)}break;case 3:if(void 0===o.beginningLineNumber&&(o.beginningLineNumber=n.getTokenStartLine()),p[p.length-1]===kr.Object)a=l;else if(p[p.length-1]===kr.Array){const e=new Mr(n.getTokenValue(),f);e.noKeyName=!0,c=l,l=a.addChildProperty(e),a=l}p.push(kr.Array),l.type=kr.Array,f=n.getTokenStartLine(),f++;break;case 1:if(void 0===o.beginningLineNumber)o.beginningLineNumber=n.getTokenStartLine();else if(p[p.length-1]===kr.Array){const e=new Mr(n.getTokenValue(),f);e.noKeyName=!0,c=l,l=a.addChildProperty(e)}l.type=kr.Object,p.push(kr.Object),a=l,f=n.getTokenStartLine(),f++;break;case 4:m=n.getTokenStartLine(),p.pop(),void 0!==l.endLineNumber||2!==i&&4!==i||(l.endLineNumber=m-1,l.lastProperty=!0,l.lineWhereToAddComma=d,l.indexWhereToAddComa=g,c=l,l=l?l.parent:void 0,a=l),o.endLineNumber=m,f=m+1;break;case 2:m=n.getTokenStartLine(),p.pop(),1!==i&&(void 0===l.endLineNumber&&(l.endLineNumber=m-1,l.lastProperty=!0,l.lineWhereToAddComma=d,l.indexWhereToAddComa=g),c=l,l=l?l.parent:void 0,a=l),o.endLineNumber=n.getTokenStartLine(),f=m+1;break;case 5:m=n.getTokenStartLine(),void 0!==l.endLineNumber||p[p.length-1]!==kr.Object&&(p[p.length-1]!==kr.Array||2!==i&&4!==i)||(l.endLineNumber=m,l.commaIndex=n.getTokenOffset()-u,l.commaLine=m),2!==i&&4!==i||(c=l,l=l?l.parent:void 0,a=l),f=m+1;break;case 13:5!==i||d!==n.getTokenStartLine()||(p[p.length-1]!==kr.Array||2!==s&&4!==s)&&p[p.length-1]!==kr.Object||(p[p.length-1]!==kr.Array||2!==s&&4!==s)&&p[p.length-1]!==kr.Object||(l.endLineNumber=void 0,b=!0),1!==i&&3!==i||d!==n.getTokenStartLine()||(_=!0)}14!==r&&13!==r&&12!==r&&15!==r&&(s=i,i=r,d=n.getTokenStartLine(),g=n.getTokenOffset()+n.getTokenLength()-u)}return o}(i)),o=Or(s,n,void 0),a=fn.applyEdits(s,o);return[le.replace(D.create(M.create(0,0),e.positionAt(e.getText().length)),a)]}function Br(e,t,n){if(0!==t.childrenProperties.length)if(t.type===kr.Object){let r=1/0;for(const e of t.childrenProperties)e.beginningLineNumber<r&&(r=e.beginningLineNumber);n+=r-t.beginningLineNumber,e.push(new Vr(n,t.childrenProperties))}else t.type===kr.Array&&Fr(e,t,n)}function Fr(e,t,n){for(const r of t.childrenProperties){if(r.type===kr.Object){let i=1/0;for(const e of r.childrenProperties)e.beginningLineNumber<i&&(i=e.beginningLineNumber);const s=i-r.beginningLineNumber;e.push(new Vr(n+r.beginningLineNumber-t.beginningLineNumber+s,r.childrenProperties))}r.type===kr.Array&&Fr(e,r,n+r.beginningLineNumber-t.beginningLineNumber)}}var Pr,Vr=class{constructor(e,t){this.beginningLineNumber=e,this.propertyTreeArray=t}};function zr(e,t){const n=[];return t.visit((r=>{if("property"===r.type&&"$ref"===r.keyNode.value&&"string"===r.valueNode?.type){const i=r.valueNode.value,s=function(e,t){const n=function(e){if("#"===e)return[];if("#"!==e[0]||"/"!==e[1])return null;return e.substring(2).split(/\//).map(Wr)}(t);if(!n)return null;return qr(n,e.root)}(t,i);if(s){const t=e.positionAt(s.offset);n.push({target:`${e.uri}#${t.line+1},${t.character+1}`,range:jr(e,r.valueNode)})}}return!0})),Promise.resolve(n)}function jr(e,t){return D.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function qr(e,t){if(!t)return null;if(0===e.length)return t;const n=e.shift();if(t&&"object"===t.type){const r=t.properties.find((e=>e.keyNode.value===n));return r?qr(e,r.valueNode):null}if(t&&"array"===t.type&&n.match(/^(0|[1-9][0-9]*)$/)){const r=Number.parseInt(n),i=t.items[r];return i?qr(e,i):null}return null}function Wr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ur(e){const t=e.promiseConstructor||Promise,n=new Sr(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(fr);const r=new er(n,e.contributions,t,e.clientCapabilities),i=new tr(n,e.contributions,t),s=new hr(n),o=new rr(n,t);return{configure:e=>{n.clearExternalSchemas(),e.schemas?.forEach(n.registerExternalSchema.bind(n)),o.configure(e)},resetSchema:e=>n.onResourceChange(e),doValidation:o.doValidation.bind(o),getLanguageStatus:o.getLanguageStatus.bind(o),parseJSONDocument:e=>Yn(e,{collectComments:!0}),newJSONDocument:(e,t)=>function(e,t=[]){return new Qn(e,t,[])}(e,t),getMatchingSchemas:n.getMatchingSchemas.bind(n),doResolve:r.doResolve.bind(r),doComplete:r.doComplete.bind(r),findDocumentSymbols:s.findDocumentSymbols.bind(s),findDocumentSymbols2:s.findDocumentSymbols2.bind(s),findDocumentColors:s.findDocumentColors.bind(s),getColorPresentations:s.getColorPresentations.bind(s),doHover:i.doHover.bind(i),getFoldingRanges:Ar,getSelectionRanges:Ir,findDefinition:()=>Promise.resolve([]),findLinks:zr,format:(e,t,n)=>Or(e,n,t),sort:(e,t)=>Dr(e,t)}}"undefined"!==typeof fetch&&(Pr=function(e){return fetch(e).then((e=>e.text()))});var $r=class{constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId,this._languageService=Ur({workspaceContext:{resolveRelativePath:(e,t)=>function(e,t){if(function(e){return e.charCodeAt(0)===Hr}(t)){const n=pr.parse(e),r=t.split("/");return n.with({path:Gr(r)}).toString()}return function(e,...t){const n=pr.parse(e),r=n.path.split("/");for(let i of t)r.push(...i.split("/"));return n.with({path:Gr(r)}).toString()}(e,t)}(t.substr(0,t.lastIndexOf("/")+1),e)},schemaRequestService:t.enableSchemaRequest?Pr:void 0,clientCapabilities:vn.LATEST}),this._languageService.configure(this._languageSettings)}async doValidation(e){let t=this._getTextDocument(e);if(t){let e=this._languageService.parseJSONDocument(t);return this._languageService.doValidation(t,e,this._languageSettings)}return Promise.resolve([])}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doComplete(n,t,r)}async doResolve(e){return this._languageService.doResolve(e)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doHover(n,t,r)}async format(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.format(r,t,n);return Promise.resolve(i)}async resetSchema(e){return Promise.resolve(this._languageService.resetSchema(e))}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentSymbols2(t,n);return Promise.resolve(r)}async findDocumentColors(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentColors(t,n);return Promise.resolve(r)}async getColorPresentations(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.parseJSONDocument(r),s=this._languageService.getColorPresentations(r,i,t,n);return Promise.resolve(s)}async getFoldingRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.getFoldingRanges(n,t);return Promise.resolve(r)}async getSelectionRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.parseJSONDocument(n),i=this._languageService.getSelectionRanges(n,t,r);return Promise.resolve(i)}async parseJSONDocument(e){let t=this._getTextDocument(e);if(!t)return null;let n=this._languageService.parseJSONDocument(t);return Promise.resolve(n)}async getMatchingSchemas(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t);return Promise.resolve(this._languageService.getMatchingSchemas(t,n))}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return fn.create(e,this._languageId,n.version,n.getValue());return null}},Hr="/".charCodeAt(0),Kr=".".charCodeAt(0);function Gr(e){const t=[];for(const r of e)0===r.length||1===r.length&&r.charCodeAt(0)===Kr||(2===r.length&&r.charCodeAt(0)===Kr&&r.charCodeAt(1)===Kr?t.pop():t.push(r));e.length>1&&0===e[e.length-1].length&&t.push("");let n=t.join("/");return 0===e[0].length&&(n="/"+n),n}self.onmessage=()=>{s(((e,t)=>new $r(e,t)))}})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/json.worker.js.LICENSE.txt b/ydb/core/viewer/monitoring/json.worker.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/json.worker.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/json.worker.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/css/1203.5dcd19b9.chunk.css b/ydb/core/viewer/monitoring/static/css/1203.5dcd19b9.chunk.css deleted file mode 100644 index 0c2575bfffe..00000000000 --- a/ydb/core/viewer/monitoring/static/css/1203.5dcd19b9.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;display:inline-flex;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.g-dialog-body{flex:1 1 auto;overflow-y:auto;padding:10px var(--_--side-padding)}.g-dialog-body_has-borders{border-block-end:1px solid var(--g-color-line-generic)}.g-dialog-body_has-borders,.g-dialog-divider{border-block-start:1px solid var(--g-color-line-generic)}.g-dialog-divider{margin:0 calc(var(--_--side-padding)*-1)}.g-dialog-footer{align-items:center;display:flex;padding:28px var(--_--side-padding)}.g-dialog-footer__bts-wrapper{display:flex;gap:10px}.g-dialog-footer__children{align-items:center;display:flex;flex-grow:1;height:100%}.g-dialog-footer__button{min-width:128px;position:relative}.g-dialog-footer__error{color:var(--g-color-text-danger);padding:10px}.g-dialog-header{align-items:center;color:var(--g-color-text-primary);display:flex;justify-content:flex-start;line-height:24px;padding-block:20px 10px;padding-inline:var(--_--side-padding) calc(var(--_--side-padding) + var(--_--close-button-space)*var(--g-flow-is-ltr) + var(--_--close-button-space)*var(--g-flow-is-rtl))}.g-dialog-header__caption{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-dialog_size_s{--_--width:480px}.g-dialog_size_m{--_--width:720px}.g-dialog_size_l{--_--width:900px}.g-dialog_has-close{--_--close-button-space:24px}.g-modal{-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--g-color-sfx-veil);display:none;inset:0;margin:-9999px 0 0 -9999px;overflow:auto;position:fixed;visibility:hidden;z-index:1000}.g-modal__content-aligner{align-items:center;display:inline-flex;justify-content:center;min-height:100%;min-width:100%}.g-modal__content-wrapper{margin:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{border-radius:var(--g-modal-border-radius,5px)}.g-modal__content{background-color:var(--g-color-base-modal)}.g-modal__content_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-modal,.g-modal__content{animation-fill-mode:forwards;animation-timing-function:ease-out;outline:none}.g-modal_exit_active,.g-modal_open{display:block;margin:0;visibility:visible}.g-modal_appear_active,.g-modal_enter_active{animation-duration:.15s;animation-name:g-modal-open}.g-modal_appear_active .g-modal__content,.g-modal_enter_active .g-modal__content{animation-duration:.15s;animation-name:g-modal-content-open}.g-modal_exit_active{animation-duration:.2s;animation-name:g-modal}@keyframes g-modal{0%{opacity:1}to{opacity:0}}@keyframes g-modal-open{0%{opacity:0}to{opacity:1}}@keyframes g-modal-content-open{0%{transform:scale(.75)}to{transform:scale(1)}}.link,.ydb-tablet-info__link{color:var(--g-color-text-link);text-decoration:none}.link:hover,.ydb-tablet-info__link:hover{color:var(--g-color-text-link-hover)}.ydb-tablet-info__section-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:var(--g-spacing-1) 0 var(--g-spacing-3)}.ydb-table{--ydb-table-cell-height:40px}.ydb-table__table-header-content{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:inline-flex;height:100%;padding:var(--g-spacing-1) var(--g-spacing-2);width:100%}.ydb-table__table{border-collapse:collapse;border-spacing:0;table-layout:fixed}.ydb-table__table tr:hover{background-color:var(--g-color-base-simple-hover)!important}.ydb-table__table tr:nth-of-type(odd){background-color:var(--g-color-base-generic-ultralight)}.ydb-table__table_width_max{width:100%}.ydb-table__table-header-cell{background-color:var(--g-color-base-background);font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-subheader-2-line-height);padding:0;text-align:left;vertical-align:middle}.ydb-table__table-header-cell_align_right .ydb-table__table-header-content{justify-content:flex-end;text-align:right}.ydb-table__table-cell{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-body-2-line-height);padding:0}.ydb-table__table-cell_align_right{text-align:right}.ydb-table__table-cell_vertical-align_top{vertical-align:top}.gt-table{border:none;border-collapse:initial;border-spacing:0}.gt-table__row_interactive{cursor:pointer}.gt-table__header_sticky{inset-block-start:0;position:sticky;z-index:1}.gt-table__footer_sticky{inset-block-end:0;position:sticky;z-index:1}.gt-table__cell{font-weight:400}.gt-table__footer-cell,.gt-table__header-cell{font-weight:500;position:relative}.gt-table__cell,.gt-table__footer-cell,.gt-table__header-cell{box-sizing:border-box;height:inherit;padding:0;text-align:start}.gt-table__cell_pinned,.gt-table__footer-cell_pinned,.gt-table__header-cell_pinned{position:sticky;z-index:1}.gt-table__sort{cursor:pointer;-webkit-user-select:none;user-select:none}.gt-table_with-row-virtualization{display:grid;height:auto}.gt-table_with-row-virtualization .gt-table__body{display:grid;position:relative}.gt-table_with-row-virtualization .gt-table__footer,.gt-table_with-row-virtualization .gt-table__header{display:grid}.gt-table_with-row-virtualization .gt-table__footer-row,.gt-table_with-row-virtualization .gt-table__header-row{display:flex;height:auto}.gt-table_with-row-virtualization .gt-table__row{display:flex;height:auto;position:absolute}.gt-table_with-row-virtualization .gt-table__row_empty{position:relative}.gt-group-header{inset-inline-start:0;margin:0;position:sticky}.gt-group-header__button{appearance:none;background:inherit;border:none;cursor:pointer;display:flex;gap:8px;outline:none;padding:0;width:100%}.gt-group-header__icon{display:inline-block;transform:rotate(-90deg);transition:transform .1s ease-out;vertical-align:middle}.gt-group-header__icon_expanded{transform:rotate(0)}.gt-group-header__content{display:inline-flex;font-weight:500;gap:4px}.gt-sort-indicator{color:var(--g-color-text-hint);display:inline-flex;margin-inline-start:4px;transform:rotate(0);vertical-align:middle}.gt-sort-indicator_invisible{opacity:0}.gt-table__header-cell:hover .gt-sort-indicator_invisible{opacity:1}.gt-sort-indicator_order_asc{transform:rotate(180deg)}.gt-resize-handle{background:#d3d3d3;cursor:col-resize;height:100%;inset-block-start:0;opacity:0;position:absolute;touch-action:none;-webkit-user-select:none;user-select:none;width:6px}.gt-resize-handle_direction_ltr{inset-inline-end:0}.gt-resize-handle_direction_rtl{inset-inline-start:0}.gt-resize-handle_resizing,.gt-table__header-cell:hover .gt-resize-handle{opacity:1}.ydb-tablet-storage-info__metrics-cell{white-space:nowrap}.ydb-tablet-storage-info__metrics-cell,.ydb-tablet-storage-info__name-wrapper{padding:var(--g-spacing-1) var(--g-spacing-2)}.ydb-tablet-storage-info__with-padding{padding-left:calc(var(--g-spacing-2) + var(--g-spacing-6))}.ydb-tablet-storage-info__name-content_no-control{padding-left:var(--g-spacing-6)}.entity-status{--button-width:28px;align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%;position:relative}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__clipboard-button:focus-visible{background-color:var(--g-color-base-float);position:absolute;right:2px;top:2px}.data-table__row:hover .entity-status__clipboard-button,.ydb-paginated-table__row:hover .entity-status__clipboard-button{opacity:1}.data-table__row:hover .entity-status__clipboard-button:focus-visible,.ydb-paginated-table__row:hover .entity-status__clipboard-button:focus-visible{background-color:unset;position:static}.entity-status__clipboard-button_visible{opacity:1}.entity-status__wrapper{overflow:hidden;position:relative}.entity-status__wrapper_with-button{padding-right:var(--button-width)}.entity-status__controls-wrapper{align-items:center;display:flex;gap:var(--g-spacing-1);height:100%;position:absolute;right:0;top:0;width:0}.entity-status__controls-wrapper_visible{padding:var(--g-spacing-1);width:min-content}.data-table__row:hover .entity-status__controls-wrapper,.ydb-paginated-table__row:hover .entity-status__controls-wrapper,.ydb-tree-view__item .entity-status__controls-wrapper{background-color:var(--g-color-base-float);padding:var(--g-spacing-1);width:min-content}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{display:inline-block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% + var(--button-width))}.entity-status__link_with-left-trim{direction:rtl;text-align:end}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-tablet-page{font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);padding:20px}.ydb-tablet-page__placeholder{align-items:center;display:flex;flex:1 1 auto;justify-content:center}.ydb-tablet-page__loader{margin-left:var(--g-spacing-2)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/1489.6e73d562.chunk.css b/ydb/core/viewer/monitoring/static/css/1489.6e73d562.chunk.css deleted file mode 100644 index f0775ffd485..00000000000 --- a/ydb/core/viewer/monitoring/static/css/1489.6e73d562.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.g-dialog-body{flex:1 1 auto;overflow-y:auto;padding:10px var(--_--side-padding)}.g-dialog-body_has-borders{border-block-end:1px solid var(--g-color-line-generic)}.g-dialog-body_has-borders,.g-dialog-divider{border-block-start:1px solid var(--g-color-line-generic)}.g-dialog-divider{margin:0 calc(var(--_--side-padding)*-1)}.g-dialog-footer{align-items:center;display:flex;padding:28px var(--_--side-padding)}.g-dialog-footer__bts-wrapper{display:flex;gap:10px}.g-dialog-footer__children{align-items:center;display:flex;flex-grow:1;height:100%}.g-dialog-footer__button{min-width:128px;position:relative}.g-dialog-footer__error{color:var(--g-color-text-danger);padding:10px}.g-dialog-header{align-items:center;color:var(--g-color-text-primary);display:flex;justify-content:flex-start;line-height:24px;padding-block:20px 10px;padding-inline:var(--_--side-padding) calc(var(--_--side-padding) + var(--_--close-button-space)*var(--g-flow-is-ltr) + var(--_--close-button-space)*var(--g-flow-is-rtl))}.g-dialog-header__caption{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-dialog_size_s{--_--width:480px}.g-dialog_size_m{--_--width:720px}.g-dialog_size_l{--_--width:900px}.g-dialog_has-close{--_--close-button-space:24px}.g-modal{-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--g-color-sfx-veil);display:none;inset:0;margin:-9999px 0 0 -9999px;overflow:auto;position:fixed;visibility:hidden;z-index:1000}.g-modal__content-aligner{align-items:center;display:inline-flex;justify-content:center;min-height:100%;min-width:100%}.g-modal__content-wrapper{margin:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{border-radius:var(--g-modal-border-radius,5px)}.g-modal__content{background-color:var(--g-color-base-modal)}.g-modal__content_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-modal,.g-modal__content{animation-fill-mode:forwards;animation-timing-function:ease-out;outline:none}.g-modal_exit_active,.g-modal_open{display:block;margin:0;visibility:visible}.g-modal_appear_active,.g-modal_enter_active{animation-duration:.15s;animation-name:g-modal-open}.g-modal_appear_active .g-modal__content,.g-modal_enter_active .g-modal__content{animation-duration:.15s;animation-name:g-modal-content-open}.g-modal_exit_active{animation-duration:.2s;animation-name:g-modal}@keyframes g-modal{0%{opacity:1}to{opacity:0}}@keyframes g-modal-open{0%{opacity:0}to{opacity:1}}@keyframes g-modal-content-open{0%{transform:scale(.75)}to{transform:scale(1)}}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.ydb-vdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__icon,.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-vdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-vdisk-page__controls,.ydb-vdisk-page__info,.ydb-vdisk-page__meta,.ydb-vdisk-page__storage-title,.ydb-vdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-vdisk-page__meta{margin-top:20px}.ydb-vdisk-page__controls{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-vdisk-page__storage-title{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height);margin-bottom:0}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/2512.19e3e12f.chunk.css b/ydb/core/viewer/monitoring/static/css/2512.19e3e12f.chunk.css new file mode 100644 index 00000000000..f085c20571e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/2512.19e3e12f.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.ydb-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.ydb-nodes__groups-wrapper{padding-right:20px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.tenants__format-label{margin-right:15px}.tenants__title{text-align:center}.tenants__tooltip{animation:none!important}.tenants__search{width:238px}.tenants__tablets{padding:0!important}.tenants__tablets .tablets-viewer__grid{grid-gap:20px}.tenants__type{align-items:center;display:flex;flex-direction:row;gap:10px}.tenants__type-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.tenants__type-button{display:none}.data-table__row:hover .tenants__type-button{display:block}.tenants__name{overflow:hidden}.ydb-cluster-versions-bar{display:flex;flex-direction:column;min-width:600px}.ydb-cluster-versions-bar .g-progress{width:100%}.ydb-cluster-versions-bar__versions{display:flex;flex-flow:row wrap;margin-top:6px}.ydb-cluster-versions-bar__version-title{margin-left:3px;white-space:nowrap}.ydb-cluster-versions-bar .g-progress__stack{cursor:pointer}.g-progress{--_--empty-background-color:var(--g-color-base-generic);--_--empty-text-color:var(--g-color-text-primary);--_--filled-text-color:var(--g-color-text-primary);--_--filled-background-color:var(--g-color-base-neutral-medium);background-color:var(--g-progress-empty-background-color,var(--_--empty-background-color));border-radius:3px;margin:0 auto;overflow:hidden;position:relative;text-align:center}.g-progress__text{color:var(--g-progress-empty-text-color,var(--_--empty-text-color));position:relative}.g-progress__text,.g-progress__text-inner{box-sizing:border-box;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);padding:0 10px}.g-progress__text-inner{color:var(--g-progress-filled-text-color,var(--_--empty-text-color));height:100%;position:absolute;transition:transform .6s ease;width:100%}.g-progress__item{background-color:var(--g-progress-filled-background-color,var(--_--filled-background-color));float:left;height:100%;overflow:hidden;position:relative;transition:transform .6s ease,width .6s ease,background-color .6s ease;width:100%}[dir=rtl] .g-progress__item{float:right}.g-progress__item_theme_default{--_--filled-background-color:var(--g-color-base-neutral-medium)}.g-progress__item_theme_success{--_--filled-background-color:var(--g-color-base-positive-medium)}.g-progress__item_theme_warning{--_--filled-background-color:var(--g-color-base-warning-medium)}.g-progress__item_theme_danger{--_--filled-background-color:var(--g-color-base-danger-medium)}.g-progress__item_theme_info{--_--filled-background-color:var(--g-color-base-info-medium)}.g-progress__item_theme_misc{--_--filled-background-color:var(--g-color-base-misc-medium)}.g-progress__item_loading{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,#ffffff4d,#ffffff4d 4px,#0000 0,#0000 8px);background-size:150%}.g-progress__stack{color:var(--g-color-text-light-primary);margin:0 auto;overflow:hidden;position:relative;transition:transform .6s ease;width:100%}.g-progress_size_m,.g-progress_size_m .g-progress__stack{height:20px;line-height:20px}.g-progress_size_m .g-progress__text{height:20px;margin-block-end:-20px}.g-progress_size_s,.g-progress_size_s .g-progress__stack{height:10px;line-height:10px}.g-progress_size_xs,.g-progress_size_xs .g-progress__stack{height:4px;line-height:4px}.g-progress_size_s .g-progress__text,.g-progress_size_s .g-progress__text-inner,.g-progress_size_xs .g-progress__text,.g-progress_size_xs .g-progress__text-inner{display:none}.ydb-versions-nodes-tree-title__overview{align-items:center;display:flex;justify-content:space-between;width:100%}.ydb-versions-nodes-tree-title__overview-info{align-items:center;display:flex;margin-left:25px}.ydb-versions-nodes-tree-title__overview-info>:not(:first-child){margin-left:30px}.ydb-versions-nodes-tree-title__overview-container{align-items:center;display:flex}.ydb-versions-nodes-tree-title__info-label{color:var(--g-color-text-complementary);font-weight:200}.ydb-versions-nodes-tree-title__info-label_margin_left{margin-left:5px}.ydb-versions-nodes-tree-title__info-label_margin_right{margin-right:5px}.ydb-versions-nodes-tree-title__version-color{border-radius:100%;height:16px;margin-right:10px;width:16px}.ydb-versions-nodes-tree-title__version-progress{align-items:center;display:flex;width:250px}.ydb-versions-nodes-tree-title__version-progress .g-progress{width:200px}.ydb-versions-nodes-tree-title__overview-title{align-items:center;display:flex}.ydb-versions-nodes-tree-title__clipboard-button{color:var(--g-color-text-secondary);margin-left:8px;opacity:0}.ydb-tree-view__item:hover .ydb-versions-nodes-tree-title__clipboard-button,.ydb-versions-nodes-tree-title__clipboard-button:focus-visible{opacity:1}.ydb-versions-grouped-node-tree_first-level{border:1px solid var(--g-color-line-generic);border-radius:10px;margin-bottom:10px;margin-top:10px}.ydb-versions-grouped-node-tree__dt-wrapper{margin-left:24px;margin-right:24px;overflow:auto hidden;position:relative;z-index:0}.ydb-versions-grouped-node-tree .ydb-tree-view{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-versions-grouped-node-tree .ydb-tree-view .ydb-tree-view{margin-left:24px}.ydb-versions-grouped-node-tree .tree-view_item{border:0;border-radius:10px;height:40px;margin:0;padding:0 10px!important}.ydb-versions-grouped-node-tree .tree-view_children .tree-view_item{width:100%}.ydb-versions-grouped-node-tree .g-progress__stack{cursor:pointer}.ydb-tree-view{--ydb-tree-view-level:0;font-size:13px;line-height:18px}.ydb-tree-view,.ydb-tree-view *{box-sizing:border-box}.ydb-tree-view__item{align-items:center;border-bottom:1px solid var(--g-color-line-generic-solid);cursor:pointer;display:flex;height:24px;padding-left:calc(24px*var(--ydb-tree-view-level));padding-right:3px}.ydb-tree-view__item:hover{background-color:var(--g-color-base-simple-hover)}.ydb-tree-view__item:hover .ydb-tree-view__actions{display:flex}.ydb-tree-view__item_active{background-color:var(--g-color-base-selection);font-weight:700}.ydb-tree-view__item_active:hover{background-color:var(--g-color-base-selection-hover)}.ydb-tree-view__content{align-items:center;display:flex;flex-grow:1;overflow:hidden}.ydb-tree-view__icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex-shrink:0;height:24px;justify-content:center;width:24px}.ydb-tree-view__icon svg{display:block}.ydb-tree-view__text{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-tree-view__actions{align-items:center;display:none;margin-left:6px}.ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%280, 0, 0, 0.85%29"/></svg>') no-repeat 50%;border:none;cursor:pointer;flex-shrink:0;height:24px;padding:0;width:24px}.g-root_theme_dark .ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%28255, 255, 255, 0.85%29"/></svg>') no-repeat 50%}.ydb-tree-view__arrow:focus-visible{outline:2px solid var(--g-color-line-focus)}.ydb-tree-view__arrow:not(.ydb-tree-view__arrow_collapsed){transform:rotate(90deg)}.ydb-tree-view__arrow_hidden{visibility:hidden}.ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:24px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:48px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:72px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:96px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:120px}.ydb-versions{--ydb-info-viewer-font-size:var(--g-text-body-2-font-size);--ydb-info-viewer-line-height:var(--g-text-body-2-line-height);font-size:var(--ydb-info-viewer-font-size);line-height:var(--ydb-info-viewer-line-height)}.ydb-versions__controls{align-items:center;display:flex;padding:0 0 20px}.ydb-versions__controls .ydb-versions__label{font-weight:500;margin-right:10px}.ydb-versions__controls .ydb-versions__checkbox{margin:0}.ydb-versions__controls>*{margin-right:25px}.ydb-versions__overall-wrapper{border:1px solid var(--g-color-line-generic);border-radius:10px;margin-bottom:10px;margin-top:10px;padding:20px}.ydb-versions__overall-progress{border-radius:5px;height:20px;line-height:20px}.ydb-versions__overall-progress .g-progress__stack{height:20px;line-height:20px}.tag{background:var(--g-color-base-generic);border-radius:3px;color:var(--g-color-text-primary);font-size:12px;padding:2px 5px;white-space:nowrap}.tag:last-child{margin-right:0}.tag_type_blue{background-color:var(--g-color-celestial-thunder)}.ydb-diagnostic-card{background-color:#0000;border:1px solid var(--g-color-line-generic);border-radius:8px;flex-shrink:0;padding:16px 16px 28px}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card_interactive:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-diagnostic-card_size_m{min-width:206px;width:206px}.ydb-diagnostic-card_size_l{min-width:289px;width:289px}.ydb-diagnostic-card_size_s{min-width:134px;width:134px}.ydb-doughnut-metrics{--doughnut-border:11px;--doughnut-color:var(--ydb-color-status-green)}.ydb-doughnut-metrics__doughnut{aspect-ratio:1;background-color:var(--doughnut-color);border-radius:50%;position:relative;width:172px}.ydb-doughnut-metrics__doughnut:before{aspect-ratio:1;background-color:var(--g-color-base-background);border-radius:50%;content:"";display:block;height:calc(100% - var(--doughnut-border)*2);transform:translate(var(--doughnut-border),var(--doughnut-border))}.ydb-doughnut-metrics__doughnut_status_warning{--doughnut-color:var(--ydb-color-status-yellow)}.ydb-doughnut-metrics__doughnut_status_danger{--doughnut-color:var(--ydb-color-status-red)}.ydb-doughnut-metrics__text-wrapper{--wrapper-indent:calc(var(--doughnut-border) + 5px);align-items:center;aspect-ratio:1;display:flex;flex-direction:column;justify-content:center;position:absolute;right:var(--wrapper-indent);text-align:center;top:var(--wrapper-indent);width:calc(100% - var(--wrapper-indent)*2)}.ydb-doughnut-metrics__value{bottom:20px;position:absolute}.ydb-doughnut-metrics__legend{height:50%;white-space:pre-wrap}.ydb-disk-groups-stats{cursor:pointer}.ydb-disk-groups-stats__popup-content{padding:var(--g-spacing-3)}.gc-help-popover__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gc-help-popover__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.gc-definition-list__list{margin:0}.gc-definition-list__group-title{margin-block-end:var(--g-spacing-3)}.gc-definition-list__group-title:not(:first-of-type){margin-block-start:var(--g-spacing-5)}.gc-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.gc-definition-list__item+.gc-definition-list__item{margin-block-start:var(--g-spacing-4)}.gc-definition-list__item_grouped+.gc-definition-list__item_grouped{margin-block-start:var(--g-spacing-3)}.gc-definition-list_margin:not(:first-of-type){margin-block-start:var(--g-spacing-5)}.gc-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 auto;max-width:300px;overflow:hidden;position:relative;width:300px}.gc-definition-list__term-wrapper{color:var(--g-color-text-secondary);flex:0 1 auto;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.gc-definition-list__term-container_multiline .gc-definition-list__term-wrapper{white-space:unset}.gc-definition-list__term-container_multiline .gc-definition-list__item-note-tooltip{position:absolute}.gc-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:40px}.gc-definition-list__dots_with-note{margin-inline-start:15px;min-width:25px}.gc-definition-list__definition{flex:0 1 auto;margin:0}.gc-definition-list_responsive .gc-definition-list__term-container{flex:1 0 auto}.gc-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.gc-definition-list__copy-container:hover .gc-definition-list__copy-button{opacity:1}.gc-definition-list__copy-container_icon-inside{margin-inline-end:unset;padding-inline-end:unset}.gc-definition-list__copy-container_icon-inside .gc-definition-list__copy-button{inset-block-start:0}.gc-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.gc-definition-list__copy-button:focus-visible{opacity:1}.gc-definition-list_vertical .gc-definition-list__term-container{flex:1 0 auto}.gc-definition-list_vertical .gc-definition-list__item{flex-direction:column;gap:var(--g-spacing-half)}.gc-definition-list_vertical .gc-definition-list__item+.gc-definition-list__item{margin-block-start:var(--g-spacing-3)}.gc-definition-list_vertical .gc-definition-list__group-title:not(:first-of-type),.gc-definition-list_vertical .gc-definition-list_margin:not(:first-of-type){margin-block-start:var(--g-spacing-8)}.ydb-cluster-dashboard{left:0;padding-top:16px;position:sticky}.ydb-cluster-dashboard__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-cluster-dashboard__card{display:flex;flex-direction:column;height:252px}.ydb-cluster-dashboard__card_size_s{height:unset}.ydb-cluster-dashboard__card_size_l{height:unset;width:100%}.ydb-cluster-dashboard__skeleton-wrapper{border:unset;padding:unset}.ydb-cluster-dashboard__doughnut{margin-top:auto}.ydb-cluster-dashboard__cards{display:flex}.ydb-cluster-dashboard__card-title{margin-bottom:var(--g-spacing-2)}.ydb-cluster-dashboard__skeleton{height:100%}.ydb-cluster-dashboard__cards-container{display:grid;gap:var(--g-spacing-4);grid-auto-flow:column dense;grid-template-columns:repeat(2,max-content);grid-template-rows:repeat(2,118px)}.ydb-cluster-dashboard__double-height{grid-row:span 2}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.ydb-nodes-state{--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);align-items:center;background-color:var(--entity-state-background-color);border-radius:var(--g-spacing-1);color:var(--entity-state-font-color);display:flex;height:20px;justify-content:center;min-width:26px;padding:0 var(--g-spacing-1);width:max-content}.ydb-nodes-state_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.ydb-nodes-state_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.ydb-nodes-state_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.ydb-nodes-state_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.ydb-nodes-state_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.ydb-nodes-state__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.cluster-info{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);padding:20px 0}.cluster-info__skeleton{margin-top:5px}.cluster-info__section-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:var(--g-spacing-1) 0 var(--g-spacing-3)}.cluster-info__dc{height:20px}.cluster-info__clipboard-button{align-items:center;display:flex;margin-left:5px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-cluster{flex-grow:1;height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-cluster__header{left:0;padding:20px 0;position:sticky}.ydb-cluster__title{font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height)}.ydb-cluster__title-skeleton{height:var(--g-text-header-1-line-height);min-width:200px;width:20%}.ydb-cluster__tabs-sticky-wrapper{background-color:var(--g-color-base-background);left:0;margin-right:-40px;margin-top:20px;padding-left:20px;padding-right:40px;position:sticky;top:0;transform:translateX(-20px);z-index:3}.ydb-cluster__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex}.ydb-cluster__sticky-wrapper{left:0;position:sticky;top:66px;z-index:4}.ydb-cluster__auto-refresh-control{background-color:var(--g-color-base-background);float:right;margin-top:-46px}.ydb-cluster .ydb-table-with-controls-layout__controls-wrapper{top:40px}.ydb-cluster__tablets .data-table__sticky_moving{top:40px!important}.ydb-cluster .ydb-table-with-controls-layout{--data-table-sticky-top-offset:102px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/2828.3c5a5933.chunk.css b/ydb/core/viewer/monitoring/static/css/2828.3c5a5933.chunk.css deleted file mode 100644 index 9d378ec8e2c..00000000000 --- a/ydb/core/viewer/monitoring/static/css/2828.3c5a5933.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__icon,.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-storage-group-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-storage-group-page__info,.ydb-storage-group-page__meta,.ydb-storage-group-page__storage-title,.ydb-storage-group-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-storage-group-page__meta{margin-top:20px}.ydb-storage-group-page__title{margin-bottom:60px}.ydb-storage-group-page__storage-title{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height);margin-bottom:0}.ydb-storage-group-page__info{margin-top:var(--g-spacing-10)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/3207.6c42f157.chunk.css b/ydb/core/viewer/monitoring/static/css/3207.6c42f157.chunk.css deleted file mode 100644 index b1447c9db23..00000000000 --- a/ydb/core/viewer/monitoring/static/css/3207.6c42f157.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__icon,.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.ydb-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.ydb-nodes__groups-wrapper{padding-right:20px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.g-dialog-body{flex:1 1 auto;overflow-y:auto;padding:10px var(--_--side-padding)}.g-dialog-body_has-borders{border-block-end:1px solid var(--g-color-line-generic)}.g-dialog-body_has-borders,.g-dialog-divider{border-block-start:1px solid var(--g-color-line-generic)}.g-dialog-divider{margin:0 calc(var(--_--side-padding)*-1)}.g-dialog-footer{align-items:center;display:flex;padding:28px var(--_--side-padding)}.g-dialog-footer__bts-wrapper{display:flex;gap:10px}.g-dialog-footer__children{align-items:center;display:flex;flex-grow:1;height:100%}.g-dialog-footer__button{min-width:128px;position:relative}.g-dialog-footer__error{color:var(--g-color-text-danger);padding:10px}.g-dialog-header{align-items:center;color:var(--g-color-text-primary);display:flex;justify-content:flex-start;line-height:24px;padding-block:20px 10px;padding-inline:var(--_--side-padding) calc(var(--_--side-padding) + var(--_--close-button-space)*var(--g-flow-is-ltr) + var(--_--close-button-space)*var(--g-flow-is-rtl))}.g-dialog-header__caption{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-dialog_size_s{--_--width:480px}.g-dialog_size_m{--_--width:720px}.g-dialog_size_l{--_--width:900px}.g-dialog_has-close{--_--close-button-space:24px}.g-modal{-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--g-color-sfx-veil);display:none;inset:0;margin:-9999px 0 0 -9999px;overflow:auto;position:fixed;visibility:hidden;z-index:1000}.g-modal__content-aligner{align-items:center;display:inline-flex;justify-content:center;min-height:100%;min-width:100%}.g-modal__content-wrapper{margin:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{border-radius:var(--g-modal-border-radius,5px)}.g-modal__content{background-color:var(--g-color-base-modal)}.g-modal__content_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-modal,.g-modal__content{animation-fill-mode:forwards;animation-timing-function:ease-out;outline:none}.g-modal_exit_active,.g-modal_open{display:block;margin:0;visibility:visible}.g-modal_appear_active,.g-modal_enter_active{animation-duration:.15s;animation-name:g-modal-open}.g-modal_appear_active .g-modal__content,.g-modal_enter_active .g-modal__content{animation-duration:.15s;animation-name:g-modal-content-open}.g-modal_exit_active{animation-duration:.2s;animation-name:g-modal}@keyframes g-modal{0%{opacity:1}to{opacity:0}}@keyframes g-modal-open{0%{opacity:0}to{opacity:1}}@keyframes g-modal-content-open{0%{transform:scale(.75)}to{transform:scale(1)}}.tenants__format-label{margin-right:15px}.tenants__title{text-align:center}.tenants__tooltip{animation:none!important}.tenants__search{width:238px}.tenants__tablets{padding:0!important}.tenants__tablets .tablets-viewer__grid{grid-gap:20px}.tenants__type{align-items:center;display:flex;flex-direction:row;gap:10px}.tenants__type-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.tenants__type-button{display:none}.data-table__row:hover .tenants__type-button{display:block}.tenants__name{overflow:hidden}.ydb-cluster-versions-bar{display:flex;flex-direction:column;min-width:600px}.ydb-cluster-versions-bar .g-progress{width:100%}.ydb-cluster-versions-bar__versions{display:flex;flex-flow:row wrap;margin-top:6px}.ydb-cluster-versions-bar__version-title{margin-left:3px;white-space:nowrap}.ydb-cluster-versions-bar .g-progress__stack{cursor:pointer}.g-progress{--_--empty-background-color:var(--g-color-base-generic);--_--empty-text-color:var(--g-color-text-primary);--_--filled-text-color:var(--g-color-text-primary);--_--filled-background-color:var(--g-color-base-neutral-medium);background-color:var(--g-progress-empty-background-color,var(--_--empty-background-color));border-radius:3px;margin:0 auto;overflow:hidden;position:relative;text-align:center}.g-progress__text{color:var(--g-progress-empty-text-color,var(--_--empty-text-color));position:relative}.g-progress__text,.g-progress__text-inner{box-sizing:border-box;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);padding:0 10px}.g-progress__text-inner{color:var(--g-progress-filled-text-color,var(--_--empty-text-color));height:100%;position:absolute;transition:transform .6s ease;width:100%}.g-progress__item{background-color:var(--g-progress-filled-background-color,var(--_--filled-background-color));float:left;height:100%;overflow:hidden;position:relative;transition:transform .6s ease,width .6s ease,background-color .6s ease;width:100%}[dir=rtl] .g-progress__item{float:right}.g-progress__item_theme_default{--_--filled-background-color:var(--g-color-base-neutral-medium)}.g-progress__item_theme_success{--_--filled-background-color:var(--g-color-base-positive-medium)}.g-progress__item_theme_warning{--_--filled-background-color:var(--g-color-base-warning-medium)}.g-progress__item_theme_danger{--_--filled-background-color:var(--g-color-base-danger-medium)}.g-progress__item_theme_info{--_--filled-background-color:var(--g-color-base-info-medium)}.g-progress__item_theme_misc{--_--filled-background-color:var(--g-color-base-misc-medium)}.g-progress__item_loading{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,#ffffff4d,#ffffff4d 4px,#0000 0,#0000 8px);background-size:150%}.g-progress__stack{color:var(--g-color-text-light-primary);margin:0 auto;overflow:hidden;position:relative;transition:transform .6s ease;width:100%}.g-progress_size_m,.g-progress_size_m .g-progress__stack{height:20px;line-height:20px}.g-progress_size_m .g-progress__text{height:20px;margin-block-end:-20px}.g-progress_size_s,.g-progress_size_s .g-progress__stack{height:10px;line-height:10px}.g-progress_size_xs,.g-progress_size_xs .g-progress__stack{height:4px;line-height:4px}.g-progress_size_s .g-progress__text,.g-progress_size_s .g-progress__text-inner,.g-progress_size_xs .g-progress__text,.g-progress_size_xs .g-progress__text-inner{display:none}.ydb-versions-nodes-tree-title__overview{align-items:center;display:flex;justify-content:space-between;width:100%}.ydb-versions-nodes-tree-title__overview-info{align-items:center;display:flex;margin-left:25px}.ydb-versions-nodes-tree-title__overview-info>:not(:first-child){margin-left:30px}.ydb-versions-nodes-tree-title__overview-container{align-items:center;display:flex}.ydb-versions-nodes-tree-title__info-label{color:var(--g-color-text-complementary);font-weight:200}.ydb-versions-nodes-tree-title__info-label_margin_left{margin-left:5px}.ydb-versions-nodes-tree-title__info-label_margin_right{margin-right:5px}.ydb-versions-nodes-tree-title__version-color{border-radius:100%;height:16px;margin-right:10px;width:16px}.ydb-versions-nodes-tree-title__version-progress{align-items:center;display:flex;width:250px}.ydb-versions-nodes-tree-title__version-progress .g-progress{width:200px}.ydb-versions-nodes-tree-title__overview-title{align-items:center;display:flex}.ydb-versions-nodes-tree-title__clipboard-button{color:var(--g-color-text-secondary);margin-left:8px;opacity:0}.ydb-tree-view__item:hover .ydb-versions-nodes-tree-title__clipboard-button,.ydb-versions-nodes-tree-title__clipboard-button:focus-visible{opacity:1}.ydb-versions-grouped-node-tree_first-level{border:1px solid var(--g-color-line-generic);border-radius:10px;margin-bottom:10px;margin-top:10px}.ydb-versions-grouped-node-tree__dt-wrapper{margin-left:24px;margin-right:24px;overflow:auto hidden;position:relative;z-index:0}.ydb-versions-grouped-node-tree .ydb-tree-view{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-versions-grouped-node-tree .ydb-tree-view .ydb-tree-view{margin-left:24px}.ydb-versions-grouped-node-tree .tree-view_item{border:0;border-radius:10px;height:40px;margin:0;padding:0 10px!important}.ydb-versions-grouped-node-tree .tree-view_children .tree-view_item{width:100%}.ydb-versions-grouped-node-tree .g-progress__stack{cursor:pointer}.ydb-tree-view{--ydb-tree-view-level:0;font-size:13px;line-height:18px}.ydb-tree-view,.ydb-tree-view *{box-sizing:border-box}.ydb-tree-view__item{align-items:center;border-bottom:1px solid var(--g-color-line-generic-solid);cursor:pointer;display:flex;height:24px;padding-left:calc(24px*var(--ydb-tree-view-level));padding-right:3px}.ydb-tree-view__item:hover{background-color:var(--g-color-base-simple-hover)}.ydb-tree-view__item:hover .ydb-tree-view__actions{display:flex}.ydb-tree-view__item_active{background-color:var(--g-color-base-selection);font-weight:700}.ydb-tree-view__item_active:hover{background-color:var(--g-color-base-selection-hover)}.ydb-tree-view__content{align-items:center;display:flex;flex-grow:1;overflow:hidden}.ydb-tree-view__icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex-shrink:0;height:24px;justify-content:center;width:24px}.ydb-tree-view__icon svg{display:block}.ydb-tree-view__text{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-tree-view__actions{align-items:center;display:none;margin-left:6px}.ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%280, 0, 0, 0.85%29"/></svg>') no-repeat 50%;border:none;cursor:pointer;flex-shrink:0;height:24px;padding:0;width:24px}.g-root_theme_dark .ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%28255, 255, 255, 0.85%29"/></svg>') no-repeat 50%}.ydb-tree-view__arrow:focus-visible{outline:2px solid var(--g-color-line-focus)}.ydb-tree-view__arrow:not(.ydb-tree-view__arrow_collapsed){transform:rotate(90deg)}.ydb-tree-view__arrow_hidden{visibility:hidden}.ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:24px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:48px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:72px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:96px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:120px}.ydb-versions{--ydb-info-viewer-font-size:var(--g-text-body-2-font-size);--ydb-info-viewer-line-height:var(--g-text-body-2-line-height);font-size:var(--ydb-info-viewer-font-size);line-height:var(--ydb-info-viewer-line-height)}.ydb-versions__controls{align-items:center;display:flex;padding:0 0 20px}.ydb-versions__controls .ydb-versions__label{font-weight:500;margin-right:10px}.ydb-versions__controls .ydb-versions__checkbox{margin:0}.ydb-versions__controls>*{margin-right:25px}.ydb-versions__overall-wrapper{border:1px solid var(--g-color-line-generic);border-radius:10px;margin-bottom:10px;margin-top:10px;padding:20px}.ydb-versions__overall-progress{border-radius:5px;height:20px;line-height:20px}.ydb-versions__overall-progress .g-progress__stack{height:20px;line-height:20px}.tag{background:var(--g-color-base-generic);border-radius:3px;color:var(--g-color-text-primary);font-size:12px;padding:2px 5px;white-space:nowrap}.tag:last-child{margin-right:0}.tag_type_blue{background-color:var(--g-color-celestial-thunder)}.ydb-diagnostic-card{background-color:#0000;border:1px solid var(--g-color-line-generic);border-radius:8px;flex-shrink:0;padding:16px 16px 28px}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card_interactive:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-diagnostic-card_size_m{min-width:206px;width:206px}.ydb-diagnostic-card_size_l{min-width:289px;width:289px}.ydb-diagnostic-card_size_s{min-width:134px;width:134px}.ydb-doughnut-metrics{--doughnut-border:11px;--doughnut-color:var(--ydb-color-status-green)}.ydb-doughnut-metrics__doughnut{aspect-ratio:1;background-color:var(--doughnut-color);border-radius:50%;position:relative;width:172px}.ydb-doughnut-metrics__doughnut:before{aspect-ratio:1;background-color:var(--g-color-base-background);border-radius:50%;content:"";display:block;height:calc(100% - var(--doughnut-border)*2);transform:translate(var(--doughnut-border),var(--doughnut-border))}.ydb-doughnut-metrics__doughnut_status_warning{--doughnut-color:var(--ydb-color-status-yellow)}.ydb-doughnut-metrics__doughnut_status_danger{--doughnut-color:var(--ydb-color-status-red)}.ydb-doughnut-metrics__text-wrapper{--wrapper-indent:calc(var(--doughnut-border) + 5px);align-items:center;aspect-ratio:1;display:flex;flex-direction:column;justify-content:center;position:absolute;right:var(--wrapper-indent);text-align:center;top:var(--wrapper-indent);width:calc(100% - var(--wrapper-indent)*2)}.ydb-doughnut-metrics__value{bottom:20px;position:absolute}.ydb-doughnut-metrics__legend{height:50%;white-space:pre-wrap}.ydb-disk-groups-stats{cursor:pointer}.ydb-disk-groups-stats__popup-content{padding:var(--g-spacing-3)}.gc-help-popover__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gc-help-popover__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.gc-definition-list{margin:0}.gc-definition-list__title{margin-block-end:var(--g-spacing-3)}.gc-definition-list .gc-definition-list__item:is(.gc-definition-list__item_grouped)+.gc-definition-list__item:not(.gc-definition-list__item_grouped),.gc-definition-list__title:not(:first-of-type){margin-block-start:var(--g-spacing-5)}.gc-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.gc-definition-list__item+.gc-definition-list__item{margin-block-start:var(--g-spacing-4)}.gc-definition-list__item_grouped+.gc-definition-list__item_grouped{margin-block-start:var(--g-spacing-3)}.gc-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 300px;overflow:hidden;position:relative}.gc-definition-list__term-wrapper{color:var(--g-color-text-secondary);flex:0 1 auto;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.gc-definition-list__term-container_multiline .gc-definition-list__term-wrapper{white-space:unset}.gc-definition-list__term-container_multiline .gc-definition-list__item-note-tooltip{position:absolute}.gc-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:40px}.gc-definition-list__dots_with-note{margin-inline-start:15px;min-width:25px}.gc-definition-list__definition{flex:0 1 auto;margin:0}.gc-definition-list_responsive .gc-definition-list__term-container{flex:1 0 auto}.gc-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.gc-definition-list__copy-container:hover .gc-definition-list__copy-button{opacity:1}.gc-definition-list__copy-container_icon-inside{margin-inline-end:unset;padding-inline-end:unset}.gc-definition-list__copy-container_icon-inside .gc-definition-list__copy-button{inset-block-start:0}.gc-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.gc-definition-list__copy-button:focus-visible{opacity:1}.ydb-cluster-dashboard{left:0;padding-top:16px;position:sticky}.ydb-cluster-dashboard__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-cluster-dashboard__card{display:flex;flex-direction:column;height:252px}.ydb-cluster-dashboard__card_size_s{height:unset}.ydb-cluster-dashboard__card_size_l{height:unset;width:100%}.ydb-cluster-dashboard__skeleton-wrapper{border:unset;padding:unset}.ydb-cluster-dashboard__doughnut{margin-top:auto}.ydb-cluster-dashboard__cards{display:flex}.ydb-cluster-dashboard__card-title{margin-bottom:var(--g-spacing-2)}.ydb-cluster-dashboard__skeleton{height:100%}.ydb-cluster-dashboard__cards-container{display:grid;gap:var(--g-spacing-4);grid-auto-flow:column dense;grid-template-columns:repeat(2,max-content);grid-template-rows:repeat(2,118px)}.ydb-cluster-dashboard__double-height{grid-row:span 2}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.ydb-nodes-state{--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);align-items:center;background-color:var(--entity-state-background-color);border-radius:var(--g-spacing-1);color:var(--entity-state-font-color);display:flex;height:20px;justify-content:center;min-width:26px;padding:0 var(--g-spacing-1);width:max-content}.ydb-nodes-state_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.ydb-nodes-state_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.ydb-nodes-state_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.ydb-nodes-state_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.ydb-nodes-state_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.ydb-nodes-state__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.cluster-info{padding:20px 0}.cluster-info__skeleton{margin-top:5px}.cluster-info__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.cluster-info__metrics{margin:0 -15px;padding:0 15px!important}.cluster-info__metrics .info-viewer__items{grid-template-columns:repeat(2,minmax(auto,250px))}.cluster-info__metrics .info-viewer__label{width:50px}.cluster-info__metrics .info-viewer__value{width:130px}.cluster-info__tablets{margin-left:15px;padding:0!important}.cluster-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.cluster-info__clipboard-button{align-items:center;display:flex;margin-left:5px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-cluster{flex-grow:1;height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-cluster__header{left:0;padding:20px 0;position:sticky}.ydb-cluster__title{font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height)}.ydb-cluster__title-skeleton{height:var(--g-text-header-1-line-height);min-width:200px;width:20%}.ydb-cluster__tabs-sticky-wrapper{background-color:var(--g-color-base-background);left:0;margin-right:-40px;margin-top:20px;padding-left:20px;padding-right:40px;position:sticky;top:0;transform:translateX(-20px);z-index:3}.ydb-cluster__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex}.ydb-cluster__sticky-wrapper{left:0;position:sticky;top:66px;z-index:4}.ydb-cluster__auto-refresh-control{background-color:var(--g-color-base-background);float:right;margin-top:-46px}.ydb-cluster .ydb-table-with-controls-layout__controls-wrapper{top:40px}.ydb-cluster__tablets .data-table__sticky_moving{top:40px!important}.ydb-cluster .ydb-table-with-controls-layout{--data-table-sticky-top-offset:102px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/3230.e4288e80.chunk.css b/ydb/core/viewer/monitoring/static/css/3230.e4288e80.chunk.css deleted file mode 100644 index 148864638b5..00000000000 --- a/ydb/core/viewer/monitoring/static/css/3230.e4288e80.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.table-skeleton__wrapper{width:100%}.table-skeleton__wrapper_hidden{visibility:hidden}.table-skeleton__row{align-items:center;display:flex;height:var(--data-table-row-height)}.table-skeleton__row .g-skeleton{height:var(--g-text-body-2-line-height)}.table-skeleton__col-1{margin-right:5%;width:10%}.table-skeleton__col-2{margin-right:5%;width:7%}.table-skeleton__col-3,.table-skeleton__col-4{margin-right:5%;width:5%}.table-skeleton__col-5{width:20%}.table-skeleton__col-full{width:100%}.ydb-table-with-controls-layout{--data-table-sticky-top-offset:62px;box-sizing:border-box;display:inline-block;min-width:100%}.ydb-table-with-controls-layout__controls-wrapper{background-color:var(--g-color-base-background);box-sizing:border-box;left:0;position:sticky;top:0;width:100%;z-index:3}.ydb-table-with-controls-layout__controls{align-items:center;background-color:var(--g-color-base-background);display:flex;gap:12px;height:62px;left:0;padding:16px 0 18px;position:sticky;top:0;width:max-content;z-index:3}.ydb-table-with-controls-layout__table{position:relative;z-index:2}.ydb-table-with-controls-layout .ydb-paginated-table__head{top:var(--data-table-sticky-top-offset,62px)}.ydb-table-with-controls-layout .data-table__sticky_moving{top:var(--data-table-sticky-top-offset,62px)!important}.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;display:inline-flex;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:150px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.ydb-search{min-width:100px}.ydb-paginated-table{--paginated-table-cell-vertical-padding:5px;--paginated-table-cell-horizontal-padding:10px;--paginated-table-border-color:var(--g-color-base-generic-hover);--paginated-table-hover-color:var(--g-color-base-simple-hover-solid);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);width:100%}.ydb-paginated-table__table{border-collapse:initial;border-spacing:0;max-width:100%;table-layout:fixed;width:max-content}.ydb-paginated-table__table th{padding:0}.ydb-paginated-table__row{position:relative;transform:translateZ(0);z-index:1}.ydb-paginated-table__row:hover{background:var(--paginated-table-hover-color)}.ydb-paginated-table__row_empty:hover{background-color:initial}.ydb-paginated-table__head{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:2}.ydb-paginated-table__sort-icon-container{color:inherit;display:flex;justify-content:center}.ydb-paginated-table__sort-icon-container_shadow{opacity:.15}.ydb-paginated-table__sort-icon_desc{transform:rotate(180deg)}.ydb-paginated-table__head-cell-wrapper{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;overflow-x:hidden;position:relative}.ydb-paginated-table__head-cell{align-items:center;display:flex;flex-direction:row;max-width:100%;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);width:100%}.ydb-paginated-table__head-cell_align_left{justify-content:left}.ydb-paginated-table__head-cell_align_center{justify-content:center}.ydb-paginated-table__head-cell_align_right{justify-content:right}.ydb-paginated-table__head-cell{cursor:default;font-weight:700;gap:8px}.ydb-paginated-table__head-cell_sortable{cursor:pointer}.ydb-paginated-table__head-cell_sortable.ydb-paginated-table__head-cell_align_right{flex-direction:row-reverse}.ydb-paginated-table__head-cell-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.ydb-paginated-table__row-cell{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;max-width:100%;overflow-x:hidden;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-paginated-table__row-cell_align_left{text-align:left}.ydb-paginated-table__row-cell_align_center{text-align:center}.ydb-paginated-table__row-cell_align_right{text-align:right}.ydb-paginated-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.ydb-paginated-table__head-cell-wrapper:hover>.ydb-paginated-table__resize-handler,.ydb-paginated-table__resize-handler_resizing{visibility:visible}.ydb-paginated-table__resizeable-table-container{padding-right:20px;width:max-content}.ydb-paginated-table__row-skeleton:after{animation:none!important}.ydb-cell-with-popover{display:flex;max-width:100%}.ydb-cell-with-popover__popover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.ydb-cell-with-popover__popover .g-popover__handler{display:inline}.ydb-cell-with-popover__popover_full-width{width:100%}.ydb-usage-label_overload{background-color:var(--ydb-color-status-red);color:var(--g-color-text-light-primary)}.ydb-table-group{border:1px solid var(--g-color-line-generic);border-radius:var(--g-spacing-2);display:flex;flex-direction:column;margin-bottom:20px;width:100%}.ydb-table-group__button{background:unset;border:unset;cursor:pointer;padding:8px 0}.ydb-table-group__title-wrapper{align-items:center;display:flex;flex-direction:row;gap:var(--g-spacing-2);justify-content:flex-start;left:0;padding-left:20px;position:sticky;width:max-content}.ydb-table-group__title{display:flex;flex-direction:row;gap:var(--g-spacing-4)}.ydb-table-group__count{display:flex;flex-direction:row;gap:var(--g-spacing-3)}.ydb-table-group__content{padding:12px 0 20px 20px}.hover-popup{padding:var(--g-spacing-3)}.stack{--ydb-stack-base-z-index:100;--ydb-stack-offset-x:4px;--ydb-stack-offset-y:4px;--ydb-stack-offset-x-hover:4px;--ydb-stack-offset-y-hover:8px;position:relative}.stack__layer{background:var(--g-color-base-background);transition:transform .1s ease-out}.stack__layer:first-child{position:relative;z-index:var(--ydb-stack-base-z-index)}.stack__layer+.stack__layer{height:100%;left:0;position:absolute;top:0;transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y)));width:100%;z-index:calc(var(--ydb-stack-base-z-index) - var(--ydb-stack-level))}.stack:hover .stack__layer:first-child{transform:translate(calc(var(--ydb-stack-offset-x-hover)*-1),calc(var(--ydb-stack-offset-y-hover)*-1))}.stack:hover .stack__layer+.stack__layer{transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x-hover)*2 - var(--ydb-stack-offset-x-hover)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y-hover)*2 - var(--ydb-stack-offset-y-hover)))}.storage-disk-progress-bar{--progress-bar-full-height:var(--g-text-body-3-line-height);--progress-bar-compact-height:12px;--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:4px;color:var(--g-color-text-primary);height:var(--progress-bar-full-height);min-width:50px;position:relative;text-align:center;z-index:0}.storage-disk-progress-bar_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.storage-disk-progress-bar_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.storage-disk-progress-bar_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.storage-disk-progress-bar_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.storage-disk-progress-bar_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.storage-disk-progress-bar__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.storage-disk-progress-bar_compact{border-radius:2px;height:var(--progress-bar-compact-height);min-width:0}.storage-disk-progress-bar_faded{background-color:unset}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:unset;border-style:dashed;color:var(--g-color-text-hint)}.storage-disk-progress-bar__fill-bar{background-color:var(--entity-state-fill-color);border-radius:3px 0 0 3px;height:100%;left:0;position:absolute;top:0}.storage-disk-progress-bar__fill-bar_faded{background-color:var(--entity-state-background-color)}.storage-disk-progress-bar__fill-bar_compact{border-radius:1px}.storage-disk-progress-bar__fill-bar_inverted{border-radius:0 3px 3px 0;left:auto;right:0}.storage-disk-progress-bar__title{color:inherit;font-size:var(--g-text-body-1-font-size);line-height:calc(var(--progress-bar-full-height) - 2px);position:relative;z-index:2}.entity-status{--button-width:28px;align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%;position:relative}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__clipboard-button:focus-visible{background-color:var(--g-color-base-float);position:absolute;right:2px;top:2px}.data-table__row:hover .entity-status__clipboard-button,.ydb-paginated-table__row:hover .entity-status__clipboard-button{opacity:1}.data-table__row:hover .entity-status__clipboard-button:focus-visible,.ydb-paginated-table__row:hover .entity-status__clipboard-button:focus-visible{background-color:unset;position:static}.entity-status__clipboard-button_visible{opacity:1}.entity-status__wrapper{overflow:hidden;position:relative}.entity-status__wrapper_with-button{padding-right:var(--button-width)}.entity-status__controls-wrapper{align-items:center;display:flex;gap:var(--g-spacing-1);height:100%;position:absolute;right:0;top:0;width:0}.entity-status__controls-wrapper_visible{padding:var(--g-spacing-1);width:min-content}.data-table__row:hover .entity-status__controls-wrapper,.ydb-paginated-table__row:hover .entity-status__controls-wrapper,.ydb-tree-view__item .entity-status__controls-wrapper{background-color:var(--g-color-base-float);padding:var(--g-spacing-1);width:min-content}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{display:inline-block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% + var(--button-width))}.entity-status__link_with-left-trim{direction:rtl;text-align:end}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.memory-viewer{min-width:150px;padding:0 var(--g-spacing-1);position:relative;z-index:0}.memory-viewer__progress-container{background:var(--g-color-base-generic);border-radius:2px;height:20px;overflow:hidden;position:relative}.memory-viewer__container{display:flex;padding:2px 0}.memory-viewer__legend{border-radius:2px;bottom:2px;height:20px;position:absolute;width:20px}.memory-viewer__legend_type_AllocatorCachesMemory{background-color:var(--g-color-base-utility-medium-hover)}.memory-viewer__legend_type_SharedCacheConsumption{background-color:var(--g-color-base-info-medium-hover)}.memory-viewer__legend_type_MemTableConsumption{background-color:var(--g-color-base-warning-medium-hover)}.memory-viewer__legend_type_QueryExecutionConsumption{background-color:var(--g-color-base-positive-medium-hover)}.memory-viewer__legend_type_Other{background-color:var(--g-color-base-generic-medium-hover)}.memory-viewer__segment{height:100%;position:absolute}.memory-viewer__segment_type_AllocatorCachesMemory{background-color:var(--g-color-base-utility-medium-hover)}.memory-viewer__segment_type_SharedCacheConsumption{background-color:var(--g-color-base-info-medium-hover)}.memory-viewer__segment_type_MemTableConsumption{background-color:var(--g-color-base-warning-medium-hover)}.memory-viewer__segment_type_QueryExecutionConsumption{background-color:var(--g-color-base-positive-medium-hover)}.memory-viewer__segment_type_Other{background-color:var(--g-color-base-generic-medium-hover)}.memory-viewer__name{padding-left:28px}.memory-viewer_theme_dark{color:var(--g-color-text-light-primary)}.memory-viewer_theme_dark .memory-viewer__segment{opacity:.75}.memory-viewer_status_good .memory-viewer__progress-container{background-color:var(--g-color-base-positive-light)}.memory-viewer_status_warning .memory-viewer__progress-container{background-color:var(--g-color-base-yellow-light)}.memory-viewer_status_danger .memory-viewer__progress-container{background-color:var(--g-color-base-danger-light)}.memory-viewer__text{align-items:center;display:flex;justify-content:center}.vdisk-storage-popup .info-viewer+.info-viewer{border-top:1px solid var(--g-color-line-generic);margin-top:8px;padding-top:8px}.vdisk-storage-popup__donor-label{margin-bottom:8px}.ydb-pool-bar{border:1px solid;border-radius:1px;cursor:pointer;height:20px;margin-right:2px;position:relative;width:6px}.ydb-pool-bar__popup-content{padding:10px;width:170px}.ydb-pool-bar:last-child{margin-right:0}.ydb-pool-bar_type_normal{border-color:var(--ydb-color-status-green)}.ydb-pool-bar_type_warning{border-color:var(--ydb-color-status-yellow)}.ydb-pool-bar_type_danger{border-color:var(--ydb-color-status-red)}.ydb-pool-bar__value{bottom:0;min-height:1px;position:absolute;width:100%}.ydb-pool-bar__value_type_normal{background-color:var(--ydb-color-status-green)}.ydb-pool-bar__value_type_warning{background-color:var(--ydb-color-status-yellow)}.ydb-pool-bar__value_type_danger{background-color:var(--ydb-color-status-red)}.ydb-vdisk-component{border-radius:4px}.ydb-vdisk-component__content{border-radius:4px;display:block}.ydb-pools-graph{display:flex}.pdisk-storage{position:relative;width:120px}.pdisk-storage__content{border-radius:4px;display:block;position:relative}.pdisk-storage__vdisks{display:flex;flex-wrap:wrap;gap:2px;margin-bottom:4px}.pdisk-storage__vdisks-item{flex-basis:3px;flex-shrink:0}.data-table__row:hover .pdisk-storage__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.pdisk-storage__donors-stack{--ydb-stack-offset-x:0px;--ydb-stack-offset-y:-2px;--ydb-stack-offset-x-hover:0px;--ydb-stack-offset-y-hover:-7px}.pdisk-storage__media-type{color:var(--g-color-text-secondary);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);position:absolute;right:4px;top:50%;transform:translateY(-50%)}.tablets-statistic{align-items:center;display:flex;gap:2px}.tablets-statistic__tablet{border:1px solid;border-radius:2px;color:var(--g-color-text-secondary);display:inline-block;font-size:11px;height:20px;line-height:20px;padding:0 4px;text-align:center;text-decoration:none;text-transform:uppercase}.tablets-statistic__tablet_state_green{background-color:var(--g-color-base-positive-light);color:var(--g-color-text-positive)}.tablets-statistic__tablet_state_yellow{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning)}.tablets-statistic__tablet_state_blue{background-color:var(--g-color-base-info-light);color:var(--g-color-text-info)}.tablets-statistic__tablet_state_orange{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning-heavy)}.tablets-statistic__tablet_state_red{background:var(--g-color-base-danger-light);color:var(--g-color-text-danger)}.tablets-statistic__tablet_state_grey{border:1px solid var(--g-color-line-generic-hover);color:var(--g-color-text-secondary)}.ydb-storage-disks{align-items:center;display:flex;flex-direction:row;gap:20px;width:max-content}.ydb-storage-disks__pdisks-wrapper{display:flex;flex-direction:row;gap:6px;justify-content:left;width:max-content}.ydb-storage-disks__vdisk-item{flex-basis:8px;flex-shrink:0}.ydb-storage-disks__vdisk-progress-bar{--progress-bar-compact-height:18px;border-radius:4px}.ydb-storage-disks__pdisk-item{width:80px}.ydb-storage-disks__pdisk-progress-bar{--progress-bar-full-height:20px;padding-left:var(--g-spacing-2);text-align:left}.ydb-nodes-columns__column-cpu,.ydb-nodes-columns__column-ram{min-width:40px}.ydb-storage-groups-columns__disks-column,.ydb-storage-groups-columns__vdisks-column{overflow:visible}.ydb-storage-groups-columns__vdisks-wrapper{display:flex;gap:10px;justify-content:center;min-width:500px}.ydb-storage-groups-columns__vdisks-item{flex-grow:1;max-width:200px}.data-table__row:hover .ydb-storage-groups-columns__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.ydb-storage-groups-columns__pool-name-wrapper{direction:rtl;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-storage-groups-columns__pool-name{unicode-bidi:plaintext}.ydb-storage-groups-columns__group-id{font-weight:500}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.global-storage__search{width:238px}.global-storage__table .g-tooltip{height:var(--g-text-body-2-line-height)!important}.global-storage .entity-status{justify-content:center}.global-storage__groups-wrapper{padding-right:20px}.ydb-storage-nodes-columns__pdisks-column{overflow:visible}.ydb-storage-nodes-columns__pdisks-wrapper{align-items:flex-end;display:flex;height:40px;justify-content:left;width:max-content}.ydb-storage-nodes-columns__pdisks-item{flex-grow:1;margin-right:10px;max-width:200px}.ydb-storage-nodes-columns__pdisks-item:last-child{margin-right:0}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/371.01f04f12.chunk.css b/ydb/core/viewer/monitoring/static/css/371.01f04f12.chunk.css new file mode 100644 index 00000000000..f380b6f52be --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/371.01f04f12.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.tag{background:var(--g-color-base-generic);border-radius:3px;color:var(--g-color-text-primary);font-size:12px;padding:2px 5px;white-space:nowrap}.tag:last-child{margin-right:0}.tag_type_blue{background-color:var(--g-color-celestial-thunder)}.basic-node-viewer__link,.link{color:var(--g-color-text-link);text-decoration:none}.basic-node-viewer__link:hover,.link:hover{color:var(--g-color-text-link-hover)}.basic-node-viewer{align-items:center;display:flex;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:15px 0}.basic-node-viewer__title{font-weight:600;margin:0 20px 0 0;text-transform:uppercase}.basic-node-viewer__id{margin:0 15px 0 24px}.basic-node-viewer__label{color:var(--g-color-text-hint);line-height:18px;margin-right:10px;white-space:nowrap}.basic-node-viewer__link{margin-left:5px}.ydb-pool-usage{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-pool-usage__info{align-items:center;display:flex;justify-content:space-between}.ydb-pool-usage__pool-name{color:var(--g-color-text-primary)}.ydb-pool-usage__value{align-items:center;display:flex}.ydb-pool-usage__threads{color:var(--g-color-text-hint);font-size:var(--g-text-body-1-font-size)}.ydb-pool-usage__percents{color:var(--g-color-text-primary);font-size:var(--g-text-body-1-font-size);margin-right:2px}.ydb-pool-usage__visual{align-items:center;background-color:var(--g-color-base-generic-accent);border-radius:4px;display:flex;font-size:var(--g-text-body-2-font-size);height:6px;justify-content:center;overflow:hidden;position:relative}.ydb-pool-usage__usage-line{height:100%;left:0;position:absolute;top:0}.ydb-pool-usage__usage-line_type_green{background-color:var(--ydb-color-status-green)}.ydb-pool-usage__usage-line_type_blue{background-color:var(--ydb-color-status-blue)}.ydb-pool-usage__usage-line_type_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-pool-usage__usage-line_type_red{background-color:var(--ydb-color-status-red)}.full-node-viewer{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.full-node-viewer__common-info{align-items:stretch;display:flex;flex-direction:column;justify-content:flex-start}.full-node-viewer__section{border-radius:10px}.full-node-viewer__section_pools{grid-gap:7px 20px;display:grid;grid-template-columns:110px 110px}.full-node-viewer .info-viewer__label{min-width:100px}.full-node-viewer__section-title{font-weight:600;margin:15px 0 10px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-pdisk-info__links,.ydb-vdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.kv-node-structure{display:flex;flex-shrink:0;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:auto;position:relative}.kv-node-structure__error{padding:20px 20px 0}.kv-node-structure__pdisk{border:1px solid var(--g-color-line-generic);border-radius:5px;display:flex;flex-direction:column;margin-bottom:8px;padding:0 10px 0 20px;width:573px}.kv-node-structure__pdisk-id{align-items:flex-end;display:flex}.kv-node-structure__pdisk-header{align-items:center;display:flex;height:48px;justify-content:space-between}.kv-node-structure__pdisk-title-wrapper{align-items:center;display:flex;font-weight:600;gap:16px}.kv-node-structure__pdisk-title-wrapper .entity-status__status-icon{margin-right:0}.kv-node-structure__pdisk-title-item{display:flex;gap:4px}.kv-node-structure__pdisk-title-item-label{color:var(--g-color-text-secondary);font-weight:400}.kv-node-structure__pdisk-title-id{min-width:110px}.kv-node-structure__pdisk-title-type{justify-content:flex-end;min-width:50px}.kv-node-structure__pdisk-title-size{min-width:150px}.kv-node-structure__pdisk-details{margin-bottom:20px}.kv-node-structure__link{color:var(--g-color-base-brand);text-decoration:none}.kv-node-structure__vdisks-header{font-weight:600}.kv-node-structure__vdisks-container{margin-bottom:42px}.kv-node-structure__vdisk-details{max-height:90vh;max-width:unset;min-width:200px;overflow:auto}.kv-node-structure__vdisk-details .vdisk-pdisk-node__column{margin-bottom:0}.kv-node-structure__vdisk-details .vdisk-pdisk-node__section{padding-bottom:0}.kv-node-structure__vdisk-id{align-items:center;display:flex}.kv-node-structure__vdisk-details-button_selected,.kv-node-structure__vdisk-id_selected{color:var(--g-color-text-info)}.kv-node-structure__external-button{align-items:center;display:inline-flex;margin-left:4px;transform:translateY(-1px)}.kv-node-structure__external-button_hidden{visibility:hidden}.kv-node-structure .data-table__row:hover .kv-node-structure__external-button_hidden{visibility:visible}.kv-node-structure__selected-vdisk{animation:onSelectedVdiskAnimation 4s}@keyframes onSelectedVdiskAnimation{0%{background-color:var(--g-color-base-info-light-hover)}}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.node{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.node__header{margin:16px 20px}.node__content{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto;position:relative}.node__storage{height:100%;overflow:auto;padding:0 20px}.node__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex;justify-content:space-between;padding:0 20px}.node__tab{margin-right:40px;text-decoration:none}.node__tab:last-child{margin-right:0}.node__tab:first-letter{text-transform:uppercase}.node__overview-wrapper{padding:0 20px 20px}.node__node-page-wrapper{height:100%;padding:20px}.node__error{padding:0 20px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/3415.b2295207.chunk.css b/ydb/core/viewer/monitoring/static/css/3779.66c0ef83.chunk.css index b580c76645f..52bf4a675fc 100644 --- a/ydb/core/viewer/monitoring/static/css/3415.b2295207.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/3779.66c0ef83.chunk.css @@ -1 +1 @@ -.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-search{min-width:100px}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:150px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.kv-user{color:var(--g-color-text-primary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.kv-user,.kv-user__name{display:inline-block}.kv-user__name:first-letter{color:var(--g-color-text-danger)}.gc-help-popover__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gc-help-popover__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.g-progress{--_--empty-background-color:var(--g-color-base-generic);--_--empty-text-color:var(--g-color-text-primary);--_--filled-text-color:var(--g-color-text-primary);--_--filled-background-color:var(--g-color-base-neutral-medium);background-color:var(--g-progress-empty-background-color,var(--_--empty-background-color));border-radius:3px;margin:0 auto;overflow:hidden;position:relative;text-align:center}.g-progress__text{color:var(--g-progress-empty-text-color,var(--_--empty-text-color));position:relative}.g-progress__text,.g-progress__text-inner{box-sizing:border-box;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);padding:0 10px}.g-progress__text-inner{color:var(--g-progress-filled-text-color,var(--_--empty-text-color));height:100%;position:absolute;transition:transform .6s ease;width:100%}.g-progress__item{background-color:var(--g-progress-filled-background-color,var(--_--filled-background-color));float:left;height:100%;overflow:hidden;position:relative;transition:transform .6s ease,width .6s ease,background-color .6s ease;width:100%}[dir=rtl] .g-progress__item{float:right}.g-progress__item_theme_default{--_--filled-background-color:var(--g-color-base-neutral-medium)}.g-progress__item_theme_success{--_--filled-background-color:var(--g-color-base-positive-medium)}.g-progress__item_theme_warning{--_--filled-background-color:var(--g-color-base-warning-medium)}.g-progress__item_theme_danger{--_--filled-background-color:var(--g-color-base-danger-medium)}.g-progress__item_theme_info{--_--filled-background-color:var(--g-color-base-info-medium)}.g-progress__item_theme_misc{--_--filled-background-color:var(--g-color-base-misc-medium)}.g-progress__item_loading{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,#ffffff4d,#ffffff4d 4px,#0000 0,#0000 8px);background-size:150%}.g-progress__stack{color:var(--g-color-text-light-primary);margin:0 auto;overflow:hidden;position:relative;transition:transform .6s ease;width:100%}.g-progress_size_m,.g-progress_size_m .g-progress__stack{height:20px;line-height:20px}.g-progress_size_m .g-progress__text{height:20px;margin-block-end:-20px}.g-progress_size_s,.g-progress_size_s .g-progress__stack{height:10px;line-height:10px}.g-progress_size_xs,.g-progress_size_xs .g-progress__stack{height:4px;line-height:4px}.g-progress_size_s .g-progress__text,.g-progress_size_s .g-progress__text-inner,.g-progress_size_xs .g-progress__text,.g-progress_size_xs .g-progress__text-inner{display:none}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.clusters{display:flex;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:auto;padding-top:15px}.clusters__autorefresh{margin-left:auto}.clusters__cluster{align-items:center;display:flex}.clusters__cluster-status{border-radius:3px;height:18px;margin-right:8px;width:18px}.clusters__cluster-status span{align-items:center;display:flex}.clusters__cluster-status_type_green{background-color:var(--ydb-color-status-green)}.clusters__cluster-status_type_yellow{background-color:var(--ydb-color-status-yellow)}.clusters__cluster-status_type_blue{background-color:var(--ydb-color-status-blue)}.clusters__cluster-status_type_red{background:var(--ydb-color-status-red)}.clusters__cluster-status_type_grey{background:var(--ydb-color-status-grey)}.clusters__cluster-status_type_orange{background:var(--ydb-color-status-orange)}.clusters__cluster-name{color:var(--g-color-text-link);text-decoration:none;white-space:normal}.clusters__cluster-versions{text-decoration:none}.clusters__cluster-version{overflow:hidden;text-overflow:ellipsis}.clusters__cluster-dc{white-space:normal}.clusters__controls{display:flex;margin-bottom:20px}.clusters__control{margin-right:15px;width:200px}.clusters__control_wide{width:300px}.clusters__empty-cell{color:var(--g-color-text-secondary)}.clusters__tooltip-content{word-break:break-all}.clusters .g-progress__item{transition:none}.clusters__aggregation,.clusters__controls{margin-left:15px;margin-right:15px}.clusters__aggregation{align-items:center;background:var(--g-color-base-generic-ultralight);border:1px solid var(--g-color-line-generic);border-radius:10px;display:flex;height:46px;margin-bottom:20px;padding:10px 20px;width:max-content}.clusters__aggregation-value-container{align-items:center;display:flex;font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height);max-width:230px}.clusters__aggregation-value-container:not(:last-child){margin-right:30px}.clusters__aggregation-label{color:var(--g-color-text-complementary);font-weight:200;margin-right:8px}.clusters__text{color:var(--g-color-text-primary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.clusters__text:first-letter{color:var(--g-color-text-danger)}.clusters__description{max-width:200px;white-space:pre-wrap}.clusters__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto;padding-left:5px}.clusters__table-content{height:100%;overflow:auto}.clusters__table .data-table__head-row:first-child .data-table__th:first-child,.clusters__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.clusters__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.clusters__table .data-table__head-row:first-child .data-table__th:nth-child(0),.clusters__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.clusters__table .data-table__head-row:first-child .data-table__th:first-child,.clusters__table .data-table__td:first-child{box-shadow:unset}.clusters__balancer-cell{align-items:center;display:flex;flex-direction:row}.clusters__balancer-text{display:inline-block;margin-right:5px;max-width:92%;overflow:hidden;overflow-wrap:break-word!important;text-overflow:ellipsis}.clusters__balancer-icon{align-items:center;display:flex}.clusters__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-left:15px}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__icon,.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}
\ No newline at end of file +.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-search{min-width:100px}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:150px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.kv-user{color:var(--g-color-text-primary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.kv-user,.kv-user__name{display:inline-block}.kv-user__name:first-letter{color:var(--g-color-text-danger)}.gc-help-popover__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gc-help-popover__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.g-progress{--_--empty-background-color:var(--g-color-base-generic);--_--empty-text-color:var(--g-color-text-primary);--_--filled-text-color:var(--g-color-text-primary);--_--filled-background-color:var(--g-color-base-neutral-medium);background-color:var(--g-progress-empty-background-color,var(--_--empty-background-color));border-radius:3px;margin:0 auto;overflow:hidden;position:relative;text-align:center}.g-progress__text{color:var(--g-progress-empty-text-color,var(--_--empty-text-color));position:relative}.g-progress__text,.g-progress__text-inner{box-sizing:border-box;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);padding:0 10px}.g-progress__text-inner{color:var(--g-progress-filled-text-color,var(--_--empty-text-color));height:100%;position:absolute;transition:transform .6s ease;width:100%}.g-progress__item{background-color:var(--g-progress-filled-background-color,var(--_--filled-background-color));float:left;height:100%;overflow:hidden;position:relative;transition:transform .6s ease,width .6s ease,background-color .6s ease;width:100%}[dir=rtl] .g-progress__item{float:right}.g-progress__item_theme_default{--_--filled-background-color:var(--g-color-base-neutral-medium)}.g-progress__item_theme_success{--_--filled-background-color:var(--g-color-base-positive-medium)}.g-progress__item_theme_warning{--_--filled-background-color:var(--g-color-base-warning-medium)}.g-progress__item_theme_danger{--_--filled-background-color:var(--g-color-base-danger-medium)}.g-progress__item_theme_info{--_--filled-background-color:var(--g-color-base-info-medium)}.g-progress__item_theme_misc{--_--filled-background-color:var(--g-color-base-misc-medium)}.g-progress__item_loading{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,#ffffff4d,#ffffff4d 4px,#0000 0,#0000 8px);background-size:150%}.g-progress__stack{color:var(--g-color-text-light-primary);margin:0 auto;overflow:hidden;position:relative;transition:transform .6s ease;width:100%}.g-progress_size_m,.g-progress_size_m .g-progress__stack{height:20px;line-height:20px}.g-progress_size_m .g-progress__text{height:20px;margin-block-end:-20px}.g-progress_size_s,.g-progress_size_s .g-progress__stack{height:10px;line-height:10px}.g-progress_size_xs,.g-progress_size_xs .g-progress__stack{height:4px;line-height:4px}.g-progress_size_s .g-progress__text,.g-progress_size_s .g-progress__text-inner,.g-progress_size_xs .g-progress__text,.g-progress_size_xs .g-progress__text-inner{display:none}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.clusters{display:flex;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:auto;padding-top:15px}.clusters__autorefresh{margin-left:auto}.clusters__cluster{align-items:center;display:flex}.clusters__cluster-status{border-radius:3px;height:18px;margin-right:8px;width:18px}.clusters__cluster-status span{align-items:center;display:flex}.clusters__cluster-status_type_green{background-color:var(--ydb-color-status-green)}.clusters__cluster-status_type_yellow{background-color:var(--ydb-color-status-yellow)}.clusters__cluster-status_type_blue{background-color:var(--ydb-color-status-blue)}.clusters__cluster-status_type_red{background:var(--ydb-color-status-red)}.clusters__cluster-status_type_grey{background:var(--ydb-color-status-grey)}.clusters__cluster-status_type_orange{background:var(--ydb-color-status-orange)}.clusters__cluster-name{color:var(--g-color-text-link);text-decoration:none;white-space:normal}.clusters__cluster-versions{text-decoration:none}.clusters__cluster-version{overflow:hidden;text-overflow:ellipsis}.clusters__cluster-dc{white-space:normal}.clusters__controls{display:flex;margin-bottom:20px}.clusters__control{margin-right:15px;width:200px}.clusters__control_wide{width:300px}.clusters__empty-cell{color:var(--g-color-text-secondary)}.clusters__tooltip-content{word-break:break-all}.clusters .g-progress__item{transition:none}.clusters__aggregation,.clusters__controls{margin-left:15px;margin-right:15px}.clusters__aggregation{align-items:center;background:var(--g-color-base-generic-ultralight);border:1px solid var(--g-color-line-generic);border-radius:10px;display:flex;height:46px;margin-bottom:20px;padding:10px 20px;width:max-content}.clusters__aggregation-value-container{align-items:center;display:flex;font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height);max-width:230px}.clusters__aggregation-value-container:not(:last-child){margin-right:30px}.clusters__aggregation-label{color:var(--g-color-text-complementary);font-weight:200;margin-right:8px}.clusters__text{color:var(--g-color-text-primary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.clusters__text:first-letter{color:var(--g-color-text-danger)}.clusters__description{max-width:200px;white-space:pre-wrap}.clusters__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto;padding-left:5px}.clusters__table-content{height:100%;overflow:auto}.clusters__table .data-table__head-row:first-child .data-table__th:first-child,.clusters__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.clusters__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.clusters__table .data-table__head-row:first-child .data-table__th:nth-child(0),.clusters__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.clusters__table .data-table__head-row:first-child .data-table__th:first-child,.clusters__table .data-table__td:first-child{box-shadow:unset}.clusters__balancer-cell{align-items:center;display:flex;flex-direction:row}.clusters__balancer-text{display:inline-block;margin-right:5px;max-width:92%;overflow:hidden;overflow-wrap:break-word!important;text-overflow:ellipsis}.clusters__balancer-icon{align-items:center;display:flex}.clusters__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-left:15px}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/3812.440ff245.chunk.css b/ydb/core/viewer/monitoring/static/css/3812.440ff245.chunk.css new file mode 100644 index 00000000000..f71ded6bace --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/3812.440ff245.chunk.css @@ -0,0 +1 @@ +.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-storage-group-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-storage-group-page__info,.ydb-storage-group-page__meta,.ydb-storage-group-page__storage-title,.ydb-storage-group-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-storage-group-page__meta{margin-top:20px}.ydb-storage-group-page__title{margin-bottom:60px}.ydb-storage-group-page__storage-title{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height);margin-bottom:0}.ydb-storage-group-page__info{margin-top:var(--g-spacing-10)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/3940.0971684f.chunk.css b/ydb/core/viewer/monitoring/static/css/3940.0971684f.chunk.css new file mode 100644 index 00000000000..720052b0ff1 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/3940.0971684f.chunk.css @@ -0,0 +1 @@ +.g-select{display:inline-block;max-width:100%}.g-select_width_max{width:100%}.g-select-filter{--g-text-input-border-color:var(--g-color-line-generic-active)}.g-select-list{display:flex;margin:4px 0;overflow:hidden}.g-popup .g-select-list:first-child,.g-popup .g-select-list:last-child{border-radius:0}.g-select-list:not(.g-select-list_virtualized){overflow:auto;position:relative}.g-select-list_mobile{max-height:100%}.g-select-list__group-label,.g-select-list__group-label-custom{box-sizing:border-box;height:auto;padding:0;position:relative;width:100%}.g-select-list__group-label{font-size:var(--g-text-body-1-font-size)}.g-select-list_size_s .g-select-list__group-label:not(.g-select-list__group-label_empty){height:24px;padding:8px 8px 4px}.g-select-list_size_m .g-select-list__group-label:not(.g-select-list__group-label_empty){height:28px;padding:8px 8px 4px}.g-select-list_size_l .g-select-list__group-label:not(.g-select-list__group-label_empty){height:36px;padding:10px 12px 6px}.g-select-list_size_xl .g-select-list__group-label:not(.g-select-list__group-label_empty){font-size:var(--g-text-body-2-font-size);height:44px;padding:12px 12px 8px}.g-select-list_mobile .g-select-list__group-label:not(.g-select-list__group-label_empty){font-size:var(--g-text-body-2-font-size);height:36px;padding:12px 12px 8px}.g-select-list__item:not(:first-child) .g-select-list__group-label{margin-block-start:5px}.g-select-list__item:not(:first-child) .g-select-list__group-label:before{background-color:var(--g-color-line-generic);content:"";height:1px;inset-block-start:-3px;inset-inline-start:0;position:absolute;width:100%}.g-select-list__group-label-content{font-weight:var(--g-text-accent-font-weight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.g-select-list__item.g-list__item_selected{background:none}.g-select-list__item.g-list__item_active,.g-select-list__item.g-list__item_selected:hover{background:var(--g-color-base-simple-hover)}.g-select-list__option{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;height:100%;width:100%}.g-select-list_size_s .g-select-list__option{--_--select-tick-icon-padding-right:4px;padding:0 8px}.g-select-list_size_s .g-select-list__option .g-select-list__option-default-label{height:24px;line-height:24px}.g-select-list_size_m .g-select-list__option{--_--select-tick-icon-padding-right:4px;padding:0 8px}.g-select-list_size_m .g-select-list__option .g-select-list__option-default-label{height:28px;line-height:28px}.g-select-list_size_l .g-select-list__option{--_--select-tick-icon-padding-right:6px;padding:0 12px}.g-select-list_size_l .g-select-list__option .g-select-list__option-default-label{height:36px;line-height:36px}.g-select-list_size_xl .g-select-list__option{--_--select-tick-icon-padding-right:6px;padding:0 12px}.g-select-list_size_xl .g-select-list__option .g-select-list__option-default-label{font-size:var(--g-text-body-2-font-size);height:44px;line-height:44px}.g-select-list_mobile .g-select-list__option{padding:0 12px}.g-select-list_mobile .g-select-list__option .g-select-list__option-default-label{font-size:var(--g-text-body-2-font-size);height:36px;line-height:36px}.g-select-list_mobile .g-select-list__option .g-select-list__tick-icon{padding-inline-end:6px}.g-select-list__option_colored{background-color:var(--g-color-base-selection)}.g-select-list__option_disabled{cursor:default}.g-select-list__option-default-label{font-size:var(--g-text-body-1-font-size);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.g-select-list__option-default-label_disabled{color:var(--g-color-text-secondary)}.g-select-list__tick-icon{box-sizing:initial;color:var(--g-color-text-brand);flex:0 0 16px;padding-inline-end:var(--_--select-tick-icon-padding-right);visibility:hidden}.g-select-list__tick-icon_shown{visibility:visible}.g-select-list__loading-indicator{align-items:center;display:flex;justify-content:center;width:100%}.g-select-empty-placeholder{color:var(--g-color-text-hint);margin:4px}.g-select-empty-placeholder_empty{margin-block-start:0}.g-select-counter{align-items:center;background-color:var(--g-color-base-generic);display:flex;justify-content:center;margin-inline:4px}.g-select-counter__text{flex-grow:1;margin-inline:4px;text-align:center}.g-select-counter_size_xl .g-select-counter__text{margin-inline:6px}.g-select-counter_size_s{border-radius:var(--g-border-radius-xs);height:20px;min-width:20px}.g-select-counter_size_m{border-radius:var(--g-border-radius-s);height:24px;min-width:24px}.g-select-counter_size_l{border-radius:var(--g-border-radius-m);height:28px;min-width:28px}.g-select-counter_size_xl{border-radius:var(--g-border-radius-l);height:36px;margin-inline:4px;min-width:36px}.g-select-clear{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:inline-flex;flex-shrink:0;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;margin-inline-start:auto;outline:none;padding:0;z-index:1}.g-select-clear:focus-visible{border:1px solid var(--g-color-line-generic-active)}.g-select-clear_size_s{border-radius:var(--g-border-radius-s);height:24px;width:24px}.g-select-clear_size_m{border-radius:var(--g-border-radius-m);height:28px;width:28px}.g-select-clear_size_l{border-radius:var(--g-border-radius-l);height:36px;width:36px}.g-select-clear_size_xl{border-radius:var(--g-border-radius-xl);height:44px;width:44px}.g-select-clear__clear{color:var(--g-color-text-secondary)}.g-select-clear:hover .g-select-clear__clear{color:var(--g-color-text-primary)}.g-select-control{--_--focus-outline-color:var(--g-select-focus-outline-color);align-items:center;background:none;border:none;box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;position:relative;transition:transform .1s ease-out;width:100%;z-index:0}.g-select-control_disabled{cursor:default}.g-select-control_size_s{--_--text-right-padding:8px;--_--border-radius:var(--g-border-radius-s);height:24px;padding:4px calc(var(--_--text-right-padding) + 1px)}.g-select-control_size_m{--_--text-right-padding:8px;--_--border-radius:var(--g-border-radius-m);height:28px;padding:6px calc(var(--_--text-right-padding) + 1px)}.g-select-control_size_l{--_--text-right-padding:12px;--_--border-radius:var(--g-border-radius-l);height:36px;padding:10px calc(var(--_--text-right-padding) + 1px)}.g-select-control_size_xl{--_--text-right-padding:12px;--_--border-radius:var(--g-border-radius-xl);height:44px;padding:12px calc(var(--_--text-right-padding) + 1px)}.g-select-control__button{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:inline-grid;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);grid-template-columns:auto auto;height:100%;justify-content:flex-start;outline:none;overflow:hidden;padding:0;transition:color .15s linear,background-color .15s linear;width:100%}.g-select-control__button.g-select-control__button_pin_round-round:before{border-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-brick:before{border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-clear:before{border-inline:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-circle:before{border-radius:100px}.g-select-control__button.g-select-control__button_pin_round-brick:before{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-round:before{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_round-clear:before{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_clear-round:before{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_brick-clear:before{border-inline-end:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-brick:before{border-inline-start:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-brick:before{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_brick-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_circle-clear:before{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_clear-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_round-round:after{border-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-brick:after{border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-clear:after{border-inline:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-circle:after{border-radius:100px}.g-select-control__button.g-select-control__button_pin_round-brick:after{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-round:after{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_round-clear:after{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_clear-round:after{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_brick-clear:after{border-inline-end:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-brick:after{border-inline-start:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-brick:after{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_brick-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_circle-clear:after{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_clear-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button:before{border:1px solid var(--g-color-line-generic);border-radius:var(--_--border-radius);content:"";inset:0;position:absolute}.g-select-control__button:after{content:"";inset:0;position:absolute;z-index:-1}.g-select-control__button_view_clear,.g-select-control__button_view_clear:after,.g-select-control__button_view_clear:before{border-color:#0000}.g-select-control__button_size_l,.g-select-control__button_size_m,.g-select-control__button_size_s{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-select-control__button_size_xl{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-select-control__button_error:before{--_--focus-outline-color:var(--g-color-line-danger);border-color:var(--g-color-line-danger)}.g-select-control__button:hover:after{background-color:var(--g-color-base-simple-hover)}.g-select-control__button_disabled{color:var(--g-color-text-hint);pointer-events:none}.g-select-control__button_disabled:after{background-color:var(--g-color-base-generic-accent-disabled)}.g-select-control__button_disabled:before{border-color:#0000}.g-select-control__button:not(.g-select-control__button_error):not(.g-select-control__button_disabled):not(.g-select-control__button_view_clear):hover:before{border-color:var(--g-color-line-generic-hover)}.g-select-control__button:not(.g-select-control__button_error):not(.g-select-control__button_view_clear):focus-visible:before,.g-select-control__button_open:not(.g-select-control__button_error):not(.g-select-control__button_view_clear):before{border-color:var(--g-color-line-generic-active)}.g-select-control__button:focus-visible:before{outline:2px solid var(--g-select-focus-outline-color,var(--_--focus-outline-color));outline-offset:-1px}.g-select-control:not(.g-select-control_disabled):not(.g-select-control_no-active):active{transform:scale(.96)}.g-select-control__label{font-weight:var(--g-text-accent-font-weight);margin-inline-end:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-select-control__option-text,.g-select-control__placeholder{overflow:hidden;padding-inline-end:var(--_--text-right-padding);text-overflow:ellipsis;white-space:nowrap}.g-select-control_has-clear.g-select-control_size_s .g-select-control__button_disabled .g-select-control__option-text{padding-inline-end:calc(24px + var(--_--text-right-padding))}.g-select-control_has-clear.g-select-control_size_m .g-select-control__button_disabled .g-select-control__option-text{padding-inline-end:calc(28px + var(--_--text-right-padding))}.g-select-control_has-clear.g-select-control_size_l .g-select-control__button_disabled .g-select-control__option-text{padding-inline-end:calc(36px + var(--_--text-right-padding))}.g-select-control_has-clear.g-select-control_size_xl .g-select-control__button_disabled .g-select-control__option-text{padding-inline-end:calc(44px + var(--_--text-right-padding))}.g-select-control__placeholder{color:var(--g-color-text-hint)}.g-select-control__chevron-icon{color:var(--g-color-text-secondary);flex:0 0 16px;margin-inline-start:auto}.g-select-control__chevron-icon_disabled{color:var(--g-color-text-hint)}.g-select-clear+.g-select-control__chevron-icon{margin-inline-start:0}.g-select-control__error-icon{background:none;border:none;border-radius:var(--g-focus-border-radius);box-sizing:initial;color:inherit;color:var(--g-color-text-danger);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;padding:var(--_--text-input-error-icon-padding)}.g-select-control__error-icon:focus{outline:2px solid var(--g-color-line-focus)}.g-select-control__error-icon:focus:not(:focus-visible){outline:0}.g-select-popup{display:flex;flex-direction:column;max-height:90vh}.g-sheet{position:fixed;z-index:100000}.g-sheet,.g-sheet__veil{height:100%;inset-block-start:0;inset-inline-start:0;width:100%}.g-sheet__veil{background-color:var(--g-color-sfx-veil);opacity:0;position:absolute;will-change:opacity}.g-sheet__veil_with-transition{transition:opacity .3s ease}.g-sheet__sheet{inset-block-start:100%;inset-inline-start:0;max-height:90%;position:absolute;width:100%;will-change:transform}.g-sheet__sheet_with-transition{transition:transform .3s ease}.g-sheet__sheet-swipe-area{height:40px;inset-block-start:-20px;inset-inline-start:0;position:absolute;width:100%;z-index:1}.g-sheet__sheet-top{background-color:var(--g-color-base-float);border-start-end-radius:20px;border-start-start-radius:20px;height:20px;position:relative}.g-sheet__sheet-top-resizer{--_--translate-x:calc(-50%*var(--g-flow-direction));background-color:var(--g-color-line-generic);border-radius:4px;height:4px;inset-block-start:50%;inset-inline-start:50%;position:absolute;transform:translateX(var(--_--translate-x)) translateY(-50%);width:40px}.g-sheet__sheet-scroll-container{background-color:var(--g-color-base-float);box-sizing:border-box;max-height:calc(90% - 20px);overflow:hidden auto;overscroll-behavior-y:contain;transition:height .3s ease}.g-sheet__sheet-scroll-container_without-scroll{overflow:hidden}.g-sheet__sheet-content-box{border:1px solid #0000}.g-sheet__sheet-content-box-border-compensation{margin:-1px}.g-sheet__sheet-content{box-sizing:border-box;padding:var(--g-sheet-content-padding,0 10px);width:100%}.g-sheet__sheet-content-title{font-size:var(--g-text-body-2-font-size);line-height:28px;overflow:hidden;padding-block-end:8px;text-align:center;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/3940.7f9420b9.chunk.css b/ydb/core/viewer/monitoring/static/css/3940.7f9420b9.chunk.css deleted file mode 100644 index 186563b29d0..00000000000 --- a/ydb/core/viewer/monitoring/static/css/3940.7f9420b9.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.g-select{display:inline-block;max-width:100%}.g-select_width_max{width:100%}.g-select-filter{--g-text-input-border-color:var(--g-color-line-generic-active)}.g-select-list{display:flex;margin:4px 0;overflow:hidden}.g-popup .g-select-list:first-child,.g-popup .g-select-list:last-child{border-radius:0}.g-select-list:not(.g-select-list_virtualized){overflow:auto;position:relative}.g-select-list_mobile{max-height:100%}.g-select-list__group-label,.g-select-list__group-label-custom{box-sizing:border-box;height:auto;padding:0;position:relative;width:100%}.g-select-list__group-label{font-size:var(--g-text-body-1-font-size)}.g-select-list_size_s .g-select-list__group-label:not(.g-select-list__group-label_empty){height:24px;padding:8px 8px 4px}.g-select-list_size_m .g-select-list__group-label:not(.g-select-list__group-label_empty){height:28px;padding:8px 8px 4px}.g-select-list_size_l .g-select-list__group-label:not(.g-select-list__group-label_empty){height:36px;padding:10px 12px 6px}.g-select-list_size_xl .g-select-list__group-label:not(.g-select-list__group-label_empty){font-size:var(--g-text-body-2-font-size);height:44px;padding:12px 12px 8px}.g-select-list_mobile .g-select-list__group-label:not(.g-select-list__group-label_empty){font-size:var(--g-text-body-2-font-size);height:36px;padding:12px 12px 8px}.g-select-list__item:not(:first-child) .g-select-list__group-label{margin-block-start:5px}.g-select-list__item:not(:first-child) .g-select-list__group-label:before{background-color:var(--g-color-line-generic);content:"";height:1px;inset-block-start:-3px;inset-inline-start:0;position:absolute;width:100%}.g-select-list__group-label-content{font-weight:var(--g-text-accent-font-weight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.g-select-list__item.g-list__item_selected{background:none}.g-select-list__item.g-list__item_active,.g-select-list__item.g-list__item_selected:hover{background:var(--g-color-base-simple-hover)}.g-select-list__option{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;height:100%;width:100%}.g-select-list_size_s .g-select-list__option{--_--select-tick-icon-padding-right:4px;padding:0 8px}.g-select-list_size_s .g-select-list__option .g-select-list__option-default-label{height:24px;line-height:24px}.g-select-list_size_m .g-select-list__option{--_--select-tick-icon-padding-right:4px;padding:0 8px}.g-select-list_size_m .g-select-list__option .g-select-list__option-default-label{height:28px;line-height:28px}.g-select-list_size_l .g-select-list__option{--_--select-tick-icon-padding-right:6px;padding:0 12px}.g-select-list_size_l .g-select-list__option .g-select-list__option-default-label{height:36px;line-height:36px}.g-select-list_size_xl .g-select-list__option{--_--select-tick-icon-padding-right:6px;padding:0 12px}.g-select-list_size_xl .g-select-list__option .g-select-list__option-default-label{font-size:var(--g-text-body-2-font-size);height:44px;line-height:44px}.g-select-list_mobile .g-select-list__option{padding:0 12px}.g-select-list_mobile .g-select-list__option .g-select-list__option-default-label{font-size:var(--g-text-body-2-font-size);height:36px;line-height:36px}.g-select-list_mobile .g-select-list__option .g-select-list__tick-icon{padding-inline-end:6px}.g-select-list__option_colored{background-color:var(--g-color-base-selection)}.g-select-list__option_disabled{cursor:default}.g-select-list__option-default-label{font-size:var(--g-text-body-1-font-size);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.g-select-list__option-default-label_disabled{color:var(--g-color-text-secondary)}.g-select-list__tick-icon{box-sizing:initial;color:var(--g-color-text-brand);flex:0 0 16px;padding-inline-end:var(--_--select-tick-icon-padding-right);visibility:hidden}.g-select-list__tick-icon_shown{visibility:visible}.g-select-list__loading-indicator{align-items:center;display:flex;justify-content:center;width:100%}.g-select-empty-placeholder{color:var(--g-color-text-hint);margin:4px}.g-select-empty-placeholder_empty{margin-block-start:0}.g-select-counter{align-items:center;background-color:var(--g-color-base-generic);display:flex;justify-content:center;margin-inline:4px}.g-select-counter__text{flex-grow:1;margin-inline:4px;text-align:center}.g-select-counter_size_xl .g-select-counter__text{margin-inline:6px}.g-select-counter_size_s{border-radius:var(--g-border-radius-xs);height:20px;min-width:20px}.g-select-counter_size_m{border-radius:var(--g-border-radius-s);height:24px;min-width:24px}.g-select-counter_size_l{border-radius:var(--g-border-radius-m);height:28px;min-width:28px}.g-select-counter_size_xl{border-radius:var(--g-border-radius-l);height:36px;margin-inline:4px;min-width:36px}.g-select-clear{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;margin-inline-start:auto;outline:none;padding:0;z-index:1}.g-select-clear:focus-visible{border:1px solid var(--g-color-line-generic-active)}.g-select-clear_size_s{border-radius:var(--g-border-radius-s);height:24px;width:24px}.g-select-clear_size_m{border-radius:var(--g-border-radius-m);height:28px;width:28px}.g-select-clear_size_l{border-radius:var(--g-border-radius-l);height:36px;width:36px}.g-select-clear_size_xl{border-radius:var(--g-border-radius-xl);height:44px;width:44px}.g-select-clear__clear{color:var(--g-color-text-secondary)}.g-select-clear:hover .g-select-clear__clear{color:var(--g-color-text-primary)}.g-select-control{--_--focus-outline-color:var(--g-select-focus-outline-color);align-items:center;background:none;border:none;box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;position:relative;transition:transform .1s ease-out;width:100%;z-index:0}.g-select-control_disabled{cursor:default}.g-select-control_size_s{--_--text-right-padding:8px;--_--border-radius:var(--g-border-radius-s);height:24px;padding:4px calc(var(--_--text-right-padding) + 1px)}.g-select-control_size_m{--_--text-right-padding:8px;--_--border-radius:var(--g-border-radius-m);height:28px;padding:6px calc(var(--_--text-right-padding) + 1px)}.g-select-control_size_l{--_--text-right-padding:12px;--_--border-radius:var(--g-border-radius-l);height:36px;padding:10px calc(var(--_--text-right-padding) + 1px)}.g-select-control_size_xl{--_--text-right-padding:12px;--_--border-radius:var(--g-border-radius-xl);height:44px;padding:12px calc(var(--_--text-right-padding) + 1px)}.g-select-control__button{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);height:100%;outline:none;overflow:hidden;padding:0;transition:color .15s linear,background-color .15s linear;width:100%}.g-select-control__button.g-select-control__button_pin_round-round:before{border-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-brick:before{border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-clear:before{border-inline:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-circle:before{border-radius:100px}.g-select-control__button.g-select-control__button_pin_round-brick:before{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-round:before{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_round-clear:before{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_clear-round:before{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_brick-clear:before{border-inline-end:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-brick:before{border-inline-start:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-brick:before{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_brick-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_circle-clear:before{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_clear-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_round-round:after{border-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-brick:after{border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-clear:after{border-inline:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-circle:after{border-radius:100px}.g-select-control__button.g-select-control__button_pin_round-brick:after{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_brick-round:after{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_round-clear:after{border-end-end-radius:0;border-end-start-radius:var(--_--border-radius);border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--_--border-radius)}.g-select-control__button.g-select-control__button_pin_clear-round:after{border-end-end-radius:var(--_--border-radius);border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--_--border-radius);border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_brick-clear:after{border-inline-end:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_clear-brick:after{border-inline-start:0;border-radius:0}.g-select-control__button.g-select-control__button_pin_circle-brick:after{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_brick-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button.g-select-control__button_pin_circle-clear:after{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-select-control__button.g-select-control__button_pin_clear-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-select-control__button:before{border:1px solid var(--g-color-line-generic);border-radius:var(--_--border-radius);content:"";inset:0;position:absolute}.g-select-control__button:after{content:"";inset:0;position:absolute;z-index:-1}.g-select-control__button_view_clear,.g-select-control__button_view_clear:after,.g-select-control__button_view_clear:before{border-color:#0000}.g-select-control__button_size_l,.g-select-control__button_size_m,.g-select-control__button_size_s{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-select-control__button_size_xl{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-select-control__button_error:before{--_--focus-outline-color:var(--g-color-line-danger);border-color:var(--g-color-line-danger)}.g-select-control__button:hover:after{background-color:var(--g-color-base-simple-hover)}.g-select-control__button_disabled{color:var(--g-color-text-hint);pointer-events:none}.g-select-control__button_disabled:after{background-color:var(--g-color-base-generic-accent-disabled)}.g-select-control__button_disabled:before{border-color:#0000}.g-select-control__button:not(.g-select-control__button_error):not(.g-select-control__button_disabled):not(.g-select-control__button_view_clear):hover:before{border-color:var(--g-color-line-generic-hover)}.g-select-control__button:not(.g-select-control__button_error):not(.g-select-control__button_view_clear):focus-visible:before,.g-select-control__button_open:not(.g-select-control__button_error):not(.g-select-control__button_view_clear):before{border-color:var(--g-color-line-generic-active)}.g-select-control__button:focus-visible:before{outline:2px solid var(--g-select-focus-outline-color,var(--_--focus-outline-color));outline-offset:-1px}.g-select-control:not(.g-select-control_disabled):not(.g-select-control_no-active):active{transform:scale(.96)}.g-select-control__label{flex-shrink:0;font-weight:var(--g-text-accent-font-weight);margin-inline-end:4px;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-select-control__option-text,.g-select-control__placeholder{overflow:hidden;padding-inline-end:var(--_--text-right-padding);text-overflow:ellipsis;white-space:nowrap}.g-select-control_has-clear.g-select-control_size_s .g-select-control__button_disabled .g-select-control__option-text,.g-select-control_has-clear.g-select-control_size_s .g-select-control__button_disabled .g-select-control__placeholder{padding-inline-end:calc(24px + var(--_--text-right-padding))}.g-select-control_has-clear.g-select-control_size_m .g-select-control__button_disabled .g-select-control__option-text,.g-select-control_has-clear.g-select-control_size_m .g-select-control__button_disabled .g-select-control__placeholder{padding-inline-end:calc(28px + var(--_--text-right-padding))}.g-select-control_has-clear.g-select-control_size_l .g-select-control__button_disabled .g-select-control__option-text,.g-select-control_has-clear.g-select-control_size_l .g-select-control__button_disabled .g-select-control__placeholder{padding-inline-end:calc(36px + var(--_--text-right-padding))}.g-select-control_has-clear.g-select-control_size_xl .g-select-control__button_disabled .g-select-control__option-text,.g-select-control_has-clear.g-select-control_size_xl .g-select-control__button_disabled .g-select-control__placeholder{padding-inline-end:calc(44px + var(--_--text-right-padding))}.g-select-control__placeholder{color:var(--g-color-text-hint)}.g-select-control_has-clear:not(.g-select-control_has-value).g-select-control_size_s .g-select-control__button:not(.g-select-control__button_disabled) .g-select-control__placeholder{padding-inline-end:calc(24px + var(--_--text-right-padding))}.g-select-control_has-clear:not(.g-select-control_has-value).g-select-control_size_m .g-select-control__button:not(.g-select-control__button_disabled) .g-select-control__placeholder{padding-inline-end:calc(28px + var(--_--text-right-padding))}.g-select-control_has-clear:not(.g-select-control_has-value).g-select-control_size_l .g-select-control__button:not(.g-select-control__button_disabled) .g-select-control__placeholder{padding-inline-end:calc(36px + var(--_--text-right-padding))}.g-select-control_has-clear:not(.g-select-control_has-value).g-select-control_size_xl .g-select-control__button:not(.g-select-control__button_disabled) .g-select-control__placeholder{padding-inline-end:calc(44px + var(--_--text-right-padding))}.g-select-control__chevron-icon{color:var(--g-color-text-secondary);flex:0 0 16px;margin-inline-start:auto}.g-select-control__chevron-icon_disabled{color:var(--g-color-text-hint)}.g-select-clear+.g-select-control__chevron-icon{margin-inline-start:0}.g-select-control__error-icon{background:none;border:none;border-radius:var(--g-focus-border-radius);box-sizing:initial;color:inherit;color:var(--g-color-text-danger);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;padding:var(--_--text-input-error-icon-padding)}.g-select-control__error-icon:focus{outline:2px solid var(--g-color-line-focus)}.g-select-control__error-icon:focus:not(:focus-visible){outline:0}.g-select-popup{display:flex;flex-direction:column;max-height:90vh}.g-sheet{position:fixed;z-index:100000}.g-sheet,.g-sheet__veil{height:100%;inset-block-start:0;inset-inline-start:0;width:100%}.g-sheet__veil{background-color:var(--g-color-sfx-veil);opacity:0;position:absolute;will-change:opacity}.g-sheet__veil_with-transition{transition:opacity .3s ease}.g-sheet__sheet{inset-block-start:100%;inset-inline-start:0;max-height:90%;position:absolute;width:100%;will-change:transform}.g-sheet__sheet_with-transition{transition:transform .3s ease}.g-sheet__sheet-swipe-area{height:40px;inset-block-start:-20px;inset-inline-start:0;position:absolute;width:100%;z-index:1}.g-sheet__sheet-top{background-color:var(--g-color-base-float);border-start-end-radius:20px;border-start-start-radius:20px;height:20px;position:relative}.g-sheet__sheet-top-resizer{--_--translate-x:calc(-50%*var(--g-flow-direction));background-color:var(--g-color-line-generic);border-radius:4px;height:4px;inset-block-start:50%;inset-inline-start:50%;position:absolute;transform:translateX(var(--_--translate-x)) translateY(-50%);width:40px}.g-sheet__sheet-scroll-container{background-color:var(--g-color-base-float);box-sizing:border-box;max-height:calc(90% - 20px);overflow:hidden auto;overscroll-behavior-y:contain;transition:height .3s ease}.g-sheet__sheet-scroll-container_without-scroll{overflow:hidden}.g-sheet__sheet-content-box{border:1px solid #0000}.g-sheet__sheet-content-box-border-compensation{margin:-1px}.g-sheet__sheet-content{box-sizing:border-box;padding:var(--g-sheet-content-padding,0 10px);width:100%}.g-sheet__sheet-content-title{font-size:var(--g-text-body-2-font-size);line-height:28px;overflow:hidden;padding-block-end:8px;text-align:center;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/4335.aaba50a9.chunk.css b/ydb/core/viewer/monitoring/static/css/4335.aaba50a9.chunk.css deleted file mode 100644 index 05a9a4b325f..00000000000 --- a/ydb/core/viewer/monitoring/static/css/4335.aaba50a9.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.g-dialog-body{flex:1 1 auto;overflow-y:auto;padding:10px var(--_--side-padding)}.g-dialog-body_has-borders{border-block-end:1px solid var(--g-color-line-generic)}.g-dialog-body_has-borders,.g-dialog-divider{border-block-start:1px solid var(--g-color-line-generic)}.g-dialog-divider{margin:0 calc(var(--_--side-padding)*-1)}.g-dialog-footer{align-items:center;display:flex;padding:28px var(--_--side-padding)}.g-dialog-footer__bts-wrapper{display:flex;gap:10px}.g-dialog-footer__children{align-items:center;display:flex;flex-grow:1;height:100%}.g-dialog-footer__button{min-width:128px;position:relative}.g-dialog-footer__error{color:var(--g-color-text-danger);padding:10px}.g-dialog-header{align-items:center;color:var(--g-color-text-primary);display:flex;justify-content:flex-start;line-height:24px;padding-block:20px 10px;padding-inline:var(--_--side-padding) calc(var(--_--side-padding) + var(--_--close-button-space)*var(--g-flow-is-ltr) + var(--_--close-button-space)*var(--g-flow-is-rtl))}.g-dialog-header__caption{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-dialog_size_s{--_--width:480px}.g-dialog_size_m{--_--width:720px}.g-dialog_size_l{--_--width:900px}.g-dialog_has-close{--_--close-button-space:24px}.g-modal{-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--g-color-sfx-veil);display:none;inset:0;margin:-9999px 0 0 -9999px;overflow:auto;position:fixed;visibility:hidden;z-index:1000}.g-modal__content-aligner{align-items:center;display:inline-flex;justify-content:center;min-height:100%;min-width:100%}.g-modal__content-wrapper{margin:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{border-radius:var(--g-modal-border-radius,5px)}.g-modal__content{background-color:var(--g-color-base-modal)}.g-modal__content_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-modal,.g-modal__content{animation-fill-mode:forwards;animation-timing-function:ease-out;outline:none}.g-modal_exit_active,.g-modal_open{display:block;margin:0;visibility:visible}.g-modal_appear_active,.g-modal_enter_active{animation-duration:.15s;animation-name:g-modal-open}.g-modal_appear_active .g-modal__content,.g-modal_enter_active .g-modal__content{animation-duration:.15s;animation-name:g-modal-content-open}.g-modal_exit_active{animation-duration:.2s;animation-name:g-modal}@keyframes g-modal{0%{opacity:1}to{opacity:0}}@keyframes g-modal-open{0%{opacity:0}to{opacity:1}}@keyframes g-modal-content-open{0%{transform:scale(.75)}to{transform:scale(1)}}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-pdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__icon,.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.ydb-pdisk-decommission-button__button,.ydb-pdisk-decommission-button__popup{width:160px}.ydb-vdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.ydb-pdisk-space-distribution .storage-disk-progress-bar{height:100%}.ydb-pdisk-space-distribution__pdisk-bar{display:flex;flex-direction:column;flex-grow:1;gap:var(--g-spacing-2);max-width:800px;min-width:500px;padding:var(--g-spacing-2)}.ydb-pdisk-space-distribution__slot-wrapper{background-color:var(--g-color-base-background);z-index:1}.ydb-pdisk-space-distribution__slot{display:flex;width:100%}.ydb-pdisk-space-distribution__slot-content{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:space-between;line-height:15px;padding:0 var(--g-spacing-2);z-index:1}.ydb-pdisk-space-distribution__slot-id{font-weight:600;margin-right:var(--g-spacing-3)}.ydb-pdisk-space-distribution__vdisk-popup{padding:var(--g-spacing-half) var(--g-spacing-2) var(--g-spacing-2)}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-pdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-pdisk-page__controls,.ydb-pdisk-page__info,.ydb-pdisk-page__meta,.ydb-pdisk-page__tabs,.ydb-pdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-pdisk-page__meta{margin-top:20px}.ydb-pdisk-page__tabs{margin-bottom:0}.ydb-pdisk-page__disk-distribution{padding:20px 0}.ydb-pdisk-page__title{flex-direction:row}.ydb-pdisk-page__controls,.ydb-pdisk-page__title{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-pdisk-page__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/4614.16135447.chunk.css b/ydb/core/viewer/monitoring/static/css/4614.16135447.chunk.css deleted file mode 100644 index 48693cfbed9..00000000000 --- a/ydb/core/viewer/monitoring/static/css/4614.16135447.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.kv-split{display:flex;height:100%;outline:none;-webkit-user-select:text;user-select:text;z-index:0}.kv-split.horizontal{flex-direction:row}.kv-split.vertical{flex-direction:column;min-height:100%;width:100%}.kv-split .gutter{background:var(--g-color-base-background);position:relative;z-index:10}.kv-split .gutter:after{background-color:var(--g-color-base-generic-ultralight);content:"";inset:0;position:absolute}.kv-split .gutter.active:after,.kv-split .gutter:hover:after{background-color:var(--g-color-line-generic-hover);transition:background-color 1s ease}.kv-split .gutter.disabled{display:none}.kv-split .gutter.gutter-vertical{cursor:row-resize;height:8px;width:100%}.kv-split .gutter.gutter-vertical:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:1px 0;content:"";height:4px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:16px}.kv-split .gutter.gutter-horizontal{cursor:col-resize;height:100%;width:8px}.kv-split .gutter.gutter-horizontal:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:0 1px;content:"";height:16px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:4px}.histogram{display:flex;flex:1 1 auto}.histogram__chart{align-items:baseline;border-bottom:1px solid var(--g-color-base-generic);border-left:1px solid var(--g-color-base-generic);display:flex;height:300px;margin-left:50px;margin-top:30px;position:relative;width:800px}.histogram__x-min{left:-3px}.histogram__x-max,.histogram__x-min{bottom:-25px;color:var(--g-color-text-secondary);position:absolute}.histogram__x-max{right:0}.histogram__y-min{bottom:-7px;left:-30px;width:20px}.histogram__y-max,.histogram__y-min{color:var(--g-color-text-secondary);position:absolute;text-align:right}.histogram__y-max{left:-60px;top:-5px;width:50px}.histogram__item{cursor:pointer;margin-right:.5%;width:1.5%}.heatmap{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.heatmap__limits{align-items:center;display:flex;margin-left:20px}.heatmap__limits-block{display:flex;margin-right:10px}.heatmap__limits-title{color:var(--g-color-text-secondary);margin-right:5px}.heatmap__row{align-items:center}.heatmap__row_overall{margin:15px 20px}.heatmap__row_overall .g-progress{margin:0;width:300px}.heatmap__label{font-size:var(--g-text-body-2-font-size);font-weight:500;line-height:var(--g-text-body-2-line-height);margin-right:16px;text-transform:uppercase}.heatmap__label_overall{margin-right:15px}.heatmap__items{overflow:auto}.heatmap__canvas-container{cursor:pointer;overflow:auto}.heatmap__filters{align-items:center;display:flex;margin:0 0 10px}.heatmap__filter-control{margin-right:10px;max-width:200px;min-width:100px}.heatmap__filter-control:last-child{margin-right:0}.heatmap__histogram-checkbox,.heatmap__sort-checkbox{margin-left:10px}.heatmap__row{display:flex}.heatmap .tablet,.heatmap__row{margin-bottom:2px}.ydb-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.ydb-nodes__groups-wrapper{padding-right:20px}.operations__search{width:220px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.schema-viewer__keys{display:inline-block;padding-bottom:var(--g-spacing-4);padding-left:10px}.schema-viewer__keys-values{color:var(--g-color-text-complementary);display:inline;font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.schema-viewer__keys-header{color:var(--g-color-text-primary);display:inline;font-size:var(--g-text-subheader-1-font-size);font-weight:700;line-height:var(--g-text-subheader-1-line-height);white-space:nowrap}.schema-viewer__keys-label{cursor:pointer}.schema-viewer__keys-wrapper{left:0;position:sticky;width:100%;z-index:1}.schema-viewer__keys+.schema-viewer__keys{margin-left:var(--g-spacing-8)}.schema-viewer__keys_summary+.schema-viewer__keys_summary{margin-left:0}.schema-viewer__popup-content{padding:var(--g-spacing-2) var(--g-spacing-4)}.schema-viewer__popup-item{padding-bottom:var(--g-spacing-2)}.schema-viewer__popup-item:last-child{padding-bottom:0}.schema-viewer__more-badge{margin-left:var(--g-spacing-1)}.ydb-diagnostics-configs__icon-touched{color:var(--g-color-text-secondary);cursor:default!important;line-height:1}.speed-multimeter{display:flex;width:100%}.speed-multimeter__content{display:flex;flex-direction:row;flex-grow:1;justify-content:flex-end;line-height:22px}.speed-multimeter__displayed-value{display:flex;flex-direction:row;justify-content:flex-end;margin-right:10px}.speed-multimeter__bars{align-items:flex-start;display:flex;flex-direction:column;margin-right:5px;overflow:hidden;width:32px}.speed-multimeter__bar-container{height:6px;width:100%}.speed-multimeter__bar-container_highlighted{background:var(--g-color-line-generic)}.speed-multimeter__bar{height:100%;min-width:2px}.speed-multimeter__bar_color_light{background:var(--g-color-base-info-medium)}.speed-multimeter__bar_color_dark{background:var(--g-color-base-info-heavy)}.speed-multimeter__bar-container+.speed-multimeter__bar-container{margin-top:2px}.speed-multimeter__popover-container{align-items:center;display:flex;justify-content:center}.speed-multimeter__popover-content{padding:10px}.speed-multimeter__popover-header{display:block;font-size:18px;line-height:24px;margin-bottom:7px}.speed-multimeter__popover-row{display:block;font-size:13px;line-height:18px}.speed-multimeter__popover-row_color_primary{color:var(--g-color-text-primary)}.speed-multimeter__popover-row_color_secondary{color:var(--g-color-text-secondary)}.ydb-diagnostics-consumers-topic-stats{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-diagnostics-consumers-topic-stats__wrapper{border-left:1px solid var(--g-color-line-generic);display:flex;flex-direction:row;padding-left:16px}.ydb-diagnostics-consumers-topic-stats__item{display:flex;flex-direction:column;margin-right:20px}.ydb-diagnostics-consumers-topic-stats__label{color:var(--g-color-text-secondary);margin-bottom:4px}.ydb-diagnostics-consumers-topic-stats__value{align-items:center;display:flex;height:30px;justify-content:flex-start}.ydb-lag-popover-content__text{margin-bottom:10px}.ydb-lag-popover-content_type_read{max-width:280px}.ydb-lag-popover-content_type_write{max-width:220px}.ydb-diagnostics-consumers-columns-header__lags{white-space:nowrap}.ydb-diagnostics-consumers-columns__lags-header{text-align:center}.ydb-diagnostics-consumers{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-consumers__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-consumers__search{width:238px}.ydb-diagnostics-consumers__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-consumers__table-content{height:100%;overflow:auto}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-consumers__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-consumers__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{box-shadow:unset}.ydb-json-tree{height:100%;position:relative;width:100%}.ydb-json-tree__tree{word-wrap:break-word;font-family:var(--g-font-family-monospace)!important;font-size:var(--g-text-code-1-font-size)!important;line-height:var(--g-text-code-1-line-height)!important;width:100%}.ydb-json-tree__tree .json-inspector__leaf_composite:before{color:var(--g-color-text-secondary);font-size:9px;left:20px;position:absolute}.ydb-json-tree__tree .json-inspector__leaf_composite.json-inspector__leaf_root:before{left:0}.ydb-json-tree__tree :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:"[+]"}.ydb-json-tree__tree .json-inspector__leaf_expanded.json-inspector__leaf_composite:before{content:"[-]"}.ydb-json-tree__tree .json-inspector__key{color:var(--g-color-text-misc)}.ydb-json-tree__tree .json-inspector__leaf{padding-left:20px;position:relative}.ydb-json-tree__tree .json-inspector__leaf_root{padding-left:0}.ydb-json-tree__tree .json-inspector__line{padding-left:20px}.ydb-json-tree__tree .json-inspector__toolbar{border:1px solid var(--g-color-line-generic);border-radius:4px;margin-bottom:10px;width:300px}.ydb-json-tree__tree .json-inspector__search{background:none;border:0 solid #0000;border-width:0 22px 0 8px;box-sizing:border-box;color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:13px;height:28px;margin:0;outline:0;padding:0;vertical-align:top;width:300px}.ydb-json-tree__tree .json-inspector__value_helper{color:var(--g-color-text-secondary)}.ydb-json-tree__tree .json-inspector__line:hover:after{background:var(--g-color-base-simple-hover)}.ydb-json-tree__tree .json-inspector__show-original:before{color:var(--g-color-text-secondary)}.ydb-json-tree__tree .json-inspector__show-original:hover:after,.ydb-json-tree__tree .json-inspector__show-original:hover:before{color:var(--g-color-text-primary)}.ydb-json-tree__tree .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite{max-width:calc(100% - 50px)}.ydb-json-tree__case{left:308px;position:absolute;top:0}.ydb-json-tree .json-inspector__search{height:26px}.ydb-describe__message-container{padding:15px 0}.ydb-describe__result{display:flex;flex:0 0 auto;overflow:auto;padding:0 20px 20px 0;position:relative}.ydb-describe__copy{left:340px;position:absolute}.ydb-external-data-source-info__location,.ydb-external-table-info__location{max-width:var(--tenant-object-info-max-value-width)}.ydb-definition-list{display:flex;flex:1 1 auto;flex-direction:column}.ydb-definition-list__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-definition-list__properties-list{max-width:calc(100% - 40px)}.ydb-async-replication-paths__title,.ydb-overview-topic-stats__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-overview-topic-stats .ydb-loader{margin-top:50px}.ydb-overview-topic-stats .info-viewer__row{align-items:flex-start}.ydb-overview-topic-stats .speed-multimeter{margin-top:-5px}.ydb-overview-topic-stats .speed-multimeter__content{justify-content:flex-start}.ydb-overview-topic-stats__info .info-viewer__label-text_multiline{max-width:150px}.ydb-overview-topic-stats__bytes-written{margin-top:7px;padding-left:20px}.ydb-overview-topic-stats__bytes-written .info-viewer__label{min-width:180px}.ydb-diagnostics-table-info__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-diagnostics-table-info__row{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:flex-start}.ydb-diagnostics-table-info__col{align-items:flex-start;display:flex;flex-direction:column;justify-content:flex-start}.ydb-diagnostics-table-info__col:not(:last-child){margin-right:50px}.ydb-diagnostics-table-info__info-block{margin-bottom:20px}.ydb-diagnostics-table-info__info-block .info-viewer__items{grid-template-columns:minmax(max-content,280px)}.ydb-metric-chart{border:1px solid var(--g-color-line-generic);border-radius:8px;display:flex;flex-direction:column;padding:16px 16px 8px}.ydb-metric-chart__title{margin-bottom:10px}.ydb-metric-chart__chart{display:flex;height:100%;overflow:hidden;position:relative;width:100%}.ydb-metric-chart__error{left:50%;position:absolute;text-align:center;top:10%;transform:translateX(-50%);z-index:1}.ydb-timeframe-selector{display:flex;gap:2px}.ydb-tenant-dashboard{margin-bottom:var(--diagnostics-section-margin);width:var(--diagnostics-section-table-width)}.ydb-tenant-dashboard__controls{margin-bottom:10px}.ydb-tenant-dashboard__charts{display:flex;flex-flow:row wrap;gap:16px}.issue-tree-item{align-items:center;cursor:pointer;display:flex;height:40px;justify-content:space-between}.issue-tree-item__field{display:flex;overflow:hidden}.issue-tree-item__field_status{display:flex;white-space:nowrap}.issue-tree-item__field_additional{color:var(--g-color-text-link);cursor:pointer;width:max-content}.issue-tree-item__field_additional:hover{color:var(--g-color-text-link-hover)}.issue-tree-item__field_message{flex-shrink:0;overflow:hidden;white-space:normal;width:300px}.issue-tree-item__field-tooltip.issue-tree-item__field-tooltip{max-width:500px;min-width:500px}.issue-tree-item__field-label{color:var(--g-color-text-secondary)}.issue-tree{display:flex}.issue-tree__block{width:100%}.issue-tree__checkbox{margin:5px 0 10px}.issue-tree__info-panel{background:var(--g-color-base-generic);border-radius:4px;height:100%;margin:11px 0;padding:8px 20px;position:sticky}.issue-tree__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before,.issue-tree__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:""}.issue-tree__inspector .json-inspector__line:hover:after{background:#0000}.issue-tree__inspector .json-inspector__show-original:hover:after,.issue-tree__inspector .json-inspector__show-original:hover:before{color:#0000}.issue-tree__inspector .json-inspector__value_helper{display:none}.issue-tree__inspector .json-inspector__value{overflow:hidden;word-break:break-all}.issue-tree__inspector .json-inspector__value>span{-webkit-user-select:all;user-select:all}.issue-tree .ydb-tree-view__item{height:40px}.issue-tree .ydb-tree-view .tree-view_arrow{height:40px;width:40px}.issue-tree .ydb-tree-view .ydb-tree-view__item{margin-left:calc(24px*var(--ydb-tree-view-level))!important;padding-left:0!important}.issue-tree .ydb-tree-view .issue-tree__info-panel{margin-left:calc(24px*var(--ydb-tree-view-level))}.healthcheck__details{width:872px}.healthcheck__details-content-wrapper{overflow-x:hidden}.healthcheck__preview{display:flex;flex-direction:column;height:100%}.healthcheck__preview-title{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.healthcheck__preview-content{line-height:24px;margin:auto}.healthcheck__preview-status-icon{height:64px;width:64px}.healthcheck__preview-title-wrapper{align-items:center;display:flex;gap:8px;margin-bottom:4px}.healthcheck__preview-issue{align-items:center;display:flex;flex-direction:column;gap:4px;position:relative;top:-8px}.healthcheck__preview-issue_good{color:var(--g-color-text-positive)}.healthcheck__preview-issue_good .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-positive-light)}.healthcheck__preview-issue_degraded{color:var(--g-color-text-info)}.healthcheck__preview-issue_degraded .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-info-light)}.healthcheck__preview-issue_emergency{color:var(--g-color-text-danger)}.healthcheck__preview-issue_emergency .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-danger-light)}.healthcheck__preview-issue_unspecified{color:var(--g-color-text-misc)}.healthcheck__preview-issue_unspecified .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-misc-light)}.healthcheck__preview-issue_maintenance_required{color:var(--g-color-text-warning-heavy)}.healthcheck__preview-issue_maintenance_required .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-warning-light)}.healthcheck__self-check-status-indicator{text-wrap:nowrap;border-radius:4px;display:inline-block;font-size:13px;line-height:24px;padding:0 8px}.ydb-diagnostic-card{background-color:#0000;border:1px solid var(--g-color-line-generic);border-radius:8px;flex-shrink:0;padding:16px 16px 28px}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card_interactive:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-diagnostic-card_size_m{min-width:206px;width:206px}.ydb-diagnostic-card_size_l{min-width:289px;width:289px}.ydb-diagnostic-card_size_s{min-width:134px;width:134px}.ydb-metrics-card{min-height:252px}.ydb-metrics-card__header{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:10px}.ydb-metrics-card__label{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.ydb-metrics-card__content{color:var(--g-color-text-secondary);display:flex;flex-direction:column;gap:10px}.ydb-metrics-card__metric-title{height:var(--g-text-body-2-line-height)}.ydb-metrics-card_active .ydb-metrics-card__content{color:var(--g-color-text-complementary)}.metrics-cards{display:flex;gap:16px;margin-bottom:32px}.metrics-cards__tab{color:inherit;text-decoration:none}.confirmation-dialog__caption,.confirmation-dialog__message{white-space:pre-wrap}.ydb-save-query__dialog-row{align-items:flex-start;display:flex}.ydb-save-query__dialog-row+.ydb-save-query__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-save-query__field-title{font-weight:500;line-height:28px;margin-right:12px;white-space:nowrap}.ydb-save-query__field-title.required:after{color:var(--g-color-text-danger);content:"*"}.ydb-save-query__control-wrapper{display:flex;flex-grow:1;min-height:48px}.kv-truncated-query{max-width:100%;vertical-align:top;white-space:pre;word-break:break-word}.kv-truncated-query__message{white-space:pre-wrap}.kv-truncated-query__message_color_secondary{color:var(--g-color-text-secondary)}.kv-truncated-query__popover-content{max-width:600px;overflow:hidden;white-space:pre}.kv-top-queries{display:flex;flex-direction:column;height:100%}.kv-top-queries .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-top-queries .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-top-queries__search{width:238px}.kv-top-queries__row{cursor:pointer}.kv-top-queries__query{overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:pre-wrap;word-break:break-word}.kv-top-queries__user-sid{max-width:200px;overflow:hidden;text-overflow:ellipsis}.tenant-overview{height:100%;overflow:auto;padding-bottom:20px}.tenant-overview__loader{display:flex;justify-content:center}.tenant-overview__tenant-name-wrapper{align-items:center;display:flex;overflow:hidden}.tenant-overview__top{align-items:center;display:flex;gap:4px;line-height:24px;margin-bottom:10px}.tenant-overview__top-label{font-weight:600;gap:10px;line-height:24px;margin-bottom:var(--diagnostics-section-title-margin)}.tenant-overview__info{left:0;position:sticky;width:max-content}.tenant-overview__title{font-size:var(--g-text-body-2-font-size);font-weight:700;line-height:var(--g-text-body-2-line-height);margin-bottom:10px}.tenant-overview__table:not(:last-child){margin-bottom:var(--diagnostics-section-margin)}.tenant-overview__top-queries-row{cursor:pointer}.tenant-overview__storage-info{margin-bottom:36px}.tenant-overview__memory-info{margin-bottom:36px;width:300px}.kv-detailed-overview{display:flex;flex-direction:column;gap:20px;height:100%;width:100%}.kv-detailed-overview__section{display:flex;flex-basis:calc(50% - 10px);flex-direction:column;flex-grow:1;flex-shrink:0;min-width:300px}.kv-detailed-overview__modal .g-modal__content{position:relative}.kv-detailed-overview__close-modal-button{position:absolute;right:13px;top:23px}.ydb-hot-keys__primary-key-column{align-items:center;display:flex;gap:5px}.ydb-hot-keys__help-card{left:0;margin-bottom:20px;padding:20px 40px 20px 20px;position:sticky}.ydb-hot-keys__help-card__close-button{position:absolute;right:5px;top:5px}.node-network{border:1px solid #0000;border-radius:4px;box-sizing:border-box;color:var(--g-color-text-complementary);cursor:pointer;display:inline-block;font-size:12px;height:14px;line-height:14px;margin-bottom:5px;margin-right:5px;padding:0 5px;text-align:center;text-transform:uppercase;width:14px}.node-network_id{height:14px;width:42px}.node-network_blur{opacity:.25}.node-network_grey{background:var(--ydb-color-status-grey)}.node-network_black{background-color:var(--ydb-color-status-black);color:var(--g-color-text-light-primary)}.node-network_green{background-color:var(--ydb-color-status-green)}.node-network_yellow{background-color:var(--ydb-color-status-yellow)}.node-network_red{background-color:var(--ydb-color-status-red)}.node-network:hover{border:1px solid var(--g-color-text-primary)}.network{flex-direction:column;font-size:var(--g-text-body-2-font-size);justify-content:space-between;line-height:var(--g-text-body-2-line-height);max-width:1305px}.network,.network__nodes-row{display:flex;flex-grow:1;height:100%;overflow:auto}.network__nodes-row{align-items:flex-start;flex-direction:row}.network__inner{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.network__right{height:100%;padding-left:20px;width:100%}.network__left{border-right:1px solid var(--g-color-base-generic-accent);height:100%}.network__placeholder{align-items:center;display:flex;flex-direction:column;flex-grow:1;height:100%;justify-content:center;width:100%}.network__placeholder-text{margin-top:15px}.network__placeholder-img{color:#0000}.network__nodes{display:flex;flex-wrap:wrap}.network__nodes-container{min-width:325px}.network__nodes-container_right{margin-right:60px}.network__nodes-title{border-bottom:1px solid var(--g-color-base-generic-accent);color:var(--g-color-text-secondary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:0 0 15px}.network__link{color:var(--g-color-base-brand);text-decoration:none}.network__title{font-size:var(--g-text-body-1-font-size);font-weight:500;line-height:var(--g-text-body-1-line-height);margin:20px 0}.network__checkbox-wrapper{align-items:center;display:flex}.network__checkbox-wrapper label{white-space:nowrap}.network__label{margin-bottom:16px}.network__controls{display:flex;gap:12px;margin:0 16px 16px 0}.network__controls-wrapper{display:flex;flex:1 1 auto;flex-direction:row;flex-direction:column}.network__select{margin:0 15px;max-width:115px}.network__rack-column{align-items:center;background-color:#00000012;border-radius:4px;display:flex;flex-direction:column;margin-bottom:5px;margin-right:5px;padding:2px}.network__rack-column .node-network{margin-right:0}.ydb-diagnostics-partitions-columns-header__multiline{white-space:normal}.ydb-diagnostics-partitions-columns-header__read-session{white-space:normal;width:80px}.ydb-diagnostics-partitions-columns-header__lags{white-space:nowrap}.ydb-diagnostics-partitions-columns-header__messages{white-space:normal;width:90px}.ydb-diagnostics-partitions-columns-header__messages-popover-content{max-width:200px}.ydb-diagnostics-partitions-columns__lags-header{text-align:center}.ydb-diagnostics-partitions{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-partitions__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-partitions__consumer-select{width:220px}.ydb-diagnostics-partitions__select-option_empty{color:var(--g-color-text-hint)}.ydb-diagnostics-partitions__search{width:238px}.ydb-diagnostics-partitions__search_partition{width:100px}.ydb-diagnostics-partitions__search_general{width:280px}.ydb-diagnostics-partitions__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-partitions__table-content{height:100%;overflow:auto}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-partitions__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-partitions__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{box-shadow:unset}.date-range__range-input_s{width:200px}.date-range__range-input_m{width:300px}.date-range__range-input_l{width:350px}.date-range__range-input input{cursor:pointer}.top-shards__hint{left:0;position:sticky;width:max-content}.kv-tenant-diagnostics{display:flex;flex-direction:column;height:100%;overflow:hidden}.kv-tenant-diagnostics__header-wrapper{background-color:var(--g-color-base-background);padding:0 20px 16px}.kv-tenant-diagnostics__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex;justify-content:space-between}.kv-tenant-diagnostics__tabs .g-tabs_direction_horizontal{box-shadow:unset}.kv-tenant-diagnostics__tab{margin-right:40px;text-decoration:none}.kv-tenant-diagnostics__tab:first-letter{text-transform:uppercase}.kv-tenant-diagnostics__page-wrapper{flex-grow:1;overflow:auto;padding:0 20px;width:100%}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .data-table__sticky_moving,.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .ydb-paginated-table__head{top:46px!important}.ydb-queries-history{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-queries-history .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-queries-history.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-queries-history__search{width:238px}.ydb-queries-history__table-row{cursor:pointer}.ydb-queries-history__query{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kv-pane-visibility-button_hidden{display:none}.kv-pane-visibility-button_bottom{transform:rotate(180deg)}.kv-pane-visibility-button_bottom.rotate{transform:rotate(0)}.kv-pane-visibility-button_left{transform:rotate(-90deg)}.kv-pane-visibility-button_left.rotate{transform:rotate(90deg)}.kv-pane-visibility-button_top.rotate{transform:rotate(180deg)}.ydb-fullscreen{flex-grow:1;overflow:hidden}.ydb-fullscreen_fullscreen{background-color:var(--g-color-base-background);inset:0;position:absolute;z-index:10}.ydb-fullscreen__close-button{display:none;position:fixed;right:20px;top:8px;z-index:11}.ydb-fullscreen_fullscreen .ydb-fullscreen__close-button{display:block}.ydb-fullscreen__content{display:flex;height:100%;overflow:auto;width:100%}.ydb-query-result-table__cell{cursor:pointer;display:inline-block;max-width:600px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-query-result-table__message{padding:15px 10px}.kv-preview{display:flex;flex:1 1 auto;flex-direction:column;height:100%}.kv-preview .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-preview .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-preview__header{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;flex-shrink:0;height:53px;justify-content:space-between;padding:0 20px;position:sticky;top:0}.kv-preview__title{display:flex;gap:var(--g-spacing-1)}.kv-preview__table-name{color:var(--g-color-text-complementary);margin-left:var(--g-spacing-1)}.kv-preview__controls-left{display:flex;gap:var(--g-spacing-1)}.kv-preview__message-container{padding:15px 20px}.kv-preview__loader-container{align-items:center;display:flex;height:100%;justify-content:center}.kv-preview__result{overflow:auto;padding-left:10px;width:100%}.ydb-query-settings-description__message{display:flex;flex-wrap:wrap;white-space:pre}.ydb-query-editor-controls{align-items:flex-end;display:flex;flex:0 0 40px;gap:24px;justify-content:space-between;min-height:40px;padding:5px 0}.ydb-query-editor-controls__left,.ydb-query-editor-controls__right{display:flex;gap:12px}.ydb-query-editor-controls__mode-selector__button{margin-left:2px;width:241px}.ydb-query-editor-controls__mode-selector__button-content{align-items:center;display:flex;justify-content:space-between;width:215px}.ydb-query-editor-controls__mode-selector__popup{width:241px}.ydb-query-editor-controls__item-with-popover{align-items:center;display:flex;height:24px;line-height:normal}.ydb-query-editor-controls__popover{max-width:420px;white-space:pre-wrap}.kv-divider{background-color:var(--g-color-line-generic);height:100%;margin:0 4px;width:1px}.kv-query-execution-status{align-items:center;color:var(--g-color-text-complementary);display:flex;gap:4px}.kv-query-execution-status__result-status-icon{color:var(--g-color-text-positive)}.kv-query-execution-status__result-status-icon_error{color:var(--g-color-text-danger)}.kv-query-execution-status__query-settings-icon{color:var(--g-color-text-hint)}.cancel-query-button__stop-button_error{animation:errorAnimation .5s linear}@keyframes errorAnimation{41%,8%{transform:translateX(-2px)}25%,58%{transform:translateX(2px)}75%{transform:translateX(-1px)}92%{transform:translateX(1px)}0%,to{transform:translateX(0)}}.ydb-query-duration{align-items:center;color:var(--g-color-text-complementary);display:flex;margin-left:10px}.ydb-query-duration__item-with-popover{display:flex;white-space:nowrap}.ydb-query-duration__popover{align-items:center;display:flex}.ydb-query-duration__popover-content{max-width:300px}.ydb-query-duration__popover-button{display:flex}.ydb-query-settings-banner{margin:var(--g-spacing-1) var(--g-spacing-5)}.ydb-query-ast{height:100%;overflow:hidden;white-space:pre-wrap;width:100%}.ydb-query-result-stub-message{padding:15px 20px}.ydb-query-explain-graph__canvas-container,.ydb-query-json-viewer__inspector{height:100%;overflow-y:auto;width:100%}.ydb-query-json-viewer__inspector,.ydb-query-result-error__message{padding:15px 10px}.ydb-query-result-sets-viewer__tabs{padding-left:10px}.ydb-query-result-sets-viewer__head{margin-top:var(--g-spacing-4)}.ydb-query-result-sets-viewer__row-count{margin-left:var(--g-spacing-1)}.ydb-query-result-sets-viewer__result-wrapper{display:flex;flex-direction:column;width:100%}.ydb-query-result-sets-viewer__result{display:flex;flex-direction:column;flex-grow:1;overflow:auto;padding-left:10px}.ydb-query-result-sets-viewer__result .data-table__box .data-table__table-wrapper{padding-bottom:20px}.ydb-query-result-sets-viewer__result .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.ydb-query-result-sets-viewer__result .data-table__table-wrapper{padding-bottom:0}.ydb-table{--ydb-table-cell-height:40px}.ydb-table__table-header-content{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:inline-flex;height:100%;padding:var(--g-spacing-1) var(--g-spacing-2);width:100%}.ydb-table__table{border-collapse:collapse;border-spacing:0;table-layout:fixed}.ydb-table__table tr:hover{background-color:var(--g-color-base-simple-hover)!important}.ydb-table__table tr:nth-of-type(odd){background-color:var(--g-color-base-generic-ultralight)}.ydb-table__table_width_max{width:100%}.ydb-table__table-header-cell{background-color:var(--g-color-base-background);font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-subheader-2-line-height);padding:0;text-align:left;vertical-align:middle}.ydb-table__table-header-cell_align_right .ydb-table__table-header-content{justify-content:flex-end;text-align:right}.ydb-table__table-cell{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-body-2-line-height);padding:0}.ydb-table__table-cell_align_right{text-align:right}.ydb-table__table-cell_vertical-align_top{vertical-align:top}.ydb-query-simplified-plan{height:100%;overflow:auto;padding:0 15px 15px;width:100%}.ydb-query-simplified-plan__name{align-items:center;display:flex;gap:var(--g-spacing-1);max-width:100%}.ydb-query-simplified-plan__metrics-cell{padding:var(--g-spacing-1) var(--g-spacing-2)}.ydb-query-simplified-plan__operation-params{color:var(--g-color-text-secondary)}.ydb-query-simplified-plan__operation-name{height:100%;max-width:100%;position:relative}.ydb-query-simplified-plan__divider{bottom:0;box-shadow:1px 0 0 0 var(--g-color-line-generic) inset;height:100%;position:absolute;width:12px}.ydb-query-simplified-plan__divider_last{border-radius:0 0 0 1px;bottom:unset;box-shadow:1px -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-simplified-plan__divider_horizontal{bottom:unset;box-shadow:0 -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-simplified-plan__divider_first{height:calc(100% - 30px)}.ydb-query-simplified-plan__operation-content{height:100%;max-width:100%;padding:var(--g-spacing-1) 0;word-break:break-word}.ydb-query-simplified-plan__operation-name-content{display:flex;flex-grow:1}.ydb-query-result__controls{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;height:53px;justify-content:space-between;padding:12px 20px;position:sticky;top:0;z-index:2}.ydb-query-result__controls-left{align-items:center;display:flex;gap:12px;height:100%}.ydb-query-result__controls-right{display:flex;gap:4px}.ydb-query-result__elapsed-label{margin-left:var(--g-spacing-3)}.ydb-query-settings-select__selector{width:100%}.ydb-query-settings-select__popup{max-width:320px}.ydb-query-settings-select__item-description{color:var(--g-color-text-secondary);white-space:pre-wrap}.ydb-query-settings-select__item{padding:var(--g-spacing-1) 0}.ydb-query-settings-dialog__dialog-row+.ydb-query-settings-dialog__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-query-settings-dialog__field-title{flex:4 1;font-weight:500;line-height:var(--g-text-header-2-line-height);margin-right:var(--g-spacing-3);white-space:nowrap}.ydb-query-settings-dialog .g-dialog-footer__bts-wrapper{width:100%}.ydb-query-settings-dialog__dialog-body{padding-top:var(--g-spacing-6)}.ydb-query-settings-dialog__control-wrapper{display:flex;flex:6 1}.ydb-query-settings-dialog__limit-rows,.ydb-query-settings-dialog__timeout{margin-right:var(--g-spacing-2);width:33.3%}.ydb-query-settings-dialog__documentation-link,.ydb-query-settings-dialog__timeout-suffix{align-items:center;color:var(--g-color-text-secondary);display:flex}.ydb-query-settings-dialog__documentation-link{margin-left:var(--g-spacing-4)}.ydb-query-settings-dialog__buttons-container{display:flex;justify-content:space-between;width:100%}.ydb-query-settings-dialog__main-buttons{display:flex;gap:10px}.query-editor{display:flex;flex:1 1 auto;flex-direction:column;height:100%;position:relative}.query-editor .data-table__box .data-table__table-wrapper{padding-bottom:20px}.query-editor .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.query-editor__monaco{border:1px solid var(--g-color-line-generic);display:flex;height:100%;position:relative;width:100%}.query-editor__monaco-wrapper{height:calc(100% - 49px);min-height:0;width:100%}.query-editor__pane-wrapper{background-color:var(--g-color-base-background);display:flex;flex-direction:column;z-index:2}.query-editor__pane-wrapper_top{border-bottom:1px solid var(--g-color-line-generic);padding:0 16px}.ydb-saved-queries{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-saved-queries .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-saved-queries.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-saved-queries__search{width:238px}.ydb-saved-queries__row{cursor:pointer}.ydb-saved-queries__row :hover .ydb-saved-queries__controls{display:flex}.ydb-saved-queries__query-name{overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap}.ydb-saved-queries__query{align-items:center;display:flex;flex-direction:row;justify-content:space-between}.ydb-saved-queries__query-body{flex-grow:1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre}.ydb-saved-queries__controls{display:none}.ydb-saved-queries__dialog-query-name{font-weight:500}.ydb-query{display:flex;flex:1 1 auto;flex-direction:column;max-height:calc(100% - 56px)}.ydb-query__tabs{padding:0 20px 16px}.ydb-query__content{height:100%;overflow:hidden}.ydb-tenant-navigation{padding:12px 16px 8px}.ydb-tenant-navigation__item{align-items:center;display:flex;gap:5px}.ydb-tenant-navigation__icon{flex-shrink:0}.ydb-tenant-navigation__text{overflow:hidden;text-overflow:ellipsis}.object-general{display:flex;flex-direction:column;flex-grow:1;height:100%;max-height:100%;width:100%}.object-general__loader{display:flex}.ydb-acl{width:100%}.ydb-acl__result{padding-bottom:var(--g-spacing-4);padding-left:var(--g-spacing-2)}.ydb-acl__result_no-title{margin-top:var(--g-spacing-3)}.ydb-acl__definition-content{align-items:flex-end;display:flex;flex-direction:column}.ydb-acl__list-title{font-weight:600;margin:var(--g-spacing-3) 0 var(--g-spacing-5)}.ydb-acl__group-label,.ydb-acl__list-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height)}.ydb-schema-create-directory-dialog__label{display:flex;flex-direction:column;margin-bottom:8px}.ydb-schema-create-directory-dialog__description{color:var(--g-color-text-secondary)}.ydb-schema-create-directory-dialog__input-wrapper{min-height:48px}.ydb-object-summary{height:100%;max-height:100%;overflow:hidden;width:100%}.ydb-object-summary,.ydb-object-summary__overview-wrapper{display:flex;flex-direction:column;flex-grow:1;position:relative}.ydb-object-summary__overview-wrapper{overflow:auto;padding:0 12px 16px}.ydb-object-summary_hidden{visibility:hidden}.ydb-object-summary__actions{background-color:var(--g-color-base-background);position:absolute;right:5px;top:19px}.ydb-object-summary__button_hidden{display:none}.ydb-object-summary__tree-wrapper{display:flex;flex-direction:column}.ydb-object-summary__tree{flex:1 1 auto;height:100%;overflow-y:scroll;padding:0 12px 12px 16px}.ydb-object-summary__tree-header{padding:23px 12px 17px 20px}.ydb-object-summary__sticky-top{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:5}.ydb-object-summary__tabs{padding:8px 12px 16px}.ydb-object-summary__tabs-inner{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}.ydb-object-summary__tab{text-decoration:none}.ydb-object-summary__info{display:flex;flex-direction:column;overflow:hidden}.ydb-object-summary__info-controls{display:flex;gap:4px}.ydb-object-summary__info-action-button{background-color:var(--g-color-base-background)}.ydb-object-summary__info-action-button_hidden{display:none}.ydb-object-summary__rotated90{transform:rotate(-90deg)}.ydb-object-summary__rotated180{transform:rotate(180deg)}.ydb-object-summary__rotated270{transform:rotate(90deg)}.ydb-object-summary__info-header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;justify-content:space-between;padding:12px 12px 10px}.ydb-object-summary__info-title{align-items:center;display:flex;font-weight:600;overflow:hidden}.ydb-object-summary__path-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-object-summary__entity-type{background-color:var(--g-color-base-generic);border-radius:3px;display:inline-block;font-weight:400;margin-right:5px;padding:3px 8px;text-transform:lowercase}.ydb-object-summary__entity-type_error{background-color:#0000;padding:3px 0}.ydb-object-summary__overview-title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-object-summary__overview-item-content{text-align:end;white-space:nowrap}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.tenant-page{display:flex;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:hidden}.tenant-page__main{flex-grow:1}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/535.c6fb8cd9.chunk.css b/ydb/core/viewer/monitoring/static/css/535.c6fb8cd9.chunk.css new file mode 100644 index 00000000000..d028999af58 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/535.c6fb8cd9.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;display:inline-flex;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.link,.ydb-tablet-info__link{color:var(--g-color-text-link);text-decoration:none}.link:hover,.ydb-tablet-info__link:hover{color:var(--g-color-text-link-hover)}.ydb-tablet-info__section-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:var(--g-spacing-1) 0 var(--g-spacing-3)}.ydb-table{--ydb-table-cell-height:40px}.ydb-table__table-header-content{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:inline-flex;height:100%;padding:var(--g-spacing-1) var(--g-spacing-2);width:100%}.ydb-table__table{border-collapse:collapse;border-spacing:0;table-layout:fixed}.ydb-table__table tr:hover{background-color:var(--g-color-base-simple-hover)!important}.ydb-table__table tr:nth-of-type(odd){background-color:var(--g-color-base-generic-ultralight)}.ydb-table__table_width_max{width:100%}.ydb-table__table-header-cell{background-color:var(--g-color-base-background);font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-subheader-2-line-height);padding:0;text-align:left;vertical-align:middle}:is(.ydb-table__table-header-cell_align_right) .ydb-table__table-header-content{justify-content:flex-end;text-align:right}.ydb-table__table-cell{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-body-2-line-height);padding:0}.ydb-table__table-cell_align_right{text-align:right!important}.ydb-table__table-cell_vertical-align_top{vertical-align:top!important}.gt-table{border:none;border-collapse:initial;border-spacing:0}.gt-table__row_interactive{cursor:pointer}.gt-table__header_sticky{inset-block-start:0;position:sticky;z-index:1}.gt-table__footer_sticky{inset-block-end:0;position:sticky;z-index:1}.gt-table__cell{font-weight:400}.gt-table__footer-cell,.gt-table__header-cell{font-weight:500;position:relative}.gt-table__cell,.gt-table__footer-cell,.gt-table__header-cell{box-sizing:border-box;height:inherit;padding:0;text-align:start}.gt-table__cell_pinned,.gt-table__footer-cell_pinned,.gt-table__header-cell_pinned{position:sticky;z-index:1}.gt-table__sort{cursor:pointer;-webkit-user-select:none;user-select:none}.gt-table_with-row-virtualization{display:grid;height:auto}.gt-table_with-row-virtualization .gt-table__body{display:grid;position:relative}.gt-table_with-row-virtualization .gt-table__footer,.gt-table_with-row-virtualization .gt-table__header{display:grid}.gt-table_with-row-virtualization .gt-table__footer-row,.gt-table_with-row-virtualization .gt-table__header-row{display:flex;height:auto}.gt-table_with-row-virtualization .gt-table__row{display:flex;height:auto;position:absolute}.gt-table_with-row-virtualization .gt-table__row_empty{position:relative}.gt-group-header{inset-inline-start:0;margin:0;position:sticky}.gt-group-header__button{appearance:none;background:inherit;border:none;cursor:pointer;display:flex;gap:8px;outline:none;padding:0;width:100%}.gt-group-header__icon{display:inline-block;transform:rotate(-90deg);transition:transform .1s ease-out;vertical-align:middle}.gt-group-header__icon_expanded{transform:rotate(0)}.gt-group-header__content{display:inline-flex;font-weight:500;gap:4px}.gt-sort-indicator{color:var(--g-color-text-hint);display:inline-flex;margin-inline-start:4px;transform:rotate(0);vertical-align:middle}.gt-sort-indicator_invisible{opacity:0}.gt-table__header-cell:hover .gt-sort-indicator_invisible{opacity:1}.gt-sort-indicator_order_asc{transform:rotate(180deg)}.gt-resize-handle{background:#d3d3d3;cursor:col-resize;height:100%;inset-block-start:0;opacity:0;position:absolute;touch-action:none;-webkit-user-select:none;user-select:none;width:6px}.gt-resize-handle_direction_ltr{inset-inline-end:0}.gt-resize-handle_direction_rtl{inset-inline-start:0}.gt-resize-handle_resizing,.gt-table__header-cell:hover .gt-resize-handle{opacity:1}.ydb-tablet-storage-info__metrics-cell{white-space:nowrap}.ydb-tablet-storage-info__metrics-cell,.ydb-tablet-storage-info__name-wrapper{padding:var(--g-spacing-1) var(--g-spacing-2)}.ydb-tablet-storage-info__with-padding{padding-left:calc(var(--g-spacing-2) + var(--g-spacing-6))}.ydb-tablet-storage-info__name-content_no-control{padding-left:var(--g-spacing-6)}.entity-status{--button-width:28px;align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%;position:relative}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__clipboard-button:focus-visible{background-color:var(--g-color-base-float);position:absolute;right:2px;top:2px}.data-table__row:hover .entity-status__clipboard-button,.ydb-paginated-table__row:hover .entity-status__clipboard-button{opacity:1}.data-table__row:hover .entity-status__clipboard-button:focus-visible,.ydb-paginated-table__row:hover .entity-status__clipboard-button:focus-visible{background-color:unset;position:static}.entity-status__clipboard-button_visible{opacity:1}.entity-status__wrapper{overflow:hidden;position:relative}.entity-status__wrapper_with-button{padding-right:var(--button-width)}.entity-status__controls-wrapper{align-items:center;display:flex;gap:var(--g-spacing-1);height:100%;position:absolute;right:0;top:0;width:0}.entity-status__controls-wrapper_visible{padding:var(--g-spacing-1);width:min-content}.data-table__row:hover .entity-status__controls-wrapper,.ydb-paginated-table__row:hover .entity-status__controls-wrapper,.ydb-tree-view__item .entity-status__controls-wrapper{background-color:var(--ydb-data-table-color-hover);padding:var(--g-spacing-1);width:min-content}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{display:inline-block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% + var(--button-width))}.entity-status__link_with-left-trim{direction:rtl;text-align:end}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-tablet-page{font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);padding:20px}.ydb-tablet-page__placeholder{align-items:center;display:flex;flex:1 1 auto;justify-content:center}.ydb-tablet-page__loader{margin-left:var(--g-spacing-2)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/5438.615bd68a.chunk.css b/ydb/core/viewer/monitoring/static/css/5438.615bd68a.chunk.css new file mode 100644 index 00000000000..f2b562beec1 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/5438.615bd68a.chunk.css @@ -0,0 +1 @@ +.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-connect-to-db-syntax-highlighter__wrapper{height:100%;position:relative;z-index:0}.ydb-connect-to-db-syntax-highlighter__sticky-container{background-color:var(--g-color-base-background);left:0;position:sticky;top:52px;top:0;z-index:1}.ydb-connect-to-db-syntax-highlighter__copy{position:absolute;right:14px;top:13px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/6030.fd13e90a.chunk.css b/ydb/core/viewer/monitoring/static/css/6030.fd13e90a.chunk.css new file mode 100644 index 00000000000..f18dd079028 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/6030.fd13e90a.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.ydb-vdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-vdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-vdisk-page__controls,.ydb-vdisk-page__info,.ydb-vdisk-page__meta,.ydb-vdisk-page__storage-title,.ydb-vdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-vdisk-page__meta{margin-top:20px}.ydb-vdisk-page__controls{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-vdisk-page__storage-title{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height);margin-bottom:0}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/6539.11185331.chunk.css b/ydb/core/viewer/monitoring/static/css/6539.11185331.chunk.css deleted file mode 100644 index 7a8657bcd10..00000000000 --- a/ydb/core/viewer/monitoring/static/css/6539.11185331.chunk.css +++ /dev/null @@ -1,3 +0,0 @@ -@charset "UTF-8";.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:" ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__icon,.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.g-dialog-body{flex:1 1 auto;overflow-y:auto;padding:10px var(--_--side-padding)}.g-dialog-body_has-borders{border-block-end:1px solid var(--g-color-line-generic)}.g-dialog-body_has-borders,.g-dialog-divider{border-block-start:1px solid var(--g-color-line-generic)}.g-dialog-divider{margin:0 calc(var(--_--side-padding)*-1)}.g-dialog-footer{align-items:center;display:flex;padding:28px var(--_--side-padding)}.g-dialog-footer__bts-wrapper{display:flex;gap:10px}.g-dialog-footer__children{align-items:center;display:flex;flex-grow:1;height:100%}.g-dialog-footer__button{min-width:128px;position:relative}.g-dialog-footer__error{color:var(--g-color-text-danger);padding:10px}.g-dialog-header{align-items:center;color:var(--g-color-text-primary);display:flex;justify-content:flex-start;line-height:24px;padding-block:20px 10px;padding-inline:var(--_--side-padding) calc(var(--_--side-padding) + var(--_--close-button-space)*var(--g-flow-is-ltr) + var(--_--close-button-space)*var(--g-flow-is-rtl))}.g-dialog-header__caption{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-dialog_size_s{--_--width:480px}.g-dialog_size_m{--_--width:720px}.g-dialog_size_l{--_--width:900px}.g-dialog_has-close{--_--close-button-space:24px}.g-modal{-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--g-color-sfx-veil);display:none;inset:0;margin:-9999px 0 0 -9999px;overflow:auto;position:fixed;visibility:hidden;z-index:1000}.g-modal__content-aligner{align-items:center;display:inline-flex;justify-content:center;min-height:100%;min-width:100%}.g-modal__content-wrapper{margin:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{border-radius:var(--g-modal-border-radius,5px)}.g-modal__content{background-color:var(--g-color-base-modal)}.g-modal__content_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-modal,.g-modal__content{animation-fill-mode:forwards;animation-timing-function:ease-out;outline:none}.g-modal_exit_active,.g-modal_open{display:block;margin:0;visibility:visible}.g-modal_appear_active,.g-modal_enter_active{animation-duration:.15s;animation-name:g-modal-open}.g-modal_appear_active .g-modal__content,.g-modal_enter_active .g-modal__content{animation-duration:.15s;animation-name:g-modal-content-open}.g-modal_exit_active{animation-duration:.2s;animation-name:g-modal}@keyframes g-modal{0%{opacity:1}to{opacity:0}}@keyframes g-modal-open{0%{opacity:0}to{opacity:1}}@keyframes g-modal-content-open{0%{transform:scale(.75)}to{transform:scale(1)}}.gc-help-popover__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gc-help-popover__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.json-inspector,.json-inspector__selection{font:14px/1.4 Consolas,monospace}.json-inspector__leaf{padding-left:10px}.json-inspector__line{cursor:default;display:block;position:relative}.json-inspector__line:after{bottom:0;content:"";left:-200px;pointer-events:none;position:absolute;right:-50px;top:0;z-index:-1}.json-inspector__line:hover:after{background:#0000000f}.json-inspector__leaf_composite>.json-inspector__line{cursor:pointer}.json-inspector__flatpath,.json-inspector__radio{display:none}.json-inspector__value{margin-left:5px}.json-inspector__search{margin:0 10px 10px 0;min-width:300px;padding:2px}.json-inspector__key{color:#505050}.json-inspector__not-found,.json-inspector__value_helper,.json-inspector__value_null{color:#b0b0b0}.json-inspector__value_string{color:#798953}.json-inspector__value_boolean{color:#75b5aa}.json-inspector__value_number{color:#d28445}.json-inspector__hl{background:#ff0;border-radius:2px;box-shadow:0 -1px 0 2px #ff0}.json-inspector__show-original{color:#666;cursor:pointer;display:inline-block;padding:0 6px}.json-inspector__show-original:hover{color:#111}.json-inspector__show-original:before{content:"⥂"}.json-inspector__show-original:hover:after{content:" expand"}.gc-definition-list{margin:0}.gc-definition-list__title{margin-block-end:var(--g-spacing-3)}.gc-definition-list .gc-definition-list__item:is(.gc-definition-list__item_grouped)+.gc-definition-list__item:not(.gc-definition-list__item_grouped),.gc-definition-list__title:not(:first-of-type){margin-block-start:var(--g-spacing-5)}.gc-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.gc-definition-list__item+.gc-definition-list__item{margin-block-start:var(--g-spacing-4)}.gc-definition-list__item_grouped+.gc-definition-list__item_grouped{margin-block-start:var(--g-spacing-3)}.gc-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 300px;overflow:hidden;position:relative}.gc-definition-list__term-wrapper{color:var(--g-color-text-secondary);flex:0 1 auto;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.gc-definition-list__term-container_multiline .gc-definition-list__term-wrapper{white-space:unset}.gc-definition-list__term-container_multiline .gc-definition-list__item-note-tooltip{position:absolute}.gc-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:40px}.gc-definition-list__dots_with-note{margin-inline-start:15px;min-width:25px}.gc-definition-list__definition{flex:0 1 auto;margin:0}.gc-definition-list_responsive .gc-definition-list__term-container{flex:1 0 auto}.gc-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.gc-definition-list__copy-container:hover .gc-definition-list__copy-button{opacity:1}.gc-definition-list__copy-container_icon-inside{margin-inline-end:unset;padding-inline-end:unset}.gc-definition-list__copy-container_icon-inside .gc-definition-list__copy-button{inset-block-start:0}.gc-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.gc-definition-list__copy-button:focus-visible{opacity:1}.chartkit-loader{align-items:center;display:flex;justify-content:center}.chartkit,.chartkit-loader{height:100%;width:100%}.chartkit_mobile .chartkit-scrollable-node{max-height:3000px}.chartkit-theme_common{--highcarts-navigator-border:var(--g-color-line-generic);--highcarts-navigator-track:var(--g-color-base-generic);--highcarts-navigator-body:var(--g-color-scroll-handle);--highcharts-series-border:var(--g-color-base-background);--highcharts-grid-line:var(--g-color-line-generic);--highcharts-axis-line:var(--g-color-line-generic);--highcharts-tick:var(--g-color-line-generic);--highcharts-title:var(--g-color-text-primary);--highcharts-axis-labels:var(--g-color-text-secondary);--highcharts-data-labels:var(--g-color-text-secondary);--highcharts-plot-line-label:var(--g-color-text-secondary);--highcharts-legend-item:var(--g-color-text-secondary);--highcharts-legend-item-hover:var(--g-color-text-primary);--highcharts-legend-item-hidden:var(--g-color-text-hint);--highcharts-floating-bg:var(--g-color-infographics-tooltip-bg);--highcharts-tooltip-text:var(--g-color-text-primary);--highcharts-tooltip-bg:var(--highcharts-floating-bg);--highcharts-tooltip-alternate-bg:var(--g-color-base-generic);--highcharts-tooltip-text-complementary:var(--g-color-text-secondary);--highcharts-holiday-band:var(--g-color-base-generic);--d3-data-labels:var(--g-color-text-secondary)}.ydb-tree-view{--ydb-tree-view-level:0;font-size:13px;line-height:18px}.ydb-tree-view,.ydb-tree-view *{box-sizing:border-box}.ydb-tree-view__item{align-items:center;border-bottom:1px solid var(--g-color-line-generic-solid);cursor:pointer;display:flex;height:24px;padding-left:calc(24px*var(--ydb-tree-view-level));padding-right:3px}.ydb-tree-view__item:hover{background-color:var(--g-color-base-simple-hover)}.ydb-tree-view__item:hover .ydb-tree-view__actions{display:flex}.ydb-tree-view__item_active{background-color:var(--g-color-base-selection);font-weight:700}.ydb-tree-view__item_active:hover{background-color:var(--g-color-base-selection-hover)}.ydb-tree-view__content{align-items:center;display:flex;flex-grow:1;overflow:hidden}.ydb-tree-view__icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex-shrink:0;height:24px;justify-content:center;width:24px}.ydb-tree-view__icon svg{display:block}.ydb-tree-view__text{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-tree-view__actions{align-items:center;display:none;margin-left:6px}.ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%280, 0, 0, 0.85%29"/></svg>') no-repeat 50%;border:none;cursor:pointer;flex-shrink:0;height:24px;padding:0;width:24px}.g-root_theme_dark .ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%28255, 255, 255, 0.85%29"/></svg>') no-repeat 50%}.ydb-tree-view__arrow:focus-visible{outline:2px solid var(--g-color-line-focus)}.ydb-tree-view__arrow:not(.ydb-tree-view__arrow_collapsed){transform:rotate(90deg)}.ydb-tree-view__arrow_hidden{visibility:hidden}.ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:24px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:48px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:72px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:96px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:120px}.g-card{--_--background-color:#0000;--_--border-color:#0000;--_--border-width:0;--_--box-shadow:none;background-color:var(--g-card-background-color,var(--_--background-color));border:var(--g-card-border-width,var(--_--border-width)) solid var(--g-card-border-color,var(--_--border-color));border-radius:var(--g-card-border-radius,var(--_--border-radius));box-shadow:var(--g-card-box-shadow,var(--_--box-shadow));box-sizing:border-box;outline:none}.g-card_theme_normal{--_--border-color:var(--g-color-line-generic);--_--background-color:var(--g-color-base-generic)}.g-card_theme_info{--_--border-color:var(--g-color-line-info);--_--background-color:var(--g-color-base-info-light)}.g-card_theme_success{--_--border-color:var(--g-color-line-positive);--_--background-color:var(--g-color-base-positive-light)}.g-card_theme_warning{--_--border-color:var(--g-color-line-warning);--_--background-color:var(--g-color-base-warning-light)}.g-card_theme_danger{--_--border-color:var(--g-color-line-danger);--_--background-color:var(--g-color-base-danger-light)}.g-card_theme_utility{--_--border-color:var(--g-color-line-utility);--_--background-color:var(--g-color-base-utility-light)}.g-card_view_clear,.g-card_view_outlined{--_--background-color:#0000}.g-card_view_outlined{--_--border-width:1px}.g-card_type_action{--_--background-color:var(--g-color-base-float);--_--box-shadow:0px 1px 5px var(--g-color-sfx-shadow)}.g-card_type_action:after{border-radius:var(--g-card-border-radius,var(--_--border-radius));inset:0;pointer-events:none;position:absolute}.g-card_type_action.g-card_clickable{cursor:pointer;position:relative}.g-card_type_action.g-card_clickable:hover{--_--box-shadow:0px 3px 10px var(--g-color-sfx-shadow)}.g-card_type_action.g-card_clickable:focus-visible:after{content:"";outline:2px solid var(--g-color-line-focus)}.g-card_type_selection{--_--border-width:1px;--_--border-color:var(--g-color-line-generic);position:relative}.g-card_type_selection:before{inset:-1px}.g-card_type_selection:after,.g-card_type_selection:before{border-radius:var(--g-card-border-radius,var(--_--border-radius));pointer-events:none;position:absolute}.g-card_type_selection:after{inset:0}.g-card_type_selection.g-card_clickable{cursor:pointer}.g-card_type_selection.g-card_clickable:hover{--_--border-color:#0000}.g-card_type_selection.g-card_clickable:hover:not(.g-card_selected):before{border:2px solid var(--g-color-line-brand);content:"";opacity:.5}.g-card_type_selection.g-card_clickable:hover:focus-visible:before{border-color:#0000}.g-card_type_selection.g-card_clickable:focus-visible:after{content:"";outline:2px solid var(--g-color-line-focus)}.g-card_type_selection.g-card_selected:not(.g-card_disabled){--_--border-color:#0000}.g-card_type_selection.g-card_selected:not(.g-card_disabled):before{border:2px solid var(--g-color-line-brand);content:""}.g-card_type_selection.g-card_view_clear{--_--border-color:#0000}.g-card_type_container.g-card_view_raised{--_--background-color:var(--g-color-base-float)}.g-card_type_container.g-card_view_raised.g-card_size_m{--_--box-shadow:0px 1px 5px var(--g-color-sfx-shadow)}.g-card_type_container.g-card_view_raised.g-card_size_l{--_--box-shadow:0px 1px 6px var(--g-color-sfx-shadow-light),1px 3px 13px var(--g-color-sfx-shadow-light)}.g-card_size_m{--_--border-radius:8px}.g-card_size_l{--_--border-radius:16px}.g-date-relative-range-date-picker-presets-doc__button{--g-button-background-color-hover:#0000}.g-date-relative-range-date-picker-presets-doc__content{--g-popover-max-width:"none"}.g-date-relative-range-date-picker-presets-doc__table_size_xl{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-date-relative-range-date-picker-presets-doc__table>table{width:100%}.g-table,.g-table__scroll-container{overflow:auto;position:relative}.g-table__scroll-container{-ms-overflow-style:none;scrollbar-width:none}.g-table__scroll-container::-webkit-scrollbar{display:none}.g-table__horizontal-scroll-bar{margin-block-start:-1px;overflow-x:auto}.g-table__horizontal-scroll-bar-inner{height:1px;position:relative}.g-table__horizontal-scroll-bar-inner:before{background-color:#ffffff03;content:"";height:1px;inset-block-start:0;inset-inline-start:0;position:absolute;width:1px}.g-table__horizontal-scroll-bar_sticky-horizontal-scroll{position:sticky;z-index:3}.g-table__table{border-collapse:initial;border-spacing:0}.g-table__table_width_max{width:100%}.g-table__cell{border-block-end:1px solid var(--g-color-line-generic);box-sizing:initial;line-height:18px;overflow-wrap:break-word;padding:11px var(--g-spacing-2) 10px;text-align:start}.g-table__cell:first-child{padding-inline-start:0}.g-table__cell:last-child{padding-inline-end:0}.g-table__cell:not(.g-table__cell_word-wrap){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-table__cell_align_center{text-align:center}.g-table__cell_align_end{text-align:end}.g-table .g-table__cell_sticky_end,.g-table .g-table__cell_sticky_start{background:var(--g-color-base-background);position:sticky;z-index:2}.g-table__cell_border_right{border-inline-end:1px solid var(--g-color-line-generic)}.g-table__cell_edge-padding:first-child{padding-inline-start:var(--g-spacing-3)}.g-table__cell_edge-padding:last-child{padding-inline-end:var(--g-spacing-3)}.g-table__row_vertical-align_top{vertical-align:top}.g-table__row_vertical-align_middle{vertical-align:middle}.g-table__row_empty .g-table__cell{text-align:center}.g-table__body .g-table__row:last-child .g-table__cell{border-block-end-color:#0000}.g-table__head .g-table__cell{font-weight:var(--g-text-accent-font-weight)}.g-table__body .g-table__row_interactive:hover{background-color:var(--g-color-base-simple-hover-solid);cursor:pointer}.g-table__body .g-table__row_interactive:hover .g-table__cell_sticky_end,.g-table__body .g-table__row_interactive:hover .g-table__cell_sticky_start{background:var(--g-color-base-simple-hover-solid)}.g-table__body .g-table__row_disabled{opacity:.3}.g-table_with-primary .g-table__body .g-table__cell{color:var(--g-color-text-secondary)}.g-table_with-primary .g-table__body .g-table__cell_primary{color:var(--g-color-text-primary)}.g-table_with-sticky-scroll{overflow:visible}.g-date-relative-range-date-picker-presets{--g-list-item-padding:0 var(--_--g-date-picker-presets-padding,0)}.g-date-relative-range-date-picker-presets__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px var(--g-color-line-generic);display:flex;gap:var(--g-spacing-2);padding-inline:var(--_--g-date-picker-presets-padding,0)}.g-date-relative-range-date-picker-presets__list-container{outline:none}.g-date-relative-range-date-picker-presets__doc{margin-inline-start:auto}.g-date-relative-range-date-picker-presets__content{height:128px;overflow:auto}.g-date-relative-range-date-picker-presets_size_l .g-date-relative-range-date-picker-presets__content{height:144px}.g-date-relative-range-date-picker-presets_size_xl .g-date-relative-range-date-picker-presets__content{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:162px;line-height:var(--g-text-body-2-line-height)}.g-date-relative-range-date-picker-zones__control{--g-button-background-color-hover:#0000}.g-date-relative-range-date-picker-dialog__content{--_--popup-content-padding:var(--g-spacing-2);--_--g-date-picker-presets-padding:var(--_--popup-content-padding);padding:var(--_--popup-content-padding)}.g-date-relative-range-date-picker-dialog__content_mobile{--_--popup-content-padding:var(--g-spacing-5)}.g-date-relative-range-date-picker-dialog__content:not(.g-date-relative-range-date-picker-dialog__content_mobile){width:310px}.g-date-relative-range-date-picker-dialog__content_size_xl:not(.g-date-relative-range-date-picker-dialog__content_mobile){width:380px}.g-date-relative-range-date-picker-dialog__pickers{display:flex;flex-direction:column;gap:var(--g-spacing-2)}.g-date-relative-range-date-picker-dialog__pickers .g-text-input__label{width:40px}.g-date-relative-range-date-picker-dialog__content_size_xl .g-date-relative-range-date-picker-dialog__pickers .g-text-input__label{width:50px}.g-date-relative-range-date-picker-dialog__apply{margin-block-start:var(--g-spacing-2)}.g-date-relative-range-date-picker-dialog__zone{border-block-start:1px solid var(--g-color-line-generic);margin-block:var(--g-spacing-2) calc(var(--_--popup-content-padding)*-1)}.g-date-relative-range-date-picker-dialog__presets,.g-date-relative-range-date-picker-dialog__zone{margin-inline:calc(var(--_--popup-content-padding)*-1)}.g-date-mobile-calendar{border:none;box-sizing:border-box;cursor:pointer;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;min-width:100%;opacity:0;padding:0;position:absolute;z-index:1}.g-date-mobile-calendar::-webkit-calendar-picker-indicator{cursor:pointer;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;min-width:100%;padding:0;position:absolute}.g-date-stub-button{display:inline-block;height:24px;position:relative;width:24px}.g-date-stub-button_size_xs{height:20px;width:20px}.g-date-stub-button_size_m{height:28px;width:28px}.g-date-stub-button_size_l{height:36px;width:36px}.g-date-stub-button__icon{align-items:center;color:var(--g-color-text-secondary);display:flex;inset:0;justify-content:center;position:absolute}.g-date-relative-date-picker{display:inline-flex;outline:none;position:relative}.g-date-relative-date-picker__input_mobile{pointer-events:none}.g-date-relative-date-picker__field{width:100%}.g-date-relative-date-picker__popup-content{outline:none}.g-date-relative-date-picker__time-field{width:100%}.g-date-relative-date-picker__time-field-wrapper{padding:10px}.g-date-calendar{--_--calendar-padding:var(--g-date-calendar-padding,8px);--_--calendar-day-size:var(--g-date-calendar-day-size,28px);--_--calendar-days-gap:var(--g-date-calendar-days-gap,2px);--_--calendar-width:calc(var(--_--calendar-day-size)*7 + var(--_--calendar-days-gap)*6 + var(--_--calendar-padding)*2);--_--calendar-grid-height:calc(var(--_--calendar-day-size)*7 + var(--_--calendar-days-gap)*5 + var(--_--calendar-padding));display:inline-block;width:var(--_--calendar-width)}.g-date-calendar_size_l{--g-date-calendar-day-size:36px}.g-date-calendar_size_xl{--g-date-calendar-day-size:42px;font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-date-calendar__header{display:flex;padding:var(--_--calendar-padding) var(--_--calendar-padding) 0}.g-date-calendar__years-label{color:var(--g-color-text-secondary)}.g-date-calendar__controls{margin-inline-start:auto}.g-date-calendar__control-icon{transform:scaleX(var(--g-flow-direction))}.g-date-calendar__grid{height:var(--_--calendar-grid-height);overflow:hidden;position:relative;-webkit-user-select:none;user-select:none;width:100%}.g-date-calendar__content{box-sizing:border-box;display:grid;grid-template-rows:var(--_--calendar-day-size) 1fr;height:100%;inset-block-start:0;inset-inline-start:0;padding:0 var(--_--calendar-padding) var(--_--calendar-padding);position:absolute;width:100%}@keyframes calendar-forward{0%{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes calendar-backward{0%{transform:translateX(0)}to{transform:translateX(-100%)}}@keyframes calendar-zoom-in-showing{0%{opacity:0;transform:scale(2)}to{opacity:1;transform:scale(1)}}@keyframes calendar-zoom-in-hiding{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes calendar-zoom-out-showing{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes calendar-zoom-out-hiding{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.g-date-calendar__content_animation_forward{animation:calendar-forward .25s ease forwards;transform:translateX(-100%)}.g-date-calendar__content_animation_forward.g-date-calendar__current-state{inset-inline-start:calc(var(--g-flow-direction)*-100%)}.g-date-calendar__content_animation_backward{animation:calendar-backward .25s ease forwards;transform:translateX(0)}.g-date-calendar__content_animation_backward.g-date-calendar__current-state{inset-inline-start:calc(var(--g-flow-direction)*100%)}.g-date-calendar__content_animation_zoom-in{transform:scale()}.g-date-calendar__content_animation_zoom-in.g-date-calendar__previous-state{animation:calendar-zoom-in-hiding .25s ease forwards}.g-date-calendar__content_animation_zoom-in.g-date-calendar__current-state{animation:calendar-zoom-in-showing .25s ease forwards}.g-date-calendar__content_animation_zoom-out{transform:scale()}.g-date-calendar__content_animation_zoom-out.g-date-calendar__current-state{animation:calendar-zoom-out-showing .25s ease forwards}.g-date-calendar__content_animation_zoom-out.g-date-calendar__previous-state{animation:calendar-zoom-out-hiding .25s ease forwards}@media (update:slow),screen and (prefers-reduced-motion:reduce){.g-date-calendar__content[class]{animation-duration:.001ms}}.g-date-calendar__grid-rowgroup{display:grid;gap:var(--_--calendar-days-gap)}.g-date-calendar__grid-rowgroup_mode_months,.g-date-calendar__grid-rowgroup_mode_quarters,.g-date-calendar__grid-rowgroup_mode_years{grid-row:1/-1;padding:12px 0 0}.g-date-calendar__grid-rowgroup-header{align-self:center}.g-date-calendar__grid-row{display:grid;gap:var(--_--calendar-days-gap);grid-auto-columns:1fr;grid-auto-flow:column}.g-date-calendar__weekday{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.g-date-calendar__weekday_weekend{color:var(--g-color-text-danger)}.g-date-calendar__button{align-items:center;border-radius:4px;cursor:pointer;display:flex;font-weight:var(--g-text-subheader-font-weight);height:100%;justify-content:center;outline:none;position:relative;width:100%}.g-date-calendar__button:focus{box-shadow:0 0 0 2px var(--g-color-line-misc)}.g-date-calendar__button:focus:not(:focus-visible){box-shadow:none}.g-date-calendar__button:hover{background-color:var(--g-color-base-generic)}.g-date-calendar__button_selected[class]{background-color:var(--g-color-base-selection)}.g-date-calendar__button_selected.g-date-calendar__button_selection-end,.g-date-calendar__button_selected.g-date-calendar__button_selection-start{background-color:var(--g-color-base-brand)}.g-date-calendar__button_weekend{color:var(--g-color-text-danger)}.g-date-calendar__button_out-of-boundary{font-weight:var(--g-text-body-font-weight);opacity:.6}.g-date-calendar__button_current:before{background-color:var(--g-color-text-primary);border-radius:50%;content:"";display:block;height:4px;inset-block-start:50%;position:absolute;transform:translateY(8px);width:4px}.g-date-calendar__button_disabled{font-weight:var(--g-text-body-font-weight);opacity:.6;pointer-events:none}.g-date-calendar__button_unavailable:not(.g-date-calendar__button_disabled){background-color:var(--g-color-base-generic);cursor:default;font-weight:var(--g-text-body-font-weight);opacity:.5}.g-date-date-field{display:inline-block;width:auto}.g-date-relative-range-date-picker{display:inline-flex;position:relative}.g-date-relative-range-date-picker__input{caret-color:#0000}.g-date-relative-range-date-picker__input_mobile{pointer-events:none}.g-date-relative-range-date-picker__mobile-trigger{--_--g-date-mobile-trigger-clear-width:0px;--_--g-date-mobile-trigger-errors-width:0px;--_--g-date-mobile-trigger-button-width:24px;inset:0;inset-inline-end:calc(var(--g-spacing-2) + var(--_--g-date-mobile-trigger-button-width) + var(--_--g-date-mobile-trigger-clear-width) + var(--_--g-date-mobile-trigger-errors-width));opacity:0;position:absolute}.g-date-relative-range-date-picker__mobile-trigger_size_s{--_--g-date-mobile-trigger-button-width:20px}.g-date-relative-range-date-picker__mobile-trigger_size_l{--_--g-date-mobile-trigger-button-width:28px}.g-date-relative-range-date-picker__mobile-trigger_size_xl{--_--g-date-mobile-trigger-button-width:36px}.g-date-relative-range-date-picker__mobile-trigger_has-clear{--_--g-date-mobile-trigger-clear-width:calc(var(--_--g-date-mobile-trigger-button-width) + 2px)}.g-date-relative-range-date-picker__mobile-trigger_has-errors{--_--g-date-mobile-trigger-errors-width:calc(var(--_--g-date-mobile-trigger-button-width) + 2px)}.g-date-relative-range-date-picker__value-label{display:flex;width:100%}.g-date-relative-range-date-picker__value-label>div{flex:1 0}.g-date-relative-range-date-picker__value-label-content{display:flex;flex-direction:column}.g-date-relative-range-date-picker__value-label-tooltip{--g-popover-max-width:"none"}.g-date-relative-range-date-picker__value-label-item,.g-date-relative-range-date-picker__value-label-to,.g-date-relative-range-date-picker__value-label-tz{text-align:center}.g-date-relative-range-date-picker__value-label-tz{color:var(--g-color-text-hint);margin-block-start:5px}.g-tooltip[class]{--g-popup-border-width:0}.g-tooltip[class]>div{animation-duration:1ms;box-shadow:0 1px 5px 0 #00000026;box-sizing:border-box;max-width:360px;padding:4px 8px}.g-tooltip__content{-webkit-box-orient:vertical;-ms-box-orient:vertical;-webkit-line-clamp:20;-moz-line-clamp:20;-ms-line-clamp:20;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.g-spin{animation:g-spin 1s linear infinite;backface-visibility:hidden;display:inline-block}.g-spin__inner{border:2px solid var(--g-color-line-brand);border-end-end-radius:25px;border-inline-start:none;border-start-end-radius:25px;box-sizing:border-box;height:100%;margin-inline-start:50%;width:50%}.g-spin_size_xs{height:16px;width:16px}.g-spin_size_s{height:24px;width:24px}.g-spin_size_m{height:28px;width:28px}.g-spin_size_l{height:32px;width:32px}.g-spin_size_xl{height:36px;width:36px}@keyframes g-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.g-alert_corners_square{--g-card-border-radius:0}.g-alert__text-content{width:100%}.g-alert__actions_minContent{width:min-content}.g-alert__close-btn{flex-shrink:0}.monaco-aria-container{left:-999em;position:absolute}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border);box-sizing:border-box}.inline-editor-progress-decoration{display:inline-block;height:1em;width:1em}.inline-progress-widget{align-items:center;display:flex!important;justify-content:center}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{animation:none;font-size:90%!important}.inline-progress-widget:hover .icon:before{content:"\ea76"}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground);padding:2px 4px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-block:0}.monaco-editor .monaco-editor-overlaymessage .message a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-editor-overlaymessage .message a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{border:8px solid #0000;height:0!important;left:2px;position:absolute;width:0!important;z-index:1000}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage.below .anchor.below,.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-radius:3px;border-style:solid;border-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground);padding:1px 3px;vertical-align:middle}.rendered-markdown li:has(input[type=checkbox]){list-style-type:none}.monaco-text-button{align-items:center;border:1px solid var(--vscode-button-border,#0000);border-radius:2px;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;line-height:18px;padding:4px;text-align:center;width:100%}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled,.monaco-button.disabled:focus{cursor:default;opacity:.4!important}.monaco-text-button .codicon{color:inherit!important;margin:0 .2em}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;height:28px;overflow:hidden;padding:0 4px}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label{flex-basis:100%}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;overflow:hidden;width:0}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{align-items:center;display:flex;font-style:inherit;font-weight:400;justify-content:center;padding:4px 0}.monaco-button-dropdown{cursor:pointer;display:flex}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator,.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{cursor:default;padding:4px 0}.monaco-button-dropdown .monaco-button-dropdown-separator>div{height:100%;width:1px}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{align-items:center;border:1px solid var(--vscode-button-border,#0000);border-left-width:0!important;border-radius:0 2px 2px 0;display:flex}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{align-items:center;display:flex;flex-direction:column;margin:4px 5px}.monaco-description-button .monaco-button-description{font-size:11px;font-style:italic;padding:4px 20px}.monaco-description-button .monaco-button-description,.monaco-description-button .monaco-button-label{align-items:center;display:flex;justify-content:center}.monaco-description-button .monaco-button-description>.codicon,.monaco-description-button .monaco-button-label>.codicon{color:inherit!important;margin:0 .2em}.monaco-button-dropdown.default-colors>.monaco-button,.monaco-button.default-colors{background-color:var(--vscode-button-background);color:var(--vscode-button-foreground)}.monaco-button-dropdown.default-colors>.monaco-button:hover,.monaco-button.default-colors:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-button-dropdown.default-colors>.monaco-button.secondary,.monaco-button.default-colors.secondary{background-color:var(--vscode-button-secondaryBackground);color:var(--vscode-button-secondaryForeground)}.monaco-button-dropdown.default-colors>.monaco-button.secondary:hover,.monaco-button.default-colors.secondary:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator{background-color:var(--vscode-button-background);border-bottom:1px solid var(--vscode-button-border);border-top:1px solid var(--vscode-button-border)}.monaco-button-dropdown.default-colors .monaco-button.secondary+.monaco-button-dropdown-separator{background-color:var(--vscode-button-secondaryBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator>div{background-color:var(--vscode-button-separator)}.post-edit-widget{background-color:var(--vscode-editorWidget-background);border:1px solid var(--vscode-widget-border,#0000);border-radius:4px;box-shadow:0 0 8px 2px var(--vscode-widget-shadow);overflow:hidden}.post-edit-widget .monaco-button{border:none;border-radius:0;padding:2px}.post-edit-widget .monaco-button:hover{background-color:var(--vscode-button-secondaryHoverBackground)!important}.post-edit-widget .monaco-button .codicon{margin:0}@font-face{font-display:block;font-family:codicon;src:url(../../static/media/codicon.762fced46d6cddbda272.ttf) format("truetype")}.codicon[class*=codicon-]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font:normal normal normal 16px/1 codicon;text-align:center;text-decoration:none;text-rendering:auto;text-transform:none;user-select:none;-webkit-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(1turn)}}.codicon-gear.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin,.codicon-sync.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.monaco-editor .codicon.codicon-symbol-array,.monaco-workbench .codicon.codicon-symbol-array{color:var(--vscode-symbolIcon-arrayForeground)}.monaco-editor .codicon.codicon-symbol-boolean,.monaco-workbench .codicon.codicon-symbol-boolean{color:var(--vscode-symbolIcon-booleanForeground)}.monaco-editor .codicon.codicon-symbol-class,.monaco-workbench .codicon.codicon-symbol-class{color:var(--vscode-symbolIcon-classForeground)}.monaco-editor .codicon.codicon-symbol-method,.monaco-workbench .codicon.codicon-symbol-method{color:var(--vscode-symbolIcon-methodForeground)}.monaco-editor .codicon.codicon-symbol-color,.monaco-workbench .codicon.codicon-symbol-color{color:var(--vscode-symbolIcon-colorForeground)}.monaco-editor .codicon.codicon-symbol-constant,.monaco-workbench .codicon.codicon-symbol-constant{color:var(--vscode-symbolIcon-constantForeground)}.monaco-editor .codicon.codicon-symbol-constructor,.monaco-workbench .codicon.codicon-symbol-constructor{color:var(--vscode-symbolIcon-constructorForeground)}.monaco-editor .codicon.codicon-symbol-enum,.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-value{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .codicon.codicon-symbol-enum-member,.monaco-workbench .codicon.codicon-symbol-enum-member{color:var(--vscode-symbolIcon-enumeratorMemberForeground)}.monaco-editor .codicon.codicon-symbol-event,.monaco-workbench .codicon.codicon-symbol-event{color:var(--vscode-symbolIcon-eventForeground)}.monaco-editor .codicon.codicon-symbol-field,.monaco-workbench .codicon.codicon-symbol-field{color:var(--vscode-symbolIcon-fieldForeground)}.monaco-editor .codicon.codicon-symbol-file,.monaco-workbench .codicon.codicon-symbol-file{color:var(--vscode-symbolIcon-fileForeground)}.monaco-editor .codicon.codicon-symbol-folder,.monaco-workbench .codicon.codicon-symbol-folder{color:var(--vscode-symbolIcon-folderForeground)}.monaco-editor .codicon.codicon-symbol-function,.monaco-workbench .codicon.codicon-symbol-function{color:var(--vscode-symbolIcon-functionForeground)}.monaco-editor .codicon.codicon-symbol-interface,.monaco-workbench .codicon.codicon-symbol-interface{color:var(--vscode-symbolIcon-interfaceForeground)}.monaco-editor .codicon.codicon-symbol-key,.monaco-workbench .codicon.codicon-symbol-key{color:var(--vscode-symbolIcon-keyForeground)}.monaco-editor .codicon.codicon-symbol-keyword,.monaco-workbench .codicon.codicon-symbol-keyword{color:var(--vscode-symbolIcon-keywordForeground)}.monaco-editor .codicon.codicon-symbol-module,.monaco-workbench .codicon.codicon-symbol-module{color:var(--vscode-symbolIcon-moduleForeground)}.monaco-editor .codicon.codicon-symbol-namespace,.monaco-workbench .codicon.codicon-symbol-namespace{color:var(--vscode-symbolIcon-namespaceForeground)}.monaco-editor .codicon.codicon-symbol-null,.monaco-workbench .codicon.codicon-symbol-null{color:var(--vscode-symbolIcon-nullForeground)}.monaco-editor .codicon.codicon-symbol-number,.monaco-workbench .codicon.codicon-symbol-number{color:var(--vscode-symbolIcon-numberForeground)}.monaco-editor .codicon.codicon-symbol-object,.monaco-workbench .codicon.codicon-symbol-object{color:var(--vscode-symbolIcon-objectForeground)}.monaco-editor .codicon.codicon-symbol-operator,.monaco-workbench .codicon.codicon-symbol-operator{color:var(--vscode-symbolIcon-operatorForeground)}.monaco-editor .codicon.codicon-symbol-package,.monaco-workbench .codicon.codicon-symbol-package{color:var(--vscode-symbolIcon-packageForeground)}.monaco-editor .codicon.codicon-symbol-property,.monaco-workbench .codicon.codicon-symbol-property{color:var(--vscode-symbolIcon-propertyForeground)}.monaco-editor .codicon.codicon-symbol-reference,.monaco-workbench .codicon.codicon-symbol-reference{color:var(--vscode-symbolIcon-referenceForeground)}.monaco-editor .codicon.codicon-symbol-snippet,.monaco-workbench .codicon.codicon-symbol-snippet{color:var(--vscode-symbolIcon-snippetForeground)}.monaco-editor .codicon.codicon-symbol-string,.monaco-workbench .codicon.codicon-symbol-string{color:var(--vscode-symbolIcon-stringForeground)}.monaco-editor .codicon.codicon-symbol-struct,.monaco-workbench .codicon.codicon-symbol-struct{color:var(--vscode-symbolIcon-structForeground)}.monaco-editor .codicon.codicon-symbol-text,.monaco-workbench .codicon.codicon-symbol-text{color:var(--vscode-symbolIcon-textForeground)}.monaco-editor .codicon.codicon-symbol-type-parameter,.monaco-workbench .codicon.codicon-symbol-type-parameter{color:var(--vscode-symbolIcon-typeParameterForeground)}.monaco-editor .codicon.codicon-symbol-unit,.monaco-workbench .codicon.codicon-symbol-unit{color:var(--vscode-symbolIcon-unitForeground)}.monaco-editor .codicon.codicon-symbol-variable,.monaco-workbench .codicon.codicon-symbol-variable{color:var(--vscode-symbolIcon-variableForeground)}.monaco-editor .lightBulbWidget{align-items:center;display:flex;justify-content:center}.monaco-editor .lightBulbWidget:hover{cursor:pointer}.monaco-editor .lightBulbWidget.codicon-light-bulb,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground,var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget.codicon-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground,var(--vscode-icon-foreground))}.monaco-editor .lightBulbWidget:before{position:relative;z-index:2}.monaco-editor .lightBulbWidget:after{background-color:var(--vscode-editor-background);content:"";display:block;height:100%;left:0;opacity:.3;position:absolute;top:0;width:100%;z-index:1}.monaco-list{height:100%;position:relative;white-space:nowrap;width:100%}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{height:100%;position:relative;width:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{min-width:100%;width:auto}.monaco-list-row{box-sizing:border-box;overflow:hidden;position:absolute;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list .monaco-scrollable-element>.scrollbar.vertical,.monaco-pane-view>.monaco-split-view2.vertical>.monaco-scrollable-element>.scrollbar.vertical{z-index:14}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-multiple,.monaco-list.selection-single{outline:0!important}.monaco-drag-image{border-radius:10px;display:inline-block;font-size:12px;padding:1px 7px;position:absolute;z-index:1000}.monaco-list-type-filter-message{box-sizing:border-box;height:100%;left:0;opacity:.7;padding:40px 1em 1em;pointer-events:none;position:absolute;text-align:center;top:0;white-space:normal;width:100%}.monaco-list-type-filter-message:empty{display:none}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{background:#0000;opacity:1;transition:opacity .1s linear;z-index:11}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{display:none;position:absolute}.monaco-scrollable-element>.shadow.top{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;display:block;height:3px;left:3px;top:0;width:100%}.monaco-scrollable-element>.shadow.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset;display:block;height:100%;left:0;top:3px;width:3px}.monaco-scrollable-element>.shadow.top-left-corner{display:block;height:3px;left:0;top:0;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.scrollbar>.slider{background:var(--vscode-scrollbarSlider-background)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-scrollable-element>.scrollbar>.slider.active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-select-box-dropdown-padding{--dropdown-padding-top:1px;--dropdown-padding-bottom:1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top:3px;--dropdown-padding-bottom:4px}.monaco-select-box-dropdown-container{box-sizing:border-box;display:none}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown *{margin:0}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{font-family:var(--monaco-monospace-font);line-height:15px}.monaco-select-box-dropdown-container.visible{border-bottom-left-radius:3px;border-bottom-right-radius:3px;display:flex;flex-direction:column;overflow:hidden;text-align:left;width:1px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{align-self:flex-start;box-sizing:border-box;flex:0 0 auto;overflow:hidden;padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;padding-top:var(--dropdown-padding-top);width:100%}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-bottom:var(--dropdown-padding-bottom);padding-top:var(--dropdown-padding-top)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row{cursor:pointer}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{float:left;overflow:hidden;padding-left:3.5px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{float:left;opacity:.7;overflow:hidden;padding-left:3.5px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{float:right;overflow:hidden;padding-right:10px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{height:1px;left:-10000px;overflow:hidden;position:absolute;top:auto;width:1px}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{align-self:flex-start;flex:1 1 auto;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{max-height:0;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div>.option-text-width-control{padding-left:4px;padding-right:8px;white-space:nowrap}.monaco-select-box{border-radius:2px;cursor:pointer;width:100%}.monaco-select-box-dropdown-container{font-size:13px;font-weight:400;text-transform:none}.monaco-action-bar .action-item.select-container{cursor:default}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-height:18px;min-width:100px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{border-radius:5px;font-size:11px}.monaco-action-bar{height:100%;white-space:nowrap}.monaco-action-bar .actions-container{align-items:center;display:flex;height:100%;margin:0 auto;padding:0;width:100%}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{align-items:center;cursor:pointer;display:block;justify-content:center;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .codicon,.monaco-action-bar .action-item .icon{display:block}.monaco-action-bar .action-item .codicon{align-items:center;display:flex;height:16px;width:16px}.monaco-action-bar .action-label{border-radius:5px;display:flex;font-size:11px;padding:3px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{color:var(--vscode-disabledForeground)}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #bbb;display:block;margin-left:.8em;margin-right:.8em;padding-top:1px}.monaco-action-bar .action-item .action-label.separator{background-color:#bbb;cursor:default;height:16px;margin:5px 4px!important;min-width:1px;padding:0;width:1px}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{align-items:center;display:flex;flex:1 1;justify-content:center;margin-right:10px;max-width:170px;min-width:60px;overflow:hidden}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{align-items:center;cursor:default;display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.action-widget{background-color:var(--vscode-editorWidget-background);border:1px solid var(--vscode-editorWidget-border)!important;border-radius:0;border-radius:2px;color:var(--vscode-editorWidget-foreground);display:block;font-size:13px;max-width:80vw;min-width:160px;width:100%;z-index:40}.context-view-block{z-index:-1}.context-view-block,.context-view-pointerBlock{cursor:auto;height:100%;left:0;position:fixed;top:0;width:100%}.context-view-pointerBlock{z-index:2}.action-widget .monaco-list{border:0!important;user-select:none;-webkit-user-select:none}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{cursor:pointer;padding:0 10px;touch-action:none;white-space:nowrap;width:100%}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){background-color:var(--vscode-quickInputList-focusBackground)!important;color:var(--vscode-quickInputList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder,#0000);outline-offset:-1px}.action-widget .monaco-list-row.group-header{color:var(--vscode-descriptionForeground)!important;font-weight:600}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before,.action-widget .monaco-list .option-disabled:before{-webkit-touch-callout:none;background-color:initial!important;cursor:default!important;outline:0 solid!important;-webkit-user-select:none;user-select:none}.action-widget .monaco-list-row.action{align-items:center;display:flex;gap:6px}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{flex:1 1;overflow:hidden;text-overflow:ellipsis}.action-widget .monaco-list-row.action .monaco-keybinding>.monaco-keybinding-key{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-radius:3px;border-style:solid;border-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground)}.action-widget .action-widget-action-bar{background-color:var(--vscode-editorHoverWidget-statusBarBackground);border-top:1px solid var(--vscode-editorHoverWidget-border)}.action-widget .action-widget-action-bar:before{content:"";display:block;width:100%}.action-widget .action-widget-action-bar .actions-container{padding:0 8px}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);font-size:12px;line-height:22px;padding:0;pointer-events:all}.action-widget-action-bar .action-item{margin-right:16px;pointer-events:none}.action-widget-action-bar .action-label:hover{background-color:initial!important}.monaco-action-bar .actions-container.highlight-toggled .action-label.checked{background:var(--vscode-actionBar-toggledBackground)!important}.monaco-keybinding{align-items:center;display:flex;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{border-radius:3px;border-style:solid;border-width:1px;display:inline-block;font-size:11px;margin:0 2px;padding:3px 5px;vertical-align:middle}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);overflow:visible;position:relative}.monaco-editor,.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);border:1px solid var(--vscode-editor-rangeHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);border:1px solid var(--vscode-editor-symbolHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{overflow:hidden;position:relative}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .margin-view-overlays>div,.monaco-editor .view-overlays>div{position:absolute;width:100%}.monaco-editor .margin-view-overlays>div>div,.monaco-editor .view-overlays>div>div{bottom:0}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{background:var(--vscode-editorError-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{background:var(--vscode-editorWarning-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{background:var(--vscode-editorInfo-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-hint{border-bottom:2px dotted var(--vscode-editorHint-border)}.monaco-editor.showUnused .squiggly-unnecessary{border-bottom:2px dashed var(--vscode-editorUnnecessaryCode-border)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;text-decoration-color:var(--vscode-editor-foreground,inherit)}.monaco-editor .inputarea{background-color:initial;border:none;color:#0000;margin:0;min-height:0;min-width:0;outline:none!important;overflow:hidden;padding:0;position:absolute;resize:none;z-index:-10}.monaco-editor .inputarea.ime-input{caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground);z-index:10}.monaco-editor .margin-view-overlays .line-numbers{font-feature-settings:"tnum";bottom:0;box-sizing:border-box;cursor:default;display:inline-block;font-variant-numeric:tabular-nums;position:absolute;text-align:right;vertical-align:middle}.monaco-editor .relative-current-line-number{display:inline-block;text-align:left;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground)}.monaco-editor .line-numbers.active-line-number{color:var(--vscode-editorLineNumber-activeForeground)}.monaco-editor .margin{background-color:var(--vscode-editorGutter-background)}.monaco-mouse-cursor-text{cursor:text}.monaco-editor .blockDecorations-container{pointer-events:none;position:absolute;top:0}.monaco-editor .blockDecorations-block{box-sizing:border-box;position:absolute}.monaco-editor .margin-view-overlays .current-line,.monaco-editor .view-overlays .current-line{box-sizing:border-box;display:block;height:100%;left:0;position:absolute;top:0}.monaco-editor - .margin-view-overlays - .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{height:100%;position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .glyph-margin-widgets .cgmr{align-items:center;display:flex;justify-content:center;position:absolute}.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin:before{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.monaco-editor .lines-content .core-guide{box-sizing:border-box;height:100%;position:absolute}.mtkcontrol{background:#960000!important;color:#fff!important}.mtkoverflow{background-color:var(--vscode-button-background,var(--vscode-editor-background));border-color:var(--vscode-contrastBorder);border-radius:2px;border-style:solid;border-width:1px;color:var(--vscode-button-foreground,var(--vscode-editor-foreground));cursor:pointer;padding:4px}.mtkoverflow:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none;-webkit-user-select:none}.monaco-editor.mac .lines-content:hover,.monaco-editor.mac .view-line:hover,.monaco-editor.mac .view-lines:hover{user-select:text;-webkit-user-select:text;-ms-user-select:text}.monaco-editor.enable-user-select{user-select:auto;-webkit-user-select:initial}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .lines-content>.view-lines>.view-line>span{bottom:0;position:absolute;top:0}.monaco-editor .mtkw,.monaco-editor .mtkz{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{background:#fff;position:absolute;top:0}.monaco-editor .margin-view-overlays .cldr{height:100%;position:absolute}.monaco-editor .margin-view-overlays .cmdr{height:100%;left:0;position:absolute;width:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover .minimap-slider.active,.monaco-editor .minimap.slider-mouseover:hover .minimap-slider{opacity:1}.monaco-editor .minimap-slider .minimap-slider-horizontal{background:var(--vscode-minimapSlider-background)}.monaco-editor .minimap-slider:hover .minimap-slider-horizontal{background:var(--vscode-minimapSlider-hoverBackground)}.monaco-editor .minimap-slider.active .minimap-slider-horizontal{background:var(--vscode-minimapSlider-activeBackground)}.monaco-editor .minimap-shadow-visible{box-shadow:var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{left:-6px;position:absolute;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{left:-1px;position:absolute;width:1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .minimap{z-index:5}.monaco-editor .overlayWidgets{left:0;position:absolute;top:0}.monaco-editor .view-ruler{box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset;position:absolute;top:0}.monaco-editor .scroll-decoration{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;height:6px;left:0;position:absolute;top:0}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .focused .selected-text{background-color:var(--vscode-editor-selectionBackground)}.monaco-editor .selected-text{background-color:var(--vscode-editor-inactiveSelectionBackground)}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor.hc-light .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-light .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-light .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-light .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{box-sizing:border-box;overflow:hidden;position:absolute}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{background:#0000!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{background:#0000!important;border-bottom-style:solid;border-bottom-width:2px}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{background:#0000!important;border-bottom-style:solid;border-bottom-width:1px}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-editor .mwh{color:var(--vscode-editorWhitespace-foreground)!important;position:absolute}.monaco-editor .codelens-decoration{font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);color:var(--vscode-editorCodeLens-foreground);display:inline-block;font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);overflow:hidden;padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);text-overflow:ellipsis;white-space:nowrap}.monaco-editor .codelens-decoration>a,.monaco-editor .codelens-decoration>span{user-select:none;-webkit-user-select:none;vertical-align:sub;white-space:nowrap}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer}.monaco-editor .codelens-decoration>a:hover,.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);vertical-align:middle}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.colorpicker-widget{height:190px;user-select:none;-webkit-user-select:none}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{border:.1em solid #000;box-sizing:border-box;cursor:pointer;display:inline-block;height:.8em;line-height:.8em;margin:.1em .2em 0;width:.8em}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:.1em solid #eee}.colorpicker-header{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;display:flex;height:24px;image-rendering:pixelated;position:relative}.colorpicker-header .picked-color{align-items:center;color:#fff;cursor:pointer;display:flex;flex:1 1;justify-content:center;line-height:24px;overflow:hidden;white-space:nowrap;width:240px}.colorpicker-header .picked-color .picked-color-presentation{margin-left:5px;margin-right:5px;white-space:nowrap}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{cursor:pointer;width:74px;z-index:inherit}.standalone-colorpicker{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border);cursor:pointer}.colorpicker-header .close-button-inner-div{height:100%;text-align:center;width:100%}.colorpicker-header .close-button-inner-div:hover{background-color:var(--vscode-toolbar-hoverBackground)}.colorpicker-header .close-icon{padding:3px}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{flex:1 1;height:150px;min-width:220px;overflow:hidden;position:relative}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{border:1px solid #fff;border-radius:100%;box-shadow:0 0 2px #000c;height:9px;margin:-5px 0 0 -5px;position:absolute;width:9px}.colorpicker-body .strip{height:150px;width:25px}.colorpicker-body .standalone-strip{height:122px;width:25px}.colorpicker-body .hue-strip{background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);cursor:grab;margin-left:8px;position:relative}.colorpicker-body .opacity-strip{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;cursor:grab;image-rendering:pixelated;margin-left:8px;position:relative}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{border:1px solid #ffffffb5;box-shadow:0 0 1px #000000d9;box-sizing:border-box;height:4px;left:-2px;position:absolute;top:0;width:calc(100% + 4px)}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.colorpicker-body .standalone-strip .standalone-overlay{height:122px;pointer-events:none}.standalone-colorpicker-body{border:1px solid #0000;border-bottom:1px solid var(--vscode-editorHoverWidget-border);display:block;overflow:hidden}.colorpicker-body .insert-button{background:var(--vscode-button-background);border:none;border-radius:2px;bottom:8px;color:var(--vscode-button-foreground);cursor:pointer;height:20px;padding:0;position:absolute;right:8px;width:58px}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor .goto-definition-link{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer;text-decoration:underline}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;flex-wrap:nowrap;justify-content:space-between}.monaco-editor .peekview-widget .head .peekview-title{align-items:baseline;display:flex;font-size:13px;margin-left:20px;min-width:0;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename,.monaco-editor .peekview-widget .head .peekview-title .meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1 1;padding-right:2px;text-align:right}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{align-self:center;margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}:root{--vscode-sash-size:4px;--vscode-sash-hover-size:4px}.monaco-sash{position:absolute;touch-action:none;z-index:35}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;height:100%;top:0;width:var(--vscode-sash-size)}.monaco-sash.horizontal{cursor:ns-resize;height:var(--vscode-sash-size);left:0;width:100%}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";cursor:all-scroll;display:block;height:calc(var(--vscode-sash-size)*2);position:absolute;width:calc(var(--vscode-sash-size)*2);z-index:100}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-.5);top:calc(var(--vscode-sash-size)*-1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{bottom:calc(var(--vscode-sash-size)*-1);left:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{right:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash:before{background:#0000;content:"";height:100%;pointer-events:none;position:absolute;width:100%}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.active:before,.monaco-sash.hover:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{left:calc(50% - var(--vscode-sash-hover-size)/2);width:var(--vscode-sash-hover-size)}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - var(--vscode-sash-hover-size)/2)}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:cyan}.monaco-sash.debug.disabled{background:#0ff3}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-bottom-style:solid;border-bottom-width:0;border-top-style:solid;border-top-width:0;position:relative}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{border-radius:5px;display:flex!important;flex-direction:row}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;line-height:16px;margin-left:-3px;padding-left:0;padding-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-action-bar .action-item.menu-entry .action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;height:16px;width:16px}.monaco-dropdown-with-default{border-radius:5px;display:flex!important;flex-direction:row}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;height:16px;width:16px}.monaco-dropdown-with-default:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;line-height:16px;margin-left:-3px;padding-left:0;padding-right:0}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-split-view2{height:100%;position:relative;width:100%}.monaco-split-view2>.sash-container{height:100%;pointer-events:none;position:absolute;width:100%}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:auto}.monaco-split-view2>.monaco-scrollable-element{height:100%;width:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{height:100%;position:relative;white-space:nowrap;width:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{position:absolute;white-space:normal}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{background-color:var(--separator-border);content:" ";left:0;pointer-events:none;position:absolute;top:0;z-index:5}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;white-space:nowrap;width:100%}.monaco-table>.monaco-split-view2{border-bottom:1px solid #0000}.monaco-table>.monaco-list{flex:1 1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{font-weight:700;height:100%;overflow:hidden;text-overflow:ellipsis;width:100%}.monaco-table-td,.monaco-table-th{box-sizing:border-box;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{border-left:1px solid #0000;content:"";left:calc(var(--vscode-sash-size)/2);position:absolute;width:0}.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2,.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-custom-toggle{border:1px solid #0000;border-radius:3px;box-sizing:border-box;cursor:pointer;float:left;height:20px;margin-left:2px;overflow:hidden;padding:1px;user-select:none;-webkit-user-select:none;width:20px}.monaco-custom-toggle:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{background-size:16px!important;border:1px solid #0000;border-radius:3px;height:18px;margin-left:0;margin-right:9px;opacity:1;padding:0;width:18px}.monaco-action-bar .checkbox-action-item{align-items:center;display:flex}.monaco-action-bar .checkbox-action-item>.monaco-custom-toggle.monaco-checkbox{margin-right:4px}.monaco-action-bar .checkbox-action-item>.checkbox-label{font-size:12px}.monaco-custom-toggle.monaco-checkbox:not(.checked):before{visibility:hidden}.monaco-inputbox{border-radius:2px;box-sizing:border-box;display:block;font-size:inherit;padding:0;position:relative}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{height:100%;position:relative;width:100%}.monaco-inputbox>.ibwrapper>.input{border:none;box-sizing:border-box;color:inherit;display:inline-block;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;resize:none;width:100%}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;outline:none;scrollbar-width:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{word-wrap:break-word;box-sizing:border-box;display:inline-block;left:0;position:absolute;top:0;visibility:hidden;white-space:pre-wrap;width:100%}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{word-wrap:break-word;box-sizing:border-box;display:inline-block;font-size:12px;line-height:17px;margin-top:-1px;overflow:hidden;padding:.4em;text-align:left;width:100%}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;height:16px;width:16px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;right:2px;top:3px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.hc-light .monaco-findInput.highlight-0 .controls,.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.hc-light .monaco-findInput.highlight-1 .controls,.monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:#fdff00cc}to{background:#0000}}@keyframes monaco-findInput-highlight-1{0%{background:#fdff00cc}99%{background:#0000}}@keyframes monaco-findInput-highlight-dark-0{0%{background:#ffffff70}to{background:#0000}}@keyframes monaco-findInput-highlight-dark-1{0%{background:#ffffff70}99%{background:#0000}}.monaco-tl-row{align-items:center;display:flex;height:100%;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{height:100%;left:16px;pointer-events:none;position:absolute;top:0}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{border-left:1px solid #0000;box-sizing:border-box;display:inline-block;height:100%}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-contents,.monaco-tl-twistie{height:100%}.monaco-tl-twistie{align-items:center;display:flex!important;flex-shrink:0;font-size:10px;justify-content:center;padding-right:6px;text-align:right;transform:translateX(3px);width:16px}.monaco-tl-contents{flex:1 1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.monaco-tree-type-filter{border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;display:flex;margin:0 6px;max-width:200px;padding:3px;position:absolute;top:0;z-index:100}.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter{transition:top .3s}.monaco-tree-type-filter.disabled{top:-40px!important}.monaco-tree-type-filter-grab{align-items:center;cursor:grab;display:flex!important;justify-content:center;margin-right:2px}.monaco-tree-type-filter-grab.grabbing{cursor:grabbing}.monaco-tree-type-filter-input{flex:1 1}.monaco-tree-type-filter-input .monaco-inputbox{height:23px}.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.input,.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.mirror{padding:2px 4px}.monaco-tree-type-filter-input .monaco-findInput>.controls{top:2px}.monaco-tree-type-filter-actionbar{margin-left:4px}.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label{padding:2px}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container{background-color:var(--vscode-sideBar-background);height:0;left:0;position:absolute;top:0;width:100%;z-index:13}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row.monaco-list-row{background-color:var(--vscode-sideBar-background);opacity:1!important;overflow:hidden;position:absolute;width:100%}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row:hover{background-color:var(--vscode-list-hoverBackground)!important;cursor:pointer}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty,.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty .monaco-tree-sticky-container-shadow{display:none}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow{bottom:-3px;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;height:3px;left:0;position:absolute;width:100%}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container[tabindex="0"]:focus{outline:none}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-bottom-width:1px;border-top-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;padding:3em 0;text-align:center;width:100%}.monaco-editor .reference-zone-widget .ref-tree{background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground);line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{overflow:hidden;text-overflow:ellipsis}.monaco-editor .reference-zone-widget .ref-tree .reference-file{color:var(--vscode-peekViewResult-fileForeground);display:inline-flex;height:100%;width:100%}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-left:auto;margin-right:12px}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{background-color:var(--vscode-peekViewResult-matchHighlightBackground)}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input,.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder,#0000);box-sizing:border-box}.monaco-count-badge{border-radius:11px;box-sizing:border-box;display:inline-block;font-size:11px;font-weight:400;line-height:11px;min-height:18px;min-width:18px;padding:3px 6px;text-align:center}.monaco-count-badge.long{border-radius:2px;line-height:normal;min-height:auto;padding:2px 3px}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-position:0;background-repeat:no-repeat;background-size:16px;display:inline-block;flex-shrink:0;height:22px;line-height:inherit!important;padding-right:6px;vertical-align:top;width:16px}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{flex:1 1;min-width:0;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-suffix-container>.label-suffix{opacity:.7;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-size:.9em;margin-left:.5em;opacity:.7;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{font-style:italic}.monaco-icon-label.deprecated{opacity:.66;text-decoration:line-through}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{text-decoration:line-through}.monaco-icon-label:after{font-size:90%;font-weight:600;margin:auto 16px 0 5px;opacity:.75;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-hover{animation:fadein .1s linear;box-sizing:border-box;cursor:default;line-height:1.5em;overflow:hidden;position:absolute;user-select:text;-webkit-user-select:text;white-space:var(--vscode-hover-whiteSpace,normal)}.monaco-hover.hidden{display:none}.monaco-hover a:hover:not(.disabled){cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){word-wrap:break-word;max-width:var(--vscode-hover-maxWidth,500px)}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover .code,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6,.monaco-hover p,.monaco-hover ul{margin:8px 0}.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{line-height:1.1}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{border-left:0;border-right:0;box-sizing:border-box;height:1px;margin:4px -8px -4px}.monaco-hover .code:first-child,.monaco-hover p:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover .code:last-child,.monaco-hover p:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ol,.monaco-hover ul{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:var(--vscode-hover-sourceWhiteSpace,pre-wrap)}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .info{font-style:italic;padding:0 8px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px}.monaco-hover .hover-row.status-bar .actions .action-container{cursor:pointer;margin-right:16px}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link,.monaco-hover .hover-contents a.code-link:hover{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{border-bottom:1px solid #0000;color:var(--vscode-textLink-foreground);text-decoration:underline;text-underline-position:under}.monaco-hover .hover-contents a.code-link>span:hover{color:var(--vscode-textLink-activeForeground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{display:inline-block;margin-bottom:4px}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{cursor:default;opacity:.4;pointer-events:none}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;margin-right:4px;vertical-align:text-top}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{font-style:italic;opacity:.6}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{padding:8px 12px 0 20px;position:absolute;user-select:text;-webkit-user-select:text;white-space:pre}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{color:inherit;opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{border-bottom:1px solid #0000;color:var(--vscode-textLink-activeForeground);text-decoration:underline;text-underline-position:under}.monaco-editor .marker-widget .descriptioncontainer .filename{color:var(--vscode-textLink-activeForeground);cursor:pointer}.extension-editor .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.markers-panel .marker-icon .codicon.codicon-error,.markers-panel .marker-icon.error,.monaco-editor .zone-widget .codicon.codicon-error,.preferences-editor .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.extension-editor .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.markers-panel .marker-icon .codicon.codicon-warning,.markers-panel .marker-icon.warning,.monaco-editor .zone-widget .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.extension-editor .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.markers-panel .marker-icon .codicon.codicon-info,.markers-panel .marker-icon.info,.monaco-editor .zone-widget .codicon.codicon-info,.preferences-editor .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}.monaco-editor .inlineSuggestionsHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineSuggestionsHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineSuggestionsHints .availableSuggestionCount a{display:flex;justify-content:center;min-width:19px}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{display:inline-block;padding:0}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-hover{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground)}.monaco-editor .monaco-hover a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .monaco-hover .hover-row .actions{background-color:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-editor .monaco-hover code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .diff-hidden-lines-widget{width:100%}.monaco-editor .diff-hidden-lines{font-size:13px;height:0;line-height:14px;transform:translateY(-10px)}.monaco-editor .diff-hidden-lines .bottom.dragging,.monaco-editor .diff-hidden-lines .top.dragging,.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover{background-color:var(--vscode-focusBorder)}.monaco-editor .diff-hidden-lines .bottom,.monaco-editor .diff-hidden-lines .top{background-clip:padding-box;background-color:initial;border-bottom:2px solid #0000;border-top:4px solid #0000;height:4px;transition:background-color .1s ease-out}.monaco-editor .diff-hidden-lines .bottom.canMoveTop:not(.canMoveBottom),.monaco-editor .diff-hidden-lines .top.canMoveTop:not(.canMoveBottom),.monaco-editor.draggingUnchangedRegion.canMoveTop:not(.canMoveBottom) *{cursor:n-resize!important}.monaco-editor .diff-hidden-lines .bottom:not(.canMoveTop).canMoveBottom,.monaco-editor .diff-hidden-lines .top:not(.canMoveTop).canMoveBottom,.monaco-editor.draggingUnchangedRegion:not(.canMoveTop).canMoveBottom *{cursor:s-resize!important}.monaco-editor .diff-hidden-lines .bottom.canMoveTop.canMoveBottom,.monaco-editor .diff-hidden-lines .top.canMoveTop.canMoveBottom,.monaco-editor.draggingUnchangedRegion.canMoveTop.canMoveBottom *{cursor:ns-resize!important}.monaco-editor .diff-hidden-lines .top{transform:translateY(4px)}.monaco-editor .diff-hidden-lines .bottom{transform:translateY(-6px)}.monaco-editor .diff-unchanged-lines{background:var(--vscode-diffEditor-unchangedCodeBackground)}.monaco-editor .noModificationsOverlay{align-items:center;background:var(--vscode-editor-background);display:flex;justify-content:center;z-index:1}.monaco-editor .diff-hidden-lines .center{background:var(--vscode-diffEditor-unchangedRegionBackground);box-shadow:inset 0 -5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow),inset 0 5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow);color:var(--vscode-diffEditor-unchangedRegionForeground);display:block;height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .diff-hidden-lines .center span.codicon{vertical-align:middle}.monaco-editor .diff-hidden-lines .center a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item{cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item:hover{color:var(--vscode-editorLink-activeForeground)}.monaco-editor .movedModified,.monaco-editor .movedOriginal{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-editor .movedModified.currentMove,.monaco-editor .movedOriginal.currentMove{border:2px solid var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path.currentMove{stroke:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path{pointer-events:visiblestroke}.monaco-diff-editor .moved-blocks-lines .arrow{fill:var(--vscode-diffEditor-move-border)}.monaco-diff-editor .moved-blocks-lines .arrow.currentMove{fill:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines .arrow-rectangle{fill:var(--vscode-editor-background)}.monaco-diff-editor .moved-blocks-lines{pointer-events:none;position:absolute}.monaco-diff-editor .moved-blocks-lines path{fill:none;stroke:var(--vscode-diffEditor-move-border);stroke-width:2}.monaco-editor .char-delete.diff-range-empty{border-left:3px solid var(--vscode-diffEditor-removedTextBackground);margin-left:-1px}.monaco-editor .char-insert.diff-range-empty{border-left:3px solid var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .fold-unchanged{cursor:pointer}.monaco-diff-editor .diff-moved-code-block{display:flex;justify-content:flex-end;margin-top:-4px}.monaco-diff-editor .diff-moved-code-block .action-bar .action-label.codicon{font-size:12px;height:12px;width:12px}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:#00000008}.monaco-diff-editor.vs-dark .diffOverview{background:#ffffff03}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:#0000}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:#ababab66}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active{background:none}.monaco-diff-editor .delete-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-editor .insert-sign{align-items:center;display:flex!important;font-size:11px!important;opacity:.7!important}.monaco-diff-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-diff-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-editor.hc-black .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-editor.hc-light .insert-sign{opacity:1}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .inline-deleted-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{position:absolute;z-index:10}.monaco-editor .arrow-revert-change:hover{cursor:pointer}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-diff-editor .char-insert,.monaco-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-diff-editor .line-insert,.monaco-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground,var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .char-insert,.monaco-editor .line-insert{border:1px solid var(--vscode-diffEditor-insertedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-insert,.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .char-insert,.monaco-editor.hc-light .line-insert{border-style:dashed}.monaco-editor .char-delete,.monaco-editor .line-delete{border:1px solid var(--vscode-diffEditor-removedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-delete,.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .char-delete,.monaco-editor.hc-light .line-delete{border-style:dashed}.monaco-diff-editor .gutter-insert,.monaco-editor .gutter-insert,.monaco-editor .inline-added-margin-view-zone{background-color:var(--vscode-diffEditorGutter-insertedLineBackground,var(--vscode-diffEditor-insertedLineBackground),var(--vscode-diffEditor-insertedTextBackground))}.monaco-diff-editor .char-delete,.monaco-editor .char-delete{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-diff-editor .line-delete,.monaco-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground,var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor .gutter-delete,.monaco-editor .gutter-delete,.monaco-editor .inline-deleted-margin-view-zone{background-color:var(--vscode-diffEditorGutter-removedLineBackground,var(--vscode-diffEditor-removedLineBackground),var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor.side-by-side .editor.modified{border-left:1px solid var(--vscode-diffEditor-border);box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow)}.monaco-diff-editor.side-by-side .editor.original{border-right:1px solid var(--vscode-diffEditor-border);box-shadow:6px 0 5px -5px var(--vscode-scrollbar-shadow)}.monaco-diff-editor .diffViewport{background:var(--vscode-scrollbarSlider-background)}.monaco-diff-editor .diffViewport:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-diff-editor .diffViewport:active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-editor .diagonal-fill{background-image:linear-gradient(-45deg,var(--vscode-diffEditor-diagonalFill) 12.5%,#0000 12.5%,#0000 50%,var(--vscode-diffEditor-diagonalFill) 50%,var(--vscode-diffEditor-diagonalFill) 62.5%,#0000 62.5%,#0000 100%);background-size:8px 8px}.monaco-diff-editor .gutter{flex-grow:0;flex-shrink:0;overflow:hidden;position:relative;.gutterItem{opacity:0;transition:opacity .7s;&.showAlways{opacity:1}&.noTransition,&.showAlways{transition:none}}&:hover .gutterItem{opacity:1;transition:opacity .1s ease-in-out}.gutterItem{.background{border-left:2px solid var(--vscode-menu-border);height:100%;left:50%;position:absolute;width:1px}.buttons{align-items:center;display:flex;justify-content:center;position:absolute;width:100%;.monaco-toolbar{height:-moz-fit-content;height:fit-content;.monaco-action-bar{line-height:1;.actions-container{background:var(--vscode-editor-background);border:1px solid var(--vscode-menu-border);border-radius:4px;width:-moz-fit-content;width:fit-content;.action-item{&:hover{background:var(--vscode-toolbar-hoverBackground)}.action-label{padding:.5px 1px}}}}}}}}.monaco-component.diff-review{user-select:none;-webkit-user-select:none;z-index:99}.monaco-diff-editor .diff-review{position:absolute}.monaco-component.diff-review .diff-review-line-number{color:var(--vscode-editorLineNumber-foreground);display:inline-block;text-align:right}.monaco-component.diff-review .diff-review-summary{padding-left:10px}.monaco-component.diff-review .diff-review-shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset;position:absolute}.monaco-component.diff-review .diff-review-row{white-space:pre}.monaco-component.diff-review .diff-review-table{display:table;min-width:100%}.monaco-component.diff-review .diff-review-row{display:table-row;width:100%}.monaco-component.diff-review .diff-review-spacer{display:inline-block;vertical-align:middle;width:10px}.monaco-component.diff-review .diff-review-spacer>.codicon{font-size:9px!important}.monaco-component.diff-review .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px;z-index:100}.monaco-component.diff-review .diff-review-actions .action-label{height:16px;margin:2px 0;width:16px}.monaco-component.diff-review .revertButton{cursor:pointer}.monaco-editor.hc-light .dnd-target,.monaco-editor.vs .dnd-target{border-right:2px dotted #000;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #aeafad;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines,.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines{cursor:default}.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines,.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines{cursor:copy}.monaco-editor .findOptionsWidget{border:2px solid var(--vscode-contrastBorder)}.monaco-editor .find-widget,.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground)}.monaco-editor .find-widget{border-bottom:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-left:1px solid var(--vscode-widget-border);border-right:1px solid var(--vscode-widget-border);box-sizing:border-box;height:33px;line-height:19px;overflow:hidden;padding:0 4px;position:absolute;transform:translateY(calc(-100% - 10px));transition:transform .2s linear;z-index:35}.monaco-workbench.reduce-motion .monaco-editor .find-widget{transition:transform 0ms linear}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-color:var(--vscode-focusBorder);outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:initial;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{display:flex;font-size:12px;margin:3px 25px 0 17px}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-bottom:2px;padding-top:2px}.monaco-editor .find-widget>.find-part .find-actions,.monaco-editor .find-widget>.replace-part .replace-actions{align-items:center;display:flex;height:25px}.monaco-editor .find-widget .monaco-findInput{display:flex;flex:1 1;vertical-align:middle}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{box-sizing:border-box;display:flex;flex:initial;height:25px;line-height:23px;margin:0 0 0 3px;padding:2px 0 0 2px;text-align:center;vertical-align:middle}.monaco-editor .find-widget .button{align-items:center;background-position:50%;background-repeat:no-repeat;border-radius:5px;cursor:pointer;display:flex;flex:initial;height:16px;justify-content:center;margin-left:3px;padding:3px;width:16px}.monaco-editor .find-widget .codicon-find-selection{border-radius:5px;height:22px;padding:3px;width:22px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{padding:1px 6px;top:-1px;width:auto}.monaco-editor .find-widget .button.toggle{border-radius:0;box-sizing:border-box;height:100%;left:3px;position:absolute;top:0;width:18px}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{color:var(--vscode-disabledForeground);cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{display:flex;flex:auto;flex-grow:0;flex-shrink:0;position:relative;vertical-align:middle}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;right:2px;top:3px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .find-widget.no-results .matchesCount{color:var(--vscode-errorForeground)}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important;background-color:var(--vscode-editor-findMatchHighlightBackground)}.monaco-editor .currentFindMatch{background-color:var(--vscode-editor-findMatchBackground);border:2px solid var(--vscode-editor-findMatchBorder);box-sizing:border-box;padding:1px}.monaco-editor .findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor .find-widget .monaco-sash{background-color:var(--vscode-editorWidget-resizeBorder,var(--vscode-editorWidget-border));left:0!important}.monaco-editor.hc-black .find-widget .button:before{left:2px;position:relative;top:1px}.monaco-editor .find-widget .button:not(.disabled):hover,.monaco-editor .find-widget .codicon-find-selection:hover{background-color:var(--vscode-toolbar-hoverBackground)!important}.monaco-editor.findMatch{background-color:var(--vscode-editor-findMatchHighlightBackground)}.monaco-editor.currentFindMatch{background-color:var(--vscode-editor-findMatchBackground)}.monaco-editor.findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor.findMatch{background-color:var(--vscode-editorWidget-background)}.monaco-editor .find-widget>.button.codicon-widget-close{position:absolute;right:4px;top:5px}.monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{align-items:center;cursor:pointer;display:flex;font-size:140%;justify-content:center;margin-left:2px;opacity:0;transition:opacity .5s}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{transition:initial}.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays:hover .codicon{opacity:1}.monaco-editor .inline-folded:after{color:grey;content:"\22EF";cursor:pointer;display:inline;line-height:1em;margin:.1em .2em 0}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ4LjAzNiA0LjAxSDQuMDA4VjMyLjAzaDQ0LjAyOFY0LjAxWk00LjAwOC4wMDhBNC4wMDMgNC4wMDMgMCAwIDAgLjAwNSA0LjAxVjMyLjAzYTQuMDAzIDQuMDAzIDAgMCAwIDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAgMCA0LjAwMy00LjAwMlY0LjAxQTQuMDAzIDQuMDAzIDAgMCAwIDQ4LjAzNi4wMDhINC4wMDhaTTguMDEgOC4wMTNoNC4wMDN2NC4wMDNIOC4wMVY4LjAxM1ptMTIuMDA4IDBoLTQuMDAydjQuMDAzaDQuMDAyVjguMDEzWm00LjAwMyAwaDQuMDAydjQuMDAzaC00LjAwMlY4LjAxM1ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzVjguMDEzWm00LjAwMiAwaDQuMDAzdjQuMDAzSDQwLjAzVjguMDEzWm0tMjQuMDE1IDguMDA1SDguMDF2NC4wMDNoOC4wMDZ2LTQuMDAzWm00LjAwMiAwaDQuMDAzdjQuMDAzaC00LjAwM3YtNC4wMDNabTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM3YtNC4wMDNabTEyLjAwOCAwdjQuMDAzaC04LjAwNXYtNC4wMDNoOC4wMDVabS0zMi4wMjEgOC4wMDVIOC4wMXY0LjAwM2g0LjAwM3YtNC4wMDNabTQuMDAzIDBoMjAuMDEzdjQuMDAzSDE2LjAxNnYtNC4wMDNabTI4LjAxOCAwSDQwLjAzdjQuMDAzaDQuMDAzdi00LjAwM1oiIGZpbGw9IiM0MjQyNDIiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #f6f6f6;border-radius:4px;height:36px;margin:0;min-height:0;min-width:0;overflow:hidden;padding:0;position:absolute;resize:none;width:58px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ4LjAzNiA0LjAxSDQuMDA4VjMyLjAzaDQ0LjAyOFY0LjAxWk00LjAwOC4wMDhBNC4wMDMgNC4wMDMgMCAwIDAgLjAwNSA0LjAxVjMyLjAzYTQuMDAzIDQuMDAzIDAgMCAwIDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAgMCA0LjAwMy00LjAwMlY0LjAxQTQuMDAzIDQuMDAzIDAgMCAwIDQ4LjAzNi4wMDhINC4wMDhaTTguMDEgOC4wMTNoNC4wMDN2NC4wMDNIOC4wMVY4LjAxM1ptMTIuMDA4IDBoLTQuMDAydjQuMDAzaDQuMDAyVjguMDEzWm00LjAwMyAwaDQuMDAydjQuMDAzaC00LjAwMlY4LjAxM1ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzVjguMDEzWm00LjAwMiAwaDQuMDAzdjQuMDAzSDQwLjAzVjguMDEzWm0tMjQuMDE1IDguMDA1SDguMDF2NC4wMDNoOC4wMDZ2LTQuMDAzWm00LjAwMiAwaDQuMDAzdjQuMDAzaC00LjAwM3YtNC4wMDNabTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM3YtNC4wMDNabTEyLjAwOCAwdjQuMDAzaC04LjAwNXYtNC4wMDNoOC4wMDVabS0zMi4wMjEgOC4wMDVIOC4wMXY0LjAwM2g0LjAwM3YtNC4wMDNabTQuMDAzIDBoMjAuMDEzdjQuMDAzSDE2LjAxNnYtNC4wMDNabTI4LjAxOCAwSDQwLjAzdjQuMDAzaDQuMDAzdi00LjAwM1oiIGZpbGw9IiNDNUM1QzUiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #252526}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:#0000;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{cursor:pointer;display:inline-block;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{font-size:0;opacity:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text .ghost-text{font-style:italic}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .snippet-placeholder{background-color:var(--vscode-editor-snippetTabstopHighlightBackground,#0000);min-width:2px;outline-color:var(--vscode-editor-snippetTabstopHighlightBorder,#0000);outline-style:solid;outline-width:1px}.monaco-editor .finish-snippet-placeholder{background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground,#0000);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder,#0000);outline-style:solid;outline-width:1px}.monaco-editor .suggest-widget{border-radius:3px;display:flex;flex-direction:column;width:430px;z-index:40}.monaco-editor .suggest-widget.message{align-items:center;flex-direction:row}.monaco-editor .suggest-details,.monaco-editor .suggest-widget{background-color:var(--vscode-editorSuggestWidget-background);border-color:var(--vscode-editorSuggestWidget-border);border-style:solid;border-width:1px;flex:0 1 auto;width:100%}.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-light .suggest-details,.monaco-editor.hc-light .suggest-widget{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{border-top:1px solid var(--vscode-editorSuggestWidget-border);box-sizing:border-box;display:none;flex-flow:row nowrap;font-size:80%;justify-content:space-between;overflow:hidden;padding:0 4px;width:100%}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none;-webkit-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{background-position:2px 2px;background-repeat:no-repeat;-mox-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:flex;padding-right:10px;touch-action:none;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1 1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;justify-content:space-between;overflow:hidden;text-overflow:ellipsis;white-space:pre}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;cursor:pointer;font-size:14px;opacity:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;right:2px;top:6px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{opacity:.6;overflow:hidden;text-overflow:ellipsis}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{align-self:center;font-size:85%;line-height:normal;margin-left:12px;opacity:.4;overflow:hidden;text-overflow:ellipsis}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-grow:1;flex-shrink:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{flex-shrink:4;max-width:70%;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;height:18px;position:absolute;right:10px;visibility:hidden;width:18px}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{background-position:50%;background-repeat:no-repeat;background-size:80%;display:block;height:16px;margin-left:2px;width:16px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{align-items:center;display:flex;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{border:.1em solid #000;display:inline-block;height:.7em;margin:0 0 0 .3em;width:.7em}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{color:var(--vscode-editorSuggestWidget-foreground);cursor:default;display:flex;flex-direction:column}.monaco-editor .suggest-details.focused{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1 1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2 1;margin:0 24px 0 0;opacity:.7;overflow:hidden;padding:4px 0 12px 5px;text-overflow:ellipsis;white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{min-height:calc(1rem + 8px);padding:0;white-space:normal}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{word-wrap:break-word;white-space:pre-wrap}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ol,.monaco-editor .suggest-details ul{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .inline-edit-remove{background-color:var(--vscode-editorGhostText-background);font-style:italic;text-decoration:line-through}.monaco-editor .inline-edit-remove.backgroundColoring{background-color:var(--vscode-diffEditor-removedLineBackground)}.monaco-editor .inline-edit-hidden{font-size:0;opacity:0}.monaco-editor .inline-edit-decoration,.monaco-editor .suggest-preview-text .inline-edit{font-style:italic}.monaco-editor .inline-completion-text-to-replace{text-decoration:underline;text-underline-position:under}.monaco-editor .inline-edit-decoration,.monaco-editor .inline-edit-decoration-preview,.monaco-editor .suggest-preview-text .inline-edit{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .inlineEditHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.monaco-editor .inlineEditHints a,.monaco-editor .inlineEditHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineEditHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineEditHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineEditStatusBarItemLabel{margin-right:2px}.monaco-editor .tokens-inspect-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);padding:10px;user-select:text;-webkit-user-select:text;z-index:50}.monaco-editor.hc-black .tokens-inspect-widget,.monaco-editor.hc-light .tokens-inspect-widget{border-width:2px}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{background-color:var(--vscode-editorHoverWidget-border);border:0;height:1px}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{float:right;font-size:60%;font-weight:400}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.monaco-editor .linked-editing-decoration{background-color:var(--vscode-editor-linkedEditingBackground);min-width:1px}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);border:1px solid var(--vscode-editor-selectionHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);border:1px solid var(--vscode-editor-wordHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);border:1px solid var(--vscode-editor-wordHighlightStrongBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);border:1px solid var(--vscode-editor-wordHighlightTextBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .parameter-hints-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);cursor:default;display:flex;flex-direction:column;line-height:1.5em;z-index:39}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{display:flex;flex-direction:row;max-width:440px}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{border-left:1px solid var(--vscode-editorHoverWidget-border);content:"";display:block;height:100%;opacity:.5;position:absolute}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .body,.monaco-editor .parameter-hints-widget .monaco-scrollable-element{display:flex;flex:1 1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px;position:relative}.monaco-editor .parameter-hints-widget .signature.has-docs:after{border-bottom:1px solid var(--vscode-editorHoverWidget-border);content:"";display:block;left:0;opacity:.5;padding-top:4px;position:absolute;width:100%}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs a{color:var(--vscode-textLink-foreground)}.monaco-editor .parameter-hints-widget .docs a:hover{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:normal}.monaco-editor .parameter-hints-widget .docs code{background-color:var(--vscode-textCodeBlock-background);border-radius:3px;font-family:var(--monaco-monospace-font);padding:0 .4em}.monaco-editor .parameter-hints-widget .docs .code,.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{align-items:center;display:none;flex-direction:column;justify-content:flex-end;min-width:22px}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{background-repeat:no-repeat;cursor:pointer;height:16px;width:16px}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{font-family:var(--monaco-monospace-font);height:12px;line-height:12px;text-align:center}.monaco-editor .parameter-hints-widget .signature .parameter.active{color:var(--vscode-editorHoverWidget-highlightForeground);font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .rename-box{border-radius:4px;color:inherit;z-index:100}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input{border-radius:2px;padding:3px;width:calc(100% - 8px)}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .sticky-widget{overflow:hidden}.monaco-editor .sticky-widget-line-numbers{background-color:inherit;float:left}.monaco-editor .sticky-widget-lines-scrollable{background-color:inherit;display:inline-block;overflow:hidden;position:absolute;width:var(--vscode-editorStickyScroll-scrollableWidth)}.monaco-editor .sticky-widget-lines{background-color:inherit;position:absolute}.monaco-editor .sticky-line-content,.monaco-editor .sticky-line-number{background-color:inherit;color:var(--vscode-editorLineNumber-foreground);display:inline-block;position:absolute;white-space:nowrap}.monaco-editor .sticky-line-number .codicon-folding-collapsed,.monaco-editor .sticky-line-number .codicon-folding-expanded{float:right;transition:var(--vscode-editorStickyScroll-foldingOpacityTransition)}.monaco-editor .sticky-line-content{background-color:inherit;white-space:nowrap;width:var(--vscode-editorStickyScroll-scrollableWidth)}.monaco-editor .sticky-line-number-inner{display:inline-block;text-align:right}.monaco-editor .sticky-widget{border-bottom:1px solid var(--vscode-editorStickyScroll-border)}.monaco-editor .sticky-line-content:hover{background-color:var(--vscode-editorStickyScrollHover-background);cursor:pointer}.monaco-editor .sticky-widget{background-color:var(--vscode-editorStickyScroll-background);box-shadow:var(--vscode-editorStickyScroll-shadow) 0 3px 2px -2px;width:100%;z-index:4}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .unicode-highlight{background-color:var(--vscode-editorUnicodeHighlight-background);border:1px solid var(--vscode-editorUnicodeHighlight-border);box-sizing:border-box}.editor-banner{background:var(--vscode-banner-background);box-sizing:border-box;cursor:default;display:flex;font-size:12px;height:26px;overflow:visible;width:100%}.editor-banner .icon-container{align-items:center;display:flex;flex-shrink:0;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-position:50%;background-repeat:no-repeat;background-size:16px;margin:0 6px 0 10px;padding:0;width:16px}.editor-banner .message-container{align-items:center;display:flex;line-height:26px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-banner .message-container p{margin-block-end:0;margin-block-start:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;line-height:26px;margin:0 4px}.editor-banner .message-actions-container a.monaco-button{margin:2px 8px;padding:0 12px;width:inherit}.editor-banner .message-actions-container a{margin-left:12px;padding:3px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-link{color:var(--vscode-textLink-foreground)}.monaco-link:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor{--monaco-monospace-font:"SF Mono",Monaco,Menlo,Consolas,"Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New",monospace;font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif}.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;top:0;width:1px}.monaco-diff-editor .synthetic-focus,.monaco-diff-editor [tabindex="-1"]:focus,.monaco-diff-editor [tabindex="0"]:focus,.monaco-diff-editor button:focus,.monaco-diff-editor input[type=button]:focus,.monaco-diff-editor input[type=checkbox]:focus,.monaco-diff-editor input[type=search]:focus,.monaco-diff-editor input[type=text]:focus,.monaco-diff-editor select:focus,.monaco-diff-editor textarea:focus,.monaco-editor{opacity:1;outline-color:var(--vscode-focusBorder);outline-offset:-1px;outline-style:solid;outline-width:1px}.monaco-workbench .workbench-hover{background:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;box-shadow:0 2px 8px var(--vscode-widget-shadow);color:var(--vscode-editorHoverWidget-foreground);font-size:13px;line-height:19px;max-width:700px;overflow:hidden;position:relative;z-index:40}.monaco-workbench .workbench-hover hr{border-bottom:none}.monaco-workbench .workbench-hover:not(.skip-fade-in){animation:fadein .1s linear}.monaco-workbench .workbench-hover.compact{font-size:12px}.monaco-workbench .workbench-hover.compact .hover-contents{padding:2px 8px}.monaco-workbench .workbench-hover-container.locked .workbench-hover{outline:1px solid var(--vscode-editorHoverWidget-border)}.monaco-workbench .workbench-hover-container.locked .workbench-hover:focus,.monaco-workbench .workbench-hover-lock:focus{outline:1px solid var(--vscode-focusBorder)}.monaco-workbench .workbench-hover-container.locked .workbench-hover-lock:hover{background:var(--vscode-toolbar-hoverBackground)}.monaco-workbench .workbench-hover-pointer{pointer-events:none;position:absolute;z-index:41}.monaco-workbench .workbench-hover-pointer:after{background-color:var(--vscode-editorHoverWidget-background);border-bottom:1px solid var(--vscode-editorHoverWidget-border);border-right:1px solid var(--vscode-editorHoverWidget-border);content:"";height:5px;position:absolute;width:5px}.monaco-workbench .locked .workbench-hover-pointer:after{border-bottom-width:2px;border-right-width:2px;height:4px;width:4px}.monaco-workbench .workbench-hover-pointer.left{left:-3px}.monaco-workbench .workbench-hover-pointer.right{right:3px}.monaco-workbench .workbench-hover-pointer.top{top:-3px}.monaco-workbench .workbench-hover-pointer.bottom{bottom:3px}.monaco-workbench .workbench-hover-pointer.left:after{transform:rotate(135deg)}.monaco-workbench .workbench-hover-pointer.right:after{transform:rotate(315deg)}.monaco-workbench .workbench-hover-pointer.top:after{transform:rotate(225deg)}.monaco-workbench .workbench-hover-pointer.bottom:after{transform:rotate(45deg)}.monaco-workbench .workbench-hover a{color:var(--vscode-textLink-foreground)}.monaco-workbench .workbench-hover a:focus{outline:1px solid;outline-color:var(--vscode-focusBorder);outline-offset:-1px;text-decoration:underline}.monaco-workbench .workbench-hover a:active,.monaco-workbench .workbench-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-workbench .workbench-hover code{background:var(--vscode-textCodeBlock-background)}.monaco-workbench .workbench-hover .hover-row .actions{background:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-workbench .workbench-hover.right-aligned{left:1px}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions{flex-direction:row-reverse}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions .action-container{margin-left:16px;margin-right:0}.context-view{position:absolute}.context-view.fixed{all:initial;color:inherit;font-family:inherit;font-size:13px;position:fixed}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border:1px solid;border-color:#ccc6 #ccc6 #bbb6;box-shadow:inset 0 -1px 0 #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:initial;border:1px solid #6fc3df;box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:initial;border:1px solid #0f4a85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:1px solid;border-color:#3339 #3339 #4449;box-shadow:inset 0 -1px 0 #4449;color:#ccc}.quick-input-widget{-webkit-app-region:no-drag;border-radius:6px;left:50%;margin-left:-300px;position:absolute;width:600px;z-index:2550}.quick-input-titlebar{align-items:center;border-radius:inherit;display:flex}.quick-input-left-action-bar{display:flex;flex:1 1;margin-left:4px}.quick-input-title{overflow:hidden;padding:3px 0;text-align:center;text-overflow:ellipsis}.quick-input-right-action-bar{display:flex;flex:1 1;margin-right:4px}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:50%;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px 6px 6px 11px}.quick-input-header .quick-input-description{flex:1 1;margin:4px 2px}.quick-input-header{display:flex;padding:8px 6px 2px}.quick-input-widget.hidden-input .quick-input-header{margin-bottom:0;padding:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{display:flex;flex-grow:1;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{left:-10000px;position:absolute}.quick-input-count{align-items:center;align-self:center;display:flex;position:absolute;right:4px}.quick-input-count .monaco-count-badge{border-radius:2px;line-height:normal;min-height:auto;padding:2px 4px;vertical-align:middle}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{align-items:center;display:flex;font-size:11px;height:25px;padding:0 6px}.quick-input-message{margin-top:-1px;overflow-wrap:break-word;padding:5px}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-message a{color:inherit}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-list{line-height:22px}.quick-input-widget.hidden-input .quick-input-list{margin-top:4px;padding-bottom:4px}.quick-input-list .monaco-list{max-height:440px;overflow:hidden;padding-bottom:5px}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;display:flex;height:100%;overflow:hidden;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-style:solid;border-top-width:1px}.quick-input-list .monaco-list-row{border-radius:3px}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{display:flex;flex:1 1;height:100%;overflow:hidden}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-icon{align-items:center;background-position:0;background-repeat:no-repeat;background-size:16px;display:flex;height:22px;justify-content:center;padding-right:6px;width:16px}.quick-input-list .quick-input-list-rows{display:flex;flex:1 1;flex-direction:column;height:100%;margin-left:5px;overflow:hidden;text-overflow:ellipsis}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{align-items:center;display:flex}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1 1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label>span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{line-height:normal;opacity:.7;overflow:hidden;text-overflow:ellipsis}.quick-input-list .monaco-list .monaco-list-row .monaco-highlighted-label .highlight{background-color:unset;color:var(--vscode-list-highlightForeground)!important;font-weight:700}.quick-input-list .monaco-list .monaco-list-row.focused .monaco-highlighted-label .highlight{color:var(--vscode-list-focusHighlightForeground)!important}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0 1;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-right:4px;margin-top:1px}.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.passive-focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry.focus-inside .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.quick-input-list .quick-input-list-separator-as-item{font-size:12px;padding:4px 6px}.quick-input-list .quick-input-list-separator-as-item .label-name{font-weight:600}.quick-input-list .quick-input-list-separator-as-item .label-description{opacity:1!important}.quick-input-list .monaco-tree-sticky-row .quick-input-list-entry.quick-input-list-separator-as-item.quick-input-list-separator-border{border-top-style:none}.quick-input-list .monaco-tree-sticky-row{padding:0 5px}.quick-input-list .monaco-tl-twistie{display:none!important}.monaco-progress-container{height:2px;overflow:hidden;width:100%}.monaco-progress-container .progress-bit{display:none;height:2px;left:0;position:absolute;width:2%}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-duration:4s;animation-iteration-count:infinite;animation-name:progress;animation-timing-function:linear;transform:translateZ(0)}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translateX(0) scaleX(1)}50%{transform:translateX(2500%) scaleX(3)}to{transform:translateX(4900%) scaleX(1)}}.monaco-component.multiDiffEditor{background:var(--vscode-multiDiffEditor-background);overflow-y:hidden;.focused{--vscode-multiDiffEditor-border:var(--vscode-focusBorder)}.multiDiffEntry{display:flex;flex:1 1;flex-direction:column;overflow:hidden;.collapse-button{cursor:pointer;margin:0 5px;a{display:block}}.header{background:var(--vscode-editor-background);z-index:1000;&:not(.collapsed) .header-content{border-bottom:1px solid var(--vscode-sideBarSectionHeader-border)}.header-content{align-items:center;background:var(--vscode-multiDiffEditor-headerBackground);border-left:1px solid var(--vscode-multiDiffEditor-border);border-right:1px solid var(--vscode-multiDiffEditor-border);border-top:1px solid var(--vscode-multiDiffEditor-border);border-top-left-radius:2px;border-top-right-radius:2px;color:var(--vscode-foreground);display:flex;margin:8px 8px 0;padding:4px 5px;&.shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px}.file-path{display:flex;flex:1 1;min-width:0;.title{font-size:14px;line-height:22px;&.original{flex:1 1;min-width:0;text-overflow:ellipsis}}.status{font-weight:600;line-height:22px;margin:0 10px;opacity:.75}}.actions{padding:0 8px}}}.editorParent{border-bottom:1px solid var(--vscode-multiDiffEditor-border);border-left:1px solid var(--vscode-multiDiffEditor-border);border-radius:2px;border-right:1px solid var(--vscode-multiDiffEditor-border);display:flex;flex:1 1;flex-direction:column;margin-left:8px;margin-right:8px;overflow:hidden}.editorContainer{flex:1 1}}}.gt-table{border:none;border-collapse:initial;border-spacing:0}.gt-table__row_interactive{cursor:pointer}.gt-table__header_sticky{inset-block-start:0;position:sticky;z-index:1}.gt-table__footer_sticky{inset-block-end:0;position:sticky;z-index:1}.gt-table__cell{font-weight:400}.gt-table__footer-cell,.gt-table__header-cell{font-weight:500;position:relative}.gt-table__cell,.gt-table__footer-cell,.gt-table__header-cell{box-sizing:border-box;height:inherit;padding:0;text-align:start}.gt-table__cell_pinned,.gt-table__footer-cell_pinned,.gt-table__header-cell_pinned{position:sticky;z-index:1}.gt-table__sort{cursor:pointer;-webkit-user-select:none;user-select:none}.gt-table_with-row-virtualization{display:grid;height:auto}.gt-table_with-row-virtualization .gt-table__body{display:grid;position:relative}.gt-table_with-row-virtualization .gt-table__footer,.gt-table_with-row-virtualization .gt-table__header{display:grid}.gt-table_with-row-virtualization .gt-table__footer-row,.gt-table_with-row-virtualization .gt-table__header-row{display:flex;height:auto}.gt-table_with-row-virtualization .gt-table__row{display:flex;height:auto;position:absolute}.gt-table_with-row-virtualization .gt-table__row_empty{position:relative}.gt-group-header{inset-inline-start:0;margin:0;position:sticky}.gt-group-header__button{appearance:none;background:inherit;border:none;cursor:pointer;display:flex;gap:8px;outline:none;padding:0;width:100%}.gt-group-header__icon{display:inline-block;transform:rotate(-90deg);transition:transform .1s ease-out;vertical-align:middle}.gt-group-header__icon_expanded{transform:rotate(0)}.gt-group-header__content{display:inline-flex;font-weight:500;gap:4px}.gt-sort-indicator{color:var(--g-color-text-hint);display:inline-flex;margin-inline-start:4px;transform:rotate(0);vertical-align:middle}.gt-sort-indicator_invisible{opacity:0}.gt-table__header-cell:hover .gt-sort-indicator_invisible{opacity:1}.gt-sort-indicator_order_asc{transform:rotate(180deg)}.gt-resize-handle{background:#d3d3d3;cursor:col-resize;height:100%;inset-block-start:0;opacity:0;position:absolute;touch-action:none;-webkit-user-select:none;user-select:none;width:6px}.gt-resize-handle_direction_ltr{inset-inline-end:0}.gt-resize-handle_direction_rtl{inset-inline-start:0}.gt-resize-handle_resizing,.gt-table__header-cell:hover .gt-resize-handle{opacity:1}.ydb-navigation-tree-view-empty{color:var(--g-color-text-secondary);font-style:italic}.ydb-navigation-tree-view-error{color:var(--g-color-text-danger)}.ydb-navigation-tree-view-loader{align-items:center;display:flex;height:24px;justify-content:center;width:20px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/6548.ca5780af.chunk.css b/ydb/core/viewer/monitoring/static/css/6548.ca5780af.chunk.css new file mode 100644 index 00000000000..e763d249105 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/6548.ca5780af.chunk.css @@ -0,0 +1 @@ +.kv-split{display:flex;height:100%;outline:none;-webkit-user-select:text;user-select:text;z-index:0}.kv-split.horizontal{flex-direction:row}.kv-split.vertical{flex-direction:column;min-height:100%;width:100%}.kv-split .gutter{background:var(--g-color-base-background);position:relative;z-index:10}.kv-split .gutter:after{background-color:var(--g-color-base-generic-ultralight);content:"";inset:0;position:absolute}.kv-split .gutter.active:after,.kv-split .gutter:hover:after{background-color:var(--g-color-line-generic-hover);transition:background-color 1s ease}.kv-split .gutter.disabled{display:none}.kv-split .gutter.gutter-vertical{cursor:row-resize;height:8px;width:100%}.kv-split .gutter.gutter-vertical:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:1px 0;content:"";height:4px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:16px}.kv-split .gutter.gutter-horizontal{cursor:col-resize;height:100%;width:8px}.kv-split .gutter.gutter-horizontal:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:0 1px;content:"";height:16px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:4px}.histogram{display:flex;flex:1 1 auto}.histogram__chart{align-items:baseline;border-bottom:1px solid var(--g-color-base-generic);border-left:1px solid var(--g-color-base-generic);display:flex;height:300px;margin-left:50px;margin-top:30px;position:relative;width:800px}.histogram__x-min{left:-3px}.histogram__x-max,.histogram__x-min{bottom:-25px;color:var(--g-color-text-secondary);position:absolute}.histogram__x-max{right:0}.histogram__y-min{bottom:-7px;left:-30px;width:20px}.histogram__y-max,.histogram__y-min{color:var(--g-color-text-secondary);position:absolute;text-align:right}.histogram__y-max{left:-60px;top:-5px;width:50px}.histogram__item{cursor:pointer;margin-right:.5%;width:1.5%}.heatmap{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.heatmap__limits{align-items:center;display:flex;margin-left:20px}.heatmap__limits-block{display:flex;margin-right:10px}.heatmap__limits-title{color:var(--g-color-text-secondary);margin-right:5px}.heatmap__row{align-items:center}.heatmap__row_overall{margin:15px 20px}.heatmap__row_overall .g-progress{margin:0;width:300px}.heatmap__label{font-size:var(--g-text-body-2-font-size);font-weight:500;line-height:var(--g-text-body-2-line-height);margin-right:16px;text-transform:uppercase}.heatmap__label_overall{margin-right:15px}.heatmap__items{overflow:auto}.heatmap__canvas-container{cursor:pointer;overflow:auto}.heatmap__filters{align-items:center;display:flex;margin:0 0 10px}.heatmap__filter-control{margin-right:10px;max-width:200px;min-width:100px}.heatmap__filter-control:last-child{margin-right:0}.heatmap__histogram-checkbox,.heatmap__sort-checkbox{margin-left:10px}.heatmap__row{display:flex}.heatmap .tablet,.heatmap__row{margin-bottom:2px}.ydb-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.ydb-nodes__groups-wrapper{padding-right:20px}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.operations__search{width:220px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.schema-viewer__keys{display:inline-block;padding-bottom:var(--g-spacing-4);padding-left:10px}.schema-viewer__keys-values{color:var(--g-color-text-complementary);display:inline;font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.schema-viewer__keys-header{color:var(--g-color-text-primary);display:inline;font-size:var(--g-text-subheader-1-font-size);font-weight:700;line-height:var(--g-text-subheader-1-line-height);white-space:nowrap}.schema-viewer__keys-label{cursor:pointer}.schema-viewer__keys-wrapper{left:0;position:sticky;width:100%;z-index:1}.schema-viewer__keys+.schema-viewer__keys{margin-left:var(--g-spacing-8)}.schema-viewer__keys_summary+.schema-viewer__keys_summary{margin-left:0}.schema-viewer__popup-content{padding:var(--g-spacing-2) var(--g-spacing-4)}.schema-viewer__popup-item{padding-bottom:var(--g-spacing-2)}.schema-viewer__popup-item:last-child{padding-bottom:0}.schema-viewer__more-badge{margin-left:var(--g-spacing-1)}.ydb-diagnostics-configs__icon-touched{color:var(--g-color-text-secondary);cursor:default!important;line-height:1}.speed-multimeter{display:flex;width:100%}.speed-multimeter__content{display:flex;flex-direction:row;flex-grow:1;justify-content:flex-end;line-height:22px}.speed-multimeter__displayed-value{display:flex;flex-direction:row;justify-content:flex-end;margin-right:10px}.speed-multimeter__bars{align-items:flex-start;display:flex;flex-direction:column;margin-right:5px;overflow:hidden;width:32px}.speed-multimeter__bar-container{height:6px;width:100%}.speed-multimeter__bar-container_highlighted{background:var(--g-color-line-generic)}.speed-multimeter__bar{height:100%;min-width:2px}.speed-multimeter__bar_color_light{background:var(--g-color-base-info-medium)}.speed-multimeter__bar_color_dark{background:var(--g-color-base-info-heavy)}.speed-multimeter__bar-container+.speed-multimeter__bar-container{margin-top:2px}.speed-multimeter__popover-container{align-items:center;display:flex;justify-content:center}.speed-multimeter__popover-content{padding:10px}.speed-multimeter__popover-header{display:block;font-size:18px;line-height:24px;margin-bottom:7px}.speed-multimeter__popover-row{display:block;font-size:13px;line-height:18px}.speed-multimeter__popover-row_color_primary{color:var(--g-color-text-primary)}.speed-multimeter__popover-row_color_secondary{color:var(--g-color-text-secondary)}.ydb-diagnostics-consumers-topic-stats{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-diagnostics-consumers-topic-stats__wrapper{border-left:1px solid var(--g-color-line-generic);display:flex;flex-direction:row;padding-left:16px}.ydb-diagnostics-consumers-topic-stats__item{display:flex;flex-direction:column;margin-right:20px}.ydb-diagnostics-consumers-topic-stats__label{color:var(--g-color-text-secondary);margin-bottom:4px}.ydb-diagnostics-consumers-topic-stats__value{align-items:center;display:flex;height:30px;justify-content:flex-start}.ydb-lag-popover-content__text{margin-bottom:10px}.ydb-lag-popover-content_type_read{max-width:280px}.ydb-lag-popover-content_type_write{max-width:220px}.ydb-diagnostics-consumers-columns-header__lags{white-space:nowrap}.ydb-diagnostics-consumers-columns__lags-header{text-align:center}.ydb-diagnostics-consumers{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-consumers__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-consumers__search{width:238px}.ydb-diagnostics-consumers__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-consumers__table-content{height:100%;overflow:auto}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-consumers__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-consumers__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{box-shadow:unset}.ydb-json-tree{height:100%;position:relative;width:100%}.ydb-json-tree__tree{word-wrap:break-word;font-family:var(--g-font-family-monospace)!important;font-size:var(--g-text-code-1-font-size)!important;line-height:var(--g-text-code-1-line-height)!important;width:100%}.ydb-json-tree__tree .json-inspector__leaf_composite:before{color:var(--g-color-text-secondary);font-size:9px;left:20px;position:absolute}.ydb-json-tree__tree .json-inspector__leaf_composite.json-inspector__leaf_root:before{left:0}.ydb-json-tree__tree :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:"[+]"}.ydb-json-tree__tree .json-inspector__leaf_expanded.json-inspector__leaf_composite:before{content:"[-]"}.ydb-json-tree__tree .json-inspector__key{color:var(--g-color-text-misc)}.ydb-json-tree__tree .json-inspector__leaf{padding-left:20px;position:relative}.ydb-json-tree__tree .json-inspector__leaf_root{padding-left:0}.ydb-json-tree__tree .json-inspector__line{padding-left:20px}.ydb-json-tree__tree .json-inspector__toolbar{border:1px solid var(--g-color-line-generic);border-radius:4px;margin-bottom:10px;width:300px}.ydb-json-tree__tree .json-inspector__search{background:none;border:0 solid #0000;border-width:0 22px 0 8px;box-sizing:border-box;color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:13px;height:28px;margin:0;outline:0;padding:0;vertical-align:top;width:300px}.ydb-json-tree__tree .json-inspector__value_helper{color:var(--g-color-text-secondary)}.ydb-json-tree__tree .json-inspector__line:hover:after{background:var(--g-color-base-simple-hover)}.ydb-json-tree__tree .json-inspector__show-original:before{color:var(--g-color-text-secondary)}.ydb-json-tree__tree .json-inspector__show-original:hover:after,.ydb-json-tree__tree .json-inspector__show-original:hover:before{color:var(--g-color-text-primary)}.ydb-json-tree__tree .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite{max-width:calc(100% - 50px)}.ydb-json-tree__case{left:308px;position:absolute;top:0}.ydb-json-tree .json-inspector__search{height:26px}.ydb-describe__message-container{padding:15px 0}.ydb-describe__result{display:flex;flex:0 0 auto;overflow:auto;padding:0 20px 20px 0;position:relative}.ydb-describe__copy{left:340px;position:absolute}.ydb-external-data-source-info__location,.ydb-external-table-info__location{max-width:var(--tenant-object-info-max-value-width)}.ydb-definition-list{display:flex;flex:1 1 auto;flex-direction:column}.ydb-definition-list__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-definition-list__properties-list{max-width:calc(100% - 40px)}.ydb-async-replication-paths__title,.ydb-overview-topic-stats__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-overview-topic-stats .ydb-loader{margin-top:50px}.ydb-overview-topic-stats .info-viewer__row{align-items:flex-start}.ydb-overview-topic-stats .speed-multimeter{margin-top:-5px}.ydb-overview-topic-stats .speed-multimeter__content{justify-content:flex-start}.ydb-overview-topic-stats__info .info-viewer__label-text_multiline{max-width:150px}.ydb-overview-topic-stats__bytes-written{margin-top:7px;padding-left:20px}.ydb-overview-topic-stats__bytes-written .info-viewer__label{min-width:180px}.ydb-diagnostics-table-info__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-diagnostics-table-info__row{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:flex-start}.ydb-diagnostics-table-info__col{align-items:flex-start;display:flex;flex-direction:column;justify-content:flex-start}.ydb-diagnostics-table-info__col:not(:last-child){margin-right:50px}.ydb-diagnostics-table-info__info-block{margin-bottom:20px}.ydb-diagnostics-table-info__info-block .info-viewer__items{grid-template-columns:minmax(max-content,280px)}.ydb-metric-chart{border:1px solid var(--g-color-line-generic);border-radius:8px;display:flex;flex-direction:column;padding:16px 16px 8px}.ydb-metric-chart__title{margin-bottom:10px}.ydb-metric-chart__chart{display:flex;height:100%;overflow:hidden;position:relative;width:100%}.ydb-metric-chart__error{left:50%;position:absolute;text-align:center;top:10%;transform:translateX(-50%);z-index:1}.ydb-timeframe-selector{display:flex;gap:2px}.ydb-tenant-dashboard{margin-bottom:var(--diagnostics-section-margin);width:var(--diagnostics-section-table-width)}.ydb-tenant-dashboard__controls{margin-bottom:10px}.ydb-tenant-dashboard__charts{display:flex;flex-flow:row wrap;gap:16px}.issue-tree-item{align-items:center;cursor:pointer;display:flex;height:40px;justify-content:space-between}.issue-tree-item__field{display:flex;overflow:hidden}.issue-tree-item__field_status{display:flex;white-space:nowrap}.issue-tree-item__field_additional{color:var(--g-color-text-link);cursor:pointer;width:max-content}.issue-tree-item__field_additional:hover{color:var(--g-color-text-link-hover)}.issue-tree-item__field_message{flex-shrink:0;overflow:hidden;white-space:normal;width:300px}.issue-tree-item__field-tooltip.issue-tree-item__field-tooltip{max-width:500px;min-width:500px}.issue-tree-item__field-label{color:var(--g-color-text-secondary)}.issue-tree{display:flex}.issue-tree__block{width:100%}.issue-tree__checkbox{margin:5px 0 10px}.issue-tree__info-panel{background:var(--g-color-base-generic);border-radius:4px;height:100%;margin:11px 0;padding:8px 20px;position:sticky}.issue-tree__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before,.issue-tree__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:""}.issue-tree__inspector .json-inspector__line:hover:after{background:#0000}.issue-tree__inspector .json-inspector__show-original:hover:after,.issue-tree__inspector .json-inspector__show-original:hover:before{color:#0000}.issue-tree__inspector .json-inspector__value_helper{display:none}.issue-tree__inspector .json-inspector__value{overflow:hidden;word-break:break-all}.issue-tree__inspector .json-inspector__value>span{-webkit-user-select:all;user-select:all}.issue-tree .ydb-tree-view__item{height:40px}.issue-tree .ydb-tree-view .tree-view_arrow{height:40px;width:40px}.issue-tree .ydb-tree-view .ydb-tree-view__item{margin-left:calc(24px*var(--ydb-tree-view-level))!important;padding-left:0!important}.issue-tree .ydb-tree-view .issue-tree__info-panel{margin-left:calc(24px*var(--ydb-tree-view-level))}.healthcheck__details{width:872px}.healthcheck__details-content-wrapper{overflow-x:hidden}.healthcheck__preview{display:flex;flex-direction:column;height:100%}.healthcheck__preview-title{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.healthcheck__preview-content{line-height:24px;margin:auto}.healthcheck__preview-status-icon{height:64px;width:64px}.healthcheck__preview-title-wrapper{align-items:center;display:flex;gap:8px;margin-bottom:4px}.healthcheck__preview-issue{align-items:center;display:flex;flex-direction:column;gap:4px;position:relative;top:-8px}.healthcheck__preview-issue_good{color:var(--g-color-text-positive)}.healthcheck__preview-issue_good .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-positive-light)}.healthcheck__preview-issue_degraded{color:var(--g-color-text-info)}.healthcheck__preview-issue_degraded .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-info-light)}.healthcheck__preview-issue_emergency{color:var(--g-color-text-danger)}.healthcheck__preview-issue_emergency .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-danger-light)}.healthcheck__preview-issue_unspecified{color:var(--g-color-text-misc)}.healthcheck__preview-issue_unspecified .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-misc-light)}.healthcheck__preview-issue_maintenance_required{color:var(--g-color-text-warning-heavy)}.healthcheck__preview-issue_maintenance_required .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-warning-light)}.healthcheck__self-check-status-indicator{text-wrap:nowrap;border-radius:4px;display:inline-block;font-size:13px;line-height:24px;padding:0 8px}.ydb-diagnostic-card{background-color:#0000;border:1px solid var(--g-color-line-generic);border-radius:8px;flex-shrink:0;padding:16px 16px 28px}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card_interactive:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-diagnostic-card_size_m{min-width:206px;width:206px}.ydb-diagnostic-card_size_l{min-width:289px;width:289px}.ydb-diagnostic-card_size_s{min-width:134px;width:134px}.ydb-metrics-card{min-height:252px}.ydb-metrics-card__header{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:10px}.ydb-metrics-card__label{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.ydb-metrics-card__content{color:var(--g-color-text-secondary);display:flex;flex-direction:column;gap:10px}.ydb-metrics-card__metric-title{height:var(--g-text-body-2-line-height)}.ydb-metrics-card_active .ydb-metrics-card__content{color:var(--g-color-text-complementary)}.metrics-cards{display:flex;gap:16px;margin-bottom:32px}.metrics-cards__tab{color:inherit;text-decoration:none}.confirmation-dialog__caption,.confirmation-dialog__message{white-space:pre-wrap}.ydb-save-query__dialog-row{align-items:flex-start;display:flex}.ydb-save-query__dialog-row+.ydb-save-query__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-save-query__field-title{font-weight:500;line-height:28px;margin-right:12px;white-space:nowrap}.ydb-save-query__field-title.required:after{color:var(--g-color-text-danger);content:"*"}.ydb-save-query__control-wrapper{display:flex;flex-grow:1;min-height:48px}.kv-truncated-query{max-width:100%;vertical-align:top;white-space:pre;word-break:break-word}.kv-truncated-query__message{white-space:pre-wrap}.kv-truncated-query__message_color_secondary{color:var(--g-color-text-secondary)}.kv-top-queries{display:flex;flex-direction:column;height:100%}.kv-top-queries .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-top-queries .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-top-queries__search{width:238px}.kv-top-queries__row{cursor:pointer}.kv-top-queries__query{overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:pre-wrap;word-break:break-word}.kv-top-queries__user-sid{max-width:200px;overflow:hidden;text-overflow:ellipsis}.tenant-overview{height:100%;overflow:auto;padding-bottom:20px}.tenant-overview__loader{display:flex;justify-content:center}.tenant-overview__tenant-name-wrapper{align-items:center;display:flex;overflow:hidden}.tenant-overview__top{align-items:center;display:flex;gap:4px;line-height:24px;margin-bottom:10px}.tenant-overview__top-label{font-weight:600;gap:10px;line-height:24px;margin-bottom:var(--diagnostics-section-title-margin)}.tenant-overview__info{left:0;position:sticky;width:max-content}.tenant-overview__title{font-size:var(--g-text-body-2-font-size);font-weight:700;line-height:var(--g-text-body-2-line-height);margin-bottom:10px}.tenant-overview__table:not(:last-child){margin-bottom:var(--diagnostics-section-margin)}.tenant-overview__top-queries-row{cursor:pointer}.tenant-overview__storage-info{margin-bottom:36px}.tenant-overview__memory-info{margin-bottom:36px;width:300px}.kv-detailed-overview{display:flex;flex-direction:column;gap:20px;height:100%;width:100%}.kv-detailed-overview__section{display:flex;flex-basis:calc(50% - 10px);flex-direction:column;flex-grow:1;flex-shrink:0;min-width:300px}.kv-detailed-overview__modal .g-modal__content{position:relative}.kv-detailed-overview__close-modal-button{position:absolute;right:13px;top:23px}.ydb-hot-keys__primary-key-column{align-items:center;display:flex;gap:5px}.ydb-hot-keys__help-card{left:0;margin-bottom:20px;padding:20px 40px 20px 20px;position:sticky}.ydb-hot-keys__help-card__close-button{position:absolute;right:5px;top:5px}.node-network{border:1px solid #0000;border-radius:4px;box-sizing:border-box;color:var(--g-color-text-complementary);cursor:pointer;display:inline-block;font-size:12px;height:14px;line-height:14px;margin-bottom:5px;margin-right:5px;padding:0 5px;text-align:center;text-transform:uppercase;width:14px}.node-network_id{height:14px;width:42px}.node-network_blur{opacity:.25}.node-network_grey{background:var(--ydb-color-status-grey)}.node-network_black{background-color:var(--ydb-color-status-black);color:var(--g-color-text-light-primary)}.node-network_green{background-color:var(--ydb-color-status-green)}.node-network_yellow{background-color:var(--ydb-color-status-yellow)}.node-network_red{background-color:var(--ydb-color-status-red)}.node-network:hover{border:1px solid var(--g-color-text-primary)}.network{flex-direction:column;font-size:var(--g-text-body-2-font-size);justify-content:space-between;line-height:var(--g-text-body-2-line-height);max-width:1305px}.network,.network__nodes-row{display:flex;flex-grow:1;height:100%;overflow:auto}.network__nodes-row{align-items:flex-start;flex-direction:row}.network__inner{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.network__right{height:100%;padding-left:20px;width:100%}.network__left{border-right:1px solid var(--g-color-base-generic-accent);height:100%}.network__placeholder{align-items:center;display:flex;flex-direction:column;flex-grow:1;height:100%;justify-content:center;width:100%}.network__placeholder-text{margin-top:15px}.network__placeholder-img{color:#0000}.network__nodes{display:flex;flex-wrap:wrap}.network__nodes-container{min-width:325px}.network__nodes-container_right{margin-right:60px}.network__nodes-title{border-bottom:1px solid var(--g-color-base-generic-accent);color:var(--g-color-text-secondary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:0 0 15px}.network__link{color:var(--g-color-base-brand);text-decoration:none}.network__title{font-size:var(--g-text-body-1-font-size);font-weight:500;line-height:var(--g-text-body-1-line-height);margin:20px 0}.network__checkbox-wrapper{align-items:center;display:flex}.network__checkbox-wrapper label{white-space:nowrap}.network__label{margin-bottom:16px}.network__controls{display:flex;gap:12px;margin:0 16px 16px 0}.network__controls-wrapper{display:flex;flex:1 1 auto;flex-direction:row;flex-direction:column}.network__select{margin:0 15px;max-width:115px}.network__rack-column{align-items:center;background-color:#00000012;border-radius:4px;display:flex;flex-direction:column;margin-bottom:5px;margin-right:5px;padding:2px}.network__rack-column .node-network{margin-right:0}.ydb-diagnostics-partitions-columns-header__multiline{white-space:normal}.ydb-diagnostics-partitions-columns-header__read-session{white-space:normal;width:80px}.ydb-diagnostics-partitions-columns-header__lags{white-space:nowrap}.ydb-diagnostics-partitions-columns-header__messages{white-space:normal;width:90px}.ydb-diagnostics-partitions-columns-header__messages-popover-content{max-width:200px}.ydb-diagnostics-partitions-columns__lags-header{text-align:center}.ydb-diagnostics-partitions{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-partitions__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-partitions__consumer-select{width:220px}.ydb-diagnostics-partitions__select-option_empty{color:var(--g-color-text-hint)}.ydb-diagnostics-partitions__search{width:238px}.ydb-diagnostics-partitions__search_partition{width:100px}.ydb-diagnostics-partitions__search_general{width:280px}.ydb-diagnostics-partitions__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-partitions__table-content{height:100%;overflow:auto}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-partitions__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-partitions__table .data-table__td:nth-child(0){border-right:unset;box-shadow:unset}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{box-shadow:unset}.date-range__range-input_s{width:200px}.date-range__range-input_m{width:300px}.date-range__range-input_l{width:350px}.date-range__range-input input{cursor:pointer}.top-shards__hint{left:0;position:sticky;width:max-content}.kv-tenant-diagnostics{display:flex;flex-direction:column;height:100%;overflow:hidden}.kv-tenant-diagnostics__header-wrapper{background-color:var(--g-color-base-background);padding:0 20px 16px}.kv-tenant-diagnostics__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex;justify-content:space-between}.kv-tenant-diagnostics__tabs .g-tabs_direction_horizontal{box-shadow:unset}.kv-tenant-diagnostics__tab{margin-right:40px;text-decoration:none}.kv-tenant-diagnostics__tab:first-letter{text-transform:uppercase}.kv-tenant-diagnostics__page-wrapper{flex-grow:1;overflow:auto;padding:0 20px;width:100%}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .data-table__sticky_moving,.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .ydb-paginated-table__head{top:46px!important}.ydb-queries-history{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-queries-history .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-queries-history.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-queries-history__search{width:238px}.ydb-queries-history__table-row{cursor:pointer}.ydb-queries-history__query{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kv-pane-visibility-button_hidden{display:none}.kv-pane-visibility-button_bottom{transform:rotate(180deg)}.kv-pane-visibility-button_bottom.rotate{transform:rotate(0)}.kv-pane-visibility-button_left{transform:rotate(-90deg)}.kv-pane-visibility-button_left.rotate{transform:rotate(90deg)}.kv-pane-visibility-button_top.rotate{transform:rotate(180deg)}.ydb-fullscreen{flex-grow:1;overflow:hidden}.ydb-fullscreen_fullscreen{background-color:var(--g-color-base-background);inset:0;position:absolute;z-index:10}.ydb-fullscreen__close-button{display:none;position:fixed;right:20px;top:8px;z-index:11}.ydb-fullscreen_fullscreen .ydb-fullscreen__close-button{display:block}.ydb-fullscreen__content{display:flex;height:100%;overflow:auto;width:100%}.ydb-query-result-table__cell{cursor:pointer;display:inline-block;max-width:600px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-query-result-table__message{padding:15px 10px}.kv-preview{display:flex;flex:1 1 auto;flex-direction:column;height:100%}.kv-preview .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-preview .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-preview__header{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;flex-shrink:0;height:53px;justify-content:space-between;padding:0 20px;position:sticky;top:0}.kv-preview__title{display:flex;gap:var(--g-spacing-1)}.kv-preview__table-name{color:var(--g-color-text-complementary);margin-left:var(--g-spacing-1)}.kv-preview__controls-left{display:flex;gap:var(--g-spacing-1)}.kv-preview__message-container{padding:15px 20px}.kv-preview__loader-container{align-items:center;display:flex;height:100%;justify-content:center}.kv-preview__result{overflow:auto;padding-left:10px;width:100%}.ydb-query-settings-description__message{display:flex;flex-wrap:wrap;white-space:pre}.ydb-query-editor-controls{align-items:flex-end;display:flex;flex:0 0 40px;gap:24px;justify-content:space-between;min-height:40px;padding:5px 0}.ydb-query-editor-controls__left,.ydb-query-editor-controls__right{display:flex;gap:12px}.ydb-query-editor-controls__mode-selector__button{margin-left:2px;width:241px}.ydb-query-editor-controls__mode-selector__button-content{align-items:center;display:flex;justify-content:space-between;width:215px}.ydb-query-editor-controls__mode-selector__popup{width:241px}.ydb-query-editor-controls__item-with-popover{align-items:center;display:flex;height:24px;line-height:normal}.ydb-query-editor-controls__popover{max-width:420px;white-space:pre-wrap}.kv-divider{background-color:var(--g-color-line-generic);height:100%;margin:0 4px;width:1px}.kv-query-execution-status{align-items:center;color:var(--g-color-text-complementary);display:flex;gap:4px}.kv-query-execution-status__result-status-icon{color:var(--g-color-text-positive)}.kv-query-execution-status__result-status-icon_error{color:var(--g-color-text-danger)}.kv-query-execution-status__query-settings-icon{color:var(--g-color-text-hint)}.cancel-query-button__stop-button_error{animation:errorAnimation .5s linear}@keyframes errorAnimation{41%,8%{transform:translateX(-2px)}25%,58%{transform:translateX(2px)}75%{transform:translateX(-1px)}92%{transform:translateX(1px)}0%,to{transform:translateX(0)}}.ydb-query-duration{align-items:center;color:var(--g-color-text-complementary);display:flex;margin-left:10px}.ydb-query-duration__item-with-popover{display:flex;white-space:nowrap}.ydb-query-duration__popover{align-items:center;display:flex}.ydb-query-duration__popover-content{max-width:300px}.ydb-query-duration__popover-button{display:flex}.ydb-query-settings-banner{margin:var(--g-spacing-1) var(--g-spacing-5)}.ydb-query-ast{height:100%;overflow:hidden;white-space:pre-wrap;width:100%}.ydb-query-result-stub-message{padding:15px 20px}.ydb-query-explain-graph__canvas-container{height:100%;overflow-y:auto;width:100%}.query-info-dropdown__menu-item{align-items:start}.query-info-dropdown__menu-item-content{display:flex;flex-direction:column;padding:var(--g-spacing-1) 0}.query-info-dropdown__icon{margin-right:var(--g-spacing-2);margin-top:var(--g-spacing-2)}.ydb-query-json-viewer__inspector{height:100%;overflow-y:auto;padding:15px 10px;width:100%}.ydb-query-result-error__message{padding:15px 10px}.ydb-query-result-sets-viewer__tabs{padding-left:10px}.ydb-query-result-sets-viewer__head{margin-top:var(--g-spacing-4)}.ydb-query-result-sets-viewer__row-count{margin-left:var(--g-spacing-1)}.ydb-query-result-sets-viewer__result-wrapper{display:flex;flex-direction:column;width:100%}.ydb-query-result-sets-viewer__result{display:flex;flex-direction:column;flex-grow:1;overflow:auto;padding-left:10px}.ydb-query-result-sets-viewer__result .data-table__box .data-table__table-wrapper{padding-bottom:20px}.ydb-query-result-sets-viewer__result .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.ydb-query-result-sets-viewer__result .data-table__table-wrapper{padding-bottom:0}.ydb-table{--ydb-table-cell-height:40px}.ydb-table__table-header-content{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:inline-flex;height:100%;padding:var(--g-spacing-1) var(--g-spacing-2);width:100%}.ydb-table__table{border-collapse:collapse;border-spacing:0;table-layout:fixed}.ydb-table__table tr:hover{background-color:var(--g-color-base-simple-hover)!important}.ydb-table__table tr:nth-of-type(odd){background-color:var(--g-color-base-generic-ultralight)}.ydb-table__table_width_max{width:100%}.ydb-table__table-header-cell{background-color:var(--g-color-base-background);font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-subheader-2-line-height);padding:0;text-align:left;vertical-align:middle}:is(.ydb-table__table-header-cell_align_right) .ydb-table__table-header-content{justify-content:flex-end;text-align:right}.ydb-table__table-cell{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:var(--ydb-table-cell-height)!important;line-height:var(--g-text-body-2-line-height);padding:0}.ydb-table__table-cell_align_right{text-align:right!important}.ydb-table__table-cell_vertical-align_top{vertical-align:top!important}.ydb-query-simplified-plan{height:100%;overflow:auto;padding:0 15px 15px;width:100%}.ydb-query-simplified-plan__name{align-items:center;display:flex;gap:var(--g-spacing-1);max-width:100%}.ydb-query-simplified-plan__metrics-cell{padding:var(--g-spacing-1) var(--g-spacing-2)}.ydb-query-simplified-plan__operation-params{color:var(--g-color-text-secondary)}.ydb-query-simplified-plan__operation-name{font-weight:500;height:100%;max-width:100%;position:relative}.ydb-query-simplified-plan__divider{bottom:0;box-shadow:1px 0 0 0 var(--g-color-line-generic) inset;height:100%;position:absolute;width:12px}.ydb-query-simplified-plan__divider_last{border-radius:0 0 0 1px;bottom:unset;box-shadow:1px -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-simplified-plan__divider_horizontal{bottom:unset;box-shadow:0 -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-simplified-plan__divider_first{height:calc(100% - 30px)}.ydb-query-simplified-plan__operation-content{height:100%;max-width:100%;padding:var(--g-spacing-1) 0;word-break:break-word}.ydb-query-simplified-plan__operation-name-content{display:flex;flex-grow:1}.ydb-query-result__controls{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;height:53px;justify-content:space-between;padding:12px 20px;position:sticky;top:0;z-index:2}.ydb-query-result__controls-left{align-items:center;display:flex;gap:12px;height:100%}.ydb-query-result__controls-right{display:flex;gap:4px}.ydb-query-result__elapsed-label{margin-left:var(--g-spacing-3)}.ydb-query-settings-select__selector{width:100%}.ydb-query-settings-select__popup{max-width:320px}.ydb-query-settings-select__item-description{color:var(--g-color-text-secondary);white-space:pre-wrap}.ydb-query-settings-select__item{padding:var(--g-spacing-1) 0}.ydb-query-settings-dialog__dialog-row+.ydb-query-settings-dialog__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-query-settings-dialog__field-title{flex:4 1;font-weight:500;line-height:var(--g-text-header-2-line-height);margin-right:var(--g-spacing-3);white-space:nowrap}.ydb-query-settings-dialog .g-dialog-footer__bts-wrapper{width:100%}.ydb-query-settings-dialog__dialog-body{padding-top:var(--g-spacing-6)}.ydb-query-settings-dialog__control-wrapper{display:flex;flex:6 1}.ydb-query-settings-dialog__limit-rows,.ydb-query-settings-dialog__timeout{margin-right:var(--g-spacing-2);width:33.3%}.ydb-query-settings-dialog__documentation-link,.ydb-query-settings-dialog__timeout-suffix{align-items:center;color:var(--g-color-text-secondary);display:flex}.ydb-query-settings-dialog__documentation-link{margin-left:var(--g-spacing-4)}.ydb-query-settings-dialog__buttons-container{display:flex;justify-content:space-between;width:100%}.ydb-query-settings-dialog__main-buttons{display:flex;gap:10px}.query-editor{display:flex;flex:1 1 auto;flex-direction:column;height:100%;position:relative}.query-editor .data-table__box .data-table__table-wrapper{padding-bottom:20px}.query-editor .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.query-editor__monaco{border:1px solid var(--g-color-line-generic);display:flex;height:100%;position:relative;width:100%}.query-editor__monaco-wrapper{height:calc(100% - 49px);min-height:0;width:100%}.query-editor__pane-wrapper{background-color:var(--g-color-base-background);display:flex;flex-direction:column;z-index:2}.query-editor__pane-wrapper_top{border-bottom:1px solid var(--g-color-line-generic);padding:0 16px}.ydb-saved-queries{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-saved-queries .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-saved-queries.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-saved-queries__search{width:238px}.ydb-saved-queries__row{cursor:pointer}.ydb-saved-queries__row :hover .ydb-saved-queries__controls{display:flex}.ydb-saved-queries__query-name{overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap}.ydb-saved-queries__query{align-items:center;display:flex;flex-direction:row;justify-content:space-between}.ydb-saved-queries__query-body{flex-grow:1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre}.ydb-saved-queries__controls{display:none}.ydb-saved-queries__dialog-query-name{font-weight:500}.ydb-query{display:flex;flex:1 1 auto;flex-direction:column;max-height:calc(100% - 56px)}.ydb-query__tabs{padding:0 20px 16px}.ydb-query__content{height:100%;overflow:hidden}.ydb-tenant-navigation{padding:12px 16px 8px}.ydb-tenant-navigation__item{align-items:center;display:flex;gap:5px}.ydb-tenant-navigation__icon{flex-shrink:0}.ydb-tenant-navigation__text{overflow:hidden;text-overflow:ellipsis}.object-general{display:flex;flex-direction:column;flex-grow:1;height:100%;max-height:100%;width:100%}.object-general__loader{display:flex}.ydb-acl{width:100%}.ydb-acl__result{padding-bottom:var(--g-spacing-4);padding-left:var(--g-spacing-2)}.ydb-acl__result_no-title{margin-top:var(--g-spacing-3)}.ydb-acl__definition-content{align-items:flex-end;display:flex;flex-direction:column}.ydb-acl__list-title{font-weight:600;margin:var(--g-spacing-3) 0 var(--g-spacing-5)}.ydb-acl__group-label,.ydb-acl__list-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height)}.ydb-schema-create-directory-dialog__label{display:flex;flex-direction:column;margin-bottom:8px}.ydb-schema-create-directory-dialog__description{color:var(--g-color-text-secondary)}.ydb-schema-create-directory-dialog__input-wrapper{min-height:48px}.ydb-object-summary{height:100%;max-height:100%;overflow:hidden;width:100%}.ydb-object-summary,.ydb-object-summary__overview-wrapper{display:flex;flex-direction:column;flex-grow:1;position:relative}.ydb-object-summary__overview-wrapper{overflow:auto;padding:0 12px 16px}.ydb-object-summary_hidden{visibility:hidden}.ydb-object-summary__actions{background-color:var(--g-color-base-background);position:absolute;right:5px;top:19px}.ydb-object-summary__button_hidden{display:none}.ydb-object-summary__tree-wrapper{display:flex;flex-direction:column}.ydb-object-summary__tree{flex:1 1 auto;height:100%;overflow-y:scroll;padding:0 12px 12px 16px}.ydb-object-summary__tree-header{padding:23px 12px 17px 20px}.ydb-object-summary__sticky-top{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:5}.ydb-object-summary__tabs{padding:8px 12px 16px}.ydb-object-summary__tabs-inner{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}.ydb-object-summary__tab{text-decoration:none}.ydb-object-summary__info{display:flex;flex-direction:column;overflow:hidden}.ydb-object-summary__info-controls{display:flex;gap:4px}.ydb-object-summary__info-action-button{background-color:var(--g-color-base-background)}.ydb-object-summary__info-action-button_hidden{display:none}.ydb-object-summary__rotated90{transform:rotate(-90deg)}.ydb-object-summary__rotated180{transform:rotate(180deg)}.ydb-object-summary__rotated270{transform:rotate(90deg)}.ydb-object-summary__info-header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;justify-content:space-between;padding:12px 12px 10px}.ydb-object-summary__info-title{align-items:center;display:flex;font-weight:600;overflow:hidden}.ydb-object-summary__path-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-object-summary__entity-type{background-color:var(--g-color-base-generic);border-radius:3px;display:inline-block;font-weight:400;margin-right:5px;padding:3px 8px;text-transform:lowercase}.ydb-object-summary__entity-type_error{background-color:#0000;padding:3px 0}.ydb-object-summary__overview-title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-object-summary__overview-item-content{text-align:end;white-space:nowrap}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.tenant-page{display:flex;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:hidden}.tenant-page__main{flex-grow:1}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/684.90fbb646.chunk.css b/ydb/core/viewer/monitoring/static/css/684.90fbb646.chunk.css new file mode 100644 index 00000000000..24b6299ee04 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/684.90fbb646.chunk.css @@ -0,0 +1 @@ +@charset "UTF-8";.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-pdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.ydb-pdisk-decommission-button__button,.ydb-pdisk-decommission-button__popup{width:160px}.ydb-vdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.ydb-pdisk-space-distribution .storage-disk-progress-bar{height:100%}.ydb-pdisk-space-distribution__pdisk-bar{display:flex;flex-direction:column;flex-grow:1;gap:var(--g-spacing-2);max-width:800px;min-width:500px;padding:var(--g-spacing-2)}.ydb-pdisk-space-distribution__slot-wrapper{background-color:var(--g-color-base-background);z-index:1}.ydb-pdisk-space-distribution__slot{display:flex;width:100%}.ydb-pdisk-space-distribution__slot-content{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:space-between;line-height:15px;padding:0 var(--g-spacing-2);z-index:1}.ydb-pdisk-space-distribution__slot-id{font-weight:600;margin-right:var(--g-spacing-3)}.ydb-pdisk-space-distribution__vdisk-popup{padding:var(--g-spacing-half) var(--g-spacing-2) var(--g-spacing-2)}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-pdisk-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-pdisk-page__controls,.ydb-pdisk-page__info,.ydb-pdisk-page__meta,.ydb-pdisk-page__tabs,.ydb-pdisk-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-pdisk-page__meta{margin-top:20px}.ydb-pdisk-page__tabs{margin-bottom:0}.ydb-pdisk-page__disk-distribution{padding:20px 0}.ydb-pdisk-page__title{flex-direction:row}.ydb-pdisk-page__controls,.ydb-pdisk-page__title{align-items:center;display:flex;gap:var(--g-spacing-2)}.ydb-pdisk-page__tabs{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/6989.10e247c3.chunk.css b/ydb/core/viewer/monitoring/static/css/6989.10e247c3.chunk.css deleted file mode 100644 index 1cd994acaac..00000000000 --- a/ydb/core/viewer/monitoring/static/css/6989.10e247c3.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.tag{background:var(--g-color-base-generic);border-radius:3px;color:var(--g-color-text-primary);font-size:12px;padding:2px 5px;white-space:nowrap}.tag:last-child{margin-right:0}.tag_type_blue{background-color:var(--g-color-celestial-thunder)}.basic-node-viewer__link,.link{color:var(--g-color-text-link);text-decoration:none}.basic-node-viewer__link:hover,.link:hover{color:var(--g-color-text-link-hover)}.basic-node-viewer{align-items:center;display:flex;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:15px 0}.basic-node-viewer__title{font-weight:600;margin:0 20px 0 0;text-transform:uppercase}.basic-node-viewer__id{margin:0 15px 0 24px}.basic-node-viewer__label{color:var(--g-color-text-hint);line-height:18px;margin-right:10px;white-space:nowrap}.basic-node-viewer__link{margin-left:5px}.ydb-pool-usage{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-pool-usage__info{align-items:center;display:flex;justify-content:space-between}.ydb-pool-usage__pool-name{color:var(--g-color-text-primary)}.ydb-pool-usage__value{align-items:center;display:flex}.ydb-pool-usage__threads{color:var(--g-color-text-hint);font-size:var(--g-text-body-1-font-size)}.ydb-pool-usage__percents{color:var(--g-color-text-primary);font-size:var(--g-text-body-1-font-size);margin-right:2px}.ydb-pool-usage__visual{align-items:center;background-color:var(--g-color-base-generic-accent);border-radius:4px;display:flex;font-size:var(--g-text-body-2-font-size);height:6px;justify-content:center;overflow:hidden;position:relative}.ydb-pool-usage__usage-line{height:100%;left:0;position:absolute;top:0}.ydb-pool-usage__usage-line_type_green{background-color:var(--ydb-color-status-green)}.ydb-pool-usage__usage-line_type_blue{background-color:var(--ydb-color-status-blue)}.ydb-pool-usage__usage-line_type_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-pool-usage__usage-line_type_red{background-color:var(--ydb-color-status-red)}.full-node-viewer{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.full-node-viewer__common-info{align-items:stretch;display:flex;flex-direction:column;justify-content:flex-start}.full-node-viewer__section{border-radius:10px}.full-node-viewer__section_pools{grid-gap:7px 20px;display:grid;grid-template-columns:110px 110px}.full-node-viewer .info-viewer__label{min-width:100px}.full-node-viewer__section-title{font-weight:600;margin:15px 0 10px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__icon,.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:"Â ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.g-dialog-body{flex:1 1 auto;overflow-y:auto;padding:10px var(--_--side-padding)}.g-dialog-body_has-borders{border-block-end:1px solid var(--g-color-line-generic)}.g-dialog-body_has-borders,.g-dialog-divider{border-block-start:1px solid var(--g-color-line-generic)}.g-dialog-divider{margin:0 calc(var(--_--side-padding)*-1)}.g-dialog-footer{align-items:center;display:flex;padding:28px var(--_--side-padding)}.g-dialog-footer__bts-wrapper{display:flex;gap:10px}.g-dialog-footer__children{align-items:center;display:flex;flex-grow:1;height:100%}.g-dialog-footer__button{min-width:128px;position:relative}.g-dialog-footer__error{color:var(--g-color-text-danger);padding:10px}.g-dialog-header{align-items:center;color:var(--g-color-text-primary);display:flex;justify-content:flex-start;line-height:24px;padding-block:20px 10px;padding-inline:var(--_--side-padding) calc(var(--_--side-padding) + var(--_--close-button-space)*var(--g-flow-is-ltr) + var(--_--close-button-space)*var(--g-flow-is-rtl))}.g-dialog-header__caption{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-dialog_size_s{--_--width:480px}.g-dialog_size_m{--_--width:720px}.g-dialog_size_l{--_--width:900px}.g-dialog_has-close{--_--close-button-space:24px}.g-modal{-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--g-color-sfx-veil);display:none;inset:0;margin:-9999px 0 0 -9999px;overflow:auto;position:fixed;visibility:hidden;z-index:1000}.g-modal__content-aligner{align-items:center;display:inline-flex;justify-content:center;min-height:100%;min-width:100%}.g-modal__content-wrapper{margin:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{border-radius:var(--g-modal-border-radius,5px)}.g-modal__content{background-color:var(--g-color-base-modal)}.g-modal__content_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-modal,.g-modal__content{animation-fill-mode:forwards;animation-timing-function:ease-out;outline:none}.g-modal_exit_active,.g-modal_open{display:block;margin:0;visibility:visible}.g-modal_appear_active,.g-modal_enter_active{animation-duration:.15s;animation-name:g-modal-open}.g-modal_appear_active .g-modal__content,.g-modal_enter_active .g-modal__content{animation-duration:.15s;animation-name:g-modal-content-open}.g-modal_exit_active{animation-duration:.2s;animation-name:g-modal}@keyframes g-modal{0%{opacity:1}to{opacity:0}}@keyframes g-modal-open{0%{opacity:0}to{opacity:1}}@keyframes g-modal-content-open{0%{transform:scale(.75)}to{transform:scale(1)}}.ydb-pdisk-info__links,.ydb-vdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)}.kv-node-structure{display:flex;flex-shrink:0;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:auto;position:relative}.kv-node-structure__error{padding:20px 20px 0}.kv-node-structure__pdisk{border:1px solid var(--g-color-line-generic);border-radius:5px;display:flex;flex-direction:column;margin-bottom:8px;padding:0 10px 0 20px;width:573px}.kv-node-structure__pdisk-id{align-items:flex-end;display:flex}.kv-node-structure__pdisk-header{align-items:center;display:flex;height:48px;justify-content:space-between}.kv-node-structure__pdisk-title-wrapper{align-items:center;display:flex;font-weight:600;gap:16px}.kv-node-structure__pdisk-title-wrapper .entity-status__status-icon{margin-right:0}.kv-node-structure__pdisk-title-item{display:flex;gap:4px}.kv-node-structure__pdisk-title-item-label{color:var(--g-color-text-secondary);font-weight:400}.kv-node-structure__pdisk-title-id{min-width:110px}.kv-node-structure__pdisk-title-type{justify-content:flex-end;min-width:50px}.kv-node-structure__pdisk-title-size{min-width:150px}.kv-node-structure__pdisk-details{margin-bottom:20px}.kv-node-structure__link{color:var(--g-color-base-brand);text-decoration:none}.kv-node-structure__vdisks-header{font-weight:600}.kv-node-structure__vdisks-container{margin-bottom:42px}.kv-node-structure__vdisk-details{max-height:90vh;max-width:unset;min-width:200px;overflow:auto}.kv-node-structure__vdisk-details .vdisk-pdisk-node__column{margin-bottom:0}.kv-node-structure__vdisk-details .vdisk-pdisk-node__section{padding-bottom:0}.kv-node-structure__vdisk-id{align-items:center;display:flex}.kv-node-structure__vdisk-details-button_selected,.kv-node-structure__vdisk-id_selected{color:var(--g-color-text-info)}.kv-node-structure__external-button{align-items:center;display:inline-flex;margin-left:4px;transform:translateY(-1px)}.kv-node-structure__external-button_hidden{visibility:hidden}.kv-node-structure .data-table__row:hover .kv-node-structure__external-button_hidden{visibility:visible}.kv-node-structure__selected-vdisk{animation:onSelectedVdiskAnimation 4s}@keyframes onSelectedVdiskAnimation{0%{background-color:var(--g-color-base-info-light-hover)}}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.node{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.node__header{margin:16px 20px}.node__content{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto;position:relative}.node__storage{height:100%;overflow:auto;padding:0 20px}.node__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex;justify-content:space-between;padding:0 20px}.node__tab{margin-right:40px;text-decoration:none}.node__tab:last-child{margin-right:0}.node__tab:first-letter{text-transform:uppercase}.node__overview-wrapper{padding:0 20px 20px}.node__node-page-wrapper{height:100%;padding:20px}.node__error{padding:0 20px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/7750.8e5e0423.chunk.css b/ydb/core/viewer/monitoring/static/css/7750.8e5e0423.chunk.css new file mode 100644 index 00000000000..c05c0ec4d3c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/7750.8e5e0423.chunk.css @@ -0,0 +1,3 @@ +@charset "UTF-8";.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:" ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-item-expand-icon{flex-shrink:0}.g-list-item-view{align-items:center;display:flex;flex-grow:1;flex-shrink:0}.g-list-item-view__content{height:100%;width:100%}.g-list-item-view__main-content{display:grid;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__slot{flex-shrink:0}.g-list-recursive-renderer{margin:0;padding:0}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.gc-help-popover__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gc-help-popover__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.json-inspector,.json-inspector__selection{font:14px/1.4 Consolas,monospace}.json-inspector__leaf{padding-left:10px}.json-inspector__line{cursor:default;display:block;position:relative}.json-inspector__line:after{bottom:0;content:"";left:-200px;pointer-events:none;position:absolute;right:-50px;top:0;z-index:-1}.json-inspector__line:hover:after{background:#0000000f}.json-inspector__leaf_composite>.json-inspector__line{cursor:pointer}.json-inspector__flatpath,.json-inspector__radio{display:none}.json-inspector__value{margin-left:5px}.json-inspector__search{margin:0 10px 10px 0;min-width:300px;padding:2px}.json-inspector__key{color:#505050}.json-inspector__not-found,.json-inspector__value_helper,.json-inspector__value_null{color:#b0b0b0}.json-inspector__value_string{color:#798953}.json-inspector__value_boolean{color:#75b5aa}.json-inspector__value_number{color:#d28445}.json-inspector__hl{background:#ff0;border-radius:2px;box-shadow:0 -1px 0 2px #ff0}.json-inspector__show-original{color:#666;cursor:pointer;display:inline-block;padding:0 6px}.json-inspector__show-original:hover{color:#111}.json-inspector__show-original:before{content:"⥂"}.json-inspector__show-original:hover:after{content:" expand"}.gc-definition-list__list{margin:0}.gc-definition-list__group-title{margin-block-end:var(--g-spacing-3)}.gc-definition-list__group-title:not(:first-of-type){margin-block-start:var(--g-spacing-5)}.gc-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.gc-definition-list__item+.gc-definition-list__item{margin-block-start:var(--g-spacing-4)}.gc-definition-list__item_grouped+.gc-definition-list__item_grouped{margin-block-start:var(--g-spacing-3)}.gc-definition-list_margin:not(:first-of-type){margin-block-start:var(--g-spacing-5)}.gc-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 auto;max-width:300px;overflow:hidden;position:relative;width:300px}.gc-definition-list__term-wrapper{color:var(--g-color-text-secondary);flex:0 1 auto;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.gc-definition-list__term-container_multiline .gc-definition-list__term-wrapper{white-space:unset}.gc-definition-list__term-container_multiline .gc-definition-list__item-note-tooltip{position:absolute}.gc-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:40px}.gc-definition-list__dots_with-note{margin-inline-start:15px;min-width:25px}.gc-definition-list__definition{flex:0 1 auto;margin:0}.gc-definition-list_responsive .gc-definition-list__term-container{flex:1 0 auto}.gc-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.gc-definition-list__copy-container:hover .gc-definition-list__copy-button{opacity:1}.gc-definition-list__copy-container_icon-inside{margin-inline-end:unset;padding-inline-end:unset}.gc-definition-list__copy-container_icon-inside .gc-definition-list__copy-button{inset-block-start:0}.gc-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.gc-definition-list__copy-button:focus-visible{opacity:1}.gc-definition-list_vertical .gc-definition-list__term-container{flex:1 0 auto}.gc-definition-list_vertical .gc-definition-list__item{flex-direction:column;gap:var(--g-spacing-half)}.gc-definition-list_vertical .gc-definition-list__item+.gc-definition-list__item{margin-block-start:var(--g-spacing-3)}.gc-definition-list_vertical .gc-definition-list__group-title:not(:first-of-type),.gc-definition-list_vertical .gc-definition-list_margin:not(:first-of-type){margin-block-start:var(--g-spacing-8)}.chartkit-loader{align-items:center;display:flex;justify-content:center}.chartkit,.chartkit-loader{height:100%;width:100%}.chartkit_mobile .chartkit-scrollable-node{max-height:3000px}.chartkit-theme_common{--highcarts-navigator-border:var(--g-color-line-generic);--highcarts-navigator-track:var(--g-color-base-generic);--highcarts-navigator-body:var(--g-color-scroll-handle);--highcharts-series-border:var(--g-color-base-background);--highcharts-grid-line:var(--g-color-line-generic);--highcharts-axis-line:var(--g-color-line-generic);--highcharts-tick:var(--g-color-line-generic);--highcharts-title:var(--g-color-text-primary);--highcharts-axis-labels:var(--g-color-text-secondary);--highcharts-data-labels:var(--g-color-text-secondary);--highcharts-plot-line-label:var(--g-color-text-secondary);--highcharts-legend-item:var(--g-color-text-secondary);--highcharts-legend-item-hover:var(--g-color-text-primary);--highcharts-legend-item-hidden:var(--g-color-text-hint);--highcharts-floating-bg:var(--g-color-infographics-tooltip-bg);--highcharts-tooltip-text:var(--g-color-text-primary);--highcharts-tooltip-bg:var(--highcharts-floating-bg);--highcharts-tooltip-alternate-bg:var(--g-color-base-generic);--highcharts-tooltip-text-complementary:var(--g-color-text-secondary);--highcharts-holiday-band:var(--g-color-base-generic)}.ydb-tree-view{--ydb-tree-view-level:0;font-size:13px;line-height:18px}.ydb-tree-view,.ydb-tree-view *{box-sizing:border-box}.ydb-tree-view__item{align-items:center;border-bottom:1px solid var(--g-color-line-generic-solid);cursor:pointer;display:flex;height:24px;padding-left:calc(24px*var(--ydb-tree-view-level));padding-right:3px}.ydb-tree-view__item:hover{background-color:var(--g-color-base-simple-hover)}.ydb-tree-view__item:hover .ydb-tree-view__actions{display:flex}.ydb-tree-view__item_active{background-color:var(--g-color-base-selection);font-weight:700}.ydb-tree-view__item_active:hover{background-color:var(--g-color-base-selection-hover)}.ydb-tree-view__content{align-items:center;display:flex;flex-grow:1;overflow:hidden}.ydb-tree-view__icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex-shrink:0;height:24px;justify-content:center;width:24px}.ydb-tree-view__icon svg{display:block}.ydb-tree-view__text{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-tree-view__actions{align-items:center;display:none;margin-left:6px}.ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%280, 0, 0, 0.85%29"/></svg>') no-repeat 50%;border:none;cursor:pointer;flex-shrink:0;height:24px;padding:0;width:24px}.g-root_theme_dark .ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%28255, 255, 255, 0.85%29"/></svg>') no-repeat 50%}.ydb-tree-view__arrow:focus-visible{outline:2px solid var(--g-color-line-focus)}.ydb-tree-view__arrow:not(.ydb-tree-view__arrow_collapsed){transform:rotate(90deg)}.ydb-tree-view__arrow_hidden{visibility:hidden}.ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:24px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:48px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:72px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:96px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:120px}.g-card{--_--background-color:#0000;--_--border-color:#0000;--_--border-width:0;--_--box-shadow:none;background-color:var(--g-card-background-color,var(--_--background-color));border:var(--g-card-border-width,var(--_--border-width)) solid var(--g-card-border-color,var(--_--border-color));border-radius:var(--g-card-border-radius,var(--_--border-radius));box-shadow:var(--g-card-box-shadow,var(--_--box-shadow));box-sizing:border-box;outline:none}.g-card_theme_normal{--_--border-color:var(--g-color-line-generic);--_--background-color:var(--g-color-base-generic)}.g-card_theme_info{--_--border-color:var(--g-color-line-info);--_--background-color:var(--g-color-base-info-light)}.g-card_theme_success{--_--border-color:var(--g-color-line-positive);--_--background-color:var(--g-color-base-positive-light)}.g-card_theme_warning{--_--border-color:var(--g-color-line-warning);--_--background-color:var(--g-color-base-warning-light)}.g-card_theme_danger{--_--border-color:var(--g-color-line-danger);--_--background-color:var(--g-color-base-danger-light)}.g-card_theme_utility{--_--border-color:var(--g-color-line-utility);--_--background-color:var(--g-color-base-utility-light)}.g-card_view_clear,.g-card_view_outlined{--_--background-color:#0000}.g-card_view_outlined{--_--border-width:1px}.g-card_type_action{--_--background-color:var(--g-color-base-float);--_--box-shadow:0px 1px 5px var(--g-color-sfx-shadow)}.g-card_type_action:after{border-radius:var(--g-card-border-radius,var(--_--border-radius));inset:0;pointer-events:none;position:absolute}.g-card_type_action.g-card_clickable{cursor:pointer;position:relative}.g-card_type_action.g-card_clickable:hover{--_--box-shadow:0px 3px 10px var(--g-color-sfx-shadow)}.g-card_type_action.g-card_clickable:focus-visible:after{content:"";outline:2px solid var(--g-color-line-focus)}.g-card_type_selection{--_--border-width:1px;--_--border-color:var(--g-color-line-generic);position:relative}.g-card_type_selection:before{inset:-1px}.g-card_type_selection:after,.g-card_type_selection:before{border-radius:var(--g-card-border-radius,var(--_--border-radius));pointer-events:none;position:absolute}.g-card_type_selection:after{inset:0}.g-card_type_selection.g-card_clickable{cursor:pointer}.g-card_type_selection.g-card_clickable:hover{--_--border-color:#0000}.g-card_type_selection.g-card_clickable:hover:not(.g-card_selected):before{border:2px solid var(--g-color-line-brand);content:"";opacity:.5}.g-card_type_selection.g-card_clickable:hover:focus-visible:before{border-color:#0000}.g-card_type_selection.g-card_clickable:focus-visible:after{content:"";outline:2px solid var(--g-color-line-focus)}.g-card_type_selection.g-card_selected:not(.g-card_disabled){--_--border-color:#0000}.g-card_type_selection.g-card_selected:not(.g-card_disabled):before{border:2px solid var(--g-color-line-brand);content:""}.g-card_type_selection.g-card_view_clear{--_--border-color:#0000}.g-card_type_container.g-card_view_raised{--_--background-color:var(--g-color-base-float)}.g-card_type_container.g-card_view_raised.g-card_size_m{--_--box-shadow:0px 1px 5px var(--g-color-sfx-shadow)}.g-card_type_container.g-card_view_raised.g-card_size_l{--_--box-shadow:0px 1px 6px var(--g-color-sfx-shadow-light),1px 3px 13px var(--g-color-sfx-shadow-light)}.g-card_size_m{--_--border-radius:8px}.g-card_size_l{--_--border-radius:16px}.g-date-relative-range-date-picker-control__input{caret-color:#0000}.g-date-relative-range-date-picker-control__input_mobile{pointer-events:none}.g-date-relative-range-date-picker-control__mobile-trigger{--_--g-date-mobile-trigger-clear-width:0px;--_--g-date-mobile-trigger-errors-width:0px;--_--g-date-mobile-trigger-button-width:24px;inset:0;inset-inline-end:calc(var(--g-spacing-2) + var(--_--g-date-mobile-trigger-button-width) + var(--_--g-date-mobile-trigger-clear-width) + var(--_--g-date-mobile-trigger-errors-width));opacity:0;position:absolute}.g-date-relative-range-date-picker-control__mobile-trigger_size_s{--_--g-date-mobile-trigger-button-width:20px}.g-date-relative-range-date-picker-control__mobile-trigger_size_l{--_--g-date-mobile-trigger-button-width:28px}.g-date-relative-range-date-picker-control__mobile-trigger_size_xl{--_--g-date-mobile-trigger-button-width:36px}.g-date-relative-range-date-picker-control__mobile-trigger_has-clear{--_--g-date-mobile-trigger-clear-width:calc(var(--_--g-date-mobile-trigger-button-width) + 2px)}.g-date-relative-range-date-picker-control__mobile-trigger_has-errors{--_--g-date-mobile-trigger-errors-width:calc(var(--_--g-date-mobile-trigger-button-width) + 2px)}.g-date-relative-range-date-picker-presets-doc__button{--g-button-background-color-hover:#0000}.g-date-relative-range-date-picker-presets-doc__content{--g-popover-max-width:"none"}.g-date-relative-range-date-picker-presets-doc__table_size_xl{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-date-relative-range-date-picker-presets-doc__table>table{width:100%}.g-table,.g-table__scroll-container{overflow:auto;position:relative}.g-table__scroll-container{-ms-overflow-style:none;scrollbar-width:none}.g-table__scroll-container::-webkit-scrollbar{display:none}.g-table__horizontal-scroll-bar{margin-block-start:-1px;overflow-x:auto}.g-table__horizontal-scroll-bar-inner{height:1px;position:relative}.g-table__horizontal-scroll-bar-inner:before{background-color:#ffffff03;content:"";height:1px;inset-block-start:0;inset-inline-start:0;position:absolute;width:1px}.g-table__horizontal-scroll-bar_sticky-horizontal-scroll{position:sticky;z-index:3}.g-table__table{border-collapse:initial;border-spacing:0}.g-table__table_width_max{width:100%}.g-table__cell{border-block-end:1px solid var(--g-color-line-generic);box-sizing:initial;line-height:18px;overflow-wrap:break-word;padding:11px var(--g-spacing-2) 10px;text-align:start}.g-table__cell:first-child{padding-inline-start:0}.g-table__cell:last-child{padding-inline-end:0}.g-table__cell:not(.g-table__cell_word-wrap){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-table__cell_align_center{text-align:center}.g-table__cell_align_end{text-align:end}.g-table .g-table__cell_sticky_end,.g-table .g-table__cell_sticky_start{background:var(--g-color-base-background);position:sticky;z-index:2}.g-table__cell_border_right{border-inline-end:1px solid var(--g-color-line-generic)}.g-table__cell_edge-padding:first-child{padding-inline-start:var(--g-spacing-3)}.g-table__cell_edge-padding:last-child{padding-inline-end:var(--g-spacing-3)}.g-table__row_vertical-align_top{vertical-align:top}.g-table__row_vertical-align_middle{vertical-align:middle}.g-table__row_empty .g-table__cell{text-align:center}.g-table__body .g-table__row:last-child .g-table__cell{border-block-end-color:#0000}.g-table__head .g-table__cell{font-weight:var(--g-text-accent-font-weight)}.g-table__body .g-table__row_interactive:hover{background-color:var(--g-color-base-simple-hover-solid);cursor:pointer}.g-table__body .g-table__row_interactive:hover .g-table__cell_sticky_end,.g-table__body .g-table__row_interactive:hover .g-table__cell_sticky_start{background:var(--g-color-base-simple-hover-solid)}.g-table__body .g-table__row_disabled{opacity:.3}.g-table_with-primary .g-table__body .g-table__cell{color:var(--g-color-text-secondary)}.g-table_with-primary .g-table__body .g-table__cell_primary{color:var(--g-color-text-primary)}.g-table_with-sticky-scroll{overflow:visible}.g-date-relative-range-date-picker-presets{--g-list-item-padding:0 var(--_--g-date-picker-presets-padding,0)}.g-date-relative-range-date-picker-presets__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px var(--g-color-line-generic);display:flex;gap:var(--g-spacing-2);padding-inline:var(--_--g-date-picker-presets-padding,0)}.g-date-relative-range-date-picker-presets__list-container{outline:none}.g-date-relative-range-date-picker-presets__doc{margin-inline-start:auto}.g-date-relative-range-date-picker-presets__content{height:128px;overflow:auto}.g-date-relative-range-date-picker-presets_size_l .g-date-relative-range-date-picker-presets__content{height:144px}.g-date-relative-range-date-picker-presets_size_xl .g-date-relative-range-date-picker-presets__content{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:162px;line-height:var(--g-text-body-2-line-height)}.g-date-relative-range-date-picker-zones__control{--g-button-background-color-hover:#0000}.g-date-relative-range-date-picker-dialog__content{--_--popup-content-padding:var(--g-spacing-2);--_--g-date-picker-presets-padding:var(--_--popup-content-padding);padding:var(--_--popup-content-padding)}.g-date-relative-range-date-picker-dialog__content_mobile{--_--popup-content-padding:var(--g-spacing-5)}.g-date-relative-range-date-picker-dialog__content:not(.g-date-relative-range-date-picker-dialog__content_mobile){width:310px}.g-date-relative-range-date-picker-dialog__content_size_xl:not(.g-date-relative-range-date-picker-dialog__content_mobile){width:380px}.g-date-relative-range-date-picker-dialog__pickers{display:flex;flex-direction:column;gap:var(--g-spacing-2)}.g-date-relative-range-date-picker-dialog__pickers .g-text-input__label{width:40px}.g-date-relative-range-date-picker-dialog__content_size_xl .g-date-relative-range-date-picker-dialog__pickers .g-text-input__label{width:50px}.g-date-relative-range-date-picker-dialog__apply{margin-block-start:var(--g-spacing-2)}.g-date-relative-range-date-picker-dialog__zone{border-block-start:1px solid var(--g-color-line-generic);margin-block:var(--g-spacing-2) calc(var(--_--popup-content-padding)*-1)}.g-date-relative-range-date-picker-dialog__presets,.g-date-relative-range-date-picker-dialog__zone{margin-inline:calc(var(--_--popup-content-padding)*-1)}.g-date-mobile-calendar{border:none;box-sizing:border-box;cursor:pointer;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;min-width:100%;opacity:0;padding:0;position:absolute;z-index:1}.g-date-mobile-calendar::-webkit-calendar-picker-indicator{cursor:pointer;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;min-width:100%;padding:0;position:absolute}.g-date-stub-button{display:inline-block;height:24px;position:relative;width:24px}.g-date-stub-button_size_xs{height:20px;width:20px}.g-date-stub-button_size_m{height:28px;width:28px}.g-date-stub-button_size_l{height:36px;width:36px}.g-date-stub-button__icon{align-items:center;color:var(--g-color-text-secondary);display:flex;inset:0;justify-content:center;position:absolute}.g-date-relative-date-picker{display:inline-flex;outline:none;position:relative}.g-date-relative-date-picker__input_mobile{pointer-events:none}.g-date-relative-date-picker__field{width:100%}.g-date-relative-date-picker__popup-content{outline:none}.g-date-relative-date-picker__time-field{width:100%}.g-date-relative-date-picker__time-field-wrapper{padding:10px}.g-date-calendar{--_--calendar-padding:var(--g-date-calendar-padding,8px);--_--calendar-day-size:var(--g-date-calendar-day-size,28px);--_--calendar-days-gap:var(--g-date-calendar-days-gap,2px);--_--calendar-width:calc(var(--_--calendar-day-size)*7 + var(--_--calendar-days-gap)*6 + var(--_--calendar-padding)*2);--_--calendar-grid-height:calc(var(--_--calendar-day-size)*7 + var(--_--calendar-days-gap)*5 + var(--_--calendar-padding));display:inline-block;width:var(--_--calendar-width)}.g-date-calendar_size_l{--g-date-calendar-day-size:36px}.g-date-calendar_size_xl{--g-date-calendar-day-size:42px;font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-date-calendar__header{display:flex;padding:var(--_--calendar-padding) var(--_--calendar-padding) 0}.g-date-calendar__years-label{color:var(--g-color-text-secondary)}.g-date-calendar__controls{margin-inline-start:auto}.g-date-calendar__control-icon{transform:scaleX(var(--g-flow-direction))}.g-date-calendar__grid{height:var(--_--calendar-grid-height);overflow:hidden;position:relative;-webkit-user-select:none;user-select:none;width:100%}.g-date-calendar__content{box-sizing:border-box;display:grid;grid-template-rows:var(--_--calendar-day-size) 1fr;height:100%;inset-block-start:0;inset-inline-start:0;padding:0 var(--_--calendar-padding) var(--_--calendar-padding);position:absolute;width:100%}@keyframes calendar-forward{0%{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes calendar-backward{0%{transform:translateX(0)}to{transform:translateX(-100%)}}@keyframes calendar-zoom-in-showing{0%{opacity:0;transform:scale(2)}to{opacity:1;transform:scale(1)}}@keyframes calendar-zoom-in-hiding{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes calendar-zoom-out-showing{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes calendar-zoom-out-hiding{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.g-date-calendar__content_animation_forward{animation:calendar-forward .25s ease forwards;transform:translateX(-100%)}.g-date-calendar__content_animation_forward.g-date-calendar__current-state{inset-inline-start:calc(var(--g-flow-direction)*-100%)}.g-date-calendar__content_animation_backward{animation:calendar-backward .25s ease forwards;transform:translateX(0)}.g-date-calendar__content_animation_backward.g-date-calendar__current-state{inset-inline-start:calc(var(--g-flow-direction)*100%)}.g-date-calendar__content_animation_zoom-in{transform:scale()}.g-date-calendar__content_animation_zoom-in.g-date-calendar__previous-state{animation:calendar-zoom-in-hiding .25s ease forwards}.g-date-calendar__content_animation_zoom-in.g-date-calendar__current-state{animation:calendar-zoom-in-showing .25s ease forwards}.g-date-calendar__content_animation_zoom-out{transform:scale()}.g-date-calendar__content_animation_zoom-out.g-date-calendar__current-state{animation:calendar-zoom-out-showing .25s ease forwards}.g-date-calendar__content_animation_zoom-out.g-date-calendar__previous-state{animation:calendar-zoom-out-hiding .25s ease forwards}@media (update:slow),screen and (prefers-reduced-motion:reduce){.g-date-calendar__content[class]{animation-duration:.001ms}}.g-date-calendar__grid-rowgroup{display:grid;gap:var(--_--calendar-days-gap)}.g-date-calendar__grid-rowgroup_mode_months,.g-date-calendar__grid-rowgroup_mode_quarters,.g-date-calendar__grid-rowgroup_mode_years{grid-row:1/-1;padding:12px 0 0}.g-date-calendar__grid-rowgroup-header{align-self:center}.g-date-calendar__grid-row{display:grid;gap:var(--_--calendar-days-gap);grid-auto-columns:1fr;grid-auto-flow:column}.g-date-calendar__weekday{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.g-date-calendar__weekday_weekend{color:var(--g-color-text-danger)}.g-date-calendar__button{align-items:center;border-radius:4px;cursor:pointer;display:flex;font-weight:var(--g-text-subheader-font-weight);height:100%;justify-content:center;outline:none;position:relative;width:100%}.g-date-calendar__button:focus{box-shadow:0 0 0 2px var(--g-color-line-misc)}.g-date-calendar__button:focus:not(:focus-visible){box-shadow:none}.g-date-calendar__button:hover{background-color:var(--g-color-base-generic)}.g-date-calendar__button_selected[class]{background-color:var(--g-color-base-selection)}.g-date-calendar__button_selected.g-date-calendar__button_selection-end,.g-date-calendar__button_selected.g-date-calendar__button_selection-start{background-color:var(--g-color-base-brand)}.g-date-calendar__button_weekend{color:var(--g-color-text-danger)}.g-date-calendar__button_out-of-boundary{font-weight:var(--g-text-body-font-weight);opacity:.6}.g-date-calendar__button_current:before{background-color:currentColor;border-radius:50%;content:"";display:block;height:4px;inset-block-start:50%;position:absolute;transform:translateY(8px);width:4px}.g-date-calendar__button_disabled{font-weight:var(--g-text-body-font-weight);opacity:.6;pointer-events:none}.g-date-calendar__button_unavailable:not(.g-date-calendar__button_disabled){background-color:var(--g-color-base-generic);cursor:default;font-weight:var(--g-text-body-font-weight);opacity:.5}.g-date-date-field{display:inline-block;width:auto}.g-date-relative-range-date-picker{display:inline-flex;position:relative}.g-date-relative-range-date-picker__value-label{display:flex;width:100%}.g-date-relative-range-date-picker__value-label>div{flex:1 0}.g-date-relative-range-date-picker__value-label-content{display:flex;flex-direction:column}.g-date-relative-range-date-picker__value-label-tooltip{--g-popover-max-width:"none"}.g-date-relative-range-date-picker__value-label-item,.g-date-relative-range-date-picker__value-label-to,.g-date-relative-range-date-picker__value-label-tz{text-align:center}.g-date-relative-range-date-picker__value-label-tz{color:var(--g-color-text-hint);margin-block-start:5px}.g-tooltip[class]{--g-popup-border-width:0}.g-tooltip[class]>div{animation-duration:1ms;box-shadow:0 1px 5px 0 #00000026;box-sizing:border-box;max-width:360px;padding:4px 8px}.g-tooltip__content{-webkit-box-orient:vertical;-ms-box-orient:vertical;-webkit-line-clamp:20;-moz-line-clamp:20;-ms-line-clamp:20;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.g-spin{animation:g-spin 1s linear infinite;backface-visibility:hidden;display:inline-block}.g-spin__inner{border:2px solid var(--g-color-line-brand);border-end-end-radius:25px;border-inline-start:none;border-start-end-radius:25px;box-sizing:border-box;height:100%;margin-inline-start:50%;width:50%}.g-spin_size_xs{height:16px;width:16px}.g-spin_size_s{height:24px;width:24px}.g-spin_size_m{height:28px;width:28px}.g-spin_size_l{height:32px;width:32px}.g-spin_size_xl{height:36px;width:36px}@keyframes g-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.g-alert_corners_square{--g-card-border-radius:0}.g-alert__text-content{width:100%}.g-alert__actions_minContent{width:min-content}.g-alert__close-btn{flex-shrink:0}.monaco-aria-container{left:-999em;position:absolute}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border);box-sizing:border-box}.inline-editor-progress-decoration{display:inline-block;height:1em;width:1em}.inline-progress-widget{align-items:center;display:flex!important;justify-content:center}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{animation:none;font-size:90%!important}.inline-progress-widget:hover .icon:before{content:var(--vscode-icon-x-content);font-family:var(--vscode-icon-x-font-family)}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground);padding:2px 4px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-block:0}.monaco-editor .monaco-editor-overlaymessage .message a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-editor-overlaymessage .message a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{border:8px solid #0000;height:0!important;left:2px;position:absolute;width:0!important;z-index:1000}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage.below .anchor.below,.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-radius:3px;border-style:solid;border-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground);padding:1px 3px;vertical-align:middle}.rendered-markdown li:has(input[type=checkbox]){list-style-type:none}.monaco-text-button{align-items:center;border:1px solid var(--vscode-button-border,#0000);border-radius:2px;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;line-height:18px;padding:4px;text-align:center;width:100%}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled,.monaco-button.disabled:focus{cursor:default;opacity:.4!important}.monaco-text-button .codicon{color:inherit!important;margin:0 .2em}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;height:28px;overflow:hidden;padding:0 4px}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label{flex-basis:100%}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;overflow:hidden;width:0}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{align-items:center;display:flex;font-style:inherit;font-weight:400;justify-content:center;padding:4px 0}.monaco-button-dropdown{cursor:pointer;display:flex}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator,.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{cursor:default;padding:4px 0}.monaco-button-dropdown .monaco-button-dropdown-separator>div{height:100%;width:1px}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{align-items:center;border:1px solid var(--vscode-button-border,#0000);border-left-width:0!important;border-radius:0 2px 2px 0;display:flex}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{align-items:center;display:flex;flex-direction:column;margin:4px 5px}.monaco-description-button .monaco-button-description{font-size:11px;font-style:italic;padding:4px 20px}.monaco-description-button .monaco-button-description,.monaco-description-button .monaco-button-label{align-items:center;display:flex;justify-content:center}.monaco-description-button .monaco-button-description>.codicon,.monaco-description-button .monaco-button-label>.codicon{color:inherit!important;margin:0 .2em}.monaco-button-dropdown.default-colors>.monaco-button,.monaco-button.default-colors{background-color:var(--vscode-button-background);color:var(--vscode-button-foreground)}.monaco-button-dropdown.default-colors>.monaco-button:hover,.monaco-button.default-colors:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-button-dropdown.default-colors>.monaco-button.secondary,.monaco-button.default-colors.secondary{background-color:var(--vscode-button-secondaryBackground);color:var(--vscode-button-secondaryForeground)}.monaco-button-dropdown.default-colors>.monaco-button.secondary:hover,.monaco-button.default-colors.secondary:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator{background-color:var(--vscode-button-background);border-bottom:1px solid var(--vscode-button-border);border-top:1px solid var(--vscode-button-border)}.monaco-button-dropdown.default-colors .monaco-button.secondary+.monaco-button-dropdown-separator{background-color:var(--vscode-button-secondaryBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator>div{background-color:var(--vscode-button-separator)}.post-edit-widget{background-color:var(--vscode-editorWidget-background);border:1px solid var(--vscode-widget-border,#0000);border-radius:4px;box-shadow:0 0 8px 2px var(--vscode-widget-shadow);overflow:hidden}.post-edit-widget .monaco-button{border:none;border-radius:0;padding:2px}.post-edit-widget .monaco-button:hover{background-color:var(--vscode-button-secondaryHoverBackground)!important}.post-edit-widget .monaco-button .codicon{margin:0}@font-face{font-display:block;font-family:codicon;src:url(../../static/media/codicon.f6283f7ccaed1249d9eb.ttf) format("truetype")}.codicon[class*=codicon-]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font:normal normal normal 16px/1 codicon;text-align:center;text-decoration:none;text-rendering:auto;text-transform:none;user-select:none;-webkit-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(1turn)}}.codicon-gear.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin,.codicon-sync.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.monaco-editor .codicon.codicon-symbol-array,.monaco-workbench .codicon.codicon-symbol-array{color:var(--vscode-symbolIcon-arrayForeground)}.monaco-editor .codicon.codicon-symbol-boolean,.monaco-workbench .codicon.codicon-symbol-boolean{color:var(--vscode-symbolIcon-booleanForeground)}.monaco-editor .codicon.codicon-symbol-class,.monaco-workbench .codicon.codicon-symbol-class{color:var(--vscode-symbolIcon-classForeground)}.monaco-editor .codicon.codicon-symbol-method,.monaco-workbench .codicon.codicon-symbol-method{color:var(--vscode-symbolIcon-methodForeground)}.monaco-editor .codicon.codicon-symbol-color,.monaco-workbench .codicon.codicon-symbol-color{color:var(--vscode-symbolIcon-colorForeground)}.monaco-editor .codicon.codicon-symbol-constant,.monaco-workbench .codicon.codicon-symbol-constant{color:var(--vscode-symbolIcon-constantForeground)}.monaco-editor .codicon.codicon-symbol-constructor,.monaco-workbench .codicon.codicon-symbol-constructor{color:var(--vscode-symbolIcon-constructorForeground)}.monaco-editor .codicon.codicon-symbol-enum,.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-value{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .codicon.codicon-symbol-enum-member,.monaco-workbench .codicon.codicon-symbol-enum-member{color:var(--vscode-symbolIcon-enumeratorMemberForeground)}.monaco-editor .codicon.codicon-symbol-event,.monaco-workbench .codicon.codicon-symbol-event{color:var(--vscode-symbolIcon-eventForeground)}.monaco-editor .codicon.codicon-symbol-field,.monaco-workbench .codicon.codicon-symbol-field{color:var(--vscode-symbolIcon-fieldForeground)}.monaco-editor .codicon.codicon-symbol-file,.monaco-workbench .codicon.codicon-symbol-file{color:var(--vscode-symbolIcon-fileForeground)}.monaco-editor .codicon.codicon-symbol-folder,.monaco-workbench .codicon.codicon-symbol-folder{color:var(--vscode-symbolIcon-folderForeground)}.monaco-editor .codicon.codicon-symbol-function,.monaco-workbench .codicon.codicon-symbol-function{color:var(--vscode-symbolIcon-functionForeground)}.monaco-editor .codicon.codicon-symbol-interface,.monaco-workbench .codicon.codicon-symbol-interface{color:var(--vscode-symbolIcon-interfaceForeground)}.monaco-editor .codicon.codicon-symbol-key,.monaco-workbench .codicon.codicon-symbol-key{color:var(--vscode-symbolIcon-keyForeground)}.monaco-editor .codicon.codicon-symbol-keyword,.monaco-workbench .codicon.codicon-symbol-keyword{color:var(--vscode-symbolIcon-keywordForeground)}.monaco-editor .codicon.codicon-symbol-module,.monaco-workbench .codicon.codicon-symbol-module{color:var(--vscode-symbolIcon-moduleForeground)}.monaco-editor .codicon.codicon-symbol-namespace,.monaco-workbench .codicon.codicon-symbol-namespace{color:var(--vscode-symbolIcon-namespaceForeground)}.monaco-editor .codicon.codicon-symbol-null,.monaco-workbench .codicon.codicon-symbol-null{color:var(--vscode-symbolIcon-nullForeground)}.monaco-editor .codicon.codicon-symbol-number,.monaco-workbench .codicon.codicon-symbol-number{color:var(--vscode-symbolIcon-numberForeground)}.monaco-editor .codicon.codicon-symbol-object,.monaco-workbench .codicon.codicon-symbol-object{color:var(--vscode-symbolIcon-objectForeground)}.monaco-editor .codicon.codicon-symbol-operator,.monaco-workbench .codicon.codicon-symbol-operator{color:var(--vscode-symbolIcon-operatorForeground)}.monaco-editor .codicon.codicon-symbol-package,.monaco-workbench .codicon.codicon-symbol-package{color:var(--vscode-symbolIcon-packageForeground)}.monaco-editor .codicon.codicon-symbol-property,.monaco-workbench .codicon.codicon-symbol-property{color:var(--vscode-symbolIcon-propertyForeground)}.monaco-editor .codicon.codicon-symbol-reference,.monaco-workbench .codicon.codicon-symbol-reference{color:var(--vscode-symbolIcon-referenceForeground)}.monaco-editor .codicon.codicon-symbol-snippet,.monaco-workbench .codicon.codicon-symbol-snippet{color:var(--vscode-symbolIcon-snippetForeground)}.monaco-editor .codicon.codicon-symbol-string,.monaco-workbench .codicon.codicon-symbol-string{color:var(--vscode-symbolIcon-stringForeground)}.monaco-editor .codicon.codicon-symbol-struct,.monaco-workbench .codicon.codicon-symbol-struct{color:var(--vscode-symbolIcon-structForeground)}.monaco-editor .codicon.codicon-symbol-text,.monaco-workbench .codicon.codicon-symbol-text{color:var(--vscode-symbolIcon-textForeground)}.monaco-editor .codicon.codicon-symbol-type-parameter,.monaco-workbench .codicon.codicon-symbol-type-parameter{color:var(--vscode-symbolIcon-typeParameterForeground)}.monaco-editor .codicon.codicon-symbol-unit,.monaco-workbench .codicon.codicon-symbol-unit{color:var(--vscode-symbolIcon-unitForeground)}.monaco-editor .codicon.codicon-symbol-variable,.monaco-workbench .codicon.codicon-symbol-variable{color:var(--vscode-symbolIcon-variableForeground)}.monaco-editor .lightBulbWidget{align-items:center;display:flex;justify-content:center}.monaco-editor .lightBulbWidget:hover{cursor:pointer}.monaco-editor .lightBulbWidget.codicon-light-bulb,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground,var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget.codicon-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground,var(--vscode-icon-foreground))}.monaco-editor .lightBulbWidget:before{position:relative;z-index:2}.monaco-editor .lightBulbWidget:after{content:"";display:block;height:100%;left:0;opacity:.3;position:absolute;top:0;width:100%;z-index:1}.monaco-editor .glyph-margin-widgets .cgmr[class*=codicon-gutter-lightbulb]{cursor:pointer;display:block}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb,.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-sparkle{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-aifix-auto-fix,.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-auto-fix{color:var(--vscode-editorLightBulbAutoFix-foreground,var(--vscode-editorLightBulb-foreground))}.monaco-editor .glyph-margin-widgets .cgmr.codicon-gutter-lightbulb-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground,var(--vscode-icon-foreground))}.monaco-list{height:100%;position:relative;white-space:nowrap;width:100%}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{height:100%;position:relative;width:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{min-width:100%;width:auto}.monaco-list-row{box-sizing:border-box;overflow:hidden;position:absolute;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list .monaco-scrollable-element>.scrollbar.vertical,.monaco-pane-view>.monaco-split-view2.vertical>.monaco-scrollable-element>.scrollbar.vertical{z-index:14}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-multiple,.monaco-list.selection-single{outline:0!important}.monaco-drag-image{border-radius:10px;display:inline-block;font-size:12px;padding:1px 7px;position:absolute;z-index:1000}.monaco-list-type-filter-message{box-sizing:border-box;height:100%;left:0;opacity:.7;padding:40px 1em 1em;pointer-events:none;position:absolute;text-align:center;top:0;white-space:normal;width:100%}.monaco-list-type-filter-message:empty{display:none}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{background:#0000;opacity:1;transition:opacity .1s linear;z-index:11}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{display:none;position:absolute}.monaco-scrollable-element>.shadow.top{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;display:block;height:3px;left:3px;top:0;width:100%}.monaco-scrollable-element>.shadow.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset;display:block;height:100%;left:0;top:3px;width:3px}.monaco-scrollable-element>.shadow.top-left-corner{display:block;height:3px;left:0;top:0;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.scrollbar>.slider{background:var(--vscode-scrollbarSlider-background)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-scrollable-element>.scrollbar>.slider.active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-select-box-dropdown-padding{--dropdown-padding-top:1px;--dropdown-padding-bottom:1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top:3px;--dropdown-padding-bottom:4px}.monaco-select-box-dropdown-container{box-sizing:border-box;display:none}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown *{margin:0}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{font-family:var(--monaco-monospace-font);line-height:15px}.monaco-select-box-dropdown-container.visible{border-bottom-left-radius:3px;border-bottom-right-radius:3px;display:flex;flex-direction:column;overflow:hidden;text-align:left;width:1px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{align-self:flex-start;box-sizing:border-box;flex:0 0 auto;overflow:hidden;padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;padding-top:var(--dropdown-padding-top);width:100%}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-bottom:var(--dropdown-padding-bottom);padding-top:var(--dropdown-padding-top)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row{cursor:pointer}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{float:left;overflow:hidden;padding-left:3.5px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{float:left;opacity:.7;overflow:hidden;padding-left:3.5px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{float:right;overflow:hidden;padding-right:10px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{height:1px;left:-10000px;overflow:hidden;position:absolute;top:auto;width:1px}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{align-self:flex-start;flex:1 1 auto;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{max-height:0;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div>.option-text-width-control{padding-left:4px;padding-right:8px;white-space:nowrap}.monaco-select-box{border-radius:2px;cursor:pointer;width:100%}.monaco-select-box-dropdown-container{font-size:13px;font-weight:400;text-transform:none}.monaco-action-bar .action-item.select-container{cursor:default}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-height:18px;min-width:100px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{border-radius:5px;font-size:11px}.monaco-action-bar{height:100%;white-space:nowrap}.monaco-action-bar .actions-container{align-items:center;display:flex;height:100%;margin:0 auto;padding:0;width:100%}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{align-items:center;cursor:pointer;display:block;justify-content:center;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .codicon,.monaco-action-bar .action-item .icon{display:block}.monaco-action-bar .action-item .codicon{align-items:center;display:flex;height:16px;width:16px}.monaco-action-bar .action-label{border-radius:5px;display:flex;font-size:11px;padding:3px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{color:var(--vscode-disabledForeground)}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #bbb;display:block;margin-left:.8em;margin-right:.8em;padding-top:1px}.monaco-action-bar .action-item .action-label.separator{background-color:#bbb;cursor:default;height:16px;margin:5px 4px!important;min-width:1px;padding:0;width:1px}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{align-items:center;display:flex;flex:1 1;justify-content:center;margin-right:10px;max-width:170px;min-width:60px;overflow:hidden}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{align-items:center;cursor:default;display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.action-widget{background-color:var(--vscode-editorActionList-background);border:1px solid var(--vscode-editorWidget-border)!important;border-radius:0;border-radius:5px;box-shadow:0 2px 8px var(--vscode-widget-shadow);color:var(--vscode-editorActionList-foreground);display:block;font-size:13px;max-width:80vw;min-width:160px;padding:4px;width:100%;z-index:40}.context-view-block{z-index:-1}.context-view-block,.context-view-pointerBlock{cursor:auto;height:100%;left:0;position:fixed;top:0;width:100%}.context-view-pointerBlock{z-index:2}.action-widget .monaco-list{border:0!important;user-select:none;-webkit-user-select:none}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{border-radius:4px;cursor:pointer;padding:0 10px;touch-action:none;white-space:nowrap;width:100%}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){background-color:var(--vscode-editorActionList-focusBackground)!important;color:var(--vscode-editorActionList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder,#0000);outline-offset:-1px}.action-widget .monaco-list-row.group-header{color:var(--vscode-descriptionForeground)!important;font-size:12px;font-weight:600}.action-widget .monaco-list-row.group-header:not(:first-of-type){margin-top:2px}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before,.action-widget .monaco-list .option-disabled:before{-webkit-touch-callout:none;background-color:initial!important;cursor:default!important;outline:0 solid!important;-webkit-user-select:none;user-select:none}.action-widget .monaco-list-row.action{align-items:center;display:flex;gap:8px}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{flex:1 1;overflow:hidden;text-overflow:ellipsis}.action-widget .monaco-list-row.action .monaco-keybinding>.monaco-keybinding-key{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-radius:3px;border-style:solid;border-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground)}.action-widget .action-widget-action-bar{background-color:var(--vscode-editorActionList-background);border-top:1px solid var(--vscode-editorHoverWidget-border);margin-top:2px}.action-widget .action-widget-action-bar:before{content:"";display:block;width:100%}.action-widget .action-widget-action-bar .actions-container{padding:3px 8px 0}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);font-size:12px;line-height:22px;padding:0;pointer-events:all}.action-widget-action-bar .action-item{margin-right:16px;pointer-events:none}.action-widget-action-bar .action-label:hover{background-color:initial!important}.monaco-action-bar .actions-container.highlight-toggled .action-label.checked{background:var(--vscode-actionBar-toggledBackground)!important}.monaco-keybinding{align-items:center;display:flex;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{border-radius:3px;border-style:solid;border-width:1px;display:inline-block;font-size:11px;margin:0 2px;padding:3px 5px;vertical-align:middle}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);overflow:visible;overflow-wrap:normal;position:relative}.monaco-editor,.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);border:1px solid var(--vscode-editor-rangeHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);border:1px solid var(--vscode-editor-symbolHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{overflow:hidden;position:relative}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .margin-view-overlays>div,.monaco-editor .view-overlays>div{position:absolute;width:100%}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{background:var(--vscode-editorError-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{background:var(--vscode-editorWarning-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{background:var(--vscode-editorInfo-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-hint{border-bottom:2px dotted var(--vscode-editorHint-border)}.monaco-editor.showUnused .squiggly-unnecessary{border-bottom:2px dashed var(--vscode-editorUnnecessaryCode-border)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;text-decoration-color:var(--vscode-editor-foreground,inherit)}.monaco-editor .inputarea{background-color:initial;border:none;color:#0000;margin:0;min-height:0;min-width:0;outline:none!important;overflow:hidden;padding:0;position:absolute;resize:none;z-index:-10}.monaco-editor .inputarea.ime-input{caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground);z-index:10}.monaco-editor .margin-view-overlays .line-numbers{font-feature-settings:"tnum";bottom:0;box-sizing:border-box;cursor:default;display:inline-block;font-variant-numeric:tabular-nums;position:absolute;text-align:right;vertical-align:middle}.monaco-editor .relative-current-line-number{display:inline-block;text-align:left;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground)}.monaco-editor .line-numbers.active-line-number{color:var(--vscode-editorLineNumber-activeForeground)}.monaco-editor .margin{background-color:var(--vscode-editorGutter-background)}.monaco-mouse-cursor-text{cursor:text}.monaco-editor .blockDecorations-container{pointer-events:none;position:absolute;top:0}.monaco-editor .blockDecorations-block{box-sizing:border-box;position:absolute}.monaco-editor .margin-view-overlays .current-line,.monaco-editor .view-overlays .current-line{box-sizing:border-box;display:block;height:100%;left:0;position:absolute;top:0}.monaco-editor + .margin-view-overlays + .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{height:100%;position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .glyph-margin-widgets .cgmr{align-items:center;display:flex;justify-content:center;position:absolute}.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin:before{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.monaco-editor .lines-content .core-guide{box-sizing:border-box;height:100%;position:absolute}.mtkcontrol{background:#960000!important;color:#fff!important}.mtkoverflow{background-color:var(--vscode-button-background,var(--vscode-editor-background));border-color:var(--vscode-contrastBorder);border-radius:2px;border-style:solid;border-width:1px;color:var(--vscode-button-foreground,var(--vscode-editor-foreground));cursor:pointer;padding:4px}.mtkoverflow:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none;-webkit-user-select:none}.monaco-editor.mac .lines-content:hover,.monaco-editor.mac .view-line:hover,.monaco-editor.mac .view-lines:hover{user-select:text;-webkit-user-select:text;-ms-user-select:text}.monaco-editor.enable-user-select{user-select:auto;-webkit-user-select:initial}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .lines-content>.view-lines>.view-line>span{bottom:0;position:absolute;top:0}.monaco-editor .mtkw,.monaco-editor .mtkz{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{background:#fff;position:absolute;top:0}.monaco-editor .margin-view-overlays .cldr{height:100%;position:absolute}.monaco-editor .margin-view-overlays .cmdr{height:100%;left:0;position:absolute;width:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover .minimap-slider.active,.monaco-editor .minimap.slider-mouseover:hover .minimap-slider{opacity:1}.monaco-editor .minimap-slider .minimap-slider-horizontal{background:var(--vscode-minimapSlider-background)}.monaco-editor .minimap-slider:hover .minimap-slider-horizontal{background:var(--vscode-minimapSlider-hoverBackground)}.monaco-editor .minimap-slider.active .minimap-slider-horizontal{background:var(--vscode-minimapSlider-activeBackground)}.monaco-editor .minimap-shadow-visible{box-shadow:var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{left:-6px;position:absolute;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{left:-1px;position:absolute;width:1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .minimap{z-index:5}.monaco-editor .overlayWidgets{left:0;position:absolute;top:0}.monaco-editor .view-ruler{box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset;position:absolute;top:0}.monaco-editor .scroll-decoration{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;height:6px;left:0;position:absolute;top:0}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .focused .selected-text{background-color:var(--vscode-editor-selectionBackground)}.monaco-editor .selected-text{background-color:var(--vscode-editor-inactiveSelectionBackground)}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor.hc-light .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-light .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-light .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-light .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{box-sizing:border-box;overflow:hidden;position:absolute}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{background:#0000!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{background:#0000!important;border-bottom-style:solid;border-bottom-width:2px}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{background:#0000!important;border-bottom-style:solid;border-bottom-width:1px}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-editor .mwh{color:var(--vscode-editorWhitespace-foreground)!important;position:absolute}.monaco-editor .codelens-decoration{font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);color:var(--vscode-editorCodeLens-foreground);display:inline-block;font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);overflow:hidden;padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);text-overflow:ellipsis;white-space:nowrap}.monaco-editor .codelens-decoration>a,.monaco-editor .codelens-decoration>span{user-select:none;-webkit-user-select:none;vertical-align:sub;white-space:nowrap}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer}.monaco-editor .codelens-decoration>a:hover,.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);vertical-align:middle}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.colorpicker-widget{height:190px;user-select:none;-webkit-user-select:none}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{border:.1em solid #000;box-sizing:border-box;cursor:pointer;display:inline-block;height:.8em;line-height:.8em;margin:.1em .2em 0;width:.8em}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:.1em solid #eee}.colorpicker-header{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;display:flex;height:24px;image-rendering:pixelated;position:relative}.colorpicker-header .picked-color{align-items:center;color:#fff;cursor:pointer;display:flex;flex:1 1;justify-content:center;line-height:24px;overflow:hidden;white-space:nowrap;width:240px}.colorpicker-header .picked-color .picked-color-presentation{margin-left:5px;margin-right:5px;white-space:nowrap}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{cursor:pointer;width:74px;z-index:inherit}.standalone-colorpicker{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border);cursor:pointer}.colorpicker-header .close-button-inner-div{height:100%;text-align:center;width:100%}.colorpicker-header .close-button-inner-div:hover{background-color:var(--vscode-toolbar-hoverBackground)}.colorpicker-header .close-icon{padding:3px}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{flex:1 1;height:150px;min-width:220px;overflow:hidden;position:relative}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{border:1px solid #fff;border-radius:100%;box-shadow:0 0 2px #000c;height:9px;margin:-5px 0 0 -5px;position:absolute;width:9px}.colorpicker-body .strip{height:150px;width:25px}.colorpicker-body .standalone-strip{height:122px;width:25px}.colorpicker-body .hue-strip{background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);cursor:grab;margin-left:8px;position:relative}.colorpicker-body .opacity-strip{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;cursor:grab;image-rendering:pixelated;margin-left:8px;position:relative}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{border:1px solid #ffffffb5;box-shadow:0 0 1px #000000d9;box-sizing:border-box;height:4px;left:-2px;position:absolute;top:0;width:calc(100% + 4px)}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.colorpicker-body .standalone-strip .standalone-overlay{height:122px;pointer-events:none}.standalone-colorpicker-body{border:1px solid #0000;border-bottom:1px solid var(--vscode-editorHoverWidget-border);display:block;overflow:hidden}.colorpicker-body .insert-button{background:var(--vscode-button-background);border:none;border-radius:2px;bottom:8px;color:var(--vscode-button-foreground);cursor:pointer;height:20px;padding:0;position:absolute;right:8px;width:58px}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor .inlineSuggestionsHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineSuggestionsHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineSuggestionsHints .availableSuggestionCount a{display:flex;justify-content:center;min-width:19px}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{border-radius:5px;display:flex!important;flex-direction:row}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;line-height:16px;margin-left:-3px;padding-left:0;padding-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-action-bar .action-item.menu-entry .action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;height:16px;width:16px}.monaco-action-bar .action-item.menu-entry.text-only .action-label{border-radius:2px;color:var(--vscode-descriptionForeground);overflow:hidden}.monaco-action-bar .action-item.menu-entry.text-only.use-comma:not(:last-of-type) .action-label:after{content:", "}.monaco-action-bar .action-item.menu-entry.text-only+.action-item:not(.text-only)>.monaco-dropdown .action-label{color:var(--vscode-descriptionForeground)}.monaco-dropdown-with-default{border-radius:5px;display:flex!important;flex-direction:row}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;height:16px;width:16px}.monaco-dropdown-with-default:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;line-height:16px;margin-left:-3px;padding-left:0;padding-right:0}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{display:inline-block;padding:0}:root{--vscode-sash-size:4px;--vscode-sash-hover-size:4px}.monaco-sash{position:absolute;touch-action:none;z-index:35}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;height:100%;top:0;width:var(--vscode-sash-size)}.monaco-sash.horizontal{cursor:ns-resize;height:var(--vscode-sash-size);left:0;width:100%}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";cursor:all-scroll;display:block;height:calc(var(--vscode-sash-size)*2);position:absolute;width:calc(var(--vscode-sash-size)*2);z-index:100}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-.5);top:calc(var(--vscode-sash-size)*-1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{bottom:calc(var(--vscode-sash-size)*-1);left:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{right:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash:before{background:#0000;content:"";height:100%;pointer-events:none;position:absolute;width:100%}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.active:before,.monaco-sash.hover:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{left:calc(50% - var(--vscode-sash-hover-size)/2);width:var(--vscode-sash-hover-size)}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - var(--vscode-sash-hover-size)/2)}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:cyan}.monaco-sash.debug.disabled{background:#0ff3}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-hover{animation:fadein .1s linear;box-sizing:border-box;cursor:default;line-height:1.5em;overflow:hidden;position:absolute;user-select:text;-webkit-user-select:text;white-space:var(--vscode-hover-whiteSpace,normal)}.monaco-hover.hidden{display:none}.monaco-hover a:hover:not(.disabled){cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){word-wrap:break-word;max-width:var(--vscode-hover-maxWidth,500px)}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover .code,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6,.monaco-hover p,.monaco-hover ul{margin:8px 0}.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{line-height:1.1}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{border-left:0;border-right:0;box-sizing:border-box;height:1px;margin:4px -8px -4px}.monaco-hover .code:first-child,.monaco-hover p:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover .code:last-child,.monaco-hover p:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ol,.monaco-hover ul{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:var(--vscode-hover-sourceWhiteSpace,pre-wrap)}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .info{font-style:italic;padding:0 8px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px;width:100%}.monaco-hover .hover-row.status-bar .actions .action-container{cursor:pointer;margin-right:16px}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .hover-row.status-bar .actions .action-container a{color:var(--vscode-textLink-foreground);-webkit-text-decoration:var(--text-link-decoration);text-decoration:var(--text-link-decoration)}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link,.monaco-hover .hover-contents a.code-link:hover{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{border-bottom:1px solid #0000;color:var(--vscode-textLink-foreground);text-decoration:underline;text-underline-position:under}.monaco-hover .hover-contents a.code-link>span:hover{color:var(--vscode-textLink-activeForeground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{display:inline-block;margin-bottom:4px}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span.codicon{margin-bottom:2px}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{cursor:default;opacity:.4;pointer-events:none}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;flex-wrap:nowrap;justify-content:space-between}.monaco-editor .peekview-widget .head .peekview-title{align-items:baseline;display:flex;font-size:13px;margin-left:20px;min-width:0;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename,.monaco-editor .peekview-widget .head .peekview-title .meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1 1;padding-right:2px;text-align:right}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{align-self:center;margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-bottom-style:solid;border-bottom-width:0;border-top-style:solid;border-top-width:0;position:relative}.monaco-split-view2{height:100%;position:relative;width:100%}.monaco-split-view2>.sash-container{height:100%;pointer-events:none;position:absolute;width:100%}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:auto}.monaco-split-view2>.monaco-scrollable-element{height:100%;width:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{height:100%;position:relative;white-space:nowrap;width:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{position:absolute;white-space:normal}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{background-color:var(--separator-border);content:" ";left:0;pointer-events:none;position:absolute;top:0;z-index:5}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;white-space:nowrap;width:100%}.monaco-table>.monaco-split-view2{border-bottom:1px solid #0000}.monaco-table>.monaco-list{flex:1 1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{font-weight:700;height:100%;overflow:hidden;text-overflow:ellipsis;width:100%}.monaco-table-td,.monaco-table-th{box-sizing:border-box;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{border-left:1px solid #0000;content:"";left:calc(var(--vscode-sash-size)/2);position:absolute;width:0}.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2,.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-custom-toggle{border:1px solid #0000;border-radius:3px;box-sizing:border-box;cursor:pointer;float:left;height:20px;margin-left:2px;overflow:hidden;padding:1px;user-select:none;-webkit-user-select:none;width:20px}.monaco-custom-toggle:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{background-size:16px!important;border:1px solid #0000;border-radius:3px;height:18px;margin-left:0;margin-right:9px;opacity:1;padding:0;width:18px}.monaco-action-bar .checkbox-action-item{align-items:center;border-radius:2px;display:flex;padding-right:2px}.monaco-action-bar .checkbox-action-item:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-action-bar .checkbox-action-item>.monaco-custom-toggle.monaco-checkbox{margin-right:4px}.monaco-action-bar .checkbox-action-item>.checkbox-label{font-size:12px}.monaco-custom-toggle.monaco-checkbox:not(.checked):before{visibility:hidden}.monaco-inputbox{border-radius:2px;box-sizing:border-box;display:block;font-size:inherit;padding:0;position:relative}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{height:100%;position:relative;width:100%}.monaco-inputbox>.ibwrapper>.input{border:none;box-sizing:border-box;color:inherit;display:inline-block;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;resize:none;width:100%}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;outline:none;scrollbar-width:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{word-wrap:break-word;box-sizing:border-box;display:inline-block;left:0;position:absolute;top:0;visibility:hidden;white-space:pre-wrap;width:100%}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{word-wrap:break-word;box-sizing:border-box;display:inline-block;font-size:12px;line-height:17px;margin-top:-1px;overflow:hidden;padding:.4em;text-align:left;width:100%}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;height:16px;width:16px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;right:2px;top:3px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.hc-light .monaco-findInput.highlight-0 .controls,.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.hc-light .monaco-findInput.highlight-1 .controls,.monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:#fdff00cc}to{background:#0000}}@keyframes monaco-findInput-highlight-1{0%{background:#fdff00cc}99%{background:#0000}}@keyframes monaco-findInput-highlight-dark-0{0%{background:#ffffff70}to{background:#0000}}@keyframes monaco-findInput-highlight-dark-1{0%{background:#ffffff70}99%{background:#0000}}.monaco-tl-row{align-items:center;display:flex;height:100%;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{height:100%;left:16px;pointer-events:none;position:absolute;top:0}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{border-left:1px solid #0000;box-sizing:border-box;display:inline-block;height:100%}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-contents,.monaco-tl-twistie{height:100%}.monaco-tl-twistie{align-items:center;display:flex!important;flex-shrink:0;font-size:10px;justify-content:center;padding-right:6px;text-align:right;transform:translateX(3px);width:16px}.monaco-tl-contents{flex:1 1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.monaco-tree-type-filter{border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;display:flex;margin:0 6px;max-width:200px;padding:3px;position:absolute;top:0;z-index:100}.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter{transition:top .3s}.monaco-tree-type-filter.disabled{top:-40px!important}.monaco-tree-type-filter-grab{align-items:center;cursor:grab;display:flex!important;justify-content:center;margin-right:2px}.monaco-tree-type-filter-grab.grabbing{cursor:grabbing}.monaco-tree-type-filter-input{flex:1 1}.monaco-tree-type-filter-input .monaco-inputbox{height:23px}.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.input,.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.mirror{padding:2px 4px}.monaco-tree-type-filter-input .monaco-findInput>.controls{top:2px}.monaco-tree-type-filter-actionbar{margin-left:4px}.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label{padding:2px}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container{background-color:var(--vscode-sideBar-background);height:0;left:0;position:absolute;top:0;width:100%;z-index:13}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row.monaco-list-row{background-color:var(--vscode-sideBar-background);opacity:1!important;overflow:hidden;position:absolute;width:100%}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row:hover{background-color:var(--vscode-list-hoverBackground)!important;cursor:pointer}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty,.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty .monaco-tree-sticky-container-shadow{display:none}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow{bottom:-3px;height:0;left:0;position:absolute;width:100%}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container[tabindex="0"]:focus{outline:none}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-bottom-width:1px;border-top-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;padding:3em 0;text-align:center;width:100%}.monaco-editor .reference-zone-widget .ref-tree{background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground);line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{overflow:hidden;text-overflow:ellipsis}.monaco-editor .reference-zone-widget .ref-tree .reference-file{color:var(--vscode-peekViewResult-fileForeground);display:inline-flex;height:100%;width:100%}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-left:auto;margin-right:12px}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{background-color:var(--vscode-peekViewResult-matchHighlightBackground)}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input,.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder,#0000);box-sizing:border-box}.monaco-count-badge{border-radius:11px;box-sizing:border-box;display:inline-block;font-size:11px;font-weight:400;line-height:11px;min-height:18px;min-width:18px;padding:3px 6px;text-align:center}.monaco-count-badge.long{border-radius:2px;line-height:normal;min-height:auto;padding:2px 3px}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-position:0;background-repeat:no-repeat;background-size:16px;display:inline-block;flex-shrink:0;height:22px;line-height:inherit!important;padding-right:6px;vertical-align:top;width:16px}.monaco-icon-label-iconpath{display:flex;height:16px;margin-top:2px;padding-left:2px;width:16px}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{flex:1 1;min-width:0;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-suffix-container>.label-suffix{opacity:.7;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-size:.9em;margin-left:.5em;opacity:.7;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{font-style:italic}.monaco-icon-label.deprecated{opacity:.66;text-decoration:line-through}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{text-decoration:line-through}.monaco-icon-label:after{font-size:90%;font-weight:600;margin:auto 16px 0 5px;opacity:.75;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-hover-content{box-sizing:border-box;padding-bottom:2px;padding-right:2px}.monaco-editor .monaco-hover{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground)}.monaco-editor .monaco-hover a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .monaco-hover .hover-row{display:flex}.monaco-editor .monaco-hover .hover-row .hover-row-contents{display:flex;flex-direction:column;min-width:0}.monaco-editor .monaco-hover .hover-row .verbosity-actions{border-right:1px solid var(--vscode-editorHoverWidget-border);display:flex;flex-direction:column;justify-content:end;padding-left:5px;padding-right:5px}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon{cursor:pointer;font-size:11px}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon.enabled{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon.disabled{opacity:.6}.monaco-editor .monaco-hover .hover-row .actions{background-color:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-editor .monaco-hover code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .diff-hidden-lines-widget{width:100%}.monaco-editor .diff-hidden-lines{font-size:13px;height:0;line-height:14px;transform:translateY(-10px)}.monaco-editor .diff-hidden-lines .bottom.dragging,.monaco-editor .diff-hidden-lines .top.dragging,.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover{background-color:var(--vscode-focusBorder)}.monaco-editor .diff-hidden-lines .bottom,.monaco-editor .diff-hidden-lines .top{background-clip:padding-box;background-color:initial;border-bottom:2px solid #0000;border-top:4px solid #0000;height:4px;transition:background-color .1s ease-out}.monaco-editor .diff-hidden-lines .bottom.canMoveTop:not(.canMoveBottom),.monaco-editor .diff-hidden-lines .top.canMoveTop:not(.canMoveBottom),.monaco-editor.draggingUnchangedRegion.canMoveTop:not(.canMoveBottom) *{cursor:n-resize!important}.monaco-editor .diff-hidden-lines .bottom:not(.canMoveTop).canMoveBottom,.monaco-editor .diff-hidden-lines .top:not(.canMoveTop).canMoveBottom,.monaco-editor.draggingUnchangedRegion:not(.canMoveTop).canMoveBottom *{cursor:s-resize!important}.monaco-editor .diff-hidden-lines .bottom.canMoveTop.canMoveBottom,.monaco-editor .diff-hidden-lines .top.canMoveTop.canMoveBottom,.monaco-editor.draggingUnchangedRegion.canMoveTop.canMoveBottom *{cursor:ns-resize!important}.monaco-editor .diff-hidden-lines .top{transform:translateY(4px)}.monaco-editor .diff-hidden-lines .bottom{transform:translateY(-6px)}.monaco-editor .diff-unchanged-lines{background:var(--vscode-diffEditor-unchangedCodeBackground)}.monaco-editor .noModificationsOverlay{align-items:center;background:var(--vscode-editor-background);display:flex;justify-content:center;z-index:1}.monaco-editor .diff-hidden-lines .center{background:var(--vscode-diffEditor-unchangedRegionBackground);box-shadow:inset 0 -5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow),inset 0 5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow);color:var(--vscode-diffEditor-unchangedRegionForeground);display:block;height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .diff-hidden-lines .center span.codicon{vertical-align:middle}.monaco-editor .diff-hidden-lines .center a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item{cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item:hover{color:var(--vscode-editorLink-activeForeground)}.monaco-editor .movedModified,.monaco-editor .movedOriginal{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-editor .movedModified.currentMove,.monaco-editor .movedOriginal.currentMove{border:2px solid var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path.currentMove{stroke:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path{pointer-events:visiblestroke}.monaco-diff-editor .moved-blocks-lines .arrow{fill:var(--vscode-diffEditor-move-border)}.monaco-diff-editor .moved-blocks-lines .arrow.currentMove{fill:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines .arrow-rectangle{fill:var(--vscode-editor-background)}.monaco-diff-editor .moved-blocks-lines{pointer-events:none;position:absolute}.monaco-diff-editor .moved-blocks-lines path{fill:none;stroke:var(--vscode-diffEditor-move-border);stroke-width:2}.monaco-editor .char-delete.diff-range-empty{border-left:3px solid var(--vscode-diffEditor-removedTextBackground);margin-left:-1px}.monaco-editor .char-insert.diff-range-empty{border-left:3px solid var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .fold-unchanged{cursor:pointer}.monaco-diff-editor .diff-moved-code-block{display:flex;justify-content:flex-end;margin-top:-4px}.monaco-diff-editor .diff-moved-code-block .action-bar .action-label.codicon{font-size:12px;height:12px;width:12px}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:#00000008}.monaco-diff-editor.vs-dark .diffOverview{background:#ffffff03}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:#0000}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:#ababab66}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active{background:none}.monaco-diff-editor .delete-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-editor .insert-sign{align-items:center;display:flex!important;font-size:11px!important;opacity:.7!important}.monaco-diff-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-diff-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-editor.hc-black .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-editor.hc-light .insert-sign{opacity:1}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .inline-deleted-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{position:absolute;z-index:10}.monaco-editor .arrow-revert-change:hover{cursor:pointer}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-diff-editor .char-insert,.monaco-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-diff-editor .line-insert,.monaco-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground,var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .char-insert,.monaco-editor .line-insert{border:1px solid var(--vscode-diffEditor-insertedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-insert,.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .char-insert,.monaco-editor.hc-light .line-insert{border-style:dashed}.monaco-editor .char-delete,.monaco-editor .line-delete{border:1px solid var(--vscode-diffEditor-removedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-delete,.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .char-delete,.monaco-editor.hc-light .line-delete{border-style:dashed}.monaco-diff-editor .gutter-insert,.monaco-editor .gutter-insert,.monaco-editor .inline-added-margin-view-zone{background-color:var(--vscode-diffEditorGutter-insertedLineBackground,var(--vscode-diffEditor-insertedLineBackground),var(--vscode-diffEditor-insertedTextBackground))}.monaco-diff-editor .char-delete,.monaco-editor .char-delete,.monaco-editor .inline-deleted-text{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-editor .inline-deleted-text{text-decoration:line-through}.monaco-diff-editor .line-delete,.monaco-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground,var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor .gutter-delete,.monaco-editor .gutter-delete,.monaco-editor .inline-deleted-margin-view-zone{background-color:var(--vscode-diffEditorGutter-removedLineBackground,var(--vscode-diffEditor-removedLineBackground),var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor.side-by-side .editor.modified{border-left:1px solid var(--vscode-diffEditor-border);box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow)}.monaco-diff-editor.side-by-side .editor.original{border-right:1px solid var(--vscode-diffEditor-border);box-shadow:6px 0 5px -5px var(--vscode-scrollbar-shadow)}.monaco-diff-editor .diffViewport{background:var(--vscode-scrollbarSlider-background)}.monaco-diff-editor .diffViewport:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-diff-editor .diffViewport:active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-editor .diagonal-fill{background-image:linear-gradient(-45deg,var(--vscode-diffEditor-diagonalFill) 12.5%,#0000 12.5%,#0000 50%,var(--vscode-diffEditor-diagonalFill) 50%,var(--vscode-diffEditor-diagonalFill) 62.5%,#0000 62.5%,#0000 100%);background-size:8px 8px}.monaco-diff-editor .gutter{flex-grow:0;flex-shrink:0;overflow:hidden;position:relative;&>div{position:absolute}.gutterItem{opacity:0;transition:opacity .7s;&.showAlways{opacity:1}&.noTransition,&.showAlways{transition:none}}&:hover .gutterItem{opacity:1;transition:opacity .1s ease-in-out}.gutterItem{.background{border-left:2px solid var(--vscode-menu-border);height:100%;left:50%;position:absolute;width:1px}.buttons{align-items:center;display:flex;justify-content:center;position:absolute;width:100%;.monaco-toolbar{height:fit-content;.monaco-action-bar{line-height:1;.actions-container{background:var(--vscode-editorGutter-commentRangeForeground);border-radius:4px;width:fit-content;.action-item{&:hover{background:var(--vscode-toolbar-hoverBackground)}.action-label{padding:1px 2px}}}}}}}}.monaco-diff-editor .diff-hidden-lines-compact{display:flex;height:11px;.line-left,.line-right{border-top:1px solid;border-color:var(--vscode-editorCodeLens-foreground);height:1px;margin:auto;opacity:.5;width:100%}.line-left{width:20px}.text{text-wrap:nowrap;color:var(--vscode-editorCodeLens-foreground);font-size:11px;line-height:11px;margin:0 4px}}.monaco-component.diff-review{user-select:none;-webkit-user-select:none;z-index:99}.monaco-diff-editor .diff-review{position:absolute}.monaco-component.diff-review .diff-review-line-number{color:var(--vscode-editorLineNumber-foreground);display:inline-block;text-align:right}.monaco-component.diff-review .diff-review-summary{padding-left:10px}.monaco-component.diff-review .diff-review-shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset;position:absolute}.monaco-component.diff-review .diff-review-row{white-space:pre}.monaco-component.diff-review .diff-review-table{display:table;min-width:100%}.monaco-component.diff-review .diff-review-row{display:table-row;width:100%}.monaco-component.diff-review .diff-review-spacer{display:inline-block;vertical-align:middle;width:10px}.monaco-component.diff-review .diff-review-spacer>.codicon{font-size:9px!important}.monaco-component.diff-review .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px;z-index:100}.monaco-component.diff-review .diff-review-actions .action-label{height:16px;margin:2px 0;width:16px}.monaco-component.diff-review .revertButton{cursor:pointer}.monaco-editor.hc-light .dnd-target,.monaco-editor.vs .dnd-target{border-right:2px dotted #000;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #aeafad;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines,.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines{cursor:default}.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines,.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines{cursor:copy}.monaco-editor .findOptionsWidget{border:2px solid var(--vscode-contrastBorder)}.monaco-editor .find-widget,.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground)}.monaco-editor .find-widget{border-bottom:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-left:1px solid var(--vscode-widget-border);border-right:1px solid var(--vscode-widget-border);box-sizing:border-box;height:33px;line-height:19px;overflow:hidden;padding:0 4px;position:absolute;transform:translateY(calc(-100% - 10px));transition:transform .2s linear;z-index:35}.monaco-workbench.reduce-motion .monaco-editor .find-widget{transition:transform 0ms linear}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-color:var(--vscode-focusBorder);outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:initial;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{display:flex;font-size:12px;margin:3px 25px 0 17px}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-bottom:2px;padding-top:2px}.monaco-editor .find-widget>.find-part .find-actions,.monaco-editor .find-widget>.replace-part .replace-actions{align-items:center;display:flex;height:25px}.monaco-editor .find-widget .monaco-findInput{display:flex;flex:1 1;vertical-align:middle}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{box-sizing:border-box;display:flex;flex:initial;height:25px;line-height:23px;margin:0 0 0 3px;padding:2px 0 0 2px;text-align:center;vertical-align:middle}.monaco-editor .find-widget .button{align-items:center;background-position:50%;background-repeat:no-repeat;border-radius:5px;cursor:pointer;display:flex;flex:initial;height:16px;justify-content:center;margin-left:3px;padding:3px;width:16px}.monaco-editor .find-widget .codicon-find-selection{border-radius:5px;height:22px;padding:3px;width:22px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{padding:1px 6px;top:-1px;width:auto}.monaco-editor .find-widget .button.toggle{border-radius:0;box-sizing:border-box;height:100%;left:3px;position:absolute;top:0;width:18px}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{color:var(--vscode-disabledForeground);cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{display:flex;flex:auto;flex-grow:0;flex-shrink:0;position:relative;vertical-align:middle}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;right:2px;top:3px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .find-widget.no-results .matchesCount{color:var(--vscode-errorForeground)}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important;background-color:var(--vscode-editor-findMatchHighlightBackground)}.monaco-editor .currentFindMatch{background-color:var(--vscode-editor-findMatchBackground);border:2px solid var(--vscode-editor-findMatchBorder);box-sizing:border-box;padding:1px}.monaco-editor .findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor .find-widget .monaco-sash{background-color:var(--vscode-editorWidget-resizeBorder,var(--vscode-editorWidget-border));left:0!important}.monaco-editor.hc-black .find-widget .button:before{left:2px;position:relative;top:1px}.monaco-editor .find-widget .button:not(.disabled):hover,.monaco-editor .find-widget .codicon-find-selection:hover{background-color:var(--vscode-toolbar-hoverBackground)!important}.monaco-editor.findMatch{background-color:var(--vscode-editor-findMatchHighlightBackground)}.monaco-editor.currentFindMatch{background-color:var(--vscode-editor-findMatchBackground)}.monaco-editor.findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor.findMatch{background-color:var(--vscode-editorWidget-background)}.monaco-editor .find-widget>.button.codicon-widget-close{position:absolute;right:4px;top:5px}.monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{align-items:center;cursor:pointer;display:flex;font-size:140%;justify-content:center;margin-left:2px;opacity:0;transition:opacity .5s}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{transition:initial}.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays:hover .codicon{opacity:1}.monaco-editor .inline-folded:after{color:var(--vscode-editor-foldPlaceholderForeground);content:"\22EF";cursor:pointer;display:inline;line-height:1em;margin:.1em .2em 0}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;margin-right:4px;vertical-align:text-top}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{font-style:italic;opacity:.6}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{padding:8px 12px 0 20px;position:absolute;user-select:text;-webkit-user-select:text;white-space:pre}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{color:inherit;opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{border-bottom:1px solid #0000;color:var(--vscode-textLink-activeForeground);text-decoration:underline;text-underline-position:under}.monaco-editor .marker-widget .descriptioncontainer .filename{color:var(--vscode-textLink-activeForeground);cursor:pointer}.extension-editor .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.markers-panel .marker-icon .codicon.codicon-error,.markers-panel .marker-icon.error,.monaco-editor .zone-widget .codicon.codicon-error,.preferences-editor .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.extension-editor .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.markers-panel .marker-icon .codicon.codicon-warning,.markers-panel .marker-icon.warning,.monaco-editor .zone-widget .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.extension-editor .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.markers-panel .marker-icon .codicon.codicon-info,.markers-panel .marker-icon.info,.monaco-editor .zone-widget .codicon.codicon-info,.preferences-editor .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}.monaco-editor .goto-definition-link{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer;text-decoration:underline}.monaco-editor .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ4LjAzNiA0LjAxSDQuMDA4VjMyLjAzaDQ0LjAyOFY0LjAxWk00LjAwOC4wMDhBNC4wMDMgNC4wMDMgMCAwIDAgLjAwNSA0LjAxVjMyLjAzYTQuMDAzIDQuMDAzIDAgMCAwIDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAgMCA0LjAwMy00LjAwMlY0LjAxQTQuMDAzIDQuMDAzIDAgMCAwIDQ4LjAzNi4wMDhINC4wMDhaTTguMDEgOC4wMTNoNC4wMDN2NC4wMDNIOC4wMVY4LjAxM1ptMTIuMDA4IDBoLTQuMDAydjQuMDAzaDQuMDAyVjguMDEzWm00LjAwMyAwaDQuMDAydjQuMDAzaC00LjAwMlY4LjAxM1ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzVjguMDEzWm00LjAwMiAwaDQuMDAzdjQuMDAzSDQwLjAzVjguMDEzWm0tMjQuMDE1IDguMDA1SDguMDF2NC4wMDNoOC4wMDZ2LTQuMDAzWm00LjAwMiAwaDQuMDAzdjQuMDAzaC00LjAwM3YtNC4wMDNabTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM3YtNC4wMDNabTEyLjAwOCAwdjQuMDAzaC04LjAwNXYtNC4wMDNoOC4wMDVabS0zMi4wMjEgOC4wMDVIOC4wMXY0LjAwM2g0LjAwM3YtNC4wMDNabTQuMDAzIDBoMjAuMDEzdjQuMDAzSDE2LjAxNnYtNC4wMDNabTI4LjAxOCAwSDQwLjAzdjQuMDAzaDQuMDAzdi00LjAwM1oiIGZpbGw9IiM0MjQyNDIiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #f6f6f6;border-radius:4px;height:36px;margin:0;min-height:0;min-width:0;overflow:hidden;padding:0;position:absolute;resize:none;width:58px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ4LjAzNiA0LjAxSDQuMDA4VjMyLjAzaDQ0LjAyOFY0LjAxWk00LjAwOC4wMDhBNC4wMDMgNC4wMDMgMCAwIDAgLjAwNSA0LjAxVjMyLjAzYTQuMDAzIDQuMDAzIDAgMCAwIDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAgMCA0LjAwMy00LjAwMlY0LjAxQTQuMDAzIDQuMDAzIDAgMCAwIDQ4LjAzNi4wMDhINC4wMDhaTTguMDEgOC4wMTNoNC4wMDN2NC4wMDNIOC4wMVY4LjAxM1ptMTIuMDA4IDBoLTQuMDAydjQuMDAzaDQuMDAyVjguMDEzWm00LjAwMyAwaDQuMDAydjQuMDAzaC00LjAwMlY4LjAxM1ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzVjguMDEzWm00LjAwMiAwaDQuMDAzdjQuMDAzSDQwLjAzVjguMDEzWm0tMjQuMDE1IDguMDA1SDguMDF2NC4wMDNoOC4wMDZ2LTQuMDAzWm00LjAwMiAwaDQuMDAzdjQuMDAzaC00LjAwM3YtNC4wMDNabTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM3YtNC4wMDNabTEyLjAwOCAwdjQuMDAzaC04LjAwNXYtNC4wMDNoOC4wMDVabS0zMi4wMjEgOC4wMDVIOC4wMXY0LjAwM2g0LjAwM3YtNC4wMDNabTQuMDAzIDBoMjAuMDEzdjQuMDAzSDE2LjAxNnYtNC4wMDNabTI4LjAxOCAwSDQwLjAzdjQuMDAzaDQuMDAzdi00LjAwM1oiIGZpbGw9IiNDNUM1QzUiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #252526}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:#0000;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{cursor:pointer;display:inline-block;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{font-size:0;opacity:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text .ghost-text{font-style:italic}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .snippet-placeholder{background-color:var(--vscode-editor-snippetTabstopHighlightBackground,#0000);min-width:2px;outline-color:var(--vscode-editor-snippetTabstopHighlightBorder,#0000);outline-style:solid;outline-width:1px}.monaco-editor .finish-snippet-placeholder{background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground,#0000);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder,#0000);outline-style:solid;outline-width:1px}.monaco-editor .suggest-widget{border-radius:3px;display:flex;flex-direction:column;width:430px;z-index:40}.monaco-editor .suggest-widget.message{align-items:center;flex-direction:row}.monaco-editor .suggest-details,.monaco-editor .suggest-widget{background-color:var(--vscode-editorSuggestWidget-background);border-color:var(--vscode-editorSuggestWidget-border);border-style:solid;border-width:1px;flex:0 1 auto;width:100%}.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-light .suggest-details,.monaco-editor.hc-light .suggest-widget{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{border-top:1px solid var(--vscode-editorSuggestWidget-border);box-sizing:border-box;display:none;flex-flow:row nowrap;font-size:80%;justify-content:space-between;overflow:hidden;padding:0 4px;width:100%}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none;-webkit-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{background-position:2px 2px;background-repeat:no-repeat;-mox-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:flex;padding-right:10px;touch-action:none;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1 1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;justify-content:space-between;overflow:hidden;text-overflow:ellipsis;white-space:pre}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;cursor:pointer;font-size:14px;opacity:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;right:2px;top:6px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{opacity:.6;overflow:hidden;text-overflow:ellipsis}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{align-self:center;font-size:85%;line-height:normal;margin-left:12px;opacity:.4;overflow:hidden;text-overflow:ellipsis}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-grow:1;flex-shrink:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{flex-shrink:4;max-width:70%;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;height:18px;position:absolute;right:10px;visibility:hidden;width:18px}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{background-position:50%;background-repeat:no-repeat;background-size:80%;display:block;height:16px;margin-left:2px;width:16px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{align-items:center;display:flex;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{border:.1em solid #000;display:inline-block;height:.7em;margin:0 0 0 .3em;width:.7em}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{color:var(--vscode-editorSuggestWidget-foreground);cursor:default;display:flex;flex-direction:column}.monaco-editor .suggest-details.focused{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1 1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2 1;margin:0 24px 0 0;opacity:.7;overflow:hidden;padding:4px 0 12px 5px;text-overflow:ellipsis;white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{min-height:calc(1rem + 8px);padding:0;white-space:normal}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{word-wrap:break-word;white-space:pre-wrap}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ol,.monaco-editor .suggest-details ul{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .inline-edit-remove{background-color:var(--vscode-editorGhostText-background);font-style:italic}.monaco-editor .inline-edit-hidden{font-size:0;opacity:0}.monaco-editor .inline-edit-decoration,.monaco-editor .suggest-preview-text .inline-edit{font-style:italic}.monaco-editor .inline-completion-text-to-replace{text-decoration:underline;text-underline-position:under}.monaco-editor .inline-edit-decoration,.monaco-editor .inline-edit-decoration-preview,.monaco-editor .suggest-preview-text .inline-edit{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .inlineEditHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.monaco-editor .inlineEditHints a,.monaco-editor .inlineEditHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineEditHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineEditHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineEditStatusBarItemLabel{margin-right:2px}.monaco-editor .inlineEditSideBySide{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);white-space:pre;z-index:39}.monaco-editor div.inline-edits-widget{--widget-color:var(--vscode-notifications-background);.promptEditor .monaco-editor{--vscode-editor-placeholder-foreground:var(--vscode-editorGhostText-foreground)}.promptEditor,.toolbar{opacity:0;transition:opacity .2s ease-in-out}&.focused,&:hover{.promptEditor,.toolbar{opacity:1}}.preview .monaco-editor{--vscode-editor-background:var(--widget-color);.mtk1{color:var(--vscode-editorGhostText-foreground)}.current-line-margin,.view-overlays .current-line-exact{border:none}}svg{.gradient-start{stop-color:var(--vscode-editor-background)}.gradient-stop{stop-color:var(--widget-color)}}}.monaco-editor .tokens-inspect-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);padding:10px;user-select:text;-webkit-user-select:text;z-index:50}.monaco-editor.hc-black .tokens-inspect-widget,.monaco-editor.hc-light .tokens-inspect-widget{border-width:2px}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{background-color:var(--vscode-editorHoverWidget-border);border:0;height:1px}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{float:right;font-size:60%;font-weight:400}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.monaco-editor .linked-editing-decoration{background-color:var(--vscode-editor-linkedEditingBackground);min-width:1px}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);border:1px solid var(--vscode-editor-selectionHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);border:1px solid var(--vscode-editor-wordHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);border:1px solid var(--vscode-editor-wordHighlightStrongBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);border:1px solid var(--vscode-editor-wordHighlightTextBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .parameter-hints-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);cursor:default;display:flex;flex-direction:column;line-height:1.5em;z-index:39}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{display:flex;flex-direction:row;max-width:440px}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{border-left:1px solid var(--vscode-editorHoverWidget-border);content:"";display:block;height:100%;opacity:.5;position:absolute}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .body,.monaco-editor .parameter-hints-widget .monaco-scrollable-element{display:flex;flex:1 1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px;position:relative}.monaco-editor .parameter-hints-widget .signature.has-docs:after{border-bottom:1px solid var(--vscode-editorHoverWidget-border);content:"";display:block;left:0;opacity:.5;padding-top:4px;position:absolute;width:100%}.monaco-editor .parameter-hints-widget .code{font-family:var(--vscode-parameterHintsWidget-editorFontFamily),var(--vscode-parameterHintsWidget-editorFontFamilyDefault)}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs a{color:var(--vscode-textLink-foreground)}.monaco-editor .parameter-hints-widget .docs a:hover{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:normal}.monaco-editor .parameter-hints-widget .docs code{background-color:var(--vscode-textCodeBlock-background);border-radius:3px;font-family:var(--monaco-monospace-font);padding:0 .4em}.monaco-editor .parameter-hints-widget .docs .code,.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{align-items:center;display:none;flex-direction:column;justify-content:flex-end;min-width:22px}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{background-repeat:no-repeat;cursor:pointer;height:16px;width:16px}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{font-family:var(--monaco-monospace-font);height:12px;line-height:12px;text-align:center}.monaco-editor .parameter-hints-widget .signature .parameter.active{color:var(--vscode-editorHoverWidget-highlightForeground);font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor{--vscode-editor-placeholder-foreground:var(--vscode-editorGhostText-foreground);.editorPlaceholder{text-wrap:nowrap;color:var(--vscode-editor-placeholder-foreground);overflow:hidden;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0}}.monaco-editor .rename-box{border-radius:4px;color:inherit;z-index:100}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input-with-button{border-radius:2px;padding:3px;width:calc(100% - 8px)}.monaco-editor .rename-box .rename-input{padding:0;width:calc(100% - 8px)}.monaco-editor .rename-box .rename-input:focus{outline:none}.monaco-editor .rename-box .rename-suggestions-button{align-items:center;background-color:initial;border:none;border-radius:5px;cursor:pointer;display:flex;padding:3px}.monaco-editor .rename-box .rename-suggestions-button:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-editor .rename-box .rename-candidate-list-container .monaco-list-row{border-radius:2px}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .sticky-widget{overflow:hidden}.monaco-editor .sticky-widget-line-numbers{background-color:inherit;float:left}.monaco-editor .sticky-widget-lines-scrollable{background-color:inherit;display:inline-block;overflow:hidden;position:absolute;width:var(--vscode-editorStickyScroll-scrollableWidth)}.monaco-editor .sticky-widget-lines{background-color:inherit;position:absolute}.monaco-editor .sticky-line-content,.monaco-editor .sticky-line-number{background-color:inherit;color:var(--vscode-editorLineNumber-foreground);display:inline-block;position:absolute;white-space:nowrap}.monaco-editor .sticky-line-number .codicon-folding-collapsed,.monaco-editor .sticky-line-number .codicon-folding-expanded{float:right;transition:var(--vscode-editorStickyScroll-foldingOpacityTransition)}.monaco-editor .sticky-line-content{background-color:inherit;white-space:nowrap;width:var(--vscode-editorStickyScroll-scrollableWidth)}.monaco-editor .sticky-line-number-inner{display:inline-block;text-align:right}.monaco-editor .sticky-widget{border-bottom:1px solid var(--vscode-editorStickyScroll-border)}.monaco-editor .sticky-line-content:hover{background-color:var(--vscode-editorStickyScrollHover-background);cursor:pointer}.monaco-editor .sticky-widget{background-color:var(--vscode-editorStickyScroll-background);box-shadow:var(--vscode-editorStickyScroll-shadow) 0 4px 2px -2px;right:auto!important;width:100%;z-index:4}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .unicode-highlight{background-color:var(--vscode-editorUnicodeHighlight-background);border:1px solid var(--vscode-editorUnicodeHighlight-border);box-sizing:border-box}.editor-banner{background:var(--vscode-banner-background);box-sizing:border-box;cursor:default;display:flex;font-size:12px;height:26px;overflow:visible;width:100%}.editor-banner .icon-container{align-items:center;display:flex;flex-shrink:0;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-position:50%;background-repeat:no-repeat;background-size:16px;margin:0 6px 0 10px;padding:0;width:16px}.editor-banner .message-container{align-items:center;display:flex;line-height:26px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-banner .message-container p{margin-block-end:0;margin-block-start:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;line-height:26px;margin:0 4px}.editor-banner .message-actions-container a.monaco-button{margin:2px 8px;padding:0 12px;width:inherit}.editor-banner .message-actions-container a{margin-left:12px;padding:3px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-link{color:var(--vscode-textLink-foreground)}.monaco-link:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor{--monaco-monospace-font:"SF Mono",Monaco,Menlo,Consolas,"Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New",monospace;font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif}.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;top:0;width:1px}.monaco-diff-editor .synthetic-focus,.monaco-diff-editor [tabindex="-1"]:focus,.monaco-diff-editor [tabindex="0"]:focus,.monaco-diff-editor button:focus,.monaco-diff-editor input[type=button]:focus,.monaco-diff-editor input[type=checkbox]:focus,.monaco-diff-editor input[type=search]:focus,.monaco-diff-editor input[type=text]:focus,.monaco-diff-editor select:focus,.monaco-diff-editor textarea:focus,.monaco-editor{opacity:1;outline-color:var(--vscode-focusBorder);outline-offset:-1px;outline-style:solid;outline-width:1px}.monaco-workbench .workbench-hover{background:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;box-shadow:0 2px 8px var(--vscode-widget-shadow);color:var(--vscode-editorHoverWidget-foreground);font-size:13px;line-height:19px;max-width:700px;overflow:hidden;position:relative;z-index:40}.monaco-workbench .workbench-hover hr{border-bottom:none}.monaco-workbench .workbench-hover:not(.skip-fade-in){animation:fadein .1s linear}.monaco-workbench .workbench-hover.compact{font-size:12px}.monaco-workbench .workbench-hover.compact .hover-contents{padding:2px 8px}.monaco-workbench .workbench-hover-container.locked .workbench-hover{outline:1px solid var(--vscode-editorHoverWidget-border)}.monaco-workbench .workbench-hover-container.locked .workbench-hover:focus,.monaco-workbench .workbench-hover-lock:focus{outline:1px solid var(--vscode-focusBorder)}.monaco-workbench .workbench-hover-container.locked .workbench-hover-lock:hover{background:var(--vscode-toolbar-hoverBackground)}.monaco-workbench .workbench-hover-pointer{pointer-events:none;position:absolute;z-index:41}.monaco-workbench .workbench-hover-pointer:after{background-color:var(--vscode-editorHoverWidget-background);border-bottom:1px solid var(--vscode-editorHoverWidget-border);border-right:1px solid var(--vscode-editorHoverWidget-border);content:"";height:5px;position:absolute;width:5px}.monaco-workbench .locked .workbench-hover-pointer:after{border-bottom-width:2px;border-right-width:2px;height:4px;width:4px}.monaco-workbench .workbench-hover-pointer.left{left:-3px}.monaco-workbench .workbench-hover-pointer.right{right:3px}.monaco-workbench .workbench-hover-pointer.top{top:-3px}.monaco-workbench .workbench-hover-pointer.bottom{bottom:3px}.monaco-workbench .workbench-hover-pointer.left:after{transform:rotate(135deg)}.monaco-workbench .workbench-hover-pointer.right:after{transform:rotate(315deg)}.monaco-workbench .workbench-hover-pointer.top:after{transform:rotate(225deg)}.monaco-workbench .workbench-hover-pointer.bottom:after{transform:rotate(45deg)}.monaco-workbench .workbench-hover a{color:var(--vscode-textLink-foreground)}.monaco-workbench .workbench-hover a:focus{outline:1px solid;outline-color:var(--vscode-focusBorder);outline-offset:-1px;text-decoration:underline}.monaco-workbench .workbench-hover a:active,.monaco-workbench .workbench-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-workbench .workbench-hover code{background:var(--vscode-textCodeBlock-background)}.monaco-workbench .workbench-hover .hover-row .actions{background:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-workbench .workbench-hover.right-aligned{left:1px}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions{flex-direction:row-reverse}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions .action-container{margin-left:16px;margin-right:0}.context-view{position:absolute}.context-view.fixed{all:initial;color:inherit;font-family:inherit;font-size:13px;position:fixed}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border:1px solid;border-color:#ccc6 #ccc6 #bbb6;box-shadow:inset 0 -1px 0 #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:initial;border:1px solid #6fc3df;box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:initial;border:1px solid #0f4a85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:1px solid;border-color:#3339 #3339 #4449;box-shadow:inset 0 -1px 0 #4449;color:#ccc}.quick-input-widget{-webkit-app-region:no-drag;border-radius:6px;left:50%;margin-left:-300px;position:absolute;width:600px;z-index:2550}.quick-input-titlebar{align-items:center;border-top-left-radius:5px;border-top-right-radius:5px;display:flex}.quick-input-left-action-bar{display:flex;flex:1 1;margin-left:4px}.quick-input-inline-action-bar{margin:2px 0 0 5px}.quick-input-title{overflow:hidden;padding:3px 0;text-align:center;text-overflow:ellipsis}.quick-input-right-action-bar{display:flex;flex:1 1;margin-right:4px}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:50%;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px 6px 6px 11px}.quick-input-header .quick-input-description{flex:1 1;margin:4px 2px}.quick-input-header{display:flex;padding:8px 6px 2px}.quick-input-widget.hidden-input .quick-input-header{margin-bottom:0;padding:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{display:flex;flex-grow:1;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{left:-10000px;position:absolute}.quick-input-count{align-items:center;align-self:center;display:flex;position:absolute;right:4px}.quick-input-count .monaco-count-badge{border-radius:2px;line-height:normal;min-height:auto;padding:2px 4px;vertical-align:middle}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{align-items:center;display:flex;font-size:11px;height:25px;padding:0 6px}.quick-input-message{margin-top:-1px;overflow-wrap:break-word;padding:5px}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-message a{color:inherit}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-list{line-height:22px}.quick-input-widget.hidden-input .quick-input-list{margin-top:4px;padding-bottom:4px}.quick-input-list .monaco-list{max-height:440px;overflow:hidden;padding-bottom:5px}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;display:flex;overflow:hidden;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-style:solid;border-top-width:1px}.quick-input-list .monaco-list-row{border-radius:3px}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{display:flex;flex:1 1;height:100%;overflow:hidden}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-icon{align-items:center;background-position:0;background-repeat:no-repeat;background-size:16px;display:flex;height:22px;justify-content:center;padding-right:6px;width:16px}.quick-input-list .quick-input-list-rows{display:flex;flex:1 1;flex-direction:column;height:100%;margin-left:5px;overflow:hidden;text-overflow:ellipsis}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{align-items:center;display:flex}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1 1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label>span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{line-height:normal;opacity:.7;overflow:hidden;text-overflow:ellipsis}.quick-input-list .monaco-list .monaco-list-row .monaco-highlighted-label .highlight{background-color:unset;color:var(--vscode-list-highlightForeground)!important;font-weight:700}.quick-input-list .monaco-list .monaco-list-row.focused .monaco-highlighted-label .highlight{color:var(--vscode-list-focusHighlightForeground)!important}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0 1;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:2px}.quick-input-list .quick-input-list-entry-action-bar{margin-right:4px;margin-top:1px}.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.passive-focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry.focus-inside .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.quick-input-list .quick-input-list-separator-as-item{font-size:12px;padding:4px 6px}.quick-input-list .quick-input-list-separator-as-item .label-name{font-weight:600}.quick-input-list .quick-input-list-separator-as-item .label-description{opacity:1!important}.quick-input-list .monaco-tree-sticky-row .quick-input-list-entry.quick-input-list-separator-as-item.quick-input-list-separator-border{border-top-style:none}.quick-input-list .monaco-tree-sticky-row{padding:0 5px}.quick-input-list .monaco-tl-twistie{display:none!important}.monaco-progress-container{height:2px;overflow:hidden;width:100%}.monaco-progress-container .progress-bit{display:none;height:2px;left:0;position:absolute;width:2%}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-duration:4s;animation-iteration-count:infinite;animation-name:progress;animation-timing-function:linear;transform:translateZ(0)}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translateX(0) scaleX(1)}50%{transform:translateX(2500%) scaleX(3)}to{transform:translateX(4900%) scaleX(1)}}.monaco-component.multiDiffEditor{background:var(--vscode-multiDiffEditor-background);height:100%;overflow-y:hidden;position:relative;width:100%;>div{height:100%;left:0;position:absolute;top:0;width:100%;&.placeholder{display:grid;place-content:center;place-items:center;visibility:hidden;&.visible{visibility:visible}}}.active{--vscode-multiDiffEditor-border:var(--vscode-focusBorder)}.multiDiffEntry{display:flex;flex:1 1;flex-direction:column;overflow:hidden;.collapse-button{cursor:pointer;margin:0 5px;a{display:block}}.header{background:var(--vscode-editor-background);z-index:1000;&:not(.collapsed) .header-content{border-bottom:1px solid var(--vscode-sideBarSectionHeader-border)}.header-content{align-items:center;background:var(--vscode-multiDiffEditor-headerBackground);border-top:1px solid var(--vscode-multiDiffEditor-border);color:var(--vscode-foreground);display:flex;margin:8px 0 0;padding:4px 5px;&.shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px}.file-path{display:flex;flex:1 1;min-width:0;.title{font-size:14px;line-height:22px;&.original{flex:1 1;min-width:0;text-overflow:ellipsis}}.status{font-weight:600;line-height:22px;margin:0 10px;opacity:.75}}.actions{padding:0 8px}}}.editorParent{border-bottom:1px solid var(--vscode-multiDiffEditor-border);display:flex;flex:1 1;flex-direction:column;overflow:hidden}.editorContainer{flex:1 1}}}.gt-table{border:none;border-collapse:initial;border-spacing:0}.gt-table__row_interactive{cursor:pointer}.gt-table__header_sticky{inset-block-start:0;position:sticky;z-index:1}.gt-table__footer_sticky{inset-block-end:0;position:sticky;z-index:1}.gt-table__cell{font-weight:400}.gt-table__footer-cell,.gt-table__header-cell{font-weight:500;position:relative}.gt-table__cell,.gt-table__footer-cell,.gt-table__header-cell{box-sizing:border-box;height:inherit;padding:0;text-align:start}.gt-table__cell_pinned,.gt-table__footer-cell_pinned,.gt-table__header-cell_pinned{position:sticky;z-index:1}.gt-table__sort{cursor:pointer;-webkit-user-select:none;user-select:none}.gt-table_with-row-virtualization{display:grid;height:auto}.gt-table_with-row-virtualization .gt-table__body{display:grid;position:relative}.gt-table_with-row-virtualization .gt-table__footer,.gt-table_with-row-virtualization .gt-table__header{display:grid}.gt-table_with-row-virtualization .gt-table__footer-row,.gt-table_with-row-virtualization .gt-table__header-row{display:flex;height:auto}.gt-table_with-row-virtualization .gt-table__row{display:flex;height:auto;position:absolute}.gt-table_with-row-virtualization .gt-table__row_empty{position:relative}.gt-group-header{inset-inline-start:0;margin:0;position:sticky}.gt-group-header__button{appearance:none;background:inherit;border:none;cursor:pointer;display:flex;gap:8px;outline:none;padding:0;width:100%}.gt-group-header__icon{display:inline-block;transform:rotate(-90deg);transition:transform .1s ease-out;vertical-align:middle}.gt-group-header__icon_expanded{transform:rotate(0)}.gt-group-header__content{display:inline-flex;font-weight:500;gap:4px}.gt-sort-indicator{color:var(--g-color-text-hint);display:inline-flex;margin-inline-start:4px;transform:rotate(0);vertical-align:middle}.gt-sort-indicator_invisible{opacity:0}.gt-table__header-cell:hover .gt-sort-indicator_invisible{opacity:1}.gt-sort-indicator_order_asc{transform:rotate(180deg)}.gt-resize-handle{background:#d3d3d3;cursor:col-resize;height:100%;inset-block-start:0;opacity:0;position:absolute;touch-action:none;-webkit-user-select:none;user-select:none;width:6px}.gt-resize-handle_direction_ltr{inset-inline-end:0}.gt-resize-handle_direction_rtl{inset-inline-start:0}.gt-resize-handle_resizing,.gt-table__header-cell:hover .gt-resize-handle{opacity:1}.ydb-navigation-tree-view-empty{color:var(--g-color-text-secondary);font-style:italic}.ydb-navigation-tree-view-error{color:var(--g-color-text-danger)}.ydb-navigation-tree-view-loader{align-items:center;display:flex;height:24px;justify-content:center;width:20px}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/9796.828f7385.chunk.css b/ydb/core/viewer/monitoring/static/css/9796.828f7385.chunk.css new file mode 100644 index 00000000000..98356eac336 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/9796.828f7385.chunk.css @@ -0,0 +1 @@ +.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.table-skeleton__wrapper{width:100%}.table-skeleton__wrapper_hidden{visibility:hidden}.table-skeleton__row{align-items:center;display:flex;height:var(--data-table-row-height)}.table-skeleton__row .g-skeleton{height:var(--g-text-body-2-line-height)}.table-skeleton__col-1{margin-right:5%;width:10%}.table-skeleton__col-2{margin-right:5%;width:7%}.table-skeleton__col-3,.table-skeleton__col-4{margin-right:5%;width:5%}.table-skeleton__col-5{width:20%}.table-skeleton__col-full{width:100%}.ydb-table-with-controls-layout{--data-table-sticky-top-offset:62px;box-sizing:border-box;display:inline-block;min-width:100%}.ydb-table-with-controls-layout__controls-wrapper{background-color:var(--g-color-base-background);box-sizing:border-box;left:0;position:sticky;top:0;width:100%;z-index:3}.ydb-table-with-controls-layout__controls{align-items:center;background-color:var(--g-color-base-background);display:flex;gap:12px;height:62px;left:0;padding:16px 0 18px;position:sticky;top:0;width:max-content;z-index:3}.ydb-table-with-controls-layout__table{position:relative;z-index:2}.ydb-table-with-controls-layout .ydb-paginated-table__head{top:var(--data-table-sticky-top-offset,62px)}.ydb-table-with-controls-layout .data-table__sticky_moving{top:var(--data-table-sticky-top-offset,62px)!important}.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;display:inline-flex;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:150px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.ydb-search{min-width:100px}.ydb-paginated-table{--paginated-table-cell-vertical-padding:5px;--paginated-table-cell-horizontal-padding:10px;--paginated-table-border-color:var(--g-color-base-generic-hover);--paginated-table-hover-color:var(--g-color-base-simple-hover-solid);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);width:100%}.ydb-paginated-table__table{border-collapse:initial;border-spacing:0;max-width:100%;table-layout:fixed;width:max-content}.ydb-paginated-table__table th{padding:0}.ydb-paginated-table__row{position:relative;transform:translateZ(0);z-index:1}.ydb-paginated-table__row:hover{background:var(--paginated-table-hover-color)}.ydb-paginated-table__row_empty:hover{background-color:initial}.ydb-paginated-table__head{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:2}.ydb-paginated-table__sort-icon-container{color:inherit;display:flex;justify-content:center}.ydb-paginated-table__sort-icon-container_shadow{opacity:.15}.ydb-paginated-table__sort-icon_desc{transform:rotate(180deg)}.ydb-paginated-table__head-cell-wrapper{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;overflow-x:hidden;position:relative}.ydb-paginated-table__head-cell{align-items:center;display:flex;flex-direction:row;max-width:100%;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);width:100%}.ydb-paginated-table__head-cell_align_left{justify-content:left}.ydb-paginated-table__head-cell_align_center{justify-content:center}.ydb-paginated-table__head-cell_align_right{justify-content:right}.ydb-paginated-table__head-cell{cursor:default;font-weight:700;gap:8px}.ydb-paginated-table__head-cell_sortable{cursor:pointer}.ydb-paginated-table__head-cell_sortable.ydb-paginated-table__head-cell_align_right{flex-direction:row-reverse}.ydb-paginated-table__head-cell-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.ydb-paginated-table__row-cell{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;max-width:100%;overflow-x:hidden;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-paginated-table__row-cell_align_left{text-align:left}.ydb-paginated-table__row-cell_align_center{text-align:center}.ydb-paginated-table__row-cell_align_right{text-align:right}.ydb-paginated-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.ydb-paginated-table__head-cell-wrapper:hover>.ydb-paginated-table__resize-handler,.ydb-paginated-table__resize-handler_resizing{visibility:visible}.ydb-paginated-table__resizeable-table-container{padding-right:20px;width:max-content}.ydb-paginated-table__row-skeleton:after{animation:none!important}.ydb-usage-label_overload{background-color:var(--ydb-color-status-red);color:var(--g-color-text-light-primary)}.storage-disk-progress-bar{--progress-bar-full-height:var(--g-text-body-3-line-height);--progress-bar-compact-height:12px;--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:4px;color:var(--g-color-text-primary);height:var(--progress-bar-full-height);min-width:50px;position:relative;text-align:center;z-index:0}.storage-disk-progress-bar_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.storage-disk-progress-bar_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.storage-disk-progress-bar_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.storage-disk-progress-bar_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.storage-disk-progress-bar_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.storage-disk-progress-bar__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.storage-disk-progress-bar_compact{border-radius:2px;height:var(--progress-bar-compact-height);min-width:0}.storage-disk-progress-bar_faded{background-color:unset}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:unset;border-style:dashed;color:var(--g-color-text-hint)}.storage-disk-progress-bar__fill-bar{background-color:var(--entity-state-fill-color);border-radius:3px 0 0 3px;height:100%;left:0;position:absolute;top:0}.storage-disk-progress-bar__fill-bar_faded{background-color:var(--entity-state-background-color)}.storage-disk-progress-bar__fill-bar_compact{border-radius:1px}.storage-disk-progress-bar__fill-bar_inverted{border-radius:0 3px 3px 0;left:auto;right:0}.storage-disk-progress-bar__title{color:inherit;font-size:var(--g-text-body-1-font-size);line-height:calc(var(--progress-bar-full-height) - 2px);position:relative;z-index:2}.hover-popup{padding:var(--g-spacing-3)}.vdisk-storage-popup .info-viewer+.info-viewer{border-top:1px solid var(--g-color-line-generic);margin-top:8px;padding-top:8px}.vdisk-storage-popup__donor-label{margin-bottom:8px}.ydb-table-group{border:1px solid var(--g-color-line-generic);border-radius:var(--g-spacing-2);display:flex;flex-direction:column;margin-bottom:20px;width:100%}.ydb-table-group__button{background:unset;border:unset;cursor:pointer;padding:8px 0}.ydb-table-group__title-wrapper{align-items:center;display:flex;flex-direction:row;gap:var(--g-spacing-2);justify-content:flex-start;left:0;padding-left:20px;position:sticky;width:max-content}.ydb-table-group__title{display:flex;flex-direction:row;gap:var(--g-spacing-4)}.ydb-table-group__count{display:flex;flex-direction:row;gap:var(--g-spacing-3)}.ydb-table-group__content{padding:12px 0 20px 20px}.ydb-vdisk-component{border-radius:4px}.ydb-vdisk-component__content{border-radius:4px;display:block}.pdisk-storage{display:flex;flex-direction:column;justify-content:flex-end;min-width:var(--pdisk-min-width);position:relative;width:var(--pdisk-width)}.pdisk-storage__content{border-radius:4px;display:block;flex:1 1;position:relative}.pdisk-storage__vdisks{display:flex;flex:0 0 auto;gap:var(--pdisk-gap-width);margin-bottom:4px;white-space:nowrap}.pdisk-storage__vdisks-item{flex:0 0 var(--pdisk-vdisk-width);min-width:var(--pdisk-vdisk-width)}.data-table__row:hover .pdisk-storage__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.pdisk-storage__donors-stack{--ydb-stack-offset-x:0px;--ydb-stack-offset-y:-2px;--ydb-stack-offset-x-hover:0px;--ydb-stack-offset-y-hover:-7px}.pdisk-storage__media-type{color:var(--g-color-text-secondary);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);position:absolute;right:4px;top:50%;transform:translateY(-50%)}.ydb-storage-disks{align-items:center;display:flex;flex-direction:row;gap:20px;width:max-content}.ydb-storage-disks__pdisks-wrapper{display:flex;flex-direction:row;justify-content:left;width:max-content}.ydb-storage-disks__vdisk-item{flex-basis:8px;flex-shrink:0}.ydb-storage-disks__vdisk-progress-bar{--progress-bar-compact-height:18px;border-radius:4px}.ydb-storage-disks__pdisk-item{margin-right:4px;min-width:80px}.ydb-storage-disks__pdisk-item_with-dc-margin{margin-right:12px}.ydb-storage-disks__pdisk-item:last-child{margin-right:0}.ydb-storage-disks__pdisk-progress-bar{--progress-bar-full-height:20px;padding-left:var(--g-spacing-2);text-align:left}.entity-status{--button-width:28px;align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%;position:relative}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__clipboard-button:focus-visible{background-color:var(--g-color-base-float);position:absolute;right:2px;top:2px}.data-table__row:hover .entity-status__clipboard-button,.ydb-paginated-table__row:hover .entity-status__clipboard-button{opacity:1}.data-table__row:hover .entity-status__clipboard-button:focus-visible,.ydb-paginated-table__row:hover .entity-status__clipboard-button:focus-visible{background-color:unset;position:static}.entity-status__clipboard-button_visible{opacity:1}.entity-status__wrapper{overflow:hidden;position:relative}.entity-status__wrapper_with-button{padding-right:var(--button-width)}.entity-status__controls-wrapper{align-items:center;display:flex;gap:var(--g-spacing-1);height:100%;position:absolute;right:0;top:0;width:0}.entity-status__controls-wrapper_visible{padding:var(--g-spacing-1);width:min-content}.data-table__row:hover .entity-status__controls-wrapper,.ydb-paginated-table__row:hover .entity-status__controls-wrapper,.ydb-tree-view__item .entity-status__controls-wrapper{background-color:var(--ydb-data-table-color-hover);padding:var(--g-spacing-1);width:min-content}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{display:inline-block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% + var(--button-width))}.entity-status__link_with-left-trim{direction:rtl;text-align:end}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.memory-viewer{min-width:150px;padding:0 var(--g-spacing-1);position:relative;z-index:0}.memory-viewer__progress-container{background:var(--g-color-base-generic);border-radius:2px;height:20px;overflow:hidden;position:relative}.memory-viewer__container{display:flex;padding:2px 0}.memory-viewer__legend{border-radius:2px;bottom:2px;height:20px;position:absolute;width:20px}.memory-viewer__legend_type_AllocatorCachesMemory{background-color:var(--g-color-base-utility-medium-hover)}.memory-viewer__legend_type_SharedCacheConsumption{background-color:var(--g-color-base-info-medium-hover)}.memory-viewer__legend_type_MemTableConsumption{background-color:var(--g-color-base-warning-medium-hover)}.memory-viewer__legend_type_QueryExecutionConsumption{background-color:var(--g-color-base-positive-medium-hover)}.memory-viewer__legend_type_Other{background-color:var(--g-color-base-generic-medium-hover)}.memory-viewer__segment{height:100%;position:absolute}.memory-viewer__segment_type_AllocatorCachesMemory{background-color:var(--g-color-base-utility-medium-hover)}.memory-viewer__segment_type_SharedCacheConsumption{background-color:var(--g-color-base-info-medium-hover)}.memory-viewer__segment_type_MemTableConsumption{background-color:var(--g-color-base-warning-medium-hover)}.memory-viewer__segment_type_QueryExecutionConsumption{background-color:var(--g-color-base-positive-medium-hover)}.memory-viewer__segment_type_Other{background-color:var(--g-color-base-generic-medium-hover)}.memory-viewer__name{padding-left:28px}.memory-viewer_theme_dark{color:var(--g-color-text-light-primary)}.memory-viewer_theme_dark .memory-viewer__segment{opacity:.75}.memory-viewer_status_good .memory-viewer__progress-container{background-color:var(--g-color-base-positive-light)}.memory-viewer_status_warning .memory-viewer__progress-container{background-color:var(--g-color-base-yellow-light)}.memory-viewer_status_danger .memory-viewer__progress-container{background-color:var(--g-color-base-danger-light)}.memory-viewer__text{align-items:center;display:flex;justify-content:center}.stack{--ydb-stack-base-z-index:100;--ydb-stack-offset-x:4px;--ydb-stack-offset-y:4px;--ydb-stack-offset-x-hover:4px;--ydb-stack-offset-y-hover:6px;position:relative}.stack__layer{background:var(--g-color-base-background);transition:transform .1s ease-out}.stack__layer:first-child{position:relative;z-index:var(--ydb-stack-base-z-index)}.stack__layer+.stack__layer{height:100%;left:0;position:absolute;top:0;transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y)));width:100%;z-index:calc(var(--ydb-stack-base-z-index) - var(--ydb-stack-level))}.stack:hover .stack__layer:first-child{transform:translate(calc(var(--ydb-stack-offset-x-hover)*-1),calc(var(--ydb-stack-offset-y-hover)*-1))}.stack:hover .stack__layer+.stack__layer{transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x-hover)*2 - var(--ydb-stack-offset-x-hover)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y-hover)*2 - var(--ydb-stack-offset-y-hover)))}.ydb-pool-bar{border:1px solid;border-radius:1px;cursor:pointer;height:20px;margin-right:2px;position:relative;width:6px}.ydb-pool-bar__popup-content{padding:10px;width:170px}.ydb-pool-bar:last-child{margin-right:0}.ydb-pool-bar_type_normal{border-color:var(--ydb-color-status-green)}.ydb-pool-bar_type_warning{border-color:var(--ydb-color-status-yellow)}.ydb-pool-bar_type_danger{border-color:var(--ydb-color-status-red)}.ydb-pool-bar__value{bottom:0;min-height:1px;position:absolute;width:100%}.ydb-pool-bar__value_type_normal{background-color:var(--ydb-color-status-green)}.ydb-pool-bar__value_type_warning{background-color:var(--ydb-color-status-yellow)}.ydb-pool-bar__value_type_danger{background-color:var(--ydb-color-status-red)}.ydb-storage-vdisks__wrapper{display:flex}.ydb-storage-vdisks__item{margin-right:6px;width:90px}.ydb-storage-vdisks__item_with-dc-margin{margin-right:12px}.ydb-storage-vdisks__item:last-child{margin-right:0}.data-table__row:hover .ydb-storage-vdisks__item .stack__layer{background:var(--ydb-data-table-color-hover)}.ydb-pools-graph{display:flex}.ydb-storage-groups-columns__disks-column,.ydb-storage-groups-columns__vdisks-column{overflow:visible}.ydb-storage-groups-columns__pool-name-wrapper{direction:rtl;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-storage-groups-columns__pool-name{unicode-bidi:plaintext}.ydb-storage-groups-columns__group-id{font-weight:500}.tablets-statistic{align-items:center;display:flex;gap:2px}.tablets-statistic__tablet{border:1px solid;border-radius:2px;color:var(--g-color-text-secondary);display:inline-block;font-size:11px;height:20px;line-height:20px;padding:0 4px;text-align:center;text-decoration:none;text-transform:uppercase}.tablets-statistic__tablet_state_green{background-color:var(--g-color-base-positive-light);color:var(--g-color-text-positive)}.tablets-statistic__tablet_state_yellow{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning)}.tablets-statistic__tablet_state_blue{background-color:var(--g-color-base-info-light);color:var(--g-color-text-info)}.tablets-statistic__tablet_state_orange{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning-heavy)}.tablets-statistic__tablet_state_red{background:var(--g-color-base-danger-light);color:var(--g-color-text-danger)}.tablets-statistic__tablet_state_grey{border:1px solid var(--g-color-line-generic-hover);color:var(--g-color-text-secondary)}.global-storage__search{width:238px}.global-storage__table .g-tooltip{height:var(--g-text-body-2-line-height)!important}.global-storage .entity-status{justify-content:center}.global-storage__groups-wrapper{padding-right:20px}.ydb-nodes-columns__column-cpu,.ydb-nodes-columns__column-ram{min-width:40px}.ydb-storage-nodes__node_unavailable{opacity:.6}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-storage-nodes-columns__pdisks-column{overflow:visible}.ydb-storage-nodes-columns__pdisks-wrapper{--pdisk-vdisk-width:3px;--pdisk-gap-width:2px;--pdisk-min-width:120px;--pdisk-margin:10px;--pdisk-width:max(calc(var(--maximum-slots, 1)*var(--pdisk-vdisk-width) + (var(--maximum-slots, 1) - 1)*var(--pdisk-gap-width)),var(--pdisk-min-width));--pdisks-container-width:calc(var(--maximum-disks, 1)*var(--pdisk-width) + (var(--maximum-disks, 1) - 1)*var(--pdisk-margin));display:flex;gap:var(--pdisk-margin);height:40px;width:var(--pdisks-container-width)}.ydb-storage-nodes-columns__pdisks-item{display:flex;flex-shrink:0}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/6947.7cffb936.chunk.css b/ydb/core/viewer/monitoring/static/css/99.7cffb936.chunk.css index eed4fa0c679..eed4fa0c679 100644 --- a/ydb/core/viewer/monitoring/static/css/6947.7cffb936.chunk.css +++ b/ydb/core/viewer/monitoring/static/css/99.7cffb936.chunk.css diff --git a/ydb/core/viewer/monitoring/static/css/main.c06e6faa.css b/ydb/core/viewer/monitoring/static/css/main.c06e6faa.css new file mode 100644 index 00000000000..ab6b2b516d0 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/css/main.c06e6faa.css @@ -0,0 +1,9 @@ +@charset "UTF-8";@import url(https://fonts.googleapis.com/css2?family=Rubik&display=swap);.g-root{--g-font-family-sans:"Inter","Helvetica Neue","Helvetica","Arial",sans-serif;--g-font-family-monospace:"Menlo","Monaco","Consolas","Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New","Courier",monospace;--g-text-body-font-family:var(--g-font-family-sans);--g-text-caption-font-family:var(--g-font-family-sans);--g-text-header-font-family:var(--g-font-family-sans);--g-text-subheader-font-family:var(--g-font-family-sans);--g-text-display-font-family:var(--g-font-family-sans);--g-text-code-font-family:var(--g-font-family-monospace);--g-text-body-font-weight:400;--g-text-caption-font-weight:400;--g-text-header-font-weight:600;--g-text-display-font-weight:600;--g-text-code-font-weight:400;--g-text-accent-font-weight:600;--g-text-body-1-font-size:13px;--g-text-body-1-line-height:18px;--g-text-body-2-font-size:15px;--g-text-body-2-line-height:20px;--g-text-body-3-font-size:17px;--g-text-body-3-line-height:24px;--g-text-body-short-font-size:13px;--g-text-body-short-line-height:16px;--g-text-caption-1-font-size:9px;--g-text-caption-1-line-height:12px;--g-text-caption-2-font-size:11px;--g-text-caption-2-line-height:16px;--g-text-header-1-font-size:20px;--g-text-header-1-line-height:24px;--g-text-header-2-font-size:24px;--g-text-header-2-line-height:28px;--g-text-subheader-1-font-size:13px;--g-text-subheader-1-line-height:18px;--g-text-subheader-2-font-size:15px;--g-text-subheader-2-line-height:20px;--g-text-subheader-3-font-size:17px;--g-text-subheader-3-line-height:24px;--g-text-display-1-font-size:28px;--g-text-display-1-line-height:36px;--g-text-display-2-font-size:32px;--g-text-display-2-line-height:40px;--g-text-display-3-font-size:40px;--g-text-display-3-line-height:48px;--g-text-display-4-font-size:48px;--g-text-display-4-line-height:52px;--g-text-code-1-font-size:12px;--g-text-code-1-line-height:18px;--g-text-code-2-font-size:14px;--g-text-code-2-line-height:20px;--g-text-code-3-font-size:16px;--g-text-code-3-line-height:24px;--g-text-code-inline-1-font-size:12px;--g-text-code-inline-1-line-height:14px;--g-text-code-inline-2-font-size:14px;--g-text-code-inline-2-line-height:16px;--g-text-code-inline-3-font-size:16px;--g-text-code-inline-3-line-height:20px;--g-spacing-base:4px;--g-spacing-0:calc(var(--g-spacing-base)*0);--g-spacing-half:calc(var(--g-spacing-base)*0.5);--g-spacing-1:var(--g-spacing-base);--g-spacing-2:calc(var(--g-spacing-base)*2);--g-spacing-3:calc(var(--g-spacing-base)*3);--g-spacing-4:calc(var(--g-spacing-base)*4);--g-spacing-5:calc(var(--g-spacing-base)*5);--g-spacing-6:calc(var(--g-spacing-base)*6);--g-spacing-7:calc(var(--g-spacing-base)*7);--g-spacing-8:calc(var(--g-spacing-base)*8);--g-spacing-9:calc(var(--g-spacing-base)*9);--g-spacing-10:calc(var(--g-spacing-base)*10);--g-scrollbar-width:12px;--g-border-radius-xs:3px;--g-border-radius-s:5px;--g-border-radius-m:6px;--g-border-radius-l:8px;--g-border-radius-xl:10px;--g-focus-border-radius:2px;background:var(--g-color-base-background);color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-root[dir=ltr],body.g-root{--g-flow-direction:1;--g-flow-is-ltr:1;--g-flow-is-rtl:0}.g-root[dir=rtl]{--g-flow-direction:-1;--g-flow-is-ltr:0;--g-flow-is-rtl:1}.g-root_theme_light{--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#ebf5fe;--g-color-private-blue-100-solid:#e1effd;--g-color-private-blue-150-solid:#d7eafc;--g-color-private-blue-200-solid:#c3e0fb;--g-color-private-blue-250-solid:#afd5f9;--g-color-private-blue-300-solid:#9bcbf8;--g-color-private-blue-350-solid:#86c1f7;--g-color-private-blue-400-solid:#72b6f5;--g-color-private-blue-450-solid:#5eacf4;--g-color-private-blue-500-solid:#4aa1f2;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#348bdc;--g-color-private-blue-650-solid:#327fc8;--g-color-private-blue-700-solid:#3072b3;--g-color-private-blue-750-solid:#2e669e;--g-color-private-blue-800-solid:#2c5a8a;--g-color-private-blue-850-solid:#2a4e75;--g-color-private-blue-900-solid:#284260;--g-color-private-blue-950-solid:#26354b;--g-color-private-blue-1000-solid:#252f41;--g-color-private-green-50:#32ba761a;--g-color-private-green-100:#32ba7626;--g-color-private-green-150:#32ba7633;--g-color-private-green-200:#32ba764d;--g-color-private-green-250:#32ba7666;--g-color-private-green-300:#32ba7680;--g-color-private-green-350:#32ba7699;--g-color-private-green-400:#32ba76b3;--g-color-private-green-450:#32ba76cc;--g-color-private-green-500:#32ba76e6;--g-color-private-green-50-solid:#ebf8f1;--g-color-private-green-100-solid:#e0f5ea;--g-color-private-green-150-solid:#d6f1e4;--g-color-private-green-200-solid:#c2ead6;--g-color-private-green-250-solid:#ade3c8;--g-color-private-green-300-solid:#9db;--g-color-private-green-350-solid:#84d6ad;--g-color-private-green-400-solid:#70cf9f;--g-color-private-green-450-solid:#5bc891;--g-color-private-green-500-solid:#47c184;--g-color-private-green-550-solid:#32ba76;--g-color-private-green-600-solid:#30aa6e;--g-color-private-green-650-solid:#2f9b65;--g-color-private-green-700-solid:#2d8b5d;--g-color-private-green-750-solid:#2c7b54;--g-color-private-green-800-solid:#2a6c4c;--g-color-private-green-850-solid:#285c44;--g-color-private-green-900-solid:#274c3b;--g-color-private-green-950-solid:#253c33;--g-color-private-green-1000-solid:#24352f;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#fff9ef;--g-color-private-yellow-100-solid:#fff5e7;--g-color-private-yellow-150-solid:#fff2de;--g-color-private-yellow-200-solid:#ffecce;--g-color-private-yellow-250-solid:#ffe5be;--g-color-private-yellow-300-solid:#ffdfae;--g-color-private-yellow-350-solid:#ffd89d;--g-color-private-yellow-400-solid:#ffd28d;--g-color-private-yellow-450-solid:#ffcb7d;--g-color-private-yellow-500-solid:#ffc56c;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#e9ae56;--g-color-private-yellow-650-solid:#d39e50;--g-color-private-yellow-700-solid:#bd8e4b;--g-color-private-yellow-750-solid:#a77e45;--g-color-private-yellow-800-solid:#916e3f;--g-color-private-yellow-850-solid:#7a5d39;--g-color-private-yellow-900-solid:#644d33;--g-color-private-yellow-950-solid:#4e3d2e;--g-color-private-yellow-1000-solid:#43352b;--g-color-private-orange-400-solid:#ffa04d;--g-color-private-orange-500-solid:#ff8519;--g-color-private-orange-600-solid:#e96e03;--g-color-private-orange-650-solid:#d36507;--g-color-private-orange-700-solid:#bd5c0a;--g-color-private-orange-750-solid:#a7530e;--g-color-private-orange-800-solid:#914a11;--g-color-private-orange-850-solid:#7a4114;--g-color-private-orange-900-solid:#643818;--g-color-private-orange-950-solid:#4e2f1b;--g-color-private-orange-1000-solid:#432b1d;--g-color-private-red-50:#ff003d1a;--g-color-private-red-100:#ff003d26;--g-color-private-red-150:#ff003d33;--g-color-private-red-200:#ff003d4d;--g-color-private-red-250:#ff003d66;--g-color-private-red-300:#ff003d80;--g-color-private-red-350:#ff003d99;--g-color-private-red-400:#ff003db3;--g-color-private-red-450:#ff003dcc;--g-color-private-red-500:#ff003de6;--g-color-private-red-50-solid:#ffe6ec;--g-color-private-red-100-solid:#ffd9e2;--g-color-private-red-150-solid:#ffccd8;--g-color-private-red-200-solid:#ffb3c5;--g-color-private-red-250-solid:#ff99b1;--g-color-private-red-300-solid:#ff809e;--g-color-private-red-350-solid:#ff668b;--g-color-private-red-400-solid:#ff4d77;--g-color-private-red-450-solid:#ff3364;--g-color-private-red-500-solid:#ff1950;--g-color-private-red-550-solid:#ff003d;--g-color-private-red-600-solid:#e9033a;--g-color-private-red-650-solid:#d30638;--g-color-private-red-700-solid:#bd0935;--g-color-private-red-750-solid:#a70c32;--g-color-private-red-800-solid:#910f30;--g-color-private-red-850-solid:#7a112d;--g-color-private-red-900-solid:#64142a;--g-color-private-red-950-solid:#4e1727;--g-color-private-red-1000-solid:#431926;--g-color-private-purple-600-solid:#844dbb;--g-color-private-purple-650-solid:#7947aa;--g-color-private-purple-700-solid:#6e4299;--g-color-private-purple-750-solid:#633d88;--g-color-private-purple-800-solid:#593877;--g-color-private-purple-850-solid:#4e3266;--g-color-private-purple-900-solid:#432d55;--g-color-private-purple-950-solid:#382844;--g-color-private-purple-1000-solid:#32253c;--g-color-private-cool-grey-300-solid:#b5c2cc;--g-color-private-cool-grey-600-solid:#647a8d;--g-color-private-cool-grey-650-solid:#5c6f81;--g-color-private-cool-grey-700-solid:#556575;--g-color-private-cool-grey-750-solid:#4e5b69;--g-color-private-cool-grey-800-solid:#47515e;--g-color-private-cool-grey-850-solid:#3f4652;--g-color-private-cool-grey-900-solid:#383c46;--g-color-private-cool-grey-950-solid:#31323a;--g-color-private-cool-grey-1000-solid:#2d2c34;--g-color-text-primary:var(--g-color-text-dark-primary);--g-color-text-complementary:var(--g-color-text-dark-complementary);--g-color-text-secondary:var(--g-color-text-dark-secondary);--g-color-text-hint:var(--g-color-text-dark-hint);--g-color-text-info:var(--g-color-private-blue-600-solid);--g-color-text-positive:var(--g-color-private-green-600-solid);--g-color-text-warning:var(--g-color-private-yellow-700-solid);--g-color-text-danger:var(--g-color-private-red-600-solid);--g-color-text-utility:var(--g-color-private-purple-600-solid);--g-color-text-misc:var(--g-color-private-cool-grey-600-solid);--g-color-text-info-heavy:var(--g-color-private-blue-700-solid);--g-color-text-positive-heavy:var(--g-color-private-green-700-solid);--g-color-text-warning-heavy:var(--g-color-private-orange-700-solid);--g-color-text-danger-heavy:var(--g-color-private-red-700-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-text-brand:var(--g-color-private-yellow-700-solid);--g-color-text-brand-heavy:var(--g-color-private-orange-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-650-solid);--g-color-text-link-hover:var(--g-color-private-orange-650-solid);--g-color-text-link-visited:var(--g-color-private-purple-550-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-800-solid);--g-color-text-dark-primary:var(--g-color-private-black-850);--g-color-text-dark-complementary:var(--g-color-private-black-700);--g-color-text-dark-secondary:var(--g-color-private-black-500);--g-color-text-dark-hint:var(--g-color-private-black-300);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-850);--g-color-text-light-secondary:var(--g-color-private-white-700);--g-color-text-light-hint:var(--g-color-private-white-500);--g-color-text-inverted-primary:var(--g-color-text-light-primary);--g-color-text-inverted-complementary:var(--g-color-text-light-complementary);--g-color-text-inverted-secondary:var(--g-color-text-light-secondary);--g-color-text-inverted-hint:var(--g-color-text-light-hint);--g-color-base-background:var(--g-color-private-white-1000-solid);--g-color-base-generic:var(--g-color-private-black-50);--g-color-base-generic-hover:var(--g-color-private-black-150);--g-color-base-generic-medium:var(--g-color-private-black-150);--g-color-base-generic-medium-hover:var(--g-color-private-black-250);--g-color-base-generic-accent:var(--g-color-private-black-150);--g-color-base-generic-accent-disabled:var(--g-color-private-black-70);--g-color-base-generic-ultralight:var(--g-color-private-black-20-solid);--g-color-base-simple-hover:var(--g-color-private-black-50);--g-color-base-simple-hover-solid:var(--g-color-private-black-50-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-600-solid);--g-color-base-selection:var(--g-color-private-yellow-200);--g-color-base-selection-hover:var(--g-color-private-yellow-300);--g-color-base-info-light:var(--g-color-private-blue-100);--g-color-base-info-light-hover:var(--g-color-private-blue-200);--g-color-base-info-medium:var(--g-color-private-blue-200);--g-color-base-info-medium-hover:var(--g-color-private-blue-300);--g-color-base-info-heavy:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-700-solid);--g-color-base-positive-light:var(--g-color-private-green-100);--g-color-base-positive-light-hover:var(--g-color-private-green-200);--g-color-base-positive-medium:var(--g-color-private-green-200);--g-color-base-positive-medium-hover:var(--g-color-private-green-300);--g-color-base-positive-heavy:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-700-solid);--g-color-base-warning-light:var(--g-color-private-yellow-200);--g-color-base-warning-light-hover:var(--g-color-private-yellow-300);--g-color-base-warning-medium:var(--g-color-private-yellow-400);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-500);--g-color-base-warning-heavy:var(--g-color-private-yellow-550-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-650-solid);--g-color-base-danger-light:var(--g-color-private-red-100);--g-color-base-danger-light-hover:var(--g-color-private-red-200);--g-color-base-danger-medium:var(--g-color-private-red-200);--g-color-base-danger-medium-hover:var(--g-color-private-red-300);--g-color-base-danger-heavy:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-700-solid);--g-color-base-utility-light:var(--g-color-private-purple-100);--g-color-base-utility-light-hover:var(--g-color-private-purple-200);--g-color-base-utility-medium:var(--g-color-private-purple-200);--g-color-base-utility-medium-hover:var(--g-color-private-purple-300);--g-color-base-utility-heavy:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-700-solid);--g-color-base-neutral-light:var(--g-color-private-black-50);--g-color-base-neutral-light-hover:var(--g-color-private-black-100);--g-color-base-neutral-medium:var(--g-color-private-black-200);--g-color-base-neutral-medium-hover:var(--g-color-private-black-250);--g-color-base-neutral-heavy:var(--g-color-private-black-450);--g-color-base-neutral-heavy-hover:var(--g-color-private-black-550);--g-color-base-misc-light:var(--g-color-private-cool-grey-100);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-300);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-700-solid);--g-color-base-light:var(--g-color-private-white-1000-solid);--g-color-base-light-hover:var(--g-color-private-white-850);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-1000-solid);--g-color-base-float-hover:var(--g-color-private-black-50-solid);--g-color-base-float-medium:var(--g-color-private-black-550-solid);--g-color-base-float-heavy:var(--g-color-private-black-700-solid);--g-color-base-float-accent:var(--g-color-private-white-1000-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-850);--g-color-base-float-announcement:var(--g-color-private-cool-grey-50-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-black-100);--g-color-line-generic-hover:var(--g-color-private-black-150);--g-color-line-generic-active:var(--g-color-private-black-300);--g-color-line-generic-accent:var(--g-color-private-black-150);--g-color-line-generic-accent-hover:var(--g-color-private-black-300);--g-color-line-generic-solid:var(--g-color-private-black-100-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-600-solid);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-250);--g-color-sfx-shadow:var(--g-color-private-black-150);--g-color-sfx-shadow-heavy:var(--g-color-private-black-500);--g-color-sfx-shadow-light:var(--g-color-private-black-50);--g-color-sfx-fade:var(--g-color-private-white-300);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-black-100);--g-color-scroll-handle-hover:var(--g-color-private-black-150);--g-color-scroll-corner:var(--g-color-private-black-100);--g-color-infographics-axis:var(--g-color-private-black-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-950)}.g-root_theme_dark{--g-color-private-white-20-solid:#262226;--g-color-private-white-50-solid:#2d282d;--g-color-private-white-70-solid:#312d31;--g-color-private-white-100-solid:#383438;--g-color-private-white-150-solid:#433f43;--g-color-private-white-200-solid:#4e4a4e;--g-color-private-white-250-solid:#595559;--g-color-private-white-300-solid:#646164;--g-color-private-white-350-solid:#6f6c6f;--g-color-private-white-400-solid:#7a777a;--g-color-private-white-450-solid:#858385;--g-color-private-white-500-solid:#908e90;--g-color-private-white-550-solid:#9c999c;--g-color-private-white-600-solid:#a7a5a7;--g-color-private-white-650-solid:#b2b0b2;--g-color-private-white-700-solid:#bdbbbd;--g-color-private-white-750-solid:#c8c6c8;--g-color-private-white-800-solid:#d3d2d3;--g-color-private-white-850-solid:#deddde;--g-color-private-white-900-solid:#e9e8e9;--g-color-private-white-950-solid:#f4f4f4;--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#242937;--g-color-private-blue-100-solid:#252f41;--g-color-private-blue-150-solid:#26354b;--g-color-private-blue-200-solid:#284260;--g-color-private-blue-250-solid:#2a4e75;--g-color-private-blue-300-solid:#2c5a8a;--g-color-private-blue-350-solid:#2e669e;--g-color-private-blue-400-solid:#3072b3;--g-color-private-blue-450-solid:#327fc8;--g-color-private-blue-500-solid:#348bdc;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#4aa1f2;--g-color-private-blue-650-solid:#5eacf4;--g-color-private-blue-700-solid:#72b6f5;--g-color-private-blue-750-solid:#86c1f7;--g-color-private-blue-800-solid:#9bcbf8;--g-color-private-blue-850-solid:#afd5f9;--g-color-private-blue-900-solid:#c3e0fb;--g-color-private-blue-950-solid:#d7eafc;--g-color-private-blue-1000-solid:#e1effd;--g-color-private-green-50:#4db09b1a;--g-color-private-green-100:#4db09b26;--g-color-private-green-150:#4db09b33;--g-color-private-green-200:#4db09b4d;--g-color-private-green-250:#4db09b66;--g-color-private-green-300:#4db09b80;--g-color-private-green-350:#4db09b99;--g-color-private-green-400:#4db09bb3;--g-color-private-green-450:#4db09bcc;--g-color-private-green-500:#4db09be6;--g-color-private-green-50-solid:#262c2e;--g-color-private-green-100-solid:#283334;--g-color-private-green-150-solid:#2b3a3a;--g-color-private-green-200-solid:#2f4946;--g-color-private-green-250-solid:#335852;--g-color-private-green-300-solid:#38675f;--g-color-private-green-350-solid:#3c756b;--g-color-private-green-400-solid:#408477;--g-color-private-green-450-solid:#449383;--g-color-private-green-500-solid:#49a18f;--g-color-private-green-550-solid:#4db09b;--g-color-private-green-600-solid:#5fb8a5;--g-color-private-green-650-solid:#71c0af;--g-color-private-green-700-solid:#82c8b9;--g-color-private-green-750-solid:#94d0c3;--g-color-private-green-800-solid:#a6d8cd;--g-color-private-green-850-solid:#b8dfd7;--g-color-private-green-900-solid:#cae7e1;--g-color-private-green-950-solid:#dbefeb;--g-color-private-green-1000-solid:#e4f3f0;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#382d28;--g-color-private-yellow-100-solid:#43352b;--g-color-private-yellow-150-solid:#4e3d2e;--g-color-private-yellow-200-solid:#644d33;--g-color-private-yellow-250-solid:#7a5d39;--g-color-private-yellow-300-solid:#916e3f;--g-color-private-yellow-350-solid:#a77e45;--g-color-private-yellow-400-solid:#bd8e4b;--g-color-private-yellow-450-solid:#d39e50;--g-color-private-yellow-500-solid:#e9ae56;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#ffc56c;--g-color-private-yellow-650-solid:#ffcb7d;--g-color-private-yellow-700-solid:#ffd28d;--g-color-private-yellow-750-solid:#ffd89d;--g-color-private-yellow-800-solid:#ffdfae;--g-color-private-yellow-850-solid:#ffe5be;--g-color-private-yellow-900-solid:#ffecce;--g-color-private-yellow-950-solid:#fff2de;--g-color-private-yellow-1000-solid:#fff5e7;--g-color-private-orange-50-solid:#332420;--g-color-private-orange-100-solid:#3b281f;--g-color-private-orange-150-solid:#432b1e;--g-color-private-orange-200-solid:#54321b;--g-color-private-orange-250-solid:#643919;--g-color-private-orange-300-solid:#754017;--g-color-private-orange-350-solid:#864715;--g-color-private-orange-400-solid:#964e13;--g-color-private-orange-450-solid:#a75510;--g-color-private-orange-500-solid:#b75c0e;--g-color-private-orange-700-solid:#d99255;--g-color-private-orange-800-solid:#e4b186;--g-color-private-red-50:#e5325d1a;--g-color-private-red-100:#e5325d26;--g-color-private-red-150:#e5325d33;--g-color-private-red-200:#e5325d4d;--g-color-private-red-250:#e5325d66;--g-color-private-red-300:#e5325d80;--g-color-private-red-350:#e5325d99;--g-color-private-red-400:#e5325db3;--g-color-private-red-450:#e5325dcc;--g-color-private-red-500:#e5325de6;--g-color-private-red-50-solid:#361f28;--g-color-private-red-100-solid:#3f202b;--g-color-private-red-150-solid:#49212e;--g-color-private-red-200-solid:#5d2334;--g-color-private-red-250-solid:#70253a;--g-color-private-red-300-solid:#842840;--g-color-private-red-350-solid:#972a45;--g-color-private-red-400-solid:#ab2c4b;--g-color-private-red-450-solid:#be2e51;--g-color-private-red-500-solid:#d23057;--g-color-private-red-550-solid:#e5325d;--g-color-private-red-600-solid:#e8476d;--g-color-private-red-650-solid:#ea5b7d;--g-color-private-red-700-solid:#ed708e;--g-color-private-red-750-solid:#ef849e;--g-color-private-red-800-solid:#f299ae;--g-color-private-red-850-solid:#f5adbe;--g-color-private-red-900-solid:#f7c2ce;--g-color-private-red-950-solid:#fad6df;--g-color-private-red-1000-solid:#fbe0e7;--g-color-private-purple-50-solid:#2d2233;--g-color-private-purple-100-solid:#32253c;--g-color-private-purple-150-solid:#382844;--g-color-private-purple-200-solid:#432d55;--g-color-private-purple-250-solid:#4e3266;--g-color-private-purple-300-solid:#593877;--g-color-private-purple-350-solid:#633d88;--g-color-private-purple-400-solid:#6e4299;--g-color-private-purple-450-solid:#7947aa;--g-color-private-purple-500-solid:#844dbb;--g-color-private-cool-grey-50-solid:#28272e;--g-color-private-cool-grey-100-solid:#2b2c34;--g-color-private-cool-grey-150-solid:#2e313a;--g-color-private-cool-grey-200-solid:#353b47;--g-color-private-cool-grey-250-solid:#3b4553;--g-color-private-cool-grey-300-solid:#414f5f;--g-color-private-cool-grey-350-solid:#47586b;--g-color-private-cool-grey-400-solid:#4d6277;--g-color-private-cool-grey-450-solid:#546c84;--g-color-private-cool-grey-500-solid:#5a7690;--g-color-private-cool-grey-750-solid:#a0b3c4;--g-color-private-cool-grey-800-solid:#b0c0ce;--g-color-text-primary:var(--g-color-text-light-primary);--g-color-text-complementary:var(--g-color-text-light-complementary);--g-color-text-secondary:var(--g-color-text-light-secondary);--g-color-text-hint:var(--g-color-text-light-hint);--g-color-text-info:var(--g-color-private-blue-550-solid);--g-color-text-positive:var(--g-color-private-green-550-solid);--g-color-text-warning:var(--g-color-private-yellow-550-solid);--g-color-text-danger:var(--g-color-private-red-550-solid);--g-color-text-utility:var(--g-color-private-purple-600-solid);--g-color-text-misc:var(--g-color-private-cool-grey-600-solid);--g-color-text-info-heavy:var(--g-color-private-blue-600-solid);--g-color-text-positive-heavy:var(--g-color-private-green-600-solid);--g-color-text-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-text-danger-heavy:var(--g-color-private-red-600-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-650-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-650-solid);--g-color-text-brand:var(--g-color-private-yellow-600-solid);--g-color-text-brand-heavy:var(--g-color-private-yellow-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-550-solid);--g-color-text-link-hover:var(--g-color-private-orange-550-solid);--g-color-text-link-visited:var(--g-color-private-purple-600-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-750-solid);--g-color-text-dark-primary:var(--g-color-private-black-900);--g-color-text-dark-complementary:var(--g-color-private-black-700);--g-color-text-dark-secondary:var(--g-color-private-black-500);--g-color-text-dark-hint:var(--g-color-private-black-300);--g-color-text-light-primary:var(--g-color-private-white-850);--g-color-text-light-complementary:var(--g-color-private-white-700);--g-color-text-light-secondary:var(--g-color-private-white-500);--g-color-text-light-hint:var(--g-color-private-white-300);--g-color-text-inverted-primary:var(--g-color-text-dark-primary);--g-color-text-inverted-complementary:var(--g-color-text-dark-complementary);--g-color-text-inverted-secondary:var(--g-color-text-dark-secondary);--g-color-text-inverted-hint:var(--g-color-text-dark-hint);--g-color-base-background:#221d22;--g-color-base-generic:var(--g-color-private-white-100);--g-color-base-generic-hover:var(--g-color-private-white-150);--g-color-base-generic-medium:var(--g-color-private-white-250);--g-color-base-generic-medium-hover:var(--g-color-private-white-300);--g-color-base-generic-accent:var(--g-color-private-white-150);--g-color-base-generic-accent-disabled:var(--g-color-private-white-70);--g-color-base-generic-ultralight:var(--g-color-private-white-20-solid);--g-color-base-simple-hover:var(--g-color-private-white-100);--g-color-base-simple-hover-solid:var(--g-color-private-white-100-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-650-solid);--g-color-base-selection:var(--g-color-private-yellow-150);--g-color-base-selection-hover:var(--g-color-private-yellow-200);--g-color-base-info-light:var(--g-color-private-blue-150);--g-color-base-info-light-hover:var(--g-color-private-blue-200);--g-color-base-info-medium:var(--g-color-private-blue-300);--g-color-base-info-medium-hover:var(--g-color-private-blue-400);--g-color-base-info-heavy:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-700-solid);--g-color-base-positive-light:var(--g-color-private-green-150);--g-color-base-positive-light-hover:var(--g-color-private-green-200);--g-color-base-positive-medium:var(--g-color-private-green-300);--g-color-base-positive-medium-hover:var(--g-color-private-green-400);--g-color-base-positive-heavy:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-700-solid);--g-color-base-warning-light:var(--g-color-private-yellow-150);--g-color-base-warning-light-hover:var(--g-color-private-yellow-200);--g-color-base-warning-medium:var(--g-color-private-yellow-300);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-400);--g-color-base-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-700-solid);--g-color-base-danger-light:var(--g-color-private-red-150);--g-color-base-danger-light-hover:var(--g-color-private-red-200);--g-color-base-danger-medium:var(--g-color-private-red-300);--g-color-base-danger-medium-hover:var(--g-color-private-red-400);--g-color-base-danger-heavy:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-700-solid);--g-color-base-utility-light:var(--g-color-private-purple-150);--g-color-base-utility-light-hover:var(--g-color-private-purple-250);--g-color-base-utility-medium:var(--g-color-private-purple-300);--g-color-base-utility-medium-hover:var(--g-color-private-purple-400);--g-color-base-utility-heavy:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-700-solid);--g-color-base-neutral-light:var(--g-color-private-white-100);--g-color-base-neutral-light-hover:var(--g-color-private-white-150);--g-color-base-neutral-medium:var(--g-color-private-white-250);--g-color-base-neutral-medium-hover:var(--g-color-private-white-350);--g-color-base-neutral-heavy:var(--g-color-private-white-550);--g-color-base-neutral-heavy-hover:var(--g-color-private-white-650);--g-color-base-misc-light:var(--g-color-private-cool-grey-150);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium:var(--g-color-private-cool-grey-300);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-400);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-700-solid);--g-color-base-light:var(--g-color-private-white-850);--g-color-base-light-hover:var(--g-color-private-white-700);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-100-solid);--g-color-base-float-hover:var(--g-color-private-white-150-solid);--g-color-base-float-medium:var(--g-color-private-white-150-solid);--g-color-base-float-heavy:var(--g-color-private-white-250-solid);--g-color-base-float-accent:var(--g-color-private-white-150-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-200-solid);--g-color-base-float-announcement:var(--g-color-private-white-150-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-white-150);--g-color-line-generic-hover:var(--g-color-private-white-250);--g-color-line-generic-active:var(--g-color-private-white-300);--g-color-line-generic-accent:var(--g-color-private-white-150);--g-color-line-generic-accent-hover:var(--g-color-private-white-300);--g-color-line-generic-solid:var(--g-color-private-white-150-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-450);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-600);--g-color-sfx-shadow:var(--g-color-private-black-200);--g-color-sfx-shadow-heavy:var(--g-color-private-black-500);--g-color-sfx-shadow-light:var(--g-color-private-black-200);--g-color-sfx-fade:var(--g-color-private-white-250);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-white-150);--g-color-scroll-handle-hover:var(--g-color-private-white-250);--g-color-scroll-corner:var(--g-color-private-white-150);--g-color-infographics-axis:var(--g-color-private-white-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-opaque-150)}.g-root_theme_light-hc{--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#ebf5fe;--g-color-private-blue-100-solid:#e1effd;--g-color-private-blue-150-solid:#d7eafc;--g-color-private-blue-200-solid:#c3e0fb;--g-color-private-blue-250-solid:#afd5f9;--g-color-private-blue-300-solid:#9bcbf8;--g-color-private-blue-350-solid:#86c1f7;--g-color-private-blue-400-solid:#72b6f5;--g-color-private-blue-450-solid:#5eacf4;--g-color-private-blue-500-solid:#4aa1f2;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#328adb;--g-color-private-blue-650-solid:#2f7cc4;--g-color-private-blue-700-solid:#2b6fae;--g-color-private-blue-750-solid:#286198;--g-color-private-blue-800-solid:#245482;--g-color-private-blue-850-solid:#20476b;--g-color-private-blue-900-solid:#1d3955;--g-color-private-blue-950-solid:#192c3f;--g-color-private-blue-1000-solid:#172533;--g-color-private-green-50:#32ba761a;--g-color-private-green-100:#32ba7626;--g-color-private-green-150:#32ba7633;--g-color-private-green-200:#32ba764d;--g-color-private-green-250:#32ba7666;--g-color-private-green-300:#32ba7680;--g-color-private-green-350:#32ba7699;--g-color-private-green-400:#32ba76b3;--g-color-private-green-450:#32ba76cc;--g-color-private-green-500:#32ba76e6;--g-color-private-green-50-solid:#ebf8f1;--g-color-private-green-100-solid:#e0f5ea;--g-color-private-green-150-solid:#d6f1e4;--g-color-private-green-200-solid:#c2ead6;--g-color-private-green-250-solid:#ade3c8;--g-color-private-green-300-solid:#9db;--g-color-private-green-350-solid:#84d6ad;--g-color-private-green-400-solid:#70cf9f;--g-color-private-green-450-solid:#5bc891;--g-color-private-green-500-solid:#47c184;--g-color-private-green-550-solid:#32ba76;--g-color-private-green-600-solid:#2fa96c;--g-color-private-green-650-solid:#2c9862;--g-color-private-green-700-solid:#288758;--g-color-private-green-750-solid:#25764e;--g-color-private-green-800-solid:#264;--g-color-private-green-850-solid:#1f553a;--g-color-private-green-900-solid:#1c4430;--g-color-private-green-950-solid:#183326;--g-color-private-green-1000-solid:#172a21;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#fff9ef;--g-color-private-yellow-100-solid:#fff5e7;--g-color-private-yellow-150-solid:#fff2de;--g-color-private-yellow-200-solid:#ffecce;--g-color-private-yellow-250-solid:#ffe5be;--g-color-private-yellow-300-solid:#ffdfae;--g-color-private-yellow-350-solid:#ffd89d;--g-color-private-yellow-400-solid:#ffd28d;--g-color-private-yellow-450-solid:#ffcb7d;--g-color-private-yellow-500-solid:#ffc56c;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#e7ad55;--g-color-private-yellow-650-solid:#d09b4d;--g-color-private-yellow-700-solid:#b88a46;--g-color-private-yellow-750-solid:#a0793e;--g-color-private-yellow-800-solid:#896837;--g-color-private-yellow-850-solid:#715630;--g-color-private-yellow-900-solid:#594528;--g-color-private-yellow-950-solid:#413421;--g-color-private-yellow-1000-solid:#362b1d;--g-color-private-orange-400-solid:#ffa04d;--g-color-private-orange-500-solid:#ff8519;--g-color-private-orange-600-solid:#e76d02;--g-color-private-orange-650-solid:#d06304;--g-color-private-orange-700-solid:#b85805;--g-color-private-orange-750-solid:#a04e07;--g-color-private-orange-800-solid:#894409;--g-color-private-orange-850-solid:#713a0b;--g-color-private-orange-900-solid:#59300d;--g-color-private-orange-950-solid:#41250e;--g-color-private-orange-1000-solid:#36200f;--g-color-private-red-50:#ff003d1a;--g-color-private-red-100:#ff003d26;--g-color-private-red-150:#ff003d33;--g-color-private-red-200:#ff003d4d;--g-color-private-red-250:#ff003d66;--g-color-private-red-300:#ff003d80;--g-color-private-red-350:#ff003d99;--g-color-private-red-400:#ff003db3;--g-color-private-red-450:#ff003dcc;--g-color-private-red-500:#ff003de6;--g-color-private-red-50-solid:#ffe6ec;--g-color-private-red-100-solid:#ffd9e2;--g-color-private-red-150-solid:#ffccd8;--g-color-private-red-200-solid:#ffb3c5;--g-color-private-red-250-solid:#ff99b1;--g-color-private-red-300-solid:#ff809e;--g-color-private-red-350-solid:#ff668b;--g-color-private-red-400-solid:#ff4d77;--g-color-private-red-450-solid:#ff3364;--g-color-private-red-500-solid:#ff1950;--g-color-private-red-550-solid:#ff003d;--g-color-private-red-600-solid:#e70239;--g-color-private-red-650-solid:#d00334;--g-color-private-red-700-solid:#b80530;--g-color-private-red-750-solid:#a0072c;--g-color-private-red-800-solid:#890928;--g-color-private-red-850-solid:#710a23;--g-color-private-red-900-solid:#590c1f;--g-color-private-red-950-solid:#410e1b;--g-color-private-red-1000-solid:#360e18;--g-color-private-purple-600-solid:#834cb9;--g-color-private-purple-650-solid:#7645a7;--g-color-private-purple-700-solid:#6a3f94;--g-color-private-purple-750-solid:#5d3882;--g-color-private-purple-800-solid:#51326f;--g-color-private-purple-850-solid:#442b5c;--g-color-private-purple-900-solid:#38254a;--g-color-private-purple-950-solid:#2b1e37;--g-color-private-purple-1000-solid:#251b2e;--g-color-private-cool-grey-300-solid:#b5c2cc;--g-color-private-cool-grey-600-solid:#62798c;--g-color-private-cool-grey-650-solid:#596d7e;--g-color-private-cool-grey-700-solid:#506271;--g-color-private-cool-grey-750-solid:#475663;--g-color-private-cool-grey-800-solid:#3f4b56;--g-color-private-cool-grey-850-solid:#363f48;--g-color-private-cool-grey-900-solid:#2d343b;--g-color-private-cool-grey-950-solid:#24282d;--g-color-private-cool-grey-1000-solid:#1f2226;--g-color-text-primary:var(--g-color-text-dark-primary);--g-color-text-complementary:var(--g-color-text-dark-complementary);--g-color-text-secondary:var(--g-color-text-dark-secondary);--g-color-text-hint:var(--g-color-text-dark-hint);--g-color-text-info:var(--g-color-private-blue-650-solid);--g-color-text-positive:var(--g-color-private-green-650-solid);--g-color-text-warning:var(--g-color-private-yellow-700-solid);--g-color-text-danger:var(--g-color-private-red-650-solid);--g-color-text-utility:var(--g-color-private-purple-650-solid);--g-color-text-misc:var(--g-color-private-cool-grey-650-solid);--g-color-text-info-heavy:var(--g-color-private-blue-900-solid);--g-color-text-positive-heavy:var(--g-color-private-green-900-solid);--g-color-text-warning-heavy:var(--g-color-private-orange-900-solid);--g-color-text-danger-heavy:var(--g-color-private-red-900-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-900-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-900-solid);--g-color-text-brand:var(--g-color-private-yellow-700-solid);--g-color-text-brand-heavy:var(--g-color-private-orange-900-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-700-solid);--g-color-text-link-hover:var(--g-color-private-orange-700-solid);--g-color-text-link-visited:var(--g-color-private-purple-600-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-850-solid);--g-color-text-dark-primary:var(--g-color-private-black-1000-solid);--g-color-text-dark-complementary:var(--g-color-private-black-850);--g-color-text-dark-secondary:var(--g-color-private-black-700);--g-color-text-dark-hint:var(--g-color-private-black-500);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-850);--g-color-text-light-secondary:var(--g-color-private-white-700);--g-color-text-light-hint:var(--g-color-private-white-500);--g-color-text-inverted-primary:var(--g-color-text-light-primary);--g-color-text-inverted-complementary:var(--g-color-text-light-complementary);--g-color-text-inverted-secondary:var(--g-color-text-light-secondary);--g-color-text-inverted-hint:var(--g-color-text-light-hint);--g-color-base-background:var(--g-color-private-white-1000-solid);--g-color-base-generic:var(--g-color-private-black-150);--g-color-base-generic-hover:var(--g-color-private-black-300);--g-color-base-generic-medium:var(--g-color-private-black-250);--g-color-base-generic-medium-hover:var(--g-color-private-black-350);--g-color-base-generic-accent:var(--g-color-private-black-250);--g-color-base-generic-accent-disabled:var(--g-color-private-black-150);--g-color-base-generic-ultralight:var(--g-color-private-black-50-solid);--g-color-base-simple-hover:var(--g-color-private-black-150);--g-color-base-simple-hover-solid:var(--g-color-private-black-150-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-650-solid);--g-color-base-selection:var(--g-color-private-yellow-300);--g-color-base-selection-hover:var(--g-color-private-yellow-400);--g-color-base-info-light:var(--g-color-private-blue-250);--g-color-base-info-light-hover:var(--g-color-private-blue-350);--g-color-base-info-medium:var(--g-color-private-blue-400);--g-color-base-info-medium-hover:var(--g-color-private-blue-500);--g-color-base-info-heavy:var(--g-color-private-blue-700-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-850-solid);--g-color-base-positive-light:var(--g-color-private-green-250);--g-color-base-positive-light-hover:var(--g-color-private-green-350);--g-color-base-positive-medium:var(--g-color-private-green-400);--g-color-base-positive-medium-hover:var(--g-color-private-green-500);--g-color-base-positive-heavy:var(--g-color-private-green-700-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-800-solid);--g-color-base-warning-light:var(--g-color-private-yellow-300);--g-color-base-warning-light-hover:var(--g-color-private-yellow-400);--g-color-base-warning-medium:var(--g-color-private-yellow-400);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-550-solid);--g-color-base-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-700-solid);--g-color-base-danger-light:var(--g-color-private-red-250);--g-color-base-danger-light-hover:var(--g-color-private-red-350);--g-color-base-danger-medium:var(--g-color-private-red-400);--g-color-base-danger-medium-hover:var(--g-color-private-red-500);--g-color-base-danger-heavy:var(--g-color-private-red-700-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-800-solid);--g-color-base-utility-light:var(--g-color-private-purple-250);--g-color-base-utility-light-hover:var(--g-color-private-purple-350);--g-color-base-utility-medium:var(--g-color-private-purple-400);--g-color-base-utility-medium-hover:var(--g-color-private-purple-500);--g-color-base-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-800-solid);--g-color-base-neutral-light:var(--g-color-private-black-150);--g-color-base-neutral-light-hover:var(--g-color-private-black-250);--g-color-base-neutral-medium:var(--g-color-private-black-300);--g-color-base-neutral-medium-hover:var(--g-color-private-black-400);--g-color-base-neutral-heavy:var(--g-color-private-black-550);--g-color-base-neutral-heavy-hover:var(--g-color-private-black-650);--g-color-base-misc-light:var(--g-color-private-cool-grey-250);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-350);--g-color-base-misc-medium:var(--g-color-private-cool-grey-400);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-500);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-800-solid);--g-color-base-light:var(--g-color-private-white-1000-solid);--g-color-base-light-hover:var(--g-color-private-white-850);--g-color-base-light-simple-hover:var(--g-color-private-white-300);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-1000-solid);--g-color-base-float-hover:var(--g-color-private-black-150-solid);--g-color-base-float-medium:var(--g-color-private-black-550-solid);--g-color-base-float-heavy:var(--g-color-private-black-700-solid);--g-color-base-float-accent:var(--g-color-private-white-1000-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-850);--g-color-base-float-announcement:var(--g-color-private-cool-grey-150-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-black-200);--g-color-line-generic-hover:var(--g-color-private-black-400);--g-color-line-generic-active:var(--g-color-private-black-700);--g-color-line-generic-accent:var(--g-color-private-black-300);--g-color-line-generic-accent-hover:var(--g-color-private-black-700);--g-color-line-generic-solid:var(--g-color-private-black-200-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-600-solid);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-450);--g-color-sfx-shadow:var(--g-color-private-black-300);--g-color-sfx-shadow-heavy:var(--g-color-private-black-600);--g-color-sfx-shadow-light:var(--g-color-private-black-100);--g-color-sfx-fade:var(--g-color-private-white-300);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-black-100);--g-color-scroll-handle-hover:var(--g-color-private-black-150);--g-color-scroll-corner:var(--g-color-private-black-100);--g-color-infographics-axis:var(--g-color-private-black-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-950)}.g-root_theme_dark-hc{--g-color-private-white-50-solid:#1e1d1e;--g-color-private-white-70-solid:#232223;--g-color-private-white-100-solid:#2a292a;--g-color-private-white-150-solid:#363536;--g-color-private-white-200-solid:#414141;--g-color-private-white-250-solid:#4d4d4d;--g-color-private-white-300-solid:#595859;--g-color-private-white-350-solid:#656465;--g-color-private-white-400-solid:#717071;--g-color-private-white-450-solid:#7d7c7d;--g-color-private-white-500-solid:#888;--g-color-private-white-550-solid:#949494;--g-color-private-white-600-solid:#a0a0a0;--g-color-private-white-650-solid:#acacac;--g-color-private-white-700-solid:#b8b8b8;--g-color-private-white-750-solid:#c4c3c4;--g-color-private-white-800-solid:#d0cfd0;--g-color-private-white-850-solid:#d0cfd0;--g-color-private-white-900-solid:#e7e7e7;--g-color-private-white-950-solid:#f3f3f3;--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#161e28;--g-color-private-blue-100-solid:#172533;--g-color-private-blue-150-solid:#192c3f;--g-color-private-blue-200-solid:#1d3955;--g-color-private-blue-250-solid:#20476b;--g-color-private-blue-300-solid:#245482;--g-color-private-blue-350-solid:#286198;--g-color-private-blue-400-solid:#2b6fae;--g-color-private-blue-450-solid:#2f7cc4;--g-color-private-blue-500-solid:#328adb;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#4aa1f2;--g-color-private-blue-650-solid:#5eacf4;--g-color-private-blue-700-solid:#72b6f5;--g-color-private-blue-750-solid:#86c1f7;--g-color-private-blue-800-solid:#9bcbf8;--g-color-private-blue-850-solid:#afd5f9;--g-color-private-blue-900-solid:#c3e0fb;--g-color-private-blue-950-solid:#d7eafc;--g-color-private-blue-1000-solid:#e1effd;--g-color-private-green-50:#4db09b1a;--g-color-private-green-100:#4db09b26;--g-color-private-green-150:#4db09b33;--g-color-private-green-200:#4db09b4d;--g-color-private-green-250:#4db09b66;--g-color-private-green-300:#4db09b80;--g-color-private-green-350:#4db09b99;--g-color-private-green-400:#4db09bb3;--g-color-private-green-450:#4db09bcc;--g-color-private-green-500:#4db09be6;--g-color-private-green-50-solid:#182120;--g-color-private-green-100-solid:#1b2927;--g-color-private-green-150-solid:#1e312d;--g-color-private-green-200-solid:#24413b;--g-color-private-green-250-solid:#2a5149;--g-color-private-green-300-solid:#306157;--g-color-private-green-350-solid:#357064;--g-color-private-green-400-solid:#3b8072;--g-color-private-green-450-solid:#419080;--g-color-private-green-500-solid:#47a08d;--g-color-private-green-550-solid:#4db09b;--g-color-private-green-600-solid:#5fb8a5;--g-color-private-green-650-solid:#71c0af;--g-color-private-green-700-solid:#82c8b9;--g-color-private-green-750-solid:#94d0c3;--g-color-private-green-800-solid:#a6d8cd;--g-color-private-green-850-solid:#b8dfd7;--g-color-private-green-900-solid:#cae7e1;--g-color-private-green-950-solid:#dbefeb;--g-color-private-green-1000-solid:#e4f3f0;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#2a2219;--g-color-private-yellow-100-solid:#362b1d;--g-color-private-yellow-150-solid:#413421;--g-color-private-yellow-200-solid:#594528;--g-color-private-yellow-250-solid:#715630;--g-color-private-yellow-300-solid:#896837;--g-color-private-yellow-350-solid:#a0793e;--g-color-private-yellow-400-solid:#b88a46;--g-color-private-yellow-450-solid:#d09b4d;--g-color-private-yellow-500-solid:#e7ad55;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#ffc56c;--g-color-private-yellow-650-solid:#ffcb7d;--g-color-private-yellow-700-solid:#ffd28d;--g-color-private-yellow-750-solid:#ffd89d;--g-color-private-yellow-800-solid:#ffdfae;--g-color-private-yellow-850-solid:#ffe5be;--g-color-private-yellow-900-solid:#ffecce;--g-color-private-yellow-950-solid:#fff2de;--g-color-private-yellow-1000-solid:#fff5e7;--g-color-private-orange-50-solid:#241911;--g-color-private-orange-100-solid:#2d1d11;--g-color-private-orange-150-solid:#362111;--g-color-private-orange-200-solid:#492a10;--g-color-private-orange-250-solid:#5b3210;--g-color-private-orange-300-solid:#6d3a0f;--g-color-private-orange-350-solid:#7f420e;--g-color-private-orange-400-solid:#914a0e;--g-color-private-orange-450-solid:#a4530d;--g-color-private-orange-500-solid:#b65b0d;--g-color-private-orange-700-solid:#d99255;--g-color-private-orange-800-solid:#e4b186;--g-color-private-red-50:#e5325d1a;--g-color-private-red-100:#e5325d26;--g-color-private-red-150:#e5325d33;--g-color-private-red-200:#e5325d4d;--g-color-private-red-250:#e5325d66;--g-color-private-red-300:#e5325d80;--g-color-private-red-350:#e5325d99;--g-color-private-red-400:#e5325db3;--g-color-private-red-450:#e5325dcc;--g-color-private-red-500:#e5325de6;--g-color-private-red-50-solid:#27141a;--g-color-private-red-100-solid:#32161d;--g-color-private-red-150-solid:#3c1821;--g-color-private-red-200-solid:#511b29;--g-color-private-red-250-solid:#661e30;--g-color-private-red-300-solid:#7c2238;--g-color-private-red-350-solid:#91253f;--g-color-private-red-400-solid:#a62847;--g-color-private-red-450-solid:#bb2b4e;--g-color-private-red-500-solid:#d02f56;--g-color-private-red-550-solid:#e5325d;--g-color-private-red-600-solid:#e8476d;--g-color-private-red-650-solid:#ea5b7d;--g-color-private-red-700-solid:#ed708e;--g-color-private-red-750-solid:#ef849e;--g-color-private-red-800-solid:#f299ae;--g-color-private-red-850-solid:#f5adbe;--g-color-private-red-900-solid:#f7c2ce;--g-color-private-red-950-solid:#fad6df;--g-color-private-red-1000-solid:#fbe0e7;--g-color-private-purple-50-solid:#1f1825;--g-color-private-purple-100-solid:#251b2e;--g-color-private-purple-150-solid:#2b1e37;--g-color-private-purple-200-solid:#38254a;--g-color-private-purple-250-solid:#442b5c;--g-color-private-purple-300-solid:#51326f;--g-color-private-purple-350-solid:#5d3882;--g-color-private-purple-400-solid:#6a3f94;--g-color-private-purple-450-solid:#7645a7;--g-color-private-purple-500-solid:#834cb9;--g-color-private-cool-grey-50-solid:#1a1c20;--g-color-private-cool-grey-100-solid:#1e2227;--g-color-private-cool-grey-150-solid:#22272e;--g-color-private-cool-grey-200-solid:#29323b;--g-color-private-cool-grey-250-solid:#313d49;--g-color-private-cool-grey-300-solid:#394957;--g-color-private-cool-grey-350-solid:#415465;--g-color-private-cool-grey-400-solid:#495f73;--g-color-private-cool-grey-450-solid:#506a80;--g-color-private-cool-grey-500-solid:#58758e;--g-color-private-cool-grey-750-solid:#a0b3c4;--g-color-private-cool-grey-800-solid:#b0c0ce;--g-color-text-primary:var(--g-color-text-light-primary);--g-color-text-complementary:var(--g-color-text-light-complementary);--g-color-text-secondary:var(--g-color-text-light-secondary);--g-color-text-hint:var(--g-color-text-light-hint);--g-color-text-info:var(--g-color-private-blue-650-solid);--g-color-text-positive:var(--g-color-private-green-650-solid);--g-color-text-warning:var(--g-color-private-yellow-650-solid);--g-color-text-danger:var(--g-color-private-red-650-solid);--g-color-text-utility:var(--g-color-private-purple-650-solid);--g-color-text-misc:var(--g-color-private-cool-grey-650-solid);--g-color-text-info-heavy:var(--g-color-private-blue-850-solid);--g-color-text-positive-heavy:var(--g-color-private-green-850-solid);--g-color-text-warning-heavy:var(--g-color-private-yellow-850-solid);--g-color-text-danger-heavy:var(--g-color-private-red-850-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-850-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-850-solid);--g-color-text-brand:var(--g-color-private-yellow-600-solid);--g-color-text-brand-heavy:var(--g-color-private-yellow-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-550-solid);--g-color-text-link-hover:var(--g-color-private-orange-550-solid);--g-color-text-link-visited:var(--g-color-private-purple-650-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-800-solid);--g-color-text-dark-primary:var(--g-color-private-black-1000-solid);--g-color-text-dark-complementary:var(--g-color-private-black-800);--g-color-text-dark-secondary:var(--g-color-private-black-600);--g-color-text-dark-hint:var(--g-color-private-black-400);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-800);--g-color-text-light-secondary:var(--g-color-private-white-600);--g-color-text-light-hint:var(--g-color-private-white-400);--g-color-text-inverted-primary:var(--g-color-text-dark-primary);--g-color-text-inverted-complementary:var(--g-color-text-dark-complementary);--g-color-text-inverted-secondary:var(--g-color-text-dark-secondary);--g-color-text-inverted-hint:var(--g-color-text-dark-hint);--g-color-base-background:#121112;--g-color-base-generic:var(--g-color-private-white-100);--g-color-base-generic-hover:var(--g-color-private-white-250);--g-color-base-generic-medium:var(--g-color-private-white-250);--g-color-base-generic-medium-hover:var(--g-color-private-white-400);--g-color-base-generic-accent:var(--g-color-private-white-200);--g-color-base-generic-accent-disabled:var(--g-color-private-white-150);--g-color-base-generic-ultralight:var(--g-color-private-white-50);--g-color-base-simple-hover:var(--g-color-private-white-250);--g-color-base-simple-hover-solid:var(--g-color-private-white-250-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-700-solid);--g-color-base-selection:var(--g-color-private-yellow-250);--g-color-base-selection-hover:var(--g-color-private-yellow-400);--g-color-base-info-light:var(--g-color-private-blue-250);--g-color-base-info-light-hover:var(--g-color-private-blue-400);--g-color-base-info-medium:var(--g-color-private-blue-450);--g-color-base-info-medium-hover:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy:var(--g-color-private-blue-700-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-850-solid);--g-color-base-positive-light:var(--g-color-private-green-250);--g-color-base-positive-light-hover:var(--g-color-private-green-400);--g-color-base-positive-medium:var(--g-color-private-green-450);--g-color-base-positive-medium-hover:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy:var(--g-color-private-green-700-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-850-solid);--g-color-base-warning-light:var(--g-color-private-yellow-250);--g-color-base-warning-light-hover:var(--g-color-private-yellow-400);--g-color-base-warning-medium:var(--g-color-private-yellow-450);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy:var(--g-color-private-yellow-700-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-850-solid);--g-color-base-danger-light:var(--g-color-private-red-250);--g-color-base-danger-light-hover:var(--g-color-private-red-400);--g-color-base-danger-medium:var(--g-color-private-red-450);--g-color-base-danger-medium-hover:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy:var(--g-color-private-red-700-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-850-solid);--g-color-base-utility-light:var(--g-color-private-purple-250);--g-color-base-utility-light-hover:var(--g-color-private-purple-400);--g-color-base-utility-medium:var(--g-color-private-purple-450);--g-color-base-utility-medium-hover:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-850-solid);--g-color-base-neutral-light:var(--g-color-private-white-200);--g-color-base-neutral-light-hover:var(--g-color-private-white-350);--g-color-base-neutral-medium:var(--g-color-private-white-400);--g-color-base-neutral-medium-hover:var(--g-color-private-white-550);--g-color-base-neutral-heavy:var(--g-color-private-white-650);--g-color-base-neutral-heavy-hover:var(--g-color-private-white-750);--g-color-base-misc-light:var(--g-color-private-cool-grey-250);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-400);--g-color-base-misc-medium:var(--g-color-private-cool-grey-450);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-850-solid);--g-color-base-light:var(--g-color-private-white-850);--g-color-base-light-hover:var(--g-color-private-white-700);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-100-solid);--g-color-base-float-hover:var(--g-color-private-white-200-solid);--g-color-base-float-medium:var(--g-color-private-white-200-solid);--g-color-base-float-heavy:var(--g-color-private-white-300-solid);--g-color-base-float-accent:var(--g-color-private-white-300-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-400-solid);--g-color-base-float-announcement:var(--g-color-private-white-200-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-white-150);--g-color-line-generic-hover:var(--g-color-private-white-250);--g-color-line-generic-active:var(--g-color-private-white-600);--g-color-line-generic-accent:var(--g-color-private-white-350);--g-color-line-generic-accent-hover:var(--g-color-private-white-800);--g-color-line-generic-solid:var(--g-color-private-white-150-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-550-solid);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-550-solid);--g-color-line-positive:var(--g-color-private-green-550-solid);--g-color-line-warning:var(--g-color-private-yellow-550-solid);--g-color-line-danger:var(--g-color-private-red-550-solid);--g-color-line-utility:var(--g-color-private-purple-550-solid);--g-color-line-misc:var(--g-color-private-cool-grey-550-solid);--g-color-sfx-veil:var(--g-color-private-black-700);--g-color-sfx-shadow:var(--g-color-private-black-200);--g-color-sfx-shadow-heavy:var(--g-color-private-black-400);--g-color-sfx-shadow-light:var(--g-color-private-black-200);--g-color-sfx-fade:var(--g-color-private-white-250);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-white-150);--g-color-scroll-handle-hover:var(--g-color-private-white-250);--g-color-scroll-corner:var(--g-color-private-white-150);--g-color-infographics-axis:var(--g-color-private-white-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-opaque-150)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar){scrollbar-color:var(--g-color-scroll-handle) var(--g-color-scroll-track);scrollbar-width:var(--g-scrollbar-width)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar{background:var(--g-color-scroll-track);height:var(--g-scrollbar-width);width:var(--g-scrollbar-width)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-track,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-track{background:var(--g-color-scroll-track)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-corner,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-corner{background:var(--g-color-scroll-corner)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-thumb,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-thumb{background:var(--g-color-scroll-handle)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-thumb:hover,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-thumb:hover{background:var(--g-color-scroll-handle-hover)}@keyframes g-loading-animation{0%{background-position:-12px 0}to{background-position:0 0}}:root:has(body.g-root_theme_light),:root:has(body.g-root_theme_light-hc){color-scheme:light}:root:has(body.g-root_theme_dark),:root:has(body.g-root_theme_dark-hc){color-scheme:dark}@media(prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}:root{--data-table-header-vertical-padding:5px;--data-table-cell-vertical-padding:5px;--data-table-cell-horizontal-padding:10px;--data-table-cell-border-padding:var(--data-table-cell-horizontal-padding);--data-table-cell-align:top;--data-table-head-align:top;--data-table-row-height:30px;--data-table-sort-icon-space:18px;--data-table-sort-icon-opacity-inactive:0.15;--data-table-sort-icon-color:inherit}.data-table{box-sizing:border-box;position:relative}.data-table__box{box-sizing:border-box;height:100%;width:100%}.data-table__box_sticky-head_moving{overflow:visible;position:relative;z-index:0}.data-table__box_sticky-head_moving .data-table__th{border-bottom:0;border-top:0;padding-bottom:0;padding-top:0}.data-table__box_sticky-head_moving .data-table__head-cell{display:block;height:0;overflow:hidden}.data-table__box_sticky-head_moving .data-table__row_header-data{visibility:hidden}.data-table__box_sticky-footer_fixed,.data-table__box_sticky-head_fixed{overflow:auto}.data-table__table{border-collapse:collapse;table-layout:fixed}.data-table__table_sticky{background:var(--data-table-color-base);width:100%}.data-table__row{height:var(--data-table-row-height)}.data-table__th{border:1px solid var(--data-table-border-color);box-sizing:border-box;cursor:default;font-weight:500;padding:var(--data-table-header-vertical-padding) var(--data-table-cell-horizontal-padding);position:relative;text-align:left;vertical-align:var(--data-table-head-align)}.data-table__th_sortable{cursor:pointer}.data-table__th_sortable .data-table__head-cell{padding-right:var(--data-table-sort-icon-space)}.data-table__th_sortable.data-table__th_align_right .data-table__head-cell{padding-left:var(--data-table-sort-icon-space);padding-right:0}.data-table__th_sortable.data-table__th_align_right .data-table__sort-icon{left:0;right:auto;transform:translateY(-50%) scaleX(-1)}.data-table__td{border:1px solid var(--data-table-border-color);box-sizing:border-box;overflow:hidden;padding:var(--data-table-cell-vertical-padding) var(--data-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:var(--data-table-cell-align);white-space:nowrap}.data-table__td_index,.data-table__th_index{text-align:right}.data-table__td_align_left,.data-table__th_align_left{text-align:left}.data-table__td_align_center,.data-table__th_align_center{text-align:center}.data-table__td_align_right,.data-table__th_align_right{text-align:right}.data-table__td:first-child,.data-table__th:first-child{padding-left:var(--data-table-cell-border-padding)}.data-table__td:last-child,.data-table__th:last-child{padding-right:var(--data-table-cell-border-padding)}.data-table__index{text-align:right}.data-table__head-cell{box-sizing:border-box;display:inline-block;max-width:100%;overflow:hidden;position:relative;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.data-table__error{padding:20px;white-space:pre-wrap}.data-table__sort-icon{color:var(--data-table-sort-icon-color);display:inline-flex;position:absolute;right:0;top:50%;transform:translateY(-50%)}.data-table__sort-icon:after{content:attr(data-index);font-size:8px;left:100%;position:absolute;top:-5px}.data-table__sort-icon_shadow{opacity:var(--data-table-sort-icon-opacity-inactive)}.data-table__sort-icon_shadow:after{content:none}.data-table__icon{vertical-align:top}.data-table__no-data{background:var(--data-table-color-stripe)}.data-table__sticky_fixed{left:0;overflow:hidden;position:absolute;right:0;z-index:1}.data-table__sticky_fixed.data-table__sticky_head{top:0}.data-table__sticky_fixed.data-table__sticky_footer{bottom:0}.data-table__sticky_moving{margin-bottom:-1px;position:sticky;z-index:1}.data-table_striped-rows .data-table__row_odd{background:var(--data-table-color-stripe)}.data-table_highlight-rows .data-table__row:hover{background:var(--data-table-color-hover-area)}.data-table_header_multiline .data-table__head-cell{white-space:normal}.data-table_header_pre .data-table__head-cell{white-space:pre}.data-table__foot{background:var(--data-table-color-footer-area)}.data-table__foot_has-sticky-footer_moving{visibility:hidden}.data-table_theme_yandex-cloud{--data-table-color-base:var(--g-color-base-background,var(--yc-color-base-background));--data-table-color-stripe:var( --g-color-base-generic-ultralight,var(--yc-color-base-generic-ultralight) );--data-table-border-color:var( --g-color-base-generic-hover,var(--yc-color-base-generic-hover) );--data-table-color-hover-area:var( --g-color-base-simple-hover,var(--yc-color-base-simple-hover) );--data-table-color-footer-area:var(--data-table-color-base)}.data-table_theme_legacy{--data-table-color-base:#fff;--data-table-color-stripe:#00000008;--data-table-border-color:#ddd;--data-table-color-hover-area:#ffeba0;--data-table-color-footer-area:var(--data-table-color-base)}.data-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.data-table__resize-handler_resizing,.data-table__th:hover>.data-table__resize-handler{visibility:visible}.ydb-error-boundary{align-items:flex-start;display:flex;flex-direction:row;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);padding:20px}.ydb-error-boundary__illustration{height:230px;margin-right:20px;width:230px}.ydb-error-boundary__error-title{font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height);margin-top:44px}.ydb-error-boundary__error-description{margin-top:12px}.ydb-error-boundary__show-details{margin-top:8px}.ydb-error-boundary__error-details{background-color:var(--g-color-base-generic-ultralight);border:1px solid var(--g-color-line-generic);padding:13px 18px;white-space:pre-wrap}.ydb-error-boundary__actions{display:flex;flex-direction:row;gap:10px;margin-top:20px}.g-icon{line-height:0;vertical-align:top}.g-arrow-toggle{display:inline-block;transition:transform .1s ease-out;vertical-align:middle}.g-arrow-toggle_direction_bottom{transform:matrix(1,0,0,1,0,0)}.g-arrow-toggle_direction_left{transform:matrix(0,1,-1,0,0,0)}.g-arrow-toggle_direction_top{transform:matrix(-1,0,0,-1,0,0)}.g-arrow-toggle_direction_right{transform:matrix(0,-1,1,0,0,0)}.g-disclosure_size_m .g-disclosure__trigger{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-disclosure_size_l .g-disclosure__trigger{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-disclosure_size_xl .g-disclosure__trigger{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-disclosure__trigger{align-items:center;background:none;border:none;border-radius:var(--g-focus-border-radius);color:inherit;cursor:pointer;display:flex;flex-flow:row nowrap;flex-shrink:0;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);font-weight:inherit;gap:8px;line-height:inherit;outline:none;padding:0}.g-disclosure__trigger:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-disclosure__trigger_arrow_end{flex-direction:row-reverse}.g-disclosure__trigger_disabled{color:var(--g-color-text-secondary);cursor:auto}.g-disclosure__content{display:none}.g-disclosure__content_visible{display:block}.g-disclosure__content.g-disclosure_exit_active{animation-duration:.1s;animation-name:g-disclosure-collapsed;display:block;opacity:0}.g-disclosure__content.g-disclosure_enter_active{animation-duration:.2s;animation-name:g-disclosure-expanded}@keyframes g-disclosure-expanded{0%{opacity:.4}to{opacity:1}}@keyframes g-disclosure-collapsed{0%{opacity:1}to{opacity:0}}.g-button{--_--text-color:var(--g-color-text-primary);--_--text-color-hover:var(--_--text-color);--_--background-color:#0000;--_--background-color-hover:var(--g-color-base-simple-hover);--_--border-width:0;--_--border-color:currentColor;--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;--_--font-size:var(--g-text-body-1-font-size);-webkit-tap-highlight-color:rgba(0,0,0,0);background:none;background:#0000;border:none;box-sizing:border-box;color:inherit;color:var(--g-button-text-color,var(--_--text-color));cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-size:var(--g-button-font-size,var(--_--font-size));font-weight:var(--g-text-body-font-weight);gap:var(--g-button-icon-offset,var(--_--icon-offset));height:var(--g-button-height,var(--_--height));justify-content:center;line-height:var(--g-button-height,var(--_--height));outline:none;overflow:visible;padding:0;padding:0 var(--g-button-padding,var(--_--padding));position:relative;text-align:center;text-decoration:none;touch-action:manipulation;transform:scale(1);transition:transform .1s ease-out,color .15s linear;-webkit-user-select:none;user-select:none;white-space:nowrap}.g-button:before{background-color:var(--g-button-background-color,var(--_--background-color));border:var(--g-button-border-width,var(--_--border-width)) var(--g-button-border-style,solid) var(--g-button-border-color,var(--_--border-color));content:"";inset:0;position:absolute;transition:background-color .15s linear;z-index:-1}.g-button:hover{color:var(--g-button-text-color-hover,var(--_--text-color-hover))}.g-button:hover:before{background-color:var(--g-button-background-color-hover,var(--_--background-color-hover))}.g-button:focus-visible:before{outline:var(--g-button-focus-outline-color,var(--_--focus-outline-color)) var(--g-button-focus-outline-style,solid) var(--g-button-focus-outline-width,2px);outline-offset:var(--g-button-focus-outline-offset,var(--_--focus-outline-offset))}.g-button:after{content:"";inset:0;position:absolute;transform:scale(1);transition:none;z-index:-1}.g-button:active{transform:scale(.96);transition:none}.g-button:active:after{transform:scale(1.042)}.g-button_size_xs{--_--height:20px;--_--border-radius:var(--g-border-radius-xs);--_--padding:6px;--_--icon-size:12px;--_--icon-offset:4px}.g-button_size_s{--_--height:24px;--_--border-radius:var(--g-border-radius-s);--_--padding:8px;--_--icon-size:16px;--_--icon-offset:4px}.g-button_size_m{--_--height:28px;--_--border-radius:var(--g-border-radius-m);--_--padding:12px;--_--icon-size:16px;--_--icon-offset:8px}.g-button_size_l{--_--height:36px;--_--border-radius:var(--g-border-radius-l);--_--padding:16px;--_--icon-size:16px;--_--icon-offset:8px}.g-button_size_xl{--_--height:44px;--_--border-radius:var(--g-border-radius-xl);--_--padding:24px;--_--icon-size:20px;--_--icon-offset:12px;--_--font-size:var(--g-text-body-2-font-size)}.g-button_view_normal{--_--background-color:var(--g-color-base-generic);--_--background-color-hover:var(--g-color-base-generic-hover)}.g-button_view_action{--_--text-color:var(--g-color-text-brand-contrast);--_--background-color:var(--g-color-base-brand);--_--background-color-hover:var(--g-color-base-brand-hover);--_--focus-outline-color:var(--g-color-base-brand);--_--focus-outline-offset:1px}.g-button_view_outlined{--_--border-width:1px;--_--border-color:var(--g-color-line-generic)}.g-button_view_outlined-info{--_--text-color:var(--g-color-text-info);--_--border-width:1px;--_--border-color:var(--g-color-line-info)}.g-button_view_outlined-success{--_--text-color:var(--g-color-text-positive);--_--border-width:1px;--_--border-color:var(--g-color-line-positive)}.g-button_view_outlined-warning{--_--text-color:var(--g-color-text-warning);--_--border-width:1px;--_--border-color:var(--g-color-line-warning)}.g-button_view_outlined-danger{--_--text-color:var(--g-color-text-danger);--_--border-width:1px;--_--border-color:var(--g-color-line-danger)}.g-button_view_outlined-utility{--_--text-color:var(--g-color-text-utility);--_--border-width:1px;--_--border-color:var(--g-color-line-utility)}.g-button_view_outlined-action{--_--text-color:var(--g-color-text-brand);--_--border-width:1px;--_--border-color:var(--g-color-line-brand)}.g-button_view_raised{--_--background-color-hover:var(--g-color-base-float-hover);background:var(--g-color-base-float)}.g-button_view_raised:before{box-shadow:0 3px 5px var(--g-color-sfx-shadow)}.g-button_view_raised:active:before{box-shadow:0 1px 2px var(--g-color-sfx-shadow)}.g-button_view_flat-secondary{--_--text-color:var(--g-color-text-secondary);--_--text-color-hover:var(--g-color-text-primary)}.g-button_view_flat-info{--_--text-color:var(--g-color-text-info)}.g-button_view_flat-success{--_--text-color:var(--g-color-text-positive)}.g-button_view_flat-warning{--_--text-color:var(--g-color-text-warning)}.g-button_view_flat-danger{--_--text-color:var(--g-color-text-danger)}.g-button_view_flat-utility{--_--text-color:var(--g-color-text-utility)}.g-button_view_flat-action{--_--text-color:var(--g-color-text-brand)}.g-button_view_normal-contrast{--_--text-color:var(--g-color-text-dark-primary);--_--background-color:var(--g-color-base-light);--_--background-color-hover:var(--g-color-base-light-hover);--_--focus-outline-color:var(--g-color-line-light)}.g-button_view_normal-contrast.g-button_loading{--_--background-color-hover:var(--g-color-base-simple-hover)}.g-button_view_outlined-contrast{--_--text-color:var(--g-color-text-light-primary);--_--background-color-hover:var(--g-color-base-light-simple-hover);--_--border-width:1px;--_--border-color:var(--g-color-line-light);--_--focus-outline-color:var(--g-color-line-light)}.g-button_view_flat-contrast{--_--text-color:var(--g-color-text-light-primary);--_--background-color-hover:var(--g-color-base-light-simple-hover);--_--focus-outline-color:var(--g-color-line-light)}.g-button.g-button_pin_round-round.g-button{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick.g-button{border-radius:0}.g-button.g-button_pin_clear-clear.g-button{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle.g-button{border-radius:100px}.g-button.g-button_pin_round-brick.g-button{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round.g-button{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear.g-button{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round.g-button{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear.g-button{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick.g-button{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick.g-button{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle.g-button{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear.g-button{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle.g-button{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_round-round:before{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick:before{border-radius:0}.g-button.g-button_pin_clear-clear:before{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle:before{border-radius:100px}.g-button.g-button_pin_round-brick:before{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round:before{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear:before{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round:before{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear:before{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick:before{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick:before{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear:before{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_round-round:after{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick:after{border-radius:0}.g-button.g-button_pin_clear-clear:after{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle:after{border-radius:100px}.g-button.g-button_pin_round-brick:after{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round:after{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear:after{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round:after{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear:after{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick:after{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick:after{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear:after{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button__text{display:inline-block;white-space:nowrap}.g-button__icon{display:inline-block;height:var(--g-button-height,var(--_--height));margin:0 calc((var(--g-button-height, var(--_--height)) - var(--g-button-icon-size, var(--_--icon-size)))/2*-1);position:relative;width:var(--g-button-height,var(--_--height))}.g-button__icon:after{content:"Â ";visibility:hidden}.g-button__icon-inner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.g-button__icon_side_start{order:-1}.g-button__icon_side_end{order:1}.g-button__icon:only-child{margin:0}.g-button:has(.g-button__icon:only-child){--_--padding:0}.g-button:has(.g-button__icon:only-child):not(.g-button_width_max){width:var(--g-button-height,var(--_--height))}.g-button_selected:not(.g-button_view_outlined-contrast){--_--border-width:0}.g-button_selected:not(.g-button_view_normal-contrast,.g-button_view_flat-contrast,.g-button_view_outlined-contrast){--_--text-color:var(--g-color-text-brand-heavy);--_--background-color:var(--g-color-base-selection);--_--background-color-hover:var(--g-color-base-selection-hover)}.g-button_selected.g-button_view_flat-info,.g-button_selected.g-button_view_outlined-info{--_--text-color:var(--g-color-text-info-heavy);--_--background-color:var(--g-color-base-info-light);--_--background-color-hover:var(--g-color-base-info-light-hover)}.g-button_selected.g-button_view_flat-success,.g-button_selected.g-button_view_outlined-success{--_--text-color:var(--g-color-text-positive-heavy);--_--background-color:var(--g-color-base-positive-light);--_--background-color-hover:var(--g-color-base-positive-light-hover)}.g-button_selected.g-button_view_flat-warning,.g-button_selected.g-button_view_outlined-warning{--_--text-color:var(--g-color-text-warning-heavy);--_--background-color:var(--g-color-base-warning-light);--_--background-color-hover:var(--g-color-base-warning-light-hover)}.g-button_selected.g-button_view_flat-danger,.g-button_selected.g-button_view_outlined-danger{--_--text-color:var(--g-color-text-danger-heavy);--_--background-color:var(--g-color-base-danger-light);--_--background-color-hover:var(--g-color-base-danger-light-hover)}.g-button_selected.g-button_view_flat-utility,.g-button_selected.g-button_view_outlined-utility{--_--text-color:var(--g-color-text-utility-heavy);--_--background-color:var(--g-color-base-utility-light);--_--background-color-hover:var(--g-color-base-utility-light-hover)}.g-button_disabled{cursor:default;pointer-events:none}.g-button_disabled:not(.g-button_loading){--_--text-color:var(--g-color-text-hint);--_--background-color:var(--g-color-base-generic-accent-disabled);--_--background-color-hover:var(--g-color-base-generic-accent-disabled);--_--border-width:0}.g-button_disabled:not(.g-button_loading):is(.g-button_view_normal-contrast,.g-button_view_outlined-contrast){--_--text-color:var(--g-color-text-light-secondary);--_--background-color:var(--g-color-base-light-disabled);--_--background-color-hover:var(--g-color-base-light-disabled)}.g-button_disabled:not(.g-button_loading):is(.g-button_view_flat,.g-button_view_flat-secondary,.g-button_view_flat-info,.g-button_view_flat-success,.g-button_view_flat-warning,.g-button_view_flat-danger,.g-button_view_flat-utility,.g-button_view_flat-action,.g-button_view_flat-contrast){--_--text-color:var(--g-color-text-hint);--_--background-color:#0000;--_--background-color-hover:#0000}.g-button_disabled:not(.g-button_loading).g-button_view_flat-contrast{--_--text-color:var(--g-color-text-light-hint)}.g-button_disabled:active{transform:scale(1)}.g-button_loading:before{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,var(--g-button-background-color,var(--_--background-color)),var(--g-button-background-color,var(--_--background-color)) 4px,var(--g-button-background-color-hover,var(--_--background-color-hover)) 4px,var(--g-button-background-color-hover,var(--_--background-color-hover)) 8px);background-size:150%}.g-button_width_auto{max-width:100%}.g-button_width_max{width:100%}.g-button_width_auto .g-button__text,.g-button_width_max .g-button__text{display:block;overflow:hidden;text-overflow:ellipsis}.g-switch{position:relative}.g-switch__control{cursor:pointer;opacity:0}.g-switch__indicator{display:inline-block;position:relative}.g-switch__indicator:before{background-color:var(--g-color-base-generic-medium);content:"";inset:0;position:absolute;transition:background .1s linear}.g-switch__indicator:after{content:"Â ";visibility:hidden}.g-switch__slider{background-color:var(--g-color-base-background);border-radius:50%;content:"";position:absolute;transition:transform .15s ease-out}.g-switch__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;width:100%}.g-switch__control:focus-visible+.g-switch__outline{outline:2px solid var(--g-color-line-focus)}.g-switch_size_m .g-switch__indicator,.g-switch_size_m .g-switch__indicator:before,.g-switch_size_m .g-switch__outline{border-radius:10px;height:20px;width:36px}.g-switch_size_m .g-switch__slider{height:16px;inset-block-start:2px;inset-inline-start:2px;width:16px}.g-switch_size_m .g-switch__text{margin-block-start:3px}.g-switch_size_l .g-switch__indicator,.g-switch_size_l .g-switch__indicator:before,.g-switch_size_l .g-switch__outline{border-radius:12px;height:24px;width:42px}.g-switch_size_l .g-switch__slider{height:18px;inset-block-start:3px;inset-inline-start:3px;width:18px}.g-switch_size_l .g-switch__text{margin-block-start:4px}.g-switch:hover .g-switch__indicator:before{background-color:var(--g-color-base-generic-medium-hover)}.g-switch_checked .g-switch__slider{--_--translate-x:calc(100%*var(--g-flow-direction));transform:translateX(var(--_--translate-x))}.g-switch_checked .g-switch__indicator:before,.g-switch_checked:hover .g-switch__indicator:before{background-color:var(--g-color-base-brand)}.g-switch_disabled .g-switch__indicator:before{background-color:var(--g-color-base-generic-accent-disabled)}.g-switch_disabled.g-switch_checked .g-switch__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.g-control-label{-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--g-color-text-primary);cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);touch-action:manipulation;-webkit-user-select:none;user-select:none}.g-control-label_disabled{cursor:default;pointer-events:none}.g-control-label_size_m{font-size:var(--g-text-body-1-font-size);line-height:15px}.g-control-label_size_l{font-size:var(--g-text-body-2-font-size);line-height:18px}.g-control-label__indicator{flex-shrink:0}.g-control-label__text{flex-grow:1;white-space:normal}.g-control-label_disabled .g-control-label__text{opacity:.6}.g-control-label_size_m .g-control-label__text{margin-inline-start:5px}.g-control-label_size_l .g-control-label__text{margin-inline-start:7px}.g-radio-button{--_--border-radius-inner:calc(var(--_--border-radius) - 3px);background-color:var(--g-color-base-generic);border-radius:var(--_--border-radius);box-sizing:border-box;display:inline-flex;flex-direction:row;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);position:relative}.g-radio-button__plate{inset-block:0;position:absolute;transition:left .2s,width .2s}.g-radio-button__plate[hidden]{display:none}.g-radio-button__option{border-radius:var(--_--border-radius-inner);cursor:pointer;flex:1 1 auto;font-size:var(--g-text-body-1-font-size);text-align:center;transform:scale(1);transition:color .15s linear;-webkit-user-select:none;user-select:none}.g-radio-button__option-outline{border-radius:var(--_--border-radius-inner);content:"";inset:3px;position:absolute;z-index:-1}.g-radio-button__option-control{border:none;cursor:inherit;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;opacity:0;outline:none;padding:0;position:absolute;width:100%}.g-radio-button__option-control:focus-visible+.g-radio-button__option-outline{outline:2px solid var(--g-color-line-focus)}.g-radio-button__option-text{color:var(--g-color-text-complementary);display:inline-block;white-space:nowrap}.g-radio-button__option-text_icon{align-items:center;display:flex;height:100%}.g-radio-button__option:hover .g-radio-button__option-text,.g-radio-button__option_checked .g-radio-button__option-text{color:var(--g-color-text-primary)}.g-radio-button__option_checked{cursor:default}.g-radio-button__option_disabled{cursor:default;pointer-events:none}.g-radio-button__option_disabled .g-radio-button__option-text{color:var(--g-color-text-hint)}.g-radio-button__option:before,.g-radio-button__plate:before{border-radius:var(--_--border-radius-inner);inset:3px;position:absolute}.g-radio-button__option:before{z-index:-1}.g-radio-button__plate:before,.g-radio-button__plate[hidden]~.g-radio-button__option_checked:before{background-color:var(--g-color-base-background);content:""}.g-radio-button_size_s{--_--border-radius:var(--g-border-radius-s)}.g-radio-button_size_s .g-radio-button__option{height:24px;line-height:24px}.g-radio-button_size_s .g-radio-button__option-text{margin:0 10px}.g-radio-button_size_m{--_--border-radius:var(--g-border-radius-m)}.g-radio-button_size_m .g-radio-button__option{height:28px;line-height:28px}.g-radio-button_size_m .g-radio-button__option-text{margin:0 13px}.g-radio-button_size_l{--_--border-radius:var(--g-border-radius-l)}.g-radio-button_size_l .g-radio-button__option{height:36px;line-height:36px}.g-radio-button_size_l .g-radio-button__option-text{margin:0 18px}.g-radio-button_size_xl{--_--border-radius:var(--g-border-radius-xl)}.g-radio-button_size_xl .g-radio-button__option{font-size:var(--g-text-body-2-font-size);height:44px;line-height:44px}.g-radio-button_size_xl .g-radio-button__option-text{margin:0 25px}.g-radio-button_width_auto{max-width:100%}.g-radio-button_width_max{width:100%}.g-radio-button_width_auto .g-radio-button__option,.g-radio-button_width_max .g-radio-button__option{overflow:hidden}.g-radio-button_width_auto .g-radio-button__option-text,.g-radio-button_width_max .g-radio-button__option-text{display:block;overflow:hidden;text-overflow:ellipsis}.g-color-text_color_primary{color:var(--g-color-text-primary)}.g-color-text_color_complementary{color:var(--g-color-text-complementary)}.g-color-text_color_secondary{color:var(--g-color-text-secondary)}.g-color-text_color_hint{color:var(--g-color-text-hint)}.g-color-text_color_info{color:var(--g-color-text-info)}.g-color-text_color_info-heavy{color:var(--g-color-text-info-heavy)}.g-color-text_color_positive{color:var(--g-color-text-positive)}.g-color-text_color_positive-heavy{color:var(--g-color-text-positive-heavy)}.g-color-text_color_warning{color:var(--g-color-text-warning)}.g-color-text_color_warning-heavy{color:var(--g-color-text-warning-heavy)}.g-color-text_color_danger{color:var(--g-color-text-danger)}.g-color-text_color_danger-heavy{color:var(--g-color-text-danger-heavy)}.g-color-text_color_utility{color:var(--g-color-text-utility)}.g-color-text_color_utility-heavy{color:var(--g-color-text-utility-heavy)}.g-color-text_color_misc{color:var(--g-color-text-misc)}.g-color-text_color_misc-heavy{color:var(--g-color-text-misc-heavy)}.g-color-text_color_brand{color:var(--g-color-text-brand)}.g-color-text_color_link{color:var(--g-color-text-link)}.g-color-text_color_link-hover{color:var(--g-color-text-link-hover)}.g-color-text_color_link-visited{color:var(--g-color-text-link-visited)}.g-color-text_color_link-visited-hover{color:var(--g-color-text-link-visited-hover)}.g-color-text_color_dark-primary{color:var(--g-color-text-dark-primary)}.g-color-text_color_dark-complementary{color:var(--g-color-text-dark-complementary)}.g-color-text_color_dark-secondary{color:var(--g-color-text-dark-secondary)}.g-color-text_color_light-primary{color:var(--g-color-text-light-primary)}.g-color-text_color_light-complementary{color:var(--g-color-text-light-complementary)}.g-color-text_color_light-secondary{color:var(--g-color-text-light-secondary)}.g-color-text_color_light-hint{color:var(--g-color-text-light-hint)}.g-color-text_color_inverted-primary{color:var(--g-color-text-inverted-primary)}.g-color-text_color_inverted-complementary{color:var(--g-color-text-inverted-complementary)}.g-color-text_color_inverted-secondary{color:var(--g-color-text-inverted-secondary)}.g-color-text_color_inverted-hint{color:var(--g-color-text-inverted-hint)}.g-text_variant_display-1{font-size:var(--g-text-display-1-font-size);line-height:var(--g-text-display-1-line-height)}.g-text_variant_display-1,.g-text_variant_display-2{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-2{font-size:var(--g-text-display-2-font-size);line-height:var(--g-text-display-2-line-height)}.g-text_variant_display-3{font-size:var(--g-text-display-3-font-size);line-height:var(--g-text-display-3-line-height)}.g-text_variant_display-3,.g-text_variant_display-4{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-4{font-size:var(--g-text-display-4-font-size);line-height:var(--g-text-display-4-line-height)}.g-text_variant_code-1{font-size:var(--g-text-code-1-font-size);line-height:var(--g-text-code-1-line-height)}.g-text_variant_code-1,.g-text_variant_code-2{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-2{font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-code-2-line-height)}.g-text_variant_code-3{font-size:var(--g-text-code-3-font-size);line-height:var(--g-text-code-3-line-height)}.g-text_variant_code-3,.g-text_variant_code-inline-1{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-1{font-size:var(--g-text-code-inline-1-font-size);line-height:var(--g-text-code-inline-1-line-height)}.g-text_variant_code-inline-2{font-size:var(--g-text-code-inline-2-font-size);line-height:var(--g-text-code-inline-2-line-height)}.g-text_variant_code-inline-2,.g-text_variant_code-inline-3{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-3{font-size:var(--g-text-code-inline-3-font-size);line-height:var(--g-text-code-inline-3-line-height)}.g-text_variant_body-1{font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.g-text_variant_body-1,.g-text_variant_body-2{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-2{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.g-text_variant_body-3{font-size:var(--g-text-body-3-font-size);line-height:var(--g-text-body-3-line-height)}.g-text_variant_body-3,.g-text_variant_body-short{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-short{font-size:var(--g-text-body-short-font-size);line-height:var(--g-text-body-short-line-height)}.g-text_variant_caption-1{font-size:var(--g-text-caption-1-font-size);line-height:var(--g-text-caption-1-line-height)}.g-text_variant_caption-1,.g-text_variant_caption-2{font-family:var(--g-text-caption-font-family);font-weight:var(--g-text-caption-font-weight)}.g-text_variant_caption-2{font-size:var(--g-text-caption-2-font-size);line-height:var(--g-text-caption-2-line-height)}.g-text_variant_header-1{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height)}.g-text_variant_header-1,.g-text_variant_header-2{font-family:var(--g-text-header-font-family);font-weight:var(--g-text-header-font-weight)}.g-text_variant_header-2{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.g-text_variant_subheader-1{font-size:var(--g-text-subheader-1-font-size);line-height:var(--g-text-subheader-1-line-height)}.g-text_variant_subheader-1,.g-text_variant_subheader-2{font-family:var(--g-text-subheader-font-family);font-weight:var(--g-text-subheader-font-weight)}.g-text_variant_subheader-2{font-size:var(--g-text-subheader-2-font-size);line-height:var(--g-text-subheader-2-line-height)}.g-text_variant_subheader-3{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-text_ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-text_ellipsis-lines{-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;display:-webkit-box;overflow:hidden;white-space:normal}.g-text_ws_nowrap{white-space:nowrap}.g-text_ws_break-spaces{white-space:break-spaces}.g-text_wb_break-all{word-break:break-all}.g-text_wb_break-word{word-break:break-word}.g-label{--_--bg-color:none;--_--bg-color-hover:none;--_--text-color:none;align-items:center;background-color:var(--_--bg-color);border-radius:var(--_--border-radius);box-sizing:border-box;color:var(--_--text-color);display:inline-flex;height:var(--_--height);isolation:isolate;position:relative;transition-duration:.15s;transition-property:opacity,color,background-color;transition-timing-function:ease-in-out}.g-label__text{align-items:baseline;display:flex;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);line-height:var(--_--height);margin:0 var(--_--margin-inline);overflow:hidden;text-align:center;white-space:nowrap;width:100%}.g-label__content,.g-label__key{overflow:hidden;text-overflow:ellipsis}.g-label__value{display:flex;opacity:.7;overflow:hidden}.g-label__separator{margin:0 4px}.g-label__main-button{background:none;border:none;border-radius:inherit;color:inherit;cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;z-index:1}.g-label__main-button:empty{inset:0;position:absolute}.g-label__addon{align-items:center;border-radius:var(--_--border-radius);display:flex;height:var(--_--height);justify-content:center;width:var(--_--height)}.g-label__addon_side_end,.g-label__addon_side_start{inset-block-start:0;position:absolute}.g-label__addon_side_start{border-end-end-radius:0;border-start-end-radius:0;inset-inline-start:2px}.g-label__addon_side_end{border-end-start-radius:0;border-start-start-radius:0;inset-inline-end:0}.g-label__addon_type_button{background:none;background-color:initial;border:none;color:inherit;color:var(--_--text-color);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,transform .1s ease-out;z-index:2}.g-label__addon_type_button:active{transform:scale(.96)}.g-label_size_xs{--_--height:20px;--_--border-radius:var(--g-border-radius-xs);--_--margin-inline:8px;--_--margin-addon-start:24px;--_--margin-addon-end:22px}.g-label_size_s{--_--height:24px;--_--border-radius:var(--g-border-radius-s);--_--margin-inline:10px;--_--margin-addon-start:28px;--_--margin-addon-end:26px}.g-label_size_m{--_--height:28px;--_--border-radius:var(--g-border-radius-m);--_--margin-inline:12px;--_--margin-addon-start:32px;--_--margin-addon-end:32px}.g-label_disabled{opacity:.7;pointer-events:none}.g-label_interactive{cursor:pointer}.g-label_theme_normal{--_--bg-color:var(--g-color-base-misc-light);--_--bg-color-hover:var(--g-color-base-misc-light-hover);--_--text-color:var(--g-color-text-misc-heavy)}.g-label_theme_success{--_--bg-color:var(--g-color-base-positive-light);--_--bg-color-hover:var(--g-color-base-positive-light-hover);--_--text-color:var(--g-color-text-positive-heavy)}.g-label_theme_info{--_--bg-color:var(--g-color-base-info-light);--_--bg-color-hover:var(--g-color-base-info-light-hover);--_--text-color:var(--g-color-text-info-heavy)}.g-label_theme_warning{--_--bg-color:var(--g-color-base-warning-light);--_--bg-color-hover:var(--g-color-base-warning-light-hover);--_--text-color:var(--g-color-text-warning-heavy)}.g-label_theme_danger{--_--bg-color:var(--g-color-base-danger-light);--_--bg-color-hover:var(--g-color-base-danger-light-hover);--_--text-color:var(--g-color-text-danger-heavy)}.g-label_theme_utility{--_--bg-color:var(--g-color-base-utility-light);--_--bg-color-hover:var(--g-color-base-utility-light-hover);--_--text-color:var(--g-color-text-utility-heavy)}.g-label_theme_unknown{--_--bg-color:var(--g-color-base-neutral-light);--_--bg-color-hover:var(--g-color-base-neutral-light-hover);--_--text-color:var(--g-color-text-complementary)}.g-label_theme_clear{--_--bg-color:#0000;--_--bg-color-hover:var(--g-color-base-simple-hover);--_--text-color:var(--g-color-text-complementary);box-shadow:inset 0 0 0 1px var(--g-color-line-generic)}.g-label:has(.g-label__addon_side_start) .g-label__text{margin-inline-start:var(--_--margin-addon-start)}.g-label:has(.g-label__addon_side_end) .g-label__text{margin-inline-end:var(--_--margin-addon-end)}.g-label__addon_type_button:hover,.g-label_interactive:hover:not(:has(.g-label__addon_type_button:hover)){background-color:var(--_--bg-color-hover)}.g-label__addon_type_button:focus-visible,.g-label__main-button:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-tabs{--_--vertical-item-padding:var(--g-tabs-vertical-item-padding,6px 20px);--_--vertical-item-height:var(--g-tabs-vertical-item-height,18px)}.g-tabs_size_m{--_--item-height:36px;--_--item-gap:24px;--_--item-border-width:2px}.g-tabs_size_m .g-tabs__item-counter,.g-tabs_size_m .g-tabs__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-tabs_size_l{--_--item-height:40px;--_--item-gap:28px;--_--item-border-width:2px}.g-tabs_size_l .g-tabs__item-counter,.g-tabs_size_l .g-tabs__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-tabs_size_xl{--_--item-height:44px;--_--item-gap:32px;--_--item-border-width:3px}.g-tabs_size_xl .g-tabs__item-counter,.g-tabs_size_xl .g-tabs__item-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-tabs__item{cursor:pointer;outline:none;-webkit-user-select:none;user-select:none}.g-tabs__item-content{align-items:center;border-radius:var(--g-focus-border-radius);display:flex}.g-tabs__item_overflow .g-tabs__item-content{min-width:0}.g-tabs__item-icon{margin-inline-end:8px}.g-tabs__item-title{white-space:nowrap}.g-tabs__item_overflow .g-tabs__item-title{overflow:hidden;text-overflow:ellipsis}.g-tabs__item-counter,.g-tabs__item-label{margin-inline-start:8px}.g-tabs__item-icon>svg{display:block}.g-tabs_direction_horizontal{align-items:flex-end;box-shadow:inset 0 calc(var(--g-tabs-border-width, 1px)*-1) 0 0 var(--g-color-line-generic);display:flex;flex-wrap:wrap;overflow:hidden}.g-tabs_direction_horizontal .g-tabs__item{align-items:center;border-block-end:var(--g-tabs-item-border-width,var(--_--item-border-width)) solid #0000;box-sizing:border-box;display:flex;height:var(--g-tabs-item-height,var(--_--item-height));padding-block-start:var(--_--item-border-width)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-content{outline:2px solid var(--g-color-line-focus);outline-offset:-2px}.g-tabs_direction_horizontal .g-tabs__item-meta{display:none}.g-tabs_direction_horizontal .g-tabs__item-title{color:var(--g-color-text-secondary)}.g-tabs_direction_horizontal .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item-icon{color:var(--g-color-text-hint)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-title,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-title,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-title{color:var(--g-color-text-primary)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-icon,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-icon,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-icon{color:var(--g-color-text-secondary)}.g-tabs_direction_horizontal .g-tabs__item_active,.g-tabs_direction_horizontal .g-tabs__item_active:focus-visible,.g-tabs_direction_horizontal .g-tabs__item_active:hover{border-color:var(--g-color-line-brand)}.g-tabs_direction_horizontal .g-tabs__item_disabled{pointer-events:none}.g-tabs_direction_horizontal .g-tabs__item_disabled .g-tabs__item-title{color:var(--g-color-text-hint)}.g-tabs_direction_horizontal>:not(:last-child){margin-inline-end:var(--g-tabs-item-gap,var(--_--item-gap))}.g-tabs_direction_vertical{display:flex;flex-direction:column}.g-tabs_direction_vertical .g-tabs__item{padding:var(--_--vertical-item-padding)}.g-tabs_direction_vertical .g-tabs__item-title{color:var(--g-color-text-primary);line-height:var(--_--vertical-item-height)}.g-tabs_direction_vertical .g-tabs__item-meta{color:var(--g-color-text-secondary);line-height:var(--_--vertical-item-height)}.g-tabs_direction_vertical .g-tabs__item-counter,.g-tabs_direction_vertical .g-tabs__item-icon{color:var(--g-color-text-secondary)}.g-tabs_direction_vertical .g-tabs__item:focus-visible,.g-tabs_direction_vertical .g-tabs__item:hover{background-color:var(--g-color-base-generic-hover)}.g-tabs_direction_vertical .g-tabs__item_active{background-color:var(--g-color-base-selection)}.g-tabs_direction_vertical .g-tabs__item_active:focus-visible,.g-tabs_direction_vertical .g-tabs__item_active:hover{background-color:var(--g-color-base-selection-hover)}.g-tabs_direction_vertical .g-tabs__item_disabled{pointer-events:none}.g-tabs_direction_vertical .g-tabs__item_disabled .g-tabs__item-title{color:var(--g-color-text-secondary)}.g-outer-additional-content{display:flex;justify-content:space-between;vertical-align:top}.g-outer-additional-content__error,.g-outer-additional-content__note{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);margin-block-start:2px}.g-outer-additional-content__error{color:var(--g-color-text-danger)}.g-outer-additional-content__error:not(:last-child){margin-inline-end:var(--g-spacing-2)}.g-outer-additional-content__note{margin-inline-start:auto}.g-text-input{--_--text-color:var(--g-color-text-primary);--_--label-color:inherit;--_--placeholder-color:var(--g-color-text-hint);--_--background-color:#0000;--_--border-width:1px;--_--focus-outline-color:var(--g-text-input-focus-outline-color);display:inline-block;position:relative;width:100%}.g-text-input__content{background-color:var(--g-text-input-background-color,var(--_--background-color));border-color:var(--g-text-input-border-color,var(--_--border-color));border-style:solid;border-width:var(--g-text-input-border-width,var(--_--border-width));box-sizing:border-box;color:var(--g-text-input-text-color,var(--_--text-color));display:flex;overflow:hidden;width:100%}.g-text-input__content:hover{border-color:var(--g-text-input-border-color-hover,var(--_--border-color-hover))}.g-text-input__content:focus-within{border-color:var(--g-text-input-border-color-active,var(--_--border-color-active));outline:2px solid var(--g-text-input-focus-outline-color,var(--_--focus-outline-color));outline-offset:-1px}.g-text-input__control{background-color:initial;border:none;box-sizing:border-box;color:inherit;display:inline-block;flex-grow:1;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);height:var(--g-text-input-height);margin:0;padding:0;position:relative;vertical-align:top;width:100%}.g-text-input__control::placeholder{color:var(--g-text-input-placeholder-color,var(--_--placeholder-color));overflow:hidden;white-space:nowrap}.g-text-input__control:focus{outline:none}.g-text-input__control[type=number]{appearance:textfield}.g-text-input__label{box-sizing:border-box;color:var(--g-text-input-label-color,var(--_--label-color));overflow:hidden;position:absolute;text-overflow:ellipsis;white-space:nowrap;z-index:1}.g-text-input__clear{flex-shrink:0;margin:auto 0}.g-text-input__clear_size_m,.g-text-input__clear_size_s{margin-inline-end:1px}.g-text-input__clear_size_l,.g-text-input__clear_size_xl{margin-inline-end:2px}.g-text-input__error-icon{box-sizing:initial;color:var(--g-color-text-danger);padding-block:var(--_--error-icon-padding-block);padding-inline:var(--_--error-icon-padding-inline)}.g-text-input__additional-content{align-items:center;display:flex}.g-text-input_size_s{--_--error-icon-padding-block:5px;--_--error-icon-padding-inline:0 5px;--_--border-radius:var(--g-border-radius-s)}.g-text-input_size_s .g-text-input__control{--_--input-control-border-width:var( + --g-text-input-border-width,var(--g-text-area-border-width,1px) + );height:calc(24px - var(--_--input-control-border-width)*2);padding:3px 8px}.g-text-input_size_s .g-text-input__control,.g-text-input_size_s .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_s .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:3px;padding-inline:8px 4px}.g-text-input_size_s.g-text-input_has-start-content .g-text-input__label{padding-inline-start:2px}.g-text-input_size_s .g-text-input__additional-content{height:22px}.g-text-input_size_s .g-text-input__additional-content_placement_start{padding-inline-start:1px}.g-text-input_size_s .g-text-input__additional-content_placement_end{padding-inline-end:1px}.g-text-input_size_m{--_--error-icon-padding-block:5px;--_--error-icon-padding-inline:0 5px;--_--border-radius:var(--g-border-radius-m)}.g-text-input_size_m .g-text-input__control{--_--input-control-border-width:var( + --g-text-input-border-width,var(--g-text-area-border-width,1px) + );height:calc(28px - var(--_--input-control-border-width)*2);padding:5px 8px}.g-text-input_size_m .g-text-input__control,.g-text-input_size_m .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_m .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:5px;padding-inline:8px 4px}.g-text-input_size_m.g-text-input_has-start-content .g-text-input__label{padding-inline-start:2px}.g-text-input_size_m .g-text-input__additional-content{height:26px}.g-text-input_size_m .g-text-input__additional-content_placement_start{padding-inline-start:1px}.g-text-input_size_m .g-text-input__additional-content_placement_end{padding-inline-end:1px}.g-text-input_size_l{--_--error-icon-padding-block:9px;--_--error-icon-padding-inline:0 9px;--_--border-radius:var(--g-border-radius-l)}.g-text-input_size_l .g-text-input__control{--_--input-control-border-width:var( + --g-text-input-border-width,var(--g-text-area-border-width,1px) + );height:calc(36px - var(--_--input-control-border-width)*2);padding:9px 12px}.g-text-input_size_l .g-text-input__control,.g-text-input_size_l .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_l .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:9px;padding-inline:12px 4px}.g-text-input_size_l.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_l .g-text-input__additional-content{height:34px}.g-text-input_size_l .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_l .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_size_xl{--_--error-icon-padding-block:13px;--_--error-icon-padding-inline:0 13px;--_--border-radius:var(--g-border-radius-xl)}.g-text-input_size_xl .g-text-input__control{--_--input-control-border-width:var( + --g-text-input-border-width,var(--g-text-area-border-width,1px) + );height:calc(44px - var(--_--input-control-border-width)*2);padding:11px 12px}.g-text-input_size_xl .g-text-input__control,.g-text-input_size_xl .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-text-input_size_xl .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:11px;padding-inline:12px 4px}.g-text-input_size_xl.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content{height:42px}.g-text-input_size_xl .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_view_normal{--_--border-color:var(--g-color-line-generic);--_--border-color-hover:var(--g-color-line-generic-hover);--_--border-color-active:var(--g-color-line-generic-active)}.g-text-input_view_clear{--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000;--_--border-radius:0}.g-text-input_view_clear .g-text-input__content{border-inline:0}.g-text-input_view_clear .g-text-input__control{padding-inline:0}.g-text-input.g-text-input_pin_round-round .g-text-input__content{border-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-brick .g-text-input__content{border-radius:0}.g-text-input.g-text-input_pin_clear-clear .g-text-input__content{border-inline:0;border-radius:0}.g-text-input.g-text-input_pin_circle-circle .g-text-input__content{border-radius:100px}.g-text-input.g-text-input_pin_round-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_round-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_clear-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_brick-clear .g-text-input__content{border-inline-end:0;border-radius:0}.g-text-input.g-text-input_pin_clear-brick .g-text-input__content{border-inline-start:0;border-radius:0}.g-text-input.g-text-input_pin_circle-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_brick-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input.g-text-input_pin_circle-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_clear-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input_disabled{--_--text-color:var(--g-color-text-hint);--_--background-color:var(--g-color-base-generic-accent-disabled);--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000}.g-text-input_has-scrollbar .g-text-input__clear{inset-inline-end:var(--g-scrollbar-width)}.g-text-input_has-start-content .g-text-input__control{padding-inline-start:2px}.g-text-input_has-end-content .g-text-input__control{padding-inline-end:2px}.g-text-input_has-unstable-end-content{--_--error-icon-padding-inline:0}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:hover{border-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:hover{border-block-end:1px solid var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-clear-button{--g-button-text-color:var(--g-color-text-hint);--g-button-text-color-hover:var(--g-color-text-primary);--g-button-background-color:#0000;--g-button-background-color-hover:#0000}.g-link{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--g-focus-border-radius);cursor:pointer;text-decoration:none;touch-action:manipulation}.g-link:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-link_view_normal{color:var(--g-color-text-link)}.g-link_view_primary{color:var(--g-color-text-primary)}.g-link_view_secondary{color:var(--g-color-text-secondary)}.g-link_view_normal:hover,.g-link_view_primary:hover,.g-link_view_secondary:hover{color:var(--g-color-text-link-hover)}.g-link_visitable:visited{color:var(--g-color-text-link-visited)}.g-link_visitable:visited:hover{color:var(--g-color-text-link-visited-hover)}.g-link_underline{text-decoration:underline}.g-popover{display:inline-block;position:relative}.g-popover:not(.g-popover_disabled){cursor:pointer}.g-popover__handler{display:inline-block}.g-popover__tooltip{--_--padding:16px;--_--close-offset:8px;--_--close-size:24px}.g-popover__tooltip-popup-content{box-sizing:border-box;cursor:default;max-width:var(--g-popover-max-width,300px);min-height:40px;padding:var(--g-popover-padding,var(--_--padding))}.g-popover__tooltip-title{display:inline-flex;font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height);margin:0 0 12px}.g-popover__tooltip-buttons{display:flex;flex-wrap:wrap;gap:5px;margin-block-start:20px}.g-popover__tooltip-button{flex:1 1}.g-popover__tooltip-close{inset-block-start:var(--_--close-offset);inset-inline-end:var(--_--close-offset);position:absolute}.g-popover__tooltip-content{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);overflow-wrap:break-word}.g-popover__tooltip-content_secondary{opacity:.7}.g-popover__tooltip-links>*{margin-block-start:8px}.g-popover__tooltip-links>:first-child{margin-block-start:0}.g-popover__tooltip-content+.g-popover__tooltip-links>:first-child{margin-block-start:12px}.g-popover__tooltip-link{display:inline-block;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-popover__tooltip_theme_announcement .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_announcement.g-popover__tooltip_theme_info,.g-popover__tooltip_theme_info .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_info.g-popover__tooltip_theme_info{color:var(--g-color-text-primary)}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button),.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-link);text-decoration:none}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button):hover,.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-link-hover)}.g-popover__tooltip_theme_announcement{--g-popup-background-color:var(--g-color-base-simple-hover-solid);--g-popup-border-color:var(--g-color-base-simple-hover-solid)}.g-popover__tooltip_theme_special{--g-popup-background-color:var(--g-color-base-brand);--g-popup-border-color:var(--g-color-base-brand);color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-light-primary);font-weight:var(--g-text-accent-font-weight)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_theme_special .g-link{color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-link:hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_size_l{--_--padding:24px}.g-popover__tooltip_size_l .g-popover__tooltip-title{font-family:var(--g-text-header-font-family);font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height)}.g-popover__tooltip_size_l .g-popover__tooltip-content{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-popover__tooltip_with-close .g-popover__tooltip-content,.g-popover__tooltip_with-close .g-popover__tooltip-title{padding-inline-end:calc(var(--_--close-offset) + var(--_--close-size) - var(--_--padding))}.g-popup{--_--background-color:var(--g-popup-background-color,var(--g-color-base-float));--_--border-color:var(--g-popup-border-color,var(--g-color-line-generic-solid));--_--border-width:var(--g-popup-border-width,1px);visibility:hidden;z-index:1000}.g-popup_exit_active,.g-popup_open{visibility:visible}.g-popup_exit_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom}.g-popup_exit_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top}.g-popup_exit_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left}.g-popup_exit_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right}.g-popup_appear_active[data-popper-placement*=bottom] .g-popup__content,.g-popup_enter_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom-open}.g-popup_appear_active[data-popper-placement*=top] .g-popup__content,.g-popup_enter_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top-open}.g-popup_appear_active[data-popper-placement*=left] .g-popup__content,.g-popup_enter_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left-open}.g-popup_appear_active[data-popper-placement*=right] .g-popup__content,.g-popup_enter_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right-open}.g-popup[data-popper-placement*=bottom] .g-popup__arrow{inset-block-start:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow{inset-block-end:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow-content{transform:rotate(180deg)}.g-popup[data-popper-placement*=left] .g-popup__arrow{right:-9px}.g-popup[data-popper-placement*=left] .g-popup__arrow-content{transform:rotate(90deg)}.g-popup[data-popper-placement*=right] .g-popup__arrow{left:-9px}.g-popup[data-popper-placement*=right] .g-popup__arrow-content{transform:rotate(-90deg)}.g-popup__content{animation-duration:.1s;animation-fill-mode:forwards;animation-timing-function:ease-out;background-color:var(--_--background-color);border-radius:4px;box-shadow:0 0 0 var(--_--border-width) var(--_--border-color),0 8px 20px var(--_--border-width) var(--g-color-sfx-shadow);outline:none;position:relative}.g-popup__content>.g-popup__arrow+*,.g-popup__content>:first-child:not(.g-popup__arrow){border-start-end-radius:inherit;border-start-start-radius:inherit}.g-popup__content>:last-child{border-end-end-radius:inherit;border-end-start-radius:inherit}.g-popup__arrow-content{display:flex;height:18px;overflow:hidden;position:relative;width:18px}.g-popup__arrow-circle-wrapper{background-color:initial;height:9px;overflow:hidden;position:relative;width:9px}.g-popup__arrow-circle{border-radius:50%;box-shadow:inset 0 0 0 calc(5px - var(--_--border-width)) var(--_--background-color),inset 0 0 0 5px var(--_--border-color);box-sizing:border-box;height:30px;position:absolute;width:28px}.g-popup__arrow-circle_left{inset-block-end:-4px;inset-inline-end:-5px}.g-popup__arrow-circle_right{inset-block-end:-4px;inset-inline-start:-5px}@keyframes g-popup-bottom{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}@keyframes g-popup-bottom-open{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-top{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes g-popup-top-open{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-left{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}@keyframes g-popup-left-open{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes g-popup-right{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(10px)}}@keyframes g-popup-right-open{0%{opacity:0;transform:translateX(10px)}to{opacity:1;transform:translateX(0)}}.g-portal__theme-wrapper{display:contents}@keyframes g-pulse{50%{opacity:15%}}.g-loader{align-items:center;display:inline-flex}.g-loader__center,.g-loader__left,.g-loader__right{animation:g-pulse .8s ease infinite;background:var(--g-color-base-brand)}.g-loader__left{animation-delay:.2s}.g-loader__center{animation-delay:.4s}.g-loader__right{animation-delay:.6s}.g-loader_size_s .g-loader__left{height:13.33333px;width:5px}.g-loader_size_s .g-loader__center{height:20px;margin-inline-start:5px;width:5px}.g-loader_size_s .g-loader__right{height:13.33333px;margin-inline-start:5px;width:5px}.g-loader_size_m .g-loader__left{height:18.66667px;width:7px}.g-loader_size_m .g-loader__center{height:28px;margin-inline-start:7px;width:7px}.g-loader_size_m .g-loader__right{height:18.66667px;margin-inline-start:7px;width:7px}.g-loader_size_l .g-loader__left{height:24px;width:9px}.g-loader_size_l .g-loader__center{height:36px;margin-inline-start:9px;width:9px}.g-loader_size_l .g-loader__right{height:24px;margin-inline-start:9px;width:9px}.g-s__m_0{margin:var(--g-spacing-0)}.g-s__mr_0{margin-inline-end:var(--g-spacing-0)}.g-s__ml_0{margin-inline-start:var(--g-spacing-0)}.g-s__mt_0{margin-block-start:var(--g-spacing-0)}.g-s__mb_0{margin-block-end:var(--g-spacing-0)}.g-s__mx_0{margin-inline:var(--g-spacing-0)}.g-s__my_0{margin-block:var(--g-spacing-0)}.g-s__p_0{padding:var(--g-spacing-0)}.g-s__pl_0{padding-inline-start:var(--g-spacing-0)}.g-s__pr_0{padding-inline-end:var(--g-spacing-0)}.g-s__pb_0{padding-block-end:var(--g-spacing-0)}.g-s__pt_0{padding-block-start:var(--g-spacing-0)}.g-s__py_0{padding-block:var(--g-spacing-0)}.g-s__px_0{padding-inline:var(--g-spacing-0)}.g-s__m_half{margin:var(--g-spacing-half)}.g-s__mr_half{margin-inline-end:var(--g-spacing-half)}.g-s__ml_half{margin-inline-start:var(--g-spacing-half)}.g-s__mt_half{margin-block-start:var(--g-spacing-half)}.g-s__mb_half{margin-block-end:var(--g-spacing-half)}.g-s__mx_half{margin-inline:var(--g-spacing-half)}.g-s__my_half{margin-block:var(--g-spacing-half)}.g-s__p_half{padding:var(--g-spacing-half)}.g-s__pl_half{padding-inline-start:var(--g-spacing-half)}.g-s__pr_half{padding-inline-end:var(--g-spacing-half)}.g-s__pb_half{padding-block-end:var(--g-spacing-half)}.g-s__pt_half{padding-block-start:var(--g-spacing-half)}.g-s__py_half{padding-block:var(--g-spacing-half)}.g-s__px_half{padding-inline:var(--g-spacing-half)}.g-s__m_1{margin:var(--g-spacing-1)}.g-s__mr_1{margin-inline-end:var(--g-spacing-1)}.g-s__ml_1{margin-inline-start:var(--g-spacing-1)}.g-s__mt_1{margin-block-start:var(--g-spacing-1)}.g-s__mb_1{margin-block-end:var(--g-spacing-1)}.g-s__mx_1{margin-inline:var(--g-spacing-1)}.g-s__my_1{margin-block:var(--g-spacing-1)}.g-s__p_1{padding:var(--g-spacing-1)}.g-s__pl_1{padding-inline-start:var(--g-spacing-1)}.g-s__pr_1{padding-inline-end:var(--g-spacing-1)}.g-s__pb_1{padding-block-end:var(--g-spacing-1)}.g-s__pt_1{padding-block-start:var(--g-spacing-1)}.g-s__py_1{padding-block:var(--g-spacing-1)}.g-s__px_1{padding-inline:var(--g-spacing-1)}.g-s__m_2{margin:var(--g-spacing-2)}.g-s__mr_2{margin-inline-end:var(--g-spacing-2)}.g-s__ml_2{margin-inline-start:var(--g-spacing-2)}.g-s__mt_2{margin-block-start:var(--g-spacing-2)}.g-s__mb_2{margin-block-end:var(--g-spacing-2)}.g-s__mx_2{margin-inline:var(--g-spacing-2)}.g-s__my_2{margin-block:var(--g-spacing-2)}.g-s__p_2{padding:var(--g-spacing-2)}.g-s__pl_2{padding-inline-start:var(--g-spacing-2)}.g-s__pr_2{padding-inline-end:var(--g-spacing-2)}.g-s__pb_2{padding-block-end:var(--g-spacing-2)}.g-s__pt_2{padding-block-start:var(--g-spacing-2)}.g-s__py_2{padding-block:var(--g-spacing-2)}.g-s__px_2{padding-inline:var(--g-spacing-2)}.g-s__m_3{margin:var(--g-spacing-3)}.g-s__mr_3{margin-inline-end:var(--g-spacing-3)}.g-s__ml_3{margin-inline-start:var(--g-spacing-3)}.g-s__mt_3{margin-block-start:var(--g-spacing-3)}.g-s__mb_3{margin-block-end:var(--g-spacing-3)}.g-s__mx_3{margin-inline:var(--g-spacing-3)}.g-s__my_3{margin-block:var(--g-spacing-3)}.g-s__p_3{padding:var(--g-spacing-3)}.g-s__pl_3{padding-inline-start:var(--g-spacing-3)}.g-s__pr_3{padding-inline-end:var(--g-spacing-3)}.g-s__pb_3{padding-block-end:var(--g-spacing-3)}.g-s__pt_3{padding-block-start:var(--g-spacing-3)}.g-s__py_3{padding-block:var(--g-spacing-3)}.g-s__px_3{padding-inline:var(--g-spacing-3)}.g-s__m_4{margin:var(--g-spacing-4)}.g-s__mr_4{margin-inline-end:var(--g-spacing-4)}.g-s__ml_4{margin-inline-start:var(--g-spacing-4)}.g-s__mt_4{margin-block-start:var(--g-spacing-4)}.g-s__mb_4{margin-block-end:var(--g-spacing-4)}.g-s__mx_4{margin-inline:var(--g-spacing-4)}.g-s__my_4{margin-block:var(--g-spacing-4)}.g-s__p_4{padding:var(--g-spacing-4)}.g-s__pl_4{padding-inline-start:var(--g-spacing-4)}.g-s__pr_4{padding-inline-end:var(--g-spacing-4)}.g-s__pb_4{padding-block-end:var(--g-spacing-4)}.g-s__pt_4{padding-block-start:var(--g-spacing-4)}.g-s__py_4{padding-block:var(--g-spacing-4)}.g-s__px_4{padding-inline:var(--g-spacing-4)}.g-s__m_5{margin:var(--g-spacing-5)}.g-s__mr_5{margin-inline-end:var(--g-spacing-5)}.g-s__ml_5{margin-inline-start:var(--g-spacing-5)}.g-s__mt_5{margin-block-start:var(--g-spacing-5)}.g-s__mb_5{margin-block-end:var(--g-spacing-5)}.g-s__mx_5{margin-inline:var(--g-spacing-5)}.g-s__my_5{margin-block:var(--g-spacing-5)}.g-s__p_5{padding:var(--g-spacing-5)}.g-s__pl_5{padding-inline-start:var(--g-spacing-5)}.g-s__pr_5{padding-inline-end:var(--g-spacing-5)}.g-s__pb_5{padding-block-end:var(--g-spacing-5)}.g-s__pt_5{padding-block-start:var(--g-spacing-5)}.g-s__py_5{padding-block:var(--g-spacing-5)}.g-s__px_5{padding-inline:var(--g-spacing-5)}.g-s__m_6{margin:var(--g-spacing-6)}.g-s__mr_6{margin-inline-end:var(--g-spacing-6)}.g-s__ml_6{margin-inline-start:var(--g-spacing-6)}.g-s__mt_6{margin-block-start:var(--g-spacing-6)}.g-s__mb_6{margin-block-end:var(--g-spacing-6)}.g-s__mx_6{margin-inline:var(--g-spacing-6)}.g-s__my_6{margin-block:var(--g-spacing-6)}.g-s__p_6{padding:var(--g-spacing-6)}.g-s__pl_6{padding-inline-start:var(--g-spacing-6)}.g-s__pr_6{padding-inline-end:var(--g-spacing-6)}.g-s__pb_6{padding-block-end:var(--g-spacing-6)}.g-s__pt_6{padding-block-start:var(--g-spacing-6)}.g-s__py_6{padding-block:var(--g-spacing-6)}.g-s__px_6{padding-inline:var(--g-spacing-6)}.g-s__m_7{margin:var(--g-spacing-7)}.g-s__mr_7{margin-inline-end:var(--g-spacing-7)}.g-s__ml_7{margin-inline-start:var(--g-spacing-7)}.g-s__mt_7{margin-block-start:var(--g-spacing-7)}.g-s__mb_7{margin-block-end:var(--g-spacing-7)}.g-s__mx_7{margin-inline:var(--g-spacing-7)}.g-s__my_7{margin-block:var(--g-spacing-7)}.g-s__p_7{padding:var(--g-spacing-7)}.g-s__pl_7{padding-inline-start:var(--g-spacing-7)}.g-s__pr_7{padding-inline-end:var(--g-spacing-7)}.g-s__pb_7{padding-block-end:var(--g-spacing-7)}.g-s__pt_7{padding-block-start:var(--g-spacing-7)}.g-s__py_7{padding-block:var(--g-spacing-7)}.g-s__px_7{padding-inline:var(--g-spacing-7)}.g-s__m_8{margin:var(--g-spacing-8)}.g-s__mr_8{margin-inline-end:var(--g-spacing-8)}.g-s__ml_8{margin-inline-start:var(--g-spacing-8)}.g-s__mt_8{margin-block-start:var(--g-spacing-8)}.g-s__mb_8{margin-block-end:var(--g-spacing-8)}.g-s__mx_8{margin-inline:var(--g-spacing-8)}.g-s__my_8{margin-block:var(--g-spacing-8)}.g-s__p_8{padding:var(--g-spacing-8)}.g-s__pl_8{padding-inline-start:var(--g-spacing-8)}.g-s__pr_8{padding-inline-end:var(--g-spacing-8)}.g-s__pb_8{padding-block-end:var(--g-spacing-8)}.g-s__pt_8{padding-block-start:var(--g-spacing-8)}.g-s__py_8{padding-block:var(--g-spacing-8)}.g-s__px_8{padding-inline:var(--g-spacing-8)}.g-s__m_9{margin:var(--g-spacing-9)}.g-s__mr_9{margin-inline-end:var(--g-spacing-9)}.g-s__ml_9{margin-inline-start:var(--g-spacing-9)}.g-s__mt_9{margin-block-start:var(--g-spacing-9)}.g-s__mb_9{margin-block-end:var(--g-spacing-9)}.g-s__mx_9{margin-inline:var(--g-spacing-9)}.g-s__my_9{margin-block:var(--g-spacing-9)}.g-s__p_9{padding:var(--g-spacing-9)}.g-s__pl_9{padding-inline-start:var(--g-spacing-9)}.g-s__pr_9{padding-inline-end:var(--g-spacing-9)}.g-s__pb_9{padding-block-end:var(--g-spacing-9)}.g-s__pt_9{padding-block-start:var(--g-spacing-9)}.g-s__py_9{padding-block:var(--g-spacing-9)}.g-s__px_9{padding-inline:var(--g-spacing-9)}.g-s__m_10{margin:var(--g-spacing-10)}.g-s__mr_10{margin-inline-end:var(--g-spacing-10)}.g-s__ml_10{margin-inline-start:var(--g-spacing-10)}.g-s__mt_10{margin-block-start:var(--g-spacing-10)}.g-s__mb_10{margin-block-end:var(--g-spacing-10)}.g-s__mx_10{margin-inline:var(--g-spacing-10)}.g-s__my_10{margin-block:var(--g-spacing-10)}.g-s__p_10{padding:var(--g-spacing-10)}.g-s__pl_10{padding-inline-start:var(--g-spacing-10)}.g-s__pr_10{padding-inline-end:var(--g-spacing-10)}.g-s__pb_10{padding-block-end:var(--g-spacing-10)}.g-s__pt_10{padding-block-start:var(--g-spacing-10)}.g-s__py_10{padding-block:var(--g-spacing-10)}.g-s__px_10{padding-inline:var(--g-spacing-10)}.g-box{box-sizing:border-box}.g-box_overflow_hidden{overflow:hidden}.g-box_overflow_auto{overflow:auto}.g-box_overflow_x{overflow:hidden auto}.g-box_overflow_y{overflow:auto hidden}.g-flex{display:flex}.g-flex_inline{display:inline-flex}.g-flex_center-content{align-items:center;justify-content:center}.g-flex_s_0{margin-block-start:calc(var(--g-spacing-0)*-1)!important;margin-inline-start:calc(var(--g-spacing-0)*-1)!important}.g-flex_s_0>*{padding-block-start:var(--g-spacing-0)!important;padding-inline-start:var(--g-spacing-0)!important}.g-flex_s_half{margin-block-start:calc(var(--g-spacing-half)*-1)!important;margin-inline-start:calc(var(--g-spacing-half)*-1)!important}.g-flex_s_half>*{padding-block-start:var(--g-spacing-half)!important;padding-inline-start:var(--g-spacing-half)!important}.g-flex_s_1{margin-block-start:calc(var(--g-spacing-1)*-1)!important;margin-inline-start:calc(var(--g-spacing-1)*-1)!important}.g-flex_s_1>*{padding-block-start:var(--g-spacing-1)!important;padding-inline-start:var(--g-spacing-1)!important}.g-flex_s_2{margin-block-start:calc(var(--g-spacing-2)*-1)!important;margin-inline-start:calc(var(--g-spacing-2)*-1)!important}.g-flex_s_2>*{padding-block-start:var(--g-spacing-2)!important;padding-inline-start:var(--g-spacing-2)!important}.g-flex_s_3{margin-block-start:calc(var(--g-spacing-3)*-1)!important;margin-inline-start:calc(var(--g-spacing-3)*-1)!important}.g-flex_s_3>*{padding-block-start:var(--g-spacing-3)!important;padding-inline-start:var(--g-spacing-3)!important}.g-flex_s_4{margin-block-start:calc(var(--g-spacing-4)*-1)!important;margin-inline-start:calc(var(--g-spacing-4)*-1)!important}.g-flex_s_4>*{padding-block-start:var(--g-spacing-4)!important;padding-inline-start:var(--g-spacing-4)!important}.g-flex_s_5{margin-block-start:calc(var(--g-spacing-5)*-1)!important;margin-inline-start:calc(var(--g-spacing-5)*-1)!important}.g-flex_s_5>*{padding-block-start:var(--g-spacing-5)!important;padding-inline-start:var(--g-spacing-5)!important}.g-flex_s_6{margin-block-start:calc(var(--g-spacing-6)*-1)!important;margin-inline-start:calc(var(--g-spacing-6)*-1)!important}.g-flex_s_6>*{padding-block-start:var(--g-spacing-6)!important;padding-inline-start:var(--g-spacing-6)!important}.g-flex_s_7{margin-block-start:calc(var(--g-spacing-7)*-1)!important;margin-inline-start:calc(var(--g-spacing-7)*-1)!important}.g-flex_s_7>*{padding-block-start:var(--g-spacing-7)!important;padding-inline-start:var(--g-spacing-7)!important}.g-flex_s_8{margin-block-start:calc(var(--g-spacing-8)*-1)!important;margin-inline-start:calc(var(--g-spacing-8)*-1)!important}.g-flex_s_8>*{padding-block-start:var(--g-spacing-8)!important;padding-inline-start:var(--g-spacing-8)!important}.g-flex_s_9{margin-block-start:calc(var(--g-spacing-9)*-1)!important;margin-inline-start:calc(var(--g-spacing-9)*-1)!important}.g-flex_s_9>*{padding-block-start:var(--g-spacing-9)!important;padding-inline-start:var(--g-spacing-9)!important}.g-flex_s_10{margin-block-start:calc(var(--g-spacing-10)*-1)!important;margin-inline-start:calc(var(--g-spacing-10)*-1)!important}.g-flex_s_10>*{padding-block-start:var(--g-spacing-10)!important;padding-inline-start:var(--g-spacing-10)!important}.kv-ydb-internal-user{align-items:center;display:flex;flex-grow:1;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-ydb-internal-user__user-info-wrapper{display:flex;flex-direction:column}.kv-ydb-internal-user__ydb-internal-user-title{font-weight:500}.kv-ydb-internal-user__ydb-user-wrapper{padding:10px;width:300px}.ydb-link-with-icon{align-items:center;display:flex;flex-wrap:nowrap;white-space:nowrap}.ydb-node-endpoints-tooltip-content .info-viewer__value{min-width:70px}.ydb-node-endpoints-tooltip-content__list-container{padding-right:20px}.ydb-node-endpoints-tooltip-content__definition{text-align:right;word-break:break-word}.g-clipboard-button__icon{pointer-events:none}.g-action-tooltip{--g-popup-border-width:0;--g-popup-background-color:var(--g-color-base-float-heavy)}.g-action-tooltip__content{box-sizing:border-box;color:var(--g-color-text-light-primary);max-width:300px;padding:6px 12px}.g-action-tooltip__heading{align-items:baseline;display:flex;justify-content:space-between}.g-action-tooltip__title{color:var(--g-color-text-light-primary)}.g-action-tooltip__hotkey{margin-inline-start:8px}.g-action-tooltip__description{color:var(--g-color-text-light-secondary);margin-block-start:4px}.g-hotkey{border-radius:4px;padding:1px 5px}.g-hotkey,.g-hotkey kbd{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-hotkey_view_light{background-color:var(--g-color-base-generic)}.g-hotkey_view_light .g-hotkey__plus{color:var(--g-color-text-hint)}.g-hotkey_view_dark{background-color:var(--g-color-base-light-simple-hover);color:var(--g-color-text-light-complementary)}.g-hotkey_view_dark .g-hotkey__plus{color:var(--g-color-text-light-hint)}.g-help-mark__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-help-mark__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.g-definition-list{--_--item-block-start:var(--g-spacing-4);--_--term-width:300px;margin:0}.g-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.g-definition-list__item+.g-definition-list__item{margin-block-start:var(--g-definition-list-item-gap,var(--_--item-block-start))}.g-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 auto;max-width:var(--_--term-width);overflow:hidden;position:relative;width:var(--_--term-width)}.g-definition-list__term-wrapper{color:var(--g-color-text-secondary)}.g-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:25px}.g-definition-list__definition{flex:0 1 auto;margin:0}.g-definition-list_responsive .g-definition-list__term-container{--_--term-width:auto;flex:1 0 min-content}.g-definition-list_vertical{--_--item-block-start:var(--g-spacing-3);--_--term-width:auto}.g-definition-list_vertical .g-definition-list__term-container{flex:1 0 auto}.g-definition-list_vertical .g-definition-list__item{flex-direction:column;gap:var(--g-spacing-half)}.g-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.g-definition-list__copy-container:hover .g-definition-list__copy-button{opacity:1}.g-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.g-definition-list__copy-button:focus-visible{opacity:1}.info-viewer{--ydb-info-viewer-font-size:var(--g-text-body-2-font-size);--ydb-info-viewer-line-height:var(--g-text-body-2-line-height);--ydb-info-viewer-title-font-weight:600;--ydb-info-viewer-title-margin:15px 0 10px;--ydb-info-viewer-items-gap:7px;font-size:var(--ydb-info-viewer-font-size);line-height:var(--ydb-info-viewer-line-height)}.info-viewer__title{font-weight:var(--ydb-info-viewer-title-font-weight);margin:var(--ydb-info-viewer-title-margin)}.info-viewer__items{display:flex;flex-direction:column;gap:var(--ydb-info-viewer-items-gap);max-width:100%}.info-viewer__row{align-items:baseline;display:flex;max-width:100%;padding-top:4px}.info-viewer__label{align-items:baseline;color:var(--g-color-text-secondary);display:flex;flex:0 1 auto;min-width:200px;white-space:nowrap}.info-viewer__label-text_multiline{max-width:180px;overflow:visible;white-space:normal}.info-viewer__dots{border-bottom:1px dotted var(--g-color-text-secondary);display:flex;flex:1 1 auto;margin:0 2px}.info-viewer__value{display:flex;min-width:130px;word-break:break-all}.info-viewer_size_s{--ydb-info-viewer-font-size:var(--g-text-body-1-font-size);--ydb-info-viewer-line-height:var(--g-text-body-1-line-height);--ydb-info-viewer-title-font-weight:500;--ydb-info-viewer-title-margin:0 0 4px;--ydb-info-viewer-items-gap:4px}.info-viewer_size_s .info-viewer__row{height:auto}.info-viewer_size_s .info-viewer__label{min-width:85px}.ydb-cell-with-popover{display:inline-flex;max-width:100%}.ydb-cell-with-popover_full-width{display:flex}.ydb-cell-with-popover__popover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.ydb-cell-with-popover__popover .g-popover__handler{display:inline}.ydb-cell-with-popover__popover_full-width{width:100%}.popup2{animation:none!important;max-width:300px}.histogram-tooltip,.node-tootltip{padding:10px}.histogram-tooltip__label,.node-tootltip__label{color:var(--g-color-text-secondary);padding-right:15px}.cell-tooltip{padding:10px;word-break:break-word}.empty-state{padding:20px}.empty-state_size_m{height:400px}.empty-state__wrapper{display:grid;grid-template-areas:"image title" "image description" "image actions"}.empty-state__wrapper_size_s{height:120px;width:460px}.empty-state__wrapper_size_m{height:240px;width:800px}.empty-state__wrapper_position_center{margin:0 auto;position:relative}.empty-state__image{color:var(--g-color-base-info-light-hover);grid-area:image;justify-self:end;margin-right:60px}.g-root_theme_dark .empty-state__image{color:var(--g-color-base-generic)}.empty-state__title{align-self:center;font-weight:500;grid-area:title}.empty-state__title_size_s{font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height)}.empty-state__title_size_m{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.empty-state__description{font-size:var(--g-text-body-2-font-size);grid-area:description;line-height:var(--g-text-body-2-line-height)}.empty-state__actions{grid-area:actions}.empty-state__actions>*{margin-right:8px}.ydb-loader{flex:1 1 auto}.authentication,.ydb-loader{align-items:center;display:flex;height:100%;justify-content:center}.authentication{background-blend-mode:normal;background-color:#b8d4fd1a;background-image:radial-gradient(at 0 100%,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 55% 0,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 110% 100%,#0066ff26 20%,#f7f7f700 40%)}.authentication .g-text-input{display:flex}.authentication__header{align-items:center;display:flex;font-size:var(--g-text-body-1-font-size);justify-content:space-between;line-height:var(--g-text-header-1-line-height);width:100%}.authentication__logo{align-items:center;display:flex;font-size:16px;font-weight:600;gap:8px}.authentication__title{font-size:var(--g-text-header-2-font-size);font-weight:600;line-height:var(--g-text-header-2-line-height);margin:34px 0 16px}.authentication__form-wrapper{align-items:center;background-color:var(--g-color-base-background);border-radius:16px;display:flex;flex-direction:column;flex-shrink:0;justify-content:center;min-width:320px;padding:40px;width:400px}.authentication__field-wrapper{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:16px;width:320px}.authentication__field-wrapper .g-text-input_state_error{flex-direction:column}.authentication__button-sign-in{display:inline-flex;justify-content:center}.authentication__show-password-button{margin-left:4px}.authentication__close{position:absolute;right:40px;top:40px}.ydb-connect-to-db__dialog-tabs,.ydb-connect-to-db__docs{margin-top:var(--g-spacing-4)}.ydb-connect-to-db__snippet-container{height:270px}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.g-dialog-body{flex:1 1 auto;overflow-y:auto;padding:10px var(--_--side-padding)}.g-dialog-body_has-borders{border-block-end:1px solid var(--g-color-line-generic)}.g-dialog-body_has-borders,.g-dialog-divider{border-block-start:1px solid var(--g-color-line-generic)}.g-dialog-divider{margin:0 calc(var(--_--side-padding)*-1)}.g-dialog-footer{align-items:center;display:flex;padding:28px var(--_--side-padding)}.g-dialog-footer__bts-wrapper{display:flex;gap:10px}.g-dialog-footer__children{align-items:center;display:flex;flex-grow:1;height:100%}.g-dialog-footer__button{min-width:128px;position:relative}.g-dialog-footer__error{color:var(--g-color-text-danger);padding:10px}.g-dialog-header{align-items:center;color:var(--g-color-text-primary);display:flex;justify-content:flex-start;line-height:24px;padding-block:20px 10px;padding-inline:var(--_--side-padding) calc(var(--_--side-padding) + var(--_--close-button-space)*var(--g-flow-is-ltr) + var(--_--close-button-space)*var(--g-flow-is-rtl))}.g-dialog-header__caption{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-dialog_size_s{--_--width:480px}.g-dialog_size_m{--_--width:720px}.g-dialog_size_l{--_--width:900px}.g-dialog_has-close{--_--close-button-space:24px}.g-modal{-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--g-color-sfx-veil);display:none;inset:0;margin:-9999px 0 0 -9999px;overflow:auto;position:fixed;visibility:hidden;z-index:1000}.g-modal__content-aligner{align-items:center;display:inline-flex;justify-content:center;min-height:100%;min-width:100%}.g-modal__content-wrapper{margin:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{border-radius:var(--g-modal-border-radius,5px)}.g-modal__content{background-color:var(--g-color-base-modal)}.g-modal__content_has-scroll{max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-modal,.g-modal__content{animation-fill-mode:forwards;animation-timing-function:ease-out;outline:none}.g-modal_exit_active,.g-modal_open{display:block;margin:0;visibility:visible}.g-modal_appear_active,.g-modal_enter_active{animation-duration:.15s;animation-name:g-modal-open}.g-modal_appear_active .g-modal__content,.g-modal_enter_active .g-modal__content{animation-duration:.15s;animation-name:g-modal-content-open}.g-modal_exit_active{animation-duration:.2s;animation-name:g-modal}@keyframes g-modal{0%{opacity:1}to{opacity:0}}@keyframes g-modal-open{0%{opacity:0}to{opacity:1}}@keyframes g-modal-content-open{0%{transform:scale(.75)}to{transform:scale(1)}}.tablet-icon{border:1px solid;border-radius:4px;display:flex;font-size:10px;height:16px;justify-content:center;text-transform:uppercase;width:23px}.tablet-icon__type{line-height:14px}.header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;flex:0 0 40px;justify-content:space-between;padding:0 20px 0 12px}.header__breadcrumbs-item{color:var(--g-color-text-secondary);display:flex;gap:3px}.header__breadcrumbs-item_link:hover{color:var(--g-color-text-complementary)}.header__breadcrumbs-item_active{color:var(--g-color-text-primary)}.header__breadcrumbs-icon{align-items:center;display:flex}.g-divider{--_--content-gap:8px;--_--size:1px}.g-divider:not(:empty){align-items:center;border:none;display:flex}.g-divider:not(:empty):after,.g-divider:not(:empty):before{content:""}.g-divider:after,.g-divider:before{background:var(--g-divider-color,var(--g-color-line-generic));flex-grow:1}.g-divider_orientation_vertical{border-inline-start:1px solid var(--g-divider-color,var(--g-color-line-generic));flex-direction:column}.g-divider_orientation_vertical:after,.g-divider_orientation_vertical:before{width:var(--_--size)}.g-divider_orientation_vertical:before{margin-block-end:var(--_--content-gap)}.g-divider_orientation_vertical:after{margin-block-start:var(--_--content-gap)}.g-divider_orientation_horizontal{border-block-start:1px solid var(--g-divider-color,var(--g-color-line-generic))}.g-divider_orientation_horizontal:after,.g-divider_orientation_horizontal:before{height:var(--_--size)}.g-divider_orientation_horizontal:before{margin-inline-end:var(--_--content-gap)}.g-divider_orientation_horizontal:after{margin-inline-start:var(--_--content-gap)}.g-divider_align_end:after,.g-divider_align_start:before{display:none}.g-menu{background-color:var(--g-color-base-float);box-sizing:border-box;color:var(--g-color-text-primary);display:block;font-size:var(--g-text-body-1-font-size);list-style:none;margin:0;outline:none;overflow:hidden auto;padding:0;-webkit-user-select:none;user-select:none}.g-menu__list-group-item+.g-menu__list-group-item,.g-menu__list-group-item+.g-menu__list-item,.g-menu__list-item+.g-menu__list-group-item{border-block-start:1px solid var(--g-color-line-generic)}.g-menu__item{-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;color:var(--g-color-text-primary);display:flex;outline:none;text-decoration:none;touch-action:manipulation}.g-menu__item-icon{display:flex}.g-menu__item-icon-end{display:flex;margin-inline-end:0}.g-menu__item-content{flex-grow:1;min-width:0}.g-menu__item_interactive{cursor:pointer}.g-menu__item_interactive:focus-visible,.g-menu__item_interactive:hover,.g-menu__item_selected{background-color:var(--g-color-base-simple-hover)}.g-menu__item_disabled{color:var(--g-color-text-secondary);cursor:default;pointer-events:none}.g-menu__item_disabled:hover{background-color:initial}.g-menu__item_active{background-color:var(--g-color-base-selection);cursor:default}.g-menu__item_active:focus-visible,.g-menu__item_active:hover{background-color:var(--g-color-base-selection-hover)}.g-menu__item_theme_danger:not(.g-menu__item_disabled){color:var(--g-color-text-danger)}.g-menu__group-label{color:var(--g-color-text-hint);font-weight:var(--g-text-accent-font-weight)}.g-menu__group-list{list-style:none;margin:0;padding:0}.g-menu_size_s{line-height:24px;padding:3px 0}.g-menu_size_s .g-menu__group-label,.g-menu_size_s .g-menu__item{padding:0 10px}.g-menu_size_s .g-menu__item-icon{margin-inline-end:3px}.g-menu_size_s .g-menu__item-icon-end{margin-inline-start:3px}.g-menu_size_s .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_s .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_s .g-menu__list-item+.g-menu__list-group-item{margin-block-start:3px;padding-block-start:3px}.g-menu_size_m{line-height:24px;padding:4px 0}.g-menu_size_m .g-menu__group-label,.g-menu_size_m .g-menu__item{padding:0 13px}.g-menu_size_m .g-menu__item-icon{margin-inline-end:4px}.g-menu_size_m .g-menu__item-icon-end{margin-inline-start:4px}.g-menu_size_m .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_m .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_m .g-menu__list-item+.g-menu__list-group-item{margin-block-start:4px;padding-block-start:4px}.g-menu_size_l{line-height:28px;padding:5px 0}.g-menu_size_l .g-menu__group-label,.g-menu_size_l .g-menu__item{padding:0 15px}.g-menu_size_l .g-menu__item-icon{margin-inline-end:5px}.g-menu_size_l .g-menu__item-icon-end{margin-inline-start:5px}.g-menu_size_l .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_l .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_l .g-menu__list-item+.g-menu__list-group-item{margin-block-start:5px;padding-block-start:5px}.g-menu_size_xl{font-size:var(--g-text-body-2-font-size);line-height:36px;padding:6px 0}.g-menu_size_xl .g-menu__group-label,.g-menu_size_xl .g-menu__item{padding:0 15px}.g-menu_size_xl .g-menu__item-icon{margin-inline-end:6px}.g-menu_size_xl .g-menu__item-icon-end{margin-inline-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:first-child){margin-block-start:6px;padding-block-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:last-child){margin-block-end:6px;padding-block-end:6px}.g-dropdown-menu__switcher-wrapper{display:inline-block}.g-dropdown-menu__switcher-button{display:flex}.g-dropdown-menu__menu-item_separator{border-block-start:1px solid var(--g-color-line-generic-solid);margin:.5em 0;pointer-events:none}.g-dropdown-menu__sub-menu-arrow{inset-inline-end:-4px;position:relative}.g-dropdown-menu__sub-menu{position:relative}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after,.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{content:"";height:100%;inset-block-start:0;position:absolute;width:10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{inset-inline-start:-10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after{inset-inline-end:-10px}.g-breadcrumbs__inner{align-items:center;display:inline-flex;gap:4px;min-height:24px;overflow:hidden;width:100%}.g-breadcrumbs__switcher{background:none;border:none;color:inherit;color:var(--g-color-text-secondary);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-breadcrumbs__switcher:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs__item,.g-breadcrumbs__switcher{display:inline-block;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-breadcrumbs__item:focus-visible,.g-breadcrumbs__switcher:focus-visible{border-radius:var(--g-focus-border-radius);outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs_calculated_no .g-breadcrumbs__item{overflow:visible}.g-breadcrumbs__divider{align-items:center;color:var(--g-color-text-secondary);display:flex}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item .g-menu__item{padding-inline-start:80px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(0) .g-menu__item{padding-inline-start:0!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:first-child .g-menu__item{padding-inline-start:8px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(2) .g-menu__item{padding-inline-start:16px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(3) .g-menu__item{padding-inline-start:24px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(4) .g-menu__item{padding-inline-start:32px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(5) .g-menu__item{padding-inline-start:40px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(6) .g-menu__item{padding-inline-start:48px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(7) .g-menu__item{padding-inline-start:56px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(8) .g-menu__item{padding-inline-start:64px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(9) .g-menu__item{padding-inline-start:72px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(10) .g-menu__item{padding-inline-start:80px!important}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}*{font-feature-settings:"tnum";box-sizing:border-box;font-variant-numeric:tabular-nums}.g-select-popup__tick-icon{box-sizing:initial}#root,body,html{box-sizing:border-box;height:100%;margin:0;overflow:auto;padding:0}:root{--g-color-base-yellow-light:#ffc70026;--g-color-base-yellow-medium:#ffdb4d66;--tenant-object-info-max-value-width:300px;--diagnostics-section-title-margin:20px;--diagnostics-section-margin:30px;--diagnostics-section-table-width:872px}.g-root{--ydb-data-table-color-hover:var(--g-color-base-simple-hover-solid);--ydb-color-status-grey:var(--g-color-base-neutral-heavy);--ydb-color-status-green:var(--g-color-base-positive-heavy);--ydb-color-status-yellow:var(--g-color-base-warning-heavy);--ydb-color-status-orange:var(--g-color-private-orange-500-solid);--ydb-color-status-red:var(--g-color-base-danger-heavy);--ydb-color-status-blue:var(--g-color-base-info-heavy);--ydb-color-status-black:var(--g-color-base-misc-heavy);--g-popover-max-width:500px}:is(#tab,.g-tabs-item_active .g-tabs-item__title){color:var(--g-color-text-primary)!important}:is(#tab,.g-tabs-item__title){color:var(--g-color-text-secondary)}.gn-aside-header__pane-container{height:100%}.gn-aside-header__content{display:flex;flex-direction:column;height:100%;overflow:auto;position:relative}.loader{align-items:center;display:flex;justify-content:center;left:50%;position:fixed;top:50%;z-index:99999999}.app{--data-table-row-height:40px;--data-table-cell-align:middle;--data-table-head-align:middle;display:flex;flex:1 1 auto;flex-direction:column;height:100%}.app .data-table{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.app .data-table__td,.app .data-table__th{border-left:unset;border-right:unset;border-top:unset;height:var(--data-table-row-height)}.app .data-table__th{font-weight:700}.app .data-table__table{border-collapse:initial;border-spacing:0}.app .data-table__box_sticky-head_moving .data-table__th{height:unset}.app__main{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.error{color:var(--g-color-text-danger)}.g-root .data-table_highlight-rows .data-table__row:hover{background:var(--ydb-data-table-color-hover)}.g-table-column-setup__item{cursor:pointer!important;padding:0 8px 0 32px!important}.app_embedded{font-family:Rubik,sans-serif}.kv-navigation__internal-user{align-items:center;display:flex;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-navigation__user-info-wrapper{display:flex;flex-direction:column}.kv-navigation__ydb-internal-user-title{font-weight:500}.kv-navigation__ydb-user-wrapper{padding:10px;width:300px}.g-list{--_--item-padding:var(--g-list-item-padding,0);display:flex;flex:1 1 auto;flex-direction:column;outline:none;width:100%}.g-list__filter{flex:0 0 auto;margin-block-end:8px;padding:var(--_--item-padding)}.g-list__items{flex:1 1 auto}.g-list__empty-placeholder,.g-list__item{align-items:center;box-sizing:border-box;display:flex;overflow:hidden;padding:var(--_--item-padding);-webkit-user-select:none;user-select:none}.g-list__item_active{background:var(--g-color-base-simple-hover)}.g-list__item_selected{background:var(--g-color-base-selection)}.g-list__item_selected:hover{background:var(--g-color-base-selection-hover)}.g-list__item_sort-handle-align_right{flex-direction:row-reverse}.g-list__item_sort-handle-align_right .g-list__item-sort-icon{margin-inline:10px 0}.g-list__item_sortable[data-rbd-drag-handle-context-id]:active{cursor:grabbing}.g-list__item_dragging{background:var(--g-color-base-simple-hover-solid);z-index:100001}.g-list__empty-placeholder{box-sizing:border-box;color:var(--g-color-text-hint);min-height:36px;padding-block:8px}.g-list__item-content{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;text-overflow:ellipsis}.g-list__item-sort-icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex:0 0 auto;margin-inline-end:4px;width:12px}.g-list__loading-indicator{align-items:center;display:flex;justify-content:center;width:100%}.extended-cluster{display:flex;height:100%}.extended-cluster__balancer{align-items:center;display:flex;flex-direction:row}.extended-cluster__clipboard-button{margin-left:5px}.g-toast{--_--item-gap:10px;--_--item-padding:16px;--_--background-color:var(--g-color-base-background);background-color:var(--_--background-color);border-radius:8px;box-shadow:0 0 15px var(--g-color-sfx-shadow);box-sizing:border-box;display:flex;font-size:var(--g-text-body-2-font-size);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));overflow:hidden;padding:var(--g-toaster-item-padding,var(--_--item-padding));position:relative;width:inherit;z-index:0}.g-toast_mobile{width:100%}.g-toast_theme_normal{--_--background-color:var(--g-color-base-float)}.g-toast_theme_info{--_--container-background-color:var(--g-color-base-info-light);--_--icon-color:var(--g-color-text-info-heavy)}.g-toast_theme_success{--_--container-background-color:var(--g-color-base-positive-light);--_--icon-color:var(--g-color-text-positive-heavy)}.g-toast_theme_warning{--_--container-background-color:var(--g-color-base-warning-light);--_--icon-color:var(--g-color-text-warning-heavy)}.g-toast_theme_danger{--_--container-background-color:var(--g-color-base-danger-light);--_--icon-color:var(--g-color-text-danger-heavy)}.g-toast_theme_utility{--_--container-background-color:var(--g-color-base-utility-light);--_--icon-color:var(--g-color-text-utility-heavy)}.g-toast__container{display:flex;flex:1 1 auto;flex-flow:column nowrap;min-height:var(--g-text-body-2-line-height);min-width:0}.g-toast__container:before{background-color:var(--_--container-background-color);content:"";height:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;width:100%;z-index:-1}.g-toast__icon-container{color:var(--_--icon-color);flex:0 0 auto;min-width:0;padding-block-start:2px;padding-inline-end:8px}.g-toast__title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height);margin:0;padding-inline-end:32px}.g-toast__content{margin-block-start:var(--g-spacing-2)}.g-toast__content_without-title{margin-block-start:0;padding-inline-end:32px}.g-toast__actions{margin-block-start:var(--g-spacing-3)}.g-toast__action{margin-inline-end:8px}.g-toast .g-toast__btn-close{inset-block-start:16px;inset-inline-end:16px;position:absolute}.g-toast-animation-mobile_enter{opacity:0;position:absolute}.g-toast-animation-mobile_enter_active{animation:g-toast-enter-mobile .6s ease-out forwards;position:relative}.g-toast-animation-mobile_exit_active{animation:g-toast-exit-mobile .6s ease-in forwards}@keyframes g-toast-enter-mobile{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}}@keyframes g-toast-exit-mobile{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}}.g-toast-animation-desktop_enter{opacity:0;position:absolute}.g-toast-animation-desktop_enter_active{animation:g-toast-enter-desktop .6s ease-out forwards;position:relative}.g-toast-animation-desktop_exit_active{animation:g-toast-exit-desktop .6s ease-in forwards}@keyframes g-toast-enter-desktop{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}}@keyframes g-toast-exit-desktop{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}}.g-toaster{--_--width:312px;align-items:flex-end;display:flex;flex-direction:column;inset-block-end:0;inset-inline-end:10px;position:fixed;width:var(--g-toaster-width,var(--_--width));z-index:100000}.g-toaster_mobile{--_--width:calc(100% - 20px);inset-inline-start:50%;transform:translate(-50%)}.g-root{--g-text-header-font-weight:500;--g-text-subheader-font-weight:600;--g-text-display-font-weight:500;--g-text-accent-font-weight:500}.g-root_theme_light{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-550-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-100);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-700-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-600-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-70:#00000012;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-20-solid:#fafafa;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4e79eb;--g-color-private-blue-650-solid:#4a71d6;--g-color-private-blue-700-solid:#4768c2;--g-color-private-blue-750-solid:#4360ad;--g-color-private-blue-800-solid:#3f5799;--g-color-private-blue-850-solid:#3c4f85;--g-color-private-blue-900-solid:#384670;--g-color-private-blue-950-solid:#343d5c;--g-color-private-blue-1000-solid:#333952;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#3ab935;--g-color-private-green-650-solid:#38aa35;--g-color-private-green-700-solid:#379a34;--g-color-private-green-750-solid:#358a34;--g-color-private-green-800-solid:#347b34;--g-color-private-green-850-solid:#336b34;--g-color-private-green-900-solid:#315b34;--g-color-private-green-950-solid:#304b33;--g-color-private-green-1000-solid:#2f4433;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#eac94a;--g-color-private-yellow-650-solid:#d5b848;--g-color-private-yellow-700-solid:#c0a645;--g-color-private-yellow-750-solid:#ab9543;--g-color-private-yellow-800-solid:#968340;--g-color-private-yellow-850-solid:#81723d;--g-color-private-yellow-900-solid:#6c603b;--g-color-private-yellow-950-solid:#574f38;--g-color-private-yellow-1000-solid:#4d4637;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#ea7005;--g-color-private-orange-650-solid:#d5680a;--g-color-private-orange-700-solid:#c0600f;--g-color-private-orange-750-solid:#ab5914;--g-color-private-orange-800-solid:#965119;--g-color-private-orange-850-solid:#814a1f;--g-color-private-orange-900-solid:#6c4324;--g-color-private-orange-950-solid:#573b29;--g-color-private-orange-1000-solid:#4d372b;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#ea0805;--g-color-private-red-650-solid:#d50c0a;--g-color-private-red-700-solid:#c0100f;--g-color-private-red-750-solid:#ab1414;--g-color-private-red-800-solid:#961819;--g-color-private-red-850-solid:#811c1f;--g-color-private-red-900-solid:#6c2024;--g-color-private-red-950-solid:#572429;--g-color-private-red-1000-solid:#4d262b;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#854ebd;--g-color-private-purple-650-solid:#7b4aad;--g-color-private-purple-700-solid:#72479e;--g-color-private-purple-750-solid:#68438f;--g-color-private-purple-800-solid:#5e3f80;--g-color-private-purple-850-solid:#543b70;--g-color-private-purple-900-solid:#4a3761;--g-color-private-purple-950-solid:#413452;--g-color-private-purple-1000-solid:#3c324a;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#657b8f;--g-color-private-cool-grey-650-solid:#5f7285;--g-color-private-cool-grey-700-solid:#586a7a;--g-color-private-cool-grey-750-solid:#526170;--g-color-private-cool-grey-800-solid:#4c5866;--g-color-private-cool-grey-850-solid:#464f5c;--g-color-private-cool-grey-900-solid:#404652;--g-color-private-cool-grey-950-solid:#393e47;--g-color-private-cool-grey-1000-solid:#363942}.g-root_theme_light-hc{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-600-solid);--g-color-base-brand-hover:var(--g-color-private-blue-800-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-350);--g-color-line-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-900-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-850-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4d79e9;--g-color-private-blue-650-solid:#486fd4;--g-color-private-blue-700-solid:#4366be;--g-color-private-blue-750-solid:#3f5ca8;--g-color-private-blue-800-solid:#3a5393;--g-color-private-blue-850-solid:#35497d;--g-color-private-blue-900-solid:#304067;--g-color-private-blue-950-solid:#2c3651;--g-color-private-blue-1000-solid:#293147;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#38b833;--g-color-private-green-650-solid:#36a832;--g-color-private-green-700-solid:#339730;--g-color-private-green-750-solid:#31872f;--g-color-private-green-800-solid:#2f762e;--g-color-private-green-850-solid:#2c652c;--g-color-private-green-900-solid:#29552b;--g-color-private-green-950-solid:#274429;--g-color-private-green-1000-solid:#263c28;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#e9c949;--g-color-private-yellow-650-solid:#d3b645;--g-color-private-yellow-700-solid:#bda441;--g-color-private-yellow-750-solid:#a7913d;--g-color-private-yellow-800-solid:#907f3a;--g-color-private-yellow-850-solid:#7a6d36;--g-color-private-yellow-900-solid:#645a32;--g-color-private-yellow-950-solid:#4e482e;--g-color-private-yellow-1000-solid:#433f2c;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#e96f04;--g-color-private-orange-650-solid:#d36608;--g-color-private-orange-700-solid:#bd5e0b;--g-color-private-orange-750-solid:#a7550f;--g-color-private-orange-800-solid:#904d13;--g-color-private-orange-850-solid:#7a4517;--g-color-private-orange-900-solid:#643c1b;--g-color-private-orange-950-solid:#4e341e;--g-color-private-orange-1000-solid:#433020;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#e90804;--g-color-private-red-650-solid:#d30b08;--g-color-private-red-700-solid:#bd0e0b;--g-color-private-red-750-solid:#a6110f;--g-color-private-red-800-solid:#901413;--g-color-private-red-850-solid:#7a1717;--g-color-private-red-900-solid:#641a1b;--g-color-private-red-950-solid:#4e1d1e;--g-color-private-red-1000-solid:#431e20;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#844dbb;--g-color-private-purple-650-solid:#7949ab;--g-color-private-purple-700-solid:#6e449a;--g-color-private-purple-750-solid:#633f8a;--g-color-private-purple-800-solid:#593b79;--g-color-private-purple-850-solid:#4e3668;--g-color-private-purple-900-solid:#433158;--g-color-private-purple-950-solid:#382c47;--g-color-private-purple-1000-solid:#322a3f;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#647a8e;--g-color-private-cool-grey-650-solid:#5c7182;--g-color-private-cool-grey-700-solid:#556776;--g-color-private-cool-grey-750-solid:#4e5d6b;--g-color-private-cool-grey-800-solid:#465360;--g-color-private-cool-grey-850-solid:#3f4a54;--g-color-private-cool-grey-900-solid:#384049;--g-color-private-cool-grey-950-solid:#31363d;--g-color-private-cool-grey-1000-solid:#2d3237}.g-root_theme_dark{--g-color-base-background:#2d2c33;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-150);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-600-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-550-solid);--g-color-text-link-hover:var(--g-color-private-blue-700-solid);--g-color-private-white-20:#ffffff05;--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-20-solid:#313037;--g-color-private-white-50-solid:#38373d;--g-color-private-white-70-solid:#3c3b41;--g-color-private-white-100-solid:#424147;--g-color-private-white-150-solid:#4d4c52;--g-color-private-white-200-solid:#57565c;--g-color-private-white-250-solid:#616166;--g-color-private-white-300-solid:#6c6b70;--g-color-private-white-350-solid:#77767a;--g-color-private-white-400-solid:#818085;--g-color-private-white-450-solid:#8b8b8f;--g-color-private-white-500-solid:#969699;--g-color-private-white-550-solid:#a0a0a3;--g-color-private-white-600-solid:#ababad;--g-color-private-white-650-solid:#b6b5b8;--g-color-private-white-700-solid:#c0c0c2;--g-color-private-white-750-solid:#cacacc;--g-color-private-white-800-solid:#d5d5d6;--g-color-private-white-850-solid:#dfdfe0;--g-color-private-white-900-solid:#eaeaeb;--g-color-private-white-950-solid:#f5f5f5;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#4c4b51f2;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#313547;--g-color-private-blue-100-solid:#333952;--g-color-private-blue-150-solid:#343d5c;--g-color-private-blue-200-solid:#384670;--g-color-private-blue-250-solid:#3c4e85;--g-color-private-blue-300-solid:#405799;--g-color-private-blue-350-solid:#4360ad;--g-color-private-blue-400-solid:#4768c2;--g-color-private-blue-450-solid:#4b71d6;--g-color-private-blue-500-solid:#4e79eb;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#5bb55733;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#323a37;--g-color-private-green-100-solid:#344138;--g-color-private-green-150-solid:#36473a;--g-color-private-green-200-solid:#3b553e;--g-color-private-green-250-solid:#3f6341;--g-color-private-green-300-solid:#447145;--g-color-private-green-350-solid:#497e49;--g-color-private-green-400-solid:#4d8c4c;--g-color-private-green-450-solid:#529a50;--g-color-private-green-500-solid:#56a753;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#423c2e;--g-color-private-yellow-100-solid:#4d442b;--g-color-private-yellow-150-solid:#574c29;--g-color-private-yellow-200-solid:#6c5c24;--g-color-private-yellow-250-solid:#816c1f;--g-color-private-yellow-300-solid:#967c19;--g-color-private-yellow-350-solid:#ab8c14;--g-color-private-yellow-400-solid:#c09b0f;--g-color-private-yellow-450-solid:#d5ab0a;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#3d322f;--g-color-private-orange-100-solid:#44342d;--g-color-private-orange-150-solid:#4c372b;--g-color-private-orange-200-solid:#5c3d27;--g-color-private-orange-250-solid:#6b4223;--g-color-private-orange-300-solid:#7b4720;--g-color-private-orange-350-solid:#8a4d1c;--g-color-private-orange-400-solid:#995218;--g-color-private-orange-450-solid:#a95814;--g-color-private-orange-500-solid:#b95e10;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#402f35;--g-color-private-red-100-solid:#493036;--g-color-private-red-150-solid:#523237;--g-color-private-red-200-solid:#653539;--g-color-private-red-250-solid:#78383a;--g-color-private-red-300-solid:#8a3a3c;--g-color-private-red-350-solid:#9d3d3e;--g-color-private-red-400-solid:#b04040;--g-color-private-red-450-solid:#c34341;--g-color-private-red-500-solid:#d54644;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#373042;--g-color-private-purple-100-solid:#3c324a;--g-color-private-purple-150-solid:#413452;--g-color-private-purple-200-solid:#4a3761;--g-color-private-purple-250-solid:#543b70;--g-color-private-purple-300-solid:#5e3f80;--g-color-private-purple-350-solid:#68438f;--g-color-private-purple-400-solid:#72479e;--g-color-private-purple-450-solid:#7b4aad;--g-color-private-purple-500-solid:#854ebd;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#32343e;--g-color-private-cool-grey-100-solid:#353943;--g-color-private-cool-grey-150-solid:#373d48;--g-color-private-cool-grey-200-solid:#3c4552;--g-color-private-cool-grey-250-solid:#414e5d;--g-color-private-cool-grey-300-solid:#465667;--g-color-private-cool-grey-350-solid:#4c5e72;--g-color-private-cool-grey-400-solid:#51677d;--g-color-private-cool-grey-450-solid:#566f87;--g-color-private-cool-grey-500-solid:#5b7892;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}.g-root_theme_dark-hc{--g-color-base-background:#222326;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-650-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-400);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-850-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-50-solid:#2d2e31;--g-color-private-white-100-solid:#38393c;--g-color-private-white-150-solid:#434447;--g-color-private-white-200-solid:#4e4f51;--g-color-private-white-250-solid:#595a5c;--g-color-private-white-300-solid:#646567;--g-color-private-white-350-solid:#6f7072;--g-color-private-white-400-solid:#7a7b7d;--g-color-private-white-450-solid:#858688;--g-color-private-white-500-solid:#909193;--g-color-private-white-550-solid:#9c9c9d;--g-color-private-white-600-solid:#a7a7a8;--g-color-private-white-650-solid:#b2b2b3;--g-color-private-white-700-solid:#bdbdbe;--g-color-private-white-750-solid:#c8c8c9;--g-color-private-white-800-solid:#d3d3d4;--g-color-private-white-850-solid:#dededf;--g-color-private-white-900-solid:#e9e9e9;--g-color-private-white-950-solid:#f4f4f4;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#38393cf7;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-black-rock-950:#222326;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#272d3c;--g-color-private-blue-100-solid:#293147;--g-color-private-blue-150-solid:#2c3651;--g-color-private-blue-200-solid:#304067;--g-color-private-blue-250-solid:#35497d;--g-color-private-blue-300-solid:#3a5393;--g-color-private-blue-350-solid:#3f5ca8;--g-color-private-blue-400-solid:#4466be;--g-color-private-blue-450-solid:#486fd4;--g-color-private-blue-500-solid:#4d79e9;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#000;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#28322b;--g-color-private-green-100-solid:#2b392d;--g-color-private-green-150-solid:#2d4030;--g-color-private-green-200-solid:#334f35;--g-color-private-green-250-solid:#395d3a;--g-color-private-green-300-solid:#3f6c3f;--g-color-private-green-350-solid:#447b43;--g-color-private-green-400-solid:#4a8948;--g-color-private-green-450-solid:#50984d;--g-color-private-green-500-solid:#55a652;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#383422;--g-color-private-yellow-100-solid:#433c20;--g-color-private-yellow-150-solid:#4e451e;--g-color-private-yellow-200-solid:#64551b;--g-color-private-yellow-250-solid:#7a6617;--g-color-private-yellow-300-solid:#907713;--g-color-private-yellow-350-solid:#a7880f;--g-color-private-yellow-400-solid:#bd990b;--g-color-private-yellow-450-solid:#d3a908;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#332923;--g-color-private-orange-100-solid:#3b2d22;--g-color-private-orange-150-solid:#433021;--g-color-private-orange-200-solid:#54361e;--g-color-private-orange-250-solid:#643d1c;--g-color-private-orange-300-solid:#754319;--g-color-private-orange-350-solid:#864916;--g-color-private-orange-400-solid:#965014;--g-color-private-orange-450-solid:#a75611;--g-color-private-orange-500-solid:#b75d0f;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#362729;--g-color-private-red-100-solid:#40292b;--g-color-private-red-150-solid:#4a2b2c;--g-color-private-red-200-solid:#5d2e2f;--g-color-private-red-250-solid:#713233;--g-color-private-red-300-solid:#853636;--g-color-private-red-350-solid:#993a39;--g-color-private-red-400-solid:#ac3d3c;--g-color-private-red-450-solid:#c0413f;--g-color-private-red-500-solid:#d44542;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#2d2837;--g-color-private-purple-100-solid:#322a3f;--g-color-private-purple-150-solid:#382c47;--g-color-private-purple-200-solid:#433158;--g-color-private-purple-250-solid:#4e3668;--g-color-private-purple-300-solid:#593b79;--g-color-private-purple-350-solid:#633f8a;--g-color-private-purple-400-solid:#6e449a;--g-color-private-purple-450-solid:#7949ab;--g-color-private-purple-500-solid:#844dbb;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#282c32;--g-color-private-cool-grey-100-solid:#2b3138;--g-color-private-cool-grey-150-solid:#2e363e;--g-color-private-cool-grey-200-solid:#353f49;--g-color-private-cool-grey-250-solid:#3b4855;--g-color-private-cool-grey-300-solid:#415161;--g-color-private-cool-grey-350-solid:#475b6d;--g-color-private-cool-grey-400-solid:#4d6479;--g-color-private-cool-grey-450-solid:#546d84;--g-color-private-cool-grey-500-solid:#5a7790;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/css/main.ea1b4d9b.css b/ydb/core/viewer/monitoring/static/css/main.ea1b4d9b.css deleted file mode 100644 index 87bcb4037b0..00000000000 --- a/ydb/core/viewer/monitoring/static/css/main.ea1b4d9b.css +++ /dev/null @@ -1,9 +0,0 @@ -@charset "UTF-8";@import url(https://fonts.googleapis.com/css2?family=Rubik&display=swap);.g-root{--g-font-family-sans:"Inter","Helvetica Neue","Helvetica","Arial",sans-serif;--g-font-family-monospace:"Menlo","Monaco","Consolas","Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New","Courier",monospace;--g-text-body-font-family:var(--g-font-family-sans);--g-text-caption-font-family:var(--g-font-family-sans);--g-text-header-font-family:var(--g-font-family-sans);--g-text-subheader-font-family:var(--g-font-family-sans);--g-text-display-font-family:var(--g-font-family-sans);--g-text-code-font-family:var(--g-font-family-monospace);--g-text-body-font-weight:400;--g-text-caption-font-weight:400;--g-text-header-font-weight:600;--g-text-display-font-weight:600;--g-text-code-font-weight:400;--g-text-accent-font-weight:600;--g-text-body-1-font-size:13px;--g-text-body-1-line-height:18px;--g-text-body-2-font-size:15px;--g-text-body-2-line-height:20px;--g-text-body-3-font-size:17px;--g-text-body-3-line-height:24px;--g-text-body-short-font-size:13px;--g-text-body-short-line-height:16px;--g-text-caption-1-font-size:9px;--g-text-caption-1-line-height:12px;--g-text-caption-2-font-size:11px;--g-text-caption-2-line-height:16px;--g-text-header-1-font-size:20px;--g-text-header-1-line-height:24px;--g-text-header-2-font-size:24px;--g-text-header-2-line-height:28px;--g-text-subheader-1-font-size:13px;--g-text-subheader-1-line-height:18px;--g-text-subheader-2-font-size:15px;--g-text-subheader-2-line-height:20px;--g-text-subheader-3-font-size:17px;--g-text-subheader-3-line-height:24px;--g-text-display-1-font-size:28px;--g-text-display-1-line-height:36px;--g-text-display-2-font-size:32px;--g-text-display-2-line-height:40px;--g-text-display-3-font-size:40px;--g-text-display-3-line-height:48px;--g-text-display-4-font-size:48px;--g-text-display-4-line-height:52px;--g-text-code-1-font-size:12px;--g-text-code-1-line-height:18px;--g-text-code-2-font-size:14px;--g-text-code-2-line-height:20px;--g-text-code-3-font-size:16px;--g-text-code-3-line-height:24px;--g-text-code-inline-1-font-size:12px;--g-text-code-inline-1-line-height:14px;--g-text-code-inline-2-font-size:14px;--g-text-code-inline-2-line-height:16px;--g-text-code-inline-3-font-size:16px;--g-text-code-inline-3-line-height:20px;--g-spacing-base:4px;--g-spacing-0:calc(var(--g-spacing-base)*0);--g-spacing-half:calc(var(--g-spacing-base)*0.5);--g-spacing-1:var(--g-spacing-base);--g-spacing-2:calc(var(--g-spacing-base)*2);--g-spacing-3:calc(var(--g-spacing-base)*3);--g-spacing-4:calc(var(--g-spacing-base)*4);--g-spacing-5:calc(var(--g-spacing-base)*5);--g-spacing-6:calc(var(--g-spacing-base)*6);--g-spacing-7:calc(var(--g-spacing-base)*7);--g-spacing-8:calc(var(--g-spacing-base)*8);--g-spacing-9:calc(var(--g-spacing-base)*9);--g-spacing-10:calc(var(--g-spacing-base)*10);--g-scrollbar-width:12px;--g-border-radius-xs:3px;--g-border-radius-s:5px;--g-border-radius-m:6px;--g-border-radius-l:8px;--g-border-radius-xl:10px;--g-focus-border-radius:2px;background:var(--g-color-base-background);color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-root[dir=ltr],body.g-root{--g-flow-direction:1;--g-flow-is-ltr:1;--g-flow-is-rtl:0}.g-root[dir=rtl]{--g-flow-direction:-1;--g-flow-is-ltr:0;--g-flow-is-rtl:1}.g-root_theme_light{--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#ebf5fe;--g-color-private-blue-100-solid:#e1effd;--g-color-private-blue-150-solid:#d7eafc;--g-color-private-blue-200-solid:#c3e0fb;--g-color-private-blue-250-solid:#afd5f9;--g-color-private-blue-300-solid:#9bcbf8;--g-color-private-blue-350-solid:#86c1f7;--g-color-private-blue-400-solid:#72b6f5;--g-color-private-blue-450-solid:#5eacf4;--g-color-private-blue-500-solid:#4aa1f2;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#348bdc;--g-color-private-blue-650-solid:#327fc8;--g-color-private-blue-700-solid:#3072b3;--g-color-private-blue-750-solid:#2e669e;--g-color-private-blue-800-solid:#2c5a8a;--g-color-private-blue-850-solid:#2a4e75;--g-color-private-blue-900-solid:#284260;--g-color-private-blue-950-solid:#26354b;--g-color-private-blue-1000-solid:#252f41;--g-color-private-green-50:#32ba761a;--g-color-private-green-100:#32ba7626;--g-color-private-green-150:#32ba7633;--g-color-private-green-200:#32ba764d;--g-color-private-green-250:#32ba7666;--g-color-private-green-300:#32ba7680;--g-color-private-green-350:#32ba7699;--g-color-private-green-400:#32ba76b3;--g-color-private-green-450:#32ba76cc;--g-color-private-green-500:#32ba76e6;--g-color-private-green-50-solid:#ebf8f1;--g-color-private-green-100-solid:#e0f5ea;--g-color-private-green-150-solid:#d6f1e4;--g-color-private-green-200-solid:#c2ead6;--g-color-private-green-250-solid:#ade3c8;--g-color-private-green-300-solid:#9db;--g-color-private-green-350-solid:#84d6ad;--g-color-private-green-400-solid:#70cf9f;--g-color-private-green-450-solid:#5bc891;--g-color-private-green-500-solid:#47c184;--g-color-private-green-550-solid:#32ba76;--g-color-private-green-600-solid:#30aa6e;--g-color-private-green-650-solid:#2f9b65;--g-color-private-green-700-solid:#2d8b5d;--g-color-private-green-750-solid:#2c7b54;--g-color-private-green-800-solid:#2a6c4c;--g-color-private-green-850-solid:#285c44;--g-color-private-green-900-solid:#274c3b;--g-color-private-green-950-solid:#253c33;--g-color-private-green-1000-solid:#24352f;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#fff9ef;--g-color-private-yellow-100-solid:#fff5e7;--g-color-private-yellow-150-solid:#fff2de;--g-color-private-yellow-200-solid:#ffecce;--g-color-private-yellow-250-solid:#ffe5be;--g-color-private-yellow-300-solid:#ffdfae;--g-color-private-yellow-350-solid:#ffd89d;--g-color-private-yellow-400-solid:#ffd28d;--g-color-private-yellow-450-solid:#ffcb7d;--g-color-private-yellow-500-solid:#ffc56c;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#e9ae56;--g-color-private-yellow-650-solid:#d39e50;--g-color-private-yellow-700-solid:#bd8e4b;--g-color-private-yellow-750-solid:#a77e45;--g-color-private-yellow-800-solid:#916e3f;--g-color-private-yellow-850-solid:#7a5d39;--g-color-private-yellow-900-solid:#644d33;--g-color-private-yellow-950-solid:#4e3d2e;--g-color-private-yellow-1000-solid:#43352b;--g-color-private-orange-400-solid:#ffa04d;--g-color-private-orange-500-solid:#ff8519;--g-color-private-orange-600-solid:#e96e03;--g-color-private-orange-650-solid:#d36507;--g-color-private-orange-700-solid:#bd5c0a;--g-color-private-orange-750-solid:#a7530e;--g-color-private-orange-800-solid:#914a11;--g-color-private-orange-850-solid:#7a4114;--g-color-private-orange-900-solid:#643818;--g-color-private-orange-950-solid:#4e2f1b;--g-color-private-orange-1000-solid:#432b1d;--g-color-private-red-50:#ff003d1a;--g-color-private-red-100:#ff003d26;--g-color-private-red-150:#ff003d33;--g-color-private-red-200:#ff003d4d;--g-color-private-red-250:#ff003d66;--g-color-private-red-300:#ff003d80;--g-color-private-red-350:#ff003d99;--g-color-private-red-400:#ff003db3;--g-color-private-red-450:#ff003dcc;--g-color-private-red-500:#ff003de6;--g-color-private-red-50-solid:#ffe6ec;--g-color-private-red-100-solid:#ffd9e2;--g-color-private-red-150-solid:#ffccd8;--g-color-private-red-200-solid:#ffb3c5;--g-color-private-red-250-solid:#ff99b1;--g-color-private-red-300-solid:#ff809e;--g-color-private-red-350-solid:#ff668b;--g-color-private-red-400-solid:#ff4d77;--g-color-private-red-450-solid:#ff3364;--g-color-private-red-500-solid:#ff1950;--g-color-private-red-550-solid:#ff003d;--g-color-private-red-600-solid:#e9033a;--g-color-private-red-650-solid:#d30638;--g-color-private-red-700-solid:#bd0935;--g-color-private-red-750-solid:#a70c32;--g-color-private-red-800-solid:#910f30;--g-color-private-red-850-solid:#7a112d;--g-color-private-red-900-solid:#64142a;--g-color-private-red-950-solid:#4e1727;--g-color-private-red-1000-solid:#431926;--g-color-private-purple-600-solid:#844dbb;--g-color-private-purple-650-solid:#7947aa;--g-color-private-purple-700-solid:#6e4299;--g-color-private-purple-750-solid:#633d88;--g-color-private-purple-800-solid:#593877;--g-color-private-purple-850-solid:#4e3266;--g-color-private-purple-900-solid:#432d55;--g-color-private-purple-950-solid:#382844;--g-color-private-purple-1000-solid:#32253c;--g-color-private-cool-grey-300-solid:#b5c2cc;--g-color-private-cool-grey-600-solid:#647a8d;--g-color-private-cool-grey-650-solid:#5c6f81;--g-color-private-cool-grey-700-solid:#556575;--g-color-private-cool-grey-750-solid:#4e5b69;--g-color-private-cool-grey-800-solid:#47515e;--g-color-private-cool-grey-850-solid:#3f4652;--g-color-private-cool-grey-900-solid:#383c46;--g-color-private-cool-grey-950-solid:#31323a;--g-color-private-cool-grey-1000-solid:#2d2c34;--g-color-text-primary:var(--g-color-text-dark-primary);--g-color-text-complementary:var(--g-color-text-dark-complementary);--g-color-text-secondary:var(--g-color-text-dark-secondary);--g-color-text-hint:var(--g-color-text-dark-hint);--g-color-text-info:var(--g-color-private-blue-600-solid);--g-color-text-positive:var(--g-color-private-green-600-solid);--g-color-text-warning:var(--g-color-private-yellow-700-solid);--g-color-text-danger:var(--g-color-private-red-600-solid);--g-color-text-utility:var(--g-color-private-purple-600-solid);--g-color-text-misc:var(--g-color-private-cool-grey-600-solid);--g-color-text-info-heavy:var(--g-color-private-blue-700-solid);--g-color-text-positive-heavy:var(--g-color-private-green-700-solid);--g-color-text-warning-heavy:var(--g-color-private-orange-700-solid);--g-color-text-danger-heavy:var(--g-color-private-red-700-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-text-brand:var(--g-color-private-yellow-700-solid);--g-color-text-brand-heavy:var(--g-color-private-orange-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-650-solid);--g-color-text-link-hover:var(--g-color-private-orange-650-solid);--g-color-text-link-visited:var(--g-color-private-purple-550-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-800-solid);--g-color-text-dark-primary:var(--g-color-private-black-850);--g-color-text-dark-complementary:var(--g-color-private-black-700);--g-color-text-dark-secondary:var(--g-color-private-black-500);--g-color-text-dark-hint:var(--g-color-private-black-300);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-850);--g-color-text-light-secondary:var(--g-color-private-white-700);--g-color-text-light-hint:var(--g-color-private-white-500);--g-color-text-inverted-primary:var(--g-color-text-light-primary);--g-color-text-inverted-complementary:var(--g-color-text-light-complementary);--g-color-text-inverted-secondary:var(--g-color-text-light-secondary);--g-color-text-inverted-hint:var(--g-color-text-light-hint);--g-color-base-background:var(--g-color-private-white-1000-solid);--g-color-base-generic:var(--g-color-private-black-50);--g-color-base-generic-hover:var(--g-color-private-black-150);--g-color-base-generic-medium:var(--g-color-private-black-150);--g-color-base-generic-medium-hover:var(--g-color-private-black-250);--g-color-base-generic-accent:var(--g-color-private-black-150);--g-color-base-generic-accent-disabled:var(--g-color-private-black-70);--g-color-base-generic-ultralight:var(--g-color-private-black-20-solid);--g-color-base-simple-hover:var(--g-color-private-black-50);--g-color-base-simple-hover-solid:var(--g-color-private-black-50-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-600-solid);--g-color-base-selection:var(--g-color-private-yellow-200);--g-color-base-selection-hover:var(--g-color-private-yellow-300);--g-color-base-info-light:var(--g-color-private-blue-100);--g-color-base-info-light-hover:var(--g-color-private-blue-200);--g-color-base-info-medium:var(--g-color-private-blue-200);--g-color-base-info-medium-hover:var(--g-color-private-blue-300);--g-color-base-info-heavy:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-700-solid);--g-color-base-positive-light:var(--g-color-private-green-100);--g-color-base-positive-light-hover:var(--g-color-private-green-200);--g-color-base-positive-medium:var(--g-color-private-green-200);--g-color-base-positive-medium-hover:var(--g-color-private-green-300);--g-color-base-positive-heavy:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-700-solid);--g-color-base-warning-light:var(--g-color-private-yellow-200);--g-color-base-warning-light-hover:var(--g-color-private-yellow-300);--g-color-base-warning-medium:var(--g-color-private-yellow-400);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-500);--g-color-base-warning-heavy:var(--g-color-private-yellow-550-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-650-solid);--g-color-base-danger-light:var(--g-color-private-red-100);--g-color-base-danger-light-hover:var(--g-color-private-red-200);--g-color-base-danger-medium:var(--g-color-private-red-200);--g-color-base-danger-medium-hover:var(--g-color-private-red-300);--g-color-base-danger-heavy:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-700-solid);--g-color-base-utility-light:var(--g-color-private-purple-100);--g-color-base-utility-light-hover:var(--g-color-private-purple-200);--g-color-base-utility-medium:var(--g-color-private-purple-200);--g-color-base-utility-medium-hover:var(--g-color-private-purple-300);--g-color-base-utility-heavy:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-700-solid);--g-color-base-neutral-light:var(--g-color-private-black-50);--g-color-base-neutral-light-hover:var(--g-color-private-black-100);--g-color-base-neutral-medium:var(--g-color-private-black-200);--g-color-base-neutral-medium-hover:var(--g-color-private-black-250);--g-color-base-neutral-heavy:var(--g-color-private-black-450);--g-color-base-neutral-heavy-hover:var(--g-color-private-black-550);--g-color-base-misc-light:var(--g-color-private-cool-grey-100);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-300);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-700-solid);--g-color-base-light:var(--g-color-private-white-1000-solid);--g-color-base-light-hover:var(--g-color-private-white-850);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-1000-solid);--g-color-base-float-hover:var(--g-color-private-black-50-solid);--g-color-base-float-medium:var(--g-color-private-black-550-solid);--g-color-base-float-heavy:var(--g-color-private-black-700-solid);--g-color-base-float-accent:var(--g-color-private-white-1000-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-850);--g-color-base-float-announcement:var(--g-color-private-cool-grey-50-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-black-100);--g-color-line-generic-hover:var(--g-color-private-black-150);--g-color-line-generic-active:var(--g-color-private-black-300);--g-color-line-generic-accent:var(--g-color-private-black-150);--g-color-line-generic-accent-hover:var(--g-color-private-black-300);--g-color-line-generic-solid:var(--g-color-private-black-100-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-600-solid);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-250);--g-color-sfx-shadow:var(--g-color-private-black-150);--g-color-sfx-shadow-heavy:var(--g-color-private-black-500);--g-color-sfx-shadow-light:var(--g-color-private-black-50);--g-color-sfx-fade:var(--g-color-private-white-300);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-black-100);--g-color-scroll-handle-hover:var(--g-color-private-black-150);--g-color-scroll-corner:var(--g-color-private-black-100);--g-color-infographics-axis:var(--g-color-private-black-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-950)}.g-root_theme_dark{--g-color-private-white-20-solid:#262226;--g-color-private-white-50-solid:#2d282d;--g-color-private-white-70-solid:#312d31;--g-color-private-white-100-solid:#383438;--g-color-private-white-150-solid:#433f43;--g-color-private-white-200-solid:#4e4a4e;--g-color-private-white-250-solid:#595559;--g-color-private-white-300-solid:#646164;--g-color-private-white-350-solid:#6f6c6f;--g-color-private-white-400-solid:#7a777a;--g-color-private-white-450-solid:#858385;--g-color-private-white-500-solid:#908e90;--g-color-private-white-550-solid:#9c999c;--g-color-private-white-600-solid:#a7a5a7;--g-color-private-white-650-solid:#b2b0b2;--g-color-private-white-700-solid:#bdbbbd;--g-color-private-white-750-solid:#c8c6c8;--g-color-private-white-800-solid:#d3d2d3;--g-color-private-white-850-solid:#deddde;--g-color-private-white-900-solid:#e9e8e9;--g-color-private-white-950-solid:#f4f4f4;--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#242937;--g-color-private-blue-100-solid:#252f41;--g-color-private-blue-150-solid:#26354b;--g-color-private-blue-200-solid:#284260;--g-color-private-blue-250-solid:#2a4e75;--g-color-private-blue-300-solid:#2c5a8a;--g-color-private-blue-350-solid:#2e669e;--g-color-private-blue-400-solid:#3072b3;--g-color-private-blue-450-solid:#327fc8;--g-color-private-blue-500-solid:#348bdc;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#4aa1f2;--g-color-private-blue-650-solid:#5eacf4;--g-color-private-blue-700-solid:#72b6f5;--g-color-private-blue-750-solid:#86c1f7;--g-color-private-blue-800-solid:#9bcbf8;--g-color-private-blue-850-solid:#afd5f9;--g-color-private-blue-900-solid:#c3e0fb;--g-color-private-blue-950-solid:#d7eafc;--g-color-private-blue-1000-solid:#e1effd;--g-color-private-green-50:#4db09b1a;--g-color-private-green-100:#4db09b26;--g-color-private-green-150:#4db09b33;--g-color-private-green-200:#4db09b4d;--g-color-private-green-250:#4db09b66;--g-color-private-green-300:#4db09b80;--g-color-private-green-350:#4db09b99;--g-color-private-green-400:#4db09bb3;--g-color-private-green-450:#4db09bcc;--g-color-private-green-500:#4db09be6;--g-color-private-green-50-solid:#262c2e;--g-color-private-green-100-solid:#283334;--g-color-private-green-150-solid:#2b3a3a;--g-color-private-green-200-solid:#2f4946;--g-color-private-green-250-solid:#335852;--g-color-private-green-300-solid:#38675f;--g-color-private-green-350-solid:#3c756b;--g-color-private-green-400-solid:#408477;--g-color-private-green-450-solid:#449383;--g-color-private-green-500-solid:#49a18f;--g-color-private-green-550-solid:#4db09b;--g-color-private-green-600-solid:#5fb8a5;--g-color-private-green-650-solid:#71c0af;--g-color-private-green-700-solid:#82c8b9;--g-color-private-green-750-solid:#94d0c3;--g-color-private-green-800-solid:#a6d8cd;--g-color-private-green-850-solid:#b8dfd7;--g-color-private-green-900-solid:#cae7e1;--g-color-private-green-950-solid:#dbefeb;--g-color-private-green-1000-solid:#e4f3f0;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#382d28;--g-color-private-yellow-100-solid:#43352b;--g-color-private-yellow-150-solid:#4e3d2e;--g-color-private-yellow-200-solid:#644d33;--g-color-private-yellow-250-solid:#7a5d39;--g-color-private-yellow-300-solid:#916e3f;--g-color-private-yellow-350-solid:#a77e45;--g-color-private-yellow-400-solid:#bd8e4b;--g-color-private-yellow-450-solid:#d39e50;--g-color-private-yellow-500-solid:#e9ae56;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#ffc56c;--g-color-private-yellow-650-solid:#ffcb7d;--g-color-private-yellow-700-solid:#ffd28d;--g-color-private-yellow-750-solid:#ffd89d;--g-color-private-yellow-800-solid:#ffdfae;--g-color-private-yellow-850-solid:#ffe5be;--g-color-private-yellow-900-solid:#ffecce;--g-color-private-yellow-950-solid:#fff2de;--g-color-private-yellow-1000-solid:#fff5e7;--g-color-private-orange-50-solid:#332420;--g-color-private-orange-100-solid:#3b281f;--g-color-private-orange-150-solid:#432b1e;--g-color-private-orange-200-solid:#54321b;--g-color-private-orange-250-solid:#643919;--g-color-private-orange-300-solid:#754017;--g-color-private-orange-350-solid:#864715;--g-color-private-orange-400-solid:#964e13;--g-color-private-orange-450-solid:#a75510;--g-color-private-orange-500-solid:#b75c0e;--g-color-private-orange-700-solid:#d99255;--g-color-private-orange-800-solid:#e4b186;--g-color-private-red-50:#e5325d1a;--g-color-private-red-100:#e5325d26;--g-color-private-red-150:#e5325d33;--g-color-private-red-200:#e5325d4d;--g-color-private-red-250:#e5325d66;--g-color-private-red-300:#e5325d80;--g-color-private-red-350:#e5325d99;--g-color-private-red-400:#e5325db3;--g-color-private-red-450:#e5325dcc;--g-color-private-red-500:#e5325de6;--g-color-private-red-50-solid:#361f28;--g-color-private-red-100-solid:#3f202b;--g-color-private-red-150-solid:#49212e;--g-color-private-red-200-solid:#5d2334;--g-color-private-red-250-solid:#70253a;--g-color-private-red-300-solid:#842840;--g-color-private-red-350-solid:#972a45;--g-color-private-red-400-solid:#ab2c4b;--g-color-private-red-450-solid:#be2e51;--g-color-private-red-500-solid:#d23057;--g-color-private-red-550-solid:#e5325d;--g-color-private-red-600-solid:#e8476d;--g-color-private-red-650-solid:#ea5b7d;--g-color-private-red-700-solid:#ed708e;--g-color-private-red-750-solid:#ef849e;--g-color-private-red-800-solid:#f299ae;--g-color-private-red-850-solid:#f5adbe;--g-color-private-red-900-solid:#f7c2ce;--g-color-private-red-950-solid:#fad6df;--g-color-private-red-1000-solid:#fbe0e7;--g-color-private-purple-50-solid:#2d2233;--g-color-private-purple-100-solid:#32253c;--g-color-private-purple-150-solid:#382844;--g-color-private-purple-200-solid:#432d55;--g-color-private-purple-250-solid:#4e3266;--g-color-private-purple-300-solid:#593877;--g-color-private-purple-350-solid:#633d88;--g-color-private-purple-400-solid:#6e4299;--g-color-private-purple-450-solid:#7947aa;--g-color-private-purple-500-solid:#844dbb;--g-color-private-cool-grey-50-solid:#28272e;--g-color-private-cool-grey-100-solid:#2b2c34;--g-color-private-cool-grey-150-solid:#2e313a;--g-color-private-cool-grey-200-solid:#353b47;--g-color-private-cool-grey-250-solid:#3b4553;--g-color-private-cool-grey-300-solid:#414f5f;--g-color-private-cool-grey-350-solid:#47586b;--g-color-private-cool-grey-400-solid:#4d6277;--g-color-private-cool-grey-450-solid:#546c84;--g-color-private-cool-grey-500-solid:#5a7690;--g-color-private-cool-grey-750-solid:#a0b3c4;--g-color-private-cool-grey-800-solid:#b0c0ce;--g-color-text-primary:var(--g-color-text-light-primary);--g-color-text-complementary:var(--g-color-text-light-complementary);--g-color-text-secondary:var(--g-color-text-light-secondary);--g-color-text-hint:var(--g-color-text-light-hint);--g-color-text-info:var(--g-color-private-blue-550-solid);--g-color-text-positive:var(--g-color-private-green-550-solid);--g-color-text-warning:var(--g-color-private-yellow-550-solid);--g-color-text-danger:var(--g-color-private-red-550-solid);--g-color-text-utility:var(--g-color-private-purple-600-solid);--g-color-text-misc:var(--g-color-private-cool-grey-600-solid);--g-color-text-info-heavy:var(--g-color-private-blue-600-solid);--g-color-text-positive-heavy:var(--g-color-private-green-600-solid);--g-color-text-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-text-danger-heavy:var(--g-color-private-red-600-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-650-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-650-solid);--g-color-text-brand:var(--g-color-private-yellow-600-solid);--g-color-text-brand-heavy:var(--g-color-private-yellow-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-550-solid);--g-color-text-link-hover:var(--g-color-private-orange-550-solid);--g-color-text-link-visited:var(--g-color-private-purple-600-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-750-solid);--g-color-text-dark-primary:var(--g-color-private-black-900);--g-color-text-dark-complementary:var(--g-color-private-black-700);--g-color-text-dark-secondary:var(--g-color-private-black-500);--g-color-text-dark-hint:var(--g-color-private-black-300);--g-color-text-light-primary:var(--g-color-private-white-850);--g-color-text-light-complementary:var(--g-color-private-white-700);--g-color-text-light-secondary:var(--g-color-private-white-500);--g-color-text-light-hint:var(--g-color-private-white-300);--g-color-text-inverted-primary:var(--g-color-text-dark-primary);--g-color-text-inverted-complementary:var(--g-color-text-dark-complementary);--g-color-text-inverted-secondary:var(--g-color-text-dark-secondary);--g-color-text-inverted-hint:var(--g-color-text-dark-hint);--g-color-base-background:#221d22;--g-color-base-generic:var(--g-color-private-white-100);--g-color-base-generic-hover:var(--g-color-private-white-150);--g-color-base-generic-medium:var(--g-color-private-white-250);--g-color-base-generic-medium-hover:var(--g-color-private-white-300);--g-color-base-generic-accent:var(--g-color-private-white-150);--g-color-base-generic-accent-disabled:var(--g-color-private-white-70);--g-color-base-generic-ultralight:var(--g-color-private-white-20-solid);--g-color-base-simple-hover:var(--g-color-private-white-100);--g-color-base-simple-hover-solid:var(--g-color-private-white-100-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-650-solid);--g-color-base-selection:var(--g-color-private-yellow-150);--g-color-base-selection-hover:var(--g-color-private-yellow-200);--g-color-base-info-light:var(--g-color-private-blue-150);--g-color-base-info-light-hover:var(--g-color-private-blue-200);--g-color-base-info-medium:var(--g-color-private-blue-300);--g-color-base-info-medium-hover:var(--g-color-private-blue-400);--g-color-base-info-heavy:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-700-solid);--g-color-base-positive-light:var(--g-color-private-green-150);--g-color-base-positive-light-hover:var(--g-color-private-green-200);--g-color-base-positive-medium:var(--g-color-private-green-300);--g-color-base-positive-medium-hover:var(--g-color-private-green-400);--g-color-base-positive-heavy:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-700-solid);--g-color-base-warning-light:var(--g-color-private-yellow-150);--g-color-base-warning-light-hover:var(--g-color-private-yellow-200);--g-color-base-warning-medium:var(--g-color-private-yellow-300);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-400);--g-color-base-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-700-solid);--g-color-base-danger-light:var(--g-color-private-red-150);--g-color-base-danger-light-hover:var(--g-color-private-red-200);--g-color-base-danger-medium:var(--g-color-private-red-300);--g-color-base-danger-medium-hover:var(--g-color-private-red-400);--g-color-base-danger-heavy:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-700-solid);--g-color-base-utility-light:var(--g-color-private-purple-150);--g-color-base-utility-light-hover:var(--g-color-private-purple-250);--g-color-base-utility-medium:var(--g-color-private-purple-300);--g-color-base-utility-medium-hover:var(--g-color-private-purple-400);--g-color-base-utility-heavy:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-700-solid);--g-color-base-neutral-light:var(--g-color-private-white-100);--g-color-base-neutral-light-hover:var(--g-color-private-white-150);--g-color-base-neutral-medium:var(--g-color-private-white-250);--g-color-base-neutral-medium-hover:var(--g-color-private-white-350);--g-color-base-neutral-heavy:var(--g-color-private-white-550);--g-color-base-neutral-heavy-hover:var(--g-color-private-white-650);--g-color-base-misc-light:var(--g-color-private-cool-grey-150);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-200);--g-color-base-misc-medium:var(--g-color-private-cool-grey-300);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-400);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-700-solid);--g-color-base-light:var(--g-color-private-white-850);--g-color-base-light-hover:var(--g-color-private-white-700);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-100-solid);--g-color-base-float-hover:var(--g-color-private-white-150-solid);--g-color-base-float-medium:var(--g-color-private-white-150-solid);--g-color-base-float-heavy:var(--g-color-private-white-250-solid);--g-color-base-float-accent:var(--g-color-private-white-150-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-200-solid);--g-color-base-float-announcement:var(--g-color-private-white-150-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-white-150);--g-color-line-generic-hover:var(--g-color-private-white-250);--g-color-line-generic-active:var(--g-color-private-white-300);--g-color-line-generic-accent:var(--g-color-private-white-150);--g-color-line-generic-accent-hover:var(--g-color-private-white-300);--g-color-line-generic-solid:var(--g-color-private-white-150-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-450);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-600);--g-color-sfx-shadow:var(--g-color-private-black-200);--g-color-sfx-shadow-heavy:var(--g-color-private-black-500);--g-color-sfx-shadow-light:var(--g-color-private-black-200);--g-color-sfx-fade:var(--g-color-private-white-250);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-white-150);--g-color-scroll-handle-hover:var(--g-color-private-white-250);--g-color-scroll-corner:var(--g-color-private-white-150);--g-color-infographics-axis:var(--g-color-private-white-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-opaque-150)}.g-root_theme_light-hc{--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#ebf5fe;--g-color-private-blue-100-solid:#e1effd;--g-color-private-blue-150-solid:#d7eafc;--g-color-private-blue-200-solid:#c3e0fb;--g-color-private-blue-250-solid:#afd5f9;--g-color-private-blue-300-solid:#9bcbf8;--g-color-private-blue-350-solid:#86c1f7;--g-color-private-blue-400-solid:#72b6f5;--g-color-private-blue-450-solid:#5eacf4;--g-color-private-blue-500-solid:#4aa1f2;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#328adb;--g-color-private-blue-650-solid:#2f7cc4;--g-color-private-blue-700-solid:#2b6fae;--g-color-private-blue-750-solid:#286198;--g-color-private-blue-800-solid:#245482;--g-color-private-blue-850-solid:#20476b;--g-color-private-blue-900-solid:#1d3955;--g-color-private-blue-950-solid:#192c3f;--g-color-private-blue-1000-solid:#172533;--g-color-private-green-50:#32ba761a;--g-color-private-green-100:#32ba7626;--g-color-private-green-150:#32ba7633;--g-color-private-green-200:#32ba764d;--g-color-private-green-250:#32ba7666;--g-color-private-green-300:#32ba7680;--g-color-private-green-350:#32ba7699;--g-color-private-green-400:#32ba76b3;--g-color-private-green-450:#32ba76cc;--g-color-private-green-500:#32ba76e6;--g-color-private-green-50-solid:#ebf8f1;--g-color-private-green-100-solid:#e0f5ea;--g-color-private-green-150-solid:#d6f1e4;--g-color-private-green-200-solid:#c2ead6;--g-color-private-green-250-solid:#ade3c8;--g-color-private-green-300-solid:#9db;--g-color-private-green-350-solid:#84d6ad;--g-color-private-green-400-solid:#70cf9f;--g-color-private-green-450-solid:#5bc891;--g-color-private-green-500-solid:#47c184;--g-color-private-green-550-solid:#32ba76;--g-color-private-green-600-solid:#2fa96c;--g-color-private-green-650-solid:#2c9862;--g-color-private-green-700-solid:#288758;--g-color-private-green-750-solid:#25764e;--g-color-private-green-800-solid:#264;--g-color-private-green-850-solid:#1f553a;--g-color-private-green-900-solid:#1c4430;--g-color-private-green-950-solid:#183326;--g-color-private-green-1000-solid:#172a21;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#fff9ef;--g-color-private-yellow-100-solid:#fff5e7;--g-color-private-yellow-150-solid:#fff2de;--g-color-private-yellow-200-solid:#ffecce;--g-color-private-yellow-250-solid:#ffe5be;--g-color-private-yellow-300-solid:#ffdfae;--g-color-private-yellow-350-solid:#ffd89d;--g-color-private-yellow-400-solid:#ffd28d;--g-color-private-yellow-450-solid:#ffcb7d;--g-color-private-yellow-500-solid:#ffc56c;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#e7ad55;--g-color-private-yellow-650-solid:#d09b4d;--g-color-private-yellow-700-solid:#b88a46;--g-color-private-yellow-750-solid:#a0793e;--g-color-private-yellow-800-solid:#896837;--g-color-private-yellow-850-solid:#715630;--g-color-private-yellow-900-solid:#594528;--g-color-private-yellow-950-solid:#413421;--g-color-private-yellow-1000-solid:#362b1d;--g-color-private-orange-400-solid:#ffa04d;--g-color-private-orange-500-solid:#ff8519;--g-color-private-orange-600-solid:#e76d02;--g-color-private-orange-650-solid:#d06304;--g-color-private-orange-700-solid:#b85805;--g-color-private-orange-750-solid:#a04e07;--g-color-private-orange-800-solid:#894409;--g-color-private-orange-850-solid:#713a0b;--g-color-private-orange-900-solid:#59300d;--g-color-private-orange-950-solid:#41250e;--g-color-private-orange-1000-solid:#36200f;--g-color-private-red-50:#ff003d1a;--g-color-private-red-100:#ff003d26;--g-color-private-red-150:#ff003d33;--g-color-private-red-200:#ff003d4d;--g-color-private-red-250:#ff003d66;--g-color-private-red-300:#ff003d80;--g-color-private-red-350:#ff003d99;--g-color-private-red-400:#ff003db3;--g-color-private-red-450:#ff003dcc;--g-color-private-red-500:#ff003de6;--g-color-private-red-50-solid:#ffe6ec;--g-color-private-red-100-solid:#ffd9e2;--g-color-private-red-150-solid:#ffccd8;--g-color-private-red-200-solid:#ffb3c5;--g-color-private-red-250-solid:#ff99b1;--g-color-private-red-300-solid:#ff809e;--g-color-private-red-350-solid:#ff668b;--g-color-private-red-400-solid:#ff4d77;--g-color-private-red-450-solid:#ff3364;--g-color-private-red-500-solid:#ff1950;--g-color-private-red-550-solid:#ff003d;--g-color-private-red-600-solid:#e70239;--g-color-private-red-650-solid:#d00334;--g-color-private-red-700-solid:#b80530;--g-color-private-red-750-solid:#a0072c;--g-color-private-red-800-solid:#890928;--g-color-private-red-850-solid:#710a23;--g-color-private-red-900-solid:#590c1f;--g-color-private-red-950-solid:#410e1b;--g-color-private-red-1000-solid:#360e18;--g-color-private-purple-600-solid:#834cb9;--g-color-private-purple-650-solid:#7645a7;--g-color-private-purple-700-solid:#6a3f94;--g-color-private-purple-750-solid:#5d3882;--g-color-private-purple-800-solid:#51326f;--g-color-private-purple-850-solid:#442b5c;--g-color-private-purple-900-solid:#38254a;--g-color-private-purple-950-solid:#2b1e37;--g-color-private-purple-1000-solid:#251b2e;--g-color-private-cool-grey-300-solid:#b5c2cc;--g-color-private-cool-grey-600-solid:#62798c;--g-color-private-cool-grey-650-solid:#596d7e;--g-color-private-cool-grey-700-solid:#506271;--g-color-private-cool-grey-750-solid:#475663;--g-color-private-cool-grey-800-solid:#3f4b56;--g-color-private-cool-grey-850-solid:#363f48;--g-color-private-cool-grey-900-solid:#2d343b;--g-color-private-cool-grey-950-solid:#24282d;--g-color-private-cool-grey-1000-solid:#1f2226;--g-color-text-primary:var(--g-color-text-dark-primary);--g-color-text-complementary:var(--g-color-text-dark-complementary);--g-color-text-secondary:var(--g-color-text-dark-secondary);--g-color-text-hint:var(--g-color-text-dark-hint);--g-color-text-info:var(--g-color-private-blue-650-solid);--g-color-text-positive:var(--g-color-private-green-650-solid);--g-color-text-warning:var(--g-color-private-yellow-700-solid);--g-color-text-danger:var(--g-color-private-red-650-solid);--g-color-text-utility:var(--g-color-private-purple-650-solid);--g-color-text-misc:var(--g-color-private-cool-grey-650-solid);--g-color-text-info-heavy:var(--g-color-private-blue-900-solid);--g-color-text-positive-heavy:var(--g-color-private-green-900-solid);--g-color-text-warning-heavy:var(--g-color-private-orange-900-solid);--g-color-text-danger-heavy:var(--g-color-private-red-900-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-900-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-900-solid);--g-color-text-brand:var(--g-color-private-yellow-700-solid);--g-color-text-brand-heavy:var(--g-color-private-orange-900-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-700-solid);--g-color-text-link-hover:var(--g-color-private-orange-700-solid);--g-color-text-link-visited:var(--g-color-private-purple-600-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-850-solid);--g-color-text-dark-primary:var(--g-color-private-black-1000-solid);--g-color-text-dark-complementary:var(--g-color-private-black-850);--g-color-text-dark-secondary:var(--g-color-private-black-700);--g-color-text-dark-hint:var(--g-color-private-black-500);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-850);--g-color-text-light-secondary:var(--g-color-private-white-700);--g-color-text-light-hint:var(--g-color-private-white-500);--g-color-text-inverted-primary:var(--g-color-text-light-primary);--g-color-text-inverted-complementary:var(--g-color-text-light-complementary);--g-color-text-inverted-secondary:var(--g-color-text-light-secondary);--g-color-text-inverted-hint:var(--g-color-text-light-hint);--g-color-base-background:var(--g-color-private-white-1000-solid);--g-color-base-generic:var(--g-color-private-black-150);--g-color-base-generic-hover:var(--g-color-private-black-300);--g-color-base-generic-medium:var(--g-color-private-black-250);--g-color-base-generic-medium-hover:var(--g-color-private-black-350);--g-color-base-generic-accent:var(--g-color-private-black-250);--g-color-base-generic-accent-disabled:var(--g-color-private-black-150);--g-color-base-generic-ultralight:var(--g-color-private-black-50-solid);--g-color-base-simple-hover:var(--g-color-private-black-150);--g-color-base-simple-hover-solid:var(--g-color-private-black-150-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-650-solid);--g-color-base-selection:var(--g-color-private-yellow-300);--g-color-base-selection-hover:var(--g-color-private-yellow-400);--g-color-base-info-light:var(--g-color-private-blue-250);--g-color-base-info-light-hover:var(--g-color-private-blue-350);--g-color-base-info-medium:var(--g-color-private-blue-400);--g-color-base-info-medium-hover:var(--g-color-private-blue-500);--g-color-base-info-heavy:var(--g-color-private-blue-700-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-850-solid);--g-color-base-positive-light:var(--g-color-private-green-250);--g-color-base-positive-light-hover:var(--g-color-private-green-350);--g-color-base-positive-medium:var(--g-color-private-green-400);--g-color-base-positive-medium-hover:var(--g-color-private-green-500);--g-color-base-positive-heavy:var(--g-color-private-green-700-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-800-solid);--g-color-base-warning-light:var(--g-color-private-yellow-300);--g-color-base-warning-light-hover:var(--g-color-private-yellow-400);--g-color-base-warning-medium:var(--g-color-private-yellow-400);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-550-solid);--g-color-base-warning-heavy:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-700-solid);--g-color-base-danger-light:var(--g-color-private-red-250);--g-color-base-danger-light-hover:var(--g-color-private-red-350);--g-color-base-danger-medium:var(--g-color-private-red-400);--g-color-base-danger-medium-hover:var(--g-color-private-red-500);--g-color-base-danger-heavy:var(--g-color-private-red-700-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-800-solid);--g-color-base-utility-light:var(--g-color-private-purple-250);--g-color-base-utility-light-hover:var(--g-color-private-purple-350);--g-color-base-utility-medium:var(--g-color-private-purple-400);--g-color-base-utility-medium-hover:var(--g-color-private-purple-500);--g-color-base-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-800-solid);--g-color-base-neutral-light:var(--g-color-private-black-150);--g-color-base-neutral-light-hover:var(--g-color-private-black-250);--g-color-base-neutral-medium:var(--g-color-private-black-300);--g-color-base-neutral-medium-hover:var(--g-color-private-black-400);--g-color-base-neutral-heavy:var(--g-color-private-black-550);--g-color-base-neutral-heavy-hover:var(--g-color-private-black-650);--g-color-base-misc-light:var(--g-color-private-cool-grey-250);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-350);--g-color-base-misc-medium:var(--g-color-private-cool-grey-400);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-500);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-800-solid);--g-color-base-light:var(--g-color-private-white-1000-solid);--g-color-base-light-hover:var(--g-color-private-white-850);--g-color-base-light-simple-hover:var(--g-color-private-white-300);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-1000-solid);--g-color-base-float-hover:var(--g-color-private-black-150-solid);--g-color-base-float-medium:var(--g-color-private-black-550-solid);--g-color-base-float-heavy:var(--g-color-private-black-700-solid);--g-color-base-float-accent:var(--g-color-private-white-1000-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-850);--g-color-base-float-announcement:var(--g-color-private-cool-grey-150-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-black-200);--g-color-line-generic-hover:var(--g-color-private-black-400);--g-color-line-generic-active:var(--g-color-private-black-700);--g-color-line-generic-accent:var(--g-color-private-black-300);--g-color-line-generic-accent-hover:var(--g-color-private-black-700);--g-color-line-generic-solid:var(--g-color-private-black-200-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-450);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-450);--g-color-line-positive:var(--g-color-private-green-450);--g-color-line-warning:var(--g-color-private-yellow-600-solid);--g-color-line-danger:var(--g-color-private-red-450);--g-color-line-utility:var(--g-color-private-purple-450);--g-color-line-misc:var(--g-color-private-cool-grey-450);--g-color-sfx-veil:var(--g-color-private-black-450);--g-color-sfx-shadow:var(--g-color-private-black-300);--g-color-sfx-shadow-heavy:var(--g-color-private-black-600);--g-color-sfx-shadow-light:var(--g-color-private-black-100);--g-color-sfx-fade:var(--g-color-private-white-300);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-black-100);--g-color-scroll-handle-hover:var(--g-color-private-black-150);--g-color-scroll-corner:var(--g-color-private-black-100);--g-color-infographics-axis:var(--g-color-private-black-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-950)}.g-root_theme_dark-hc{--g-color-private-white-50-solid:#1e1d1e;--g-color-private-white-70-solid:#232223;--g-color-private-white-100-solid:#2a292a;--g-color-private-white-150-solid:#363536;--g-color-private-white-200-solid:#414141;--g-color-private-white-250-solid:#4d4d4d;--g-color-private-white-300-solid:#595859;--g-color-private-white-350-solid:#656465;--g-color-private-white-400-solid:#717071;--g-color-private-white-450-solid:#7d7c7d;--g-color-private-white-500-solid:#888;--g-color-private-white-550-solid:#949494;--g-color-private-white-600-solid:#a0a0a0;--g-color-private-white-650-solid:#acacac;--g-color-private-white-700-solid:#b8b8b8;--g-color-private-white-750-solid:#c4c3c4;--g-color-private-white-800-solid:#d0cfd0;--g-color-private-white-850-solid:#d0cfd0;--g-color-private-white-900-solid:#e7e7e7;--g-color-private-white-950-solid:#f3f3f3;--g-color-private-blue-50:#3697f11a;--g-color-private-blue-100:#3697f126;--g-color-private-blue-150:#3697f133;--g-color-private-blue-200:#3697f14d;--g-color-private-blue-250:#3697f166;--g-color-private-blue-300:#3697f180;--g-color-private-blue-350:#3697f199;--g-color-private-blue-400:#3697f1b3;--g-color-private-blue-450:#3697f1cc;--g-color-private-blue-500:#3697f1e6;--g-color-private-blue-50-solid:#161e28;--g-color-private-blue-100-solid:#172533;--g-color-private-blue-150-solid:#192c3f;--g-color-private-blue-200-solid:#1d3955;--g-color-private-blue-250-solid:#20476b;--g-color-private-blue-300-solid:#245482;--g-color-private-blue-350-solid:#286198;--g-color-private-blue-400-solid:#2b6fae;--g-color-private-blue-450-solid:#2f7cc4;--g-color-private-blue-500-solid:#328adb;--g-color-private-blue-550-solid:#3697f1;--g-color-private-blue-600-solid:#4aa1f2;--g-color-private-blue-650-solid:#5eacf4;--g-color-private-blue-700-solid:#72b6f5;--g-color-private-blue-750-solid:#86c1f7;--g-color-private-blue-800-solid:#9bcbf8;--g-color-private-blue-850-solid:#afd5f9;--g-color-private-blue-900-solid:#c3e0fb;--g-color-private-blue-950-solid:#d7eafc;--g-color-private-blue-1000-solid:#e1effd;--g-color-private-green-50:#4db09b1a;--g-color-private-green-100:#4db09b26;--g-color-private-green-150:#4db09b33;--g-color-private-green-200:#4db09b4d;--g-color-private-green-250:#4db09b66;--g-color-private-green-300:#4db09b80;--g-color-private-green-350:#4db09b99;--g-color-private-green-400:#4db09bb3;--g-color-private-green-450:#4db09bcc;--g-color-private-green-500:#4db09be6;--g-color-private-green-50-solid:#182120;--g-color-private-green-100-solid:#1b2927;--g-color-private-green-150-solid:#1e312d;--g-color-private-green-200-solid:#24413b;--g-color-private-green-250-solid:#2a5149;--g-color-private-green-300-solid:#306157;--g-color-private-green-350-solid:#357064;--g-color-private-green-400-solid:#3b8072;--g-color-private-green-450-solid:#419080;--g-color-private-green-500-solid:#47a08d;--g-color-private-green-550-solid:#4db09b;--g-color-private-green-600-solid:#5fb8a5;--g-color-private-green-650-solid:#71c0af;--g-color-private-green-700-solid:#82c8b9;--g-color-private-green-750-solid:#94d0c3;--g-color-private-green-800-solid:#a6d8cd;--g-color-private-green-850-solid:#b8dfd7;--g-color-private-green-900-solid:#cae7e1;--g-color-private-green-950-solid:#dbefeb;--g-color-private-green-1000-solid:#e4f3f0;--g-color-private-yellow-50:#ffbe5c1a;--g-color-private-yellow-100:#ffbe5c26;--g-color-private-yellow-150:#ffbe5c33;--g-color-private-yellow-200:#ffbe5c4d;--g-color-private-yellow-250:#ffbe5c66;--g-color-private-yellow-300:#ffbe5c80;--g-color-private-yellow-350:#ffbe5c99;--g-color-private-yellow-400:#ffbe5cb3;--g-color-private-yellow-450:#ffbe5ccc;--g-color-private-yellow-500:#ffbe5ce6;--g-color-private-yellow-50-solid:#2a2219;--g-color-private-yellow-100-solid:#362b1d;--g-color-private-yellow-150-solid:#413421;--g-color-private-yellow-200-solid:#594528;--g-color-private-yellow-250-solid:#715630;--g-color-private-yellow-300-solid:#896837;--g-color-private-yellow-350-solid:#a0793e;--g-color-private-yellow-400-solid:#b88a46;--g-color-private-yellow-450-solid:#d09b4d;--g-color-private-yellow-500-solid:#e7ad55;--g-color-private-yellow-550-solid:#ffbe5c;--g-color-private-yellow-600-solid:#ffc56c;--g-color-private-yellow-650-solid:#ffcb7d;--g-color-private-yellow-700-solid:#ffd28d;--g-color-private-yellow-750-solid:#ffd89d;--g-color-private-yellow-800-solid:#ffdfae;--g-color-private-yellow-850-solid:#ffe5be;--g-color-private-yellow-900-solid:#ffecce;--g-color-private-yellow-950-solid:#fff2de;--g-color-private-yellow-1000-solid:#fff5e7;--g-color-private-orange-50-solid:#241911;--g-color-private-orange-100-solid:#2d1d11;--g-color-private-orange-150-solid:#362111;--g-color-private-orange-200-solid:#492a10;--g-color-private-orange-250-solid:#5b3210;--g-color-private-orange-300-solid:#6d3a0f;--g-color-private-orange-350-solid:#7f420e;--g-color-private-orange-400-solid:#914a0e;--g-color-private-orange-450-solid:#a4530d;--g-color-private-orange-500-solid:#b65b0d;--g-color-private-orange-700-solid:#d99255;--g-color-private-orange-800-solid:#e4b186;--g-color-private-red-50:#e5325d1a;--g-color-private-red-100:#e5325d26;--g-color-private-red-150:#e5325d33;--g-color-private-red-200:#e5325d4d;--g-color-private-red-250:#e5325d66;--g-color-private-red-300:#e5325d80;--g-color-private-red-350:#e5325d99;--g-color-private-red-400:#e5325db3;--g-color-private-red-450:#e5325dcc;--g-color-private-red-500:#e5325de6;--g-color-private-red-50-solid:#27141a;--g-color-private-red-100-solid:#32161d;--g-color-private-red-150-solid:#3c1821;--g-color-private-red-200-solid:#511b29;--g-color-private-red-250-solid:#661e30;--g-color-private-red-300-solid:#7c2238;--g-color-private-red-350-solid:#91253f;--g-color-private-red-400-solid:#a62847;--g-color-private-red-450-solid:#bb2b4e;--g-color-private-red-500-solid:#d02f56;--g-color-private-red-550-solid:#e5325d;--g-color-private-red-600-solid:#e8476d;--g-color-private-red-650-solid:#ea5b7d;--g-color-private-red-700-solid:#ed708e;--g-color-private-red-750-solid:#ef849e;--g-color-private-red-800-solid:#f299ae;--g-color-private-red-850-solid:#f5adbe;--g-color-private-red-900-solid:#f7c2ce;--g-color-private-red-950-solid:#fad6df;--g-color-private-red-1000-solid:#fbe0e7;--g-color-private-purple-50-solid:#1f1825;--g-color-private-purple-100-solid:#251b2e;--g-color-private-purple-150-solid:#2b1e37;--g-color-private-purple-200-solid:#38254a;--g-color-private-purple-250-solid:#442b5c;--g-color-private-purple-300-solid:#51326f;--g-color-private-purple-350-solid:#5d3882;--g-color-private-purple-400-solid:#6a3f94;--g-color-private-purple-450-solid:#7645a7;--g-color-private-purple-500-solid:#834cb9;--g-color-private-cool-grey-50-solid:#1a1c20;--g-color-private-cool-grey-100-solid:#1e2227;--g-color-private-cool-grey-150-solid:#22272e;--g-color-private-cool-grey-200-solid:#29323b;--g-color-private-cool-grey-250-solid:#313d49;--g-color-private-cool-grey-300-solid:#394957;--g-color-private-cool-grey-350-solid:#415465;--g-color-private-cool-grey-400-solid:#495f73;--g-color-private-cool-grey-450-solid:#506a80;--g-color-private-cool-grey-500-solid:#58758e;--g-color-private-cool-grey-750-solid:#a0b3c4;--g-color-private-cool-grey-800-solid:#b0c0ce;--g-color-text-primary:var(--g-color-text-light-primary);--g-color-text-complementary:var(--g-color-text-light-complementary);--g-color-text-secondary:var(--g-color-text-light-secondary);--g-color-text-hint:var(--g-color-text-light-hint);--g-color-text-info:var(--g-color-private-blue-650-solid);--g-color-text-positive:var(--g-color-private-green-650-solid);--g-color-text-warning:var(--g-color-private-yellow-650-solid);--g-color-text-danger:var(--g-color-private-red-650-solid);--g-color-text-utility:var(--g-color-private-purple-650-solid);--g-color-text-misc:var(--g-color-private-cool-grey-650-solid);--g-color-text-info-heavy:var(--g-color-private-blue-850-solid);--g-color-text-positive-heavy:var(--g-color-private-green-850-solid);--g-color-text-warning-heavy:var(--g-color-private-yellow-850-solid);--g-color-text-danger-heavy:var(--g-color-private-red-850-solid);--g-color-text-utility-heavy:var(--g-color-private-purple-850-solid);--g-color-text-misc-heavy:var(--g-color-private-cool-grey-850-solid);--g-color-text-brand:var(--g-color-private-yellow-600-solid);--g-color-text-brand-heavy:var(--g-color-private-yellow-700-solid);--g-color-text-brand-contrast:var(--g-color-text-dark-primary);--g-color-text-link:var(--g-color-private-yellow-550-solid);--g-color-text-link-hover:var(--g-color-private-orange-550-solid);--g-color-text-link-visited:var(--g-color-private-purple-650-solid);--g-color-text-link-visited-hover:var(--g-color-private-purple-800-solid);--g-color-text-dark-primary:var(--g-color-private-black-1000-solid);--g-color-text-dark-complementary:var(--g-color-private-black-800);--g-color-text-dark-secondary:var(--g-color-private-black-600);--g-color-text-dark-hint:var(--g-color-private-black-400);--g-color-text-light-primary:var(--g-color-private-white-1000-solid);--g-color-text-light-complementary:var(--g-color-private-white-800);--g-color-text-light-secondary:var(--g-color-private-white-600);--g-color-text-light-hint:var(--g-color-private-white-400);--g-color-text-inverted-primary:var(--g-color-text-dark-primary);--g-color-text-inverted-complementary:var(--g-color-text-dark-complementary);--g-color-text-inverted-secondary:var(--g-color-text-dark-secondary);--g-color-text-inverted-hint:var(--g-color-text-dark-hint);--g-color-base-background:#121112;--g-color-base-generic:var(--g-color-private-white-100);--g-color-base-generic-hover:var(--g-color-private-white-250);--g-color-base-generic-medium:var(--g-color-private-white-250);--g-color-base-generic-medium-hover:var(--g-color-private-white-400);--g-color-base-generic-accent:var(--g-color-private-white-200);--g-color-base-generic-accent-disabled:var(--g-color-private-white-150);--g-color-base-generic-ultralight:var(--g-color-private-white-50);--g-color-base-simple-hover:var(--g-color-private-white-250);--g-color-base-simple-hover-solid:var(--g-color-private-white-250-solid);--g-color-base-brand:var(--g-color-private-yellow-550-solid);--g-color-base-brand-hover:var(--g-color-private-yellow-700-solid);--g-color-base-selection:var(--g-color-private-yellow-250);--g-color-base-selection-hover:var(--g-color-private-yellow-400);--g-color-base-info-light:var(--g-color-private-blue-250);--g-color-base-info-light-hover:var(--g-color-private-blue-400);--g-color-base-info-medium:var(--g-color-private-blue-450);--g-color-base-info-medium-hover:var(--g-color-private-blue-600-solid);--g-color-base-info-heavy:var(--g-color-private-blue-700-solid);--g-color-base-info-heavy-hover:var(--g-color-private-blue-850-solid);--g-color-base-positive-light:var(--g-color-private-green-250);--g-color-base-positive-light-hover:var(--g-color-private-green-400);--g-color-base-positive-medium:var(--g-color-private-green-450);--g-color-base-positive-medium-hover:var(--g-color-private-green-600-solid);--g-color-base-positive-heavy:var(--g-color-private-green-700-solid);--g-color-base-positive-heavy-hover:var(--g-color-private-green-850-solid);--g-color-base-warning-light:var(--g-color-private-yellow-250);--g-color-base-warning-light-hover:var(--g-color-private-yellow-400);--g-color-base-warning-medium:var(--g-color-private-yellow-450);--g-color-base-warning-medium-hover:var(--g-color-private-yellow-600-solid);--g-color-base-warning-heavy:var(--g-color-private-yellow-700-solid);--g-color-base-warning-heavy-hover:var(--g-color-private-yellow-850-solid);--g-color-base-danger-light:var(--g-color-private-red-250);--g-color-base-danger-light-hover:var(--g-color-private-red-400);--g-color-base-danger-medium:var(--g-color-private-red-450);--g-color-base-danger-medium-hover:var(--g-color-private-red-600-solid);--g-color-base-danger-heavy:var(--g-color-private-red-700-solid);--g-color-base-danger-heavy-hover:var(--g-color-private-red-850-solid);--g-color-base-utility-light:var(--g-color-private-purple-250);--g-color-base-utility-light-hover:var(--g-color-private-purple-400);--g-color-base-utility-medium:var(--g-color-private-purple-450);--g-color-base-utility-medium-hover:var(--g-color-private-purple-600-solid);--g-color-base-utility-heavy:var(--g-color-private-purple-700-solid);--g-color-base-utility-heavy-hover:var(--g-color-private-purple-850-solid);--g-color-base-neutral-light:var(--g-color-private-white-200);--g-color-base-neutral-light-hover:var(--g-color-private-white-350);--g-color-base-neutral-medium:var(--g-color-private-white-400);--g-color-base-neutral-medium-hover:var(--g-color-private-white-550);--g-color-base-neutral-heavy:var(--g-color-private-white-650);--g-color-base-neutral-heavy-hover:var(--g-color-private-white-750);--g-color-base-misc-light:var(--g-color-private-cool-grey-250);--g-color-base-misc-light-hover:var(--g-color-private-cool-grey-400);--g-color-base-misc-medium:var(--g-color-private-cool-grey-450);--g-color-base-misc-medium-hover:var(--g-color-private-cool-grey-600-solid);--g-color-base-misc-heavy:var(--g-color-private-cool-grey-700-solid);--g-color-base-misc-heavy-hover:var(--g-color-private-cool-grey-850-solid);--g-color-base-light:var(--g-color-private-white-850);--g-color-base-light-hover:var(--g-color-private-white-700);--g-color-base-light-simple-hover:var(--g-color-private-white-150);--g-color-base-light-disabled:var(--g-color-private-white-150);--g-color-base-light-accent-disabled:var(--g-color-private-white-300);--g-color-base-float:var(--g-color-private-white-100-solid);--g-color-base-float-hover:var(--g-color-private-white-200-solid);--g-color-base-float-medium:var(--g-color-private-white-200-solid);--g-color-base-float-heavy:var(--g-color-private-white-300-solid);--g-color-base-float-accent:var(--g-color-private-white-300-solid);--g-color-base-float-accent-hover:var(--g-color-private-white-400-solid);--g-color-base-float-announcement:var(--g-color-private-white-200-solid);--g-color-base-modal:var(--g-color-base-background);--g-color-line-generic:var(--g-color-private-white-150);--g-color-line-generic-hover:var(--g-color-private-white-250);--g-color-line-generic-active:var(--g-color-private-white-600);--g-color-line-generic-accent:var(--g-color-private-white-350);--g-color-line-generic-accent-hover:var(--g-color-private-white-800);--g-color-line-generic-solid:var(--g-color-private-white-150-solid);--g-color-line-brand:var(--g-color-private-yellow-600-solid);--g-color-line-focus:var(--g-color-private-cool-grey-550-solid);--g-color-line-light:var(--g-color-private-white-500);--g-color-line-info:var(--g-color-private-blue-550-solid);--g-color-line-positive:var(--g-color-private-green-550-solid);--g-color-line-warning:var(--g-color-private-yellow-550-solid);--g-color-line-danger:var(--g-color-private-red-550-solid);--g-color-line-utility:var(--g-color-private-purple-550-solid);--g-color-line-misc:var(--g-color-private-cool-grey-550-solid);--g-color-sfx-veil:var(--g-color-private-black-700);--g-color-sfx-shadow:var(--g-color-private-black-200);--g-color-sfx-shadow-heavy:var(--g-color-private-black-400);--g-color-sfx-shadow-light:var(--g-color-private-black-200);--g-color-sfx-fade:var(--g-color-private-white-250);--g-color-scroll-track:var(--g-color-base-background);--g-color-scroll-handle:var(--g-color-private-white-150);--g-color-scroll-handle-hover:var(--g-color-private-white-250);--g-color-scroll-corner:var(--g-color-private-white-150);--g-color-infographics-axis:var(--g-color-private-white-150-solid);--g-color-infographics-tooltip-bg:var(--g-color-private-white-opaque-150)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar){scrollbar-color:var(--g-color-scroll-handle) var(--g-color-scroll-track);scrollbar-width:var(--g-scrollbar-width)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar{background:var(--g-color-scroll-track);height:var(--g-scrollbar-width);width:var(--g-scrollbar-width)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-track,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-track{background:var(--g-color-scroll-track)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-corner,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-corner{background:var(--g-color-scroll-corner)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-thumb,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-thumb{background:var(--g-color-scroll-handle)}.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar) ::-webkit-scrollbar-thumb:hover,.g-root:not(.g-root_mobile):not(.g-root_native-scrollbar)::-webkit-scrollbar-thumb:hover{background:var(--g-color-scroll-handle-hover)}@keyframes g-loading-animation{0%{background-position:-12px 0}to{background-position:0 0}}:root:has(body.g-root_theme_light),:root:has(body.g-root_theme_light-hc){color-scheme:light}:root:has(body.g-root_theme_dark),:root:has(body.g-root_theme_dark-hc){color-scheme:dark}:root{--data-table-header-vertical-padding:5px;--data-table-cell-vertical-padding:5px;--data-table-cell-horizontal-padding:10px;--data-table-cell-border-padding:var(--data-table-cell-horizontal-padding);--data-table-cell-align:top;--data-table-head-align:top;--data-table-row-height:30px;--data-table-sort-icon-space:18px;--data-table-sort-icon-opacity-inactive:0.15;--data-table-sort-icon-color:inherit}.data-table{box-sizing:border-box;position:relative}.data-table__box{box-sizing:border-box;height:100%;width:100%}.data-table__box_sticky-head_moving{overflow:visible;position:relative;z-index:0}.data-table__box_sticky-head_moving .data-table__th{border-bottom:0;border-top:0;padding-bottom:0;padding-top:0}.data-table__box_sticky-head_moving .data-table__head-cell{display:block;height:0;overflow:hidden}.data-table__box_sticky-head_moving .data-table__row_header-data{visibility:hidden}.data-table__box_sticky-footer_fixed,.data-table__box_sticky-head_fixed{overflow:auto}.data-table__table{border-collapse:collapse;table-layout:fixed}.data-table__table_sticky{background:var(--data-table-color-base);width:100%}.data-table__row{height:var(--data-table-row-height)}.data-table__th{border:1px solid var(--data-table-border-color);box-sizing:border-box;cursor:default;font-weight:500;padding:var(--data-table-header-vertical-padding) var(--data-table-cell-horizontal-padding);position:relative;text-align:left;vertical-align:var(--data-table-head-align)}.data-table__th_sortable{cursor:pointer}.data-table__th_sortable .data-table__head-cell{padding-right:var(--data-table-sort-icon-space)}.data-table__th_sortable.data-table__th_align_right .data-table__head-cell{padding-left:var(--data-table-sort-icon-space);padding-right:0}.data-table__th_sortable.data-table__th_align_right .data-table__sort-icon{left:0;right:auto;transform:translateY(-50%) scaleX(-1)}.data-table__td{border:1px solid var(--data-table-border-color);box-sizing:border-box;overflow:hidden;padding:var(--data-table-cell-vertical-padding) var(--data-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:var(--data-table-cell-align);white-space:nowrap}.data-table__td_index,.data-table__th_index{text-align:right}.data-table__td_align_left,.data-table__th_align_left{text-align:left}.data-table__td_align_center,.data-table__th_align_center{text-align:center}.data-table__td_align_right,.data-table__th_align_right{text-align:right}.data-table__td:first-child,.data-table__th:first-child{padding-left:var(--data-table-cell-border-padding)}.data-table__td:last-child,.data-table__th:last-child{padding-right:var(--data-table-cell-border-padding)}.data-table__index{text-align:right}.data-table__head-cell{box-sizing:border-box;display:inline-block;max-width:100%;overflow:hidden;position:relative;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.data-table__error{padding:20px;white-space:pre-wrap}.data-table__sort-icon{color:var(--data-table-sort-icon-color);display:inline-flex;position:absolute;right:0;top:50%;transform:translateY(-50%)}.data-table__sort-icon:after{content:attr(data-index);font-size:8px;left:100%;position:absolute;top:-5px}.data-table__sort-icon_shadow{opacity:var(--data-table-sort-icon-opacity-inactive)}.data-table__sort-icon_shadow:after{content:none}.data-table__icon{vertical-align:top}.data-table__no-data{background:var(--data-table-color-stripe)}.data-table__sticky_fixed{left:0;overflow:hidden;position:absolute;right:0;z-index:1}.data-table__sticky_fixed.data-table__sticky_head{top:0}.data-table__sticky_fixed.data-table__sticky_footer{bottom:0}.data-table__sticky_moving{margin-bottom:-1px;position:sticky;z-index:1}.data-table_striped-rows .data-table__row_odd{background:var(--data-table-color-stripe)}.data-table_highlight-rows .data-table__row:hover{background:var(--data-table-color-hover-area)}.data-table_header_multiline .data-table__head-cell{white-space:normal}.data-table_header_pre .data-table__head-cell{white-space:pre}.data-table__foot{background:var(--data-table-color-footer-area)}.data-table__foot_has-sticky-footer_moving{visibility:hidden}.data-table_theme_yandex-cloud{--data-table-color-base:var(--g-color-base-background,var(--yc-color-base-background));--data-table-color-stripe:var( --g-color-base-generic-ultralight,var(--yc-color-base-generic-ultralight) );--data-table-border-color:var( --g-color-base-generic-hover,var(--yc-color-base-generic-hover) );--data-table-color-hover-area:var( --g-color-base-simple-hover,var(--yc-color-base-simple-hover) );--data-table-color-footer-area:var(--data-table-color-base)}.data-table_theme_legacy{--data-table-color-base:#fff;--data-table-color-stripe:#00000008;--data-table-border-color:#ddd;--data-table-color-hover-area:#ffeba0;--data-table-color-footer-area:var(--data-table-color-base)}.data-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.data-table__resize-handler_resizing,.data-table__th:hover>.data-table__resize-handler{visibility:visible}.ydb-error-boundary{align-items:flex-start;display:flex;flex-direction:row;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);padding:20px}.ydb-error-boundary__illustration{height:230px;margin-right:20px;width:230px}.ydb-error-boundary__error-title{font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height);margin-top:44px}.ydb-error-boundary__error-description{margin-top:12px}.ydb-error-boundary__show-details{margin-top:8px}.ydb-error-boundary__error-details{background-color:var(--g-color-base-generic-ultralight);border:1px solid var(--g-color-line-generic);padding:13px 18px;white-space:pre-wrap}.ydb-error-boundary__actions{display:flex;flex-direction:row;gap:10px;margin-top:20px}.g-icon{color:inherit;line-height:0;vertical-align:top}.g-arrow-toggle{display:inline-block;transition:transform .1s ease-out;vertical-align:middle}.g-arrow-toggle_direction_bottom{transform:matrix(1,0,0,1,0,0)}.g-arrow-toggle_direction_left{transform:matrix(0,1,-1,0,0,0)}.g-arrow-toggle_direction_top{transform:matrix(-1,0,0,-1,0,0)}.g-arrow-toggle_direction_right{transform:matrix(0,-1,1,0,0,0)}.g-disclosure_size_m .g-disclosure__trigger{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-disclosure_size_l .g-disclosure__trigger{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-disclosure_size_xl .g-disclosure__trigger{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-disclosure__trigger{align-items:center;background:none;border:none;border-radius:var(--g-focus-border-radius);color:inherit;cursor:pointer;display:flex;flex-flow:row nowrap;flex-shrink:0;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);font-weight:inherit;gap:8px;line-height:inherit;outline:none;padding:0}.g-disclosure__trigger:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-disclosure__trigger_arrow_end{flex-direction:row-reverse}.g-disclosure__trigger_disabled{color:var(--g-color-text-secondary);cursor:auto}.g-disclosure__content{display:none}.g-disclosure__content_visible{display:block}.g-disclosure__content.g-disclosure_exit_active{animation-duration:.1s;animation-name:g-disclosure-collapsed;display:block;opacity:0}.g-disclosure__content.g-disclosure_enter_active{animation-duration:.2s;animation-name:g-disclosure-expanded}@keyframes g-disclosure-expanded{0%{opacity:.4}to{opacity:1}}@keyframes g-disclosure-collapsed{0%{opacity:1}to{opacity:0}}.g-button{--_--text-color:var(--g-color-text-primary);--_--text-color-hover:var(--_--text-color);--_--background-color:#0000;--_--background-color-hover:var(--g-color-base-simple-hover);--_--border-width:0;--_--border-color:currentColor;--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;--_--font-size:var(--g-text-body-1-font-size);-webkit-tap-highlight-color:rgba(0,0,0,0);background:none;background:#0000;border:none;box-sizing:border-box;color:inherit;color:var(--g-button-text-color,var(--_--text-color));cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-size:var(--g-button-font-size,var(--_--font-size));font-weight:var(--g-text-body-font-weight);gap:var(--g-button-icon-offset,var(--_--icon-offset));height:var(--g-button-height,var(--_--height));justify-content:center;line-height:var(--g-button-height,var(--_--height));outline:none;overflow:visible;padding:0;padding:0 var(--g-button-padding,var(--_--padding));position:relative;text-align:center;text-decoration:none;touch-action:manipulation;transform:scale(1);transition:transform .1s ease-out,color .15s linear;-webkit-user-select:none;user-select:none;white-space:nowrap}.g-button:before{background-color:var(--g-button-background-color,var(--_--background-color));border:var(--g-button-border-width,var(--_--border-width)) var(--g-button-border-style,solid) var(--g-button-border-color,var(--_--border-color));content:"";inset:0;position:absolute;transition:background-color .15s linear;z-index:-1}.g-button:hover{color:var(--g-button-text-color-hover,var(--_--text-color-hover))}.g-button:hover:before{background-color:var(--g-button-background-color-hover,var(--_--background-color-hover))}.g-button:focus-visible:before{outline:var(--g-button-focus-outline-color,var(--_--focus-outline-color)) var(--g-button-focus-outline-style,solid) var(--g-button-focus-outline-width,2px);outline-offset:var(--g-button-focus-outline-offset,var(--_--focus-outline-offset))}.g-button:after{content:"";inset:0;position:absolute;transform:scale(1);transition:none;z-index:-1}.g-button:active{transform:scale(.96);transition:none}.g-button:active:after{transform:scale(1.042)}.g-button_size_xs{--_--height:20px;--_--border-radius:var(--g-border-radius-xs);--_--padding:6px;--_--icon-size:12px;--_--icon-offset:4px}.g-button_size_s{--_--height:24px;--_--border-radius:var(--g-border-radius-s);--_--padding:8px;--_--icon-size:16px;--_--icon-offset:4px}.g-button_size_m{--_--height:28px;--_--border-radius:var(--g-border-radius-m);--_--padding:12px;--_--icon-size:16px;--_--icon-offset:8px}.g-button_size_l{--_--height:36px;--_--border-radius:var(--g-border-radius-l);--_--padding:16px;--_--icon-size:16px;--_--icon-offset:8px}.g-button_size_xl{--_--height:44px;--_--border-radius:var(--g-border-radius-xl);--_--padding:24px;--_--icon-size:20px;--_--icon-offset:12px;--_--font-size:var(--g-text-body-2-font-size)}.g-button_view_normal{--_--background-color:var(--g-color-base-generic);--_--background-color-hover:var(--g-color-base-generic-hover)}.g-button_view_action{--_--text-color:var(--g-color-text-brand-contrast);--_--background-color:var(--g-color-base-brand);--_--background-color-hover:var(--g-color-base-brand-hover);--_--focus-outline-color:var(--g-color-base-brand);--_--focus-outline-offset:1px}.g-button_view_outlined{--_--border-width:1px;--_--border-color:var(--g-color-line-generic)}.g-button_view_outlined-info{--_--text-color:var(--g-color-text-info);--_--border-width:1px;--_--border-color:var(--g-color-line-info)}.g-button_view_outlined-success{--_--text-color:var(--g-color-text-positive);--_--border-width:1px;--_--border-color:var(--g-color-line-positive)}.g-button_view_outlined-warning{--_--text-color:var(--g-color-text-warning);--_--border-width:1px;--_--border-color:var(--g-color-line-warning)}.g-button_view_outlined-danger{--_--text-color:var(--g-color-text-danger);--_--border-width:1px;--_--border-color:var(--g-color-line-danger)}.g-button_view_outlined-utility{--_--text-color:var(--g-color-text-utility);--_--border-width:1px;--_--border-color:var(--g-color-line-utility)}.g-button_view_outlined-action{--_--text-color:var(--g-color-text-brand);--_--border-width:1px;--_--border-color:var(--g-color-line-brand)}.g-button_view_raised{--_--background-color-hover:var(--g-color-base-float-hover);background:var(--g-color-base-float)}.g-button_view_raised:before{box-shadow:0 3px 5px var(--g-color-sfx-shadow)}.g-button_view_raised:active:before{box-shadow:0 1px 2px var(--g-color-sfx-shadow)}.g-button_view_flat-secondary{--_--text-color:var(--g-color-text-secondary);--_--text-color-hover:var(--g-color-text-primary)}.g-button_view_flat-info{--_--text-color:var(--g-color-text-info)}.g-button_view_flat-success{--_--text-color:var(--g-color-text-positive)}.g-button_view_flat-warning{--_--text-color:var(--g-color-text-warning)}.g-button_view_flat-danger{--_--text-color:var(--g-color-text-danger)}.g-button_view_flat-utility{--_--text-color:var(--g-color-text-utility)}.g-button_view_flat-action{--_--text-color:var(--g-color-text-brand)}.g-button_view_normal-contrast{--_--text-color:var(--g-color-text-dark-primary);--_--background-color:var(--g-color-base-light);--_--background-color-hover:var(--g-color-base-light-hover);--_--focus-outline-color:var(--g-color-line-light)}.g-button_view_normal-contrast.g-button_loading{--_--background-color-hover:var(--g-color-base-simple-hover)}.g-button_view_outlined-contrast{--_--text-color:var(--g-color-text-light-primary);--_--background-color-hover:var(--g-color-base-light-simple-hover);--_--border-width:1px;--_--border-color:var(--g-color-line-light);--_--focus-outline-color:var(--g-color-line-light)}.g-button_view_flat-contrast{--_--text-color:var(--g-color-text-light-primary);--_--background-color-hover:var(--g-color-base-light-simple-hover);--_--focus-outline-color:var(--g-color-line-light)}.g-button.g-button_pin_round-round.g-button{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick.g-button{border-radius:0}.g-button.g-button_pin_clear-clear.g-button{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle.g-button{border-radius:100px}.g-button.g-button_pin_round-brick.g-button{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round.g-button{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear.g-button{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round.g-button{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear.g-button{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick.g-button{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick.g-button{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle.g-button{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear.g-button{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle.g-button{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_round-round:before{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick:before{border-radius:0}.g-button.g-button_pin_clear-clear:before{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle:before{border-radius:100px}.g-button.g-button_pin_round-brick:before{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round:before{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear:before{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round:before{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear:before{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick:before{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick:before{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear:before{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle:before{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_round-round:after{border-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-brick:after{border-radius:0}.g-button.g-button_pin_clear-clear:after{border-inline:0;border-radius:0}.g-button.g-button_pin_circle-circle:after{border-radius:100px}.g-button.g-button_pin_round-brick:after{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_brick-round:after{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_round-clear:after{border-end-end-radius:0;border-end-start-radius:var(--g-button-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-button-border-radius,var(--_--border-radius))}.g-button.g-button_pin_clear-round:after{border-end-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-button-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-button.g-button_pin_brick-clear:after{border-inline-end:0;border-radius:0}.g-button.g-button_pin_clear-brick:after{border-inline-start:0;border-radius:0}.g-button.g-button_pin_circle-brick:after{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_brick-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button.g-button_pin_circle-clear:after{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-button.g-button_pin_clear-circle:after{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-button__text{display:inline-block;white-space:nowrap}.g-button__icon{display:inline-block;height:var(--g-button-height,var(--_--height));margin:0 calc((var(--g-button-height, var(--_--height)) - var(--g-button-icon-size, var(--_--icon-size)))/2*-1);position:relative;width:var(--g-button-height,var(--_--height))}.g-button__icon:after{content:"Â ";visibility:hidden}.g-button__icon-inner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.g-button__icon_side_start{order:-1}.g-button__icon_side_end{order:1}.g-button__icon:only-child{margin:0}.g-button:has(.g-button__icon:only-child){--_--padding:0}.g-button:has(.g-button__icon:only-child):not(.g-button_width_max){width:var(--g-button-height,var(--_--height))}.g-button_selected:not(.g-button_view_outlined-contrast){--_--border-width:0}.g-button_selected:not(.g-button_view_normal-contrast,.g-button_view_flat-contrast,.g-button_view_outlined-contrast){--_--text-color:var(--g-color-text-brand-heavy);--_--background-color:var(--g-color-base-selection);--_--background-color-hover:var(--g-color-base-selection-hover)}.g-button_selected.g-button_view_flat-info,.g-button_selected.g-button_view_outlined-info{--_--text-color:var(--g-color-text-info-heavy);--_--background-color:var(--g-color-base-info-light);--_--background-color-hover:var(--g-color-base-info-light-hover)}.g-button_selected.g-button_view_flat-success,.g-button_selected.g-button_view_outlined-success{--_--text-color:var(--g-color-text-positive-heavy);--_--background-color:var(--g-color-base-positive-light);--_--background-color-hover:var(--g-color-base-positive-light-hover)}.g-button_selected.g-button_view_flat-warning,.g-button_selected.g-button_view_outlined-warning{--_--text-color:var(--g-color-text-warning-heavy);--_--background-color:var(--g-color-base-warning-light);--_--background-color-hover:var(--g-color-base-warning-light-hover)}.g-button_selected.g-button_view_flat-danger,.g-button_selected.g-button_view_outlined-danger{--_--text-color:var(--g-color-text-danger-heavy);--_--background-color:var(--g-color-base-danger-light);--_--background-color-hover:var(--g-color-base-danger-light-hover)}.g-button_selected.g-button_view_flat-utility,.g-button_selected.g-button_view_outlined-utility{--_--text-color:var(--g-color-text-utility-heavy);--_--background-color:var(--g-color-base-utility-light);--_--background-color-hover:var(--g-color-base-utility-light-hover)}.g-button_disabled{cursor:default;pointer-events:none}.g-button_disabled:not(.g-button_loading){--_--text-color:var(--g-color-text-hint);--_--background-color:var(--g-color-base-generic-accent-disabled);--_--background-color-hover:var(--g-color-base-generic-accent-disabled);--_--border-width:0}.g-button_disabled:not(.g-button_loading):is(.g-button_view_normal-contrast,.g-button_view_outlined-contrast){--_--text-color:var(--g-color-text-light-secondary);--_--background-color:var(--g-color-base-light-disabled);--_--background-color-hover:var(--g-color-base-light-disabled)}.g-button_disabled:not(.g-button_loading):is(.g-button_view_flat,.g-button_view_flat-secondary,.g-button_view_flat-info,.g-button_view_flat-success,.g-button_view_flat-warning,.g-button_view_flat-danger,.g-button_view_flat-utility,.g-button_view_flat-action,.g-button_view_flat-contrast){--_--text-color:var(--g-color-text-hint);--_--background-color:#0000;--_--background-color-hover:#0000}.g-button_disabled:not(.g-button_loading).g-button_view_flat-contrast{--_--text-color:var(--g-color-text-light-hint)}.g-button_disabled:active{transform:scale(1)}.g-button_loading:before{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,var(--g-button-background-color,var(--_--background-color)),var(--g-button-background-color,var(--_--background-color)) 4px,var(--g-button-background-color-hover,var(--_--background-color-hover)) 4px,var(--g-button-background-color-hover,var(--_--background-color-hover)) 8px);background-size:150%}.g-button_width_auto{max-width:100%}.g-button_width_max{width:100%}.g-button_width_auto .g-button__text,.g-button_width_max .g-button__text{display:block;overflow:hidden;text-overflow:ellipsis}.g-switch{position:relative}.g-switch__control{cursor:pointer;opacity:0}.g-switch__indicator{display:inline-block;position:relative}.g-switch__indicator:before{background-color:var(--g-color-base-generic-medium);content:"";inset:0;position:absolute;transition:background .1s linear}.g-switch__indicator:after{content:"Â ";visibility:hidden}.g-switch__slider{background-color:var(--g-color-base-background);border-radius:50%;content:"";position:absolute;transition:transform .15s ease-out}.g-switch__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;width:100%}.g-switch__control:focus-visible+.g-switch__outline{outline:2px solid var(--g-color-line-focus)}.g-switch_size_m .g-switch__indicator,.g-switch_size_m .g-switch__indicator:before,.g-switch_size_m .g-switch__outline{border-radius:10px;height:20px;width:36px}.g-switch_size_m .g-switch__slider{height:16px;inset-block-start:2px;inset-inline-start:2px;width:16px}.g-switch_size_m .g-switch__text{margin-block-start:3px}.g-switch_size_l .g-switch__indicator,.g-switch_size_l .g-switch__indicator:before,.g-switch_size_l .g-switch__outline{border-radius:12px;height:24px;width:42px}.g-switch_size_l .g-switch__slider{height:18px;inset-block-start:3px;inset-inline-start:3px;width:18px}.g-switch_size_l .g-switch__text{margin-block-start:4px}.g-switch:hover .g-switch__indicator:before{background-color:var(--g-color-base-generic-medium-hover)}.g-switch_checked .g-switch__slider{--_--translate-x:calc(100%*var(--g-flow-direction));transform:translateX(var(--_--translate-x))}.g-switch_checked .g-switch__indicator:before,.g-switch_checked:hover .g-switch__indicator:before{background-color:var(--g-color-base-brand)}.g-switch_disabled .g-switch__indicator:before{background-color:var(--g-color-base-generic-accent-disabled)}.g-switch_disabled.g-switch_checked .g-switch__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.g-control-label{-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--g-color-text-primary);cursor:pointer;display:inline-flex;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);touch-action:manipulation;-webkit-user-select:none;user-select:none}.g-control-label_disabled{cursor:default;pointer-events:none}.g-control-label_size_m{font-size:var(--g-text-body-1-font-size);line-height:15px}.g-control-label_size_l{font-size:var(--g-text-body-2-font-size);line-height:18px}.g-control-label__indicator{flex-shrink:0}.g-control-label__text{flex-grow:1;white-space:normal}.g-control-label_disabled .g-control-label__text{opacity:.6}.g-control-label_size_m .g-control-label__text{margin-inline-start:5px}.g-control-label_size_l .g-control-label__text{margin-inline-start:7px}.g-radio-button{--_--border-radius-inner:calc(var(--_--border-radius) - 3px);background-color:var(--g-color-base-generic);border-radius:var(--_--border-radius);box-sizing:border-box;display:inline-flex;flex-direction:row;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);position:relative}.g-radio-button__plate{inset-block:0;position:absolute;transition:left .2s,width .2s}.g-radio-button__plate[hidden]{display:none}.g-radio-button__option{border-radius:var(--_--border-radius-inner);cursor:pointer;flex:1 1 auto;font-size:var(--g-text-body-1-font-size);text-align:center;transform:scale(1);transition:color .15s linear;-webkit-user-select:none;user-select:none}.g-radio-button__option-outline{border-radius:var(--_--border-radius-inner);content:"";inset:3px;position:absolute;z-index:-1}.g-radio-button__option-control{border:none;cursor:inherit;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;opacity:0;outline:none;padding:0;position:absolute;width:100%}.g-radio-button__option-control:focus-visible+.g-radio-button__option-outline{outline:2px solid var(--g-color-line-focus)}.g-radio-button__option-text{color:var(--g-color-text-complementary);display:inline-block;white-space:nowrap}.g-radio-button__option-text_icon{align-items:center;display:flex;height:100%}.g-radio-button__option:hover .g-radio-button__option-text,.g-radio-button__option_checked .g-radio-button__option-text{color:var(--g-color-text-primary)}.g-radio-button__option_checked{cursor:default}.g-radio-button__option_disabled{cursor:default;pointer-events:none}.g-radio-button__option_disabled .g-radio-button__option-text{color:var(--g-color-text-hint)}.g-radio-button__option:before,.g-radio-button__plate:before{border-radius:var(--_--border-radius-inner);inset:3px;position:absolute}.g-radio-button__option:before{z-index:-1}.g-radio-button__plate:before,.g-radio-button__plate[hidden]~.g-radio-button__option_checked:before{background-color:var(--g-color-base-background);content:""}.g-radio-button_size_s{--_--border-radius:var(--g-border-radius-s)}.g-radio-button_size_s .g-radio-button__option{height:24px;line-height:24px}.g-radio-button_size_s .g-radio-button__option-text{margin:0 10px}.g-radio-button_size_m{--_--border-radius:var(--g-border-radius-m)}.g-radio-button_size_m .g-radio-button__option{height:28px;line-height:28px}.g-radio-button_size_m .g-radio-button__option-text{margin:0 13px}.g-radio-button_size_l{--_--border-radius:var(--g-border-radius-l)}.g-radio-button_size_l .g-radio-button__option{height:36px;line-height:36px}.g-radio-button_size_l .g-radio-button__option-text{margin:0 18px}.g-radio-button_size_xl{--_--border-radius:var(--g-border-radius-xl)}.g-radio-button_size_xl .g-radio-button__option{font-size:var(--g-text-body-2-font-size);height:44px;line-height:44px}.g-radio-button_size_xl .g-radio-button__option-text{margin:0 25px}.g-radio-button_width_auto{max-width:100%}.g-radio-button_width_max{width:100%}.g-radio-button_width_auto .g-radio-button__option,.g-radio-button_width_max .g-radio-button__option{overflow:hidden}.g-radio-button_width_auto .g-radio-button__option-text,.g-radio-button_width_max .g-radio-button__option-text{display:block;overflow:hidden;text-overflow:ellipsis}.g-color-text_color_primary{color:var(--g-color-text-primary)}.g-color-text_color_complementary{color:var(--g-color-text-complementary)}.g-color-text_color_secondary{color:var(--g-color-text-secondary)}.g-color-text_color_hint{color:var(--g-color-text-hint)}.g-color-text_color_info{color:var(--g-color-text-info)}.g-color-text_color_info-heavy{color:var(--g-color-text-info-heavy)}.g-color-text_color_positive{color:var(--g-color-text-positive)}.g-color-text_color_positive-heavy{color:var(--g-color-text-positive-heavy)}.g-color-text_color_warning{color:var(--g-color-text-warning)}.g-color-text_color_warning-heavy{color:var(--g-color-text-warning-heavy)}.g-color-text_color_danger{color:var(--g-color-text-danger)}.g-color-text_color_danger-heavy{color:var(--g-color-text-danger-heavy)}.g-color-text_color_utility{color:var(--g-color-text-utility)}.g-color-text_color_utility-heavy{color:var(--g-color-text-utility-heavy)}.g-color-text_color_misc{color:var(--g-color-text-misc)}.g-color-text_color_misc-heavy{color:var(--g-color-text-misc-heavy)}.g-color-text_color_brand{color:var(--g-color-text-brand)}.g-color-text_color_link{color:var(--g-color-text-link)}.g-color-text_color_link-hover{color:var(--g-color-text-link-hover)}.g-color-text_color_link-visited{color:var(--g-color-text-link-visited)}.g-color-text_color_link-visited-hover{color:var(--g-color-text-link-visited-hover)}.g-color-text_color_dark-primary{color:var(--g-color-text-dark-primary)}.g-color-text_color_dark-complementary{color:var(--g-color-text-dark-complementary)}.g-color-text_color_dark-secondary{color:var(--g-color-text-dark-secondary)}.g-color-text_color_light-primary{color:var(--g-color-text-light-primary)}.g-color-text_color_light-complementary{color:var(--g-color-text-light-complementary)}.g-color-text_color_light-secondary{color:var(--g-color-text-light-secondary)}.g-color-text_color_light-hint{color:var(--g-color-text-light-hint)}.g-color-text_color_inverted-primary{color:var(--g-color-text-inverted-primary)}.g-color-text_color_inverted-complementary{color:var(--g-color-text-inverted-complementary)}.g-color-text_color_inverted-secondary{color:var(--g-color-text-inverted-secondary)}.g-color-text_color_inverted-hint{color:var(--g-color-text-inverted-hint)}.g-text_variant_display-1{font-size:var(--g-text-display-1-font-size);line-height:var(--g-text-display-1-line-height)}.g-text_variant_display-1,.g-text_variant_display-2{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-2{font-size:var(--g-text-display-2-font-size);line-height:var(--g-text-display-2-line-height)}.g-text_variant_display-3{font-size:var(--g-text-display-3-font-size);line-height:var(--g-text-display-3-line-height)}.g-text_variant_display-3,.g-text_variant_display-4{font-family:var(--g-text-display-font-family);font-weight:var(--g-text-display-font-weight)}.g-text_variant_display-4{font-size:var(--g-text-display-4-font-size);line-height:var(--g-text-display-4-line-height)}.g-text_variant_code-1{font-size:var(--g-text-code-1-font-size);line-height:var(--g-text-code-1-line-height)}.g-text_variant_code-1,.g-text_variant_code-2{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-2{font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-code-2-line-height)}.g-text_variant_code-3{font-size:var(--g-text-code-3-font-size);line-height:var(--g-text-code-3-line-height)}.g-text_variant_code-3,.g-text_variant_code-inline-1{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-1{font-size:var(--g-text-code-inline-1-font-size);line-height:var(--g-text-code-inline-1-line-height)}.g-text_variant_code-inline-2{font-size:var(--g-text-code-inline-2-font-size);line-height:var(--g-text-code-inline-2-line-height)}.g-text_variant_code-inline-2,.g-text_variant_code-inline-3{font-family:var(--g-text-code-font-family);font-weight:var(--g-text-code-font-weight)}.g-text_variant_code-inline-3{font-size:var(--g-text-code-inline-3-font-size);line-height:var(--g-text-code-inline-3-line-height)}.g-text_variant_body-1{font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.g-text_variant_body-1,.g-text_variant_body-2{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-2{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.g-text_variant_body-3{font-size:var(--g-text-body-3-font-size);line-height:var(--g-text-body-3-line-height)}.g-text_variant_body-3,.g-text_variant_body-short{font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight)}.g-text_variant_body-short{font-size:var(--g-text-body-short-font-size);line-height:var(--g-text-body-short-line-height)}.g-text_variant_caption-1{font-size:var(--g-text-caption-1-font-size);line-height:var(--g-text-caption-1-line-height)}.g-text_variant_caption-1,.g-text_variant_caption-2{font-family:var(--g-text-caption-font-family);font-weight:var(--g-text-caption-font-weight)}.g-text_variant_caption-2{font-size:var(--g-text-caption-2-font-size);line-height:var(--g-text-caption-2-line-height)}.g-text_variant_header-1{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height)}.g-text_variant_header-1,.g-text_variant_header-2{font-family:var(--g-text-header-font-family);font-weight:var(--g-text-header-font-weight)}.g-text_variant_header-2{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.g-text_variant_subheader-1{font-size:var(--g-text-subheader-1-font-size);line-height:var(--g-text-subheader-1-line-height)}.g-text_variant_subheader-1,.g-text_variant_subheader-2{font-family:var(--g-text-subheader-font-family);font-weight:var(--g-text-subheader-font-weight)}.g-text_variant_subheader-2{font-size:var(--g-text-subheader-2-font-size);line-height:var(--g-text-subheader-2-line-height)}.g-text_variant_subheader-3{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-text_ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-text_ellipsis-lines{-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:center;display:-webkit-box;overflow:hidden;white-space:normal}.g-text_ws_nowrap{white-space:nowrap}.g-text_ws_break-spaces{white-space:break-spaces}.g-text_wb_break-all{word-break:break-all}.g-text_wb_break-word{word-break:break-word}.g-label{--_--bg-color:none;--_--bg-color-hover:none;--_--text-color:none;align-items:center;background-color:var(--_--bg-color);border-radius:var(--_--border-radius);box-sizing:border-box;color:var(--_--text-color);display:inline-flex;height:var(--_--height);isolation:isolate;position:relative;transition-duration:.15s;transition-property:opacity,color,background-color;transition-timing-function:ease-in-out}.g-label__text{align-items:baseline;display:flex;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);line-height:var(--_--height);margin:0 var(--_--margin-inline);overflow:hidden;text-align:center;white-space:nowrap;width:100%}.g-label__content,.g-label__key{overflow:hidden;text-overflow:ellipsis}.g-label__value{display:flex;opacity:.7;overflow:hidden}.g-label__separator{margin:0 4px}.g-label__main-button{background:none;border:none;border-radius:inherit;color:inherit;cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;z-index:1}.g-label__main-button:empty{inset:0;position:absolute}.g-label__addon{align-items:center;border-radius:var(--_--border-radius);display:flex;height:var(--_--height);justify-content:center;width:var(--_--height)}.g-label__addon_side_end,.g-label__addon_side_start{inset-block-start:0;position:absolute}.g-label__addon_side_start{border-end-end-radius:0;border-start-end-radius:0;inset-inline-start:2px}.g-label__addon_side_end{border-end-start-radius:0;border-start-start-radius:0;inset-inline-end:0}.g-label__addon_type_button{background:none;background-color:initial;border:none;color:inherit;color:var(--_--text-color);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,transform .1s ease-out;z-index:2}.g-label__addon_type_button:active{transform:scale(.96)}.g-label_size_xs{--_--height:20px;--_--border-radius:var(--g-border-radius-xs);--_--margin-inline:8px;--_--margin-addon-start:24px;--_--margin-addon-end:22px}.g-label_size_s{--_--height:24px;--_--border-radius:var(--g-border-radius-s);--_--margin-inline:10px;--_--margin-addon-start:28px;--_--margin-addon-end:26px}.g-label_size_m{--_--height:28px;--_--border-radius:var(--g-border-radius-m);--_--margin-inline:12px;--_--margin-addon-start:32px;--_--margin-addon-end:32px}.g-label_disabled{opacity:.7;pointer-events:none}.g-label_interactive{cursor:pointer}.g-label_theme_normal{--_--bg-color:var(--g-color-base-misc-light);--_--bg-color-hover:var(--g-color-base-misc-light-hover);--_--text-color:var(--g-color-text-misc-heavy)}.g-label_theme_success{--_--bg-color:var(--g-color-base-positive-light);--_--bg-color-hover:var(--g-color-base-positive-light-hover);--_--text-color:var(--g-color-text-positive-heavy)}.g-label_theme_info{--_--bg-color:var(--g-color-base-info-light);--_--bg-color-hover:var(--g-color-base-info-light-hover);--_--text-color:var(--g-color-text-info-heavy)}.g-label_theme_warning{--_--bg-color:var(--g-color-base-warning-light);--_--bg-color-hover:var(--g-color-base-warning-light-hover);--_--text-color:var(--g-color-text-warning-heavy)}.g-label_theme_danger{--_--bg-color:var(--g-color-base-danger-light);--_--bg-color-hover:var(--g-color-base-danger-light-hover);--_--text-color:var(--g-color-text-danger-heavy)}.g-label_theme_utility{--_--bg-color:var(--g-color-base-utility-light);--_--bg-color-hover:var(--g-color-base-utility-light-hover);--_--text-color:var(--g-color-text-utility-heavy)}.g-label_theme_unknown{--_--bg-color:var(--g-color-base-neutral-light);--_--bg-color-hover:var(--g-color-base-neutral-light-hover);--_--text-color:var(--g-color-text-complementary)}.g-label_theme_clear{--_--bg-color:#0000;--_--bg-color-hover:var(--g-color-base-simple-hover);--_--text-color:var(--g-color-text-complementary);box-shadow:inset 0 0 0 1px var(--g-color-line-generic)}.g-label:has(.g-label__addon_side_start) .g-label__text{margin-inline-start:var(--_--margin-addon-start)}.g-label:has(.g-label__addon_side_end) .g-label__text{margin-inline-end:var(--_--margin-addon-end)}.g-label__addon_type_button:hover,.g-label_interactive:hover:not(:has(.g-label__addon_type_button:hover)){background-color:var(--_--bg-color-hover)}.g-label__addon_type_button:focus-visible,.g-label__main-button:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-tabs{--_--vertical-item-padding:var(--g-tabs-vertical-item-padding,6px 20px);--_--vertical-item-height:var(--g-tabs-vertical-item-height,18px)}.g-tabs_size_m{--_--item-height:36px;--_--item-gap:24px;--_--item-border-width:2px}.g-tabs_size_m .g-tabs__item-counter,.g-tabs_size_m .g-tabs__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-tabs_size_l{--_--item-height:40px;--_--item-gap:28px;--_--item-border-width:2px}.g-tabs_size_l .g-tabs__item-counter,.g-tabs_size_l .g-tabs__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-tabs_size_xl{--_--item-height:44px;--_--item-gap:32px;--_--item-border-width:3px}.g-tabs_size_xl .g-tabs__item-counter,.g-tabs_size_xl .g-tabs__item-title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-tabs__item{cursor:pointer;outline:none;-webkit-user-select:none;user-select:none}.g-tabs__item-content{align-items:center;border-radius:var(--g-focus-border-radius);display:flex}.g-tabs__item_overflow .g-tabs__item-content{min-width:0}.g-tabs__item-icon{margin-inline-end:8px}.g-tabs__item-title{white-space:nowrap}.g-tabs__item_overflow .g-tabs__item-title{overflow:hidden;text-overflow:ellipsis}.g-tabs__item-counter,.g-tabs__item-label{margin-inline-start:8px}.g-tabs__item-icon>svg{display:block}.g-tabs_direction_horizontal{align-items:flex-end;box-shadow:inset 0 calc(var(--g-tabs-border-width, 1px)*-1) 0 0 var(--g-color-line-generic);display:flex;flex-wrap:wrap;overflow:hidden}.g-tabs_direction_horizontal .g-tabs__item{align-items:center;border-block-end:var(--g-tabs-item-border-width,var(--_--item-border-width)) solid #0000;box-sizing:border-box;display:flex;height:var(--g-tabs-item-height,var(--_--item-height));padding-block-start:var(--_--item-border-width)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-content{outline:2px solid var(--g-color-line-focus);outline-offset:-2px}.g-tabs_direction_horizontal .g-tabs__item-meta{display:none}.g-tabs_direction_horizontal .g-tabs__item-title{color:var(--g-color-text-secondary)}.g-tabs_direction_horizontal .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item-icon{color:var(--g-color-text-hint)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-title,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-title,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-title{color:var(--g-color-text-primary)}.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item:focus-visible .g-tabs__item-icon,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item:hover .g-tabs__item-icon,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-counter,.g-tabs_direction_horizontal .g-tabs__item_active .g-tabs__item-icon{color:var(--g-color-text-secondary)}.g-tabs_direction_horizontal .g-tabs__item_active,.g-tabs_direction_horizontal .g-tabs__item_active:focus-visible,.g-tabs_direction_horizontal .g-tabs__item_active:hover{border-color:var(--g-color-line-brand)}.g-tabs_direction_horizontal .g-tabs__item_disabled{pointer-events:none}.g-tabs_direction_horizontal .g-tabs__item_disabled .g-tabs__item-title{color:var(--g-color-text-hint)}.g-tabs_direction_horizontal>:not(:last-child){margin-inline-end:var(--g-tabs-item-gap,var(--_--item-gap))}.g-tabs_direction_vertical{display:flex;flex-direction:column}.g-tabs_direction_vertical .g-tabs__item{padding:var(--_--vertical-item-padding)}.g-tabs_direction_vertical .g-tabs__item-title{color:var(--g-color-text-primary);line-height:var(--_--vertical-item-height)}.g-tabs_direction_vertical .g-tabs__item-meta{color:var(--g-color-text-secondary);line-height:var(--_--vertical-item-height)}.g-tabs_direction_vertical .g-tabs__item-counter,.g-tabs_direction_vertical .g-tabs__item-icon{color:var(--g-color-text-secondary)}.g-tabs_direction_vertical .g-tabs__item:focus-visible,.g-tabs_direction_vertical .g-tabs__item:hover{background-color:var(--g-color-base-generic-hover)}.g-tabs_direction_vertical .g-tabs__item_active{background-color:var(--g-color-base-selection)}.g-tabs_direction_vertical .g-tabs__item_active:focus-visible,.g-tabs_direction_vertical .g-tabs__item_active:hover{background-color:var(--g-color-base-selection-hover)}.g-tabs_direction_vertical .g-tabs__item_disabled{pointer-events:none}.g-tabs_direction_vertical .g-tabs__item_disabled .g-tabs__item-title{color:var(--g-color-text-secondary)}.g-outer-additional-content{display:flex;justify-content:space-between;vertical-align:top}.g-outer-additional-content__error,.g-outer-additional-content__note{margin-block-start:2px}.g-outer-additional-content__error{color:var(--g-color-text-danger);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-outer-additional-content__error:not(:last-child){margin-inline-end:var(--g-spacing-2)}.g-outer-additional-content__note{margin-inline-start:auto}.g-text-input{--_--text-color:var(--g-color-text-primary);--_--label-color:inherit;--_--placeholder-color:var(--g-color-text-hint);--_--background-color:#0000;--_--border-width:1px;--_--focus-outline-color:var(--g-text-input-focus-outline-color);display:inline-block;position:relative;width:100%}.g-text-input__content{background-color:var(--g-text-input-background-color,var(--_--background-color));border-color:var(--g-text-input-border-color,var(--_--border-color));border-style:solid;border-width:var(--g-text-input-border-width,var(--_--border-width));box-sizing:border-box;color:var(--g-text-input-text-color,var(--_--text-color));display:flex;overflow:hidden;width:100%}.g-text-input__content:hover{border-color:var(--g-text-input-border-color-hover,var(--_--border-color-hover))}.g-text-input__content:focus-within{border-color:var(--g-text-input-border-color-active,var(--_--border-color-active));outline:2px solid var(--g-text-input-focus-outline-color,var(--_--focus-outline-color));outline-offset:-1px}.g-text-input__control{background-color:initial;border:none;box-sizing:border-box;color:inherit;display:inline-block;flex-grow:1;font-family:var(--g-text-body-font-family);font-weight:var(--g-text-body-font-weight);height:var(--g-text-input-height);margin:0;padding:0;position:relative;vertical-align:top;width:100%}.g-text-input__control::placeholder{color:var(--g-text-input-placeholder-color,var(--_--placeholder-color));overflow:hidden;white-space:nowrap}.g-text-input__control:focus{outline:none}.g-text-input__control[type=number]{appearance:textfield}.g-text-input__label{box-sizing:border-box;color:var(--g-text-input-label-color,var(--_--label-color));overflow:hidden;position:absolute;text-overflow:ellipsis;white-space:nowrap;z-index:1}.g-text-input__clear{flex-shrink:0;margin:auto 0}.g-text-input__clear_size_m,.g-text-input__clear_size_s{margin-inline-end:1px}.g-text-input__clear_size_l,.g-text-input__clear_size_xl{margin-inline-end:2px}.g-text-input__error-icon{box-sizing:initial;color:var(--g-color-text-danger);padding-block:var(--_--error-icon-padding-block);padding-inline:var(--_--error-icon-padding-inline)}.g-text-input__additional-content{align-items:center;display:flex}.g-text-input_size_s{--_--error-icon-padding-block:5px;--_--error-icon-padding-inline:0 5px;--_--border-radius:var(--g-border-radius-s)}.g-text-input_size_s .g-text-input__control{--_--input-control-border-width:var( - --g-text-input-border-width,var(--g-text-area-border-width,1px) - );height:calc(24px - var(--_--input-control-border-width)*2);padding:3px 8px}.g-text-input_size_s .g-text-input__control,.g-text-input_size_s .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_s .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:3px;padding-inline:8px 4px}.g-text-input_size_s.g-text-input_has-start-content .g-text-input__label{padding-inline-start:2px}.g-text-input_size_s .g-text-input__additional-content{height:22px}.g-text-input_size_s .g-text-input__additional-content_placement_start{padding-inline-start:1px}.g-text-input_size_s .g-text-input__additional-content_placement_end{padding-inline-end:1px}.g-text-input_size_m{--_--error-icon-padding-block:5px;--_--error-icon-padding-inline:0 5px;--_--border-radius:var(--g-border-radius-m)}.g-text-input_size_m .g-text-input__control{--_--input-control-border-width:var( - --g-text-input-border-width,var(--g-text-area-border-width,1px) - );height:calc(28px - var(--_--input-control-border-width)*2);padding:5px 8px}.g-text-input_size_m .g-text-input__control,.g-text-input_size_m .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_m .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:5px;padding-inline:8px 4px}.g-text-input_size_m.g-text-input_has-start-content .g-text-input__label{padding-inline-start:2px}.g-text-input_size_m .g-text-input__additional-content{height:26px}.g-text-input_size_m .g-text-input__additional-content_placement_start{padding-inline-start:1px}.g-text-input_size_m .g-text-input__additional-content_placement_end{padding-inline-end:1px}.g-text-input_size_l{--_--error-icon-padding-block:9px;--_--error-icon-padding-inline:0 9px;--_--border-radius:var(--g-border-radius-l)}.g-text-input_size_l .g-text-input__control{--_--input-control-border-width:var( - --g-text-input-border-width,var(--g-text-area-border-width,1px) - );height:calc(36px - var(--_--input-control-border-width)*2);padding:9px 12px}.g-text-input_size_l .g-text-input__control,.g-text-input_size_l .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-short-line-height)}.g-text-input_size_l .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:9px;padding-inline:12px 4px}.g-text-input_size_l.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_l .g-text-input__additional-content{height:34px}.g-text-input_size_l .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_l .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_size_xl{--_--error-icon-padding-block:13px;--_--error-icon-padding-inline:0 13px;--_--border-radius:var(--g-border-radius-xl)}.g-text-input_size_xl .g-text-input__control{--_--input-control-border-width:var( - --g-text-input-border-width,var(--g-text-area-border-width,1px) - );height:calc(44px - var(--_--input-control-border-width)*2);padding:11px 12px}.g-text-input_size_xl .g-text-input__control,.g-text-input_size_xl .g-text-input__label{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-text-input_size_xl .g-text-input__label{font-weight:var(--g-text-accent-font-weight);padding-block:11px;padding-inline:12px 4px}.g-text-input_size_xl.g-text-input_has-start-content .g-text-input__label{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content{height:42px}.g-text-input_size_xl .g-text-input__additional-content_placement_start{padding-inline-start:3px}.g-text-input_size_xl .g-text-input__additional-content_placement_end{padding-inline-end:3px}.g-text-input_view_normal{--_--border-color:var(--g-color-line-generic);--_--border-color-hover:var(--g-color-line-generic-hover);--_--border-color-active:var(--g-color-line-generic-active)}.g-text-input_view_clear{--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000;--_--border-radius:0}.g-text-input_view_clear .g-text-input__content{border-inline:0}.g-text-input_view_clear .g-text-input__control{padding-inline:0}.g-text-input.g-text-input_pin_round-round .g-text-input__content{border-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-brick .g-text-input__content{border-radius:0}.g-text-input.g-text-input_pin_clear-clear .g-text-input__content{border-inline:0;border-radius:0}.g-text-input.g-text-input_pin_circle-circle .g-text-input__content{border-radius:100px}.g-text-input.g-text-input_pin_round-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_brick-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_round-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-inline-end:0;border-start-end-radius:0;border-start-start-radius:var(--g-text-input-border-radius,var(--_--border-radius))}.g-text-input.g-text-input_pin_clear-round .g-text-input__content{border-end-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-end-start-radius:0;border-inline-start:0;border-start-end-radius:var(--g-text-input-border-radius,var(--_--border-radius));border-start-start-radius:0}.g-text-input.g-text-input_pin_brick-clear .g-text-input__content{border-inline-end:0;border-radius:0}.g-text-input.g-text-input_pin_clear-brick .g-text-input__content{border-inline-start:0;border-radius:0}.g-text-input.g-text-input_pin_circle-brick .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_brick-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input.g-text-input_pin_circle-clear .g-text-input__content{border-end-end-radius:0;border-end-start-radius:100px;border-inline-end:0;border-start-end-radius:0;border-start-start-radius:100px}.g-text-input.g-text-input_pin_clear-circle .g-text-input__content{border-end-end-radius:100px;border-end-start-radius:0;border-inline-start:0;border-start-end-radius:100px;border-start-start-radius:0}.g-text-input_disabled{--_--text-color:var(--g-color-text-hint);--_--background-color:var(--g-color-base-generic-accent-disabled);--_--border-color:#0000;--_--border-color-hover:#0000;--_--border-color-active:#0000}.g-text-input_has-scrollbar .g-text-input__clear{inset-inline-end:var(--g-scrollbar-width)}.g-text-input_has-start-content .g-text-input__control{padding-inline-start:2px}.g-text-input_has-end-content .g-text-input__control{padding-inline-end:2px}.g-text-input_has-unstable-end-content{--_--error-icon-padding-inline:0}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:hover{border-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_normal .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within,.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:hover{border-block-end:1px solid var(--g-color-line-danger)}.g-text-input_state_error.g-text-input_view_clear .g-text-input__content:focus-within{--_--focus-outline-color:var(--g-color-line-danger)}.g-clear-button{--g-button-text-color:var(--g-color-text-hint);--g-button-text-color-hover:var(--g-color-text-primary);--g-button-background-color:#0000;--g-button-background-color-hover:#0000}.g-link{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--g-focus-border-radius);cursor:pointer;text-decoration:none;touch-action:manipulation}.g-link:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-link_view_normal{color:var(--g-color-text-link)}.g-link_view_primary{color:var(--g-color-text-primary)}.g-link_view_secondary{color:var(--g-color-text-secondary)}.g-link_view_normal:hover,.g-link_view_primary:hover,.g-link_view_secondary:hover{color:var(--g-color-text-link-hover)}.g-link_visitable:visited{color:var(--g-color-text-link-visited)}.g-link_visitable:visited:hover{color:var(--g-color-text-link-visited-hover)}.g-link_underline{text-decoration:underline}.g-popover{display:inline-block;position:relative}.g-popover:not(.g-popover_disabled){cursor:pointer}.g-popover__handler{display:inline-block}.g-popover__tooltip{--_--padding:16px;--_--close-offset:8px;--_--close-size:24px}.g-popover__tooltip-popup-content{box-sizing:border-box;cursor:default;max-width:var(--g-popover-max-width,300px);min-height:40px;padding:var(--g-popover-padding,var(--_--padding))}.g-popover__tooltip-title{display:inline-flex;font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height);margin:0 0 12px}.g-popover__tooltip-buttons{display:flex;flex-wrap:wrap;gap:5px;margin-block-start:20px}.g-popover__tooltip-button{flex:1 1}.g-popover__tooltip-close{inset-block-start:var(--_--close-offset);inset-inline-end:var(--_--close-offset);position:absolute}.g-popover__tooltip-content{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);overflow-wrap:break-word}.g-popover__tooltip-content_secondary{opacity:.7}.g-popover__tooltip-links>*{margin-block-start:8px}.g-popover__tooltip-links>:first-child{margin-block-start:0}.g-popover__tooltip-content+.g-popover__tooltip-links>:first-child{margin-block-start:12px}.g-popover__tooltip-link{display:inline-block;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-popover__tooltip_theme_announcement .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_announcement.g-popover__tooltip_theme_info,.g-popover__tooltip_theme_info .g-popover__tooltip_theme_announcement,.g-popover__tooltip_theme_info.g-popover__tooltip_theme_info{color:var(--g-color-text-primary)}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button),.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-link);text-decoration:none}.g-popover__tooltip_force-links-appearance.g-popover__tooltip_theme_info .g-popover__tooltip-content a:not(.g-button):hover,.g-popover__tooltip_theme_announcement .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-link-hover)}.g-popover__tooltip_theme_announcement{--g-popup-background-color:var(--g-color-base-simple-hover-solid);--g-popup-border-color:var(--g-color-base-simple-hover-solid)}.g-popover__tooltip_theme_special{--g-popup-background-color:var(--g-color-base-brand);--g-popup-border-color:var(--g-color-base-brand);color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button){color:var(--g-color-text-light-primary);font-weight:var(--g-text-accent-font-weight)}.g-popover__tooltip_theme_special .g-popover__tooltip-content a:not(.g-button):hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_theme_special .g-link{color:var(--g-color-text-light-primary)}.g-popover__tooltip_theme_special .g-link:hover{color:var(--g-color-text-light-secondary)}.g-popover__tooltip_size_l{--_--padding:24px}.g-popover__tooltip_size_l .g-popover__tooltip-title{font-family:var(--g-text-header-font-family);font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height)}.g-popover__tooltip_size_l .g-popover__tooltip-content{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.g-popover__tooltip_with-close .g-popover__tooltip-content,.g-popover__tooltip_with-close .g-popover__tooltip-title{padding-inline-end:calc(var(--_--close-offset) + var(--_--close-size) - var(--_--padding))}.g-popup{--_--background-color:var(--g-popup-background-color,var(--g-color-base-float));--_--border-color:var(--g-popup-border-color,var(--g-color-line-generic-solid));--_--border-width:var(--g-popup-border-width,1px);visibility:hidden;z-index:1000}.g-popup_exit_active,.g-popup_open{visibility:visible}.g-popup_exit_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom}.g-popup_exit_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top}.g-popup_exit_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left}.g-popup_exit_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right}.g-popup_appear_active[data-popper-placement*=bottom] .g-popup__content,.g-popup_enter_active[data-popper-placement*=bottom] .g-popup__content{animation-name:g-popup-bottom-open}.g-popup_appear_active[data-popper-placement*=top] .g-popup__content,.g-popup_enter_active[data-popper-placement*=top] .g-popup__content{animation-name:g-popup-top-open}.g-popup_appear_active[data-popper-placement*=left] .g-popup__content,.g-popup_enter_active[data-popper-placement*=left] .g-popup__content{animation-name:g-popup-left-open}.g-popup_appear_active[data-popper-placement*=right] .g-popup__content,.g-popup_enter_active[data-popper-placement*=right] .g-popup__content{animation-name:g-popup-right-open}.g-popup[data-popper-placement*=bottom] .g-popup__arrow{inset-block-start:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow{inset-block-end:-9px}.g-popup[data-popper-placement*=top] .g-popup__arrow-content{transform:rotate(180deg)}.g-popup[data-popper-placement*=left] .g-popup__arrow{right:-9px}.g-popup[data-popper-placement*=left] .g-popup__arrow-content{transform:rotate(90deg)}.g-popup[data-popper-placement*=right] .g-popup__arrow{left:-9px}.g-popup[data-popper-placement*=right] .g-popup__arrow-content{transform:rotate(-90deg)}.g-popup__content{animation-duration:.1s;animation-fill-mode:forwards;animation-timing-function:ease-out;background-color:var(--_--background-color);border-radius:4px;box-shadow:0 0 0 var(--_--border-width) var(--_--border-color),0 8px 20px var(--_--border-width) var(--g-color-sfx-shadow);outline:none;position:relative}.g-popup__content>.g-popup__arrow+*,.g-popup__content>:first-child:not(.g-popup__arrow){border-start-end-radius:inherit;border-start-start-radius:inherit}.g-popup__content>:last-child{border-end-end-radius:inherit;border-end-start-radius:inherit}.g-popup__arrow-content{display:flex;height:18px;overflow:hidden;position:relative;width:18px}.g-popup__arrow-circle-wrapper{background-color:initial;height:9px;overflow:hidden;position:relative;width:9px}.g-popup__arrow-circle{border-radius:50%;box-shadow:inset 0 0 0 calc(5px - var(--_--border-width)) var(--_--background-color),inset 0 0 0 5px var(--_--border-color);box-sizing:border-box;height:30px;position:absolute;width:28px}.g-popup__arrow-circle_left{inset-block-end:-4px;inset-inline-end:-5px}.g-popup__arrow-circle_right{inset-block-end:-4px;inset-inline-start:-5px}@keyframes g-popup-bottom{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}@keyframes g-popup-bottom-open{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-top{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}@keyframes g-popup-top-open{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes g-popup-left{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}@keyframes g-popup-left-open{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes g-popup-right{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(10px)}}@keyframes g-popup-right-open{0%{opacity:0;transform:translateX(10px)}to{opacity:1;transform:translateX(0)}}.g-portal__theme-wrapper{display:contents}@keyframes g-pulse{50%{opacity:15%}}.g-loader{align-items:center;display:inline-flex}.g-loader__center,.g-loader__left,.g-loader__right{animation:g-pulse .8s ease infinite;background:var(--g-color-base-brand)}.g-loader__left{animation-delay:.2s}.g-loader__center{animation-delay:.4s}.g-loader__right{animation-delay:.6s}.g-loader_size_s .g-loader__left{height:13.33333px;width:5px}.g-loader_size_s .g-loader__center{height:20px;margin-inline-start:5px;width:5px}.g-loader_size_s .g-loader__right{height:13.33333px;margin-inline-start:5px;width:5px}.g-loader_size_m .g-loader__left{height:18.66667px;width:7px}.g-loader_size_m .g-loader__center{height:28px;margin-inline-start:7px;width:7px}.g-loader_size_m .g-loader__right{height:18.66667px;margin-inline-start:7px;width:7px}.g-loader_size_l .g-loader__left{height:24px;width:9px}.g-loader_size_l .g-loader__center{height:36px;margin-inline-start:9px;width:9px}.g-loader_size_l .g-loader__right{height:24px;margin-inline-start:9px;width:9px}.g-s__m_0{margin:var(--g-spacing-0)}.g-s__mr_0{margin-inline-end:var(--g-spacing-0)}.g-s__ml_0{margin-inline-start:var(--g-spacing-0)}.g-s__mt_0{margin-block-start:var(--g-spacing-0)}.g-s__mb_0{margin-block-end:var(--g-spacing-0)}.g-s__mx_0{margin-inline:var(--g-spacing-0)}.g-s__my_0{margin-block:var(--g-spacing-0)}.g-s__p_0{padding:var(--g-spacing-0)}.g-s__pl_0{padding-inline-start:var(--g-spacing-0)}.g-s__pr_0{padding-inline-end:var(--g-spacing-0)}.g-s__pb_0{padding-block-end:var(--g-spacing-0)}.g-s__pt_0{padding-block-start:var(--g-spacing-0)}.g-s__py_0{padding-block:var(--g-spacing-0)}.g-s__px_0{padding-inline:var(--g-spacing-0)}.g-s__m_half{margin:var(--g-spacing-half)}.g-s__mr_half{margin-inline-end:var(--g-spacing-half)}.g-s__ml_half{margin-inline-start:var(--g-spacing-half)}.g-s__mt_half{margin-block-start:var(--g-spacing-half)}.g-s__mb_half{margin-block-end:var(--g-spacing-half)}.g-s__mx_half{margin-inline:var(--g-spacing-half)}.g-s__my_half{margin-block:var(--g-spacing-half)}.g-s__p_half{padding:var(--g-spacing-half)}.g-s__pl_half{padding-inline-start:var(--g-spacing-half)}.g-s__pr_half{padding-inline-end:var(--g-spacing-half)}.g-s__pb_half{padding-block-end:var(--g-spacing-half)}.g-s__pt_half{padding-block-start:var(--g-spacing-half)}.g-s__py_half{padding-block:var(--g-spacing-half)}.g-s__px_half{padding-inline:var(--g-spacing-half)}.g-s__m_1{margin:var(--g-spacing-1)}.g-s__mr_1{margin-inline-end:var(--g-spacing-1)}.g-s__ml_1{margin-inline-start:var(--g-spacing-1)}.g-s__mt_1{margin-block-start:var(--g-spacing-1)}.g-s__mb_1{margin-block-end:var(--g-spacing-1)}.g-s__mx_1{margin-inline:var(--g-spacing-1)}.g-s__my_1{margin-block:var(--g-spacing-1)}.g-s__p_1{padding:var(--g-spacing-1)}.g-s__pl_1{padding-inline-start:var(--g-spacing-1)}.g-s__pr_1{padding-inline-end:var(--g-spacing-1)}.g-s__pb_1{padding-block-end:var(--g-spacing-1)}.g-s__pt_1{padding-block-start:var(--g-spacing-1)}.g-s__py_1{padding-block:var(--g-spacing-1)}.g-s__px_1{padding-inline:var(--g-spacing-1)}.g-s__m_2{margin:var(--g-spacing-2)}.g-s__mr_2{margin-inline-end:var(--g-spacing-2)}.g-s__ml_2{margin-inline-start:var(--g-spacing-2)}.g-s__mt_2{margin-block-start:var(--g-spacing-2)}.g-s__mb_2{margin-block-end:var(--g-spacing-2)}.g-s__mx_2{margin-inline:var(--g-spacing-2)}.g-s__my_2{margin-block:var(--g-spacing-2)}.g-s__p_2{padding:var(--g-spacing-2)}.g-s__pl_2{padding-inline-start:var(--g-spacing-2)}.g-s__pr_2{padding-inline-end:var(--g-spacing-2)}.g-s__pb_2{padding-block-end:var(--g-spacing-2)}.g-s__pt_2{padding-block-start:var(--g-spacing-2)}.g-s__py_2{padding-block:var(--g-spacing-2)}.g-s__px_2{padding-inline:var(--g-spacing-2)}.g-s__m_3{margin:var(--g-spacing-3)}.g-s__mr_3{margin-inline-end:var(--g-spacing-3)}.g-s__ml_3{margin-inline-start:var(--g-spacing-3)}.g-s__mt_3{margin-block-start:var(--g-spacing-3)}.g-s__mb_3{margin-block-end:var(--g-spacing-3)}.g-s__mx_3{margin-inline:var(--g-spacing-3)}.g-s__my_3{margin-block:var(--g-spacing-3)}.g-s__p_3{padding:var(--g-spacing-3)}.g-s__pl_3{padding-inline-start:var(--g-spacing-3)}.g-s__pr_3{padding-inline-end:var(--g-spacing-3)}.g-s__pb_3{padding-block-end:var(--g-spacing-3)}.g-s__pt_3{padding-block-start:var(--g-spacing-3)}.g-s__py_3{padding-block:var(--g-spacing-3)}.g-s__px_3{padding-inline:var(--g-spacing-3)}.g-s__m_4{margin:var(--g-spacing-4)}.g-s__mr_4{margin-inline-end:var(--g-spacing-4)}.g-s__ml_4{margin-inline-start:var(--g-spacing-4)}.g-s__mt_4{margin-block-start:var(--g-spacing-4)}.g-s__mb_4{margin-block-end:var(--g-spacing-4)}.g-s__mx_4{margin-inline:var(--g-spacing-4)}.g-s__my_4{margin-block:var(--g-spacing-4)}.g-s__p_4{padding:var(--g-spacing-4)}.g-s__pl_4{padding-inline-start:var(--g-spacing-4)}.g-s__pr_4{padding-inline-end:var(--g-spacing-4)}.g-s__pb_4{padding-block-end:var(--g-spacing-4)}.g-s__pt_4{padding-block-start:var(--g-spacing-4)}.g-s__py_4{padding-block:var(--g-spacing-4)}.g-s__px_4{padding-inline:var(--g-spacing-4)}.g-s__m_5{margin:var(--g-spacing-5)}.g-s__mr_5{margin-inline-end:var(--g-spacing-5)}.g-s__ml_5{margin-inline-start:var(--g-spacing-5)}.g-s__mt_5{margin-block-start:var(--g-spacing-5)}.g-s__mb_5{margin-block-end:var(--g-spacing-5)}.g-s__mx_5{margin-inline:var(--g-spacing-5)}.g-s__my_5{margin-block:var(--g-spacing-5)}.g-s__p_5{padding:var(--g-spacing-5)}.g-s__pl_5{padding-inline-start:var(--g-spacing-5)}.g-s__pr_5{padding-inline-end:var(--g-spacing-5)}.g-s__pb_5{padding-block-end:var(--g-spacing-5)}.g-s__pt_5{padding-block-start:var(--g-spacing-5)}.g-s__py_5{padding-block:var(--g-spacing-5)}.g-s__px_5{padding-inline:var(--g-spacing-5)}.g-s__m_6{margin:var(--g-spacing-6)}.g-s__mr_6{margin-inline-end:var(--g-spacing-6)}.g-s__ml_6{margin-inline-start:var(--g-spacing-6)}.g-s__mt_6{margin-block-start:var(--g-spacing-6)}.g-s__mb_6{margin-block-end:var(--g-spacing-6)}.g-s__mx_6{margin-inline:var(--g-spacing-6)}.g-s__my_6{margin-block:var(--g-spacing-6)}.g-s__p_6{padding:var(--g-spacing-6)}.g-s__pl_6{padding-inline-start:var(--g-spacing-6)}.g-s__pr_6{padding-inline-end:var(--g-spacing-6)}.g-s__pb_6{padding-block-end:var(--g-spacing-6)}.g-s__pt_6{padding-block-start:var(--g-spacing-6)}.g-s__py_6{padding-block:var(--g-spacing-6)}.g-s__px_6{padding-inline:var(--g-spacing-6)}.g-s__m_7{margin:var(--g-spacing-7)}.g-s__mr_7{margin-inline-end:var(--g-spacing-7)}.g-s__ml_7{margin-inline-start:var(--g-spacing-7)}.g-s__mt_7{margin-block-start:var(--g-spacing-7)}.g-s__mb_7{margin-block-end:var(--g-spacing-7)}.g-s__mx_7{margin-inline:var(--g-spacing-7)}.g-s__my_7{margin-block:var(--g-spacing-7)}.g-s__p_7{padding:var(--g-spacing-7)}.g-s__pl_7{padding-inline-start:var(--g-spacing-7)}.g-s__pr_7{padding-inline-end:var(--g-spacing-7)}.g-s__pb_7{padding-block-end:var(--g-spacing-7)}.g-s__pt_7{padding-block-start:var(--g-spacing-7)}.g-s__py_7{padding-block:var(--g-spacing-7)}.g-s__px_7{padding-inline:var(--g-spacing-7)}.g-s__m_8{margin:var(--g-spacing-8)}.g-s__mr_8{margin-inline-end:var(--g-spacing-8)}.g-s__ml_8{margin-inline-start:var(--g-spacing-8)}.g-s__mt_8{margin-block-start:var(--g-spacing-8)}.g-s__mb_8{margin-block-end:var(--g-spacing-8)}.g-s__mx_8{margin-inline:var(--g-spacing-8)}.g-s__my_8{margin-block:var(--g-spacing-8)}.g-s__p_8{padding:var(--g-spacing-8)}.g-s__pl_8{padding-inline-start:var(--g-spacing-8)}.g-s__pr_8{padding-inline-end:var(--g-spacing-8)}.g-s__pb_8{padding-block-end:var(--g-spacing-8)}.g-s__pt_8{padding-block-start:var(--g-spacing-8)}.g-s__py_8{padding-block:var(--g-spacing-8)}.g-s__px_8{padding-inline:var(--g-spacing-8)}.g-s__m_9{margin:var(--g-spacing-9)}.g-s__mr_9{margin-inline-end:var(--g-spacing-9)}.g-s__ml_9{margin-inline-start:var(--g-spacing-9)}.g-s__mt_9{margin-block-start:var(--g-spacing-9)}.g-s__mb_9{margin-block-end:var(--g-spacing-9)}.g-s__mx_9{margin-inline:var(--g-spacing-9)}.g-s__my_9{margin-block:var(--g-spacing-9)}.g-s__p_9{padding:var(--g-spacing-9)}.g-s__pl_9{padding-inline-start:var(--g-spacing-9)}.g-s__pr_9{padding-inline-end:var(--g-spacing-9)}.g-s__pb_9{padding-block-end:var(--g-spacing-9)}.g-s__pt_9{padding-block-start:var(--g-spacing-9)}.g-s__py_9{padding-block:var(--g-spacing-9)}.g-s__px_9{padding-inline:var(--g-spacing-9)}.g-s__m_10{margin:var(--g-spacing-10)}.g-s__mr_10{margin-inline-end:var(--g-spacing-10)}.g-s__ml_10{margin-inline-start:var(--g-spacing-10)}.g-s__mt_10{margin-block-start:var(--g-spacing-10)}.g-s__mb_10{margin-block-end:var(--g-spacing-10)}.g-s__mx_10{margin-inline:var(--g-spacing-10)}.g-s__my_10{margin-block:var(--g-spacing-10)}.g-s__p_10{padding:var(--g-spacing-10)}.g-s__pl_10{padding-inline-start:var(--g-spacing-10)}.g-s__pr_10{padding-inline-end:var(--g-spacing-10)}.g-s__pb_10{padding-block-end:var(--g-spacing-10)}.g-s__pt_10{padding-block-start:var(--g-spacing-10)}.g-s__py_10{padding-block:var(--g-spacing-10)}.g-s__px_10{padding-inline:var(--g-spacing-10)}.g-box{box-sizing:border-box}.g-box_overflow_hidden{overflow:hidden}.g-box_overflow_auto{overflow:auto}.g-box_overflow_x{overflow:hidden auto}.g-box_overflow_y{overflow:auto hidden}.g-flex{display:flex}.g-flex_inline{display:inline-flex}.g-flex_center-content{align-items:center;justify-content:center}.g-flex_s_0{margin-block-start:calc(var(--g-spacing-0)*-1)!important;margin-inline-start:calc(var(--g-spacing-0)*-1)!important}.g-flex_s_0>*{padding-block-start:var(--g-spacing-0)!important;padding-inline-start:var(--g-spacing-0)!important}.g-flex_s_half{margin-block-start:calc(var(--g-spacing-half)*-1)!important;margin-inline-start:calc(var(--g-spacing-half)*-1)!important}.g-flex_s_half>*{padding-block-start:var(--g-spacing-half)!important;padding-inline-start:var(--g-spacing-half)!important}.g-flex_s_1{margin-block-start:calc(var(--g-spacing-1)*-1)!important;margin-inline-start:calc(var(--g-spacing-1)*-1)!important}.g-flex_s_1>*{padding-block-start:var(--g-spacing-1)!important;padding-inline-start:var(--g-spacing-1)!important}.g-flex_s_2{margin-block-start:calc(var(--g-spacing-2)*-1)!important;margin-inline-start:calc(var(--g-spacing-2)*-1)!important}.g-flex_s_2>*{padding-block-start:var(--g-spacing-2)!important;padding-inline-start:var(--g-spacing-2)!important}.g-flex_s_3{margin-block-start:calc(var(--g-spacing-3)*-1)!important;margin-inline-start:calc(var(--g-spacing-3)*-1)!important}.g-flex_s_3>*{padding-block-start:var(--g-spacing-3)!important;padding-inline-start:var(--g-spacing-3)!important}.g-flex_s_4{margin-block-start:calc(var(--g-spacing-4)*-1)!important;margin-inline-start:calc(var(--g-spacing-4)*-1)!important}.g-flex_s_4>*{padding-block-start:var(--g-spacing-4)!important;padding-inline-start:var(--g-spacing-4)!important}.g-flex_s_5{margin-block-start:calc(var(--g-spacing-5)*-1)!important;margin-inline-start:calc(var(--g-spacing-5)*-1)!important}.g-flex_s_5>*{padding-block-start:var(--g-spacing-5)!important;padding-inline-start:var(--g-spacing-5)!important}.g-flex_s_6{margin-block-start:calc(var(--g-spacing-6)*-1)!important;margin-inline-start:calc(var(--g-spacing-6)*-1)!important}.g-flex_s_6>*{padding-block-start:var(--g-spacing-6)!important;padding-inline-start:var(--g-spacing-6)!important}.g-flex_s_7{margin-block-start:calc(var(--g-spacing-7)*-1)!important;margin-inline-start:calc(var(--g-spacing-7)*-1)!important}.g-flex_s_7>*{padding-block-start:var(--g-spacing-7)!important;padding-inline-start:var(--g-spacing-7)!important}.g-flex_s_8{margin-block-start:calc(var(--g-spacing-8)*-1)!important;margin-inline-start:calc(var(--g-spacing-8)*-1)!important}.g-flex_s_8>*{padding-block-start:var(--g-spacing-8)!important;padding-inline-start:var(--g-spacing-8)!important}.g-flex_s_9{margin-block-start:calc(var(--g-spacing-9)*-1)!important;margin-inline-start:calc(var(--g-spacing-9)*-1)!important}.g-flex_s_9>*{padding-block-start:var(--g-spacing-9)!important;padding-inline-start:var(--g-spacing-9)!important}.g-flex_s_10{margin-block-start:calc(var(--g-spacing-10)*-1)!important;margin-inline-start:calc(var(--g-spacing-10)*-1)!important}.g-flex_s_10>*{padding-block-start:var(--g-spacing-10)!important;padding-inline-start:var(--g-spacing-10)!important}.kv-ydb-internal-user{align-items:center;display:flex;flex-grow:1;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-ydb-internal-user__user-info-wrapper{display:flex;flex-direction:column}.kv-ydb-internal-user__ydb-internal-user-title{font-weight:500}.kv-ydb-internal-user__ydb-user-wrapper{padding:10px;width:300px}.ydb-link-with-icon{align-items:center;display:flex;flex-wrap:nowrap;white-space:nowrap}.ydb-node-endpoints-tooltip-content .info-viewer__value{min-width:70px}.ydb-node-endpoints-tooltip-content__list-container{padding-right:20px}.ydb-node-endpoints-tooltip-content__definition{text-align:right;word-break:break-word}.g-clipboard-button__icon{pointer-events:none}.g-action-tooltip{--g-popup-border-width:0;--g-popup-background-color:var(--g-color-base-float-heavy)}.g-action-tooltip__content{box-sizing:border-box;color:var(--g-color-text-light-primary);max-width:300px;padding:6px 12px}.g-action-tooltip__heading{align-items:baseline;display:flex;justify-content:space-between}.g-action-tooltip__title{color:var(--g-color-text-light-primary)}.g-action-tooltip__hotkey{margin-inline-start:8px}.g-action-tooltip__description{color:var(--g-color-text-light-secondary);margin-block-start:4px}.g-hotkey{border-radius:4px;padding:1px 5px}.g-hotkey,.g-hotkey kbd{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.g-hotkey_view_light{background-color:var(--g-color-base-generic)}.g-hotkey_view_light .g-hotkey__plus{color:var(--g-color-text-hint)}.g-hotkey_view_dark{background-color:var(--g-color-base-light-simple-hover);color:var(--g-color-text-light-complementary)}.g-hotkey_view_dark .g-hotkey__plus{color:var(--g-color-text-light-hint)}.g-help-mark__button{background:none;border:none;color:inherit;color:var(--g-color-text-hint);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-help-mark__button:focus-visible{border-radius:50%;outline:2px solid var(--g-color-line-focus)}.g-definition-list{--_--item-block-start:var(--g-spacing-4);--_--term-width:300px;margin:0}.g-definition-list__item{align-items:baseline;display:flex;gap:var(--g-spacing-1)}.g-definition-list__item+.g-definition-list__item{margin-block-start:var(--g-definition-list-item-gap,var(--_--item-block-start))}.g-definition-list__term-container{align-items:baseline;display:flex;flex:0 0 auto;max-width:var(--_--term-width);overflow:hidden;position:relative;width:var(--_--term-width)}.g-definition-list__term-wrapper{color:var(--g-color-text-secondary)}.g-definition-list__dots{border-block-end:1px dotted var(--g-color-line-generic-active);box-sizing:border-box;flex:1 0 auto;margin:0 2px;min-width:25px}.g-definition-list__definition{flex:0 1 auto;margin:0}.g-definition-list_responsive .g-definition-list__term-container{--_--term-width:auto;flex:1 0 min-content}.g-definition-list_vertical{--_--item-block-start:var(--g-spacing-3);--_--term-width:auto}.g-definition-list_vertical .g-definition-list__term-container{flex:1 0 auto}.g-definition-list_vertical .g-definition-list__item{flex-direction:column;gap:var(--g-spacing-half)}.g-definition-list__copy-container{align-items:center;display:inline-flex;margin-inline-end:calc(var(--g-spacing-7)*-1);padding-inline-end:var(--g-spacing-7);position:relative}.g-definition-list__copy-container:hover .g-definition-list__copy-button{opacity:1}.g-definition-list__copy-button{display:inline-block;inset-inline-end:0;margin-inline-start:10px;opacity:0;position:absolute}.g-definition-list__copy-button:focus-visible{opacity:1}.info-viewer{--ydb-info-viewer-font-size:var(--g-text-body-2-font-size);--ydb-info-viewer-line-height:var(--g-text-body-2-line-height);--ydb-info-viewer-title-font-weight:600;--ydb-info-viewer-title-margin:15px 0 10px;--ydb-info-viewer-items-gap:7px;font-size:var(--ydb-info-viewer-font-size);line-height:var(--ydb-info-viewer-line-height)}.info-viewer__title{font-weight:var(--ydb-info-viewer-title-font-weight);margin:var(--ydb-info-viewer-title-margin)}.info-viewer__items{display:flex;flex-direction:column;gap:var(--ydb-info-viewer-items-gap);max-width:100%}.info-viewer__row{align-items:baseline;display:flex;max-width:100%;padding-top:4px}.info-viewer__label{align-items:baseline;color:var(--g-color-text-secondary);display:flex;flex:0 1 auto;min-width:200px;white-space:nowrap}.info-viewer__label-text_multiline{max-width:180px;overflow:visible;white-space:normal}.info-viewer__dots{border-bottom:1px dotted var(--g-color-text-secondary);display:flex;flex:1 1 auto;margin:0 2px}.info-viewer__value{display:flex;min-width:130px;word-break:break-all}.info-viewer_size_s{--ydb-info-viewer-font-size:var(--g-text-body-1-font-size);--ydb-info-viewer-line-height:var(--g-text-body-1-line-height);--ydb-info-viewer-title-font-weight:500;--ydb-info-viewer-title-margin:0 0 4px;--ydb-info-viewer-items-gap:4px}.info-viewer_size_s .info-viewer__row{height:auto}.info-viewer_size_s .info-viewer__label{min-width:85px}.popup2{animation:none!important;max-width:300px}.histogram-tooltip,.node-tootltip,.tabletsOverall-tooltip{padding:10px}.histogram-tooltip__label,.node-tootltip__label,.tabletsOverall-tooltip__label{color:var(--g-color-text-secondary);padding-right:15px}.json-tooltip{padding:20px 20px 20px 0}.json-tooltip__inspector{word-wrap:break-word;font-family:var(--g-font-family-monospace)!important;font-size:var(--g-text-code-1-font-size)!important;line-height:var(--g-text-code-1-line-height)!important;width:100%}.json-tooltip__inspector .json-inspector__leaf_composite:before{color:var(--g-color-text-secondary);font-size:9px;left:20px;position:absolute}.json-tooltip__inspector .json-inspector__leaf_composite.json-inspector__leaf_root:before{left:0}.json-tooltip__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:"[+]"}.json-tooltip__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before{content:"[-]"}.json-tooltip__inspector .json-inspector__key{color:var(--g-color-text-misc)}.json-tooltip__inspector .json-inspector__leaf{padding-left:20px;position:relative}.json-tooltip__inspector .json-inspector__leaf_root{padding-left:0}.json-tooltip__inspector .json-inspector__line{padding-left:20px}.json-tooltip__inspector .json-inspector__toolbar{border:1px solid var(--g-color-line-generic);border-radius:4px;margin-bottom:10px;width:300px}.json-tooltip__inspector .json-inspector__search{background:none;border:0 solid #0000;border-width:0 22px 0 8px;box-sizing:border-box;color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:13px;height:28px;margin:0;outline:0;padding:0;vertical-align:top;width:300px}.json-tooltip__inspector .json-inspector__value_helper{color:var(--g-color-text-secondary)}.json-tooltip__inspector .json-inspector__line:hover:after{background:var(--g-color-base-simple-hover)}.json-tooltip__inspector .json-inspector__show-original:before{color:var(--g-color-text-secondary)}.json-tooltip__inspector .json-inspector__show-original:hover:after,.json-tooltip__inspector .json-inspector__show-original:hover:before{color:var(--g-color-text-primary)}.json-tooltip__inspector .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite{max-width:calc(100% - 50px)}.json-tooltip__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before,.json-tooltip__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:""}.json-tooltip__inspector .json-inspector__line:hover:after{background:#0000}.json-tooltip__inspector .json-inspector__show-original:hover:after,.json-tooltip__inspector .json-inspector__show-original:hover:before{color:#0000}.json-tooltip__inspector .json-inspector__value_helper{display:none}.cell-tooltip{padding:10px;word-break:break-word}.empty-state{padding:20px}.empty-state_size_m{height:400px}.empty-state__wrapper{display:grid;grid-template-areas:"image title" "image description" "image actions"}.empty-state__wrapper_size_s{height:120px;width:460px}.empty-state__wrapper_size_m{height:240px;width:800px}.empty-state__wrapper_position_center{margin:0 auto;position:relative}.empty-state__image{color:var(--g-color-base-info-light-hover);grid-area:image;justify-self:end;margin-right:60px}.g-root_theme_dark .empty-state__image{color:var(--g-color-base-generic)}.empty-state__title{align-self:center;font-weight:500;grid-area:title}.empty-state__title_size_s{font-size:var(--g-text-subheader-3-font-size);line-height:var(--g-text-subheader-3-line-height)}.empty-state__title_size_m{font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.empty-state__description{font-size:var(--g-text-body-2-font-size);grid-area:description;line-height:var(--g-text-body-2-line-height)}.empty-state__actions{grid-area:actions}.empty-state__actions>*{margin-right:8px}.ydb-loader{flex:1 1 auto}.authentication,.ydb-loader{align-items:center;display:flex;height:100%;justify-content:center}.authentication{background-blend-mode:normal;background-color:#b8d4fd1a;background-image:radial-gradient(at 0 100%,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 55% 0,#0066ff26 20%,#f7f7f700 40%),radial-gradient(at 110% 100%,#0066ff26 20%,#f7f7f700 40%)}.authentication .g-text-input{display:flex}.authentication__header{align-items:center;display:flex;font-size:var(--g-text-body-1-font-size);justify-content:space-between;line-height:var(--g-text-header-1-line-height);width:100%}.authentication__logo{align-items:center;display:flex;font-size:16px;font-weight:600;gap:8px}.authentication__title{font-size:var(--g-text-header-2-font-size);font-weight:600;line-height:var(--g-text-header-2-line-height);margin:34px 0 16px}.authentication__form-wrapper{align-items:center;background-color:var(--g-color-base-background);border-radius:16px;display:flex;flex-direction:column;flex-shrink:0;justify-content:center;min-width:320px;padding:40px;width:400px}.authentication__field-wrapper{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:16px;width:320px}.authentication__field-wrapper .g-text-input_state_error{flex-direction:column}.authentication__button-sign-in{display:inline-flex;justify-content:center}.authentication__show-password-button{margin-left:4px}.authentication__close{position:absolute;right:40px;top:40px}.tablet-icon{border:1px solid;border-radius:4px;display:flex;font-size:10px;height:16px;justify-content:center;text-transform:uppercase;width:23px}.tablet-icon__type{line-height:14px}.header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;flex:0 0 40px;justify-content:space-between;padding:0 20px 0 12px}.header__breadcrumbs-item{color:var(--g-color-text-secondary);display:flex;gap:3px}.header__breadcrumbs-item_link:hover{color:var(--g-color-text-complementary)}.header__breadcrumbs-item_active{color:var(--g-color-text-primary)}.header__breadcrumbs-icon{align-items:center;display:flex}.g-menu{background-color:var(--g-color-base-float);box-sizing:border-box;color:var(--g-color-text-primary);display:block;font-size:var(--g-text-body-1-font-size);list-style:none;margin:0;outline:none;overflow:hidden auto;padding:0;-webkit-user-select:none;user-select:none}.g-menu__list-group-item+.g-menu__list-group-item,.g-menu__list-group-item+.g-menu__list-item,.g-menu__list-item+.g-menu__list-group-item{border-block-start:1px solid var(--g-color-line-generic)}.g-menu__item{-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;color:var(--g-color-text-primary);display:flex;outline:none;text-decoration:none;touch-action:manipulation}.g-menu__item-icon{display:flex}.g-menu__item-icon-end{display:flex;margin-inline-end:0}.g-menu__item-content{flex-grow:1;min-width:0}.g-menu__item_interactive{cursor:pointer}.g-menu__item_interactive:focus-visible,.g-menu__item_interactive:hover,.g-menu__item_selected{background-color:var(--g-color-base-simple-hover)}.g-menu__item_disabled{color:var(--g-color-text-secondary);cursor:default;pointer-events:none}.g-menu__item_disabled:hover{background-color:initial}.g-menu__item_active{background-color:var(--g-color-base-selection);cursor:default}.g-menu__item_active:focus-visible,.g-menu__item_active:hover{background-color:var(--g-color-base-selection-hover)}.g-menu__item_theme_danger:not(.g-menu__item_disabled){color:var(--g-color-text-danger)}.g-menu__group-label{color:var(--g-color-text-hint);font-weight:var(--g-text-accent-font-weight)}.g-menu__group-list{list-style:none;margin:0;padding:0}.g-menu_size_s{line-height:24px;padding:3px 0}.g-menu_size_s .g-menu__group-label,.g-menu_size_s .g-menu__item{padding:0 10px}.g-menu_size_s .g-menu__item-icon{margin-inline-end:3px}.g-menu_size_s .g-menu__item-icon-end{margin-inline-start:3px}.g-menu_size_s .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_s .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_s .g-menu__list-item+.g-menu__list-group-item{margin-block-start:3px;padding-block-start:3px}.g-menu_size_m{line-height:24px;padding:4px 0}.g-menu_size_m .g-menu__group-label,.g-menu_size_m .g-menu__item{padding:0 13px}.g-menu_size_m .g-menu__item-icon{margin-inline-end:4px}.g-menu_size_m .g-menu__item-icon-end{margin-inline-start:4px}.g-menu_size_m .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_m .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_m .g-menu__list-item+.g-menu__list-group-item{margin-block-start:4px;padding-block-start:4px}.g-menu_size_l{line-height:28px;padding:5px 0}.g-menu_size_l .g-menu__group-label,.g-menu_size_l .g-menu__item{padding:0 15px}.g-menu_size_l .g-menu__item-icon{margin-inline-end:5px}.g-menu_size_l .g-menu__item-icon-end{margin-inline-start:5px}.g-menu_size_l .g-menu__list-group-item+.g-menu__list-group-item,.g-menu_size_l .g-menu__list-group-item+.g-menu__list-item,.g-menu_size_l .g-menu__list-item+.g-menu__list-group-item{margin-block-start:5px;padding-block-start:5px}.g-menu_size_xl{font-size:var(--g-text-body-2-font-size);line-height:36px;padding:6px 0}.g-menu_size_xl .g-menu__group-label,.g-menu_size_xl .g-menu__item{padding:0 15px}.g-menu_size_xl .g-menu__item-icon{margin-inline-end:6px}.g-menu_size_xl .g-menu__item-icon-end{margin-inline-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:first-child){margin-block-start:6px;padding-block-start:6px}.g-menu_size_xl .g-menu__list-group-item:not(:last-child){margin-block-end:6px;padding-block-end:6px}.g-dropdown-menu__switcher-wrapper{display:inline-block}.g-dropdown-menu__switcher-button{display:flex}.g-dropdown-menu__menu-item_separator{border-block-start:1px solid var(--g-color-line-generic-solid);margin:.5em 0;pointer-events:none}.g-dropdown-menu__sub-menu-arrow{inset-inline-end:-4px;position:relative}.g-dropdown-menu__sub-menu{position:relative}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after,.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{content:"";height:100%;inset-block-start:0;position:absolute;width:10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:before{inset-inline-start:-10px}.g-dropdown-menu__sub-menu .g-dropdown-menu__menu:after{inset-inline-end:-10px}.g-breadcrumbs__inner{align-items:center;display:inline-flex;gap:4px;min-height:24px;overflow:hidden;width:100%}.g-breadcrumbs__switcher{background:none;border:none;color:inherit;color:var(--g-color-text-secondary);cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.g-breadcrumbs__switcher:focus-visible{outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs__item,.g-breadcrumbs__switcher{display:inline-block;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.g-breadcrumbs__item:focus-visible,.g-breadcrumbs__switcher:focus-visible{border-radius:var(--g-focus-border-radius);outline:2px solid var(--g-color-line-focus)}.g-breadcrumbs_calculated_no .g-breadcrumbs__item{overflow:visible}.g-breadcrumbs__divider{align-items:center;color:var(--g-color-text-secondary);display:flex}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item .g-menu__item{padding-inline-start:80px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(0) .g-menu__item{padding-inline-start:0!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:first-child .g-menu__item{padding-inline-start:8px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(2) .g-menu__item{padding-inline-start:16px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(3) .g-menu__item{padding-inline-start:24px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(4) .g-menu__item{padding-inline-start:32px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(5) .g-menu__item{padding-inline-start:40px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(6) .g-menu__item{padding-inline-start:48px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(7) .g-menu__item{padding-inline-start:56px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(8) .g-menu__item{padding-inline-start:64px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(9) .g-menu__item{padding-inline-start:72px!important}.g-breadcrumbs__popup_staircase .g-menu .g-menu__list-item:nth-child(10) .g-menu__item{padding-inline-start:80px!important}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}*{font-feature-settings:"tnum";box-sizing:border-box;font-variant-numeric:tabular-nums}.g-select-popup__tick-icon{box-sizing:initial}#root,body,html{box-sizing:border-box;height:100%;margin:0;overflow:auto;padding:0}:root{--g-color-base-yellow-light:#ffc70026;--g-color-base-yellow-medium:#ffdb4d66;--tenant-object-info-max-value-width:300px;--diagnostics-section-title-margin:20px;--diagnostics-section-margin:30px;--diagnostics-section-table-width:872px}.g-root{--ydb-data-table-color-hover:var(--g-color-base-simple-hover-solid);--ydb-color-status-grey:var(--g-color-base-neutral-heavy);--ydb-color-status-green:var(--g-color-base-positive-heavy);--ydb-color-status-yellow:var(--g-color-base-warning-heavy);--ydb-color-status-orange:var(--g-color-private-orange-500-solid);--ydb-color-status-red:var(--g-color-base-danger-heavy);--ydb-color-status-blue:var(--g-color-base-info-heavy);--ydb-color-status-black:var(--g-color-base-misc-heavy);--g-popover-max-width:500px}:is(#tab,.g-tabs-item_active .g-tabs-item__title){color:var(--g-color-text-primary)!important}:is(#tab,.g-tabs-item__title){color:var(--g-color-text-secondary)}.gn-aside-header__pane-container{height:100%}.gn-aside-header__content{display:flex;flex-direction:column;height:100%;overflow:auto;position:relative}.loader{align-items:center;display:flex;justify-content:center;left:50%;position:fixed;top:50%;z-index:99999999}.app{--data-table-row-height:40px;--data-table-cell-align:middle;--data-table-head-align:middle;display:flex;flex:1 1 auto;flex-direction:column;height:100%}.app .data-table{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.app .data-table__td,.app .data-table__th{border-left:unset;border-right:unset;border-top:unset;height:var(--data-table-row-height)}.app .data-table__th{font-weight:700}.app .data-table__table{border-collapse:initial;border-spacing:0}.app .data-table__box_sticky-head_moving .data-table__th{height:unset}.app__main{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.error{color:var(--g-color-text-danger)}.g-root .data-table_highlight-rows .data-table__row:hover{background:var(--ydb-data-table-color-hover)}.g-table-column-setup__item{cursor:pointer!important;padding:0 8px 0 32px!important}.app_embedded{font-family:Rubik,sans-serif}.kv-navigation__internal-user{align-items:center;display:flex;justify-content:space-between;line-height:var(--g-text-body-2-line-height);margin-left:16px}.kv-navigation__user-info-wrapper{display:flex;flex-direction:column}.kv-navigation__ydb-internal-user-title{font-weight:500}.kv-navigation__ydb-user-wrapper{padding:10px;width:300px}.g-list{--_--item-padding:var(--g-list-item-padding,0);display:flex;flex:1 1 auto;flex-direction:column;outline:none;width:100%}.g-list__filter{flex:0 0 auto;margin-block-end:8px;padding:var(--_--item-padding)}.g-list__items{flex:1 1 auto}.g-list__empty-placeholder,.g-list__item{align-items:center;box-sizing:border-box;display:flex;overflow:hidden;padding:var(--_--item-padding);-webkit-user-select:none;user-select:none}.g-list__item_active{background:var(--g-color-base-simple-hover)}.g-list__item_selected{background:var(--g-color-base-selection)}.g-list__item_selected:hover{background:var(--g-color-base-selection-hover)}.g-list__item_sort-handle-align_right{flex-direction:row-reverse}.g-list__item_sort-handle-align_right .g-list__item-sort-icon{margin-inline:10px 0}.g-list__item_sortable[data-rbd-drag-handle-context-id]:active{cursor:grabbing}.g-list__item_dragging{background:var(--g-color-base-simple-hover-solid);z-index:100001}.g-list__empty-placeholder{box-sizing:border-box;color:var(--g-color-text-hint);min-height:36px;padding-block:8px}.g-list__item-content{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;text-overflow:ellipsis}.g-list__item-sort-icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex:0 0 auto;margin-inline-end:4px;width:12px}.g-list__loading-indicator{align-items:center;display:flex;justify-content:center;width:100%}.extended-cluster{display:flex;height:100%}.extended-cluster__balancer{align-items:center;display:flex;flex-direction:row}.extended-cluster__clipboard-button{margin-left:5px}.g-toast{--_--item-gap:10px;--_--item-padding:16px;--_--background-color:var(--g-color-base-background);background-color:var(--_--background-color);border-radius:8px;box-shadow:0 0 15px var(--g-color-sfx-shadow);box-sizing:border-box;display:flex;font-size:var(--g-text-body-2-font-size);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));overflow:hidden;padding:var(--g-toaster-item-padding,var(--_--item-padding));position:relative;width:inherit;z-index:0}.g-toast_mobile{width:100%}.g-toast_theme_normal{--_--background-color:var(--g-color-base-float)}.g-toast_theme_info{--_--container-background-color:var(--g-color-base-info-light);--_--icon-color:var(--g-color-text-info-heavy)}.g-toast_theme_success{--_--container-background-color:var(--g-color-base-positive-light);--_--icon-color:var(--g-color-text-positive-heavy)}.g-toast_theme_warning{--_--container-background-color:var(--g-color-base-warning-light);--_--icon-color:var(--g-color-text-warning-heavy)}.g-toast_theme_danger{--_--container-background-color:var(--g-color-base-danger-light);--_--icon-color:var(--g-color-text-danger-heavy)}.g-toast_theme_utility{--_--container-background-color:var(--g-color-base-utility-light);--_--icon-color:var(--g-color-text-utility-heavy)}.g-toast__container{display:flex;flex:1 1 auto;flex-flow:column nowrap;min-height:var(--g-text-body-2-line-height);min-width:0}.g-toast__container:before{background-color:var(--_--container-background-color);content:"";height:100%;inset-block-start:0;inset-inline-start:0;pointer-events:none;position:absolute;width:100%;z-index:-1}.g-toast__icon-container{color:var(--_--icon-color);flex:0 0 auto;min-width:0;padding-block-start:2px;padding-inline-end:8px}.g-toast__title{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height);margin:0;padding-inline-end:32px}.g-toast__content{margin-block-start:var(--g-spacing-2)}.g-toast__content_without-title{margin-block-start:0;padding-inline-end:32px}.g-toast__actions{margin-block-start:var(--g-spacing-3)}.g-toast__action{margin-inline-end:8px}.g-toast .g-toast__btn-close{inset-block-start:16px;inset-inline-end:16px;position:absolute}.g-toast-animation-mobile_enter{opacity:0;position:absolute}.g-toast-animation-mobile_enter_active{animation:g-toast-enter-mobile .6s ease-out forwards;position:relative}.g-toast-animation-mobile_exit_active{animation:g-toast-exit-mobile .6s ease-in forwards}@keyframes g-toast-enter-mobile{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{opacity:1;transform:translateX(0)}}@keyframes g-toast-exit-mobile{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateY(10px)}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateY(10px)}}.g-toast-animation-desktop_enter{opacity:0;position:absolute}.g-toast-animation-desktop_enter_active{animation:g-toast-enter-desktop .6s ease-out forwards;position:relative}.g-toast-animation-desktop_exit_active{animation:g-toast-exit-desktop .6s ease-in forwards}@keyframes g-toast-enter-desktop{0%{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{opacity:1;transform:translateX(0)}}@keyframes g-toast-exit-desktop{0%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:1;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(0)}50%{height:var(--_--item-height);margin-block-end:var(--g-toaster-item-gap,var(--_--item-gap));opacity:0;padding:var(--g-toaster-item-padding,var(--_--item-padding));transform:translateX(calc(var(--g-flow-direction)*10px))}to{height:0;margin-block-end:0;opacity:0;padding:0;transform:translateX(calc(var(--g-flow-direction)*10px))}}.g-toaster{--_--width:312px;align-items:flex-end;display:flex;flex-direction:column;inset-block-end:0;inset-inline-end:10px;position:fixed;width:var(--g-toaster-width,var(--_--width));z-index:100000}.g-toaster_mobile{--_--width:calc(100% - 20px);inset-inline-start:50%;transform:translate(-50%)}.g-root{--g-text-header-font-weight:500;--g-text-subheader-font-weight:600;--g-text-display-font-weight:500;--g-text-accent-font-weight:500}.g-root_theme_light{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-550-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-100);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-700-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-600-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-70:#00000012;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-20-solid:#fafafa;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4e79eb;--g-color-private-blue-650-solid:#4a71d6;--g-color-private-blue-700-solid:#4768c2;--g-color-private-blue-750-solid:#4360ad;--g-color-private-blue-800-solid:#3f5799;--g-color-private-blue-850-solid:#3c4f85;--g-color-private-blue-900-solid:#384670;--g-color-private-blue-950-solid:#343d5c;--g-color-private-blue-1000-solid:#333952;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#3ab935;--g-color-private-green-650-solid:#38aa35;--g-color-private-green-700-solid:#379a34;--g-color-private-green-750-solid:#358a34;--g-color-private-green-800-solid:#347b34;--g-color-private-green-850-solid:#336b34;--g-color-private-green-900-solid:#315b34;--g-color-private-green-950-solid:#304b33;--g-color-private-green-1000-solid:#2f4433;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#eac94a;--g-color-private-yellow-650-solid:#d5b848;--g-color-private-yellow-700-solid:#c0a645;--g-color-private-yellow-750-solid:#ab9543;--g-color-private-yellow-800-solid:#968340;--g-color-private-yellow-850-solid:#81723d;--g-color-private-yellow-900-solid:#6c603b;--g-color-private-yellow-950-solid:#574f38;--g-color-private-yellow-1000-solid:#4d4637;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#ea7005;--g-color-private-orange-650-solid:#d5680a;--g-color-private-orange-700-solid:#c0600f;--g-color-private-orange-750-solid:#ab5914;--g-color-private-orange-800-solid:#965119;--g-color-private-orange-850-solid:#814a1f;--g-color-private-orange-900-solid:#6c4324;--g-color-private-orange-950-solid:#573b29;--g-color-private-orange-1000-solid:#4d372b;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#ea0805;--g-color-private-red-650-solid:#d50c0a;--g-color-private-red-700-solid:#c0100f;--g-color-private-red-750-solid:#ab1414;--g-color-private-red-800-solid:#961819;--g-color-private-red-850-solid:#811c1f;--g-color-private-red-900-solid:#6c2024;--g-color-private-red-950-solid:#572429;--g-color-private-red-1000-solid:#4d262b;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#854ebd;--g-color-private-purple-650-solid:#7b4aad;--g-color-private-purple-700-solid:#72479e;--g-color-private-purple-750-solid:#68438f;--g-color-private-purple-800-solid:#5e3f80;--g-color-private-purple-850-solid:#543b70;--g-color-private-purple-900-solid:#4a3761;--g-color-private-purple-950-solid:#413452;--g-color-private-purple-1000-solid:#3c324a;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#657b8f;--g-color-private-cool-grey-650-solid:#5f7285;--g-color-private-cool-grey-700-solid:#586a7a;--g-color-private-cool-grey-750-solid:#526170;--g-color-private-cool-grey-800-solid:#4c5866;--g-color-private-cool-grey-850-solid:#464f5c;--g-color-private-cool-grey-900-solid:#404652;--g-color-private-cool-grey-950-solid:#393e47;--g-color-private-cool-grey-1000-solid:#363942}.g-root_theme_light-hc{--g-color-base-background:#fff;--g-color-base-brand:var(--g-color-private-blue-600-solid);--g-color-base-brand-hover:var(--g-color-private-blue-800-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-350);--g-color-line-brand:var(--g-color-private-blue-600-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-900-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-850-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-1000-solid:#fff;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-50-solid:#f2f2f2;--g-color-private-black-100-solid:#e5e5e5;--g-color-private-black-150-solid:#d9d9d9;--g-color-private-black-200-solid:#ccc;--g-color-private-black-250-solid:#bfbfbf;--g-color-private-black-300-solid:#b3b3b3;--g-color-private-black-350-solid:#a6a6a6;--g-color-private-black-400-solid:#999;--g-color-private-black-450-solid:#8c8c8c;--g-color-private-black-500-solid:grey;--g-color-private-black-550-solid:#737373;--g-color-private-black-600-solid:#666;--g-color-private-black-650-solid:#595959;--g-color-private-black-700-solid:#4c4c4c;--g-color-private-black-750-solid:#404040;--g-color-private-black-800-solid:#333;--g-color-private-black-850-solid:#262626;--g-color-private-black-900-solid:#1a1a1a;--g-color-private-black-950-solid:#0d0d0d;--g-color-private-black-1000-solid:#000;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#eef3ff;--g-color-private-blue-100-solid:#e5ecff;--g-color-private-blue-150-solid:#dce6ff;--g-color-private-blue-200-solid:#cbdaff;--g-color-private-blue-250-solid:#bacdff;--g-color-private-blue-300-solid:#a8c1ff;--g-color-private-blue-350-solid:#97b4ff;--g-color-private-blue-400-solid:#86a8ff;--g-color-private-blue-450-solid:#749bff;--g-color-private-blue-500-solid:#638fff;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#4d79e9;--g-color-private-blue-650-solid:#486fd4;--g-color-private-blue-700-solid:#4366be;--g-color-private-blue-750-solid:#3f5ca8;--g-color-private-blue-800-solid:#3a5393;--g-color-private-blue-850-solid:#35497d;--g-color-private-blue-900-solid:#304067;--g-color-private-blue-950-solid:#2c3651;--g-color-private-blue-1000-solid:#293147;--g-color-private-green-50:#3bc9351a;--g-color-private-green-100:#3bc93526;--g-color-private-green-150:#3bc93533;--g-color-private-green-200:#3bc9354d;--g-color-private-green-250:#3bc93566;--g-color-private-green-300:#3bc93580;--g-color-private-green-350:#3bc93599;--g-color-private-green-400:#3bc935b3;--g-color-private-green-450:#3bc935cc;--g-color-private-green-500:#3bc935e6;--g-color-private-green-50-solid:#ebfaeb;--g-color-private-green-100-solid:#e2f7e1;--g-color-private-green-150-solid:#d8f4d7;--g-color-private-green-200-solid:#c4efc2;--g-color-private-green-250-solid:#b1e9ae;--g-color-private-green-300-solid:#9de49a;--g-color-private-green-350-solid:#89df86;--g-color-private-green-400-solid:#76d972;--g-color-private-green-450-solid:#62d45d;--g-color-private-green-500-solid:#4fce49;--g-color-private-green-550-solid:#3bc935;--g-color-private-green-600-solid:#38b833;--g-color-private-green-650-solid:#36a832;--g-color-private-green-700-solid:#339730;--g-color-private-green-750-solid:#31872f;--g-color-private-green-800-solid:#2f762e;--g-color-private-green-850-solid:#2c652c;--g-color-private-green-900-solid:#29552b;--g-color-private-green-950-solid:#274429;--g-color-private-green-1000-solid:#263c28;--g-color-private-yellow-50:#ffdb4d1a;--g-color-private-yellow-100:#ffdb4d26;--g-color-private-yellow-150:#ffdb4d33;--g-color-private-yellow-200:#ffdb4d4d;--g-color-private-yellow-250:#ffdb4d66;--g-color-private-yellow-300:#ffdb4d80;--g-color-private-yellow-350:#ffdb4d99;--g-color-private-yellow-400:#ffdb4db3;--g-color-private-yellow-450:#ffdb4dcc;--g-color-private-yellow-500:#ffdb4de6;--g-color-private-yellow-50-solid:#fffbed;--g-color-private-yellow-100-solid:#fffae4;--g-color-private-yellow-150-solid:#fff8db;--g-color-private-yellow-200-solid:#fff4ca;--g-color-private-yellow-250-solid:#fff1b8;--g-color-private-yellow-300-solid:#ffeda6;--g-color-private-yellow-350-solid:#ffe994;--g-color-private-yellow-400-solid:#ffe682;--g-color-private-yellow-450-solid:#ffe271;--g-color-private-yellow-500-solid:#ffdf5f;--g-color-private-yellow-550-solid:#ffdb4d;--g-color-private-yellow-600-solid:#e9c949;--g-color-private-yellow-650-solid:#d3b645;--g-color-private-yellow-700-solid:#bda441;--g-color-private-yellow-750-solid:#a7913d;--g-color-private-yellow-800-solid:#907f3a;--g-color-private-yellow-850-solid:#7a6d36;--g-color-private-yellow-900-solid:#645a32;--g-color-private-yellow-950-solid:#4e482e;--g-color-private-yellow-1000-solid:#433f2c;--g-color-private-orange-50:#ff77001a;--g-color-private-orange-100:#ff770026;--g-color-private-orange-150:#f703;--g-color-private-orange-200:#ff77004d;--g-color-private-orange-250:#f706;--g-color-private-orange-300:#ff770080;--g-color-private-orange-350:#f709;--g-color-private-orange-400:#ff7700b3;--g-color-private-orange-450:#f70c;--g-color-private-orange-500:#ff7700e6;--g-color-private-orange-50-solid:#fff1e6;--g-color-private-orange-100-solid:#ffebd9;--g-color-private-orange-150-solid:#ffe4cc;--g-color-private-orange-200-solid:#ffd6b3;--g-color-private-orange-250-solid:#ffc999;--g-color-private-orange-300-solid:#ffbb80;--g-color-private-orange-350-solid:#ffad66;--g-color-private-orange-400-solid:#ffa04c;--g-color-private-orange-450-solid:#ff9233;--g-color-private-orange-500-solid:#ff851a;--g-color-private-orange-550-solid:#f70;--g-color-private-orange-600-solid:#e96f04;--g-color-private-orange-650-solid:#d36608;--g-color-private-orange-700-solid:#bd5e0b;--g-color-private-orange-750-solid:#a7550f;--g-color-private-orange-800-solid:#904d13;--g-color-private-orange-850-solid:#7a4517;--g-color-private-orange-900-solid:#643c1b;--g-color-private-orange-950-solid:#4e341e;--g-color-private-orange-1000-solid:#433020;--g-color-private-red-50:#ff04001a;--g-color-private-red-100:#ff040026;--g-color-private-red-150:#ff040033;--g-color-private-red-200:#ff04004d;--g-color-private-red-250:#ff040066;--g-color-private-red-300:#ff040080;--g-color-private-red-350:#ff040099;--g-color-private-red-400:#ff0400b3;--g-color-private-red-450:#ff0400cc;--g-color-private-red-500:#ff0400e6;--g-color-private-red-50-solid:#ffe6e6;--g-color-private-red-100-solid:#ffd9d9;--g-color-private-red-150-solid:#ffcdcc;--g-color-private-red-200-solid:#ffb4b3;--g-color-private-red-250-solid:#ff9b99;--g-color-private-red-300-solid:#ff8280;--g-color-private-red-350-solid:#ff6966;--g-color-private-red-400-solid:#ff504c;--g-color-private-red-450-solid:#ff3733;--g-color-private-red-500-solid:#ff1e1a;--g-color-private-red-550-solid:#ff0400;--g-color-private-red-600-solid:#e90804;--g-color-private-red-650-solid:#d30b08;--g-color-private-red-700-solid:#bd0e0b;--g-color-private-red-750-solid:#a6110f;--g-color-private-red-800-solid:#901413;--g-color-private-red-850-solid:#7a1717;--g-color-private-red-900-solid:#641a1b;--g-color-private-red-950-solid:#4e1d1e;--g-color-private-red-1000-solid:#431e20;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#f4eefa;--g-color-private-purple-100-solid:#eee5f7;--g-color-private-purple-150-solid:#e9dcf5;--g-color-private-purple-200-solid:#ddcbf0;--g-color-private-purple-250-solid:#d2baeb;--g-color-private-purple-300-solid:#c7a9e6;--g-color-private-purple-350-solid:#bc97e0;--g-color-private-purple-400-solid:#b186db;--g-color-private-purple-450-solid:#a575d6;--g-color-private-purple-500-solid:#9a63d1;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#844dbb;--g-color-private-purple-650-solid:#7949ab;--g-color-private-purple-700-solid:#6e449a;--g-color-private-purple-750-solid:#633f8a;--g-color-private-purple-800-solid:#593b79;--g-color-private-purple-850-solid:#4e3668;--g-color-private-purple-900-solid:#433158;--g-color-private-purple-950-solid:#382c47;--g-color-private-purple-1000-solid:#322a3f;--g-color-private-cool-grey-50:#6b84991a;--g-color-private-cool-grey-100:#6b849926;--g-color-private-cool-grey-150:#6b849933;--g-color-private-cool-grey-200:#6b84994d;--g-color-private-cool-grey-250:#6b849966;--g-color-private-cool-grey-300:#6b849980;--g-color-private-cool-grey-350:#6b849999;--g-color-private-cool-grey-400:#6b8499b3;--g-color-private-cool-grey-450:#6b8499cc;--g-color-private-cool-grey-500:#6b8499e6;--g-color-private-cool-grey-50-solid:#f0f3f5;--g-color-private-cool-grey-100-solid:#e9edf0;--g-color-private-cool-grey-150-solid:#e1e6eb;--g-color-private-cool-grey-200-solid:#d3dae0;--g-color-private-cool-grey-250-solid:#c4ced6;--g-color-private-cool-grey-300-solid:#b5c1cc;--g-color-private-cool-grey-350-solid:#a6b5c2;--g-color-private-cool-grey-400-solid:#97a9b8;--g-color-private-cool-grey-450-solid:#899dad;--g-color-private-cool-grey-500-solid:#7a90a3;--g-color-private-cool-grey-550-solid:#6b8499;--g-color-private-cool-grey-600-solid:#647a8e;--g-color-private-cool-grey-650-solid:#5c7182;--g-color-private-cool-grey-700-solid:#556776;--g-color-private-cool-grey-750-solid:#4e5d6b;--g-color-private-cool-grey-800-solid:#465360;--g-color-private-cool-grey-850-solid:#3f4a54;--g-color-private-cool-grey-900-solid:#384049;--g-color-private-cool-grey-950-solid:#31363d;--g-color-private-cool-grey-1000-solid:#2d3237}.g-root_theme_dark{--g-color-base-background:#2d2c33;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-600-solid);--g-color-base-selection:var(--g-color-private-blue-150);--g-color-base-selection-hover:var(--g-color-private-blue-200);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-600-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-550-solid);--g-color-text-link-hover:var(--g-color-private-blue-700-solid);--g-color-private-white-20:#ffffff05;--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-20-solid:#313037;--g-color-private-white-50-solid:#38373d;--g-color-private-white-70-solid:#3c3b41;--g-color-private-white-100-solid:#424147;--g-color-private-white-150-solid:#4d4c52;--g-color-private-white-200-solid:#57565c;--g-color-private-white-250-solid:#616166;--g-color-private-white-300-solid:#6c6b70;--g-color-private-white-350-solid:#77767a;--g-color-private-white-400-solid:#818085;--g-color-private-white-450-solid:#8b8b8f;--g-color-private-white-500-solid:#969699;--g-color-private-white-550-solid:#a0a0a3;--g-color-private-white-600-solid:#ababad;--g-color-private-white-650-solid:#b6b5b8;--g-color-private-white-700-solid:#c0c0c2;--g-color-private-white-750-solid:#cacacc;--g-color-private-white-800-solid:#d5d5d6;--g-color-private-white-850-solid:#dfdfe0;--g-color-private-white-900-solid:#eaeaeb;--g-color-private-white-950-solid:#f5f5f5;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#4c4b51f2;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#313547;--g-color-private-blue-100-solid:#333952;--g-color-private-blue-150-solid:#343d5c;--g-color-private-blue-200-solid:#384670;--g-color-private-blue-250-solid:#3c4e85;--g-color-private-blue-300-solid:#405799;--g-color-private-blue-350-solid:#4360ad;--g-color-private-blue-400-solid:#4768c2;--g-color-private-blue-450-solid:#4b71d6;--g-color-private-blue-500-solid:#4e79eb;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#5bb55733;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#323a37;--g-color-private-green-100-solid:#344138;--g-color-private-green-150-solid:#36473a;--g-color-private-green-200-solid:#3b553e;--g-color-private-green-250-solid:#3f6341;--g-color-private-green-300-solid:#447145;--g-color-private-green-350-solid:#497e49;--g-color-private-green-400-solid:#4d8c4c;--g-color-private-green-450-solid:#529a50;--g-color-private-green-500-solid:#56a753;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#423c2e;--g-color-private-yellow-100-solid:#4d442b;--g-color-private-yellow-150-solid:#574c29;--g-color-private-yellow-200-solid:#6c5c24;--g-color-private-yellow-250-solid:#816c1f;--g-color-private-yellow-300-solid:#967c19;--g-color-private-yellow-350-solid:#ab8c14;--g-color-private-yellow-400-solid:#c09b0f;--g-color-private-yellow-450-solid:#d5ab0a;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#3d322f;--g-color-private-orange-100-solid:#44342d;--g-color-private-orange-150-solid:#4c372b;--g-color-private-orange-200-solid:#5c3d27;--g-color-private-orange-250-solid:#6b4223;--g-color-private-orange-300-solid:#7b4720;--g-color-private-orange-350-solid:#8a4d1c;--g-color-private-orange-400-solid:#995218;--g-color-private-orange-450-solid:#a95814;--g-color-private-orange-500-solid:#b95e10;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#402f35;--g-color-private-red-100-solid:#493036;--g-color-private-red-150-solid:#523237;--g-color-private-red-200-solid:#653539;--g-color-private-red-250-solid:#78383a;--g-color-private-red-300-solid:#8a3a3c;--g-color-private-red-350-solid:#9d3d3e;--g-color-private-red-400-solid:#b04040;--g-color-private-red-450-solid:#c34341;--g-color-private-red-500-solid:#d54644;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#373042;--g-color-private-purple-100-solid:#3c324a;--g-color-private-purple-150-solid:#413452;--g-color-private-purple-200-solid:#4a3761;--g-color-private-purple-250-solid:#543b70;--g-color-private-purple-300-solid:#5e3f80;--g-color-private-purple-350-solid:#68438f;--g-color-private-purple-400-solid:#72479e;--g-color-private-purple-450-solid:#7b4aad;--g-color-private-purple-500-solid:#854ebd;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#32343e;--g-color-private-cool-grey-100-solid:#353943;--g-color-private-cool-grey-150-solid:#373d48;--g-color-private-cool-grey-200-solid:#3c4552;--g-color-private-cool-grey-250-solid:#414e5d;--g-color-private-cool-grey-300-solid:#465667;--g-color-private-cool-grey-350-solid:#4c5e72;--g-color-private-cool-grey-400-solid:#51677d;--g-color-private-cool-grey-450-solid:#566f87;--g-color-private-cool-grey-500-solid:#5b7892;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}.g-root_theme_dark-hc{--g-color-base-background:#222326;--g-color-base-brand:var(--g-color-private-blue-450-solid);--g-color-base-brand-hover:var(--g-color-private-blue-650-solid);--g-color-base-selection:var(--g-color-private-blue-250);--g-color-base-selection-hover:var(--g-color-private-blue-400);--g-color-line-brand:var(--g-color-private-blue-550-solid);--g-color-text-brand:var(--g-color-private-blue-650-solid);--g-color-text-brand-heavy:var(--g-color-private-blue-850-solid);--g-color-text-brand-contrast:var(--g-color-text-light-primary);--g-color-text-link:var(--g-color-private-blue-650-solid);--g-color-text-link-hover:var(--g-color-private-blue-800-solid);--g-color-private-white-50:#ffffff0d;--g-color-private-white-70:#ffffff12;--g-color-private-white-100:#ffffff1a;--g-color-private-white-150:#ffffff26;--g-color-private-white-200:#fff3;--g-color-private-white-250:#ffffff40;--g-color-private-white-300:#ffffff4d;--g-color-private-white-350:#ffffff59;--g-color-private-white-400:#fff6;--g-color-private-white-450:#ffffff73;--g-color-private-white-500:#ffffff80;--g-color-private-white-550:#ffffff8c;--g-color-private-white-600:#fff9;--g-color-private-white-650:#ffffffa6;--g-color-private-white-700:#ffffffb3;--g-color-private-white-750:#ffffffbf;--g-color-private-white-800:#fffc;--g-color-private-white-850:#ffffffd9;--g-color-private-white-900:#ffffffe6;--g-color-private-white-950:#fffffff2;--g-color-private-white-50-solid:#2d2e31;--g-color-private-white-100-solid:#38393c;--g-color-private-white-150-solid:#434447;--g-color-private-white-200-solid:#4e4f51;--g-color-private-white-250-solid:#595a5c;--g-color-private-white-300-solid:#646567;--g-color-private-white-350-solid:#6f7072;--g-color-private-white-400-solid:#7a7b7d;--g-color-private-white-450-solid:#858688;--g-color-private-white-500-solid:#909193;--g-color-private-white-550-solid:#9c9c9d;--g-color-private-white-600-solid:#a7a7a8;--g-color-private-white-650-solid:#b2b2b3;--g-color-private-white-700-solid:#bdbdbe;--g-color-private-white-750-solid:#c8c8c9;--g-color-private-white-800-solid:#d3d3d4;--g-color-private-white-850-solid:#dededf;--g-color-private-white-900-solid:#e9e9e9;--g-color-private-white-950-solid:#f4f4f4;--g-color-private-white-1000-solid:#fff;--g-color-private-white-opaque-150:#38393cf7;--g-color-private-black-20:#00000005;--g-color-private-black-50:#0000000d;--g-color-private-black-100:#0000001a;--g-color-private-black-150:#00000026;--g-color-private-black-200:#0003;--g-color-private-black-250:#00000040;--g-color-private-black-300:#0000004d;--g-color-private-black-350:#00000059;--g-color-private-black-400:#0006;--g-color-private-black-450:#00000073;--g-color-private-black-500:#00000080;--g-color-private-black-550:#0000008c;--g-color-private-black-600:#0009;--g-color-private-black-650:#000000a6;--g-color-private-black-700:#000000b3;--g-color-private-black-750:#000000bf;--g-color-private-black-800:#000c;--g-color-private-black-850:#000000d9;--g-color-private-black-900:#000000e6;--g-color-private-black-950:#000000f2;--g-color-private-black-1000-solid:#000;--g-color-private-black-rock-850:#2d2c33;--g-color-private-black-rock-950:#222326;--g-color-private-blue-50:#5282ff1a;--g-color-private-blue-100:#5282ff26;--g-color-private-blue-150:#5282ff33;--g-color-private-blue-200:#5282ff4d;--g-color-private-blue-250:#5282ff66;--g-color-private-blue-300:#5282ff80;--g-color-private-blue-350:#5282ff99;--g-color-private-blue-400:#5282ffb3;--g-color-private-blue-450:#5282ffcc;--g-color-private-blue-500:#5282ffe6;--g-color-private-blue-50-solid:#272d3c;--g-color-private-blue-100-solid:#293147;--g-color-private-blue-150-solid:#2c3651;--g-color-private-blue-200-solid:#304067;--g-color-private-blue-250-solid:#35497d;--g-color-private-blue-300-solid:#3a5393;--g-color-private-blue-350-solid:#3f5ca8;--g-color-private-blue-400-solid:#4466be;--g-color-private-blue-450-solid:#486fd4;--g-color-private-blue-500-solid:#4d79e9;--g-color-private-blue-550-solid:#5282ff;--g-color-private-blue-600-solid:#638fff;--g-color-private-blue-650-solid:#759bff;--g-color-private-blue-700-solid:#86a8ff;--g-color-private-blue-750-solid:#97b4ff;--g-color-private-blue-800-solid:#a9c1ff;--g-color-private-blue-850-solid:#bacdff;--g-color-private-blue-900-solid:#cbdaff;--g-color-private-blue-950-solid:#dce6ff;--g-color-private-blue-1000-solid:#e5ecff;--g-color-private-green-50:#5bb5571a;--g-color-private-green-100:#5bb55726;--g-color-private-green-150:#000;--g-color-private-green-200:#5bb5574d;--g-color-private-green-250:#5bb55766;--g-color-private-green-300:#5bb55780;--g-color-private-green-350:#5bb55799;--g-color-private-green-400:#5bb557b3;--g-color-private-green-450:#5bb557cc;--g-color-private-green-500:#5bb557e6;--g-color-private-green-50-solid:#28322b;--g-color-private-green-100-solid:#2b392d;--g-color-private-green-150-solid:#2d4030;--g-color-private-green-200-solid:#334f35;--g-color-private-green-250-solid:#395d3a;--g-color-private-green-300-solid:#3f6c3f;--g-color-private-green-350-solid:#447b43;--g-color-private-green-400-solid:#4a8948;--g-color-private-green-450-solid:#50984d;--g-color-private-green-500-solid:#55a652;--g-color-private-green-550-solid:#5bb557;--g-color-private-green-600-solid:#6bbc68;--g-color-private-green-650-solid:#7cc479;--g-color-private-green-700-solid:#8ccb89;--g-color-private-green-750-solid:#9dd39a;--g-color-private-green-800-solid:#addaab;--g-color-private-green-850-solid:#bde1bc;--g-color-private-green-900-solid:#cee9cd;--g-color-private-green-950-solid:#def0dd;--g-color-private-green-1000-solid:#e6f4e6;--g-color-private-yellow-50:#ffcb001a;--g-color-private-yellow-100:#ffcb0026;--g-color-private-yellow-150:#ffcb0033;--g-color-private-yellow-200:#ffcb004d;--g-color-private-yellow-250:#ffcb0066;--g-color-private-yellow-300:#ffcb0080;--g-color-private-yellow-350:#ffcb0099;--g-color-private-yellow-400:#ffcb00b3;--g-color-private-yellow-450:#ffcb00cc;--g-color-private-yellow-500:#ffcb00e6;--g-color-private-yellow-50-solid:#383422;--g-color-private-yellow-100-solid:#433c20;--g-color-private-yellow-150-solid:#4e451e;--g-color-private-yellow-200-solid:#64551b;--g-color-private-yellow-250-solid:#7a6617;--g-color-private-yellow-300-solid:#907713;--g-color-private-yellow-350-solid:#a7880f;--g-color-private-yellow-400-solid:#bd990b;--g-color-private-yellow-450-solid:#d3a908;--g-color-private-yellow-500-solid:#e9ba04;--g-color-private-yellow-550-solid:#ffcb00;--g-color-private-yellow-600-solid:#ffd01a;--g-color-private-yellow-650-solid:#ffd533;--g-color-private-yellow-700-solid:#ffdb4c;--g-color-private-yellow-750-solid:#ffe066;--g-color-private-yellow-800-solid:#ffe580;--g-color-private-yellow-850-solid:#ffea99;--g-color-private-yellow-900-solid:#ffefb3;--g-color-private-yellow-950-solid:#fff5cc;--g-color-private-yellow-1000-solid:#fff7d9;--g-color-private-orange-50:#c8630c1a;--g-color-private-orange-100:#c8630c26;--g-color-private-orange-150:#c8630c33;--g-color-private-orange-200:#c8630c4d;--g-color-private-orange-250:#c8630c66;--g-color-private-orange-300:#c8630c80;--g-color-private-orange-350:#c8630c99;--g-color-private-orange-400:#c8630cb3;--g-color-private-orange-450:#c8630ccc;--g-color-private-orange-500:#c8630ce6;--g-color-private-orange-50-solid:#332923;--g-color-private-orange-100-solid:#3b2d22;--g-color-private-orange-150-solid:#433021;--g-color-private-orange-200-solid:#54361e;--g-color-private-orange-250-solid:#643d1c;--g-color-private-orange-300-solid:#754319;--g-color-private-orange-350-solid:#864916;--g-color-private-orange-400-solid:#965014;--g-color-private-orange-450-solid:#a75611;--g-color-private-orange-500-solid:#b75d0f;--g-color-private-orange-550-solid:#c8630c;--g-color-private-orange-600-solid:#ce7324;--g-color-private-orange-650-solid:#d3823d;--g-color-private-orange-700-solid:#d89255;--g-color-private-orange-750-solid:#dea16d;--g-color-private-orange-800-solid:#e3b185;--g-color-private-orange-850-solid:#e9c19e;--g-color-private-orange-900-solid:#efd0b6;--g-color-private-orange-950-solid:#f4e0ce;--g-color-private-orange-1000-solid:#f7e8db;--g-color-private-red-50:#e849451a;--g-color-private-red-100:#e8494526;--g-color-private-red-150:#e8494533;--g-color-private-red-200:#e849454d;--g-color-private-red-250:#e8494566;--g-color-private-red-300:#e8494580;--g-color-private-red-350:#e8494599;--g-color-private-red-400:#e84945b3;--g-color-private-red-450:#e84945cc;--g-color-private-red-500:#e84945e6;--g-color-private-red-50-solid:#362729;--g-color-private-red-100-solid:#40292b;--g-color-private-red-150-solid:#4a2b2c;--g-color-private-red-200-solid:#5d2e2f;--g-color-private-red-250-solid:#713233;--g-color-private-red-300-solid:#853636;--g-color-private-red-350-solid:#993a39;--g-color-private-red-400-solid:#ac3d3c;--g-color-private-red-450-solid:#c0413f;--g-color-private-red-500-solid:#d44542;--g-color-private-red-550-solid:#e84945;--g-color-private-red-600-solid:#ea5b58;--g-color-private-red-650-solid:#ec6d6b;--g-color-private-red-700-solid:#ef7f7d;--g-color-private-red-750-solid:#f19290;--g-color-private-red-800-solid:#f3a4a2;--g-color-private-red-850-solid:#f6b6b5;--g-color-private-red-900-solid:#f8c8c7;--g-color-private-red-950-solid:#fadbda;--g-color-private-red-1000-solid:#fce4e3;--g-color-private-purple-50:#8f52cc1a;--g-color-private-purple-100:#8f52cc26;--g-color-private-purple-150:#8f52cc33;--g-color-private-purple-200:#8f52cc4d;--g-color-private-purple-250:#8f52cc66;--g-color-private-purple-300:#8f52cc80;--g-color-private-purple-350:#8f52cc99;--g-color-private-purple-400:#8f52ccb3;--g-color-private-purple-450:#8f52cccc;--g-color-private-purple-500:#8f52cce6;--g-color-private-purple-50-solid:#2d2837;--g-color-private-purple-100-solid:#322a3f;--g-color-private-purple-150-solid:#382c47;--g-color-private-purple-200-solid:#433158;--g-color-private-purple-250-solid:#4e3668;--g-color-private-purple-300-solid:#593b79;--g-color-private-purple-350-solid:#633f8a;--g-color-private-purple-400-solid:#6e449a;--g-color-private-purple-450-solid:#7949ab;--g-color-private-purple-500-solid:#844dbb;--g-color-private-purple-550-solid:#8f52cc;--g-color-private-purple-600-solid:#9a63d1;--g-color-private-purple-650-solid:#a575d6;--g-color-private-purple-700-solid:#b186db;--g-color-private-purple-750-solid:#bc97e0;--g-color-private-purple-800-solid:#c7a9e6;--g-color-private-purple-850-solid:#d2baeb;--g-color-private-purple-900-solid:#ddcbf0;--g-color-private-purple-950-solid:#e9dcf5;--g-color-private-purple-1000-solid:#eee5f7;--g-color-private-cool-grey-50:#60809c1a;--g-color-private-cool-grey-100:#60809c26;--g-color-private-cool-grey-150:#60809c33;--g-color-private-cool-grey-200:#60809c4d;--g-color-private-cool-grey-250:#60809c66;--g-color-private-cool-grey-300:#60809c80;--g-color-private-cool-grey-350:#60809c99;--g-color-private-cool-grey-400:#60809cb3;--g-color-private-cool-grey-450:#60809ccc;--g-color-private-cool-grey-500:#60809ce6;--g-color-private-cool-grey-50-solid:#282c32;--g-color-private-cool-grey-100-solid:#2b3138;--g-color-private-cool-grey-150-solid:#2e363e;--g-color-private-cool-grey-200-solid:#353f49;--g-color-private-cool-grey-250-solid:#3b4855;--g-color-private-cool-grey-300-solid:#415161;--g-color-private-cool-grey-350-solid:#475b6d;--g-color-private-cool-grey-400-solid:#4d6479;--g-color-private-cool-grey-450-solid:#546d84;--g-color-private-cool-grey-500-solid:#5a7790;--g-color-private-cool-grey-550-solid:#60809c;--g-color-private-cool-grey-600-solid:#708da6;--g-color-private-cool-grey-650-solid:#8099b0;--g-color-private-cool-grey-700-solid:#90a6ba;--g-color-private-cool-grey-750-solid:#a0b3c3;--g-color-private-cool-grey-800-solid:#b0bfcd;--g-color-private-cool-grey-850-solid:#bfccd7;--g-color-private-cool-grey-900-solid:#cfd9e1;--g-color-private-cool-grey-950-solid:#dfe6eb;--g-color-private-cool-grey-1000-solid:#e7ecf0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1094.b5bb2475.chunk.js b/ydb/core/viewer/monitoring/static/js/1094.b5bb2475.chunk.js new file mode 100644 index 00000000000..17d61db7def --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/1094.b5bb2475.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 1094.b5bb2475.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1094],{51094:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>a,language:()=>c});var o=e=>`\\b${e}\\b`,i=e=>`(?!${e})`,r=o("[_a-zA-Z][_a-zA-Z0-9]*"),s=o("[_a-zA-Z-0-9]+"),a={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],indentationRules:{decreaseIndentPattern:new RegExp("^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"),increaseIndentPattern:new RegExp("^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"),unIndentedLinePattern:new RegExp("^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$")}},c={defaultToken:"",tokenPostfix:".tsp",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=:;<>]+/,keywords:["import","model","scalar","namespace","op","interface","union","using","is","extends","enum","alias","return","void","if","else","projection","dec","extern","fn"],namedLiterals:["true","false","null","unknown","never"],escapes:'\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|"|\\${)',tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:'(|"|"")[^"]',action:{token:"string"}},{regex:`"""${i('"')}`,action:{token:"string",next:"@pop"}}],stringLiteral:[{regex:"\\${",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:'[^\\\\"$]+',action:{token:"string"}},{regex:"@escapes",action:{token:"string.escape"}},{regex:"\\\\.",action:{token:"string.escape.invalid"}},{regex:'"',action:{token:"string",next:"@pop"}}],bracketCounting:[{regex:"{",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"}",action:{token:"delimiter.bracket",next:"@pop"}},{include:"@expression"}],comment:[{regex:"[^\\*]+",action:{token:"comment"}},{regex:"\\*\\/",action:{token:"comment",next:"@pop"}},{regex:"[\\/*]",action:{token:"comment"}}],whitespace:[{regex:"[ \\t\\r\\n]"},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:'"""',action:{token:"string",next:"@stringVerbatim"}},{regex:`"${i('""')}`,action:{token:"string",next:"@stringLiteral"}},{regex:"[0-9]+",action:{token:"number"}},{regex:r,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}},{regex:`@${r}`,action:{token:"tag"}},{regex:`#${s}`,action:{token:"directive"}}]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/html.worker.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/1094.b5bb2475.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/html.worker.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/1094.b5bb2475.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/110.2c798565.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/110.2c798565.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/110.2c798565.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/110.2c798565.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/1112.981a6700.chunk.js b/ydb/core/viewer/monitoring/static/js/1112.981a6700.chunk.js deleted file mode 100644 index f07deeb4a21..00000000000 --- a/ydb/core/viewer/monitoring/static/js/1112.981a6700.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1112],{91112:(t,e,s)=>{s.d(e,{parseYqlQuery:()=>zl});var r,i,a,n,c=Object.defineProperty,h=(t,e)=>c(t,"name",{value:e,configurable:!0});(i=r||(r={})).EOF=-1,i.UNKNOWN_SOURCE_NAME="<unknown>",(n=a||(a={})).INVALID_TYPE=0,n.EPSILON=-2,n.MIN_USER_TOKEN_TYPE=1,n.EOF=r.EOF,n.DEFAULT_CHANNEL=0,n.HIDDEN_CHANNEL=1,n.MIN_USER_CHANNEL_VALUE=2;var o=h((t=>{const e=t;return void 0!==e.tokenSource&&void 0!==e.channel}),"isToken"),E=class t{static{h(this,"Interval")}static INVALID_INTERVAL=new t(-1,-2);static INTERVAL_POOL_MAX_VALUE=1e3;start;stop;static#t=[];#e;constructor(t,e){this.start=t,this.stop=e,this.#e=Math.imul(651+t,31)+e}static of(e,s){return e!==s||e<0||e>t.INTERVAL_POOL_MAX_VALUE?new t(e,s):(t.#t[e]||(t.#t[e]=new t(e,e)),t.#t[e])}equals(t){return this.start===t.start&&this.stop===t.stop}hashCode(){return this.#e}startsBeforeDisjoint(t){return this.start<t.start&&this.stop<t.start}startsBeforeNonDisjoint(t){return this.start<=t.start&&this.stop>=t.start}startsAfter(t){return this.start>t.start}startsAfterDisjoint(t){return this.start>t.stop}startsAfterNonDisjoint(t){return this.start>t.start&&this.start<=t.stop}disjoint(t){return this.startsBeforeDisjoint(t)||this.startsAfterDisjoint(t)}adjacent(t){return this.start===t.stop+1||this.stop===t.start-1}properlyContains(t){return t.start>=this.start&&t.stop<=this.stop}union(e){return t.of(Math.min(this.start,e.start),Math.max(this.stop,e.stop))}intersection(e){return t.of(Math.max(this.start,e.start),Math.min(this.stop,e.stop))}differenceNotProperlyContained(e){let s=null;return e.startsBeforeNonDisjoint(this)?s=t.of(Math.max(this.start,e.stop+1),this.stop):e.startsAfterNonDisjoint(this)&&(s=t.of(this.start,e.start-1)),s}toString(){return this.start===this.stop?this.start.toString():this.start.toString()+".."+this.stop.toString()}get length(){return this.stop<this.start?0:this.stop-this.start+1}},l=class t{static{h(this,"Vocabulary")}static EMPTY_NAMES=[];static EMPTY_VOCABULARY=new t(t.EMPTY_NAMES,t.EMPTY_NAMES,t.EMPTY_NAMES);maxTokenType;literalNames;symbolicNames;displayNames;constructor(e,s,r){this.literalNames=e??t.EMPTY_NAMES,this.symbolicNames=s??t.EMPTY_NAMES,this.displayNames=r??t.EMPTY_NAMES,this.maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}static fromTokenNames(e){if(null==e||0===e.length)return t.EMPTY_VOCABULARY;const s=[...e],r=[...e];for(let t=0;t<e.length;t++){const i=e[t];if(null!=i){if(i?.length>0){const e=i.charAt(0);if("'"===e){r[t]=null;continue}if(e.toUpperCase()===e){s[t]=null;continue}}s[t]=null,r[t]=null}}return new t(s,r,e)}getMaxTokenType(){return this.maxTokenType}getLiteralName(t){return t>=0&&t<this.literalNames.length?this.literalNames[t]:null}getSymbolicName(t){return t>=0&&t<this.symbolicNames.length?this.symbolicNames[t]:t===a.EOF?"EOF":null}getDisplayName(t){if(t>=0&&t<this.displayNames.length){const e=this.displayNames[t];if(null!=e)return e}const e=this.getLiteralName(t);if(null!=e)return e;const s=this.getSymbolicName(t);return null!=s?s:`${t}`}getLiteralNames(){return this.literalNames}getSymbolicNames(){return this.symbolicNames}getDisplayNames(){return this.displayNames}},u=class t{static{h(this,"MurmurHash")}static#s=701;constructor(){}static initialize(e=t.#s){return e}static updateFromComparable(t,e){return this.update(t,e?.hashCode()??0)}static update(t,e){return e=(e=Math.imul(e,3432918353))<<15|e>>>17,t=(t^=e=Math.imul(e,461845907))<<13|t>>>19,t=Math.imul(t,5)+3864292196}static finish(t,e){return t^=4*e,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,t=Math.imul(t,3266489909),t^=t>>>16}static hashCode(e,s){return t.finish(t.update(s??t.#s,e),1)}},R=class t{static{h(this,"IntervalSet")}#r=[];#e;constructor(t){t&&this.addSet(t)}static of(e,s){const r=new t;return r.addRange(e,s),r}[Symbol.iterator](){return this.#r[Symbol.iterator]()}get(t){return this.#r[t]}get minElement(){return 0===this.#r.length?a.INVALID_TYPE:this.#r[0].start}get maxElement(){return 0===this.#r.length?a.INVALID_TYPE:this.#r[this.#r.length-1].stop}clear(){this.#e=void 0,this.#r=[]}addOne(t){this.addInterval(new E(t,t))}addRange(t,e){this.addInterval(new E(t,e))}addInterval(t){if(this.#e=void 0,0===this.#r.length)this.#r.push(t);else{for(let e=0;e<this.#r.length;e++){const s=this.#r[e];if(t.equals(s))return;if(t.adjacent(s)||!t.disjoint(s)){const r=t.union(s);this.#r[e]=r;for(let t=e+1;t<this.#r.length;){const s=this.#r[t];if(!r.adjacent(s)&&r.disjoint(s))break;this.#r.splice(t,1),this.#r[e]=r.union(s)}return}if(t.startsBeforeDisjoint(s))return void this.#r.splice(e,0,t)}this.#r.push(t)}}addSet(t){return t.#r.forEach((t=>this.addInterval(t)),this),this}complementWithVocabulary(e){const s=new t;return e?0===e.length?s:(s.addSet(e),s.subtract(this)):s}complement(e,s){const r=new t;return r.addInterval(new E(e,s)),r.subtract(this)}or(e){const s=new t;return s.addSet(this),e.forEach((t=>s.addSet(t))),s}and(e){if(0===e.length)return new t;const s=this.#r,r=e.#r;let i;const a=s.length,n=r.length;let c=0,h=0;for(;c<a&&h<n;){const e=s[c],a=r[h];e.startsBeforeDisjoint(a)?c++:a.startsBeforeDisjoint(e)?h++:e.properlyContains(a)?(i||(i=new t),i.addInterval(e.intersection(a)),h++):a.properlyContains(e)?(i||(i=new t),i.addInterval(e.intersection(a)),c++):e.disjoint(a)||(i||(i=new t),i.addInterval(e.intersection(a)),e.startsAfterNonDisjoint(a)?h++:a.startsAfterNonDisjoint(e)&&c++)}return i||new t}subtract(e){if(0===this.length)return new t;const s=new t(this);if(0===e.length)return s;let r=0,i=0;for(;r<s.#r.length&&i<e.#r.length;){const t=s.#r[r],a=e.#r[i];if(a.stop<t.start){i++;continue}if(a.start>t.stop){r++;continue}let n,c;a.start>t.start&&(n=new E(t.start,a.start-1)),a.stop<t.stop&&(c=new E(a.stop+1,t.stop)),n?c?(s.#r[r]=n,s.#r.splice(r+1,0,c),r++,i++):(s.#r[r]=n,r++):c?(s.#r[r]=c,i++):s.#r.splice(r,1)}return s}contains(t){let e=0,s=this.#r.length-1;for(;e<=s;){const r=Math.floor((e+s)/2),i=this.#r[r];if(i.stop<t)e=r+1;else{if(!(i.start>t))return!0;s=r-1}}return!1}removeRange(t){if(this.#e=void 0,t.start===t.stop)this.removeOne(t.start);else if(null!==this.#r){let e=0;for(const s of this.#r){if(t.stop<=s.start)return;if(t.start>s.start&&t.stop<s.stop){this.#r[e]=new E(s.start,t.start);const r=new E(t.stop,s.stop);return void this.#r.splice(e,0,r)}t.start<=s.start&&t.stop>=s.stop?(this.#r.splice(e,1),e-=1):t.start<s.stop?this.#r[e]=new E(s.start,t.start):t.stop<s.stop&&(this.#r[e]=new E(t.stop,s.stop)),e+=1}}}removeOne(t){this.#e=void 0;for(let e=0;e<this.#r.length;e++){const s=this.#r[e];if(t<s.start)return;if(t===s.start&&t===s.stop)return void this.#r.splice(e,1);if(t===s.start)return void(this.#r[e]=new E(s.start+1,s.stop));if(t===s.stop)return void(this.#r[e]=new E(s.start,s.stop));if(t<s.stop){const r=new E(s.start,t);return this.#r[e]=new E(t+1,s.stop),void this.#r.splice(e,0,r)}}}hashCode(){if(void 0===this.#e){let t=u.initialize();for(const e of this.#r)t=u.update(t,e.start),t=u.update(t,e.stop);this.#e=u.finish(t,2*this.#r.length)}return this.#e}equals(t){if(this===t)return!0;if(this.#r.length!==t.#r.length)return!1;for(let e=0;e<this.#r.length;e++)if(!this.#r[e].equals(t.#r[e]))return!1;return!0}toString(t){if(0===this.#r.length)return"{}";let e="";this.length>1&&(e+="{");for(let s=0;s<this.#r.length;++s){const r=this.#r[s],i=r.start,n=r.stop;i===n?i===a.EOF?e+="<EOF>":e+=t?"'"+String.fromCodePoint(i)+"'":i:e+=t?"'"+String.fromCodePoint(i)+"'..'"+String.fromCodePoint(n)+"'":i+".."+n,s<this.#r.length-1&&(e+=", ")}return this.length>1&&(e+="}"),e}toStringWithVocabulary(t){if(0===this.#r.length)return"{}";let e="";this.length>1&&(e+="{");for(let s=0;s<this.#r.length;++s){const r=this.#r[s],i=r.start,n=r.stop;if(i===n)i===a.EOF?e+="<EOF>":e+=this.elementName(t,i);else for(let s=i;s<=n;++s)s>i&&(e+=", "),e+=this.elementName(t,s);s<this.#r.length-1&&(e+=", ")}return this.length>1&&(e+="}"),e}toStringWithRuleNames(t){if(0===this.#r.length)return"{}";let e="";this.length>1&&(e+="{");const s=l.fromTokenNames(t);for(let r=0;r<this.#r.length;++r){const t=this.#r[r],i=t.start,n=t.stop;if(i===n)i===a.EOF?e+="<EOF>":e+=this.elementName(s,i);else for(let r=i;r<=n;++r)r>i&&(e+=", "),e+=this.elementName(s,r);r<this.#r.length-1&&(e+=", ")}return this.length>1&&(e+="}"),e}toArray(){const t=[];for(const e of this.#r)for(let s=e.start;s<=e.stop;s++)t.push(s);return t}get length(){let t=0;if(1===this.#r.length){const t=this.#r[0];return t.stop-t.start+1}for(const e of this.#r)t+=e.length;return t}elementName(t,e){return e===a.EOF?"<EOF>":e===a.EPSILON?"<EPSILON>":t.getDisplayName(e)}},_=class{static{h(this,"Transition")}static INVALID=0;static EPSILON=1;static RANGE=2;static RULE=3;static PREDICATE=4;static ATOM=5;static ACTION=6;static SET=7;static NOT_SET=8;static WILDCARD=9;static PRECEDENCE=10;target;constructor(t){this.target=t}get isEpsilon(){return!1}get label(){return null}},T=class extends _{static{h(this,"SetTransition")}set;constructor(t,e){super(t),this.set=e||R.of(a.INVALID_TYPE,a.INVALID_TYPE)}get transitionType(){return _.SET}get label(){return this.set}matches(t,e,s){return this.set.contains(t)}toString(){return this.set.toString()}},A=class extends T{static{h(this,"NotSetTransition")}get transitionType(){return _.NOT_SET}matches(t,e,s){return t>=e&&t<=s&&!super.matches(t,e,s)}toString(){return"~"+super.toString()}},S=class t{static{h(this,"PredictionContext")}static EMPTY_RETURN_STATE=2147483647;static EMPTY;static traceATNSimulator=!1;#e;constructor(t){this.#e=t}static calculateEmptyHashCode(){let t=u.initialize(31);return t=u.finish(t,0),t}static calculateHashCodeSingle(t,e){let s=u.initialize(31);return s=u.updateFromComparable(s,t),s=u.update(s,e),s=u.finish(s,2),s}static calculateHashCodeList(t,e){let s=u.initialize(31);for(const r of t)s=u.updateFromComparable(s,r);for(const r of e)s=u.update(s,r);return s=u.finish(s,2*t.length),s}isEmpty(){return!1}hasEmptyPath(){return this.getReturnState(this.length-1)===t.EMPTY_RETURN_STATE}hashCode(){return this.#e}toString(t){return""}},d=h((t=>null===t?"null":t),"valueToString"),L=h((t=>Array.isArray(t)?"["+t.map(d).join(", ")+"]":"null"),"arrayToString"),C=h(((t,e)=>{if(t===e)return!0;if(t.length!==e.length)return!1;for(let s=0;s<t.length;s++){const r=t[s],i=e[s];if(r!==i&&(!r||!r.equals(i)))return!1}return!0}),"equalArrays"),N=h(((t,e)=>{if(t===e)return!0;if(t.length!==e.length)return!1;for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}),"equalNumberArrays"),I=h(((t,e=!1)=>(t=t.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),e&&(t=t.replace(/ /g,"\xb7")),t)),"escapeWhitespace"),O=class t extends S{static{h(this,"ArrayPredictionContext")}parents=[];returnStates=[];constructor(t,e){return super(S.calculateHashCodeList(t,e)),this.parents=t,this.returnStates=e,this}isEmpty(){return this.returnStates[0]===S.EMPTY_RETURN_STATE}get length(){return this.returnStates.length}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}equals(e){return this===e||e instanceof t&&this.hashCode()===e.hashCode()&&(N(this.returnStates,e.returnStates)&&C(this.parents,e.parents))}toString(){if(this.isEmpty())return"[]";const t=[];for(let e=0;e<this.returnStates.length;e++)this.returnStates[e]!==S.EMPTY_RETURN_STATE?(t.push(this.returnStates[e].toString()),this.parents[e]?t.push(this.parents[e].toString()):t.push("null")):t.push("$");return`[${t.join(", ")}]`}},p=class t extends S{static{h(this,"SingletonPredictionContext")}parent;returnState;constructor(t,e){super(t?S.calculateHashCodeSingle(t,e):S.calculateEmptyHashCode()),this.parent=t??null,this.returnState=e}static create(e,s){return s===S.EMPTY_RETURN_STATE&&null===e?S.EMPTY:new t(e,s)}getParent(t){return this.parent}getReturnState(t){return this.returnState}equals(e){return this===e||e instanceof t&&(this.hashCode()===e.hashCode()&&(this.returnState===e.returnState&&(null==this.parent?null==e.parent:this.parent.equals(e.parent))))}toString(){const t=null===this.parent?"":this.parent.toString();return 0===t.length?this.returnState===S.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+t}get length(){return 1}},g=class t extends p{static{h(this,"EmptyPredictionContext")}static instance=new t;constructor(){super(void 0,S.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(){return null}getReturnState(){return this.returnState}equals(t){return this===t}toString(){return"$"}static{S.EMPTY=new t}},m=class{static{h(this,"TerminalNode")}parent=null;symbol;constructor(t){this.symbol=t}getChild(t){return null}getSymbol(){return this.symbol}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return E.INVALID_INTERVAL;const t=this.symbol.tokenIndex;return new E(t,t)}getChildCount(){return 0}accept(t){return t.visitTerminal(this)}getText(){return this.symbol?.text??""}toString(){return this.symbol?.type===a.EOF?"<EOF>":this.symbol?.text??""}toStringTree(){return this.toString()}},x=class extends m{static{h(this,"ErrorNode")}accept(t){return t.visitErrorNode(this)}},U=class t{static{h(this,"CommonToken")}static EMPTY_SOURCE=[null,null];source;tokenIndex;start;stop;type;line;column;channel;#i;constructor(t){this.type=t.type,this.source=t.source,this.tokenIndex=t.tokenIndex??-1,this.line=t.line??0,this.column=t.column??-1,this.channel=t.channel??a.DEFAULT_CHANNEL,this.start=t.start??0,this.stop=t.stop??0,this.#i=t.text,null!==t.source[0]&&(this.line=t.source[0].line,this.column=t.source[0].column)}static fromToken(e){const s=[e.tokenSource,e.inputStream];return new t({type:e.type,line:e.line,tokenIndex:e.tokenIndex,column:e.column,channel:e.channel,start:e.start,stop:e.stop,text:e.text,source:s})}static fromType(e,s){return new t({type:e,text:s,source:t.EMPTY_SOURCE})}static fromSource(e,s,r,i,a){return new t({type:s,channel:r,start:i,stop:a,source:e})}get tokenSource(){return this.source[0]}get inputStream(){return this.source[1]}set inputStream(t){this.source[1]=t}clone(){return new t({source:this.source,type:this.type,channel:this.channel,start:this.start,stop:this.stop,tokenIndex:this.tokenIndex,line:this.line,column:this.column,text:this.#i})}toString(t){let e="";this.channel>0&&(e=",channel="+this.channel);let s=this.text;s?(s=s.replace(/\n/g,"\\n"),s=s.replace(/\r/g,"\\r"),s=s.replace(/\t/g,"\\t")):s="<no text>";let r=String(this.type);return t&&(r=t.vocabulary.getDisplayName(this.type)??"<unknown>"),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+s+"',<"+r+">"+e+","+this.line+":"+this.column+"]"}get text(){if(void 0!==this.#i)return this.#i;const t=this.inputStream;if(!t)return;const e=t.size;return this.start<e&&this.stop<e?t.getTextFromRange(this.start,this.stop):"<EOF>"}set text(t){this.#i=t}setText(t){this.#i=t}setType(t){this.type=t}setLine(t){this.line=t}setCharPositionInLine(t){this.column=t}setChannel(t){this.channel=t}setTokenIndex(t){this.tokenIndex=t}},f=class t{static{h(this,"Trees")}static toStringTree(e,s,r){s=s??null,null!==(r=r??null)&&(s=r.ruleNames);let i=t.getNodeText(e,s);i=I(i,!1);const a=e.getChildCount();if(0===a)return i;let n="("+i+" ";a>0&&(i=t.toStringTree(e.getChild(0),s),n=n.concat(i));for(let c=1;c<a;c++)i=t.toStringTree(e.getChild(c),s),n=n.concat(" "+i);return n=n.concat(")"),n}static getNodeText(t,e,s){if(e=e??null,null!==(s=s??null)&&(e=s.ruleNames),null!==e){if(t instanceof P){const s=t.ruleContext.getAltNumber();return 0!==s?e[t.ruleIndex]+":"+s:e[t.ruleIndex]}if(t instanceof x)return t.toString();if(t instanceof m&&null!==t.symbol)return t.symbol.text}const r=t.getPayload();return o(r)?r.text:String(t.getPayload())}static getChildren(t){const e=[];for(let s=0;s<t.getChildCount();s++)e.push(t.getChild(s));return e}static getAncestors(t){if(null===t.parent)return[];let e=[],s=t.parent;for(;null!==s;)e=[s].concat(e),s=s.parent;return e}static isAncestorOf(t,e){if(null===t||null===e||null===t.parent)return!1;let s=e.parent;for(;null!==s;){if(t===s)return!0;s=s.parent}return!1}static findAllTokenNodes(e,s){return t.findAllNodes(e,s,!0)}static findAllRuleNodes(e,s){return t.findAllNodes(e,s,!1)}static findAllNodes(e,s,r){const i=[];return t.doFindAllNodes(e,s,r,i),i}static descendants(e){let s=[e];for(let r=0;r<e.getChildCount();r++)s=s.concat(t.descendants(e.getChild(r)));return s}static getRootOfSubtreeEnclosingRegion(t,e,s){const r=t.getChildCount();for(let i=0;i<r;i++){const r=t.getChild(i),a=this.getRootOfSubtreeEnclosingRegion(r,e,s);if(null!==a)return a}return t instanceof P&&e>=t.start.tokenIndex&&(null===t.stop||s<=t.stop.tokenIndex)?t:null}static stripChildrenOutOfRange(t,e,s,r){if(null!==t)for(let i=0;i<t.getChildCount();i++){const n=t.getChild(i),c=n.getSourceInterval();if(t instanceof P&&(c.stop<s||c.start>r)&&this.isAncestorOf(n,e)){const e=U.fromType(a.INVALID_TYPE,"...");t.children[i]=new m(e)}}}static doFindAllNodes(e,s,r,i){r&&e instanceof m?e.symbol?.type===s&&i.push(e):!r&&e instanceof P&&e.ruleIndex===s&&i.push(e);for(let a=0;a<e.getChildCount();a++)t.doFindAllNodes(e.getChild(a),s,r,i)}},P=class t{static{h(this,"ParserRuleContext")}static empty=new t(null);start=null;stop=null;children=[];invokingState;#a;constructor(t,e=-1){this.#a=t,this.invokingState=e}copyFrom(t){this.#a=t.#a,this.invokingState=t.invokingState,this.children.slice(0,this.children.length),this.start=t.start,this.stop=t.stop,t.children&&t.children.forEach((t=>{t instanceof x&&(this.children.push(t),t.parent=this)}))}enterRule(t){}exitRule(t){}addChild(t){return this.children.push(t),t}removeLastChild(){this.children.pop()}addTokenNode(t){const e=new m(t);return this.children.push(e),e.parent=this,e}addErrorNode(t){return t.parent=this,this.children.push(t),t}getChild(t,e){if(t<0||t>=this.children.length)return null;if(!e)return this.children[t];for(const s of this.children)if(s instanceof e){if(0===t)return s;t-=1}return null}getToken(t,e){if(e<0||e>=this.children.length)return null;for(const s of this.children)if("symbol"in s&&s.symbol?.type===t){if(0===e)return s;e-=1}return null}getTokens(t){const e=[];for(const s of this.children)"symbol"in s&&s.symbol?.type===t&&e.push(s);return e}getRuleContext(t,e){return this.getChild(t,e)}getRuleContexts(t){const e=[];for(const s of this.children)s instanceof t&&e.push(s);return e}getChildCount(){return this.children.length}getSourceInterval(){return null===this.start||null===this.stop?E.INVALID_INTERVAL:new E(this.start.tokenIndex,this.stop.tokenIndex)}get parent(){return this.#a}set parent(t){this.#a=t}depth(){let t=0,e=this;for(;null!==e;)e=e.parent,t+=1;return t}isEmpty(){return-1===this.invokingState}get ruleContext(){return this}get ruleIndex(){return-1}getPayload(){return this}getText(){return 0===this.children.length?"":this.children.map((t=>t.getText())).join("")}getAltNumber(){return z.INVALID_ALT_NUMBER}setAltNumber(t){}accept(t){return t.visitChildren(this)}toStringTree(...t){return 1===t.length?f.toStringTree(this,null,t[0]):f.toStringTree(this,t[0],t[1])}toString(t,e){t=t??null,e=e??null;let s=this,r="[";for(;null!==s&&s!==e;){if(null===t)s.isEmpty()||(r+=s.invokingState);else{const e=s.ruleIndex;r+=e>=0&&e<t.length?t[e]:""+e}null===s.parent||null===t&&s.parent.isEmpty()||(r+=" "),s=s.parent}return r+="]",r}},k=class t{static{h(this,"ObjectEqualityComparator")}static instance=new t;hashCode(t){return null==t?0:t.hashCode()}equals(t,e){return null==t?null==e:t.equals(e)}},M=class t{static{h(this,"DefaultEqualityComparator")}static instance=new t;hashCode(t){return null==t?0:k.instance.hashCode(t)}equals(t,e){return null==t?null==e:"string"===typeof t||"number"===typeof t?t===e:k.instance.equals(t,e)}},D=class t{static{h(this,"HashSet")}static#n=.75;static#c=16;#h;#o;#E=0;#l;constructor(e,s=t.#c){if(e instanceof t){this.#h=e.#h,this.#o=e.#o.slice(0);for(let t=0;t<this.#o.length;t++){const e=this.#o[t];e&&(this.#o[t]=e.slice(0))}this.#E=e.#E,this.#l=e.#l}else this.#h=e??M.instance,this.#o=this.createBuckets(s),this.#l=Math.floor(t.#c*t.#n)}getOrAdd(t){this.#E>this.#l&&this.expand();const e=this.getBucket(t);let s=this.#o[e];if(!s)return s=[t],this.#o[e]=s,++this.#E,t;for(const r of s)if(this.#h.equals(r,t))return r;return s.push(t),++this.#E,t}get(t){if(null==t)return t;const e=this.getBucket(t),s=this.#o[e];if(s)for(const r of s)if(this.#h.equals(r,t))return r}remove(t){if(null==t)return!1;const e=this.getBucket(t),s=this.#o[e];if(!s)return!1;for(let r=0;r<s.length;r++){const e=s[r];if(this.#h.equals(e,t))return s.splice(r,1),--this.#E,!0}return!1}hashCode(){let t=u.initialize();for(const e of this.#o)if(null!=e)for(const s of e){if(null==s)break;t=u.update(t,this.#h.hashCode(s))}return t=u.finish(t,this.size),t}equals(e){return e===this||e instanceof t&&(e.size===this.size&&this.containsAll(e))}add(t){return this.getOrAdd(t)===t}contains(t){return this.containsFast(t)}containsFast(t){return null!=t&&void 0!==this.get(t)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const t=new Array(this.size);let e=0;for(const s of this.#o)if(null!=s)for(const r of s){if(null==r)break;t[e++]=r}return t}containsAll(e){if(e instanceof t){for(const t of e.#o)if(null!=t)for(const e of t){if(null==e)break;if(!this.containsFast(e))return!1}}else for(const t of e)if(!this.containsFast(t))return!1;return!0}addAll(t){let e=!1;for(const s of t){this.getOrAdd(s)!==s&&(e=!0)}return e}clear(){this.#o=this.createBuckets(t.#c),this.#E=0,this.#l=Math.floor(t.#c*t.#n)}toString(){if(0===this.size)return"{}";let t="{",e=!0;for(const s of this.#o)if(null!=s)for(const r of s){if(null==r)break;e?e=!1:t+=", ",t+=r.toString()}return t+="}",t}toTableString(){let t="";for(const e of this.#o){if(null==e){t+="null\n";continue}t+="[";let s=!0;for(const r of e)s?s=!1:t+=" ",t+=null==r?"_":r.toString();t+="]\n"}return t}getBucket(t){return this.#h.hashCode(t)&this.#o.length-1}expand(){const e=this.#o,s=2*this.#o.length,r=this.createBuckets(s);this.#o=r,this.#l=Math.floor(s*t.#n);for(const t of e)if(t)for(const e of t){const t=this.getBucket(e);let s=this.#o[t];s||(s=[],this.#o[t]=s),s.push(e)}}get size(){return this.#E}get isEmpty(){return 0===this.#E}createBuckets(t){return new Array(t)}},y=class{static{h(this,"MapKeyEqualityComparator")}keyComparator;constructor(t){this.keyComparator=t}hashCode(t){return this.keyComparator.hashCode(t.key)}equals(t,e){return this.keyComparator.equals(t.key,e.key)}},v=class t{static{h(this,"HashMap")}backingStore;constructor(e){this.backingStore=new D(e instanceof t?e.backingStore:new y(e))}clear(){this.backingStore.clear()}containsKey(t){return this.backingStore.contains({key:t})}get(t){const e=this.backingStore.get({key:t});if(e)return e.value}get isEmpty(){return this.backingStore.isEmpty}set(t,e){const s=this.backingStore.get({key:t,value:e});let r;return s?(r=s.value,s.value=e):this.backingStore.add({key:t,value:e}),r}setIfAbsent(t,e){const s=this.backingStore.get({key:t,value:e});let r;return s?r=s.value:this.backingStore.add({key:t,value:e}),r}values(){return this.backingStore.toArray().map((t=>t.value))}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(t){return this.backingStore.equals(t.backingStore)}},b=h(((t,e)=>{if(e||(e=P.empty),!e.parent||e===P.empty)return S.EMPTY;const s=b(t,e.parent),r=t.states[e.invokingState].transitions[0];return p.create(s,r.followState.stateNumber)}),"predictionContextFromRuleContext"),H=h(((t,e,s)=>{if(t.isEmpty())return t;let r=s.get(t);if(r)return r;if(r=e.get(t),r)return s.set(t,r),r;let i,a=!1,n=[];for(let c=0;c<n.length;c++){const r=H(t.getParent(c),e,s);if(a||r!==t.getParent(c)){if(!a){n=[];for(let e=0;e<t.length;e++)n[e]=t.getParent(e);a=!0}n[c]=r}}return a?(i=0===n.length?S.EMPTY:1===n.length?p.create(n[0]??void 0,t.getReturnState(0)):new O(n,t.returnStates),e.add(i),s.set(i,i),s.set(t,i),i):(e.add(t),s.set(t,t),t)}),"getCachedPredictionContext"),w=h(((t,e,s,r)=>{if(t===e)return t;if(t instanceof p&&e instanceof p)return B(t,e,s,r);if(s){if(t instanceof g)return t;if(e instanceof g)return e}return t instanceof p&&(t=new O([t.parent],[t.returnState])),e instanceof p&&(e=new O([e.parent],[e.returnState])),F(t,e,s,r)}),"merge"),F=h(((t,e,s,r)=>{if(r){let s=r.get(t,e);if(s)return s;if(s=r.get(e,t),s)return s}let i=0,a=0,n=0,c=new Array(t.returnStates.length+e.returnStates.length).fill(0),h=new Array(t.returnStates.length+e.returnStates.length).fill(null);for(;i<t.returnStates.length&&a<e.returnStates.length;){const o=t.parents[i],E=e.parents[a];if(t.returnStates[i]===e.returnStates[a]){const e=t.returnStates[i];e===S.EMPTY_RETURN_STATE&&null===o&&null===E||null!==o&&null!==E&&o===E?(h[n]=o,c[n]=e):(h[n]=w(o,E,s,r),c[n]=e),i+=1,a+=1}else t.returnStates[i]<e.returnStates[a]?(h[n]=o,c[n]=t.returnStates[i],i+=1):(h[n]=E,c[n]=e.returnStates[a],a+=1);n+=1}if(i<t.returnStates.length)for(let E=i;E<t.returnStates.length;E++)h[n]=t.parents[E],c[n]=t.returnStates[E],n+=1;else for(let E=a;E<e.returnStates.length;E++)h[n]=e.parents[E],c[n]=e.returnStates[E],n+=1;if(n<h.length){if(1===n){const s=p.create(h[0]??void 0,c[0]);return null!==r&&r.set(t,e,s),s}h=h.slice(0,n),c=c.slice(0,n)}const o=new O(h,c);return o.equals(t)?(null!==r&&r.set(t,e,t),S.traceATNSimulator&&console.log("mergeArrays a="+t+",b="+e+" -> a"),t):o.equals(e)?(null!==r&&r.set(t,e,e),e):(G(h),null!==r&&r.set(t,e,o),S.traceATNSimulator&&console.log("mergeArrays a="+t+",b="+e+" -> "+o),o)}),"mergeArrays"),G=h((t=>{const e=new v(k.instance);for(const s of t)s&&(e.containsKey(s)||e.set(s,s));for(let s=0;s<t.length;s++)t[s]&&(t[s]=e.get(t[s])??null)}),"combineCommonParents"),B=h(((t,e,s,r)=>{if(null!==r){let s=r.get(t,e);if(null!==s)return s;if(s=r.get(e,t),null!==s)return s}const i=Y(t,e,s);if(null!==i)return null!==r&&r.set(t,e,i),i;if(t.returnState===e.returnState){const i=w(t.parent,e.parent,s,r);if(i===t.parent)return t;if(i===e.parent)return e;const a=p.create(i,t.returnState);return null!==r&&r.set(t,e,a),a}{let s=null;if((t===e||null!==t.parent&&t.parent===e.parent)&&(s=t.parent),null!==s){const i=[t.returnState,e.returnState];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState);const a=new O([s,s],i);return null!==r&&r.set(t,e,a),a}const i=[t.returnState,e.returnState];let a=[t.parent,e.parent];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState,a=[e.parent,t.parent]);const n=new O(a,i);return null!==r&&r.set(t,e,n),n}}),"mergeSingletons"),Y=h(((t,e,s)=>{if(s){if(t===S.EMPTY||e===S.EMPTY)return S.EMPTY}else{if(t===S.EMPTY&&e===S.EMPTY)return S.EMPTY;if(t===S.EMPTY){const t=[e.returnState,S.EMPTY_RETURN_STATE],s=[e.parent,null];return new O(s,t)}if(e===S.EMPTY){const e=[t.returnState,S.EMPTY_RETURN_STATE],s=[t.parent,null];return new O(s,e)}}return null}),"mergeRoot"),V=class{static{h(this,"BitSet")}data;constructor(t){this.data=t?new Uint32Array(t.map((t=>t>>>0))):new Uint32Array(1)}[Symbol.iterator](){const t=this.data.length;let e=0,s=this.data[e];const r=this.data;return{[Symbol.iterator](){return this},next:()=>{for(;e<t;){if(0!==s){const t=s&-s,r=(e<<5)+this.bitCount(t-1);return s^=t,{done:!1,value:r}}e++,e<t&&(s=r[e])}return{done:!0,value:void 0}}}}clear(t){void 0===t?this.data=new Uint32Array:(this.resize(t),this.data[t>>>5]&=~(1<<t))}or(t){const e=Math.min(this.data.length,t.data.length);for(let s=0;s<e;++s)this.data[s]|=t.data[s];if(this.data.length<t.data.length){this.resize((t.data.length<<5)-1);const s=t.data.length;for(let r=e;r<s;++r)this.data[r]=t.data[r]}}get(t){if(t<0)throw new RangeError("index cannot be negative");const e=t>>>5;return!(e>=this.data.length)&&0!==(this.data[e]&1<<t%32)}get length(){let t=0;const e=this.data.length,s=this.data;for(let r=0;r<e;r++)t+=this.bitCount(s[r]);return t}values(){const t=new Array(this.length);let e=0;const s=this.data.length;for(let r=0;r<s;++r){let s=this.data[r];for(;0!==s;){const i=s&-s;t[e++]=(r<<5)+this.bitCount(i-1),s^=i}}return t}nextSetBit(t){if(t<0)throw new RangeError("index cannot be negative");for(const e of this)if(e>t)return e}set(t){if(t<0)throw new RangeError("index cannot be negative");this.resize(t),this.data[t>>>5]|=1<<t%32}toString(){return"{"+this.values().join(", ")+"}"}resize(t){const e=t+32>>>5;if(e<=this.data.length)return;const s=new Uint32Array(e);s.set(this.data),s.fill(0,this.data.length),this.data=s}bitCount(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,63&(t+=t>>16)}},W=class t{static{h(this,"ATNState")}static INVALID_STATE_NUMBER=-1;static INVALID_TYPE=0;static BASIC=1;static RULE_START=2;static BLOCK_START=3;static PLUS_BLOCK_START=4;static STAR_BLOCK_START=5;static TOKEN_START=6;static RULE_STOP=7;static BLOCK_END=8;static STAR_LOOP_BACK=9;static STAR_LOOP_ENTRY=10;static PLUS_LOOP_BACK=11;static LOOP_END=12;static stateType=t.INVALID_STATE_NUMBER;stateNumber=0;ruleIndex=0;epsilonOnlyTransitions=!1;nextTokenWithinRule;transitions=[];hashCode(){return this.stateNumber}equals(t){return this.stateNumber===t.stateNumber}toString(){return`${this.stateNumber}`}addTransitionAtIndex(t,e){0===this.transitions.length?this.epsilonOnlyTransitions=e.isEpsilon:this.epsilonOnlyTransitions!==e.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.splice(t,1,e)}addTransition(t){0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.push(t)}setTransition(t,e){this.transitions.splice(t,1,e)}removeTransition(t){return this.transitions.splice(t,1)[0]}},X=class t{static{h(this,"SemanticContext")}cachedHashCode;static andContext(e,s){if(null===e||e===t.NONE)return s;if(null===s||s===t.NONE)return e;const r=new K(e,s);return 1===r.operands.length?r.operands[0]:r}static orContext(e,s){if(null===e)return s;if(null===s)return e;if(e===t.NONE||s===t.NONE)return t.NONE;const r=new Q(e,s);return 1===r.operands.length?r.operands[0]:r}static filterPrecedencePredicates(e){const s=[];for(const r of e)r instanceof t.PrecedencePredicate&&s.push(r);return s}evalPrecedence(t,e){return this}},K=class t extends X{static{h(this,"AND")}operands;constructor(e,s){super();const r=new D;e instanceof t?e.operands.forEach((t=>{r.add(t)})):r.add(e),s instanceof t?s.operands.forEach((t=>{r.add(t)})):r.add(s);const i=X.filterPrecedencePredicates(r);if(i.length>0){let t=null;i.forEach((e=>{(null===t||e.precedence<t.precedence)&&(t=e)})),t&&r.add(t)}this.operands=r.toArray()}equals(e){return this===e||e instanceof t&&C(this.operands,e.operands)}hashCode(){if(void 0===this.cachedHashCode){let t=u.initialize();for(const e of this.operands)t=u.updateFromComparable(t,e);t=u.update(t,3813686060),this.cachedHashCode=u.finish(t,this.operands.length+1)}return this.cachedHashCode}evaluate(t,e){for(const s of this.operands)if(!s.evaluate(t,e))return!1;return!0}evalPrecedence(t,e){let s=!1;const r=[];for(const a of this.operands){const i=a.evalPrecedence(t,e);if(s||=i!==a,null===i)return null;i!==X.NONE&&r.push(i)}if(!s)return this;if(0===r.length)return X.NONE;let i=null;return r.forEach((t=>{i=null===i?t:X.andContext(i,t)})),i}toString(){const t=this.operands.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("&&")}},Q=class t extends X{static{h(this,"OR")}operands;constructor(e,s){super();const r=new D;e instanceof t?e.operands.forEach((t=>{r.add(t)})):r.add(e),s instanceof t?s.operands.forEach((t=>{r.add(t)})):r.add(s);const i=X.filterPrecedencePredicates(r);if(i.length>0){const t=i.sort(((t,e)=>t.compareTo(e))),e=t[t.length-1];r.add(e)}this.operands=r.toArray()}equals(e){return this===e||e instanceof t&&C(this.operands,e.operands)}hashCode(){if(void 0===this.cachedHashCode){let t=u.initialize();for(const e of this.operands)t=u.updateFromComparable(t,e);t=u.update(t,3383313031),this.cachedHashCode=u.finish(t,this.operands.length+1)}return this.cachedHashCode}evaluate(t,e){for(const s of this.operands)if(s.evaluate(t,e))return!0;return!1}evalPrecedence(t,e){let s=!1;const r=[];for(const a of this.operands){const i=a.evalPrecedence(t,e);if(s||=i!==a,i===X.NONE)return X.NONE;null!==i&&r.push(i)}if(!s)return this;if(0===r.length)return null;let i=null;return r.forEach((t=>{i=null===i?t:X.orContext(i,t)})),i}toString(){const t=this.operands.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("||")}};(t=>{class e extends t{static{h(this,"Predicate")}ruleIndex;predIndex;isCtxDependent;constructor(t,e,s){super(),this.ruleIndex=t??-1,this.predIndex=e??-1,this.isCtxDependent=s??!1}evaluate(t,e){const s=this.isCtxDependent?e:null;return t.sempred(s,this.ruleIndex,this.predIndex)}hashCode(){if(void 0===this.cachedHashCode){let t=u.initialize();t=u.update(t,this.ruleIndex),t=u.update(t,this.predIndex),t=u.update(t,this.isCtxDependent?1:0),t=u.finish(t,3),this.cachedHashCode=t}return this.cachedHashCode}equals(t){return this===t||this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}t.Predicate=e;class s extends t{static{h(this,"PrecedencePredicate")}precedence;constructor(t){super(),this.precedence=t??0}evaluate(t,e){return t.precpred(e,this.precedence)}evalPrecedence(e,s){return e.precpred(s??null,this.precedence)?t.NONE:null}compareTo(t){return this.precedence-t.precedence}hashCode(){return 31+this.precedence}equals(t){return this===t||this.precedence===t.precedence}toString(){return"{"+this.precedence+">=prec}?"}}t.PrecedencePredicate=s,t.NONE=new e})(X||(X={}));var q,j=class t{static{h(this,"ATNConfig")}state;alt;reachesIntoOuterContext=!1;precedenceFilterSuppressed=!1;get semanticContext(){return this.#u}cachedHashCode;#R=null;#u;constructor(t,e,s,r){this.state=e,this.alt=t.alt,this.context=s,this.#u=r??X.NONE,this.reachesIntoOuterContext=t.reachesIntoOuterContext,void 0!==t.precedenceFilterSuppressed&&(this.precedenceFilterSuppressed=t.precedenceFilterSuppressed)}static duplicate(e,s){return new t(e,e.state,e.context,s??e.semanticContext)}static createWithContext(e,s,r,i){return new t({alt:s},e,r,i)}static createWithConfig(e,s,r){return new t(s,e,r??s.context,s.semanticContext)}static createWithSemanticContext(e,s,r){return new t(s,e??s.state,s.context,r)}hashCode(){if(void 0===this.cachedHashCode){let t=u.initialize(7);t=u.update(t,this.state.stateNumber),t=u.update(t,this.alt),t=u.updateFromComparable(t,this.#R),t=u.updateFromComparable(t,this.semanticContext),t=u.finish(t,4),this.cachedHashCode=t}return this.cachedHashCode}get context(){return this.#R}set context(t){this.#R=t,this.cachedHashCode=void 0}equals(t){return this===t||this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&(null===this.context?null===t.context:this.context.equals(t.context))&&this.semanticContext.equals(t.semanticContext)&&this.precedenceFilterSuppressed===t.precedenceFilterSuppressed}toString(t,e=!0){let s="";return e&&(s=","+this.alt),"("+this.state+s+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==X.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext?",up="+this.reachesIntoOuterContext:"")+")"}},J=class t{static{h(this,"LL1Analyzer")}static hitPredicate=a.INVALID_TYPE;#_;getDecisionLookahead(e){if(!e)return;const s=e.transitions.length,r=new Array(s);for(let i=0;i<s;i++){const s=new R,a=new D;this.doLook(e.transitions[i].target,void 0,S.EMPTY,s,a,new V,!1,!1),s.length>0&&!s.contains(t.hitPredicate)&&(r[i]=s)}return r}look(t,e,s,r){this.#_=t;const i=new R,a=r?b(t,r):null;return this.doLook(e,s,a,i,new D,new V,!0,!0),i}doLook(e,s,r,i,n,c,h,o){const E=j.createWithContext(e,0,r);if(!n.get(E)){if(n.add(E),e===s){if(!r)return void i.addOne(a.EPSILON);if(r.isEmpty()&&o)return void i.addOne(a.EOF)}if(e.constructor.stateType===W.RULE_STOP){if(!r)return void i.addOne(a.EPSILON);if(r.isEmpty()&&o)return void i.addOne(a.EOF);if(r!==S.EMPTY){const t=c.get(e.ruleIndex);try{c.clear(e.ruleIndex);for(let t=0;t<r.length;t++){const e=this.#_.states[r.getReturnState(t)];this.doLook(e,s,r.getParent(t),i,n,c,h,o)}}finally{t&&c.set(e.ruleIndex)}return}}for(const E of e.transitions)switch(E.transitionType){case _.RULE:{if(c.get(E.target.ruleIndex))continue;const t=p.create(r??void 0,E.followState.stateNumber);try{c.set(E.target.ruleIndex),this.doLook(E.target,s,t,i,n,c,h,o)}finally{c.clear(E.target.ruleIndex)}break}case _.PREDICATE:case _.PRECEDENCE:h?this.doLook(E.target,s,r,i,n,c,h,o):i.addOne(t.hitPredicate);break;case _.WILDCARD:i.addRange(a.MIN_USER_TOKEN_TYPE,this.#_.maxTokenType);break;default:if(E.isEpsilon)this.doLook(E.target,s,r,i,n,c,h,o);else{let t=E.label;t&&(E instanceof A&&(t=t.complement(a.MIN_USER_TOKEN_TYPE,this.#_.maxTokenType)),i.addSet(t))}}}}},z=class t{static{h(this,"ATN")}static INVALID_ALT_NUMBER=0;static LEXER=0;static PARSER=1;grammarType;maxTokenType;states=[];decisionToState=[];ruleToStartState=[];ruleToStopState=[];modeNameToStartState=new Map;ruleToTokenType=[];lexerActions=[];modeToStartState=[];static#T=new J;constructor(t,e){this.grammarType=t,this.maxTokenType=e}nextTokens(e,s){if(!s&&e.nextTokenWithinRule)return e.nextTokenWithinRule;const r=t.#T.look(this,e,void 0,s);return s||(e.nextTokenWithinRule=r),r}addState(t){t&&(t.stateNumber=this.states.length),this.states.push(t)}removeState(t){this.states[t.stateNumber]=null}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,t.decision}getDecisionState(t){return 0===this.decisionToState.length?null:this.decisionToState[t]}getNumberOfDecisions(){return this.decisionToState.length}getExpectedTokens(t,e){if(t<0||t>=this.states.length)throw new Error("Invalid state number.");const s=this.states[t];let r=this.nextTokens(s);if(!r.contains(a.EPSILON))return r;let i=e;const n=new R;for(n.addSet(r),n.removeOne(a.EPSILON);null!==i&&i.invokingState>=0&&r.contains(a.EPSILON);){const t=this.states[i.invokingState].transitions[0];r=this.nextTokens(t.followState),n.addSet(r),n.removeOne(a.EPSILON),i=i.parent}return r.contains(a.EPSILON)&&n.addOne(a.EOF),n}},Z=class t{static{h(this,"KeyTypeEqualityComparer")}static instance=new t;hashCode(t){let e=7;return e=31*e+t.state.stateNumber,e=31*e+t.alt,e=31*e+t.semanticContext.hashCode(),e}equals(t,e){return t===e||t.state.stateNumber===e.state.stateNumber&&t.alt===e.alt&&t.semanticContext.equals(e.semanticContext)}},$=class{static{h(this,"ATNConfigSet")}configLookup=new D(Z.instance);configs=[];uniqueAlt=0;hasSemanticContext=!1;dipsIntoOuterContext=!1;fullCtx=!1;readOnly=!1;conflictingAlts=null;firstStopState;#e=-1;constructor(t){if(void 0!==t)if("boolean"===typeof t)this.fullCtx=t??!0;else{const e=t;this.addAll(e.configs),this.uniqueAlt=e.uniqueAlt,this.conflictingAlts=e.conflictingAlts,this.hasSemanticContext=e.hasSemanticContext,this.dipsIntoOuterContext=e.dipsIntoOuterContext}}[Symbol.iterator](){return this.configs[Symbol.iterator]()}add(t,e=null){if(this.readOnly)throw new Error("This set is readonly");this.firstStopState||t.state.constructor.stateType!==W.RULE_STOP||(this.firstStopState=t),this.hasSemanticContext||=t.semanticContext!==X.NONE,this.dipsIntoOuterContext||=t.reachesIntoOuterContext;const s=this.configLookup.getOrAdd(t);if(s===t)return this.#e=-1,void this.configs.push(t);const r=!this.fullCtx,i=w(s.context,t.context,r,e);s.reachesIntoOuterContext||=t.reachesIntoOuterContext,s.precedenceFilterSuppressed||=t.precedenceFilterSuppressed,s.context=i}get elements(){return this.configs}getAlts(){const t=new V;for(const e of this.configs)t.set(e.alt);return t}getPredicates(){const t=[];for(const e of this.configs)e.semanticContext!==X.NONE&&t.push(e.semanticContext);return t}getStates(){const t=new D;for(const e of this.configs)t.add(e.state);return t}optimizeConfigs(t){if(this.readOnly)throw new Error("This set is readonly");if(0!==this.configLookup.size)for(const e of this.configs)e.context=t.getCachedContext(e.context)}addAll(t){for(const e of t)this.add(e);return!1}equals(t){return this===t||!(this.fullCtx!==t.fullCtx||this.uniqueAlt!==t.uniqueAlt||this.conflictingAlts!==t.conflictingAlts||this.hasSemanticContext!==t.hasSemanticContext||this.dipsIntoOuterContext!==t.dipsIntoOuterContext||!C(this.configs,t.configs))}hashCode(){return-1===this.#e&&(this.#e=this.computeHashCode()),this.#e}get length(){return this.configs.length}isEmpty(){return 0===this.configs.length}contains(t){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(t)}containsFast(t){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(t)}clear(){if(this.readOnly)throw new Error("This set is readonly");this.configs=[],this.#e=-1,this.configLookup=new D(Z.instance)}setReadonly(t){this.readOnly=t,t&&(this.configLookup=null)}toString(){return L(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==z.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}computeHashCode(){let t=u.initialize();return this.configs.forEach((e=>{t=u.update(t,e.hashCode())})),t=u.finish(t,this.configs.length),t}},tt=class extends W{static{h(this,"BasicState")}static stateType=W.BASIC},et=class extends W{static{h(this,"DecisionState")}decision=-1;nonGreedy=!1},st=class extends et{static{h(this,"BlockStartState")}endState},rt=class extends W{static{h(this,"BlockEndState")}static stateType=W.BLOCK_END;startState},it=class extends W{static{h(this,"LoopEndState")}static stateType=W.LOOP_END;loopBackState},at=class extends W{static{h(this,"RuleStartState")}static stateType=W.RULE_START;stopState;isLeftRecursiveRule=!1;isPrecedenceRule=!1},nt=class extends W{static{h(this,"RuleStopState")}static stateType=W.RULE_STOP},ct=class extends et{static{h(this,"TokensStartState")}static stateType=W.TOKEN_START},ht=class extends et{static{h(this,"PlusLoopbackState")}static stateType=W.PLUS_LOOP_BACK},ot=class extends W{static{h(this,"StarLoopbackState")}static stateType=W.STAR_LOOP_BACK},Et=class extends et{static{h(this,"StarLoopEntryState")}static stateType=W.STAR_LOOP_ENTRY;loopBackState;precedenceRuleDecision=!1},lt=class extends st{static{h(this,"PlusBlockStartState")}static stateType=W.PLUS_BLOCK_START;loopBackState},ut=class extends st{static{h(this,"StarBlockStartState")}static stateType=W.STAR_BLOCK_START},Rt=class extends st{static{h(this,"BasicBlockStartState")}static stateType=W.BLOCK_START},_t=class extends _{static{h(this,"AtomTransition")}labelValue;#A;constructor(t,e){super(t),this.labelValue=e,this.#A=R.of(e,e)}get label(){return this.#A}get transitionType(){return _.ATOM}matches(t){return this.labelValue===t}toString(){return this.labelValue.toString()}},Tt=class extends _{static{h(this,"RuleTransition")}ruleIndex;precedence;followState;constructor(t,e,s,r){super(t),this.ruleIndex=e,this.precedence=s,this.followState=r}get isEpsilon(){return!0}get transitionType(){return _.RULE}matches(t,e,s){return!1}},At=class extends _{static{h(this,"RangeTransition")}start;stop;#A=new R;constructor(t,e,s){super(t),this.start=e,this.stop=s,this.#A.addRange(e,s)}get label(){return this.#A}get transitionType(){return _.RANGE}matches(t,e,s){return t>=this.start&&t<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}},St=class extends _{static{h(this,"ActionTransition")}ruleIndex;actionIndex;isCtxDependent;constructor(t,e,s,r){super(t),this.ruleIndex=e,this.actionIndex=void 0===s?-1:s,this.isCtxDependent=void 0!==r&&r}get isEpsilon(){return!0}get transitionType(){return _.ACTION}matches(t,e,s){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}},dt=class extends _{static{h(this,"EpsilonTransition")}#S;constructor(t,e=-1){super(t),this.#S=e}get outermostPrecedenceReturn(){return this.#S}get isEpsilon(){return!0}get transitionType(){return _.EPSILON}matches(){return!1}toString(){return"epsilon"}},Lt=class extends _{static{h(this,"WildcardTransition")}get transitionType(){return _.WILDCARD}matches(t,e,s){return t>=e&&t<=s}toString(){return"."}},Ct=class extends _{static{h(this,"AbstractPredicateTransition")}constructor(t){super(t)}},Nt=class extends Ct{static{h(this,"PredicateTransition")}ruleIndex;predIndex;isCtxDependent;constructor(t,e,s,r){super(t),this.ruleIndex=e,this.predIndex=s,this.isCtxDependent=r}get isEpsilon(){return!0}matches(t,e,s){return!1}get transitionType(){return _.PREDICATE}getPredicate(){return new X.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}},It=class extends Ct{static{h(this,"PrecedencePredicateTransition")}precedence;constructor(t,e){super(t),this.precedence=e}get isEpsilon(){return!0}matches(t,e,s){return!1}getPredicate(){return new X.PrecedencePredicate(this.precedence)}get transitionType(){return _.PRECEDENCE}toString(){return this.precedence+" >= _p"}},Ot=0,pt=1,gt=2,mt=3,xt=4,Ut=5,ft=6,Pt=7,kt=class t{static{h(this,"LexerSkipAction")}static instance=new t;actionType;isPositionDependent=!1;constructor(){this.actionType=ft}equals(t){return t===this}hashCode(){return ft}execute(t){t.skip()}toString(){return"skip"}},Mt=class t{static{h(this,"LexerChannelAction")}channel;actionType;isPositionDependent=!1;#e;constructor(t){this.actionType=Ot,this.channel=t}execute(t){t.channel=this.channel}hashCode(){if(void 0===this.#e){let t=u.initialize();t=u.update(t,this.actionType),t=u.update(t,this.channel),this.#e=u.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&this.channel===e.channel}toString(){return"channel("+this.channel+")"}},Dt=class t{static{h(this,"LexerCustomAction")}ruleIndex;actionIndex;actionType;isPositionDependent=!0;#e;constructor(t,e){this.actionType=pt,this.ruleIndex=t,this.actionIndex=e}execute(t){t.action(null,this.ruleIndex,this.actionIndex)}hashCode(){if(void 0===this.#e){let t=u.initialize();t=u.update(t,this.actionType),t=u.update(t,this.ruleIndex),t=u.update(t,this.actionIndex),this.#e=u.finish(t,3)}return this.#e}equals(e){return this===e||e instanceof t&&(this.ruleIndex===e.ruleIndex&&this.actionIndex===e.actionIndex)}},yt=class t{static{h(this,"LexerMoreAction")}static instance=new t;actionType;isPositionDependent=!1;constructor(){this.actionType=mt}equals(t){return t===this}hashCode(){return mt}execute(t){t.more()}toString(){return"more"}},vt=class t{static{h(this,"LexerTypeAction")}type;actionType;isPositionDependent=!1;#e;constructor(t){this.actionType=Pt,this.type=t}execute(t){t.type=this.type}hashCode(){if(void 0===this.#e){let t=u.initialize();t=u.update(t,this.actionType),t=u.update(t,this.type),this.#e=u.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&this.type===e.type}toString(){return"type("+this.type+")"}},bt=class t{static{h(this,"LexerPushModeAction")}mode;actionType;isPositionDependent=!1;#e;constructor(t){this.actionType=Ut,this.mode=t}execute(t){t.pushMode(this.mode)}hashCode(){if(void 0===this.#e){let t=u.initialize();t=u.update(t,this.actionType),t=u.update(t,this.mode),this.#e=u.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&this.mode===e.mode}toString(){return"pushMode("+this.mode+")"}},Ht=class t{static{h(this,"LexerPopModeAction")}static instance=new t;actionType;isPositionDependent=!1;constructor(){this.actionType=xt}equals(t){return t===this}hashCode(){return xt}execute(t){t.popMode()}toString(){return"popMode"}},wt=class t{static{h(this,"LexerModeAction")}mode;actionType;isPositionDependent=!1;#e;constructor(t){this.actionType=gt,this.mode=t}execute(t){t.mode=this.mode}hashCode(){if(void 0===this.#e){let t=u.initialize();t=u.update(t,this.actionType),t=u.update(t,this.mode),this.#e=u.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&this.mode===e.mode}toString(){return"mode("+this.mode+")"}},Ft=class t{static{h(this,"ATNDeserializer")}static SERIALIZED_VERSION=4;static stateTypeMapper=new Map([[W.INVALID_TYPE,void 0],[W.BASIC,tt],[W.RULE_START,at],[W.BLOCK_START,Rt],[W.PLUS_BLOCK_START,lt],[W.STAR_BLOCK_START,ut],[W.TOKEN_START,ct],[W.RULE_STOP,nt],[W.BLOCK_END,rt],[W.STAR_LOOP_BACK,ot],[W.STAR_LOOP_ENTRY,Et],[W.PLUS_LOOP_BACK,ht],[W.LOOP_END,it]]);static lexerActionFactoryMapper=new Map([[Ot,t=>new Mt(t)],[pt,(t,e)=>new Dt(t,e)],[gt,t=>new wt(t)],[mt,()=>yt.instance],[xt,()=>Ht.instance],[Ut,t=>new bt(t)],[ft,()=>kt.instance],[Pt,t=>new vt(t)]]);data=[];pos=0;deserializationOptions;actionFactories;constructor(t){t||(t={readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!1}),this.deserializationOptions=t}deserialize(t){this.data=t,this.checkVersion();const e=this.readATN();this.readStates(e),this.readRules(e),this.readModes(e);const s=[];return this.readSets(e,s),this.readEdges(e,s),this.readDecisions(e),this.readLexerActions(e),this.markPrecedenceDecisions(e),this.verifyATN(e),this.deserializationOptions.generateRuleBypassTransitions&&e.grammarType===z.PARSER&&(this.generateRuleBypassTransitions(e),this.verifyATN(e)),e}checkVersion(){const e=this.data[this.pos++];if(e!==t.SERIALIZED_VERSION)throw new Error("Could not deserialize ATN with version "+e+" (expected "+t.SERIALIZED_VERSION+").")}readATN(){const t=this.data[this.pos++],e=this.data[this.pos++];return new z(t,e)}readStates(t){let e,s;const r=[],i=[],a=this.data[this.pos++];for(let h=0;h<a;h++){const e=this.data[this.pos++];if(e===W.INVALID_TYPE){t.addState(null);continue}const s=this.data[this.pos++],a=this.stateFactory(e,s);if(e===W.LOOP_END){const t=this.data[this.pos++];r.push([a,t])}else if(a instanceof st){const t=this.data[this.pos++];i.push([a,t])}t.addState(a)}for(e=0;e<r.length;e++){const s=r[e];s[0].loopBackState=t.states[s[1]]??void 0}for(e=0;e<i.length;e++){const s=i[e];s[0].endState=t.states[s[1]]}const n=this.data[this.pos++];for(e=0;e<n;e++)s=this.data[this.pos++],t.states[s].nonGreedy=!0;const c=this.data[this.pos++];for(e=0;e<c;e++)s=this.data[this.pos++],t.states[s].isPrecedenceRule=!0}readRules(t){let e;const s=this.data[this.pos++];for(t.grammarType===z.LEXER&&(t.ruleToTokenType=new Array(s),t.ruleToTokenType.fill(0)),t.ruleToStartState=new Array(s),t.ruleToStartState.fill(null),e=0;e<s;e++){const s=this.data[this.pos++];if(t.ruleToStartState[e]=t.states[s],t.grammarType===z.LEXER){const s=this.data[this.pos++];t.ruleToTokenType[e]=s}}for(t.ruleToStopState=new Array(s),t.ruleToStopState.fill(null),e=0;e<t.states.length;e++){const s=t.states[e];s instanceof nt&&(t.ruleToStopState[s.ruleIndex]=s,t.ruleToStartState[s.ruleIndex].stopState=s)}}readModes(t){const e=this.data[this.pos++];for(let s=0;s<e;s++){const e=this.data[this.pos++];t.modeToStartState.push(t.states[e])}}readSets(t,e){const s=this.data[this.pos++];for(let r=0;r<s;r++){const t=new R;e.push(t);const s=this.data[this.pos++];0!==this.data[this.pos++]&&t.addOne(-1);for(let e=0;e<s;e++){const e=this.data[this.pos++],s=this.data[this.pos++];t.addRange(e,s)}}}readEdges(t,e){let s,r,i,a,n;const c=this.data[this.pos++];for(s=0;s<c;s++){const s=this.data[this.pos++],r=this.data[this.pos++],i=this.data[this.pos++],n=this.data[this.pos++],c=this.data[this.pos++],h=this.data[this.pos++];a=this.edgeFactory(t,i,r,n,c,h,e);t.states[s].addTransition(a)}for(s=0;s<t.states.length;s++)for(i=t.states[s],r=0;r<i.transitions.length;r++){const e=i.transitions[r];if(!(e instanceof Tt))continue;let s=-1;t.ruleToStartState[e.target.ruleIndex].isPrecedenceRule&&0===e.precedence&&(s=e.target.ruleIndex),a=new dt(e.followState,s),t.ruleToStopState[e.target.ruleIndex].addTransition(a)}for(s=0;s<t.states.length;s++){if(i=t.states[s],i instanceof st){if(!i.endState)throw new Error("IllegalState");if(i.endState.startState)throw new Error("IllegalState");i.endState.startState=i}if(i instanceof ht)for(r=0;r<i.transitions.length;r++)n=i.transitions[r].target,n instanceof lt&&(n.loopBackState=i);else if(i instanceof ot)for(r=0;r<i.transitions.length;r++)n=i.transitions[r].target,n instanceof Et&&(n.loopBackState=i)}}readDecisions(t){const e=this.data[this.pos++];for(let s=0;s<e;s++){const e=this.data[this.pos++],r=t.states[e];t.decisionToState.push(r),r.decision=s}}readLexerActions(t){if(t.grammarType===z.LEXER){const e=this.data[this.pos++];t.lexerActions=[];for(let s=0;s<e;s++){const e=this.data[this.pos++],s=this.data[this.pos++],r=this.data[this.pos++];t.lexerActions.push(this.lexerActionFactory(e,s,r))}}}generateRuleBypassTransitions(t){let e;const s=t.ruleToStartState.length;for(e=0;e<s;e++)t.ruleToTokenType[e]=t.maxTokenType+e+1;for(e=0;e<s;e++)this.generateRuleBypassTransition(t,e)}generateRuleBypassTransition(t,e){let s,r;const i=new Rt;i.ruleIndex=e,t.addState(i);const a=new rt;a.ruleIndex=e,t.addState(a),i.endState=a,t.defineDecisionState(i),a.startState=i;let n=null,c=null;if(t.ruleToStartState[e].isPrecedenceRule){for(c=null,s=0;s<t.states.length;s++)if(r=t.states[s],this.stateIsEndStateFor(r,e)){c=r,n=r.loopBackState.transitions[0];break}if(null===n)throw new Error("Couldn't identify final state of the precedence rule prefix section.")}else c=t.ruleToStopState[e];for(s=0;s<t.states.length;s++){r=t.states[s];for(const t of r.transitions)t!==n&&t.target===c&&(t.target=a)}const h=t.ruleToStartState[e],o=h.transitions.length;for(;o>0;)i.addTransition(h.transitions[o-1]),h.transitions=h.transitions.slice(-1);t.ruleToStartState[e].addTransition(new dt(i)),c&&a.addTransition(new dt(c));const E=new tt;t.addState(E),E.addTransition(new _t(a,t.ruleToTokenType[e])),i.addTransition(new dt(E))}stateIsEndStateFor(t,e){if(t.ruleIndex!==e)return null;if(!(t instanceof Et))return null;const s=t.transitions[t.transitions.length-1].target;return s instanceof it&&s.epsilonOnlyTransitions&&s.transitions[0].target instanceof nt?t:null}markPrecedenceDecisions(t){for(const e of t.states)if(e instanceof Et&&t.ruleToStartState[e.ruleIndex].isPrecedenceRule){const t=e.transitions[e.transitions.length-1].target;t instanceof it&&t.epsilonOnlyTransitions&&t.transitions[0].target instanceof nt&&(e.precedenceRuleDecision=!0)}}verifyATN(t){if(this.deserializationOptions.verifyATN)for(const e of t.states)if(null!==e)if(this.checkCondition(e.epsilonOnlyTransitions||e.transitions.length<=1),e instanceof lt)this.checkCondition(null!==e.loopBackState);else if(e instanceof Et)if(this.checkCondition(null!==e.loopBackState),this.checkCondition(2===e.transitions.length),e.transitions[0].target instanceof ut)this.checkCondition(e.transitions[1].target instanceof it),this.checkCondition(!e.nonGreedy);else{if(!(e.transitions[0].target instanceof it))throw new Error("IllegalState");this.checkCondition(e.transitions[1].target instanceof ut),this.checkCondition(e.nonGreedy)}else e instanceof ot?(this.checkCondition(1===e.transitions.length),this.checkCondition(e.transitions[0].target instanceof Et)):e instanceof it?this.checkCondition(null!==e.loopBackState):e instanceof at?this.checkCondition(null!==e.stopState):e instanceof st?this.checkCondition(null!==e.endState):e instanceof rt?this.checkCondition(null!==e.startState):e instanceof et?this.checkCondition(e.transitions.length<=1||e.decision>=0):this.checkCondition(e.transitions.length<=1||e instanceof nt)}checkCondition(t,e){if(!t)throw void 0!==e&&null!==e||(e="IllegalState"),e}edgeFactory(t,e,s,r,i,n,c){const h=t.states[s];switch(e){case _.EPSILON:return new dt(h);case _.RANGE:return new At(h,0!==n?a.EOF:r,i);case _.RULE:return new Tt(t.states[r],i,n,h);case _.PREDICATE:return new Nt(h,r,i,0!==n);case _.PRECEDENCE:return new It(h,r);case _.ATOM:return new _t(h,0!==n?a.EOF:r);case _.ACTION:return new St(h,r,i,0!==n);case _.SET:return new T(h,c[r]);case _.NOT_SET:return new A(h,c[r]);case _.WILDCARD:return new Lt(h);default:throw new Error("The specified transition type: "+e+" is not valid.")}}stateFactory(e,s){const r=t.stateTypeMapper.get(e);if(!r)throw new Error("The specified state type "+e+" is not valid.");const i=new r;return i.ruleIndex=s,i}lexerActionFactory(e,s,r){const i=t.lexerActionFactoryMapper.get(e);if(!i)throw new Error("The specified lexer action type "+e+" is not valid.");return i(s,r)}},Gt=class t extends v{static{h(this,"OrderedHashMap")}#d=[];clear(){super.clear(),this.#d=[]}get(t){return super.get(t)}set(t,e){const s=super.set(t,e);return void 0===s&&this.#d.push(t),s}setIfAbsent(t,e){const s=super.setIfAbsent(t,e);return void 0===s&&this.#d.push(t),s}values(){return{[Symbol.iterator]:()=>{let t=0;return{next:()=>t<this.#d.length?{done:!1,value:super.get(this.#d[t++])}:{done:!0,value:void 0}}}}}keys(){return this.#d[Symbol.iterator]()}equals(e){return e instanceof t&&super.equals(e)}},Bt=(class t{static{h(this,"ATNSerializer")}atn;data=[];sets=new Gt(k.instance);nonGreedyStates=[];precedenceStates=[];constructor(t){this.atn=t}static getSerialized(e){return new t(e).serialize()}static serializeSets(t,e){t.push(e.length);for(const s of e){const e=s.contains(a.EOF);e&&s.get(0).stop===a.EOF?t.push(s.length-1):t.push(s.length),t.push(e?1:0);for(const r of s){if(r.start===a.EOF){if(r.stop===a.EOF)continue;t.push(0)}else t.push(r.start);t.push(r.stop)}}}serialize(){this.addPreamble();const t=this.addEdges();this.addNonGreedyStates(),this.addPrecedenceStates(),this.addRuleStatesAndLexerTokenTypes(),this.addModeStartStates();let e=null;return e=this.addSets(),this.addEdges(t,e),this.addDecisionStartStates(),this.addLexerActions(),this.data}addPreamble(){this.data.push(Ft.SERIALIZED_VERSION),this.data.push(this.atn.grammarType),this.data.push(this.atn.maxTokenType)}addLexerActions(){if(this.atn.grammarType===z.LEXER){this.data.push(this.atn.lexerActions.length);for(const t of this.atn.lexerActions)switch(this.data.push(t.actionType),t.actionType){case Ot:{const e=t.channel;this.data.push(e),this.data.push(0);break}case pt:{const e=t.ruleIndex,s=t.actionIndex;this.data.push(e),this.data.push(s);break}case gt:{const e=t.mode;this.data.push(e),this.data.push(0);break}case mt:case xt:this.data.push(0),this.data.push(0);break;case Ut:{const e=t.mode;this.data.push(e),this.data.push(0);break}case ft:this.data.push(0),this.data.push(0);break;case Pt:{const e=t.type;this.data.push(e),this.data.push(0);break}default:throw new Error(`The specified lexer action type ${t.actionType} is not valid.`)}}}addDecisionStartStates(){this.data.push(this.atn.decisionToState.length);for(const t of this.atn.decisionToState)this.data.push(t.stateNumber)}addEdges(...t){switch(t.length){case 0:{let t=0;this.data.push(this.atn.states.length);for(const e of this.atn.states){if(null===e){this.data.push(W.INVALID_TYPE);continue}const s=e.constructor.stateType;e instanceof et&&e.nonGreedy&&this.nonGreedyStates.push(e.stateNumber),e instanceof at&&e.isLeftRecursiveRule&&this.precedenceStates.push(e.stateNumber),this.data.push(s),this.data.push(e.ruleIndex),e.constructor.stateType===W.LOOP_END?this.data.push(e.loopBackState.stateNumber):e instanceof st&&this.data.push(e.endState.stateNumber),e.constructor.stateType!==W.RULE_STOP&&(t+=e.transitions.length);for(const t of e.transitions){const e=t.transitionType;if(e===_.SET||e===_.NOT_SET){const e=t;this.sets.set(e.set,!0)}}}return t}case 2:{const[e,s]=t;this.data.push(e);for(const t of this.atn.states)if(null!==t&&t.constructor.stateType!==W.RULE_STOP)for(const e of t.transitions){if(null===this.atn.states[e.target.stateNumber])throw new Error("Cannot serialize a transition to a removed state.");const r=t.stateNumber;let i=e.target.stateNumber;const n=e.transitionType;let c=0,h=0,o=0;switch(n){case _.RULE:i=e.followState.stateNumber,c=e.target.stateNumber,h=e.ruleIndex,o=e.precedence;break;case _.PRECEDENCE:c=e.precedence;break;case _.PREDICATE:{const t=e;c=t.ruleIndex,h=t.predIndex,o=t.isCtxDependent?1:0;break}case _.RANGE:c=e.start,h=e.stop,c===a.EOF&&(c=0,o=1);break;case _.ATOM:c=e.labelValue,c===a.EOF&&(c=0,o=1);break;case _.ACTION:{const t=e;c=t.ruleIndex,h=t.actionIndex,o=t.isCtxDependent?1:0;break}case _.SET:case _.NOT_SET:c=s.get(e.set)}this.data.push(r),this.data.push(i),this.data.push(n),this.data.push(c),this.data.push(h),this.data.push(o)}break}default:throw new Error("Invalid number of arguments")}}addSets(){t.serializeSets(this.data,[...this.sets.keys()]);const e=new Map;let s=0;for(const t of this.sets.keys())e.set(t,s++);return e}addModeStartStates(){const t=this.atn.modeToStartState.length;if(this.data.push(t),t>0)for(const e of this.atn.modeToStartState)this.data.push(e.stateNumber)}addRuleStatesAndLexerTokenTypes(){const t=this.atn.ruleToStartState.length;this.data.push(t);for(let e=0;e<t;e++){const t=this.atn.ruleToStartState[e];this.data.push(t.stateNumber),this.atn.grammarType===z.LEXER&&this.data.push(this.atn.ruleToTokenType[e])}}addPrecedenceStates(){this.data.push(this.precedenceStates.length);for(const t of this.precedenceStates)this.data.push(t)}addNonGreedyStates(){this.data.push(this.nonGreedyStates.length);for(const t of this.nonGreedyStates)this.data.push(t)}},class t{static{h(this,"DFAState")}stateNumber=-1;configs;edges=[];isAcceptState=!1;prediction=-1;lexerActionExecutor=null;requiresFullContext=!1;predicates=null;constructor(t){t&&(this.configs=t)}static fromState(e){const s=new t;return s.stateNumber=e,s}static fromConfigs(e){return new t(e)}static hashCode(t){return t.configs.hashCode()}static equals(t,e){return t.configs.equals(e.configs)}getAltSet(){const t=new Set;for(const e of this.configs)t.add(e.alt);return 0===t.size?null:t}toString(){let t="";return t+=this.stateNumber,t+=":",t+=this.configs?this.configs.toString():"",this.isAcceptState&&(t+="=>",this.predicates?t+=L(this.predicates):t+=this.prediction),t.toString()}}),Yt=class{static{h(this,"ATNSimulator")}static ERROR=Bt.fromState(2147483647);atn;sharedContextCache;constructor(t,e){return this.atn=t,this.sharedContextCache=e,this}getCachedContext(t){if(!this.sharedContextCache)return t;const e=new v(k.instance);return H(t,this.sharedContextCache,e)}},Vt=(class t{static{h(this,"CodePointTransitions")}static createWithCodePoint(e,s){return t.createWithCodePointRange(e,s,s)}static createWithCodePointRange(t,e,s){return e===s?new _t(t,e):new At(t,e,s)}},class{static{h(this,"DecisionInfo")}decision=0;invocations=0;timeInPrediction=0;sllTotalLook=0;sllMinLook=0;sllMaxLook=0;sllMaxLookEvent;llTotalLook=0;llMinLook=0;llMaxLook=0;llMaxLookEvent;contextSensitivities;errors;ambiguities;predicateEvals;sllATNTransitions=0;sllDFATransitions=0;llFallback=0;llATNTransitions=0;llDFATransitions=0;constructor(t){this.decision=t,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[]}toString1(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", sllLookahead="+this.sllTotalLook+", sllATNTransitions="+this.sllATNTransitions+", sllDFATransitions="+this.sllDFATransitions+", llFallback="+this.llFallback+", llLookahead="+this.llTotalLook+", llATNTransitions="+this.llATNTransitions+"}"}}),Wt=class t extends j{static{h(this,"LexerATNConfig")}lexerActionExecutor;passedThroughNonGreedyDecision;constructor(e,s,r,i){return super(e,s,r??e.context,r?X.NONE:e.semanticContext),this.lexerActionExecutor=r?i:e.lexerActionExecutor??null,this.passedThroughNonGreedyDecision=t.checkNonGreedyDecision(e,this.state),this}static createWithExecutor(e,s,r){return new t(e,s,e.context,r)}static createWithConfig(e,s,r){return new t(s,e,r??null,s.lexerActionExecutor)}static createWithContext(e,s,r){return new t({alt:s},e,r,null)}static checkNonGreedyDecision(t,e){return t.passedThroughNonGreedyDecision||"nonGreedy"in e&&e.nonGreedy}hashCode(){if(void 0===this.cachedHashCode){let t=u.initialize(7);t=u.update(t,this.state.stateNumber),t=u.update(t,this.alt),t=u.updateFromComparable(t,this.context),t=u.updateFromComparable(t,this.semanticContext),t=u.update(t,this.passedThroughNonGreedyDecision?1:0),t=u.updateFromComparable(t,this.lexerActionExecutor),t=u.finish(t,6),this.cachedHashCode=t}return this.cachedHashCode}equals(t){return this===t||this.passedThroughNonGreedyDecision===t.passedThroughNonGreedyDecision&&(this.lexerActionExecutor&&t.lexerActionExecutor?this.lexerActionExecutor.equals(t.lexerActionExecutor):!t.lexerActionExecutor)&&super.equals(t)}},Xt=class{static{h(this,"BaseErrorListener")}syntaxError(t,e,s,r,i,a){}reportAmbiguity(t,e,s,r,i,a,n){}reportAttemptingFullContext(t,e,s,r,i,a){}reportContextSensitivity(t,e,s,r,i,a){}},Kt=class t extends Xt{static{h(this,"ConsoleErrorListener")}static instance=new t;syntaxError(t,e,s,r,i,a){console.error("line "+s+":"+r+" "+i)}},Qt=class extends Xt{constructor(t){return super(),this.delegates=t,this}static{h(this,"ProxyErrorListener")}syntaxError(t,e,s,r,i,a){this.delegates.forEach((n=>{n.syntaxError(t,e,s,r,i,a)}))}reportAmbiguity(t,e,s,r,i,a,n){this.delegates.forEach((c=>{c.reportAmbiguity(t,e,s,r,i,a,n)}))}reportAttemptingFullContext(t,e,s,r,i,a){this.delegates.forEach((n=>{n.reportAttemptingFullContext(t,e,s,r,i,a)}))}reportContextSensitivity(t,e,s,r,i,a){this.delegates.forEach((n=>{n.reportContextSensitivity(t,e,s,r,i,a)}))}},qt=class t{static{h(this,"Recognizer")}static EOF=-1;static tokenTypeMapCache=new Map;static ruleIndexMapCache=new Map;interpreter;#L=[Kt.instance];#C=-1;checkVersion(t){const e="4.13.1";e!==t&&console.error("ANTLR runtime and generated code versions disagree: "+e+"!="+t)}addErrorListener(t){this.#L.push(t)}removeErrorListeners(){this.#L=[]}removeErrorListener(t){for(let e=0;e<this.#L.length;e++)if(this.#L[e]===t)return void this.#L.splice(e,1)}getErrorListeners(){return this.#L}getTokenTypeMap(){const e=this.vocabulary;let s=t.tokenTypeMapCache.get(e);if(!s){s=new Map;for(let t=0;t<=this.atn.maxTokenType;t++){const r=e.getLiteralName(t);r&&s.set(r,t);const i=e.getSymbolicName(t);i&&s.set(i,t)}s.set("EOF",a.EOF),t.tokenTypeMapCache.set(e,s)}return s}getRuleIndexMap(){const e=this.ruleNames;let s=t.ruleIndexMapCache.get(e);return s||(s=new Map,e.forEach(((t,e)=>s.set(t,e))),t.ruleIndexMapCache.set(e,s)),s}getTokenType(t){const e=this.getTokenTypeMap().get(t);return e||a.INVALID_TYPE}getErrorHeader(t){const e=t.offendingToken?.line,s=t.offendingToken?.column;return"line "+e+":"+s}get errorListenerDispatch(){return new Qt(this.#L)}sempred(t,e,s){return!0}precpred(t,e){return!0}action(t,e,s){}get atn(){return this.interpreter.atn}get state(){return this.#C}set state(t){this.#C=t}getSerializedATN(){throw new Error("there is no serialized ATN")}getParseInfo(){return null}},jt=class t{static{h(this,"CommonTokenFactory")}static DEFAULT=new t;copyText=!1;constructor(t){this.copyText=t??!1}create(t,e,s,r,i,a,n,c){const h=U.fromSource(t,e,r,i,a);return h.line=n,h.column=c,s?h.text=s:this.copyText&&null!==t[1]&&(h.text=t[1].getTextFromRange(i,a)),h}},Jt=class t extends Error{static{h(this,"RecognitionException")}ctx;offendingToken=null;offendingState=-1;recognizer;input;constructor(e){super(e.message),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=e.message,this.recognizer=e.recognizer,this.input=e.input,this.ctx=e.ctx,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer&&null!==this.ctx?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}},zt=class extends Jt{static{h(this,"LexerNoViableAltException")}startIndex;deadEndConfigs;constructor(t,e,s,r){super({message:"",recognizer:t,input:e,ctx:null}),this.startIndex=s,this.deadEndConfigs=r}toString(){let t="";return this.input&&this.startIndex>=0&&this.startIndex<this.input.size&&(t=this.input.getTextFromRange(this.startIndex,this.startIndex)),"LexerNoViableAltException"+t}},Zt=class t extends qt{static{h(this,"Lexer")}static DEFAULT_MODE=0;static MORE=-2;static SKIP=-3;static DEFAULT_TOKEN_CHANNEL=a.DEFAULT_CHANNEL;static HIDDEN=a.HIDDEN_CHANNEL;options={minDFAEdge:0,maxDFAEdge:256,minCodePoint:0,maxCodePoint:1114111};tokenStartCharIndex=-1;channel=0;type=0;mode=t.DEFAULT_MODE;currentTokenColumn=0;currentTokenStartLine=0;#N;#I=null;#O=!1;#p=[];#i;#g;constructor(t,e){super(),this.options={...this.options,...e},this.#N=t,this.#g=jt.DEFAULT}reset(e=!0){e&&this.#N.seek(0),this.#I=null,this.type=a.INVALID_TYPE,this.channel=a.DEFAULT_CHANNEL,this.tokenStartCharIndex=-1,this.currentTokenColumn=-1,this.currentTokenStartLine=-1,this.#i=void 0,this.#O=!1,this.mode=t.DEFAULT_MODE,this.#p=[],this.interpreter.reset()}nextToken(){if(null===this.#N)throw new Error("nextToken requires a non-null input stream.");const e=this.#N.mark();try{for(;;){if(this.#O)return this.emitEOF(),this.#I;this.#I=null,this.channel=a.DEFAULT_CHANNEL,this.tokenStartCharIndex=this.#N.index,this.currentTokenColumn=this.interpreter.column,this.currentTokenStartLine=this.interpreter.line,this.#i=void 0;let e=!1;for(;;){this.type=a.INVALID_TYPE;let r=t.SKIP;try{r=this.interpreter.match(this.#N,this.mode)}catch(s){if(!(s instanceof zt))throw s;this.notifyListeners(s),this.recover(s)}if(this.#N.LA(1)===a.EOF&&(this.#O=!0),this.type===a.INVALID_TYPE&&(this.type=r),this.type===t.SKIP){e=!0;break}if(this.type!==t.MORE)break}if(!e)return null===this.#I&&this.emit(),this.#I}}finally{this.#N.release(e)}}skip(){this.type=t.SKIP}more(){this.type=t.MORE}pushMode(t){ne.debug&&console.log("pushMode "+t),this.#p.push(this.mode),this.mode=t}popMode(){if(0===this.#p.length)throw new Error("Empty Stack");return ne.debug&&console.log("popMode back to "+this.#p.slice(0,-1)),this.mode=this.#p.pop(),this.mode}get modeStack(){return this.#p}emitToken(t){this.#I=t}emit(){const t=this.#g.create([this,this.#N],this.type,this.#i,this.channel,this.tokenStartCharIndex,this.getCharIndex()-1,this.currentTokenStartLine,this.currentTokenColumn);return this.emitToken(t),t}emitEOF(){const t=this.#g.create([this,this.#N],a.EOF,void 0,a.DEFAULT_CHANNEL,this.#N.index,this.#N.index-1,this.line,this.column);return this.emitToken(t),t}getCharIndex(){return this.#N.index}getAllTokens(){const t=[];let e=this.nextToken();for(;e.type!==a.EOF;)t.push(e),e=this.nextToken();return t}notifyListeners(t){const e=this.tokenStartCharIndex,s=this.#N.index,r=this.#N.getTextFromRange(e,s),i="token recognition error at: '"+this.getErrorDisplay(r)+"'";this.errorListenerDispatch.syntaxError(this,null,this.currentTokenStartLine,this.currentTokenColumn,i,t)}getErrorDisplay(t){return t}getErrorDisplayForChar(t){return t.charCodeAt(0)===a.EOF?"<EOF>":"\n"===t?"\\n":"\t"===t?"\\t":"\r"===t?"\\r":t}getCharErrorDisplay(t){return"'"+this.getErrorDisplayForChar(t)+"'"}recover(t){this.#N.LA(1)!==a.EOF&&(t instanceof zt?this.interpreter.consume(this.#N):this.#N.consume())}get inputStream(){return this.#N}set inputStream(t){this.reset(!1),this.#N=t}set tokenFactory(t){this.#g=t}get tokenFactory(){return this.#g}get sourceName(){return this.#N.getSourceName()}get line(){return this.interpreter.line}set line(t){this.interpreter.line=t}get column(){return this.interpreter.column}set column(t){this.interpreter.column=t}get text(){return this.#i?this.#i:this.interpreter.getText(this.#N)}set text(t){this.#i=t}},$t=class t extends D{static{h(this,"OrderedHashSet")}#m=[];getOrAdd(t){const e=this.size,s=super.getOrAdd(t);return this.size>e&&this.#m.push(t),s}equals(e){return e instanceof t&&super.equals(e)}add(t){return!!super.add(t)&&(this.#m.push(t),!0)}clear(){super.clear(),this.#m=[]}*[Symbol.iterator](){yield*this.#m}toArray(){return this.#m.slice(0)}},te=class extends ${static{h(this,"OrderedATNConfigSet")}constructor(){super(),this.configLookup=new $t}},ee=class t{static{h(this,"LexerIndexedCustomAction")}offset;action;actionType;isPositionDependent=!0;#e;constructor(t,e){this.actionType=e.actionType,this.offset=t,this.action=e}execute(t){this.action.execute(t)}hashCode(){if(void 0===this.#e){let t=u.initialize();t=u.update(t,this.offset),t=u.updateFromComparable(t,this.action),this.#e=u.finish(t,2)}return this.#e}equals(e){return this===e||e instanceof t&&(this.offset===e.offset&&this.action===e.action)}},se=class t{static{h(this,"LexerActionExecutor")}lexerActions;actionType;isPositionDependent=!1;#e;constructor(t){return this.actionType=-1,this.lexerActions=t??[],this}static append(e,s){if(null===e)return new t([s]);const r=e.lexerActions.concat([s]);return new t(r)}fixOffsetBeforeMatch(e){let s=null;for(let t=0;t<this.lexerActions.length;t++)!this.lexerActions[t].isPositionDependent||this.lexerActions[t]instanceof ee||(null===s&&(s=this.lexerActions.concat([])),s[t]=new ee(e,this.lexerActions[t]));return null===s?this:new t(s)}execute(t,e,s){if(void 0===e||void 0===s)return;let r=!1;const i=e.index;try{for(const a of this.lexerActions){let n=a;if(a instanceof ee){const t=a.offset;e.seek(s+t),n=a.action,r=s+t!==i}else a.isPositionDependent&&(e.seek(i),r=!1);n.execute(t)}}finally{r&&e.seek(i)}}hashCode(){if(void 0===this.#e){let t=u.initialize(7);for(const e of this.lexerActions)t=u.update(t,e.hashCode());this.#e=u.finish(t,this.lexerActions.length)}return this.#e}equals(t){return this===t||this.#e===t.#e&&(this.lexerActions.length===t.lexerActions.length&&this.lexerActions.every(((e,s)=>e.equals(t.lexerActions[s]))))}},re=class{static{h(this,"DFASerializer")}dfa;vocabulary;constructor(t,e){this.dfa=t,this.vocabulary=e}toString(){if(!this.dfa.s0)return"";let t="";const e=this.dfa.getStates();for(const s of e){let e=0;e=s.edges.length;for(let r=0;r<e;r++){const e=s.edges[r];if(e&&2147483647!==e.stateNumber){t+=this.getStateString(s);t+="-",t+=this.getEdgeLabel(r),t+="->",t+=this.getStateString(e),t+="\n"}}}return t}getEdgeLabel(t){return`${this.vocabulary.getDisplayName(t-1)}`}getStateString(t){const e=t.stateNumber,s=(t.isAcceptState?":":"")+"s"+e+(t.requiresFullContext?"^":"");return t.isAcceptState?null!==t.predicates?`${s}=>${t.predicates.toString()}`:`${s}=>${t.prediction}`:`${s}`}},ie=class extends re{static{h(this,"LexerDFASerializer")}constructor(t){super(t,l.EMPTY_VOCABULARY)}getEdgeLabel=t=>"'"+String.fromCharCode(t)+"'"},ae=class{static{h(this,"DFA")}s0;decision;atnStartState;isPrecedenceDfa;#x=new Map;constructor(t,e){this.atnStartState=t,this.decision=e??0;let s=!1;t instanceof Et&&t.precedenceRuleDecision&&(s=!0,this.s0=Bt.fromState(-1)),this.isPrecedenceDfa=s}[Symbol.iterator]=()=>this.#x.values()[Symbol.iterator]();getPrecedenceStartState=t=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");if(!(!this.s0||!this.s0.edges||t<0||t>=this.s0.edges.length))return this.s0.edges[t]};setPrecedenceStartState=(t,e)=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");t<0||!this.s0||(this.s0.edges[t]=e)};getStates(){const t=[...this.#x.values()];return t.sort(((t,e)=>t.stateNumber-e.stateNumber)),t}getState(t){return this.#x.get(t.configs.hashCode())??null}getStateForConfigs(t){return this.#x.get(t.hashCode())??null}addState(t){const e=t.configs.hashCode();this.#x.has(e)||(this.#x.set(e,t),t.stateNumber=this.#x.size-1)}toString(t){if(!t)return this.toString(l.EMPTY_VOCABULARY);if(!this.s0)return"";return new re(this,t).toString()??""}toLexerString(){if(!this.s0)return"";return new ie(this).toString()??""}get length(){return this.#x.size}},ne=class t extends Yt{static{h(this,"LexerATNSimulator")}static debug=!1;decisionToDFA;recognizer=null;startIndex=-1;line=1;column=0;mode=Zt.DEFAULT_MODE;#U;#f;#P;constructor(t,e,s,r){super(e,r),this.decisionToDFA=s,this.recognizer=t,t&&(this.#f=t.options)}match(t,e){this.mode=e;const s=t.mark();try{this.startIndex=t.index,this.#U=void 0;const s=this.decisionToDFA[e];return s.s0?this.execATN(t,s.s0):this.matchATN(t)}finally{t.release(s)}}reset(){this.#U=void 0,this.startIndex=-1,this.line=1,this.column=0,this.mode=Zt.DEFAULT_MODE}clearDFA(){for(let t=0;t<this.decisionToDFA.length;t++)this.decisionToDFA[t]=new ae(this.atn.getDecisionState(t),t)}getDFA(t){return this.decisionToDFA[t]}getText(t){return t.getTextFromRange(this.startIndex,t.index-1)}consume(t){t.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,t.consume()}getTokenName(t){return t===a.EOF?"EOF":"'"+String.fromCharCode(t)+"'"}matchATN(e){const s=this.atn.modeToStartState[this.mode];t.debug&&console.log("matchATN mode "+this.mode+" start: "+s);const r=this.mode,i=this.computeStartState(e,s),a=i.hasSemanticContext;i.hasSemanticContext=!1;const n=this.addDFAState(i);a||(this.decisionToDFA[this.mode].s0=n);const c=this.execATN(e,n);return t.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[r].toLexerString()),c}execATN(e,s){t.debug&&console.log("start state closure="+s.configs),s.isAcceptState&&this.captureSimState(e,s);let r=e.LA(1);for(;;){t.debug&&console.log("execATN loop starting closure: "+s.configs);let i=this.getExistingTargetState(s,r);if(i||(i=this.computeTargetState(e,s,r)),i===Yt.ERROR)break;if(r!==a.EOF&&this.consume(e),i.isAcceptState&&(this.captureSimState(e,i),r===a.EOF))break;r=e.LA(1),s=i}return this.failOrAccept(e,s.configs,r)}getExistingTargetState(e,s){if(s>=this.#f.minDFAEdge&&s<=this.#f.maxDFAEdge){const r=e.edges[s-this.#f.minDFAEdge];return t.debug&&r&&console.log("reuse state "+e.stateNumber+" edge to "+r.stateNumber),r}}computeTargetState(t,e,s){const r=new te;return this.getReachableConfigSet(t,e.configs,r,s),0===r.length?(r.hasSemanticContext||this.addDFAEdge(e,s,Yt.ERROR),Yt.ERROR):this.addDFAEdge(e,s,null,r)}failOrAccept(t,e,s){if(this.#U?.dfaState){const{dfaState:e,index:s,line:r,column:i}=this.#U;return this.accept(t,e.lexerActionExecutor,this.startIndex,s,r,i),e.prediction}if(s===a.EOF&&t.index===this.startIndex)return a.EOF;throw new zt(this.recognizer,t,this.startIndex,e)}getReachableConfigSet(e,s,r,i){let n=z.INVALID_ALT_NUMBER;for(const c of s){const s=c.alt===n;if(!s||!c.passedThroughNonGreedyDecision){t.debug&&console.log("testing %s at %s\n",this.getTokenName(i),c.toString(this.recognizer,!0));for(const t of c.state.transitions){const h=this.getReachableTarget(t,i);if(h){let t=c.lexerActionExecutor;t&&(t=t.fixOffsetBeforeMatch(e.index-this.startIndex));const o=i===a.EOF,E=Wt.createWithExecutor(c,h,t);this.closure(e,E,r,s,!0,o)&&(n=c.alt)}}}}}accept(e,s,r,i,a,n){t.debug&&console.log("ACTION %s\n",s),e.seek(i),this.line=a,this.column=n,s&&this.recognizer&&s.execute(this.recognizer,e,r)}getReachableTarget(t,e){return t.matches(e,this.#f.minCodePoint,this.#f.maxCodePoint)?t.target:void 0}computeStartState(t,e){const s=S.EMPTY,r=new te;for(let i=0;i<e.transitions.length;i++){const a=e.transitions[i].target,n=Wt.createWithContext(a,i+1,s);this.closure(t,n,r,!1,!1,!1)}return r}closure(e,s,r,i,a,n){let c=null;if(t.debug&&console.log("closure("+s.toString(this.recognizer,!0)+")"),s.state.constructor.stateType===W.RULE_STOP){if(t.debug&&(null!==this.recognizer?console.log("closure at %s rule stop %s\n",this.recognizer.ruleNames[s.state.ruleIndex],s):console.log("closure at rule stop %s\n",s)),!s.context||s.context.hasEmptyPath()){if(!s.context||s.context.isEmpty())return r.add(s),!0;r.add(Wt.createWithConfig(s.state,s,S.EMPTY)),i=!0}if(s.context&&!s.context.isEmpty())for(let t=0;t<s.context.length;t++)if(s.context.getReturnState(t)!==S.EMPTY_RETURN_STATE){const h=s.context.getParent(t),o=this.atn.states[s.context.getReturnState(t)];c=Wt.createWithConfig(o,s,h),i=this.closure(e,c,r,i,a,n)}return i}s.state.epsilonOnlyTransitions||i&&s.passedThroughNonGreedyDecision||r.add(s);for(const t of s.state.transitions)c=this.getEpsilonTarget(e,s,t,r,a,n),c&&(i=this.closure(e,c,r,i,a,n));return i}getEpsilonTarget(t,e,s,r,i,a){this.#P||this.setupATNFactoryLookup();const n=this.#P[s.transitionType];return n?n(t,e,s,r,i,a):null}setupATNFactoryLookup(){this.#P=[],this.#P[_.RULE]=(t,e,s)=>{const r=p.create(e.context??void 0,s.followState.stateNumber);return Wt.createWithConfig(s.target,e,r)},this.#P[_.PRECEDENCE]=()=>{throw new Error("Precedence predicates are not supported in lexers.")},this.#P[_.PREDICATE]=(e,s,r,i,a)=>{const n=r;return t.debug&&console.log("EVAL rule "+n.ruleIndex+":"+n.predIndex),i.hasSemanticContext=!0,this.evaluatePredicate(e,n.ruleIndex,n.predIndex,a)?Wt.createWithConfig(r.target,s):null},this.#P[_.ACTION]=(t,e,s)=>{if(null===e.context||e.context.hasEmptyPath()){const t=se.append(e.lexerActionExecutor,this.atn.lexerActions[s.actionIndex]);return Wt.createWithExecutor(e,s.target,t)}return Wt.createWithConfig(s.target,e)},this.#P[_.EPSILON]=(t,e,s)=>Wt.createWithConfig(s.target,e);const e=h(((t,e,s,r,i,n)=>n&&s.matches(a.EOF,this.#f.minCodePoint,this.#f.maxCodePoint)?Wt.createWithConfig(s.target,e):null),"simple");this.#P[_.ATOM]=e,this.#P[_.RANGE]=e,this.#P[_.SET]=e}evaluatePredicate(t,e,s,r){if(!this.recognizer)return!0;if(!r)return this.recognizer.sempred(null,e,s);const i=this.column,a=this.line,n=t.index,c=t.mark();try{return this.consume(t),this.recognizer.sempred(null,e,s)}finally{this.column=i,this.line=a,t.seek(n),t.release(c)}}captureSimState(t,e){this.#U={index:t.index,line:this.line,column:this.column,dfaState:e}}addDFAEdge(e,s,r,i){if(!r&&i){const t=i.hasSemanticContext;if(i.hasSemanticContext=!1,r=this.addDFAState(i),t)return r}return s<this.#f.minDFAEdge||s>this.#f.maxDFAEdge||(t.debug&&console.log("EDGE "+e+" -> "+r+" upon "+s),e.edges[s-this.#f.minDFAEdge]=r),r}addDFAState(t){const e=this.decisionToDFA[this.mode],s=e.getStateForConfigs(t);if(s)return s;const r=Bt.fromConfigs(t),i=t.firstStopState;return i&&(r.isAcceptState=!0,r.lexerActionExecutor=i.lexerActionExecutor,r.prediction=this.atn.ruleToTokenType[i.state.ruleIndex]),t.setReadonly(!0),e.addState(r),r}},ce=(class{static{h(this,"ParseInfo")}atnSimulator;constructor(t){this.atnSimulator=t}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){const t=this.atnSimulator.getDecisionInfo(),e=new Array;for(let s=0;s<t.length;s++){t[s].llFallback>0&&e.push(s)}return e}getTotalTimeInPrediction(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.timeInPrediction;return e}getTotalSLLLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.sllTotalLook;return e}getTotalLLLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.llTotalLook;return e}getTotalSLLATNLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.sllATNTransitions;return e}getTotalLLATNLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.llATNTransitions;return e}getTotalATNLookaheadOps(){const t=this.atnSimulator.getDecisionInfo();let e=0;for(const s of t)e+=s.sllATNTransitions,e+=s.llATNTransitions;return e}getDFASize(t){if(void 0===t){let t=0;const e=this.atnSimulator.decisionToDFA;for(let s=0;s<e.length;s++)t+=this.getDFASize(s);return t}return this.atnSimulator.decisionToDFA[t].length}},class extends Jt{static{h(this,"NoViableAltException")}deadEndConfigs=null;startToken;constructor(t,e=null,s=null,r=null,i=null,a=null){a=a??t.context,r=r??t.getCurrentToken(),s=s??t.getCurrentToken(),super({message:"",recognizer:t,input:e=e??t.inputStream,ctx:a}),this.deadEndConfigs=i,this.startToken=s,this.offendingToken=r}}),he=class{static{h(this,"DoubleDict")}cacheMap;constructor(){this.cacheMap=new v(M.instance)}get(t,e){const s=this.cacheMap.get(t)??null;return null===s?null:s.get(e)??null}set(t,e,s){let r=this.cacheMap.get(t);r||(r=new v(M.instance),this.cacheMap.set(t,r)),r.set(e,s)}},oe=class t{static{h(this,"SubsetEqualityComparer")}static instance=new t;hashCode(t){let e=u.initialize(7);return e=u.update(e,t.state.stateNumber),e=u.updateFromComparable(e,t.context),e=u.finish(e,2),e}equals(t,e){return t.state.stateNumber===e.state.stateNumber&&(t.context?.equals(e.context)??!0)}},Ee=class t{static{h(this,"PredictionMode")}static SLL=0;static LL=1;static LL_EXACT_AMBIG_DETECTION=2;static hasSLLConflictTerminatingPrediction(e,s){if(t.allConfigsInRuleStopStates(s))return!0;if(e===t.SLL&&s.hasSemanticContext){const t=new $;for(let e of s)e=j.duplicate(e,X.NONE),t.add(e);s=t}const r=t.getConflictingAltSubsets(s);return t.hasConflictingAltSet(r)&&!t.hasStateAssociatedWithOneAlt(s)}static hasConfigInRuleStopState(t){for(const e of t)if(e.state instanceof nt)return!0;return!1}static allConfigsInRuleStopStates(t){for(const e of t)if(!(e.state instanceof nt))return!1;return!0}static resolvesToJustOneViableAlt(e){return t.getSingleViableAlt(e)}static allSubsetsConflict(e){return!t.hasNonConflictingAltSet(e)}static hasNonConflictingAltSet(t){for(const e of t)if(1===e.length)return!0;return!1}static hasConflictingAltSet(t){for(const e of t)if(e.length>1)return!0;return!1}static allSubsetsEqual(t){let e=null;for(const s of t)if(null===e)e=s;else if(s!==e)return!1;return!0}static getUniqueAlt(e){const s=t.getAlts(e);return 1===s.length?s.nextSetBit(0):z.INVALID_ALT_NUMBER}static getAlts(t){const e=new V;return t.forEach((t=>{e.or(t)})),e}static getConflictingAltSubsets(t){const e=new v(oe.instance);for(const s of t){let t=e.get(s);t||(t=new V,e.set(s,t)),t.set(s.alt)}return Array.from(e.values())}static getStateToAltMap(t){const e=new v(k.instance);for(const s of t){let t=e.get(s.state);t||(t=new V,e.set(s.state,t)),t.set(s.alt)}return e}static hasStateAssociatedWithOneAlt(t){const e={};for(const s of t){const t=s.state.stateNumber;e[t]||(e[t]=0),e[t]++}return Object.values(e).some((t=>1===t))}static getSingleViableAlt(t){let e=null;for(const s of t){const t=s.nextSetBit(0);if(null===e)e=t;else if(e!==t)return z.INVALID_ALT_NUMBER}return e??0}},le=class t extends Yt{static{h(this,"ParserATNSimulator")}static traceATNSimulator=!1;static debug;static debugAdd=!1;static debugClosure=!1;static dfaDebug=!1;static retryDebug=!1;predictionMode;decisionToDFA;parser;mergeCache=new he;predictionState;constructor(t,e,s,r){super(e,r),this.parser=t,this.decisionToDFA=s}static getUniqueAlt(t){let e=z.INVALID_ALT_NUMBER;for(const s of t)if(e===z.INVALID_ALT_NUMBER)e=s.alt;else if(s.alt!==e)return z.INVALID_ALT_NUMBER;return e}reset(){}clearDFA(){for(let t=0;t<this.decisionToDFA.length;t++)this.decisionToDFA[t]=new ae(this.atn.getDecisionState(t),t)}adaptivePredict(e,s,r){(t.debug||t.traceATNSimulator)&&console.log("adaptivePredict decision "+s+" exec LA(1)=="+this.getLookaheadName(e)+" line "+e.LT(1).line+":"+e.LT(1).column);const i=this.decisionToDFA[s];this.predictionState={input:e,startIndex:e.index,outerContext:r??void 0,dfa:i};const a=e.mark(),n=e.index;try{let s;if(s=i.isPrecedenceDfa?i.getPrecedenceStartState(this.parser.getPrecedence()):i.s0,!s){r||(r=P.empty),t.debug&&console.log("predictATN decision "+i.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+r.toString(this.parser.ruleNames));const a=!1;let n=this.computeStartState(i.atnStartState,P.empty,a);i.isPrecedenceDfa?(n=this.applyPrecedenceFilter(n),s=this.addDFAState(i,Bt.fromConfigs(n)),i.setPrecedenceStartState(this.parser.getPrecedence(),s)):(s=this.addDFAState(i,Bt.fromConfigs(n)),i.s0=s)}const a=this.execATN(i,s,e,n,r);return t.debug&&console.log("DFA after predictATN: "+i.toString(this.parser.vocabulary)),a}finally{this.predictionState.dfa=void 0,this.mergeCache=new he,e.seek(n),e.release(a)}}execATN(e,s,r,i,n){let c;(t.debug||t.traceATNSimulator)&&console.log("execATN decision "+e.decision+", DFA state "+s+", LA(1)=="+this.getLookaheadName(r)+" line "+r.LT(1).line+":"+r.LT(1).column);let h=s,o=r.LA(1);for(;;){let s=this.getExistingTargetState(h,o);if(s||(s=this.computeTargetState(e,h,o)),s===Yt.ERROR){const t=this.noViableAlt(r,n,h.configs,i);if(r.seek(i),c=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(h.configs,n),c!==z.INVALID_ALT_NUMBER)return c;throw t}if(s.requiresFullContext&&this.predictionMode!==Ee.SLL){let a=null;if(null!==s.predicates){t.debug&&console.log("DFA state has preds in DFA sim LL failover");const e=r.index;if(e!==i&&r.seek(i),a=this.evalSemanticContext(s.predicates,n,!0),1===a.length)return t.debug&&console.log("Full LL avoided"),a.nextSetBit(0);e!==i&&r.seek(e)}t.dfaDebug&&console.log("ctx sensitive state "+n+" in "+s);const h=!0,o=this.computeStartState(e.atnStartState,n,h);return this.reportAttemptingFullContext(e,a,s.configs,i,r.index),c=this.execATNWithFullContext(e,s,o,r,i,n),c}if(s.isAcceptState){if(null===s.predicates)return s.prediction;const t=r.index;r.seek(i);const a=this.evalSemanticContext(s.predicates,n,!0);if(0===a.length)throw this.noViableAlt(r,n,s.configs,i);return 1===a.length||this.reportAmbiguity(e,s,i,t,!1,a,s.configs),a.nextSetBit(0)}h=s,o!==a.EOF&&(r.consume(),o=r.LA(1))}}getExistingTargetState(t,e){return t.edges[e+1]}computeTargetState(e,s,r){const i=this.computeReachSet(s.configs,r,!1);if(null===i)return this.addDFAEdge(e,s,r,Yt.ERROR),Yt.ERROR;let a=Bt.fromConfigs(i);const n=t.getUniqueAlt(i);if(t.debug){const t=Ee.getConflictingAltSubsets(i);console.log("SLL altSubSets="+L(t)+", configs="+i+", predict="+n+", allSubsetsConflict="+Ee.allSubsetsConflict(t)+", conflictingAlts="+this.getConflictingAlts(i))}return n!==z.INVALID_ALT_NUMBER?(a.isAcceptState=!0,a.configs.uniqueAlt=n,a.prediction=n):Ee.hasSLLConflictTerminatingPrediction(this.predictionMode,i)&&(a.configs.conflictingAlts=this.getConflictingAlts(i),a.requiresFullContext=!0,a.isAcceptState=!0,a.prediction=a.configs.conflictingAlts.nextSetBit(0)),a.isAcceptState&&a.configs.hasSemanticContext&&(this.predicateDFAState(a,this.atn.getDecisionState(e.decision)),null!==a.predicates&&(a.prediction=z.INVALID_ALT_NUMBER)),a=this.addDFAEdge(e,s,r,a),a}getRuleName(t){return null!==this.parser&&t>=0?this.parser.ruleNames[t]:"<rule "+t+">"}getTokenName(t){if(t===a.EOF)return"EOF";const e=(this.parser?.vocabulary??l.EMPTY_VOCABULARY).getDisplayName(t);return e===t.toString()?e:e+"<"+t+">"}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");const e=t.deadEndConfigs;for(const s of e){let t="no edges";if(s.state.transitions.length>0){const e=s.state.transitions[0];if(e instanceof _t)t="Atom "+this.getTokenName(e.labelValue);else if(e instanceof T){t=(e instanceof A?"~":"")+"Set "+e.label}}console.error(s.toString(this.parser,!0)+":"+t)}}predicateDFAState(t,e){const s=e.transitions.length,r=this.getConflictingAltsOrUniqueAlt(t.configs),i=this.getPredsForAmbigAlts(r,t.configs,s);null!==i?(t.predicates=this.getPredicatePredictions(r,i),t.prediction=z.INVALID_ALT_NUMBER):t.prediction=r.nextSetBit(0)}execATNWithFullContext(e,s,r,i,n,c){(t.debug||t.traceATNSimulator)&&console.log("execATNWithFullContext "+r);let h,o=!1,E=r;i.seek(n);let l=i.LA(1),u=-1;for(;;){if(h=this.computeReachSet(E,l,true),null===h){const t=this.noViableAlt(i,c,E,n);i.seek(n);const e=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(E,c);if(e!==z.INVALID_ALT_NUMBER)return e;throw t}const e=Ee.getConflictingAltSubsets(h);if(t.debug&&console.log("LL altSubSets="+e+", predict="+Ee.getUniqueAlt(e)+", resolvesToJustOneViableAlt="+Ee.resolvesToJustOneViableAlt(e)),h.uniqueAlt=t.getUniqueAlt(h),h.uniqueAlt!==z.INVALID_ALT_NUMBER){u=h.uniqueAlt;break}if(this.predictionMode!==Ee.LL_EXACT_AMBIG_DETECTION){if(u=Ee.resolvesToJustOneViableAlt(e),u!==z.INVALID_ALT_NUMBER)break}else if(Ee.allSubsetsConflict(e)&&Ee.allSubsetsEqual(e)){o=!0,u=Ee.getSingleViableAlt(e);break}E=h,l!==a.EOF&&(i.consume(),l=i.LA(1))}return h.uniqueAlt!==z.INVALID_ALT_NUMBER?(this.reportContextSensitivity(e,u,h,n,i.index),u):(this.reportAmbiguity(e,s,n,i.index,o,void 0,h),u)}computeReachSet(e,s,r){t.debug&&console.log("in computeReachSet, starting closure: "+e);const i=new $(r);let n=null;for(const h of e)if(t.debug&&console.log("testing "+this.getTokenName(s)+" at "+h),h.state instanceof nt)(r||s===a.EOF)&&(null===n&&(n=[]),n.push(h));else for(const e of h.state.transitions){const r=this.getReachableTarget(e,s);if(null!==r){const e=j.createWithConfig(r,h);i.add(e,this.mergeCache),t.debugAdd&&console.log("added "+e+" to intermediate")}}let c=null;if(null===n&&s!==a.EOF&&(1===i.length||t.getUniqueAlt(i)!==z.INVALID_ALT_NUMBER)&&(c=i),null===c){c=new $(r);const t=new D,e=s===a.EOF;for(const s of i)this.closure(s,c,t,!1,r,e)}if(s===a.EOF&&(c=this.removeAllConfigsNotInRuleStopState(c,c===i)),null!==n&&(!r||!Ee.hasConfigInRuleStopState(c)))for(const t of n)c.add(t,this.mergeCache);return t.traceATNSimulator&&console.log("computeReachSet "+e+" -> "+c),0===c.length?null:c}removeAllConfigsNotInRuleStopState(t,e){if(Ee.allConfigsInRuleStopStates(t))return t;const s=new $(t.fullCtx);for(const r of t)if(r.state instanceof nt)s.add(r,this.mergeCache);else if(e&&r.state.epsilonOnlyTransitions){if(this.atn.nextTokens(r.state).contains(a.EPSILON)){const t=this.atn.ruleToStopState[r.state.ruleIndex];s.add(j.createWithConfig(t,r),this.mergeCache)}}return s}computeStartState(e,s,r){const i=b(this.atn,s),a=new $(r);t.traceATNSimulator&&console.log("computeStartState from ATN state "+e+" initialContext="+i.toString(this.parser));for(let t=0;t<e.transitions.length;t++){const s=e.transitions[t].target,n=j.createWithContext(s,t+1,i),c=new D;this.closure(n,a,c,!0,r,!1)}return a}applyPrecedenceFilter(t){const e=[],s=new $(t.fullCtx);for(const r of t){if(1!==r.alt)continue;const t=r.semanticContext.evalPrecedence(this.parser,this.predictionState.outerContext);null!==t&&(e[r.state.stateNumber]=r.context,t!==r.semanticContext?s.add(j.duplicate(r,t),this.mergeCache):s.add(r,this.mergeCache))}for(const r of t)if(1!==r.alt){if(!r.precedenceFilterSuppressed){const t=e[r.state.stateNumber]||null;if(null!==t&&t.equals(r.context))continue}s.add(r,this.mergeCache)}return s}getReachableTarget(t,e){return t.matches(e,0,this.atn.maxTokenType)?t.target:null}getPredsForAmbigAlts(e,s,r){let i=[];for(const t of s)e.get(t.alt)&&(i[t.alt]=X.orContext(i[t.alt]??null,t.semanticContext));let a=0;for(let t=1;t<r+1;t++){const e=i[t]??null;null===e?i[t]=X.NONE:e!==X.NONE&&(a+=1)}return 0===a&&(i=null),t.debug&&console.log("getPredsForAmbigAlts result "+L(i)),i}getPredicatePredictions(t,e){const s=[];let r=!1;for(let i=1;i<e.length;i++){const a=e[i];t.get(i)&&s.push({pred:a,alt:i}),a!==X.NONE&&(r=!0)}return r?s:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(t,e){const s=this.splitAccordingToSemanticValidity(t,e),r=s[0],i=s[1];let a=this.getAltThatFinishedDecisionEntryRule(r);return a!==z.INVALID_ALT_NUMBER||i.length>0&&(a=this.getAltThatFinishedDecisionEntryRule(i),a!==z.INVALID_ALT_NUMBER)?a:z.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(t){const e=[];for(const s of t)(s.reachesIntoOuterContext||s.state instanceof nt&&s.context.hasEmptyPath())&&e.indexOf(s.alt)<0&&e.push(s.alt);return 0===e.length?z.INVALID_ALT_NUMBER:Math.min(...e)}splitAccordingToSemanticValidity(t,e){const s=new $(t.fullCtx),r=new $(t.fullCtx);for(const i of t)if(i.semanticContext!==X.NONE){i.semanticContext.evaluate(this.parser,e)?s.add(i):r.add(i)}else s.add(i);return[s,r]}evalSemanticContext(e,s,r){const i=new V;for(const a of e){if(a.pred===X.NONE){if(i.set(a.alt),!r)break;continue}const e=a.pred.evaluate(this.parser,s);if((t.debug||t.dfaDebug)&&console.log("eval pred "+a+"="+e),e&&(i.set(a.alt),!r))break}return i}closure(t,e,s,r,i,a){this.closureCheckingStopState(t,e,s,r,i,0,a)}closureCheckingStopState(e,s,r,i,a,n,c){if((t.traceATNSimulator||t.debugClosure)&&console.log("closure("+e.toString(this.parser,!0)+")"),e.state instanceof nt){if(e.context&&!e.context.isEmpty()){for(let h=0;h<e.context.length;h++){if(e.context.getReturnState(h)===S.EMPTY_RETURN_STATE){if(a){s.add(j.createWithConfig(e.state,e,S.EMPTY),this.mergeCache);continue}t.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),this.closure_(e,s,r,i,a,n,c);continue}const o=this.atn.states[e.context.getReturnState(h)],E=e.context.getParent(h),l=j.createWithContext(o,e.alt,E,e.semanticContext);l.reachesIntoOuterContext=e.reachesIntoOuterContext,this.closureCheckingStopState(l,s,r,i,a,n-1,c)}return}if(a)return void s.add(e,this.mergeCache);t.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex))}this.closure_(e,s,r,i,a,n,c)}closure_(e,s,r,i,a,n,c){const h=e.state;h.epsilonOnlyTransitions||s.add(e,this.mergeCache);for(let o=0;o<h.transitions.length;o++){if(0===o&&this.canDropLoopEntryEdgeInLeftRecursiveRule(e))continue;const E=h.transitions[o],l=i&&!(E instanceof St),u=this.getEpsilonTarget(e,E,l,0===n,a,c);if(u){let i=n;if(e.state.constructor.stateType===W.RULE_STOP){if(this.predictionState.dfa&&this.predictionState?.dfa.isPrecedenceDfa){E.outermostPrecedenceReturn===this.predictionState?.dfa.atnStartState?.ruleIndex&&(u.precedenceFilterSuppressed=!0)}if(u.reachesIntoOuterContext=!0,r.getOrAdd(u)!==u)continue;s.dipsIntoOuterContext=!0,i-=1,t.debug&&console.log("dips into outer ctx: "+u)}else{if(!E.isEpsilon&&r.getOrAdd(u)!==u)continue;E instanceof Tt&&i>=0&&(i+=1)}this.closureCheckingStopState(u,s,r,l,a,i,c)}}}canDropLoopEntryEdgeInLeftRecursiveRule(t){const e=t.state;if(e.constructor.stateType!==W.STAR_LOOP_ENTRY||!t.context)return!1;if(!e.precedenceRuleDecision||t.context.isEmpty()||t.context.hasEmptyPath())return!1;const s=t.context.length;for(let a=0;a<s;a++){if(this.atn.states[t.context.getReturnState(a)].ruleIndex!==e.ruleIndex)return!1}const r=e.transitions[0].target.endState.stateNumber,i=this.atn.states[r];for(let a=0;a<s;a++){const s=t.context.getReturnState(a),r=this.atn.states[s];if(1!==r.transitions.length||!r.transitions[0].isEpsilon)return!1;const n=r.transitions[0].target;if((r.constructor.stateType!==W.BLOCK_END||n!==e)&&(r!==i&&n!==i&&(n.constructor.stateType!==W.BLOCK_END||1!==n.transitions.length||!n.transitions[0].isEpsilon||n.transitions[0].target!==e)))return!1}return!0}getEpsilonTarget(e,s,r,i,n,c){switch(s.transitionType){case _.RULE:return this.ruleTransition(e,s);case _.PRECEDENCE:return this.precedenceTransition(e,s,r,i,n);case _.PREDICATE:return this.predTransition(e,s,r,i,n);case _.ACTION:if(t.debug){const t=s,e=-1===t.actionIndex?65535:t.actionIndex;console.log("ACTION edge "+t.ruleIndex+":"+e)}return j.createWithConfig(s.target,e);case _.EPSILON:return j.createWithConfig(s.target,e);case _.ATOM:case _.RANGE:case _.SET:return c&&s.matches(a.EOF,0,1)?j.createWithConfig(s.target,e):null;default:return null}}precedenceTransition(e,s,r,i,a){t.debug&&(console.log("PRED (collectPredicates="+r+") "+s.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+L(this.parser.getRuleInvocationStack())));let n=null;if(r&&i)if(a&&this.predictionState?.input){const t=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const r=s.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(t),r&&(n=j.createWithConfig(s.target,e))}else{const t=X.andContext(e.semanticContext,s.getPredicate());n=j.createWithSemanticContext(s.target,e,t)}else n=j.createWithConfig(s.target,e);return t.debug&&console.log("config from pred transition="+n),n}predTransition(e,s,r,i,a){t.debug&&(console.log("PRED (collectPredicates="+r+") "+s.ruleIndex+":"+s.predIndex+", ctx dependent="+s.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+L(this.parser.getRuleInvocationStack())));let n=null;if(r&&(s.isCtxDependent&&i||!s.isCtxDependent))if(a&&this.predictionState?.input){const t=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const r=s.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(t),r&&(n=j.createWithConfig(s.target,e))}else{const t=X.andContext(e.semanticContext,s.getPredicate());n=j.createWithSemanticContext(s.target,e,t)}else n=j.createWithConfig(s.target,e);return t.debug&&console.log("config from pred transition="+n),n}ruleTransition(e,s){t.debug&&console.log("CALL rule "+this.getRuleName(s.target.ruleIndex)+", ctx="+e.context);const r=s.followState,i=p.create(e.context??void 0,r.stateNumber);return j.createWithConfig(s.target,e,i)}getConflictingAlts(t){const e=Ee.getConflictingAltSubsets(t);return Ee.getAlts(e)}getConflictingAltsOrUniqueAlt(t){let e;return t.uniqueAlt!==z.INVALID_ALT_NUMBER?(e=new V,e.set(t.uniqueAlt)):e=t.conflictingAlts,e}noViableAlt(t,e,s,r){return new ce(this.parser,t,t.get(r),t.LT(1),s,e)}addDFAEdge(e,s,r,i){return t.debug&&console.log("EDGE "+s+" -> "+i+" upon "+this.getTokenName(r)),i=this.addDFAState(e,i),r<-1||r>this.atn.maxTokenType||(t.debug&&console.log("DFA=\n"+e.toString(null!=this.parser?this.parser.vocabulary:l.EMPTY_VOCABULARY)),s.edges[r+1]=i),i}addDFAState(e,s){if(s===Yt.ERROR)return s;const r=e.getState(s);return null!==r?r:(s.configs.readOnly||(s.configs.optimizeConfigs(this),s.configs.setReadonly(!0)),t.traceATNSimulator&&console.log("addDFAState new "+s),e.addState(s),s)}reportAttemptingFullContext(e,s,r,i,a){if(t.debug||t.retryDebug){const t=new E(i,a+1);console.log("reportAttemptingFullContext decision="+e.decision+":"+r+", input="+this.parser.tokenStream.getTextFromInterval(t))}this.parser.errorListenerDispatch.reportAttemptingFullContext(this.parser,e,i,a,s,r)}reportContextSensitivity(e,s,r,i,a){if(t.debug||t.retryDebug){const t=new E(i,a+1);console.log("reportContextSensitivity decision="+e.decision+":"+r+", input="+this.parser.tokenStream.getTextFromInterval(t))}this.parser.errorListenerDispatch.reportContextSensitivity(this.parser,e,i,a,s,r)}reportAmbiguity(e,s,r,i,a,n,c){if(t.debug||t.retryDebug){const t=new E(r,i+1);console.log("reportAmbiguity "+n+":"+c+", input="+this.parser.tokenStream.getTextFromInterval(t))}this.parser.errorListenerDispatch.reportAmbiguity(this.parser,e,r,i,a,n,c)}},ue=class{static{h(this,"PredictionContextCache")}cache=new v(k.instance);add(t){if(t===S.EMPTY)return t;const e=this.cache.get(t);return e||(this.cache.set(t,t),t)}get(t){return this.cache.get(t)}get length(){return this.cache.size}},Re=class extends le{static{h(this,"ProfilingATNSimulator")}decisions;numDecisions=0;currentDecision=0;currentState;conflictingAltResolvedBySLL;#k=0;#M=0;constructor(t){const e=t.interpreter.sharedContextCache;if(super(t,t.interpreter.atn,t.interpreter.decisionToDFA,e),e){this.numDecisions=this.atn.decisionToState.length,this.decisions=new Array(this.numDecisions);for(let t=0;t<this.numDecisions;t++)this.decisions[t]=new Vt(t)}}adaptivePredict(t,e,s){try{this.#k=-1,this.#M=-1,this.currentDecision=e;const r=performance.now(),i=super.adaptivePredict(t,e,s),a=performance.now();this.decisions[e].timeInPrediction+=a-r,this.decisions[e].invocations++;const n=this.#k-this.predictionState.startIndex+1;if(this.decisions[e].sllTotalLook+=n,this.decisions[e].sllMinLook=0===this.decisions[e].sllMinLook?n:Math.min(this.decisions[e].sllMinLook,n),n>this.decisions[e].sllMaxLook&&(this.decisions[e].sllMaxLook=n,this.decisions[e].sllMaxLookEvent={decision:e,configs:null,predictedAlt:i,input:t,startIndex:this.predictionState.startIndex,stopIndex:this.#k,fullCtx:!1}),this.#M>=0){const s=this.#M-this.predictionState.startIndex+1;this.decisions[e].llTotalLook+=s,this.decisions[e].llMinLook=0===this.decisions[e].llMinLook?s:Math.min(this.decisions[e].llMinLook,s),s>this.decisions[e].llMaxLook&&(this.decisions[e].llMaxLook=s,this.decisions[e].llMaxLookEvent={decision:e,configs:null,predictedAlt:i,input:t,startIndex:this.predictionState.startIndex,stopIndex:this.#M,fullCtx:!0})}return i}finally{this.currentDecision=-1}}getExistingTargetState(t,e){if(this.predictionState?.input){this.#k=this.predictionState.input.index;const s=super.getExistingTargetState(t,e);return null!==s&&(this.decisions[this.currentDecision].sllDFATransitions++,s===Yt.ERROR&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:t.configs,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.#k,fullCtx:!1})),this.currentState=s,s}}computeTargetState(t,e,s){const r=super.computeTargetState(t,e,s);return this.currentState=r,r}computeReachSet(t,e,s){s&&this.predictionState?.input&&(this.#M=this.predictionState.input.index);const r=super.computeReachSet(t,e,s);return this.predictionState?.input&&(s?(this.decisions[this.currentDecision].llATNTransitions++,null===r&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:t,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.#k,fullCtx:!0})):(this.decisions[this.currentDecision].sllATNTransitions++,null===r&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:t,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.#k,fullCtx:!1}))),r}reportAttemptingFullContext(t,e,s,r,i){this.conflictingAltResolvedBySLL=null!==e?e.nextSetBit(0):s.getAlts().nextSetBit(0),this.decisions[this.currentDecision].llFallback++,e&&super.reportAttemptingFullContext(t,e,s,r,i)}reportContextSensitivity(t,e,s,r,i){e!==this.conflictingAltResolvedBySLL&&this.predictionState.input&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:s,input:this.predictionState.input,startIndex:r,stopIndex:i,fullCtx:!0}),super.reportContextSensitivity(t,e,s,r,i)}reportAmbiguity(t,e,s,r,i,a,n){let c;c=a?a.nextSetBit(0):n.getAlts().nextSetBit(0),this.predictionState?.input&&(n.fullCtx&&c!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:n,input:this.predictionState.input,startIndex:s,stopIndex:r,fullCtx:!0}),this.decisions[this.currentDecision].ambiguities.push({ambigAlts:a,decision:this.currentDecision,configs:n,input:this.predictionState.input,startIndex:s,stopIndex:r,fullCtx:n.fullCtx})),super.reportAmbiguity(t,e,s,r,i,a,n)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}};(q||(q={})).toString=h((t=>`(${t.pred}, ${t.alt})`),"toString");var _e,Te=class t extends Error{static{h(this,"ParseCancellationException")}constructor(e){super(),Error.captureStackTrace(this,t)}},Ae=(class{static{h(this,"InterpreterDataReader")}static parseInterpreterData(t){const e=[],s=[],r=[],i=[],a=[],n=t.split("\n");let c=0,h=n[c++];if("token literal names:"!==h)throw new Error("Unexpected data entry");for(;;){if(h=n[c++],0===h.length)break;i.push("null"===h?null:h)}if(h=n[c++],"token symbolic names:"!==h)throw new Error("Unexpected data entry");for(;;){if(h=n[c++],0===h.length)break;a.push("null"===h?null:h)}if(h=n[c++],"rule names:"!==h)throw new Error("Unexpected data entry");for(;;){if(h=n[c++],0===h.length)break;e.push(h)}if(h=n[c++],"channel names:"===h){for(;;){if(h=n[c++],0===h.length)break;s.push(h)}if(h=n[c++],"mode names:"!==h)throw new Error("Unexpected data entry");for(;;){if(h=n[c++],0===h.length)break;r.push(h)}}if(h=n[c++],"atn:"!==h)throw new Error("Unexpected data entry");h=n[c++];const o=h.split(",");let E;const u=[];for(let l=0;l<o.length;++l){const t=o[l];E=t.startsWith("[")?Number(t.substring(1).trim()):t.endsWith("]")?Number(t.substring(0,t.length-1).trim()):Number(t.trim()),u[l]=E}return{atn:(new Ft).deserialize(u),vocabulary:new l(i,a,[]),ruleNames:e,channels:s.length>0?s:void 0,modes:r.length>0?r:void 0}}},class{static{h(this,"AbstractParseTreeVisitor")}visit(t){return t.accept(this)}visitChildren(t){let e=this.defaultResult();const s=t.getChildCount();for(let r=0;r<s&&this.shouldVisitNextChild(t,e);r++){const s=t.getChild(r);if(s){const t=s.accept(this);e=this.aggregateResult(e,t)}}return e}visitTerminal(t){return this.defaultResult()}visitErrorNode(t){return this.defaultResult()}defaultResult(){return null}shouldVisitNextChild(t,e){return!0}aggregateResult(t,e){return e}});(class t{static{h(this,"ParseTreeWalker")}static DEFAULT=new t;walk(t,e){if(e instanceof x)t.visitErrorNode(e);else if(e instanceof m)t.visitTerminal(e);else{const s=e;this.enterRule(t,s);for(let r=0;r<e.getChildCount();r++)this.walk(t,e.getChild(r));this.exitRule(t,s)}}enterRule(t,e){const s=e.ruleContext;t.enterEveryRule(s),s.enterRule(t)}exitRule(t,e){const s=e.ruleContext;s.exitRule(t),t.exitEveryRule(s)}});(_e||(_e={})).fromString=h((t=>new Se(t)),"fromString");var Se=class{static{h(this,"CharStreamImpl")}name="";index=0;data;constructor(t){const e=[];for(const s of t)e.push(s.codePointAt(0));this.data=new Uint32Array(e)}reset(){this.index=0}consume(){if(this.index>=this.data.length)throw new Error("cannot consume EOF");this.index+=1}LA(t){if(0===t)return 0;t<0&&(t+=1);const e=this.index+t-1;return e<0||e>=this.data.length?a.EOF:this.data[e]}mark(){return-1}release(t){}seek(t){t<=this.index?this.index=t:this.index=Math.min(t,this.data.length)}getTextFromRange(t,e){return(e=e??this.data.length-1)>=this.data.length&&(e=this.data.length-1),t>=this.data.length?"":this.#D(t,e+1)}getTextFromInterval(t){const e=t.start;let s=t.stop;return s>=this.data.length&&(s=this.data.length-1),e>=this.data.length?"":this.#D(e,s+1)}toString(){return this.#D(0)}get size(){return this.data.length}getSourceName(){return this.name?this.name:r.UNKNOWN_SOURCE_NAME}#D(t,e){const s=this.data.slice(t,e);let r="";return s.forEach((t=>{r+=String.fromCodePoint(t)})),r}},de=class{static{h(this,"BufferedTokenStream")}tokenSource;tokens=[];p=-1;fetchedEOF=!1;constructor(t){this.tokenSource=t}mark(){return 0}release(t){}reset(){this.seek(0)}seek(t){this.lazyInit(),this.p=this.adjustSeekIndex(t)}get size(){return this.tokens.length}get index(){return this.p}get(t){return this.lazyInit(),this.tokens[t]}consume(){let t=!1;if(t=this.p>=0&&(this.fetchedEOF?this.p<this.tokens.length-1:this.p<this.tokens.length),!t&&this.LA(1)===a.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1))}sync(t){const e=t-this.tokens.length+1;if(e>0){return this.fetch(e)>=e}return!0}fetch(t){if(this.fetchedEOF)return 0;for(let e=0;e<t;e++){const t=this.tokenSource.nextToken();if(t.tokenIndex=this.tokens.length,this.tokens.push(t),t.type===a.EOF)return this.fetchedEOF=!0,e+1}return t}getTokens(t,e,s){if(this.lazyInit(),void 0===t&&void 0===e)return this.tokens;if(t??=0,void 0===e&&(e=this.tokens.length-1),t<0||e>=this.tokens.length||e<0||t>=this.tokens.length)throw new RangeError("start "+t+" or stop "+e+" not in 0.."+(this.tokens.length-1));if(t>e)return[];if(void 0===s)return this.tokens.slice(t,e+1);const r=[];e>=this.tokens.length&&(e=this.tokens.length-1);for(let i=t;i<e;i++){const t=this.tokens[i];if(t.type===a.EOF){r.push(t);break}s.has(t.type)&&r.push(t)}return r}LA(t){return this.LT(t)?.type??a.INVALID_TYPE}LB(t){return this.p-t<0?null:this.tokens[this.p-t]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);const e=this.p+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]}adjustSeekIndex(t){return t}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}setTokenSource(t){this.tokenSource=t,this.tokens=[],this.p=-1,this.fetchedEOF=!1}nextTokenOnChannel(t,e){if(this.sync(t),t>=this.tokens.length)return-1;let s=this.tokens[t];for(;s.channel!==e;){if(s.type===a.EOF)return-1;t+=1,this.sync(t),s=this.tokens[t]}return t}previousTokenOnChannel(t,e){if(t>=this.tokens.length)return this.tokens.length-1;for(;t>=0;){const s=this.tokens[t];if(s.type===a.EOF||s.channel===e)return t;--t}return t}getHiddenTokensToRight(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw new Error(`${t} not in 0..${this.tokens.length-1}`);const s=this.nextTokenOnChannel(t+1,Zt.DEFAULT_TOKEN_CHANNEL),r=t+1,i=-1===s?this.tokens.length-1:s;return this.filterForChannel(r,i,e)}getHiddenTokensToLeft(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw new Error(`${t} not in 0..${this.tokens.length-1}`);const s=this.previousTokenOnChannel(t-1,Zt.DEFAULT_TOKEN_CHANNEL);if(s===t-1)return;const r=s+1,i=t-1;return this.filterForChannel(r,i,e)}filterForChannel(t,e,s){const r=[];for(let i=t;i<e+1;i++){const t=this.tokens[i];-1===s?t.channel!==Zt.DEFAULT_TOKEN_CHANNEL&&r.push(t):t.channel===s&&r.push(t)}if(0!==r.length)return r}getSourceName(){return this.tokenSource.sourceName}getText(){return this.getTextFromInterval(E.of(0,this.size-1))}getTextFromInterval(t){const e=t.start;let s=t.stop;if(e<0||s<0)return"";this.sync(s),s>=this.tokens.length&&(s=this.tokens.length-1);let r="";for(let i=e;i<=s;++i){const t=this.tokens[i];if(t.type===a.EOF)break;r+=t.text}return r}getTextFromContext(t){return this.getTextFromInterval(t.getSourceInterval())}getTextFromRange(t,e){return null!==t&&null!==e?this.getTextFromInterval(E.of(t.tokenIndex,e.tokenIndex)):""}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}},Le=class extends de{static{h(this,"CommonTokenStream")}channel=a.DEFAULT_CHANNEL;constructor(t,e){super(t),this.channel=e??a.DEFAULT_CHANNEL}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}LB(t){if(0===t||this.index-t<0)return null;let e=this.index,s=1;for(;s<=t;)e=this.previousTokenOnChannel(e-1,this.channel),s+=1;return e<0?null:this.tokens[e]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);let e=this.index,s=1;for(;s<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),s+=1;return this.tokens[e]}getNumberOfOnChannelTokens(){let t=0;this.fill();for(const e of this.tokens)if(e.channel===this.channel&&(t+=1),e.type===a.EOF)break;return t}},Ce=class t extends Zt{static{h(this,"XPathLexer")}static TOKEN_REF=1;static RULE_REF=2;static ANYWHERE=3;static ROOT=4;static WILDCARD=5;static BANG=6;static ID=7;static STRING=8;static channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"];static literalNames=[null,null,null,"'//'","'/'","'*'","'!'"];static symbolicNames=[null,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"];static modeNames=["DEFAULT_MODE"];static ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"];constructor(e){super(e),this.interpreter=new ne(this,t._ATN,t.decisionsToDFA,new ue)}get grammarFileName(){return"XPathLexer.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}get channelNames(){return t.channelNames}get modeNames(){return t.modeNames}action(t,e,s){if(4===e)this.ID_action(t,s)}ID_action(e,s){if(0===s){const e=this.text;e.charAt(0)===e.charAt(0).toUpperCase()?this.type=t.TOKEN_REF:this.type=t.RULE_REF}}static _serializedATN=[4,0,8,48,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,4,5,4,29,8,4,10,4,12,4,32,9,4,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,5,7,42,8,7,10,7,12,7,45,9,7,1,7,1,7,1,43,0,8,1,3,3,4,5,5,7,6,9,7,11,0,13,0,15,8,1,0,2,784,0,0,8,14,27,48,57,65,90,95,95,97,122,127,159,170,170,173,173,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1536,1541,1552,1562,1564,1564,1568,1641,1646,1747,1749,1757,1759,1768,1770,1788,1791,1791,1807,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2192,2193,2200,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8203,8207,8234,8238,8255,8256,8276,8276,8288,8292,8294,8303,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65279,65279,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65529,65531,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69821,69821,69826,69826,69837,69837,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,113824,113827,118528,118573,118576,118598,119141,119145,119149,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,917505,917505,917536,917631,917760,917999,662,0,65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6276,6279,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,47,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,15,1,0,0,0,1,17,1,0,0,0,3,20,1,0,0,0,5,22,1,0,0,0,7,24,1,0,0,0,9,26,1,0,0,0,11,35,1,0,0,0,13,37,1,0,0,0,15,39,1,0,0,0,17,18,5,47,0,0,18,19,5,47,0,0,19,2,1,0,0,0,20,21,5,47,0,0,21,4,1,0,0,0,22,23,5,42,0,0,23,6,1,0,0,0,24,25,5,33,0,0,25,8,1,0,0,0,26,30,3,13,6,0,27,29,3,11,5,0,28,27,1,0,0,0,29,32,1,0,0,0,30,28,1,0,0,0,30,31,1,0,0,0,31,33,1,0,0,0,32,30,1,0,0,0,33,34,6,4,0,0,34,10,1,0,0,0,35,36,7,0,0,0,36,12,1,0,0,0,37,38,7,1,0,0,38,14,1,0,0,0,39,43,5,39,0,0,40,42,9,0,0,0,41,40,1,0,0,0,42,45,1,0,0,0,43,44,1,0,0,0,43,41,1,0,0,0,44,46,1,0,0,0,45,43,1,0,0,0,46,47,5,39,0,0,47,16,1,0,0,0,3,0,30,43,1,1,4,0];static __ATN;static get _ATN(){return t.__ATN||(t.__ATN=(new Ft).deserialize(t._serializedATN)),t.__ATN}static vocabulary=new l(t.literalNames,t.symbolicNames,[]);get vocabulary(){return t.vocabulary}static decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ae(t,e)))},Ne=class extends Xt{static{h(this,"XPathLexerErrorListener")}syntaxError(t,e,s,r,i,a){}},Ie=class{static{h(this,"XPathElement")}invert;nodeName;constructor(t){this.nodeName=t,this.invert=!1}toString(){return"XPathElement["+(this.invert?"!":"")+this.nodeName+"]"}},Oe=class extends Ie{static{h(this,"XPathRuleAnywhereElement")}ruleIndex;constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){return f.findAllRuleNodes(t,this.ruleIndex)}toString(){return"XPathRuleAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},pe=class extends Ie{static{h(this,"XPathRuleElement")}ruleIndex;constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){const e=[];for(const s of f.getChildren(t))s instanceof P&&(s.ruleIndex===this.ruleIndex&&!this.invert||s.ruleIndex!==this.ruleIndex&&this.invert)&&e.push(s);return e}toString(){return"XPathRuleElement["+(this.invert?"!":"")+this.nodeName+"]"}},ge=class extends Ie{static{h(this,"XPathTokenAnywhereElement")}tokenType;constructor(t,e){super(t),this.tokenType=e}evaluate(t){return f.findAllTokenNodes(t,this.tokenType)}toString(){return"XPathTokenAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},me=class extends Ie{static{h(this,"XPathTokenElement")}tokenType;constructor(t,e){super(t),this.tokenType=e}evaluate(t){const e=[];for(const s of f.getChildren(t))s instanceof m&&s.symbol&&(s.symbol.type===this.tokenType&&!this.invert||s.symbol.type!==this.tokenType&&this.invert)&&e.push(s);return e}toString(){return"XPathTokenElement["+(this.invert?"!":"")+this.nodeName+"]"}},xe=class extends Ie{static{h(this,"XPathWildcardAnywhereElement")}constructor(){super(fe.WILDCARD)}evaluate(t){return this.invert?[]:f.descendants(t)}toString(){return"XPathWildcardAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Ue=class extends Ie{static{h(this,"XPathWildcardElement")}constructor(){super(fe.WILDCARD)}evaluate(t){const e=[];if(this.invert)return e;for(const s of f.getChildren(t))e.push(s);return e}toString(){return"XPathWildcardElement["+(this.invert?"!":"")+this.nodeName+"]"}},fe=class t{static{h(this,"XPath")}static WILDCARD="*";static NOT="!";path;elements;parser;constructor(t,e){this.parser=t,this.path=e,this.elements=this.split(e)}static findAll(e,s,r){return new t(r,s).evaluate(e)}split(t){const e=new Ce(_e.fromString(t));e.recover=t=>{throw t},e.removeErrorListeners(),e.addErrorListener(new Ne);const s=new Le(e);try{s.fill()}catch(h){if(h instanceof zt){const s="Invalid tokens or characters at index "+e.column+" in path '"+t+"' -- "+h.message;throw new RangeError(s)}throw h}const r=s.getTokens(),i=[],n=r.length;let c=0;t:for(;c<n;){const t=r[c];let e;switch(t.type){case Ce.ROOT:case Ce.ANYWHERE:const s=t.type===Ce.ANYWHERE;c++,e=r[c];const n=e.type===Ce.BANG;n&&(c++,e=r[c]);const h=this.getXPathElement(e,s);h.invert=n,i.push(h),c++;break;case Ce.TOKEN_REF:case Ce.RULE_REF:case Ce.WILDCARD:i.push(this.getXPathElement(t,!1)),++c;break;case a.EOF:break t;default:throw new Error("Unknown path element "+t)}}return i}evaluate(t){const e=new P(null);e.addChild(t);let s=new Set([e]),r=0;for(;r<this.elements.length;){const t=new Set;for(const e of s)if(e.getChildCount()>0){this.elements[r].evaluate(e).forEach((e=>{t.add(e)}),t)}r++,s=t}return s}getXPathElement(t,e){if(t.type===a.EOF)throw new Error("Missing path element at end of path");const s=t.text;if(null==s)throw new Error("Expected wordToken to have text content.");const r=this.parser.getTokenType(s),i=this.parser.getRuleIndex(s);switch(t.type){case Ce.WILDCARD:return e?new xe:new Ue;case Ce.TOKEN_REF:case Ce.STRING:if(r===a.INVALID_TYPE)throw new Error(s+" at index "+t.start+" isn't a valid token name");return e?new ge(s,r):new me(s,r);default:if(-1===i)throw new Error(s+" at index "+t.start+" isn't a valid rule name");return e?new Oe(s,i):new pe(s,i)}}},Pe=class{static{h(this,"Chunk")}},ke=class{static{h(this,"ParseTreeMatch")}tree;pattern;labels;mismatchedNode;constructor(t,e,s,r){this.tree=t,this.pattern=e,this.labels=s,this.mismatchedNode=r}get(t){const e=this.labels.get(t);return e&&0!==e.length?e[e.length-1]:null}getAll(t){return this.labels.get(t)??[]}getLabels(){return this.labels}getMismatchedNode(){return this.mismatchedNode}succeeded(){return!this.mismatchedNode}getPattern(){return this.pattern}getTree(){return this.tree}toString(){return`Match ${this.succeeded()?"succeeded":"failed"}; found ${this.getLabels().size} labels`}},Me=class{static{h(this,"ParseTreePattern")}patternRuleIndex;pattern;patternTree;matcher;constructor(t,e,s,r){this.matcher=t,this.patternRuleIndex=s,this.pattern=e,this.patternTree=r}match(t){return this.matcher.match(t,this)}matches(t){return this.matcher.match(t,this).succeeded()}findAll(t,e){const s=fe.findAll(t,e,this.matcher.getParser()),r=new Array;for(const i of s){const t=this.match(i);t.succeeded()&&r.push(t)}return r}getMatcher(){return this.matcher}getPattern(){return this.pattern}getPatternRuleIndex(){return this.patternRuleIndex}getPatternTree(){return this.patternTree}},De=class extends Jt{static{h(this,"InputMismatchException")}constructor(t){super({message:"",recognizer:t,input:t.inputStream,ctx:t.context}),this.offendingToken=t.getCurrentToken()}},ye=class extends Jt{static{h(this,"FailedPredicateException")}ruleIndex=0;predicateIndex=0;predicate;constructor(t,e,s=null){super({message:ve(e??"no predicate",s??null),recognizer:t,input:t.inputStream,ctx:t.context});const r=t.atn.states[t.state].transitions[0];r instanceof Nt?(this.ruleIndex=r.ruleIndex,this.predicateIndex=r.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=e,this.offendingToken=t.getCurrentToken()}},ve=h(((t,e)=>null!==e?e:"failed predicate: {"+t+"}?"),"formatMessage"),be=class{static{h(this,"DefaultErrorStrategy")}errorRecoveryMode=!1;lastErrorIndex=-1;lastErrorStates=new R;nextTokensContext=null;nextTokenState=0;reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=new R,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof ce?this.reportNoViableAlternative(t,e):e instanceof De?this.reportInputMismatch(t,e):e instanceof ye?this.reportFailedPredicate(t,e):t.notifyErrorListeners(e.message,e.offendingToken,e))}recover(t,e){this.lastErrorIndex===t.inputStream?.index&&this.lastErrorStates.contains(t.state)&&t.consume(),this.lastErrorIndex=t.inputStream?.index??0,this.lastErrorStates.addOne(t.state);const s=this.getErrorRecoverySet(t);this.consumeUntil(t,s)}sync(t){if(this.inErrorRecoveryMode(t))return;const e=t.atn.states[t.state],s=t.tokenStream.LA(1),r=t.atn.nextTokens(e);if(r.contains(s))return this.nextTokensContext=null,void(this.nextTokenState=W.INVALID_STATE_NUMBER);if(r.contains(a.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=t.context,this.nextTokenState=t.state);else switch(e.constructor.stateType){case W.BLOCK_START:case W.STAR_BLOCK_START:case W.PLUS_BLOCK_START:case W.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(t))return;throw new De(t);case W.PLUS_LOOP_BACK:case W.STAR_LOOP_BACK:{this.reportUnwantedToken(t);const e=new R;e.addSet(t.getExpectedTokens());const s=e.addSet(this.getErrorRecoverySet(t));this.consumeUntil(t,s);break}}}reportNoViableAlternative(t,e){if(e.message.length>0)return void t.notifyErrorListeners(e.message,e.offendingToken,e);const s=t.tokenStream;let r;r=null!==s&&e.startToken?e.startToken.type===a.EOF?"<EOF>":s.getTextFromRange(e.startToken,e.offendingToken):"<unknown input>";const i="no viable alternative at input "+this.escapeWSAndQuote(r);t.notifyErrorListeners(i,e.offendingToken,e)}reportInputMismatch(t,e){if(e.message.length>0)return void t.notifyErrorListeners(e.message,e.offendingToken,e);const s="mismatched input "+this.getTokenErrorDisplay(e.offendingToken)+" expecting "+e.getExpectedTokens().toStringWithVocabulary(t.vocabulary);t.notifyErrorListeners(s,e.offendingToken,e)}reportFailedPredicate(t,e){const s="rule "+t.ruleNames[t.context.ruleIndex]+" "+e.message;t.notifyErrorListeners(s,e.offendingToken,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),s="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toStringWithVocabulary(t.vocabulary);t.notifyErrorListeners(s,e,null)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),s="missing "+this.getExpectedTokens(t).toStringWithVocabulary(t.vocabulary)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(s,e,null)}recoverInline(t){const e=this.singleTokenDeletion(t);if(e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw new De(t)}singleTokenInsertion(t){const e=t.tokenStream?.LA(1)??-1,s=t.atn,r=s.states[t.state].transitions[0].target;return!!s.nextTokens(r,t.context??void 0).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){const e=t.tokenStream?.LA(2)??-1;if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();const e=t.getCurrentToken();return this.reportMatch(t),e}return null}getMissingSymbol(t){const e=t.getCurrentToken(),s=this.getExpectedTokens(t);let r,i=a.INVALID_TYPE;0!==s.length&&(i=s.minElement),r=i===a.EOF?"<missing EOF>":"<missing "+t.vocabulary.getDisplayName(i)+">";let n=e;const c=t.tokenStream?.LT(-1);return n.type===a.EOF&&null!==c&&(n=c),t.getTokenFactory().create(n.source,i,r,a.DEFAULT_CHANNEL,-1,-1,n.line,n.column)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(t){if(null===t)return"<no token>";let e=t.text;return e||(e=t.type===a.EOF?"<EOF>":"<"+t.type+">"),this.escapeWSAndQuote(e)}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(t){const e=t.atn;let s=t.context;const r=new R;for(;null!==s&&s.invokingState>=0;){const t=e.states[s.invokingState].transitions[0],i=e.nextTokens(t.followState);r.addSet(i),s=s.parent}return r.removeOne(a.EPSILON),r}consumeUntil(t,e){let s=t.tokenStream?.LA(1)??-1;for(;s!==a.EOF&&!e.contains(s);)t.consume(),s=t.tokenStream?.LA(1)??-1}},He=class extends be{static{h(this,"BailErrorStrategy")}recover(t,e){throw new Te(e)}recoverInline(t){const e=new De(t);throw new Te(e)}sync(t){}},we=class{static{h(this,"ListTokenSource")}sourceName;tokenFactory=jt.DEFAULT;tokens;i;eofToken;constructor(t,e){this.tokens=t,this.sourceName=e??""}get column(){if(this.i<this.tokens.length)return this.tokens[this.i].column;if(null!==this.eofToken)return this.eofToken.column;if(this.tokens.length>0){const t=this.tokens[this.tokens.length-1],e=t.text;if(e){const t=e.lastIndexOf("\n");if(t>=0)return e.length-t-1}return t.column+t.stop-t.start+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null===this.eofToken){let t=-1;if(this.tokens.length>0){const e=this.tokens[this.tokens.length-1].stop;-1!==e&&(t=e+1)}const e=Math.max(-1,t-1);this.eofToken=this.tokenFactory.create([this,this.inputStream],a.EOF,"EOF",a.DEFAULT_CHANNEL,t,e,this.line,this.column)}return this.eofToken}const t=this.tokens[this.i];return this.i===this.tokens.length-1&&t.type===a.EOF&&(this.eofToken=t),this.i++,t}get line(){if(this.i<this.tokens.length)return this.tokens[this.i].line;if(null!==this.eofToken)return this.eofToken.line;if(this.tokens.length>0){const t=this.tokens[this.tokens.length-1];let e=t.line;const s=t.text;if(s)for(const r of s)"\n"===r&&e++;return e}return 1}get inputStream(){return this.i<this.tokens.length?this.tokens[this.i].inputStream:null!==this.eofToken?this.eofToken.inputStream:this.tokens.length>0?this.tokens[this.tokens.length-1].inputStream:null}getSourceName(){if(null!==this.sourceName)return this.sourceName;const t=this.inputStream;return null!==t?t.getSourceName():"List"}},Fe=class extends P{static{h(this,"InterpreterRuleContext")}#y;constructor(t,e,s){super(e,s),this.#y=t}get ruleIndex(){return this.#y}},Ge=class{static{h(this,"TraceListener")}parser;constructor(t){this.parser=t}enterEveryRule(t){console.log("enter "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitTerminal(t){console.log("consume "+t.getSymbol()+" rule "+this.parser.ruleNames[this.parser.context.ruleIndex])}exitEveryRule(t){console.log("exit "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitErrorNode(t){}},Be=class extends qt{static{h(this,"Parser")}printer=null;buildParseTrees=!0;errorHandler=new be;context=null;precedenceStack=[];parseListeners=null;syntaxErrors=0;matchedEOF=!1;#v=null;#b=null;#H;constructor(t){super(),this.precedenceStack.push(0),this.syntaxErrors=0,this.#H=t}reset(t=!0){t&&this.inputStream.seek(0),this.errorHandler.reset(this),this.context=null,this.syntaxErrors=0,this.matchedEOF=!1,this.setTrace(!1),this.precedenceStack=[],this.precedenceStack.push(0),this.interpreter&&this.interpreter.reset()}match(t){let e=this.getCurrentToken();return e.type===t?(t===a.EOF&&(this.matchedEOF=!0),this.errorHandler.reportMatch(this),this.consume()):(e=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,e))),e}matchWildcard(){let t=this.getCurrentToken();return t.type>0?(this.errorHandler.reportMatch(this),this.consume()):(t=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,t))),t}getParseListeners(){return this.parseListeners??[]}addParseListener(t){if(null===t)throw new Error("listener");null===this.parseListeners&&(this.parseListeners=[]),this.parseListeners.push(t)}removeParseListener(t){if(null!==this.parseListeners&&null!==t){const e=this.parseListeners.indexOf(t);e>=0&&this.parseListeners.splice(e,1),0===this.parseListeners.length&&(this.parseListeners=null)}}removeParseListeners(){this.parseListeners=null}triggerEnterRuleEvent(){if(null!==this.parseListeners){const t=this.context;this.parseListeners.forEach((e=>{e.enterEveryRule(t),t.enterRule(e)}))}}triggerExitRuleEvent(){if(null!==this.parseListeners){const t=this.context;this.parseListeners.slice(0).reverse().forEach((e=>{t.exitRule(e),e.exitEveryRule(t)}))}}getTokenFactory(){return this.inputStream.tokenSource.tokenFactory}setTokenFactory(t){this.inputStream.tokenSource.tokenFactory=t}compileParseTreePattern(t,e,s){if(!s&&null!==this.tokenStream){const t=this.tokenStream.tokenSource;t instanceof Zt&&(s=t)}if(!s)throw new Error("Parser can't discover a lexer to use");return new Je(s,this).compile(t,e)}getATNWithBypassAlts(){const t=this.getSerializedATN();if(null===t)throw new Error("The current parser does not support an ATN with bypass alternatives.");if(null!==this.#b)return this.#b;return this.#b=new Ft({readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!0}).deserialize(t),this.#b}get numberOfSyntaxErrors(){return this.syntaxErrors}get inputStream(){return this.#H}set inputStream(t){this.tokenStream=t}get tokenStream(){return this.#H}set tokenStream(t){this.reset(!1),this.#H=t}getCurrentToken(){return this.inputStream.LT(1)}notifyErrorListeners(t,e,s){s=s??null,null===(e=e??null)&&(e=this.getCurrentToken()),this.syntaxErrors+=1;const r=e.line,i=e.column;this.errorListenerDispatch.syntaxError(this,e,r,i,t,s)}consume(){const t=this.getCurrentToken();t.type!==a.EOF&&this.tokenStream.consume();const e=null!==this.parseListeners&&this.parseListeners.length>0;if(this.buildParseTrees||e){let s;s=this.errorHandler.inErrorRecoveryMode(this)?this.context.addErrorNode(this.createErrorNode(this.context,t)):this.context.addTokenNode(t),e&&this.parseListeners.forEach((t=>{s instanceof x?t.visitErrorNode(s):t.visitTerminal(s)}))}return t}addContextToParseTree(){this.context?.parent&&this.context.parent.addChild(this.context)}enterRule(t,e,s){this.state=e,this.context=t,this.context.start=this.inputStream.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this.context.stop=this.inputStream.LT(1):this.context.stop=this.inputStream.LT(-1),this.triggerExitRuleEvent(),this.state=this.context.invokingState,this.context=this.context.parent}enterOuterAlt(t,e){t.setAltNumber(e),this.buildParseTrees&&this.context!==t&&this.context?.parent&&(this.context.parent.removeLastChild(),this.context.parent.addChild(t)),this.context=t}getPrecedence(){return 0===this.precedenceStack.length?-1:this.precedenceStack[this.precedenceStack.length-1]}enterRecursionRule(t,e,s,r){this.state=e,this.precedenceStack.push(r),this.context=t,this.context.start=this.inputStream.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,s){const r=this.context;r.parent=t,r.invokingState=e,r.stop=this.inputStream.LT(-1),this.context=t,this.context.start=r.start,this.buildParseTrees&&this.context.addChild(r),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this.precedenceStack.pop(),this.context.stop=this.inputStream.LT(-1);const e=this.context,s=this.getParseListeners();if(null!==s&&s.length>0)for(;this.context!==t;)this.triggerExitRuleEvent(),this.context=this.context.parent;else this.context=t;e.parent=t,this.buildParseTrees&&null!==t&&t.addChild(e)}getInvokingContext(t){let e=this.context;for(;null!==e;){if(e.ruleIndex===t)return e;e=e.parent}return null}precpred(t,e){return e>=this.precedenceStack[this.precedenceStack.length-1]}isExpectedToken(t){const e=this.interpreter.atn;let s=this.context;const r=e.states[this.state];let i=e.nextTokens(r);if(i.contains(t))return!0;if(!i.contains(a.EPSILON))return!1;for(;null!==s&&s.invokingState>=0&&i.contains(a.EPSILON);){const r=e.states[s.invokingState].transitions[0];if(i=e.nextTokens(r.followState),i.contains(t))return!0;s=s.parent}return!(!i.contains(a.EPSILON)||t!==a.EOF)}getExpectedTokens(){return this.interpreter.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){const t=this.interpreter.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){return this.getRuleIndexMap().get(t)??-1}getRuleInvocationStack(t){null===(t=t??null)&&(t=this.context);const e=[];for(;null!==t;){const s=t.ruleIndex;s<0?e.push("n/a"):e.push(this.ruleNames[s]),t=t.parent}return e}getDFAStrings(){return this.interpreter.decisionToDFA.toString()}dumpDFA(){let t=!1;for(const e of this.interpreter.decisionToDFA)e.length>0&&(t&&console.log(),this.printer&&(this.printer.println("Decision "+e.decision+":"),this.printer.print(e.toString(this.vocabulary))),t=!0)}getSourceName(){return this.inputStream.getSourceName()}setProfile(t){const e=this.interpreter,s=e.predictionMode;if(t)e instanceof Re||(this.interpreter=new Re(this));else if(e instanceof Re){const t=e.sharedContextCache;if(t){const s=new le(this,this.atn,e.decisionToDFA,t);this.interpreter=s}}this.interpreter.predictionMode=s}setTrace(t){t?(null!==this.#v&&this.removeParseListener(this.#v),this.#v=new Ge(this),this.addParseListener(this.#v)):(this.removeParseListener(this.#v),this.#v=null)}createTerminalNode(t,e){return new m(e)}createErrorNode(t,e){return new x(e)}},Ye=class extends Be{static{h(this,"ParserInterpreter")}rootContext;overrideDecisionRoot=null;parentContextStack=[];#w=-1;#F=-1;#G=-1;#B=!1;#Y;#_;#V;#W;#X;#K=new ue;#Q;constructor(t,e,s,r,i){super(i),this.#Y=t,this.#_=r,this.#V=s.slice(0),this.#W=e,this.#Q=new V;for(const a of r.states)a instanceof Et&&a.precedenceRuleDecision&&this.#Q.set(a.stateNumber);this.#X=r.decisionToState.map(((t,e)=>new ae(t,e))),this.interpreter=new le(this,r,this.#X,this.#K)}reset(){super.reset(),this.#B=!1,this.overrideDecisionRoot=null}get atn(){return this.#_}get vocabulary(){return this.#W}get ruleNames(){return this.#V}get grammarFileName(){return this.#Y}get atnState(){return this.#_.states[this.state]}parse(t){const e=this.#_.ruleToStartState[t];for(this.rootContext=this.createInterpreterRuleContext(null,W.INVALID_STATE_NUMBER,t),e.isPrecedenceRule?this.enterRecursionRule(this.rootContext,e.stateNumber,t,0):this.enterRule(this.rootContext,e.stateNumber,t);;){const t=this.atnState;if(t.constructor.stateType===W.RULE_STOP){if(this.context?.isEmpty){if(e.isPrecedenceRule){const t=this.context,e=this.parentContextStack.pop();return this.unrollRecursionContexts(e[0]),t}return this.exitRule(),this.rootContext}this.visitRuleStopState(t)}else try{this.visitState(t)}catch(s){if(!(s instanceof Jt))throw s;this.state=this.#_.ruleToStopState[t.ruleIndex].stateNumber,this.errorHandler.reportError(this,s),this.recover(s)}}}addDecisionOverride(t,e,s){this.#w=t,this.#F=e,this.#G=s}get overrideDecision(){return this.#w}get overrideDecisionInputIndex(){return this.#F}enterRecursionRule(t,e,s,r){this.parentContextStack.push([this.context,t.invokingState]),super.enterRecursionRule(t,e,s,r)}visitState(t){let e=1;t instanceof et&&(e=this.visitDecisionState(t));const s=t.transitions[e-1];switch(s.transitionType){case _.EPSILON:if(this.#Q.get(t.stateNumber)&&s.target.constructor.stateType!==W.LOOP_END){const e=this.parentContextStack[this.parentContextStack.length-1],s=this.createInterpreterRuleContext(e[0],e[1],this.context.ruleIndex);this.pushNewRecursionContext(s,this.#_.ruleToStartState[t.ruleIndex].stateNumber,this.context.ruleIndex)}break;case _.ATOM:this.match(s.label.minElement);break;case _.RANGE:case _.SET:case _.NOT_SET:s.matches(this.inputStream.LA(1),a.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case _.WILDCARD:this.matchWildcard();break;case _.RULE:const e=s.target,r=e.ruleIndex,i=this.createInterpreterRuleContext(this.context,t.stateNumber,r);e.isPrecedenceRule?this.enterRecursionRule(i,e.stateNumber,r,s.precedence):this.enterRule(i,s.target.stateNumber,r);break;case _.PREDICATE:const n=s;if(!this.sempred(this.context,n.ruleIndex,n.predIndex))throw new ye(this);break;case _.ACTION:const c=s;this.action(this.context,c.ruleIndex,c.actionIndex);break;case _.PRECEDENCE:if(!this.precpred(this.context,s.precedence)){const t=s.precedence;throw new ye(this,`precpred(_ctx, ${t})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=s.target.stateNumber}visitDecisionState(t){let e=1;if(t.transitions.length>1){this.errorHandler.sync(this);const s=t.decision;s!==this.#w||this.inputStream.index!==this.#F||this.#B?e=this.interpreter.adaptivePredict(this.inputStream,s,this.context):(e=this.#G,this.#B=!0)}return e}createInterpreterRuleContext(t,e,s){return new Fe(s,t,e)}visitRuleStopState(t){if(this.#_.ruleToStartState[t.ruleIndex].isPrecedenceRule){const[t,e]=this.parentContextStack.pop();this.unrollRecursionContexts(t),this.state=e}else this.exitRule();const e=this.#_.states[this.state].transitions[0];this.state=e.followState.stateNumber}recover(t){const e=this.inputStream.index;if(this.errorHandler.recover(this,t),this.inputStream.index===e){const e=t.offendingToken;if(!e)throw new Error("Expected exception to have an offending token");const s=e.tokenSource,r=[s,s?.inputStream??null];if(t instanceof De){const s=t.getExpectedTokens();if(!s)throw new Error("Expected the exception to provide expected tokens");let i=a.INVALID_TYPE;0!==s.length&&(i=s.minElement);const n=this.getTokenFactory().create(r,i,e.text,a.DEFAULT_CHANNEL,-1,-1,e.line,e.column);this.context.addErrorNode(this.createErrorNode(this.context,n))}else{const t=this.getTokenFactory().create(r,a.INVALID_TYPE,e.text,a.DEFAULT_CHANNEL,-1,-1,e.line,e.column);this.context.addErrorNode(this.createErrorNode(this.context,t))}}}recoverInline(){return this.errorHandler.recoverInline(this)}},Ve=class extends Map{static{h(this,"MultiMap")}map(t,e){let s=this.get(t);s||(s=new Array,this.set(t,s)),s.push(e)}getPairs(){const t=new Array;for(const e of this.keys()){const s=this.get(e)??[];for(const r of s)t.push([e,r])}return t}},We=class extends Error{static{h(this,"CannotInvokeStartRuleError")}constructor(t){super(),this.cause=t}},Xe=class{static{h(this,"RuleTagToken")}label;ruleName;bypassTokenType;constructor(t,e,s){this.ruleName=t,this.bypassTokenType=e,this.label=s}get channel(){return a.DEFAULT_CHANNEL}get text(){return null!==this.label?"<"+this.label+":"+this.ruleName+">":"<"+this.ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get column(){return-1}get tokenIndex(){return-1}get start(){return-1}get stop(){return-1}get tokenSource(){return null}get inputStream(){return null}toString(){return this.ruleName+":"+this.bypassTokenType}},Ke=class extends Error{static{h(this,"StartRuleDoesNotConsumeFullPatternError")}},Qe=class extends Pe{static{h(this,"TagChunk")}tag;label;constructor(...t){let e,s;if(1===t.length?s=t[0]:(e=t[0],s=t[1]),super(),!s)throw new Error("tag cannot be null or empty");this.label=e,this.tag=s}toString(){return null!==this.label?this.label+":"+this.tag:this.tag}},qe=class extends Pe{static{h(this,"TextChunk")}text;constructor(t){super(),this.text=t}toString(){return"'"+this.text+"'"}},je=class extends U{static{h(this,"TokenTagToken")}tokenName;label;constructor(t,e,s){super({type:e,source:U.EMPTY_SOURCE}),this.tokenName=t,this.label=s}get text(){return null!==this.label?"<"+this.label+":"+this.tokenName+">":"<"+this.tokenName+">"}toString(){return this.tokenName+":"+this.type}},Je=class{static{h(this,"ParseTreePatternMatcher")}start="<";stop=">";escape="\\";lexer;parser;constructor(t,e){this.lexer=t,this.parser=e}setDelimiters(t,e,s){if(null===t||0===t.length)throw new Error("start cannot be null or empty");if(null===e||0===e.length)throw new Error("stop cannot be null or empty");this.start=t,this.stop=e,this.escape=s}matches(...t){switch(t.length){case 2:{const[e,s]=t,r=new Ve;return null===this.matchImpl(e,s.getPatternTree(),r)}case 3:{const[e,s,r]=t,i=this.compile(s,r);return this.matches(e,i)}default:throw new Error("Invalid number of arguments")}}match(...t){switch(t.length){case 2:{const[e,s]=t,r=new Ve,i=this.matchImpl(e,s.getPatternTree(),r);return new ke(e,s,r,i)}case 3:{const[e,s,r]=t,i=this.compile(s,r);return this.match(e,i)}default:throw new Error("Invalid number of arguments")}}compile(t,e){const s=this.tokenize(t),r=new we(s),i=new Le(r),n=new Ye(this.parser.grammarFileName,this.parser.vocabulary,this.parser.ruleNames,this.parser.getATNWithBypassAlts(),i);let c=null;try{n.errorHandler=new He,c=n.parse(e)}catch(h){if(h instanceof Te){throw h.cause}throw h instanceof Jt?h:h instanceof Error?new We(h):h}if(i.LA(1)!==a.EOF)throw new Ke;return new Me(this,t,e,c)}getLexer(){return this.lexer}getParser(){return this.parser}tokenize(t){const e=this.split(t),s=new Array;for(const r of e)if(r instanceof Qe){const e=r,i=e.tag[0];if(i===i.toUpperCase()){const r=this.parser.getTokenType(e.tag);if(r===a.INVALID_TYPE)throw new Error("Unknown token "+e.tag+" in pattern: "+t);const i=new je(e.tag,r,e.label);s.push(i)}else{if(i!==i.toLowerCase())throw new Error("invalid tag: "+e.tag+" in pattern: "+t);{const r=this.parser.getRuleIndex(e.tag);if(-1===r)throw new Error("Unknown rule "+e.tag+" in pattern: "+t);const i=this.parser.getATNWithBypassAlts().ruleToTokenType[r];s.push(new Xe(e.tag,i,e.label))}}}else{const t=r,e=_e.fromString(t.text);this.lexer.inputStream=e;let i=this.lexer.nextToken();for(;i.type!==a.EOF;)s.push(i),i=this.lexer.nextToken()}return s}split(t){let e=0;const s=t.length,r=new Array,i=new Array,a=new Array;for(;e<s;)e===t.indexOf(this.escape+this.start,e)?e+=this.escape.length+this.start.length:e===t.indexOf(this.escape+this.stop,e)?e+=this.escape.length+this.stop.length:e===t.indexOf(this.start,e)?(i.push(e),e+=this.start.length):e===t.indexOf(this.stop,e)?(a.push(e),e+=this.stop.length):e++;if(i.length>a.length)throw new Error("unterminated tag in pattern: "+t);if(i.length<a.length)throw new Error("missing start tag in pattern: "+t);const n=i.length;for(let c=0;c<n;c++)if(i[c]>=a[c])throw new Error("tag delimiters out of order in pattern: "+t);if(0===n){const e=t.substring(0,s);r.push(new qe(e))}if(n>0&&i[0]>0){const e=t.substring(0,i[0]);r.push(new qe(e))}for(let c=0;c<n;c++){const e=t.substring(i[c]+this.start.length,a[c]);let s,h=e;const o=e.indexOf(":");if(o>=0&&(s=e.substring(0,o),h=e.substring(o+1,e.length)),r.push(new Qe(s,h)),c+1<n){const e=t.substring(a[c]+this.stop.length,i[c+1]);r.push(new qe(e))}}if(n>0){const e=a[n-1]+this.stop.length;if(e<s){const i=t.substring(e,s);r.push(new qe(i))}}for(let c=0;c<r.length;c++){const t=r[c];if(t instanceof qe){const e=t,s=e.text.replace(this.escape,"");s.length<e.text.length&&(r[c]=new qe(s))}}return r}matchImpl(t,e,s){if(t instanceof m&&e instanceof m){const r=t,i=e;let a;if(r.getSymbol().type===i.getSymbol().type)if(i.getSymbol()instanceof je){const e=i.getSymbol();s.map(e.tokenName,t),void 0!==e.label&&s.map(e.label,t)}else r.getText()===i.getText()||a||(a=r);else a||(a=r);return a}if(t instanceof P&&e instanceof P){let r;const i=this.getRuleTagToken(e);if(i)return t.ruleIndex===e.ruleIndex?(s.map(i.ruleName,t),i.label&&s.map(i.label,t)):r||(r=t),r;if(t.getChildCount()!==e.getChildCount())return r||(r=t),r;const a=t.getChildCount();for(let n=0;n<a;n++){const r=this.matchImpl(t.getChild(n),e.getChild(n),s);if(r)return r}return r}return t}getRuleTagToken(t){if(t instanceof P&&1===t.getChildCount()&&t.getChild(0)instanceof m){const e=t.getChild(0);if(e.getSymbol()instanceof Xe)return e.getSymbol()}}},ze=(class extends Xt{static{h(this,"DiagnosticErrorListener")}exactOnly;constructor(t){super(),this.exactOnly=t??!0}reportAmbiguity=(t,e,s,r,i,a,n)=>{if(this.exactOnly&&!i)return;const c=this.getDecisionDescription(t,e),h=this.getConflictingAlts(a,n),o=t.tokenStream?.getTextFromInterval(E.of(s,r)),l=`reportAmbiguity d=${c}: ambigAlts=${h}, input='${o}'`;t.notifyErrorListeners(l,null,null)};reportAttemptingFullContext=(t,e,s,r,i,a)=>{const n=this.getDecisionDescription(t,e),c=t.tokenStream?.getTextFromInterval(E.of(s,r)),h=`reportAttemptingFullContext d=${n}, input='${c}'`;t.notifyErrorListeners(h,null,null)};reportContextSensitivity=(t,e,s,r,i,a)=>{const n=this.getDecisionDescription(t,e),c=t.tokenStream?.getTextFromInterval(E.of(s,r)),h=`reportContextSensitivity d=${n}, input='${c}'`;t.notifyErrorListeners(h,null,null)};getDecisionDescription=(t,e)=>{const s=e.decision,r=e.atnStartState.ruleIndex,i=t.ruleNames;if(r<0||r>=i.length)return s.toString();const a=i[r];return 0===a.length?s.toString():`${s} (${a})`};getConflictingAlts=(t,e)=>{if(t)return t;const s=new V;for(let r=0;r<e.configs.length;r++)s.set(e.configs[r].alt);return s}},class extends Zt{static{h(this,"LexerInterpreter")}#Y;#_;#V;#q;#j;#W;#X;#K=new ue;constructor(t,e,s,r,i,a,n){if(super(n),a.grammarType!==z.LEXER)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this.#Y=t,this.#_=a,this.#V=s.slice(0),this.#q=r.slice(0),this.#j=i.slice(0),this.#W=e,this.#X=a.decisionToState.map(((t,e)=>new ae(t,e))),this.interpreter=new ne(this,a,this.#X,this.#K)}get atn(){return this.#_}get grammarFileName(){return this.#Y}get ruleNames(){return this.#V}get channelNames(){return this.#q}get modeNames(){return this.#j}get vocabulary(){return this.#W}},class t{static{h(this,"TokenStreamRewriter")}static DEFAULT_PROGRAM_NAME="default";static PROGRAM_INIT_SIZE=100;static MIN_TOKEN_INDEX=0;tokens;programs=new Map;lastRewriteTokenIndexes;constructor(t){this.tokens=t}getTokenStream(){return this.tokens}insertAfter(e,s,r=t.DEFAULT_PROGRAM_NAME){let i;i="number"===typeof e?e:e.tokenIndex;const a=this.getProgram(r),n=new $e(this.tokens,i,a.length,s);a.push(n)}insertBefore(e,s,r=t.DEFAULT_PROGRAM_NAME){let i;i="number"===typeof e?e:e.tokenIndex;const a=this.getProgram(r),n=new Ze(this.tokens,i,a.length,s);a.push(n)}replaceSingle(e,s,r=t.DEFAULT_PROGRAM_NAME){this.replace(e,e,s,r)}replace(e,s,r,i=t.DEFAULT_PROGRAM_NAME){if("number"!==typeof e&&(e=e.tokenIndex),"number"!==typeof s&&(s=s.tokenIndex),e>s||e<0||s<0||s>=this.tokens.size)throw new RangeError(`replace: range invalid: ${e}..${s}(size=${this.tokens.size})`);const a=this.getProgram(i),n=new ts(this.tokens,e,s,a.length,r);a.push(n)}delete(e,s,r=t.DEFAULT_PROGRAM_NAME){null==s&&(s=e),this.replace(e,s,null,r)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){const e=[];return this.programs.set(t,e),e}getText(e,s=t.DEFAULT_PROGRAM_NAME){let r;r=e instanceof E?e:new E(0,this.tokens.size-1),"string"===typeof e&&(s=e);const i=this.programs.get(s);let n=r.start,c=r.stop;if(c>this.tokens.size-1&&(c=this.tokens.size-1),n<0&&(n=0),null==i||0===i.length)return this.tokens.getTextFromInterval(new E(n,c));const h=[],o=this.reduceToSingleOperationPerIndex(i);let l=n;for(;l<=c&&l<this.tokens.size;){const t=o.get(l);o.delete(l);const e=this.tokens.get(l);null==t?(e.type!==a.EOF&&h.push(String(e.text)),l++):l=t.execute(h)}if(c===this.tokens.size-1)for(const t of o.values())t&&t.index>=this.tokens.size-1&&h.push(String(t.text));return h.join("")}reduceToSingleOperationPerIndex(t){for(let s=0;s<t.length;s++){const e=t[s];if(null==e)continue;if(!(e instanceof ts))continue;const r=e,i=this.getKindOfOps(t,Ze,s);for(const s of i)s.index===r.index?(t[s.instructionIndex]=null,r.text=String(s.text)+(null!=r.text?r.text.toString():"")):s.index>r.index&&s.index<=r.lastIndex&&(t[s.instructionIndex]=null);const a=this.getKindOfOps(t,ts,s);for(const s of a){if(s.index>=r.index&&s.lastIndex<=r.lastIndex){t[s.instructionIndex]=null;continue}const e=s.lastIndex<r.index||s.index>r.lastIndex;if(null!=s.text||null!=r.text||e){if(!e)throw new Error(`replace op boundaries of ${r} overlap with previous ${s}`)}else t[s.instructionIndex]=null,r.index=Math.min(s.index,r.index),r.lastIndex=Math.max(s.lastIndex,r.lastIndex)}}for(let s=0;s<t.length;s++){const e=t[s];if(null==e)continue;if(!(e instanceof Ze))continue;const r=e,i=this.getKindOfOps(t,Ze,s);for(const s of i)s.index===r.index&&(s instanceof $e?(r.text=this.catOpText(s.text,r.text),t[s.instructionIndex]=null):s instanceof Ze&&(r.text=this.catOpText(r.text,s.text),t[s.instructionIndex]=null));const a=this.getKindOfOps(t,ts,s);for(const n of a)if(r.index!==n.index){if(r.index>=n.index&&r.index<=n.lastIndex)throw new Error(`insert op ${r} within boundaries of previous ${n}`)}else n.text=this.catOpText(r.text,n.text),t[s]=null}const e=new Map;for(const s of t)if(null!=s){if(null!=e.get(s.index))throw new Error("should only be one op per index");e.set(s.index,s)}return e}catOpText(t,e){let s="",r="";return null!=t&&(s=t.toString()),null!=e&&(r=e.toString()),s+r}getKindOfOps(t,e,s){return t.slice(0,s).filter((t=>t&&t instanceof e))}},class{static{h(this,"RewriteOperation")}instructionIndex;index;text;tokens;constructor(t,e,s,r){this.tokens=t,this.instructionIndex=s,this.index=e,this.text=void 0===r?"":r}execute(t){return this.index}toString(){return"<RewriteOperation@"+this.tokens.get(this.index)+':"'+this.text+'">'}}),Ze=class extends ze{static{h(this,"InsertBeforeOp")}constructor(t,e,s,r){super(t,e,s,r)}execute(t){return this.text&&t.push(this.text.toString()),this.tokens.get(this.index).type!==a.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}toString(){return"<InsertBeforeOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}},$e=class extends Ze{static{h(this,"InsertAfterOp")}constructor(t,e,s,r){super(t,e+1,s,r)}toString(){return"<InsertAfterOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}},ts=class extends ze{static{h(this,"ReplaceOp")}lastIndex;constructor(t,e,s,r,i){super(t,e,r,i),this.lastIndex=s}execute(t){return this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}},es=Object.defineProperty,ss=(t,e)=>es(t,"name",{value:e,configurable:!0}),rs=class{static{ss(this,"BaseSymbol")}name;context;modifiers=new Set;visibility=0;#a;constructor(t=""){this.name=t}get parent(){return this.#a}get firstSibling(){if(this.#a)return this.#a?.firstChild}get previousSibling(){if(this.#a)return this.#a?this.#a.previousSiblingOf(this):this}get nextSibling(){return this.#a?.nextSiblingOf(this)}get lastSibling(){return this.#a?.lastChild}get next(){return this.#a?.nextOf(this)}get root(){let t=this.#a;for(;t;){if(!t.parent||this.isSymbolTable(t.parent))return t;t=t.parent}return t}get symbolTable(){if(this.isSymbolTable(this))return this;let t=this.#a;for(;t;){if(this.isSymbolTable(t))return t;t=t.parent}}get symbolPath(){const t=[];let e=this;for(;e&&(t.push(e),e.parent);)e=e.parent;return t}setParent(t){this.#a=t}removeFromParent(){this.#a?.removeSymbol(this),this.#a=void 0}async resolve(t,e=!1){return this.#a?.resolve(t,e)}resolveSync(t,e=!1){return this.#a?.resolveSync(t,e)}getParentOfType(t){let e=this.#a;for(;e;){if(e instanceof t)return e;e=e.parent}}qualifiedName(t=".",e=!1,s=!1){if(!s&&0===this.name.length)return"";let r=0===this.name.length?"<anonymous>":this.name,i=this.#a;for(;i&&((s||i.name.length>0)&&(r=(0===i.name.length?"<anonymous>":i.name)+t+r),e&&i.parent);)i=i.parent;return r}isSymbolTable(t){return void 0!==t.info}},is=(class extends rs{static{ss(this,"ArrayType")}elementType;size;referenceKind;constructor(t,e,s,r=0){super(t),this.referenceKind=e,this.elementType=s,this.size=r}get baseTypes(){return[]}get kind(){return 9}get reference(){return this.referenceKind}},class extends Error{static{ss(this,"DuplicateSymbolError")}}),as=class t extends rs{static{ss(this,"ScopedSymbol")}#J=[];#z=new Map;constructor(t=""){super(t)}get directScopes(){return this.getSymbolsOfType(t)}get children(){return this.#J}get firstChild(){if(this.#J.length>0)return this.#J[0]}get lastChild(){if(this.#J.length>0)return this.#J[this.#J.length-1]}clear(){this.#J=[],this.#z.clear()}addSymbol(t){t.removeFromParent();const e=this.symbolTable,s=this.#z.get(t.name);if(e&&e.options.allowDuplicateSymbols)this.#z.set(t.name,void 0===s?1:s+1);else{if(void 0!==s)throw new is("Attempt to add duplicate symbol '"+(t.name??"<anonymous>")+"'");this.#z.set(t.name,1);if(this.#J.indexOf(t)>-1)throw new is("Attempt to add duplicate symbol '"+(t.name??"<anonymous>")+"'")}this.#J.push(t),t.setParent(this)}removeSymbol(t){const e=this.#J.indexOf(t);if(e>-1){this.#J.splice(e,1),t.setParent(void 0);const s=this.#z.get(t.name);void 0!==s&&(1===s?this.#z.delete(t.name):this.#z.set(t.name,s-1))}}async getNestedSymbolsOfType(e){const s=[],r=[];this.#J.forEach((i=>{i instanceof e&&s.push(i),i instanceof t&&r.push(i.getNestedSymbolsOfType(e))}));return(await Promise.all(r)).forEach((t=>{s.push(...t)})),s}getNestedSymbolsOfTypeSync(e){const s=[];return this.#J.forEach((r=>{r instanceof e&&s.push(r),r instanceof t&&s.push(...r.getNestedSymbolsOfTypeSync(e))})),s}async getAllNestedSymbols(e){const s=[],r=[];this.#J.forEach((i=>{e&&i.name!==e||s.push(i),i instanceof t&&r.push(i.getAllNestedSymbols(e))}));return(await Promise.all(r)).forEach((t=>{s.push(...t)})),s}getAllNestedSymbolsSync(e){const s=[];return this.#J.forEach((r=>{e&&r.name!==e||s.push(r),r instanceof t&&s.push(...r.getAllNestedSymbolsSync(e))})),s}getSymbolsOfType(t){return new Promise((e=>{const s=[];this.#J.forEach((e=>{e instanceof t&&s.push(e)})),e(s)}))}async getAllSymbols(t,e=!1){const s=[];for(const r of this.#J)if(r instanceof t&&s.push(r),this.isNamespace(r)){const e=await r.getAllSymbols(t,!0);s.push(...e)}if(!e&&this.parent){const e=await this.getAllSymbols(t,!0);s.push(...e)}return s}getAllSymbolsSync(t,e=!1){const s=[];for(const r of this.#J)if(r instanceof t&&s.push(r),this.isNamespace(r)){const e=r.getAllSymbolsSync(t,!0);s.push(...e)}if(!e&&this.parent){const e=this.getAllSymbolsSync(t,!0);s.push(...e)}return s}async resolve(t,e=!1){return new Promise((s=>{for(const e of this.#J)if(e.name===t)return void s(e);e||!this.parent?s(void 0):s(this.parent.resolve(t,!1))}))}resolveSync(t,e=!1){for(const s of this.#J)if(s.name===t)return s;if(!e&&this.parent)return this.parent.resolveSync(t,!1)}symbolFromPath(e,s="."){const r=e.split(s);let i=0;r[0]!==this.name&&0!==r[0].length||++i;let a=this;for(;i<r.length;){if(!(a instanceof t))return;const e=a.children.find((t=>t.name===r[i]));if(!e)return;a=e,++i}return a}indexOfChild(t){return this.#J.findIndex((e=>e===t))}nextSiblingOf(t){const e=this.indexOfChild(t);if(!(-1===e||e>=this.#J.length-1))return this.#J[e+1]}previousSiblingOf(t){const e=this.indexOfChild(t);if(!(e<1))return this.#J[e-1]}nextOf(e){if(!e.parent)return;if(e.parent!==this)return e.parent.nextOf(e);if(e instanceof t&&e.children.length>0)return e.children[0];const s=this.nextSiblingOf(e);return s||this.parent.nextOf(this)}isNamespace(t){return void 0!==t.inline&&void 0!==t.attributes}},ns=(class extends as{static{ss(this,"BlockSymbol")}},class extends rs{static{ss(this,"TypedSymbol")}type;constructor(t,e){super(t),this.type=e}}),cs=class extends ns{static{ss(this,"VariableSymbol")}value;constructor(t,e,s){super(t,s),this.value=e}},hs=class extends cs{static{ss(this,"FieldSymbol")}setter;getter},os=class extends cs{static{ss(this,"ParameterSymbol")}},Es=class extends as{static{ss(this,"RoutineSymbol")}returnType;constructor(t,e){super(t),this.returnType=e}getVariables(t=!0){return this.getSymbolsOfType(cs)}getParameters(t=!0){return this.getSymbolsOfType(os)}},ls=class extends Es{static{ss(this,"MethodSymbol")}methodFlags=0},us=(class extends as{static{ss(this,"ClassSymbol")}isStruct=!1;reference=0;extends;implements;constructor(t,e,s){super(t),this.extends=e,this.implements=s}get baseTypes(){return this.extends}get kind(){return 7}getMethods(t=!1){return this.getSymbolsOfType(ls)}getFields(t=!1){return this.getSymbolsOfType(hs)}},class t{static{ss(this,"FundamentalType")}static integerType=new t("int",1,3);static floatType=new t("float",2,3);static stringType=new t("string",4,3);static boolType=new t("bool",6,3);name;typeKind;referenceKind;constructor(t,e=0,s=0){this.name=t,this.typeKind=e,this.referenceKind=s}get baseTypes(){return[]}get kind(){return this.typeKind}get reference(){return this.referenceKind}},class extends as{static{ss(this,"InterfaceSymbol")}reference=0;extends;constructor(t,e){super(t),this.extends=e}get baseTypes(){return this.extends}get kind(){return 8}getMethods(t=!1){return this.getSymbolsOfType(ls)}getFields(t=!1){return this.getSymbolsOfType(hs)}},class extends ns{static{ss(this,"LiteralSymbol")}value;constructor(t,e,s){super(t,s),this.value=e}},class extends as{static{ss(this,"NamespaceSymbol")}inline;attributes;constructor(t,e=!1,s=[]){super(t),this.inline=e,this.attributes=s}}),Rs=(class extends rs{static{ss(this,"TypeAlias")}targetType;constructor(t,e){super(t),this.targetType=e}get baseTypes(){return[this.targetType]}get kind(){return 12}get reference(){return 0}},ss(((t,e)=>{if(!t||!e)return[];let s;for(s=0;s<Math.min(t.length,e.length)&&t[s]===e[s];s++);return t.slice(0,s)}),"longestCommonPrefix")),_s=class{static{ss(this,"CandidatesCollection")}tokens=new Map;rules=new Map},Ts=class{static{ss(this,"FollowSetWithPath")}intervals;path=[];following=[]},As=class t{static{ss(this,"CodeCompletionCore")}static followSetsByATN=new Map;static atnStateTypeMap=["invalid","basic","rule start","block start","plus block start","star block start","token start","rule stop","block end","star loop back","star loop entry","plus loop back","loop end"];showResult=!1;showDebugOutput=!1;debugOutputWithTransitions=!1;showRuleStack=!1;ignoredTokens;preferredRules;translateRulesTopDown=!1;parser;atn;vocabulary;ruleNames;tokens;precedenceStack;tokenStartIndex=0;statesProcessed=0;shortcutMap=new Map;candidates=new _s;constructor(t){this.parser=t,this.atn=t.atn,this.vocabulary=t.vocabulary,this.ruleNames=t.ruleNames,this.ignoredTokens=new Set,this.preferredRules=new Set}collectCandidates(t,e){this.shortcutMap.clear(),this.candidates.rules.clear(),this.candidates.tokens.clear(),this.statesProcessed=0,this.precedenceStack=[],this.tokenStartIndex=e?.start?e.start.tokenIndex:0;const s=this.parser.tokenStream;this.tokens=[];let r=this.tokenStartIndex;for(;;){const e=s.get(r++);if(!e)break;if(e.channel===a.DEFAULT_CHANNEL&&(this.tokens.push(e),e.tokenIndex>=t||e.type===a.EOF))break;if(e.type===a.EOF)break}const i=e?e.ruleIndex:0;if(this.processRule(this.atn.ruleToStartState[i],0,[],0,0),this.showResult){console.log(`States processed: ${this.statesProcessed}`),console.log("\n\nCollected rules:\n");for(const e of this.candidates.rules){let t="";for(const s of e[1].ruleList)t+=this.ruleNames[s]+" ";console.log(this.ruleNames[e[0]]+", path: ",t)}const t=new Set;for(const e of this.candidates.tokens){let s=this.vocabulary.getDisplayName(e[0])??"";for(const t of e[1])s+=" "+this.vocabulary.getDisplayName(t);t.add(s)}console.log("\n\nCollected tokens:\n");for(const e of t)console.log(e);console.log("\n\n")}return this.candidates}checkPredicate(t){return t.getPredicate().evaluate(this.parser,P.empty)}translateStackToRuleIndex(t){if(0===this.preferredRules.size)return!1;if(this.translateRulesTopDown){for(let e=t.length-1;e>=0;e--)if(this.translateToRuleIndex(e,t))return!0}else for(let e=0;e<t.length;e++)if(this.translateToRuleIndex(e,t))return!0;return!1}translateToRuleIndex(t,e){const{ruleIndex:s,startTokenIndex:r}=e[t];if(this.preferredRules.has(s)){const i=e.slice(0,t).map((({ruleIndex:t})=>t));let a=!0;for(const t of this.candidates.rules)if(t[0]===s&&t[1].ruleList.length===i.length&&i.every(((e,s)=>e===t[1].ruleList[s]))){a=!1;break}return a&&(this.candidates.rules.set(s,{startTokenIndex:r,ruleList:i}),this.showDebugOutput&&console.log("=====> collected: ",this.ruleNames[s])),!0}return!1}getFollowingTokens(t){const e=[],s=[t.target];for(;s.length>0;){const t=s.pop();t&&t.transitions.forEach((t=>{if(t.transitionType===_.ATOM)if(t.isEpsilon)s.push(t.target);else{const r=t.label.toArray();1!==r.length||this.ignoredTokens.has(r[0])||(e.push(r[0]),s.push(t.target))}}))}return e}determineFollowSets(t,e){const s=[],r=this.collectFollowSets(t,e,s,[],[]),i=new R;for(const a of s)i.addSet(a.intervals);return{sets:s,isExhaustive:r,combined:i}}collectFollowSets(t,e,s,r,i){if(r.find((e=>e===t)))return!0;if(r.push(t),t===e||t.constructor.stateType===W.RULE_STOP)return r.pop(),!1;let n=!0;for(const c of t.transitions)if(c.transitionType===_.RULE){const t=c;if(-1!==i.indexOf(t.target.ruleIndex))continue;i.push(t.target.ruleIndex);const a=this.collectFollowSets(c.target,e,s,r,i);if(i.pop(),!a){const a=this.collectFollowSets(t.followState,e,s,r,i);n&&=a}}else if(c.transitionType===_.PREDICATE){if(this.checkPredicate(c)){const t=this.collectFollowSets(c.target,e,s,r,i);n&&=t}}else if(c.isEpsilon){const t=this.collectFollowSets(c.target,e,s,r,i);n&&=t}else if(c.transitionType===_.WILDCARD){const t=new Ts;t.intervals=R.of(a.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType),t.path=i.slice(),s.push(t)}else{let t=c.label;if(t&&t.length>0){c.transitionType===_.NOT_SET&&(t=t.complement(a.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));const e=new Ts;e.intervals=t??new R,e.path=i.slice(),e.following=this.getFollowingTokens(c),s.push(e)}}return r.pop(),n}processRule(e,s,r,i,n){let c=this.shortcutMap.get(e.ruleIndex);if(c){if(c.has(s))return this.showDebugOutput&&console.log("=====> shortcut"),c.get(s)}else c=new Map,this.shortcutMap.set(e.ruleIndex,c);const h=new Set;let o=t.followSetsByATN.get(this.parser.constructor.name);o||(o=new Map,t.followSetsByATN.set(this.parser.constructor.name,o));let E=o.get(e.stateNumber);if(!E){const t=this.atn.ruleToStopState[e.ruleIndex];E=this.determineFollowSets(e,t),o.set(e.stateNumber,E)}const l=this.tokens[s].tokenIndex;if(r.push({startTokenIndex:l,ruleIndex:e.ruleIndex}),s>=this.tokens.length-1){if(this.preferredRules.has(e.ruleIndex))this.translateStackToRuleIndex(r);else for(const t of E.sets){const e=r.slice(),s=t.path.map((t=>({startTokenIndex:l,ruleIndex:t})));if(e.push(...s),!this.translateStackToRuleIndex(e))for(const r of t.intervals.toArray())this.ignoredTokens.has(r)||(this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(r)),this.candidates.tokens.has(r)?this.candidates.tokens.get(r)!==t.following&&this.candidates.tokens.set(r,[]):this.candidates.tokens.set(r,t.following))}return E.isExhaustive||h.add(s),r.pop(),h}{const t=this.tokens[s].type;if(E.isExhaustive&&!E.combined.contains(t))return r.pop(),h}e.isPrecedenceRule&&this.precedenceStack.push(i);const u=[];let T;for(u.push({state:e,tokenListIndex:s});u.length>0;){T=u.pop(),++this.statesProcessed;const t=this.tokens[T.tokenListIndex].type,e=T.tokenListIndex>=this.tokens.length-1;if(this.showDebugOutput&&(this.printDescription(n,T.state,this.generateBaseDescription(T.state),T.tokenListIndex),this.showRuleStack&&this.printRuleState(r)),T.state.constructor.stateType===W.RULE_STOP){h.add(T.tokenListIndex);continue}const s=T.state.transitions;for(const i of s)switch(i.transitionType){case _.RULE:{const t=i,e=this.processRule(i.target,T.tokenListIndex,r,t.precedence,n+1);for(const s of e)u.push({state:i.followState,tokenListIndex:s});break}case _.PREDICATE:this.checkPredicate(i)&&u.push({state:i.target,tokenListIndex:T.tokenListIndex});break;case _.PRECEDENCE:i.precedence>=this.precedenceStack[this.precedenceStack.length-1]&&u.push({state:i.target,tokenListIndex:T.tokenListIndex});break;case _.WILDCARD:if(e){if(!this.translateStackToRuleIndex(r))for(const t of R.of(a.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType).toArray())this.ignoredTokens.has(t)||this.candidates.tokens.set(t,[])}else u.push({state:i.target,tokenListIndex:T.tokenListIndex+1});break;default:{if(i.isEpsilon){u.push({state:i.target,tokenListIndex:T.tokenListIndex});continue}let s=i.label;if(s&&s.length>0)if(i.transitionType===_.NOT_SET&&(s=s.complement(a.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),e){if(!this.translateStackToRuleIndex(r)){const t=s.toArray(),e=1===t.length;for(const s of t)if(!this.ignoredTokens.has(s)){this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(s));const t=e?this.getFollowingTokens(i):[];this.candidates.tokens.has(s)?this.candidates.tokens.set(s,Rs(t,this.candidates.tokens.get(s))):this.candidates.tokens.set(s,t)}}}else s.contains(t)&&(this.showDebugOutput&&console.log("=====> consumed: ",this.vocabulary.getDisplayName(t)),u.push({state:i.target,tokenListIndex:T.tokenListIndex+1}))}}}return r.pop(),e.isPrecedenceRule&&this.precedenceStack.pop(),c.set(s,h),h}generateBaseDescription(e){return`[${e.stateNumber===W.INVALID_STATE_NUMBER?"Invalid":e.stateNumber} ${t.atnStateTypeMap[e.constructor.stateType]}] in ${this.ruleNames[e.ruleIndex]}`}printDescription(e,s,r,i){const a=" ".repeat(e);let n=a,c="";if(this.debugOutputWithTransitions)for(const h of s.transitions){let e="";const s=h.label?h.label.toArray():[];if(s.length>2)e=this.vocabulary.getDisplayName(s[0])+" .. "+this.vocabulary.getDisplayName(s[s.length-1]);else for(const t of s)e.length>0&&(e+=", "),e+=this.vocabulary.getDisplayName(t);0===e.length&&(e="\u03b5");const r=t.atnStateTypeMap[h.target.constructor.stateType];c+=`\n${a}\t(${e}) [${h.target.stateNumber} ${r}] in ${this.ruleNames[h.target.ruleIndex]}`}i>=this.tokens.length-1?n+=`<<${this.tokenStartIndex+i}>> `:n+=`<${this.tokenStartIndex+i}> `,console.log(n+"Current state: "+r+c)}printRuleState(t){if(0!==t.length)for(const e of t)console.log(this.ruleNames[e.ruleIndex]);else console.log("<empty stack>")}},Ss=class extends as{constructor(t,e){super(t),this.options=e}static{ss(this,"SymbolTable")}dependencies=new Set;get info(){return{dependencyCount:this.dependencies.size,symbolCount:this.children.length}}clear(){super.clear(),this.dependencies.clear()}addDependencies(...t){t.forEach((t=>{this.dependencies.add(t)}))}removeDependency(t){this.dependencies.has(t)&&this.dependencies.delete(t)}addNewSymbolOfType(t,e,...s){const r=new t(...s);return e&&e!==this?e.addSymbol(r):this.addSymbol(r),r}async addNewNamespaceFromPath(t,e,s="."){const r=e.split(s);let i=0,a=void 0===t?this:t;for(;i<r.length-1;){let t=await a.resolve(r[i],!0);void 0===t&&(t=this.addNewSymbolOfType(us,a,r[i])),a=t,++i}return this.addNewSymbolOfType(us,a,r[r.length-1])}addNewNamespaceFromPathSync(t,e,s="."){const r=e.split(s);let i=0,a=void 0===t?this:t;for(;i<r.length-1;){let t=a.resolveSync(r[i],!0);void 0===t&&(t=this.addNewSymbolOfType(us,a,r[i])),a=t,++i}return this.addNewSymbolOfType(us,a,r[r.length-1])}async getAllSymbols(t,e=!1){const s=await super.getAllSymbols(t,e);if(!e){(await Promise.all([...this.dependencies].map((s=>s.getAllSymbols(t,e))))).forEach((t=>{s.push(...t)}))}return s}getAllSymbolsSync(t,e=!1){const s=super.getAllSymbolsSync(t,e);return e||this.dependencies.forEach((r=>{s.push(...r.getAllSymbolsSync(t,e))})),s}async symbolWithContext(t){const e=ss((s=>{if(s.context===t)return s;if(s instanceof as)for(const t of s.children){const s=e(t);if(s)return s}}),"findRecursive");let s=await this.getAllSymbols(rs);for(const r of s){const t=e(r);if(t)return t}for(const r of this.dependencies){s=await r.getAllSymbols(rs);for(const t of s){const s=e(t);if(s)return s}}}symbolWithContextSync(t){const e=ss((s=>{if(s.context===t)return s;if(s instanceof as)for(const t of s.children){const s=e(t);if(s)return s}}),"findRecursive");let s=this.getAllSymbolsSync(rs);for(const r of s){const t=e(r);if(t)return t}for(const r of this.dependencies){s=r.getAllSymbolsSync(rs);for(const t of s){const s=e(t);if(s)return s}}}async resolve(t,e=!1){let s=await super.resolve(t,e);if(!s&&!e)for(const r of this.dependencies)if(s=await r.resolve(t,!1),s)return s;return s}resolveSync(t,e=!1){let s=super.resolveSync(t,e);if(!s&&!e)for(const r of this.dependencies)if(s=r.resolveSync(t,!1),s)return s;return s}},ds=Object.defineProperty,Ls=(t,e)=>ds(t,"name",{value:e,configurable:!0}),Cs=/[\w]$/,Ns=/\r\n|\n|\r/g;function Is(t,e){let s=t.column,r=t.column+(t.text?.length||0),i=t.line;return{startColumn:s,startLine:i,endColumn:r,endLine:t.type===e&&t.text?i+(t.text.match(Ns)?.length||0):i}}function Os(t,e,s,r){let i=e.column-1;for(let a=0;a<t.size;a++){let n=t.get(a),{startColumn:c,startLine:h,endColumn:o,endLine:E}=Is(n,s);if(E>e.line||h===e.line&&o>i)return r?a:a>0&&h===e.line&&c===i&&Cs.test(t.get(a-1).text||"")?a-1:t.get(a).type===s?a+1:a}}function ps(t,e){let s=t.split(Ns),r=t.match(Ns),i="";r&&(i=r[0]);let a=0;return s.reduce(((t,s,r)=>(e.line-1===r&&(a=t.length?t.length+e.column:e.column-1),0===r?s:t+i+s)),""),a}function gs(t,e){return t===e.startTokenIndex}function ms(t,e){let s=t.slice(0,e-1),r=t.slice(e-1),i=s.lastIndexOf(";"),a=r.indexOf(";"),n=i>-1?i+1:0,c=a>-1?a+s.length:t.length;return{statement:t.slice(n,c),cursorIndex:e-n}}Ls(Is,"getTokenPosition"),Ls(Os,"findCursorTokenIndex"),Ls(ps,"getCursorIndex"),Ls(gs,"isStartingToWriteRule"),Ls(ms,"getCurrentStatement");var xs="(\\s|\r\n|\n|\r)+",Us=new RegExp(`^(${xs})?explain${xs}$`),fs=new RegExp(`^(${xs})?\\S+${xs}`);function Ps(t,e){let s=ps(t,e),r=ms(t,s),i=r.statement.slice(0,r.cursorIndex).toLowerCase();return!(0!==s&&i.match(fs)&&!i.match(Us))}function ks(t,e,s){let r=new t(_e.fromString(s)),i=new e(new Le(r));return i.removeErrorListeners(),i}function Ms(t,e){return new t(_e.fromString(e))}Ls(Ps,"shouldSuggestTemplates"),Ls(ks,"createParser"),Ls(Ms,"createLexer");var Ds,ys=class{static{Ls(this,"SqlErrorListener")}constructor(t){this.errors=[],this.whitespaceToken=t}syntaxError(t,e,s,r,i){if(e){let t=Is(e,this.whitespaceToken);this.errors.push({message:i,...t})}else this.errors.push({message:i,startLine:s,startColumn:r,endLine:s,endColumn:r})}reportAmbiguity(){}reportAttemptingFullContext(){}reportContextSensitivity(){}},vs=((Ds=vs||{}).Autocomplete="autocomplete",Ds.Tokens="tokens",Ds);function bs(t,e,s,r,i,a,n,c){let h=ks(e,s,t),{tokenStream:o}=h,E=new ys(r);h.removeErrorListeners(),h.addErrorListener(E),c(h);let l=ws(h,o,n);return l.length?{statementPositions:l,strategy:"autocomplete"}:{statementPositions:Hs(o,i,a),strategy:"tokens"}}function Hs(t,e,s){let r=0,i=!1,a=t.size-2,n=[];for(let c=0;c<=a;c++){let h=t.get(c),o=h.type===s,E=e.includes(h.type);if(i||!E)if(i||(i=!0,r=h.start),o&&r===h.start)i=!1;else{if(o||c===a){let t=h.text?.length||0,e={startIndex:r,endIndex:h.start+t};n.push(e)}o&&(i=!1)}}return n}function ws(t,e,s){let r=new As(t);r.preferredRules=new Set([s]);let i=e.get(e.size-2),a=[];for(;i?.tokenIndex>0;){let t,{rules:n}=r.collectCandidates(i.tokenIndex);for(let[r,{startTokenIndex:i}]of n)if(r===s){t=e.get(i);break}if(!t)break;t.tokenIndex>i.tokenIndex?i=e.get(i.tokenIndex-1):(a.push({startIndex:t.start,endIndex:i.start+(i.text?.length||0)}),i=e.get(t.tokenIndex-1))}return a.reverse(),a}Ls(bs,"extractStatementPositionsFromQuery"),Ls(Hs,"extractStatementsUsingTokens"),Ls(ws,"extractStatementsUsingAutocomplete");function Fs(t,e,s,r){let i=Ms(t,r),a=new ys(s);i.removeErrorListeners(),i.addErrorListener(a);let n=[],c=!1;do{let t=i.nextToken();if(null===t||-1===t.type)c=!0;else{let s=e[t.type];s&&n.push({ruleName:s,startIndex:t.start,column:t.column,line:t.line,type:t.type,text:t.text})}}while(!c);return{tokens:n,errors:a.errors}}function Gs(t,e,s,r,i){let a=ks(t,e,i),n=new ys(s);return a.removeErrorListeners(),a.addErrorListener(n),r(a),{errors:n.errors}}Ls(Fs,"tokenize"),Ls(Gs,"parseQueryWithoutCursor");var Bs=/^'(.*)'$/;function Ys(t,e,s,r,i,a,n,c,h,o){let E=ks(t,e,c),{tokenStream:l}=E,u=new ys(s);E.removeErrorListeners(),E.addErrorListener(u),a(E);let R=new As(E);R.ignoredTokens=r,R.preferredRules=i;let _=Os(l,h,s);if(void 0===_)throw new Error(`Could not find cursor token index for line: ${h.line}, column: ${h.column}`);let T=[],{tokens:A,rules:S}=R.collectCandidates(_,o);return A.forEach(((t,e)=>{let s=E.vocabulary.getLiteralName(e)?.replace(Bs,"$1")||E.vocabulary.getSymbolicName(e);if(!s)throw new Error(`Could not get name for token ${e}`);T.push({value:s})})),n({errors:u.errors,suggestKeywords:T},S,l,_,h,c)}function Vs(t){let e,s=t.split(Ns);for(let E=0;E<s.length;E++)if(s[E]?.includes("|")){e=E;break}if(void 0===e)throw new Error(`Cursor not provided for query ${t}`);let r=s[e];if(!r)throw new Error(`Line ${e} not found`);let[i,a,...n]=t.split("|"),[c,h,...o]=r.split("|");if(n.length>0||o.length>0)throw new Error(`Multiple cursors not allowed, but present in query ${t}`);if(void 0===i||void 0===a||void 0===c||void 0===h)throw new Error(`Cursor not provided for query ${t}`);return[i+a,{line:e+1,column:c.length+1}]}Ls(Ys,"parseQuery"),Ls(Vs,"separateQueryAndCursor");var Ws=class extends ns{static{Ls(this,"TableSymbol")}constructor(t,e,s){super(t,s),this.name=t,this.alias=e}};function Xs(t=[]){let e=t.reduce(((t,e)=>{let s=t[e.name]??new Set;return e.alias&&s.add(e.alias),t[e.name]=s,t}),{});return Object.keys(e).reduce(((t,s)=>{let r=e[s];return r.size>0?r?.forEach((e=>{t.push({name:s,alias:e})})):t.push({name:s}),t}),[])}function Ks(t){return Xs(t.symbolTable.getNestedSymbolsOfTypeSync(Ws))}Ls(Xs,"getUniqueTableSuggestions"),Ls(Ks,"getTablesFromSymbolTable");var Qs=class extends ns{static{Ls(this,"ColumnAliasSymbol")}constructor(t,e){super(t,e),this.name=t}};function qs(t){return t.symbolTable.getNestedSymbolsOfTypeSync(Qs).map((({name:t})=>({name:t})))}function js(t,e,s){let r=e;for(;r<t.size;){let e=t.get(r);if(e.type===s.CLOSING_BRACKET||e.type===s.SEMICOLON)return{cursorIndex:e.start,tokenIndex:r};if(e.type===s.OPENING_BRACKET)return;r++}let i=t.size-1;return{cursorIndex:t.get(i).start,tokenIndex:i}}function Js(t,e,s){let r=t.get(t.size-1).start,i=e,a=!1;for(;i>=0&&i<t.size;){let r=t.get(i);if(r.type===s.OPENING_BRACKET||r.type===s.CLOSING_BRACKET||r.type===s.SEMICOLON){if(a)break;i=e,a=!0}if(r.type===s.FROM){let a=js(t,e,s);if(!a)break;let n=zs(t,i,a.tokenIndex,s),c=n?{start:n,end:a.cursorIndex}:void 0,h=Zs(t,s,a.tokenIndex,s.SELECT),o=h?{start:h.start,end:a.cursorIndex}:void 0;return{start:r.start,end:a.cursorIndex,type:"from",joinTableQueryPosition:c,selectTableQueryPosition:o}}a?i++:i--,-1===i&&(i=e,a=!0)}for(i=e;i>=0;){let e=t.get(i);if(e.type===s.SEMICOLON)return;if(e.type===s.ALTER&&!Zs(t,s,i,s.ALTER))return{start:e.start,end:r,type:"alter"};if(e.type===s.INSERT||e.type===s.UPSERT)return{start:e.start,end:r,type:"insert"};if(e.type===s.UPDATE)return{start:e.start,end:r,type:"update"};i--}}function zs(t,e,s,r){let i=e;for(;i<s;){let e=t.get(i);if(e.type===r.JOIN)return e.stop+1;i++}}function Zs(t,e,s,r){let i=s-1;for(;i>-1;){let s=t.get(i);if(s.type===e.SEMICOLON)return;if(s.type===r)return s;i--}}function $s(t,e,s,r,i,a,n,c,h){let o=Os(a,n,r.SPACE,!0);if(!o)throw new Error(`Could not find actualCursorTokenIndex at Ln ${n.line}, Col ${n.column}`);let E={},l=Js(a,o,r);if(l){let r=i(ks(t,e,c.slice(l.start,l.end)),l.type);if(s.visit(r),h&&l.joinTableQueryPosition){let r=i(ks(t,e,c.slice(l.joinTableQueryPosition.start,l.joinTableQueryPosition.end)),"from");s.visit(r)}if(l.selectTableQueryPosition){let r=i(ks(t,e,c.slice(l.selectTableQueryPosition.start,l.selectTableQueryPosition.end)),"select");s.visit(r)}let a=Ks(s);a.length&&(E.tableContextSuggestion={tables:a});let n=qs(s);n.length&&(E.suggestColumnAliases=n.map((({name:t})=>({name:t}))))}return E}Ls(qs,"getColumnAliasesFromSymbolTable"),Ls(js,"getClosingBracketIndex"),Ls(Js,"getTableQueryPosition"),Ls(zs,"getJoinIndex"),Ls(Zs,"getPreviousToken"),Ls($s,"getContextSuggestions");var tr=class t extends Zt{static{Ls(this,"YQLLexer")}static{this.QUERY=1}static{this.EQUALS=2}static{this.EQUALS2=3}static{this.NOT_EQUALS=4}static{this.NOT_EQUALS2=5}static{this.LESS=6}static{this.LESS_OR_EQ=7}static{this.GREATER=8}static{this.GREATER_OR_EQ=9}static{this.SHIFT_LEFT=10}static{this.ROT_LEFT=11}static{this.AMPERSAND=12}static{this.PIPE=13}static{this.DOUBLE_PIPE=14}static{this.STRUCT_OPEN=15}static{this.STRUCT_CLOSE=16}static{this.PLUS=17}static{this.MINUS=18}static{this.TILDA=19}static{this.ASTERISK=20}static{this.SLASH=21}static{this.PERCENT=22}static{this.SEMICOLON=23}static{this.DOT=24}static{this.COMMA=25}static{this.LPAREN=26}static{this.RPAREN=27}static{this.QUESTION=28}static{this.COLON=29}static{this.COMMAT=30}static{this.DOUBLE_COMMAT=31}static{this.DOLLAR=32}static{this.LBRACE_CURLY=33}static{this.RBRACE_CURLY=34}static{this.CARET=35}static{this.NAMESPACE=36}static{this.ARROW=37}static{this.RBRACE_SQUARE=38}static{this.LBRACE_SQUARE=39}static{this.ABORT=40}static{this.ACTION=41}static{this.ADD=42}static{this.AFTER=43}static{this.ALL=44}static{this.ALTER=45}static{this.ANALYZE=46}static{this.AND=47}static{this.ANSI=48}static{this.ANY=49}static{this.ARRAY=50}static{this.AS=51}static{this.ASC=52}static{this.ASSUME=53}static{this.ASYMMETRIC=54}static{this.ASYNC=55}static{this.AT=56}static{this.ATTACH=57}static{this.ATTRIBUTES=58}static{this.AUTOINCREMENT=59}static{this.AUTOMAP=60}static{this.BACKUP=61}static{this.COLLECTION=62}static{this.BEFORE=63}static{this.BEGIN=64}static{this.BERNOULLI=65}static{this.BETWEEN=66}static{this.BITCAST=67}static{this.BY=68}static{this.CALLABLE=69}static{this.CASCADE=70}static{this.CASE=71}static{this.CAST=72}static{this.CHANGEFEED=73}static{this.CHECK=74}static{this.CLASSIFIER=75}static{this.COLLATE=76}static{this.COLUMN=77}static{this.COLUMNS=78}static{this.COMMIT=79}static{this.COMPACT=80}static{this.CONDITIONAL=81}static{this.CONFLICT=82}static{this.CONNECT=83}static{this.CONSTRAINT=84}static{this.CONSUMER=85}static{this.COVER=86}static{this.CREATE=87}static{this.CROSS=88}static{this.CUBE=89}static{this.CURRENT=90}static{this.CURRENT_DATE=91}static{this.CURRENT_TIME=92}static{this.CURRENT_TIMESTAMP=93}static{this.DATA=94}static{this.DATABASE=95}static{this.DECIMAL=96}static{this.DECLARE=97}static{this.DEFAULT=98}static{this.DEFERRABLE=99}static{this.DEFERRED=100}static{this.DEFINE=101}static{this.DELETE=102}static{this.DESC=103}static{this.DESCRIBE=104}static{this.DETACH=105}static{this.DICT=106}static{this.DIRECTORY=107}static{this.DISABLE=108}static{this.DISCARD=109}static{this.DISTINCT=110}static{this.DO=111}static{this.DROP=112}static{this.EACH=113}static{this.ELSE=114}static{this.EMPTY=115}static{this.EMPTY_ACTION=116}static{this.ENCRYPTED=117}static{this.END=118}static{this.ENUM=119}static{this.ERASE=120}static{this.ERROR=121}static{this.ESCAPE=122}static{this.EVALUATE=123}static{this.EXCEPT=124}static{this.EXCLUDE=125}static{this.EXCLUSION=126}static{this.EXCLUSIVE=127}static{this.EXISTS=128}static{this.EXPLAIN=129}static{this.EXPORT=130}static{this.EXTERNAL=131}static{this.FAIL=132}static{this.FALSE=133}static{this.FAMILY=134}static{this.FILTER=135}static{this.FIRST=136}static{this.FLATTEN=137}static{this.FLOW=138}static{this.FOLLOWING=139}static{this.FOR=140}static{this.FOREIGN=141}static{this.FROM=142}static{this.FULL=143}static{this.FUNCTION=144}static{this.GLOB=145}static{this.GLOBAL=146}static{this.GRANT=147}static{this.GROUP=148}static{this.GROUPING=149}static{this.GROUPS=150}static{this.HASH=151}static{this.HAVING=152}static{this.HOP=153}static{this.IF=154}static{this.IGNORE=155}static{this.ILIKE=156}static{this.IMMEDIATE=157}static{this.IMPORT=158}static{this.IN=159}static{this.INCREMENTAL=160}static{this.INDEX=161}static{this.INDEXED=162}static{this.INHERITS=163}static{this.INITIAL=164}static{this.INITIALLY=165}static{this.INNER=166}static{this.INSERT=167}static{this.INSTEAD=168}static{this.INTERSECT=169}static{this.INTO=170}static{this.IS=171}static{this.ISNULL=172}static{this.JOIN=173}static{this.JSON_EXISTS=174}static{this.JSON_QUERY=175}static{this.JSON_VALUE=176}static{this.KEY=177}static{this.LAST=178}static{this.LEFT=179}static{this.LEGACY=180}static{this.LIKE=181}static{this.LIMIT=182}static{this.LIST=183}static{this.LOCAL=184}static{this.MANAGE=185}static{this.MATCH=186}static{this.MATCHES=187}static{this.MATCH_RECOGNIZE=188}static{this.MEASURES=189}static{this.MICROSECONDS=190}static{this.MILLISECONDS=191}static{this.MODIFY=192}static{this.NANOSECONDS=193}static{this.NATURAL=194}static{this.NEXT=195}static{this.NO=196}static{this.NOT=197}static{this.NOTNULL=198}static{this.NULL=199}static{this.NULLS=200}static{this.OBJECT=201}static{this.OF=202}static{this.OFFSET=203}static{this.OMIT=204}static{this.ON=205}static{this.ONE=206}static{this.ONLY=207}static{this.OPTION=208}static{this.OPTIONAL=209}static{this.OR=210}static{this.ORDER=211}static{this.OTHERS=212}static{this.OUTER=213}static{this.OVER=214}static{this.PARALLEL=215}static{this.PARTITION=216}static{this.PASSING=217}static{this.PASSWORD=218}static{this.PAST=219}static{this.PATTERN=220}static{this.PER=221}static{this.PERMUTE=222}static{this.PLAN=223}static{this.POOL=224}static{this.PRAGMA=225}static{this.PRECEDING=226}static{this.PRESORT=227}static{this.PRIMARY=228}static{this.PRIVILEGES=229}static{this.PROCESS=230}static{this.QUEUE=231}static{this.RAISE=232}static{this.RANGE=233}static{this.REDUCE=234}static{this.REFERENCES=235}static{this.REGEXP=236}static{this.REINDEX=237}static{this.RELEASE=238}static{this.REMOVE=239}static{this.RENAME=240}static{this.REPEATABLE=241}static{this.REPLACE=242}static{this.REPLICATION=243}static{this.RESET=244}static{this.RESOURCE=245}static{this.RESPECT=246}static{this.RESTORE=247}static{this.RESTRICT=248}static{this.RESULT=249}static{this.RETURN=250}static{this.RETURNING=251}static{this.REVERT=252}static{this.REVOKE=253}static{this.RIGHT=254}static{this.RLIKE=255}static{this.ROLLBACK=256}static{this.ROLLUP=257}static{this.ROW=258}static{this.ROWS=259}static{this.SAMPLE=260}static{this.SAVEPOINT=261}static{this.SCHEMA=262}static{this.SECONDS=263}static{this.SEEK=264}static{this.SELECT=265}static{this.SEMI=266}static{this.SET=267}static{this.SETS=268}static{this.SHOW=269}static{this.TSKIP=270}static{this.SOURCE=271}static{this.STREAM=272}static{this.STRUCT=273}static{this.SUBQUERY=274}static{this.SUBSET=275}static{this.SYMBOLS=276}static{this.SYMMETRIC=277}static{this.SYNC=278}static{this.SYSTEM=279}static{this.TABLE=280}static{this.TABLES=281}static{this.TABLESAMPLE=282}static{this.TABLESTORE=283}static{this.TAGGED=284}static{this.TEMP=285}static{this.TEMPORARY=286}static{this.THEN=287}static{this.TIES=288}static{this.TO=289}static{this.TOPIC=290}static{this.TRANSACTION=291}static{this.TRIGGER=292}static{this.TRUE=293}static{this.TUPLE=294}static{this.TYPE=295}static{this.UNBOUNDED=296}static{this.UNCONDITIONAL=297}static{this.UNION=298}static{this.UNIQUE=299}static{this.UNKNOWN=300}static{this.UNMATCHED=301}static{this.UPDATE=302}static{this.UPSERT=303}static{this.USE=304}static{this.USER=305}static{this.USING=306}static{this.VACUUM=307}static{this.VALUES=308}static{this.VARIANT=309}static{this.VIEW=310}static{this.VIRTUAL=311}static{this.WHEN=312}static{this.WHERE=313}static{this.WINDOW=314}static{this.WITH=315}static{this.WITHOUT=316}static{this.WRAPPER=317}static{this.XOR=318}static{this.STRING_VALUE=319}static{this.ID_PLAIN=320}static{this.ID_QUOTED=321}static{this.DIGITS=322}static{this.INTEGER_VALUE=323}static{this.REAL=324}static{this.BLOB=325}static{this.TQ=326}static{this.TU=327}static{this.TE=328}static{this.TR=329}static{this.TY=330}static{this.WS=331}static{this.COMMENT=332}static{this.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"]}static{this.literalNames=[null,null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'@@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"QUERY","EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOUBLE_COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","TQ","TU","TE","TR","TY","WS","COMMENT"]}static{this.modeNames=["DEFAULT_MODE"]}static{this.ruleNames=["QUERY","EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOUBLE_COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","BACKSLASH","QUOTE_DOUBLE","QUOTE_SINGLE","BACKTICK","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_CORE_SINGLE","STRING_CORE_DOUBLE","STRING_SINGLE","STRING_DOUBLE","STRING_MULTILINE","STRING_VALUE","ID_PLAIN","ID_QUOTED_CORE","ID_QUOTED","DIGIT","HEXDIGIT","HEXDIGITS","OCTDIGITS","BINDIGITS","DECDIGITS","DIGITS","INTEGER_VALUE","FLOAT_EXP","REAL","BLOB","TQ","TU","TE","TR","TY","MULTILINE_COMMENT","LINE_COMMENT","WS","COMMENT"]}constructor(e){super(e),this.interpreter=new ne(this,t._ATN,t.decisionsToDFA,new ue)}get grammarFileName(){return"YQL.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}get channelNames(){return t.channelNames}get modeNames(){return t.modeNames}static{this._serializedATN=[4,0,332,3149,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,7,1,7,1,8,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,13,1,13,1,14,1,14,1,14,1,15,1,15,1,15,1,16,1,16,1,17,1,17,1,18,1,18,1,19,1,19,1,20,1,20,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,25,1,25,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37,1,38,1,38,1,39,1,39,1,40,1,40,1,41,1,41,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,46,1,46,1,47,1,47,1,48,1,48,1,49,1,49,1,50,1,50,1,51,1,51,1,52,1,52,1,53,1,53,1,54,1,54,1,55,1,55,1,56,1,56,1,57,1,57,1,58,1,58,1,59,1,59,1,60,1,60,1,61,1,61,1,62,1,62,1,63,1,63,1,64,1,64,1,65,1,65,1,66,1,66,1,67,1,67,1,68,1,68,1,69,1,69,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1,84,1,85,1,85,1,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,101,1,101,1,101,1,101,1,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,103,1,103,1,103,1,103,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,140,1,140,1,140,1,141,1,141,1,141,1,141,1,141,1,142,1,142,1,142,1,142,1,142,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,1,144,1,144,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,147,1,147,1,147,1,147,1,148,1,148,1,148,1,148,1,148,1,149,1,149,1,149,1,149,1,149,1,149,1,150,1,150,1,150,1,150,1,150,1,150,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,161,1,161,1,161,1,161,1,161,1,162,1,162,1,162,1,162,1,162,1,162,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,169,1,169,1,169,1,169,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,171,1,171,1,171,1,171,1,171,1,172,1,172,1,172,1,172,1,172,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,174,1,174,1,174,1,174,1,174,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,1,177,1,177,1,177,1,177,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,180,1,180,1,180,1,180,1,180,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,182,1,182,1,182,1,182,1,183,1,183,1,183,1,184,1,184,1,184,1,184,1,184,1,184,1,184,1,185,1,185,1,185,1,185,1,185,1,185,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,188,1,188,1,188,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,190,1,190,1,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,201,1,201,1,201,1,201,1,201,1,201,1,201,1,202,1,202,1,202,1,202,1,202,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,206,1,206,1,206,1,206,1,207,1,207,1,207,1,207,1,207,1,208,1,208,1,208,1,208,1,208,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,210,1,210,1,210,1,210,1,210,1,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,1,212,1,213,1,213,1,213,1,213,1,213,1,213,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,215,1,215,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,223,1,223,1,223,1,223,1,223,1,223,1,223,1,223,1,224,1,224,1,224,1,224,1,224,1,225,1,225,1,225,1,226,1,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,1,229,1,229,1,229,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,233,1,233,1,233,1,233,1,233,1,234,1,234,1,234,1,235,1,235,1,235,1,235,1,236,1,236,1,236,1,236,1,236,1,237,1,237,1,237,1,237,1,237,1,237,1,237,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,256,1,256,1,256,1,256,1,256,1,256,1,256,1,256,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,260,1,260,1,260,1,260,1,260,1,260,1,261,1,261,1,261,1,261,1,261,1,261,1,262,1,262,1,262,1,262,1,262,1,262,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,265,1,265,1,265,1,265,1,265,1,265,1,265,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,273,1,273,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,277,1,277,1,277,1,277,1,277,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,283,1,283,1,283,1,283,1,283,1,283,1,284,1,284,1,284,1,284,1,284,1,284,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,287,1,287,1,287,1,287,1,288,1,288,1,288,1,288,1,288,1,289,1,289,1,289,1,289,1,289,1,289,1,289,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,293,1,293,1,293,1,293,1,293,1,294,1,294,1,294,1,294,1,294,1,294,1,294,1,295,1,295,1,295,1,295,1,295,1,296,1,296,1,296,1,296,1,297,1,297,1,297,1,297,1,297,1,298,1,298,1,298,1,298,1,298,1,299,1,299,1,299,1,299,1,299,1,300,1,300,1,300,1,300,1,300,1,300,1,300,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,314,1,314,1,314,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,1,317,1,317,1,317,1,317,1,317,1,318,1,318,1,318,1,319,1,319,1,319,1,319,1,319,1,319,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,322,1,322,1,322,1,322,1,322,1,323,1,323,1,323,1,323,1,323,1,323,1,324,1,324,1,324,1,324,1,324,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,327,1,327,1,327,1,327,1,327,1,327,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,1,332,1,332,1,332,1,333,1,333,1,333,1,333,1,334,1,334,1,334,1,334,1,334,1,335,1,335,1,335,1,335,1,335,1,335,1,336,1,336,1,336,1,336,1,336,1,336,1,336,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,339,1,339,1,339,1,339,1,339,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,341,1,341,1,341,1,341,1,341,1,342,1,342,1,342,1,342,1,342,1,342,1,343,1,343,1,343,1,343,1,343,1,343,1,343,1,344,1,344,1,344,1,344,1,344,1,345,1,345,1,345,1,345,1,345,1,345,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,1,348,1,348,1,348,1,348,3,348,2928,8,348,1,349,1,349,1,349,1,349,3,349,2934,8,349,1,350,1,350,5,350,2938,8,350,10,350,12,350,2941,9,350,1,350,1,350,1,351,1,351,5,351,2947,8,351,10,351,12,351,2950,9,351,1,351,1,351,1,352,1,352,5,352,2956,8,352,10,352,12,352,2959,9,352,1,352,1,352,4,352,2963,8,352,11,352,12,352,2964,1,352,3,352,2968,8,352,1,353,1,353,1,353,3,353,2973,8,353,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,353,3,353,2983,8,353,3,353,2985,8,353,1,354,1,354,1,354,5,354,2990,8,354,10,354,12,354,2993,9,354,1,355,1,355,1,355,1,355,1,355,3,355,3e3,8,355,1,356,1,356,5,356,3004,8,356,10,356,12,356,3007,9,356,1,356,1,356,1,357,1,357,1,358,1,358,1,359,1,359,1,359,4,359,3018,8,359,11,359,12,359,3019,1,360,1,360,1,360,4,360,3025,8,360,11,360,12,360,3026,1,361,1,361,1,361,4,361,3032,8,361,11,361,12,361,3033,1,362,4,362,3037,8,362,11,362,12,362,3038,1,363,1,363,1,363,1,363,3,363,3045,8,363,1,364,1,364,1,364,3,364,3050,8,364,1,364,1,364,1,364,1,364,1,364,1,364,3,364,3058,8,364,1,365,1,365,1,365,3,365,3063,8,365,1,365,1,365,1,366,1,366,1,366,5,366,3070,8,366,10,366,12,366,3073,9,366,1,366,3,366,3076,8,366,1,366,1,366,1,366,3,366,3081,8,366,1,366,1,366,1,366,1,366,1,366,1,366,3,366,3089,8,366,3,366,3091,8,366,1,367,1,367,1,367,4,367,3096,8,367,11,367,12,367,3097,1,367,1,367,1,368,1,368,1,369,1,369,1,370,1,370,1,371,1,371,1,372,1,372,1,373,1,373,1,373,1,373,5,373,3116,8,373,10,373,12,373,3119,9,373,1,373,1,373,1,373,1,374,1,374,1,374,1,374,5,374,3128,8,374,10,374,12,374,3131,9,374,1,374,1,374,3,374,3135,8,374,1,374,3,374,3138,8,374,1,375,1,375,1,375,1,375,1,376,1,376,3,376,3146,8,376,1,376,1,376,2,2957,3117,0,377,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,0,81,0,83,0,85,0,87,0,89,0,91,0,93,0,95,0,97,0,99,0,101,0,103,0,105,0,107,0,109,0,111,0,113,0,115,0,117,0,119,0,121,0,123,0,125,0,127,0,129,0,131,0,133,0,135,0,137,0,139,40,141,41,143,42,145,43,147,44,149,45,151,46,153,47,155,48,157,49,159,50,161,51,163,52,165,53,167,54,169,55,171,56,173,57,175,58,177,59,179,60,181,61,183,62,185,63,187,64,189,65,191,66,193,67,195,68,197,69,199,70,201,71,203,72,205,73,207,74,209,75,211,76,213,77,215,78,217,79,219,80,221,81,223,82,225,83,227,84,229,85,231,86,233,87,235,88,237,89,239,90,241,91,243,92,245,93,247,94,249,95,251,96,253,97,255,98,257,99,259,100,261,101,263,102,265,103,267,104,269,105,271,106,273,107,275,108,277,109,279,110,281,111,283,112,285,113,287,114,289,115,291,116,293,117,295,118,297,119,299,120,301,121,303,122,305,123,307,124,309,125,311,126,313,127,315,128,317,129,319,130,321,131,323,132,325,133,327,134,329,135,331,136,333,137,335,138,337,139,339,140,341,141,343,142,345,143,347,144,349,145,351,146,353,147,355,148,357,149,359,150,361,151,363,152,365,153,367,154,369,155,371,156,373,157,375,158,377,159,379,160,381,161,383,162,385,163,387,164,389,165,391,166,393,167,395,168,397,169,399,170,401,171,403,172,405,173,407,174,409,175,411,176,413,177,415,178,417,179,419,180,421,181,423,182,425,183,427,184,429,185,431,186,433,187,435,188,437,189,439,190,441,191,443,192,445,193,447,194,449,195,451,196,453,197,455,198,457,199,459,200,461,201,463,202,465,203,467,204,469,205,471,206,473,207,475,208,477,209,479,210,481,211,483,212,485,213,487,214,489,215,491,216,493,217,495,218,497,219,499,220,501,221,503,222,505,223,507,224,509,225,511,226,513,227,515,228,517,229,519,230,521,231,523,232,525,233,527,234,529,235,531,236,533,237,535,238,537,239,539,240,541,241,543,242,545,243,547,244,549,245,551,246,553,247,555,248,557,249,559,250,561,251,563,252,565,253,567,254,569,255,571,256,573,257,575,258,577,259,579,260,581,261,583,262,585,263,587,264,589,265,591,266,593,267,595,268,597,269,599,270,601,271,603,272,605,273,607,274,609,275,611,276,613,277,615,278,617,279,619,280,621,281,623,282,625,283,627,284,629,285,631,286,633,287,635,288,637,289,639,290,641,291,643,292,645,293,647,294,649,295,651,296,653,297,655,298,657,299,659,300,661,301,663,302,665,303,667,304,669,305,671,306,673,307,675,308,677,309,679,310,681,311,683,312,685,313,687,314,689,315,691,316,693,317,695,318,697,0,699,0,701,0,703,0,705,0,707,319,709,320,711,0,713,321,715,0,717,0,719,0,721,0,723,0,725,0,727,322,729,323,731,0,733,324,735,325,737,326,739,327,741,328,743,329,745,330,747,0,749,0,751,331,753,332,1,0,35,2,0,65,65,97,97,2,0,66,66,98,98,2,0,67,67,99,99,2,0,68,68,100,100,2,0,69,69,101,101,2,0,70,70,102,102,2,0,71,71,103,103,2,0,72,72,104,104,2,0,73,73,105,105,2,0,74,74,106,106,2,0,75,75,107,107,2,0,76,76,108,108,2,0,77,77,109,109,2,0,78,78,110,110,2,0,79,79,111,111,2,0,80,80,112,112,2,0,81,81,113,113,2,0,82,82,114,114,2,0,83,83,115,115,2,0,84,84,116,116,2,0,85,85,117,117,2,0,86,86,118,118,2,0,87,87,119,119,2,0,88,88,120,120,2,0,89,89,121,121,2,0,90,90,122,122,2,0,39,39,92,92,2,0,34,34,92,92,3,0,65,90,95,95,97,122,2,0,92,92,96,96,3,0,48,57,65,70,97,102,2,0,52,52,56,56,2,0,10,10,13,13,1,1,10,10,3,0,9,10,12,13,32,32,3155,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,273,1,0,0,0,0,275,1,0,0,0,0,277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,0,291,1,0,0,0,0,293,1,0,0,0,0,295,1,0,0,0,0,297,1,0,0,0,0,299,1,0,0,0,0,301,1,0,0,0,0,303,1,0,0,0,0,305,1,0,0,0,0,307,1,0,0,0,0,309,1,0,0,0,0,311,1,0,0,0,0,313,1,0,0,0,0,315,1,0,0,0,0,317,1,0,0,0,0,319,1,0,0,0,0,321,1,0,0,0,0,323,1,0,0,0,0,325,1,0,0,0,0,327,1,0,0,0,0,329,1,0,0,0,0,331,1,0,0,0,0,333,1,0,0,0,0,335,1,0,0,0,0,337,1,0,0,0,0,339,1,0,0,0,0,341,1,0,0,0,0,343,1,0,0,0,0,345,1,0,0,0,0,347,1,0,0,0,0,349,1,0,0,0,0,351,1,0,0,0,0,353,1,0,0,0,0,355,1,0,0,0,0,357,1,0,0,0,0,359,1,0,0,0,0,361,1,0,0,0,0,363,1,0,0,0,0,365,1,0,0,0,0,367,1,0,0,0,0,369,1,0,0,0,0,371,1,0,0,0,0,373,1,0,0,0,0,375,1,0,0,0,0,377,1,0,0,0,0,379,1,0,0,0,0,381,1,0,0,0,0,383,1,0,0,0,0,385,1,0,0,0,0,387,1,0,0,0,0,389,1,0,0,0,0,391,1,0,0,0,0,393,1,0,0,0,0,395,1,0,0,0,0,397,1,0,0,0,0,399,1,0,0,0,0,401,1,0,0,0,0,403,1,0,0,0,0,405,1,0,0,0,0,407,1,0,0,0,0,409,1,0,0,0,0,411,1,0,0,0,0,413,1,0,0,0,0,415,1,0,0,0,0,417,1,0,0,0,0,419,1,0,0,0,0,421,1,0,0,0,0,423,1,0,0,0,0,425,1,0,0,0,0,427,1,0,0,0,0,429,1,0,0,0,0,431,1,0,0,0,0,433,1,0,0,0,0,435,1,0,0,0,0,437,1,0,0,0,0,439,1,0,0,0,0,441,1,0,0,0,0,443,1,0,0,0,0,445,1,0,0,0,0,447,1,0,0,0,0,449,1,0,0,0,0,451,1,0,0,0,0,453,1,0,0,0,0,455,1,0,0,0,0,457,1,0,0,0,0,459,1,0,0,0,0,461,1,0,0,0,0,463,1,0,0,0,0,465,1,0,0,0,0,467,1,0,0,0,0,469,1,0,0,0,0,471,1,0,0,0,0,473,1,0,0,0,0,475,1,0,0,0,0,477,1,0,0,0,0,479,1,0,0,0,0,481,1,0,0,0,0,483,1,0,0,0,0,485,1,0,0,0,0,487,1,0,0,0,0,489,1,0,0,0,0,491,1,0,0,0,0,493,1,0,0,0,0,495,1,0,0,0,0,497,1,0,0,0,0,499,1,0,0,0,0,501,1,0,0,0,0,503,1,0,0,0,0,505,1,0,0,0,0,507,1,0,0,0,0,509,1,0,0,0,0,511,1,0,0,0,0,513,1,0,0,0,0,515,1,0,0,0,0,517,1,0,0,0,0,519,1,0,0,0,0,521,1,0,0,0,0,523,1,0,0,0,0,525,1,0,0,0,0,527,1,0,0,0,0,529,1,0,0,0,0,531,1,0,0,0,0,533,1,0,0,0,0,535,1,0,0,0,0,537,1,0,0,0,0,539,1,0,0,0,0,541,1,0,0,0,0,543,1,0,0,0,0,545,1,0,0,0,0,547,1,0,0,0,0,549,1,0,0,0,0,551,1,0,0,0,0,553,1,0,0,0,0,555,1,0,0,0,0,557,1,0,0,0,0,559,1,0,0,0,0,561,1,0,0,0,0,563,1,0,0,0,0,565,1,0,0,0,0,567,1,0,0,0,0,569,1,0,0,0,0,571,1,0,0,0,0,573,1,0,0,0,0,575,1,0,0,0,0,577,1,0,0,0,0,579,1,0,0,0,0,581,1,0,0,0,0,583,1,0,0,0,0,585,1,0,0,0,0,587,1,0,0,0,0,589,1,0,0,0,0,591,1,0,0,0,0,593,1,0,0,0,0,595,1,0,0,0,0,597,1,0,0,0,0,599,1,0,0,0,0,601,1,0,0,0,0,603,1,0,0,0,0,605,1,0,0,0,0,607,1,0,0,0,0,609,1,0,0,0,0,611,1,0,0,0,0,613,1,0,0,0,0,615,1,0,0,0,0,617,1,0,0,0,0,619,1,0,0,0,0,621,1,0,0,0,0,623,1,0,0,0,0,625,1,0,0,0,0,627,1,0,0,0,0,629,1,0,0,0,0,631,1,0,0,0,0,633,1,0,0,0,0,635,1,0,0,0,0,637,1,0,0,0,0,639,1,0,0,0,0,641,1,0,0,0,0,643,1,0,0,0,0,645,1,0,0,0,0,647,1,0,0,0,0,649,1,0,0,0,0,651,1,0,0,0,0,653,1,0,0,0,0,655,1,0,0,0,0,657,1,0,0,0,0,659,1,0,0,0,0,661,1,0,0,0,0,663,1,0,0,0,0,665,1,0,0,0,0,667,1,0,0,0,0,669,1,0,0,0,0,671,1,0,0,0,0,673,1,0,0,0,0,675,1,0,0,0,0,677,1,0,0,0,0,679,1,0,0,0,0,681,1,0,0,0,0,683,1,0,0,0,0,685,1,0,0,0,0,687,1,0,0,0,0,689,1,0,0,0,0,691,1,0,0,0,0,693,1,0,0,0,0,695,1,0,0,0,0,707,1,0,0,0,0,709,1,0,0,0,0,713,1,0,0,0,0,727,1,0,0,0,0,729,1,0,0,0,0,733,1,0,0,0,0,735,1,0,0,0,0,737,1,0,0,0,0,739,1,0,0,0,0,741,1,0,0,0,0,743,1,0,0,0,0,745,1,0,0,0,0,751,1,0,0,0,0,753,1,0,0,0,1,755,1,0,0,0,3,761,1,0,0,0,5,763,1,0,0,0,7,766,1,0,0,0,9,769,1,0,0,0,11,772,1,0,0,0,13,774,1,0,0,0,15,777,1,0,0,0,17,779,1,0,0,0,19,782,1,0,0,0,21,785,1,0,0,0,23,789,1,0,0,0,25,791,1,0,0,0,27,793,1,0,0,0,29,796,1,0,0,0,31,799,1,0,0,0,33,802,1,0,0,0,35,804,1,0,0,0,37,806,1,0,0,0,39,808,1,0,0,0,41,810,1,0,0,0,43,812,1,0,0,0,45,814,1,0,0,0,47,816,1,0,0,0,49,818,1,0,0,0,51,820,1,0,0,0,53,822,1,0,0,0,55,824,1,0,0,0,57,826,1,0,0,0,59,828,1,0,0,0,61,830,1,0,0,0,63,833,1,0,0,0,65,835,1,0,0,0,67,837,1,0,0,0,69,839,1,0,0,0,71,841,1,0,0,0,73,844,1,0,0,0,75,847,1,0,0,0,77,849,1,0,0,0,79,851,1,0,0,0,81,853,1,0,0,0,83,855,1,0,0,0,85,857,1,0,0,0,87,859,1,0,0,0,89,861,1,0,0,0,91,863,1,0,0,0,93,865,1,0,0,0,95,867,1,0,0,0,97,869,1,0,0,0,99,871,1,0,0,0,101,873,1,0,0,0,103,875,1,0,0,0,105,877,1,0,0,0,107,879,1,0,0,0,109,881,1,0,0,0,111,883,1,0,0,0,113,885,1,0,0,0,115,887,1,0,0,0,117,889,1,0,0,0,119,891,1,0,0,0,121,893,1,0,0,0,123,895,1,0,0,0,125,897,1,0,0,0,127,899,1,0,0,0,129,901,1,0,0,0,131,903,1,0,0,0,133,905,1,0,0,0,135,907,1,0,0,0,137,909,1,0,0,0,139,911,1,0,0,0,141,917,1,0,0,0,143,924,1,0,0,0,145,928,1,0,0,0,147,934,1,0,0,0,149,938,1,0,0,0,151,944,1,0,0,0,153,952,1,0,0,0,155,956,1,0,0,0,157,961,1,0,0,0,159,965,1,0,0,0,161,971,1,0,0,0,163,974,1,0,0,0,165,978,1,0,0,0,167,985,1,0,0,0,169,996,1,0,0,0,171,1002,1,0,0,0,173,1005,1,0,0,0,175,1012,1,0,0,0,177,1023,1,0,0,0,179,1037,1,0,0,0,181,1045,1,0,0,0,183,1052,1,0,0,0,185,1063,1,0,0,0,187,1070,1,0,0,0,189,1076,1,0,0,0,191,1086,1,0,0,0,193,1094,1,0,0,0,195,1102,1,0,0,0,197,1105,1,0,0,0,199,1114,1,0,0,0,201,1122,1,0,0,0,203,1127,1,0,0,0,205,1132,1,0,0,0,207,1143,1,0,0,0,209,1149,1,0,0,0,211,1160,1,0,0,0,213,1168,1,0,0,0,215,1175,1,0,0,0,217,1183,1,0,0,0,219,1190,1,0,0,0,221,1198,1,0,0,0,223,1210,1,0,0,0,225,1219,1,0,0,0,227,1227,1,0,0,0,229,1238,1,0,0,0,231,1247,1,0,0,0,233,1253,1,0,0,0,235,1260,1,0,0,0,237,1266,1,0,0,0,239,1271,1,0,0,0,241,1279,1,0,0,0,243,1292,1,0,0,0,245,1305,1,0,0,0,247,1323,1,0,0,0,249,1328,1,0,0,0,251,1337,1,0,0,0,253,1345,1,0,0,0,255,1353,1,0,0,0,257,1361,1,0,0,0,259,1372,1,0,0,0,261,1381,1,0,0,0,263,1388,1,0,0,0,265,1395,1,0,0,0,267,1400,1,0,0,0,269,1409,1,0,0,0,271,1416,1,0,0,0,273,1421,1,0,0,0,275,1431,1,0,0,0,277,1439,1,0,0,0,279,1447,1,0,0,0,281,1456,1,0,0,0,283,1459,1,0,0,0,285,1464,1,0,0,0,287,1469,1,0,0,0,289,1474,1,0,0,0,291,1480,1,0,0,0,293,1493,1,0,0,0,295,1503,1,0,0,0,297,1507,1,0,0,0,299,1512,1,0,0,0,301,1518,1,0,0,0,303,1524,1,0,0,0,305,1531,1,0,0,0,307,1540,1,0,0,0,309,1547,1,0,0,0,311,1555,1,0,0,0,313,1565,1,0,0,0,315,1575,1,0,0,0,317,1582,1,0,0,0,319,1590,1,0,0,0,321,1597,1,0,0,0,323,1606,1,0,0,0,325,1611,1,0,0,0,327,1617,1,0,0,0,329,1624,1,0,0,0,331,1631,1,0,0,0,333,1637,1,0,0,0,335,1645,1,0,0,0,337,1650,1,0,0,0,339,1660,1,0,0,0,341,1664,1,0,0,0,343,1672,1,0,0,0,345,1677,1,0,0,0,347,1682,1,0,0,0,349,1691,1,0,0,0,351,1696,1,0,0,0,353,1703,1,0,0,0,355,1709,1,0,0,0,357,1715,1,0,0,0,359,1724,1,0,0,0,361,1731,1,0,0,0,363,1736,1,0,0,0,365,1743,1,0,0,0,367,1747,1,0,0,0,369,1750,1,0,0,0,371,1757,1,0,0,0,373,1763,1,0,0,0,375,1773,1,0,0,0,377,1780,1,0,0,0,379,1783,1,0,0,0,381,1795,1,0,0,0,383,1801,1,0,0,0,385,1809,1,0,0,0,387,1818,1,0,0,0,389,1826,1,0,0,0,391,1836,1,0,0,0,393,1842,1,0,0,0,395,1849,1,0,0,0,397,1857,1,0,0,0,399,1867,1,0,0,0,401,1872,1,0,0,0,403,1875,1,0,0,0,405,1882,1,0,0,0,407,1887,1,0,0,0,409,1899,1,0,0,0,411,1910,1,0,0,0,413,1921,1,0,0,0,415,1925,1,0,0,0,417,1930,1,0,0,0,419,1935,1,0,0,0,421,1942,1,0,0,0,423,1947,1,0,0,0,425,1953,1,0,0,0,427,1958,1,0,0,0,429,1964,1,0,0,0,431,1971,1,0,0,0,433,1977,1,0,0,0,435,1985,1,0,0,0,437,2001,1,0,0,0,439,2010,1,0,0,0,441,2023,1,0,0,0,443,2036,1,0,0,0,445,2043,1,0,0,0,447,2055,1,0,0,0,449,2063,1,0,0,0,451,2068,1,0,0,0,453,2071,1,0,0,0,455,2075,1,0,0,0,457,2083,1,0,0,0,459,2088,1,0,0,0,461,2094,1,0,0,0,463,2101,1,0,0,0,465,2104,1,0,0,0,467,2111,1,0,0,0,469,2116,1,0,0,0,471,2119,1,0,0,0,473,2123,1,0,0,0,475,2128,1,0,0,0,477,2135,1,0,0,0,479,2144,1,0,0,0,481,2147,1,0,0,0,483,2153,1,0,0,0,485,2160,1,0,0,0,487,2166,1,0,0,0,489,2171,1,0,0,0,491,2180,1,0,0,0,493,2190,1,0,0,0,495,2198,1,0,0,0,497,2207,1,0,0,0,499,2212,1,0,0,0,501,2220,1,0,0,0,503,2224,1,0,0,0,505,2232,1,0,0,0,507,2237,1,0,0,0,509,2242,1,0,0,0,511,2249,1,0,0,0,513,2259,1,0,0,0,515,2267,1,0,0,0,517,2275,1,0,0,0,519,2286,1,0,0,0,521,2294,1,0,0,0,523,2300,1,0,0,0,525,2306,1,0,0,0,527,2312,1,0,0,0,529,2319,1,0,0,0,531,2330,1,0,0,0,533,2337,1,0,0,0,535,2345,1,0,0,0,537,2353,1,0,0,0,539,2360,1,0,0,0,541,2367,1,0,0,0,543,2378,1,0,0,0,545,2386,1,0,0,0,547,2398,1,0,0,0,549,2404,1,0,0,0,551,2413,1,0,0,0,553,2421,1,0,0,0,555,2429,1,0,0,0,557,2438,1,0,0,0,559,2445,1,0,0,0,561,2452,1,0,0,0,563,2462,1,0,0,0,565,2469,1,0,0,0,567,2476,1,0,0,0,569,2482,1,0,0,0,571,2488,1,0,0,0,573,2497,1,0,0,0,575,2504,1,0,0,0,577,2508,1,0,0,0,579,2513,1,0,0,0,581,2520,1,0,0,0,583,2530,1,0,0,0,585,2537,1,0,0,0,587,2545,1,0,0,0,589,2550,1,0,0,0,591,2557,1,0,0,0,593,2562,1,0,0,0,595,2566,1,0,0,0,597,2571,1,0,0,0,599,2576,1,0,0,0,601,2581,1,0,0,0,603,2588,1,0,0,0,605,2595,1,0,0,0,607,2602,1,0,0,0,609,2611,1,0,0,0,611,2618,1,0,0,0,613,2626,1,0,0,0,615,2636,1,0,0,0,617,2641,1,0,0,0,619,2648,1,0,0,0,621,2654,1,0,0,0,623,2661,1,0,0,0,625,2673,1,0,0,0,627,2684,1,0,0,0,629,2691,1,0,0,0,631,2696,1,0,0,0,633,2706,1,0,0,0,635,2711,1,0,0,0,637,2716,1,0,0,0,639,2719,1,0,0,0,641,2725,1,0,0,0,643,2737,1,0,0,0,645,2745,1,0,0,0,647,2750,1,0,0,0,649,2756,1,0,0,0,651,2761,1,0,0,0,653,2771,1,0,0,0,655,2785,1,0,0,0,657,2791,1,0,0,0,659,2798,1,0,0,0,661,2806,1,0,0,0,663,2816,1,0,0,0,665,2823,1,0,0,0,667,2830,1,0,0,0,669,2834,1,0,0,0,671,2839,1,0,0,0,673,2845,1,0,0,0,675,2852,1,0,0,0,677,2859,1,0,0,0,679,2867,1,0,0,0,681,2872,1,0,0,0,683,2880,1,0,0,0,685,2885,1,0,0,0,687,2891,1,0,0,0,689,2898,1,0,0,0,691,2903,1,0,0,0,693,2911,1,0,0,0,695,2919,1,0,0,0,697,2927,1,0,0,0,699,2933,1,0,0,0,701,2935,1,0,0,0,703,2944,1,0,0,0,705,2962,1,0,0,0,707,2972,1,0,0,0,709,2986,1,0,0,0,711,2999,1,0,0,0,713,3001,1,0,0,0,715,3010,1,0,0,0,717,3012,1,0,0,0,719,3014,1,0,0,0,721,3021,1,0,0,0,723,3028,1,0,0,0,725,3036,1,0,0,0,727,3044,1,0,0,0,729,3046,1,0,0,0,731,3059,1,0,0,0,733,3080,1,0,0,0,735,3092,1,0,0,0,737,3101,1,0,0,0,739,3103,1,0,0,0,741,3105,1,0,0,0,743,3107,1,0,0,0,745,3109,1,0,0,0,747,3111,1,0,0,0,749,3123,1,0,0,0,751,3139,1,0,0,0,753,3145,1,0,0,0,755,756,3,119,59,0,756,757,3,127,63,0,757,758,3,95,47,0,758,759,3,121,60,0,759,760,3,135,67,0,760,2,1,0,0,0,761,762,5,61,0,0,762,4,1,0,0,0,763,764,5,61,0,0,764,765,5,61,0,0,765,6,1,0,0,0,766,767,5,33,0,0,767,768,5,61,0,0,768,8,1,0,0,0,769,770,5,60,0,0,770,771,5,62,0,0,771,10,1,0,0,0,772,773,5,60,0,0,773,12,1,0,0,0,774,775,5,60,0,0,775,776,5,61,0,0,776,14,1,0,0,0,777,778,5,62,0,0,778,16,1,0,0,0,779,780,5,62,0,0,780,781,5,61,0,0,781,18,1,0,0,0,782,783,5,60,0,0,783,784,5,60,0,0,784,20,1,0,0,0,785,786,5,124,0,0,786,787,5,60,0,0,787,788,5,60,0,0,788,22,1,0,0,0,789,790,5,38,0,0,790,24,1,0,0,0,791,792,5,124,0,0,792,26,1,0,0,0,793,794,5,124,0,0,794,795,5,124,0,0,795,28,1,0,0,0,796,797,5,60,0,0,797,798,5,124,0,0,798,30,1,0,0,0,799,800,5,124,0,0,800,801,5,62,0,0,801,32,1,0,0,0,802,803,5,43,0,0,803,34,1,0,0,0,804,805,5,45,0,0,805,36,1,0,0,0,806,807,5,126,0,0,807,38,1,0,0,0,808,809,5,42,0,0,809,40,1,0,0,0,810,811,5,47,0,0,811,42,1,0,0,0,812,813,5,37,0,0,813,44,1,0,0,0,814,815,5,59,0,0,815,46,1,0,0,0,816,817,5,46,0,0,817,48,1,0,0,0,818,819,5,44,0,0,819,50,1,0,0,0,820,821,5,40,0,0,821,52,1,0,0,0,822,823,5,41,0,0,823,54,1,0,0,0,824,825,5,63,0,0,825,56,1,0,0,0,826,827,5,58,0,0,827,58,1,0,0,0,828,829,5,64,0,0,829,60,1,0,0,0,830,831,5,64,0,0,831,832,5,64,0,0,832,62,1,0,0,0,833,834,5,36,0,0,834,64,1,0,0,0,835,836,5,123,0,0,836,66,1,0,0,0,837,838,5,125,0,0,838,68,1,0,0,0,839,840,5,94,0,0,840,70,1,0,0,0,841,842,5,58,0,0,842,843,5,58,0,0,843,72,1,0,0,0,844,845,5,45,0,0,845,846,5,62,0,0,846,74,1,0,0,0,847,848,5,93,0,0,848,76,1,0,0,0,849,850,5,91,0,0,850,78,1,0,0,0,851,852,5,92,0,0,852,80,1,0,0,0,853,854,5,34,0,0,854,82,1,0,0,0,855,856,5,39,0,0,856,84,1,0,0,0,857,858,5,96,0,0,858,86,1,0,0,0,859,860,7,0,0,0,860,88,1,0,0,0,861,862,7,1,0,0,862,90,1,0,0,0,863,864,7,2,0,0,864,92,1,0,0,0,865,866,7,3,0,0,866,94,1,0,0,0,867,868,7,4,0,0,868,96,1,0,0,0,869,870,7,5,0,0,870,98,1,0,0,0,871,872,7,6,0,0,872,100,1,0,0,0,873,874,7,7,0,0,874,102,1,0,0,0,875,876,7,8,0,0,876,104,1,0,0,0,877,878,7,9,0,0,878,106,1,0,0,0,879,880,7,10,0,0,880,108,1,0,0,0,881,882,7,11,0,0,882,110,1,0,0,0,883,884,7,12,0,0,884,112,1,0,0,0,885,886,7,13,0,0,886,114,1,0,0,0,887,888,7,14,0,0,888,116,1,0,0,0,889,890,7,15,0,0,890,118,1,0,0,0,891,892,7,16,0,0,892,120,1,0,0,0,893,894,7,17,0,0,894,122,1,0,0,0,895,896,7,18,0,0,896,124,1,0,0,0,897,898,7,19,0,0,898,126,1,0,0,0,899,900,7,20,0,0,900,128,1,0,0,0,901,902,7,21,0,0,902,130,1,0,0,0,903,904,7,22,0,0,904,132,1,0,0,0,905,906,7,23,0,0,906,134,1,0,0,0,907,908,7,24,0,0,908,136,1,0,0,0,909,910,7,25,0,0,910,138,1,0,0,0,911,912,3,87,43,0,912,913,3,89,44,0,913,914,3,115,57,0,914,915,3,121,60,0,915,916,3,125,62,0,916,140,1,0,0,0,917,918,3,87,43,0,918,919,3,91,45,0,919,920,3,125,62,0,920,921,3,103,51,0,921,922,3,115,57,0,922,923,3,113,56,0,923,142,1,0,0,0,924,925,3,87,43,0,925,926,3,93,46,0,926,927,3,93,46,0,927,144,1,0,0,0,928,929,3,87,43,0,929,930,3,97,48,0,930,931,3,125,62,0,931,932,3,95,47,0,932,933,3,121,60,0,933,146,1,0,0,0,934,935,3,87,43,0,935,936,3,109,54,0,936,937,3,109,54,0,937,148,1,0,0,0,938,939,3,87,43,0,939,940,3,109,54,0,940,941,3,125,62,0,941,942,3,95,47,0,942,943,3,121,60,0,943,150,1,0,0,0,944,945,3,87,43,0,945,946,3,113,56,0,946,947,3,87,43,0,947,948,3,109,54,0,948,949,3,135,67,0,949,950,3,137,68,0,950,951,3,95,47,0,951,152,1,0,0,0,952,953,3,87,43,0,953,954,3,113,56,0,954,955,3,93,46,0,955,154,1,0,0,0,956,957,3,87,43,0,957,958,3,113,56,0,958,959,3,123,61,0,959,960,3,103,51,0,960,156,1,0,0,0,961,962,3,87,43,0,962,963,3,113,56,0,963,964,3,135,67,0,964,158,1,0,0,0,965,966,3,87,43,0,966,967,3,121,60,0,967,968,3,121,60,0,968,969,3,87,43,0,969,970,3,135,67,0,970,160,1,0,0,0,971,972,3,87,43,0,972,973,3,123,61,0,973,162,1,0,0,0,974,975,3,87,43,0,975,976,3,123,61,0,976,977,3,91,45,0,977,164,1,0,0,0,978,979,3,87,43,0,979,980,3,123,61,0,980,981,3,123,61,0,981,982,3,127,63,0,982,983,3,111,55,0,983,984,3,95,47,0,984,166,1,0,0,0,985,986,3,87,43,0,986,987,3,123,61,0,987,988,3,135,67,0,988,989,3,111,55,0,989,990,3,111,55,0,990,991,3,95,47,0,991,992,3,125,62,0,992,993,3,121,60,0,993,994,3,103,51,0,994,995,3,91,45,0,995,168,1,0,0,0,996,997,3,87,43,0,997,998,3,123,61,0,998,999,3,135,67,0,999,1e3,3,113,56,0,1e3,1001,3,91,45,0,1001,170,1,0,0,0,1002,1003,3,87,43,0,1003,1004,3,125,62,0,1004,172,1,0,0,0,1005,1006,3,87,43,0,1006,1007,3,125,62,0,1007,1008,3,125,62,0,1008,1009,3,87,43,0,1009,1010,3,91,45,0,1010,1011,3,101,50,0,1011,174,1,0,0,0,1012,1013,3,87,43,0,1013,1014,3,125,62,0,1014,1015,3,125,62,0,1015,1016,3,121,60,0,1016,1017,3,103,51,0,1017,1018,3,89,44,0,1018,1019,3,127,63,0,1019,1020,3,125,62,0,1020,1021,3,95,47,0,1021,1022,3,123,61,0,1022,176,1,0,0,0,1023,1024,3,87,43,0,1024,1025,3,127,63,0,1025,1026,3,125,62,0,1026,1027,3,115,57,0,1027,1028,3,103,51,0,1028,1029,3,113,56,0,1029,1030,3,91,45,0,1030,1031,3,121,60,0,1031,1032,3,95,47,0,1032,1033,3,111,55,0,1033,1034,3,95,47,0,1034,1035,3,113,56,0,1035,1036,3,125,62,0,1036,178,1,0,0,0,1037,1038,3,87,43,0,1038,1039,3,127,63,0,1039,1040,3,125,62,0,1040,1041,3,115,57,0,1041,1042,3,111,55,0,1042,1043,3,87,43,0,1043,1044,3,117,58,0,1044,180,1,0,0,0,1045,1046,3,89,44,0,1046,1047,3,87,43,0,1047,1048,3,91,45,0,1048,1049,3,107,53,0,1049,1050,3,127,63,0,1050,1051,3,117,58,0,1051,182,1,0,0,0,1052,1053,3,91,45,0,1053,1054,3,115,57,0,1054,1055,3,109,54,0,1055,1056,3,109,54,0,1056,1057,3,95,47,0,1057,1058,3,91,45,0,1058,1059,3,125,62,0,1059,1060,3,103,51,0,1060,1061,3,115,57,0,1061,1062,3,113,56,0,1062,184,1,0,0,0,1063,1064,3,89,44,0,1064,1065,3,95,47,0,1065,1066,3,97,48,0,1066,1067,3,115,57,0,1067,1068,3,121,60,0,1068,1069,3,95,47,0,1069,186,1,0,0,0,1070,1071,3,89,44,0,1071,1072,3,95,47,0,1072,1073,3,99,49,0,1073,1074,3,103,51,0,1074,1075,3,113,56,0,1075,188,1,0,0,0,1076,1077,3,89,44,0,1077,1078,3,95,47,0,1078,1079,3,121,60,0,1079,1080,3,113,56,0,1080,1081,3,115,57,0,1081,1082,3,127,63,0,1082,1083,3,109,54,0,1083,1084,3,109,54,0,1084,1085,3,103,51,0,1085,190,1,0,0,0,1086,1087,3,89,44,0,1087,1088,3,95,47,0,1088,1089,3,125,62,0,1089,1090,3,131,65,0,1090,1091,3,95,47,0,1091,1092,3,95,47,0,1092,1093,3,113,56,0,1093,192,1,0,0,0,1094,1095,3,89,44,0,1095,1096,3,103,51,0,1096,1097,3,125,62,0,1097,1098,3,91,45,0,1098,1099,3,87,43,0,1099,1100,3,123,61,0,1100,1101,3,125,62,0,1101,194,1,0,0,0,1102,1103,3,89,44,0,1103,1104,3,135,67,0,1104,196,1,0,0,0,1105,1106,3,91,45,0,1106,1107,3,87,43,0,1107,1108,3,109,54,0,1108,1109,3,109,54,0,1109,1110,3,87,43,0,1110,1111,3,89,44,0,1111,1112,3,109,54,0,1112,1113,3,95,47,0,1113,198,1,0,0,0,1114,1115,3,91,45,0,1115,1116,3,87,43,0,1116,1117,3,123,61,0,1117,1118,3,91,45,0,1118,1119,3,87,43,0,1119,1120,3,93,46,0,1120,1121,3,95,47,0,1121,200,1,0,0,0,1122,1123,3,91,45,0,1123,1124,3,87,43,0,1124,1125,3,123,61,0,1125,1126,3,95,47,0,1126,202,1,0,0,0,1127,1128,3,91,45,0,1128,1129,3,87,43,0,1129,1130,3,123,61,0,1130,1131,3,125,62,0,1131,204,1,0,0,0,1132,1133,3,91,45,0,1133,1134,3,101,50,0,1134,1135,3,87,43,0,1135,1136,3,113,56,0,1136,1137,3,99,49,0,1137,1138,3,95,47,0,1138,1139,3,97,48,0,1139,1140,3,95,47,0,1140,1141,3,95,47,0,1141,1142,3,93,46,0,1142,206,1,0,0,0,1143,1144,3,91,45,0,1144,1145,3,101,50,0,1145,1146,3,95,47,0,1146,1147,3,91,45,0,1147,1148,3,107,53,0,1148,208,1,0,0,0,1149,1150,3,91,45,0,1150,1151,3,109,54,0,1151,1152,3,87,43,0,1152,1153,3,123,61,0,1153,1154,3,123,61,0,1154,1155,3,103,51,0,1155,1156,3,97,48,0,1156,1157,3,103,51,0,1157,1158,3,95,47,0,1158,1159,3,121,60,0,1159,210,1,0,0,0,1160,1161,3,91,45,0,1161,1162,3,115,57,0,1162,1163,3,109,54,0,1163,1164,3,109,54,0,1164,1165,3,87,43,0,1165,1166,3,125,62,0,1166,1167,3,95,47,0,1167,212,1,0,0,0,1168,1169,3,91,45,0,1169,1170,3,115,57,0,1170,1171,3,109,54,0,1171,1172,3,127,63,0,1172,1173,3,111,55,0,1173,1174,3,113,56,0,1174,214,1,0,0,0,1175,1176,3,91,45,0,1176,1177,3,115,57,0,1177,1178,3,109,54,0,1178,1179,3,127,63,0,1179,1180,3,111,55,0,1180,1181,3,113,56,0,1181,1182,3,123,61,0,1182,216,1,0,0,0,1183,1184,3,91,45,0,1184,1185,3,115,57,0,1185,1186,3,111,55,0,1186,1187,3,111,55,0,1187,1188,3,103,51,0,1188,1189,3,125,62,0,1189,218,1,0,0,0,1190,1191,3,91,45,0,1191,1192,3,115,57,0,1192,1193,3,111,55,0,1193,1194,3,117,58,0,1194,1195,3,87,43,0,1195,1196,3,91,45,0,1196,1197,3,125,62,0,1197,220,1,0,0,0,1198,1199,3,91,45,0,1199,1200,3,115,57,0,1200,1201,3,113,56,0,1201,1202,3,93,46,0,1202,1203,3,103,51,0,1203,1204,3,125,62,0,1204,1205,3,103,51,0,1205,1206,3,115,57,0,1206,1207,3,113,56,0,1207,1208,3,87,43,0,1208,1209,3,109,54,0,1209,222,1,0,0,0,1210,1211,3,91,45,0,1211,1212,3,115,57,0,1212,1213,3,113,56,0,1213,1214,3,97,48,0,1214,1215,3,109,54,0,1215,1216,3,103,51,0,1216,1217,3,91,45,0,1217,1218,3,125,62,0,1218,224,1,0,0,0,1219,1220,3,91,45,0,1220,1221,3,115,57,0,1221,1222,3,113,56,0,1222,1223,3,113,56,0,1223,1224,3,95,47,0,1224,1225,3,91,45,0,1225,1226,3,125,62,0,1226,226,1,0,0,0,1227,1228,3,91,45,0,1228,1229,3,115,57,0,1229,1230,3,113,56,0,1230,1231,3,123,61,0,1231,1232,3,125,62,0,1232,1233,3,121,60,0,1233,1234,3,87,43,0,1234,1235,3,103,51,0,1235,1236,3,113,56,0,1236,1237,3,125,62,0,1237,228,1,0,0,0,1238,1239,3,91,45,0,1239,1240,3,115,57,0,1240,1241,3,113,56,0,1241,1242,3,123,61,0,1242,1243,3,127,63,0,1243,1244,3,111,55,0,1244,1245,3,95,47,0,1245,1246,3,121,60,0,1246,230,1,0,0,0,1247,1248,3,91,45,0,1248,1249,3,115,57,0,1249,1250,3,129,64,0,1250,1251,3,95,47,0,1251,1252,3,121,60,0,1252,232,1,0,0,0,1253,1254,3,91,45,0,1254,1255,3,121,60,0,1255,1256,3,95,47,0,1256,1257,3,87,43,0,1257,1258,3,125,62,0,1258,1259,3,95,47,0,1259,234,1,0,0,0,1260,1261,3,91,45,0,1261,1262,3,121,60,0,1262,1263,3,115,57,0,1263,1264,3,123,61,0,1264,1265,3,123,61,0,1265,236,1,0,0,0,1266,1267,3,91,45,0,1267,1268,3,127,63,0,1268,1269,3,89,44,0,1269,1270,3,95,47,0,1270,238,1,0,0,0,1271,1272,3,91,45,0,1272,1273,3,127,63,0,1273,1274,3,121,60,0,1274,1275,3,121,60,0,1275,1276,3,95,47,0,1276,1277,3,113,56,0,1277,1278,3,125,62,0,1278,240,1,0,0,0,1279,1280,3,91,45,0,1280,1281,3,127,63,0,1281,1282,3,121,60,0,1282,1283,3,121,60,0,1283,1284,3,95,47,0,1284,1285,3,113,56,0,1285,1286,3,125,62,0,1286,1287,5,95,0,0,1287,1288,3,93,46,0,1288,1289,3,87,43,0,1289,1290,3,125,62,0,1290,1291,3,95,47,0,1291,242,1,0,0,0,1292,1293,3,91,45,0,1293,1294,3,127,63,0,1294,1295,3,121,60,0,1295,1296,3,121,60,0,1296,1297,3,95,47,0,1297,1298,3,113,56,0,1298,1299,3,125,62,0,1299,1300,5,95,0,0,1300,1301,3,125,62,0,1301,1302,3,103,51,0,1302,1303,3,111,55,0,1303,1304,3,95,47,0,1304,244,1,0,0,0,1305,1306,3,91,45,0,1306,1307,3,127,63,0,1307,1308,3,121,60,0,1308,1309,3,121,60,0,1309,1310,3,95,47,0,1310,1311,3,113,56,0,1311,1312,3,125,62,0,1312,1313,5,95,0,0,1313,1314,3,125,62,0,1314,1315,3,103,51,0,1315,1316,3,111,55,0,1316,1317,3,95,47,0,1317,1318,3,123,61,0,1318,1319,3,125,62,0,1319,1320,3,87,43,0,1320,1321,3,111,55,0,1321,1322,3,117,58,0,1322,246,1,0,0,0,1323,1324,3,93,46,0,1324,1325,3,87,43,0,1325,1326,3,125,62,0,1326,1327,3,87,43,0,1327,248,1,0,0,0,1328,1329,3,93,46,0,1329,1330,3,87,43,0,1330,1331,3,125,62,0,1331,1332,3,87,43,0,1332,1333,3,89,44,0,1333,1334,3,87,43,0,1334,1335,3,123,61,0,1335,1336,3,95,47,0,1336,250,1,0,0,0,1337,1338,3,93,46,0,1338,1339,3,95,47,0,1339,1340,3,91,45,0,1340,1341,3,103,51,0,1341,1342,3,111,55,0,1342,1343,3,87,43,0,1343,1344,3,109,54,0,1344,252,1,0,0,0,1345,1346,3,93,46,0,1346,1347,3,95,47,0,1347,1348,3,91,45,0,1348,1349,3,109,54,0,1349,1350,3,87,43,0,1350,1351,3,121,60,0,1351,1352,3,95,47,0,1352,254,1,0,0,0,1353,1354,3,93,46,0,1354,1355,3,95,47,0,1355,1356,3,97,48,0,1356,1357,3,87,43,0,1357,1358,3,127,63,0,1358,1359,3,109,54,0,1359,1360,3,125,62,0,1360,256,1,0,0,0,1361,1362,3,93,46,0,1362,1363,3,95,47,0,1363,1364,3,97,48,0,1364,1365,3,95,47,0,1365,1366,3,121,60,0,1366,1367,3,121,60,0,1367,1368,3,87,43,0,1368,1369,3,89,44,0,1369,1370,3,109,54,0,1370,1371,3,95,47,0,1371,258,1,0,0,0,1372,1373,3,93,46,0,1373,1374,3,95,47,0,1374,1375,3,97,48,0,1375,1376,3,95,47,0,1376,1377,3,121,60,0,1377,1378,3,121,60,0,1378,1379,3,95,47,0,1379,1380,3,93,46,0,1380,260,1,0,0,0,1381,1382,3,93,46,0,1382,1383,3,95,47,0,1383,1384,3,97,48,0,1384,1385,3,103,51,0,1385,1386,3,113,56,0,1386,1387,3,95,47,0,1387,262,1,0,0,0,1388,1389,3,93,46,0,1389,1390,3,95,47,0,1390,1391,3,109,54,0,1391,1392,3,95,47,0,1392,1393,3,125,62,0,1393,1394,3,95,47,0,1394,264,1,0,0,0,1395,1396,3,93,46,0,1396,1397,3,95,47,0,1397,1398,3,123,61,0,1398,1399,3,91,45,0,1399,266,1,0,0,0,1400,1401,3,93,46,0,1401,1402,3,95,47,0,1402,1403,3,123,61,0,1403,1404,3,91,45,0,1404,1405,3,121,60,0,1405,1406,3,103,51,0,1406,1407,3,89,44,0,1407,1408,3,95,47,0,1408,268,1,0,0,0,1409,1410,3,93,46,0,1410,1411,3,95,47,0,1411,1412,3,125,62,0,1412,1413,3,87,43,0,1413,1414,3,91,45,0,1414,1415,3,101,50,0,1415,270,1,0,0,0,1416,1417,3,93,46,0,1417,1418,3,103,51,0,1418,1419,3,91,45,0,1419,1420,3,125,62,0,1420,272,1,0,0,0,1421,1422,3,93,46,0,1422,1423,3,103,51,0,1423,1424,3,121,60,0,1424,1425,3,95,47,0,1425,1426,3,91,45,0,1426,1427,3,125,62,0,1427,1428,3,115,57,0,1428,1429,3,121,60,0,1429,1430,3,135,67,0,1430,274,1,0,0,0,1431,1432,3,93,46,0,1432,1433,3,103,51,0,1433,1434,3,123,61,0,1434,1435,3,87,43,0,1435,1436,3,89,44,0,1436,1437,3,109,54,0,1437,1438,3,95,47,0,1438,276,1,0,0,0,1439,1440,3,93,46,0,1440,1441,3,103,51,0,1441,1442,3,123,61,0,1442,1443,3,91,45,0,1443,1444,3,87,43,0,1444,1445,3,121,60,0,1445,1446,3,93,46,0,1446,278,1,0,0,0,1447,1448,3,93,46,0,1448,1449,3,103,51,0,1449,1450,3,123,61,0,1450,1451,3,125,62,0,1451,1452,3,103,51,0,1452,1453,3,113,56,0,1453,1454,3,91,45,0,1454,1455,3,125,62,0,1455,280,1,0,0,0,1456,1457,3,93,46,0,1457,1458,3,115,57,0,1458,282,1,0,0,0,1459,1460,3,93,46,0,1460,1461,3,121,60,0,1461,1462,3,115,57,0,1462,1463,3,117,58,0,1463,284,1,0,0,0,1464,1465,3,95,47,0,1465,1466,3,87,43,0,1466,1467,3,91,45,0,1467,1468,3,101,50,0,1468,286,1,0,0,0,1469,1470,3,95,47,0,1470,1471,3,109,54,0,1471,1472,3,123,61,0,1472,1473,3,95,47,0,1473,288,1,0,0,0,1474,1475,3,95,47,0,1475,1476,3,111,55,0,1476,1477,3,117,58,0,1477,1478,3,125,62,0,1478,1479,3,135,67,0,1479,290,1,0,0,0,1480,1481,3,95,47,0,1481,1482,3,111,55,0,1482,1483,3,117,58,0,1483,1484,3,125,62,0,1484,1485,3,135,67,0,1485,1486,5,95,0,0,1486,1487,3,87,43,0,1487,1488,3,91,45,0,1488,1489,3,125,62,0,1489,1490,3,103,51,0,1490,1491,3,115,57,0,1491,1492,3,113,56,0,1492,292,1,0,0,0,1493,1494,3,95,47,0,1494,1495,3,113,56,0,1495,1496,3,91,45,0,1496,1497,3,121,60,0,1497,1498,3,135,67,0,1498,1499,3,117,58,0,1499,1500,3,125,62,0,1500,1501,3,95,47,0,1501,1502,3,93,46,0,1502,294,1,0,0,0,1503,1504,3,95,47,0,1504,1505,3,113,56,0,1505,1506,3,93,46,0,1506,296,1,0,0,0,1507,1508,3,95,47,0,1508,1509,3,113,56,0,1509,1510,3,127,63,0,1510,1511,3,111,55,0,1511,298,1,0,0,0,1512,1513,3,95,47,0,1513,1514,3,121,60,0,1514,1515,3,87,43,0,1515,1516,3,123,61,0,1516,1517,3,95,47,0,1517,300,1,0,0,0,1518,1519,3,95,47,0,1519,1520,3,121,60,0,1520,1521,3,121,60,0,1521,1522,3,115,57,0,1522,1523,3,121,60,0,1523,302,1,0,0,0,1524,1525,3,95,47,0,1525,1526,3,123,61,0,1526,1527,3,91,45,0,1527,1528,3,87,43,0,1528,1529,3,117,58,0,1529,1530,3,95,47,0,1530,304,1,0,0,0,1531,1532,3,95,47,0,1532,1533,3,129,64,0,1533,1534,3,87,43,0,1534,1535,3,109,54,0,1535,1536,3,127,63,0,1536,1537,3,87,43,0,1537,1538,3,125,62,0,1538,1539,3,95,47,0,1539,306,1,0,0,0,1540,1541,3,95,47,0,1541,1542,3,133,66,0,1542,1543,3,91,45,0,1543,1544,3,95,47,0,1544,1545,3,117,58,0,1545,1546,3,125,62,0,1546,308,1,0,0,0,1547,1548,3,95,47,0,1548,1549,3,133,66,0,1549,1550,3,91,45,0,1550,1551,3,109,54,0,1551,1552,3,127,63,0,1552,1553,3,93,46,0,1553,1554,3,95,47,0,1554,310,1,0,0,0,1555,1556,3,95,47,0,1556,1557,3,133,66,0,1557,1558,3,91,45,0,1558,1559,3,109,54,0,1559,1560,3,127,63,0,1560,1561,3,123,61,0,1561,1562,3,103,51,0,1562,1563,3,115,57,0,1563,1564,3,113,56,0,1564,312,1,0,0,0,1565,1566,3,95,47,0,1566,1567,3,133,66,0,1567,1568,3,91,45,0,1568,1569,3,109,54,0,1569,1570,3,127,63,0,1570,1571,3,123,61,0,1571,1572,3,103,51,0,1572,1573,3,129,64,0,1573,1574,3,95,47,0,1574,314,1,0,0,0,1575,1576,3,95,47,0,1576,1577,3,133,66,0,1577,1578,3,103,51,0,1578,1579,3,123,61,0,1579,1580,3,125,62,0,1580,1581,3,123,61,0,1581,316,1,0,0,0,1582,1583,3,95,47,0,1583,1584,3,133,66,0,1584,1585,3,117,58,0,1585,1586,3,109,54,0,1586,1587,3,87,43,0,1587,1588,3,103,51,0,1588,1589,3,113,56,0,1589,318,1,0,0,0,1590,1591,3,95,47,0,1591,1592,3,133,66,0,1592,1593,3,117,58,0,1593,1594,3,115,57,0,1594,1595,3,121,60,0,1595,1596,3,125,62,0,1596,320,1,0,0,0,1597,1598,3,95,47,0,1598,1599,3,133,66,0,1599,1600,3,125,62,0,1600,1601,3,95,47,0,1601,1602,3,121,60,0,1602,1603,3,113,56,0,1603,1604,3,87,43,0,1604,1605,3,109,54,0,1605,322,1,0,0,0,1606,1607,3,97,48,0,1607,1608,3,87,43,0,1608,1609,3,103,51,0,1609,1610,3,109,54,0,1610,324,1,0,0,0,1611,1612,3,97,48,0,1612,1613,3,87,43,0,1613,1614,3,109,54,0,1614,1615,3,123,61,0,1615,1616,3,95,47,0,1616,326,1,0,0,0,1617,1618,3,97,48,0,1618,1619,3,87,43,0,1619,1620,3,111,55,0,1620,1621,3,103,51,0,1621,1622,3,109,54,0,1622,1623,3,135,67,0,1623,328,1,0,0,0,1624,1625,3,97,48,0,1625,1626,3,103,51,0,1626,1627,3,109,54,0,1627,1628,3,125,62,0,1628,1629,3,95,47,0,1629,1630,3,121,60,0,1630,330,1,0,0,0,1631,1632,3,97,48,0,1632,1633,3,103,51,0,1633,1634,3,121,60,0,1634,1635,3,123,61,0,1635,1636,3,125,62,0,1636,332,1,0,0,0,1637,1638,3,97,48,0,1638,1639,3,109,54,0,1639,1640,3,87,43,0,1640,1641,3,125,62,0,1641,1642,3,125,62,0,1642,1643,3,95,47,0,1643,1644,3,113,56,0,1644,334,1,0,0,0,1645,1646,3,97,48,0,1646,1647,3,109,54,0,1647,1648,3,115,57,0,1648,1649,3,131,65,0,1649,336,1,0,0,0,1650,1651,3,97,48,0,1651,1652,3,115,57,0,1652,1653,3,109,54,0,1653,1654,3,109,54,0,1654,1655,3,115,57,0,1655,1656,3,131,65,0,1656,1657,3,103,51,0,1657,1658,3,113,56,0,1658,1659,3,99,49,0,1659,338,1,0,0,0,1660,1661,3,97,48,0,1661,1662,3,115,57,0,1662,1663,3,121,60,0,1663,340,1,0,0,0,1664,1665,3,97,48,0,1665,1666,3,115,57,0,1666,1667,3,121,60,0,1667,1668,3,95,47,0,1668,1669,3,103,51,0,1669,1670,3,99,49,0,1670,1671,3,113,56,0,1671,342,1,0,0,0,1672,1673,3,97,48,0,1673,1674,3,121,60,0,1674,1675,3,115,57,0,1675,1676,3,111,55,0,1676,344,1,0,0,0,1677,1678,3,97,48,0,1678,1679,3,127,63,0,1679,1680,3,109,54,0,1680,1681,3,109,54,0,1681,346,1,0,0,0,1682,1683,3,97,48,0,1683,1684,3,127,63,0,1684,1685,3,113,56,0,1685,1686,3,91,45,0,1686,1687,3,125,62,0,1687,1688,3,103,51,0,1688,1689,3,115,57,0,1689,1690,3,113,56,0,1690,348,1,0,0,0,1691,1692,3,99,49,0,1692,1693,3,109,54,0,1693,1694,3,115,57,0,1694,1695,3,89,44,0,1695,350,1,0,0,0,1696,1697,3,99,49,0,1697,1698,3,109,54,0,1698,1699,3,115,57,0,1699,1700,3,89,44,0,1700,1701,3,87,43,0,1701,1702,3,109,54,0,1702,352,1,0,0,0,1703,1704,3,99,49,0,1704,1705,3,121,60,0,1705,1706,3,87,43,0,1706,1707,3,113,56,0,1707,1708,3,125,62,0,1708,354,1,0,0,0,1709,1710,3,99,49,0,1710,1711,3,121,60,0,1711,1712,3,115,57,0,1712,1713,3,127,63,0,1713,1714,3,117,58,0,1714,356,1,0,0,0,1715,1716,3,99,49,0,1716,1717,3,121,60,0,1717,1718,3,115,57,0,1718,1719,3,127,63,0,1719,1720,3,117,58,0,1720,1721,3,103,51,0,1721,1722,3,113,56,0,1722,1723,3,99,49,0,1723,358,1,0,0,0,1724,1725,3,99,49,0,1725,1726,3,121,60,0,1726,1727,3,115,57,0,1727,1728,3,127,63,0,1728,1729,3,117,58,0,1729,1730,3,123,61,0,1730,360,1,0,0,0,1731,1732,3,101,50,0,1732,1733,3,87,43,0,1733,1734,3,123,61,0,1734,1735,3,101,50,0,1735,362,1,0,0,0,1736,1737,3,101,50,0,1737,1738,3,87,43,0,1738,1739,3,129,64,0,1739,1740,3,103,51,0,1740,1741,3,113,56,0,1741,1742,3,99,49,0,1742,364,1,0,0,0,1743,1744,3,101,50,0,1744,1745,3,115,57,0,1745,1746,3,117,58,0,1746,366,1,0,0,0,1747,1748,3,103,51,0,1748,1749,3,97,48,0,1749,368,1,0,0,0,1750,1751,3,103,51,0,1751,1752,3,99,49,0,1752,1753,3,113,56,0,1753,1754,3,115,57,0,1754,1755,3,121,60,0,1755,1756,3,95,47,0,1756,370,1,0,0,0,1757,1758,3,103,51,0,1758,1759,3,109,54,0,1759,1760,3,103,51,0,1760,1761,3,107,53,0,1761,1762,3,95,47,0,1762,372,1,0,0,0,1763,1764,3,103,51,0,1764,1765,3,111,55,0,1765,1766,3,111,55,0,1766,1767,3,95,47,0,1767,1768,3,93,46,0,1768,1769,3,103,51,0,1769,1770,3,87,43,0,1770,1771,3,125,62,0,1771,1772,3,95,47,0,1772,374,1,0,0,0,1773,1774,3,103,51,0,1774,1775,3,111,55,0,1775,1776,3,117,58,0,1776,1777,3,115,57,0,1777,1778,3,121,60,0,1778,1779,3,125,62,0,1779,376,1,0,0,0,1780,1781,3,103,51,0,1781,1782,3,113,56,0,1782,378,1,0,0,0,1783,1784,3,103,51,0,1784,1785,3,113,56,0,1785,1786,3,91,45,0,1786,1787,3,121,60,0,1787,1788,3,95,47,0,1788,1789,3,111,55,0,1789,1790,3,95,47,0,1790,1791,3,113,56,0,1791,1792,3,125,62,0,1792,1793,3,87,43,0,1793,1794,3,109,54,0,1794,380,1,0,0,0,1795,1796,3,103,51,0,1796,1797,3,113,56,0,1797,1798,3,93,46,0,1798,1799,3,95,47,0,1799,1800,3,133,66,0,1800,382,1,0,0,0,1801,1802,3,103,51,0,1802,1803,3,113,56,0,1803,1804,3,93,46,0,1804,1805,3,95,47,0,1805,1806,3,133,66,0,1806,1807,3,95,47,0,1807,1808,3,93,46,0,1808,384,1,0,0,0,1809,1810,3,103,51,0,1810,1811,3,113,56,0,1811,1812,3,101,50,0,1812,1813,3,95,47,0,1813,1814,3,121,60,0,1814,1815,3,103,51,0,1815,1816,3,125,62,0,1816,1817,3,123,61,0,1817,386,1,0,0,0,1818,1819,3,103,51,0,1819,1820,3,113,56,0,1820,1821,3,103,51,0,1821,1822,3,125,62,0,1822,1823,3,103,51,0,1823,1824,3,87,43,0,1824,1825,3,109,54,0,1825,388,1,0,0,0,1826,1827,3,103,51,0,1827,1828,3,113,56,0,1828,1829,3,103,51,0,1829,1830,3,125,62,0,1830,1831,3,103,51,0,1831,1832,3,87,43,0,1832,1833,3,109,54,0,1833,1834,3,109,54,0,1834,1835,3,135,67,0,1835,390,1,0,0,0,1836,1837,3,103,51,0,1837,1838,3,113,56,0,1838,1839,3,113,56,0,1839,1840,3,95,47,0,1840,1841,3,121,60,0,1841,392,1,0,0,0,1842,1843,3,103,51,0,1843,1844,3,113,56,0,1844,1845,3,123,61,0,1845,1846,3,95,47,0,1846,1847,3,121,60,0,1847,1848,3,125,62,0,1848,394,1,0,0,0,1849,1850,3,103,51,0,1850,1851,3,113,56,0,1851,1852,3,123,61,0,1852,1853,3,125,62,0,1853,1854,3,95,47,0,1854,1855,3,87,43,0,1855,1856,3,93,46,0,1856,396,1,0,0,0,1857,1858,3,103,51,0,1858,1859,3,113,56,0,1859,1860,3,125,62,0,1860,1861,3,95,47,0,1861,1862,3,121,60,0,1862,1863,3,123,61,0,1863,1864,3,95,47,0,1864,1865,3,91,45,0,1865,1866,3,125,62,0,1866,398,1,0,0,0,1867,1868,3,103,51,0,1868,1869,3,113,56,0,1869,1870,3,125,62,0,1870,1871,3,115,57,0,1871,400,1,0,0,0,1872,1873,3,103,51,0,1873,1874,3,123,61,0,1874,402,1,0,0,0,1875,1876,3,103,51,0,1876,1877,3,123,61,0,1877,1878,3,113,56,0,1878,1879,3,127,63,0,1879,1880,3,109,54,0,1880,1881,3,109,54,0,1881,404,1,0,0,0,1882,1883,3,105,52,0,1883,1884,3,115,57,0,1884,1885,3,103,51,0,1885,1886,3,113,56,0,1886,406,1,0,0,0,1887,1888,3,105,52,0,1888,1889,3,123,61,0,1889,1890,3,115,57,0,1890,1891,3,113,56,0,1891,1892,5,95,0,0,1892,1893,3,95,47,0,1893,1894,3,133,66,0,1894,1895,3,103,51,0,1895,1896,3,123,61,0,1896,1897,3,125,62,0,1897,1898,3,123,61,0,1898,408,1,0,0,0,1899,1900,3,105,52,0,1900,1901,3,123,61,0,1901,1902,3,115,57,0,1902,1903,3,113,56,0,1903,1904,5,95,0,0,1904,1905,3,119,59,0,1905,1906,3,127,63,0,1906,1907,3,95,47,0,1907,1908,3,121,60,0,1908,1909,3,135,67,0,1909,410,1,0,0,0,1910,1911,3,105,52,0,1911,1912,3,123,61,0,1912,1913,3,115,57,0,1913,1914,3,113,56,0,1914,1915,5,95,0,0,1915,1916,3,129,64,0,1916,1917,3,87,43,0,1917,1918,3,109,54,0,1918,1919,3,127,63,0,1919,1920,3,95,47,0,1920,412,1,0,0,0,1921,1922,3,107,53,0,1922,1923,3,95,47,0,1923,1924,3,135,67,0,1924,414,1,0,0,0,1925,1926,3,109,54,0,1926,1927,3,87,43,0,1927,1928,3,123,61,0,1928,1929,3,125,62,0,1929,416,1,0,0,0,1930,1931,3,109,54,0,1931,1932,3,95,47,0,1932,1933,3,97,48,0,1933,1934,3,125,62,0,1934,418,1,0,0,0,1935,1936,3,109,54,0,1936,1937,3,95,47,0,1937,1938,3,99,49,0,1938,1939,3,87,43,0,1939,1940,3,91,45,0,1940,1941,3,135,67,0,1941,420,1,0,0,0,1942,1943,3,109,54,0,1943,1944,3,103,51,0,1944,1945,3,107,53,0,1945,1946,3,95,47,0,1946,422,1,0,0,0,1947,1948,3,109,54,0,1948,1949,3,103,51,0,1949,1950,3,111,55,0,1950,1951,3,103,51,0,1951,1952,3,125,62,0,1952,424,1,0,0,0,1953,1954,3,109,54,0,1954,1955,3,103,51,0,1955,1956,3,123,61,0,1956,1957,3,125,62,0,1957,426,1,0,0,0,1958,1959,3,109,54,0,1959,1960,3,115,57,0,1960,1961,3,91,45,0,1961,1962,3,87,43,0,1962,1963,3,109,54,0,1963,428,1,0,0,0,1964,1965,3,111,55,0,1965,1966,3,87,43,0,1966,1967,3,113,56,0,1967,1968,3,87,43,0,1968,1969,3,99,49,0,1969,1970,3,95,47,0,1970,430,1,0,0,0,1971,1972,3,111,55,0,1972,1973,3,87,43,0,1973,1974,3,125,62,0,1974,1975,3,91,45,0,1975,1976,3,101,50,0,1976,432,1,0,0,0,1977,1978,3,111,55,0,1978,1979,3,87,43,0,1979,1980,3,125,62,0,1980,1981,3,91,45,0,1981,1982,3,101,50,0,1982,1983,3,95,47,0,1983,1984,3,123,61,0,1984,434,1,0,0,0,1985,1986,3,111,55,0,1986,1987,3,87,43,0,1987,1988,3,125,62,0,1988,1989,3,91,45,0,1989,1990,3,101,50,0,1990,1991,5,95,0,0,1991,1992,3,121,60,0,1992,1993,3,95,47,0,1993,1994,3,91,45,0,1994,1995,3,115,57,0,1995,1996,3,99,49,0,1996,1997,3,113,56,0,1997,1998,3,103,51,0,1998,1999,3,137,68,0,1999,2e3,3,95,47,0,2e3,436,1,0,0,0,2001,2002,3,111,55,0,2002,2003,3,95,47,0,2003,2004,3,87,43,0,2004,2005,3,123,61,0,2005,2006,3,127,63,0,2006,2007,3,121,60,0,2007,2008,3,95,47,0,2008,2009,3,123,61,0,2009,438,1,0,0,0,2010,2011,3,111,55,0,2011,2012,3,103,51,0,2012,2013,3,91,45,0,2013,2014,3,121,60,0,2014,2015,3,115,57,0,2015,2016,3,123,61,0,2016,2017,3,95,47,0,2017,2018,3,91,45,0,2018,2019,3,115,57,0,2019,2020,3,113,56,0,2020,2021,3,93,46,0,2021,2022,3,123,61,0,2022,440,1,0,0,0,2023,2024,3,111,55,0,2024,2025,3,103,51,0,2025,2026,3,109,54,0,2026,2027,3,109,54,0,2027,2028,3,103,51,0,2028,2029,3,123,61,0,2029,2030,3,95,47,0,2030,2031,3,91,45,0,2031,2032,3,115,57,0,2032,2033,3,113,56,0,2033,2034,3,93,46,0,2034,2035,3,123,61,0,2035,442,1,0,0,0,2036,2037,3,111,55,0,2037,2038,3,115,57,0,2038,2039,3,93,46,0,2039,2040,3,103,51,0,2040,2041,3,97,48,0,2041,2042,3,135,67,0,2042,444,1,0,0,0,2043,2044,3,113,56,0,2044,2045,3,87,43,0,2045,2046,3,113,56,0,2046,2047,3,115,57,0,2047,2048,3,123,61,0,2048,2049,3,95,47,0,2049,2050,3,91,45,0,2050,2051,3,115,57,0,2051,2052,3,113,56,0,2052,2053,3,93,46,0,2053,2054,3,123,61,0,2054,446,1,0,0,0,2055,2056,3,113,56,0,2056,2057,3,87,43,0,2057,2058,3,125,62,0,2058,2059,3,127,63,0,2059,2060,3,121,60,0,2060,2061,3,87,43,0,2061,2062,3,109,54,0,2062,448,1,0,0,0,2063,2064,3,113,56,0,2064,2065,3,95,47,0,2065,2066,3,133,66,0,2066,2067,3,125,62,0,2067,450,1,0,0,0,2068,2069,3,113,56,0,2069,2070,3,115,57,0,2070,452,1,0,0,0,2071,2072,3,113,56,0,2072,2073,3,115,57,0,2073,2074,3,125,62,0,2074,454,1,0,0,0,2075,2076,3,113,56,0,2076,2077,3,115,57,0,2077,2078,3,125,62,0,2078,2079,3,113,56,0,2079,2080,3,127,63,0,2080,2081,3,109,54,0,2081,2082,3,109,54,0,2082,456,1,0,0,0,2083,2084,3,113,56,0,2084,2085,3,127,63,0,2085,2086,3,109,54,0,2086,2087,3,109,54,0,2087,458,1,0,0,0,2088,2089,3,113,56,0,2089,2090,3,127,63,0,2090,2091,3,109,54,0,2091,2092,3,109,54,0,2092,2093,3,123,61,0,2093,460,1,0,0,0,2094,2095,3,115,57,0,2095,2096,3,89,44,0,2096,2097,3,105,52,0,2097,2098,3,95,47,0,2098,2099,3,91,45,0,2099,2100,3,125,62,0,2100,462,1,0,0,0,2101,2102,3,115,57,0,2102,2103,3,97,48,0,2103,464,1,0,0,0,2104,2105,3,115,57,0,2105,2106,3,97,48,0,2106,2107,3,97,48,0,2107,2108,3,123,61,0,2108,2109,3,95,47,0,2109,2110,3,125,62,0,2110,466,1,0,0,0,2111,2112,3,115,57,0,2112,2113,3,111,55,0,2113,2114,3,103,51,0,2114,2115,3,125,62,0,2115,468,1,0,0,0,2116,2117,3,115,57,0,2117,2118,3,113,56,0,2118,470,1,0,0,0,2119,2120,3,115,57,0,2120,2121,3,113,56,0,2121,2122,3,95,47,0,2122,472,1,0,0,0,2123,2124,3,115,57,0,2124,2125,3,113,56,0,2125,2126,3,109,54,0,2126,2127,3,135,67,0,2127,474,1,0,0,0,2128,2129,3,115,57,0,2129,2130,3,117,58,0,2130,2131,3,125,62,0,2131,2132,3,103,51,0,2132,2133,3,115,57,0,2133,2134,3,113,56,0,2134,476,1,0,0,0,2135,2136,3,115,57,0,2136,2137,3,117,58,0,2137,2138,3,125,62,0,2138,2139,3,103,51,0,2139,2140,3,115,57,0,2140,2141,3,113,56,0,2141,2142,3,87,43,0,2142,2143,3,109,54,0,2143,478,1,0,0,0,2144,2145,3,115,57,0,2145,2146,3,121,60,0,2146,480,1,0,0,0,2147,2148,3,115,57,0,2148,2149,3,121,60,0,2149,2150,3,93,46,0,2150,2151,3,95,47,0,2151,2152,3,121,60,0,2152,482,1,0,0,0,2153,2154,3,115,57,0,2154,2155,3,125,62,0,2155,2156,3,101,50,0,2156,2157,3,95,47,0,2157,2158,3,121,60,0,2158,2159,3,123,61,0,2159,484,1,0,0,0,2160,2161,3,115,57,0,2161,2162,3,127,63,0,2162,2163,3,125,62,0,2163,2164,3,95,47,0,2164,2165,3,121,60,0,2165,486,1,0,0,0,2166,2167,3,115,57,0,2167,2168,3,129,64,0,2168,2169,3,95,47,0,2169,2170,3,121,60,0,2170,488,1,0,0,0,2171,2172,3,117,58,0,2172,2173,3,87,43,0,2173,2174,3,121,60,0,2174,2175,3,87,43,0,2175,2176,3,109,54,0,2176,2177,3,109,54,0,2177,2178,3,95,47,0,2178,2179,3,109,54,0,2179,490,1,0,0,0,2180,2181,3,117,58,0,2181,2182,3,87,43,0,2182,2183,3,121,60,0,2183,2184,3,125,62,0,2184,2185,3,103,51,0,2185,2186,3,125,62,0,2186,2187,3,103,51,0,2187,2188,3,115,57,0,2188,2189,3,113,56,0,2189,492,1,0,0,0,2190,2191,3,117,58,0,2191,2192,3,87,43,0,2192,2193,3,123,61,0,2193,2194,3,123,61,0,2194,2195,3,103,51,0,2195,2196,3,113,56,0,2196,2197,3,99,49,0,2197,494,1,0,0,0,2198,2199,3,117,58,0,2199,2200,3,87,43,0,2200,2201,3,123,61,0,2201,2202,3,123,61,0,2202,2203,3,131,65,0,2203,2204,3,115,57,0,2204,2205,3,121,60,0,2205,2206,3,93,46,0,2206,496,1,0,0,0,2207,2208,3,117,58,0,2208,2209,3,87,43,0,2209,2210,3,123,61,0,2210,2211,3,125,62,0,2211,498,1,0,0,0,2212,2213,3,117,58,0,2213,2214,3,87,43,0,2214,2215,3,125,62,0,2215,2216,3,125,62,0,2216,2217,3,95,47,0,2217,2218,3,121,60,0,2218,2219,3,113,56,0,2219,500,1,0,0,0,2220,2221,3,117,58,0,2221,2222,3,95,47,0,2222,2223,3,121,60,0,2223,502,1,0,0,0,2224,2225,3,117,58,0,2225,2226,3,95,47,0,2226,2227,3,121,60,0,2227,2228,3,111,55,0,2228,2229,3,127,63,0,2229,2230,3,125,62,0,2230,2231,3,95,47,0,2231,504,1,0,0,0,2232,2233,3,117,58,0,2233,2234,3,109,54,0,2234,2235,3,87,43,0,2235,2236,3,113,56,0,2236,506,1,0,0,0,2237,2238,3,117,58,0,2238,2239,3,115,57,0,2239,2240,3,115,57,0,2240,2241,3,109,54,0,2241,508,1,0,0,0,2242,2243,3,117,58,0,2243,2244,3,121,60,0,2244,2245,3,87,43,0,2245,2246,3,99,49,0,2246,2247,3,111,55,0,2247,2248,3,87,43,0,2248,510,1,0,0,0,2249,2250,3,117,58,0,2250,2251,3,121,60,0,2251,2252,3,95,47,0,2252,2253,3,91,45,0,2253,2254,3,95,47,0,2254,2255,3,93,46,0,2255,2256,3,103,51,0,2256,2257,3,113,56,0,2257,2258,3,99,49,0,2258,512,1,0,0,0,2259,2260,3,117,58,0,2260,2261,3,121,60,0,2261,2262,3,95,47,0,2262,2263,3,123,61,0,2263,2264,3,115,57,0,2264,2265,3,121,60,0,2265,2266,3,125,62,0,2266,514,1,0,0,0,2267,2268,3,117,58,0,2268,2269,3,121,60,0,2269,2270,3,103,51,0,2270,2271,3,111,55,0,2271,2272,3,87,43,0,2272,2273,3,121,60,0,2273,2274,3,135,67,0,2274,516,1,0,0,0,2275,2276,3,117,58,0,2276,2277,3,121,60,0,2277,2278,3,103,51,0,2278,2279,3,129,64,0,2279,2280,3,103,51,0,2280,2281,3,109,54,0,2281,2282,3,95,47,0,2282,2283,3,99,49,0,2283,2284,3,95,47,0,2284,2285,3,123,61,0,2285,518,1,0,0,0,2286,2287,3,117,58,0,2287,2288,3,121,60,0,2288,2289,3,115,57,0,2289,2290,3,91,45,0,2290,2291,3,95,47,0,2291,2292,3,123,61,0,2292,2293,3,123,61,0,2293,520,1,0,0,0,2294,2295,3,119,59,0,2295,2296,3,127,63,0,2296,2297,3,95,47,0,2297,2298,3,127,63,0,2298,2299,3,95,47,0,2299,522,1,0,0,0,2300,2301,3,121,60,0,2301,2302,3,87,43,0,2302,2303,3,103,51,0,2303,2304,3,123,61,0,2304,2305,3,95,47,0,2305,524,1,0,0,0,2306,2307,3,121,60,0,2307,2308,3,87,43,0,2308,2309,3,113,56,0,2309,2310,3,99,49,0,2310,2311,3,95,47,0,2311,526,1,0,0,0,2312,2313,3,121,60,0,2313,2314,3,95,47,0,2314,2315,3,93,46,0,2315,2316,3,127,63,0,2316,2317,3,91,45,0,2317,2318,3,95,47,0,2318,528,1,0,0,0,2319,2320,3,121,60,0,2320,2321,3,95,47,0,2321,2322,3,97,48,0,2322,2323,3,95,47,0,2323,2324,3,121,60,0,2324,2325,3,95,47,0,2325,2326,3,113,56,0,2326,2327,3,91,45,0,2327,2328,3,95,47,0,2328,2329,3,123,61,0,2329,530,1,0,0,0,2330,2331,3,121,60,0,2331,2332,3,95,47,0,2332,2333,3,99,49,0,2333,2334,3,95,47,0,2334,2335,3,133,66,0,2335,2336,3,117,58,0,2336,532,1,0,0,0,2337,2338,3,121,60,0,2338,2339,3,95,47,0,2339,2340,3,103,51,0,2340,2341,3,113,56,0,2341,2342,3,93,46,0,2342,2343,3,95,47,0,2343,2344,3,133,66,0,2344,534,1,0,0,0,2345,2346,3,121,60,0,2346,2347,3,95,47,0,2347,2348,3,109,54,0,2348,2349,3,95,47,0,2349,2350,3,87,43,0,2350,2351,3,123,61,0,2351,2352,3,95,47,0,2352,536,1,0,0,0,2353,2354,3,121,60,0,2354,2355,3,95,47,0,2355,2356,3,111,55,0,2356,2357,3,115,57,0,2357,2358,3,129,64,0,2358,2359,3,95,47,0,2359,538,1,0,0,0,2360,2361,3,121,60,0,2361,2362,3,95,47,0,2362,2363,3,113,56,0,2363,2364,3,87,43,0,2364,2365,3,111,55,0,2365,2366,3,95,47,0,2366,540,1,0,0,0,2367,2368,3,121,60,0,2368,2369,3,95,47,0,2369,2370,3,117,58,0,2370,2371,3,95,47,0,2371,2372,3,87,43,0,2372,2373,3,125,62,0,2373,2374,3,87,43,0,2374,2375,3,89,44,0,2375,2376,3,109,54,0,2376,2377,3,95,47,0,2377,542,1,0,0,0,2378,2379,3,121,60,0,2379,2380,3,95,47,0,2380,2381,3,117,58,0,2381,2382,3,109,54,0,2382,2383,3,87,43,0,2383,2384,3,91,45,0,2384,2385,3,95,47,0,2385,544,1,0,0,0,2386,2387,3,121,60,0,2387,2388,3,95,47,0,2388,2389,3,117,58,0,2389,2390,3,109,54,0,2390,2391,3,103,51,0,2391,2392,3,91,45,0,2392,2393,3,87,43,0,2393,2394,3,125,62,0,2394,2395,3,103,51,0,2395,2396,3,115,57,0,2396,2397,3,113,56,0,2397,546,1,0,0,0,2398,2399,3,121,60,0,2399,2400,3,95,47,0,2400,2401,3,123,61,0,2401,2402,3,95,47,0,2402,2403,3,125,62,0,2403,548,1,0,0,0,2404,2405,3,121,60,0,2405,2406,3,95,47,0,2406,2407,3,123,61,0,2407,2408,3,115,57,0,2408,2409,3,127,63,0,2409,2410,3,121,60,0,2410,2411,3,91,45,0,2411,2412,3,95,47,0,2412,550,1,0,0,0,2413,2414,3,121,60,0,2414,2415,3,95,47,0,2415,2416,3,123,61,0,2416,2417,3,117,58,0,2417,2418,3,95,47,0,2418,2419,3,91,45,0,2419,2420,3,125,62,0,2420,552,1,0,0,0,2421,2422,3,121,60,0,2422,2423,3,95,47,0,2423,2424,3,123,61,0,2424,2425,3,125,62,0,2425,2426,3,115,57,0,2426,2427,3,121,60,0,2427,2428,3,95,47,0,2428,554,1,0,0,0,2429,2430,3,121,60,0,2430,2431,3,95,47,0,2431,2432,3,123,61,0,2432,2433,3,125,62,0,2433,2434,3,121,60,0,2434,2435,3,103,51,0,2435,2436,3,91,45,0,2436,2437,3,125,62,0,2437,556,1,0,0,0,2438,2439,3,121,60,0,2439,2440,3,95,47,0,2440,2441,3,123,61,0,2441,2442,3,127,63,0,2442,2443,3,109,54,0,2443,2444,3,125,62,0,2444,558,1,0,0,0,2445,2446,3,121,60,0,2446,2447,3,95,47,0,2447,2448,3,125,62,0,2448,2449,3,127,63,0,2449,2450,3,121,60,0,2450,2451,3,113,56,0,2451,560,1,0,0,0,2452,2453,3,121,60,0,2453,2454,3,95,47,0,2454,2455,3,125,62,0,2455,2456,3,127,63,0,2456,2457,3,121,60,0,2457,2458,3,113,56,0,2458,2459,3,103,51,0,2459,2460,3,113,56,0,2460,2461,3,99,49,0,2461,562,1,0,0,0,2462,2463,3,121,60,0,2463,2464,3,95,47,0,2464,2465,3,129,64,0,2465,2466,3,95,47,0,2466,2467,3,121,60,0,2467,2468,3,125,62,0,2468,564,1,0,0,0,2469,2470,3,121,60,0,2470,2471,3,95,47,0,2471,2472,3,129,64,0,2472,2473,3,115,57,0,2473,2474,3,107,53,0,2474,2475,3,95,47,0,2475,566,1,0,0,0,2476,2477,3,121,60,0,2477,2478,3,103,51,0,2478,2479,3,99,49,0,2479,2480,3,101,50,0,2480,2481,3,125,62,0,2481,568,1,0,0,0,2482,2483,3,121,60,0,2483,2484,3,109,54,0,2484,2485,3,103,51,0,2485,2486,3,107,53,0,2486,2487,3,95,47,0,2487,570,1,0,0,0,2488,2489,3,121,60,0,2489,2490,3,115,57,0,2490,2491,3,109,54,0,2491,2492,3,109,54,0,2492,2493,3,89,44,0,2493,2494,3,87,43,0,2494,2495,3,91,45,0,2495,2496,3,107,53,0,2496,572,1,0,0,0,2497,2498,3,121,60,0,2498,2499,3,115,57,0,2499,2500,3,109,54,0,2500,2501,3,109,54,0,2501,2502,3,127,63,0,2502,2503,3,117,58,0,2503,574,1,0,0,0,2504,2505,3,121,60,0,2505,2506,3,115,57,0,2506,2507,3,131,65,0,2507,576,1,0,0,0,2508,2509,3,121,60,0,2509,2510,3,115,57,0,2510,2511,3,131,65,0,2511,2512,3,123,61,0,2512,578,1,0,0,0,2513,2514,3,123,61,0,2514,2515,3,87,43,0,2515,2516,3,111,55,0,2516,2517,3,117,58,0,2517,2518,3,109,54,0,2518,2519,3,95,47,0,2519,580,1,0,0,0,2520,2521,3,123,61,0,2521,2522,3,87,43,0,2522,2523,3,129,64,0,2523,2524,3,95,47,0,2524,2525,3,117,58,0,2525,2526,3,115,57,0,2526,2527,3,103,51,0,2527,2528,3,113,56,0,2528,2529,3,125,62,0,2529,582,1,0,0,0,2530,2531,3,123,61,0,2531,2532,3,91,45,0,2532,2533,3,101,50,0,2533,2534,3,95,47,0,2534,2535,3,111,55,0,2535,2536,3,87,43,0,2536,584,1,0,0,0,2537,2538,3,123,61,0,2538,2539,3,95,47,0,2539,2540,3,91,45,0,2540,2541,3,115,57,0,2541,2542,3,113,56,0,2542,2543,3,93,46,0,2543,2544,3,123,61,0,2544,586,1,0,0,0,2545,2546,3,123,61,0,2546,2547,3,95,47,0,2547,2548,3,95,47,0,2548,2549,3,107,53,0,2549,588,1,0,0,0,2550,2551,3,123,61,0,2551,2552,3,95,47,0,2552,2553,3,109,54,0,2553,2554,3,95,47,0,2554,2555,3,91,45,0,2555,2556,3,125,62,0,2556,590,1,0,0,0,2557,2558,3,123,61,0,2558,2559,3,95,47,0,2559,2560,3,111,55,0,2560,2561,3,103,51,0,2561,592,1,0,0,0,2562,2563,3,123,61,0,2563,2564,3,95,47,0,2564,2565,3,125,62,0,2565,594,1,0,0,0,2566,2567,3,123,61,0,2567,2568,3,95,47,0,2568,2569,3,125,62,0,2569,2570,3,123,61,0,2570,596,1,0,0,0,2571,2572,3,123,61,0,2572,2573,3,101,50,0,2573,2574,3,115,57,0,2574,2575,3,131,65,0,2575,598,1,0,0,0,2576,2577,3,123,61,0,2577,2578,3,107,53,0,2578,2579,3,103,51,0,2579,2580,3,117,58,0,2580,600,1,0,0,0,2581,2582,3,123,61,0,2582,2583,3,115,57,0,2583,2584,3,127,63,0,2584,2585,3,121,60,0,2585,2586,3,91,45,0,2586,2587,3,95,47,0,2587,602,1,0,0,0,2588,2589,3,123,61,0,2589,2590,3,125,62,0,2590,2591,3,121,60,0,2591,2592,3,95,47,0,2592,2593,3,87,43,0,2593,2594,3,111,55,0,2594,604,1,0,0,0,2595,2596,3,123,61,0,2596,2597,3,125,62,0,2597,2598,3,121,60,0,2598,2599,3,127,63,0,2599,2600,3,91,45,0,2600,2601,3,125,62,0,2601,606,1,0,0,0,2602,2603,3,123,61,0,2603,2604,3,127,63,0,2604,2605,3,89,44,0,2605,2606,3,119,59,0,2606,2607,3,127,63,0,2607,2608,3,95,47,0,2608,2609,3,121,60,0,2609,2610,3,135,67,0,2610,608,1,0,0,0,2611,2612,3,123,61,0,2612,2613,3,127,63,0,2613,2614,3,89,44,0,2614,2615,3,123,61,0,2615,2616,3,95,47,0,2616,2617,3,125,62,0,2617,610,1,0,0,0,2618,2619,3,123,61,0,2619,2620,3,135,67,0,2620,2621,3,111,55,0,2621,2622,3,89,44,0,2622,2623,3,115,57,0,2623,2624,3,109,54,0,2624,2625,3,123,61,0,2625,612,1,0,0,0,2626,2627,3,123,61,0,2627,2628,3,135,67,0,2628,2629,3,111,55,0,2629,2630,3,111,55,0,2630,2631,3,95,47,0,2631,2632,3,125,62,0,2632,2633,3,121,60,0,2633,2634,3,103,51,0,2634,2635,3,91,45,0,2635,614,1,0,0,0,2636,2637,3,123,61,0,2637,2638,3,135,67,0,2638,2639,3,113,56,0,2639,2640,3,91,45,0,2640,616,1,0,0,0,2641,2642,3,123,61,0,2642,2643,3,135,67,0,2643,2644,3,123,61,0,2644,2645,3,125,62,0,2645,2646,3,95,47,0,2646,2647,3,111,55,0,2647,618,1,0,0,0,2648,2649,3,125,62,0,2649,2650,3,87,43,0,2650,2651,3,89,44,0,2651,2652,3,109,54,0,2652,2653,3,95,47,0,2653,620,1,0,0,0,2654,2655,3,125,62,0,2655,2656,3,87,43,0,2656,2657,3,89,44,0,2657,2658,3,109,54,0,2658,2659,3,95,47,0,2659,2660,3,123,61,0,2660,622,1,0,0,0,2661,2662,3,125,62,0,2662,2663,3,87,43,0,2663,2664,3,89,44,0,2664,2665,3,109,54,0,2665,2666,3,95,47,0,2666,2667,3,123,61,0,2667,2668,3,87,43,0,2668,2669,3,111,55,0,2669,2670,3,117,58,0,2670,2671,3,109,54,0,2671,2672,3,95,47,0,2672,624,1,0,0,0,2673,2674,3,125,62,0,2674,2675,3,87,43,0,2675,2676,3,89,44,0,2676,2677,3,109,54,0,2677,2678,3,95,47,0,2678,2679,3,123,61,0,2679,2680,3,125,62,0,2680,2681,3,115,57,0,2681,2682,3,121,60,0,2682,2683,3,95,47,0,2683,626,1,0,0,0,2684,2685,3,125,62,0,2685,2686,3,87,43,0,2686,2687,3,99,49,0,2687,2688,3,99,49,0,2688,2689,3,95,47,0,2689,2690,3,93,46,0,2690,628,1,0,0,0,2691,2692,3,125,62,0,2692,2693,3,95,47,0,2693,2694,3,111,55,0,2694,2695,3,117,58,0,2695,630,1,0,0,0,2696,2697,3,125,62,0,2697,2698,3,95,47,0,2698,2699,3,111,55,0,2699,2700,3,117,58,0,2700,2701,3,115,57,0,2701,2702,3,121,60,0,2702,2703,3,87,43,0,2703,2704,3,121,60,0,2704,2705,3,135,67,0,2705,632,1,0,0,0,2706,2707,3,125,62,0,2707,2708,3,101,50,0,2708,2709,3,95,47,0,2709,2710,3,113,56,0,2710,634,1,0,0,0,2711,2712,3,125,62,0,2712,2713,3,103,51,0,2713,2714,3,95,47,0,2714,2715,3,123,61,0,2715,636,1,0,0,0,2716,2717,3,125,62,0,2717,2718,3,115,57,0,2718,638,1,0,0,0,2719,2720,3,125,62,0,2720,2721,3,115,57,0,2721,2722,3,117,58,0,2722,2723,3,103,51,0,2723,2724,3,91,45,0,2724,640,1,0,0,0,2725,2726,3,125,62,0,2726,2727,3,121,60,0,2727,2728,3,87,43,0,2728,2729,3,113,56,0,2729,2730,3,123,61,0,2730,2731,3,87,43,0,2731,2732,3,91,45,0,2732,2733,3,125,62,0,2733,2734,3,103,51,0,2734,2735,3,115,57,0,2735,2736,3,113,56,0,2736,642,1,0,0,0,2737,2738,3,125,62,0,2738,2739,3,121,60,0,2739,2740,3,103,51,0,2740,2741,3,99,49,0,2741,2742,3,99,49,0,2742,2743,3,95,47,0,2743,2744,3,121,60,0,2744,644,1,0,0,0,2745,2746,3,125,62,0,2746,2747,3,121,60,0,2747,2748,3,127,63,0,2748,2749,3,95,47,0,2749,646,1,0,0,0,2750,2751,3,125,62,0,2751,2752,3,127,63,0,2752,2753,3,117,58,0,2753,2754,3,109,54,0,2754,2755,3,95,47,0,2755,648,1,0,0,0,2756,2757,3,125,62,0,2757,2758,3,135,67,0,2758,2759,3,117,58,0,2759,2760,3,95,47,0,2760,650,1,0,0,0,2761,2762,3,127,63,0,2762,2763,3,113,56,0,2763,2764,3,89,44,0,2764,2765,3,115,57,0,2765,2766,3,127,63,0,2766,2767,3,113,56,0,2767,2768,3,93,46,0,2768,2769,3,95,47,0,2769,2770,3,93,46,0,2770,652,1,0,0,0,2771,2772,3,127,63,0,2772,2773,3,113,56,0,2773,2774,3,91,45,0,2774,2775,3,115,57,0,2775,2776,3,113,56,0,2776,2777,3,93,46,0,2777,2778,3,103,51,0,2778,2779,3,125,62,0,2779,2780,3,103,51,0,2780,2781,3,115,57,0,2781,2782,3,113,56,0,2782,2783,3,87,43,0,2783,2784,3,109,54,0,2784,654,1,0,0,0,2785,2786,3,127,63,0,2786,2787,3,113,56,0,2787,2788,3,103,51,0,2788,2789,3,115,57,0,2789,2790,3,113,56,0,2790,656,1,0,0,0,2791,2792,3,127,63,0,2792,2793,3,113,56,0,2793,2794,3,103,51,0,2794,2795,3,119,59,0,2795,2796,3,127,63,0,2796,2797,3,95,47,0,2797,658,1,0,0,0,2798,2799,3,127,63,0,2799,2800,3,113,56,0,2800,2801,3,107,53,0,2801,2802,3,113,56,0,2802,2803,3,115,57,0,2803,2804,3,131,65,0,2804,2805,3,113,56,0,2805,660,1,0,0,0,2806,2807,3,127,63,0,2807,2808,3,113,56,0,2808,2809,3,111,55,0,2809,2810,3,87,43,0,2810,2811,3,125,62,0,2811,2812,3,91,45,0,2812,2813,3,101,50,0,2813,2814,3,95,47,0,2814,2815,3,93,46,0,2815,662,1,0,0,0,2816,2817,3,127,63,0,2817,2818,3,117,58,0,2818,2819,3,93,46,0,2819,2820,3,87,43,0,2820,2821,3,125,62,0,2821,2822,3,95,47,0,2822,664,1,0,0,0,2823,2824,3,127,63,0,2824,2825,3,117,58,0,2825,2826,3,123,61,0,2826,2827,3,95,47,0,2827,2828,3,121,60,0,2828,2829,3,125,62,0,2829,666,1,0,0,0,2830,2831,3,127,63,0,2831,2832,3,123,61,0,2832,2833,3,95,47,0,2833,668,1,0,0,0,2834,2835,3,127,63,0,2835,2836,3,123,61,0,2836,2837,3,95,47,0,2837,2838,3,121,60,0,2838,670,1,0,0,0,2839,2840,3,127,63,0,2840,2841,3,123,61,0,2841,2842,3,103,51,0,2842,2843,3,113,56,0,2843,2844,3,99,49,0,2844,672,1,0,0,0,2845,2846,3,129,64,0,2846,2847,3,87,43,0,2847,2848,3,91,45,0,2848,2849,3,127,63,0,2849,2850,3,127,63,0,2850,2851,3,111,55,0,2851,674,1,0,0,0,2852,2853,3,129,64,0,2853,2854,3,87,43,0,2854,2855,3,109,54,0,2855,2856,3,127,63,0,2856,2857,3,95,47,0,2857,2858,3,123,61,0,2858,676,1,0,0,0,2859,2860,3,129,64,0,2860,2861,3,87,43,0,2861,2862,3,121,60,0,2862,2863,3,103,51,0,2863,2864,3,87,43,0,2864,2865,3,113,56,0,2865,2866,3,125,62,0,2866,678,1,0,0,0,2867,2868,3,129,64,0,2868,2869,3,103,51,0,2869,2870,3,95,47,0,2870,2871,3,131,65,0,2871,680,1,0,0,0,2872,2873,3,129,64,0,2873,2874,3,103,51,0,2874,2875,3,121,60,0,2875,2876,3,125,62,0,2876,2877,3,127,63,0,2877,2878,3,87,43,0,2878,2879,3,109,54,0,2879,682,1,0,0,0,2880,2881,3,131,65,0,2881,2882,3,101,50,0,2882,2883,3,95,47,0,2883,2884,3,113,56,0,2884,684,1,0,0,0,2885,2886,3,131,65,0,2886,2887,3,101,50,0,2887,2888,3,95,47,0,2888,2889,3,121,60,0,2889,2890,3,95,47,0,2890,686,1,0,0,0,2891,2892,3,131,65,0,2892,2893,3,103,51,0,2893,2894,3,113,56,0,2894,2895,3,93,46,0,2895,2896,3,115,57,0,2896,2897,3,131,65,0,2897,688,1,0,0,0,2898,2899,3,131,65,0,2899,2900,3,103,51,0,2900,2901,3,125,62,0,2901,2902,3,101,50,0,2902,690,1,0,0,0,2903,2904,3,131,65,0,2904,2905,3,103,51,0,2905,2906,3,125,62,0,2906,2907,3,101,50,0,2907,2908,3,115,57,0,2908,2909,3,127,63,0,2909,2910,3,125,62,0,2910,692,1,0,0,0,2911,2912,3,131,65,0,2912,2913,3,121,60,0,2913,2914,3,87,43,0,2914,2915,3,117,58,0,2915,2916,3,117,58,0,2916,2917,3,95,47,0,2917,2918,3,121,60,0,2918,694,1,0,0,0,2919,2920,3,133,66,0,2920,2921,3,115,57,0,2921,2922,3,121,60,0,2922,696,1,0,0,0,2923,2928,8,26,0,0,2924,2925,3,79,39,0,2925,2926,9,0,0,0,2926,2928,1,0,0,0,2927,2923,1,0,0,0,2927,2924,1,0,0,0,2928,698,1,0,0,0,2929,2934,8,27,0,0,2930,2931,3,79,39,0,2931,2932,9,0,0,0,2932,2934,1,0,0,0,2933,2929,1,0,0,0,2933,2930,1,0,0,0,2934,700,1,0,0,0,2935,2939,3,83,41,0,2936,2938,3,697,348,0,2937,2936,1,0,0,0,2938,2941,1,0,0,0,2939,2937,1,0,0,0,2939,2940,1,0,0,0,2940,2942,1,0,0,0,2941,2939,1,0,0,0,2942,2943,3,83,41,0,2943,702,1,0,0,0,2944,2948,3,81,40,0,2945,2947,3,699,349,0,2946,2945,1,0,0,0,2947,2950,1,0,0,0,2948,2946,1,0,0,0,2948,2949,1,0,0,0,2949,2951,1,0,0,0,2950,2948,1,0,0,0,2951,2952,3,81,40,0,2952,704,1,0,0,0,2953,2957,3,61,30,0,2954,2956,9,0,0,0,2955,2954,1,0,0,0,2956,2959,1,0,0,0,2957,2958,1,0,0,0,2957,2955,1,0,0,0,2958,2960,1,0,0,0,2959,2957,1,0,0,0,2960,2961,3,61,30,0,2961,2963,1,0,0,0,2962,2953,1,0,0,0,2963,2964,1,0,0,0,2964,2962,1,0,0,0,2964,2965,1,0,0,0,2965,2967,1,0,0,0,2966,2968,3,59,29,0,2967,2966,1,0,0,0,2967,2968,1,0,0,0,2968,706,1,0,0,0,2969,2973,3,701,350,0,2970,2973,3,703,351,0,2971,2973,3,705,352,0,2972,2969,1,0,0,0,2972,2970,1,0,0,0,2972,2971,1,0,0,0,2973,2984,1,0,0,0,2974,2985,3,123,61,0,2975,2985,3,127,63,0,2976,2985,3,135,67,0,2977,2985,3,105,52,0,2978,2982,3,117,58,0,2979,2983,3,125,62,0,2980,2983,3,89,44,0,2981,2983,3,129,64,0,2982,2979,1,0,0,0,2982,2980,1,0,0,0,2982,2981,1,0,0,0,2982,2983,1,0,0,0,2983,2985,1,0,0,0,2984,2974,1,0,0,0,2984,2975,1,0,0,0,2984,2976,1,0,0,0,2984,2977,1,0,0,0,2984,2978,1,0,0,0,2984,2985,1,0,0,0,2985,708,1,0,0,0,2986,2991,7,28,0,0,2987,2990,7,28,0,0,2988,2990,3,715,357,0,2989,2987,1,0,0,0,2989,2988,1,0,0,0,2990,2993,1,0,0,0,2991,2989,1,0,0,0,2991,2992,1,0,0,0,2992,710,1,0,0,0,2993,2991,1,0,0,0,2994,2995,5,92,0,0,2995,3e3,9,0,0,0,2996,2997,5,96,0,0,2997,3e3,5,96,0,0,2998,3e3,8,29,0,0,2999,2994,1,0,0,0,2999,2996,1,0,0,0,2999,2998,1,0,0,0,3e3,712,1,0,0,0,3001,3005,3,85,42,0,3002,3004,3,711,355,0,3003,3002,1,0,0,0,3004,3007,1,0,0,0,3005,3003,1,0,0,0,3005,3006,1,0,0,0,3006,3008,1,0,0,0,3007,3005,1,0,0,0,3008,3009,3,85,42,0,3009,714,1,0,0,0,3010,3011,2,48,57,0,3011,716,1,0,0,0,3012,3013,7,30,0,0,3013,718,1,0,0,0,3014,3015,5,48,0,0,3015,3017,3,133,66,0,3016,3018,3,717,358,0,3017,3016,1,0,0,0,3018,3019,1,0,0,0,3019,3017,1,0,0,0,3019,3020,1,0,0,0,3020,720,1,0,0,0,3021,3022,5,48,0,0,3022,3024,3,115,57,0,3023,3025,2,48,56,0,3024,3023,1,0,0,0,3025,3026,1,0,0,0,3026,3024,1,0,0,0,3026,3027,1,0,0,0,3027,722,1,0,0,0,3028,3029,5,48,0,0,3029,3031,3,89,44,0,3030,3032,2,48,49,0,3031,3030,1,0,0,0,3032,3033,1,0,0,0,3033,3031,1,0,0,0,3033,3034,1,0,0,0,3034,724,1,0,0,0,3035,3037,3,715,357,0,3036,3035,1,0,0,0,3037,3038,1,0,0,0,3038,3036,1,0,0,0,3038,3039,1,0,0,0,3039,726,1,0,0,0,3040,3045,3,725,362,0,3041,3045,3,719,359,0,3042,3045,3,721,360,0,3043,3045,3,723,361,0,3044,3040,1,0,0,0,3044,3041,1,0,0,0,3044,3042,1,0,0,0,3044,3043,1,0,0,0,3045,728,1,0,0,0,3046,3049,3,727,363,0,3047,3050,3,117,58,0,3048,3050,3,127,63,0,3049,3047,1,0,0,0,3049,3048,1,0,0,0,3049,3050,1,0,0,0,3050,3057,1,0,0,0,3051,3058,3,109,54,0,3052,3058,3,123,61,0,3053,3058,3,125,62,0,3054,3058,3,103,51,0,3055,3058,3,89,44,0,3056,3058,3,113,56,0,3057,3051,1,0,0,0,3057,3052,1,0,0,0,3057,3053,1,0,0,0,3057,3054,1,0,0,0,3057,3055,1,0,0,0,3057,3056,1,0,0,0,3057,3058,1,0,0,0,3058,730,1,0,0,0,3059,3062,3,95,47,0,3060,3063,3,33,16,0,3061,3063,3,35,17,0,3062,3060,1,0,0,0,3062,3061,1,0,0,0,3062,3063,1,0,0,0,3063,3064,1,0,0,0,3064,3065,3,725,362,0,3065,732,1,0,0,0,3066,3067,3,725,362,0,3067,3071,3,47,23,0,3068,3070,3,715,357,0,3069,3068,1,0,0,0,3070,3073,1,0,0,0,3071,3069,1,0,0,0,3071,3072,1,0,0,0,3072,3075,1,0,0,0,3073,3071,1,0,0,0,3074,3076,3,731,365,0,3075,3074,1,0,0,0,3075,3076,1,0,0,0,3076,3081,1,0,0,0,3077,3078,3,725,362,0,3078,3079,3,731,365,0,3079,3081,1,0,0,0,3080,3066,1,0,0,0,3080,3077,1,0,0,0,3081,3090,1,0,0,0,3082,3091,3,97,48,0,3083,3088,3,117,58,0,3084,3085,3,97,48,0,3085,3086,7,31,0,0,3086,3089,1,0,0,0,3087,3089,3,113,56,0,3088,3084,1,0,0,0,3088,3087,1,0,0,0,3088,3089,1,0,0,0,3089,3091,1,0,0,0,3090,3082,1,0,0,0,3090,3083,1,0,0,0,3090,3091,1,0,0,0,3091,734,1,0,0,0,3092,3093,3,133,66,0,3093,3095,3,83,41,0,3094,3096,3,717,358,0,3095,3094,1,0,0,0,3096,3097,1,0,0,0,3097,3095,1,0,0,0,3097,3098,1,0,0,0,3098,3099,1,0,0,0,3099,3100,3,83,41,0,3100,736,1,0,0,0,3101,3102,7,16,0,0,3102,738,1,0,0,0,3103,3104,7,20,0,0,3104,740,1,0,0,0,3105,3106,7,4,0,0,3106,742,1,0,0,0,3107,3108,7,17,0,0,3108,744,1,0,0,0,3109,3110,7,24,0,0,3110,746,1,0,0,0,3111,3112,5,47,0,0,3112,3113,5,42,0,0,3113,3117,1,0,0,0,3114,3116,9,0,0,0,3115,3114,1,0,0,0,3116,3119,1,0,0,0,3117,3118,1,0,0,0,3117,3115,1,0,0,0,3118,3120,1,0,0,0,3119,3117,1,0,0,0,3120,3121,5,42,0,0,3121,3122,5,47,0,0,3122,748,1,0,0,0,3123,3124,5,45,0,0,3124,3125,5,45,0,0,3125,3129,1,0,0,0,3126,3128,8,32,0,0,3127,3126,1,0,0,0,3128,3131,1,0,0,0,3129,3127,1,0,0,0,3129,3130,1,0,0,0,3130,3137,1,0,0,0,3131,3129,1,0,0,0,3132,3134,5,13,0,0,3133,3135,5,10,0,0,3134,3133,1,0,0,0,3134,3135,1,0,0,0,3135,3138,1,0,0,0,3136,3138,7,33,0,0,3137,3132,1,0,0,0,3137,3136,1,0,0,0,3138,750,1,0,0,0,3139,3140,7,34,0,0,3140,3141,1,0,0,0,3141,3142,6,375,0,0,3142,752,1,0,0,0,3143,3146,3,747,373,0,3144,3146,3,749,374,0,3145,3143,1,0,0,0,3145,3144,1,0,0,0,3146,3147,1,0,0,0,3147,3148,6,376,1,0,3148,754,1,0,0,0,34,0,2927,2933,2939,2948,2957,2964,2967,2972,2982,2984,2989,2991,2999,3005,3019,3026,3033,3038,3044,3049,3057,3062,3071,3075,3080,3088,3090,3097,3117,3129,3134,3137,3145,2,0,1,0,6,0,0]}static get _ATN(){return t.__ATN||(t.__ATN=(new Ft).deserialize(t._serializedATN)),t.__ATN}static{this.vocabulary=new l(t.literalNames,t.symbolicNames,[])}get vocabulary(){return t.vocabulary}static{this.decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ae(t,e)))}},er=class t extends Be{static{Ls(this,"YQLParser")}static{this.QUERY=1}static{this.EQUALS=2}static{this.EQUALS2=3}static{this.NOT_EQUALS=4}static{this.NOT_EQUALS2=5}static{this.LESS=6}static{this.LESS_OR_EQ=7}static{this.GREATER=8}static{this.GREATER_OR_EQ=9}static{this.SHIFT_LEFT=10}static{this.ROT_LEFT=11}static{this.AMPERSAND=12}static{this.PIPE=13}static{this.DOUBLE_PIPE=14}static{this.STRUCT_OPEN=15}static{this.STRUCT_CLOSE=16}static{this.PLUS=17}static{this.MINUS=18}static{this.TILDA=19}static{this.ASTERISK=20}static{this.SLASH=21}static{this.PERCENT=22}static{this.SEMICOLON=23}static{this.DOT=24}static{this.COMMA=25}static{this.LPAREN=26}static{this.RPAREN=27}static{this.QUESTION=28}static{this.COLON=29}static{this.COMMAT=30}static{this.DOUBLE_COMMAT=31}static{this.DOLLAR=32}static{this.LBRACE_CURLY=33}static{this.RBRACE_CURLY=34}static{this.CARET=35}static{this.NAMESPACE=36}static{this.ARROW=37}static{this.RBRACE_SQUARE=38}static{this.LBRACE_SQUARE=39}static{this.ABORT=40}static{this.ACTION=41}static{this.ADD=42}static{this.AFTER=43}static{this.ALL=44}static{this.ALTER=45}static{this.ANALYZE=46}static{this.AND=47}static{this.ANSI=48}static{this.ANY=49}static{this.ARRAY=50}static{this.AS=51}static{this.ASC=52}static{this.ASSUME=53}static{this.ASYMMETRIC=54}static{this.ASYNC=55}static{this.AT=56}static{this.ATTACH=57}static{this.ATTRIBUTES=58}static{this.AUTOINCREMENT=59}static{this.AUTOMAP=60}static{this.BACKUP=61}static{this.COLLECTION=62}static{this.BEFORE=63}static{this.BEGIN=64}static{this.BERNOULLI=65}static{this.BETWEEN=66}static{this.BITCAST=67}static{this.BY=68}static{this.CALLABLE=69}static{this.CASCADE=70}static{this.CASE=71}static{this.CAST=72}static{this.CHANGEFEED=73}static{this.CHECK=74}static{this.CLASSIFIER=75}static{this.COLLATE=76}static{this.COLUMN=77}static{this.COLUMNS=78}static{this.COMMIT=79}static{this.COMPACT=80}static{this.CONDITIONAL=81}static{this.CONFLICT=82}static{this.CONNECT=83}static{this.CONSTRAINT=84}static{this.CONSUMER=85}static{this.COVER=86}static{this.CREATE=87}static{this.CROSS=88}static{this.CUBE=89}static{this.CURRENT=90}static{this.CURRENT_DATE=91}static{this.CURRENT_TIME=92}static{this.CURRENT_TIMESTAMP=93}static{this.DATA=94}static{this.DATABASE=95}static{this.DECIMAL=96}static{this.DECLARE=97}static{this.DEFAULT=98}static{this.DEFERRABLE=99}static{this.DEFERRED=100}static{this.DEFINE=101}static{this.DELETE=102}static{this.DESC=103}static{this.DESCRIBE=104}static{this.DETACH=105}static{this.DICT=106}static{this.DIRECTORY=107}static{this.DISABLE=108}static{this.DISCARD=109}static{this.DISTINCT=110}static{this.DO=111}static{this.DROP=112}static{this.EACH=113}static{this.ELSE=114}static{this.EMPTY=115}static{this.EMPTY_ACTION=116}static{this.ENCRYPTED=117}static{this.END=118}static{this.ENUM=119}static{this.ERASE=120}static{this.ERROR=121}static{this.ESCAPE=122}static{this.EVALUATE=123}static{this.EXCEPT=124}static{this.EXCLUDE=125}static{this.EXCLUSION=126}static{this.EXCLUSIVE=127}static{this.EXISTS=128}static{this.EXPLAIN=129}static{this.EXPORT=130}static{this.EXTERNAL=131}static{this.FAIL=132}static{this.FALSE=133}static{this.FAMILY=134}static{this.FILTER=135}static{this.FIRST=136}static{this.FLATTEN=137}static{this.FLOW=138}static{this.FOLLOWING=139}static{this.FOR=140}static{this.FOREIGN=141}static{this.FROM=142}static{this.FULL=143}static{this.FUNCTION=144}static{this.GLOB=145}static{this.GLOBAL=146}static{this.GRANT=147}static{this.GROUP=148}static{this.GROUPING=149}static{this.GROUPS=150}static{this.HASH=151}static{this.HAVING=152}static{this.HOP=153}static{this.IF=154}static{this.IGNORE=155}static{this.ILIKE=156}static{this.IMMEDIATE=157}static{this.IMPORT=158}static{this.IN=159}static{this.INCREMENTAL=160}static{this.INDEX=161}static{this.INDEXED=162}static{this.INHERITS=163}static{this.INITIAL=164}static{this.INITIALLY=165}static{this.INNER=166}static{this.INSERT=167}static{this.INSTEAD=168}static{this.INTERSECT=169}static{this.INTO=170}static{this.IS=171}static{this.ISNULL=172}static{this.JOIN=173}static{this.JSON_EXISTS=174}static{this.JSON_QUERY=175}static{this.JSON_VALUE=176}static{this.KEY=177}static{this.LAST=178}static{this.LEFT=179}static{this.LEGACY=180}static{this.LIKE=181}static{this.LIMIT=182}static{this.LIST=183}static{this.LOCAL=184}static{this.MANAGE=185}static{this.MATCH=186}static{this.MATCHES=187}static{this.MATCH_RECOGNIZE=188}static{this.MEASURES=189}static{this.MICROSECONDS=190}static{this.MILLISECONDS=191}static{this.MODIFY=192}static{this.NANOSECONDS=193}static{this.NATURAL=194}static{this.NEXT=195}static{this.NO=196}static{this.NOT=197}static{this.NOTNULL=198}static{this.NULL=199}static{this.NULLS=200}static{this.OBJECT=201}static{this.OF=202}static{this.OFFSET=203}static{this.OMIT=204}static{this.ON=205}static{this.ONE=206}static{this.ONLY=207}static{this.OPTION=208}static{this.OPTIONAL=209}static{this.OR=210}static{this.ORDER=211}static{this.OTHERS=212}static{this.OUTER=213}static{this.OVER=214}static{this.PARALLEL=215}static{this.PARTITION=216}static{this.PASSING=217}static{this.PASSWORD=218}static{this.PAST=219}static{this.PATTERN=220}static{this.PER=221}static{this.PERMUTE=222}static{this.PLAN=223}static{this.POOL=224}static{this.PRAGMA=225}static{this.PRECEDING=226}static{this.PRESORT=227}static{this.PRIMARY=228}static{this.PRIVILEGES=229}static{this.PROCESS=230}static{this.QUEUE=231}static{this.RAISE=232}static{this.RANGE=233}static{this.REDUCE=234}static{this.REFERENCES=235}static{this.REGEXP=236}static{this.REINDEX=237}static{this.RELEASE=238}static{this.REMOVE=239}static{this.RENAME=240}static{this.REPEATABLE=241}static{this.REPLACE=242}static{this.REPLICATION=243}static{this.RESET=244}static{this.RESOURCE=245}static{this.RESPECT=246}static{this.RESTORE=247}static{this.RESTRICT=248}static{this.RESULT=249}static{this.RETURN=250}static{this.RETURNING=251}static{this.REVERT=252}static{this.REVOKE=253}static{this.RIGHT=254}static{this.RLIKE=255}static{this.ROLLBACK=256}static{this.ROLLUP=257}static{this.ROW=258}static{this.ROWS=259}static{this.SAMPLE=260}static{this.SAVEPOINT=261}static{this.SCHEMA=262}static{this.SECONDS=263}static{this.SEEK=264}static{this.SELECT=265}static{this.SEMI=266}static{this.SET=267}static{this.SETS=268}static{this.SHOW=269}static{this.TSKIP=270}static{this.SOURCE=271}static{this.STREAM=272}static{this.STRUCT=273}static{this.SUBQUERY=274}static{this.SUBSET=275}static{this.SYMBOLS=276}static{this.SYMMETRIC=277}static{this.SYNC=278}static{this.SYSTEM=279}static{this.TABLE=280}static{this.TABLES=281}static{this.TABLESAMPLE=282}static{this.TABLESTORE=283}static{this.TAGGED=284}static{this.TEMP=285}static{this.TEMPORARY=286}static{this.THEN=287}static{this.TIES=288}static{this.TO=289}static{this.TOPIC=290}static{this.TRANSACTION=291}static{this.TRIGGER=292}static{this.TRUE=293}static{this.TUPLE=294}static{this.TYPE=295}static{this.UNBOUNDED=296}static{this.UNCONDITIONAL=297}static{this.UNION=298}static{this.UNIQUE=299}static{this.UNKNOWN=300}static{this.UNMATCHED=301}static{this.UPDATE=302}static{this.UPSERT=303}static{this.USE=304}static{this.USER=305}static{this.USING=306}static{this.VACUUM=307}static{this.VALUES=308}static{this.VARIANT=309}static{this.VIEW=310}static{this.VIRTUAL=311}static{this.WHEN=312}static{this.WHERE=313}static{this.WINDOW=314}static{this.WITH=315}static{this.WITHOUT=316}static{this.WRAPPER=317}static{this.XOR=318}static{this.STRING_VALUE=319}static{this.ID_PLAIN=320}static{this.ID_QUOTED=321}static{this.DIGITS=322}static{this.INTEGER_VALUE=323}static{this.REAL=324}static{this.BLOB=325}static{this.TQ=326}static{this.TU=327}static{this.TE=328}static{this.TR=329}static{this.TY=330}static{this.WS=331}static{this.COMMENT=332}static{this.RULE_sql_query=0}static{this.RULE_sql_stmt_list=1}static{this.RULE_ansi_sql_stmt_list=2}static{this.RULE_lambda_body=3}static{this.RULE_lambda_stmt=4}static{this.RULE_sql_stmt=5}static{this.RULE_sql_stmt_core=6}static{this.RULE_expr=7}static{this.RULE_or_subexpr=8}static{this.RULE_and_subexpr=9}static{this.RULE_xor_subexpr=10}static{this.RULE_distinct_from_op=11}static{this.RULE_cond_expr=12}static{this.RULE_match_op=13}static{this.RULE_eq_subexpr=14}static{this.RULE_shift_right=15}static{this.RULE_rot_right=16}static{this.RULE_double_question=17}static{this.RULE_neq_subexpr=18}static{this.RULE_bit_subexpr=19}static{this.RULE_add_subexpr=20}static{this.RULE_mul_subexpr=21}static{this.RULE_con_subexpr=22}static{this.RULE_unary_op=23}static{this.RULE_unary_subexpr_suffix=24}static{this.RULE_unary_casual_subexpr=25}static{this.RULE_in_unary_casual_subexpr=26}static{this.RULE_unary_subexpr=27}static{this.RULE_in_unary_subexpr=28}static{this.RULE_list_literal=29}static{this.RULE_expr_dict_list=30}static{this.RULE_dict_literal=31}static{this.RULE_expr_struct_list=32}static{this.RULE_struct_literal=33}static{this.RULE_atom_expr=34}static{this.RULE_in_atom_expr=35}static{this.RULE_cast_expr=36}static{this.RULE_bitcast_expr=37}static{this.RULE_exists_expr=38}static{this.RULE_case_expr=39}static{this.RULE_lambda=40}static{this.RULE_in_expr=41}static{this.RULE_json_api_expr=42}static{this.RULE_jsonpath_spec=43}static{this.RULE_json_variable_name=44}static{this.RULE_json_variable=45}static{this.RULE_json_variables=46}static{this.RULE_json_common_args=47}static{this.RULE_json_case_handler=48}static{this.RULE_json_value=49}static{this.RULE_json_exists_handler=50}static{this.RULE_json_exists=51}static{this.RULE_json_query_wrapper=52}static{this.RULE_json_query_handler=53}static{this.RULE_json_query=54}static{this.RULE_smart_parenthesis=55}static{this.RULE_expr_list=56}static{this.RULE_pure_column_list=57}static{this.RULE_pure_column_or_named=58}static{this.RULE_pure_column_or_named_list=59}static{this.RULE_column_name=60}static{this.RULE_without_column_name=61}static{this.RULE_column_list=62}static{this.RULE_without_column_list=63}static{this.RULE_named_expr=64}static{this.RULE_named_expr_list=65}static{this.RULE_invoke_expr=66}static{this.RULE_invoke_expr_tail=67}static{this.RULE_using_call_expr=68}static{this.RULE_key_expr=69}static{this.RULE_when_expr=70}static{this.RULE_literal_value=71}static{this.RULE_bind_parameter=72}static{this.RULE_opt_bind_parameter=73}static{this.RULE_bind_parameter_list=74}static{this.RULE_named_bind_parameter=75}static{this.RULE_named_bind_parameter_list=76}static{this.RULE_signed_number=77}static{this.RULE_type_name_simple=78}static{this.RULE_integer_or_bind=79}static{this.RULE_type_name_tag=80}static{this.RULE_struct_arg=81}static{this.RULE_struct_arg_positional=82}static{this.RULE_variant_arg=83}static{this.RULE_callable_arg=84}static{this.RULE_callable_arg_list=85}static{this.RULE_type_name_decimal=86}static{this.RULE_type_name_optional=87}static{this.RULE_type_name_tuple=88}static{this.RULE_type_name_struct=89}static{this.RULE_type_name_variant=90}static{this.RULE_type_name_list=91}static{this.RULE_type_name_stream=92}static{this.RULE_type_name_flow=93}static{this.RULE_type_name_dict=94}static{this.RULE_type_name_set=95}static{this.RULE_type_name_enum=96}static{this.RULE_type_name_resource=97}static{this.RULE_type_name_tagged=98}static{this.RULE_type_name_callable=99}static{this.RULE_type_name_composite=100}static{this.RULE_type_name=101}static{this.RULE_type_name_or_bind=102}static{this.RULE_value_constructor_literal=103}static{this.RULE_value_constructor=104}static{this.RULE_declare_stmt=105}static{this.RULE_module_path=106}static{this.RULE_import_stmt=107}static{this.RULE_export_stmt=108}static{this.RULE_call_action=109}static{this.RULE_inline_action=110}static{this.RULE_do_stmt=111}static{this.RULE_pragma_stmt=112}static{this.RULE_pragma_value=113}static{this.RULE_sort_specification=114}static{this.RULE_sort_specification_list=115}static{this.RULE_select_stmt=116}static{this.RULE_select_unparenthesized_stmt=117}static{this.RULE_select_kind_parenthesis=118}static{this.RULE_select_op=119}static{this.RULE_select_kind_partial=120}static{this.RULE_select_kind=121}static{this.RULE_process_core=122}static{this.RULE_external_call_param=123}static{this.RULE_external_call_settings=124}static{this.RULE_reduce_core=125}static{this.RULE_opt_set_quantifier=126}static{this.RULE_select_core=127}static{this.RULE_row_pattern_recognition_clause=128}static{this.RULE_row_pattern_rows_per_match=129}static{this.RULE_row_pattern_empty_match_handling=130}static{this.RULE_row_pattern_measures=131}static{this.RULE_row_pattern_measure_list=132}static{this.RULE_row_pattern_measure_definition=133}static{this.RULE_row_pattern_common_syntax=134}static{this.RULE_row_pattern_skip_to=135}static{this.RULE_row_pattern_skip_to_variable_name=136}static{this.RULE_row_pattern_initial_or_seek=137}static{this.RULE_row_pattern=138}static{this.RULE_row_pattern_term=139}static{this.RULE_row_pattern_factor=140}static{this.RULE_row_pattern_quantifier=141}static{this.RULE_row_pattern_primary=142}static{this.RULE_row_pattern_primary_variable_name=143}static{this.RULE_row_pattern_permute=144}static{this.RULE_row_pattern_subset_clause=145}static{this.RULE_row_pattern_subset_list=146}static{this.RULE_row_pattern_subset_item=147}static{this.RULE_row_pattern_subset_item_variable_name=148}static{this.RULE_row_pattern_subset_rhs=149}static{this.RULE_row_pattern_subset_rhs_variable_name=150}static{this.RULE_row_pattern_definition_list=151}static{this.RULE_row_pattern_definition=152}static{this.RULE_row_pattern_definition_variable_name=153}static{this.RULE_row_pattern_definition_search_condition=154}static{this.RULE_search_condition=155}static{this.RULE_row_pattern_variable_name=156}static{this.RULE_order_by_clause=157}static{this.RULE_ext_order_by_clause=158}static{this.RULE_group_by_clause=159}static{this.RULE_grouping_element_list=160}static{this.RULE_grouping_element=161}static{this.RULE_ordinary_grouping_set=162}static{this.RULE_ordinary_grouping_set_list=163}static{this.RULE_rollup_list=164}static{this.RULE_cube_list=165}static{this.RULE_grouping_sets_specification=166}static{this.RULE_hopping_window_specification=167}static{this.RULE_result_column=168}static{this.RULE_join_source=169}static{this.RULE_named_column=170}static{this.RULE_flatten_by_arg=171}static{this.RULE_flatten_source=172}static{this.RULE_named_single_source=173}static{this.RULE_single_source=174}static{this.RULE_sample_clause=175}static{this.RULE_tablesample_clause=176}static{this.RULE_sampling_mode=177}static{this.RULE_repeatable_clause=178}static{this.RULE_join_op=179}static{this.RULE_join_constraint=180}static{this.RULE_returning_columns_list=181}static{this.RULE_into_table_stmt=182}static{this.RULE_into_table_stmt_yq=183}static{this.RULE_into_values_source=184}static{this.RULE_values_stmt=185}static{this.RULE_values_source=186}static{this.RULE_values_source_row_list=187}static{this.RULE_values_source_row=188}static{this.RULE_simple_values_source=189}static{this.RULE_create_external_data_source_stmt=190}static{this.RULE_alter_external_data_source_stmt=191}static{this.RULE_alter_external_data_source_action=192}static{this.RULE_drop_external_data_source_stmt=193}static{this.RULE_create_view_stmt=194}static{this.RULE_drop_view_stmt=195}static{this.RULE_upsert_object_stmt=196}static{this.RULE_create_object_stmt=197}static{this.RULE_create_object_features=198}static{this.RULE_alter_object_stmt=199}static{this.RULE_alter_object_features=200}static{this.RULE_drop_object_stmt=201}static{this.RULE_drop_object_features=202}static{this.RULE_object_feature_value=203}static{this.RULE_object_feature_kv=204}static{this.RULE_object_feature_flag=205}static{this.RULE_object_feature=206}static{this.RULE_object_features=207}static{this.RULE_object_type_ref=208}static{this.RULE_create_table_stmt=209}static{this.RULE_create_table_entry=210}static{this.RULE_create_backup_collection_stmt=211}static{this.RULE_alter_backup_collection_stmt=212}static{this.RULE_drop_backup_collection_stmt=213}static{this.RULE_create_backup_collection_entries=214}static{this.RULE_create_backup_collection_entries_many=215}static{this.RULE_table_list=216}static{this.RULE_alter_backup_collection_actions=217}static{this.RULE_alter_backup_collection_action=218}static{this.RULE_alter_backup_collection_entries=219}static{this.RULE_alter_backup_collection_entry=220}static{this.RULE_backup_collection=221}static{this.RULE_backup_collection_settings=222}static{this.RULE_backup_collection_settings_entry=223}static{this.RULE_backup_stmt=224}static{this.RULE_restore_stmt=225}static{this.RULE_table_inherits=226}static{this.RULE_table_partition_by=227}static{this.RULE_with_table_settings=228}static{this.RULE_table_tablestore=229}static{this.RULE_table_settings_entry=230}static{this.RULE_table_as_source=231}static{this.RULE_alter_table_stmt=232}static{this.RULE_alter_table_action=233}static{this.RULE_alter_external_table_stmt=234}static{this.RULE_alter_external_table_action=235}static{this.RULE_alter_table_store_stmt=236}static{this.RULE_alter_table_store_action=237}static{this.RULE_alter_table_add_column=238}static{this.RULE_alter_table_drop_column=239}static{this.RULE_alter_table_alter_column=240}static{this.RULE_alter_table_alter_column_drop_not_null=241}static{this.RULE_alter_table_add_column_family=242}static{this.RULE_alter_table_alter_column_family=243}static{this.RULE_alter_table_set_table_setting_uncompat=244}static{this.RULE_alter_table_set_table_setting_compat=245}static{this.RULE_alter_table_reset_table_setting=246}static{this.RULE_alter_table_add_index=247}static{this.RULE_alter_table_drop_index=248}static{this.RULE_alter_table_rename_to=249}static{this.RULE_alter_table_rename_index_to=250}static{this.RULE_alter_table_add_changefeed=251}static{this.RULE_alter_table_alter_changefeed=252}static{this.RULE_alter_table_drop_changefeed=253}static{this.RULE_alter_table_alter_index=254}static{this.RULE_column_schema=255}static{this.RULE_family_relation=256}static{this.RULE_opt_column_constraints=257}static{this.RULE_column_order_by_specification=258}static{this.RULE_table_constraint=259}static{this.RULE_table_index=260}static{this.RULE_table_index_type=261}static{this.RULE_global_index=262}static{this.RULE_local_index=263}static{this.RULE_index_subtype=264}static{this.RULE_with_index_settings=265}static{this.RULE_index_setting_entry=266}static{this.RULE_index_setting_value=267}static{this.RULE_changefeed=268}static{this.RULE_changefeed_settings=269}static{this.RULE_changefeed_settings_entry=270}static{this.RULE_changefeed_setting_value=271}static{this.RULE_changefeed_alter_settings=272}static{this.RULE_alter_table_setting_entry=273}static{this.RULE_table_setting_value=274}static{this.RULE_family_entry=275}static{this.RULE_family_settings=276}static{this.RULE_family_settings_entry=277}static{this.RULE_family_setting_value=278}static{this.RULE_split_boundaries=279}static{this.RULE_literal_value_list=280}static{this.RULE_alter_table_alter_index_action=281}static{this.RULE_drop_table_stmt=282}static{this.RULE_create_user_stmt=283}static{this.RULE_alter_user_stmt=284}static{this.RULE_create_group_stmt=285}static{this.RULE_alter_group_stmt=286}static{this.RULE_drop_role_stmt=287}static{this.RULE_role_name=288}static{this.RULE_create_user_option=289}static{this.RULE_grant_permissions_stmt=290}static{this.RULE_revoke_permissions_stmt=291}static{this.RULE_permission_id=292}static{this.RULE_permission_name=293}static{this.RULE_permission_name_target=294}static{this.RULE_create_resource_pool_stmt=295}static{this.RULE_alter_resource_pool_stmt=296}static{this.RULE_alter_resource_pool_action=297}static{this.RULE_drop_resource_pool_stmt=298}static{this.RULE_create_resource_pool_classifier_stmt=299}static{this.RULE_alter_resource_pool_classifier_stmt=300}static{this.RULE_alter_resource_pool_classifier_action=301}static{this.RULE_drop_resource_pool_classifier_stmt=302}static{this.RULE_create_replication_stmt=303}static{this.RULE_replication_target=304}static{this.RULE_replication_settings=305}static{this.RULE_replication_settings_entry=306}static{this.RULE_alter_replication_stmt=307}static{this.RULE_alter_replication_action=308}static{this.RULE_alter_replication_set_setting=309}static{this.RULE_drop_replication_stmt=310}static{this.RULE_action_or_subquery_args=311}static{this.RULE_define_action_or_subquery_stmt=312}static{this.RULE_define_action_or_subquery_body=313}static{this.RULE_if_stmt=314}static{this.RULE_for_stmt=315}static{this.RULE_table_ref=316}static{this.RULE_table_key=317}static{this.RULE_table_arg=318}static{this.RULE_table_hints=319}static{this.RULE_table_hint=320}static{this.RULE_object_ref=321}static{this.RULE_simple_table_ref_core=322}static{this.RULE_simple_table_ref=323}static{this.RULE_into_simple_table_ref=324}static{this.RULE_delete_stmt=325}static{this.RULE_update_stmt=326}static{this.RULE_set_clause_choice=327}static{this.RULE_set_clause_list=328}static{this.RULE_set_clause=329}static{this.RULE_set_target=330}static{this.RULE_multiple_column_assignment=331}static{this.RULE_set_target_list=332}static{this.RULE_create_topic_stmt=333}static{this.RULE_create_topic_entries=334}static{this.RULE_create_topic_entry=335}static{this.RULE_with_topic_settings=336}static{this.RULE_alter_topic_stmt=337}static{this.RULE_alter_topic_action=338}static{this.RULE_alter_topic_add_consumer=339}static{this.RULE_topic_create_consumer_entry=340}static{this.RULE_alter_topic_alter_consumer=341}static{this.RULE_alter_topic_alter_consumer_entry=342}static{this.RULE_alter_topic_drop_consumer=343}static{this.RULE_topic_alter_consumer_set=344}static{this.RULE_topic_alter_consumer_reset=345}static{this.RULE_alter_topic_set_settings=346}static{this.RULE_alter_topic_reset_settings=347}static{this.RULE_drop_topic_stmt=348}static{this.RULE_topic_settings=349}static{this.RULE_topic_settings_entry=350}static{this.RULE_topic_setting_value=351}static{this.RULE_topic_consumer_with_settings=352}static{this.RULE_topic_consumer_settings=353}static{this.RULE_topic_consumer_settings_entry=354}static{this.RULE_topic_consumer_setting_value=355}static{this.RULE_topic_ref=356}static{this.RULE_topic_consumer_ref=357}static{this.RULE_null_treatment=358}static{this.RULE_filter_clause=359}static{this.RULE_window_name_or_specification=360}static{this.RULE_window_name=361}static{this.RULE_window_clause=362}static{this.RULE_window_definition_list=363}static{this.RULE_window_definition=364}static{this.RULE_new_window_name=365}static{this.RULE_window_specification=366}static{this.RULE_window_specification_details=367}static{this.RULE_existing_window_name=368}static{this.RULE_window_partition_clause=369}static{this.RULE_window_order_clause=370}static{this.RULE_window_frame_clause=371}static{this.RULE_window_frame_units=372}static{this.RULE_window_frame_extent=373}static{this.RULE_window_frame_between=374}static{this.RULE_window_frame_bound=375}static{this.RULE_window_frame_exclusion=376}static{this.RULE_use_stmt=377}static{this.RULE_subselect_stmt=378}static{this.RULE_named_nodes_stmt=379}static{this.RULE_commit_stmt=380}static{this.RULE_rollback_stmt=381}static{this.RULE_analyze_table=382}static{this.RULE_analyze_table_list=383}static{this.RULE_analyze_stmt=384}static{this.RULE_identifier=385}static{this.RULE_id=386}static{this.RULE_id_schema=387}static{this.RULE_id_expr=388}static{this.RULE_id_expr_in=389}static{this.RULE_id_window=390}static{this.RULE_id_table=391}static{this.RULE_id_without=392}static{this.RULE_id_hint=393}static{this.RULE_id_as_compat=394}static{this.RULE_an_id=395}static{this.RULE_an_id_or_type=396}static{this.RULE_an_id_schema=397}static{this.RULE_an_id_expr=398}static{this.RULE_an_id_expr_in=399}static{this.RULE_an_id_window=400}static{this.RULE_an_id_table=401}static{this.RULE_an_id_without=402}static{this.RULE_an_id_hint=403}static{this.RULE_an_id_pure=404}static{this.RULE_an_id_as_compat=405}static{this.RULE_view_name=406}static{this.RULE_opt_id_prefix=407}static{this.RULE_cluster_expr=408}static{this.RULE_id_or_type=409}static{this.RULE_opt_id_prefix_or_type=410}static{this.RULE_id_or_at=411}static{this.RULE_id_table_or_type=412}static{this.RULE_id_table_or_at=413}static{this.RULE_keyword=414}static{this.RULE_keyword_expr_uncompat=415}static{this.RULE_keyword_table_uncompat=416}static{this.RULE_keyword_select_uncompat=417}static{this.RULE_keyword_alter_uncompat=418}static{this.RULE_keyword_in_uncompat=419}static{this.RULE_keyword_window_uncompat=420}static{this.RULE_keyword_hint_uncompat=421}static{this.RULE_keyword_as_compat=422}static{this.RULE_keyword_compat=423}static{this.RULE_type_id=424}static{this.RULE_bool_value=425}static{this.RULE_real=426}static{this.RULE_integer=427}static{this.RULE_sql_query_yq=428}static{this.RULE_sql_stmt_list_yq=429}static{this.RULE_sql_stmt_yq=430}static{this.RULE_sql_stmt_core_yq=431}static{this.RULE_replication_name=432}static{this.RULE_where_expr=433}static{this.RULE_from_stmt=434}static{this.RULE_alter_table_for_autocomplete=435}static{this.literalNames=[null,null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'@@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"QUERY","EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOUBLE_COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","TQ","TU","TE","TR","TY","WS","COMMENT"]}static{this.ruleNames=["sql_query","sql_stmt_list","ansi_sql_stmt_list","lambda_body","lambda_stmt","sql_stmt","sql_stmt_core","expr","or_subexpr","and_subexpr","xor_subexpr","distinct_from_op","cond_expr","match_op","eq_subexpr","shift_right","rot_right","double_question","neq_subexpr","bit_subexpr","add_subexpr","mul_subexpr","con_subexpr","unary_op","unary_subexpr_suffix","unary_casual_subexpr","in_unary_casual_subexpr","unary_subexpr","in_unary_subexpr","list_literal","expr_dict_list","dict_literal","expr_struct_list","struct_literal","atom_expr","in_atom_expr","cast_expr","bitcast_expr","exists_expr","case_expr","lambda","in_expr","json_api_expr","jsonpath_spec","json_variable_name","json_variable","json_variables","json_common_args","json_case_handler","json_value","json_exists_handler","json_exists","json_query_wrapper","json_query_handler","json_query","smart_parenthesis","expr_list","pure_column_list","pure_column_or_named","pure_column_or_named_list","column_name","without_column_name","column_list","without_column_list","named_expr","named_expr_list","invoke_expr","invoke_expr_tail","using_call_expr","key_expr","when_expr","literal_value","bind_parameter","opt_bind_parameter","bind_parameter_list","named_bind_parameter","named_bind_parameter_list","signed_number","type_name_simple","integer_or_bind","type_name_tag","struct_arg","struct_arg_positional","variant_arg","callable_arg","callable_arg_list","type_name_decimal","type_name_optional","type_name_tuple","type_name_struct","type_name_variant","type_name_list","type_name_stream","type_name_flow","type_name_dict","type_name_set","type_name_enum","type_name_resource","type_name_tagged","type_name_callable","type_name_composite","type_name","type_name_or_bind","value_constructor_literal","value_constructor","declare_stmt","module_path","import_stmt","export_stmt","call_action","inline_action","do_stmt","pragma_stmt","pragma_value","sort_specification","sort_specification_list","select_stmt","select_unparenthesized_stmt","select_kind_parenthesis","select_op","select_kind_partial","select_kind","process_core","external_call_param","external_call_settings","reduce_core","opt_set_quantifier","select_core","row_pattern_recognition_clause","row_pattern_rows_per_match","row_pattern_empty_match_handling","row_pattern_measures","row_pattern_measure_list","row_pattern_measure_definition","row_pattern_common_syntax","row_pattern_skip_to","row_pattern_skip_to_variable_name","row_pattern_initial_or_seek","row_pattern","row_pattern_term","row_pattern_factor","row_pattern_quantifier","row_pattern_primary","row_pattern_primary_variable_name","row_pattern_permute","row_pattern_subset_clause","row_pattern_subset_list","row_pattern_subset_item","row_pattern_subset_item_variable_name","row_pattern_subset_rhs","row_pattern_subset_rhs_variable_name","row_pattern_definition_list","row_pattern_definition","row_pattern_definition_variable_name","row_pattern_definition_search_condition","search_condition","row_pattern_variable_name","order_by_clause","ext_order_by_clause","group_by_clause","grouping_element_list","grouping_element","ordinary_grouping_set","ordinary_grouping_set_list","rollup_list","cube_list","grouping_sets_specification","hopping_window_specification","result_column","join_source","named_column","flatten_by_arg","flatten_source","named_single_source","single_source","sample_clause","tablesample_clause","sampling_mode","repeatable_clause","join_op","join_constraint","returning_columns_list","into_table_stmt","into_table_stmt_yq","into_values_source","values_stmt","values_source","values_source_row_list","values_source_row","simple_values_source","create_external_data_source_stmt","alter_external_data_source_stmt","alter_external_data_source_action","drop_external_data_source_stmt","create_view_stmt","drop_view_stmt","upsert_object_stmt","create_object_stmt","create_object_features","alter_object_stmt","alter_object_features","drop_object_stmt","drop_object_features","object_feature_value","object_feature_kv","object_feature_flag","object_feature","object_features","object_type_ref","create_table_stmt","create_table_entry","create_backup_collection_stmt","alter_backup_collection_stmt","drop_backup_collection_stmt","create_backup_collection_entries","create_backup_collection_entries_many","table_list","alter_backup_collection_actions","alter_backup_collection_action","alter_backup_collection_entries","alter_backup_collection_entry","backup_collection","backup_collection_settings","backup_collection_settings_entry","backup_stmt","restore_stmt","table_inherits","table_partition_by","with_table_settings","table_tablestore","table_settings_entry","table_as_source","alter_table_stmt","alter_table_action","alter_external_table_stmt","alter_external_table_action","alter_table_store_stmt","alter_table_store_action","alter_table_add_column","alter_table_drop_column","alter_table_alter_column","alter_table_alter_column_drop_not_null","alter_table_add_column_family","alter_table_alter_column_family","alter_table_set_table_setting_uncompat","alter_table_set_table_setting_compat","alter_table_reset_table_setting","alter_table_add_index","alter_table_drop_index","alter_table_rename_to","alter_table_rename_index_to","alter_table_add_changefeed","alter_table_alter_changefeed","alter_table_drop_changefeed","alter_table_alter_index","column_schema","family_relation","opt_column_constraints","column_order_by_specification","table_constraint","table_index","table_index_type","global_index","local_index","index_subtype","with_index_settings","index_setting_entry","index_setting_value","changefeed","changefeed_settings","changefeed_settings_entry","changefeed_setting_value","changefeed_alter_settings","alter_table_setting_entry","table_setting_value","family_entry","family_settings","family_settings_entry","family_setting_value","split_boundaries","literal_value_list","alter_table_alter_index_action","drop_table_stmt","create_user_stmt","alter_user_stmt","create_group_stmt","alter_group_stmt","drop_role_stmt","role_name","create_user_option","grant_permissions_stmt","revoke_permissions_stmt","permission_id","permission_name","permission_name_target","create_resource_pool_stmt","alter_resource_pool_stmt","alter_resource_pool_action","drop_resource_pool_stmt","create_resource_pool_classifier_stmt","alter_resource_pool_classifier_stmt","alter_resource_pool_classifier_action","drop_resource_pool_classifier_stmt","create_replication_stmt","replication_target","replication_settings","replication_settings_entry","alter_replication_stmt","alter_replication_action","alter_replication_set_setting","drop_replication_stmt","action_or_subquery_args","define_action_or_subquery_stmt","define_action_or_subquery_body","if_stmt","for_stmt","table_ref","table_key","table_arg","table_hints","table_hint","object_ref","simple_table_ref_core","simple_table_ref","into_simple_table_ref","delete_stmt","update_stmt","set_clause_choice","set_clause_list","set_clause","set_target","multiple_column_assignment","set_target_list","create_topic_stmt","create_topic_entries","create_topic_entry","with_topic_settings","alter_topic_stmt","alter_topic_action","alter_topic_add_consumer","topic_create_consumer_entry","alter_topic_alter_consumer","alter_topic_alter_consumer_entry","alter_topic_drop_consumer","topic_alter_consumer_set","topic_alter_consumer_reset","alter_topic_set_settings","alter_topic_reset_settings","drop_topic_stmt","topic_settings","topic_settings_entry","topic_setting_value","topic_consumer_with_settings","topic_consumer_settings","topic_consumer_settings_entry","topic_consumer_setting_value","topic_ref","topic_consumer_ref","null_treatment","filter_clause","window_name_or_specification","window_name","window_clause","window_definition_list","window_definition","new_window_name","window_specification","window_specification_details","existing_window_name","window_partition_clause","window_order_clause","window_frame_clause","window_frame_units","window_frame_extent","window_frame_between","window_frame_bound","window_frame_exclusion","use_stmt","subselect_stmt","named_nodes_stmt","commit_stmt","rollback_stmt","analyze_table","analyze_table_list","analyze_stmt","identifier","id","id_schema","id_expr","id_expr_in","id_window","id_table","id_without","id_hint","id_as_compat","an_id","an_id_or_type","an_id_schema","an_id_expr","an_id_expr_in","an_id_window","an_id_table","an_id_without","an_id_hint","an_id_pure","an_id_as_compat","view_name","opt_id_prefix","cluster_expr","id_or_type","opt_id_prefix_or_type","id_or_at","id_table_or_type","id_table_or_at","keyword","keyword_expr_uncompat","keyword_table_uncompat","keyword_select_uncompat","keyword_alter_uncompat","keyword_in_uncompat","keyword_window_uncompat","keyword_hint_uncompat","keyword_as_compat","keyword_compat","type_id","bool_value","real","integer","sql_query_yq","sql_stmt_list_yq","sql_stmt_yq","sql_stmt_core_yq","replication_name","where_expr","from_stmt","alter_table_for_autocomplete"]}get grammarFileName(){return"YQL.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}createFailedPredicateException(t,e){return new ye(this,t,e)}constructor(e){super(e),this.interpreter=new le(this,t._ATN,t.decisionsToDFA,new ue)}sql_query(){let e=new sr(this.context,this.state);this.enterRule(e,0,t.RULE_sql_query);try{switch(this.state=877,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,0,this.context)){case 1:this.enterOuterAlt(e,1),this.state=872,this.sql_stmt_list();break;case 2:this.enterOuterAlt(e,2),this.state=873,this.match(t.PRAGMA),this.state=874,this.match(t.ANSI),this.state=875,this.match(t.DIGITS),this.state=876,this.ansi_sql_stmt_list()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sql_stmt_list(){let e,s=new rr(this.context,this.state);this.enterRule(s,2,t.RULE_sql_stmt_list);try{let r;for(this.enterOuterAlt(s,1),this.state=882,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=879,this.match(t.SEMICOLON),this.state=884,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=885,this.sql_stmt(),this.state=894,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,3,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;){if(1===r){this.state=887,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=886,this.match(t.SEMICOLON),this.state=889,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(23===e);this.state=891,this.sql_stmt()}this.state=896,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,3,this.context)}for(this.state=900,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=897,this.match(t.SEMICOLON),this.state=902,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=903,this.match(t.EOF)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}ansi_sql_stmt_list(){let e,s=new ir(this.context,this.state);this.enterRule(s,4,t.RULE_ansi_sql_stmt_list);try{for(this.enterOuterAlt(s,1),this.state=908,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=905,this.match(t.SEMICOLON),this.state=910,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=911,this.match(t.EOF)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}lambda_body(){let e,s=new ar(this.context,this.state);this.enterRule(s,6,t.RULE_lambda_body);try{for(this.enterOuterAlt(s,1),this.state=916,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=913,this.match(t.SEMICOLON),this.state=918,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=927,this.errorHandler.sync(this),e=this.tokenStream.LA(1);32===e||158===e;){this.state=919,this.lambda_stmt(),this.state=921,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=920,this.match(t.SEMICOLON),this.state=923,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(23===e);this.state=929,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}for(this.state=930,this.match(t.RETURN),this.state=931,this.expr(),this.state=935,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=932,this.match(t.SEMICOLON),this.state=937,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}lambda_stmt(){let e=new nr(this.context,this.state);this.enterRule(e,8,t.RULE_lambda_stmt);try{switch(this.state=940,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:this.enterOuterAlt(e,1),this.state=938,this.named_nodes_stmt();break;case t.IMPORT:this.enterOuterAlt(e,2),this.state=939,this.import_stmt();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sql_stmt(){let e,s=new cr(this.context,this.state);this.enterRule(s,10,t.RULE_sql_stmt);try{this.enterOuterAlt(s,1),this.state=947,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=942,this.match(t.EXPLAIN),this.state=945,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1===e&&(this.state=943,this.match(t.QUERY),this.state=944,this.match(t.PLAN))),this.state=949,this.sql_stmt_core()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}sql_stmt_core(){let e=new hr(this.context,this.state);this.enterRule(e,12,t.RULE_sql_stmt_core);try{switch(this.state=1007,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,13,this.context)){case 1:this.enterOuterAlt(e,1),this.state=951,this.pragma_stmt();break;case 2:this.enterOuterAlt(e,2),this.state=952,this.select_stmt();break;case 3:this.enterOuterAlt(e,3),this.state=953,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(e,4),this.state=954,this.create_table_stmt();break;case 5:this.enterOuterAlt(e,5),this.state=955,this.drop_table_stmt();break;case 6:this.enterOuterAlt(e,6),this.state=956,this.use_stmt();break;case 7:this.enterOuterAlt(e,7),this.state=957,this.into_table_stmt();break;case 8:this.enterOuterAlt(e,8),this.state=958,this.commit_stmt();break;case 9:this.enterOuterAlt(e,9),this.state=959,this.update_stmt();break;case 10:this.enterOuterAlt(e,10),this.state=960,this.delete_stmt();break;case 11:this.enterOuterAlt(e,11),this.state=961,this.rollback_stmt();break;case 12:this.enterOuterAlt(e,12),this.state=962,this.declare_stmt();break;case 13:this.enterOuterAlt(e,13),this.state=963,this.import_stmt();break;case 14:this.enterOuterAlt(e,14),this.state=964,this.export_stmt();break;case 15:this.enterOuterAlt(e,15),this.state=965,this.alter_table_stmt();break;case 16:this.enterOuterAlt(e,16),this.state=966,this.alter_external_table_stmt();break;case 17:this.enterOuterAlt(e,17),this.state=967,this.do_stmt();break;case 18:this.enterOuterAlt(e,18),this.state=968,this.define_action_or_subquery_stmt();break;case 19:this.enterOuterAlt(e,19),this.state=969,this.if_stmt();break;case 20:this.enterOuterAlt(e,20),this.state=970,this.for_stmt();break;case 21:this.enterOuterAlt(e,21),this.state=971,this.values_stmt();break;case 22:this.enterOuterAlt(e,22),this.state=972,this.create_user_stmt();break;case 23:this.enterOuterAlt(e,23),this.state=973,this.alter_user_stmt();break;case 24:this.enterOuterAlt(e,24),this.state=974,this.create_group_stmt();break;case 25:this.enterOuterAlt(e,25),this.state=975,this.alter_group_stmt();break;case 26:this.enterOuterAlt(e,26),this.state=976,this.drop_role_stmt();break;case 27:this.enterOuterAlt(e,27),this.state=977,this.create_object_stmt();break;case 28:this.enterOuterAlt(e,28),this.state=978,this.alter_object_stmt();break;case 29:this.enterOuterAlt(e,29),this.state=979,this.drop_object_stmt();break;case 30:this.enterOuterAlt(e,30),this.state=980,this.create_external_data_source_stmt();break;case 31:this.enterOuterAlt(e,31),this.state=981,this.alter_external_data_source_stmt();break;case 32:this.enterOuterAlt(e,32),this.state=982,this.drop_external_data_source_stmt();break;case 33:this.enterOuterAlt(e,33),this.state=983,this.create_replication_stmt();break;case 34:this.enterOuterAlt(e,34),this.state=984,this.drop_replication_stmt();break;case 35:this.enterOuterAlt(e,35),this.state=985,this.create_topic_stmt();break;case 36:this.enterOuterAlt(e,36),this.state=986,this.alter_topic_stmt();break;case 37:this.enterOuterAlt(e,37),this.state=987,this.drop_topic_stmt();break;case 38:this.enterOuterAlt(e,38),this.state=988,this.grant_permissions_stmt();break;case 39:this.enterOuterAlt(e,39),this.state=989,this.revoke_permissions_stmt();break;case 40:this.enterOuterAlt(e,40),this.state=990,this.alter_table_store_stmt();break;case 41:this.enterOuterAlt(e,41),this.state=991,this.upsert_object_stmt();break;case 42:this.enterOuterAlt(e,42),this.state=992,this.create_view_stmt();break;case 43:this.enterOuterAlt(e,43),this.state=993,this.drop_view_stmt();break;case 44:this.enterOuterAlt(e,44),this.state=994,this.alter_replication_stmt();break;case 45:this.enterOuterAlt(e,45),this.state=995,this.create_resource_pool_stmt();break;case 46:this.enterOuterAlt(e,46),this.state=996,this.alter_resource_pool_stmt();break;case 47:this.enterOuterAlt(e,47),this.state=997,this.drop_resource_pool_stmt();break;case 48:this.enterOuterAlt(e,48),this.state=998,this.create_backup_collection_stmt();break;case 49:this.enterOuterAlt(e,49),this.state=999,this.alter_backup_collection_stmt();break;case 50:this.enterOuterAlt(e,50),this.state=1e3,this.drop_backup_collection_stmt();break;case 51:this.enterOuterAlt(e,51),this.state=1001,this.analyze_stmt();break;case 52:this.enterOuterAlt(e,52),this.state=1002,this.create_resource_pool_classifier_stmt();break;case 53:this.enterOuterAlt(e,53),this.state=1003,this.alter_resource_pool_classifier_stmt();break;case 54:this.enterOuterAlt(e,54),this.state=1004,this.drop_resource_pool_classifier_stmt();break;case 55:this.enterOuterAlt(e,55),this.state=1005,this.backup_stmt();break;case 56:this.enterOuterAlt(e,56),this.state=1006,this.restore_stmt()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}expr(){let e=new or(this.context,this.state);this.enterRule(e,14,t.RULE_expr);try{let s;switch(this.state=1018,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,15,this.context)){case 1:for(this.enterOuterAlt(e,1),this.state=1009,this.or_subexpr(),this.state=1014,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);2!==s&&s!==z.INVALID_ALT_NUMBER;)1===s&&(this.state=1010,this.match(t.OR),this.state=1011,this.or_subexpr()),this.state=1016,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);break;case 2:this.enterOuterAlt(e,2),this.state=1017,this.type_name_composite()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}or_subexpr(){let e=new Er(this.context,this.state);this.enterRule(e,16,t.RULE_or_subexpr);try{let s;for(this.enterOuterAlt(e,1),this.state=1020,this.and_subexpr(),this.state=1025,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,16,this.context);2!==s&&s!==z.INVALID_ALT_NUMBER;)1===s&&(this.state=1021,this.match(t.AND),this.state=1022,this.and_subexpr()),this.state=1027,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,16,this.context)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}and_subexpr(){let e=new lr(this.context,this.state);this.enterRule(e,18,t.RULE_and_subexpr);try{let s;for(this.enterOuterAlt(e,1),this.state=1028,this.xor_subexpr(),this.state=1033,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,17,this.context);2!==s&&s!==z.INVALID_ALT_NUMBER;)1===s&&(this.state=1029,this.match(t.XOR),this.state=1030,this.xor_subexpr()),this.state=1035,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,17,this.context)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}xor_subexpr(){let e=new ur(this.context,this.state);this.enterRule(e,20,t.RULE_xor_subexpr);try{if(1===(this.enterOuterAlt(e,1),this.state=1036,this.eq_subexpr(),this.state=1038,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,18,this.context)))this.state=1037,this.cond_expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}distinct_from_op(){let e,s=new Rr(this.context,this.state);this.enterRule(s,22,t.RULE_distinct_from_op);try{this.enterOuterAlt(s,1),this.state=1040,this.match(t.IS),this.state=1042,this.errorHandler.sync(this),e=this.tokenStream.LA(1),197===e&&(this.state=1041,this.match(t.NOT)),this.state=1044,this.match(t.DISTINCT),this.state=1045,this.match(t.FROM)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}cond_expr(){let e,s=new _r(this.context,this.state);this.enterRule(s,24,t.RULE_cond_expr);try{let r;switch(this.state=1098,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,30,this.context)){case 1:if(1===(this.enterOuterAlt(s,1),this.state=1048,this.errorHandler.sync(this),e=this.tokenStream.LA(1),197===e&&(this.state=1047,this.match(t.NOT)),this.state=1050,this.match_op(),this.state=1051,this.eq_subexpr(),this.state=1054,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,21,this.context)))this.state=1052,this.match(t.ESCAPE),this.state=1053,this.eq_subexpr();break;case 2:if(this.enterOuterAlt(s,2),1===(this.state=1057,this.errorHandler.sync(this),e=this.tokenStream.LA(1),197===e&&(this.state=1056,this.match(t.NOT)),this.state=1059,this.match(t.IN),this.state=1061,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,23,this.context)))this.state=1060,this.match(t.COMPACT);this.state=1063,this.in_expr();break;case 3:switch(this.enterOuterAlt(s,3),this.state=1073,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,25,this.context)){case 1:this.state=1064,this.match(t.ISNULL);break;case 2:this.state=1065,this.match(t.NOTNULL);break;case 3:this.state=1066,this.match(t.IS),this.state=1067,this.match(t.NULL);break;case 4:this.state=1069,this.errorHandler.sync(this),e=this.tokenStream.LA(1),171===e&&(this.state=1068,this.match(t.IS)),this.state=1071,this.match(t.NOT),this.state=1072,this.match(t.NULL)}break;case 4:if(this.enterOuterAlt(s,4),1===(this.state=1076,this.errorHandler.sync(this),e=this.tokenStream.LA(1),197===e&&(this.state=1075,this.match(t.NOT)),this.state=1078,this.match(t.BETWEEN),this.state=1080,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,27,this.context)))this.state=1079,e=this.tokenStream.LA(1),54===e||277===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);this.state=1082,this.eq_subexpr(),this.state=1083,this.match(t.AND),this.state=1084,this.eq_subexpr();break;case 5:this.enterOuterAlt(s,5),this.state=1094,this.errorHandler.sync(this),r=1;do{if(1!==r)throw new ce(this);switch(this.state=1091,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EQUALS:this.state=1086,this.match(t.EQUALS);break;case t.EQUALS2:this.state=1087,this.match(t.EQUALS2);break;case t.NOT_EQUALS:this.state=1088,this.match(t.NOT_EQUALS);break;case t.NOT_EQUALS2:this.state=1089,this.match(t.NOT_EQUALS2);break;case t.IS:this.state=1090,this.distinct_from_op();break;default:throw new ce(this)}this.state=1093,this.eq_subexpr(),this.state=1096,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,29,this.context)}while(2!==r&&r!==z.INVALID_ALT_NUMBER)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}match_op(){let e,s=new Tr(this.context,this.state);this.enterRule(s,26,t.RULE_match_op);try{this.enterOuterAlt(s,1),this.state=1100,e=this.tokenStream.LA(1),145===e||156===e||181===e||186===e||236===e||255===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}eq_subexpr(){let e,s=new Ar(this.context,this.state);this.enterRule(s,28,t.RULE_eq_subexpr);try{for(this.enterOuterAlt(s,1),this.state=1102,this.neq_subexpr(),this.state=1107,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(-32&e)&&1<<e&960;)this.state=1103,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&960?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1104,this.neq_subexpr(),this.state=1109,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}shift_right(){let e=new Sr(this.context,this.state);this.enterRule(e,30,t.RULE_shift_right);try{this.enterOuterAlt(e,1),this.state=1110,this.match(t.GREATER),this.state=1111,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}rot_right(){let e=new dr(this.context,this.state);this.enterRule(e,32,t.RULE_rot_right);try{this.enterOuterAlt(e,1),this.state=1113,this.match(t.GREATER),this.state=1114,this.match(t.GREATER),this.state=1115,this.match(t.PIPE)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}double_question(){let e=new Lr(this.context,this.state);this.enterRule(e,34,t.RULE_double_question);try{this.enterOuterAlt(e,1),this.state=1117,this.match(t.QUESTION),this.state=1118,this.match(t.QUESTION)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}neq_subexpr(){let e,s=new Cr(this.context,this.state);this.enterRule(s,36,t.RULE_neq_subexpr);try{let r;for(this.enterOuterAlt(s,1),this.state=1120,this.bit_subexpr(),this.state=1133,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,33,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;){if(1===r){switch(this.state=1128,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,32,this.context)){case 1:this.state=1121,this.match(t.SHIFT_LEFT);break;case 2:this.state=1122,this.shift_right();break;case 3:this.state=1123,this.match(t.ROT_LEFT);break;case 4:this.state=1124,this.rot_right();break;case 5:this.state=1125,this.match(t.AMPERSAND);break;case 6:this.state=1126,this.match(t.PIPE);break;case 7:this.state=1127,this.match(t.CARET)}this.state=1130,this.bit_subexpr()}this.state=1135,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,33,this.context)}switch(this.state=1144,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,35,this.context)){case 1:this.state=1136,this.double_question(),this.state=1137,this.neq_subexpr();break;case 2:this.state=1140,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=1139,this.match(t.QUESTION),this.state=1142,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(28===e)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}bit_subexpr(){let e,s=new Nr(this.context,this.state);this.enterRule(s,38,t.RULE_bit_subexpr);try{for(this.enterOuterAlt(s,1),this.state=1146,this.add_subexpr(),this.state=1151,this.errorHandler.sync(this),e=this.tokenStream.LA(1);17===e||18===e;)this.state=1147,e=this.tokenStream.LA(1),17===e||18===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1148,this.add_subexpr(),this.state=1153,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}add_subexpr(){let e,s=new Ir(this.context,this.state);this.enterRule(s,40,t.RULE_add_subexpr);try{for(this.enterOuterAlt(s,1),this.state=1154,this.mul_subexpr(),this.state=1159,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(-32&e)&&1<<e&7340032;)this.state=1155,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&7340032?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1156,this.mul_subexpr(),this.state=1161,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}mul_subexpr(){let e,s=new Or(this.context,this.state);this.enterRule(s,42,t.RULE_mul_subexpr);try{for(this.enterOuterAlt(s,1),this.state=1162,this.con_subexpr(),this.state=1167,this.errorHandler.sync(this),e=this.tokenStream.LA(1);14===e;)this.state=1163,this.match(t.DOUBLE_PIPE),this.state=1164,this.con_subexpr(),this.state=1169,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}con_subexpr(){let e=new pr(this.context,this.state);this.enterRule(e,44,t.RULE_con_subexpr);try{switch(this.state=1174,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,39,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1170,this.unary_subexpr();break;case 2:this.enterOuterAlt(e,2),this.state=1171,this.unary_op(),this.state=1172,this.unary_subexpr()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}unary_op(){let e,s=new gr(this.context,this.state);this.enterRule(s,46,t.RULE_unary_op);try{this.enterOuterAlt(s,1),this.state=1176,e=this.tokenStream.LA(1),!(-32&e)&&1<<e&917504||197===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}unary_subexpr_suffix(){let e,s=new mr(this.context,this.state);this.enterRule(s,48,t.RULE_unary_subexpr_suffix);try{for(this.enterOuterAlt(s,1),this.state=1190,this.errorHandler.sync(this),e=this.tokenStream.LA(1);!(e-24&-32)&&1<<e-24&32773;){switch(this.state=1186,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LBRACE_SQUARE:this.state=1178,this.key_expr();break;case t.LPAREN:this.state=1179,this.invoke_expr();break;case t.DOT:switch(this.state=1180,this.match(t.DOT),this.state=1184,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:this.state=1181,this.bind_parameter();break;case t.DIGITS:this.state=1182,this.match(t.DIGITS);break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1183,this.an_id_or_type();break;default:throw new ce(this)}break;default:throw new ce(this)}this.state=1192,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}this.state=1195,this.errorHandler.sync(this),e=this.tokenStream.LA(1),76===e&&(this.state=1193,this.match(t.COLLATE),this.state=1194,this.an_id())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}unary_casual_subexpr(){let e=new xr(this.context,this.state);this.enterRule(e,50,t.RULE_unary_casual_subexpr);try{switch(this.enterOuterAlt(e,1),this.state=1199,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,44,this.context)){case 1:this.state=1197,this.id_expr();break;case 2:this.state=1198,this.atom_expr()}this.state=1201,this.unary_subexpr_suffix()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}in_unary_casual_subexpr(){let e=new Ur(this.context,this.state);this.enterRule(e,52,t.RULE_in_unary_casual_subexpr);try{switch(this.enterOuterAlt(e,1),this.state=1205,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,45,this.context)){case 1:this.state=1203,this.id_expr_in();break;case 2:this.state=1204,this.in_atom_expr()}this.state=1207,this.unary_subexpr_suffix()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}unary_subexpr(){let e=new fr(this.context,this.state);this.enterRule(e,54,t.RULE_unary_subexpr);try{switch(this.state=1211,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,46,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1209,this.unary_casual_subexpr();break;case 2:this.enterOuterAlt(e,2),this.state=1210,this.json_api_expr()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}in_unary_subexpr(){let e=new Pr(this.context,this.state);this.enterRule(e,56,t.RULE_in_unary_subexpr);try{switch(this.state=1215,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,47,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1213,this.in_unary_casual_subexpr();break;case 2:this.enterOuterAlt(e,2),this.state=1214,this.json_api_expr()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}list_literal(){let e,s=new kr(this.context,this.state);this.enterRule(s,58,t.RULE_list_literal);try{this.enterOuterAlt(s,1),this.state=1217,this.match(t.LBRACE_SQUARE),this.state=1219,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4278585373||!(e-47&-32)&&1<<e-47&4294959103||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-239&-32)&&1<<e-239&4294967291||!(e-271&-32)&&1<<e-271&4294967295||!(e-303&-32)&&1<<e-303&8388607)&&(this.state=1218,this.expr_list()),this.state=1222,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1221,this.match(t.COMMA)),this.state=1224,this.match(t.RBRACE_SQUARE)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}expr_dict_list(){let e,s=new Mr(this.context,this.state);this.enterRule(s,60,t.RULE_expr_dict_list);try{let r;for(this.enterOuterAlt(s,1),this.state=1226,this.expr(),this.state=1229,this.errorHandler.sync(this),e=this.tokenStream.LA(1),29===e&&(this.state=1227,this.match(t.COLON),this.state=1228,this.expr()),this.state=1239,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,52,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=1231,this.match(t.COMMA),this.state=1232,this.expr(),this.state=1235,this.errorHandler.sync(this),e=this.tokenStream.LA(1),29===e&&(this.state=1233,this.match(t.COLON),this.state=1234,this.expr())),this.state=1241,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,52,this.context)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}dict_literal(){let e,s=new Dr(this.context,this.state);this.enterRule(s,62,t.RULE_dict_literal);try{this.enterOuterAlt(s,1),this.state=1242,this.match(t.LBRACE_CURLY),this.state=1244,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4278585373||!(e-47&-32)&&1<<e-47&4294959103||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-239&-32)&&1<<e-239&4294967291||!(e-271&-32)&&1<<e-271&4294967295||!(e-303&-32)&&1<<e-303&8388607)&&(this.state=1243,this.expr_dict_list()),this.state=1247,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1246,this.match(t.COMMA)),this.state=1249,this.match(t.RBRACE_CURLY)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}expr_struct_list(){let e=new yr(this.context,this.state);this.enterRule(e,64,t.RULE_expr_struct_list);try{let s;for(this.enterOuterAlt(e,1),this.state=1251,this.expr(),this.state=1252,this.match(t.COLON),this.state=1253,this.expr(),this.state=1261,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,55,this.context);2!==s&&s!==z.INVALID_ALT_NUMBER;)1===s&&(this.state=1254,this.match(t.COMMA),this.state=1255,this.expr(),this.state=1256,this.match(t.COLON),this.state=1257,this.expr()),this.state=1263,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,55,this.context)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}struct_literal(){let e,s=new vr(this.context,this.state);this.enterRule(s,66,t.RULE_struct_literal);try{this.enterOuterAlt(s,1),this.state=1264,this.match(t.STRUCT_OPEN),this.state=1266,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4278585373||!(e-47&-32)&&1<<e-47&4294959103||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-239&-32)&&1<<e-239&4294967291||!(e-271&-32)&&1<<e-271&4294967295||!(e-303&-32)&&1<<e-303&8388607)&&(this.state=1265,this.expr_struct_list()),this.state=1269,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1268,this.match(t.COMMA)),this.state=1271,this.match(t.STRUCT_CLOSE)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}atom_expr(){let e=new br(this.context,this.state);this.enterRule(e,68,t.RULE_atom_expr);try{switch(this.state=1290,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,59,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1273,this.literal_value();break;case 2:this.enterOuterAlt(e,2),this.state=1274,this.bind_parameter();break;case 3:this.enterOuterAlt(e,3),this.state=1275,this.lambda();break;case 4:this.enterOuterAlt(e,4),this.state=1276,this.cast_expr();break;case 5:this.enterOuterAlt(e,5),this.state=1277,this.exists_expr();break;case 6:this.enterOuterAlt(e,6),this.state=1278,this.case_expr();break;case 7:switch(this.enterOuterAlt(e,7),this.state=1279,this.an_id_or_type(),this.state=1280,this.match(t.NAMESPACE),this.state=1283,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1281,this.id_or_type();break;case t.STRING_VALUE:this.state=1282,this.match(t.STRING_VALUE);break;default:throw new ce(this)}break;case 8:this.enterOuterAlt(e,8),this.state=1285,this.value_constructor();break;case 9:this.enterOuterAlt(e,9),this.state=1286,this.bitcast_expr();break;case 10:this.enterOuterAlt(e,10),this.state=1287,this.list_literal();break;case 11:this.enterOuterAlt(e,11),this.state=1288,this.dict_literal();break;case 12:this.enterOuterAlt(e,12),this.state=1289,this.struct_literal()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}in_atom_expr(){let e=new Hr(this.context,this.state);this.enterRule(e,70,t.RULE_in_atom_expr);try{switch(this.state=1312,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,61,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1292,this.literal_value();break;case 2:this.enterOuterAlt(e,2),this.state=1293,this.bind_parameter();break;case 3:this.enterOuterAlt(e,3),this.state=1294,this.lambda();break;case 4:this.enterOuterAlt(e,4),this.state=1295,this.cast_expr();break;case 5:this.enterOuterAlt(e,5),this.state=1296,this.case_expr();break;case 6:switch(this.enterOuterAlt(e,6),this.state=1297,this.an_id_or_type(),this.state=1298,this.match(t.NAMESPACE),this.state=1301,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1299,this.id_or_type();break;case t.STRING_VALUE:this.state=1300,this.match(t.STRING_VALUE);break;default:throw new ce(this)}break;case 7:this.enterOuterAlt(e,7),this.state=1303,this.match(t.LPAREN),this.state=1304,this.select_stmt(),this.state=1305,this.match(t.RPAREN);break;case 8:this.enterOuterAlt(e,8),this.state=1307,this.value_constructor();break;case 9:this.enterOuterAlt(e,9),this.state=1308,this.bitcast_expr();break;case 10:this.enterOuterAlt(e,10),this.state=1309,this.list_literal();break;case 11:this.enterOuterAlt(e,11),this.state=1310,this.dict_literal();break;case 12:this.enterOuterAlt(e,12),this.state=1311,this.struct_literal()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}cast_expr(){let e=new wr(this.context,this.state);this.enterRule(e,72,t.RULE_cast_expr);try{this.enterOuterAlt(e,1),this.state=1314,this.match(t.CAST),this.state=1315,this.match(t.LPAREN),this.state=1316,this.expr(),this.state=1317,this.match(t.AS),this.state=1318,this.type_name_or_bind(),this.state=1319,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}bitcast_expr(){let e=new Fr(this.context,this.state);this.enterRule(e,74,t.RULE_bitcast_expr);try{this.enterOuterAlt(e,1),this.state=1321,this.match(t.BITCAST),this.state=1322,this.match(t.LPAREN),this.state=1323,this.expr(),this.state=1324,this.match(t.AS),this.state=1325,this.type_name_simple(),this.state=1326,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}exists_expr(){let e=new Gr(this.context,this.state);this.enterRule(e,76,t.RULE_exists_expr);try{switch(this.enterOuterAlt(e,1),this.state=1328,this.match(t.EXISTS),this.state=1329,this.match(t.LPAREN),this.state=1332,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LPAREN:case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:this.state=1330,this.select_stmt();break;case t.VALUES:this.state=1331,this.values_stmt();break;default:throw new ce(this)}this.state=1334,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}case_expr(){let e,s=new Br(this.context,this.state);this.enterRule(s,78,t.RULE_case_expr);try{if(this.enterOuterAlt(s,1),1===(this.state=1336,this.match(t.CASE),this.state=1338,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,63,this.context)))this.state=1337,this.expr();this.state=1341,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=1340,this.when_expr(),this.state=1343,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(312===e);this.state=1347,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=1345,this.match(t.ELSE),this.state=1346,this.expr()),this.state=1349,this.match(t.END)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}lambda(){let e,s=new Yr(this.context,this.state);this.enterRule(s,80,t.RULE_lambda);try{if(this.enterOuterAlt(s,1),this.state=1351,this.smart_parenthesis(),this.state=1363,this.errorHandler.sync(this),e=this.tokenStream.LA(1),37===e)switch(this.state=1352,this.match(t.ARROW),this.state=1361,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LPAREN:this.state=1353,this.match(t.LPAREN),this.state=1354,this.expr(),this.state=1355,this.match(t.RPAREN);break;case t.LBRACE_CURLY:this.state=1357,this.match(t.LBRACE_CURLY),this.state=1358,this.lambda_body(),this.state=1359,this.match(t.RBRACE_CURLY);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}in_expr(){let e=new Vr(this.context,this.state);this.enterRule(e,82,t.RULE_in_expr);try{this.enterOuterAlt(e,1),this.state=1365,this.in_unary_subexpr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_api_expr(){let e=new Wr(this.context,this.state);this.enterRule(e,84,t.RULE_json_api_expr);try{switch(this.state=1370,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.JSON_VALUE:this.enterOuterAlt(e,1),this.state=1367,this.json_value();break;case t.JSON_EXISTS:this.enterOuterAlt(e,2),this.state=1368,this.json_exists();break;case t.JSON_QUERY:this.enterOuterAlt(e,3),this.state=1369,this.json_query();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}jsonpath_spec(){let e=new Xr(this.context,this.state);this.enterRule(e,86,t.RULE_jsonpath_spec);try{this.enterOuterAlt(e,1),this.state=1372,this.match(t.STRING_VALUE)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_variable_name(){let e=new Kr(this.context,this.state);this.enterRule(e,88,t.RULE_json_variable_name);try{switch(this.state=1376,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=1374,this.id_expr();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=1375,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_variable(){let e=new Qr(this.context,this.state);this.enterRule(e,90,t.RULE_json_variable);try{this.enterOuterAlt(e,1),this.state=1378,this.expr(),this.state=1379,this.match(t.AS),this.state=1380,this.json_variable_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_variables(){let e,s=new qr(this.context,this.state);this.enterRule(s,92,t.RULE_json_variables);try{for(this.enterOuterAlt(s,1),this.state=1382,this.json_variable(),this.state=1387,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1383,this.match(t.COMMA),this.state=1384,this.json_variable(),this.state=1389,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}json_common_args(){let e,s=new jr(this.context,this.state);this.enterRule(s,94,t.RULE_json_common_args);try{this.enterOuterAlt(s,1),this.state=1390,this.expr(),this.state=1391,this.match(t.COMMA),this.state=1392,this.jsonpath_spec(),this.state=1395,this.errorHandler.sync(this),e=this.tokenStream.LA(1),217===e&&(this.state=1393,this.match(t.PASSING),this.state=1394,this.json_variables())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}json_case_handler(){let e=new Jr(this.context,this.state);this.enterRule(e,96,t.RULE_json_case_handler);try{switch(this.state=1401,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ERROR:this.enterOuterAlt(e,1),this.state=1397,this.match(t.ERROR);break;case t.NULL:this.enterOuterAlt(e,2),this.state=1398,this.match(t.NULL);break;case t.DEFAULT:this.enterOuterAlt(e,3),this.state=1399,this.match(t.DEFAULT),this.state=1400,this.expr();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_value(){let e,s=new zr(this.context,this.state);this.enterRule(s,98,t.RULE_json_value);try{for(this.enterOuterAlt(s,1),this.state=1403,this.match(t.JSON_VALUE),this.state=1404,this.match(t.LPAREN),this.state=1405,this.json_common_args(),this.state=1408,this.errorHandler.sync(this),e=this.tokenStream.LA(1),251===e&&(this.state=1406,this.match(t.RETURNING),this.state=1407,this.type_name_simple()),this.state=1416,this.errorHandler.sync(this),e=this.tokenStream.LA(1);98===e||121===e||199===e;)this.state=1410,this.json_case_handler(),this.state=1411,this.match(t.ON),this.state=1412,e=this.tokenStream.LA(1),115===e||121===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1418,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1419,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}json_exists_handler(){let e,s=new Zr(this.context,this.state);this.enterRule(s,100,t.RULE_json_exists_handler);try{this.enterOuterAlt(s,1),this.state=1421,e=this.tokenStream.LA(1),121===e||133===e||293===e||300===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1422,this.match(t.ON),this.state=1423,this.match(t.ERROR)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}json_exists(){let e,s=new $r(this.context,this.state);this.enterRule(s,102,t.RULE_json_exists);try{this.enterOuterAlt(s,1),this.state=1425,this.match(t.JSON_EXISTS),this.state=1426,this.match(t.LPAREN),this.state=1427,this.json_common_args(),this.state=1429,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(121===e||133===e||293===e||300===e)&&(this.state=1428,this.json_exists_handler()),this.state=1431,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}json_query_wrapper(){let e,s=new ti(this.context,this.state);this.enterRule(s,104,t.RULE_json_query_wrapper);try{switch(this.state=1444,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WITHOUT:this.enterOuterAlt(s,1),this.state=1433,this.match(t.WITHOUT),this.state=1435,this.errorHandler.sync(this),e=this.tokenStream.LA(1),50===e&&(this.state=1434,this.match(t.ARRAY));break;case t.WITH:this.enterOuterAlt(s,2),this.state=1437,this.match(t.WITH),this.state=1439,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(81===e||297===e)&&(this.state=1438,e=this.tokenStream.LA(1),81===e||297===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1442,this.errorHandler.sync(this),e=this.tokenStream.LA(1),50===e&&(this.state=1441,this.match(t.ARRAY));break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}json_query_handler(){let e=new ei(this.context,this.state);this.enterRule(e,106,t.RULE_json_query_handler);try{switch(this.state=1452,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,80,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1446,this.match(t.ERROR);break;case 2:this.enterOuterAlt(e,2),this.state=1447,this.match(t.NULL);break;case 3:this.enterOuterAlt(e,3),this.state=1448,this.match(t.EMPTY),this.state=1449,this.match(t.ARRAY);break;case 4:this.enterOuterAlt(e,4),this.state=1450,this.match(t.EMPTY),this.state=1451,this.match(t.OBJECT)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}json_query(){let e,s=new si(this.context,this.state);this.enterRule(s,108,t.RULE_json_query);try{if(this.enterOuterAlt(s,1),1===(this.state=1454,this.match(t.JSON_QUERY),this.state=1455,this.match(t.LPAREN),this.state=1456,this.json_common_args(),this.state=1460,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(315===e||316===e)&&(this.state=1457,this.json_query_wrapper(),this.state=1458,this.match(t.WRAPPER)),this.state=1466,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,82,this.context)))this.state=1462,this.json_query_handler(),this.state=1463,this.match(t.ON),this.state=1464,this.match(t.EMPTY);this.state=1472,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(115===e||121===e||199===e)&&(this.state=1468,this.json_query_handler(),this.state=1469,this.match(t.ON),this.state=1470,this.match(t.ERROR)),this.state=1474,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}smart_parenthesis(){let e,s=new ri(this.context,this.state);this.enterRule(s,110,t.RULE_smart_parenthesis);try{this.enterOuterAlt(s,1),this.state=1476,this.match(t.LPAREN),this.state=1478,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4278585373||!(e-47&-32)&&1<<e-47&4294959103||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-239&-32)&&1<<e-239&4294967291||!(e-271&-32)&&1<<e-271&4294967295||!(e-303&-32)&&1<<e-303&8388607)&&(this.state=1477,this.named_expr_list()),this.state=1481,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1480,this.match(t.COMMA)),this.state=1483,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}expr_list(){let e=new ii(this.context,this.state);this.enterRule(e,112,t.RULE_expr_list);try{let s;for(this.enterOuterAlt(e,1),this.state=1485,this.expr(),this.state=1490,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,86,this.context);2!==s&&s!==z.INVALID_ALT_NUMBER;)1===s&&(this.state=1486,this.match(t.COMMA),this.state=1487,this.expr()),this.state=1492,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,86,this.context)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}pure_column_list(){let e,s=new ai(this.context,this.state);this.enterRule(s,114,t.RULE_pure_column_list);try{for(this.enterOuterAlt(s,1),this.state=1493,this.match(t.LPAREN),this.state=1494,this.an_id(),this.state=1499,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1495,this.match(t.COMMA),this.state=1496,this.an_id(),this.state=1501,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1502,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}pure_column_or_named(){let e=new ni(this.context,this.state);this.enterRule(e,116,t.RULE_pure_column_or_named);try{switch(this.state=1506,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:this.enterOuterAlt(e,1),this.state=1504,this.bind_parameter();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,2),this.state=1505,this.an_id();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}pure_column_or_named_list(){let e,s=new ci(this.context,this.state);this.enterRule(s,118,t.RULE_pure_column_or_named_list);try{for(this.enterOuterAlt(s,1),this.state=1508,this.match(t.LPAREN),this.state=1509,this.pure_column_or_named(),this.state=1514,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1510,this.match(t.COMMA),this.state=1511,this.pure_column_or_named(),this.state=1516,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1517,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}column_name(){let e=new hi(this.context,this.state);this.enterRule(e,120,t.RULE_column_name);try{this.enterOuterAlt(e,1),this.state=1519,this.opt_id_prefix(),this.state=1520,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}without_column_name(){let e=new oi(this.context,this.state);this.enterRule(e,122,t.RULE_without_column_name);try{switch(this.state=1527,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,90,this.context)){case 1:this.enterOuterAlt(e,1),this.state=1522,this.an_id(),this.state=1523,this.match(t.DOT),this.state=1524,this.an_id();break;case 2:this.enterOuterAlt(e,2),this.state=1526,this.an_id_without()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}column_list(){let e,s=new Ei(this.context,this.state);this.enterRule(s,124,t.RULE_column_list);try{let r;for(this.enterOuterAlt(s,1),this.state=1529,this.column_name(),this.state=1534,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=1530,this.match(t.COMMA),this.state=1531,this.column_name()),this.state=1536,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);this.state=1538,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1537,this.match(t.COMMA))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}without_column_list(){let e,s=new li(this.context,this.state);this.enterRule(s,126,t.RULE_without_column_list);try{let r;for(this.enterOuterAlt(s,1),this.state=1540,this.without_column_name(),this.state=1545,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=1541,this.match(t.COMMA),this.state=1542,this.without_column_name()),this.state=1547,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);this.state=1549,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1548,this.match(t.COMMA))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}named_expr(){let e,s=new ui(this.context,this.state);this.enterRule(s,128,t.RULE_named_expr);try{this.enterOuterAlt(s,1),this.state=1551,this.expr(),this.state=1554,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e&&(this.state=1552,this.match(t.AS),this.state=1553,this.an_id_or_type())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}named_expr_list(){let e=new Ri(this.context,this.state);this.enterRule(e,130,t.RULE_named_expr_list);try{let s;for(this.enterOuterAlt(e,1),this.state=1556,this.named_expr(),this.state=1561,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,96,this.context);2!==s&&s!==z.INVALID_ALT_NUMBER;)1===s&&(this.state=1557,this.match(t.COMMA),this.state=1558,this.named_expr()),this.state=1563,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,96,this.context)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}invoke_expr(){let e,s=new _i(this.context,this.state);this.enterRule(s,132,t.RULE_invoke_expr);try{switch(this.enterOuterAlt(s,1),this.state=1564,this.match(t.LPAREN),this.state=1571,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.STRUCT_OPEN:case t.PLUS:case t.MINUS:case t.TILDA:case t.LPAREN:case t.DOLLAR:case t.LBRACE_CURLY:case t.LBRACE_SQUARE:case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FALSE:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TRUE:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:case t.DIGITS:case t.INTEGER_VALUE:case t.REAL:case t.BLOB:this.state=1565,this.opt_set_quantifier(),this.state=1566,this.named_expr_list(),this.state=1568,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1567,this.match(t.COMMA));break;case t.ASTERISK:this.state=1570,this.match(t.ASTERISK);case t.RPAREN:}this.state=1573,this.match(t.RPAREN),this.state=1574,this.invoke_expr_tail()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}invoke_expr_tail(){let e,s=new Ti(this.context,this.state);this.enterRule(s,134,t.RULE_invoke_expr_tail);try{switch(this.enterOuterAlt(s,1),this.state=1578,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,99,this.context)){case 1:this.state=1576,this.null_treatment();break;case 2:this.state=1577,this.filter_clause()}this.state=1582,this.errorHandler.sync(this),e=this.tokenStream.LA(1),214===e&&(this.state=1580,this.match(t.OVER),this.state=1581,this.window_name_or_specification())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}using_call_expr(){let e=new Ai(this.context,this.state);this.enterRule(e,136,t.RULE_using_call_expr);try{switch(this.enterOuterAlt(e,1),this.state=1592,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,101,this.context)){case 1:this.state=1584,this.an_id_or_type(),this.state=1585,this.match(t.NAMESPACE),this.state=1586,this.an_id_or_type();break;case 2:this.state=1588,this.an_id_expr();break;case 3:this.state=1589,this.bind_parameter();break;case 4:this.state=1590,this.match(t.EXTERNAL),this.state=1591,this.match(t.FUNCTION)}this.state=1594,this.invoke_expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}key_expr(){let e=new Si(this.context,this.state);this.enterRule(e,138,t.RULE_key_expr);try{this.enterOuterAlt(e,1),this.state=1596,this.match(t.LBRACE_SQUARE),this.state=1597,this.expr(),this.state=1598,this.match(t.RBRACE_SQUARE)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}when_expr(){let e=new di(this.context,this.state);this.enterRule(e,140,t.RULE_when_expr);try{this.enterOuterAlt(e,1),this.state=1600,this.match(t.WHEN),this.state=1601,this.expr(),this.state=1602,this.match(t.THEN),this.state=1603,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}literal_value(){let e=new Li(this.context,this.state);this.enterRule(e,142,t.RULE_literal_value);try{switch(this.state=1615,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DIGITS:case t.INTEGER_VALUE:this.enterOuterAlt(e,1),this.state=1605,this.integer();break;case t.REAL:this.enterOuterAlt(e,2),this.state=1606,this.real();break;case t.STRING_VALUE:this.enterOuterAlt(e,3),this.state=1607,this.match(t.STRING_VALUE);break;case t.BLOB:this.enterOuterAlt(e,4),this.state=1608,this.match(t.BLOB);break;case t.NULL:this.enterOuterAlt(e,5),this.state=1609,this.match(t.NULL);break;case t.CURRENT_TIME:this.enterOuterAlt(e,6),this.state=1610,this.match(t.CURRENT_TIME);break;case t.CURRENT_DATE:this.enterOuterAlt(e,7),this.state=1611,this.match(t.CURRENT_DATE);break;case t.CURRENT_TIMESTAMP:this.enterOuterAlt(e,8),this.state=1612,this.match(t.CURRENT_TIMESTAMP);break;case t.FALSE:case t.TRUE:this.enterOuterAlt(e,9),this.state=1613,this.bool_value();break;case t.EMPTY_ACTION:this.enterOuterAlt(e,10),this.state=1614,this.match(t.EMPTY_ACTION);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}bind_parameter(){let e=new Ci(this.context,this.state);this.enterRule(e,144,t.RULE_bind_parameter);try{switch(this.enterOuterAlt(e,1),this.state=1617,this.match(t.DOLLAR),this.state=1621,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1618,this.an_id_or_type();break;case t.TRUE:this.state=1619,this.match(t.TRUE);break;case t.FALSE:this.state=1620,this.match(t.FALSE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}opt_bind_parameter(){let e,s=new Ni(this.context,this.state);this.enterRule(s,146,t.RULE_opt_bind_parameter);try{this.enterOuterAlt(s,1),this.state=1623,this.bind_parameter(),this.state=1625,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=1624,this.match(t.QUESTION))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}bind_parameter_list(){let e,s=new Ii(this.context,this.state);this.enterRule(s,148,t.RULE_bind_parameter_list);try{for(this.enterOuterAlt(s,1),this.state=1627,this.bind_parameter(),this.state=1632,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1628,this.match(t.COMMA),this.state=1629,this.bind_parameter(),this.state=1634,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}named_bind_parameter(){let e,s=new Oi(this.context,this.state);this.enterRule(s,150,t.RULE_named_bind_parameter);try{this.enterOuterAlt(s,1),this.state=1635,this.bind_parameter(),this.state=1638,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e&&(this.state=1636,this.match(t.AS),this.state=1637,this.bind_parameter())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}named_bind_parameter_list(){let e,s=new pi(this.context,this.state);this.enterRule(s,152,t.RULE_named_bind_parameter_list);try{for(this.enterOuterAlt(s,1),this.state=1640,this.named_bind_parameter(),this.state=1645,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1641,this.match(t.COMMA),this.state=1642,this.named_bind_parameter(),this.state=1647,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}signed_number(){let e,s=new gi(this.context,this.state);this.enterRule(s,154,t.RULE_signed_number);try{switch(this.enterOuterAlt(s,1),this.state=1649,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(17===e||18===e)&&(this.state=1648,e=this.tokenStream.LA(1),17===e||18===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1653,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DIGITS:case t.INTEGER_VALUE:this.state=1651,this.integer();break;case t.REAL:this.state=1652,this.real();break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name_simple(){let e=new mi(this.context,this.state);this.enterRule(e,156,t.RULE_type_name_simple);try{this.enterOuterAlt(e,1),this.state=1655,this.an_id_pure()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}integer_or_bind(){let e=new xi(this.context,this.state);this.enterRule(e,158,t.RULE_integer_or_bind);try{switch(this.state=1659,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DIGITS:case t.INTEGER_VALUE:this.enterOuterAlt(e,1),this.state=1657,this.integer();break;case t.DOLLAR:this.enterOuterAlt(e,2),this.state=1658,this.bind_parameter();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_tag(){let e=new Ui(this.context,this.state);this.enterRule(e,160,t.RULE_type_name_tag);try{switch(this.state=1664,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=1661,this.id();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=1662,this.match(t.STRING_VALUE);break;case t.DOLLAR:this.enterOuterAlt(e,3),this.state=1663,this.bind_parameter();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}struct_arg(){let e=new fi(this.context,this.state);this.enterRule(e,162,t.RULE_struct_arg);try{this.enterOuterAlt(e,1),this.state=1666,this.type_name_tag(),this.state=1667,this.match(t.COLON),this.state=1668,this.type_name_or_bind()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}struct_arg_positional(){let e,s=new Pi(this.context,this.state);this.enterRule(s,164,t.RULE_struct_arg_positional);try{switch(this.state=1682,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,114,this.context)){case 1:this.enterOuterAlt(s,1),this.state=1670,this.type_name_tag(),this.state=1671,this.type_name_or_bind(),this.state=1676,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(197===e||199===e)&&(this.state=1673,this.errorHandler.sync(this),e=this.tokenStream.LA(1),197===e&&(this.state=1672,this.match(t.NOT)),this.state=1675,this.match(t.NULL));break;case 2:this.enterOuterAlt(s,2),this.state=1678,this.type_name_or_bind(),this.state=1679,this.match(t.AS),this.state=1680,this.type_name_tag()}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}variant_arg(){let e=new ki(this.context,this.state);this.enterRule(e,166,t.RULE_variant_arg);try{if(this.enterOuterAlt(e,1),1===(this.state=1687,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,115,this.context)))this.state=1684,this.type_name_tag(),this.state=1685,this.match(t.COLON);this.state=1689,this.type_name_or_bind()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}callable_arg(){let e,s=new Mi(this.context,this.state);this.enterRule(s,168,t.RULE_callable_arg);try{this.enterOuterAlt(s,1),this.state=1691,this.variant_arg(),this.state=1695,this.errorHandler.sync(this),e=this.tokenStream.LA(1),33===e&&(this.state=1692,this.match(t.LBRACE_CURLY),this.state=1693,this.match(t.AUTOMAP),this.state=1694,this.match(t.RBRACE_CURLY))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}callable_arg_list(){let e=new Di(this.context,this.state);this.enterRule(e,170,t.RULE_callable_arg_list);try{let s;for(this.enterOuterAlt(e,1),this.state=1697,this.callable_arg(),this.state=1702,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,117,this.context);2!==s&&s!==z.INVALID_ALT_NUMBER;)1===s&&(this.state=1698,this.match(t.COMMA),this.state=1699,this.callable_arg()),this.state=1704,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,117,this.context)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_decimal(){let e=new yi(this.context,this.state);this.enterRule(e,172,t.RULE_type_name_decimal);try{this.enterOuterAlt(e,1),this.state=1705,this.match(t.DECIMAL),this.state=1706,this.match(t.LPAREN),this.state=1707,this.integer_or_bind(),this.state=1708,this.match(t.COMMA),this.state=1709,this.integer_or_bind(),this.state=1710,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_optional(){let e=new vi(this.context,this.state);this.enterRule(e,174,t.RULE_type_name_optional);try{this.enterOuterAlt(e,1),this.state=1712,this.match(t.OPTIONAL),this.state=1713,this.match(t.LESS),this.state=1714,this.type_name_or_bind(),this.state=1715,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_tuple(){let e,s=new bi(this.context,this.state);this.enterRule(s,176,t.RULE_type_name_tuple);try{let r;switch(this.enterOuterAlt(s,1),this.state=1717,this.match(t.TUPLE),this.state=1734,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LESS:if(this.state=1718,this.match(t.LESS),this.state=1730,this.errorHandler.sync(this),e=this.tokenStream.LA(1),32===e||69===e||96===e||106===e||119===e||138===e||183===e||209===e||!(e-245&-32)&&1<<e-245&406847489||!(e-284&-32)&&1<<e-284&33555457||!(e-319&-32)&&1<<e-319&7){for(this.state=1719,this.type_name_or_bind(),this.state=1724,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=1720,this.match(t.COMMA),this.state=1721,this.type_name_or_bind()),this.state=1726,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);this.state=1728,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1727,this.match(t.COMMA))}this.state=1732,this.match(t.GREATER);break;case t.NOT_EQUALS2:this.state=1733,this.match(t.NOT_EQUALS2);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name_struct(){let e,s=new Hi(this.context,this.state);this.enterRule(s,178,t.RULE_type_name_struct);try{let r;switch(this.enterOuterAlt(s,1),this.state=1736,this.match(t.STRUCT),this.state=1753,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LESS:if(this.state=1737,this.match(t.LESS),this.state=1749,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-32&-32)&&1<<e-32&4026531585||!(e-64&-32)&&1<<e-64&4294967263||!(e-96&-32)&&1<<e-96&4286577663||!(e-128&-32)&&1<<e-128&4294704095||!(e-160&-32)&&1<<e-160&4286578687||!(e-192&-32)&&1<<e-192&4294836223||!(e-224&-32)&&1<<e-224&4292739071||!(e-256&-32)&&1<<e-256&4026398719||!(e-288&-32)&&1<<e-288&4292870047||320===e||321===e){for(this.state=1738,this.struct_arg(),this.state=1743,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=1739,this.match(t.COMMA),this.state=1740,this.struct_arg()),this.state=1745,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);this.state=1747,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1746,this.match(t.COMMA))}this.state=1751,this.match(t.GREATER);break;case t.NOT_EQUALS2:this.state=1752,this.match(t.NOT_EQUALS2);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name_variant(){let e,s=new wi(this.context,this.state);this.enterRule(s,180,t.RULE_type_name_variant);try{let r;for(this.enterOuterAlt(s,1),this.state=1755,this.match(t.VARIANT),this.state=1756,this.match(t.LESS),this.state=1757,this.variant_arg(),this.state=1762,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=1758,this.match(t.COMMA),this.state=1759,this.variant_arg()),this.state=1764,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);this.state=1766,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1765,this.match(t.COMMA)),this.state=1768,this.match(t.GREATER)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name_list(){let e=new Fi(this.context,this.state);this.enterRule(e,182,t.RULE_type_name_list);try{this.enterOuterAlt(e,1),this.state=1770,this.match(t.LIST),this.state=1771,this.match(t.LESS),this.state=1772,this.type_name_or_bind(),this.state=1773,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_stream(){let e=new Gi(this.context,this.state);this.enterRule(e,184,t.RULE_type_name_stream);try{this.enterOuterAlt(e,1),this.state=1775,this.match(t.STREAM),this.state=1776,this.match(t.LESS),this.state=1777,this.type_name_or_bind(),this.state=1778,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_flow(){let e=new Bi(this.context,this.state);this.enterRule(e,186,t.RULE_type_name_flow);try{this.enterOuterAlt(e,1),this.state=1780,this.match(t.FLOW),this.state=1781,this.match(t.LESS),this.state=1782,this.type_name_or_bind(),this.state=1783,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_dict(){let e=new Yi(this.context,this.state);this.enterRule(e,188,t.RULE_type_name_dict);try{this.enterOuterAlt(e,1),this.state=1785,this.match(t.DICT),this.state=1786,this.match(t.LESS),this.state=1787,this.type_name_or_bind(),this.state=1788,this.match(t.COMMA),this.state=1789,this.type_name_or_bind(),this.state=1790,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_set(){let e=new Vi(this.context,this.state);this.enterRule(e,190,t.RULE_type_name_set);try{this.enterOuterAlt(e,1),this.state=1792,this.match(t.SET),this.state=1793,this.match(t.LESS),this.state=1794,this.type_name_or_bind(),this.state=1795,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_enum(){let e,s=new Wi(this.context,this.state);this.enterRule(s,192,t.RULE_type_name_enum);try{let r;for(this.enterOuterAlt(s,1),this.state=1797,this.match(t.ENUM),this.state=1798,this.match(t.LESS),this.state=1799,this.type_name_tag(),this.state=1804,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=1800,this.match(t.COMMA),this.state=1801,this.type_name_tag()),this.state=1806,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);this.state=1808,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1807,this.match(t.COMMA)),this.state=1810,this.match(t.GREATER)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name_resource(){let e=new Xi(this.context,this.state);this.enterRule(e,194,t.RULE_type_name_resource);try{this.enterOuterAlt(e,1),this.state=1812,this.match(t.RESOURCE),this.state=1813,this.match(t.LESS),this.state=1814,this.type_name_tag(),this.state=1815,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_tagged(){let e=new Ki(this.context,this.state);this.enterRule(e,196,t.RULE_type_name_tagged);try{this.enterOuterAlt(e,1),this.state=1817,this.match(t.TAGGED),this.state=1818,this.match(t.LESS),this.state=1819,this.type_name_or_bind(),this.state=1820,this.match(t.COMMA),this.state=1821,this.type_name_tag(),this.state=1822,this.match(t.GREATER)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}type_name_callable(){let e,s=new Qi(this.context,this.state);this.enterRule(s,198,t.RULE_type_name_callable);try{this.enterOuterAlt(s,1),this.state=1824,this.match(t.CALLABLE),this.state=1825,this.match(t.LESS),this.state=1826,this.match(t.LPAREN),this.state=1828,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-32&-32)&&1<<e-32&4026531585||!(e-64&-32)&&1<<e-64&4294967295||!(e-96&-32)&&1<<e-96&4294967295||!(e-128&-32)&&1<<e-128&4294705119||!(e-160&-32)&&1<<e-160&4294967295||!(e-192&-32)&&1<<e-192&4294967295||!(e-224&-32)&&1<<e-224&4294836223||!(e-256&-32)&&1<<e-256&4294967295||!(e-288&-32)&&1<<e-288&4294967263||320===e||321===e)&&(this.state=1827,this.callable_arg_list()),this.state=1831,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=1830,this.match(t.COMMA)),this.state=1837,this.errorHandler.sync(this),e=this.tokenStream.LA(1),39===e&&(this.state=1833,this.match(t.LBRACE_SQUARE),this.state=1834,this.callable_arg_list(),this.state=1835,this.match(t.RBRACE_SQUARE)),this.state=1839,this.match(t.RPAREN),this.state=1840,this.match(t.ARROW),this.state=1841,this.type_name_or_bind(),this.state=1842,this.match(t.GREATER)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name_composite(){let e,s=new qi(this.context,this.state);this.enterRule(s,200,t.RULE_type_name_composite);try{switch(this.enterOuterAlt(s,1),this.state=1857,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.OPTIONAL:this.state=1844,this.type_name_optional();break;case t.TUPLE:this.state=1845,this.type_name_tuple();break;case t.STRUCT:this.state=1846,this.type_name_struct();break;case t.VARIANT:this.state=1847,this.type_name_variant();break;case t.LIST:this.state=1848,this.type_name_list();break;case t.STREAM:this.state=1849,this.type_name_stream();break;case t.FLOW:this.state=1850,this.type_name_flow();break;case t.DICT:this.state=1851,this.type_name_dict();break;case t.SET:this.state=1852,this.type_name_set();break;case t.ENUM:this.state=1853,this.type_name_enum();break;case t.RESOURCE:this.state=1854,this.type_name_resource();break;case t.TAGGED:this.state=1855,this.type_name_tagged();break;case t.CALLABLE:this.state=1856,this.type_name_callable();break;default:throw new ce(this)}for(this.state=1862,this.errorHandler.sync(this),e=this.tokenStream.LA(1);28===e;)this.state=1859,this.match(t.QUESTION),this.state=1864,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name(){let e,s=new ji(this.context,this.state);this.enterRule(s,202,t.RULE_type_name);try{switch(this.state=1876,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CALLABLE:case t.DICT:case t.ENUM:case t.FLOW:case t.LIST:case t.OPTIONAL:case t.RESOURCE:case t.SET:case t.STREAM:case t.STRUCT:case t.TAGGED:case t.TUPLE:case t.VARIANT:this.enterOuterAlt(s,1),this.state=1865,this.type_name_composite();break;case t.DECIMAL:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:switch(this.enterOuterAlt(s,2),this.state=1868,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DECIMAL:this.state=1866,this.type_name_decimal();break;case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=1867,this.type_name_simple();break;default:throw new ce(this)}for(this.state=1873,this.errorHandler.sync(this),e=this.tokenStream.LA(1);28===e;)this.state=1870,this.match(t.QUESTION),this.state=1875,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_name_or_bind(){let e=new Ji(this.context,this.state);this.enterRule(e,204,t.RULE_type_name_or_bind);try{switch(this.state=1880,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CALLABLE:case t.DECIMAL:case t.DICT:case t.ENUM:case t.FLOW:case t.LIST:case t.OPTIONAL:case t.RESOURCE:case t.SET:case t.STREAM:case t.STRUCT:case t.TAGGED:case t.TUPLE:case t.VARIANT:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=1878,this.type_name();break;case t.DOLLAR:this.enterOuterAlt(e,2),this.state=1879,this.bind_parameter();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}value_constructor_literal(){let e=new zi(this.context,this.state);this.enterRule(e,206,t.RULE_value_constructor_literal);try{this.enterOuterAlt(e,1),this.state=1882,this.match(t.STRING_VALUE)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}value_constructor(){let e=new Zi(this.context,this.state);this.enterRule(e,208,t.RULE_value_constructor);try{switch(this.state=1907,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.VARIANT:this.enterOuterAlt(e,1),this.state=1884,this.match(t.VARIANT),this.state=1885,this.match(t.LPAREN),this.state=1886,this.expr(),this.state=1887,this.match(t.COMMA),this.state=1888,this.expr(),this.state=1889,this.match(t.COMMA),this.state=1890,this.expr(),this.state=1891,this.match(t.RPAREN);break;case t.ENUM:this.enterOuterAlt(e,2),this.state=1893,this.match(t.ENUM),this.state=1894,this.match(t.LPAREN),this.state=1895,this.expr(),this.state=1896,this.match(t.COMMA),this.state=1897,this.expr(),this.state=1898,this.match(t.RPAREN);break;case t.CALLABLE:this.enterOuterAlt(e,3),this.state=1900,this.match(t.CALLABLE),this.state=1901,this.match(t.LPAREN),this.state=1902,this.expr(),this.state=1903,this.match(t.COMMA),this.state=1904,this.expr(),this.state=1905,this.match(t.RPAREN);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}declare_stmt(){let e,s=new $i(this.context,this.state);this.enterRule(s,210,t.RULE_declare_stmt);try{this.enterOuterAlt(s,1),this.state=1909,this.match(t.DECLARE),this.state=1910,this.bind_parameter(),this.state=1911,this.match(t.AS),this.state=1912,this.type_name(),this.state=1915,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=1913,this.match(t.EQUALS),this.state=1914,this.literal_value())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}module_path(){let e,s=new ta(this.context,this.state);this.enterRule(s,212,t.RULE_module_path);try{for(this.enterOuterAlt(s,1),this.state=1918,this.errorHandler.sync(this),e=this.tokenStream.LA(1),24===e&&(this.state=1917,this.match(t.DOT)),this.state=1920,this.an_id(),this.state=1925,this.errorHandler.sync(this),e=this.tokenStream.LA(1);24===e;)this.state=1921,this.match(t.DOT),this.state=1922,this.an_id(),this.state=1927,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}import_stmt(){let e=new ea(this.context,this.state);this.enterRule(e,214,t.RULE_import_stmt);try{this.enterOuterAlt(e,1),this.state=1928,this.match(t.IMPORT),this.state=1929,this.module_path(),this.state=1930,this.match(t.SYMBOLS),this.state=1931,this.named_bind_parameter_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}export_stmt(){let e=new sa(this.context,this.state);this.enterRule(e,216,t.RULE_export_stmt);try{this.enterOuterAlt(e,1),this.state=1933,this.match(t.EXPORT),this.state=1934,this.bind_parameter_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}call_action(){let e,s=new ra(this.context,this.state);this.enterRule(s,218,t.RULE_call_action);try{switch(this.enterOuterAlt(s,1),this.state=1938,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:this.state=1936,this.bind_parameter();break;case t.EMPTY_ACTION:this.state=1937,this.match(t.EMPTY_ACTION);break;default:throw new ce(this)}this.state=1940,this.match(t.LPAREN),this.state=1942,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4278585373||!(e-47&-32)&&1<<e-47&4294959103||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-239&-32)&&1<<e-239&4294967291||!(e-271&-32)&&1<<e-271&4294967295||!(e-303&-32)&&1<<e-303&8388607)&&(this.state=1941,this.expr_list()),this.state=1944,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}inline_action(){let e=new ia(this.context,this.state);this.enterRule(e,220,t.RULE_inline_action);try{this.enterOuterAlt(e,1),this.state=1946,this.match(t.BEGIN),this.state=1947,this.define_action_or_subquery_body(),this.state=1948,this.match(t.END),this.state=1949,this.match(t.DO)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}do_stmt(){let e=new aa(this.context,this.state);this.enterRule(e,222,t.RULE_do_stmt);try{switch(this.enterOuterAlt(e,1),this.state=1951,this.match(t.DO),this.state=1954,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:case t.EMPTY_ACTION:this.state=1952,this.call_action();break;case t.BEGIN:this.state=1953,this.inline_action();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}pragma_stmt(){let e,s=new na(this.context,this.state);this.enterRule(s,224,t.RULE_pragma_stmt);try{switch(this.enterOuterAlt(s,1),this.state=1956,this.match(t.PRAGMA),this.state=1957,this.opt_id_prefix_or_type(),this.state=1958,this.an_id(),this.state=1972,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EQUALS:this.state=1959,this.match(t.EQUALS),this.state=1960,this.pragma_value();break;case t.LPAREN:for(this.state=1961,this.match(t.LPAREN),this.state=1962,this.pragma_value(),this.state=1967,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1963,this.match(t.COMMA),this.state=1964,this.pragma_value(),this.state=1969,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=1970,this.match(t.RPAREN);case t.EOF:case t.SEMICOLON:case t.END:}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}pragma_value(){let e=new ca(this.context,this.state);this.enterRule(e,226,t.RULE_pragma_value);try{switch(this.state=1979,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PLUS:case t.MINUS:case t.DIGITS:case t.INTEGER_VALUE:case t.REAL:this.enterOuterAlt(e,1),this.state=1974,this.signed_number();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,2),this.state=1975,this.id();break;case t.STRING_VALUE:this.enterOuterAlt(e,3),this.state=1976,this.match(t.STRING_VALUE);break;case t.FALSE:case t.TRUE:this.enterOuterAlt(e,4),this.state=1977,this.bool_value();break;case t.DOLLAR:this.enterOuterAlt(e,5),this.state=1978,this.bind_parameter();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sort_specification(){let e,s=new ha(this.context,this.state);this.enterRule(s,228,t.RULE_sort_specification);try{this.enterOuterAlt(s,1),this.state=1981,this.expr(),this.state=1983,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(52===e||103===e)&&(this.state=1982,e=this.tokenStream.LA(1),52===e||103===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}sort_specification_list(){let e,s=new oa(this.context,this.state);this.enterRule(s,230,t.RULE_sort_specification_list);try{for(this.enterOuterAlt(s,1),this.state=1985,this.sort_specification(),this.state=1990,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=1986,this.match(t.COMMA),this.state=1987,this.sort_specification(),this.state=1992,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}select_stmt(){let e,s=new Ea(this.context,this.state);this.enterRule(s,232,t.RULE_select_stmt);try{for(this.enterOuterAlt(s,1),this.state=1993,this.select_kind_parenthesis(),this.state=1999,this.errorHandler.sync(this),e=this.tokenStream.LA(1);124===e||169===e||298===e;)this.state=1994,this.select_op(),this.state=1995,this.select_kind_parenthesis(),this.state=2001,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}select_unparenthesized_stmt(){let e,s=new la(this.context,this.state);this.enterRule(s,234,t.RULE_select_unparenthesized_stmt);try{for(this.enterOuterAlt(s,1),this.state=2002,this.select_kind_partial(),this.state=2008,this.errorHandler.sync(this),e=this.tokenStream.LA(1);124===e||169===e||298===e;)this.state=2003,this.select_op(),this.state=2004,this.select_kind_parenthesis(),this.state=2010,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}select_kind_parenthesis(){let e=new ua(this.context,this.state);this.enterRule(e,236,t.RULE_select_kind_parenthesis);try{switch(this.state=2016,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:this.enterOuterAlt(e,1),this.state=2011,this.select_kind_partial();break;case t.LPAREN:this.enterOuterAlt(e,2),this.state=2012,this.match(t.LPAREN),this.state=2013,this.select_kind_partial(),this.state=2014,this.match(t.RPAREN);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}select_op(){let e,s=new Ra(this.context,this.state);this.enterRule(s,238,t.RULE_select_op);try{switch(this.state=2024,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.UNION:this.enterOuterAlt(s,1),this.state=2018,this.match(t.UNION),this.state=2020,this.errorHandler.sync(this),e=this.tokenStream.LA(1),44===e&&(this.state=2019,this.match(t.ALL));break;case t.INTERSECT:this.enterOuterAlt(s,2),this.state=2022,this.match(t.INTERSECT);break;case t.EXCEPT:this.enterOuterAlt(s,3),this.state=2023,this.match(t.EXCEPT);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}select_kind_partial(){let e,s=new _a(this.context,this.state);this.enterRule(s,240,t.RULE_select_kind_partial);try{this.enterOuterAlt(s,1),this.state=2026,this.select_kind(),this.state=2033,this.errorHandler.sync(this),e=this.tokenStream.LA(1),182===e&&(this.state=2027,this.match(t.LIMIT),this.state=2028,this.expr(),this.state=2031,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(25===e||203===e)&&(this.state=2029,e=this.tokenStream.LA(1),25===e||203===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=2030,this.expr()))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}select_kind(){let e,s=new Ta(this.context,this.state);this.enterRule(s,242,t.RULE_select_kind);try{switch(this.enterOuterAlt(s,1),this.state=2036,this.errorHandler.sync(this),e=this.tokenStream.LA(1),109===e&&(this.state=2035,this.match(t.DISCARD)),this.state=2041,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PROCESS:this.state=2038,this.process_core();break;case t.REDUCE:this.state=2039,this.reduce_core();break;case t.FROM:case t.SELECT:this.state=2040,this.select_core();break;default:throw new ce(this)}this.state=2046,this.errorHandler.sync(this),e=this.tokenStream.LA(1),170===e&&(this.state=2043,this.match(t.INTO),this.state=2044,this.match(t.RESULT),this.state=2045,this.pure_column_or_named())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}process_core(){let e,s=new Aa(this.context,this.state);this.enterRule(s,244,t.RULE_process_core);try{if(this.enterOuterAlt(s,1),1===(this.state=2048,this.match(t.PROCESS),this.state=2050,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,161,this.context)))this.state=2049,this.match(t.STREAM);for(this.state=2052,this.named_single_source(),this.state=2057,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2053,this.match(t.COMMA),this.state=2054,this.named_single_source(),this.state=2059,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2081,this.errorHandler.sync(this),e=this.tokenStream.LA(1),306===e&&(this.state=2060,this.match(t.USING),this.state=2061,this.using_call_expr(),this.state=2064,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e&&(this.state=2062,this.match(t.AS),this.state=2063,this.an_id()),this.state=2068,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=2066,this.match(t.WITH),this.state=2067,this.external_call_settings()),this.state=2071,this.errorHandler.sync(this),e=this.tokenStream.LA(1),313===e&&(this.state=2070,this.where_expr()),this.state=2075,this.errorHandler.sync(this),e=this.tokenStream.LA(1),152===e&&(this.state=2073,this.match(t.HAVING),this.state=2074,this.expr()),this.state=2079,this.errorHandler.sync(this),e=this.tokenStream.LA(1),53===e&&(this.state=2077,this.match(t.ASSUME),this.state=2078,this.order_by_clause()))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}external_call_param(){let e=new Sa(this.context,this.state);this.enterRule(e,246,t.RULE_external_call_param);try{this.enterOuterAlt(e,1),this.state=2083,this.an_id(),this.state=2084,this.match(t.EQUALS),this.state=2085,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}external_call_settings(){let e,s=new da(this.context,this.state);this.enterRule(s,248,t.RULE_external_call_settings);try{for(this.enterOuterAlt(s,1),this.state=2087,this.external_call_param(),this.state=2092,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2088,this.match(t.COMMA),this.state=2089,this.external_call_param(),this.state=2094,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}reduce_core(){let e,s=new La(this.context,this.state);this.enterRule(s,250,t.RULE_reduce_core);try{for(this.enterOuterAlt(s,1),this.state=2095,this.match(t.REDUCE),this.state=2096,this.named_single_source(),this.state=2101,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2097,this.match(t.COMMA),this.state=2098,this.named_single_source(),this.state=2103,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(1===(this.state=2106,this.errorHandler.sync(this),e=this.tokenStream.LA(1),227===e&&(this.state=2104,this.match(t.PRESORT),this.state=2105,this.sort_specification_list()),this.state=2108,this.match(t.ON),this.state=2109,this.column_list(),this.state=2110,this.match(t.USING),this.state=2112,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,172,this.context)))this.state=2111,this.match(t.ALL);this.state=2114,this.using_call_expr(),this.state=2117,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e&&(this.state=2115,this.match(t.AS),this.state=2116,this.an_id()),this.state=2120,this.errorHandler.sync(this),e=this.tokenStream.LA(1),313===e&&(this.state=2119,this.where_expr()),this.state=2124,this.errorHandler.sync(this),e=this.tokenStream.LA(1),152===e&&(this.state=2122,this.match(t.HAVING),this.state=2123,this.expr()),this.state=2128,this.errorHandler.sync(this),e=this.tokenStream.LA(1),53===e&&(this.state=2126,this.match(t.ASSUME),this.state=2127,this.order_by_clause())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}opt_set_quantifier(){let e,s=new Ca(this.context,this.state);this.enterRule(s,252,t.RULE_opt_set_quantifier);try{if(1===(this.enterOuterAlt(s,1),this.state=2131,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,177,this.context)))this.state=2130,e=this.tokenStream.LA(1),44===e||110===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}select_core(){let e,s=new Na(this.context,this.state);this.enterRule(s,254,t.RULE_select_core);try{let r;if(this.enterOuterAlt(s,1),1===(this.state=2134,this.errorHandler.sync(this),e=this.tokenStream.LA(1),142===e&&(this.state=2133,this.from_stmt()),this.state=2136,this.match(t.SELECT),this.state=2138,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,179,this.context)))this.state=2137,this.match(t.STREAM);for(this.state=2140,this.opt_set_quantifier(),this.state=2141,this.result_column(),this.state=2146,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=2142,this.match(t.COMMA),this.state=2143,this.result_column()),this.state=2148,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);this.state=2150,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=2149,this.match(t.COMMA)),this.state=2154,this.errorHandler.sync(this),e=this.tokenStream.LA(1),316===e&&(this.state=2152,this.match(t.WITHOUT),this.state=2153,this.without_column_list()),this.state=2157,this.errorHandler.sync(this),e=this.tokenStream.LA(1),142===e&&(this.state=2156,this.from_stmt()),this.state=2160,this.errorHandler.sync(this),e=this.tokenStream.LA(1),313===e&&(this.state=2159,this.where_expr()),this.state=2163,this.errorHandler.sync(this),e=this.tokenStream.LA(1),148===e&&(this.state=2162,this.group_by_clause()),this.state=2167,this.errorHandler.sync(this),e=this.tokenStream.LA(1),152===e&&(this.state=2165,this.match(t.HAVING),this.state=2166,this.expr()),this.state=2170,this.errorHandler.sync(this),e=this.tokenStream.LA(1),314===e&&(this.state=2169,this.window_clause()),this.state=2173,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(53===e||211===e)&&(this.state=2172,this.ext_order_by_clause())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_recognition_clause(){let e,s=new Ia(this.context,this.state);this.enterRule(s,256,t.RULE_row_pattern_recognition_clause);try{this.enterOuterAlt(s,1),this.state=2175,this.match(t.MATCH_RECOGNIZE),this.state=2176,this.match(t.LPAREN),this.state=2178,this.errorHandler.sync(this),e=this.tokenStream.LA(1),216===e&&(this.state=2177,this.window_partition_clause()),this.state=2181,this.errorHandler.sync(this),e=this.tokenStream.LA(1),211===e&&(this.state=2180,this.order_by_clause()),this.state=2184,this.errorHandler.sync(this),e=this.tokenStream.LA(1),189===e&&(this.state=2183,this.row_pattern_measures()),this.state=2187,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(44===e||206===e)&&(this.state=2186,this.row_pattern_rows_per_match()),this.state=2189,this.row_pattern_common_syntax(),this.state=2190,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_rows_per_match(){let e,s=new Oa(this.context,this.state);this.enterRule(s,258,t.RULE_row_pattern_rows_per_match);try{switch(this.state=2203,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ONE:this.enterOuterAlt(s,1),this.state=2192,this.match(t.ONE),this.state=2193,this.match(t.ROW),this.state=2194,this.match(t.PER),this.state=2195,this.match(t.MATCH);break;case t.ALL:this.enterOuterAlt(s,2),this.state=2196,this.match(t.ALL),this.state=2197,this.match(t.ROWS),this.state=2198,this.match(t.PER),this.state=2199,this.match(t.MATCH),this.state=2201,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(204===e||269===e||315===e)&&(this.state=2200,this.row_pattern_empty_match_handling());break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_empty_match_handling(){let e=new pa(this.context,this.state);this.enterRule(e,260,t.RULE_row_pattern_empty_match_handling);try{switch(this.state=2214,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SHOW:this.enterOuterAlt(e,1),this.state=2205,this.match(t.SHOW),this.state=2206,this.match(t.EMPTY),this.state=2207,this.match(t.MATCHES);break;case t.OMIT:this.enterOuterAlt(e,2),this.state=2208,this.match(t.OMIT),this.state=2209,this.match(t.EMPTY),this.state=2210,this.match(t.MATCHES);break;case t.WITH:this.enterOuterAlt(e,3),this.state=2211,this.match(t.WITH),this.state=2212,this.match(t.UNMATCHED),this.state=2213,this.match(t.ROWS);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_measures(){let e=new ga(this.context,this.state);this.enterRule(e,262,t.RULE_row_pattern_measures);try{this.enterOuterAlt(e,1),this.state=2216,this.match(t.MEASURES),this.state=2217,this.row_pattern_measure_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_measure_list(){let e,s=new ma(this.context,this.state);this.enterRule(s,264,t.RULE_row_pattern_measure_list);try{for(this.enterOuterAlt(s,1),this.state=2219,this.row_pattern_measure_definition(),this.state=2224,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2220,this.match(t.COMMA),this.state=2221,this.row_pattern_measure_definition(),this.state=2226,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_measure_definition(){let e=new xa(this.context,this.state);this.enterRule(e,266,t.RULE_row_pattern_measure_definition);try{this.enterOuterAlt(e,1),this.state=2227,this.expr(),this.state=2228,this.match(t.AS),this.state=2229,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_common_syntax(){let e,s=new Ua(this.context,this.state);this.enterRule(s,268,t.RULE_row_pattern_common_syntax);try{this.enterOuterAlt(s,1),this.state=2234,this.errorHandler.sync(this),e=this.tokenStream.LA(1),43===e&&(this.state=2231,this.match(t.AFTER),this.state=2232,this.match(t.MATCH),this.state=2233,this.row_pattern_skip_to()),this.state=2237,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(164===e||264===e)&&(this.state=2236,this.row_pattern_initial_or_seek()),this.state=2239,this.match(t.PATTERN),this.state=2240,this.match(t.LPAREN),this.state=2241,this.row_pattern(),this.state=2242,this.match(t.RPAREN),this.state=2244,this.errorHandler.sync(this),e=this.tokenStream.LA(1),275===e&&(this.state=2243,this.row_pattern_subset_clause()),this.state=2246,this.match(t.DEFINE),this.state=2247,this.row_pattern_definition_list()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_skip_to(){let e=new fa(this.context,this.state);this.enterRule(e,270,t.RULE_row_pattern_skip_to);try{switch(this.state=2268,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,200,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2249,this.match(t.TSKIP),this.state=2250,this.match(t.TO),this.state=2251,this.match(t.NEXT),this.state=2252,this.match(t.ROW);break;case 2:this.enterOuterAlt(e,2),this.state=2253,this.match(t.TSKIP),this.state=2254,this.match(t.PAST),this.state=2255,this.match(t.LAST),this.state=2256,this.match(t.ROW);break;case 3:this.enterOuterAlt(e,3),this.state=2257,this.match(t.TSKIP),this.state=2258,this.match(t.TO),this.state=2259,this.match(t.FIRST),this.state=2260,this.row_pattern_skip_to_variable_name();break;case 4:this.enterOuterAlt(e,4),this.state=2261,this.match(t.TSKIP),this.state=2262,this.match(t.TO),this.state=2263,this.match(t.LAST),this.state=2264,this.row_pattern_skip_to_variable_name();break;case 5:this.enterOuterAlt(e,5),this.state=2265,this.match(t.TSKIP),this.state=2266,this.match(t.TO),this.state=2267,this.row_pattern_skip_to_variable_name()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_skip_to_variable_name(){let e=new Pa(this.context,this.state);this.enterRule(e,272,t.RULE_row_pattern_skip_to_variable_name);try{this.enterOuterAlt(e,1),this.state=2270,this.row_pattern_variable_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_initial_or_seek(){let e,s=new ka(this.context,this.state);this.enterRule(s,274,t.RULE_row_pattern_initial_or_seek);try{this.enterOuterAlt(s,1),this.state=2272,e=this.tokenStream.LA(1),164===e||264===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern(){let e,s=new Ma(this.context,this.state);this.enterRule(s,276,t.RULE_row_pattern);try{for(this.enterOuterAlt(s,1),this.state=2274,this.row_pattern_term(),this.state=2279,this.errorHandler.sync(this),e=this.tokenStream.LA(1);13===e;)this.state=2275,this.match(t.PIPE),this.state=2276,this.row_pattern_term(),this.state=2281,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_term(){let e,s=new Da(this.context,this.state);this.enterRule(s,278,t.RULE_row_pattern_term);try{this.enterOuterAlt(s,1),this.state=2283,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=2282,this.row_pattern_factor(),this.state=2285,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(!(e-26&-32)&&1<<e-26&705||222===e||320===e||321===e)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_factor(){let e=new ya(this.context,this.state);this.enterRule(e,280,t.RULE_row_pattern_factor);try{if(1===(this.enterOuterAlt(e,1),this.state=2287,this.row_pattern_primary(),this.state=2289,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,203,this.context)))this.state=2288,this.row_pattern_quantifier()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_quantifier(){let e,s=new va(this.context,this.state);this.enterRule(s,282,t.RULE_row_pattern_quantifier);try{switch(this.state=2319,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,210,this.context)){case 1:this.enterOuterAlt(s,1),this.state=2291,this.match(t.ASTERISK),this.state=2293,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2292,this.match(t.QUESTION));break;case 2:this.enterOuterAlt(s,2),this.state=2295,this.match(t.PLUS),this.state=2297,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2296,this.match(t.QUESTION));break;case 3:this.enterOuterAlt(s,3),this.state=2299,this.match(t.QUESTION),this.state=2301,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2300,this.match(t.QUESTION));break;case 4:this.enterOuterAlt(s,4),this.state=2303,this.match(t.LBRACE_CURLY),this.state=2305,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(322===e||323===e)&&(this.state=2304,this.integer()),this.state=2307,this.match(t.COMMA),this.state=2309,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(322===e||323===e)&&(this.state=2308,this.integer()),this.state=2311,this.match(t.RBRACE_CURLY),this.state=2313,this.errorHandler.sync(this),e=this.tokenStream.LA(1),28===e&&(this.state=2312,this.match(t.QUESTION));break;case 5:this.enterOuterAlt(s,5),this.state=2315,this.match(t.LBRACE_CURLY),this.state=2316,this.integer(),this.state=2317,this.match(t.RBRACE_CURLY)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_primary(){let e,s=new ba(this.context,this.state);this.enterRule(s,284,t.RULE_row_pattern_primary);try{switch(this.state=2336,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(s,1),this.state=2321,this.row_pattern_primary_variable_name();break;case t.DOLLAR:this.enterOuterAlt(s,2),this.state=2322,this.match(t.DOLLAR);break;case t.CARET:this.enterOuterAlt(s,3),this.state=2323,this.match(t.CARET);break;case t.LPAREN:this.enterOuterAlt(s,4),this.state=2324,this.match(t.LPAREN),this.state=2326,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-26&-32)&&1<<e-26&705||222===e||320===e||321===e)&&(this.state=2325,this.row_pattern()),this.state=2328,this.match(t.RPAREN);break;case t.LBRACE_CURLY:this.enterOuterAlt(s,5),this.state=2329,this.match(t.LBRACE_CURLY),this.state=2330,this.match(t.MINUS),this.state=2331,this.row_pattern(),this.state=2332,this.match(t.MINUS),this.state=2333,this.match(t.RBRACE_CURLY);break;case t.PERMUTE:this.enterOuterAlt(s,6),this.state=2335,this.row_pattern_permute();break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_primary_variable_name(){let e=new Ha(this.context,this.state);this.enterRule(e,286,t.RULE_row_pattern_primary_variable_name);try{this.enterOuterAlt(e,1),this.state=2338,this.row_pattern_variable_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_permute(){let e,s=new wa(this.context,this.state);this.enterRule(s,288,t.RULE_row_pattern_permute);try{for(this.enterOuterAlt(s,1),this.state=2340,this.match(t.PERMUTE),this.state=2341,this.match(t.LPAREN),this.state=2342,this.row_pattern(),this.state=2347,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2343,this.match(t.COMMA),this.state=2344,this.row_pattern(),this.state=2349,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2350,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_subset_clause(){let e=new Fa(this.context,this.state);this.enterRule(e,290,t.RULE_row_pattern_subset_clause);try{this.enterOuterAlt(e,1),this.state=2352,this.match(t.SUBSET),this.state=2353,this.row_pattern_subset_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_subset_list(){let e,s=new Ga(this.context,this.state);this.enterRule(s,292,t.RULE_row_pattern_subset_list);try{for(this.enterOuterAlt(s,1),this.state=2355,this.row_pattern_subset_item(),this.state=2360,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2356,this.match(t.COMMA),this.state=2357,this.row_pattern_subset_item(),this.state=2362,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_subset_item(){let e=new Ba(this.context,this.state);this.enterRule(e,294,t.RULE_row_pattern_subset_item);try{this.enterOuterAlt(e,1),this.state=2363,this.row_pattern_subset_item_variable_name(),this.state=2364,this.match(t.EQUALS),this.state=2365,this.match(t.LPAREN),this.state=2366,this.row_pattern_subset_rhs(),this.state=2367,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_subset_item_variable_name(){let e=new Ya(this.context,this.state);this.enterRule(e,296,t.RULE_row_pattern_subset_item_variable_name);try{this.enterOuterAlt(e,1),this.state=2369,this.row_pattern_variable_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_subset_rhs(){let e,s=new Va(this.context,this.state);this.enterRule(s,298,t.RULE_row_pattern_subset_rhs);try{for(this.enterOuterAlt(s,1),this.state=2371,this.row_pattern_subset_rhs_variable_name(),this.state=2376,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2372,this.match(t.COMMA),this.state=2373,this.row_pattern_subset_rhs_variable_name(),this.state=2378,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_subset_rhs_variable_name(){let e=new Wa(this.context,this.state);this.enterRule(e,300,t.RULE_row_pattern_subset_rhs_variable_name);try{this.enterOuterAlt(e,1),this.state=2379,this.row_pattern_variable_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_definition_list(){let e,s=new Xa(this.context,this.state);this.enterRule(s,302,t.RULE_row_pattern_definition_list);try{for(this.enterOuterAlt(s,1),this.state=2381,this.row_pattern_definition(),this.state=2386,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2382,this.match(t.COMMA),this.state=2383,this.row_pattern_definition(),this.state=2388,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}row_pattern_definition(){let e=new Ka(this.context,this.state);this.enterRule(e,304,t.RULE_row_pattern_definition);try{this.enterOuterAlt(e,1),this.state=2389,this.row_pattern_definition_variable_name(),this.state=2390,this.match(t.AS),this.state=2391,this.row_pattern_definition_search_condition()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_definition_variable_name(){let e=new Qa(this.context,this.state);this.enterRule(e,306,t.RULE_row_pattern_definition_variable_name);try{this.enterOuterAlt(e,1),this.state=2393,this.row_pattern_variable_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_definition_search_condition(){let e=new qa(this.context,this.state);this.enterRule(e,308,t.RULE_row_pattern_definition_search_condition);try{this.enterOuterAlt(e,1),this.state=2395,this.search_condition()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}search_condition(){let e=new ja(this.context,this.state);this.enterRule(e,310,t.RULE_search_condition);try{this.enterOuterAlt(e,1),this.state=2397,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}row_pattern_variable_name(){let e=new Ja(this.context,this.state);this.enterRule(e,312,t.RULE_row_pattern_variable_name);try{this.enterOuterAlt(e,1),this.state=2399,this.identifier()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}order_by_clause(){let e=new za(this.context,this.state);this.enterRule(e,314,t.RULE_order_by_clause);try{this.enterOuterAlt(e,1),this.state=2401,this.match(t.ORDER),this.state=2402,this.match(t.BY),this.state=2403,this.sort_specification_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ext_order_by_clause(){let e,s=new Za(this.context,this.state);this.enterRule(s,316,t.RULE_ext_order_by_clause);try{this.enterOuterAlt(s,1),this.state=2406,this.errorHandler.sync(this),e=this.tokenStream.LA(1),53===e&&(this.state=2405,this.match(t.ASSUME)),this.state=2408,this.order_by_clause()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}group_by_clause(){let e,s=new $a(this.context,this.state);this.enterRule(s,318,t.RULE_group_by_clause);try{this.enterOuterAlt(s,1),this.state=2410,this.match(t.GROUP),this.state=2412,this.errorHandler.sync(this),e=this.tokenStream.LA(1),80===e&&(this.state=2411,this.match(t.COMPACT)),this.state=2414,this.match(t.BY),this.state=2415,this.opt_set_quantifier(),this.state=2416,this.grouping_element_list(),this.state=2419,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=2417,this.match(t.WITH),this.state=2418,this.an_id())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}grouping_element_list(){let e,s=new tn(this.context,this.state);this.enterRule(s,320,t.RULE_grouping_element_list);try{for(this.enterOuterAlt(s,1),this.state=2421,this.grouping_element(),this.state=2426,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2422,this.match(t.COMMA),this.state=2423,this.grouping_element(),this.state=2428,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}grouping_element(){let e=new en(this.context,this.state);this.enterRule(e,322,t.RULE_grouping_element);try{switch(this.state=2434,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,221,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2429,this.ordinary_grouping_set();break;case 2:this.enterOuterAlt(e,2),this.state=2430,this.rollup_list();break;case 3:this.enterOuterAlt(e,3),this.state=2431,this.cube_list();break;case 4:this.enterOuterAlt(e,4),this.state=2432,this.grouping_sets_specification();break;case 5:this.enterOuterAlt(e,5),this.state=2433,this.hopping_window_specification()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ordinary_grouping_set(){let e=new sn(this.context,this.state);this.enterRule(e,324,t.RULE_ordinary_grouping_set);try{this.enterOuterAlt(e,1),this.state=2436,this.named_expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}ordinary_grouping_set_list(){let e,s=new rn(this.context,this.state);this.enterRule(s,326,t.RULE_ordinary_grouping_set_list);try{for(this.enterOuterAlt(s,1),this.state=2438,this.ordinary_grouping_set(),this.state=2443,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2439,this.match(t.COMMA),this.state=2440,this.ordinary_grouping_set(),this.state=2445,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}rollup_list(){let e=new an(this.context,this.state);this.enterRule(e,328,t.RULE_rollup_list);try{this.enterOuterAlt(e,1),this.state=2446,this.match(t.ROLLUP),this.state=2447,this.match(t.LPAREN),this.state=2448,this.ordinary_grouping_set_list(),this.state=2449,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}cube_list(){let e=new nn(this.context,this.state);this.enterRule(e,330,t.RULE_cube_list);try{this.enterOuterAlt(e,1),this.state=2451,this.match(t.CUBE),this.state=2452,this.match(t.LPAREN),this.state=2453,this.ordinary_grouping_set_list(),this.state=2454,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}grouping_sets_specification(){let e=new cn(this.context,this.state);this.enterRule(e,332,t.RULE_grouping_sets_specification);try{this.enterOuterAlt(e,1),this.state=2456,this.match(t.GROUPING),this.state=2457,this.match(t.SETS),this.state=2458,this.match(t.LPAREN),this.state=2459,this.grouping_element_list(),this.state=2460,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}hopping_window_specification(){let e=new hn(this.context,this.state);this.enterRule(e,334,t.RULE_hopping_window_specification);try{this.enterOuterAlt(e,1),this.state=2462,this.match(t.HOP),this.state=2463,this.match(t.LPAREN),this.state=2464,this.expr(),this.state=2465,this.match(t.COMMA),this.state=2466,this.expr(),this.state=2467,this.match(t.COMMA),this.state=2468,this.expr(),this.state=2469,this.match(t.COMMA),this.state=2470,this.expr(),this.state=2471,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}result_column(){let e=new on(this.context,this.state);this.enterRule(e,336,t.RULE_result_column);try{switch(this.state=2482,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,224,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2473,this.opt_id_prefix(),this.state=2474,this.match(t.ASTERISK);break;case 2:switch(this.enterOuterAlt(e,2),this.state=2476,this.expr(),this.state=2480,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,223,this.context)){case 1:this.state=2477,this.match(t.AS),this.state=2478,this.an_id_or_type();break;case 2:this.state=2479,this.an_id_as_compat()}}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}join_source(){let e,s=new En(this.context,this.state);this.enterRule(s,338,t.RULE_join_source);try{if(this.enterOuterAlt(s,1),1===(this.state=2485,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,225,this.context)))this.state=2484,this.match(t.ANY);for(this.state=2487,this.flatten_source(),this.state=2498,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e||88===e||126===e||143===e||!(e-166&-32)&&1<<e-166&268443777||213===e||254===e;){if(1===(this.state=2488,this.join_op(),this.state=2490,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,226,this.context)))this.state=2489,this.match(t.ANY);this.state=2492,this.flatten_source(),this.state=2494,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(205===e||306===e)&&(this.state=2493,this.join_constraint()),this.state=2500,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}named_column(){let e,s=new ln(this.context,this.state);this.enterRule(s,340,t.RULE_named_column);try{this.enterOuterAlt(s,1),this.state=2501,this.column_name(),this.state=2504,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e&&(this.state=2502,this.match(t.AS),this.state=2503,this.an_id())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}flatten_by_arg(){let e,s=new un(this.context,this.state);this.enterRule(s,342,t.RULE_flatten_by_arg);try{switch(this.state=2514,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(s,1),this.state=2506,this.named_column();break;case t.LPAREN:this.enterOuterAlt(s,2),this.state=2507,this.match(t.LPAREN),this.state=2508,this.named_expr_list(),this.state=2510,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=2509,this.match(t.COMMA)),this.state=2512,this.match(t.RPAREN);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}flatten_source(){let e,s=new Rn(this.context,this.state);this.enterRule(s,344,t.RULE_flatten_source);try{if(this.enterOuterAlt(s,1),this.state=2516,this.named_single_source(),this.state=2526,this.errorHandler.sync(this),e=this.tokenStream.LA(1),137===e)switch(this.state=2517,this.match(t.FLATTEN),this.state=2524,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.BY:case t.DICT:case t.LIST:case t.OPTIONAL:this.state=2519,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(106===e||183===e||209===e)&&(this.state=2518,e=this.tokenStream.LA(1),106===e||183===e||209===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=2521,this.match(t.BY),this.state=2522,this.flatten_by_arg();break;case t.COLUMNS:this.state=2523,this.match(t.COLUMNS);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}named_single_source(){let e,s=new _n(this.context,this.state);this.enterRule(s,346,t.RULE_named_single_source);try{if(this.enterOuterAlt(s,1),1===(this.state=2528,this.single_source(),this.state=2530,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,235,this.context)))this.state=2529,this.row_pattern_recognition_clause();if(1===(this.state=2540,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,238,this.context))){switch(this.state=2535,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.AS:this.state=2532,this.match(t.AS),this.state=2533,this.an_id();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.LAST:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NEXT:case t.NO:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.OTHERS:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.REVERT:case t.REVOKE:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.VACUUM:case t.VALUES:case t.VIRTUAL:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=2534,this.an_id_as_compat();break;default:throw new ce(this)}this.state=2538,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=2537,this.pure_column_list())}switch(this.state=2544,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SAMPLE:this.state=2542,this.sample_clause();break;case t.TABLESAMPLE:this.state=2543,this.tablesample_clause();case t.EOF:case t.SEMICOLON:case t.COMMA:case t.RPAREN:case t.ASSUME:case t.CROSS:case t.END:case t.EXCEPT:case t.EXCLUSION:case t.FLATTEN:case t.FULL:case t.GROUP:case t.HAVING:case t.INNER:case t.INTERSECT:case t.INTO:case t.JOIN:case t.LEFT:case t.LIMIT:case t.NATURAL:case t.ON:case t.ORDER:case t.OUTER:case t.PRESORT:case t.RETURNING:case t.RIGHT:case t.SELECT:case t.UNION:case t.USING:case t.WHERE:case t.WINDOW:}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}single_source(){let e=new Tn(this.context,this.state);this.enterRule(e,348,t.RULE_single_source);try{switch(this.state=2555,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,240,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2546,this.table_ref();break;case 2:this.enterOuterAlt(e,2),this.state=2547,this.match(t.LPAREN),this.state=2548,this.select_stmt(),this.state=2549,this.match(t.RPAREN);break;case 3:this.enterOuterAlt(e,3),this.state=2551,this.match(t.LPAREN),this.state=2552,this.values_stmt(),this.state=2553,this.match(t.RPAREN)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sample_clause(){let e=new An(this.context,this.state);this.enterRule(e,350,t.RULE_sample_clause);try{this.enterOuterAlt(e,1),this.state=2557,this.match(t.SAMPLE),this.state=2558,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}tablesample_clause(){let e,s=new Sn(this.context,this.state);this.enterRule(s,352,t.RULE_tablesample_clause);try{this.enterOuterAlt(s,1),this.state=2560,this.match(t.TABLESAMPLE),this.state=2561,this.sampling_mode(),this.state=2562,this.match(t.LPAREN),this.state=2563,this.expr(),this.state=2564,this.match(t.RPAREN),this.state=2566,this.errorHandler.sync(this),e=this.tokenStream.LA(1),241===e&&(this.state=2565,this.repeatable_clause())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}sampling_mode(){let e,s=new dn(this.context,this.state);this.enterRule(s,354,t.RULE_sampling_mode);try{this.enterOuterAlt(s,1),this.state=2568,e=this.tokenStream.LA(1),65===e||279===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}repeatable_clause(){let e=new Ln(this.context,this.state);this.enterRule(e,356,t.RULE_repeatable_clause);try{this.enterOuterAlt(e,1),this.state=2570,this.match(t.REPEATABLE),this.state=2571,this.match(t.LPAREN),this.state=2572,this.expr(),this.state=2573,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}join_op(){let e,s=new Cn(this.context,this.state);this.enterRule(s,358,t.RULE_join_op);try{switch(this.state=2599,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.COMMA:this.enterOuterAlt(s,1),this.state=2575,this.match(t.COMMA);break;case t.CROSS:case t.EXCLUSION:case t.FULL:case t.INNER:case t.JOIN:case t.LEFT:case t.NATURAL:case t.OUTER:case t.RIGHT:switch(this.enterOuterAlt(s,2),this.state=2577,this.errorHandler.sync(this),e=this.tokenStream.LA(1),194===e&&(this.state=2576,this.match(t.NATURAL)),this.state=2596,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.EXCLUSION:case t.FULL:case t.JOIN:case t.LEFT:case t.OUTER:case t.RIGHT:switch(this.state=2589,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LEFT:this.state=2579,this.match(t.LEFT),this.state=2581,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(207===e||266===e)&&(this.state=2580,e=this.tokenStream.LA(1),207===e||266===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case t.RIGHT:this.state=2583,this.match(t.RIGHT),this.state=2585,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(207===e||266===e)&&(this.state=2584,e=this.tokenStream.LA(1),207===e||266===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case t.EXCLUSION:this.state=2587,this.match(t.EXCLUSION);break;case t.FULL:this.state=2588,this.match(t.FULL);case t.JOIN:case t.OUTER:}this.state=2592,this.errorHandler.sync(this),e=this.tokenStream.LA(1),213===e&&(this.state=2591,this.match(t.OUTER));break;case t.INNER:this.state=2594,this.match(t.INNER);break;case t.CROSS:this.state=2595,this.match(t.CROSS);break;default:throw new ce(this)}this.state=2598,this.match(t.JOIN);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}join_constraint(){let e=new Nn(this.context,this.state);this.enterRule(e,360,t.RULE_join_constraint);try{switch(this.state=2605,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ON:this.enterOuterAlt(e,1),this.state=2601,this.match(t.ON),this.state=2602,this.expr();break;case t.USING:this.enterOuterAlt(e,2),this.state=2603,this.match(t.USING),this.state=2604,this.pure_column_or_named_list();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}returning_columns_list(){let e,s=new In(this.context,this.state);this.enterRule(s,362,t.RULE_returning_columns_list);try{switch(this.enterOuterAlt(s,1),this.state=2607,this.match(t.RETURNING),this.state=2617,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ASTERISK:this.state=2608,this.match(t.ASTERISK);break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:for(this.state=2609,this.an_id(),this.state=2614,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2610,this.match(t.COMMA),this.state=2611,this.an_id(),this.state=2616,this.errorHandler.sync(this),e=this.tokenStream.LA(1);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}into_table_stmt(){let e,s=new On(this.context,this.state);this.enterRule(s,364,t.RULE_into_table_stmt);try{switch(this.enterOuterAlt(s,1),this.state=2631,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,252,this.context)){case 1:this.state=2619,this.match(t.INSERT);break;case 2:this.state=2620,this.match(t.INSERT),this.state=2621,this.match(t.OR),this.state=2622,this.match(t.ABORT);break;case 3:this.state=2623,this.match(t.INSERT),this.state=2624,this.match(t.OR),this.state=2625,this.match(t.REVERT);break;case 4:this.state=2626,this.match(t.INSERT),this.state=2627,this.match(t.OR),this.state=2628,this.match(t.IGNORE);break;case 5:this.state=2629,this.match(t.UPSERT);break;case 6:this.state=2630,this.match(t.REPLACE)}this.state=2633,this.match(t.INTO),this.state=2634,this.into_simple_table_ref(),this.state=2635,this.into_values_source(),this.state=2637,this.errorHandler.sync(this),e=this.tokenStream.LA(1),251===e&&(this.state=2636,this.returning_columns_list())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}into_table_stmt_yq(){let e=new pn(this.context,this.state);this.enterRule(e,366,t.RULE_into_table_stmt_yq);try{switch(this.enterOuterAlt(e,1),this.state=2650,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,254,this.context)){case 1:this.state=2639,this.match(t.INSERT);break;case 2:this.state=2640,this.match(t.INSERT),this.state=2641,this.match(t.OR),this.state=2642,this.match(t.ABORT);break;case 3:this.state=2643,this.match(t.INSERT),this.state=2644,this.match(t.OR),this.state=2645,this.match(t.REVERT);break;case 4:this.state=2646,this.match(t.INSERT),this.state=2647,this.match(t.OR),this.state=2648,this.match(t.IGNORE);break;case 5:this.state=2649,this.match(t.REPLACE)}this.state=2652,this.match(t.INTO),this.state=2653,this.into_simple_table_ref(),this.state=2654,this.into_values_source()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}into_values_source(){let e=new gn(this.context,this.state);this.enterRule(e,368,t.RULE_into_values_source);try{switch(this.state=2662,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LPAREN:case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:case t.VALUES:if(this.enterOuterAlt(e,1),1===(this.state=2657,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,255,this.context)))this.state=2656,this.pure_column_list();this.state=2659,this.values_source();break;case t.DEFAULT:this.enterOuterAlt(e,2),this.state=2660,this.match(t.DEFAULT),this.state=2661,this.match(t.VALUES);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}values_stmt(){let e=new mn(this.context,this.state);this.enterRule(e,370,t.RULE_values_stmt);try{this.enterOuterAlt(e,1),this.state=2664,this.match(t.VALUES),this.state=2665,this.values_source_row_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}values_source(){let e=new xn(this.context,this.state);this.enterRule(e,372,t.RULE_values_source);try{switch(this.state=2669,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.VALUES:this.enterOuterAlt(e,1),this.state=2667,this.values_stmt();break;case t.LPAREN:case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:this.enterOuterAlt(e,2),this.state=2668,this.select_stmt();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}values_source_row_list(){let e,s=new Un(this.context,this.state);this.enterRule(s,374,t.RULE_values_source_row_list);try{for(this.enterOuterAlt(s,1),this.state=2671,this.values_source_row(),this.state=2676,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2672,this.match(t.COMMA),this.state=2673,this.values_source_row(),this.state=2678,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}values_source_row(){let e=new fn(this.context,this.state);this.enterRule(e,376,t.RULE_values_source_row);try{this.enterOuterAlt(e,1),this.state=2679,this.match(t.LPAREN),this.state=2680,this.expr_list(),this.state=2681,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}simple_values_source(){let e=new Pn(this.context,this.state);this.enterRule(e,378,t.RULE_simple_values_source);try{switch(this.state=2685,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,259,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2683,this.expr_list();break;case 2:this.enterOuterAlt(e,2),this.state=2684,this.select_stmt()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_external_data_source_stmt(){let e,s=new kn(this.context,this.state);this.enterRule(s,380,t.RULE_create_external_data_source_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=2687,this.match(t.CREATE),this.state=2690,this.errorHandler.sync(this),e=this.tokenStream.LA(1),210===e&&(this.state=2688,this.match(t.OR),this.state=2689,this.match(t.REPLACE)),this.state=2692,this.match(t.EXTERNAL),this.state=2693,this.match(t.DATA),this.state=2694,this.match(t.SOURCE),this.state=2698,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,261,this.context)))this.state=2695,this.match(t.IF),this.state=2696,this.match(t.NOT),this.state=2697,this.match(t.EXISTS);this.state=2700,this.object_ref(),this.state=2701,this.with_table_settings()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_external_data_source_stmt(){let e,s=new Mn(this.context,this.state);this.enterRule(s,382,t.RULE_alter_external_data_source_stmt);try{for(this.enterOuterAlt(s,1),this.state=2703,this.match(t.ALTER),this.state=2704,this.match(t.EXTERNAL),this.state=2705,this.match(t.DATA),this.state=2706,this.match(t.SOURCE),this.state=2707,this.object_ref(),this.state=2708,this.alter_external_data_source_action(),this.state=2713,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2709,this.match(t.COMMA),this.state=2710,this.alter_external_data_source_action(),this.state=2715,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_external_data_source_action(){let e=new Dn(this.context,this.state);this.enterRule(e,384,t.RULE_alter_external_data_source_action);try{switch(this.state=2719,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,263,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2716,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(e,2),this.state=2717,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(e,3),this.state=2718,this.alter_table_reset_table_setting()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_external_data_source_stmt(){let e=new yn(this.context,this.state);this.enterRule(e,386,t.RULE_drop_external_data_source_stmt);try{if(this.enterOuterAlt(e,1),1===(this.state=2721,this.match(t.DROP),this.state=2722,this.match(t.EXTERNAL),this.state=2723,this.match(t.DATA),this.state=2724,this.match(t.SOURCE),this.state=2727,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,264,this.context)))this.state=2725,this.match(t.IF),this.state=2726,this.match(t.EXISTS);this.state=2729,this.object_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_view_stmt(){let e,s=new vn(this.context,this.state);this.enterRule(s,388,t.RULE_create_view_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=2731,this.match(t.CREATE),this.state=2732,this.match(t.VIEW),this.state=2736,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,265,this.context)))this.state=2733,this.match(t.IF),this.state=2734,this.match(t.NOT),this.state=2735,this.match(t.EXISTS);this.state=2738,this.object_ref(),this.state=2740,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=2739,this.create_object_features()),this.state=2742,this.match(t.AS),this.state=2743,this.select_stmt()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}drop_view_stmt(){let e=new bn(this.context,this.state);this.enterRule(e,390,t.RULE_drop_view_stmt);try{if(this.enterOuterAlt(e,1),1===(this.state=2745,this.match(t.DROP),this.state=2746,this.match(t.VIEW),this.state=2749,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,267,this.context)))this.state=2747,this.match(t.IF),this.state=2748,this.match(t.EXISTS);this.state=2751,this.object_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}upsert_object_stmt(){let e,s=new Hn(this.context,this.state);this.enterRule(s,392,t.RULE_upsert_object_stmt);try{this.enterOuterAlt(s,1),this.state=2753,this.match(t.UPSERT),this.state=2754,this.match(t.OBJECT),this.state=2755,this.object_ref(),this.state=2756,this.match(t.LPAREN),this.state=2757,this.match(t.TYPE),this.state=2758,this.object_type_ref(),this.state=2759,this.match(t.RPAREN),this.state=2761,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=2760,this.create_object_features())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_object_stmt(){let e,s=new wn(this.context,this.state);this.enterRule(s,394,t.RULE_create_object_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=2763,this.match(t.CREATE),this.state=2764,this.match(t.OBJECT),this.state=2768,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,269,this.context)))this.state=2765,this.match(t.IF),this.state=2766,this.match(t.NOT),this.state=2767,this.match(t.EXISTS);this.state=2770,this.object_ref(),this.state=2771,this.match(t.LPAREN),this.state=2772,this.match(t.TYPE),this.state=2773,this.object_type_ref(),this.state=2774,this.match(t.RPAREN),this.state=2776,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=2775,this.create_object_features())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_object_features(){let e=new Fn(this.context,this.state);this.enterRule(e,396,t.RULE_create_object_features);try{this.enterOuterAlt(e,1),this.state=2778,this.match(t.WITH),this.state=2779,this.object_features()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_object_stmt(){let e=new Gn(this.context,this.state);this.enterRule(e,398,t.RULE_alter_object_stmt);try{this.enterOuterAlt(e,1),this.state=2781,this.match(t.ALTER),this.state=2782,this.match(t.OBJECT),this.state=2783,this.object_ref(),this.state=2784,this.match(t.LPAREN),this.state=2785,this.match(t.TYPE),this.state=2786,this.object_type_ref(),this.state=2787,this.match(t.RPAREN),this.state=2788,this.alter_object_features()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_object_features(){let e=new Bn(this.context,this.state);this.enterRule(e,400,t.RULE_alter_object_features);try{this.enterOuterAlt(e,1),this.state=2790,this.match(t.SET),this.state=2791,this.object_features()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_object_stmt(){let e,s=new Yn(this.context,this.state);this.enterRule(s,402,t.RULE_drop_object_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=2793,this.match(t.DROP),this.state=2794,this.match(t.OBJECT),this.state=2797,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,271,this.context)))this.state=2795,this.match(t.IF),this.state=2796,this.match(t.EXISTS);this.state=2799,this.object_ref(),this.state=2800,this.match(t.LPAREN),this.state=2801,this.match(t.TYPE),this.state=2802,this.object_type_ref(),this.state=2803,this.match(t.RPAREN),this.state=2805,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=2804,this.drop_object_features())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}drop_object_features(){let e=new Vn(this.context,this.state);this.enterRule(e,404,t.RULE_drop_object_features);try{this.enterOuterAlt(e,1),this.state=2807,this.match(t.WITH),this.state=2808,this.object_features()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_feature_value(){let e=new Wn(this.context,this.state);this.enterRule(e,406,t.RULE_object_feature_value);try{switch(this.state=2814,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=2810,this.id_or_type();break;case t.DOLLAR:this.enterOuterAlt(e,2),this.state=2811,this.bind_parameter();break;case t.STRING_VALUE:this.enterOuterAlt(e,3),this.state=2812,this.match(t.STRING_VALUE);break;case t.FALSE:case t.TRUE:this.enterOuterAlt(e,4),this.state=2813,this.bool_value();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_feature_kv(){let e=new Xn(this.context,this.state);this.enterRule(e,408,t.RULE_object_feature_kv);try{this.enterOuterAlt(e,1),this.state=2816,this.an_id_or_type(),this.state=2817,this.match(t.EQUALS),this.state=2818,this.object_feature_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_feature_flag(){let e=new Kn(this.context,this.state);this.enterRule(e,410,t.RULE_object_feature_flag);try{this.enterOuterAlt(e,1),this.state=2820,this.an_id_or_type()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_feature(){let e=new Qn(this.context,this.state);this.enterRule(e,412,t.RULE_object_feature);try{switch(this.state=2824,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,274,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2822,this.object_feature_kv();break;case 2:this.enterOuterAlt(e,2),this.state=2823,this.object_feature_flag()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}object_features(){let e,s=new qn(this.context,this.state);this.enterRule(s,414,t.RULE_object_features);try{switch(this.state=2838,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(s,1),this.state=2826,this.object_feature();break;case t.LPAREN:for(this.enterOuterAlt(s,2),this.state=2827,this.match(t.LPAREN),this.state=2828,this.object_feature(),this.state=2833,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2829,this.match(t.COMMA),this.state=2830,this.object_feature(),this.state=2835,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=2836,this.match(t.RPAREN);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}object_type_ref(){let e=new jn(this.context,this.state);this.enterRule(e,416,t.RULE_object_type_ref);try{this.enterOuterAlt(e,1),this.state=2840,this.an_id_or_type()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_table_stmt(){let e,s=new Jn(this.context,this.state);this.enterRule(s,418,t.RULE_create_table_stmt);try{let r;switch(this.enterOuterAlt(s,1),this.state=2842,this.match(t.CREATE),this.state=2845,this.errorHandler.sync(this),e=this.tokenStream.LA(1),210===e&&(this.state=2843,this.match(t.OR),this.state=2844,this.match(t.REPLACE)),this.state=2855,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TABLE:this.state=2847,this.match(t.TABLE);break;case t.TABLESTORE:this.state=2848,this.match(t.TABLESTORE);break;case t.EXTERNAL:this.state=2849,this.match(t.EXTERNAL),this.state=2850,this.match(t.TABLE);break;case t.TEMP:this.state=2851,this.match(t.TEMP),this.state=2852,this.match(t.TABLE);break;case t.TEMPORARY:this.state=2853,this.match(t.TEMPORARY),this.state=2854,this.match(t.TABLE);break;default:throw new ce(this)}if(1===(this.state=2860,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,279,this.context)))this.state=2857,this.match(t.IF),this.state=2858,this.match(t.NOT),this.state=2859,this.match(t.EXISTS);for(this.state=2862,this.simple_table_ref(),this.state=2863,this.match(t.LPAREN),this.state=2864,this.create_table_entry(),this.state=2869,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=2865,this.match(t.COMMA),this.state=2866,this.create_table_entry()),this.state=2871,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);this.state=2873,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=2872,this.match(t.COMMA)),this.state=2875,this.match(t.RPAREN),this.state=2877,this.errorHandler.sync(this),e=this.tokenStream.LA(1),163===e&&(this.state=2876,this.table_inherits()),this.state=2880,this.errorHandler.sync(this),e=this.tokenStream.LA(1),216===e&&(this.state=2879,this.table_partition_by()),this.state=2883,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=2882,this.with_table_settings()),this.state=2886,this.errorHandler.sync(this),e=this.tokenStream.LA(1),283===e&&(this.state=2885,this.table_tablestore()),this.state=2889,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e&&(this.state=2888,this.table_as_source())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_table_entry(){let e=new zn(this.context,this.state);this.enterRule(e,420,t.RULE_create_table_entry);try{switch(this.state=2897,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,287,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2891,this.column_schema();break;case 2:this.enterOuterAlt(e,2),this.state=2892,this.table_constraint();break;case 3:this.enterOuterAlt(e,3),this.state=2893,this.table_index();break;case 4:this.enterOuterAlt(e,4),this.state=2894,this.family_entry();break;case 5:this.enterOuterAlt(e,5),this.state=2895,this.changefeed();break;case 6:this.enterOuterAlt(e,6),this.state=2896,this.an_id_schema()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_backup_collection_stmt(){let e,s=new Zn(this.context,this.state);this.enterRule(s,422,t.RULE_create_backup_collection_stmt);try{this.enterOuterAlt(s,1),this.state=2899,this.match(t.CREATE),this.state=2900,this.backup_collection(),this.state=2902,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(26===e||95===e)&&(this.state=2901,this.create_backup_collection_entries()),this.state=2904,this.match(t.WITH),this.state=2905,this.match(t.LPAREN),this.state=2906,this.backup_collection_settings(),this.state=2907,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_backup_collection_stmt(){let e=new $n(this.context,this.state);this.enterRule(e,424,t.RULE_alter_backup_collection_stmt);try{switch(this.enterOuterAlt(e,1),this.state=2909,this.match(t.ALTER),this.state=2910,this.backup_collection(),this.state=2913,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.RESET:case t.SET:this.state=2911,this.alter_backup_collection_actions();break;case t.ADD:case t.DROP:this.state=2912,this.alter_backup_collection_entries();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_backup_collection_stmt(){let e=new tc(this.context,this.state);this.enterRule(e,426,t.RULE_drop_backup_collection_stmt);try{this.enterOuterAlt(e,1),this.state=2915,this.match(t.DROP),this.state=2916,this.backup_collection()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_backup_collection_entries(){let e=new ec(this.context,this.state);this.enterRule(e,428,t.RULE_create_backup_collection_entries);try{switch(this.state=2920,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DATABASE:this.enterOuterAlt(e,1),this.state=2918,this.match(t.DATABASE);break;case t.LPAREN:this.enterOuterAlt(e,2),this.state=2919,this.create_backup_collection_entries_many();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_backup_collection_entries_many(){let e=new sc(this.context,this.state);this.enterRule(e,430,t.RULE_create_backup_collection_entries_many);try{this.enterOuterAlt(e,1),this.state=2922,this.match(t.LPAREN),this.state=2923,this.table_list(),this.state=2924,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}table_list(){let e,s=new rc(this.context,this.state);this.enterRule(s,432,t.RULE_table_list);try{for(this.enterOuterAlt(s,1),this.state=2926,this.match(t.TABLE),this.state=2927,this.an_id_table(),this.state=2933,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2928,this.match(t.COMMA),this.state=2929,this.match(t.TABLE),this.state=2930,this.an_id_table(),this.state=2935,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_backup_collection_actions(){let e,s=new ic(this.context,this.state);this.enterRule(s,434,t.RULE_alter_backup_collection_actions);try{for(this.enterOuterAlt(s,1),this.state=2936,this.alter_backup_collection_action(),this.state=2941,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2937,this.match(t.COMMA),this.state=2938,this.alter_backup_collection_action(),this.state=2943,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_backup_collection_action(){let e=new ac(this.context,this.state);this.enterRule(e,436,t.RULE_alter_backup_collection_action);try{switch(this.state=2946,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.enterOuterAlt(e,1),this.state=2944,this.alter_table_set_table_setting_compat();break;case t.RESET:this.enterOuterAlt(e,2),this.state=2945,this.alter_table_reset_table_setting();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_backup_collection_entries(){let e,s=new nc(this.context,this.state);this.enterRule(s,438,t.RULE_alter_backup_collection_entries);try{for(this.enterOuterAlt(s,1),this.state=2948,this.alter_backup_collection_entry(),this.state=2953,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2949,this.match(t.COMMA),this.state=2950,this.alter_backup_collection_entry(),this.state=2955,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_backup_collection_entry(){let e=new cc(this.context,this.state);this.enterRule(e,440,t.RULE_alter_backup_collection_entry);try{switch(this.state=2966,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,295,this.context)){case 1:this.enterOuterAlt(e,1),this.state=2956,this.match(t.ADD),this.state=2957,this.match(t.DATABASE);break;case 2:this.enterOuterAlt(e,2),this.state=2958,this.match(t.DROP),this.state=2959,this.match(t.DATABASE);break;case 3:this.enterOuterAlt(e,3),this.state=2960,this.match(t.ADD),this.state=2961,this.match(t.TABLE),this.state=2962,this.an_id_table();break;case 4:this.enterOuterAlt(e,4),this.state=2963,this.match(t.DROP),this.state=2964,this.match(t.TABLE),this.state=2965,this.an_id_table()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}backup_collection(){let e=new hc(this.context,this.state);this.enterRule(e,442,t.RULE_backup_collection);try{this.enterOuterAlt(e,1),this.state=2968,this.match(t.BACKUP),this.state=2969,this.match(t.COLLECTION),this.state=2970,this.object_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}backup_collection_settings(){let e,s=new oc(this.context,this.state);this.enterRule(s,444,t.RULE_backup_collection_settings);try{for(this.enterOuterAlt(s,1),this.state=2972,this.backup_collection_settings_entry(),this.state=2977,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2973,this.match(t.COMMA),this.state=2974,this.backup_collection_settings_entry(),this.state=2979,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}backup_collection_settings_entry(){let e=new Ec(this.context,this.state);this.enterRule(e,446,t.RULE_backup_collection_settings_entry);try{this.enterOuterAlt(e,1),this.state=2980,this.an_id(),this.state=2981,this.match(t.EQUALS),this.state=2982,this.table_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}backup_stmt(){let e,s=new lc(this.context,this.state);this.enterRule(s,448,t.RULE_backup_stmt);try{this.enterOuterAlt(s,1),this.state=2984,this.match(t.BACKUP),this.state=2985,this.object_ref(),this.state=2987,this.errorHandler.sync(this),e=this.tokenStream.LA(1),160===e&&(this.state=2986,this.match(t.INCREMENTAL))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}restore_stmt(){let e,s=new uc(this.context,this.state);this.enterRule(s,450,t.RULE_restore_stmt);try{this.enterOuterAlt(s,1),this.state=2989,this.match(t.RESTORE),this.state=2990,this.object_ref(),this.state=2993,this.errorHandler.sync(this),e=this.tokenStream.LA(1),56===e&&(this.state=2991,this.match(t.AT),this.state=2992,this.match(t.STRING_VALUE))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_inherits(){let e,s=new Rc(this.context,this.state);this.enterRule(s,452,t.RULE_table_inherits);try{for(this.enterOuterAlt(s,1),this.state=2995,this.match(t.INHERITS),this.state=2996,this.match(t.LPAREN),this.state=2997,this.simple_table_ref_core(),this.state=3002,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=2998,this.match(t.COMMA),this.state=2999,this.simple_table_ref_core(),this.state=3004,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3005,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_partition_by(){let e=new _c(this.context,this.state);this.enterRule(e,454,t.RULE_table_partition_by);try{this.enterOuterAlt(e,1),this.state=3007,this.match(t.PARTITION),this.state=3008,this.match(t.BY),this.state=3009,this.match(t.HASH),this.state=3010,this.pure_column_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}with_table_settings(){let e,s=new Tc(this.context,this.state);this.enterRule(s,456,t.RULE_with_table_settings);try{for(this.enterOuterAlt(s,1),this.state=3012,this.match(t.WITH),this.state=3013,this.match(t.LPAREN),this.state=3014,this.table_settings_entry(),this.state=3019,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3015,this.match(t.COMMA),this.state=3016,this.table_settings_entry(),this.state=3021,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3022,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_tablestore(){let e=new Ac(this.context,this.state);this.enterRule(e,458,t.RULE_table_tablestore);try{this.enterOuterAlt(e,1),this.state=3024,this.match(t.TABLESTORE),this.state=3025,this.simple_table_ref_core()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}table_settings_entry(){let e=new Sc(this.context,this.state);this.enterRule(e,460,t.RULE_table_settings_entry);try{this.enterOuterAlt(e,1),this.state=3027,this.an_id(),this.state=3028,this.match(t.EQUALS),this.state=3029,this.table_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}table_as_source(){let e=new dc(this.context,this.state);this.enterRule(e,462,t.RULE_table_as_source);try{this.enterOuterAlt(e,1),this.state=3031,this.match(t.AS),this.state=3032,this.values_source()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_stmt(){let e,s=new Lc(this.context,this.state);this.enterRule(s,464,t.RULE_alter_table_stmt);try{for(this.enterOuterAlt(s,1),this.state=3034,this.match(t.ALTER),this.state=3035,this.match(t.TABLE),this.state=3036,this.simple_table_ref(),this.state=3037,this.alter_table_action(),this.state=3042,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3038,this.match(t.COMMA),this.state=3039,this.alter_table_action(),this.state=3044,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_table_action(){let e=new Cc(this.context,this.state);this.enterRule(e,466,t.RULE_alter_table_action);try{switch(this.state=3062,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,302,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3045,this.alter_table_add_column();break;case 2:this.enterOuterAlt(e,2),this.state=3046,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(e,3),this.state=3047,this.alter_table_alter_column();break;case 4:this.enterOuterAlt(e,4),this.state=3048,this.alter_table_add_column_family();break;case 5:this.enterOuterAlt(e,5),this.state=3049,this.alter_table_alter_column_family();break;case 6:this.enterOuterAlt(e,6),this.state=3050,this.alter_table_set_table_setting_uncompat();break;case 7:this.enterOuterAlt(e,7),this.state=3051,this.alter_table_set_table_setting_compat();break;case 8:this.enterOuterAlt(e,8),this.state=3052,this.alter_table_reset_table_setting();break;case 9:this.enterOuterAlt(e,9),this.state=3053,this.alter_table_add_index();break;case 10:this.enterOuterAlt(e,10),this.state=3054,this.alter_table_drop_index();break;case 11:this.enterOuterAlt(e,11),this.state=3055,this.alter_table_rename_to();break;case 12:this.enterOuterAlt(e,12),this.state=3056,this.alter_table_add_changefeed();break;case 13:this.enterOuterAlt(e,13),this.state=3057,this.alter_table_alter_changefeed();break;case 14:this.enterOuterAlt(e,14),this.state=3058,this.alter_table_drop_changefeed();break;case 15:this.enterOuterAlt(e,15),this.state=3059,this.alter_table_rename_index_to();break;case 16:this.enterOuterAlt(e,16),this.state=3060,this.alter_table_alter_index();break;case 17:this.enterOuterAlt(e,17),this.state=3061,this.alter_table_alter_column_drop_not_null()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_external_table_stmt(){let e,s=new Nc(this.context,this.state);this.enterRule(s,468,t.RULE_alter_external_table_stmt);try{for(this.enterOuterAlt(s,1),this.state=3064,this.match(t.ALTER),this.state=3065,this.match(t.EXTERNAL),this.state=3066,this.match(t.TABLE),this.state=3067,this.simple_table_ref(),this.state=3068,this.alter_external_table_action(),this.state=3073,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3069,this.match(t.COMMA),this.state=3070,this.alter_external_table_action(),this.state=3075,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_external_table_action(){let e=new Ic(this.context,this.state);this.enterRule(e,470,t.RULE_alter_external_table_action);try{switch(this.state=3081,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,304,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3076,this.alter_table_add_column();break;case 2:this.enterOuterAlt(e,2),this.state=3077,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(e,3),this.state=3078,this.alter_table_set_table_setting_uncompat();break;case 4:this.enterOuterAlt(e,4),this.state=3079,this.alter_table_set_table_setting_compat();break;case 5:this.enterOuterAlt(e,5),this.state=3080,this.alter_table_reset_table_setting()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_store_stmt(){let e,s=new Oc(this.context,this.state);this.enterRule(s,472,t.RULE_alter_table_store_stmt);try{for(this.enterOuterAlt(s,1),this.state=3083,this.match(t.ALTER),this.state=3084,this.match(t.TABLESTORE),this.state=3085,this.object_ref(),this.state=3086,this.alter_table_store_action(),this.state=3091,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3087,this.match(t.COMMA),this.state=3088,this.alter_table_store_action(),this.state=3093,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_table_store_action(){let e=new pc(this.context,this.state);this.enterRule(e,474,t.RULE_alter_table_store_action);try{switch(this.state=3096,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ADD:this.enterOuterAlt(e,1),this.state=3094,this.alter_table_add_column();break;case t.DROP:this.enterOuterAlt(e,2),this.state=3095,this.alter_table_drop_column();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_add_column(){let e,s=new gc(this.context,this.state);this.enterRule(s,476,t.RULE_alter_table_add_column);try{this.enterOuterAlt(s,1),this.state=3098,this.match(t.ADD),this.state=3100,this.errorHandler.sync(this),e=this.tokenStream.LA(1),77===e&&(this.state=3099,this.match(t.COLUMN)),this.state=3102,this.column_schema()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_table_drop_column(){let e=new mc(this.context,this.state);this.enterRule(e,478,t.RULE_alter_table_drop_column);try{if(this.enterOuterAlt(e,1),1===(this.state=3104,this.match(t.DROP),this.state=3106,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,308,this.context)))this.state=3105,this.match(t.COLUMN);this.state=3108,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_alter_column(){let e=new xc(this.context,this.state);this.enterRule(e,480,t.RULE_alter_table_alter_column);try{this.enterOuterAlt(e,1),this.state=3110,this.match(t.ALTER),this.state=3111,this.match(t.COLUMN),this.state=3112,this.an_id(),this.state=3113,this.match(t.SET),this.state=3114,this.family_relation()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_alter_column_drop_not_null(){let e=new Uc(this.context,this.state);this.enterRule(e,482,t.RULE_alter_table_alter_column_drop_not_null);try{this.enterOuterAlt(e,1),this.state=3116,this.match(t.ALTER),this.state=3117,this.match(t.COLUMN),this.state=3118,this.an_id(),this.state=3119,this.match(t.DROP),this.state=3120,this.match(t.NOT),this.state=3121,this.match(t.NULL)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_add_column_family(){let e=new fc(this.context,this.state);this.enterRule(e,484,t.RULE_alter_table_add_column_family);try{this.enterOuterAlt(e,1),this.state=3123,this.match(t.ADD),this.state=3124,this.family_entry()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_alter_column_family(){let e=new Pc(this.context,this.state);this.enterRule(e,486,t.RULE_alter_table_alter_column_family);try{this.enterOuterAlt(e,1),this.state=3126,this.match(t.ALTER),this.state=3127,this.match(t.FAMILY),this.state=3128,this.an_id(),this.state=3129,this.match(t.SET),this.state=3130,this.an_id(),this.state=3131,this.family_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_set_table_setting_uncompat(){let e=new kc(this.context,this.state);this.enterRule(e,488,t.RULE_alter_table_set_table_setting_uncompat);try{this.enterOuterAlt(e,1),this.state=3133,this.match(t.SET),this.state=3134,this.an_id(),this.state=3135,this.table_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_set_table_setting_compat(){let e,s=new Mc(this.context,this.state);this.enterRule(s,490,t.RULE_alter_table_set_table_setting_compat);try{for(this.enterOuterAlt(s,1),this.state=3137,this.match(t.SET),this.state=3138,this.match(t.LPAREN),this.state=3139,this.alter_table_setting_entry(),this.state=3144,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3140,this.match(t.COMMA),this.state=3141,this.alter_table_setting_entry(),this.state=3146,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3147,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_table_reset_table_setting(){let e,s=new Dc(this.context,this.state);this.enterRule(s,492,t.RULE_alter_table_reset_table_setting);try{for(this.enterOuterAlt(s,1),this.state=3149,this.match(t.RESET),this.state=3150,this.match(t.LPAREN),this.state=3151,this.an_id(),this.state=3156,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3152,this.match(t.COMMA),this.state=3153,this.an_id(),this.state=3158,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3159,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_table_add_index(){let e=new yc(this.context,this.state);this.enterRule(e,494,t.RULE_alter_table_add_index);try{this.enterOuterAlt(e,1),this.state=3161,this.match(t.ADD),this.state=3162,this.table_index()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_drop_index(){let e=new vc(this.context,this.state);this.enterRule(e,496,t.RULE_alter_table_drop_index);try{this.enterOuterAlt(e,1),this.state=3164,this.match(t.DROP),this.state=3165,this.match(t.INDEX),this.state=3166,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_rename_to(){let e=new bc(this.context,this.state);this.enterRule(e,498,t.RULE_alter_table_rename_to);try{this.enterOuterAlt(e,1),this.state=3168,this.match(t.RENAME),this.state=3169,this.match(t.TO),this.state=3170,this.an_id_table()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_rename_index_to(){let e=new Hc(this.context,this.state);this.enterRule(e,500,t.RULE_alter_table_rename_index_to);try{this.enterOuterAlt(e,1),this.state=3172,this.match(t.RENAME),this.state=3173,this.match(t.INDEX),this.state=3174,this.an_id(),this.state=3175,this.match(t.TO),this.state=3176,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_add_changefeed(){let e=new wc(this.context,this.state);this.enterRule(e,502,t.RULE_alter_table_add_changefeed);try{this.enterOuterAlt(e,1),this.state=3178,this.match(t.ADD),this.state=3179,this.changefeed()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_alter_changefeed(){let e=new Fc(this.context,this.state);this.enterRule(e,504,t.RULE_alter_table_alter_changefeed);try{this.enterOuterAlt(e,1),this.state=3181,this.match(t.ALTER),this.state=3182,this.match(t.CHANGEFEED),this.state=3183,this.an_id(),this.state=3184,this.changefeed_alter_settings()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_drop_changefeed(){let e=new Gc(this.context,this.state);this.enterRule(e,506,t.RULE_alter_table_drop_changefeed);try{this.enterOuterAlt(e,1),this.state=3186,this.match(t.DROP),this.state=3187,this.match(t.CHANGEFEED),this.state=3188,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_alter_index(){let e=new Bc(this.context,this.state);this.enterRule(e,508,t.RULE_alter_table_alter_index);try{this.enterOuterAlt(e,1),this.state=3190,this.match(t.ALTER),this.state=3191,this.match(t.INDEX),this.state=3192,this.an_id(),this.state=3193,this.alter_table_alter_index_action()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}column_schema(){let e,s=new Yc(this.context,this.state);this.enterRule(s,510,t.RULE_column_schema);try{this.enterOuterAlt(s,1),this.state=3195,this.an_id_schema(),this.state=3196,this.type_name_or_bind(),this.state=3198,this.errorHandler.sync(this),e=this.tokenStream.LA(1),134===e&&(this.state=3197,this.family_relation()),this.state=3200,this.opt_column_constraints()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}family_relation(){let e=new Vc(this.context,this.state);this.enterRule(e,512,t.RULE_family_relation);try{this.enterOuterAlt(e,1),this.state=3202,this.match(t.FAMILY),this.state=3203,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}opt_column_constraints(){let e,s=new Wc(this.context,this.state);this.enterRule(s,514,t.RULE_opt_column_constraints);try{this.enterOuterAlt(s,1),this.state=3209,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(197===e||199===e)&&(this.state=3206,this.errorHandler.sync(this),e=this.tokenStream.LA(1),197===e&&(this.state=3205,this.match(t.NOT)),this.state=3208,this.match(t.NULL)),this.state=3213,this.errorHandler.sync(this),e=this.tokenStream.LA(1),98===e&&(this.state=3211,this.match(t.DEFAULT),this.state=3212,this.expr())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}column_order_by_specification(){let e,s=new Xc(this.context,this.state);this.enterRule(s,516,t.RULE_column_order_by_specification);try{this.enterOuterAlt(s,1),this.state=3215,this.an_id(),this.state=3217,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(52===e||103===e)&&(this.state=3216,e=this.tokenStream.LA(1),52===e||103===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_constraint(){let e,s=new Kc(this.context,this.state);this.enterRule(s,518,t.RULE_table_constraint);try{switch(this.state=3258,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.PRIMARY:for(this.enterOuterAlt(s,1),this.state=3219,this.match(t.PRIMARY),this.state=3220,this.match(t.KEY),this.state=3221,this.match(t.LPAREN),this.state=3222,this.an_id(),this.state=3227,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3223,this.match(t.COMMA),this.state=3224,this.an_id(),this.state=3229,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3230,this.match(t.RPAREN);break;case t.PARTITION:for(this.enterOuterAlt(s,2),this.state=3232,this.match(t.PARTITION),this.state=3233,this.match(t.BY),this.state=3234,this.match(t.LPAREN),this.state=3235,this.an_id(),this.state=3240,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3236,this.match(t.COMMA),this.state=3237,this.an_id(),this.state=3242,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3243,this.match(t.RPAREN);break;case t.ORDER:for(this.enterOuterAlt(s,3),this.state=3245,this.match(t.ORDER),this.state=3246,this.match(t.BY),this.state=3247,this.match(t.LPAREN),this.state=3248,this.column_order_by_specification(),this.state=3253,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3249,this.match(t.COMMA),this.state=3250,this.column_order_by_specification(),this.state=3255,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3256,this.match(t.RPAREN);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_index(){let e,s=new Qc(this.context,this.state);this.enterRule(s,520,t.RULE_table_index);try{for(this.enterOuterAlt(s,1),this.state=3260,this.match(t.INDEX),this.state=3261,this.an_id(),this.state=3262,this.table_index_type(),this.state=3263,this.match(t.ON),this.state=3264,this.match(t.LPAREN),this.state=3265,this.an_id_schema(),this.state=3270,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3266,this.match(t.COMMA),this.state=3267,this.an_id_schema(),this.state=3272,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=3273,this.match(t.RPAREN),this.state=3286,this.errorHandler.sync(this),e=this.tokenStream.LA(1),86===e){for(this.state=3274,this.match(t.COVER),this.state=3275,this.match(t.LPAREN),this.state=3276,this.an_id_schema(),this.state=3281,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3277,this.match(t.COMMA),this.state=3278,this.an_id_schema(),this.state=3283,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3284,this.match(t.RPAREN)}this.state=3289,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=3288,this.with_index_settings())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_index_type(){let e,s=new qc(this.context,this.state);this.enterRule(s,522,t.RULE_table_index_type);try{switch(this.enterOuterAlt(s,1),this.state=3293,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.GLOBAL:this.state=3291,this.global_index();break;case t.LOCAL:this.state=3292,this.local_index();break;default:throw new ce(this)}this.state=3297,this.errorHandler.sync(this),e=this.tokenStream.LA(1),306===e&&(this.state=3295,this.match(t.USING),this.state=3296,this.index_subtype())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}global_index(){let e,s=new jc(this.context,this.state);this.enterRule(s,524,t.RULE_global_index);try{this.enterOuterAlt(s,1),this.state=3299,this.match(t.GLOBAL),this.state=3301,this.errorHandler.sync(this),e=this.tokenStream.LA(1),299===e&&(this.state=3300,this.match(t.UNIQUE)),this.state=3304,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(55===e||278===e)&&(this.state=3303,e=this.tokenStream.LA(1),55===e||278===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}local_index(){let e=new Jc(this.context,this.state);this.enterRule(e,526,t.RULE_local_index);try{this.enterOuterAlt(e,1),this.state=3306,this.match(t.LOCAL)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}index_subtype(){let e=new zc(this.context,this.state);this.enterRule(e,528,t.RULE_index_subtype);try{this.enterOuterAlt(e,1),this.state=3308,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}with_index_settings(){let e,s=new Zc(this.context,this.state);this.enterRule(s,530,t.RULE_with_index_settings);try{let r;for(this.enterOuterAlt(s,1),this.state=3310,this.match(t.WITH),this.state=3311,this.match(t.LPAREN),this.state=3312,this.index_setting_entry(),this.state=3317,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3313,this.match(t.COMMA),this.state=3314,this.index_setting_entry()),this.state=3319,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);this.state=3321,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3320,this.match(t.COMMA)),this.state=3323,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}index_setting_entry(){let e=new $c(this.context,this.state);this.enterRule(e,532,t.RULE_index_setting_entry);try{this.enterOuterAlt(e,1),this.state=3325,this.an_id(),this.state=3326,this.match(t.EQUALS),this.state=3327,this.index_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}index_setting_value(){let e=new th(this.context,this.state);this.enterRule(e,534,t.RULE_index_setting_value);try{switch(this.state=3333,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=3329,this.id_or_type();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=3330,this.match(t.STRING_VALUE);break;case t.DIGITS:case t.INTEGER_VALUE:this.enterOuterAlt(e,3),this.state=3331,this.integer();break;case t.FALSE:case t.TRUE:this.enterOuterAlt(e,4),this.state=3332,this.bool_value();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}changefeed(){let e=new eh(this.context,this.state);this.enterRule(e,536,t.RULE_changefeed);try{this.enterOuterAlt(e,1),this.state=3335,this.match(t.CHANGEFEED),this.state=3336,this.an_id(),this.state=3337,this.match(t.WITH),this.state=3338,this.match(t.LPAREN),this.state=3339,this.changefeed_settings(),this.state=3340,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}changefeed_settings(){let e,s=new sh(this.context,this.state);this.enterRule(s,538,t.RULE_changefeed_settings);try{for(this.enterOuterAlt(s,1),this.state=3342,this.changefeed_settings_entry(),this.state=3347,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3343,this.match(t.COMMA),this.state=3344,this.changefeed_settings_entry(),this.state=3349,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}changefeed_settings_entry(){let e=new rh(this.context,this.state);this.enterRule(e,540,t.RULE_changefeed_settings_entry);try{this.enterOuterAlt(e,1),this.state=3350,this.an_id(),this.state=3351,this.match(t.EQUALS),this.state=3352,this.changefeed_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}changefeed_setting_value(){let e=new ih(this.context,this.state);this.enterRule(e,542,t.RULE_changefeed_setting_value);try{this.enterOuterAlt(e,1),this.state=3354,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}changefeed_alter_settings(){let e=new ah(this.context,this.state);this.enterRule(e,544,t.RULE_changefeed_alter_settings);try{switch(this.state=3362,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DISABLE:this.enterOuterAlt(e,1),this.state=3356,this.match(t.DISABLE);break;case t.SET:this.enterOuterAlt(e,2),this.state=3357,this.match(t.SET),this.state=3358,this.match(t.LPAREN),this.state=3359,this.changefeed_settings(),this.state=3360,this.match(t.RPAREN);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_setting_entry(){let e=new nh(this.context,this.state);this.enterRule(e,546,t.RULE_alter_table_setting_entry);try{this.enterOuterAlt(e,1),this.state=3364,this.an_id(),this.state=3365,this.match(t.EQUALS),this.state=3366,this.table_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}table_setting_value(){let e,s=new ch(this.context,this.state);this.enterRule(s,548,t.RULE_table_setting_value);try{switch(this.state=3380,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,334,this.context)){case 1:this.enterOuterAlt(s,1),this.state=3368,this.id();break;case 2:this.enterOuterAlt(s,2),this.state=3369,this.match(t.STRING_VALUE);break;case 3:this.enterOuterAlt(s,3),this.state=3370,this.integer();break;case 4:this.enterOuterAlt(s,4),this.state=3371,this.split_boundaries();break;case 5:this.enterOuterAlt(s,5),this.state=3372,this.expr(),this.state=3373,this.match(t.ON),this.state=3374,this.an_id(),this.state=3377,this.errorHandler.sync(this),e=this.tokenStream.LA(1),51===e&&(this.state=3375,this.match(t.AS),this.state=3376,e=this.tokenStream.LA(1),!(e-190&-32)&&1<<e-190&11||263===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case 6:this.enterOuterAlt(s,6),this.state=3379,this.bool_value()}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}family_entry(){let e=new hh(this.context,this.state);this.enterRule(e,550,t.RULE_family_entry);try{this.enterOuterAlt(e,1),this.state=3382,this.match(t.FAMILY),this.state=3383,this.an_id(),this.state=3384,this.family_settings()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}family_settings(){let e,s=new oh(this.context,this.state);this.enterRule(s,552,t.RULE_family_settings);try{if(this.enterOuterAlt(s,1),this.state=3386,this.match(t.LPAREN),this.state=3395,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-40&-32)&&1<<e-40&3757047807||!(e-72&-32)&&1<<e-72&4294967295||!(e-104&-32)&&1<<e-104&3758063611||!(e-136&-32)&&1<<e-136&4294966267||!(e-168&-32)&&1<<e-168&4294934527||!(e-200&-32)&&1<<e-200&4294966783||!(e-232&-32)&&1<<e-232&4294958591||!(e-264&-32)&&1<<e-264&2683305463||!(e-296&-32)&&1<<e-296&67100671)for(this.state=3387,this.family_settings_entry(),this.state=3392,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3388,this.match(t.COMMA),this.state=3389,this.family_settings_entry(),this.state=3394,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3397,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}family_settings_entry(){let e=new Eh(this.context,this.state);this.enterRule(e,554,t.RULE_family_settings_entry);try{this.enterOuterAlt(e,1),this.state=3399,this.an_id(),this.state=3400,this.match(t.EQUALS),this.state=3401,this.family_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}family_setting_value(){let e=new lh(this.context,this.state);this.enterRule(e,556,t.RULE_family_setting_value);try{switch(this.state=3405,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.STRING_VALUE:this.enterOuterAlt(e,1),this.state=3403,this.match(t.STRING_VALUE);break;case t.DIGITS:case t.INTEGER_VALUE:this.enterOuterAlt(e,2),this.state=3404,this.integer();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}split_boundaries(){let e,s=new uh(this.context,this.state);this.enterRule(s,558,t.RULE_split_boundaries);try{switch(this.state=3419,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,339,this.context)){case 1:for(this.enterOuterAlt(s,1),this.state=3407,this.match(t.LPAREN),this.state=3408,this.literal_value_list(),this.state=3413,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3409,this.match(t.COMMA),this.state=3410,this.literal_value_list(),this.state=3415,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3416,this.match(t.RPAREN);break;case 2:this.enterOuterAlt(s,2),this.state=3418,this.literal_value_list()}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}literal_value_list(){let e,s=new Rh(this.context,this.state);this.enterRule(s,560,t.RULE_literal_value_list);try{for(this.enterOuterAlt(s,1),this.state=3421,this.match(t.LPAREN),this.state=3422,this.literal_value(),this.state=3427,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3423,this.match(t.COMMA),this.state=3424,this.literal_value(),this.state=3429,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3430,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_table_alter_index_action(){let e=new _h(this.context,this.state);this.enterRule(e,562,t.RULE_alter_table_alter_index_action);try{switch(this.state=3435,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,341,this.context)){case 1:this.enterOuterAlt(e,1),this.state=3432,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(e,2),this.state=3433,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(e,3),this.state=3434,this.alter_table_reset_table_setting()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_table_stmt(){let e=new Th(this.context,this.state);this.enterRule(e,564,t.RULE_drop_table_stmt);try{switch(this.enterOuterAlt(e,1),this.state=3437,this.match(t.DROP),this.state=3442,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.TABLE:this.state=3438,this.match(t.TABLE);break;case t.TABLESTORE:this.state=3439,this.match(t.TABLESTORE);break;case t.EXTERNAL:this.state=3440,this.match(t.EXTERNAL),this.state=3441,this.match(t.TABLE);break;default:throw new ce(this)}if(1===(this.state=3446,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,343,this.context)))this.state=3444,this.match(t.IF),this.state=3445,this.match(t.EXISTS);this.state=3448,this.simple_table_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_user_stmt(){let e,s=new Ah(this.context,this.state);this.enterRule(s,566,t.RULE_create_user_stmt);try{this.enterOuterAlt(s,1),this.state=3450,this.match(t.CREATE),this.state=3451,this.match(t.USER),this.state=3452,this.role_name(),this.state=3454,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(117===e||218===e)&&(this.state=3453,this.create_user_option())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_user_stmt(){let e,s=new Sh(this.context,this.state);this.enterRule(s,568,t.RULE_alter_user_stmt);try{switch(this.enterOuterAlt(s,1),this.state=3456,this.match(t.ALTER),this.state=3457,this.match(t.USER),this.state=3458,this.role_name(),this.state=3466,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ENCRYPTED:case t.PASSWORD:case t.WITH:this.state=3460,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=3459,this.match(t.WITH)),this.state=3462,this.create_user_option();break;case t.RENAME:this.state=3463,this.match(t.RENAME),this.state=3464,this.match(t.TO),this.state=3465,this.role_name();break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_group_stmt(){let e,s=new dh(this.context,this.state);this.enterRule(s,570,t.RULE_create_group_stmt);try{let r;if(this.enterOuterAlt(s,1),this.state=3468,this.match(t.CREATE),this.state=3469,this.match(t.GROUP),this.state=3470,this.role_name(),this.state=3484,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e){for(this.state=3471,this.match(t.WITH),this.state=3472,this.match(t.USER),this.state=3473,this.role_name(),this.state=3478,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,347,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3474,this.match(t.COMMA),this.state=3475,this.role_name()),this.state=3480,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,347,this.context);this.state=3482,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3481,this.match(t.COMMA))}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_group_stmt(){let e,s=new Lh(this.context,this.state);this.enterRule(s,572,t.RULE_alter_group_stmt);try{let r;switch(this.enterOuterAlt(s,1),this.state=3486,this.match(t.ALTER),this.state=3487,this.match(t.GROUP),this.state=3488,this.role_name(),this.state=3505,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ADD:case t.DROP:for(this.state=3489,e=this.tokenStream.LA(1),42===e||112===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3490,this.match(t.USER),this.state=3491,this.role_name(),this.state=3496,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,350,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3492,this.match(t.COMMA),this.state=3493,this.role_name()),this.state=3498,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,350,this.context);this.state=3500,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3499,this.match(t.COMMA));break;case t.RENAME:this.state=3502,this.match(t.RENAME),this.state=3503,this.match(t.TO),this.state=3504,this.role_name();break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}drop_role_stmt(){let e,s=new Ch(this.context,this.state);this.enterRule(s,574,t.RULE_drop_role_stmt);try{let r;if(this.enterOuterAlt(s,1),1===(this.state=3507,this.match(t.DROP),this.state=3508,e=this.tokenStream.LA(1),148===e||305===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3511,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,353,this.context)))this.state=3509,this.match(t.IF),this.state=3510,this.match(t.EXISTS);for(this.state=3513,this.role_name(),this.state=3518,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3514,this.match(t.COMMA),this.state=3515,this.role_name()),this.state=3520,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);this.state=3522,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3521,this.match(t.COMMA))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}role_name(){let e=new Nh(this.context,this.state);this.enterRule(e,576,t.RULE_role_name);try{switch(this.state=3526,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=3524,this.an_id_or_type();break;case t.DOLLAR:this.enterOuterAlt(e,2),this.state=3525,this.bind_parameter();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_user_option(){let e,s=new Ih(this.context,this.state);this.enterRule(s,578,t.RULE_create_user_option);try{this.enterOuterAlt(s,1),this.state=3529,this.errorHandler.sync(this),e=this.tokenStream.LA(1),117===e&&(this.state=3528,this.match(t.ENCRYPTED)),this.state=3531,this.match(t.PASSWORD),this.state=3532,this.expr()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}grant_permissions_stmt(){let e,s=new Oh(this.context,this.state);this.enterRule(s,580,t.RULE_grant_permissions_stmt);try{let r;for(this.enterOuterAlt(s,1),this.state=3534,this.match(t.GRANT),this.state=3535,this.permission_name_target(),this.state=3536,this.match(t.ON),this.state=3537,this.an_id_schema(),this.state=3542,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3538,this.match(t.COMMA),this.state=3539,this.an_id_schema(),this.state=3544,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=3545,this.match(t.TO),this.state=3546,this.role_name(),this.state=3551,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,359,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3547,this.match(t.COMMA),this.state=3548,this.role_name()),this.state=3553,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,359,this.context);this.state=3555,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3554,this.match(t.COMMA)),this.state=3560,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=3557,this.match(t.WITH),this.state=3558,this.match(t.GRANT),this.state=3559,this.match(t.OPTION))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}revoke_permissions_stmt(){let e,s=new ph(this.context,this.state);this.enterRule(s,582,t.RULE_revoke_permissions_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=3562,this.match(t.REVOKE),this.state=3566,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,362,this.context)))this.state=3563,this.match(t.GRANT),this.state=3564,this.match(t.OPTION),this.state=3565,this.match(t.FOR);for(this.state=3568,this.permission_name_target(),this.state=3569,this.match(t.ON),this.state=3570,this.an_id_schema(),this.state=3575,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3571,this.match(t.COMMA),this.state=3572,this.an_id_schema(),this.state=3577,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=3578,this.match(t.FROM),this.state=3579,this.role_name(),this.state=3584,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3580,this.match(t.COMMA),this.state=3581,this.role_name(),this.state=3586,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}permission_id(){let e,s=new gh(this.context,this.state);this.enterRule(s,584,t.RULE_permission_id);try{switch(this.state=3611,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.CONNECT:this.enterOuterAlt(s,1),this.state=3587,this.match(t.CONNECT);break;case t.LIST:this.enterOuterAlt(s,2),this.state=3588,this.match(t.LIST);break;case t.INSERT:this.enterOuterAlt(s,3),this.state=3589,this.match(t.INSERT);break;case t.MANAGE:this.enterOuterAlt(s,4),this.state=3590,this.match(t.MANAGE);break;case t.DROP:this.enterOuterAlt(s,5),this.state=3591,this.match(t.DROP);break;case t.GRANT:this.enterOuterAlt(s,6),this.state=3592,this.match(t.GRANT);break;case t.MODIFY:this.enterOuterAlt(s,7),this.state=3593,this.match(t.MODIFY),this.state=3594,e=this.tokenStream.LA(1),58===e||281===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case t.ERASE:case t.UPDATE:this.enterOuterAlt(s,8),this.state=3595,e=this.tokenStream.LA(1),120===e||302===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3596,this.match(t.ROW);break;case t.ALTER:case t.DESCRIBE:case t.REMOVE:this.enterOuterAlt(s,9),this.state=3597,e=this.tokenStream.LA(1),45===e||104===e||239===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3598,this.match(t.SCHEMA);break;case t.SELECT:this.enterOuterAlt(s,10),this.state=3599,this.match(t.SELECT),this.state=3601,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(58===e||258===e||281===e)&&(this.state=3600,e=this.tokenStream.LA(1),58===e||258===e||281===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case t.FULL:case t.USE:this.enterOuterAlt(s,11),this.state=3603,e=this.tokenStream.LA(1),143===e||304===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3605,this.errorHandler.sync(this),e=this.tokenStream.LA(1),180===e&&(this.state=3604,this.match(t.LEGACY));break;case t.CREATE:this.enterOuterAlt(s,12),this.state=3607,this.match(t.CREATE),this.state=3609,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(107===e||231===e||280===e)&&(this.state=3608,e=this.tokenStream.LA(1),107===e||231===e||280===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}permission_name(){let e=new mh(this.context,this.state);this.enterRule(e,586,t.RULE_permission_name);try{switch(this.state=3615,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALTER:case t.CONNECT:case t.CREATE:case t.DESCRIBE:case t.DROP:case t.ERASE:case t.FULL:case t.GRANT:case t.INSERT:case t.LIST:case t.MANAGE:case t.MODIFY:case t.REMOVE:case t.SELECT:case t.UPDATE:case t.USE:this.enterOuterAlt(e,1),this.state=3613,this.permission_id();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=3614,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}permission_name_target(){let e,s=new xh(this.context,this.state);this.enterRule(s,588,t.RULE_permission_name_target);try{let r;switch(this.state=3632,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ALTER:case t.CONNECT:case t.CREATE:case t.DESCRIBE:case t.DROP:case t.ERASE:case t.FULL:case t.GRANT:case t.INSERT:case t.LIST:case t.MANAGE:case t.MODIFY:case t.REMOVE:case t.SELECT:case t.UPDATE:case t.USE:case t.STRING_VALUE:for(this.enterOuterAlt(s,1),this.state=3617,this.permission_name(),this.state=3622,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,370,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3618,this.match(t.COMMA),this.state=3619,this.permission_name()),this.state=3624,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,370,this.context);this.state=3626,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3625,this.match(t.COMMA));break;case t.ALL:this.enterOuterAlt(s,2),this.state=3628,this.match(t.ALL),this.state=3630,this.errorHandler.sync(this),e=this.tokenStream.LA(1),229===e&&(this.state=3629,this.match(t.PRIVILEGES));break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_resource_pool_stmt(){let e=new Uh(this.context,this.state);this.enterRule(e,590,t.RULE_create_resource_pool_stmt);try{this.enterOuterAlt(e,1),this.state=3634,this.match(t.CREATE),this.state=3635,this.match(t.RESOURCE),this.state=3636,this.match(t.POOL),this.state=3637,this.object_ref(),this.state=3638,this.with_table_settings()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_resource_pool_stmt(){let e,s=new fh(this.context,this.state);this.enterRule(s,592,t.RULE_alter_resource_pool_stmt);try{for(this.enterOuterAlt(s,1),this.state=3640,this.match(t.ALTER),this.state=3641,this.match(t.RESOURCE),this.state=3642,this.match(t.POOL),this.state=3643,this.object_ref(),this.state=3644,this.alter_resource_pool_action(),this.state=3649,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3645,this.match(t.COMMA),this.state=3646,this.alter_resource_pool_action(),this.state=3651,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_resource_pool_action(){let e=new Ph(this.context,this.state);this.enterRule(e,594,t.RULE_alter_resource_pool_action);try{switch(this.state=3654,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.enterOuterAlt(e,1),this.state=3652,this.alter_table_set_table_setting_compat();break;case t.RESET:this.enterOuterAlt(e,2),this.state=3653,this.alter_table_reset_table_setting();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_resource_pool_stmt(){let e=new kh(this.context,this.state);this.enterRule(e,596,t.RULE_drop_resource_pool_stmt);try{this.enterOuterAlt(e,1),this.state=3656,this.match(t.DROP),this.state=3657,this.match(t.RESOURCE),this.state=3658,this.match(t.POOL),this.state=3659,this.object_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_resource_pool_classifier_stmt(){let e=new Mh(this.context,this.state);this.enterRule(e,598,t.RULE_create_resource_pool_classifier_stmt);try{this.enterOuterAlt(e,1),this.state=3661,this.match(t.CREATE),this.state=3662,this.match(t.RESOURCE),this.state=3663,this.match(t.POOL),this.state=3664,this.match(t.CLASSIFIER),this.state=3665,this.object_ref(),this.state=3666,this.with_table_settings()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_resource_pool_classifier_stmt(){let e,s=new Dh(this.context,this.state);this.enterRule(s,600,t.RULE_alter_resource_pool_classifier_stmt);try{for(this.enterOuterAlt(s,1),this.state=3668,this.match(t.ALTER),this.state=3669,this.match(t.RESOURCE),this.state=3670,this.match(t.POOL),this.state=3671,this.match(t.CLASSIFIER),this.state=3672,this.object_ref(),this.state=3673,this.alter_resource_pool_classifier_action(),this.state=3678,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3674,this.match(t.COMMA),this.state=3675,this.alter_resource_pool_classifier_action(),this.state=3680,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_resource_pool_classifier_action(){let e=new yh(this.context,this.state);this.enterRule(e,602,t.RULE_alter_resource_pool_classifier_action);try{switch(this.state=3683,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.enterOuterAlt(e,1),this.state=3681,this.alter_table_set_table_setting_compat();break;case t.RESET:this.enterOuterAlt(e,2),this.state=3682,this.alter_table_reset_table_setting();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_resource_pool_classifier_stmt(){let e=new vh(this.context,this.state);this.enterRule(e,604,t.RULE_drop_resource_pool_classifier_stmt);try{this.enterOuterAlt(e,1),this.state=3685,this.match(t.DROP),this.state=3686,this.match(t.RESOURCE),this.state=3687,this.match(t.POOL),this.state=3688,this.match(t.CLASSIFIER),this.state=3689,this.object_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}create_replication_stmt(){let e,s=new bh(this.context,this.state);this.enterRule(s,606,t.RULE_create_replication_stmt);try{for(this.enterOuterAlt(s,1),this.state=3691,this.match(t.CREATE),this.state=3692,this.match(t.ASYNC),this.state=3693,this.match(t.REPLICATION),this.state=3694,this.object_ref(),this.state=3695,this.match(t.FOR),this.state=3696,this.replication_target(),this.state=3701,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3697,this.match(t.COMMA),this.state=3698,this.replication_target(),this.state=3703,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3704,this.match(t.WITH),this.state=3705,this.match(t.LPAREN),this.state=3706,this.replication_settings(),this.state=3707,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}replication_target(){let e=new Hh(this.context,this.state);this.enterRule(e,608,t.RULE_replication_target);try{this.enterOuterAlt(e,1),this.state=3709,this.object_ref(),this.state=3710,this.replication_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}replication_settings(){let e,s=new wh(this.context,this.state);this.enterRule(s,610,t.RULE_replication_settings);try{for(this.enterOuterAlt(s,1),this.state=3712,this.replication_settings_entry(),this.state=3717,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3713,this.match(t.COMMA),this.state=3714,this.replication_settings_entry(),this.state=3719,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}replication_settings_entry(){let e=new Fh(this.context,this.state);this.enterRule(e,612,t.RULE_replication_settings_entry);try{this.enterOuterAlt(e,1),this.state=3720,this.an_id(),this.state=3721,this.match(t.EQUALS),this.state=3722,this.match(t.STRING_VALUE)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_replication_stmt(){let e,s=new Gh(this.context,this.state);this.enterRule(s,614,t.RULE_alter_replication_stmt);try{for(this.enterOuterAlt(s,1),this.state=3724,this.match(t.ALTER),this.state=3725,this.match(t.ASYNC),this.state=3726,this.match(t.REPLICATION),this.state=3727,this.object_ref(),this.state=3728,this.alter_replication_action(),this.state=3733,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3729,this.match(t.COMMA),this.state=3730,this.alter_replication_action(),this.state=3735,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_replication_action(){let e=new Bh(this.context,this.state);this.enterRule(e,616,t.RULE_alter_replication_action);try{this.enterOuterAlt(e,1),this.state=3736,this.alter_replication_set_setting()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_replication_set_setting(){let e=new Yh(this.context,this.state);this.enterRule(e,618,t.RULE_alter_replication_set_setting);try{this.enterOuterAlt(e,1),this.state=3738,this.match(t.SET),this.state=3739,this.match(t.LPAREN),this.state=3740,this.replication_settings(),this.state=3741,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}drop_replication_stmt(){let e,s=new Vh(this.context,this.state);this.enterRule(s,620,t.RULE_drop_replication_stmt);try{this.enterOuterAlt(s,1),this.state=3743,this.match(t.DROP),this.state=3744,this.match(t.ASYNC),this.state=3745,this.match(t.REPLICATION),this.state=3746,this.object_ref(),this.state=3748,this.errorHandler.sync(this),e=this.tokenStream.LA(1),70===e&&(this.state=3747,this.match(t.CASCADE))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}action_or_subquery_args(){let e,s=new Wh(this.context,this.state);this.enterRule(s,622,t.RULE_action_or_subquery_args);try{for(this.enterOuterAlt(s,1),this.state=3750,this.opt_bind_parameter(),this.state=3755,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3751,this.match(t.COMMA),this.state=3752,this.opt_bind_parameter(),this.state=3757,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}define_action_or_subquery_stmt(){let e,s=new Xh(this.context,this.state);this.enterRule(s,624,t.RULE_define_action_or_subquery_stmt);try{this.enterOuterAlt(s,1),this.state=3758,this.match(t.DEFINE),this.state=3759,e=this.tokenStream.LA(1),41===e||274===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3760,this.bind_parameter(),this.state=3761,this.match(t.LPAREN),this.state=3763,this.errorHandler.sync(this),e=this.tokenStream.LA(1),32===e&&(this.state=3762,this.action_or_subquery_args()),this.state=3765,this.match(t.RPAREN),this.state=3766,this.match(t.AS),this.state=3767,this.define_action_or_subquery_body(),this.state=3768,this.match(t.END),this.state=3769,this.match(t.DEFINE)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}define_action_or_subquery_body(){let e,s=new Kh(this.context,this.state);this.enterRule(s,626,t.RULE_define_action_or_subquery_body);try{let r;for(this.enterOuterAlt(s,1),this.state=3774,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=3771,this.match(t.SEMICOLON),this.state=3776,this.errorHandler.sync(this),e=this.tokenStream.LA(1);if(this.state=3795,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e||!(e-32&-32)&&1<<e-32&536895489||!(e-79&-32)&&1<<e-79&1086587137||!(e-111&-32)&&1<<e-111&2684882947||!(e-147&-32)&&1<<e-147&1050753||!(e-215&-32)&&1<<e-215&134775809||!(e-247&-32)&&1<<e-247&262721||!(e-302&-32)&&1<<e-302&71){for(this.state=3777,this.sql_stmt_core(),this.state=3786,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,386,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;){if(1===r){this.state=3779,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=3778,this.match(t.SEMICOLON),this.state=3781,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(23===e);this.state=3783,this.sql_stmt_core()}this.state=3788,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,386,this.context)}for(this.state=3792,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=3789,this.match(t.SEMICOLON),this.state=3794,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}if_stmt(){let e,s=new Qh(this.context,this.state);this.enterRule(s,628,t.RULE_if_stmt);try{this.enterOuterAlt(s,1),this.state=3798,this.errorHandler.sync(this),e=this.tokenStream.LA(1),123===e&&(this.state=3797,this.match(t.EVALUATE)),this.state=3800,this.match(t.IF),this.state=3801,this.expr(),this.state=3802,this.do_stmt(),this.state=3805,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=3803,this.match(t.ELSE),this.state=3804,this.do_stmt())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}for_stmt(){let e,s=new qh(this.context,this.state);this.enterRule(s,630,t.RULE_for_stmt);try{this.enterOuterAlt(s,1),this.state=3808,this.errorHandler.sync(this),e=this.tokenStream.LA(1),123===e&&(this.state=3807,this.match(t.EVALUATE)),this.state=3811,this.errorHandler.sync(this),e=this.tokenStream.LA(1),215===e&&(this.state=3810,this.match(t.PARALLEL)),this.state=3813,this.match(t.FOR),this.state=3814,this.bind_parameter(),this.state=3815,this.match(t.IN),this.state=3816,this.expr(),this.state=3817,this.do_stmt(),this.state=3820,this.errorHandler.sync(this),e=this.tokenStream.LA(1),114===e&&(this.state=3818,this.match(t.ELSE),this.state=3819,this.do_stmt())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_ref(){let e,s=new jh(this.context,this.state);this.enterRule(s,632,t.RULE_table_ref);try{let r;if(this.enterOuterAlt(s,1),1===(this.state=3825,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,394,this.context)))this.state=3822,this.cluster_expr(),this.state=3823,this.match(t.DOT);switch(this.state=3828,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=3827,this.match(t.COMMAT)),this.state=3860,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,402,this.context)){case 1:this.state=3830,this.table_key();break;case 2:if(this.state=3831,this.an_id_expr(),this.state=3832,this.match(t.LPAREN),this.state=3844,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-15&-32)&&1<<e-15&4278618141||!(e-47&-32)&&1<<e-47&4294959103||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-239&-32)&&1<<e-239&4294967291||!(e-271&-32)&&1<<e-271&4294967295||!(e-303&-32)&&1<<e-303&8388607){for(this.state=3833,this.table_arg(),this.state=3838,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,396,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3834,this.match(t.COMMA),this.state=3835,this.table_arg()),this.state=3840,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,396,this.context);this.state=3842,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3841,this.match(t.COMMA))}this.state=3846,this.match(t.RPAREN);break;case 3:this.state=3848,this.bind_parameter(),this.state=3854,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=3849,this.match(t.LPAREN),this.state=3851,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(!(e-15&-32)&&1<<e-15&4278585373||!(e-47&-32)&&1<<e-47&4294959103||!(e-79&-32)&&1<<e-79&4294967295||!(e-111&-32)&&1<<e-111&4294967295||!(e-143&-32)&&1<<e-143&4294967287||!(e-175&-32)&&1<<e-175&4294967295||!(e-207&-32)&&1<<e-207&4294967295||!(e-239&-32)&&1<<e-239&4294967291||!(e-271&-32)&&1<<e-271&4294967295||!(e-303&-32)&&1<<e-303&8388607)&&(this.state=3850,this.expr_list()),this.state=3853,this.match(t.RPAREN)),this.state=3858,this.errorHandler.sync(this),e=this.tokenStream.LA(1),310===e&&(this.state=3856,this.match(t.VIEW),this.state=3857,this.view_name())}this.state=3863,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=3862,this.table_hints())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_key(){let e,s=new Jh(this.context,this.state);this.enterRule(s,634,t.RULE_table_key);try{this.enterOuterAlt(s,1),this.state=3865,this.id_table_or_type(),this.state=3868,this.errorHandler.sync(this),e=this.tokenStream.LA(1),310===e&&(this.state=3866,this.match(t.VIEW),this.state=3867,this.view_name())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_arg(){let e,s=new zh(this.context,this.state);this.enterRule(s,636,t.RULE_table_arg);try{this.enterOuterAlt(s,1),this.state=3871,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=3870,this.match(t.COMMAT)),this.state=3873,this.named_expr(),this.state=3876,this.errorHandler.sync(this),e=this.tokenStream.LA(1),310===e&&(this.state=3874,this.match(t.VIEW),this.state=3875,this.view_name())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_hints(){let e,s=new Zh(this.context,this.state);this.enterRule(s,638,t.RULE_table_hints);try{switch(this.enterOuterAlt(s,1),this.state=3878,this.match(t.WITH),this.state=3891,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=3879,this.table_hint();break;case t.LPAREN:for(this.state=3880,this.match(t.LPAREN),this.state=3881,this.table_hint(),this.state=3886,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3882,this.match(t.COMMA),this.state=3883,this.table_hint(),this.state=3888,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=3889,this.match(t.RPAREN);break;default:throw new ce(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}table_hint(){let e,s=new $h(this.context,this.state);this.enterRule(s,640,t.RULE_table_hint);try{let r;switch(this.state=3938,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,418,this.context)){case 1:if(this.enterOuterAlt(s,1),this.state=3893,this.an_id_hint(),this.state=3912,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e)switch(this.state=3894,this.match(t.EQUALS),this.state=3910,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=3895,this.type_name_tag();break;case t.LPAREN:for(this.state=3896,this.match(t.LPAREN),this.state=3897,this.type_name_tag(),this.state=3902,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,409,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3898,this.match(t.COMMA),this.state=3899,this.type_name_tag()),this.state=3904,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,409,this.context);this.state=3906,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3905,this.match(t.COMMA)),this.state=3908,this.match(t.RPAREN);break;default:throw new ce(this)}break;case 2:this.enterOuterAlt(s,2),this.state=3914,e=this.tokenStream.LA(1),78===e||262===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3916,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=3915,this.match(t.EQUALS)),this.state=3918,this.type_name_or_bind();break;case 3:if(this.enterOuterAlt(s,3),this.state=3919,this.match(t.SCHEMA),this.state=3921,this.errorHandler.sync(this),e=this.tokenStream.LA(1),2===e&&(this.state=3920,this.match(t.EQUALS)),this.state=3923,this.match(t.LPAREN),this.state=3932,this.errorHandler.sync(this),e=this.tokenStream.LA(1),!(e-32&-32)&&1<<e-32&4026531585||!(e-64&-32)&&1<<e-64&4294967295||!(e-96&-32)&&1<<e-96&4294967295||!(e-128&-32)&&1<<e-128&4294705119||!(e-160&-32)&&1<<e-160&4294967295||!(e-192&-32)&&1<<e-192&4294967295||!(e-224&-32)&&1<<e-224&4294836223||!(e-256&-32)&&1<<e-256&4294967295||!(e-288&-32)&&1<<e-288&4294967263||320===e||321===e)for(this.state=3924,this.struct_arg_positional(),this.state=3929,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,415,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=3925,this.match(t.COMMA),this.state=3926,this.struct_arg_positional()),this.state=3931,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,415,this.context);this.state=3935,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=3934,this.match(t.COMMA)),this.state=3937,this.match(t.RPAREN)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}object_ref(){let e=new to(this.context,this.state);this.enterRule(e,642,t.RULE_object_ref);try{if(this.enterOuterAlt(e,1),1===(this.state=3943,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,419,this.context)))this.state=3940,this.cluster_expr(),this.state=3941,this.match(t.DOT);this.state=3945,this.id_or_at()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}simple_table_ref_core(){let e,s=new eo(this.context,this.state);this.enterRule(s,644,t.RULE_simple_table_ref_core);try{switch(this.state=3952,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,421,this.context)){case 1:this.enterOuterAlt(s,1),this.state=3947,this.object_ref();break;case 2:this.enterOuterAlt(s,2),this.state=3949,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=3948,this.match(t.COMMAT)),this.state=3951,this.bind_parameter()}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}simple_table_ref(){let e,s=new so(this.context,this.state);this.enterRule(s,646,t.RULE_simple_table_ref);try{this.enterOuterAlt(s,1),this.state=3954,this.simple_table_ref_core(),this.state=3956,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=3955,this.table_hints())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}into_simple_table_ref(){let e,s=new ro(this.context,this.state);this.enterRule(s,648,t.RULE_into_simple_table_ref);try{this.enterOuterAlt(s,1),this.state=3958,this.simple_table_ref(),this.state=3962,this.errorHandler.sync(this),e=this.tokenStream.LA(1),120===e&&(this.state=3959,this.match(t.ERASE),this.state=3960,this.match(t.BY),this.state=3961,this.pure_column_list())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}delete_stmt(){let e,s=new io(this.context,this.state);this.enterRule(s,650,t.RULE_delete_stmt);try{switch(this.enterOuterAlt(s,1),this.state=3964,this.match(t.DELETE),this.state=3965,this.match(t.FROM),this.state=3966,this.simple_table_ref(),this.state=3970,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.WHERE:this.state=3967,this.where_expr();break;case t.ON:this.state=3968,this.match(t.ON),this.state=3969,this.into_values_source();case t.EOF:case t.SEMICOLON:case t.END:case t.RETURNING:}this.state=3973,this.errorHandler.sync(this),e=this.tokenStream.LA(1),251===e&&(this.state=3972,this.returning_columns_list())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}update_stmt(){let e,s=new ao(this.context,this.state);this.enterRule(s,652,t.RULE_update_stmt);try{switch(this.enterOuterAlt(s,1),this.state=3975,this.match(t.UPDATE),this.state=3976,this.simple_table_ref(),this.state=3984,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.state=3977,this.match(t.SET),this.state=3978,this.set_clause_choice(),this.state=3980,this.errorHandler.sync(this),e=this.tokenStream.LA(1),313===e&&(this.state=3979,this.where_expr());break;case t.ON:this.state=3982,this.match(t.ON),this.state=3983,this.into_values_source();break;default:throw new ce(this)}this.state=3987,this.errorHandler.sync(this),e=this.tokenStream.LA(1),251===e&&(this.state=3986,this.returning_columns_list())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}set_clause_choice(){let e=new no(this.context,this.state);this.enterRule(e,654,t.RULE_set_clause_choice);try{switch(this.state=3991,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=3989,this.set_clause_list();break;case t.LPAREN:this.enterOuterAlt(e,2),this.state=3990,this.multiple_column_assignment();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}set_clause_list(){let e,s=new co(this.context,this.state);this.enterRule(s,656,t.RULE_set_clause_list);try{for(this.enterOuterAlt(s,1),this.state=3993,this.set_clause(),this.state=3998,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=3994,this.match(t.COMMA),this.state=3995,this.set_clause(),this.state=4e3,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}set_clause(){let e=new ho(this.context,this.state);this.enterRule(e,658,t.RULE_set_clause);try{this.enterOuterAlt(e,1),this.state=4001,this.set_target(),this.state=4002,this.match(t.EQUALS),this.state=4003,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}set_target(){let e=new oo(this.context,this.state);this.enterRule(e,660,t.RULE_set_target);try{this.enterOuterAlt(e,1),this.state=4005,this.column_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}multiple_column_assignment(){let e=new Eo(this.context,this.state);this.enterRule(e,662,t.RULE_multiple_column_assignment);try{this.enterOuterAlt(e,1),this.state=4007,this.set_target_list(),this.state=4008,this.match(t.EQUALS),this.state=4009,this.match(t.LPAREN),this.state=4010,this.simple_values_source(),this.state=4011,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}set_target_list(){let e,s=new lo(this.context,this.state);this.enterRule(s,664,t.RULE_set_target_list);try{for(this.enterOuterAlt(s,1),this.state=4013,this.match(t.LPAREN),this.state=4014,this.set_target(),this.state=4019,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4015,this.match(t.COMMA),this.state=4016,this.set_target(),this.state=4021,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4022,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_topic_stmt(){let e,s=new uo(this.context,this.state);this.enterRule(s,666,t.RULE_create_topic_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=4024,this.match(t.CREATE),this.state=4025,this.match(t.TOPIC),this.state=4029,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,432,this.context)))this.state=4026,this.match(t.IF),this.state=4027,this.match(t.NOT),this.state=4028,this.match(t.EXISTS);this.state=4031,this.topic_ref(),this.state=4033,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=4032,this.create_topic_entries()),this.state=4036,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=4035,this.with_topic_settings())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_topic_entries(){let e,s=new Ro(this.context,this.state);this.enterRule(s,668,t.RULE_create_topic_entries);try{for(this.enterOuterAlt(s,1),this.state=4038,this.match(t.LPAREN),this.state=4039,this.create_topic_entry(),this.state=4044,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4040,this.match(t.COMMA),this.state=4041,this.create_topic_entry(),this.state=4046,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4047,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}create_topic_entry(){let e=new _o(this.context,this.state);this.enterRule(e,670,t.RULE_create_topic_entry);try{this.enterOuterAlt(e,1),this.state=4049,this.topic_create_consumer_entry()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}with_topic_settings(){let e=new To(this.context,this.state);this.enterRule(e,672,t.RULE_with_topic_settings);try{this.enterOuterAlt(e,1),this.state=4051,this.match(t.WITH),this.state=4052,this.match(t.LPAREN),this.state=4053,this.topic_settings(),this.state=4054,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_stmt(){let e,s=new Ao(this.context,this.state);this.enterRule(s,674,t.RULE_alter_topic_stmt);try{if(this.enterOuterAlt(s,1),1===(this.state=4056,this.match(t.ALTER),this.state=4057,this.match(t.TOPIC),this.state=4060,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,436,this.context)))this.state=4058,this.match(t.IF),this.state=4059,this.match(t.EXISTS);for(this.state=4062,this.topic_ref(),this.state=4063,this.alter_topic_action(),this.state=4068,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4064,this.match(t.COMMA),this.state=4065,this.alter_topic_action(),this.state=4070,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_topic_action(){let e=new So(this.context,this.state);this.enterRule(e,676,t.RULE_alter_topic_action);try{switch(this.state=4076,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ADD:this.enterOuterAlt(e,1),this.state=4071,this.alter_topic_add_consumer();break;case t.ALTER:this.enterOuterAlt(e,2),this.state=4072,this.alter_topic_alter_consumer();break;case t.DROP:this.enterOuterAlt(e,3),this.state=4073,this.alter_topic_drop_consumer();break;case t.SET:this.enterOuterAlt(e,4),this.state=4074,this.alter_topic_set_settings();break;case t.RESET:this.enterOuterAlt(e,5),this.state=4075,this.alter_topic_reset_settings();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_add_consumer(){let e=new Lo(this.context,this.state);this.enterRule(e,678,t.RULE_alter_topic_add_consumer);try{this.enterOuterAlt(e,1),this.state=4078,this.match(t.ADD),this.state=4079,this.topic_create_consumer_entry()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_create_consumer_entry(){let e,s=new Co(this.context,this.state);this.enterRule(s,680,t.RULE_topic_create_consumer_entry);try{this.enterOuterAlt(s,1),this.state=4081,this.match(t.CONSUMER),this.state=4082,this.an_id(),this.state=4084,this.errorHandler.sync(this),e=this.tokenStream.LA(1),315===e&&(this.state=4083,this.topic_consumer_with_settings())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_topic_alter_consumer(){let e=new No(this.context,this.state);this.enterRule(e,682,t.RULE_alter_topic_alter_consumer);try{this.enterOuterAlt(e,1),this.state=4086,this.match(t.ALTER),this.state=4087,this.match(t.CONSUMER),this.state=4088,this.topic_consumer_ref(),this.state=4089,this.alter_topic_alter_consumer_entry()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_alter_consumer_entry(){let e=new Io(this.context,this.state);this.enterRule(e,684,t.RULE_alter_topic_alter_consumer_entry);try{switch(this.state=4093,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.SET:this.enterOuterAlt(e,1),this.state=4091,this.topic_alter_consumer_set();break;case t.RESET:this.enterOuterAlt(e,2),this.state=4092,this.topic_alter_consumer_reset();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_drop_consumer(){let e=new Oo(this.context,this.state);this.enterRule(e,686,t.RULE_alter_topic_drop_consumer);try{this.enterOuterAlt(e,1),this.state=4095,this.match(t.DROP),this.state=4096,this.match(t.CONSUMER),this.state=4097,this.topic_consumer_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_alter_consumer_set(){let e=new po(this.context,this.state);this.enterRule(e,688,t.RULE_topic_alter_consumer_set);try{this.enterOuterAlt(e,1),this.state=4099,this.match(t.SET),this.state=4100,this.match(t.LPAREN),this.state=4101,this.topic_consumer_settings(),this.state=4102,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_alter_consumer_reset(){let e,s=new go(this.context,this.state);this.enterRule(s,690,t.RULE_topic_alter_consumer_reset);try{for(this.enterOuterAlt(s,1),this.state=4104,this.match(t.RESET),this.state=4105,this.match(t.LPAREN),this.state=4106,this.an_id(),this.state=4111,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4107,this.match(t.COMMA),this.state=4108,this.an_id(),this.state=4113,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4114,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}alter_topic_set_settings(){let e=new mo(this.context,this.state);this.enterRule(e,692,t.RULE_alter_topic_set_settings);try{this.enterOuterAlt(e,1),this.state=4116,this.match(t.SET),this.state=4117,this.match(t.LPAREN),this.state=4118,this.topic_settings(),this.state=4119,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_topic_reset_settings(){let e,s=new xo(this.context,this.state);this.enterRule(s,694,t.RULE_alter_topic_reset_settings);try{for(this.enterOuterAlt(s,1),this.state=4121,this.match(t.RESET),this.state=4122,this.match(t.LPAREN),this.state=4123,this.an_id(),this.state=4128,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4124,this.match(t.COMMA),this.state=4125,this.an_id_pure(),this.state=4130,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4131,this.match(t.RPAREN)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}drop_topic_stmt(){let e=new Uo(this.context,this.state);this.enterRule(e,696,t.RULE_drop_topic_stmt);try{if(this.enterOuterAlt(e,1),1===(this.state=4133,this.match(t.DROP),this.state=4134,this.match(t.TOPIC),this.state=4137,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,443,this.context)))this.state=4135,this.match(t.IF),this.state=4136,this.match(t.EXISTS);this.state=4139,this.topic_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_settings(){let e,s=new fo(this.context,this.state);this.enterRule(s,698,t.RULE_topic_settings);try{for(this.enterOuterAlt(s,1),this.state=4141,this.topic_settings_entry(),this.state=4146,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4142,this.match(t.COMMA),this.state=4143,this.topic_settings_entry(),this.state=4148,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}topic_settings_entry(){let e=new Po(this.context,this.state);this.enterRule(e,700,t.RULE_topic_settings_entry);try{this.enterOuterAlt(e,1),this.state=4149,this.an_id(),this.state=4150,this.match(t.EQUALS),this.state=4151,this.topic_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_setting_value(){let e=new ko(this.context,this.state);this.enterRule(e,702,t.RULE_topic_setting_value);try{this.enterOuterAlt(e,1),this.state=4153,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_consumer_with_settings(){let e=new Mo(this.context,this.state);this.enterRule(e,704,t.RULE_topic_consumer_with_settings);try{this.enterOuterAlt(e,1),this.state=4155,this.match(t.WITH),this.state=4156,this.match(t.LPAREN),this.state=4157,this.topic_consumer_settings(),this.state=4158,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_consumer_settings(){let e,s=new Do(this.context,this.state);this.enterRule(s,706,t.RULE_topic_consumer_settings);try{for(this.enterOuterAlt(s,1),this.state=4160,this.topic_consumer_settings_entry(),this.state=4165,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4161,this.match(t.COMMA),this.state=4162,this.topic_consumer_settings_entry(),this.state=4167,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}topic_consumer_settings_entry(){let e=new yo(this.context,this.state);this.enterRule(e,708,t.RULE_topic_consumer_settings_entry);try{this.enterOuterAlt(e,1),this.state=4168,this.an_id(),this.state=4169,this.match(t.EQUALS),this.state=4170,this.topic_consumer_setting_value()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_consumer_setting_value(){let e=new vo(this.context,this.state);this.enterRule(e,710,t.RULE_topic_consumer_setting_value);try{this.enterOuterAlt(e,1),this.state=4172,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_ref(){let e=new bo(this.context,this.state);this.enterRule(e,712,t.RULE_topic_ref);try{if(this.enterOuterAlt(e,1),1===(this.state=4177,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,446,this.context)))this.state=4174,this.cluster_expr(),this.state=4175,this.match(t.DOT);this.state=4179,this.an_id()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}topic_consumer_ref(){let e=new Ho(this.context,this.state);this.enterRule(e,714,t.RULE_topic_consumer_ref);try{this.enterOuterAlt(e,1),this.state=4181,this.an_id_pure()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}null_treatment(){let e=new wo(this.context,this.state);this.enterRule(e,716,t.RULE_null_treatment);try{switch(this.state=4187,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.RESPECT:this.enterOuterAlt(e,1),this.state=4183,this.match(t.RESPECT),this.state=4184,this.match(t.NULLS);break;case t.IGNORE:this.enterOuterAlt(e,2),this.state=4185,this.match(t.IGNORE),this.state=4186,this.match(t.NULLS);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}filter_clause(){let e=new Fo(this.context,this.state);this.enterRule(e,718,t.RULE_filter_clause);try{this.enterOuterAlt(e,1),this.state=4189,this.match(t.FILTER),this.state=4190,this.match(t.LPAREN),this.state=4191,this.where_expr(),this.state=4192,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_name_or_specification(){let e=new Go(this.context,this.state);this.enterRule(e,720,t.RULE_window_name_or_specification);try{switch(this.state=4196,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4194,this.window_name();break;case t.LPAREN:this.enterOuterAlt(e,2),this.state=4195,this.window_specification();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_name(){let e=new Bo(this.context,this.state);this.enterRule(e,722,t.RULE_window_name);try{this.enterOuterAlt(e,1),this.state=4198,this.an_id_window()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_clause(){let e=new Yo(this.context,this.state);this.enterRule(e,724,t.RULE_window_clause);try{this.enterOuterAlt(e,1),this.state=4200,this.match(t.WINDOW),this.state=4201,this.window_definition_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_definition_list(){let e,s=new Vo(this.context,this.state);this.enterRule(s,726,t.RULE_window_definition_list);try{for(this.enterOuterAlt(s,1),this.state=4203,this.window_definition(),this.state=4208,this.errorHandler.sync(this),e=this.tokenStream.LA(1);25===e;)this.state=4204,this.match(t.COMMA),this.state=4205,this.window_definition(),this.state=4210,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}window_definition(){let e=new Wo(this.context,this.state);this.enterRule(e,728,t.RULE_window_definition);try{this.enterOuterAlt(e,1),this.state=4211,this.new_window_name(),this.state=4212,this.match(t.AS),this.state=4213,this.window_specification()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}new_window_name(){let e=new Xo(this.context,this.state);this.enterRule(e,730,t.RULE_new_window_name);try{this.enterOuterAlt(e,1),this.state=4215,this.window_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_specification(){let e=new Ko(this.context,this.state);this.enterRule(e,732,t.RULE_window_specification);try{this.enterOuterAlt(e,1),this.state=4217,this.match(t.LPAREN),this.state=4218,this.window_specification_details(),this.state=4219,this.match(t.RPAREN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_specification_details(){let e,s=new Qo(this.context,this.state);this.enterRule(s,734,t.RULE_window_specification_details);try{if(this.enterOuterAlt(s,1),1===(this.state=4222,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,450,this.context)))this.state=4221,this.existing_window_name();this.state=4225,this.errorHandler.sync(this),e=this.tokenStream.LA(1),216===e&&(this.state=4224,this.window_partition_clause()),this.state=4228,this.errorHandler.sync(this),e=this.tokenStream.LA(1),211===e&&(this.state=4227,this.window_order_clause()),this.state=4231,this.errorHandler.sync(this),e=this.tokenStream.LA(1),(150===e||233===e||259===e)&&(this.state=4230,this.window_frame_clause())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}existing_window_name(){let e=new qo(this.context,this.state);this.enterRule(e,736,t.RULE_existing_window_name);try{this.enterOuterAlt(e,1),this.state=4233,this.window_name()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_partition_clause(){let e,s=new jo(this.context,this.state);this.enterRule(s,738,t.RULE_window_partition_clause);try{this.enterOuterAlt(s,1),this.state=4235,this.match(t.PARTITION),this.state=4237,this.errorHandler.sync(this),e=this.tokenStream.LA(1),80===e&&(this.state=4236,this.match(t.COMPACT)),this.state=4239,this.match(t.BY),this.state=4240,this.named_expr_list()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}window_order_clause(){let e=new Jo(this.context,this.state);this.enterRule(e,740,t.RULE_window_order_clause);try{this.enterOuterAlt(e,1),this.state=4242,this.order_by_clause()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_frame_clause(){let e,s=new zo(this.context,this.state);this.enterRule(s,742,t.RULE_window_frame_clause);try{this.enterOuterAlt(s,1),this.state=4244,this.window_frame_units(),this.state=4245,this.window_frame_extent(),this.state=4247,this.errorHandler.sync(this),e=this.tokenStream.LA(1),125===e&&(this.state=4246,this.window_frame_exclusion())}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}window_frame_units(){let e,s=new Zo(this.context,this.state);this.enterRule(s,744,t.RULE_window_frame_units);try{this.enterOuterAlt(s,1),this.state=4249,e=this.tokenStream.LA(1),150===e||233===e||259===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}window_frame_extent(){let e=new $o(this.context,this.state);this.enterRule(e,746,t.RULE_window_frame_extent);try{switch(this.state=4253,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,456,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4251,this.window_frame_bound();break;case 2:this.enterOuterAlt(e,2),this.state=4252,this.window_frame_between()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_frame_between(){let e=new tE(this.context,this.state);this.enterRule(e,748,t.RULE_window_frame_between);try{this.enterOuterAlt(e,1),this.state=4255,this.match(t.BETWEEN),this.state=4256,this.window_frame_bound(),this.state=4257,this.match(t.AND),this.state=4258,this.window_frame_bound()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}window_frame_bound(){let e,s=new eE(this.context,this.state);this.enterRule(s,750,t.RULE_window_frame_bound);try{switch(this.state=4267,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,458,this.context)){case 1:this.enterOuterAlt(s,1),this.state=4260,this.match(t.CURRENT),this.state=4261,this.match(t.ROW);break;case 2:switch(this.enterOuterAlt(s,2),this.state=4264,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,457,this.context)){case 1:this.state=4262,this.expr();break;case 2:this.state=4263,this.match(t.UNBOUNDED)}this.state=4266,e=this.tokenStream.LA(1),139===e||226===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}window_frame_exclusion(){let e=new sE(this.context,this.state);this.enterRule(e,752,t.RULE_window_frame_exclusion);try{switch(this.state=4279,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,459,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4269,this.match(t.EXCLUDE),this.state=4270,this.match(t.CURRENT),this.state=4271,this.match(t.ROW);break;case 2:this.enterOuterAlt(e,2),this.state=4272,this.match(t.EXCLUDE),this.state=4273,this.match(t.GROUP);break;case 3:this.enterOuterAlt(e,3),this.state=4274,this.match(t.EXCLUDE),this.state=4275,this.match(t.TIES);break;case 4:this.enterOuterAlt(e,4),this.state=4276,this.match(t.EXCLUDE),this.state=4277,this.match(t.NO),this.state=4278,this.match(t.OTHERS)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}use_stmt(){let e=new rE(this.context,this.state);this.enterRule(e,754,t.RULE_use_stmt);try{this.enterOuterAlt(e,1),this.state=4281,this.match(t.USE),this.state=4282,this.cluster_expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}subselect_stmt(){let e=new iE(this.context,this.state);this.enterRule(e,756,t.RULE_subselect_stmt);try{switch(this.enterOuterAlt(e,1),this.state=4289,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.LPAREN:this.state=4284,this.match(t.LPAREN),this.state=4285,this.select_stmt(),this.state=4286,this.match(t.RPAREN);break;case t.DISCARD:case t.FROM:case t.PROCESS:case t.REDUCE:case t.SELECT:this.state=4288,this.select_unparenthesized_stmt();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}named_nodes_stmt(){let e=new aE(this.context,this.state);this.enterRule(e,758,t.RULE_named_nodes_stmt);try{switch(this.enterOuterAlt(e,1),this.state=4291,this.bind_parameter_list(),this.state=4292,this.match(t.EQUALS),this.state=4295,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,461,this.context)){case 1:this.state=4293,this.expr();break;case 2:this.state=4294,this.subselect_stmt()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}commit_stmt(){let e=new nE(this.context,this.state);this.enterRule(e,760,t.RULE_commit_stmt);try{this.enterOuterAlt(e,1),this.state=4297,this.match(t.COMMIT)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}rollback_stmt(){let e=new cE(this.context,this.state);this.enterRule(e,762,t.RULE_rollback_stmt);try{this.enterOuterAlt(e,1),this.state=4299,this.match(t.ROLLBACK)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}analyze_table(){let e,s=new hE(this.context,this.state);this.enterRule(s,764,t.RULE_analyze_table);try{this.enterOuterAlt(s,1),this.state=4301,this.simple_table_ref(),this.state=4306,this.errorHandler.sync(this),e=this.tokenStream.LA(1),26===e&&(this.state=4302,this.match(t.LPAREN),this.state=4303,this.column_list(),this.state=4304,this.match(t.RPAREN))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}analyze_table_list(){let e,s=new oE(this.context,this.state);this.enterRule(s,766,t.RULE_analyze_table_list);try{let r;for(this.enterOuterAlt(s,1),this.state=4308,this.analyze_table(),this.state=4313,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,463,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;)1===r&&(this.state=4309,this.match(t.COMMA),this.state=4310,this.analyze_table()),this.state=4315,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,463,this.context);this.state=4317,this.errorHandler.sync(this),e=this.tokenStream.LA(1),25===e&&(this.state=4316,this.match(t.COMMA))}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}analyze_stmt(){let e=new EE(this.context,this.state);this.enterRule(e,768,t.RULE_analyze_stmt);try{this.enterOuterAlt(e,1),this.state=4319,this.match(t.ANALYZE),this.state=4320,this.analyze_table_list()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}identifier(){let e,s=new lE(this.context,this.state);this.enterRule(s,770,t.RULE_identifier);try{this.enterOuterAlt(s,1),this.state=4322,e=this.tokenStream.LA(1),320===e||321===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}id(){let e=new uE(this.context,this.state);this.enterRule(e,772,t.RULE_id);try{switch(this.state=4326,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4324,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4325,this.keyword();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_schema(){let e=new RE(this.context,this.state);this.enterRule(e,774,t.RULE_id_schema);try{switch(this.state=4335,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4328,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4329,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,3),this.state=4330,this.keyword_expr_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,4),this.state=4331,this.keyword_select_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,5),this.state=4332,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,6),this.state=4333,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,7),this.state=4334,this.keyword_hint_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_expr(){let e=new _E(this.context,this.state);this.enterRule(e,776,t.RULE_id_expr);try{switch(this.state=4343,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4337,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4338,this.keyword_compat();break;case t.COLUMN:this.enterOuterAlt(e,3),this.state=4339,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,4),this.state=4340,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,5),this.state=4341,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,6),this.state=4342,this.keyword_hint_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_expr_in(){let e=new TE(this.context,this.state);this.enterRule(e,778,t.RULE_id_expr_in);try{switch(this.state=4350,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4345,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4346,this.keyword_compat();break;case t.COLUMN:this.enterOuterAlt(e,3),this.state=4347,this.keyword_alter_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,4),this.state=4348,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,5),this.state=4349,this.keyword_hint_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_window(){let e=new AE(this.context,this.state);this.enterRule(e,780,t.RULE_id_window);try{switch(this.state=4360,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4352,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4353,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,3),this.state=4354,this.keyword_expr_uncompat();break;case t.ANY:case t.ERASE:case t.STREAM:this.enterOuterAlt(e,4),this.state=4355,this.keyword_table_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,5),this.state=4356,this.keyword_select_uncompat();break;case t.COLUMN:this.enterOuterAlt(e,6),this.state=4357,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,7),this.state=4358,this.keyword_in_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,8),this.state=4359,this.keyword_hint_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_table(){let e=new SE(this.context,this.state);this.enterRule(e,782,t.RULE_id_table);try{switch(this.state=4369,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4362,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4363,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,3),this.state=4364,this.keyword_expr_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,4),this.state=4365,this.keyword_select_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,5),this.state=4366,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,6),this.state=4367,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,7),this.state=4368,this.keyword_hint_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_without(){let e=new dE(this.context,this.state);this.enterRule(e,784,t.RULE_id_without);try{switch(this.state=4378,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4371,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4372,this.keyword_compat();break;case t.ANY:case t.ERASE:case t.STREAM:this.enterOuterAlt(e,3),this.state=4373,this.keyword_table_uncompat();break;case t.COLUMN:this.enterOuterAlt(e,4),this.state=4374,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,5),this.state=4375,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,6),this.state=4376,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,7),this.state=4377,this.keyword_hint_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_hint(){let e=new LE(this.context,this.state);this.enterRule(e,786,t.RULE_id_hint);try{switch(this.state=4388,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4380,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4381,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,3),this.state=4382,this.keyword_expr_uncompat();break;case t.ANY:case t.ERASE:case t.STREAM:this.enterOuterAlt(e,4),this.state=4383,this.keyword_table_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,5),this.state=4384,this.keyword_select_uncompat();break;case t.COLUMN:this.enterOuterAlt(e,6),this.state=4385,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,7),this.state=4386,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,8),this.state=4387,this.keyword_window_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_as_compat(){let e=new CE(this.context,this.state);this.enterRule(e,788,t.RULE_id_as_compat);try{switch(this.state=4392,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4390,this.identifier();break;case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.LAST:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NEXT:case t.NO:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.OTHERS:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.REVERT:case t.REVOKE:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.VACUUM:case t.VALUES:case t.VIRTUAL:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,2),this.state=4391,this.keyword_as_compat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id(){let e=new NE(this.context,this.state);this.enterRule(e,790,t.RULE_an_id);try{switch(this.state=4396,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4394,this.id();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4395,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_or_type(){let e=new IE(this.context,this.state);this.enterRule(e,792,t.RULE_an_id_or_type);try{switch(this.state=4400,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CALLABLE:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DICT:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ENUM:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FLOW:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LIST:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OPTIONAL:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESOURCE:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SET:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.STRUCT:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TAGGED:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TUPLE:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VARIANT:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4398,this.id_or_type();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4399,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_schema(){let e=new OE(this.context,this.state);this.enterRule(e,794,t.RULE_an_id_schema);try{switch(this.state=4404,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4402,this.id_schema();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4403,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_expr(){let e=new pE(this.context,this.state);this.enterRule(e,796,t.RULE_an_id_expr);try{switch(this.state=4408,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4406,this.id_expr();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4407,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_expr_in(){let e=new gE(this.context,this.state);this.enterRule(e,798,t.RULE_an_id_expr_in);try{switch(this.state=4412,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4410,this.id_expr_in();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4411,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_window(){let e=new mE(this.context,this.state);this.enterRule(e,800,t.RULE_an_id_window);try{switch(this.state=4416,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4414,this.id_window();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4415,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_table(){let e=new xE(this.context,this.state);this.enterRule(e,802,t.RULE_an_id_table);try{switch(this.state=4420,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4418,this.id_table();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4419,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_without(){let e=new UE(this.context,this.state);this.enterRule(e,804,t.RULE_an_id_without);try{switch(this.state=4424,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4422,this.id_without();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4423,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_hint(){let e=new fE(this.context,this.state);this.enterRule(e,806,t.RULE_an_id_hint);try{switch(this.state=4428,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4426,this.id_hint();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4427,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_pure(){let e=new PE(this.context,this.state);this.enterRule(e,808,t.RULE_an_id_pure);try{switch(this.state=4432,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4430,this.identifier();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4431,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}an_id_as_compat(){let e=new kE(this.context,this.state);this.enterRule(e,810,t.RULE_an_id_as_compat);try{switch(this.state=4436,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.LAST:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NEXT:case t.NO:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.OTHERS:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.REVERT:case t.REVOKE:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.VACUUM:case t.VALUES:case t.VIRTUAL:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4434,this.id_as_compat();break;case t.STRING_VALUE:this.enterOuterAlt(e,2),this.state=4435,this.match(t.STRING_VALUE);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}view_name(){let e=new ME(this.context,this.state);this.enterRule(e,812,t.RULE_view_name);try{switch(this.state=4441,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,485,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4438,this.an_id();break;case 2:this.enterOuterAlt(e,2),this.state=4439,this.match(t.PRIMARY),this.state=4440,this.match(t.KEY)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}opt_id_prefix(){let e=new DE(this.context,this.state);this.enterRule(e,814,t.RULE_opt_id_prefix);try{if(1===(this.enterOuterAlt(e,1),this.state=4446,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,486,this.context)))this.state=4443,this.an_id(),this.state=4444,this.match(t.DOT)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}cluster_expr(){let e=new yE(this.context,this.state);this.enterRule(e,816,t.RULE_cluster_expr);try{if(this.enterOuterAlt(e,1),1===(this.state=4451,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,487,this.context)))this.state=4448,this.an_id(),this.state=4449,this.match(t.COLON);switch(this.state=4455,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.DOLLAR:case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.state=4453,this.pure_column_or_named();break;case t.ASTERISK:this.state=4454,this.match(t.ASTERISK);break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_or_type(){let e=new vE(this.context,this.state);this.enterRule(e,818,t.RULE_id_or_type);try{switch(this.state=4459,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ANY:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMN:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERASE:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.STREAM:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4457,this.id();break;case t.CALLABLE:case t.DICT:case t.ENUM:case t.FLOW:case t.LIST:case t.OPTIONAL:case t.RESOURCE:case t.SET:case t.STRUCT:case t.TAGGED:case t.TUPLE:case t.VARIANT:this.enterOuterAlt(e,2),this.state=4458,this.type_id();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}opt_id_prefix_or_type(){let e=new bE(this.context,this.state);this.enterRule(e,820,t.RULE_opt_id_prefix_or_type);try{if(1===(this.enterOuterAlt(e,1),this.state=4464,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,490,this.context)))this.state=4461,this.an_id_or_type(),this.state=4462,this.match(t.DOT)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_or_at(){let e,s=new HE(this.context,this.state);this.enterRule(s,822,t.RULE_id_or_at);try{this.enterOuterAlt(s,1),this.state=4467,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=4466,this.match(t.COMMAT)),this.state=4469,this.an_id_or_type()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}id_table_or_type(){let e=new wE(this.context,this.state);this.enterRule(e,824,t.RULE_id_table_or_type);try{switch(this.state=4473,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALL:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.AS:case t.ASC:case t.ASSUME:case t.ASYMMETRIC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BETWEEN:case t.BITCAST:case t.BY:case t.CASCADE:case t.CASE:case t.CAST:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COLUMNS:case t.COMMIT:case t.COMPACT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CUBE:case t.CURRENT:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DISTINCT:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.EMPTY_ACTION:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCEPT:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXISTS:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FROM:case t.FULL:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.GROUPS:case t.HASH:case t.HAVING:case t.HOP:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTERSECT:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.LIMIT:case t.LOCAL:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOT:case t.NOTNULL:case t.NULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.PROCESS:case t.QUEUE:case t.RAISE:case t.RANGE:case t.REDUCE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.RETURN:case t.RETURNING:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROLLUP:case t.ROW:case t.ROWS:case t.SAMPLE:case t.SAVEPOINT:case t.SCHEMA:case t.SECONDS:case t.SEEK:case t.SELECT:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYMMETRIC:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNBOUNDED:case t.UNCONDITIONAL:case t.UNION:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WHEN:case t.WHERE:case t.WINDOW:case t.WITH:case t.WITHOUT:case t.WRAPPER:case t.XOR:case t.STRING_VALUE:case t.ID_PLAIN:case t.ID_QUOTED:this.enterOuterAlt(e,1),this.state=4471,this.an_id_table();break;case t.CALLABLE:case t.DICT:case t.ENUM:case t.FLOW:case t.LIST:case t.OPTIONAL:case t.RESOURCE:case t.SET:case t.STRUCT:case t.TAGGED:case t.TUPLE:case t.VARIANT:this.enterOuterAlt(e,2),this.state=4472,this.type_id();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}id_table_or_at(){let e,s=new FE(this.context,this.state);this.enterRule(s,826,t.RULE_id_table_or_at);try{this.enterOuterAlt(s,1),this.state=4476,this.errorHandler.sync(this),e=this.tokenStream.LA(1),30===e&&(this.state=4475,this.match(t.COMMAT)),this.state=4478,this.id_table_or_type()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}keyword(){let e=new GE(this.context,this.state);this.enterRule(e,828,t.RULE_keyword);try{switch(this.state=4488,this.errorHandler.sync(this),this.tokenStream.LA(1)){case t.ABORT:case t.ACTION:case t.ADD:case t.AFTER:case t.ALTER:case t.ANALYZE:case t.AND:case t.ANSI:case t.ARRAY:case t.ASC:case t.ASYNC:case t.AT:case t.ATTACH:case t.ATTRIBUTES:case t.AUTOINCREMENT:case t.BACKUP:case t.COLLECTION:case t.BEFORE:case t.BEGIN:case t.BERNOULLI:case t.BY:case t.CASCADE:case t.CHANGEFEED:case t.CHECK:case t.CLASSIFIER:case t.COLLATE:case t.COMMIT:case t.CONDITIONAL:case t.CONFLICT:case t.CONNECT:case t.CONSTRAINT:case t.CONSUMER:case t.COVER:case t.CREATE:case t.CROSS:case t.CURRENT:case t.DATA:case t.DATABASE:case t.DECIMAL:case t.DECLARE:case t.DEFAULT:case t.DEFERRABLE:case t.DEFERRED:case t.DEFINE:case t.DELETE:case t.DESC:case t.DESCRIBE:case t.DETACH:case t.DIRECTORY:case t.DISABLE:case t.DISCARD:case t.DO:case t.DROP:case t.EACH:case t.ELSE:case t.EMPTY:case t.ENCRYPTED:case t.END:case t.ERROR:case t.ESCAPE:case t.EVALUATE:case t.EXCLUDE:case t.EXCLUSION:case t.EXCLUSIVE:case t.EXPLAIN:case t.EXPORT:case t.EXTERNAL:case t.FAIL:case t.FAMILY:case t.FILTER:case t.FIRST:case t.FLATTEN:case t.FOLLOWING:case t.FOR:case t.FOREIGN:case t.FUNCTION:case t.GLOB:case t.GRANT:case t.GROUP:case t.GROUPING:case t.HASH:case t.IF:case t.IGNORE:case t.ILIKE:case t.IMMEDIATE:case t.IMPORT:case t.IN:case t.INCREMENTAL:case t.INDEX:case t.INDEXED:case t.INHERITS:case t.INITIAL:case t.INITIALLY:case t.INNER:case t.INSERT:case t.INSTEAD:case t.INTO:case t.IS:case t.ISNULL:case t.JOIN:case t.KEY:case t.LAST:case t.LEFT:case t.LEGACY:case t.LIKE:case t.MANAGE:case t.MATCH:case t.MATCHES:case t.MATCH_RECOGNIZE:case t.MEASURES:case t.MICROSECONDS:case t.MILLISECONDS:case t.MODIFY:case t.NANOSECONDS:case t.NATURAL:case t.NEXT:case t.NO:case t.NOTNULL:case t.NULLS:case t.OBJECT:case t.OF:case t.OFFSET:case t.OMIT:case t.ON:case t.ONE:case t.ONLY:case t.OPTION:case t.OR:case t.ORDER:case t.OTHERS:case t.OUTER:case t.OVER:case t.PARALLEL:case t.PARTITION:case t.PASSING:case t.PASSWORD:case t.PAST:case t.PATTERN:case t.PER:case t.PERMUTE:case t.PLAN:case t.POOL:case t.PRAGMA:case t.PRECEDING:case t.PRESORT:case t.PRIMARY:case t.PRIVILEGES:case t.QUEUE:case t.RAISE:case t.REFERENCES:case t.REGEXP:case t.REINDEX:case t.RELEASE:case t.REMOVE:case t.RENAME:case t.REPLACE:case t.REPLICATION:case t.RESET:case t.RESPECT:case t.RESTORE:case t.RESTRICT:case t.RESULT:case t.REVERT:case t.REVOKE:case t.RIGHT:case t.RLIKE:case t.ROLLBACK:case t.ROW:case t.SAMPLE:case t.SAVEPOINT:case t.SECONDS:case t.SEEK:case t.SEMI:case t.SETS:case t.SHOW:case t.TSKIP:case t.SOURCE:case t.SUBQUERY:case t.SUBSET:case t.SYMBOLS:case t.SYNC:case t.SYSTEM:case t.TABLE:case t.TABLES:case t.TABLESAMPLE:case t.TABLESTORE:case t.TEMP:case t.TEMPORARY:case t.THEN:case t.TIES:case t.TO:case t.TOPIC:case t.TRANSACTION:case t.TRIGGER:case t.TYPE:case t.UNCONDITIONAL:case t.UNIQUE:case t.UNKNOWN:case t.UNMATCHED:case t.UPDATE:case t.UPSERT:case t.USE:case t.USER:case t.USING:case t.VACUUM:case t.VALUES:case t.VIEW:case t.VIRTUAL:case t.WITH:case t.WRAPPER:case t.XOR:this.enterOuterAlt(e,1),this.state=4480,this.keyword_compat();break;case t.ASYMMETRIC:case t.BETWEEN:case t.BITCAST:case t.CASE:case t.CAST:case t.CUBE:case t.CURRENT_DATE:case t.CURRENT_TIME:case t.CURRENT_TIMESTAMP:case t.EMPTY_ACTION:case t.EXISTS:case t.FROM:case t.FULL:case t.HOP:case t.JSON_EXISTS:case t.JSON_QUERY:case t.JSON_VALUE:case t.LOCAL:case t.NOT:case t.NULL:case t.PROCESS:case t.REDUCE:case t.RETURN:case t.RETURNING:case t.ROLLUP:case t.SELECT:case t.SYMMETRIC:case t.UNBOUNDED:case t.WHEN:case t.WHERE:this.enterOuterAlt(e,2),this.state=4481,this.keyword_expr_uncompat();break;case t.ANY:case t.ERASE:case t.STREAM:this.enterOuterAlt(e,3),this.state=4482,this.keyword_table_uncompat();break;case t.ALL:case t.AS:case t.ASSUME:case t.DISTINCT:case t.EXCEPT:case t.HAVING:case t.INTERSECT:case t.LIMIT:case t.UNION:case t.WINDOW:case t.WITHOUT:this.enterOuterAlt(e,4),this.state=4483,this.keyword_select_uncompat();break;case t.COLUMN:this.enterOuterAlt(e,5),this.state=4484,this.keyword_alter_uncompat();break;case t.COMPACT:this.enterOuterAlt(e,6),this.state=4485,this.keyword_in_uncompat();break;case t.GROUPS:case t.RANGE:case t.ROWS:this.enterOuterAlt(e,7),this.state=4486,this.keyword_window_uncompat();break;case t.COLUMNS:case t.SCHEMA:this.enterOuterAlt(e,8),this.state=4487,this.keyword_hint_uncompat();break;default:throw new ce(this)}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}keyword_expr_uncompat(){let e,s=new BE(this.context,this.state);this.enterRule(s,830,t.RULE_keyword_expr_uncompat);try{this.enterOuterAlt(s,1),this.state=4490,e=this.tokenStream.LA(1),!(e-54&-32)&&1<<e-54&405505||!(e-89&-32)&&1<<e-89&134217757||!(e-128&-32)&&1<<e-128&33603585||!(e-174&-32)&&1<<e-174&41944071||!(e-230&-32)&&1<<e-230&137363473||!(e-265&-32)&&1<<e-265&2147487745||312===e||313===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}keyword_table_uncompat(){let e,s=new YE(this.context,this.state);this.enterRule(s,832,t.RULE_keyword_table_uncompat);try{this.enterOuterAlt(s,1),this.state=4492,e=this.tokenStream.LA(1),49===e||120===e||272===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}keyword_select_uncompat(){let e,s=new VE(this.context,this.state);this.enterRule(s,834,t.RULE_keyword_select_uncompat);try{this.enterOuterAlt(s,1),this.state=4494,e=this.tokenStream.LA(1),!(e-44&-32)&&1<<e-44&641||110===e||124===e||!(e-152&-32)&&1<<e-152&1073872897||!(e-298&-32)&&1<<e-298&327681?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}keyword_alter_uncompat(){let e=new WE(this.context,this.state);this.enterRule(e,836,t.RULE_keyword_alter_uncompat);try{this.enterOuterAlt(e,1),this.state=4496,this.match(t.COLUMN)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}keyword_in_uncompat(){let e=new XE(this.context,this.state);this.enterRule(e,838,t.RULE_keyword_in_uncompat);try{this.enterOuterAlt(e,1),this.state=4498,this.match(t.COMPACT)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}keyword_window_uncompat(){let e,s=new KE(this.context,this.state);this.enterRule(s,840,t.RULE_keyword_window_uncompat);try{this.enterOuterAlt(s,1),this.state=4500,e=this.tokenStream.LA(1),150===e||233===e||259===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}keyword_hint_uncompat(){let e,s=new QE(this.context,this.state);this.enterRule(s,842,t.RULE_keyword_hint_uncompat);try{this.enterOuterAlt(s,1),this.state=4502,e=this.tokenStream.LA(1),78===e||262===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}keyword_as_compat(){let e,s=new qE(this.context,this.state);this.enterRule(s,844,t.RULE_keyword_as_compat);try{this.enterOuterAlt(s,1),this.state=4504,e=this.tokenStream.LA(1),!(e-40&-32)&&1<<e-40&1408210415||!(e-73&-32)&&1<<e-73&4024598343||!(e-105&-32)&&1<<e-105&4015470493||!(e-137&-32)&&1<<e-137&3757989277||!(e-170&-32)&&1<<e-170&3338636547||!(e-202&-32)&&1<<e-202&1845486967||!(e-235&-32)&&1<<e-235&884358079||!(e-268&-32)&&1<<e-268&2852060623||!(e-300&-32)&&1<<e-300&395711?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}keyword_compat(){let e,s=new jE(this.context,this.state);this.enterRule(s,846,t.RULE_keyword_compat);try{this.enterOuterAlt(s,1),this.state=4506,e=this.tokenStream.LA(1),!(e-40&-32)&&1<<e-40&1408210415||!(e-73&-32)&&1<<e-73&4293066575||!(e-105&-32)&&1<<e-105&4017567709||!(e-137&-32)&&1<<e-137&4294860189||!(e-170&-32)&&1<<e-170&3623849871||!(e-202&-32)&&1<<e-202&1879048063||!(e-235&-32)&&1<<e-235&3065936831||!(e-268&-32)&&1<<e-268&2852060623||!(e-300&-32)&&1<<e-300&429567?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}type_id(){let e,s=new JE(this.context,this.state);this.enterRule(s,848,t.RULE_type_id);try{this.enterOuterAlt(s,1),this.state=4508,e=this.tokenStream.LA(1),69===e||106===e||119===e||138===e||183===e||209===e||!(e-245&-32)&&1<<e-245&272629761||!(e-284&-32)&&1<<e-284&33555457?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}bool_value(){let e,s=new zE(this.context,this.state);this.enterRule(s,850,t.RULE_bool_value);try{this.enterOuterAlt(s,1),this.state=4510,e=this.tokenStream.LA(1),133===e||293===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}real(){let e=new ZE(this.context,this.state);this.enterRule(e,852,t.RULE_real);try{this.enterOuterAlt(e,1),this.state=4512,this.match(t.REAL)}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}integer(){let e,s=new $E(this.context,this.state);this.enterRule(s,854,t.RULE_integer);try{this.enterOuterAlt(s,1),this.state=4514,e=this.tokenStream.LA(1),322===e||323===e?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}sql_query_yq(){let e=new tl(this.context,this.state);this.enterRule(e,856,t.RULE_sql_query_yq);try{switch(this.state=4521,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,495,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4516,this.sql_stmt_list_yq();break;case 2:this.enterOuterAlt(e,2),this.state=4517,this.match(t.PRAGMA),this.state=4518,this.match(t.ANSI),this.state=4519,this.match(t.DIGITS),this.state=4520,this.ansi_sql_stmt_list()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}sql_stmt_list_yq(){let e,s=new el(this.context,this.state);this.enterRule(s,858,t.RULE_sql_stmt_list_yq);try{let r;for(this.enterOuterAlt(s,1),this.state=4526,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=4523,this.match(t.SEMICOLON),this.state=4528,this.errorHandler.sync(this),e=this.tokenStream.LA(1);for(this.state=4529,this.sql_stmt_yq(),this.state=4538,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,498,this.context);2!==r&&r!==z.INVALID_ALT_NUMBER;){if(1===r){this.state=4531,this.errorHandler.sync(this),e=this.tokenStream.LA(1);do{this.state=4530,this.match(t.SEMICOLON),this.state=4533,this.errorHandler.sync(this),e=this.tokenStream.LA(1)}while(23===e);this.state=4535,this.sql_stmt_yq()}this.state=4540,this.errorHandler.sync(this),r=this.interpreter.adaptivePredict(this.tokenStream,498,this.context)}for(this.state=4544,this.errorHandler.sync(this),e=this.tokenStream.LA(1);23===e;)this.state=4541,this.match(t.SEMICOLON),this.state=4546,this.errorHandler.sync(this),e=this.tokenStream.LA(1);this.state=4547,this.match(t.EOF)}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}sql_stmt_yq(){let e,s=new sl(this.context,this.state);this.enterRule(s,860,t.RULE_sql_stmt_yq);try{this.enterOuterAlt(s,1),this.state=4554,this.errorHandler.sync(this),e=this.tokenStream.LA(1),129===e&&(this.state=4549,this.match(t.EXPLAIN),this.state=4552,this.errorHandler.sync(this),e=this.tokenStream.LA(1),1===e&&(this.state=4550,this.match(t.QUERY),this.state=4551,this.match(t.PLAN))),this.state=4556,this.sql_stmt_core_yq()}catch(r){if(!(r instanceof Jt))throw r;this.errorHandler.reportError(this,r),this.errorHandler.recover(this,r)}finally{this.exitRule()}return s}sql_stmt_core_yq(){let e=new rl(this.context,this.state);this.enterRule(e,862,t.RULE_sql_stmt_core_yq);try{switch(this.state=4571,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,502,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4558,this.pragma_stmt();break;case 2:this.enterOuterAlt(e,2),this.state=4559,this.select_stmt();break;case 3:this.enterOuterAlt(e,3),this.state=4560,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(e,4),this.state=4561,this.use_stmt();break;case 5:this.enterOuterAlt(e,5),this.state=4562,this.into_table_stmt_yq();break;case 6:this.enterOuterAlt(e,6),this.state=4563,this.declare_stmt();break;case 7:this.enterOuterAlt(e,7),this.state=4564,this.import_stmt();break;case 8:this.enterOuterAlt(e,8),this.state=4565,this.export_stmt();break;case 9:this.enterOuterAlt(e,9),this.state=4566,this.do_stmt();break;case 10:this.enterOuterAlt(e,10),this.state=4567,this.define_action_or_subquery_stmt();break;case 11:this.enterOuterAlt(e,11),this.state=4568,this.if_stmt();break;case 12:this.enterOuterAlt(e,12),this.state=4569,this.for_stmt();break;case 13:this.enterOuterAlt(e,13),this.state=4570,this.values_stmt()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}replication_name(){let e=new il(this.context,this.state);this.enterRule(e,864,t.RULE_replication_name);try{this.enterOuterAlt(e,1),this.state=4573,this.match(t.AS),this.state=4574,this.object_ref()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}where_expr(){let e=new al(this.context,this.state);this.enterRule(e,866,t.RULE_where_expr);try{this.enterOuterAlt(e,1),this.state=4576,this.match(t.WHERE),this.state=4577,this.expr()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}from_stmt(){let e=new nl(this.context,this.state);this.enterRule(e,868,t.RULE_from_stmt);try{this.enterOuterAlt(e,1),this.state=4579,this.match(t.FROM),this.state=4580,this.join_source()}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}alter_table_for_autocomplete(){let e=new cl(this.context,this.state);this.enterRule(e,870,t.RULE_alter_table_for_autocomplete);try{switch(this.state=4584,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,503,this.context)){case 1:this.enterOuterAlt(e,1),this.state=4582,this.alter_table_stmt();break;case 2:this.enterOuterAlt(e,2),this.state=4583,this.alter_table_store_stmt()}}catch(s){if(!(s instanceof Jt))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return e}static{this._serializedATN=[4,1,332,4587,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,2,380,7,380,2,381,7,381,2,382,7,382,2,383,7,383,2,384,7,384,2,385,7,385,2,386,7,386,2,387,7,387,2,388,7,388,2,389,7,389,2,390,7,390,2,391,7,391,2,392,7,392,2,393,7,393,2,394,7,394,2,395,7,395,2,396,7,396,2,397,7,397,2,398,7,398,2,399,7,399,2,400,7,400,2,401,7,401,2,402,7,402,2,403,7,403,2,404,7,404,2,405,7,405,2,406,7,406,2,407,7,407,2,408,7,408,2,409,7,409,2,410,7,410,2,411,7,411,2,412,7,412,2,413,7,413,2,414,7,414,2,415,7,415,2,416,7,416,2,417,7,417,2,418,7,418,2,419,7,419,2,420,7,420,2,421,7,421,2,422,7,422,2,423,7,423,2,424,7,424,2,425,7,425,2,426,7,426,2,427,7,427,2,428,7,428,2,429,7,429,2,430,7,430,2,431,7,431,2,432,7,432,2,433,7,433,2,434,7,434,2,435,7,435,1,0,1,0,1,0,1,0,1,0,3,0,878,8,0,1,1,5,1,881,8,1,10,1,12,1,884,9,1,1,1,1,1,4,1,888,8,1,11,1,12,1,889,1,1,5,1,893,8,1,10,1,12,1,896,9,1,1,1,5,1,899,8,1,10,1,12,1,902,9,1,1,1,1,1,1,2,5,2,907,8,2,10,2,12,2,910,9,2,1,2,1,2,1,3,5,3,915,8,3,10,3,12,3,918,9,3,1,3,1,3,4,3,922,8,3,11,3,12,3,923,5,3,926,8,3,10,3,12,3,929,9,3,1,3,1,3,1,3,5,3,934,8,3,10,3,12,3,937,9,3,1,4,1,4,3,4,941,8,4,1,5,1,5,1,5,3,5,946,8,5,3,5,948,8,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,3,6,1008,8,6,1,7,1,7,1,7,5,7,1013,8,7,10,7,12,7,1016,9,7,1,7,3,7,1019,8,7,1,8,1,8,1,8,5,8,1024,8,8,10,8,12,8,1027,9,8,1,9,1,9,1,9,5,9,1032,8,9,10,9,12,9,1035,9,9,1,10,1,10,3,10,1039,8,10,1,11,1,11,3,11,1043,8,11,1,11,1,11,1,11,1,12,3,12,1049,8,12,1,12,1,12,1,12,1,12,3,12,1055,8,12,1,12,3,12,1058,8,12,1,12,1,12,3,12,1062,8,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1070,8,12,1,12,1,12,3,12,1074,8,12,1,12,3,12,1077,8,12,1,12,1,12,3,12,1081,8,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1092,8,12,1,12,4,12,1095,8,12,11,12,12,12,1096,3,12,1099,8,12,1,13,1,13,1,14,1,14,1,14,5,14,1106,8,14,10,14,12,14,1109,9,14,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,1129,8,18,1,18,5,18,1132,8,18,10,18,12,18,1135,9,18,1,18,1,18,1,18,1,18,4,18,1141,8,18,11,18,12,18,1142,3,18,1145,8,18,1,19,1,19,1,19,5,19,1150,8,19,10,19,12,19,1153,9,19,1,20,1,20,1,20,5,20,1158,8,20,10,20,12,20,1161,9,20,1,21,1,21,1,21,5,21,1166,8,21,10,21,12,21,1169,9,21,1,22,1,22,1,22,1,22,3,22,1175,8,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,3,24,1185,8,24,3,24,1187,8,24,5,24,1189,8,24,10,24,12,24,1192,9,24,1,24,1,24,3,24,1196,8,24,1,25,1,25,3,25,1200,8,25,1,25,1,25,1,26,1,26,3,26,1206,8,26,1,26,1,26,1,27,1,27,3,27,1212,8,27,1,28,1,28,3,28,1216,8,28,1,29,1,29,3,29,1220,8,29,1,29,3,29,1223,8,29,1,29,1,29,1,30,1,30,1,30,3,30,1230,8,30,1,30,1,30,1,30,1,30,3,30,1236,8,30,5,30,1238,8,30,10,30,12,30,1241,9,30,1,31,1,31,3,31,1245,8,31,1,31,3,31,1248,8,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,5,32,1260,8,32,10,32,12,32,1263,9,32,1,33,1,33,3,33,1267,8,33,1,33,3,33,1270,8,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,3,34,1284,8,34,1,34,1,34,1,34,1,34,1,34,3,34,1291,8,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1302,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1313,8,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,3,38,1333,8,38,1,38,1,38,1,39,1,39,3,39,1339,8,39,1,39,4,39,1342,8,39,11,39,12,39,1343,1,39,1,39,3,39,1348,8,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,3,40,1362,8,40,3,40,1364,8,40,1,41,1,41,1,42,1,42,1,42,3,42,1371,8,42,1,43,1,43,1,44,1,44,3,44,1377,8,44,1,45,1,45,1,45,1,45,1,46,1,46,1,46,5,46,1386,8,46,10,46,12,46,1389,9,46,1,47,1,47,1,47,1,47,1,47,3,47,1396,8,47,1,48,1,48,1,48,1,48,3,48,1402,8,48,1,49,1,49,1,49,1,49,1,49,3,49,1409,8,49,1,49,1,49,1,49,1,49,5,49,1415,8,49,10,49,12,49,1418,9,49,1,49,1,49,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,3,51,1430,8,51,1,51,1,51,1,52,1,52,3,52,1436,8,52,1,52,1,52,3,52,1440,8,52,1,52,3,52,1443,8,52,3,52,1445,8,52,1,53,1,53,1,53,1,53,1,53,1,53,3,53,1453,8,53,1,54,1,54,1,54,1,54,1,54,1,54,3,54,1461,8,54,1,54,1,54,1,54,1,54,3,54,1467,8,54,1,54,1,54,1,54,1,54,3,54,1473,8,54,1,54,1,54,1,55,1,55,3,55,1479,8,55,1,55,3,55,1482,8,55,1,55,1,55,1,56,1,56,1,56,5,56,1489,8,56,10,56,12,56,1492,9,56,1,57,1,57,1,57,1,57,5,57,1498,8,57,10,57,12,57,1501,9,57,1,57,1,57,1,58,1,58,3,58,1507,8,58,1,59,1,59,1,59,1,59,5,59,1513,8,59,10,59,12,59,1516,9,59,1,59,1,59,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,3,61,1528,8,61,1,62,1,62,1,62,5,62,1533,8,62,10,62,12,62,1536,9,62,1,62,3,62,1539,8,62,1,63,1,63,1,63,5,63,1544,8,63,10,63,12,63,1547,9,63,1,63,3,63,1550,8,63,1,64,1,64,1,64,3,64,1555,8,64,1,65,1,65,1,65,5,65,1560,8,65,10,65,12,65,1563,9,65,1,66,1,66,1,66,1,66,3,66,1569,8,66,1,66,3,66,1572,8,66,1,66,1,66,1,66,1,67,1,67,3,67,1579,8,67,1,67,1,67,3,67,1583,8,67,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,3,68,1593,8,68,1,68,1,68,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,1616,8,71,1,72,1,72,1,72,1,72,3,72,1622,8,72,1,73,1,73,3,73,1626,8,73,1,74,1,74,1,74,5,74,1631,8,74,10,74,12,74,1634,9,74,1,75,1,75,1,75,3,75,1639,8,75,1,76,1,76,1,76,5,76,1644,8,76,10,76,12,76,1647,9,76,1,77,3,77,1650,8,77,1,77,1,77,3,77,1654,8,77,1,78,1,78,1,79,1,79,3,79,1660,8,79,1,80,1,80,1,80,3,80,1665,8,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,3,82,1674,8,82,1,82,3,82,1677,8,82,1,82,1,82,1,82,1,82,3,82,1683,8,82,1,83,1,83,1,83,3,83,1688,8,83,1,83,1,83,1,84,1,84,1,84,1,84,3,84,1696,8,84,1,85,1,85,1,85,5,85,1701,8,85,10,85,12,85,1704,9,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,5,88,1723,8,88,10,88,12,88,1726,9,88,1,88,3,88,1729,8,88,3,88,1731,8,88,1,88,1,88,3,88,1735,8,88,1,89,1,89,1,89,1,89,1,89,5,89,1742,8,89,10,89,12,89,1745,9,89,1,89,3,89,1748,8,89,3,89,1750,8,89,1,89,1,89,3,89,1754,8,89,1,90,1,90,1,90,1,90,1,90,5,90,1761,8,90,10,90,12,90,1764,9,90,1,90,3,90,1767,8,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,5,96,1803,8,96,10,96,12,96,1806,9,96,1,96,3,96,1809,8,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,3,99,1829,8,99,1,99,3,99,1832,8,99,1,99,1,99,1,99,1,99,3,99,1838,8,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,1858,8,100,1,100,5,100,1861,8,100,10,100,12,100,1864,9,100,1,101,1,101,1,101,3,101,1869,8,101,1,101,5,101,1872,8,101,10,101,12,101,1875,9,101,3,101,1877,8,101,1,102,1,102,3,102,1881,8,102,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,3,104,1908,8,104,1,105,1,105,1,105,1,105,1,105,1,105,3,105,1916,8,105,1,106,3,106,1919,8,106,1,106,1,106,1,106,5,106,1924,8,106,10,106,12,106,1927,9,106,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,109,1,109,3,109,1939,8,109,1,109,1,109,3,109,1943,8,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,3,111,1955,8,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,5,112,1966,8,112,10,112,12,112,1969,9,112,1,112,1,112,3,112,1973,8,112,1,113,1,113,1,113,1,113,1,113,3,113,1980,8,113,1,114,1,114,3,114,1984,8,114,1,115,1,115,1,115,5,115,1989,8,115,10,115,12,115,1992,9,115,1,116,1,116,1,116,1,116,5,116,1998,8,116,10,116,12,116,2001,9,116,1,117,1,117,1,117,1,117,5,117,2007,8,117,10,117,12,117,2010,9,117,1,118,1,118,1,118,1,118,1,118,3,118,2017,8,118,1,119,1,119,3,119,2021,8,119,1,119,1,119,3,119,2025,8,119,1,120,1,120,1,120,1,120,1,120,3,120,2032,8,120,3,120,2034,8,120,1,121,3,121,2037,8,121,1,121,1,121,1,121,3,121,2042,8,121,1,121,1,121,1,121,3,121,2047,8,121,1,122,1,122,3,122,2051,8,122,1,122,1,122,1,122,5,122,2056,8,122,10,122,12,122,2059,9,122,1,122,1,122,1,122,1,122,3,122,2065,8,122,1,122,1,122,3,122,2069,8,122,1,122,3,122,2072,8,122,1,122,1,122,3,122,2076,8,122,1,122,1,122,3,122,2080,8,122,3,122,2082,8,122,1,123,1,123,1,123,1,123,1,124,1,124,1,124,5,124,2091,8,124,10,124,12,124,2094,9,124,1,125,1,125,1,125,1,125,5,125,2100,8,125,10,125,12,125,2103,9,125,1,125,1,125,3,125,2107,8,125,1,125,1,125,1,125,1,125,3,125,2113,8,125,1,125,1,125,1,125,3,125,2118,8,125,1,125,3,125,2121,8,125,1,125,1,125,3,125,2125,8,125,1,125,1,125,3,125,2129,8,125,1,126,3,126,2132,8,126,1,127,3,127,2135,8,127,1,127,1,127,3,127,2139,8,127,1,127,1,127,1,127,1,127,5,127,2145,8,127,10,127,12,127,2148,9,127,1,127,3,127,2151,8,127,1,127,1,127,3,127,2155,8,127,1,127,3,127,2158,8,127,1,127,3,127,2161,8,127,1,127,3,127,2164,8,127,1,127,1,127,3,127,2168,8,127,1,127,3,127,2171,8,127,1,127,3,127,2174,8,127,1,128,1,128,1,128,3,128,2179,8,128,1,128,3,128,2182,8,128,1,128,3,128,2185,8,128,1,128,3,128,2188,8,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,3,129,2202,8,129,3,129,2204,8,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,3,130,2215,8,130,1,131,1,131,1,131,1,132,1,132,1,132,5,132,2223,8,132,10,132,12,132,2226,9,132,1,133,1,133,1,133,1,133,1,134,1,134,1,134,3,134,2235,8,134,1,134,3,134,2238,8,134,1,134,1,134,1,134,1,134,1,134,3,134,2245,8,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,3,135,2269,8,135,1,136,1,136,1,137,1,137,1,138,1,138,1,138,5,138,2278,8,138,10,138,12,138,2281,9,138,1,139,4,139,2284,8,139,11,139,12,139,2285,1,140,1,140,3,140,2290,8,140,1,141,1,141,3,141,2294,8,141,1,141,1,141,3,141,2298,8,141,1,141,1,141,3,141,2302,8,141,1,141,1,141,3,141,2306,8,141,1,141,1,141,3,141,2310,8,141,1,141,1,141,3,141,2314,8,141,1,141,1,141,1,141,1,141,3,141,2320,8,141,1,142,1,142,1,142,1,142,1,142,3,142,2327,8,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,3,142,2337,8,142,1,143,1,143,1,144,1,144,1,144,1,144,1,144,5,144,2346,8,144,10,144,12,144,2349,9,144,1,144,1,144,1,145,1,145,1,145,1,146,1,146,1,146,5,146,2359,8,146,10,146,12,146,2362,9,146,1,147,1,147,1,147,1,147,1,147,1,147,1,148,1,148,1,149,1,149,1,149,5,149,2375,8,149,10,149,12,149,2378,9,149,1,150,1,150,1,151,1,151,1,151,5,151,2385,8,151,10,151,12,151,2388,9,151,1,152,1,152,1,152,1,152,1,153,1,153,1,154,1,154,1,155,1,155,1,156,1,156,1,157,1,157,1,157,1,157,1,158,3,158,2407,8,158,1,158,1,158,1,159,1,159,3,159,2413,8,159,1,159,1,159,1,159,1,159,1,159,3,159,2420,8,159,1,160,1,160,1,160,5,160,2425,8,160,10,160,12,160,2428,9,160,1,161,1,161,1,161,1,161,1,161,3,161,2435,8,161,1,162,1,162,1,163,1,163,1,163,5,163,2442,8,163,10,163,12,163,2445,9,163,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,3,168,2481,8,168,3,168,2483,8,168,1,169,3,169,2486,8,169,1,169,1,169,1,169,3,169,2491,8,169,1,169,1,169,3,169,2495,8,169,5,169,2497,8,169,10,169,12,169,2500,9,169,1,170,1,170,1,170,3,170,2505,8,170,1,171,1,171,1,171,1,171,3,171,2511,8,171,1,171,1,171,3,171,2515,8,171,1,172,1,172,1,172,3,172,2520,8,172,1,172,1,172,1,172,3,172,2525,8,172,3,172,2527,8,172,1,173,1,173,3,173,2531,8,173,1,173,1,173,1,173,3,173,2536,8,173,1,173,3,173,2539,8,173,3,173,2541,8,173,1,173,1,173,3,173,2545,8,173,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,3,174,2556,8,174,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,3,176,2567,8,176,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,179,1,179,3,179,2578,8,179,1,179,1,179,3,179,2582,8,179,1,179,1,179,3,179,2586,8,179,1,179,1,179,3,179,2590,8,179,1,179,3,179,2593,8,179,1,179,1,179,3,179,2597,8,179,1,179,3,179,2600,8,179,1,180,1,180,1,180,1,180,3,180,2606,8,180,1,181,1,181,1,181,1,181,1,181,5,181,2613,8,181,10,181,12,181,2616,9,181,3,181,2618,8,181,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,3,182,2632,8,182,1,182,1,182,1,182,1,182,3,182,2638,8,182,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,3,183,2651,8,183,1,183,1,183,1,183,1,183,1,184,3,184,2658,8,184,1,184,1,184,1,184,3,184,2663,8,184,1,185,1,185,1,185,1,186,1,186,3,186,2670,8,186,1,187,1,187,1,187,5,187,2675,8,187,10,187,12,187,2678,9,187,1,188,1,188,1,188,1,188,1,189,1,189,3,189,2686,8,189,1,190,1,190,1,190,3,190,2691,8,190,1,190,1,190,1,190,1,190,1,190,1,190,3,190,2699,8,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,191,5,191,2712,8,191,10,191,12,191,2715,9,191,1,192,1,192,1,192,3,192,2720,8,192,1,193,1,193,1,193,1,193,1,193,1,193,3,193,2728,8,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,3,194,2737,8,194,1,194,1,194,3,194,2741,8,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,3,195,2750,8,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,3,196,2762,8,196,1,197,1,197,1,197,1,197,1,197,3,197,2769,8,197,1,197,1,197,1,197,1,197,1,197,1,197,3,197,2777,8,197,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,201,1,201,1,201,1,201,3,201,2798,8,201,1,201,1,201,1,201,1,201,1,201,1,201,3,201,2806,8,201,1,202,1,202,1,202,1,203,1,203,1,203,1,203,3,203,2815,8,203,1,204,1,204,1,204,1,204,1,205,1,205,1,206,1,206,3,206,2825,8,206,1,207,1,207,1,207,1,207,1,207,5,207,2832,8,207,10,207,12,207,2835,9,207,1,207,1,207,3,207,2839,8,207,1,208,1,208,1,209,1,209,1,209,3,209,2846,8,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,3,209,2856,8,209,1,209,1,209,1,209,3,209,2861,8,209,1,209,1,209,1,209,1,209,1,209,5,209,2868,8,209,10,209,12,209,2871,9,209,1,209,3,209,2874,8,209,1,209,1,209,3,209,2878,8,209,1,209,3,209,2881,8,209,1,209,3,209,2884,8,209,1,209,3,209,2887,8,209,1,209,3,209,2890,8,209,1,210,1,210,1,210,1,210,1,210,1,210,3,210,2898,8,210,1,211,1,211,1,211,3,211,2903,8,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,3,212,2914,8,212,1,213,1,213,1,213,1,214,1,214,3,214,2921,8,214,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,5,216,2932,8,216,10,216,12,216,2935,9,216,1,217,1,217,1,217,5,217,2940,8,217,10,217,12,217,2943,9,217,1,218,1,218,3,218,2947,8,218,1,219,1,219,1,219,5,219,2952,8,219,10,219,12,219,2955,9,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,3,220,2967,8,220,1,221,1,221,1,221,1,221,1,222,1,222,1,222,5,222,2976,8,222,10,222,12,222,2979,9,222,1,223,1,223,1,223,1,223,1,224,1,224,1,224,3,224,2988,8,224,1,225,1,225,1,225,1,225,3,225,2994,8,225,1,226,1,226,1,226,1,226,1,226,5,226,3001,8,226,10,226,12,226,3004,9,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,5,228,3018,8,228,10,228,12,228,3021,9,228,1,228,1,228,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,5,232,3041,8,232,10,232,12,232,3044,9,232,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,3,233,3063,8,233,1,234,1,234,1,234,1,234,1,234,1,234,1,234,5,234,3072,8,234,10,234,12,234,3075,9,234,1,235,1,235,1,235,1,235,1,235,3,235,3082,8,235,1,236,1,236,1,236,1,236,1,236,1,236,5,236,3090,8,236,10,236,12,236,3093,9,236,1,237,1,237,3,237,3097,8,237,1,238,1,238,3,238,3101,8,238,1,238,1,238,1,239,1,239,3,239,3107,8,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,5,245,3143,8,245,10,245,12,245,3146,9,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,5,246,3155,8,246,10,246,12,246,3158,9,246,1,246,1,246,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,3,255,3199,8,255,1,255,1,255,1,256,1,256,1,256,1,257,3,257,3207,8,257,1,257,3,257,3210,8,257,1,257,1,257,3,257,3214,8,257,1,258,1,258,3,258,3218,8,258,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3226,8,259,10,259,12,259,3229,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3239,8,259,10,259,12,259,3242,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3252,8,259,10,259,12,259,3255,9,259,1,259,1,259,3,259,3259,8,259,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3269,8,260,10,260,12,260,3272,9,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3280,8,260,10,260,12,260,3283,9,260,1,260,1,260,3,260,3287,8,260,1,260,3,260,3290,8,260,1,261,1,261,3,261,3294,8,261,1,261,1,261,3,261,3298,8,261,1,262,1,262,3,262,3302,8,262,1,262,3,262,3305,8,262,1,263,1,263,1,264,1,264,1,265,1,265,1,265,1,265,1,265,5,265,3316,8,265,10,265,12,265,3319,9,265,1,265,3,265,3322,8,265,1,265,1,265,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,3,267,3334,8,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,5,269,3346,8,269,10,269,12,269,3349,9,269,1,270,1,270,1,270,1,270,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,3,272,3363,8,272,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,3,274,3378,8,274,1,274,3,274,3381,8,274,1,275,1,275,1,275,1,275,1,276,1,276,1,276,1,276,5,276,3391,8,276,10,276,12,276,3394,9,276,3,276,3396,8,276,1,276,1,276,1,277,1,277,1,277,1,277,1,278,1,278,3,278,3406,8,278,1,279,1,279,1,279,1,279,5,279,3412,8,279,10,279,12,279,3415,9,279,1,279,1,279,1,279,3,279,3420,8,279,1,280,1,280,1,280,1,280,5,280,3426,8,280,10,280,12,280,3429,9,280,1,280,1,280,1,281,1,281,1,281,3,281,3436,8,281,1,282,1,282,1,282,1,282,1,282,3,282,3443,8,282,1,282,1,282,3,282,3447,8,282,1,282,1,282,1,283,1,283,1,283,1,283,3,283,3455,8,283,1,284,1,284,1,284,1,284,3,284,3461,8,284,1,284,1,284,1,284,1,284,3,284,3467,8,284,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,5,285,3477,8,285,10,285,12,285,3480,9,285,1,285,3,285,3483,8,285,3,285,3485,8,285,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,286,5,286,3495,8,286,10,286,12,286,3498,9,286,1,286,3,286,3501,8,286,1,286,1,286,1,286,3,286,3506,8,286,1,287,1,287,1,287,1,287,3,287,3512,8,287,1,287,1,287,1,287,5,287,3517,8,287,10,287,12,287,3520,9,287,1,287,3,287,3523,8,287,1,288,1,288,3,288,3527,8,288,1,289,3,289,3530,8,289,1,289,1,289,1,289,1,290,1,290,1,290,1,290,1,290,1,290,5,290,3541,8,290,10,290,12,290,3544,9,290,1,290,1,290,1,290,1,290,5,290,3550,8,290,10,290,12,290,3553,9,290,1,290,3,290,3556,8,290,1,290,1,290,1,290,3,290,3561,8,290,1,291,1,291,1,291,1,291,3,291,3567,8,291,1,291,1,291,1,291,1,291,1,291,5,291,3574,8,291,10,291,12,291,3577,9,291,1,291,1,291,1,291,1,291,5,291,3583,8,291,10,291,12,291,3586,9,291,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,3,292,3602,8,292,1,292,1,292,3,292,3606,8,292,1,292,1,292,3,292,3610,8,292,3,292,3612,8,292,1,293,1,293,3,293,3616,8,293,1,294,1,294,1,294,5,294,3621,8,294,10,294,12,294,3624,9,294,1,294,3,294,3627,8,294,1,294,1,294,3,294,3631,8,294,3,294,3633,8,294,1,295,1,295,1,295,1,295,1,295,1,295,1,296,1,296,1,296,1,296,1,296,1,296,1,296,5,296,3648,8,296,10,296,12,296,3651,9,296,1,297,1,297,3,297,3655,8,297,1,298,1,298,1,298,1,298,1,298,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,300,1,300,1,300,1,300,1,300,1,300,1,300,1,300,5,300,3677,8,300,10,300,12,300,3680,9,300,1,301,1,301,3,301,3684,8,301,1,302,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,5,303,3700,8,303,10,303,12,303,3703,9,303,1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,305,1,305,1,305,5,305,3716,8,305,10,305,12,305,3719,9,305,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,307,1,307,5,307,3732,8,307,10,307,12,307,3735,9,307,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,310,1,310,3,310,3749,8,310,1,311,1,311,1,311,5,311,3754,8,311,10,311,12,311,3757,9,311,1,312,1,312,1,312,1,312,1,312,3,312,3764,8,312,1,312,1,312,1,312,1,312,1,312,1,312,1,313,5,313,3773,8,313,10,313,12,313,3776,9,313,1,313,1,313,4,313,3780,8,313,11,313,12,313,3781,1,313,5,313,3785,8,313,10,313,12,313,3788,9,313,1,313,5,313,3791,8,313,10,313,12,313,3794,9,313,3,313,3796,8,313,1,314,3,314,3799,8,314,1,314,1,314,1,314,1,314,1,314,3,314,3806,8,314,1,315,3,315,3809,8,315,1,315,3,315,3812,8,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,3,315,3821,8,315,1,316,1,316,1,316,3,316,3826,8,316,1,316,3,316,3829,8,316,1,316,1,316,1,316,1,316,1,316,1,316,5,316,3837,8,316,10,316,12,316,3840,9,316,1,316,3,316,3843,8,316,3,316,3845,8,316,1,316,1,316,1,316,1,316,1,316,3,316,3852,8,316,1,316,3,316,3855,8,316,1,316,1,316,3,316,3859,8,316,3,316,3861,8,316,1,316,3,316,3864,8,316,1,317,1,317,1,317,3,317,3869,8,317,1,318,3,318,3872,8,318,1,318,1,318,1,318,3,318,3877,8,318,1,319,1,319,1,319,1,319,1,319,1,319,5,319,3885,8,319,10,319,12,319,3888,9,319,1,319,1,319,3,319,3892,8,319,1,320,1,320,1,320,1,320,1,320,1,320,1,320,5,320,3901,8,320,10,320,12,320,3904,9,320,1,320,3,320,3907,8,320,1,320,1,320,3,320,3911,8,320,3,320,3913,8,320,1,320,1,320,3,320,3917,8,320,1,320,1,320,1,320,3,320,3922,8,320,1,320,1,320,1,320,1,320,5,320,3928,8,320,10,320,12,320,3931,9,320,3,320,3933,8,320,1,320,3,320,3936,8,320,1,320,3,320,3939,8,320,1,321,1,321,1,321,3,321,3944,8,321,1,321,1,321,1,322,1,322,3,322,3950,8,322,1,322,3,322,3953,8,322,1,323,1,323,3,323,3957,8,323,1,324,1,324,1,324,1,324,3,324,3963,8,324,1,325,1,325,1,325,1,325,1,325,1,325,3,325,3971,8,325,1,325,3,325,3974,8,325,1,326,1,326,1,326,1,326,1,326,3,326,3981,8,326,1,326,1,326,3,326,3985,8,326,1,326,3,326,3988,8,326,1,327,1,327,3,327,3992,8,327,1,328,1,328,1,328,5,328,3997,8,328,10,328,12,328,4e3,9,328,1,329,1,329,1,329,1,329,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,5,332,4018,8,332,10,332,12,332,4021,9,332,1,332,1,332,1,333,1,333,1,333,1,333,1,333,3,333,4030,8,333,1,333,1,333,3,333,4034,8,333,1,333,3,333,4037,8,333,1,334,1,334,1,334,1,334,5,334,4043,8,334,10,334,12,334,4046,9,334,1,334,1,334,1,335,1,335,1,336,1,336,1,336,1,336,1,336,1,337,1,337,1,337,1,337,3,337,4061,8,337,1,337,1,337,1,337,1,337,5,337,4067,8,337,10,337,12,337,4070,9,337,1,338,1,338,1,338,1,338,1,338,3,338,4077,8,338,1,339,1,339,1,339,1,340,1,340,1,340,3,340,4085,8,340,1,341,1,341,1,341,1,341,1,341,1,342,1,342,3,342,4094,8,342,1,343,1,343,1,343,1,343,1,344,1,344,1,344,1,344,1,344,1,345,1,345,1,345,1,345,1,345,5,345,4110,8,345,10,345,12,345,4113,9,345,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,1,347,5,347,4127,8,347,10,347,12,347,4130,9,347,1,347,1,347,1,348,1,348,1,348,1,348,3,348,4138,8,348,1,348,1,348,1,349,1,349,1,349,5,349,4145,8,349,10,349,12,349,4148,9,349,1,350,1,350,1,350,1,350,1,351,1,351,1,352,1,352,1,352,1,352,1,352,1,353,1,353,1,353,5,353,4164,8,353,10,353,12,353,4167,9,353,1,354,1,354,1,354,1,354,1,355,1,355,1,356,1,356,1,356,3,356,4178,8,356,1,356,1,356,1,357,1,357,1,358,1,358,1,358,1,358,3,358,4188,8,358,1,359,1,359,1,359,1,359,1,359,1,360,1,360,3,360,4197,8,360,1,361,1,361,1,362,1,362,1,362,1,363,1,363,1,363,5,363,4207,8,363,10,363,12,363,4210,9,363,1,364,1,364,1,364,1,364,1,365,1,365,1,366,1,366,1,366,1,366,1,367,3,367,4223,8,367,1,367,3,367,4226,8,367,1,367,3,367,4229,8,367,1,367,3,367,4232,8,367,1,368,1,368,1,369,1,369,3,369,4238,8,369,1,369,1,369,1,369,1,370,1,370,1,371,1,371,1,371,3,371,4248,8,371,1,372,1,372,1,373,1,373,3,373,4254,8,373,1,374,1,374,1,374,1,374,1,374,1,375,1,375,1,375,1,375,3,375,4265,8,375,1,375,3,375,4268,8,375,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,3,376,4280,8,376,1,377,1,377,1,377,1,378,1,378,1,378,1,378,1,378,3,378,4290,8,378,1,379,1,379,1,379,1,379,3,379,4296,8,379,1,380,1,380,1,381,1,381,1,382,1,382,1,382,1,382,1,382,3,382,4307,8,382,1,383,1,383,1,383,5,383,4312,8,383,10,383,12,383,4315,9,383,1,383,3,383,4318,8,383,1,384,1,384,1,384,1,385,1,385,1,386,1,386,3,386,4327,8,386,1,387,1,387,1,387,1,387,1,387,1,387,1,387,3,387,4336,8,387,1,388,1,388,1,388,1,388,1,388,1,388,3,388,4344,8,388,1,389,1,389,1,389,1,389,1,389,3,389,4351,8,389,1,390,1,390,1,390,1,390,1,390,1,390,1,390,1,390,3,390,4361,8,390,1,391,1,391,1,391,1,391,1,391,1,391,1,391,3,391,4370,8,391,1,392,1,392,1,392,1,392,1,392,1,392,1,392,3,392,4379,8,392,1,393,1,393,1,393,1,393,1,393,1,393,1,393,1,393,3,393,4389,8,393,1,394,1,394,3,394,4393,8,394,1,395,1,395,3,395,4397,8,395,1,396,1,396,3,396,4401,8,396,1,397,1,397,3,397,4405,8,397,1,398,1,398,3,398,4409,8,398,1,399,1,399,3,399,4413,8,399,1,400,1,400,3,400,4417,8,400,1,401,1,401,3,401,4421,8,401,1,402,1,402,3,402,4425,8,402,1,403,1,403,3,403,4429,8,403,1,404,1,404,3,404,4433,8,404,1,405,1,405,3,405,4437,8,405,1,406,1,406,1,406,3,406,4442,8,406,1,407,1,407,1,407,3,407,4447,8,407,1,408,1,408,1,408,3,408,4452,8,408,1,408,1,408,3,408,4456,8,408,1,409,1,409,3,409,4460,8,409,1,410,1,410,1,410,3,410,4465,8,410,1,411,3,411,4468,8,411,1,411,1,411,1,412,1,412,3,412,4474,8,412,1,413,3,413,4477,8,413,1,413,1,413,1,414,1,414,1,414,1,414,1,414,1,414,1,414,1,414,3,414,4489,8,414,1,415,1,415,1,416,1,416,1,417,1,417,1,418,1,418,1,419,1,419,1,420,1,420,1,421,1,421,1,422,1,422,1,423,1,423,1,424,1,424,1,425,1,425,1,426,1,426,1,427,1,427,1,428,1,428,1,428,1,428,1,428,3,428,4522,8,428,1,429,5,429,4525,8,429,10,429,12,429,4528,9,429,1,429,1,429,4,429,4532,8,429,11,429,12,429,4533,1,429,5,429,4537,8,429,10,429,12,429,4540,9,429,1,429,5,429,4543,8,429,10,429,12,429,4546,9,429,1,429,1,429,1,430,1,430,1,430,3,430,4553,8,430,3,430,4555,8,430,1,430,1,430,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,3,431,4572,8,431,1,432,1,432,1,432,1,433,1,433,1,433,1,434,1,434,1,434,1,435,1,435,3,435,4585,8,435,1,435,0,0,436,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,388,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,424,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,460,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,496,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,568,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,604,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,640,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,676,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,712,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,748,750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,784,786,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,820,822,824,826,828,830,832,834,836,838,840,842,844,846,848,850,852,854,856,858,860,862,864,866,868,870,0,39,2,0,54,54,277,277,6,0,145,145,156,156,181,181,186,186,236,236,255,255,1,0,6,9,1,0,17,18,1,0,20,22,2,0,17,19,197,197,2,0,115,115,121,121,4,0,121,121,133,133,293,293,300,300,2,0,81,81,297,297,2,0,52,52,103,103,2,0,25,25,203,203,2,0,44,44,110,110,2,0,164,164,264,264,3,0,106,106,183,183,209,209,2,0,65,65,279,279,2,0,207,207,266,266,2,0,55,55,278,278,3,0,190,191,193,193,263,263,2,0,42,42,112,112,2,0,148,148,305,305,2,0,58,58,281,281,2,0,120,120,302,302,3,0,45,45,104,104,239,239,3,0,58,58,258,258,281,281,2,0,143,143,304,304,3,0,107,107,231,231,280,280,2,0,41,41,274,274,2,0,78,78,262,262,3,0,150,150,233,233,259,259,2,0,139,139,226,226,1,0,320,321,21,0,54,54,66,67,71,72,89,89,91,93,116,116,128,128,142,143,153,153,174,176,184,184,197,197,199,199,230,230,234,234,250,251,257,257,265,265,277,277,296,296,312,313,3,0,49,49,120,120,272,272,11,0,44,44,51,51,53,53,110,110,124,124,152,152,169,169,182,182,298,298,314,314,316,316,58,0,40,43,45,48,50,50,52,52,55,59,61,65,68,68,70,70,73,75,79,79,81,87,90,90,94,100,102,105,107,109,112,115,117,118,121,123,125,125,127,127,129,132,134,137,139,141,144,145,147,149,151,151,154,165,167,168,170,171,178,178,180,181,185,193,195,196,200,204,206,208,210,210,212,212,215,226,228,229,231,232,235,240,242,244,246,248,252,253,255,256,258,258,261,261,263,264,268,271,274,276,278,283,285,292,295,295,297,297,299,305,307,308,311,311,317,318,50,0,40,43,45,48,50,50,52,52,55,59,61,65,68,68,70,70,73,76,79,79,81,88,90,90,94,105,107,109,111,115,117,118,121,123,125,127,129,132,134,137,139,141,144,145,147,149,151,151,154,168,170,173,177,181,185,196,198,198,200,208,210,229,231,232,235,240,242,244,246,249,252,256,258,258,260,261,263,264,266,266,268,271,274,276,278,283,285,292,295,295,297,297,299,308,310,311,315,315,317,318,12,0,69,69,106,106,119,119,138,138,183,183,209,209,245,245,267,267,273,273,284,284,294,294,309,309,2,0,133,133,293,293,1,0,322,323,4916,0,877,1,0,0,0,2,882,1,0,0,0,4,908,1,0,0,0,6,916,1,0,0,0,8,940,1,0,0,0,10,947,1,0,0,0,12,1007,1,0,0,0,14,1018,1,0,0,0,16,1020,1,0,0,0,18,1028,1,0,0,0,20,1036,1,0,0,0,22,1040,1,0,0,0,24,1098,1,0,0,0,26,1100,1,0,0,0,28,1102,1,0,0,0,30,1110,1,0,0,0,32,1113,1,0,0,0,34,1117,1,0,0,0,36,1120,1,0,0,0,38,1146,1,0,0,0,40,1154,1,0,0,0,42,1162,1,0,0,0,44,1174,1,0,0,0,46,1176,1,0,0,0,48,1190,1,0,0,0,50,1199,1,0,0,0,52,1205,1,0,0,0,54,1211,1,0,0,0,56,1215,1,0,0,0,58,1217,1,0,0,0,60,1226,1,0,0,0,62,1242,1,0,0,0,64,1251,1,0,0,0,66,1264,1,0,0,0,68,1290,1,0,0,0,70,1312,1,0,0,0,72,1314,1,0,0,0,74,1321,1,0,0,0,76,1328,1,0,0,0,78,1336,1,0,0,0,80,1351,1,0,0,0,82,1365,1,0,0,0,84,1370,1,0,0,0,86,1372,1,0,0,0,88,1376,1,0,0,0,90,1378,1,0,0,0,92,1382,1,0,0,0,94,1390,1,0,0,0,96,1401,1,0,0,0,98,1403,1,0,0,0,100,1421,1,0,0,0,102,1425,1,0,0,0,104,1444,1,0,0,0,106,1452,1,0,0,0,108,1454,1,0,0,0,110,1476,1,0,0,0,112,1485,1,0,0,0,114,1493,1,0,0,0,116,1506,1,0,0,0,118,1508,1,0,0,0,120,1519,1,0,0,0,122,1527,1,0,0,0,124,1529,1,0,0,0,126,1540,1,0,0,0,128,1551,1,0,0,0,130,1556,1,0,0,0,132,1564,1,0,0,0,134,1578,1,0,0,0,136,1592,1,0,0,0,138,1596,1,0,0,0,140,1600,1,0,0,0,142,1615,1,0,0,0,144,1617,1,0,0,0,146,1623,1,0,0,0,148,1627,1,0,0,0,150,1635,1,0,0,0,152,1640,1,0,0,0,154,1649,1,0,0,0,156,1655,1,0,0,0,158,1659,1,0,0,0,160,1664,1,0,0,0,162,1666,1,0,0,0,164,1682,1,0,0,0,166,1687,1,0,0,0,168,1691,1,0,0,0,170,1697,1,0,0,0,172,1705,1,0,0,0,174,1712,1,0,0,0,176,1717,1,0,0,0,178,1736,1,0,0,0,180,1755,1,0,0,0,182,1770,1,0,0,0,184,1775,1,0,0,0,186,1780,1,0,0,0,188,1785,1,0,0,0,190,1792,1,0,0,0,192,1797,1,0,0,0,194,1812,1,0,0,0,196,1817,1,0,0,0,198,1824,1,0,0,0,200,1857,1,0,0,0,202,1876,1,0,0,0,204,1880,1,0,0,0,206,1882,1,0,0,0,208,1907,1,0,0,0,210,1909,1,0,0,0,212,1918,1,0,0,0,214,1928,1,0,0,0,216,1933,1,0,0,0,218,1938,1,0,0,0,220,1946,1,0,0,0,222,1951,1,0,0,0,224,1956,1,0,0,0,226,1979,1,0,0,0,228,1981,1,0,0,0,230,1985,1,0,0,0,232,1993,1,0,0,0,234,2002,1,0,0,0,236,2016,1,0,0,0,238,2024,1,0,0,0,240,2026,1,0,0,0,242,2036,1,0,0,0,244,2048,1,0,0,0,246,2083,1,0,0,0,248,2087,1,0,0,0,250,2095,1,0,0,0,252,2131,1,0,0,0,254,2134,1,0,0,0,256,2175,1,0,0,0,258,2203,1,0,0,0,260,2214,1,0,0,0,262,2216,1,0,0,0,264,2219,1,0,0,0,266,2227,1,0,0,0,268,2234,1,0,0,0,270,2268,1,0,0,0,272,2270,1,0,0,0,274,2272,1,0,0,0,276,2274,1,0,0,0,278,2283,1,0,0,0,280,2287,1,0,0,0,282,2319,1,0,0,0,284,2336,1,0,0,0,286,2338,1,0,0,0,288,2340,1,0,0,0,290,2352,1,0,0,0,292,2355,1,0,0,0,294,2363,1,0,0,0,296,2369,1,0,0,0,298,2371,1,0,0,0,300,2379,1,0,0,0,302,2381,1,0,0,0,304,2389,1,0,0,0,306,2393,1,0,0,0,308,2395,1,0,0,0,310,2397,1,0,0,0,312,2399,1,0,0,0,314,2401,1,0,0,0,316,2406,1,0,0,0,318,2410,1,0,0,0,320,2421,1,0,0,0,322,2434,1,0,0,0,324,2436,1,0,0,0,326,2438,1,0,0,0,328,2446,1,0,0,0,330,2451,1,0,0,0,332,2456,1,0,0,0,334,2462,1,0,0,0,336,2482,1,0,0,0,338,2485,1,0,0,0,340,2501,1,0,0,0,342,2514,1,0,0,0,344,2516,1,0,0,0,346,2528,1,0,0,0,348,2555,1,0,0,0,350,2557,1,0,0,0,352,2560,1,0,0,0,354,2568,1,0,0,0,356,2570,1,0,0,0,358,2599,1,0,0,0,360,2605,1,0,0,0,362,2607,1,0,0,0,364,2631,1,0,0,0,366,2650,1,0,0,0,368,2662,1,0,0,0,370,2664,1,0,0,0,372,2669,1,0,0,0,374,2671,1,0,0,0,376,2679,1,0,0,0,378,2685,1,0,0,0,380,2687,1,0,0,0,382,2703,1,0,0,0,384,2719,1,0,0,0,386,2721,1,0,0,0,388,2731,1,0,0,0,390,2745,1,0,0,0,392,2753,1,0,0,0,394,2763,1,0,0,0,396,2778,1,0,0,0,398,2781,1,0,0,0,400,2790,1,0,0,0,402,2793,1,0,0,0,404,2807,1,0,0,0,406,2814,1,0,0,0,408,2816,1,0,0,0,410,2820,1,0,0,0,412,2824,1,0,0,0,414,2838,1,0,0,0,416,2840,1,0,0,0,418,2842,1,0,0,0,420,2897,1,0,0,0,422,2899,1,0,0,0,424,2909,1,0,0,0,426,2915,1,0,0,0,428,2920,1,0,0,0,430,2922,1,0,0,0,432,2926,1,0,0,0,434,2936,1,0,0,0,436,2946,1,0,0,0,438,2948,1,0,0,0,440,2966,1,0,0,0,442,2968,1,0,0,0,444,2972,1,0,0,0,446,2980,1,0,0,0,448,2984,1,0,0,0,450,2989,1,0,0,0,452,2995,1,0,0,0,454,3007,1,0,0,0,456,3012,1,0,0,0,458,3024,1,0,0,0,460,3027,1,0,0,0,462,3031,1,0,0,0,464,3034,1,0,0,0,466,3062,1,0,0,0,468,3064,1,0,0,0,470,3081,1,0,0,0,472,3083,1,0,0,0,474,3096,1,0,0,0,476,3098,1,0,0,0,478,3104,1,0,0,0,480,3110,1,0,0,0,482,3116,1,0,0,0,484,3123,1,0,0,0,486,3126,1,0,0,0,488,3133,1,0,0,0,490,3137,1,0,0,0,492,3149,1,0,0,0,494,3161,1,0,0,0,496,3164,1,0,0,0,498,3168,1,0,0,0,500,3172,1,0,0,0,502,3178,1,0,0,0,504,3181,1,0,0,0,506,3186,1,0,0,0,508,3190,1,0,0,0,510,3195,1,0,0,0,512,3202,1,0,0,0,514,3209,1,0,0,0,516,3215,1,0,0,0,518,3258,1,0,0,0,520,3260,1,0,0,0,522,3293,1,0,0,0,524,3299,1,0,0,0,526,3306,1,0,0,0,528,3308,1,0,0,0,530,3310,1,0,0,0,532,3325,1,0,0,0,534,3333,1,0,0,0,536,3335,1,0,0,0,538,3342,1,0,0,0,540,3350,1,0,0,0,542,3354,1,0,0,0,544,3362,1,0,0,0,546,3364,1,0,0,0,548,3380,1,0,0,0,550,3382,1,0,0,0,552,3386,1,0,0,0,554,3399,1,0,0,0,556,3405,1,0,0,0,558,3419,1,0,0,0,560,3421,1,0,0,0,562,3435,1,0,0,0,564,3437,1,0,0,0,566,3450,1,0,0,0,568,3456,1,0,0,0,570,3468,1,0,0,0,572,3486,1,0,0,0,574,3507,1,0,0,0,576,3526,1,0,0,0,578,3529,1,0,0,0,580,3534,1,0,0,0,582,3562,1,0,0,0,584,3611,1,0,0,0,586,3615,1,0,0,0,588,3632,1,0,0,0,590,3634,1,0,0,0,592,3640,1,0,0,0,594,3654,1,0,0,0,596,3656,1,0,0,0,598,3661,1,0,0,0,600,3668,1,0,0,0,602,3683,1,0,0,0,604,3685,1,0,0,0,606,3691,1,0,0,0,608,3709,1,0,0,0,610,3712,1,0,0,0,612,3720,1,0,0,0,614,3724,1,0,0,0,616,3736,1,0,0,0,618,3738,1,0,0,0,620,3743,1,0,0,0,622,3750,1,0,0,0,624,3758,1,0,0,0,626,3774,1,0,0,0,628,3798,1,0,0,0,630,3808,1,0,0,0,632,3825,1,0,0,0,634,3865,1,0,0,0,636,3871,1,0,0,0,638,3878,1,0,0,0,640,3938,1,0,0,0,642,3943,1,0,0,0,644,3952,1,0,0,0,646,3954,1,0,0,0,648,3958,1,0,0,0,650,3964,1,0,0,0,652,3975,1,0,0,0,654,3991,1,0,0,0,656,3993,1,0,0,0,658,4001,1,0,0,0,660,4005,1,0,0,0,662,4007,1,0,0,0,664,4013,1,0,0,0,666,4024,1,0,0,0,668,4038,1,0,0,0,670,4049,1,0,0,0,672,4051,1,0,0,0,674,4056,1,0,0,0,676,4076,1,0,0,0,678,4078,1,0,0,0,680,4081,1,0,0,0,682,4086,1,0,0,0,684,4093,1,0,0,0,686,4095,1,0,0,0,688,4099,1,0,0,0,690,4104,1,0,0,0,692,4116,1,0,0,0,694,4121,1,0,0,0,696,4133,1,0,0,0,698,4141,1,0,0,0,700,4149,1,0,0,0,702,4153,1,0,0,0,704,4155,1,0,0,0,706,4160,1,0,0,0,708,4168,1,0,0,0,710,4172,1,0,0,0,712,4177,1,0,0,0,714,4181,1,0,0,0,716,4187,1,0,0,0,718,4189,1,0,0,0,720,4196,1,0,0,0,722,4198,1,0,0,0,724,4200,1,0,0,0,726,4203,1,0,0,0,728,4211,1,0,0,0,730,4215,1,0,0,0,732,4217,1,0,0,0,734,4222,1,0,0,0,736,4233,1,0,0,0,738,4235,1,0,0,0,740,4242,1,0,0,0,742,4244,1,0,0,0,744,4249,1,0,0,0,746,4253,1,0,0,0,748,4255,1,0,0,0,750,4267,1,0,0,0,752,4279,1,0,0,0,754,4281,1,0,0,0,756,4289,1,0,0,0,758,4291,1,0,0,0,760,4297,1,0,0,0,762,4299,1,0,0,0,764,4301,1,0,0,0,766,4308,1,0,0,0,768,4319,1,0,0,0,770,4322,1,0,0,0,772,4326,1,0,0,0,774,4335,1,0,0,0,776,4343,1,0,0,0,778,4350,1,0,0,0,780,4360,1,0,0,0,782,4369,1,0,0,0,784,4378,1,0,0,0,786,4388,1,0,0,0,788,4392,1,0,0,0,790,4396,1,0,0,0,792,4400,1,0,0,0,794,4404,1,0,0,0,796,4408,1,0,0,0,798,4412,1,0,0,0,800,4416,1,0,0,0,802,4420,1,0,0,0,804,4424,1,0,0,0,806,4428,1,0,0,0,808,4432,1,0,0,0,810,4436,1,0,0,0,812,4441,1,0,0,0,814,4446,1,0,0,0,816,4451,1,0,0,0,818,4459,1,0,0,0,820,4464,1,0,0,0,822,4467,1,0,0,0,824,4473,1,0,0,0,826,4476,1,0,0,0,828,4488,1,0,0,0,830,4490,1,0,0,0,832,4492,1,0,0,0,834,4494,1,0,0,0,836,4496,1,0,0,0,838,4498,1,0,0,0,840,4500,1,0,0,0,842,4502,1,0,0,0,844,4504,1,0,0,0,846,4506,1,0,0,0,848,4508,1,0,0,0,850,4510,1,0,0,0,852,4512,1,0,0,0,854,4514,1,0,0,0,856,4521,1,0,0,0,858,4526,1,0,0,0,860,4554,1,0,0,0,862,4571,1,0,0,0,864,4573,1,0,0,0,866,4576,1,0,0,0,868,4579,1,0,0,0,870,4584,1,0,0,0,872,878,3,2,1,0,873,874,5,225,0,0,874,875,5,48,0,0,875,876,5,322,0,0,876,878,3,4,2,0,877,872,1,0,0,0,877,873,1,0,0,0,878,1,1,0,0,0,879,881,5,23,0,0,880,879,1,0,0,0,881,884,1,0,0,0,882,880,1,0,0,0,882,883,1,0,0,0,883,885,1,0,0,0,884,882,1,0,0,0,885,894,3,10,5,0,886,888,5,23,0,0,887,886,1,0,0,0,888,889,1,0,0,0,889,887,1,0,0,0,889,890,1,0,0,0,890,891,1,0,0,0,891,893,3,10,5,0,892,887,1,0,0,0,893,896,1,0,0,0,894,892,1,0,0,0,894,895,1,0,0,0,895,900,1,0,0,0,896,894,1,0,0,0,897,899,5,23,0,0,898,897,1,0,0,0,899,902,1,0,0,0,900,898,1,0,0,0,900,901,1,0,0,0,901,903,1,0,0,0,902,900,1,0,0,0,903,904,5,0,0,1,904,3,1,0,0,0,905,907,5,23,0,0,906,905,1,0,0,0,907,910,1,0,0,0,908,906,1,0,0,0,908,909,1,0,0,0,909,911,1,0,0,0,910,908,1,0,0,0,911,912,5,0,0,1,912,5,1,0,0,0,913,915,5,23,0,0,914,913,1,0,0,0,915,918,1,0,0,0,916,914,1,0,0,0,916,917,1,0,0,0,917,927,1,0,0,0,918,916,1,0,0,0,919,921,3,8,4,0,920,922,5,23,0,0,921,920,1,0,0,0,922,923,1,0,0,0,923,921,1,0,0,0,923,924,1,0,0,0,924,926,1,0,0,0,925,919,1,0,0,0,926,929,1,0,0,0,927,925,1,0,0,0,927,928,1,0,0,0,928,930,1,0,0,0,929,927,1,0,0,0,930,931,5,250,0,0,931,935,3,14,7,0,932,934,5,23,0,0,933,932,1,0,0,0,934,937,1,0,0,0,935,933,1,0,0,0,935,936,1,0,0,0,936,7,1,0,0,0,937,935,1,0,0,0,938,941,3,758,379,0,939,941,3,214,107,0,940,938,1,0,0,0,940,939,1,0,0,0,941,9,1,0,0,0,942,945,5,129,0,0,943,944,5,1,0,0,944,946,5,223,0,0,945,943,1,0,0,0,945,946,1,0,0,0,946,948,1,0,0,0,947,942,1,0,0,0,947,948,1,0,0,0,948,949,1,0,0,0,949,950,3,12,6,0,950,11,1,0,0,0,951,1008,3,224,112,0,952,1008,3,232,116,0,953,1008,3,758,379,0,954,1008,3,418,209,0,955,1008,3,564,282,0,956,1008,3,754,377,0,957,1008,3,364,182,0,958,1008,3,760,380,0,959,1008,3,652,326,0,960,1008,3,650,325,0,961,1008,3,762,381,0,962,1008,3,210,105,0,963,1008,3,214,107,0,964,1008,3,216,108,0,965,1008,3,464,232,0,966,1008,3,468,234,0,967,1008,3,222,111,0,968,1008,3,624,312,0,969,1008,3,628,314,0,970,1008,3,630,315,0,971,1008,3,370,185,0,972,1008,3,566,283,0,973,1008,3,568,284,0,974,1008,3,570,285,0,975,1008,3,572,286,0,976,1008,3,574,287,0,977,1008,3,394,197,0,978,1008,3,398,199,0,979,1008,3,402,201,0,980,1008,3,380,190,0,981,1008,3,382,191,0,982,1008,3,386,193,0,983,1008,3,606,303,0,984,1008,3,620,310,0,985,1008,3,666,333,0,986,1008,3,674,337,0,987,1008,3,696,348,0,988,1008,3,580,290,0,989,1008,3,582,291,0,990,1008,3,472,236,0,991,1008,3,392,196,0,992,1008,3,388,194,0,993,1008,3,390,195,0,994,1008,3,614,307,0,995,1008,3,590,295,0,996,1008,3,592,296,0,997,1008,3,596,298,0,998,1008,3,422,211,0,999,1008,3,424,212,0,1e3,1008,3,426,213,0,1001,1008,3,768,384,0,1002,1008,3,598,299,0,1003,1008,3,600,300,0,1004,1008,3,604,302,0,1005,1008,3,448,224,0,1006,1008,3,450,225,0,1007,951,1,0,0,0,1007,952,1,0,0,0,1007,953,1,0,0,0,1007,954,1,0,0,0,1007,955,1,0,0,0,1007,956,1,0,0,0,1007,957,1,0,0,0,1007,958,1,0,0,0,1007,959,1,0,0,0,1007,960,1,0,0,0,1007,961,1,0,0,0,1007,962,1,0,0,0,1007,963,1,0,0,0,1007,964,1,0,0,0,1007,965,1,0,0,0,1007,966,1,0,0,0,1007,967,1,0,0,0,1007,968,1,0,0,0,1007,969,1,0,0,0,1007,970,1,0,0,0,1007,971,1,0,0,0,1007,972,1,0,0,0,1007,973,1,0,0,0,1007,974,1,0,0,0,1007,975,1,0,0,0,1007,976,1,0,0,0,1007,977,1,0,0,0,1007,978,1,0,0,0,1007,979,1,0,0,0,1007,980,1,0,0,0,1007,981,1,0,0,0,1007,982,1,0,0,0,1007,983,1,0,0,0,1007,984,1,0,0,0,1007,985,1,0,0,0,1007,986,1,0,0,0,1007,987,1,0,0,0,1007,988,1,0,0,0,1007,989,1,0,0,0,1007,990,1,0,0,0,1007,991,1,0,0,0,1007,992,1,0,0,0,1007,993,1,0,0,0,1007,994,1,0,0,0,1007,995,1,0,0,0,1007,996,1,0,0,0,1007,997,1,0,0,0,1007,998,1,0,0,0,1007,999,1,0,0,0,1007,1e3,1,0,0,0,1007,1001,1,0,0,0,1007,1002,1,0,0,0,1007,1003,1,0,0,0,1007,1004,1,0,0,0,1007,1005,1,0,0,0,1007,1006,1,0,0,0,1008,13,1,0,0,0,1009,1014,3,16,8,0,1010,1011,5,210,0,0,1011,1013,3,16,8,0,1012,1010,1,0,0,0,1013,1016,1,0,0,0,1014,1012,1,0,0,0,1014,1015,1,0,0,0,1015,1019,1,0,0,0,1016,1014,1,0,0,0,1017,1019,3,200,100,0,1018,1009,1,0,0,0,1018,1017,1,0,0,0,1019,15,1,0,0,0,1020,1025,3,18,9,0,1021,1022,5,47,0,0,1022,1024,3,18,9,0,1023,1021,1,0,0,0,1024,1027,1,0,0,0,1025,1023,1,0,0,0,1025,1026,1,0,0,0,1026,17,1,0,0,0,1027,1025,1,0,0,0,1028,1033,3,20,10,0,1029,1030,5,318,0,0,1030,1032,3,20,10,0,1031,1029,1,0,0,0,1032,1035,1,0,0,0,1033,1031,1,0,0,0,1033,1034,1,0,0,0,1034,19,1,0,0,0,1035,1033,1,0,0,0,1036,1038,3,28,14,0,1037,1039,3,24,12,0,1038,1037,1,0,0,0,1038,1039,1,0,0,0,1039,21,1,0,0,0,1040,1042,5,171,0,0,1041,1043,5,197,0,0,1042,1041,1,0,0,0,1042,1043,1,0,0,0,1043,1044,1,0,0,0,1044,1045,5,110,0,0,1045,1046,5,142,0,0,1046,23,1,0,0,0,1047,1049,5,197,0,0,1048,1047,1,0,0,0,1048,1049,1,0,0,0,1049,1050,1,0,0,0,1050,1051,3,26,13,0,1051,1054,3,28,14,0,1052,1053,5,122,0,0,1053,1055,3,28,14,0,1054,1052,1,0,0,0,1054,1055,1,0,0,0,1055,1099,1,0,0,0,1056,1058,5,197,0,0,1057,1056,1,0,0,0,1057,1058,1,0,0,0,1058,1059,1,0,0,0,1059,1061,5,159,0,0,1060,1062,5,80,0,0,1061,1060,1,0,0,0,1061,1062,1,0,0,0,1062,1063,1,0,0,0,1063,1099,3,82,41,0,1064,1074,5,172,0,0,1065,1074,5,198,0,0,1066,1067,5,171,0,0,1067,1074,5,199,0,0,1068,1070,5,171,0,0,1069,1068,1,0,0,0,1069,1070,1,0,0,0,1070,1071,1,0,0,0,1071,1072,5,197,0,0,1072,1074,5,199,0,0,1073,1064,1,0,0,0,1073,1065,1,0,0,0,1073,1066,1,0,0,0,1073,1069,1,0,0,0,1074,1099,1,0,0,0,1075,1077,5,197,0,0,1076,1075,1,0,0,0,1076,1077,1,0,0,0,1077,1078,1,0,0,0,1078,1080,5,66,0,0,1079,1081,7,0,0,0,1080,1079,1,0,0,0,1080,1081,1,0,0,0,1081,1082,1,0,0,0,1082,1083,3,28,14,0,1083,1084,5,47,0,0,1084,1085,3,28,14,0,1085,1099,1,0,0,0,1086,1092,5,2,0,0,1087,1092,5,3,0,0,1088,1092,5,4,0,0,1089,1092,5,5,0,0,1090,1092,3,22,11,0,1091,1086,1,0,0,0,1091,1087,1,0,0,0,1091,1088,1,0,0,0,1091,1089,1,0,0,0,1091,1090,1,0,0,0,1092,1093,1,0,0,0,1093,1095,3,28,14,0,1094,1091,1,0,0,0,1095,1096,1,0,0,0,1096,1094,1,0,0,0,1096,1097,1,0,0,0,1097,1099,1,0,0,0,1098,1048,1,0,0,0,1098,1057,1,0,0,0,1098,1073,1,0,0,0,1098,1076,1,0,0,0,1098,1094,1,0,0,0,1099,25,1,0,0,0,1100,1101,7,1,0,0,1101,27,1,0,0,0,1102,1107,3,36,18,0,1103,1104,7,2,0,0,1104,1106,3,36,18,0,1105,1103,1,0,0,0,1106,1109,1,0,0,0,1107,1105,1,0,0,0,1107,1108,1,0,0,0,1108,29,1,0,0,0,1109,1107,1,0,0,0,1110,1111,5,8,0,0,1111,1112,5,8,0,0,1112,31,1,0,0,0,1113,1114,5,8,0,0,1114,1115,5,8,0,0,1115,1116,5,13,0,0,1116,33,1,0,0,0,1117,1118,5,28,0,0,1118,1119,5,28,0,0,1119,35,1,0,0,0,1120,1133,3,38,19,0,1121,1129,5,10,0,0,1122,1129,3,30,15,0,1123,1129,5,11,0,0,1124,1129,3,32,16,0,1125,1129,5,12,0,0,1126,1129,5,13,0,0,1127,1129,5,35,0,0,1128,1121,1,0,0,0,1128,1122,1,0,0,0,1128,1123,1,0,0,0,1128,1124,1,0,0,0,1128,1125,1,0,0,0,1128,1126,1,0,0,0,1128,1127,1,0,0,0,1129,1130,1,0,0,0,1130,1132,3,38,19,0,1131,1128,1,0,0,0,1132,1135,1,0,0,0,1133,1131,1,0,0,0,1133,1134,1,0,0,0,1134,1144,1,0,0,0,1135,1133,1,0,0,0,1136,1137,3,34,17,0,1137,1138,3,36,18,0,1138,1145,1,0,0,0,1139,1141,5,28,0,0,1140,1139,1,0,0,0,1141,1142,1,0,0,0,1142,1140,1,0,0,0,1142,1143,1,0,0,0,1143,1145,1,0,0,0,1144,1136,1,0,0,0,1144,1140,1,0,0,0,1144,1145,1,0,0,0,1145,37,1,0,0,0,1146,1151,3,40,20,0,1147,1148,7,3,0,0,1148,1150,3,40,20,0,1149,1147,1,0,0,0,1150,1153,1,0,0,0,1151,1149,1,0,0,0,1151,1152,1,0,0,0,1152,39,1,0,0,0,1153,1151,1,0,0,0,1154,1159,3,42,21,0,1155,1156,7,4,0,0,1156,1158,3,42,21,0,1157,1155,1,0,0,0,1158,1161,1,0,0,0,1159,1157,1,0,0,0,1159,1160,1,0,0,0,1160,41,1,0,0,0,1161,1159,1,0,0,0,1162,1167,3,44,22,0,1163,1164,5,14,0,0,1164,1166,3,44,22,0,1165,1163,1,0,0,0,1166,1169,1,0,0,0,1167,1165,1,0,0,0,1167,1168,1,0,0,0,1168,43,1,0,0,0,1169,1167,1,0,0,0,1170,1175,3,54,27,0,1171,1172,3,46,23,0,1172,1173,3,54,27,0,1173,1175,1,0,0,0,1174,1170,1,0,0,0,1174,1171,1,0,0,0,1175,45,1,0,0,0,1176,1177,7,5,0,0,1177,47,1,0,0,0,1178,1187,3,138,69,0,1179,1187,3,132,66,0,1180,1184,5,24,0,0,1181,1185,3,144,72,0,1182,1185,5,322,0,0,1183,1185,3,792,396,0,1184,1181,1,0,0,0,1184,1182,1,0,0,0,1184,1183,1,0,0,0,1185,1187,1,0,0,0,1186,1178,1,0,0,0,1186,1179,1,0,0,0,1186,1180,1,0,0,0,1187,1189,1,0,0,0,1188,1186,1,0,0,0,1189,1192,1,0,0,0,1190,1188,1,0,0,0,1190,1191,1,0,0,0,1191,1195,1,0,0,0,1192,1190,1,0,0,0,1193,1194,5,76,0,0,1194,1196,3,790,395,0,1195,1193,1,0,0,0,1195,1196,1,0,0,0,1196,49,1,0,0,0,1197,1200,3,776,388,0,1198,1200,3,68,34,0,1199,1197,1,0,0,0,1199,1198,1,0,0,0,1200,1201,1,0,0,0,1201,1202,3,48,24,0,1202,51,1,0,0,0,1203,1206,3,778,389,0,1204,1206,3,70,35,0,1205,1203,1,0,0,0,1205,1204,1,0,0,0,1206,1207,1,0,0,0,1207,1208,3,48,24,0,1208,53,1,0,0,0,1209,1212,3,50,25,0,1210,1212,3,84,42,0,1211,1209,1,0,0,0,1211,1210,1,0,0,0,1212,55,1,0,0,0,1213,1216,3,52,26,0,1214,1216,3,84,42,0,1215,1213,1,0,0,0,1215,1214,1,0,0,0,1216,57,1,0,0,0,1217,1219,5,39,0,0,1218,1220,3,112,56,0,1219,1218,1,0,0,0,1219,1220,1,0,0,0,1220,1222,1,0,0,0,1221,1223,5,25,0,0,1222,1221,1,0,0,0,1222,1223,1,0,0,0,1223,1224,1,0,0,0,1224,1225,5,38,0,0,1225,59,1,0,0,0,1226,1229,3,14,7,0,1227,1228,5,29,0,0,1228,1230,3,14,7,0,1229,1227,1,0,0,0,1229,1230,1,0,0,0,1230,1239,1,0,0,0,1231,1232,5,25,0,0,1232,1235,3,14,7,0,1233,1234,5,29,0,0,1234,1236,3,14,7,0,1235,1233,1,0,0,0,1235,1236,1,0,0,0,1236,1238,1,0,0,0,1237,1231,1,0,0,0,1238,1241,1,0,0,0,1239,1237,1,0,0,0,1239,1240,1,0,0,0,1240,61,1,0,0,0,1241,1239,1,0,0,0,1242,1244,5,33,0,0,1243,1245,3,60,30,0,1244,1243,1,0,0,0,1244,1245,1,0,0,0,1245,1247,1,0,0,0,1246,1248,5,25,0,0,1247,1246,1,0,0,0,1247,1248,1,0,0,0,1248,1249,1,0,0,0,1249,1250,5,34,0,0,1250,63,1,0,0,0,1251,1252,3,14,7,0,1252,1253,5,29,0,0,1253,1261,3,14,7,0,1254,1255,5,25,0,0,1255,1256,3,14,7,0,1256,1257,5,29,0,0,1257,1258,3,14,7,0,1258,1260,1,0,0,0,1259,1254,1,0,0,0,1260,1263,1,0,0,0,1261,1259,1,0,0,0,1261,1262,1,0,0,0,1262,65,1,0,0,0,1263,1261,1,0,0,0,1264,1266,5,15,0,0,1265,1267,3,64,32,0,1266,1265,1,0,0,0,1266,1267,1,0,0,0,1267,1269,1,0,0,0,1268,1270,5,25,0,0,1269,1268,1,0,0,0,1269,1270,1,0,0,0,1270,1271,1,0,0,0,1271,1272,5,16,0,0,1272,67,1,0,0,0,1273,1291,3,142,71,0,1274,1291,3,144,72,0,1275,1291,3,80,40,0,1276,1291,3,72,36,0,1277,1291,3,76,38,0,1278,1291,3,78,39,0,1279,1280,3,792,396,0,1280,1283,5,36,0,0,1281,1284,3,818,409,0,1282,1284,5,319,0,0,1283,1281,1,0,0,0,1283,1282,1,0,0,0,1284,1291,1,0,0,0,1285,1291,3,208,104,0,1286,1291,3,74,37,0,1287,1291,3,58,29,0,1288,1291,3,62,31,0,1289,1291,3,66,33,0,1290,1273,1,0,0,0,1290,1274,1,0,0,0,1290,1275,1,0,0,0,1290,1276,1,0,0,0,1290,1277,1,0,0,0,1290,1278,1,0,0,0,1290,1279,1,0,0,0,1290,1285,1,0,0,0,1290,1286,1,0,0,0,1290,1287,1,0,0,0,1290,1288,1,0,0,0,1290,1289,1,0,0,0,1291,69,1,0,0,0,1292,1313,3,142,71,0,1293,1313,3,144,72,0,1294,1313,3,80,40,0,1295,1313,3,72,36,0,1296,1313,3,78,39,0,1297,1298,3,792,396,0,1298,1301,5,36,0,0,1299,1302,3,818,409,0,1300,1302,5,319,0,0,1301,1299,1,0,0,0,1301,1300,1,0,0,0,1302,1313,1,0,0,0,1303,1304,5,26,0,0,1304,1305,3,232,116,0,1305,1306,5,27,0,0,1306,1313,1,0,0,0,1307,1313,3,208,104,0,1308,1313,3,74,37,0,1309,1313,3,58,29,0,1310,1313,3,62,31,0,1311,1313,3,66,33,0,1312,1292,1,0,0,0,1312,1293,1,0,0,0,1312,1294,1,0,0,0,1312,1295,1,0,0,0,1312,1296,1,0,0,0,1312,1297,1,0,0,0,1312,1303,1,0,0,0,1312,1307,1,0,0,0,1312,1308,1,0,0,0,1312,1309,1,0,0,0,1312,1310,1,0,0,0,1312,1311,1,0,0,0,1313,71,1,0,0,0,1314,1315,5,72,0,0,1315,1316,5,26,0,0,1316,1317,3,14,7,0,1317,1318,5,51,0,0,1318,1319,3,204,102,0,1319,1320,5,27,0,0,1320,73,1,0,0,0,1321,1322,5,67,0,0,1322,1323,5,26,0,0,1323,1324,3,14,7,0,1324,1325,5,51,0,0,1325,1326,3,156,78,0,1326,1327,5,27,0,0,1327,75,1,0,0,0,1328,1329,5,128,0,0,1329,1332,5,26,0,0,1330,1333,3,232,116,0,1331,1333,3,370,185,0,1332,1330,1,0,0,0,1332,1331,1,0,0,0,1333,1334,1,0,0,0,1334,1335,5,27,0,0,1335,77,1,0,0,0,1336,1338,5,71,0,0,1337,1339,3,14,7,0,1338,1337,1,0,0,0,1338,1339,1,0,0,0,1339,1341,1,0,0,0,1340,1342,3,140,70,0,1341,1340,1,0,0,0,1342,1343,1,0,0,0,1343,1341,1,0,0,0,1343,1344,1,0,0,0,1344,1347,1,0,0,0,1345,1346,5,114,0,0,1346,1348,3,14,7,0,1347,1345,1,0,0,0,1347,1348,1,0,0,0,1348,1349,1,0,0,0,1349,1350,5,118,0,0,1350,79,1,0,0,0,1351,1363,3,110,55,0,1352,1361,5,37,0,0,1353,1354,5,26,0,0,1354,1355,3,14,7,0,1355,1356,5,27,0,0,1356,1362,1,0,0,0,1357,1358,5,33,0,0,1358,1359,3,6,3,0,1359,1360,5,34,0,0,1360,1362,1,0,0,0,1361,1353,1,0,0,0,1361,1357,1,0,0,0,1362,1364,1,0,0,0,1363,1352,1,0,0,0,1363,1364,1,0,0,0,1364,81,1,0,0,0,1365,1366,3,56,28,0,1366,83,1,0,0,0,1367,1371,3,98,49,0,1368,1371,3,102,51,0,1369,1371,3,108,54,0,1370,1367,1,0,0,0,1370,1368,1,0,0,0,1370,1369,1,0,0,0,1371,85,1,0,0,0,1372,1373,5,319,0,0,1373,87,1,0,0,0,1374,1377,3,776,388,0,1375,1377,5,319,0,0,1376,1374,1,0,0,0,1376,1375,1,0,0,0,1377,89,1,0,0,0,1378,1379,3,14,7,0,1379,1380,5,51,0,0,1380,1381,3,88,44,0,1381,91,1,0,0,0,1382,1387,3,90,45,0,1383,1384,5,25,0,0,1384,1386,3,90,45,0,1385,1383,1,0,0,0,1386,1389,1,0,0,0,1387,1385,1,0,0,0,1387,1388,1,0,0,0,1388,93,1,0,0,0,1389,1387,1,0,0,0,1390,1391,3,14,7,0,1391,1392,5,25,0,0,1392,1395,3,86,43,0,1393,1394,5,217,0,0,1394,1396,3,92,46,0,1395,1393,1,0,0,0,1395,1396,1,0,0,0,1396,95,1,0,0,0,1397,1402,5,121,0,0,1398,1402,5,199,0,0,1399,1400,5,98,0,0,1400,1402,3,14,7,0,1401,1397,1,0,0,0,1401,1398,1,0,0,0,1401,1399,1,0,0,0,1402,97,1,0,0,0,1403,1404,5,176,0,0,1404,1405,5,26,0,0,1405,1408,3,94,47,0,1406,1407,5,251,0,0,1407,1409,3,156,78,0,1408,1406,1,0,0,0,1408,1409,1,0,0,0,1409,1416,1,0,0,0,1410,1411,3,96,48,0,1411,1412,5,205,0,0,1412,1413,7,6,0,0,1413,1415,1,0,0,0,1414,1410,1,0,0,0,1415,1418,1,0,0,0,1416,1414,1,0,0,0,1416,1417,1,0,0,0,1417,1419,1,0,0,0,1418,1416,1,0,0,0,1419,1420,5,27,0,0,1420,99,1,0,0,0,1421,1422,7,7,0,0,1422,1423,5,205,0,0,1423,1424,5,121,0,0,1424,101,1,0,0,0,1425,1426,5,174,0,0,1426,1427,5,26,0,0,1427,1429,3,94,47,0,1428,1430,3,100,50,0,1429,1428,1,0,0,0,1429,1430,1,0,0,0,1430,1431,1,0,0,0,1431,1432,5,27,0,0,1432,103,1,0,0,0,1433,1435,5,316,0,0,1434,1436,5,50,0,0,1435,1434,1,0,0,0,1435,1436,1,0,0,0,1436,1445,1,0,0,0,1437,1439,5,315,0,0,1438,1440,7,8,0,0,1439,1438,1,0,0,0,1439,1440,1,0,0,0,1440,1442,1,0,0,0,1441,1443,5,50,0,0,1442,1441,1,0,0,0,1442,1443,1,0,0,0,1443,1445,1,0,0,0,1444,1433,1,0,0,0,1444,1437,1,0,0,0,1445,105,1,0,0,0,1446,1453,5,121,0,0,1447,1453,5,199,0,0,1448,1449,5,115,0,0,1449,1453,5,50,0,0,1450,1451,5,115,0,0,1451,1453,5,201,0,0,1452,1446,1,0,0,0,1452,1447,1,0,0,0,1452,1448,1,0,0,0,1452,1450,1,0,0,0,1453,107,1,0,0,0,1454,1455,5,175,0,0,1455,1456,5,26,0,0,1456,1460,3,94,47,0,1457,1458,3,104,52,0,1458,1459,5,317,0,0,1459,1461,1,0,0,0,1460,1457,1,0,0,0,1460,1461,1,0,0,0,1461,1466,1,0,0,0,1462,1463,3,106,53,0,1463,1464,5,205,0,0,1464,1465,5,115,0,0,1465,1467,1,0,0,0,1466,1462,1,0,0,0,1466,1467,1,0,0,0,1467,1472,1,0,0,0,1468,1469,3,106,53,0,1469,1470,5,205,0,0,1470,1471,5,121,0,0,1471,1473,1,0,0,0,1472,1468,1,0,0,0,1472,1473,1,0,0,0,1473,1474,1,0,0,0,1474,1475,5,27,0,0,1475,109,1,0,0,0,1476,1478,5,26,0,0,1477,1479,3,130,65,0,1478,1477,1,0,0,0,1478,1479,1,0,0,0,1479,1481,1,0,0,0,1480,1482,5,25,0,0,1481,1480,1,0,0,0,1481,1482,1,0,0,0,1482,1483,1,0,0,0,1483,1484,5,27,0,0,1484,111,1,0,0,0,1485,1490,3,14,7,0,1486,1487,5,25,0,0,1487,1489,3,14,7,0,1488,1486,1,0,0,0,1489,1492,1,0,0,0,1490,1488,1,0,0,0,1490,1491,1,0,0,0,1491,113,1,0,0,0,1492,1490,1,0,0,0,1493,1494,5,26,0,0,1494,1499,3,790,395,0,1495,1496,5,25,0,0,1496,1498,3,790,395,0,1497,1495,1,0,0,0,1498,1501,1,0,0,0,1499,1497,1,0,0,0,1499,1500,1,0,0,0,1500,1502,1,0,0,0,1501,1499,1,0,0,0,1502,1503,5,27,0,0,1503,115,1,0,0,0,1504,1507,3,144,72,0,1505,1507,3,790,395,0,1506,1504,1,0,0,0,1506,1505,1,0,0,0,1507,117,1,0,0,0,1508,1509,5,26,0,0,1509,1514,3,116,58,0,1510,1511,5,25,0,0,1511,1513,3,116,58,0,1512,1510,1,0,0,0,1513,1516,1,0,0,0,1514,1512,1,0,0,0,1514,1515,1,0,0,0,1515,1517,1,0,0,0,1516,1514,1,0,0,0,1517,1518,5,27,0,0,1518,119,1,0,0,0,1519,1520,3,814,407,0,1520,1521,3,790,395,0,1521,121,1,0,0,0,1522,1523,3,790,395,0,1523,1524,5,24,0,0,1524,1525,3,790,395,0,1525,1528,1,0,0,0,1526,1528,3,804,402,0,1527,1522,1,0,0,0,1527,1526,1,0,0,0,1528,123,1,0,0,0,1529,1534,3,120,60,0,1530,1531,5,25,0,0,1531,1533,3,120,60,0,1532,1530,1,0,0,0,1533,1536,1,0,0,0,1534,1532,1,0,0,0,1534,1535,1,0,0,0,1535,1538,1,0,0,0,1536,1534,1,0,0,0,1537,1539,5,25,0,0,1538,1537,1,0,0,0,1538,1539,1,0,0,0,1539,125,1,0,0,0,1540,1545,3,122,61,0,1541,1542,5,25,0,0,1542,1544,3,122,61,0,1543,1541,1,0,0,0,1544,1547,1,0,0,0,1545,1543,1,0,0,0,1545,1546,1,0,0,0,1546,1549,1,0,0,0,1547,1545,1,0,0,0,1548,1550,5,25,0,0,1549,1548,1,0,0,0,1549,1550,1,0,0,0,1550,127,1,0,0,0,1551,1554,3,14,7,0,1552,1553,5,51,0,0,1553,1555,3,792,396,0,1554,1552,1,0,0,0,1554,1555,1,0,0,0,1555,129,1,0,0,0,1556,1561,3,128,64,0,1557,1558,5,25,0,0,1558,1560,3,128,64,0,1559,1557,1,0,0,0,1560,1563,1,0,0,0,1561,1559,1,0,0,0,1561,1562,1,0,0,0,1562,131,1,0,0,0,1563,1561,1,0,0,0,1564,1571,5,26,0,0,1565,1566,3,252,126,0,1566,1568,3,130,65,0,1567,1569,5,25,0,0,1568,1567,1,0,0,0,1568,1569,1,0,0,0,1569,1572,1,0,0,0,1570,1572,5,20,0,0,1571,1565,1,0,0,0,1571,1570,1,0,0,0,1571,1572,1,0,0,0,1572,1573,1,0,0,0,1573,1574,5,27,0,0,1574,1575,3,134,67,0,1575,133,1,0,0,0,1576,1579,3,716,358,0,1577,1579,3,718,359,0,1578,1576,1,0,0,0,1578,1577,1,0,0,0,1578,1579,1,0,0,0,1579,1582,1,0,0,0,1580,1581,5,214,0,0,1581,1583,3,720,360,0,1582,1580,1,0,0,0,1582,1583,1,0,0,0,1583,135,1,0,0,0,1584,1585,3,792,396,0,1585,1586,5,36,0,0,1586,1587,3,792,396,0,1587,1593,1,0,0,0,1588,1593,3,796,398,0,1589,1593,3,144,72,0,1590,1591,5,131,0,0,1591,1593,5,144,0,0,1592,1584,1,0,0,0,1592,1588,1,0,0,0,1592,1589,1,0,0,0,1592,1590,1,0,0,0,1593,1594,1,0,0,0,1594,1595,3,132,66,0,1595,137,1,0,0,0,1596,1597,5,39,0,0,1597,1598,3,14,7,0,1598,1599,5,38,0,0,1599,139,1,0,0,0,1600,1601,5,312,0,0,1601,1602,3,14,7,0,1602,1603,5,287,0,0,1603,1604,3,14,7,0,1604,141,1,0,0,0,1605,1616,3,854,427,0,1606,1616,3,852,426,0,1607,1616,5,319,0,0,1608,1616,5,325,0,0,1609,1616,5,199,0,0,1610,1616,5,92,0,0,1611,1616,5,91,0,0,1612,1616,5,93,0,0,1613,1616,3,850,425,0,1614,1616,5,116,0,0,1615,1605,1,0,0,0,1615,1606,1,0,0,0,1615,1607,1,0,0,0,1615,1608,1,0,0,0,1615,1609,1,0,0,0,1615,1610,1,0,0,0,1615,1611,1,0,0,0,1615,1612,1,0,0,0,1615,1613,1,0,0,0,1615,1614,1,0,0,0,1616,143,1,0,0,0,1617,1621,5,32,0,0,1618,1622,3,792,396,0,1619,1622,5,293,0,0,1620,1622,5,133,0,0,1621,1618,1,0,0,0,1621,1619,1,0,0,0,1621,1620,1,0,0,0,1622,145,1,0,0,0,1623,1625,3,144,72,0,1624,1626,5,28,0,0,1625,1624,1,0,0,0,1625,1626,1,0,0,0,1626,147,1,0,0,0,1627,1632,3,144,72,0,1628,1629,5,25,0,0,1629,1631,3,144,72,0,1630,1628,1,0,0,0,1631,1634,1,0,0,0,1632,1630,1,0,0,0,1632,1633,1,0,0,0,1633,149,1,0,0,0,1634,1632,1,0,0,0,1635,1638,3,144,72,0,1636,1637,5,51,0,0,1637,1639,3,144,72,0,1638,1636,1,0,0,0,1638,1639,1,0,0,0,1639,151,1,0,0,0,1640,1645,3,150,75,0,1641,1642,5,25,0,0,1642,1644,3,150,75,0,1643,1641,1,0,0,0,1644,1647,1,0,0,0,1645,1643,1,0,0,0,1645,1646,1,0,0,0,1646,153,1,0,0,0,1647,1645,1,0,0,0,1648,1650,7,3,0,0,1649,1648,1,0,0,0,1649,1650,1,0,0,0,1650,1653,1,0,0,0,1651,1654,3,854,427,0,1652,1654,3,852,426,0,1653,1651,1,0,0,0,1653,1652,1,0,0,0,1654,155,1,0,0,0,1655,1656,3,808,404,0,1656,157,1,0,0,0,1657,1660,3,854,427,0,1658,1660,3,144,72,0,1659,1657,1,0,0,0,1659,1658,1,0,0,0,1660,159,1,0,0,0,1661,1665,3,772,386,0,1662,1665,5,319,0,0,1663,1665,3,144,72,0,1664,1661,1,0,0,0,1664,1662,1,0,0,0,1664,1663,1,0,0,0,1665,161,1,0,0,0,1666,1667,3,160,80,0,1667,1668,5,29,0,0,1668,1669,3,204,102,0,1669,163,1,0,0,0,1670,1671,3,160,80,0,1671,1676,3,204,102,0,1672,1674,5,197,0,0,1673,1672,1,0,0,0,1673,1674,1,0,0,0,1674,1675,1,0,0,0,1675,1677,5,199,0,0,1676,1673,1,0,0,0,1676,1677,1,0,0,0,1677,1683,1,0,0,0,1678,1679,3,204,102,0,1679,1680,5,51,0,0,1680,1681,3,160,80,0,1681,1683,1,0,0,0,1682,1670,1,0,0,0,1682,1678,1,0,0,0,1683,165,1,0,0,0,1684,1685,3,160,80,0,1685,1686,5,29,0,0,1686,1688,1,0,0,0,1687,1684,1,0,0,0,1687,1688,1,0,0,0,1688,1689,1,0,0,0,1689,1690,3,204,102,0,1690,167,1,0,0,0,1691,1695,3,166,83,0,1692,1693,5,33,0,0,1693,1694,5,60,0,0,1694,1696,5,34,0,0,1695,1692,1,0,0,0,1695,1696,1,0,0,0,1696,169,1,0,0,0,1697,1702,3,168,84,0,1698,1699,5,25,0,0,1699,1701,3,168,84,0,1700,1698,1,0,0,0,1701,1704,1,0,0,0,1702,1700,1,0,0,0,1702,1703,1,0,0,0,1703,171,1,0,0,0,1704,1702,1,0,0,0,1705,1706,5,96,0,0,1706,1707,5,26,0,0,1707,1708,3,158,79,0,1708,1709,5,25,0,0,1709,1710,3,158,79,0,1710,1711,5,27,0,0,1711,173,1,0,0,0,1712,1713,5,209,0,0,1713,1714,5,6,0,0,1714,1715,3,204,102,0,1715,1716,5,8,0,0,1716,175,1,0,0,0,1717,1734,5,294,0,0,1718,1730,5,6,0,0,1719,1724,3,204,102,0,1720,1721,5,25,0,0,1721,1723,3,204,102,0,1722,1720,1,0,0,0,1723,1726,1,0,0,0,1724,1722,1,0,0,0,1724,1725,1,0,0,0,1725,1728,1,0,0,0,1726,1724,1,0,0,0,1727,1729,5,25,0,0,1728,1727,1,0,0,0,1728,1729,1,0,0,0,1729,1731,1,0,0,0,1730,1719,1,0,0,0,1730,1731,1,0,0,0,1731,1732,1,0,0,0,1732,1735,5,8,0,0,1733,1735,5,5,0,0,1734,1718,1,0,0,0,1734,1733,1,0,0,0,1735,177,1,0,0,0,1736,1753,5,273,0,0,1737,1749,5,6,0,0,1738,1743,3,162,81,0,1739,1740,5,25,0,0,1740,1742,3,162,81,0,1741,1739,1,0,0,0,1742,1745,1,0,0,0,1743,1741,1,0,0,0,1743,1744,1,0,0,0,1744,1747,1,0,0,0,1745,1743,1,0,0,0,1746,1748,5,25,0,0,1747,1746,1,0,0,0,1747,1748,1,0,0,0,1748,1750,1,0,0,0,1749,1738,1,0,0,0,1749,1750,1,0,0,0,1750,1751,1,0,0,0,1751,1754,5,8,0,0,1752,1754,5,5,0,0,1753,1737,1,0,0,0,1753,1752,1,0,0,0,1754,179,1,0,0,0,1755,1756,5,309,0,0,1756,1757,5,6,0,0,1757,1762,3,166,83,0,1758,1759,5,25,0,0,1759,1761,3,166,83,0,1760,1758,1,0,0,0,1761,1764,1,0,0,0,1762,1760,1,0,0,0,1762,1763,1,0,0,0,1763,1766,1,0,0,0,1764,1762,1,0,0,0,1765,1767,5,25,0,0,1766,1765,1,0,0,0,1766,1767,1,0,0,0,1767,1768,1,0,0,0,1768,1769,5,8,0,0,1769,181,1,0,0,0,1770,1771,5,183,0,0,1771,1772,5,6,0,0,1772,1773,3,204,102,0,1773,1774,5,8,0,0,1774,183,1,0,0,0,1775,1776,5,272,0,0,1776,1777,5,6,0,0,1777,1778,3,204,102,0,1778,1779,5,8,0,0,1779,185,1,0,0,0,1780,1781,5,138,0,0,1781,1782,5,6,0,0,1782,1783,3,204,102,0,1783,1784,5,8,0,0,1784,187,1,0,0,0,1785,1786,5,106,0,0,1786,1787,5,6,0,0,1787,1788,3,204,102,0,1788,1789,5,25,0,0,1789,1790,3,204,102,0,1790,1791,5,8,0,0,1791,189,1,0,0,0,1792,1793,5,267,0,0,1793,1794,5,6,0,0,1794,1795,3,204,102,0,1795,1796,5,8,0,0,1796,191,1,0,0,0,1797,1798,5,119,0,0,1798,1799,5,6,0,0,1799,1804,3,160,80,0,1800,1801,5,25,0,0,1801,1803,3,160,80,0,1802,1800,1,0,0,0,1803,1806,1,0,0,0,1804,1802,1,0,0,0,1804,1805,1,0,0,0,1805,1808,1,0,0,0,1806,1804,1,0,0,0,1807,1809,5,25,0,0,1808,1807,1,0,0,0,1808,1809,1,0,0,0,1809,1810,1,0,0,0,1810,1811,5,8,0,0,1811,193,1,0,0,0,1812,1813,5,245,0,0,1813,1814,5,6,0,0,1814,1815,3,160,80,0,1815,1816,5,8,0,0,1816,195,1,0,0,0,1817,1818,5,284,0,0,1818,1819,5,6,0,0,1819,1820,3,204,102,0,1820,1821,5,25,0,0,1821,1822,3,160,80,0,1822,1823,5,8,0,0,1823,197,1,0,0,0,1824,1825,5,69,0,0,1825,1826,5,6,0,0,1826,1828,5,26,0,0,1827,1829,3,170,85,0,1828,1827,1,0,0,0,1828,1829,1,0,0,0,1829,1831,1,0,0,0,1830,1832,5,25,0,0,1831,1830,1,0,0,0,1831,1832,1,0,0,0,1832,1837,1,0,0,0,1833,1834,5,39,0,0,1834,1835,3,170,85,0,1835,1836,5,38,0,0,1836,1838,1,0,0,0,1837,1833,1,0,0,0,1837,1838,1,0,0,0,1838,1839,1,0,0,0,1839,1840,5,27,0,0,1840,1841,5,37,0,0,1841,1842,3,204,102,0,1842,1843,5,8,0,0,1843,199,1,0,0,0,1844,1858,3,174,87,0,1845,1858,3,176,88,0,1846,1858,3,178,89,0,1847,1858,3,180,90,0,1848,1858,3,182,91,0,1849,1858,3,184,92,0,1850,1858,3,186,93,0,1851,1858,3,188,94,0,1852,1858,3,190,95,0,1853,1858,3,192,96,0,1854,1858,3,194,97,0,1855,1858,3,196,98,0,1856,1858,3,198,99,0,1857,1844,1,0,0,0,1857,1845,1,0,0,0,1857,1846,1,0,0,0,1857,1847,1,0,0,0,1857,1848,1,0,0,0,1857,1849,1,0,0,0,1857,1850,1,0,0,0,1857,1851,1,0,0,0,1857,1852,1,0,0,0,1857,1853,1,0,0,0,1857,1854,1,0,0,0,1857,1855,1,0,0,0,1857,1856,1,0,0,0,1858,1862,1,0,0,0,1859,1861,5,28,0,0,1860,1859,1,0,0,0,1861,1864,1,0,0,0,1862,1860,1,0,0,0,1862,1863,1,0,0,0,1863,201,1,0,0,0,1864,1862,1,0,0,0,1865,1877,3,200,100,0,1866,1869,3,172,86,0,1867,1869,3,156,78,0,1868,1866,1,0,0,0,1868,1867,1,0,0,0,1869,1873,1,0,0,0,1870,1872,5,28,0,0,1871,1870,1,0,0,0,1872,1875,1,0,0,0,1873,1871,1,0,0,0,1873,1874,1,0,0,0,1874,1877,1,0,0,0,1875,1873,1,0,0,0,1876,1865,1,0,0,0,1876,1868,1,0,0,0,1877,203,1,0,0,0,1878,1881,3,202,101,0,1879,1881,3,144,72,0,1880,1878,1,0,0,0,1880,1879,1,0,0,0,1881,205,1,0,0,0,1882,1883,5,319,0,0,1883,207,1,0,0,0,1884,1885,5,309,0,0,1885,1886,5,26,0,0,1886,1887,3,14,7,0,1887,1888,5,25,0,0,1888,1889,3,14,7,0,1889,1890,5,25,0,0,1890,1891,3,14,7,0,1891,1892,5,27,0,0,1892,1908,1,0,0,0,1893,1894,5,119,0,0,1894,1895,5,26,0,0,1895,1896,3,14,7,0,1896,1897,5,25,0,0,1897,1898,3,14,7,0,1898,1899,5,27,0,0,1899,1908,1,0,0,0,1900,1901,5,69,0,0,1901,1902,5,26,0,0,1902,1903,3,14,7,0,1903,1904,5,25,0,0,1904,1905,3,14,7,0,1905,1906,5,27,0,0,1906,1908,1,0,0,0,1907,1884,1,0,0,0,1907,1893,1,0,0,0,1907,1900,1,0,0,0,1908,209,1,0,0,0,1909,1910,5,97,0,0,1910,1911,3,144,72,0,1911,1912,5,51,0,0,1912,1915,3,202,101,0,1913,1914,5,2,0,0,1914,1916,3,142,71,0,1915,1913,1,0,0,0,1915,1916,1,0,0,0,1916,211,1,0,0,0,1917,1919,5,24,0,0,1918,1917,1,0,0,0,1918,1919,1,0,0,0,1919,1920,1,0,0,0,1920,1925,3,790,395,0,1921,1922,5,24,0,0,1922,1924,3,790,395,0,1923,1921,1,0,0,0,1924,1927,1,0,0,0,1925,1923,1,0,0,0,1925,1926,1,0,0,0,1926,213,1,0,0,0,1927,1925,1,0,0,0,1928,1929,5,158,0,0,1929,1930,3,212,106,0,1930,1931,5,276,0,0,1931,1932,3,152,76,0,1932,215,1,0,0,0,1933,1934,5,130,0,0,1934,1935,3,148,74,0,1935,217,1,0,0,0,1936,1939,3,144,72,0,1937,1939,5,116,0,0,1938,1936,1,0,0,0,1938,1937,1,0,0,0,1939,1940,1,0,0,0,1940,1942,5,26,0,0,1941,1943,3,112,56,0,1942,1941,1,0,0,0,1942,1943,1,0,0,0,1943,1944,1,0,0,0,1944,1945,5,27,0,0,1945,219,1,0,0,0,1946,1947,5,64,0,0,1947,1948,3,626,313,0,1948,1949,5,118,0,0,1949,1950,5,111,0,0,1950,221,1,0,0,0,1951,1954,5,111,0,0,1952,1955,3,218,109,0,1953,1955,3,220,110,0,1954,1952,1,0,0,0,1954,1953,1,0,0,0,1955,223,1,0,0,0,1956,1957,5,225,0,0,1957,1958,3,820,410,0,1958,1972,3,790,395,0,1959,1960,5,2,0,0,1960,1973,3,226,113,0,1961,1962,5,26,0,0,1962,1967,3,226,113,0,1963,1964,5,25,0,0,1964,1966,3,226,113,0,1965,1963,1,0,0,0,1966,1969,1,0,0,0,1967,1965,1,0,0,0,1967,1968,1,0,0,0,1968,1970,1,0,0,0,1969,1967,1,0,0,0,1970,1971,5,27,0,0,1971,1973,1,0,0,0,1972,1959,1,0,0,0,1972,1961,1,0,0,0,1972,1973,1,0,0,0,1973,225,1,0,0,0,1974,1980,3,154,77,0,1975,1980,3,772,386,0,1976,1980,5,319,0,0,1977,1980,3,850,425,0,1978,1980,3,144,72,0,1979,1974,1,0,0,0,1979,1975,1,0,0,0,1979,1976,1,0,0,0,1979,1977,1,0,0,0,1979,1978,1,0,0,0,1980,227,1,0,0,0,1981,1983,3,14,7,0,1982,1984,7,9,0,0,1983,1982,1,0,0,0,1983,1984,1,0,0,0,1984,229,1,0,0,0,1985,1990,3,228,114,0,1986,1987,5,25,0,0,1987,1989,3,228,114,0,1988,1986,1,0,0,0,1989,1992,1,0,0,0,1990,1988,1,0,0,0,1990,1991,1,0,0,0,1991,231,1,0,0,0,1992,1990,1,0,0,0,1993,1999,3,236,118,0,1994,1995,3,238,119,0,1995,1996,3,236,118,0,1996,1998,1,0,0,0,1997,1994,1,0,0,0,1998,2001,1,0,0,0,1999,1997,1,0,0,0,1999,2e3,1,0,0,0,2e3,233,1,0,0,0,2001,1999,1,0,0,0,2002,2008,3,240,120,0,2003,2004,3,238,119,0,2004,2005,3,236,118,0,2005,2007,1,0,0,0,2006,2003,1,0,0,0,2007,2010,1,0,0,0,2008,2006,1,0,0,0,2008,2009,1,0,0,0,2009,235,1,0,0,0,2010,2008,1,0,0,0,2011,2017,3,240,120,0,2012,2013,5,26,0,0,2013,2014,3,240,120,0,2014,2015,5,27,0,0,2015,2017,1,0,0,0,2016,2011,1,0,0,0,2016,2012,1,0,0,0,2017,237,1,0,0,0,2018,2020,5,298,0,0,2019,2021,5,44,0,0,2020,2019,1,0,0,0,2020,2021,1,0,0,0,2021,2025,1,0,0,0,2022,2025,5,169,0,0,2023,2025,5,124,0,0,2024,2018,1,0,0,0,2024,2022,1,0,0,0,2024,2023,1,0,0,0,2025,239,1,0,0,0,2026,2033,3,242,121,0,2027,2028,5,182,0,0,2028,2031,3,14,7,0,2029,2030,7,10,0,0,2030,2032,3,14,7,0,2031,2029,1,0,0,0,2031,2032,1,0,0,0,2032,2034,1,0,0,0,2033,2027,1,0,0,0,2033,2034,1,0,0,0,2034,241,1,0,0,0,2035,2037,5,109,0,0,2036,2035,1,0,0,0,2036,2037,1,0,0,0,2037,2041,1,0,0,0,2038,2042,3,244,122,0,2039,2042,3,250,125,0,2040,2042,3,254,127,0,2041,2038,1,0,0,0,2041,2039,1,0,0,0,2041,2040,1,0,0,0,2042,2046,1,0,0,0,2043,2044,5,170,0,0,2044,2045,5,249,0,0,2045,2047,3,116,58,0,2046,2043,1,0,0,0,2046,2047,1,0,0,0,2047,243,1,0,0,0,2048,2050,5,230,0,0,2049,2051,5,272,0,0,2050,2049,1,0,0,0,2050,2051,1,0,0,0,2051,2052,1,0,0,0,2052,2057,3,346,173,0,2053,2054,5,25,0,0,2054,2056,3,346,173,0,2055,2053,1,0,0,0,2056,2059,1,0,0,0,2057,2055,1,0,0,0,2057,2058,1,0,0,0,2058,2081,1,0,0,0,2059,2057,1,0,0,0,2060,2061,5,306,0,0,2061,2064,3,136,68,0,2062,2063,5,51,0,0,2063,2065,3,790,395,0,2064,2062,1,0,0,0,2064,2065,1,0,0,0,2065,2068,1,0,0,0,2066,2067,5,315,0,0,2067,2069,3,248,124,0,2068,2066,1,0,0,0,2068,2069,1,0,0,0,2069,2071,1,0,0,0,2070,2072,3,866,433,0,2071,2070,1,0,0,0,2071,2072,1,0,0,0,2072,2075,1,0,0,0,2073,2074,5,152,0,0,2074,2076,3,14,7,0,2075,2073,1,0,0,0,2075,2076,1,0,0,0,2076,2079,1,0,0,0,2077,2078,5,53,0,0,2078,2080,3,314,157,0,2079,2077,1,0,0,0,2079,2080,1,0,0,0,2080,2082,1,0,0,0,2081,2060,1,0,0,0,2081,2082,1,0,0,0,2082,245,1,0,0,0,2083,2084,3,790,395,0,2084,2085,5,2,0,0,2085,2086,3,14,7,0,2086,247,1,0,0,0,2087,2092,3,246,123,0,2088,2089,5,25,0,0,2089,2091,3,246,123,0,2090,2088,1,0,0,0,2091,2094,1,0,0,0,2092,2090,1,0,0,0,2092,2093,1,0,0,0,2093,249,1,0,0,0,2094,2092,1,0,0,0,2095,2096,5,234,0,0,2096,2101,3,346,173,0,2097,2098,5,25,0,0,2098,2100,3,346,173,0,2099,2097,1,0,0,0,2100,2103,1,0,0,0,2101,2099,1,0,0,0,2101,2102,1,0,0,0,2102,2106,1,0,0,0,2103,2101,1,0,0,0,2104,2105,5,227,0,0,2105,2107,3,230,115,0,2106,2104,1,0,0,0,2106,2107,1,0,0,0,2107,2108,1,0,0,0,2108,2109,5,205,0,0,2109,2110,3,124,62,0,2110,2112,5,306,0,0,2111,2113,5,44,0,0,2112,2111,1,0,0,0,2112,2113,1,0,0,0,2113,2114,1,0,0,0,2114,2117,3,136,68,0,2115,2116,5,51,0,0,2116,2118,3,790,395,0,2117,2115,1,0,0,0,2117,2118,1,0,0,0,2118,2120,1,0,0,0,2119,2121,3,866,433,0,2120,2119,1,0,0,0,2120,2121,1,0,0,0,2121,2124,1,0,0,0,2122,2123,5,152,0,0,2123,2125,3,14,7,0,2124,2122,1,0,0,0,2124,2125,1,0,0,0,2125,2128,1,0,0,0,2126,2127,5,53,0,0,2127,2129,3,314,157,0,2128,2126,1,0,0,0,2128,2129,1,0,0,0,2129,251,1,0,0,0,2130,2132,7,11,0,0,2131,2130,1,0,0,0,2131,2132,1,0,0,0,2132,253,1,0,0,0,2133,2135,3,868,434,0,2134,2133,1,0,0,0,2134,2135,1,0,0,0,2135,2136,1,0,0,0,2136,2138,5,265,0,0,2137,2139,5,272,0,0,2138,2137,1,0,0,0,2138,2139,1,0,0,0,2139,2140,1,0,0,0,2140,2141,3,252,126,0,2141,2146,3,336,168,0,2142,2143,5,25,0,0,2143,2145,3,336,168,0,2144,2142,1,0,0,0,2145,2148,1,0,0,0,2146,2144,1,0,0,0,2146,2147,1,0,0,0,2147,2150,1,0,0,0,2148,2146,1,0,0,0,2149,2151,5,25,0,0,2150,2149,1,0,0,0,2150,2151,1,0,0,0,2151,2154,1,0,0,0,2152,2153,5,316,0,0,2153,2155,3,126,63,0,2154,2152,1,0,0,0,2154,2155,1,0,0,0,2155,2157,1,0,0,0,2156,2158,3,868,434,0,2157,2156,1,0,0,0,2157,2158,1,0,0,0,2158,2160,1,0,0,0,2159,2161,3,866,433,0,2160,2159,1,0,0,0,2160,2161,1,0,0,0,2161,2163,1,0,0,0,2162,2164,3,318,159,0,2163,2162,1,0,0,0,2163,2164,1,0,0,0,2164,2167,1,0,0,0,2165,2166,5,152,0,0,2166,2168,3,14,7,0,2167,2165,1,0,0,0,2167,2168,1,0,0,0,2168,2170,1,0,0,0,2169,2171,3,724,362,0,2170,2169,1,0,0,0,2170,2171,1,0,0,0,2171,2173,1,0,0,0,2172,2174,3,316,158,0,2173,2172,1,0,0,0,2173,2174,1,0,0,0,2174,255,1,0,0,0,2175,2176,5,188,0,0,2176,2178,5,26,0,0,2177,2179,3,738,369,0,2178,2177,1,0,0,0,2178,2179,1,0,0,0,2179,2181,1,0,0,0,2180,2182,3,314,157,0,2181,2180,1,0,0,0,2181,2182,1,0,0,0,2182,2184,1,0,0,0,2183,2185,3,262,131,0,2184,2183,1,0,0,0,2184,2185,1,0,0,0,2185,2187,1,0,0,0,2186,2188,3,258,129,0,2187,2186,1,0,0,0,2187,2188,1,0,0,0,2188,2189,1,0,0,0,2189,2190,3,268,134,0,2190,2191,5,27,0,0,2191,257,1,0,0,0,2192,2193,5,206,0,0,2193,2194,5,258,0,0,2194,2195,5,221,0,0,2195,2204,5,186,0,0,2196,2197,5,44,0,0,2197,2198,5,259,0,0,2198,2199,5,221,0,0,2199,2201,5,186,0,0,2200,2202,3,260,130,0,2201,2200,1,0,0,0,2201,2202,1,0,0,0,2202,2204,1,0,0,0,2203,2192,1,0,0,0,2203,2196,1,0,0,0,2204,259,1,0,0,0,2205,2206,5,269,0,0,2206,2207,5,115,0,0,2207,2215,5,187,0,0,2208,2209,5,204,0,0,2209,2210,5,115,0,0,2210,2215,5,187,0,0,2211,2212,5,315,0,0,2212,2213,5,301,0,0,2213,2215,5,259,0,0,2214,2205,1,0,0,0,2214,2208,1,0,0,0,2214,2211,1,0,0,0,2215,261,1,0,0,0,2216,2217,5,189,0,0,2217,2218,3,264,132,0,2218,263,1,0,0,0,2219,2224,3,266,133,0,2220,2221,5,25,0,0,2221,2223,3,266,133,0,2222,2220,1,0,0,0,2223,2226,1,0,0,0,2224,2222,1,0,0,0,2224,2225,1,0,0,0,2225,265,1,0,0,0,2226,2224,1,0,0,0,2227,2228,3,14,7,0,2228,2229,5,51,0,0,2229,2230,3,790,395,0,2230,267,1,0,0,0,2231,2232,5,43,0,0,2232,2233,5,186,0,0,2233,2235,3,270,135,0,2234,2231,1,0,0,0,2234,2235,1,0,0,0,2235,2237,1,0,0,0,2236,2238,3,274,137,0,2237,2236,1,0,0,0,2237,2238,1,0,0,0,2238,2239,1,0,0,0,2239,2240,5,220,0,0,2240,2241,5,26,0,0,2241,2242,3,276,138,0,2242,2244,5,27,0,0,2243,2245,3,290,145,0,2244,2243,1,0,0,0,2244,2245,1,0,0,0,2245,2246,1,0,0,0,2246,2247,5,101,0,0,2247,2248,3,302,151,0,2248,269,1,0,0,0,2249,2250,5,270,0,0,2250,2251,5,289,0,0,2251,2252,5,195,0,0,2252,2269,5,258,0,0,2253,2254,5,270,0,0,2254,2255,5,219,0,0,2255,2256,5,178,0,0,2256,2269,5,258,0,0,2257,2258,5,270,0,0,2258,2259,5,289,0,0,2259,2260,5,136,0,0,2260,2269,3,272,136,0,2261,2262,5,270,0,0,2262,2263,5,289,0,0,2263,2264,5,178,0,0,2264,2269,3,272,136,0,2265,2266,5,270,0,0,2266,2267,5,289,0,0,2267,2269,3,272,136,0,2268,2249,1,0,0,0,2268,2253,1,0,0,0,2268,2257,1,0,0,0,2268,2261,1,0,0,0,2268,2265,1,0,0,0,2269,271,1,0,0,0,2270,2271,3,312,156,0,2271,273,1,0,0,0,2272,2273,7,12,0,0,2273,275,1,0,0,0,2274,2279,3,278,139,0,2275,2276,5,13,0,0,2276,2278,3,278,139,0,2277,2275,1,0,0,0,2278,2281,1,0,0,0,2279,2277,1,0,0,0,2279,2280,1,0,0,0,2280,277,1,0,0,0,2281,2279,1,0,0,0,2282,2284,3,280,140,0,2283,2282,1,0,0,0,2284,2285,1,0,0,0,2285,2283,1,0,0,0,2285,2286,1,0,0,0,2286,279,1,0,0,0,2287,2289,3,284,142,0,2288,2290,3,282,141,0,2289,2288,1,0,0,0,2289,2290,1,0,0,0,2290,281,1,0,0,0,2291,2293,5,20,0,0,2292,2294,5,28,0,0,2293,2292,1,0,0,0,2293,2294,1,0,0,0,2294,2320,1,0,0,0,2295,2297,5,17,0,0,2296,2298,5,28,0,0,2297,2296,1,0,0,0,2297,2298,1,0,0,0,2298,2320,1,0,0,0,2299,2301,5,28,0,0,2300,2302,5,28,0,0,2301,2300,1,0,0,0,2301,2302,1,0,0,0,2302,2320,1,0,0,0,2303,2305,5,33,0,0,2304,2306,3,854,427,0,2305,2304,1,0,0,0,2305,2306,1,0,0,0,2306,2307,1,0,0,0,2307,2309,5,25,0,0,2308,2310,3,854,427,0,2309,2308,1,0,0,0,2309,2310,1,0,0,0,2310,2311,1,0,0,0,2311,2313,5,34,0,0,2312,2314,5,28,0,0,2313,2312,1,0,0,0,2313,2314,1,0,0,0,2314,2320,1,0,0,0,2315,2316,5,33,0,0,2316,2317,3,854,427,0,2317,2318,5,34,0,0,2318,2320,1,0,0,0,2319,2291,1,0,0,0,2319,2295,1,0,0,0,2319,2299,1,0,0,0,2319,2303,1,0,0,0,2319,2315,1,0,0,0,2320,283,1,0,0,0,2321,2337,3,286,143,0,2322,2337,5,32,0,0,2323,2337,5,35,0,0,2324,2326,5,26,0,0,2325,2327,3,276,138,0,2326,2325,1,0,0,0,2326,2327,1,0,0,0,2327,2328,1,0,0,0,2328,2337,5,27,0,0,2329,2330,5,33,0,0,2330,2331,5,18,0,0,2331,2332,3,276,138,0,2332,2333,5,18,0,0,2333,2334,5,34,0,0,2334,2337,1,0,0,0,2335,2337,3,288,144,0,2336,2321,1,0,0,0,2336,2322,1,0,0,0,2336,2323,1,0,0,0,2336,2324,1,0,0,0,2336,2329,1,0,0,0,2336,2335,1,0,0,0,2337,285,1,0,0,0,2338,2339,3,312,156,0,2339,287,1,0,0,0,2340,2341,5,222,0,0,2341,2342,5,26,0,0,2342,2347,3,276,138,0,2343,2344,5,25,0,0,2344,2346,3,276,138,0,2345,2343,1,0,0,0,2346,2349,1,0,0,0,2347,2345,1,0,0,0,2347,2348,1,0,0,0,2348,2350,1,0,0,0,2349,2347,1,0,0,0,2350,2351,5,27,0,0,2351,289,1,0,0,0,2352,2353,5,275,0,0,2353,2354,3,292,146,0,2354,291,1,0,0,0,2355,2360,3,294,147,0,2356,2357,5,25,0,0,2357,2359,3,294,147,0,2358,2356,1,0,0,0,2359,2362,1,0,0,0,2360,2358,1,0,0,0,2360,2361,1,0,0,0,2361,293,1,0,0,0,2362,2360,1,0,0,0,2363,2364,3,296,148,0,2364,2365,5,2,0,0,2365,2366,5,26,0,0,2366,2367,3,298,149,0,2367,2368,5,27,0,0,2368,295,1,0,0,0,2369,2370,3,312,156,0,2370,297,1,0,0,0,2371,2376,3,300,150,0,2372,2373,5,25,0,0,2373,2375,3,300,150,0,2374,2372,1,0,0,0,2375,2378,1,0,0,0,2376,2374,1,0,0,0,2376,2377,1,0,0,0,2377,299,1,0,0,0,2378,2376,1,0,0,0,2379,2380,3,312,156,0,2380,301,1,0,0,0,2381,2386,3,304,152,0,2382,2383,5,25,0,0,2383,2385,3,304,152,0,2384,2382,1,0,0,0,2385,2388,1,0,0,0,2386,2384,1,0,0,0,2386,2387,1,0,0,0,2387,303,1,0,0,0,2388,2386,1,0,0,0,2389,2390,3,306,153,0,2390,2391,5,51,0,0,2391,2392,3,308,154,0,2392,305,1,0,0,0,2393,2394,3,312,156,0,2394,307,1,0,0,0,2395,2396,3,310,155,0,2396,309,1,0,0,0,2397,2398,3,14,7,0,2398,311,1,0,0,0,2399,2400,3,770,385,0,2400,313,1,0,0,0,2401,2402,5,211,0,0,2402,2403,5,68,0,0,2403,2404,3,230,115,0,2404,315,1,0,0,0,2405,2407,5,53,0,0,2406,2405,1,0,0,0,2406,2407,1,0,0,0,2407,2408,1,0,0,0,2408,2409,3,314,157,0,2409,317,1,0,0,0,2410,2412,5,148,0,0,2411,2413,5,80,0,0,2412,2411,1,0,0,0,2412,2413,1,0,0,0,2413,2414,1,0,0,0,2414,2415,5,68,0,0,2415,2416,3,252,126,0,2416,2419,3,320,160,0,2417,2418,5,315,0,0,2418,2420,3,790,395,0,2419,2417,1,0,0,0,2419,2420,1,0,0,0,2420,319,1,0,0,0,2421,2426,3,322,161,0,2422,2423,5,25,0,0,2423,2425,3,322,161,0,2424,2422,1,0,0,0,2425,2428,1,0,0,0,2426,2424,1,0,0,0,2426,2427,1,0,0,0,2427,321,1,0,0,0,2428,2426,1,0,0,0,2429,2435,3,324,162,0,2430,2435,3,328,164,0,2431,2435,3,330,165,0,2432,2435,3,332,166,0,2433,2435,3,334,167,0,2434,2429,1,0,0,0,2434,2430,1,0,0,0,2434,2431,1,0,0,0,2434,2432,1,0,0,0,2434,2433,1,0,0,0,2435,323,1,0,0,0,2436,2437,3,128,64,0,2437,325,1,0,0,0,2438,2443,3,324,162,0,2439,2440,5,25,0,0,2440,2442,3,324,162,0,2441,2439,1,0,0,0,2442,2445,1,0,0,0,2443,2441,1,0,0,0,2443,2444,1,0,0,0,2444,327,1,0,0,0,2445,2443,1,0,0,0,2446,2447,5,257,0,0,2447,2448,5,26,0,0,2448,2449,3,326,163,0,2449,2450,5,27,0,0,2450,329,1,0,0,0,2451,2452,5,89,0,0,2452,2453,5,26,0,0,2453,2454,3,326,163,0,2454,2455,5,27,0,0,2455,331,1,0,0,0,2456,2457,5,149,0,0,2457,2458,5,268,0,0,2458,2459,5,26,0,0,2459,2460,3,320,160,0,2460,2461,5,27,0,0,2461,333,1,0,0,0,2462,2463,5,153,0,0,2463,2464,5,26,0,0,2464,2465,3,14,7,0,2465,2466,5,25,0,0,2466,2467,3,14,7,0,2467,2468,5,25,0,0,2468,2469,3,14,7,0,2469,2470,5,25,0,0,2470,2471,3,14,7,0,2471,2472,5,27,0,0,2472,335,1,0,0,0,2473,2474,3,814,407,0,2474,2475,5,20,0,0,2475,2483,1,0,0,0,2476,2480,3,14,7,0,2477,2478,5,51,0,0,2478,2481,3,792,396,0,2479,2481,3,810,405,0,2480,2477,1,0,0,0,2480,2479,1,0,0,0,2480,2481,1,0,0,0,2481,2483,1,0,0,0,2482,2473,1,0,0,0,2482,2476,1,0,0,0,2483,337,1,0,0,0,2484,2486,5,49,0,0,2485,2484,1,0,0,0,2485,2486,1,0,0,0,2486,2487,1,0,0,0,2487,2498,3,344,172,0,2488,2490,3,358,179,0,2489,2491,5,49,0,0,2490,2489,1,0,0,0,2490,2491,1,0,0,0,2491,2492,1,0,0,0,2492,2494,3,344,172,0,2493,2495,3,360,180,0,2494,2493,1,0,0,0,2494,2495,1,0,0,0,2495,2497,1,0,0,0,2496,2488,1,0,0,0,2497,2500,1,0,0,0,2498,2496,1,0,0,0,2498,2499,1,0,0,0,2499,339,1,0,0,0,2500,2498,1,0,0,0,2501,2504,3,120,60,0,2502,2503,5,51,0,0,2503,2505,3,790,395,0,2504,2502,1,0,0,0,2504,2505,1,0,0,0,2505,341,1,0,0,0,2506,2515,3,340,170,0,2507,2508,5,26,0,0,2508,2510,3,130,65,0,2509,2511,5,25,0,0,2510,2509,1,0,0,0,2510,2511,1,0,0,0,2511,2512,1,0,0,0,2512,2513,5,27,0,0,2513,2515,1,0,0,0,2514,2506,1,0,0,0,2514,2507,1,0,0,0,2515,343,1,0,0,0,2516,2526,3,346,173,0,2517,2524,5,137,0,0,2518,2520,7,13,0,0,2519,2518,1,0,0,0,2519,2520,1,0,0,0,2520,2521,1,0,0,0,2521,2522,5,68,0,0,2522,2525,3,342,171,0,2523,2525,5,78,0,0,2524,2519,1,0,0,0,2524,2523,1,0,0,0,2525,2527,1,0,0,0,2526,2517,1,0,0,0,2526,2527,1,0,0,0,2527,345,1,0,0,0,2528,2530,3,348,174,0,2529,2531,3,256,128,0,2530,2529,1,0,0,0,2530,2531,1,0,0,0,2531,2540,1,0,0,0,2532,2533,5,51,0,0,2533,2536,3,790,395,0,2534,2536,3,810,405,0,2535,2532,1,0,0,0,2535,2534,1,0,0,0,2536,2538,1,0,0,0,2537,2539,3,114,57,0,2538,2537,1,0,0,0,2538,2539,1,0,0,0,2539,2541,1,0,0,0,2540,2535,1,0,0,0,2540,2541,1,0,0,0,2541,2544,1,0,0,0,2542,2545,3,350,175,0,2543,2545,3,352,176,0,2544,2542,1,0,0,0,2544,2543,1,0,0,0,2544,2545,1,0,0,0,2545,347,1,0,0,0,2546,2556,3,632,316,0,2547,2548,5,26,0,0,2548,2549,3,232,116,0,2549,2550,5,27,0,0,2550,2556,1,0,0,0,2551,2552,5,26,0,0,2552,2553,3,370,185,0,2553,2554,5,27,0,0,2554,2556,1,0,0,0,2555,2546,1,0,0,0,2555,2547,1,0,0,0,2555,2551,1,0,0,0,2556,349,1,0,0,0,2557,2558,5,260,0,0,2558,2559,3,14,7,0,2559,351,1,0,0,0,2560,2561,5,282,0,0,2561,2562,3,354,177,0,2562,2563,5,26,0,0,2563,2564,3,14,7,0,2564,2566,5,27,0,0,2565,2567,3,356,178,0,2566,2565,1,0,0,0,2566,2567,1,0,0,0,2567,353,1,0,0,0,2568,2569,7,14,0,0,2569,355,1,0,0,0,2570,2571,5,241,0,0,2571,2572,5,26,0,0,2572,2573,3,14,7,0,2573,2574,5,27,0,0,2574,357,1,0,0,0,2575,2600,5,25,0,0,2576,2578,5,194,0,0,2577,2576,1,0,0,0,2577,2578,1,0,0,0,2578,2596,1,0,0,0,2579,2581,5,179,0,0,2580,2582,7,15,0,0,2581,2580,1,0,0,0,2581,2582,1,0,0,0,2582,2590,1,0,0,0,2583,2585,5,254,0,0,2584,2586,7,15,0,0,2585,2584,1,0,0,0,2585,2586,1,0,0,0,2586,2590,1,0,0,0,2587,2590,5,126,0,0,2588,2590,5,143,0,0,2589,2579,1,0,0,0,2589,2583,1,0,0,0,2589,2587,1,0,0,0,2589,2588,1,0,0,0,2589,2590,1,0,0,0,2590,2592,1,0,0,0,2591,2593,5,213,0,0,2592,2591,1,0,0,0,2592,2593,1,0,0,0,2593,2597,1,0,0,0,2594,2597,5,166,0,0,2595,2597,5,88,0,0,2596,2589,1,0,0,0,2596,2594,1,0,0,0,2596,2595,1,0,0,0,2597,2598,1,0,0,0,2598,2600,5,173,0,0,2599,2575,1,0,0,0,2599,2577,1,0,0,0,2600,359,1,0,0,0,2601,2602,5,205,0,0,2602,2606,3,14,7,0,2603,2604,5,306,0,0,2604,2606,3,118,59,0,2605,2601,1,0,0,0,2605,2603,1,0,0,0,2606,361,1,0,0,0,2607,2617,5,251,0,0,2608,2618,5,20,0,0,2609,2614,3,790,395,0,2610,2611,5,25,0,0,2611,2613,3,790,395,0,2612,2610,1,0,0,0,2613,2616,1,0,0,0,2614,2612,1,0,0,0,2614,2615,1,0,0,0,2615,2618,1,0,0,0,2616,2614,1,0,0,0,2617,2608,1,0,0,0,2617,2609,1,0,0,0,2618,363,1,0,0,0,2619,2632,5,167,0,0,2620,2621,5,167,0,0,2621,2622,5,210,0,0,2622,2632,5,40,0,0,2623,2624,5,167,0,0,2624,2625,5,210,0,0,2625,2632,5,252,0,0,2626,2627,5,167,0,0,2627,2628,5,210,0,0,2628,2632,5,155,0,0,2629,2632,5,303,0,0,2630,2632,5,242,0,0,2631,2619,1,0,0,0,2631,2620,1,0,0,0,2631,2623,1,0,0,0,2631,2626,1,0,0,0,2631,2629,1,0,0,0,2631,2630,1,0,0,0,2632,2633,1,0,0,0,2633,2634,5,170,0,0,2634,2635,3,648,324,0,2635,2637,3,368,184,0,2636,2638,3,362,181,0,2637,2636,1,0,0,0,2637,2638,1,0,0,0,2638,365,1,0,0,0,2639,2651,5,167,0,0,2640,2641,5,167,0,0,2641,2642,5,210,0,0,2642,2651,5,40,0,0,2643,2644,5,167,0,0,2644,2645,5,210,0,0,2645,2651,5,252,0,0,2646,2647,5,167,0,0,2647,2648,5,210,0,0,2648,2651,5,155,0,0,2649,2651,5,242,0,0,2650,2639,1,0,0,0,2650,2640,1,0,0,0,2650,2643,1,0,0,0,2650,2646,1,0,0,0,2650,2649,1,0,0,0,2651,2652,1,0,0,0,2652,2653,5,170,0,0,2653,2654,3,648,324,0,2654,2655,3,368,184,0,2655,367,1,0,0,0,2656,2658,3,114,57,0,2657,2656,1,0,0,0,2657,2658,1,0,0,0,2658,2659,1,0,0,0,2659,2663,3,372,186,0,2660,2661,5,98,0,0,2661,2663,5,308,0,0,2662,2657,1,0,0,0,2662,2660,1,0,0,0,2663,369,1,0,0,0,2664,2665,5,308,0,0,2665,2666,3,374,187,0,2666,371,1,0,0,0,2667,2670,3,370,185,0,2668,2670,3,232,116,0,2669,2667,1,0,0,0,2669,2668,1,0,0,0,2670,373,1,0,0,0,2671,2676,3,376,188,0,2672,2673,5,25,0,0,2673,2675,3,376,188,0,2674,2672,1,0,0,0,2675,2678,1,0,0,0,2676,2674,1,0,0,0,2676,2677,1,0,0,0,2677,375,1,0,0,0,2678,2676,1,0,0,0,2679,2680,5,26,0,0,2680,2681,3,112,56,0,2681,2682,5,27,0,0,2682,377,1,0,0,0,2683,2686,3,112,56,0,2684,2686,3,232,116,0,2685,2683,1,0,0,0,2685,2684,1,0,0,0,2686,379,1,0,0,0,2687,2690,5,87,0,0,2688,2689,5,210,0,0,2689,2691,5,242,0,0,2690,2688,1,0,0,0,2690,2691,1,0,0,0,2691,2692,1,0,0,0,2692,2693,5,131,0,0,2693,2694,5,94,0,0,2694,2698,5,271,0,0,2695,2696,5,154,0,0,2696,2697,5,197,0,0,2697,2699,5,128,0,0,2698,2695,1,0,0,0,2698,2699,1,0,0,0,2699,2700,1,0,0,0,2700,2701,3,642,321,0,2701,2702,3,456,228,0,2702,381,1,0,0,0,2703,2704,5,45,0,0,2704,2705,5,131,0,0,2705,2706,5,94,0,0,2706,2707,5,271,0,0,2707,2708,3,642,321,0,2708,2713,3,384,192,0,2709,2710,5,25,0,0,2710,2712,3,384,192,0,2711,2709,1,0,0,0,2712,2715,1,0,0,0,2713,2711,1,0,0,0,2713,2714,1,0,0,0,2714,383,1,0,0,0,2715,2713,1,0,0,0,2716,2720,3,488,244,0,2717,2720,3,490,245,0,2718,2720,3,492,246,0,2719,2716,1,0,0,0,2719,2717,1,0,0,0,2719,2718,1,0,0,0,2720,385,1,0,0,0,2721,2722,5,112,0,0,2722,2723,5,131,0,0,2723,2724,5,94,0,0,2724,2727,5,271,0,0,2725,2726,5,154,0,0,2726,2728,5,128,0,0,2727,2725,1,0,0,0,2727,2728,1,0,0,0,2728,2729,1,0,0,0,2729,2730,3,642,321,0,2730,387,1,0,0,0,2731,2732,5,87,0,0,2732,2736,5,310,0,0,2733,2734,5,154,0,0,2734,2735,5,197,0,0,2735,2737,5,128,0,0,2736,2733,1,0,0,0,2736,2737,1,0,0,0,2737,2738,1,0,0,0,2738,2740,3,642,321,0,2739,2741,3,396,198,0,2740,2739,1,0,0,0,2740,2741,1,0,0,0,2741,2742,1,0,0,0,2742,2743,5,51,0,0,2743,2744,3,232,116,0,2744,389,1,0,0,0,2745,2746,5,112,0,0,2746,2749,5,310,0,0,2747,2748,5,154,0,0,2748,2750,5,128,0,0,2749,2747,1,0,0,0,2749,2750,1,0,0,0,2750,2751,1,0,0,0,2751,2752,3,642,321,0,2752,391,1,0,0,0,2753,2754,5,303,0,0,2754,2755,5,201,0,0,2755,2756,3,642,321,0,2756,2757,5,26,0,0,2757,2758,5,295,0,0,2758,2759,3,416,208,0,2759,2761,5,27,0,0,2760,2762,3,396,198,0,2761,2760,1,0,0,0,2761,2762,1,0,0,0,2762,393,1,0,0,0,2763,2764,5,87,0,0,2764,2768,5,201,0,0,2765,2766,5,154,0,0,2766,2767,5,197,0,0,2767,2769,5,128,0,0,2768,2765,1,0,0,0,2768,2769,1,0,0,0,2769,2770,1,0,0,0,2770,2771,3,642,321,0,2771,2772,5,26,0,0,2772,2773,5,295,0,0,2773,2774,3,416,208,0,2774,2776,5,27,0,0,2775,2777,3,396,198,0,2776,2775,1,0,0,0,2776,2777,1,0,0,0,2777,395,1,0,0,0,2778,2779,5,315,0,0,2779,2780,3,414,207,0,2780,397,1,0,0,0,2781,2782,5,45,0,0,2782,2783,5,201,0,0,2783,2784,3,642,321,0,2784,2785,5,26,0,0,2785,2786,5,295,0,0,2786,2787,3,416,208,0,2787,2788,5,27,0,0,2788,2789,3,400,200,0,2789,399,1,0,0,0,2790,2791,5,267,0,0,2791,2792,3,414,207,0,2792,401,1,0,0,0,2793,2794,5,112,0,0,2794,2797,5,201,0,0,2795,2796,5,154,0,0,2796,2798,5,128,0,0,2797,2795,1,0,0,0,2797,2798,1,0,0,0,2798,2799,1,0,0,0,2799,2800,3,642,321,0,2800,2801,5,26,0,0,2801,2802,5,295,0,0,2802,2803,3,416,208,0,2803,2805,5,27,0,0,2804,2806,3,404,202,0,2805,2804,1,0,0,0,2805,2806,1,0,0,0,2806,403,1,0,0,0,2807,2808,5,315,0,0,2808,2809,3,414,207,0,2809,405,1,0,0,0,2810,2815,3,818,409,0,2811,2815,3,144,72,0,2812,2815,5,319,0,0,2813,2815,3,850,425,0,2814,2810,1,0,0,0,2814,2811,1,0,0,0,2814,2812,1,0,0,0,2814,2813,1,0,0,0,2815,407,1,0,0,0,2816,2817,3,792,396,0,2817,2818,5,2,0,0,2818,2819,3,406,203,0,2819,409,1,0,0,0,2820,2821,3,792,396,0,2821,411,1,0,0,0,2822,2825,3,408,204,0,2823,2825,3,410,205,0,2824,2822,1,0,0,0,2824,2823,1,0,0,0,2825,413,1,0,0,0,2826,2839,3,412,206,0,2827,2828,5,26,0,0,2828,2833,3,412,206,0,2829,2830,5,25,0,0,2830,2832,3,412,206,0,2831,2829,1,0,0,0,2832,2835,1,0,0,0,2833,2831,1,0,0,0,2833,2834,1,0,0,0,2834,2836,1,0,0,0,2835,2833,1,0,0,0,2836,2837,5,27,0,0,2837,2839,1,0,0,0,2838,2826,1,0,0,0,2838,2827,1,0,0,0,2839,415,1,0,0,0,2840,2841,3,792,396,0,2841,417,1,0,0,0,2842,2845,5,87,0,0,2843,2844,5,210,0,0,2844,2846,5,242,0,0,2845,2843,1,0,0,0,2845,2846,1,0,0,0,2846,2855,1,0,0,0,2847,2856,5,280,0,0,2848,2856,5,283,0,0,2849,2850,5,131,0,0,2850,2856,5,280,0,0,2851,2852,5,285,0,0,2852,2856,5,280,0,0,2853,2854,5,286,0,0,2854,2856,5,280,0,0,2855,2847,1,0,0,0,2855,2848,1,0,0,0,2855,2849,1,0,0,0,2855,2851,1,0,0,0,2855,2853,1,0,0,0,2856,2860,1,0,0,0,2857,2858,5,154,0,0,2858,2859,5,197,0,0,2859,2861,5,128,0,0,2860,2857,1,0,0,0,2860,2861,1,0,0,0,2861,2862,1,0,0,0,2862,2863,3,646,323,0,2863,2864,5,26,0,0,2864,2869,3,420,210,0,2865,2866,5,25,0,0,2866,2868,3,420,210,0,2867,2865,1,0,0,0,2868,2871,1,0,0,0,2869,2867,1,0,0,0,2869,2870,1,0,0,0,2870,2873,1,0,0,0,2871,2869,1,0,0,0,2872,2874,5,25,0,0,2873,2872,1,0,0,0,2873,2874,1,0,0,0,2874,2875,1,0,0,0,2875,2877,5,27,0,0,2876,2878,3,452,226,0,2877,2876,1,0,0,0,2877,2878,1,0,0,0,2878,2880,1,0,0,0,2879,2881,3,454,227,0,2880,2879,1,0,0,0,2880,2881,1,0,0,0,2881,2883,1,0,0,0,2882,2884,3,456,228,0,2883,2882,1,0,0,0,2883,2884,1,0,0,0,2884,2886,1,0,0,0,2885,2887,3,458,229,0,2886,2885,1,0,0,0,2886,2887,1,0,0,0,2887,2889,1,0,0,0,2888,2890,3,462,231,0,2889,2888,1,0,0,0,2889,2890,1,0,0,0,2890,419,1,0,0,0,2891,2898,3,510,255,0,2892,2898,3,518,259,0,2893,2898,3,520,260,0,2894,2898,3,550,275,0,2895,2898,3,536,268,0,2896,2898,3,794,397,0,2897,2891,1,0,0,0,2897,2892,1,0,0,0,2897,2893,1,0,0,0,2897,2894,1,0,0,0,2897,2895,1,0,0,0,2897,2896,1,0,0,0,2898,421,1,0,0,0,2899,2900,5,87,0,0,2900,2902,3,442,221,0,2901,2903,3,428,214,0,2902,2901,1,0,0,0,2902,2903,1,0,0,0,2903,2904,1,0,0,0,2904,2905,5,315,0,0,2905,2906,5,26,0,0,2906,2907,3,444,222,0,2907,2908,5,27,0,0,2908,423,1,0,0,0,2909,2910,5,45,0,0,2910,2913,3,442,221,0,2911,2914,3,434,217,0,2912,2914,3,438,219,0,2913,2911,1,0,0,0,2913,2912,1,0,0,0,2914,425,1,0,0,0,2915,2916,5,112,0,0,2916,2917,3,442,221,0,2917,427,1,0,0,0,2918,2921,5,95,0,0,2919,2921,3,430,215,0,2920,2918,1,0,0,0,2920,2919,1,0,0,0,2921,429,1,0,0,0,2922,2923,5,26,0,0,2923,2924,3,432,216,0,2924,2925,5,27,0,0,2925,431,1,0,0,0,2926,2927,5,280,0,0,2927,2933,3,802,401,0,2928,2929,5,25,0,0,2929,2930,5,280,0,0,2930,2932,3,802,401,0,2931,2928,1,0,0,0,2932,2935,1,0,0,0,2933,2931,1,0,0,0,2933,2934,1,0,0,0,2934,433,1,0,0,0,2935,2933,1,0,0,0,2936,2941,3,436,218,0,2937,2938,5,25,0,0,2938,2940,3,436,218,0,2939,2937,1,0,0,0,2940,2943,1,0,0,0,2941,2939,1,0,0,0,2941,2942,1,0,0,0,2942,435,1,0,0,0,2943,2941,1,0,0,0,2944,2947,3,490,245,0,2945,2947,3,492,246,0,2946,2944,1,0,0,0,2946,2945,1,0,0,0,2947,437,1,0,0,0,2948,2953,3,440,220,0,2949,2950,5,25,0,0,2950,2952,3,440,220,0,2951,2949,1,0,0,0,2952,2955,1,0,0,0,2953,2951,1,0,0,0,2953,2954,1,0,0,0,2954,439,1,0,0,0,2955,2953,1,0,0,0,2956,2957,5,42,0,0,2957,2967,5,95,0,0,2958,2959,5,112,0,0,2959,2967,5,95,0,0,2960,2961,5,42,0,0,2961,2962,5,280,0,0,2962,2967,3,802,401,0,2963,2964,5,112,0,0,2964,2965,5,280,0,0,2965,2967,3,802,401,0,2966,2956,1,0,0,0,2966,2958,1,0,0,0,2966,2960,1,0,0,0,2966,2963,1,0,0,0,2967,441,1,0,0,0,2968,2969,5,61,0,0,2969,2970,5,62,0,0,2970,2971,3,642,321,0,2971,443,1,0,0,0,2972,2977,3,446,223,0,2973,2974,5,25,0,0,2974,2976,3,446,223,0,2975,2973,1,0,0,0,2976,2979,1,0,0,0,2977,2975,1,0,0,0,2977,2978,1,0,0,0,2978,445,1,0,0,0,2979,2977,1,0,0,0,2980,2981,3,790,395,0,2981,2982,5,2,0,0,2982,2983,3,548,274,0,2983,447,1,0,0,0,2984,2985,5,61,0,0,2985,2987,3,642,321,0,2986,2988,5,160,0,0,2987,2986,1,0,0,0,2987,2988,1,0,0,0,2988,449,1,0,0,0,2989,2990,5,247,0,0,2990,2993,3,642,321,0,2991,2992,5,56,0,0,2992,2994,5,319,0,0,2993,2991,1,0,0,0,2993,2994,1,0,0,0,2994,451,1,0,0,0,2995,2996,5,163,0,0,2996,2997,5,26,0,0,2997,3002,3,644,322,0,2998,2999,5,25,0,0,2999,3001,3,644,322,0,3e3,2998,1,0,0,0,3001,3004,1,0,0,0,3002,3e3,1,0,0,0,3002,3003,1,0,0,0,3003,3005,1,0,0,0,3004,3002,1,0,0,0,3005,3006,5,27,0,0,3006,453,1,0,0,0,3007,3008,5,216,0,0,3008,3009,5,68,0,0,3009,3010,5,151,0,0,3010,3011,3,114,57,0,3011,455,1,0,0,0,3012,3013,5,315,0,0,3013,3014,5,26,0,0,3014,3019,3,460,230,0,3015,3016,5,25,0,0,3016,3018,3,460,230,0,3017,3015,1,0,0,0,3018,3021,1,0,0,0,3019,3017,1,0,0,0,3019,3020,1,0,0,0,3020,3022,1,0,0,0,3021,3019,1,0,0,0,3022,3023,5,27,0,0,3023,457,1,0,0,0,3024,3025,5,283,0,0,3025,3026,3,644,322,0,3026,459,1,0,0,0,3027,3028,3,790,395,0,3028,3029,5,2,0,0,3029,3030,3,548,274,0,3030,461,1,0,0,0,3031,3032,5,51,0,0,3032,3033,3,372,186,0,3033,463,1,0,0,0,3034,3035,5,45,0,0,3035,3036,5,280,0,0,3036,3037,3,646,323,0,3037,3042,3,466,233,0,3038,3039,5,25,0,0,3039,3041,3,466,233,0,3040,3038,1,0,0,0,3041,3044,1,0,0,0,3042,3040,1,0,0,0,3042,3043,1,0,0,0,3043,465,1,0,0,0,3044,3042,1,0,0,0,3045,3063,3,476,238,0,3046,3063,3,478,239,0,3047,3063,3,480,240,0,3048,3063,3,484,242,0,3049,3063,3,486,243,0,3050,3063,3,488,244,0,3051,3063,3,490,245,0,3052,3063,3,492,246,0,3053,3063,3,494,247,0,3054,3063,3,496,248,0,3055,3063,3,498,249,0,3056,3063,3,502,251,0,3057,3063,3,504,252,0,3058,3063,3,506,253,0,3059,3063,3,500,250,0,3060,3063,3,508,254,0,3061,3063,3,482,241,0,3062,3045,1,0,0,0,3062,3046,1,0,0,0,3062,3047,1,0,0,0,3062,3048,1,0,0,0,3062,3049,1,0,0,0,3062,3050,1,0,0,0,3062,3051,1,0,0,0,3062,3052,1,0,0,0,3062,3053,1,0,0,0,3062,3054,1,0,0,0,3062,3055,1,0,0,0,3062,3056,1,0,0,0,3062,3057,1,0,0,0,3062,3058,1,0,0,0,3062,3059,1,0,0,0,3062,3060,1,0,0,0,3062,3061,1,0,0,0,3063,467,1,0,0,0,3064,3065,5,45,0,0,3065,3066,5,131,0,0,3066,3067,5,280,0,0,3067,3068,3,646,323,0,3068,3073,3,470,235,0,3069,3070,5,25,0,0,3070,3072,3,470,235,0,3071,3069,1,0,0,0,3072,3075,1,0,0,0,3073,3071,1,0,0,0,3073,3074,1,0,0,0,3074,469,1,0,0,0,3075,3073,1,0,0,0,3076,3082,3,476,238,0,3077,3082,3,478,239,0,3078,3082,3,488,244,0,3079,3082,3,490,245,0,3080,3082,3,492,246,0,3081,3076,1,0,0,0,3081,3077,1,0,0,0,3081,3078,1,0,0,0,3081,3079,1,0,0,0,3081,3080,1,0,0,0,3082,471,1,0,0,0,3083,3084,5,45,0,0,3084,3085,5,283,0,0,3085,3086,3,642,321,0,3086,3091,3,474,237,0,3087,3088,5,25,0,0,3088,3090,3,474,237,0,3089,3087,1,0,0,0,3090,3093,1,0,0,0,3091,3089,1,0,0,0,3091,3092,1,0,0,0,3092,473,1,0,0,0,3093,3091,1,0,0,0,3094,3097,3,476,238,0,3095,3097,3,478,239,0,3096,3094,1,0,0,0,3096,3095,1,0,0,0,3097,475,1,0,0,0,3098,3100,5,42,0,0,3099,3101,5,77,0,0,3100,3099,1,0,0,0,3100,3101,1,0,0,0,3101,3102,1,0,0,0,3102,3103,3,510,255,0,3103,477,1,0,0,0,3104,3106,5,112,0,0,3105,3107,5,77,0,0,3106,3105,1,0,0,0,3106,3107,1,0,0,0,3107,3108,1,0,0,0,3108,3109,3,790,395,0,3109,479,1,0,0,0,3110,3111,5,45,0,0,3111,3112,5,77,0,0,3112,3113,3,790,395,0,3113,3114,5,267,0,0,3114,3115,3,512,256,0,3115,481,1,0,0,0,3116,3117,5,45,0,0,3117,3118,5,77,0,0,3118,3119,3,790,395,0,3119,3120,5,112,0,0,3120,3121,5,197,0,0,3121,3122,5,199,0,0,3122,483,1,0,0,0,3123,3124,5,42,0,0,3124,3125,3,550,275,0,3125,485,1,0,0,0,3126,3127,5,45,0,0,3127,3128,5,134,0,0,3128,3129,3,790,395,0,3129,3130,5,267,0,0,3130,3131,3,790,395,0,3131,3132,3,556,278,0,3132,487,1,0,0,0,3133,3134,5,267,0,0,3134,3135,3,790,395,0,3135,3136,3,548,274,0,3136,489,1,0,0,0,3137,3138,5,267,0,0,3138,3139,5,26,0,0,3139,3144,3,546,273,0,3140,3141,5,25,0,0,3141,3143,3,546,273,0,3142,3140,1,0,0,0,3143,3146,1,0,0,0,3144,3142,1,0,0,0,3144,3145,1,0,0,0,3145,3147,1,0,0,0,3146,3144,1,0,0,0,3147,3148,5,27,0,0,3148,491,1,0,0,0,3149,3150,5,244,0,0,3150,3151,5,26,0,0,3151,3156,3,790,395,0,3152,3153,5,25,0,0,3153,3155,3,790,395,0,3154,3152,1,0,0,0,3155,3158,1,0,0,0,3156,3154,1,0,0,0,3156,3157,1,0,0,0,3157,3159,1,0,0,0,3158,3156,1,0,0,0,3159,3160,5,27,0,0,3160,493,1,0,0,0,3161,3162,5,42,0,0,3162,3163,3,520,260,0,3163,495,1,0,0,0,3164,3165,5,112,0,0,3165,3166,5,161,0,0,3166,3167,3,790,395,0,3167,497,1,0,0,0,3168,3169,5,240,0,0,3169,3170,5,289,0,0,3170,3171,3,802,401,0,3171,499,1,0,0,0,3172,3173,5,240,0,0,3173,3174,5,161,0,0,3174,3175,3,790,395,0,3175,3176,5,289,0,0,3176,3177,3,790,395,0,3177,501,1,0,0,0,3178,3179,5,42,0,0,3179,3180,3,536,268,0,3180,503,1,0,0,0,3181,3182,5,45,0,0,3182,3183,5,73,0,0,3183,3184,3,790,395,0,3184,3185,3,544,272,0,3185,505,1,0,0,0,3186,3187,5,112,0,0,3187,3188,5,73,0,0,3188,3189,3,790,395,0,3189,507,1,0,0,0,3190,3191,5,45,0,0,3191,3192,5,161,0,0,3192,3193,3,790,395,0,3193,3194,3,562,281,0,3194,509,1,0,0,0,3195,3196,3,794,397,0,3196,3198,3,204,102,0,3197,3199,3,512,256,0,3198,3197,1,0,0,0,3198,3199,1,0,0,0,3199,3200,1,0,0,0,3200,3201,3,514,257,0,3201,511,1,0,0,0,3202,3203,5,134,0,0,3203,3204,3,790,395,0,3204,513,1,0,0,0,3205,3207,5,197,0,0,3206,3205,1,0,0,0,3206,3207,1,0,0,0,3207,3208,1,0,0,0,3208,3210,5,199,0,0,3209,3206,1,0,0,0,3209,3210,1,0,0,0,3210,3213,1,0,0,0,3211,3212,5,98,0,0,3212,3214,3,14,7,0,3213,3211,1,0,0,0,3213,3214,1,0,0,0,3214,515,1,0,0,0,3215,3217,3,790,395,0,3216,3218,7,9,0,0,3217,3216,1,0,0,0,3217,3218,1,0,0,0,3218,517,1,0,0,0,3219,3220,5,228,0,0,3220,3221,5,177,0,0,3221,3222,5,26,0,0,3222,3227,3,790,395,0,3223,3224,5,25,0,0,3224,3226,3,790,395,0,3225,3223,1,0,0,0,3226,3229,1,0,0,0,3227,3225,1,0,0,0,3227,3228,1,0,0,0,3228,3230,1,0,0,0,3229,3227,1,0,0,0,3230,3231,5,27,0,0,3231,3259,1,0,0,0,3232,3233,5,216,0,0,3233,3234,5,68,0,0,3234,3235,5,26,0,0,3235,3240,3,790,395,0,3236,3237,5,25,0,0,3237,3239,3,790,395,0,3238,3236,1,0,0,0,3239,3242,1,0,0,0,3240,3238,1,0,0,0,3240,3241,1,0,0,0,3241,3243,1,0,0,0,3242,3240,1,0,0,0,3243,3244,5,27,0,0,3244,3259,1,0,0,0,3245,3246,5,211,0,0,3246,3247,5,68,0,0,3247,3248,5,26,0,0,3248,3253,3,516,258,0,3249,3250,5,25,0,0,3250,3252,3,516,258,0,3251,3249,1,0,0,0,3252,3255,1,0,0,0,3253,3251,1,0,0,0,3253,3254,1,0,0,0,3254,3256,1,0,0,0,3255,3253,1,0,0,0,3256,3257,5,27,0,0,3257,3259,1,0,0,0,3258,3219,1,0,0,0,3258,3232,1,0,0,0,3258,3245,1,0,0,0,3259,519,1,0,0,0,3260,3261,5,161,0,0,3261,3262,3,790,395,0,3262,3263,3,522,261,0,3263,3264,5,205,0,0,3264,3265,5,26,0,0,3265,3270,3,794,397,0,3266,3267,5,25,0,0,3267,3269,3,794,397,0,3268,3266,1,0,0,0,3269,3272,1,0,0,0,3270,3268,1,0,0,0,3270,3271,1,0,0,0,3271,3273,1,0,0,0,3272,3270,1,0,0,0,3273,3286,5,27,0,0,3274,3275,5,86,0,0,3275,3276,5,26,0,0,3276,3281,3,794,397,0,3277,3278,5,25,0,0,3278,3280,3,794,397,0,3279,3277,1,0,0,0,3280,3283,1,0,0,0,3281,3279,1,0,0,0,3281,3282,1,0,0,0,3282,3284,1,0,0,0,3283,3281,1,0,0,0,3284,3285,5,27,0,0,3285,3287,1,0,0,0,3286,3274,1,0,0,0,3286,3287,1,0,0,0,3287,3289,1,0,0,0,3288,3290,3,530,265,0,3289,3288,1,0,0,0,3289,3290,1,0,0,0,3290,521,1,0,0,0,3291,3294,3,524,262,0,3292,3294,3,526,263,0,3293,3291,1,0,0,0,3293,3292,1,0,0,0,3294,3297,1,0,0,0,3295,3296,5,306,0,0,3296,3298,3,528,264,0,3297,3295,1,0,0,0,3297,3298,1,0,0,0,3298,523,1,0,0,0,3299,3301,5,146,0,0,3300,3302,5,299,0,0,3301,3300,1,0,0,0,3301,3302,1,0,0,0,3302,3304,1,0,0,0,3303,3305,7,16,0,0,3304,3303,1,0,0,0,3304,3305,1,0,0,0,3305,525,1,0,0,0,3306,3307,5,184,0,0,3307,527,1,0,0,0,3308,3309,3,790,395,0,3309,529,1,0,0,0,3310,3311,5,315,0,0,3311,3312,5,26,0,0,3312,3317,3,532,266,0,3313,3314,5,25,0,0,3314,3316,3,532,266,0,3315,3313,1,0,0,0,3316,3319,1,0,0,0,3317,3315,1,0,0,0,3317,3318,1,0,0,0,3318,3321,1,0,0,0,3319,3317,1,0,0,0,3320,3322,5,25,0,0,3321,3320,1,0,0,0,3321,3322,1,0,0,0,3322,3323,1,0,0,0,3323,3324,5,27,0,0,3324,531,1,0,0,0,3325,3326,3,790,395,0,3326,3327,5,2,0,0,3327,3328,3,534,267,0,3328,533,1,0,0,0,3329,3334,3,818,409,0,3330,3334,5,319,0,0,3331,3334,3,854,427,0,3332,3334,3,850,425,0,3333,3329,1,0,0,0,3333,3330,1,0,0,0,3333,3331,1,0,0,0,3333,3332,1,0,0,0,3334,535,1,0,0,0,3335,3336,5,73,0,0,3336,3337,3,790,395,0,3337,3338,5,315,0,0,3338,3339,5,26,0,0,3339,3340,3,538,269,0,3340,3341,5,27,0,0,3341,537,1,0,0,0,3342,3347,3,540,270,0,3343,3344,5,25,0,0,3344,3346,3,540,270,0,3345,3343,1,0,0,0,3346,3349,1,0,0,0,3347,3345,1,0,0,0,3347,3348,1,0,0,0,3348,539,1,0,0,0,3349,3347,1,0,0,0,3350,3351,3,790,395,0,3351,3352,5,2,0,0,3352,3353,3,542,271,0,3353,541,1,0,0,0,3354,3355,3,14,7,0,3355,543,1,0,0,0,3356,3363,5,108,0,0,3357,3358,5,267,0,0,3358,3359,5,26,0,0,3359,3360,3,538,269,0,3360,3361,5,27,0,0,3361,3363,1,0,0,0,3362,3356,1,0,0,0,3362,3357,1,0,0,0,3363,545,1,0,0,0,3364,3365,3,790,395,0,3365,3366,5,2,0,0,3366,3367,3,548,274,0,3367,547,1,0,0,0,3368,3381,3,772,386,0,3369,3381,5,319,0,0,3370,3381,3,854,427,0,3371,3381,3,558,279,0,3372,3373,3,14,7,0,3373,3374,5,205,0,0,3374,3377,3,790,395,0,3375,3376,5,51,0,0,3376,3378,7,17,0,0,3377,3375,1,0,0,0,3377,3378,1,0,0,0,3378,3381,1,0,0,0,3379,3381,3,850,425,0,3380,3368,1,0,0,0,3380,3369,1,0,0,0,3380,3370,1,0,0,0,3380,3371,1,0,0,0,3380,3372,1,0,0,0,3380,3379,1,0,0,0,3381,549,1,0,0,0,3382,3383,5,134,0,0,3383,3384,3,790,395,0,3384,3385,3,552,276,0,3385,551,1,0,0,0,3386,3395,5,26,0,0,3387,3392,3,554,277,0,3388,3389,5,25,0,0,3389,3391,3,554,277,0,3390,3388,1,0,0,0,3391,3394,1,0,0,0,3392,3390,1,0,0,0,3392,3393,1,0,0,0,3393,3396,1,0,0,0,3394,3392,1,0,0,0,3395,3387,1,0,0,0,3395,3396,1,0,0,0,3396,3397,1,0,0,0,3397,3398,5,27,0,0,3398,553,1,0,0,0,3399,3400,3,790,395,0,3400,3401,5,2,0,0,3401,3402,3,556,278,0,3402,555,1,0,0,0,3403,3406,5,319,0,0,3404,3406,3,854,427,0,3405,3403,1,0,0,0,3405,3404,1,0,0,0,3406,557,1,0,0,0,3407,3408,5,26,0,0,3408,3413,3,560,280,0,3409,3410,5,25,0,0,3410,3412,3,560,280,0,3411,3409,1,0,0,0,3412,3415,1,0,0,0,3413,3411,1,0,0,0,3413,3414,1,0,0,0,3414,3416,1,0,0,0,3415,3413,1,0,0,0,3416,3417,5,27,0,0,3417,3420,1,0,0,0,3418,3420,3,560,280,0,3419,3407,1,0,0,0,3419,3418,1,0,0,0,3420,559,1,0,0,0,3421,3422,5,26,0,0,3422,3427,3,142,71,0,3423,3424,5,25,0,0,3424,3426,3,142,71,0,3425,3423,1,0,0,0,3426,3429,1,0,0,0,3427,3425,1,0,0,0,3427,3428,1,0,0,0,3428,3430,1,0,0,0,3429,3427,1,0,0,0,3430,3431,5,27,0,0,3431,561,1,0,0,0,3432,3436,3,488,244,0,3433,3436,3,490,245,0,3434,3436,3,492,246,0,3435,3432,1,0,0,0,3435,3433,1,0,0,0,3435,3434,1,0,0,0,3436,563,1,0,0,0,3437,3442,5,112,0,0,3438,3443,5,280,0,0,3439,3443,5,283,0,0,3440,3441,5,131,0,0,3441,3443,5,280,0,0,3442,3438,1,0,0,0,3442,3439,1,0,0,0,3442,3440,1,0,0,0,3443,3446,1,0,0,0,3444,3445,5,154,0,0,3445,3447,5,128,0,0,3446,3444,1,0,0,0,3446,3447,1,0,0,0,3447,3448,1,0,0,0,3448,3449,3,646,323,0,3449,565,1,0,0,0,3450,3451,5,87,0,0,3451,3452,5,305,0,0,3452,3454,3,576,288,0,3453,3455,3,578,289,0,3454,3453,1,0,0,0,3454,3455,1,0,0,0,3455,567,1,0,0,0,3456,3457,5,45,0,0,3457,3458,5,305,0,0,3458,3466,3,576,288,0,3459,3461,5,315,0,0,3460,3459,1,0,0,0,3460,3461,1,0,0,0,3461,3462,1,0,0,0,3462,3467,3,578,289,0,3463,3464,5,240,0,0,3464,3465,5,289,0,0,3465,3467,3,576,288,0,3466,3460,1,0,0,0,3466,3463,1,0,0,0,3467,569,1,0,0,0,3468,3469,5,87,0,0,3469,3470,5,148,0,0,3470,3484,3,576,288,0,3471,3472,5,315,0,0,3472,3473,5,305,0,0,3473,3478,3,576,288,0,3474,3475,5,25,0,0,3475,3477,3,576,288,0,3476,3474,1,0,0,0,3477,3480,1,0,0,0,3478,3476,1,0,0,0,3478,3479,1,0,0,0,3479,3482,1,0,0,0,3480,3478,1,0,0,0,3481,3483,5,25,0,0,3482,3481,1,0,0,0,3482,3483,1,0,0,0,3483,3485,1,0,0,0,3484,3471,1,0,0,0,3484,3485,1,0,0,0,3485,571,1,0,0,0,3486,3487,5,45,0,0,3487,3488,5,148,0,0,3488,3505,3,576,288,0,3489,3490,7,18,0,0,3490,3491,5,305,0,0,3491,3496,3,576,288,0,3492,3493,5,25,0,0,3493,3495,3,576,288,0,3494,3492,1,0,0,0,3495,3498,1,0,0,0,3496,3494,1,0,0,0,3496,3497,1,0,0,0,3497,3500,1,0,0,0,3498,3496,1,0,0,0,3499,3501,5,25,0,0,3500,3499,1,0,0,0,3500,3501,1,0,0,0,3501,3506,1,0,0,0,3502,3503,5,240,0,0,3503,3504,5,289,0,0,3504,3506,3,576,288,0,3505,3489,1,0,0,0,3505,3502,1,0,0,0,3506,573,1,0,0,0,3507,3508,5,112,0,0,3508,3511,7,19,0,0,3509,3510,5,154,0,0,3510,3512,5,128,0,0,3511,3509,1,0,0,0,3511,3512,1,0,0,0,3512,3513,1,0,0,0,3513,3518,3,576,288,0,3514,3515,5,25,0,0,3515,3517,3,576,288,0,3516,3514,1,0,0,0,3517,3520,1,0,0,0,3518,3516,1,0,0,0,3518,3519,1,0,0,0,3519,3522,1,0,0,0,3520,3518,1,0,0,0,3521,3523,5,25,0,0,3522,3521,1,0,0,0,3522,3523,1,0,0,0,3523,575,1,0,0,0,3524,3527,3,792,396,0,3525,3527,3,144,72,0,3526,3524,1,0,0,0,3526,3525,1,0,0,0,3527,577,1,0,0,0,3528,3530,5,117,0,0,3529,3528,1,0,0,0,3529,3530,1,0,0,0,3530,3531,1,0,0,0,3531,3532,5,218,0,0,3532,3533,3,14,7,0,3533,579,1,0,0,0,3534,3535,5,147,0,0,3535,3536,3,588,294,0,3536,3537,5,205,0,0,3537,3542,3,794,397,0,3538,3539,5,25,0,0,3539,3541,3,794,397,0,3540,3538,1,0,0,0,3541,3544,1,0,0,0,3542,3540,1,0,0,0,3542,3543,1,0,0,0,3543,3545,1,0,0,0,3544,3542,1,0,0,0,3545,3546,5,289,0,0,3546,3551,3,576,288,0,3547,3548,5,25,0,0,3548,3550,3,576,288,0,3549,3547,1,0,0,0,3550,3553,1,0,0,0,3551,3549,1,0,0,0,3551,3552,1,0,0,0,3552,3555,1,0,0,0,3553,3551,1,0,0,0,3554,3556,5,25,0,0,3555,3554,1,0,0,0,3555,3556,1,0,0,0,3556,3560,1,0,0,0,3557,3558,5,315,0,0,3558,3559,5,147,0,0,3559,3561,5,208,0,0,3560,3557,1,0,0,0,3560,3561,1,0,0,0,3561,581,1,0,0,0,3562,3566,5,253,0,0,3563,3564,5,147,0,0,3564,3565,5,208,0,0,3565,3567,5,140,0,0,3566,3563,1,0,0,0,3566,3567,1,0,0,0,3567,3568,1,0,0,0,3568,3569,3,588,294,0,3569,3570,5,205,0,0,3570,3575,3,794,397,0,3571,3572,5,25,0,0,3572,3574,3,794,397,0,3573,3571,1,0,0,0,3574,3577,1,0,0,0,3575,3573,1,0,0,0,3575,3576,1,0,0,0,3576,3578,1,0,0,0,3577,3575,1,0,0,0,3578,3579,5,142,0,0,3579,3584,3,576,288,0,3580,3581,5,25,0,0,3581,3583,3,576,288,0,3582,3580,1,0,0,0,3583,3586,1,0,0,0,3584,3582,1,0,0,0,3584,3585,1,0,0,0,3585,583,1,0,0,0,3586,3584,1,0,0,0,3587,3612,5,83,0,0,3588,3612,5,183,0,0,3589,3612,5,167,0,0,3590,3612,5,185,0,0,3591,3612,5,112,0,0,3592,3612,5,147,0,0,3593,3594,5,192,0,0,3594,3612,7,20,0,0,3595,3596,7,21,0,0,3596,3612,5,258,0,0,3597,3598,7,22,0,0,3598,3612,5,262,0,0,3599,3601,5,265,0,0,3600,3602,7,23,0,0,3601,3600,1,0,0,0,3601,3602,1,0,0,0,3602,3612,1,0,0,0,3603,3605,7,24,0,0,3604,3606,5,180,0,0,3605,3604,1,0,0,0,3605,3606,1,0,0,0,3606,3612,1,0,0,0,3607,3609,5,87,0,0,3608,3610,7,25,0,0,3609,3608,1,0,0,0,3609,3610,1,0,0,0,3610,3612,1,0,0,0,3611,3587,1,0,0,0,3611,3588,1,0,0,0,3611,3589,1,0,0,0,3611,3590,1,0,0,0,3611,3591,1,0,0,0,3611,3592,1,0,0,0,3611,3593,1,0,0,0,3611,3595,1,0,0,0,3611,3597,1,0,0,0,3611,3599,1,0,0,0,3611,3603,1,0,0,0,3611,3607,1,0,0,0,3612,585,1,0,0,0,3613,3616,3,584,292,0,3614,3616,5,319,0,0,3615,3613,1,0,0,0,3615,3614,1,0,0,0,3616,587,1,0,0,0,3617,3622,3,586,293,0,3618,3619,5,25,0,0,3619,3621,3,586,293,0,3620,3618,1,0,0,0,3621,3624,1,0,0,0,3622,3620,1,0,0,0,3622,3623,1,0,0,0,3623,3626,1,0,0,0,3624,3622,1,0,0,0,3625,3627,5,25,0,0,3626,3625,1,0,0,0,3626,3627,1,0,0,0,3627,3633,1,0,0,0,3628,3630,5,44,0,0,3629,3631,5,229,0,0,3630,3629,1,0,0,0,3630,3631,1,0,0,0,3631,3633,1,0,0,0,3632,3617,1,0,0,0,3632,3628,1,0,0,0,3633,589,1,0,0,0,3634,3635,5,87,0,0,3635,3636,5,245,0,0,3636,3637,5,224,0,0,3637,3638,3,642,321,0,3638,3639,3,456,228,0,3639,591,1,0,0,0,3640,3641,5,45,0,0,3641,3642,5,245,0,0,3642,3643,5,224,0,0,3643,3644,3,642,321,0,3644,3649,3,594,297,0,3645,3646,5,25,0,0,3646,3648,3,594,297,0,3647,3645,1,0,0,0,3648,3651,1,0,0,0,3649,3647,1,0,0,0,3649,3650,1,0,0,0,3650,593,1,0,0,0,3651,3649,1,0,0,0,3652,3655,3,490,245,0,3653,3655,3,492,246,0,3654,3652,1,0,0,0,3654,3653,1,0,0,0,3655,595,1,0,0,0,3656,3657,5,112,0,0,3657,3658,5,245,0,0,3658,3659,5,224,0,0,3659,3660,3,642,321,0,3660,597,1,0,0,0,3661,3662,5,87,0,0,3662,3663,5,245,0,0,3663,3664,5,224,0,0,3664,3665,5,75,0,0,3665,3666,3,642,321,0,3666,3667,3,456,228,0,3667,599,1,0,0,0,3668,3669,5,45,0,0,3669,3670,5,245,0,0,3670,3671,5,224,0,0,3671,3672,5,75,0,0,3672,3673,3,642,321,0,3673,3678,3,602,301,0,3674,3675,5,25,0,0,3675,3677,3,602,301,0,3676,3674,1,0,0,0,3677,3680,1,0,0,0,3678,3676,1,0,0,0,3678,3679,1,0,0,0,3679,601,1,0,0,0,3680,3678,1,0,0,0,3681,3684,3,490,245,0,3682,3684,3,492,246,0,3683,3681,1,0,0,0,3683,3682,1,0,0,0,3684,603,1,0,0,0,3685,3686,5,112,0,0,3686,3687,5,245,0,0,3687,3688,5,224,0,0,3688,3689,5,75,0,0,3689,3690,3,642,321,0,3690,605,1,0,0,0,3691,3692,5,87,0,0,3692,3693,5,55,0,0,3693,3694,5,243,0,0,3694,3695,3,642,321,0,3695,3696,5,140,0,0,3696,3701,3,608,304,0,3697,3698,5,25,0,0,3698,3700,3,608,304,0,3699,3697,1,0,0,0,3700,3703,1,0,0,0,3701,3699,1,0,0,0,3701,3702,1,0,0,0,3702,3704,1,0,0,0,3703,3701,1,0,0,0,3704,3705,5,315,0,0,3705,3706,5,26,0,0,3706,3707,3,610,305,0,3707,3708,5,27,0,0,3708,607,1,0,0,0,3709,3710,3,642,321,0,3710,3711,3,864,432,0,3711,609,1,0,0,0,3712,3717,3,612,306,0,3713,3714,5,25,0,0,3714,3716,3,612,306,0,3715,3713,1,0,0,0,3716,3719,1,0,0,0,3717,3715,1,0,0,0,3717,3718,1,0,0,0,3718,611,1,0,0,0,3719,3717,1,0,0,0,3720,3721,3,790,395,0,3721,3722,5,2,0,0,3722,3723,5,319,0,0,3723,613,1,0,0,0,3724,3725,5,45,0,0,3725,3726,5,55,0,0,3726,3727,5,243,0,0,3727,3728,3,642,321,0,3728,3733,3,616,308,0,3729,3730,5,25,0,0,3730,3732,3,616,308,0,3731,3729,1,0,0,0,3732,3735,1,0,0,0,3733,3731,1,0,0,0,3733,3734,1,0,0,0,3734,615,1,0,0,0,3735,3733,1,0,0,0,3736,3737,3,618,309,0,3737,617,1,0,0,0,3738,3739,5,267,0,0,3739,3740,5,26,0,0,3740,3741,3,610,305,0,3741,3742,5,27,0,0,3742,619,1,0,0,0,3743,3744,5,112,0,0,3744,3745,5,55,0,0,3745,3746,5,243,0,0,3746,3748,3,642,321,0,3747,3749,5,70,0,0,3748,3747,1,0,0,0,3748,3749,1,0,0,0,3749,621,1,0,0,0,3750,3755,3,146,73,0,3751,3752,5,25,0,0,3752,3754,3,146,73,0,3753,3751,1,0,0,0,3754,3757,1,0,0,0,3755,3753,1,0,0,0,3755,3756,1,0,0,0,3756,623,1,0,0,0,3757,3755,1,0,0,0,3758,3759,5,101,0,0,3759,3760,7,26,0,0,3760,3761,3,144,72,0,3761,3763,5,26,0,0,3762,3764,3,622,311,0,3763,3762,1,0,0,0,3763,3764,1,0,0,0,3764,3765,1,0,0,0,3765,3766,5,27,0,0,3766,3767,5,51,0,0,3767,3768,3,626,313,0,3768,3769,5,118,0,0,3769,3770,5,101,0,0,3770,625,1,0,0,0,3771,3773,5,23,0,0,3772,3771,1,0,0,0,3773,3776,1,0,0,0,3774,3772,1,0,0,0,3774,3775,1,0,0,0,3775,3795,1,0,0,0,3776,3774,1,0,0,0,3777,3786,3,12,6,0,3778,3780,5,23,0,0,3779,3778,1,0,0,0,3780,3781,1,0,0,0,3781,3779,1,0,0,0,3781,3782,1,0,0,0,3782,3783,1,0,0,0,3783,3785,3,12,6,0,3784,3779,1,0,0,0,3785,3788,1,0,0,0,3786,3784,1,0,0,0,3786,3787,1,0,0,0,3787,3792,1,0,0,0,3788,3786,1,0,0,0,3789,3791,5,23,0,0,3790,3789,1,0,0,0,3791,3794,1,0,0,0,3792,3790,1,0,0,0,3792,3793,1,0,0,0,3793,3796,1,0,0,0,3794,3792,1,0,0,0,3795,3777,1,0,0,0,3795,3796,1,0,0,0,3796,627,1,0,0,0,3797,3799,5,123,0,0,3798,3797,1,0,0,0,3798,3799,1,0,0,0,3799,3800,1,0,0,0,3800,3801,5,154,0,0,3801,3802,3,14,7,0,3802,3805,3,222,111,0,3803,3804,5,114,0,0,3804,3806,3,222,111,0,3805,3803,1,0,0,0,3805,3806,1,0,0,0,3806,629,1,0,0,0,3807,3809,5,123,0,0,3808,3807,1,0,0,0,3808,3809,1,0,0,0,3809,3811,1,0,0,0,3810,3812,5,215,0,0,3811,3810,1,0,0,0,3811,3812,1,0,0,0,3812,3813,1,0,0,0,3813,3814,5,140,0,0,3814,3815,3,144,72,0,3815,3816,5,159,0,0,3816,3817,3,14,7,0,3817,3820,3,222,111,0,3818,3819,5,114,0,0,3819,3821,3,222,111,0,3820,3818,1,0,0,0,3820,3821,1,0,0,0,3821,631,1,0,0,0,3822,3823,3,816,408,0,3823,3824,5,24,0,0,3824,3826,1,0,0,0,3825,3822,1,0,0,0,3825,3826,1,0,0,0,3826,3828,1,0,0,0,3827,3829,5,30,0,0,3828,3827,1,0,0,0,3828,3829,1,0,0,0,3829,3860,1,0,0,0,3830,3861,3,634,317,0,3831,3832,3,796,398,0,3832,3844,5,26,0,0,3833,3838,3,636,318,0,3834,3835,5,25,0,0,3835,3837,3,636,318,0,3836,3834,1,0,0,0,3837,3840,1,0,0,0,3838,3836,1,0,0,0,3838,3839,1,0,0,0,3839,3842,1,0,0,0,3840,3838,1,0,0,0,3841,3843,5,25,0,0,3842,3841,1,0,0,0,3842,3843,1,0,0,0,3843,3845,1,0,0,0,3844,3833,1,0,0,0,3844,3845,1,0,0,0,3845,3846,1,0,0,0,3846,3847,5,27,0,0,3847,3861,1,0,0,0,3848,3854,3,144,72,0,3849,3851,5,26,0,0,3850,3852,3,112,56,0,3851,3850,1,0,0,0,3851,3852,1,0,0,0,3852,3853,1,0,0,0,3853,3855,5,27,0,0,3854,3849,1,0,0,0,3854,3855,1,0,0,0,3855,3858,1,0,0,0,3856,3857,5,310,0,0,3857,3859,3,812,406,0,3858,3856,1,0,0,0,3858,3859,1,0,0,0,3859,3861,1,0,0,0,3860,3830,1,0,0,0,3860,3831,1,0,0,0,3860,3848,1,0,0,0,3861,3863,1,0,0,0,3862,3864,3,638,319,0,3863,3862,1,0,0,0,3863,3864,1,0,0,0,3864,633,1,0,0,0,3865,3868,3,824,412,0,3866,3867,5,310,0,0,3867,3869,3,812,406,0,3868,3866,1,0,0,0,3868,3869,1,0,0,0,3869,635,1,0,0,0,3870,3872,5,30,0,0,3871,3870,1,0,0,0,3871,3872,1,0,0,0,3872,3873,1,0,0,0,3873,3876,3,128,64,0,3874,3875,5,310,0,0,3875,3877,3,812,406,0,3876,3874,1,0,0,0,3876,3877,1,0,0,0,3877,637,1,0,0,0,3878,3891,5,315,0,0,3879,3892,3,640,320,0,3880,3881,5,26,0,0,3881,3886,3,640,320,0,3882,3883,5,25,0,0,3883,3885,3,640,320,0,3884,3882,1,0,0,0,3885,3888,1,0,0,0,3886,3884,1,0,0,0,3886,3887,1,0,0,0,3887,3889,1,0,0,0,3888,3886,1,0,0,0,3889,3890,5,27,0,0,3890,3892,1,0,0,0,3891,3879,1,0,0,0,3891,3880,1,0,0,0,3892,639,1,0,0,0,3893,3912,3,806,403,0,3894,3910,5,2,0,0,3895,3911,3,160,80,0,3896,3897,5,26,0,0,3897,3902,3,160,80,0,3898,3899,5,25,0,0,3899,3901,3,160,80,0,3900,3898,1,0,0,0,3901,3904,1,0,0,0,3902,3900,1,0,0,0,3902,3903,1,0,0,0,3903,3906,1,0,0,0,3904,3902,1,0,0,0,3905,3907,5,25,0,0,3906,3905,1,0,0,0,3906,3907,1,0,0,0,3907,3908,1,0,0,0,3908,3909,5,27,0,0,3909,3911,1,0,0,0,3910,3895,1,0,0,0,3910,3896,1,0,0,0,3911,3913,1,0,0,0,3912,3894,1,0,0,0,3912,3913,1,0,0,0,3913,3939,1,0,0,0,3914,3916,7,27,0,0,3915,3917,5,2,0,0,3916,3915,1,0,0,0,3916,3917,1,0,0,0,3917,3918,1,0,0,0,3918,3939,3,204,102,0,3919,3921,5,262,0,0,3920,3922,5,2,0,0,3921,3920,1,0,0,0,3921,3922,1,0,0,0,3922,3923,1,0,0,0,3923,3932,5,26,0,0,3924,3929,3,164,82,0,3925,3926,5,25,0,0,3926,3928,3,164,82,0,3927,3925,1,0,0,0,3928,3931,1,0,0,0,3929,3927,1,0,0,0,3929,3930,1,0,0,0,3930,3933,1,0,0,0,3931,3929,1,0,0,0,3932,3924,1,0,0,0,3932,3933,1,0,0,0,3933,3935,1,0,0,0,3934,3936,5,25,0,0,3935,3934,1,0,0,0,3935,3936,1,0,0,0,3936,3937,1,0,0,0,3937,3939,5,27,0,0,3938,3893,1,0,0,0,3938,3914,1,0,0,0,3938,3919,1,0,0,0,3939,641,1,0,0,0,3940,3941,3,816,408,0,3941,3942,5,24,0,0,3942,3944,1,0,0,0,3943,3940,1,0,0,0,3943,3944,1,0,0,0,3944,3945,1,0,0,0,3945,3946,3,822,411,0,3946,643,1,0,0,0,3947,3953,3,642,321,0,3948,3950,5,30,0,0,3949,3948,1,0,0,0,3949,3950,1,0,0,0,3950,3951,1,0,0,0,3951,3953,3,144,72,0,3952,3947,1,0,0,0,3952,3949,1,0,0,0,3953,645,1,0,0,0,3954,3956,3,644,322,0,3955,3957,3,638,319,0,3956,3955,1,0,0,0,3956,3957,1,0,0,0,3957,647,1,0,0,0,3958,3962,3,646,323,0,3959,3960,5,120,0,0,3960,3961,5,68,0,0,3961,3963,3,114,57,0,3962,3959,1,0,0,0,3962,3963,1,0,0,0,3963,649,1,0,0,0,3964,3965,5,102,0,0,3965,3966,5,142,0,0,3966,3970,3,646,323,0,3967,3971,3,866,433,0,3968,3969,5,205,0,0,3969,3971,3,368,184,0,3970,3967,1,0,0,0,3970,3968,1,0,0,0,3970,3971,1,0,0,0,3971,3973,1,0,0,0,3972,3974,3,362,181,0,3973,3972,1,0,0,0,3973,3974,1,0,0,0,3974,651,1,0,0,0,3975,3976,5,302,0,0,3976,3984,3,646,323,0,3977,3978,5,267,0,0,3978,3980,3,654,327,0,3979,3981,3,866,433,0,3980,3979,1,0,0,0,3980,3981,1,0,0,0,3981,3985,1,0,0,0,3982,3983,5,205,0,0,3983,3985,3,368,184,0,3984,3977,1,0,0,0,3984,3982,1,0,0,0,3985,3987,1,0,0,0,3986,3988,3,362,181,0,3987,3986,1,0,0,0,3987,3988,1,0,0,0,3988,653,1,0,0,0,3989,3992,3,656,328,0,3990,3992,3,662,331,0,3991,3989,1,0,0,0,3991,3990,1,0,0,0,3992,655,1,0,0,0,3993,3998,3,658,329,0,3994,3995,5,25,0,0,3995,3997,3,658,329,0,3996,3994,1,0,0,0,3997,4e3,1,0,0,0,3998,3996,1,0,0,0,3998,3999,1,0,0,0,3999,657,1,0,0,0,4e3,3998,1,0,0,0,4001,4002,3,660,330,0,4002,4003,5,2,0,0,4003,4004,3,14,7,0,4004,659,1,0,0,0,4005,4006,3,120,60,0,4006,661,1,0,0,0,4007,4008,3,664,332,0,4008,4009,5,2,0,0,4009,4010,5,26,0,0,4010,4011,3,378,189,0,4011,4012,5,27,0,0,4012,663,1,0,0,0,4013,4014,5,26,0,0,4014,4019,3,660,330,0,4015,4016,5,25,0,0,4016,4018,3,660,330,0,4017,4015,1,0,0,0,4018,4021,1,0,0,0,4019,4017,1,0,0,0,4019,4020,1,0,0,0,4020,4022,1,0,0,0,4021,4019,1,0,0,0,4022,4023,5,27,0,0,4023,665,1,0,0,0,4024,4025,5,87,0,0,4025,4029,5,290,0,0,4026,4027,5,154,0,0,4027,4028,5,197,0,0,4028,4030,5,128,0,0,4029,4026,1,0,0,0,4029,4030,1,0,0,0,4030,4031,1,0,0,0,4031,4033,3,712,356,0,4032,4034,3,668,334,0,4033,4032,1,0,0,0,4033,4034,1,0,0,0,4034,4036,1,0,0,0,4035,4037,3,672,336,0,4036,4035,1,0,0,0,4036,4037,1,0,0,0,4037,667,1,0,0,0,4038,4039,5,26,0,0,4039,4044,3,670,335,0,4040,4041,5,25,0,0,4041,4043,3,670,335,0,4042,4040,1,0,0,0,4043,4046,1,0,0,0,4044,4042,1,0,0,0,4044,4045,1,0,0,0,4045,4047,1,0,0,0,4046,4044,1,0,0,0,4047,4048,5,27,0,0,4048,669,1,0,0,0,4049,4050,3,680,340,0,4050,671,1,0,0,0,4051,4052,5,315,0,0,4052,4053,5,26,0,0,4053,4054,3,698,349,0,4054,4055,5,27,0,0,4055,673,1,0,0,0,4056,4057,5,45,0,0,4057,4060,5,290,0,0,4058,4059,5,154,0,0,4059,4061,5,128,0,0,4060,4058,1,0,0,0,4060,4061,1,0,0,0,4061,4062,1,0,0,0,4062,4063,3,712,356,0,4063,4068,3,676,338,0,4064,4065,5,25,0,0,4065,4067,3,676,338,0,4066,4064,1,0,0,0,4067,4070,1,0,0,0,4068,4066,1,0,0,0,4068,4069,1,0,0,0,4069,675,1,0,0,0,4070,4068,1,0,0,0,4071,4077,3,678,339,0,4072,4077,3,682,341,0,4073,4077,3,686,343,0,4074,4077,3,692,346,0,4075,4077,3,694,347,0,4076,4071,1,0,0,0,4076,4072,1,0,0,0,4076,4073,1,0,0,0,4076,4074,1,0,0,0,4076,4075,1,0,0,0,4077,677,1,0,0,0,4078,4079,5,42,0,0,4079,4080,3,680,340,0,4080,679,1,0,0,0,4081,4082,5,85,0,0,4082,4084,3,790,395,0,4083,4085,3,704,352,0,4084,4083,1,0,0,0,4084,4085,1,0,0,0,4085,681,1,0,0,0,4086,4087,5,45,0,0,4087,4088,5,85,0,0,4088,4089,3,714,357,0,4089,4090,3,684,342,0,4090,683,1,0,0,0,4091,4094,3,688,344,0,4092,4094,3,690,345,0,4093,4091,1,0,0,0,4093,4092,1,0,0,0,4094,685,1,0,0,0,4095,4096,5,112,0,0,4096,4097,5,85,0,0,4097,4098,3,714,357,0,4098,687,1,0,0,0,4099,4100,5,267,0,0,4100,4101,5,26,0,0,4101,4102,3,706,353,0,4102,4103,5,27,0,0,4103,689,1,0,0,0,4104,4105,5,244,0,0,4105,4106,5,26,0,0,4106,4111,3,790,395,0,4107,4108,5,25,0,0,4108,4110,3,790,395,0,4109,4107,1,0,0,0,4110,4113,1,0,0,0,4111,4109,1,0,0,0,4111,4112,1,0,0,0,4112,4114,1,0,0,0,4113,4111,1,0,0,0,4114,4115,5,27,0,0,4115,691,1,0,0,0,4116,4117,5,267,0,0,4117,4118,5,26,0,0,4118,4119,3,698,349,0,4119,4120,5,27,0,0,4120,693,1,0,0,0,4121,4122,5,244,0,0,4122,4123,5,26,0,0,4123,4128,3,790,395,0,4124,4125,5,25,0,0,4125,4127,3,808,404,0,4126,4124,1,0,0,0,4127,4130,1,0,0,0,4128,4126,1,0,0,0,4128,4129,1,0,0,0,4129,4131,1,0,0,0,4130,4128,1,0,0,0,4131,4132,5,27,0,0,4132,695,1,0,0,0,4133,4134,5,112,0,0,4134,4137,5,290,0,0,4135,4136,5,154,0,0,4136,4138,5,128,0,0,4137,4135,1,0,0,0,4137,4138,1,0,0,0,4138,4139,1,0,0,0,4139,4140,3,712,356,0,4140,697,1,0,0,0,4141,4146,3,700,350,0,4142,4143,5,25,0,0,4143,4145,3,700,350,0,4144,4142,1,0,0,0,4145,4148,1,0,0,0,4146,4144,1,0,0,0,4146,4147,1,0,0,0,4147,699,1,0,0,0,4148,4146,1,0,0,0,4149,4150,3,790,395,0,4150,4151,5,2,0,0,4151,4152,3,702,351,0,4152,701,1,0,0,0,4153,4154,3,14,7,0,4154,703,1,0,0,0,4155,4156,5,315,0,0,4156,4157,5,26,0,0,4157,4158,3,706,353,0,4158,4159,5,27,0,0,4159,705,1,0,0,0,4160,4165,3,708,354,0,4161,4162,5,25,0,0,4162,4164,3,708,354,0,4163,4161,1,0,0,0,4164,4167,1,0,0,0,4165,4163,1,0,0,0,4165,4166,1,0,0,0,4166,707,1,0,0,0,4167,4165,1,0,0,0,4168,4169,3,790,395,0,4169,4170,5,2,0,0,4170,4171,3,710,355,0,4171,709,1,0,0,0,4172,4173,3,14,7,0,4173,711,1,0,0,0,4174,4175,3,816,408,0,4175,4176,5,24,0,0,4176,4178,1,0,0,0,4177,4174,1,0,0,0,4177,4178,1,0,0,0,4178,4179,1,0,0,0,4179,4180,3,790,395,0,4180,713,1,0,0,0,4181,4182,3,808,404,0,4182,715,1,0,0,0,4183,4184,5,246,0,0,4184,4188,5,200,0,0,4185,4186,5,155,0,0,4186,4188,5,200,0,0,4187,4183,1,0,0,0,4187,4185,1,0,0,0,4188,717,1,0,0,0,4189,4190,5,135,0,0,4190,4191,5,26,0,0,4191,4192,3,866,433,0,4192,4193,5,27,0,0,4193,719,1,0,0,0,4194,4197,3,722,361,0,4195,4197,3,732,366,0,4196,4194,1,0,0,0,4196,4195,1,0,0,0,4197,721,1,0,0,0,4198,4199,3,800,400,0,4199,723,1,0,0,0,4200,4201,5,314,0,0,4201,4202,3,726,363,0,4202,725,1,0,0,0,4203,4208,3,728,364,0,4204,4205,5,25,0,0,4205,4207,3,728,364,0,4206,4204,1,0,0,0,4207,4210,1,0,0,0,4208,4206,1,0,0,0,4208,4209,1,0,0,0,4209,727,1,0,0,0,4210,4208,1,0,0,0,4211,4212,3,730,365,0,4212,4213,5,51,0,0,4213,4214,3,732,366,0,4214,729,1,0,0,0,4215,4216,3,722,361,0,4216,731,1,0,0,0,4217,4218,5,26,0,0,4218,4219,3,734,367,0,4219,4220,5,27,0,0,4220,733,1,0,0,0,4221,4223,3,736,368,0,4222,4221,1,0,0,0,4222,4223,1,0,0,0,4223,4225,1,0,0,0,4224,4226,3,738,369,0,4225,4224,1,0,0,0,4225,4226,1,0,0,0,4226,4228,1,0,0,0,4227,4229,3,740,370,0,4228,4227,1,0,0,0,4228,4229,1,0,0,0,4229,4231,1,0,0,0,4230,4232,3,742,371,0,4231,4230,1,0,0,0,4231,4232,1,0,0,0,4232,735,1,0,0,0,4233,4234,3,722,361,0,4234,737,1,0,0,0,4235,4237,5,216,0,0,4236,4238,5,80,0,0,4237,4236,1,0,0,0,4237,4238,1,0,0,0,4238,4239,1,0,0,0,4239,4240,5,68,0,0,4240,4241,3,130,65,0,4241,739,1,0,0,0,4242,4243,3,314,157,0,4243,741,1,0,0,0,4244,4245,3,744,372,0,4245,4247,3,746,373,0,4246,4248,3,752,376,0,4247,4246,1,0,0,0,4247,4248,1,0,0,0,4248,743,1,0,0,0,4249,4250,7,28,0,0,4250,745,1,0,0,0,4251,4254,3,750,375,0,4252,4254,3,748,374,0,4253,4251,1,0,0,0,4253,4252,1,0,0,0,4254,747,1,0,0,0,4255,4256,5,66,0,0,4256,4257,3,750,375,0,4257,4258,5,47,0,0,4258,4259,3,750,375,0,4259,749,1,0,0,0,4260,4261,5,90,0,0,4261,4268,5,258,0,0,4262,4265,3,14,7,0,4263,4265,5,296,0,0,4264,4262,1,0,0,0,4264,4263,1,0,0,0,4265,4266,1,0,0,0,4266,4268,7,29,0,0,4267,4260,1,0,0,0,4267,4264,1,0,0,0,4268,751,1,0,0,0,4269,4270,5,125,0,0,4270,4271,5,90,0,0,4271,4280,5,258,0,0,4272,4273,5,125,0,0,4273,4280,5,148,0,0,4274,4275,5,125,0,0,4275,4280,5,288,0,0,4276,4277,5,125,0,0,4277,4278,5,196,0,0,4278,4280,5,212,0,0,4279,4269,1,0,0,0,4279,4272,1,0,0,0,4279,4274,1,0,0,0,4279,4276,1,0,0,0,4280,753,1,0,0,0,4281,4282,5,304,0,0,4282,4283,3,816,408,0,4283,755,1,0,0,0,4284,4285,5,26,0,0,4285,4286,3,232,116,0,4286,4287,5,27,0,0,4287,4290,1,0,0,0,4288,4290,3,234,117,0,4289,4284,1,0,0,0,4289,4288,1,0,0,0,4290,757,1,0,0,0,4291,4292,3,148,74,0,4292,4295,5,2,0,0,4293,4296,3,14,7,0,4294,4296,3,756,378,0,4295,4293,1,0,0,0,4295,4294,1,0,0,0,4296,759,1,0,0,0,4297,4298,5,79,0,0,4298,761,1,0,0,0,4299,4300,5,256,0,0,4300,763,1,0,0,0,4301,4306,3,646,323,0,4302,4303,5,26,0,0,4303,4304,3,124,62,0,4304,4305,5,27,0,0,4305,4307,1,0,0,0,4306,4302,1,0,0,0,4306,4307,1,0,0,0,4307,765,1,0,0,0,4308,4313,3,764,382,0,4309,4310,5,25,0,0,4310,4312,3,764,382,0,4311,4309,1,0,0,0,4312,4315,1,0,0,0,4313,4311,1,0,0,0,4313,4314,1,0,0,0,4314,4317,1,0,0,0,4315,4313,1,0,0,0,4316,4318,5,25,0,0,4317,4316,1,0,0,0,4317,4318,1,0,0,0,4318,767,1,0,0,0,4319,4320,5,46,0,0,4320,4321,3,766,383,0,4321,769,1,0,0,0,4322,4323,7,30,0,0,4323,771,1,0,0,0,4324,4327,3,770,385,0,4325,4327,3,828,414,0,4326,4324,1,0,0,0,4326,4325,1,0,0,0,4327,773,1,0,0,0,4328,4336,3,770,385,0,4329,4336,3,846,423,0,4330,4336,3,830,415,0,4331,4336,3,834,417,0,4332,4336,3,838,419,0,4333,4336,3,840,420,0,4334,4336,3,842,421,0,4335,4328,1,0,0,0,4335,4329,1,0,0,0,4335,4330,1,0,0,0,4335,4331,1,0,0,0,4335,4332,1,0,0,0,4335,4333,1,0,0,0,4335,4334,1,0,0,0,4336,775,1,0,0,0,4337,4344,3,770,385,0,4338,4344,3,846,423,0,4339,4344,3,836,418,0,4340,4344,3,838,419,0,4341,4344,3,840,420,0,4342,4344,3,842,421,0,4343,4337,1,0,0,0,4343,4338,1,0,0,0,4343,4339,1,0,0,0,4343,4340,1,0,0,0,4343,4341,1,0,0,0,4343,4342,1,0,0,0,4344,777,1,0,0,0,4345,4351,3,770,385,0,4346,4351,3,846,423,0,4347,4351,3,836,418,0,4348,4351,3,840,420,0,4349,4351,3,842,421,0,4350,4345,1,0,0,0,4350,4346,1,0,0,0,4350,4347,1,0,0,0,4350,4348,1,0,0,0,4350,4349,1,0,0,0,4351,779,1,0,0,0,4352,4361,3,770,385,0,4353,4361,3,846,423,0,4354,4361,3,830,415,0,4355,4361,3,832,416,0,4356,4361,3,834,417,0,4357,4361,3,836,418,0,4358,4361,3,838,419,0,4359,4361,3,842,421,0,4360,4352,1,0,0,0,4360,4353,1,0,0,0,4360,4354,1,0,0,0,4360,4355,1,0,0,0,4360,4356,1,0,0,0,4360,4357,1,0,0,0,4360,4358,1,0,0,0,4360,4359,1,0,0,0,4361,781,1,0,0,0,4362,4370,3,770,385,0,4363,4370,3,846,423,0,4364,4370,3,830,415,0,4365,4370,3,834,417,0,4366,4370,3,838,419,0,4367,4370,3,840,420,0,4368,4370,3,842,421,0,4369,4362,1,0,0,0,4369,4363,1,0,0,0,4369,4364,1,0,0,0,4369,4365,1,0,0,0,4369,4366,1,0,0,0,4369,4367,1,0,0,0,4369,4368,1,0,0,0,4370,783,1,0,0,0,4371,4379,3,770,385,0,4372,4379,3,846,423,0,4373,4379,3,832,416,0,4374,4379,3,836,418,0,4375,4379,3,838,419,0,4376,4379,3,840,420,0,4377,4379,3,842,421,0,4378,4371,1,0,0,0,4378,4372,1,0,0,0,4378,4373,1,0,0,0,4378,4374,1,0,0,0,4378,4375,1,0,0,0,4378,4376,1,0,0,0,4378,4377,1,0,0,0,4379,785,1,0,0,0,4380,4389,3,770,385,0,4381,4389,3,846,423,0,4382,4389,3,830,415,0,4383,4389,3,832,416,0,4384,4389,3,834,417,0,4385,4389,3,836,418,0,4386,4389,3,838,419,0,4387,4389,3,840,420,0,4388,4380,1,0,0,0,4388,4381,1,0,0,0,4388,4382,1,0,0,0,4388,4383,1,0,0,0,4388,4384,1,0,0,0,4388,4385,1,0,0,0,4388,4386,1,0,0,0,4388,4387,1,0,0,0,4389,787,1,0,0,0,4390,4393,3,770,385,0,4391,4393,3,844,422,0,4392,4390,1,0,0,0,4392,4391,1,0,0,0,4393,789,1,0,0,0,4394,4397,3,772,386,0,4395,4397,5,319,0,0,4396,4394,1,0,0,0,4396,4395,1,0,0,0,4397,791,1,0,0,0,4398,4401,3,818,409,0,4399,4401,5,319,0,0,4400,4398,1,0,0,0,4400,4399,1,0,0,0,4401,793,1,0,0,0,4402,4405,3,774,387,0,4403,4405,5,319,0,0,4404,4402,1,0,0,0,4404,4403,1,0,0,0,4405,795,1,0,0,0,4406,4409,3,776,388,0,4407,4409,5,319,0,0,4408,4406,1,0,0,0,4408,4407,1,0,0,0,4409,797,1,0,0,0,4410,4413,3,778,389,0,4411,4413,5,319,0,0,4412,4410,1,0,0,0,4412,4411,1,0,0,0,4413,799,1,0,0,0,4414,4417,3,780,390,0,4415,4417,5,319,0,0,4416,4414,1,0,0,0,4416,4415,1,0,0,0,4417,801,1,0,0,0,4418,4421,3,782,391,0,4419,4421,5,319,0,0,4420,4418,1,0,0,0,4420,4419,1,0,0,0,4421,803,1,0,0,0,4422,4425,3,784,392,0,4423,4425,5,319,0,0,4424,4422,1,0,0,0,4424,4423,1,0,0,0,4425,805,1,0,0,0,4426,4429,3,786,393,0,4427,4429,5,319,0,0,4428,4426,1,0,0,0,4428,4427,1,0,0,0,4429,807,1,0,0,0,4430,4433,3,770,385,0,4431,4433,5,319,0,0,4432,4430,1,0,0,0,4432,4431,1,0,0,0,4433,809,1,0,0,0,4434,4437,3,788,394,0,4435,4437,5,319,0,0,4436,4434,1,0,0,0,4436,4435,1,0,0,0,4437,811,1,0,0,0,4438,4442,3,790,395,0,4439,4440,5,228,0,0,4440,4442,5,177,0,0,4441,4438,1,0,0,0,4441,4439,1,0,0,0,4442,813,1,0,0,0,4443,4444,3,790,395,0,4444,4445,5,24,0,0,4445,4447,1,0,0,0,4446,4443,1,0,0,0,4446,4447,1,0,0,0,4447,815,1,0,0,0,4448,4449,3,790,395,0,4449,4450,5,29,0,0,4450,4452,1,0,0,0,4451,4448,1,0,0,0,4451,4452,1,0,0,0,4452,4455,1,0,0,0,4453,4456,3,116,58,0,4454,4456,5,20,0,0,4455,4453,1,0,0,0,4455,4454,1,0,0,0,4456,817,1,0,0,0,4457,4460,3,772,386,0,4458,4460,3,848,424,0,4459,4457,1,0,0,0,4459,4458,1,0,0,0,4460,819,1,0,0,0,4461,4462,3,792,396,0,4462,4463,5,24,0,0,4463,4465,1,0,0,0,4464,4461,1,0,0,0,4464,4465,1,0,0,0,4465,821,1,0,0,0,4466,4468,5,30,0,0,4467,4466,1,0,0,0,4467,4468,1,0,0,0,4468,4469,1,0,0,0,4469,4470,3,792,396,0,4470,823,1,0,0,0,4471,4474,3,802,401,0,4472,4474,3,848,424,0,4473,4471,1,0,0,0,4473,4472,1,0,0,0,4474,825,1,0,0,0,4475,4477,5,30,0,0,4476,4475,1,0,0,0,4476,4477,1,0,0,0,4477,4478,1,0,0,0,4478,4479,3,824,412,0,4479,827,1,0,0,0,4480,4489,3,846,423,0,4481,4489,3,830,415,0,4482,4489,3,832,416,0,4483,4489,3,834,417,0,4484,4489,3,836,418,0,4485,4489,3,838,419,0,4486,4489,3,840,420,0,4487,4489,3,842,421,0,4488,4480,1,0,0,0,4488,4481,1,0,0,0,4488,4482,1,0,0,0,4488,4483,1,0,0,0,4488,4484,1,0,0,0,4488,4485,1,0,0,0,4488,4486,1,0,0,0,4488,4487,1,0,0,0,4489,829,1,0,0,0,4490,4491,7,31,0,0,4491,831,1,0,0,0,4492,4493,7,32,0,0,4493,833,1,0,0,0,4494,4495,7,33,0,0,4495,835,1,0,0,0,4496,4497,5,77,0,0,4497,837,1,0,0,0,4498,4499,5,80,0,0,4499,839,1,0,0,0,4500,4501,7,28,0,0,4501,841,1,0,0,0,4502,4503,7,27,0,0,4503,843,1,0,0,0,4504,4505,7,34,0,0,4505,845,1,0,0,0,4506,4507,7,35,0,0,4507,847,1,0,0,0,4508,4509,7,36,0,0,4509,849,1,0,0,0,4510,4511,7,37,0,0,4511,851,1,0,0,0,4512,4513,5,324,0,0,4513,853,1,0,0,0,4514,4515,7,38,0,0,4515,855,1,0,0,0,4516,4522,3,858,429,0,4517,4518,5,225,0,0,4518,4519,5,48,0,0,4519,4520,5,322,0,0,4520,4522,3,4,2,0,4521,4516,1,0,0,0,4521,4517,1,0,0,0,4522,857,1,0,0,0,4523,4525,5,23,0,0,4524,4523,1,0,0,0,4525,4528,1,0,0,0,4526,4524,1,0,0,0,4526,4527,1,0,0,0,4527,4529,1,0,0,0,4528,4526,1,0,0,0,4529,4538,3,860,430,0,4530,4532,5,23,0,0,4531,4530,1,0,0,0,4532,4533,1,0,0,0,4533,4531,1,0,0,0,4533,4534,1,0,0,0,4534,4535,1,0,0,0,4535,4537,3,860,430,0,4536,4531,1,0,0,0,4537,4540,1,0,0,0,4538,4536,1,0,0,0,4538,4539,1,0,0,0,4539,4544,1,0,0,0,4540,4538,1,0,0,0,4541,4543,5,23,0,0,4542,4541,1,0,0,0,4543,4546,1,0,0,0,4544,4542,1,0,0,0,4544,4545,1,0,0,0,4545,4547,1,0,0,0,4546,4544,1,0,0,0,4547,4548,5,0,0,1,4548,859,1,0,0,0,4549,4552,5,129,0,0,4550,4551,5,1,0,0,4551,4553,5,223,0,0,4552,4550,1,0,0,0,4552,4553,1,0,0,0,4553,4555,1,0,0,0,4554,4549,1,0,0,0,4554,4555,1,0,0,0,4555,4556,1,0,0,0,4556,4557,3,862,431,0,4557,861,1,0,0,0,4558,4572,3,224,112,0,4559,4572,3,232,116,0,4560,4572,3,758,379,0,4561,4572,3,754,377,0,4562,4572,3,366,183,0,4563,4572,3,210,105,0,4564,4572,3,214,107,0,4565,4572,3,216,108,0,4566,4572,3,222,111,0,4567,4572,3,624,312,0,4568,4572,3,628,314,0,4569,4572,3,630,315,0,4570,4572,3,370,185,0,4571,4558,1,0,0,0,4571,4559,1,0,0,0,4571,4560,1,0,0,0,4571,4561,1,0,0,0,4571,4562,1,0,0,0,4571,4563,1,0,0,0,4571,4564,1,0,0,0,4571,4565,1,0,0,0,4571,4566,1,0,0,0,4571,4567,1,0,0,0,4571,4568,1,0,0,0,4571,4569,1,0,0,0,4571,4570,1,0,0,0,4572,863,1,0,0,0,4573,4574,5,51,0,0,4574,4575,3,642,321,0,4575,865,1,0,0,0,4576,4577,5,313,0,0,4577,4578,3,14,7,0,4578,867,1,0,0,0,4579,4580,5,142,0,0,4580,4581,3,338,169,0,4581,869,1,0,0,0,4582,4585,3,464,232,0,4583,4585,3,472,236,0,4584,4582,1,0,0,0,4584,4583,1,0,0,0,4585,871,1,0,0,0,504,877,882,889,894,900,908,916,923,927,935,940,945,947,1007,1014,1018,1025,1033,1038,1042,1048,1054,1057,1061,1069,1073,1076,1080,1091,1096,1098,1107,1128,1133,1142,1144,1151,1159,1167,1174,1184,1186,1190,1195,1199,1205,1211,1215,1219,1222,1229,1235,1239,1244,1247,1261,1266,1269,1283,1290,1301,1312,1332,1338,1343,1347,1361,1363,1370,1376,1387,1395,1401,1408,1416,1429,1435,1439,1442,1444,1452,1460,1466,1472,1478,1481,1490,1499,1506,1514,1527,1534,1538,1545,1549,1554,1561,1568,1571,1578,1582,1592,1615,1621,1625,1632,1638,1645,1649,1653,1659,1664,1673,1676,1682,1687,1695,1702,1724,1728,1730,1734,1743,1747,1749,1753,1762,1766,1804,1808,1828,1831,1837,1857,1862,1868,1873,1876,1880,1907,1915,1918,1925,1938,1942,1954,1967,1972,1979,1983,1990,1999,2008,2016,2020,2024,2031,2033,2036,2041,2046,2050,2057,2064,2068,2071,2075,2079,2081,2092,2101,2106,2112,2117,2120,2124,2128,2131,2134,2138,2146,2150,2154,2157,2160,2163,2167,2170,2173,2178,2181,2184,2187,2201,2203,2214,2224,2234,2237,2244,2268,2279,2285,2289,2293,2297,2301,2305,2309,2313,2319,2326,2336,2347,2360,2376,2386,2406,2412,2419,2426,2434,2443,2480,2482,2485,2490,2494,2498,2504,2510,2514,2519,2524,2526,2530,2535,2538,2540,2544,2555,2566,2577,2581,2585,2589,2592,2596,2599,2605,2614,2617,2631,2637,2650,2657,2662,2669,2676,2685,2690,2698,2713,2719,2727,2736,2740,2749,2761,2768,2776,2797,2805,2814,2824,2833,2838,2845,2855,2860,2869,2873,2877,2880,2883,2886,2889,2897,2902,2913,2920,2933,2941,2946,2953,2966,2977,2987,2993,3002,3019,3042,3062,3073,3081,3091,3096,3100,3106,3144,3156,3198,3206,3209,3213,3217,3227,3240,3253,3258,3270,3281,3286,3289,3293,3297,3301,3304,3317,3321,3333,3347,3362,3377,3380,3392,3395,3405,3413,3419,3427,3435,3442,3446,3454,3460,3466,3478,3482,3484,3496,3500,3505,3511,3518,3522,3526,3529,3542,3551,3555,3560,3566,3575,3584,3601,3605,3609,3611,3615,3622,3626,3630,3632,3649,3654,3678,3683,3701,3717,3733,3748,3755,3763,3774,3781,3786,3792,3795,3798,3805,3808,3811,3820,3825,3828,3838,3842,3844,3851,3854,3858,3860,3863,3868,3871,3876,3886,3891,3902,3906,3910,3912,3916,3921,3929,3932,3935,3938,3943,3949,3952,3956,3962,3970,3973,3980,3984,3987,3991,3998,4019,4029,4033,4036,4044,4060,4068,4076,4084,4093,4111,4128,4137,4146,4165,4177,4187,4196,4208,4222,4225,4228,4231,4237,4247,4253,4264,4267,4279,4289,4295,4306,4313,4317,4326,4335,4343,4350,4360,4369,4378,4388,4392,4396,4400,4404,4408,4412,4416,4420,4424,4428,4432,4436,4441,4446,4451,4455,4459,4464,4467,4473,4476,4488,4521,4526,4533,4538,4544,4552,4554,4571,4584]}static get _ATN(){return t.__ATN||(t.__ATN=(new Ft).deserialize(t._serializedATN)),t.__ATN}static{this.vocabulary=new l(t.literalNames,t.symbolicNames,[])}get vocabulary(){return t.vocabulary}static{this.decisionsToDFA=t._ATN.decisionToState.map(((t,e)=>new ae(t,e)))}},sr=class extends P{static{Ls(this,"Sql_queryContext")}constructor(t,e){super(t,e)}sql_stmt_list(){return this.getRuleContext(0,rr)}PRAGMA(){return this.getToken(er.PRAGMA,0)}ANSI(){return this.getToken(er.ANSI,0)}DIGITS(){return this.getToken(er.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,ir)}get ruleIndex(){return er.RULE_sql_query}accept(t){return t.visitSql_query?t.visitSql_query(this):t.visitChildren(this)}},rr=class extends P{static{Ls(this,"Sql_stmt_listContext")}constructor(t,e){super(t,e)}sql_stmt(t){return void 0===t?this.getRuleContexts(cr):this.getRuleContext(t,cr)}EOF(){return this.getToken(er.EOF,0)}SEMICOLON(t){return void 0===t?this.getTokens(er.SEMICOLON):this.getToken(er.SEMICOLON,t)}get ruleIndex(){return er.RULE_sql_stmt_list}accept(t){return t.visitSql_stmt_list?t.visitSql_stmt_list(this):t.visitChildren(this)}},ir=class extends P{static{Ls(this,"Ansi_sql_stmt_listContext")}constructor(t,e){super(t,e)}EOF(){return this.getToken(er.EOF,0)}SEMICOLON(t){return void 0===t?this.getTokens(er.SEMICOLON):this.getToken(er.SEMICOLON,t)}get ruleIndex(){return er.RULE_ansi_sql_stmt_list}accept(t){return t.visitAnsi_sql_stmt_list?t.visitAnsi_sql_stmt_list(this):t.visitChildren(this)}},ar=class extends P{static{Ls(this,"Lambda_bodyContext")}constructor(t,e){super(t,e)}RETURN(){return this.getToken(er.RETURN,0)}expr(){return this.getRuleContext(0,or)}SEMICOLON(t){return void 0===t?this.getTokens(er.SEMICOLON):this.getToken(er.SEMICOLON,t)}lambda_stmt(t){return void 0===t?this.getRuleContexts(nr):this.getRuleContext(t,nr)}get ruleIndex(){return er.RULE_lambda_body}accept(t){return t.visitLambda_body?t.visitLambda_body(this):t.visitChildren(this)}},nr=class extends P{static{Ls(this,"Lambda_stmtContext")}constructor(t,e){super(t,e)}named_nodes_stmt(){return this.getRuleContext(0,aE)}import_stmt(){return this.getRuleContext(0,ea)}get ruleIndex(){return er.RULE_lambda_stmt}accept(t){return t.visitLambda_stmt?t.visitLambda_stmt(this):t.visitChildren(this)}},cr=class extends P{static{Ls(this,"Sql_stmtContext")}constructor(t,e){super(t,e)}sql_stmt_core(){return this.getRuleContext(0,hr)}EXPLAIN(){return this.getToken(er.EXPLAIN,0)}QUERY(){return this.getToken(er.QUERY,0)}PLAN(){return this.getToken(er.PLAN,0)}get ruleIndex(){return er.RULE_sql_stmt}accept(t){return t.visitSql_stmt?t.visitSql_stmt(this):t.visitChildren(this)}},hr=class extends P{static{Ls(this,"Sql_stmt_coreContext")}constructor(t,e){super(t,e)}pragma_stmt(){return this.getRuleContext(0,na)}select_stmt(){return this.getRuleContext(0,Ea)}named_nodes_stmt(){return this.getRuleContext(0,aE)}create_table_stmt(){return this.getRuleContext(0,Jn)}drop_table_stmt(){return this.getRuleContext(0,Th)}use_stmt(){return this.getRuleContext(0,rE)}into_table_stmt(){return this.getRuleContext(0,On)}commit_stmt(){return this.getRuleContext(0,nE)}update_stmt(){return this.getRuleContext(0,ao)}delete_stmt(){return this.getRuleContext(0,io)}rollback_stmt(){return this.getRuleContext(0,cE)}declare_stmt(){return this.getRuleContext(0,$i)}import_stmt(){return this.getRuleContext(0,ea)}export_stmt(){return this.getRuleContext(0,sa)}alter_table_stmt(){return this.getRuleContext(0,Lc)}alter_external_table_stmt(){return this.getRuleContext(0,Nc)}do_stmt(){return this.getRuleContext(0,aa)}define_action_or_subquery_stmt(){return this.getRuleContext(0,Xh)}if_stmt(){return this.getRuleContext(0,Qh)}for_stmt(){return this.getRuleContext(0,qh)}values_stmt(){return this.getRuleContext(0,mn)}create_user_stmt(){return this.getRuleContext(0,Ah)}alter_user_stmt(){return this.getRuleContext(0,Sh)}create_group_stmt(){return this.getRuleContext(0,dh)}alter_group_stmt(){return this.getRuleContext(0,Lh)}drop_role_stmt(){return this.getRuleContext(0,Ch)}create_object_stmt(){return this.getRuleContext(0,wn)}alter_object_stmt(){return this.getRuleContext(0,Gn)}drop_object_stmt(){return this.getRuleContext(0,Yn)}create_external_data_source_stmt(){return this.getRuleContext(0,kn)}alter_external_data_source_stmt(){return this.getRuleContext(0,Mn)}drop_external_data_source_stmt(){return this.getRuleContext(0,yn)}create_replication_stmt(){return this.getRuleContext(0,bh)}drop_replication_stmt(){return this.getRuleContext(0,Vh)}create_topic_stmt(){return this.getRuleContext(0,uo)}alter_topic_stmt(){return this.getRuleContext(0,Ao)}drop_topic_stmt(){return this.getRuleContext(0,Uo)}grant_permissions_stmt(){return this.getRuleContext(0,Oh)}revoke_permissions_stmt(){return this.getRuleContext(0,ph)}alter_table_store_stmt(){return this.getRuleContext(0,Oc)}upsert_object_stmt(){return this.getRuleContext(0,Hn)}create_view_stmt(){return this.getRuleContext(0,vn)}drop_view_stmt(){return this.getRuleContext(0,bn)}alter_replication_stmt(){return this.getRuleContext(0,Gh)}create_resource_pool_stmt(){return this.getRuleContext(0,Uh)}alter_resource_pool_stmt(){return this.getRuleContext(0,fh)}drop_resource_pool_stmt(){return this.getRuleContext(0,kh)}create_backup_collection_stmt(){return this.getRuleContext(0,Zn)}alter_backup_collection_stmt(){return this.getRuleContext(0,$n)}drop_backup_collection_stmt(){return this.getRuleContext(0,tc)}analyze_stmt(){return this.getRuleContext(0,EE)}create_resource_pool_classifier_stmt(){return this.getRuleContext(0,Mh)}alter_resource_pool_classifier_stmt(){return this.getRuleContext(0,Dh)}drop_resource_pool_classifier_stmt(){return this.getRuleContext(0,vh)}backup_stmt(){return this.getRuleContext(0,lc)}restore_stmt(){return this.getRuleContext(0,uc)}get ruleIndex(){return er.RULE_sql_stmt_core}accept(t){return t.visitSql_stmt_core?t.visitSql_stmt_core(this):t.visitChildren(this)}},or=class extends P{static{Ls(this,"ExprContext")}constructor(t,e){super(t,e)}or_subexpr(t){return void 0===t?this.getRuleContexts(Er):this.getRuleContext(t,Er)}OR(t){return void 0===t?this.getTokens(er.OR):this.getToken(er.OR,t)}type_name_composite(){return this.getRuleContext(0,qi)}get ruleIndex(){return er.RULE_expr}accept(t){return t.visitExpr?t.visitExpr(this):t.visitChildren(this)}},Er=class extends P{static{Ls(this,"Or_subexprContext")}constructor(t,e){super(t,e)}and_subexpr(t){return void 0===t?this.getRuleContexts(lr):this.getRuleContext(t,lr)}AND(t){return void 0===t?this.getTokens(er.AND):this.getToken(er.AND,t)}get ruleIndex(){return er.RULE_or_subexpr}accept(t){return t.visitOr_subexpr?t.visitOr_subexpr(this):t.visitChildren(this)}},lr=class extends P{static{Ls(this,"And_subexprContext")}constructor(t,e){super(t,e)}xor_subexpr(t){return void 0===t?this.getRuleContexts(ur):this.getRuleContext(t,ur)}XOR(t){return void 0===t?this.getTokens(er.XOR):this.getToken(er.XOR,t)}get ruleIndex(){return er.RULE_and_subexpr}accept(t){return t.visitAnd_subexpr?t.visitAnd_subexpr(this):t.visitChildren(this)}},ur=class extends P{static{Ls(this,"Xor_subexprContext")}constructor(t,e){super(t,e)}eq_subexpr(){return this.getRuleContext(0,Ar)}cond_expr(){return this.getRuleContext(0,_r)}get ruleIndex(){return er.RULE_xor_subexpr}accept(t){return t.visitXor_subexpr?t.visitXor_subexpr(this):t.visitChildren(this)}},Rr=class extends P{static{Ls(this,"Distinct_from_opContext")}constructor(t,e){super(t,e)}IS(){return this.getToken(er.IS,0)}DISTINCT(){return this.getToken(er.DISTINCT,0)}FROM(){return this.getToken(er.FROM,0)}NOT(){return this.getToken(er.NOT,0)}get ruleIndex(){return er.RULE_distinct_from_op}accept(t){return t.visitDistinct_from_op?t.visitDistinct_from_op(this):t.visitChildren(this)}},_r=class extends P{static{Ls(this,"Cond_exprContext")}constructor(t,e){super(t,e)}match_op(){return this.getRuleContext(0,Tr)}eq_subexpr(t){return void 0===t?this.getRuleContexts(Ar):this.getRuleContext(t,Ar)}NOT(){return this.getToken(er.NOT,0)}ESCAPE(){return this.getToken(er.ESCAPE,0)}IN(){return this.getToken(er.IN,0)}in_expr(){return this.getRuleContext(0,Vr)}COMPACT(){return this.getToken(er.COMPACT,0)}ISNULL(){return this.getToken(er.ISNULL,0)}NOTNULL(){return this.getToken(er.NOTNULL,0)}IS(){return this.getToken(er.IS,0)}NULL(){return this.getToken(er.NULL,0)}BETWEEN(){return this.getToken(er.BETWEEN,0)}AND(){return this.getToken(er.AND,0)}SYMMETRIC(){return this.getToken(er.SYMMETRIC,0)}ASYMMETRIC(){return this.getToken(er.ASYMMETRIC,0)}EQUALS(t){return void 0===t?this.getTokens(er.EQUALS):this.getToken(er.EQUALS,t)}EQUALS2(t){return void 0===t?this.getTokens(er.EQUALS2):this.getToken(er.EQUALS2,t)}NOT_EQUALS(t){return void 0===t?this.getTokens(er.NOT_EQUALS):this.getToken(er.NOT_EQUALS,t)}NOT_EQUALS2(t){return void 0===t?this.getTokens(er.NOT_EQUALS2):this.getToken(er.NOT_EQUALS2,t)}distinct_from_op(t){return void 0===t?this.getRuleContexts(Rr):this.getRuleContext(t,Rr)}get ruleIndex(){return er.RULE_cond_expr}accept(t){return t.visitCond_expr?t.visitCond_expr(this):t.visitChildren(this)}},Tr=class extends P{static{Ls(this,"Match_opContext")}constructor(t,e){super(t,e)}LIKE(){return this.getToken(er.LIKE,0)}ILIKE(){return this.getToken(er.ILIKE,0)}GLOB(){return this.getToken(er.GLOB,0)}REGEXP(){return this.getToken(er.REGEXP,0)}RLIKE(){return this.getToken(er.RLIKE,0)}MATCH(){return this.getToken(er.MATCH,0)}get ruleIndex(){return er.RULE_match_op}accept(t){return t.visitMatch_op?t.visitMatch_op(this):t.visitChildren(this)}},Ar=class extends P{static{Ls(this,"Eq_subexprContext")}constructor(t,e){super(t,e)}neq_subexpr(t){return void 0===t?this.getRuleContexts(Cr):this.getRuleContext(t,Cr)}LESS(t){return void 0===t?this.getTokens(er.LESS):this.getToken(er.LESS,t)}LESS_OR_EQ(t){return void 0===t?this.getTokens(er.LESS_OR_EQ):this.getToken(er.LESS_OR_EQ,t)}GREATER(t){return void 0===t?this.getTokens(er.GREATER):this.getToken(er.GREATER,t)}GREATER_OR_EQ(t){return void 0===t?this.getTokens(er.GREATER_OR_EQ):this.getToken(er.GREATER_OR_EQ,t)}get ruleIndex(){return er.RULE_eq_subexpr}accept(t){return t.visitEq_subexpr?t.visitEq_subexpr(this):t.visitChildren(this)}},Sr=class extends P{static{Ls(this,"Shift_rightContext")}constructor(t,e){super(t,e)}GREATER(t){return void 0===t?this.getTokens(er.GREATER):this.getToken(er.GREATER,t)}get ruleIndex(){return er.RULE_shift_right}accept(t){return t.visitShift_right?t.visitShift_right(this):t.visitChildren(this)}},dr=class extends P{static{Ls(this,"Rot_rightContext")}constructor(t,e){super(t,e)}GREATER(t){return void 0===t?this.getTokens(er.GREATER):this.getToken(er.GREATER,t)}PIPE(){return this.getToken(er.PIPE,0)}get ruleIndex(){return er.RULE_rot_right}accept(t){return t.visitRot_right?t.visitRot_right(this):t.visitChildren(this)}},Lr=class extends P{static{Ls(this,"Double_questionContext")}constructor(t,e){super(t,e)}QUESTION(t){return void 0===t?this.getTokens(er.QUESTION):this.getToken(er.QUESTION,t)}get ruleIndex(){return er.RULE_double_question}accept(t){return t.visitDouble_question?t.visitDouble_question(this):t.visitChildren(this)}},Cr=class t extends P{static{Ls(this,"Neq_subexprContext")}constructor(t,e){super(t,e)}bit_subexpr(t){return void 0===t?this.getRuleContexts(Nr):this.getRuleContext(t,Nr)}double_question(){return this.getRuleContext(0,Lr)}neq_subexpr(){return this.getRuleContext(0,t)}SHIFT_LEFT(t){return void 0===t?this.getTokens(er.SHIFT_LEFT):this.getToken(er.SHIFT_LEFT,t)}shift_right(t){return void 0===t?this.getRuleContexts(Sr):this.getRuleContext(t,Sr)}ROT_LEFT(t){return void 0===t?this.getTokens(er.ROT_LEFT):this.getToken(er.ROT_LEFT,t)}rot_right(t){return void 0===t?this.getRuleContexts(dr):this.getRuleContext(t,dr)}AMPERSAND(t){return void 0===t?this.getTokens(er.AMPERSAND):this.getToken(er.AMPERSAND,t)}PIPE(t){return void 0===t?this.getTokens(er.PIPE):this.getToken(er.PIPE,t)}CARET(t){return void 0===t?this.getTokens(er.CARET):this.getToken(er.CARET,t)}QUESTION(t){return void 0===t?this.getTokens(er.QUESTION):this.getToken(er.QUESTION,t)}get ruleIndex(){return er.RULE_neq_subexpr}accept(t){return t.visitNeq_subexpr?t.visitNeq_subexpr(this):t.visitChildren(this)}},Nr=class extends P{static{Ls(this,"Bit_subexprContext")}constructor(t,e){super(t,e)}add_subexpr(t){return void 0===t?this.getRuleContexts(Ir):this.getRuleContext(t,Ir)}PLUS(t){return void 0===t?this.getTokens(er.PLUS):this.getToken(er.PLUS,t)}MINUS(t){return void 0===t?this.getTokens(er.MINUS):this.getToken(er.MINUS,t)}get ruleIndex(){return er.RULE_bit_subexpr}accept(t){return t.visitBit_subexpr?t.visitBit_subexpr(this):t.visitChildren(this)}},Ir=class extends P{static{Ls(this,"Add_subexprContext")}constructor(t,e){super(t,e)}mul_subexpr(t){return void 0===t?this.getRuleContexts(Or):this.getRuleContext(t,Or)}ASTERISK(t){return void 0===t?this.getTokens(er.ASTERISK):this.getToken(er.ASTERISK,t)}SLASH(t){return void 0===t?this.getTokens(er.SLASH):this.getToken(er.SLASH,t)}PERCENT(t){return void 0===t?this.getTokens(er.PERCENT):this.getToken(er.PERCENT,t)}get ruleIndex(){return er.RULE_add_subexpr}accept(t){return t.visitAdd_subexpr?t.visitAdd_subexpr(this):t.visitChildren(this)}},Or=class extends P{static{Ls(this,"Mul_subexprContext")}constructor(t,e){super(t,e)}con_subexpr(t){return void 0===t?this.getRuleContexts(pr):this.getRuleContext(t,pr)}DOUBLE_PIPE(t){return void 0===t?this.getTokens(er.DOUBLE_PIPE):this.getToken(er.DOUBLE_PIPE,t)}get ruleIndex(){return er.RULE_mul_subexpr}accept(t){return t.visitMul_subexpr?t.visitMul_subexpr(this):t.visitChildren(this)}},pr=class extends P{static{Ls(this,"Con_subexprContext")}constructor(t,e){super(t,e)}unary_subexpr(){return this.getRuleContext(0,fr)}unary_op(){return this.getRuleContext(0,gr)}get ruleIndex(){return er.RULE_con_subexpr}accept(t){return t.visitCon_subexpr?t.visitCon_subexpr(this):t.visitChildren(this)}},gr=class extends P{static{Ls(this,"Unary_opContext")}constructor(t,e){super(t,e)}PLUS(){return this.getToken(er.PLUS,0)}MINUS(){return this.getToken(er.MINUS,0)}TILDA(){return this.getToken(er.TILDA,0)}NOT(){return this.getToken(er.NOT,0)}get ruleIndex(){return er.RULE_unary_op}accept(t){return t.visitUnary_op?t.visitUnary_op(this):t.visitChildren(this)}},mr=class extends P{static{Ls(this,"Unary_subexpr_suffixContext")}constructor(t,e){super(t,e)}COLLATE(){return this.getToken(er.COLLATE,0)}an_id(){return this.getRuleContext(0,NE)}key_expr(t){return void 0===t?this.getRuleContexts(Si):this.getRuleContext(t,Si)}invoke_expr(t){return void 0===t?this.getRuleContexts(_i):this.getRuleContext(t,_i)}DOT(t){return void 0===t?this.getTokens(er.DOT):this.getToken(er.DOT,t)}bind_parameter(t){return void 0===t?this.getRuleContexts(Ci):this.getRuleContext(t,Ci)}DIGITS(t){return void 0===t?this.getTokens(er.DIGITS):this.getToken(er.DIGITS,t)}an_id_or_type(t){return void 0===t?this.getRuleContexts(IE):this.getRuleContext(t,IE)}get ruleIndex(){return er.RULE_unary_subexpr_suffix}accept(t){return t.visitUnary_subexpr_suffix?t.visitUnary_subexpr_suffix(this):t.visitChildren(this)}},xr=class extends P{static{Ls(this,"Unary_casual_subexprContext")}constructor(t,e){super(t,e)}unary_subexpr_suffix(){return this.getRuleContext(0,mr)}id_expr(){return this.getRuleContext(0,_E)}atom_expr(){return this.getRuleContext(0,br)}get ruleIndex(){return er.RULE_unary_casual_subexpr}accept(t){return t.visitUnary_casual_subexpr?t.visitUnary_casual_subexpr(this):t.visitChildren(this)}},Ur=class extends P{static{Ls(this,"In_unary_casual_subexprContext")}constructor(t,e){super(t,e)}unary_subexpr_suffix(){return this.getRuleContext(0,mr)}id_expr_in(){return this.getRuleContext(0,TE)}in_atom_expr(){return this.getRuleContext(0,Hr)}get ruleIndex(){return er.RULE_in_unary_casual_subexpr}accept(t){return t.visitIn_unary_casual_subexpr?t.visitIn_unary_casual_subexpr(this):t.visitChildren(this)}},fr=class extends P{static{Ls(this,"Unary_subexprContext")}constructor(t,e){super(t,e)}unary_casual_subexpr(){return this.getRuleContext(0,xr)}json_api_expr(){return this.getRuleContext(0,Wr)}get ruleIndex(){return er.RULE_unary_subexpr}accept(t){return t.visitUnary_subexpr?t.visitUnary_subexpr(this):t.visitChildren(this)}},Pr=class extends P{static{Ls(this,"In_unary_subexprContext")}constructor(t,e){super(t,e)}in_unary_casual_subexpr(){return this.getRuleContext(0,Ur)}json_api_expr(){return this.getRuleContext(0,Wr)}get ruleIndex(){return er.RULE_in_unary_subexpr}accept(t){return t.visitIn_unary_subexpr?t.visitIn_unary_subexpr(this):t.visitChildren(this)}},kr=class extends P{static{Ls(this,"List_literalContext")}constructor(t,e){super(t,e)}LBRACE_SQUARE(){return this.getToken(er.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(er.RBRACE_SQUARE,0)}expr_list(){return this.getRuleContext(0,ii)}COMMA(){return this.getToken(er.COMMA,0)}get ruleIndex(){return er.RULE_list_literal}accept(t){return t.visitList_literal?t.visitList_literal(this):t.visitChildren(this)}},Mr=class extends P{static{Ls(this,"Expr_dict_listContext")}constructor(t,e){super(t,e)}expr(t){return void 0===t?this.getRuleContexts(or):this.getRuleContext(t,or)}COLON(t){return void 0===t?this.getTokens(er.COLON):this.getToken(er.COLON,t)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_expr_dict_list}accept(t){return t.visitExpr_dict_list?t.visitExpr_dict_list(this):t.visitChildren(this)}},Dr=class extends P{static{Ls(this,"Dict_literalContext")}constructor(t,e){super(t,e)}LBRACE_CURLY(){return this.getToken(er.LBRACE_CURLY,0)}RBRACE_CURLY(){return this.getToken(er.RBRACE_CURLY,0)}expr_dict_list(){return this.getRuleContext(0,Mr)}COMMA(){return this.getToken(er.COMMA,0)}get ruleIndex(){return er.RULE_dict_literal}accept(t){return t.visitDict_literal?t.visitDict_literal(this):t.visitChildren(this)}},yr=class extends P{static{Ls(this,"Expr_struct_listContext")}constructor(t,e){super(t,e)}expr(t){return void 0===t?this.getRuleContexts(or):this.getRuleContext(t,or)}COLON(t){return void 0===t?this.getTokens(er.COLON):this.getToken(er.COLON,t)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_expr_struct_list}accept(t){return t.visitExpr_struct_list?t.visitExpr_struct_list(this):t.visitChildren(this)}},vr=class extends P{static{Ls(this,"Struct_literalContext")}constructor(t,e){super(t,e)}STRUCT_OPEN(){return this.getToken(er.STRUCT_OPEN,0)}STRUCT_CLOSE(){return this.getToken(er.STRUCT_CLOSE,0)}expr_struct_list(){return this.getRuleContext(0,yr)}COMMA(){return this.getToken(er.COMMA,0)}get ruleIndex(){return er.RULE_struct_literal}accept(t){return t.visitStruct_literal?t.visitStruct_literal(this):t.visitChildren(this)}},br=class extends P{static{Ls(this,"Atom_exprContext")}constructor(t,e){super(t,e)}literal_value(){return this.getRuleContext(0,Li)}bind_parameter(){return this.getRuleContext(0,Ci)}lambda(){return this.getRuleContext(0,Yr)}cast_expr(){return this.getRuleContext(0,wr)}exists_expr(){return this.getRuleContext(0,Gr)}case_expr(){return this.getRuleContext(0,Br)}an_id_or_type(){return this.getRuleContext(0,IE)}NAMESPACE(){return this.getToken(er.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,vE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}value_constructor(){return this.getRuleContext(0,Zi)}bitcast_expr(){return this.getRuleContext(0,Fr)}list_literal(){return this.getRuleContext(0,kr)}dict_literal(){return this.getRuleContext(0,Dr)}struct_literal(){return this.getRuleContext(0,vr)}get ruleIndex(){return er.RULE_atom_expr}accept(t){return t.visitAtom_expr?t.visitAtom_expr(this):t.visitChildren(this)}},Hr=class extends P{static{Ls(this,"In_atom_exprContext")}constructor(t,e){super(t,e)}literal_value(){return this.getRuleContext(0,Li)}bind_parameter(){return this.getRuleContext(0,Ci)}lambda(){return this.getRuleContext(0,Yr)}cast_expr(){return this.getRuleContext(0,wr)}case_expr(){return this.getRuleContext(0,Br)}an_id_or_type(){return this.getRuleContext(0,IE)}NAMESPACE(){return this.getToken(er.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,vE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}LPAREN(){return this.getToken(er.LPAREN,0)}select_stmt(){return this.getRuleContext(0,Ea)}RPAREN(){return this.getToken(er.RPAREN,0)}value_constructor(){return this.getRuleContext(0,Zi)}bitcast_expr(){return this.getRuleContext(0,Fr)}list_literal(){return this.getRuleContext(0,kr)}dict_literal(){return this.getRuleContext(0,Dr)}struct_literal(){return this.getRuleContext(0,vr)}get ruleIndex(){return er.RULE_in_atom_expr}accept(t){return t.visitIn_atom_expr?t.visitIn_atom_expr(this):t.visitChildren(this)}},wr=class extends P{static{Ls(this,"Cast_exprContext")}constructor(t,e){super(t,e)}CAST(){return this.getToken(er.CAST,0)}LPAREN(){return this.getToken(er.LPAREN,0)}expr(){return this.getRuleContext(0,or)}AS(){return this.getToken(er.AS,0)}type_name_or_bind(){return this.getRuleContext(0,Ji)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_cast_expr}accept(t){return t.visitCast_expr?t.visitCast_expr(this):t.visitChildren(this)}},Fr=class extends P{static{Ls(this,"Bitcast_exprContext")}constructor(t,e){super(t,e)}BITCAST(){return this.getToken(er.BITCAST,0)}LPAREN(){return this.getToken(er.LPAREN,0)}expr(){return this.getRuleContext(0,or)}AS(){return this.getToken(er.AS,0)}type_name_simple(){return this.getRuleContext(0,mi)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_bitcast_expr}accept(t){return t.visitBitcast_expr?t.visitBitcast_expr(this):t.visitChildren(this)}},Gr=class extends P{static{Ls(this,"Exists_exprContext")}constructor(t,e){super(t,e)}EXISTS(){return this.getToken(er.EXISTS,0)}LPAREN(){return this.getToken(er.LPAREN,0)}RPAREN(){return this.getToken(er.RPAREN,0)}select_stmt(){return this.getRuleContext(0,Ea)}values_stmt(){return this.getRuleContext(0,mn)}get ruleIndex(){return er.RULE_exists_expr}accept(t){return t.visitExists_expr?t.visitExists_expr(this):t.visitChildren(this)}},Br=class extends P{static{Ls(this,"Case_exprContext")}constructor(t,e){super(t,e)}CASE(){return this.getToken(er.CASE,0)}END(){return this.getToken(er.END,0)}expr(t){return void 0===t?this.getRuleContexts(or):this.getRuleContext(t,or)}when_expr(t){return void 0===t?this.getRuleContexts(di):this.getRuleContext(t,di)}ELSE(){return this.getToken(er.ELSE,0)}get ruleIndex(){return er.RULE_case_expr}accept(t){return t.visitCase_expr?t.visitCase_expr(this):t.visitChildren(this)}},Yr=class extends P{static{Ls(this,"LambdaContext")}constructor(t,e){super(t,e)}smart_parenthesis(){return this.getRuleContext(0,ri)}ARROW(){return this.getToken(er.ARROW,0)}LPAREN(){return this.getToken(er.LPAREN,0)}expr(){return this.getRuleContext(0,or)}RPAREN(){return this.getToken(er.RPAREN,0)}LBRACE_CURLY(){return this.getToken(er.LBRACE_CURLY,0)}lambda_body(){return this.getRuleContext(0,ar)}RBRACE_CURLY(){return this.getToken(er.RBRACE_CURLY,0)}get ruleIndex(){return er.RULE_lambda}accept(t){return t.visitLambda?t.visitLambda(this):t.visitChildren(this)}},Vr=class extends P{static{Ls(this,"In_exprContext")}constructor(t,e){super(t,e)}in_unary_subexpr(){return this.getRuleContext(0,Pr)}get ruleIndex(){return er.RULE_in_expr}accept(t){return t.visitIn_expr?t.visitIn_expr(this):t.visitChildren(this)}},Wr=class extends P{static{Ls(this,"Json_api_exprContext")}constructor(t,e){super(t,e)}json_value(){return this.getRuleContext(0,zr)}json_exists(){return this.getRuleContext(0,$r)}json_query(){return this.getRuleContext(0,si)}get ruleIndex(){return er.RULE_json_api_expr}accept(t){return t.visitJson_api_expr?t.visitJson_api_expr(this):t.visitChildren(this)}},Xr=class extends P{static{Ls(this,"Jsonpath_specContext")}constructor(t,e){super(t,e)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_jsonpath_spec}accept(t){return t.visitJsonpath_spec?t.visitJsonpath_spec(this):t.visitChildren(this)}},Kr=class extends P{static{Ls(this,"Json_variable_nameContext")}constructor(t,e){super(t,e)}id_expr(){return this.getRuleContext(0,_E)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_json_variable_name}accept(t){return t.visitJson_variable_name?t.visitJson_variable_name(this):t.visitChildren(this)}},Qr=class extends P{static{Ls(this,"Json_variableContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,or)}AS(){return this.getToken(er.AS,0)}json_variable_name(){return this.getRuleContext(0,Kr)}get ruleIndex(){return er.RULE_json_variable}accept(t){return t.visitJson_variable?t.visitJson_variable(this):t.visitChildren(this)}},qr=class extends P{static{Ls(this,"Json_variablesContext")}constructor(t,e){super(t,e)}json_variable(t){return void 0===t?this.getRuleContexts(Qr):this.getRuleContext(t,Qr)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_json_variables}accept(t){return t.visitJson_variables?t.visitJson_variables(this):t.visitChildren(this)}},jr=class extends P{static{Ls(this,"Json_common_argsContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,or)}COMMA(){return this.getToken(er.COMMA,0)}jsonpath_spec(){return this.getRuleContext(0,Xr)}PASSING(){return this.getToken(er.PASSING,0)}json_variables(){return this.getRuleContext(0,qr)}get ruleIndex(){return er.RULE_json_common_args}accept(t){return t.visitJson_common_args?t.visitJson_common_args(this):t.visitChildren(this)}},Jr=class extends P{static{Ls(this,"Json_case_handlerContext")}constructor(t,e){super(t,e)}ERROR(){return this.getToken(er.ERROR,0)}NULL(){return this.getToken(er.NULL,0)}DEFAULT(){return this.getToken(er.DEFAULT,0)}expr(){return this.getRuleContext(0,or)}get ruleIndex(){return er.RULE_json_case_handler}accept(t){return t.visitJson_case_handler?t.visitJson_case_handler(this):t.visitChildren(this)}},zr=class extends P{static{Ls(this,"Json_valueContext")}constructor(t,e){super(t,e)}JSON_VALUE(){return this.getToken(er.JSON_VALUE,0)}LPAREN(){return this.getToken(er.LPAREN,0)}json_common_args(){return this.getRuleContext(0,jr)}RPAREN(){return this.getToken(er.RPAREN,0)}RETURNING(){return this.getToken(er.RETURNING,0)}type_name_simple(){return this.getRuleContext(0,mi)}json_case_handler(t){return void 0===t?this.getRuleContexts(Jr):this.getRuleContext(t,Jr)}ON(t){return void 0===t?this.getTokens(er.ON):this.getToken(er.ON,t)}EMPTY(t){return void 0===t?this.getTokens(er.EMPTY):this.getToken(er.EMPTY,t)}ERROR(t){return void 0===t?this.getTokens(er.ERROR):this.getToken(er.ERROR,t)}get ruleIndex(){return er.RULE_json_value}accept(t){return t.visitJson_value?t.visitJson_value(this):t.visitChildren(this)}},Zr=class extends P{static{Ls(this,"Json_exists_handlerContext")}constructor(t,e){super(t,e)}ON(){return this.getToken(er.ON,0)}ERROR(t){return void 0===t?this.getTokens(er.ERROR):this.getToken(er.ERROR,t)}TRUE(){return this.getToken(er.TRUE,0)}FALSE(){return this.getToken(er.FALSE,0)}UNKNOWN(){return this.getToken(er.UNKNOWN,0)}get ruleIndex(){return er.RULE_json_exists_handler}accept(t){return t.visitJson_exists_handler?t.visitJson_exists_handler(this):t.visitChildren(this)}},$r=class extends P{static{Ls(this,"Json_existsContext")}constructor(t,e){super(t,e)}JSON_EXISTS(){return this.getToken(er.JSON_EXISTS,0)}LPAREN(){return this.getToken(er.LPAREN,0)}json_common_args(){return this.getRuleContext(0,jr)}RPAREN(){return this.getToken(er.RPAREN,0)}json_exists_handler(){return this.getRuleContext(0,Zr)}get ruleIndex(){return er.RULE_json_exists}accept(t){return t.visitJson_exists?t.visitJson_exists(this):t.visitChildren(this)}},ti=class extends P{static{Ls(this,"Json_query_wrapperContext")}constructor(t,e){super(t,e)}WITHOUT(){return this.getToken(er.WITHOUT,0)}ARRAY(){return this.getToken(er.ARRAY,0)}WITH(){return this.getToken(er.WITH,0)}CONDITIONAL(){return this.getToken(er.CONDITIONAL,0)}UNCONDITIONAL(){return this.getToken(er.UNCONDITIONAL,0)}get ruleIndex(){return er.RULE_json_query_wrapper}accept(t){return t.visitJson_query_wrapper?t.visitJson_query_wrapper(this):t.visitChildren(this)}},ei=class extends P{static{Ls(this,"Json_query_handlerContext")}constructor(t,e){super(t,e)}ERROR(){return this.getToken(er.ERROR,0)}NULL(){return this.getToken(er.NULL,0)}EMPTY(){return this.getToken(er.EMPTY,0)}ARRAY(){return this.getToken(er.ARRAY,0)}OBJECT(){return this.getToken(er.OBJECT,0)}get ruleIndex(){return er.RULE_json_query_handler}accept(t){return t.visitJson_query_handler?t.visitJson_query_handler(this):t.visitChildren(this)}},si=class extends P{static{Ls(this,"Json_queryContext")}constructor(t,e){super(t,e)}JSON_QUERY(){return this.getToken(er.JSON_QUERY,0)}LPAREN(){return this.getToken(er.LPAREN,0)}json_common_args(){return this.getRuleContext(0,jr)}RPAREN(){return this.getToken(er.RPAREN,0)}json_query_wrapper(){return this.getRuleContext(0,ti)}WRAPPER(){return this.getToken(er.WRAPPER,0)}json_query_handler(t){return void 0===t?this.getRuleContexts(ei):this.getRuleContext(t,ei)}ON(t){return void 0===t?this.getTokens(er.ON):this.getToken(er.ON,t)}EMPTY(){return this.getToken(er.EMPTY,0)}ERROR(){return this.getToken(er.ERROR,0)}get ruleIndex(){return er.RULE_json_query}accept(t){return t.visitJson_query?t.visitJson_query(this):t.visitChildren(this)}},ri=class extends P{static{Ls(this,"Smart_parenthesisContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(er.LPAREN,0)}RPAREN(){return this.getToken(er.RPAREN,0)}named_expr_list(){return this.getRuleContext(0,Ri)}COMMA(){return this.getToken(er.COMMA,0)}get ruleIndex(){return er.RULE_smart_parenthesis}accept(t){return t.visitSmart_parenthesis?t.visitSmart_parenthesis(this):t.visitChildren(this)}},ii=class extends P{static{Ls(this,"Expr_listContext")}constructor(t,e){super(t,e)}expr(t){return void 0===t?this.getRuleContexts(or):this.getRuleContext(t,or)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_expr_list}accept(t){return t.visitExpr_list?t.visitExpr_list(this):t.visitChildren(this)}},ai=class extends P{static{Ls(this,"Pure_column_listContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(er.LPAREN,0)}an_id(t){return void 0===t?this.getRuleContexts(NE):this.getRuleContext(t,NE)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_pure_column_list}accept(t){return t.visitPure_column_list?t.visitPure_column_list(this):t.visitChildren(this)}},ni=class extends P{static{Ls(this,"Pure_column_or_namedContext")}constructor(t,e){super(t,e)}bind_parameter(){return this.getRuleContext(0,Ci)}an_id(){return this.getRuleContext(0,NE)}get ruleIndex(){return er.RULE_pure_column_or_named}accept(t){return t.visitPure_column_or_named?t.visitPure_column_or_named(this):t.visitChildren(this)}},ci=class extends P{static{Ls(this,"Pure_column_or_named_listContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(er.LPAREN,0)}pure_column_or_named(t){return void 0===t?this.getRuleContexts(ni):this.getRuleContext(t,ni)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_pure_column_or_named_list}accept(t){return t.visitPure_column_or_named_list?t.visitPure_column_or_named_list(this):t.visitChildren(this)}},hi=class extends P{static{Ls(this,"Column_nameContext")}constructor(t,e){super(t,e)}opt_id_prefix(){return this.getRuleContext(0,DE)}an_id(){return this.getRuleContext(0,NE)}get ruleIndex(){return er.RULE_column_name}accept(t){return t.visitColumn_name?t.visitColumn_name(this):t.visitChildren(this)}},oi=class extends P{static{Ls(this,"Without_column_nameContext")}constructor(t,e){super(t,e)}an_id(t){return void 0===t?this.getRuleContexts(NE):this.getRuleContext(t,NE)}DOT(){return this.getToken(er.DOT,0)}an_id_without(){return this.getRuleContext(0,UE)}get ruleIndex(){return er.RULE_without_column_name}accept(t){return t.visitWithout_column_name?t.visitWithout_column_name(this):t.visitChildren(this)}},Ei=class extends P{static{Ls(this,"Column_listContext")}constructor(t,e){super(t,e)}column_name(t){return void 0===t?this.getRuleContexts(hi):this.getRuleContext(t,hi)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_column_list}accept(t){return t.visitColumn_list?t.visitColumn_list(this):t.visitChildren(this)}},li=class extends P{static{Ls(this,"Without_column_listContext")}constructor(t,e){super(t,e)}without_column_name(t){return void 0===t?this.getRuleContexts(oi):this.getRuleContext(t,oi)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_without_column_list}accept(t){return t.visitWithout_column_list?t.visitWithout_column_list(this):t.visitChildren(this)}},ui=class extends P{static{Ls(this,"Named_exprContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,or)}AS(){return this.getToken(er.AS,0)}an_id_or_type(){return this.getRuleContext(0,IE)}get ruleIndex(){return er.RULE_named_expr}accept(t){return t.visitNamed_expr?t.visitNamed_expr(this):t.visitChildren(this)}},Ri=class extends P{static{Ls(this,"Named_expr_listContext")}constructor(t,e){super(t,e)}named_expr(t){return void 0===t?this.getRuleContexts(ui):this.getRuleContext(t,ui)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_named_expr_list}accept(t){return t.visitNamed_expr_list?t.visitNamed_expr_list(this):t.visitChildren(this)}},_i=class extends P{static{Ls(this,"Invoke_exprContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(er.LPAREN,0)}RPAREN(){return this.getToken(er.RPAREN,0)}invoke_expr_tail(){return this.getRuleContext(0,Ti)}opt_set_quantifier(){return this.getRuleContext(0,Ca)}named_expr_list(){return this.getRuleContext(0,Ri)}ASTERISK(){return this.getToken(er.ASTERISK,0)}COMMA(){return this.getToken(er.COMMA,0)}get ruleIndex(){return er.RULE_invoke_expr}accept(t){return t.visitInvoke_expr?t.visitInvoke_expr(this):t.visitChildren(this)}},Ti=class extends P{static{Ls(this,"Invoke_expr_tailContext")}constructor(t,e){super(t,e)}null_treatment(){return this.getRuleContext(0,wo)}filter_clause(){return this.getRuleContext(0,Fo)}OVER(){return this.getToken(er.OVER,0)}window_name_or_specification(){return this.getRuleContext(0,Go)}get ruleIndex(){return er.RULE_invoke_expr_tail}accept(t){return t.visitInvoke_expr_tail?t.visitInvoke_expr_tail(this):t.visitChildren(this)}},Ai=class extends P{static{Ls(this,"Using_call_exprContext")}constructor(t,e){super(t,e)}invoke_expr(){return this.getRuleContext(0,_i)}an_id_or_type(t){return void 0===t?this.getRuleContexts(IE):this.getRuleContext(t,IE)}NAMESPACE(){return this.getToken(er.NAMESPACE,0)}an_id_expr(){return this.getRuleContext(0,pE)}bind_parameter(){return this.getRuleContext(0,Ci)}EXTERNAL(){return this.getToken(er.EXTERNAL,0)}FUNCTION(){return this.getToken(er.FUNCTION,0)}get ruleIndex(){return er.RULE_using_call_expr}accept(t){return t.visitUsing_call_expr?t.visitUsing_call_expr(this):t.visitChildren(this)}},Si=class extends P{static{Ls(this,"Key_exprContext")}constructor(t,e){super(t,e)}LBRACE_SQUARE(){return this.getToken(er.LBRACE_SQUARE,0)}expr(){return this.getRuleContext(0,or)}RBRACE_SQUARE(){return this.getToken(er.RBRACE_SQUARE,0)}get ruleIndex(){return er.RULE_key_expr}accept(t){return t.visitKey_expr?t.visitKey_expr(this):t.visitChildren(this)}},di=class extends P{static{Ls(this,"When_exprContext")}constructor(t,e){super(t,e)}WHEN(){return this.getToken(er.WHEN,0)}expr(t){return void 0===t?this.getRuleContexts(or):this.getRuleContext(t,or)}THEN(){return this.getToken(er.THEN,0)}get ruleIndex(){return er.RULE_when_expr}accept(t){return t.visitWhen_expr?t.visitWhen_expr(this):t.visitChildren(this)}},Li=class extends P{static{Ls(this,"Literal_valueContext")}constructor(t,e){super(t,e)}integer(){return this.getRuleContext(0,$E)}real(){return this.getRuleContext(0,ZE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}BLOB(){return this.getToken(er.BLOB,0)}NULL(){return this.getToken(er.NULL,0)}CURRENT_TIME(){return this.getToken(er.CURRENT_TIME,0)}CURRENT_DATE(){return this.getToken(er.CURRENT_DATE,0)}CURRENT_TIMESTAMP(){return this.getToken(er.CURRENT_TIMESTAMP,0)}bool_value(){return this.getRuleContext(0,zE)}EMPTY_ACTION(){return this.getToken(er.EMPTY_ACTION,0)}get ruleIndex(){return er.RULE_literal_value}accept(t){return t.visitLiteral_value?t.visitLiteral_value(this):t.visitChildren(this)}},Ci=class extends P{static{Ls(this,"Bind_parameterContext")}constructor(t,e){super(t,e)}DOLLAR(){return this.getToken(er.DOLLAR,0)}an_id_or_type(){return this.getRuleContext(0,IE)}TRUE(){return this.getToken(er.TRUE,0)}FALSE(){return this.getToken(er.FALSE,0)}get ruleIndex(){return er.RULE_bind_parameter}accept(t){return t.visitBind_parameter?t.visitBind_parameter(this):t.visitChildren(this)}},Ni=class extends P{static{Ls(this,"Opt_bind_parameterContext")}constructor(t,e){super(t,e)}bind_parameter(){return this.getRuleContext(0,Ci)}QUESTION(){return this.getToken(er.QUESTION,0)}get ruleIndex(){return er.RULE_opt_bind_parameter}accept(t){return t.visitOpt_bind_parameter?t.visitOpt_bind_parameter(this):t.visitChildren(this)}},Ii=class extends P{static{Ls(this,"Bind_parameter_listContext")}constructor(t,e){super(t,e)}bind_parameter(t){return void 0===t?this.getRuleContexts(Ci):this.getRuleContext(t,Ci)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_bind_parameter_list}accept(t){return t.visitBind_parameter_list?t.visitBind_parameter_list(this):t.visitChildren(this)}},Oi=class extends P{static{Ls(this,"Named_bind_parameterContext")}constructor(t,e){super(t,e)}bind_parameter(t){return void 0===t?this.getRuleContexts(Ci):this.getRuleContext(t,Ci)}AS(){return this.getToken(er.AS,0)}get ruleIndex(){return er.RULE_named_bind_parameter}accept(t){return t.visitNamed_bind_parameter?t.visitNamed_bind_parameter(this):t.visitChildren(this)}},pi=class extends P{static{Ls(this,"Named_bind_parameter_listContext")}constructor(t,e){super(t,e)}named_bind_parameter(t){return void 0===t?this.getRuleContexts(Oi):this.getRuleContext(t,Oi)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_named_bind_parameter_list}accept(t){return t.visitNamed_bind_parameter_list?t.visitNamed_bind_parameter_list(this):t.visitChildren(this)}},gi=class extends P{static{Ls(this,"Signed_numberContext")}constructor(t,e){super(t,e)}integer(){return this.getRuleContext(0,$E)}real(){return this.getRuleContext(0,ZE)}PLUS(){return this.getToken(er.PLUS,0)}MINUS(){return this.getToken(er.MINUS,0)}get ruleIndex(){return er.RULE_signed_number}accept(t){return t.visitSigned_number?t.visitSigned_number(this):t.visitChildren(this)}},mi=class extends P{static{Ls(this,"Type_name_simpleContext")}constructor(t,e){super(t,e)}an_id_pure(){return this.getRuleContext(0,PE)}get ruleIndex(){return er.RULE_type_name_simple}accept(t){return t.visitType_name_simple?t.visitType_name_simple(this):t.visitChildren(this)}},xi=class extends P{static{Ls(this,"Integer_or_bindContext")}constructor(t,e){super(t,e)}integer(){return this.getRuleContext(0,$E)}bind_parameter(){return this.getRuleContext(0,Ci)}get ruleIndex(){return er.RULE_integer_or_bind}accept(t){return t.visitInteger_or_bind?t.visitInteger_or_bind(this):t.visitChildren(this)}},Ui=class extends P{static{Ls(this,"Type_name_tagContext")}constructor(t,e){super(t,e)}id(){return this.getRuleContext(0,uE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}bind_parameter(){return this.getRuleContext(0,Ci)}get ruleIndex(){return er.RULE_type_name_tag}accept(t){return t.visitType_name_tag?t.visitType_name_tag(this):t.visitChildren(this)}},fi=class extends P{static{Ls(this,"Struct_argContext")}constructor(t,e){super(t,e)}type_name_tag(){return this.getRuleContext(0,Ui)}COLON(){return this.getToken(er.COLON,0)}type_name_or_bind(){return this.getRuleContext(0,Ji)}get ruleIndex(){return er.RULE_struct_arg}accept(t){return t.visitStruct_arg?t.visitStruct_arg(this):t.visitChildren(this)}},Pi=class extends P{static{Ls(this,"Struct_arg_positionalContext")}constructor(t,e){super(t,e)}type_name_tag(){return this.getRuleContext(0,Ui)}type_name_or_bind(){return this.getRuleContext(0,Ji)}NULL(){return this.getToken(er.NULL,0)}NOT(){return this.getToken(er.NOT,0)}AS(){return this.getToken(er.AS,0)}get ruleIndex(){return er.RULE_struct_arg_positional}accept(t){return t.visitStruct_arg_positional?t.visitStruct_arg_positional(this):t.visitChildren(this)}},ki=class extends P{static{Ls(this,"Variant_argContext")}constructor(t,e){super(t,e)}type_name_or_bind(){return this.getRuleContext(0,Ji)}type_name_tag(){return this.getRuleContext(0,Ui)}COLON(){return this.getToken(er.COLON,0)}get ruleIndex(){return er.RULE_variant_arg}accept(t){return t.visitVariant_arg?t.visitVariant_arg(this):t.visitChildren(this)}},Mi=class extends P{static{Ls(this,"Callable_argContext")}constructor(t,e){super(t,e)}variant_arg(){return this.getRuleContext(0,ki)}LBRACE_CURLY(){return this.getToken(er.LBRACE_CURLY,0)}AUTOMAP(){return this.getToken(er.AUTOMAP,0)}RBRACE_CURLY(){return this.getToken(er.RBRACE_CURLY,0)}get ruleIndex(){return er.RULE_callable_arg}accept(t){return t.visitCallable_arg?t.visitCallable_arg(this):t.visitChildren(this)}},Di=class extends P{static{Ls(this,"Callable_arg_listContext")}constructor(t,e){super(t,e)}callable_arg(t){return void 0===t?this.getRuleContexts(Mi):this.getRuleContext(t,Mi)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_callable_arg_list}accept(t){return t.visitCallable_arg_list?t.visitCallable_arg_list(this):t.visitChildren(this)}},yi=class extends P{static{Ls(this,"Type_name_decimalContext")}constructor(t,e){super(t,e)}DECIMAL(){return this.getToken(er.DECIMAL,0)}LPAREN(){return this.getToken(er.LPAREN,0)}integer_or_bind(t){return void 0===t?this.getRuleContexts(xi):this.getRuleContext(t,xi)}COMMA(){return this.getToken(er.COMMA,0)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_type_name_decimal}accept(t){return t.visitType_name_decimal?t.visitType_name_decimal(this):t.visitChildren(this)}},vi=class extends P{static{Ls(this,"Type_name_optionalContext")}constructor(t,e){super(t,e)}OPTIONAL(){return this.getToken(er.OPTIONAL,0)}LESS(){return this.getToken(er.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,Ji)}GREATER(){return this.getToken(er.GREATER,0)}get ruleIndex(){return er.RULE_type_name_optional}accept(t){return t.visitType_name_optional?t.visitType_name_optional(this):t.visitChildren(this)}},bi=class extends P{static{Ls(this,"Type_name_tupleContext")}constructor(t,e){super(t,e)}TUPLE(){return this.getToken(er.TUPLE,0)}LESS(){return this.getToken(er.LESS,0)}GREATER(){return this.getToken(er.GREATER,0)}NOT_EQUALS2(){return this.getToken(er.NOT_EQUALS2,0)}type_name_or_bind(t){return void 0===t?this.getRuleContexts(Ji):this.getRuleContext(t,Ji)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_type_name_tuple}accept(t){return t.visitType_name_tuple?t.visitType_name_tuple(this):t.visitChildren(this)}},Hi=class extends P{static{Ls(this,"Type_name_structContext")}constructor(t,e){super(t,e)}STRUCT(){return this.getToken(er.STRUCT,0)}LESS(){return this.getToken(er.LESS,0)}GREATER(){return this.getToken(er.GREATER,0)}NOT_EQUALS2(){return this.getToken(er.NOT_EQUALS2,0)}struct_arg(t){return void 0===t?this.getRuleContexts(fi):this.getRuleContext(t,fi)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_type_name_struct}accept(t){return t.visitType_name_struct?t.visitType_name_struct(this):t.visitChildren(this)}},wi=class extends P{static{Ls(this,"Type_name_variantContext")}constructor(t,e){super(t,e)}VARIANT(){return this.getToken(er.VARIANT,0)}LESS(){return this.getToken(er.LESS,0)}variant_arg(t){return void 0===t?this.getRuleContexts(ki):this.getRuleContext(t,ki)}GREATER(){return this.getToken(er.GREATER,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_type_name_variant}accept(t){return t.visitType_name_variant?t.visitType_name_variant(this):t.visitChildren(this)}},Fi=class extends P{static{Ls(this,"Type_name_listContext")}constructor(t,e){super(t,e)}LIST(){return this.getToken(er.LIST,0)}LESS(){return this.getToken(er.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,Ji)}GREATER(){return this.getToken(er.GREATER,0)}get ruleIndex(){return er.RULE_type_name_list}accept(t){return t.visitType_name_list?t.visitType_name_list(this):t.visitChildren(this)}},Gi=class extends P{static{Ls(this,"Type_name_streamContext")}constructor(t,e){super(t,e)}STREAM(){return this.getToken(er.STREAM,0)}LESS(){return this.getToken(er.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,Ji)}GREATER(){return this.getToken(er.GREATER,0)}get ruleIndex(){return er.RULE_type_name_stream}accept(t){return t.visitType_name_stream?t.visitType_name_stream(this):t.visitChildren(this)}},Bi=class extends P{static{Ls(this,"Type_name_flowContext")}constructor(t,e){super(t,e)}FLOW(){return this.getToken(er.FLOW,0)}LESS(){return this.getToken(er.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,Ji)}GREATER(){return this.getToken(er.GREATER,0)}get ruleIndex(){return er.RULE_type_name_flow}accept(t){return t.visitType_name_flow?t.visitType_name_flow(this):t.visitChildren(this)}},Yi=class extends P{static{Ls(this,"Type_name_dictContext")}constructor(t,e){super(t,e)}DICT(){return this.getToken(er.DICT,0)}LESS(){return this.getToken(er.LESS,0)}type_name_or_bind(t){return void 0===t?this.getRuleContexts(Ji):this.getRuleContext(t,Ji)}COMMA(){return this.getToken(er.COMMA,0)}GREATER(){return this.getToken(er.GREATER,0)}get ruleIndex(){return er.RULE_type_name_dict}accept(t){return t.visitType_name_dict?t.visitType_name_dict(this):t.visitChildren(this)}},Vi=class extends P{static{Ls(this,"Type_name_setContext")}constructor(t,e){super(t,e)}SET(){return this.getToken(er.SET,0)}LESS(){return this.getToken(er.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,Ji)}GREATER(){return this.getToken(er.GREATER,0)}get ruleIndex(){return er.RULE_type_name_set}accept(t){return t.visitType_name_set?t.visitType_name_set(this):t.visitChildren(this)}},Wi=class extends P{static{Ls(this,"Type_name_enumContext")}constructor(t,e){super(t,e)}ENUM(){return this.getToken(er.ENUM,0)}LESS(){return this.getToken(er.LESS,0)}type_name_tag(t){return void 0===t?this.getRuleContexts(Ui):this.getRuleContext(t,Ui)}GREATER(){return this.getToken(er.GREATER,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_type_name_enum}accept(t){return t.visitType_name_enum?t.visitType_name_enum(this):t.visitChildren(this)}},Xi=class extends P{static{Ls(this,"Type_name_resourceContext")}constructor(t,e){super(t,e)}RESOURCE(){return this.getToken(er.RESOURCE,0)}LESS(){return this.getToken(er.LESS,0)}type_name_tag(){return this.getRuleContext(0,Ui)}GREATER(){return this.getToken(er.GREATER,0)}get ruleIndex(){return er.RULE_type_name_resource}accept(t){return t.visitType_name_resource?t.visitType_name_resource(this):t.visitChildren(this)}},Ki=class extends P{static{Ls(this,"Type_name_taggedContext")}constructor(t,e){super(t,e)}TAGGED(){return this.getToken(er.TAGGED,0)}LESS(){return this.getToken(er.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,Ji)}COMMA(){return this.getToken(er.COMMA,0)}type_name_tag(){return this.getRuleContext(0,Ui)}GREATER(){return this.getToken(er.GREATER,0)}get ruleIndex(){return er.RULE_type_name_tagged}accept(t){return t.visitType_name_tagged?t.visitType_name_tagged(this):t.visitChildren(this)}},Qi=class extends P{static{Ls(this,"Type_name_callableContext")}constructor(t,e){super(t,e)}CALLABLE(){return this.getToken(er.CALLABLE,0)}LESS(){return this.getToken(er.LESS,0)}LPAREN(){return this.getToken(er.LPAREN,0)}RPAREN(){return this.getToken(er.RPAREN,0)}ARROW(){return this.getToken(er.ARROW,0)}type_name_or_bind(){return this.getRuleContext(0,Ji)}GREATER(){return this.getToken(er.GREATER,0)}callable_arg_list(t){return void 0===t?this.getRuleContexts(Di):this.getRuleContext(t,Di)}COMMA(){return this.getToken(er.COMMA,0)}LBRACE_SQUARE(){return this.getToken(er.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(er.RBRACE_SQUARE,0)}get ruleIndex(){return er.RULE_type_name_callable}accept(t){return t.visitType_name_callable?t.visitType_name_callable(this):t.visitChildren(this)}},qi=class extends P{static{Ls(this,"Type_name_compositeContext")}constructor(t,e){super(t,e)}type_name_optional(){return this.getRuleContext(0,vi)}type_name_tuple(){return this.getRuleContext(0,bi)}type_name_struct(){return this.getRuleContext(0,Hi)}type_name_variant(){return this.getRuleContext(0,wi)}type_name_list(){return this.getRuleContext(0,Fi)}type_name_stream(){return this.getRuleContext(0,Gi)}type_name_flow(){return this.getRuleContext(0,Bi)}type_name_dict(){return this.getRuleContext(0,Yi)}type_name_set(){return this.getRuleContext(0,Vi)}type_name_enum(){return this.getRuleContext(0,Wi)}type_name_resource(){return this.getRuleContext(0,Xi)}type_name_tagged(){return this.getRuleContext(0,Ki)}type_name_callable(){return this.getRuleContext(0,Qi)}QUESTION(t){return void 0===t?this.getTokens(er.QUESTION):this.getToken(er.QUESTION,t)}get ruleIndex(){return er.RULE_type_name_composite}accept(t){return t.visitType_name_composite?t.visitType_name_composite(this):t.visitChildren(this)}},ji=class extends P{static{Ls(this,"Type_nameContext")}constructor(t,e){super(t,e)}type_name_composite(){return this.getRuleContext(0,qi)}type_name_decimal(){return this.getRuleContext(0,yi)}type_name_simple(){return this.getRuleContext(0,mi)}QUESTION(t){return void 0===t?this.getTokens(er.QUESTION):this.getToken(er.QUESTION,t)}get ruleIndex(){return er.RULE_type_name}accept(t){return t.visitType_name?t.visitType_name(this):t.visitChildren(this)}},Ji=class extends P{static{Ls(this,"Type_name_or_bindContext")}constructor(t,e){super(t,e)}type_name(){return this.getRuleContext(0,ji)}bind_parameter(){return this.getRuleContext(0,Ci)}get ruleIndex(){return er.RULE_type_name_or_bind}accept(t){return t.visitType_name_or_bind?t.visitType_name_or_bind(this):t.visitChildren(this)}},zi=class extends P{static{Ls(this,"Value_constructor_literalContext")}constructor(t,e){super(t,e)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_value_constructor_literal}accept(t){return t.visitValue_constructor_literal?t.visitValue_constructor_literal(this):t.visitChildren(this)}},Zi=class extends P{static{Ls(this,"Value_constructorContext")}constructor(t,e){super(t,e)}VARIANT(){return this.getToken(er.VARIANT,0)}LPAREN(){return this.getToken(er.LPAREN,0)}expr(t){return void 0===t?this.getRuleContexts(or):this.getRuleContext(t,or)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}RPAREN(){return this.getToken(er.RPAREN,0)}ENUM(){return this.getToken(er.ENUM,0)}CALLABLE(){return this.getToken(er.CALLABLE,0)}get ruleIndex(){return er.RULE_value_constructor}accept(t){return t.visitValue_constructor?t.visitValue_constructor(this):t.visitChildren(this)}},$i=class extends P{static{Ls(this,"Declare_stmtContext")}constructor(t,e){super(t,e)}DECLARE(){return this.getToken(er.DECLARE,0)}bind_parameter(){return this.getRuleContext(0,Ci)}AS(){return this.getToken(er.AS,0)}type_name(){return this.getRuleContext(0,ji)}EQUALS(){return this.getToken(er.EQUALS,0)}literal_value(){return this.getRuleContext(0,Li)}get ruleIndex(){return er.RULE_declare_stmt}accept(t){return t.visitDeclare_stmt?t.visitDeclare_stmt(this):t.visitChildren(this)}},ta=class extends P{static{Ls(this,"Module_pathContext")}constructor(t,e){super(t,e)}an_id(t){return void 0===t?this.getRuleContexts(NE):this.getRuleContext(t,NE)}DOT(t){return void 0===t?this.getTokens(er.DOT):this.getToken(er.DOT,t)}get ruleIndex(){return er.RULE_module_path}accept(t){return t.visitModule_path?t.visitModule_path(this):t.visitChildren(this)}},ea=class extends P{static{Ls(this,"Import_stmtContext")}constructor(t,e){super(t,e)}IMPORT(){return this.getToken(er.IMPORT,0)}module_path(){return this.getRuleContext(0,ta)}SYMBOLS(){return this.getToken(er.SYMBOLS,0)}named_bind_parameter_list(){return this.getRuleContext(0,pi)}get ruleIndex(){return er.RULE_import_stmt}accept(t){return t.visitImport_stmt?t.visitImport_stmt(this):t.visitChildren(this)}},sa=class extends P{static{Ls(this,"Export_stmtContext")}constructor(t,e){super(t,e)}EXPORT(){return this.getToken(er.EXPORT,0)}bind_parameter_list(){return this.getRuleContext(0,Ii)}get ruleIndex(){return er.RULE_export_stmt}accept(t){return t.visitExport_stmt?t.visitExport_stmt(this):t.visitChildren(this)}},ra=class extends P{static{Ls(this,"Call_actionContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(er.LPAREN,0)}RPAREN(){return this.getToken(er.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Ci)}EMPTY_ACTION(){return this.getToken(er.EMPTY_ACTION,0)}expr_list(){return this.getRuleContext(0,ii)}get ruleIndex(){return er.RULE_call_action}accept(t){return t.visitCall_action?t.visitCall_action(this):t.visitChildren(this)}},ia=class extends P{static{Ls(this,"Inline_actionContext")}constructor(t,e){super(t,e)}BEGIN(){return this.getToken(er.BEGIN,0)}define_action_or_subquery_body(){return this.getRuleContext(0,Kh)}END(){return this.getToken(er.END,0)}DO(){return this.getToken(er.DO,0)}get ruleIndex(){return er.RULE_inline_action}accept(t){return t.visitInline_action?t.visitInline_action(this):t.visitChildren(this)}},aa=class extends P{static{Ls(this,"Do_stmtContext")}constructor(t,e){super(t,e)}DO(){return this.getToken(er.DO,0)}call_action(){return this.getRuleContext(0,ra)}inline_action(){return this.getRuleContext(0,ia)}get ruleIndex(){return er.RULE_do_stmt}accept(t){return t.visitDo_stmt?t.visitDo_stmt(this):t.visitChildren(this)}},na=class extends P{static{Ls(this,"Pragma_stmtContext")}constructor(t,e){super(t,e)}PRAGMA(){return this.getToken(er.PRAGMA,0)}opt_id_prefix_or_type(){return this.getRuleContext(0,bE)}an_id(){return this.getRuleContext(0,NE)}EQUALS(){return this.getToken(er.EQUALS,0)}pragma_value(t){return void 0===t?this.getRuleContexts(ca):this.getRuleContext(t,ca)}LPAREN(){return this.getToken(er.LPAREN,0)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_pragma_stmt}accept(t){return t.visitPragma_stmt?t.visitPragma_stmt(this):t.visitChildren(this)}},ca=class extends P{static{Ls(this,"Pragma_valueContext")}constructor(t,e){super(t,e)}signed_number(){return this.getRuleContext(0,gi)}id(){return this.getRuleContext(0,uE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,zE)}bind_parameter(){return this.getRuleContext(0,Ci)}get ruleIndex(){return er.RULE_pragma_value}accept(t){return t.visitPragma_value?t.visitPragma_value(this):t.visitChildren(this)}},ha=class extends P{static{Ls(this,"Sort_specificationContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,or)}ASC(){return this.getToken(er.ASC,0)}DESC(){return this.getToken(er.DESC,0)}get ruleIndex(){return er.RULE_sort_specification}accept(t){return t.visitSort_specification?t.visitSort_specification(this):t.visitChildren(this)}},oa=class extends P{static{Ls(this,"Sort_specification_listContext")}constructor(t,e){super(t,e)}sort_specification(t){return void 0===t?this.getRuleContexts(ha):this.getRuleContext(t,ha)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_sort_specification_list}accept(t){return t.visitSort_specification_list?t.visitSort_specification_list(this):t.visitChildren(this)}},Ea=class extends P{static{Ls(this,"Select_stmtContext")}constructor(t,e){super(t,e)}select_kind_parenthesis(t){return void 0===t?this.getRuleContexts(ua):this.getRuleContext(t,ua)}select_op(t){return void 0===t?this.getRuleContexts(Ra):this.getRuleContext(t,Ra)}get ruleIndex(){return er.RULE_select_stmt}accept(t){return t.visitSelect_stmt?t.visitSelect_stmt(this):t.visitChildren(this)}},la=class extends P{static{Ls(this,"Select_unparenthesized_stmtContext")}constructor(t,e){super(t,e)}select_kind_partial(){return this.getRuleContext(0,_a)}select_op(t){return void 0===t?this.getRuleContexts(Ra):this.getRuleContext(t,Ra)}select_kind_parenthesis(t){return void 0===t?this.getRuleContexts(ua):this.getRuleContext(t,ua)}get ruleIndex(){return er.RULE_select_unparenthesized_stmt}accept(t){return t.visitSelect_unparenthesized_stmt?t.visitSelect_unparenthesized_stmt(this):t.visitChildren(this)}},ua=class extends P{static{Ls(this,"Select_kind_parenthesisContext")}constructor(t,e){super(t,e)}select_kind_partial(){return this.getRuleContext(0,_a)}LPAREN(){return this.getToken(er.LPAREN,0)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_select_kind_parenthesis}accept(t){return t.visitSelect_kind_parenthesis?t.visitSelect_kind_parenthesis(this):t.visitChildren(this)}},Ra=class extends P{static{Ls(this,"Select_opContext")}constructor(t,e){super(t,e)}UNION(){return this.getToken(er.UNION,0)}ALL(){return this.getToken(er.ALL,0)}INTERSECT(){return this.getToken(er.INTERSECT,0)}EXCEPT(){return this.getToken(er.EXCEPT,0)}get ruleIndex(){return er.RULE_select_op}accept(t){return t.visitSelect_op?t.visitSelect_op(this):t.visitChildren(this)}},_a=class extends P{static{Ls(this,"Select_kind_partialContext")}constructor(t,e){super(t,e)}select_kind(){return this.getRuleContext(0,Ta)}LIMIT(){return this.getToken(er.LIMIT,0)}expr(t){return void 0===t?this.getRuleContexts(or):this.getRuleContext(t,or)}OFFSET(){return this.getToken(er.OFFSET,0)}COMMA(){return this.getToken(er.COMMA,0)}get ruleIndex(){return er.RULE_select_kind_partial}accept(t){return t.visitSelect_kind_partial?t.visitSelect_kind_partial(this):t.visitChildren(this)}},Ta=class extends P{static{Ls(this,"Select_kindContext")}constructor(t,e){super(t,e)}process_core(){return this.getRuleContext(0,Aa)}reduce_core(){return this.getRuleContext(0,La)}select_core(){return this.getRuleContext(0,Na)}DISCARD(){return this.getToken(er.DISCARD,0)}INTO(){return this.getToken(er.INTO,0)}RESULT(){return this.getToken(er.RESULT,0)}pure_column_or_named(){return this.getRuleContext(0,ni)}get ruleIndex(){return er.RULE_select_kind}accept(t){return t.visitSelect_kind?t.visitSelect_kind(this):t.visitChildren(this)}},Aa=class extends P{static{Ls(this,"Process_coreContext")}constructor(t,e){super(t,e)}PROCESS(){return this.getToken(er.PROCESS,0)}named_single_source(t){return void 0===t?this.getRuleContexts(_n):this.getRuleContext(t,_n)}STREAM(){return this.getToken(er.STREAM,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}USING(){return this.getToken(er.USING,0)}using_call_expr(){return this.getRuleContext(0,Ai)}AS(){return this.getToken(er.AS,0)}an_id(){return this.getRuleContext(0,NE)}WITH(){return this.getToken(er.WITH,0)}external_call_settings(){return this.getRuleContext(0,da)}where_expr(){return this.getRuleContext(0,al)}HAVING(){return this.getToken(er.HAVING,0)}expr(){return this.getRuleContext(0,or)}ASSUME(){return this.getToken(er.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,za)}get ruleIndex(){return er.RULE_process_core}accept(t){return t.visitProcess_core?t.visitProcess_core(this):t.visitChildren(this)}},Sa=class extends P{static{Ls(this,"External_call_paramContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}EQUALS(){return this.getToken(er.EQUALS,0)}expr(){return this.getRuleContext(0,or)}get ruleIndex(){return er.RULE_external_call_param}accept(t){return t.visitExternal_call_param?t.visitExternal_call_param(this):t.visitChildren(this)}},da=class extends P{static{Ls(this,"External_call_settingsContext")}constructor(t,e){super(t,e)}external_call_param(t){return void 0===t?this.getRuleContexts(Sa):this.getRuleContext(t,Sa)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_external_call_settings}accept(t){return t.visitExternal_call_settings?t.visitExternal_call_settings(this):t.visitChildren(this)}},La=class extends P{static{Ls(this,"Reduce_coreContext")}constructor(t,e){super(t,e)}REDUCE(){return this.getToken(er.REDUCE,0)}named_single_source(t){return void 0===t?this.getRuleContexts(_n):this.getRuleContext(t,_n)}ON(){return this.getToken(er.ON,0)}column_list(){return this.getRuleContext(0,Ei)}USING(){return this.getToken(er.USING,0)}using_call_expr(){return this.getRuleContext(0,Ai)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}PRESORT(){return this.getToken(er.PRESORT,0)}sort_specification_list(){return this.getRuleContext(0,oa)}ALL(){return this.getToken(er.ALL,0)}AS(){return this.getToken(er.AS,0)}an_id(){return this.getRuleContext(0,NE)}where_expr(){return this.getRuleContext(0,al)}HAVING(){return this.getToken(er.HAVING,0)}expr(){return this.getRuleContext(0,or)}ASSUME(){return this.getToken(er.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,za)}get ruleIndex(){return er.RULE_reduce_core}accept(t){return t.visitReduce_core?t.visitReduce_core(this):t.visitChildren(this)}},Ca=class extends P{static{Ls(this,"Opt_set_quantifierContext")}constructor(t,e){super(t,e)}ALL(){return this.getToken(er.ALL,0)}DISTINCT(){return this.getToken(er.DISTINCT,0)}get ruleIndex(){return er.RULE_opt_set_quantifier}accept(t){return t.visitOpt_set_quantifier?t.visitOpt_set_quantifier(this):t.visitChildren(this)}},Na=class extends P{static{Ls(this,"Select_coreContext")}constructor(t,e){super(t,e)}SELECT(){return this.getToken(er.SELECT,0)}opt_set_quantifier(){return this.getRuleContext(0,Ca)}result_column(t){return void 0===t?this.getRuleContexts(on):this.getRuleContext(t,on)}from_stmt(t){return void 0===t?this.getRuleContexts(nl):this.getRuleContext(t,nl)}STREAM(){return this.getToken(er.STREAM,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}WITHOUT(){return this.getToken(er.WITHOUT,0)}without_column_list(){return this.getRuleContext(0,li)}where_expr(){return this.getRuleContext(0,al)}group_by_clause(){return this.getRuleContext(0,$a)}HAVING(){return this.getToken(er.HAVING,0)}expr(){return this.getRuleContext(0,or)}window_clause(){return this.getRuleContext(0,Yo)}ext_order_by_clause(){return this.getRuleContext(0,Za)}get ruleIndex(){return er.RULE_select_core}accept(t){return t.visitSelect_core?t.visitSelect_core(this):t.visitChildren(this)}},Ia=class extends P{static{Ls(this,"Row_pattern_recognition_clauseContext")}constructor(t,e){super(t,e)}MATCH_RECOGNIZE(){return this.getToken(er.MATCH_RECOGNIZE,0)}LPAREN(){return this.getToken(er.LPAREN,0)}row_pattern_common_syntax(){return this.getRuleContext(0,Ua)}RPAREN(){return this.getToken(er.RPAREN,0)}window_partition_clause(){return this.getRuleContext(0,jo)}order_by_clause(){return this.getRuleContext(0,za)}row_pattern_measures(){return this.getRuleContext(0,ga)}row_pattern_rows_per_match(){return this.getRuleContext(0,Oa)}get ruleIndex(){return er.RULE_row_pattern_recognition_clause}accept(t){return t.visitRow_pattern_recognition_clause?t.visitRow_pattern_recognition_clause(this):t.visitChildren(this)}},Oa=class extends P{static{Ls(this,"Row_pattern_rows_per_matchContext")}constructor(t,e){super(t,e)}ONE(){return this.getToken(er.ONE,0)}ROW(){return this.getToken(er.ROW,0)}PER(){return this.getToken(er.PER,0)}MATCH(){return this.getToken(er.MATCH,0)}ALL(){return this.getToken(er.ALL,0)}ROWS(){return this.getToken(er.ROWS,0)}row_pattern_empty_match_handling(){return this.getRuleContext(0,pa)}get ruleIndex(){return er.RULE_row_pattern_rows_per_match}accept(t){return t.visitRow_pattern_rows_per_match?t.visitRow_pattern_rows_per_match(this):t.visitChildren(this)}},pa=class extends P{static{Ls(this,"Row_pattern_empty_match_handlingContext")}constructor(t,e){super(t,e)}SHOW(){return this.getToken(er.SHOW,0)}EMPTY(){return this.getToken(er.EMPTY,0)}MATCHES(){return this.getToken(er.MATCHES,0)}OMIT(){return this.getToken(er.OMIT,0)}WITH(){return this.getToken(er.WITH,0)}UNMATCHED(){return this.getToken(er.UNMATCHED,0)}ROWS(){return this.getToken(er.ROWS,0)}get ruleIndex(){return er.RULE_row_pattern_empty_match_handling}accept(t){return t.visitRow_pattern_empty_match_handling?t.visitRow_pattern_empty_match_handling(this):t.visitChildren(this)}},ga=class extends P{static{Ls(this,"Row_pattern_measuresContext")}constructor(t,e){super(t,e)}MEASURES(){return this.getToken(er.MEASURES,0)}row_pattern_measure_list(){return this.getRuleContext(0,ma)}get ruleIndex(){return er.RULE_row_pattern_measures}accept(t){return t.visitRow_pattern_measures?t.visitRow_pattern_measures(this):t.visitChildren(this)}},ma=class extends P{static{Ls(this,"Row_pattern_measure_listContext")}constructor(t,e){super(t,e)}row_pattern_measure_definition(t){return void 0===t?this.getRuleContexts(xa):this.getRuleContext(t,xa)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_row_pattern_measure_list}accept(t){return t.visitRow_pattern_measure_list?t.visitRow_pattern_measure_list(this):t.visitChildren(this)}},xa=class extends P{static{Ls(this,"Row_pattern_measure_definitionContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,or)}AS(){return this.getToken(er.AS,0)}an_id(){return this.getRuleContext(0,NE)}get ruleIndex(){return er.RULE_row_pattern_measure_definition}accept(t){return t.visitRow_pattern_measure_definition?t.visitRow_pattern_measure_definition(this):t.visitChildren(this)}},Ua=class extends P{static{Ls(this,"Row_pattern_common_syntaxContext")}constructor(t,e){super(t,e)}PATTERN(){return this.getToken(er.PATTERN,0)}LPAREN(){return this.getToken(er.LPAREN,0)}row_pattern(){return this.getRuleContext(0,Ma)}RPAREN(){return this.getToken(er.RPAREN,0)}DEFINE(){return this.getToken(er.DEFINE,0)}row_pattern_definition_list(){return this.getRuleContext(0,Xa)}AFTER(){return this.getToken(er.AFTER,0)}MATCH(){return this.getToken(er.MATCH,0)}row_pattern_skip_to(){return this.getRuleContext(0,fa)}row_pattern_initial_or_seek(){return this.getRuleContext(0,ka)}row_pattern_subset_clause(){return this.getRuleContext(0,Fa)}get ruleIndex(){return er.RULE_row_pattern_common_syntax}accept(t){return t.visitRow_pattern_common_syntax?t.visitRow_pattern_common_syntax(this):t.visitChildren(this)}},fa=class extends P{static{Ls(this,"Row_pattern_skip_toContext")}constructor(t,e){super(t,e)}TSKIP(){return this.getToken(er.TSKIP,0)}TO(){return this.getToken(er.TO,0)}NEXT(){return this.getToken(er.NEXT,0)}ROW(){return this.getToken(er.ROW,0)}PAST(){return this.getToken(er.PAST,0)}LAST(){return this.getToken(er.LAST,0)}FIRST(){return this.getToken(er.FIRST,0)}row_pattern_skip_to_variable_name(){return this.getRuleContext(0,Pa)}get ruleIndex(){return er.RULE_row_pattern_skip_to}accept(t){return t.visitRow_pattern_skip_to?t.visitRow_pattern_skip_to(this):t.visitChildren(this)}},Pa=class extends P{static{Ls(this,"Row_pattern_skip_to_variable_nameContext")}constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,Ja)}get ruleIndex(){return er.RULE_row_pattern_skip_to_variable_name}accept(t){return t.visitRow_pattern_skip_to_variable_name?t.visitRow_pattern_skip_to_variable_name(this):t.visitChildren(this)}},ka=class extends P{static{Ls(this,"Row_pattern_initial_or_seekContext")}constructor(t,e){super(t,e)}INITIAL(){return this.getToken(er.INITIAL,0)}SEEK(){return this.getToken(er.SEEK,0)}get ruleIndex(){return er.RULE_row_pattern_initial_or_seek}accept(t){return t.visitRow_pattern_initial_or_seek?t.visitRow_pattern_initial_or_seek(this):t.visitChildren(this)}},Ma=class extends P{static{Ls(this,"Row_patternContext")}constructor(t,e){super(t,e)}row_pattern_term(t){return void 0===t?this.getRuleContexts(Da):this.getRuleContext(t,Da)}PIPE(t){return void 0===t?this.getTokens(er.PIPE):this.getToken(er.PIPE,t)}get ruleIndex(){return er.RULE_row_pattern}accept(t){return t.visitRow_pattern?t.visitRow_pattern(this):t.visitChildren(this)}},Da=class extends P{static{Ls(this,"Row_pattern_termContext")}constructor(t,e){super(t,e)}row_pattern_factor(t){return void 0===t?this.getRuleContexts(ya):this.getRuleContext(t,ya)}get ruleIndex(){return er.RULE_row_pattern_term}accept(t){return t.visitRow_pattern_term?t.visitRow_pattern_term(this):t.visitChildren(this)}},ya=class extends P{static{Ls(this,"Row_pattern_factorContext")}constructor(t,e){super(t,e)}row_pattern_primary(){return this.getRuleContext(0,ba)}row_pattern_quantifier(){return this.getRuleContext(0,va)}get ruleIndex(){return er.RULE_row_pattern_factor}accept(t){return t.visitRow_pattern_factor?t.visitRow_pattern_factor(this):t.visitChildren(this)}},va=class extends P{static{Ls(this,"Row_pattern_quantifierContext")}constructor(t,e){super(t,e)}ASTERISK(){return this.getToken(er.ASTERISK,0)}QUESTION(t){return void 0===t?this.getTokens(er.QUESTION):this.getToken(er.QUESTION,t)}PLUS(){return this.getToken(er.PLUS,0)}LBRACE_CURLY(){return this.getToken(er.LBRACE_CURLY,0)}COMMA(){return this.getToken(er.COMMA,0)}RBRACE_CURLY(){return this.getToken(er.RBRACE_CURLY,0)}integer(t){return void 0===t?this.getRuleContexts($E):this.getRuleContext(t,$E)}get ruleIndex(){return er.RULE_row_pattern_quantifier}accept(t){return t.visitRow_pattern_quantifier?t.visitRow_pattern_quantifier(this):t.visitChildren(this)}},ba=class extends P{static{Ls(this,"Row_pattern_primaryContext")}constructor(t,e){super(t,e)}row_pattern_primary_variable_name(){return this.getRuleContext(0,Ha)}DOLLAR(){return this.getToken(er.DOLLAR,0)}CARET(){return this.getToken(er.CARET,0)}LPAREN(){return this.getToken(er.LPAREN,0)}RPAREN(){return this.getToken(er.RPAREN,0)}row_pattern(){return this.getRuleContext(0,Ma)}LBRACE_CURLY(){return this.getToken(er.LBRACE_CURLY,0)}MINUS(t){return void 0===t?this.getTokens(er.MINUS):this.getToken(er.MINUS,t)}RBRACE_CURLY(){return this.getToken(er.RBRACE_CURLY,0)}row_pattern_permute(){return this.getRuleContext(0,wa)}get ruleIndex(){return er.RULE_row_pattern_primary}accept(t){return t.visitRow_pattern_primary?t.visitRow_pattern_primary(this):t.visitChildren(this)}},Ha=class extends P{static{Ls(this,"Row_pattern_primary_variable_nameContext")}constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,Ja)}get ruleIndex(){return er.RULE_row_pattern_primary_variable_name}accept(t){return t.visitRow_pattern_primary_variable_name?t.visitRow_pattern_primary_variable_name(this):t.visitChildren(this)}},wa=class extends P{static{Ls(this,"Row_pattern_permuteContext")}constructor(t,e){super(t,e)}PERMUTE(){return this.getToken(er.PERMUTE,0)}LPAREN(){return this.getToken(er.LPAREN,0)}row_pattern(t){return void 0===t?this.getRuleContexts(Ma):this.getRuleContext(t,Ma)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_row_pattern_permute}accept(t){return t.visitRow_pattern_permute?t.visitRow_pattern_permute(this):t.visitChildren(this)}},Fa=class extends P{static{Ls(this,"Row_pattern_subset_clauseContext")}constructor(t,e){super(t,e)}SUBSET(){return this.getToken(er.SUBSET,0)}row_pattern_subset_list(){return this.getRuleContext(0,Ga)}get ruleIndex(){return er.RULE_row_pattern_subset_clause}accept(t){return t.visitRow_pattern_subset_clause?t.visitRow_pattern_subset_clause(this):t.visitChildren(this)}},Ga=class extends P{static{Ls(this,"Row_pattern_subset_listContext")}constructor(t,e){super(t,e)}row_pattern_subset_item(t){return void 0===t?this.getRuleContexts(Ba):this.getRuleContext(t,Ba)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_row_pattern_subset_list}accept(t){return t.visitRow_pattern_subset_list?t.visitRow_pattern_subset_list(this):t.visitChildren(this)}},Ba=class extends P{static{Ls(this,"Row_pattern_subset_itemContext")}constructor(t,e){super(t,e)}row_pattern_subset_item_variable_name(){return this.getRuleContext(0,Ya)}EQUALS(){return this.getToken(er.EQUALS,0)}LPAREN(){return this.getToken(er.LPAREN,0)}row_pattern_subset_rhs(){return this.getRuleContext(0,Va)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_row_pattern_subset_item}accept(t){return t.visitRow_pattern_subset_item?t.visitRow_pattern_subset_item(this):t.visitChildren(this)}},Ya=class extends P{static{Ls(this,"Row_pattern_subset_item_variable_nameContext")}constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,Ja)}get ruleIndex(){return er.RULE_row_pattern_subset_item_variable_name}accept(t){return t.visitRow_pattern_subset_item_variable_name?t.visitRow_pattern_subset_item_variable_name(this):t.visitChildren(this)}},Va=class extends P{static{Ls(this,"Row_pattern_subset_rhsContext")}constructor(t,e){super(t,e)}row_pattern_subset_rhs_variable_name(t){return void 0===t?this.getRuleContexts(Wa):this.getRuleContext(t,Wa)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_row_pattern_subset_rhs}accept(t){return t.visitRow_pattern_subset_rhs?t.visitRow_pattern_subset_rhs(this):t.visitChildren(this)}},Wa=class extends P{static{Ls(this,"Row_pattern_subset_rhs_variable_nameContext")}constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,Ja)}get ruleIndex(){return er.RULE_row_pattern_subset_rhs_variable_name}accept(t){return t.visitRow_pattern_subset_rhs_variable_name?t.visitRow_pattern_subset_rhs_variable_name(this):t.visitChildren(this)}},Xa=class extends P{static{Ls(this,"Row_pattern_definition_listContext")}constructor(t,e){super(t,e)}row_pattern_definition(t){return void 0===t?this.getRuleContexts(Ka):this.getRuleContext(t,Ka)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_row_pattern_definition_list}accept(t){return t.visitRow_pattern_definition_list?t.visitRow_pattern_definition_list(this):t.visitChildren(this)}},Ka=class extends P{static{Ls(this,"Row_pattern_definitionContext")}constructor(t,e){super(t,e)}row_pattern_definition_variable_name(){return this.getRuleContext(0,Qa)}AS(){return this.getToken(er.AS,0)}row_pattern_definition_search_condition(){return this.getRuleContext(0,qa)}get ruleIndex(){return er.RULE_row_pattern_definition}accept(t){return t.visitRow_pattern_definition?t.visitRow_pattern_definition(this):t.visitChildren(this)}},Qa=class extends P{static{Ls(this,"Row_pattern_definition_variable_nameContext")}constructor(t,e){super(t,e)}row_pattern_variable_name(){return this.getRuleContext(0,Ja)}get ruleIndex(){return er.RULE_row_pattern_definition_variable_name}accept(t){return t.visitRow_pattern_definition_variable_name?t.visitRow_pattern_definition_variable_name(this):t.visitChildren(this)}},qa=class extends P{static{Ls(this,"Row_pattern_definition_search_conditionContext")}constructor(t,e){super(t,e)}search_condition(){return this.getRuleContext(0,ja)}get ruleIndex(){return er.RULE_row_pattern_definition_search_condition}accept(t){return t.visitRow_pattern_definition_search_condition?t.visitRow_pattern_definition_search_condition(this):t.visitChildren(this)}},ja=class extends P{static{Ls(this,"Search_conditionContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,or)}get ruleIndex(){return er.RULE_search_condition}accept(t){return t.visitSearch_condition?t.visitSearch_condition(this):t.visitChildren(this)}},Ja=class extends P{static{Ls(this,"Row_pattern_variable_nameContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,lE)}get ruleIndex(){return er.RULE_row_pattern_variable_name}accept(t){return t.visitRow_pattern_variable_name?t.visitRow_pattern_variable_name(this):t.visitChildren(this)}},za=class extends P{static{Ls(this,"Order_by_clauseContext")}constructor(t,e){super(t,e)}ORDER(){return this.getToken(er.ORDER,0)}BY(){return this.getToken(er.BY,0)}sort_specification_list(){return this.getRuleContext(0,oa)}get ruleIndex(){return er.RULE_order_by_clause}accept(t){return t.visitOrder_by_clause?t.visitOrder_by_clause(this):t.visitChildren(this)}},Za=class extends P{static{Ls(this,"Ext_order_by_clauseContext")}constructor(t,e){super(t,e)}order_by_clause(){return this.getRuleContext(0,za)}ASSUME(){return this.getToken(er.ASSUME,0)}get ruleIndex(){return er.RULE_ext_order_by_clause}accept(t){return t.visitExt_order_by_clause?t.visitExt_order_by_clause(this):t.visitChildren(this)}},$a=class extends P{static{Ls(this,"Group_by_clauseContext")}constructor(t,e){super(t,e)}GROUP(){return this.getToken(er.GROUP,0)}BY(){return this.getToken(er.BY,0)}opt_set_quantifier(){return this.getRuleContext(0,Ca)}grouping_element_list(){return this.getRuleContext(0,tn)}COMPACT(){return this.getToken(er.COMPACT,0)}WITH(){return this.getToken(er.WITH,0)}an_id(){return this.getRuleContext(0,NE)}get ruleIndex(){return er.RULE_group_by_clause}accept(t){return t.visitGroup_by_clause?t.visitGroup_by_clause(this):t.visitChildren(this)}},tn=class extends P{static{Ls(this,"Grouping_element_listContext")}constructor(t,e){super(t,e)}grouping_element(t){return void 0===t?this.getRuleContexts(en):this.getRuleContext(t,en)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_grouping_element_list}accept(t){return t.visitGrouping_element_list?t.visitGrouping_element_list(this):t.visitChildren(this)}},en=class extends P{static{Ls(this,"Grouping_elementContext")}constructor(t,e){super(t,e)}ordinary_grouping_set(){return this.getRuleContext(0,sn)}rollup_list(){return this.getRuleContext(0,an)}cube_list(){return this.getRuleContext(0,nn)}grouping_sets_specification(){return this.getRuleContext(0,cn)}hopping_window_specification(){return this.getRuleContext(0,hn)}get ruleIndex(){return er.RULE_grouping_element}accept(t){return t.visitGrouping_element?t.visitGrouping_element(this):t.visitChildren(this)}},sn=class extends P{static{Ls(this,"Ordinary_grouping_setContext")}constructor(t,e){super(t,e)}named_expr(){return this.getRuleContext(0,ui)}get ruleIndex(){return er.RULE_ordinary_grouping_set}accept(t){return t.visitOrdinary_grouping_set?t.visitOrdinary_grouping_set(this):t.visitChildren(this)}},rn=class extends P{static{Ls(this,"Ordinary_grouping_set_listContext")}constructor(t,e){super(t,e)}ordinary_grouping_set(t){return void 0===t?this.getRuleContexts(sn):this.getRuleContext(t,sn)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_ordinary_grouping_set_list}accept(t){return t.visitOrdinary_grouping_set_list?t.visitOrdinary_grouping_set_list(this):t.visitChildren(this)}},an=class extends P{static{Ls(this,"Rollup_listContext")}constructor(t,e){super(t,e)}ROLLUP(){return this.getToken(er.ROLLUP,0)}LPAREN(){return this.getToken(er.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,rn)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_rollup_list}accept(t){return t.visitRollup_list?t.visitRollup_list(this):t.visitChildren(this)}},nn=class extends P{static{Ls(this,"Cube_listContext")}constructor(t,e){super(t,e)}CUBE(){return this.getToken(er.CUBE,0)}LPAREN(){return this.getToken(er.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,rn)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_cube_list}accept(t){return t.visitCube_list?t.visitCube_list(this):t.visitChildren(this)}},cn=class extends P{static{Ls(this,"Grouping_sets_specificationContext")}constructor(t,e){super(t,e)}GROUPING(){return this.getToken(er.GROUPING,0)}SETS(){return this.getToken(er.SETS,0)}LPAREN(){return this.getToken(er.LPAREN,0)}grouping_element_list(){return this.getRuleContext(0,tn)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_grouping_sets_specification}accept(t){return t.visitGrouping_sets_specification?t.visitGrouping_sets_specification(this):t.visitChildren(this)}},hn=class extends P{static{Ls(this,"Hopping_window_specificationContext")}constructor(t,e){super(t,e)}HOP(){return this.getToken(er.HOP,0)}LPAREN(){return this.getToken(er.LPAREN,0)}expr(t){return void 0===t?this.getRuleContexts(or):this.getRuleContext(t,or)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_hopping_window_specification}accept(t){return t.visitHopping_window_specification?t.visitHopping_window_specification(this):t.visitChildren(this)}},on=class extends P{static{Ls(this,"Result_columnContext")}constructor(t,e){super(t,e)}opt_id_prefix(){return this.getRuleContext(0,DE)}ASTERISK(){return this.getToken(er.ASTERISK,0)}expr(){return this.getRuleContext(0,or)}AS(){return this.getToken(er.AS,0)}an_id_or_type(){return this.getRuleContext(0,IE)}an_id_as_compat(){return this.getRuleContext(0,kE)}get ruleIndex(){return er.RULE_result_column}accept(t){return t.visitResult_column?t.visitResult_column(this):t.visitChildren(this)}},En=class extends P{static{Ls(this,"Join_sourceContext")}constructor(t,e){super(t,e)}flatten_source(t){return void 0===t?this.getRuleContexts(Rn):this.getRuleContext(t,Rn)}ANY(t){return void 0===t?this.getTokens(er.ANY):this.getToken(er.ANY,t)}join_op(t){return void 0===t?this.getRuleContexts(Cn):this.getRuleContext(t,Cn)}join_constraint(t){return void 0===t?this.getRuleContexts(Nn):this.getRuleContext(t,Nn)}get ruleIndex(){return er.RULE_join_source}accept(t){return t.visitJoin_source?t.visitJoin_source(this):t.visitChildren(this)}},ln=class extends P{static{Ls(this,"Named_columnContext")}constructor(t,e){super(t,e)}column_name(){return this.getRuleContext(0,hi)}AS(){return this.getToken(er.AS,0)}an_id(){return this.getRuleContext(0,NE)}get ruleIndex(){return er.RULE_named_column}accept(t){return t.visitNamed_column?t.visitNamed_column(this):t.visitChildren(this)}},un=class extends P{static{Ls(this,"Flatten_by_argContext")}constructor(t,e){super(t,e)}named_column(){return this.getRuleContext(0,ln)}LPAREN(){return this.getToken(er.LPAREN,0)}named_expr_list(){return this.getRuleContext(0,Ri)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(){return this.getToken(er.COMMA,0)}get ruleIndex(){return er.RULE_flatten_by_arg}accept(t){return t.visitFlatten_by_arg?t.visitFlatten_by_arg(this):t.visitChildren(this)}},Rn=class extends P{static{Ls(this,"Flatten_sourceContext")}constructor(t,e){super(t,e)}named_single_source(){return this.getRuleContext(0,_n)}FLATTEN(){return this.getToken(er.FLATTEN,0)}BY(){return this.getToken(er.BY,0)}flatten_by_arg(){return this.getRuleContext(0,un)}COLUMNS(){return this.getToken(er.COLUMNS,0)}OPTIONAL(){return this.getToken(er.OPTIONAL,0)}LIST(){return this.getToken(er.LIST,0)}DICT(){return this.getToken(er.DICT,0)}get ruleIndex(){return er.RULE_flatten_source}accept(t){return t.visitFlatten_source?t.visitFlatten_source(this):t.visitChildren(this)}},_n=class extends P{static{Ls(this,"Named_single_sourceContext")}constructor(t,e){super(t,e)}single_source(){return this.getRuleContext(0,Tn)}row_pattern_recognition_clause(){return this.getRuleContext(0,Ia)}sample_clause(){return this.getRuleContext(0,An)}tablesample_clause(){return this.getRuleContext(0,Sn)}AS(){return this.getToken(er.AS,0)}an_id(){return this.getRuleContext(0,NE)}an_id_as_compat(){return this.getRuleContext(0,kE)}pure_column_list(){return this.getRuleContext(0,ai)}get ruleIndex(){return er.RULE_named_single_source}accept(t){return t.visitNamed_single_source?t.visitNamed_single_source(this):t.visitChildren(this)}},Tn=class extends P{static{Ls(this,"Single_sourceContext")}constructor(t,e){super(t,e)}table_ref(){return this.getRuleContext(0,jh)}LPAREN(){return this.getToken(er.LPAREN,0)}select_stmt(){return this.getRuleContext(0,Ea)}RPAREN(){return this.getToken(er.RPAREN,0)}values_stmt(){return this.getRuleContext(0,mn)}get ruleIndex(){return er.RULE_single_source}accept(t){return t.visitSingle_source?t.visitSingle_source(this):t.visitChildren(this)}},An=class extends P{static{Ls(this,"Sample_clauseContext")}constructor(t,e){super(t,e)}SAMPLE(){return this.getToken(er.SAMPLE,0)}expr(){return this.getRuleContext(0,or)}get ruleIndex(){return er.RULE_sample_clause}accept(t){return t.visitSample_clause?t.visitSample_clause(this):t.visitChildren(this)}},Sn=class extends P{static{Ls(this,"Tablesample_clauseContext")}constructor(t,e){super(t,e)}TABLESAMPLE(){return this.getToken(er.TABLESAMPLE,0)}sampling_mode(){return this.getRuleContext(0,dn)}LPAREN(){return this.getToken(er.LPAREN,0)}expr(){return this.getRuleContext(0,or)}RPAREN(){return this.getToken(er.RPAREN,0)}repeatable_clause(){return this.getRuleContext(0,Ln)}get ruleIndex(){return er.RULE_tablesample_clause}accept(t){return t.visitTablesample_clause?t.visitTablesample_clause(this):t.visitChildren(this)}},dn=class extends P{static{Ls(this,"Sampling_modeContext")}constructor(t,e){super(t,e)}BERNOULLI(){return this.getToken(er.BERNOULLI,0)}SYSTEM(){return this.getToken(er.SYSTEM,0)}get ruleIndex(){return er.RULE_sampling_mode}accept(t){return t.visitSampling_mode?t.visitSampling_mode(this):t.visitChildren(this)}},Ln=class extends P{static{Ls(this,"Repeatable_clauseContext")}constructor(t,e){super(t,e)}REPEATABLE(){return this.getToken(er.REPEATABLE,0)}LPAREN(){return this.getToken(er.LPAREN,0)}expr(){return this.getRuleContext(0,or)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_repeatable_clause}accept(t){return t.visitRepeatable_clause?t.visitRepeatable_clause(this):t.visitChildren(this)}},Cn=class extends P{static{Ls(this,"Join_opContext")}constructor(t,e){super(t,e)}COMMA(){return this.getToken(er.COMMA,0)}JOIN(){return this.getToken(er.JOIN,0)}INNER(){return this.getToken(er.INNER,0)}CROSS(){return this.getToken(er.CROSS,0)}NATURAL(){return this.getToken(er.NATURAL,0)}LEFT(){return this.getToken(er.LEFT,0)}RIGHT(){return this.getToken(er.RIGHT,0)}EXCLUSION(){return this.getToken(er.EXCLUSION,0)}FULL(){return this.getToken(er.FULL,0)}OUTER(){return this.getToken(er.OUTER,0)}ONLY(){return this.getToken(er.ONLY,0)}SEMI(){return this.getToken(er.SEMI,0)}get ruleIndex(){return er.RULE_join_op}accept(t){return t.visitJoin_op?t.visitJoin_op(this):t.visitChildren(this)}},Nn=class extends P{static{Ls(this,"Join_constraintContext")}constructor(t,e){super(t,e)}ON(){return this.getToken(er.ON,0)}expr(){return this.getRuleContext(0,or)}USING(){return this.getToken(er.USING,0)}pure_column_or_named_list(){return this.getRuleContext(0,ci)}get ruleIndex(){return er.RULE_join_constraint}accept(t){return t.visitJoin_constraint?t.visitJoin_constraint(this):t.visitChildren(this)}},In=class extends P{static{Ls(this,"Returning_columns_listContext")}constructor(t,e){super(t,e)}RETURNING(){return this.getToken(er.RETURNING,0)}ASTERISK(){return this.getToken(er.ASTERISK,0)}an_id(t){return void 0===t?this.getRuleContexts(NE):this.getRuleContext(t,NE)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_returning_columns_list}accept(t){return t.visitReturning_columns_list?t.visitReturning_columns_list(this):t.visitChildren(this)}},On=class extends P{static{Ls(this,"Into_table_stmtContext")}constructor(t,e){super(t,e)}INTO(){return this.getToken(er.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,ro)}into_values_source(){return this.getRuleContext(0,gn)}INSERT(){return this.getToken(er.INSERT,0)}OR(){return this.getToken(er.OR,0)}ABORT(){return this.getToken(er.ABORT,0)}REVERT(){return this.getToken(er.REVERT,0)}IGNORE(){return this.getToken(er.IGNORE,0)}UPSERT(){return this.getToken(er.UPSERT,0)}REPLACE(){return this.getToken(er.REPLACE,0)}returning_columns_list(){return this.getRuleContext(0,In)}get ruleIndex(){return er.RULE_into_table_stmt}accept(t){return t.visitInto_table_stmt?t.visitInto_table_stmt(this):t.visitChildren(this)}},pn=class extends P{static{Ls(this,"Into_table_stmt_yqContext")}constructor(t,e){super(t,e)}INTO(){return this.getToken(er.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,ro)}into_values_source(){return this.getRuleContext(0,gn)}INSERT(){return this.getToken(er.INSERT,0)}OR(){return this.getToken(er.OR,0)}ABORT(){return this.getToken(er.ABORT,0)}REVERT(){return this.getToken(er.REVERT,0)}IGNORE(){return this.getToken(er.IGNORE,0)}REPLACE(){return this.getToken(er.REPLACE,0)}get ruleIndex(){return er.RULE_into_table_stmt_yq}accept(t){return t.visitInto_table_stmt_yq?t.visitInto_table_stmt_yq(this):t.visitChildren(this)}},gn=class extends P{static{Ls(this,"Into_values_sourceContext")}constructor(t,e){super(t,e)}values_source(){return this.getRuleContext(0,xn)}pure_column_list(){return this.getRuleContext(0,ai)}DEFAULT(){return this.getToken(er.DEFAULT,0)}VALUES(){return this.getToken(er.VALUES,0)}get ruleIndex(){return er.RULE_into_values_source}accept(t){return t.visitInto_values_source?t.visitInto_values_source(this):t.visitChildren(this)}},mn=class extends P{static{Ls(this,"Values_stmtContext")}constructor(t,e){super(t,e)}VALUES(){return this.getToken(er.VALUES,0)}values_source_row_list(){return this.getRuleContext(0,Un)}get ruleIndex(){return er.RULE_values_stmt}accept(t){return t.visitValues_stmt?t.visitValues_stmt(this):t.visitChildren(this)}},xn=class extends P{static{Ls(this,"Values_sourceContext")}constructor(t,e){super(t,e)}values_stmt(){return this.getRuleContext(0,mn)}select_stmt(){return this.getRuleContext(0,Ea)}get ruleIndex(){return er.RULE_values_source}accept(t){return t.visitValues_source?t.visitValues_source(this):t.visitChildren(this)}},Un=class extends P{static{Ls(this,"Values_source_row_listContext")}constructor(t,e){super(t,e)}values_source_row(t){return void 0===t?this.getRuleContexts(fn):this.getRuleContext(t,fn)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_values_source_row_list}accept(t){return t.visitValues_source_row_list?t.visitValues_source_row_list(this):t.visitChildren(this)}},fn=class extends P{static{Ls(this,"Values_source_rowContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(er.LPAREN,0)}expr_list(){return this.getRuleContext(0,ii)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_values_source_row}accept(t){return t.visitValues_source_row?t.visitValues_source_row(this):t.visitChildren(this)}},Pn=class extends P{static{Ls(this,"Simple_values_sourceContext")}constructor(t,e){super(t,e)}expr_list(){return this.getRuleContext(0,ii)}select_stmt(){return this.getRuleContext(0,Ea)}get ruleIndex(){return er.RULE_simple_values_source}accept(t){return t.visitSimple_values_source?t.visitSimple_values_source(this):t.visitChildren(this)}},kn=class extends P{static{Ls(this,"Create_external_data_source_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(er.CREATE,0)}EXTERNAL(){return this.getToken(er.EXTERNAL,0)}DATA(){return this.getToken(er.DATA,0)}SOURCE(){return this.getToken(er.SOURCE,0)}object_ref(){return this.getRuleContext(0,to)}with_table_settings(){return this.getRuleContext(0,Tc)}OR(){return this.getToken(er.OR,0)}REPLACE(){return this.getToken(er.REPLACE,0)}IF(){return this.getToken(er.IF,0)}NOT(){return this.getToken(er.NOT,0)}EXISTS(){return this.getToken(er.EXISTS,0)}get ruleIndex(){return er.RULE_create_external_data_source_stmt}accept(t){return t.visitCreate_external_data_source_stmt?t.visitCreate_external_data_source_stmt(this):t.visitChildren(this)}},Mn=class extends P{static{Ls(this,"Alter_external_data_source_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}EXTERNAL(){return this.getToken(er.EXTERNAL,0)}DATA(){return this.getToken(er.DATA,0)}SOURCE(){return this.getToken(er.SOURCE,0)}object_ref(){return this.getRuleContext(0,to)}alter_external_data_source_action(t){return void 0===t?this.getRuleContexts(Dn):this.getRuleContext(t,Dn)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_alter_external_data_source_stmt}accept(t){return t.visitAlter_external_data_source_stmt?t.visitAlter_external_data_source_stmt(this):t.visitChildren(this)}},Dn=class extends P{static{Ls(this,"Alter_external_data_source_actionContext")}constructor(t,e){super(t,e)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,kc)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Mc)}alter_table_reset_table_setting(){return this.getRuleContext(0,Dc)}get ruleIndex(){return er.RULE_alter_external_data_source_action}accept(t){return t.visitAlter_external_data_source_action?t.visitAlter_external_data_source_action(this):t.visitChildren(this)}},yn=class extends P{static{Ls(this,"Drop_external_data_source_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(er.DROP,0)}EXTERNAL(){return this.getToken(er.EXTERNAL,0)}DATA(){return this.getToken(er.DATA,0)}SOURCE(){return this.getToken(er.SOURCE,0)}object_ref(){return this.getRuleContext(0,to)}IF(){return this.getToken(er.IF,0)}EXISTS(){return this.getToken(er.EXISTS,0)}get ruleIndex(){return er.RULE_drop_external_data_source_stmt}accept(t){return t.visitDrop_external_data_source_stmt?t.visitDrop_external_data_source_stmt(this):t.visitChildren(this)}},vn=class extends P{static{Ls(this,"Create_view_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(er.CREATE,0)}VIEW(){return this.getToken(er.VIEW,0)}object_ref(){return this.getRuleContext(0,to)}AS(){return this.getToken(er.AS,0)}select_stmt(){return this.getRuleContext(0,Ea)}IF(){return this.getToken(er.IF,0)}NOT(){return this.getToken(er.NOT,0)}EXISTS(){return this.getToken(er.EXISTS,0)}create_object_features(){return this.getRuleContext(0,Fn)}get ruleIndex(){return er.RULE_create_view_stmt}accept(t){return t.visitCreate_view_stmt?t.visitCreate_view_stmt(this):t.visitChildren(this)}},bn=class extends P{static{Ls(this,"Drop_view_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(er.DROP,0)}VIEW(){return this.getToken(er.VIEW,0)}object_ref(){return this.getRuleContext(0,to)}IF(){return this.getToken(er.IF,0)}EXISTS(){return this.getToken(er.EXISTS,0)}get ruleIndex(){return er.RULE_drop_view_stmt}accept(t){return t.visitDrop_view_stmt?t.visitDrop_view_stmt(this):t.visitChildren(this)}},Hn=class extends P{static{Ls(this,"Upsert_object_stmtContext")}constructor(t,e){super(t,e)}UPSERT(){return this.getToken(er.UPSERT,0)}OBJECT(){return this.getToken(er.OBJECT,0)}object_ref(){return this.getRuleContext(0,to)}LPAREN(){return this.getToken(er.LPAREN,0)}TYPE(){return this.getToken(er.TYPE,0)}object_type_ref(){return this.getRuleContext(0,jn)}RPAREN(){return this.getToken(er.RPAREN,0)}create_object_features(){return this.getRuleContext(0,Fn)}get ruleIndex(){return er.RULE_upsert_object_stmt}accept(t){return t.visitUpsert_object_stmt?t.visitUpsert_object_stmt(this):t.visitChildren(this)}},wn=class extends P{static{Ls(this,"Create_object_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(er.CREATE,0)}OBJECT(){return this.getToken(er.OBJECT,0)}object_ref(){return this.getRuleContext(0,to)}LPAREN(){return this.getToken(er.LPAREN,0)}TYPE(){return this.getToken(er.TYPE,0)}object_type_ref(){return this.getRuleContext(0,jn)}RPAREN(){return this.getToken(er.RPAREN,0)}IF(){return this.getToken(er.IF,0)}NOT(){return this.getToken(er.NOT,0)}EXISTS(){return this.getToken(er.EXISTS,0)}create_object_features(){return this.getRuleContext(0,Fn)}get ruleIndex(){return er.RULE_create_object_stmt}accept(t){return t.visitCreate_object_stmt?t.visitCreate_object_stmt(this):t.visitChildren(this)}},Fn=class extends P{static{Ls(this,"Create_object_featuresContext")}constructor(t,e){super(t,e)}WITH(){return this.getToken(er.WITH,0)}object_features(){return this.getRuleContext(0,qn)}get ruleIndex(){return er.RULE_create_object_features}accept(t){return t.visitCreate_object_features?t.visitCreate_object_features(this):t.visitChildren(this)}},Gn=class extends P{static{Ls(this,"Alter_object_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}OBJECT(){return this.getToken(er.OBJECT,0)}object_ref(){return this.getRuleContext(0,to)}LPAREN(){return this.getToken(er.LPAREN,0)}TYPE(){return this.getToken(er.TYPE,0)}object_type_ref(){return this.getRuleContext(0,jn)}RPAREN(){return this.getToken(er.RPAREN,0)}alter_object_features(){return this.getRuleContext(0,Bn)}get ruleIndex(){return er.RULE_alter_object_stmt}accept(t){return t.visitAlter_object_stmt?t.visitAlter_object_stmt(this):t.visitChildren(this)}},Bn=class extends P{static{Ls(this,"Alter_object_featuresContext")}constructor(t,e){super(t,e)}SET(){return this.getToken(er.SET,0)}object_features(){return this.getRuleContext(0,qn)}get ruleIndex(){return er.RULE_alter_object_features}accept(t){return t.visitAlter_object_features?t.visitAlter_object_features(this):t.visitChildren(this)}},Yn=class extends P{static{Ls(this,"Drop_object_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(er.DROP,0)}OBJECT(){return this.getToken(er.OBJECT,0)}object_ref(){return this.getRuleContext(0,to)}LPAREN(){return this.getToken(er.LPAREN,0)}TYPE(){return this.getToken(er.TYPE,0)}object_type_ref(){return this.getRuleContext(0,jn)}RPAREN(){return this.getToken(er.RPAREN,0)}IF(){return this.getToken(er.IF,0)}EXISTS(){return this.getToken(er.EXISTS,0)}drop_object_features(){return this.getRuleContext(0,Vn)}get ruleIndex(){return er.RULE_drop_object_stmt}accept(t){return t.visitDrop_object_stmt?t.visitDrop_object_stmt(this):t.visitChildren(this)}},Vn=class extends P{static{Ls(this,"Drop_object_featuresContext")}constructor(t,e){super(t,e)}WITH(){return this.getToken(er.WITH,0)}object_features(){return this.getRuleContext(0,qn)}get ruleIndex(){return er.RULE_drop_object_features}accept(t){return t.visitDrop_object_features?t.visitDrop_object_features(this):t.visitChildren(this)}},Wn=class extends P{static{Ls(this,"Object_feature_valueContext")}constructor(t,e){super(t,e)}id_or_type(){return this.getRuleContext(0,vE)}bind_parameter(){return this.getRuleContext(0,Ci)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,zE)}get ruleIndex(){return er.RULE_object_feature_value}accept(t){return t.visitObject_feature_value?t.visitObject_feature_value(this):t.visitChildren(this)}},Xn=class extends P{static{Ls(this,"Object_feature_kvContext")}constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,IE)}EQUALS(){return this.getToken(er.EQUALS,0)}object_feature_value(){return this.getRuleContext(0,Wn)}get ruleIndex(){return er.RULE_object_feature_kv}accept(t){return t.visitObject_feature_kv?t.visitObject_feature_kv(this):t.visitChildren(this)}},Kn=class extends P{static{Ls(this,"Object_feature_flagContext")}constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,IE)}get ruleIndex(){return er.RULE_object_feature_flag}accept(t){return t.visitObject_feature_flag?t.visitObject_feature_flag(this):t.visitChildren(this)}},Qn=class extends P{static{Ls(this,"Object_featureContext")}constructor(t,e){super(t,e)}object_feature_kv(){return this.getRuleContext(0,Xn)}object_feature_flag(){return this.getRuleContext(0,Kn)}get ruleIndex(){return er.RULE_object_feature}accept(t){return t.visitObject_feature?t.visitObject_feature(this):t.visitChildren(this)}},qn=class extends P{static{Ls(this,"Object_featuresContext")}constructor(t,e){super(t,e)}object_feature(t){return void 0===t?this.getRuleContexts(Qn):this.getRuleContext(t,Qn)}LPAREN(){return this.getToken(er.LPAREN,0)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_object_features}accept(t){return t.visitObject_features?t.visitObject_features(this):t.visitChildren(this)}},jn=class extends P{static{Ls(this,"Object_type_refContext")}constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,IE)}get ruleIndex(){return er.RULE_object_type_ref}accept(t){return t.visitObject_type_ref?t.visitObject_type_ref(this):t.visitChildren(this)}},Jn=class extends P{static{Ls(this,"Create_table_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(er.CREATE,0)}simple_table_ref(){return this.getRuleContext(0,so)}LPAREN(){return this.getToken(er.LPAREN,0)}create_table_entry(t){return void 0===t?this.getRuleContexts(zn):this.getRuleContext(t,zn)}RPAREN(){return this.getToken(er.RPAREN,0)}TABLE(){return this.getToken(er.TABLE,0)}TABLESTORE(){return this.getToken(er.TABLESTORE,0)}EXTERNAL(){return this.getToken(er.EXTERNAL,0)}TEMP(){return this.getToken(er.TEMP,0)}TEMPORARY(){return this.getToken(er.TEMPORARY,0)}OR(){return this.getToken(er.OR,0)}REPLACE(){return this.getToken(er.REPLACE,0)}IF(){return this.getToken(er.IF,0)}NOT(){return this.getToken(er.NOT,0)}EXISTS(){return this.getToken(er.EXISTS,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}table_inherits(){return this.getRuleContext(0,Rc)}table_partition_by(){return this.getRuleContext(0,_c)}with_table_settings(){return this.getRuleContext(0,Tc)}table_tablestore(){return this.getRuleContext(0,Ac)}table_as_source(){return this.getRuleContext(0,dc)}get ruleIndex(){return er.RULE_create_table_stmt}accept(t){return t.visitCreate_table_stmt?t.visitCreate_table_stmt(this):t.visitChildren(this)}},zn=class extends P{static{Ls(this,"Create_table_entryContext")}constructor(t,e){super(t,e)}column_schema(){return this.getRuleContext(0,Yc)}table_constraint(){return this.getRuleContext(0,Kc)}table_index(){return this.getRuleContext(0,Qc)}family_entry(){return this.getRuleContext(0,hh)}changefeed(){return this.getRuleContext(0,eh)}an_id_schema(){return this.getRuleContext(0,OE)}get ruleIndex(){return er.RULE_create_table_entry}accept(t){return t.visitCreate_table_entry?t.visitCreate_table_entry(this):t.visitChildren(this)}},Zn=class extends P{static{Ls(this,"Create_backup_collection_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(er.CREATE,0)}backup_collection(){return this.getRuleContext(0,hc)}WITH(){return this.getToken(er.WITH,0)}LPAREN(){return this.getToken(er.LPAREN,0)}backup_collection_settings(){return this.getRuleContext(0,oc)}RPAREN(){return this.getToken(er.RPAREN,0)}create_backup_collection_entries(){return this.getRuleContext(0,ec)}get ruleIndex(){return er.RULE_create_backup_collection_stmt}accept(t){return t.visitCreate_backup_collection_stmt?t.visitCreate_backup_collection_stmt(this):t.visitChildren(this)}},$n=class extends P{static{Ls(this,"Alter_backup_collection_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}backup_collection(){return this.getRuleContext(0,hc)}alter_backup_collection_actions(){return this.getRuleContext(0,ic)}alter_backup_collection_entries(){return this.getRuleContext(0,nc)}get ruleIndex(){return er.RULE_alter_backup_collection_stmt}accept(t){return t.visitAlter_backup_collection_stmt?t.visitAlter_backup_collection_stmt(this):t.visitChildren(this)}},tc=class extends P{static{Ls(this,"Drop_backup_collection_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(er.DROP,0)}backup_collection(){return this.getRuleContext(0,hc)}get ruleIndex(){return er.RULE_drop_backup_collection_stmt}accept(t){return t.visitDrop_backup_collection_stmt?t.visitDrop_backup_collection_stmt(this):t.visitChildren(this)}},ec=class extends P{static{Ls(this,"Create_backup_collection_entriesContext")}constructor(t,e){super(t,e)}DATABASE(){return this.getToken(er.DATABASE,0)}create_backup_collection_entries_many(){return this.getRuleContext(0,sc)}get ruleIndex(){return er.RULE_create_backup_collection_entries}accept(t){return t.visitCreate_backup_collection_entries?t.visitCreate_backup_collection_entries(this):t.visitChildren(this)}},sc=class extends P{static{Ls(this,"Create_backup_collection_entries_manyContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(er.LPAREN,0)}table_list(){return this.getRuleContext(0,rc)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_create_backup_collection_entries_many}accept(t){return t.visitCreate_backup_collection_entries_many?t.visitCreate_backup_collection_entries_many(this):t.visitChildren(this)}},rc=class extends P{static{Ls(this,"Table_listContext")}constructor(t,e){super(t,e)}TABLE(t){return void 0===t?this.getTokens(er.TABLE):this.getToken(er.TABLE,t)}an_id_table(t){return void 0===t?this.getRuleContexts(xE):this.getRuleContext(t,xE)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_table_list}accept(t){return t.visitTable_list?t.visitTable_list(this):t.visitChildren(this)}},ic=class extends P{static{Ls(this,"Alter_backup_collection_actionsContext")}constructor(t,e){super(t,e)}alter_backup_collection_action(t){return void 0===t?this.getRuleContexts(ac):this.getRuleContext(t,ac)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_alter_backup_collection_actions}accept(t){return t.visitAlter_backup_collection_actions?t.visitAlter_backup_collection_actions(this):t.visitChildren(this)}},ac=class extends P{static{Ls(this,"Alter_backup_collection_actionContext")}constructor(t,e){super(t,e)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Mc)}alter_table_reset_table_setting(){return this.getRuleContext(0,Dc)}get ruleIndex(){return er.RULE_alter_backup_collection_action}accept(t){return t.visitAlter_backup_collection_action?t.visitAlter_backup_collection_action(this):t.visitChildren(this)}},nc=class extends P{static{Ls(this,"Alter_backup_collection_entriesContext")}constructor(t,e){super(t,e)}alter_backup_collection_entry(t){return void 0===t?this.getRuleContexts(cc):this.getRuleContext(t,cc)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_alter_backup_collection_entries}accept(t){return t.visitAlter_backup_collection_entries?t.visitAlter_backup_collection_entries(this):t.visitChildren(this)}},cc=class extends P{static{Ls(this,"Alter_backup_collection_entryContext")}constructor(t,e){super(t,e)}ADD(){return this.getToken(er.ADD,0)}DATABASE(){return this.getToken(er.DATABASE,0)}DROP(){return this.getToken(er.DROP,0)}TABLE(){return this.getToken(er.TABLE,0)}an_id_table(){return this.getRuleContext(0,xE)}get ruleIndex(){return er.RULE_alter_backup_collection_entry}accept(t){return t.visitAlter_backup_collection_entry?t.visitAlter_backup_collection_entry(this):t.visitChildren(this)}},hc=class extends P{static{Ls(this,"Backup_collectionContext")}constructor(t,e){super(t,e)}BACKUP(){return this.getToken(er.BACKUP,0)}COLLECTION(){return this.getToken(er.COLLECTION,0)}object_ref(){return this.getRuleContext(0,to)}get ruleIndex(){return er.RULE_backup_collection}accept(t){return t.visitBackup_collection?t.visitBackup_collection(this):t.visitChildren(this)}},oc=class extends P{static{Ls(this,"Backup_collection_settingsContext")}constructor(t,e){super(t,e)}backup_collection_settings_entry(t){return void 0===t?this.getRuleContexts(Ec):this.getRuleContext(t,Ec)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_backup_collection_settings}accept(t){return t.visitBackup_collection_settings?t.visitBackup_collection_settings(this):t.visitChildren(this)}},Ec=class extends P{static{Ls(this,"Backup_collection_settings_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}EQUALS(){return this.getToken(er.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,ch)}get ruleIndex(){return er.RULE_backup_collection_settings_entry}accept(t){return t.visitBackup_collection_settings_entry?t.visitBackup_collection_settings_entry(this):t.visitChildren(this)}},lc=class extends P{static{Ls(this,"Backup_stmtContext")}constructor(t,e){super(t,e)}BACKUP(){return this.getToken(er.BACKUP,0)}object_ref(){return this.getRuleContext(0,to)}INCREMENTAL(){return this.getToken(er.INCREMENTAL,0)}get ruleIndex(){return er.RULE_backup_stmt}accept(t){return t.visitBackup_stmt?t.visitBackup_stmt(this):t.visitChildren(this)}},uc=class extends P{static{Ls(this,"Restore_stmtContext")}constructor(t,e){super(t,e)}RESTORE(){return this.getToken(er.RESTORE,0)}object_ref(){return this.getRuleContext(0,to)}AT(){return this.getToken(er.AT,0)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_restore_stmt}accept(t){return t.visitRestore_stmt?t.visitRestore_stmt(this):t.visitChildren(this)}},Rc=class extends P{static{Ls(this,"Table_inheritsContext")}constructor(t,e){super(t,e)}INHERITS(){return this.getToken(er.INHERITS,0)}LPAREN(){return this.getToken(er.LPAREN,0)}simple_table_ref_core(t){return void 0===t?this.getRuleContexts(eo):this.getRuleContext(t,eo)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_table_inherits}accept(t){return t.visitTable_inherits?t.visitTable_inherits(this):t.visitChildren(this)}},_c=class extends P{static{Ls(this,"Table_partition_byContext")}constructor(t,e){super(t,e)}PARTITION(){return this.getToken(er.PARTITION,0)}BY(){return this.getToken(er.BY,0)}HASH(){return this.getToken(er.HASH,0)}pure_column_list(){return this.getRuleContext(0,ai)}get ruleIndex(){return er.RULE_table_partition_by}accept(t){return t.visitTable_partition_by?t.visitTable_partition_by(this):t.visitChildren(this)}},Tc=class extends P{static{Ls(this,"With_table_settingsContext")}constructor(t,e){super(t,e)}WITH(){return this.getToken(er.WITH,0)}LPAREN(){return this.getToken(er.LPAREN,0)}table_settings_entry(t){return void 0===t?this.getRuleContexts(Sc):this.getRuleContext(t,Sc)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_with_table_settings}accept(t){return t.visitWith_table_settings?t.visitWith_table_settings(this):t.visitChildren(this)}},Ac=class extends P{static{Ls(this,"Table_tablestoreContext")}constructor(t,e){super(t,e)}TABLESTORE(){return this.getToken(er.TABLESTORE,0)}simple_table_ref_core(){return this.getRuleContext(0,eo)}get ruleIndex(){return er.RULE_table_tablestore}accept(t){return t.visitTable_tablestore?t.visitTable_tablestore(this):t.visitChildren(this)}},Sc=class extends P{static{Ls(this,"Table_settings_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}EQUALS(){return this.getToken(er.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,ch)}get ruleIndex(){return er.RULE_table_settings_entry}accept(t){return t.visitTable_settings_entry?t.visitTable_settings_entry(this):t.visitChildren(this)}},dc=class extends P{static{Ls(this,"Table_as_sourceContext")}constructor(t,e){super(t,e)}AS(){return this.getToken(er.AS,0)}values_source(){return this.getRuleContext(0,xn)}get ruleIndex(){return er.RULE_table_as_source}accept(t){return t.visitTable_as_source?t.visitTable_as_source(this):t.visitChildren(this)}},Lc=class extends P{static{Ls(this,"Alter_table_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}TABLE(){return this.getToken(er.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,so)}alter_table_action(t){return void 0===t?this.getRuleContexts(Cc):this.getRuleContext(t,Cc)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_alter_table_stmt}accept(t){return t.visitAlter_table_stmt?t.visitAlter_table_stmt(this):t.visitChildren(this)}},Cc=class extends P{static{Ls(this,"Alter_table_actionContext")}constructor(t,e){super(t,e)}alter_table_add_column(){return this.getRuleContext(0,gc)}alter_table_drop_column(){return this.getRuleContext(0,mc)}alter_table_alter_column(){return this.getRuleContext(0,xc)}alter_table_add_column_family(){return this.getRuleContext(0,fc)}alter_table_alter_column_family(){return this.getRuleContext(0,Pc)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,kc)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Mc)}alter_table_reset_table_setting(){return this.getRuleContext(0,Dc)}alter_table_add_index(){return this.getRuleContext(0,yc)}alter_table_drop_index(){return this.getRuleContext(0,vc)}alter_table_rename_to(){return this.getRuleContext(0,bc)}alter_table_add_changefeed(){return this.getRuleContext(0,wc)}alter_table_alter_changefeed(){return this.getRuleContext(0,Fc)}alter_table_drop_changefeed(){return this.getRuleContext(0,Gc)}alter_table_rename_index_to(){return this.getRuleContext(0,Hc)}alter_table_alter_index(){return this.getRuleContext(0,Bc)}alter_table_alter_column_drop_not_null(){return this.getRuleContext(0,Uc)}get ruleIndex(){return er.RULE_alter_table_action}accept(t){return t.visitAlter_table_action?t.visitAlter_table_action(this):t.visitChildren(this)}},Nc=class extends P{static{Ls(this,"Alter_external_table_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}EXTERNAL(){return this.getToken(er.EXTERNAL,0)}TABLE(){return this.getToken(er.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,so)}alter_external_table_action(t){return void 0===t?this.getRuleContexts(Ic):this.getRuleContext(t,Ic)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_alter_external_table_stmt}accept(t){return t.visitAlter_external_table_stmt?t.visitAlter_external_table_stmt(this):t.visitChildren(this)}},Ic=class extends P{static{Ls(this,"Alter_external_table_actionContext")}constructor(t,e){super(t,e)}alter_table_add_column(){return this.getRuleContext(0,gc)}alter_table_drop_column(){return this.getRuleContext(0,mc)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,kc)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Mc)}alter_table_reset_table_setting(){return this.getRuleContext(0,Dc)}get ruleIndex(){return er.RULE_alter_external_table_action}accept(t){return t.visitAlter_external_table_action?t.visitAlter_external_table_action(this):t.visitChildren(this)}},Oc=class extends P{static{Ls(this,"Alter_table_store_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}TABLESTORE(){return this.getToken(er.TABLESTORE,0)}object_ref(){return this.getRuleContext(0,to)}alter_table_store_action(t){return void 0===t?this.getRuleContexts(pc):this.getRuleContext(t,pc)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_alter_table_store_stmt}accept(t){return t.visitAlter_table_store_stmt?t.visitAlter_table_store_stmt(this):t.visitChildren(this)}},pc=class extends P{static{Ls(this,"Alter_table_store_actionContext")}constructor(t,e){super(t,e)}alter_table_add_column(){return this.getRuleContext(0,gc)}alter_table_drop_column(){return this.getRuleContext(0,mc)}get ruleIndex(){return er.RULE_alter_table_store_action}accept(t){return t.visitAlter_table_store_action?t.visitAlter_table_store_action(this):t.visitChildren(this)}},gc=class extends P{static{Ls(this,"Alter_table_add_columnContext")}constructor(t,e){super(t,e)}ADD(){return this.getToken(er.ADD,0)}column_schema(){return this.getRuleContext(0,Yc)}COLUMN(){return this.getToken(er.COLUMN,0)}get ruleIndex(){return er.RULE_alter_table_add_column}accept(t){return t.visitAlter_table_add_column?t.visitAlter_table_add_column(this):t.visitChildren(this)}},mc=class extends P{static{Ls(this,"Alter_table_drop_columnContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(er.DROP,0)}an_id(){return this.getRuleContext(0,NE)}COLUMN(){return this.getToken(er.COLUMN,0)}get ruleIndex(){return er.RULE_alter_table_drop_column}accept(t){return t.visitAlter_table_drop_column?t.visitAlter_table_drop_column(this):t.visitChildren(this)}},xc=class extends P{static{Ls(this,"Alter_table_alter_columnContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}COLUMN(){return this.getToken(er.COLUMN,0)}an_id(){return this.getRuleContext(0,NE)}SET(){return this.getToken(er.SET,0)}family_relation(){return this.getRuleContext(0,Vc)}get ruleIndex(){return er.RULE_alter_table_alter_column}accept(t){return t.visitAlter_table_alter_column?t.visitAlter_table_alter_column(this):t.visitChildren(this)}},Uc=class extends P{static{Ls(this,"Alter_table_alter_column_drop_not_nullContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}COLUMN(){return this.getToken(er.COLUMN,0)}an_id(){return this.getRuleContext(0,NE)}DROP(){return this.getToken(er.DROP,0)}NOT(){return this.getToken(er.NOT,0)}NULL(){return this.getToken(er.NULL,0)}get ruleIndex(){return er.RULE_alter_table_alter_column_drop_not_null}accept(t){return t.visitAlter_table_alter_column_drop_not_null?t.visitAlter_table_alter_column_drop_not_null(this):t.visitChildren(this)}},fc=class extends P{static{Ls(this,"Alter_table_add_column_familyContext")}constructor(t,e){super(t,e)}ADD(){return this.getToken(er.ADD,0)}family_entry(){return this.getRuleContext(0,hh)}get ruleIndex(){return er.RULE_alter_table_add_column_family}accept(t){return t.visitAlter_table_add_column_family?t.visitAlter_table_add_column_family(this):t.visitChildren(this)}},Pc=class extends P{static{Ls(this,"Alter_table_alter_column_familyContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}FAMILY(){return this.getToken(er.FAMILY,0)}an_id(t){return void 0===t?this.getRuleContexts(NE):this.getRuleContext(t,NE)}SET(){return this.getToken(er.SET,0)}family_setting_value(){return this.getRuleContext(0,lh)}get ruleIndex(){return er.RULE_alter_table_alter_column_family}accept(t){return t.visitAlter_table_alter_column_family?t.visitAlter_table_alter_column_family(this):t.visitChildren(this)}},kc=class extends P{static{Ls(this,"Alter_table_set_table_setting_uncompatContext")}constructor(t,e){super(t,e)}SET(){return this.getToken(er.SET,0)}an_id(){return this.getRuleContext(0,NE)}table_setting_value(){return this.getRuleContext(0,ch)}get ruleIndex(){return er.RULE_alter_table_set_table_setting_uncompat}accept(t){return t.visitAlter_table_set_table_setting_uncompat?t.visitAlter_table_set_table_setting_uncompat(this):t.visitChildren(this)}},Mc=class extends P{static{Ls(this,"Alter_table_set_table_setting_compatContext")}constructor(t,e){super(t,e)}SET(){return this.getToken(er.SET,0)}LPAREN(){return this.getToken(er.LPAREN,0)}alter_table_setting_entry(t){return void 0===t?this.getRuleContexts(nh):this.getRuleContext(t,nh)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_alter_table_set_table_setting_compat}accept(t){return t.visitAlter_table_set_table_setting_compat?t.visitAlter_table_set_table_setting_compat(this):t.visitChildren(this)}},Dc=class extends P{static{Ls(this,"Alter_table_reset_table_settingContext")}constructor(t,e){super(t,e)}RESET(){return this.getToken(er.RESET,0)}LPAREN(){return this.getToken(er.LPAREN,0)}an_id(t){return void 0===t?this.getRuleContexts(NE):this.getRuleContext(t,NE)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_alter_table_reset_table_setting}accept(t){return t.visitAlter_table_reset_table_setting?t.visitAlter_table_reset_table_setting(this):t.visitChildren(this)}},yc=class extends P{static{Ls(this,"Alter_table_add_indexContext")}constructor(t,e){super(t,e)}ADD(){return this.getToken(er.ADD,0)}table_index(){return this.getRuleContext(0,Qc)}get ruleIndex(){return er.RULE_alter_table_add_index}accept(t){return t.visitAlter_table_add_index?t.visitAlter_table_add_index(this):t.visitChildren(this)}},vc=class extends P{static{Ls(this,"Alter_table_drop_indexContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(er.DROP,0)}INDEX(){return this.getToken(er.INDEX,0)}an_id(){return this.getRuleContext(0,NE)}get ruleIndex(){return er.RULE_alter_table_drop_index}accept(t){return t.visitAlter_table_drop_index?t.visitAlter_table_drop_index(this):t.visitChildren(this)}},bc=class extends P{static{Ls(this,"Alter_table_rename_toContext")}constructor(t,e){super(t,e)}RENAME(){return this.getToken(er.RENAME,0)}TO(){return this.getToken(er.TO,0)}an_id_table(){return this.getRuleContext(0,xE)}get ruleIndex(){return er.RULE_alter_table_rename_to}accept(t){return t.visitAlter_table_rename_to?t.visitAlter_table_rename_to(this):t.visitChildren(this)}},Hc=class extends P{static{Ls(this,"Alter_table_rename_index_toContext")}constructor(t,e){super(t,e)}RENAME(){return this.getToken(er.RENAME,0)}INDEX(){return this.getToken(er.INDEX,0)}an_id(t){return void 0===t?this.getRuleContexts(NE):this.getRuleContext(t,NE)}TO(){return this.getToken(er.TO,0)}get ruleIndex(){return er.RULE_alter_table_rename_index_to}accept(t){return t.visitAlter_table_rename_index_to?t.visitAlter_table_rename_index_to(this):t.visitChildren(this)}},wc=class extends P{static{Ls(this,"Alter_table_add_changefeedContext")}constructor(t,e){super(t,e)}ADD(){return this.getToken(er.ADD,0)}changefeed(){return this.getRuleContext(0,eh)}get ruleIndex(){return er.RULE_alter_table_add_changefeed}accept(t){return t.visitAlter_table_add_changefeed?t.visitAlter_table_add_changefeed(this):t.visitChildren(this)}},Fc=class extends P{static{Ls(this,"Alter_table_alter_changefeedContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}CHANGEFEED(){return this.getToken(er.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,NE)}changefeed_alter_settings(){return this.getRuleContext(0,ah)}get ruleIndex(){return er.RULE_alter_table_alter_changefeed}accept(t){return t.visitAlter_table_alter_changefeed?t.visitAlter_table_alter_changefeed(this):t.visitChildren(this)}},Gc=class extends P{static{Ls(this,"Alter_table_drop_changefeedContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(er.DROP,0)}CHANGEFEED(){return this.getToken(er.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,NE)}get ruleIndex(){return er.RULE_alter_table_drop_changefeed}accept(t){return t.visitAlter_table_drop_changefeed?t.visitAlter_table_drop_changefeed(this):t.visitChildren(this)}},Bc=class extends P{static{Ls(this,"Alter_table_alter_indexContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}INDEX(){return this.getToken(er.INDEX,0)}an_id(){return this.getRuleContext(0,NE)}alter_table_alter_index_action(){return this.getRuleContext(0,_h)}get ruleIndex(){return er.RULE_alter_table_alter_index}accept(t){return t.visitAlter_table_alter_index?t.visitAlter_table_alter_index(this):t.visitChildren(this)}},Yc=class extends P{static{Ls(this,"Column_schemaContext")}constructor(t,e){super(t,e)}an_id_schema(){return this.getRuleContext(0,OE)}type_name_or_bind(){return this.getRuleContext(0,Ji)}opt_column_constraints(){return this.getRuleContext(0,Wc)}family_relation(){return this.getRuleContext(0,Vc)}get ruleIndex(){return er.RULE_column_schema}accept(t){return t.visitColumn_schema?t.visitColumn_schema(this):t.visitChildren(this)}},Vc=class extends P{static{Ls(this,"Family_relationContext")}constructor(t,e){super(t,e)}FAMILY(){return this.getToken(er.FAMILY,0)}an_id(){return this.getRuleContext(0,NE)}get ruleIndex(){return er.RULE_family_relation}accept(t){return t.visitFamily_relation?t.visitFamily_relation(this):t.visitChildren(this)}},Wc=class extends P{static{Ls(this,"Opt_column_constraintsContext")}constructor(t,e){super(t,e)}NULL(){return this.getToken(er.NULL,0)}DEFAULT(){return this.getToken(er.DEFAULT,0)}expr(){return this.getRuleContext(0,or)}NOT(){return this.getToken(er.NOT,0)}get ruleIndex(){return er.RULE_opt_column_constraints}accept(t){return t.visitOpt_column_constraints?t.visitOpt_column_constraints(this):t.visitChildren(this)}},Xc=class extends P{static{Ls(this,"Column_order_by_specificationContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}ASC(){return this.getToken(er.ASC,0)}DESC(){return this.getToken(er.DESC,0)}get ruleIndex(){return er.RULE_column_order_by_specification}accept(t){return t.visitColumn_order_by_specification?t.visitColumn_order_by_specification(this):t.visitChildren(this)}},Kc=class extends P{static{Ls(this,"Table_constraintContext")}constructor(t,e){super(t,e)}PRIMARY(){return this.getToken(er.PRIMARY,0)}KEY(){return this.getToken(er.KEY,0)}LPAREN(){return this.getToken(er.LPAREN,0)}an_id(t){return void 0===t?this.getRuleContexts(NE):this.getRuleContext(t,NE)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}PARTITION(){return this.getToken(er.PARTITION,0)}BY(){return this.getToken(er.BY,0)}ORDER(){return this.getToken(er.ORDER,0)}column_order_by_specification(t){return void 0===t?this.getRuleContexts(Xc):this.getRuleContext(t,Xc)}get ruleIndex(){return er.RULE_table_constraint}accept(t){return t.visitTable_constraint?t.visitTable_constraint(this):t.visitChildren(this)}},Qc=class extends P{static{Ls(this,"Table_indexContext")}constructor(t,e){super(t,e)}INDEX(){return this.getToken(er.INDEX,0)}an_id(){return this.getRuleContext(0,NE)}table_index_type(){return this.getRuleContext(0,qc)}ON(){return this.getToken(er.ON,0)}LPAREN(t){return void 0===t?this.getTokens(er.LPAREN):this.getToken(er.LPAREN,t)}an_id_schema(t){return void 0===t?this.getRuleContexts(OE):this.getRuleContext(t,OE)}RPAREN(t){return void 0===t?this.getTokens(er.RPAREN):this.getToken(er.RPAREN,t)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}COVER(){return this.getToken(er.COVER,0)}with_index_settings(){return this.getRuleContext(0,Zc)}get ruleIndex(){return er.RULE_table_index}accept(t){return t.visitTable_index?t.visitTable_index(this):t.visitChildren(this)}},qc=class extends P{static{Ls(this,"Table_index_typeContext")}constructor(t,e){super(t,e)}global_index(){return this.getRuleContext(0,jc)}local_index(){return this.getRuleContext(0,Jc)}USING(){return this.getToken(er.USING,0)}index_subtype(){return this.getRuleContext(0,zc)}get ruleIndex(){return er.RULE_table_index_type}accept(t){return t.visitTable_index_type?t.visitTable_index_type(this):t.visitChildren(this)}},jc=class extends P{static{Ls(this,"Global_indexContext")}constructor(t,e){super(t,e)}GLOBAL(){return this.getToken(er.GLOBAL,0)}UNIQUE(){return this.getToken(er.UNIQUE,0)}SYNC(){return this.getToken(er.SYNC,0)}ASYNC(){return this.getToken(er.ASYNC,0)}get ruleIndex(){return er.RULE_global_index}accept(t){return t.visitGlobal_index?t.visitGlobal_index(this):t.visitChildren(this)}},Jc=class extends P{static{Ls(this,"Local_indexContext")}constructor(t,e){super(t,e)}LOCAL(){return this.getToken(er.LOCAL,0)}get ruleIndex(){return er.RULE_local_index}accept(t){return t.visitLocal_index?t.visitLocal_index(this):t.visitChildren(this)}},zc=class extends P{static{Ls(this,"Index_subtypeContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}get ruleIndex(){return er.RULE_index_subtype}accept(t){return t.visitIndex_subtype?t.visitIndex_subtype(this):t.visitChildren(this)}},Zc=class extends P{static{Ls(this,"With_index_settingsContext")}constructor(t,e){super(t,e)}WITH(){return this.getToken(er.WITH,0)}LPAREN(){return this.getToken(er.LPAREN,0)}index_setting_entry(t){return void 0===t?this.getRuleContexts($c):this.getRuleContext(t,$c)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_with_index_settings}accept(t){return t.visitWith_index_settings?t.visitWith_index_settings(this):t.visitChildren(this)}},$c=class extends P{static{Ls(this,"Index_setting_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}EQUALS(){return this.getToken(er.EQUALS,0)}index_setting_value(){return this.getRuleContext(0,th)}get ruleIndex(){return er.RULE_index_setting_entry}accept(t){return t.visitIndex_setting_entry?t.visitIndex_setting_entry(this):t.visitChildren(this)}},th=class extends P{static{Ls(this,"Index_setting_valueContext")}constructor(t,e){super(t,e)}id_or_type(){return this.getRuleContext(0,vE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}integer(){return this.getRuleContext(0,$E)}bool_value(){return this.getRuleContext(0,zE)}get ruleIndex(){return er.RULE_index_setting_value}accept(t){return t.visitIndex_setting_value?t.visitIndex_setting_value(this):t.visitChildren(this)}},eh=class extends P{static{Ls(this,"ChangefeedContext")}constructor(t,e){super(t,e)}CHANGEFEED(){return this.getToken(er.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,NE)}WITH(){return this.getToken(er.WITH,0)}LPAREN(){return this.getToken(er.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,sh)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_changefeed}accept(t){return t.visitChangefeed?t.visitChangefeed(this):t.visitChildren(this)}},sh=class extends P{static{Ls(this,"Changefeed_settingsContext")}constructor(t,e){super(t,e)}changefeed_settings_entry(t){return void 0===t?this.getRuleContexts(rh):this.getRuleContext(t,rh)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_changefeed_settings}accept(t){return t.visitChangefeed_settings?t.visitChangefeed_settings(this):t.visitChildren(this)}},rh=class extends P{static{Ls(this,"Changefeed_settings_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}EQUALS(){return this.getToken(er.EQUALS,0)}changefeed_setting_value(){return this.getRuleContext(0,ih)}get ruleIndex(){return er.RULE_changefeed_settings_entry}accept(t){return t.visitChangefeed_settings_entry?t.visitChangefeed_settings_entry(this):t.visitChildren(this)}},ih=class extends P{static{Ls(this,"Changefeed_setting_valueContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,or)}get ruleIndex(){return er.RULE_changefeed_setting_value}accept(t){return t.visitChangefeed_setting_value?t.visitChangefeed_setting_value(this):t.visitChildren(this)}},ah=class extends P{static{Ls(this,"Changefeed_alter_settingsContext")}constructor(t,e){super(t,e)}DISABLE(){return this.getToken(er.DISABLE,0)}SET(){return this.getToken(er.SET,0)}LPAREN(){return this.getToken(er.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,sh)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_changefeed_alter_settings}accept(t){return t.visitChangefeed_alter_settings?t.visitChangefeed_alter_settings(this):t.visitChildren(this)}},nh=class extends P{static{Ls(this,"Alter_table_setting_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}EQUALS(){return this.getToken(er.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,ch)}get ruleIndex(){return er.RULE_alter_table_setting_entry}accept(t){return t.visitAlter_table_setting_entry?t.visitAlter_table_setting_entry(this):t.visitChildren(this)}},ch=class extends P{static{Ls(this,"Table_setting_valueContext")}constructor(t,e){super(t,e)}id(){return this.getRuleContext(0,uE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}integer(){return this.getRuleContext(0,$E)}split_boundaries(){return this.getRuleContext(0,uh)}expr(){return this.getRuleContext(0,or)}ON(){return this.getToken(er.ON,0)}an_id(){return this.getRuleContext(0,NE)}AS(){return this.getToken(er.AS,0)}SECONDS(){return this.getToken(er.SECONDS,0)}MILLISECONDS(){return this.getToken(er.MILLISECONDS,0)}MICROSECONDS(){return this.getToken(er.MICROSECONDS,0)}NANOSECONDS(){return this.getToken(er.NANOSECONDS,0)}bool_value(){return this.getRuleContext(0,zE)}get ruleIndex(){return er.RULE_table_setting_value}accept(t){return t.visitTable_setting_value?t.visitTable_setting_value(this):t.visitChildren(this)}},hh=class extends P{static{Ls(this,"Family_entryContext")}constructor(t,e){super(t,e)}FAMILY(){return this.getToken(er.FAMILY,0)}an_id(){return this.getRuleContext(0,NE)}family_settings(){return this.getRuleContext(0,oh)}get ruleIndex(){return er.RULE_family_entry}accept(t){return t.visitFamily_entry?t.visitFamily_entry(this):t.visitChildren(this)}},oh=class extends P{static{Ls(this,"Family_settingsContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(er.LPAREN,0)}RPAREN(){return this.getToken(er.RPAREN,0)}family_settings_entry(t){return void 0===t?this.getRuleContexts(Eh):this.getRuleContext(t,Eh)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_family_settings}accept(t){return t.visitFamily_settings?t.visitFamily_settings(this):t.visitChildren(this)}},Eh=class extends P{static{Ls(this,"Family_settings_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}EQUALS(){return this.getToken(er.EQUALS,0)}family_setting_value(){return this.getRuleContext(0,lh)}get ruleIndex(){return er.RULE_family_settings_entry}accept(t){return t.visitFamily_settings_entry?t.visitFamily_settings_entry(this):t.visitChildren(this)}},lh=class extends P{static{Ls(this,"Family_setting_valueContext")}constructor(t,e){super(t,e)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}integer(){return this.getRuleContext(0,$E)}get ruleIndex(){return er.RULE_family_setting_value}accept(t){return t.visitFamily_setting_value?t.visitFamily_setting_value(this):t.visitChildren(this)}},uh=class extends P{static{Ls(this,"Split_boundariesContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(er.LPAREN,0)}literal_value_list(t){return void 0===t?this.getRuleContexts(Rh):this.getRuleContext(t,Rh)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_split_boundaries}accept(t){return t.visitSplit_boundaries?t.visitSplit_boundaries(this):t.visitChildren(this)}},Rh=class extends P{static{Ls(this,"Literal_value_listContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(er.LPAREN,0)}literal_value(t){return void 0===t?this.getRuleContexts(Li):this.getRuleContext(t,Li)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_literal_value_list}accept(t){return t.visitLiteral_value_list?t.visitLiteral_value_list(this):t.visitChildren(this)}},_h=class extends P{static{Ls(this,"Alter_table_alter_index_actionContext")}constructor(t,e){super(t,e)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,kc)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Mc)}alter_table_reset_table_setting(){return this.getRuleContext(0,Dc)}get ruleIndex(){return er.RULE_alter_table_alter_index_action}accept(t){return t.visitAlter_table_alter_index_action?t.visitAlter_table_alter_index_action(this):t.visitChildren(this)}},Th=class extends P{static{Ls(this,"Drop_table_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(er.DROP,0)}simple_table_ref(){return this.getRuleContext(0,so)}TABLE(){return this.getToken(er.TABLE,0)}TABLESTORE(){return this.getToken(er.TABLESTORE,0)}EXTERNAL(){return this.getToken(er.EXTERNAL,0)}IF(){return this.getToken(er.IF,0)}EXISTS(){return this.getToken(er.EXISTS,0)}get ruleIndex(){return er.RULE_drop_table_stmt}accept(t){return t.visitDrop_table_stmt?t.visitDrop_table_stmt(this):t.visitChildren(this)}},Ah=class extends P{static{Ls(this,"Create_user_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(er.CREATE,0)}USER(){return this.getToken(er.USER,0)}role_name(){return this.getRuleContext(0,Nh)}create_user_option(){return this.getRuleContext(0,Ih)}get ruleIndex(){return er.RULE_create_user_stmt}accept(t){return t.visitCreate_user_stmt?t.visitCreate_user_stmt(this):t.visitChildren(this)}},Sh=class extends P{static{Ls(this,"Alter_user_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}USER(){return this.getToken(er.USER,0)}role_name(t){return void 0===t?this.getRuleContexts(Nh):this.getRuleContext(t,Nh)}create_user_option(){return this.getRuleContext(0,Ih)}RENAME(){return this.getToken(er.RENAME,0)}TO(){return this.getToken(er.TO,0)}WITH(){return this.getToken(er.WITH,0)}get ruleIndex(){return er.RULE_alter_user_stmt}accept(t){return t.visitAlter_user_stmt?t.visitAlter_user_stmt(this):t.visitChildren(this)}},dh=class extends P{static{Ls(this,"Create_group_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(er.CREATE,0)}GROUP(){return this.getToken(er.GROUP,0)}role_name(t){return void 0===t?this.getRuleContexts(Nh):this.getRuleContext(t,Nh)}WITH(){return this.getToken(er.WITH,0)}USER(){return this.getToken(er.USER,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_create_group_stmt}accept(t){return t.visitCreate_group_stmt?t.visitCreate_group_stmt(this):t.visitChildren(this)}},Lh=class extends P{static{Ls(this,"Alter_group_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}GROUP(){return this.getToken(er.GROUP,0)}role_name(t){return void 0===t?this.getRuleContexts(Nh):this.getRuleContext(t,Nh)}USER(){return this.getToken(er.USER,0)}RENAME(){return this.getToken(er.RENAME,0)}TO(){return this.getToken(er.TO,0)}ADD(){return this.getToken(er.ADD,0)}DROP(){return this.getToken(er.DROP,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_alter_group_stmt}accept(t){return t.visitAlter_group_stmt?t.visitAlter_group_stmt(this):t.visitChildren(this)}},Ch=class extends P{static{Ls(this,"Drop_role_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(er.DROP,0)}role_name(t){return void 0===t?this.getRuleContexts(Nh):this.getRuleContext(t,Nh)}USER(){return this.getToken(er.USER,0)}GROUP(){return this.getToken(er.GROUP,0)}IF(){return this.getToken(er.IF,0)}EXISTS(){return this.getToken(er.EXISTS,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_drop_role_stmt}accept(t){return t.visitDrop_role_stmt?t.visitDrop_role_stmt(this):t.visitChildren(this)}},Nh=class extends P{static{Ls(this,"Role_nameContext")}constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,IE)}bind_parameter(){return this.getRuleContext(0,Ci)}get ruleIndex(){return er.RULE_role_name}accept(t){return t.visitRole_name?t.visitRole_name(this):t.visitChildren(this)}},Ih=class extends P{static{Ls(this,"Create_user_optionContext")}constructor(t,e){super(t,e)}PASSWORD(){return this.getToken(er.PASSWORD,0)}expr(){return this.getRuleContext(0,or)}ENCRYPTED(){return this.getToken(er.ENCRYPTED,0)}get ruleIndex(){return er.RULE_create_user_option}accept(t){return t.visitCreate_user_option?t.visitCreate_user_option(this):t.visitChildren(this)}},Oh=class extends P{static{Ls(this,"Grant_permissions_stmtContext")}constructor(t,e){super(t,e)}GRANT(t){return void 0===t?this.getTokens(er.GRANT):this.getToken(er.GRANT,t)}permission_name_target(){return this.getRuleContext(0,xh)}ON(){return this.getToken(er.ON,0)}an_id_schema(t){return void 0===t?this.getRuleContexts(OE):this.getRuleContext(t,OE)}TO(){return this.getToken(er.TO,0)}role_name(t){return void 0===t?this.getRuleContexts(Nh):this.getRuleContext(t,Nh)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}WITH(){return this.getToken(er.WITH,0)}OPTION(){return this.getToken(er.OPTION,0)}get ruleIndex(){return er.RULE_grant_permissions_stmt}accept(t){return t.visitGrant_permissions_stmt?t.visitGrant_permissions_stmt(this):t.visitChildren(this)}},ph=class extends P{static{Ls(this,"Revoke_permissions_stmtContext")}constructor(t,e){super(t,e)}REVOKE(){return this.getToken(er.REVOKE,0)}permission_name_target(){return this.getRuleContext(0,xh)}ON(){return this.getToken(er.ON,0)}an_id_schema(t){return void 0===t?this.getRuleContexts(OE):this.getRuleContext(t,OE)}FROM(){return this.getToken(er.FROM,0)}role_name(t){return void 0===t?this.getRuleContexts(Nh):this.getRuleContext(t,Nh)}GRANT(){return this.getToken(er.GRANT,0)}OPTION(){return this.getToken(er.OPTION,0)}FOR(){return this.getToken(er.FOR,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_revoke_permissions_stmt}accept(t){return t.visitRevoke_permissions_stmt?t.visitRevoke_permissions_stmt(this):t.visitChildren(this)}},gh=class extends P{static{Ls(this,"Permission_idContext")}constructor(t,e){super(t,e)}CONNECT(){return this.getToken(er.CONNECT,0)}LIST(){return this.getToken(er.LIST,0)}INSERT(){return this.getToken(er.INSERT,0)}MANAGE(){return this.getToken(er.MANAGE,0)}DROP(){return this.getToken(er.DROP,0)}GRANT(){return this.getToken(er.GRANT,0)}MODIFY(){return this.getToken(er.MODIFY,0)}TABLES(){return this.getToken(er.TABLES,0)}ATTRIBUTES(){return this.getToken(er.ATTRIBUTES,0)}ROW(){return this.getToken(er.ROW,0)}UPDATE(){return this.getToken(er.UPDATE,0)}ERASE(){return this.getToken(er.ERASE,0)}SCHEMA(){return this.getToken(er.SCHEMA,0)}REMOVE(){return this.getToken(er.REMOVE,0)}DESCRIBE(){return this.getToken(er.DESCRIBE,0)}ALTER(){return this.getToken(er.ALTER,0)}SELECT(){return this.getToken(er.SELECT,0)}USE(){return this.getToken(er.USE,0)}FULL(){return this.getToken(er.FULL,0)}LEGACY(){return this.getToken(er.LEGACY,0)}CREATE(){return this.getToken(er.CREATE,0)}DIRECTORY(){return this.getToken(er.DIRECTORY,0)}TABLE(){return this.getToken(er.TABLE,0)}QUEUE(){return this.getToken(er.QUEUE,0)}get ruleIndex(){return er.RULE_permission_id}accept(t){return t.visitPermission_id?t.visitPermission_id(this):t.visitChildren(this)}},mh=class extends P{static{Ls(this,"Permission_nameContext")}constructor(t,e){super(t,e)}permission_id(){return this.getRuleContext(0,gh)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_permission_name}accept(t){return t.visitPermission_name?t.visitPermission_name(this):t.visitChildren(this)}},xh=class extends P{static{Ls(this,"Permission_name_targetContext")}constructor(t,e){super(t,e)}permission_name(t){return void 0===t?this.getRuleContexts(mh):this.getRuleContext(t,mh)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}ALL(){return this.getToken(er.ALL,0)}PRIVILEGES(){return this.getToken(er.PRIVILEGES,0)}get ruleIndex(){return er.RULE_permission_name_target}accept(t){return t.visitPermission_name_target?t.visitPermission_name_target(this):t.visitChildren(this)}},Uh=class extends P{static{Ls(this,"Create_resource_pool_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(er.CREATE,0)}RESOURCE(){return this.getToken(er.RESOURCE,0)}POOL(){return this.getToken(er.POOL,0)}object_ref(){return this.getRuleContext(0,to)}with_table_settings(){return this.getRuleContext(0,Tc)}get ruleIndex(){return er.RULE_create_resource_pool_stmt}accept(t){return t.visitCreate_resource_pool_stmt?t.visitCreate_resource_pool_stmt(this):t.visitChildren(this)}},fh=class extends P{static{Ls(this,"Alter_resource_pool_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}RESOURCE(){return this.getToken(er.RESOURCE,0)}POOL(){return this.getToken(er.POOL,0)}object_ref(){return this.getRuleContext(0,to)}alter_resource_pool_action(t){return void 0===t?this.getRuleContexts(Ph):this.getRuleContext(t,Ph)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_alter_resource_pool_stmt}accept(t){return t.visitAlter_resource_pool_stmt?t.visitAlter_resource_pool_stmt(this):t.visitChildren(this)}},Ph=class extends P{static{Ls(this,"Alter_resource_pool_actionContext")}constructor(t,e){super(t,e)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Mc)}alter_table_reset_table_setting(){return this.getRuleContext(0,Dc)}get ruleIndex(){return er.RULE_alter_resource_pool_action}accept(t){return t.visitAlter_resource_pool_action?t.visitAlter_resource_pool_action(this):t.visitChildren(this)}},kh=class extends P{static{Ls(this,"Drop_resource_pool_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(er.DROP,0)}RESOURCE(){return this.getToken(er.RESOURCE,0)}POOL(){return this.getToken(er.POOL,0)}object_ref(){return this.getRuleContext(0,to)}get ruleIndex(){return er.RULE_drop_resource_pool_stmt}accept(t){return t.visitDrop_resource_pool_stmt?t.visitDrop_resource_pool_stmt(this):t.visitChildren(this)}},Mh=class extends P{static{Ls(this,"Create_resource_pool_classifier_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(er.CREATE,0)}RESOURCE(){return this.getToken(er.RESOURCE,0)}POOL(){return this.getToken(er.POOL,0)}CLASSIFIER(){return this.getToken(er.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,to)}with_table_settings(){return this.getRuleContext(0,Tc)}get ruleIndex(){return er.RULE_create_resource_pool_classifier_stmt}accept(t){return t.visitCreate_resource_pool_classifier_stmt?t.visitCreate_resource_pool_classifier_stmt(this):t.visitChildren(this)}},Dh=class extends P{static{Ls(this,"Alter_resource_pool_classifier_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}RESOURCE(){return this.getToken(er.RESOURCE,0)}POOL(){return this.getToken(er.POOL,0)}CLASSIFIER(){return this.getToken(er.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,to)}alter_resource_pool_classifier_action(t){return void 0===t?this.getRuleContexts(yh):this.getRuleContext(t,yh)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_alter_resource_pool_classifier_stmt}accept(t){return t.visitAlter_resource_pool_classifier_stmt?t.visitAlter_resource_pool_classifier_stmt(this):t.visitChildren(this)}},yh=class extends P{static{Ls(this,"Alter_resource_pool_classifier_actionContext")}constructor(t,e){super(t,e)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Mc)}alter_table_reset_table_setting(){return this.getRuleContext(0,Dc)}get ruleIndex(){return er.RULE_alter_resource_pool_classifier_action}accept(t){return t.visitAlter_resource_pool_classifier_action?t.visitAlter_resource_pool_classifier_action(this):t.visitChildren(this)}},vh=class extends P{static{Ls(this,"Drop_resource_pool_classifier_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(er.DROP,0)}RESOURCE(){return this.getToken(er.RESOURCE,0)}POOL(){return this.getToken(er.POOL,0)}CLASSIFIER(){return this.getToken(er.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,to)}get ruleIndex(){return er.RULE_drop_resource_pool_classifier_stmt}accept(t){return t.visitDrop_resource_pool_classifier_stmt?t.visitDrop_resource_pool_classifier_stmt(this):t.visitChildren(this)}},bh=class extends P{static{Ls(this,"Create_replication_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(er.CREATE,0)}ASYNC(){return this.getToken(er.ASYNC,0)}REPLICATION(){return this.getToken(er.REPLICATION,0)}object_ref(){return this.getRuleContext(0,to)}FOR(){return this.getToken(er.FOR,0)}replication_target(t){return void 0===t?this.getRuleContexts(Hh):this.getRuleContext(t,Hh)}WITH(){return this.getToken(er.WITH,0)}LPAREN(){return this.getToken(er.LPAREN,0)}replication_settings(){return this.getRuleContext(0,wh)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_create_replication_stmt}accept(t){return t.visitCreate_replication_stmt?t.visitCreate_replication_stmt(this):t.visitChildren(this)}},Hh=class extends P{static{Ls(this,"Replication_targetContext")}constructor(t,e){super(t,e)}object_ref(){return this.getRuleContext(0,to)}replication_name(){return this.getRuleContext(0,il)}get ruleIndex(){return er.RULE_replication_target}accept(t){return t.visitReplication_target?t.visitReplication_target(this):t.visitChildren(this)}},wh=class extends P{static{Ls(this,"Replication_settingsContext")}constructor(t,e){super(t,e)}replication_settings_entry(t){return void 0===t?this.getRuleContexts(Fh):this.getRuleContext(t,Fh)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_replication_settings}accept(t){return t.visitReplication_settings?t.visitReplication_settings(this):t.visitChildren(this)}},Fh=class extends P{static{Ls(this,"Replication_settings_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}EQUALS(){return this.getToken(er.EQUALS,0)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_replication_settings_entry}accept(t){return t.visitReplication_settings_entry?t.visitReplication_settings_entry(this):t.visitChildren(this)}},Gh=class extends P{static{Ls(this,"Alter_replication_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}ASYNC(){return this.getToken(er.ASYNC,0)}REPLICATION(){return this.getToken(er.REPLICATION,0)}object_ref(){return this.getRuleContext(0,to)}alter_replication_action(t){return void 0===t?this.getRuleContexts(Bh):this.getRuleContext(t,Bh)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_alter_replication_stmt}accept(t){return t.visitAlter_replication_stmt?t.visitAlter_replication_stmt(this):t.visitChildren(this)}},Bh=class extends P{static{Ls(this,"Alter_replication_actionContext")}constructor(t,e){super(t,e)}alter_replication_set_setting(){return this.getRuleContext(0,Yh)}get ruleIndex(){return er.RULE_alter_replication_action}accept(t){return t.visitAlter_replication_action?t.visitAlter_replication_action(this):t.visitChildren(this)}},Yh=class extends P{static{Ls(this,"Alter_replication_set_settingContext")}constructor(t,e){super(t,e)}SET(){return this.getToken(er.SET,0)}LPAREN(){return this.getToken(er.LPAREN,0)}replication_settings(){return this.getRuleContext(0,wh)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_alter_replication_set_setting}accept(t){return t.visitAlter_replication_set_setting?t.visitAlter_replication_set_setting(this):t.visitChildren(this)}},Vh=class extends P{static{Ls(this,"Drop_replication_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(er.DROP,0)}ASYNC(){return this.getToken(er.ASYNC,0)}REPLICATION(){return this.getToken(er.REPLICATION,0)}object_ref(){return this.getRuleContext(0,to)}CASCADE(){return this.getToken(er.CASCADE,0)}get ruleIndex(){return er.RULE_drop_replication_stmt}accept(t){return t.visitDrop_replication_stmt?t.visitDrop_replication_stmt(this):t.visitChildren(this)}},Wh=class extends P{static{Ls(this,"Action_or_subquery_argsContext")}constructor(t,e){super(t,e)}opt_bind_parameter(t){return void 0===t?this.getRuleContexts(Ni):this.getRuleContext(t,Ni)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_action_or_subquery_args}accept(t){return t.visitAction_or_subquery_args?t.visitAction_or_subquery_args(this):t.visitChildren(this)}},Xh=class extends P{static{Ls(this,"Define_action_or_subquery_stmtContext")}constructor(t,e){super(t,e)}DEFINE(t){return void 0===t?this.getTokens(er.DEFINE):this.getToken(er.DEFINE,t)}bind_parameter(){return this.getRuleContext(0,Ci)}LPAREN(){return this.getToken(er.LPAREN,0)}RPAREN(){return this.getToken(er.RPAREN,0)}AS(){return this.getToken(er.AS,0)}define_action_or_subquery_body(){return this.getRuleContext(0,Kh)}END(){return this.getToken(er.END,0)}ACTION(){return this.getToken(er.ACTION,0)}SUBQUERY(){return this.getToken(er.SUBQUERY,0)}action_or_subquery_args(){return this.getRuleContext(0,Wh)}get ruleIndex(){return er.RULE_define_action_or_subquery_stmt}accept(t){return t.visitDefine_action_or_subquery_stmt?t.visitDefine_action_or_subquery_stmt(this):t.visitChildren(this)}},Kh=class extends P{static{Ls(this,"Define_action_or_subquery_bodyContext")}constructor(t,e){super(t,e)}SEMICOLON(t){return void 0===t?this.getTokens(er.SEMICOLON):this.getToken(er.SEMICOLON,t)}sql_stmt_core(t){return void 0===t?this.getRuleContexts(hr):this.getRuleContext(t,hr)}get ruleIndex(){return er.RULE_define_action_or_subquery_body}accept(t){return t.visitDefine_action_or_subquery_body?t.visitDefine_action_or_subquery_body(this):t.visitChildren(this)}},Qh=class extends P{static{Ls(this,"If_stmtContext")}constructor(t,e){super(t,e)}IF(){return this.getToken(er.IF,0)}expr(){return this.getRuleContext(0,or)}do_stmt(t){return void 0===t?this.getRuleContexts(aa):this.getRuleContext(t,aa)}EVALUATE(){return this.getToken(er.EVALUATE,0)}ELSE(){return this.getToken(er.ELSE,0)}get ruleIndex(){return er.RULE_if_stmt}accept(t){return t.visitIf_stmt?t.visitIf_stmt(this):t.visitChildren(this)}},qh=class extends P{static{Ls(this,"For_stmtContext")}constructor(t,e){super(t,e)}FOR(){return this.getToken(er.FOR,0)}bind_parameter(){return this.getRuleContext(0,Ci)}IN(){return this.getToken(er.IN,0)}expr(){return this.getRuleContext(0,or)}do_stmt(t){return void 0===t?this.getRuleContexts(aa):this.getRuleContext(t,aa)}EVALUATE(){return this.getToken(er.EVALUATE,0)}PARALLEL(){return this.getToken(er.PARALLEL,0)}ELSE(){return this.getToken(er.ELSE,0)}get ruleIndex(){return er.RULE_for_stmt}accept(t){return t.visitFor_stmt?t.visitFor_stmt(this):t.visitChildren(this)}},jh=class extends P{static{Ls(this,"Table_refContext")}constructor(t,e){super(t,e)}table_key(){return this.getRuleContext(0,Jh)}an_id_expr(){return this.getRuleContext(0,pE)}LPAREN(){return this.getToken(er.LPAREN,0)}RPAREN(){return this.getToken(er.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Ci)}cluster_expr(){return this.getRuleContext(0,yE)}DOT(){return this.getToken(er.DOT,0)}COMMAT(){return this.getToken(er.COMMAT,0)}table_hints(){return this.getRuleContext(0,Zh)}table_arg(t){return void 0===t?this.getRuleContexts(zh):this.getRuleContext(t,zh)}VIEW(){return this.getToken(er.VIEW,0)}view_name(){return this.getRuleContext(0,ME)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}expr_list(){return this.getRuleContext(0,ii)}get ruleIndex(){return er.RULE_table_ref}accept(t){return t.visitTable_ref?t.visitTable_ref(this):t.visitChildren(this)}},Jh=class extends P{static{Ls(this,"Table_keyContext")}constructor(t,e){super(t,e)}id_table_or_type(){return this.getRuleContext(0,wE)}VIEW(){return this.getToken(er.VIEW,0)}view_name(){return this.getRuleContext(0,ME)}get ruleIndex(){return er.RULE_table_key}accept(t){return t.visitTable_key?t.visitTable_key(this):t.visitChildren(this)}},zh=class extends P{static{Ls(this,"Table_argContext")}constructor(t,e){super(t,e)}named_expr(){return this.getRuleContext(0,ui)}COMMAT(){return this.getToken(er.COMMAT,0)}VIEW(){return this.getToken(er.VIEW,0)}view_name(){return this.getRuleContext(0,ME)}get ruleIndex(){return er.RULE_table_arg}accept(t){return t.visitTable_arg?t.visitTable_arg(this):t.visitChildren(this)}},Zh=class extends P{static{Ls(this,"Table_hintsContext")}constructor(t,e){super(t,e)}WITH(){return this.getToken(er.WITH,0)}table_hint(t){return void 0===t?this.getRuleContexts($h):this.getRuleContext(t,$h)}LPAREN(){return this.getToken(er.LPAREN,0)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_table_hints}accept(t){return t.visitTable_hints?t.visitTable_hints(this):t.visitChildren(this)}},$h=class extends P{static{Ls(this,"Table_hintContext")}constructor(t,e){super(t,e)}an_id_hint(){return this.getRuleContext(0,fE)}EQUALS(){return this.getToken(er.EQUALS,0)}type_name_tag(t){return void 0===t?this.getRuleContexts(Ui):this.getRuleContext(t,Ui)}LPAREN(){return this.getToken(er.LPAREN,0)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}type_name_or_bind(){return this.getRuleContext(0,Ji)}SCHEMA(){return this.getToken(er.SCHEMA,0)}COLUMNS(){return this.getToken(er.COLUMNS,0)}struct_arg_positional(t){return void 0===t?this.getRuleContexts(Pi):this.getRuleContext(t,Pi)}get ruleIndex(){return er.RULE_table_hint}accept(t){return t.visitTable_hint?t.visitTable_hint(this):t.visitChildren(this)}},to=class extends P{static{Ls(this,"Object_refContext")}constructor(t,e){super(t,e)}id_or_at(){return this.getRuleContext(0,HE)}cluster_expr(){return this.getRuleContext(0,yE)}DOT(){return this.getToken(er.DOT,0)}get ruleIndex(){return er.RULE_object_ref}accept(t){return t.visitObject_ref?t.visitObject_ref(this):t.visitChildren(this)}},eo=class extends P{static{Ls(this,"Simple_table_ref_coreContext")}constructor(t,e){super(t,e)}object_ref(){return this.getRuleContext(0,to)}bind_parameter(){return this.getRuleContext(0,Ci)}COMMAT(){return this.getToken(er.COMMAT,0)}get ruleIndex(){return er.RULE_simple_table_ref_core}accept(t){return t.visitSimple_table_ref_core?t.visitSimple_table_ref_core(this):t.visitChildren(this)}},so=class extends P{static{Ls(this,"Simple_table_refContext")}constructor(t,e){super(t,e)}simple_table_ref_core(){return this.getRuleContext(0,eo)}table_hints(){return this.getRuleContext(0,Zh)}get ruleIndex(){return er.RULE_simple_table_ref}accept(t){return t.visitSimple_table_ref?t.visitSimple_table_ref(this):t.visitChildren(this)}},ro=class extends P{static{Ls(this,"Into_simple_table_refContext")}constructor(t,e){super(t,e)}simple_table_ref(){return this.getRuleContext(0,so)}ERASE(){return this.getToken(er.ERASE,0)}BY(){return this.getToken(er.BY,0)}pure_column_list(){return this.getRuleContext(0,ai)}get ruleIndex(){return er.RULE_into_simple_table_ref}accept(t){return t.visitInto_simple_table_ref?t.visitInto_simple_table_ref(this):t.visitChildren(this)}},io=class extends P{static{Ls(this,"Delete_stmtContext")}constructor(t,e){super(t,e)}DELETE(){return this.getToken(er.DELETE,0)}FROM(){return this.getToken(er.FROM,0)}simple_table_ref(){return this.getRuleContext(0,so)}where_expr(){return this.getRuleContext(0,al)}ON(){return this.getToken(er.ON,0)}into_values_source(){return this.getRuleContext(0,gn)}returning_columns_list(){return this.getRuleContext(0,In)}get ruleIndex(){return er.RULE_delete_stmt}accept(t){return t.visitDelete_stmt?t.visitDelete_stmt(this):t.visitChildren(this)}},ao=class extends P{static{Ls(this,"Update_stmtContext")}constructor(t,e){super(t,e)}UPDATE(){return this.getToken(er.UPDATE,0)}simple_table_ref(){return this.getRuleContext(0,so)}SET(){return this.getToken(er.SET,0)}set_clause_choice(){return this.getRuleContext(0,no)}ON(){return this.getToken(er.ON,0)}into_values_source(){return this.getRuleContext(0,gn)}returning_columns_list(){return this.getRuleContext(0,In)}where_expr(){return this.getRuleContext(0,al)}get ruleIndex(){return er.RULE_update_stmt}accept(t){return t.visitUpdate_stmt?t.visitUpdate_stmt(this):t.visitChildren(this)}},no=class extends P{static{Ls(this,"Set_clause_choiceContext")}constructor(t,e){super(t,e)}set_clause_list(){return this.getRuleContext(0,co)}multiple_column_assignment(){return this.getRuleContext(0,Eo)}get ruleIndex(){return er.RULE_set_clause_choice}accept(t){return t.visitSet_clause_choice?t.visitSet_clause_choice(this):t.visitChildren(this)}},co=class extends P{static{Ls(this,"Set_clause_listContext")}constructor(t,e){super(t,e)}set_clause(t){return void 0===t?this.getRuleContexts(ho):this.getRuleContext(t,ho)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_set_clause_list}accept(t){return t.visitSet_clause_list?t.visitSet_clause_list(this):t.visitChildren(this)}},ho=class extends P{static{Ls(this,"Set_clauseContext")}constructor(t,e){super(t,e)}set_target(){return this.getRuleContext(0,oo)}EQUALS(){return this.getToken(er.EQUALS,0)}expr(){return this.getRuleContext(0,or)}get ruleIndex(){return er.RULE_set_clause}accept(t){return t.visitSet_clause?t.visitSet_clause(this):t.visitChildren(this)}},oo=class extends P{static{Ls(this,"Set_targetContext")}constructor(t,e){super(t,e)}column_name(){return this.getRuleContext(0,hi)}get ruleIndex(){return er.RULE_set_target}accept(t){return t.visitSet_target?t.visitSet_target(this):t.visitChildren(this)}},Eo=class extends P{static{Ls(this,"Multiple_column_assignmentContext")}constructor(t,e){super(t,e)}set_target_list(){return this.getRuleContext(0,lo)}EQUALS(){return this.getToken(er.EQUALS,0)}LPAREN(){return this.getToken(er.LPAREN,0)}simple_values_source(){return this.getRuleContext(0,Pn)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_multiple_column_assignment}accept(t){return t.visitMultiple_column_assignment?t.visitMultiple_column_assignment(this):t.visitChildren(this)}},lo=class extends P{static{Ls(this,"Set_target_listContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(er.LPAREN,0)}set_target(t){return void 0===t?this.getRuleContexts(oo):this.getRuleContext(t,oo)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_set_target_list}accept(t){return t.visitSet_target_list?t.visitSet_target_list(this):t.visitChildren(this)}},uo=class extends P{static{Ls(this,"Create_topic_stmtContext")}constructor(t,e){super(t,e)}CREATE(){return this.getToken(er.CREATE,0)}TOPIC(){return this.getToken(er.TOPIC,0)}topic_ref(){return this.getRuleContext(0,bo)}IF(){return this.getToken(er.IF,0)}NOT(){return this.getToken(er.NOT,0)}EXISTS(){return this.getToken(er.EXISTS,0)}create_topic_entries(){return this.getRuleContext(0,Ro)}with_topic_settings(){return this.getRuleContext(0,To)}get ruleIndex(){return er.RULE_create_topic_stmt}accept(t){return t.visitCreate_topic_stmt?t.visitCreate_topic_stmt(this):t.visitChildren(this)}},Ro=class extends P{static{Ls(this,"Create_topic_entriesContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(er.LPAREN,0)}create_topic_entry(t){return void 0===t?this.getRuleContexts(_o):this.getRuleContext(t,_o)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_create_topic_entries}accept(t){return t.visitCreate_topic_entries?t.visitCreate_topic_entries(this):t.visitChildren(this)}},_o=class extends P{static{Ls(this,"Create_topic_entryContext")}constructor(t,e){super(t,e)}topic_create_consumer_entry(){return this.getRuleContext(0,Co)}get ruleIndex(){return er.RULE_create_topic_entry}accept(t){return t.visitCreate_topic_entry?t.visitCreate_topic_entry(this):t.visitChildren(this)}},To=class extends P{static{Ls(this,"With_topic_settingsContext")}constructor(t,e){super(t,e)}WITH(){return this.getToken(er.WITH,0)}LPAREN(){return this.getToken(er.LPAREN,0)}topic_settings(){return this.getRuleContext(0,fo)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_with_topic_settings}accept(t){return t.visitWith_topic_settings?t.visitWith_topic_settings(this):t.visitChildren(this)}},Ao=class extends P{static{Ls(this,"Alter_topic_stmtContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}TOPIC(){return this.getToken(er.TOPIC,0)}topic_ref(){return this.getRuleContext(0,bo)}alter_topic_action(t){return void 0===t?this.getRuleContexts(So):this.getRuleContext(t,So)}IF(){return this.getToken(er.IF,0)}EXISTS(){return this.getToken(er.EXISTS,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_alter_topic_stmt}accept(t){return t.visitAlter_topic_stmt?t.visitAlter_topic_stmt(this):t.visitChildren(this)}},So=class extends P{static{Ls(this,"Alter_topic_actionContext")}constructor(t,e){super(t,e)}alter_topic_add_consumer(){return this.getRuleContext(0,Lo)}alter_topic_alter_consumer(){return this.getRuleContext(0,No)}alter_topic_drop_consumer(){return this.getRuleContext(0,Oo)}alter_topic_set_settings(){return this.getRuleContext(0,mo)}alter_topic_reset_settings(){return this.getRuleContext(0,xo)}get ruleIndex(){return er.RULE_alter_topic_action}accept(t){return t.visitAlter_topic_action?t.visitAlter_topic_action(this):t.visitChildren(this)}},Lo=class extends P{static{Ls(this,"Alter_topic_add_consumerContext")}constructor(t,e){super(t,e)}ADD(){return this.getToken(er.ADD,0)}topic_create_consumer_entry(){return this.getRuleContext(0,Co)}get ruleIndex(){return er.RULE_alter_topic_add_consumer}accept(t){return t.visitAlter_topic_add_consumer?t.visitAlter_topic_add_consumer(this):t.visitChildren(this)}},Co=class extends P{static{Ls(this,"Topic_create_consumer_entryContext")}constructor(t,e){super(t,e)}CONSUMER(){return this.getToken(er.CONSUMER,0)}an_id(){return this.getRuleContext(0,NE)}topic_consumer_with_settings(){return this.getRuleContext(0,Mo)}get ruleIndex(){return er.RULE_topic_create_consumer_entry}accept(t){return t.visitTopic_create_consumer_entry?t.visitTopic_create_consumer_entry(this):t.visitChildren(this)}},No=class extends P{static{Ls(this,"Alter_topic_alter_consumerContext")}constructor(t,e){super(t,e)}ALTER(){return this.getToken(er.ALTER,0)}CONSUMER(){return this.getToken(er.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,Ho)}alter_topic_alter_consumer_entry(){return this.getRuleContext(0,Io)}get ruleIndex(){return er.RULE_alter_topic_alter_consumer}accept(t){return t.visitAlter_topic_alter_consumer?t.visitAlter_topic_alter_consumer(this):t.visitChildren(this)}},Io=class extends P{static{Ls(this,"Alter_topic_alter_consumer_entryContext")}constructor(t,e){super(t,e)}topic_alter_consumer_set(){return this.getRuleContext(0,po)}topic_alter_consumer_reset(){return this.getRuleContext(0,go)}get ruleIndex(){return er.RULE_alter_topic_alter_consumer_entry}accept(t){return t.visitAlter_topic_alter_consumer_entry?t.visitAlter_topic_alter_consumer_entry(this):t.visitChildren(this)}},Oo=class extends P{static{Ls(this,"Alter_topic_drop_consumerContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(er.DROP,0)}CONSUMER(){return this.getToken(er.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,Ho)}get ruleIndex(){return er.RULE_alter_topic_drop_consumer}accept(t){return t.visitAlter_topic_drop_consumer?t.visitAlter_topic_drop_consumer(this):t.visitChildren(this)}},po=class extends P{static{Ls(this,"Topic_alter_consumer_setContext")}constructor(t,e){super(t,e)}SET(){return this.getToken(er.SET,0)}LPAREN(){return this.getToken(er.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,Do)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_topic_alter_consumer_set}accept(t){return t.visitTopic_alter_consumer_set?t.visitTopic_alter_consumer_set(this):t.visitChildren(this)}},go=class extends P{static{Ls(this,"Topic_alter_consumer_resetContext")}constructor(t,e){super(t,e)}RESET(){return this.getToken(er.RESET,0)}LPAREN(){return this.getToken(er.LPAREN,0)}an_id(t){return void 0===t?this.getRuleContexts(NE):this.getRuleContext(t,NE)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_topic_alter_consumer_reset}accept(t){return t.visitTopic_alter_consumer_reset?t.visitTopic_alter_consumer_reset(this):t.visitChildren(this)}},mo=class extends P{static{Ls(this,"Alter_topic_set_settingsContext")}constructor(t,e){super(t,e)}SET(){return this.getToken(er.SET,0)}LPAREN(){return this.getToken(er.LPAREN,0)}topic_settings(){return this.getRuleContext(0,fo)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_alter_topic_set_settings}accept(t){return t.visitAlter_topic_set_settings?t.visitAlter_topic_set_settings(this):t.visitChildren(this)}},xo=class extends P{static{Ls(this,"Alter_topic_reset_settingsContext")}constructor(t,e){super(t,e)}RESET(){return this.getToken(er.RESET,0)}LPAREN(){return this.getToken(er.LPAREN,0)}an_id(){return this.getRuleContext(0,NE)}RPAREN(){return this.getToken(er.RPAREN,0)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}an_id_pure(t){return void 0===t?this.getRuleContexts(PE):this.getRuleContext(t,PE)}get ruleIndex(){return er.RULE_alter_topic_reset_settings}accept(t){return t.visitAlter_topic_reset_settings?t.visitAlter_topic_reset_settings(this):t.visitChildren(this)}},Uo=class extends P{static{Ls(this,"Drop_topic_stmtContext")}constructor(t,e){super(t,e)}DROP(){return this.getToken(er.DROP,0)}TOPIC(){return this.getToken(er.TOPIC,0)}topic_ref(){return this.getRuleContext(0,bo)}IF(){return this.getToken(er.IF,0)}EXISTS(){return this.getToken(er.EXISTS,0)}get ruleIndex(){return er.RULE_drop_topic_stmt}accept(t){return t.visitDrop_topic_stmt?t.visitDrop_topic_stmt(this):t.visitChildren(this)}},fo=class extends P{static{Ls(this,"Topic_settingsContext")}constructor(t,e){super(t,e)}topic_settings_entry(t){return void 0===t?this.getRuleContexts(Po):this.getRuleContext(t,Po)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_topic_settings}accept(t){return t.visitTopic_settings?t.visitTopic_settings(this):t.visitChildren(this)}},Po=class extends P{static{Ls(this,"Topic_settings_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}EQUALS(){return this.getToken(er.EQUALS,0)}topic_setting_value(){return this.getRuleContext(0,ko)}get ruleIndex(){return er.RULE_topic_settings_entry}accept(t){return t.visitTopic_settings_entry?t.visitTopic_settings_entry(this):t.visitChildren(this)}},ko=class extends P{static{Ls(this,"Topic_setting_valueContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,or)}get ruleIndex(){return er.RULE_topic_setting_value}accept(t){return t.visitTopic_setting_value?t.visitTopic_setting_value(this):t.visitChildren(this)}},Mo=class extends P{static{Ls(this,"Topic_consumer_with_settingsContext")}constructor(t,e){super(t,e)}WITH(){return this.getToken(er.WITH,0)}LPAREN(){return this.getToken(er.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,Do)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_topic_consumer_with_settings}accept(t){return t.visitTopic_consumer_with_settings?t.visitTopic_consumer_with_settings(this):t.visitChildren(this)}},Do=class extends P{static{Ls(this,"Topic_consumer_settingsContext")}constructor(t,e){super(t,e)}topic_consumer_settings_entry(t){return void 0===t?this.getRuleContexts(yo):this.getRuleContext(t,yo)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_topic_consumer_settings}accept(t){return t.visitTopic_consumer_settings?t.visitTopic_consumer_settings(this):t.visitChildren(this)}},yo=class extends P{static{Ls(this,"Topic_consumer_settings_entryContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}EQUALS(){return this.getToken(er.EQUALS,0)}topic_consumer_setting_value(){return this.getRuleContext(0,vo)}get ruleIndex(){return er.RULE_topic_consumer_settings_entry}accept(t){return t.visitTopic_consumer_settings_entry?t.visitTopic_consumer_settings_entry(this):t.visitChildren(this)}},vo=class extends P{static{Ls(this,"Topic_consumer_setting_valueContext")}constructor(t,e){super(t,e)}expr(){return this.getRuleContext(0,or)}get ruleIndex(){return er.RULE_topic_consumer_setting_value}accept(t){return t.visitTopic_consumer_setting_value?t.visitTopic_consumer_setting_value(this):t.visitChildren(this)}},bo=class extends P{static{Ls(this,"Topic_refContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}cluster_expr(){return this.getRuleContext(0,yE)}DOT(){return this.getToken(er.DOT,0)}get ruleIndex(){return er.RULE_topic_ref}accept(t){return t.visitTopic_ref?t.visitTopic_ref(this):t.visitChildren(this)}},Ho=class extends P{static{Ls(this,"Topic_consumer_refContext")}constructor(t,e){super(t,e)}an_id_pure(){return this.getRuleContext(0,PE)}get ruleIndex(){return er.RULE_topic_consumer_ref}accept(t){return t.visitTopic_consumer_ref?t.visitTopic_consumer_ref(this):t.visitChildren(this)}},wo=class extends P{static{Ls(this,"Null_treatmentContext")}constructor(t,e){super(t,e)}RESPECT(){return this.getToken(er.RESPECT,0)}NULLS(){return this.getToken(er.NULLS,0)}IGNORE(){return this.getToken(er.IGNORE,0)}get ruleIndex(){return er.RULE_null_treatment}accept(t){return t.visitNull_treatment?t.visitNull_treatment(this):t.visitChildren(this)}},Fo=class extends P{static{Ls(this,"Filter_clauseContext")}constructor(t,e){super(t,e)}FILTER(){return this.getToken(er.FILTER,0)}LPAREN(){return this.getToken(er.LPAREN,0)}where_expr(){return this.getRuleContext(0,al)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_filter_clause}accept(t){return t.visitFilter_clause?t.visitFilter_clause(this):t.visitChildren(this)}},Go=class extends P{static{Ls(this,"Window_name_or_specificationContext")}constructor(t,e){super(t,e)}window_name(){return this.getRuleContext(0,Bo)}window_specification(){return this.getRuleContext(0,Ko)}get ruleIndex(){return er.RULE_window_name_or_specification}accept(t){return t.visitWindow_name_or_specification?t.visitWindow_name_or_specification(this):t.visitChildren(this)}},Bo=class extends P{static{Ls(this,"Window_nameContext")}constructor(t,e){super(t,e)}an_id_window(){return this.getRuleContext(0,mE)}get ruleIndex(){return er.RULE_window_name}accept(t){return t.visitWindow_name?t.visitWindow_name(this):t.visitChildren(this)}},Yo=class extends P{static{Ls(this,"Window_clauseContext")}constructor(t,e){super(t,e)}WINDOW(){return this.getToken(er.WINDOW,0)}window_definition_list(){return this.getRuleContext(0,Vo)}get ruleIndex(){return er.RULE_window_clause}accept(t){return t.visitWindow_clause?t.visitWindow_clause(this):t.visitChildren(this)}},Vo=class extends P{static{Ls(this,"Window_definition_listContext")}constructor(t,e){super(t,e)}window_definition(t){return void 0===t?this.getRuleContexts(Wo):this.getRuleContext(t,Wo)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_window_definition_list}accept(t){return t.visitWindow_definition_list?t.visitWindow_definition_list(this):t.visitChildren(this)}},Wo=class extends P{static{Ls(this,"Window_definitionContext")}constructor(t,e){super(t,e)}new_window_name(){return this.getRuleContext(0,Xo)}AS(){return this.getToken(er.AS,0)}window_specification(){return this.getRuleContext(0,Ko)}get ruleIndex(){return er.RULE_window_definition}accept(t){return t.visitWindow_definition?t.visitWindow_definition(this):t.visitChildren(this)}},Xo=class extends P{static{Ls(this,"New_window_nameContext")}constructor(t,e){super(t,e)}window_name(){return this.getRuleContext(0,Bo)}get ruleIndex(){return er.RULE_new_window_name}accept(t){return t.visitNew_window_name?t.visitNew_window_name(this):t.visitChildren(this)}},Ko=class extends P{static{Ls(this,"Window_specificationContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(er.LPAREN,0)}window_specification_details(){return this.getRuleContext(0,Qo)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_window_specification}accept(t){return t.visitWindow_specification?t.visitWindow_specification(this):t.visitChildren(this)}},Qo=class extends P{static{Ls(this,"Window_specification_detailsContext")}constructor(t,e){super(t,e)}existing_window_name(){return this.getRuleContext(0,qo)}window_partition_clause(){return this.getRuleContext(0,jo)}window_order_clause(){return this.getRuleContext(0,Jo)}window_frame_clause(){return this.getRuleContext(0,zo)}get ruleIndex(){return er.RULE_window_specification_details}accept(t){return t.visitWindow_specification_details?t.visitWindow_specification_details(this):t.visitChildren(this)}},qo=class extends P{static{Ls(this,"Existing_window_nameContext")}constructor(t,e){super(t,e)}window_name(){return this.getRuleContext(0,Bo)}get ruleIndex(){return er.RULE_existing_window_name}accept(t){return t.visitExisting_window_name?t.visitExisting_window_name(this):t.visitChildren(this)}},jo=class extends P{static{Ls(this,"Window_partition_clauseContext")}constructor(t,e){super(t,e)}PARTITION(){return this.getToken(er.PARTITION,0)}BY(){return this.getToken(er.BY,0)}named_expr_list(){return this.getRuleContext(0,Ri)}COMPACT(){return this.getToken(er.COMPACT,0)}get ruleIndex(){return er.RULE_window_partition_clause}accept(t){return t.visitWindow_partition_clause?t.visitWindow_partition_clause(this):t.visitChildren(this)}},Jo=class extends P{static{Ls(this,"Window_order_clauseContext")}constructor(t,e){super(t,e)}order_by_clause(){return this.getRuleContext(0,za)}get ruleIndex(){return er.RULE_window_order_clause}accept(t){return t.visitWindow_order_clause?t.visitWindow_order_clause(this):t.visitChildren(this)}},zo=class extends P{static{Ls(this,"Window_frame_clauseContext")}constructor(t,e){super(t,e)}window_frame_units(){return this.getRuleContext(0,Zo)}window_frame_extent(){return this.getRuleContext(0,$o)}window_frame_exclusion(){return this.getRuleContext(0,sE)}get ruleIndex(){return er.RULE_window_frame_clause}accept(t){return t.visitWindow_frame_clause?t.visitWindow_frame_clause(this):t.visitChildren(this)}},Zo=class extends P{static{Ls(this,"Window_frame_unitsContext")}constructor(t,e){super(t,e)}ROWS(){return this.getToken(er.ROWS,0)}RANGE(){return this.getToken(er.RANGE,0)}GROUPS(){return this.getToken(er.GROUPS,0)}get ruleIndex(){return er.RULE_window_frame_units}accept(t){return t.visitWindow_frame_units?t.visitWindow_frame_units(this):t.visitChildren(this)}},$o=class extends P{static{Ls(this,"Window_frame_extentContext")}constructor(t,e){super(t,e)}window_frame_bound(){return this.getRuleContext(0,eE)}window_frame_between(){return this.getRuleContext(0,tE)}get ruleIndex(){return er.RULE_window_frame_extent}accept(t){return t.visitWindow_frame_extent?t.visitWindow_frame_extent(this):t.visitChildren(this)}},tE=class extends P{static{Ls(this,"Window_frame_betweenContext")}constructor(t,e){super(t,e)}BETWEEN(){return this.getToken(er.BETWEEN,0)}window_frame_bound(t){return void 0===t?this.getRuleContexts(eE):this.getRuleContext(t,eE)}AND(){return this.getToken(er.AND,0)}get ruleIndex(){return er.RULE_window_frame_between}accept(t){return t.visitWindow_frame_between?t.visitWindow_frame_between(this):t.visitChildren(this)}},eE=class extends P{static{Ls(this,"Window_frame_boundContext")}constructor(t,e){super(t,e)}CURRENT(){return this.getToken(er.CURRENT,0)}ROW(){return this.getToken(er.ROW,0)}PRECEDING(){return this.getToken(er.PRECEDING,0)}FOLLOWING(){return this.getToken(er.FOLLOWING,0)}expr(){return this.getRuleContext(0,or)}UNBOUNDED(){return this.getToken(er.UNBOUNDED,0)}get ruleIndex(){return er.RULE_window_frame_bound}accept(t){return t.visitWindow_frame_bound?t.visitWindow_frame_bound(this):t.visitChildren(this)}},sE=class extends P{static{Ls(this,"Window_frame_exclusionContext")}constructor(t,e){super(t,e)}EXCLUDE(){return this.getToken(er.EXCLUDE,0)}CURRENT(){return this.getToken(er.CURRENT,0)}ROW(){return this.getToken(er.ROW,0)}GROUP(){return this.getToken(er.GROUP,0)}TIES(){return this.getToken(er.TIES,0)}NO(){return this.getToken(er.NO,0)}OTHERS(){return this.getToken(er.OTHERS,0)}get ruleIndex(){return er.RULE_window_frame_exclusion}accept(t){return t.visitWindow_frame_exclusion?t.visitWindow_frame_exclusion(this):t.visitChildren(this)}},rE=class extends P{static{Ls(this,"Use_stmtContext")}constructor(t,e){super(t,e)}USE(){return this.getToken(er.USE,0)}cluster_expr(){return this.getRuleContext(0,yE)}get ruleIndex(){return er.RULE_use_stmt}accept(t){return t.visitUse_stmt?t.visitUse_stmt(this):t.visitChildren(this)}},iE=class extends P{static{Ls(this,"Subselect_stmtContext")}constructor(t,e){super(t,e)}LPAREN(){return this.getToken(er.LPAREN,0)}select_stmt(){return this.getRuleContext(0,Ea)}RPAREN(){return this.getToken(er.RPAREN,0)}select_unparenthesized_stmt(){return this.getRuleContext(0,la)}get ruleIndex(){return er.RULE_subselect_stmt}accept(t){return t.visitSubselect_stmt?t.visitSubselect_stmt(this):t.visitChildren(this)}},aE=class extends P{static{Ls(this,"Named_nodes_stmtContext")}constructor(t,e){super(t,e)}bind_parameter_list(){return this.getRuleContext(0,Ii)}EQUALS(){return this.getToken(er.EQUALS,0)}expr(){return this.getRuleContext(0,or)}subselect_stmt(){return this.getRuleContext(0,iE)}get ruleIndex(){return er.RULE_named_nodes_stmt}accept(t){return t.visitNamed_nodes_stmt?t.visitNamed_nodes_stmt(this):t.visitChildren(this)}},nE=class extends P{static{Ls(this,"Commit_stmtContext")}constructor(t,e){super(t,e)}COMMIT(){return this.getToken(er.COMMIT,0)}get ruleIndex(){return er.RULE_commit_stmt}accept(t){return t.visitCommit_stmt?t.visitCommit_stmt(this):t.visitChildren(this)}},cE=class extends P{static{Ls(this,"Rollback_stmtContext")}constructor(t,e){super(t,e)}ROLLBACK(){return this.getToken(er.ROLLBACK,0)}get ruleIndex(){return er.RULE_rollback_stmt}accept(t){return t.visitRollback_stmt?t.visitRollback_stmt(this):t.visitChildren(this)}},hE=class extends P{static{Ls(this,"Analyze_tableContext")}constructor(t,e){super(t,e)}simple_table_ref(){return this.getRuleContext(0,so)}LPAREN(){return this.getToken(er.LPAREN,0)}column_list(){return this.getRuleContext(0,Ei)}RPAREN(){return this.getToken(er.RPAREN,0)}get ruleIndex(){return er.RULE_analyze_table}accept(t){return t.visitAnalyze_table?t.visitAnalyze_table(this):t.visitChildren(this)}},oE=class extends P{static{Ls(this,"Analyze_table_listContext")}constructor(t,e){super(t,e)}analyze_table(t){return void 0===t?this.getRuleContexts(hE):this.getRuleContext(t,hE)}COMMA(t){return void 0===t?this.getTokens(er.COMMA):this.getToken(er.COMMA,t)}get ruleIndex(){return er.RULE_analyze_table_list}accept(t){return t.visitAnalyze_table_list?t.visitAnalyze_table_list(this):t.visitChildren(this)}},EE=class extends P{static{Ls(this,"Analyze_stmtContext")}constructor(t,e){super(t,e)}ANALYZE(){return this.getToken(er.ANALYZE,0)}analyze_table_list(){return this.getRuleContext(0,oE)}get ruleIndex(){return er.RULE_analyze_stmt}accept(t){return t.visitAnalyze_stmt?t.visitAnalyze_stmt(this):t.visitChildren(this)}},lE=class extends P{static{Ls(this,"IdentifierContext")}constructor(t,e){super(t,e)}ID_PLAIN(){return this.getToken(er.ID_PLAIN,0)}ID_QUOTED(){return this.getToken(er.ID_QUOTED,0)}get ruleIndex(){return er.RULE_identifier}accept(t){return t.visitIdentifier?t.visitIdentifier(this):t.visitChildren(this)}},uE=class extends P{static{Ls(this,"IdContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,lE)}keyword(){return this.getRuleContext(0,GE)}get ruleIndex(){return er.RULE_id}accept(t){return t.visitId?t.visitId(this):t.visitChildren(this)}},RE=class extends P{static{Ls(this,"Id_schemaContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,lE)}keyword_compat(){return this.getRuleContext(0,jE)}keyword_expr_uncompat(){return this.getRuleContext(0,BE)}keyword_select_uncompat(){return this.getRuleContext(0,VE)}keyword_in_uncompat(){return this.getRuleContext(0,XE)}keyword_window_uncompat(){return this.getRuleContext(0,KE)}keyword_hint_uncompat(){return this.getRuleContext(0,QE)}get ruleIndex(){return er.RULE_id_schema}accept(t){return t.visitId_schema?t.visitId_schema(this):t.visitChildren(this)}},_E=class extends P{static{Ls(this,"Id_exprContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,lE)}keyword_compat(){return this.getRuleContext(0,jE)}keyword_alter_uncompat(){return this.getRuleContext(0,WE)}keyword_in_uncompat(){return this.getRuleContext(0,XE)}keyword_window_uncompat(){return this.getRuleContext(0,KE)}keyword_hint_uncompat(){return this.getRuleContext(0,QE)}get ruleIndex(){return er.RULE_id_expr}accept(t){return t.visitId_expr?t.visitId_expr(this):t.visitChildren(this)}},TE=class extends P{static{Ls(this,"Id_expr_inContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,lE)}keyword_compat(){return this.getRuleContext(0,jE)}keyword_alter_uncompat(){return this.getRuleContext(0,WE)}keyword_window_uncompat(){return this.getRuleContext(0,KE)}keyword_hint_uncompat(){return this.getRuleContext(0,QE)}get ruleIndex(){return er.RULE_id_expr_in}accept(t){return t.visitId_expr_in?t.visitId_expr_in(this):t.visitChildren(this)}},AE=class extends P{static{Ls(this,"Id_windowContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,lE)}keyword_compat(){return this.getRuleContext(0,jE)}keyword_expr_uncompat(){return this.getRuleContext(0,BE)}keyword_table_uncompat(){return this.getRuleContext(0,YE)}keyword_select_uncompat(){return this.getRuleContext(0,VE)}keyword_alter_uncompat(){return this.getRuleContext(0,WE)}keyword_in_uncompat(){return this.getRuleContext(0,XE)}keyword_hint_uncompat(){return this.getRuleContext(0,QE)}get ruleIndex(){return er.RULE_id_window}accept(t){return t.visitId_window?t.visitId_window(this):t.visitChildren(this)}},SE=class extends P{static{Ls(this,"Id_tableContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,lE)}keyword_compat(){return this.getRuleContext(0,jE)}keyword_expr_uncompat(){return this.getRuleContext(0,BE)}keyword_select_uncompat(){return this.getRuleContext(0,VE)}keyword_in_uncompat(){return this.getRuleContext(0,XE)}keyword_window_uncompat(){return this.getRuleContext(0,KE)}keyword_hint_uncompat(){return this.getRuleContext(0,QE)}get ruleIndex(){return er.RULE_id_table}accept(t){return t.visitId_table?t.visitId_table(this):t.visitChildren(this)}},dE=class extends P{static{Ls(this,"Id_withoutContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,lE)}keyword_compat(){return this.getRuleContext(0,jE)}keyword_table_uncompat(){return this.getRuleContext(0,YE)}keyword_alter_uncompat(){return this.getRuleContext(0,WE)}keyword_in_uncompat(){return this.getRuleContext(0,XE)}keyword_window_uncompat(){return this.getRuleContext(0,KE)}keyword_hint_uncompat(){return this.getRuleContext(0,QE)}get ruleIndex(){return er.RULE_id_without}accept(t){return t.visitId_without?t.visitId_without(this):t.visitChildren(this)}},LE=class extends P{static{Ls(this,"Id_hintContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,lE)}keyword_compat(){return this.getRuleContext(0,jE)}keyword_expr_uncompat(){return this.getRuleContext(0,BE)}keyword_table_uncompat(){return this.getRuleContext(0,YE)}keyword_select_uncompat(){return this.getRuleContext(0,VE)}keyword_alter_uncompat(){return this.getRuleContext(0,WE)}keyword_in_uncompat(){return this.getRuleContext(0,XE)}keyword_window_uncompat(){return this.getRuleContext(0,KE)}get ruleIndex(){return er.RULE_id_hint}accept(t){return t.visitId_hint?t.visitId_hint(this):t.visitChildren(this)}},CE=class extends P{static{Ls(this,"Id_as_compatContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,lE)}keyword_as_compat(){return this.getRuleContext(0,qE)}get ruleIndex(){return er.RULE_id_as_compat}accept(t){return t.visitId_as_compat?t.visitId_as_compat(this):t.visitChildren(this)}},NE=class extends P{static{Ls(this,"An_idContext")}constructor(t,e){super(t,e)}id(){return this.getRuleContext(0,uE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_an_id}accept(t){return t.visitAn_id?t.visitAn_id(this):t.visitChildren(this)}},IE=class extends P{static{Ls(this,"An_id_or_typeContext")}constructor(t,e){super(t,e)}id_or_type(){return this.getRuleContext(0,vE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_an_id_or_type}accept(t){return t.visitAn_id_or_type?t.visitAn_id_or_type(this):t.visitChildren(this)}},OE=class extends P{static{Ls(this,"An_id_schemaContext")}constructor(t,e){super(t,e)}id_schema(){return this.getRuleContext(0,RE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_an_id_schema}accept(t){return t.visitAn_id_schema?t.visitAn_id_schema(this):t.visitChildren(this)}},pE=class extends P{static{Ls(this,"An_id_exprContext")}constructor(t,e){super(t,e)}id_expr(){return this.getRuleContext(0,_E)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_an_id_expr}accept(t){return t.visitAn_id_expr?t.visitAn_id_expr(this):t.visitChildren(this)}},gE=class extends P{static{Ls(this,"An_id_expr_inContext")}constructor(t,e){super(t,e)}id_expr_in(){return this.getRuleContext(0,TE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_an_id_expr_in}accept(t){return t.visitAn_id_expr_in?t.visitAn_id_expr_in(this):t.visitChildren(this)}},mE=class extends P{static{Ls(this,"An_id_windowContext")}constructor(t,e){super(t,e)}id_window(){return this.getRuleContext(0,AE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_an_id_window}accept(t){return t.visitAn_id_window?t.visitAn_id_window(this):t.visitChildren(this)}},xE=class extends P{static{Ls(this,"An_id_tableContext")}constructor(t,e){super(t,e)}id_table(){return this.getRuleContext(0,SE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_an_id_table}accept(t){return t.visitAn_id_table?t.visitAn_id_table(this):t.visitChildren(this)}},UE=class extends P{static{Ls(this,"An_id_withoutContext")}constructor(t,e){super(t,e)}id_without(){return this.getRuleContext(0,dE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_an_id_without}accept(t){return t.visitAn_id_without?t.visitAn_id_without(this):t.visitChildren(this)}},fE=class extends P{static{Ls(this,"An_id_hintContext")}constructor(t,e){super(t,e)}id_hint(){return this.getRuleContext(0,LE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_an_id_hint}accept(t){return t.visitAn_id_hint?t.visitAn_id_hint(this):t.visitChildren(this)}},PE=class extends P{static{Ls(this,"An_id_pureContext")}constructor(t,e){super(t,e)}identifier(){return this.getRuleContext(0,lE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_an_id_pure}accept(t){return t.visitAn_id_pure?t.visitAn_id_pure(this):t.visitChildren(this)}},kE=class extends P{static{Ls(this,"An_id_as_compatContext")}constructor(t,e){super(t,e)}id_as_compat(){return this.getRuleContext(0,CE)}STRING_VALUE(){return this.getToken(er.STRING_VALUE,0)}get ruleIndex(){return er.RULE_an_id_as_compat}accept(t){return t.visitAn_id_as_compat?t.visitAn_id_as_compat(this):t.visitChildren(this)}},ME=class extends P{static{Ls(this,"View_nameContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}PRIMARY(){return this.getToken(er.PRIMARY,0)}KEY(){return this.getToken(er.KEY,0)}get ruleIndex(){return er.RULE_view_name}accept(t){return t.visitView_name?t.visitView_name(this):t.visitChildren(this)}},DE=class extends P{static{Ls(this,"Opt_id_prefixContext")}constructor(t,e){super(t,e)}an_id(){return this.getRuleContext(0,NE)}DOT(){return this.getToken(er.DOT,0)}get ruleIndex(){return er.RULE_opt_id_prefix}accept(t){return t.visitOpt_id_prefix?t.visitOpt_id_prefix(this):t.visitChildren(this)}},yE=class extends P{static{Ls(this,"Cluster_exprContext")}constructor(t,e){super(t,e)}pure_column_or_named(){return this.getRuleContext(0,ni)}ASTERISK(){return this.getToken(er.ASTERISK,0)}an_id(){return this.getRuleContext(0,NE)}COLON(){return this.getToken(er.COLON,0)}get ruleIndex(){return er.RULE_cluster_expr}accept(t){return t.visitCluster_expr?t.visitCluster_expr(this):t.visitChildren(this)}},vE=class extends P{static{Ls(this,"Id_or_typeContext")}constructor(t,e){super(t,e)}id(){return this.getRuleContext(0,uE)}type_id(){return this.getRuleContext(0,JE)}get ruleIndex(){return er.RULE_id_or_type}accept(t){return t.visitId_or_type?t.visitId_or_type(this):t.visitChildren(this)}},bE=class extends P{static{Ls(this,"Opt_id_prefix_or_typeContext")}constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,IE)}DOT(){return this.getToken(er.DOT,0)}get ruleIndex(){return er.RULE_opt_id_prefix_or_type}accept(t){return t.visitOpt_id_prefix_or_type?t.visitOpt_id_prefix_or_type(this):t.visitChildren(this)}},HE=class extends P{static{Ls(this,"Id_or_atContext")}constructor(t,e){super(t,e)}an_id_or_type(){return this.getRuleContext(0,IE)}COMMAT(){return this.getToken(er.COMMAT,0)}get ruleIndex(){return er.RULE_id_or_at}accept(t){return t.visitId_or_at?t.visitId_or_at(this):t.visitChildren(this)}},wE=class extends P{static{Ls(this,"Id_table_or_typeContext")}constructor(t,e){super(t,e)}an_id_table(){return this.getRuleContext(0,xE)}type_id(){return this.getRuleContext(0,JE)}get ruleIndex(){return er.RULE_id_table_or_type}accept(t){return t.visitId_table_or_type?t.visitId_table_or_type(this):t.visitChildren(this)}},FE=class extends P{static{Ls(this,"Id_table_or_atContext")}constructor(t,e){super(t,e)}id_table_or_type(){return this.getRuleContext(0,wE)}COMMAT(){return this.getToken(er.COMMAT,0)}get ruleIndex(){return er.RULE_id_table_or_at}accept(t){return t.visitId_table_or_at?t.visitId_table_or_at(this):t.visitChildren(this)}},GE=class extends P{static{Ls(this,"KeywordContext")}constructor(t,e){super(t,e)}keyword_compat(){return this.getRuleContext(0,jE)}keyword_expr_uncompat(){return this.getRuleContext(0,BE)}keyword_table_uncompat(){return this.getRuleContext(0,YE)}keyword_select_uncompat(){return this.getRuleContext(0,VE)}keyword_alter_uncompat(){return this.getRuleContext(0,WE)}keyword_in_uncompat(){return this.getRuleContext(0,XE)}keyword_window_uncompat(){return this.getRuleContext(0,KE)}keyword_hint_uncompat(){return this.getRuleContext(0,QE)}get ruleIndex(){return er.RULE_keyword}accept(t){return t.visitKeyword?t.visitKeyword(this):t.visitChildren(this)}},BE=class extends P{static{Ls(this,"Keyword_expr_uncompatContext")}constructor(t,e){super(t,e)}ASYMMETRIC(){return this.getToken(er.ASYMMETRIC,0)}BETWEEN(){return this.getToken(er.BETWEEN,0)}BITCAST(){return this.getToken(er.BITCAST,0)}CASE(){return this.getToken(er.CASE,0)}CAST(){return this.getToken(er.CAST,0)}CUBE(){return this.getToken(er.CUBE,0)}CURRENT_DATE(){return this.getToken(er.CURRENT_DATE,0)}CURRENT_TIME(){return this.getToken(er.CURRENT_TIME,0)}CURRENT_TIMESTAMP(){return this.getToken(er.CURRENT_TIMESTAMP,0)}EMPTY_ACTION(){return this.getToken(er.EMPTY_ACTION,0)}EXISTS(){return this.getToken(er.EXISTS,0)}FROM(){return this.getToken(er.FROM,0)}FULL(){return this.getToken(er.FULL,0)}HOP(){return this.getToken(er.HOP,0)}JSON_EXISTS(){return this.getToken(er.JSON_EXISTS,0)}JSON_VALUE(){return this.getToken(er.JSON_VALUE,0)}JSON_QUERY(){return this.getToken(er.JSON_QUERY,0)}LOCAL(){return this.getToken(er.LOCAL,0)}NOT(){return this.getToken(er.NOT,0)}NULL(){return this.getToken(er.NULL,0)}PROCESS(){return this.getToken(er.PROCESS,0)}REDUCE(){return this.getToken(er.REDUCE,0)}RETURN(){return this.getToken(er.RETURN,0)}RETURNING(){return this.getToken(er.RETURNING,0)}ROLLUP(){return this.getToken(er.ROLLUP,0)}SELECT(){return this.getToken(er.SELECT,0)}SYMMETRIC(){return this.getToken(er.SYMMETRIC,0)}UNBOUNDED(){return this.getToken(er.UNBOUNDED,0)}WHEN(){return this.getToken(er.WHEN,0)}WHERE(){return this.getToken(er.WHERE,0)}get ruleIndex(){return er.RULE_keyword_expr_uncompat}accept(t){return t.visitKeyword_expr_uncompat?t.visitKeyword_expr_uncompat(this):t.visitChildren(this)}},YE=class extends P{static{Ls(this,"Keyword_table_uncompatContext")}constructor(t,e){super(t,e)}ANY(){return this.getToken(er.ANY,0)}ERASE(){return this.getToken(er.ERASE,0)}STREAM(){return this.getToken(er.STREAM,0)}get ruleIndex(){return er.RULE_keyword_table_uncompat}accept(t){return t.visitKeyword_table_uncompat?t.visitKeyword_table_uncompat(this):t.visitChildren(this)}},VE=class extends P{static{Ls(this,"Keyword_select_uncompatContext")}constructor(t,e){super(t,e)}ALL(){return this.getToken(er.ALL,0)}AS(){return this.getToken(er.AS,0)}ASSUME(){return this.getToken(er.ASSUME,0)}DISTINCT(){return this.getToken(er.DISTINCT,0)}EXCEPT(){return this.getToken(er.EXCEPT,0)}HAVING(){return this.getToken(er.HAVING,0)}INTERSECT(){return this.getToken(er.INTERSECT,0)}LIMIT(){return this.getToken(er.LIMIT,0)}UNION(){return this.getToken(er.UNION,0)}WINDOW(){return this.getToken(er.WINDOW,0)}WITHOUT(){return this.getToken(er.WITHOUT,0)}get ruleIndex(){return er.RULE_keyword_select_uncompat}accept(t){return t.visitKeyword_select_uncompat?t.visitKeyword_select_uncompat(this):t.visitChildren(this)}},WE=class extends P{static{Ls(this,"Keyword_alter_uncompatContext")}constructor(t,e){super(t,e)}COLUMN(){return this.getToken(er.COLUMN,0)}get ruleIndex(){return er.RULE_keyword_alter_uncompat}accept(t){return t.visitKeyword_alter_uncompat?t.visitKeyword_alter_uncompat(this):t.visitChildren(this)}},XE=class extends P{static{Ls(this,"Keyword_in_uncompatContext")}constructor(t,e){super(t,e)}COMPACT(){return this.getToken(er.COMPACT,0)}get ruleIndex(){return er.RULE_keyword_in_uncompat}accept(t){return t.visitKeyword_in_uncompat?t.visitKeyword_in_uncompat(this):t.visitChildren(this)}},KE=class extends P{static{Ls(this,"Keyword_window_uncompatContext")}constructor(t,e){super(t,e)}GROUPS(){return this.getToken(er.GROUPS,0)}RANGE(){return this.getToken(er.RANGE,0)}ROWS(){return this.getToken(er.ROWS,0)}get ruleIndex(){return er.RULE_keyword_window_uncompat}accept(t){return t.visitKeyword_window_uncompat?t.visitKeyword_window_uncompat(this):t.visitChildren(this)}},QE=class extends P{static{Ls(this,"Keyword_hint_uncompatContext")}constructor(t,e){super(t,e)}SCHEMA(){return this.getToken(er.SCHEMA,0)}COLUMNS(){return this.getToken(er.COLUMNS,0)}get ruleIndex(){return er.RULE_keyword_hint_uncompat}accept(t){return t.visitKeyword_hint_uncompat?t.visitKeyword_hint_uncompat(this):t.visitChildren(this)}},qE=class extends P{static{Ls(this,"Keyword_as_compatContext")}constructor(t,e){super(t,e)}ABORT(){return this.getToken(er.ABORT,0)}ACTION(){return this.getToken(er.ACTION,0)}ADD(){return this.getToken(er.ADD,0)}AFTER(){return this.getToken(er.AFTER,0)}ALTER(){return this.getToken(er.ALTER,0)}ANALYZE(){return this.getToken(er.ANALYZE,0)}AND(){return this.getToken(er.AND,0)}ANSI(){return this.getToken(er.ANSI,0)}ARRAY(){return this.getToken(er.ARRAY,0)}ASC(){return this.getToken(er.ASC,0)}ASYNC(){return this.getToken(er.ASYNC,0)}AT(){return this.getToken(er.AT,0)}ATTACH(){return this.getToken(er.ATTACH,0)}ATTRIBUTES(){return this.getToken(er.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(er.AUTOINCREMENT,0)}BACKUP(){return this.getToken(er.BACKUP,0)}BEFORE(){return this.getToken(er.BEFORE,0)}BEGIN(){return this.getToken(er.BEGIN,0)}BERNOULLI(){return this.getToken(er.BERNOULLI,0)}BY(){return this.getToken(er.BY,0)}CASCADE(){return this.getToken(er.CASCADE,0)}CHANGEFEED(){return this.getToken(er.CHANGEFEED,0)}CHECK(){return this.getToken(er.CHECK,0)}CLASSIFIER(){return this.getToken(er.CLASSIFIER,0)}COLLECTION(){return this.getToken(er.COLLECTION,0)}COMMIT(){return this.getToken(er.COMMIT,0)}CONDITIONAL(){return this.getToken(er.CONDITIONAL,0)}CONFLICT(){return this.getToken(er.CONFLICT,0)}CONNECT(){return this.getToken(er.CONNECT,0)}CONSTRAINT(){return this.getToken(er.CONSTRAINT,0)}CONSUMER(){return this.getToken(er.CONSUMER,0)}COVER(){return this.getToken(er.COVER,0)}CREATE(){return this.getToken(er.CREATE,0)}CURRENT(){return this.getToken(er.CURRENT,0)}DATA(){return this.getToken(er.DATA,0)}DATABASE(){return this.getToken(er.DATABASE,0)}DECIMAL(){return this.getToken(er.DECIMAL,0)}DECLARE(){return this.getToken(er.DECLARE,0)}DEFAULT(){return this.getToken(er.DEFAULT,0)}DEFERRABLE(){return this.getToken(er.DEFERRABLE,0)}DEFERRED(){return this.getToken(er.DEFERRED,0)}DELETE(){return this.getToken(er.DELETE,0)}DESC(){return this.getToken(er.DESC,0)}DESCRIBE(){return this.getToken(er.DESCRIBE,0)}DETACH(){return this.getToken(er.DETACH,0)}DIRECTORY(){return this.getToken(er.DIRECTORY,0)}DISABLE(){return this.getToken(er.DISABLE,0)}DISCARD(){return this.getToken(er.DISCARD,0)}DROP(){return this.getToken(er.DROP,0)}EACH(){return this.getToken(er.EACH,0)}ELSE(){return this.getToken(er.ELSE,0)}EMPTY(){return this.getToken(er.EMPTY,0)}ENCRYPTED(){return this.getToken(er.ENCRYPTED,0)}END(){return this.getToken(er.END,0)}ERROR(){return this.getToken(er.ERROR,0)}ESCAPE(){return this.getToken(er.ESCAPE,0)}EVALUATE(){return this.getToken(er.EVALUATE,0)}EXCLUDE(){return this.getToken(er.EXCLUDE,0)}EXCLUSIVE(){return this.getToken(er.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(er.EXPLAIN,0)}EXPORT(){return this.getToken(er.EXPORT,0)}EXTERNAL(){return this.getToken(er.EXTERNAL,0)}FAIL(){return this.getToken(er.FAIL,0)}FAMILY(){return this.getToken(er.FAMILY,0)}FILTER(){return this.getToken(er.FILTER,0)}FIRST(){return this.getToken(er.FIRST,0)}FLATTEN(){return this.getToken(er.FLATTEN,0)}FOLLOWING(){return this.getToken(er.FOLLOWING,0)}FOR(){return this.getToken(er.FOR,0)}FOREIGN(){return this.getToken(er.FOREIGN,0)}FUNCTION(){return this.getToken(er.FUNCTION,0)}GLOB(){return this.getToken(er.GLOB,0)}GRANT(){return this.getToken(er.GRANT,0)}GROUP(){return this.getToken(er.GROUP,0)}GROUPING(){return this.getToken(er.GROUPING,0)}HASH(){return this.getToken(er.HASH,0)}IF(){return this.getToken(er.IF,0)}IGNORE(){return this.getToken(er.IGNORE,0)}ILIKE(){return this.getToken(er.ILIKE,0)}IMMEDIATE(){return this.getToken(er.IMMEDIATE,0)}IMPORT(){return this.getToken(er.IMPORT,0)}IN(){return this.getToken(er.IN,0)}INCREMENTAL(){return this.getToken(er.INCREMENTAL,0)}INDEX(){return this.getToken(er.INDEX,0)}INDEXED(){return this.getToken(er.INDEXED,0)}INHERITS(){return this.getToken(er.INHERITS,0)}INITIAL(){return this.getToken(er.INITIAL,0)}INITIALLY(){return this.getToken(er.INITIALLY,0)}INSERT(){return this.getToken(er.INSERT,0)}INSTEAD(){return this.getToken(er.INSTEAD,0)}INTO(){return this.getToken(er.INTO,0)}IS(){return this.getToken(er.IS,0)}LAST(){return this.getToken(er.LAST,0)}LEGACY(){return this.getToken(er.LEGACY,0)}LIKE(){return this.getToken(er.LIKE,0)}MANAGE(){return this.getToken(er.MANAGE,0)}MATCH(){return this.getToken(er.MATCH,0)}MATCHES(){return this.getToken(er.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(er.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(er.MEASURES,0)}MICROSECONDS(){return this.getToken(er.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(er.MILLISECONDS,0)}MODIFY(){return this.getToken(er.MODIFY,0)}NANOSECONDS(){return this.getToken(er.NANOSECONDS,0)}NEXT(){return this.getToken(er.NEXT,0)}NO(){return this.getToken(er.NO,0)}NULLS(){return this.getToken(er.NULLS,0)}OBJECT(){return this.getToken(er.OBJECT,0)}OF(){return this.getToken(er.OF,0)}OFFSET(){return this.getToken(er.OFFSET,0)}OMIT(){return this.getToken(er.OMIT,0)}ONE(){return this.getToken(er.ONE,0)}ONLY(){return this.getToken(er.ONLY,0)}OPTION(){return this.getToken(er.OPTION,0)}OR(){return this.getToken(er.OR,0)}OTHERS(){return this.getToken(er.OTHERS,0)}PARALLEL(){return this.getToken(er.PARALLEL,0)}PARTITION(){return this.getToken(er.PARTITION,0)}PASSING(){return this.getToken(er.PASSING,0)}PASSWORD(){return this.getToken(er.PASSWORD,0)}PAST(){return this.getToken(er.PAST,0)}PATTERN(){return this.getToken(er.PATTERN,0)}PER(){return this.getToken(er.PER,0)}PERMUTE(){return this.getToken(er.PERMUTE,0)}PLAN(){return this.getToken(er.PLAN,0)}POOL(){return this.getToken(er.POOL,0)}PRAGMA(){return this.getToken(er.PRAGMA,0)}PRECEDING(){return this.getToken(er.PRECEDING,0)}PRIMARY(){return this.getToken(er.PRIMARY,0)}PRIVILEGES(){return this.getToken(er.PRIVILEGES,0)}QUEUE(){return this.getToken(er.QUEUE,0)}RAISE(){return this.getToken(er.RAISE,0)}REFERENCES(){return this.getToken(er.REFERENCES,0)}REGEXP(){return this.getToken(er.REGEXP,0)}REINDEX(){return this.getToken(er.REINDEX,0)}RELEASE(){return this.getToken(er.RELEASE,0)}REMOVE(){return this.getToken(er.REMOVE,0)}RENAME(){return this.getToken(er.RENAME,0)}REPLACE(){return this.getToken(er.REPLACE,0)}REPLICATION(){return this.getToken(er.REPLICATION,0)}RESET(){return this.getToken(er.RESET,0)}RESPECT(){return this.getToken(er.RESPECT,0)}RESTORE(){return this.getToken(er.RESTORE,0)}RESTRICT(){return this.getToken(er.RESTRICT,0)}REVERT(){return this.getToken(er.REVERT,0)}REVOKE(){return this.getToken(er.REVOKE,0)}RLIKE(){return this.getToken(er.RLIKE,0)}ROLLBACK(){return this.getToken(er.ROLLBACK,0)}ROW(){return this.getToken(er.ROW,0)}SAVEPOINT(){return this.getToken(er.SAVEPOINT,0)}SECONDS(){return this.getToken(er.SECONDS,0)}SEEK(){return this.getToken(er.SEEK,0)}SETS(){return this.getToken(er.SETS,0)}SHOW(){return this.getToken(er.SHOW,0)}TSKIP(){return this.getToken(er.TSKIP,0)}SOURCE(){return this.getToken(er.SOURCE,0)}SUBQUERY(){return this.getToken(er.SUBQUERY,0)}SUBSET(){return this.getToken(er.SUBSET,0)}SYMBOLS(){return this.getToken(er.SYMBOLS,0)}SYNC(){return this.getToken(er.SYNC,0)}SYSTEM(){return this.getToken(er.SYSTEM,0)}TABLE(){return this.getToken(er.TABLE,0)}TABLES(){return this.getToken(er.TABLES,0)}TABLESAMPLE(){return this.getToken(er.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(er.TABLESTORE,0)}TEMP(){return this.getToken(er.TEMP,0)}TEMPORARY(){return this.getToken(er.TEMPORARY,0)}THEN(){return this.getToken(er.THEN,0)}TIES(){return this.getToken(er.TIES,0)}TO(){return this.getToken(er.TO,0)}TOPIC(){return this.getToken(er.TOPIC,0)}TRANSACTION(){return this.getToken(er.TRANSACTION,0)}TRIGGER(){return this.getToken(er.TRIGGER,0)}TYPE(){return this.getToken(er.TYPE,0)}UNCONDITIONAL(){return this.getToken(er.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(er.UNIQUE,0)}UNKNOWN(){return this.getToken(er.UNKNOWN,0)}UNMATCHED(){return this.getToken(er.UNMATCHED,0)}UPDATE(){return this.getToken(er.UPDATE,0)}UPSERT(){return this.getToken(er.UPSERT,0)}USE(){return this.getToken(er.USE,0)}USER(){return this.getToken(er.USER,0)}VACUUM(){return this.getToken(er.VACUUM,0)}VALUES(){return this.getToken(er.VALUES,0)}VIRTUAL(){return this.getToken(er.VIRTUAL,0)}WRAPPER(){return this.getToken(er.WRAPPER,0)}XOR(){return this.getToken(er.XOR,0)}get ruleIndex(){return er.RULE_keyword_as_compat}accept(t){return t.visitKeyword_as_compat?t.visitKeyword_as_compat(this):t.visitChildren(this)}},jE=class extends P{static{Ls(this,"Keyword_compatContext")}constructor(t,e){super(t,e)}ABORT(){return this.getToken(er.ABORT,0)}ACTION(){return this.getToken(er.ACTION,0)}ADD(){return this.getToken(er.ADD,0)}AFTER(){return this.getToken(er.AFTER,0)}ALTER(){return this.getToken(er.ALTER,0)}ANALYZE(){return this.getToken(er.ANALYZE,0)}AND(){return this.getToken(er.AND,0)}ANSI(){return this.getToken(er.ANSI,0)}ARRAY(){return this.getToken(er.ARRAY,0)}ASC(){return this.getToken(er.ASC,0)}ASYNC(){return this.getToken(er.ASYNC,0)}AT(){return this.getToken(er.AT,0)}ATTACH(){return this.getToken(er.ATTACH,0)}ATTRIBUTES(){return this.getToken(er.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(er.AUTOINCREMENT,0)}BACKUP(){return this.getToken(er.BACKUP,0)}BEFORE(){return this.getToken(er.BEFORE,0)}BEGIN(){return this.getToken(er.BEGIN,0)}BERNOULLI(){return this.getToken(er.BERNOULLI,0)}BY(){return this.getToken(er.BY,0)}CASCADE(){return this.getToken(er.CASCADE,0)}CHANGEFEED(){return this.getToken(er.CHANGEFEED,0)}CHECK(){return this.getToken(er.CHECK,0)}CLASSIFIER(){return this.getToken(er.CLASSIFIER,0)}COLLATE(){return this.getToken(er.COLLATE,0)}COLLECTION(){return this.getToken(er.COLLECTION,0)}COMMIT(){return this.getToken(er.COMMIT,0)}CONDITIONAL(){return this.getToken(er.CONDITIONAL,0)}CONFLICT(){return this.getToken(er.CONFLICT,0)}CONNECT(){return this.getToken(er.CONNECT,0)}CONSTRAINT(){return this.getToken(er.CONSTRAINT,0)}CONSUMER(){return this.getToken(er.CONSUMER,0)}COVER(){return this.getToken(er.COVER,0)}CREATE(){return this.getToken(er.CREATE,0)}CROSS(){return this.getToken(er.CROSS,0)}CURRENT(){return this.getToken(er.CURRENT,0)}DATA(){return this.getToken(er.DATA,0)}DATABASE(){return this.getToken(er.DATABASE,0)}DECIMAL(){return this.getToken(er.DECIMAL,0)}DECLARE(){return this.getToken(er.DECLARE,0)}DEFAULT(){return this.getToken(er.DEFAULT,0)}DEFERRABLE(){return this.getToken(er.DEFERRABLE,0)}DEFERRED(){return this.getToken(er.DEFERRED,0)}DEFINE(){return this.getToken(er.DEFINE,0)}DELETE(){return this.getToken(er.DELETE,0)}DESC(){return this.getToken(er.DESC,0)}DESCRIBE(){return this.getToken(er.DESCRIBE,0)}DETACH(){return this.getToken(er.DETACH,0)}DIRECTORY(){return this.getToken(er.DIRECTORY,0)}DISABLE(){return this.getToken(er.DISABLE,0)}DISCARD(){return this.getToken(er.DISCARD,0)}DO(){return this.getToken(er.DO,0)}DROP(){return this.getToken(er.DROP,0)}EACH(){return this.getToken(er.EACH,0)}ELSE(){return this.getToken(er.ELSE,0)}EMPTY(){return this.getToken(er.EMPTY,0)}ENCRYPTED(){return this.getToken(er.ENCRYPTED,0)}END(){return this.getToken(er.END,0)}ERROR(){return this.getToken(er.ERROR,0)}ESCAPE(){return this.getToken(er.ESCAPE,0)}EVALUATE(){return this.getToken(er.EVALUATE,0)}EXCLUDE(){return this.getToken(er.EXCLUDE,0)}EXCLUSION(){return this.getToken(er.EXCLUSION,0)}EXCLUSIVE(){return this.getToken(er.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(er.EXPLAIN,0)}EXPORT(){return this.getToken(er.EXPORT,0)}EXTERNAL(){return this.getToken(er.EXTERNAL,0)}FAIL(){return this.getToken(er.FAIL,0)}FAMILY(){return this.getToken(er.FAMILY,0)}FILTER(){return this.getToken(er.FILTER,0)}FIRST(){return this.getToken(er.FIRST,0)}FLATTEN(){return this.getToken(er.FLATTEN,0)}FOLLOWING(){return this.getToken(er.FOLLOWING,0)}FOR(){return this.getToken(er.FOR,0)}FOREIGN(){return this.getToken(er.FOREIGN,0)}FUNCTION(){return this.getToken(er.FUNCTION,0)}GLOB(){return this.getToken(er.GLOB,0)}GRANT(){return this.getToken(er.GRANT,0)}GROUP(){return this.getToken(er.GROUP,0)}GROUPING(){return this.getToken(er.GROUPING,0)}HASH(){return this.getToken(er.HASH,0)}IF(){return this.getToken(er.IF,0)}IGNORE(){return this.getToken(er.IGNORE,0)}ILIKE(){return this.getToken(er.ILIKE,0)}IMMEDIATE(){return this.getToken(er.IMMEDIATE,0)}IMPORT(){return this.getToken(er.IMPORT,0)}IN(){return this.getToken(er.IN,0)}INCREMENTAL(){return this.getToken(er.INCREMENTAL,0)}INDEX(){return this.getToken(er.INDEX,0)}INDEXED(){return this.getToken(er.INDEXED,0)}INHERITS(){return this.getToken(er.INHERITS,0)}INITIAL(){return this.getToken(er.INITIAL,0)}INITIALLY(){return this.getToken(er.INITIALLY,0)}INNER(){return this.getToken(er.INNER,0)}INSERT(){return this.getToken(er.INSERT,0)}INSTEAD(){return this.getToken(er.INSTEAD,0)}INTO(){return this.getToken(er.INTO,0)}IS(){return this.getToken(er.IS,0)}ISNULL(){return this.getToken(er.ISNULL,0)}JOIN(){return this.getToken(er.JOIN,0)}KEY(){return this.getToken(er.KEY,0)}LAST(){return this.getToken(er.LAST,0)}LEFT(){return this.getToken(er.LEFT,0)}LEGACY(){return this.getToken(er.LEGACY,0)}LIKE(){return this.getToken(er.LIKE,0)}MANAGE(){return this.getToken(er.MANAGE,0)}MATCH(){return this.getToken(er.MATCH,0)}MATCHES(){return this.getToken(er.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(er.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(er.MEASURES,0)}MICROSECONDS(){return this.getToken(er.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(er.MILLISECONDS,0)}MODIFY(){return this.getToken(er.MODIFY,0)}NANOSECONDS(){return this.getToken(er.NANOSECONDS,0)}NATURAL(){return this.getToken(er.NATURAL,0)}NEXT(){return this.getToken(er.NEXT,0)}NO(){return this.getToken(er.NO,0)}NOTNULL(){return this.getToken(er.NOTNULL,0)}NULLS(){return this.getToken(er.NULLS,0)}OBJECT(){return this.getToken(er.OBJECT,0)}OF(){return this.getToken(er.OF,0)}OFFSET(){return this.getToken(er.OFFSET,0)}OMIT(){return this.getToken(er.OMIT,0)}ON(){return this.getToken(er.ON,0)}ONE(){return this.getToken(er.ONE,0)}ONLY(){return this.getToken(er.ONLY,0)}OPTION(){return this.getToken(er.OPTION,0)}OR(){return this.getToken(er.OR,0)}ORDER(){return this.getToken(er.ORDER,0)}OTHERS(){return this.getToken(er.OTHERS,0)}OUTER(){return this.getToken(er.OUTER,0)}OVER(){return this.getToken(er.OVER,0)}PARALLEL(){return this.getToken(er.PARALLEL,0)}PARTITION(){return this.getToken(er.PARTITION,0)}PASSING(){return this.getToken(er.PASSING,0)}PASSWORD(){return this.getToken(er.PASSWORD,0)}PAST(){return this.getToken(er.PAST,0)}PATTERN(){return this.getToken(er.PATTERN,0)}PER(){return this.getToken(er.PER,0)}PERMUTE(){return this.getToken(er.PERMUTE,0)}PLAN(){return this.getToken(er.PLAN,0)}POOL(){return this.getToken(er.POOL,0)}PRAGMA(){return this.getToken(er.PRAGMA,0)}PRECEDING(){return this.getToken(er.PRECEDING,0)}PRESORT(){return this.getToken(er.PRESORT,0)}PRIMARY(){return this.getToken(er.PRIMARY,0)}PRIVILEGES(){return this.getToken(er.PRIVILEGES,0)}QUEUE(){return this.getToken(er.QUEUE,0)}RAISE(){return this.getToken(er.RAISE,0)}REFERENCES(){return this.getToken(er.REFERENCES,0)}REGEXP(){return this.getToken(er.REGEXP,0)}REINDEX(){return this.getToken(er.REINDEX,0)}RELEASE(){return this.getToken(er.RELEASE,0)}REMOVE(){return this.getToken(er.REMOVE,0)}RENAME(){return this.getToken(er.RENAME,0)}REPLACE(){return this.getToken(er.REPLACE,0)}REPLICATION(){return this.getToken(er.REPLICATION,0)}RESET(){return this.getToken(er.RESET,0)}RESPECT(){return this.getToken(er.RESPECT,0)}RESTORE(){return this.getToken(er.RESTORE,0)}RESTRICT(){return this.getToken(er.RESTRICT,0)}RESULT(){return this.getToken(er.RESULT,0)}REVERT(){return this.getToken(er.REVERT,0)}REVOKE(){return this.getToken(er.REVOKE,0)}RIGHT(){return this.getToken(er.RIGHT,0)}RLIKE(){return this.getToken(er.RLIKE,0)}ROLLBACK(){return this.getToken(er.ROLLBACK,0)}ROW(){return this.getToken(er.ROW,0)}SAMPLE(){return this.getToken(er.SAMPLE,0)}SAVEPOINT(){return this.getToken(er.SAVEPOINT,0)}SECONDS(){return this.getToken(er.SECONDS,0)}SEEK(){return this.getToken(er.SEEK,0)}SEMI(){return this.getToken(er.SEMI,0)}SETS(){return this.getToken(er.SETS,0)}SHOW(){return this.getToken(er.SHOW,0)}TSKIP(){return this.getToken(er.TSKIP,0)}SOURCE(){return this.getToken(er.SOURCE,0)}SUBQUERY(){return this.getToken(er.SUBQUERY,0)}SUBSET(){return this.getToken(er.SUBSET,0)}SYMBOLS(){return this.getToken(er.SYMBOLS,0)}SYNC(){return this.getToken(er.SYNC,0)}SYSTEM(){return this.getToken(er.SYSTEM,0)}TABLE(){return this.getToken(er.TABLE,0)}TABLES(){return this.getToken(er.TABLES,0)}TABLESAMPLE(){return this.getToken(er.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(er.TABLESTORE,0)}TEMP(){return this.getToken(er.TEMP,0)}TEMPORARY(){return this.getToken(er.TEMPORARY,0)}THEN(){return this.getToken(er.THEN,0)}TIES(){return this.getToken(er.TIES,0)}TO(){return this.getToken(er.TO,0)}TOPIC(){return this.getToken(er.TOPIC,0)}TRANSACTION(){return this.getToken(er.TRANSACTION,0)}TRIGGER(){return this.getToken(er.TRIGGER,0)}TYPE(){return this.getToken(er.TYPE,0)}UNCONDITIONAL(){return this.getToken(er.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(er.UNIQUE,0)}UNKNOWN(){return this.getToken(er.UNKNOWN,0)}UNMATCHED(){return this.getToken(er.UNMATCHED,0)}UPDATE(){return this.getToken(er.UPDATE,0)}UPSERT(){return this.getToken(er.UPSERT,0)}USE(){return this.getToken(er.USE,0)}USER(){return this.getToken(er.USER,0)}USING(){return this.getToken(er.USING,0)}VACUUM(){return this.getToken(er.VACUUM,0)}VALUES(){return this.getToken(er.VALUES,0)}VIEW(){return this.getToken(er.VIEW,0)}VIRTUAL(){return this.getToken(er.VIRTUAL,0)}WITH(){return this.getToken(er.WITH,0)}WRAPPER(){return this.getToken(er.WRAPPER,0)}XOR(){return this.getToken(er.XOR,0)}get ruleIndex(){return er.RULE_keyword_compat}accept(t){return t.visitKeyword_compat?t.visitKeyword_compat(this):t.visitChildren(this)}},JE=class extends P{static{Ls(this,"Type_idContext")}constructor(t,e){super(t,e)}OPTIONAL(){return this.getToken(er.OPTIONAL,0)}TUPLE(){return this.getToken(er.TUPLE,0)}STRUCT(){return this.getToken(er.STRUCT,0)}VARIANT(){return this.getToken(er.VARIANT,0)}LIST(){return this.getToken(er.LIST,0)}FLOW(){return this.getToken(er.FLOW,0)}DICT(){return this.getToken(er.DICT,0)}SET(){return this.getToken(er.SET,0)}ENUM(){return this.getToken(er.ENUM,0)}RESOURCE(){return this.getToken(er.RESOURCE,0)}TAGGED(){return this.getToken(er.TAGGED,0)}CALLABLE(){return this.getToken(er.CALLABLE,0)}get ruleIndex(){return er.RULE_type_id}accept(t){return t.visitType_id?t.visitType_id(this):t.visitChildren(this)}},zE=class extends P{static{Ls(this,"Bool_valueContext")}constructor(t,e){super(t,e)}TRUE(){return this.getToken(er.TRUE,0)}FALSE(){return this.getToken(er.FALSE,0)}get ruleIndex(){return er.RULE_bool_value}accept(t){return t.visitBool_value?t.visitBool_value(this):t.visitChildren(this)}},ZE=class extends P{static{Ls(this,"RealContext")}constructor(t,e){super(t,e)}REAL(){return this.getToken(er.REAL,0)}get ruleIndex(){return er.RULE_real}accept(t){return t.visitReal?t.visitReal(this):t.visitChildren(this)}},$E=class extends P{static{Ls(this,"IntegerContext")}constructor(t,e){super(t,e)}DIGITS(){return this.getToken(er.DIGITS,0)}INTEGER_VALUE(){return this.getToken(er.INTEGER_VALUE,0)}get ruleIndex(){return er.RULE_integer}accept(t){return t.visitInteger?t.visitInteger(this):t.visitChildren(this)}},tl=class extends P{static{Ls(this,"Sql_query_yqContext")}constructor(t,e){super(t,e)}sql_stmt_list_yq(){return this.getRuleContext(0,el)}PRAGMA(){return this.getToken(er.PRAGMA,0)}ANSI(){return this.getToken(er.ANSI,0)}DIGITS(){return this.getToken(er.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,ir)}get ruleIndex(){return er.RULE_sql_query_yq}accept(t){return t.visitSql_query_yq?t.visitSql_query_yq(this):t.visitChildren(this)}},el=class extends P{static{Ls(this,"Sql_stmt_list_yqContext")}constructor(t,e){super(t,e)}sql_stmt_yq(t){return void 0===t?this.getRuleContexts(sl):this.getRuleContext(t,sl)}EOF(){return this.getToken(er.EOF,0)}SEMICOLON(t){return void 0===t?this.getTokens(er.SEMICOLON):this.getToken(er.SEMICOLON,t)}get ruleIndex(){return er.RULE_sql_stmt_list_yq}accept(t){return t.visitSql_stmt_list_yq?t.visitSql_stmt_list_yq(this):t.visitChildren(this)}},sl=class extends P{static{Ls(this,"Sql_stmt_yqContext")}constructor(t,e){super(t,e)}sql_stmt_core_yq(){return this.getRuleContext(0,rl)}EXPLAIN(){return this.getToken(er.EXPLAIN,0)}QUERY(){return this.getToken(er.QUERY,0)}PLAN(){return this.getToken(er.PLAN,0)}get ruleIndex(){return er.RULE_sql_stmt_yq}accept(t){return t.visitSql_stmt_yq?t.visitSql_stmt_yq(this):t.visitChildren(this)}},rl=class extends P{static{Ls(this,"Sql_stmt_core_yqContext")}constructor(t,e){super(t,e)}pragma_stmt(){return this.getRuleContext(0,na)}select_stmt(){return this.getRuleContext(0,Ea)}named_nodes_stmt(){return this.getRuleContext(0,aE)}use_stmt(){return this.getRuleContext(0,rE)}into_table_stmt_yq(){return this.getRuleContext(0,pn)}declare_stmt(){return this.getRuleContext(0,$i)}import_stmt(){return this.getRuleContext(0,ea)}export_stmt(){return this.getRuleContext(0,sa)}do_stmt(){return this.getRuleContext(0,aa)}define_action_or_subquery_stmt(){return this.getRuleContext(0,Xh)}if_stmt(){return this.getRuleContext(0,Qh)}for_stmt(){return this.getRuleContext(0,qh)}values_stmt(){return this.getRuleContext(0,mn)}get ruleIndex(){return er.RULE_sql_stmt_core_yq}accept(t){return t.visitSql_stmt_core_yq?t.visitSql_stmt_core_yq(this):t.visitChildren(this)}},il=class extends P{static{Ls(this,"Replication_nameContext")}constructor(t,e){super(t,e)}AS(){return this.getToken(er.AS,0)}object_ref(){return this.getRuleContext(0,to)}get ruleIndex(){return er.RULE_replication_name}accept(t){return t.visitReplication_name?t.visitReplication_name(this):t.visitChildren(this)}},al=class extends P{static{Ls(this,"Where_exprContext")}constructor(t,e){super(t,e)}WHERE(){return this.getToken(er.WHERE,0)}expr(){return this.getRuleContext(0,or)}get ruleIndex(){return er.RULE_where_expr}accept(t){return t.visitWhere_expr?t.visitWhere_expr(this):t.visitChildren(this)}},nl=class extends P{static{Ls(this,"From_stmtContext")}constructor(t,e){super(t,e)}FROM(){return this.getToken(er.FROM,0)}join_source(){return this.getRuleContext(0,En)}get ruleIndex(){return er.RULE_from_stmt}accept(t){return t.visitFrom_stmt?t.visitFrom_stmt(this):t.visitChildren(this)}},cl=class extends P{static{Ls(this,"Alter_table_for_autocompleteContext")}constructor(t,e){super(t,e)}alter_table_stmt(){return this.getRuleContext(0,Lc)}alter_table_store_stmt(){return this.getRuleContext(0,Oc)}get ruleIndex(){return er.RULE_alter_table_for_autocomplete}accept(t){return t.visitAlter_table_for_autocomplete?t.visitAlter_table_for_autocomplete(this):t.visitChildren(this)}},hl=class extends Ae{static{Ls(this,"YQLVisitor")}},ol={SPACE:er.WS,FROM:er.FROM,OPENING_BRACKET:er.LPAREN,CLOSING_BRACKET:er.RPAREN,ALTER:er.ALTER,INSERT:er.INSERT,UPSERT:er.UPSERT,UPDATE:er.UPDATE,JOIN:er.JOIN,SEMICOLON:er.SEMICOLON,SELECT:er.SELECT};function El(t,e,s,r){let i,a=s-1;do{if(i=t.get(a),i?.type===r)return!0;a--}while(i?.type===e.SPACE);return!1}function ll(t){let e=new Map(t.map((t=>[t,!0])));return{anyRuleInList:t=>(Array.isArray(t)?t:[t]).some((t=>e.has(t))),allRulesInList:t=>!t.some((t=>!e.has(t)))}}function ul({anyRuleInList:t,allRulesInList:e}){if(e([er.RULE_select_stmt,er.RULE_id_expr]))return!t([er.RULE_window_specification_details,er.RULE_group_by_clause,er.RULE_table_ref,er.RULE_where_expr])||void 0}function Rl({anyRuleInList:t}){return t([er.RULE_alter_object_stmt,er.RULE_drop_object_stmt])&&t(er.RULE_id_or_at)}function _l({anyRuleInList:t,tokenStream:e,cursorTokenIndex:s}){if(!t(er.RULE_id_or_at))return;let r=t(er.RULE_drop_table_stmt)&&!!Zs(e,ol,s,er.TABLESTORE);return t(er.RULE_alter_table_store_stmt)||r}function Tl({anyRuleInList:t,allRulesInList:e,tokenStream:s,cursorTokenIndex:r}){if(!t([er.RULE_id_or_at,er.RULE_id_table_or_type]))return;let i=t(er.RULE_replication_target)&&!t(er.RULE_replication_name),a=e([er.RULE_simple_table_ref])&&!Zs(s,ol,r,er.CREATE)&&!Zs(s,ol,r,er.EXTERNAL);return t([er.RULE_table_ref,er.RULE_table_inherits])||a||i}function Al({anyRuleInList:t,tokenStream:e,cursorTokenIndex:s}){if(!t(er.RULE_role_name))return;let r=!!Zs(e,ol,s,er.USER),i=!!Zs(e,ol,s,er.RENAME),a=t(er.RULE_revoke_permissions_stmt),n=t(er.RULE_alter_group_stmt)&&!i&&r,c=t(er.RULE_create_group_stmt)&&r,h=t(er.RULE_alter_user_stmt)&&!i;return t(er.RULE_drop_role_stmt)&&r||h||c||n||a}function Sl({anyRuleInList:t,tokenStream:e,cursorTokenIndex:s}){if(!t(er.RULE_role_name))return;let r=!!Zs(e,ol,s,er.GROUP),i=!!Zs(e,ol,s,er.USER),a=!!Zs(e,ol,s,er.RENAME),n=t(er.RULE_drop_role_stmt)&&r,c=t(er.RULE_alter_group_stmt)&&!a&&!i;return t(er.RULE_revoke_permissions_stmt)||c||n}function dl({anyRuleInList:t}){if(t([er.RULE_an_id,er.RULE_topic_ref]))return t([er.RULE_drop_topic_stmt,er.RULE_alter_topic_stmt])}function Ll({allRulesInList:t}){return t([er.RULE_drop_view_stmt,er.RULE_id_or_at])||t([er.RULE_table_ref,er.RULE_id_table_or_type])}function Cl({anyRuleInList:t}){if(t(er.RULE_id_or_at))return t([er.RULE_alter_replication_stmt,er.RULE_drop_replication_stmt])}function Nl({allRulesInList:t,tokenStream:e,cursorTokenIndex:s}){let r=!!Zs(e,ol,s,er.EXTERNAL);return t([er.RULE_id_or_at,er.RULE_drop_table_stmt])&&r||t([er.RULE_table_ref,er.RULE_id_table_or_type])}function Il({anyRuleInList:t}){if(t(er.RULE_id_or_at))return t([er.RULE_drop_external_data_source_stmt,er.RULE_alter_external_data_source_stmt])}function Ol({anyRuleInList:t}){return!!t(er.RULE_an_id)&&t([er.RULE_alter_table_drop_index,er.RULE_alter_table_rename_index_to])}function pl({anyRuleInList:t,tokenStream:e,cursorTokenIndex:s}){if(!t([er.RULE_an_id,er.RULE_id_expr])||t([er.RULE_table_ref,er.RULE_values_stmt,er.RULE_alter_table_add_column,er.RULE_lambda_stmt]))return!1;let r=t(er.RULE_select_kind)&&!Zs(e,ol,s,er.LIMIT),i=t(er.RULE_alter_table_alter_column)&&!Zs(e,ol,s,er.FAMILY);return t([er.RULE_pure_column_list,er.RULE_pure_column_or_named,er.RULE_column_name,er.RULE_without_column_name,er.RULE_alter_table_drop_column,er.RULE_delete_stmt])||i||r}function gl(t){if(!pl(t))return!1;let{tokenStream:e,cursorTokenIndex:s,anyRuleInList:r,allRulesInList:i}=t;return r([er.RULE_into_table_stmt,er.RULE_into_table_stmt_yq])&&r(er.RULE_into_values_source)?El(e,ol,s,er.LPAREN):!!i([er.RULE_select_stmt,er.RULE_result_column])&&El(e,ol,s,er.SELECT)}function ml({anyRuleInList:t,allRulesInList:e}){let s=e([er.RULE_id_expr,er.RULE_select_stmt])&&!t(er.RULE_table_ref);return t(er.RULE_type_name_simple)||s}function xl({allRulesInList:t}){return t([er.RULE_an_id,er.RULE_pragma_stmt])}function Ul({anyRuleInList:t}){if(t([er.RULE_atom_expr,er.RULE_in_atom_expr])&&!t(er.RULE_table_ref))return t(er.RULE_select_stmt)}function fl({allRulesInList:t}){return t([er.RULE_id_expr,er.RULE_table_ref])}function Pl({anyRuleInList:t}){if(t(er.RULE_id_expr)&&!t(er.RULE_table_ref))return t(er.RULE_select_stmt)}function kl({anyRuleInList:t,allRulesInList:e}){if(e([er.RULE_select_stmt,er.RULE_id_expr]))return!t([er.RULE_group_by_clause,er.RULE_table_ref,er.RULE_where_expr])||void 0}function Ml({allRulesInList:t}){return t([er.RULE_an_id_hint,er.RULE_table_hint])}function Dl({allRulesInList:t,anyRuleInList:e}){if(!e([er.RULE_table_setting_value,er.RULE_topic_setting_value,er.RULE_topic_consumer_setting_value])){if(t([er.RULE_with_table_settings,er.RULE_an_id]))return e(er.RULE_create_external_data_source_stmt)?"externalDataSource":e(er.RULE_create_view_stmt)?"view":e(er.RULE_create_table_stmt)?"table":void 0;if(t([er.RULE_with_topic_settings,er.RULE_an_id]))return"topic";if(t([er.RULE_topic_consumer_with_settings,er.RULE_an_id]))return"topicConsumer";if(t([er.RULE_replication_settings,er.RULE_an_id]))return"replication"}}Ls(El,"isFirstPreviousTokenOfType"),Ls(ll,"getRuleCheckHelpers"),Ls(ul,"getWindowFunctionsSuggestions"),Ls(Rl,"getObjectSuggestions"),Ls(_l,"getTablestoreSuggestions"),Ls(Tl,"getTableSuggestions"),Ls(Al,"getUserSuggestions"),Ls(Sl,"getGroupSuggestions"),Ls(dl,"getTopicSuggestions"),Ls(Ll,"getViewSuggestions"),Ls(Cl,"getReplicationSuggestions"),Ls(Nl,"getExternalTableSuggestions"),Ls(Il,"getExternalDatasourceSuggestions"),Ls(Ol,"checkShouldSuggestTableIndexes"),Ls(pl,"checkShouldSuggestColumns"),Ls(gl,"checkShouldSuggestAllColumns"),Ls(ml,"getSimpleTypesSuggestions"),Ls(xl,"getPragmasSuggestions"),Ls(Ul,"getUdfsSuggestions"),Ls(fl,"getTableFunctionsSuggestions"),Ls(Pl,"getFunctionsSuggestions"),Ls(kl,"getAggregateFunctionsSuggestions"),Ls(Ml,"checkShouldSuggestTableHints"),Ls(Dl,"getEntitySettingsSuggestions");var yl=er.ruleNames;function vl(t){let e=t.findIndex((t=>t===er.RULE_sql_stmt_core||t===er.RULE_sql_stmt_core_yq));if(-1===e)return;let s=t[e+1];return s?yl[s]:void 0}Ls(vl,"getParticularStatement");var bl={suggestObject:"object",suggestTableStore:"tableStore",suggestTable:"table",suggestExternalTable:"externalTable",suggestExternalDatasource:"externalDataSource",suggestTopic:"topic",suggestView:"view",suggestReplication:"replication",suggestGroup:"group",suggestUser:"user"};function Hl(t,e,s){let r={...ll(t),cursorTokenIndex:e,tokenStream:s},i=ul(r),a=Rl(r),n=_l(r),c=Tl(r),h=Al(r),o=Sl(r),E=dl(r),l=Ll(r),u=Cl(r),R=Nl(r),_=Il(r),T=Ol(r),A=pl(r),S=gl(r),d=ml(r),L=xl(r),C=Ul(r),N=fl(r),I=Pl(r),O=kl(r),p=Ml(r),g=Dl(r);return{suggestWindowFunctions:i,shouldSuggestTableIndexes:T,shouldSuggestColumns:A,shouldSuggestAllColumns:S,shouldSuggestColumnAliases:A,suggestSimpleTypes:d,suggestPragmas:L,suggestUdfs:C,suggestTableFunctions:N,suggestFunctions:I,suggestAggregateFunctions:O,suggestTableHints:p?vl(t):void 0,suggestEntitySettings:g,suggestObject:a,suggestTableStore:n,suggestTable:c,suggestUser:h,suggestGroup:o,suggestTopic:E,suggestView:l,suggestReplication:u,suggestExternalTable:R,suggestExternalDatasource:_}}function wl(){let t=[],e=er.LBRACE_SQUARE;for(let s=er.EQUALS;s<=e;s++)s!==er.ASTERISK&&t.push(s);return t.push(er.STREAM),t.push(er.STRING_VALUE),t.push(er.REAL),t.push(er.EOF),t.push(er.DIGITS),t.push(er.BLOB),t.push(er.CURRENT_TIME),t.push(er.CURRENT_DATE),t.push(er.CURRENT_TIMESTAMP),t}Ls(Hl,"getGranularSuggestions"),Ls(wl,"getIgnoredTokens");var Fl=new Set(wl()),Gl=new Set([er.RULE_id_or_type,er.RULE_cluster_expr,er.RULE_identifier,er.RULE_id,er.RULE_integer,er.RULE_type_id,er.RULE_keyword,er.RULE_keyword_compat,er.RULE_keyword_as_compat,er.RULE_keyword_expr_uncompat,er.RULE_keyword_table_uncompat,er.RULE_keyword_select_uncompat,er.RULE_keyword_alter_uncompat,er.RULE_keyword_in_uncompat,er.RULE_keyword_window_uncompat,er.RULE_keyword_hint_uncompat,er.RULE_id_schema,er.RULE_id_expr_in,er.RULE_id_window,er.RULE_id_table,er.RULE_id_without,er.RULE_id_hint,er.RULE_id_as_compat]),Bl=class extends hl{constructor(){super(),this.visitSimple_table_ref_core=t=>{try{let e=t.object_ref()?.id_or_at()?.an_id_or_type()?.getText();e&&this.symbolTable.addNewSymbolOfType(Ws,this.scope,e)}catch(e){if(!(e instanceof is))throw e}return this.visitChildren(t)},this.visitAlter_table_store_stmt=t=>{try{this.symbolTable.addNewSymbolOfType(Ws,this.scope,t.object_ref()?.id_or_at()?.getText())}catch(e){if(!(e instanceof is))throw e}return this.visitChildren(t)},this.visitNamed_single_source=t=>{try{this.symbolTable.addNewSymbolOfType(Ws,this.scope,t.single_source().table_ref()?.getText()??"",t.an_id()?.getText()??t.an_id_as_compat()?.getText())}catch(e){if(!(e instanceof is))throw e}return this.visitChildren(t)},this.visitNamed_column=t=>{try{let e=t.an_id()?.getText();e&&this.symbolTable.addNewSymbolOfType(Qs,this.scope,e)}catch(e){if(!(e instanceof is))throw e}return this.visitChildren(t)},this.visitNamed_expr=t=>{try{let e=t.an_id_or_type()?.getText();e&&this.symbolTable.addNewSymbolOfType(Qs,this.scope,e)}catch(e){if(!(e instanceof is))throw e}return this.visitChildren(t)},this.visitResult_column=t=>{try{let e=t.an_id_or_type()?.getText()??t.an_id_as_compat()?.getText();e&&this.symbolTable.addNewSymbolOfType(Qs,this.scope,e)}catch(e){if(!(e instanceof is))throw e}return this.visitChildren(t)},this.symbolTable=new Ss("",{allowDuplicateSymbols:!0}),this.scope=this.symbolTable.addNewSymbolOfType(as,void 0)}static{Ls(this,"YQLSymbolTableVisitor")}};function Yl(t,e,s){let r={};for(let[A,S]of t){if(!gs(e,S))break;switch(A){case er.RULE_id_table:case er.RULE_id_hint:case er.RULE_identifier:case er.RULE_id_or_type:case er.RULE_id:{let t=Hl(S.ruleList,e,s),i=Object.fromEntries(Object.entries(t).filter((([t,e])=>e)));r={...r,...i}}}}let{suggestObject:i,suggestTableStore:a,suggestTable:n,suggestUser:c,suggestGroup:h,suggestTopic:o,suggestView:E,suggestReplication:l,suggestExternalTable:u,suggestExternalDatasource:R,..._}=r,T=Object.entries({suggestObject:i,suggestTableStore:a,suggestTable:n,suggestUser:c,suggestGroup:h,suggestTopic:o,suggestView:E,suggestReplication:l,suggestExternalTable:u,suggestExternalDatasource:R}).filter((([t,e])=>e)).map((([t])=>bl[t]));return{suggestEntity:T.length?T:void 0,..._}}function Vl(t,e){return e?Xl(t,e):t.sql_query()}function Wl(t,e){return e?Xl(t,e):t.sql_query_yq()}function Xl(t,e){switch(e){case"from":return t.from_stmt();case"alter":return t.alter_table_for_autocomplete();case"insert":return t.into_table_stmt();case"update":return t.update_stmt();case"select":return t.select_core()}}function Kl(t){return(e,s,r,i,a,n)=>{let{shouldSuggestColumns:c,shouldSuggestAllColumns:h,shouldSuggestColumnAliases:o,shouldSuggestTableIndexes:E,...l}=Yl(s,i,r),u={...e,...l,suggestTemplates:Ps(n,a)};if(c||o||E){let e=new Bl,{tableContextSuggestion:s,suggestColumnAliases:i}=$s(tr,er,e,ol,t,r,a,n,!0);c&&s&&(u.suggestColumns={tables:s.tables},h&&(u.suggestColumns.all=!0)),E&&s&&(u.suggestTableIndexes={tables:s.tables}),o&&i&&(u.suggestColumnAliases=i)}return u}}Ls(Yl,"processVisitedRules"),Ls(Vl,"getParseTree"),Ls(Wl,"getParseTreeYQ"),Ls(Xl,"getCommonParseTree"),Ls(Kl,"getEnrichAutocompleteResult");var Ql=new sr(null,-1),ql={Lexer:tr,Parser:er,tokenDictionary:ol,ignoredTokens:Fl,rulesToVisit:Gl,getParseTree:Vl,enrichAutocompleteResult:Kl(Vl),context:Ql},jl=new tl(null,-1),Jl={Lexer:tr,Parser:er,tokenDictionary:ol,ignoredTokens:Fl,rulesToVisit:Gl,getParseTree:Wl,enrichAutocompleteResult:Kl(Wl),context:jl};function zl(t,e){return Ys(ql.Lexer,ql.Parser,ql.tokenDictionary.SPACE,ql.ignoredTokens,ql.rulesToVisit,ql.getParseTree,ql.enrichAutocompleteResult,t,e,ql.context)}function Zl(t,e){return Ys(Jl.Lexer,Jl.Parser,Jl.tokenDictionary.SPACE,Jl.ignoredTokens,Jl.rulesToVisit,Jl.getParseTree,Jl.enrichAutocompleteResult,t,e,Jl.context)}Ls((function(t){return Gs(ql.Lexer,ql.Parser,ql.tokenDictionary.SPACE,ql.getParseTree,t)}),"parseYqlQueryWithoutCursor"),Ls(zl,"parseYqlQuery"),Ls((function(t){return Gs(Jl.Lexer,Jl.Parser,Jl.tokenDictionary.SPACE,Jl.getParseTree,t)}),"parseYqQueryWithoutCursor"),Ls(Zl,"parseYqQuery"),Ls((function(t){return zl(...Vs(t))}),"parseYqlQueryWithCursor"),Ls((function(t){return Zl(...Vs(t))}),"parseYqQueryWithCursor"),Ls((function(t){return Fs(tr,tr.symbolicNames,ql.tokenDictionary.SPACE,t)}),"tokenizeYqlQuery"),Ls((function(t){return bs(t,ql.Lexer,ql.Parser,ql.tokenDictionary.SPACE,[ql.tokenDictionary.SPACE],ql.tokenDictionary.SEMICOLON,er.RULE_sql_stmt,ql.getParseTree)}),"extractYqlStatementPositionsFromQuery")}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/118.dcb5482c.chunk.js b/ydb/core/viewer/monitoring/static/js/118.112f7e2f.chunk.js index a3c58d8953b..8eb8364bc6b 100644 --- a/ydb/core/viewer/monitoring/static/js/118.dcb5482c.chunk.js +++ b/ydb/core/viewer/monitoring/static/js/118.112f7e2f.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 118.dcb5482c.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[118],{90118:(e,t,n)=>{n.r(t),n.d(t,{TagAngleInterpolationBracket:()=>B,TagAngleInterpolationDollar:()=>D,TagAutoInterpolationBracket:()=>w,TagAutoInterpolationDollar:()=>v,TagBracketInterpolationBracket:()=>C,TagBracketInterpolationDollar:()=>E});var o,i,_=n(32858),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))u.call(e,i)||i===n||r(e,i,{get:()=>t[i],enumerable:!(o=a(t,i))||o.enumerable});return e},c={};d(c,o=_,"default"),i&&d(i,o,"default");var l=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],k=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],p={close:">",id:"angle",open:"<"},g={close:"\\]",id:"bracket",open:"\\["},A={close:"[>\\]]",id:"auto",open:"[<\\[]"},m={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},b={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function f(e){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${e.open}--`,`--${e.close}`]},autoCloseBefore:"\n\r\t }]),.:;=",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${e.open}#(?:${k.join("|")})([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),end:new RegExp(`${e.open}/#(?:${k.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${e.open}#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),afterText:new RegExp(`^${e.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${e.close}$`),action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${e.open}#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),action:{indentAction:c.languages.IndentAction.Indent}}]}}function F(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:"\n\r\t }]),.:;=",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${k.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${k.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.languages.IndentAction.Indent}}]}}function x(e,t){const n=`_${e.id}_${t.id}`,o=e=>e.replace(/__id__/g,n),i=e=>{const t=e.source.replace(/__id__/g,n);return new RegExp(t,e.flags)};return{unicode:!0,includeLF:!1,start:o("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[o("open__id__")]:new RegExp(e.open),[o("close__id__")]:new RegExp(e.close),[o("iOpen1__id__")]:new RegExp(t.open1),[o("iOpen2__id__")]:new RegExp(t.open2),[o("iClose__id__")]:new RegExp(t.close),[o("startTag__id__")]:i(/(@open__id__)(#)/),[o("endTag__id__")]:i(/(@open__id__)(\/#)/),[o("startOrEndTag__id__")]:i(/(@open__id__)(\/?#)/),[o("closeTag1__id__")]:i(/((?:@blank)*)(@close__id__)/),[o("closeTag2__id__")]:i(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[o("default__id__")]:[{include:o("@directive_token__id__")},{include:o("@interpolation_and_text_token__id__")}],[o("fmExpression__id__.directive")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("fmExpression__id__.interpolation")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@expression_token__id__")},{include:o("@greater_operators_token__id__")}],[o("inParen__id__.plain")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("inParen__id__.gt")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@expression_token__id__")},{include:o("@greater_operators_token__id__")}],[o("noSpaceExpression__id__")]:[{include:o("@no_space_expression_end_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("unifiedCall__id__")]:[{include:o("@unified_call_token__id__")}],[o("singleString__id__")]:[{include:o("@string_single_token__id__")}],[o("doubleString__id__")]:[{include:o("@string_double_token__id__")}],[o("rawSingleString__id__")]:[{include:o("@string_single_raw_token__id__")}],[o("rawDoubleString__id__")]:[{include:o("@string_double_raw_token__id__")}],[o("expressionComment__id__")]:[{include:o("@expression_comment_token__id__")}],[o("noParse__id__")]:[{include:o("@no_parse_token__id__")}],[o("terseComment__id__")]:[{include:o("@terse_comment_token__id__")}],[o("directive_token__id__")]:[[i(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:o("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:o("@fmExpression__id__.directive")}]],[i(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(@open__id__)(@)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:o("@unifiedCall__id__")}]],[i(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(@open__id__)#--/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:{token:"comment",next:o("@terseComment__id__")}],[i(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:o("@fmExpression__id__.directive")}]]],[o("interpolation_and_text_token__id__")]:[[i(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:"bracket"===t.id?"@brackets.interpolation":"delimiter.interpolation"},{token:"bracket"===t.id?"delimiter.interpolation":"@brackets.interpolation",next:o("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[o("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[o("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[o("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[o("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[o("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:o("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:o("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:o("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:o("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:o("@inParen__id__.gt")},"@default":{token:"@brackets",next:o("@inParen__id__.plain")}}},"\\]":{cases:{..."bracket"===t.id?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},..."bracket"===e.id?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:o("@inParen__id__.gt")},"\\)":{cases:{[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:o("@inParen__id__.gt")},"@default":{token:"@brackets",next:o("@inParen__id__.plain")}}},"\\}":{cases:{..."bracket"===t.id?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[o("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:o("@expressionComment__id__")}]],[o("directive_end_token__id__")]:[[/>/,"bracket"===e.id?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[i(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[o("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[o("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:o("@fmExpression__id__.directive")}]],[o("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:o("@fmExpression__id__.directive")}]],[i(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:o("@noSpaceExpression__id__")}]],[o("no_parse_token__id__")]:[[i(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[o("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[o("terse_comment_token__id__")]:[[i(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function $(e){const t=x(p,e),n=x(g,e),o=x(A,e);return{...t,...n,...o,unicode:!0,includeLF:!1,start:`default_auto_${e.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...t.tokenizer,...n.tokenizer,...o.tokenizer}}}var D={conf:f(p),language:x(p,m)},E={conf:f(g),language:x(g,m)},B={conf:f(p),language:x(p,b)},C={conf:f(g),language:x(g,b)},v={conf:F(),language:$(m)},w={conf:F(),language:$(b)}}}]);
\ No newline at end of file +/*! For license information please see 118.112f7e2f.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[118],{90118:(e,t,n)=>{n.r(t),n.d(t,{TagAngleInterpolationBracket:()=>B,TagAngleInterpolationDollar:()=>D,TagAutoInterpolationBracket:()=>w,TagAutoInterpolationDollar:()=>v,TagBracketInterpolationBracket:()=>C,TagBracketInterpolationDollar:()=>E});var o,i,_=n(80781),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))u.call(e,i)||i===n||r(e,i,{get:()=>t[i],enumerable:!(o=a(t,i))||o.enumerable});return e},c={};d(c,o=_,"default"),i&&d(i,o,"default");var l=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],k=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],p={close:">",id:"angle",open:"<"},g={close:"\\]",id:"bracket",open:"\\["},A={close:"[>\\]]",id:"auto",open:"[<\\[]"},m={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},b={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function f(e){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${e.open}--`,`--${e.close}`]},autoCloseBefore:"\n\r\t }]),.:;=",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${e.open}#(?:${k.join("|")})([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),end:new RegExp(`${e.open}/#(?:${k.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${e.open}#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),afterText:new RegExp(`^${e.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${e.close}$`),action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${e.open}#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/${e.close}]*(?!/)${e.close})[^${e.open}]*$`),action:{indentAction:c.languages.IndentAction.Indent}}]}}function F(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:"\n\r\t }]),.:;=",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${k.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${k.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${l.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.languages.IndentAction.Indent}}]}}function x(e,t){const n=`_${e.id}_${t.id}`,o=e=>e.replace(/__id__/g,n),i=e=>{const t=e.source.replace(/__id__/g,n);return new RegExp(t,e.flags)};return{unicode:!0,includeLF:!1,start:o("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[o("open__id__")]:new RegExp(e.open),[o("close__id__")]:new RegExp(e.close),[o("iOpen1__id__")]:new RegExp(t.open1),[o("iOpen2__id__")]:new RegExp(t.open2),[o("iClose__id__")]:new RegExp(t.close),[o("startTag__id__")]:i(/(@open__id__)(#)/),[o("endTag__id__")]:i(/(@open__id__)(\/#)/),[o("startOrEndTag__id__")]:i(/(@open__id__)(\/?#)/),[o("closeTag1__id__")]:i(/((?:@blank)*)(@close__id__)/),[o("closeTag2__id__")]:i(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[o("default__id__")]:[{include:o("@directive_token__id__")},{include:o("@interpolation_and_text_token__id__")}],[o("fmExpression__id__.directive")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("fmExpression__id__.interpolation")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@expression_token__id__")},{include:o("@greater_operators_token__id__")}],[o("inParen__id__.plain")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("inParen__id__.gt")]:[{include:o("@blank_and_expression_comment_token__id__")},{include:o("@expression_token__id__")},{include:o("@greater_operators_token__id__")}],[o("noSpaceExpression__id__")]:[{include:o("@no_space_expression_end_token__id__")},{include:o("@directive_end_token__id__")},{include:o("@expression_token__id__")}],[o("unifiedCall__id__")]:[{include:o("@unified_call_token__id__")}],[o("singleString__id__")]:[{include:o("@string_single_token__id__")}],[o("doubleString__id__")]:[{include:o("@string_double_token__id__")}],[o("rawSingleString__id__")]:[{include:o("@string_single_raw_token__id__")}],[o("rawDoubleString__id__")]:[{include:o("@string_double_raw_token__id__")}],[o("expressionComment__id__")]:[{include:o("@expression_comment_token__id__")}],[o("noParse__id__")]:[{include:o("@no_parse_token__id__")}],[o("terseComment__id__")]:[{include:o("@terse_comment_token__id__")}],[o("directive_token__id__")]:[[i(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:o("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:o("@fmExpression__id__.directive")}]],[i(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(@open__id__)(@)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:o("@unifiedCall__id__")}]],[i(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[i(/(@open__id__)#--/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:{token:"comment",next:o("@terseComment__id__")}],[i(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${t.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${t.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:o("@fmExpression__id__.directive")}]]],[o("interpolation_and_text_token__id__")]:[[i(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:"bracket"===t.id?"@brackets.interpolation":"delimiter.interpolation"},{token:"bracket"===t.id?"delimiter.interpolation":"@brackets.interpolation",next:o("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[o("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[o("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[o("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[o("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[o("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:o("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:o("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:o("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:o("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:o("@inParen__id__.gt")},"@default":{token:"@brackets",next:o("@inParen__id__.plain")}}},"\\]":{cases:{..."bracket"===t.id?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},..."bracket"===e.id?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:o("@inParen__id__.gt")},"\\)":{cases:{[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:o("@inParen__id__.gt")},"@default":{token:"@brackets",next:o("@inParen__id__.plain")}}},"\\}":{cases:{..."bracket"===t.id?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[o("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[o("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:o("@expressionComment__id__")}]],[o("directive_end_token__id__")]:[[/>/,"bracket"===e.id?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[i(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[o("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[o("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:o("@fmExpression__id__.directive")}]],[o("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:o("@fmExpression__id__.directive")}]],[i(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:o("@noSpaceExpression__id__")}]],[o("no_parse_token__id__")]:[[i(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[o("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[o("terse_comment_token__id__")]:[[i(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function $(e){const t=x(p,e),n=x(g,e),o=x(A,e);return{...t,...n,...o,unicode:!0,includeLF:!1,start:`default_auto_${e.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...t.tokenizer,...n.tokenizer,...o.tokenizer}}}var D={conf:f(p),language:x(p,m)},E={conf:f(g),language:x(g,m)},B={conf:f(p),language:x(p,b)},C={conf:f(g),language:x(g,b)},v={conf:F(),language:$(m)},w={conf:F(),language:$(b)}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/118.dcb5482c.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/118.112f7e2f.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/118.dcb5482c.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/118.112f7e2f.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/1203.25418a7e.chunk.js b/ydb/core/viewer/monitoring/static/js/1203.25418a7e.chunk.js deleted file mode 100644 index a75c64bc5d6..00000000000 --- a/ydb/core/viewer/monitoring/static/js/1203.25418a7e.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1203],{90053:(e,t,a)=>{a.d(t,{E:()=>v});var l=a(8873),n=a(84476),s=a(24555),i=a(21334),r=a(77506),o=a(90182),d=a(48372);const c=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,d.g4)("ydb-diagnostics-autorefresh-control",{en:c});var h=a(60712);const m=(0,r.cn)("auto-refresh-control");function v({className:e}){const t=(0,o.YQ)(),[a,r]=(0,o.Nt)();return(0,h.jsxs)("div",{className:m(null,e),children:[(0,h.jsx)(n.$,{view:"flat-secondary",onClick:()=>{t(i.F.util.invalidateTags(["All"]))},extraProps:{"aria-label":u("Refresh")},children:(0,h.jsx)(n.$.Icon,{children:(0,h.jsx)(l.A,{})})}),(0,h.jsxs)(s.l,{value:[String(a)],onUpdate:e=>{r(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,h.jsx)(s.l.Option,{value:"0",children:u("None")}),(0,h.jsx)(s.l.Option,{value:"15000",children:u("15 sec")}),(0,h.jsx)(s.l.Option,{value:"60000",children:u("1 min")}),(0,h.jsx)(s.l.Option,{value:"120000",children:u("2 min")}),(0,h.jsx)(s.l.Option,{value:"300000",children:u("5 min")})]})]})}},22983:(e,t,a)=>{a.d(t,{B:()=>d});var l=a(59284),n=a(84476),s=a(84375),i=a(55974),r=a(42829),o=a(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:a,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:h=!1,buttonView:m="action",buttonTitle:v,buttonClassName:p,withPopover:b=!1,popoverContent:g,popoverPlacement:x="right",popoverDisabled:y=!0}){const[f,j]=l.useState(!1),[w,N]=l.useState(!1),[S,T]=l.useState(!1),_=()=>(0,o.jsx)(n.$,{onClick:()=>j(!0),view:m,disabled:h,loading:!h&&w,className:p,title:v,children:e});return(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(i.g,{visible:f,header:d,text:c,withRetry:S,retryButtonText:u,onConfirm:async e=>{N(!0),await t(e)},onConfirmActionSuccess:async()=>{T(!1);try{await(null===a||void 0===a?void 0:a())}finally{N(!1)}},onConfirmActionError:e=>{T((0,r.D)(e)),N(!1)},onClose:()=>{j(!1)}}),b?(0,o.jsx)(s.A,{content:g,placement:x,disabled:y,children:_()}):_()]})}},55974:(e,t,a)=>{a.d(t,{g:()=>g});var l=a(59284),n=a(18677),s=a(71153),i=a(74321),r=a(2198),o=a(99991),d=a(89954),c=a(77506),u=a(48372);const h=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),m=(0,u.g4)("ydb-critical-action-dialog",{en:h});var v=a(60712);const p=(0,c.cn)("ydb-critical-dialog"),b=e=>e.data&&"issues"in e.data&&e.data.issues?(0,v.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?m("no-rights-error"):e.statusText?e.statusText:m("default-error");function g({visible:e,header:t,text:a,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:h,onConfirm:g,onConfirmActionSuccess:x,onConfirmActionError:y}){const[f,j]=l.useState(!1),[w,N]=l.useState(),[S,T]=l.useState(!1),_=async e=>(j(!0),g(e).then((()=>{x(),h()})).catch((e=>{y(e),N(e)})).finally((()=>{j(!1)})));return(0,v.jsx)(r.l,{open:e,hasCloseButton:!1,className:p(),size:"s",onClose:h,onTransitionExited:()=>{N(void 0),T(!1)},children:w?(0,v.jsxs)(l.Fragment,{children:[(0,v.jsx)(r.l.Header,{caption:t}),(0,v.jsx)(r.l.Body,{className:p("body"),children:(0,v.jsxs)("div",{className:p("body-message",{error:!0}),children:[(0,v.jsx)("span",{className:p("error-icon"),children:(0,v.jsx)(n.A,{width:"24",height:"22"})}),b(w)]})}),(0,v.jsx)(r.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||m("button-retry"):void 0,textButtonCancel:m("button-close"),onClickButtonApply:()=>_(!0),onClickButtonCancel:h})]}):(0,v.jsxs)(l.Fragment,{children:[(0,v.jsx)(r.l.Header,{caption:t}),(0,v.jsxs)(r.l.Body,{className:p("body"),children:[(0,v.jsxs)("div",{className:p("body-message",{warning:!0}),children:[(0,v.jsx)("span",{className:p("warning-icon"),children:(0,v.jsx)(o.I,{data:s.A,size:24})}),a]}),u?(0,v.jsx)(i.S,{checked:S,onUpdate:T,children:m("checkbox-text")}):null]}),(0,v.jsx)(r.l.Footer,{loading:f,preset:"default",textButtonApply:m("button-confirm"),textButtonCancel:m("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!S},onClickButtonCancel:h,onClickButtonApply:()=>_()})]})})}},42829:(e,t,a)=>{a.d(t,{D:()=>l});const l=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},3685:(e,t,a)=>{a.d(t,{$:()=>r});var l=a(77506),n=a(33775),s=a(60712);const i=(0,l.cn)("ydb-entity-page-title");function r({entityName:e,status:t,id:a,className:l}){return(0,s.jsxs)("div",{className:i(null,l),children:[(0,s.jsx)("span",{className:i("prefix"),children:e}),(0,s.jsx)(n.k,{className:i("icon"),status:t,size:"s"}),a]})}},10508:(e,t,a)=>{a.d(t,{c:()=>u});var l=a(67884),n=a(96873),s=a(54090),i=a(77506),r=a(82015),o=a(33775),d=a(60712);const c=(0,i.cn)("entity-status");function u({status:e=s.m.Grey,name:t="",label:a,path:i,iconPath:u,size:h="s",mode:m="color",showStatus:v=!0,externalLink:p=!1,withLeftTrim:b=!1,hasClipboardButton:g,clipboardButtonAlwaysVisible:x=!1,className:y}){const f=()=>v?(0,d.jsx)(o.k,{className:c("icon"),status:e,size:h,mode:m}):null;return(0,d.jsxs)("div",{className:c(null,y),children:[u?(j=u,(0,d.jsx)(l.N,{target:"_blank",href:j,children:f()})):f(),a&&(0,d.jsx)("span",{title:a,className:c("label",{size:h,state:e.toLowerCase()}),children:a}),(i||t)&&(0,d.jsxs)("div",{className:c("wrapper",{"with-button":g}),children:[(0,d.jsx)("span",{className:c("link",{"with-left-trim":b}),title:t,children:i?p?(0,d.jsx)(l.N,{className:c("name"),href:i,children:t}):(0,d.jsx)(r.E,{className:c("name"),to:i,children:t}):t&&(0,d.jsx)("span",{className:c("name"),children:t})}),g&&(0,d.jsx)("div",{className:c("controls-wrapper",{visible:x}),children:(0,d.jsx)(n.b,{text:t,size:"xs",view:"normal",className:c("clipboard-button",{visible:x})})})]})]});var j}},58389:(e,t,a)=>{a.d(t,{B:()=>c});var l=a(87184),n=a(77506),s=a(90053),i=a(70043),r=a(60712);const o=(0,n.cn)("ydb-page-meta");function d({items:e,loading:t}){return(0,r.jsx)("div",{className:o("info"),children:t?(0,r.jsx)(i.E,{className:o("skeleton")}):e.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c({className:e,...t}){return(0,r.jsxs)(l.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:o(null,e),children:[(0,r.jsx)(d,{...t}),(0,r.jsx)(s.E,{})]})}},17594:(e,t,a)=>{a.d(t,{l:()=>d});var l=a(69024),n=a(4557),s=a(77506),i=a(16819),r=a(60712);const o=(0,s.cn)("ydb-resizeable-data-table");function d({columnsWidthLSKey:e,columns:t,settings:a,wrapperClassName:s,...d}){const[c,u]=(0,i.a)(e),h=(0,l.j)(t,c),m={...a,defaultResizeable:!0};return(0,r.jsx)("div",{className:o(null,s),children:(0,r.jsx)(n.Ay,{theme:"yandex-cloud",columns:h,onResize:u,settings:m,...d})})}},70043:(e,t,a)=>{a.d(t,{E:()=>i});var l=a(89169),n=a(66781),s=a(60712);const i=({delay:e=600,className:t})=>{const[a]=(0,n.y)(e);return a?(0,s.jsx)(l.E,{className:t}):null}},33775:(e,t,a)=>{a.d(t,{k:()=>h});var l=a(45720),n=a(16929),s=a(71153),i=a(99991),r=a(54090),o=a(77506),d=a(60712);const c=(0,o.cn)("ydb-status-icon"),u={[r.m.Blue]:l.A,[r.m.Yellow]:n.A,[r.m.Orange]:s.A,[r.m.Red]:n.A};function h({status:e=r.m.Grey,size:t="s",mode:a="color",className:l}){const n={state:e.toLowerCase(),size:t};return"icons"===a&&e in u?(0,d.jsx)(i.I,{className:c("status-icon",n,l),data:u[e]}):(0,d.jsx)("div",{className:c("status-color",n,l)})}},79737:(e,t,a)=>{a.d(t,{A:()=>r,X:()=>o});var l=a(5874),n=a(77506),s=a(60712);const i=(0,n.cn)("ydb-table");function r({children:e,className:t}){return(0,s.jsx)("div",{className:i("table-header-content",t),children:e})}function o({className:e,width:t,wrapperClassName:a,...n}){return(0,s.jsx)("div",{className:i(null,a),children:(0,s.jsx)(l.W,{headerCellClassName:({column:e})=>{var t;const a=null===(t=e.columnDef.meta)||void 0===t?void 0:t.align;return i("table-header-cell",{align:a})},cellClassName:e=>{var t,a;const l=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,n=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return i("table-cell",{align:l,"vertical-align":n})},className:i("table",{width:t},e),...n})})}},27775:(e,t,a)=>{a.d(t,{i:()=>i});var l=a(47665),n=a(58267),s=a(60712);function i({state:e}){return(0,s.jsx)(l.J,{theme:(0,n._8)(e),children:e})}},47584:(e,t,a)=>{a.r(t),a.d(t,{Tablet:()=>pe,b:()=>ue});var l=a(59284),n=a(87184),s=a(23871),i=a(44992),r=a(61750),o=a(10755),d=a(67087),c=a(370),u=a(7889),h=a(3685),m=a(44508),v=a(44294),p=a(98167),b=a(58389),g=a(92459),x=a(78668),y=a(40174),f=a(21545),j=a(54090),w=a(77506),N=a(76086),S=a(90182),T=a(76938),_=a(66528);const I=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",d:"M13.756 10.164c1.665-.962 1.665-3.366 0-4.328L5.251.919C3.584-.045 1.5 1.158 1.5 3.083v9.834c0 1.925 2.084 3.128 3.751 2.164l8.505-4.917Z"}));var C=a(99991),A=a(22983),k=a(6354),D=a(48372);const E=JSON.parse('{"tablet.header":"Tablet","tablet.meta-database":"Database","tablet.meta-follower":"Follower","controls.kill":"Restart","controls.stop":"Stop","controls.resume":"Resume","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet","controls.stop-not-allowed":"You don\'t have enough rights to stop tablet","controls.resume-not-allowed":"You don\'t have enough rights to resume tablet","dialog.kill-header":"Restart tablet","dialog.stop-header":"Stop tablet","dialog.resume-header":"Resume tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","dialog.stop-text":"The tablet will be stopped. Do you want to proceed?","dialog.resume-text":"The tablet will be resumed. Do you want to proceed?","emptyState":"The tablet was not found","label_tablet-history":"Tablets","label_tablet-channels":"Storage"}'),B=(0,D.g4)("ydb-tablet-page",{en:E});function R(e){return Boolean(e&&"0"!==e)}var F=a(60712);const O=({tablet:e})=>{const{TabletId:t,HiveId:a}=e,s=(0,S.N4)(x._5),[i]=f.X.useKillTabletMutation(),[r]=f.X.useStopTabletMutation(),[o]=f.X.useResumeTabletMutation();if(!t)return null;const d=R(a),c=e.State===k.r.Stopped,u=e.State!==k.r.Stopped&&e.State!==k.r.Dead,h=e.State===k.r.Stopped||e.State===k.r.Deleted;return(0,F.jsxs)(n.s,{gap:2,wrap:"nowrap",children:[(0,F.jsxs)(A.B,{dialogHeader:B("dialog.kill-header"),dialogText:B("dialog.kill-text"),onConfirmAction:()=>i({id:t}).unwrap(),buttonDisabled:c||!s,withPopover:!0,buttonView:"normal",popoverContent:B("controls.kill-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:T.A}),B("controls.kill")]}),d&&(0,F.jsxs)(l.Fragment,{children:[(0,F.jsxs)(A.B,{dialogHeader:B("dialog.stop-header"),dialogText:B("dialog.stop-text"),onConfirmAction:()=>r({id:t,hiveId:a}).unwrap(),buttonDisabled:h||!s,withPopover:!0,buttonView:"normal",popoverContent:B("controls.stop-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:_.A}),B("controls.stop")]}),(0,F.jsxs)(A.B,{dialogHeader:B("dialog.resume-header"),dialogText:B("dialog.resume-text"),onConfirmAction:()=>o({id:t,hiveId:a}).unwrap(),buttonDisabled:u||!s,withPopover:!0,buttonView:"normal",popoverContent:B("controls.resume-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:I}),B("controls.resume")]})]})]})};var z=a(52905),L=a(60073),G=a(25196),P=a(27775),H=a(86200),q=a(31684),$=a(29819);const M=JSON.parse('{"field_scheme-shard":"SchemeShard","field_follower":"Follower","field_generation":"Generation","field_hive":"HiveId","field_state":"State","field_uptime":"Uptime","field_node":"Node","field_links":"Links","field_developer-ui-app":"App","field_developer-ui-counters":"Counters","field_developer-ui-executor":"Executor DB internals","field_developer-ui-state":"State Storage","title_info":"Info","title_links":"Links"}'),Y=(0,D.g4)("ydb-tablet-info",{en:M}),K=(0,w.cn)("ydb-tablet-info"),V=({tablet:e})=>{const t=(0,S.N4)(x._5),{ChangeTime:a,Generation:l,FollowerId:s,NodeId:i,HiveId:r,State:o,TenantId:{SchemeShard:d}={},TabletId:c}=e,u=R(r),h=o===k.r.Active,m=[];u&&m.push({label:Y("field_hive"),value:(0,F.jsx)(z.N_,{to:(0,g.DM)(r),className:K("link"),children:r})}),d&&m.push({label:Y("field_scheme-shard"),value:(0,F.jsx)(z.N_,{to:(0,g.DM)(d),className:K("link"),children:d})}),m.push({label:Y("field_state"),value:(0,F.jsx)(P.i,{state:o})}),h&&m.push({label:Y("field_uptime"),value:(0,H.H7)(a)}),m.push({label:Y("field_generation"),value:l},{label:Y("field_node"),value:(0,F.jsx)(z.N_,{className:K("link"),to:(0,$.vI)(String(i)),children:i})}),s&&m.push({label:Y("field_follower"),value:s});return(0,F.jsxs)(n.s,{gap:10,wrap:"nowrap",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:K("section-title"),children:Y("title_info")}),(0,F.jsx)(L.z_,{info:m})]}),t&&c?(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:K("section-title"),children:Y("title_links")}),(0,F.jsxs)(n.s,{direction:"column",gap:3,children:[(0,F.jsx)(G.K,{title:Y("field_developer-ui-app"),url:(0,q._t)(c,"app")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-counters"),url:(0,q._t)(c,"counters")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-executor"),url:(0,q._t)(c,"executorInternals")}),(0,F.jsx)(G.K,{title:Y("field_developer-ui-state"),url:(0,q._t)(c,void 0,"SsId")})]})]}):null]})};var Z=a(36590),Q=a(79737),X=a(84476),J=a(33705);const W=JSON.parse('{"label_channel-index":"Channel","label_storage-pool":"Storage Pool Name","label_group-id":"Group ID","label_generation":"From generation","label_timestamp":"Timestamp"}'),U=(0,D.g4)("ydb-tablet-storage-info",{en:W}),ee=(0,w.cn)("ydb-tablet-storage-info");function te(e,t){const a=e.getValue(),l="function"===typeof t?t(a):a;return(0,F.jsx)("div",{className:ee("metrics-cell"),children:l})}function ae({row:e,name:t,hasExpand:a}){const l=e.getCanExpand();return(0,F.jsxs)(n.s,{gap:1,alignItems:"flex-start",className:ee("name-wrapper"),children:[l&&(0,F.jsx)(X.$,{view:"flat",size:"xs",onClick:e.getToggleExpandedHandler(),children:(0,F.jsx)(X.$.Icon,{children:(0,F.jsx)(J.I,{direction:e.getIsExpanded()?"bottom":"right",size:14})})}),(0,F.jsx)("div",{className:ee("name-content",{"no-control":a&&!l}),children:t})]})}function le({data:e}){const[t,a]=l.useState({}),n=l.useMemo((()=>function(e){var t;if(!e)return[];const{BoundChannels:a,TabletStorageInfo:l={}}=e,n=null!==(t=l.Channels)&&void 0!==t?t:[],s=[];for(const r of n){var i;const e=r.Channel,t=r.History;if(!e||!t||!t.length)continue;const l=[...t];l.reverse();const[n,...o]=l,d={...n,storagePoolName:null===a||void 0===a||null===(i=a[e])||void 0===i?void 0:i.StoragePoolName,channelIndex:e,children:o};s.push(d)}return s}(e)),[e]),s=l.useMemo((()=>n.some((e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.length}))),[n]),i=l.useMemo((()=>{return e=s,[{accessorKey:"channelIndex",header:()=>(0,F.jsx)(Q.A,{children:U("label_channel-index")}),size:50,cell:te,meta:{align:"right"}},{accessorKey:"storagePoolName",header:()=>(0,F.jsx)(Q.A,{children:U("label_storage-pool")}),size:200,cell:te},{accessorKey:"GroupID",header:()=>(0,F.jsx)(Q.A,{className:e?ee("with-padding"):void 0,children:U("label_group-id")}),size:100,cell:t=>(0,F.jsx)(ae,{row:t.row,name:t.getValue(),hasExpand:e})},{accessorKey:"FromGeneration",header:()=>(0,F.jsx)(Q.A,{children:U("label_generation")}),size:100,cell:te,meta:{align:"right"}},{accessorKey:"Timestamp",header:()=>(0,F.jsx)(Q.A,{children:U("label_timestamp")}),size:200,cell:e=>te(e,H.Ey),meta:{align:"right"}}];var e}),[s]),r=(0,Z.K)({columns:i,data:n,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:a,state:{expanded:t}});return(0,F.jsx)(Q.X,{table:r})}var ne=a(4557),se=a(10508),ie=a(82015),re=a(17594);const oe=[{name:"Generation",align:ne.Ay.RIGHT,render:({row:e})=>e.generation},{name:"Change time",align:ne.Ay.RIGHT,sortable:!1,render:({row:e})=>(0,H.H7)(e.changeTime)},{name:"State",sortable:!1,render:({row:e})=>(0,F.jsx)(P.i,{state:e.state})},{name:"Follower ID",sortable:!1,render:({row:e})=>e.leader?"leader":e.followerId},{name:"Node ID",align:ne.Ay.RIGHT,sortable:!1,render:({row:e})=>(0,F.jsx)(ie.E,{to:(0,$.vI)(e.nodeId),children:e.nodeId})},{name:"Node FQDN",sortable:!1,width:300,render:({row:e})=>e.fqdn?(0,F.jsx)(se.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,F.jsx)("span",{children:"\u2014"})}],de={displayIndices:!1},ce=({history:e})=>(0,F.jsx)(re.l,{columnsWidthLSKey:"tabletTableColumnsWidth",data:e,columns:oe,settings:de,initialSortOrder:{columnId:"Generation",order:ne.Ay.DESCENDING}}),ue=(0,w.cn)("ydb-tablet-page"),he={history:"history",channels:"channels"},me=[{id:he.history,get title(){return B("label_tablet-history")}},{id:he.channels,get title(){return B("label_tablet-channels")},isAdvanced:!0}],ve=c.z.nativeEnum(he).catch(he.history);function pe(){var e;const t=(0,S.YQ)(),{id:a}=(0,o.g)(),[{database:s,clusterName:c}]=(0,d.useQueryParams)(g.qc),[u]=(0,S.Nt)(),{currentData:h,isFetching:v,error:x}=f.X.useGetTabletQuery({id:a,database:null!==s&&void 0!==s?s:void 0},{pollingInterval:u}),j=v&&void 0===h,{data:w={},history:T=[]}=h||{},{currentData:_}=f.X.useGetTabletDescribeQuery(w.TenantId?{tenantId:w.TenantId}:i.hT),I=null!==(e=_||s)&&void 0!==e?e:void 0,C=w.Type;l.useEffect((()=>{t((0,y.g)("tablet",{tenantName:null!==s&&void 0!==s?s:void 0,tabletId:a,tabletType:C}))}),[t,s,a,C]);const{Leader:A,Type:k}=w,D=[];return I&&D.push(`${B("tablet.meta-database")}: ${I}`),k&&D.push(k),!1===A&&D.push(B("tablet.meta-follower").toUpperCase()),(0,F.jsxs)(n.s,{gap:5,direction:"column",className:ue(),children:[(0,F.jsx)(r.mg,{children:(0,F.jsx)("title",{children:`${a} \u2014 ${B("tablet.header")} \u2014 ${I||c||N.QM}`})}),(0,F.jsx)(b.B,{items:D}),(0,F.jsxs)(p.r,{loading:j,size:"l",children:[x?(0,F.jsx)(m.o,{error:x}):null,h?(0,F.jsx)(be,{id:a,tablet:w,history:T}):null]})]})}function be({id:e,tablet:t,history:a}){const l=!Object.keys(t).length,{Overall:s,HiveId:i}=t;return(0,F.jsxs)(u.q,{title:B("emptyState"),className:ue("placeholder"),isEmpty:l,children:[(0,F.jsxs)(n.s,{gap:5,direction:"column",children:[(0,F.jsx)(h.$,{entityName:B("tablet.header"),status:null!==s&&void 0!==s?s:j.m.Grey,id:e}),(0,F.jsx)(O,{tablet:t}),(0,F.jsx)(V,{tablet:t})]}),(0,F.jsx)(ge,{id:e,hiveId:i,history:a})]})}function ge({id:e,hiveId:t,history:a}){var i;const[{activeTab:r,...o},c]=(0,d.useQueryParams)(g.qc),u=!(0,S.N4)(x._5)||!R(t);let h=ve.parse(r);return u&&null!==(i=me.find((e=>e.id===h)))&&void 0!==i&&i.isAdvanced&&(h=he.history),l.useEffect((()=>{r!==h&&c({activeTab:h},"replaceIn")}),[r,h,c]),(0,F.jsxs)(n.s,{gap:5,direction:"column",children:[(0,F.jsx)("div",{children:(0,F.jsx)(s.t,{size:"l",items:me.filter((({isAdvanced:e})=>!e||!u)),activeTab:h,wrapTo:(t,a)=>{const l=(0,g.DM)(e,{...o,activeTab:t.id});return(0,F.jsx)(v.E,{to:l,children:a},t.id)}})}),"history"===h?(0,F.jsx)(ce,{history:a}):null,"channels"!==h||u?null:(0,F.jsx)(xe,{id:e,hiveId:t})]})}function xe({id:e,hiveId:t}){const[a]=(0,S.Nt)(),{currentData:l,error:n,isFetching:s}=f.X.useGetAdvancedTableInfoQuery({id:e,hiveId:t},{pollingInterval:a}),i=s&&void 0===l;return(0,F.jsxs)(p.r,{loading:i,size:"l",children:[n?(0,F.jsx)(m.o,{error:n}):null,l?(0,F.jsx)(le,{data:l}):null]})}},89954:(e,t,a)=>{a.d(t,{O:()=>_});var l=a(59284),n=a(45720),s=a(16929),i=a(71153),r=a(18677),o=a(84476),d=a(33705),c=a(99991),u=a(67884),h=a(77506),m=a(48372);const v=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),p=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),b=(0,m.g4)("ydb-shorty-string",{ru:p,en:v});var g=a(60712);const x=(0,h.cn)("kv-shorty-string");function y({value:e="",limit:t=200,strict:a=!1,displayLength:n=!0,render:s=e=>e,onToggle:i,expandLabel:r=b("default_expand_label"),collapseLabel:o=b("default_collapse_label")}){const[d,c]=l.useState(!1),h=(d?o:r)+(n&&!d?b("chars_count",{count:e.length}):""),m=e.length>t+(a?0:h.length),v=d||!m?e:e.slice(0,t-4)+"\xa0...";return(0,g.jsxs)("div",{className:x(),children:[s(v),m?(0,g.jsx)(u.N,{className:x("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),c((e=>!e)),null===i||void 0===i||i()},children:h}):null]})}var f=a(41650);const j=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function w(e){return function(e){return!!e&&void 0!==j[e]}(e)?j[e]:"S_INFO"}const N=(0,h.cn)("kv-result-issues"),S=(0,h.cn)("kv-issues"),T=(0,h.cn)("kv-issue");function _({data:e,hideSeverity:t}){const[a,n]=l.useState(!1),s="string"===typeof e||null===e||void 0===e?void 0:e.issues,i=Array.isArray(s)&&s.length>0;return(0,g.jsxs)("div",{className:N(),children:[(0,g.jsxs)("div",{className:N("error-message"),children:[(()=>{let a;if("string"===typeof e)a=e;else{var n,s;const i=w(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.severity);a=(0,g.jsxs)(l.Fragment,{children:[t?null:(0,g.jsxs)(l.Fragment,{children:[(0,g.jsx)(E,{severity:i})," "]}),(0,g.jsx)("span",{className:N("error-message-text"),children:null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.message})]})}return a})(),i&&(0,g.jsx)(o.$,{view:"normal",onClick:()=>n(!a),children:a?"Hide details":"Show details"})]}),i&&a&&(0,g.jsx)(I,{hideSeverity:t,issues:s})]})}function I({issues:e,hideSeverity:t}){const a=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var a;const l=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,l)}),10);return(0,g.jsx)("div",{className:S(null),children:null===e||void 0===e?void 0:e.map(((e,l)=>(0,g.jsx)(C,{hideSeverity:t,issue:e,expanded:e===a},l)))})}function C({issue:e,hideSeverity:t,level:a=0}){const[n,s]=l.useState(!0),i=w(e.severity),r=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,f.kf)(t.row))return"";const{row:a,column:l}=t;return(0,f.kf)(l)?`${a}:${l}`:`line ${a}`}(e),c=e.issues,u=Array.isArray(c)&&c.length>0,h=n?"bottom":"right";return(0,g.jsxs)("div",{className:T({leaf:!u,"has-issues":u}),children:[(0,g.jsxs)("div",{className:T("line"),children:[u&&(0,g.jsx)(o.$,{view:"flat-secondary",onClick:()=>s(!n),className:T("arrow-toggle"),children:(0,g.jsx)(d.I,{direction:h,size:16})}),t?null:(0,g.jsx)(E,{severity:i}),(0,g.jsxs)("span",{className:T("message"),children:[r&&(0,g.jsx)("span",{className:T("place-text"),title:"Position",children:r}),(0,g.jsx)("div",{className:T("message-text"),children:(0,g.jsx)(y,{value:e.message,expandLabel:"Show full message"})})]}),e.issue_code?(0,g.jsxs)("span",{className:T("code"),children:["Code: ",e.issue_code]}):null]}),u&&n&&(0,g.jsx)("div",{className:T("issues"),children:(0,g.jsx)(A,{issues:c,level:a+1,expanded:n})})]})}function A(e){const{issues:t,level:a,expanded:l}=e;return(0,g.jsx)("div",{className:T("list"),children:t.map(((e,t)=>(0,g.jsx)(C,{issue:e,level:a,expanded:l},t)))})}const k={S_INFO:n.A,S_WARNING:s.A,S_ERROR:i.A,S_FATAL:r.A},D=(0,h.cn)("yql-issue-severity");function E({severity:e}){const t=e.slice(2).toLowerCase();return(0,g.jsxs)("span",{className:D({severity:t}),children:[(0,g.jsx)(c.I,{className:D("icon"),data:k[e]}),(0,g.jsx)("span",{className:D("title"),children:t})]})}},21545:(e,t,a)=>{a.d(t,{X:()=>n});var l=a(78034);const n=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t},{signal:a})=>{try{const[n,s,i]=await Promise.all([window.api.viewer.getTablet({id:e,database:t},{signal:a}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:a}),window.api.viewer.getNodesList({signal:a})]),r=(0,l.pl)(i),o=Object.keys(s).reduce(((e,t)=>{var a;const l=null===(a=s[t])||void 0===a?void 0:a.TabletStateInfo;if(l&&l.length){const a=l.find((e=>e.Leader))||l[0],{ChangeTime:n,Generation:s,State:i,Leader:o,FollowerId:d}=a,c=r&&t?r.get(Number(t)):void 0;"Dead"!==i&&e.push({nodeId:t,generation:s,changeTime:n,state:i,leader:o,followerId:d,fqdn:c})}return e}),[]),{TabletStateInfo:d=[]}=n,[c={}]=d,{TabletId:u}=c;return{data:{id:u,data:c,history:o}}}catch(n){return{error:n}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const a=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:l,PathId:n}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${l}:${n}`}}catch(a){return{error:a}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:a})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:a})}}catch(l){return{error:l}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},16819:(e,t,a)=>{a.d(t,{a:()=>i});var l=a(59284),n=a(69024),s=a(59001);const i=e=>{const t=l.useCallback((()=>e?s.f.readUserSettingsValue(e,{}):{}),[e]),a=l.useCallback((t=>{e&&s.f.setUserSettingsValue(e,t)}),[e]);return(0,n.a)({saveSizes:a,getSizes:t})}},58267:(e,t,a)=>{a.d(t,{PQ:()=>i,_8:()=>r});var l=a(54090),n=a(6354);const s={[n.r.Dead]:l.m.Red,[n.r.Created]:l.m.Yellow,[n.r.ResolveStateStorage]:l.m.Yellow,[n.r.Candidate]:l.m.Yellow,[n.r.BlockBlobStorage]:l.m.Yellow,[n.r.WriteZeroEntry]:l.m.Yellow,[n.r.Restored]:l.m.Yellow,[n.r.Discover]:l.m.Yellow,[n.r.Lock]:l.m.Yellow,[n.r.Stopped]:l.m.Yellow,[n.r.ResolveLeader]:l.m.Yellow,[n.r.RebuildGraph]:l.m.Yellow,[n.r.Deleted]:l.m.Green,[n.r.Active]:l.m.Green},i=(Object.keys(n.r),Object.entries(s).reduce(((e,[t,a])=>(e[a]?e[a].push(t):e[a]=[t],e)),{}),e=>{if(!e)return l.m.Grey;return t=e,Object.values(l.m).includes(t)?e:s[e];var t});function r(e){if(!e)return"unknown";switch(e){case n.r.Dead:return"danger";case n.r.Active:case n.r.Deleted:return"success";default:return"warning"}}},16929:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(59284);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0V5Z",clipRule:"evenodd"}))},45720:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(59284);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75Z",clipRule:"evenodd"}))},71153:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(59284);const n=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.836 2.244c.962-1.665 3.366-1.665 4.328 0l4.917 8.505c.964 1.666-.239 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.164-3.751l4.917-8.505ZM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5Zm1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}))},89169:(e,t,a)=>{a.d(t,{E:()=>s});var l=a(59284);const n=(0,a(69220).om)("skeleton");function s({className:e,style:t,qa:a}){return l.createElement("div",{className:n(null,e),style:t,"data-qa":a})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1278.d5c24e15.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/1278.d5c24e15.chunk.js.LICENSE.txt index 10047b8b1da..e369b6e579a 100644 --- a/ydb/core/viewer/monitoring/static/js/1278.d5c24e15.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/1278.d5c24e15.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/1299.aaedb42e.chunk.js b/ydb/core/viewer/monitoring/static/js/1299.aaedb42e.chunk.js new file mode 100644 index 00000000000..f29e8dcb209 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/1299.aaedb42e.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1299],{81299:(e,l,c)=>{c.r(l),c.d(l,{ReactComponent:()=>m,default:()=>n});var t,a=c(59284);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var c=arguments[l];for(var t in c)({}).hasOwnProperty.call(c,t)&&(e[t]=c[t])}return e},h.apply(null,arguments)}function v({title:e,titleId:l,...c},v){return a.createElement("svg",h({width:349,height:356,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:v,"aria-labelledby":l},c),e?a.createElement("title",{id:l},e):null,t||(t=a.createElement("g",{opacity:.8},a.createElement("path",{d:"M275.008 84.928c0 24.7-9.9 83.9-9.9 117.1 0 33.2 0 106.3-27.8 134.1-27.8 27.8-61.9 16.1-61.9 16.1s-46.7 13-76.3-14.8c-29.6-27.8-60.1-83.5-69.1-115.3-9.9-35-26.5-49.3-27.8-56.5-1.3-7.2 3.6-12.1 12.1-12.6 8.5-.4 22.9 4 34.5 22 11.6 18 17.5 26 23.8 35.9 6.3 9.9 20.6 23.3 20.6 23.3s.4-44.9 1.3-64.1c.9-19.3-1.8-111.7 1.8-132.3 3.6-20.6 26.5-20.2 28.7-4 2.2 16.1 8.8 66.8 9.8 79.8s3.7 44.4 3.7 44.4l7.6-2.7s-.9-105.8-.9-132.9c0-29.2 28.7-29.2 32.3-4 3.6 25.2 6.7 142.8 6.7 142.8l6.7 2.7s2.2-111.7 5.8-129.6c3.6-17.9 26.5-17.5 30.1 4.9 3.6 22.4 1.3 72.2.9 94.2s-.9 43.5-.9 43.5l5.4 4s11-73.3 14.4-99.1c3.7-27.8 28.4-21.5 28.4 3.1z",fill:"#fff",fillOpacity:.07}),a.createElement("path",{d:"M279.207 266.428l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5v-167.4c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#FF4645"}),a.createElement("path",{d:"M191.308 139.226l-32.3-1.4c-1.9-.1-3.8.6-5.2 1.9l-24.3 22.8c-1.4 1.3-2.2 3.2-2.2 5.2v33.7c0 2 .8 3.8 2.2 5.2l24.3 22.8c1.4 1.3 3.3 2 5.2 1.9l32.3-1.4c1.8-.1 3.6-.9 4.9-2.2l21.5-22.8c1.2-1.3 1.9-3.1 1.9-4.9v-31c0-1.8-.7-3.6-1.9-4.9l-21.5-22.8c-1.3-1.3-3.1-2.1-4.9-2.1z",fill:"#fff"}),a.createElement("path",{d:"M203.408 195.526l-58.1.6c-1.6 0-3-1.3-3-3v-17.2c0-1.6 1.3-3 3-3l58.1.6c1.6 0 2.9 1.3 2.9 3v16c0 1.7-1.3 3-2.9 3z",fill:"#FF4645"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.707 103.727c0 3.4-2.7 6-6.1 5.8-3.4-.1-6.1-3-6.1-6.4 0-3.4 2.8-6 6.1-5.8 3.4.2 6.1 3 6.1 6.4zm19.7.9c0 3.3-2.7 5.9-6 5.8-3.3-.1-6-3-6-6.3s2.7-5.9 6-5.8c3.3.1 6 2.9 6 6.3zm13.4 6.499c3.2.2 5.8-2.4 5.8-5.7 0-3.3-2.6-6.1-5.8-6.2-3.3-.2-5.9 2.4-5.9 5.7 0 3.3 2.7 6.1 5.9 6.2z",fill:"#fff"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M248.707 247.329h84.6v-62c0-22.5-18.3-40.7-40.7-40.7h-3.2c-22.5 0-40.7 18.3-40.7 40.7v62zm70.2-14.3h-56v-47.7c0-14.6 11.9-26.4 26.4-26.4h3.2c14.6 0 26.4 11.9 26.4 26.4v47.7z",fill:"#DEB700"}),a.createElement("path",{d:"M340.507 205.528s-16.3-2.7-17.3-2.7l-78.6 1.1c-7 .1-13.7 6.5-13.7 13.1v58.6c0 4.7 2.9 8.5 7 10.1 1.5.6 3.1.9 4.8.9l12.5 2.3 7.6-3.7 60.4-4.3c6.2-.4 11.2-5.8 11.2-11.9v-43.3l6.1-20.2z",fill:"#DEB700"}),a.createElement("path",{d:"M337.607 283.43l-79.6 5.7c-7 .5-12.7-4.4-12.7-11v-59.6c0-6.6 5.7-12 12.7-12.1l79.6-1.1c6.2-.1 11.2 4.8 11.2 10.9v55.4c-.1 6-5 11.3-11.2 11.8z",fill:"#FBC900"}),a.createElement("path",{d:"M313.007 236.029c0-6.3-5.2-11.4-11.7-11.4-6.7 0-12.3 5.4-12.3 12 0 5 3.2 9.1 7.6 10.7v15.5c0 2.5 2.1 4.4 4.7 4.2 2.6-.2 4.6-2.5 4.6-4.9v-15.1c4.3-2.1 7.1-6.3 7.1-11z",fill:"#00236B"}),a.createElement("path",{d:"M308.307 236.028c0-5.5-4-10.1-9.3-11.2-5.6 1.1-10 6-10 11.8 0 5 3.2 9.1 7.6 10.7v15.5c0 1.5.8 2.8 2 3.5 1.6-.9 2.6-2.5 2.6-4.3v-15.1c4.2-2 7.1-6.2 7.1-10.9z",fill:"#18123D"}),a.createElement("path",{d:"M21.708 40.727a2 2 0 1 0-4 0h4zm-4 8.2a2 2 0 0 0 4 0h-4zm4 17.198a2 2 0 0 0-4 0h4zm-4 8.9a2 2 0 1 0 4 0h-4zm19.2-15.197a2 2 0 1 0 0-4v4zm-8.3-4a2 2 0 0 0 0 4v-4zm-17.8 4a2 2 0 1 0 0-4v4zm-8.3-4a2 2 0 0 0 0 4v-4zm15.2-15.101v8.2h4v-8.2h-4zm0 25.398v8.9h4v-8.9h-4zm19.2-10.297h-8.3v4h8.3v-4zm-26.1 0h-8.3v4h8.3v-4zm284.199 259.098a2 2 0 1 0-4 0h4zm-4 6.2a2 2 0 0 0 4 0h-4zm4 13.1a2 2 0 1 0-4 0h4zm-4 6.8a2 2 0 0 0 4 0h-4zm15-11.1a2 2 0 0 0 0-4v4zm-6.2-4a2 2 0 0 0 0 4v-4zm-13.6 4a2 2 0 0 0 0-4v4zm-6.3-4a2 2 0 0 0 0 4v-4zm11.1-11v6.2h4v-6.2h-4zm0 19.3v6.8h4v-6.8h-4zm15-8.3h-6.2v4h6.2v-4zm-19.8 0h-6.3v4h6.3v-4z",fill:"#2EE5C0"}),a.createElement("path",{clipRule:"evenodd",d:"M15.207 325.426c7.18 0 13-5.821 13-13 0-7.18-5.82-13-13-13s-13 5.82-13 13c0 7.179 5.82 13 13 13z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M28.207 310.426a2 2 0 1 0 0 4v-4zm35.2 2h2a2 2 0 0 0-2-2v2zm-2 12.2a2 2 0 0 0 4 0h-4zm-17.1 0a2 2 0 0 0 4 0h-4zm4-12.2a2 2 0 1 0-4 0h4zm-20.1 2h35.2v-4h-35.2v4zm33.2-2v12.2h4v-12.2h-4zm-13.1 12.2v-12.2h-4v12.2h4z",fill:"#2EE5C0"}))))}const m=a.forwardRef(v),n=c.p+"static/media/403.271ae19f0d1101a2c67a904146bbd4d3.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1299.c5282a3d.chunk.js b/ydb/core/viewer/monitoring/static/js/1299.c5282a3d.chunk.js deleted file mode 100644 index 7999bb7406d..00000000000 --- a/ydb/core/viewer/monitoring/static/js/1299.c5282a3d.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1299],{81299:(e,l,t)=>{t.r(l),t.d(l,{ReactComponent:()=>m,default:()=>n});var c,a=t(59284);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e},h.apply(this,arguments)}function v({title:e,titleId:l,...t},v){return a.createElement("svg",h({width:349,height:356,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:v,"aria-labelledby":l},t),e?a.createElement("title",{id:l},e):null,c||(c=a.createElement("g",{opacity:.8},a.createElement("path",{d:"M275.008 84.928c0 24.7-9.9 83.9-9.9 117.1 0 33.2 0 106.3-27.8 134.1-27.8 27.8-61.9 16.1-61.9 16.1s-46.7 13-76.3-14.8c-29.6-27.8-60.1-83.5-69.1-115.3-9.9-35-26.5-49.3-27.8-56.5-1.3-7.2 3.6-12.1 12.1-12.6 8.5-.4 22.9 4 34.5 22 11.6 18 17.5 26 23.8 35.9 6.3 9.9 20.6 23.3 20.6 23.3s.4-44.9 1.3-64.1c.9-19.3-1.8-111.7 1.8-132.3 3.6-20.6 26.5-20.2 28.7-4 2.2 16.1 8.8 66.8 9.8 79.8s3.7 44.4 3.7 44.4l7.6-2.7s-.9-105.8-.9-132.9c0-29.2 28.7-29.2 32.3-4 3.6 25.2 6.7 142.8 6.7 142.8l6.7 2.7s2.2-111.7 5.8-129.6c3.6-17.9 26.5-17.5 30.1 4.9 3.6 22.4 1.3 72.2.9 94.2s-.9 43.5-.9 43.5l5.4 4s11-73.3 14.4-99.1c3.7-27.8 28.4-21.5 28.4 3.1z",fill:"#fff",fillOpacity:.07}),a.createElement("path",{d:"M279.207 266.428l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5v-167.4c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#FF4645"}),a.createElement("path",{d:"M191.308 139.226l-32.3-1.4c-1.9-.1-3.8.6-5.2 1.9l-24.3 22.8c-1.4 1.3-2.2 3.2-2.2 5.2v33.7c0 2 .8 3.8 2.2 5.2l24.3 22.8c1.4 1.3 3.3 2 5.2 1.9l32.3-1.4c1.8-.1 3.6-.9 4.9-2.2l21.5-22.8c1.2-1.3 1.9-3.1 1.9-4.9v-31c0-1.8-.7-3.6-1.9-4.9l-21.5-22.8c-1.3-1.3-3.1-2.1-4.9-2.1z",fill:"#fff"}),a.createElement("path",{d:"M203.408 195.526l-58.1.6c-1.6 0-3-1.3-3-3v-17.2c0-1.6 1.3-3 3-3l58.1.6c1.6 0 2.9 1.3 2.9 3v16c0 1.7-1.3 3-2.9 3z",fill:"#FF4645"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.707 103.727c0 3.4-2.7 6-6.1 5.8-3.4-.1-6.1-3-6.1-6.4 0-3.4 2.8-6 6.1-5.8 3.4.2 6.1 3 6.1 6.4zm19.7.9c0 3.3-2.7 5.9-6 5.8-3.3-.1-6-3-6-6.3s2.7-5.9 6-5.8c3.3.1 6 2.9 6 6.3zm13.4 6.499c3.2.2 5.8-2.4 5.8-5.7 0-3.3-2.6-6.1-5.8-6.2-3.3-.2-5.9 2.4-5.9 5.7 0 3.3 2.7 6.1 5.9 6.2z",fill:"#fff"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M248.707 247.329h84.6v-62c0-22.5-18.3-40.7-40.7-40.7h-3.2c-22.5 0-40.7 18.3-40.7 40.7v62zm70.2-14.3h-56v-47.7c0-14.6 11.9-26.4 26.4-26.4h3.2c14.6 0 26.4 11.9 26.4 26.4v47.7z",fill:"#DEB700"}),a.createElement("path",{d:"M340.507 205.528s-16.3-2.7-17.3-2.7l-78.6 1.1c-7 .1-13.7 6.5-13.7 13.1v58.6c0 4.7 2.9 8.5 7 10.1 1.5.6 3.1.9 4.8.9l12.5 2.3 7.6-3.7 60.4-4.3c6.2-.4 11.2-5.8 11.2-11.9v-43.3l6.1-20.2z",fill:"#DEB700"}),a.createElement("path",{d:"M337.607 283.43l-79.6 5.7c-7 .5-12.7-4.4-12.7-11v-59.6c0-6.6 5.7-12 12.7-12.1l79.6-1.1c6.2-.1 11.2 4.8 11.2 10.9v55.4c-.1 6-5 11.3-11.2 11.8z",fill:"#FBC900"}),a.createElement("path",{d:"M313.007 236.029c0-6.3-5.2-11.4-11.7-11.4-6.7 0-12.3 5.4-12.3 12 0 5 3.2 9.1 7.6 10.7v15.5c0 2.5 2.1 4.4 4.7 4.2 2.6-.2 4.6-2.5 4.6-4.9v-15.1c4.3-2.1 7.1-6.3 7.1-11z",fill:"#00236B"}),a.createElement("path",{d:"M308.307 236.028c0-5.5-4-10.1-9.3-11.2-5.6 1.1-10 6-10 11.8 0 5 3.2 9.1 7.6 10.7v15.5c0 1.5.8 2.8 2 3.5 1.6-.9 2.6-2.5 2.6-4.3v-15.1c4.2-2 7.1-6.2 7.1-10.9z",fill:"#18123D"}),a.createElement("path",{d:"M21.708 40.727a2 2 0 1 0-4 0h4zm-4 8.2a2 2 0 0 0 4 0h-4zm4 17.198a2 2 0 0 0-4 0h4zm-4 8.9a2 2 0 1 0 4 0h-4zm19.2-15.197a2 2 0 1 0 0-4v4zm-8.3-4a2 2 0 0 0 0 4v-4zm-17.8 4a2 2 0 1 0 0-4v4zm-8.3-4a2 2 0 0 0 0 4v-4zm15.2-15.101v8.2h4v-8.2h-4zm0 25.398v8.9h4v-8.9h-4zm19.2-10.297h-8.3v4h8.3v-4zm-26.1 0h-8.3v4h8.3v-4zm284.199 259.098a2 2 0 1 0-4 0h4zm-4 6.2a2 2 0 0 0 4 0h-4zm4 13.1a2 2 0 1 0-4 0h4zm-4 6.8a2 2 0 0 0 4 0h-4zm15-11.1a2 2 0 0 0 0-4v4zm-6.2-4a2 2 0 0 0 0 4v-4zm-13.6 4a2 2 0 0 0 0-4v4zm-6.3-4a2 2 0 0 0 0 4v-4zm11.1-11v6.2h4v-6.2h-4zm0 19.3v6.8h4v-6.8h-4zm15-8.3h-6.2v4h6.2v-4zm-19.8 0h-6.3v4h6.3v-4z",fill:"#2EE5C0"}),a.createElement("path",{clipRule:"evenodd",d:"M15.207 325.426c7.18 0 13-5.821 13-13 0-7.18-5.82-13-13-13s-13 5.82-13 13c0 7.179 5.82 13 13 13z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M28.207 310.426a2 2 0 1 0 0 4v-4zm35.2 2h2a2 2 0 0 0-2-2v2zm-2 12.2a2 2 0 0 0 4 0h-4zm-17.1 0a2 2 0 0 0 4 0h-4zm4-12.2a2 2 0 1 0-4 0h4zm-20.1 2h35.2v-4h-35.2v4zm33.2-2v12.2h4v-12.2h-4zm-13.1 12.2v-12.2h-4v12.2h4z",fill:"#2EE5C0"}))))}const m=a.forwardRef(v),n=t.p+"static/media/403.271ae19f0d1101a2c67a904146bbd4d3.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/132.cf00f1e7.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/132.cf00f1e7.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/132.cf00f1e7.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/132.cf00f1e7.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/1321.401aa9b8.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/1321.401aa9b8.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/1321.401aa9b8.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/1321.401aa9b8.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/1329.de2ec2cf.chunk.js b/ydb/core/viewer/monitoring/static/js/1329.de2ec2cf.chunk.js new file mode 100644 index 00000000000..efae10b2008 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/1329.de2ec2cf.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1329],{22983:(e,t,a)=>{a.d(t,{B:()=>d});var n=a(59284),s=a(84476),r=a(84375),i=a(55974),o=a(42829),l=a(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:a,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:h=!1,buttonView:b="action",buttonTitle:p,buttonClassName:m,withPopover:v=!1,popoverContent:g,popoverPlacement:y="right",popoverDisabled:x=!0}){const[w,j]=n.useState(!1),[f,T]=n.useState(!1),[N,S]=n.useState(!1),C=()=>(0,l.jsx)(s.$,{onClick:()=>j(!0),view:b,disabled:h,loading:!h&&f,className:m,title:p,children:e});return(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)(i.g,{visible:w,header:d,text:c,withRetry:N,retryButtonText:u,onConfirm:async e=>{T(!0),await t(e)},onConfirmActionSuccess:async()=>{S(!1);try{await(null===a||void 0===a?void 0:a())}finally{T(!1)}},onConfirmActionError:e=>{S((0,o.D)(e)),T(!1)},onClose:()=>{j(!1)}}),v?(0,l.jsx)(r.A,{content:g,placement:y,disabled:x,children:C()}):C()]})}},55974:(e,t,a)=>{a.d(t,{g:()=>g});var n=a(59284),s=a(18677),r=a(71153),i=a(74321),o=a(2198),l=a(99991),d=a(89954),c=a(77506),u=a(48372);const h=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),b=(0,u.g4)("ydb-critical-action-dialog",{en:h});var p=a(60712);const m=(0,c.cn)("ydb-critical-dialog"),v=e=>e.data&&"issues"in e.data&&e.data.issues?(0,p.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?b("no-rights-error"):e.statusText?e.statusText:b("default-error");function g({visible:e,header:t,text:a,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:h,onConfirm:g,onConfirmActionSuccess:y,onConfirmActionError:x}){const[w,j]=n.useState(!1),[f,T]=n.useState(),[N,S]=n.useState(!1),C=async e=>(j(!0),g(e).then((()=>{y(),h()})).catch((e=>{x(e),T(e)})).finally((()=>{j(!1)})));return(0,p.jsx)(o.l,{open:e,hasCloseButton:!1,className:m(),size:"s",onClose:h,onTransitionExited:()=>{T(void 0),S(!1)},children:f?(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(o.l.Header,{caption:t}),(0,p.jsx)(o.l.Body,{className:m("body"),children:(0,p.jsxs)("div",{className:m("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:m("error-icon"),children:(0,p.jsx)(s.A,{width:"24",height:"22"})}),v(f)]})}),(0,p.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||b("button-retry"):void 0,textButtonCancel:b("button-close"),onClickButtonApply:()=>C(!0),onClickButtonCancel:h})]}):(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(o.l.Header,{caption:t}),(0,p.jsxs)(o.l.Body,{className:m("body"),children:[(0,p.jsxs)("div",{className:m("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:m("warning-icon"),children:(0,p.jsx)(l.I,{data:r.A,size:24})}),a]}),u?(0,p.jsx)(i.S,{checked:N,onUpdate:S,children:b("checkbox-text")}):null]}),(0,p.jsx)(o.l.Footer,{loading:w,preset:"default",textButtonApply:b("button-confirm"),textButtonCancel:b("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!N},onClickButtonCancel:h,onClickButtonApply:()=>C()})]})})}},42829:(e,t,a)=>{a.d(t,{D:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},52248:(e,t,a)=>{a.d(t,{a:()=>n.a});var n=a(47334)},17594:(e,t,a)=>{a.d(t,{l:()=>d});var n=a(69024),s=a(4557),r=a(77506),i=a(16819),o=a(60712);const l=(0,r.cn)("ydb-resizeable-data-table");function d({columnsWidthLSKey:e,columns:t,settings:a,wrapperClassName:r,...d}){const[c,u]=(0,i.a)(e),h=(0,n.j)(t,c),b={...a,defaultResizeable:!0};return(0,o.jsx)("div",{className:l(null,r),children:(0,o.jsx)(s.Ay,{theme:"yandex-cloud",columns:h,onResize:u,settings:b,...d})})}},80420:(e,t,a)=>{a.d(t,{$:()=>v});var n=a(40336),s=a(63291),r=a(92459),i=a(78668),o=a(31684),l=a(90182),d=a(71661),c=a(10508),u=a(25196),h=a(48372);const b=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),p=(0,h.g4)("ydb-tablet-name-wrapper",{en:b});var m=a(60712);function v({tabletId:e,database:t}){const a=(0,l.N4)(i._5),h=(0,r.DM)(e,{database:t});return(0,m.jsx)(d.s,{disabled:!a,delayClosing:200,content:(0,m.jsx)(n.u,{responsive:!0,children:(0,m.jsx)(n.u.Item,{name:p("field_links"),children:(0,m.jsx)(u.K,{title:p("context_developer-ui"),url:(0,o._t)(e)})})}),placement:["top","bottom"],behavior:s.m.Immediate,children:(0,m.jsx)(c.c,{name:e.toString(),path:h,hasClipboardButton:!0,showStatus:!1})})}},27775:(e,t,a)=>{a.d(t,{i:()=>i});var n=a(47665),s=a(58267),r=a(60712);function i({state:e}){return(0,r.jsx)(n.J,{theme:(0,s._)(e),children:e})}},88616:(e,t,a)=>{a.d(t,{Q:()=>C});var n=a(76938),s=a(98089),r=a(99991),i=a(22983),o=a(10508),l=a(44294),d=a(17594),c=a(19228),u=a(80420),h=a(27775),b=a(41826),p=a(78668),m=a(21545),v=a(6354),g=a(76086),y=a(90182),x=a(29819),w=a(48372);const j=JSON.parse('{"noTabletsData":"No tablets data","Type":"Type","Tablet":"Tablet","State":"State","Node ID":"Node ID","Node FQDN":"Node FQDN","Generation":"Generation","Uptime":"Uptime","dialog.kill-header":"Restart tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet"}'),f=(0,w.g4)("ydb-tablets",{en:j});var T=a(60712);function N({database:e}){return[{name:"Type",width:150,get header(){return f("Type")},render:({row:e})=>{const t=!1===e.Leader;return(0,T.jsxs)("span",{children:[e.Type," ",t?(0,T.jsx)(s.E,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return f("Tablet")},render:({row:t})=>t.TabletId?(0,T.jsx)(u.$,{tabletId:t.TabletId,database:e}):g.Pd},{name:"State",get header(){return f("State")},render:({row:e})=>(0,T.jsx)(h.i,{state:e.State})},{name:"NodeId",get header(){return f("Node ID")},render:({row:e})=>{const t=void 0===e.NodeId?void 0:(0,x.vI)(e.NodeId);return(0,T.jsx)(l.E,{to:t,children:e.NodeId})},align:"right"},{name:"fqdn",get header(){return f("Node FQDN")},render:({row:e})=>e.fqdn?(0,T.jsx)(o.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,T.jsx)("span",{children:"\u2014"})},{name:"Generation",get header(){return f("Generation")},align:"right"},{name:"Uptime",get header(){return f("Uptime")},render:({row:e})=>(0,T.jsx)(b.H,{ChangeTime:e.ChangeTime}),sortAccessor:e=>-Number(e.ChangeTime),align:"right",width:120},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:e})=>(0,T.jsx)(S,{...e})}]}function S(e){const t=e.State===v.r.Stopped,a=(0,y.N4)(p._5),[s]=m.X.useKillTabletMutation(),o=e.TabletId;return o?(0,T.jsx)(i.B,{buttonView:"outlined",buttonTitle:f("dialog.kill-header"),dialogHeader:f("dialog.kill-header"),dialogText:f("dialog.kill-text"),onConfirmAction:()=>s({id:o}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:f(a?"dialog.kill-header":"controls.kill-not-allowed"),popoverPlacement:["right","auto"],popoverDisabled:!1,children:(0,T.jsx)(r.I,{data:n.A})}):null}function C({database:e,tablets:t,className:a,loading:n}){return n?(0,T.jsx)(c.Q,{}):(0,T.jsx)(d.l,{wrapperClassName:a,columns:N({database:e}),data:t,settings:g.N3,emptyDataMessage:f("noTabletsData")})}},89954:(e,t,a)=>{a.d(t,{O:()=>C});var n=a(59284),s=a(45720),r=a(16929),i=a(71153),o=a(18677),l=a(84476),d=a(33705),c=a(67884),u=a(99991),h=a(77506),b=a(48372);const p=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),m=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),v=(0,b.g4)("ydb-shorty-string",{ru:m,en:p});var g=a(60712);const y=(0,h.cn)("kv-shorty-string");function x({value:e="",limit:t=200,strict:a=!1,displayLength:s=!0,render:r=e=>e,onToggle:i,expandLabel:o=v("default_expand_label"),collapseLabel:l=v("default_collapse_label")}){const[d,u]=n.useState(!1),h=(d?l:o)+(s&&!d?v("chars_count",{count:e.length}):""),b=e.length>t+(a?0:h.length),p=d||!b?e:e.slice(0,t-4)+"\xa0...";return(0,g.jsxs)("div",{className:y(),children:[r(p),b?(0,g.jsx)(c.N,{className:y("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===i||void 0===i||i()},children:h}):null]})}var w=a(41650);const j=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function f(e){return function(e){return!!e&&void 0!==j[e]}(e)?j[e]:"S_INFO"}const T=(0,h.cn)("kv-result-issues"),N=(0,h.cn)("kv-issues"),S=(0,h.cn)("kv-issue");function C({data:e,hideSeverity:t}){const[a,s]=n.useState(!1),r="string"===typeof e||null===e||void 0===e?void 0:e.issues,i=Array.isArray(r)&&r.length>0;return(0,g.jsxs)("div",{className:T(),children:[(0,g.jsxs)("div",{className:T("error-message"),children:[(()=>{let a;if("string"===typeof e)a=e;else{var s,r;const i=f(null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.severity);a=(0,g.jsxs)(n.Fragment,{children:[t?null:(0,g.jsxs)(n.Fragment,{children:[(0,g.jsx)(B,{severity:i})," "]}),(0,g.jsx)("span",{className:T("error-message-text"),children:null===e||void 0===e||null===(r=e.error)||void 0===r?void 0:r.message})]})}return a})(),i&&(0,g.jsx)(l.$,{view:"normal",onClick:()=>s(!a),children:a?"Hide details":"Show details"})]}),i&&a&&(0,g.jsx)(I,{hideSeverity:t,issues:r})]})}function I({issues:e,hideSeverity:t}){const a=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var a;const n=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,n)}),10);return(0,g.jsx)("div",{className:N(null),children:null===e||void 0===e?void 0:e.map(((e,n)=>(0,g.jsx)(k,{hideSeverity:t,issue:e,expanded:e===a},n)))})}function k({issue:e,hideSeverity:t,level:a=0}){const[s,r]=n.useState(!0),i=f(e.severity),o=e.issues,c=Array.isArray(o)&&o.length>0,u=s?"bottom":"right";return(0,g.jsxs)("div",{className:S({leaf:!c,"has-issues":c}),children:[(0,g.jsxs)("div",{className:S("line"),children:[c&&(0,g.jsx)(l.$,{view:"flat-secondary",onClick:()=>r(!s),className:S("arrow-toggle"),children:(0,g.jsx)(d.I,{direction:u,size:16})}),t?null:(0,g.jsx)(B,{severity:i}),(0,g.jsx)(_,{issue:e}),e.issue_code?(0,g.jsxs)("span",{className:S("code"),children:["Code: ",e.issue_code]}):null]}),c&&s&&(0,g.jsx)("div",{className:S("issues"),children:(0,g.jsx)(A,{issues:o,level:a+1,expanded:s})})]})}function _({issue:e}){var t;const a=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,w.kf)(t.row))return"";const{row:a,column:n}=t;return(0,w.kf)(n)?`${a}:${n}`:`line ${a}`}(e),n=window.ydbEditor,s=()=>(0,g.jsxs)("span",{className:S("message"),children:[a&&(0,g.jsx)("span",{className:S("place-text"),title:"Position",children:a}),(0,g.jsx)("div",{className:S("message-text"),children:(0,g.jsx)(x,{value:e.message,expandLabel:"Show full message"})})]}),{row:r,column:i}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,w.kf)(r)&&n))return s();return(0,g.jsx)(c.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:r,column:null!==i&&void 0!==i?i:0};n.setPosition(e),n.revealPositionInCenterIfOutsideViewport(e),n.focus()},view:"primary",children:s()})}function A(e){const{issues:t,level:a,expanded:n}=e;return(0,g.jsx)("div",{className:S("list"),children:t.map(((e,t)=>(0,g.jsx)(k,{issue:e,level:a,expanded:n},t)))})}const F={S_INFO:s.A,S_WARNING:r.A,S_ERROR:i.A,S_FATAL:o.A},D=(0,h.cn)("yql-issue-severity");function B({severity:e}){const t=e.slice(2).toLowerCase();return(0,g.jsxs)("span",{className:D({severity:t}),children:[(0,g.jsx)(u.I,{className:D("icon"),data:F[e]}),(0,g.jsx)("span",{className:D("title"),children:t})]})}},21545:(e,t,a)=>{a.d(t,{X:()=>s});var n=a(78034);const s=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t},{signal:a})=>{try{const[s,r,i]=await Promise.all([window.api.viewer.getTablet({id:e,database:t},{signal:a}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:a}),window.api.viewer.getNodesList({signal:a})]),o=(0,n.nN)(i),l=Object.keys(r).reduce(((e,t)=>{var a;const n=null===(a=r[t])||void 0===a?void 0:a.TabletStateInfo;if(n&&n.length){var s;const a=n.find((e=>e.Leader))||n[0],{ChangeTime:r,Generation:i,State:l,Leader:d,FollowerId:c}=a,u=o&&t?null===(s=o.get(Number(t)))||void 0===s?void 0:s.Host:void 0;"Dead"!==l&&e.push({nodeId:t,generation:i,changeTime:r,state:l,leader:d,followerId:c,fqdn:u})}return e}),[]),{TabletStateInfo:d=[]}=s,[c={}]=d,{TabletId:u}=c;return{data:{id:u,data:c,history:l}}}catch(s){return{error:s}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const a=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:n,PathId:s}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${n}:${s}`}}catch(a){return{error:a}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:a})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:a})}}catch(n){return{error:n}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1414.4cfda0bc.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/1414.4cfda0bc.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/1414.4cfda0bc.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/1414.4cfda0bc.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/1434.ef10d528.chunk.js b/ydb/core/viewer/monitoring/static/js/1434.ef10d528.chunk.js deleted file mode 100644 index 19b15f550f9..00000000000 --- a/ydb/core/viewer/monitoring/static/js/1434.ef10d528.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1434],{22983:(e,t,a)=>{a.d(t,{B:()=>d});var r=a(59284),n=a(84476),s=a(84375),l=a(55974),o=a(42829),i=a(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:a,dialogHeader:d,dialogText:u,retryButtonText:c,buttonDisabled:p=!1,buttonView:h="action",buttonTitle:m,buttonClassName:g,withPopover:b=!1,popoverContent:y,popoverPlacement:v="right",popoverDisabled:x=!0}){const[f,j]=r.useState(!1),[w,C]=r.useState(!1),[N,T]=r.useState(!1),S=()=>(0,i.jsx)(n.$,{onClick:()=>j(!0),view:h,disabled:p,loading:!p&&w,className:g,title:m,children:e});return(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(l.g,{visible:f,header:d,text:u,withRetry:N,retryButtonText:c,onConfirm:async e=>{C(!0),await t(e)},onConfirmActionSuccess:async()=>{T(!1);try{await(null===a||void 0===a?void 0:a())}finally{C(!1)}},onConfirmActionError:e=>{T((0,o.D)(e)),C(!1)},onClose:()=>{j(!1)}}),b?(0,i.jsx)(s.A,{content:y,placement:v,disabled:x,children:S()}):S()]})}},55974:(e,t,a)=>{a.d(t,{g:()=>y});var r=a(59284),n=a(18677),s=a(71153),l=a(74321),o=a(2198),i=a(99991),d=a(89954),u=a(77506),c=a(48372);const p=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),h=(0,c.g4)("ydb-critical-action-dialog",{en:p});var m=a(60712);const g=(0,u.cn)("ydb-critical-dialog"),b=e=>e.data&&"issues"in e.data&&e.data.issues?(0,m.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?h("no-rights-error"):e.statusText?e.statusText:h("default-error");function y({visible:e,header:t,text:a,withRetry:d,retryButtonText:u,withCheckBox:c,onClose:p,onConfirm:y,onConfirmActionSuccess:v,onConfirmActionError:x}){const[f,j]=r.useState(!1),[w,C]=r.useState(),[N,T]=r.useState(!1),S=async e=>(j(!0),y(e).then((()=>{v(),p()})).catch((e=>{x(e),C(e)})).finally((()=>{j(!1)})));return(0,m.jsx)(o.l,{open:e,hasCloseButton:!1,className:g(),size:"s",onClose:p,onTransitionExited:()=>{C(void 0),T(!1)},children:w?(0,m.jsxs)(r.Fragment,{children:[(0,m.jsx)(o.l.Header,{caption:t}),(0,m.jsx)(o.l.Body,{className:g("body"),children:(0,m.jsxs)("div",{className:g("body-message",{error:!0}),children:[(0,m.jsx)("span",{className:g("error-icon"),children:(0,m.jsx)(n.A,{width:"24",height:"22"})}),b(w)]})}),(0,m.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:d?u||h("button-retry"):void 0,textButtonCancel:h("button-close"),onClickButtonApply:()=>S(!0),onClickButtonCancel:p})]}):(0,m.jsxs)(r.Fragment,{children:[(0,m.jsx)(o.l.Header,{caption:t}),(0,m.jsxs)(o.l.Body,{className:g("body"),children:[(0,m.jsxs)("div",{className:g("body-message",{warning:!0}),children:[(0,m.jsx)("span",{className:g("warning-icon"),children:(0,m.jsx)(i.I,{data:s.A,size:24})}),a]}),c?(0,m.jsx)(l.S,{checked:N,onUpdate:T,children:h("checkbox-text")}):null]}),(0,m.jsx)(o.l.Footer,{loading:f,preset:"default",textButtonApply:h("button-confirm"),textButtonCancel:h("button-cancel"),propsButtonApply:{type:"submit",disabled:c&&!N},onClickButtonCancel:p,onClickButtonApply:()=>S()})]})})}},42829:(e,t,a)=>{a.d(t,{D:()=>r});const r=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},2102:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(77506),n=a(60712);const s=(0,r.cn)("ydb-diagnostic-card");function l({children:e,className:t,active:a,size:r="m",interactive:l=!0}){return(0,n.jsx)("div",{className:s({active:a,size:r,interactive:l},t),children:e})}},28539:(e,t,a)=>{a.d(t,{T:()=>r.T});var r=a(53755)},52248:(e,t,a)=>{a.d(t,{a:()=>r.a});var r=a(47334)},9252:(e,t,a)=>{a.d(t,{k:()=>l});var r=a(44433),n=a(88610),s=a(60712);const l=({value:e,onChange:t,className:a})=>(0,s.jsxs)(r.a,{value:e,onUpdate:t,className:a,children:[(0,s.jsx)(r.a.Option,{value:n.s$.ALL,children:n.s$.ALL}),(0,s.jsx)(r.a.Option,{value:n.s$.PROBLEMS,children:n.s$.PROBLEMS})]})},95963:(e,t,a)=>{a.d(t,{v:()=>r.v});var r=a(41775)},80420:(e,t,a)=>{a.d(t,{$:()=>b});var r=a(40336),n=a(63291),s=a(92459),l=a(78668),o=a(31684),i=a(90182),d=a(71661),u=a(10508),c=a(25196),p=a(48372);const h=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),m=(0,p.g4)("ydb-tablet-name-wrapper",{en:h});var g=a(60712);function b({tabletId:e,database:t}){const a=(0,i.N4)(l._5),p=(0,s.DM)(e,{database:t});return(0,g.jsx)(d.s,{disabled:!a,delayClosing:200,content:(0,g.jsx)(r.u,{responsive:!0,children:(0,g.jsx)(r.u.Item,{name:m("field_links"),children:(0,g.jsx)(c.K,{title:m("context_developer-ui"),url:(0,o._t)(e)})})}),placement:["top","bottom"],behavior:n.m.Immediate,children:(0,g.jsx)(u.c,{name:e.toString(),path:p,hasClipboardButton:!0,showStatus:!1})})}},27775:(e,t,a)=>{a.d(t,{i:()=>l});var r=a(47665),n=a(58267),s=a(60712);function l({state:e}){return(0,s.jsx)(r.J,{theme:(0,n._8)(e),children:e})}},7117:(e,t,a)=>{a.d(t,{G:()=>Z});var r=a(59284),n=a(44508),s=a(98167),l=a(89073),o=a(86782),i=a(67028),d=a(15298),u=a(90182),c=a(88610);function p(){const e=(0,u.YQ)();return{problemFilter:(0,u.N4)(c.yV),handleProblemFilterChange:t=>{e((0,c.$u)(t))}}}var h=a(43951),m=a(78034),g=a(71708),b=a(62710),y=a(98089),v=a(29289),x=a(24555),f=a(28539),j=a(9252),w=a(95963),C=a(64934),N=a(44433),T=a(48372);const S=JSON.parse('{"nodes":"Nodes","empty.default":"No such nodes","no-nodes-groups":"No nodes groups","controls_search-placeholder":"Host name","controls_group-by-placeholder":"Group by:","controls_peer-role-label":"Peer role:","database":"database","static":"static","other":"other","any":"any"}'),F=(0,T.g4)("ydb-nodes",{en:S}),I=["database","static","other","any"],R={get database(){return F("database")},get static(){return F("static")},get other(){return F("other")},get any(){return F("any")}};var _=a(60712);function P({value:e="database",onChange:t}){return(0,_.jsx)(N.a,{value:e,onUpdate:t,children:I.map((e=>(0,_.jsx)(N.a.Option,{value:e,children:R[e]},e)))})}const A="nodesTableSelectedColumns",B=["NodeId","Host","Uptime","CPU","RAM","Version","Tablets"],k=["NodeId"],G=["SystemState","Host","DC","Rack","Database","Version","Uptime"];function D(e,t){return t?e:e.filter((e=>"SystemState"!==e))}var L=a(59109);const E=(0,a(77506).cn)("ydb-nodes"),O=e=>E("node",{unavailable:(0,m.X7)(e)}),q=e=>e&&403===e.status?(0,_.jsx)(L.O,{position:"left"}):(0,_.jsx)(n.o,{error:e});var U=a(67087);function $(e){var t;const[a,r]=(0,U.useQueryParams)({uptimeFilter:U.StringParam,peerRole:U.StringParam,search:U.StringParam,nodesGroupBy:U.StringParam}),n=m.Bm.parse(a.uptimeFilter),s=null!==(t=a.search)&&void 0!==t?t:"",l=(o=a.peerRole,I.find((e=>e===o)));var o;const d=(0,i.DM)(),u=function(e,t,a){return D(t,a).find((t=>t===e))}(a.nodesGroupBy,null!==e&&void 0!==e?e:[],d);return{uptimeFilter:n,searchValue:s,peerRoleFilter:l,groupByParam:u,handleSearchQueryChange:e=>{r({search:e||void 0},"replaceIn")},handleUptimeFilterChange:e=>{r({uptimeFilter:e},"replaceIn")},handlePeerRoleFilterChange:e=>{r({peerRole:e},"replaceIn")},handleGroupByParamChange:e=>{r({nodesGroupBy:e},"replaceIn")}}}function V({withGroupBySelect:e,groupByParams:t=[],withPeerRoleFilter:a,columnsToSelect:n,handleSelectedColumnsUpdate:s,entitiesCountCurrent:l,entitiesCountTotal:d,entitiesLoading:u}){const{searchValue:c,uptimeFilter:h,peerRoleFilter:m,groupByParam:g,handleSearchQueryChange:b,handleUptimeFilterChange:N,handlePeerRoleFilterChange:T,handleGroupByParamChange:S}=$(t),{problemFilter:I,handleProblemFilterChange:R}=p(),A=(0,i.DM)(),B=function(e,t){return D(e,t).map((e=>({value:e,content:(0,o.kn)(e)})))}(t,A),k=(0,i.WF)(),G=a&&k;return(0,_.jsxs)(r.Fragment,{children:[(0,_.jsx)(w.v,{onChange:b,placeholder:F("controls_search-placeholder"),width:238,value:c}),A&&e?null:(0,_.jsx)(j.k,{value:I,onChange:R}),e?null:(0,_.jsx)(C.j,{value:h,onChange:N}),G?(0,_.jsxs)(r.Fragment,{children:[(0,_.jsx)(y.E,{variant:"body-2",children:F("controls_peer-role-label")}),(0,_.jsx)(P,{value:m,onChange:T})]}):null,(0,_.jsx)(v.O,{popupWidth:200,items:n,showStatus:!0,onUpdate:s,sortable:!1}),e?(0,_.jsxs)(r.Fragment,{children:[(0,_.jsx)(y.E,{variant:"body-2",children:F("controls_group-by-placeholder")}),(0,_.jsx)(x.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:g?[g]:void 0,onUpdate:e=>{S(e[0])},options:B,className:E("group-by-select"),popupClassName:E("group-by-popup")})]}):null,(0,_.jsx)(f.T,{current:l,total:d,label:F("nodes"),loading:u})]})}var H=a(78524),M=a(40427),Q=a(11906),K=a(69464),W=a(40781);const z=async e=>{const{type:t="any",storage:a=!1,tablets:r=!0,limit:n,offset:s,sortParams:l,filters:i,columnsIds:d}=e,{sortOrder:u,columnId:c}=null!==l&&void 0!==l?l:{},{path:p,database:h,searchValue:g,problemFilter:b,uptimeFilter:y,peerRoleFilter:v,filterGroup:x,filterGroupBy:f}=null!==i&&void 0!==i?i:{},j=(0,o.kU)(c),w=j?(0,K.T)(j,u):void 0,C=(0,W.R)(d,o.fN),N=await window.api.viewer.getNodes({type:t,storage:a,tablets:r,limit:n,offset:s,sort:w,path:p,database:h,filter:g,problems_only:(0,m.AB)(b),uptime:(0,m.Fo)(y),filter_peer_role:v,filter_group:x,filter_group_by:f,fieldsRequired:C}),T=(0,Q.N)(N);return{data:T.Nodes||[],found:T.FoundNodes||0,total:T.TotalNodes||0}};function J({path:e,database:t,searchValue:a,problemFilter:n,uptimeFilter:s,peerRoleFilter:l,filterGroup:i,filterGroupBy:d,columns:u,parentRef:c,renderControls:p,initialEntitiesCount:h}){const g=r.useMemo((()=>({path:e,database:t,searchValue:a,problemFilter:n,uptimeFilter:s,peerRoleFilter:l,filterGroup:i,filterGroupBy:d})),[e,t,a,n,s,l,i,d]);return(0,_.jsx)(M.k5,{columnsWidthLSKey:o.zO,parentRef:c,columns:u,fetchData:z,limit:50,initialEntitiesCount:h,renderControls:p,renderErrorMessage:q,renderEmptyDataMessage:()=>"All"!==n||s!==m.cW.All?(0,_.jsx)(H.v,{name:"thumbsUp",width:"200"}):F("empty.default"),getRowClassName:O,filters:g,tableName:"nodes"})}var X=a(78762);function Y(e){return[(0,X._E)(),(0,X.Nh)(e),(0,X.eT)(),(0,X.uk)(),(0,X.OX)(),(0,X.jl)(),(0,X.fr)(),(0,X.kv)(),(0,X.pH)(),(0,X.iX)(),(0,X.ID)(),(0,X.Rn)(),(0,X.qp)(e)].map((e=>({...e,sortable:(0,o.sp)(e.name)})))}function Z({path:e,database:t,parentRef:a,additionalNodesProps:n,withPeerRoleFilter:l,columns:o=Y({database:t,getNodeRef:null===n||void 0===n?void 0:n.getNodeRef}),defaultColumnsIds:d=B,requiredColumnsIds:u=k,selectedColumnsKey:c=A,groupByParams:h=G}){const{uptimeFilter:g,groupByParam:b,handleUptimeFilterChange:y}=$(h),{problemFilter:v,handleProblemFilterChange:x}=p(),f=(0,i.Pm)(),j=(0,i.Ye)();r.useEffect((()=>{!j||"All"===v&&g===m.cW.All||(x("All"),y(m.cW.All))}),[x,y,v,g,j]);return(0,_.jsx)(s.r,{loading:!f,children:j&&b?(0,_.jsx)(te,{path:e,database:t,parentRef:a,withPeerRoleFilter:l,columns:o,defaultColumnsIds:d,requiredColumnsIds:u,selectedColumnsKey:c,groupByParams:h}):(0,_.jsx)(ee,{path:e,database:t,parentRef:a,withPeerRoleFilter:l,columns:o,defaultColumnsIds:d,requiredColumnsIds:u,selectedColumnsKey:c,groupByParams:h})})}function ee({path:e,database:t,parentRef:a,withPeerRoleFilter:r,columns:n,defaultColumnsIds:s,requiredColumnsIds:l,selectedColumnsKey:d,groupByParams:u}){const{searchValue:c,uptimeFilter:m,peerRoleFilter:g}=$(u),{problemFilter:b}=p(),y=(0,i.Ye)(),{columnsToShow:v,columnsToSelect:x,setColumns:f}=(0,h.K)(n,d,o.uG,s,l);return(0,_.jsx)(J,{path:e,database:t,searchValue:c,problemFilter:b,uptimeFilter:m,peerRoleFilter:g,columns:v,parentRef:a,renderControls:({totalEntities:e,foundEntities:t,inited:a})=>(0,_.jsx)(V,{withGroupBySelect:y,groupByParams:u,withPeerRoleFilter:r,columnsToSelect:x,handleSelectedColumnsUpdate:f,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!a})})}function te({path:e,database:t,parentRef:a,withPeerRoleFilter:r,columns:s,defaultColumnsIds:i,requiredColumnsIds:c,selectedColumnsKey:p,groupByParams:y}){const{searchValue:v,peerRoleFilter:x,groupByParam:f}=$(y),[j]=(0,u.Nt)(),{columnsToShow:w,columnsToSelect:C,setColumns:N}=(0,h.K)(s,p,o.uG,i,c),{currentData:T,isFetching:S,error:I}=d.s.useGetNodesQuery({path:e,database:t,filter:v,filter_peer_role:x,group:f,limit:0},{pollingInterval:j}),R=void 0===T&&S,{NodeGroups:P,FoundNodes:A=0,TotalNodes:B=0}=T||{},{expandedGroups:k,setIsGroupExpanded:G}=(0,b.$)(P);return(0,_.jsxs)(l.L,{children:[(0,_.jsx)(l.L.Controls,{children:(0,_.jsx)(V,{withGroupBySelect:!0,groupByParams:y,withPeerRoleFilter:r,columnsToSelect:C,handleSelectedColumnsUpdate:N,entitiesCountCurrent:A,entitiesCountTotal:B,entitiesLoading:R})}),I?(0,_.jsx)(n.o,{error:I}):null,(0,_.jsx)(l.L.Table,{loading:R,className:E("groups-wrapper"),children:null!==P&&void 0!==P&&P.length?P.map((({name:r,count:n})=>{const s=k[r];return(0,_.jsx)(g.Q,{title:r,count:n,entityName:F("nodes"),expanded:s,onIsExpandedChange:G,children:(0,_.jsx)(J,{path:e,database:t,searchValue:v,problemFilter:"All",uptimeFilter:m.cW.All,peerRoleFilter:x,filterGroup:r,filterGroupBy:f,initialEntitiesCount:n,columns:w,parentRef:a})},r)})):F("no-nodes-groups")})]})}},88616:(e,t,a)=>{a.d(t,{Q:()=>S});var r=a(76938),n=a(98089),s=a(99991),l=a(22983),o=a(10508),i=a(44294),d=a(17594),u=a(19228),c=a(80420),p=a(27775),h=a(78668),m=a(21545),g=a(6354),b=a(76086),y=a(86200),v=a(90182),x=a(29819),f=a(48372);const j=JSON.parse('{"noTabletsData":"No tablets data","Type":"Type","Tablet":"Tablet","State":"State","Node ID":"Node ID","Node FQDN":"Node FQDN","Generation":"Generation","Uptime":"Uptime","dialog.kill-header":"Restart tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet"}'),w=(0,f.g4)("ydb-tablets",{en:j});var C=a(60712);function N({database:e}){return[{name:"Type",width:150,get header(){return w("Type")},render:({row:e})=>{const t=!1===e.Leader;return(0,C.jsxs)("span",{children:[e.Type," ",t?(0,C.jsx)(n.E,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return w("Tablet")},render:({row:t})=>t.TabletId?(0,C.jsx)(c.$,{tabletId:t.TabletId,database:e}):b.Pd},{name:"State",get header(){return w("State")},render:({row:e})=>(0,C.jsx)(p.i,{state:e.State})},{name:"NodeId",get header(){return w("Node ID")},render:({row:e})=>{const t=void 0===e.NodeId?void 0:(0,x.vI)(e.NodeId);return(0,C.jsx)(i.E,{to:t,children:e.NodeId})},align:"right"},{name:"fqdn",get header(){return w("Node FQDN")},render:({row:e})=>e.fqdn?(0,C.jsx)(o.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,C.jsx)("span",{children:"\u2014"})},{name:"Generation",get header(){return w("Generation")},align:"right"},{name:"Uptime",get header(){return w("Uptime")},render:({row:e})=>(0,y.H7)(e.ChangeTime),sortAccessor:e=>-Number(e.ChangeTime),align:"right"},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:e})=>(0,C.jsx)(T,{...e})}]}function T(e){const t=e.State===g.r.Stopped,a=(0,v.N4)(h._5),[n]=m.X.useKillTabletMutation(),o=e.TabletId;return o?(0,C.jsx)(l.B,{buttonView:"outlined",buttonTitle:w("dialog.kill-header"),dialogHeader:w("dialog.kill-header"),dialogText:w("dialog.kill-text"),onConfirmAction:()=>n({id:o}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:w(a?"dialog.kill-header":"controls.kill-not-allowed"),popoverPlacement:["right","auto"],popoverDisabled:!1,children:(0,C.jsx)(s.I,{data:r.A})}):null}function S({database:e,tablets:t,className:a,loading:r}){return r?(0,C.jsx)(u.Q,{}):(0,C.jsx)(d.l,{wrapperClassName:a,columns:N({database:e}),data:t,settings:b.N3,emptyDataMessage:w("noTabletsData")})}},89954:(e,t,a)=>{a.d(t,{O:()=>S});var r=a(59284),n=a(45720),s=a(16929),l=a(71153),o=a(18677),i=a(84476),d=a(33705),u=a(99991),c=a(67884),p=a(77506),h=a(48372);const m=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),g=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),b=(0,h.g4)("ydb-shorty-string",{ru:g,en:m});var y=a(60712);const v=(0,p.cn)("kv-shorty-string");function x({value:e="",limit:t=200,strict:a=!1,displayLength:n=!0,render:s=e=>e,onToggle:l,expandLabel:o=b("default_expand_label"),collapseLabel:i=b("default_collapse_label")}){const[d,u]=r.useState(!1),p=(d?i:o)+(n&&!d?b("chars_count",{count:e.length}):""),h=e.length>t+(a?0:p.length),m=d||!h?e:e.slice(0,t-4)+"\xa0...";return(0,y.jsxs)("div",{className:v(),children:[s(m),h?(0,y.jsx)(c.N,{className:v("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===l||void 0===l||l()},children:p}):null]})}var f=a(41650);const j=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function w(e){return function(e){return!!e&&void 0!==j[e]}(e)?j[e]:"S_INFO"}const C=(0,p.cn)("kv-result-issues"),N=(0,p.cn)("kv-issues"),T=(0,p.cn)("kv-issue");function S({data:e,hideSeverity:t}){const[a,n]=r.useState(!1),s="string"===typeof e||null===e||void 0===e?void 0:e.issues,l=Array.isArray(s)&&s.length>0;return(0,y.jsxs)("div",{className:C(),children:[(0,y.jsxs)("div",{className:C("error-message"),children:[(()=>{let a;if("string"===typeof e)a=e;else{var n,s;const l=w(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.severity);a=(0,y.jsxs)(r.Fragment,{children:[t?null:(0,y.jsxs)(r.Fragment,{children:[(0,y.jsx)(A,{severity:l})," "]}),(0,y.jsx)("span",{className:C("error-message-text"),children:null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.message})]})}return a})(),l&&(0,y.jsx)(i.$,{view:"normal",onClick:()=>n(!a),children:a?"Hide details":"Show details"})]}),l&&a&&(0,y.jsx)(F,{hideSeverity:t,issues:s})]})}function F({issues:e,hideSeverity:t}){const a=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var a;const r=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,r)}),10);return(0,y.jsx)("div",{className:N(null),children:null===e||void 0===e?void 0:e.map(((e,r)=>(0,y.jsx)(I,{hideSeverity:t,issue:e,expanded:e===a},r)))})}function I({issue:e,hideSeverity:t,level:a=0}){const[n,s]=r.useState(!0),l=w(e.severity),o=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,f.kf)(t.row))return"";const{row:a,column:r}=t;return(0,f.kf)(r)?`${a}:${r}`:`line ${a}`}(e),u=e.issues,c=Array.isArray(u)&&u.length>0,p=n?"bottom":"right";return(0,y.jsxs)("div",{className:T({leaf:!c,"has-issues":c}),children:[(0,y.jsxs)("div",{className:T("line"),children:[c&&(0,y.jsx)(i.$,{view:"flat-secondary",onClick:()=>s(!n),className:T("arrow-toggle"),children:(0,y.jsx)(d.I,{direction:p,size:16})}),t?null:(0,y.jsx)(A,{severity:l}),(0,y.jsxs)("span",{className:T("message"),children:[o&&(0,y.jsx)("span",{className:T("place-text"),title:"Position",children:o}),(0,y.jsx)("div",{className:T("message-text"),children:(0,y.jsx)(x,{value:e.message,expandLabel:"Show full message"})})]}),e.issue_code?(0,y.jsxs)("span",{className:T("code"),children:["Code: ",e.issue_code]}):null]}),c&&n&&(0,y.jsx)("div",{className:T("issues"),children:(0,y.jsx)(R,{issues:u,level:a+1,expanded:n})})]})}function R(e){const{issues:t,level:a,expanded:r}=e;return(0,y.jsx)("div",{className:T("list"),children:t.map(((e,t)=>(0,y.jsx)(I,{issue:e,level:a,expanded:r},t)))})}const _={S_INFO:n.A,S_WARNING:s.A,S_ERROR:l.A,S_FATAL:o.A},P=(0,p.cn)("yql-issue-severity");function A({severity:e}){const t=e.slice(2).toLowerCase();return(0,y.jsxs)("span",{className:P({severity:t}),children:[(0,y.jsx)(u.I,{className:P("icon"),data:_[e]}),(0,y.jsx)("span",{className:P("title"),children:t})]})}},15298:(e,t,a)=>{a.d(t,{s:()=>s});var r=a(21334),n=a(11906);const s=r.F.injectEndpoints({endpoints:e=>({getNodes:e.query({queryFn:async(e,{signal:t})=>{try{const a=await window.api.viewer.getNodes({type:"any",storage:!1,tablets:!0,...e},{signal:t});return{data:(0,n.N)(a)}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"})},21545:(e,t,a)=>{a.d(t,{X:()=>n});var r=a(78034);const n=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t},{signal:a})=>{try{const[n,s,l]=await Promise.all([window.api.viewer.getTablet({id:e,database:t},{signal:a}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:a}),window.api.viewer.getNodesList({signal:a})]),o=(0,r.pl)(l),i=Object.keys(s).reduce(((e,t)=>{var a;const r=null===(a=s[t])||void 0===a?void 0:a.TabletStateInfo;if(r&&r.length){const a=r.find((e=>e.Leader))||r[0],{ChangeTime:n,Generation:s,State:l,Leader:i,FollowerId:d}=a,u=o&&t?o.get(Number(t)):void 0;"Dead"!==l&&e.push({nodeId:t,generation:s,changeTime:n,state:l,leader:i,followerId:d,fqdn:u})}return e}),[]),{TabletStateInfo:d=[]}=n,[u={}]=d,{TabletId:c}=u;return{data:{id:c,data:u,history:i}}}catch(n){return{error:n}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const a=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:r,PathId:n}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${r}:${n}`}}catch(a){return{error:a}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:a})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:a})}}catch(r){return{error:r}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1489.6247c5c2.chunk.js b/ydb/core/viewer/monitoring/static/js/1489.6247c5c2.chunk.js deleted file mode 100644 index c6e7aed958e..00000000000 --- a/ydb/core/viewer/monitoring/static/js/1489.6247c5c2.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1489],{3685:(e,i,s)=>{s.d(i,{$:()=>a});var t=s(77506),d=s(33775),o=s(60712);const n=(0,t.cn)("ydb-entity-page-title");function a({entityName:e,status:i,id:s,className:t}){return(0,o.jsxs)("div",{className:n(null,t),children:[(0,o.jsx)("span",{className:n("prefix"),children:e}),(0,o.jsx)(d.k,{className:n("icon"),status:i,size:"s"}),s]})}},42655:(e,i,s)=>{s.d(i,{y:()=>c});var t=s(59284),d=s(89169),o=s(77506),n=s(66781),a=s(60712);const l=(0,o.cn)("ydb-info-viewer-skeleton"),r=()=>(0,a.jsxs)("div",{className:l("label"),children:[(0,a.jsx)(d.E,{className:l("label__text")}),(0,a.jsx)("div",{className:l("label__dots")})]}),c=({rows:e=8,className:i,delay:s=600})=>{const[o]=(0,n.y)(s);let c=(0,a.jsxs)(t.Fragment,{children:[(0,a.jsx)(r,{}),(0,a.jsx)(d.E,{className:l("value")})]});return o||(c=null),(0,a.jsx)("div",{className:l(null,i),children:[...new Array(e)].map(((e,i)=>(0,a.jsx)("div",{className:l("row"),children:c},`skeleton-row-${i}`)))})}},58389:(e,i,s)=>{s.d(i,{B:()=>c});var t=s(87184),d=s(77506),o=s(90053),n=s(70043),a=s(60712);const l=(0,d.cn)("ydb-page-meta");function r({items:e,loading:i}){return(0,a.jsx)("div",{className:l("info"),children:i?(0,a.jsx)(n.E,{className:l("skeleton")}):e.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c({className:e,...i}){return(0,a.jsxs)(t.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:l(null,e),children:[(0,a.jsx)(r,{...i}),(0,a.jsx)(o.E,{})]})}},70043:(e,i,s)=>{s.d(i,{E:()=>n});var t=s(89169),d=s(66781),o=s(60712);const n=({delay:e=600,className:i})=>{const[s]=(0,d.y)(e);return s?(0,o.jsx)(t.E,{className:i}):null}},80208:(e,i,s)=>{s.r(i),s.d(i,{VDiskPage:()=>E});var t=s(59284);const d=e=>t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),t.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.28 4.78a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 1 0-1.06 1.06L6.94 3.5H1.75a.75.75 0 1 0 0 1.5h5.19L5.72 6.22a.75.75 0 1 0 1.06 1.06l2.5-2.5Zm-.06 3.94-2.5 2.5a.75.75 0 0 0 0 1.06l2.5 2.5a.75.75 0 1 0 1.06-1.06L9.06 12.5h5.19a.75.75 0 0 0 0-1.5H9.06l1.22-1.22a.75.75 0 1 0-1.06-1.06ZM14 4.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0ZM3.75 13.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z",clipRule:"evenodd"}));var o=s(99991),n=s(44992),a=s(61750),l=s(67087),r=s(22983),c=s(3685),v=s(44508),u=s(42655),k=s(58389),D=s(67440),g=s(21334),p=s(78668),m=s(67028),I=s(40174),f=s(7187),x=s(27295),N=s(78034);const h=g.F.injectEndpoints({endpoints:e=>({getVDiskData:e.query({queryFn:async({nodeId:e,pDiskId:i,vDiskSlotId:s},{signal:t})=>{try{const d=await Promise.all([window.api.viewer.getVDiskInfo({nodeId:e,pDiskId:i,vDiskSlotId:s},{signal:t}),window.api.viewer.getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:i},{signal:t}),window.api.viewer.getNodeInfo(e,{signal:t})]);return{data:function([e,i,s]){var t,d,o,n,a,l,r;const c=null===(t=e.VDiskStateInfo)||void 0===t?void 0:t[0],v=(0,x.WT)(c),u=null===(d=i.PDiskStateInfo)||void 0===d?void 0:d[0],k=(0,x.or)(u),D=null===(o=s.SystemStateInfo)||void 0===o?void 0:o[0],g=(0,N.q1)(D),p=null!==(n=null!==(a=v.NodeId)&&void 0!==a?a:k.NodeId)&&void 0!==n?n:g.NodeId,m=g.Host,I=null===(l=g.Roles)||void 0===l?void 0:l[0],f=g.DC,h=null!==(r=v.PDiskId)&&void 0!==r?r:k.PDiskId,y=k.Type;return{...v,NodeId:p,NodeHost:m,NodeType:I,NodeDC:f,PDiskId:h,PDiskType:y}}(d)}}catch(d){return{error:d}}},providesTags:(e,i,s)=>["All",{type:"VDiskData",id:(0,f.gh)(s.nodeId,s.pDiskId,s.vDiskSlotId)}]})}),overrideExisting:"throw"});var y=s(7435),w=s(77506),j=s(90182),b=s(41122),S=s(48372);const $=JSON.parse('{"fqdn":"FQDN","node":"Node","pdisk":"PDisk","vdisk":"VDisk","storage":"Storage","evict-vdisk-button":"Evict VDisk","force-evict-vdisk-button":"Evict anyway","evict-vdisk-dialog-header":"Evict VDisk","evict-vdisk-dialog-text":"VDisk will be evicted. Do you want to proceed?","evict-vdisk-not-allowed":"You don\'t have enough rights to evict VDisk"}'),P=(0,S.g4)("ydb-vDisk-page",{en:$});var V=s(60712);const T=(0,w.cn)("ydb-vdisk-page");function E(){const e=(0,j.YQ)(),i=t.useRef(null),s=(0,j.N4)(p._5),x=(0,m.c2)(),[{nodeId:N,pDiskId:w,vDiskSlotId:S}]=(0,l.useQueryParams)({nodeId:l.StringParam,pDiskId:l.StringParam,vDiskSlotId:l.StringParam});t.useEffect((()=>{e((0,I.g)("vDisk",{nodeId:N,pDiskId:w,vDiskSlotId:S}))}),[e,N,w,S]);const[$]=(0,j.Nt)(),E=(0,y.f8)(N)&&(0,y.f8)(w)&&(0,y.f8)(S)?{nodeId:N,pDiskId:w,vDiskSlotId:S}:n.hT,{currentData:C={},isFetching:_,error:B}=h.useGetVDiskDataQuery(E,{pollingInterval:$}),F=_&&void 0===C,{NodeHost:R,NodeId:H,NodeType:q,NodeDC:G,PDiskId:M,PDiskType:Y,Severity:A,VDiskId:Q}=C,{GroupID:Z,GroupGeneration:L,Ring:O,Domain:W,VDisk:z}=Q||{},J=(0,y.f8)(Z)&&(0,y.f8)(L)&&(0,y.f8)(O)&&(0,y.f8)(W)&&(0,y.f8)(z),X=async e=>{if(J)return(x?window.api.vdisk.evictVDisk:window.api.tablets.evictVDiskOld)({groupId:Z,groupGeneration:L,failRealmIdx:O,failDomainIdx:W,vDiskIdx:z,force:e}).then((e=>{if(!1===(null===e||void 0===e?void 0:e.result)){throw{statusText:e.error,retryPossible:e.forceRetryPossible}}}))},K=()=>{e(g.F.util.invalidateTags([{type:"VDiskData",id:(0,f.gh)(N||0,w||0,S||0)},"StorageData"]))};return(0,V.jsxs)("div",{className:T(null),ref:i,children:[(()=>{const e=S?`${P("vdisk")} ${S}`:P("vdisk"),i=w?`${P("pdisk")} ${w}`:P("pdisk"),s=R||P("node");return(0,V.jsx)(a.mg,{titleTemplate:`%s - ${e} - ${i} \u2014 ${s} \u2014 YDB Monitoring`,defaultTitle:`${e} - ${i} \u2014 ${s} \u2014 YDB Monitoring`})})(),(()=>{const e=R?`${P("fqdn")}: ${R}`:void 0,i=H?`${P("node")}: ${H}`:void 0,s=H?`${P("pdisk")}: ${M}`:void 0;return(0,V.jsx)(k.B,{className:T("meta"),loading:F,items:[e,i,q,G,s,Y]})})(),(0,V.jsx)(c.$,{className:T("title"),entityName:P("vdisk"),status:(0,f.XY)(A),id:null===C||void 0===C?void 0:C.StringifiedId}),(0,V.jsx)("div",{className:T("controls"),children:(0,V.jsxs)(r.B,{onConfirmAction:X,onConfirmActionSuccess:K,buttonDisabled:!J||!s,buttonView:"normal",dialogHeader:P("evict-vdisk-dialog-header"),dialogText:P("evict-vdisk-dialog-text"),retryButtonText:P("force-evict-vdisk-button"),withPopover:!0,popoverContent:P("evict-vdisk-not-allowed"),popoverDisabled:s,children:[(0,V.jsx)(o.I,{data:d}),P("evict-vdisk-button")]})}),F?(0,V.jsx)(u.y,{rows:20}):(0,V.jsxs)(t.Fragment,{children:[B?(0,V.jsx)(v.o,{error:B}):null,(0,V.jsx)(D.E,{data:C,className:T("info")}),(0,y.f8)(Z)&&(0,y.f8)(N)?(0,V.jsxs)(t.Fragment,{children:[(0,V.jsx)("div",{className:T("storage-title"),children:P("storage")}),(0,V.jsx)(b.p,{groupId:Z,nodeId:N,pDiskId:null!==w&&void 0!==w?w:void 0,vDiskSlotId:null!==S&&void 0!==S?S:void 0,parentRef:i})]}):null]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1606.87e97214.chunk.js b/ydb/core/viewer/monitoring/static/js/1606.0041ed7d.chunk.js index b20f19e5b2c..26df60a8496 100644 --- a/ydb/core/viewer/monitoring/static/js/1606.87e97214.chunk.js +++ b/ydb/core/viewer/monitoring/static/js/1606.0041ed7d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 1606.87e97214.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1606],{1606:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>l,language:()=>m});var o,r,i=n(32858),s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,g=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of a(t))p.call(e,r)||r===n||s(e,r,{get:()=>t[r],enumerable:!(o=c(t,r))||o.enumerable});return e},d={};g(d,o=i,"default"),r&&g(r,o,"default");var l={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:d.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:d.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:d.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:d.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")}}},m={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"}]}}}}]);
\ No newline at end of file +/*! For license information please see 1606.0041ed7d.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1606],{1606:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>l,language:()=>m});var o,r,i=n(80781),s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,g=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of a(t))p.call(e,r)||r===n||s(e,r,{get:()=>t[r],enumerable:!(o=c(t,r))||o.enumerable});return e},d={};g(d,o=i,"default"),r&&g(r,o,"default");var l={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:d.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:d.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:d.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:d.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")}}},m={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"}]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1606.87e97214.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/1606.0041ed7d.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/1606.87e97214.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/1606.0041ed7d.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/1836.1c94b54f.chunk.js b/ydb/core/viewer/monitoring/static/js/1836.1c94b54f.chunk.js new file mode 100644 index 00000000000..b31e3a71c5e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/1836.1c94b54f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1836],{81836:(e,t,i)=>{i.r(t),i.d(t,{default:()=>P});var s=i(59284),n=i(23936),o=i.n(n),l=i(905),r=i.n(l),a=i(8964),u=i(42392),c=i(22680),d=i(14750),h=i(68724),f=i(17148),p=i.n(f),g=i(66643);function m(e){const t=document.createElement("span");return t.innerText=e,t.innerHTML}const _="data-series-name",v="data-series-idx",y="_tooltip",b="_tooltip-row",w=()=>"<td />",E=e=>`<td class="_tooltip-rows__bubble-td">\n <div class="_tooltip-rows__bubble-div" style="background-color:${e.seriesColor};"></div>\n </td>`,S=e=>`<td class="_tooltip-rows__name-td">\n ${e.hideSeriesName?"":m(e.seriesName)}\n </td>`,x=e=>`<td class="_tooltip-rows__percent-td">\n ${e.percentValue?e.percentValue+"%":""}\n </td>`,A=e=>`<td class="_tooltip-rows__value-td">\n ${e.value}\n </td>`,T=e=>`<td class="_tooltip-rows__diff-td">\n ${e.diff?` (${e.diff})`:""}\n </td>`,O=(e,t=!1,i=1)=>`<td class="_tooltip-right__td ${t?"_tooltip-right__td_with-split-tooltip":""}" colspan="${i||1}">\n ${e.holiday?`<div class="_tooltip-right__holiday-div">\n <div class="_tooltip-right__holiday-emoji">\ud83c\udf88</div>\n <div>\n ${e.holidayText}\n ${e.region?`<span class="_tooltip-right__holiday-region">[${e.region}]</span>`:""}\n </div>\n </div>`:""}\n\n ${e.commentDateText?`<div class="${e.xComments?"_tooltip-right__margin-bot":""}">${e.commentDateText}</div>`:""}\n\n ${e.xComments?e.xComments.map((e=>`<div class="_tooltip-right__traf-div ${t?"_tooltip-right__traf-div_for-split-tooltip":""}" style="border-color: ${e.color};">${e.text}</div>`)).join(""):""}\n </td>`,L=(e,{isSelectedLine:t,cellsRenderers:i,isSingleLine:s,allowComment:n,withDarkBackground:o,rowIndex:l})=>{const r=e.commentText||e.xyCommentText,a=n&&r,u=i.slice(),c=`${String(l)||""}-${String(m(e.seriesName)).slice(0,20).replace(/(\r\n|\n|\r)/gm,"")}`;return e.insertCellAt&&(Object.keys(e.insertCellAt)||[]).forEach((e=>{u.splice(Number(e),0,w)})),e.customRender?`<tr class="${b}${t?" _tooltip-selected-row":""}${s?" _tooltip-uniq-row":""}${o?" _tooltip-row-dark-bg":""}" ${_}="${c}" ${e.seriesIdx?`${v}="${e.seriesIdx}"`:""}>\n ${0===e.customRender.trim().indexOf("<td")?e.customRender:`<td colspan="${i.length}">${e.customRender}</td>`}\n </tr>\n ${a?`<tr class="_tooltip-comment-row${t?" _tooltip-selected-row":""}${o?" _tooltip-row-dark-bg":""}">\n <td>\n ${e.commentText?`<div class="_tooltip-rows__comment-div">${e.commentText}</div>`:""}\n ${e.xyCommentText?`<div class="_tooltip-rows__comment-div">${e.xyCommentText}</div>`:""}\n </td>\n </tr>`:""}`:`<tr class="${b}${t?" _tooltip-selected-row":""}${s?" _tooltip-uniq-row":""}${o?" _tooltip-row-dark-bg":""}" ${_}="${c}" ${e.seriesIdx?`${v}="${e.seriesIdx}"`:""}>\n ${u.map(((t,i)=>e.replaceCellAt&&e.replaceCellAt[i]?"string"===typeof e.replaceCellAt[i]?e.replaceCellAt[i]:e.replaceCellAt[i](e):e.insertCellAt&&e.insertCellAt[i]?"string"===typeof e.insertCellAt[i]?e.insertCellAt[i]:e.insertCellAt[i](e):t(e))).join("")}\n </tr>\n\n ${a?`<tr class="_tooltip-comment-row${t?" _tooltip-selected-row":""}${o?" _tooltip-row-dark-bg":""}">\n <td colspan="4">\n ${e.commentText?`<div class="_tooltip-rows__comment-div">${e.commentText}</div>`:""}\n ${e.xyCommentText?`<div class="_tooltip-rows__comment-div">${e.xyCommentText}</div>`:""}\n </td>\n </tr>`:""}`},I=(e,t)=>{const{splitTooltip:i,activeRowAlwaysFirstInTooltip:s}=e,n=e.lines.findIndex((({selectedSeries:e})=>e)),o=e.lines[n],l=e.lines.slice(0,(t.lastVisibleRowIndex||e.lines.length)+1),r=[];r.push(E),e.shared&&r.push(S),e.withPercent&&r.push(x),r.push(A),e.useCompareFrom&&r.push(T);const u={isSingleLine:1===l.length,cellsRenderers:r},c={cellsRenderers:r,useCompareFrom:e.useCompareFrom,isSelectedLine:!0,allowComment:n>t.lastVisibleRowIndex},d=document.body.clientHeight/(window.visualViewport&&window.visualViewport.scale||1);let h=y;return i&&(h+=` ${y}_split-tooltip`),`\n<div class="${h}" style="max-height: ${i?"auto":`${d}px`}">\n ${e.tooltipHeader?`<div title="${(document.createRange().createContextualFragment(e.tooltipHeader).textContent||"").trim()}" class="_tooltip-date">\n ${e.tooltipHeader.trim()}\n </div>`:""}\n ${i&&(e.holiday||e.commentDateText||e.xComments&&e.xComments.length)?`<table border="0" cellpadding="0" cellspacing="0">\n <tbody>\n <tr>\n ${O(e,!0,r.length)}\n </tr>\n </tbody>\n </table>`:""}\n <table border="0" cellpadding="0" cellspacing="0">\n <tr>\n <td class="_tooltip-left__td">\n <table class="_tooltip-rows__table">\n ${i?"":`<thead class=_tooltip-header>\n ${o&&(s||t.lastVisibleRowIndex&&n>t.lastVisibleRowIndex)?L(o,c):""}\n <tr class="_tooltip-fake-row">${Array(r.length).fill("<td></td>").join("")}</tr>\n </thead>`}\n <tbody class="_tooltip-list">\n ${l.map(((e,t)=>L(e,function(e){return Object.assign(Object.assign({},u),{rowIndex:e,isSelectedLine:l.length>1&&e===n,withDarkBackground:l.length>2&&Boolean(e%2),allowComment:e!==n||!c.allowComment})}(t)))).join("")}\n </tbody>\n ${i?"":`<tbody class="_tooltip-footer">\n ${t.lastVisibleRowIndex&&e.hiddenRowsNumber>0?`<tr class="${b} _hidden-rows-sum${l.length%2?" _hidden-rows-sum-dark-bg":""}">\n <td colspan="${r.length-1}" class="_hidden-rows-number">\n ${(0,a.R)("common","tooltip-rest")} ${e.hiddenRowsNumber}\n </td>\n <td class="_hidden-rows-value">${e.hiddenRowsSum}</td>\n </tr>`:""}\n <tr class="_tooltip-fake-row">${Array(r.length).fill("<td></td>").join("")}</tr>\n ${e.sum?`<tr class="_tooltip-rows__summ-tr">\n <td class="_tooltip-rows__summ-td" colspan="${r.length-1}">${(0,a.R)("common","tooltip-sum")}</td>\n <td class="_tooltip-rows__summ-td _tooltip-rows__summ-td-value">\n ${e.sum}\n </td>\n </tr>`:""}\n </tbody>`}\n </table>\n </td>\n\n ${!i&&(e.holiday||e.commentDateText||e.xComments&&e.xComments.length)?O(e):""}\n </tr>\n </table>\n</div>`},D=e=>"object"===typeof e&&null!==e?Object.values(e).reduce(((e,t)=>t)):e,M=e=>{var t;const{data:i,userData:s,row:n,rowIndex:o}=e,l=s.graphs[o],r=null===(t=i.yagr.getSeriesById(n.id))||void 0===t?void 0:t.lineColor;let a=n.color;if("lineColor"===(null===l||void 0===l?void 0:l.legendColorKey))r&&(a=r);else a=n.color;return a},k=(e=1,t)=>(i,s)=>{const n=(s[s.length-1]-s[0])/e;return s.map((i=>{const s=(0,d.KQ)({input:i/e,timeZone:t});return 0===s.hour()&&0===s.minute()&&0===s.second()?s.format("DD.MM.YY"):s.format(n<300?"HH:mm:ss":"HH:mm")}))},C=(e,t)=>i=>{const s=i/((null===e||void 0===e?void 0:e.timeMultiplier)||1),n=(0,d.KQ)({input:s}),o=60*(n.utcOffset()-(0,d.KQ)({input:s,timeZone:t}).utcOffset())*1e3;return new Date(n.valueOf()-o)},R=e=>{var t,i;const{data:s,libraryConfig:n,theme:o}=e,l=Object.assign(Object.assign({},n),{timeline:s.timeline,series:s.graphs}),{timeZone:r}=s,a={appearance:{locale:g.W.get("lang"),theme:o}};var u;p()(a,l.chart),l.chart=a,(null===(t=l.tooltip)||void 0===t?void 0:t.show)&&(l.tooltip=l.tooltip||{},l.tooltip.render=(null===(i=l.tooltip)||void 0===i?void 0:i.render)||(u=s,e=>{const{timeZone:t}=u,i=e.yagr.config.chart.timeMultiplier||1,s=e.options,{x:n,state:o}=e;let l=0;const r=Object.values(e.scales).reduce(((e,t)=>(l+=t.sum||0,e.concat(t.rows))),[]),a=r.length,c=D(s.sum),h=D(s.maxLines),f=D(s.value),p=o.pinned?void 0:a>h?Math.abs(h-a):void 0,g=p?f(r.slice(-p).reduce(((e,{originalValue:t})=>e+(t||0)),0)):void 0,m={activeRowAlwaysFirstInTooltip:r.length>1,tooltipHeader:(0,d.KQ)({input:n/i,timeZone:t}).format("DD MMMM YYYY HH:mm:ss"),shared:!0,lines:r.map(((t,i)=>Object.assign(Object.assign({},t),{seriesName:t.name||"Serie "+(i+1),seriesColor:M({data:e,userData:u,row:t,rowIndex:i}),selectedSeries:t.active,seriesIdx:t.seriesIdx,percentValue:"number"===typeof t.transformed?t.transformed.toFixed(1):""}))),withPercent:D(s.percent),hiddenRowsNumber:p,hiddenRowsSum:g};return c&&(m.sum=f(l)),I(m,{lastVisibleRowIndex:o.pinned?r.length-1:h-1})}),l.tooltip.className||(l.tooltip.className="chartkit-yagr-tooltip"),e.customTooltip&&(l.tooltip.virtual=!0),l.tooltip.sort=l.tooltip.sort||((e,t)=>t.rowIdx-e.rowIdx)),l.axes=l.axes||{};const c=l.axes[h.defaults.DEFAULT_X_SCALE];return l.editUplotOptions=e=>Object.assign(Object.assign({},e),{tzDate:r?C(l.chart,r):void 0}),c&&!c.values&&(c.values=k(l.chart.timeMultiplier,r)),c||(l.axes[h.defaults.DEFAULT_X_SCALE]={values:k(l.chart.timeMultiplier,r)}),l},F=s.forwardRef((function(e,t){const{id:i,data:{data:n},onLoad:l,onRender:d,onChartLoad:h,tooltip:f}=e,p=s.useRef(null),[g,m]=s.useState();if(!n||r()(n))throw new u.R({code:u.iY.NO_DATA,message:(0,a.R)("error","label_no-data")});const{config:_,debug:v}=((e,t)=>{const{data:i,sources:n,libraryConfig:o}=e.data,l=(0,c.i)();return{config:s.useMemo((()=>R({data:i,libraryConfig:o,theme:l,customTooltip:Boolean(e.tooltip)})),[i,o,l,e.tooltip]),debug:s.useMemo((()=>({filename:n&&Object.values(n).map((e=>{var t;return null===(t=null===e||void 0===e?void 0:e.data)||void 0===t?void 0:t.program})).filter(Boolean).join(", ")||t})),[t,n])}})(e,i),y=s.useCallback(((e,{renderTime:t})=>{null===l||void 0===l||l(Object.assign(Object.assign({},n),{widget:e,widgetRendering:t})),null===d||void 0===d||d({renderTime:t}),m(e)}),[l,d,n,m]),b=s.useCallback((()=>{g&&g.reflow()}),[]);return s.useImperativeHandle(t,(()=>({reflow(){b()}})),[b]),s.useEffect((()=>{var e,t,i,s,n;if(!g||(null===(t=null===(e=g.config)||void 0===e?void 0:e.tooltip)||void 0===t?void 0:t.virtual))return;const o={mouseMove:null,mouseDown:null};null===(i=g.plugins.tooltip)||void 0===i||i.on("render",(e=>{(e=>{const t=e.querySelector("._tooltip-header"),i=e.querySelector("._tooltip-list");if(!t||!i||!t.children.length)return;const s=t.children[0];for(let a=0;a<s.children.length;a++){const e=s.children[a];e.removeAttribute("style"),1===(null===i||void 0===i?void 0:i.children.length)&&(e.innerHTML=" ")}const n=i.children[0];for(let a=0;a<n.children.length;a++)n.children[a].removeAttribute("style");const o=t.children[0].getBoundingClientRect().width>i.children[0].getBoundingClientRect().width?t:i,l=Array.prototype.reduce.call(o.children[0].children,((e,t)=>(e.push(t.getBoundingClientRect().width),e)),[]),r=(o===t?i:t).children[0];for(let a=0;a<r.children.length;a++)r.children[a].setAttribute("style",`width: ${l[a]}px`);if(1===i.children.length)for(const a of s.children)a.innerHTML=""})(e)})),null===(s=g.plugins.tooltip)||void 0===s||s.on("pin",((e,{actions:t})=>{var i;o.mouseMove=(i={tooltip:e,yagr:g},e=>{var t;const{tooltip:s,yagr:n}=i;if(!n)return;const o=e.target,l=o&&s.contains(o)&&"TD"===o.tagName?null===(t=o.parentElement)||void 0===t?void 0:t.dataset.seriesIdx:void 0,r=l?n.uplot.series[Number(l)]:null;n.setFocus(r?r.id:null,!0)}),o.mouseDown=(e=>t=>{var i;const{tooltip:s,actions:n,yagr:o}=e;if(!o)return;const l=t.target;if(l instanceof Element){const e=l&&s.contains(l),t=l&&(null===(i=o.root.querySelector(".u-over"))||void 0===i?void 0:i.contains(l));e||t||(n.pin(!1),n.hide())}})({tooltip:e,actions:t,yagr:g}),document.addEventListener("mousemove",o.mouseMove),document.addEventListener("mousedown",o.mouseDown)})),null===(n=g.plugins.tooltip)||void 0===n||n.on("unpin",(()=>{o.mouseMove&&(document.removeEventListener("mousemove",o.mouseMove),o.mouseMove=null),o.mouseDown&&(document.removeEventListener("mousedown",o.mouseDown),o.mouseDown=null)}))}),[g]),s.useLayoutEffect((()=>{null===h||void 0===h||h({widget:g})}),[g,h]),s.createElement(s.Fragment,null,f&&g&&f({yagr:g}),s.createElement(o(),{ref:p,id:i,config:_,debug:v,onChartLoad:y}))})),P=F},46976:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_MULTIPLIER=t.TOOLTIP_DEFAULT_MAX_LINES=t.TOOLTIP_X_OFFSET=t.TOOLTIP_Y_OFFSET=t.MIN_SELECTION_WIDTH=t.CURSOR_STYLE=t.MARKER_DIAMETER=t.SERIE_AREA_BORDER_WIDTH=t.SERIE_AREA_BORDER_COLOR=t.SERIE_LINE_WIDTH=t.SERIE_COLOR=t.PADDING_BOTH=t.PADDING_RIGHT=t.PADDING_LEFT=t.BARS_DRAW_MAX=t.BARS_DRAW_FACTOR=t.TYPES_ORDER=t.X_AXIS_INCRS=t.X_AXIS_SPACE=t.X_AXIS_SIZE=t.X_AXIS_TICK_GAP=t.DECADE=t.YEAR=t.DAY=t.HOUR=t.MINUTE=t.SECOND=t.Y_AXIS_LABEL_SIZE=t.Y_AXIS_SIZE=t.DEFAULT_Y_AXIS_LABEL_PADDING=t.DEFAULT_Y_AXIS_PADDING=t.DEFAULT_Y_AXIS_SIZE=t.Y_AXIS_TICK_GAP=t.AXIS_VALUES_FONT=t.AXIS_LABEL_FONT=t.DEFAULT_AXIS_FONT_SIZE=t.DARK_DEFAULT_LINE_COLOR=t.LIGHT_DEFAULT_LINE_COLOR=t.DEFAULT_TITLE_FONT_SIZE=t.DEFAULT_SYNC_KEY=t.DEFAULT_POINT_SIZE=t.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE=t.DEFAULT_SCALE_MIN_RANGE=t.DEFAULT_Y_AXIS_OFFSET=t.DEFAULT_MAX_TICKS=t.DEFAULT_CANVAS_PIXEL_RATIO=t.DEFAULT_FOCUS_ALPHA=t.DEFAULT_Y_SCALE=t.DEFAULT_X_SCALE=t.DEFAULT_X_SERIE_NAME=void 0,t.DEFAULT_X_SERIE_NAME="date",t.DEFAULT_X_SCALE="x",t.DEFAULT_Y_SCALE="y",t.DEFAULT_FOCUS_ALPHA=.3,t.DEFAULT_CANVAS_PIXEL_RATIO="undefined"===typeof window?1:window.devicePixelRatio,t.DEFAULT_MAX_TICKS=5,t.DEFAULT_Y_AXIS_OFFSET=.05,t.DEFAULT_SCALE_MIN_RANGE=.01,t.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE=.001,t.DEFAULT_POINT_SIZE=t.DEFAULT_CANVAS_PIXEL_RATIO>=2?4:2,t.DEFAULT_SYNC_KEY="sync",t.DEFAULT_TITLE_FONT_SIZE=14,t.LIGHT_DEFAULT_LINE_COLOR="#222222",t.DARK_DEFAULT_LINE_COLOR="#eeeeee",t.DEFAULT_AXIS_FONT_SIZE=11,t.AXIS_LABEL_FONT="normal 11px Lucida Grande, Arial, Helvetica, sans-serif",t.AXIS_VALUES_FONT="11px Lucida Grande, Arial, Helvetica, sans-serif",t.Y_AXIS_TICK_GAP=6,t.DEFAULT_Y_AXIS_SIZE=12,t.DEFAULT_Y_AXIS_PADDING=12,t.DEFAULT_Y_AXIS_LABEL_PADDING=2;t.Y_AXIS_SIZE=(e,i,s)=>{if(!i)return t.DEFAULT_Y_AXIS_SIZE;const n=i.reduce(((e,t)=>e.length>t.length?e:t)),{ctx:o}=e;o.save();const l=e.axes[s];o.font=l.font?l.font[0]:t.AXIS_VALUES_FONT;const{width:r}=o.measureText(n);o.restore();let a=0;if(l.label){a=l.labelSize||t.DEFAULT_AXIS_FONT_SIZE,o.font=l.labelFont?l.labelFont[0]:t.AXIS_LABEL_FONT;const{fontBoundingBoxAscent:e}=o.measureText(l.label);a=e,o.restore()}return a?r/t.DEFAULT_CANVAS_PIXEL_RATIO+a/t.DEFAULT_CANVAS_PIXEL_RATIO+t.DEFAULT_Y_AXIS_LABEL_PADDING:r/t.DEFAULT_CANVAS_PIXEL_RATIO+t.DEFAULT_Y_AXIS_PADDING},t.Y_AXIS_LABEL_SIZE=11,t.SECOND=1e3,t.MINUTE=60*t.SECOND,t.HOUR=60*t.MINUTE,t.DAY=24*t.HOUR,t.YEAR=365*t.DAY,t.DECADE=10*t.YEAR,t.X_AXIS_TICK_GAP=6,t.X_AXIS_SIZE=32,t.X_AXIS_SPACE=80,t.X_AXIS_INCRS=[1,10,50,100,200,500,t.SECOND,2*t.SECOND,5*t.SECOND,10*t.SECOND,15*t.SECOND,30*t.SECOND,t.MINUTE,5*t.MINUTE,10*t.MINUTE,30*t.MINUTE,t.HOUR,2*t.HOUR,3*t.HOUR,4*t.HOUR,6*t.HOUR,12*t.HOUR,t.DAY,2*t.DAY,3*t.DAY,5*t.DAY,10*t.DAY,15*t.DAY,30*t.DAY,60*t.DAY,120*t.DAY,180*t.DAY,t.YEAR,2*t.YEAR,5*t.YEAR,10*t.YEAR],t.TYPES_ORDER=["dots","line","area","column"],t.BARS_DRAW_FACTOR=.5,t.BARS_DRAW_MAX=100,t.PADDING_LEFT=[14,14,0,4],t.PADDING_RIGHT=[14,4,0,14],t.PADDING_BOTH=[14,4,0,4],t.SERIE_COLOR="rgba(0, 0, 0, 1)",t.SERIE_LINE_WIDTH=2,t.SERIE_AREA_BORDER_COLOR="rgba(0, 0, 0, 0.2)",t.SERIE_AREA_BORDER_WIDTH=1,t.MARKER_DIAMETER=8,t.CURSOR_STYLE="1px solid #ffa0a0",t.MIN_SELECTION_WIDTH=15;t.default=class{constructor(e,t="light"){this.setTheme(t),this.colors=e}setTheme(e){this.theme=e}get GRID(){return{show:!0,stroke:()=>this.colors.parse("--yagr-grid"),width:1}}get X_AXIS_TICKS(){return{size:8,...this.GRID}}get Y_AXIS_TICKS(){return{size:6,...this.GRID}}get AXIS_STROKE(){return this.colors.parse("--yagr-axis-stroke")}get BACKGROUND(){return this.colors.parse("--yagr-background")}get SHIFT(){var e;return(null===(e=this.theme)||void 0===e?void 0:e.startsWith("light"))?.68:-.6}get DEFAULT_LINE_COLOR(){var e;return(null===(e=this.theme)||void 0===e?void 0:e.startsWith("light"))?t.LIGHT_DEFAULT_LINE_COLOR:t.DARK_DEFAULT_LINE_COLOR}},t.TOOLTIP_Y_OFFSET=24,t.TOOLTIP_X_OFFSET=24,t.TOOLTIP_DEFAULT_MAX_LINES=10,t.TIME_MULTIPLIER=1},37100:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=l(i(16381)),a=l(i(72168)),u=i(50497),c=l(i(20500)),d=o(i(46976)),h=l(i(576)),f=i(2836),p=i(78229),g=i(65781),m=i(87102),_=i(32532);class v{get isEmpty(){return this.state.isEmptyDataSet}constructor(e,t){this.plugins={},this._meta={},this._uHooks={},this.init=()=>{var e;(null===(e=this.config.chart.size)||void 0===e?void 0:e.adaptive)&&!this.resizeOb&&(this.resizeOb=new ResizeObserver((0,u.debounce)(this.onResize,this.config.chart.size.resizeDebounceMs||100)),this.resizeOb.observe(this.root)),this.config.hooks.dispose||(this.config.hooks.dispose=[]),this.unsubscribe(),this.config.hooks.dispose.push(this.trackMouse())},this.execHooks=(e,...t)=>{const i=this.config.hooks[e];if(Array.isArray(i))for(const s of i)s&&"function"===typeof s&&s(...t)},this.initRender=(e,t)=>{var i,s,n;const o=null===(i=this.config.legend)||void 0===i?void 0:i.position;this.root.firstChild?o&&"bottom"!==o?this.root.appendChild(e.root):this.root.insertBefore(e.root,this.root.firstChild):o&&"bottom"!==o?this.root.insertBefore(e.root,this.root.firstChild):this.root.appendChild(e.root),(null===(s=this.config.legend)||void 0===s?void 0:s.show)&&(null===(n=this.plugins.legend)||void 0===n||n.init(e),this.reflow(!1)),this.initTitle(),t()},this.onResize=e=>{var t;const[i]=e;this._cache.height===i.contentRect.height&&this._cache.width===i.contentRect.width||(null===(t=this.plugins.tooltip)||void 0===t||t.reset(),this.reflow(),this.execHooks("resize",{entries:e,chart:this}))},this.initMixins(),this._startTime=performance.now(),this.state={isEmptyDataSet:!1,isMouseOver:!1,stage:"config",y2uIdx:{},subscribed:!1};const i=Object.assign({title:{},data:[],axes:{},series:[],scales:{},hooks:{},settings:{},chart:{},cursor:{},plugins:{},legend:{show:!1},tooltip:{show:!0},grid:null,markers:{}},t);this.config=i,this.inStage("config",(()=>{var t;this.id=e.id||(0,u.genId)(),this.root=e,this.root.classList.add("yagr"),this.root.id||(this.root.id=this.id);const s=new c.default,n=this.config.cursor.sync,o=this.config.chart;o.series||(o.series={type:"line"}),o.size||(o.size={adaptive:!0}),o.appearance||(o.appearance={locale:"en"}),o.select||(o.select={}),this.utils={colors:s,i18n:(0,h.default)((null===(t=i.chart.appearance)||void 0===t?void 0:t.locale)||"en"),theme:new d.default(s)},s.setContext(e),n&&(this.utils.sync=r.default.sync("string"===typeof n?n:d.DEFAULT_SYNC_KEY)),!o.size.adaptive&&o.size.width&&o.size.height&&(e.style.width=(0,u.px)(o.size.width),e.style.height=(0,u.px)(o.size.height)),this.plugins.legend=new a.default,this.setTheme(o.appearance.theme||"light"),this.createUplotOptions(),this._cache={height:this.options.height,width:this.options.width},i.editUplotOptions&&(this.options=i.editUplotOptions(this.options))})).inStage("processing",(()=>{this.transformSeries()})).inStage("uplot",(()=>{this.uplot=new r.default(this.options,this.series,this.initRender),this.canvas=e.querySelector("canvas"),this.init();const t=performance.now()-this._startTime;this._meta.processTime=t})).inStage("render")}redraw(e=!0,t=!0){this.uplot.redraw(e,t)}getSeriesById(e){return this.uplot.series[this.state.y2uIdx[e]]}dispose(){var e,t,i,s;this.resizeOb&&this.resizeOb.unobserve(this.root),this.unsubscribe(),null===(t=null===(e=this.plugins)||void 0===e?void 0:e.tooltip)||void 0===t||t.dispose(),null===(s=null===(i=this.plugins)||void 0===i?void 0:i.legend)||void 0===s||s.destroy(),this.uplot.destroy(),this._uHooks={},this.execHooks("dispose",{chart:this})}toDataUrl(){return this.canvas.toDataURL("img/png")}subscribe(){var e;this.state.subscribed||(null===(e=this.utils.sync)||void 0===e||e.sub(this.uplot),this.state.subscribed=!0)}unsubscribe(){var e;null===(e=this.utils.sync)||void 0===e||e.unsub(this.uplot),this.state.subscribed=!1}inStage(e,t){this.state.stage,this.execHooks("stage",{chart:this,stage:e});try{t&&t()}catch(i){console.error(i),this.onError(i)}return this}initTitle(){if(this.config.title&&this.config.title.fontSize){const e=this.config.title.fontSize,t=this.root.querySelector(".u-title");t.setAttribute("style",`font-size:${e}px;line-height:${e}px;`),t.innerHTML=this.config.title.text}}onError(e){return this.execHooks("error",{stage:this.state.stage,error:e,chart:this}),e}trackMouse(){const e=()=>{this.state.isMouseOver=!0},t=()=>{this.state.isMouseOver=!1};return this.root.addEventListener("mouseover",e),this.root.addEventListener("mouseleave",t),()=>{this.root.removeEventListener("mouseover",e),this.root.removeEventListener("mouseleave",t)}}get clientHeight(){var e;const t=this.config.title.text?(this.config.title.fontSize||d.DEFAULT_TITLE_FONT_SIZE)+8:0;return this.root.clientHeight-t-((null===(e=this.plugins.legend)||void 0===e?void 0:e.state.totalSpace)||0)}reflow(e=!0){const t=this.root.clientWidth,i=this.clientHeight;this._cache.width=t,this.options.width=t,this._cache.height=i,this.options.height=i,e&&this.uplot.setSize({width:this.options.width,height:this.options.height}),e&&this.uplot.redraw()}}(0,m.applyMixins)(v,[f.CreateUplotOptionsMixin,p.TransformSeriesMixin,g.DynamicUpdatesMixin,_.BatchMixin]),t.default=v},576:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const i={ru:{"hide-all":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435","show-all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435",sum:"\u0421\u0443\u043c\u043c\u0430",scale:"\u0428\u043a\u0430\u043b\u0430",series:"\u041b\u0438\u043d\u0438\u044f",weekend:"\u0412\u044b\u0445\u043e\u0434\u043d\u043e\u0439",nodata:"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"},en:{"hide-all":"Hide all","show-all":"Show all",sum:"Total",scale:"Scale",series:"Series",weekend:"Weekend",nodata:"No data"}};t.default=(e="en")=>("string"!==typeof e&&(i.custom=e,e="custom"),t=>i[e][t]||t)},32532:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BatchMixin=void 0;const n=s(i(16381)),o=s(i(72168));t.BatchMixin=class{initMixin(){this._batch={active:!1,fns:[]}}batch(e){var t;return this._batch.active?e(this._batch):(this._batch.active=!0,e(this._batch),this._batch.reinit?this.fullUpdate():(this._batch.redrawLegend&&(null===(t=this.plugins.legend)||void 0===t||t.redraw()),this._batch.reopt&&this.createUplotOptions(!0),this._batch.recalc&&this.inStage("processing",(()=>{this.transformSeries()})).inStage("listen"),this._batch.fns.length&&this.uplot.batch((()=>this._batch.fns.forEach((e=>e(this._batch))))),this._batch.redraw&&this.uplot&&this.redraw(...this._batch.redraw),void(this._batch={active:!1,fns:[]})))}fullUpdate(){let e,t;this.inStage("dispose",(()=>{var i;if(this.uplot){const i=this.uplot.cursor;e=i.left,t=i.top,this.uplot.destroy()}null===(i=this.plugins.legend)||void 0===i||i.destroy()})).inStage("config",(()=>{this.plugins.legend=new o.default,this._batch={active:!1,fns:[]},this.createUplotOptions(!0),this.options=this.config.editUplotOptions?this.config.editUplotOptions(this.options):this.options})).inStage("processing",(()=>{this.transformSeries()})).inStage("uplot",(()=>{this.uplot=new n.default(this.options,this.series,this.initRender),e&&t&&e>0&&t>0&&this.uplot.setCursor({left:e,top:t}),this.state.subscribed||this.unsubscribe()})).inStage("listen")}}},2836:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateUplotOptionsMixin=void 0;const n=s(i(25700)),o=s(i(60758)),l=i(46976),r=i(28265),a=s(i(67903)),u=i(81891),c=i(24793),d=i(27658),h=i(48643),f=s(i(15648));function p(e,t){for(const i of e||[])if(i===t)return;null===e||void 0===e||e.push(t)}t.CreateUplotOptionsMixin=class{initMixin(){this._uHooks.onDraw=()=>{if("listen"===this.state.stage)return;this.state.stage="listen",this.execHooks("stage",{chart:this,stage:this.state.stage});const e=performance.now()-this._startTime;this._meta.renderTime=e,this.execHooks("load",{chart:this,meta:this._meta})},this._uHooks.ready=()=>{const e=performance.now()-this._startTime;this._meta.initTime=e,this.execHooks("inited",{chart:this,meta:{initTime:e}})},this._uHooks.drawClear=e=>{const{ctx:t}=e;t.save(),t.fillStyle=this.utils.theme.BACKGROUND,t.fillRect(l.DEFAULT_CANVAS_PIXEL_RATIO,l.DEFAULT_CANVAS_PIXEL_RATIO,e.width*l.DEFAULT_CANVAS_PIXEL_RATIO-2*l.DEFAULT_CANVAS_PIXEL_RATIO,e.height*l.DEFAULT_CANVAS_PIXEL_RATIO-2*l.DEFAULT_CANVAS_PIXEL_RATIO),t.restore()},this._uHooks.setSelect=e=>{const{left:t,width:i}=e.select,[s,n]=[e.posToVal(t,l.DEFAULT_X_SCALE),e.posToVal(t+i,l.DEFAULT_X_SCALE)],{timeMultiplier:o=l.TIME_MULTIPLIER}=this.config.chart||{};this.execHooks("onSelect",{from:Math.ceil(s/o),to:Math.ceil(n/o),chart:this}),e.setSelect({width:0,height:0,top:0,left:0},!1)}}createUplotOptions(e=!1){var t,i,s,g,m,_,v,y,b,w,E;const{config:S}=this,x=[];let A=null===(t=this.plugins)||void 0===t?void 0:t.tooltip;if(S.tooltip&&!1!==S.tooltip.show&&(A?A.updateOptions(S.tooltip):A=(0,n.default)(this,S.tooltip),x.push(A.uplot),this.plugins.tooltip=A),e)this.plugins.plotLines&&x.push(this.plugins.plotLines.uplot);else{const e=(0,f.default)(this.config.plotLines||{})(this);this.plugins.plotLines=e,x.push(e.uplot)}Object.entries(S.plugins).forEach((([e,t])=>{const i=t(this);x.push(i.uplot),Object.assign(this.plugins,{[e]:i})}));const T=S.chart,O={width:this.root.clientWidth,height:this.clientHeight,title:null===(i=S.title)||void 0===i?void 0:i.text,plugins:x,focus:{alpha:l.DEFAULT_FOCUS_ALPHA},series:[{id:l.DEFAULT_X_SERIE_NAME,$c:S.timeline,scale:l.DEFAULT_X_SCALE,count:S.timeline.length}],ms:T.timeMultiplier||l.TIME_MULTIPLIER,hooks:S.hooks||{}};if(this.state.isEmptyDataSet=0===S.timeline.length||0===S.series.length||S.series.every((({data:e})=>0===e.length)),O.cursor=O.cursor||{},O.cursor.points=O.cursor.points||{},O.cursor.drag=O.cursor.drag||{dist:(null===(s=T.select)||void 0===s?void 0:s.minWidth)||l.MIN_SELECTION_WIDTH,x:null===(g=O.cursor.y)||void 0===g||g,y:null!==(m=O.cursor.y)&&void 0!==m&&m,setScale:null===(v=null===(_=T.select)||void 0===_?void 0:_.zoom)||void 0===v||v},this.utils.sync&&(O.cursor.sync=O.cursor.sync||{key:this.utils.sync.key}),S.cursor){const e=(0,o.default)(this,S.cursor);this.plugins.cursor=e,x.push(e.uplot)}const L=S.series||[],I=O.series;for(let n=L.length-1;n>=0;n--){const e=(0,r.configureSeries)(this,L[n]||{},n),t=I.push(e);this.state.y2uIdx[e.id||n]=t-1}const D=(0,a.default)(this,S);x.push(D),O.series=I,S.scales&&0!==Object.keys(S.scales).length||(S.scales={x:{},y:{}}),O.scales=O.scales||{},O.scales=(0,u.configureScales)(this,O.scales,S),O.axes=O.axes||[];return O.axes.push(...(0,c.configureAxes)(this,S)),O.hooks=S.hooks||{},O.hooks.draw=O.hooks.draw||[],O.hooks.ready=O.hooks.ready||[],O.hooks.drawClear=O.hooks.drawClear||[],O.hooks.setSelect=O.hooks.setSelect||[],p(O.hooks.draw,this._uHooks.onDraw),p(O.hooks.ready,this._uHooks.ready),p(O.hooks.drawClear,this._uHooks.drawClear),p(O.hooks.setSelect,this._uHooks.setSelect),O.drawOrder=(null===(y=T.appearance)||void 0===y?void 0:y.drawOrder)?null===(b=T.appearance)||void 0===b?void 0:b.drawOrder.filter((e=>e===h.DrawOrderKey.Series||e===h.DrawOrderKey.Axes)):[h.DrawOrderKey.Series,h.DrawOrderKey.Axes],O.legend={show:!1},O.padding=(null===(w=S.chart.size)||void 0===w?void 0:w.padding)||(0,d.getPaddingByAxes)(O),null===(E=this.plugins.legend)||void 0===E||E.preInit(this,this.config.legend,O),O.height=this.clientHeight,this.options=O,O}}},65781:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicUpdatesMixin=void 0;const n=s(i(576)),o=i(46976),l=i(28265),r=i(24793),a=i(50497);function u(e,t,i,s=!1){var n,o,l,r,u,c,d,h,f,p,g,m;if(s)return e.config={...e.config,...i},void(t.reinit=!0);const _=function(e,t){return function(i,s){const n=(0,a.get)(e,i),o=(0,a.get)(t,i);return s?!s(n,o):n!==o}}(e.config,i);i.title&&_("title")&&e.setTitle(i.title),(null===(o=null===(n=i.chart)||void 0===n?void 0:n.appearance)||void 0===o?void 0:o.theme)&&_("chart.appearance.theme")&&e.setTheme(null===(r=null===(l=i.chart)||void 0===l?void 0:l.appearance)||void 0===r?void 0:r.theme),(null===(c=null===(u=i.chart)||void 0===u?void 0:u.appearance)||void 0===c?void 0:c.locale)&&_("chart.appearance.locale")&&e.setLocale(null===(h=null===(d=i.chart)||void 0===d?void 0:d.appearance)||void 0===h?void 0:h.locale),i.axes&&_("axes",a.deepIsEqual)&&e.setAxes(i.axes),i.scales&&_("scales",a.deepIsEqual)&&e.setScales(i.scales);Boolean(i.series)&&function(e,t){if(e.length!==(null===t||void 0===t?void 0:t.length))return!0;const i=new Map,s=new Map;return e.forEach((e=>{i.set(e.id,e)})),t.forEach((e=>{s.set(e.id,e)})),!(!t.some((({id:e})=>!i.has(e)))&&!e.some((({id:e})=>!s.has(e))))}(e.config.series,i.series)&&(t.redrawLegend=!0),(i.series||i.timeline)&&e.setSeries(null!==(f=i.timeline)&&void 0!==f?f:e.config.timeline,null!==(p=i.series)&&void 0!==p?p:e.config.series,{incremental:!1}),i.tooltip&&_("tooltip")&&(null===(g=e.plugins.tooltip)||void 0===g||g.updateOptions(i.tooltip)),i.legend&&_("legend")&&(t.reinit=!0),null===(m=e.plugins.tooltip)||void 0===m||m.reset(),t.reopt=!0,e.config={...e.config,...i}}function c(e,t,i,s={incremental:!0,splice:!1}){let n,o=[],r=[],a=null,u=!1,c=!1;if(["number","string"].includes(typeof t)?(u=!1,n=!1,r=[i],a=t):"number"===typeof t[0]?(o=t,r=i,u=Boolean(s.incremental),n=!s.incremental):(r=t,n=!0),this.isEmpty&&r.some((({data:e})=>null===e||void 0===e?void 0:e.length)))e.reinit=!0;else{if(!1===n){let t=!1;if(u&&this.config.timeline.push(...o),r.forEach((i=>{var s,n;let o="number"===typeof a?this.config.series[0]:this.config.series.find((({id:e})=>e===i.id||e===a)),r=null===o||void 0===o?void 0:o.id;if("number"===typeof a&&this.state.y2uIdx[a]&&(o=this.config.series[a],r=a),o&&r){const{data:a,...d}=i,h=this.state.y2uIdx[r];"dots"!==o.type&&"dots"!==i.type&&"dots"!==(null===(s=this.config.chart.series)||void 0===s?void 0:s.type)||(e.reinit=!0),u?o.data=a?o.data.concat(a):o.data:(null===a||void 0===a?void 0:a.length)&&(o.data=a,c=!0);const f=(0,l.configureSeries)(this,Object.assign(o,d),h),p=this.options.series[h],g=this.uplot.series[h];g.show!==f.show&&e.fns.push((()=>{this.uplot.setSeries(h,{show:f.show})})),null!==g._focus&&g._focus===f.focus||e.fns.push((()=>{this.uplot.setSeries(h,{focus:f.focus})})),g.color!==f.color&&(t=!0),f.scale&&(null===(n=this.config.scales[f.scale])||void 0===n?void 0:n.stacking)&&(c=!0),(0,l.overrideSeriesInUpdate)(p,f),(0,l.overrideSeriesInUpdate)(g,f)}else e.fns.push((()=>{const e=(0,l.configureSeries)(this,i,this.config.series.length);this.state.y2uIdx[e.id]=this.uplot.series.length,this.uplot.addSeries(e,this.config.series.length)})),this.config.series.push(i)})),t&&e.fns.push((()=>{var e;null===(e=this.plugins.cursor)||void 0===e||e.updatePoints()})),s.splice){const e=r[0].data.length;this.config.series.forEach((t=>{t.data.splice(0,e)})),this.config.timeline.splice(0,o.length)}}else this.config.timeline=o,this.config.series=r,e.reinit=!0;e.reinit||(this._batch.fns.push((()=>{var e,t;return null===(t=null===(e=this.plugins)||void 0===e?void 0:e.tooltip)||void 0===t?void 0:t.reset()})),(c||o.length)&&(e.recalc=!0,e.fns.push((()=>{this.uplot.setData(this.series)}))))}}t.DynamicUpdatesMixin=class{setLocale(e){this.batch((t=>function(e,t,i){e.utils.i18n=(0,n.default)(i),t.redrawLegend=!0}(this,t,e)))}setTitle(e){this.batch((t=>{this.config.title=e,this.initTitle(),t.redraw=[!0,!0]}))}setTheme(e){this.batch((t=>function(e,t,i){e.utils.theme.setTheme(t);const s=["light","light-hc","dark","dark-hc"].map((e=>`yagr_theme_${e}`));e.root.classList.remove(...s),e.root.classList.add("yagr_theme_"+t),i.redraw=[!1,!0]}(this,e,t)))}setAxes(e){this.batch((t=>function(e,t,i){const{x:s,...n}=i;if(s){const t=e.uplot.axes.find((({scale:e})=>e===o.DEFAULT_X_SCALE));t&&(0,r.updateAxis)(e,t,{scale:o.DEFAULT_X_SCALE,...s})}Object.entries(n).forEach((([t,i])=>{const s=e.uplot.axes.find((({scale:e})=>e===t));s&&(0,r.updateAxis)(e,s,{scale:t,...i})})),t.redraw=(0,r.getRedrawOptionsForAxesUpdate)(i)}(this,t,e)))}setSeries(e,t,i={incremental:!0,splice:!1}){this.batch((s=>c.call(this,s,e,t,i)))}setFocus(e,t){this.batch((()=>function(e,t,i){var s;const n=null===t?null:e.state.y2uIdx[t];null===(s=e.plugins.cursor)||void 0===s||s.focus(n,i),e.uplot.setSeries(n,{focus:i})}(this,e,t)))}setVisible(e,t,i=!0){this.batch((s=>function(e,t,i,s,n){const l=null===t?null:e.state.y2uIdx[t];(null===t?e.config.series:[e.config.series.find((({id:e})=>e===t))]).forEach((e=>{e&&(e.show=i)})),n.fns.push((()=>{e.uplot.setSeries(l,{show:i})})),e.options.series=e.uplot.series;let r=!1;if(l){const t=e.uplot.series[l];t.show=i;const s=t.scale||o.DEFAULT_Y_SCALE,n=e.config.scales[s];r=Boolean(n&&n.stacking)}else r=e.options.series.reduce(((t,s)=>{var n;const{scale:o}=s;return s.show=i,Boolean(o&&(null===(n=e.config.scales[o])||void 0===n?void 0:n.stacking)||t)}),!1);r&&(n.recalc=!0,n.fns.push((()=>{var t;e.uplot.setData(e.series,!0),s&&(null===(t=e.plugins.legend)||void 0===t||t.update())})))}(this,e,t,i,s)))}setScales(e){this.batch((t=>function(e,t,i){let s=!1,n=!1;Object.entries(t).forEach((([t,i])=>{const o=e.config.scales[t];if(o){const{stacking:e}=o,{stacking:t}=i;e!==t&&(s=!0),i.normalize===o.normalize&&i.normalizeBase===o.normalizeBase||(n=!0)}}));const l=Object.entries(t).every((([t,i])=>{const s=e.config.scales[t],{min:n,max:o,...l}=s,{min:r,max:u,...c}=i;return!(!1===(0,a.deepIsEqual)(c,l))&&(n!==r||o!==u)})),r=Object.keys(t).includes(o.DEFAULT_X_SCALE);if(l&&!r)return Object.entries(t).forEach((([t,s])=>{i.fns.push((()=>{e.uplot.setScale(t,{min:s.min,max:s.max})}))}));(s||n)&&(i.reinit=!0),e.config.scales=t,i.reinit=!0}(this,e,t)))}setConfig(e,t=!1){this.batch((i=>u(this,i,e,t)))}}},78229:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransformSeriesMixin=void 0;const s=i(46976),n=i(50497);t.TransformSeriesMixin=class{transformSeries(){const e=performance.now(),t=[],i=this.config,o=i.timeline;let l=i.processing||!1,r=this.config.series.map((({data:e})=>e));l&&l.interpolation&&(r=(0,n.preprocess)(r,o,l),l=!1);const a=Boolean(l&&l.nullValues),u=l&&l.nullValues||{},c={};for(let d=0;d<r.length;d++){let e=[];const i=d+1,l=r[d],h=this.options.series.length-i,f=this.options.series[h],p=f.scale||s.DEFAULT_Y_SCALE,g=this.config.scales[p]||{},m=g.stacking,_=f.stackGroup||0;let v=!0;m&&!c[p]&&(this.options.focus=this.options.focus||{alpha:1.1},this.options.focus.alpha=1.1,c[p]=[]),m&&!c[p][_]&&(c[p][_]=new Array(o.length).fill(0)),f.count=0;for(let t=0;t<l.length;t++){let i=l[t];if(a&&u[String(i)]&&(i=null),f.transform&&(f._transformed=!0,i=f.transform(i,r,t)),g.transform&&(f._transformed=!0,i=g.transform(i,r,t)),null===i){if("line"===f.type||"dots"===f.type){e.push(null);continue}i=m?0:null}if(v=!1,g.normalize){const e=(0,n.getSumByIdx)(this.options.series,t,p);i=e&&(null!==i&&void 0!==i?i:0)/e*(g.normalizeBase||100),f.normalizedData=f.normalizedData||[],f.normalizedData[t]=i}g.stacking&&(!1===f.show&&(i=0),i=c[p][_][t]+=null!==i&&void 0!==i?i:0),"logarithmic"===g.type&&0===i&&(i=1),f.sum=(f.sum||0)+(i||0);"number"===typeof f.$c[t]&&(f.count+=1),e.push(i)}f.avg=(f.sum||0)/f.count,f.empty=v,f.postProcess&&(e=f.postProcess(e,d,this)),t.unshift(e)}return t.unshift(this.config.timeline),this.series=t,this.execHooks("processed",{chart:this,meta:{processTime:performance.now()-e}}),this.series}}},60758:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.cursorPoint=void 0;const n=i(46976),o=s(i(20500)),l=i(50497);function r(e,t,i){if(i||(i=t.querySelector("span")),!i)return;t.style.background=`${e.color}`,i.style.background=e.color||n.SERIE_COLOR;const s=o.default.parseRgba(e.color)||[256,256,256,0];t.style.boxShadow=`0px 0px 0px 1px rgba(${s[0]}, ${s[1]}, ${s[2]}, 0.5)`}function a(e,t){const i=e.series[t],s=(0,l.html)("span"),n=(0,l.html)("div",{class:"yagr-point","data-idx":String(t)},i.empty?void 0:s);return i.empty?(n.style.display="none",n):(r(i,n,s),n)}function u(e,t){return void 0===t?Array.from(e.querySelectorAll(".yagr-point")):[e.querySelector(`.yagr-point[data-idx="${t}"]`)]}t.cursorPoint=a,t.default=function(e,t){var i,s,o;const c=e.config.processing||{},d=Boolean(c.interpolation),h=null===(i=c.interpolation)||void 0===i?void 0:i.value,f=!1!==t.snapToValues&&(t.snapToValues||"closest"),p=!!d&&(null!==(o=null===(s=c.interpolation)||void 0===s?void 0:s.snapToValues)&&void 0!==o?o:"closest");let g={};const m=(e,t,i)=>{const s=e.series[t];if(s.scale===n.DEFAULT_X_SCALE)return i;const o=s.$c||e.data[t],r=o[i];return d&&r===h?(0,l.findDataIdx)(o,s,i,p,h):null===r?(0,l.findDataIdx)(o,s,i,f,null):i};return{showPoints:t=>{const i=e.uplot.over;if(!i)return;u(i,t).forEach((e=>{e.style.visibility="visible"}))},hidePoints:t=>{const i=e.uplot.over;if(!i)return;u(i,t).forEach((e=>{e.style.visibility="hidden"}))},pin:t=>{var i;const s=e.root.querySelector(".u-over");if(s)if(t){const e=document.createElement("div");e.classList.add("yagr-points-holder"),s.querySelectorAll(".yagr-point").forEach((t=>{const i=t.cloneNode(!0);e.appendChild(i);const s=i.dataset.idx;s&&(g[s]=i)})),s.appendChild(e)}else g={},null===(i=s.querySelector(".yagr-points-holder"))||void 0===i||i.remove()},updatePoints:()=>{e.root.querySelectorAll(".yagr-point").forEach((t=>{const i=Number(t.dataset.idx);if(isNaN(i))return;r(e.uplot.series[i],t)}))},focus:(e,t)=>{Object.entries(g).forEach((([i,s])=>{s.style.display=null!==e?i===String(e)&&t?"block":"none":t?"block":"none"}))},uplot:{opts:(e,i)=>{var s;i.cursor=i.cursor||{};const o=i.series.filter((e=>e.empty)).length,l=i.series.length-1,r=null!==(s=null===t||void 0===t?void 0:t.maxMarkers)&&void 0!==s?s:50;i.cursor.points={show:l-o<=r&&a,size:(e,i)=>{const s=e.series[i];return(s.cursorOptions?s.cursorOptions.markersSize:null===t||void 0===t?void 0:t.markersSize)||n.MARKER_DIAMETER}},i.cursor.dataIdx=m},hooks:{...t.hideMarkers&&{setCursor:i=>{var s,n;const o=i.cursor.idx;if(!(0,l.isNil)(o))for(let l=1;l<i.series.length;l++){const r=i.series[l].$c[o];t.hideMarkers(r,l)?null===(s=e.plugins.cursor)||void 0===s||s.hidePoints(l):null===(n=e.plugins.cursor)||void 0===n||n.showPoints(l)}}},init:e=>{const i=e.root.querySelector(".u-cursor-x");i&&(t.x&&!1===t.x.visible&&(i.style.display="none"),i.style.borderRight=t.x&&t.x.style||n.CURSOR_STYLE);const s=e.root.querySelector(".u-cursor-y");s&&(t.y&&!1!==t.y.visible?s.style.borderBottom=t.y.style||n.CURSOR_STYLE:s.style.display="none")}}}}}},72168:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hasOneVisibleLine=void 0;const s=i(46976),n=i(50497),o=i(11213),l="null";t.hasOneVisibleLine=e=>e.some((({show:e,id:t})=>t!==s.DEFAULT_X_SERIE_NAME&&e));const r=(e,i)=>i.length>3&&e((0,t.hasOneVisibleLine)(i)?"hide-all":"show-all");t.default=class{constructor(){this.pagesCount=0,this.state={page:0,pages:1,pageSize:0,rowsPerPage:1,paginated:!1,requiredSpace:0,totalSpace:0},this.itemsHtml="",this.preInit=(e,t,i)=>{this.yagr=e,this.options=Object.assign({show:!1,position:"bottom",fontSize:12,maxLegendSpace:.3,className:void 0,behaviour:"basic"},t||{}),this.calc(i)},this.init=e=>{var t;this.options.show&&(this.uplot=e,null===(t=e.root.querySelector(".u-legend"))||void 0===t||t.remove(),this.render())},this.update=()=>{this.yagr.root.querySelectorAll("[data-serie-id]").forEach((e=>{var t,i;const s=e.getAttribute("data-serie-id");if(!s||s===l)return;const n=null===(i=null===(t=this.uplot)||void 0===t?void 0:t.series[this.yagr.state.y2uIdx[s]])||void 0===i?void 0:i.show;e.classList[n?"remove":"add"]("yagr-legend__item_hidden")}))},this.measureLegend=e=>{const t=this.yagr.root,i=(0,n.html)("div",{class:"yagr-legend",style:{visibility:"hidden"}},e);t.appendChild(i);const s=i.childNodes[0].getBoundingClientRect();return i.remove(),s},this.nextPage=()=>{const{state:e}=this;this.state.page+=1,this.items&&(this.items.style.transform=`translate(0, ${-1*e.page*e.pageSize}px)`,this.renderPagination())},this.prevPage=()=>{const{state:e}=this;this.state.page-=1,this.items&&(this.items.style.transform=`translate(0, ${-1*e.page*e.pageSize}px)`,this.renderPagination())}}redraw(){this.options.show&&this.render()}destroy(){var e;this._onDestroy&&this._onDestroy(),null===(e=this.legendEl)||void 0===e||e.remove()}applyHandlers(){const{yagr:e,uplot:i}=this;if(!i)return()=>{};const s=e.root.querySelectorAll("[data-serie-id]"),n=[],a={basic:s=>()=>{const n=s.getAttribute("data-serie-id"),o=[];if(n===l){const e=!(0,t.hasOneVisibleLine)(i.series);for(let t=1;t<i.series.length;t++)o.push([i.series[t],e])}else{const e=i.series.find((({id:e})=>e===n));if(!e)return;o.push([e,!e.show])}o.forEach((([t,i])=>{if(t.show===i)return;const s=e.root.querySelector(`[data-serie-id="${t.id}"]`);e.setVisible(t.id,i,!1),null===s||void 0===s||s.classList[i?"remove":"add"]("yagr-legend__item_hidden")}));const a=e.root.querySelector(".yagr-legend__all-series");if(a){const e=r(this.yagr.utils.i18n,i.series);a.innerHTML=e||""}},extended:s=>{const n=(t,i)=>{const s=e.root.querySelector(`[data-serie-id="${t}"]`);e.setVisible(t,i,!1),null===s||void 0===s||s.classList[i?"remove":"add"]("yagr-legend__item_hidden")},o=e=>{this.state.startSerieRange=e;const s=i.series.filter((t=>t.id!==e.id)),o=!(0,t.hasOneVisibleLine)(s)&&!1!==e.show;i.series.forEach((t=>{const i=e.id===t.id||o;n(t.id,i)}))},l=e=>{this.state.startSerieRange||(this.state.startSerieRange=i.series[1]);const t=[];i.series.forEach(((i,s)=>{var n;i.id===e.id&&t.push(s),i.id===(null===(n=this.state.startSerieRange)||void 0===n?void 0:n.id)&&t.push(s)})),i.series.forEach(((e,i)=>{const s=i>=t[0]&&i<=t[1];n(e.id,s)}))};return e=>{const t=s.getAttribute("data-serie-id"),r=i.series.find((({id:e})=>e===t));r&&(e.preventDefault(),e.ctrlKey||e.metaKey?(e=>{n(e.id,!e.show)})(r):e.shiftKey?l(r):o(r))}}},u=t=>()=>{const i=t.getAttribute("data-serie-id");if(t.classList.contains("yagr-legend__item_hidden")||i===l)return;const s=this.yagr.uplot.series.find((({id:e})=>e===i));s&&(e.setFocus(s.id,!0),e.redraw(!0,!1))},c=()=>{e.setFocus(null,!0),e.redraw(!0,!1)};s.forEach((e=>{const t=a[this.options.behaviour||"basic"](e),i=u(e);e.addEventListener("click",t),e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",c),e.addEventListener("mousedown",o.preventMouseEvents),n.push((()=>{e.removeEventListener("click",t),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",c),e.removeEventListener("mousedown",o.preventMouseEvents)}))}));const d=()=>n.forEach((e=>e()));return this._onDestroy=d,d}render(){var e,t;let i=!1;const{uplot:s,options:o}=this;if(!s)return;let l=this.yagr.root.querySelector(".yagr-legend");if(l?i=!0:l=(0,n.html)("div",{class:`yagr-legend yagr-legend__${this.options.position} ${(null===o||void 0===o?void 0:o.className)||""}`}),l){if(i||("top"===o.position?s.root.before(l):null===(e=s.root)||void 0===e||e.after(l)),this.legendEl=l,this.itemsHtml&&!i||this.calc(this.yagr.options),l.innerHTML=`<div class="yagr-legend__container" style="height: ${this.state.requiredSpace}px">${this.itemsHtml}</div>`,this.items=l.querySelector(".yagr-legend__items"),this.container=l.querySelector(".yagr-legend__container"),this.state.paginated){const e=this.renderPagination();null===(t=this.container)||void 0===t||t.after(e)}else this.items.style.justifyContent="center";this.applyHandlers()}}renderPagination(){const{state:e}=this;let t=this.yagr.root.querySelector(".yagr-legend__pagination");if(t){const e=t.querySelector(".yagr-legend__icon-down"),i=t.querySelector(".yagr-legend__icon-up");e.removeEventListener("click",this.nextPage),i.removeEventListener("click",this.prevPage)}else t=(0,n.html)("div",{class:"yagr-legend__pagination"});const i=0===e.page?"yagr-legend__icon-up_disabled":"",s=e.page===e.pages-1?"yagr-legend__icon-down_disabled":"";t.innerHTML=`<span class="yagr-legend__icon-up ${i}"></span>\n<span class="yagr-legend__pagination-text">${e.page+1}/${e.pages}</span>\n<span class="yagr-legend__icon-down ${s}"></span>`;const o=t.querySelector(".yagr-legend__icon-down"),l=t.querySelector(".yagr-legend__icon-up");return s||o.addEventListener("click",this.nextPage),i||l.addEventListener("click",this.prevPage),t}createIconLineElement(e){return(0,n.html)("span",{class:`yagr-legend__icon yagr-legend__icon_${e.type}`,style:{"background-color":e.color}})}createSerieNameElement(e){const t=(0,n.html)("span");return t.innerText=e.name||"unnamed",t}renderItems(e){const t=r(this.yagr.utils.i18n,e.series),i="extended"!==this.options.behaviour&&(e=>e.length>3&&l||void 0)(e.series),s=i?[i]:[];for(let n=1;n<e.series.length;n++)s.push(e.series[n]);return`<div class="yagr-legend__items">${s.map((e=>{let s,n,o=" ";if(e===l)s=t,n=i,o=" yagr-legend__all-series ";else{n=e.id;const t=this.createIconLineElement(e),i=this.createSerieNameElement(e);s=`${t.outerHTML}${i.outerHTML}`}return`<div class="yagr-legend__item${o}${"string"===typeof e||!1!==e.show?"":"yagr-legend__item_hidden"}" data-serie-id="${n}">${s}</div>`})).join("")}</div>`}calc(e){if(!this.options.show)return;const t=e.height-this.VERTICAL_PADDING,i=this.renderItems(e),{height:s}=this.measureLegend(i),n=this.options.fontSize+2,o=t*this.options.maxLegendSpace,l=Math.floor(o/n),r=l-1,a=Math.min(r*n,o),u=Math.min(l*n,o),c=s>a&&a>0,d=Math.min(c?u:a,s),h=Math.ceil(s/a),f=c?this.VERTICAL_PADDING+18:this.VERTICAL_PADDING;this.state.requiredSpace=d,this.state.totalSpace=d+f,this.state.paginated=c,this.state.page=this.state.page||0,this.state.pages=h,this.state.pageSize=a,this.state.rowsPerPage=l,this.itemsHtml=i}get VERTICAL_PADDING(){return"bottom"===this.options.position?20:48}}},67903:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.drawMarkersIfRequired=t.renderCircle=void 0;const s=i(46976),n=i(50497);t.renderCircle=(e,t,i,n,o,l,r,a)=>{const{ctx:u}=e,c=Math.round(e.valToPos(t,s.DEFAULT_X_SCALE,!0)),d=Math.round(e.valToPos(i,a||s.DEFAULT_Y_SCALE,!0));if(u.beginPath(),u.arc(c,d,2*n,0,2*Math.PI),u.fillStyle=l,o){const e=u.lineWidth,t=u.strokeStyle;u.lineWidth=o,u.strokeStyle=r,u.stroke(),u.lineWidth=e,u.strokeStyle=t}u.fill(),u.closePath()},t.drawMarkersIfRequired=function(e,i,o,l){const{color:r,scale:a,spanGaps:u,count:c,pointsSize:d}=e.series[i];if(u&&c>1)return!1;let h,f=o;for(;f<=l;){const o=e.data[i][f];if(null===o){h=o,f++;continue}const l=f+1,u=e.data[i][l];(0,n.isNil)(h)&&(0,n.isNil)(u)&&(0,t.renderCircle)(e,e.data[0][f],o,null!==d&&void 0!==d?d:s.DEFAULT_POINT_SIZE/2,0,r,r,a||s.DEFAULT_Y_SCALE),h=o,f++}},t.default=function(e,i){var n;const{size:o=s.DEFAULT_POINT_SIZE,strokeWidth:l=2,strokeColor:r="#ffffff",show:a}=i.markers,u=null===(n=i.chart)||void 0===n?void 0:n.series,c=(null===u||void 0===u?void 0:u.pointsSize)||s.DEFAULT_POINT_SIZE;function d(i,n,u,d){const{scale:h,_focus:f,color:p,getFocusedColor:g,type:m}=i.series[n];let _=u;const v="dots"===m?a?o:c:o;for(;_<=d;){const o=i.data[n][_];null!==o&&(0,t.renderCircle)(i,i.data[0][_],o,v,l,(f||null===f?p:g(e,n))||p,r,h||s.DEFAULT_Y_SCALE),_++}}const h=(e,t)=>{0!==e&&null!==e&&("dots"===t.type||i.markers.show)&&(t.points=t.points||{},t.points.show=d)};return{opts:(e,t)=>{(i.markers.show||t.series.some((e=>"dots"===e.type)))&&t.series.forEach(((e,t)=>h(t,e)))},hooks:{addSeries:(e,t)=>{const i=e.series[t];h(t,i)},setSeries:(e,t,i)=>{h(t,i)}}}}},15648:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=i(46976),n=i(48643),o=i(50497),l=i(80152),r={[n.DrawOrderKey.Series]:0,[n.DrawOrderKey.Axes]:1,plotLines:2},a={"012":"draw",102:"draw",201:"drawClear",210:"drawClear",120:"drawAxes","021":"drawSeries"};t.default=function(e){let t=new Map;return function(i){var n;const u=null===(n=i.config.chart.appearance)||void 0===n?void 0:n.drawOrder,c=(u?u.map((e=>r[e])):[0,1,2]).join(""),d=a[c]||"drawClear";function h(e){var i;if(e.id)return e.id;return(null===(i=Array.from(t.entries()).find((([t,i])=>(0,o.deepIsEqual)(i,e))))||void 0===i?void 0:i[0])||(0,o.genId)()}function f(n){const{ctx:o}=n,{height:r,top:a,width:u,left:c}=n.bbox,d=n.data[0];for(const h of t.values()){if(!h.scale)continue;if(e.render){e.render(n,h);continue}o.save(),o.fillStyle=i.utils.colors.parse(h.color);const{scale:t,value:f}=h,p=Array.isArray(f),[g,m]=p?(0,l.calculateFromTo)(f,t,d,n):[n.valToPos(f,t,!0),0];if(p){const e=h.accent;t===s.DEFAULT_X_SCALE?(o.fillRect(g,a,m-g,r),e&&(o.fillStyle=e.color,o.fillRect(g,a-e.space,m-g,e.space))):(o.fillRect(c,g,u,m-g),e&&(o.fillStyle=e.color,o.fillRect(u+c,g,e.space,m-g)))}else{const e=h;if(o.beginPath(),t===s.DEFAULT_X_SCALE){const e=n.data[0][n.data[0].length-1];if(g-n.valToPos(e,t,!0)>0)continue;o.moveTo(g,a),o.lineTo(g,r+a)}else o.moveTo(c,g),o.lineTo(u+c,g);o.lineWidth=e.width||s.DEFAULT_CANVAS_PIXEL_RATIO,o.strokeStyle=e.color||"#000",e.dash&&o.setLineDash(e.dash),o.stroke()}o.restore()}}const p="drawSeries"===d?(e,t)=>{t===e.series.length-1&&f(e)}:f;function g(e){e?t.forEach(((i,s)=>{i.scale===e&&t.delete(s)})):t.clear()}return{get:function(){return Array.from(t.values())},clear:g,remove:function(e){for(const i of e){const e=h(i);t.delete(e)}},add:function(e){for(const i of e){const e=h(i);t.set(e,i)}},update:function(e,i){if(!e||0===e.length)return void g(i);const s=new Set;for(const n of e){const e=h(n);t.set(e,n),s.add(e)}for(const[n,o]of t.entries())i&&o.scale!==i||s.has(n)||t.delete(n)},uplot:{opts:()=>{const e=i.config;t=new Map;for(const i in e.axes)if(e.axes.hasOwnProperty(i)){const s=e.axes[i];if(s.plotLines)for(const e of s.plotLines)t.set(e.id||(0,o.genId)(),{...e,scale:i})}},hooks:{[d]:p}}}}}},4553:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateFromTo=t.getPosition=void 0;const s=i(46976);function n(e,t,i,n){return e>0&&t===s.DEFAULT_X_SCALE?i:e>0&&t!==s.DEFAULT_X_SCALE||e<=0&&t===s.DEFAULT_X_SCALE?0:n}t.getPosition=n,t.calculateFromTo=function(e,t,i,o){return e.map((e=>{var l,r;if(Math.abs(e)!==1/0){if(t===s.DEFAULT_X_SCALE)return Math.min(Math.max(e,i[0]),i[i.length-1]);{const i=o.scales[t];return Math.min(Math.max(e,null!==(l=i.min)&&void 0!==l?l:e),null!==(r=i.max)&&void 0!==r?r:e)}}const a=n(e,t,o.width,o.height);return o.posToVal(a,t)})).map((e=>o.valToPos(e,t,!0)))}},80152:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateFromTo=void 0;var s=i(4553);Object.defineProperty(t,"calculateFromTo",{enumerable:!0,get:function(){return s.calculateFromTo}})},48840:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=i(50497),n={size:["height","width"],clientSize:["clientHeight","clientWidth"],offsetSize:["offsetHeight","offsetWidth"],maxSize:["maxHeight","maxWidth"],before:["top","left"],marginBefore:["marginTop","marginLeft"],after:["bottom","right"],marginAfter:["marginBottom","marginRight"],scrollOffset:["pageYOffset","pageXOffset"],offset:["offsetY","offsetY"],offsetOpt:["yOffset","xOffset"],bodyScroll:["scrollHeight","scrollWidth"],inner:["innerHeight","innerWidth"]};function o(e){return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}t.default=function(e,t,i="bottom",l={}){let r;r=t instanceof Element||t instanceof Range?o(e.getBoundingClientRect()):t;const a=Object.assign({top:r.bottom||0,bottom:r.top||0,left:r.right||0,right:r.left||0},r),u={top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};l.bound&&((l.bound instanceof Element||l.bound instanceof Range)&&(l.bound=o(l.bound.getBoundingClientRect())),Object.assign(u,l.bound));const c=getComputedStyle(e),{primary:d,secondary:h}=Object.entries(n).reduce(((e,[t,s])=>({primary:{...e.primary,[t]:s["top"===i||"bottom"===i?0:1]},secondary:{...e.secondary,[t]:s["top"===i||"bottom"===i?1:0]}})),{primary:{},secondary:{}});e.style.position="absolute",e.style.maxWidth="",e.style.maxHeight="";const f=l[d.offsetOpt]||0,p=parseInt(c[h.marginBefore],10),g=p+parseInt(c[h.marginAfter],10),m=u[h.after]-u[h.before]-g,_=parseInt(c[h.maxSize],10);(!_||m<_)&&(e.style[h.maxSize]=(0,s.px)(m));const v=parseInt(c[d.marginBefore],10)+parseInt(c[d.marginAfter],10),y=a[d.before]-u[d.before]-v,b=u[d.after]-a[d.after]-v-f;(i===d.before&&e[d.offsetSize]>y||i===d.after&&e[d.offsetSize]>b)&&(i=y>b?d.before:d.after);const w=i===d.before?y:b,E=parseInt(c[d.maxSize],10);(!E||w<E)&&(e.style[d.maxSize]=(0,s.px)(w));const S=document.body[d.bodyScroll]-window[d.inner],x=Math.max(Math.min(window[d.scrollOffset],S),0),A=t=>Math.max(u[d.before],Math.min(t,u[d.after]-e[d.offsetSize]-v));i===d.before?(e.style[d.before]=x+A(a[d.before]-e[d.offsetSize]-v)-f+"px",e.style[d.after]="auto"):(e.style[d.before]=(0,s.px)(x+A(a[d.after])+f),e.style[d.after]="auto");const T=document.body[h.bodyScroll]-window[h.inner],O=Math.max(Math.min(window[h.scrollOffset],T),0);var L;return e.style[h.before]=(0,s.px)(O+(L=a[h.before]-p,Math.max(u[h.before],Math.min(L,u[h.after]-e[h.offsetSize]-g)))),e.style[h.after]="auto",e.dataset.side=i,{side:i,anchorRect:a,boundRect:u}}},74947:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderTooltip=void 0;const s=i(48130);t.renderTooltip=function(e){if(0===e.scales.length)return e.yagr.utils.i18n("nodata");const[t,i]=e.options.title?"string"===typeof e.options.title?[e.options.title,!1]:["",!0]:["",!1];return`${t?`<div class="__title">${t}</div>`:""}${e.scales.map((t=>{const n=(0,s.getOptionValue)(e.options.title,t.scale),o=e.scales.length>1?e.options.scales?`${(0,s.getOptionValue)(e.options.scales,t.scale)||""}`:`${e.yagr.utils.i18n("scale")}: ${t.scale}`:"";return`\n<div class="__section" data-scale=${t.scale}>\n ${i&&n?`<div class="_section_title">${n}</div>`:""}\n ${o?`<div class="__section_scale">${o}</div>`:""}\n <div class="__section_body">${function(e,t,i){const n=e.slice(0,(0,s.getOptionValue)(t.maxLines,i));return n.map((({value:i,name:n="unnamed",color:o,active:l,transformed:r,seriesIdx:a},u)=>{const c=`\n<span class="yagr-tooltip__val">${i}</span>\n ${"number"===typeof r?`<span class="yagr-tooltip__tf">${r.toFixed(2)}</span>`:""}\n`;return`\n<div class="yagr-tooltip__item ${l?"_active":""}" data-series="${a}">\n ${t.showIndicies?`<span class="yagr-tooltip__idx">${e.length-u}</span>`:""}\n <span class="yagr-tooltip__mark" style="background-color: ${o}"></span>${(0,s.escapeHTML)(n)} ${c}\n</div>`})).join("")+(e.length>n.length?`<div class="yagr-tooltip__item _more">+${e.length-n.length}</div>`:"")}(t.rows,e.options,t.scale)}</div>\n ${(0,s.getOptionValue)(e.options.sum,t.scale)?`\n <div class="__section_sum">\n ${e.yagr.utils.i18n("sum")}: ${t.sum}\n </div>\n `:""}\n</div>`})).join("")}`}},25700:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(48840)),o=i(46976),l=i(50497),r=i(74947),a=i(48130),u=(e,t,i,s,n)=>{var o,r,a;const u=Array.isArray(i.$c)?i.$c:t;let c=u[s];if(n&&c===n.value){const e=null!==(o=n.snapToValues)&&void 0!==o?o:"closest";c=u[(0,l.findDataIdx)(u,i,s,e,n.value)]}else if(null===c){const t=null!==(r=e.snapToValues)&&void 0!==r?r:"closest",n=null!==(a=i.snapToValues)&&void 0!==a?a:t;c=u[(0,l.findDataIdx)(u,i,s,n,null)]}return c},c={maxLines:o.TOOLTIP_DEFAULT_MAX_LINES,highlight:!0,sum:!1,render:r.renderTooltip,pinable:!0,strategy:"pin",sort:void 0,showIndicies:!1,hideNoData:!1,className:"yagr-tooltip_default",xOffset:o.TOOLTIP_X_OFFSET,yOffset:o.TOOLTIP_Y_OFFSET,virtual:!1,showEmpty:!1,onUpdate:"reset"};class d{constructor(e,t={}){var i,s;this.handlers={init:[],mount:[],show:[],pin:[],unpin:[],hide:[],render:[],destroy:[],reset:[]},this.placement=n.default,this.renderTooltipCloses=()=>{},this.skipNextMouseUp=!1,this.emit=(e,t)=>{this.handlers[e].forEach((i=>{i(this.tOverlay,{state:this.state,actions:{pin:this.pin,show:this.show,hide:this.hide,dispose:this.dispose,reset:this.reset},data:t,yagr:this.yagr,event:e})}))},this.reset=()=>{var e;"none"!==this.opts.onUpdate?(this.state.visible&&this.hide(),this.state.pinned&&this.pin(!1),this.emit("reset")):null===(e=this.yagr.plugins.cursor)||void 0===e||e.pin(!1)},this.show=()=>{const e=!this.state.visible;this.state.visible=!0,this.tOverlay.style.display="block",e&&this.emit("show")},this.hide=()=>{const e=this.state.visible;this.state.visible=!1,this.tOverlay.style.display="none",this.emit("hide"),e&&this.emit("show")},this.pin=(e,t)=>{var i;this.state.pinned=e;const s=this.state.range||[];if(null===(i=this.yagr.plugins.cursor)||void 0===i||i.pin(e&&(null===s[1]||s.length<2)),this.opts.virtual)return this.emit(e?"pin":"unpin");t&&this.placement(this.tOverlay,{left:t.x+this.bLeft,top:this.bTop+t.y-(this.opts.yOffset||0)},"right",{bound:this.bound,xOffset:this.opts.xOffset,yOffset:this.opts.yOffset});const n=this.tOverlay.querySelector("._tooltip-list");e?(this.state.visible||this.show(),this.tOverlay.classList.add("yagr-tooltip_pinned"),n&&(null===n||void 0===n?void 0:n.clientHeight)&&(n.style.height=(0,l.px)(n.clientHeight)),this.opts.render===r.renderTooltip&&(document.addEventListener("mousemove",this.checkFocus),document.addEventListener("mousedown",this.detectClickOutside))):(this.tOverlay.classList.remove("yagr-tooltip_pinned"),this.opts.render===r.renderTooltip&&(document.removeEventListener("mousemove",this.checkFocus),document.removeEventListener("mousedown",this.detectClickOutside))),this.emit(e?"pin":"unpin")},this.checkFocus=e=>{const t=e.target;let i;t&&this.tOverlay.contains(t)&&t.classList.contains("yagr-tooltip__item")&&(i=t.dataset.series);const s=i?this.yagr.uplot.series[Number(i)]:null;i&&s?(this.state.focusedSeries=i,this.yagr.setFocus(s.id,!0)):this.state.focusedSeries&&(this.state.focusedSeries=null,this.yagr.setFocus(null,!0))},this.render=e=>{const t=this.yagr.uplot;let{left:i,top:s}=e;const{idx:n}=e,{opts:r,state:d}=this;if(r.show&&"function"===typeof r.show&&!1===r.show(this.yagr))return void this.hide();(i<0||s<0)&&!d.pinned&&this.isNotInDrag&&this.hide(),s=(0,l.inBetween)(s,0,t.bbox.top+t.bbox.height),i=(0,l.inBetween)(i,0,t.bbox.left+t.bbox.width);const{data:h}=t;if(null===h||(0,l.isNil)(n)||void 0===s)return;const f=h[0][n],p={},g={},m={};let _=t.series.length-1;for(;_>=1;){const e=t.series[_];if(!e.show){_-=1;continue}const i=e.scale||o.DEFAULT_Y_SCALE;m[i]=m[i]||[],m[i].push(_),_-=1}Object.entries(m).forEach((([e,o])=>{var c;g[e]=g[e]||{rows:[]};const d=g[e],h=Number(t.posToVal(s,e).toFixed(2)),f=(0,a.getOptionValue)(r.value,e);for(const i of o){const s=t.data[i],o=t.series[i];let l=u(this.yagr.config.cursor,s,o,n,this.interpolation),h=l;"string"===typeof l&&(h=l,l=null),(0,a.getOptionValue)(r.sum,e)&&(p[e]=p[e]||0,p[e]+=l||0);const g=s[n],m=o.$c&&o.$c[n]===this.stripValue?l:g;if(null===l&&r.hideNoData||!1===o.showInTooltip)continue;const _=null!==(c=o.precision)&&void 0!==c?c:(0,a.getOptionValue)(r.precision,e),v=o.formatter?o.formatter(h,o):f(h,_),y={id:o.id,name:o.name,dataValue:o.$c[n],originalValue:l,value:v,y:m,displayY:g,color:o.color,seriesIdx:i,rowIdx:d.rows.length?d.rows[d.rows.length-1].rowIdx+1:0};o.normalizedData&&(y.transformed=o.normalizedData[n]),o._transformed&&(y.transformed=s[n]),r.omitBy&&r.omitBy(y)||d.rows.push(y)}if((0,a.getOptionValue)(r.highlight,e)&&d.rows.length){const u=(0,a.getOptionValue)(r.tracking,e);let c=0;"area"===u?c=(0,l.findInRange)(d,h,(0,a.getOptionValue)(r.stickToRanges,e)):"sticky"===u?c=(0,l.findSticky)(d,h):"function"===typeof u&&(c=u(d,h,{x:t.posToVal(i,"x"),y:t.posToVal(s,e),idx:n,scale:e,series:this.yagr.series,serieIndicies:o,interpolation:this.interpolation})),null!==c&&(d.rows[c].active=!0)}const m=(0,a.getOptionValue)(r.sort,e);m&&d.rows.sort(m)}));if(!Object.values(g).some((({rows:e})=>e.length>0))&&!r.showEmpty)return void this.hide();this.onMouseEnter();const v=this.over.getBoundingClientRect();this.bLeft=v.left,this.bTop=v.top,this.bWidth=v.width;const y={left:i+this.bLeft,top:this.bTop+s-(r.yOffset||0)};this.renderTooltipCloses=()=>{const e={scales:Object.entries(g).map((([e,t])=>({scale:e,rows:t.rows,sum:p[e]}))),options:r,x:f},t=Object.values(g).some((({rows:e})=>e.filter((({id:e})=>{var t;return null===(t=this.yagr.getSeriesById(e))||void 0===t?void 0:t.show})).length>0));t||r.showEmpty?(r.virtual||(this.tOverlay.innerHTML=r.render({...e,state:d,yagr:this.yagr,defaultRender:c.render}),this.placement(this.tOverlay,y,"right",{bound:this.bound,xOffset:r.xOffset,yOffset:r.yOffset})),this.emit("render",{...e,anchor:y})):this.hide()},d.pinned||this.renderTooltipCloses()},this.initWithUplot=e=>{this.over=e.root.querySelector(".u-over"),this.over.addEventListener("mousedown",this.onMouseDown),this.over.addEventListener("mousemove",this.onMouseMove),this.over.addEventListener("mouseenter",this.onMouseEnter),this.over.addEventListener("mouseleave",this.onMouseLeave),document.addEventListener("mouseup",this.onMouseUp)},this.setSize=()=>{const e=this.over.getBoundingClientRect();this.bLeft=e.left,this.bTop=e.top},this.dispose=()=>{this.over.removeEventListener("mousedown",this.onMouseDown),this.over.removeEventListener("mousemove",this.onMouseMove),this.over.removeEventListener("mouseenter",this.onMouseEnter),this.over.removeEventListener("mouseleave",this.onMouseLeave),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.checkFocus),document.removeEventListener("mousedown",this.detectClickOutside),this.tOverlay.remove(),this.state.mounted=!1,this.emit("destroy")},this.updateOptions=e=>{Object.assign(this.opts,e),this.tOverlay.className=`yagr-tooltip ${this.opts.className||""}`},this.on=(e,t)=>{this.handlers[e].push(t)},this.off=(e,t)=>{this.handlers[e]=this.handlers[e].filter((e=>e!==t))},this.detectClickOutside=e=>{const t=e.target;if(t instanceof Element){const e=t&&this.tOverlay.contains(t),i=t&&this.over.contains(t);e||i||(this.pin(!1),this.hide())}},this.onMouseDown=e=>{this.state.range=[this.getCursorPosition(),null],this.state.pinned&&(this.pin(!1),this.hide(),this.render({left:e.clientX-this.bLeft,top:e.clientY-this.bTop,idx:this.yagr.uplot.posToIdx(e.clientX-this.bLeft)}),this.skipNextMouseUp=!0)},this.onMouseMove=()=>{var e;(null===(e=this.state.range)||void 0===e?void 0:e.length)&&(this.state.range[1]=this.getCursorPosition())},this.setCursorLeaved=e=>{const t=this.over.getBoundingClientRect(),i=e.clientX,s=this.state.range,n=s[0],o=i-t.left>n.clientX,l=this.yagr.config.timeline;let r;o?(s[1]={clientX:this.bWidth,value:this.yagr.uplot.posToVal(this.bWidth,"x"),idx:l.length-1},r=s[1]):(s[1]=s[0],s[0]={clientX:0,value:this.yagr.uplot.posToVal(0,"x"),idx:0},r=s[0]),this.yagr.uplot.setCursor({left:r.clientX,top:e.clientY-t.top})},this.onMouseUp=e=>{if(null===this.state.range)return;const[t]=this.state.range||[];let i;if(i=e.target===this.over?this.getCursorPosition():this.state.range[1],"none"===this.opts.strategy)return;const s=t&&t.clientX===(null===i||void 0===i?void 0:i.clientX),n=t&&t.clientX!==(null===i||void 0===i?void 0:i.clientX),o=this.opts.strategy;(s&&!this.skipNextMouseUp&&"drag"!==o||n&&("all"===o||"drag"===o))&&(this.pin(!this.state.pinned),this.show(),this.renderTooltipCloses()),this.state.range=null,this.skipNextMouseUp=!1},this.onMouseEnter=()=>{this.show()},this.onMouseLeave=e=>{var t;const i=this.state.pinned;(null===(t=this.state.range)||void 0===t?void 0:t[0])&&this.setCursorLeaved(e),!i&&this.isNotInDrag&&this.hide()},this.defaultTooltipValueFormatter=(e,t)=>{const i=this.yagr.config.processing||{};return"string"===typeof e?i.nullValues&&i.nullValues.hasOwnProperty(e)?i.nullValues[e]:"-":"number"===typeof e?e.toFixed("number"===typeof t?t:"number"===typeof this.opts.precision?this.opts.precision:2):"-"},this.getCursorPosition=()=>{const e=this.yagr.uplot.cursor.left;return void 0===e?null:{clientX:e,value:this.yagr.uplot.posToVal(e,"x"),idx:this.yagr.uplot.posToIdx(e)}},this.yagr=e,this.over=null===(i=null===e||void 0===e?void 0:e.uplot)||void 0===i?void 0:i.over,this.opts={...c,strategy:t.pinable?"pin":c.strategy,tracking:"area"===(null===(s=e.config.chart.series)||void 0===s?void 0:s.type)?"area":"sticky",value:this.defaultTooltipValueFormatter,...t},this.bound=this.opts.boundClassName&&document.querySelector(this.opts.boundClassName)||document.body,this.renderNode=this.opts.renderClassName&&document.querySelector(this.opts.renderClassName)||document.body,this.tOverlay=document.createElement("div"),this.tOverlay.id=`${e.id}_tooltip`,this.tOverlay.className=`yagr-tooltip ${this.opts.className||""}`,this.tOverlay.style.display="none",this.state={mounted:!1,pinned:!1,visible:!1,range:null,focusedSeries:null},this.bLeft=0,this.bTop=0,this.bWidth=0,this.opts.virtual?this.placement=()=>{}:(this.renderNode.appendChild(this.tOverlay),this.state.mounted=!0,this.emit("mount"))}get interpolation(){var e;return null===(e=this.yagr.config.processing)||void 0===e?void 0:e.interpolation}get stripValue(){return this.interpolation?this.interpolation.value:void 0}get isNotInDrag(){var e;return"none"===this.opts.strategy||"pin"===this.opts.strategy||!(null===(e=this.state.range)||void 0===e?void 0:e[1])}}t.default=function(e,t={}){const i=new d(e,t),s=()=>({hooks:{destroy:()=>{i.dispose()},init:e=>{i.initWithUplot(e)},setSize:()=>{i.setSize()},setCursor:e=>{i.render(e.cursor)}}}),n=s();return{state:i.state,pin:i.pin,show:i.show,hide:i.hide,uplot:n,display:i.render,updateOptions:i.updateOptions,on:i.on,off:i.off,tooltip:i,dispose:i.dispose,reInit:function(e){const t=s();i.reset(),e.hooks.init.push(t.hooks.init),e.hooks.destroy.push(t.hooks.destroy),e.hooks.setSize.push(t.hooks.setSize),e.hooks.setCursor.push(t.hooks.setCursor)},reset:i.reset}}},98190:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},48130:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeHTML=t.getOptionValue=void 0,t.getOptionValue=function(e,t){return"object"===typeof e?e[t]:e},t.escapeHTML=function(e){const t=document.createElement("span");return t.innerText=e,t.innerHTML}},89353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},24793:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.configureAxes=t.updateAxis=t.getRedrawOptionsForAxesUpdate=t.getTimeFormatter=t.getDefaultNumberFormatter=t.getAxisPositioning=void 0;const r=l(i(16381)),a=o(i(46976)),u=i(50497),c=i(48643),d={right:c.Axis.Side.Right,top:c.Axis.Side.Top,bottom:c.Axis.Side.Bottom,left:c.Axis.Side.Left},h={left:c.Axis.Align.Right,right:c.Axis.Align.Left,top:void 0,bottom:void 0};t.getAxisPositioning=(e,t)=>({side:e?d[e]:c.Axis.Side.Left,align:t||(e?h[e]:void 0)});t.getDefaultNumberFormatter=(e,t="")=>i=>{if((0,u.isNil)(i))return t;if(0===i)return"0";const s=Math.abs(i),n="auto"===e?2:e,[o,l]=(0,u.getUnitSuffix)(s),r=i/o;return("auto"===e?String(r).replace(/\.(\d{5,})/,(e=>e.slice(0,6))):(0,u.toFixed)(r,n))+l};const f=e=>{const i=e.precision,s=(0,t.getDefaultNumberFormatter)("number"===typeof i?i:i||"auto","");return function(e,t){return t.map(s)}},p=r.default.fmtDate("{DD}.{MM}.{YYYY}"),g=r.default.fmtDate("{HH}:{mm}:{ss}"),m=r.default.fmtDate("{mm}:{ss}"),_=r.default.fmtDate("{mm}:{ss}.{fff}"),v=r.default.fmtDate("{YYYY}");function y(e,t){let i=p;const s=Math.ceil(e/t);return s<=a.SECOND?i=_:s<=a.MINUTE?i=m:s<=a.DAY?i=g:s>=a.YEAR&&(i=v),e=>i(new Date(e))}function b(e,i){var s,n;const o=i.utils.theme,l=i.config,r={splits:e.splitsCount?(c=e.splitsCount,(e,t,i,s)=>{if(c<=2)return[i,s];const n=Math.abs(s-i)/(c-1);let o=n;const l=[];for(;i+o<s;)l.push(i+o),o+=n;return[i,...l,s]}):e.splits,show:"undefined"===typeof e.show||e.show,label:e.label||void 0,labelSize:e.labelSize||a.Y_AXIS_LABEL_SIZE,labelFont:e.labelFont||a.AXIS_LABEL_FONT,font:e.font||a.AXIS_VALUES_FONT,stroke:e.stroke||(()=>o.AXIS_STROKE),ticks:e.ticks?{...o.Y_AXIS_TICKS,...e.ticks}:o.Y_AXIS_TICKS,grid:l.grid||e.grid||o.GRID};var c;return e.scale===a.DEFAULT_X_SCALE?Object.assign(r,{getFormatter:y,gap:null!==(s=e.gap)&&void 0!==s?s:a.X_AXIS_TICK_GAP,size:(0,u.asFn)(e.size)||(()=>a.X_AXIS_SIZE),values:e.values||(0,t.getTimeFormatter)(l),ticks:e.ticks?{...o.X_AXIS_TICKS,...e.ticks}:o.X_AXIS_TICKS,scale:a.DEFAULT_X_SCALE,space:e.space||(()=>a.X_AXIS_SPACE),incrs:e.incrs||(()=>a.X_AXIS_INCRS.map((e=>e*(l.chart.timeMultiplier||a.TIME_MULTIPLIER)))),side:2,stroke:e.stroke||(()=>o.AXIS_STROKE)}):(Object.assign(r,{gap:null!==(n=e.gap)&&void 0!==n?n:a.Y_AXIS_TICK_GAP,size:(0,u.asFn)(e.size)||a.Y_AXIS_SIZE,values:e.values||f(e),scale:e.scale||a.DEFAULT_Y_SCALE,getFormatter:()=>(0,t.getDefaultNumberFormatter)("number"===typeof e.precision?e.precision:e.precision||"auto",""),...(0,t.getAxisPositioning)(e.side||"left",e.align)}),e.space&&(r.space=e.space),r)}function w(e){let t,i;return[e=e.replace(/(\d+)px/,((e,s)=>(0,u.px)(t=Math.round((i=Number(s))*window.devicePixelRatio)))),t,i]}t.getTimeFormatter=e=>{const t=e.chart.timeMultiplier||a.TIME_MULTIPLIER;return(e,i)=>{const s=y((i[i.length-1]-i[0])/t,i.length);return i.map((e=>s(e/t)))}},t.getRedrawOptionsForAxesUpdate=function(e){const t=[!1,!0];return Object.values(e).forEach((e=>{["align","side","size","label","labelFont","labelGap","labelSize"].some((t=>void 0!==e[t]))&&(t[1]=!0)})),t},t.updateAxis=function(e,t,i){var s,n,o;const l=b({...i,font:t.font},e);l.ticks={...t.ticks,...l.ticks},l.grid={...t.grid,...l.grid},l.border={...t.border,...l.border},l.splits=l.splits||t.splits,i.font&&i.font!==(null===(s=t.font)||void 0===s?void 0:s[0])&&(l.font=w(i.font)),i.labelFont&&i.labelFont!==(null===(n=t.labelFont)||void 0===n?void 0:n[0])&&(l.labelFont=w(i.labelFont)),Object.assign(t,l),null===(o=e.plugins.plotLines)||void 0===o||o.update(i.plotLines,i.scale)},t.configureAxes=function(e,t){const i=[];Object.entries(t.axes).forEach((([t,s])=>{i.push(b({...s,scale:t},e))}));const s=a.DEFAULT_X_SCALE,n=a.DEFAULT_Y_SCALE;return t.axes[s]||i.push(b({scale:s},e)),i.find((({scale:e})=>e!==s))||i.push(b({scale:n},e)),i}},27658:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getPaddingByAxes=void 0;const l=o(i(46976));t.getPaddingByAxes=function(e){let t=!1,i=!1;return e.axes?e.axes.forEach((e=>{e.scale!==l.DEFAULT_X_SCALE&&(void 0!==e.side&&3!==e.side||(t=!0),1===e.side&&(i=!0))})):t=!0,t&&!i?l.PADDING_LEFT:i&&!t?l.PADDING_RIGHT:l.PADDING_BOTH}},20500:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerieFocusColors=t.getFocusedColor=void 0;const i=[0,0,0,.6];class s{static parseRgba(e){const t=e.match(/rgba?\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d+\.?\d*)?\s*\)/);return t?[t[1],t[2],t[3],t[4]||1].map(Number):null}parse(e="000"){const t=e.startsWith("var(--");let i,s=e,n=!0;const o=this.context,l=o.style.color;return t||e.startsWith("--")?(n=!1,i=t?e.slice(4,-1):e):e.startsWith("#")||e.startsWith("rgb")||(o.style.color=e,i="color",n=!1),s=n?s:getComputedStyle(o).getPropertyValue(i),o.style.color=l,s}setContext(e){this.context=e}rgba(e){return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${e[3]})`}toRgba(e,t){return s.parseRgba(this.parse(e))||t}shade([e,t,i,s],n){const o=n<0,l=o?0:255*n,r=o?1+n:1-n;return"rgba("+Math.round(e*r+l)+","+Math.round(t*r+l)+","+Math.round(i*r+l)+","+s+")"}}t.default=s;t.getFocusedColor=(e,t)=>{const n=e.utils.theme.SHIFT,o=e.uplot.series[t],l=s.parseRgba(o.color)||i;return e.utils.colors.shade(l,n)};t.getSerieFocusColors=(e,t)=>(i,s)=>{const n=i.series[s];return!1===n._focus?n.getFocusedColor(e,s):n[t]}},50497:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.inBetween=t.isNil=t.asPlain=t.asFn=t.deepIsEqual=t.get=t.html=t.px=t.debounce=t.exec=t.preprocess=t.genId=t.findDataIdx=t.toFixed=t.getUnitSuffix=t.findSticky=t.getSumByIdx=t.findInRange=void 0;t.findInRange=(e,t,i=!0)=>{const s=t>=0;let n=-1/0,o=null,l=1/0,r=null;const a=[];let u=null;for(let c=e.rows.length-1;c>=0;c--){const i=e.rows[c],{displayY:d,rowIdx:h}=i;let f;null!==d&&(d>n&&(n=d,o=i.rowIdx),d<l&&(l=d,r=i.rowIdx)),f=null===d||(s?d<0:d>=0)?null:s?t>d?null:d-t:t<d?null:Math.abs(d-t);const p=null===u?1/0:a[u],g=null===f?p:Math.min(p,f);(null!==f&&p===f||g!==p)&&(u=h)}return null===u&&i?t>=n?o:t<=l?r:null:u};t.getSumByIdx=(e,t,i)=>{let s=0,n=0;for(;n<e.length;){const o=e[e.length-n-1],l=o.$c;if(n+=1,o.scale!==i||!1===o.show)continue;const r=l[t];s+="number"===typeof r?r:0}return s};t.findSticky=(e,t)=>{let i,s,n=0;for(;!s&&n<e.rows.length;){const o=e.rows[n].displayY;null!==o&&(i=n,s=Math.abs(o-(t||0))),n+=1}if(!s||void 0===i)return null;for(n=i+1;n<e.rows.length;n++){const o=e.rows[n].displayY;if(null===o)continue;const l=Math.abs(o-t);s>l&&(s=l,i=n)}return i};t.getUnitSuffix=e=>e>=1e18?[1e18,"E"]:e>=1e15?[1e15,"P"]:e>=1e12?[1e12,"T"]:e>=1e9?[1e9,"G"]:e>=1e6?[1e6,"M"]:e>=1e3?[1e3,"K"]:[1,""],t.toFixed=function(e,t){if(0===t)return parseInt(e);if(Number.isInteger(e))return e+"."+"0".repeat(t);const[i,s]=e.toString().split(".");return s.length>=t?`${i}.${s.slice(0,t)}`:`${i}.${s}${"0".repeat(t-s.length)}`},t.findDataIdx=function(e,t,i,s="closest",n=null){var o;let l=i,r=i;const a=null!==(o=t.snapToValues)&&void 0!==o?o:s;if(!1===a)return i;if("left"===a||"closest"===a)for(let u=i-1;u>=0;u--)if(e[u]!==n){l=u;break}if("right"===a||"closest"===a)for(let u=i+1;u<e.length;u++)if(e[u]!==n){r=u;break}return"left"===a?l:"right"===a?r:r-i>i-l?l:r};const i=(e,t,i,s,n,o,l,r="linear")=>{let a=null;const u=e[o];switch(r){case"linear":if(null===t||null===i)return null;a=t+(u-s)*(i-t)/(n-s),(isNaN(a)||Math.abs(a)===1/0)&&(a=null);break;case"previous":a=t;break;case"next":a=i;break;case"left":a=l[l.length-1]===e.length-1||null===i?null:t;break;case"right":a=0===l[0]?null:i;break;case"closest":a=Math.abs(s-e[o])<Math.abs(n-e[o])?t:i;break;default:a=r}return a};t.genId=()=>Date.now().toString(36)+Math.random().toString(36).substring(2);t.preprocess=(e,t,s)=>{const n=[],o=s.nullValues||{},l=s.interpolation;for(let r=0;r<e.length;r++){const s=e[r],a=[];let u,c,d=[],h=null,f=null;for(let e=0;e<s.length;e++){let n=s[e];if(l&&n===l.value)d.push(e);else{if(o[n]&&(n=null),d.length){f=n,c=t[e];for(const e of d)a[e]=i(t,h,f,u||t[0],c||t[t.length-1],e,d,l&&l.type);d=[]}h=n,u=t[e],a.push(n)}}if(f=null,d.length)for(const e of d)a.push(i(t,h,f,u||t[0],c||t[t.length-1],e,d,l&&l.type));n.push(a)}return n};t.exec=(e,...t)=>"function"===typeof e?e(...t):e,t.debounce=function(e,t=300){let i;return(...s)=>{clearTimeout(i),i=setTimeout((()=>e(...s)),t)}};t.px=e=>e+"px";function s(e){return null===e||void 0===e}t.html=(e,t={},i)=>{const s=document.createElement(e);return Object.keys(t).forEach((e=>{const i=t[e];s.setAttribute(e,"object"===typeof i?Object.entries(i).map((([e,t])=>`${e}:${t}`)).join(";"):i)})),i&&("string"===typeof i?s.innerHTML=i:s.appendChild(i)),s},t.get=function(e,t){return t.split(".").reduce(((e,t)=>{var i,s;return null!==(s=null===(i=Object.getOwnPropertyDescriptor(e,t))||void 0===i?void 0:i.value)&&void 0!==s?s:{}}),e)},t.deepIsEqual=function e(t,i){if(typeof t!==typeof i)return!1;if("function"!==typeof t&&"function"!==typeof i||(t=t.toString(),i=i.toString()),"object"!==typeof t||s(t)||s(i))return t===i;const n=t,o=i,l=Object.keys(n),r=Object.keys(o);if(l.length!==r.length)return!1;for(const s of l){if(!o.hasOwnProperty(s))return!1;if(!e(n[s],o[s]))return!1}return!0},t.asFn=function(e){return"function"===typeof e||"undefined"===typeof e?e:()=>e},t.asPlain=function(e){return"function"===typeof e?e():e},t.isNil=s,t.inBetween=function(e,t,i){return e>=t&&e<=i?e:e<t?t:i}},11213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.preventMouseEvents=void 0;t.preventMouseEvents=e=>e.preventDefault()},87102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMixins=void 0,t.applyMixins=function(e,t){const i=[];t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((i=>{Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t.prototype,i)||Object.create(null))})),t.prototype.initMixin&&i.push(t.prototype.initMixin)})),e.prototype.initMixins=function(){i.forEach((e=>e.call(this)))}}},88274:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.pathsRenderer=void 0;const r=l(i(16381)),a=o(i(46976));t.pathsRenderer=function(e,t,i,s){const n=e.series[t],{type:o,interpolation:l}=n;let u;switch(o){case"column":u=r.default.paths.bars&&r.default.paths.bars({size:[a.BARS_DRAW_FACTOR,a.BARS_DRAW_MAX],...e.series[t].renderOptions||{}});break;case"dots":u=()=>null;break;default:switch(l){case"smooth":u=r.default.paths.spline&&r.default.paths.spline();break;case"left":u=r.default.paths.stepped&&r.default.paths.stepped({align:1});break;case"right":u=r.default.paths.stepped&&r.default.paths.stepped({align:-1});break;default:u=r.default.paths.linear&&r.default.paths.linear()}}return u?u(e,t,i,s):null}},81891:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.configureScales=t.niceScale=t.offsetScale=t.getScaleRange=void 0;const s=i(46976),n=i(48643);function o(e,t,i){const n=e>=0&&i.stacking,o=t<=0&&i.stacking;return{min:n?0:Math.round(e-Math.abs(e)*(i.offset||s.DEFAULT_Y_AXIS_OFFSET)),max:o?0:Math.round(t+Math.abs(t)*(i.offset||s.DEFAULT_Y_AXIS_OFFSET))}}function l(e,t,i){const n=e>=0&&i.stacking,o=t<=0&&i.stacking?0:"number"===typeof i.max?i.max:t,l=n?0:"number"===typeof i.min?i.min:e;if(l===o)return l>=0?{min:l,max:l+2}:{min:l-1,max:l+1};const a=r(o-l,!1),u=r(a/(s.DEFAULT_MAX_TICKS-1),!0);let c=Math.ceil(o/u)*u;c=isNaN(c)?100:c;let d=(n?Math.min(0,l):Math.floor(l/u)*u)||0;return d===c&&(d-=1,c+=1),{min:d,max:c}}function r(e,t){const i=Math.floor(Math.log10(e)),s=e/10**i;return(t?s<1.5?1:s<3?2:s<7?5:10:s<=1?1:s<=2?2:s<=5?5:10)*10**i}t.getScaleRange=(e,t)=>{const i=e.range;if("function"===typeof i)return(e,s,n)=>i(e,s,n,t);if(e.normalize)return[0,e.normalizeBase||100];if("auto"===e.range)return;let n;switch(e.range){case void 0:case"nice":n=l;break;case"offset":n=o;break;default:throw new Error(`Unknown scale range type ${e.range}`)}return(i,o,l)=>{let{min:a,max:u}=n(o,l,e,t);const c=e.minRange||s.DEFAULT_SCALE_MIN_RANGE;if(Math.abs(u-a)<c&&(a>=0?u+=c:(u+=c/2,a-=c/2)),a="number"===typeof e.min?e.min:a,u="number"===typeof e.max?e.max:u,"logarithmic"===e.type){const t="number"===typeof e.min;a<=0?a=s.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE:t||(a=Math.min(a,s.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE))}return(a>=u||u<=a)&&("number"===typeof e.max?a=u-(r(u-.1*u,!1)||1):u=a+(r(a+.1*a,!1)||1)),[a,u]}},t.offsetScale=o,t.niceScale=l,t.configureScales=function(e,i,o){const l=o.scales?{...o.scales}:{};return Object.keys(o.scales).length||(l.y={}),Object.entries(l).forEach((([l,r])=>{i[l]=i[l]||{};const a=i[l];if(l===s.DEFAULT_X_SCALE)return;const u="number"===typeof r.min?r.min:null,c="number"===typeof r.max?r.max:null;if(null!==c&&null!==u){if(c<=u)throw new Error("Invalid scale config. .max should be > .min");a.range=[u,c]}const d="logarithmic"===r.type;if(d)return a.distr=n.Scale.Distr.Logarithmic,void(a.range=(0,t.getScaleRange)(r,o));e.isEmpty?a.range=[null===u?d?1:0:u,null===c?100:c]:a.range=(0,t.getScaleRange)(r,o)})),i.x||(i.x={time:!0}),i}},28265:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.overrideSeriesInUpdate=t.configureSeries=void 0;const l=o(i(46976)),r=i(50497),a=i(20500),u=i(67903),c=i(88274);function d(e,t,i,s){if(void 0!==e[i])return e[i];const n=t.config.chart.series;return n&&i in n?n[i]:s}t.configureSeries=function(e,t,i){var s,n;const o=d(t,e,"type","line"),h={...t,type:o,show:null===(s=t.show)||void 0===s||s,name:t.name||`${e.utils.i18n("series")} ${i+1}`,color:t.color?e.utils.colors.parse(t.color):e.utils.theme.DEFAULT_LINE_COLOR,id:(void 0===t.id?t.name:String(t.id))||(0,r.genId)(),$c:t.data,scale:t.scale||l.DEFAULT_Y_SCALE,count:0,sum:0,avg:0,getFocusedColor:a.getFocusedColor};h.points=h.points||{};const f=(0,a.getSerieFocusColors)(e,"color");return"area"===h.type&&(h.lineColor=e.utils.colors.parse(d(t,e,"lineColor",l.SERIE_AREA_BORDER_COLOR)),h.lineWidth=d(t,e,"lineWidth",l.SERIE_AREA_BORDER_WIDTH),h.fill=f,h.stroke=(0,a.getSerieFocusColors)(e,"lineColor"),h.width=h.lineWidth,h.points.show=u.drawMarkersIfRequired,h.interpolation=d(t,e,"interpolation","linear"),h.spanGaps=d(t,e,"spanGaps",!1)),"line"===h.type&&(h.width=d(t,e,"width",l.SERIE_LINE_WIDTH),h.width=h.width||l.SERIE_LINE_WIDTH,h.stroke=f,h.points.show=u.drawMarkersIfRequired,h.interpolation=d(t,e,"interpolation","linear"),h.spanGaps=d(t,e,"spanGaps",!1)),"column"===h.type&&(h.stroke=f,h.fill=f,h.points.show=!1,h.width=null!==(n=h.width)&&void 0!==n?n:0,h.renderOptions=d(h,e,"renderOptions")),"dots"===h.type&&(h.stroke=()=>h.color,h.fill=f,h.width=2,h.pointsSize=d(h,e,"pointsSize",l.DEFAULT_POINT_SIZE)),h.paths=c.pathsRenderer,h};t.overrideSeriesInUpdate=(e,t)=>{var i,s,n,o,l,r,a,u,c,d,h,f;e.$c=null!==(i=t.$c)&&void 0!==i?i:e.$c,e.show=null!==(s=t.show)&&void 0!==s?s:e.show,e.data=null!==(n=t.data)&&void 0!==n?n:e.data,e.width=null!==(o=t.width)&&void 0!==o?o:e.width,e.pointsSize=null!==(l=t.pointsSize)&&void 0!==l?l:e.pointsSize,e.color=null!==(r=t.color)&&void 0!==r?r:e.color,e.lineColor=null!==(a=t.lineColor)&&void 0!==a?a:e.lineColor,e.lineWidth=null!==(u=t.lineWidth)&&void 0!==u?u:e.lineWidth,e.stroke=null!==(c=t.stroke)&&void 0!==c?c:e.stroke,e.getFocusedColor=null!==(d=t.getFocusedColor)&&void 0!==d?d:e.getFocusedColor,e.formatter=null!==(h=t.formatter)&&void 0!==h?h:e.formatter,e.paths=null!==(f=t.paths)&&void 0!==f?f:e.paths}},48643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Axis=t.Scale=t.DrawOrderKey=void 0,t.DrawOrderKey={Series:"series",Axes:"axes"},t.Scale={Distr:{Linear:1,Ordinal:2,Logarithmic:3,ArcSinh:4,Custom:5}},t.Axis={Side:{Top:0,Right:1,Bottom:2,Left:3},Align:{Right:0,Left:1}}},68724:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||s(t,e,i)},l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=void 0,o(i(89353),t),o(i(98190),t);const a=l(i(46976));t.defaults=a;const u=r(i(37100));"undefined"!==typeof window&&Object.assign(window,{Yagr:u.default}),t.default=u.default},23936:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTooltipState=void 0;const r=o(i(59284)),a=l(i(37100));t.default=r.forwardRef((function({id:e,config:t,className:i="",debug:s,onChartLoad:n,onSelect:o,update:l="dynamic"},u){const c=r.useRef(null),d=r.useRef();r.useImperativeHandle(u,(()=>({yagr:()=>d.current,domElement:()=>c.current})));const h=r.useCallback((()=>{if(c.current){t.hooks=t.hooks||{};const e=t.hooks;if(n){const t=e.load||[];t.push((({chart:e,meta:t})=>{n(e,t)})),e.load=t}if(o){const t=e.onSelect||[];t.push((({from:e,to:t})=>o(e,t))),e.onSelect=t}d.current=new a.default(c.current,t)}}),[]);r.useEffect((()=>{var e;t&&(null===(e=d.current)||void 0===e||e.setConfig(t,"hard"===l))}),[t]),r.useEffect((()=>(h(),()=>{var e;null===(e=d.current)||void 0===e||e.dispose(),d.current=void 0})),[]);const f=r.useCallback((e=>{if(d.current&&(e.ctrlKey||e.metaKey)&&e.shiftKey){const e=d.current.toDataUrl().replace("image/png","image/octet-stream"),t=document.createElement("a");t.href=e,t.download=((null===s||void 0===s?void 0:s.filename)||d.current.id)+".png",t.click()}}),[e,d]);return r.createElement("div",{id:e,onClick:f,className:`yagr ${i}`,ref:c})}));t.useTooltipState=(e,t)=>{r.useEffect((()=>{var i;if(!e.current||!t.current)return;const s=t.current,n=e.current.yagr();n&&(null===(i=null===n||void 0===n?void 0:n.plugins)||void 0===i?void 0:i.tooltip)&&(n.plugins.tooltip.on("render",((e,t)=>{s.onChange(t)})),n.plugins.tooltip.on("show",((e,t)=>{s.onChange(t)})),n.plugins.tooltip.on("show",((e,t)=>{s.onChange(t)})))}),[e.current])}},16381:(e,t,i)=>{i.r(t),i.d(t,{default:()=>xs});const s="uplot",n="u-hz",o="u-vt",l="u-title",r="u-wrap",a="u-under",u="u-over",c="u-axis",d="u-off",h="u-select",f="u-cursor-x",p="u-cursor-y",g="u-cursor-pt",m="u-legend",_="u-live",v="u-inline",y="u-series",b="u-marker",w="u-label",E="u-value",S="width",x="height",A="top",T="bottom",O="left",L="right",I="#000",D=I+"0",M="mousemove",k="mousedown",C="mouseup",R="mouseenter",F="mouseleave",P="dblclick",U="change",N="dppxchange",$="--",j="undefined"!=typeof window,X=j?document:null,z=j?window:null,H=j?navigator:null;let Y,B;function V(e,t){if(null!=t){let i=e.classList;!i.contains(t)&&i.add(t)}}function W(e,t){let i=e.classList;i.contains(t)&&i.remove(t)}function G(e,t,i){e.style[t]=i+"px"}function K(e,t,i,s){let n=X.createElement(e);return null!=t&&V(n,t),null!=i&&i.insertBefore(n,s),n}function q(e,t){return K("div",e,t)}const Z=new WeakMap;function J(e,t,i,s,n){let o="translate("+t+"px,"+i+"px)";o!=Z.get(e)&&(e.style.transform=o,Z.set(e,o),t<0||i<0||t>s||i>n?V(e,d):W(e,d))}const Q=new WeakMap;function ee(e,t,i){let s=t+i;s!=Q.get(e)&&(Q.set(e,s),e.style.background=t,e.style.borderColor=i)}const te=new WeakMap;function ie(e,t,i,s){let n=t+""+i;n!=te.get(e)&&(te.set(e,n),e.style.height=i+"px",e.style.width=t+"px",e.style.marginLeft=s?-t/2+"px":0,e.style.marginTop=s?-i/2+"px":0)}const se={passive:!0},ne={...se,capture:!0};function oe(e,t,i,s){t.addEventListener(e,i,s?ne:se)}function le(e,t,i,s){t.removeEventListener(e,i,se)}function re(e,t,i,s){let n;i=i||0;let o=(s=s||t.length-1)<=2147483647;for(;s-i>1;)n=o?i+s>>1:Se((i+s)/2),t[n]<e?i=n:s=n;return e-t[i]<=t[s]-e?i:s}function ae(e,t,i,s){for(let n=1==s?t:i;n>=t&&n<=i;n+=s)if(null!=e[n])return n;return-1}function ue(e,t,i,s){let n=Ie(e),o=Ie(t);e==t&&(-1==n?(e*=i,t/=i):(e/=i,t*=i));let l=10==i?De:Me,r=1==o?Ae:Se,a=(1==n?Se:Ae)(l(Ee(e))),u=r(l(Ee(t))),c=Le(i,a),d=Le(i,u);return 10==i&&(a<0&&(c=Ge(c,-a)),u<0&&(d=Ge(d,-u))),s||2==i?(e=c*n,t=d*o):(e=We(e,c),t=Ve(t,d)),[e,t]}function ce(e,t,i,s){let n=ue(e,t,i,s);return 0==e&&(n[0]=0),0==t&&(n[1]=0),n}j&&function e(){let t=devicePixelRatio;Y!=t&&(Y=t,B&&le(U,B,e),B=matchMedia(`(min-resolution: ${Y-.001}dppx) and (max-resolution: ${Y+.001}dppx)`),oe(U,B,e),z.dispatchEvent(new CustomEvent(N)))}();const de=.1,he={mode:3,pad:de},fe={pad:0,soft:null,mode:0},pe={min:fe,max:fe};function ge(e,t,i,s){return ot(i)?_e(e,t,i):(fe.pad=i,fe.soft=s?0:null,fe.mode=s?3:0,_e(e,t,pe))}function me(e,t){return null==e?t:e}function _e(e,t,i){let s=i.min,n=i.max,o=me(s.pad,0),l=me(n.pad,0),r=me(s.hard,-Re),a=me(n.hard,Re),u=me(s.soft,Re),c=me(n.soft,-Re),d=me(s.mode,0),h=me(n.mode,0),f=t-e,p=De(f),g=Oe(Ee(e),Ee(t)),m=De(g),_=Ee(m-p);(f<1e-24||_>10)&&(f=0,0!=e&&0!=t||(f=1e-24,2==d&&u!=Re&&(o=0),2==h&&c!=-Re&&(l=0)));let v=f||g||1e3,y=De(v),b=Le(10,Se(y)),w=Ge(We(e-v*(0==f?0==e?.1:1:o),b/10),24),E=e>=u&&(1==d||3==d&&w<=u||2==d&&w>=u)?u:Re,S=Oe(r,w<E&&e>=E?E:Te(E,w)),x=Ge(Ve(t+v*(0==f?0==t?.1:1:l),b/10),24),A=t<=c&&(1==h||3==h&&x>=c||2==h&&x<=c)?c:-Re,T=Te(a,x>A&&t<=A?A:Oe(A,x));return S==T&&0==S&&(T=100),[S,T]}const ve=new Intl.NumberFormat(j?H.language:"en-US"),ye=e=>ve.format(e),be=Math,we=be.PI,Ee=be.abs,Se=be.floor,xe=be.round,Ae=be.ceil,Te=be.min,Oe=be.max,Le=be.pow,Ie=be.sign,De=be.log10,Me=be.log2,ke=(e,t=1)=>be.sinh(e)*t,Ce=(e,t=1)=>be.asinh(e/t),Re=1/0;function Fe(e){return 1+(0|De((e^e>>31)-(e>>31)))}function Pe(e,t,i){return Te(Oe(e,t),i)}function Ue(e){return"function"==typeof e?e:()=>e}const Ne=e=>e,$e=(e,t)=>t,je=e=>null,Xe=e=>!0,ze=(e,t)=>e==t,He=/\.\d*?(?=9{6,}|0{6,})/gm,Ye=e=>{if(it(e)||Ke.has(e))return e;const t=`${e}`,i=t.match(He);if(null==i)return e;let s=i[0].length-1;if(-1!=t.indexOf("e-")){let[e,i]=t.split("e");return+`${Ye(e)}e${i}`}return Ge(e,s)};function Be(e,t){return Ye(Ge(Ye(e/t))*t)}function Ve(e,t){return Ye(Ae(Ye(e/t))*t)}function We(e,t){return Ye(Se(Ye(e/t))*t)}function Ge(e,t=0){if(it(e))return e;let i=10**t,s=e*i*(1+Number.EPSILON);return xe(s)/i}const Ke=new Map;function qe(e){return((""+e).split(".")[1]||"").length}function Ze(e,t,i,s){let n=[],o=s.map(qe);for(let l=t;l<i;l++){let t=Ee(l),i=Ge(Le(e,l),t);for(let r=0;r<s.length;r++){let a=10==e?+`${s[r]}e${l}`:s[r]*i,u=(l>=0?0:t)+(l>=o[r]?0:o[r]),c=10==e?a:Ge(a,u);n.push(c),Ke.set(c,u)}}return n}const Je={},Qe=[],et=[null,null],tt=Array.isArray,it=Number.isInteger,st=e=>void 0===e;function nt(e){return"string"==typeof e}function ot(e){let t=!1;if(null!=e){let i=e.constructor;t=null==i||i==Object}return t}function lt(e){return null!=e&&"object"==typeof e}const rt=Object.getPrototypeOf(Uint8Array),at="__proto__";function ut(e,t=ot){let i;if(tt(e)){let s=e.find((e=>null!=e));if(tt(s)||t(s)){i=Array(e.length);for(let s=0;s<e.length;s++)i[s]=ut(e[s],t)}else i=e.slice()}else if(e instanceof rt)i=e.slice();else if(t(e)){i={};for(let s in e)s!=at&&(i[s]=ut(e[s],t))}else i=e;return i}function ct(e){let t=arguments;for(let i=1;i<t.length;i++){let s=t[i];for(let t in s)t!=at&&(ot(e[t])?ct(e[t],ut(s[t])):e[t]=ut(s[t]))}return e}function dt(e,t,i){for(let s,n=0,o=-1;n<t.length;n++){let l=t[n];if(l>o){for(s=l-1;s>=0&&null==e[s];)e[s--]=null;for(s=l+1;s<i&&null==e[s];)e[o=s++]=null}}}const ht="undefined"==typeof queueMicrotask?e=>Promise.resolve().then(e):queueMicrotask;const ft=["January","February","March","April","May","June","July","August","September","October","November","December"],pt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function gt(e){return e.slice(0,3)}const mt=pt.map(gt),_t=ft.map(gt),vt={MMMM:ft,MMM:_t,WWWW:pt,WWW:mt};function yt(e){return(e<10?"0":"")+e}const bt={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>yt(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>yt(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>yt(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return 0==t?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>yt(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>yt(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>{return((t=e.getMilliseconds())<10?"00":t<100?"0":"")+t;var t}};function wt(e,t){t=t||vt;let i,s=[],n=/\{([a-z]+)\}|[^{]+/gi;for(;i=n.exec(e);)s.push("{"==i[0][0]?bt[i[1]]:i[0]);return e=>{let i="";for(let n=0;n<s.length;n++)i+="string"==typeof s[n]?s[n]:s[n](e,t);return i}}const Et=(new Intl.DateTimeFormat).resolvedOptions().timeZone;const St=e=>e%1==0,xt=[1,2,2.5,5],At=Ze(10,-32,0,xt),Tt=Ze(10,0,32,xt),Ot=Tt.filter(St),Lt=At.concat(Tt),It="{YYYY}",Dt="\n"+It,Mt="{M}/{D}",kt="\n"+Mt,Ct=kt+"/{YY}",Rt="{aa}",Ft="{h}:{mm}"+Rt,Pt="\n"+Ft,Ut=":{ss}",Nt=null;function $t(e){let t=1e3*e,i=60*t,s=60*i,n=24*s,o=30*n,l=365*n;return[(1==e?Ze(10,0,3,xt).filter(St):Ze(10,-3,0,xt)).concat([t,5*t,10*t,15*t,30*t,i,5*i,10*i,15*i,30*i,s,2*s,3*s,4*s,6*s,8*s,12*s,n,2*n,3*n,4*n,5*n,6*n,7*n,8*n,9*n,10*n,15*n,o,2*o,3*o,4*o,6*o,l,2*l,5*l,10*l,25*l,50*l,100*l]),[[l,It,Nt,Nt,Nt,Nt,Nt,Nt,1],[28*n,"{MMM}",Dt,Nt,Nt,Nt,Nt,Nt,1],[n,Mt,Dt,Nt,Nt,Nt,Nt,Nt,1],[s,"{h}"+Rt,Ct,Nt,kt,Nt,Nt,Nt,1],[i,Ft,Ct,Nt,kt,Nt,Nt,Nt,1],[t,Ut,Ct+" "+Ft,Nt,kt+" "+Ft,Nt,Pt,Nt,1],[e,Ut+".{fff}",Ct+" "+Ft,Nt,kt+" "+Ft,Nt,Pt,Nt,1]],function(t){return(r,a,u,c,d,h)=>{let f=[],p=d>=l,g=d>=o&&d<l,m=t(u),_=Ge(m*e,3),v=Gt(m.getFullYear(),p?0:m.getMonth(),g||p?1:m.getDate()),y=Ge(v*e,3);if(g||p){let i=g?d/o:0,s=p?d/l:0,n=_==y?_:Ge(Gt(v.getFullYear()+s,v.getMonth()+i,1)*e,3),r=new Date(xe(n/e)),a=r.getFullYear(),u=r.getMonth();for(let o=0;n<=c;o++){let l=Gt(a+s*o,u+i*o,1),r=l-t(Ge(l*e,3));n=Ge((+l+r)*e,3),n<=c&&f.push(n)}}else{let o=d>=n?n:d,l=y+(Se(u)-Se(_))+Ve(_-y,o);f.push(l);let p=t(l),g=p.getHours()+p.getMinutes()/i+p.getSeconds()/s,m=d/s,v=h/r.axes[a]._space;for(;l=Ge(l+d,1==e?0:3),!(l>c);)if(m>1){let e=Se(Ge(g+m,6))%24,i=t(l).getHours()-e;i>1&&(i=-1),l-=i*s,g=(g+m)%24,Ge((l-f[f.length-1])/d,3)*v>=.7&&f.push(l)}else f.push(l)}return f}}]}const[jt,Xt,zt]=$t(1),[Ht,Yt,Bt]=$t(.001);function Vt(e,t){return e.map((e=>e.map(((i,s)=>0==s||8==s||null==i?i:t(1==s||0==e[8]?i:e[1]+i)))))}function Wt(e,t){return(i,s,n,o,l)=>{let r,a,u,c,d,h,f=t.find((e=>l>=e[0]))||t[t.length-1];return s.map((t=>{let i=e(t),s=i.getFullYear(),n=i.getMonth(),o=i.getDate(),l=i.getHours(),p=i.getMinutes(),g=i.getSeconds(),m=s!=r&&f[2]||n!=a&&f[3]||o!=u&&f[4]||l!=c&&f[5]||p!=d&&f[6]||g!=h&&f[7]||f[1];return r=s,a=n,u=o,c=l,d=p,h=g,m(i)}))}}function Gt(e,t,i){return new Date(e,t,i)}function Kt(e,t){return t(e)}Ze(2,-53,53,[1]);const qt="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Zt(e,t){return(i,s,n,o)=>null==o?$:t(e(s))}const Jt={show:!0,live:!0,isolate:!1,mount:()=>{},markers:{show:!0,width:2,stroke:function(e,t){let i=e.series[t];return i.width?i.stroke(e,t):i.points.width?i.points.stroke(e,t):null},fill:function(e,t){return e.series[t].fill(e,t)},dash:"solid"},idx:null,idxs:null,values:[]};const Qt=[0,0];function ei(e,t,i,s=!0){return e=>{0==e.button&&(!s||e.target==t)&&i(e)}}function ti(e,t,i,s=!0){return e=>{(!s||e.target==t)&&i(e)}}const ii={show:!0,x:!0,y:!0,lock:!1,move:function(e,t,i){return Qt[0]=t,Qt[1]=i,Qt},points:{one:!1,show:function(e,t){let i=e.cursor.points,s=q(),n=i.size(e,t);G(s,S,n),G(s,x,n);let o=n/-2;G(s,"marginLeft",o),G(s,"marginTop",o);let l=i.width(e,t,n);return l&&G(s,"borderWidth",l),s},size:function(e,t){return e.series[t].points.size},width:0,stroke:function(e,t){let i=e.series[t].points;return i._stroke||i._fill},fill:function(e,t){let i=e.series[t].points;return i._fill||i._stroke}},bind:{mousedown:ei,mouseup:ei,click:ei,dblclick:ei,mousemove:ti,mouseleave:ti,mouseenter:ti},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,t,i,s,n)=>s-n,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},si={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},ni=ct({},si,{filter:$e}),oi=ct({},ni,{size:10}),li=ct({},si,{show:!1}),ri='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',ai="bold "+ri,ui={show:!0,scale:"x",stroke:I,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:ai,side:2,grid:ni,ticks:oi,border:li,font:ri,lineGap:1.5,rotate:0},ci="Value",di="Time",hi={show:!0,scale:"x",auto:!1,sorted:1,min:Re,max:-Re,idxs:[]};function fi(e,t,i,s,n){return t.map((e=>null==e?"":ye(e)))}function pi(e,t,i,s,n,o,l){let r=[],a=Ke.get(n)||0;for(let u=i=l?i:Ge(Ve(i,n),a);u<=s;u=Ge(u+n,a))r.push(Object.is(u,-0)?0:u);return r}function gi(e,t,i,s,n,o,l){const r=[],a=e.scales[e.axes[t].scale].log,u=Se((10==a?De:Me)(i));n=Le(a,u),10==a&&(n=Lt[re(n,Lt)]);let c=i,d=n*a;10==a&&(d=Lt[re(d,Lt)]);do{r.push(c),c+=n,10!=a||Ke.has(c)||(c=Ge(c,Ke.get(n))),c>=d&&(d=(n=c)*a,10==a&&(d=Lt[re(d,Lt)]))}while(c<=s);return r}function mi(e,t,i,s,n,o,l){let r=e.scales[e.axes[t].scale].asinh,a=s>r?gi(e,t,Oe(r,i),s,n):[r],u=s>=0&&i<=0?[0]:[];return(i<-r?gi(e,t,Oe(r,-s),-i,n):[r]).reverse().map((e=>-e)).concat(u,a)}const _i=/./,vi=/[12357]/,yi=/[125]/,bi=/1/,wi=(e,t,i,s)=>e.map(((e,n)=>4==t&&0==e||n%s==0&&i.test(e.toExponential()[e<0?1:0])?e:null));function Ei(e,t,i,s,n){let o=e.axes[i],l=o.scale,r=e.scales[l],a=e.valToPos,u=o._space,c=a(10,l),d=a(9,l)-c>=u?_i:a(7,l)-c>=u?vi:a(5,l)-c>=u?yi:bi;if(d==bi){let e=Ee(a(1,l)-c);if(e<u)return wi(t.slice().reverse(),r.distr,d,Ae(u/e)).reverse()}return wi(t,r.distr,d,1)}function Si(e,t,i,s,n){let o=e.axes[i],l=o.scale,r=o._space,a=e.valToPos,u=Ee(a(1,l)-a(2,l));return u<r?wi(t.slice().reverse(),3,_i,Ae(r/u)).reverse():t}function xi(e,t,i,s){return null==s?$:null==t?"":ye(t)}const Ai={show:!0,scale:"y",stroke:I,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:ai,side:3,grid:ni,ticks:oi,border:li,font:ri,lineGap:1.5,rotate:0};const Ti={scale:null,auto:!0,sorted:0,min:Re,max:-Re},Oi=(e,t,i,s,n)=>n,Li={show:!0,auto:!0,sorted:0,gaps:Oi,alpha:1,facets:[ct({},Ti,{scale:"x"}),ct({},Ti,{scale:"y"})]},Ii={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Oi,alpha:1,points:{show:function(e,t){let{scale:i,idxs:s}=e.series[0],n=e._data[0],o=e.valToPos(n[s[0]],i,!0),l=e.valToPos(n[s[1]],i,!0),r=Ee(l-o)/(e.series[t].points.space*Y);return s[1]-s[0]<=r},filter:null},values:null,min:Re,max:-Re,idxs:[],path:null,clip:null};function Di(e,t,i,s,n){return i/10}const Mi={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},ki=ct({},Mi,{time:!1,ori:1}),Ci={};function Ri(e,t){let i=Ci[e];return i||(i={key:e,plots:[],sub(e){i.plots.push(e)},unsub(e){i.plots=i.plots.filter((t=>t!=e))},pub(e,t,s,n,o,l,r){for(let a=0;a<i.plots.length;a++)i.plots[a]!=t&&i.plots[a].pub(e,t,s,n,o,l,r)}},null!=e&&(Ci[e]=i)),i}const Fi=1,Pi=2;function Ui(e,t,i){const s=e.mode,n=e.series[t],o=2==s?e._data[t]:e._data,l=e.scales,r=e.bbox;let a=o[0],u=2==s?o[1]:o[t],c=2==s?l[n.facets[0].scale]:l[e.series[0].scale],d=2==s?l[n.facets[1].scale]:l[n.scale],h=r.left,f=r.top,p=r.width,g=r.height,m=e.valToPosH,_=e.valToPosV;return 0==c.ori?i(n,a,u,c,d,m,_,h,f,p,g,Bi,Wi,Ki,Zi,Qi):i(n,a,u,c,d,_,m,f,h,g,p,Vi,Gi,qi,Ji,es)}function Ni(e,t){let i=0,s=0,n=me(e.bands,Qe);for(let o=0;o<n.length;o++){let e=n[o];e.series[0]==t?i=e.dir:e.series[1]==t&&(1==e.dir?s|=1:s|=2)}return[i,1==s?-1:2==s?1:3==s?2:0]}function $i(e,t,i,s,n){let o=e.mode,l=e.series[t],r=2==o?l.facets[1].scale:l.scale,a=e.scales[r];return-1==n?a.min:1==n?a.max:3==a.distr?1==a.dir?a.min:a.max:0}function ji(e,t,i,s,n,o){return Ui(e,t,((e,t,l,r,a,u,c,d,h,f,p)=>{let g=e.pxRound;const m=r.dir*(0==r.ori?1:-1),_=0==r.ori?Wi:Gi;let v,y;1==m?(v=i,y=s):(v=s,y=i);let b=g(u(t[v],r,f,d)),w=g(c(l[v],a,p,h)),E=g(u(t[y],r,f,d)),S=g(c(1==o?a.max:a.min,a,p,h)),x=new Path2D(n);return _(x,E,S),_(x,b,S),_(x,b,w),x}))}function Xi(e,t,i,s,n,o){let l=null;if(e.length>0){l=new Path2D;const r=0==t?Ki:qi;let a=i;for(let t=0;t<e.length;t++){let i=e[t];if(i[1]>i[0]){let e=i[0]-a;e>0&&r(l,a,s,e,s+o),a=i[1]}}let u=i+n-a,c=10;u>0&&r(l,a,s-c/2,u,s+o+c)}return l}function zi(e,t,i,s,n,o,l){let r=[],a=e.length;for(let u=1==n?i:s;u>=i&&u<=s;u+=n){if(null===t[u]){let c=u,d=u;if(1==n)for(;++u<=s&&null===t[u];)d=u;else for(;--u>=i&&null===t[u];)d=u;let h=o(e[c]),f=d==c?h:o(e[d]),p=c-n;h=l<=0&&p>=0&&p<a?o(e[p]):h;let g=d+n;f=l>=0&&g>=0&&g<a?o(e[g]):f,f>=h&&r.push([h,f])}}return r}function Hi(e){return 0==e?Ne:1==e?xe:t=>Be(t,e)}function Yi(e){let t=0==e?Bi:Vi,i=0==e?(e,t,i,s,n,o)=>{e.arcTo(t,i,s,n,o)}:(e,t,i,s,n,o)=>{e.arcTo(i,t,n,s,o)},s=0==e?(e,t,i,s,n)=>{e.rect(t,i,s,n)}:(e,t,i,s,n)=>{e.rect(i,t,n,s)};return(e,n,o,l,r,a=0,u=0)=>{0==a&&0==u?s(e,n,o,l,r):(a=Te(a,l/2,r/2),u=Te(u,l/2,r/2),t(e,n+a,o),i(e,n+l,o,n+l,o+r,a),i(e,n+l,o+r,n,o+r,u),i(e,n,o+r,n,o,u),i(e,n,o,n+l,o,a),e.closePath())}}const Bi=(e,t,i)=>{e.moveTo(t,i)},Vi=(e,t,i)=>{e.moveTo(i,t)},Wi=(e,t,i)=>{e.lineTo(t,i)},Gi=(e,t,i)=>{e.lineTo(i,t)},Ki=Yi(0),qi=Yi(1),Zi=(e,t,i,s,n,o)=>{e.arc(t,i,s,n,o)},Ji=(e,t,i,s,n,o)=>{e.arc(i,t,s,n,o)},Qi=(e,t,i,s,n,o,l)=>{e.bezierCurveTo(t,i,s,n,o,l)},es=(e,t,i,s,n,o,l)=>{e.bezierCurveTo(i,t,n,s,l,o)};function ts(e){return(e,t,i,s,n)=>Ui(e,t,((t,o,l,r,a,u,c,d,h,f,p)=>{let g,m,{pxRound:_,points:v}=t;0==r.ori?(g=Bi,m=Zi):(g=Vi,m=Ji);const y=Ge(v.width*Y,3);let b=(v.size-v.width)/2*Y,w=Ge(2*b,3),E=new Path2D,S=new Path2D,{left:x,top:A,width:T,height:O}=e.bbox;Ki(S,x-w,A-w,T+2*w,O+2*w);const L=e=>{if(null!=l[e]){let t=_(u(o[e],r,f,d)),i=_(c(l[e],a,p,h));g(E,t+b,i),m(E,t,i,b,0,2*we)}};if(n)n.forEach(L);else for(let e=i;e<=s;e++)L(e);return{stroke:y>0?E:null,fill:E,clip:S,flags:Fi|Pi}}))}function is(e){return(t,i,s,n,o,l)=>{s!=n&&(o!=s&&l!=s&&e(t,i,s),o!=n&&l!=n&&e(t,i,n),e(t,i,l))}}const ss=is(Wi),ns=is(Gi);function os(e){const t=me(e?.alignGaps,0);return(e,i,s,n)=>Ui(e,i,((o,l,r,a,u,c,d,h,f,p,g)=>{let m,_,v=o.pxRound,y=e=>v(c(e,a,p,h)),b=e=>v(d(e,u,g,f));0==a.ori?(m=Wi,_=ss):(m=Gi,_=ns);const w=a.dir*(0==a.ori?1:-1),E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Fi},S=E.stroke;let x,A,T,O=Re,L=-Re,I=y(l[1==w?s:n]),D=ae(r,s,n,1*w),M=ae(r,s,n,-1*w),k=y(l[D]),C=y(l[M]),R=!1;for(let e=1==w?s:n;e>=s&&e<=n;e+=w){let t=y(l[e]),i=r[e];t==I?null!=i?(A=b(i),O==Re&&(m(S,t,A),x=A),O=Te(A,O),L=Oe(A,L)):null===i&&(R=!0):(O!=Re&&(_(S,I,O,L,x,A),T=I),null!=i?(A=b(i),m(S,t,A),O=L=x=A):(O=Re,L=-Re,null===i&&(R=!0)),I=t)}O!=Re&&O!=L&&T!=I&&_(S,I,O,L,x,A);let[F,P]=Ni(e,i);if(null!=o.fill||0!=F){let t=E.fill=new Path2D(S),s=b(o.fillTo(e,i,o.min,o.max,F));m(t,C,s),m(t,k,s)}if(!o.spanGaps){let u=[];R&&u.push(...zi(l,r,s,n,w,y,t)),E.gaps=u=o.gaps(e,i,s,n,u),E.clip=Xi(u,a.ori,h,f,p,g)}return 0!=P&&(E.band=2==P?[ji(e,i,s,n,S,-1),ji(e,i,s,n,S,1)]:ji(e,i,s,n,S,P)),E}))}function ls(e,t,i,s,n,o,l=Re){if(e.length>1){let r=null;for(let a=0,u=1/0;a<e.length;a++)if(void 0!==t[a]){if(null!=r){let t=Ee(e[a]-e[r]);t<u&&(u=t,l=Ee(i(e[a],s,n,o)-i(e[r],s,n,o)))}r=a}}return l}function rs(e,t,i,s,n,o){const l=e.length;if(l<2)return null;const r=new Path2D;if(i(r,e[0],t[0]),2==l)s(r,e[1],t[1]);else{let i=Array(l),s=Array(l-1),o=Array(l-1),a=Array(l-1);for(let n=0;n<l-1;n++)o[n]=t[n+1]-t[n],a[n]=e[n+1]-e[n],s[n]=o[n]/a[n];i[0]=s[0];for(let e=1;e<l-1;e++)0===s[e]||0===s[e-1]||s[e-1]>0!==s[e]>0?i[e]=0:(i[e]=3*(a[e-1]+a[e])/((2*a[e]+a[e-1])/s[e-1]+(a[e]+2*a[e-1])/s[e]),isFinite(i[e])||(i[e]=0));i[l-1]=s[l-2];for(let u=0;u<l-1;u++)n(r,e[u]+a[u]/3,t[u]+i[u]*a[u]/3,e[u+1]-a[u]/3,t[u+1]-i[u+1]*a[u]/3,e[u+1],t[u+1])}return r}const as=new Set;function us(){for(let e of as)e.syncRect(!0)}j&&(oe("resize",z,us),oe("scroll",z,us,!0),oe(N,z,(()=>{xs.pxRatio=Y})));const cs=os(),ds=ts();function hs(e,t,i,s){return(s?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map(((e,s)=>fs(e,s,t,i)))}function fs(e,t,i,s){return ct({},0==t?i:s,e)}function ps(e,t,i){return null==t?et:[t,i]}const gs=ps;function ms(e,t,i){return null==t?et:ge(t,i,de,!0)}function _s(e,t,i,s){return null==t?et:ue(t,i,e.scales[s].log,!1)}const vs=_s;function ys(e,t,i,s){return null==t?et:ce(t,i,e.scales[s].log,!1)}const bs=ys;function ws(e,t,i,s,n){let o=Oe(Fe(e),Fe(t)),l=t-e,r=re(n/s*l,i);do{let e=i[r],t=s*e/l;if(t>=n&&o+(e<5?Ke.get(e):0)<=17)return[e,t]}while(++r<i.length);return[0,0]}function Es(e){let t,i;return[e=e.replace(/(\d+)px/,((e,s)=>(t=xe((i=+s)*Y))+"px")),t,i]}function Ss(e){e.show&&[e.font,e.labelFont].forEach((e=>{let t=Ge(e[2]*Y,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t}))}function xs(e,t,i){const I={mode:me(e.mode,1)},U=I.mode;function j(e,t){return((3==t.distr?De(e>0?e:t.clamp(I,e,t.min,t.max,t.key)):4==t.distr?Ce(e,t.asinh):100==t.distr?t.fwd(e):e)-t._min)/(t._max-t._min)}function H(e,t,i,s){let n=j(e,t);return s+i*(-1==t.dir?1-n:n)}function B(e,t,i,s){let n=j(e,t);return s+i*(-1==t.dir?n:1-n)}function Z(e,t,i,s){return 0==t.ori?H(e,t,i,s):B(e,t,i,s)}I.valToPosH=H,I.valToPosV=B;let Q=!1;I.status=0;const te=I.root=q(s);if(null!=e.id&&(te.id=e.id),V(te,e.class),e.title){q(l,te).textContent=e.title}const se=K("canvas"),ne=I.ctx=se.getContext("2d"),ae=q(r,te);oe("click",ae,(e=>{if(e.target===pe){(an!=nn||un!=on)&&vn.click(I,e)}}),!0);const fe=I.under=q(a,ae);ae.appendChild(se);const pe=I.over=q(u,ae),_e=+me((e=ut(e)).pxAlign,1),ve=Hi(_e);(e.plugins||[]).forEach((t=>{t.opts&&(e=t.opts(I,e)||e)}));const ye=e.ms||.001,be=I.series=1==U?hs(e.series||[],hi,Ii,!1):(Se=e.series||[null],Ie=Li,Se.map(((e,t)=>0==t?{}:ct({},Ie,e))));var Se,Ie;const Me=I.axes=hs(e.axes||[],ui,Ai,!0),Fe=I.scales={},Ne=I.bands=e.bands||[];Ne.forEach((e=>{e.fill=Ue(e.fill||null),e.dir=me(e.dir,-1)}));const He=2==U?be[1].facets[0].scale:be[0].scale,Ye={axes:function(){for(let e=0;e<Me.length;e++){let t=Me[e];if(!t.show||!t._show)continue;let i,s,n=t.side,o=n%2,l=t.stroke(I,e),r=0==n||3==n?-1:1;if(t.label){let e=t.labelGap*r,a=xe((t._lpos+e)*Y);Ns(t.labelFont[0],l,"center",2==n?A:T),ne.save(),1==o?(i=s=0,ne.translate(a,xe(_i+yi/2)),ne.rotate((3==n?-we:we)/2)):(i=xe(ai+vi/2),s=a),ne.fillText(t.label,i,s),ne.restore()}let[a,u]=t._found;if(0==u)continue;let c=Fe[t.scale],d=0==o?vi:yi,h=0==o?ai:_i,f=xe(t.gap*Y),p=t._splits,g=2==c.distr?p.map((e=>Cs[e])):p,m=2==c.distr?Cs[p[1]]-Cs[p[0]]:a,_=t.ticks,v=t.border,y=_.show?xe(_.size*Y):0,b=t._rotate*-we/180,w=ve(t._pos*Y),E=w+(y+f)*r;s=0==o?E:0,i=1==o?E:0,Ns(t.font[0],l,1==t.align?O:2==t.align?L:b>0?O:b<0?L:0==o?"center":3==n?L:O,b||1==o?"middle":2==n?A:T);let S=t.font[1]*t.lineGap,x=p.map((e=>ve(Z(e,c,d,h)))),D=t._values;for(let e=0;e<D.length;e++){let t=D[e];if(null!=t){0==o?i=x[e]:s=x[e],t=""+t;let n=-1==t.indexOf("\n")?[t]:t.split(/\n/gm);for(let e=0;e<n.length;e++){let t=n[e];b?(ne.save(),ne.translate(i,s+e*S),ne.rotate(b),ne.fillText(t,0,0),ne.restore()):ne.fillText(t,i,s+e*S)}}}_.show&&Ws(x,_.filter(I,g,e,u,m),o,n,w,y,Ge(_.width*Y,3),_.stroke(I,e),_.dash,_.cap);let M=t.grid;M.show&&Ws(x,M.filter(I,g,e,u,m),o,0==o?2:1,0==o?_i:ai,0==o?yi:vi,Ge(M.width*Y,3),M.stroke(I,e),M.dash,M.cap),v.show&&Ws([w],[1],0==o?1:0,0==o?1:2,1==o?_i:ai,1==o?yi:vi,Ge(v.width*Y,3),v.stroke(I,e),v.dash,v.cap)}eo("drawAxes")},series:function(){ns>0&&(be.forEach(((e,i)=>{if(i>0&&e.show&&(Xs(i,!1),Xs(i,!0),null==e._paths)){ks!=e.alpha&&(ne.globalAlpha=ks=e.alpha);let s=2==U?[0,t[i][0].length-1]:function(e){let t=Pe(os-1,0,ns-1),i=Pe(ls+1,0,ns-1);for(;null==e[t]&&t>0;)t--;for(;null==e[i]&&i<ns-1;)i++;return[t,i]}(t[i]);e._paths=e.paths(I,i,s[0],s[1]),1!=ks&&(ne.globalAlpha=ks=1)}})),be.forEach(((e,t)=>{if(t>0&&e.show){ks!=e.alpha&&(ne.globalAlpha=ks=e.alpha),null!=e._paths&&zs(t,!1);{let i=null!=e._paths?e._paths.gaps:null,s=e.points.show(I,t,os,ls,i),n=e.points.filter(I,t,s,i);(s||n)&&(e.points._paths=e.points.paths(I,t,os,ls,n),zs(t,!0))}1!=ks&&(ne.globalAlpha=ks=1),eo("drawSeries",t)}})))}},Ve=(e.drawOrder||["axes","series"]).map((e=>Ye[e]));function We(t){let i=Fe[t];if(null==i){let s=(e.scales||Je)[t]||Je;if(null!=s.from)We(s.from),Fe[t]=ct({},Fe[s.from],s,{key:t});else{i=Fe[t]=ct({},t==He?Mi:ki,s),i.key=t;let e=i.time,n=i.range,o=tt(n);if((t!=He||2==U&&!e)&&(!o||null!=n[0]&&null!=n[1]||(n={min:null==n[0]?he:{mode:1,hard:n[0],soft:n[0]},max:null==n[1]?he:{mode:1,hard:n[1],soft:n[1]}},o=!1),!o&&ot(n))){let e=n;n=(t,i,s)=>null==i?et:ge(i,s,e)}i.range=Ue(n||(e?gs:t==He?3==i.distr?vs:4==i.distr?bs:ps:3==i.distr?_s:4==i.distr?ys:ms)),i.auto=Ue(!o&&i.auto),i.clamp=Ue(i.clamp||Di),i._min=i._max=null}}}We("x"),We("y"),1==U&&be.forEach((e=>{We(e.scale)})),Me.forEach((e=>{We(e.scale)}));for(let s in e.scales)We(s);const Ze=Fe[He],it=Ze.distr;let rt,at;0==Ze.ori?(V(te,n),rt=H,at=B):(V(te,o),rt=B,at=H);const dt={};for(let s in Fe){let e=Fe[s];null==e.min&&null==e.max||(dt[s]={min:e.min,max:e.max},e.min=e.max=null)}const ft=e.tzDate||(e=>new Date(xe(e/ye))),pt=e.fmtDate||wt,gt=1==ye?zt(ft):Bt(ft),mt=Wt(ft,Vt(1==ye?Xt:Yt,pt)),_t=Zt(ft,Kt(qt,pt)),vt=[],yt=I.legend=ct({},Jt,e.legend),bt=yt.show,Et=yt.markers;let St,xt,At;yt.idxs=vt,Et.width=Ue(Et.width),Et.dash=Ue(Et.dash),Et.stroke=Ue(Et.stroke),Et.fill=Ue(Et.fill);let Tt,It=[],Dt=[],Mt=!1,kt={};if(yt.live){const e=be[1]?be[1].values:null;Mt=null!=e,Tt=Mt?e(I,1,0):{_:0};for(let t in Tt)kt[t]=$}if(bt)if(St=K("table",m,te),At=K("tbody",null,St),yt.mount(I,St),Mt){xt=K("thead",null,St,At);let e=K("tr",null,xt);for(var Ct in K("th",null,e),Tt)K("th",w,e).textContent=Ct}else V(St,v),yt.live&&V(St,_);const Rt={show:!0},Ft={show:!1};const Pt=new Map;function Ut(e,t,i,s=!0){const n=Pt.get(t)||{},o=zi.bind[e](I,t,i,s);o&&(oe(e,t,n[e]=o),Pt.set(t,n))}function Nt(e,t,i){const s=Pt.get(t)||{};for(let n in s)null!=e&&n!=e||(le(n,t,s[n]),delete s[n]);null==e&&Pt.delete(t)}let $t=0,Gt=0,Qt=0,ei=0,ti=0,si=0,ni=ti,oi=si,li=Qt,ri=ei,ai=0,_i=0,vi=0,yi=0;I.bbox={};let bi=!1,wi=!1,Ti=!1,Oi=!1,Ci=!1,Ui=!1;function Ni(e,t,i){(i||e!=I.width||t!=I.height)&&ji(e,t),qs(!1),Ti=!0,wi=!0,pn()}function ji(e,t){I.width=$t=Qt=e,I.height=Gt=ei=t,ti=si=0,function(){let e=!1,t=!1,i=!1,s=!1;Me.forEach(((n,o)=>{if(n.show&&n._show){let{side:o,_size:l}=n,r=o%2,a=l+(null!=n.label?n.labelSize:0);a>0&&(r?(Qt-=a,3==o?(ti+=a,s=!0):i=!0):(ei-=a,0==o?(si+=a,e=!0):t=!0))}})),es[0]=e,es[1]=i,es[2]=t,es[3]=s,Qt-=ss[1]+ss[3],ti+=ss[3],ei-=ss[2]+ss[0],si+=ss[0]}(),function(){let e=ti+Qt,t=si+ei,i=ti,s=si;function n(n,o){switch(n){case 1:return e+=o,e-o;case 2:return t+=o,t-o;case 3:return i-=o,i+o;case 0:return s-=o,s+o}}Me.forEach(((e,t)=>{if(e.show&&e._show){let t=e.side;e._pos=n(t,e._size),null!=e.label&&(e._lpos=n(t,e.labelSize))}}))}();let i=I.bbox;ai=i.left=Be(ti*Y,.5),_i=i.top=Be(si*Y,.5),vi=i.width=Be(Qt*Y,.5),yi=i.height=Be(ei*Y,.5)}const Xi=3;I.setSize=function({width:e,height:t}){Ni(e,t)};const zi=I.cursor=ct({},ii,{drag:{y:2==U}},e.cursor);if(null==zi.dataIdx){let e=zi.hover,i=e.skip=new Set(e.skip??[]);i.add(void 0);let s=e.prox=Ue(e.prox),n=e.bias??=0;zi.dataIdx=(e,o,l,r)=>{if(0==o)return l;let a=l,u=s(e,o,l,r)??Re,c=u>=0&&u<Re,d=0==Ze.ori?Qt:ei,h=zi.left,f=t[0],p=t[o];if(i.has(p[l])){a=null;let e,t=null,s=null;if(0==n||-1==n)for(e=l;null==t&&e-- >0;)i.has(p[e])||(t=e);if(0==n||1==n)for(e=l;null==s&&e++<p.length;)i.has(p[e])||(s=e);if(null!=t||null!=s)if(c){let e=h-(null==t?-1/0:rt(f[t],Ze,d,0)),i=(null==s?1/0:rt(f[s],Ze,d,0))-h;e<=i?e<=u&&(a=t):i<=u&&(a=s)}else a=null==s?t:null==t?s:l-t<=s-l?t:s}else if(c){Ee(h-rt(f[l],Ze,d,0))>u&&(a=null)}return a}}const Yi=e=>{zi.event=e};zi.idxs=vt,zi._lock=!1;let Bi=zi.points;Bi.show=Ue(Bi.show),Bi.size=Ue(Bi.size),Bi.stroke=Ue(Bi.stroke),Bi.width=Ue(Bi.width),Bi.fill=Ue(Bi.fill);const Vi=I.focus=ct({},e.focus||{alpha:.3},zi.focus),Wi=Vi.prox>=0,Gi=Wi&&Bi.one;let Ki=[],qi=[],Zi=[];function Ji(e,t){let i=Bi.show(I,t);if(i)return V(i,g),V(i,e.class),J(i,-10,-10,Qt,ei),pe.insertBefore(i,Ki[t]),i}function Qi(e,t){if(1==U||t>0){let t=1==U&&Fe[e.scale].time,i=e.value;e.value=t?nt(i)?Zt(ft,Kt(i,pt)):i||_t:i||xi,e.label=e.label||(t?di:ci)}if(Gi||t>0){e.width=null==e.width?1:e.width,e.paths=e.paths||cs||je,e.fillTo=Ue(e.fillTo||$i),e.pxAlign=+me(e.pxAlign,_e),e.pxRound=Hi(e.pxAlign),e.stroke=Ue(e.stroke||null),e.fill=Ue(e.fill||null),e._stroke=e._fill=e._paths=e._focus=null;let t=Ge((3+2*(Oe(1,e.width)||1))*1,3),i=e.points=ct({},{size:t,width:Oe(1,.2*t),stroke:e.stroke,space:2*t,paths:ds,_stroke:null,_fill:null},e.points);i.show=Ue(i.show),i.filter=Ue(i.filter),i.fill=Ue(i.fill),i.stroke=Ue(i.stroke),i.paths=Ue(i.paths),i.pxAlign=e.pxAlign}if(bt){let i=function(e,t){if(0==t&&(Mt||!yt.live||2==U))return et;let i=[],s=K("tr",y,At,At.childNodes[t]);V(s,e.class),e.show||V(s,d);let n=K("th",null,s);if(Et.show){let e=q(b,n);if(t>0){let i=Et.width(I,t);i&&(e.style.border=i+"px "+Et.dash(I,t)+" "+Et.stroke(I,t)),e.style.background=Et.fill(I,t)}}let o=q(w,n);for(var l in o.textContent=e.label,t>0&&(Et.show||(o.style.color=e.width>0?Et.stroke(I,t):Et.fill(I,t)),Ut("click",n,(t=>{if(zi._lock)return;Yi(t);let i=be.indexOf(e);if((t.ctrlKey||t.metaKey)!=yt.isolate){let e=be.some(((e,t)=>t>0&&t!=i&&e.show));be.forEach(((t,s)=>{s>0&&An(s,e?s==i?Rt:Ft:Rt,!0,io.setSeries)}))}else An(i,{show:!e.show},!0,io.setSeries)}),!1),Wi&&Ut(R,n,(t=>{zi._lock||(Yi(t),An(be.indexOf(e),In,!0,io.setSeries))}),!1)),Tt){let e=K("td",E,s);e.textContent="--",i.push(e)}return[s,i]}(e,t);It.splice(t,0,i[0]),Dt.splice(t,0,i[1]),yt.values.push(null)}if(zi.show){vt.splice(t,0,null);let i=null;Gi?0==t&&(i=Ji(e,t)):t>0&&(i=Ji(e,t)),Ki.splice(t,0,i),qi.splice(t,0,0),Zi.splice(t,0,0)}eo("addSeries",t)}I.addSeries=function(e,t){t=null==t?be.length:t,e=1==U?fs(e,t,hi,Ii):fs(e,t,{},Li),be.splice(t,0,e),Qi(be[t],t)},I.delSeries=function(e){if(be.splice(e,1),bt){yt.values.splice(e,1),Dt.splice(e,1);let t=It.splice(e,1)[0];Nt(null,t.firstChild),t.remove()}zi.show&&(vt.splice(e,1),Ki.splice(e,1)[0].remove(),qi.splice(e,1),Zi.splice(e,1)),eo("delSeries",e)};const es=[!1,!1,!1,!1];function ts(e,t,i,s){let[n,o,l,r]=i,a=t%2,u=0;return 0==a&&(r||o)&&(u=0==t&&!n||2==t&&!l?xe(ui.size/3):0),1==a&&(n||l)&&(u=1==t&&!o||3==t&&!r?xe(Ai.size/2):0),u}const is=I.padding=(e.padding||[ts,ts,ts,ts]).map((e=>Ue(me(e,ts)))),ss=I._padding=is.map(((e,t)=>e(I,t,es,0)));let ns,os=null,ls=null;const rs=1==U?be[0].idxs:null;let us,xs,As,Ts,Os,Ls,Is,Ds,Ms,ks,Cs=null,Rs=!1;function Fs(e,i){if(t=null==e?[]:e,I.data=I._data=t,2==U){ns=0;for(let e=1;e<be.length;e++)ns+=t[e][0].length}else{0==t.length&&(I.data=I._data=t=[[]]),Cs=t[0],ns=Cs.length;let e=t;if(2==it){e=t.slice();let i=e[0]=Array(ns);for(let e=0;e<ns;e++)i[e]=e}I._data=t=e}if(qs(!0),eo("setData"),2==it&&(Ti=!0),!1!==i){let e=Ze;e.auto(I,Rs)?Ps():xn(He,e.min,e.max),Oi=Oi||zi.left>=0,Ui=!0,pn()}}function Ps(){let e,i;Rs=!0,1==U&&(ns>0?(os=rs[0]=0,ls=rs[1]=ns-1,e=t[0][os],i=t[0][ls],2==it?(e=os,i=ls):e==i&&(3==it?[e,i]=ue(e,e,Ze.log,!1):4==it?[e,i]=ce(e,e,Ze.log,!1):Ze.time?i=e+xe(86400/ye):[e,i]=ge(e,i,de,!0))):(os=rs[0]=e=null,ls=rs[1]=i=null)),xn(He,e,i)}function Us(e,t,i,s,n,o){e??=D,i??=Qe,s??="butt",n??=D,o??="round",e!=us&&(ne.strokeStyle=us=e),n!=xs&&(ne.fillStyle=xs=n),t!=As&&(ne.lineWidth=As=t),o!=Os&&(ne.lineJoin=Os=o),s!=Ls&&(ne.lineCap=Ls=s),i!=Ts&&ne.setLineDash(Ts=i)}function Ns(e,t,i,s){t!=xs&&(ne.fillStyle=xs=t),e!=Is&&(ne.font=Is=e),i!=Ds&&(ne.textAlign=Ds=i),s!=Ms&&(ne.textBaseline=Ms=s)}function $s(e,t,i,s,n=0){if(s.length>0&&e.auto(I,Rs)&&(null==t||null==t.min)){let t=me(os,0),o=me(ls,s.length-1),l=null==i.min?3==e.distr?function(e,t,i){let s=Re,n=-Re;for(let o=t;o<=i;o++){let t=e[o];null!=t&&t>0&&(t<s&&(s=t),t>n&&(n=t))}return[s,n]}(s,t,o):function(e,t,i,s){let n=Re,o=-Re;if(1==s)n=e[t],o=e[i];else if(-1==s)n=e[i],o=e[t];else for(let l=t;l<=i;l++){let t=e[l];null!=t&&(t<n&&(n=t),t>o&&(o=t))}return[n,o]}(s,t,o,n):[i.min,i.max];e.min=Te(e.min,i.min=l[0]),e.max=Oe(e.max,i.max=l[1])}}I.setData=Fs;const js={min:null,max:null};function Xs(e,t){let i=t?be[e].points:be[e];i._stroke=i.stroke(I,e),i._fill=i.fill(I,e)}function zs(e,i){let s=i?be[e].points:be[e],{stroke:n,fill:o,clip:l,flags:r,_stroke:a=s._stroke,_fill:u=s._fill,_width:c=s.width}=s._paths;c=Ge(c*Y,3);let d=null,h=c%2/2;i&&null==u&&(u=c>0?"#fff":a);let f=1==s.pxAlign&&h>0;if(f&&ne.translate(h,h),!i){let e=ai-c/2,t=_i-c/2,i=vi+c,s=yi+c;d=new Path2D,d.rect(e,t,i,s)}i?Ys(a,c,s.dash,s.cap,u,n,o,r,l):function(e,i,s,n,o,l,r,a,u,c,d){let h=!1;0!=u&&Ne.forEach(((f,p)=>{if(f.series[0]==e){let e,g=be[f.series[1]],m=t[f.series[1]],_=(g._paths||Je).band;tt(_)&&(_=1==f.dir?_[0]:_[1]);let v=null;g.show&&_&&function(e,t,i){for(t=me(t,0),i=me(i,e.length-1);t<=i;){if(null!=e[t])return!0;t++}return!1}(m,os,ls)?(v=f.fill(I,p)||l,e=g._paths.clip):_=null,Ys(i,s,n,o,v,r,a,u,c,d,e,_),h=!0}})),h||Ys(i,s,n,o,l,r,a,u,c,d)}(e,a,c,s.dash,s.cap,u,n,o,r,d,l),f&&ne.translate(-h,-h)}const Hs=Fi|Pi;function Ys(e,t,i,s,n,o,l,r,a,u,c,d){Us(e,t,i,s,n),(a||u||d)&&(ne.save(),a&&ne.clip(a),u&&ne.clip(u)),d?(r&Hs)==Hs?(ne.clip(d),c&&ne.clip(c),Vs(n,l),Bs(e,o,t)):r&Pi?(Vs(n,l),ne.clip(d),Bs(e,o,t)):r&Fi&&(ne.save(),ne.clip(d),c&&ne.clip(c),Vs(n,l),ne.restore(),Bs(e,o,t)):(Vs(n,l),Bs(e,o,t)),(a||u||d)&&ne.restore()}function Bs(e,t,i){i>0&&(t instanceof Map?t.forEach(((e,t)=>{ne.strokeStyle=us=t,ne.stroke(e)})):null!=t&&e&&ne.stroke(t))}function Vs(e,t){t instanceof Map?t.forEach(((e,t)=>{ne.fillStyle=xs=t,ne.fill(e)})):null!=t&&e&&ne.fill(t)}function Ws(e,t,i,s,n,o,l,r,a,u){let c=l%2/2;1==_e&&ne.translate(c,c),Us(r,l,a,u,r),ne.beginPath();let d,h,f,p,g=n+(0==s||3==s?-o:o);0==i?(h=n,p=g):(d=n,f=g);for(let m=0;m<e.length;m++)null!=t[m]&&(0==i?d=f=e[m]:h=p=e[m],ne.moveTo(d,h),ne.lineTo(f,p));ne.stroke(),1==_e&&ne.translate(-c,-c)}function Gs(e){let t=!0;return Me.forEach(((i,s)=>{if(!i.show)return;let n=Fe[i.scale];if(null==n.min)return void(i._show&&(t=!1,i._show=!1,qs(!1)));i._show||(t=!1,i._show=!0,qs(!1));let o=i.side,l=o%2,{min:r,max:a}=n,[u,c]=function(e,t,i,s){let n,o=Me[e];if(s<=0)n=[0,0];else{let l=o._space=o.space(I,e,t,i,s);n=ws(t,i,o._incrs=o.incrs(I,e,t,i,s,l),s,l)}return o._found=n}(s,r,a,0==l?Qt:ei);if(0==c)return;let d=2==n.distr,h=i._splits=i.splits(I,s,r,a,u,c,d),f=2==n.distr?h.map((e=>Cs[e])):h,p=2==n.distr?Cs[h[1]]-Cs[h[0]]:u,g=i._values=i.values(I,i.filter(I,f,s,c,p),s,c,p);i._rotate=2==o?i.rotate(I,g,s,c):0;let m=i._size;i._size=Ae(i.size(I,g,s,e)),null!=m&&i._size!=m&&(t=!1)})),t}function Ks(e){let t=!0;return is.forEach(((i,s)=>{let n=i(I,s,es,e);n!=ss[s]&&(t=!1),ss[s]=n})),t}function qs(e){be.forEach(((t,i)=>{i>0&&(t._paths=null,e&&(1==U?(t.min=null,t.max=null):t.facets.forEach((e=>{e.min=null,e.max=null}))))}))}let Zs,Js,Qs,en,tn,sn,nn,on,ln,rn,an,un,cn=!1,dn=!1,hn=[];function fn(){dn=!1;for(let e=0;e<hn.length;e++)eo(...hn[e]);hn.length=0}function pn(){cn||(ht(gn),cn=!0)}function gn(){if(bi&&(!function(){for(let t in Fe){let e=Fe[t];null==dt[t]&&(null==e.min||null!=dt[He]&&e.auto(I,Rs))&&(dt[t]=js)}for(let t in Fe){let e=Fe[t];null==dt[t]&&null!=e.from&&null!=dt[e.from]&&(dt[t]=js)}null!=dt[He]&&qs(!0);let e={};for(let t in dt){let i=dt[t];if(null!=i){let s=e[t]=ut(Fe[t],lt);if(null!=i.min)ct(s,i);else if(t!=He||2==U)if(0==ns&&null==s.from){let e=s.range(I,null,null,t);s.min=e[0],s.max=e[1]}else s.min=Re,s.max=-Re}}if(ns>0){be.forEach(((i,s)=>{if(1==U){let n=i.scale,o=dt[n];if(null==o)return;let l=e[n];if(0==s){let e=l.range(I,l.min,l.max,n);l.min=e[0],l.max=e[1],os=re(l.min,t[0]),ls=re(l.max,t[0]),ls-os>1&&(t[0][os]<l.min&&os++,t[0][ls]>l.max&&ls--),i.min=Cs[os],i.max=Cs[ls]}else i.show&&i.auto&&$s(l,o,i,t[s],i.sorted);i.idxs[0]=os,i.idxs[1]=ls}else if(s>0&&i.show&&i.auto){let[n,o]=i.facets,l=n.scale,r=o.scale,[a,u]=t[s],c=e[l],d=e[r];null!=c&&$s(c,dt[l],n,a,n.sorted),null!=d&&$s(d,dt[r],o,u,o.sorted),i.min=o.min,i.max=o.max}}));for(let t in e){let i=e[t],s=dt[t];if(null==i.from&&(null==s||null==s.min)){let e=i.range(I,i.min==Re?null:i.min,i.max==-Re?null:i.max,t);i.min=e[0],i.max=e[1]}}}for(let t in e){let i=e[t];if(null!=i.from){let s=e[i.from];if(null==s.min)i.min=i.max=null;else{let e=i.range(I,s.min,s.max,t);i.min=e[0],i.max=e[1]}}}let i={},s=!1;for(let t in e){let n=e[t],o=Fe[t];if(o.min!=n.min||o.max!=n.max){o.min=n.min,o.max=n.max;let e=o.distr;o._min=3==e?De(o.min):4==e?Ce(o.min,o.asinh):100==e?o.fwd(o.min):o.min,o._max=3==e?De(o.max):4==e?Ce(o.max,o.asinh):100==e?o.fwd(o.max):o.max,i[t]=s=!0}}if(s){be.forEach(((e,t)=>{2==U?t>0&&i.y&&(e._paths=null):i[e.scale]&&(e._paths=null)}));for(let e in i)Ti=!0,eo("setScale",e);zi.show&&zi.left>=0&&(Oi=Ui=!0)}for(let t in dt)dt[t]=null}(),bi=!1),Ti&&(!function(){let e=!1,t=0;for(;!e;){t++;let i=Gs(t),s=Ks(t);e=t==Xi||i&&s,e||(ji(I.width,I.height),wi=!0)}}(),Ti=!1),wi){if(G(fe,O,ti),G(fe,A,si),G(fe,S,Qt),G(fe,x,ei),G(pe,O,ti),G(pe,A,si),G(pe,S,Qt),G(pe,x,ei),G(ae,S,$t),G(ae,x,Gt),se.width=xe($t*Y),se.height=xe(Gt*Y),Me.forEach((({_el:e,_show:t,_size:i,_pos:s,side:n})=>{if(null!=e)if(t){let t=n%2==1;G(e,t?"left":"top",s-(3===n||0===n?i:0)),G(e,t?"width":"height",i),G(e,t?"top":"left",t?si:ti),G(e,t?"height":"width",t?ei:Qt),W(e,d)}else V(e,d)})),us=xs=As=Os=Ls=Is=Ds=Ms=Ts=null,ks=1,$n(!0),ti!=ni||si!=oi||Qt!=li||ei!=ri){qs(!1);let e=Qt/li,t=ei/ri;if(zi.show&&!Oi&&zi.left>=0){zi.left*=e,zi.top*=t,Qs&&J(Qs,xe(zi.left),0,Qt,ei),en&&J(en,0,xe(zi.top),Qt,ei);for(let i=0;i<Ki.length;i++){let s=Ki[i];null!=s&&(qi[i]*=e,Zi[i]*=t,J(s,Ae(qi[i]),Ae(Zi[i]),Qt,ei))}}if(wn.show&&!Ci&&wn.left>=0&&wn.width>0){wn.left*=e,wn.width*=e,wn.top*=t,wn.height*=t;for(let e in zn)G(En,e,wn[e])}ni=ti,oi=si,li=Qt,ri=ei}eo("setSize"),wi=!1}$t>0&&Gt>0&&(ne.clearRect(0,0,se.width,se.height),eo("drawClear"),Ve.forEach((e=>e())),eo("draw")),wn.show&&Ci&&(Sn(wn),Ci=!1),zi.show&&Oi&&(Un(null,!0,!1),Oi=!1),yt.show&&yt.live&&Ui&&(Fn(),Ui=!1),Q||(Q=!0,I.status=1,eo("ready")),Rs=!1,cn=!1}function mn(e,i){let s=Fe[e];if(null==s.from){if(0==ns){let t=s.range(I,i.min,i.max,e);i.min=t[0],i.max=t[1]}if(i.min>i.max){let e=i.min;i.min=i.max,i.max=e}if(ns>1&&null!=i.min&&null!=i.max&&i.max-i.min<1e-16)return;e==He&&2==s.distr&&ns>0&&(i.min=re(i.min,t[0]),i.max=re(i.max,t[0]),i.min==i.max&&i.max++),dt[e]=i,bi=!0,pn()}}I.batch=function(e,t=!1){cn=!0,dn=t,e(I),gn(),t&&hn.length>0&&queueMicrotask(fn)},I.redraw=(e,t)=>{Ti=t||!1,!1!==e?xn(He,Ze.min,Ze.max):pn()},I.setScale=mn;let _n=!1;const vn=zi.drag;let yn=vn.x,bn=vn.y;zi.show&&(zi.x&&(Zs=q(f,pe)),zi.y&&(Js=q(p,pe)),0==Ze.ori?(Qs=Zs,en=Js):(Qs=Js,en=Zs),an=zi.left,un=zi.top);const wn=I.select=ct({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),En=wn.show?q(h,wn.over?pe:fe):null;function Sn(e,t){if(wn.show){for(let t in e)wn[t]=e[t],t in zn&&G(En,t,e[t]);!1!==t&&eo("setSelect")}}function xn(e,t,i){mn(e,{min:t,max:i})}function An(e,t,i,s){null!=t.focus&&function(e){if(e!=Ln){let t=null==e,i=1!=Vi.alpha;be.forEach(((s,n)=>{if(1==U||n>0){let o=t||0==n||n==e;s._focus=t?null:o,i&&function(e,t){be[e].alpha=t,zi.show&&Ki[e]&&(Ki[e].style.opacity=t);bt&&It[e]&&(It[e].style.opacity=t)}(n,o?1:Vi.alpha)}})),Ln=e,i&&pn()}}(e),null!=t.show&&be.forEach(((i,s)=>{s>0&&(e==s||null==e)&&(i.show=t.show,function(e){let t=be[e],i=bt?It[e]:null;t.show?i&&W(i,d):(i&&V(i,d),J(Gi?Ki[0]:Ki[e],-10,-10,Qt,ei))}(s,t.show),2==U?(xn(i.facets[0].scale,null,null),xn(i.facets[1].scale,null,null)):xn(i.scale,null,null),pn())})),!1!==i&&eo("setSeries",e,t),s&&oo("setSeries",I,e,t)}let Tn,On,Ln;I.setSelect=Sn,I.setSeries=An,I.addBand=function(e,t){e.fill=Ue(e.fill||null),e.dir=me(e.dir,-1),t=null==t?Ne.length:t,Ne.splice(t,0,e)},I.setBand=function(e,t){ct(Ne[e],t)},I.delBand=function(e){null==e?Ne.length=0:Ne.splice(e,1)};const In={focus:!0};function Dn(e,t,i){let s=Fe[t];i&&(e=e/Y-(1==s.ori?si:ti));let n=Qt;1==s.ori&&(n=ei,e=n-e),-1==s.dir&&(e=n-e);let o=s._min,l=o+(s._max-o)*(e/n),r=s.distr;return 3==r?Le(10,l):4==r?ke(l,s.asinh):100==r?s.bwd(l):l}function Mn(e,t){G(En,O,wn.left=e),G(En,S,wn.width=t)}function kn(e,t){G(En,A,wn.top=e),G(En,x,wn.height=t)}bt&&Wi&&Ut(F,St,(e=>{zi._lock||(Yi(e),null!=Ln&&An(null,In,!0,io.setSeries))})),I.valToIdx=e=>re(e,t[0]),I.posToIdx=function(e,i){return re(Dn(e,He,i),t[0],os,ls)},I.posToVal=Dn,I.valToPos=(e,t,i)=>0==Fe[t].ori?H(e,Fe[t],i?vi:Qt,i?ai:0):B(e,Fe[t],i?yi:ei,i?_i:0),I.setCursor=(e,t,i)=>{an=e.left,un=e.top,Un(null,t,i)};let Cn=0==Ze.ori?Mn:kn,Rn=1==Ze.ori?Mn:kn;function Fn(e,t){if(null!=e&&(e.idxs?e.idxs.forEach(((e,t)=>{vt[t]=e})):st(e.idx)||vt.fill(e.idx),yt.idx=vt[0]),bt&&yt.live){for(let e=0;e<be.length;e++)(e>0||1==U&&!Mt)&&Pn(e,vt[e]);!function(){if(bt&&yt.live)for(let e=2==U?1:0;e<be.length;e++){if(0==e&&Mt)continue;let t=yt.values[e],i=0;for(let s in t)Dt[e][i++].firstChild.nodeValue=t[s]}}()}Ui=!1,!1!==t&&eo("setLegend")}function Pn(e,i){let s,n=be[e],o=0==e&&2==it?Cs:t[e];Mt?s=n.values(I,e,i)??kt:(s=n.value(I,null==i?null:o[i],e,i),s=null==s?kt:{_:s}),yt.values[e]=s}function Un(e,i,s){let n;ln=an,rn=un,[an,un]=zi.move(I,an,un),zi.left=an,zi.top=un,zi.show&&(Qs&&J(Qs,xe(an),0,Qt,ei),en&&J(en,0,xe(un),Qt,ei));let o=os>ls;Tn=Re,On=null;let l=0==Ze.ori?Qt:ei,r=1==Ze.ori?Qt:ei;if(an<0||0==ns||o){n=zi.idx=null;for(let e=0;e<be.length;e++){let t=Ki[e];null!=t&&J(t,-10,-10,Qt,ei)}Wi&&An(null,In,!0,null==e&&io.setSeries),yt.live&&(vt.fill(n),Ui=!0)}else{let e,i,s;1==U&&(e=0==Ze.ori?an:un,i=Dn(e,He),n=zi.idx=re(i,t[0],os,ls),s=rt(t[0][n],Ze,l,0));let o=-10,a=-10,u=0,c=0,d=!0,h="",f="";for(let p=2==U?1:0;p<be.length;p++){let e=be[p],g=vt[p],m=null==g?null:1==U?t[p][g]:t[p][1][g],_=zi.dataIdx(I,p,n,i),v=null==_?null:1==U?t[p][_]:t[p][1][_];Ui=Ui||v!=m||_!=g,vt[p]=_;let y=_==n?s:rt(1==U?t[0][_]:t[p][0][_],Ze,l,0);if(p>0&&e.show){let t=null==v?-10:at(v,1==U?Fe[e.scale]:Fe[e.facets[1].scale],r,0);if(Wi&&null!=v){let i=1==Ze.ori?an:un,s=Ee(Vi.dist(I,p,_,t,i));if(s<Tn){let t=Vi.bias;if(0!=t){let n=Dn(i,e.scale),o=n>=0?1:-1;o==(v>=0?1:-1)&&(1==o?1==t?v>=n:v<=n:1==t?v<=n:v>=n)&&(Tn=s,On=p)}else Tn=s,On=p}}if(Ui||Gi){let e,i;0==Ze.ori?(e=y,i=t):(e=t,i=y);let s,n,l,r,g,m,_=!0,v=Bi.bbox;if(null!=v){_=!1;let e=v(I,p);l=e.left,r=e.top,s=e.width,n=e.height}else l=e,r=i,s=n=Bi.size(I,p);if(m=Bi.fill(I,p),g=Bi.stroke(I,p),Gi)p==On&&Tn<=Vi.prox&&(o=l,a=r,u=s,c=n,d=_,h=m,f=g);else{let e=Ki[p];null!=e&&(qi[p]=l,Zi[p]=r,ie(e,s,n,_),ee(e,m,g),J(e,Ae(l),Ae(r),Qt,ei))}}}}if(Gi){let e=Vi.prox;if(Ui||(null==Ln?Tn<=e:Tn>e||On!=Ln)){let e=Ki[0];qi[0]=o,Zi[0]=a,ie(e,u,c,d),ee(e,h,f),J(e,Ae(o),Ae(a),Qt,ei)}}}if(wn.show&&_n)if(null!=e){let[t,i]=io.scales,[s,n]=io.match,[o,a]=e.cursor.sync.scales,u=e.cursor.drag;if(yn=u._x,bn=u._y,yn||bn){let u,c,d,h,f,{left:p,top:g,width:m,height:_}=e.select,v=e.scales[o].ori,y=e.posToVal,b=null!=t&&s(t,o),w=null!=i&&n(i,a);b&&yn?(0==v?(u=p,c=m):(u=g,c=_),d=Fe[t],h=rt(y(u,o),d,l,0),f=rt(y(u+c,o),d,l,0),Cn(Te(h,f),Ee(f-h))):Cn(0,l),w&&bn?(1==v?(u=p,c=m):(u=g,c=_),d=Fe[i],h=at(y(u,a),d,r,0),f=at(y(u+c,a),d,r,0),Rn(Te(h,f),Ee(f-h))):Rn(0,r)}else Hn()}else{let e=Ee(ln-tn),t=Ee(rn-sn);if(1==Ze.ori){let i=e;e=t,t=i}yn=vn.x&&e>=vn.dist,bn=vn.y&&t>=vn.dist;let i,s,n=vn.uni;null!=n?yn&&bn&&(yn=e>=n,bn=t>=n,yn||bn||(t>e?bn=!0:yn=!0)):vn.x&&vn.y&&(yn||bn)&&(yn=bn=!0),yn&&(0==Ze.ori?(i=nn,s=an):(i=on,s=un),Cn(Te(i,s),Ee(s-i)),bn||Rn(0,r)),bn&&(1==Ze.ori?(i=nn,s=an):(i=on,s=un),Rn(Te(i,s),Ee(s-i)),yn||Cn(0,l)),yn||bn||(Cn(0,0),Rn(0,0))}if(vn._x=yn,vn._y=bn,null==e){if(s){if(null!=so){let[e,t]=io.scales;io.values[0]=null!=e?Dn(0==Ze.ori?an:un,e):null,io.values[1]=null!=t?Dn(1==Ze.ori?an:un,t):null}oo(M,I,an,un,Qt,ei,n)}if(Wi){let e=s&&io.setSeries,t=Vi.prox;null==Ln?Tn<=t&&An(On,In,!0,e):Tn>t?An(null,In,!0,e):On!=Ln&&An(On,In,!0,e)}}Ui&&(yt.idx=n,Fn()),!1!==i&&eo("setCursor")}I.setLegend=Fn;let Nn=null;function $n(e=!1){e?Nn=null:(Nn=pe.getBoundingClientRect(),eo("syncRect",Nn))}function jn(e,t,i,s,n,o,l){zi._lock||_n&&null!=e&&0==e.movementX&&0==e.movementY||(Xn(e,t,i,s,n,o,l,!1,null!=e),null!=e?Un(null,!0,!0):Un(t,!0,!1))}function Xn(e,t,i,s,n,o,l,r,a){if(null==Nn&&$n(!1),Yi(e),null!=e)i=e.clientX-Nn.left,s=e.clientY-Nn.top;else{if(i<0||s<0)return an=-10,void(un=-10);let[e,l]=io.scales,r=t.cursor.sync,[a,u]=r.values,[c,d]=r.scales,[h,f]=io.match,p=t.axes[0].side%2==1,g=0==Ze.ori?Qt:ei,m=1==Ze.ori?Qt:ei,_=p?o:n,v=p?n:o,y=p?s:i,b=p?i:s;if(i=null!=c?h(e,c)?Z(a,Fe[e],g,0):-10:g*(y/_),s=null!=d?f(l,d)?Z(u,Fe[l],m,0):-10:m*(b/v),1==Ze.ori){let e=i;i=s,s=e}}a&&((i<=1||i>=Qt-1)&&(i=Be(i,Qt)),(s<=1||s>=ei-1)&&(s=Be(s,ei))),r?(tn=i,sn=s,[nn,on]=zi.move(I,i,s)):(an=i,un=s)}Object.defineProperty(I,"rect",{get:()=>(null==Nn&&$n(!1),Nn)});const zn={width:0,height:0,left:0,top:0};function Hn(){Sn(zn,!1)}let Yn,Bn,Vn,Wn;function Gn(e,t,i,s,n,o,l){_n=!0,yn=bn=vn._x=vn._y=!1,Xn(e,t,i,s,n,o,0,!0,!1),null!=e&&(Ut(C,X,Kn,!1),oo(k,I,nn,on,Qt,ei,null));let{left:r,top:a,width:u,height:c}=wn;Yn=r,Bn=a,Vn=u,Wn=c,Hn()}function Kn(e,t,i,s,n,o,l){_n=vn._x=vn._y=!1,Xn(e,t,i,s,n,o,0,!1,!0);let{left:r,top:a,width:u,height:c}=wn,d=u>0||c>0,h=Yn!=r||Bn!=a||Vn!=u||Wn!=c;if(d&&h&&Sn(wn),vn.setScale&&d&&h){let e=r,t=u,i=a,s=c;if(1==Ze.ori&&(e=a,t=c,i=r,s=u),yn&&xn(He,Dn(e,He),Dn(e+t,He)),bn)for(let n in Fe){let e=Fe[n];n!=He&&null==e.from&&e.min!=Re&&xn(n,Dn(i+s,n),Dn(i,n))}Hn()}else zi.lock&&(zi._lock=!zi._lock,Un(null,!0,!1));null!=e&&(Nt(C,X),oo(C,I,an,un,Qt,ei,null))}function qn(e,t,i,s,n,o,l){zi._lock||(Yi(e),Ps(),Hn(),null!=e&&oo(P,I,an,un,Qt,ei,null))}function Zn(){Me.forEach(Ss),Ni(I.width,I.height,!0)}oe(N,z,Zn);const Jn={};Jn.mousedown=Gn,Jn.mousemove=jn,Jn.mouseup=Kn,Jn.dblclick=qn,Jn.setSeries=(e,t,i,s)=>{-1!=(i=(0,io.match[2])(I,t,i))&&An(i,s,!0,!1)},zi.show&&(Ut(k,pe,Gn),Ut(M,pe,jn),Ut(R,pe,(e=>{Yi(e),$n(!1)})),Ut(F,pe,(function(e,t,i,s,n,o,l){if(zi._lock)return;Yi(e);let r=_n;if(_n){let e,t,i=!0,s=!0,n=10;0==Ze.ori?(e=yn,t=bn):(e=bn,t=yn),e&&t&&(i=an<=n||an>=Qt-n,s=un<=n||un>=ei-n),e&&i&&(an=an<nn?0:Qt),t&&s&&(un=un<on?0:ei),Un(null,!0,!0),_n=!1}an=-10,un=-10,Un(null,!0,!0),r&&(_n=r)})),Ut(P,pe,qn),as.add(I),I.syncRect=$n);const Qn=I.hooks=e.hooks||{};function eo(e,t,i){dn?hn.push([e,t,i]):e in Qn&&Qn[e].forEach((e=>{e.call(null,I,t,i)}))}(e.plugins||[]).forEach((e=>{for(let t in e.hooks)Qn[t]=(Qn[t]||[]).concat(e.hooks[t])}));const to=(e,t,i)=>i,io=ct({key:null,setSeries:!1,filters:{pub:Xe,sub:Xe},scales:[He,be[1]?be[1].scale:null],match:[ze,ze,to],values:[null,null]},zi.sync);2==io.match.length&&io.match.push(to),zi.sync=io;const so=io.key,no=Ri(so);function oo(e,t,i,s,n,o,l){io.filters.pub(e,t,i,s,n,o,l)&&no.pub(e,t,i,s,n,o,l)}function lo(){eo("init",e,t),Fs(t||e.data,!1),dt[He]?mn(He,dt[He]):Ps(),Ci=wn.show&&(wn.width>0||wn.height>0),Oi=Ui=!0,Ni(e.width,e.height)}return no.sub(I),I.pub=function(e,t,i,s,n,o,l){io.filters.sub(e,t,i,s,n,o,l)&&Jn[e](null,t,i,s,n,o,l)},I.destroy=function(){no.unsub(I),as.delete(I),Pt.clear(),le(N,z,Zn),te.remove(),St?.remove(),eo("destroy")},be.forEach(Qi),Me.forEach((function(e,t){if(e._show=e.show,e.show){let i=e.side%2,s=Fe[e.scale];null==s&&(e.scale=i?be[1].scale:He,s=Fe[e.scale]);let n=s.time;e.size=Ue(e.size),e.space=Ue(e.space),e.rotate=Ue(e.rotate),tt(e.incrs)&&e.incrs.forEach((e=>{!Ke.has(e)&&Ke.set(e,qe(e))})),e.incrs=Ue(e.incrs||(2==s.distr?Ot:n?1==ye?jt:Ht:Lt)),e.splits=Ue(e.splits||(n&&1==s.distr?gt:3==s.distr?gi:4==s.distr?mi:pi)),e.stroke=Ue(e.stroke),e.grid.stroke=Ue(e.grid.stroke),e.ticks.stroke=Ue(e.ticks.stroke),e.border.stroke=Ue(e.border.stroke);let o=e.values;e.values=tt(o)&&!tt(o[0])?Ue(o):n?tt(o)?Wt(ft,Vt(o,pt)):nt(o)?function(e,t){let i=wt(t);return(t,s,n,o,l)=>s.map((t=>i(e(t))))}(ft,o):o||mt:o||fi,e.filter=Ue(e.filter||(s.distr>=3&&10==s.log?Ei:3==s.distr&&2==s.log?Si:$e)),e.font=Es(e.font),e.labelFont=Es(e.labelFont),e._size=e.size(I,null,t,0),e._space=e._rotate=e._incrs=e._found=e._splits=e._values=null,e._size>0&&(es[t]=!0,e._el=q(c,ae))}})),i?i instanceof HTMLElement?(i.appendChild(te),lo()):i(I,lo):lo(),I}xs.assign=ct,xs.fmtNum=ye,xs.rangeNum=ge,xs.rangeLog=ue,xs.rangeAsinh=ce,xs.orient=Ui,xs.pxRatio=Y,xs.join=function(e,t){if(function(e){let t=e[0][0],i=t.length;for(let s=1;s<e.length;s++){let n=e[s][0];if(n.length!=i)return!1;if(n!=t)for(let e=0;e<i;e++)if(n[e]!=t[e])return!1}return!0}(e)){let t=e[0].slice();for(let i=1;i<e.length;i++)t.push(...e[i].slice(1));return function(e,t=100){const i=e.length;if(i<=1)return!0;let s=0,n=i-1;for(;s<=n&&null==e[s];)s++;for(;n>=s&&null==e[n];)n--;if(n<=s)return!0;const o=Oe(1,Se((n-s+1)/t));for(let l=e[s],r=s+o;r<=n;r+=o){const t=e[r];if(null!=t){if(t<=l)return!1;l=t}}return!0}(t[0])||(t=function(e){let t=e[0],i=t.length,s=Array(i);for(let o=0;o<s.length;o++)s[o]=o;s.sort(((e,i)=>t[e]-t[i]));let n=[];for(let o=0;o<e.length;o++){let t=e[o],l=Array(i);for(let e=0;e<i;e++)l[e]=t[s[e]];n.push(l)}return n}(t)),t}let i=new Set;for(let l=0;l<e.length;l++){let t=e[l][0],s=t.length;for(let e=0;e<s;e++)i.add(t[e])}let s=[Array.from(i).sort(((e,t)=>e-t))],n=s[0].length,o=new Map;for(let l=0;l<n;l++)o.set(s[0][l],l);for(let l=0;l<e.length;l++){let i=e[l],r=i[0];for(let e=1;e<i.length;e++){let a=i[e],u=Array(n).fill(void 0),c=t?t[l][e]:1,d=[];for(let e=0;e<a.length;e++){let t=a[e],i=o.get(r[e]);null===t?0!=c&&(u[i]=t,2==c&&d.push(i)):u[i]=t}dt(u,d,n),s.push(u)}}return s},xs.fmtDate=wt,xs.tzDate=function(e,t){let i;return"UTC"==t||"Etc/UTC"==t?i=new Date(+e+6e4*e.getTimezoneOffset()):t==Et?i=e:(i=new Date(e.toLocaleString("en-US",{timeZone:t})),i.setMilliseconds(e.getMilliseconds())),i},xs.sync=Ri;{xs.addGap=function(e,t,i){let s=e[e.length-1];s&&s[0]==t?s[1]=i:e.push([t,i])},xs.clipGaps=Xi;let e=xs.paths={points:ts};e.linear=os,e.stepped=function(e){const t=me(e.align,1),i=me(e.ascDesc,!1),s=me(e.alignGaps,0),n=me(e.extend,!1);return(e,o,l,r)=>Ui(e,o,((a,u,c,d,h,f,p,g,m,_,v)=>{let y=a.pxRound,{left:b,width:w}=e.bbox,E=e=>y(f(e,d,_,g)),S=e=>y(p(e,h,v,m)),x=0==d.ori?Wi:Gi;const A={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Fi},T=A.stroke,O=d.dir*(0==d.ori?1:-1);l=ae(c,l,r,1),r=ae(c,l,r,-1);let L=S(c[1==O?l:r]),I=E(u[1==O?l:r]),D=I,M=I;n&&-1==t&&(M=b,x(T,M,L)),x(T,I,L);for(let e=1==O?l:r;e>=l&&e<=r;e+=O){let i=c[e];if(null==i)continue;let s=E(u[e]),n=S(i);1==t?x(T,s,L):x(T,D,n),x(T,s,n),L=n,D=s}let k=D;n&&1==t&&(k=b+w,x(T,k,L));let[C,R]=Ni(e,o);if(null!=a.fill||0!=C){let t=A.fill=new Path2D(T),i=S(a.fillTo(e,o,a.min,a.max,C));x(t,k,i),x(t,M,i)}if(!a.spanGaps){let n=[];n.push(...zi(u,c,l,r,O,E,s));let h=a.width*Y/2,f=i||1==t?h:-h,p=i||-1==t?-h:h;n.forEach((e=>{e[0]+=f,e[1]+=p})),A.gaps=n=a.gaps(e,o,l,r,n),A.clip=Xi(n,d.ori,g,m,_,v)}return 0!=R&&(A.band=2==R?[ji(e,o,l,r,T,-1),ji(e,o,l,r,T,1)]:ji(e,o,l,r,T,R)),A}))},e.bars=function(e){const t=me((e=e||Je).size,[.6,Re,1]),i=e.align||0,s=e.gap||0;let n=e.radius;n=null==n?[0,0]:"number"==typeof n?[n,0]:n;const o=Ue(n),l=1-t[0],r=me(t[1],Re),a=me(t[2],1),u=me(e.disp,Je),c=me(e.each,(e=>{})),{fill:d,stroke:h}=u;return(e,t,n,f)=>Ui(e,t,((p,g,m,_,v,y,b,w,E,S,x)=>{let A,T,O=p.pxRound,L=i,I=s*Y,D=r*Y,M=a*Y;0==_.ori?[A,T]=o(e,t):[T,A]=o(e,t);const k=_.dir*(0==_.ori?1:-1);let C,R,F,P=0==_.ori?Ki:qi,U=0==_.ori?c:(e,t,i,s,n,o,l)=>{c(e,t,i,n,s,l,o)},N=me(e.bands,Qe).find((e=>e.series[0]==t)),$=null!=N?N.dir:0,j=p.fillTo(e,t,p.min,p.max,$),X=O(b(j,v,x,E)),z=S,H=O(p.width*Y),B=!1,V=null,W=null,G=null,K=null;null==d||0!=H&&null==h||(B=!0,V=d.values(e,t,n,f),W=new Map,new Set(V).forEach((e=>{null!=e&&W.set(e,new Path2D)})),H>0&&(G=h.values(e,t,n,f),K=new Map,new Set(G).forEach((e=>{null!=e&&K.set(e,new Path2D)}))));let{x0:q,size:Z}=u;if(null!=q&&null!=Z){L=1,g=q.values(e,t,n,f),2==q.unit&&(g=g.map((t=>e.posToVal(w+t*S,_.key,!0))));let i=Z.values(e,t,n,f);R=2==Z.unit?i[0]*S:y(i[0],_,S,w)-y(0,_,S,w),z=ls(g,m,y,_,S,w,z),F=z-R+I}else z=ls(g,m,y,_,S,w,z),F=z*l+I,R=z-F;F<1&&(F=0),H>=R/2&&(H=0),F<5&&(O=Ne);let J=F>0;R=O(Pe(z-F-(J?H:0),M,D)),C=(0==L?R/2:L==k?0:R)-L*k*((0==L?I/2:0)+(J?H/2:0));const Q={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},ee=B?null:new Path2D;let te=null;if(null!=N)te=e.data[N.series[1]];else{let{y0:i,y1:s}=u;null!=i&&null!=s&&(m=s.values(e,t,n,f),te=i.values(e,t,n,f))}let ie=A*R,se=T*R;for(let i=1==k?n:f;i>=n&&i<=f;i+=k){let s=m[i];if(null==s)continue;if(null!=te){let e=te[i]??0;if(s-e==0)continue;X=b(e,v,x,E)}let n=y(2!=_.distr||null!=u?g[i]:i,_,S,w),o=b(me(s,j),v,x,E),l=O(n-C),r=O(Oe(o,X)),a=O(Te(o,X)),c=r-a;if(null!=s){let n=s<0?se:ie,o=s<0?ie:se;B?(H>0&&null!=G[i]&&P(K.get(G[i]),l,a+Se(H/2),R,Oe(0,c-H),n,o),null!=V[i]&&P(W.get(V[i]),l,a+Se(H/2),R,Oe(0,c-H),n,o)):P(ee,l,a+Se(H/2),R,Oe(0,c-H),n,o),U(e,t,i,l-H/2,a,R+H,c)}}return H>0?Q.stroke=B?K:ee:B||(Q._fill=0==p.width?p._fill:p._stroke??p._fill,Q.width=0),Q.fill=B?W:ee,Q}))},e.spline=function(e){return function(e,t){const i=me(t?.alignGaps,0);return(t,s,n,o)=>Ui(t,s,((l,r,a,u,c,d,h,f,p,g,m)=>{let _,v,y,b=l.pxRound,w=e=>b(d(e,u,g,f)),E=e=>b(h(e,c,m,p));0==u.ori?(_=Bi,y=Wi,v=Qi):(_=Vi,y=Gi,v=es);const S=u.dir*(0==u.ori?1:-1);n=ae(a,n,o,1),o=ae(a,n,o,-1);let x=w(r[1==S?n:o]),A=x,T=[],O=[];for(let e=1==S?n:o;e>=n&&e<=o;e+=S)if(null!=a[e]){let t=w(r[e]);T.push(A=t),O.push(E(a[e]))}const L={stroke:e(T,O,_,y,v,b),fill:null,clip:null,band:null,gaps:null,flags:Fi},I=L.stroke;let[D,M]=Ni(t,s);if(null!=l.fill||0!=D){let e=L.fill=new Path2D(I),i=E(l.fillTo(t,s,l.min,l.max,D));y(e,A,i),y(e,x,i)}if(!l.spanGaps){let e=[];e.push(...zi(r,a,n,o,S,w,i)),L.gaps=e=l.gaps(t,s,n,o,e),L.clip=Xi(e,u.ori,f,p,g,m)}return 0!=M&&(L.band=2==M?[ji(t,s,n,o,I,-1),ji(t,s,n,o,I,1)]:ji(t,s,n,o,I,M)),L}))}(rs,e)}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/1836.ea2a4537.chunk.js b/ydb/core/viewer/monitoring/static/js/1836.ea2a4537.chunk.js deleted file mode 100644 index 89717ba7dc0..00000000000 --- a/ydb/core/viewer/monitoring/static/js/1836.ea2a4537.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1836],{81836:(e,t,i)=>{i.r(t),i.d(t,{default:()=>P});var s=i(59284),n=i(23936),o=i.n(n),l=i(905),r=i.n(l),a=i(8964),u=i(42392),c=i(22680),d=i(14750),h=i(46343),f=i(17148),p=i.n(f),g=i(66643);function m(e){const t=document.createElement("span");return t.innerText=e,t.innerHTML}const _="data-series-name",v="data-series-idx",y="_tooltip",b="_tooltip-row",w=()=>"<td />",E=e=>`<td class="_tooltip-rows__bubble-td">\n <div class="_tooltip-rows__bubble-div" style="background-color:${e.seriesColor};"></div>\n </td>`,S=e=>`<td class="_tooltip-rows__name-td">\n ${e.hideSeriesName?"":m(e.seriesName)}\n </td>`,x=e=>`<td class="_tooltip-rows__percent-td">\n ${e.percentValue?e.percentValue+"%":""}\n </td>`,A=e=>`<td class="_tooltip-rows__value-td">\n ${e.value}\n </td>`,T=e=>`<td class="_tooltip-rows__diff-td">\n ${e.diff?` (${e.diff})`:""}\n </td>`,O=(e,t=!1,i=1)=>`<td class="_tooltip-right__td ${t?"_tooltip-right__td_with-split-tooltip":""}" colspan="${i||1}">\n ${e.holiday?`<div class="_tooltip-right__holiday-div">\n <div class="_tooltip-right__holiday-emoji">\ud83c\udf88</div>\n <div>\n ${e.holidayText}\n ${e.region?`<span class="_tooltip-right__holiday-region">[${e.region}]</span>`:""}\n </div>\n </div>`:""}\n\n ${e.commentDateText?`<div class="${e.xComments?"_tooltip-right__margin-bot":""}">${e.commentDateText}</div>`:""}\n\n ${e.xComments?e.xComments.map((e=>`<div class="_tooltip-right__traf-div ${t?"_tooltip-right__traf-div_for-split-tooltip":""}" style="border-color: ${e.color};">${e.text}</div>`)).join(""):""}\n </td>`,L=(e,{isSelectedLine:t,cellsRenderers:i,isSingleLine:s,allowComment:n,withDarkBackground:o,rowIndex:l})=>{const r=e.commentText||e.xyCommentText,a=n&&r,u=i.slice(),c=`${String(l)||""}-${String(m(e.seriesName)).slice(0,20).replace(/(\r\n|\n|\r)/gm,"")}`;return e.insertCellAt&&(Object.keys(e.insertCellAt)||[]).forEach((e=>{u.splice(Number(e),0,w)})),e.customRender?`<tr class="${b}${t?" _tooltip-selected-row":""}${s?" _tooltip-uniq-row":""}${o?" _tooltip-row-dark-bg":""}" ${_}="${c}" ${e.seriesIdx?`${v}="${e.seriesIdx}"`:""}>\n ${0===e.customRender.trim().indexOf("<td")?e.customRender:`<td colspan="${i.length}">${e.customRender}</td>`}\n </tr>\n ${a?`<tr class="_tooltip-comment-row${t?" _tooltip-selected-row":""}${o?" _tooltip-row-dark-bg":""}">\n <td>\n ${e.commentText?`<div class="_tooltip-rows__comment-div">${e.commentText}</div>`:""}\n ${e.xyCommentText?`<div class="_tooltip-rows__comment-div">${e.xyCommentText}</div>`:""}\n </td>\n </tr>`:""}`:`<tr class="${b}${t?" _tooltip-selected-row":""}${s?" _tooltip-uniq-row":""}${o?" _tooltip-row-dark-bg":""}" ${_}="${c}" ${e.seriesIdx?`${v}="${e.seriesIdx}"`:""}>\n ${u.map(((t,i)=>e.replaceCellAt&&e.replaceCellAt[i]?"string"===typeof e.replaceCellAt[i]?e.replaceCellAt[i]:e.replaceCellAt[i](e):e.insertCellAt&&e.insertCellAt[i]?"string"===typeof e.insertCellAt[i]?e.insertCellAt[i]:e.insertCellAt[i](e):t(e))).join("")}\n </tr>\n\n ${a?`<tr class="_tooltip-comment-row${t?" _tooltip-selected-row":""}${o?" _tooltip-row-dark-bg":""}">\n <td colspan="4">\n ${e.commentText?`<div class="_tooltip-rows__comment-div">${e.commentText}</div>`:""}\n ${e.xyCommentText?`<div class="_tooltip-rows__comment-div">${e.xyCommentText}</div>`:""}\n </td>\n </tr>`:""}`},I=(e,t)=>{const{splitTooltip:i,activeRowAlwaysFirstInTooltip:s}=e,n=e.lines.findIndex((({selectedSeries:e})=>e)),o=e.lines[n],l=e.lines.slice(0,(t.lastVisibleRowIndex||e.lines.length)+1),r=[];r.push(E),e.shared&&r.push(S),e.withPercent&&r.push(x),r.push(A),e.useCompareFrom&&r.push(T);const u={isSingleLine:1===l.length,cellsRenderers:r},c={cellsRenderers:r,useCompareFrom:e.useCompareFrom,isSelectedLine:!0,allowComment:n>t.lastVisibleRowIndex},d=document.body.clientHeight/(window.visualViewport&&window.visualViewport.scale||1);let h=y;return i&&(h+=` ${y}_split-tooltip`),`\n<div class="${h}" style="max-height: ${i?"auto":`${d}px`}">\n ${e.tooltipHeader?`<div title="${(document.createRange().createContextualFragment(e.tooltipHeader).textContent||"").trim()}" class="_tooltip-date">\n ${e.tooltipHeader.trim()}\n </div>`:""}\n ${i&&(e.holiday||e.commentDateText||e.xComments&&e.xComments.length)?`<table border="0" cellpadding="0" cellspacing="0">\n <tbody>\n <tr>\n ${O(e,!0,r.length)}\n </tr>\n </tbody>\n </table>`:""}\n <table border="0" cellpadding="0" cellspacing="0">\n <tr>\n <td class="_tooltip-left__td">\n <table class="_tooltip-rows__table">\n ${i?"":`<thead class=_tooltip-header>\n ${o&&(s||t.lastVisibleRowIndex&&n>t.lastVisibleRowIndex)?L(o,c):""}\n <tr class="_tooltip-fake-row">${Array(r.length).fill("<td></td>").join("")}</tr>\n </thead>`}\n <tbody class="_tooltip-list">\n ${l.map(((e,t)=>L(e,function(e){return Object.assign(Object.assign({},u),{rowIndex:e,isSelectedLine:l.length>1&&e===n,withDarkBackground:l.length>2&&Boolean(e%2),allowComment:e!==n||!c.allowComment})}(t)))).join("")}\n </tbody>\n ${i?"":`<tbody class="_tooltip-footer">\n ${t.lastVisibleRowIndex&&e.hiddenRowsNumber>0?`<tr class="${b} _hidden-rows-sum${l.length%2?" _hidden-rows-sum-dark-bg":""}">\n <td colspan="${r.length-1}" class="_hidden-rows-number">\n ${(0,a.R)("common","tooltip-rest")} ${e.hiddenRowsNumber}\n </td>\n <td class="_hidden-rows-value">${e.hiddenRowsSum}</td>\n </tr>`:""}\n <tr class="_tooltip-fake-row">${Array(r.length).fill("<td></td>").join("")}</tr>\n ${e.sum?`<tr class="_tooltip-rows__summ-tr">\n <td class="_tooltip-rows__summ-td" colspan="${r.length-1}">${(0,a.R)("common","tooltip-sum")}</td>\n <td class="_tooltip-rows__summ-td _tooltip-rows__summ-td-value">\n ${e.sum}\n </td>\n </tr>`:""}\n </tbody>`}\n </table>\n </td>\n\n ${!i&&(e.holiday||e.commentDateText||e.xComments&&e.xComments.length)?O(e):""}\n </tr>\n </table>\n</div>`},D=e=>"object"===typeof e&&null!==e?Object.values(e).reduce(((e,t)=>t)):e,M=e=>{var t;const{data:i,userData:s,row:n,rowIndex:o}=e,l=s.graphs[o],r=null===(t=i.yagr.getSeriesById(n.id))||void 0===t?void 0:t.lineColor;let a=n.color;if("lineColor"===(null===l||void 0===l?void 0:l.legendColorKey))r&&(a=r);else a=n.color;return a},k=(e=1,t)=>(i,s)=>{const n=(s[s.length-1]-s[0])/e;return s.map((i=>{const s=(0,d.KQ)({input:i/e,timeZone:t});return 0===s.hour()&&0===s.minute()&&0===s.second()?s.format("DD.MM.YY"):s.format(n<300?"HH:mm:ss":"HH:mm")}))},C=(e,t)=>i=>{const s=i/((null===e||void 0===e?void 0:e.timeMultiplier)||1),n=(0,d.KQ)({input:s}),o=60*(n.utcOffset()-(0,d.KQ)({input:s,timeZone:t}).utcOffset())*1e3;return new Date(n.valueOf()-o)},R=e=>{var t,i;const{data:s,libraryConfig:n,theme:o}=e,l=Object.assign(Object.assign({},n),{timeline:s.timeline,series:s.graphs}),{timeZone:r}=s,a={appearance:{locale:g.W.get("lang"),theme:o}};var u;p()(a,l.chart),l.chart=a,(null===(t=l.tooltip)||void 0===t?void 0:t.show)&&(l.tooltip=l.tooltip||{},l.tooltip.render=(null===(i=l.tooltip)||void 0===i?void 0:i.render)||(u=s,e=>{const{timeZone:t}=u,i=e.yagr.config.chart.timeMultiplier||1,s=e.options,{x:n,state:o}=e;let l=0;const r=Object.values(e.scales).reduce(((e,t)=>(l+=t.sum||0,e.concat(t.rows))),[]),a=r.length,c=D(s.sum),h=D(s.maxLines),f=D(s.value),p=o.pinned?void 0:a>h?Math.abs(h-a):void 0,g=p?f(r.slice(-p).reduce(((e,{originalValue:t})=>e+(t||0)),0)):void 0,m={activeRowAlwaysFirstInTooltip:r.length>1,tooltipHeader:(0,d.KQ)({input:n/i,timeZone:t}).format("DD MMMM YYYY HH:mm:ss"),shared:!0,lines:r.map(((t,i)=>Object.assign(Object.assign({},t),{seriesName:t.name||"Serie "+(i+1),seriesColor:M({data:e,userData:u,row:t,rowIndex:i}),selectedSeries:t.active,seriesIdx:t.seriesIdx,percentValue:"number"===typeof t.transformed?t.transformed.toFixed(1):""}))),withPercent:D(s.percent),hiddenRowsNumber:p,hiddenRowsSum:g};return c&&(m.sum=f(l)),I(m,{lastVisibleRowIndex:o.pinned?r.length-1:h-1})}),l.tooltip.className||(l.tooltip.className="chartkit-yagr-tooltip"),e.customTooltip&&(l.tooltip.virtual=!0),l.tooltip.sort=l.tooltip.sort||((e,t)=>t.rowIdx-e.rowIdx)),l.axes=l.axes||{};const c=l.axes[h.defaults.DEFAULT_X_SCALE];return l.editUplotOptions=e=>Object.assign(Object.assign({},e),{tzDate:r?C(l.chart,r):void 0}),c&&!c.values&&(c.values=k(l.chart.timeMultiplier,r)),c||(l.axes[h.defaults.DEFAULT_X_SCALE]={values:k(l.chart.timeMultiplier,r)}),l},F=s.forwardRef((function(e,t){const{id:i,data:{data:n},onLoad:l,onRender:d,onChartLoad:h,tooltip:f}=e,p=s.useRef(null),[g,m]=s.useState();if(!n||r()(n))throw new u.R({code:u.iY.NO_DATA,message:(0,a.R)("error","label_no-data")});const{config:_,debug:v}=((e,t)=>{const{data:i,sources:n,libraryConfig:o}=e.data,l=(0,c.i)();return{config:s.useMemo((()=>R({data:i,libraryConfig:o,theme:l,customTooltip:Boolean(e.tooltip)})),[i,o,l,e.tooltip]),debug:s.useMemo((()=>({filename:n&&Object.values(n).map((e=>{var t;return null===(t=null===e||void 0===e?void 0:e.data)||void 0===t?void 0:t.program})).filter(Boolean).join(", ")||t})),[t,n])}})(e,i),y=s.useCallback(((e,{renderTime:t})=>{null===l||void 0===l||l(Object.assign(Object.assign({},n),{widget:e,widgetRendering:t})),null===d||void 0===d||d({renderTime:t}),m(e)}),[l,d,n,m]),b=s.useCallback((()=>{g&&g.reflow()}),[]);return s.useImperativeHandle(t,(()=>({reflow(){b()}})),[b]),s.useEffect((()=>{var e,t,i,s,n;if(!g||(null===(t=null===(e=g.config)||void 0===e?void 0:e.tooltip)||void 0===t?void 0:t.virtual))return;const o={mouseMove:null,mouseDown:null};null===(i=g.plugins.tooltip)||void 0===i||i.on("render",(e=>{(e=>{const t=e.querySelector("._tooltip-header"),i=e.querySelector("._tooltip-list");if(!t||!i||!t.children.length)return;const s=t.children[0];for(let a=0;a<s.children.length;a++){const e=s.children[a];e.removeAttribute("style"),1===(null===i||void 0===i?void 0:i.children.length)&&(e.innerHTML=" ")}const n=i.children[0];for(let a=0;a<n.children.length;a++)n.children[a].removeAttribute("style");const o=t.children[0].getBoundingClientRect().width>i.children[0].getBoundingClientRect().width?t:i,l=Array.prototype.reduce.call(o.children[0].children,((e,t)=>(e.push(t.getBoundingClientRect().width),e)),[]),r=(o===t?i:t).children[0];for(let a=0;a<r.children.length;a++)r.children[a].setAttribute("style",`width: ${l[a]}px`);if(1===i.children.length)for(const a of s.children)a.innerHTML=""})(e)})),null===(s=g.plugins.tooltip)||void 0===s||s.on("pin",((e,{actions:t})=>{var i;o.mouseMove=(i={tooltip:e,yagr:g},e=>{var t;const{tooltip:s,yagr:n}=i;if(!n)return;const o=e.target,l=o&&s.contains(o)&&"TD"===o.tagName?null===(t=o.parentElement)||void 0===t?void 0:t.dataset.seriesIdx:void 0,r=l?n.uplot.series[Number(l)]:null;n.setFocus(r?r.id:null,!0)}),o.mouseDown=(e=>t=>{var i;const{tooltip:s,actions:n,yagr:o}=e;if(!o)return;const l=t.target;if(l instanceof Element){const e=l&&s.contains(l),t=l&&(null===(i=o.root.querySelector(".u-over"))||void 0===i?void 0:i.contains(l));e||t||(n.pin(!1),n.hide())}})({tooltip:e,actions:t,yagr:g}),document.addEventListener("mousemove",o.mouseMove),document.addEventListener("mousedown",o.mouseDown)})),null===(n=g.plugins.tooltip)||void 0===n||n.on("unpin",(()=>{o.mouseMove&&(document.removeEventListener("mousemove",o.mouseMove),o.mouseMove=null),o.mouseDown&&(document.removeEventListener("mousedown",o.mouseDown),o.mouseDown=null)}))}),[g]),s.useLayoutEffect((()=>{null===h||void 0===h||h({widget:g})}),[g,h]),s.createElement(s.Fragment,null,f&&g&&f({yagr:g}),s.createElement(o(),{ref:p,id:i,config:_,debug:v,onChartLoad:y}))})),P=F},46976:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_MULTIPLIER=t.TOOLTIP_DEFAULT_MAX_LINES=t.TOOLTIP_X_OFFSET=t.TOOLTIP_Y_OFFSET=t.MIN_SELECTION_WIDTH=t.CURSOR_STYLE=t.MARKER_DIAMETER=t.SERIE_AREA_BORDER_WIDTH=t.SERIE_AREA_BORDER_COLOR=t.SERIE_LINE_WIDTH=t.SERIE_COLOR=t.PADDING_BOTH=t.PADDING_RIGHT=t.PADDING_LEFT=t.BARS_DRAW_MAX=t.BARS_DRAW_FACTOR=t.TYPES_ORDER=t.X_AXIS_INCRS=t.X_AXIS_SPACE=t.X_AXIS_SIZE=t.X_AXIS_TICK_GAP=t.DECADE=t.YEAR=t.DAY=t.HOUR=t.MINUTE=t.SECOND=t.Y_AXIS_LABEL_SIZE=t.Y_AXIS_SIZE=t.DEFAULT_Y_AXIS_LABEL_PADDING=t.DEFAULT_Y_AXIS_PADDING=t.DEFAULT_Y_AXIS_SIZE=t.Y_AXIS_TICK_GAP=t.AXIS_VALUES_FONT=t.AXIS_LABEL_FONT=t.DEFAULT_AXIS_FONT_SIZE=t.DARK_DEFAULT_LINE_COLOR=t.LIGHT_DEFAULT_LINE_COLOR=t.DEFAULT_TITLE_FONT_SIZE=t.DEFAULT_SYNC_KEY=t.DEFAULT_POINT_SIZE=t.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE=t.DEFAULT_SCALE_MIN_RANGE=t.DEFAULT_Y_AXIS_OFFSET=t.DEFAULT_MAX_TICKS=t.DEFAULT_CANVAS_PIXEL_RATIO=t.DEFAULT_FOCUS_ALPHA=t.DEFAULT_Y_SCALE=t.DEFAULT_X_SCALE=t.DEFAULT_X_SERIE_NAME=void 0,t.DEFAULT_X_SERIE_NAME="date",t.DEFAULT_X_SCALE="x",t.DEFAULT_Y_SCALE="y",t.DEFAULT_FOCUS_ALPHA=.3,t.DEFAULT_CANVAS_PIXEL_RATIO="undefined"===typeof window?1:window.devicePixelRatio,t.DEFAULT_MAX_TICKS=5,t.DEFAULT_Y_AXIS_OFFSET=.05,t.DEFAULT_SCALE_MIN_RANGE=.01,t.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE=.001,t.DEFAULT_POINT_SIZE=t.DEFAULT_CANVAS_PIXEL_RATIO>=2?4:2,t.DEFAULT_SYNC_KEY="sync",t.DEFAULT_TITLE_FONT_SIZE=14,t.LIGHT_DEFAULT_LINE_COLOR="#222222",t.DARK_DEFAULT_LINE_COLOR="#eeeeee",t.DEFAULT_AXIS_FONT_SIZE=11,t.AXIS_LABEL_FONT="normal 11px Lucida Grande, Arial, Helvetica, sans-serif",t.AXIS_VALUES_FONT="11px Lucida Grande, Arial, Helvetica, sans-serif",t.Y_AXIS_TICK_GAP=6,t.DEFAULT_Y_AXIS_SIZE=12,t.DEFAULT_Y_AXIS_PADDING=12,t.DEFAULT_Y_AXIS_LABEL_PADDING=2;t.Y_AXIS_SIZE=(e,i,s)=>{if(!i)return t.DEFAULT_Y_AXIS_SIZE;const n=i.reduce(((e,t)=>e.length>t.length?e:t)),{ctx:o}=e;o.save();const l=e.axes[s];o.font=l.font?l.font[0]:t.AXIS_VALUES_FONT;const{width:r}=o.measureText(n);o.restore();let a=0;if(l.label){a=l.labelSize||t.DEFAULT_AXIS_FONT_SIZE,o.font=l.labelFont?l.labelFont[0]:t.AXIS_LABEL_FONT;const{fontBoundingBoxAscent:e}=o.measureText(l.label);a=e,o.restore()}return a?r/t.DEFAULT_CANVAS_PIXEL_RATIO+a/t.DEFAULT_CANVAS_PIXEL_RATIO+t.DEFAULT_Y_AXIS_LABEL_PADDING:r/t.DEFAULT_CANVAS_PIXEL_RATIO+t.DEFAULT_Y_AXIS_PADDING},t.Y_AXIS_LABEL_SIZE=11,t.SECOND=1e3,t.MINUTE=60*t.SECOND,t.HOUR=60*t.MINUTE,t.DAY=24*t.HOUR,t.YEAR=365*t.DAY,t.DECADE=10*t.YEAR,t.X_AXIS_TICK_GAP=6,t.X_AXIS_SIZE=32,t.X_AXIS_SPACE=80,t.X_AXIS_INCRS=[1,10,50,100,200,500,t.SECOND,2*t.SECOND,5*t.SECOND,10*t.SECOND,15*t.SECOND,30*t.SECOND,t.MINUTE,5*t.MINUTE,10*t.MINUTE,30*t.MINUTE,t.HOUR,2*t.HOUR,3*t.HOUR,4*t.HOUR,6*t.HOUR,12*t.HOUR,t.DAY,2*t.DAY,3*t.DAY,5*t.DAY,10*t.DAY,15*t.DAY,30*t.DAY,60*t.DAY,120*t.DAY,180*t.DAY,t.YEAR,2*t.YEAR,5*t.YEAR,10*t.YEAR],t.TYPES_ORDER=["dots","line","area","column"],t.BARS_DRAW_FACTOR=.5,t.BARS_DRAW_MAX=100,t.PADDING_LEFT=[14,14,0,4],t.PADDING_RIGHT=[14,4,0,14],t.PADDING_BOTH=[14,4,0,4],t.SERIE_COLOR="rgba(0, 0, 0, 1)",t.SERIE_LINE_WIDTH=2,t.SERIE_AREA_BORDER_COLOR="rgba(0, 0, 0, 0.2)",t.SERIE_AREA_BORDER_WIDTH=1,t.MARKER_DIAMETER=8,t.CURSOR_STYLE="1px solid #ffa0a0",t.MIN_SELECTION_WIDTH=15;t.default=class{constructor(e,t="light"){this.setTheme(t),this.colors=e}setTheme(e){this.theme=e}get GRID(){return{show:!0,stroke:()=>this.colors.parse("--yagr-grid"),width:1}}get X_AXIS_TICKS(){return{size:8,...this.GRID}}get Y_AXIS_TICKS(){return{size:6,...this.GRID}}get AXIS_STROKE(){return this.colors.parse("--yagr-axis-stroke")}get BACKGROUND(){return this.colors.parse("--yagr-background")}get SHIFT(){var e;return(null===(e=this.theme)||void 0===e?void 0:e.startsWith("light"))?.68:-.6}get DEFAULT_LINE_COLOR(){var e;return(null===(e=this.theme)||void 0===e?void 0:e.startsWith("light"))?t.LIGHT_DEFAULT_LINE_COLOR:t.DARK_DEFAULT_LINE_COLOR}},t.TOOLTIP_Y_OFFSET=24,t.TOOLTIP_X_OFFSET=24,t.TOOLTIP_DEFAULT_MAX_LINES=10,t.TIME_MULTIPLIER=1},37100:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=l(i(16381)),a=l(i(72168)),u=i(50497),c=l(i(20500)),d=o(i(46976)),h=l(i(576)),f=i(2836),p=i(78229),g=i(65781),m=i(87102),_=i(32532);class v{get isEmpty(){return this.state.isEmptyDataSet}constructor(e,t){this.plugins={},this._meta={},this._uHooks={},this.init=()=>{var e;(null===(e=this.config.chart.size)||void 0===e?void 0:e.adaptive)&&!this.resizeOb&&(this.resizeOb=new ResizeObserver((0,u.debounce)(this.onResize,this.config.chart.size.resizeDebounceMs||100)),this.resizeOb.observe(this.root)),this.config.hooks.dispose||(this.config.hooks.dispose=[]),this.unsubscribe(),this.config.hooks.dispose.push(this.trackMouse())},this.execHooks=(e,...t)=>{const i=this.config.hooks[e];if(Array.isArray(i))for(const s of i)s&&"function"===typeof s&&s(...t)},this.initRender=(e,t)=>{var i,s,n;const o=null===(i=this.config.legend)||void 0===i?void 0:i.position;this.root.firstChild?o&&"bottom"!==o?this.root.appendChild(e.root):this.root.insertBefore(e.root,this.root.firstChild):o&&"bottom"!==o?this.root.insertBefore(e.root,this.root.firstChild):this.root.appendChild(e.root),(null===(s=this.config.legend)||void 0===s?void 0:s.show)&&(null===(n=this.plugins.legend)||void 0===n||n.init(e),this.reflow(!1)),this.initTitle(),t()},this.onResize=e=>{var t;const[i]=e;this._cache.height===i.contentRect.height&&this._cache.width===i.contentRect.width||(null===(t=this.plugins.tooltip)||void 0===t||t.reset(),this.reflow(),this.execHooks("resize",{entries:e,chart:this}))},this.initMixins(),this._startTime=performance.now(),this.state={isEmptyDataSet:!1,isMouseOver:!1,stage:"config",y2uIdx:{},subscribed:!1};const i=Object.assign({title:{},data:[],axes:{},series:[],scales:{},hooks:{},settings:{},chart:{},cursor:{},plugins:{},legend:{show:!1},tooltip:{show:!0},grid:null,markers:{}},t);this.config=i,this.inStage("config",(()=>{var t;this.id=e.id||(0,u.genId)(),this.root=e,this.root.classList.add("yagr"),this.root.id||(this.root.id=this.id);const s=new c.default,n=this.config.cursor.sync,o=this.config.chart;o.series||(o.series={type:"line"}),o.size||(o.size={adaptive:!0}),o.appearance||(o.appearance={locale:"en"}),o.select||(o.select={}),this.utils={colors:s,i18n:(0,h.default)((null===(t=i.chart.appearance)||void 0===t?void 0:t.locale)||"en"),theme:new d.default(s)},s.setContext(e),n&&(this.utils.sync=r.default.sync("string"===typeof n?n:d.DEFAULT_SYNC_KEY)),!o.size.adaptive&&o.size.width&&o.size.height&&(e.style.width=(0,u.px)(o.size.width),e.style.height=(0,u.px)(o.size.height)),this.plugins.legend=new a.default,this.setTheme(o.appearance.theme||"light"),this.createUplotOptions(),this._cache={height:this.options.height,width:this.options.width},i.editUplotOptions&&(this.options=i.editUplotOptions(this.options))})).inStage("processing",(()=>{this.transformSeries()})).inStage("uplot",(()=>{this.uplot=new r.default(this.options,this.series,this.initRender),this.canvas=e.querySelector("canvas"),this.init();const t=performance.now()-this._startTime;this._meta.processTime=t})).inStage("render")}redraw(e=!0,t=!0){this.uplot.redraw(e,t)}getSeriesById(e){return this.uplot.series[this.state.y2uIdx[e]]}dispose(){var e,t,i,s;this.resizeOb&&this.resizeOb.unobserve(this.root),this.unsubscribe(),null===(t=null===(e=this.plugins)||void 0===e?void 0:e.tooltip)||void 0===t||t.dispose(),null===(s=null===(i=this.plugins)||void 0===i?void 0:i.legend)||void 0===s||s.destroy(),this.uplot.destroy(),this._uHooks={},this.execHooks("dispose",{chart:this})}toDataUrl(){return this.canvas.toDataURL("img/png")}subscribe(){var e;this.state.subscribed||(null===(e=this.utils.sync)||void 0===e||e.sub(this.uplot),this.state.subscribed=!0)}unsubscribe(){var e;null===(e=this.utils.sync)||void 0===e||e.unsub(this.uplot),this.state.subscribed=!1}inStage(e,t){this.state.stage,this.execHooks("stage",{chart:this,stage:e});try{t&&t()}catch(i){console.error(i),this.onError(i)}return this}initTitle(){if(this.config.title&&this.config.title.fontSize){const e=this.config.title.fontSize,t=this.root.querySelector(".u-title");t.setAttribute("style",`font-size:${e}px;line-height:${e}px;`),t.innerHTML=this.config.title.text}}onError(e){return this.execHooks("error",{stage:this.state.stage,error:e,chart:this}),e}trackMouse(){const e=()=>{this.state.isMouseOver=!0},t=()=>{this.state.isMouseOver=!1};return this.root.addEventListener("mouseover",e),this.root.addEventListener("mouseleave",t),()=>{this.root.removeEventListener("mouseover",e),this.root.removeEventListener("mouseleave",t)}}get clientHeight(){var e;const t=this.config.title.text?(this.config.title.fontSize||d.DEFAULT_TITLE_FONT_SIZE)+8:0;return this.root.clientHeight-t-((null===(e=this.plugins.legend)||void 0===e?void 0:e.state.totalSpace)||0)}reflow(e=!0){const t=this.root.clientWidth,i=this.clientHeight;this._cache.width=t,this.options.width=t,this._cache.height=i,this.options.height=i,e&&this.uplot.setSize({width:this.options.width,height:this.options.height}),e&&this.uplot.redraw()}}(0,m.applyMixins)(v,[f.CreateUplotOptionsMixin,p.TransformSeriesMixin,g.DynamicUpdatesMixin,_.BatchMixin]),t.default=v},576:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const i={ru:{"hide-all":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435","show-all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435",sum:"\u0421\u0443\u043c\u043c\u0430",scale:"\u0428\u043a\u0430\u043b\u0430",series:"\u041b\u0438\u043d\u0438\u044f",weekend:"\u0412\u044b\u0445\u043e\u0434\u043d\u043e\u0439",nodata:"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"},en:{"hide-all":"Hide all","show-all":"Show all",sum:"Total",scale:"Scale",series:"Series",weekend:"Weekend",nodata:"No data"}};t.default=(e="en")=>("string"!==typeof e&&(i.custom=e,e="custom"),t=>i[e][t]||t)},32532:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BatchMixin=void 0;const n=s(i(16381)),o=s(i(72168));t.BatchMixin=class{initMixin(){this._batch={active:!1,fns:[]}}batch(e){var t;return this._batch.active?e(this._batch):(this._batch.active=!0,e(this._batch),this._batch.reinit?this.fullUpdate():(this._batch.redrawLegend&&(null===(t=this.plugins.legend)||void 0===t||t.redraw()),this._batch.reopt&&this.createUplotOptions(!0),this._batch.recalc&&this.inStage("processing",(()=>{this.transformSeries()})).inStage("listen"),this._batch.fns.length&&this.uplot.batch((()=>this._batch.fns.forEach((e=>e(this._batch))))),this._batch.redraw&&this.uplot&&this.redraw(...this._batch.redraw),void(this._batch={active:!1,fns:[]})))}fullUpdate(){let e,t;this.inStage("dispose",(()=>{var i;if(this.uplot){const i=this.uplot.cursor;e=i.left,t=i.top,this.uplot.destroy()}null===(i=this.plugins.legend)||void 0===i||i.destroy()})).inStage("config",(()=>{this.plugins.legend=new o.default,this._batch={active:!1,fns:[]},this.createUplotOptions(!0),this.options=this.config.editUplotOptions?this.config.editUplotOptions(this.options):this.options})).inStage("processing",(()=>{this.transformSeries()})).inStage("uplot",(()=>{this.uplot=new n.default(this.options,this.series,this.initRender),e&&t&&e>0&&t>0&&this.uplot.setCursor({left:e,top:t}),this.state.subscribed||this.unsubscribe()})).inStage("listen")}}},2836:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateUplotOptionsMixin=void 0;const n=s(i(25700)),o=s(i(60758)),l=i(46976),r=i(28265),a=s(i(67903)),u=i(81891),c=i(24793),d=i(27658),h=i(48643),f=s(i(15648));function p(e,t){for(const i of e||[])if(i===t)return;null===e||void 0===e||e.push(t)}t.CreateUplotOptionsMixin=class{initMixin(){this._uHooks.onDraw=()=>{if("listen"===this.state.stage)return;this.state.stage="listen",this.execHooks("stage",{chart:this,stage:this.state.stage});const e=performance.now()-this._startTime;this._meta.renderTime=e,this.execHooks("load",{chart:this,meta:this._meta})},this._uHooks.ready=()=>{const e=performance.now()-this._startTime;this._meta.initTime=e,this.execHooks("inited",{chart:this,meta:{initTime:e}})},this._uHooks.drawClear=e=>{const{ctx:t}=e;t.save(),t.fillStyle=this.utils.theme.BACKGROUND,t.fillRect(l.DEFAULT_CANVAS_PIXEL_RATIO,l.DEFAULT_CANVAS_PIXEL_RATIO,e.width*l.DEFAULT_CANVAS_PIXEL_RATIO-2*l.DEFAULT_CANVAS_PIXEL_RATIO,e.height*l.DEFAULT_CANVAS_PIXEL_RATIO-2*l.DEFAULT_CANVAS_PIXEL_RATIO),t.restore()},this._uHooks.setSelect=e=>{const{left:t,width:i}=e.select,[s,n]=[e.posToVal(t,l.DEFAULT_X_SCALE),e.posToVal(t+i,l.DEFAULT_X_SCALE)],{timeMultiplier:o=l.TIME_MULTIPLIER}=this.config.chart||{};this.execHooks("onSelect",{from:Math.ceil(s/o),to:Math.ceil(n/o),chart:this}),e.setSelect({width:0,height:0,top:0,left:0},!1)}}createUplotOptions(e=!1){var t,i,s,g,m,_,v,y,b,w,E;const{config:S}=this,x=[];let A=null===(t=this.plugins)||void 0===t?void 0:t.tooltip;if(S.tooltip&&!1!==S.tooltip.show&&(A?A.updateOptions(S.tooltip):A=(0,n.default)(this,S.tooltip),x.push(A.uplot),this.plugins.tooltip=A),e)this.plugins.plotLines&&x.push(this.plugins.plotLines.uplot);else{const e=(0,f.default)(this.config.plotLines||{})(this);this.plugins.plotLines=e,x.push(e.uplot)}Object.entries(S.plugins).forEach((([e,t])=>{const i=t(this);x.push(i.uplot),Object.assign(this.plugins,{[e]:i})}));const T=S.chart,O={width:this.root.clientWidth,height:this.clientHeight,title:null===(i=S.title)||void 0===i?void 0:i.text,plugins:x,focus:{alpha:l.DEFAULT_FOCUS_ALPHA},series:[{id:l.DEFAULT_X_SERIE_NAME,$c:S.timeline,scale:l.DEFAULT_X_SCALE,count:S.timeline.length}],ms:T.timeMultiplier||l.TIME_MULTIPLIER,hooks:S.hooks||{}};if(this.state.isEmptyDataSet=0===S.timeline.length||0===S.series.length||S.series.every((({data:e})=>0===e.length)),O.cursor=O.cursor||{},O.cursor.points=O.cursor.points||{},O.cursor.drag=O.cursor.drag||{dist:(null===(s=T.select)||void 0===s?void 0:s.minWidth)||l.MIN_SELECTION_WIDTH,x:null===(g=O.cursor.y)||void 0===g||g,y:null!==(m=O.cursor.y)&&void 0!==m&&m,setScale:null===(v=null===(_=T.select)||void 0===_?void 0:_.zoom)||void 0===v||v},this.utils.sync&&(O.cursor.sync=O.cursor.sync||{key:this.utils.sync.key}),S.cursor){const e=(0,o.default)(this,S.cursor);this.plugins.cursor=e,x.push(e.uplot)}const L=S.series||[],I=O.series;for(let n=L.length-1;n>=0;n--){const e=(0,r.configureSeries)(this,L[n]||{},n),t=I.push(e);this.state.y2uIdx[e.id||n]=t-1}const D=(0,a.default)(this,S);x.push(D),O.series=I,S.scales&&0!==Object.keys(S.scales).length||(S.scales={x:{},y:{}}),O.scales=O.scales||{},O.scales=(0,u.configureScales)(this,O.scales,S),O.axes=O.axes||[];return O.axes.push(...(0,c.configureAxes)(this,S)),O.hooks=S.hooks||{},O.hooks.draw=O.hooks.draw||[],O.hooks.ready=O.hooks.ready||[],O.hooks.drawClear=O.hooks.drawClear||[],O.hooks.setSelect=O.hooks.setSelect||[],p(O.hooks.draw,this._uHooks.onDraw),p(O.hooks.ready,this._uHooks.ready),p(O.hooks.drawClear,this._uHooks.drawClear),p(O.hooks.setSelect,this._uHooks.setSelect),O.drawOrder=(null===(y=T.appearance)||void 0===y?void 0:y.drawOrder)?null===(b=T.appearance)||void 0===b?void 0:b.drawOrder.filter((e=>e===h.DrawOrderKey.Series||e===h.DrawOrderKey.Axes)):[h.DrawOrderKey.Series,h.DrawOrderKey.Axes],O.legend={show:!1},O.padding=(null===(w=S.chart.size)||void 0===w?void 0:w.padding)||(0,d.getPaddingByAxes)(O),null===(E=this.plugins.legend)||void 0===E||E.preInit(this,this.config.legend,O),O.height=this.clientHeight,this.options=O,O}}},65781:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicUpdatesMixin=void 0;const n=s(i(576)),o=i(46976),l=i(28265),r=i(24793),a=i(50497);function u(e,t,i,s=!1){var n,o,l,r,u,c,d,h,f,p,g,m;if(s)return e.config={...e.config,...i},void(t.reinit=!0);const _=function(e,t){return function(i,s){const n=(0,a.get)(e,i),o=(0,a.get)(t,i);return s?!s(n,o):n!==o}}(e.config,i);i.title&&_("title")&&e.setTitle(i.title),(null===(o=null===(n=i.chart)||void 0===n?void 0:n.appearance)||void 0===o?void 0:o.theme)&&_("chart.appearance.theme")&&e.setTheme(null===(r=null===(l=i.chart)||void 0===l?void 0:l.appearance)||void 0===r?void 0:r.theme),(null===(c=null===(u=i.chart)||void 0===u?void 0:u.appearance)||void 0===c?void 0:c.locale)&&_("chart.appearance.locale")&&e.setLocale(null===(h=null===(d=i.chart)||void 0===d?void 0:d.appearance)||void 0===h?void 0:h.locale),i.axes&&_("axes",a.deepIsEqual)&&e.setAxes(i.axes),i.scales&&_("scales",a.deepIsEqual)&&e.setScales(i.scales);Boolean(i.series)&&function(e,t){if(e.length!==(null===t||void 0===t?void 0:t.length))return!0;const i=new Map,s=new Map;return e.forEach((e=>{i.set(e.id,e)})),t.forEach((e=>{s.set(e.id,e)})),!(!t.some((({id:e})=>!i.has(e)))&&!e.some((({id:e})=>!s.has(e))))}(e.config.series,i.series)&&(t.redrawLegend=!0),(i.series||i.timeline)&&e.setSeries(null!==(f=i.timeline)&&void 0!==f?f:e.config.timeline,null!==(p=i.series)&&void 0!==p?p:e.config.series,{incremental:!1}),i.tooltip&&_("tooltip")&&(null===(g=e.plugins.tooltip)||void 0===g||g.updateOptions(i.tooltip)),i.legend&&_("legend")&&(t.reinit=!0),null===(m=e.plugins.tooltip)||void 0===m||m.reset(),t.reopt=!0,e.config={...e.config,...i}}function c(e,t,i,s={incremental:!0,splice:!1}){let n,o=[],r=[],a=null,u=!1,c=!1;if(["number","string"].includes(typeof t)?(u=!1,n=!1,r=[i],a=t):"number"===typeof t[0]?(o=t,r=i,u=Boolean(s.incremental),n=!s.incremental):(r=t,n=!0),this.isEmpty&&r.some((({data:e})=>null===e||void 0===e?void 0:e.length)))e.reinit=!0;else{if(!1===n){let t=!1;if(u&&this.config.timeline.push(...o),r.forEach((i=>{var s,n;let o="number"===typeof a?this.config.series[0]:this.config.series.find((({id:e})=>e===i.id||e===a)),r=null===o||void 0===o?void 0:o.id;if("number"===typeof a&&this.state.y2uIdx[a]&&(o=this.config.series[a],r=a),o&&r){const{data:a,...d}=i,h=this.state.y2uIdx[r];"dots"!==o.type&&"dots"!==i.type&&"dots"!==(null===(s=this.config.chart.series)||void 0===s?void 0:s.type)||(e.reinit=!0),u?o.data=a?o.data.concat(a):o.data:(null===a||void 0===a?void 0:a.length)&&(o.data=a,c=!0);const f=(0,l.configureSeries)(this,Object.assign(o,d),h),p=this.options.series[h],g=this.uplot.series[h];g.show!==f.show&&e.fns.push((()=>{this.uplot.setSeries(h,{show:f.show})})),null!==g._focus&&g._focus===f.focus||e.fns.push((()=>{this.uplot.setSeries(h,{focus:f.focus})})),g.color!==f.color&&(t=!0),f.scale&&(null===(n=this.config.scales[f.scale])||void 0===n?void 0:n.stacking)&&(c=!0),(0,l.overrideSeriesInUpdate)(p,f),(0,l.overrideSeriesInUpdate)(g,f)}else e.fns.push((()=>{const e=(0,l.configureSeries)(this,i,this.config.series.length);this.state.y2uIdx[e.id]=this.uplot.series.length,this.uplot.addSeries(e,this.config.series.length)})),this.config.series.push(i)})),t&&e.fns.push((()=>{var e;null===(e=this.plugins.cursor)||void 0===e||e.updatePoints()})),s.splice){const e=r[0].data.length;this.config.series.forEach((t=>{t.data.splice(0,e)})),this.config.timeline.splice(0,o.length)}}else this.config.timeline=o,this.config.series=r,e.reinit=!0;e.reinit||(this._batch.fns.push((()=>{var e,t;return null===(t=null===(e=this.plugins)||void 0===e?void 0:e.tooltip)||void 0===t?void 0:t.reset()})),(c||o.length)&&(e.recalc=!0,e.fns.push((()=>{this.uplot.setData(this.series)}))))}}t.DynamicUpdatesMixin=class{setLocale(e){this.batch((t=>function(e,t,i){e.utils.i18n=(0,n.default)(i),t.redrawLegend=!0}(this,t,e)))}setTitle(e){this.batch((t=>{this.config.title=e,this.initTitle(),t.redraw=[!0,!0]}))}setTheme(e){this.batch((t=>function(e,t,i){e.utils.theme.setTheme(t);const s=["light","light-hc","dark","dark-hc"].map((e=>`yagr_theme_${e}`));e.root.classList.remove(...s),e.root.classList.add("yagr_theme_"+t),i.redraw=[!1,!0]}(this,e,t)))}setAxes(e){this.batch((t=>function(e,t,i){const{x:s,...n}=i;if(s){const t=e.uplot.axes.find((({scale:e})=>e===o.DEFAULT_X_SCALE));t&&(0,r.updateAxis)(e,t,{scale:o.DEFAULT_X_SCALE,...s})}Object.entries(n).forEach((([t,i])=>{const s=e.uplot.axes.find((({scale:e})=>e===t));s&&(0,r.updateAxis)(e,s,{scale:t,...i})})),t.redraw=(0,r.getRedrawOptionsForAxesUpdate)(i)}(this,t,e)))}setSeries(e,t,i={incremental:!0,splice:!1}){this.batch((s=>c.call(this,s,e,t,i)))}setFocus(e,t){this.batch((()=>function(e,t,i){var s;const n=null===t?null:e.state.y2uIdx[t];null===(s=e.plugins.cursor)||void 0===s||s.focus(n,i),e.uplot.setSeries(n,{focus:i})}(this,e,t)))}setVisible(e,t,i=!0){this.batch((s=>function(e,t,i,s,n){const l=null===t?null:e.state.y2uIdx[t];(null===t?e.config.series:[e.config.series.find((({id:e})=>e===t))]).forEach((e=>{e&&(e.show=i)})),n.fns.push((()=>{e.uplot.setSeries(l,{show:i})})),e.options.series=e.uplot.series;let r=!1;if(l){const t=e.uplot.series[l];t.show=i;const s=t.scale||o.DEFAULT_Y_SCALE,n=e.config.scales[s];r=Boolean(n&&n.stacking)}else r=e.options.series.reduce(((t,s)=>{var n;const{scale:o}=s;return s.show=i,Boolean(o&&(null===(n=e.config.scales[o])||void 0===n?void 0:n.stacking)||t)}),!1);r&&(n.recalc=!0,n.fns.push((()=>{var t;e.uplot.setData(e.series,!0),s&&(null===(t=e.plugins.legend)||void 0===t||t.update())})))}(this,e,t,i,s)))}setScales(e){this.batch((t=>function(e,t,i){let s=!1,n=!1;Object.entries(t).forEach((([t,i])=>{const o=e.config.scales[t];if(o){const{stacking:e}=o,{stacking:t}=i;e!==t&&(s=!0),i.normalize===o.normalize&&i.normalizeBase===o.normalizeBase||(n=!0)}}));const l=Object.entries(t).every((([t,i])=>{const s=e.config.scales[t],{min:n,max:o,...l}=s,{min:r,max:u,...c}=i;return!(!1===(0,a.deepIsEqual)(c,l))&&(n!==r||o!==u)})),r=Object.keys(t).includes(o.DEFAULT_X_SCALE);if(l&&!r)return Object.entries(t).forEach((([t,s])=>{i.fns.push((()=>{e.uplot.setScale(t,{min:s.min,max:s.max})}))}));(s||n)&&(i.reinit=!0),e.config.scales=t,i.reinit=!0}(this,e,t)))}setConfig(e,t=!1){this.batch((i=>u(this,i,e,t)))}}},78229:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransformSeriesMixin=void 0;const s=i(46976),n=i(50497);t.TransformSeriesMixin=class{transformSeries(){const e=performance.now(),t=[],i=this.config,o=i.timeline;let l=i.processing||!1,r=this.config.series.map((({data:e})=>e));l&&l.interpolation&&(r=(0,n.preprocess)(r,o,l),l=!1);const a=Boolean(l&&l.nullValues),u=l&&l.nullValues||{},c={};for(let d=0;d<r.length;d++){let e=[];const i=d+1,l=r[d],h=this.options.series.length-i,f=this.options.series[h],p=f.scale||s.DEFAULT_Y_SCALE,g=this.config.scales[p]||{},m=g.stacking,_=f.stackGroup||0;let v=!0;m&&!c[p]&&(this.options.focus=this.options.focus||{alpha:1.1},this.options.focus.alpha=1.1,c[p]=[]),m&&!c[p][_]&&(c[p][_]=new Array(o.length).fill(0)),f.count=0;for(let t=0;t<l.length;t++){let i=l[t];if(a&&u[String(i)]&&(i=null),f.transform&&(f._transformed=!0,i=f.transform(i,r,t)),g.transform&&(f._transformed=!0,i=g.transform(i,r,t)),null===i){if("line"===f.type||"dots"===f.type){e.push(null);continue}i=m?0:null}if(v=!1,g.normalize){const e=(0,n.getSumByIdx)(this.options.series,t,p);i=e&&(null!==i&&void 0!==i?i:0)/e*(g.normalizeBase||100),f.normalizedData=f.normalizedData||[],f.normalizedData[t]=i}g.stacking&&(!1===f.show&&(i=0),i=c[p][_][t]+=null!==i&&void 0!==i?i:0),"logarithmic"===g.type&&0===i&&(i=1),f.sum=(f.sum||0)+(i||0);"number"===typeof f.$c[t]&&(f.count+=1),e.push(i)}f.avg=(f.sum||0)/f.count,f.empty=v,f.postProcess&&(e=f.postProcess(e,d,this)),t.unshift(e)}return t.unshift(this.config.timeline),this.series=t,this.execHooks("processed",{chart:this,meta:{processTime:performance.now()-e}}),this.series}}},60758:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.cursorPoint=void 0;const n=i(46976),o=s(i(20500)),l=i(50497);function r(e,t,i){if(i||(i=t.querySelector("span")),!i)return;t.style.background=`${e.color}`,i.style.background=e.color||n.SERIE_COLOR;const s=o.default.parseRgba(e.color)||[256,256,256,0];t.style.boxShadow=`0px 0px 0px 1px rgba(${s[0]}, ${s[1]}, ${s[2]}, 0.5)`}function a(e,t){const i=e.series[t],s=(0,l.html)("span"),n=(0,l.html)("div",{class:"yagr-point","data-idx":String(t)},i.empty?void 0:s);return i.empty?(n.style.display="none",n):(r(i,n,s),n)}function u(e,t){return void 0===t?Array.from(e.querySelectorAll(".yagr-point")):[e.querySelector(`.yagr-point[data-idx="${t}"]`)]}t.cursorPoint=a,t.default=function(e,t){var i,s,o;const c=e.config.processing||{},d=Boolean(c.interpolation),h=null===(i=c.interpolation)||void 0===i?void 0:i.value,f=!1!==t.snapToValues&&(t.snapToValues||"closest"),p=!!d&&(null!==(o=null===(s=c.interpolation)||void 0===s?void 0:s.snapToValues)&&void 0!==o?o:"closest");let g={};const m=(e,t,i)=>{const s=e.series[t];if(s.scale===n.DEFAULT_X_SCALE)return i;const o=s.$c||e.data[t],r=o[i];return d&&r===h?(0,l.findDataIdx)(o,s,i,p,h):null===r?(0,l.findDataIdx)(o,s,i,f,null):i};return{showPoints:t=>{const i=e.uplot.over;if(!i)return;u(i,t).forEach((e=>{e.style.visibility="visible"}))},hidePoints:t=>{const i=e.uplot.over;if(!i)return;u(i,t).forEach((e=>{e.style.visibility="hidden"}))},pin:t=>{var i;const s=e.root.querySelector(".u-over");if(s)if(t){const e=document.createElement("div");e.classList.add("yagr-points-holder"),s.querySelectorAll(".yagr-point").forEach((t=>{const i=t.cloneNode(!0);e.appendChild(i);const s=i.dataset.idx;s&&(g[s]=i)})),s.appendChild(e)}else g={},null===(i=s.querySelector(".yagr-points-holder"))||void 0===i||i.remove()},updatePoints:()=>{e.root.querySelectorAll(".yagr-point").forEach((t=>{const i=Number(t.dataset.idx);if(isNaN(i))return;r(e.uplot.series[i],t)}))},focus:(e,t)=>{Object.entries(g).forEach((([i,s])=>{s.style.display=null!==e?i===String(e)&&t?"block":"none":t?"block":"none"}))},uplot:{opts:(e,i)=>{var s;i.cursor=i.cursor||{};const o=i.series.filter((e=>e.empty)).length,l=i.series.length-1,r=null!==(s=null===t||void 0===t?void 0:t.maxMarkers)&&void 0!==s?s:50;i.cursor.points={show:l-o<=r&&a,size:(e,i)=>{const s=e.series[i];return(s.cursorOptions?s.cursorOptions.markersSize:null===t||void 0===t?void 0:t.markersSize)||n.MARKER_DIAMETER}},i.cursor.dataIdx=m},hooks:{...t.hideMarkers&&{setCursor:i=>{var s,n;const o=i.cursor.idx;if(!(0,l.isNil)(o))for(let l=1;l<i.series.length;l++){const r=i.series[l].$c[o];t.hideMarkers(r,l)?null===(s=e.plugins.cursor)||void 0===s||s.hidePoints(l):null===(n=e.plugins.cursor)||void 0===n||n.showPoints(l)}}},init:e=>{const i=e.root.querySelector(".u-cursor-x");i&&(t.x&&!1===t.x.visible&&(i.style.display="none"),i.style.borderRight=t.x&&t.x.style||n.CURSOR_STYLE);const s=e.root.querySelector(".u-cursor-y");s&&(t.y&&!1!==t.y.visible?s.style.borderBottom=t.y.style||n.CURSOR_STYLE:s.style.display="none")}}}}}},72168:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hasOneVisibleLine=void 0;const s=i(46976),n=i(50497),o=i(11213),l="null";t.hasOneVisibleLine=e=>e.some((({show:e,id:t})=>t!==s.DEFAULT_X_SERIE_NAME&&e));const r=(e,i)=>i.length>3&&e((0,t.hasOneVisibleLine)(i)?"hide-all":"show-all");t.default=class{constructor(){this.pagesCount=0,this.state={page:0,pages:1,pageSize:0,rowsPerPage:1,paginated:!1,requiredSpace:0,totalSpace:0},this.itemsHtml="",this.preInit=(e,t,i)=>{this.yagr=e,this.options=Object.assign({show:!1,position:"bottom",fontSize:12,maxLegendSpace:.3,className:void 0,behaviour:"basic"},t||{}),this.calc(i)},this.init=e=>{var t;this.options.show&&(this.uplot=e,null===(t=e.root.querySelector(".u-legend"))||void 0===t||t.remove(),this.render())},this.update=()=>{this.yagr.root.querySelectorAll("[data-serie-id]").forEach((e=>{var t,i;const s=e.getAttribute("data-serie-id");if(!s||s===l)return;const n=null===(i=null===(t=this.uplot)||void 0===t?void 0:t.series[this.yagr.state.y2uIdx[s]])||void 0===i?void 0:i.show;e.classList[n?"remove":"add"]("yagr-legend__item_hidden")}))},this.measureLegend=e=>{const t=this.yagr.root,i=(0,n.html)("div",{class:"yagr-legend",style:{visibility:"hidden"}},e);t.appendChild(i);const s=i.childNodes[0].getBoundingClientRect();return i.remove(),s},this.nextPage=()=>{const{state:e}=this;this.state.page+=1,this.items&&(this.items.style.transform=`translate(0, ${-1*e.page*e.pageSize}px)`,this.renderPagination())},this.prevPage=()=>{const{state:e}=this;this.state.page-=1,this.items&&(this.items.style.transform=`translate(0, ${-1*e.page*e.pageSize}px)`,this.renderPagination())}}redraw(){this.options.show&&this.render()}destroy(){var e;this._onDestroy&&this._onDestroy(),null===(e=this.legendEl)||void 0===e||e.remove()}applyHandlers(){const{yagr:e,uplot:i}=this;if(!i)return()=>{};const s=e.root.querySelectorAll("[data-serie-id]"),n=[],a={basic:s=>()=>{const n=s.getAttribute("data-serie-id"),o=[];if(n===l){const e=!(0,t.hasOneVisibleLine)(i.series);for(let t=1;t<i.series.length;t++)o.push([i.series[t],e])}else{const e=i.series.find((({id:e})=>e===n));if(!e)return;o.push([e,!e.show])}o.forEach((([t,i])=>{if(t.show===i)return;const s=e.root.querySelector(`[data-serie-id="${t.id}"]`);e.setVisible(t.id,i,!1),null===s||void 0===s||s.classList[i?"remove":"add"]("yagr-legend__item_hidden")}));const a=e.root.querySelector(".yagr-legend__all-series");if(a){const e=r(this.yagr.utils.i18n,i.series);a.innerHTML=e||""}},extended:s=>{const n=(t,i)=>{const s=e.root.querySelector(`[data-serie-id="${t}"]`);e.setVisible(t,i,!1),null===s||void 0===s||s.classList[i?"remove":"add"]("yagr-legend__item_hidden")},o=e=>{this.state.startSerieRange=e;const s=i.series.filter((t=>t.id!==e.id)),o=!(0,t.hasOneVisibleLine)(s)&&!1!==e.show;i.series.forEach((t=>{const i=e.id===t.id||o;n(t.id,i)}))},l=e=>{this.state.startSerieRange||(this.state.startSerieRange=i.series[1]);const t=[];i.series.forEach(((i,s)=>{var n;i.id===e.id&&t.push(s),i.id===(null===(n=this.state.startSerieRange)||void 0===n?void 0:n.id)&&t.push(s)})),i.series.forEach(((e,i)=>{const s=i>=t[0]&&i<=t[1];n(e.id,s)}))};return e=>{const t=s.getAttribute("data-serie-id"),r=i.series.find((({id:e})=>e===t));r&&(e.preventDefault(),e.ctrlKey||e.metaKey?(e=>{n(e.id,!e.show)})(r):e.shiftKey?l(r):o(r))}}},u=t=>()=>{const i=t.getAttribute("data-serie-id");if(t.classList.contains("yagr-legend__item_hidden")||i===l)return;const s=this.yagr.uplot.series.find((({id:e})=>e===i));s&&(e.setFocus(s.id,!0),e.redraw(!0,!1))},c=()=>{e.setFocus(null,!0),e.redraw(!0,!1)};s.forEach((e=>{const t=a[this.options.behaviour||"basic"](e),i=u(e);e.addEventListener("click",t),e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",c),e.addEventListener("mousedown",o.preventMouseEvents),n.push((()=>{e.removeEventListener("click",t),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",c),e.removeEventListener("mousedown",o.preventMouseEvents)}))}));const d=()=>n.forEach((e=>e()));return this._onDestroy=d,d}render(){var e,t;let i=!1;const{uplot:s,options:o}=this;if(!s)return;let l=this.yagr.root.querySelector(".yagr-legend");if(l?i=!0:l=(0,n.html)("div",{class:`yagr-legend yagr-legend__${this.options.position} ${(null===o||void 0===o?void 0:o.className)||""}`}),l){if(i||("top"===o.position?s.root.before(l):null===(e=s.root)||void 0===e||e.after(l)),this.legendEl=l,this.itemsHtml&&!i||this.calc(this.yagr.options),l.innerHTML=`<div class="yagr-legend__container" style="height: ${this.state.requiredSpace}px">${this.itemsHtml}</div>`,this.items=l.querySelector(".yagr-legend__items"),this.container=l.querySelector(".yagr-legend__container"),this.state.paginated){const e=this.renderPagination();null===(t=this.container)||void 0===t||t.after(e)}else this.items.style.justifyContent="center";this.applyHandlers()}}renderPagination(){const{state:e}=this;let t=this.yagr.root.querySelector(".yagr-legend__pagination");if(t){const e=t.querySelector(".yagr-legend__icon-down"),i=t.querySelector(".yagr-legend__icon-up");e.removeEventListener("click",this.nextPage),i.removeEventListener("click",this.prevPage)}else t=(0,n.html)("div",{class:"yagr-legend__pagination"});const i=0===e.page?"yagr-legend__icon-up_disabled":"",s=e.page===e.pages-1?"yagr-legend__icon-down_disabled":"";t.innerHTML=`<span class="yagr-legend__icon-up ${i}"></span>\n<span class="yagr-legend__pagination-text">${e.page+1}/${e.pages}</span>\n<span class="yagr-legend__icon-down ${s}"></span>`;const o=t.querySelector(".yagr-legend__icon-down"),l=t.querySelector(".yagr-legend__icon-up");return s||o.addEventListener("click",this.nextPage),i||l.addEventListener("click",this.prevPage),t}createIconLineElement(e){return(0,n.html)("span",{class:`yagr-legend__icon yagr-legend__icon_${e.type}`,style:{"background-color":e.color}})}createSerieNameElement(e){const t=(0,n.html)("span");return t.innerText=e.name||"unnamed",t}renderItems(e){const t=r(this.yagr.utils.i18n,e.series),i="extended"!==this.options.behaviour&&(e=>e.length>3&&l||void 0)(e.series),s=i?[i]:[];for(let n=1;n<e.series.length;n++)s.push(e.series[n]);return`<div class="yagr-legend__items">${s.map((e=>{let s,n,o=" ";if(e===l)s=t,n=i,o=" yagr-legend__all-series ";else{n=e.id;const t=this.createIconLineElement(e),i=this.createSerieNameElement(e);s=`${t.outerHTML}${i.outerHTML}`}return`<div class="yagr-legend__item${o}${"string"===typeof e||!1!==e.show?"":"yagr-legend__item_hidden"}" data-serie-id="${n}">${s}</div>`})).join("")}</div>`}calc(e){if(!this.options.show)return;const t=e.height-this.VERTICAL_PADDING,i=this.renderItems(e),{height:s}=this.measureLegend(i),n=this.options.fontSize+2,o=t*this.options.maxLegendSpace,l=Math.floor(o/n),r=l-1,a=Math.min(r*n,o),u=Math.min(l*n,o),c=s>a&&a>0,d=Math.min(c?u:a,s),h=Math.ceil(s/a),f=c?this.VERTICAL_PADDING+18:this.VERTICAL_PADDING;this.state.requiredSpace=d,this.state.totalSpace=d+f,this.state.paginated=c,this.state.page=this.state.page||0,this.state.pages=h,this.state.pageSize=a,this.state.rowsPerPage=l,this.itemsHtml=i}get VERTICAL_PADDING(){return"bottom"===this.options.position?20:48}}},67903:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.drawMarkersIfRequired=t.renderCircle=void 0;const s=i(46976),n=i(50497);t.renderCircle=(e,t,i,n,o,l,r,a)=>{const{ctx:u}=e,c=Math.round(e.valToPos(t,s.DEFAULT_X_SCALE,!0)),d=Math.round(e.valToPos(i,a||s.DEFAULT_Y_SCALE,!0));if(u.beginPath(),u.arc(c,d,2*n,0,2*Math.PI),u.fillStyle=l,o){const e=u.lineWidth,t=u.strokeStyle;u.lineWidth=o,u.strokeStyle=r,u.stroke(),u.lineWidth=e,u.strokeStyle=t}u.fill(),u.closePath()},t.drawMarkersIfRequired=function(e,i,o,l){const{color:r,scale:a,spanGaps:u,count:c,pointsSize:d}=e.series[i];if(u&&c>1)return!1;let h,f=o;for(;f<=l;){const o=e.data[i][f];if(null===o){h=o,f++;continue}const l=f+1,u=e.data[i][l];(0,n.isNil)(h)&&(0,n.isNil)(u)&&(0,t.renderCircle)(e,e.data[0][f],o,null!==d&&void 0!==d?d:s.DEFAULT_POINT_SIZE/2,0,r,r,a||s.DEFAULT_Y_SCALE),h=o,f++}},t.default=function(e,i){var n;const{size:o=s.DEFAULT_POINT_SIZE,strokeWidth:l=2,strokeColor:r="#ffffff",show:a}=i.markers,u=null===(n=i.chart)||void 0===n?void 0:n.series,c=(null===u||void 0===u?void 0:u.pointsSize)||s.DEFAULT_POINT_SIZE;function d(i,n,u,d){const{scale:h,_focus:f,color:p,getFocusedColor:g,type:m}=i.series[n];let _=u;const v="dots"===m?a?o:c:o;for(;_<=d;){const o=i.data[n][_];null!==o&&(0,t.renderCircle)(i,i.data[0][_],o,v,l,(f||null===f?p:g(e,n))||p,r,h||s.DEFAULT_Y_SCALE),_++}}const h=(e,t)=>{0!==e&&null!==e&&("dots"===t.type||i.markers.show)&&(t.points=t.points||{},t.points.show=d)};return{opts:(e,t)=>{(i.markers.show||t.series.some((e=>"dots"===e.type)))&&t.series.forEach(((e,t)=>h(t,e)))},hooks:{addSeries:(e,t)=>{const i=e.series[t];h(t,i)},setSeries:(e,t,i)=>{h(t,i)}}}}},15648:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=i(46976),n=i(48643),o=i(50497),l={[n.DrawOrderKey.Series]:0,[n.DrawOrderKey.Axes]:1,plotLines:2};function r(e,t){return e.some((e=>(0,o.deepIsEqual)(e,t)))}const a={"012":"draw",102:"draw",201:"drawClear",210:"drawClear",120:"drawAxes","021":"drawSeries"};t.default=function(e){let t=[];return function(i){var n;const o=null===(n=i.config.chart.appearance)||void 0===n?void 0:n.drawOrder,u=(o?o.map((e=>l[e])):[0,1,2]).join(""),c=a[u]||"drawClear";function d(n){const{ctx:o}=n,{height:l,top:r,width:a,left:u}=n.bbox,c=n.data[0];for(const d of t){if(!d.scale)continue;if(e.render){e.render(n,d);continue}o.save(),o.fillStyle=i.utils.colors.parse(d.color);const{scale:t,value:h}=d;if(Array.isArray(h)){const[e,i]=h.map((e=>{if(Math.abs(e)!==1/0){if(t===s.DEFAULT_X_SCALE){if(e<c[0])return c[0];if(e>c[c.length-1])return c[c.length-1]}else{const i=n.scales[t];if(void 0!==i.min&&e<i.min)return i.min;if(void 0!==i.max&&e>i.max)return i.max}return e}const i=e>0?t===s.DEFAULT_X_SCALE?n.width:0:t===s.DEFAULT_X_SCALE?0:n.height;return n.posToVal(i,t)})),f=n.valToPos(e,t,!0),p=n.valToPos(i,t,!0),g=d.accent;t===s.DEFAULT_X_SCALE?(o.fillRect(f,r,p-f,l),g&&(o.fillStyle=g.color,o.fillRect(f,r-g.space,p-f,g.space))):(o.fillRect(u,f,a,p-f),g&&(o.fillStyle=g.color,o.fillRect(a+u,f,g.space,p-f)))}else{const e=n.valToPos(h,t,!0),i=d;if(o.beginPath(),t===s.DEFAULT_X_SCALE){const i=n.data[0][n.data[0].length-1];if(e-n.valToPos(i,t,!0)>0)continue;o.moveTo(e,r),o.lineTo(e,l+r)}else o.moveTo(u,e),o.lineTo(a+u,e);o.lineWidth=i.width||s.DEFAULT_CANVAS_PIXEL_RATIO,o.strokeStyle=i.color||"#000",i.dash&&o.setLineDash(i.dash),o.closePath(),o.stroke()}o.restore()}}const h="drawSeries"===c?(e,t)=>{t===e.series.length-1&&d(e)}:d,f={get:()=>t,clear:e=>{t=e?t.filter((t=>t.scale!==e)):[]},remove:e=>{t=t.filter((t=>!r(e,t)))},add:(e,i)=>{for(const s of e)t.push(i?{scale:i,...s}:s)},update:(e,i)=>{if(!e||0===e.length)return void f.clear(i);const s=e.filter((e=>!r(t,e))),n=t.filter((t=>!r(e,t)));s.length&&f.add(s,i),n.length&&f.remove(n)},uplot:{opts:()=>{const e=i.config;t=[],Object.entries(e.axes).forEach((([e,i])=>{i.plotLines&&i.plotLines.forEach((i=>{t.push({...i,scale:e})}))}))},hooks:{[c]:h}}};return f}}},48840:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=i(50497),n={size:["height","width"],clientSize:["clientHeight","clientWidth"],offsetSize:["offsetHeight","offsetWidth"],maxSize:["maxHeight","maxWidth"],before:["top","left"],marginBefore:["marginTop","marginLeft"],after:["bottom","right"],marginAfter:["marginBottom","marginRight"],scrollOffset:["pageYOffset","pageXOffset"],offset:["offsetY","offsetY"],offsetOpt:["yOffset","xOffset"],bodyScroll:["scrollHeight","scrollWidth"],inner:["innerHeight","innerWidth"]};function o(e){return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}t.default=function(e,t,i="bottom",l={}){let r;r=t instanceof Element||t instanceof Range?o(e.getBoundingClientRect()):t;const a=Object.assign({top:r.bottom||0,bottom:r.top||0,left:r.right||0,right:r.left||0},r),u={top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};l.bound&&((l.bound instanceof Element||l.bound instanceof Range)&&(l.bound=o(l.bound.getBoundingClientRect())),Object.assign(u,l.bound));const c=getComputedStyle(e),{primary:d,secondary:h}=Object.entries(n).reduce(((e,[t,s])=>({primary:{...e.primary,[t]:s["top"===i||"bottom"===i?0:1]},secondary:{...e.secondary,[t]:s["top"===i||"bottom"===i?1:0]}})),{primary:{},secondary:{}});e.style.position="absolute",e.style.maxWidth="",e.style.maxHeight="";const f=l[d.offsetOpt]||0,p=parseInt(c[h.marginBefore],10),g=p+parseInt(c[h.marginAfter],10),m=u[h.after]-u[h.before]-g,_=parseInt(c[h.maxSize],10);(!_||m<_)&&(e.style[h.maxSize]=(0,s.px)(m));const v=parseInt(c[d.marginBefore],10)+parseInt(c[d.marginAfter],10),y=a[d.before]-u[d.before]-v,b=u[d.after]-a[d.after]-v-f;(i===d.before&&e[d.offsetSize]>y||i===d.after&&e[d.offsetSize]>b)&&(i=y>b?d.before:d.after);const w=i===d.before?y:b,E=parseInt(c[d.maxSize],10);(!E||w<E)&&(e.style[d.maxSize]=(0,s.px)(w));const S=document.body[d.bodyScroll]-window[d.inner],x=Math.max(Math.min(window[d.scrollOffset],S),0),A=t=>Math.max(u[d.before],Math.min(t,u[d.after]-e[d.offsetSize]-v));i===d.before?(e.style[d.before]=x+A(a[d.before]-e[d.offsetSize]-v)-f+"px",e.style[d.after]="auto"):(e.style[d.before]=(0,s.px)(x+A(a[d.after])+f),e.style[d.after]="auto");const T=document.body[h.bodyScroll]-window[h.inner],O=Math.max(Math.min(window[h.scrollOffset],T),0);var L;return e.style[h.before]=(0,s.px)(O+(L=a[h.before]-p,Math.max(u[h.before],Math.min(L,u[h.after]-e[h.offsetSize]-g)))),e.style[h.after]="auto",e.dataset.side=i,{side:i,anchorRect:a,boundRect:u}}},74947:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderTooltip=void 0;const s=i(48130);t.renderTooltip=function(e){if(0===e.scales.length)return e.yagr.utils.i18n("nodata");const[t,i]=e.options.title?"string"===typeof e.options.title?[e.options.title,!1]:["",!0]:["",!1];return`${t?`<div class="__title">${t}</div>`:""}${e.scales.map((t=>{const n=(0,s.getOptionValue)(e.options.title,t.scale),o=e.scales.length>1?e.options.scales?`${(0,s.getOptionValue)(e.options.scales,t.scale)||""}`:`${e.yagr.utils.i18n("scale")}: ${t.scale}`:"";return`\n<div class="__section" data-scale=${t.scale}>\n ${i&&n?`<div class="_section_title">${n}</div>`:""}\n ${o?`<div class="__section_scale">${o}</div>`:""}\n <div class="__section_body">${function(e,t,i){const n=e.slice(0,(0,s.getOptionValue)(t.maxLines,i));return n.map((({value:i,name:n="unnamed",color:o,active:l,transformed:r,seriesIdx:a},u)=>{const c=`\n<span class="yagr-tooltip__val">${i}</span>\n ${"number"===typeof r?`<span class="yagr-tooltip__tf">${r.toFixed(2)}</span>`:""}\n`;return`\n<div class="yagr-tooltip__item ${l?"_active":""}" data-series="${a}">\n ${t.showIndicies?`<span class="yagr-tooltip__idx">${e.length-u}</span>`:""}\n <span class="yagr-tooltip__mark" style="background-color: ${o}"></span>${(0,s.escapeHTML)(n)} ${c}\n</div>`})).join("")+(e.length>n.length?`<div class="yagr-tooltip__item _more">+${e.length-n.length}</div>`:"")}(t.rows,e.options,t.scale)}</div>\n ${(0,s.getOptionValue)(e.options.sum,t.scale)?`\n <div class="__section_sum">\n ${e.yagr.utils.i18n("sum")}: ${t.sum}\n </div>\n `:""}\n</div>`})).join("")}`}},25700:function(e,t,i){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(i(48840)),o=i(46976),l=i(50497),r=i(74947),a=i(48130),u=(e,t,i,s,n)=>{var o,r,a;const u=Array.isArray(i.$c)?i.$c:t;let c=u[s];if(n&&c===n.value){const e=null!==(o=n.snapToValues)&&void 0!==o?o:"closest";c=u[(0,l.findDataIdx)(u,i,s,e,n.value)]}else if(null===c){const t=null!==(r=e.snapToValues)&&void 0!==r?r:"closest",n=null!==(a=i.snapToValues)&&void 0!==a?a:t;c=u[(0,l.findDataIdx)(u,i,s,n,null)]}return c},c={maxLines:o.TOOLTIP_DEFAULT_MAX_LINES,highlight:!0,sum:!1,render:r.renderTooltip,pinable:!0,strategy:"pin",sort:void 0,showIndicies:!1,hideNoData:!1,className:"yagr-tooltip_default",xOffset:o.TOOLTIP_X_OFFSET,yOffset:o.TOOLTIP_Y_OFFSET,virtual:!1,showEmpty:!1,onUpdate:"reset"};class d{constructor(e,t={}){var i,s;this.handlers={init:[],mount:[],show:[],pin:[],unpin:[],hide:[],render:[],destroy:[],reset:[]},this.placement=n.default,this.renderTooltipCloses=()=>{},this.skipNextMouseUp=!1,this.emit=(e,t)=>{this.handlers[e].forEach((i=>{i(this.tOverlay,{state:this.state,actions:{pin:this.pin,show:this.show,hide:this.hide,dispose:this.dispose,reset:this.reset},data:t,yagr:this.yagr,event:e})}))},this.reset=()=>{var e;"none"!==this.opts.onUpdate?(this.state.visible&&this.hide(),this.state.pinned&&this.pin(!1),this.emit("reset")):null===(e=this.yagr.plugins.cursor)||void 0===e||e.pin(!1)},this.show=()=>{const e=!this.state.visible;this.state.visible=!0,this.tOverlay.style.display="block",e&&this.emit("show")},this.hide=()=>{const e=this.state.visible;this.state.visible=!1,this.tOverlay.style.display="none",this.emit("hide"),e&&this.emit("show")},this.pin=(e,t)=>{var i;this.state.pinned=e;const s=this.state.range||[];if(null===(i=this.yagr.plugins.cursor)||void 0===i||i.pin(e&&(null===s[1]||s.length<2)),this.opts.virtual)return this.emit(e?"pin":"unpin");t&&this.placement(this.tOverlay,{left:t.x+this.bLeft,top:this.bTop+t.y-(this.opts.yOffset||0)},"right",{bound:this.bound,xOffset:this.opts.xOffset,yOffset:this.opts.yOffset});const n=this.tOverlay.querySelector("._tooltip-list");e?(this.state.visible||this.show(),this.tOverlay.classList.add("yagr-tooltip_pinned"),n&&(null===n||void 0===n?void 0:n.clientHeight)&&(n.style.height=(0,l.px)(n.clientHeight)),this.opts.render===r.renderTooltip&&(document.addEventListener("mousemove",this.checkFocus),document.addEventListener("mousedown",this.detectClickOutside))):(this.tOverlay.classList.remove("yagr-tooltip_pinned"),this.opts.render===r.renderTooltip&&(document.removeEventListener("mousemove",this.checkFocus),document.removeEventListener("mousedown",this.detectClickOutside))),this.emit(e?"pin":"unpin")},this.checkFocus=e=>{const t=e.target;let i;t&&this.tOverlay.contains(t)&&t.classList.contains("yagr-tooltip__item")&&(i=t.dataset.series);const s=i?this.yagr.uplot.series[Number(i)]:null;i&&s?(this.state.focusedSeries=i,this.yagr.setFocus(s.id,!0)):this.state.focusedSeries&&(this.state.focusedSeries=null,this.yagr.setFocus(null,!0))},this.render=e=>{const t=this.yagr.uplot;let{left:i,top:s}=e;const{idx:n}=e,{opts:r,state:d}=this;if(r.show&&"function"===typeof r.show&&!1===r.show(this.yagr))return void this.hide();(i<0||s<0)&&!d.pinned&&this.isNotInDrag&&this.hide(),s=(0,l.inBetween)(s,0,t.bbox.top+t.bbox.height),i=(0,l.inBetween)(i,0,t.bbox.left+t.bbox.width);const{data:h}=t;if(null===h||(0,l.isNil)(n)||void 0===s)return;const f=h[0][n],p={},g={},m={};let _=t.series.length-1;for(;_>=1;){const e=t.series[_];if(!e.show){_-=1;continue}const i=e.scale||o.DEFAULT_Y_SCALE;m[i]=m[i]||[],m[i].push(_),_-=1}Object.entries(m).forEach((([e,o])=>{var c;g[e]=g[e]||{rows:[]};const d=g[e],h=Number(t.posToVal(s,e).toFixed(2)),f=(0,a.getOptionValue)(r.value,e);for(const i of o){const s=t.data[i],o=t.series[i];let l=u(this.yagr.config.cursor,s,o,n,this.interpolation),h=l;"string"===typeof l&&(h=l,l=null),(0,a.getOptionValue)(r.sum,e)&&(p[e]=p[e]||0,p[e]+=l||0);const g=s[n],m=o.$c&&o.$c[n]===this.stripValue?l:g;if(null===l&&r.hideNoData||!1===o.showInTooltip)continue;const _=null!==(c=o.precision)&&void 0!==c?c:(0,a.getOptionValue)(r.precision,e),v=o.formatter?o.formatter(h,o):f(h,_),y={id:o.id,name:o.name,dataValue:o.$c[n],originalValue:l,value:v,y:m,displayY:g,color:o.color,seriesIdx:i,rowIdx:d.rows.length?d.rows[d.rows.length-1].rowIdx+1:0};o.normalizedData&&(y.transformed=o.normalizedData[n]),o._transformed&&(y.transformed=s[n]),r.omitBy&&r.omitBy(y)||d.rows.push(y)}if((0,a.getOptionValue)(r.highlight,e)&&d.rows.length){const u=(0,a.getOptionValue)(r.tracking,e);let c=0;"area"===u?c=(0,l.findInRange)(d,h,(0,a.getOptionValue)(r.stickToRanges,e)):"sticky"===u?c=(0,l.findSticky)(d,h):"function"===typeof u&&(c=u(d,h,{x:t.posToVal(i,"x"),y:t.posToVal(s,e),idx:n,scale:e,series:this.yagr.series,serieIndicies:o,interpolation:this.interpolation})),null!==c&&(d.rows[c].active=!0)}const m=(0,a.getOptionValue)(r.sort,e);m&&d.rows.sort(m)}));if(!Object.values(g).some((({rows:e})=>e.length>0))&&!r.showEmpty)return void this.hide();this.onMouseEnter();const v=this.over.getBoundingClientRect();this.bLeft=v.left,this.bTop=v.top,this.bWidth=v.width;const y={left:i+this.bLeft,top:this.bTop+s-(r.yOffset||0)};this.renderTooltipCloses=()=>{const e={scales:Object.entries(g).map((([e,t])=>({scale:e,rows:t.rows,sum:p[e]}))),options:r,x:f},t=Object.values(g).some((({rows:e})=>e.filter((({id:e})=>{var t;return null===(t=this.yagr.getSeriesById(e))||void 0===t?void 0:t.show})).length>0));t||r.showEmpty?(r.virtual||(this.tOverlay.innerHTML=r.render({...e,state:d,yagr:this.yagr,defaultRender:c.render}),this.placement(this.tOverlay,y,"right",{bound:this.bound,xOffset:r.xOffset,yOffset:r.yOffset})),this.emit("render",{...e,anchor:y})):this.hide()},d.pinned||this.renderTooltipCloses()},this.initWithUplot=e=>{this.over=e.root.querySelector(".u-over"),this.over.addEventListener("mousedown",this.onMouseDown),this.over.addEventListener("mousemove",this.onMouseMove),this.over.addEventListener("mouseenter",this.onMouseEnter),this.over.addEventListener("mouseleave",this.onMouseLeave),document.addEventListener("mouseup",this.onMouseUp)},this.setSize=()=>{const e=this.over.getBoundingClientRect();this.bLeft=e.left,this.bTop=e.top},this.dispose=()=>{this.over.removeEventListener("mousedown",this.onMouseDown),this.over.removeEventListener("mousemove",this.onMouseMove),this.over.removeEventListener("mouseenter",this.onMouseEnter),this.over.removeEventListener("mouseleave",this.onMouseLeave),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.checkFocus),document.removeEventListener("mousedown",this.detectClickOutside),this.tOverlay.remove(),this.state.mounted=!1,this.emit("destroy")},this.updateOptions=e=>{Object.assign(this.opts,e),this.tOverlay.className=`yagr-tooltip ${this.opts.className||""}`},this.on=(e,t)=>{this.handlers[e].push(t)},this.off=(e,t)=>{this.handlers[e]=this.handlers[e].filter((e=>e!==t))},this.detectClickOutside=e=>{const t=e.target;if(t instanceof Element){const e=t&&this.tOverlay.contains(t),i=t&&this.over.contains(t);e||i||(this.pin(!1),this.hide())}},this.onMouseDown=e=>{this.state.range=[this.getCursorPosition(),null],this.state.pinned&&(this.pin(!1),this.hide(),this.render({left:e.clientX-this.bLeft,top:e.clientY-this.bTop,idx:this.yagr.uplot.posToIdx(e.clientX-this.bLeft)}),this.skipNextMouseUp=!0)},this.onMouseMove=()=>{var e;(null===(e=this.state.range)||void 0===e?void 0:e.length)&&(this.state.range[1]=this.getCursorPosition())},this.setCursorLeaved=e=>{const t=this.over.getBoundingClientRect(),i=e.clientX,s=this.state.range,n=s[0],o=i-t.left>n.clientX,l=this.yagr.config.timeline;let r;o?(s[1]={clientX:this.bWidth,value:this.yagr.uplot.posToVal(this.bWidth,"x"),idx:l.length-1},r=s[1]):(s[1]=s[0],s[0]={clientX:0,value:this.yagr.uplot.posToVal(0,"x"),idx:0},r=s[0]),this.yagr.uplot.setCursor({left:r.clientX,top:e.clientY-t.top})},this.onMouseUp=e=>{if(null===this.state.range)return;const[t]=this.state.range||[];let i;if(i=e.target===this.over?this.getCursorPosition():this.state.range[1],"none"===this.opts.strategy)return;const s=t&&t.clientX===(null===i||void 0===i?void 0:i.clientX),n=t&&t.clientX!==(null===i||void 0===i?void 0:i.clientX),o=this.opts.strategy;(s&&!this.skipNextMouseUp&&"drag"!==o||n&&("all"===o||"drag"===o))&&(this.pin(!this.state.pinned),this.show(),this.renderTooltipCloses()),this.state.range=null,this.skipNextMouseUp=!1},this.onMouseEnter=()=>{this.show()},this.onMouseLeave=e=>{var t;const i=this.state.pinned;(null===(t=this.state.range)||void 0===t?void 0:t[0])&&this.setCursorLeaved(e),!i&&this.isNotInDrag&&this.hide()},this.defaultTooltipValueFormatter=(e,t)=>{const i=this.yagr.config.processing||{};return"string"===typeof e?i.nullValues&&i.nullValues.hasOwnProperty(e)?i.nullValues[e]:"-":"number"===typeof e?e.toFixed("number"===typeof t?t:"number"===typeof this.opts.precision?this.opts.precision:2):"-"},this.getCursorPosition=()=>{const e=this.yagr.uplot.cursor.left;return void 0===e?null:{clientX:e,value:this.yagr.uplot.posToVal(e,"x"),idx:this.yagr.uplot.posToIdx(e)}},this.yagr=e,this.over=null===(i=null===e||void 0===e?void 0:e.uplot)||void 0===i?void 0:i.over,this.opts={...c,strategy:t.pinable?"pin":c.strategy,tracking:"area"===(null===(s=e.config.chart.series)||void 0===s?void 0:s.type)?"area":"sticky",value:this.defaultTooltipValueFormatter,...t},this.bound=this.opts.boundClassName&&document.querySelector(this.opts.boundClassName)||document.body,this.renderNode=this.opts.renderClassName&&document.querySelector(this.opts.renderClassName)||document.body,this.tOverlay=document.createElement("div"),this.tOverlay.id=`${e.id}_tooltip`,this.tOverlay.className=`yagr-tooltip ${this.opts.className||""}`,this.tOverlay.style.display="none",this.state={mounted:!1,pinned:!1,visible:!1,range:null,focusedSeries:null},this.bLeft=0,this.bTop=0,this.bWidth=0,this.opts.virtual?this.placement=()=>{}:(this.renderNode.appendChild(this.tOverlay),this.state.mounted=!0,this.emit("mount"))}get interpolation(){var e;return null===(e=this.yagr.config.processing)||void 0===e?void 0:e.interpolation}get stripValue(){return this.interpolation?this.interpolation.value:void 0}get isNotInDrag(){var e;return"none"===this.opts.strategy||"pin"===this.opts.strategy||!(null===(e=this.state.range)||void 0===e?void 0:e[1])}}t.default=function(e,t={}){const i=new d(e,t),s=()=>({hooks:{destroy:()=>{i.dispose()},init:e=>{i.initWithUplot(e)},setSize:()=>{i.setSize()},setCursor:e=>{i.render(e.cursor)}}}),n=s();return{state:i.state,pin:i.pin,show:i.show,hide:i.hide,uplot:n,display:i.render,updateOptions:i.updateOptions,on:i.on,off:i.off,tooltip:i,dispose:i.dispose,reInit:function(e){const t=s();i.reset(),e.hooks.init.push(t.hooks.init),e.hooks.destroy.push(t.hooks.destroy),e.hooks.setSize.push(t.hooks.setSize),e.hooks.setCursor.push(t.hooks.setCursor)},reset:i.reset}}},98190:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},48130:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeHTML=t.getOptionValue=void 0,t.getOptionValue=function(e,t){return"object"===typeof e?e[t]:e},t.escapeHTML=function(e){const t=document.createElement("span");return t.innerText=e,t.innerHTML}},89353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},24793:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.configureAxes=t.updateAxis=t.getRedrawOptionsForAxesUpdate=t.getTimeFormatter=t.getDefaultNumberFormatter=t.getAxisPositioning=void 0;const r=l(i(16381)),a=o(i(46976)),u=i(50497),c=i(48643),d={right:c.Axis.Side.Right,top:c.Axis.Side.Top,bottom:c.Axis.Side.Bottom,left:c.Axis.Side.Left},h={left:c.Axis.Align.Right,right:c.Axis.Align.Left,top:void 0,bottom:void 0};t.getAxisPositioning=(e,t)=>({side:e?d[e]:c.Axis.Side.Left,align:t||(e?h[e]:void 0)});t.getDefaultNumberFormatter=(e,t="")=>i=>{if((0,u.isNil)(i))return t;if(0===i)return"0";const s=Math.abs(i),n="auto"===e?2:e,[o,l]=(0,u.getUnitSuffix)(s),r=i/o;return("auto"===e?String(r).replace(/\.(\d{5,})/,(e=>e.slice(0,6))):(0,u.toFixed)(r,n))+l};const f=e=>{const i=e.precision,s=(0,t.getDefaultNumberFormatter)("number"===typeof i?i:i||"auto","");return function(e,t){return t.map(s)}},p=r.default.fmtDate("{DD}.{MM}.{YYYY}"),g=r.default.fmtDate("{HH}:{mm}:{ss}"),m=r.default.fmtDate("{mm}:{ss}"),_=r.default.fmtDate("{mm}:{ss}.{fff}"),v=r.default.fmtDate("{YYYY}");function y(e,t){let i=p;const s=Math.ceil(e/t);return s<=a.SECOND?i=_:s<=a.MINUTE?i=m:s<=a.DAY?i=g:s>=a.YEAR&&(i=v),e=>i(new Date(e))}function b(e,i){var s,n;const o=i.utils.theme,l=i.config,r={splits:e.splitsCount?(c=e.splitsCount,(e,t,i,s)=>{if(c<=2)return[i,s];const n=Math.abs(s-i)/(c-1);let o=n;const l=[];for(;i+o<s;)l.push(i+o),o+=n;return[i,...l,s]}):e.splits,show:"undefined"===typeof e.show||e.show,label:e.label||void 0,labelSize:e.labelSize||a.Y_AXIS_LABEL_SIZE,labelFont:e.labelFont||a.AXIS_LABEL_FONT,font:e.font||a.AXIS_VALUES_FONT,stroke:e.stroke||(()=>o.AXIS_STROKE),ticks:e.ticks?{...o.Y_AXIS_TICKS,...e.ticks}:o.Y_AXIS_TICKS,grid:l.grid||e.grid||o.GRID};var c;return e.scale===a.DEFAULT_X_SCALE?Object.assign(r,{getFormatter:y,gap:null!==(s=e.gap)&&void 0!==s?s:a.X_AXIS_TICK_GAP,size:(0,u.asFn)(e.size)||(()=>a.X_AXIS_SIZE),values:e.values||(0,t.getTimeFormatter)(l),ticks:e.ticks?{...o.X_AXIS_TICKS,...e.ticks}:o.X_AXIS_TICKS,scale:a.DEFAULT_X_SCALE,space:e.space||(()=>a.X_AXIS_SPACE),incrs:e.incrs||(()=>a.X_AXIS_INCRS.map((e=>e*(l.chart.timeMultiplier||a.TIME_MULTIPLIER)))),side:2,stroke:e.stroke||(()=>o.AXIS_STROKE)}):(Object.assign(r,{gap:null!==(n=e.gap)&&void 0!==n?n:a.Y_AXIS_TICK_GAP,size:(0,u.asFn)(e.size)||a.Y_AXIS_SIZE,values:e.values||f(e),scale:e.scale||a.DEFAULT_Y_SCALE,getFormatter:()=>(0,t.getDefaultNumberFormatter)("number"===typeof e.precision?e.precision:e.precision||"auto",""),...(0,t.getAxisPositioning)(e.side||"left",e.align)}),e.space&&(r.space=e.space),r)}function w(e){let t,i;return[e=e.replace(/(\d+)px/,((e,s)=>(0,u.px)(t=Math.round((i=Number(s))*window.devicePixelRatio)))),t,i]}t.getTimeFormatter=e=>{const t=e.chart.timeMultiplier||a.TIME_MULTIPLIER;return(e,i)=>{const s=y((i[i.length-1]-i[0])/t,i.length);return i.map((e=>s(e/t)))}},t.getRedrawOptionsForAxesUpdate=function(e){const t=[!1,!0];return Object.values(e).forEach((e=>{["align","side","size","label","labelFont","labelGap","labelSize"].some((t=>void 0!==e[t]))&&(t[1]=!0)})),t},t.updateAxis=function(e,t,i){var s,n,o;const l=b({...i,font:t.font},e);l.ticks={...t.ticks,...l.ticks},l.grid={...t.grid,...l.grid},l.border={...t.border,...l.border},l.splits=l.splits||t.splits,i.font&&i.font!==(null===(s=t.font)||void 0===s?void 0:s[0])&&(l.font=w(i.font)),i.labelFont&&i.labelFont!==(null===(n=t.labelFont)||void 0===n?void 0:n[0])&&(l.labelFont=w(i.labelFont)),Object.assign(t,l),null===(o=e.plugins.plotLines)||void 0===o||o.update(i.plotLines,i.scale)},t.configureAxes=function(e,t){const i=[];Object.entries(t.axes).forEach((([t,s])=>{i.push(b({...s,scale:t},e))}));const s=a.DEFAULT_X_SCALE,n=a.DEFAULT_Y_SCALE;return t.axes[s]||i.push(b({scale:s},e)),i.find((({scale:e})=>e!==s))||i.push(b({scale:n},e)),i}},27658:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getPaddingByAxes=void 0;const l=o(i(46976));t.getPaddingByAxes=function(e){let t=!1,i=!1;return e.axes?e.axes.forEach((e=>{e.scale!==l.DEFAULT_X_SCALE&&(void 0!==e.side&&3!==e.side||(t=!0),1===e.side&&(i=!0))})):t=!0,t&&!i?l.PADDING_LEFT:i&&!t?l.PADDING_RIGHT:l.PADDING_BOTH}},20500:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerieFocusColors=t.getFocusedColor=void 0;const i=[0,0,0,.6];class s{static parseRgba(e){const t=e.match(/rgba?\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d+\.?\d*)?\s*\)/);return t?[t[1],t[2],t[3],t[4]||1].map(Number):null}parse(e="000"){const t=e.startsWith("var(--");let i,s=e,n=!0;const o=this.context,l=o.style.color;return t||e.startsWith("--")?(n=!1,i=t?e.slice(4,-1):e):e.startsWith("#")||e.startsWith("rgb")||(o.style.color=e,i="color",n=!1),s=n?s:getComputedStyle(o).getPropertyValue(i),o.style.color=l,s}setContext(e){this.context=e}rgba(e){return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${e[3]})`}toRgba(e,t){return s.parseRgba(this.parse(e))||t}shade([e,t,i,s],n){const o=n<0,l=o?0:255*n,r=o?1+n:1-n;return"rgba("+Math.round(e*r+l)+","+Math.round(t*r+l)+","+Math.round(i*r+l)+","+s+")"}}t.default=s;t.getFocusedColor=(e,t)=>{const n=e.utils.theme.SHIFT,o=e.uplot.series[t],l=s.parseRgba(o.color)||i;return e.utils.colors.shade(l,n)};t.getSerieFocusColors=(e,t)=>(i,s)=>{const n=i.series[s];return!1===n._focus?n.getFocusedColor(e,s):n[t]}},50497:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.inBetween=t.isNil=t.asPlain=t.asFn=t.deepIsEqual=t.get=t.html=t.px=t.debounce=t.exec=t.preprocess=t.genId=t.findDataIdx=t.toFixed=t.getUnitSuffix=t.findSticky=t.getSumByIdx=t.findInRange=void 0;t.findInRange=(e,t,i=!0)=>{const s=t>=0;let n=-1/0,o=null,l=1/0,r=null;const a=[];let u=null;for(let c=e.rows.length-1;c>=0;c--){const i=e.rows[c],{displayY:d,rowIdx:h}=i;let f;null!==d&&(d>n&&(n=d,o=i.rowIdx),d<l&&(l=d,r=i.rowIdx)),f=null===d||(s?d<0:d>=0)?null:s?t>d?null:d-t:t<d?null:Math.abs(d-t);const p=null===u?1/0:a[u],g=null===f?p:Math.min(p,f);(null!==f&&p===f||g!==p)&&(u=h)}return null===u&&i?t>=n?o:t<=l?r:null:u};t.getSumByIdx=(e,t,i)=>{let s=0,n=0;for(;n<e.length;){const o=e[e.length-n-1],l=o.$c;if(n+=1,o.scale!==i||!1===o.show)continue;const r=l[t];s+="number"===typeof r?r:0}return s};t.findSticky=(e,t)=>{let i,s,n=0;for(;!s&&n<e.rows.length;){const o=e.rows[n].displayY;null!==o&&(i=n,s=Math.abs(o-(t||0))),n+=1}if(!s||void 0===i)return null;for(n=i+1;n<e.rows.length;n++){const o=e.rows[n].displayY;if(null===o)continue;const l=Math.abs(o-t);s>l&&(s=l,i=n)}return i};t.getUnitSuffix=e=>e>=1e18?[1e18,"E"]:e>=1e15?[1e15,"P"]:e>=1e12?[1e12,"T"]:e>=1e9?[1e9,"G"]:e>=1e6?[1e6,"M"]:e>=1e3?[1e3,"K"]:[1,""],t.toFixed=function(e,t){if(0===t)return parseInt(e);if(Number.isInteger(e))return e+"."+"0".repeat(t);const[i,s]=e.toString().split(".");return s.length>=t?`${i}.${s.slice(0,t)}`:`${i}.${s}${"0".repeat(t-s.length)}`},t.findDataIdx=function(e,t,i,s="closest",n=null){var o;let l=i,r=i;const a=null!==(o=t.snapToValues)&&void 0!==o?o:s;if(!1===a)return i;if("left"===a||"closest"===a)for(let u=i-1;u>=0;u--)if(e[u]!==n){l=u;break}if("right"===a||"closest"===a)for(let u=i+1;u<e.length;u++)if(e[u]!==n){r=u;break}return"left"===a?l:"right"===a?r:r-i>i-l?l:r};const i=(e,t,i,s,n,o,l,r="linear")=>{let a=null;const u=e[o];switch(r){case"linear":if(null===t||null===i)return null;a=t+(u-s)*(i-t)/(n-s),(isNaN(a)||Math.abs(a)===1/0)&&(a=null);break;case"previous":a=t;break;case"next":a=i;break;case"left":a=l[l.length-1]===e.length-1||null===i?null:t;break;case"right":a=0===l[0]?null:i;break;case"closest":a=Math.abs(s-e[o])<Math.abs(n-e[o])?t:i;break;default:a=r}return a};t.genId=()=>Math.random().toString(36).substr(2,9).replace(/^\d+/,"");t.preprocess=(e,t,s)=>{const n=[],o=s.nullValues||{},l=s.interpolation;for(let r=0;r<e.length;r++){const s=e[r],a=[];let u,c,d=[],h=null,f=null;for(let e=0;e<s.length;e++){let n=s[e];if(l&&n===l.value)d.push(e);else{if(o[n]&&(n=null),d.length){f=n,c=t[e];for(const e of d)a[e]=i(t,h,f,u||t[0],c||t[t.length-1],e,d,l&&l.type);d=[]}h=n,u=t[e],a.push(n)}}if(f=null,d.length)for(const e of d)a.push(i(t,h,f,u||t[0],c||t[t.length-1],e,d,l&&l.type));n.push(a)}return n};t.exec=(e,...t)=>"function"===typeof e?e(...t):e,t.debounce=function(e,t=300){let i;return(...s)=>{clearTimeout(i),i=setTimeout((()=>e(...s)),t)}};t.px=e=>e+"px";function s(e){return null===e||void 0===e}t.html=(e,t={},i)=>{const s=document.createElement(e);return Object.keys(t).forEach((e=>{const i=t[e];s.setAttribute(e,"object"===typeof i?Object.entries(i).map((([e,t])=>`${e}:${t}`)).join(";"):i)})),i&&("string"===typeof i?s.innerHTML=i:s.appendChild(i)),s},t.get=function(e,t){return t.split(".").reduce(((e,t)=>{var i,s;return null!==(s=null===(i=Object.getOwnPropertyDescriptor(e,t))||void 0===i?void 0:i.value)&&void 0!==s?s:{}}),e)},t.deepIsEqual=function e(t,i){if(typeof t!==typeof i)return!1;if("function"!==typeof t&&"function"!==typeof i||(t=t.toString(),i=i.toString()),"object"!==typeof t||s(t)||s(i))return t===i;const n=t,o=i,l=Object.keys(n),r=Object.keys(o);if(l.length!==r.length)return!1;for(const s of l){if(!o.hasOwnProperty(s))return!1;if(!e(n[s],o[s]))return!1}return!0},t.asFn=function(e){return"function"===typeof e||"undefined"===typeof e?e:()=>e},t.asPlain=function(e){return"function"===typeof e?e():e},t.isNil=s,t.inBetween=function(e,t,i){return e>=t&&e<=i?e:e<t?t:i}},11213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.preventMouseEvents=void 0;t.preventMouseEvents=e=>e.preventDefault()},87102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMixins=void 0,t.applyMixins=function(e,t){const i=[];t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((i=>{Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t.prototype,i)||Object.create(null))})),t.prototype.initMixin&&i.push(t.prototype.initMixin)})),e.prototype.initMixins=function(){i.forEach((e=>e.call(this)))}}},88274:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.pathsRenderer=void 0;const r=l(i(16381)),a=o(i(46976));t.pathsRenderer=function(e,t,i,s){const n=e.series[t],{type:o,interpolation:l}=n;let u;switch(o){case"column":u=r.default.paths.bars&&r.default.paths.bars({size:[a.BARS_DRAW_FACTOR,a.BARS_DRAW_MAX],...e.series[t].renderOptions||{}});break;case"dots":u=()=>null;break;default:switch(l){case"smooth":u=r.default.paths.spline&&r.default.paths.spline();break;case"left":u=r.default.paths.stepped&&r.default.paths.stepped({align:1});break;case"right":u=r.default.paths.stepped&&r.default.paths.stepped({align:-1});break;default:u=r.default.paths.linear&&r.default.paths.linear()}}return u?u(e,t,i,s):null}},81891:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.configureScales=t.niceScale=t.offsetScale=t.getScaleRange=void 0;const s=i(46976),n=i(48643);function o(e,t,i){const n=e>=0&&i.stacking,o=t<=0&&i.stacking;return{min:n?0:Math.round(e-Math.abs(e)*(i.offset||s.DEFAULT_Y_AXIS_OFFSET)),max:o?0:Math.round(t+Math.abs(t)*(i.offset||s.DEFAULT_Y_AXIS_OFFSET))}}function l(e,t,i){const n=e>=0&&i.stacking,o=t<=0&&i.stacking?0:"number"===typeof i.max?i.max:t,l=n?0:"number"===typeof i.min?i.min:e;if(l===o)return l>=0?{min:l,max:l+2}:{min:l-1,max:l+1};const a=r(o-l,!1),u=r(a/(s.DEFAULT_MAX_TICKS-1),!0);let c=Math.ceil(o/u)*u;c=isNaN(c)?100:c;let d=(n?Math.min(0,l):Math.floor(l/u)*u)||0;return d===c&&(d-=1,c+=1),{min:d,max:c}}function r(e,t){const i=Math.floor(Math.log10(e)),s=e/10**i;return(t?s<1.5?1:s<3?2:s<7?5:10:s<=1?1:s<=2?2:s<=5?5:10)*10**i}t.getScaleRange=(e,t)=>{const i=e.range;if("function"===typeof i)return(e,s,n)=>i(e,s,n,t);if(e.normalize)return[0,e.normalizeBase||100];if("auto"===e.range)return;let n;switch(e.range){case void 0:case"nice":n=l;break;case"offset":n=o;break;default:throw new Error(`Unknown scale range type ${e.range}`)}return(i,o,l)=>{let{min:a,max:u}=n(o,l,e,t);const c=e.minRange||s.DEFAULT_SCALE_MIN_RANGE;if(Math.abs(u-a)<c&&(a>=0?u+=c:(u+=c/2,a-=c/2)),a="number"===typeof e.min?e.min:a,u="number"===typeof e.max?e.max:u,"logarithmic"===e.type){const t="number"===typeof e.min;a<=0?a=s.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE:t||(a=Math.min(a,s.DEFAULT_LOGARITHMIC_MIN_SCALE_VALUE))}return(a>=u||u<=a)&&("number"===typeof e.max?a=u-(r(u-.1*u,!1)||1):u=a+(r(a+.1*a,!1)||1)),[a,u]}},t.offsetScale=o,t.niceScale=l,t.configureScales=function(e,i,o){const l=o.scales?{...o.scales}:{};return Object.keys(o.scales).length||(l.y={}),Object.entries(l).forEach((([l,r])=>{i[l]=i[l]||{};const a=i[l];if(l===s.DEFAULT_X_SCALE)return;const u="number"===typeof r.min?r.min:null,c="number"===typeof r.max?r.max:null;if(null!==c&&null!==u){if(c<=u)throw new Error("Invalid scale config. .max should be > .min");a.range=[u,c]}const d="logarithmic"===r.type;if(d)return a.distr=n.Scale.Distr.Logarithmic,void(a.range=(0,t.getScaleRange)(r,o));e.isEmpty?a.range=[null===u?d?1:0:u,null===c?100:c]:a.range=(0,t.getScaleRange)(r,o)})),i.x||(i.x={time:!0}),i}},28265:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.overrideSeriesInUpdate=t.configureSeries=void 0;const l=o(i(46976)),r=i(50497),a=i(20500),u=i(67903),c=i(88274);function d(e,t,i,s){if(void 0!==e[i])return e[i];const n=t.config.chart.series;return n&&i in n?n[i]:s}t.configureSeries=function(e,t,i){var s,n;const o=d(t,e,"type","line"),h={...t,type:o,show:null===(s=t.show)||void 0===s||s,name:t.name||`${e.utils.i18n("series")} ${i+1}`,color:t.color?e.utils.colors.parse(t.color):e.utils.theme.DEFAULT_LINE_COLOR,id:(void 0===t.id?t.name:String(t.id))||(0,r.genId)(),$c:t.data,scale:t.scale||l.DEFAULT_Y_SCALE,count:0,sum:0,avg:0,getFocusedColor:a.getFocusedColor};h.points=h.points||{};const f=(0,a.getSerieFocusColors)(e,"color");return"area"===h.type&&(h.lineColor=e.utils.colors.parse(d(t,e,"lineColor",l.SERIE_AREA_BORDER_COLOR)),h.lineWidth=d(t,e,"lineWidth",l.SERIE_AREA_BORDER_WIDTH),h.fill=f,h.stroke=(0,a.getSerieFocusColors)(e,"lineColor"),h.width=h.lineWidth,h.points.show=u.drawMarkersIfRequired,h.interpolation=d(t,e,"interpolation","linear"),h.spanGaps=d(t,e,"spanGaps",!1)),"line"===h.type&&(h.width=d(t,e,"width",l.SERIE_LINE_WIDTH),h.width=h.width||l.SERIE_LINE_WIDTH,h.stroke=f,h.points.show=u.drawMarkersIfRequired,h.interpolation=d(t,e,"interpolation","linear"),h.spanGaps=d(t,e,"spanGaps",!1)),"column"===h.type&&(h.stroke=f,h.fill=f,h.points.show=!1,h.width=null!==(n=h.width)&&void 0!==n?n:0,h.renderOptions=d(h,e,"renderOptions")),"dots"===h.type&&(h.stroke=()=>h.color,h.fill=f,h.width=2,h.pointsSize=d(h,e,"pointsSize",l.DEFAULT_POINT_SIZE)),h.paths=c.pathsRenderer,h};t.overrideSeriesInUpdate=(e,t)=>{var i,s,n,o,l,r,a,u,c,d,h,f;e.$c=null!==(i=t.$c)&&void 0!==i?i:e.$c,e.show=null!==(s=t.show)&&void 0!==s?s:e.show,e.data=null!==(n=t.data)&&void 0!==n?n:e.data,e.width=null!==(o=t.width)&&void 0!==o?o:e.width,e.pointsSize=null!==(l=t.pointsSize)&&void 0!==l?l:e.pointsSize,e.color=null!==(r=t.color)&&void 0!==r?r:e.color,e.lineColor=null!==(a=t.lineColor)&&void 0!==a?a:e.lineColor,e.lineWidth=null!==(u=t.lineWidth)&&void 0!==u?u:e.lineWidth,e.stroke=null!==(c=t.stroke)&&void 0!==c?c:e.stroke,e.getFocusedColor=null!==(d=t.getFocusedColor)&&void 0!==d?d:e.getFocusedColor,e.formatter=null!==(h=t.formatter)&&void 0!==h?h:e.formatter,e.paths=null!==(f=t.paths)&&void 0!==f?f:e.paths}},48643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Axis=t.Scale=t.DrawOrderKey=void 0,t.DrawOrderKey={Series:"series",Axes:"axes"},t.Scale={Distr:{Linear:1,Ordinal:2,Logarithmic:3,ArcSinh:4,Custom:5}},t.Axis={Side:{Top:0,Right:1,Bottom:2,Left:3},Align:{Right:0,Left:1}}},46343:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||s(t,e,i)},l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=void 0,o(i(89353),t),o(i(98190),t);const a=l(i(46976));t.defaults=a;const u=r(i(37100));"undefined"!==typeof window&&Object.assign(window,{Yagr:u.default}),t.default=u.default},23936:function(e,t,i){var s=this&&this.__createBinding||(Object.create?function(e,t,i,s){void 0===s&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){void 0===s&&(s=i),e[s]=t[i]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&s(t,e,i);return n(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTooltipState=void 0;const r=o(i(59284)),a=l(i(37100));t.default=r.forwardRef((function({id:e,config:t,className:i="",debug:s,onChartLoad:n,onSelect:o,update:l="dynamic"},u){const c=r.useRef(null),d=r.useRef();r.useImperativeHandle(u,(()=>({yagr:()=>d.current,domElement:()=>c.current})));const h=r.useCallback((()=>{if(c.current){t.hooks=t.hooks||{};const e=t.hooks;if(n){const t=e.load||[];t.push((({chart:e,meta:t})=>{n(e,t)})),e.load=t}if(o){const t=e.onSelect||[];t.push((({from:e,to:t})=>o(e,t))),e.onSelect=t}d.current=new a.default(c.current,t)}}),[]);r.useEffect((()=>{var e;t&&(null===(e=d.current)||void 0===e||e.setConfig(t,"hard"===l))}),[t]),r.useEffect((()=>(h(),()=>{var e;null===(e=d.current)||void 0===e||e.dispose(),d.current=void 0})),[]);const f=r.useCallback((e=>{if(d.current&&(e.ctrlKey||e.metaKey)&&e.shiftKey){const e=d.current.toDataUrl().replace("image/png","image/octet-stream"),t=document.createElement("a");t.href=e,t.download=((null===s||void 0===s?void 0:s.filename)||d.current.id)+".png",t.click()}}),[e,d]);return r.createElement("div",{id:e,onClick:f,className:`yagr ${i}`,ref:c})}));t.useTooltipState=(e,t)=>{r.useEffect((()=>{var i;if(!e.current||!t.current)return;const s=t.current,n=e.current.yagr();n&&(null===(i=null===n||void 0===n?void 0:n.plugins)||void 0===i?void 0:i.tooltip)&&(n.plugins.tooltip.on("render",((e,t)=>{s.onChange(t)})),n.plugins.tooltip.on("show",((e,t)=>{s.onChange(t)})),n.plugins.tooltip.on("show",((e,t)=>{s.onChange(t)})))}),[e.current])}},16381:(e,t,i)=>{i.r(t),i.d(t,{default:()=>xs});const s="uplot",n="u-hz",o="u-vt",l="u-title",r="u-wrap",a="u-under",u="u-over",c="u-axis",d="u-off",h="u-select",f="u-cursor-x",p="u-cursor-y",g="u-cursor-pt",m="u-legend",_="u-live",v="u-inline",y="u-series",b="u-marker",w="u-label",E="u-value",S="width",x="height",A="top",T="bottom",O="left",L="right",I="#000",D=I+"0",M="mousemove",k="mousedown",C="mouseup",R="mouseenter",F="mouseleave",P="dblclick",U="change",N="dppxchange",$="--",j="undefined"!=typeof window,X=j?document:null,z=j?window:null,H=j?navigator:null;let Y,B;function V(e,t){if(null!=t){let i=e.classList;!i.contains(t)&&i.add(t)}}function W(e,t){let i=e.classList;i.contains(t)&&i.remove(t)}function G(e,t,i){e.style[t]=i+"px"}function K(e,t,i,s){let n=X.createElement(e);return null!=t&&V(n,t),null!=i&&i.insertBefore(n,s),n}function q(e,t){return K("div",e,t)}const Z=new WeakMap;function J(e,t,i,s,n){let o="translate("+t+"px,"+i+"px)";o!=Z.get(e)&&(e.style.transform=o,Z.set(e,o),t<0||i<0||t>s||i>n?V(e,d):W(e,d))}const Q=new WeakMap;function ee(e,t,i){let s=t+i;s!=Q.get(e)&&(Q.set(e,s),e.style.background=t,e.style.borderColor=i)}const te=new WeakMap;function ie(e,t,i,s){let n=t+""+i;n!=te.get(e)&&(te.set(e,n),e.style.height=i+"px",e.style.width=t+"px",e.style.marginLeft=s?-t/2+"px":0,e.style.marginTop=s?-i/2+"px":0)}const se={passive:!0},ne={...se,capture:!0};function oe(e,t,i,s){t.addEventListener(e,i,s?ne:se)}function le(e,t,i,s){t.removeEventListener(e,i,se)}function re(e,t,i,s){let n;i=i||0;let o=(s=s||t.length-1)<=2147483647;for(;s-i>1;)n=o?i+s>>1:Se((i+s)/2),t[n]<e?i=n:s=n;return e-t[i]<=t[s]-e?i:s}function ae(e,t,i,s){for(let n=1==s?t:i;n>=t&&n<=i;n+=s)if(null!=e[n])return n;return-1}function ue(e,t,i,s){let n=Ie(e),o=Ie(t);e==t&&(-1==n?(e*=i,t/=i):(e/=i,t*=i));let l=10==i?De:Me,r=1==o?Ae:Se,a=(1==n?Se:Ae)(l(Ee(e))),u=r(l(Ee(t))),c=Le(i,a),d=Le(i,u);return 10==i&&(a<0&&(c=Ge(c,-a)),u<0&&(d=Ge(d,-u))),s||2==i?(e=c*n,t=d*o):(e=We(e,c),t=Ve(t,d)),[e,t]}function ce(e,t,i,s){let n=ue(e,t,i,s);return 0==e&&(n[0]=0),0==t&&(n[1]=0),n}j&&function e(){let t=devicePixelRatio;Y!=t&&(Y=t,B&&le(U,B,e),B=matchMedia(`(min-resolution: ${Y-.001}dppx) and (max-resolution: ${Y+.001}dppx)`),oe(U,B,e),z.dispatchEvent(new CustomEvent(N)))}();const de=.1,he={mode:3,pad:de},fe={pad:0,soft:null,mode:0},pe={min:fe,max:fe};function ge(e,t,i,s){return ot(i)?_e(e,t,i):(fe.pad=i,fe.soft=s?0:null,fe.mode=s?3:0,_e(e,t,pe))}function me(e,t){return null==e?t:e}function _e(e,t,i){let s=i.min,n=i.max,o=me(s.pad,0),l=me(n.pad,0),r=me(s.hard,-Re),a=me(n.hard,Re),u=me(s.soft,Re),c=me(n.soft,-Re),d=me(s.mode,0),h=me(n.mode,0),f=t-e,p=De(f),g=Oe(Ee(e),Ee(t)),m=De(g),_=Ee(m-p);(f<1e-24||_>10)&&(f=0,0!=e&&0!=t||(f=1e-24,2==d&&u!=Re&&(o=0),2==h&&c!=-Re&&(l=0)));let v=f||g||1e3,y=De(v),b=Le(10,Se(y)),w=Ge(We(e-v*(0==f?0==e?.1:1:o),b/10),24),E=e>=u&&(1==d||3==d&&w<=u||2==d&&w>=u)?u:Re,S=Oe(r,w<E&&e>=E?E:Te(E,w)),x=Ge(Ve(t+v*(0==f?0==t?.1:1:l),b/10),24),A=t<=c&&(1==h||3==h&&x>=c||2==h&&x<=c)?c:-Re,T=Te(a,x>A&&t<=A?A:Oe(A,x));return S==T&&0==S&&(T=100),[S,T]}const ve=new Intl.NumberFormat(j?H.language:"en-US"),ye=e=>ve.format(e),be=Math,we=be.PI,Ee=be.abs,Se=be.floor,xe=be.round,Ae=be.ceil,Te=be.min,Oe=be.max,Le=be.pow,Ie=be.sign,De=be.log10,Me=be.log2,ke=(e,t=1)=>be.sinh(e)*t,Ce=(e,t=1)=>be.asinh(e/t),Re=1/0;function Fe(e){return 1+(0|De((e^e>>31)-(e>>31)))}function Pe(e,t,i){return Te(Oe(e,t),i)}function Ue(e){return"function"==typeof e?e:()=>e}const Ne=e=>e,$e=(e,t)=>t,je=e=>null,Xe=e=>!0,ze=(e,t)=>e==t,He=/\.\d*?(?=9{6,}|0{6,})/gm,Ye=e=>{if(it(e)||Ke.has(e))return e;const t=`${e}`,i=t.match(He);if(null==i)return e;let s=i[0].length-1;if(-1!=t.indexOf("e-")){let[e,i]=t.split("e");return+`${Ye(e)}e${i}`}return Ge(e,s)};function Be(e,t){return Ye(Ge(Ye(e/t))*t)}function Ve(e,t){return Ye(Ae(Ye(e/t))*t)}function We(e,t){return Ye(Se(Ye(e/t))*t)}function Ge(e,t=0){if(it(e))return e;let i=10**t,s=e*i*(1+Number.EPSILON);return xe(s)/i}const Ke=new Map;function qe(e){return((""+e).split(".")[1]||"").length}function Ze(e,t,i,s){let n=[],o=s.map(qe);for(let l=t;l<i;l++){let t=Ee(l),i=Ge(Le(e,l),t);for(let r=0;r<s.length;r++){let a=10==e?+`${s[r]}e${l}`:s[r]*i,u=(l>=0?0:t)+(l>=o[r]?0:o[r]),c=10==e?a:Ge(a,u);n.push(c),Ke.set(c,u)}}return n}const Je={},Qe=[],et=[null,null],tt=Array.isArray,it=Number.isInteger,st=e=>void 0===e;function nt(e){return"string"==typeof e}function ot(e){let t=!1;if(null!=e){let i=e.constructor;t=null==i||i==Object}return t}function lt(e){return null!=e&&"object"==typeof e}const rt=Object.getPrototypeOf(Uint8Array),at="__proto__";function ut(e,t=ot){let i;if(tt(e)){let s=e.find((e=>null!=e));if(tt(s)||t(s)){i=Array(e.length);for(let s=0;s<e.length;s++)i[s]=ut(e[s],t)}else i=e.slice()}else if(e instanceof rt)i=e.slice();else if(t(e)){i={};for(let s in e)s!=at&&(i[s]=ut(e[s],t))}else i=e;return i}function ct(e){let t=arguments;for(let i=1;i<t.length;i++){let s=t[i];for(let t in s)t!=at&&(ot(e[t])?ct(e[t],ut(s[t])):e[t]=ut(s[t]))}return e}function dt(e,t,i){for(let s,n=0,o=-1;n<t.length;n++){let l=t[n];if(l>o){for(s=l-1;s>=0&&null==e[s];)e[s--]=null;for(s=l+1;s<i&&null==e[s];)e[o=s++]=null}}}const ht="undefined"==typeof queueMicrotask?e=>Promise.resolve().then(e):queueMicrotask;const ft=["January","February","March","April","May","June","July","August","September","October","November","December"],pt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function gt(e){return e.slice(0,3)}const mt=pt.map(gt),_t=ft.map(gt),vt={MMMM:ft,MMM:_t,WWWW:pt,WWW:mt};function yt(e){return(e<10?"0":"")+e}const bt={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>yt(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>yt(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>yt(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return 0==t?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>yt(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>yt(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>{return((t=e.getMilliseconds())<10?"00":t<100?"0":"")+t;var t}};function wt(e,t){t=t||vt;let i,s=[],n=/\{([a-z]+)\}|[^{]+/gi;for(;i=n.exec(e);)s.push("{"==i[0][0]?bt[i[1]]:i[0]);return e=>{let i="";for(let n=0;n<s.length;n++)i+="string"==typeof s[n]?s[n]:s[n](e,t);return i}}const Et=(new Intl.DateTimeFormat).resolvedOptions().timeZone;const St=e=>e%1==0,xt=[1,2,2.5,5],At=Ze(10,-32,0,xt),Tt=Ze(10,0,32,xt),Ot=Tt.filter(St),Lt=At.concat(Tt),It="{YYYY}",Dt="\n"+It,Mt="{M}/{D}",kt="\n"+Mt,Ct=kt+"/{YY}",Rt="{aa}",Ft="{h}:{mm}"+Rt,Pt="\n"+Ft,Ut=":{ss}",Nt=null;function $t(e){let t=1e3*e,i=60*t,s=60*i,n=24*s,o=30*n,l=365*n;return[(1==e?Ze(10,0,3,xt).filter(St):Ze(10,-3,0,xt)).concat([t,5*t,10*t,15*t,30*t,i,5*i,10*i,15*i,30*i,s,2*s,3*s,4*s,6*s,8*s,12*s,n,2*n,3*n,4*n,5*n,6*n,7*n,8*n,9*n,10*n,15*n,o,2*o,3*o,4*o,6*o,l,2*l,5*l,10*l,25*l,50*l,100*l]),[[l,It,Nt,Nt,Nt,Nt,Nt,Nt,1],[28*n,"{MMM}",Dt,Nt,Nt,Nt,Nt,Nt,1],[n,Mt,Dt,Nt,Nt,Nt,Nt,Nt,1],[s,"{h}"+Rt,Ct,Nt,kt,Nt,Nt,Nt,1],[i,Ft,Ct,Nt,kt,Nt,Nt,Nt,1],[t,Ut,Ct+" "+Ft,Nt,kt+" "+Ft,Nt,Pt,Nt,1],[e,Ut+".{fff}",Ct+" "+Ft,Nt,kt+" "+Ft,Nt,Pt,Nt,1]],function(t){return(r,a,u,c,d,h)=>{let f=[],p=d>=l,g=d>=o&&d<l,m=t(u),_=Ge(m*e,3),v=Gt(m.getFullYear(),p?0:m.getMonth(),g||p?1:m.getDate()),y=Ge(v*e,3);if(g||p){let i=g?d/o:0,s=p?d/l:0,n=_==y?_:Ge(Gt(v.getFullYear()+s,v.getMonth()+i,1)*e,3),r=new Date(xe(n/e)),a=r.getFullYear(),u=r.getMonth();for(let o=0;n<=c;o++){let l=Gt(a+s*o,u+i*o,1),r=l-t(Ge(l*e,3));n=Ge((+l+r)*e,3),n<=c&&f.push(n)}}else{let o=d>=n?n:d,l=y+(Se(u)-Se(_))+Ve(_-y,o);f.push(l);let p=t(l),g=p.getHours()+p.getMinutes()/i+p.getSeconds()/s,m=d/s,v=h/r.axes[a]._space;for(;l=Ge(l+d,1==e?0:3),!(l>c);)if(m>1){let e=Se(Ge(g+m,6))%24,i=t(l).getHours()-e;i>1&&(i=-1),l-=i*s,g=(g+m)%24,Ge((l-f[f.length-1])/d,3)*v>=.7&&f.push(l)}else f.push(l)}return f}}]}const[jt,Xt,zt]=$t(1),[Ht,Yt,Bt]=$t(.001);function Vt(e,t){return e.map((e=>e.map(((i,s)=>0==s||8==s||null==i?i:t(1==s||0==e[8]?i:e[1]+i)))))}function Wt(e,t){return(i,s,n,o,l)=>{let r,a,u,c,d,h,f=t.find((e=>l>=e[0]))||t[t.length-1];return s.map((t=>{let i=e(t),s=i.getFullYear(),n=i.getMonth(),o=i.getDate(),l=i.getHours(),p=i.getMinutes(),g=i.getSeconds(),m=s!=r&&f[2]||n!=a&&f[3]||o!=u&&f[4]||l!=c&&f[5]||p!=d&&f[6]||g!=h&&f[7]||f[1];return r=s,a=n,u=o,c=l,d=p,h=g,m(i)}))}}function Gt(e,t,i){return new Date(e,t,i)}function Kt(e,t){return t(e)}Ze(2,-53,53,[1]);const qt="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Zt(e,t){return(i,s,n,o)=>null==o?$:t(e(s))}const Jt={show:!0,live:!0,isolate:!1,mount:()=>{},markers:{show:!0,width:2,stroke:function(e,t){let i=e.series[t];return i.width?i.stroke(e,t):i.points.width?i.points.stroke(e,t):null},fill:function(e,t){return e.series[t].fill(e,t)},dash:"solid"},idx:null,idxs:null,values:[]};const Qt=[0,0];function ei(e,t,i,s=!0){return e=>{0==e.button&&(!s||e.target==t)&&i(e)}}function ti(e,t,i,s=!0){return e=>{(!s||e.target==t)&&i(e)}}const ii={show:!0,x:!0,y:!0,lock:!1,move:function(e,t,i){return Qt[0]=t,Qt[1]=i,Qt},points:{one:!1,show:function(e,t){let i=e.cursor.points,s=q(),n=i.size(e,t);G(s,S,n),G(s,x,n);let o=n/-2;G(s,"marginLeft",o),G(s,"marginTop",o);let l=i.width(e,t,n);return l&&G(s,"borderWidth",l),s},size:function(e,t){return e.series[t].points.size},width:0,stroke:function(e,t){let i=e.series[t].points;return i._stroke||i._fill},fill:function(e,t){let i=e.series[t].points;return i._fill||i._stroke}},bind:{mousedown:ei,mouseup:ei,click:ei,dblclick:ei,mousemove:ti,mouseleave:ti,mouseenter:ti},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,t,i,s,n)=>s-n,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},si={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},ni=ct({},si,{filter:$e}),oi=ct({},ni,{size:10}),li=ct({},si,{show:!1}),ri='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',ai="bold "+ri,ui={show:!0,scale:"x",stroke:I,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:ai,side:2,grid:ni,ticks:oi,border:li,font:ri,lineGap:1.5,rotate:0},ci="Value",di="Time",hi={show:!0,scale:"x",auto:!1,sorted:1,min:Re,max:-Re,idxs:[]};function fi(e,t,i,s,n){return t.map((e=>null==e?"":ye(e)))}function pi(e,t,i,s,n,o,l){let r=[],a=Ke.get(n)||0;for(let u=i=l?i:Ge(Ve(i,n),a);u<=s;u=Ge(u+n,a))r.push(Object.is(u,-0)?0:u);return r}function gi(e,t,i,s,n,o,l){const r=[],a=e.scales[e.axes[t].scale].log,u=Se((10==a?De:Me)(i));n=Le(a,u),10==a&&(n=Lt[re(n,Lt)]);let c=i,d=n*a;10==a&&(d=Lt[re(d,Lt)]);do{r.push(c),c+=n,10!=a||Ke.has(c)||(c=Ge(c,Ke.get(n))),c>=d&&(d=(n=c)*a,10==a&&(d=Lt[re(d,Lt)]))}while(c<=s);return r}function mi(e,t,i,s,n,o,l){let r=e.scales[e.axes[t].scale].asinh,a=s>r?gi(e,t,Oe(r,i),s,n):[r],u=s>=0&&i<=0?[0]:[];return(i<-r?gi(e,t,Oe(r,-s),-i,n):[r]).reverse().map((e=>-e)).concat(u,a)}const _i=/./,vi=/[12357]/,yi=/[125]/,bi=/1/,wi=(e,t,i,s)=>e.map(((e,n)=>4==t&&0==e||n%s==0&&i.test(e.toExponential()[e<0?1:0])?e:null));function Ei(e,t,i,s,n){let o=e.axes[i],l=o.scale,r=e.scales[l],a=e.valToPos,u=o._space,c=a(10,l),d=a(9,l)-c>=u?_i:a(7,l)-c>=u?vi:a(5,l)-c>=u?yi:bi;if(d==bi){let e=Ee(a(1,l)-c);if(e<u)return wi(t.slice().reverse(),r.distr,d,Ae(u/e)).reverse()}return wi(t,r.distr,d,1)}function Si(e,t,i,s,n){let o=e.axes[i],l=o.scale,r=o._space,a=e.valToPos,u=Ee(a(1,l)-a(2,l));return u<r?wi(t.slice().reverse(),3,_i,Ae(r/u)).reverse():t}function xi(e,t,i,s){return null==s?$:null==t?"":ye(t)}const Ai={show:!0,scale:"y",stroke:I,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:ai,side:3,grid:ni,ticks:oi,border:li,font:ri,lineGap:1.5,rotate:0};const Ti={scale:null,auto:!0,sorted:0,min:Re,max:-Re},Oi=(e,t,i,s,n)=>n,Li={show:!0,auto:!0,sorted:0,gaps:Oi,alpha:1,facets:[ct({},Ti,{scale:"x"}),ct({},Ti,{scale:"y"})]},Ii={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Oi,alpha:1,points:{show:function(e,t){let{scale:i,idxs:s}=e.series[0],n=e._data[0],o=e.valToPos(n[s[0]],i,!0),l=e.valToPos(n[s[1]],i,!0),r=Ee(l-o)/(e.series[t].points.space*Y);return s[1]-s[0]<=r},filter:null},values:null,min:Re,max:-Re,idxs:[],path:null,clip:null};function Di(e,t,i,s,n){return i/10}const Mi={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},ki=ct({},Mi,{time:!1,ori:1}),Ci={};function Ri(e,t){let i=Ci[e];return i||(i={key:e,plots:[],sub(e){i.plots.push(e)},unsub(e){i.plots=i.plots.filter((t=>t!=e))},pub(e,t,s,n,o,l,r){for(let a=0;a<i.plots.length;a++)i.plots[a]!=t&&i.plots[a].pub(e,t,s,n,o,l,r)}},null!=e&&(Ci[e]=i)),i}const Fi=1,Pi=2;function Ui(e,t,i){const s=e.mode,n=e.series[t],o=2==s?e._data[t]:e._data,l=e.scales,r=e.bbox;let a=o[0],u=2==s?o[1]:o[t],c=2==s?l[n.facets[0].scale]:l[e.series[0].scale],d=2==s?l[n.facets[1].scale]:l[n.scale],h=r.left,f=r.top,p=r.width,g=r.height,m=e.valToPosH,_=e.valToPosV;return 0==c.ori?i(n,a,u,c,d,m,_,h,f,p,g,Bi,Wi,Ki,Zi,Qi):i(n,a,u,c,d,_,m,f,h,g,p,Vi,Gi,qi,Ji,es)}function Ni(e,t){let i=0,s=0,n=me(e.bands,Qe);for(let o=0;o<n.length;o++){let e=n[o];e.series[0]==t?i=e.dir:e.series[1]==t&&(1==e.dir?s|=1:s|=2)}return[i,1==s?-1:2==s?1:3==s?2:0]}function $i(e,t,i,s,n){let o=e.mode,l=e.series[t],r=2==o?l.facets[1].scale:l.scale,a=e.scales[r];return-1==n?a.min:1==n?a.max:3==a.distr?1==a.dir?a.min:a.max:0}function ji(e,t,i,s,n,o){return Ui(e,t,((e,t,l,r,a,u,c,d,h,f,p)=>{let g=e.pxRound;const m=r.dir*(0==r.ori?1:-1),_=0==r.ori?Wi:Gi;let v,y;1==m?(v=i,y=s):(v=s,y=i);let b=g(u(t[v],r,f,d)),w=g(c(l[v],a,p,h)),E=g(u(t[y],r,f,d)),S=g(c(1==o?a.max:a.min,a,p,h)),x=new Path2D(n);return _(x,E,S),_(x,b,S),_(x,b,w),x}))}function Xi(e,t,i,s,n,o){let l=null;if(e.length>0){l=new Path2D;const r=0==t?Ki:qi;let a=i;for(let t=0;t<e.length;t++){let i=e[t];if(i[1]>i[0]){let e=i[0]-a;e>0&&r(l,a,s,e,s+o),a=i[1]}}let u=i+n-a,c=10;u>0&&r(l,a,s-c/2,u,s+o+c)}return l}function zi(e,t,i,s,n,o,l){let r=[],a=e.length;for(let u=1==n?i:s;u>=i&&u<=s;u+=n){if(null===t[u]){let c=u,d=u;if(1==n)for(;++u<=s&&null===t[u];)d=u;else for(;--u>=i&&null===t[u];)d=u;let h=o(e[c]),f=d==c?h:o(e[d]),p=c-n;h=l<=0&&p>=0&&p<a?o(e[p]):h;let g=d+n;f=l>=0&&g>=0&&g<a?o(e[g]):f,f>=h&&r.push([h,f])}}return r}function Hi(e){return 0==e?Ne:1==e?xe:t=>Be(t,e)}function Yi(e){let t=0==e?Bi:Vi,i=0==e?(e,t,i,s,n,o)=>{e.arcTo(t,i,s,n,o)}:(e,t,i,s,n,o)=>{e.arcTo(i,t,n,s,o)},s=0==e?(e,t,i,s,n)=>{e.rect(t,i,s,n)}:(e,t,i,s,n)=>{e.rect(i,t,n,s)};return(e,n,o,l,r,a=0,u=0)=>{0==a&&0==u?s(e,n,o,l,r):(a=Te(a,l/2,r/2),u=Te(u,l/2,r/2),t(e,n+a,o),i(e,n+l,o,n+l,o+r,a),i(e,n+l,o+r,n,o+r,u),i(e,n,o+r,n,o,u),i(e,n,o,n+l,o,a),e.closePath())}}const Bi=(e,t,i)=>{e.moveTo(t,i)},Vi=(e,t,i)=>{e.moveTo(i,t)},Wi=(e,t,i)=>{e.lineTo(t,i)},Gi=(e,t,i)=>{e.lineTo(i,t)},Ki=Yi(0),qi=Yi(1),Zi=(e,t,i,s,n,o)=>{e.arc(t,i,s,n,o)},Ji=(e,t,i,s,n,o)=>{e.arc(i,t,s,n,o)},Qi=(e,t,i,s,n,o,l)=>{e.bezierCurveTo(t,i,s,n,o,l)},es=(e,t,i,s,n,o,l)=>{e.bezierCurveTo(i,t,n,s,l,o)};function ts(e){return(e,t,i,s,n)=>Ui(e,t,((t,o,l,r,a,u,c,d,h,f,p)=>{let g,m,{pxRound:_,points:v}=t;0==r.ori?(g=Bi,m=Zi):(g=Vi,m=Ji);const y=Ge(v.width*Y,3);let b=(v.size-v.width)/2*Y,w=Ge(2*b,3),E=new Path2D,S=new Path2D,{left:x,top:A,width:T,height:O}=e.bbox;Ki(S,x-w,A-w,T+2*w,O+2*w);const L=e=>{if(null!=l[e]){let t=_(u(o[e],r,f,d)),i=_(c(l[e],a,p,h));g(E,t+b,i),m(E,t,i,b,0,2*we)}};if(n)n.forEach(L);else for(let e=i;e<=s;e++)L(e);return{stroke:y>0?E:null,fill:E,clip:S,flags:Fi|Pi}}))}function is(e){return(t,i,s,n,o,l)=>{s!=n&&(o!=s&&l!=s&&e(t,i,s),o!=n&&l!=n&&e(t,i,n),e(t,i,l))}}const ss=is(Wi),ns=is(Gi);function os(e){const t=me(e?.alignGaps,0);return(e,i,s,n)=>Ui(e,i,((o,l,r,a,u,c,d,h,f,p,g)=>{let m,_,v=o.pxRound,y=e=>v(c(e,a,p,h)),b=e=>v(d(e,u,g,f));0==a.ori?(m=Wi,_=ss):(m=Gi,_=ns);const w=a.dir*(0==a.ori?1:-1),E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Fi},S=E.stroke;let x,A,T,O=Re,L=-Re,I=y(l[1==w?s:n]),D=ae(r,s,n,1*w),M=ae(r,s,n,-1*w),k=y(l[D]),C=y(l[M]),R=!1;for(let e=1==w?s:n;e>=s&&e<=n;e+=w){let t=y(l[e]),i=r[e];t==I?null!=i?(A=b(i),O==Re&&(m(S,t,A),x=A),O=Te(A,O),L=Oe(A,L)):null===i&&(R=!0):(O!=Re&&(_(S,I,O,L,x,A),T=I),null!=i?(A=b(i),m(S,t,A),O=L=x=A):(O=Re,L=-Re,null===i&&(R=!0)),I=t)}O!=Re&&O!=L&&T!=I&&_(S,I,O,L,x,A);let[F,P]=Ni(e,i);if(null!=o.fill||0!=F){let t=E.fill=new Path2D(S),s=b(o.fillTo(e,i,o.min,o.max,F));m(t,C,s),m(t,k,s)}if(!o.spanGaps){let u=[];R&&u.push(...zi(l,r,s,n,w,y,t)),E.gaps=u=o.gaps(e,i,s,n,u),E.clip=Xi(u,a.ori,h,f,p,g)}return 0!=P&&(E.band=2==P?[ji(e,i,s,n,S,-1),ji(e,i,s,n,S,1)]:ji(e,i,s,n,S,P)),E}))}function ls(e,t,i,s,n,o,l=Re){if(e.length>1){let r=null;for(let a=0,u=1/0;a<e.length;a++)if(void 0!==t[a]){if(null!=r){let t=Ee(e[a]-e[r]);t<u&&(u=t,l=Ee(i(e[a],s,n,o)-i(e[r],s,n,o)))}r=a}}return l}function rs(e,t,i,s,n,o){const l=e.length;if(l<2)return null;const r=new Path2D;if(i(r,e[0],t[0]),2==l)s(r,e[1],t[1]);else{let i=Array(l),s=Array(l-1),o=Array(l-1),a=Array(l-1);for(let n=0;n<l-1;n++)o[n]=t[n+1]-t[n],a[n]=e[n+1]-e[n],s[n]=o[n]/a[n];i[0]=s[0];for(let e=1;e<l-1;e++)0===s[e]||0===s[e-1]||s[e-1]>0!==s[e]>0?i[e]=0:(i[e]=3*(a[e-1]+a[e])/((2*a[e]+a[e-1])/s[e-1]+(a[e]+2*a[e-1])/s[e]),isFinite(i[e])||(i[e]=0));i[l-1]=s[l-2];for(let u=0;u<l-1;u++)n(r,e[u]+a[u]/3,t[u]+i[u]*a[u]/3,e[u+1]-a[u]/3,t[u+1]-i[u+1]*a[u]/3,e[u+1],t[u+1])}return r}const as=new Set;function us(){for(let e of as)e.syncRect(!0)}j&&(oe("resize",z,us),oe("scroll",z,us,!0),oe(N,z,(()=>{xs.pxRatio=Y})));const cs=os(),ds=ts();function hs(e,t,i,s){return(s?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map(((e,s)=>fs(e,s,t,i)))}function fs(e,t,i,s){return ct({},0==t?i:s,e)}function ps(e,t,i){return null==t?et:[t,i]}const gs=ps;function ms(e,t,i){return null==t?et:ge(t,i,de,!0)}function _s(e,t,i,s){return null==t?et:ue(t,i,e.scales[s].log,!1)}const vs=_s;function ys(e,t,i,s){return null==t?et:ce(t,i,e.scales[s].log,!1)}const bs=ys;function ws(e,t,i,s,n){let o=Oe(Fe(e),Fe(t)),l=t-e,r=re(n/s*l,i);do{let e=i[r],t=s*e/l;if(t>=n&&o+(e<5?Ke.get(e):0)<=17)return[e,t]}while(++r<i.length);return[0,0]}function Es(e){let t,i;return[e=e.replace(/(\d+)px/,((e,s)=>(t=xe((i=+s)*Y))+"px")),t,i]}function Ss(e){e.show&&[e.font,e.labelFont].forEach((e=>{let t=Ge(e[2]*Y,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t}))}function xs(e,t,i){const I={mode:me(e.mode,1)},U=I.mode;function j(e,t){return((3==t.distr?De(e>0?e:t.clamp(I,e,t.min,t.max,t.key)):4==t.distr?Ce(e,t.asinh):100==t.distr?t.fwd(e):e)-t._min)/(t._max-t._min)}function H(e,t,i,s){let n=j(e,t);return s+i*(-1==t.dir?1-n:n)}function B(e,t,i,s){let n=j(e,t);return s+i*(-1==t.dir?n:1-n)}function Z(e,t,i,s){return 0==t.ori?H(e,t,i,s):B(e,t,i,s)}I.valToPosH=H,I.valToPosV=B;let Q=!1;I.status=0;const te=I.root=q(s);if(null!=e.id&&(te.id=e.id),V(te,e.class),e.title){q(l,te).textContent=e.title}const se=K("canvas"),ne=I.ctx=se.getContext("2d"),ae=q(r,te);oe("click",ae,(e=>{if(e.target===pe){(an!=nn||un!=on)&&vn.click(I,e)}}),!0);const fe=I.under=q(a,ae);ae.appendChild(se);const pe=I.over=q(u,ae),_e=+me((e=ut(e)).pxAlign,1),ve=Hi(_e);(e.plugins||[]).forEach((t=>{t.opts&&(e=t.opts(I,e)||e)}));const ye=e.ms||.001,be=I.series=1==U?hs(e.series||[],hi,Ii,!1):(Se=e.series||[null],Ie=Li,Se.map(((e,t)=>0==t?{}:ct({},Ie,e))));var Se,Ie;const Me=I.axes=hs(e.axes||[],ui,Ai,!0),Fe=I.scales={},Ne=I.bands=e.bands||[];Ne.forEach((e=>{e.fill=Ue(e.fill||null),e.dir=me(e.dir,-1)}));const He=2==U?be[1].facets[0].scale:be[0].scale,Ye={axes:function(){for(let e=0;e<Me.length;e++){let t=Me[e];if(!t.show||!t._show)continue;let i,s,n=t.side,o=n%2,l=t.stroke(I,e),r=0==n||3==n?-1:1;if(t.label){let e=t.labelGap*r,a=xe((t._lpos+e)*Y);Ns(t.labelFont[0],l,"center",2==n?A:T),ne.save(),1==o?(i=s=0,ne.translate(a,xe(_i+yi/2)),ne.rotate((3==n?-we:we)/2)):(i=xe(ai+vi/2),s=a),ne.fillText(t.label,i,s),ne.restore()}let[a,u]=t._found;if(0==u)continue;let c=Fe[t.scale],d=0==o?vi:yi,h=0==o?ai:_i,f=xe(t.gap*Y),p=t._splits,g=2==c.distr?p.map((e=>Cs[e])):p,m=2==c.distr?Cs[p[1]]-Cs[p[0]]:a,_=t.ticks,v=t.border,y=_.show?xe(_.size*Y):0,b=t._rotate*-we/180,w=ve(t._pos*Y),E=w+(y+f)*r;s=0==o?E:0,i=1==o?E:0,Ns(t.font[0],l,1==t.align?O:2==t.align?L:b>0?O:b<0?L:0==o?"center":3==n?L:O,b||1==o?"middle":2==n?A:T);let S=t.font[1]*t.lineGap,x=p.map((e=>ve(Z(e,c,d,h)))),D=t._values;for(let e=0;e<D.length;e++){let t=D[e];if(null!=t){0==o?i=x[e]:s=x[e],t=""+t;let n=-1==t.indexOf("\n")?[t]:t.split(/\n/gm);for(let e=0;e<n.length;e++){let t=n[e];b?(ne.save(),ne.translate(i,s+e*S),ne.rotate(b),ne.fillText(t,0,0),ne.restore()):ne.fillText(t,i,s+e*S)}}}_.show&&Ws(x,_.filter(I,g,e,u,m),o,n,w,y,Ge(_.width*Y,3),_.stroke(I,e),_.dash,_.cap);let M=t.grid;M.show&&Ws(x,M.filter(I,g,e,u,m),o,0==o?2:1,0==o?_i:ai,0==o?yi:vi,Ge(M.width*Y,3),M.stroke(I,e),M.dash,M.cap),v.show&&Ws([w],[1],0==o?1:0,0==o?1:2,1==o?_i:ai,1==o?yi:vi,Ge(v.width*Y,3),v.stroke(I,e),v.dash,v.cap)}eo("drawAxes")},series:function(){ns>0&&(be.forEach(((e,i)=>{if(i>0&&e.show&&(Xs(i,!1),Xs(i,!0),null==e._paths)){ks!=e.alpha&&(ne.globalAlpha=ks=e.alpha);let s=2==U?[0,t[i][0].length-1]:function(e){let t=Pe(os-1,0,ns-1),i=Pe(ls+1,0,ns-1);for(;null==e[t]&&t>0;)t--;for(;null==e[i]&&i<ns-1;)i++;return[t,i]}(t[i]);e._paths=e.paths(I,i,s[0],s[1]),1!=ks&&(ne.globalAlpha=ks=1)}})),be.forEach(((e,t)=>{if(t>0&&e.show){ks!=e.alpha&&(ne.globalAlpha=ks=e.alpha),null!=e._paths&&zs(t,!1);{let i=null!=e._paths?e._paths.gaps:null,s=e.points.show(I,t,os,ls,i),n=e.points.filter(I,t,s,i);(s||n)&&(e.points._paths=e.points.paths(I,t,os,ls,n),zs(t,!0))}1!=ks&&(ne.globalAlpha=ks=1),eo("drawSeries",t)}})))}},Ve=(e.drawOrder||["axes","series"]).map((e=>Ye[e]));function We(t){let i=Fe[t];if(null==i){let s=(e.scales||Je)[t]||Je;if(null!=s.from)We(s.from),Fe[t]=ct({},Fe[s.from],s,{key:t});else{i=Fe[t]=ct({},t==He?Mi:ki,s),i.key=t;let e=i.time,n=i.range,o=tt(n);if((t!=He||2==U&&!e)&&(!o||null!=n[0]&&null!=n[1]||(n={min:null==n[0]?he:{mode:1,hard:n[0],soft:n[0]},max:null==n[1]?he:{mode:1,hard:n[1],soft:n[1]}},o=!1),!o&&ot(n))){let e=n;n=(t,i,s)=>null==i?et:ge(i,s,e)}i.range=Ue(n||(e?gs:t==He?3==i.distr?vs:4==i.distr?bs:ps:3==i.distr?_s:4==i.distr?ys:ms)),i.auto=Ue(!o&&i.auto),i.clamp=Ue(i.clamp||Di),i._min=i._max=null}}}We("x"),We("y"),1==U&&be.forEach((e=>{We(e.scale)})),Me.forEach((e=>{We(e.scale)}));for(let s in e.scales)We(s);const Ze=Fe[He],it=Ze.distr;let rt,at;0==Ze.ori?(V(te,n),rt=H,at=B):(V(te,o),rt=B,at=H);const dt={};for(let s in Fe){let e=Fe[s];null==e.min&&null==e.max||(dt[s]={min:e.min,max:e.max},e.min=e.max=null)}const ft=e.tzDate||(e=>new Date(xe(e/ye))),pt=e.fmtDate||wt,gt=1==ye?zt(ft):Bt(ft),mt=Wt(ft,Vt(1==ye?Xt:Yt,pt)),_t=Zt(ft,Kt(qt,pt)),vt=[],yt=I.legend=ct({},Jt,e.legend),bt=yt.show,Et=yt.markers;let St,xt,At;yt.idxs=vt,Et.width=Ue(Et.width),Et.dash=Ue(Et.dash),Et.stroke=Ue(Et.stroke),Et.fill=Ue(Et.fill);let Tt,It=[],Dt=[],Mt=!1,kt={};if(yt.live){const e=be[1]?be[1].values:null;Mt=null!=e,Tt=Mt?e(I,1,0):{_:0};for(let t in Tt)kt[t]=$}if(bt)if(St=K("table",m,te),At=K("tbody",null,St),yt.mount(I,St),Mt){xt=K("thead",null,St,At);let e=K("tr",null,xt);for(var Ct in K("th",null,e),Tt)K("th",w,e).textContent=Ct}else V(St,v),yt.live&&V(St,_);const Rt={show:!0},Ft={show:!1};const Pt=new Map;function Ut(e,t,i,s=!0){const n=Pt.get(t)||{},o=zi.bind[e](I,t,i,s);o&&(oe(e,t,n[e]=o),Pt.set(t,n))}function Nt(e,t,i){const s=Pt.get(t)||{};for(let n in s)null!=e&&n!=e||(le(n,t,s[n]),delete s[n]);null==e&&Pt.delete(t)}let $t=0,Gt=0,Qt=0,ei=0,ti=0,si=0,ni=ti,oi=si,li=Qt,ri=ei,ai=0,_i=0,vi=0,yi=0;I.bbox={};let bi=!1,wi=!1,Ti=!1,Oi=!1,Ci=!1,Ui=!1;function Ni(e,t,i){(i||e!=I.width||t!=I.height)&&ji(e,t),qs(!1),Ti=!0,wi=!0,pn()}function ji(e,t){I.width=$t=Qt=e,I.height=Gt=ei=t,ti=si=0,function(){let e=!1,t=!1,i=!1,s=!1;Me.forEach(((n,o)=>{if(n.show&&n._show){let{side:o,_size:l}=n,r=o%2,a=l+(null!=n.label?n.labelSize:0);a>0&&(r?(Qt-=a,3==o?(ti+=a,s=!0):i=!0):(ei-=a,0==o?(si+=a,e=!0):t=!0))}})),es[0]=e,es[1]=i,es[2]=t,es[3]=s,Qt-=ss[1]+ss[3],ti+=ss[3],ei-=ss[2]+ss[0],si+=ss[0]}(),function(){let e=ti+Qt,t=si+ei,i=ti,s=si;function n(n,o){switch(n){case 1:return e+=o,e-o;case 2:return t+=o,t-o;case 3:return i-=o,i+o;case 0:return s-=o,s+o}}Me.forEach(((e,t)=>{if(e.show&&e._show){let t=e.side;e._pos=n(t,e._size),null!=e.label&&(e._lpos=n(t,e.labelSize))}}))}();let i=I.bbox;ai=i.left=Be(ti*Y,.5),_i=i.top=Be(si*Y,.5),vi=i.width=Be(Qt*Y,.5),yi=i.height=Be(ei*Y,.5)}const Xi=3;I.setSize=function({width:e,height:t}){Ni(e,t)};const zi=I.cursor=ct({},ii,{drag:{y:2==U}},e.cursor);if(null==zi.dataIdx){let e=zi.hover,i=e.skip=new Set(e.skip??[]);i.add(void 0);let s=e.prox=Ue(e.prox),n=e.bias??=0;zi.dataIdx=(e,o,l,r)=>{if(0==o)return l;let a=l,u=s(e,o,l,r)??Re,c=u>=0&&u<Re,d=0==Ze.ori?Qt:ei,h=zi.left,f=t[0],p=t[o];if(i.has(p[l])){a=null;let e,t=null,s=null;if(0==n||-1==n)for(e=l;null==t&&e-- >0;)i.has(p[e])||(t=e);if(0==n||1==n)for(e=l;null==s&&e++<p.length;)i.has(p[e])||(s=e);if(null!=t||null!=s)if(c){let e=h-(null==t?-1/0:rt(f[t],Ze,d,0)),i=(null==s?1/0:rt(f[s],Ze,d,0))-h;e<=i?e<=u&&(a=t):i<=u&&(a=s)}else a=null==s?t:null==t?s:l-t<=s-l?t:s}else if(c){Ee(h-rt(f[l],Ze,d,0))>u&&(a=null)}return a}}const Yi=e=>{zi.event=e};zi.idxs=vt,zi._lock=!1;let Bi=zi.points;Bi.show=Ue(Bi.show),Bi.size=Ue(Bi.size),Bi.stroke=Ue(Bi.stroke),Bi.width=Ue(Bi.width),Bi.fill=Ue(Bi.fill);const Vi=I.focus=ct({},e.focus||{alpha:.3},zi.focus),Wi=Vi.prox>=0,Gi=Wi&&Bi.one;let Ki=[],qi=[],Zi=[];function Ji(e,t){let i=Bi.show(I,t);if(i)return V(i,g),V(i,e.class),J(i,-10,-10,Qt,ei),pe.insertBefore(i,Ki[t]),i}function Qi(e,t){if(1==U||t>0){let t=1==U&&Fe[e.scale].time,i=e.value;e.value=t?nt(i)?Zt(ft,Kt(i,pt)):i||_t:i||xi,e.label=e.label||(t?di:ci)}if(Gi||t>0){e.width=null==e.width?1:e.width,e.paths=e.paths||cs||je,e.fillTo=Ue(e.fillTo||$i),e.pxAlign=+me(e.pxAlign,_e),e.pxRound=Hi(e.pxAlign),e.stroke=Ue(e.stroke||null),e.fill=Ue(e.fill||null),e._stroke=e._fill=e._paths=e._focus=null;let t=Ge((3+2*(Oe(1,e.width)||1))*1,3),i=e.points=ct({},{size:t,width:Oe(1,.2*t),stroke:e.stroke,space:2*t,paths:ds,_stroke:null,_fill:null},e.points);i.show=Ue(i.show),i.filter=Ue(i.filter),i.fill=Ue(i.fill),i.stroke=Ue(i.stroke),i.paths=Ue(i.paths),i.pxAlign=e.pxAlign}if(bt){let i=function(e,t){if(0==t&&(Mt||!yt.live||2==U))return et;let i=[],s=K("tr",y,At,At.childNodes[t]);V(s,e.class),e.show||V(s,d);let n=K("th",null,s);if(Et.show){let e=q(b,n);if(t>0){let i=Et.width(I,t);i&&(e.style.border=i+"px "+Et.dash(I,t)+" "+Et.stroke(I,t)),e.style.background=Et.fill(I,t)}}let o=q(w,n);for(var l in o.textContent=e.label,t>0&&(Et.show||(o.style.color=e.width>0?Et.stroke(I,t):Et.fill(I,t)),Ut("click",n,(t=>{if(zi._lock)return;Yi(t);let i=be.indexOf(e);if((t.ctrlKey||t.metaKey)!=yt.isolate){let e=be.some(((e,t)=>t>0&&t!=i&&e.show));be.forEach(((t,s)=>{s>0&&An(s,e?s==i?Rt:Ft:Rt,!0,io.setSeries)}))}else An(i,{show:!e.show},!0,io.setSeries)}),!1),Wi&&Ut(R,n,(t=>{zi._lock||(Yi(t),An(be.indexOf(e),In,!0,io.setSeries))}),!1)),Tt){let e=K("td",E,s);e.textContent="--",i.push(e)}return[s,i]}(e,t);It.splice(t,0,i[0]),Dt.splice(t,0,i[1]),yt.values.push(null)}if(zi.show){vt.splice(t,0,null);let i=null;Gi?0==t&&(i=Ji(e,t)):t>0&&(i=Ji(e,t)),Ki.splice(t,0,i),qi.splice(t,0,0),Zi.splice(t,0,0)}eo("addSeries",t)}I.addSeries=function(e,t){t=null==t?be.length:t,e=1==U?fs(e,t,hi,Ii):fs(e,t,{},Li),be.splice(t,0,e),Qi(be[t],t)},I.delSeries=function(e){if(be.splice(e,1),bt){yt.values.splice(e,1),Dt.splice(e,1);let t=It.splice(e,1)[0];Nt(null,t.firstChild),t.remove()}zi.show&&(vt.splice(e,1),Ki.splice(e,1)[0].remove(),qi.splice(e,1),Zi.splice(e,1)),eo("delSeries",e)};const es=[!1,!1,!1,!1];function ts(e,t,i,s){let[n,o,l,r]=i,a=t%2,u=0;return 0==a&&(r||o)&&(u=0==t&&!n||2==t&&!l?xe(ui.size/3):0),1==a&&(n||l)&&(u=1==t&&!o||3==t&&!r?xe(Ai.size/2):0),u}const is=I.padding=(e.padding||[ts,ts,ts,ts]).map((e=>Ue(me(e,ts)))),ss=I._padding=is.map(((e,t)=>e(I,t,es,0)));let ns,os=null,ls=null;const rs=1==U?be[0].idxs:null;let us,xs,As,Ts,Os,Ls,Is,Ds,Ms,ks,Cs=null,Rs=!1;function Fs(e,i){if(t=null==e?[]:e,I.data=I._data=t,2==U){ns=0;for(let e=1;e<be.length;e++)ns+=t[e][0].length}else{0==t.length&&(I.data=I._data=t=[[]]),Cs=t[0],ns=Cs.length;let e=t;if(2==it){e=t.slice();let i=e[0]=Array(ns);for(let e=0;e<ns;e++)i[e]=e}I._data=t=e}if(qs(!0),eo("setData"),2==it&&(Ti=!0),!1!==i){let e=Ze;e.auto(I,Rs)?Ps():xn(He,e.min,e.max),Oi=Oi||zi.left>=0,Ui=!0,pn()}}function Ps(){let e,i;Rs=!0,1==U&&(ns>0?(os=rs[0]=0,ls=rs[1]=ns-1,e=t[0][os],i=t[0][ls],2==it?(e=os,i=ls):e==i&&(3==it?[e,i]=ue(e,e,Ze.log,!1):4==it?[e,i]=ce(e,e,Ze.log,!1):Ze.time?i=e+xe(86400/ye):[e,i]=ge(e,i,de,!0))):(os=rs[0]=e=null,ls=rs[1]=i=null)),xn(He,e,i)}function Us(e,t,i,s,n,o){e??=D,i??=Qe,s??="butt",n??=D,o??="round",e!=us&&(ne.strokeStyle=us=e),n!=xs&&(ne.fillStyle=xs=n),t!=As&&(ne.lineWidth=As=t),o!=Os&&(ne.lineJoin=Os=o),s!=Ls&&(ne.lineCap=Ls=s),i!=Ts&&ne.setLineDash(Ts=i)}function Ns(e,t,i,s){t!=xs&&(ne.fillStyle=xs=t),e!=Is&&(ne.font=Is=e),i!=Ds&&(ne.textAlign=Ds=i),s!=Ms&&(ne.textBaseline=Ms=s)}function $s(e,t,i,s,n=0){if(s.length>0&&e.auto(I,Rs)&&(null==t||null==t.min)){let t=me(os,0),o=me(ls,s.length-1),l=null==i.min?3==e.distr?function(e,t,i){let s=Re,n=-Re;for(let o=t;o<=i;o++){let t=e[o];null!=t&&t>0&&(t<s&&(s=t),t>n&&(n=t))}return[s,n]}(s,t,o):function(e,t,i,s){let n=Re,o=-Re;if(1==s)n=e[t],o=e[i];else if(-1==s)n=e[i],o=e[t];else for(let l=t;l<=i;l++){let t=e[l];null!=t&&(t<n&&(n=t),t>o&&(o=t))}return[n,o]}(s,t,o,n):[i.min,i.max];e.min=Te(e.min,i.min=l[0]),e.max=Oe(e.max,i.max=l[1])}}I.setData=Fs;const js={min:null,max:null};function Xs(e,t){let i=t?be[e].points:be[e];i._stroke=i.stroke(I,e),i._fill=i.fill(I,e)}function zs(e,i){let s=i?be[e].points:be[e],{stroke:n,fill:o,clip:l,flags:r,_stroke:a=s._stroke,_fill:u=s._fill,_width:c=s.width}=s._paths;c=Ge(c*Y,3);let d=null,h=c%2/2;i&&null==u&&(u=c>0?"#fff":a);let f=1==s.pxAlign&&h>0;if(f&&ne.translate(h,h),!i){let e=ai-c/2,t=_i-c/2,i=vi+c,s=yi+c;d=new Path2D,d.rect(e,t,i,s)}i?Ys(a,c,s.dash,s.cap,u,n,o,r,l):function(e,i,s,n,o,l,r,a,u,c,d){let h=!1;0!=u&&Ne.forEach(((f,p)=>{if(f.series[0]==e){let e,g=be[f.series[1]],m=t[f.series[1]],_=(g._paths||Je).band;tt(_)&&(_=1==f.dir?_[0]:_[1]);let v=null;g.show&&_&&function(e,t,i){for(t=me(t,0),i=me(i,e.length-1);t<=i;){if(null!=e[t])return!0;t++}return!1}(m,os,ls)?(v=f.fill(I,p)||l,e=g._paths.clip):_=null,Ys(i,s,n,o,v,r,a,u,c,d,e,_),h=!0}})),h||Ys(i,s,n,o,l,r,a,u,c,d)}(e,a,c,s.dash,s.cap,u,n,o,r,d,l),f&&ne.translate(-h,-h)}const Hs=Fi|Pi;function Ys(e,t,i,s,n,o,l,r,a,u,c,d){Us(e,t,i,s,n),(a||u||d)&&(ne.save(),a&&ne.clip(a),u&&ne.clip(u)),d?(r&Hs)==Hs?(ne.clip(d),c&&ne.clip(c),Vs(n,l),Bs(e,o,t)):r&Pi?(Vs(n,l),ne.clip(d),Bs(e,o,t)):r&Fi&&(ne.save(),ne.clip(d),c&&ne.clip(c),Vs(n,l),ne.restore(),Bs(e,o,t)):(Vs(n,l),Bs(e,o,t)),(a||u||d)&&ne.restore()}function Bs(e,t,i){i>0&&(t instanceof Map?t.forEach(((e,t)=>{ne.strokeStyle=us=t,ne.stroke(e)})):null!=t&&e&&ne.stroke(t))}function Vs(e,t){t instanceof Map?t.forEach(((e,t)=>{ne.fillStyle=xs=t,ne.fill(e)})):null!=t&&e&&ne.fill(t)}function Ws(e,t,i,s,n,o,l,r,a,u){let c=l%2/2;1==_e&&ne.translate(c,c),Us(r,l,a,u,r),ne.beginPath();let d,h,f,p,g=n+(0==s||3==s?-o:o);0==i?(h=n,p=g):(d=n,f=g);for(let m=0;m<e.length;m++)null!=t[m]&&(0==i?d=f=e[m]:h=p=e[m],ne.moveTo(d,h),ne.lineTo(f,p));ne.stroke(),1==_e&&ne.translate(-c,-c)}function Gs(e){let t=!0;return Me.forEach(((i,s)=>{if(!i.show)return;let n=Fe[i.scale];if(null==n.min)return void(i._show&&(t=!1,i._show=!1,qs(!1)));i._show||(t=!1,i._show=!0,qs(!1));let o=i.side,l=o%2,{min:r,max:a}=n,[u,c]=function(e,t,i,s){let n,o=Me[e];if(s<=0)n=[0,0];else{let l=o._space=o.space(I,e,t,i,s);n=ws(t,i,o._incrs=o.incrs(I,e,t,i,s,l),s,l)}return o._found=n}(s,r,a,0==l?Qt:ei);if(0==c)return;let d=2==n.distr,h=i._splits=i.splits(I,s,r,a,u,c,d),f=2==n.distr?h.map((e=>Cs[e])):h,p=2==n.distr?Cs[h[1]]-Cs[h[0]]:u,g=i._values=i.values(I,i.filter(I,f,s,c,p),s,c,p);i._rotate=2==o?i.rotate(I,g,s,c):0;let m=i._size;i._size=Ae(i.size(I,g,s,e)),null!=m&&i._size!=m&&(t=!1)})),t}function Ks(e){let t=!0;return is.forEach(((i,s)=>{let n=i(I,s,es,e);n!=ss[s]&&(t=!1),ss[s]=n})),t}function qs(e){be.forEach(((t,i)=>{i>0&&(t._paths=null,e&&(1==U?(t.min=null,t.max=null):t.facets.forEach((e=>{e.min=null,e.max=null}))))}))}let Zs,Js,Qs,en,tn,sn,nn,on,ln,rn,an,un,cn=!1,dn=!1,hn=[];function fn(){dn=!1;for(let e=0;e<hn.length;e++)eo(...hn[e]);hn.length=0}function pn(){cn||(ht(gn),cn=!0)}function gn(){if(bi&&(!function(){for(let t in Fe){let e=Fe[t];null==dt[t]&&(null==e.min||null!=dt[He]&&e.auto(I,Rs))&&(dt[t]=js)}for(let t in Fe){let e=Fe[t];null==dt[t]&&null!=e.from&&null!=dt[e.from]&&(dt[t]=js)}null!=dt[He]&&qs(!0);let e={};for(let t in dt){let i=dt[t];if(null!=i){let s=e[t]=ut(Fe[t],lt);if(null!=i.min)ct(s,i);else if(t!=He||2==U)if(0==ns&&null==s.from){let e=s.range(I,null,null,t);s.min=e[0],s.max=e[1]}else s.min=Re,s.max=-Re}}if(ns>0){be.forEach(((i,s)=>{if(1==U){let n=i.scale,o=dt[n];if(null==o)return;let l=e[n];if(0==s){let e=l.range(I,l.min,l.max,n);l.min=e[0],l.max=e[1],os=re(l.min,t[0]),ls=re(l.max,t[0]),ls-os>1&&(t[0][os]<l.min&&os++,t[0][ls]>l.max&&ls--),i.min=Cs[os],i.max=Cs[ls]}else i.show&&i.auto&&$s(l,o,i,t[s],i.sorted);i.idxs[0]=os,i.idxs[1]=ls}else if(s>0&&i.show&&i.auto){let[n,o]=i.facets,l=n.scale,r=o.scale,[a,u]=t[s],c=e[l],d=e[r];null!=c&&$s(c,dt[l],n,a,n.sorted),null!=d&&$s(d,dt[r],o,u,o.sorted),i.min=o.min,i.max=o.max}}));for(let t in e){let i=e[t],s=dt[t];if(null==i.from&&(null==s||null==s.min)){let e=i.range(I,i.min==Re?null:i.min,i.max==-Re?null:i.max,t);i.min=e[0],i.max=e[1]}}}for(let t in e){let i=e[t];if(null!=i.from){let s=e[i.from];if(null==s.min)i.min=i.max=null;else{let e=i.range(I,s.min,s.max,t);i.min=e[0],i.max=e[1]}}}let i={},s=!1;for(let t in e){let n=e[t],o=Fe[t];if(o.min!=n.min||o.max!=n.max){o.min=n.min,o.max=n.max;let e=o.distr;o._min=3==e?De(o.min):4==e?Ce(o.min,o.asinh):100==e?o.fwd(o.min):o.min,o._max=3==e?De(o.max):4==e?Ce(o.max,o.asinh):100==e?o.fwd(o.max):o.max,i[t]=s=!0}}if(s){be.forEach(((e,t)=>{2==U?t>0&&i.y&&(e._paths=null):i[e.scale]&&(e._paths=null)}));for(let e in i)Ti=!0,eo("setScale",e);zi.show&&zi.left>=0&&(Oi=Ui=!0)}for(let t in dt)dt[t]=null}(),bi=!1),Ti&&(!function(){let e=!1,t=0;for(;!e;){t++;let i=Gs(t),s=Ks(t);e=t==Xi||i&&s,e||(ji(I.width,I.height),wi=!0)}}(),Ti=!1),wi){if(G(fe,O,ti),G(fe,A,si),G(fe,S,Qt),G(fe,x,ei),G(pe,O,ti),G(pe,A,si),G(pe,S,Qt),G(pe,x,ei),G(ae,S,$t),G(ae,x,Gt),se.width=xe($t*Y),se.height=xe(Gt*Y),Me.forEach((({_el:e,_show:t,_size:i,_pos:s,side:n})=>{if(null!=e)if(t){let t=n%2==1;G(e,t?"left":"top",s-(3===n||0===n?i:0)),G(e,t?"width":"height",i),G(e,t?"top":"left",t?si:ti),G(e,t?"height":"width",t?ei:Qt),W(e,d)}else V(e,d)})),us=xs=As=Os=Ls=Is=Ds=Ms=Ts=null,ks=1,$n(!0),ti!=ni||si!=oi||Qt!=li||ei!=ri){qs(!1);let e=Qt/li,t=ei/ri;if(zi.show&&!Oi&&zi.left>=0){zi.left*=e,zi.top*=t,Qs&&J(Qs,xe(zi.left),0,Qt,ei),en&&J(en,0,xe(zi.top),Qt,ei);for(let i=0;i<Ki.length;i++){let s=Ki[i];null!=s&&(qi[i]*=e,Zi[i]*=t,J(s,Ae(qi[i]),Ae(Zi[i]),Qt,ei))}}if(wn.show&&!Ci&&wn.left>=0&&wn.width>0){wn.left*=e,wn.width*=e,wn.top*=t,wn.height*=t;for(let e in zn)G(En,e,wn[e])}ni=ti,oi=si,li=Qt,ri=ei}eo("setSize"),wi=!1}$t>0&&Gt>0&&(ne.clearRect(0,0,se.width,se.height),eo("drawClear"),Ve.forEach((e=>e())),eo("draw")),wn.show&&Ci&&(Sn(wn),Ci=!1),zi.show&&Oi&&(Un(null,!0,!1),Oi=!1),yt.show&&yt.live&&Ui&&(Fn(),Ui=!1),Q||(Q=!0,I.status=1,eo("ready")),Rs=!1,cn=!1}function mn(e,i){let s=Fe[e];if(null==s.from){if(0==ns){let t=s.range(I,i.min,i.max,e);i.min=t[0],i.max=t[1]}if(i.min>i.max){let e=i.min;i.min=i.max,i.max=e}if(ns>1&&null!=i.min&&null!=i.max&&i.max-i.min<1e-16)return;e==He&&2==s.distr&&ns>0&&(i.min=re(i.min,t[0]),i.max=re(i.max,t[0]),i.min==i.max&&i.max++),dt[e]=i,bi=!0,pn()}}I.batch=function(e,t=!1){cn=!0,dn=t,e(I),gn(),t&&hn.length>0&&queueMicrotask(fn)},I.redraw=(e,t)=>{Ti=t||!1,!1!==e?xn(He,Ze.min,Ze.max):pn()},I.setScale=mn;let _n=!1;const vn=zi.drag;let yn=vn.x,bn=vn.y;zi.show&&(zi.x&&(Zs=q(f,pe)),zi.y&&(Js=q(p,pe)),0==Ze.ori?(Qs=Zs,en=Js):(Qs=Js,en=Zs),an=zi.left,un=zi.top);const wn=I.select=ct({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),En=wn.show?q(h,wn.over?pe:fe):null;function Sn(e,t){if(wn.show){for(let t in e)wn[t]=e[t],t in zn&&G(En,t,e[t]);!1!==t&&eo("setSelect")}}function xn(e,t,i){mn(e,{min:t,max:i})}function An(e,t,i,s){null!=t.focus&&function(e){if(e!=Ln){let t=null==e,i=1!=Vi.alpha;be.forEach(((s,n)=>{if(1==U||n>0){let o=t||0==n||n==e;s._focus=t?null:o,i&&function(e,t){be[e].alpha=t,zi.show&&Ki[e]&&(Ki[e].style.opacity=t);bt&&It[e]&&(It[e].style.opacity=t)}(n,o?1:Vi.alpha)}})),Ln=e,i&&pn()}}(e),null!=t.show&&be.forEach(((i,s)=>{s>0&&(e==s||null==e)&&(i.show=t.show,function(e){let t=be[e],i=bt?It[e]:null;t.show?i&&W(i,d):(i&&V(i,d),J(Gi?Ki[0]:Ki[e],-10,-10,Qt,ei))}(s,t.show),2==U?(xn(i.facets[0].scale,null,null),xn(i.facets[1].scale,null,null)):xn(i.scale,null,null),pn())})),!1!==i&&eo("setSeries",e,t),s&&oo("setSeries",I,e,t)}let Tn,On,Ln;I.setSelect=Sn,I.setSeries=An,I.addBand=function(e,t){e.fill=Ue(e.fill||null),e.dir=me(e.dir,-1),t=null==t?Ne.length:t,Ne.splice(t,0,e)},I.setBand=function(e,t){ct(Ne[e],t)},I.delBand=function(e){null==e?Ne.length=0:Ne.splice(e,1)};const In={focus:!0};function Dn(e,t,i){let s=Fe[t];i&&(e=e/Y-(1==s.ori?si:ti));let n=Qt;1==s.ori&&(n=ei,e=n-e),-1==s.dir&&(e=n-e);let o=s._min,l=o+(s._max-o)*(e/n),r=s.distr;return 3==r?Le(10,l):4==r?ke(l,s.asinh):100==r?s.bwd(l):l}function Mn(e,t){G(En,O,wn.left=e),G(En,S,wn.width=t)}function kn(e,t){G(En,A,wn.top=e),G(En,x,wn.height=t)}bt&&Wi&&Ut(F,St,(e=>{zi._lock||(Yi(e),null!=Ln&&An(null,In,!0,io.setSeries))})),I.valToIdx=e=>re(e,t[0]),I.posToIdx=function(e,i){return re(Dn(e,He,i),t[0],os,ls)},I.posToVal=Dn,I.valToPos=(e,t,i)=>0==Fe[t].ori?H(e,Fe[t],i?vi:Qt,i?ai:0):B(e,Fe[t],i?yi:ei,i?_i:0),I.setCursor=(e,t,i)=>{an=e.left,un=e.top,Un(null,t,i)};let Cn=0==Ze.ori?Mn:kn,Rn=1==Ze.ori?Mn:kn;function Fn(e,t){if(null!=e&&(e.idxs?e.idxs.forEach(((e,t)=>{vt[t]=e})):st(e.idx)||vt.fill(e.idx),yt.idx=vt[0]),bt&&yt.live){for(let e=0;e<be.length;e++)(e>0||1==U&&!Mt)&&Pn(e,vt[e]);!function(){if(bt&&yt.live)for(let e=2==U?1:0;e<be.length;e++){if(0==e&&Mt)continue;let t=yt.values[e],i=0;for(let s in t)Dt[e][i++].firstChild.nodeValue=t[s]}}()}Ui=!1,!1!==t&&eo("setLegend")}function Pn(e,i){let s,n=be[e],o=0==e&&2==it?Cs:t[e];Mt?s=n.values(I,e,i)??kt:(s=n.value(I,null==i?null:o[i],e,i),s=null==s?kt:{_:s}),yt.values[e]=s}function Un(e,i,s){let n;ln=an,rn=un,[an,un]=zi.move(I,an,un),zi.left=an,zi.top=un,zi.show&&(Qs&&J(Qs,xe(an),0,Qt,ei),en&&J(en,0,xe(un),Qt,ei));let o=os>ls;Tn=Re,On=null;let l=0==Ze.ori?Qt:ei,r=1==Ze.ori?Qt:ei;if(an<0||0==ns||o){n=zi.idx=null;for(let e=0;e<be.length;e++){let t=Ki[e];null!=t&&J(t,-10,-10,Qt,ei)}Wi&&An(null,In,!0,null==e&&io.setSeries),yt.live&&(vt.fill(n),Ui=!0)}else{let e,i,s;1==U&&(e=0==Ze.ori?an:un,i=Dn(e,He),n=zi.idx=re(i,t[0],os,ls),s=rt(t[0][n],Ze,l,0));let o=-10,a=-10,u=0,c=0,d=!0,h="",f="";for(let p=2==U?1:0;p<be.length;p++){let e=be[p],g=vt[p],m=null==g?null:1==U?t[p][g]:t[p][1][g],_=zi.dataIdx(I,p,n,i),v=null==_?null:1==U?t[p][_]:t[p][1][_];Ui=Ui||v!=m||_!=g,vt[p]=_;let y=_==n?s:rt(1==U?t[0][_]:t[p][0][_],Ze,l,0);if(p>0&&e.show){let t=null==v?-10:at(v,1==U?Fe[e.scale]:Fe[e.facets[1].scale],r,0);if(Wi&&null!=v){let i=1==Ze.ori?an:un,s=Ee(Vi.dist(I,p,_,t,i));if(s<Tn){let t=Vi.bias;if(0!=t){let n=Dn(i,e.scale),o=n>=0?1:-1;o==(v>=0?1:-1)&&(1==o?1==t?v>=n:v<=n:1==t?v<=n:v>=n)&&(Tn=s,On=p)}else Tn=s,On=p}}if(Ui||Gi){let e,i;0==Ze.ori?(e=y,i=t):(e=t,i=y);let s,n,l,r,g,m,_=!0,v=Bi.bbox;if(null!=v){_=!1;let e=v(I,p);l=e.left,r=e.top,s=e.width,n=e.height}else l=e,r=i,s=n=Bi.size(I,p);if(m=Bi.fill(I,p),g=Bi.stroke(I,p),Gi)p==On&&Tn<=Vi.prox&&(o=l,a=r,u=s,c=n,d=_,h=m,f=g);else{let e=Ki[p];null!=e&&(qi[p]=l,Zi[p]=r,ie(e,s,n,_),ee(e,m,g),J(e,Ae(l),Ae(r),Qt,ei))}}}}if(Gi){let e=Vi.prox;if(Ui||(null==Ln?Tn<=e:Tn>e||On!=Ln)){let e=Ki[0];qi[0]=o,Zi[0]=a,ie(e,u,c,d),ee(e,h,f),J(e,Ae(o),Ae(a),Qt,ei)}}}if(wn.show&&_n)if(null!=e){let[t,i]=io.scales,[s,n]=io.match,[o,a]=e.cursor.sync.scales,u=e.cursor.drag;if(yn=u._x,bn=u._y,yn||bn){let u,c,d,h,f,{left:p,top:g,width:m,height:_}=e.select,v=e.scales[o].ori,y=e.posToVal,b=null!=t&&s(t,o),w=null!=i&&n(i,a);b&&yn?(0==v?(u=p,c=m):(u=g,c=_),d=Fe[t],h=rt(y(u,o),d,l,0),f=rt(y(u+c,o),d,l,0),Cn(Te(h,f),Ee(f-h))):Cn(0,l),w&&bn?(1==v?(u=p,c=m):(u=g,c=_),d=Fe[i],h=at(y(u,a),d,r,0),f=at(y(u+c,a),d,r,0),Rn(Te(h,f),Ee(f-h))):Rn(0,r)}else Hn()}else{let e=Ee(ln-tn),t=Ee(rn-sn);if(1==Ze.ori){let i=e;e=t,t=i}yn=vn.x&&e>=vn.dist,bn=vn.y&&t>=vn.dist;let i,s,n=vn.uni;null!=n?yn&&bn&&(yn=e>=n,bn=t>=n,yn||bn||(t>e?bn=!0:yn=!0)):vn.x&&vn.y&&(yn||bn)&&(yn=bn=!0),yn&&(0==Ze.ori?(i=nn,s=an):(i=on,s=un),Cn(Te(i,s),Ee(s-i)),bn||Rn(0,r)),bn&&(1==Ze.ori?(i=nn,s=an):(i=on,s=un),Rn(Te(i,s),Ee(s-i)),yn||Cn(0,l)),yn||bn||(Cn(0,0),Rn(0,0))}if(vn._x=yn,vn._y=bn,null==e){if(s){if(null!=so){let[e,t]=io.scales;io.values[0]=null!=e?Dn(0==Ze.ori?an:un,e):null,io.values[1]=null!=t?Dn(1==Ze.ori?an:un,t):null}oo(M,I,an,un,Qt,ei,n)}if(Wi){let e=s&&io.setSeries,t=Vi.prox;null==Ln?Tn<=t&&An(On,In,!0,e):Tn>t?An(null,In,!0,e):On!=Ln&&An(On,In,!0,e)}}Ui&&(yt.idx=n,Fn()),!1!==i&&eo("setCursor")}I.setLegend=Fn;let Nn=null;function $n(e=!1){e?Nn=null:(Nn=pe.getBoundingClientRect(),eo("syncRect",Nn))}function jn(e,t,i,s,n,o,l){zi._lock||_n&&null!=e&&0==e.movementX&&0==e.movementY||(Xn(e,t,i,s,n,o,l,!1,null!=e),null!=e?Un(null,!0,!0):Un(t,!0,!1))}function Xn(e,t,i,s,n,o,l,r,a){if(null==Nn&&$n(!1),Yi(e),null!=e)i=e.clientX-Nn.left,s=e.clientY-Nn.top;else{if(i<0||s<0)return an=-10,void(un=-10);let[e,l]=io.scales,r=t.cursor.sync,[a,u]=r.values,[c,d]=r.scales,[h,f]=io.match,p=t.axes[0].side%2==1,g=0==Ze.ori?Qt:ei,m=1==Ze.ori?Qt:ei,_=p?o:n,v=p?n:o,y=p?s:i,b=p?i:s;if(i=null!=c?h(e,c)?Z(a,Fe[e],g,0):-10:g*(y/_),s=null!=d?f(l,d)?Z(u,Fe[l],m,0):-10:m*(b/v),1==Ze.ori){let e=i;i=s,s=e}}a&&((i<=1||i>=Qt-1)&&(i=Be(i,Qt)),(s<=1||s>=ei-1)&&(s=Be(s,ei))),r?(tn=i,sn=s,[nn,on]=zi.move(I,i,s)):(an=i,un=s)}Object.defineProperty(I,"rect",{get:()=>(null==Nn&&$n(!1),Nn)});const zn={width:0,height:0,left:0,top:0};function Hn(){Sn(zn,!1)}let Yn,Bn,Vn,Wn;function Gn(e,t,i,s,n,o,l){_n=!0,yn=bn=vn._x=vn._y=!1,Xn(e,t,i,s,n,o,0,!0,!1),null!=e&&(Ut(C,X,Kn,!1),oo(k,I,nn,on,Qt,ei,null));let{left:r,top:a,width:u,height:c}=wn;Yn=r,Bn=a,Vn=u,Wn=c,Hn()}function Kn(e,t,i,s,n,o,l){_n=vn._x=vn._y=!1,Xn(e,t,i,s,n,o,0,!1,!0);let{left:r,top:a,width:u,height:c}=wn,d=u>0||c>0,h=Yn!=r||Bn!=a||Vn!=u||Wn!=c;if(d&&h&&Sn(wn),vn.setScale&&d&&h){let e=r,t=u,i=a,s=c;if(1==Ze.ori&&(e=a,t=c,i=r,s=u),yn&&xn(He,Dn(e,He),Dn(e+t,He)),bn)for(let n in Fe){let e=Fe[n];n!=He&&null==e.from&&e.min!=Re&&xn(n,Dn(i+s,n),Dn(i,n))}Hn()}else zi.lock&&(zi._lock=!zi._lock,Un(null,!0,!1));null!=e&&(Nt(C,X),oo(C,I,an,un,Qt,ei,null))}function qn(e,t,i,s,n,o,l){zi._lock||(Yi(e),Ps(),Hn(),null!=e&&oo(P,I,an,un,Qt,ei,null))}function Zn(){Me.forEach(Ss),Ni(I.width,I.height,!0)}oe(N,z,Zn);const Jn={};Jn.mousedown=Gn,Jn.mousemove=jn,Jn.mouseup=Kn,Jn.dblclick=qn,Jn.setSeries=(e,t,i,s)=>{-1!=(i=(0,io.match[2])(I,t,i))&&An(i,s,!0,!1)},zi.show&&(Ut(k,pe,Gn),Ut(M,pe,jn),Ut(R,pe,(e=>{Yi(e),$n(!1)})),Ut(F,pe,(function(e,t,i,s,n,o,l){if(zi._lock)return;Yi(e);let r=_n;if(_n){let e,t,i=!0,s=!0,n=10;0==Ze.ori?(e=yn,t=bn):(e=bn,t=yn),e&&t&&(i=an<=n||an>=Qt-n,s=un<=n||un>=ei-n),e&&i&&(an=an<nn?0:Qt),t&&s&&(un=un<on?0:ei),Un(null,!0,!0),_n=!1}an=-10,un=-10,Un(null,!0,!0),r&&(_n=r)})),Ut(P,pe,qn),as.add(I),I.syncRect=$n);const Qn=I.hooks=e.hooks||{};function eo(e,t,i){dn?hn.push([e,t,i]):e in Qn&&Qn[e].forEach((e=>{e.call(null,I,t,i)}))}(e.plugins||[]).forEach((e=>{for(let t in e.hooks)Qn[t]=(Qn[t]||[]).concat(e.hooks[t])}));const to=(e,t,i)=>i,io=ct({key:null,setSeries:!1,filters:{pub:Xe,sub:Xe},scales:[He,be[1]?be[1].scale:null],match:[ze,ze,to],values:[null,null]},zi.sync);2==io.match.length&&io.match.push(to),zi.sync=io;const so=io.key,no=Ri(so);function oo(e,t,i,s,n,o,l){io.filters.pub(e,t,i,s,n,o,l)&&no.pub(e,t,i,s,n,o,l)}function lo(){eo("init",e,t),Fs(t||e.data,!1),dt[He]?mn(He,dt[He]):Ps(),Ci=wn.show&&(wn.width>0||wn.height>0),Oi=Ui=!0,Ni(e.width,e.height)}return no.sub(I),I.pub=function(e,t,i,s,n,o,l){io.filters.sub(e,t,i,s,n,o,l)&&Jn[e](null,t,i,s,n,o,l)},I.destroy=function(){no.unsub(I),as.delete(I),Pt.clear(),le(N,z,Zn),te.remove(),St?.remove(),eo("destroy")},be.forEach(Qi),Me.forEach((function(e,t){if(e._show=e.show,e.show){let i=e.side%2,s=Fe[e.scale];null==s&&(e.scale=i?be[1].scale:He,s=Fe[e.scale]);let n=s.time;e.size=Ue(e.size),e.space=Ue(e.space),e.rotate=Ue(e.rotate),tt(e.incrs)&&e.incrs.forEach((e=>{!Ke.has(e)&&Ke.set(e,qe(e))})),e.incrs=Ue(e.incrs||(2==s.distr?Ot:n?1==ye?jt:Ht:Lt)),e.splits=Ue(e.splits||(n&&1==s.distr?gt:3==s.distr?gi:4==s.distr?mi:pi)),e.stroke=Ue(e.stroke),e.grid.stroke=Ue(e.grid.stroke),e.ticks.stroke=Ue(e.ticks.stroke),e.border.stroke=Ue(e.border.stroke);let o=e.values;e.values=tt(o)&&!tt(o[0])?Ue(o):n?tt(o)?Wt(ft,Vt(o,pt)):nt(o)?function(e,t){let i=wt(t);return(t,s,n,o,l)=>s.map((t=>i(e(t))))}(ft,o):o||mt:o||fi,e.filter=Ue(e.filter||(s.distr>=3&&10==s.log?Ei:3==s.distr&&2==s.log?Si:$e)),e.font=Es(e.font),e.labelFont=Es(e.labelFont),e._size=e.size(I,null,t,0),e._space=e._rotate=e._incrs=e._found=e._splits=e._values=null,e._size>0&&(es[t]=!0,e._el=q(c,ae))}})),i?i instanceof HTMLElement?(i.appendChild(te),lo()):i(I,lo):lo(),I}xs.assign=ct,xs.fmtNum=ye,xs.rangeNum=ge,xs.rangeLog=ue,xs.rangeAsinh=ce,xs.orient=Ui,xs.pxRatio=Y,xs.join=function(e,t){if(function(e){let t=e[0][0],i=t.length;for(let s=1;s<e.length;s++){let n=e[s][0];if(n.length!=i)return!1;if(n!=t)for(let e=0;e<i;e++)if(n[e]!=t[e])return!1}return!0}(e)){let t=e[0].slice();for(let i=1;i<e.length;i++)t.push(...e[i].slice(1));return function(e,t=100){const i=e.length;if(i<=1)return!0;let s=0,n=i-1;for(;s<=n&&null==e[s];)s++;for(;n>=s&&null==e[n];)n--;if(n<=s)return!0;const o=Oe(1,Se((n-s+1)/t));for(let l=e[s],r=s+o;r<=n;r+=o){const t=e[r];if(null!=t){if(t<=l)return!1;l=t}}return!0}(t[0])||(t=function(e){let t=e[0],i=t.length,s=Array(i);for(let o=0;o<s.length;o++)s[o]=o;s.sort(((e,i)=>t[e]-t[i]));let n=[];for(let o=0;o<e.length;o++){let t=e[o],l=Array(i);for(let e=0;e<i;e++)l[e]=t[s[e]];n.push(l)}return n}(t)),t}let i=new Set;for(let l=0;l<e.length;l++){let t=e[l][0],s=t.length;for(let e=0;e<s;e++)i.add(t[e])}let s=[Array.from(i).sort(((e,t)=>e-t))],n=s[0].length,o=new Map;for(let l=0;l<n;l++)o.set(s[0][l],l);for(let l=0;l<e.length;l++){let i=e[l],r=i[0];for(let e=1;e<i.length;e++){let a=i[e],u=Array(n).fill(void 0),c=t?t[l][e]:1,d=[];for(let e=0;e<a.length;e++){let t=a[e],i=o.get(r[e]);null===t?0!=c&&(u[i]=t,2==c&&d.push(i)):u[i]=t}dt(u,d,n),s.push(u)}}return s},xs.fmtDate=wt,xs.tzDate=function(e,t){let i;return"UTC"==t||"Etc/UTC"==t?i=new Date(+e+6e4*e.getTimezoneOffset()):t==Et?i=e:(i=new Date(e.toLocaleString("en-US",{timeZone:t})),i.setMilliseconds(e.getMilliseconds())),i},xs.sync=Ri;{xs.addGap=function(e,t,i){let s=e[e.length-1];s&&s[0]==t?s[1]=i:e.push([t,i])},xs.clipGaps=Xi;let e=xs.paths={points:ts};e.linear=os,e.stepped=function(e){const t=me(e.align,1),i=me(e.ascDesc,!1),s=me(e.alignGaps,0),n=me(e.extend,!1);return(e,o,l,r)=>Ui(e,o,((a,u,c,d,h,f,p,g,m,_,v)=>{let y=a.pxRound,{left:b,width:w}=e.bbox,E=e=>y(f(e,d,_,g)),S=e=>y(p(e,h,v,m)),x=0==d.ori?Wi:Gi;const A={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Fi},T=A.stroke,O=d.dir*(0==d.ori?1:-1);l=ae(c,l,r,1),r=ae(c,l,r,-1);let L=S(c[1==O?l:r]),I=E(u[1==O?l:r]),D=I,M=I;n&&-1==t&&(M=b,x(T,M,L)),x(T,I,L);for(let e=1==O?l:r;e>=l&&e<=r;e+=O){let i=c[e];if(null==i)continue;let s=E(u[e]),n=S(i);1==t?x(T,s,L):x(T,D,n),x(T,s,n),L=n,D=s}let k=D;n&&1==t&&(k=b+w,x(T,k,L));let[C,R]=Ni(e,o);if(null!=a.fill||0!=C){let t=A.fill=new Path2D(T),i=S(a.fillTo(e,o,a.min,a.max,C));x(t,k,i),x(t,M,i)}if(!a.spanGaps){let n=[];n.push(...zi(u,c,l,r,O,E,s));let h=a.width*Y/2,f=i||1==t?h:-h,p=i||-1==t?-h:h;n.forEach((e=>{e[0]+=f,e[1]+=p})),A.gaps=n=a.gaps(e,o,l,r,n),A.clip=Xi(n,d.ori,g,m,_,v)}return 0!=R&&(A.band=2==R?[ji(e,o,l,r,T,-1),ji(e,o,l,r,T,1)]:ji(e,o,l,r,T,R)),A}))},e.bars=function(e){const t=me((e=e||Je).size,[.6,Re,1]),i=e.align||0,s=e.gap||0;let n=e.radius;n=null==n?[0,0]:"number"==typeof n?[n,0]:n;const o=Ue(n),l=1-t[0],r=me(t[1],Re),a=me(t[2],1),u=me(e.disp,Je),c=me(e.each,(e=>{})),{fill:d,stroke:h}=u;return(e,t,n,f)=>Ui(e,t,((p,g,m,_,v,y,b,w,E,S,x)=>{let A,T,O=p.pxRound,L=i,I=s*Y,D=r*Y,M=a*Y;0==_.ori?[A,T]=o(e,t):[T,A]=o(e,t);const k=_.dir*(0==_.ori?1:-1);let C,R,F,P=0==_.ori?Ki:qi,U=0==_.ori?c:(e,t,i,s,n,o,l)=>{c(e,t,i,n,s,l,o)},N=me(e.bands,Qe).find((e=>e.series[0]==t)),$=null!=N?N.dir:0,j=p.fillTo(e,t,p.min,p.max,$),X=O(b(j,v,x,E)),z=S,H=O(p.width*Y),B=!1,V=null,W=null,G=null,K=null;null==d||0!=H&&null==h||(B=!0,V=d.values(e,t,n,f),W=new Map,new Set(V).forEach((e=>{null!=e&&W.set(e,new Path2D)})),H>0&&(G=h.values(e,t,n,f),K=new Map,new Set(G).forEach((e=>{null!=e&&K.set(e,new Path2D)}))));let{x0:q,size:Z}=u;if(null!=q&&null!=Z){L=1,g=q.values(e,t,n,f),2==q.unit&&(g=g.map((t=>e.posToVal(w+t*S,_.key,!0))));let i=Z.values(e,t,n,f);R=2==Z.unit?i[0]*S:y(i[0],_,S,w)-y(0,_,S,w),z=ls(g,m,y,_,S,w,z),F=z-R+I}else z=ls(g,m,y,_,S,w,z),F=z*l+I,R=z-F;F<1&&(F=0),H>=R/2&&(H=0),F<5&&(O=Ne);let J=F>0;R=O(Pe(z-F-(J?H:0),M,D)),C=(0==L?R/2:L==k?0:R)-L*k*((0==L?I/2:0)+(J?H/2:0));const Q={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},ee=B?null:new Path2D;let te=null;if(null!=N)te=e.data[N.series[1]];else{let{y0:i,y1:s}=u;null!=i&&null!=s&&(m=s.values(e,t,n,f),te=i.values(e,t,n,f))}let ie=A*R,se=T*R;for(let i=1==k?n:f;i>=n&&i<=f;i+=k){let s=m[i];if(null==s)continue;if(null!=te){let e=te[i]??0;if(s-e==0)continue;X=b(e,v,x,E)}let n=y(2!=_.distr||null!=u?g[i]:i,_,S,w),o=b(me(s,j),v,x,E),l=O(n-C),r=O(Oe(o,X)),a=O(Te(o,X)),c=r-a;if(null!=s){let n=s<0?se:ie,o=s<0?ie:se;B?(H>0&&null!=G[i]&&P(K.get(G[i]),l,a+Se(H/2),R,Oe(0,c-H),n,o),null!=V[i]&&P(W.get(V[i]),l,a+Se(H/2),R,Oe(0,c-H),n,o)):P(ee,l,a+Se(H/2),R,Oe(0,c-H),n,o),U(e,t,i,l-H/2,a,R+H,c)}}return H>0?Q.stroke=B?K:ee:B||(Q._fill=0==p.width?p._fill:p._stroke??p._fill,Q.width=0),Q.fill=B?W:ee,Q}))},e.spline=function(e){return function(e,t){const i=me(t?.alignGaps,0);return(t,s,n,o)=>Ui(t,s,((l,r,a,u,c,d,h,f,p,g,m)=>{let _,v,y,b=l.pxRound,w=e=>b(d(e,u,g,f)),E=e=>b(h(e,c,m,p));0==u.ori?(_=Bi,y=Wi,v=Qi):(_=Vi,y=Gi,v=es);const S=u.dir*(0==u.ori?1:-1);n=ae(a,n,o,1),o=ae(a,n,o,-1);let x=w(r[1==S?n:o]),A=x,T=[],O=[];for(let e=1==S?n:o;e>=n&&e<=o;e+=S)if(null!=a[e]){let t=w(r[e]);T.push(A=t),O.push(E(a[e]))}const L={stroke:e(T,O,_,y,v,b),fill:null,clip:null,band:null,gaps:null,flags:Fi},I=L.stroke;let[D,M]=Ni(t,s);if(null!=l.fill||0!=D){let e=L.fill=new Path2D(I),i=E(l.fillTo(t,s,l.min,l.max,D));y(e,A,i),y(e,x,i)}if(!l.spanGaps){let e=[];e.push(...zi(r,a,n,o,S,w,i)),L.gaps=e=l.gaps(t,s,n,o,e),L.clip=Xi(e,u.ori,f,p,g,m)}return 0!=M&&(L.band=2==M?[ji(t,s,n,o,I,-1),ji(t,s,n,o,I,1)]:ji(t,s,n,o,I,M)),L}))}(rs,e)}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2016.397296b7.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2016.397296b7.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/2016.397296b7.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/2016.397296b7.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/2042.81e83eeb.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2042.81e83eeb.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/2042.81e83eeb.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/2042.81e83eeb.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/2162.cca3e026.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2162.cca3e026.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/2162.cca3e026.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/2162.cca3e026.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/2182.1e53f745.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2182.1e53f745.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/2182.1e53f745.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/2182.1e53f745.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/225.cf362439.chunk.js b/ydb/core/viewer/monitoring/static/js/225.cf362439.chunk.js new file mode 100644 index 00000000000..f2bbb1e6b2f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/225.cf362439.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 225.cf362439.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[225],{70225:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>Wt,DefinitionAdapter:()=>Zt,DiagnosticsAdapter:()=>Ot,DocumentColorAdapter:()=>ln,DocumentFormattingEditProvider:()=>un,DocumentHighlightAdapter:()=>Jt,DocumentLinkAdapter:()=>sn,DocumentRangeFormattingEditProvider:()=>cn,DocumentSymbolAdapter:()=>rn,FoldingRangeAdapter:()=>gn,HoverAdapter:()=>qt,ReferenceAdapter:()=>tn,RenameAdapter:()=>nn,SelectionRangeAdapter:()=>fn,WorkerManager:()=>Nt,fromPosition:()=>Ht,fromRange:()=>Xt,setupMode:()=>hn,toRange:()=>zt,toTextEdit:()=>Bt});var r,i,o=n(80781),a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of u(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g,f,h,p,m,v,b,_,k,y,w,x,I,E,C,A,S,R,L,T,M,D,P,F,j,N,U,V,O,K,W,H,X,z,$,B,q,Q,G,J,Y,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,de,le,ge,fe,he,pe,me,ve,be,_e,ke,ye,we,xe,Ie,Ee,Ce,Ae,Se,Re,Le,Te,Me,De,Pe,Fe,je,Ne,Ue,Ve,Oe,Ke,We,He,Xe,ze,$e,Be,qe,Qe,Ge,Je,Ye,Ze,et,tt,nt,rt,it,ot,at,st,ut,ct,dt,lt,gt,ft,ht,pt,mt,vt,bt,_t,kt,yt,wt,xt,It,Et,Ct,At,St,Rt,Lt,Tt,Mt,Dt,Pt,Ft,jt,Nt=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(g||(g={})).is=function(e){return"string"===typeof e},(f||(f={})).is=function(e){return"string"===typeof e},(p=h||(h={})).MIN_VALUE=-2147483648,p.MAX_VALUE=2147483647,p.is=function(e){return"number"===typeof e&&p.MIN_VALUE<=e&&e<=p.MAX_VALUE},(v=m||(m={})).MIN_VALUE=0,v.MAX_VALUE=2147483647,v.is=function(e){return"number"===typeof e&&v.MIN_VALUE<=e&&e<=v.MAX_VALUE},(_=b||(b={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=m.MAX_VALUE),t===Number.MAX_VALUE&&(t=m.MAX_VALUE),{line:e,character:t}},_.is=function(e){let t=e;return Ut.objectLiteral(t)&&Ut.uinteger(t.line)&&Ut.uinteger(t.character)},(y=k||(k={})).create=function(e,t,n,r){if(Ut.uinteger(e)&&Ut.uinteger(t)&&Ut.uinteger(n)&&Ut.uinteger(r))return{start:b.create(e,t),end:b.create(n,r)};if(b.is(e)&&b.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},y.is=function(e){let t=e;return Ut.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)},(x=w||(w={})).create=function(e,t){return{uri:e,range:t}},x.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&(Ut.string(t.uri)||Ut.undefined(t.uri))},(E=I||(I={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},E.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.targetRange)&&Ut.string(t.targetUri)&&k.is(t.targetSelectionRange)&&(k.is(t.originSelectionRange)||Ut.undefined(t.originSelectionRange))},(A=C||(C={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},A.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.numberRange(t.red,0,1)&&Ut.numberRange(t.green,0,1)&&Ut.numberRange(t.blue,0,1)&&Ut.numberRange(t.alpha,0,1)},(R=S||(S={})).create=function(e,t){return{range:e,color:t}},R.is=function(e){const t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&C.is(t.color)},(T=L||(L={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},T.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.label)&&(Ut.undefined(t.textEdit)||B.is(t))&&(Ut.undefined(t.additionalTextEdits)||Ut.typedArray(t.additionalTextEdits,B.is))},(D=M||(M={})).Comment="comment",D.Imports="imports",D.Region="region",(F=P||(P={})).create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return Ut.defined(n)&&(a.startCharacter=n),Ut.defined(r)&&(a.endCharacter=r),Ut.defined(i)&&(a.kind=i),Ut.defined(o)&&(a.collapsedText=o),a},F.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.uinteger(t.startLine)&&Ut.uinteger(t.startLine)&&(Ut.undefined(t.startCharacter)||Ut.uinteger(t.startCharacter))&&(Ut.undefined(t.endCharacter)||Ut.uinteger(t.endCharacter))&&(Ut.undefined(t.kind)||Ut.string(t.kind))},(N=j||(j={})).create=function(e,t){return{location:e,message:t}},N.is=function(e){let t=e;return Ut.defined(t)&&w.is(t.location)&&Ut.string(t.message)},(V=U||(U={})).Error=1,V.Warning=2,V.Information=3,V.Hint=4,(K=O||(O={})).Unnecessary=1,K.Deprecated=2,(W||(W={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.href)},(X=H||(H={})).create=function(e,t,n,r,i,o){let a={range:e,message:t};return Ut.defined(n)&&(a.severity=n),Ut.defined(r)&&(a.code=r),Ut.defined(i)&&(a.source=i),Ut.defined(o)&&(a.relatedInformation=o),a},X.is=function(e){var t;let n=e;return Ut.defined(n)&&k.is(n.range)&&Ut.string(n.message)&&(Ut.number(n.severity)||Ut.undefined(n.severity))&&(Ut.integer(n.code)||Ut.string(n.code)||Ut.undefined(n.code))&&(Ut.undefined(n.codeDescription)||Ut.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ut.string(n.source)||Ut.undefined(n.source))&&(Ut.undefined(n.relatedInformation)||Ut.typedArray(n.relatedInformation,j.is))},($=z||(z={})).create=function(e,t,...n){let r={title:e,command:t};return Ut.defined(n)&&n.length>0&&(r.arguments=n),r},$.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.title)&&Ut.string(t.command)},(q=B||(B={})).replace=function(e,t){return{range:e,newText:t}},q.insert=function(e,t){return{range:{start:e,end:e},newText:t}},q.del=function(e){return{range:e,newText:""}},q.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.newText)&&k.is(t.range)},(G=Q||(Q={})).create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},G.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.label)&&(Ut.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ut.string(t.description)||void 0===t.description)},(J||(J={})).is=function(e){const t=e;return Ut.string(t)},(Z=Y||(Y={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Z.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Z.del=function(e,t){return{range:e,newText:"",annotationId:t}},Z.is=function(e){const t=e;return B.is(t)&&(Q.is(t.annotationId)||J.is(t.annotationId))},(te=ee||(ee={})).create=function(e,t){return{textDocument:e,edits:t}},te.is=function(e){let t=e;return Ut.defined(t)&&fe.is(t.textDocument)&&Array.isArray(t.edits)},(re=ne||(ne={})).create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},re.is=function(e){let t=e;return t&&"create"===t.kind&&Ut.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ut.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ut.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},oe.is=function(e){let t=e;return t&&"rename"===t.kind&&Ut.string(t.oldUri)&&Ut.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ut.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ut.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(se=ae||(ae={})).create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},se.is=function(e){let t=e;return t&&"delete"===t.kind&&Ut.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ut.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ut.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(ue||(ue={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Ut.string(e.kind)?ne.is(e)||ie.is(e)||ae.is(e):ee.is(e))))},(de=ce||(ce={})).create=function(e){return{uri:e}},de.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)},(ge=le||(le={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&Ut.integer(t.version)},(he=fe||(fe={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&(null===t.version||Ut.integer(t.version))},(me=pe||(pe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},me.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&Ut.string(t.languageId)&&Ut.integer(t.version)&&Ut.string(t.text)},(be=ve||(ve={})).PlainText="plaintext",be.Markdown="markdown",be.is=function(e){const t=e;return t===be.PlainText||t===be.Markdown},(_e||(_e={})).is=function(e){const t=e;return Ut.objectLiteral(e)&&ve.is(t.kind)&&Ut.string(t.value)},(ye=ke||(ke={})).Text=1,ye.Method=2,ye.Function=3,ye.Constructor=4,ye.Field=5,ye.Variable=6,ye.Class=7,ye.Interface=8,ye.Module=9,ye.Property=10,ye.Unit=11,ye.Value=12,ye.Enum=13,ye.Keyword=14,ye.Snippet=15,ye.Color=16,ye.File=17,ye.Reference=18,ye.Folder=19,ye.EnumMember=20,ye.Constant=21,ye.Struct=22,ye.Event=23,ye.Operator=24,ye.TypeParameter=25,(xe=we||(we={})).PlainText=1,xe.Snippet=2,(Ie||(Ie={})).Deprecated=1,(Ce=Ee||(Ee={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Ce.is=function(e){const t=e;return t&&Ut.string(t.newText)&&k.is(t.insert)&&k.is(t.replace)},(Se=Ae||(Ae={})).asIs=1,Se.adjustIndentation=2,(Re||(Re={})).is=function(e){const t=e;return t&&(Ut.string(t.detail)||void 0===t.detail)&&(Ut.string(t.description)||void 0===t.description)},(Le||(Le={})).create=function(e){return{label:e}},(Te||(Te={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(De=Me||(Me={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},De.is=function(e){const t=e;return Ut.string(t)||Ut.objectLiteral(t)&&Ut.string(t.language)&&Ut.string(t.value)},(Pe||(Pe={})).is=function(e){let t=e;return!!t&&Ut.objectLiteral(t)&&(_e.is(t.contents)||Me.is(t.contents)||Ut.typedArray(t.contents,Me.is))&&(void 0===e.range||k.is(e.range))},(Fe||(Fe={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(je||(je={})).create=function(e,t,...n){let r={label:e};return Ut.defined(t)&&(r.documentation=t),Ut.defined(n)?r.parameters=n:r.parameters=[],r},(Ue=Ne||(Ne={})).Text=1,Ue.Read=2,Ue.Write=3,(Ve||(Ve={})).create=function(e,t){let n={range:e};return Ut.number(t)&&(n.kind=t),n},(Ke=Oe||(Oe={})).File=1,Ke.Module=2,Ke.Namespace=3,Ke.Package=4,Ke.Class=5,Ke.Method=6,Ke.Property=7,Ke.Field=8,Ke.Constructor=9,Ke.Enum=10,Ke.Interface=11,Ke.Function=12,Ke.Variable=13,Ke.Constant=14,Ke.String=15,Ke.Number=16,Ke.Boolean=17,Ke.Array=18,Ke.Object=19,Ke.Key=20,Ke.Null=21,Ke.EnumMember=22,Ke.Struct=23,Ke.Event=24,Ke.Operator=25,Ke.TypeParameter=26,(We||(We={})).Deprecated=1,(He||(He={})).create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(Xe||(Xe={})).create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}},($e=ze||(ze={})).create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},$e.is=function(e){let t=e;return t&&Ut.string(t.name)&&Ut.number(t.kind)&&k.is(t.range)&&k.is(t.selectionRange)&&(void 0===t.detail||Ut.string(t.detail))&&(void 0===t.deprecated||Ut.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(qe=Be||(Be={})).Empty="",qe.QuickFix="quickfix",qe.Refactor="refactor",qe.RefactorExtract="refactor.extract",qe.RefactorInline="refactor.inline",qe.RefactorRewrite="refactor.rewrite",qe.Source="source",qe.SourceOrganizeImports="source.organizeImports",qe.SourceFixAll="source.fixAll",(Ge=Qe||(Qe={})).Invoked=1,Ge.Automatic=2,(Ye=Je||(Je={})).create=function(e,t,n){let r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r},Ye.is=function(e){let t=e;return Ut.defined(t)&&Ut.typedArray(t.diagnostics,H.is)&&(void 0===t.only||Ut.typedArray(t.only,Ut.string))&&(void 0===t.triggerKind||t.triggerKind===Qe.Invoked||t.triggerKind===Qe.Automatic)},(et=Ze||(Ze={})).create=function(e,t,n){let r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):z.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},et.is=function(e){let t=e;return t&&Ut.string(t.title)&&(void 0===t.diagnostics||Ut.typedArray(t.diagnostics,H.is))&&(void 0===t.kind||Ut.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||z.is(t.command))&&(void 0===t.isPreferred||Ut.boolean(t.isPreferred))&&(void 0===t.edit||ue.is(t.edit))},(nt=tt||(tt={})).create=function(e,t){let n={range:e};return Ut.defined(t)&&(n.data=t),n},nt.is=function(e){let t=e;return Ut.defined(t)&&k.is(t.range)&&(Ut.undefined(t.command)||z.is(t.command))},(it=rt||(rt={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},it.is=function(e){let t=e;return Ut.defined(t)&&Ut.uinteger(t.tabSize)&&Ut.boolean(t.insertSpaces)},(at=ot||(ot={})).create=function(e,t,n){return{range:e,target:t,data:n}},at.is=function(e){let t=e;return Ut.defined(t)&&k.is(t.range)&&(Ut.undefined(t.target)||Ut.string(t.target))},(ut=st||(st={})).create=function(e,t){return{range:e,parent:t}},ut.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&(void 0===t.parent||ut.is(t.parent))},(dt=ct||(ct={})).namespace="namespace",dt.type="type",dt.class="class",dt.enum="enum",dt.interface="interface",dt.struct="struct",dt.typeParameter="typeParameter",dt.parameter="parameter",dt.variable="variable",dt.property="property",dt.enumMember="enumMember",dt.event="event",dt.function="function",dt.method="method",dt.macro="macro",dt.keyword="keyword",dt.modifier="modifier",dt.comment="comment",dt.string="string",dt.number="number",dt.regexp="regexp",dt.operator="operator",dt.decorator="decorator",(gt=lt||(lt={})).declaration="declaration",gt.definition="definition",gt.readonly="readonly",gt.static="static",gt.deprecated="deprecated",gt.abstract="abstract",gt.async="async",gt.modification="modification",gt.documentation="documentation",gt.defaultLibrary="defaultLibrary",(ft||(ft={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(pt=ht||(ht={})).create=function(e,t){return{range:e,text:t}},pt.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&Ut.string(t.text)},(vt=mt||(mt={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},vt.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&Ut.boolean(t.caseSensitiveLookup)&&(Ut.string(t.variableName)||void 0===t.variableName)},(_t=bt||(bt={})).create=function(e,t){return{range:e,expression:t}},_t.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&(Ut.string(t.expression)||void 0===t.expression)},(yt=kt||(kt={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},yt.is=function(e){const t=e;return Ut.defined(t)&&k.is(e.stoppedLocation)},(xt=wt||(wt={})).Type=1,xt.Parameter=2,xt.is=function(e){return 1===e||2===e},(Et=It||(It={})).create=function(e){return{value:e}},Et.is=function(e){const t=e;return Ut.objectLiteral(t)&&(void 0===t.tooltip||Ut.string(t.tooltip)||_e.is(t.tooltip))&&(void 0===t.location||w.is(t.location))&&(void 0===t.command||z.is(t.command))},(At=Ct||(Ct={})).create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},At.is=function(e){const t=e;return Ut.objectLiteral(t)&&b.is(t.position)&&(Ut.string(t.label)||Ut.typedArray(t.label,It.is))&&(void 0===t.kind||wt.is(t.kind))&&void 0===t.textEdits||Ut.typedArray(t.textEdits,B.is)&&(void 0===t.tooltip||Ut.string(t.tooltip)||_e.is(t.tooltip))&&(void 0===t.paddingLeft||Ut.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ut.boolean(t.paddingRight))},(St||(St={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Rt||(Rt={})).create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}},(Lt||(Lt={})).create=function(e){return{items:e}},(Mt=Tt||(Tt={})).Invoked=0,Mt.Automatic=1,(Dt||(Dt={})).create=function(e,t){return{range:e,text:t}},(Pt||(Pt={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(Ft||(Ft={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&f.is(t.uri)&&Ut.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,u=0;for(;a<i.length&&s<o.length;){let t=n(i[a],o[s]);e[u++]=t<=0?i[a++]:o[s++]}for(;a<i.length;)e[u++]=i[a++];for(;s<o.length;)e[u++]=o[s++];return e}e.create=function(e,t,n,r){return new Vt(e,t,n,r)},e.is=function(e){let t=e;return!!(Ut.defined(t)&&Ut.string(t.uri)&&(Ut.undefined(t.languageId)||Ut.string(t.languageId))&&Ut.uinteger(t.lineCount)&&Ut.func(t.getText)&&Ut.func(t.positionAt)&&Ut.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(jt||(jt={}));var Ut,Vt=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return b.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return b.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Ut||(Ut={}));var Ot=class{constructor(e,t,n){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const r=e=>{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{l.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(l.editor.onDidCreateModel(r)),this._disposables.push(l.editor.onWillDisposeModel(i)),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{l.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),l.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"===typeof t.code?String(t.code):t.code;return{severity:Kt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=l.editor.getModel(e);i&&i.getLanguageId()===t&&l.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function Kt(e){switch(e){case U.Error:return l.MarkerSeverity.Error;case U.Warning:return l.MarkerSeverity.Warning;case U.Information:return l.MarkerSeverity.Info;case U.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}var Wt=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),Ht(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new l.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:$t(e.kind)};var n,r;return e.textEdit&&("undefined"!==typeof(r=e.textEdit).insert&&"undefined"!==typeof r.replace?t.range={insert:zt(e.textEdit.insert),replace:zt(e.textEdit.replace)}:t.range=zt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Bt)),e.insertTextFormat===we.Snippet&&(t.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function Ht(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Xt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function zt(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function $t(e){const t=l.languages.CompletionItemKind;switch(e){case ke.Text:return t.Text;case ke.Method:return t.Method;case ke.Function:return t.Function;case ke.Constructor:return t.Constructor;case ke.Field:return t.Field;case ke.Variable:return t.Variable;case ke.Class:return t.Class;case ke.Interface:return t.Interface;case ke.Module:return t.Module;case ke.Property:return t.Property;case ke.Unit:return t.Unit;case ke.Value:return t.Value;case ke.Enum:return t.Enum;case ke.Keyword:return t.Keyword;case ke.Snippet:return t.Snippet;case ke.Color:return t.Color;case ke.File:return t.File;case ke.Reference:return t.Reference}return t.Property}function Bt(e){if(e)return{range:zt(e.range),text:e.newText}}var qt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),Ht(t)))).then((e=>{if(e)return{range:zt(e.range),contents:Gt(e.contents)}}))}};function Qt(e){return"string"===typeof e?{value:e}:(t=e)&&"object"===typeof t&&"string"===typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function Gt(e){if(e)return Array.isArray(e)?e.map(Qt):[Qt(e)]}var Jt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),Ht(t)))).then((e=>{if(e)return e.map((e=>({range:zt(e.range),kind:Yt(e.kind)})))}))}};function Yt(e){switch(e){case Ne.Read:return l.languages.DocumentHighlightKind.Read;case Ne.Write:return l.languages.DocumentHighlightKind.Write;case Ne.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Zt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),Ht(t)))).then((e=>{if(e)return[en(e)]}))}};function en(e){return{uri:l.Uri.parse(e.uri),range:zt(e.range)}}var tn=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),Ht(t)))).then((e=>{if(e)return e.map(en)}))}},nn=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),Ht(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=l.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:zt(i.range),text:i.newText}})}return{edits:t}}(e)))}};var rn=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?on(e):{name:e.name,detail:"",containerName:e.containerName,kind:an(e.kind),range:zt(e.location.range),selectionRange:zt(e.location.range),tags:[]}))}))}};function on(e){return{name:e.name,detail:e.detail??"",kind:an(e.kind),range:zt(e.range),selectionRange:zt(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>on(e)))}}function an(e){let t=l.languages.SymbolKind;switch(e){case Oe.File:return t.File;case Oe.Module:return t.Module;case Oe.Namespace:return t.Namespace;case Oe.Package:return t.Package;case Oe.Class:return t.Class;case Oe.Method:return t.Method;case Oe.Property:return t.Property;case Oe.Field:return t.Field;case Oe.Constructor:return t.Constructor;case Oe.Enum:return t.Enum;case Oe.Interface:return t.Interface;case Oe.Function:return t.Function;case Oe.Variable:return t.Variable;case Oe.Constant:return t.Constant;case Oe.String:return t.String;case Oe.Number:return t.Number;case Oe.Boolean:return t.Boolean;case Oe.Array:return t.Array}return t.Function}var sn=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:zt(e.range),url:e.target})))}}))}},un=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,dn(t)).then((e=>{if(e&&0!==e.length)return e.map(Bt)}))))}},cn=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),Xt(t),dn(n)).then((e=>{if(e&&0!==e.length)return e.map(Bt)}))))}};function dn(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var ln=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:zt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,Xt(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=Bt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Bt)),t}))}))}},gn=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(t.kind=function(e){switch(e){case M.Comment:return l.languages.FoldingRangeKind.Comment;case M.Imports:return l.languages.FoldingRangeKind.Imports;case M.Region:return l.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var fn=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(Ht)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:zt(e.range)}),e=e.parent;return t}))}))}};function hn(e){const t=[],n=[],r=new Nt(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;mn(n),r.completionItems&&n.push(l.languages.registerCompletionItemProvider(t,new Wt(i,["/","-",":"]))),r.hovers&&n.push(l.languages.registerHoverProvider(t,new qt(i))),r.documentHighlights&&n.push(l.languages.registerDocumentHighlightProvider(t,new Jt(i))),r.definitions&&n.push(l.languages.registerDefinitionProvider(t,new Zt(i))),r.references&&n.push(l.languages.registerReferenceProvider(t,new tn(i))),r.documentSymbols&&n.push(l.languages.registerDocumentSymbolProvider(t,new rn(i))),r.rename&&n.push(l.languages.registerRenameProvider(t,new nn(i))),r.colors&&n.push(l.languages.registerColorProvider(t,new ln(i))),r.foldingRanges&&n.push(l.languages.registerFoldingRangeProvider(t,new gn(i))),r.diagnostics&&n.push(new Ot(t,i,e.onDidChange)),r.selectionRanges&&n.push(l.languages.registerSelectionRangeProvider(t,new fn(i))),r.documentFormattingEdits&&n.push(l.languages.registerDocumentFormattingEditProvider(t,new un(i))),r.documentRangeFormattingEdits&&n.push(l.languages.registerDocumentRangeFormattingEditProvider(t,new cn(i)))}(),t.push(pn(n)),pn(t)}function pn(e){return{dispose:()=>mn(e)}}function mn(e){for(;e.length;)e.pop().dispose()}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/225.fb54318c.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/225.cf362439.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/225.fb54318c.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/225.cf362439.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/225.fb54318c.chunk.js b/ydb/core/viewer/monitoring/static/js/225.fb54318c.chunk.js deleted file mode 100644 index 56a3fd66394..00000000000 --- a/ydb/core/viewer/monitoring/static/js/225.fb54318c.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 225.fb54318c.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[225],{70225:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>gt,DefinitionAdapter:()=>yt,DiagnosticsAdapter:()=>ct,DocumentColorAdapter:()=>Pt,DocumentFormattingEditProvider:()=>Tt,DocumentHighlightAdapter:()=>bt,DocumentLinkAdapter:()=>Rt,DocumentRangeFormattingEditProvider:()=>Dt,DocumentSymbolAdapter:()=>At,FoldingRangeAdapter:()=>Ft,HoverAdapter:()=>vt,ReferenceAdapter:()=>Ct,RenameAdapter:()=>xt,SelectionRangeAdapter:()=>Lt,WorkerManager:()=>se,fromPosition:()=>lt,fromRange:()=>ht,setupMode:()=>jt,toRange:()=>ft,toTextEdit:()=>mt});var r,i,o=n(32858),a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of u(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},g={};d(g,r=o,"default"),i&&d(i,r,"default");var l,h,f,p,m,v,_,w,b,k,y,E,C,x,A,I,S,R,T,D,M,P,F,L,j,O,N,U,W,V,H,K,z,X,B,$,q,Q,G,J,Y,Z,ee,te,ne,re,ie,oe,ae,se=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=g.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(h=l||(l={})).MIN_VALUE=-2147483648,h.MAX_VALUE=2147483647,(p=f||(f={})).MIN_VALUE=0,p.MAX_VALUE=2147483647,(v=m||(m={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=f.MAX_VALUE),t===Number.MAX_VALUE&&(t=f.MAX_VALUE),{line:e,character:t}},v.is=function(e){var t=e;return st.objectLiteral(t)&&st.uinteger(t.line)&&st.uinteger(t.character)},(w=_||(_={})).create=function(e,t,n,r){if(st.uinteger(e)&&st.uinteger(t)&&st.uinteger(n)&&st.uinteger(r))return{start:m.create(e,t),end:m.create(n,r)};if(m.is(e)&&m.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},w.is=function(e){var t=e;return st.objectLiteral(t)&&m.is(t.start)&&m.is(t.end)},(k=b||(b={})).create=function(e,t){return{uri:e,range:t}},k.is=function(e){var t=e;return st.defined(t)&&_.is(t.range)&&(st.string(t.uri)||st.undefined(t.uri))},(E=y||(y={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},E.is=function(e){var t=e;return st.defined(t)&&_.is(t.targetRange)&&st.string(t.targetUri)&&(_.is(t.targetSelectionRange)||st.undefined(t.targetSelectionRange))&&(_.is(t.originSelectionRange)||st.undefined(t.originSelectionRange))},(x=C||(C={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},x.is=function(e){var t=e;return st.numberRange(t.red,0,1)&&st.numberRange(t.green,0,1)&&st.numberRange(t.blue,0,1)&&st.numberRange(t.alpha,0,1)},(I=A||(A={})).create=function(e,t){return{range:e,color:t}},I.is=function(e){var t=e;return _.is(t.range)&&C.is(t.color)},(R=S||(S={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},R.is=function(e){var t=e;return st.string(t.label)&&(st.undefined(t.textEdit)||X.is(t))&&(st.undefined(t.additionalTextEdits)||st.typedArray(t.additionalTextEdits,X.is))},(D=T||(T={})).Comment="comment",D.Imports="imports",D.Region="region",(P=M||(M={})).create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return st.defined(n)&&(o.startCharacter=n),st.defined(r)&&(o.endCharacter=r),st.defined(i)&&(o.kind=i),o},P.is=function(e){var t=e;return st.uinteger(t.startLine)&&st.uinteger(t.startLine)&&(st.undefined(t.startCharacter)||st.uinteger(t.startCharacter))&&(st.undefined(t.endCharacter)||st.uinteger(t.endCharacter))&&(st.undefined(t.kind)||st.string(t.kind))},(L=F||(F={})).create=function(e,t){return{location:e,message:t}},L.is=function(e){var t=e;return st.defined(t)&&b.is(t.location)&&st.string(t.message)},(O=j||(j={})).Error=1,O.Warning=2,O.Information=3,O.Hint=4,(U=N||(N={})).Unnecessary=1,U.Deprecated=2,(W||(W={})).is=function(e){var t=e;return void 0!==t&&null!==t&&st.string(t.href)},(H=V||(V={})).create=function(e,t,n,r,i,o){var a={range:e,message:t};return st.defined(n)&&(a.severity=n),st.defined(r)&&(a.code=r),st.defined(i)&&(a.source=i),st.defined(o)&&(a.relatedInformation=o),a},H.is=function(e){var t,n=e;return st.defined(n)&&_.is(n.range)&&st.string(n.message)&&(st.number(n.severity)||st.undefined(n.severity))&&(st.integer(n.code)||st.string(n.code)||st.undefined(n.code))&&(st.undefined(n.codeDescription)||st.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(st.string(n.source)||st.undefined(n.source))&&(st.undefined(n.relatedInformation)||st.typedArray(n.relatedInformation,F.is))},(z=K||(K={})).create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return st.defined(n)&&n.length>0&&(i.arguments=n),i},z.is=function(e){var t=e;return st.defined(t)&&st.string(t.title)&&st.string(t.command)},(B=X||(X={})).replace=function(e,t){return{range:e,newText:t}},B.insert=function(e,t){return{range:{start:e,end:e},newText:t}},B.del=function(e){return{range:e,newText:""}},B.is=function(e){var t=e;return st.objectLiteral(t)&&st.string(t.newText)&&_.is(t.range)},(q=$||($={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},q.is=function(e){var t=e;return void 0!==t&&st.objectLiteral(t)&&st.string(t.label)&&(st.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(st.string(t.description)||void 0===t.description)},(Q||(Q={})).is=function(e){return"string"===typeof e},(J=G||(G={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},J.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},J.del=function(e,t){return{range:e,newText:"",annotationId:t}},J.is=function(e){var t=e;return X.is(t)&&($.is(t.annotationId)||Q.is(t.annotationId))},(Z=Y||(Y={})).create=function(e,t){return{textDocument:e,edits:t}},Z.is=function(e){var t=e;return st.defined(t)&&le.is(t.textDocument)&&Array.isArray(t.edits)},(te=ee||(ee={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},te.is=function(e){var t=e;return t&&"create"===t.kind&&st.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||st.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||st.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(re=ne||(ne={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},re.is=function(e){var t=e;return t&&"rename"===t.kind&&st.string(t.oldUri)&&st.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||st.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||st.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},oe.is=function(e){var t=e;return t&&"delete"===t.kind&&st.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||st.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||st.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(ae||(ae={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return st.string(e.kind)?ee.is(e)||ne.is(e)||ie.is(e):Y.is(e)})))};var ue,ce,de,ge,le,he,fe,pe,me,ve,_e,we,be,ke,ye,Ee,Ce,xe,Ae,Ie,Se,Re,Te,De,Me,Pe,Fe,Le,je,Oe,Ne,Ue,We,Ve,He,Ke,ze,Xe,Be,$e,qe,Qe,Ge,Je,Ye,Ze,et,tt,nt,rt,it,ot=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=X.insert(e,t):Q.is(n)?(i=n,r=G.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=G.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=X.replace(e,t):Q.is(n)?(i=n,r=G.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=G.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=X.del(e):Q.is(t)?(r=t,n=G.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=G.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),at=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(Q.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new at(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Y.is(e)){var n=new ot(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ot(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(le.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new ot(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ot(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new at,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if($.is(t)||Q.is(t)?r=t:n=t,void 0===r?i=ee.create(e,n):(o=Q.is(r)?r:this._changeAnnotations.manage(r),i=ee.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if($.is(n)||Q.is(n)?i=n:r=n,void 0===i?o=ne.create(e,t,r):(a=Q.is(i)?i:this._changeAnnotations.manage(i),o=ne.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if($.is(t)||Q.is(t)?r=t:n=t,void 0===r?i=ie.create(e,n):(o=Q.is(r)?r:this._changeAnnotations.manage(r),i=ie.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}();(ce=ue||(ue={})).create=function(e){return{uri:e}},ce.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)},(ge=de||(de={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)&&st.integer(t.version)},(he=le||(le={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)&&(null===t.version||st.integer(t.version))},(pe=fe||(fe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},pe.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)&&st.string(t.languageId)&&st.integer(t.version)&&st.string(t.text)},(ve=me||(me={})).PlainText="plaintext",ve.Markdown="markdown",function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(me||(me={})),(_e||(_e={})).is=function(e){var t=e;return st.objectLiteral(e)&&me.is(t.kind)&&st.string(t.value)},(be=we||(we={})).Text=1,be.Method=2,be.Function=3,be.Constructor=4,be.Field=5,be.Variable=6,be.Class=7,be.Interface=8,be.Module=9,be.Property=10,be.Unit=11,be.Value=12,be.Enum=13,be.Keyword=14,be.Snippet=15,be.Color=16,be.File=17,be.Reference=18,be.Folder=19,be.EnumMember=20,be.Constant=21,be.Struct=22,be.Event=23,be.Operator=24,be.TypeParameter=25,(ye=ke||(ke={})).PlainText=1,ye.Snippet=2,(Ee||(Ee={})).Deprecated=1,(xe=Ce||(Ce={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},xe.is=function(e){var t=e;return t&&st.string(t.newText)&&_.is(t.insert)&&_.is(t.replace)},(Ie=Ae||(Ae={})).asIs=1,Ie.adjustIndentation=2,(Se||(Se={})).create=function(e){return{label:e}},(Re||(Re={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(De=Te||(Te={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},De.is=function(e){var t=e;return st.string(t)||st.objectLiteral(t)&&st.string(t.language)&&st.string(t.value)},(Me||(Me={})).is=function(e){var t=e;return!!t&&st.objectLiteral(t)&&(_e.is(t.contents)||Te.is(t.contents)||st.typedArray(t.contents,Te.is))&&(void 0===e.range||_.is(e.range))},(Pe||(Pe={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Fe||(Fe={})).create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return st.defined(t)&&(i.documentation=t),st.defined(n)?i.parameters=n:i.parameters=[],i},(je=Le||(Le={})).Text=1,je.Read=2,je.Write=3,(Oe||(Oe={})).create=function(e,t){var n={range:e};return st.number(t)&&(n.kind=t),n},(Ue=Ne||(Ne={})).File=1,Ue.Module=2,Ue.Namespace=3,Ue.Package=4,Ue.Class=5,Ue.Method=6,Ue.Property=7,Ue.Field=8,Ue.Constructor=9,Ue.Enum=10,Ue.Interface=11,Ue.Function=12,Ue.Variable=13,Ue.Constant=14,Ue.String=15,Ue.Number=16,Ue.Boolean=17,Ue.Array=18,Ue.Object=19,Ue.Key=20,Ue.Null=21,Ue.EnumMember=22,Ue.Struct=23,Ue.Event=24,Ue.Operator=25,Ue.TypeParameter=26,(We||(We={})).Deprecated=1,(Ve||(Ve={})).create=function(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(Ke=He||(He={})).create=function(e,t,n,r,i,o){var a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},Ke.is=function(e){var t=e;return t&&st.string(t.name)&&st.number(t.kind)&&_.is(t.range)&&_.is(t.selectionRange)&&(void 0===t.detail||st.string(t.detail))&&(void 0===t.deprecated||st.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(Xe=ze||(ze={})).Empty="",Xe.QuickFix="quickfix",Xe.Refactor="refactor",Xe.RefactorExtract="refactor.extract",Xe.RefactorInline="refactor.inline",Xe.RefactorRewrite="refactor.rewrite",Xe.Source="source",Xe.SourceOrganizeImports="source.organizeImports",Xe.SourceFixAll="source.fixAll",($e=Be||(Be={})).create=function(e,t){var n={diagnostics:e};return void 0!==t&&null!==t&&(n.only=t),n},$e.is=function(e){var t=e;return st.defined(t)&&st.typedArray(t.diagnostics,V.is)&&(void 0===t.only||st.typedArray(t.only,st.string))},(Qe=qe||(qe={})).create=function(e,t,n){var r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):K.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},Qe.is=function(e){var t=e;return t&&st.string(t.title)&&(void 0===t.diagnostics||st.typedArray(t.diagnostics,V.is))&&(void 0===t.kind||st.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||K.is(t.command))&&(void 0===t.isPreferred||st.boolean(t.isPreferred))&&(void 0===t.edit||ae.is(t.edit))},(Je=Ge||(Ge={})).create=function(e,t){var n={range:e};return st.defined(t)&&(n.data=t),n},Je.is=function(e){var t=e;return st.defined(t)&&_.is(t.range)&&(st.undefined(t.command)||K.is(t.command))},(Ze=Ye||(Ye={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},Ze.is=function(e){var t=e;return st.defined(t)&&st.uinteger(t.tabSize)&&st.boolean(t.insertSpaces)},(tt=et||(et={})).create=function(e,t,n){return{range:e,target:t,data:n}},tt.is=function(e){var t=e;return st.defined(t)&&_.is(t.range)&&(st.undefined(t.target)||st.string(t.target))},(rt=nt||(nt={})).create=function(e,t){return{range:e,parent:t}},rt.is=function(e){var t=e;return void 0!==t&&_.is(t.range)&&(void 0===t.parent||rt.is(t.parent))},function(e){function t(e,n){if(e.length<=1)return e;var r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);for(var a=0,s=0,u=0;a<i.length&&s<o.length;){var c=n(i[a],o[s]);e[u++]=c<=0?i[a++]:o[s++]}for(;a<i.length;)e[u++]=i[a++];for(;s<o.length;)e[u++]=o[s++];return e}e.create=function(e,t,n,r){return new ut(e,t,n,r)},e.is=function(e){var t=e;return!!(st.defined(t)&&st.string(t.uri)&&(st.undefined(t.languageId)||st.string(t.languageId))&&st.uinteger(t.lineCount)&&st.func(t.getText)&&st.func(t.positionAt)&&st.func(t.offsetAt))},e.applyEdits=function(e,n){for(var r=e.getText(),i=t(n,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length,a=i.length-1;a>=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(it||(it={}));var st,ut=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return m.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return m.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(st||(st={}));var ct=class{constructor(e,t,n){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const r=e=>{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{g.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(g.editor.onDidCreateModel(r)),this._disposables.push(g.editor.onWillDisposeModel(i)),this._disposables.push(g.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{g.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{g.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),g.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"===typeof t.code?String(t.code):t.code;return{severity:dt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=g.editor.getModel(e);i&&i.getLanguageId()===t&&g.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function dt(e){switch(e){case j.Error:return g.MarkerSeverity.Error;case j.Warning:return g.MarkerSeverity.Warning;case j.Information:return g.MarkerSeverity.Info;case j.Hint:return g.MarkerSeverity.Hint;default:return g.MarkerSeverity.Info}}var gt=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),lt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new g.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:pt(e.kind)};var n,r;return e.textEdit&&("undefined"!==typeof(r=e.textEdit).insert&&"undefined"!==typeof r.replace?t.range={insert:ft(e.textEdit.insert),replace:ft(e.textEdit.replace)}:t.range=ft(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(mt)),e.insertTextFormat===ke.Snippet&&(t.insertTextRules=g.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function lt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ht(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function ft(e){if(e)return new g.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function pt(e){const t=g.languages.CompletionItemKind;switch(e){case we.Text:return t.Text;case we.Method:return t.Method;case we.Function:return t.Function;case we.Constructor:return t.Constructor;case we.Field:return t.Field;case we.Variable:return t.Variable;case we.Class:return t.Class;case we.Interface:return t.Interface;case we.Module:return t.Module;case we.Property:return t.Property;case we.Unit:return t.Unit;case we.Value:return t.Value;case we.Enum:return t.Enum;case we.Keyword:return t.Keyword;case we.Snippet:return t.Snippet;case we.Color:return t.Color;case we.File:return t.File;case we.Reference:return t.Reference}return t.Property}function mt(e){if(e)return{range:ft(e.range),text:e.newText}}var vt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),lt(t)))).then((e=>{if(e)return{range:ft(e.range),contents:wt(e.contents)}}))}};function _t(e){return"string"===typeof e?{value:e}:(t=e)&&"object"===typeof t&&"string"===typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function wt(e){if(e)return Array.isArray(e)?e.map(_t):[_t(e)]}var bt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),lt(t)))).then((e=>{if(e)return e.map((e=>({range:ft(e.range),kind:kt(e.kind)})))}))}};function kt(e){switch(e){case Le.Read:return g.languages.DocumentHighlightKind.Read;case Le.Write:return g.languages.DocumentHighlightKind.Write;case Le.Text:return g.languages.DocumentHighlightKind.Text}return g.languages.DocumentHighlightKind.Text}var yt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),lt(t)))).then((e=>{if(e)return[Et(e)]}))}};function Et(e){return{uri:g.Uri.parse(e.uri),range:ft(e.range)}}var Ct=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),lt(t)))).then((e=>{if(e)return e.map(Et)}))}},xt=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),lt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=g.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:ft(i.range),text:i.newText}})}return{edits:t}}(e)))}};var At=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?It(e):{name:e.name,detail:"",containerName:e.containerName,kind:St(e.kind),range:ft(e.location.range),selectionRange:ft(e.location.range),tags:[]}))}))}};function It(e){return{name:e.name,detail:e.detail??"",kind:St(e.kind),range:ft(e.range),selectionRange:ft(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>It(e)))}}function St(e){let t=g.languages.SymbolKind;switch(e){case Ne.File:return t.File;case Ne.Module:return t.Module;case Ne.Namespace:return t.Namespace;case Ne.Package:return t.Package;case Ne.Class:return t.Class;case Ne.Method:return t.Method;case Ne.Property:return t.Property;case Ne.Field:return t.Field;case Ne.Constructor:return t.Constructor;case Ne.Enum:return t.Enum;case Ne.Interface:return t.Interface;case Ne.Function:return t.Function;case Ne.Variable:return t.Variable;case Ne.Constant:return t.Constant;case Ne.String:return t.String;case Ne.Number:return t.Number;case Ne.Boolean:return t.Boolean;case Ne.Array:return t.Array}return t.Function}var Rt=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:ft(e.range),url:e.target})))}}))}},Tt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,Mt(t)).then((e=>{if(e&&0!==e.length)return e.map(mt)}))))}},Dt=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),ht(t),Mt(n)).then((e=>{if(e&&0!==e.length)return e.map(mt)}))))}};function Mt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Pt=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:ft(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,ht(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=mt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(mt)),t}))}))}},Ft=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(t.kind=function(e){switch(e){case T.Comment:return g.languages.FoldingRangeKind.Comment;case T.Imports:return g.languages.FoldingRangeKind.Imports;case T.Region:return g.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var Lt=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(lt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:ft(e.range)}),e=e.parent;return t}))}))}};function jt(e){const t=[],n=[],r=new se(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;Nt(n),r.completionItems&&n.push(g.languages.registerCompletionItemProvider(t,new gt(i,["/","-",":"]))),r.hovers&&n.push(g.languages.registerHoverProvider(t,new vt(i))),r.documentHighlights&&n.push(g.languages.registerDocumentHighlightProvider(t,new bt(i))),r.definitions&&n.push(g.languages.registerDefinitionProvider(t,new yt(i))),r.references&&n.push(g.languages.registerReferenceProvider(t,new Ct(i))),r.documentSymbols&&n.push(g.languages.registerDocumentSymbolProvider(t,new At(i))),r.rename&&n.push(g.languages.registerRenameProvider(t,new xt(i))),r.colors&&n.push(g.languages.registerColorProvider(t,new Pt(i))),r.foldingRanges&&n.push(g.languages.registerFoldingRangeProvider(t,new Ft(i))),r.diagnostics&&n.push(new ct(t,i,e.onDidChange)),r.selectionRanges&&n.push(g.languages.registerSelectionRangeProvider(t,new Lt(i))),r.documentFormattingEdits&&n.push(g.languages.registerDocumentFormattingEditProvider(t,new Tt(i))),r.documentRangeFormattingEdits&&n.push(g.languages.registerDocumentRangeFormattingEditProvider(t,new Dt(i)))}(),t.push(Ot(n)),Ot(t)}function Ot(e){return{dispose:()=>Nt(e)}}function Nt(e){for(;e.length;)e.pop().dispose()}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2252.b5be42b8.chunk.js b/ydb/core/viewer/monitoring/static/js/2252.b5be42b8.chunk.js deleted file mode 100644 index 5f20f51aa46..00000000000 --- a/ydb/core/viewer/monitoring/static/js/2252.b5be42b8.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2252],{22252:(e,t,i)=>{i.r(t),i.d(t,{conf:()=>r,getLanguage:()=>o});const s="$row|$rows|action|add|all|alter|and|any|as|asc|assume|async|bigserial|serial|smallserial|serial8|serial4|serial2|begin|bernoulli|between|by|case|changefeed|column|columns|commit|compact|create|cross|cube|declare|define|delete|desc|dict|discard|distinct|do|drop|else|empty_action|end|erase|evaluate|exclusion|exists|export|family|flatten|for|from|full|global|group|grouping|having|if|ignore|ilike|import|in|index|inner|insert|into|is|join|key|left|like|limit|list|match|not|null|nulls|offset|on|only|optional|or|order|over|partition|pragma|presort|primary|process|reduce|regexp|repeatable|replace|respect|result|return|right|rlike|rollup|sample|schema|select|semi|set|sets|stream|subquery|sync|table|tablesample|then|truncate|union|intersect|except|update|upsert|use|using|values|view|when|where|window|with|without|xor|callable|resource|tagged|generic|unit|void|emptylist|emptydict|flow|callable|resource|tagged|generic|unit|void|emptylist|emptydict|flow".split("|"),a="bool|date|datetime|decimal|double|float|int16|int32|int64|int8|interval|json|jsondocument|string|timestamp|tzdate|tzdatetime|tztimestamp|uint16|uint32|uint64|uint8|utf8|uuid|yson|text|bytes".split("|"),n="abs|aggregate_by|aggregate_list|aggregate_list_distinct|agg_list|agg_list_distinct|as_table|avg|avg_if|adaptivedistancehistogram|adaptivewardhistogram|adaptiveweighthistogram|addmember|addtimezone|aggregateflatten|aggregatetransforminput|aggregatetransformoutput|aggregationfactory|asatom|asdict|asdictstrict|asenum|aslist|asliststrict|asset|assetstrict|asstruct|astagged|astuple|asvariant|atomcode|bitcast|bit_and|bit_or|bit_xor|bool_and|bool_or|bool_xor|bottom|bottom_by|blockwardhistogram|blockweighthistogram|cast|coalesce|concat|concat_strict|correlation|count|count_if|covariance|covariance_population|covariance_sample|callableargument|callableargumenttype|callableresulttype|callabletype|callabletypecomponents|callabletypehandle|choosemembers|combinemembers|countdistinctestimate|currentauthenticateduser|currentoperationid|currentoperationsharedid|currenttzdate|currenttzdatetime|currenttztimestamp|currentutcdate|currentutcdatetime|currentutctimestamp|dense_rank|datatype|datatypecomponents|datatypehandle|dictaggregate|dictcontains|dictcreate|dicthasitems|dictitems|dictkeytype|dictkeys|dictlength|dictlookup|dictpayloadtype|dictpayloads|dicttype|dicttypecomponents|dicttypehandle|each|each_strict|emptydicttype|emptydicttypehandle|emptylisttype|emptylisttypehandle|endswith|ensure|ensureconvertibleto|ensuretype|enum|evaluateatom|evaluatecode|evaluateexpr|evaluatetype|expandstruct|filter|filter_strict|find|first_value|folder|filecontent|filepath|flattenmembers|forceremovemember|forceremovemembers|forcerenamemembers|forcespreadmembers|formatcode|formattype|frombytes|frompg|funccode|greatest|grouping|gathermembers|generictype|histogram|hll|hoppingwindowpgcast|hyperloglog|if|if_strict|instanceof|json_exists|json_query|json_value|jointablerow|just|lag|last_value|lead|least|len|length|like|likely|like_strict|lambdaargumentscount|lambdacode|lambdaoptionalargumentscount|linearhistogram|listaggregate|listall|listany|listavg|listcode|listcollect|listconcat|listcreate|listdistinct|listenumerate|listextend|listextendstrict|listextract|listfilter|listflatmap|listflatten|listfold|listfold1|listfold1map|listfoldmap|listfromrange|listfromtuple|listhas|listhasitems|listhead|listindexof|listitemtype|listlast|listlength|listmap|listmax|listmin|listnotnull|listreplicate|listreverse|listskip|listskipwhile|listskipwhileinclusive|listsort|listsortasc|listsortdesc|listsum|listtake|listtakewhile|listtakewhileinclusive|listtotuple|listtype|listtypehandle|listunionall|listuniq|listzip|listzipall|loghistogram|logarithmichistogram|max|max_by|max_of|median|min|min_by|min_of|mode|multi_aggregate_by|nanvl|nvl|nothing|nulltype|nulltypehandle|optionalitemtype|optionaltype|optionaltypehandle|percentile|parsefile|parsetype|parsetypehandle|pgand|pgarray|pgcall|pgconst|pgnot|pgop|pgor|pickle|quotecode|range|range_strict|rank|regexp|regexp_strict|rfind|row_number|random|randomnumber|randomuuid|removemember|removemembers|removetimezone|renamemembers|replacemember|reprcode|resourcetype|resourcetypehandle|resourcetypetag|some|stddev|stddev_population|stddev_sample|substring|sum|sum_if|sessionstart|sessionwindow|setcreate|setdifference|setincludes|setintersection|setisdisjoint|setsymmetricdifference|setunion|spreadmembers|stablepickle|startswith|staticmap|staticzip|streamitemtype|streamtype|streamtypehandle|structmembertype|structmembers|structtypecomponents|structtypehandle|subqueryextend|subqueryextendfor|subquerymerge|subquerymergefor|subqueryunionall|subqueryunionallfor|subqueryunionmerge|subqueryunionmergefor|top|topfreq|top_by|tablename|tablepath|tablerecordindex|tablerow|tablerows|taggedtype|taggedtypecomponents|taggedtypehandle|tobytes|todict|tomultidict|topg|toset|tosorteddict|tosortedmultidict|trymember|tupleelementtype|tupletype|tupletypecomponents|tupletypehandle|typehandle|typekind|typeof|udaf|udf|unittype|unpickle|untag|unwrap|variance|variance_population|variance_sample|variant|varianttype|varianttypehandle|variantunderlyingtype|voidtype|voidtypehandle|way|worldcode|weakfield".split("|"),r={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],wordPattern:/(-?\d*\.\d\w*)|([^`~!@#%^&*()\-=+[{\]}\\|;:'",./?\s]+)/g};function o({ansi:e=!1}={}){return{defaultToken:"text",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],keywords:s,typeKeywords:a,constants:["true","false","enabled","disabled"],builtinFunctions:n,operators:["+","-","/","//","%","<@>","@>","<@","&","^","~","<",">","<=",">=","=>","==","!=","<>","="],symbols:/[=><!~?:&|+\-*/^%]+/,escapes:/\\(?:[abfnrtv\\"'`]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/[a-zA-Z_]\w*/,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@numbers"},{include:"@tablePath"},{include:"@strings"},{include:"@primaryKey"},[/(@variables)::(@variables)/,"support.function"],[/[;,.]/,"delimiter"],[/[(){}[\]]/,"@brackets"],[/@?[a-zA-Z_$]\w*/,{cases:{"@keywords":"keyword","@typeKeywords":"keyword.type","@constants":"constant.yql","@builtinFunctions":"constant.other.color","[$@][a-zA-Z_]\\w*":"variable","@default":"identifier"}}],[/@symbols/,{cases:{"@operators":"operator.sql","@default":""}}]],whitespace:[[/\s+/,"white"]],comments:[[/--.*/,"comment"],[/\/\*/,{token:"comment.quote",next:e?"@commentAnsi":"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],commentAnsi:[[/\/\*/,{token:"comment.quote",next:"@comment"}],[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?f?\b/,"number.float"],[/[+-]?(?:\d+|0b[01]+|0o[0-8]+|0x[\da-f]+)(?:u?[lst]?)?\b/,"number"]],strings:[[/'/,{token:"string",next:e?"@stringAnsiSingle":"@stringSingle"}],[/"/,{token:"string",next:e?"@stringAnsiDouble":"@stringDouble"}],[/[@]{2}/,{token:"string",next:"@multilineString"}]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'[uyj]?/,{token:"string",next:"@pop"}]],stringAnsiSingle:[[/[^']+/,"string"],[/''/,"string"],[/'[uyj]?/,{token:"string",next:"@pop"}]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"[uyj]?/,{token:"string",next:"@pop"}]],stringAnsiDouble:[[/[^"]+/,"string"],[/""/,"string"],[/"[uyj]?/,{token:"string",next:"@pop"}]],multilineString:[[/#py/,{token:"string.python",nextEmbedded:"python",next:"@embedded",goBack:3}],[/\/\/js/,{token:"string.js",nextEmbedded:"javascript",next:"@embedded",goBack:4}],[/[^@]+/,"string"],[/[@]{4}/,"string"],[/[@]{2}[uyj]?/,{token:"string",next:"@pop"}],[/./,"string"]],embedded:[[/([^@]|^)([@]{4})*[@]{2}([@]([^@]|$)|[^@]|$)/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],tablePath:[[/((`)?[\w/]+\2\s*\.\s*)?`/,{token:"string.tablepath",next:"@table"}]],table:[[/[^\\`]+/,"string.tablepath"],[/``/,"string.tablepath"],[/@escapes/,"string.escape.tablepath"],[/\\./,"string.escape.invalid.tablepath"],[/`/,{token:"string.tablepath",next:"@pop"}]],primaryKey:[[/primary key/i,"keyword"]]}}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2350.a7af0a2e.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2350.a7af0a2e.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/2350.a7af0a2e.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/2350.a7af0a2e.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/2372.9bfbe824.chunk.js b/ydb/core/viewer/monitoring/static/js/2372.880a31f6.chunk.js index f5561c3c799..129bede95a8 100644 --- a/ydb/core/viewer/monitoring/static/js/2372.9bfbe824.chunk.js +++ b/ydb/core/viewer/monitoring/static/js/2372.880a31f6.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 2372.9bfbe824.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2372],{22372:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>g,language:()=>m});var s,r,o=n(32858),i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=(e,t,n,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of a(t))c.call(e,r)||r===n||i(e,r,{get:()=>t[r],enumerable:!(s=l(t,r))||s.enumerable});return e},d={};p(d,s=o,"default"),r&&p(r,s,"default");var g={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:d.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},m={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}}}}]);
\ No newline at end of file +/*! For license information please see 2372.880a31f6.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2372],{22372:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>d,language:()=>f});var r,s,i=n(80781),o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of a(t))c.call(e,s)||s===n||o(e,s,{get:()=>t[s],enumerable:!(r=l(t,s))||r.enumerable});return e},g={};p(g,r=i,"default"),s&&p(s,r,"default");var d={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:g.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},f={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/f'{1,3}/,"string.escape","@fStringBody"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/f"{1,3}/,"string.escape","@fDblStringBody"],[/"/,"string.escape","@dblStringBody"]],fStringBody:[[/[^\\'\{\}]+$/,"string","@popall"],[/[^\\'\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],fDblStringBody:[[/[^\\"\{\}]+$/,"string","@popall"],[/[^\\"\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],fStringDetail:[[/[:][^}]+/,"string"],[/[!][ars]/,"string"],[/=/,"string"],[/\}/,"identifier","@pop"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2372.880a31f6.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2372.880a31f6.chunk.js.LICENSE.txt new file mode 100644 index 00000000000..34dc0256d74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/2372.880a31f6.chunk.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/2372.9bfbe824.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2372.9bfbe824.chunk.js.LICENSE.txt deleted file mode 100644 index a62733317c0..00000000000 --- a/ydb/core/viewer/monitoring/static/js/2372.9bfbe824.chunk.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/246.13bb9db2.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/246.13bb9db2.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/246.13bb9db2.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/246.13bb9db2.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/2512.732a0e0c.chunk.js b/ydb/core/viewer/monitoring/static/js/2512.732a0e0c.chunk.js new file mode 100644 index 00000000000..94190270046 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/2512.732a0e0c.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2512],{42655:(e,s,n)=>{n.d(s,{y:()=>c});var t=n(59284),l=n(89169),r=n(77506),a=n(66781),o=n(60712);const i=(0,r.cn)("ydb-info-viewer-skeleton"),d=()=>(0,o.jsxs)("div",{className:i("label"),children:[(0,o.jsx)(l.E,{className:i("label__text")}),(0,o.jsx)("div",{className:i("label__dots")})]}),c=({rows:e=8,className:s,delay:n=600})=>{const[r]=(0,a.y)(n);let c=(0,o.jsxs)(t.Fragment,{children:[(0,o.jsx)(d,{}),(0,o.jsx)(l.E,{className:i("value")})]});return r||(c=null),(0,o.jsx)("div",{className:i(null,s),children:[...new Array(e)].map(((e,s)=>(0,o.jsx)("div",{className:i("row"),children:c},`skeleton-row-${s}`)))})}},70043:(e,s,n)=>{n.d(s,{E:()=>a});var t=n(89169),l=n(66781),r=n(60712);const a=({delay:e=600,className:s})=>{const[n]=(0,l.y)(e);return n?(0,r.jsx)(t.E,{className:s}):null}},59984:(e,s,n)=>{n.d(s,{Y:()=>i});n(59284);var t=n(87184),l=n(77506),r=n(60712);const a=(0,l.cn)("tag"),o=({text:e,type:s})=>(0,r.jsx)("div",{className:a({type:s}),children:e}),i=({tags:e,tagsType:s,className:n="",gap:l=1})=>(0,r.jsx)(t.s,{className:n,gap:l,wrap:"wrap",alignItems:"center",children:e&&e.map(((e,n)=>(0,r.jsx)(o,{text:e,type:s},n)))})},6488:(e,s,n)=>{n.r(s),n.d(s,{Cluster:()=>Vs});var t=n(59284),l=n(89169),r=n(23871),a=n(61750),o=n(10755),i=n(67087),d=n(90053),c=n(10508),u=n(44294),v=n(92459),h=n(67028),p=n(67157),m=n(40174),g=n(77506),j=n(90182),x=n(66592),N=n(7117),f=n(99936),b=n(88616),y=n(4557),C=n(84476),k=n(28539),w=n(44508),T=n(78524),_=n(48295),S=n(9252),V=n(17594),E=n(95963),O=n(89073),L=n(40336),M=n(63291),D=n(54309),z=n(78668),A=n(71661),G=n(25196),I=n(48372);const P=JSON.parse('{"field_links":"Links","field_monitoring-link":"Monitoring","context_unknown":"unknown database"}'),R=(0,I.g4)("ydb-tenant-name-wrapper",{en:P});var $=n(60712);function B({tenant:e,additionalTenantsProps:s}){var n;const t=(0,j.N4)(z._5),l=((e,s)=>{var n,t;if("function"!==typeof(null===s||void 0===s?void 0:s.prepareTenantBackend))return;let l=null!==(n=e.MonitoringEndpoint)&&void 0!==n?n:e.backend;const r=null!==(t=e.NodeIds)&&void 0!==t?t:e.sharedNodeIds;!l&&r&&r.length>0&&(l={NodeId:r[Math.floor(Math.random()*r.length)]});return s.prepareTenantBackend(l)})(e,s),r=Boolean(l),a=null===s||void 0===s||null===(n=s.getMonitoringLink)||void 0===n?void 0:n.call(s,e.Name,e.Type);return(0,$.jsx)(A.s,{disabled:!t||!a,delayClosing:200,content:a?(0,$.jsx)(L.u,{responsive:!0,children:(0,$.jsx)(L.u.Item,{name:R("field_links"),children:(0,$.jsx)(G.K,{title:R("field_monitoring-link"),url:a})})}):null,placement:["top","bottom"],behavior:M.m.Immediate,children:(0,$.jsx)(c.c,{externalLink:r,name:e.Name||R("context_unknown"),withLeftTrim:!0,status:e.Overall,hasClipboardButton:!0,path:(0,D.YL)({database:e.Name,backend:l})})})}var F=n(58351),U=n(88610),Y=n(53850),Z=n(23536),W=n.n(Z),q=n(54090),Q=n(76086),H=n(56674);const J=(0,Y.Mz)((e=>e),(e=>H.GJ.endpoints.getTenantsInfo.select({clusterName:e}))),K=(0,Y.Mz)((e=>e),((e,s)=>J(s)),(e=>(0,U.CN)(e,Q.Xm)),((e,s,n)=>{var t;const l=null!==(t=s(e).data)&&void 0!==t?t:[];return!n&&l.length>1?l.filter((e=>"Domain"!==e.Type)):l})),X=e=>e.tenants.searchValue,ee=(0,Y.Mz)([K,U.yV,X],((e,s,n)=>{let t=((e,s)=>s===U.s$.ALL?e:e.filter((e=>e.Overall&&e.Overall!==q.m.Green)))(e,s);return t=((e,s)=>e.filter((e=>{const n=new RegExp(W()(s),"i");return n.test(e.Name||"")||n.test(e.controlPlaneName)})))(t,n),t}));var se=n(56839);const ne=(0,g.cn)("tenants"),te=({additionalTenantsProps:e})=>{const s=(0,j.YQ)(),[n]=(0,j.Nt)(),{currentData:l,isFetching:r,error:a}=H.GJ.useGetTenantsInfoQuery({clusterName:F.SL},{pollingInterval:n}),o=r&&void 0===l,i=(0,j.N4)((e=>K(e,F.SL))),d=(0,j.N4)(X),c=(0,j.N4)((e=>ee(e,F.SL))),u=(0,j.N4)(U.yV),v=e=>{s((0,U.$u)(e))},h=e=>{s((0,H.gB)(e))};return(0,$.jsxs)(O.L,{children:[(0,$.jsx)(O.L.Controls,{children:(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)(E.v,{value:d,onChange:h,placeholder:"Database name",className:ne("search")}),(0,$.jsx)(S.k,{value:u,onChange:v}),(0,$.jsx)(k.T,{total:i.length,current:(null===c||void 0===c?void 0:c.length)||0,label:"Databases",loading:o})]})}),a?(0,$.jsx)(w.o,{error:a}):null,(0,$.jsx)(O.L.Table,{loading:o,children:l?(()=>{const s=[{name:"Name",header:"Database",render:({row:s})=>(0,$.jsx)(B,{tenant:s,additionalTenantsProps:e}),width:440,sortable:!0,defaultOrder:y.Ay.DESCENDING},{name:"controlPlaneName",header:"Name",render:({row:e})=>e.controlPlaneName,width:200,sortable:!0,defaultOrder:y.Ay.DESCENDING},{name:"Type",width:200,resizeMinWidth:150,render:({row:e})=>"Serverless"!==e.Type?e.Type:(0,$.jsxs)("div",{className:ne("type"),children:[(0,$.jsx)("span",{className:ne("type-value"),children:e.Type}),(0,$.jsx)(C.$,{className:ne("type-button"),onClick:()=>h(e.sharedTenantName||""),children:"Show shared"})]})},{name:"State",width:90,render:({row:e})=>e.State?e.State.toLowerCase():"\u2014",customStyle:()=>({textTransform:"capitalize"})},{name:"cpu",header:"CPU",width:80,render:({row:e})=>e.cpu&&e.cpu>1e4?(0,se.iM)(e.cpu):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"memory",header:"Memory",width:120,render:({row:e})=>e.memory?(0,se.vX)(e.memory):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"storage",header:"Storage",width:120,render:({row:e})=>e.storage?(0,se.vX)(e.storage):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"nodesCount",header:"Nodes",width:100,render:({row:e})=>e.nodesCount?(0,se.ZV)(e.nodesCount):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"groupsCount",header:"Groups",width:100,render:({row:e})=>e.groupsCount?(0,se.ZV)(e.groupsCount):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"PoolStats",header:"Pools",width:100,resizeMinWidth:60,sortAccessor:({PoolStats:e=[]})=>e.reduce(((e,s)=>e+(s.Usage||0)),0),defaultOrder:y.Ay.DESCENDING,align:y.Ay.LEFT,render:({row:e})=>(0,$.jsx)(_._,{pools:e.PoolStats})}];return 0===c.length&&u!==U.s$.ALL?(0,$.jsx)(T.v,{name:"thumbsUp",width:"200"}):(0,$.jsx)(V.l,{columnsWidthLSKey:"databasesTableColumnsWidth",data:c,columns:s,settings:Q.N3,emptyDataMessage:"No such tenants"})})():null})]})};var le=n(44433),re=n(74321),ae=n(52248),oe=n(15298),ie=n(18143);const de=(0,g.cn)("ydb-cluster-versions-bar"),ce=({versionsValues:e=[],size:s="s",progressClassName:n})=>(0,$.jsxs)("div",{className:de(),children:[(0,$.jsx)(ie.k,{value:100,stack:e,size:s,className:n}),(0,$.jsx)("div",{className:de("versions"),children:e.map(((s,n)=>(0,$.jsx)("div",{className:de("version-title"),style:{color:s.color},title:s.version,children:`${s.version}${n===e.length-1?"":","}`},s.version)))})]});var ue=n(63126),ve=n(78762),he=n(71294);function pe(e){return[(0,ve._E)(),(0,ve.Nh)(e),(0,ve.jl)(),(0,ve.pH)(),(0,ve.fr)(),(0,ve.ID)()]}const me=({nodes:e})=>{const{balancer:s}=(0,p.Zd)(),{additionalNodesProps:n}=(0,he.B)({balancer:s}),t=pe({getNodeRef:n.getNodeRef});return(0,$.jsx)(V.l,{columnsWidthLSKey:"versionsTableColumnsWidth",data:e,columns:t,settings:Q.N3})};var ge=n(96873);const je=(0,g.cn)("ydb-versions-nodes-tree-title"),xe=({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>{let r;return r=n?n.reduce(((e,s)=>s.nodes?e+s.nodes.length:e),0):s?s.length:0,(0,$.jsxs)("div",{className:je("overview"),children:[(0,$.jsxs)("div",{className:je("overview-container"),children:[t?(0,$.jsx)("div",{className:je("version-color"),style:{background:t}}):null,e?(0,$.jsxs)("span",{className:je("overview-title"),children:[e,(0,$.jsx)(ge.b,{text:e,size:"s",className:je("clipboard-button"),view:"normal"})]}):null]}),(0,$.jsxs)("div",{className:je("overview-info"),children:[(0,$.jsxs)("div",{children:[(0,$.jsx)("span",{className:je("info-value"),children:r}),(0,$.jsx)("span",{className:je("info-label",{margin:"left"}),children:"Nodes"})]}),l?(0,$.jsxs)("div",{className:je("version-progress"),children:[(0,$.jsx)("span",{className:je("info-label",{margin:"right"}),children:"Versions"}),(0,$.jsx)(ie.k,{size:"s",value:100,stack:l})]}):null]})]})},Ne=(0,g.cn)("ydb-versions-grouped-node-tree"),fe=({title:e,nodes:s,items:n,expanded:l=!1,versionColor:r,versionsValues:a,level:o=0})=>{const[i,d]=t.useState(!1);t.useEffect((()=>{d(l)}),[l]);const c=(0,$.jsx)(xe,{title:e,nodes:s,items:n,versionColor:r,versionsValues:a}),u=()=>{d((e=>!e))};return n?(0,$.jsx)("div",{className:Ne({"first-level":0===o}),children:(0,$.jsx)(ue.G,{name:c,collapsed:!i,hasArrow:!0,onClick:u,onArrowClick:u,children:n.map(((e,s)=>(0,$.jsx)(fe,{title:e.title,nodes:e.nodes,expanded:l,versionColor:e.versionColor,level:o+1},s)))},e)}):(0,$.jsx)("div",{className:Ne({"first-level":0===o}),children:(0,$.jsx)(ue.G,{name:c,collapsed:!i,hasArrow:!0,onClick:u,onArrowClick:u,children:(0,$.jsx)("div",{className:Ne("dt-wrapper"),children:(0,$.jsx)(me,{nodes:s||[]})})},e)})};var be=n(78018),ye=n.n(be),Ce=n(38596);const ke=.5,we=(e=[],s)=>{const n=e.reduce(((e,s)=>(s.Version&&(e[s.Version]?e[s.Version]=e[s.Version]+1:e[s.Version]=1),e)),{});return _e(Object.keys(n).map((t=>{const l=n[t]/e.length*100;return{title:t,version:t,color:null===s||void 0===s?void 0:s.get((0,Ce.U)(t)),value:l<ke?ke:l}})))};function Te(e,s,n){const t=null!==n&&void 0!==n?n:e.reduce(((e,s)=>e+s.count),0);return _e(e.map((e=>{const n=e.count/t*100;return{title:e.name,version:e.name,color:null===s||void 0===s?void 0:s.get(e.name),value:n<ke?ke:n}})))}function _e(e){let s=e[0].value,n=0,t=0;e.forEach(((e,l)=>{t+=e.value,e.value>s&&(s=e.value,n=l)}));const l=[...e];return l[n]={...e[n],value:s+100-t},l}let Se=function(e){return e.VERSION="Version",e.TENANT="Database",e.STORAGE="Storage",e}({});const Ve=(e,s)=>{var n;return(null===(n=e.title)||void 0===n?void 0:n.localeCompare(s.title||""))||-1},Ee=JSON.parse('{"title_overall":"Overall","title_storage":"Storage nodes","title_database":"Database nodes","title_other":"Other nodes"}'),Oe=(0,I.g4)("ydb-versions",{en:Ee});var Le=n(44992),Me=n(98730);const De=(0,g.cn)("ydb-versions"),ze=({versionToColor:e,cluster:s})=>{const[n]=(0,j.Nt)(),l=((e,s)=>{const{currentData:n}=oe.s.useGetNodesQuery((0,Me.L)(e)?Le.hT:{tablets:!1,fieldsRequired:["SystemState"],group:"Version"});return t.useMemo((()=>(0,Me.L)(e)&&e.MapVersions?Te(Object.entries(e.MapVersions).map((([e,s])=>({name:e,count:s}))),s,e.NodesTotal):n?Array.isArray(n.NodeGroups)?Te(n.NodeGroups,s,null===e||void 0===e?void 0:e.NodesTotal):we(n.Nodes,s):[]),[n,s,e])})(s,e),{currentData:r,isLoading:a}=oe.s.useGetNodesQuery({tablets:!1,fieldsRequired:["SystemState"]},{pollingInterval:n}),o=null===r||void 0===r?void 0:r.Nodes,[i,d]=t.useState(Se.VERSION),[c,u]=t.useState(!1),v=e=>{d(e)};if(a)return(0,$.jsx)(ae.a,{});const h=((e,s,n)=>{if(e&&e.length){if(n===Se.VERSION){const n=ye()(e,"Version");return Object.keys(n).map((e=>{const t=n[e].filter((({Tenants:e})=>Boolean(e))),l=ye()(t,"Tenants"),r=Object.keys(l).map((e=>({title:e,nodes:l[e]}))).sort(Ve);return r.length?{title:e,items:r,versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))}:null})).filter((e=>Boolean(e)))}{const n=e.filter((({Tenants:e})=>Boolean(e))),t=ye()(n,"Tenants");return Object.keys(t).map((e=>{const n=we(t[e],s),l=ye()(t[e],"Version"),r=Object.keys(l).map((e=>({title:e,nodes:l[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})));return r.length?{title:e,items:r,versionsValues:n}:null})).filter((e=>Boolean(e))).sort(Ve)}}})(o,e,i),p=((e,s)=>{if(!e||!e.length)return;const n=e.filter((({Roles:e})=>null===e||void 0===e?void 0:e.includes("Storage"))),t=ye()(n,"Version");return Object.keys(t).map((e=>({title:e,nodes:t[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})))})(o,e),m=((e,s)=>{if(!e||!e.length)return;const n=e.filter((({Roles:e,Version:s})=>!e&&s)),t=ye()(n,"Version");return Object.keys(t).map((e=>({title:e,nodes:t[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})))})(o,e),g=null!==p&&void 0!==p&&p.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_storage")}),p.map((({title:e,nodes:s,items:n,versionColor:t})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,versionColor:t},`storage-nodes-${e}`)))]}):null,x=null!==h&&void 0!==h&&h.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_database")}),(0,$.jsxs)("div",{className:De("controls"),children:[(0,$.jsxs)("div",{className:De("group"),children:[(0,$.jsx)("span",{className:De("label"),children:"Group by:"}),(0,$.jsxs)(le.a,{value:i,onUpdate:v,children:[(0,$.jsx)(le.a.Option,{value:Se.TENANT,children:Se.TENANT}),(0,$.jsx)(le.a.Option,{value:Se.VERSION,children:Se.VERSION})]})]}),(0,$.jsx)(re.S,{className:De("checkbox"),onChange:()=>u((e=>!e)),checked:c,children:"All expanded"})]}),h.map((({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,expanded:c,versionColor:t,versionsValues:l},`tenant-nodes-${e}`)))]}):null,N=null!==m&&void 0!==m&&m.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_other")}),m.map((({title:e,nodes:s,items:n,versionColor:t,versionsValues:l})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,versionColor:t,versionsValues:l},`other-nodes-${e}`)))]}):null,f=(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_overall")}),(0,$.jsx)("div",{className:De("overall-wrapper"),children:(0,$.jsx)(ce,{progressClassName:De("overall-progress"),versionsValues:l.filter((e=>"unknown"!==e.title)),size:"m"})})]});return(0,$.jsxs)("div",{className:De(),children:[f,g,x,N]})};var Ae=n(98089),Ge=n(87184),Ie=n(59984),Pe=n(7435);const Re=JSON.parse('{"disk-type":"Disk Type","erasure":"Erasure","allocated":"Allocated","available":"Available","usage":"Usage","label_nodes-state":"Nodes state","label_dc":"Nodes data centers","storage-size":"Storage size","storage-groups":"Storage groups, {{diskType}}","links":"Links","link_cores":"Coredumps","link_logging":"Logging","link_slo-logs":"Slo Logs","context_cores":"cores","title_cpu":"CPU","title_storage":"Storage","title_memory":"Memory","title_info":"Info","title_links":"Links","label_nodes":"Nodes","label_hosts":"Hosts","label_storage-groups":"Storage groups","label_databases":"Databases","label_load":"Load"}'),$e=(0,I.g4)("ydb-cluster",{en:Re});var Be=n(2102);const Fe=(0,g.cn)("ydb-doughnut-metrics");function Ue({status:e,fillWidth:s,children:n,className:t}){let l="var(--g-color-line-generic-solid)",r=3.6*s-90;s>50&&(l="var(--doughnut-color)",r=3.6*s+90);const a=r;return(0,$.jsx)("div",{className:Fe(null,t),children:(0,$.jsx)("div",{style:{backgroundImage:`linear-gradient(${a}deg, transparent 50%, ${l} 50%), linear-gradient(-90deg, var(--g-color-line-generic-solid) 50%, transparent 50%)`},className:Fe("doughnut",{status:e}),children:(0,$.jsx)("div",{className:Fe("text-wrapper"),children:n})})})}Ue.Legend=function({children:e,variant:s="subheader-3"}){return(0,$.jsx)(Ae.E,{variant:s,color:"secondary",className:Fe("legend"),children:e})},Ue.Value=function({children:e,variant:s="subheader-2"}){return(0,$.jsx)(Ae.E,{variant:s,color:"secondary",className:Fe("value"),children:e})};var Ye=n(70043);const Ze=(0,g.cn)("ydb-cluster-dashboard");function We({children:e,title:s,size:n,className:t}){return(0,$.jsxs)(Be.A,{className:Ze("card",{size:n},t),size:n,interactive:!1,children:[s?(0,$.jsx)(Ae.E,{variant:"subheader-3",className:Ze("card-title"),children:s}):null,e]})}function qe({title:e,children:s,size:n,...t}){return(0,$.jsx)(We,{title:e,size:n,children:(0,$.jsx)(Ue,{...t,className:Ze("doughnut"),children:s})})}function Qe(){return(0,$.jsx)(We,{className:Ze("skeleton-wrapper"),children:(0,$.jsx)(Ye.E,{className:Ze("skeleton")})})}function He(){return(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)(Qe,{}),(0,$.jsx)(Qe,{}),(0,$.jsx)(Qe,{})]})}var Je=n(35736),Ke=n(57439),Xe=n(24543),es=n(46549);const ss=(0,g.cn)("ydb-disk-groups-stats"),ns=({stats:e,children:s})=>(0,$.jsx)("div",{className:ss(),children:(0,$.jsx)(Xe.u,{placement:["right"],pinOnClick:!0,content:(0,$.jsx)(ts,{stats:e}),children:s})});function ts({stats:e}){const{diskType:s,erasure:n,allocatedSize:t,availableSize:l}=e,r=(0,es.dd)(Math.max(t,l),2),a=(0,es.z3)({value:t,size:r}),o=(0,es.z3)({value:l,size:r}),i=Math.round(t/(t+l)*100),d=[{name:$e("disk-type"),content:s},{name:$e("erasure"),content:n},{name:$e("allocated"),content:a},{name:$e("available"),content:o},{name:$e("usage"),content:i+"%"}];return(0,$.jsx)(Ke.u,{items:d,className:ss("popup-content"),responsive:!0})}function ls({value:e,capacity:s,colorizeProgress:n=!0,warningThreshold:t,dangerThreshold:l,inverseColorize:r=!1,legendFormatter:a}){const o=parseFloat(String(e)),i=parseFloat(String(s));let d=o/i*100||0;d=d>100?100:d;const c=d<1?.5:d;return{status:(0,Je.w)({fillWidth:d,warningThreshold:t,dangerThreshold:l,colorizeProgress:n,inverseColorize:r}),percents:(0,se.l9)(d/100),legend:a({value:o,capacity:i}),fill:c}}const rs=["storage","tenant"];const as=e=>Object.values(e).reduce(((e,s)=>(Object.values(s).forEach((s=>{e+=s.createdGroups})),e)),0);function os({value:e,capacity:s}){let n=[];return n=s<1e4?[(0,se.ZV)(Math.round(e)),(0,se.ZV)(Math.round(s))]:(0,se.Nd)(e,s,void 0,"",!0),`${n[0]} / ${n[1]}\n${$e("context_cores")}`}function is({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=ls({value:e,capacity:s,legendFormatter:os,...n});return(0,$.jsxs)(qe,{status:t,fillWidth:a,title:$e("title_cpu"),children:[(0,$.jsx)(Ue.Legend,{children:r}),(0,$.jsx)(Ue.Value,{children:l})]})}function ds({value:e,capacity:s}){const n=(0,se.j9)(e,s,void 0,"\n");return`${n[0]} / ${n[1]}`}function cs({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=ls({value:e,capacity:s,legendFormatter:ds,...n});return(0,$.jsxs)(qe,{status:t,fillWidth:a,title:$e("title_memory"),children:[(0,$.jsx)(Ue.Legend,{children:r}),(0,$.jsx)(Ue.Value,{children:l})]})}function us({value:e,capacity:s}){const n=(0,se.j9)(e,s,void 0,"\n");return`${n[0]} / ${n[1]}`}function vs({value:e,capacity:s,...n}){const{status:t,percents:l,legend:r,fill:a}=ls({value:e,capacity:s,legendFormatter:us,...n});return(0,$.jsxs)(qe,{status:t,fillWidth:a,title:$e("title_storage"),children:[(0,$.jsx)(Ue.Legend,{children:r}),(0,$.jsx)(Ue.Value,{children:l})]})}function hs({value:e}){return(0,Pe.f8)(e)?(0,$.jsx)(Ae.E,{variant:"subheader-3",color:"secondary",children:(0,se.ZV)(e)}):null}function ps({cluster:e,...s}){return s.error?(0,$.jsx)(w.o,{error:s.error,className:Ze("error")}):(0,$.jsx)("div",{className:Ze(),children:(0,$.jsxs)(Ge.s,{gap:4,wrap:!0,children:[(0,$.jsx)(Ge.s,{gap:4,wrap:"nowrap",children:(0,$.jsx)(ms,{...s,cluster:e})}),(0,$.jsx)("div",{className:Ze("cards-container"),children:(0,$.jsx)(gs,{...s,cluster:e})})]})})}function ms({cluster:e,loading:s}){if(s)return(0,$.jsx)(He,{});const n=[];if((0,Me.L)(e)){const{CoresUsed:s,NumberOfCpus:t,CoresTotal:l}=e,r=null!==l&&void 0!==l?l:t;(0,Pe.f8)(s)&&(0,Pe.f8)(r)&&n.push((0,$.jsx)(is,{value:s,capacity:r},"cores"))}const{StorageTotal:t,StorageUsed:l}=e;(0,Pe.f8)(t)&&(0,Pe.f8)(l)&&n.push((0,$.jsx)(vs,{value:l,capacity:t},"storage"));const{MemoryTotal:r,MemoryUsed:a}=e;return(0,Pe.f8)(r)&&(0,Pe.f8)(a)&&n.push((0,$.jsx)(cs,{value:a,capacity:r},"memory")),n}function gs({cluster:e,groupStats:s={},loading:n}){if(n)return null;const l=[],r=function(e){const s=[];if((0,Me.L)(e)&&e.MapNodeRoles)for(const[n,l]of Object.entries(e.MapNodeRoles))rs.includes(n.toLowerCase())&&s.push((0,$.jsxs)(t.Fragment,{children:[n,": ",(0,se.ZV)(l)]},n));return s}(e);if(l.push((0,$.jsx)(We,{size:"l",title:$e("label_nodes"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(hs,{value:null===e||void 0===e?void 0:e.NodesAlive}),null!==r&&void 0!==r&&r.length?(0,$.jsx)(Ie.Y,{tags:r,gap:3}):null]})},"roles")),Object.keys(s).length){const e=function(e){const s=[];return Object.entries(e).forEach((([e,n])=>{Object.values(n).forEach((n=>{s.push((0,$.jsxs)(ns,{stats:n,children:[e,": ",(0,se.ZV)(n.createdGroups)," /"," ",(0,se.ZV)(n.totalGroups)]},`${e}|${n.erasure}`))}))})),s}(s),n=as(s);l.push((0,$.jsx)(We,{size:"l",title:$e("label_storage-groups"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(hs,{value:n}),(0,$.jsx)(Ie.Y,{tags:e,gap:3})]})},"groups"))}const a=function(e){var s;return(0,Me.L)(e)&&e.MapDataCenters?Object.keys(e.MapDataCenters):null===(s=e.DataCenters)||void 0===s?void 0:s.filter(Boolean)}(e);return null!==a&&void 0!==a&&a.length&&l.push((0,$.jsx)(We,{size:"l",title:$e("label_hosts"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(hs,{value:null===e||void 0===e?void 0:e.Hosts}),(0,$.jsx)(Ie.Y,{tags:a,gap:3})]})},"hosts")),e.Tenants&&l.push((0,$.jsx)(We,{size:"l",title:$e("label_databases"),children:(0,$.jsx)(hs,{value:null===e||void 0===e?void 0:e.Tenants})},"tenants")),l}var js=n(42655);const xs=(0,g.cn)("cluster-info");var Ns=n(41650);function fs(){const{cores:e,logging:s}=(0,p.Zd)();return t.useMemo((()=>{const n=[],t=function(e){try{const s=(0,Ns.qF)(e);if(s&&"object"===typeof s&&"url"in s&&"string"===typeof s.url)return s.url}catch{}}(e),{logsUrl:l,sloLogsUrl:r}=function(e){try{const s=(0,Ns.qF)(e);if(s&&"object"===typeof s){return{logsUrl:"url"in s&&"string"===typeof s.url?s.url:void 0,sloLogsUrl:"slo_logs_url"in s&&"string"===typeof s.slo_logs_url?s.slo_logs_url:void 0}}}catch{}return{}}(s);return t&&n.push({title:$e("link_cores"),url:t}),l&&n.push({title:$e("link_logging"),url:l}),r&&n.push({title:$e("link_slo-logs"),url:r}),n}),[e,s])}var bs=n(15132);const ys=(0,g.cn)("ydb-nodes-state");function Cs({state:e,children:s}){return(0,$.jsx)("div",{className:ys({[e.toLowerCase()]:!0}),children:s})}const ks={Green:5,Blue:4,Yellow:3,Orange:2,Red:1,Grey:0},ws=(e,s)=>{const n=[];if((0,Me.L)(e)&&e.MapNodeStates){const s=Object.entries(e.MapNodeStates);s.sort(((e,s)=>ks[s[0]]-ks[e[0]]));const t=s.map((([e,s])=>(0,$.jsx)(Cs,{state:e,children:(0,se.ZV)(s)},e)));n.push({label:$e("label_nodes-state"),value:(0,$.jsx)(Ge.s,{gap:2,children:t})})}const l=(e=>{if((0,Me.L)(e)&&e.MapDataCenters)return Object.entries(e.MapDataCenters).map((([e,s])=>(0,$.jsxs)(t.Fragment,{children:[e,": ",(0,se.ZV)(s)]},e)))})(e);return null!==l&&void 0!==l&&l.length&&n.push({label:$e("label_dc"),value:(0,$.jsx)(Ie.Y,{tags:l,gap:2,className:xs("dc")})}),n.push({label:$e("label_load"),value:(0,$.jsx)(bs.O,{value:null===e||void 0===e?void 0:e.LoadAverage,capacity:null===e||void 0===e?void 0:e.NumberOfCpus})}),n.push(...s),n},Ts=({cluster:e,loading:s,error:n,additionalClusterProps:t={}})=>{const{info:l=[],links:r=[]}=t,a=fs(),o=r.concat(a),i=ws(null!==e&&void 0!==e?e:{},l);return(0,$.jsxs)("div",{className:xs(),children:[n?(0,$.jsx)(w.o,{error:n,className:xs("error")}):null,s?(0,$.jsx)(js.y,{className:xs("skeleton"),rows:4}):(0,$.jsxs)(Ge.s,{gap:10,wrap:"nowrap",children:[n&&!e?null:(0,$.jsxs)("div",{children:[(0,$.jsx)("div",{className:xs("section-title"),children:$e("title_info")}),(0,$.jsx)(L.u,{nameMaxWidth:200,children:i.map((({label:e,value:s})=>(0,$.jsx)(L.u.Item,{name:e,children:s},e)))})]}),o.length?(0,$.jsxs)("div",{children:[(0,$.jsx)("div",{className:xs("section-title"),children:$e("title_links")}),(0,$.jsx)(Ge.s,{direction:"column",gap:4,children:o.map((({title:e,url:s})=>(0,$.jsx)(G.K,{title:e,url:s},e)))})]}):null]})]})};var _s=n(87842);const Ss=(0,g.cn)("ydb-cluster");function Vs({additionalClusterProps:e,additionalTenantsProps:s,additionalNodesProps:n,additionalVersionsProps:g}){const y=t.useRef(null),C=(0,h.fp)(),k=(0,j.YQ)(),w=function(){const e=(0,j.YQ)(),s=(0,j.N4)((e=>e.cluster.defaultClusterTab)),n=(0,o.W5)(v.Ay.cluster),{activeTab:l}=(null===n||void 0===n?void 0:n.params)||{};let r;r=(0,_s.eC)(l)?l:s;return t.useEffect((()=>{r!==s&&e((0,p.Yv)(r))}),[r,s,e]),r}(),[{clusterName:T,backend:_}]=(0,i.useQueryParams)({clusterName:i.StringParam,backend:i.StringParam}),S=(0,j.N4)((e=>(0,p.zR)(e,null!==T&&void 0!==T?T:void 0))),{title:V}=(0,p.Zd)(),E=null!==V&&void 0!==V?V:S,{data:{clusterData:O={},groupsStats:L}={},isLoading:M,error:D}=p.Zh.useGetClusterInfoQuery(null!==T&&void 0!==T?T:void 0),z=D&&"object"===typeof D?D:void 0,A=(0,j.N4)((e=>(0,p.ds)(e,null!==T&&void 0!==T?T:void 0)));t.useEffect((()=>{k((0,m.g)("cluster",{}))}),[k]);const G=t.useMemo((()=>null!==g&&void 0!==g&&g.getVersionToColorMap?null===g||void 0===g?void 0:g.getVersionToColorMap():(0,x._n)(null===O||void 0===O?void 0:O.Versions)),[g,O]),I=t.useMemo((()=>_s.bn.find((({id:e})=>e===w))),[w]);return(0,$.jsxs)("div",{className:Ss(),ref:y,children:[(0,$.jsx)(a.mg,{defaultTitle:`${E} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${E} \u2014 YDB Monitoring`,children:I?(0,$.jsx)("title",{children:I.title}):null}),(0,$.jsx)("div",{className:Ss("header"),children:M?(0,$.jsx)(l.E,{className:Ss("title-skeleton")}):(0,$.jsx)(c.c,{size:"m",status:null===O||void 0===O?void 0:O.Overall,name:E,className:Ss("title")})}),(0,$.jsx)("div",{className:Ss("sticky-wrapper"),children:(0,$.jsx)(d.E,{className:Ss("auto-refresh-control")})}),C&&(0,$.jsx)(ps,{cluster:O,groupStats:L,loading:M,error:z||(null===O||void 0===O?void 0:O.error)}),(0,$.jsx)("div",{className:Ss("tabs-sticky-wrapper"),children:(0,$.jsx)(r.t,{size:"l",allowNotSelected:!0,activeTab:w,items:_s.bn,wrapTo:({id:e},s)=>{const n=(0,_s.a)(e,{clusterName:T,backend:_});return(0,$.jsx)(u.E,{to:n,onClick:()=>{k((0,p.Yv)(e))},children:s},e)}})}),(0,$.jsxs)(o.dO,{children:[(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.overview)).pathname,children:(0,$.jsx)(Ts,{cluster:O,versionToColor:G,loading:M,error:z,additionalClusterProps:e})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.tablets)).pathname,children:(0,$.jsx)("div",{className:Ss("tablets"),children:(0,$.jsx)(b.Q,{loading:M,tablets:A,className:Ss("tablets-table")})})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.tenants)).pathname,children:(0,$.jsx)(te,{additionalTenantsProps:s})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.nodes)).pathname,children:(0,$.jsx)(N.G,{parentRef:y,additionalNodesProps:n})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.storage)).pathname,children:(0,$.jsx)(f.z,{parentRef:y})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.versions)).pathname,children:(0,$.jsx)(ze,{versionToColor:G,cluster:O})}),(0,$.jsx)(o.qh,{render:()=>(0,$.jsx)(o.rd,{to:(0,v.a3)((0,_s.a)(w))})})]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2518.ac97d255.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2518.ac97d255.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/2518.ac97d255.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/2518.ac97d255.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/2726.f30887a6.chunk.js b/ydb/core/viewer/monitoring/static/js/2726.e753cb7c.chunk.js index 7289cca0315..f371c25b809 100644 --- a/ydb/core/viewer/monitoring/static/js/2726.f30887a6.chunk.js +++ b/ydb/core/viewer/monitoring/static/js/2726.e753cb7c.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 2726.f30887a6.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1606,2726],{2726:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>r,language:()=>i});var o=n(1606),r=o.conf,i={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:o.language.operators,symbols:o.language.symbols,escapes:o.language.escapes,digits:o.language.digits,octaldigits:o.language.octaldigits,binarydigits:o.language.binarydigits,hexdigits:o.language.hexdigits,regexpctl:o.language.regexpctl,regexpesc:o.language.regexpesc,tokenizer:o.language.tokenizer}},1606:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>d,language:()=>u});var o,r,i=n(32858),s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,l=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of c(t))g.call(e,r)||r===n||s(e,r,{get:()=>t[r],enumerable:!(o=a(t,r))||o.enumerable});return e},p={};l(p,o=i,"default"),r&&l(r,o,"default");var d={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:p.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:p.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:p.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:p.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")}}},u={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"}]}}}}]);
\ No newline at end of file +/*! For license information please see 2726.e753cb7c.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[1606,2726],{2726:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>r,language:()=>i});var o=n(1606),r=o.conf,i={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:o.language.operators,symbols:o.language.symbols,escapes:o.language.escapes,digits:o.language.digits,octaldigits:o.language.octaldigits,binarydigits:o.language.binarydigits,hexdigits:o.language.hexdigits,regexpctl:o.language.regexpctl,regexpesc:o.language.regexpesc,tokenizer:o.language.tokenizer}},1606:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>d,language:()=>u});var o,r,i=n(80781),s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,l=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of c(t))g.call(e,r)||r===n||s(e,r,{get:()=>t[r],enumerable:!(o=a(t,r))||o.enumerable});return e},p={};l(p,o=i,"default"),r&&l(r,o,"default");var d={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:p.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:p.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:p.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:p.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")}}},u={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"}]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2726.e753cb7c.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2726.e753cb7c.chunk.js.LICENSE.txt new file mode 100644 index 00000000000..34dc0256d74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/2726.e753cb7c.chunk.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/2726.f30887a6.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2726.f30887a6.chunk.js.LICENSE.txt deleted file mode 100644 index a62733317c0..00000000000 --- a/ydb/core/viewer/monitoring/static/js/2726.f30887a6.chunk.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/2742.d5c8fae8.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2742.d5c8fae8.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/2742.d5c8fae8.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/2742.d5c8fae8.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/2828.2fd53975.chunk.js b/ydb/core/viewer/monitoring/static/js/2828.2fd53975.chunk.js deleted file mode 100644 index e8e7cbf2219..00000000000 --- a/ydb/core/viewer/monitoring/static/js/2828.2fd53975.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[2828],{3685:(e,a,s)=>{s.d(a,{$:()=>u});var l=s(77506),t=s(33775),r=s(60712);const n=(0,l.cn)("ydb-entity-page-title");function u({entityName:e,status:a,id:s,className:l}){return(0,r.jsxs)("div",{className:n(null,l),children:[(0,r.jsx)("span",{className:n("prefix"),children:e}),(0,r.jsx)(t.k,{className:n("icon"),status:a,size:"s"}),s]})}},42655:(e,a,s)=>{s.d(a,{y:()=>c});var l=s(59284),t=s(89169),r=s(77506),n=s(66781),u=s(60712);const o=(0,r.cn)("ydb-info-viewer-skeleton"),i=()=>(0,u.jsxs)("div",{className:o("label"),children:[(0,u.jsx)(t.E,{className:o("label__text")}),(0,u.jsx)("div",{className:o("label__dots")})]}),c=({rows:e=8,className:a,delay:s=600})=>{const[r]=(0,n.y)(s);let c=(0,u.jsxs)(l.Fragment,{children:[(0,u.jsx)(i,{}),(0,u.jsx)(t.E,{className:o("value")})]});return r||(c=null),(0,u.jsx)("div",{className:o(null,a),children:[...new Array(e)].map(((e,a)=>(0,u.jsx)("div",{className:o("row"),children:c},`skeleton-row-${a}`)))})}},58389:(e,a,s)=>{s.d(a,{B:()=>c});var l=s(87184),t=s(77506),r=s(90053),n=s(70043),u=s(60712);const o=(0,t.cn)("ydb-page-meta");function i({items:e,loading:a}){return(0,u.jsx)("div",{className:o("info"),children:a?(0,u.jsx)(n.E,{className:o("skeleton")}):e.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c({className:e,...a}){return(0,u.jsxs)(l.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:o(null,e),children:[(0,u.jsx)(i,{...a}),(0,u.jsx)(r.E,{})]})}},70043:(e,a,s)=>{s.d(a,{E:()=>n});var l=s(89169),t=s(66781),r=s(60712);const n=({delay:e=600,className:a})=>{const[s]=(0,t.y)(e);return s?(0,r.jsx)(l.E,{className:a}):null}},75510:(e,a,s)=>{s.r(a),s.d(a,{StorageGroupPage:()=>U});var l=s(59284),t=s(44992),r=s(61750),n=s(67087),u=s(3685),o=s(44508),i=s(42655),c=s(58389),p=s(87184),d=s(7435),g=s(86200),m=s(73891),v=s(41650),h=s(60073),b=s(15132),y=s(33775),f=s(48372);const N=JSON.parse('{"encryption":"Encryption","overall":"Overall","disk-space":"Disk Space","media-type":"Media Type","erasure-species":"Erasure Species","used-space":"Used Space","usage":"Usage","read-throughput":"Read Throughput","write-throughput":"Write Throughput","yes":"Yes","no":"No","group-generation":"Group Generation","latency":"Latency","allocation-units":"Units","state":"State","missing-disks":"Missing Disks","available":"Available Space","latency-put-tablet-log":"Latency (Put Tablet Log)","latency-put-user-data":"Latency (Put User Data)","latency-get-fast":"Latency (Get Fast)"}'),x=(0,f.g4)("storage-group-info",{en:N});var j=s(60712);function k({data:e,className:a,...s}){const{Encryption:l,Overall:t,DiskSpace:r,MediaType:n,ErasureSpecies:u,Used:o,Limit:i,Usage:c,Read:f,Write:N,GroupGeneration:k,Latency:S,AllocationUnits:w,State:G,MissingDisks:E,Available:L,LatencyPutTabletLogMs:P,LatencyPutUserDataMs:T,LatencyGetFastMs:$}=e||{},_=[];(0,d.f8)(k)&&_.push({label:x("group-generation"),value:k}),(0,d.f8)(u)&&_.push({label:x("erasure-species"),value:u}),(0,d.f8)(n)&&_.push({label:x("media-type"),value:n}),(0,d.f8)(l)&&_.push({label:x("encryption"),value:x(l?"yes":"no")}),(0,d.f8)(t)&&_.push({label:x("overall"),value:(0,j.jsx)(y.k,{status:t})}),(0,d.f8)(G)&&_.push({label:x("state"),value:G}),(0,d.f8)(E)&&_.push({label:x("missing-disks"),value:E});const M=[];return(0,d.f8)(o)&&(0,d.f8)(i)&&M.push({label:x("used-space"),value:(0,j.jsx)(b.O,{value:Number(o),capacity:Number(i),formatValues:g.vX,colorizeProgress:!0})}),(0,d.f8)(L)&&M.push({label:x("available"),value:(0,g.vX)(Number(L))}),(0,d.f8)(c)&&M.push({label:x("usage"),value:`${c.toFixed(2)}%`}),(0,d.f8)(r)&&M.push({label:x("disk-space"),value:(0,j.jsx)(y.k,{status:r})}),(0,d.f8)(S)&&M.push({label:x("latency"),value:(0,j.jsx)(y.k,{status:S})}),(0,d.f8)(P)&&M.push({label:x("latency-put-tablet-log"),value:(0,m.Xo)(P)}),(0,d.f8)(T)&&M.push({label:x("latency-put-user-data"),value:(0,m.Xo)(T)}),(0,d.f8)($)&&M.push({label:x("latency-get-fast"),value:(0,m.Xo)($)}),(0,d.f8)(w)&&M.push({label:x("allocation-units"),value:w}),(0,d.f8)(f)&&M.push({label:x("read-throughput"),value:(0,v.O4)(Number(f))}),(0,d.f8)(N)&&M.push({label:x("write-throughput"),value:(0,v.O4)(Number(N))}),(0,j.jsxs)(p.s,{className:a,gap:2,direction:"row",wrap:!0,children:[(0,j.jsx)(h.z_,{info:_,...s}),(0,j.jsx)(h.z_,{info:M,...s})]})}var S=s(67028),w=s(40174),G=s(10174),E=s(54090),L=s(77506),P=s(90182),T=s(41122);const $=JSON.parse('{"storage-group":"Storage Group","storage":"Storage","pool-name":"Pool Name"}'),_=(0,f.g4)("ydb-storage-group-page",{en:$}),M=(0,L.cn)("ydb-storage-group-page");function U(){var e,a;const s=(0,P.YQ)(),p=l.useRef(null),[{groupId:g}]=(0,n.useQueryParams)({groupId:n.StringParam});l.useEffect((()=>{s((0,w.g)("storageGroup",{groupId:g}))}),[s,g]);const[m]=(0,P.Nt)(),v=(0,S.YA)(),h=(0,S.Pm)(),b=G.S.useGetStorageGroupsInfoQuery((0,d.f8)(g)?{groupId:g,shouldUseGroupsHandler:v,with:"all",fieldsRequired:"all"}:t.hT,{pollingInterval:m,skip:!h}),y=null===(e=b.data)||void 0===e||null===(a=e.groups)||void 0===a?void 0:a[0],f=b.isFetching&&void 0===y;return(0,j.jsxs)("div",{className:M(null),ref:p,children:[(()=>{const e=g?`${_("storage-group")} ${g}`:_("storage-group");return(0,j.jsx)(r.mg,{titleTemplate:`%s - ${e} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 YDB Monitoring`})})(),(()=>{if(!g)return null;const e=[`${_("pool-name")}: ${null===y||void 0===y?void 0:y.PoolName}`];return(0,j.jsx)(c.B,{className:M("meta"),loading:f,items:e})})(),(0,j.jsx)(u.$,{className:M("title"),entityName:_("storage-group"),status:(null===y||void 0===y?void 0:y.Overall)||E.m.Grey,id:g}),b.error?(0,j.jsx)(o.o,{error:b.error}):null,f?(0,j.jsx)(i.y,{className:M("info"),rows:10}):(0,j.jsx)(k,{data:y,className:M("info")}),g?(0,j.jsxs)(l.Fragment,{children:[(0,j.jsx)("div",{className:M("storage-title"),children:_("storage")}),(0,j.jsx)(T.p,{groupId:g,parentRef:p})]}):null]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/2854.48cc58dc.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2854.48cc58dc.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/2854.48cc58dc.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/2854.48cc58dc.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/2994.6c6016a8.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/2994.6c6016a8.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/2994.6c6016a8.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/2994.6c6016a8.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/30.69969059.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/30.69969059.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/30.69969059.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/30.69969059.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/3048.692b5966.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/3048.692b5966.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/3048.692b5966.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/3048.692b5966.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/3158.3f2d4e5f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/3158.3f2d4e5f.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/3158.3f2d4e5f.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/3158.3f2d4e5f.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/3207.168a615b.chunk.js b/ydb/core/viewer/monitoring/static/js/3207.168a615b.chunk.js deleted file mode 100644 index 92fc343a764..00000000000 --- a/ydb/core/viewer/monitoring/static/js/3207.168a615b.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3207],{42655:(e,s,n)=>{n.d(s,{y:()=>c});var t=n(59284),a=n(89169),r=n(77506),l=n(66781),o=n(60712);const i=(0,r.cn)("ydb-info-viewer-skeleton"),d=()=>(0,o.jsxs)("div",{className:i("label"),children:[(0,o.jsx)(a.E,{className:i("label__text")}),(0,o.jsx)("div",{className:i("label__dots")})]}),c=({rows:e=8,className:s,delay:n=600})=>{const[r]=(0,l.y)(n);let c=(0,o.jsxs)(t.Fragment,{children:[(0,o.jsx)(d,{}),(0,o.jsx)(a.E,{className:i("value")})]});return r||(c=null),(0,o.jsx)("div",{className:i(null,s),children:[...new Array(e)].map(((e,s)=>(0,o.jsx)("div",{className:i("row"),children:c},`skeleton-row-${s}`)))})}},70043:(e,s,n)=>{n.d(s,{E:()=>l});var t=n(89169),a=n(66781),r=n(60712);const l=({delay:e=600,className:s})=>{const[n]=(0,a.y)(e);return n?(0,r.jsx)(t.E,{className:s}):null}},59984:(e,s,n)=>{n.d(s,{Y:()=>i});n(59284);var t=n(87184),a=n(77506),r=n(60712);const l=(0,a.cn)("tag"),o=({text:e,type:s})=>(0,r.jsx)("div",{className:l({type:s}),children:e}),i=({tags:e,tagsType:s,className:n="",gap:a=1})=>(0,r.jsx)(t.s,{className:n,gap:a,wrap:"wrap",alignItems:"center",children:e&&e.map(((e,n)=>(0,r.jsx)(o,{text:e,type:s},n)))})},51663:(e,s,n)=>{n.r(s),n.d(s,{Cluster:()=>Es});var t=n(59284),a=n(89169),r=n(23871),l=n(61750),o=n(10755),i=n(67087),d=n(90053),c=n(10508),u=n(44294),v=n(92459),h=n(67028),p=n(67298),m=n(40174),g=n(77506),j=n(90182),x=n(66592),N=n(7117),f=n(41122),b=n(88616),y=n(4557),C=n(84476),k=n(28539),T=n(44508),w=n(78524),S=n(48295),_=n(9252),V=n(17594),E=n(95963),O=n(89073),L=n(40336),M=n(63291),D=n(54309),z=n(78668),A=n(71661),G=n(25196),I=n(48372);const P=JSON.parse('{"field_links":"Links","field_monitoring-link":"Monitoring","context_unknown":"unknown database"}'),R=(0,I.g4)("ydb-tenant-name-wrapper",{en:P});var $=n(60712);function B({tenant:e,additionalTenantsProps:s}){var n;const t=(0,j.N4)(z._5),a=((e,s)=>{var n,t;if("function"!==typeof(null===s||void 0===s?void 0:s.prepareTenantBackend))return;let a=null!==(n=e.MonitoringEndpoint)&&void 0!==n?n:e.backend;const r=null!==(t=e.NodeIds)&&void 0!==t?t:e.sharedNodeIds;!a&&r&&r.length>0&&(a={NodeId:r[Math.floor(Math.random()*r.length)]});return s.prepareTenantBackend(a)})(e,s),r=Boolean(a),l=null===s||void 0===s||null===(n=s.getMonitoringLink)||void 0===n?void 0:n.call(s,e.Name,e.Type);return(0,$.jsx)(A.s,{disabled:!t||!l,delayClosing:200,content:l?(0,$.jsx)(L.u,{responsive:!0,children:(0,$.jsx)(L.u.Item,{name:R("field_links"),children:(0,$.jsx)(G.K,{title:R("field_monitoring-link"),url:l})})}):null,placement:["top","bottom"],behavior:M.m.Immediate,children:(0,$.jsx)(c.c,{externalLink:r,name:e.Name||R("context_unknown"),withLeftTrim:!0,status:e.Overall,hasClipboardButton:!0,path:(0,D.YL)({database:e.Name,backend:a})})})}var F=n(58351),U=n(88610),Y=n(53850),Z=n(23536),W=n.n(Z),q=n(54090),Q=n(76086),H=n(56674);const J=(0,Y.Mz)((e=>e),(e=>H.GJ.endpoints.getTenantsInfo.select({clusterName:e}))),K=(0,Y.Mz)((e=>e),((e,s)=>J(s)),(e=>(0,U.CN)(e,Q.Xm)),((e,s,n)=>{var t;const a=null!==(t=s(e).data)&&void 0!==t?t:[];return!n&&a.length>1?a.filter((e=>"Domain"!==e.Type)):a})),X=e=>e.tenants.searchValue,ee=(0,Y.Mz)([K,U.yV,X],((e,s,n)=>{let t=((e,s)=>s===U.s$.ALL?e:e.filter((e=>e.Overall&&e.Overall!==q.m.Green)))(e,s);return t=((e,s)=>e.filter((e=>{const n=new RegExp(W()(s),"i");return n.test(e.Name||"")||n.test(e.controlPlaneName)})))(t,n),t}));var se=n(86200);const ne=(0,g.cn)("tenants"),te=({additionalTenantsProps:e})=>{const s=(0,j.YQ)(),[n]=(0,j.Nt)(),{currentData:a,isFetching:r,error:l}=H.GJ.useGetTenantsInfoQuery({clusterName:F.SL},{pollingInterval:n}),o=r&&void 0===a,i=(0,j.N4)((e=>K(e,F.SL))),d=(0,j.N4)(X),c=(0,j.N4)((e=>ee(e,F.SL))),u=(0,j.N4)(U.yV),v=e=>{s((0,U.$u)(e))},h=e=>{s((0,H.gB)(e))};return(0,$.jsxs)(O.L,{children:[(0,$.jsx)(O.L.Controls,{children:(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)(E.v,{value:d,onChange:h,placeholder:"Database name",className:ne("search")}),(0,$.jsx)(_.k,{value:u,onChange:v}),(0,$.jsx)(k.T,{total:i.length,current:(null===c||void 0===c?void 0:c.length)||0,label:"Databases",loading:o})]})}),l?(0,$.jsx)(T.o,{error:l}):null,(0,$.jsx)(O.L.Table,{loading:o,children:a?(()=>{const s=[{name:"Name",header:"Database",render:({row:s})=>(0,$.jsx)(B,{tenant:s,additionalTenantsProps:e}),width:440,sortable:!0,defaultOrder:y.Ay.DESCENDING},{name:"controlPlaneName",header:"Name",render:({row:e})=>e.controlPlaneName,width:200,sortable:!0,defaultOrder:y.Ay.DESCENDING},{name:"Type",width:200,resizeMinWidth:150,render:({row:e})=>"Serverless"!==e.Type?e.Type:(0,$.jsxs)("div",{className:ne("type"),children:[(0,$.jsx)("span",{className:ne("type-value"),children:e.Type}),(0,$.jsx)(C.$,{className:ne("type-button"),onClick:()=>h(e.sharedTenantName||""),children:"Show shared"})]})},{name:"State",width:90,render:({row:e})=>e.State?e.State.toLowerCase():"\u2014",customStyle:()=>({textTransform:"capitalize"})},{name:"cpu",header:"CPU",width:80,render:({row:e})=>e.cpu&&e.cpu>1e4?(0,se.iM)(e.cpu):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"memory",header:"Memory",width:120,render:({row:e})=>e.memory?(0,se.vX)(e.memory):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"storage",header:"Storage",width:120,render:({row:e})=>e.storage?(0,se.vX)(e.storage):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"nodesCount",header:"Nodes",width:100,render:({row:e})=>e.nodesCount?(0,se.ZV)(e.nodesCount):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"groupsCount",header:"Groups",width:100,render:({row:e})=>e.groupsCount?(0,se.ZV)(e.groupsCount):"\u2014",align:y.Ay.RIGHT,defaultOrder:y.Ay.DESCENDING},{name:"PoolStats",header:"Pools",width:100,resizeMinWidth:60,sortAccessor:({PoolStats:e=[]})=>e.reduce(((e,s)=>e+(s.Usage||0)),0),defaultOrder:y.Ay.DESCENDING,align:y.Ay.LEFT,render:({row:e})=>(0,$.jsx)(S._,{pools:e.PoolStats})}];return 0===c.length&&u!==U.s$.ALL?(0,$.jsx)(w.v,{name:"thumbsUp",width:"200"}):(0,$.jsx)(V.l,{columnsWidthLSKey:"databasesTableColumnsWidth",data:c,columns:s,settings:Q.N3,emptyDataMessage:"No such tenants"})})():null})]})};var ae=n(44433),re=n(74321),le=n(52248),oe=n(15298),ie=n(18143);const de=(0,g.cn)("ydb-cluster-versions-bar"),ce=({versionsValues:e=[],size:s="s",progressClassName:n})=>(0,$.jsxs)("div",{className:de(),children:[(0,$.jsx)(ie.k,{value:100,stack:e,size:s,className:n}),(0,$.jsx)("div",{className:de("versions"),children:e.map(((s,n)=>(0,$.jsx)("div",{className:de("version-title"),style:{color:s.color},title:s.version,children:`${s.version}${n===e.length-1?"":","}`},s.version)))})]});var ue=n(63126),ve=n(78762),he=n(71294);function pe(e){return[(0,ve._E)(),(0,ve.Nh)(e),(0,ve.jl)(),(0,ve.pH)(),(0,ve.fr)(),(0,ve.ID)()]}const me=({nodes:e})=>{const{balancer:s}=(0,p.Zd)(),{additionalNodesProps:n}=(0,he.B)({balancer:s}),t=pe({getNodeRef:n.getNodeRef});return(0,$.jsx)(V.l,{columnsWidthLSKey:"versionsTableColumnsWidth",data:e,columns:t,settings:Q.N3})};var ge=n(96873);const je=(0,g.cn)("ydb-versions-nodes-tree-title"),xe=({title:e,nodes:s,items:n,versionColor:t,versionsValues:a})=>{let r;return r=n?n.reduce(((e,s)=>s.nodes?e+s.nodes.length:e),0):s?s.length:0,(0,$.jsxs)("div",{className:je("overview"),children:[(0,$.jsxs)("div",{className:je("overview-container"),children:[t?(0,$.jsx)("div",{className:je("version-color"),style:{background:t}}):null,e?(0,$.jsxs)("span",{className:je("overview-title"),children:[e,(0,$.jsx)(ge.b,{text:e,size:"s",className:je("clipboard-button"),view:"normal"})]}):null]}),(0,$.jsxs)("div",{className:je("overview-info"),children:[(0,$.jsxs)("div",{children:[(0,$.jsx)("span",{className:je("info-value"),children:r}),(0,$.jsx)("span",{className:je("info-label",{margin:"left"}),children:"Nodes"})]}),a?(0,$.jsxs)("div",{className:je("version-progress"),children:[(0,$.jsx)("span",{className:je("info-label",{margin:"right"}),children:"Versions"}),(0,$.jsx)(ie.k,{size:"s",value:100,stack:a})]}):null]})]})},Ne=(0,g.cn)("ydb-versions-grouped-node-tree"),fe=({title:e,nodes:s,items:n,expanded:a=!1,versionColor:r,versionsValues:l,level:o=0})=>{const[i,d]=t.useState(!1);t.useEffect((()=>{d(a)}),[a]);const c=(0,$.jsx)(xe,{title:e,nodes:s,items:n,versionColor:r,versionsValues:l}),u=()=>{d((e=>!e))};return n?(0,$.jsx)("div",{className:Ne({"first-level":0===o}),children:(0,$.jsx)(ue.G,{name:c,collapsed:!i,hasArrow:!0,onClick:u,onArrowClick:u,children:n.map(((e,s)=>(0,$.jsx)(fe,{title:e.title,nodes:e.nodes,expanded:a,versionColor:e.versionColor,level:o+1},s)))},e)}):(0,$.jsx)("div",{className:Ne({"first-level":0===o}),children:(0,$.jsx)(ue.G,{name:c,collapsed:!i,hasArrow:!0,onClick:u,onArrowClick:u,children:(0,$.jsx)("div",{className:Ne("dt-wrapper"),children:(0,$.jsx)(me,{nodes:s||[]})})},e)})};var be=n(78018),ye=n.n(be),Ce=n(38596);const ke=.5,Te=(e=[],s)=>{const n=e.reduce(((e,s)=>(s.Version&&(e[s.Version]?e[s.Version]=e[s.Version]+1:e[s.Version]=1),e)),{});return Se(Object.keys(n).map((t=>{const a=n[t]/e.length*100;return{title:t,version:t,color:null===s||void 0===s?void 0:s.get((0,Ce.U)(t)),value:a<ke?ke:a}})))};function we(e,s,n){const t=null!==n&&void 0!==n?n:e.reduce(((e,s)=>e+s.count),0);return Se(e.map((e=>{const n=e.count/t*100;return{title:e.name,version:e.name,color:null===s||void 0===s?void 0:s.get(e.name),value:n<ke?ke:n}})))}function Se(e){let s=e[0].value,n=0,t=0;e.forEach(((e,a)=>{t+=e.value,e.value>s&&(s=e.value,n=a)}));const a=[...e];return a[n]={...e[n],value:s+100-t},a}let _e;!function(e){e.VERSION="Version",e.TENANT="Database",e.STORAGE="Storage"}(_e||(_e={}));const Ve=(e,s)=>{var n;return(null===(n=e.title)||void 0===n?void 0:n.localeCompare(s.title||""))||-1},Ee=JSON.parse('{"title_overall":"Overall","title_storage":"Storage nodes","title_database":"Database nodes","title_other":"Other nodes"}'),Oe=(0,I.g4)("ydb-versions",{en:Ee});var Le=n(44992),Me=n(98730);const De=(0,g.cn)("ydb-versions"),ze=({versionToColor:e,cluster:s})=>{const[n]=(0,j.Nt)(),a=((e,s)=>{const{currentData:n}=oe.s.useGetNodesQuery((0,Me.L)(e)?Le.hT:{tablets:!1,fieldsRequired:["SystemState"],group:"Version"});return t.useMemo((()=>(0,Me.L)(e)&&e.MapVersions?we(Object.entries(e.MapVersions).map((([e,s])=>({name:e,count:s}))),s,e.NodesTotal):n?Array.isArray(n.NodeGroups)?we(n.NodeGroups,s,null===e||void 0===e?void 0:e.NodesTotal):Te(n.Nodes,s):[]),[n,s,e])})(s,e),{currentData:r,isLoading:l}=oe.s.useGetNodesQuery({tablets:!1,fieldsRequired:["SystemState"]},{pollingInterval:n}),o=null===r||void 0===r?void 0:r.Nodes,[i,d]=t.useState(_e.VERSION),[c,u]=t.useState(!1),v=e=>{d(e)};if(l)return(0,$.jsx)(le.a,{});const h=((e,s,n)=>{if(e&&e.length){if(n===_e.VERSION){const n=ye()(e,"Version");return Object.keys(n).map((e=>{const t=n[e].filter((({Tenants:e})=>Boolean(e))),a=ye()(t,"Tenants"),r=Object.keys(a).map((e=>({title:e,nodes:a[e]}))).sort(Ve);return r.length?{title:e,items:r,versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))}:null})).filter((e=>Boolean(e)))}{const n=e.filter((({Tenants:e})=>Boolean(e))),t=ye()(n,"Tenants");return Object.keys(t).map((e=>{const n=Te(t[e],s),a=ye()(t[e],"Version"),r=Object.keys(a).map((e=>({title:e,nodes:a[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})));return r.length?{title:e,items:r,versionsValues:n}:null})).filter((e=>Boolean(e))).sort(Ve)}}})(o,e,i),p=((e,s)=>{if(!e||!e.length)return;const n=e.filter((({Roles:e})=>null===e||void 0===e?void 0:e.includes("Storage"))),t=ye()(n,"Version");return Object.keys(t).map((e=>({title:e,nodes:t[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})))})(o,e),m=((e,s)=>{if(!e||!e.length)return;const n=e.filter((({Roles:e,Version:s})=>!e&&s)),t=ye()(n,"Version");return Object.keys(t).map((e=>({title:e,nodes:t[e],versionColor:null===s||void 0===s?void 0:s.get((0,Ce.U)(e))})))})(o,e),g=null!==p&&void 0!==p&&p.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_storage")}),p.map((({title:e,nodes:s,items:n,versionColor:t})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,versionColor:t},`storage-nodes-${e}`)))]}):null,x=null!==h&&void 0!==h&&h.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_database")}),(0,$.jsxs)("div",{className:De("controls"),children:[(0,$.jsxs)("div",{className:De("group"),children:[(0,$.jsx)("span",{className:De("label"),children:"Group by:"}),(0,$.jsxs)(ae.a,{value:i,onUpdate:v,children:[(0,$.jsx)(ae.a.Option,{value:_e.TENANT,children:_e.TENANT}),(0,$.jsx)(ae.a.Option,{value:_e.VERSION,children:_e.VERSION})]})]}),(0,$.jsx)(re.S,{className:De("checkbox"),onChange:()=>u((e=>!e)),checked:c,children:"All expanded"})]}),h.map((({title:e,nodes:s,items:n,versionColor:t,versionsValues:a})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,expanded:c,versionColor:t,versionsValues:a},`tenant-nodes-${e}`)))]}):null,N=null!==m&&void 0!==m&&m.length?(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_other")}),m.map((({title:e,nodes:s,items:n,versionColor:t,versionsValues:a})=>(0,$.jsx)(fe,{title:e,nodes:s,items:n,versionColor:t,versionsValues:a},`other-nodes-${e}`)))]}):null,f=(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)("h4",{children:Oe("title_overall")}),(0,$.jsx)("div",{className:De("overall-wrapper"),children:(0,$.jsx)(ce,{progressClassName:De("overall-progress"),versionsValues:a.filter((e=>"unknown"!==e.title)),size:"m"})})]});return(0,$.jsxs)("div",{className:De(),children:[f,g,x,N]})};var Ae=n(98089),Ge=n(87184),Ie=n(59984),Pe=n(7435);const Re=JSON.parse('{"disk-type":"Disk Type","erasure":"Erasure","allocated":"Allocated","available":"Available","usage":"Usage","label_nodes-state":"Nodes state","label_dc":"Nodes data centers","storage-size":"Storage size","storage-groups":"Storage groups, {{diskType}}","links":"Links","link_cores":"Cores","link_logging":"Logging","context_cores":"cores","title_cpu":"CPU","title_storage":"Storage","title_memory":"Memory","label_nodes":"Nodes","label_hosts":"Hosts","label_storage-groups":"Storage groups","label_databases":"Databases","label_load":"Load"}'),$e=(0,I.g4)("ydb-cluster",{en:Re});var Be=n(2102);const Fe=(0,g.cn)("ydb-doughnut-metrics");function Ue({status:e,fillWidth:s,children:n,className:t}){let a="var(--g-color-line-generic-solid)",r=3.6*s-90;s>50&&(a="var(--doughnut-color)",r=3.6*s+90);const l=r;return(0,$.jsx)("div",{className:Fe(null,t),children:(0,$.jsx)("div",{style:{backgroundImage:`linear-gradient(${l}deg, transparent 50%, ${a} 50%), linear-gradient(-90deg, var(--g-color-line-generic-solid) 50%, transparent 50%)`},className:Fe("doughnut",{status:e}),children:(0,$.jsx)("div",{className:Fe("text-wrapper"),children:n})})})}Ue.Legend=function({children:e,variant:s="subheader-3"}){return(0,$.jsx)(Ae.E,{variant:s,color:"secondary",className:Fe("legend"),children:e})},Ue.Value=function({children:e,variant:s="subheader-2"}){return(0,$.jsx)(Ae.E,{variant:s,color:"secondary",className:Fe("value"),children:e})};var Ye=n(70043);const Ze=(0,g.cn)("ydb-cluster-dashboard");function We({children:e,title:s,size:n,className:t}){return(0,$.jsxs)(Be.A,{className:Ze("card",{size:n},t),size:n,interactive:!1,children:[s?(0,$.jsx)(Ae.E,{variant:"subheader-3",className:Ze("card-title"),children:s}):null,e]})}function qe({title:e,children:s,size:n,...t}){return(0,$.jsx)(We,{title:e,size:n,children:(0,$.jsx)(Ue,{...t,className:Ze("doughnut"),children:s})})}function Qe(){return(0,$.jsx)(We,{className:Ze("skeleton-wrapper"),children:(0,$.jsx)(Ye.E,{className:Ze("skeleton")})})}function He(){return(0,$.jsxs)(t.Fragment,{children:[(0,$.jsx)(Qe,{}),(0,$.jsx)(Qe,{}),(0,$.jsx)(Qe,{})]})}var Je=n(35736),Ke=n(49001),Xe=n(24543),es=n(46549);const ss=(0,g.cn)("ydb-disk-groups-stats"),ns=({stats:e,children:s})=>(0,$.jsx)("div",{className:ss(),children:(0,$.jsx)(Xe.u,{placement:["right"],pinOnClick:!0,content:(0,$.jsx)(ts,{stats:e}),children:s})});function ts({stats:e}){const{diskType:s,erasure:n,allocatedSize:t,availableSize:a}=e,r=(0,es.dd)(Math.max(t,a),2),l=(0,es.z3)({value:t,size:r}),o=(0,es.z3)({value:a,size:r}),i=Math.round(t/(t+a)*100),d=[{name:$e("disk-type"),content:s},{name:$e("erasure"),content:n},{name:$e("allocated"),content:l},{name:$e("available"),content:o},{name:$e("usage"),content:i+"%"}];return(0,$.jsx)(Ke.u,{items:d,className:ss("popup-content"),responsive:!0})}function as({value:e,capacity:s,colorizeProgress:n=!0,warningThreshold:t=60,dangerThreshold:a=80,inverseColorize:r=!1,legendFormatter:l}){const o=parseFloat(String(e)),i=parseFloat(String(s));let d=o/i*100||0;d=d>100?100:d;const c=d<1?.5:d;return{status:(0,Je.w)({fillWidth:d,warningThreshold:t,dangerThreshold:a,colorizeProgress:n,inverseColorize:r}),percents:(0,se.l9)(d/100),legend:l({value:o,capacity:i}),fill:c}}const rs=["storage","tenant"];const ls=e=>Object.values(e).reduce(((e,s)=>(Object.values(s).forEach((s=>{e+=s.createdGroups})),e)),0);function os({value:e,capacity:s}){let n=[];return n=s<1e4?[(0,se.ZV)(Math.round(e)),(0,se.ZV)(Math.round(s))]:(0,se.Nd)(e,s,void 0,"",!0),`${n[0]} / ${n[1]}\n${$e("context_cores")}`}function is({value:e,capacity:s,...n}){const{status:t,percents:a,legend:r,fill:l}=as({value:e,capacity:s,legendFormatter:os,...n});return(0,$.jsxs)(qe,{status:t,fillWidth:l,title:$e("title_cpu"),children:[(0,$.jsx)(Ue.Legend,{children:r}),(0,$.jsx)(Ue.Value,{children:a})]})}function ds({value:e,capacity:s}){const n=(0,se.j9)(e,s,void 0,"\n");return`${n[0]} / ${n[1]}`}function cs({value:e,capacity:s,...n}){const{status:t,percents:a,legend:r,fill:l}=as({value:e,capacity:s,legendFormatter:ds,...n});return(0,$.jsxs)(qe,{status:t,fillWidth:l,title:$e("title_memory"),children:[(0,$.jsx)(Ue.Legend,{children:r}),(0,$.jsx)(Ue.Value,{children:a})]})}function us({value:e,capacity:s}){const n=(0,se.j9)(e,s,void 0,"\n");return`${n[0]} / ${n[1]}`}function vs({value:e,capacity:s,...n}){const{status:t,percents:a,legend:r,fill:l}=as({value:e,capacity:s,legendFormatter:us,...n});return(0,$.jsxs)(qe,{status:t,fillWidth:l,title:$e("title_storage"),children:[(0,$.jsx)(Ue.Legend,{children:r}),(0,$.jsx)(Ue.Value,{children:a})]})}function hs({value:e}){return(0,Pe.f8)(e)?(0,$.jsx)(Ae.E,{variant:"subheader-3",color:"secondary",children:(0,se.ZV)(e)}):null}function ps({cluster:e,...s}){return s.error?(0,$.jsx)(T.o,{error:s.error,className:Ze("error")}):(0,$.jsx)("div",{className:Ze(),children:(0,$.jsxs)(Ge.s,{gap:4,wrap:!0,children:[(0,$.jsx)(Ge.s,{gap:4,wrap:"nowrap",children:(0,$.jsx)(ms,{...s,cluster:e})}),(0,$.jsx)("div",{className:Ze("cards-container"),children:(0,$.jsx)(gs,{...s,cluster:e})})]})})}function ms({cluster:e,loading:s}){if(s)return(0,$.jsx)(He,{});const n=[];if((0,Me.L)(e)){const{CoresUsed:s,NumberOfCpus:t,CoresTotal:a}=e,r=null!==a&&void 0!==a?a:t;(0,Pe.f8)(s)&&(0,Pe.f8)(r)&&n.push((0,$.jsx)(is,{value:s,capacity:r},"cores"))}const{StorageTotal:t,StorageUsed:a}=e;(0,Pe.f8)(t)&&(0,Pe.f8)(a)&&n.push((0,$.jsx)(vs,{value:a,capacity:t},"storage"));const{MemoryTotal:r,MemoryUsed:l}=e;return(0,Pe.f8)(r)&&(0,Pe.f8)(l)&&n.push((0,$.jsx)(cs,{value:l,capacity:r},"memory")),n}function gs({cluster:e,groupStats:s={},loading:n}){if(n)return null;const a=[],r=function(e){const s=[];if((0,Me.L)(e)&&e.MapNodeRoles)for(const[n,a]of Object.entries(e.MapNodeRoles))rs.includes(n.toLowerCase())&&s.push((0,$.jsxs)(t.Fragment,{children:[n,": ",(0,se.ZV)(a)]},n));return s}(e);if(a.push((0,$.jsx)(We,{size:"l",title:$e("label_nodes"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(hs,{value:null===e||void 0===e?void 0:e.NodesAlive}),null!==r&&void 0!==r&&r.length?(0,$.jsx)(Ie.Y,{tags:r,gap:3}):null]})},"roles")),Object.keys(s).length){const e=function(e){const s=[];return Object.entries(e).forEach((([e,n])=>{Object.values(n).forEach((n=>{s.push((0,$.jsxs)(ns,{stats:n,children:[e,": ",(0,se.ZV)(n.createdGroups)," /"," ",(0,se.ZV)(n.totalGroups)]},`${e}|${n.erasure}`))}))})),s}(s),n=ls(s);a.push((0,$.jsx)(We,{size:"l",title:$e("label_storage-groups"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(hs,{value:n}),(0,$.jsx)(Ie.Y,{tags:e,gap:3})]})},"groups"))}const l=function(e){var s;return(0,Me.L)(e)&&e.MapDataCenters?Object.keys(e.MapDataCenters):null===(s=e.DataCenters)||void 0===s?void 0:s.filter(Boolean)}(e);return null!==l&&void 0!==l&&l.length&&a.push((0,$.jsx)(We,{size:"l",title:$e("label_hosts"),children:(0,$.jsxs)(Ge.s,{gap:2,direction:"column",children:[(0,$.jsx)(hs,{value:null===e||void 0===e?void 0:e.Hosts}),(0,$.jsx)(Ie.Y,{tags:l,gap:3})]})},"hosts")),e.Tenants&&a.push((0,$.jsx)(We,{size:"l",title:$e("label_databases"),children:(0,$.jsx)(hs,{value:null===e||void 0===e?void 0:e.Tenants})},"tenants")),a}var js=n(18863),xs=n(42655);const Ns=(0,g.cn)("cluster-info");var fs=n(15132),bs=(n(6354),n(41650));const ys=(0,g.cn)("ydb-nodes-state");function Cs({state:e,children:s}){return(0,$.jsx)("div",{className:ys({[e.toLowerCase()]:!0}),children:s})}const ks={Green:5,Blue:4,Yellow:3,Orange:2,Red:1,Grey:0},Ts=(e,s,n)=>{const a=[];if((0,Me.L)(e)&&e.MapNodeStates){const s=Object.entries(e.MapNodeStates);s.sort(((e,s)=>ks[s[0]]-ks[e[0]]));const n=s.map((([e,s])=>(0,$.jsx)(Cs,{state:e,children:(0,se.ZV)(s)},e)));a.push({label:$e("label_nodes-state"),value:(0,$.jsx)(Ge.s,{gap:2,children:n})})}const r=(e=>{if((0,Me.L)(e)&&e.MapDataCenters)return Object.entries(e.MapDataCenters).map((([e,s])=>(0,$.jsxs)(t.Fragment,{children:[e,": ",(0,se.ZV)(s)]},e)))})(e);return null!==r&&void 0!==r&&r.length&&a.push({label:$e("label_dc"),value:(0,$.jsx)(Ie.Y,{tags:r,gap:2})}),a.push({label:$e("label_load"),value:(0,$.jsx)(fs.O,{value:null===e||void 0===e?void 0:e.LoadAverage,capacity:null===e||void 0===e?void 0:e.NumberOfCpus})}),a.push(...s),n.length&&a.push({label:$e("links"),value:(0,$.jsx)("div",{className:Ns("links"),children:n.map((({title:e,url:s})=>(0,$.jsx)(G.K,{title:e,url:s},e)))})}),a};function ws(e){try{const s=(0,bs.qF)(e);if(s&&"object"===typeof s&&"url"in s&&"string"===typeof s.url)return s.url}catch{}}const Ss=({cluster:e,loading:s,error:n,additionalClusterProps:a={}})=>{const{info:r=[],links:l=[]}=a,o=function(){const{cores:e,logging:s}=(0,p.Zd)();return t.useMemo((()=>{const n=[],t=ws(e),a=ws(s);return t&&n.push({title:$e("link_cores"),url:t}),a&&n.push({title:$e("link_logging"),url:a}),n}),[e,s])}(),i=Ts(null!==e&&void 0!==e?e:{},r,[...l,...o]);return(0,$.jsxs)("div",{className:Ns(),children:[n?(0,$.jsx)(T.o,{error:n,className:Ns("error")}):null,(0,$.jsx)("div",{className:Ns("info"),children:s?(0,$.jsx)(xs.y,{className:Ns("skeleton"),rows:9}):n&&!e?null:(0,$.jsx)(js.z,{dots:!0,info:i})})]})};var _s=n(87842);const Vs=(0,g.cn)("ydb-cluster");function Es({additionalClusterProps:e,additionalTenantsProps:s,additionalNodesProps:n,additionalVersionsProps:g}){const y=t.useRef(null),C=(0,h.fp)(),k=(0,j.YQ)(),T=function(){const e=(0,j.YQ)(),s=(0,j.N4)((e=>e.cluster.defaultClusterTab)),n=(0,o.W5)(v.Ay.cluster),{activeTab:a}=(null===n||void 0===n?void 0:n.params)||{};let r;r=(0,_s.eC)(a)?a:s;return t.useEffect((()=>{r!==s&&e((0,p.Yv)(r))}),[r,s,e]),r}(),[{clusterName:w,backend:S}]=(0,i.useQueryParams)({clusterName:i.StringParam,backend:i.StringParam}),_=(0,j.N4)((e=>(0,p.zR)(e,null!==w&&void 0!==w?w:void 0))),{data:{clusterData:V={},groupsStats:E}={},isLoading:O,error:L}=p.Zh.useGetClusterInfoQuery(null!==w&&void 0!==w?w:void 0),M=L&&"object"===typeof L?L:void 0,D=(0,j.N4)((e=>(0,p.ds)(e,null!==w&&void 0!==w?w:void 0)));t.useEffect((()=>{k((0,m.g)("cluster",{}))}),[k]);const z=t.useMemo((()=>null!==g&&void 0!==g&&g.getVersionToColorMap?null===g||void 0===g?void 0:g.getVersionToColorMap():(0,x._n)(null===V||void 0===V?void 0:V.Versions)),[g,V]),A=t.useMemo((()=>_s.bn.find((({id:e})=>e===T))),[T]);return(0,$.jsxs)("div",{className:Vs(),ref:y,children:[(0,$.jsx)(l.mg,{defaultTitle:`${_} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${_} \u2014 YDB Monitoring`,children:A?(0,$.jsx)("title",{children:A.title}):null}),(0,$.jsx)("div",{className:Vs("header"),children:O?(0,$.jsx)(a.E,{className:Vs("title-skeleton")}):(0,$.jsx)(c.c,{size:"m",status:null===V||void 0===V?void 0:V.Overall,name:_,className:Vs("title")})}),(0,$.jsx)("div",{className:Vs("sticky-wrapper"),children:(0,$.jsx)(d.E,{className:Vs("auto-refresh-control")})}),C&&(0,$.jsx)(ps,{cluster:V,groupStats:E,loading:O,error:M||(null===V||void 0===V?void 0:V.error)}),(0,$.jsx)("div",{className:Vs("tabs-sticky-wrapper"),children:(0,$.jsx)(r.t,{size:"l",allowNotSelected:!0,activeTab:T,items:_s.bn,wrapTo:({id:e},s)=>{const n=(0,_s.a)(e,{clusterName:w,backend:S});return(0,$.jsx)(u.E,{to:n,onClick:()=>{k((0,p.Yv)(e))},children:s},e)}})}),(0,$.jsxs)(o.dO,{children:[(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.overview)).pathname,children:(0,$.jsx)(Ss,{cluster:V,versionToColor:z,loading:O,error:M,additionalClusterProps:e})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.tablets)).pathname,children:(0,$.jsx)("div",{className:Vs("tablets"),children:(0,$.jsx)(b.Q,{loading:O,tablets:D,className:Vs("tablets-table")})})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.tenants)).pathname,children:(0,$.jsx)(te,{additionalTenantsProps:s})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.nodes)).pathname,children:(0,$.jsx)(N.G,{parentRef:y,additionalNodesProps:n})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.storage)).pathname,children:(0,$.jsx)(f.p,{parentRef:y})}),(0,$.jsx)(o.qh,{path:(0,v.a3)((0,_s.a)(_s.Bi.versions)).pathname,children:(0,$.jsx)(ze,{versionToColor:z,cluster:V})}),(0,$.jsx)(o.qh,{render:()=>(0,$.jsx)(o.rd,{to:(0,v.a3)((0,_s.a)(T))})})]})]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3218.6f8c9799.chunk.js b/ydb/core/viewer/monitoring/static/js/3218.6f8c9799.chunk.js deleted file mode 100644 index 96491d90d88..00000000000 --- a/ydb/core/viewer/monitoring/static/js/3218.6f8c9799.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3218],{22983:(e,t,s)=>{s.d(t,{B:()=>c});var n=s(59284),a=s(84476),l=s(84375),o=s(55974),i=s(42829),r=s(60712);function c({children:e,onConfirmAction:t,onConfirmActionSuccess:s,dialogHeader:c,dialogText:d,retryButtonText:u,buttonDisabled:p=!1,buttonView:h="action",buttonTitle:m,buttonClassName:v,withPopover:b=!1,popoverContent:f,popoverPlacement:y="right",popoverDisabled:g=!0}){const[x,k]=n.useState(!1),[E,w]=n.useState(!1),[N,C]=n.useState(!1),j=()=>(0,r.jsx)(a.$,{onClick:()=>k(!0),view:h,disabled:p,loading:!p&&E,className:v,title:m,children:e});return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(o.g,{visible:x,header:c,text:d,withRetry:N,retryButtonText:u,onConfirm:async e=>{w(!0),await t(e)},onConfirmActionSuccess:async()=>{C(!1);try{await(null===s||void 0===s?void 0:s())}finally{w(!1)}},onConfirmActionError:e=>{C((0,i.D)(e)),w(!1)},onClose:()=>{k(!1)}}),b?(0,r.jsx)(l.A,{content:f,placement:y,disabled:g,children:j()}):j()]})}},55974:(e,t,s)=>{s.d(t,{g:()=>f});var n=s(59284),a=s(18677),l=s(71153),o=s(74321),i=s(2198),r=s(99991),c=s(89954),d=s(77506),u=s(48372);const p=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),h=(0,u.g4)("ydb-critical-action-dialog",{en:p});var m=s(60712);const v=(0,d.cn)("ydb-critical-dialog"),b=e=>e.data&&"issues"in e.data&&e.data.issues?(0,m.jsx)(c.O,{hideSeverity:!0,data:e.data}):403===e.status?h("no-rights-error"):e.statusText?e.statusText:h("default-error");function f({visible:e,header:t,text:s,withRetry:c,retryButtonText:d,withCheckBox:u,onClose:p,onConfirm:f,onConfirmActionSuccess:y,onConfirmActionError:g}){const[x,k]=n.useState(!1),[E,w]=n.useState(),[N,C]=n.useState(!1),j=async e=>(k(!0),f(e).then((()=>{y(),p()})).catch((e=>{g(e),w(e)})).finally((()=>{k(!1)})));return(0,m.jsx)(i.l,{open:e,hasCloseButton:!1,className:v(),size:"s",onClose:p,onTransitionExited:()=>{w(void 0),C(!1)},children:E?(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(i.l.Header,{caption:t}),(0,m.jsx)(i.l.Body,{className:v("body"),children:(0,m.jsxs)("div",{className:v("body-message",{error:!0}),children:[(0,m.jsx)("span",{className:v("error-icon"),children:(0,m.jsx)(a.A,{width:"24",height:"22"})}),b(E)]})}),(0,m.jsx)(i.l.Footer,{loading:!1,preset:"default",textButtonApply:c?d||h("button-retry"):void 0,textButtonCancel:h("button-close"),onClickButtonApply:()=>j(!0),onClickButtonCancel:p})]}):(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(i.l.Header,{caption:t}),(0,m.jsxs)(i.l.Body,{className:v("body"),children:[(0,m.jsxs)("div",{className:v("body-message",{warning:!0}),children:[(0,m.jsx)("span",{className:v("warning-icon"),children:(0,m.jsx)(r.I,{data:l.A,size:24})}),s]}),u?(0,m.jsx)(o.S,{checked:N,onUpdate:C,children:h("checkbox-text")}):null]}),(0,m.jsx)(i.l.Footer,{loading:x,preset:"default",textButtonApply:h("button-confirm"),textButtonCancel:h("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!N},onClickButtonCancel:p,onClickButtonApply:()=>j()})]})})}},42829:(e,t,s)=>{s.d(t,{D:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},67440:(e,t,s)=>{s.d(t,{E:()=>k});s(59284);var n=s(92459),a=s(78668),l=s(7435),o=s(77506),i=s(86200),r=s(31684),c=s(7187),d=s(90182),u=s(41650),p=s(60073),h=s(25196),m=s(15132),v=s(33775),b=s(48372);const f=JSON.parse('{"slot-id":"VDisk Slot Id","pool-name":"Storage Pool Name","kind":"Kind","guid":"GUID","incarnation-guid":"Incarnation GUID","instance-guid":"Instance GUID","replication-status":"Replicated","state-status":"VDisk State","space-status":"Disk Space","fresh-rank-satisfaction":"Fresh Rank Satisfaction","level-rank-satisfaction":"Level Rank Satisfaction","front-queues":"Front Queues","has-unreadable-blobs":"Has Unreadable Blobs","size":"Size","read-throughput":"Read Throughput","write-throughput":"Write Throughput","links":"Links","vdisk-page":"VDisk Page","developer-ui":"Developer UI","yes":"Yes","no":"No","vdiks-title":"VDisk"}'),y=(0,b.g4)("ydb-vDisk-info",{en:f});var g=s(60712);const x=(0,o.cn)("ydb-vdisk-info");function k({data:e,withVDiskPageLink:t,withTitle:s,...o}){var c,b;const f=(0,d.N4)(a._5),{AllocatedSize:k,DiskSpace:w,FrontQueues:N,Guid:C,Replicated:j,VDiskState:S,VDiskSlotId:D,Kind:A,SatisfactionRank:B,AvailableSize:T,HasUnreadableBlobs:O,IncarnationGuid:R,InstanceGuid:F,StoragePoolName:L,ReadThroughput:K,WriteThroughput:_,PDiskId:I,NodeId:z}=e||{},P=[];var M,q;((0,l.f8)(D)&&P.push({label:y("slot-id"),value:D}),(0,l.f8)(L)&&P.push({label:y("pool-name"),value:L}),(0,l.f8)(S)&&P.push({label:y("state-status"),value:S}),Number(k)>=0&&Number(T)>=0&&P.push({label:y("size"),value:(0,g.jsx)(m.O,{value:k,capacity:Number(k)+Number(T),formatValues:i.vX,colorizeProgress:!0})}),(0,l.f8)(A)&&P.push({label:y("kind"),value:A}),(0,l.f8)(C)&&P.push({label:y("guid"),value:C}),(0,l.f8)(R)&&P.push({label:y("incarnation-guid"),value:R}),(0,l.f8)(F)&&P.push({label:y("instance-guid"),value:F}),(0,l.f8)(j)&&P.push({label:y("replication-status"),value:y(j?"yes":"no")}),(0,l.f8)(w)&&P.push({label:y("space-status"),value:(0,g.jsx)(v.k,{status:w})}),(0,l.f8)(null===B||void 0===B||null===(c=B.FreshRank)||void 0===c?void 0:c.Flag))&&P.push({label:y("fresh-rank-satisfaction"),value:(0,g.jsx)(v.k,{status:null===B||void 0===B||null===(M=B.FreshRank)||void 0===M?void 0:M.Flag})});(0,l.f8)(null===B||void 0===B||null===(b=B.LevelRank)||void 0===b?void 0:b.Flag)&&P.push({label:y("level-rank-satisfaction"),value:(0,g.jsx)(v.k,{status:null===B||void 0===B||null===(q=B.LevelRank)||void 0===q?void 0:q.Flag})});(0,l.f8)(N)&&P.push({label:y("front-queues"),value:(0,g.jsx)(v.k,{status:N})}),(0,l.f8)(O)&&P.push({label:y("has-unreadable-blobs"),value:y(O?"yes":"no")}),(0,l.f8)(K)&&P.push({label:y("read-throughput"),value:(0,u.O4)(K)}),(0,l.f8)(_)&&P.push({label:y("write-throughput"),value:(0,u.O4)(_)});if((0,l.f8)(I)&&(0,l.f8)(z)&&(0,l.f8)(D)){const e=[];if(t){const t=(0,n.yX)(D,I,z);e.push((0,g.jsx)(h.K,{title:y("vdisk-page"),url:t,external:!1},t))}if(f){const t=(0,r.Wg)({nodeId:z,pDiskId:I,vDiskSlotId:D});e.push((0,g.jsx)(h.K,{title:y("developer-ui"),url:t},t))}e.length&&P.push({label:y("links"),value:(0,g.jsx)("div",{className:x("links"),children:e})})}const U=e&&s?(0,g.jsx)(E,{data:e}):null;return(0,g.jsx)(p.z_,{info:P,title:U,...o})}function E({data:e}){return(0,g.jsxs)("div",{className:x("title"),children:[y("vdiks-title"),(0,g.jsx)(v.k,{status:(0,c.XY)(e.Severity)}),e.StringifiedId]})}},89954:(e,t,s)=>{s.d(t,{O:()=>j});var n=s(59284),a=s(45720),l=s(16929),o=s(71153),i=s(18677),r=s(84476),c=s(33705),d=s(99991),u=s(67884),p=s(77506),h=s(48372);const m=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),v=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),b=(0,h.g4)("ydb-shorty-string",{ru:v,en:m});var f=s(60712);const y=(0,p.cn)("kv-shorty-string");function g({value:e="",limit:t=200,strict:s=!1,displayLength:a=!0,render:l=e=>e,onToggle:o,expandLabel:i=b("default_expand_label"),collapseLabel:r=b("default_collapse_label")}){const[c,d]=n.useState(!1),p=(c?r:i)+(a&&!c?b("chars_count",{count:e.length}):""),h=e.length>t+(s?0:p.length),m=c||!h?e:e.slice(0,t-4)+"\xa0...";return(0,f.jsxs)("div",{className:y(),children:[l(m),h?(0,f.jsx)(u.N,{className:y("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),d((e=>!e)),null===o||void 0===o||o()},children:p}):null]})}var x=s(41650);const k=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function E(e){return function(e){return!!e&&void 0!==k[e]}(e)?k[e]:"S_INFO"}const w=(0,p.cn)("kv-result-issues"),N=(0,p.cn)("kv-issues"),C=(0,p.cn)("kv-issue");function j({data:e,hideSeverity:t}){const[s,a]=n.useState(!1),l="string"===typeof e||null===e||void 0===e?void 0:e.issues,o=Array.isArray(l)&&l.length>0;return(0,f.jsxs)("div",{className:w(),children:[(0,f.jsxs)("div",{className:w("error-message"),children:[(()=>{let s;if("string"===typeof e)s=e;else{var a,l;const o=E(null===e||void 0===e||null===(a=e.error)||void 0===a?void 0:a.severity);s=(0,f.jsxs)(n.Fragment,{children:[t?null:(0,f.jsxs)(n.Fragment,{children:[(0,f.jsx)(O,{severity:o})," "]}),(0,f.jsx)("span",{className:w("error-message-text"),children:null===e||void 0===e||null===(l=e.error)||void 0===l?void 0:l.message})]})}return s})(),o&&(0,f.jsx)(r.$,{view:"normal",onClick:()=>a(!s),children:s?"Hide details":"Show details"})]}),o&&s&&(0,f.jsx)(S,{hideSeverity:t,issues:l})]})}function S({issues:e,hideSeverity:t}){const s=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var s;const n=null!==(s=t.severity)&&void 0!==s?s:10;return Math.min(e,n)}),10);return(0,f.jsx)("div",{className:N(null),children:null===e||void 0===e?void 0:e.map(((e,n)=>(0,f.jsx)(D,{hideSeverity:t,issue:e,expanded:e===s},n)))})}function D({issue:e,hideSeverity:t,level:s=0}){const[a,l]=n.useState(!0),o=E(e.severity),i=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,x.kf)(t.row))return"";const{row:s,column:n}=t;return(0,x.kf)(n)?`${s}:${n}`:`line ${s}`}(e),d=e.issues,u=Array.isArray(d)&&d.length>0,p=a?"bottom":"right";return(0,f.jsxs)("div",{className:C({leaf:!u,"has-issues":u}),children:[(0,f.jsxs)("div",{className:C("line"),children:[u&&(0,f.jsx)(r.$,{view:"flat-secondary",onClick:()=>l(!a),className:C("arrow-toggle"),children:(0,f.jsx)(c.I,{direction:p,size:16})}),t?null:(0,f.jsx)(O,{severity:o}),(0,f.jsxs)("span",{className:C("message"),children:[i&&(0,f.jsx)("span",{className:C("place-text"),title:"Position",children:i}),(0,f.jsx)("div",{className:C("message-text"),children:(0,f.jsx)(g,{value:e.message,expandLabel:"Show full message"})})]}),e.issue_code?(0,f.jsxs)("span",{className:C("code"),children:["Code: ",e.issue_code]}):null]}),u&&a&&(0,f.jsx)("div",{className:C("issues"),children:(0,f.jsx)(A,{issues:d,level:s+1,expanded:a})})]})}function A(e){const{issues:t,level:s,expanded:n}=e;return(0,f.jsx)("div",{className:C("list"),children:t.map(((e,t)=>(0,f.jsx)(D,{issue:e,level:s,expanded:n},t)))})}const B={S_INFO:a.A,S_WARNING:l.A,S_ERROR:o.A,S_FATAL:i.A},T=(0,p.cn)("yql-issue-severity");function O({severity:e}){const t=e.slice(2).toLowerCase();return(0,f.jsxs)("span",{className:T({severity:t}),children:[(0,f.jsx)(d.I,{className:T("icon"),data:B[e]}),(0,f.jsx)("span",{className:T("title"),children:t})]})}},18677:(e,t,s)=>{s.d(t,{A:()=>a});var n=s(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},74321:(e,t,s)=>{s.d(t,{S:()=>c});var n=s(59284),a=s(64222),l=s(46898);function o(e){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),n.createElement("path",{d:"M4 7h9v3H4z"}))}function i(e){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),n.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const r=(0,s(69220).om)("checkbox"),c=n.forwardRef((function(e,t){const{size:s="m",indeterminate:c,disabled:d=!1,content:u,children:p,title:h,style:m,className:v,qa:b}=e,{checked:f,inputProps:y}=(0,a.v)(e),g=u||p,x=n.createElement("span",{className:r("indicator")},n.createElement("span",{className:r("icon"),"aria-hidden":!0},c?n.createElement(o,{className:r("icon-svg",{type:"dash"})}):n.createElement(i,{className:r("icon-svg",{type:"tick"})})),n.createElement("input",Object.assign({},y,{className:r("control")})),n.createElement("span",{className:r("outline")}));return n.createElement(l.m,{ref:t,title:h,style:m,size:s,disabled:d,className:r({size:s,disabled:d,indeterminate:c,checked:f},v),qa:b,control:x},g)}))},2198:(e,t,s)=>{s.d(t,{l:()=>B});var n=s(59284),a=s(72630),l=s(14794),o=s(18670),i=s(98392),r=s(19225),c=s(69220),d=s(99635),u=s(6826);const p=(0,c.om)("modal");function h({open:e=!1,keepMounted:t=!1,disableBodyScrollLock:s=!1,disableEscapeKeyDown:c,disableOutsideClick:h,disableFocusTrap:m,disableAutoFocus:v,focusTrap:b=!0,autoFocus:f=!0,restoreFocusRef:y,onEscapeKeyDown:g,onEnterKeyDown:x,onOutsideClick:k,onClose:E,onTransitionEnter:w,onTransitionEntered:N,onTransitionExit:C,onTransitionExited:j,children:S,style:D,contentOverflow:A="visible",className:B,contentClassName:T,"aria-labelledby":O,"aria-label":R,container:F,qa:L}){const K=n.useRef(null),_=n.useRef(null),[I,z]=n.useState(!1);(0,l.y)({enabled:!s&&(e||I)});const P=(0,o.s)({enabled:e||I,restoreFocusRef:y,focusTrapped:!0});return(0,d.Z)({open:e,disableEscapeKeyDown:c,disableOutsideClick:h,onEscapeKeyDown:g,onEnterKeyDown:x,onOutsideClick:k,onClose:E,contentRefs:[_],type:"modal"}),n.createElement(a.A,{nodeRef:K,in:e,addEndListener:e=>{var t;return null===(t=K.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,u.L)(p),mountOnEnter:!t,unmountOnExit:!t,appear:!0,onEnter:()=>{z(!0),null===w||void 0===w||w()},onExit:()=>{z(!0),null===C||void 0===C||C()},onEntered:()=>{z(!1),null===N||void 0===N||N()},onExited:()=>{z(!1),null===j||void 0===j||j()}},n.createElement(i.Z,{container:F},n.createElement("div",{ref:K,style:D,className:p({open:e},B),"data-qa":L},n.createElement("div",{className:p("content-aligner")},n.createElement("div",{className:p("content-wrapper")},n.createElement(r.s,{enabled:!m&&b&&e&&!I,autoFocus:!v&&f},n.createElement("div",Object.assign({ref:_,tabIndex:-1,role:"dialog","aria-modal":e,"aria-label":R,"aria-labelledby":O,className:p("content",{"has-scroll":"auto"===A},T)},P),S)))))))}var m=s(81240),v=s(84476),b=s(99991),f=s(72837);const y=JSON.parse('{"close":"Close dialog"}'),g=JSON.parse('{"close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e"}'),x=(0,f.N)({en:y,ru:g},"Dialog"),k=(0,c.om)("dialog-btn-close");function E({onClose:e}){return n.createElement("div",{className:k()},n.createElement(v.$,{view:"flat",size:"l",className:k("btn"),onClick:t=>e(t,{isOutsideClick:!1}),extraProps:{"aria-label":x("close")}},n.createElement(b.I,{data:m.A,size:20})))}const w=(0,c.om)("dialog-body");const N=(0,c.om)("dialog-divider");var C=s(39238);const j=(0,c.om)("dialog-footer");class S extends n.Component{constructor(){super(...arguments),this.errorTooltipRef=n.createRef(),this.handleKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.onClickButtonApply&&this.props.onClickButtonApply(e))}}componentDidMount(){this.props.listenKeyEnter&&this.attachKeyDownListeners()}componentDidUpdate(e){!this.props.listenKeyEnter&&e.listenKeyEnter&&this.detachKeyDownListeners(),this.props.listenKeyEnter&&!e.listenKeyEnter&&this.attachKeyDownListeners()}componentWillUnmount(){this.detachKeyDownListeners()}render(){const{onClickButtonCancel:e,onClickButtonApply:t,loading:s,textButtonCancel:a,textButtonApply:l,propsButtonCancel:o,propsButtonApply:i,preset:r,children:c,errorText:d,showError:u,renderButtons:p,className:h}=this.props,m=n.createElement("div",{className:j("button",{action:"cancel"})},n.createElement(v.$,Object.assign({view:l?"flat":"normal",size:"l",width:"max",onClick:e,disabled:s},o),a)),b=n.createElement("div",{className:j("button",{action:"apply"})},n.createElement(v.$,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:s,className:j("button-apply",{preset:r})},i),l),d&&n.createElement(C.z,{open:u,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},n.createElement("div",{className:j("error")},d)));return n.createElement("div",{className:j(null,h)},n.createElement("div",{className:j("children")},c),n.createElement("div",{className:j("bts-wrapper")},p?p(b,m):n.createElement(n.Fragment,null,a&&m,l&&b)))}attachKeyDownListeners(){setTimeout((()=>{window.addEventListener("keydown",this.handleKeyDown)}),0)}detachKeyDownListeners(){window.removeEventListener("keydown",this.handleKeyDown)}}S.defaultProps={preset:"default",showError:!1,listenKeyEnter:!1};const D=(0,c.om)("dialog-header");const A=(0,c.om)("dialog");class B extends n.Component{constructor(){super(...arguments),this.handleCloseButtonClick=e=>{const{onClose:t}=this.props;t(e.nativeEvent,"closeButtonClick")}}render(){const{container:e,children:t,open:s,disableBodyScrollLock:a,disableEscapeKeyDown:l,disableOutsideClick:o,disableFocusTrap:i,disableAutoFocus:r,restoreFocusRef:c,keepMounted:d,size:u,contentOverflow:p="visible",className:m,modalClassName:v,hasCloseButton:b,onEscapeKeyDown:f,onEnterKeyDown:y,onOutsideClick:g,onClose:x,onTransitionEnter:k,onTransitionEntered:w,onTransitionExit:N,onTransitionExited:C,"aria-label":j,"aria-labelledby":S,qa:D}=this.props;return n.createElement(h,{open:s,contentOverflow:p,disableBodyScrollLock:a,disableEscapeKeyDown:l,disableOutsideClick:o,disableFocusTrap:i,disableAutoFocus:r,restoreFocusRef:c,keepMounted:d,onEscapeKeyDown:f,onEnterKeyDown:y,onOutsideClick:g,onClose:x,onTransitionEnter:k,onTransitionEntered:w,onTransitionExit:N,onTransitionExited:C,className:A("modal",v),"aria-label":j,"aria-labelledby":S,container:e,qa:D},n.createElement("div",{className:A({size:u,"has-close":b,"has-scroll":"auto"===p},m)},t,b&&n.createElement(E,{onClose:this.handleCloseButtonClick})))}}B.defaultProps={disableBodyScrollLock:!1,disableEscapeKeyDown:!1,disableOutsideClick:!1,keepMounted:!1,hasCloseButton:!0},B.Footer=S,B.Header=function(e){const{caption:t="",insertBefore:s,insertAfter:a,className:l,id:o}=e;return n.createElement("div",{className:D(null,l)},s,n.createElement("div",{className:D("caption"),id:o},t),a)},B.Body=function(e){const{className:t,hasBorders:s=!1}=e;return n.createElement("div",{className:w({"has-borders":s},t)},e.children)},B.Divider=function({className:e}){return n.createElement("div",{className:N(null,e)})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3230.dbae485f.chunk.js b/ydb/core/viewer/monitoring/static/js/3230.dbae485f.chunk.js deleted file mode 100644 index 91d65452dcc..00000000000 --- a/ydb/core/viewer/monitoring/static/js/3230.dbae485f.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3230],{90053:(e,t,s)=>{s.d(t,{E:()=>h});var n=s(8873),r=s(84476),o=s(24555),a=s(21334),i=s(77506),l=s(90182),d=s(48372);const u=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),c=(0,d.g4)("ydb-diagnostics-autorefresh-control",{en:u});var m=s(60712);const p=(0,i.cn)("auto-refresh-control");function h({className:e}){const t=(0,l.YQ)(),[s,i]=(0,l.Nt)();return(0,m.jsxs)("div",{className:p(null,e),children:[(0,m.jsx)(r.$,{view:"flat-secondary",onClick:()=>{t(a.F.util.invalidateTags(["All"]))},extraProps:{"aria-label":c("Refresh")},children:(0,m.jsx)(r.$.Icon,{children:(0,m.jsx)(n.A,{})})}),(0,m.jsxs)(o.l,{value:[String(s)],onUpdate:e=>{i(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,m.jsx)(o.l.Option,{value:"0",children:c("None")}),(0,m.jsx)(o.l.Option,{value:"15000",children:c("15 sec")}),(0,m.jsx)(o.l.Option,{value:"60000",children:c("1 min")}),(0,m.jsx)(o.l.Option,{value:"120000",children:c("2 min")}),(0,m.jsx)(o.l.Option,{value:"300000",children:c("5 min")})]})]})}},71661:(e,t,s)=>{s.d(t,{s:()=>l});var n=s(84375),r=s(77506),o=s(60712);const a=(0,r.cn)("ydb-cell-with-popover"),i=100;function l({children:e,className:t,wrapperClassName:s,fullWidth:r,...l}){return(0,o.jsx)("div",{className:a({fullWidth:r},s),children:(0,o.jsx)(n.A,{delayClosing:i,delayOpening:i,className:a("popover",{"full-width":r},t),...l,children:e})})}},24543:(e,t,s)=>{s.d(t,{u:()=>a});var n=s(59284),r=s(39238),o=s(60712);const a=({children:e,content:t,className:s,pinOnClick:a,hasArrow:i=!0,placement:l=["top","bottom"],...d})=>{const[u,c]=n.useState(!1),[m,p]=n.useState(!1),h=n.useRef(null);return(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)(r.z,{anchorRef:h,open:m||u,placement:l,hasArrow:i,onOutsideClick:()=>{p(!1)},...d,children:t}),(0,o.jsx)("span",{className:s,ref:h,onClick:a?()=>{p(!0)}:void 0,onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:e})]})}},88226:(e,t,s)=>{s.d(t,{V:()=>d});s(59284);var n=s(77506),r=s(76086),o=s(7187),a=s(90182),i=s(60712);const l=(0,n.cn)("storage-disk-progress-bar");function d({diskAllocatedPercent:e=-1,severity:t,compact:s,faded:n,inactive:d,empty:u,content:c,className:m}){const[p]=(0,a.iK)(r.TJ),h={inverted:p,compact:s,faded:n,empty:u,inactive:d},g=void 0!==t&&(0,o.XY)(t);g&&(h[g.toLocaleLowerCase()]=!0);return(0,i.jsxs)("div",{className:l(h,m),role:"meter","aria-label":"Disk allocated space","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e,children:[(()=>{if(s)return(0,i.jsx)("div",{className:l("fill-bar",h),style:{width:"100%"}});const t=p?100-e:e;return e>=0?(0,i.jsx)("div",{className:l("fill-bar",h),style:{width:`${t}%`}}):null})(),c||(!s&&e>=0?(0,i.jsx)("div",{className:l("title"),children:`${Math.round(e)}%`}):null)]})}},53755:(e,t,s)=>{s.d(t,{T:()=>l});var n=s(47665),r=s(77506);const o=(0,s(48372).g4)("ydb-entities-count",{ru:{of:"\u0438\u0437"},en:{of:"of"}});var a=s(60712);const i=(0,r.cn)("ydb-entities-count"),l=({total:e,current:t,label:s,loading:r,className:l})=>{let d="";return s&&(d+=`${s}: `),r?d+="...":(d+=`${t}`,e&&Number(e)!==Number(t)&&(d+=` ${o("of")} ${e}`)),(0,a.jsx)(n.J,{theme:"info",size:"m",className:i(null,l),children:d})}},10508:(e,t,s)=>{s.d(t,{c:()=>c});var n=s(67884),r=s(96873),o=s(54090),a=s(77506),i=s(82015),l=s(33775),d=s(60712);const u=(0,a.cn)("entity-status");function c({status:e=o.m.Grey,name:t="",label:s,path:a,iconPath:c,size:m="s",mode:p="color",showStatus:h=!0,externalLink:g=!1,withLeftTrim:v=!1,hasClipboardButton:f,clipboardButtonAlwaysVisible:S=!1,className:N}){const k=()=>h?(0,d.jsx)(l.k,{className:u("icon"),status:e,size:m,mode:p}):null;return(0,d.jsxs)("div",{className:u(null,N),children:[c?(b=c,(0,d.jsx)(n.N,{target:"_blank",href:b,children:k()})):k(),s&&(0,d.jsx)("span",{title:s,className:u("label",{size:m,state:e.toLowerCase()}),children:s}),(a||t)&&(0,d.jsxs)("div",{className:u("wrapper",{"with-button":f}),children:[(0,d.jsx)("span",{className:u("link",{"with-left-trim":v}),title:t,children:a?g?(0,d.jsx)(n.N,{className:u("name"),href:a,children:t}):(0,d.jsx)(i.E,{className:u("name"),to:a,children:t}):t&&(0,d.jsx)("span",{className:u("name"),children:t})}),f&&(0,d.jsx)("div",{className:u("controls-wrapper",{visible:S}),children:(0,d.jsx)(r.b,{text:t,size:"xs",view:"normal",className:u("clipboard-button",{visible:S})})})]})]});var b}},13096:(e,t,s)=>{s.d(t,{P:()=>u});var n=s(59284),r=s(39238),o=s(43781),a=s.n(o),i=s(77506),l=s(60712);const d=(0,i.cn)("hover-popup"),u=({children:e,popupContent:t,showPopup:s,offset:o,anchorRef:i,onShowPopup:u,onHidePopup:c,placement:m=["top","bottom"],contentClassName:p})=>{const[h,g]=n.useState(!1),v=n.useRef(null),f=n.useMemo((()=>a()((()=>{g(!0),null===u||void 0===u||u()}),100)),[u]),S=n.useCallback((()=>{g(!1),null===c||void 0===c||c()}),[c]),N=n.useMemo((()=>a()(S,100)),[S]),k=f,[b,y]=n.useState(!1),[x,w]=n.useState(!1),D=n.useCallback((()=>{y(!0)}),[]),I=n.useCallback((()=>{y(!1)}),[]),C=n.useCallback((()=>{w(!0)}),[]),j=n.useCallback((()=>{w(!1)}),[]),P=n.useCallback((()=>{w(!1),y(!1),S()}),[S]),A=h||s||b||x;return(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)("span",{ref:v,onMouseEnter:k,onMouseLeave:()=>{f.cancel(),N()},children:e}),(0,l.jsx)(r.z,{contentClassName:d(null,p),anchorRef:i||v,open:A,onMouseEnter:D,onMouseLeave:I,onEscapeKeyDown:P,onBlur:j,placement:m,hasArrow:!0,offset:o||[0,12],children:(0,l.jsx)("div",{onContextMenu:C,children:t})})]})}},73473:(e,t,s)=>{s.d(t,{S:()=>b});var n=s(38501),r=s(40336),o=s(46549),a=s(77506),i=s(76086),l=s(35736),d=s(41650),u=s(13096),c=s(15132),m=s(48372);const p=JSON.parse('{"text_external-consumption":"External Consumption","text_allocator-caches":"Allocator Caches","text_shared-cache":"Shared Cache","text_memtable":"MemTable","text_query-execution":"Query Execution","text_usage":"Usage","text_soft-limit":"Soft Limit","text_hard-limit":"Hard Limit","text_other":"Other"}'),h=(0,m.g4)("ydb-memory-viewer",{en:p});function g(e){return(0,d.kf)(e)?parseFloat(String(e)):void 0}var v=s(60712);const f=1,S=.01*i.J7,N=(0,a.cn)("memory-viewer"),k=(e,t)=>[(0,o.z3)({value:e,size:"gb",withSizeLabel:!1,precision:2}),(0,o.z3)({value:t,size:"gb",withSizeLabel:!0,precision:1})];function b({stats:e,percents:t,formatValues:s,className:a,warningThreshold:i=60,dangerThreshold:m=80}){var p;const b=null!==(p=e.AnonRss)&&void 0!==p?p:function(e){const t=g(e.AllocatedMemory)||0,s=g(e.AllocatorCachesMemory)||0;return String(t+s)}(e),y=e.HardLimit,x=(0,n.D)();let w=Math.round(parseFloat(String(b))/parseFloat(String(y))*100)||0;w=w>100?100:w;let D=b,I=y,C="/";t?(D=w+"%",I="",C=""):s&&([D,I]=s(Number(b),Number(y)));const j=function(e,t){const s=[{label:h("text_shared-cache"),key:"SharedCacheConsumption",value:g(e.SharedCacheConsumption),capacity:g(e.SharedCacheLimit),isInfo:!1},{label:h("text_query-execution"),key:"QueryExecutionConsumption",value:g(e.QueryExecutionConsumption),capacity:g(e.QueryExecutionLimit),isInfo:!1},{label:h("text_memtable"),key:"MemTableConsumption",value:g(e.MemTableConsumption),capacity:g(e.MemTableLimit),isInfo:!1},{label:h("text_allocator-caches"),key:"AllocatorCachesMemory",value:g(e.AllocatorCachesMemory),isInfo:!1}],n=s.filter((e=>void 0!==e.value)).reduce(((e,t)=>e+t.value),0),r=Math.max(0,t-n);return s.push({label:h("text_other"),key:"Other",value:r,isInfo:!1}),s.push({label:h("text_external-consumption"),key:"ExternalConsumption",value:g(e.ExternalConsumption),isInfo:!0},{label:h("text_usage"),key:"Usage",value:t,isInfo:!0},{label:h("text_soft-limit"),key:"SoftLimit",value:g(e.SoftLimit),isInfo:!0},{label:h("text_hard-limit"),key:"HardLimit",value:g(e.HardLimit),isInfo:!0}),s.filter((e=>void 0!==e.value))}(e,Number(b)),P=(0,l.w)({fillWidth:w,warningThreshold:i,dangerThreshold:m,colorizeProgress:!0});let A=0;return(0,v.jsx)(u.P,{popupContent:(0,v.jsx)(r.u,{responsive:!0,children:j.map((({label:e,value:t,capacity:s,key:n})=>(0,v.jsx)(r.u.Item,{name:(0,v.jsxs)("div",{className:N("container"),children:[(0,v.jsx)("div",{className:N("legend",{type:n})}),(0,v.jsx)("div",{className:N("name"),children:e})]}),children:s?(0,v.jsx)(c.O,{value:t,capacity:s,formatValues:k,colorizeProgress:!0}):(0,o.z3)({value:t,size:"gb",withSizeLabel:!0,precision:2})},e)))}),children:(0,v.jsx)("div",{className:N({theme:x,status:P},a),children:(0,v.jsxs)("div",{className:N("progress-container"),children:[j.filter((({isInfo:e})=>!e)).map((e=>{if(e.value<S)return null;const t=Math.max((s=e.value,b?s/parseFloat(String(y))*100:0),f);var s;const n=A;return A+=t,(0,v.jsx)("div",{className:N("segment",{type:e.key}),style:{width:`${t}%`,left:`${n}%`}},e.key)})),(0,v.jsx)("div",{className:N("text"),children:(0,d.kf)(y)?`${D} ${C} ${I}`:D})]})})})}},96927:(e,t,s)=>{s.d(t,{O:()=>f,f:()=>v});var n=s(59284),r=s(78668),o=s(24600),a=s(54090),i=s(7435),l=s(76086),d=s(31684),u=s(90182),c=s(41650),m=s(60073),p=s(25196),h=s(60712);const g=[a.m.Orange,a.m.Red,a.m.Yellow],v=(e,t,s)=>{const{AvailableSize:n,TotalSize:r,State:o,PDiskId:a,NodeId:u,StringifiedId:m,Path:v,Realtime:f,Type:S,Device:N}=e,k=[{label:"PDisk",value:null!==m&&void 0!==m?m:l.Pd},{label:"State",value:o||"not available"},{label:"Type",value:S||"unknown"}];if(u&&k.push({label:"Node Id",value:u}),t&&k.push({label:"Host",value:t}),v&&k.push({label:"Path",value:v}),(0,c.kf)(r)&&k.push({label:"Available",value:`${(0,c.wb)(n)} of ${(0,c.wb)(r)}`}),f&&g.includes(f)&&k.push({label:"Realtime",value:f}),N&&g.includes(N)&&k.push({label:"Device",value:N}),s&&(0,i.f8)(u)&&(0,i.f8)(a)){const e=(0,d.ar)({nodeId:u,pDiskId:a});k.push({label:"Links",value:(0,h.jsx)(p.K,{title:"Developer UI",url:e})})}return k},f=({data:e})=>{const t=(0,u.N4)(r._5),s=(0,u.N4)(o.E),a=(0,i.f8)(e.NodeId)?null===s||void 0===s?void 0:s.get(e.NodeId):void 0,l=n.useMemo((()=>v(e,a,t)),[e,a,t]);return(0,h.jsx)(m.z_,{title:"PDisk",info:l,size:"s"})}},40427:(e,t,s)=>{s.d(t,{k5:()=>E});var n=s(59284),r=s(89073);const o=s(21334).F.injectEndpoints({endpoints:function(e){return{fetchTableChunk:e.query({queryFn:async({offset:e,limit:t,sortParams:s,filters:n,columnsIds:r,fetchData:o},{signal:a})=>{try{return{data:await o({limit:t,offset:e,filters:n,sortParams:s,columnsIds:r,signal:a})}}catch(i){return{error:i}}},providesTags:["All"]})}}});var a=s(7435),i=s(90182),l=s(44508),d=s(89169);const u=!0;const c=(0,s(77506).cn)("ydb-paginated-table");var m=s(60712);const p=({children:e,className:t,height:s,width:n,align:r="left",resizeable:o})=>(0,m.jsx)("td",{className:c("row-cell",{align:r},t),style:{height:`${s}px`,width:`${n}px`,maxWidth:o?`${n}px`:void 0},children:e}),h=({index:e,columns:t,height:s})=>(0,m.jsx)("tr",{className:c("row",{loading:!0}),children:t.map((t=>{var n;const r=null!==(n=t.resizeable)&&void 0!==n?n:u;return(0,m.jsx)(p,{height:s,width:t.width,align:t.align,className:t.className,resizeable:r,children:(0,m.jsx)(d.E,{className:c("row-skeleton"),style:{width:"80%",height:"50%"}})},`${t.name}${e}`)}))}),g=({row:e,index:t,columns:s,getRowClassName:n,height:r})=>{const o=null===n||void 0===n?void 0:n(e);return(0,m.jsx)("tr",{className:c("row",o),children:s.map((s=>{var n;const o=null!==(n=s.resizeable)&&void 0!==n?n:u;return(0,m.jsx)(p,{height:r,width:s.width,align:s.align,className:s.className,resizeable:o,children:s.render({row:e,index:t})},`${s.name}${t}`)}))})},v=({columns:e,children:t})=>(0,m.jsx)("tr",{className:c("row",{empty:!0}),children:(0,m.jsx)("td",{colSpan:e.length,className:c("td"),children:t})});var f=s(48372);const S=JSON.parse('{"empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),N=(0,f.g4)("ydb-paginated-table",{ru:S,en:{empty:"No data"}});const k=n.memo;const b=k((function({id:e,chunkSize:t,calculatedCount:s,rowHeight:r,columns:d,fetchData:u,tableName:c,filters:p,sortParams:f,getRowClassName:S,renderErrorMessage:k,renderEmptyDataMessage:b,onDataFetched:y,isActive:x}){var w;const[D,I]=n.useState(!0),[C]=(0,i.Nt)(),j={offset:e*t,limit:t,fetchData:u,filters:p,sortParams:f,columnsIds:d.map((e=>e.name)),tableName:c};o.useFetchTableChunkQuery(j,{skip:D||!x,pollingInterval:C});const{currentData:P,error:A}=o.endpoints.fetchTableChunk.useQueryState(j);n.useEffect((()=>{let e=0;return x&&D&&(e=window.setTimeout((()=>{I(!1)}),200)),()=>{window.clearTimeout(e)}}),[x,D]),n.useEffect((()=>{if(P&&x){const{total:e=0,found:t=0}=P;y(e,t)}}),[P,x,y]);const E=(null===P||void 0===P||null===(w=P.data)||void 0===w?void 0:w.length)||s;return(0,m.jsx)("tbody",{id:e.toString(),style:{height:E*r+"px",display:x?"table-row-group":"block"},children:(()=>{var e;if(!x)return null;if(!P){if(A){const e=A;return(0,m.jsx)(v,{columns:d,children:k?k(e):(0,m.jsx)(l.o,{error:e})})}return(0,a._e)(E).map((e=>(0,m.jsx)(h,{columns:d,height:r,index:e},e)))}return null!==(e=P.data)&&void 0!==e&&e.length?P.data.map(((e,t)=>(0,m.jsx)(g,{index:t,row:e,columns:d,height:r,getRowClassName:S},t))):(0,m.jsx)(v,{columns:d,children:b?b():N("empty")})})()})}));function y({minWidth:e,maxWidth:t,getCurrentColumnWidth:s,onResize:r}){const o=n.useRef(null),[a,i]=n.useState(!1);return n.useEffect((()=>{const n=o.current;if(!n)return;let a,l,d;const u=function(e){let t,s=null;return function(...n){t=n,"number"!==typeof s&&(s=requestAnimationFrame((()=>{e(...t),s=null})))}}((s=>{if(x(s),"number"!==typeof a||"number"!==typeof l)return;const n=s.clientX-a,o=function(e,t=40,s=1/0){return Math.max(t,Math.min(e,s))}(l+n,e,t);o!==d&&(d=o,null===r||void 0===r||r(d))})),c=e=>{x(e),void 0!==d&&(null===r||void 0===r||r(d)),i(!1),a=void 0,document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)},m=e=>{l=s(),x(e),a=e.clientX,i(!0),document.addEventListener("mousemove",u),document.addEventListener("mouseup",c)};return n.addEventListener("mousedown",m),()=>{n.removeEventListener("mousedown",m),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)}}),[r,e,t,s]),(0,m.jsx)("span",{ref:o,className:c("resize-handler",{resizing:a}),onClick:e=>x(e)})}function x(e){e.preventDefault(),e.stopPropagation()}const w=({order:e})=>(0,m.jsx)("svg",{className:c("sort-icon",{desc:-1===e}),viewBox:"0 0 10 6",width:"10",height:"6",children:(0,m.jsx)("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})}),D=({sortOrder:e,sortable:t,defaultSortOrder:s})=>t?(0,m.jsx)("span",{className:c("sort-icon-container",{shadow:!e}),children:(0,m.jsx)(w,{order:e||s})}):null,I=({column:e,resizeable:t,sortOrder:s,defaultSortOrder:r,onSort:o,rowHeight:a,onCellMount:i,onCellUnMount:l,onColumnsResize:d})=>{var u;const p=n.useRef(null);n.useEffect((()=>{const e=p.current;return e&&(null===i||void 0===i||i(e)),()=>{e&&(null===l||void 0===l||l(e))}}),[i,l]);const h=n.useCallback((()=>{var e;return null===(e=p.current)||void 0===e?void 0:e.getBoundingClientRect().width}),[]),g=n.useCallback((t=>{null===d||void 0===d||d(e.name,t)}),[d,e.name]),v=null!==(u=e.header)&&void 0!==u?u:e.name,f={height:`${a}px`,width:`${e.width}px`,minWidth:t?`${e.width}px`:void 0,maxWidth:t?`${e.width}px`:void 0};return(0,m.jsxs)("th",{ref:p,className:c("head-cell-wrapper"),style:f,children:[(0,m.jsxs)("div",{className:c("head-cell",{align:e.align,sortable:e.sortable},e.className),onClick:()=>{e.sortable&&(null===o||void 0===o||o(e.name))},children:[(0,m.jsx)("div",{className:c("head-cell-content"),children:v}),(0,m.jsx)(D,{sortOrder:s,sortable:e.sortable,defaultSortOrder:r})]}),t?(0,m.jsx)(y,{maxWidth:e.resizeMaxWidth,minWidth:e.resizeMinWidth,getCurrentColumnWidth:h,onResize:g}):null]})},C=({columns:e,onSort:t,onColumnsResize:s,defaultSortOrder:r=-1,rowHeight:o=41})=>{const[a,i]=n.useState({}),l=e=>{let s={};if(e===a.columnId){if(a.sortOrder&&a.sortOrder!==r)return i(s),void(null===t||void 0===t||t(s));s={sortOrder:1===a.sortOrder?-1:1,columnId:e}}else s={sortOrder:r,columnId:e};null===t||void 0===t||t(s),i(s)};return(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)("colgroup",{children:e.map((e=>(0,m.jsx)("col",{style:{width:`${e.width}px`}},e.name)))}),(0,m.jsx)("thead",{className:c("head"),children:(0,m.jsx)("tr",{children:e.map((e=>{var t;const n=a.columnId===e.name?a.sortOrder:void 0,i=s&&(null!==(t=e.resizeable)&&void 0!==t?t:u);return(0,m.jsx)(I,{column:e,resizeable:i,sortOrder:n,defaultSortOrder:r,onSort:l,rowHeight:o,onColumnsResize:s},e.name)}))})})]})};var j=s(13847);const P=({limit:e,initialEntitiesCount:t,fetchData:s,filters:o,tableName:a,columns:i,getRowClassName:l,rowHeight:d=41,parentRef:u,initialSortParams:p,onColumnsResize:h,renderControls:g,renderErrorMessage:v,renderEmptyDataMessage:f,containerClassName:S})=>{const N=t||0,k=t||1,[y,x]=n.useState(p),[w,D]=n.useState(N),[I,P]=n.useState(k),[A,E]=n.useState(!0),T=n.useRef(null),U=(({parentRef:e,tableRef:t,totalItems:s,rowHeight:r,chunkSize:o,overscanCount:a=1})=>{const i=n.useMemo((()=>Math.ceil(s/o)),[o,s]),[l,d]=n.useState(0),[u,c]=n.useState(Math.min(a,Math.max(i-1,0))),m=n.useCallback((()=>{const s=null===e||void 0===e?void 0:e.current,n=t.current;if(!s||!n)return null;const l=function(e,t){let s=e,n=0;for(;s&&s!==t;)n+=s.offsetTop,s=s.offsetParent;return n}(n,s),d=s.scrollTop,u=Math.max(d-l,0),c=u+s.clientHeight;return{start:Math.max(Math.floor(u/r/o)-a,0),end:Math.min(Math.floor(c/r/o)+a,Math.max(i-1,0))}}),[e,t,r,o,a,i]),p=n.useCallback((()=>{const e=m();e&&(d(e.start),c(e.end))}),[m]);return n.useEffect((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;const s=(0,j.throttle)(p,100,{leading:!0,trailing:!0});return t.addEventListener("scroll",s),()=>{t.removeEventListener("scroll",s),s.cancel()}}),[p,e]),n.useMemo((()=>{const e=Array(i).fill(!1);for(let t=l;t<=u;t++)e[t]=!0;return e}),[i,l,u])})({parentRef:u,tableRef:T,totalItems:I,rowHeight:d,chunkSize:e}),G=n.useMemo((()=>I?I%e||e:1),[I,e]),R=n.useCallback(((e,t)=>{D(e),P(t),E(!1)}),[]);n.useLayoutEffect((()=>{D(N),P(k),E(!0),null!==u&&void 0!==u&&u.current&&u.current.scrollTo(0,0)}),[o,k,N,u]);const L=()=>(0,m.jsxs)("table",{className:c("table"),children:[(0,m.jsx)(C,{columns:i,onSort:x,onColumnsResize:h}),U.map(((t,n)=>(0,m.jsx)(b,{id:n,calculatedCount:n===U.length-1?G:e,chunkSize:e,rowHeight:d,columns:i,fetchData:s,filters:o,tableName:a,sortParams:y,getRowClassName:l,renderErrorMessage:v,renderEmptyDataMessage:f,onDataFetched:R,isActive:t},n)))]});return(0,m.jsx)("div",{ref:T,className:c(null,S),children:g?(0,m.jsxs)(r.L,{children:[(0,m.jsx)(r.L.Controls,{children:g({inited:!A,totalEntities:w,foundEntities:I})}),(0,m.jsx)(r.L.Table,{children:L()})]}):L()})};var A=s(16819);function E({columnsWidthLSKey:e,columns:t,...s}){const[n,r]=(0,A.a)(e),o=function(e,t){return e.map((e=>{var s;return{...e,width:null!==(s=t[e.name])&&void 0!==s?s:e.width}}))}(t,n);return(0,m.jsx)(P,{columns:o,onColumnsResize:r,containerClassName:c("resizeable-table-container"),...s})}},48295:(e,t,s)=>{s.d(t,{_:()=>u});var n=s(77506),r=s(24543),o=s(80176),a=s(60712);const i=(0,n.cn)("ydb-pool-bar"),l=({data:e={}})=>{const{Usage:t=0}=e,s=Math.min(100*t,100),n=(e=>e>=75?"danger":e>=50&&e<75?"warning":"normal")(s);return(0,a.jsx)(r.u,{className:i({type:n}),content:(0,a.jsx)(o.HG,{data:e,className:i("popup-content")}),children:(0,a.jsx)("div",{style:{height:`${s}%`},className:i("value",{type:n})})})},d=(0,n.cn)("ydb-pools-graph"),u=({pools:e=[]})=>(0,a.jsx)("div",{className:d(),children:e.map(((e,t)=>(0,a.jsx)(l,{data:e},t)))})},15132:(e,t,s)=>{s.d(t,{O:()=>m});var n=s(38501),r=s(77506),o=s(86200),a=s(35736),i=s(41650),l=s(60712);const d=(0,r.cn)("progress-viewer"),u=e=>(0,o.ZV)((0,o.CR)(Number(e),2)),c=(e,t)=>[u(e),u(t)];function m({value:e,capacity:t,formatValues:s=c,percents:r,className:o,size:u="xs",colorizeProgress:m,inverseColorize:p,warningThreshold:h=60,dangerThreshold:g=80,hideCapacity:v}){const f=(0,n.D)();let S=Math.round(parseFloat(String(e))/parseFloat(String(t))*100)||0;S=S>100?100:S;let N=e,k=t,b="/";r?(N=S+"%",k="",b=""):s&&([N,k]=s(Number(e),Number(t)));const y=(0,a.w)({fillWidth:S,warningThreshold:h,dangerThreshold:g,colorizeProgress:m,inverseColorize:p});m&&!(0,i.kf)(t)&&(S=100);const x={width:S+"%"};return(0,i.kf)(e)?(0,l.jsxs)("div",{className:d({size:u,theme:f,status:y},o),children:[(0,l.jsx)("div",{className:d("line"),style:x}),(0,l.jsx)("span",{className:d("text"),children:(0,i.kf)(t)&&!v?`${N} ${b} ${k}`:N})]}):(0,l.jsx)("div",{className:`${d({size:u})} ${o} error`,children:"no data"})}},17594:(e,t,s)=>{s.d(t,{l:()=>d});var n=s(69024),r=s(4557),o=s(77506),a=s(16819),i=s(60712);const l=(0,o.cn)("ydb-resizeable-data-table");function d({columnsWidthLSKey:e,columns:t,settings:s,wrapperClassName:o,...d}){const[u,c]=(0,a.a)(e),m=(0,n.j)(t,u),p={...s,defaultResizeable:!0};return(0,i.jsx)("div",{className:l(null,o),children:(0,i.jsx)(r.Ay,{theme:"yandex-cloud",columns:m,onResize:c,settings:p,...d})})}},41775:(e,t,s)=>{s.d(t,{v:()=>l});var n=s(59284),r=s(28664),o=s(77506),a=s(60712);const i=(0,o.cn)("ydb-search"),l=({onChange:e,value:t="",width:s,className:o,debounce:l=200,placeholder:d})=>{const[u,c]=n.useState(t),m=n.useRef();n.useEffect((()=>{c((e=>e!==t?t:e))}),[t]);return(0,a.jsx)(r.k,{hasClear:!0,autoFocus:!0,style:{width:s},className:i(null,o),placeholder:d,value:u,onUpdate:t=>{c(t),window.clearTimeout(m.current),m.current=window.setTimeout((()=>{null===e||void 0===e||e(t)}),l)}})}},33775:(e,t,s)=>{s.d(t,{k:()=>m});var n=s(45720),r=s(16929),o=s(71153),a=s(99991),i=s(54090),l=s(77506),d=s(60712);const u=(0,l.cn)("ydb-status-icon"),c={[i.m.Blue]:n.A,[i.m.Yellow]:r.A,[i.m.Orange]:o.A,[i.m.Red]:r.A};function m({status:e=i.m.Grey,size:t="s",mode:s="color",className:n}){const r={state:e.toLowerCase(),size:t};return"icons"===s&&e in c?(0,d.jsx)(a.I,{className:u("status-icon",r,n),data:c[e]}):(0,d.jsx)("div",{className:u("status-color",r,n)})}},19228:(e,t,s)=>{s.d(t,{Q:()=>l});var n=s(89169),r=s(77506),o=s(66781),a=s(60712);const i=(0,r.cn)("table-skeleton"),l=({rows:e=2,delay:t=600,className:s})=>{const[r]=(0,o.y)(t);return(0,a.jsxs)("div",{className:i("wrapper",{hidden:!r},s),children:[(0,a.jsxs)("div",{className:i("row"),children:[(0,a.jsx)(n.E,{className:i("col-1")}),(0,a.jsx)(n.E,{className:i("col-2")}),(0,a.jsx)(n.E,{className:i("col-3")}),(0,a.jsx)(n.E,{className:i("col-4")}),(0,a.jsx)(n.E,{className:i("col-5")})]}),[...new Array(e)].map(((e,t)=>(0,a.jsx)("div",{className:i("row"),children:(0,a.jsx)(n.E,{className:i("col-full")})},`skeleton-row-${t}`)))]})}},89073:(e,t,s)=>{s.d(t,{L:()=>i});var n=s(77506),r=s(19228),o=s(60712);const a=(0,n.cn)("ydb-table-with-controls-layout"),i=({children:e,className:t})=>(0,o.jsx)("div",{className:a(null,t),children:e});i.Controls=function({children:e,className:t}){return(0,o.jsx)("div",{className:a("controls-wrapper"),children:(0,o.jsx)("div",{className:a("controls",t),children:e})})},i.Table=function({children:e,loading:t,className:s}){return t?(0,o.jsx)(r.Q,{className:a("loader")}):(0,o.jsx)("div",{className:a("table",s),children:e})}},64934:(e,t,s)=>{s.d(t,{j:()=>a});var n=s(44433),r=s(78034),o=s(60712);const a=({value:e,onChange:t,className:s})=>(0,o.jsxs)(n.a,{value:e,onUpdate:t,className:s,children:[(0,o.jsx)(n.a.Option,{value:r.cW.All,children:r.DG[r.cW.All]}),(0,o.jsx)(n.a.Option,{value:r.cW.SmallUptime,children:r.DG[r.cW.SmallUptime]})]})},13342:(e,t,s)=>{s.d(t,{U:()=>i});var n=s(47665),r=s(77506),o=s(60712);const a=(0,r.cn)("ydb-usage-label");function i({value:e,overloadThreshold:t=90,theme:s,...r}){return(0,o.jsxs)(n.J,{theme:s,className:a({overload:Number(e)>=t}),...r,children:[e||0,"%"]})}},8809:(e,t,s)=>{s.d(t,{y:()=>P});var n=s(77506),r=s(88226),o=s(13096),a=s(44294),i=s(59284),l=s(47665),d=s(78668),u=s(24600),c=s(54090),m=s(7435),p=s(76086),h=s(31684),g=s(7187),v=s(90182),f=s(41650),S=s(60073),N=s(25196),k=s(96927),b=s(29819),y=s(92459),x=s(86200);function w(e){let t;const s=(0,g.NJ)(e)?e.VDiskSlotId:e.VSlotId;return(0,m.f8)(s)&&(0,m.f8)(e.PDiskId)&&(0,m.f8)(e.NodeId)?t=(0,y.yX)(s,e.PDiskId,e.NodeId):(0,m.f8)(e.NodeId)&&(0,g.NJ)(e)&&(t=(0,y.KY)(y.Ay.node,{id:e.NodeId,activeTab:b.mX},{pdiskId:e.PDiskId,vdiskId:(0,x.U9)(e.VDiskId)})),t}var D=s(60712);const I=(0,n.cn)("vdisk-storage-popup"),C=({data:e})=>{const t=(0,g.NJ)(e),s=(0,v.N4)(d._5),n=i.useMemo((()=>t?((e,t)=>{var s,n,r,o;const{NodeId:a,PDiskId:i,VDiskSlotId:l,StringifiedId:d,VDiskState:u,SatisfactionRank:p,DiskSpace:g,FrontQueues:v,Replicated:S,UnsyncedVDisks:k,AllocatedSize:b,ReadThroughput:y,WriteThroughput:x,StoragePoolName:w}=e,I=[{label:"VDisk",value:d},{label:"State",value:null!==u&&void 0!==u?u:"not available"}];var C,j;if(w&&I.push({label:"StoragePool",value:w}),p&&(null===(s=p.FreshRank)||void 0===s?void 0:s.Flag)!==c.m.Green&&I.push({label:"Fresh",value:null===(C=p.FreshRank)||void 0===C?void 0:C.Flag}),p&&(null===(n=p.LevelRank)||void 0===n?void 0:n.Flag)!==c.m.Green&&I.push({label:"Level",value:null===(j=p.LevelRank)||void 0===j?void 0:j.Flag}),p&&null!==(r=p.FreshRank)&&void 0!==r&&r.RankPercent&&I.push({label:"Fresh",value:p.FreshRank.RankPercent}),p&&null!==(o=p.LevelRank)&&void 0!==o&&o.RankPercent&&I.push({label:"Level",value:p.LevelRank.RankPercent}),g&&g!==c.m.Green&&I.push({label:"Space",value:g}),v&&v!==c.m.Green&&I.push({label:"FrontQueues",value:v}),S||I.push({label:"Replicated",value:"NO"}),k&&I.push({label:"UnsyncVDisks",value:k}),Number(b)&&I.push({label:"Allocated",value:(0,f.wb)(b)}),Number(y)&&I.push({label:"Read",value:(0,f.O4)(y)}),Number(x)&&I.push({label:"Write",value:(0,f.O4)(x)}),t&&(0,m.f8)(a)&&(0,m.f8)(i)&&(0,m.f8)(l)){const e=(0,h.Wg)({nodeId:a,pDiskId:i,vDiskSlotId:l});I.push({label:"Links",value:(0,D.jsx)(N.K,{title:"Developer UI",url:e})})}return I})(e,s):((e,t)=>{const{NodeId:s,PDiskId:n,VSlotId:r,StoragePoolName:o}=e,a=[{label:"State",value:"not available"}];if(o&&a.push({label:"StoragePool",value:o}),a.push({label:"NodeId",value:null!==s&&void 0!==s?s:p.Pd},{label:"PDiskId",value:null!==n&&void 0!==n?n:p.Pd},{label:"VSlotId",value:null!==r&&void 0!==r?r:p.Pd}),t&&(0,m.f8)(s)&&(0,m.f8)(n)&&(0,m.f8)(r)){const e=(0,h.Wg)({nodeId:s,pDiskId:n,vDiskSlotId:r});a.push({label:"Links",value:(0,D.jsx)(N.K,{title:"Developer UI",url:e})})}return a})(e,s)),[e,t,s]),r=(0,v.N4)(u.E),o=(0,m.f8)(e.NodeId)?null===r||void 0===r?void 0:r.get(e.NodeId):void 0,b=i.useMemo((()=>t&&e.PDisk&&(0,k.f)(e.PDisk,o,s)),[e,o,t,s]),y=[];if("Donors"in e&&e.Donors){const t=e.Donors;for(const e of t)y.push({label:"VDisk",value:(0,D.jsx)(a.E,{to:w(e),children:e.StringifiedId})})}return(0,D.jsxs)("div",{className:I(),children:[e.DonorMode&&(0,D.jsx)(l.J,{className:I("donor-label"),children:"Donor"}),(0,D.jsx)(S.z_,{title:"VDisk",info:n,size:"s"}),b&&(0,D.jsx)(S.z_,{title:"PDisk",info:b,size:"s"}),y.length>0&&(0,D.jsx)(S.z_,{title:"Donors",info:y,size:"s"})]})},j=(0,n.cn)("ydb-vdisk-component"),P=({data:e={},compact:t,inactive:s,showPopup:n,onShowPopup:i,onHidePopup:l,progressBarClassName:d})=>{const u=w(e);return(0,D.jsx)(o.P,{showPopup:n,onShowPopup:i,onHidePopup:l,popupContent:(0,D.jsx)(C,{data:e}),children:(0,D.jsx)("div",{className:j(),children:(0,D.jsx)(a.E,{to:u,className:j("content"),children:(0,D.jsx)(r.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,compact:t,inactive:s,className:d})})})})}},78762:(e,t,s)=>{s.d(t,{pt:()=>ne,SH:()=>X,fr:()=>B,uk:()=>z,Bg:()=>K,Nh:()=>L,ID:()=>$,fR:()=>Y,iX:()=>H,Vz:()=>q,H:()=>Z,_E:()=>R,eT:()=>M,wN:()=>se,kv:()=>_,pH:()=>F,OX:()=>V,ui:()=>te,DH:()=>ee,oz:()=>J,qp:()=>Q,jl:()=>O,Rn:()=>W});var n=s(4557),r=s(40336),o=s(11906),a=s(7435),i=s(77506),l=s(76086),d=s(86200),u=s(3810),c=s(41650),m=s(71661),p=s(73473),h=s(63291),g=s(29819),v=s(31684),f=s(78034),S=s(10508),N=s(80176),k=s(60712);const b=({node:e,getNodeRef:t,database:s,statusForIcon:n})=>{if(!e.Host)return(0,k.jsx)("span",{children:"\u2014"});const r="ConnectStatus"===n?e.ConnectStatus:e.SystemState,o=!(0,f.X7)(e);let a;if(t){const s=t(e);a=s?(0,v.Un)(s):void 0}else if(e.NodeId){const t=(0,v.Kx)(e.NodeId);a=(0,v.Un)(t)}const i=o?(0,g.vI)(e.NodeId,{database:null!==s&&void 0!==s?s:e.TenantName}):void 0;return(0,k.jsx)(m.s,{disabled:!o,content:(0,k.jsx)(N.p,{data:e,nodeHref:a}),placement:["top","bottom"],behavior:h.m.Immediate,delayClosing:200,children:(0,k.jsx)(S.c,{name:e.Host,status:r,path:i,hasClipboardButton:!0})})};var y=s(48295),x=s(15132),w=s(52905),D=s(58267);const I=(0,i.cn)("tablets-statistic"),C=({tablets:e=[],database:t,nodeId:s})=>{const n=(e=>e.map((e=>({label:(0,l.bk)(e.Type),type:e.Type,count:e.Count,state:(0,D.PQ)(e.State)}))).sort(((e,t)=>String(e.label).localeCompare(String(t.label)))))(e);return(0,k.jsx)("div",{className:I(),children:n.map(((e,n)=>{var r;const o=(0,g.vI)(s,{database:t},g.q7),a=`${e.label}: ${e.count}`,i=I("tablet",{state:null===(r=e.state)||void 0===r?void 0:r.toLowerCase()});return(0,k.jsx)(w.N_,{to:o,className:i,children:a},n)}))})};var j=s(13342),P=s(86782),A=s(31911),E=s(73891);function T(e){return(0,E.Xo)((0,E.Jc)(e,1))}function U(e){const t=(0,E.Jc)(e,1);return(Number(t)<=0?"":"+")+(0,E.Xo)(t)}const G=(0,i.cn)("ydb-nodes-columns");function R(){return{name:P.vg.NodeId,header:"#",width:80,resizeMinWidth:80,render:({row:e})=>e.NodeId,align:n.Ay.RIGHT}}function L({getNodeRef:e,database:t},{statusForIcon:s="SystemState"}={}){return{name:P.vg.Host,header:P.uG.Host,render:({row:n})=>(0,k.jsx)(b,{node:n,getNodeRef:e,database:t,statusForIcon:s}),width:350,align:n.Ay.LEFT}}function M(){return{name:P.vg.NodeName,header:P.uG.NodeName,align:n.Ay.LEFT,render:({row:e})=>e.NodeName||l.Pd,width:200}}function z(){return{name:P.vg.DC,header:P.uG.DC,align:n.Ay.LEFT,render:({row:e})=>e.DC||l.Pd,width:60}}function V(){return{name:P.vg.Rack,header:P.uG.Rack,align:n.Ay.LEFT,render:({row:e})=>e.Rack||l.Pd,width:100}}function W(){return{name:P.vg.Version,header:P.uG.Version,width:200,align:n.Ay.LEFT,render:({row:e})=>(0,k.jsx)(m.s,{content:e.Version,children:e.Version})}}function O(){return{name:P.vg.Uptime,header:P.uG.Uptime,sortAccessor:({StartTime:e})=>e?-e:0,render:({row:e})=>e.Uptime,align:n.Ay.RIGHT,width:120}}function F(){return{name:P.vg.RAM,header:P.uG.RAM,sortAccessor:({MemoryUsed:e=0})=>Number(e),defaultOrder:n.Ay.DESCENDING,render:({row:e})=>{const[t,s]=(0,c.kf)(e.MemoryUsed)&&(0,c.kf)(e.MemoryLimit)?(0,d.j9)(Number(e.MemoryUsed),Number(e.MemoryLimit),"gb",void 0,!0):[0,0];return(0,k.jsx)(m.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(r.u,{responsive:!0,children:[(0,k.jsx)(r.u.Item,{name:(0,A.A)("field_memory-used"),children:t}),(0,k.jsx)(r.u.Item,{name:(0,A.A)("field_memory-limit"),children:s})]}),children:(0,k.jsx)(x.O,{value:e.MemoryUsed,capacity:e.MemoryLimit,formatValues:(e,t)=>(0,d.j9)(e,t,"gb",void 0,!0),className:G("column-ram"),colorizeProgress:!0,hideCapacity:!0})})},align:n.Ay.LEFT,width:80,resizeMinWidth:40}}function H(){return{name:P.vg.Memory,header:P.uG.Memory,defaultOrder:n.Ay.DESCENDING,render:({row:e})=>e.MemoryStats?(0,k.jsx)(p.S,{formatValues:d.vX,stats:e.MemoryStats}):(0,k.jsx)(x.O,{value:e.MemoryUsed,capacity:e.MemoryLimit,formatValues:d.vX,colorizeProgress:!0}),align:n.Ay.LEFT,width:300,resizeMinWidth:170}}function _(){return{name:P.vg.Pools,header:P.uG.Pools,sortAccessor:({PoolStats:e=[]})=>Math.max(...e.map((({Usage:e})=>Number(e)))),defaultOrder:n.Ay.DESCENDING,render:({row:e})=>e.PoolStats?(0,k.jsx)(y._,{pools:e.PoolStats}):l.Pd,align:n.Ay.LEFT,width:80,resizeMinWidth:60}}function B(){return{name:P.vg.CPU,header:P.uG.CPU,sortAccessor:({PoolStats:e=[]})=>Math.max(...e.map((({Usage:e})=>Number(e)))),defaultOrder:n.Ay.DESCENDING,render:({row:e})=>{if(!e.PoolStats)return l.Pd;let t=(0,c.kf)(e.CoresUsed)&&(0,c.kf)(e.CoresTotal)?e.CoresUsed/e.CoresTotal:void 0;if(void 0===t){let s=0;t=e.PoolStats.reduce(((e,t)=>(s+=Number(t.Threads),e+Number(t.Usage)*Number(t.Threads))),0),t/=s}return(0,k.jsx)(m.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsx)(r.u,{responsive:!0,children:e.PoolStats.map((e=>(0,c.kf)(e.Usage)?(0,k.jsx)(r.u.Item,{name:e.Name,children:(0,N.Qz)("Usage",e.Usage).value},e.Name):null))}),children:(0,k.jsx)(x.O,{className:G("column-cpu"),value:t,capacity:1,colorizeProgress:!0,percents:!0})})},align:n.Ay.LEFT,width:80,resizeMinWidth:40}}function $(){return{name:P.vg.LoadAverage,header:P.uG.LoadAverage,sortAccessor:({LoadAveragePercents:e=[]})=>e[0],defaultOrder:n.Ay.DESCENDING,render:({row:e})=>(0,k.jsx)(x.O,{value:e.LoadAveragePercents&&e.LoadAveragePercents.length>0?e.LoadAveragePercents[0]:void 0,percents:!0,colorizeProgress:!0,capacity:100}),align:n.Ay.LEFT,width:170,resizeMinWidth:170}}function Y(){return{name:P.vg.Load,header:P.uG.Load,sortAccessor:({LoadAveragePercents:e=[]})=>e[0],defaultOrder:n.Ay.DESCENDING,render:({row:e})=>e.LoadAveragePercents&&e.LoadAveragePercents.length>0?(0,k.jsx)(j.U,{value:e.LoadAveragePercents[0].toFixed(),theme:(0,o.$)(e.LoadAveragePercents[0])}):l.Pd,align:n.Ay.LEFT,width:80,resizeMinWidth:70}}function K(){return{name:P.vg.DiskSpaceUsage,header:P.uG.DiskSpaceUsage,render:({row:e})=>(0,a.f8)(e.DiskSpaceUsage)?(0,k.jsx)(j.U,{value:Math.floor(e.DiskSpaceUsage),theme:(0,u.x)(e.DiskSpaceUsage)}):l.Pd,align:n.Ay.LEFT,width:115,resizeMinWidth:75}}function J(){return{name:P.vg.TotalSessions,header:P.uG.TotalSessions,render:({row:e})=>{var t;return null!==(t=e.TotalSessions)&&void 0!==t?t:l.Pd},align:n.Ay.RIGHT,width:100}}function Q({database:e}){return{name:P.vg.Tablets,header:P.uG.Tablets,width:500,resizeMinWidth:500,render:({row:t})=>t.Tablets?(0,k.jsx)(C,{database:null!==e&&void 0!==e?e:t.TenantName,nodeId:t.NodeId,tablets:t.Tablets}):l.Pd,align:n.Ay.LEFT,sortable:!1}}function q(){return{name:P.vg.Missing,header:P.uG.Missing,render:({row:e})=>e.Missing,align:n.Ay.CENTER,defaultOrder:n.Ay.DESCENDING}}function X(){return{name:P.vg.Connections,header:P.uG.Connections,render:({row:e})=>(0,c.kf)(e.Connections)?e.Connections:l.Pd,align:n.Ay.RIGHT,width:130}}function Z(){return{name:P.vg.NetworkUtilization,header:P.uG.NetworkUtilization,render:({row:e})=>{const{NetworkUtilization:t,NetworkUtilizationMin:s=0,NetworkUtilizationMax:n=0}=e;return(0,c.kf)(t)?(0,k.jsx)(m.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(r.u,{responsive:!0,children:[(0,k.jsx)(r.u.Item,{name:(0,A.A)("sum"),children:(0,d.l9)(t)},"NetworkUtilization"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("min"),children:(0,d.l9)(s)},"NetworkUtilizationMin"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("max"),children:(0,d.l9)(n)},"NetworkUtilizationMax")]}),children:(0,d.l9)(t)}):l.Pd},align:n.Ay.RIGHT,width:110}}function ee(){return{name:P.vg.SendThroughput,header:P.uG.SendThroughput,render:({row:e})=>(0,c.kf)(e.SendThroughput)?(0,c.O4)(e.SendThroughput):l.Pd,align:n.Ay.RIGHT,width:110}}function te(){return{name:P.vg.ReceiveThroughput,header:P.uG.ReceiveThroughput,render:({row:e})=>(0,c.kf)(e.ReceiveThroughput)?(0,c.O4)(e.ReceiveThroughput):l.Pd,align:n.Ay.RIGHT,width:110}}function se(){return{name:P.vg.PingTime,header:P.uG.PingTime,render:({row:e})=>{const{PingTimeUs:t,PingTimeMinUs:s=0,PingTimeMaxUs:n=0}=e;return(0,c.kf)(t)?(0,k.jsx)(m.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(r.u,{responsive:!0,children:[(0,k.jsx)(r.u.Item,{name:(0,A.A)("avg"),children:T(t)},"PingTimeUs"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("min"),children:T(s)},"PingTimeMinUs"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("max"),children:T(n)},"PingTimeMaxUs")]}),children:T(t)}):l.Pd},align:n.Ay.RIGHT,width:110}}function ne(){return{name:P.vg.ClockSkew,header:P.uG.ClockSkew,render:({row:e})=>{const{ClockSkewUs:t,ClockSkewMinUs:s=0,ClockSkewMaxUs:n=0}=e;return(0,c.kf)(t)?(0,k.jsx)(m.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(r.u,{responsive:!0,children:[(0,k.jsx)(r.u.Item,{name:(0,A.A)("avg"),children:U(t)},"ClockSkewUs"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("min"),children:U(s)},"ClockSkewMinUs"),(0,k.jsx)(r.u.Item,{name:(0,A.A)("max"),children:U(n)},"ClockSkewMaxUs")]}),children:U(t)}):l.Pd},align:n.Ay.RIGHT,width:110}}},86782:(e,t,s)=>{s.d(t,{fN:()=>d,kU:()=>c,kn:()=>l,sp:()=>m,uG:()=>a,vg:()=>o,zO:()=>r});var n=s(31911);const r="nodesTableColumnsWidth",o={NodeId:"NodeId",Host:"Host",Database:"Database",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",RAM:"RAM",CPU:"CPU",Pools:"Pools",LoadAverage:"LoadAverage",Load:"Load",DiskSpaceUsage:"DiskSpaceUsage",TotalSessions:"TotalSessions",Connections:"Connections",NetworkUtilization:"NetworkUtilization",SendThroughput:"SendThroughput",ReceiveThroughput:"ReceiveThroughput",PingTime:"PingTime",ClockSkew:"ClockSkew",Missing:"Missing",Tablets:"Tablets",PDisks:"PDisks"},a={get NodeId(){return(0,n.A)("node-id")},get Host(){return(0,n.A)("host")},get Database(){return(0,n.A)("database")},get NodeName(){return(0,n.A)("node-name")},get DC(){return(0,n.A)("dc")},get Rack(){return(0,n.A)("rack")},get Version(){return(0,n.A)("version")},get Uptime(){return(0,n.A)("uptime")},get Memory(){return(0,n.A)("memory")},get RAM(){return(0,n.A)("ram")},get Pools(){return(0,n.A)("pools")},get CPU(){return(0,n.A)("cpu")},get LoadAverage(){return(0,n.A)("load-average")},get Load(){return(0,n.A)("load")},get DiskSpaceUsage(){return(0,n.A)("disk-usage")},get TotalSessions(){return(0,n.A)("sessions")},get Connections(){return(0,n.A)("connections")},get NetworkUtilization(){return(0,n.A)("utilization")},get SendThroughput(){return(0,n.A)("send")},get ReceiveThroughput(){return(0,n.A)("receive")},get PingTime(){return(0,n.A)("ping")},get ClockSkew(){return(0,n.A)("skew")},get Missing(){return(0,n.A)("missing")},get Tablets(){return(0,n.A)("tablets")},get PDisks(){return(0,n.A)("pdisks")}},i={get NodeId(){return(0,n.A)("node-id")},get Host(){return(0,n.A)("host")},get NodeName(){return(0,n.A)("node-name")},get Database(){return(0,n.A)("database")},get DiskSpaceUsage(){return(0,n.A)("disk-usage")},get DC(){return(0,n.A)("dc")},get Rack(){return(0,n.A)("rack")},get Missing(){return(0,n.A)("missing")},get Uptime(){return(0,n.A)("uptime")},get Version(){return(0,n.A)("version")},get SystemState(){return(0,n.A)("system-state")},get ConnectStatus(){return(0,n.A)("connect-status")},get NetworkUtilization(){return(0,n.A)("network-utilization")},get ClockSkew(){return(0,n.A)("clock-skew")},get PingTime(){return(0,n.A)("ping-time")}};function l(e){return i[e]}const d={NodeId:["NodeId"],Host:["Host","Rack","Database","SystemState"],Database:["Database"],NodeName:["NodeName"],DC:["DC"],Rack:["Rack"],Version:["Version"],Uptime:["Uptime","DisconnectTime"],Memory:["Memory","MemoryDetailed"],RAM:["Memory"],Pools:["CPU"],CPU:["CPU"],LoadAverage:["LoadAverage"],Load:["LoadAverage"],DiskSpaceUsage:["DiskSpaceUsage"],TotalSessions:["SystemState"],Connections:["Connections"],NetworkUtilization:["NetworkUtilization"],SendThroughput:["SendThroughput"],ReceiveThroughput:["ReceiveThroughput"],PingTime:["PingTime"],ClockSkew:["ClockSkew"],Missing:["Missing"],Tablets:["Tablets","Database"],PDisks:["PDisks"]},u={NodeId:"NodeId",Host:"Host",Database:"Database",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",RAM:"Memory",CPU:"CPU",Pools:"CPU",LoadAverage:"LoadAverage",Load:"LoadAverage",DiskSpaceUsage:"DiskSpaceUsage",TotalSessions:void 0,Connections:"Connections",NetworkUtilization:"NetworkUtilization",SendThroughput:"SendThroughput",ReceiveThroughput:"ReceiveThroughput",PingTime:"PingTime",ClockSkew:"ClockSkew",Missing:"Missing",Tablets:void 0,PDisks:void 0};function c(e){return u[e]}function m(e){return Boolean(c(e))}},31911:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(48372);const r=JSON.parse('{"node-id":"Node ID","host":"Host","database":"Database","node-name":"Node Name","dc":"DC","rack":"Rack","version":"Version","uptime":"Uptime","memory":"Detailed Memory","ram":"RAM","cpu":"CPU","pools":"Pools","disk-usage":"Disk Usage","tablets":"Tablets","load-average":"Load Average","load":"Load","sessions":"Sessions","missing":"Missing","pdisks":"PDisks","field_memory-used":"Memory used","field_memory-limit":"Memory limit","system-state":"System State","connect-status":"Connect Status","utilization":"Utilization","network-utilization":"Network Utilization","connections":"Connections","clock-skew":"Clock Skew","skew":"Skew","ping-time":"Ping Time","ping":"Ping","send":"Send","receive":"Receive","max":"Max","min":"Min","avg":"Avg","sum":"Sum"}'),o=(0,n.g4)("ydb-nodes-columns",{en:r})},10576:(e,t,s)=>{s.d(t,{E:()=>g});var n=s(59284),r=s(88226),o=s(13096),a=s(44294),i=s(96927),l=s(8809),d=s(92459),u=s(7435),c=s(77506),m=s(3218),p=s(60712);const h=(0,c.cn)("pdisk-storage"),g=({data:e={},vDisks:t,showPopup:s,onShowPopup:c,onHidePopup:g,className:v,progressBarClassName:f,viewContext:S})=>{const{NodeId:N,PDiskId:k}=e,b=(0,u.f8)(N)&&(0,u.f8)(k),y=n.useRef(null);let x;return b&&(x=(0,d.Ck)(k,N)),(0,p.jsxs)("div",{className:h(null,v),ref:y,children:[null!==t&&void 0!==t&&t.length?(0,p.jsx)("div",{className:h("vdisks"),children:t.map((e=>(0,p.jsx)("div",{className:h("vdisks-item"),style:{flexGrow:Number(e.AllocatedSize)||1},children:(0,p.jsx)(l.y,{data:e,inactive:!(0,m.OH)(e,S),compact:!0})},e.StringifiedId)))}):null,(0,p.jsx)(o.P,{showPopup:s,anchorRef:y,onShowPopup:c,onHidePopup:g,popupContent:(0,p.jsx)(i.O,{data:e}),children:(0,p.jsxs)(a.E,{to:x,className:h("content"),children:[(0,p.jsx)(r.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,className:f}),(0,p.jsx)("div",{className:h("media-type"),children:e.Type})]})})]})}},19093:(e,t,s)=>{s.d(t,{J:()=>ne,k:()=>se});var n=s(59284),r=s(79879),o=s(4557),a=s(63291),i=s(47665),l=s(84375),d=s(99991),u=s(71661),c=s(44294),m=s(33775),p=s(13342),h=s(86200),g=s(7187),v=s(77506),f=s(60712);const S="--ydb-stack-level",N=(0,v.cn)("stack"),k=({children:e,className:t})=>(0,f.jsx)("div",{className:N(null,t),children:n.Children.map(e,((e,t)=>n.isValidElement(e)?(0,f.jsx)("div",{className:N("layer"),style:{[S]:t},children:e}):null))});var b=s(8809);function y({data:e,className:t,stackClassName:s,...n}){const{Donors:r,...o}=e||{},a=r&&r.length>0?(0,f.jsxs)(k,{className:s,children:[(0,f.jsx)(b.y,{data:o,...n}),r.map((e=>{const t=(0,g.NJ)(e);return(0,f.jsx)(b.y,{data:e,...n},(0,h.U9)(t?e.VDiskId:e))}))]}):(0,f.jsx)(b.y,{data:e,...n});return(0,f.jsx)("div",{className:t,children:a})}var x=s(92459),w=s(7435),D=s(76086),I=s(3810),C=s(73891),j=s(41650),P=s(69033),A=s(87184),E=s(10576),T=s(3218);const U=(0,v.cn)("ydb-storage-disks");function G({vDisks:e=[],viewContext:t}){const[s,r]=n.useState(),{theme:{spaceBaseSize:o}}=(0,P.L)();if(!e.length)return null;const a=(300-o*(e.length-1))/e.length;return(0,f.jsxs)("div",{className:U(null),children:[(0,f.jsx)(A.s,{direction:"row",gap:1,grow:!0,style:{width:300},children:null===e||void 0===e?void 0:e.map((e=>(0,f.jsx)(R,{vDisk:e,inactive:!(0,T.OH)(e,t),highlightedVDisk:s,setHighlightedVDisk:r,unavailableVDiskWidth:a},e.StringifiedId)))}),(0,f.jsx)("div",{className:U("pdisks-wrapper"),children:null===e||void 0===e?void 0:e.map((e=>{var t;return(0,f.jsx)(L,{vDisk:e,highlightedVDisk:s,setHighlightedVDisk:r},null===e||void 0===e||null===(t=e.PDisk)||void 0===t?void 0:t.StringifiedId)}))})]})}function R({vDisk:e,highlightedVDisk:t,inactive:s,setHighlightedVDisk:n,unavailableVDiskWidth:r}){const o={...e,PDisk:void 0},a=e.StringifiedId,i=(0,w.f8)(o.AllocatedSize)?void 0:r,l=Number(o.AllocatedSize)||1;return(0,f.jsx)("div",{style:{flexGrow:l,minWidth:i},className:U("vdisk-item"),children:(0,f.jsx)(b.y,{data:o,compact:!0,inactive:s,showPopup:t===a,onShowPopup:()=>n(a),onHidePopup:()=>n(void 0),progressBarClassName:U("vdisk-progress-bar")})})}function L({vDisk:e,highlightedVDisk:t,setHighlightedVDisk:s}){const n=e.StringifiedId;return e.PDisk?(0,f.jsx)(E.E,{className:U("pdisk-item"),progressBarClassName:U("pdisk-progress-bar"),data:e.PDisk,showPopup:t===n,onShowPopup:()=>s(n),onHidePopup:()=>s(void 0)}):null}var M=s(61456),z=s(10360);const V=(0,v.cn)("ydb-storage-groups-columns"),W={name:z.UW.PoolName,header:z.H6.PoolName,width:250,render:({row:e})=>e.PoolName?(0,f.jsx)(u.s,{content:e.PoolName,placement:["right"],behavior:a.m.Immediate,className:V("pool-name-wrapper"),children:(0,f.jsx)("span",{className:V("pool-name"),children:e.PoolName})}):D.Pd,align:o.Ay.LEFT},O={name:z.UW.MediaType,header:z.H6.MediaType,width:100,resizeMinWidth:100,align:o.Ay.LEFT,render:({row:e})=>(0,f.jsxs)(n.Fragment,{children:[(0,f.jsx)(i.J,{children:e.MediaType||"\u2014"}),"\xa0",e.Encryption&&(0,f.jsx)(l.A,{content:(0,M.A)("encrypted"),placement:"right",behavior:a.m.Immediate,children:(0,f.jsx)(i.J,{children:(0,f.jsx)(d.I,{data:r.A,size:18})})})]}),sortable:!1},F={name:z.UW.Erasure,header:z.H6.Erasure,width:100,sortAccessor:e=>e.ErasureSpecies,render:({row:e})=>e.ErasureSpecies?e.ErasureSpecies:"-",align:o.Ay.LEFT},H={name:z.UW.Degraded,header:z.H6.Degraded,width:110,resizeMinWidth:110,render:({row:e})=>e.Degraded?(0,f.jsxs)(i.J,{theme:(0,T.k_)(e),children:["Degraded: ",e.Degraded]}):"-",align:o.Ay.LEFT,defaultOrder:o.Ay.DESCENDING},_={name:z.UW.Usage,header:z.H6.Usage,width:85,resizeMinWidth:75,render:({row:e})=>(0,w.f8)(e.Usage)?(0,f.jsx)(p.U,{value:Math.floor(e.Usage),theme:(0,I.x)(e.Usage)}):D.Pd,align:o.Ay.LEFT},B={name:z.UW.DiskSpaceUsage,header:z.H6.DiskSpaceUsage,width:115,resizeMinWidth:75,render:({row:e})=>(0,w.f8)(e.DiskSpaceUsage)?(0,f.jsx)(p.U,{value:Math.floor(e.DiskSpaceUsage),theme:(0,I.x)(e.DiskSpaceUsage)}):D.Pd,align:o.Ay.LEFT},$={name:z.UW.GroupId,header:z.H6.GroupId,width:130,render:({row:e})=>e.GroupId?(0,f.jsx)(c.E,{className:V("group-id"),to:(0,x._g)(e.GroupId),children:e.GroupId}):"-",sortAccessor:e=>Number(e.GroupId),align:o.Ay.RIGHT},Y={name:z.UW.Used,header:z.H6.Used,width:100,render:({row:e})=>(0,j.wb)(e.Used,!0),align:o.Ay.RIGHT},K={name:z.UW.Limit,header:z.H6.Limit,width:100,render:({row:e})=>(0,j.wb)(e.Limit),align:o.Ay.RIGHT},J={name:z.UW.DiskSpace,header:z.H6.DiskSpace,width:70,render:({row:e})=>(0,f.jsx)(m.k,{status:e.DiskSpace}),align:o.Ay.CENTER},Q={name:z.UW.Read,header:z.H6.Read,width:100,render:({row:e})=>e.Read?(0,j.O4)(e.Read):"-",align:o.Ay.RIGHT},q={name:z.UW.Write,header:z.H6.Write,width:100,render:({row:e})=>e.Write?(0,j.O4)(e.Write):"-",align:o.Ay.RIGHT},X={name:z.UW.Latency,header:z.H6.Latency,width:100,render:({row:e})=>(0,w.f8)(e.LatencyPutTabletLogMs)?(0,C.Xo)(e.LatencyPutTabletLogMs):D.Pd,align:o.Ay.RIGHT},Z={name:z.UW.AllocationUnits,header:z.H6.AllocationUnits,width:150,render:({row:e})=>(0,w.f8)(e.AllocationUnits)?(0,h.ZV)(e.AllocationUnits):D.Pd,align:o.Ay.RIGHT},ee=e=>({name:z.UW.VDisks,header:z.H6.VDisks,className:V("vdisks-column"),render:({row:t})=>{var s;return(0,f.jsx)("div",{className:V("vdisks-wrapper"),children:null===(s=t.VDisks)||void 0===s?void 0:s.map((t=>(0,f.jsx)(y,{data:t,inactive:!(0,T.OH)(t,null===e||void 0===e?void 0:e.viewContext),className:V("vdisks-item")},t.StringifiedId)))})},align:o.Ay.CENTER,width:900,resizeable:!1,sortable:!1}),te=e=>({name:z.UW.VDisksPDisks,header:z.H6.VDisksPDisks,className:V("disks-column"),render:({row:t})=>(0,f.jsx)(G,{vDisks:t.VDisks,viewContext:null===e||void 0===e?void 0:e.viewContext}),align:o.Ay.CENTER,width:900,resizeable:!1,sortable:!1}),se=()=>[$,O,F,_,Y,K].map((e=>({...e,sortable:!1}))),ne=e=>[$,W,O,F,H,_,B,Y,K,J,Q,q,X,Z,ee(e),te(e)].map((e=>({...e,sortable:(0,z.i4)(e.name)})))},10360:(e,t,s)=>{s.d(t,{hu:()=>u,YX:()=>f,LO:()=>c,UW:()=>d,H6:()=>m,qK:()=>i,SE:()=>g,zY:()=>l,GP:()=>N,i4:()=>k,kY:()=>v});var n=s(370),r=s(48372);const o=JSON.parse('{"pool-name":"Pool Name","type":"Type","encryption":"Encryption","erasure":"Erasure","degraded":"Degraded","missing-disks":"Missing Disks","state":"State","usage":"Usage","disk-usage":"Disk usage","group-id":"Group ID","used":"Used","limit":"Limit","space":"Space","read":"Read","write":"Write","latency":"Latency","allocation-units":"Allocation Units","vdisks":"VDisks","vdisks-pdisks":"VDisks with PDisks"}'),a=(0,r.g4)("ydb-storage-groups-columns",{en:o}),i="storageGroupsColumnsWidth",l="storageGroupsSelectedColumns",d={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:"DiskSpace",Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:"VDisks",VDisksPDisks:"VDisksPDisks",Degraded:"Degraded"},u=["GroupId","PoolName","Erasure","Used","VDisks"],c=["GroupId"],m={get PoolName(){return a("pool-name")},get MediaType(){return a("type")},get Erasure(){return a("erasure")},get GroupId(){return a("group-id")},get Used(){return a("used")},get Limit(){return a("limit")},get Usage(){return a("usage")},get DiskSpaceUsage(){return a("disk-usage")},get DiskSpace(){return a("space")},get Read(){return a("read")},get Write(){return a("write")},get Latency(){return a("latency")},get AllocationUnits(){return a("allocation-units")},get VDisks(){return a("vdisks")},get VDisksPDisks(){return a("vdisks-pdisks")},get Degraded(){return a("missing-disks")}},p={get GroupId(){return a("group-id")},get Erasure(){return a("erasure")},get Usage(){return a("usage")},get DiskSpaceUsage(){return a("disk-usage")},get PoolName(){return a("pool-name")},get Kind(){return a("type")},get Encryption(){return a("encryption")},get MediaType(){return a("type")},get MissingDisks(){return a("missing-disks")},get State(){return a("state")},get Latency(){return a("latency")}},h=["PoolName","MediaType","Encryption","Erasure","Usage","DiskSpaceUsage","State","MissingDisks","Latency"],g=h.map((e=>({value:e,content:p[e]}))),v=n.z.custom((e=>h.includes(e))).catch(void 0),f={GroupId:["GroupId"],PoolName:["PoolName"],MediaType:["MediaType","Encryption"],Erasure:["Erasure"],Used:["Used"],Limit:["Limit"],Usage:["Usage"],DiskSpaceUsage:["DiskSpaceUsage"],DiskSpace:["State"],Read:["Read"],Write:["Write"],Latency:["Latency"],AllocationUnits:["AllocationUnits"],VDisks:["VDisk","PDisk","Read","Write"],VDisksPDisks:["VDisk","PDisk","Read","Write"],Degraded:["MissingDisks"]},S={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:void 0,Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:void 0,VDisksPDisks:void 0,Degraded:"Degraded"};function N(e){return S[e]}function k(e){return Boolean(N(e))}},61456:(e,t,s)=>{s.d(t,{A:()=>a});var n=s(48372);const r=JSON.parse('{"empty.default":"No such groups","empty.out_of_space":"No groups with out of space errors","empty.degraded":"No degraded groups","show_all":"Show all groups","encrypted":"Encrypted group"}'),o=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f","empty.out_of_space":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0433\u0440\u0443\u043f\u043f","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0433\u0440\u0443\u043f\u043f\u044b","encrypted":"\u0417\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430"}'),a=(0,n.g4)("ydb-storage-groups",{ru:o,en:r})},41122:(e,t,s)=>{s.d(t,{p:()=>qe});var n=s(76086),r=s(90182),o=s(59284),a=s(79553),i=s(98167),l=s(89073),d=s(67028),u=s(10174),c=s(29289),m=s(98089),p=s(24555),h=s(53755),g=s(41775),v=s(64934),f=s(10360),S=s(370),N=s(86782);const k="storageNodesColumnsWidth",b=["NodeId","Host","Uptime","CPU","RAM","PDisks"],y=["NodeId"],x=["Host","DC","Rack","Version","Uptime","Missing","DiskSpaceUsage"],w=x.map((e=>({value:e,content:(0,N.kn)(e)}))),D=S.z.custom((e=>x.includes(e))).catch(void 0);var I=s(44433),C=s(87082),j=s(60712);const P={[C.G.groups]:"Groups",[C.G.nodes]:"Nodes"},A=({value:e,onChange:t})=>(0,j.jsxs)(I.a,{value:e,onUpdate:t,qa:"storage-type-filter",children:[(0,j.jsx)(I.a.Option,{value:C.G.groups,children:P[C.G.groups]}),(0,j.jsx)(I.a.Option,{value:C.G.nodes,children:P[C.G.nodes]})]}),E={[C.r.all]:"All",[C.r.missing]:"Degraded",[C.r.space]:"Out of Space"},T=({value:e,onChange:t})=>(0,j.jsxs)(I.a,{value:e,onUpdate:t,qa:"storage-visible-entities-filter",children:[(0,j.jsx)(I.a.Option,{value:C.r.missing,children:E[C.r.missing]}),(0,j.jsx)(I.a.Option,{value:C.r.space,children:E[C.r.space]}),(0,j.jsx)(I.a.Option,{value:C.r.all,children:E[C.r.all]})]});var U=s(48372);const G=JSON.parse('{"groups":"Groups","nodes":"Nodes","controls_groups-search-placeholder":"Group ID, Pool name","controls_nodes-search-placeholder":"Node ID, FQDN","controls_group-by-placeholder":"Group by:","no-nodes":"No such nodes","no-groups":"No such groups"}'),R=(0,U.g4)("ydb-storage",{en:G});var L=s(59109),M=s(44508),z=s(77506);const V=(0,z.cn)("global-storage"),W=e=>403===e.status?(0,j.jsx)(L.O,{position:"left"}):(0,j.jsx)(M.o,{error:e});var O=s(67087);const F=S.z.nativeEnum(C.r).catch(C.r.all),H=S.z.nativeEnum(C.G).catch(C.G.groups);var _=s(78034);function B(){var e;const[t,s]=(0,O.useQueryParams)({type:O.StringParam,visible:O.StringParam,search:O.StringParam,uptimeFilter:O.StringParam,storageNodesGroupBy:O.StringParam,storageGroupsGroupBy:O.StringParam}),n=H.parse(t.type),r=F.parse(t.visible),o=null!==(e=t.search)&&void 0!==e?e:"",a=_.Bm.parse(t.uptimeFilter),i=f.kY.parse(t.storageGroupsGroupBy),l=D.parse(t.storageNodesGroupBy),d=e=>{s({visible:e},"replaceIn")},u=e=>{s({uptimeFilter:e},"replaceIn")};return{storageType:n,visibleEntities:r,searchValue:o,nodesUptimeFilter:a,storageGroupsGroupByParam:i,storageNodesGroupByParam:l,handleTextFilterChange:e=>{s({search:e||void 0},"replaceIn")},handleVisibleEntitiesChange:d,handleStorageTypeChange:e=>{s({type:e},"replaceIn")},handleUptimeFilterChange:u,handleStorageGroupsGroupByParamChange:e=>{s({storageGroupsGroupBy:e},"replaceIn")},handleStorageNodesGroupByParamChange:e=>{s({storageNodesGroupBy:e},"replaceIn")},handleShowAllGroups:()=>{d("all")},handleShowAllNodes:()=>{d("all"),u(_.cW.All)}}}function $({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:n,entitiesLoading:r,columnsToSelect:a,handleSelectedColumnsUpdate:i}){const{searchValue:l,storageType:d,visibleEntities:u,storageGroupsGroupByParam:v,handleTextFilterChange:S,handleStorageTypeChange:N,handleVisibleEntitiesChange:k,handleStorageGroupsGroupByParamChange:b}=B();return(0,j.jsxs)(o.Fragment,{children:[(0,j.jsx)(g.v,{value:l,onChange:S,placeholder:R("controls_groups-search-placeholder"),className:V("search")}),e&&(0,j.jsx)(A,{value:d,onChange:N}),t?null:(0,j.jsx)(T,{value:u,onChange:k}),(0,j.jsx)(c.O,{popupWidth:200,items:a,showStatus:!0,onUpdate:i,sortable:!1}),t?(0,j.jsxs)(o.Fragment,{children:[(0,j.jsx)(m.E,{variant:"body-2",children:R("controls_group-by-placeholder")}),(0,j.jsx)(p.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:v?[v]:void 0,onUpdate:e=>{b(e[0])},options:f.SE})]}):null,(0,j.jsx)(h.T,{label:R("groups"),loading:r,total:n,current:s})]})}function Y({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:n,entitiesLoading:r,columnsToSelect:a,handleSelectedColumnsUpdate:i}){const{searchValue:l,storageType:d,visibleEntities:u,nodesUptimeFilter:f,storageNodesGroupByParam:S,handleTextFilterChange:N,handleStorageTypeChange:k,handleVisibleEntitiesChange:b,handleUptimeFilterChange:y,handleStorageNodesGroupByParamChange:x}=B();return(0,j.jsxs)(o.Fragment,{children:[(0,j.jsx)(g.v,{value:l,onChange:N,placeholder:R("controls_nodes-search-placeholder"),className:V("search")}),e&&(0,j.jsx)(A,{value:d,onChange:k}),t?null:(0,j.jsx)(T,{value:u,onChange:b}),t?null:(0,j.jsx)(v.j,{value:f,onChange:y}),(0,j.jsx)(c.O,{popupWidth:200,items:a,showStatus:!0,onUpdate:i,sortable:!1}),t?(0,j.jsxs)(o.Fragment,{children:[(0,j.jsx)(m.E,{variant:"body-2",children:R("controls_group-by-placeholder")}),(0,j.jsx)(p.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:S?[S]:void 0,onUpdate:e=>{x(e[0])},options:w})]}):null,(0,j.jsx)(h.T,{label:R("nodes"),loading:r,total:n,current:s})]})}var K=s(40427),J=s(84476),Q=s(7889),q=s(78524);const X=JSON.parse('{"default_message":"Everything is fine!","default_button_label":"Show All"}'),Z=JSON.parse('{"default_message":"\u0412\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435!","default_button_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435"}'),ee=(0,U.g4)("ydb-storage-empty-filter",{ru:Z,en:X}),te=({title:e,message:t=ee("default_message"),showAll:s=ee("default_button_label"),onShowAll:n})=>(0,j.jsx)(Q.p,{image:(0,j.jsx)(q.v,{name:"thumbsUp"}),position:"left",title:e,description:t,actions:n&&[(0,j.jsx)(J.$,{onClick:n,children:s},"show-all")]});var se=s(61456);const ne=({visibleEntities:e,onShowAll:t})=>{let s;return e===C.r.space&&(s=(0,se.A)("empty.out_of_space")),e===C.r.missing&&(s=(0,se.A)("empty.degraded")),s?(0,j.jsx)(te,{title:s,showAll:(0,se.A)("show_all"),onShowAll:t}):null};var re=s(16029),oe=s(69464),ae=s(40781);const ie=({columns:e,database:t,nodeId:s,groupId:n,pDiskId:r,filterGroup:a,filterGroupBy:l,searchValue:u,visibleEntities:c,onShowAll:m,parentRef:p,renderControls:h,renderErrorMessage:g,initialEntitiesCount:v})=>{const S=(0,d.Pm)(),N=(0,d.YA)(),k=(b=N,o.useCallback((async e=>{const{limit:t,offset:s,sortParams:n,filters:r,columnsIds:o}=e,{sortOrder:a,columnId:i}=null!==n&&void 0!==n?n:{},{searchValue:l,visibleEntities:d,database:u,nodeId:c,groupId:m,pDiskId:p,filterGroup:h,filterGroupBy:g}=null!==r&&void 0!==r?r:{},v=(0,f.GP)(i),S=v?(0,oe.T)(v,a):void 0,N=(0,ae.R)(o,f.YX),{groups:k,found:y,total:x}=await(0,re.t)({limit:t,offset:s,sort:S,filter:l,with:d,database:u,nodeId:c,groupId:m,pDiskId:p,filter_group:h,filter_group_by:g,fieldsRequired:N,shouldUseGroupsHandler:b});return{data:k||[],found:y||0,total:x||0}}),[b]));var b;const y=o.useMemo((()=>({searchValue:u,visibleEntities:c,database:t,nodeId:s,groupId:n,pDiskId:r,filterGroup:a,filterGroupBy:l})),[u,c,t,s,n,r,a,l]);return(0,j.jsx)(i.r,{loading:!S,children:(0,j.jsx)(K.k5,{columnsWidthLSKey:f.qK,parentRef:p,columns:e,fetchData:k,limit:50,initialEntitiesCount:v,renderControls:h,renderErrorMessage:g,renderEmptyDataMessage:()=>c!==C.r.all?(0,j.jsx)(ne,{onShowAll:m,visibleEntities:c}):(0,se.A)("empty.default"),filters:y,tableName:"storage-groups"})})};var le=s(43951),de=s(19093);function ue(e){return o.useMemo((()=>(0,de.J)({viewContext:e})),[e])}function ce({visibleEntities:e,viewContext:t}){const s=ue(t),n=o.useMemo((()=>e===C.r.missing?[...f.LO,f.UW.Degraded]:e===C.r.space?[...f.LO,f.UW.DiskSpace]:f.LO),[e]);return(0,le.K)(s,f.zY,f.H6,f.hu,n)}var me=s(71708),pe=s(62710);function he(e){const{storageGroupsGroupByParam:t,visibleEntities:s,handleShowAllGroups:n}=B(),r=(0,d.Pm)(),a=(0,d.SA)();o.useEffect((()=>{a&&"all"!==s&&n()}),[n,a,s]);return(0,j.jsx)(i.r,{loading:!r,children:a&&t?(0,j.jsx)(ve,{...e}):(0,j.jsx)(ge,{...e})})}function ge({database:e,nodeId:t,groupId:s,pDiskId:n,viewContext:r,parentRef:o,initialEntitiesCount:a}){const{searchValue:i,visibleEntities:l,handleShowAllGroups:u}=B(),c=(0,d.SA)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=ce({visibleEntities:l,viewContext:r});return(0,j.jsx)(ie,{database:e,nodeId:t,groupId:s,pDiskId:n,searchValue:i,visibleEntities:l,onShowAll:u,parentRef:o,renderControls:({totalEntities:e,foundEntities:t,inited:s})=>(0,j.jsx)($,{withTypeSelector:!0,withGroupBySelect:c,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!s,columnsToSelect:p,handleSelectedColumnsUpdate:h}),renderErrorMessage:W,columns:m,initialEntitiesCount:a})}function ve({database:e,nodeId:t,groupId:s,pDiskId:n,parentRef:o,viewContext:i}){const[d]=(0,r.Nt)(),{searchValue:c,storageGroupsGroupByParam:m,visibleEntities:p,handleShowAllGroups:h}=B(),{columnsToShow:g,columnsToSelect:v,setColumns:f}=ce({visibleEntities:p,viewContext:i}),{currentData:S,isFetching:N,error:k}=u.S.useGetStorageGroupsInfoQuery({database:e,with:"all",nodeId:t,groupId:s,pDiskId:n,filter:c,shouldUseGroupsHandler:!0,group:m},{pollingInterval:d}),b=void 0===S&&N,{tableGroups:y,found:x=0,total:w=0}=S||{},{expandedGroups:D,setIsGroupExpanded:I}=(0,pe.$)(y);return(0,j.jsxs)(l.L,{children:[(0,j.jsx)(l.L.Controls,{children:(0,j.jsx)($,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:x,entitiesCountTotal:w,entitiesLoading:b,columnsToSelect:v,handleSelectedColumnsUpdate:f})}),k?(0,j.jsx)(a.o,{error:k}):null,(0,j.jsx)(l.L.Table,{loading:b,className:V("groups-wrapper"),children:null!==y&&void 0!==y&&y.length?y.map((({name:r,count:a})=>{const i=D[r];return(0,j.jsx)(me.Q,{title:r,count:a,entityName:R("groups"),expanded:i,onIsExpandedChange:I,children:(0,j.jsx)(ie,{database:e,parentRef:o,nodeId:t,groupId:s,pDiskId:n,filterGroup:r,filterGroupBy:m,searchValue:c,visibleEntities:"all",onShowAll:h,renderErrorMessage:W,columns:g,initialEntitiesCount:a})},r)})):R("no-groups")})]})}var fe=s(67298),Se=s(71294);const Ne=JSON.parse('{"empty.default":"No such nodes","empty.out_of_space":"No nodes with out of space errors","empty.degraded":"No degraded nodes","empty.small_uptime":"No nodes with uptime < 1h","empty.several_filters":"No nodes match current filters combination","show_all":"Show all nodes"}'),ke=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432","empty.out_of_space":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0443\u0437\u043b\u043e\u0432","empty.small_uptime":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432 \u0441 uptime < 1h","empty.several_filters":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u043f\u043e\u0434 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0443\u0437\u043b\u044b"}'),be=(0,U.g4)("ydb-storage-nodes",{ru:ke,en:Ne}),ye=({visibleEntities:e,nodesUptimeFilter:t,onShowAll:s})=>{let n;return e===C.r.space&&(n=be("empty.out_of_space")),e===C.r.missing&&(n=be("empty.degraded")),t===_.cW.SmallUptime&&(n=be("empty.small_uptime")),e!==C.r.all&&t!==_.cW.All&&(n=be("empty.several_filters")),n?(0,j.jsx)(te,{title:n,showAll:be("show_all"),onShowAll:s}):null};var xe=s(48532);const we=async e=>{const{type:t="static",storage:s=!0,limit:n,offset:r,sortParams:o,filters:a,columnsIds:i}=e,{searchValue:l,nodesUptimeFilter:d,visibleEntities:u,database:c,nodeId:m,groupId:p,filterGroup:h,filterGroupBy:g}=null!==a&&void 0!==a?a:{},{sortOrder:v,columnId:f}=null!==o&&void 0!==o?o:{},S=(0,N.kU)(f),k=S?(0,oe.T)(S,v):void 0,b=(0,ae.R)(i,N.fN),y=await window.api.viewer.getNodes({type:t,storage:s,limit:n,offset:r,sort:k,filter:l,uptime:(0,_.Fo)(d),with:u,database:c,node_id:m,group_id:p,filter_group:h,filter_group_by:g,fieldsRequired:b}),x=(0,xe.rz)(y);return{data:x.nodes||[],found:x.found||0,total:x.total||0}},De=(0,z.cn)("ydb-storage-nodes"),Ie=e=>De("node",{unavailable:(0,_.X7)(e)}),Ce=({columns:e,database:t,nodeId:s,groupId:n,filterGroup:r,filterGroupBy:a,searchValue:i,visibleEntities:l,nodesUptimeFilter:d,onShowAll:u,parentRef:c,renderControls:m,renderErrorMessage:p,initialEntitiesCount:h})=>{const g=o.useMemo((()=>({searchValue:i,visibleEntities:l,nodesUptimeFilter:d,database:t,nodeId:s,groupId:n,filterGroup:r,filterGroupBy:a})),[i,l,d,t,s,n,r,a]);return(0,j.jsx)(K.k5,{columnsWidthLSKey:k,parentRef:c,columns:e,fetchData:we,rowHeight:51,limit:50,initialEntitiesCount:h,renderControls:m,renderErrorMessage:p,renderEmptyDataMessage:()=>l!==C.r.all||d!==_.cW.All?(0,j.jsx)(ye,{onShowAll:u,nodesUptimeFilter:d,visibleEntities:l}):be("empty.default"),getRowClassName:Ie,filters:g,tableName:"storage-nodes"})};var je=s(4557),Pe=s(78762),Ae=s(10576);const Ee=(0,z.cn)("ydb-storage-nodes-columns"),Te=({viewContext:e})=>({name:N.vg.PDisks,header:N.uG.PDisks,className:Ee("pdisks-column"),render:({row:t})=>{var s;return(0,j.jsx)("div",{className:Ee("pdisks-wrapper"),children:null===(s=t.PDisks)||void 0===s?void 0:s.map((s=>{var n;const r=null===(n=t.VDisks)||void 0===n?void 0:n.filter((e=>e.PDiskId===s.PDiskId));return(0,j.jsx)("div",{className:Ee("pdisks-item"),children:(0,j.jsx)(Ae.E,{data:s,vDisks:r,viewContext:e})},s.PDiskId)}))})},align:je.Ay.CENTER,sortable:!1,width:900,resizeable:!1});function Ue({visibleEntities:e,database:t,additionalNodesProps:s,viewContext:n}){const r=o.useMemo((()=>(({database:e,additionalNodesProps:t,viewContext:s})=>{const n=null===t||void 0===t?void 0:t.getNodeRef;return[(0,Pe._E)(),(0,Pe.Nh)({getNodeRef:n,database:e}),(0,Pe.eT)(),(0,Pe.uk)(),(0,Pe.OX)(),(0,Pe.jl)(),(0,Pe.fr)(),(0,Pe.kv)(),(0,Pe.pH)(),(0,Pe.iX)(),(0,Pe.Bg)(),(0,Pe.Rn)(),(0,Pe.Vz)(),Te({viewContext:s})].map((e=>({...e,sortable:(0,N.sp)(e.name)})))})({database:t,additionalNodesProps:s,viewContext:n})),[t,s,n]),a=o.useMemo((()=>e===C.r.missing?[...y,N.vg.Missing]:y),[e]);return(0,le.K)(r,"storageNodesSelectedColumns",N.uG,b,a)}const Ge=e=>{const{storageNodesGroupByParam:t,visibleEntities:s,nodesUptimeFilter:n,handleShowAllNodes:r}=B(),a=(0,d.Pm)(),l=(0,d.Ye)();o.useEffect((()=>{!l||"all"===s&&n===_.cW.All||r()}),[r,n,l,s]);return(0,j.jsx)(i.r,{loading:!a,children:l&&t?(0,j.jsx)(Le,{...e}):(0,j.jsx)(Re,{...e})})};function Re({database:e,nodeId:t,groupId:s,viewContext:n,parentRef:r,initialEntitiesCount:o}){const{searchValue:a,visibleEntities:i,nodesUptimeFilter:l,handleShowAllNodes:u}=B(),c=(0,d.Ye)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=Me({database:e,viewContext:n});return(0,j.jsx)(Ce,{database:e,nodeId:t,groupId:s,searchValue:a,visibleEntities:i,nodesUptimeFilter:l,onShowAll:u,parentRef:r,renderControls:({totalEntities:e,foundEntities:t,inited:s})=>(0,j.jsx)(Y,{withTypeSelector:!0,withGroupBySelect:c,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!s,columnsToSelect:p,handleSelectedColumnsUpdate:h}),renderErrorMessage:W,columns:m,initialEntitiesCount:o})}function Le({database:e,groupId:t,nodeId:s,viewContext:n,parentRef:o}){const[a]=(0,r.Nt)(),{searchValue:i,storageNodesGroupByParam:d,handleShowAllNodes:c}=B(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=Me({database:e,viewContext:n}),{currentData:g,isFetching:v,error:f}=u.S.useGetStorageNodesInfoQuery({database:e,with:"all",filter:i,node_id:s,group_id:t,group:d},{pollingInterval:a}),S=void 0===g&&v,{tableGroups:N,found:k=0,total:b=0}=g||{},{expandedGroups:y,setIsGroupExpanded:x}=(0,pe.$)(N);return(0,j.jsxs)(l.L,{children:[(0,j.jsx)(l.L.Controls,{children:(0,j.jsx)(Y,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:k,entitiesCountTotal:b,entitiesLoading:S,columnsToSelect:p,handleSelectedColumnsUpdate:h})}),f?(0,j.jsx)(M.o,{error:f}):null,(0,j.jsx)(l.L.Table,{loading:S,className:V("groups-wrapper"),children:null!==N&&void 0!==N&&N.length?N.map((({name:n,count:r})=>{const a=y[n];return(0,j.jsx)(me.Q,{title:n,count:r,entityName:R("nodes"),expanded:a,onIsExpandedChange:x,children:(0,j.jsx)(Ce,{database:e,parentRef:o,nodeId:s,groupId:t,searchValue:i,visibleEntities:"all",nodesUptimeFilter:_.cW.All,onShowAll:c,filterGroup:n,filterGroupBy:d,renderErrorMessage:W,columns:m,initialEntitiesCount:r})},n)})):R("no-nodes")})]})}function Me({database:e,viewContext:t}){const{balancer:s}=(0,fe.Zd)(),{additionalNodesProps:n}=(0,Se.B)({balancer:s}),{visibleEntities:r}=B();return Ue({additionalNodesProps:n,visibleEntities:r,database:e,viewContext:t})}var ze=s(3218);const Ve=e=>{const{storageType:t}=B();return"nodes"===t?(0,j.jsx)(Ge,{initialEntitiesCount:(0,ze.b0)(e.viewContext),...e}):(0,j.jsx)(he,{initialEntitiesCount:(0,ze.QQ)(e.viewContext),...e})};var We=s(64689),Oe=s(86200);const Fe=e=>e.trim().toLowerCase();function He(e,t,s){let r=e||[];return r=((e,t)=>{const s=Fe(t);return s?e.filter((e=>{var t,n;return(null===(t=e.NodeId)||void 0===t?void 0:t.toString().includes(s))||(null===(n=e.Host)||void 0===n?void 0:n.toLowerCase().includes(s))})):e})(r,t),r=((e=[],t)=>t===_.cW.All?e:e.filter((({StartTime:e})=>!e||(0,Oe.kc)(e)<n.Jg)))(r,s),r}function _e(e,t){let s=e||[];return s=((e,t)=>{const s=Fe(t);return s?e.filter((e=>{var t,n;return(null===(t=e.PoolName)||void 0===t?void 0:t.toLowerCase().includes(s))||(null===(n=e.GroupId)||void 0===n?void 0:n.toString().includes(s))})):e})(s,t),s}var Be=s(17594);function $e({data:e,columns:t,visibleEntities:s,onShowAll:r,sort:o,handleSort:a}){return e.length||s===C.r.all?(0,j.jsx)(Be.l,{columnsWidthLSKey:f.qK,data:e,columns:t,settings:n.N3,emptyDataMessage:(0,se.A)("empty.default"),sortOrder:o,onSort:a},s):(0,j.jsx)(ne,{onShowAll:r,visibleEntities:s})}const Ye={...n.N3,dynamicRenderMinSize:51};function Ke({data:e,columns:t,visibleEntities:s,nodesUptimeFilter:n,sort:r,onShowAll:o,handleSort:a}){return e.length||s===C.r.all&&n===_.cW.All?(0,j.jsx)(Be.l,{columnsWidthLSKey:k,data:e,columns:t,settings:Ye,emptyDataMessage:be("empty.default"),rowClassName:Ie,sortOrder:r,onSort:a},s):(0,j.jsx)(ye,{visibleEntities:s,nodesUptimeFilter:n,onShowAll:o})}function Je({sortValue:e,sortOrder:t},s){return(0,r.GY)({initialSortColumn:e,initialSortOrder:t,multiple:!1,onSort:e=>{const t=null!==e&&void 0!==e&&e[0]?{sortValue:e[0].columnId,sortOrder:e[0].order}:void 0;s(t)}})}const Qe=({database:e,viewContext:t,nodeId:s,groupId:n,pDiskId:a})=>{var i,c;const{balancer:m}=(0,fe.Zd)(),{additionalNodesProps:p}=(0,Se.B)({balancer:m}),{storageType:h,searchValue:g,visibleEntities:v,nodesUptimeFilter:f,handleShowAllGroups:S,handleShowAllNodes:N}=B(),k=(0,d.Pm)(),b=(0,d.YA)(),[y]=(0,r.Nt)(),x="groups"===h,w="nodes"===h,[D,I]=o.useState(void 0),C=D||ze.ex,[P,A]=o.useState(void 0),E=P||(0,ze.Zh)(v),{columnsToShow:T,columnsToSelect:U,setColumns:G}=Ue({additionalNodesProps:p,visibleEntities:v,database:e,viewContext:t}),{columnsToShow:R,columnsToSelect:z,setColumns:W}=ce({visibleEntities:v,viewContext:t}),O=u.S.useGetStorageNodesInfoQuery({database:e,with:v,node_id:s,group_id:n},{skip:!w,pollingInterval:y}),F=u.S.useGetStorageGroupsInfoQuery({database:e,with:v,nodeId:s,groupId:n,pDiskId:a,shouldUseGroupsHandler:b,fieldsRequired:"all"},{skip:!x||!k,pollingInterval:y}),{currentData:H,isFetching:_,error:K}=w?O:F,{currentData:{nodes:J=[]}={}}=O,{currentData:{groups:Q=[]}={}}=F,q=(null===(i=O.currentData)||void 0===i?void 0:i.total)||0,X=(null===(c=F.currentData)||void 0===c?void 0:c.total)||0,Z=void 0===H&&_,ee=o.useMemo((()=>He(J,g,f)),[J,f,g]),te=o.useMemo((()=>_e(Q,g)),[g,Q]),[se,ne]=Je(C,I),[re,oe]=Je(E,A);return(0,We.P)(K)?(0,j.jsx)(L.O,{position:"left"}):(0,j.jsxs)(l.L,{children:[(0,j.jsx)(l.L.Controls,{children:(0,j.jsxs)(o.Fragment,{children:[x?(0,j.jsx)($,{withTypeSelector:!0,entitiesCountCurrent:te.length,entitiesCountTotal:X,entitiesLoading:Z,columnsToSelect:z,handleSelectedColumnsUpdate:W}):null,w?(0,j.jsx)(Y,{withTypeSelector:!0,entitiesCountCurrent:ee.length,entitiesCountTotal:q,entitiesLoading:Z,columnsToSelect:U,handleSelectedColumnsUpdate:G}):null]})}),K?(0,j.jsx)(M.o,{error:K}):null,(0,j.jsx)(l.L.Table,{loading:Z||!k,className:V("table"),children:H?(0,j.jsxs)(o.Fragment,{children:[x?(0,j.jsx)($e,{visibleEntities:v,data:te,onShowAll:S,sort:re,handleSort:oe,columns:R},"groups"):null,w?(0,j.jsx)(Ke,{visibleEntities:v,nodesUptimeFilter:f,data:ee,onShowAll:N,sort:se,handleSort:ne,columns:T},"nodes"):null]}):null})]})},qe=({parentRef:e,...t})=>{var s,o,a,i;const[l]=(0,r.iK)(n.Ku),d={nodeId:null===(s=t.nodeId)||void 0===s?void 0:s.toString(),pDiskId:null===(o=t.pDiskId)||void 0===o?void 0:o.toString(),groupId:null===(a=t.groupId)||void 0===a?void 0:a.toString(),vDiskSlotId:null===(i=t.vDiskSlotId)||void 0===i?void 0:i.toString()};return l?(0,j.jsx)(Ve,{parentRef:e,viewContext:d,...t}):(0,j.jsx)(Qe,{viewContext:d,...t})}},71708:(e,t,s)=>{s.d(t,{Q:()=>d});s(59284);var n=s(33705),r=s(98089),o=s(47665),a=s(77506),i=s(60712);const l=(0,a.cn)("ydb-table-group");function d({children:e,title:t,entityName:s,count:a,expanded:d=!1,onIsExpandedChange:u}){const c=()=>{u(t,!d)};return(0,i.jsxs)("div",{className:l(null),children:[(0,i.jsx)("button",{onClick:c,className:l("button"),title:t,children:(0,i.jsxs)("div",{className:l("title-wrapper"),children:[(0,i.jsx)(n.I,{direction:d?"top":"bottom"}),(0,i.jsxs)("div",{className:l("title"),children:[(0,i.jsx)(r.E,{variant:"subheader-2",children:t}),(0,i.jsxs)(r.E,{variant:"body-2",color:"secondary",className:l("count"),children:[s,": ",(0,i.jsx)(o.J,{theme:"normal",children:a})]})]})]})}),d?(0,i.jsx)("div",{className:l("content"),children:e}):null]})}},62710:(e,t,s)=>{s.d(t,{$:()=>r});var n=s(59284);function r(e){const[t,s]=n.useState({});n.useEffect((()=>{null!==e&&void 0!==e&&e.length&&s((t=>e.reduce(((e,{name:s})=>{const n=t[s];return{...e,[s]:null!==n&&void 0!==n&&n}}),{})))}),[e]);return{expandedGroups:t,setIsGroupExpanded:n.useCallback(((e,t)=>{s((s=>({...s,[e]:t})))}),[])}}},3218:(e,t,s)=>{s.d(t,{OH:()=>f,QQ:()=>k,Zh:()=>v,b0:()=>N,ex:()=>m,k_:()=>c});var n=s(6388),r=s(86782),o=s(87082),a=s(7435),i=s(16439),l=s(10360);const d=(0,i.H)(1,2,["success","warning","danger"]),u={"block-4-2":(0,i.H)(1,2,["success","warning","danger"]),"mirror-3-dc":(0,i.H)(1,3,["success","warning","danger"])},c=e=>{var t;return(void 0!==(t=e.ErasureSpecies)&&t in u?u[e.ErasureSpecies]:d)(e.Degraded)},m={sortValue:r.vg.NodeId,sortOrder:n.VU},p={sortValue:l.UW.PoolName,sortOrder:n.VU},h={sortValue:l.UW.Degraded,sortOrder:n.xN},g={sortValue:l.UW.Usage,sortOrder:n.xN};function v(e){return e===o.r.missing?h:e===o.r.space?g:p}function f(e,t){var s;let n=!0;return(0,a.f8)(null===(s=e.VDiskId)||void 0===s?void 0:s.GroupID)&&null!==t&&void 0!==t&&t.groupId&&(n&&=String(e.VDiskId.GroupID)===t.groupId),(0,a.f8)(e.NodeId)&&null!==t&&void 0!==t&&t.nodeId&&(n&&=String(e.NodeId)===t.nodeId),(0,a.f8)(e.PDiskId)&&null!==t&&void 0!==t&&t.pDiskId&&(n&&=String(e.PDiskId)===t.pDiskId),(0,a.f8)(e.VDiskSlotId)&&null!==t&&void 0!==t&&t.vDiskSlotId&&(n&&=String(e.VDiskSlotId)===t.vDiskSlotId),n}const S=10;function N({nodeId:e,pDiskId:t,vDiskSlotId:s}){return(0,a.f8)(e)||(0,a.f8)(t)||(0,a.f8)(s)?1:S}function k({vDiskSlotId:e,groupId:t}){return(0,a.f8)(t)||(0,a.f8)(e)?1:S}},11906:(e,t,s)=>{s.d(t,{$:()=>a,N:()=>o});var n=s(16439),r=s(78034);const o=e=>{var t;const s=(e.Nodes||[]).map((e=>{const{SystemState:t,...s}=e;return{...s,...(0,r.q1)(t)}}));return{Nodes:s,NodeGroups:null===(t=e.NodeGroups)||void 0===t?void 0:t.map((({GroupName:e,NodeCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e))),TotalNodes:Number(e.TotalNodes)||s.length,FoundNodes:Number(e.FoundNodes)}},a=(0,n.H)(60,80,["success","warning","danger"])},87082:(e,t,s)=>{s.d(t,{G:()=>r,r:()=>n});const n={all:"all",missing:"missing",space:"space"},r={groups:"groups",nodes:"nodes"}},16029:(e,t,s)=>{s.d(t,{t:()=>r});var n=s(48532);async function r({version:e="v2",shouldUseGroupsHandler:t,...s},r){if(t&&"v1"!==e){const e=await window.api.storage.getStorageGroups({...s},r);return(0,n.Rv)(e)}{const t=await window.api.viewer.getStorageInfo({version:e,...s},r);return(0,n.Qi)(t)}}},10174:(e,t,s)=>{s.d(t,{S:()=>a});var n=s(21334),r=s(16029),o=s(48532);const a=n.F.injectEndpoints({endpoints:e=>({getStorageNodesInfo:e.query({queryFn:async(e,{signal:t})=>{try{const s=await window.api.viewer.getNodes({storage:!0,type:"static",...e},{signal:t});return{data:(0,o.rz)(s)}}catch(s){return{error:s}}},providesTags:["All","StorageData"]}),getStorageGroupsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await(0,r.t)(e,{signal:t})}}catch(s){return{error:s}}},providesTags:["All","StorageData"]})}),overrideExisting:"throw"})},48532:(e,t,s)=>{s.d(t,{Rv:()=>y,rz:()=>k,Qi:()=>b});var n=s(94025),r=s(67375),o=s(7187),a=s(27295),i=s(78034),l=s(3810),d=s(73891),u=s(86200),c=s(51930),m=s(64036),p=s(78461);function h(e={}){var t,s,n,r;const{Whiteboard:i={},PDisk:l,...d}=e,g={...i,...d,VDiskId:i.VDiskId},v=l?function(e={}){var t,s,n;const{Whiteboard:r,...i}=e,l={...r,...i,PDiskId:null===r||void 0===r?void 0:r.PDiskId},d=i.PDiskId||(0,o.r$)(l.NodeId,l.PDiskId),{AllocatedPercent:u,AllocatedSize:m,AvailableSize:h,TotalSize:g}=(0,a.hK)({AvailableSize:l.AvailableSize,TotalSize:l.TotalSize}),v=null!==(t=null===(s=i.Type)||void 0===s?void 0:s.toUpperCase())&&void 0!==t?t:(0,p.Y)(null===r||void 0===r?void 0:r.Category),f=(0,c.d)({State:null===r||void 0===r?void 0:r.State,AllocatedPercent:u}),S=null!==(n=i.SlotSize)&&void 0!==n?n:null===r||void 0===r?void 0:r.EnforcedDynamicSlotSize;return{...l,StringifiedId:d,AllocatedPercent:u,AllocatedSize:m,AvailableSize:h,TotalSize:g,Type:v,Severity:f,SlotSize:S}}({...l,NodeId:g.NodeId}):void 0,f=null!==(t=null===v||void 0===v?void 0:v.PDiskId)&&void 0!==t?t:null===i||void 0===i?void 0:i.PDiskId,S=null!==(s=d.VDiskId)&&void 0!==s?s:(0,u.U9)(i.VDiskId),N=(0,m.b)(g),k=(0,a.LW)({AvailableSize:null!==(n=g.AvailableSize)&&void 0!==n?n:null===l||void 0===l?void 0:l.AvailableSize,AllocatedSize:g.AllocatedSize}),b=null===(r=d.Donors)||void 0===r?void 0:r.map((e=>h({...e,Whiteboard:{...e.Whiteboard,DonorMode:!0}})));return{...g,...k,PDisk:v,Donors:b,PDiskId:f,StringifiedId:S,Severity:N}}function g(e){const{DiskSpace:t,VDisks:s=[]}=e;return t||(0,o.XY)(Math.max(...s.map((e=>(0,o.H7)(e.DiskSpace)))))}const v=(e,t)=>{var s;const n=(0,a.WT)(e);return{...n,StoragePoolName:t,Donors:null===n||void 0===n||null===(s=n.Donors)||void 0===s?void 0:s.map((e=>({...e,StoragePoolName:t})))}},f=e=>{const{VDisks:t=[],PoolName:s,Usage:n=0,Read:r=0,Write:o=0,Used:a=0,Limit:i=0,Degraded:l=0,Kind:d,MediaType:u,GroupID:c,Overall:m,GroupGeneration:p}=e,h=t.map((e=>v(e,s))),f=100*Number(n),S=g(e);return{...e,PoolName:s,GroupId:c,MediaType:u||d,VDisks:h,Usage:f,Overall:m,GroupGeneration:p?String(p):void 0,Read:Number(r),Write:Number(o),Used:Number(a),Limit:Number(i),Degraded:Number(l),DiskSpace:S}},S=(e,t)=>{let s=[];return e?s=e.map(f):null===t||void 0===t||t.forEach((e=>{var t;null===(t=e.Groups)||void 0===t||t.forEach((t=>{s.push(((e,t)=>{var s;let o,i=0,d=0,u=0,c=0,m=0;const{Name:p,MediaType:h}=t;if(e.VDisks)for(const l of e.VDisks){const{Replicated:e,VDiskState:t,AvailableSize:s,AllocatedSize:p,PDisk:h,ReadThroughput:g,WriteThroughput:v}=l,{Type:f,State:S,AvailableSize:N}=(0,a.or)(h);e&&S===n.t.Normal&&t===r.W.OK||(i+=1);const k=Number(null!==s&&void 0!==s?s:N)||0,b=Number(p)||0;d+=b,u+=k+b,c+=Number(g)||0,m+=Number(v)||0,o=!f||f!==o&&o?"Mixed":f}const f=null===(s=e.VDisks)||void 0===s?void 0:s.map((e=>v(e,p))),S=u?(0,l.y)({Used:d,Limit:u},5):void 0,N=g(e);return{...e,GroupGeneration:e.GroupGeneration?String(e.GroupGeneration):void 0,GroupId:e.GroupID,Overall:e.Overall,VDisks:f,Usage:S,Read:c,Write:m,PoolName:p,Used:d,Limit:u,Degraded:i,MediaType:h||o||void 0,DiskSpace:N}})(t,e))}))})),s},N=e=>{var t,s,r;const o=(null===(t=e.PDisks)||void 0===t?void 0:t.filter((e=>e.State!==n.t.Normal)).length)||0,l=null===(s=e.PDisks)||void 0===s?void 0:s.map((t=>({...(0,a.or)(t),NodeId:e.NodeId}))),d=null===(r=e.VDisks)||void 0===r?void 0:r.map((t=>({...(0,a.WT)(t),NodeId:e.NodeId})));return{...(0,i.q1)(e.SystemState),NodeId:e.NodeId,DiskSpaceUsage:e.DiskSpaceUsage,PDisks:l,VDisks:d,Missing:o}},k=e=>{const{Nodes:t,TotalNodes:s,FoundNodes:n,NodeGroups:r}=e,o=null===r||void 0===r?void 0:r.map((({GroupName:e,NodeCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e))),a=null===t||void 0===t?void 0:t.map(N);return{nodes:a,total:Number(s)||(null===a||void 0===a?void 0:a.length),found:Number(n),tableGroups:o}},b=e=>{const{StoragePools:t,StorageGroups:s,TotalGroups:n,FoundGroups:r}=e,o=S(s,t);return{groups:o,total:Number(n)||o.length,found:Number(r)}};function y(e){const{FoundGroups:t,TotalGroups:s,StorageGroups:n=[],StorageGroupGroups:r}=e,o=n.map((e=>{const{Usage:t,DiskSpaceUsage:s,Read:n,Write:r,Used:o,Limit:a,MissingDisks:i,VDisks:l=[],Overall:u,LatencyPutTabletLog:c,LatencyPutUserData:m,LatencyGetFast:p}=e,v=l.map(h),f=g(e);return{...e,Usage:t,DiskSpaceUsage:s,Read:Number(n),Write:Number(r),Used:Number(o),Limit:Number(a),LatencyPutTabletLogMs:(0,d.Jc)(c),LatencyPutUserDataMs:(0,d.Jc)(m),LatencyGetFastMs:(0,d.Jc)(p),Degraded:Number(i),Overall:u,VDisks:v,DiskSpace:f}})),a=null===r||void 0===r?void 0:r.map((({GroupName:e,GroupCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e)));return{groups:o,total:Number(s)||o.length,found:Number(t),tableGroups:a}}},94025:(e,t,s)=>{let n;s.d(t,{t:()=>n}),function(e){e.Initial="Initial",e.InitialFormatRead="InitialFormatRead",e.InitialFormatReadError="InitialFormatReadError",e.InitialSysLogRead="InitialSysLogRead",e.InitialSysLogReadError="InitialSysLogReadError",e.InitialSysLogParseError="InitialSysLogParseError",e.InitialCommonLogRead="InitialCommonLogRead",e.InitialCommonLogReadError="InitialCommonLogReadError",e.InitialCommonLogParseError="InitialCommonLogParseError",e.CommonLoggerInitError="CommonLoggerInitError",e.Normal="Normal",e.OpenFileError="OpenFileError",e.ChunkQuotaError="ChunkQuotaError",e.DeviceIoError="DeviceIoError",e.Missing="Missing",e.Timeout="Timeout",e.NodeDisconnected="NodeDisconnected",e.Unknown="Unknown"}(n||(n={}))},67375:(e,t,s)=>{let n;s.d(t,{W:()=>n}),function(e){e.Initial="Initial",e.LocalRecoveryError="LocalRecoveryError",e.SyncGuidRecovery="SyncGuidRecovery",e.SyncGuidRecoveryError="SyncGuidRecoveryError",e.OK="OK",e.PDiskError="PDiskError"}(n||(n={}))},51930:(e,t,s)=>{s.d(t,{d:()=>i});var n=s(54090),r=s(16439),o=s(5707);const a=(0,r.H)(85,95,[n.m.Green,n.m.Yellow,n.m.Red]);function i(e){const t=function(e){return t=e,void 0!==t&&t in o.iZ?o.iZ[e]:o.Km;var t}(e.State),s=a(e.AllocatedPercent||0);return t!==o.Km&&s?Math.max(t,o.aW[s]):t}},64036:(e,t,s)=>{s.d(t,{b:()=>r});var n=s(5707);function r(e){const{DiskSpace:t,VDiskState:s,FrontQueues:r,Replicated:a}=e;if(!s)return n.Km;const i=o(t),l=function(e){var t;if(!e)return n.Km;return null!==(t=n.qs[e])&&void 0!==t?t:n.Km}(s),d=Math.min(n.aW.Orange,o(r));let u=Math.max(i,l,d);return a||u!==n.aW.Green||(u=n.aW.Blue),u}function o(e){var t;return e&&null!==(t=n.aW[e])&&void 0!==t?t:n.Km}},5707:(e,t,s)=>{s.d(t,{A$:()=>a,Km:()=>i,Yh:()=>l,aW:()=>o,iZ:()=>u,qs:()=>d});var n=s(94025),r=s(67375);const o={Grey:0,Green:1,Blue:2,Yellow:3,Orange:4,Red:5},a=Object.entries(o).reduce(((e,[t,s])=>({...e,[s]:t})),{}),i=o.Grey,l=a[i],d={[r.W.OK]:o.Green,[r.W.Initial]:o.Yellow,[r.W.SyncGuidRecovery]:o.Yellow,[r.W.LocalRecoveryError]:o.Red,[r.W.SyncGuidRecoveryError]:o.Red,[r.W.PDiskError]:o.Red},u={[n.t.Initial]:o.Grey,[n.t.Normal]:o.Green,[n.t.InitialFormatRead]:o.Yellow,[n.t.InitialSysLogRead]:o.Yellow,[n.t.InitialCommonLogRead]:o.Yellow,[n.t.InitialFormatReadError]:o.Red,[n.t.InitialSysLogReadError]:o.Red,[n.t.InitialSysLogParseError]:o.Red,[n.t.InitialCommonLogReadError]:o.Red,[n.t.InitialCommonLogParseError]:o.Red,[n.t.CommonLoggerInitError]:o.Red,[n.t.OpenFileError]:o.Red,[n.t.ChunkQuotaError]:o.Red,[n.t.DeviceIoError]:o.Red}},78461:(e,t,s)=>{s.d(t,{Y:()=>r});const n={HDD:"HDD",SSD:"SSD",MVME:"NVME"};function r(e){if(!e)return;const t=function(e,t){const s={};return Object.entries(t).reduce(((t,[n,r])=>{const o=e.length-t,a=o-r;return s[n]=e.substring(a,o)||"0",t+r}),0),s}(BigInt(e).toString(2),{isSolidState:1,kind:55,typeExt:8});if("1"===t.isSolidState)switch(parseInt(t.typeExt,2)){case 0:return n.SSD;case 2:return n.MVME}else if("0"===t.typeExt)return n.HDD}},7187:(e,t,s)=>{s.d(t,{H7:()=>i,NJ:()=>o,XY:()=>a,gh:()=>d,r$:()=>l});var n=s(7435),r=s(5707);function o(e){return"VDiskId"in e}function a(e){return void 0===e?r.Yh:r.A$[e]||r.Yh}function i(e){return e?r.aW[e]:0}function l(e,t){if((0,n.f8)(e)&&(0,n.f8)(t))return`${e}-${t}`}function d(e,t,s){return[e,t,s].join("-")}},27295:(e,t,s)=>{s.d(t,{LW:()=>u,WT:()=>l,hK:()=>c,or:()=>d});var n=s(86200),r=s(51930),o=s(64036),a=s(78461),i=s(7187);function l(e={}){var t;if(!(0,i.NJ)(e)){const{NodeId:t,PDiskId:s,VSlotId:r}=e;return{StringifiedId:(0,n.U9)({NodeId:t,PDiskId:s,VSlotId:r}),NodeId:t,PDiskId:s,VDiskSlotId:r}}const{PDisk:s,PDiskId:r,VDiskId:a,NodeId:c,Donors:m,AvailableSize:p,AllocatedSize:h,...g}=e,v=s?d({...s,NodeId:null!==(t=null===s||void 0===s?void 0:s.NodeId)&&void 0!==t?t:c}):void 0,f=null!==r&&void 0!==r?r:null===v||void 0===v?void 0:v.PDiskId,S=u({AvailableSize:null!==p&&void 0!==p?p:null===s||void 0===s?void 0:s.AvailableSize,AllocatedSize:h}),N=(0,o.b)(e),k=(0,n.U9)(a);return{...g,...S,VDiskId:a,NodeId:c,PDiskId:f,PDisk:v,Donors:null===m||void 0===m?void 0:m.map((e=>l({...e,DonorMode:!0}))),Severity:N,StringifiedId:k}}function d(e={}){const{AvailableSize:t,TotalSize:s,Category:n,State:o,PDiskId:l,NodeId:d,EnforcedDynamicSlotSize:u,...m}=e,p=(0,i.r$)(l,d),h=(0,a.Y)(n),g=c({AvailableSize:t,TotalSize:s}),v=(0,r.d)({State:o,AllocatedPercent:g.AllocatedPercent});return{...m,...g,PDiskId:l,NodeId:d,StringifiedId:p,Type:h,Category:n,State:o,Severity:v,SlotSize:u}}function u({AvailableSize:e,AllocatedSize:t}){const s=Number(e),n=Number(t),r=n+s;return{AvailableSize:s,AllocatedSize:n,TotalSize:r,AllocatedPercent:Math.round(100*n/r)}}function c({AvailableSize:e,TotalSize:t}){const s=Number(e),n=Number(t),r=n-s;return{AvailableSize:s,TotalSize:n,AllocatedSize:r,AllocatedPercent:Math.round(100*r/n)}}},69464:(e,t,s)=>{s.d(t,{T:()=>r});var n=s(6388);s(23536);const r=(e,t=n.xN)=>t===n.xN?`-${e}`:e},16439:(e,t,s)=>{s.d(t,{H:()=>n});const n=(e,t,s)=>n=>0<=n&&n<e?s[0]:e<=n&&n<t?s[1]:t<=n?s[2]:void 0},43951:(e,t,s)=>{s.d(t,{K:()=>o});var n=s(59284),r=s(59001);const o=(e,t,s,o,a)=>{const[i,l]=n.useState((()=>r.f.readUserSettingsValue(t,o)));return{columnsToShow:n.useMemo((()=>e.filter((e=>{const t=e.name,s=i.includes(t),n=null===a||void 0===a?void 0:a.includes(t);return s||n}))),[e,a,i]),columnsToSelect:n.useMemo((()=>e.map((e=>e.name)).map((e=>{const t=null===a||void 0===a?void 0:a.includes(e),n=i.includes(e);return{id:e,title:s[e],selected:t||n,required:t,sticky:t?"start":void 0}}))),[e,s,a,i]),setColumns:n.useCallback((e=>{const s=e.filter((e=>e.selected)).map((e=>e.id));r.f.setUserSettingsValue(t,s),l(s)}),[t])}}},16819:(e,t,s)=>{s.d(t,{a:()=>a});var n=s(59284),r=s(69024),o=s(59001);const a=e=>{const t=n.useCallback((()=>e?o.f.readUserSettingsValue(e,{}):{}),[e]),s=n.useCallback((t=>{e&&o.f.setUserSettingsValue(e,t)}),[e]);return(0,r.a)({saveSizes:s,getSizes:t})}},35736:(e,t,s)=>{function n({inverseColorize:e,warningThreshold:t=60,dangerThreshold:s=80,colorizeProgress:n,fillWidth:r}){let o=e?"danger":"good";return n&&(r>t&&r<=s?o="warning":r>s&&(o=e?"good":"danger")),o}s.d(t,{w:()=>n})},3810:(e,t,s)=>{s.d(t,{x:()=>o,y:()=>r});var n=s(16439);const r=(e,t=1)=>{const s=e.Limit?100*e.Used/e.Limit:0;return Math.floor(s/t)*t},o=(0,n.H)(80,85,["success","warning","danger"])},40781:(e,t,s)=>{function n(e,t){const s=e.reduce(((e,s)=>(t[s].forEach((t=>{e.add(t)})),e)),new Set);return Array.from(s).sort()}s.d(t,{R:()=>n})},58267:(e,t,s)=>{s.d(t,{PQ:()=>a,_8:()=>i});var n=s(54090),r=s(6354);const o={[r.r.Dead]:n.m.Red,[r.r.Created]:n.m.Yellow,[r.r.ResolveStateStorage]:n.m.Yellow,[r.r.Candidate]:n.m.Yellow,[r.r.BlockBlobStorage]:n.m.Yellow,[r.r.WriteZeroEntry]:n.m.Yellow,[r.r.Restored]:n.m.Yellow,[r.r.Discover]:n.m.Yellow,[r.r.Lock]:n.m.Yellow,[r.r.Stopped]:n.m.Yellow,[r.r.ResolveLeader]:n.m.Yellow,[r.r.RebuildGraph]:n.m.Yellow,[r.r.Deleted]:n.m.Green,[r.r.Active]:n.m.Green},a=(Object.keys(r.r),Object.entries(o).reduce(((e,[t,s])=>(e[s]?e[s].push(t):e[s]=[t],e)),{}),e=>{if(!e)return n.m.Grey;return t=e,Object.values(n.m).includes(t)?e:o[e];var t});function i(e){if(!e)return"unknown";switch(e){case r.r.Dead:return"danger";case r.r.Active:case r.r.Deleted:return"success";default:return"warning"}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3238.380762b8.chunk.js b/ydb/core/viewer/monitoring/static/js/3238.380762b8.chunk.js deleted file mode 100644 index 8dfe025da0f..00000000000 --- a/ydb/core/viewer/monitoring/static/js/3238.380762b8.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3238],{73238:(e,t,C)=>{C.r(t),C.d(t,{ReactComponent:()=>u,default:()=>E});var r,a,n,o,i,l,s,d,c,H,p,V,h,k=C(59284);function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var C=arguments[t];for(var r in C)Object.prototype.hasOwnProperty.call(C,r)&&(e[r]=C[r])}return e},M.apply(this,arguments)}function Z({title:e,titleId:t,...C},Z){return k.createElement("svg",M({width:260,height:260,viewBox:"0 0 520 520",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:Z,"aria-labelledby":t},C),e?k.createElement("title",{id:t},e):null,r||(r=k.createElement("path",{opacity:.1,d:"M228.637 445C217.178 445.049 206.065 441.074 197.233 433.768L28.4227 288.499C24.7711 285.319 22.4943 280.846 22.0715 276.02C21.6487 271.195 23.1128 266.393 26.1557 262.626L65.3512 214.612C66.9235 212.684 68.8667 211.091 71.0657 209.927C73.2646 208.764 75.6745 208.055 78.1525 207.841C80.6305 207.627 83.1263 207.913 85.4917 208.682C87.8572 209.452 90.0443 210.688 91.9234 212.319L223.682 326.793L435.516 94.088C438.811 90.4596 443.405 88.2807 448.298 88.0253C453.191 87.7699 457.987 89.4587 461.642 92.7243L507.824 134.205C509.647 135.841 511.129 137.821 512.184 140.032C513.24 142.243 513.849 144.64 513.975 147.087C514.102 149.534 513.744 151.982 512.922 154.29C512.101 156.598 510.831 158.721 509.187 160.536L265.553 428.549C260.881 433.709 255.185 437.838 248.829 440.671C242.472 443.503 235.595 444.978 228.637 445Z",fill:"#509CF5"})),a||(a=k.createElement("path",{d:"M412.933 102.332H294.933C289.433 102.332 284.933 106.832 284.933 112.332V315.432C284.933 320.932 289.433 325.432 294.933 325.432H446.433C451.933 325.432 456.433 320.932 456.433 315.432V133.732L429.933 107.332",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.01 10.02"})),n||(n=k.createElement("path",{d:"M425.033 102.332V104.332",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=k.createElement("path",{d:"M425.033 115.031V126.331C425.033 130.431 428.333 133.731 432.433 133.731H449.033",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.27 10.68"})),i||(i=k.createElement("path",{d:"M454.333 133.73H456.333",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=k.createElement("path",{d:"M77 397.052L89.1 409L110 388",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round"})),s||(s=k.createElement("path",{d:"M125 398C125 416.775 109.775 432 91 432C72.2252 432 57 416.775 57 398C57 379.225 72.2252 364 91 364C109.775 364 125 379.225 125 398Z",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.84 12.11"})),d||(d=k.createElement("path",{d:"M147.5 119C147.5 117.895 146.605 117 145.5 117C144.395 117 143.5 117.895 143.5 119H147.5ZM143.5 129.8C143.5 130.905 144.395 131.8 145.5 131.8C146.605 131.8 147.5 130.905 147.5 129.8H143.5ZM147.5 152.5C147.5 151.395 146.605 150.5 145.5 150.5C144.395 150.5 143.5 151.395 143.5 152.5H147.5ZM143.5 164.2C143.5 165.305 144.395 166.2 145.5 166.2C146.605 166.2 147.5 165.305 147.5 164.2H143.5ZM168.1 143.602C169.205 143.602 170.1 142.706 170.1 141.602C170.1 140.497 169.205 139.602 168.1 139.602V143.602ZM157.2 139.602C156.096 139.602 155.2 140.497 155.2 141.602C155.2 142.706 156.096 143.602 157.2 143.602V139.602ZM133.7 143.602C134.805 143.602 135.7 142.706 135.7 141.602C135.7 140.497 134.805 139.602 133.7 139.602V143.602ZM122.9 139.602C121.795 139.602 120.9 140.497 120.9 141.602C120.9 142.706 121.795 143.602 122.9 143.602V139.602ZM143.5 119V129.8H147.5V119H143.5ZM143.5 152.5V164.2H147.5V152.5H143.5ZM168.1 139.602H157.2V143.602H168.1V139.602ZM133.7 139.602H122.9V143.602H133.7V139.602Z",fill:"#2EE5C0",fillOpacity:.8})),c||(c=k.createElement("path",{d:"M406.3 397.5C406.3 396.395 405.405 395.5 404.3 395.5C403.195 395.5 402.3 396.395 402.3 397.5H406.3ZM402.3 403.1C402.3 404.205 403.195 405.1 404.3 405.1C405.405 405.1 406.3 404.205 406.3 403.1H402.3ZM406.3 414.898C406.3 413.794 405.405 412.898 404.3 412.898C403.195 412.898 402.3 413.794 402.3 414.898H406.3ZM402.3 420.998C402.3 422.103 403.195 422.998 404.3 422.998C405.405 422.998 406.3 422.103 406.3 420.998H402.3ZM416.1 411.2C417.205 411.2 418.1 410.305 418.1 409.2C418.1 408.095 417.205 407.2 416.1 407.2V411.2ZM410.4 407.2C409.295 407.2 408.4 408.095 408.4 409.2C408.4 410.305 409.295 411.2 410.4 411.2V407.2ZM398.2 411.2C399.305 411.2 400.2 410.305 400.2 409.2C400.2 408.095 399.305 407.2 398.2 407.2V411.2ZM392.5 407.2C391.395 407.2 390.5 408.095 390.5 409.2C390.5 410.305 391.395 411.2 392.5 411.2V407.2ZM402.3 397.5V403.1H406.3V397.5H402.3ZM402.3 414.898V420.998H406.3V414.898H402.3ZM416.1 407.2H410.4V411.2H416.1V407.2ZM398.2 407.2H392.5V411.2H398.2V407.2Z",fill:"#2EE5C0",fillOpacity:.8})),H||(H=k.createElement("path",{d:"M186 385.667V394.833C186 397.264 185.012 399.596 183.254 401.315C181.496 403.034 179.111 404 176.625 404H121C115.477 404 111 399.523 111 394V249C111 243.477 115.477 239 121 239H176.625C179.111 239 181.496 239.966 183.254 241.685C185.012 243.404 186 245.736 186 248.167V385.667Z",fill:"#0067C1"})),p||(p=k.createElement("path",{d:"M177.143 375.273V384.637C177.143 387.12 176.153 389.501 174.392 391.257C172.63 393.013 170.241 394 167.75 394H112C106.477 394 102 389.522 102 384V235.465C102 229.942 106.477 225.465 112 225.465H167.75C170.241 225.465 172.63 226.451 174.392 228.207C176.153 229.963 177.143 232.345 177.143 234.828V375.273Z",fill:"#007CE9"})),V||(V=k.createElement("path",{d:"M292.385 235.185C291.545 236.543 292.529 238.321 294.126 238.321H375.327C379.067 238.242 382.784 238.917 386.255 240.305C389.726 241.693 392.879 243.765 395.524 246.398C398.169 249.031 400.252 252.169 401.646 255.623C403.041 259.078 403.718 262.778 403.639 266.5C403.639 294.679 394.201 398 356.452 398H242.081C230.712 398 219.806 393.497 211.748 385.477L206.04 379.797C205.665 379.424 205.158 379.214 204.629 379.214H191.299H179.143C178.038 379.214 177.143 378.319 177.143 377.214V239.495C177.143 238.847 177.668 238.321 178.317 238.321C195.697 238.321 212.371 231.438 224.69 219.177L233.949 209.961C240.092 203.848 245.391 196.942 249.705 189.426L267.012 159.283C275.636 144.262 293.887 133.185 306.212 145.354C312.929 151.987 316.741 160.994 316.815 170.411C316.815 171.538 316.721 172.665 316.626 173.886C314.302 197.951 298.104 225.943 292.385 235.185Z",fill:"#FFCC00"})),h||(h=k.createElement("path",{d:"M356.457 369.801H237.651C229.12 369.801 220.937 366.421 214.893 360.401C208.849 354.381 200.666 351.001 192.135 351.001H177.143V379.2H192.135C200.666 379.2 208.849 382.58 214.893 388.6C220.937 394.62 229.12 398 237.651 398H356.457C394.207 398 403.645 294.601 403.645 266.402C403.645 263.723 403.328 261.054 402.701 258.449C399.568 298.831 387.743 369.801 356.457 369.801Z",fill:"#DEB700"})))}const u=k.forwardRef(Z),E=C.p+"static/media/thumbsUp.d4a03fbaa64ce85a0045bf8ba77f8e2b.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3238.a9505f7f.chunk.js b/ydb/core/viewer/monitoring/static/js/3238.a9505f7f.chunk.js new file mode 100644 index 00000000000..06c8fbc9ed4 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3238.a9505f7f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3238],{73238:(e,t,C)=>{C.r(t),C.d(t,{ReactComponent:()=>u,default:()=>E});var r,a,n,o,i,l,s,d,c,H,p,V,k,M=C(59284);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var C=arguments[t];for(var r in C)({}).hasOwnProperty.call(C,r)&&(e[r]=C[r])}return e},h.apply(null,arguments)}function Z({title:e,titleId:t,...C},Z){return M.createElement("svg",h({width:260,height:260,viewBox:"0 0 520 520",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:Z,"aria-labelledby":t},C),e?M.createElement("title",{id:t},e):null,r||(r=M.createElement("path",{opacity:.1,d:"M228.637 445C217.178 445.049 206.065 441.074 197.233 433.768L28.4227 288.499C24.7711 285.319 22.4943 280.846 22.0715 276.02C21.6487 271.195 23.1128 266.393 26.1557 262.626L65.3512 214.612C66.9235 212.684 68.8667 211.091 71.0657 209.927C73.2646 208.764 75.6745 208.055 78.1525 207.841C80.6305 207.627 83.1263 207.913 85.4917 208.682C87.8572 209.452 90.0443 210.688 91.9234 212.319L223.682 326.793L435.516 94.088C438.811 90.4596 443.405 88.2807 448.298 88.0253C453.191 87.7699 457.987 89.4587 461.642 92.7243L507.824 134.205C509.647 135.841 511.129 137.821 512.184 140.032C513.24 142.243 513.849 144.64 513.975 147.087C514.102 149.534 513.744 151.982 512.922 154.29C512.101 156.598 510.831 158.721 509.187 160.536L265.553 428.549C260.881 433.709 255.185 437.838 248.829 440.671C242.472 443.503 235.595 444.978 228.637 445Z",fill:"#509CF5"})),a||(a=M.createElement("path",{d:"M412.933 102.332H294.933C289.433 102.332 284.933 106.832 284.933 112.332V315.432C284.933 320.932 289.433 325.432 294.933 325.432H446.433C451.933 325.432 456.433 320.932 456.433 315.432V133.732L429.933 107.332",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.01 10.02"})),n||(n=M.createElement("path",{d:"M425.033 102.332V104.332",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=M.createElement("path",{d:"M425.033 115.031V126.331C425.033 130.431 428.333 133.731 432.433 133.731H449.033",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.27 10.68"})),i||(i=M.createElement("path",{d:"M454.333 133.73H456.333",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=M.createElement("path",{d:"M77 397.052L89.1 409L110 388",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round"})),s||(s=M.createElement("path",{d:"M125 398C125 416.775 109.775 432 91 432C72.2252 432 57 416.775 57 398C57 379.225 72.2252 364 91 364C109.775 364 125 379.225 125 398Z",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.84 12.11"})),d||(d=M.createElement("path",{d:"M147.5 119C147.5 117.895 146.605 117 145.5 117C144.395 117 143.5 117.895 143.5 119H147.5ZM143.5 129.8C143.5 130.905 144.395 131.8 145.5 131.8C146.605 131.8 147.5 130.905 147.5 129.8H143.5ZM147.5 152.5C147.5 151.395 146.605 150.5 145.5 150.5C144.395 150.5 143.5 151.395 143.5 152.5H147.5ZM143.5 164.2C143.5 165.305 144.395 166.2 145.5 166.2C146.605 166.2 147.5 165.305 147.5 164.2H143.5ZM168.1 143.602C169.205 143.602 170.1 142.706 170.1 141.602C170.1 140.497 169.205 139.602 168.1 139.602V143.602ZM157.2 139.602C156.096 139.602 155.2 140.497 155.2 141.602C155.2 142.706 156.096 143.602 157.2 143.602V139.602ZM133.7 143.602C134.805 143.602 135.7 142.706 135.7 141.602C135.7 140.497 134.805 139.602 133.7 139.602V143.602ZM122.9 139.602C121.795 139.602 120.9 140.497 120.9 141.602C120.9 142.706 121.795 143.602 122.9 143.602V139.602ZM143.5 119V129.8H147.5V119H143.5ZM143.5 152.5V164.2H147.5V152.5H143.5ZM168.1 139.602H157.2V143.602H168.1V139.602ZM133.7 139.602H122.9V143.602H133.7V139.602Z",fill:"#2EE5C0",fillOpacity:.8})),c||(c=M.createElement("path",{d:"M406.3 397.5C406.3 396.395 405.405 395.5 404.3 395.5C403.195 395.5 402.3 396.395 402.3 397.5H406.3ZM402.3 403.1C402.3 404.205 403.195 405.1 404.3 405.1C405.405 405.1 406.3 404.205 406.3 403.1H402.3ZM406.3 414.898C406.3 413.794 405.405 412.898 404.3 412.898C403.195 412.898 402.3 413.794 402.3 414.898H406.3ZM402.3 420.998C402.3 422.103 403.195 422.998 404.3 422.998C405.405 422.998 406.3 422.103 406.3 420.998H402.3ZM416.1 411.2C417.205 411.2 418.1 410.305 418.1 409.2C418.1 408.095 417.205 407.2 416.1 407.2V411.2ZM410.4 407.2C409.295 407.2 408.4 408.095 408.4 409.2C408.4 410.305 409.295 411.2 410.4 411.2V407.2ZM398.2 411.2C399.305 411.2 400.2 410.305 400.2 409.2C400.2 408.095 399.305 407.2 398.2 407.2V411.2ZM392.5 407.2C391.395 407.2 390.5 408.095 390.5 409.2C390.5 410.305 391.395 411.2 392.5 411.2V407.2ZM402.3 397.5V403.1H406.3V397.5H402.3ZM402.3 414.898V420.998H406.3V414.898H402.3ZM416.1 407.2H410.4V411.2H416.1V407.2ZM398.2 407.2H392.5V411.2H398.2V407.2Z",fill:"#2EE5C0",fillOpacity:.8})),H||(H=M.createElement("path",{d:"M186 385.667V394.833C186 397.264 185.012 399.596 183.254 401.315C181.496 403.034 179.111 404 176.625 404H121C115.477 404 111 399.523 111 394V249C111 243.477 115.477 239 121 239H176.625C179.111 239 181.496 239.966 183.254 241.685C185.012 243.404 186 245.736 186 248.167V385.667Z",fill:"#0067C1"})),p||(p=M.createElement("path",{d:"M177.143 375.273V384.637C177.143 387.12 176.153 389.501 174.392 391.257C172.63 393.013 170.241 394 167.75 394H112C106.477 394 102 389.522 102 384V235.465C102 229.942 106.477 225.465 112 225.465H167.75C170.241 225.465 172.63 226.451 174.392 228.207C176.153 229.963 177.143 232.345 177.143 234.828V375.273Z",fill:"#007CE9"})),V||(V=M.createElement("path",{d:"M292.385 235.185C291.545 236.543 292.529 238.321 294.126 238.321H375.327C379.067 238.242 382.784 238.917 386.255 240.305C389.726 241.693 392.879 243.765 395.524 246.398C398.169 249.031 400.252 252.169 401.646 255.623C403.041 259.078 403.718 262.778 403.639 266.5C403.639 294.679 394.201 398 356.452 398H242.081C230.712 398 219.806 393.497 211.748 385.477L206.04 379.797C205.665 379.424 205.158 379.214 204.629 379.214H191.299H179.143C178.038 379.214 177.143 378.319 177.143 377.214V239.495C177.143 238.847 177.668 238.321 178.317 238.321C195.697 238.321 212.371 231.438 224.69 219.177L233.949 209.961C240.092 203.848 245.391 196.942 249.705 189.426L267.012 159.283C275.636 144.262 293.887 133.185 306.212 145.354C312.929 151.987 316.741 160.994 316.815 170.411C316.815 171.538 316.721 172.665 316.626 173.886C314.302 197.951 298.104 225.943 292.385 235.185Z",fill:"#FFCC00"})),k||(k=M.createElement("path",{d:"M356.457 369.801H237.651C229.12 369.801 220.937 366.421 214.893 360.401C208.849 354.381 200.666 351.001 192.135 351.001H177.143V379.2H192.135C200.666 379.2 208.849 382.58 214.893 388.6C220.937 394.62 229.12 398 237.651 398H356.457C394.207 398 403.645 294.601 403.645 266.402C403.645 263.723 403.328 261.054 402.701 258.449C399.568 298.831 387.743 369.801 356.457 369.801Z",fill:"#DEB700"})))}const u=M.forwardRef(Z),E=C.p+"static/media/thumbsUp.d4a03fbaa64ce85a0045bf8ba77f8e2b.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3338.83fe4e63.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/3338.83fe4e63.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/3338.83fe4e63.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/3338.83fe4e63.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/3415.b30ca44e.chunk.js b/ydb/core/viewer/monitoring/static/js/3415.b30ca44e.chunk.js deleted file mode 100644 index 5069e90262a..00000000000 --- a/ydb/core/viewer/monitoring/static/js/3415.b30ca44e.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3415],{90053:(e,s,t)=>{t.d(s,{E:()=>h});var r=t(8873),a=t(84476),l=t(24555),n=t(21334),o=t(77506),i=t(90182),c=t(48372);const d=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,c.g4)("ydb-diagnostics-autorefresh-control",{en:d});var v=t(60712);const m=(0,o.cn)("auto-refresh-control");function h({className:e}){const s=(0,i.YQ)(),[t,o]=(0,i.Nt)();return(0,v.jsxs)("div",{className:m(null,e),children:[(0,v.jsx)(a.$,{view:"flat-secondary",onClick:()=>{s(n.F.util.invalidateTags(["All"]))},extraProps:{"aria-label":u("Refresh")},children:(0,v.jsx)(a.$.Icon,{children:(0,v.jsx)(r.A,{})})}),(0,v.jsxs)(l.l,{value:[String(t)],onUpdate:e=>{o(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,v.jsx)(l.l.Option,{value:"0",children:u("None")}),(0,v.jsx)(l.l.Option,{value:"15000",children:u("15 sec")}),(0,v.jsx)(l.l.Option,{value:"60000",children:u("1 min")}),(0,v.jsx)(l.l.Option,{value:"120000",children:u("2 min")}),(0,v.jsx)(l.l.Option,{value:"300000",children:u("5 min")})]})]})}},52248:(e,s,t)=>{t.d(s,{a:()=>r.a});var r=t(47334)},15132:(e,s,t)=>{t.d(s,{O:()=>v});var r=t(38501),a=t(77506),l=t(86200),n=t(35736),o=t(41650),i=t(60712);const c=(0,a.cn)("progress-viewer"),d=e=>(0,l.ZV)((0,l.CR)(Number(e),2)),u=(e,s)=>[d(e),d(s)];function v({value:e,capacity:s,formatValues:t=u,percents:a,className:l,size:d="xs",colorizeProgress:v,inverseColorize:m,warningThreshold:h=60,dangerThreshold:N=80,hideCapacity:g}){const p=(0,r.D)();let S=Math.round(parseFloat(String(e))/parseFloat(String(s))*100)||0;S=S>100?100:S;let f=e,b=s,x="/";a?(f=S+"%",b="",x=""):t&&([f,b]=t(Number(e),Number(s)));const j=(0,n.w)({fillWidth:S,warningThreshold:h,dangerThreshold:N,colorizeProgress:v,inverseColorize:m});v&&!(0,o.kf)(s)&&(S=100);const E={width:S+"%"};return(0,o.kf)(e)?(0,i.jsxs)("div",{className:c({size:d,theme:p,status:j},l),children:[(0,i.jsx)("div",{className:c("line"),style:E}),(0,i.jsx)("span",{className:c("text"),children:(0,o.kf)(s)&&!g?`${f} ${x} ${b}`:f})]}):(0,i.jsx)("div",{className:`${c({size:d})} ${l} error`,children:"no data"})}},17594:(e,s,t)=>{t.d(s,{l:()=>c});var r=t(69024),a=t(4557),l=t(77506),n=t(16819),o=t(60712);const i=(0,l.cn)("ydb-resizeable-data-table");function c({columnsWidthLSKey:e,columns:s,settings:t,wrapperClassName:l,...c}){const[d,u]=(0,n.a)(e),v=(0,r.j)(s,d),m={...t,defaultResizeable:!0};return(0,o.jsx)("div",{className:i(null,l),children:(0,o.jsx)(a.Ay,{theme:"yandex-cloud",columns:v,onResize:u,settings:m,...c})})}},41775:(e,s,t)=>{t.d(s,{v:()=>i});var r=t(59284),a=t(28664),l=t(77506),n=t(60712);const o=(0,l.cn)("ydb-search"),i=({onChange:e,value:s="",width:t,className:l,debounce:i=200,placeholder:c})=>{const[d,u]=r.useState(s),v=r.useRef();r.useEffect((()=>{u((e=>e!==s?s:e))}),[s]);return(0,n.jsx)(a.k,{hasClear:!0,autoFocus:!0,style:{width:t},className:o(null,l),placeholder:c,value:d,onUpdate:s=>{u(s),window.clearTimeout(v.current),v.current=window.setTimeout((()=>{null===e||void 0===e||e(s)}),i)}})}},95963:(e,s,t)=>{t.d(s,{v:()=>r.v});var r=t(41775)},48288:(e,s,t)=>{t.r(s),t.d(s,{Clusters:()=>se});var r=t(59284),a=t(4557),l=t(24555),n=t(29289),o=t(61750),i=t(90053),c=t(44508),d=t(52248),u=t(17594),v=t(95963),m=t(39567),h=t(23536),N=t.n(h);const g=e=>e.clusters.clusterName,p=e=>e.clusters.status,S=e=>e.clusters.service,f=e=>e.clusters.version,b=(e,s)=>0===s.length||e.status&&s.includes(e.status),x=(e,s)=>0===s.length||e.service&&s.includes(e.service),j=(e,s)=>0===s.length||s.some((s=>{var t,r;return null===(t=e.cluster)||void 0===t||null===(r=t.Versions)||void 0===r?void 0:r.some((e=>e.startsWith(s)))})),E=(e,s="")=>{var t;if(!s)return!0;const r=s.toLowerCase(),a=r.split(" "),l=(null===(t=e.title)||void 0===t?void 0:t.toLowerCase().match(/[^\d\s]+|\d+|[^-\s]+|[^_\s]+/g))||[],n=a.every((s=>{const t=N()(s),r=new RegExp(`^${t}|[\\s\\-_]${t}`,"i");return e.title&&r.test(e.title)||l.some((e=>e.startsWith(s)))})),o=e.preparedVersions.some((e=>e.version.includes(r))),i=Boolean(e.hosts&&e.hosts[r]);return n||o||i};var T=t(76086),O=t(90182),C=t(43951),w=t(38596),A=t(15132),_=t(86200),y=t(48372);const R=JSON.parse('{"controls_status-select-label":"Status:","controls_service-select-label":"Service:","controls_version-select-label":"Version:","controls_search-placeholder":"Cluster name, version, host","controls_select-placeholder":"All","statistics_clusters":"Clusters","statistics_hosts":"Hosts","statistics_tenants":"Tenants","statistics_nodes":"Nodes","statistics_load":"Load","statistics_storage":"Storage","tooltip_no-cluster-data":"No cluster data","page_title":"Clusters"}'),I=JSON.parse('{"controls_status-select-label":"\u0421\u0442\u0430\u0442\u0443\u0441:","controls_service-select-label":"\u0421\u0435\u0440\u0432\u0438\u0441:","controls_version-select-label":"\u0412\u0435\u0440\u0441\u0438\u044f:","controls_search-placeholder":"\u0418\u043c\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u0432\u0435\u0440\u0441\u0438\u044f \u0438\u043b\u0438 \u0445\u043e\u0441\u0442","controls_select-placeholder":"\u0412\u0441\u0435","statistics_clusters":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b","statistics_hosts":"\u0425\u043e\u0441\u0442\u044b","statistics_tenants":"\u0411\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445","statistics_nodes":"\u0423\u0437\u043b\u044b","statistics_load":"\u041d\u0430\u0433\u0440\u0443\u0437\u043a\u0430","statistics_storage":"\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435","tooltip_no-cluster-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430","page_title":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),D=(0,y.g4)("ydb-clusters-page",{ru:I,en:R});var z=t(77506);const L=(0,z.cn)("clusters");var k=t(60712);const V=({count:e,stats:s})=>{const{NodesTotal:t,NodesAlive:r,Hosts:a,Tenants:l,LoadAverage:n,NumberOfCpus:o,StorageUsed:i,StorageTotal:c}=s;return(0,k.jsxs)("div",{className:L("aggregation"),children:[(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_clusters")}),e]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_hosts")}),a]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_tenants")}),l]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_nodes")}),(0,k.jsx)(A.O,{size:"ns",value:r,capacity:t,colorizeProgress:!0,inverseColorize:!0})]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_load")}),(0,k.jsx)(A.O,{size:"ns",value:n,capacity:o,colorizeProgress:!0})]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_storage")}),(0,k.jsx)(A.O,{size:"ns",value:i,capacity:c,formatValues:_.j9,colorizeProgress:!0})]})]})};var U=t(6170),G=t(67884),W=t(18143),P=t(96873),$=t(34271);const M=(0,z.cn)("kv-user");function B({login:e,className:s}){const t=(0,$.x)("StaffCard");return(0,k.jsx)("div",{className:M(null,s),children:(0,k.jsx)(t,{login:e,children:(0,k.jsx)("div",{className:M("name"),children:e})})})}var F=t(31684),H=t(69446),q=t(87842);const K="selectedColumns",J={TITLE:"title",VERSIONS:"versions",DC:"dc",SERVICE:"service",STATUS:"status",NODES:"nodes",LOAD:"load",STORAGE:"storage",HOSTS:"hosts",TENANTS:"tenants",OWNER:"owner",DESCRIPTION:"description",BALANCER:"balancer"},Q=[J.TITLE,J.VERSIONS,J.SERVICE,J.STATUS,J.NODES,J.LOAD,J.STORAGE,J.HOSTS,J.TENANTS,J.OWNER,J.BALANCER],X={[J.TITLE]:"Cluster",[J.VERSIONS]:"Versions",[J.DC]:"DC",[J.SERVICE]:"Service",[J.STATUS]:"Status",[J.NODES]:"Nodes",[J.LOAD]:"Load",[J.STORAGE]:"Storage",[J.HOSTS]:"Hosts",[J.TENANTS]:"Tenants",[J.OWNER]:"Owner",[J.DESCRIPTION]:"Description",[J.BALANCER]:"Balancer"},Y="clustersTableColumnsWidth",Z=(0,k.jsx)("span",{className:L("empty-cell"),children:"\u2014"}),ee=[{name:J.TITLE,header:X[J.TITLE],width:230,render:({row:e})=>{var s,t;const{balancer:r,name:a,use_embedded_ui:l}=e,n=r&&(0,H.PG)(r),o=l&&n?(0,F.t1)(n):(0,q.a)(void 0,{backend:n,clusterName:a}),i=null===(s=e.cluster)||void 0===s?void 0:s.Overall;return(0,k.jsxs)("div",{className:L("cluster"),children:[i?(0,k.jsx)(G.N,{href:o,children:(0,k.jsx)("div",{className:L("cluster-status",{type:i&&i.toLowerCase()})})}):(0,k.jsx)("div",{className:L("cluster-status"),children:(0,k.jsx)(U.B,{content:(0,k.jsx)("span",{className:L("tooltip-content"),children:(null===(t=e.cluster)||void 0===t?void 0:t.error)||D("tooltip_no-cluster-data")}),offset:{left:0}})}),(0,k.jsx)("div",{className:L("cluster-name"),children:(0,k.jsx)(G.N,{href:o,children:e.title})})]})},defaultOrder:a.Ay.ASCENDING},{name:J.VERSIONS,header:X[J.VERSIONS],width:300,defaultOrder:a.Ay.DESCENDING,sortAccessor:({preparedVersions:e})=>e.map((e=>e.version.replace(/^[0-9]\+\./g,""))).sort(((e,s)=>e.localeCompare(s)))[0]||void 0,render:({row:e})=>{const{preparedVersions:s,versions:t=[],balancer:a,name:l}=e;if(!t.length||t.some((e=>!e.version)))return Z;const n=t.reduce(((e,s)=>e+s.count),0),o=t.map((e=>{var t;return{value:e.count/n*100,color:null===(t=s.find((s=>s.version===e.version)))||void 0===t?void 0:t.color}})),i=a&&(0,H.PG)(a);return s.length>0&&(0,k.jsx)(G.N,{className:L("cluster-versions"),href:(0,q.a)(q.Bi.versions,{backend:i,clusterName:l}),children:(0,k.jsxs)(r.Fragment,{children:[s.map(((e,s)=>(0,k.jsx)("div",{className:L("cluster-version"),style:{color:e.color},title:e.version,children:e.version},s))),(0,k.jsx)(W.k,{size:"s",value:100,stack:o})]})})}},{name:J.DC,header:X[J.DC],width:120,sortable:!1,render:({row:e})=>{const s=e.cluster&&e.cluster.DataCenters||[];return(0,k.jsx)("div",{className:L("cluster-dc"),children:s.join(", ")||Z})}},{name:J.SERVICE,header:X[J.SERVICE],width:100,sortable:!0},{name:J.STATUS,header:X[J.STATUS],width:150,sortable:!0},{name:J.NODES,header:X[J.NODES],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e={}})=>{const{NodesTotal:s=0}=e;return s},render:({row:e})=>{const{NodesAlive:s=0,NodesTotal:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t}):Z}},{name:J.LOAD,header:X[J.LOAD],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>null===e||void 0===e?void 0:e.NumberOfCpus,render:({row:e})=>{const{LoadAverage:s=0,NumberOfCpus:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t}):Z}},{name:J.STORAGE,header:X[J.STORAGE],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.StorageTotal),render:({row:e})=>{const{StorageUsed:s=0,StorageTotal:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t,formatValues:_.ki}):Z}},{name:J.HOSTS,header:X[J.HOSTS],width:80,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.Hosts)||0,render:({row:e})=>{var s;return Number(null===(s=e.cluster)||void 0===s?void 0:s.Hosts)||Z}},{name:J.TENANTS,header:X[J.TENANTS],width:80,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.Tenants)||0,render:({row:e})=>{var s;return Number(null===(s=e.cluster)||void 0===s?void 0:s.Tenants)||Z}},{name:J.OWNER,header:X[J.OWNER],sortable:!1,width:120,render:({row:e})=>{var s;const t=null===(s=e.owner)||void 0===s?void 0:s.split(", ");return null!==t&&void 0!==t&&t.length?t.map((e=>(0,k.jsx)(B,{login:e},e))):Z}},{name:J.DESCRIPTION,header:X[J.DESCRIPTION],sortable:!1,width:150,render:({row:e})=>e.description?(0,k.jsx)("div",{className:L("description"),children:e.description}):Z},{name:J.BALANCER,header:X[J.BALANCER],sortable:!1,width:290,render:({row:e})=>{if(!e.balancer)return Z;const s=(0,H.Zd)(e.balancer);return(0,k.jsxs)("div",{className:L("balancer-cell"),children:[(0,k.jsx)("div",{className:L("balancer-text"),children:s}),(0,k.jsx)(P.b,{size:"s",text:s,className:L("balancer-icon")})]})}}];function se(){const[e]=(0,O.Nt)(),s=m.ub.useGetClustersListQuery(void 0,{pollingInterval:e}),t=(0,O.YQ)(),h=(0,O.N4)(g),N=(0,O.N4)(p),A=(0,O.N4)(S),_=(0,O.N4)(f),{columnsToShow:y,columnsToSelect:R,setColumns:I}=(0,C.K)(ee,K,X,Q,[J.TITLE]),z=s.data,{servicesToSelect:U,versions:G}=r.useMemo((()=>{const e=new Set,s=new Set;return(null!==z&&void 0!==z?z:[]).forEach((t=>{var r,a;t.service&&e.add(t.service),null===(r=t.cluster)||void 0===r||null===(a=r.Versions)||void 0===a||a.forEach((e=>{s.add((0,w.U)(e))}))})),{servicesToSelect:Array.from(e).map((e=>({value:e,content:e}))),versions:Array.from(s).map((e=>({value:e,content:e})))}}),[z]),W=r.useMemo((()=>function(e,s){return e.filter((e=>b(e,s.status)&&x(e,s.service)&&j(e,s.version)&&E(e,s.clusterName)))}(null!==z&&void 0!==z?z:[],{clusterName:h,status:N,service:A,version:_})),[h,z,A,N,_]),P=r.useMemo((()=>function(e){let s=0,t=0,r=0,a=0,l=0,n=0,o=0;const i=new Set;return e.filter((({cluster:e})=>!(null!==e&&void 0!==e&&e.error))).forEach((({cluster:e,hosts:c={}})=>{s+=(null===e||void 0===e?void 0:e.NodesTotal)||0,t+=(null===e||void 0===e?void 0:e.NodesAlive)||0,Object.keys(c).forEach((e=>i.add(e))),o+=Number(null===e||void 0===e?void 0:e.Tenants)||0,r+=Number(null===e||void 0===e?void 0:e.LoadAverage)||0,a+=(null===e||void 0===e?void 0:e.NumberOfCpus)||0,l+=null!==e&&void 0!==e&&e.StorageUsed?Math.floor(parseInt(e.StorageUsed,10)):0,n+=null!==e&&void 0!==e&&e.StorageTotal?Math.floor(parseInt(e.StorageTotal,10)):0})),{NodesTotal:s,NodesAlive:t,Hosts:i.size,Tenants:o,LoadAverage:r,NumberOfCpus:a,StorageUsed:l,StorageTotal:n}}(W)),[W]),$=r.useMemo((()=>Array.from(new Set((null!==z&&void 0!==z?z:[]).map((e=>e.status)).filter(Boolean))).sort().map((e=>({value:e,content:e})))),[z]);return(0,k.jsxs)("div",{className:L(),children:[(0,k.jsx)(o.mg,{children:(0,k.jsx)("title",{children:D("page_title")})}),(0,k.jsx)(V,{stats:P,count:W.length}),(0,k.jsxs)("div",{className:L("controls"),children:[(0,k.jsx)("div",{className:L("control",{wide:!0}),children:(0,k.jsx)(v.v,{placeholder:D("controls_search-placeholder"),onChange:e=>{t((0,m.Fe)({clusterName:e}))},value:h})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_status-select-label"),value:N,options:$,onUpdate:e=>{t((0,m.Fe)({status:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_service-select-label"),value:A,options:U,onUpdate:e=>{t((0,m.Fe)({service:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_version-select-label"),value:_,options:G,onUpdate:e=>{t((0,m.Fe)({version:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(n.O,{popupWidth:242,items:R,showStatus:!0,onUpdate:I,sortable:!1},"TableColumnSetup")}),(0,k.jsx)(i.E,{className:L("autorefresh")})]}),s.isError?(0,k.jsx)(c.o,{error:s.error,className:L("error")}):null,s.isLoading?(0,k.jsx)(d.a,{size:"l"}):null,s.fulfilledTimeStamp?(0,k.jsx)("div",{className:L("table-wrapper"),children:(0,k.jsx)("div",{className:L("table-content"),children:(0,k.jsx)(u.l,{columnsWidthLSKey:Y,wrapperClassName:L("table"),data:W,columns:y,settings:{...T.N3,dynamicRender:!1},initialSortOrder:{columnId:J.TITLE,order:a.Ay.ASCENDING}})})}):null]})}},43951:(e,s,t)=>{t.d(s,{K:()=>l});var r=t(59284),a=t(59001);const l=(e,s,t,l,n)=>{const[o,i]=r.useState((()=>a.f.readUserSettingsValue(s,l)));return{columnsToShow:r.useMemo((()=>e.filter((e=>{const s=e.name,t=o.includes(s),r=null===n||void 0===n?void 0:n.includes(s);return t||r}))),[e,n,o]),columnsToSelect:r.useMemo((()=>e.map((e=>e.name)).map((e=>{const s=null===n||void 0===n?void 0:n.includes(e),r=o.includes(e);return{id:e,title:t[e],selected:s||r,required:s,sticky:s?"start":void 0}}))),[e,t,n,o]),setColumns:r.useCallback((e=>{const t=e.filter((e=>e.selected)).map((e=>e.id));a.f.setUserSettingsValue(s,t),i(t)}),[s])}}},16819:(e,s,t)=>{t.d(s,{a:()=>n});var r=t(59284),a=t(69024),l=t(59001);const n=e=>{const s=r.useCallback((()=>e?l.f.readUserSettingsValue(e,{}):{}),[e]),t=r.useCallback((s=>{e&&l.f.setUserSettingsValue(e,s)}),[e]);return(0,a.a)({saveSizes:t,getSizes:s})}},35736:(e,s,t)=>{function r({inverseColorize:e,warningThreshold:s=60,dangerThreshold:t=80,colorizeProgress:r,fillWidth:a}){let l=e?"danger":"good";return r&&(a>s&&a<=t?l="warning":a>t&&(l=e?"good":"danger")),l}t.d(s,{w:()=>r})},6170:(e,s,t)=>{t.d(s,{B:()=>c});var r=t(59284),a=t(73633),l=t(84375),n=t(99991);const o=(0,t(98192).o)("help-popover"),i=16;function c(e){var s;return r.createElement(l.A,Object.assign({},e,{className:o(null,e.className)}),r.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:o("button",null===(s=e.buttonProps)||void 0===s?void 0:s.className)}),r.createElement(n.I,{data:a.A,size:i})))}},98192:(e,s,t)=>{t.d(s,{o:()=>a});var r=t(82435);(0,r.withNaming)({e:"__",m:"_",v:"_"});const a=(0,r.withNaming)({n:"gc-",e:"__",m:"_",v:"_"})},18143:(e,s,t)=>{t.d(s,{k:()=>u});var r=t(59284);const a=(0,t(69220).om)("progress");function l(e){const{text:s,offset:t=0}=e;return s?r.createElement("div",{className:a("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-t}%))`}},s):null}function n({item:e}){const{value:s,color:t,className:l,theme:n,title:o,content:i,loading:c}=e,d={loading:c};return"undefined"===typeof t&&(d.theme=n||"default"),Number.isFinite(s)?r.createElement("div",{className:a("item",d,l),style:{width:`${s}%`,backgroundColor:t},title:o},i):null}function o(e){return e<100?e-100:0}function i(e){const{theme:s,colorStops:t,colorStopsValue:r,value:a}=e;if(t){const e=t.find(((e,s)=>{const l="number"===typeof r?r:a,n=s>1?t[s-1].stop:0,o=s<t.length-1?e.stop:100;return l>=n&&l<=o}));return e?e.theme:s}return s}function c(e){const{stack:s,stackClassName:t,value:i,text:c}=e,d=o(i||function(e){return e.reduce(((e,{value:s})=>e+s),0)}(s));return r.createElement("div",{className:a("stack",t),style:{transform:`translateX(calc(var(--g-flow-direction) * ${d}%))`}},r.createElement("div",{className:a("item"),style:{width:-d+"%"}}),s.map(((e,s)=>r.createElement(n,{key:s,item:e}))),r.createElement(l,{offset:d,text:c}))}function d(e){const{value:s,loading:t,text:n}=e,c=o(s);return Number.isFinite(s)?r.createElement("div",{className:a("item",{theme:i(e),loading:t}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${c}%))`}},r.createElement(l,{offset:c,text:n})):null}const u=r.forwardRef((function(e,s){const{text:t="",theme:l="default",size:n="m",loading:o=!1,className:i,qa:u}=e,v=Object.assign(Object.assign({},e),{text:t,theme:l,size:n,loading:o});return r.createElement("div",{ref:s,className:a({size:n},i),"data-qa":u},r.createElement("div",{className:a("text")},t),function(e){return void 0!==e.stack}(v)?r.createElement(c,Object.assign({},v)):r.createElement(d,Object.assign({},v)))}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3478.480dafa6.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/3478.480dafa6.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/3478.480dafa6.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/3478.480dafa6.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/3534.3f09429a.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/3534.3f09429a.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/3534.3f09429a.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/3534.3f09429a.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/3638.ee3efb24.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/3638.ee3efb24.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/3638.ee3efb24.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/3638.ee3efb24.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/3648.3a72999a.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/3648.3a72999a.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/3648.3a72999a.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/3648.3a72999a.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/3702.778880f9.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/3702.778880f9.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/3702.778880f9.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/3702.778880f9.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/371.adb771f2.chunk.js b/ydb/core/viewer/monitoring/static/js/371.adb771f2.chunk.js new file mode 100644 index 00000000000..9b1a4cc8af7 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/371.adb771f2.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[371],{56735:(e,s,a)=>{a.d(s,{Q:()=>N});var t=a(87184),l=a(92459),i=a(78668),n=a(7435),d=a(46549),o=a(77506),r=a(56839),c=a(31684),u=a(90182),v=a(18863),p=a(25196),h=a(15132),m=a(33775),g=a(48372);const k=JSON.parse('{"type":"Type","path":"Path","guid":"GUID","serial-number":"Serial Number","shared-with-os":"SharedWithOs","drive-status":"Drive Status","state":"State","device":"Device","realtime":"Realtime","space":"Space","slots":"Slots","log-size":"Log Size","system-size":"System Size","links":"Links","developer-ui":"Developer UI","pdisk-page":"PDisk page","yes":"Yes"}'),f=(0,g.g4)("ydb-pDisk-info",{en:k});var b=a(60712);const x=(0,o.cn)("ydb-pdisk-info");function N({pDisk:e,nodeId:s,withPDiskPageLink:a,className:o}){const g=(0,u.N4)(i._5),[k,N,j,I]=function({pDisk:e,nodeId:s,withPDiskPageLink:a,isUserAllowedToMakeChanges:t}){const{PDiskId:i,Path:o,Guid:u,Category:v,Type:g,Device:k,Realtime:N,State:j,SerialNumber:I,TotalSize:S,AllocatedSize:D,StatusV2:w,NumActiveSlots:y,ExpectedSlotCount:z,LogUsedSize:T,LogTotalSize:P,SystemSize:E,SharedWithOs:V}=e||{},R=[];(0,n.f8)(v)&&R.push({label:f("type"),value:g}),(0,n.f8)(o)&&R.push({label:f("path"),value:o}),(0,n.f8)(u)&&R.push({label:f("guid"),value:u}),I&&R.push({label:f("serial-number"),value:I}),(0,n.f8)(V)&&R.push({label:f("shared-with-os"),value:f("yes")});const A=[];(0,n.f8)(w)&&A.push({label:f("drive-status"),value:w}),(0,n.f8)(j)&&A.push({label:f("state"),value:j}),(0,n.f8)(k)&&A.push({label:f("device"),value:(0,b.jsx)(m.k,{status:k})}),(0,n.f8)(N)&&A.push({label:f("realtime"),value:(0,b.jsx)(m.k,{status:N})});const O=[];O.push({label:f("space"),value:(0,b.jsx)(h.O,{value:D,capacity:S,formatValues:r.vX,colorizeProgress:!0})}),(0,n.f8)(y)&&(0,n.f8)(z)&&O.push({label:f("slots"),value:(0,b.jsx)(h.O,{value:y,capacity:z})}),(0,n.f8)(T)&&(0,n.f8)(P)&&O.push({label:f("log-size"),value:(0,b.jsx)(h.O,{value:T,capacity:P,formatValues:r.vX})}),(0,n.f8)(E)&&O.push({label:f("system-size"),value:(0,d.z3)({value:E})});const C=[];if((a||t)&&(0,n.f8)(i)&&(0,n.f8)(s)){const e=(0,l.Ck)(i,s),n=(0,c.ar)({nodeId:s,pDiskId:i});C.push({label:f("links"),value:(0,b.jsxs)("span",{className:x("links"),children:[a&&(0,b.jsx)(p.K,{title:f("pdisk-page"),url:e,external:!1}),t&&(0,b.jsx)(p.K,{title:f("developer-ui"),url:n})]})})}return[R,A,O,C]}({pDisk:e,nodeId:s,withPDiskPageLink:a,isUserAllowedToMakeChanges:g});return(0,b.jsxs)(t.s,{className:o,gap:2,direction:"row",wrap:!0,children:[(0,b.jsxs)(t.s,{direction:"column",gap:2,width:500,children:[(0,b.jsx)(v.z,{info:k,renderEmptyState:()=>null}),(0,b.jsx)(v.z,{info:j,renderEmptyState:()=>null})]}),(0,b.jsxs)(t.s,{direction:"column",gap:2,width:500,children:[(0,b.jsx)(v.z,{info:N,renderEmptyState:()=>null}),(0,b.jsx)(v.z,{info:I,renderEmptyState:()=>null})]})]})}},59984:(e,s,a)=>{a.d(s,{Y:()=>o});a(59284);var t=a(87184),l=a(77506),i=a(60712);const n=(0,l.cn)("tag"),d=({text:e,type:s})=>(0,i.jsx)("div",{className:n({type:s}),children:e}),o=({tags:e,tagsType:s,className:a="",gap:l=1})=>(0,i.jsx)(t.s,{className:a,gap:l,wrap:"wrap",alignItems:"center",children:e&&e.map(((e,a)=>(0,i.jsx)(d,{text:e,type:s},a)))})},67440:(e,s,a)=>{a.d(s,{E:()=>N});a(59284);var t=a(92459),l=a(78668),i=a(7435),n=a(77506),d=a(56839),o=a(31684),r=a(7187),c=a(90182),u=a(41650),v=a(60073),p=a(25196),h=a(15132),m=a(33775),g=a(48372);const k=JSON.parse('{"slot-id":"VDisk Slot Id","pool-name":"Storage Pool Name","kind":"Kind","guid":"GUID","incarnation-guid":"Incarnation GUID","instance-guid":"Instance GUID","replication-status":"Replicated","state-status":"VDisk State","space-status":"Disk Space","fresh-rank-satisfaction":"Fresh Rank Satisfaction","level-rank-satisfaction":"Level Rank Satisfaction","front-queues":"Front Queues","has-unreadable-blobs":"Has Unreadable Blobs","size":"Size","read-throughput":"Read Throughput","write-throughput":"Write Throughput","links":"Links","vdisk-page":"VDisk Page","developer-ui":"Developer UI","yes":"Yes","no":"No","vdiks-title":"VDisk"}'),f=(0,g.g4)("ydb-vDisk-info",{en:k});var b=a(60712);const x=(0,n.cn)("ydb-vdisk-info");function N({data:e,withVDiskPageLink:s,withTitle:a,...n}){var r,g;const k=(0,c.N4)(l._5),{AllocatedSize:N,DiskSpace:I,FrontQueues:S,Guid:D,Replicated:w,VDiskState:y,VDiskSlotId:z,Kind:T,SatisfactionRank:P,AvailableSize:E,HasUnreadableBlobs:V,IncarnationGuid:R,InstanceGuid:A,StoragePoolName:O,ReadThroughput:C,WriteThroughput:L,PDiskId:U,NodeId:F}=e||{},M=[];var q,G;((0,i.f8)(z)&&M.push({label:f("slot-id"),value:z}),(0,i.f8)(O)&&M.push({label:f("pool-name"),value:O}),(0,i.f8)(y)&&M.push({label:f("state-status"),value:y}),Number(N)>=0&&Number(E)>=0&&M.push({label:f("size"),value:(0,b.jsx)(h.O,{value:N,capacity:Number(N)+Number(E),formatValues:d.vX,colorizeProgress:!0})}),(0,i.f8)(T)&&M.push({label:f("kind"),value:T}),(0,i.f8)(D)&&M.push({label:f("guid"),value:D}),(0,i.f8)(R)&&M.push({label:f("incarnation-guid"),value:R}),(0,i.f8)(A)&&M.push({label:f("instance-guid"),value:A}),(0,i.f8)(w)&&M.push({label:f("replication-status"),value:f(w?"yes":"no")}),(0,i.f8)(I)&&M.push({label:f("space-status"),value:(0,b.jsx)(m.k,{status:I})}),(0,i.f8)(null===P||void 0===P||null===(r=P.FreshRank)||void 0===r?void 0:r.Flag))&&M.push({label:f("fresh-rank-satisfaction"),value:(0,b.jsx)(m.k,{status:null===P||void 0===P||null===(q=P.FreshRank)||void 0===q?void 0:q.Flag})});(0,i.f8)(null===P||void 0===P||null===(g=P.LevelRank)||void 0===g?void 0:g.Flag)&&M.push({label:f("level-rank-satisfaction"),value:(0,b.jsx)(m.k,{status:null===P||void 0===P||null===(G=P.LevelRank)||void 0===G?void 0:G.Flag})});(0,i.f8)(S)&&M.push({label:f("front-queues"),value:(0,b.jsx)(m.k,{status:S})}),(0,i.f8)(V)&&M.push({label:f("has-unreadable-blobs"),value:f(V?"yes":"no")}),(0,i.f8)(C)&&M.push({label:f("read-throughput"),value:(0,u.O4)(C)}),(0,i.f8)(L)&&M.push({label:f("write-throughput"),value:(0,u.O4)(L)});if((0,i.f8)(U)&&(0,i.f8)(F)&&(0,i.f8)(z)){const e=[];if(s){const s=(0,t.yX)(z,U,F);e.push((0,b.jsx)(p.K,{title:f("vdisk-page"),url:s,external:!1},s))}if(k){const s=(0,o.Wg)({nodeId:F,pDiskId:U,vDiskSlotId:z});e.push((0,b.jsx)(p.K,{title:f("developer-ui"),url:s},s))}e.length&&M.push({label:f("links"),value:(0,b.jsx)("div",{className:x("links"),children:e})})}const _=e&&a?(0,b.jsx)(j,{data:e}):null;return(0,b.jsx)(v.z_,{info:M,title:_,...n})}function j({data:e}){return(0,b.jsxs)("div",{className:x("title"),children:[f("vdiks-title"),(0,b.jsx)(m.k,{status:(0,r.XY)(e.Severity)}),e.StringifiedId]})}},49020:(e,s,a)=>{a.r(s),a.d(s,{Node:()=>Ie});var t=a(59284),l=a(23871),i=a(61750),n=a(10755),d=a(52905),o=a(67087),r=a(90053),c=a(112),u=a(99991),v=a(78668),p=a(77506),h=a(31684),m=a(90182),g=a(10508),k=a(59984),f=a(60712);const b=(0,p.cn)("basic-node-viewer"),x=({node:e,additionalNodesProps:s,className:a})=>{const l=(0,m.N4)(v._5);let i;if(null!==s&&void 0!==s&&s.getNodeRef){const a=s.getNodeRef(e);i=a?(0,h.Un)(a):void 0}else if(e.NodeId){const s=(0,h.Kx)(e.NodeId);i=(0,h.Un)(s)}return(0,f.jsx)("div",{className:b(null,a),children:e?(0,f.jsxs)(t.Fragment,{children:[(0,f.jsx)("div",{className:b("title"),children:"Node"}),(0,f.jsx)(g.c,{status:e.SystemState,name:e.Host}),i&&l?(0,f.jsx)("a",{rel:"noopener noreferrer",className:b("link",{external:!0}),href:i,target:"_blank",children:(0,f.jsx)(u.I,{data:c.A})}):null,(0,f.jsxs)("div",{className:b("id"),children:[(0,f.jsx)("label",{className:b("label"),children:"NodeID"}),(0,f.jsx)("label",{children:e.NodeId})]}),e.DC&&(0,f.jsx)(k.Y,{tags:[e.DC]}),e.Roles&&(0,f.jsx)(k.Y,{tags:e.Roles,tagsType:"blue"})]}):(0,f.jsx)("div",{className:"error",children:"no data"})})};var N=a(44508),j=a(76086),I=a(18863);const S=(0,p.cn)("ydb-pool-usage"),D=e=>{let s="green";return e>60&&e<=80?s="yellow":e>80&&(s="red"),s},w=({data:e={}})=>{const{Threads:s,Name:a="Unknown",Usage:t=0}=e,l=t&&s,i=Math.floor(100*t),n=i>100?100:i;return(0,f.jsxs)("div",{className:S(),children:[(0,f.jsxs)("div",{className:S("info"),children:[(0,f.jsx)("div",{className:S("pool-name"),children:a}),l&&(0,f.jsxs)("div",{className:S("value"),children:[(0,f.jsxs)("div",{className:S("percents"),children:[i<1?"<1":i,"%"]}),(0,f.jsxs)("div",{className:S("threads"),children:["(\xd7",s,")"]})]})]}),(0,f.jsx)("div",{className:S("visual"),children:(0,f.jsx)("div",{className:S("usage-line",{type:D(n)}),style:{width:`${n}%`}})})]})};var y=a(15132),z=a(41826);const T=(0,p.cn)("full-node-viewer"),P=({node:e,className:s})=>{var a,t,l,i;const n=null===e||void 0===e||null===(a=e.Endpoints)||void 0===a?void 0:a.map((({Name:e,Address:s})=>({label:e,value:s}))),d=[];null!==e&&void 0!==e&&null!==(t=e.Tenants)&&void 0!==t&&t.length&&d.push({label:"Database",value:e.Tenants[0]}),d.push({label:"Version",value:null===e||void 0===e?void 0:e.Version},{label:"Uptime",value:(0,f.jsx)(z.p,{StartTime:null===e||void 0===e?void 0:e.StartTime,DisconnectTime:null===e||void 0===e?void 0:e.DisconnectTime})},{label:"DC",value:(null===e||void 0===e?void 0:e.DataCenterDescription)||(null===e||void 0===e?void 0:e.DC)},{label:"Rack",value:null===e||void 0===e?void 0:e.Rack});const o=null===e||void 0===e||null===(l=e.LoadAveragePercents)||void 0===l?void 0:l.map(((e,s)=>({label:j.GT[s],value:(0,f.jsx)(y.O,{value:e,percents:!0,colorizeProgress:!0,capacity:100})})));return(0,f.jsx)("div",{className:`${T()} ${s}`,children:e?(0,f.jsxs)("div",{className:T("common-info"),children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("div",{className:T("section-title"),children:"Pools"}),(0,f.jsx)("div",{className:T("section",{pools:!0}),children:null===e||void 0===e||null===(i=e.PoolStats)||void 0===i?void 0:i.map(((e,s)=>(0,f.jsx)(w,{data:e},s)))})]}),n&&n.length&&(0,f.jsx)(I.z,{title:"Endpoints",className:T("section"),info:n}),(0,f.jsx)(I.z,{title:"Common info",className:T("section"),info:d}),(0,f.jsx)(I.z,{title:"Load average",className:T("section",{average:!0}),info:o})]}):(0,f.jsx)("div",{className:"error",children:"no data"})})};var E=a(52248),V=a(92459),R=a(67028),A=a(40174),O=a(21334),C=a(78034);const L=e=>{var s;if(null===(s=e.SystemStateInfo)||void 0===s||!s.length)return{};const a=e.SystemStateInfo[0];return(0,C.q1)(a)},U=O.F.injectEndpoints({endpoints:e=>({getNodeInfo:e.query({queryFn:async({nodeId:e},{signal:s})=>{try{const a=await window.api.viewer.getNodeInfo(e,{signal:s});return{data:L(a)}}catch(a){return{error:a}}},providesTags:["All"]}),getNodeStructure:e.query({queryFn:async({nodeId:e},{signal:s})=>{try{return{data:await window.api.viewer.getStorageInfo({nodeId:e},{signal:s})}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"});var F=a(99936),M=a(76768),q=a(29819),G=a(905),_=a.n(G),Q=a(53850),K=a(56839),W=a(27295);const $=(0,Q.Mz)((e=>e),(e=>U.endpoints.getNodeStructure.select({nodeId:e}))),B=(0,Q.Mz)((e=>e),((e,s)=>$(s)),((e,s)=>s(e).data)),X=(0,Q.Mz)(((e,s)=>Number(s)),((e,s)=>B(e,s)),((e,s)=>{const a=null===s||void 0===s?void 0:s.StoragePools,t={};null===a||void 0===a||a.forEach((s=>{const a=s.Groups;null===a||void 0===a||a.forEach((a=>{var l;const i=null===(l=a.VDisks)||void 0===l?void 0:l.filter((s=>s.NodeId===e)).map(W.WT);null===i||void 0===i||i.forEach((a=>{var l;const i=(0,K.U9)(a.VDiskId),n=null===(l=a.PDisk)||void 0===l?void 0:l.PDiskId;t[String(n)]||(t[String(n)]={vDisks:{},...a.PDisk}),t[String(n)].vDisks[i]={...a,PDiskId:n,NodeId:e,StoragePoolName:s.Name}}))}))}));return Object.keys(t).reduce(((e,s)=>{const a=t[s].vDisks,l=Object.keys(a).reduce(((e,s,t)=>(e.push({...a[s],id:s,order:t}),e)),[]);return e[s]={...t[s],vDisks:l},e}),{})}));var Y=a(45720),H=a(4557),J=a(84476),Z=a(84375),ee=a(33705),se=a(56735),ae=a(33775),te=a(67440),le=a(54090),ie=a(67375),ne=a(7435),de=a(48372);const oe=JSON.parse('{"pdisk.developer-ui-button-title":"PDisk Developer UI page","vdisk.developer-ui-button-title":"VDisk Developer UI page"}'),re=JSON.parse('{"pdisk.developer-ui-button-title":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 PDisk \u0432 Developer UI","vdisk.developer-ui-button-title":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 VDisk \u0432 Developer UI"}'),ce=(0,de.g4)("ydb-node-page",{en:oe,ru:re}),ue=(0,p.cn)("kv-node-structure");function ve({label:e,value:s,className:a}){return(0,f.jsxs)("span",{className:ue("pdisk-title-item",a),children:[e&&(0,f.jsxs)("span",{className:ue("pdisk-title-item-label"),children:[e,":"]}),(0,f.jsx)("span",{className:ue("pdisk-title-item-value"),children:s})]})}const pe=(0,p.cn)("kv-node-structure");var he=function(e){return e.slotId="VDiskSlotId",e.VDiskState="VDiskState",e.Size="Size",e.Info="Info",e}(he||{});const me={VDiskSlotId:"Slot id",VDiskState:"Status",Size:"Size",Info:""};function ge({pDiskId:e,selectedVdiskId:s,nodeId:a,withDeveloperUILink:t}){return[{name:he.slotId,header:me[he.slotId],width:100,render:({row:l})=>{const i=l.VDiskSlotId;let n=null;return(0,ne.f8)(a)&&(0,ne.f8)(e)&&(0,ne.f8)(i)&&(n=(0,h.Wg)({nodeId:a,pDiskId:e,vDiskSlotId:i})),(0,f.jsxs)("div",{className:pe("vdisk-id",{selected:l.id===s}),children:[(0,f.jsx)("span",{children:i}),n&&t?(0,f.jsx)(J.$,{size:"s",className:pe("external-button",{hidden:!0}),href:n,target:"_blank",title:ce("vdisk.developer-ui-button-title"),children:(0,f.jsx)(u.I,{data:c.A})}):null]})},align:H.Ay.LEFT},{name:he.VDiskState,header:me[he.VDiskState],width:70,render:({row:e})=>(0,f.jsx)(ae.k,{status:e.VDiskState===ie.W.OK?le.m.Green:le.m.Red}),sortAccessor:e=>e.VDiskState===ie.W.OK?1:0,align:H.Ay.CENTER},{name:he.Size,header:me[he.Size],width:170,render:({row:e})=>(0,f.jsx)(y.O,{value:e.AllocatedSize,capacity:Number(e.AllocatedSize)+Number(e.AvailableSize),formatValues:K.vX,colorizeProgress:!0}),sortAccessor:e=>Number(e.AllocatedSize),align:H.Ay.CENTER},{name:he.Info,header:me[he.Info],width:70,render:({row:e})=>(0,f.jsx)(Z.A,{placement:["right"],content:(0,f.jsx)(te.E,{data:e,withTitle:!0,withVDiskPageLink:!0}),tooltipContentClassName:pe("vdisk-details"),children:(0,f.jsx)(J.$,{view:"flat-secondary",className:pe("vdisk-details-button",{selected:e.id===s}),children:(0,f.jsx)(u.I,{data:Y.A,size:18})})}),sortable:!1}]}function ke({id:e,data:s,selectedVdiskId:a,nodeId:l,unfolded:i}){const n=(0,m.N4)(v._5),[d,o]=t.useState(null!==i&&void 0!==i&&i),{TotalSize:r=0,AvailableSize:c=0,Device:u,PDiskId:p,Type:h,vDisks:g}=s,k=Number(r),b=Number(c);return(0,f.jsxs)("div",{className:pe("pdisk"),id:e,children:[(0,f.jsxs)("div",{className:pe("pdisk-header"),children:[(0,f.jsxs)("div",{className:pe("pdisk-title-wrapper"),children:[(0,f.jsx)(ae.k,{status:u}),(0,f.jsx)(ve,{label:"PDiskID",value:p,className:pe("pdisk-title-id")}),(0,f.jsx)(ve,{value:h,className:pe("pdisk-title-type")}),(0,f.jsx)(y.O,{value:k-b,capacity:k,formatValues:K.vX,colorizeProgress:!0,className:pe("pdisk-title-size")}),(0,f.jsx)(ve,{label:"VDisks",value:g.length})]}),(0,f.jsx)(J.$,{onClick:d?()=>{o(!1)}:()=>{o(!0)},view:"flat-secondary",children:(0,f.jsx)(ee.I,{direction:d?"top":"bottom"})})]}),d&&(_()(s)?(0,f.jsx)("div",{children:"No information about PDisk"}):(0,f.jsxs)("div",{children:[(0,f.jsx)(se.Q,{pDisk:s,nodeId:l,className:pe("pdisk-details"),withPDiskPageLink:!0}),(0,f.jsxs)("div",{className:pe("vdisks-container"),children:[(0,f.jsx)("div",{className:pe("vdisks-header"),children:"VDisks"}),(0,f.jsx)(H.Ay,{theme:"yandex-cloud",data:g,columns:ge({nodeId:l,pDiskId:p,selectedVdiskId:a,withDeveloperUILink:n}),settings:{...j.N3,dynamicRender:!1},rowClassName:e=>e.id===a?pe("selected-vdisk"):""})]})]}))]})}const fe=(0,p.cn)("kv-node-structure");function be({type:e,id:s}){return`${e}-${s}`}const xe=function({nodeId:e,className:s}){const a=(0,m.N4)((s=>X(s,e))),[l]=(0,m.Nt)(),{currentData:i,isFetching:n,error:d}=U.useGetNodeStructureQuery({nodeId:e},{pollingInterval:l}),r=n&&void 0===i,[{pdiskId:c,vdiskId:u}]=(0,o.useQueryParams)({pdiskId:o.StringParam,vdiskId:o.StringParam}),v=t.useRef(null),p=t.useRef(!1);return t.useEffect((()=>{if(!_()(a)&&!p.current&&v.current&&c){const s=document.getElementById(be({type:"pdisk",id:c}));let t=0;if(u){var e;const s=null===(e=a[c])||void 0===e?void 0:e.vDisks,l=null===s||void 0===s?void 0:s.find((e=>e.id===u)),i=l?document.querySelector(".data-table"):void 0,n=(null===l||void 0===l?void 0:l.order)||0;i&&(t+=i.offsetTop+40*n)}s&&(v.current.scrollTo({behavior:"smooth",top:t||s.offsetTop}),p.current=!0)}}),[a,c,u]),(0,f.jsxs)("div",{className:fe(),ref:v,children:[d?(0,f.jsx)(N.o,{error:d,className:fe("error")}):null,(0,f.jsx)("div",{className:s,children:r?(0,f.jsx)(E.a,{size:"m"}):d&&!i?null:(()=>{const s=Object.keys(a);return s.length>0?s.map((s=>(0,f.jsx)(ke,{data:a[s],id:be({type:"pdisk",id:s}),unfolded:c===s,selectedVdiskId:u,nodeId:e},s))):"There is no information about node structure."})()})]})},Ne=(0,p.cn)("node"),je="Storage";function Ie(e){var s,a;const c=t.useRef(null),u=(0,m.YQ)(),v=null!==(s=(0,n.W5)(V.Ay.node))&&void 0!==s?s:Object.create(null),{id:p,activeTab:h}=v.params,[{database:g}]=(0,o.useQueryParams)(q.Gi),[k]=(0,m.Nt)(),{currentData:b,isFetching:j,error:I}=U.useGetNodeInfoQuery({nodeId:p},{pollingInterval:k}),S=j&&void 0===b,D=b,w=(0,R.Pm)(),y=(0,R.c2)(),{activeTabVerified:z,nodeTabs:T}=t.useMemo((()=>{var e;let s=(null===D||void 0===D||null===(e=D.Roles)||void 0===e?void 0:e.find((e=>e===je)))?q.qn:q.qn.filter((e=>e.id!==q.O3));y&&(s=s.filter((e=>e.id!==q.mX)));const a=s.map((e=>({...e,title:e.name})));let t=a.find((({id:e})=>e===h));return t||(t=a[0]),{activeTabVerified:t,nodeTabs:a}}),[h,D,y]),O=(null===D||void 0===D||null===(a=D.Tenants)||void 0===a?void 0:a[0])||(null===g||void 0===g?void 0:g.toString());let C;if(D){var L;const e=!(null!==D&&void 0!==D&&null!==(L=D.Tenants)&&void 0!==L&&L[0]);C=e?"Storage":"Compute"}t.useEffect((()=>{u((0,A.g)("node",{tenantName:O,nodeRole:C,nodeId:p}))}),[u,O,p,C]);const G=()=>{switch(z.id){case q.O3:return(0,f.jsx)("div",{className:Ne("storage"),ref:c,children:(0,f.jsx)(F.z,{nodeId:p,parentRef:c,viewContext:{nodeId:null===p||void 0===p?void 0:p.toString()}})});case q.q7:return(0,f.jsx)(M.C,{nodeId:p,database:O,className:Ne("node-page-wrapper")});case q.mX:return(0,f.jsx)(xe,{className:Ne("node-page-wrapper"),nodeId:p});case q.wS:return(0,f.jsx)(P,{node:D,className:Ne("overview-wrapper")});default:return!1}};return S||!w?(0,f.jsx)(E.a,{size:"l"}):D?(0,f.jsxs)("div",{className:Ne(null,e.className),children:[(0,f.jsx)(i.mg,{titleTemplate:`%s \u2014 ${D.Host} \u2014 YDB Monitoring`,defaultTitle:`${D.Host} \u2014 YDB Monitoring`,children:(0,f.jsx)("title",{children:z.title})}),(0,f.jsx)(x,{node:D,additionalNodesProps:e.additionalNodesProps,className:Ne("header")}),I?(0,f.jsx)(N.o,{error:I,className:Ne("error")}):null,(0,f.jsxs)("div",{className:Ne("tabs"),children:[(0,f.jsx)(l.t,{size:"l",items:T,activeTab:z.id,wrapTo:({id:e},s)=>(0,f.jsx)(d.N_,{to:(0,q.vI)(p,{database:O},e),className:Ne("tab"),children:s},e),allowNotSelected:!0}),(0,f.jsx)(r.E,{})]}),(0,f.jsx)("div",{className:Ne("content"),children:G()})]}):I?(0,f.jsx)(N.o,{error:I}):(0,f.jsx)("div",{className:"error",children:"no node data"})}},76768:(e,s,a)=>{a.d(s,{C:()=>b});var t=a(44992),l=a(44508),i=a(53850),n=a(62060),d=a.n(n),o=a(21334),r=a(24600);const c=o.F.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,{signal:s})=>{try{return{data:await window.api.viewer.getTabletsInfo(e,{signal:s})}}catch(a){return{error:a}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),u=(0,i.Mz)((e=>e),(e=>c.endpoints.getTabletsInfo.select(e)),{argsMemoize:i.i5,argsMemoizeOptions:{equalityCheck:d()}}),v=(0,i.Mz)((e=>e),((e,s)=>u(s)),((e,s)=>s(e).data)),p=(0,i.Mz)(((e,s)=>v(e,s)),(e=>(0,r.K)(e)),((e,s)=>null!==e&&void 0!==e&&e.TabletStateInfo?s?e.TabletStateInfo.map((e=>{var a;const t=void 0===e.NodeId||null===(a=s.get(e.NodeId))||void 0===a?void 0:a.Host;return{...e,fqdn:t}})):e.TabletStateInfo:[]));var h=a(77506),m=a(90182),g=a(88616),k=a(60712);const f=(0,h.cn)("tablets");function b({nodeId:e,path:s,database:a,className:i}){const[n]=(0,m.Nt)();let d={};const o=void 0===e?void 0:String(e);void 0!==o?d={nodeId:o,database:a}:s&&(d={path:s,database:a});const{currentData:r,isFetching:u,error:v}=c.useGetTabletsInfoQuery(0===Object.keys(d).length?t.hT:d,{pollingInterval:n}),h=u&&void 0===r,b=(0,m.N4)((e=>p(e,d)));return(0,k.jsxs)("div",{className:f(null,i),children:[v?(0,k.jsx)(l.o,{error:v}):null,r||h?(0,k.jsx)(g.Q,{tablets:b,database:a,loading:h}):null]})}},76938:(e,s,a)=>{a.d(s,{A:()=>l});var t=a(59284);const l=e=>t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),t.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},18677:(e,s,a)=>{a.d(s,{A:()=>l});var t=a(59284);const l=e=>t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),t.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},74321:(e,s,a)=>{a.d(s,{S:()=>r});var t=a(59284),l=a(64222),i=a(46898);function n(e){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),t.createElement("path",{d:"M4 7h9v3H4z"}))}function d(e){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),t.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const o=(0,a(69220).om)("checkbox"),r=t.forwardRef((function(e,s){const{size:a="m",indeterminate:r,disabled:c=!1,content:u,children:v,title:p,style:h,className:m,qa:g}=e,{checked:k,inputProps:f}=(0,l.v)(e),b=u||v,x=t.createElement("span",{className:o("indicator")},t.createElement("span",{className:o("icon"),"aria-hidden":!0},r?t.createElement(n,{className:o("icon-svg",{type:"dash"})}):t.createElement(d,{className:o("icon-svg",{type:"tick"})})),t.createElement("input",Object.assign({},f,{className:o("control")})),t.createElement("span",{className:o("outline")}));return t.createElement(i.m,{ref:s,title:p,style:h,size:a,disabled:c,className:o({size:a,disabled:c,indeterminate:r,checked:k},m),qa:g,control:x},b)}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3779.9f31a4d0.chunk.js b/ydb/core/viewer/monitoring/static/js/3779.9f31a4d0.chunk.js new file mode 100644 index 00000000000..aa68cb4127b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3779.9f31a4d0.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3779],{90053:(e,s,t)=>{t.d(s,{E:()=>h});var r=t(8873),a=t(84476),l=t(24555),n=t(21334),o=t(77506),i=t(90182),c=t(48372);const d=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,c.g4)("ydb-diagnostics-autorefresh-control",{en:d});var v=t(60712);const m=(0,o.cn)("auto-refresh-control");function h({className:e}){const s=(0,i.YQ)(),[t,o]=(0,i.Nt)();return(0,v.jsxs)("div",{className:m(null,e),children:[(0,v.jsx)(a.$,{view:"flat-secondary",onClick:()=>{s(n.F.util.invalidateTags(["All"]))},extraProps:{"aria-label":u("Refresh")},children:(0,v.jsx)(a.$.Icon,{children:(0,v.jsx)(r.A,{})})}),(0,v.jsxs)(l.l,{value:[String(t)],onUpdate:e=>{o(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,v.jsx)(l.l.Option,{value:"0",children:u("None")}),(0,v.jsx)(l.l.Option,{value:"15000",children:u("15 sec")}),(0,v.jsx)(l.l.Option,{value:"60000",children:u("1 min")}),(0,v.jsx)(l.l.Option,{value:"120000",children:u("2 min")}),(0,v.jsx)(l.l.Option,{value:"300000",children:u("5 min")})]})]})}},52248:(e,s,t)=>{t.d(s,{a:()=>r.a});var r=t(47334)},15132:(e,s,t)=>{t.d(s,{O:()=>v});var r=t(38501),a=t(77506),l=t(56839),n=t(35736),o=t(41650),i=t(60712);const c=(0,a.cn)("progress-viewer"),d=e=>(0,l.ZV)((0,l.CR)(Number(e),2)),u=(e,s)=>[d(e),d(s)];function v({value:e,capacity:s,formatValues:t=u,percents:a,className:l,size:d="xs",colorizeProgress:v,inverseColorize:m,warningThreshold:h,dangerThreshold:N,hideCapacity:g}){const p=(0,r.D)();let S=Math.round(parseFloat(String(e))/parseFloat(String(s))*100)||0;S=S>100?100:S;let f=e,b=s,x="/";a?(f=S+"%",b="",x=""):t&&([f,b]=t(Number(e),Number(s)));const E=(0,n.w)({fillWidth:S,warningThreshold:h,dangerThreshold:N,colorizeProgress:v,inverseColorize:m});v&&!(0,o.kf)(s)&&(S=100);const j={width:S+"%"};return(0,o.kf)(e)?(0,i.jsxs)("div",{className:c({size:d,theme:p,status:E},l),children:[(0,i.jsx)("div",{className:c("line"),style:j}),(0,i.jsx)("span",{className:c("text"),children:(0,o.kf)(s)&&!g?`${f} ${x} ${b}`:f})]}):(0,i.jsx)("div",{className:`${c({size:d})} ${l} error`,children:"no data"})}},17594:(e,s,t)=>{t.d(s,{l:()=>c});var r=t(69024),a=t(4557),l=t(77506),n=t(16819),o=t(60712);const i=(0,l.cn)("ydb-resizeable-data-table");function c({columnsWidthLSKey:e,columns:s,settings:t,wrapperClassName:l,...c}){const[d,u]=(0,n.a)(e),v=(0,r.j)(s,d),m={...t,defaultResizeable:!0};return(0,o.jsx)("div",{className:i(null,l),children:(0,o.jsx)(a.Ay,{theme:"yandex-cloud",columns:v,onResize:u,settings:m,...c})})}},41775:(e,s,t)=>{t.d(s,{v:()=>i});var r=t(59284),a=t(28664),l=t(77506),n=t(60712);const o=(0,l.cn)("ydb-search"),i=({onChange:e,value:s="",width:t,className:l,debounce:i=200,placeholder:c})=>{const[d,u]=r.useState(s),v=r.useRef();r.useEffect((()=>{u((e=>e!==s?s:e))}),[s]);return(0,n.jsx)(a.k,{hasClear:!0,autoFocus:!0,style:{width:t},className:o(null,l),placeholder:c,value:d,onUpdate:s=>{u(s),window.clearTimeout(v.current),v.current=window.setTimeout((()=>{null===e||void 0===e||e(s)}),i)}})}},95963:(e,s,t)=>{t.d(s,{v:()=>r.v});var r=t(41775)},48288:(e,s,t)=>{t.r(s),t.d(s,{Clusters:()=>se});var r=t(59284),a=t(4557),l=t(24555),n=t(69775),o=t(61750),i=t(90053),c=t(44508),d=t(52248),u=t(17594),v=t(95963),m=t(39567),h=t(23536),N=t.n(h);const g=e=>e.clusters.clusterName,p=e=>e.clusters.status,S=e=>e.clusters.service,f=e=>e.clusters.version,b=(e,s)=>0===s.length||e.status&&s.includes(e.status),x=(e,s)=>0===s.length||e.service&&s.includes(e.service),E=(e,s)=>0===s.length||s.some((s=>{var t,r;return null===(t=e.cluster)||void 0===t||null===(r=t.Versions)||void 0===r?void 0:r.some((e=>e.startsWith(s)))})),j=(e,s="")=>{var t;if(!s)return!0;const r=s.toLowerCase(),a=r.split(" "),l=(null===(t=e.title)||void 0===t?void 0:t.toLowerCase().match(/[^\d\s]+|\d+|[^-\s]+|[^_\s]+/g))||[],n=a.every((s=>{const t=N()(s),r=new RegExp(`^${t}|[\\s\\-_]${t}`,"i");return e.title&&r.test(e.title)||l.some((e=>e.startsWith(s)))})),o=e.preparedVersions.some((e=>e.version.includes(r))),i=Boolean(e.hosts&&e.hosts[r]);return n||o||i};var T=t(76086),O=t(90182),C=t(43951),w=t(38596),A=t(15132),_=t(56839),y=t(48372);const R=JSON.parse('{"controls_status-select-label":"Status:","controls_service-select-label":"Service:","controls_version-select-label":"Version:","controls_search-placeholder":"Cluster name, version, host","controls_select-placeholder":"All","statistics_clusters":"Clusters","statistics_hosts":"Hosts","statistics_tenants":"Tenants","statistics_nodes":"Nodes","statistics_load":"Load","statistics_storage":"Storage","tooltip_no-cluster-data":"No cluster data","page_title":"Clusters"}'),I=JSON.parse('{"controls_status-select-label":"\u0421\u0442\u0430\u0442\u0443\u0441:","controls_service-select-label":"\u0421\u0435\u0440\u0432\u0438\u0441:","controls_version-select-label":"\u0412\u0435\u0440\u0441\u0438\u044f:","controls_search-placeholder":"\u0418\u043c\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u0432\u0435\u0440\u0441\u0438\u044f \u0438\u043b\u0438 \u0445\u043e\u0441\u0442","controls_select-placeholder":"\u0412\u0441\u0435","statistics_clusters":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b","statistics_hosts":"\u0425\u043e\u0441\u0442\u044b","statistics_tenants":"\u0411\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445","statistics_nodes":"\u0423\u0437\u043b\u044b","statistics_load":"\u041d\u0430\u0433\u0440\u0443\u0437\u043a\u0430","statistics_storage":"\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435","tooltip_no-cluster-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430","page_title":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),D=(0,y.g4)("ydb-clusters-page",{ru:I,en:R});var z=t(77506);const L=(0,z.cn)("clusters");var k=t(60712);const V=({count:e,stats:s})=>{const{NodesTotal:t,NodesAlive:r,Hosts:a,Tenants:l,LoadAverage:n,NumberOfCpus:o,StorageUsed:i,StorageTotal:c}=s;return(0,k.jsxs)("div",{className:L("aggregation"),children:[(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_clusters")}),e]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_hosts")}),a]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_tenants")}),l]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_nodes")}),(0,k.jsx)(A.O,{size:"ns",value:r,capacity:t,colorizeProgress:!0,inverseColorize:!0})]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_load")}),(0,k.jsx)(A.O,{size:"ns",value:n,capacity:o,colorizeProgress:!0})]}),(0,k.jsxs)("div",{className:L("aggregation-value-container"),children:[(0,k.jsx)("span",{className:L("aggregation-label"),children:D("statistics_storage")}),(0,k.jsx)(A.O,{size:"ns",value:i,capacity:c,formatValues:_.j9,colorizeProgress:!0})]})]})};var U=t(6170),G=t(67884),W=t(18143),P=t(96873),$=t(34271);const H=(0,z.cn)("kv-user");function M({login:e,className:s}){const t=(0,$.x)("StaffCard");return(0,k.jsx)("div",{className:H(null,s),children:(0,k.jsx)(t,{login:e,children:(0,k.jsx)("div",{className:H("name"),children:e})})})}var B=t(31684),F=t(69446),q=t(87842);const K="selectedColumns",J={TITLE:"title",VERSIONS:"versions",DC:"dc",SERVICE:"service",STATUS:"status",NODES:"nodes",LOAD:"load",STORAGE:"storage",HOSTS:"hosts",TENANTS:"tenants",OWNER:"owner",DESCRIPTION:"description",BALANCER:"balancer"},Q=[J.TITLE,J.VERSIONS,J.SERVICE,J.STATUS,J.NODES,J.LOAD,J.STORAGE,J.HOSTS,J.TENANTS,J.OWNER,J.BALANCER],X={[J.TITLE]:"Cluster",[J.VERSIONS]:"Versions",[J.DC]:"DC",[J.SERVICE]:"Service",[J.STATUS]:"Status",[J.NODES]:"Nodes",[J.LOAD]:"Load",[J.STORAGE]:"Storage",[J.HOSTS]:"Hosts",[J.TENANTS]:"Tenants",[J.OWNER]:"Owner",[J.DESCRIPTION]:"Description",[J.BALANCER]:"Balancer"},Y="clustersTableColumnsWidth",Z=(0,k.jsx)("span",{className:L("empty-cell"),children:"\u2014"}),ee=[{name:J.TITLE,header:X[J.TITLE],width:230,render:({row:e})=>{var s,t;const{balancer:r,name:a,use_embedded_ui:l}=e,n=r&&(0,F.PG)(r),o=l&&n?(0,B.t1)(n):(0,q.a)(void 0,{backend:n,clusterName:a}),i=null===(s=e.cluster)||void 0===s?void 0:s.Overall;return(0,k.jsxs)("div",{className:L("cluster"),children:[i?(0,k.jsx)(G.N,{href:o,children:(0,k.jsx)("div",{className:L("cluster-status",{type:i&&i.toLowerCase()})})}):(0,k.jsx)("div",{className:L("cluster-status"),children:(0,k.jsx)(U.B,{content:(0,k.jsx)("span",{className:L("tooltip-content"),children:(null===(t=e.cluster)||void 0===t?void 0:t.error)||D("tooltip_no-cluster-data")}),offset:{left:0}})}),(0,k.jsx)("div",{className:L("cluster-name"),children:(0,k.jsx)(G.N,{href:o,children:e.title})})]})},defaultOrder:a.Ay.ASCENDING},{name:J.VERSIONS,header:X[J.VERSIONS],width:300,defaultOrder:a.Ay.DESCENDING,sortAccessor:({preparedVersions:e})=>e.map((e=>e.version.replace(/^[0-9]\+\./g,""))).sort(((e,s)=>e.localeCompare(s)))[0]||void 0,render:({row:e})=>{const{preparedVersions:s,versions:t=[],balancer:a,name:l}=e;if(!t.length||t.some((e=>!e.version)))return Z;const n=t.reduce(((e,s)=>e+s.count),0),o=t.map((e=>{var t;return{value:e.count/n*100,color:null===(t=s.find((s=>s.version===e.version)))||void 0===t?void 0:t.color}})),i=a&&(0,F.PG)(a);return s.length>0&&(0,k.jsx)(G.N,{className:L("cluster-versions"),href:(0,q.a)(q.Bi.versions,{backend:i,clusterName:l}),children:(0,k.jsxs)(r.Fragment,{children:[s.map(((e,s)=>(0,k.jsx)("div",{className:L("cluster-version"),style:{color:e.color},title:e.version,children:e.version},s))),(0,k.jsx)(W.k,{size:"s",value:100,stack:o})]})})}},{name:J.DC,header:X[J.DC],width:120,sortable:!1,render:({row:e})=>{const s=e.cluster&&e.cluster.DataCenters||[];return(0,k.jsx)("div",{className:L("cluster-dc"),children:s.join(", ")||Z})}},{name:J.SERVICE,header:X[J.SERVICE],width:100,sortable:!0},{name:J.STATUS,header:X[J.STATUS],width:150,sortable:!0},{name:J.NODES,header:X[J.NODES],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e={}})=>{const{NodesTotal:s=0}=e;return s},render:({row:e})=>{const{NodesAlive:s=0,NodesTotal:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t}):Z}},{name:J.LOAD,header:X[J.LOAD],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>null===e||void 0===e?void 0:e.NumberOfCpus,render:({row:e})=>{const{LoadAverage:s=0,NumberOfCpus:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t}):Z}},{name:J.STORAGE,header:X[J.STORAGE],resizeMinWidth:170,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.StorageTotal),render:({row:e})=>{const{StorageUsed:s=0,StorageTotal:t=0,Overall:r}=e.cluster||{};return r?(0,k.jsx)(A.O,{value:s,capacity:t,formatValues:_.ki}):Z}},{name:J.HOSTS,header:X[J.HOSTS],width:80,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.Hosts)||0,render:({row:e})=>{var s;return Number(null===(s=e.cluster)||void 0===s?void 0:s.Hosts)||Z}},{name:J.TENANTS,header:X[J.TENANTS],width:80,defaultOrder:a.Ay.DESCENDING,sortAccessor:({cluster:e})=>Number(null===e||void 0===e?void 0:e.Tenants)||0,render:({row:e})=>{var s;return Number(null===(s=e.cluster)||void 0===s?void 0:s.Tenants)||Z}},{name:J.OWNER,header:X[J.OWNER],sortable:!1,width:120,render:({row:e})=>{var s;const t=null===(s=e.owner)||void 0===s?void 0:s.split(", ");return null!==t&&void 0!==t&&t.length?t.map((e=>(0,k.jsx)(M,{login:e},e))):Z}},{name:J.DESCRIPTION,header:X[J.DESCRIPTION],sortable:!1,width:150,render:({row:e})=>e.description?(0,k.jsx)("div",{className:L("description"),children:e.description}):Z},{name:J.BALANCER,header:X[J.BALANCER],sortable:!1,width:290,render:({row:e})=>{if(!e.balancer)return Z;const s=(0,F.Zd)(e.balancer);return(0,k.jsxs)("div",{className:L("balancer-cell"),children:[(0,k.jsx)("div",{className:L("balancer-text"),children:s}),(0,k.jsx)(P.b,{size:"s",text:s,className:L("balancer-icon")})]})}}];function se(){const[e]=(0,O.Nt)(),s=m.ub.useGetClustersListQuery(void 0,{pollingInterval:e}),t=(0,O.YQ)(),h=(0,O.N4)(g),N=(0,O.N4)(p),A=(0,O.N4)(S),_=(0,O.N4)(f),{columnsToShow:y,columnsToSelect:R,setColumns:I}=(0,C.K)(ee,K,X,Q,[J.TITLE]),z=s.data,{servicesToSelect:U,versions:G}=r.useMemo((()=>{const e=new Set,s=new Set;return(null!==z&&void 0!==z?z:[]).forEach((t=>{var r,a;t.service&&e.add(t.service),null===(r=t.cluster)||void 0===r||null===(a=r.Versions)||void 0===a||a.forEach((e=>{s.add((0,w.U)(e))}))})),{servicesToSelect:Array.from(e).map((e=>({value:e,content:e}))),versions:Array.from(s).map((e=>({value:e,content:e})))}}),[z]),W=r.useMemo((()=>function(e,s){return e.filter((e=>b(e,s.status)&&x(e,s.service)&&E(e,s.version)&&j(e,s.clusterName)))}(null!==z&&void 0!==z?z:[],{clusterName:h,status:N,service:A,version:_})),[h,z,A,N,_]),P=r.useMemo((()=>function(e){let s=0,t=0,r=0,a=0,l=0,n=0,o=0;const i=new Set;return e.filter((({cluster:e})=>!(null!==e&&void 0!==e&&e.error))).forEach((({cluster:e,hosts:c={}})=>{s+=(null===e||void 0===e?void 0:e.NodesTotal)||0,t+=(null===e||void 0===e?void 0:e.NodesAlive)||0,Object.keys(c).forEach((e=>i.add(e))),o+=Number(null===e||void 0===e?void 0:e.Tenants)||0,r+=Number(null===e||void 0===e?void 0:e.LoadAverage)||0,a+=(null===e||void 0===e?void 0:e.NumberOfCpus)||0,l+=null!==e&&void 0!==e&&e.StorageUsed?Math.floor(parseInt(e.StorageUsed,10)):0,n+=null!==e&&void 0!==e&&e.StorageTotal?Math.floor(parseInt(e.StorageTotal,10)):0})),{NodesTotal:s,NodesAlive:t,Hosts:i.size,Tenants:o,LoadAverage:r,NumberOfCpus:a,StorageUsed:l,StorageTotal:n}}(W)),[W]),$=r.useMemo((()=>Array.from(new Set((null!==z&&void 0!==z?z:[]).map((e=>e.status)).filter(Boolean))).sort().map((e=>({value:e,content:e})))),[z]);return(0,k.jsxs)("div",{className:L(),children:[(0,k.jsx)(o.mg,{children:(0,k.jsx)("title",{children:D("page_title")})}),(0,k.jsx)(V,{stats:P,count:W.length}),(0,k.jsxs)("div",{className:L("controls"),children:[(0,k.jsx)("div",{className:L("control",{wide:!0}),children:(0,k.jsx)(v.v,{placeholder:D("controls_search-placeholder"),onChange:e=>{t((0,m.Fe)({clusterName:e}))},value:h})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_status-select-label"),value:N,options:$,onUpdate:e=>{t((0,m.Fe)({status:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_service-select-label"),value:A,options:U,onUpdate:e=>{t((0,m.Fe)({service:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(l.l,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_version-select-label"),value:_,options:G,onUpdate:e=>{t((0,m.Fe)({version:e}))},width:"max"})}),(0,k.jsx)("div",{className:L("control"),children:(0,k.jsx)(n.O,{popupWidth:242,items:R,showStatus:!0,onUpdate:I,sortable:!1},"TableColumnSetup")}),(0,k.jsx)(i.E,{className:L("autorefresh")})]}),s.isError?(0,k.jsx)(c.o,{error:s.error,className:L("error")}):null,s.isLoading?(0,k.jsx)(d.a,{size:"l"}):null,s.fulfilledTimeStamp?(0,k.jsx)("div",{className:L("table-wrapper"),children:(0,k.jsx)("div",{className:L("table-content"),children:(0,k.jsx)(u.l,{columnsWidthLSKey:Y,wrapperClassName:L("table"),data:W,columns:y,settings:{...T.N3,dynamicRender:!1},initialSortOrder:{columnId:J.TITLE,order:a.Ay.ASCENDING}})})}):null]})}},43951:(e,s,t)=>{t.d(s,{K:()=>l});var r=t(59284),a=t(59001);const l=(e,s,t,l,n)=>{const[o,i]=r.useState((()=>a.f.readUserSettingsValue(s,l)));return{columnsToShow:r.useMemo((()=>e.filter((e=>{const s=e.name,t=o.includes(s),r=null===n||void 0===n?void 0:n.includes(s);return t||r}))),[e,n,o]),columnsToSelect:r.useMemo((()=>e.map((e=>e.name)).map((e=>{const s=null===n||void 0===n?void 0:n.includes(e),r=o.includes(e);return{id:e,title:t[e],selected:s||r,required:s,sticky:s?"start":void 0}}))),[e,t,n,o]),setColumns:r.useCallback((e=>{const t=e.filter((e=>e.selected)).map((e=>e.id));a.f.setUserSettingsValue(s,t),i(t)}),[s])}}},16819:(e,s,t)=>{t.d(s,{a:()=>n});var r=t(59284),a=t(69024),l=t(59001);const n=e=>{const s=r.useCallback((()=>e?l.f.readUserSettingsValue(e,{}):{}),[e]),t=r.useCallback((s=>{e&&l.f.setUserSettingsValue(e,s)}),[e]);return(0,a.a)({saveSizes:t,getSizes:s})}},35736:(e,s,t)=>{t.d(s,{w:()=>a});var r=t(76086);function a({inverseColorize:e,warningThreshold:s=r.Hh,dangerThreshold:t=r.Ed,colorizeProgress:a,fillWidth:l}){let n=e?"danger":"good";return a&&(l>s&&l<=t?n="warning":l>t&&(n=e?"good":"danger")),n}},6170:(e,s,t)=>{t.d(s,{B:()=>c});var r=t(59284),a=t(73633),l=t(84375),n=t(99991);const o=(0,t(98192).om)("help-popover"),i=16;function c(e){var s;return r.createElement(l.A,Object.assign({},e,{className:o(null,e.className)}),r.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:o("button",null===(s=e.buttonProps)||void 0===s?void 0:s.className)}),r.createElement(n.I,{data:a.A,size:i})))}},98192:(e,s,t)=>{t.d(s,{CU:()=>a,om:()=>l});var r=t(82435);const a="gc-",l=((0,r.withNaming)({e:"__",m:"_",v:"_"}),(0,r.withNaming)({n:a,e:"__",m:"_",v:"_"}))},18143:(e,s,t)=>{t.d(s,{k:()=>u});var r=t(59284);const a=(0,t(69220).om)("progress");function l(e){const{text:s,offset:t=0}=e;return s?r.createElement("div",{className:a("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-t}%))`}},s):null}function n({item:e}){const{value:s,color:t,className:l,theme:n,title:o,content:i,loading:c}=e,d={loading:c};return"undefined"===typeof t&&(d.theme=n||"default"),Number.isFinite(s)?r.createElement("div",{className:a("item",d,l),style:{width:`${s}%`,backgroundColor:t},title:o},i):null}function o(e){return e<100?e-100:0}function i(e){const{theme:s,colorStops:t,colorStopsValue:r,value:a}=e;if(t){const e=t.find(((e,s)=>{const l="number"===typeof r?r:a,n=s>1?t[s-1].stop:0,o=s<t.length-1?e.stop:100;return l>=n&&l<=o}));return e?e.theme:s}return s}function c(e){const{stack:s,stackClassName:t,value:i,text:c}=e,d=o(i||function(e){return e.reduce(((e,{value:s})=>e+s),0)}(s));return r.createElement("div",{className:a("stack",t),style:{transform:`translateX(calc(var(--g-flow-direction) * ${d}%))`}},r.createElement("div",{className:a("item"),style:{width:-d+"%"}}),s.map(((e,s)=>r.createElement(n,{key:s,item:e}))),r.createElement(l,{offset:d,text:c}))}function d(e){const{value:s,loading:t,text:n}=e,c=o(s);return Number.isFinite(s)?r.createElement("div",{className:a("item",{theme:i(e),loading:t}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${c}%))`}},r.createElement(l,{offset:c,text:n})):null}const u=r.forwardRef((function(e,s){const{text:t="",theme:l="default",size:n="m",loading:o=!1,className:i,qa:u}=e,v=Object.assign(Object.assign({},e),{text:t,theme:l,size:n,loading:o});return r.createElement("div",{ref:s,className:a({size:n},i),"data-qa":u},r.createElement("div",{className:a("text")},t),function(e){return void 0!==e.stack}(v)?r.createElement(c,Object.assign({},v)):r.createElement(d,Object.assign({},v)))}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3812.325f3251.chunk.js b/ydb/core/viewer/monitoring/static/js/3812.325f3251.chunk.js new file mode 100644 index 00000000000..ca045b710eb --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3812.325f3251.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3812],{3685:(e,a,s)=>{s.d(a,{$:()=>o});var l=s(77506),t=s(33775),r=s(60712);const n=(0,l.cn)("ydb-entity-page-title");function o({entityName:e,status:a,id:s,className:l}){return(0,r.jsxs)("div",{className:n(null,l),children:[(0,r.jsx)("span",{className:n("prefix"),children:e}),(0,r.jsx)(t.k,{className:n("icon"),status:a,size:"s"}),s]})}},42655:(e,a,s)=>{s.d(a,{y:()=>c});var l=s(59284),t=s(89169),r=s(77506),n=s(66781),o=s(60712);const u=(0,r.cn)("ydb-info-viewer-skeleton"),i=()=>(0,o.jsxs)("div",{className:u("label"),children:[(0,o.jsx)(t.E,{className:u("label__text")}),(0,o.jsx)("div",{className:u("label__dots")})]}),c=({rows:e=8,className:a,delay:s=600})=>{const[r]=(0,n.y)(s);let c=(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(i,{}),(0,o.jsx)(t.E,{className:u("value")})]});return r||(c=null),(0,o.jsx)("div",{className:u(null,a),children:[...new Array(e)].map(((e,a)=>(0,o.jsx)("div",{className:u("row"),children:c},`skeleton-row-${a}`)))})}},58389:(e,a,s)=>{s.d(a,{B:()=>c});var l=s(87184),t=s(77506),r=s(90053),n=s(70043),o=s(60712);const u=(0,t.cn)("ydb-page-meta");function i({items:e,loading:a}){return(0,o.jsx)("div",{className:u("info"),children:a?(0,o.jsx)(n.E,{className:u("skeleton")}):e.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c({className:e,...a}){return(0,o.jsxs)(l.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:u(null,e),children:[(0,o.jsx)(i,{...a}),(0,o.jsx)(r.E,{})]})}},70043:(e,a,s)=>{s.d(a,{E:()=>n});var l=s(89169),t=s(66781),r=s(60712);const n=({delay:e=600,className:a})=>{const[s]=(0,t.y)(e);return s?(0,r.jsx)(l.E,{className:a}):null}},75510:(e,a,s)=>{s.r(a),s.d(a,{StorageGroupPage:()=>M});var l=s(59284),t=s(44992),r=s(61750),n=s(67087),o=s(3685),u=s(44508),i=s(42655),c=s(58389),p=s(87184),d=s(7435),g=s(56839),v=s(73891),m=s(41650),h=s(60073),b=s(15132),y=s(33775),f=s(48372);const x=JSON.parse('{"encryption":"Encryption","overall":"Overall","disk-space":"Disk Space","media-type":"Media Type","erasure-species":"Erasure Species","used-space":"Used Space","usage":"Usage","read-throughput":"Read Throughput","write-throughput":"Write Throughput","yes":"Yes","no":"No","group-generation":"Group Generation","latency":"Latency","allocation-units":"Units","state":"State","missing-disks":"Missing Disks","available":"Available Space","latency-put-tablet-log":"Latency (Put Tablet Log)","latency-put-user-data":"Latency (Put User Data)","latency-get-fast":"Latency (Get Fast)"}'),N=(0,f.g4)("storage-group-info",{en:x});var j=s(60712);function k({data:e,className:a,...s}){const{Encryption:l,Overall:t,DiskSpace:r,MediaType:n,ErasureSpecies:o,Used:u,Limit:i,Usage:c,Read:f,Write:x,GroupGeneration:k,Latency:S,AllocationUnits:w,State:G,MissingDisks:E,Available:L,LatencyPutTabletLogMs:P,LatencyPutUserDataMs:T,LatencyGetFastMs:$}=e||{},_=[];(0,d.f8)(k)&&_.push({label:N("group-generation"),value:k}),(0,d.f8)(o)&&_.push({label:N("erasure-species"),value:o}),(0,d.f8)(n)&&_.push({label:N("media-type"),value:n}),(0,d.f8)(l)&&_.push({label:N("encryption"),value:N(l?"yes":"no")}),(0,d.f8)(t)&&_.push({label:N("overall"),value:(0,j.jsx)(y.k,{status:t})}),(0,d.f8)(G)&&_.push({label:N("state"),value:G}),(0,d.f8)(E)&&_.push({label:N("missing-disks"),value:E});const I=[];return(0,d.f8)(u)&&(0,d.f8)(i)&&I.push({label:N("used-space"),value:(0,j.jsx)(b.O,{value:Number(u),capacity:Number(i),formatValues:g.vX,colorizeProgress:!0})}),(0,d.f8)(L)&&I.push({label:N("available"),value:(0,g.vX)(Number(L))}),(0,d.f8)(c)&&I.push({label:N("usage"),value:`${c.toFixed(2)}%`}),(0,d.f8)(r)&&I.push({label:N("disk-space"),value:(0,j.jsx)(y.k,{status:r})}),(0,d.f8)(S)&&I.push({label:N("latency"),value:(0,j.jsx)(y.k,{status:S})}),(0,d.f8)(P)&&I.push({label:N("latency-put-tablet-log"),value:(0,v.Xo)(P)}),(0,d.f8)(T)&&I.push({label:N("latency-put-user-data"),value:(0,v.Xo)(T)}),(0,d.f8)($)&&I.push({label:N("latency-get-fast"),value:(0,v.Xo)($)}),(0,d.f8)(w)&&I.push({label:N("allocation-units"),value:w}),(0,d.f8)(f)&&I.push({label:N("read-throughput"),value:(0,m.O4)(Number(f))}),(0,d.f8)(x)&&I.push({label:N("write-throughput"),value:(0,m.O4)(Number(x))}),(0,j.jsxs)(p.s,{className:a,gap:2,direction:"row",wrap:!0,children:[(0,j.jsx)(h.z_,{info:_,...s}),(0,j.jsx)(h.z_,{info:I,...s})]})}var S=s(67028),w=s(40174),G=s(10174),E=s(54090),L=s(77506),P=s(90182),T=s(99936);const $=JSON.parse('{"storage-group":"Storage Group","storage":"Storage","pool-name":"Pool Name"}'),_=(0,f.g4)("ydb-storage-group-page",{en:$}),I=(0,L.cn)("ydb-storage-group-page");function M(){var e,a;const s=(0,P.YQ)(),p=l.useRef(null),[{groupId:g}]=(0,n.useQueryParams)({groupId:n.StringParam});l.useEffect((()=>{s((0,w.g)("storageGroup",{groupId:g}))}),[s,g]);const[v]=(0,P.Nt)(),m=(0,S.YA)(),h=(0,S.Pm)(),b=G.S.useGetStorageGroupsInfoQuery((0,d.f8)(g)?{groupId:g,shouldUseGroupsHandler:m,with:"all",fieldsRequired:"all"}:t.hT,{pollingInterval:v,skip:!h}),y=null===(e=b.data)||void 0===e||null===(a=e.groups)||void 0===a?void 0:a[0],f=b.isFetching&&void 0===y;return(0,j.jsxs)("div",{className:I(null),ref:p,children:[(()=>{const e=g?`${_("storage-group")} ${g}`:_("storage-group");return(0,j.jsx)(r.mg,{titleTemplate:`%s - ${e} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 YDB Monitoring`})})(),(()=>{if(!g)return null;const e=[`${_("pool-name")}: ${null===y||void 0===y?void 0:y.PoolName}`];return(0,j.jsx)(c.B,{className:I("meta"),loading:f,items:e})})(),(0,j.jsx)(o.$,{className:I("title"),entityName:_("storage-group"),status:(null===y||void 0===y?void 0:y.Overall)||E.m.Grey,id:g}),b.error?(0,j.jsx)(u.o,{error:b.error}):null,f?(0,j.jsx)(i.y,{className:I("info"),rows:10}):(0,j.jsx)(k,{data:y,className:I("info")}),g?(0,j.jsxs)(l.Fragment,{children:[(0,j.jsx)("div",{className:I("storage-title"),children:_("storage")}),(0,j.jsx)(T.z,{groupId:g,parentRef:p,viewContext:{groupId:null===g||void 0===g?void 0:g.toString()}})]}):null]})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3822.00ab6aaa.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/3822.00ab6aaa.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/3822.00ab6aaa.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/3822.00ab6aaa.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/3872.a25d87b5.chunk.js b/ydb/core/viewer/monitoring/static/js/3872.a25d87b5.chunk.js new file mode 100644 index 00000000000..22f70cc069f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3872.a25d87b5.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3872],{3872:(e,l,t)=>{t.r(l),t.d(l,{ReactComponent:()=>m,default:()=>h});var a,r,i,n,c,o,d,s,f=t(59284);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},u.apply(null,arguments)}function p({title:e,titleId:l,...t},p){return f.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:230,height:230,fill:"none",ref:p,"aria-labelledby":l},t),e?f.createElement("title",{id:l},e):null,a||(a=f.createElement("path",{fill:"#BECFE0",fillOpacity:.9,fillRule:"evenodd",d:"M169.001 51.666c5.523 0 10 4.477 10 10v21.017l18.197-10.506c4.783-2.762 10.899-1.123 13.66 3.66 2.761 4.783 1.123 10.899-3.66 13.66l-18.197 10.507 18.198 10.506c4.783 2.762 6.421 8.878 3.66 13.661-2.762 4.782-8.877 6.421-13.66 3.66l-18.198-10.506v21.008c0 5.523-4.477 10-10 10-5.522 0-10-4.477-10-10v-21.009l-18.199 10.507c-4.782 2.761-10.898 1.122-13.66-3.66-2.761-4.783-1.122-10.899 3.66-13.661l18.199-10.506-18.198-10.507c-4.783-2.761-6.421-8.877-3.66-13.66 2.762-4.783 8.877-6.422 13.66-3.66l18.198 10.507V61.666c0-5.523 4.478-10 10-10Z",clipRule:"evenodd"})),r||(r=f.createElement("path",{fill:"#262626",fillRule:"evenodd",d:"M171.523 95.922a11.003 11.003 0 0 1 1.099 8.347l-13.208 49.291c-1.572 5.868-7.604 9.351-13.472 7.778l-25.356-6.794a44.998 44.998 0 0 1-.53 1.929l25.368 6.797c6.935 1.858 14.064-2.257 15.922-9.192l13.207-49.291c.893-3.33.426-6.879-1.298-9.865L155.598 64.34a12.999 12.999 0 0 0-7.894-6.057l-29.972-8.031c-6.935-1.858-14.063 2.257-15.922 9.192l-11.328 42.277c.64.192 1.276.398 1.905.618l11.355-42.377c1.573-5.868 7.604-9.35 13.472-7.778l29.973 8.03a11 11 0 0 1 6.679 5.126l17.657 30.582Z",clipRule:"evenodd"})),i||(i=f.createElement("path",{fill:"#FF5958",fillOpacity:.9,d:"M35.388 155.273c-6.29-23.472 7.64-47.599 31.113-53.889 23.472-6.289 47.599 7.641 53.889 31.113 6.289 23.473-7.641 47.599-31.113 53.889-23.473 6.289-47.6-7.64-53.889-31.113Z"})),n||(n=f.createElement("path",{stroke:"#262626",strokeWidth:2,d:"M60.636 117.734c53.586-33.459-26.868-81.505-36.557-61.318-11.802 24.59 99.395 51.098 128.865-26.3"})),f.createElement("mask",{id:"b",width:89,height:89,x:33,y:99,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},c||(c=f.createElement("path",{fill:"#FF5958",fillOpacity:.9,d:"M35.388 155.273c-6.29-23.472 7.64-47.599 31.113-53.889 23.472-6.289 47.599 7.641 53.889 31.113 6.289 23.473-7.641 47.599-31.113 53.889-23.473 6.289-47.6-7.64-53.889-31.113Z"}))),o||(o=f.createElement("g",{filter:"url(#a)",mask:"url(#b)"},f.createElement("path",{stroke:"#262626",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.6,strokeWidth:2,d:"M172.389 95.422a12.004 12.004 0 0 1 1.199 9.106l-13.208 49.291c-1.715 6.401-8.295 10.2-14.697 8.485L91.591 147.81c-6.401-1.715-10.2-8.295-8.485-14.697l19.67-73.41c1.716-6.402 8.296-10.2 14.697-8.485l29.972 8.03a11.998 11.998 0 0 1 7.287 5.592l17.657 30.582Z"}))),d||(d=f.createElement("g",{filter:"url(#c)"},f.createElement("path",{fill:"#fff",fillOpacity:.72,fillRule:"evenodd",d:"M80.866 130.432a6.359 6.359 0 1 1-12.284 3.29 6.359 6.359 0 0 1 12.284-3.29Zm4.817-1.291c1.621 6.052-1.97 12.273-8.022 13.894-6.052 1.622-12.273-1.97-13.895-8.022-1.621-6.052 1.97-12.272 8.022-13.894 6.052-1.622 12.273 1.97 13.895 8.022Zm-21.346 32.565c-.154-.577-.009-2.61 2.877-5.555 2.665-2.721 6.917-5.33 12.158-6.734 5.24-1.404 10.227-1.271 13.896-.247 3.971 1.108 5.114 2.796 5.268 3.372a3.116 3.116 0 0 1-2.204 3.817l-28.178 7.55a3.116 3.116 0 0 1-3.817-2.203ZM78.081 144.6c-12.054 3.23-20.238 12.134-18.56 18.396a8.103 8.103 0 0 0 9.924 5.73l28.178-7.55a8.104 8.104 0 0 0 5.73-9.925c-1.678-6.261-13.218-9.881-25.272-6.651Z",clipRule:"evenodd"}))),s||(s=f.createElement("defs",null,f.createElement("filter",{id:"a",width:113.303,height:133.91,x:71.693,y:39.806,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},f.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),f.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),f.createElement("feGaussianBlur",{result:"effect1_foregroundBlur_1301_31085",stdDeviation:5})),f.createElement("filter",{id:"c",width:73.289,height:73.288,x:41.018,y:106.391,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},f.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),f.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),f.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),f.createElement("feOffset",null),f.createElement("feGaussianBlur",{stdDeviation:1.917}),f.createElement("feComposite",{in2:"hardAlpha",k2:-1,k3:1,operator:"arithmetic"}),f.createElement("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"}),f.createElement("feBlend",{in2:"shape",result:"effect1_innerShadow_1301_31085"})))))}const m=f.forwardRef(p),h=t.p+"static/media/error.9bbd075178a739dcc30f2a7a3e2a3249.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3872.b04e09bf.chunk.js b/ydb/core/viewer/monitoring/static/js/3872.b04e09bf.chunk.js deleted file mode 100644 index f517419edaf..00000000000 --- a/ydb/core/viewer/monitoring/static/js/3872.b04e09bf.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3872],{3872:(e,t,l)=>{l.r(t),l.d(t,{ReactComponent:()=>h,default:()=>m});var a,r,i,c,n,o,d,s,f=l(59284);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},u.apply(this,arguments)}function p({title:e,titleId:t,...l},p){return f.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:230,height:230,fill:"none",ref:p,"aria-labelledby":t},l),e?f.createElement("title",{id:t},e):null,a||(a=f.createElement("path",{fill:"#BECFE0",fillOpacity:.9,fillRule:"evenodd",d:"M169.001 51.666c5.523 0 10 4.477 10 10v21.017l18.197-10.506c4.783-2.762 10.899-1.123 13.66 3.66 2.761 4.783 1.123 10.899-3.66 13.66l-18.197 10.507 18.198 10.506c4.783 2.762 6.421 8.878 3.66 13.661-2.762 4.782-8.877 6.421-13.66 3.66l-18.198-10.506v21.008c0 5.523-4.477 10-10 10-5.522 0-10-4.477-10-10v-21.009l-18.199 10.507c-4.782 2.761-10.898 1.122-13.66-3.66-2.761-4.783-1.122-10.899 3.66-13.661l18.199-10.506-18.198-10.507c-4.783-2.761-6.421-8.877-3.66-13.66 2.762-4.783 8.877-6.422 13.66-3.66l18.198 10.507V61.666c0-5.523 4.478-10 10-10Z",clipRule:"evenodd"})),r||(r=f.createElement("path",{fill:"#262626",fillRule:"evenodd",d:"M171.523 95.922a11.003 11.003 0 0 1 1.099 8.347l-13.208 49.291c-1.572 5.868-7.604 9.351-13.472 7.778l-25.356-6.794a44.998 44.998 0 0 1-.53 1.929l25.368 6.797c6.935 1.858 14.064-2.257 15.922-9.192l13.207-49.291c.893-3.33.426-6.879-1.298-9.865L155.598 64.34a12.999 12.999 0 0 0-7.894-6.057l-29.972-8.031c-6.935-1.858-14.063 2.257-15.922 9.192l-11.328 42.277c.64.192 1.276.398 1.905.618l11.355-42.377c1.573-5.868 7.604-9.35 13.472-7.778l29.973 8.03a11 11 0 0 1 6.679 5.126l17.657 30.582Z",clipRule:"evenodd"})),i||(i=f.createElement("path",{fill:"#FF5958",fillOpacity:.9,d:"M35.388 155.273c-6.29-23.472 7.64-47.599 31.113-53.889 23.472-6.289 47.599 7.641 53.889 31.113 6.289 23.473-7.641 47.599-31.113 53.889-23.473 6.289-47.6-7.64-53.889-31.113Z"})),c||(c=f.createElement("path",{stroke:"#262626",strokeWidth:2,d:"M60.636 117.734c53.586-33.459-26.868-81.505-36.557-61.318-11.802 24.59 99.395 51.098 128.865-26.3"})),f.createElement("mask",{id:"b",width:89,height:89,x:33,y:99,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},n||(n=f.createElement("path",{fill:"#FF5958",fillOpacity:.9,d:"M35.388 155.273c-6.29-23.472 7.64-47.599 31.113-53.889 23.472-6.289 47.599 7.641 53.889 31.113 6.289 23.473-7.641 47.599-31.113 53.889-23.473 6.289-47.6-7.64-53.889-31.113Z"}))),o||(o=f.createElement("g",{filter:"url(#a)",mask:"url(#b)"},f.createElement("path",{stroke:"#262626",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.6,strokeWidth:2,d:"M172.389 95.422a12.004 12.004 0 0 1 1.199 9.106l-13.208 49.291c-1.715 6.401-8.295 10.2-14.697 8.485L91.591 147.81c-6.401-1.715-10.2-8.295-8.485-14.697l19.67-73.41c1.716-6.402 8.296-10.2 14.697-8.485l29.972 8.03a11.998 11.998 0 0 1 7.287 5.592l17.657 30.582Z"}))),d||(d=f.createElement("g",{filter:"url(#c)"},f.createElement("path",{fill:"#fff",fillOpacity:.72,fillRule:"evenodd",d:"M80.866 130.432a6.359 6.359 0 1 1-12.284 3.29 6.359 6.359 0 0 1 12.284-3.29Zm4.817-1.291c1.621 6.052-1.97 12.273-8.022 13.894-6.052 1.622-12.273-1.97-13.895-8.022-1.621-6.052 1.97-12.272 8.022-13.894 6.052-1.622 12.273 1.97 13.895 8.022Zm-21.346 32.565c-.154-.577-.009-2.61 2.877-5.555 2.665-2.721 6.917-5.33 12.158-6.734 5.24-1.404 10.227-1.271 13.896-.247 3.971 1.108 5.114 2.796 5.268 3.372a3.116 3.116 0 0 1-2.204 3.817l-28.178 7.55a3.116 3.116 0 0 1-3.817-2.203ZM78.081 144.6c-12.054 3.23-20.238 12.134-18.56 18.396a8.103 8.103 0 0 0 9.924 5.73l28.178-7.55a8.104 8.104 0 0 0 5.73-9.925c-1.678-6.261-13.218-9.881-25.272-6.651Z",clipRule:"evenodd"}))),s||(s=f.createElement("defs",null,f.createElement("filter",{id:"a",width:113.303,height:133.91,x:71.693,y:39.806,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},f.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),f.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),f.createElement("feGaussianBlur",{result:"effect1_foregroundBlur_1301_31085",stdDeviation:5})),f.createElement("filter",{id:"c",width:73.289,height:73.288,x:41.018,y:106.391,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},f.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),f.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),f.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),f.createElement("feOffset",null),f.createElement("feGaussianBlur",{stdDeviation:1.917}),f.createElement("feComposite",{in2:"hardAlpha",k2:-1,k3:1,operator:"arithmetic"}),f.createElement("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"}),f.createElement("feBlend",{in2:"shape",result:"effect1_innerShadow_1301_31085"})))))}const h=f.forwardRef(p),m=l.p+"static/media/error.9bbd075178a739dcc30f2a7a3e2a3249.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3940.273724e5.chunk.js b/ydb/core/viewer/monitoring/static/js/3940.273724e5.chunk.js deleted file mode 100644 index 9d2fb71f544..00000000000 --- a/ydb/core/viewer/monitoring/static/js/3940.273724e5.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3940],{8873:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.501 6.501 0 0 1 6.445 5.649.75.75 0 1 1-1.488.194A5.001 5.001 0 0 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 1 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5Zm5.25 13a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-.75-.75h-3a.75.75 0 1 0 0 1.5h1.32a5.001 5.001 0 0 1-8.528-2.843.75.75 0 1 0-1.487.194 6.501 6.501 0 0 0 10.945 3.84v1.059c0 .414.336.75.75.75Z",clipRule:"evenodd"}))},25569:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.488 3.43a.75.75 0 0 1 .081 1.058l-6 7a.75.75 0 0 1-1.1.042l-3.5-3.5A.75.75 0 0 1 4.03 6.97l2.928 2.927 5.473-6.385a.75.75 0 0 1 1.057-.081Z",clipRule:"evenodd"}))},69024:(e,t,n)=>{n.d(t,{a:()=>s,j:()=>i});var o=n(59284);function i(e,t){return e.map((e=>{var n;let o;e.sub&&(o=i(e.sub,t));const s=null!==(n=t[e.name])&&void 0!==n?n:e.width;return Object.assign(Object.assign({},e),{width:s,sub:o})}))}function s({saveSizes:e,getSizes:t}){const[n,i]=o.useState((()=>t()));return[n,o.useCallback(((t,n)=>{i((o=>{const i=Object.assign(Object.assign({},o),{[t]:n});return e(i),i}))}),[e])]}},24555:(e,t,n)=>{n.d(t,{l:()=>te});var o=n(59284),i=n(359),s=n(85736),r=n(32084),l=n(27145),a=n(92609);var c=n(90826),u=n(51301),d=n(63246),h=n(34379),p=n(46819),v=n(28664),m=n(69220),f=n(56353),b=n(89226);const g=(0,m.om)("select-filter"),C={padding:"4px 4px 0"},E=o.forwardRef(((e,t)=>{const{onChange:n,onKeyDown:i,renderFilter:s,size:r,value:l,placeholder:a,popupId:c,activeIndex:u}=e,d=o.useRef(null);o.useImperativeHandle(t,(()=>({focus:()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.focus({preventScroll:!0})}})),[]);const h={value:l,placeholder:a,size:1,onKeyDown:i,onChange:e=>{n(e.target.value)},"aria-label":(0,b.A)("label_filter"),"aria-controls":c,"aria-activedescendant":void 0===u?void 0:`${c}-item-${u}`};return s?s({onChange:n,onKeyDown:i,value:l,ref:d,style:C,inputProps:h}):o.createElement("div",{className:g(),style:C},o.createElement(v.k,{controlRef:d,controlProps:{className:g("input"),size:1,"aria-label":h["aria-label"],"aria-controls":h["aria-controls"],"aria-activedescendant":h["aria-activedescendant"]},size:r,value:l,placeholder:a,onUpdate:n,onKeyDown:i,qa:f.pn.FILTER_INPUT}))}));E.displayName="SelectFilter";var w=n(40091);const S=e=>Boolean(e&&"label"in e),T=e=>{const{getOptionHeight:t,getOptionGroupHeight:n,size:o,option:i,index:s,mobile:r}=e;let l=r?f.t5:f.KK[o];if(S(i)){const e=0===s?0:f.Vm;return l=""===i.label?0:l,n?n(i,s):l+e}return t?t(i,s):l},y=e=>"string"===typeof e.content?e.content:"string"===typeof e.children?e.children:e.text?e.text:e.value,O=e=>(e=>o.Children.toArray(e))(e).reduce(((e,{props:t})=>{if("label"in t){const n=t.options||(e=>o.Children.toArray(e).reduce(((e,{props:t})=>("value"in t&&e.push(t),e)),[]))(t.children);e.push({options:n,label:t.label})}return"value"in t&&e.push(Object.assign({},t)),e}),[]),R=(e,t)=>t?t.findIndex((t=>{if(S(t))return!1;if(t.disabled)return!1;const n=y(t);return(o=e,new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"i")).test(n);var o})):-1,A=e=>{var t;return(null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getItems())||[]},x=e=>{const{options:t,filter:n,filterOption:o}=e,i=t.filter((e=>!!S(e)||(o?o(e,n):((e,t)=>{const n=y(e).toLocaleLowerCase(),o=t.toLocaleLowerCase();return-1!==n.indexOf(o)})(e,n))));return i.reduce(((e,t,n)=>{const o=S(t),s=S(e[e.length-1]),r=n===i.length-1;return o&&s&&e.pop(),(!o||o&&!r)&&e.push(t),e}),[])};function N(e){const t=e.offsetParent;if(t instanceof HTMLElement){const n=t.offsetHeight,o=t.scrollTop,i=e.offsetTop;i+e.offsetHeight>=o+n?t.scrollTo({top:i-n+e.offsetHeight}):i<=o&&t.scrollTo({top:i})}return!0}const H=(0,m.om)("select-list"),k=({option:e,renderOptionGroup:t})=>t?o.createElement("div",{className:H("group-label-custom")},t(e)):o.createElement("div",{className:H("group-label",{empty:""===e.label})},o.createElement("div",{className:H("group-label-content")},e.label));var z=n(25569),I=n(99991);const P=(0,m.om)("select-list"),L=({option:e})=>{const{content:t,children:n,disabled:i}=e;return o.createElement("span",{className:P("option-default-label",{disabled:i})},t||n)},M=e=>{const{renderOption:t,value:n,option:i,multiple:s}=e,r=-1!==n.indexOf(i.value),l=t?t(i):o.createElement(L,{option:i});return o.createElement("div",{"data-qa":i.qa,className:P("option",{colored:r&&!s,disabled:i.disabled})},s&&o.createElement(I.I,{className:P("tick-icon",{shown:r&&s}),data:z.A}),l)};var B=n(29322),D=n(74417);const W=e=>{const t=o.useRef(null);return(0,B.v)({element:t.current,onIntersect:null===e||void 0===e?void 0:e.onIntersect}),o.createElement("div",{ref:t,className:(0,f.C1)("loading-indicator")},o.createElement(D.a,null))},F={value:"__SELECT_LIST_ITEM_LOADING__",disabled:!0},j=o.forwardRef(((e,t)=>{const{onOptionClick:n,renderOption:i,renderOptionGroup:s,getOptionHeight:r,getOptionGroupHeight:l,size:a,flattenOptions:c,value:u,multiple:d,virtualized:h,mobile:p,loading:v,onLoadMore:m,id:b,activeIndex:g,onChangeActive:C}=e,E=o.useMemo((()=>v?[...c,F]:c),[c,v]),S=o.useMemo((()=>c.reduce(((e,t,n)=>("value"in t&&u.includes(t.value)&&e.push(n),e)),[])),[c,u]),y=(e=>{const{getOptionHeight:t,getOptionGroupHeight:n,size:o,options:i,mobile:s}=e;return i.reduce(((e,i,r)=>e+T({getOptionHeight:t,getOptionGroupHeight:n,size:o,option:i,index:r,mobile:s})),0)})({options:E,getOptionHeight:r,getOptionGroupHeight:l,size:a,mobile:p}),O=o.useCallback(((e,t)=>T({getOptionHeight:r,getOptionGroupHeight:l,size:a,option:e,index:t,mobile:p})),[r,l,p,a]),R=o.useCallback(((e,t,n)=>{if("label"in e){const t=s?e=>s(e,{itemHeight:O(e,n)}):void 0;return o.createElement(k,{option:e,renderOptionGroup:t})}if(e.value===F.value)return o.createElement(W,{onIntersect:0===n?void 0:m});const r=i?e=>i(e,{itemHeight:O(e,n)}):void 0;return o.createElement(M,{option:e,value:u,multiple:d,renderOption:r})}),[i,s,u,d,O,m]);return o.createElement(w.B,{ref:t,className:(0,f.C1)({size:a,virtualized:h,mobile:p}),qa:f.pn.LIST,itemClassName:(0,f.C1)("item"),itemHeight:O,itemsHeight:h?y:void 0,items:E,filterable:!1,virtualized:h,renderItem:R,onItemClick:n,selectedItemIndex:S,id:b,role:"listbox",activeItemIndex:g,onChangeActive:C,deactivateOnLeave:!1,onScrollToItem:N})}));j.displayName="SelectList";const Y=(0,m.om)("select-empty-placeholder"),_=({renderEmptyOptions:e,filter:t})=>o.createElement("div",{className:Y({empty:!e})},null===e||void 0===e?void 0:e({filter:t}));var $=n(19884),V=n(93628),q=n(794);function G(e){const{name:t,value:n,disabled:i,form:s,onReset:r}=e,l=(0,q.d)({onReset:r,initialValue:n});return!t||i?null:0===n.length?o.createElement("input",{ref:l,type:"hidden",name:t,value:n,form:s,disabled:i}):o.createElement(o.Fragment,null,n.map(((e,n)=>o.createElement("input",{key:e,ref:0===n?l:void 0,value:e,type:"hidden",name:t,form:s,disabled:i}))))}const K=e=>{const{onChange:t,open:n,disabled:s}=e,[r,l]=o.useState(""),[a,c]=o.useState(),u=o.useCallback((e=>{if(clearTimeout(a),e){const e=window.setTimeout((()=>l("")),f.FY);c(e)}}),[a]),d=o.useCallback((e=>{e.stopPropagation();const t=((e,t)=>{const n=1===e.length;let o="";return e===i.D.BACKSPACE&&t.length?o=t.slice(0,t.length-1):n&&(o=(t+e).trim()),o})(e.key,r);r!==t&&(u(t),l(t))}),[u,r]);o.useEffect((()=>(n&&!s?document.addEventListener("keydown",d):n||s||l(""),()=>{n&&!s&&document.removeEventListener("keydown",d)})),[d,n,s]),o.useEffect((()=>(n||clearTimeout(a),()=>clearTimeout(a))),[n,a]),o.useEffect((()=>{t(r)}),[t,r])};function U(e,t){let n=-1;return t.length>0&&(n=e.findIndex((e=>"value"in e&&t.includes(e.value)&&!e.disabled))),-1===n&&(n=e.findIndex((e=>"value"in e&&!e.disabled))),-1===n?void 0:n}var J=n(87924),Z=n.n(J);function X(e){return Z()(e,[f.zJ])}function Q(e){const{filter:t="",filterable:n,filterOption:i}=e,s=o.useMemo((()=>X(e.options)?e.options:(e=>{const t=e.reduce(((e,t)=>("label"in t?(e.push({label:t.label,disabled:!0}),e.push(...t.options||[])):e.push(t),e)),[]);return Object.defineProperty(t,f.zJ,{enumerable:!1,value:{}}),t})(e.options)),[e.options]),r=o.useMemo((()=>n?x({options:s,filter:t,filterOption:i}):s),[t,n,i,s]);return s[f.zJ].filteredOptions=r,s}const ee=({renderFilter:e,renderList:t})=>o.createElement(o.Fragment,null,e(),t()),te=o.forwardRef((function(e,t){const{onUpdate:n,onOpenChange:v,onFilterChange:m,renderControl:b,renderFilter:g,renderOption:C,renderOptionGroup:w,renderSelectedOption:T,renderEmptyOptions:x,renderPopup:N=ee,getOptionHeight:H,getOptionGroupHeight:k,filterOption:z,name:I,form:P,className:L,controlClassName:M,popupClassName:B,qa:D,value:W,defaultValue:F,defaultOpen:Y,open:q,label:J,placeholder:te,filterPlaceholder:ne,width:oe,popupWidth:ie,popupPlacement:se,error:re,virtualizationThreshold:le=f.Us,view:ae="normal",size:ce="m",pin:ue="round-round",multiple:de=!1,disabled:he=!1,filterable:pe=!1,filter:ve,disablePortal:me,hasClear:fe=!1,onClose:be,id:ge,hasCounter:Ce,renderCounter:Ee,title:we}=e,Se=(0,p.I)(),[Te,ye]=(0,s.P)(ve,"",m),Oe=o.useRef(null),Re=o.useRef(null),Ae=o.useRef(null),xe=o.useRef(null),Ne=(0,r.N)(t,Re),{value:He,open:ke,toggleOpen:ze,setValue:Ie,handleSelection:Pe,handleClearValue:Le}=(({defaultOpen:e,onClose:t,onOpenChange:n,open:i,value:r,defaultValue:c=[],multiple:u,onUpdate:d,disabled:h})=>{const[p,v]=(0,s.P)(r,c,d),[m,f]=o.useState(),b=(0,a.F)({defaultOpen:e,onClose:t,onOpenChange:n,open:i}),{toggleOpen:g}=b,C=(0,l.Tt)(b,["toggleOpen"]),E=o.useCallback((e=>{h||v(e)}),[v,h]),w=o.useCallback((e=>{if(!p.includes(e.value)){const t=[e.value];E(t)}g(!1)}),[p,E,g]),S=o.useCallback((e=>{const t=p.includes(e.value)?p.filter((t=>t!==e.value)):[...p,e.value];E(t)}),[p,E]),T=o.useCallback((e=>{u?S(e):w(e)}),[u,w,S]),y=o.useCallback((()=>{E([])}),[E]);return Object.assign({value:p,activeIndex:m,setValue:E,handleSelection:T,handleClearValue:y,toggleOpen:g,setActiveIndex:f},C)})({onUpdate:n,value:W,defaultValue:F,defaultOpen:Y,multiple:de,open:q,onClose:be,onOpenChange:v,disabled:he});o.useEffect((()=>{!ke&&pe&&Se&&setTimeout((()=>{ye("")}),300)}),[ke,pe,ye,Se]);const Me=Q({options:e.options||O(e.children),filter:Te,filterable:pe,filterOption:z}),Be=function(e){if(!X(e))throw Error("You should use options generated by useSelectOptions hook");return Z()(e,[f.zJ,"filteredOptions"])}(Me),De=((e,t,n)=>{if(0===t.length)return null;const i=e.filter((e=>!S(e))),s=t.reduce(((e,t)=>{const n=i.find((e=>e.value===t));return e.push(n||{value:t}),e}),[]);return n?s.map(((e,t)=>o.createElement(o.Fragment,{key:e.value},n(e,t)))):s.map((e=>y(e))).join(", ")})(Me,He,T),We=Be.length>=le,{errorMessage:Fe,errorPlacement:je,validationState:Ye}=(0,h.Av)({error:re,errorMessage:e.errorMessage,errorPlacement:e.errorPlacement||"outside",validationState:e.validationState}),_e=(0,c.u)(),$e="invalid"===Ye,Ve=$e&&Boolean(Fe)&&"outside"===je,qe=$e&&Boolean(Fe)&&"inside"===je,Ge=o.useCallback((e=>{var t,n;if(e&&!(null===e||void 0===e?void 0:e.disabled)&&!("label"in e)){if(de){const e=null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t?void 0:t.getActiveItem();null===(n=Ae.current)||void 0===n||n.focus(),"number"===typeof e&&setTimeout((()=>{var t;null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.activateItem(e,!0)}),50)}Pe(e)}}),[Pe,de]),Ke=o.useCallback((e=>{var t;[i.D.ENTER,i.D.SPACEBAR].includes(e.key)&&ke&&(e.preventDefault(),e.key===i.D.SPACEBAR&&Ge((e=>{var t;const n=A(e),o=null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getActiveItem();return"number"===typeof o?n[o]:void 0})(xe))),[i.D.ARROW_DOWN,i.D.ARROW_UP].includes(e.key)&&!ke&&(e.preventDefault(),ze()),null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.onKeyDown(e)}),[Ge,ke,ze]),Ue=o.useCallback((e=>{var t;null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.onKeyDown(e)}),[]),Je=o.useCallback((e=>{var t;if(e){const n=R(e,A(xe));"number"===typeof n&&-1!==n&&(null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.activateItem(n,!0))}}),[]);K({onChange:Je,open:ke,disabled:pe}),o.useEffect((()=>{var e;ke&&pe&&(null===(e=Ae.current)||void 0===e||e.focus())}),[ke,pe]);const Ze=Object.assign({},"max"===oe&&{width:oe}),Xe={};"number"===typeof oe&&(Xe.width=oe);const Qe=o.useCallback((()=>ze(!1)),[ze]),{onFocus:et,onBlur:tt}=e,{focusWithinProps:nt}=(0,u.R)({onFocusWithin:et,onBlurWithin:o.useCallback((e=>{null===tt||void 0===tt||tt(e),Qe()}),[Qe,tt])}),ot=(0,c.u)(),it=null!==ge&&void 0!==ge?ge:ot,st=`select-popup-${it}`,[rt,lt]=function({options:e,value:t,open:n}){const[i,s]=o.useState((()=>{if(n)return U(e,t)})),[r,l]=o.useState(n);return r!==n&&(l(n),n&&s(U(e,t))),[n&&void 0!==i&&i<e.length&&!e[i].disabled?i:void 0,s]}({options:Be,open:ke,value:He});return o.createElement("div",Object.assign({ref:Oe,className:(0,f.gm)(Ze,L)},nt,{style:Xe,tabIndex:-1}),o.createElement($.Y,{toggleOpen:ze,hasClear:fe,clearValue:Le,ref:Ne,className:M,qa:D,view:ae,size:ce,pin:ue,label:J,placeholder:te,selectedOptionsContent:De,isErrorVisible:$e,errorMessage:qe?Fe:void 0,open:ke,disabled:he,onKeyDown:Ke,renderControl:b,value:He,popupId:st,selectId:it,activeIndex:rt,hasCounter:de&&Ce,renderCounter:Ee,title:we}),o.createElement(V.t,{ref:Oe,className:B,controlRef:Re,width:ie,open:ke,handleClose:Qe,disablePortal:me,virtualized:We,mobile:Se,placement:se,onAfterClose:pe?()=>{ye("")}:void 0},N({renderFilter:()=>pe?o.createElement(E,{ref:Ae,size:ce,value:Te,placeholder:ne,onChange:ye,onKeyDown:Ue,renderFilter:g,popupId:st,activeIndex:rt}):null,renderList:()=>Be.length||e.loading?o.createElement(j,{ref:xe,size:ce,value:He,mobile:Se,flattenOptions:Be,multiple:de,virtualized:We,onOptionClick:Ge,renderOption:C,renderOptionGroup:w,getOptionHeight:H,getOptionGroupHeight:k,loading:e.loading,onLoadMore:e.onLoadMore,id:st,activeIndex:rt,onChangeActive:lt}):o.createElement(_,{filter:Te,renderEmptyOptions:x})})),o.createElement(d.o,{errorMessage:Ve?Fe:null,errorMessageId:_e}),o.createElement(G,{name:I,value:He,disabled:he,form:P,onReset:Ie}))}));te.Option=e=>null,te.OptionGroup=e=>null},19884:(e,t,n)=>{n.d(t,{Y:()=>g});var o=n(59284),i=n(94420),s=n(13066),r=n(905),l=n.n(r),a=n(90826),c=n(99991),u=n(84375),d=n(56353),h=n(89226),p=n(81240);const v=e=>{const{size:t,onClick:n,onMouseEnter:i,onMouseLeave:s,renderIcon:r}=e,l=r?r():o.createElement(c.I,{className:(0,d.Di)("clear"),data:p.A});return o.createElement("button",{className:(0,d.Di)({size:t}),"aria-label":(0,h.A)("label_clear"),onClick:n,onMouseEnter:i,onMouseLeave:s,"data-qa":d.pn.CLEAR,type:"button"},l)};v.displayName="SelectClear";var m=n(98089);const f=(0,n(69220).om)("select-counter");function b({count:e,size:t,disabled:n}){return o.createElement("div",{className:f({size:t})},o.createElement(m.E,{variant:"xl"===t?"body-2":"body-1",color:n?"hint":"primary",className:f("text")},e))}const g=o.forwardRef(((e,t)=>{const{toggleOpen:n,clearValue:r,onKeyDown:p,renderControl:m,view:f,size:g,pin:C,selectedOptionsContent:E,className:w,qa:S,label:T,placeholder:y,isErrorVisible:O,errorMessage:R,open:A,disabled:x,value:N,hasClear:H,popupId:k,selectId:z,activeIndex:I,renderCounter:P,hasCounter:L,title:M}=e,B=Boolean(E),D=Boolean(y&&!B),W=Array.isArray(N)&&!l()(N.filter(Boolean)),F=(0,a.u)(),[j,Y]=o.useState(!1),_={open:A,size:g,pin:C,disabled:x,error:O,"has-clear":H,"no-active":j,"has-value":W},$={open:A,size:g,view:f,pin:C,disabled:x,error:O},V=o.useCallback((e=>{e&&e.currentTarget!==document.activeElement&&"focus"in e.currentTarget&&e.currentTarget.focus(),n()}),[n]),q=o.useCallback((()=>{Y(!0)}),[]),G=o.useCallback((()=>{Y(!1)}),[]),K=o.useCallback((()=>{Y(!1),r()}),[r]),U=()=>{if(!L)return null;const e=N.length,t=o.createElement(b,{count:e,size:g,disabled:x});return P?P(t,{count:e,size:g,disabled:x}):t},J=e=>{const t=0===N.length;return!H||t||x?null:o.createElement(v,{size:g,onClick:K,onMouseEnter:q,onMouseLeave:G,renderIcon:e.renderIcon})},Z={id:z,role:"combobox","aria-controls":A?k:void 0,"aria-haspopup":"listbox","aria-expanded":A,"aria-activedescendant":void 0===I?void 0:`${k}-item-${I}`,onClick:V,onKeyDown:p,disabled:x};return m?m({onKeyDown:p,onClear:r,onClick:V,renderClear:J,renderCounter:U,ref:t,open:A,popupId:k,selectId:z,activeIndex:I,disabled:x,triggerProps:Z},{value:N}):o.createElement(o.Fragment,null,o.createElement("div",{className:(0,d.ji)(_),role:"group"},o.createElement("button",Object.assign({ref:t,className:(0,d.Zz)($,w),type:"button","data-qa":S,title:M,tabIndex:0},Z),T&&o.createElement("span",{className:(0,d.ji)("label")},T),D&&o.createElement("span",{className:(0,d.ji)("placeholder")},y),B&&o.createElement("span",{className:(0,d.ji)("option-text")},E)),U(),J({}),R&&o.createElement(u.A,{content:R,tooltipId:F},o.createElement("button",{"aria-label":(0,h.A)("label_show-error-info"),"aria-describedby":F,className:(0,d.ji)("error-icon")},o.createElement(c.I,{data:i.A,size:"s"===g?12:16}))),o.createElement(c.I,{className:(0,d.ji)("chevron-icon",{disabled:x}),data:s.A,"aria-hidden":"true"})))}));g.displayName="SelectControl"},93628:(e,t,n)=>{n.d(t,{t:()=>p});var o=n(59284),i=n(39238),s=n(12640),r=n(69220),l=n(56353);const a=e=>e-2*l.gP,c=(e,t,n)=>{let o=t;return o="number"===typeof e?e:"fit"===e?a(t):((e,t)=>t?e>l.Eq?e:l.Eq:a(e))(t,n),`${o}px`},u=e=>{const{width:t,disablePortal:n,virtualized:o}=e;return[{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e,name:n})=>{var i;if(null===(i=e.modifiersData[`${n}#persistent`])||void 0===i?void 0:i.skip)return;const s=c(t,e.rects.reference.width,o);"number"!==typeof t&&"fit"!==t?(e.styles.popper.minWidth=s,e.styles.popper.width=void 0):(e.styles.popper.minWidth=s,e.styles.popper.width=s),e.styles.popper.maxWidth=`max(90vw, ${a(e.rects.reference.width)}px)`,e.modifiersData[`${n}#persistent`]={skip:"number"!==typeof t}},effect:({state:e,name:n})=>{var i;if(null===(i=e.modifiersData[`${n}#persistent`])||void 0===i?void 0:i.skip)return;const s=c(t,e.elements.reference.offsetWidth,o);"number"!==typeof t&&"fit"!==t?e.elements.popper.style.minWidth=s:(e.elements.popper.style.minWidth=s,e.elements.popper.style.width=s),e.elements.popper.style.maxWidth=`max(90vw, ${e.elements.reference.offsetWidth}px)`}},{name:"preventOverflow",options:{padding:10,altBoundary:n,altAxis:!0}}]},d=(0,r.om)("select-popup"),h=["bottom-start","bottom-end","top-start","top-end"],p=o.forwardRef((({handleClose:e,onAfterClose:t,width:n,open:r,placement:a=h,controlRef:c,children:p,className:v,disablePortal:m,virtualized:f,mobile:b,id:g},C)=>b?o.createElement(s.c,{qa:l.pn.SHEET,className:v,visible:Boolean(r),onClose:e},p):o.createElement(i.z,{contentClassName:d(null,v),qa:l.pn.POPUP,anchorRef:C,placement:a,offset:[l.gP,l.gP],open:r,onClose:e,disablePortal:m,restoreFocus:!0,restoreFocusRef:c,modifiers:u({width:n,disablePortal:m,virtualized:f}),id:g,onTransitionExited:t},p)));p.displayName="SelectPopup"},56353:(e,t,n)=>{n.d(t,{C1:()=>l,Di:()=>a,Eq:()=>p,FY:()=>v,KK:()=>c,Us:()=>m,Vm:()=>d,Zz:()=>r,gP:()=>h,gm:()=>i,ji:()=>s,pn:()=>f,t5:()=>u,zJ:()=>b});var o=n(69220);const i=(0,o.om)("select"),s=(0,o.om)("select-control"),r=(0,o.om)("select-control__button"),l=(0,o.om)("select-list"),a=(0,o.om)("select-clear"),c={s:28,m:28,l:32,xl:36},u=32,d=5,h=1,p=100,v=2e3,m=50,f={LIST:"select-list",POPUP:"select-popup",SHEET:"select-sheet",CLEAR:"select-clear",FILTER_INPUT:"select-filter-input"},b=Symbol("flatten")},89226:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(72837);const i=JSON.parse('{"label_clear":"Clear","label_show-error-info":"Show popup with error info","label_filter":"Filter"}'),s=JSON.parse('{"label_clear":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c","label_show-error-info":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u043f\u0430\u043f \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0435\u0439 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435","label_filter":"\u0424\u0438\u043b\u044c\u0442\u0440"}'),r=(0,o.N)({en:i,ru:s},"Select")},12640:(e,t,n)=>{n.d(t,{c:()=>m});var o=n(59284),i=n(14794),s=n(98392),r=n(27145),l=n(67459);var a=n(11507);const c=(0,n(69220).om)("sheet");class u{constructor(e,t){this.x=e,this.y=t,this.timeStamp=Date.now()}}class d{constructor(e=5){this.points=[],this.pointsLen=e,this.clear()}clear(){this.points=new Array(this.pointsLen)}addMovement({x:e,y:t}){this.points.pop(),this.points.unshift(new u(e,t))}getYAcceleration(e=1){const t=this.points[0],n=this.points[e];return t&&n?(t.y-n.y)/Math.pow(t.timeStamp-n.timeStamp,2):0}}let h=[];class p extends o.Component{constructor(){super(...arguments),this.veilRef=o.createRef(),this.sheetRef=o.createRef(),this.sheetTopRef=o.createRef(),this.sheetContentBoxRef=o.createRef(),this.sheetScrollContainerRef=o.createRef(),this.velocityTracker=new d,this.observer=null,this.resizeWindowTimer=null,this.state={startScrollTop:0,startY:0,deltaY:0,prevSheetHeight:0,swipeAreaTouched:!1,contentTouched:!1,veilTouched:!1,isAnimating:!1,inWindowResizeScope:!1},this.setStyles=({status:e,deltaHeight:t=0})=>{if(!this.sheetRef.current||!this.veilRef.current)return;const n=this.sheetHeight-t,o="showing"===e?`translate3d(0, -${n}px, 0)`:"translate3d(0, 0, 0)";let i=0;"showing"===e&&(i=0===t?1:n/this.sheetHeight),this.veilRef.current.style.opacity=String(i),this.sheetRef.current.style.transform=o},this.getAvailableContentHeight=e=>{const t=.9*window.innerHeight-this.sheetTopHeight;return e>=t?t:e},this.show=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"showing"}),this.setHash()}))},this.hide=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"hiding"}),this.removeHash()}))},this.onSwipeAreaTouchStart=e=>{this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,swipeAreaTouched:!0})},this.onContentTouchStart=e=>{this.props.allowHideOnContentScroll&&!this.state.swipeAreaTouched&&(this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,startScrollTop:this.sheetScrollTop,contentTouched:!0}))},this.onSwipeAriaTouchMove=e=>{const t=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),this.setState({deltaY:t}),t<=0||this.setStyles({status:"showing",deltaHeight:t})},this.onContentTouchMove=e=>{if(!this.props.allowHideOnContentScroll)return;if(!this.state.startY)return void this.onContentTouchStart(e);const{startScrollTop:t,swipeAreaTouched:n}=this.state;if(n||this.sheetScrollTop>0||t>0&&t!==this.sheetScrollTop)return;const o=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),this.setState({deltaY:o}),o<=0||this.setStyles({status:"showing",deltaHeight:o})},this.onTouchEndAction=e=>{const t=this.velocityTracker.getYAcceleration();this.sheetHeight<=e?this.props.hideSheet():e>50&&t<=.08&&t>=-.02||t>.08?this.hide():0!==e&&this.show()},this.onSwipeAriaTouchEnd=()=>{const{deltaY:e}=this.state;this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,swipeAreaTouched:!1})},this.onContentTouchEnd=()=>{const{deltaY:e,swipeAreaTouched:t}=this.state;this.props.allowHideOnContentScroll&&!t&&(this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,contentTouched:!1}))},this.onVeilClick=()=>{this.setState({veilTouched:!0}),this.hide()},this.onVeilTransitionEnd=()=>{this.setState({isAnimating:!1}),"0"===this.veilOpacity&&this.props.hideSheet()},this.onContentTransitionEnd=e=>{"height"===e.propertyName&&this.sheetScrollContainerRef.current&&(this.sheetScrollContainerRef.current.style.transition="none")},this.onResizeWindow=()=>{this.setState({inWindowResizeScope:!0}),this.resizeWindowTimer&&window.clearTimeout(this.resizeWindowTimer),this.resizeWindowTimer=window.setTimeout((()=>{this.onResize()}),25)},this.onResize=()=>{if(!this.sheetRef.current||!this.sheetScrollContainerRef.current)return;const e=this.sheetContentHeight;if(e===this.state.prevSheetHeight&&!this.state.inWindowResizeScope)return;const t=this.getAvailableContentHeight(e);this.sheetScrollContainerRef.current.style.transition=this.state.prevSheetHeight>e?"height 0s ease 0.3s":"none",this.sheetScrollContainerRef.current.style.height=`${t}px`,this.sheetRef.current.style.transform=`translate3d(0, -${t+this.sheetTopHeight}px, 0)`,this.setState({prevSheetHeight:e,inWindowResizeScope:!1})}}componentDidMount(){this.addListeners(),this.show();const e=this.getAvailableContentHeight(this.sheetContentHeight);this.setInitialStyles(e),this.setState({prevSheetHeight:e})}componentDidUpdate(e){const{visible:t,location:n}=this.props;!e.visible&&t&&this.show(),(e.visible&&!t||this.shouldClose(e))&&this.hide(),e.location.pathname!==n.pathname&&(h=[])}componentWillUnmount(){this.removeListeners()}render(){const{content:e,contentClassName:t,swipeAreaClassName:n,hideTopBar:i,title:s}=this.props,{deltaY:r,swipeAreaTouched:l,contentTouched:a,veilTouched:u,isAnimating:d,inWindowResizeScope:h}=this.state,p={"with-transition":!r||u},v={"with-transition":!h&&p["with-transition"]},m={"without-scroll":r>0&&a||l};return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.veilRef,className:c("veil",p),onClick:d?void 0:this.onVeilClick,onTransitionEnd:this.onVeilTransitionEnd,role:"presentation"}),o.createElement("div",{ref:this.sheetRef,className:c("sheet",v),role:"dialog","aria-modal":"true","aria-label":s},!i&&o.createElement("div",{ref:this.sheetTopRef,className:c("sheet-top")},o.createElement("div",{className:c("sheet-top-resizer")})),o.createElement("div",{className:c("sheet-swipe-area",n),onTouchStart:this.onSwipeAreaTouchStart,onTouchMove:this.onSwipeAriaTouchMove,onTouchEnd:this.onSwipeAriaTouchEnd}),o.createElement("div",{ref:this.sheetScrollContainerRef,className:c("sheet-scroll-container",m),onTouchStart:this.onContentTouchStart,onTouchMove:this.onContentTouchMove,onTouchEnd:this.onContentTouchEnd,onTransitionEnd:this.onContentTransitionEnd},o.createElement("div",{ref:this.sheetContentBoxRef,className:c("sheet-content-box")},o.createElement("div",{className:c("sheet-content-box-border-compensation")},o.createElement("div",{className:c("sheet-content",t)},s&&o.createElement("div",{className:c("sheet-content-title")},s),o.createElement("div",null,e)))))))}get veilOpacity(){var e;return(null===(e=this.veilRef.current)||void 0===e?void 0:e.style.opacity)||0}get sheetTopHeight(){var e;return(null===(e=this.sheetTopRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}get sheetHeight(){var e;return(null===(e=this.sheetRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}get sheetScrollTop(){var e;return(null===(e=this.sheetScrollContainerRef.current)||void 0===e?void 0:e.scrollTop)||0}get sheetContentHeight(){var e;return(null===(e=this.sheetContentBoxRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}setInitialStyles(e){this.sheetScrollContainerRef.current&&this.sheetContentBoxRef.current&&(this.sheetScrollContainerRef.current.style.height=`${e}px`)}addListeners(){window.addEventListener("resize",this.onResizeWindow),this.sheetContentBoxRef.current&&(this.observer=new ResizeObserver((()=>{this.state.inWindowResizeScope||this.onResize()})),this.observer.observe(this.sheetContentBoxRef.current))}removeListeners(){window.removeEventListener("resize",this.onResizeWindow),this.observer&&this.observer.disconnect()}setHash(){const{id:e,platform:t,location:n,history:o}=this.props;if(t===l.O.BROWSER)return;const i=Object.assign(Object.assign({},n),{hash:e});switch(t){case l.O.IOS:n.hash&&h.push(n.hash),o.replace(i);break;case l.O.ANDROID:o.push(i)}}removeHash(){var e;const{id:t,platform:n,location:o,history:i}=this.props;if(n!==l.O.BROWSER&&o.hash===`#${t}`)switch(n){case l.O.IOS:i.replace(Object.assign(Object.assign({},o),{hash:null!==(e=h.pop())&&void 0!==e?e:""}));break;case l.O.ANDROID:i.goBack()}}shouldClose(e){const{id:t,platform:n,location:o,history:i}=this.props;return n!==l.O.BROWSER&&"POP"===i.action&&e.location.hash!==o.hash&&o.hash!==`#${t}`}}p.defaultProps={id:"sheet",allowHideOnContentScroll:!0};const v=function(e){var t;const n=(i=e).displayName||i.name||"Component";var i;return(t=class extends o.Component{render(){return o.createElement(e,Object.assign({},this.props,{mobile:this.context.mobile,platform:this.context.platform,useHistory:this.context.useHistory,useLocation:this.context.useLocation}))}}).displayName=`withMobile(${n})`,t.contextType=a.G,t}(function(e){const t=t=>{const{useHistory:n,useLocation:i}=t,s=(0,r.Tt)(t,["useHistory","useLocation"]);return o.createElement(e,Object.assign({},s,{history:n(),location:i()}))},n=e.displayName||e.name||"Component";return t.displayName=`withRouterWrapper(${n})`,t}(p)),m=({children:e,onClose:t,visible:n,id:r,title:l,className:a,contentClassName:u,swipeAreaClassName:d,allowHideOnContentScroll:h,hideTopBar:p,qa:m})=>{const[f,b]=o.useState(n),[g,C]=o.useState(n);(0,i.y)({enabled:f}),!g&&n&&b(!0),n!==g&&C(n);return f?o.createElement(s.Z,null,o.createElement("div",{"data-qa":m,className:c(null,a)},o.createElement(v,{id:r,content:e,contentClassName:u,swipeAreaClassName:d,title:l,visible:n,allowHideOnContentScroll:h,hideTopBar:p,hideSheet:()=>{t&&t(),b(!1)}}))):null}},51301:(e,t,n)=>{n.d(t,{R:()=>s});var o=n(59284);class i{constructor(e,t,n={}){var o,i;this.nativeEvent=t,this.target=null!==(o=n.target)&&void 0!==o?o:t.target,this.currentTarget=null!==(i=n.currentTarget)&&void 0!==i?i:t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}}function s(e){const{onFocusWithin:t,onBlurWithin:n,onFocusWithinChange:s,isDisabled:r}=e,l=o.useRef(!1),a=o.useCallback((e=>{l.current||document.activeElement!==e.target||(l.current=!0,t&&t(e),s&&s(!0))}),[t,s]),c=o.useCallback((e=>{l.current&&(l.current=!1,n&&n(e),s&&s(!1))}),[n,s]),{onBlur:u,onFocus:d}=function({onFocus:e,onBlur:t,isDisabled:n}){const s=o.useRef(!1),r=o.useRef(null);o.useEffect((()=>{if(n)return;const e=function(){s.current=!1},o=function(e){if(!s.current&&r.current){const n=new FocusEvent("blur",Object.assign(Object.assign({},e),{relatedTarget:e.target,bubbles:!1,cancelable:!1}));t(new i("blur",n,{target:r.current,currentTarget:r.current})),r.current=null}};return window.addEventListener("focus",e,{capture:!0}),window.addEventListener("focusin",o),()=>{window.removeEventListener("focus",e,{capture:!0}),window.removeEventListener("focusin",o)}}),[n,t]);const l=o.useCallback((e=>{document.activeElement===e.target||null!==e.relatedTarget&&e.relatedTarget!==document.body&&e.relatedTarget!==document||(t(e),r.current=null)}),[t]),a=function(e){const t=o.useRef({isFocused:!1,observer:null});return o.useEffect((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),o.useCallback((n=>{const o=n.target;if(o instanceof HTMLButtonElement||o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement){t.current.isFocused=!0;const n=n=>{t.current.isFocused=!1,o.disabled&&(null===e||void 0===e||e(new i("blur",n))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",n,{once:!0});const s=new MutationObserver((()=>{if(t.current.isFocused&&o.disabled){s.disconnect(),t.current.observer=null;const e=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),o.dispatchEvent(new FocusEvent("focusout",{relatedTarget:e,bubbles:!0}))}}));s.observe(o,{attributes:!0,attributeFilter:["disabled"]}),t.current.observer=s}}),[e])}(t),c=o.useCallback((t=>{s.current=!0,r.current=t.target,a(t),e(t)}),[a,e]);return{onBlur:l,onFocus:c}}({onFocus:a,onBlur:c,isDisabled:r});return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}},92609:(e,t,n)=>{n.d(t,{F:()=>s});var o=n(59284),i=n(85736);const s=e=>{var t;const{onOpenChange:n,onClose:s}=e,r=o.useCallback((e=>{null===n||void 0===n||n(e),!1===e&&s&&s()}),[n,s]),[l,a]=(0,i.P)(e.open,null!==(t=e.defaultOpen)&&void 0!==t&&t,r),c=o.useCallback((e=>{a("boolean"===typeof e?e:!l)}),[l,a]);return{open:l,toggleOpen:c}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3940.f5079e40.chunk.js b/ydb/core/viewer/monitoring/static/js/3940.f5079e40.chunk.js new file mode 100644 index 00000000000..56b8b6fd75f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/3940.f5079e40.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[3940],{8873:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 0 1 6.445 5.649.75.75 0 1 1-1.488.194A5.001 5.001 0 0 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 1 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5m5.25 13a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-.75-.75h-3a.75.75 0 1 0 0 1.5h1.32a5.001 5.001 0 0 1-8.528-2.843.75.75 0 1 0-1.487.194 6.501 6.501 0 0 0 10.945 3.84v1.059c0 .414.336.75.75.75",clipRule:"evenodd"}))},25569:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.488 3.43a.75.75 0 0 1 .081 1.058l-6 7a.75.75 0 0 1-1.1.042l-3.5-3.5A.75.75 0 0 1 4.03 6.97l2.928 2.927 5.473-6.385a.75.75 0 0 1 1.057-.081",clipRule:"evenodd"}))},69024:(e,t,n)=>{n.d(t,{a:()=>s,j:()=>i});var o=n(59284);function i(e,t){return e.map((e=>{var n;let o;e.sub&&(o=i(e.sub,t));const s=null!==(n=t[e.name])&&void 0!==n?n:e.width;return Object.assign(Object.assign({},e),{width:s,sub:o})}))}function s({saveSizes:e,getSizes:t}){const[n,i]=o.useState((()=>t()));return[n,o.useCallback(((t,n)=>{i((o=>{const i=Object.assign(Object.assign({},o),{[t]:n});return e(i),i}))}),[e])]}},24555:(e,t,n)=>{n.d(t,{l:()=>te});var o=n(59284),i=n(359),s=n(85736),r=n(32084),l=n(27145),a=n(92609);var c=n(90826),u=n(51301),d=n(63246),h=n(34379),p=n(46819),v=n(28664),m=n(69220),f=n(56353),b=n(89226);const g=(0,m.om)("select-filter"),C={padding:"4px 4px 0"},E=o.forwardRef(((e,t)=>{const{onChange:n,onKeyDown:i,renderFilter:s,size:r,value:l,placeholder:a,popupId:c,activeIndex:u}=e,d=o.useRef(null);o.useImperativeHandle(t,(()=>({focus:()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.focus({preventScroll:!0})}})),[]);const h={value:l,placeholder:a,size:1,onKeyDown:i,onChange:e=>{n(e.target.value)},"aria-label":(0,b.A)("label_filter"),"aria-controls":c,"aria-activedescendant":void 0===u?void 0:`${c}-item-${u}`};return s?s({onChange:n,onKeyDown:i,value:l,ref:d,style:C,inputProps:h}):o.createElement("div",{className:g(),style:C},o.createElement(v.k,{controlRef:d,controlProps:{className:g("input"),size:1,"aria-label":h["aria-label"],"aria-controls":h["aria-controls"],"aria-activedescendant":h["aria-activedescendant"]},size:r,value:l,placeholder:a,onUpdate:n,onKeyDown:i,qa:f.pn.FILTER_INPUT}))}));E.displayName="SelectFilter";var w=n(40091);const T=e=>Boolean(e&&"label"in e),S=e=>{const{getOptionHeight:t,getOptionGroupHeight:n,size:o,option:i,index:s,mobile:r}=e;let l=r?f.t5:f.KK[o];if(T(i)){const e=0===s?0:f.Vm;return l=""===i.label?0:l,n?n(i,s):l+e}return t?t(i,s):l},y=e=>"string"===typeof e.content?e.content:"string"===typeof e.children?e.children:e.text?e.text:e.value,O=e=>(e=>o.Children.toArray(e))(e).reduce(((e,{props:t})=>{if("label"in t){const n=t.options||(e=>o.Children.toArray(e).reduce(((e,{props:t})=>("value"in t&&e.push(t),e)),[]))(t.children);e.push({options:n,label:t.label})}return"value"in t&&e.push(Object.assign({},t)),e}),[]),R=(e,t)=>t?t.findIndex((t=>{if(T(t))return!1;if(t.disabled)return!1;const n=y(t);return(o=e,new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"i")).test(n);var o})):-1,A=e=>{var t;return(null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getItems())||[]},x=e=>{const{options:t,filter:n,filterOption:o}=e,i=t.filter((e=>!!T(e)||(o?o(e,n):((e,t)=>{const n=y(e).toLocaleLowerCase(),o=t.toLocaleLowerCase();return-1!==n.indexOf(o)})(e,n))));return i.reduce(((e,t,n)=>{const o=T(t),s=T(e[e.length-1]),r=n===i.length-1;return o&&s&&e.pop(),(!o||o&&!r)&&e.push(t),e}),[])};function N(e){const t=e.offsetParent;if(t instanceof HTMLElement){const n=t.offsetHeight,o=t.scrollTop,i=e.offsetTop;i+e.offsetHeight>=o+n?t.scrollTo({top:i-n+e.offsetHeight}):i<=o&&t.scrollTo({top:i})}return!0}const H=(0,m.om)("select-list"),k=({option:e,renderOptionGroup:t})=>t?o.createElement("div",{className:H("group-label-custom")},t(e)):o.createElement("div",{className:H("group-label",{empty:""===e.label})},o.createElement("div",{className:H("group-label-content")},e.label));var z=n(25569),I=n(99991);const P=(0,m.om)("select-list"),L=({option:e})=>{const{content:t,children:n,disabled:i,title:s}=e;return o.createElement("span",{title:s,className:P("option-default-label",{disabled:i})},t||n)},M=e=>{const{renderOption:t,value:n,option:i,multiple:s}=e,r=-1!==n.indexOf(i.value),l=t?t(i):o.createElement(L,{option:i});return o.createElement("div",{"data-qa":i.qa,className:P("option",{colored:r&&!s,disabled:i.disabled})},s&&o.createElement(I.I,{className:P("tick-icon",{shown:r&&s}),data:z.A}),l)};var B=n(29322),D=n(74417);const F=e=>{const t=o.useRef(null);return(0,B.v)({element:t.current,onIntersect:null===e||void 0===e?void 0:e.onIntersect}),o.createElement("div",{ref:t,className:(0,f.C1)("loading-indicator")},o.createElement(D.a,null))},W={value:"__SELECT_LIST_ITEM_LOADING__",disabled:!0},j=o.forwardRef(((e,t)=>{const{onOptionClick:n,renderOption:i,renderOptionGroup:s,getOptionHeight:r,getOptionGroupHeight:l,size:a,flattenOptions:c,value:u,multiple:d,virtualized:h,mobile:p,loading:v,onLoadMore:m,id:b,activeIndex:g,onChangeActive:C}=e,E=o.useMemo((()=>v?[...c,W]:c),[c,v]),T=o.useMemo((()=>c.reduce(((e,t,n)=>("value"in t&&u.includes(t.value)&&e.push(n),e)),[])),[c,u]),y=(e=>{const{getOptionHeight:t,getOptionGroupHeight:n,size:o,options:i,mobile:s}=e;return i.reduce(((e,i,r)=>e+S({getOptionHeight:t,getOptionGroupHeight:n,size:o,option:i,index:r,mobile:s})),0)})({options:E,getOptionHeight:r,getOptionGroupHeight:l,size:a,mobile:p}),O=o.useCallback(((e,t)=>S({getOptionHeight:r,getOptionGroupHeight:l,size:a,option:e,index:t,mobile:p})),[r,l,p,a]),R=o.useCallback(((e,t,n)=>{if("label"in e){const t=s?e=>s(e,{itemHeight:O(e,n)}):void 0;return o.createElement(k,{option:e,renderOptionGroup:t})}if(e.value===W.value)return o.createElement(F,{onIntersect:0===n?void 0:m});const r=i?e=>i(e,{itemHeight:O(e,n)}):void 0;return o.createElement(M,{option:e,value:u,multiple:d,renderOption:r})}),[i,s,u,d,O,m]);return o.createElement(w.B,{ref:t,className:(0,f.C1)({size:a,virtualized:h,mobile:p}),qa:f.pn.LIST,itemClassName:(0,f.C1)("item"),itemHeight:O,itemsHeight:h?y:void 0,items:E,filterable:!1,virtualized:h,renderItem:R,onItemClick:n,selectedItemIndex:T,id:b,role:"listbox",activeItemIndex:g,onChangeActive:C,deactivateOnLeave:!1,onScrollToItem:N})}));j.displayName="SelectList";const Y=(0,m.om)("select-empty-placeholder"),_=({renderEmptyOptions:e,filter:t})=>o.createElement("div",{className:Y({empty:!e})},null===e||void 0===e?void 0:e({filter:t}));var $=n(19884),V=n(93628),q=n(794);function G(e){const{name:t,value:n,disabled:i,form:s,onReset:r}=e,l=(0,q.d)({onReset:r,initialValue:n});return!t||i?null:0===n.length?o.createElement("input",{ref:l,type:"hidden",name:t,value:n,form:s,disabled:i}):o.createElement(o.Fragment,null,n.map(((e,n)=>o.createElement("input",{key:e,ref:0===n?l:void 0,value:e,type:"hidden",name:t,form:s,disabled:i}))))}const K=e=>{const{onChange:t,open:n,disabled:s}=e,[r,l]=o.useState(""),[a,c]=o.useState(),u=o.useCallback((e=>{if(clearTimeout(a),e){const e=window.setTimeout((()=>l("")),f.FY);c(e)}}),[a]),d=o.useCallback((e=>{e.stopPropagation();const t=((e,t)=>{const n=1===e.length;let o="";return e===i.D.BACKSPACE&&t.length?o=t.slice(0,t.length-1):n&&(o=(t+e).trim()),o})(e.key,r);r!==t&&(u(t),l(t))}),[u,r]);o.useEffect((()=>(n&&!s?document.addEventListener("keydown",d):n||s||l(""),()=>{n&&!s&&document.removeEventListener("keydown",d)})),[d,n,s]),o.useEffect((()=>(n||clearTimeout(a),()=>clearTimeout(a))),[n,a]),o.useEffect((()=>{t(r)}),[t,r])};function U(e,t){let n=-1;return t.length>0&&(n=e.findIndex((e=>"value"in e&&t.includes(e.value)&&!e.disabled))),-1===n&&(n=e.findIndex((e=>"value"in e&&!e.disabled))),-1===n?void 0:n}var J=n(87924),Z=n.n(J);function X(e){return Z()(e,[f.zJ])}function Q(e){const{filter:t="",filterable:n,filterOption:i}=e,s=o.useMemo((()=>X(e.options)?e.options:(e=>{const t=e.reduce(((e,t)=>("label"in t?(e.push({label:t.label,disabled:!0,data:t.data}),e.push(...t.options||[])):e.push(t),e)),[]);return Object.defineProperty(t,f.zJ,{enumerable:!1,value:{}}),t})(e.options)),[e.options]),r=o.useMemo((()=>n?x({options:s,filter:t,filterOption:i}):s),[t,n,i,s]);return s[f.zJ].filteredOptions=r,s}const ee=({renderFilter:e,renderList:t})=>o.createElement(o.Fragment,null,e(),t()),te=o.forwardRef((function(e,t){const{onUpdate:n,onOpenChange:v,onFilterChange:m,renderControl:b,renderFilter:g,renderOption:C,renderOptionGroup:w,renderSelectedOption:S,renderEmptyOptions:x,renderPopup:N=ee,getOptionHeight:H,getOptionGroupHeight:k,filterOption:z,name:I,form:P,className:L,controlClassName:M,popupClassName:B,qa:D,value:F,defaultValue:W,defaultOpen:Y,open:q,label:J,placeholder:te,filterPlaceholder:ne,width:oe,popupWidth:ie,popupPlacement:se,error:re,virtualizationThreshold:le=f.Us,view:ae="normal",size:ce="m",pin:ue="round-round",multiple:de=!1,disabled:he=!1,filterable:pe=!1,filter:ve,disablePortal:me,hasClear:fe=!1,onClose:be,id:ge,hasCounter:Ce,renderCounter:Ee,title:we}=e,Te=(0,p.I)(),[Se,ye]=(0,s.P)(ve,"",m),Oe=o.useRef(null),Re=o.useRef(null),Ae=o.useRef(null),xe=o.useRef(null),Ne=(0,r.N)(t,Re),{value:He,open:ke,toggleOpen:ze,setValue:Ie,handleSelection:Pe,handleClearValue:Le}=(({defaultOpen:e,onClose:t,onOpenChange:n,open:i,value:r,defaultValue:c=[],multiple:u,onUpdate:d,disabled:h})=>{const[p,v]=(0,s.P)(r,c,d),[m,f]=o.useState(),b=(0,a.F)({defaultOpen:e,onClose:t,onOpenChange:n,open:i}),{toggleOpen:g}=b,C=(0,l.Tt)(b,["toggleOpen"]),E=o.useCallback((e=>{h||v(e)}),[v,h]),w=o.useCallback((e=>{if(!p.includes(e.value)){const t=[e.value];E(t)}g(!1)}),[p,E,g]),T=o.useCallback((e=>{const t=p.includes(e.value)?p.filter((t=>t!==e.value)):[...p,e.value];E(t)}),[p,E]),S=o.useCallback((e=>{u?T(e):w(e)}),[u,w,T]),y=o.useCallback((()=>{E([])}),[E]);return Object.assign({value:p,activeIndex:m,setValue:E,handleSelection:S,handleClearValue:y,toggleOpen:g,setActiveIndex:f},C)})({onUpdate:n,value:F,defaultValue:W,defaultOpen:Y,multiple:de,open:q,onClose:be,onOpenChange:v,disabled:he});o.useEffect((()=>{!ke&&pe&&Te&&setTimeout((()=>{ye("")}),300)}),[ke,pe,ye,Te]);const Me=Q({options:e.options||O(e.children),filter:Se,filterable:pe,filterOption:z}),Be=function(e){if(!X(e))throw Error("You should use options generated by useSelectOptions hook");return Z()(e,[f.zJ,"filteredOptions"])}(Me),De=((e,t,n)=>{if(0===t.length)return null;const i=e.filter((e=>!T(e))),s=t.reduce(((e,t)=>{const n=i.find((e=>e.value===t));return e.push(n||{value:t}),e}),[]);return n?s.map(((e,t)=>o.createElement(o.Fragment,{key:e.value},n(e,t)))):s.map((e=>y(e))).join(", ")})(Me,He,S),Fe=Be.length>=le,{errorMessage:We,errorPlacement:je,validationState:Ye}=(0,h.Av)({error:re,errorMessage:e.errorMessage,errorPlacement:e.errorPlacement||"outside",validationState:e.validationState}),_e=(0,c.u)(),$e="invalid"===Ye,Ve=$e&&Boolean(We)&&"outside"===je,qe=$e&&Boolean(We)&&"inside"===je,Ge=o.useCallback((e=>{var t,n;if(e&&!(null===e||void 0===e?void 0:e.disabled)&&!("label"in e)){if(de){const e=null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t?void 0:t.getActiveItem();null===(n=Ae.current)||void 0===n||n.focus(),"number"===typeof e&&setTimeout((()=>{var t;null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.activateItem(e,!0)}),50)}Pe(e)}}),[Pe,de]),Ke=o.useCallback((e=>{var t;[i.D.ENTER,i.D.SPACEBAR].includes(e.key)&&ke&&(e.preventDefault(),e.key===i.D.SPACEBAR&&Ge((e=>{var t;const n=A(e),o=null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getActiveItem();return"number"===typeof o?n[o]:void 0})(xe))),[i.D.ARROW_DOWN,i.D.ARROW_UP].includes(e.key)&&!ke&&(e.preventDefault(),ze()),null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.onKeyDown(e)}),[Ge,ke,ze]),Ue=o.useCallback((e=>{var t;null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.onKeyDown(e)}),[]),Je=o.useCallback((e=>{var t;if(e){const n=R(e,A(xe));"number"===typeof n&&-1!==n&&(null===(t=null===xe||void 0===xe?void 0:xe.current)||void 0===t||t.activateItem(n,!0))}}),[]);K({onChange:Je,open:ke,disabled:pe}),o.useEffect((()=>{var e;ke&&pe&&(null===(e=Ae.current)||void 0===e||e.focus())}),[ke,pe]);const Ze=Object.assign({},"max"===oe&&{width:oe}),Xe={};"number"===typeof oe&&(Xe.width=oe);const Qe=o.useCallback((()=>ze(!1)),[ze]),{onFocus:et,onBlur:tt}=e,{focusWithinProps:nt}=(0,u.R)({onFocusWithin:et,onBlurWithin:o.useCallback((e=>{null===tt||void 0===tt||tt(e),Qe()}),[Qe,tt])}),ot=(0,c.u)(),it=null!==ge&&void 0!==ge?ge:ot,st=`select-popup-${it}`,[rt,lt]=function({options:e,value:t,open:n}){const[i,s]=o.useState((()=>{if(n)return U(e,t)})),[r,l]=o.useState(n);return r!==n&&(l(n),n&&s(U(e,t))),[n&&void 0!==i&&i<e.length&&!e[i].disabled?i:void 0,s]}({options:Be,open:ke,value:He});return o.createElement("div",Object.assign({ref:Oe,className:(0,f.gm)(Ze,L)},nt,{style:Xe,tabIndex:-1}),o.createElement($.Y,{toggleOpen:ze,hasClear:fe,clearValue:Le,ref:Ne,className:M,qa:D,view:ae,size:ce,pin:ue,label:J,placeholder:te,selectedOptionsContent:De,isErrorVisible:$e,errorMessage:qe?We:void 0,open:ke,disabled:he,onKeyDown:Ke,renderControl:b,value:He,popupId:st,selectId:it,activeIndex:rt,hasCounter:de&&Ce,renderCounter:Ee,title:we}),o.createElement(V.t,{ref:Oe,className:B,controlRef:Re,width:ie,open:ke,handleClose:Qe,disablePortal:me,virtualized:Fe,mobile:Te,placement:se,onAfterClose:pe?()=>{ye("")}:void 0},N({renderFilter:()=>pe?o.createElement(E,{ref:Ae,size:ce,value:Se,placeholder:ne,onChange:ye,onKeyDown:Ue,renderFilter:g,popupId:st,activeIndex:rt}):null,renderList:()=>Be.length||e.loading?o.createElement(j,{ref:xe,size:ce,value:He,mobile:Te,flattenOptions:Be,multiple:de,virtualized:Fe,onOptionClick:Ge,renderOption:C,renderOptionGroup:w,getOptionHeight:H,getOptionGroupHeight:k,loading:e.loading,onLoadMore:e.onLoadMore,id:st,activeIndex:rt,onChangeActive:lt}):o.createElement(_,{filter:Se,renderEmptyOptions:x})})),o.createElement(d.o,{errorMessage:Ve?We:null,errorMessageId:_e}),o.createElement(G,{name:I,value:He,disabled:he,form:P,onReset:Ie}))}));te.Option=e=>null,te.OptionGroup=e=>null},19884:(e,t,n)=>{n.d(t,{Y:()=>g});var o=n(59284),i=n(94420),s=n(13066),r=n(905),l=n.n(r),a=n(90826),c=n(99991),u=n(84375),d=n(56353),h=n(89226),p=n(81240);const v=e=>{const{size:t,onClick:n,onMouseEnter:i,onMouseLeave:s,renderIcon:r}=e,l=r?r():o.createElement(c.I,{className:(0,d.Di)("clear"),data:p.A});return o.createElement("button",{className:(0,d.Di)({size:t}),"aria-label":(0,h.A)("label_clear"),onClick:n,onMouseEnter:i,onMouseLeave:s,"data-qa":d.pn.CLEAR,type:"button"},l)};v.displayName="SelectClear";var m=n(98089);const f=(0,n(69220).om)("select-counter");function b({count:e,size:t,disabled:n}){return o.createElement("div",{className:f({size:t})},o.createElement(m.E,{variant:"xl"===t?"body-2":"body-1",color:n?"hint":"primary",className:f("text")},e))}const g=o.forwardRef(((e,t)=>{const{toggleOpen:n,clearValue:r,onKeyDown:p,renderControl:m,view:f,size:g,pin:C,selectedOptionsContent:E,className:w,qa:T,label:S,placeholder:y,isErrorVisible:O,errorMessage:R,open:A,disabled:x,value:N,hasClear:H,popupId:k,selectId:z,activeIndex:I,renderCounter:P,hasCounter:L,title:M}=e,B=Boolean(E),D=Boolean(y&&!B),F=Array.isArray(N)&&!l()(N.filter(Boolean)),W=(0,a.u)(),[j,Y]=o.useState(!1),_={open:A,size:g,pin:C,disabled:x,error:O,"has-clear":H,"no-active":j,"has-value":F},$={open:A,size:g,view:f,pin:C,disabled:x,error:O},V=o.useCallback((e=>{e&&e.currentTarget!==document.activeElement&&"focus"in e.currentTarget&&e.currentTarget.focus(),n()}),[n]),q=o.useCallback((()=>{Y(!0)}),[]),G=o.useCallback((()=>{Y(!1)}),[]),K=o.useCallback((()=>{Y(!1),r()}),[r]),U=()=>{if(!L)return null;const e=N.length,t=o.createElement(b,{count:e,size:g,disabled:x});return P?P(t,{count:e,size:g,disabled:x}):t},J=e=>{const t=0===N.length;return!H||t||x?null:o.createElement(v,{size:g,onClick:K,onMouseEnter:q,onMouseLeave:G,renderIcon:e.renderIcon})},Z={id:z,role:"combobox","aria-controls":A?k:void 0,"aria-haspopup":"listbox","aria-expanded":A,"aria-activedescendant":void 0===I?void 0:`${k}-item-${I}`,onClick:V,onKeyDown:p,disabled:x};return m?m({onKeyDown:p,onClear:r,onClick:V,renderClear:J,renderCounter:U,ref:t,open:A,popupId:k,selectId:z,activeIndex:I,disabled:x,triggerProps:Z},{value:N}):o.createElement(o.Fragment,null,o.createElement("div",{className:(0,d.ji)(_),role:"group"},o.createElement("button",Object.assign({ref:t,className:(0,d.Zz)($,w),type:"button","data-qa":T,title:M,tabIndex:0},Z),S&&o.createElement("span",{className:(0,d.ji)("label")},S),D&&o.createElement("span",{className:(0,d.ji)("placeholder")},y),B&&o.createElement("span",{className:(0,d.ji)("option-text")},E)),U(),J({}),R&&o.createElement(u.A,{content:R,tooltipId:W},o.createElement("button",{"aria-label":(0,h.A)("label_show-error-info"),"aria-describedby":W,className:(0,d.ji)("error-icon")},o.createElement(c.I,{data:i.A,size:"s"===g?12:16}))),o.createElement(c.I,{className:(0,d.ji)("chevron-icon",{disabled:x}),data:s.A,"aria-hidden":"true"})))}));g.displayName="SelectControl"},93628:(e,t,n)=>{n.d(t,{t:()=>p});var o=n(59284),i=n(39238),s=n(12640),r=n(69220),l=n(56353);const a=e=>e-2*l.gP,c=(e,t,n)=>{let o=t;return o="number"===typeof e?e:"fit"===e?a(t):((e,t)=>t?e>l.Eq?e:l.Eq:a(e))(t,n),`${o}px`},u=e=>{const{width:t,disablePortal:n,virtualized:o}=e;return[{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e,name:n})=>{var i;if(null===(i=e.modifiersData[`${n}#persistent`])||void 0===i?void 0:i.skip)return;const s=c(t,e.rects.reference.width,o);"number"!==typeof t&&"fit"!==t?(e.styles.popper.minWidth=s,e.styles.popper.width=void 0):(e.styles.popper.minWidth=s,e.styles.popper.width=s),e.styles.popper.maxWidth=`max(90vw, ${a(e.rects.reference.width)}px)`,e.modifiersData[`${n}#persistent`]={skip:"number"!==typeof t}},effect:({state:e,name:n})=>{var i;if(null===(i=e.modifiersData[`${n}#persistent`])||void 0===i?void 0:i.skip)return;const s=c(t,e.elements.reference.offsetWidth,o);"number"!==typeof t&&"fit"!==t?e.elements.popper.style.minWidth=s:(e.elements.popper.style.minWidth=s,e.elements.popper.style.width=s),e.elements.popper.style.maxWidth=`max(90vw, ${e.elements.reference.offsetWidth}px)`}},{name:"preventOverflow",options:{padding:10,altBoundary:n,altAxis:!0}}]},d=(0,r.om)("select-popup"),h=["bottom-start","bottom-end","top-start","top-end"],p=o.forwardRef((({handleClose:e,onAfterClose:t,width:n,open:r,placement:a=h,controlRef:c,children:p,className:v,disablePortal:m,virtualized:f,mobile:b,id:g},C)=>b?o.createElement(s.c,{qa:l.pn.SHEET,className:v,visible:Boolean(r),onClose:e},p):o.createElement(i.z,{contentClassName:d(null,v),qa:l.pn.POPUP,anchorRef:C,placement:a,offset:[l.gP,l.gP],open:r,onClose:e,disablePortal:m,restoreFocus:!0,restoreFocusRef:c,modifiers:u({width:n,disablePortal:m,virtualized:f}),id:g,onTransitionExited:t},p)));p.displayName="SelectPopup"},56353:(e,t,n)=>{n.d(t,{C1:()=>l,Di:()=>a,Eq:()=>p,FY:()=>v,KK:()=>c,Us:()=>m,Vm:()=>d,Zz:()=>r,gP:()=>h,gm:()=>i,ji:()=>s,pn:()=>f,t5:()=>u,zJ:()=>b});var o=n(69220);const i=(0,o.om)("select"),s=(0,o.om)("select-control"),r=(0,o.om)("select-control__button"),l=(0,o.om)("select-list"),a=(0,o.om)("select-clear"),c={s:28,m:28,l:32,xl:36},u=32,d=5,h=1,p=100,v=2e3,m=50,f={LIST:"select-list",POPUP:"select-popup",SHEET:"select-sheet",CLEAR:"select-clear",FILTER_INPUT:"select-filter-input"},b=Symbol("flatten")},89226:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(72837);const i=JSON.parse('{"label_clear":"Clear","label_show-error-info":"Show popup with error info","label_filter":"Filter"}'),s=JSON.parse('{"label_clear":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c","label_show-error-info":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u043f\u0430\u043f \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0435\u0439 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435","label_filter":"\u0424\u0438\u043b\u044c\u0442\u0440"}'),r=(0,o.N)({en:i,ru:s},"Select")},12640:(e,t,n)=>{n.d(t,{c:()=>m});var o=n(59284),i=n(14794),s=n(98392),r=n(27145),l=n(67459);var a=n(11507);const c=(0,n(69220).om)("sheet");class u{constructor(e,t){this.x=e,this.y=t,this.timeStamp=Date.now()}}class d{constructor(e=5){this.points=[],this.pointsLen=e,this.clear()}clear(){this.points=new Array(this.pointsLen)}addMovement({x:e,y:t}){this.points.pop(),this.points.unshift(new u(e,t))}getYAcceleration(e=1){const t=this.points[0],n=this.points[e];return t&&n?(t.y-n.y)/Math.pow(t.timeStamp-n.timeStamp,2):0}}let h=[];class p extends o.Component{constructor(){super(...arguments),this.veilRef=o.createRef(),this.sheetRef=o.createRef(),this.sheetTopRef=o.createRef(),this.sheetContentBoxRef=o.createRef(),this.sheetScrollContainerRef=o.createRef(),this.velocityTracker=new d,this.observer=null,this.resizeWindowTimer=null,this.state={startScrollTop:0,startY:0,deltaY:0,prevSheetHeight:0,swipeAreaTouched:!1,contentTouched:!1,veilTouched:!1,isAnimating:!1,inWindowResizeScope:!1},this.setStyles=({status:e,deltaHeight:t=0})=>{if(!this.sheetRef.current||!this.veilRef.current)return;const n=this.sheetHeight-t,o="showing"===e?`translate3d(0, -${n}px, 0)`:"translate3d(0, 0, 0)";let i=0;"showing"===e&&(i=0===t?1:n/this.sheetHeight),this.veilRef.current.style.opacity=String(i),this.sheetRef.current.style.transform=o},this.getAvailableContentHeight=e=>{const t=.9*window.innerHeight-this.sheetTopHeight;return e>=t?t:e},this.show=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"showing"}),this.setHash()}))},this.hide=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"hiding"}),this.removeHash()}))},this.onSwipeAreaTouchStart=e=>{this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,swipeAreaTouched:!0})},this.onContentTouchStart=e=>{this.props.allowHideOnContentScroll&&!this.state.swipeAreaTouched&&(this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,startScrollTop:this.sheetScrollTop,contentTouched:!0}))},this.onSwipeAriaTouchMove=e=>{const t=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),this.setState({deltaY:t}),t<=0||this.setStyles({status:"showing",deltaHeight:t})},this.onContentTouchMove=e=>{if(!this.props.allowHideOnContentScroll)return;if(!this.state.startY)return void this.onContentTouchStart(e);const{startScrollTop:t,swipeAreaTouched:n}=this.state;if(n||this.sheetScrollTop>0||t>0&&t!==this.sheetScrollTop)return;const o=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),this.setState({deltaY:o}),o<=0||this.setStyles({status:"showing",deltaHeight:o})},this.onTouchEndAction=e=>{const t=this.velocityTracker.getYAcceleration();this.sheetHeight<=e?this.props.hideSheet():e>50&&t<=.08&&t>=-.02||t>.08?this.hide():0!==e&&this.show()},this.onSwipeAriaTouchEnd=()=>{const{deltaY:e}=this.state;this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,swipeAreaTouched:!1})},this.onContentTouchEnd=()=>{const{deltaY:e,swipeAreaTouched:t}=this.state;this.props.allowHideOnContentScroll&&!t&&(this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,contentTouched:!1}))},this.onVeilClick=()=>{this.setState({veilTouched:!0}),this.hide()},this.onVeilTransitionEnd=()=>{this.setState({isAnimating:!1}),"0"===this.veilOpacity&&this.props.hideSheet()},this.onContentTransitionEnd=e=>{"height"===e.propertyName&&this.sheetScrollContainerRef.current&&(this.sheetScrollContainerRef.current.style.transition="none")},this.onResizeWindow=()=>{this.state.isAnimating||(this.setState({inWindowResizeScope:!0}),this.resizeWindowTimer&&window.clearTimeout(this.resizeWindowTimer),this.resizeWindowTimer=window.setTimeout((()=>{this.onResize()}),50))},this.onResize=()=>{if(!this.sheetRef.current||!this.sheetScrollContainerRef.current)return;const e=this.sheetContentHeight;if(e===this.state.prevSheetHeight&&!this.state.inWindowResizeScope)return;const t=this.getAvailableContentHeight(e);this.sheetScrollContainerRef.current.style.transition=this.state.prevSheetHeight>e?"height 0s ease 0.3s":"none",this.sheetScrollContainerRef.current.style.height=`${t}px`,this.sheetRef.current.style.transform=`translate3d(0, -${t+this.sheetTopHeight}px, 0)`,this.setState({prevSheetHeight:e,inWindowResizeScope:!1})}}componentDidMount(){this.addListeners(),this.show();const e=this.getAvailableContentHeight(this.sheetContentHeight);this.setInitialStyles(e),this.setState({prevSheetHeight:e})}componentDidUpdate(e){const{visible:t,location:n}=this.props;!e.visible&&t&&this.show(),(e.visible&&!t||this.shouldClose(e))&&this.hide(),e.location.pathname!==n.pathname&&(h=[])}componentWillUnmount(){this.removeListeners()}render(){const{content:e,contentClassName:t,swipeAreaClassName:n,hideTopBar:i,title:s}=this.props,{deltaY:r,swipeAreaTouched:l,contentTouched:a,veilTouched:u,isAnimating:d}=this.state,h={"with-transition":!r||u},p={"with-transition":h["with-transition"]},v={"without-scroll":r>0&&a||l};return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.veilRef,className:c("veil",h),onClick:d?void 0:this.onVeilClick,onTransitionEnd:this.onVeilTransitionEnd,role:"presentation"}),o.createElement("div",{ref:this.sheetRef,className:c("sheet",p),role:"dialog","aria-modal":"true","aria-label":s},!i&&o.createElement("div",{ref:this.sheetTopRef,className:c("sheet-top")},o.createElement("div",{className:c("sheet-top-resizer")})),o.createElement("div",{className:c("sheet-swipe-area",n),onTouchStart:this.onSwipeAreaTouchStart,onTouchMove:this.onSwipeAriaTouchMove,onTouchEnd:this.onSwipeAriaTouchEnd}),o.createElement("div",{ref:this.sheetScrollContainerRef,className:c("sheet-scroll-container",v),onTouchStart:this.onContentTouchStart,onTouchMove:this.onContentTouchMove,onTouchEnd:this.onContentTouchEnd,onTransitionEnd:this.onContentTransitionEnd},o.createElement("div",{ref:this.sheetContentBoxRef,className:c("sheet-content-box")},o.createElement("div",{className:c("sheet-content-box-border-compensation")},o.createElement("div",{className:c("sheet-content",t)},s&&o.createElement("div",{className:c("sheet-content-title")},s),o.createElement("div",null,e)))))))}get veilOpacity(){var e;return(null===(e=this.veilRef.current)||void 0===e?void 0:e.style.opacity)||0}get sheetTopHeight(){var e;return(null===(e=this.sheetTopRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}get sheetHeight(){var e;return(null===(e=this.sheetRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}get sheetScrollTop(){var e;return(null===(e=this.sheetScrollContainerRef.current)||void 0===e?void 0:e.scrollTop)||0}get sheetContentHeight(){var e;return(null===(e=this.sheetContentBoxRef.current)||void 0===e?void 0:e.getBoundingClientRect().height)||0}setInitialStyles(e){this.sheetScrollContainerRef.current&&this.sheetContentBoxRef.current&&(this.sheetScrollContainerRef.current.style.height=`${e}px`)}addListeners(){window.addEventListener("resize",this.onResizeWindow),this.sheetContentBoxRef.current&&(this.observer=new ResizeObserver((()=>{this.state.inWindowResizeScope||this.onResize()})),this.observer.observe(this.sheetContentBoxRef.current))}removeListeners(){window.removeEventListener("resize",this.onResizeWindow),this.observer&&this.observer.disconnect()}setHash(){const{id:e,platform:t,location:n,history:o}=this.props;if(t===l.O.BROWSER)return;const i=Object.assign(Object.assign({},n),{hash:e});switch(t){case l.O.IOS:n.hash&&h.push(n.hash),o.replace(i);break;case l.O.ANDROID:o.push(i)}}removeHash(){var e;const{id:t,platform:n,location:o,history:i}=this.props;if(n!==l.O.BROWSER&&o.hash===`#${t}`)switch(n){case l.O.IOS:i.replace(Object.assign(Object.assign({},o),{hash:null!==(e=h.pop())&&void 0!==e?e:""}));break;case l.O.ANDROID:i.goBack()}}shouldClose(e){const{id:t,platform:n,location:o,history:i}=this.props;return n!==l.O.BROWSER&&"POP"===i.action&&e.location.hash!==o.hash&&o.hash!==`#${t}`}}p.defaultProps={id:"sheet",allowHideOnContentScroll:!0};const v=function(e){var t;const n=(i=e).displayName||i.name||"Component";var i;return(t=class extends o.Component{render(){return o.createElement(e,Object.assign({},this.props,{mobile:this.context.mobile,platform:this.context.platform,useHistory:this.context.useHistory,useLocation:this.context.useLocation}))}}).displayName=`withMobile(${n})`,t.contextType=a.G,t}(function(e){const t=t=>{const{useHistory:n,useLocation:i}=t,s=(0,r.Tt)(t,["useHistory","useLocation"]);return o.createElement(e,Object.assign({},s,{history:n(),location:i()}))},n=e.displayName||e.name||"Component";return t.displayName=`withRouterWrapper(${n})`,t}(p)),m=({children:e,onClose:t,visible:n,id:r,title:l,className:a,contentClassName:u,swipeAreaClassName:d,allowHideOnContentScroll:h,hideTopBar:p,qa:m})=>{const[f,b]=o.useState(n),[g,C]=o.useState(n);(0,i.y)({enabled:f}),!g&&n&&b(!0),n!==g&&C(n);return f?o.createElement(s.Z,null,o.createElement("div",{"data-qa":m,className:c(null,a)},o.createElement(v,{id:r,content:e,contentClassName:u,swipeAreaClassName:d,title:l,visible:n,allowHideOnContentScroll:h,hideTopBar:p,hideSheet:()=>{t&&t(),b(!1)}}))):null}},51301:(e,t,n)=>{n.d(t,{R:()=>s});var o=n(59284);class i{constructor(e,t,n={}){var o,i;this.nativeEvent=t,this.target=null!==(o=n.target)&&void 0!==o?o:t.target,this.currentTarget=null!==(i=n.currentTarget)&&void 0!==i?i:t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}}function s(e){const{onFocusWithin:t,onBlurWithin:n,onFocusWithinChange:s,isDisabled:r}=e,l=o.useRef(!1),a=o.useCallback((e=>{l.current||document.activeElement!==e.target||(l.current=!0,t&&t(e),s&&s(!0))}),[t,s]),c=o.useCallback((e=>{l.current&&(l.current=!1,n&&n(e),s&&s(!1))}),[n,s]),{onBlur:u,onFocus:d}=function({onFocus:e,onBlur:t,isDisabled:n}){const s=o.useRef(!1),r=o.useRef(null);o.useEffect((()=>{if(n)return;const e=function(){s.current=!1},o=function(e){if(!s.current&&r.current){const n=new FocusEvent("blur",Object.assign(Object.assign({},e),{relatedTarget:e.target,bubbles:!1,cancelable:!1}));t(new i("blur",n,{target:r.current,currentTarget:r.current})),r.current=null}};return window.addEventListener("focus",e,{capture:!0}),window.addEventListener("focusin",o),()=>{window.removeEventListener("focus",e,{capture:!0}),window.removeEventListener("focusin",o)}}),[n,t]);const l=o.useCallback((e=>{document.activeElement===e.target||null!==e.relatedTarget&&e.relatedTarget!==document.body&&e.relatedTarget!==document||(t(e),r.current=null)}),[t]),a=function(e){const t=o.useRef({isFocused:!1,observer:null});return o.useEffect((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),o.useCallback((n=>{const o=n.target;if(o instanceof HTMLButtonElement||o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement){t.current.isFocused=!0;const n=n=>{t.current.isFocused=!1,o.disabled&&(null===e||void 0===e||e(new i("blur",n))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",n,{once:!0});const s=new MutationObserver((()=>{if(t.current.isFocused&&o.disabled){s.disconnect(),t.current.observer=null;const e=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),o.dispatchEvent(new FocusEvent("focusout",{relatedTarget:e,bubbles:!0}))}}));s.observe(o,{attributes:!0,attributeFilter:["disabled"]}),t.current.observer=s}}),[e])}(t),c=o.useCallback((t=>{s.current=!0,r.current=t.target,a(t),e(t)}),[a,e]);return{onBlur:l,onFocus:c}}({onFocus:a,onBlur:c,isDisabled:r});return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}},92609:(e,t,n)=>{n.d(t,{F:()=>s});var o=n(59284),i=n(85736);const s=e=>{var t;const{onOpenChange:n,onClose:s}=e,r=o.useCallback((e=>{null===n||void 0===n||n(e),!1===e&&s&&s()}),[n,s]),[l,a]=(0,i.P)(e.open,null!==(t=e.defaultOpen)&&void 0!==t&&t,r),c=o.useCallback((e=>{a("boolean"===typeof e?e:!l)}),[l,a]);return{open:l,toggleOpen:c}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/3977.4c33ec16.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/3977.4c33ec16.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/3977.4c33ec16.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/3977.4c33ec16.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/4024.021c61dd.chunk.js b/ydb/core/viewer/monitoring/static/js/4024.021c61dd.chunk.js new file mode 100644 index 00000000000..b5a5a7f7b12 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/4024.021c61dd.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4024],{94024:(e,t,n)=>{n.d(t,{registerYQLCompletionItemProvider:()=>B});var i=n(67913),s=n(23195),a=n(80781);const o=["Text","Bytes","String","Bool","Int32","Uint32","Int64","Uint64","Float","Double","Void","Yson","Utf8","Unit","Json","Date","Datetime","Timestamp","Interval","Date32","Datetime64","Timestamp64","Interval64","TzDate32","TzDatetime64","TzTimestamp64","Null","Int8","Uint8","Int16","Uint16","TzDate","TzDatetime","TzTimestamp","Uuid","EmptyList","EmptyDict","JsonDocument","DyNumber"],r=["CAST","COALESCE","LENGTH","LEN","SUBSTRING","FIND","RFIND","StartsWith","EndsWith","IF","NANVL","Random","RandomNumber","RandomUuid","CurrentUtcDate","CurrentUtcDatetime","CurrentUtcTimestamp","CurrentTzDate","CurrentTzDatetime","CurrentTzTimestamp","AddTimezone","RemoveTimezone","MAX_OF","MIN_OF","GREATEST","LEAST","AsTuple","AsStruct","AsList","AsDict","AsSet","AsListStrict","AsDictStrict","AsSetStrict","Variant","AsVariant","Enum","AsEnum","AsTagged","Untag","TableRow","JoinTableRow","Ensure","EnsureType","EnsureConvertibleTo","ToBytes","FromBytes","ByteAt","TestBit","ClearBit","SetBit","FlipBit","Abs","Just","Unwrap","Nothing","Callable","StaticMap","StaticZip","ListCreate","AsListStrict","ListLength","ListHasItems","ListCollect","ListSort","ListSortAsc","ListSortDesc","ListExtend","ListExtendStrict","ListUnionAll","ListZip","ListZipAll","ListEnumerate","ListReverse","ListSkip","ListTake","ListIndexOf","ListMap","ListFilter","ListFlatMap","ListNotNull","ListFlatten","ListUniq","ListAny","ListAll","ListHas","ListHead","ListLast","ListMin","ListMax","ListSum","ListAvg","ListFold","ListFold1","ListFoldMap","ListFold1Map","ListFromRange","ListReplicate","ListConcat","ListExtract","ListTakeWhile","ListSkipWhile","ListAggregate","ToDict","ToMultiDict","ToSet","DictCreate","SetCreate","DictLength","DictHasItems","DictItems","DictKeys","DictPayloads","DictLookup","DictContains","DictAggregate","SetIsDisjoint","SetIntersection","SetIncludes","SetUnion","SetDifference","SetSymmetricDifference","TryMember","ExpandStruct","AddMember","RemoveMember","ForceRemoveMember","ChooseMembers","RemoveMembers","ForceRemoveMembers","CombineMembers","FlattenMembers","StructMembers","RenameMembers","ForceRenameMembers","GatherMembers","SpreadMembers","ForceSpreadMembers","FormatType","ParseType","TypeOf","InstanceOf","DataType","OptionalType","ListType","StreamType","DictType","TupleType","StructType","VariantType","ResourceType","CallableType","GenericType","UnitType","VoidType","OptionalItemType","ListItemType","StreamItemType","DictKeyType","DictPayloadType","TupleElementType","StructMemberType","CallableResultType","CallableArgumentType","VariantUnderlyingType","JSON_EXISTS","JSON_VALUE","JSON_QUERY"],l=["COUNT","MIN","MAX","SUM","AVG","COUNT_IF","SUM_IF","AVG_IF","SOME","CountDistinctEstimate","HyperLogLog","AGGREGATE_LIST","AGGREGATE_LIST_DISTINCT","AGG_LIST","AGG_LIST_DISTINCT","MAX_BY","MIN_BY","AGGREGATE_BY","MULTI_AGGREGATE_BY","TOP","BOTTOM","TOP_BY","BOTTOM_BY","TOPFREQ","MODE","STDDEV","VARIANCE","CORRELATION","COVARIANCE","PERCENTILE","MEDIAN","HISTOGRAM","LogarithmicHistogram","LogHistogram","LinearHistogram","BOOL_AND","BOOL_OR","BOOL_XOR","BIT_AND","BIT_OR","BIT_XOR","SessionStart"],u=Object.entries({DateTime:["EndOfMonth","Format","FromMicroseconds","FromMilliseconds","FromSeconds","GetDayOfMonth","GetDayOfWeek","GetDayOfWeekName","GetDayOfYear","GetHour","GetMicrosecondOfSecond","GetMillisecondOfSecond","GetMinute","GetMonth","GetMonthName","GetSecond","GetTimezoneId","GetTimezoneName","GetWeekOfYear","GetWeekOfYearIso8601","GetYear","IntervalFromDays","IntervalFromHours","IntervalFromMicroseconds","IntervalFromMilliseconds","IntervalFromMinutes","IntervalFromSeconds","MakeDate","MakeDatetime","MakeTimestamp","MakeTzDate","MakeTzDatetime","MakeTzTimestamp","Parse","ParseHttp","ParseIso8601","ParseRfc822","ParseX509","ShiftMonths","ShiftQuarters","ShiftYears","Split","StartOf","StartOfDay","StartOfMonth","StartOfQuarter","StartOfWeek","StartOfYear","TimeOfDay","ToDays","ToHours","ToMicroseconds","ToMilliseconds","ToMinutes","ToSeconds","Update"],Dsv:["Parse","ReadRecord","Serialize"],String:["AsciiToLower","AsciiToTitle","AsciiToUpper","Base32Decode","Base32Encode","Base32StrictDecode","Base64Decode","Base64Encode","Base64EncodeUrl","Base64StrictDecode","Bin","BinText","CgiEscape","CgiUnescape","Collapse","CollapseText","Contains","DecodeHtml","EncodeHtml","EndsWith","EndsWithIgnoreCase","EscapeC","FromByteList","HasPrefix","HasPrefixIgnoreCase","HasSuffix","HasSuffixIgnoreCase","Hex","HexDecode","HexEncode","HexText","HumanReadableBytes","HumanReadableDuration","HumanReadableQuantity","IsAscii","IsAsciiAlnum","IsAsciiAlpha","IsAsciiDigit","IsAsciiHex","IsAsciiLower","IsAsciiSpace","IsAsciiUpper","JoinFromList","LeftPad","LevensteinDistance","Prec","RemoveAll","RemoveFirst","RemoveLast","ReplaceAll","ReplaceFirst","ReplaceLast","RightPad","SBin","SHex","SplitToList","StartsWith","StartsWithIgnoreCase","Strip","ToByteList","UnescapeC"],Unicode:["Find","Fold","FromCodePointList","GetLength","IsAlnum","IsAlpha","IsAscii","IsDigit","IsHex","IsLower","IsSpace","IsUnicodeSet","IsUpper","IsUtf","JoinFromList","LevensteinDistance","Normalize","NormalizeNFC","NormalizeNFD","NormalizeNFKC","NormalizeNFKD","RFind","RemoveAll","RemoveFirst","RemoveLast","ReplaceAll","ReplaceFirst","ReplaceLast","Reverse","SplitToList","Strip","Substring","ToCodePointList","ToLower","ToTitle","ToUint64","ToUpper","Translit","TryToUint64"],Url:["BuildQueryString","CanBePunycodeHostName","CutQueryStringAndFragment","CutScheme","CutWWW","CutWWW2","Decode","Encode","ForceHostNameToPunycode","ForcePunycodeToHostName","GetCGIParam","GetDomain","GetDomainLevel","GetFragment","GetHost","GetHostPort","GetOwner","GetPath","GetPort","GetScheme","GetSchemeHost","GetSchemeHostPort","GetSignificantDomain","GetTLD","GetTail","HostNameToPunycode","IsAllowedByRobotsTxt","IsKnownTLD","IsWellKnownTLD","Normalize","NormalizeWithDefaultHttpScheme","Parse","PunycodeToHostName","QueryStringToDict","QueryStringToList"],Yson:["Attributes","Contains","ConvertTo","ConvertToBool","ConvertToBoolDict","ConvertToBoolList","ConvertToDict","ConvertToDouble","ConvertToDoubleDict","ConvertToDoubleList","ConvertToInt64","ConvertToInt64Dict","ConvertToInt64List","ConvertToList","ConvertToString","ConvertToStringDict","ConvertToStringList","ConvertToUint64","ConvertToUint64Dict","ConvertToUint64List","Equals","From","GetHash","GetLength","IsBool","IsDict","IsDouble","IsEntity","IsInt64","IsList","IsString","IsUint64","Lookup","LookupBool","LookupDict","LookupDouble","LookupInt64","LookupList","LookupString","LookupUint64","Options","Parse","ParseJson","ParseJsonDecodeUtf8","Serialize","SerializeJson","SerializePretty","SerializeText","WithAttributes","YPath","YPathBool","YPathDict","YPathDouble","YPathInt64","YPathList","YPathString","YPathUint64"],HyperLogLog:["AddValue","Create","Deserialize","GetResult","Merge","Serialize"],Hyperscan:["BacktrackingGrep","BacktrackingMatch","Capture","Grep","Match","MultiGrep","MultiMatch","Replace"],Ip:["ConvertToIPv6","FromString","GetSubnet","GetSubnetByMask","IsEmbeddedIPv4","IsIPv4","IsIPv6","SubnetFromString","SubnetMatch","SubnetToString","ToFixedIPv6String","ToString"],Json:["BoolAsJsonNode","CompilePath","DoubleAsJsonNode","JsonAsJsonNode","JsonDocumentSqlExists","JsonDocumentSqlQuery","JsonDocumentSqlQueryConditionalWrap","JsonDocumentSqlQueryWrap","JsonDocumentSqlTryExists","JsonDocumentSqlValueBool","JsonDocumentSqlValueConvertToUtf8","JsonDocumentSqlValueInt64","JsonDocumentSqlValueNumber","JsonDocumentSqlValueUtf8","Parse","Serialize","SerializeToJsonDocument","SqlExists","SqlQuery","SqlQueryConditionalWrap","SqlQueryWrap","SqlTryExists","SqlValueBool","SqlValueConvertToUtf8","SqlValueInt64","SqlValueNumber","SqlValueUtf8","Utf8AsJsonNode"],Math:["Abs","Acos","Asin","Asinh","Atan","Atan2","Cbrt","Ceil","Cos","Cosh","E","Eps","Erf","ErfInv","ErfcInv","Exp","Exp2","Fabs","Floor","Fmod","FuzzyEquals","Hypot","IsFinite","IsInf","IsNaN","Ldexp","Lgamma","Log","Log10","Log2","Mod","NearbyInt","Pi","Pow","Rem","Remainder","Rint","Round","RoundDownward","RoundToNearest","RoundTowardZero","RoundUpward","Sigmoid","Sin","Sinh","Sqrt","Tan","Tanh","Tgamma","Trunc"],Pire:["Capture","Grep","Match","MultiGrep","MultiMatch","Replace"],Re2:["Capture","Count","Escape","FindAndConsume","Grep","Match","Options","PatternFromLike","Replace"],Re2posix:["Capture","Count","Escape","FindAndConsume","Grep","Match","Options","PatternFromLike","Replace"],Digest:["Argon2","Blake2B","CityHash","CityHash128","Crc32c","Crc64","FarmHashFingerprint","FarmHashFingerprint128","FarmHashFingerprint2","FarmHashFingerprint32","FarmHashFingerprint64","Fnv32","Fnv64","HighwayHash","IntHash64","Md5HalfMix","Md5Hex","Md5Raw","MurMurHash","MurMurHash2A","MurMurHash2A32","MurMurHash32","NumericHash","Sha1","Sha256","SipHash","SuperFastHash","XXH3","XXH3_128"],Histogram:["CalcLowerBound","CalcLowerBoundSafe","CalcUpperBound","CalcUpperBoundSafe","GetSumAboveBound","GetSumBelowBound","GetSumInRange","Normalize","Print","ToCumulativeDistributionFunction"]}).reduce(((e,[t,n])=>{const i=n.map((e=>`${t}::${e}`));return e.concat(i)}),[]),c=["ROW_NUMBER","LAG","LEAD","FIRST_VALUE","LAST_VALUE","RANK","DENSE_RANK","SessionState"],m=[],T=["TablePathPrefix","Warning"],d={table:["AUTO_PARTITIONING_BY_SIZE","AUTO_PARTITIONING_PARTITION_SIZE_MB","AUTO_PARTITIONING_BY_LOAD","AUTO_PARTITIONING_MIN_PARTITIONS_COUNT","AUTO_PARTITIONING_MAX_PARTITIONS_COUNT","UNIFORM_PARTITIONS","READ_REPLICAS_SETTINGS","TTL","KEY_BLOOM_FILTER","STORE"],view:["security_invoker"],topic:["min_active_partitions","partition_count_limit","retention_period","retention_storage_mb","partition_write_speed_bytes_per_second","partition_write_burst_bytes","metering_mode"],object:[],user:[],group:[],externalDataSource:[],externalTable:[],tableStore:[],replication:["ENDPOINT","DATABASE","USER","PASSWORD"],tableIndex:[],topicConsumer:["important","read_from"]},g={Method:0,Function:1,Constructor:2,Field:3,Variable:4,Class:5,Struct:6,Interface:7,Module:8,Property:9,Event:10,Operator:11,Unit:12,Value:13,Constant:14,Enum:15,EnumMember:16,Keyword:17,Text:18,Color:19,File:20,Reference:21,Customcolor:22,Folder:23,TypeParameter:24,User:25,Issue:26,Snippet:27},p=/[\s'"-/@]/,S={externalDataSource:["external_data_source"],externalTable:["external_table"],replication:["replication"],table:["table","column_table"],tableStore:["column_store"],topic:["pers_queue_group"],view:["view"],tableIndex:["table_index","index"]},I=["dir","unknown","ext_sub_domain"],L=["dir","ext_sub_domain"];function y(e){let t=e;return e.match(p)&&(t=`\`${e}\``),t}function b(e){let t=0,n=e.length;return e.startsWith("`")&&(t=1),e.endsWith("`")&&(n=-1),e.slice(t,n)}function A(e){return e.startsWith("$")}function C(e){return e.startsWith("/")?e.slice(1):e}function h(e="",t){const n=b(e);if(!n.startsWith("/"))return n;let i=C(n);const s=C(t);return i.startsWith(s)&&(i=i.slice(s.length)),C(i)}const D={suggestTemplates:0,suggestPragmas:1,suggestEntity:2,suggestAllColumns:3,suggestColumns:4,suggestColumnAliases:5,suggestVariables:6,suggestTableIndexes:7,suggestTableHints:8,suggestEntitySettings:9,suggestKeywords:10,suggestAggregateFunctions:11,suggestTableFunctions:12,suggestWindowFunctions:13,suggestFunctions:14,suggestSimpleTypes:15,suggestUdfs:16};function f(e){return D[e]}async function v(e,t,n,i){const s=h(i,n),o=await window.api.viewer.autocomplete({database:n,prefix:s,limit:1e3}),r=null===i||void 0===i?void 0:i.startsWith("`");if(o.Success){const n=function(e,t){const n=t.reduce(((e,t)=>{const n=S[t];return n&&n.forEach((t=>e.add(t))),e}),new Set(I));return null===e||void 0===e?void 0:e.filter((({Type:e})=>n.has(e)))}(o.Result.Entities,t);return n?n.reduce(((t,{Name:n,Type:i})=>{var s;const o=L.includes(i),l=o?`${n}/`:n;let u;o&&!r&&(u=`\`${l}$0\``);const c=t.length;return t.push({label:l,insertText:null!==(s=u)&&void 0!==s?s:l,kind:o?g.Folder:g.Text,insertTextRules:u?a.languages.CompletionItemInsertTextRule.InsertAsSnippet:a.languages.CompletionItemInsertTextRule.None,detail:i,range:e,command:l.endsWith("/")?{id:"editor.action.triggerSuggest",title:""}:void 0,sortText:G(f("suggestEntity"))+G(c)}),t}),[]):[]}return[]}async function F(e){return(await async function(){return r}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Function",range:e,sortText:G(f("suggestFunctions"))})))}async function E(e){return(await async function(){return o}()).map((t=>({label:t,insertText:t,kind:g.TypeParameter,detail:"Type",range:e,sortText:G(f("suggestSimpleTypes"))})))}async function M(e){return(await async function(){return u}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"UDF",range:e,sortText:G(f("suggestUdfs"))})))}async function N(e){return(await async function(){return c}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Window function",range:e,sortText:G(f("suggestWindowFunctions"))})))}async function R(e){return(await async function(){return m}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Table function",range:e,sortText:G(f("suggestTableFunctions"))})))}async function _(e){return(await async function(){return l}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Aggregate function",range:e,sortText:G(f("suggestAggregateFunctions"))})))}async function P(e){return(await async function(){return T}()).map((t=>({label:t,insertText:t,kind:g.Module,detail:"Pragma",range:e,sortText:G(f("suggestPragmas"))})))}async function x(e,t){const n=await async function(e){return d[e]}(t);return n.map((t=>({label:t,insertText:t,kind:g.Property,detail:"Setting",range:e,sortText:G(f("suggestEntitySettings"))})))}const O="abcdefghijklmnopqrstuvwxyz";function G(e){const t=O[e];if(t)return t;const n=Math.floor(e/O.length),i=e%O.length;return O.slice(-1).repeat(n)+O[i]}function U(e){return async(t,i,s,a)=>{const o=function(e,t){const{startColumn:n,endColumn:i}=e.getWordUntilPosition(t),s="$"===e.getLineContent(t.lineNumber)[n-2]?1:0;return{startColumn:n-s,startLineNumber:t.lineNumber,endColumn:i,endLineNumber:t.lineNumber}}(t,i),r=await async function(e,t,i,s){const{parseYqlQuery:a}=await Promise.resolve().then(n.bind(n,41614)),o={line:t.lineNumber,column:t.column},r=a(e.getValue(),o);let l=[],u=[],c=[],m=[],T=[],d=[],p=[],S=[],I=[],L=[];if(r.suggestEntity){const n=function(e,t){var n,i,s,a;const o=e.findPreviousMatch("\\s(`?[^\\s]*)",t,!0,!1,null,!0),r=e.findNextMatch("([^\\s]*)`?",t,!0,!1,null,!0);return`${null!==(n=null===o||void 0===o||null===(i=o.matches)||void 0===i?void 0:i[1])&&void 0!==n?n:""}${null!==(s=null===r||void 0===r||null===(a=r.matches)||void 0===a?void 0:a[1])&&void 0!==s?s:""}`}(e,t);l=await v(i,r.suggestEntity,s,n)}r.suggestFunctions&&(u=await F(i));r.suggestAggregateFunctions&&(c=await _(i));r.suggestWindowFunctions&&(m=await N(i));r.suggestTableFunctions&&(T=await R(i));r.suggestSimpleTypes&&(p=await E(i));r.suggestVariables&&(L=function(e,t){return t?t.map((({name:t})=>{const n="$"+t;return{label:n,insertText:n,kind:g.Variable,detail:"Variable",range:e,sortText:G(f("suggestVariables"))}})):[]}(i,r.suggestVariables));r.suggestUdfs&&(d=await M(i));r.suggestPragmas&&(S=await P(i));r.suggestEntitySettings&&(I=await x(i,r.suggestEntitySettings));const C=await function(e,t){return t?null===t||void 0===t?void 0:t.map((t=>({label:t.name,insertText:t.name,kind:g.Variable,detail:"Column alias",range:e,sortText:G(f("suggestColumnAliases"))}))):[]}(i,r.suggestColumnAliases),D=await async function(e,t,n,i){var s,a,o;if(null===t||void 0===t||!t.tables)return[];const r=[],l=t.all?[]:void 0,u=t.tables.length>1,c=null!==(s=null===(a=t.tables)||void 0===a?void 0:a.map((e=>{let t=b(e.name);return t.endsWith("/")||A(t)||(t=`${t}/`),{...e,name:h(t,i)}})))&&void 0!==s?s:[],m=c.map((e=>e.name)),T=Array.from(new Set(m)),d=T.filter((e=>!A(e)));let p=[];if(d.length){const e=await window.api.viewer.autocomplete({database:i,table:d,limit:1e3});var S;e.Success&&(p=null!==(S=e.Result.Entities)&&void 0!==S?S:[])}const I=T.filter(A),L=[];I.length&&I.forEach((e=>{var t,i,s,a;const o=null!==(t=null===n||void 0===n||null===(i=n.find((t=>e.slice(1)===t.name)))||void 0===i||null===(s=i.value)||void 0===s||null===(a=s.columns)||void 0===a?void 0:a.map((t=>({Name:t,Type:"column",Parent:e}))))&&void 0!==t?t:[];L.push(...o)}));const C=c.reduce(((e,t)=>{const n=t.columns;return n&&e.push(...n.map((e=>({Name:e,Type:"column",Parent:t.name})))),e}),[]),D=null===(o=t.tables)||void 0===o?void 0:o.reduce(((e,t)=>{var n;const s=h(b(t.name),i),a=null!==(n=e[s])&&void 0!==n?n:[];return t.alias&&a.push(t.alias),e[s]=a,e}),{});if([...p,...L,...C].forEach((t=>{if("column"!==t.Type)return;const n=function(e){const{PKIndex:t,NotNull:n,Default:i}=e,s=[];return void 0!==t&&s.push(`PK${t}`),n&&s.push("NN"),i&&s.push("Default"),s.length?s.join(", "):""}(t),s=y(t.Name),a=h(t.Parent,i),o=D[a],c=r.length;if(null!==o&&void 0!==o&&o.length)o.forEach((t=>{const i=`${t}.${s}`;r.push({label:{label:i,description:n},insertText:i,kind:g.Variable,detail:"Column",range:e,sortText:G(f("suggestColumns"))+G(c)}),null===l||void 0===l||l.push(i)}));else{let t=s;u&&(t=`${y(a)}.${s}`),r.push({label:{label:t,description:n},insertText:t,kind:g.Variable,detail:"Column",range:e,sortText:G(f("suggestColumns"))+G(c)}),null===l||void 0===l||l.push(t)}})),l&&l.length>1){const t=l.join(", ");r.push({label:t,insertText:t,kind:g.Variable,range:e,sortText:G(f("suggestAllColumns"))})}return r}(i,r.suggestColumns,r.suggestVariables,s),O=function(e,t){return t?t.map((t=>({label:t.value,insertText:t.value,kind:g.Keyword,detail:"Keyword",range:e,sortText:G(f("suggestKeywords"))}))):[]}(i,r.suggestKeywords),U=[...l,...u,...m,...T,...d,...p,...S,...C,...D,...O,...c,...I,...L];return U}(t,i,o,e);return{suggestions:r}}}let w;function B(e){w&&w.dispose(),w=i.eo.registerCompletionItemProvider(s.l,{triggerCharacters:[" ",".","`","(","/"],provideCompletionItems:U(e)})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4130.e9433987.chunk.js b/ydb/core/viewer/monitoring/static/js/4130.e9433987.chunk.js new file mode 100644 index 00000000000..dc20441bbe9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/4130.e9433987.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4130],{69775:(e,t,n)=>{"use strict";n.d(t,{O:()=>Ce});var i=n(59284),s=n(27738),a=n(84476),d=n(99991),l=n(66821);const r=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 6V5a2.5 2.5 0 0 0-5 0v1zM4 5v1a3 3 0 0 0-3 3v3a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3V5a4 4 0 0 0-8 0m6.5 2.5H12A1.5 1.5 0 0 1 13.5 9v3a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 12V9A1.5 1.5 0 0 1 4 7.5zm-1.75 2a.75.75 0 0 0-1.5 0v2a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}));var o=n(53202),c=n(90826),u=n(46734),m=n(98089),p=n(32084),I=n(51301),v=n(92609),b=n(19884),g=n(93628),f=n(27145),y=n(87184),h=n(69220);const x=(0,h.om)("list-container-view"),S=i.forwardRef((function({as:e="div",role:t="listbox",children:n,id:s,className:a,fixedHeight:d,extraProps:l,qa:r,style:o},c){return i.createElement(y.s,Object.assign({qa:r,as:e,direction:"column",ref:c,grow:!0,tabIndex:-1,id:s,role:t,style:o,className:x({"fixed-height":d},a)},l),n)})),B=e=>null!==e&&"object"===typeof e&&"data"in e,E=(0,h.om)("list-recursive-renderer");function C(e){var t,{id:n,itemSchema:s,list:a}=e,d=(0,f.Tt)(e,["id","itemSchema","list"]);const l=d.children(n,a.structure.idToFlattenIndex[n]);if(B(s)&&s.children){const e=!a.state.expandedById||!(n in a.state.expandedById)||a.state.expandedById[n];return i.createElement("ul",{style:d.style,className:E(null,d.className),role:"group"},l,e&&Boolean(null===(t=a.structure.groupsState[n])||void 0===t?void 0:t.childrenIds)&&s.children.map(((e,t)=>i.createElement(C,Object.assign({list:a,id:a.structure.groupsState[n].childrenIds[t],itemSchema:e,key:t},d)))))}return l}function O(e){var{containerRef:t,renderItem:n,list:s}=e,a=(0,f.Tt)(e,["containerRef","renderItem","list"]);return i.createElement(S,Object.assign({ref:t},a),s.structure.items.map(((e,t)=>i.createElement(C,{key:t,itemSchema:e,id:s.structure.rootIds[t],list:s},n))))}const w=({list:e,multiple:t})=>({id:n})=>{e.state.disabledById[n]||(e.state.setActiveItemId(n),e.state.expandedById&&n in e.state.expandedById&&e.state.setExpanded?e.state.setExpanded((e=>Object.assign(Object.assign({},e),{[n]:!e[n]}))):e.state.setSelected((e=>Object.assign(Object.assign({},t?e:{}),{[n]:!t||!e[n]}))))};var j=n(359);const k="data-list-item",N={s:[22,44],m:[26,44],l:[34,52],xl:[44,62]},R=({containerRef:e,onItemClick:t,enabled:n,list:s})=>{const a=i.useCallback(((t,n=!0)=>{var i,a;"number"===typeof t&&s.structure.visibleFlattenIds[t]&&(n&&((e,t)=>{var n;if(document){const i=(t||document).querySelector(`[${k}="${e}"]`);i&&(null===(n=i.scrollIntoView)||void 0===n||n.call(i,{block:"nearest"}))}})(s.structure.visibleFlattenIds[t],null===e||void 0===e?void 0:e.current),null===(a=(i=s.state).setActiveItemId)||void 0===a||a.call(i,s.structure.visibleFlattenIds[t]))}),[s.structure.visibleFlattenIds,s.state,e]),d=i.useCallback(((e,t,n=0)=>{e.preventDefault();const i="string"===typeof s.state.activeItemId?s.structure.visibleFlattenIds.findIndex((e=>e===s.state.activeItemId)):-1,d=(({list:e,index:t,step:n,disabledItemsById:i={}})=>{const s=e.length;let a=(t+s)%s;for(let d=0;d<s;d+=1){const t=e[a];if(t&&!i[t])return a;a=(a+s+n)%s}})({list:s.structure.visibleFlattenIds,index:(i>-1?i:n)+t,step:Math.sign(t),disabledItemsById:s.state.disabledById});a(d)}),[a,s.state.activeItemId,s.state.disabledById,s.structure.visibleFlattenIds]);i.useLayoutEffect((()=>{const i=null===e||void 0===e?void 0:e.current;if(n||!i)return;const a=e=>{switch(e.key){case j.D.ARROW_DOWN:d(e,1,-1);break;case j.D.ARROW_UP:d(e,-1);break;case j.D.SPACEBAR:case j.D.ENTER:s.state.activeItemId&&!s.state.disabledById[s.state.activeItemId]&&(e.preventDefault(),null===t||void 0===t||t({id:s.state.activeItemId}))}};return i.addEventListener("keydown",a),()=>{i.removeEventListener("keydown",a)}}),[e,n,d,s.state.activeItemId,s.state.disabledById,t])};var D=n(46423),F=n(25569),P=n(63365),T=n(33705);const $=(0,h.om)("list-item-expand-icon"),A=({expanded:e,behavior:t="action",disabled:n})=>i.createElement(T.I,{direction:z({behavior:t,expanded:e}),className:$(null,(0,P.$)({color:n?"hint":void 0})),size:16});function z({behavior:e,expanded:t}){return t&&"action"===e?"top":t&&"state"===e||t&&"state-inverse"===e||"action"===e?"bottom":"state"===e?"right":"state-inverse"===e?"left":"bottom"}const M=(0,h.om)("list-item-view"),L=e=>"object"===typeof e&&null!==e&&"title"in e,q=e=>{var{children:t,indentation:n=1,className:s}=e,a=(0,f.Tt)(e,["children","indentation","className"]);return i.createElement(y.s,Object.assign({width:16*n,className:M("slot",s)},a),t)},_=({startSlot:e,subtitle:t,endSlot:n,disabled:s,hasSelectionIcon:a,isGroup:l,indentation:r,expanded:o,selected:c,title:u,expandIconPlacement:p="start",renderExpandIcon:I=A})=>{const v=l?i.createElement(I,{behavior:"start"===p?"state":"action",expanded:o,disabled:s}):null;return i.createElement(y.s,{alignItems:"center",justifyContent:"space-between",gap:"4",className:M("content")},i.createElement(y.s,{gap:"2",alignItems:"center",grow:!0},a&&i.createElement(q,null,c?i.createElement(d.I,{data:F.A,size:16,className:(0,P.$)({color:"info"})}):null),(e=>e&&e>=1?i.createElement(q,{indentation:Math.floor(e)}):null)(r),"start"===p&&v,e,i.createElement("div",{className:M("main-content")},"string"===typeof u?i.createElement(m.E,{ellipsis:!0,color:s?"hint":void 0,variant:l?"subheader-1":void 0},u):u,"string"===typeof t?i.createElement(m.E,{ellipsis:!0,color:s?"hint":"secondary"},t):t)),i.createElement(y.s,{gap:"2"},"end"===p&&v,n))},V=i.forwardRef((function(e,t){var{id:n,as:s,size:a="m",active:d,selected:l,disabled:r,selectionViewType:o="multiple",activeOnHover:c,className:u,height:m,dragging:p,style:I,content:v,role:b="option",onClick:g}=e,y=(0,f.Tt)(e,["id","as","size","active","selected","disabled","selectionViewType","activeOnHover","className","height","dragging","style","content","role","onClick"]);const h=s||"li",x=r?void 0:g,S="boolean"===typeof c?c:Boolean(x),B=Object.assign({minHeight:`var(--g-list-item-height, ${null!==m&&void 0!==m?m:N[a][Number(Boolean(!!L(v)&&(null===v||void 0===v?void 0:v.subtitle)))]}px)`},I);return i.createElement(h,Object.assign({[k]:n,role:b,"aria-selected":l,onClick:x,className:M({active:p||d,selected:l&&"single"===o,activeOnHover:S,radius:a,size:a,dragging:p,clickable:Boolean(x)},(0,D.Y)({px:2},u)),style:B,ref:t},y),L(v)?i.createElement(_,Object.assign({},v,{hasSelectionIcon:"multiple"===o,selected:l,disabled:r})):v)})),U=(0,h.om)("tree-list"),W=({qa:e,id:t,size:n="m",className:s,list:a,multiple:d,containerRef:l,renderItem:r,renderContainer:o=O,onItemClick:u,mapItemDataToContentProps:m})=>{const p=(0,c.u)(),I=null!==t&&void 0!==t?t:p,v=i.useRef(null),b=null!==l&&void 0!==l?l:v,g=i.useMemo((()=>{if(null===u)return;return(e,t)=>{const n={id:e.id,list:a};if(u)null===u||void 0===u||u(n,t);else{w({list:a,multiple:d})(n,t)}}}),[u,a,d]);R({containerRef:b,onItemClick:g,list:a});return o({qa:e,id:`list-${I}`,size:n,containerRef:b,className:U(null,s),list:a,renderItem:(t,s,l)=>{const o=(({qa:e,list:t,onItemClick:n,mapItemDataToContentProps:i,size:s="m",multiple:a=!1,id:d})=>{var l,r;const o=Object.assign(Object.assign(Object.assign({},t.structure.itemsState[d]),t.structure.groupsState[d]),{isLastItem:d===t.structure.visibleFlattenIds[t.structure.visibleFlattenIds.length-1]}),c={id:d,size:s,selected:Boolean(t.state.selectedById[d]),disabled:Boolean(null===(l=t.state.disabledById)||void 0===l?void 0:l[d]),active:d===t.state.activeItemId,onClick:n?e=>n({id:d},e):void 0,selectionViewType:Boolean(a)&&!o.childrenIds?"multiple":"single",content:Object.assign({expanded:null===(r=t.state.expandedById)||void 0===r?void 0:r[d],indentation:o.indentation,isGroup:t.state.expandedById&&d in t.state.expandedById},i(t.structure.itemsById[d]))};return e&&(c.qa=((e,t)=>`${e}-${t}`)(e,d)),{data:t.structure.itemsById[d],props:c,context:o}})({qa:e,id:t,size:n,multiple:d,mapItemDataToContentProps:m,onItemClick:g,list:a});return r?r({id:t,data:o.data,props:o.props,context:o.context,index:s,renderContainerProps:l,list:a}):i.createElement(V,Object.assign({},o.props,l))}})};var H=n(63246),J=n(34379),G=n(46819);const Y=({item:e,groupedId:t,getItemId:n})=>{let i=t;return"function"===typeof n?i=n(B(e)?e.data:e):e&&"object"===typeof e&&"id"in e&&e.id&&(i=e.id),i},K=(e,t)=>t?`${t}-${e}`:`${e}`;function Q({items:e,expandedById:t,getItemId:n}){const s=i.useMemo((()=>function({items:e,getItemId:t,expandedById:n={}}){const i=[],s=(e,a,d,l)=>{const r=K(d,l),o=Y({groupedId:r,item:a,getItemId:t});return l||i.push(o),e.push(o),B(a)&&a.children&&(o in n&&!n[o]||e.push(...a.children.reduce(((e,t,n)=>s(e,t,n,o)),[]))),e},a=e.reduce(((e,t,n)=>s(e,t,n)),[]),d={};for(const[l,r]of a.entries())d[r]=l;return{rootIds:i,visibleFlattenIds:a,idToFlattenIndex:d}}({items:e,expandedById:t,getItemId:n})),[e,t,n]);return s}function X({items:e,defaultExpandedState:t="expanded",getItemId:n}){const i={itemsById:{},groupsState:{},itemsState:{},initialState:{disabledById:{},selectedById:{},expandedById:{}}},s=({item:e,index:a,parentGroupedId:d,parentId:l})=>{const r=K(a,d),o=Y({groupedId:r,item:e,getItemId:n});l&&i.groupsState[l].childrenIds.push(o),i.itemsById[o]=e.data,i.itemsState[o]||(i.itemsState[o]={indentation:0}),"undefined"!==typeof l&&(i.itemsState[o].parentId=l),"undefined"!==typeof e.selected&&(i.initialState.selectedById[o]=e.selected),"undefined"!==typeof e.disabled&&(i.initialState.disabledById[o]=e.disabled),r&&(i.itemsState[o].indentation=(e=>e.split("-"))(r).length-1),e.children&&(i.groupsState[o]={childrenIds:[]},i.initialState.expandedById&&("undefined"===typeof e.expanded?i.initialState.expandedById[o]="expanded"===t:i.initialState.expandedById[o]=e.expanded),e.children.forEach(((e,t)=>{s({item:e,index:t,parentGroupedId:r,parentId:o})})))};return e.forEach(((e,t)=>B(e)?s({item:e,index:t}):(({item:e,index:t})=>{const s=Y({groupedId:String(t),item:e,getItemId:n});i.itemsById[s]=e,i.itemsState[s]||(i.itemsState[s]={indentation:0}),e&&"object"===typeof e&&("selected"in e&&"boolean"===typeof e.selected&&(i.initialState.selectedById[s]=e.selected),"disabled"in e&&"boolean"===typeof e.disabled&&(i.initialState.disabledById[s]=e.disabled))})({item:e,index:t}))),i}const Z=({items:e,getItemId:t,defaultExpandedState:n="expanded",withExpandedState:s=!0,initialState:a,controlledState:d})=>{const{itemsById:l,groupsState:r,itemsState:o,initialState:c}=function({items:e,getItemId:t,defaultExpandedState:n}){const s=i.useRef(t).current;return i.useMemo((()=>X({items:e,getItemId:s,defaultExpandedState:n})),[s,n,e])}({items:e,getItemId:t,defaultExpandedState:n}),u=(({initialState:e,withExpandedState:t})=>{const n=i.useRef(e),s=n.current!==e;n.current=e;const[a,d]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.disabledById)&&void 0!==t?t:{}})),[l,r]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.selectedById)&&void 0!==t?t:{}})),[o,c]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.expandedById)&&void 0!==t?t:{}})),[u,m]=i.useState((()=>null===e||void 0===e?void 0:e.activeItemId));s&&((null===e||void 0===e?void 0:e.disabledById)&&d((t=>Object.assign(Object.assign({},e.disabledById),t))),(null===e||void 0===e?void 0:e.selectedById)&&r((t=>Object.assign(Object.assign({},e.selectedById),t))),(null===e||void 0===e?void 0:e.expandedById)&&c((t=>Object.assign(Object.assign({},e.expandedById),t))),m((t=>null!==t&&void 0!==t?t:null===e||void 0===e?void 0:e.activeItemId)));const p={disabledById:a,selectedById:l,activeItemId:u,setDisabled:d,setSelected:r,setActiveItemId:m};return t&&(p.expandedById=o,p.setExpanded=c),p})({initialState:i.useMemo((()=>({expandedById:Object.assign(Object.assign({},c.expandedById),null===a||void 0===a?void 0:a.expandedById),selectedById:Object.assign(Object.assign({},c.selectedById),null===a||void 0===a?void 0:a.selectedById),disabledById:Object.assign(Object.assign({},c.disabledById),null===a||void 0===a?void 0:a.disabledById),activeItemId:null===a||void 0===a?void 0:a.activeItemId})),[c.disabledById,c.expandedById,c.selectedById,null===a||void 0===a?void 0:a.activeItemId,null===a||void 0===a?void 0:a.disabledById,null===a||void 0===a?void 0:a.expandedById,null===a||void 0===a?void 0:a.selectedById]),withExpandedState:s}),m=i.useMemo((()=>d?Object.assign(Object.assign({},u),d):u),[d,u]),{visibleFlattenIds:p,idToFlattenIndex:I,rootIds:v}=Q({items:e,expandedById:m.expandedById,getItemId:t});return{state:m,structure:{rootIds:v,items:e,visibleFlattenIds:p,idToFlattenIndex:I,itemsById:l,groupsState:r,itemsState:o}}},ee=({defaultValue:e=[],value:t,onUpdate:n})=>{const[s,a]=i.useState(e),d=null!==t&&void 0!==t?t:s,l=!t;return i.useMemo((()=>{const e=d.reduce(((e,t)=>(e[t]=!0,e)),{});return{value:d,selectedById:e,setSelected:t=>{const i=(e=>Object.entries(e).reduce(((e,[t,n])=>(n&&e.push(t),e)),[]))("function"===typeof t?t(e):t);l?a(i):null===n||void 0===n||n(i)},setInnerValue:l?a:void 0}}),[n,l,d])},te=(0,h.om)("tree-select"),ne=e=>i.createElement(V,Object.assign({},e.props,e.renderContainerProps)),ie=i.forwardRef((function({id:e,qa:t,title:n,placement:s,slotBeforeListBody:a,slotAfterListBody:d,size:l="m",defaultOpen:r,width:o,containerRef:u,className:m,containerClassName:f,popupClassName:y,open:h,multiple:x,popupWidth:S,popupDisablePortal:B,items:E,value:C,defaultValue:O,placeholder:j,disabled:k=!1,withExpandedState:N=!0,defaultExpandedState:R="expanded",hasClear:D,errorMessage:F,errorPlacement:P,validationState:T,onClose:$,onOpenChange:A,onUpdate:z,renderControl:M,renderItem:L=ne,renderContainer:q,mapItemDataToContentProps:_,onFocus:V,onBlur:U,getItemId:Y,onItemClick:K},Q){const X=(0,G.I)(),ie=(0,c.u)(),se=null!==e&&void 0!==e?e:ie,ae=`tree-select-popup-${se}`,de=i.useRef(null),le=i.useRef(null),re=i.useRef(null),oe=null!==u&&void 0!==u?u:re,{errorMessage:ce,errorPlacement:ue,validationState:me}=(0,J.Av)({errorMessage:F,errorPlacement:P||"outside",validationState:T}),pe=(0,c.u)(),Ie="invalid"===me,ve=Ie&&Boolean(ce)&&"outside"===ue,be=Ie&&Boolean(ce)&&"inside"===ue,ge=(0,p.N)(Q,le),{toggleOpen:fe,open:ye}=(0,v.F)({defaultOpen:r,onClose:$,onOpenChange:A,open:h}),{value:he,selectedById:xe,setSelected:Se}=ee({value:C,defaultValue:O,onUpdate:z}),Be=Z({controlledState:{selectedById:xe,setSelected:Se},items:E,getItemId:Y,defaultExpandedState:R,withExpandedState:N}),Ee=i.useMemo((()=>{if(null===K)return;return(e,t)=>{const n={id:e.id,list:Be};if(K)null===K||void 0===K||K(n,t);else{w({list:Be,multiple:x})(n,t);const i=Be.state.expandedById&&e.id in Be.state.expandedById;x||i||fe(!1)}}}),[K,Be,x,fe]);i.useLayoutEffect((()=>{var e;return ye&&(null===(e=oe.current)||void 0===e||e.focus({preventScroll:!0})),()=>Be.state.setActiveItemId(void 0)}),[ye]);const Ce=i.useCallback((()=>fe(!1)),[fe]),{focusWithinProps:Oe}=(0,I.R)({onFocusWithin:V,onBlurWithin:i.useCallback((e=>{null===U||void 0===U||U(e),Ce()}),[Ce,U])}),we={list:Be,open:ye,placeholder:j,toggleOpen:fe,clearValue:()=>Be.state.setSelected({}),ref:ge,size:l,value:he,disabled:k,id:se,activeItemId:Be.state.activeItemId,title:n,errorMessage:be?ce:void 0,errorPlacement:ue,validationState:me,hasClear:D,isErrorVisible:Ie},je=M?M(we):i.createElement(b.Y,Object.assign({},we,{selectedOptionsContent:i.Children.toArray(he.map((e=>e in Be.structure.itemsById?_(Be.structure.itemsById[e]).title:""))).join(", "),view:"normal",pin:"round-round",popupId:ae,selectId:se})),ke=Object.assign({},"max"===o&&{width:o}),Ne={};return"number"===typeof o&&(Ne.width=o),i.createElement("div",Object.assign({ref:de},Oe,{className:te(ke,m),style:Ne}),je,i.createElement(g.t,{ref:de,className:te("popup",{size:l},y),controlRef:le,width:S,placement:s,open:ye,handleClose:Ce,disablePortal:B,mobile:X,id:ae},a,i.createElement(W,{list:Be,size:l,className:te("list",f),qa:t,multiple:x,id:`list-${se}`,containerRef:oe,onItemClick:Ee,renderContainer:q,mapItemDataToContentProps:_,renderItem:null!==L&&void 0!==L?L:ne}),d),i.createElement(H.o,{errorMessage:ve?ce:null,errorMessageId:pe}))}));var se=n(28664),ae=n(43781),de=n.n(ae);function le(e,t){return!t||"object"!==typeof t||!("title"in t)||"string"!==typeof t.title||t.title.toLowerCase().includes((e||"").toLowerCase())}function re({items:e,initialFilterValue:t="",filterItem:n,onFilterChange:s,filterItems:a,debounceTimeout:d=300}){const l=i.useRef(null),[r,o]=i.useState(t),[c,u]=i.useState(e),[m,p]=i.useState(e),I=i.useCallback(((e,t)=>{if(a)return()=>a(e,t);if(e){const i=n||le;return()=>function(e,t){const n=(e,i)=>{if(B(i)&&i.children){const s=i.children.reduce(n,[]);s.length?e.push(Object.assign(Object.assign({},i),{data:i.data,children:s})):t(i.data)&&e.push(Object.assign(Object.assign({},i),{data:i.data,children:[]}))}else if(B(i)&&t(i.data)){const{children:t}=i,n=(0,f.Tt)(i,["children"]);e.push(n)}else!B(i)&&t(i)&&e.push(i);return e};return e.reduce(n,[])}(t,(t=>i(e,t)))}return()=>t}),[n,a]);e!==c&&(p(I(r,e)),u(e));const v=i.useCallback(de()((t=>p(I(t,e))),d),[p,I,e,d]),{onFilterUpdate:b,reset:g}=i.useMemo((()=>({reset:()=>{o(t),null===s||void 0===s||s(t),v(t)},onFilterUpdate:e=>{o(e),null===s||void 0===s||s(e),v(e)}})),[v,t,s]);return{filterRef:l,filter:r,reset:g,items:m,onFilterUpdate:b}}var oe=n(72837);const ce=JSON.parse('{"button_apply":"Apply","button_reset":"Reset","button_switcher":"Columns"}'),ue=JSON.parse('{"button_apply":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c","button_reset":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c","button_switcher":"\u041a\u043e\u043b\u043e\u043d\u043a\u0438"}'),me=(0,oe.N)({en:ce,ru:ue},"TableColumnSetupInner"),pe=(0,h.om)("inner-table-column-setup"),Ie=pe("controls"),ve=pe("filter-input"),be=pe("empty-placeholder"),ge={isDragDisabled:!0},fe=e=>({title:e.title}),ye=(e,t)=>"string"!==typeof t.title||t.title.toLowerCase().includes(e.trim().toLowerCase()),he=e=>{const{renderSwitcher:t,popupWidth:n,popupPlacement:p,items:I,onUpdate:v,sortable:b,renderControls:g,className:f,defaultItems:h=I,showResetButton:x,filterable:B,filterPlaceholder:E,filterEmptyMessage:C,filterSettings:O=ye}=e,[w,j]=i.useState(!1),[k,N]=i.useState(b),[R,D]=i.useState(b);b!==R&&(D(b),N(b));const[F,P]=i.useState(I),[T,$]=i.useState(I);I!==T&&($(I),P(I));const A=re({items:F,filterItem:O,debounceTimeout:0}),z=()=>{const e=F.map((({id:e,isSelected:t})=>({id:e,isSelected:t})));v(e),U(!1)},M=()=>i.createElement(a.$,{view:"action",width:"max",onClick:z},me("button_apply")),L="function"===typeof x?x(F):x,q=(({onDragEnd:e,renderControls:t})=>{const n=(0,c.u)();return({renderItem:s,list:a,containerRef:d,id:l,className:r})=>{const{stickyStartItemIdList:c,sortableItemIdList:u,stickyEndItemIdList:m}=((e,t)=>{let n=0;for(;n!==t.length;n++){const i=e[t[n]];if("left"!==(null===i||void 0===i?void 0:i.sticky)&&"start"!==(null===i||void 0===i?void 0:i.sticky))break}let i=t.length;for(;0!==i;i--){const n=e[t[i-1]];if("right"!==(null===n||void 0===n?void 0:n.sticky)&&"end"!==(null===n||void 0===n?void 0:n.sticky))break}return{stickyStartItemIdList:t.slice(0,n),sortableItemIdList:t.slice(n,i),stickyEndItemIdList:t.slice(i)}})(a.structure.itemsById,a.structure.visibleFlattenIds),p=c.map(((e,t)=>s(e,t,ge))),I=u.map(((e,t)=>s(e,t+c.length))),v=m.map(((e,t)=>s(e,p.length+I.length+t,ge)));return i.createElement(i.Fragment,null,i.createElement(S,{ref:d,id:l,className:r},p,i.createElement(o.JY,{onDragEnd:e},i.createElement(o.gL,{droppableId:n,renderClone:(e,t,n)=>{const i={provided:e,snapshot:t};return s(a.structure.visibleFlattenIds[n.source.index],n.source.index,i)}},(e=>i.createElement("div",Object.assign({},e.droppableProps,{ref:e.innerRef}),I,e.placeholder)))),v),i.createElement("div",{className:Ie},t()))}})({onDragEnd:({destination:e,source:t})=>{void 0!==(null===e||void 0===e?void 0:e.index)&&(null===e||void 0===e?void 0:e.index)!==t.index&&P((n=>((e,t,n)=>{const i=[...e],[s]=i.splice(t,1);return i.splice(n,0,s),i})(n,t.index,e.index)))},renderControls:()=>g?g({DefaultApplyButton:M,onApply:z}):i.createElement(y.s,{gapRow:1,direction:"column",className:Ie},L&&i.createElement(a.$,{onClick:()=>{P(h)},width:"max"},me("button_reset")),i.createElement(M,null))}),_=(e=>({data:t,props:n,index:s,renderContainerProps:a})=>{const c=!1===e||!0===(null===a||void 0===a?void 0:a.isDragDisabled),u=c?void 0:i.createElement(d.I,{data:l.A,size:16}),m=t.isRequired?i.createElement(d.I,{data:r}):void 0,p=!t.isRequired&&n.selected,I=Object.assign(Object.assign({},n),{selected:p,selectionViewType:t.isRequired?"single":"multiple",content:Object.assign(Object.assign({},n.content),{startSlot:m,endSlot:u})});if(c)return i.createElement(V,Object.assign({},I,{key:I.id}));const v=(e,t)=>i.createElement(V,Object.assign({},I,e.draggableProps,e.dragHandleProps,{ref:e.innerRef,dragging:t.isDragging}));return(null===a||void 0===a?void 0:a.provided)&&a.snapshot?v(a.provided,a.snapshot):i.createElement(o.sx,{draggableId:n.id,index:s,key:`item-key-${n.id}`,isDragDisabled:c},v)})(k),U=e=>{j(e),!1===e&&(P(I),N(b),A.reset())},W=i.useMemo((()=>(e=>{const t=[];return e.forEach((({id:e,isSelected:n})=>{n&&t.push(e)})),t})(F)),[F]),H=(J=C,()=>i.createElement(m.E,{className:be},J));var J;const G=B?i.createElement(se.k,{size:"m",view:"clear",placeholder:E,value:A.filter,className:ve,onUpdate:e=>{A.onFilterUpdate(e),N(!e.length)},hasClear:!0}):null,Y=A.filter&&!A.items.length?H:q;return i.createElement(ie,{className:pe(null,f),mapItemDataToContentProps:fe,multiple:!0,size:"l",open:w,value:W,items:A.filter?A.items:F,onUpdate:e=>{P((t=>t.map((t=>Object.assign(Object.assign({},t),{isSelected:t.isRequired||e.includes(t.id)})))))},popupWidth:n,onOpenChange:U,placement:p,slotBeforeListBody:G,renderContainer:Y,renderControl:({toggleOpen:e})=>{const n=(0,u.h)(e);return(null===t||void 0===t?void 0:t({onClick:e,onKeyDown:n}))||i.createElement(a.$,{onClick:e,extraProps:{onKeyDown:n}},i.createElement(d.I,{data:s.A}),me("button_switcher"))},renderItem:_})},xe=JSON.parse('{"button_switcher":"Columns"}'),Se=JSON.parse('{"button_switcher":"\u041a\u043e\u043b\u043e\u043d\u043a\u0438"}'),Be=(0,oe.N)({en:xe,ru:Se},"TableColumnSetup"),Ee=(0,h.om)("table-column-setup"),Ce=e=>{const{switcher:t,renderSwitcher:n,disabled:l,popupWidth:r,popupPlacement:o,className:c,items:u,sortable:m=!0,showStatus:p,onUpdate:I}=e,v=u.map((({id:e,title:t,required:n,selected:i,sticky:s})=>({id:e,title:t,isRequired:n,isSelected:i,sticky:s})));return i.createElement(he,{items:v,onUpdate:e=>{I(e.map((({id:e,isSelected:t})=>{const n=u.find((t=>t.id===e));return{id:e,selected:t,title:null===n||void 0===n?void 0:n.title,required:null===n||void 0===n?void 0:n.required}})))},popupPlacement:o,popupWidth:r,renderSwitcher:e=>(null===n||void 0===n?void 0:n(e))||t||i.createElement(a.$,{disabled:l,onClick:e.onClick},i.createElement(d.I,{data:s.A}),Be("button_switcher"),(()=>{if(!p)return null;const e=`${u.reduce(((e,t)=>t.selected?e+1:e),0)}/${u.length}`;return i.createElement("span",{className:Ee("status")},e)})()),sortable:m,className:Ee(null,c)})}},38501:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var i=n(46878);function s(){return(0,i.w)().theme}},23536:(e,t,n)=>{var i=n(68814),s=/[\\^$.*+?()[\]{}|]/g,a=RegExp(s.source);e.exports=function(e){return(e=i(e))&&a.test(e)?e.replace(s,"\\$&"):e}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4335.b2a023a8.chunk.js b/ydb/core/viewer/monitoring/static/js/4335.b2a023a8.chunk.js deleted file mode 100644 index 0a686188560..00000000000 --- a/ydb/core/viewer/monitoring/static/js/4335.b2a023a8.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4335],{3685:(e,t,s)=>{s.d(t,{$:()=>l});var i=s(77506),o=s(33775),n=s(60712);const a=(0,i.cn)("ydb-entity-page-title");function l({entityName:e,status:t,id:s,className:i}){return(0,n.jsxs)("div",{className:a(null,i),children:[(0,n.jsx)("span",{className:a("prefix"),children:e}),(0,n.jsx)(o.k,{className:a("icon"),status:t,size:"s"}),s]})}},42655:(e,t,s)=>{s.d(t,{y:()=>c});var i=s(59284),o=s(89169),n=s(77506),a=s(66781),l=s(60712);const d=(0,n.cn)("ydb-info-viewer-skeleton"),r=()=>(0,l.jsxs)("div",{className:d("label"),children:[(0,l.jsx)(o.E,{className:d("label__text")}),(0,l.jsx)("div",{className:d("label__dots")})]}),c=({rows:e=8,className:t,delay:s=600})=>{const[n]=(0,a.y)(s);let c=(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(r,{}),(0,l.jsx)(o.E,{className:d("value")})]});return n||(c=null),(0,l.jsx)("div",{className:d(null,t),children:[...new Array(e)].map(((e,t)=>(0,l.jsx)("div",{className:d("row"),children:c},`skeleton-row-${t}`)))})}},56735:(e,t,s)=>{s.d(t,{Q:()=>x});var i=s(87184),o=s(92459),n=s(78668),a=s(7435),l=s(46549),d=s(77506),r=s(86200),c=s(31684),m=s(90182),u=s(18863),p=s(25196),g=s(15132),h=s(33775),v=s(48372);const k=JSON.parse('{"type":"Type","path":"Path","guid":"GUID","serial-number":"Serial Number","shared-with-os":"SharedWithOs","drive-status":"Drive Status","state":"State","device":"Device","realtime":"Realtime","space":"Space","slots":"Slots","log-size":"Log Size","system-size":"System Size","links":"Links","developer-ui":"Developer UI","pdisk-page":"PDisk page","yes":"Yes"}'),f=(0,v.g4)("ydb-pDisk-info",{en:k});var b=s(60712);const D=(0,d.cn)("ydb-pdisk-info");function x({pDisk:e,nodeId:t,withPDiskPageLink:s,className:d}){const v=(0,m.N4)(n._5),[k,x,y,N]=function({pDisk:e,nodeId:t,withPDiskPageLink:s,isUserAllowedToMakeChanges:i}){const{PDiskId:n,Path:d,Guid:m,Category:u,Type:v,Device:k,Realtime:x,State:y,SerialNumber:N,TotalSize:S,AllocatedSize:j,StatusV2:I,NumActiveSlots:w,ExpectedSlotCount:T,LogUsedSize:E,LogTotalSize:P,SystemSize:C,SharedWithOs:z}=e||{},M=[];(0,a.f8)(u)&&M.push({label:f("type"),value:v}),(0,a.f8)(d)&&M.push({label:f("path"),value:d}),(0,a.f8)(m)&&M.push({label:f("guid"),value:m}),N&&M.push({label:f("serial-number"),value:N}),(0,a.f8)(z)&&M.push({label:f("shared-with-os"),value:f("yes")});const O=[];(0,a.f8)(I)&&O.push({label:f("drive-status"),value:I}),(0,a.f8)(y)&&O.push({label:f("state"),value:y}),(0,a.f8)(k)&&O.push({label:f("device"),value:(0,b.jsx)(h.k,{status:k})}),(0,a.f8)(x)&&O.push({label:f("realtime"),value:(0,b.jsx)(h.k,{status:x})});const _=[];_.push({label:f("space"),value:(0,b.jsx)(g.O,{value:j,capacity:S,formatValues:r.vX,colorizeProgress:!0})}),(0,a.f8)(w)&&(0,a.f8)(T)&&_.push({label:f("slots"),value:(0,b.jsx)(g.O,{value:w,capacity:T})}),(0,a.f8)(E)&&(0,a.f8)(P)&&_.push({label:f("log-size"),value:(0,b.jsx)(g.O,{value:E,capacity:P,formatValues:r.vX})}),(0,a.f8)(C)&&_.push({label:f("system-size"),value:(0,l.z3)({value:C})});const A=[];if((s||i)&&(0,a.f8)(n)&&(0,a.f8)(t)){const e=(0,o.Ck)(n,t),a=(0,c.ar)({nodeId:t,pDiskId:n});A.push({label:f("links"),value:(0,b.jsxs)("span",{className:D("links"),children:[s&&(0,b.jsx)(p.K,{title:f("pdisk-page"),url:e,external:!1}),i&&(0,b.jsx)(p.K,{title:f("developer-ui"),url:a})]})})}return[M,O,_,A]}({pDisk:e,nodeId:t,withPDiskPageLink:s,isUserAllowedToMakeChanges:v});return(0,b.jsxs)(i.s,{className:d,gap:2,direction:"row",wrap:!0,children:[(0,b.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,b.jsx)(u.z,{info:k,renderEmptyState:()=>null}),(0,b.jsx)(u.z,{info:y,renderEmptyState:()=>null})]}),(0,b.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,b.jsx)(u.z,{info:x,renderEmptyState:()=>null}),(0,b.jsx)(u.z,{info:N,renderEmptyState:()=>null})]})]})}},58389:(e,t,s)=>{s.d(t,{B:()=>c});var i=s(87184),o=s(77506),n=s(90053),a=s(70043),l=s(60712);const d=(0,o.cn)("ydb-page-meta");function r({items:e,loading:t}){return(0,l.jsx)("div",{className:d("info"),children:t?(0,l.jsx)(a.E,{className:d("skeleton")}):e.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c({className:e,...t}){return(0,l.jsxs)(i.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:d(null,e),children:[(0,l.jsx)(r,{...t}),(0,l.jsx)(n.E,{})]})}},70043:(e,t,s)=>{s.d(t,{E:()=>a});var i=s(89169),o=s(66781),n=s(60712);const a=({delay:e=600,className:t})=>{const[s]=(0,o.y)(e);return s?(0,n.jsx)(i.E,{className:t}):null}},69134:(e,t,s)=>{s.r(t),s.d(t,{PDiskPage:()=>De});var i=s(59284),o=s(76938),n=s(99991),a=s(23871),l=s(44992),d=s(61750),r=s(67087),c=s(370),m=s(22983),u=s(3685),p=s(44508),g=s(42655),h=s(82015),v=s(56735),k=s(58389),f=s(92459),b=s(21334),D=s(78668),x=s(67028),y=s(40174),N=s(7187),S=s(68712),j=s(7435),I=s(27295),w=s(78034);const T=b.F.injectEndpoints({endpoints:e=>({getPdiskInfo:e.query({queryFn:async({nodeId:e,pDiskId:t},{signal:s,getState:i,dispatch:o})=>{let n;n=await(0,S.FC)("/pdisk/info",void 0,{getState:i,dispatch:o})>0?window.api.pdisk.getPDiskInfo({nodeId:e,pDiskId:t},{signal:s}):window.api.viewer.getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:t},{signal:s}).then((e=>e.PDiskStateInfo?{Whiteboard:{PDisk:{...e.PDiskStateInfo[0],ExpectedSlotCount:void 0}}}:{}));try{const t=await Promise.all([n,window.api.viewer.getNodeInfo(e,{signal:s})]);return{data:function([e={},t]){var s,i,o;const n=null===(s=t.SystemStateInfo)||void 0===s?void 0:s[0],a=(0,w.q1)(n),{BSC:l={},Whiteboard:d={}}=e||{},{PDisk:r={},VDisks:c=[]}=d,{PDisk:m={}}=l,u=(0,I.or)({...m,...r}),p=null!==(i=u.NodeId)&&void 0!==i?i:a.NodeId,{LogUsedSize:g,LogTotalSize:h,TotalSize:v,SystemSize:k,ExpectedSlotCount:f,EnforcedDynamicSlotSize:b}=u;let D;(0,j.f8)(h)&&(D={SlotType:"log",Used:Number(g),Total:Number(h),UsagePercent:100*Number(g)/Number(h),Severity:1,SlotData:{LogUsedSize:g,LogTotalSize:h,SystemSize:k}});const x=c.map((e=>(0,I.WT)({...e,NodeId:p})));x.sort(((e,t)=>Number(t.VDiskSlotId)-Number(e.VDiskSlotId)));const y=x.map((e=>{var t;return{SlotType:"vDisk",Id:null===(t=e.VDiskId)||void 0===t?void 0:t.GroupID,Title:e.StoragePoolName,Severity:e.Severity,Used:Number(e.AllocatedSize),Total:Number(e.TotalSize),UsagePercent:e.AllocatedPercent,SlotData:e}}));let N=[];if(f&&f>y.length){const e=f-y.length;let t=Number(b);if(isNaN(t)){const s=y.reduce(((e,t)=>t.Total?e+t.Total:e),0);t=(Number(v)-s-Number(h))/e}N=(0,j._e)(e).map((()=>({SlotType:"empty",Total:t,Severity:1,SlotData:{Size:t}})))}const S=[...y,...N];return D&&S.length>0&&S.unshift(D),{...u,NodeId:p,NodeHost:a.Host,NodeType:null===(o=a.Roles)||void 0===o?void 0:o[0],NodeDC:a.DC,SlotItems:S}}(t)}}catch(a){return{error:a}}},providesTags:(e,t,s)=>["All",{type:"PDiskData",id:(0,N.r$)(s.nodeId,s.pDiskId)}]})}),overrideExisting:"throw"});var E=s(77506),P=s(90182),C=s(41122),z=s(13066),M=s(40569),O=s(84375),_=s(84476),A=s(55974),L=s(42829),R=s(48372);const $=JSON.parse('{"fqdn":"FQDN","pdisk":"PDisk","node":"Node","storage":"Storage","disk-distribution":"Disk distribution","empty-slot":"Empty slot","log":"Log","label.log-size":"Log Size","label.system-size":"System Size","label.slot-size":"Slot Size","no-slots-data":"No slots data","restart-pdisk-button":"Restart PDisk","force-restart-pdisk-button":"Restart anyway","restart-pdisk-not-allowed":"You don\'t have enough rights to restart PDisk","restart-pdisk-dialog-header":"Restart PDisk","restart-pdisk-dialog-text":"PDisk will be restarted. Do you want to proceed?","decommission-none":"None","decommission-imminent":"Imminent","decommission-pending":"Pending","decommission-rejected":"Rejected","decommission-label":"{{decommission}} decommission","decommission-button":"Decommission","decommission-change-not-allowed":"You don\'t have enough rights to change PDisk decommission","decommission-dialog-title":"Change decommission status","decommission-dialog-force-change":"Change anyway","decommission-dialog-imminent-warning":"This will start imminent decommission. Existing slots will be moved from the disk","decommission-dialog-pending-warning":"This will start pending decommission. Decommission will be planned for this disk, but will not start immediatelly. Existing slots will not be moved from the disk, but no new slots will be allocated on it","decommission-dialog-rejected-warning":"This will start rejected decommission. No slots from other disks are placed on this disk in the process of decommission","decommission-dialog-none-warning":"This will reset decommission mode, allowing the disk to be used by the storage"}'),U=(0,R.g4)("ydb-pDisk-page",{en:$});var V,B,G,H;function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},J.apply(this,arguments)}const F=function(e){return i.createElement("svg",J({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",fill:"none"},e),V||(V=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.378 7.771c.717 0 1.298.614 1.298 1.372v.914c0 .758-.581 1.372-1.298 1.372H3.46c-.716 0-1.297-.614-1.297-1.372v-.914c0-.758.58-1.372 1.297-1.372h6.92zm.77-1.248L9.935 3.958a1.292 1.292 0 00-1.16-.758H5.063c-.491 0-.94.294-1.16.758L2.69 6.523c.243-.08.501-.123.77-.123h6.918c.268 0 .527.043.77.123zm1.825 1.87V10.057c0 1.515-1.162 2.743-2.595 2.743H3.46c-1.433 0-2.594-1.228-2.594-2.743V8.393c0-.71.156-1.41.456-2.044l1.421-3.004c.44-.93 1.338-1.516 2.32-1.516h3.713c.982 0 1.88.587 2.32 1.516l1.421 3.004c.3.635.457 1.335.457 2.044zm-5.19.521c-.358 0-.648.307-.648.686 0 .379.29.686.649.686h2.162c.358 0 .649-.307.649-.686 0-.379-.29-.686-.65-.686H7.785z",fill:"currentColor",fillOpacity:.85})),B||(B=i.createElement("path",{d:"M15.25 11.428c0 2.15-1.639 3.822-3.574 3.822-1.935 0-3.574-1.671-3.574-3.822 0-2.15 1.639-3.821 3.574-3.821 1.935 0 3.574 1.671 3.574 3.821z",fill:"var(--g-color-base-background)",stroke:"currentColor",strokeWidth:1.5})),G||(G=i.createElement("path",{d:"M11.676 16.5c2.69 0 4.824-2.297 4.824-5.072 0-2.774-2.134-5.071-4.824-5.071s-4.824 2.297-4.824 5.071c0 2.775 2.134 5.072 4.824 5.072z",stroke:"var(--g-color-base-background)"})),H||(H=i.createElement("path",{d:"M12.973 10.057L10.378 12.8m0-2.743l2.595 2.743",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))};var W=s(60712);const Y=(0,E.cn)("ydb-pdisk-decommission-button");function Q(e){return"DECOMMIT_IMMINENT"===e?U("decommission-dialog-imminent-warning"):"DECOMMIT_PENDING"===e?U("decommission-dialog-pending-warning"):"DECOMMIT_REJECTED"===e?U("decommission-dialog-rejected-warning"):"DECOMMIT_NONE"===e?U("decommission-dialog-none-warning"):void 0}function X({decommission:e,onConfirmAction:t,onConfirmActionSuccess:s,buttonDisabled:o,popoverDisabled:n}){const[a,l]=i.useState(),[d,r]=i.useState(!1),[c,m]=i.useState(!1),u=function(e,t){return[{text:U("decommission-none"),action:()=>t("DECOMMIT_NONE"),hidden:!e||"DECOMMIT_NONE"===e||"DECOMMIT_UNSET"===e},{text:U("decommission-pending"),action:()=>t("DECOMMIT_PENDING"),hidden:"DECOMMIT_PENDING"===e},{text:U("decommission-rejected"),action:()=>t("DECOMMIT_REJECTED"),hidden:"DECOMMIT_REJECTED"===e},{text:U("decommission-imminent"),theme:"danger",action:()=>t("DECOMMIT_IMMINENT"),hidden:"DECOMMIT_IMMINENT"===e}]}(e,l);return(0,W.jsxs)(i.Fragment,{children:[(0,W.jsx)(M.r,{renderSwitcher:e=>(0,W.jsx)(q,{popoverDisabled:n,loading:d,disabled:o,...e}),items:u,popupProps:{className:Y("popup")}}),(0,W.jsx)(A.g,{visible:Boolean(a),header:U("decommission-dialog-title"),text:Q(a),withRetry:c,withCheckBox:!0,retryButtonText:U("decommission-dialog-force-change"),onConfirm:async e=>{r(!0),await t(a,e)},onConfirmActionSuccess:async()=>{m(!1),await(0,j.uk)(5e3);try{await s()}finally{r(!1)}},onConfirmActionError:e=>{m((0,L.D)(e)),r(!1)},onClose:()=>{l(void 0)}})]})}function q({popoverDisabled:e,...t}){return(0,W.jsx)(O.A,{content:U("decommission-change-not-allowed"),placement:"right",disabled:e,children:(0,W.jsxs)(_.$,{view:"normal",className:Y("button"),...t,children:[(0,W.jsx)(n.I,{data:F}),U("decommission-button"),(0,W.jsx)(n.I,{data:z.A})]})})}var K=s(47665);function Z(e){return U("decommission-label",{decommission:e})}function ee({decommission:e}){return"DECOMMIT_IMMINENT"===e?(0,W.jsx)(K.J,{theme:"danger",size:"m",children:Z(U("decommission-imminent"))}):"DECOMMIT_PENDING"===e?(0,W.jsx)(K.J,{theme:"warning",size:"m",children:Z(U("decommission-pending"))}):"DECOMMIT_REJECTED"===e?(0,W.jsx)(K.J,{theme:"normal",size:"m",children:Z(U("decommission-rejected"))}):null}var te=s(88226),se=s(13096),ie=s(60073),oe=s(44294),ne=s(15132),ae=s(67440),le=s(46549),de=s(86200);const re=(0,E.cn)("ydb-pdisk-space-distribution"),ce=40;function me({data:e}){const{SlotItems:t}=e,{PDiskId:s,NodeId:i}=e,o=ce*((null===t||void 0===t?void 0:t.length)||1);return null!==t&&void 0!==t&&t.length?(0,W.jsx)("div",{className:re(null),style:{height:o,minHeight:o},children:(0,W.jsx)(te.V,{className:re("pdisk-bar"),severity:e.Severity,diskAllocatedPercent:e.AllocatedPercent,content:null===t||void 0===t?void 0:t.map(((e,t)=>(0,W.jsx)(ue,{item:e,pDiskId:s,nodeId:i},t))),faded:!0})}):U("no-slots-data")}function ue({item:e,pDiskId:t,nodeId:s}){return(0,W.jsx)("div",{className:re("slot-wrapper"),style:{flexGrow:Number(e.Total)||1},children:(()=>{if("vDisk"===e.SlotType){var i;const o=(0,j.f8)(null===(i=e.SlotData)||void 0===i?void 0:i.VDiskSlotId)&&(0,j.f8)(t)&&(0,j.f8)(s)?(0,f.yX)(e.SlotData.VDiskSlotId,t,s):void 0;return(0,W.jsx)(se.P,{popupContent:(0,W.jsx)(ae.E,{data:e.SlotData,withTitle:!0}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(oe.E,{to:o,children:(0,W.jsx)(te.V,{className:re("slot"),severity:e.Severity,diskAllocatedPercent:e.UsagePercent,content:(0,W.jsx)(pe,{id:e.Id,title:e.Title,used:e.Used,total:e.Total})})})})}return function(e){return"log"===e.SlotType}(e)?(0,W.jsx)(se.P,{popupContent:(0,W.jsx)(ge,{data:e.SlotData}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(te.V,{className:re("slot"),severity:e.Severity,diskAllocatedPercent:e.UsagePercent,content:(0,W.jsx)(pe,{title:U("log"),used:e.Used,total:e.Total})})}):function(e){return"empty"===e.SlotType}(e)?(0,W.jsx)(se.P,{popupContent:(0,W.jsx)(he,{data:e.SlotData}),contentClassName:re("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(te.V,{className:re("slot"),severity:e.Severity,empty:!0,content:(0,W.jsx)(pe,{title:U("empty-slot"),used:e.Total})})}):null})()})}function pe({id:e,title:t,used:s,total:i}){return(0,W.jsxs)("div",{className:re("slot-content"),children:[(0,W.jsxs)("span",{children:[(0,j.f8)(e)?(0,W.jsx)("span",{className:re("slot-id"),children:e}):null,t]}),(0,W.jsx)("span",{className:re("slot-size"),children:(()=>{const[e,t]=(0,de.vX)(s,i);return i?`${e} / ${t}`:e})()})]})}function ge({data:e}){const{LogTotalSize:t,LogUsedSize:s,SystemSize:i}=e,o=[{label:U("label.log-size"),value:(0,W.jsx)(ne.O,{value:s,capacity:t,formatValues:de.vX})}];return(0,j.f8)(i)&&o.push({label:U("label.system-size"),value:(0,le.z3)({value:i})}),(0,W.jsx)(ie.z_,{title:U("log"),info:o})}function he({data:e}){const{Size:t}=e,s=[{label:U("label.slot-size"),value:(0,le.z3)({value:t})}];return(0,W.jsx)(ie.z_,{title:U("empty-slot"),info:s})}const ve=(0,E.cn)("ydb-pdisk-page"),ke={diskDistribution:"diskDistribution",storage:"storage"},fe=[{id:ke.diskDistribution,get title(){return U("disk-distribution")}},{id:ke.storage,get title(){return U("storage")}}],be=c.z.nativeEnum(ke).catch(ke.diskDistribution);function De(){const e=(0,P.YQ)(),t=(0,P.N4)(D._5),s=(0,x.c2)(),c=i.useRef(null),[{nodeId:S,pDiskId:I,activeTab:w}]=(0,r.useQueryParams)({activeTab:r.StringParam,nodeId:r.StringParam,pDiskId:r.StringParam}),E=(0,j.f8)(S)&&(0,j.f8)(I),z=be.parse(w);i.useEffect((()=>{e((0,y.g)("pDisk",{nodeId:S,pDiskId:I}))}),[e,S,I]);const[M]=(0,P.Nt)(),O=E?{nodeId:S,pDiskId:I}:l.hT,_=T.useGetPdiskInfoQuery(O,{pollingInterval:M}),A=_.isFetching&&void 0===_.currentData,L=_.currentData,{NodeHost:R,NodeId:$,NodeType:V,NodeDC:B,Severity:G,DecommitStatus:H}=L||{},J=async e=>{if(E){const t=await window.api.pdisk[s?"restartPDisk":"restartPDiskOld"]({nodeId:S,pDiskId:I,force:e});if(!1===(null===t||void 0===t?void 0:t.result)){throw{statusText:t.error,retryPossible:t.forceRetryPossible}}}},F=async(e,t)=>{if(E){const s=await window.api.pdisk.changePDiskStatus({nodeId:S,pDiskId:I,force:t,decommissionStatus:e});if(!1===(null===s||void 0===s?void 0:s.result)){throw{statusText:s.error,retryPossible:s.forceRetryPossible}}}},Y=()=>{E&&e(b.F.util.invalidateTags([{type:"PDiskData",id:(0,N.r$)(S,I)}]),"StorageData")};return(0,W.jsxs)("div",{className:ve(null),ref:c,children:[(()=>{const e=I?`${U("pdisk")} ${I}`:U("pdisk"),t=R||U("node");return(0,W.jsx)(d.mg,{titleTemplate:`%s - ${e} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=R?`${U("fqdn")}: ${R}`:void 0,t=$?`${U("node")}: ${$}`:void 0;return(0,W.jsx)(k.B,{loading:A,items:[e,t,V,B],className:ve("meta")})})(),(0,W.jsxs)("div",{className:ve("title"),children:[(0,W.jsx)(u.$,{entityName:U("pdisk"),status:(0,N.XY)(G),id:(0,N.r$)(S,I)}),(0,W.jsx)(ee,{decommission:H})]}),(0,W.jsxs)("div",{className:ve("controls"),children:[(0,W.jsxs)(m.B,{onConfirmAction:J,onConfirmActionSuccess:Y,buttonDisabled:!E||!t,buttonView:"normal",dialogHeader:U("restart-pdisk-dialog-header"),dialogText:U("restart-pdisk-dialog-text"),retryButtonText:U("force-restart-pdisk-button"),withPopover:!0,popoverContent:U("restart-pdisk-not-allowed"),popoverDisabled:t,children:[(0,W.jsx)(n.I,{data:o.A}),U("restart-pdisk-button")]}),s?(0,W.jsx)(X,{decommission:H,onConfirmAction:F,onConfirmActionSuccess:Y,buttonDisabled:!E||!t,popoverDisabled:t}):null]}),_.error?(0,W.jsx)(p.o,{error:_.error}):null,A?(0,W.jsx)(g.y,{className:ve("info"),rows:10}):(0,W.jsx)(v.Q,{pDisk:L,nodeId:S,className:ve("info")}),(0,W.jsx)("div",{className:ve("tabs"),children:(0,W.jsx)(a.t,{size:"l",items:fe,activeTab:z,wrapTo:({id:e},t)=>{const s=E?(0,f.Ck)(I,S,{activeTab:e}):void 0;return(0,W.jsx)(h.E,{to:s,children:t},e)}})}),(()=>{switch(z){case"diskDistribution":return L?(0,W.jsx)("div",{className:ve("disk-distribution"),children:(0,W.jsx)(me,{data:L})}):null;case"storage":return E?(0,W.jsx)(C.p,{nodeId:S,pDiskId:I,parentRef:c}):null;default:return null}})()]})}},76938:(e,t,s)=>{s.d(t,{A:()=>o});var i=s(59284);const o=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5Z",clipRule:"evenodd"}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/439.b6c8d07e.chunk.js b/ydb/core/viewer/monitoring/static/js/439.b6c8d07e.chunk.js deleted file mode 100644 index 8ab7a7113fd..00000000000 --- a/ydb/core/viewer/monitoring/static/js/439.b6c8d07e.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[439],{49001:(e,t,n)=>{"use strict";n.d(t,{u:()=>v});var a=n(59284),s=n(96873);const o=(0,n(98192).o)("definition-list");const l=e=>"label"in e&&!("name"in e);function i(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function r({copyText:e,content:t,copyPosition:n}){const l="inside"===n,i=null!==t&&void 0!==t?t:"\u2014";return e?a.createElement("div",{className:o("copy-container",{"icon-inside":l})},a.createElement("span",null,i),a.createElement(s.b,{size:"s",text:e,className:o("copy-button"),view:l?"raised":"flat-secondary"})):i}var c=n(98089);function d({label:e}){return a.createElement("div",{className:o("title")},a.createElement(c.E,{variant:"subheader-1",color:"complementary"},e))}var m=n(6170);function u({note:e}){if(!e)return null;const t=o("item-note-tooltip");return"string"===typeof e?a.createElement(m.B,{className:t,content:e,placement:["bottom","top"]}):"object"===typeof e?a.createElement(m.B,Object.assign({className:t,placement:["bottom","top"]},e)):null}function p({note:e,name:t,nameTitle:n,multilineName:s}){const l=a.createElement(a.Fragment,null,"\xa0",a.createElement(u,{note:e}));return a.createElement(a.Fragment,null,a.createElement("div",{className:o("term-wrapper")},a.createElement("span",{title:i(n,t)},t),s&&l),!s&&l,a.createElement("div",{className:o("dots",{"with-note":Boolean(e)})}))}function v({items:e,responsive:t,nameMaxWidth:n,contentMaxWidth:s="auto",className:c,itemClassName:m,copyPosition:u="outside",qa:v}){const h=n?{flexBasis:n}:{},E="number"===typeof s?{flexBasis:s,maxWidth:s}:{},b=a.useMemo((()=>function(e){return e.reduce(((e,t)=>{var n;if(l(t)){e.push({label:t.label});const a=[...null!==(n=t.items)&&void 0!==n?n:[]].map((e=>Object.assign(Object.assign({},e),{isGrouped:!0})));e.push(...a)}else e.push(t);return e}),[])}(e).map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[e]);return a.createElement("dl",{className:o({responsive:t},c),"data-qa":v},b.map((e=>{if(l(e)){const{key:t,label:n}=e;return a.createElement(d,{key:t,label:n})}const{name:t,key:n,content:s,contentTitle:c,nameTitle:v,copyText:b,note:f,multilineName:y,isGrouped:w}=e;return a.createElement("div",{key:n,className:o("item",{grouped:w},m)},a.createElement("dt",{className:o("term-container",{multiline:y}),style:h},a.createElement(p,{name:t,nameTitle:v,note:f,multilineName:y})),a.createElement("dd",{className:o("definition"),title:i(c,s),style:Object.assign(Object.assign({},E),{lineBreak:"string"===typeof s&&(N=20,function(e){return e.split(/\s+/).some((e=>e.length>N))})(s)?"anywhere":void 0})},a.createElement(r,{copyPosition:u,copyText:b,content:s})));var N})))}},6170:(e,t,n)=>{"use strict";n.d(t,{B:()=>c});var a=n(59284),s=n(73633),o=n(84375),l=n(99991);const i=(0,n(98192).o)("help-popover"),r=16;function c(e){var t;return a.createElement(o.A,Object.assign({},e,{className:i(null,e.className)}),a.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:i("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),a.createElement(l.I,{data:s.A,size:r})))}},98192:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var a=n(82435);(0,a.withNaming)({e:"__",m:"_",v:"_"});const s=(0,a.withNaming)({n:"gc-",e:"__",m:"_",v:"_"})},76938:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(59284);const s=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5Z",clipRule:"evenodd"}))},18677:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(59284);const s=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},74321:(e,t,n)=>{"use strict";n.d(t,{S:()=>c});var a=n(59284),s=n(64222),o=n(46898);function l(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M4 7h9v3H4z"}))}function i(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const r=(0,n(69220).om)("checkbox"),c=a.forwardRef((function(e,t){const{size:n="m",indeterminate:c,disabled:d=!1,content:m,children:u,title:p,style:v,className:h,qa:E}=e,{checked:b,inputProps:f}=(0,s.v)(e),y=m||u,w=a.createElement("span",{className:r("indicator")},a.createElement("span",{className:r("icon"),"aria-hidden":!0},c?a.createElement(l,{className:r("icon-svg",{type:"dash"})}):a.createElement(i,{className:r("icon-svg",{type:"tick"})})),a.createElement("input",Object.assign({},f,{className:r("control")})),a.createElement("span",{className:r("outline")}));return a.createElement(o.m,{ref:t,title:p,style:v,size:n,disabled:d,className:r({size:n,disabled:d,indeterminate:c,checked:b},h),qa:E,control:w},y)}))},2198:(e,t,n)=>{"use strict";n.d(t,{l:()=>K});var a=n(59284),s=n(72630),o=n(14794),l=n(18670),i=n(98392),r=n(19225),c=n(69220),d=n(99635),m=n(6826);const u=(0,c.om)("modal");function p({open:e=!1,keepMounted:t=!1,disableBodyScrollLock:n=!1,disableEscapeKeyDown:c,disableOutsideClick:p,disableFocusTrap:v,disableAutoFocus:h,focusTrap:E=!0,autoFocus:b=!0,restoreFocusRef:f,onEscapeKeyDown:y,onEnterKeyDown:w,onOutsideClick:N,onClose:g,onTransitionEnter:x,onTransitionEntered:k,onTransitionExit:C,onTransitionExited:O,children:T,style:j,contentOverflow:B="visible",className:K,contentClassName:D,"aria-labelledby":A,"aria-label":L,container:R,qa:_}){const z=a.useRef(null),F=a.useRef(null),[M,P]=a.useState(!1);(0,o.y)({enabled:!n&&(e||M)});const S=(0,l.s)({enabled:e||M,restoreFocusRef:f,focusTrapped:!0});return(0,d.Z)({open:e,disableEscapeKeyDown:c,disableOutsideClick:p,onEscapeKeyDown:y,onEnterKeyDown:w,onOutsideClick:N,onClose:g,contentRefs:[F],type:"modal"}),a.createElement(s.A,{nodeRef:z,in:e,addEndListener:e=>{var t;return null===(t=z.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,m.L)(u),mountOnEnter:!t,unmountOnExit:!t,appear:!0,onEnter:()=>{P(!0),null===x||void 0===x||x()},onExit:()=>{P(!0),null===C||void 0===C||C()},onEntered:()=>{P(!1),null===k||void 0===k||k()},onExited:()=>{P(!1),null===O||void 0===O||O()}},a.createElement(i.Z,{container:R},a.createElement("div",{ref:z,style:j,className:u({open:e},K),"data-qa":_},a.createElement("div",{className:u("content-aligner")},a.createElement("div",{className:u("content-wrapper")},a.createElement(r.s,{enabled:!v&&E&&e&&!M,autoFocus:!h&&b},a.createElement("div",Object.assign({ref:F,tabIndex:-1,role:"dialog","aria-modal":e,"aria-label":L,"aria-labelledby":A,className:u("content",{"has-scroll":"auto"===B},D)},S),T)))))))}var v=n(81240),h=n(84476),E=n(99991),b=n(72837);const f=JSON.parse('{"close":"Close dialog"}'),y=JSON.parse('{"close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e"}'),w=(0,b.N)({en:f,ru:y},"Dialog"),N=(0,c.om)("dialog-btn-close");function g({onClose:e}){return a.createElement("div",{className:N()},a.createElement(h.$,{view:"flat",size:"l",className:N("btn"),onClick:t=>e(t,{isOutsideClick:!1}),extraProps:{"aria-label":w("close")}},a.createElement(E.I,{data:v.A,size:20})))}const x=(0,c.om)("dialog-body");const k=(0,c.om)("dialog-divider");var C=n(39238);const O=(0,c.om)("dialog-footer");class T extends a.Component{constructor(){super(...arguments),this.errorTooltipRef=a.createRef(),this.handleKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.onClickButtonApply&&this.props.onClickButtonApply(e))}}componentDidMount(){this.props.listenKeyEnter&&this.attachKeyDownListeners()}componentDidUpdate(e){!this.props.listenKeyEnter&&e.listenKeyEnter&&this.detachKeyDownListeners(),this.props.listenKeyEnter&&!e.listenKeyEnter&&this.attachKeyDownListeners()}componentWillUnmount(){this.detachKeyDownListeners()}render(){const{onClickButtonCancel:e,onClickButtonApply:t,loading:n,textButtonCancel:s,textButtonApply:o,propsButtonCancel:l,propsButtonApply:i,preset:r,children:c,errorText:d,showError:m,renderButtons:u,className:p}=this.props,v=a.createElement("div",{className:O("button",{action:"cancel"})},a.createElement(h.$,Object.assign({view:o?"flat":"normal",size:"l",width:"max",onClick:e,disabled:n},l),s)),E=a.createElement("div",{className:O("button",{action:"apply"})},a.createElement(h.$,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:n,className:O("button-apply",{preset:r})},i),o),d&&a.createElement(C.z,{open:m,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},a.createElement("div",{className:O("error")},d)));return a.createElement("div",{className:O(null,p)},a.createElement("div",{className:O("children")},c),a.createElement("div",{className:O("bts-wrapper")},u?u(E,v):a.createElement(a.Fragment,null,s&&v,o&&E)))}attachKeyDownListeners(){setTimeout((()=>{window.addEventListener("keydown",this.handleKeyDown)}),0)}detachKeyDownListeners(){window.removeEventListener("keydown",this.handleKeyDown)}}T.defaultProps={preset:"default",showError:!1,listenKeyEnter:!1};const j=(0,c.om)("dialog-header");const B=(0,c.om)("dialog");class K extends a.Component{constructor(){super(...arguments),this.handleCloseButtonClick=e=>{const{onClose:t}=this.props;t(e.nativeEvent,"closeButtonClick")}}render(){const{container:e,children:t,open:n,disableBodyScrollLock:s,disableEscapeKeyDown:o,disableOutsideClick:l,disableFocusTrap:i,disableAutoFocus:r,restoreFocusRef:c,keepMounted:d,size:m,contentOverflow:u="visible",className:v,modalClassName:h,hasCloseButton:E,onEscapeKeyDown:b,onEnterKeyDown:f,onOutsideClick:y,onClose:w,onTransitionEnter:N,onTransitionEntered:x,onTransitionExit:k,onTransitionExited:C,"aria-label":O,"aria-labelledby":T,qa:j}=this.props;return a.createElement(p,{open:n,contentOverflow:u,disableBodyScrollLock:s,disableEscapeKeyDown:o,disableOutsideClick:l,disableFocusTrap:i,disableAutoFocus:r,restoreFocusRef:c,keepMounted:d,onEscapeKeyDown:b,onEnterKeyDown:f,onOutsideClick:y,onClose:w,onTransitionEnter:N,onTransitionEntered:x,onTransitionExit:k,onTransitionExited:C,className:B("modal",h),"aria-label":O,"aria-labelledby":T,container:e,qa:j},a.createElement("div",{className:B({size:m,"has-close":E,"has-scroll":"auto"===u},v)},t,E&&a.createElement(g,{onClose:this.handleCloseButtonClick})))}}K.defaultProps={disableBodyScrollLock:!1,disableEscapeKeyDown:!1,disableOutsideClick:!1,keepMounted:!1,hasCloseButton:!0},K.Footer=T,K.Header=function(e){const{caption:t="",insertBefore:n,insertAfter:s,className:o,id:l}=e;return a.createElement("div",{className:j(null,o)},n,a.createElement("div",{className:j("caption"),id:l},t),s)},K.Body=function(e){const{className:t,hasBorders:n=!1}=e;return a.createElement("div",{className:x({"has-borders":n},t)},e.children)},K.Divider=function({className:e}){return a.createElement("div",{className:k(null,e)})}},18143:(e,t,n)=>{"use strict";n.d(t,{k:()=>m});var a=n(59284);const s=(0,n(69220).om)("progress");function o(e){const{text:t,offset:n=0}=e;return t?a.createElement("div",{className:s("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-n}%))`}},t):null}function l({item:e}){const{value:t,color:n,className:o,theme:l,title:i,content:r,loading:c}=e,d={loading:c};return"undefined"===typeof n&&(d.theme=l||"default"),Number.isFinite(t)?a.createElement("div",{className:s("item",d,o),style:{width:`${t}%`,backgroundColor:n},title:i},r):null}function i(e){return e<100?e-100:0}function r(e){const{theme:t,colorStops:n,colorStopsValue:a,value:s}=e;if(n){const e=n.find(((e,t)=>{const o="number"===typeof a?a:s,l=t>1?n[t-1].stop:0,i=t<n.length-1?e.stop:100;return o>=l&&o<=i}));return e?e.theme:t}return t}function c(e){const{stack:t,stackClassName:n,value:r,text:c}=e,d=i(r||function(e){return e.reduce(((e,{value:t})=>e+t),0)}(t));return a.createElement("div",{className:s("stack",n),style:{transform:`translateX(calc(var(--g-flow-direction) * ${d}%))`}},a.createElement("div",{className:s("item"),style:{width:-d+"%"}}),t.map(((e,t)=>a.createElement(l,{key:t,item:e}))),a.createElement(o,{offset:d,text:c}))}function d(e){const{value:t,loading:n,text:l}=e,c=i(t);return Number.isFinite(t)?a.createElement("div",{className:s("item",{theme:r(e),loading:n}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${c}%))`}},a.createElement(o,{offset:c,text:l})):null}const m=a.forwardRef((function(e,t){const{text:n="",theme:o="default",size:l="m",loading:i=!1,className:r,qa:m}=e,u=Object.assign(Object.assign({},e),{text:n,theme:o,size:l,loading:i});return a.createElement("div",{ref:t,className:s({size:l},r),"data-qa":m},a.createElement("div",{className:s("text")},n),function(e){return void 0!==e.stack}(u)?a.createElement(c,Object.assign({},u)):a.createElement(d,Object.assign({},u)))}))},43665:e=>{e.exports=function(e,t,n,a){for(var s=-1,o=null==e?0:e.length;++s<o;){var l=e[s];t(a,l,n(l),e)}return a}},81061:(e,t,n)=>{var a=n(75125);e.exports=function(e,t,n,s){return a(e,(function(e,a,o){t(s,e,n(e),o)})),s}},2680:(e,t,n)=>{var a=n(43665),s=n(81061),o=n(28293),l=n(19305);e.exports=function(e,t){return function(n,i){var r=l(n)?a:s,c=t?t():{};return r(n,e,o(i,2),c)}}},78018:(e,t,n)=>{var a=n(80472),s=n(2680),o=Object.prototype.hasOwnProperty,l=s((function(e,t,n){o.call(e,n)?e[n].push(t):a(e,n,[t])}));e.exports=l},63126:(e,t,n)=>{"use strict";n.d(t,{G:()=>c});var a=n(60712),s=n(59284),o=n(40569),l=n(53302);const i="--ydb-tree-view-level",r=(0,l.o)("ydb-tree-view");function c({children:e,name:t,title:n,icon:l,collapsed:c=!0,active:d=!1,onClick:m,onArrowClick:u,onActionsOpenToggle:p,hasArrow:v=!1,actions:h,additionalNodeElements:E,level:b}){const f=s.useCallback((e=>{if(!m)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||m()}),[m]),y=u||m;let w="tree-view_arrow",N="tree-view_children";return c&&(w+=" tree-view_arrow-collapsed",N+=" tree-view_children-collapsed"),(0,a.jsx)("div",{className:r(),style:{[i]:b},children:(0,a.jsxs)("div",{className:"tree-view",children:[(0,a.jsxs)("div",{className:`tree-view_item ${r("item",{active:d})}`,onClick:f,children:[(0,a.jsx)("button",{type:"button",className:`${w} ${r("arrow",{collapsed:c,hidden:!v})}`,disabled:!y,onClick:y}),(0,a.jsxs)("div",{className:r("content"),children:[l&&(0,a.jsx)("div",{className:r("icon"),children:l}),(0,a.jsx)("div",{className:r("text"),title:n,children:t}),h&&h.length>0&&(0,a.jsxs)("div",{className:r("actions"),children:[E,(0,a.jsx)(o.r,{onOpenToggle:p,defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:h})]})]})]}),(0,a.jsx)("div",{className:`${N} ${r("container",{collapsed:c})}`,children:c?null:e})]})})}},53302:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});const a=(0,n(82435).withNaming)({e:"__",m:"_"})}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4534.b98f1389.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/4534.b98f1389.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/4534.b98f1389.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/4534.b98f1389.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/4542.18433910.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/4542.18433910.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/4542.18433910.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/4542.18433910.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/4582.5bf174ff.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/4582.5bf174ff.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/4582.5bf174ff.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/4582.5bf174ff.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/4614.3993436e.chunk.js b/ydb/core/viewer/monitoring/static/js/4614.3993436e.chunk.js deleted file mode 100644 index 518d1a07b15..00000000000 --- a/ydb/core/viewer/monitoring/static/js/4614.3993436e.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4614],{79737:(e,t,a)=>{"use strict";a.d(t,{A:()=>o,X:()=>l});var n=a(5874),r=a(77506),i=a(60712);const s=(0,r.cn)("ydb-table");function o({children:e,className:t}){return(0,i.jsx)("div",{className:s("table-header-content",t),children:e})}function l({className:e,width:t,wrapperClassName:a,...r}){return(0,i.jsx)("div",{className:s(null,a),children:(0,i.jsx)(n.W,{headerCellClassName:({column:e})=>{var t;const a=null===(t=e.columnDef.meta)||void 0===t?void 0:t.align;return s("table-header-cell",{align:a})},cellClassName:e=>{var t,a;const n=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,r=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return s("table-cell",{align:n,"vertical-align":r})},className:s("table",{width:t},e),...r})})}},76768:(e,t,a)=>{"use strict";a.d(t,{C:()=>b});var n=a(44992),r=a(44508),i=a(53850),s=a(62060),o=a.n(s),l=a(21334),c=a(24600);const d=l.F.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getTabletsInfo(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),u=(0,i.Mz)((e=>e),(e=>d.endpoints.getTabletsInfo.select(e)),{argsMemoize:i.i5,argsMemoizeOptions:{equalityCheck:o()}}),p=(0,i.Mz)((e=>e),((e,t)=>u(t)),((e,t)=>t(e).data)),m=(0,i.Mz)(((e,t)=>p(e,t)),(e=>(0,c.E)(e)),((e,t)=>null!==e&&void 0!==e&&e.TabletStateInfo?t?e.TabletStateInfo.map((e=>{const a=void 0===e.NodeId?void 0:t.get(e.NodeId);return{...e,fqdn:a}})):e.TabletStateInfo:[]));var h=a(77506),v=a(90182),g=a(88616),y=a(60712);const x=(0,h.cn)("tablets");function b({nodeId:e,path:t,database:a,className:i}){const[s]=(0,v.Nt)();let o={};const l=void 0===e?void 0:String(e);void 0!==l?o={nodeId:l,database:a}:t&&(o={path:t,database:a});const{currentData:c,isFetching:u,error:p}=d.useGetTabletsInfoQuery(0===Object.keys(o).length?n.hT:o,{pollingInterval:s}),h=u&&void 0===c,b=(0,v.N4)((e=>m(e,o)));return(0,y.jsxs)("div",{className:x(null,i),children:[p?(0,y.jsx)(r.o,{error:p}):null,c||h?(0,y.jsx)(g.Q,{tablets:b,database:a,loading:h}):null]})}},37875:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Tenant:()=>Jv});var n=a(59284),r=a(61750),i=a(67087),s=a(64689),o=a(98167),l=a(61283),c=a(77506),d=a(60712);const u=(0,c.cn)("kv-split"),p=[0,100],m=[50,50];const h=function(e){const[t,a]=n.useState(),r=t=>{const{defaultSizePaneKey:a}=e;localStorage.setItem(a,t.join(","))};return n.useEffect((()=>{const{collapsedSizes:t,triggerCollapse:n}=e;if(n){const e=t||p;r(e),a(e)}}),[e.triggerCollapse]),n.useEffect((()=>{const{triggerExpand:t,defaultSizes:n}=e,i=n||m;t&&(r(i),a(i))}),[e.triggerExpand]),(0,d.jsx)(n.Fragment,{children:(0,d.jsx)(l.A,{direction:e.direction||"horizontal",sizes:t||(()=>{var t;const{defaultSizePaneKey:a,defaultSizes:n=m,initialSizes:r}=e;if(r)return r;return(null===(t=localStorage.getItem(a))||void 0===t?void 0:t.split(",").map(Number))||n})(),minSize:e.minSize||[0,0],onDrag:t=>{const{onSplitDragAdditional:a}=e;a&&a(),r(t)},className:u(null,e.direction||"horizontal"),gutterSize:8,onDragStart:()=>{const{onSplitStartDragAdditional:t}=e;t&&t(),a(void 0)},expandToMin:!0,children:e.children})})};var v,g,y=a(40174),x=a(53850),b=a(44992);let f,S;var E;let T,N;var j,C,w,P,I;let D;var A,_,R,O,M,k,L;!function(e){e.StatusSuccess="StatusSuccess",e.StatusAccepted="StatusAccepted",e.StatusPathDoesNotExist="StatusPathDoesNotExist",e.StatusPathIsNotDirectory="StatusPathIsNotDirectory",e.StatusAlreadyExists="StatusAlreadyExists",e.StatusSchemeError="StatusSchemeError",e.StatusNameConflict="StatusNameConflict",e.StatusInvalidParameter="StatusInvalidParameter",e.StatusMultipleModifications="StatusMultipleModifications",e.StatusReadOnly="StatusReadOnly",e.StatusTxIdNotExists="StatusTxIdNotExists",e.StatusTxIsNotCancellable="StatusTxIsNotCancellable",e.StatusAccessDenied="StatusAccessDenied",e.StatusNotAvailable="StatusNotAvailable",e.StatusPreconditionFailed="StatusPreconditionFailed",e.StatusRedirectDomain="StatusRedirectDomain",e.StatusQuotaExceeded="StatusQuotaExceeded",e.StatusResourceExhausted="StatusResourceExhausted"}(v||(v={})),function(e){e.UNKNOWN="UNKNOWN",e.USER="USER",e.GROUP="GROUP"}(g||(g={})),function(e){e.EPathTypeInvalid="EPathTypeInvalid",e.EPathTypeDir="EPathTypeDir",e.EPathTypeTable="EPathTypeTable",e.EPathTypePersQueueGroup="EPathTypePersQueueGroup",e.EPathTypeSubDomain="EPathTypeSubDomain",e.EPathTypeTableIndex="EPathTypeTableIndex",e.EPathTypeExtSubDomain="EPathTypeExtSubDomain",e.EPathTypeColumnStore="EPathTypeColumnStore",e.EPathTypeColumnTable="EPathTypeColumnTable",e.EPathTypeCdcStream="EPathTypeCdcStream",e.EPathTypeExternalDataSource="EPathTypeExternalDataSource",e.EPathTypeExternalTable="EPathTypeExternalTable",e.EPathTypeView="EPathTypeView",e.EPathTypeReplication="EPathTypeReplication"}(f||(f={})),function(e){e.EPathSubTypeEmpty="EPathSubTypeEmpty",e.EPathSubTypeSyncIndexImplTable="EPathSubTypeSyncIndexImplTable",e.EPathSubTypeAsyncIndexImplTable="EPathSubTypeAsyncIndexImplTable",e.EPathSubTypeStreamImpl="EPathSubTypeStreamImpl"}(S||(S={})),function(e){e.EPathStateNotExist="EPathStateNotExist",e.EPathStateNoChanges="EPathStateNoChanges",e.EPathStateCreate="EPathStateCreate",e.EPathStateAlter="EPathStateAlter",e.EPathStateDrop="EPathStateDrop",e.EPathStateCopying="EPathStateCopying",e.EPathStateBackup="EPathStateBackup",e.EPathStateUpgrade="EPathStateUpgrade",e.EPathStateMigrated="EPathStateMigrated",e.EPathStateRestore="EPathStateRestore",e.EPathStateMoving="EPathStateMoving"}(E||(E={})),function(e){e.ColumnCodecPlain="ColumnCodecPlain",e.ColumnCodecLZ4="ColumnCodecLZ4",e.ColumnCodecZSTD="ColumnCodecZSTD"}(T||(T={})),function(e){e.UNIT_AUTO="UNIT_AUTO",e.UNIT_SECONDS="UNIT_SECONDS",e.UNIT_MILLISECONDS="UNIT_MILLISECONDS",e.UNIT_MICROSECONDS="UNIT_MICROSECONDS",e.UNIT_NANOSECONDS="UNIT_NANOSECONDS"}(N||(N={})),function(e){e.ECdcStreamModeInvalid="ECdcStreamModeInvalid",e.ECdcStreamModeKeysOnly="ECdcStreamModeKeysOnly",e.ECdcStreamModeUpdate="ECdcStreamModeUpdate",e.ECdcStreamModeNewImage="ECdcStreamModeNewImage",e.ECdcStreamModeOldImage="ECdcStreamModeOldImage",e.ECdcStreamModeNewAndOldImages="ECdcStreamModeNewAndOldImages"}(j||(j={})),function(e){e.ECdcStreamFormatInvalid="ECdcStreamFormatInvalid",e.ECdcStreamFormatProto="ECdcStreamFormatProto",e.ECdcStreamFormatJson="ECdcStreamFormatJson"}(C||(C={})),function(e){e.ECdcStreamStateInvalid="ECdcStreamStateInvalid",e.ECdcStreamStateReady="ECdcStreamStateReady",e.ECdcStreamStateDisabled="ECdcStreamStateDisabled"}(w||(w={})),function(e){e.HASH_FUNCTION_MODULO_N="HASH_FUNCTION_MODULO_N",e.HASH_FUNCTION_CLOUD_LOGS="HASH_FUNCTION_CLOUD_LOGS"}(P||(P={})),function(e){e.COLUMN_ENGINE_NONE="COLUMN_ENGINE_NONE",e.COLUMN_ENGINE_REPLACING_TIMESERIES="COLUMN_ENGINE_REPLACING_TIMESERIES"}(I||(I={})),function(e){e.METERING_MODE_RESERVED_CAPACITY="METERING_MODE_RESERVED_CAPACITY",e.METERING_MODE_REQUEST_UNITS="METERING_MODE_REQUEST_UNITS"}(D||(D={})),function(e){e.SysLog="SysLog",e.Log="Log",e.Data="Data",e.External="External"}(A||(A={})),function(e){e.Unspecified="Unspecified",e.Freeze="Freeze",e.Unfreeze="Unfreeze"}(_||(_={})),function(e){e.ColumnCacheNone="ColumnCacheNone",e.ColumnCacheOnce="ColumnCacheOnce",e.ColumnCacheEver="ColumnCacheEver"}(R||(R={})),function(e){e.ColumnStorage1="ColumnStorage1",e.ColumnStorage2="ColumnStorage2",e.ColumnStorage1Ext1="ColumnStorage1Ext1",e.ColumnStorage1Ext2="ColumnStorage1Ext2",e.ColumnStorage2Ext1="ColumnStorage2Ext1",e.ColumnStorage2Ext2="ColumnStorage2Ext2",e.ColumnStorage1Med2Ext2="ColumnStorage1Med2Ext2",e.ColumnStorage2Med2Ext2="ColumnStorage2Med2Ext2",e.ColumnStorageTest_1_2_1k="ColumnStorageTest_1_2_1k"}(O||(O={})),function(e){e.CompactionStrategyUnset="CompactionStrategyUnset",e.CompactionStrategyGenerational="CompactionStrategyGenerational",e.CompactionStrategySharded="CompactionStrategySharded"}(M||(M={})),function(e){e.EIndexTypeInvalid="EIndexTypeInvalid",e.EIndexTypeGlobal="EIndexTypeGlobal",e.EIndexTypeGlobalAsync="EIndexTypeGlobalAsync"}(k||(k={})),function(e){e.EIndexStateInvalid="EIndexStateInvalid",e.EIndexStateReady="EIndexStateReady",e.EIndexStateNotReady="EIndexStateNotReady",e.EIndexStateWriteOnly="EIndexStateWriteOnly"}(L||(L={}));const z={[S.EPathSubTypeSyncIndexImplTable]:"index_table",[S.EPathSubTypeAsyncIndexImplTable]:"index_table",[S.EPathSubTypeStreamImpl]:void 0,[S.EPathSubTypeEmpty]:void 0},F={[f.EPathTypeInvalid]:void 0,[f.EPathTypeSubDomain]:"database",[f.EPathTypeExtSubDomain]:"database",[f.EPathTypeDir]:"directory",[f.EPathTypeColumnStore]:"directory",[f.EPathTypeTable]:"table",[f.EPathTypeTableIndex]:"index",[f.EPathTypeColumnTable]:"column_table",[f.EPathTypeCdcStream]:"stream",[f.EPathTypePersQueueGroup]:"topic",[f.EPathTypeExternalDataSource]:"external_data_source",[f.EPathTypeExternalTable]:"external_table",[f.EPathTypeView]:"view",[f.EPathTypeReplication]:"async_replication"},U={table:f.EPathTypeTable,index:f.EPathTypeTableIndex,column_table:f.EPathTypeColumnTable,external_table:f.EPathTypeExternalTable,view:f.EPathTypeView},q=(e=f.EPathTypeDir,t,a="directory")=>t&&z[t]||F[e]||a,Q={[S.EPathSubTypeSyncIndexImplTable]:"Secondary Index Table",[S.EPathSubTypeAsyncIndexImplTable]:"Secondary Index Table",[S.EPathSubTypeStreamImpl]:void 0,[S.EPathSubTypeEmpty]:void 0},B={[f.EPathTypeInvalid]:void 0,[f.EPathTypeSubDomain]:"Database",[f.EPathTypeExtSubDomain]:"Database",[f.EPathTypeDir]:"Directory",[f.EPathTypeTable]:"Table",[f.EPathTypeTableIndex]:"Secondary Index",[f.EPathTypeColumnStore]:"Tablestore",[f.EPathTypeColumnTable]:"Column-oriented table",[f.EPathTypeCdcStream]:"Changefeed",[f.EPathTypePersQueueGroup]:"Topic",[f.EPathTypeExternalDataSource]:"External Data Source",[f.EPathTypeExternalTable]:"External Table",[f.EPathTypeView]:"View",[f.EPathTypeReplication]:"Async Replication"},$={UnknownTenantType:"Database",Domain:"Cluster Root",Dedicated:"Dedicated Database",Shared:"Shared Database",Serverless:"Serverless Database"},G={[f.EPathTypeTable]:!0,[f.EPathTypeColumnTable]:!0,[f.EPathTypeExternalTable]:!0,[f.EPathTypeView]:!0,[f.EPathTypeInvalid]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeSubDomain]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeExtSubDomain]:!1,[f.EPathTypeColumnStore]:!1,[f.EPathTypeCdcStream]:!1,[f.EPathTypePersQueueGroup]:!1,[f.EPathTypeExternalDataSource]:!1,[f.EPathTypeReplication]:!1},H=e=>{var t;return null!==(t=e&&G[e])&&void 0!==t&&t},W={[S.EPathSubTypeSyncIndexImplTable]:!0,[S.EPathSubTypeAsyncIndexImplTable]:!0,[S.EPathSubTypeStreamImpl]:!1,[S.EPathSubTypeEmpty]:!1},V=e=>{var t;return null!==(t=e&&W[e])&&void 0!==t&&t},J={[f.EPathTypeColumnStore]:!0,[f.EPathTypeColumnTable]:!0,[f.EPathTypeInvalid]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeTable]:!1,[f.EPathTypeSubDomain]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeExtSubDomain]:!1,[f.EPathTypeCdcStream]:!1,[f.EPathTypePersQueueGroup]:!1,[f.EPathTypeExternalDataSource]:!1,[f.EPathTypeExternalTable]:!1,[f.EPathTypeView]:!1,[f.EPathTypeReplication]:!1},Y=e=>{var t;return null!==(t=e&&J[e])&&void 0!==t&&t},K={[f.EPathTypeSubDomain]:!0,[f.EPathTypeExtSubDomain]:!0,[f.EPathTypeInvalid]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeColumnStore]:!1,[f.EPathTypeColumnTable]:!1,[f.EPathTypeTable]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeCdcStream]:!1,[f.EPathTypePersQueueGroup]:!1,[f.EPathTypeExternalDataSource]:!1,[f.EPathTypeExternalTable]:!1,[f.EPathTypeView]:!1,[f.EPathTypeReplication]:!1},Z=e=>{var t;return null!==(t=e&&K[e])&&void 0!==t&&t},X={[f.EPathTypeCdcStream]:!0,[f.EPathTypePersQueueGroup]:!1,[f.EPathTypeInvalid]:!1,[f.EPathTypeColumnStore]:!1,[f.EPathTypeColumnTable]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeTable]:!1,[f.EPathTypeSubDomain]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeExtSubDomain]:!1,[f.EPathTypeExternalDataSource]:!1,[f.EPathTypeExternalTable]:!1,[f.EPathTypeView]:!1,[f.EPathTypeReplication]:!1},ee=e=>{var t;return null!==(t=e&&X[e])&&void 0!==t&&t},te={[S.EPathSubTypeSyncIndexImplTable]:!0,[S.EPathSubTypeAsyncIndexImplTable]:!0,[S.EPathSubTypeStreamImpl]:!1,[S.EPathSubTypeEmpty]:!1},ae={[f.EPathTypeCdcStream]:!0,[f.EPathTypePersQueueGroup]:!0,[f.EPathTypeExternalDataSource]:!0,[f.EPathTypeExternalTable]:!0,[f.EPathTypeView]:!0,[f.EPathTypeReplication]:!0,[f.EPathTypeInvalid]:!1,[f.EPathTypeColumnStore]:!1,[f.EPathTypeColumnTable]:!1,[f.EPathTypeDir]:!1,[f.EPathTypeTable]:!1,[f.EPathTypeSubDomain]:!1,[f.EPathTypeTableIndex]:!1,[f.EPathTypeExtSubDomain]:!1},ne=(e,t)=>{var a;return null!==(a=t&&te[t]||e&&ae[e])&&void 0!==a&&a},re=(f.EPathTypeCdcStream,f.EPathTypePersQueueGroup,f.EPathTypeInvalid,f.EPathTypeColumnStore,f.EPathTypeColumnTable,f.EPathTypeDir,f.EPathTypeTable,f.EPathTypeSubDomain,f.EPathTypeTableIndex,f.EPathTypeExtSubDomain,f.EPathTypeExternalDataSource,f.EPathTypeExternalTable,f.EPathTypeView,f.EPathTypeReplication,e=>e===f.EPathTypeExternalTable),ie=e=>e===f.EPathTypeTable,se=e=>e===f.EPathTypeView;var oe=a(21334);const le=oe.F.injectEndpoints({endpoints:e=>({getMultiOverview:e.query({queryFn:async({paths:e,database:t},{signal:a})=>{try{return{data:await Promise.all(e.map((e=>window.api.viewer.getDescribe({path:e,database:t},{signal:a}))))}}catch(n){return{error:n}}},keepUnusedDataFor:0,providesTags:["All"]}),getOverview:e.query({queryFn:async({path:e,database:t,timeout:a},{signal:n})=>{try{return{data:await window.api.viewer.getDescribe({path:e,database:t,timeout:a},{signal:n})}}catch(r){return{error:r}}},keepUnusedDataFor:0,providesTags:["All"]})})}),ce=(0,x.Mz)((e=>e),((e,t)=>t),((e,t)=>le.endpoints.getOverview.select({path:e,database:t}))),de=(0,x.Mz)((e=>e),((e,t,a)=>ce(t,a)),((e,t)=>t(e).data)),ue=(0,x.Mz)([(e,t)=>t,(e,t,a)=>a,(e,t,a,n)=>((e,t,a)=>{var n,r;return null===(n=de(e,t,a))||void 0===n||null===(r=n.PathDescription)||void 0===r?void 0:r.Children})(e,t,n)],((e,t,a)=>ee(t)?null===a||void 0===a?void 0:a.map((({Name:t})=>e+"/"+t)):void 0));function pe({paths:e,database:t,autoRefreshInterval:a}){const[n,...r]=e,{currentData:i,isFetching:s,error:o}=le.useGetOverviewQuery({path:n,database:t},{pollingInterval:a}),{currentData:l,isFetching:c,error:d}=le.useGetMultiOverviewQuery(r.length?{paths:r,database:t}:b.hT,{pollingInterval:a});return{loading:s&&void 0===i||c&&void 0===l,error:o||d,mergedDescribe:[i,...null!==l&&void 0!==l?l:[]].reduce(((e,t)=>(null!==t&&void 0!==t&&t.Path&&(e[t.Path]=t),e)),{})}}var me=a(76086),he=a(90182),ve=a(22680),ge=a(52531),ye=a(23871),xe=a(52905),be=a(90053),fe=a(67028),Se=a(18517),Ee=a(24555),Te=a(74321),Ne=a(44508),je=a(52248),Ce=a(90565),we=a(49818),Pe=a(86200),Ie=a(61758),De=a.n(Ie),Ae=a(92459),_e=a(58351);const Re=(0,c.cn)("heatmap"),Oe={width:0,height:0},Me=10,ke=e=>{const[t,a]=n.useState(Oe),{tablets:r}=e,i=n.useRef(null),s=n.useRef(null);n.useEffect((()=>{const e=i.current,a=e.getContext("2d");a.clearRect(0,0,e.offsetWidth,e.offsetHeight),r.map(function(e){return(a,n)=>{const{columnsCount:r}=t,i=n%r*12,s=12*Math.floor(n/r);e.fillStyle=a.color||"grey",e.fillRect(i,s,Me,Me)}}(a))})),n.useLayoutEffect((()=>{const e=s.current;if(e){const t=e.offsetWidth-15,n=Math.floor(t/12),i=Math.ceil(r.length/n);a({width:t,height:12*i,columnsCount:n,rowsCount:i})}}),[]);const o=()=>{let e=i.current,t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},l=()=>{let e=i.current,t=0;for(;e;)t+=e.offsetLeft,e=e.offsetParent;return t},c=(e,a)=>{const{columnsCount:n}=t,r=Math.floor(e/12);return n*Math.floor(a/12)+r},u=De()(((t,a)=>{const n=new CustomEvent("scroll");window.dispatchEvent(n);const i=e.parentRef.current,s=t-l()+i.scrollLeft,d=a-o()+i.scrollTop,u=c(s,d),p=r[u];if(p){const n={name:p.currentMetric,value:p.formattedValue};e.showTooltip(void 0,p,"tablet",n,{left:t-20,top:a-20})}else e.hideTooltip()}),20);return(0,d.jsx)("div",{ref:s,className:Re("canvas-container"),onMouseLeave:()=>{setTimeout((()=>{e.hideTooltip()}),40)},children:(0,d.jsx)("canvas",{ref:i,width:t.width,height:t.height,onClick:t=>{const a=e.parentRef.current,n=t.clientX-l()+a.scrollLeft,i=t.clientY-o()+a.scrollTop,s=c(n,i),d=r[s];d&&window.open((e=>{const{TabletId:t}=e,a=window.location.hostname,n=(0,Ae.DM)(t);return`https://${[a,_e.P8,n].map((e=>e.startsWith("/")?e.slice(1):e)).filter(Boolean).join("/")}`})(d),"_blank")},onMouseMove:e=>u(e.clientX,e.clientY)})})},Le={r:255,g:4,b:0},ze={r:255,g:219,b:77},Fe={r:59,g:201,b:53},Ue={CPU:{min:0,max:1e6},Network:{min:0,max:1e9},Storage:{min:0,max:2e9},DataSize:{min:0,max:2e9},RowCount:{min:0},IndexSize:{min:0}},qe=e=>{const t=e.toString(16);return 1===t.length?`0${t}`:t},Qe=(e,t,a)=>{if(1===e)return[t];if(2===e)return[t,a];const n=(t.r-a.r)/(e-1),r=(t.g-a.g)/(e-1),i=(t.b-a.b)/(e-1),s=[];for(let o=0;o<e;o++)s.push({r:Math.round(t.r-n*o),g:Math.round(t.g-r*o),b:Math.round(t.b-i*o)});return s.map((e=>(({r:e,g:t,b:a})=>`#${qe(e)}${qe(t)}${qe(a)}`)(e)))},Be=e=>{const t=Math.floor(e/2),a=t+1;return[...Qe(e%2===0?t:t+1,Fe,ze),...Qe(a,ze,Le).slice(1)]},$e=(e,t)=>{const a=new Set,n=Ue[e]||{};t.forEach((t=>{var n;a.add(Number(null===(n=t.metrics)||void 0===n?void 0:n[e]))})),Number.isInteger(n.min)&&a.add(n.min),Number.isInteger(n.max)&&a.add(n.max);const r=Array.from(a.values()).sort(((e,t)=>e-t));return{min:r[0],max:r[r.length-1]}},Ge=(0,c.cn)("histogram"),He=e=>{const t=n.useRef(),{data:a={},maxCount:r}=e,{count:i,leftBound:s,rightBound:o,color:l}=a,c=i/r*100;return(0,d.jsx)("div",{ref:t,className:Ge("item"),style:{backgroundColor:l,height:`${c}%`},onMouseEnter:()=>{const a=t.current;e.showTooltip(a,{count:i,leftBound:s,rightBound:o},"histogram")},onMouseLeave:e.hideTooltip})},We=e=>{const{tablets:t,currentMetric:a}=e,{min:n,max:r}=$e(a,t),i=Be(50),s=(r-n)/50,o=i.map(((e,t)=>({color:e,count:0,leftBound:(0,Pe.ZV)(n+t*s),rightBound:(0,Pe.ZV)(n+(t+1)*s)})));let l=0;t.forEach((e=>{var t,n;const r=a&&Number(null===(t=e.metrics)||void 0===t?void 0:t[a]),i=Math.floor(r/s),c=(null===(n=o[i])||void 0===n?void 0:n.count)+1;c>l&&(l=c),o[i]={...o[i],count:c}}));return(0,d.jsx)("div",{className:Ge(),children:(0,d.jsxs)("div",{className:Ge("chart"),children:[Boolean(r)&&o.map(((t,a)=>(0,d.jsx)(He,{data:t,maxCount:l,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip},a))),(0,d.jsx)("div",{className:Ge("x-min"),children:(0,Pe.ZV)(n)}),(0,d.jsx)("div",{className:Ge("x-max"),children:(0,Pe.ZV)(r)}),(0,d.jsx)("div",{className:Ge("y-min"),children:"0"}),(0,d.jsx)("div",{className:Ge("y-max"),children:(0,Pe.ZV)(l)})]})})},Ve=(0,c.cn)("heatmap"),Je=Be(500),Ye=({path:e,database:t})=>{const a=(0,he.YQ)(),r=n.createRef(),[i]=(0,he.Nt)(),{currentData:s,isFetching:o,error:l}=Ce.f1.useGetHeatmapTabletsInfoQuery({path:e,database:t},{pollingInterval:i}),c=o&&void 0===s,{tablets:u=[],metrics:p}=s||{},{sort:m,heatmap:h,currentMetric:v}=(0,he.N4)((e=>e.heatmap)),g=(...e)=>{a((0,we.DK)(...e))},y=()=>{a((0,we.w7)())},x=e=>{a((0,Ce.nd)({currentMetric:e[0]}))},b=()=>{a((0,Ce.nd)({sort:!m}))},f=()=>{a((0,Ce.nd)({heatmap:!h}))},S=()=>{const{min:e,max:t}=$e(v,u),a=u.map((a=>{var n;const r=v&&Number(null===(n=a.metrics)||void 0===n?void 0:n[v]),i=((e,t,a)=>0===a?0:Math.round((e-t)/(a-t)*499))(r,e,t),s=Je[i];return{...a,color:s,value:r,formattedValue:(0,Pe.ZV)(r),currentMetric:v}})),n=m?a.sort(((e,t)=>Number(t.value)-Number(e.value))):a;return(0,d.jsx)("div",{ref:r,className:Ve("items"),children:(0,d.jsx)(ke,{tablets:n,parentRef:r,showTooltip:g,hideTooltip:y})})};return c?(0,d.jsx)(je.a,{}):(()=>{const{min:e,max:t}=$e(v,u);let a;return l&&!s||(a=h?S():(0,d.jsx)(We,{tablets:u,currentMetric:v,showTooltip:g,hideTooltip:y})),(0,d.jsxs)("div",{className:Ve(),children:[(0,d.jsxs)("div",{className:Ve("filters"),children:[(0,d.jsx)(Ee.l,{className:Ve("heatmap-select"),value:v?[v]:[],options:p,onUpdate:x,width:200}),(0,d.jsx)("div",{className:Ve("sort-checkbox"),children:(0,d.jsx)(Te.S,{onUpdate:b,checked:m,children:"Sort"})}),(0,d.jsx)("div",{className:Ve("histogram-checkbox"),children:(0,d.jsx)(Te.S,{onUpdate:f,checked:h,children:"Heatmap"})}),(0,d.jsxs)("div",{className:Ve("limits"),children:[(0,d.jsxs)("div",{className:Ve("limits-block"),children:[(0,d.jsx)("div",{className:Ve("limits-title"),children:"min:"}),(0,d.jsx)("div",{className:Ve("limits-value"),children:Number.isInteger(e)?(0,Pe.ZV)(e):"\u2014"})]}),(0,d.jsxs)("div",{className:Ve("limits-block"),children:[(0,d.jsx)("div",{className:Ve("limits-title"),children:"max:"}),(0,d.jsx)("div",{className:Ve("limits-value"),children:Number.isInteger(t)?(0,Pe.ZV)(t):"\u2014"})]}),(0,d.jsxs)("div",{className:Ve("limits-block"),children:[(0,d.jsx)("div",{className:Ve("limits-title"),children:"count:"}),(0,d.jsx)("div",{className:Ve("limits-value"),children:(0,Pe.ZV)(u.length)})]})]})]}),l?(0,d.jsx)(Ne.o,{error:l}):null,a]})})()};var Ke=a(7117),Ze=a(59109),Xe=a(17594),et=a(89073);const tt=oe.F.injectEndpoints({endpoints:e=>({getOperationList:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.getOperationList(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]}),cancelOperation:e.mutation({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.cancelOperation(e,{signal:t})}}catch(a){return{error:a}}}}),forgetOperation:e.mutation({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.forgetOperation(e,{signal:t})}}catch(a){return{error:a}}}})}),overrideExisting:"throw"});var at=a(28539),nt=a(95963),rt=a(48372);const it=JSON.parse('{"label_operations":"Operations","title_empty":"No operations data","pleaceholder_search":"Search operations","placeholder_kind":"Select operation kind","kind_ssBackgrounds":"SS/Backgrounds","kind_export":"Export","kind_buildIndex":"Build Index","column_operationId":"Operation ID","column_status":"Status","column_createdBy":"Created By","column_createTime":"Create Time","column_endTime":"End Time","column_duration":"Duration","label_duration-ongoing":"{{value}} (ongoing)","header_cancel":"Cancel operation","header_forget":"Forget operation","text_cancel":"The operation will be cancelled. Do you want to proceed?","text_forget":"The operation will be forgotten. Do you want to proceed?","text_forgotten":"The operation {{id}} has been forgotten","text_cancelled":"The operation {{id}} has been cancelled"}'),st=(0,rt.g4)("ydb-operations",{en:it}),ot="id",lt="status",ct="created_by",dt="create_time",ut="end_time",pt="duration",mt={[ot]:st("column_operationId"),[lt]:st("column_status"),[ct]:st("column_createdBy"),[dt]:st("column_createTime"),[ut]:st("column_endTime"),[pt]:st("column_duration")},ht=[{value:"export",content:st("kind_export")},{value:"ss/backgrounds",content:st("kind_ssBackgrounds")},{value:"buildindex",content:st("kind_buildIndex")}],vt=(0,c.cn)("operations");function gt({kind:e,searchValue:t,entitiesCountCurrent:a,entitiesCountTotal:r,entitiesLoading:i,handleKindChange:s,handleSearchChange:o}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(nt.v,{value:t,onChange:o,placeholder:st("pleaceholder_search"),className:vt("search")}),(0,d.jsx)(Ee.l,{value:[e],width:150,options:ht,onUpdate:e=>s(e[0])}),(0,d.jsx)(at.T,{label:st("label_operations"),loading:i,total:r,current:a})]})}var yt=a(14750),xt=a(58272),bt=a(45345),ft=a(98089),St=a(87184),Et=a(18650),Tt=a(99991),Nt=a(22983),jt=a(71661);let Ct,wt;!function(e){e.STATUS_CODE_UNSPECIFIED="STATUS_CODE_UNSPECIFIED",e.SUCCESS="SUCCESS",e.BAD_REQUEST="BAD_REQUEST",e.UNAUTHORIZED="UNAUTHORIZED",e.INTERNAL_ERROR="INTERNAL_ERROR",e.ABORTED="ABORTED",e.UNAVAILABLE="UNAVAILABLE",e.OVERLOADED="OVERLOADED",e.SCHEME_ERROR="SCHEME_ERROR",e.GENERIC_ERROR="GENERIC_ERROR",e.TIMEOUT="TIMEOUT",e.BAD_SESSION="BAD_SESSION",e.PRECONDITION_FAILED="PRECONDITION_FAILED",e.ALREADY_EXISTS="ALREADY_EXISTS",e.NOT_FOUND="NOT_FOUND",e.SESSION_EXPIRED="SESSION_EXPIRED",e.CANCELLED="CANCELLED",e.UNDETERMINED="UNDETERMINED",e.UNSUPPORTED="UNSUPPORTED",e.SESSION_BUSY="SESSION_BUSY",e.EXTERNAL_ERROR="EXTERNAL_ERROR"}(Ct||(Ct={})),function(e){e.STATE_UNSPECIFIED="STATE_UNSPECIFIED",e.STATE_PREPARING="STATE_PREPARING",e.STATE_TRANSFERING_DATA="STATE_TRANSFERING_DATA",e.STATE_APPLYING="STATE_APPLYING",e.STATE_DONE="STATE_DONE",e.STATE_CANCELLATION="STATE_CANCELLATION",e.STATE_CANCELLED="STATE_CANCELLED",e.STATE_REJECTION="STATE_REJECTION",e.STATE_REJECTED="STATE_REJECTED"}(wt||(wt={}));var Pt=a(59625);const It=function({name:e,title:t,type:a,content:n}){return Pt.X.add({name:null!==e&&void 0!==e?e:"Request succeeded",title:null!==t&&void 0!==t?t:"Request succeeded",theme:"error"===a?"danger":"success",content:n,isClosable:!0,autoHiding:"success"===a&&5e3})};var Dt=a(73891);function At({database:e,refreshTable:t}){return[{name:ot,header:mt[ot],width:340,render:({row:e})=>e.id?(0,d.jsx)(jt.s,{placement:["top","bottom"],content:e.id,children:e.id}):me.Pd},{name:lt,header:mt[lt],render:({row:e})=>e.status?(0,d.jsx)(ft.E,{color:e.status===Ct.SUCCESS?"positive":"danger",children:e.status}):me.Pd},{name:ct,header:mt[ct],render:({row:e})=>e.created_by?e.created_by:me.Pd},{name:dt,header:mt[dt],render:({row:e})=>e.create_time?(0,Pe.r6)((0,Dt.ee)(e.create_time)):me.Pd,sortAccessor:e=>e.create_time?(0,Dt.ee)(e.create_time):0},{name:ut,header:mt[ut],render:({row:e})=>e.end_time?(0,Pe.r6)((0,Dt.ee)(e.end_time)):me.Pd,sortAccessor:e=>e.end_time?(0,Dt.ee)(e.end_time):Number.MAX_SAFE_INTEGER},{name:pt,header:mt[pt],render:({row:e})=>{let t=0;if(!e.create_time)return me.Pd;const a=(0,Dt.ee)(e.create_time);if(e.end_time){t=(0,Dt.ee)(e.end_time)-a}else t=Date.now()-a;const n=t>me.Jg*me.KF?(0,yt.p0)(t).format("hh:mm:ss"):(0,yt.p0)(t).format("mm:ss");return e.end_time?n:st("label_duration-ongoing",{value:n})},sortAccessor:e=>{if(!e.create_time)return 0;const t=(0,Dt.ee)(e.create_time);if(e.end_time){return(0,Dt.ee)(e.end_time)-t}return Date.now()-t}},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:a})=>(0,d.jsx)(_t,{operation:a,database:e,refreshTable:t})}]}function _t({operation:e,database:t,refreshTable:a}){const[n,{isLoading:r}]=tt.useCancelOperationMutation(),[i,{isLoading:s}]=tt.useForgetOperationMutation(),o=e.id;return o?(0,d.jsxs)(St.s,{gap:"2",children:[(0,d.jsx)(Et.m,{title:st("header_forget"),placement:["left","auto"],children:(0,d.jsx)("div",{children:(0,d.jsx)(Nt.B,{buttonView:"outlined",dialogHeader:st("header_forget"),dialogText:st("text_forget"),onConfirmAction:()=>i({id:o,database:t}).unwrap().then((()=>{It({name:"Forgotten",title:st("text_forgotten",{id:o}),type:"success"}),a()})),buttonDisabled:r,children:(0,d.jsx)(Tt.I,{data:xt.A})})})}),(0,d.jsx)(Et.m,{title:st("header_cancel"),placement:["right","auto"],children:(0,d.jsx)("div",{children:(0,d.jsx)(Nt.B,{buttonView:"outlined",dialogHeader:st("header_cancel"),dialogText:st("text_cancel"),onConfirmAction:()=>n({id:o,database:t}).unwrap().then((()=>{It({name:"Cancelled",title:st("text_cancelled",{id:o}),type:"success"}),a()})),buttonDisabled:s,children:(0,d.jsx)(Tt.I,{data:bt.A})})})})]}):null}var Rt=a(370);const Ot=Rt.z.enum(["ss/backgrounds","export","buildindex"]).catch("buildindex");function Mt({database:e}){var t;const[a]=(0,he.Nt)(),{kind:r,searchValue:o,pageSize:l,pageToken:c,handleKindChange:u,handleSearchChange:p}=function(){var e,t,a;const[n,r]=(0,i.useQueryParams)({kind:i.StringParam,search:i.StringParam,pageSize:i.NumberParam,pageToken:i.StringParam});return{kind:Ot.parse(n.kind),searchValue:null!==(e=n.search)&&void 0!==e?e:"",pageSize:null!==(t=n.pageSize)&&void 0!==t?t:void 0,pageToken:null!==(a=n.pageToken)&&void 0!==a?a:void 0,handleKindChange:e=>{r({kind:e},"replaceIn")},handleSearchChange:e=>{r({search:e||void 0},"replaceIn")},handlePageSizeChange:e=>{r({pageSize:e},"replaceIn")},handlePageTokenChange:e=>{r({pageToken:e},"replaceIn")}}}(),{data:m,isFetching:h,error:v,refetch:g}=tt.useGetOperationListQuery({database:e,kind:r,page_size:l,page_token:c},{pollingInterval:a}),y=n.useMemo((()=>null!==m&&void 0!==m&&m.operations?m.operations.filter((e=>{var t;return null===(t=e.id)||void 0===t?void 0:t.toLowerCase().includes(o.toLowerCase())})):[]),[null===m||void 0===m?void 0:m.operations,o]);return(0,s.P)(v)?(0,d.jsx)(Ze.O,{position:"left"}):(0,d.jsxs)(et.L,{children:[(0,d.jsx)(et.L.Controls,{children:(0,d.jsx)(gt,{kind:r,searchValue:o,entitiesCountCurrent:y.length,entitiesCountTotal:null===m||void 0===m||null===(t=m.operations)||void 0===t?void 0:t.length,entitiesLoading:h,handleKindChange:u,handleSearchChange:p})}),v?(0,d.jsx)(Ne.o,{error:v}):null,(0,d.jsx)(et.L.Table,{loading:h,className:vt("table"),children:m?(0,d.jsx)(Xe.l,{columns:At({database:e,refreshTable:g}),data:y,emptyDataMessage:st("title_empty")}):null})]})}var kt=a(41122),Lt=a(76768),zt=a(19228),Ft=a(11822);function Ut(e){return`SELECT * FROM \`${e}\` LIMIT 0`}const qt=oe.F.injectEndpoints({endpoints:e=>({getViewSchema:e.query({queryFn:async({database:e,path:t,timeout:a})=>{try{var n,r;const i=await window.api.viewer.sendQuery({query:Ut(t),database:e,action:"execute-scan",timeout:a},{withRetries:!0});return(0,Ft.We)(i)?{error:i}:{data:(null===i||void 0===i||null===(n=i.result)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.columns)||[]}}catch(i){return{error:i}}},providesTags:["All"]})}),overrideExisting:"throw"});var Qt=a(47665),Bt=a(24543);const $t=JSON.parse('{"column-title.id":"Id","column-title.name":"Name","column-title.type":"Type","column-title.notNull":"NotNull","column-title.autoIncrement":"AutoIncrement","column-title.defaultValue":"Default","column-title.family":"Family","column-title.media":"Media","column-title.compression":"Compression","primary-key.title":"Primary key:","partitioning-key.title":"Partitioning key:"}'),Gt=(0,rt.g4)("ydb-schema-viewer",{en:$t}),Ht=(0,c.cn)("schema-viewer");const Wt=({tableData:e,extended:t,type:a})=>{const n="primary"===a?function(e){return e.filter((e=>void 0!==e.keyColumnIndex&&-1!==e.keyColumnIndex&&e.name)).sort(((e,t)=>e.keyColumnIndex-t.keyColumnIndex)).map((e=>e.name))}(e):function(e){return e.filter((e=>e.isPartitioningKeyColumn&&e.name)).map((e=>e.name))}(e),r=t?3:n.length,i=n.slice(0,r),s=n.slice(r);return n.length>0?(0,d.jsxs)("div",{className:Ht("keys",{summary:!t,type:a}),children:[(0,d.jsx)("div",{className:Ht("keys-header"),children:Gt("primary"===a?"primary-key.title":"partitioning-key.title")}),(0,d.jsxs)("div",{className:Ht("keys-values"),children:[" "+i.join(", "),s.length?(0,d.jsx)(Bt.u,{className:Ht("more-badge"),placement:["bottom"],hasArrow:!1,pinOnClick:!0,content:(0,d.jsx)("div",{className:Ht("popup-content"),children:s.map((e=>(0,d.jsx)("div",{className:Ht("popup-item"),children:e},e)))}),children:(0,d.jsx)(Qt.J,{className:Ht("keys-label"),children:`+${s.length}`})}):null]})]}):null};var Vt=a(4557);const Jt="name",Yt="type",Kt="notNull",Zt="autoIncrement",Xt="defaultValue",ea="familyName",ta="prefferedPoolKind",aa="columnCodec",na={name:"id",get header(){return Gt("column-title.id")},width:60,render:({row:e})=>e.id},ra={name:Jt,get header(){return Gt("column-title.name")},width:100,render:({row:e})=>e.name},ia={name:Yt,get header(){return Gt("column-title.type")},width:100,render:({row:e})=>e.type},sa={name:Kt,get header(){return Gt("column-title.notNull")},width:100,defaultOrder:Vt.Ay.DESCENDING,render:({row:e})=>{if(e.notNull)return"\u2713"}},oa={name:Zt,get header(){return Gt("column-title.autoIncrement")},width:100,defaultOrder:Vt.Ay.DESCENDING,render:({row:e})=>{if(e.autoIncrement)return"\u2713"}},la={name:Xt,get header(){return Gt("column-title.defaultValue")},width:100,render:({row:e})=>String(e.defaultValue)},ca={name:ea,get header(){return Gt("column-title.family")},width:100,render:({row:e})=>e.familyName},da={name:ta,get header(){return Gt("column-title.media")},width:100,render:({row:e})=>e.prefferedPoolKind},ua={name:aa,get header(){return Gt("column-title.compression")},width:100,render:({row:e})=>e.columnCodec};function pa(e={}){const t=function(e){var t,a,n;return null!==(t=null===e||void 0===e||null===(a=e.PartitionConfig)||void 0===a||null===(n=a.ColumnFamilies)||void 0===n?void 0:n.reduce(((e,t)=>t.Id?{...e,[t.Id]:t}:e),{}))&&void 0!==t?t:{}}(e),{Columns:a,KeyColumnNames:n}=e,r=null===a||void 0===a?void 0:a.map((e=>{var a,r,i,s;const{Id:o,Name:l,NotNull:c,Type:d,Family:u,DefaultFromSequence:p,DefaultFromLiteral:m}=e,h=null!==(a=null===n||void 0===n?void 0:n.findIndex((e=>e===l)))&&void 0!==a?a:-1,v=u?t[u].Name:void 0,g=u?null===(r=t[u].StorageConfig)||void 0===r||null===(i=r.Data)||void 0===i?void 0:i.PreferredPoolKind:void 0,y=u?function(e){if(e)return e===T.ColumnCodecPlain?"None":e.replace("ColumnCodec","").toLocaleLowerCase()}(t[u].ColumnCodec):void 0;return{id:o,name:l,keyColumnIndex:h,type:d,notNull:c,autoIncrement:Boolean(p),defaultValue:null!==(s=Object.values((null===m||void 0===m?void 0:m.value)||{})[0])&&void 0!==s?s:"-",familyName:v,prefferedPoolKind:g,columnCodec:y}}));return[...(null===r||void 0===r?void 0:r.filter((e=>-1!==e.keyColumnIndex)))||[],...(null===r||void 0===r?void 0:r.filter((e=>-1===e.keyColumnIndex)))||[]]}function ma(e,t){const{Table:a,ColumnTableDescription:n,ExternalTableDescription:r}=(null===t||void 0===t?void 0:t.PathDescription)||{};return ie(e)?pa(a):Y(e)?function(e={}){const{Schema:t={},Sharding:a={}}=e,{Columns:n,KeyColumnNames:r}=t,{HashSharding:i={}}=a,{Columns:s=[]}=i,o=null===n||void 0===n?void 0:n.map((e=>{var t;const{Id:a,Name:n,Type:i,NotNull:o}=e,l=null!==(t=null===r||void 0===r?void 0:r.findIndex((e=>e===n)))&&void 0!==t?t:-1,c=Boolean(null===s||void 0===s?void 0:s.find((e=>e===n)));return{id:a,name:n,keyColumnIndex:l,isPartitioningKeyColumn:c,type:i,notNull:o}}));return[...(null===o||void 0===o?void 0:o.filter((e=>-1!==e.keyColumnIndex)))||[],...(null===o||void 0===o?void 0:o.filter((e=>-1===e.keyColumnIndex)))||[]]}(n):re(e)?function(e={}){const{Columns:t}=e;return(null===t||void 0===t?void 0:t.map((e=>{const{Id:t,Name:a,Type:n,NotNull:r}=e;return{id:t,name:a,type:n,notNull:r}})))||[]}(r):[]}function ha(e){return(null===e||void 0===e?void 0:e.map((e=>{var t;return{type:null!==(t=e.type)&&void 0!==t&&t.endsWith("?")?e.type.slice(0,-1):e.type,name:e.name}})))||[]}const va=({type:e,path:t,tenantName:a,extended:r=!1})=>{const[i]=(0,he.Nt)(),{currentData:s,isLoading:o}=le.useGetOverviewQuery({path:t,database:a},{pollingInterval:i}),l=se(e)?{path:t,database:a}:b.hT,{data:c,isLoading:u}=qt.useGetViewSchemaQuery(l),p=n.useMemo((()=>se(e)?ha(c):ma(e,s)),[s,e,c]),m=n.useMemo((()=>p.some((e=>e.autoIncrement))),[p]),h=n.useMemo((()=>p.some((e=>e.defaultValue))),[p]),v=n.useMemo((()=>se(e)?[ra,ia]:re(e)||Y(e)?[na,ra,ia,sa]:ie(e)?function(e,t,a){const n=[na,ra,ia,sa];return a&&n.push(la),e&&n.push(ca,da,ua),t&&n.push(oa),n}(r,m,h):[]),[e,r,m,h]);return o||u?(0,d.jsx)(zt.Q,{}):(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:Ht("keys-wrapper"),children:[(0,d.jsx)(Wt,{tableData:p,extended:r,type:"primary"}),(0,d.jsx)(Wt,{tableData:p,extended:r,type:"partitioning"})]}),(0,d.jsx)("div",{className:Ht(),children:(0,d.jsx)(Xe.l,{columnsWidthLSKey:"schemaTableColumnsWidth",data:p,columns:v,settings:me.N3})})]})};var ga=a(54309),ya=a(96589),xa=a(84375),ba=a(85589);const fa=JSON.parse('{"td-feature-flag":"Feature flag","td-default":"Default","td-current":"Current","enabled":"Enabled","disabled":"Disabled","flag-touched":"Flag is changed","search-placeholder":"Search by feature flag","search-empty":"Empty search result","no-data":"No data"}'),Sa=(0,rt.g4)("ydb-diagnostics-configs",{en:fa}),Ea=(0,c.cn)("ydb-diagnostics-configs"),Ta=[{name:"Touched",header:"",render:({row:e})=>e.Current?(0,d.jsx)(xa.A,{content:Sa("flag-touched"),className:Ea("icon-touched"),placement:"left",children:(0,d.jsx)(Tt.I,{data:ya.A})}):null,width:36,sortable:!1,resizeable:!1},{name:"Name",get header(){return Sa("td-feature-flag")},render:({row:e})=>e.Current?(0,d.jsx)("b",{children:e.Name}):e.Name,width:400,sortable:!0,sortAccessor:({Current:e,Name:t})=>Number(!e)+t.toLowerCase()},{name:"Default",get header(){return Sa("td-default")},render:({row:e})=>{switch(e.Default){case!0:return Sa("enabled");case!1:return Sa("disabled");default:return"-"}},width:100,sortable:!1,resizeable:!1},{name:"Current",get header(){return Sa("td-current")},render:({row:e})=>{var t;return(0,d.jsx)(ba.d,{disabled:!0,checked:(null!==(t=e.Current)&&void 0!==t?t:e.Default)||!1})},width:100,sortable:!1,resizeable:!1}],Na=({database:e})=>{const[t,a]=(0,i.useQueryParam)("search",i.StringParam),{currentData:n=[],isFetching:r,error:s}=Se.z6.useGetClusterConfigQuery({database:e}),o=null===t||void 0===t?void 0:t.toLocaleLowerCase(),l=o?n.filter((e=>e.Name.toLocaleLowerCase().includes(o))):n;return(0,d.jsxs)(et.L,{children:[(0,d.jsx)(et.L.Controls,{children:(0,d.jsx)(nt.v,{value:o,onChange:e=>{a(e||void 0,"replaceIn")},placeholder:Sa("search-placeholder")})}),(0,d.jsx)(et.L.Table,{loading:r,children:s?(0,d.jsx)(Ne.o,{error:s}):(0,d.jsx)(Xe.l,{emptyDataMessage:Sa(o?"search-empty":"no-data"),columnsWidthLSKey:"featureFlagsColumnsWidth",columns:Ta,data:l,settings:me.N3})})]})};var ja=a(23536),Ca=a.n(ja),wa=a(46549);const Pa=oe.F.injectEndpoints({endpoints:e=>({getTopic:e.query({queryFn:async e=>{try{const t=await window.api.viewer.getTopic(e);return"object"!==typeof t?{error:{}}:{data:t}}catch(t){return{error:t}}},providesTags:["All"]})}),overrideExisting:"throw"}),Ia=(0,x.Mz)((e=>e),((e,t)=>t),((e,t)=>Pa.endpoints.getTopic.select({path:e,database:t}))),Da=(0,x.Mz)((e=>e),((e,t,a)=>Ia(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.topic_stats})),Aa=(0,x.Mz)((e=>e),((e,t,a)=>Ia(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.consumers})),_a=(0,x.Mz)(Aa,(e=>null===e||void 0===e?void 0:e.map((e=>null===e||void 0===e?void 0:e.name)).filter((e=>void 0!==e)))),Ra=(0,x.Mz)(Da,(e=>{if(!e)return;const{store_size_bytes:t="0",min_last_write_time:a,max_write_time_lag:n,bytes_written:r}=e||{};return{storeSize:t,partitionsIdleTime:(0,Dt.MC)(a),partitionsWriteLag:(0,Dt.i6)(n),writeSpeed:(0,wa.ey)(r)}})),Oa=(0,x.Mz)(Aa,(e=>null===e||void 0===e?void 0:e.map((e=>{const{name:t,consumer_stats:a}=e||{},{min_partitions_last_read_time:n,max_read_time_lag:r,max_write_time_lag:i,bytes_read:s}=a||{};return{name:t,readSpeed:(0,wa.ey)(s),writeLag:(0,Dt.i6)(i),readLag:(0,Dt.i6)(r),readIdleTime:(0,Dt.MC)(n)}})))),Ma=JSON.parse('{"averageSpeed":"Average speed","perMinute":"per minute","perHour":"per hour","perDay":"per day"}'),ka=JSON.parse('{"averageSpeed":"\u0421\u0440\u0435\u0434\u043d\u044f\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c","perMinute":"\u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443","perHour":"\u0437\u0430 \u0447\u0430\u0441","perDay":"\u0437\u0430 \u0434\u0435\u043d\u044c"}'),La=(0,rt.g4)("ydb-components-speed-multimeter",{ru:ka,en:Ma}),za=(0,c.cn)("speed-multimeter"),Fa=({data:e,speedSize:t="kb",withValue:a=!0,withPopover:r=!0})=>{const{perMinute:i=0,perHour:s=0,perDay:o=0}=e||{},l=[i,s,o],c=e=>(0,wa.z3)({value:e,size:t,withSpeedLabel:!0}),u=[{value:c(i),label:La("perMinute")},{value:c(s),label:La("perHour")},{value:c(o),label:La("perDay")}],[p,m]=n.useState(i),[h,v]=n.useState(a?0:void 0),[g,y]=n.useState(),x=(e,t)=>{m(e[t]),v(t),y(t)},b=e=>h===e,f=e=>g===e;return(0,d.jsx)("div",{className:za(),children:(0,d.jsxs)("div",{className:za("content"),children:[a&&(0,d.jsx)("div",{className:za("displayed-value"),children:c(p)}),(0,d.jsx)(xa.A,{content:(0,d.jsxs)("div",{className:za("popover-content"),children:[(0,d.jsx)("span",{className:za("popover-header"),children:La("averageSpeed")}),u.map(((e,t)=>{return(0,d.jsx)("span",{className:za("popover-row",(a=b(t),a?{color:"primary"}:{color:"secondary"})),children:`${e.label}: ${e.value}`},t);var a}))]}),className:za("popover-container"),placement:"bottom",disabled:!r,hasArrow:!0,size:"s",children:(0,d.jsx)("div",{className:za("bars"),onMouseLeave:()=>{m(i),v(a?0:void 0),y(void 0)},children:(()=>{const e=Math.max(...l,0)||1;return l.map(((t,a)=>(0,d.jsx)("div",{className:za("bar-container",{highlighted:f(a)}),onMouseEnter:x.bind(null,l,a),children:(0,d.jsx)("div",{className:za("bar",{color:b(a)?"dark":"light"}),style:{width:100*t/e+"%"}})},a)))})()})})]})})},Ua=(0,c.cn)("ydb-diagnostics-consumers-topic-stats"),qa=({data:e})=>{const{writeSpeed:t,partitionsWriteLag:a,partitionsIdleTime:n}=e||{},r=[{label:"Write speed",value:(0,d.jsx)(Fa,{data:t})},{label:"Write lag",value:(0,Pe.lr)(a||0)},{label:"Write idle time",value:(0,Pe.lr)(n||0)}];return(0,d.jsx)("div",{className:Ua("wrapper"),children:r.map(((e,t)=>(0,d.jsxs)("div",{className:Ua("item"),children:[(0,d.jsx)("div",{className:Ua("label"),children:e.label}),(0,d.jsx)("div",{className:Ua("value"),children:e.value})]},t)))})};var Qa=a(74309),Ba=a.n(Qa),$a=a(44294),Ga=a(6170);const Ha=({text:e,popoverContent:t,popoverClassName:a,className:n,contentClassName:r,buttonProps:i})=>(0,d.jsxs)("div",{className:n,children:[e,"\xa0",(0,d.jsx)(Ga.B,{className:a,buttonProps:i,content:t,contentClassName:r})]}),Wa=70,Va=54,Ja=268,Ya="#ADE8F5",Ka="#f5be9d",Za=({width:e,height:t,transform:a})=>(0,d.jsx)("path",{d:`M-${e/2} 0 c0 -${t}, ${e} -${t}, ${e} 0`,fill:"none",strokeDasharray:"4,6",stroke:"#28f",strokeWidth:"1.6",transform:a}),Xa=({width:e})=>(0,d.jsx)("path",{fill:"none",strokeWidth:"2",d:`M0 0 h${e} l-10 -5 m0 10 l10 -5`}),en=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:Ka,children:(0,d.jsx)(Xa,{width:203})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(Za,{width:Wa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,d.jsxs)("g",{transform:"translate(119, 27)",children:[(0,d.jsx)(Za,{width:98,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write idle time"})})]})]}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(0, 27)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:Ka}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,d.jsxs)("g",{transform:"translate(70, 27)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:Ka}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,d.jsx)("g",{transform:"translate(168, 27)",children:(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),tn=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:Ya,children:(0,d.jsx)(Xa,{width:Ja})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(105, 27)",children:[(0,d.jsx)(Za,{width:Wa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read lag"})})]}),(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(Za,{width:Wa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,d.jsxs)("g",{transform:"translate(182, 27)",children:[(0,d.jsx)(Za,{width:91,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read idle time"})})]})]}),(0,d.jsxs)("g",{transform:"translate(30, 27)",children:[(0,d.jsxs)("g",{transform:"translate(0, 0)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:Ya}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,d.jsxs)("g",{transform:"translate(70, 0)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:Ya}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,d.jsxs)("g",{transform:"translate(140, 0)",children:[(0,d.jsx)("use",{x:"-2",y:"-10",xlinkHref:"#check",stroke:Ya}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read time"})})]}),(0,d.jsx)("g",{transform:"translate(224, 0)",children:(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),an=({id:e,fill:t})=>(0,d.jsx)("pattern",{id:e,x:"0",y:"0",width:"8",height:"8",patternUnits:"userSpaceOnUse",children:(0,d.jsx)("path",{d:"M0 5L5 0H8L0 8V5M5 8L8 5V8Z",fill:t})}),nn=()=>(0,d.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:Ja,height:Va,children:[(0,d.jsxs)("defs",{children:[(0,d.jsx)("g",{id:"check",children:(0,d.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,d.jsx)(an,{id:"latest-read",fill:Ya}),(0,d.jsx)(an,{id:"latest-write",fill:Ka})]}),(0,d.jsx)(en,{})]}),rn=()=>(0,d.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:Ja,height:Va,children:[(0,d.jsxs)("defs",{children:[(0,d.jsx)("g",{id:"check",children:(0,d.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,d.jsx)(an,{id:"latest-read",fill:Ya}),(0,d.jsx)(an,{id:"latest-write",fill:Ka})]}),(0,d.jsx)(tn,{})]}),sn=(0,c.cn)("ydb-lag-popover-content"),on=({text:e,type:t})=>(0,d.jsxs)("div",{className:sn({type:t}),children:[(0,d.jsx)("div",{className:sn("text"),children:e}),(0,d.jsx)("div",{children:"read"===t?(0,d.jsx)(rn,{}):(0,d.jsx)(nn,{})})]}),ln=JSON.parse('{"noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers","lagsPopover.readLags":"Read lags statistics, maximum among all consumer partitions (time format dd hh:mm:ss)","table.emptyDataMessage":"No consumers match the current search","controls.search":"Consumer"}'),cn=JSON.parse('{"noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","controls.search":"Consumer"}'),dn=(0,rt.g4)("ydb-diagnostics-consumers",{ru:cn,en:ln}),un="consumer",pn="readSpeed",mn="readLags",hn={[un]:"Consumer",[pn]:"Read speed",[mn]:"Read lags, duration"},vn="writeLag",gn="readLag",yn="readIdleTime",xn={[vn]:"write lag",[gn]:"read lag",[yn]:"read idle time"},bn=(0,c.cn)("ydb-diagnostics-consumers-columns-header"),fn=()=>(0,d.jsx)(Ha,{className:bn("lags"),text:hn[mn],popoverContent:(0,d.jsx)(on,{text:dn("lagsPopover.readLags"),type:"read"})}),Sn=(0,c.cn)("ydb-diagnostics-consumers-columns"),En=[{name:un,header:hn[un],align:Vt.Ay.LEFT,render:({row:e})=>{if(!e.name)return"\u2013";const t=Ba().parse(location.search,{ignoreQueryPrefix:!0});return(0,d.jsx)($a.E,{to:(0,ga.YL)({...t,[ga.vh.diagnosticsTab]:ge.iJ.partitions,selectedConsumer:e.name}),children:e.name})}},{name:pn,header:hn[pn],align:Vt.Ay.RIGHT,resizeMinWidth:140,sortAccessor:e=>e.readSpeed.perMinute,render:({row:e})=>(0,d.jsx)(Fa,{data:e.readSpeed})},{name:mn,header:(0,d.jsx)(fn,{}),className:Sn("lags-header"),sub:[{name:vn,header:xn[vn],align:Vt.Ay.RIGHT,render:({row:e})=>(0,Pe.lr)(e.writeLag)},{name:gn,header:xn[gn],align:Vt.Ay.RIGHT,render:({row:e})=>(0,Pe.lr)(e.readLag)},{name:yn,header:xn[yn],align:Vt.Ay.RIGHT,render:({row:e})=>(0,Pe.lr)(e.readIdleTime)}]}],Tn=(0,c.cn)("ydb-diagnostics-consumers"),Nn=({path:e,database:t,type:a})=>{const r=(e=>e===f.EPathTypeCdcStream)(a),[i,s]=n.useState(""),[o]=(0,he.Nt)(),{currentData:l,isFetching:c,error:u}=Pa.useGetTopicQuery({path:e,database:t},{pollingInterval:o}),p=c&&void 0===l,m=(0,he.N4)((a=>Oa(a,e,t))),h=(0,he.N4)((a=>Ra(a,e,t))),v=n.useMemo((()=>{if(!m)return[];const e=new RegExp(Ca()(i),"i");return m.filter((t=>e.test(String(t.name))))}),[m,i]);return p?(0,d.jsx)(je.a,{size:"m"}):u||m&&m.length?(0,d.jsxs)("div",{className:Tn(),children:[(0,d.jsxs)("div",{className:Tn("controls"),children:[(0,d.jsx)(nt.v,{onChange:e=>{s(e)},placeholder:dn("controls.search"),className:Tn("search"),value:i}),h&&(0,d.jsx)(qa,{data:h})]}),u?(0,d.jsx)(Ne.o,{error:u}):null,m?(0,d.jsx)("div",{className:Tn("table-wrapper"),children:(0,d.jsx)("div",{className:Tn("table-content"),children:(0,d.jsx)(Xe.l,{columnsWidthLSKey:"consumersColumnsWidth",wrapperClassName:Tn("table"),data:v,columns:En,settings:me.N3,emptyDataMessage:dn("table.emptyDataMessage")})})}):null]}):(0,d.jsx)("div",{children:dn("noConsumersMessage."+(r?"stream":"topic"))})};var jn=a(96873),Cn=a(97434),wn=a(84476),Pn=a(67063),In=a.n(Pn);const Dn=JSON.parse('{"context_case-sensitive-search":"Case sensitive search enadled","context_case-sensitive-search-disabled":"Case sensitive search disabled"}'),An=(0,rt.g4)("ydb-json-tree",{en:Dn});var _n=a(94630);a(91434);const Rn=(0,c.cn)("ydb-json-tree");function On({treeClassName:e,search:t,...a}){const[n,r]=(0,he.iK)(me.iD,!1);return(0,d.jsxs)("div",{className:Rn(),children:[(0,d.jsx)(In(),{className:Rn("tree",e),filterOptions:{ignoreCase:!n},searchOptions:{debounceTime:300},...a}),!1!==t&&(0,d.jsx)(Et.m,{title:An(n?"context_case-sensitive-search":"context_case-sensitive-search-disabled"),children:(0,d.jsx)(wn.$,{view:"outlined",className:Rn("case"),onClick:()=>r(!n),selected:n,children:(0,d.jsx)(Tt.I,{data:_n.A})})})]})}const Mn=(0,c.cn)("ydb-describe"),kn=new Map,Ln=({path:e,database:t,type:a})=>{const[n]=(0,he.Nt)(),r=ee(a),i=(0,he.N4)((n=>ue(n,e,a,t)),Cn.bN);let s=[];r?i&&(s=[e,...i]):s=[e];const{mergedDescribe:o,loading:l,error:c}=pe({paths:s,autoRefreshInterval:n,database:t});let u;if(o){const e=Object.keys(o);u=1===e.length?o[e[0]]:o}return l||r&&!i?(0,d.jsx)(je.a,{size:"m"}):u||c?(0,d.jsxs)("div",{className:Mn(),children:[c?(0,d.jsx)(Ne.o,{error:c}):null,u?(0,d.jsxs)("div",{className:Mn("result"),children:[(0,d.jsx)(On,{data:u,onClick:({path:e})=>{const t=!kn.get(e);kn.set(e,t)},isExpanded:e=>kn.get(e)||!1}),(0,d.jsx)(jn.b,{view:"flat-secondary",text:JSON.stringify(u),className:Mn("copy")})]}):null]}):(0,d.jsx)("div",{className:Mn("message-container"),children:"Empty"})};var zn=a(60073);const Fn=e=>{const{PathType:t,PathSubType:a}=(null===e||void 0===e?void 0:e.Self)||{};return n=t,(r=a)&&Q[r]||n&&B[n];var n,r},Un=e=>{var t;return null===e||void 0===e||null===(t=e.UserAttributes)||void 0===t?void 0:t.some((({Key:e,Value:t})=>"__async_replica"===e&&"true"===t))};var qn=a(5741),Qn=a(82176);const Bn=(0,Qn.H)({values:{PathType:e=>null===e||void 0===e?void 0:e.substring(9),CreateStep:Pe.r6},labels:{PathType:(0,qn.A)("common.type"),CreateStep:(0,qn.A)("common.created")}}),$n=({value:e,withSpeedLabel:t,...a})=>{const n=(0,wa.z3)({value:e,withSpeedLabel:t,...a}),r=(0,wa.z3)({value:e,withSpeedLabel:t,size:"b"});return(0,d.jsx)("span",{title:r,children:n})},Gn=(e,t)=>e?(0,d.jsx)($n,{value:e,significantDigits:2,...t}):null,Hn=(0,Qn.H)({values:{Type:e=>null===e||void 0===e?void 0:e.substring(10),State:e=>null===e||void 0===e?void 0:e.substring(11),KeyColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataSize:Gn},labels:{KeyColumnNames:"Columns",DataColumnNames:"Includes"}}),Wn={[D.METERING_MODE_REQUEST_UNITS]:"request-units",[D.METERING_MODE_RESERVED_CAPACITY]:"reserved-capacity"},Vn=(0,Qn.H)({values:{Partitions:e=>(0,Pe.ZV)((null===e||void 0===e?void 0:e.length)||0),PQTabletConfig:e=>{const t=Math.round(e.PartitionConfig.LifetimeSeconds/me.Jg*100)/100;return`${(0,Pe.ZV)(t)} hours`}},labels:{Partitions:"Partitions count",PQTabletConfig:"Retention"}}),Jn=(0,Qn.H)({values:{Codecs:e=>e&&Object.values(e.Codecs||{}).join(", "),MeteringMode:e=>e&&Wn[e]},labels:{MeteringMode:"Metering mode"}}),Yn=(0,Qn.H)({values:{StorageLimitBytes:Pe.z3,WriteSpeedInBytesPerSecond:Pe.tC},labels:{StorageLimitBytes:"Retention storage",WriteSpeedInBytesPerSecond:"Partitions write speed"}}),Kn=(0,Qn.H)({values:{Mode:e=>null===e||void 0===e?void 0:e.substring(14),Format:e=>null===e||void 0===e?void 0:e.substring(16)}}),Zn=(0,Qn.H)({values:{CPU:Pe.iM,Memory:Gn,Storage:Gn,Network:Pe.tC,ReadThroughput:Pe.tC,WriteThroughput:Pe.tC},defaultValueFormatter:Pe.ZV}),Xn=(0,Qn.H)({values:{FollowerCount:Pe.ZV},labels:{FollowerCountPerDataCenter:"FollowerCountPerDC"},defaultValueFormatter:e=>e&&String(e)}),er=(0,Qn.H)({values:{FollowerCount:Pe.ZV,CrossDataCenterFollowerCount:Pe.ZV}}),tr=(0,Qn.H)({values:{DataSize:Gn,IndexSize:Gn,LastAccessTime:Pe.r6,LastUpdateTime:Pe.r6},defaultValueFormatter:Pe.ZV}),ar=new Set(["Type","State","DataSize","KeyColumnNames","DataColumnNames"]),nr=({data:e})=>{var t;const a=Fn(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]});const n=null===(t=e.PathDescription)||void 0===t?void 0:t.TableIndex,r=[];let i;for(i in n)ar.has(i)&&r.push(Hn(i,null===n||void 0===n?void 0:n[i]));return(0,d.jsx)(zn.z_,{title:a,info:r})};var rr=a(10508);const ir=JSON.parse('{"external-objects.source-type":"Source Type","external-objects.data-source":"Data Source","external-objects.location":"Location","external-objects.auth-method":"Auth Method","external-objects.auth-method.none":"None","external-objects.auth-method.service-account":"Service Account","view.query-text":"Query Text"}'),sr=(0,rt.g4)("ydb-tenant-objects-info",{en:ir}),or=(0,c.cn)("ydb-external-data-source-info"),lr=e=>{var t,a,n,r;return[{label:sr("external-objects.source-type"),value:null===(t=e.PathDescription)||void 0===t||null===(a=t.ExternalDataSourceDescription)||void 0===a?void 0:a.SourceType},Bn("CreateStep",null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep)]},cr=e=>{var t;const{Location:a,Auth:n}=(null===(t=e.PathDescription)||void 0===t?void 0:t.ExternalDataSourceDescription)||{};return[...lr(e),{label:sr("external-objects.location"),value:(0,d.jsx)(rr.c,{name:a,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:or("location")})},{label:sr("external-objects.auth-method"),value:null!==n&&void 0!==n&&n.ServiceAccount?sr("external-objects.auth-method.service-account"):sr("external-objects.auth-method.none")}]},dr=({data:e,prepareData:t})=>{const a=Fn(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsx)(zn.z_,{title:a,info:t(e)}):(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]})},ur=({data:e})=>(0,d.jsx)(dr,{data:e,prepareData:cr});var pr=a(10755),mr=a(25196);const hr=(0,c.cn)("ydb-external-table-info"),vr=(e,t)=>{var a,n;const{CreateStep:r}=(null===(a=e.PathDescription)||void 0===a?void 0:a.Self)||{},{SourceType:i,DataSourcePath:s}=(null===(n=e.PathDescription)||void 0===n?void 0:n.ExternalTableDescription)||{},o=null===s||void 0===s?void 0:s.split("/").pop();return[{label:sr("external-objects.source-type"),value:i},Bn("CreateStep",r),{label:sr("external-objects.data-source"),value:s&&(0,d.jsx)("span",{title:s,children:(0,d.jsx)(mr.K,{title:o||"",url:t})})}]},gr=(e,t)=>{var a,n;const r=null===(a=e.PathDescription)||void 0===a||null===(n=a.ExternalTableDescription)||void 0===n?void 0:n.Location;return[...vr(e,t),{label:sr("external-objects.location"),value:(0,d.jsx)(rr.c,{name:r,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:hr("location")})}]},yr=({data:e,prepareData:t})=>{var a,n;const r=(0,pr.zy)(),i=(0,Ae.mA)(r),s=(0,Ae.Ow)({...i,schema:null===e||void 0===e||null===(a=e.PathDescription)||void 0===a||null===(n=a.ExternalTableDescription)||void 0===n?void 0:n.DataSourcePath}),o=Fn(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsx)(zn.z_,{title:o,info:t(e,s)}):(0,d.jsxs)("div",{className:"error",children:["No ",o," data"]})},xr=({data:e})=>(0,d.jsx)(yr,{data:e,prepareData:gr});var br=a(49001);const fr=JSON.parse('{"no-data":"No data"}'),Sr=(0,rt.g4)("ydb-definition-list",{en:fr}),Er=(0,c.cn)("ydb-definition-list");function Tr({title:e,items:t,nameMaxWidth:a=220,copyPosition:n="outside",className:r,itemClassName:i,...s}){return(0,d.jsxs)("div",{className:Er(null),children:[e?(0,d.jsx)("div",{className:Er("title"),children:e}):null,t.length?(0,d.jsx)(br.u,{items:t,nameMaxWidth:a,copyPosition:n,className:Er("properties-list",r),itemClassName:Er("item",i),...s}):Sr("no-data")]})}function Nr({data:e}){const t=Fn(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:["No ",t," data"]});const a=(e=>{var t,a;const n=null===(t=e.PathDescription)||void 0===t||null===(a=t.ViewDescription)||void 0===a?void 0:a.QueryText;return[{name:sr("view.query-text"),copyText:n,content:(0,d.jsx)(ft.E,{variant:"code-2",wordBreak:"break-word",children:n})}]})(e);return(0,d.jsx)(Tr,{title:t,items:a})}function jr({state:e}){return e?"StandBy"in e?(0,d.jsx)(Qt.J,{theme:"info",children:"Standby"}):"Paused"in e?(0,d.jsx)(Qt.J,{theme:"info",children:"Paused"}):"Done"in e?(0,d.jsx)(Qt.J,{theme:"success",children:"Done"}):"Error"in e?(0,d.jsx)(Qt.J,{theme:"danger",children:"Error"}):(0,d.jsx)(Qt.J,{size:"s",children:"Unknown"}):null}const Cr=JSON.parse('{"column.dstPath.name":"Dist","column.srcPath.name":"Source","everythingWithPrefix":"Everything with prefix:","noData":"No data.","title":"Replicated Paths"}'),wr=(0,rt.g4)("ydb-diagnostics-async-replication-paths",{en:Cr}),Pr=(0,c.cn)("ydb-async-replication-paths"),Ir=[{name:wr("column.srcPath.name"),render:({row:e})=>e.SrcPath,sortAccessor:e=>e.SrcPath},{name:wr("column.dstPath.name"),render:({row:e})=>e.DstPath,sortAccessor:e=>e.DstPath}];function Dr({config:e}){if(!e)return null;let t=wr("noData");var a,n;e.Everything&&(t=(0,d.jsxs)("span",{children:[wr("everythingWithPrefix")," ",(0,d.jsx)(ft.E,{variant:"code-inline-2",children:null!==(a=null===(n=e.Everything)||void 0===n?void 0:n.DstPrefix)&&void 0!==a?a:"undefined"}),"."]}));return e.Specific&&(t=(0,d.jsx)(Xe.l,{data:e.Specific.Targets,settings:me.jp,columns:Ir})),(0,d.jsxs)("div",{className:Pr(),children:[(0,d.jsx)("div",{className:Pr("title"),children:wr("title")}),t]})}function Ar({connection:e}){return e?e.StaticCredentials?(0,d.jsx)(Qt.J,{value:e.StaticCredentials.User,theme:"normal",children:"user"}):"OAuthToken"in e?"OAuth":"unknown":null}const _r=JSON.parse('{"credentials.label":"Credentials","noData":"No data for entity:","srcConnection.database.label":"Source Database Path","srcConnection.endpoint.label":"Source Cluster Endpoint","state.label":"State"}'),Rr=(0,rt.g4)("ydb-diagnostics-async-replication-info",{en:_r});function Or({data:e}){var t,a;const n=Fn(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:[Rr("noData")," ",n]});const r=function(e){var t,a;const n=(null===(t=e.PathDescription)||void 0===t?void 0:t.ReplicationDescription)||{},r=n.State,i=(null===(a=n.Config)||void 0===a?void 0:a.SrcConnectionParams)||{},{Endpoint:s,Database:o}=i,l=[];r&&l.push({name:Rr("state.label"),content:(0,d.jsx)(jr,{state:r})});s&&l.push({name:Rr("srcConnection.endpoint.label"),copyText:s,content:(0,d.jsx)(ft.E,{variant:"code-inline-2",children:s})});o&&l.push({name:Rr("srcConnection.database.label"),copyText:o,content:(0,d.jsx)(ft.E,{variant:"code-inline-2",children:o})});i&&l.push({name:Rr("credentials.label"),content:(0,d.jsx)(Ar,{connection:i})});return l}(e);return(0,d.jsxs)(St.s,{direction:"column",gap:"4",children:[(0,d.jsx)(Tr,{title:n,items:r}),(0,d.jsx)(Dr,{config:null===(t=e.PathDescription)||void 0===t||null===(a=t.ReplicationDescription)||void 0===a?void 0:a.Config})]})}const Mr=JSON.parse('{"writeLagPopover":"Write lag, maximum among all topic partitions","writeIdleTimePopover":"Write idle time, maximum among all topic partitions"}'),kr=JSON.parse('{"writeLagPopover":"\u041b\u0430\u0433 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430","writeIdleTimePopover":"\u0412\u0440\u0435\u043c\u044f \u0431\u0435\u0437 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430"}'),Lr=(0,rt.g4)("ydb-diagnostics-overview-topic-stats",{ru:kr,en:Mr}),zr=(0,c.cn)("ydb-overview-topic-stats"),Fr=e=>[{label:"Store size",value:(0,Pe.z3)(e.storeSize)},{label:(0,d.jsx)(Ha,{text:"Write idle time",popoverContent:(0,d.jsx)(on,{text:Lr("writeIdleTimePopover"),type:"write"})}),value:(0,Dt.Bi)(e.partitionsIdleTime)},{label:(0,d.jsx)(Ha,{text:"Write lag",popoverContent:(0,d.jsx)(on,{text:Lr("writeLagPopover"),type:"write"})}),value:(0,Dt.Bi)(e.partitionsWriteLag)},{label:"Average write speed",value:(0,d.jsx)(Fa,{data:e.writeSpeed,withValue:!1})}],Ur=e=>{const t=e.writeSpeed;return[{label:"per minute",value:(0,Pe.tC)(t.perMinute)},{label:"per hour",value:(0,Pe.tC)(t.perHour)},{label:"per day",value:(0,Pe.tC)(t.perDay)}]},qr=({path:e,database:t})=>{const[a]=(0,he.Nt)(),{currentData:r,isFetching:i,error:s}=Pa.useGetTopicQuery({path:e,database:t},{pollingInterval:a}),o=i&&void 0===r,l=(0,he.N4)((a=>Ra(a,e,t)));if(o)return(0,d.jsx)("div",{className:zr(),children:(0,d.jsx)(je.a,{size:"s"})});const c=s||!l?(0,d.jsx)(Ne.o,{error:s}):null;return(0,d.jsxs)("div",{className:zr(),children:[(0,d.jsx)("div",{className:zr("title"),children:"Stats"}),c,l?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:zr("info"),children:(0,d.jsx)(zn.z_,{info:Fr(l),multilineLabels:!0})}),(0,d.jsx)("div",{className:zr("bytes-written"),children:(0,d.jsx)(zn.z_,{info:Ur(l)})})]}):null]})},Qr=e=>{var t;const a=null===e||void 0===e||null===(t=e.PathDescription)||void 0===t?void 0:t.PersQueueGroup;if(!a)return[];const{Partitions:n=[],PQTabletConfig:r={PartitionConfig:{LifetimeSeconds:0}}}=a,{Codecs:i,MeteringMode:s}=r,{WriteSpeedInBytesPerSecond:o,StorageLimitBytes:l}=r.PartitionConfig;return[...(0,zn.jl)(Vn,{Partitions:n,PQTabletConfig:r}),...(0,zn.jl)(Yn,{StorageLimitBytes:l,WriteSpeedInBytesPerSecond:o}),...(0,zn.jl)(Jn,{Codecs:i,MeteringMode:s})]},Br=(e,t)=>{var a,n,r;if(!e&&!t)return[];const i=null===e||void 0===e||null===(a=e.PathDescription)||void 0===a?void 0:a.CdcStreamDescription,{Mode:s,Format:o}=i||{};return[Bn("CreateStep",null===e||void 0===e||null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep),...(0,zn.jl)(Kn,{Mode:s,Format:o}),...Qr(t)]},$r=({path:e,database:t,data:a,topic:n})=>{const r=Fn(null===a||void 0===a?void 0:a.PathDescription);return a&&n?(0,d.jsxs)("div",{children:[(0,d.jsx)(zn.z_,{title:r,info:Br(a,n)}),(0,d.jsx)(qr,{path:e,database:t})]}):(0,d.jsxs)("div",{className:"error",children:["No ",r," data"]})},Gr=JSON.parse('{"page.title":"Database","pages.query":"Query","pages.diagnostics":"Diagnostics","summary.navigation":"Navigation","summary.showPreview":"Show preview","summary.source-type":"Source Type","summary.data-source":"Data Source","summary.copySchemaPath":"Copy schema path","summary.type":"Type","summary.subtype":"SubType","summary.id":"Id","summary.version":"Version","summary.created":"Created","summary.data-size":"Data size","summary.row-count":"Row count","summary.partitions":"Partitions count","summary.paths":"Paths","summary.shards":"Shards","summary.state":"State","summary.mode":"Mode","summary.format":"Format","summary.retention":"Retention","label.read-only":"ReadOnly","actions.copied":"The path is copied to the clipboard","actions.notCopied":"Couldn\u2019t copy the path","actions.copyPath":"Copy path","actions.dropIndex":"Drop index","actions.openPreview":"Open preview","actions.createTable":"Create table...","actions.createExternalTable":"Create external table...","actions.createTopic":"Create topic...","actions.createColumnTable":"Create column table...","actions.createAsyncReplication":"Create async replication...","actions.createView":"Create view...","actions.dropTable":"Drop table...","actions.dropTopic":"Drop topic...","actions.dropView":"Drop view...","actions.alterTable":"Alter table...","actions.addTableIndex":"Add index...","actions.createCdcStream":"Create changefeed...","actions.alterTopic":"Alter topic...","actions.selectQuery":"Select query...","actions.upsertQuery":"Upsert query...","actions.alterReplication":"Alter async replicaton...","actions.dropReplication":"Drop async replicaton...","actions.createDirectory":"Create directory","schema.tree.dialog.placeholder":"Relative path","schema.tree.dialog.invalid":"Invalid path","schema.tree.dialog.whitespace":"Whitespace is not allowed","schema.tree.dialog.empty":"Path is empty","schema.tree.dialog.header":"Create directory","schema.tree.dialog.description":"Inside","schema.tree.dialog.buttonCancel":"Cancel","schema.tree.dialog.buttonApply":"Create"}'),Hr=(0,rt.g4)("ydb-tenant",{en:Gr});function Wr({data:e}){const t=Fn(e);return Un(e)?(0,d.jsxs)(St.s,{gap:1,wrap:"nowrap",children:[t," ",(0,d.jsx)(Qt.J,{children:Hr("label.read-only")})]}):t}const Vr=JSON.parse('{"tableStats":"Table Stats","tabletMetrics":"Tablet Metrics","partitionConfig":"Partition Config","label.ttl":"TTL for rows","value.ttl":"column: \'{{columnName}}\', expire after: {{expireTime}}","label.standalone":"Standalone","label.partitioning":"Partitioning","label.partitioning-by-size":"Partitioning by size","value.partitioning-by-size.enabled":"Enabled, split size: {{size}}","label.partitioning-by-load":"Partitioning by load","label.partitions-min":"Min number of partitions","label.partitions-max":"Max number of partitions","label.read-replicas":"Read replicas (followers)","label.bloom-filter":"Bloom filter","enabled":"Enabled","disabled":"Disabled"}'),Jr=(0,rt.g4)("ydb-diagnostics-overview-table-info",{en:Vr});var Yr=a(62091),Kr=a.n(Yr),Zr=a(7435),Xr=a(41650);const ei=e=>{if(e.Enabled&&e.Enabled.ColumnName&&void 0!==e.Enabled.ExpireAfterSeconds){const t=Jr("value.ttl",{columnName:e.Enabled.ColumnName,expireTime:(0,Dt.Bi)(1e3*e.Enabled.ExpireAfterSeconds,1)});return{label:Jr("label.ttl"),value:t}}};const ti=(e,t)=>{if(!e)return{};const{PathDescription:a={}}=e,{TableStats:n={},TabletMetrics:r={},Table:{PartitionConfig:i={},TTLSettings:s}={},ColumnTableDescription:o={}}=a,{PartCount:l,RowCount:c,DataSize:u,IndexSize:p,ByKeyFilterSize:m,LastAccessTime:h,LastUpdateTime:v,ImmediateTxCompleted:g,PlannedTxCompleted:y,TxRejectedByOverload:x,TxRejectedBySpace:b,TxCompleteLagMsec:S,InFlightTxCount:E,RowUpdates:T,RowDeletes:N,RowReads:j,RangeReads:C,RangeReadRows:w}=n,{FollowerGroups:P,FollowerCount:I,CrossDataCenterFollowerCount:D}=i;let A=[];switch(t){case f.EPathTypeTable:A=((e,t)=>{var a;const{PartitioningPolicy:n={},FollowerGroups:r,EnableFilterByKey:i}=e,s=[],o=n.SizeToSplit&&Number(n.SizeToSplit)>0?Jr("value.partitioning-by-size.enabled",{size:(0,Pe.z3)(n.SizeToSplit)}):Jr("disabled"),l=null!==(a=n.SplitByLoadSettings)&&void 0!==a&&a.Enabled?Jr("enabled"):Jr("disabled");if(s.push({label:Jr("label.partitioning-by-size"),value:o},{label:Jr("label.partitioning-by-load"),value:l},{label:Jr("label.partitions-min"),value:(0,Pe.ZV)(n.MinPartitionsCount||0)}),n.MaxPartitionsCount&&s.push({label:Jr("label.partitions-max"),value:(0,Pe.ZV)(n.MaxPartitionsCount)}),r&&r.length){const{RequireAllDataCenters:e,FollowerCountPerDataCenter:t,FollowerCount:a}=r[0];let n;n=e&&t?`PER_AZ: ${a}`:`ANY_AZ: ${a}`,s.push({label:Jr("label.read-replicas"),value:n})}if(t){const e=ei(t);e&&s.push(e)}return(0,Zr.f8)(i)&&s.push({label:Jr("label.bloom-filter"),value:Jr(i?"enabled":"disabled")}),s})(i,s);break;case f.EPathTypeColumnTable:A=function(e){var t,a;const n=[];var r;if(n.push({label:Jr("label.standalone"),value:String((r=e,!(r.SchemaPresetName&&void 0!==r.SchemaPresetId)))}),null!==(t=e.Sharding)&&void 0!==t&&null!==(a=t.HashSharding)&&void 0!==a&&a.Columns){const t=`PARTITION BY HASH(${e.Sharding.HashSharding.Columns.join(", ")})`;n.push({label:Jr("label.partitioning"),value:(0,d.jsx)(ft.E,{variant:"code-2",wordBreak:"break-word",children:t})})}if(e.TtlSettings){const t=ei(null===e||void 0===e?void 0:e.TtlSettings);t&&n.push(t)}return n}(o)}const _=(0,zn.jl)(tr,{PartCount:l,RowCount:c,DataSize:u,IndexSize:p});(0,Xr.kf)(m)&&(i.EnableFilterByKey||Number(m)>0)&&_.push({label:"BloomFilterSize",value:Gn(m)});const R=[_,(0,zn.jl)(tr,{LastAccessTime:h,LastUpdateTime:v}),(0,zn.jl)(tr,{ImmediateTxCompleted:g,PlannedTxCompleted:y,TxRejectedByOverload:x,TxRejectedBySpace:b,TxCompleteLagMsec:S,InFlightTxCount:E}),(0,zn.jl)(tr,{RowUpdates:T,RowDeletes:N,RowReads:j,RangeReads:C,RangeReadRows:w})],O=(0,zn.jl)(Zn,Kr()(r,["GroupReadIops","GroupReadThroughput","GroupWriteIops","GroupWriteThroughput"]));let M=[];return Array.isArray(P)&&P.length>0?M=(0,zn.jl)(Xn,P[0]):void 0!==I?M.push(er("FollowerCount",I)):void 0!==D&&M.push(er("CrossDataCenterFollowerCount",D)),{generalInfo:A,tableStatsInfo:R,tabletMetricsInfo:O,partitionConfigInfo:M}},ai=(0,c.cn)("ydb-diagnostics-table-info"),ni=({data:e,type:t})=>{const a=(0,d.jsx)(Wr,{data:null===e||void 0===e?void 0:e.PathDescription}),{generalInfo:r,tableStatsInfo:i,tabletMetricsInfo:s=[],partitionConfigInfo:o=[]}=n.useMemo((()=>ti(e,t)),[e,t]);return(0,d.jsxs)("div",{className:ai(),children:[(0,d.jsx)(zn.z_,{info:r,title:a,className:ai("info-block"),renderEmptyState:()=>(0,d.jsx)("div",{className:ai("title"),children:a})}),(0,d.jsxs)("div",{className:ai("row"),children:[i?(0,d.jsx)("div",{className:ai("col"),children:i.map(((e,t)=>(0,d.jsx)(zn.z_,{info:e,title:0===t?Jr("tableStats"):void 0,className:ai("info-block"),renderEmptyState:()=>null},t)))}):null,s.length>0||o.length>0?(0,d.jsxs)("div",{className:ai("col"),children:[(0,d.jsx)(zn.z_,{info:s,title:Jr("tabletMetrics"),className:ai("info-block"),renderEmptyState:()=>null}),(0,d.jsx)(zn.z_,{info:o,title:Jr("partitionConfig"),className:ai("info-block"),renderEmptyState:()=>null})]}):null]})]})},ri=({data:e,path:t,database:a})=>{const n=Fn(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsxs)("div",{children:[(0,d.jsx)(zn.z_,{title:n,info:Qr(e)}),(0,d.jsx)(qr,{path:t,database:a})]}):(0,d.jsxs)("div",{className:"error",children:["No ",n," data"]})};const ii=function({type:e,path:t,database:a}){const[r]=(0,he.Nt)(),i=ee(e),s=(0,he.N4)((n=>ue(n,t,e,a)),Cn.bN);let o=[];i?s&&(o=[t,...s]):o=[t];const{mergedDescribe:l,loading:c,error:u}=pe({paths:o,database:a,autoRefreshInterval:r}),p=l[t];return c||i&&!s?(0,d.jsx)(je.a,{size:"m"}):(0,d.jsxs)(n.Fragment,{children:[u?(0,d.jsx)(Ne.o,{error:u}):null,u&&!p?null:(()=>{var n;const r=null!==p&&void 0!==p?p:void 0,i={[f.EPathTypeInvalid]:void 0,[f.EPathTypeDir]:void 0,[f.EPathTypeTable]:void 0,[f.EPathTypeSubDomain]:void 0,[f.EPathTypeTableIndex]:()=>(0,d.jsx)(nr,{data:r}),[f.EPathTypeExtSubDomain]:void 0,[f.EPathTypeColumnStore]:void 0,[f.EPathTypeColumnTable]:void 0,[f.EPathTypeCdcStream]:()=>{const e=null===s||void 0===s?void 0:s[0];var n;if(e)return(0,d.jsx)($r,{path:t,database:a,data:r,topic:null!==(n=null===l||void 0===l?void 0:l[e])&&void 0!==n?n:void 0})},[f.EPathTypePersQueueGroup]:()=>(0,d.jsx)(ri,{data:r,path:t,database:a}),[f.EPathTypeExternalTable]:()=>(0,d.jsx)(xr,{data:r}),[f.EPathTypeExternalDataSource]:()=>(0,d.jsx)(ur,{data:r}),[f.EPathTypeView]:()=>(0,d.jsx)(Nr,{data:r}),[f.EPathTypeReplication]:()=>(0,d.jsx)(Or,{data:r})};return e&&(null===(n=i[e])||void 0===n?void 0:n.call(i))||(0,d.jsx)(ni,{data:r,type:e})})()]})};var si,oi=a(74417);function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},li.apply(this,arguments)}const ci=function(e){return n.createElement("svg",li({fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),si||(si=n.createElement("path",{d:"M14.195 11.375H3.125v-7.82a.328.328 0 00-.305-.305H1.805a.309.309 0 00-.305.305v9.14c0 .178.127.305.305.305h12.39a.309.309 0 00.305-.305V11.68a.328.328 0 00-.305-.305zm-3.25-5.688L8.812 7.11 6.63 4.24c-.127-.178-.38-.178-.508.026L3.937 7.922v2.64h9.75l-2.285-4.748c-.101-.177-.304-.228-.457-.127z"})))};function di({href:e,className:t,size:a="xs"}){return(0,d.jsx)(wn.$,{href:e,target:"_blank",className:t,size:a,title:"Monitoring dashboard",children:(0,d.jsx)(Tt.I,{data:ci})})}var ui=a(20680),pi=a(66643),mi=a(40014),hi=a(25533),vi=a(90474);const gi=["#7EB26D","#EAB839","#6ED0E0","#EF843C","#E24D42","#1F78C1","#BA43A9","#705DA0","#508642","#CCA300"];function yi(e){return null===e?me.Pd:(0,Dt.Xo)((0,Pe.CR)(fi(e),2))}function xi(e){return null===e?me.Pd:(0,wa.z3)({value:fi(e),precision:3})}function bi(e){return null===e?me.Pd:Math.round(100*fi(e))+"%"}function fi(e){return(0,Xr.kf)(e)?Number(e):0}const Si={"30m":30*me.r0,"1h":me.Jg,"1d":me.tt,"1w":7*me.tt},Ei=JSON.parse('{"not-supported":"Charts are not supported on current ydb version"}'),Ti=(0,rt.g4)("ydb-metric-chart",{en:Ei}),Ni=oe.F.injectEndpoints({endpoints:e=>({getChartData:e.query({queryFn:async(e,{signal:t})=>{try{const a=await(async({database:e,metrics:t,timeFrame:a,maxDataPoints:n},{signal:r}={})=>{const i=t.map((e=>`target=${e.target}`)).join("&"),s=Math.round(Date.now()/1e3),o=s-Si[a];return window.api.viewer.getChartData({target:i,from:o,until:s,maxDataPoints:n,database:e},{signal:r})})(e,{signal:t});if(Array.isArray(a)){return{data:((e=[],t)=>{const a=e.map((({datapoints:e,target:a})=>{const n=t.find((e=>e.target===a));if(!n)return;const r=e.map((e=>e[0]));return{...n,data:r}})).filter((e=>void 0!==e));return{timeline:e[0].datapoints.map((e=>1e3*e[1])),metrics:a}})(a,e.metrics)}}return{error:new Error("string"===typeof a?Ti("not-supported"):a.error)}}catch(a){return{error:a}}},providesTags:["All"],keepUnusedDataFor:0})}),overrideExisting:"throw"}),ji=(0,c.cn)("ydb-metric-chart");pi.W.set({plugins:[hi.YagrPlugin]});const Ci=(e,t={})=>{const{dataType:a,scaleRange:n}=t,r=(e=>{switch(e){case"ms":return yi;case"size":return xi;case"percent":return bi;default:return}})(a),i=!e.metrics.length,s=e.metrics.map(((e,t)=>{const a=e.color||gi[t],n=function(e,t){const a=(0,vi.Mj)(e);if(!a.isValid())throw new Error("Invalid color is passed");return a.alpha(t).toRgbString()}(a,.1);return{id:e.target,name:e.title||e.target,data:e.data,formatter:r,lineColor:a,color:n,legendColorKey:"lineColor"}}));return{data:{timeline:e.timeline,graphs:s},libraryConfig:{chart:{size:{padding:i?[10,0,10,0]:void 0},series:{type:"area",spanGaps:!0,lineWidth:1.5},select:{zoom:!1}},scales:{y:{type:"linear",range:"nice",min:(null===n||void 0===n?void 0:n.min)||0,max:null===n||void 0===n?void 0:n.max}},axes:{y:{values:r?(e,t)=>t.map(r):void 0}},tooltip:{show:!0,tracking:"sticky"}}}},wi={timeline:[],metrics:[]},Pi=({database:e,title:t,metrics:a,timeFrame:r="1h",autorefresh:i,width:s=400,height:o=s/1.5,chartOptions:l,onChartDataStatusChange:c,isChartVisible:u})=>{const{currentData:p,error:m,isFetching:h,status:v}=Ni.useGetChartDataQuery({database:e,metrics:a,timeFrame:r,maxDataPoints:s/2},{pollingInterval:i}),g=h&&!p;n.useEffect((()=>null===c||void 0===c?void 0:c("fulfilled"===v?"success":"loading")),[v,c]);const y=Ci(p||wi,l);return(0,d.jsxs)("div",{className:ji(null),style:{height:o,width:s},children:[(0,d.jsx)("div",{className:ji("title"),children:t}),g?(0,d.jsx)(je.a,{}):u?(0,d.jsxs)("div",{className:ji("chart"),children:[(0,d.jsx)(mi.Ay,{type:"yagr",data:y}),m?(0,d.jsx)(Ne.o,{className:ji("error"),error:m}):null]}):null]})},Ii=(0,c.cn)("ydb-timeframe-selector"),Di=({value:e,onChange:t,className:a})=>(0,d.jsx)("div",{className:Ii(null,a),children:Object.keys(Si).map((a=>(0,d.jsx)(wn.$,{view:"flat",selected:e===a,onClick:()=>t(a),children:a},a)))}),Ai=(0,c.cn)("ydb-tenant-dashboard"),_i=({database:e,charts:t})=>{const[a,r]=n.useState(!0),[s="1h",o]=(0,i.useQueryParam)("timeframe",i.StringParam),[l]=(0,he.Nt)(),c=a?0:l,u=e=>{"success"===e&&r(!1)},p=1===t.length?872:428,m=428/1.5;return(0,d.jsxs)("div",{className:Ai(null),style:{display:a?"none":void 0},children:[(0,d.jsx)("div",{className:Ai("controls"),children:(0,d.jsx)(Di,{value:s,onChange:o})}),(0,d.jsx)("div",{className:Ai("charts"),children:t.map((t=>{const n=t.metrics.map((({target:e})=>e)).join("&");return(0,d.jsx)(Pi,{database:e,title:t.title,metrics:t.metrics,timeFrame:s,chartOptions:t.options,autorefresh:c,width:p,height:m,onChartDataStatusChange:u,isChartVisible:!a},n)}))})]})},Ri=JSON.parse('{"no-data":"No data","no-pools-data":"No pools data","top-nodes.empty-data":"No such nodes","top-groups.empty-data":"No such groups","top":"Top","nodes":"nodes","shards":"shards","groups":"groups","queries":"queries","tables":"tables","by-pools-usage":"by pools usage","by-cpu-time":"by cpu time, {{executionPeriod}}","by-cpu-usage":"by cpu usage","by-load":"by load","by-memory":"by memory","by-usage":"by usage","by-size":"by size","cards.cpu-label":"CPU","cards.storage-label":"Storage","cards.memory-label":"Memory","charts.queries-per-second":"Queries per second","charts.transaction-latency":"Transactions latencies {{percentile}}","charts.cpu-usage":"CPU usage by pool","charts.storage-usage":"Tablet storage usage","charts.memory-usage":"Memory usage","storage.tablet-storage-title":"Tablet storage","storage.tablet-storage-description":"Size of user data and indexes stored in schema objects (tables, topics, etc.)","storage.db-storage-title":"Database storage","storage.db-storage-description":"Size of data stored in distributed storage with all overheads for redundancy","executed-last-hour":"executed in the last hour","column-header.process":"Process"}'),Oi=(0,rt.g4)("ydb-diagnostics-tenant-overview",{en:Ri}),Mi=[{title:Oi("charts.queries-per-second"),metrics:[{target:"queries.requests",title:Oi("charts.queries-per-second")}]},{title:Oi("charts.transaction-latency",{percentile:""}),metrics:[{target:"queries.latencies.p50",title:Oi("charts.transaction-latency",{percentile:"p50"})},{target:"queries.latencies.p75",title:Oi("charts.transaction-latency",{percentile:"p75"})},{target:"queries.latencies.p90",title:Oi("charts.transaction-latency",{percentile:"p90"})},{target:"queries.latencies.p99",title:Oi("charts.transaction-latency",{percentile:"p99"})}],options:{dataType:"ms"}}],ki=({database:e})=>(0,d.jsx)(_i,{database:e,charts:Mi}),Li=oe.F.injectEndpoints({endpoints:e=>({getHealthcheckInfo:e.query({queryFn:async({database:e,maxLevel:t},{signal:a})=>{try{return{data:await window.api.viewer.getHealthcheckInfo({database:e,maxLevel:t},{signal:a})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"}),zi={RED:0,ORANGE:1,YELLOW:2,BLUE:3,GREEN:4},Fi=e=>e.sort(((e,t)=>(zi[e.status]||0)-(zi[t.status]||0))),Ui=({issue:e,data:t})=>Fi(t.filter((t=>e.reason&&-1!==e.reason.indexOf(t.id)))),qi=({data:e,roots:t})=>t?t.map((t=>{const a=qi({roots:Ui({issue:t,data:e}),data:e});return{...t,reasonsItems:a}})):[],Qi=(0,x.Mz)((e=>e),(e=>Li.endpoints.getHealthcheckInfo.select({database:e}))),Bi=(0,x.Mz)((e=>e),((e,t)=>Qi(t)),((e,t)=>{var a;return(null===(a=t(e).data)||void 0===a?void 0:a.issue_log)||[]})),$i=(0,x.Mz)(Bi,((e=[])=>{return Fi((t=e).filter((e=>!t.find((t=>t.reason&&-1!==t.reason.indexOf(e.id))))));var t})),Gi=(0,x.Mz)([Bi,$i],((e=[],t=[])=>qi({data:e,roots:t}))),Hi=(0,x.Mz)(Bi,((e=[])=>(e=>{const t={};for(const a of e)t[a.status]||(t[a.status]=0),t[a.status]++;return Object.entries(t).sort((([e],[t])=>(zi[e]||0)-(zi[t]||0)))})(e)));let Wi,Vi;!function(e){e.UNSPECIFIED="UNSPECIFIED",e.GOOD="GOOD",e.DEGRADED="DEGRADED",e.MAINTENANCE_REQUIRED="MAINTENANCE_REQUIRED",e.EMERGENCY="EMERGENCY"}(Wi||(Wi={})),function(e){e.UNSPECIFIED="UNSPECIFIED",e.GREY="GREY",e.GREEN="GREEN",e.BLUE="BLUE",e.YELLOW="YELLOW",e.ORANGE="ORANGE",e.RED="RED"}(Vi||(Vi={}));var Ji=a(63126),Yi=a(54090);const Ki={[Vi.UNSPECIFIED]:Yi.m.Grey,[Vi.GREY]:Yi.m.Grey,[Vi.GREEN]:Yi.m.Green,[Vi.BLUE]:Yi.m.Blue,[Vi.YELLOW]:Yi.m.Yellow,[Vi.ORANGE]:Yi.m.Orange,[Vi.RED]:Yi.m.Red},Zi=(0,c.cn)("issue-tree-item"),Xi=({status:e,message:t,type:a,onClick:n})=>(0,d.jsxs)("div",{className:Zi(),onClick:n,children:[(0,d.jsx)("div",{className:Zi("field",{status:!0}),children:(0,d.jsx)(rr.c,{mode:"icons",status:e,name:a})}),(0,d.jsx)("div",{className:Zi("field",{message:!0}),children:t})]}),es=(0,c.cn)("issue-tree"),ts=({issueTree:e})=>{const[t,a]=n.useState({}),r=n.useCallback((e=>e?(0,d.jsx)("div",{className:es("info-panel"),children:(0,d.jsx)(On,{data:e,search:!1,isExpanded:()=>!0,treeClassName:es("inspector")})}):null),[]),i=n.useCallback((e=>e.map((e=>{const{id:n}=e,{status:s,message:o,type:l,reasonsItems:c,level:u,...p}=e,m="undefined"===typeof t[n]||t[n],h=()=>{a((e=>({...e,[n]:!m})))};return(0,d.jsxs)(Ji.G,{name:(0,d.jsx)(Xi,{status:Ki[s],message:o,type:l}),collapsed:m,hasArrow:!0,onClick:h,onArrowClick:h,level:u-1,children:[r(Kr()(p,["reason"])),i(c||[])]},n)}))),[t,r]);return(0,d.jsx)("div",{className:es(),children:(0,d.jsx)("div",{className:es("block"),children:i([e])})})},as=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"Update","label.show-details":"Show details","label.issues":"Issues:","status_message.ok":"No issues","no-data":"no healthcheck data"}'),ns=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c","label.show-details":"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438","label.issues":"\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:","status_message.ok":"\u041d\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c","no-data":"\u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 healthcheck"}'),rs=(0,rt.g4)("ydb-diagnostics-healthcheck",{ru:ns,en:as}),is=(0,c.cn)("healthcheck");function ss({tenantName:e}){const[t]=(0,he.Nt)(),{issueTrees:a,loading:r,error:i}=((e,{autorefresh:t}={})=>{const{currentData:a,isFetching:n,error:r,refetch:i}=Li.useGetHealthcheckInfoQuery({database:e},{pollingInterval:t}),s=(null===a||void 0===a?void 0:a.self_check_result)||Wi.UNSPECIFIED,o=(0,he.N4)((t=>Hi(t,e)));return{issueTrees:(0,he.N4)((t=>Gi(t,e))),issuesStatistics:o,loading:void 0===a&&n,error:r,refetch:i,selfCheckResult:s}})(e,{autorefresh:t});return(0,d.jsx)("div",{className:is("details"),children:(0,d.jsx)("div",{className:is("details-content-wrapper"),children:i?(0,d.jsx)(Ne.o,{error:i,defaultMessage:rs("no-data")}):r?(0,d.jsx)(je.a,{size:"m"}):a&&a.length?(0,d.jsx)(n.Fragment,{children:a.map((e=>(0,d.jsx)(ts,{issueTree:e},e.id)))}):rs("status_message.ok")})})}var os=a(8861),ls=a(73633),cs=a(70825),ds=a(43937),us=a(10800),ps=a(71153),ms=a(2102);const hs=(0,c.cn)("healthcheck"),vs={[Wi.UNSPECIFIED]:ls.A,[Wi.GOOD]:cs.A,[Wi.DEGRADED]:ds.A,[Wi.MAINTENANCE_REQUIRED]:us.A,[Wi.EMERGENCY]:ps.A};function gs(e){const{tenantName:t,active:a}=e,[n]=(0,he.Nt)(),{currentData:r,isFetching:i,error:s}=Li.useGetHealthcheckInfoQuery({database:t},{pollingInterval:n}),o=i&&void 0===r;return(0,d.jsxs)(ms.A,{className:hs("preview"),active:a,children:[(0,d.jsx)("div",{className:hs("preview-header"),children:(0,d.jsx)("div",{className:hs("preview-title-wrapper"),children:(0,d.jsx)("div",{className:hs("preview-title"),children:rs("title.healthcheck")})})}),(()=>{if(s)return(0,d.jsx)(Ne.o,{error:s,defaultMessage:rs("no-data")});if(o)return(0,d.jsx)(je.a,{size:"m"});const e=(null===r||void 0===r?void 0:r.self_check_result)||Wi.UNSPECIFIED,t=e.toLowerCase();return(0,d.jsx)("div",{className:hs("preview-content"),children:(0,d.jsxs)("div",{className:hs("preview-issue",{[t]:!0}),children:[(0,d.jsx)(Tt.I,{className:hs("preview-status-icon"),data:vs[e]}),(0,d.jsx)("div",{className:hs("self-check-status-indicator"),children:e.replace(/_/g," ")})]})})})()]})}var ys=a(15132),xs=a(33775);const bs=(0,c.cn)("ydb-metrics-card"),fs=e=>{let t;return"Warning"===e&&(t=Yi.m.Yellow),"Danger"===e&&(t=Yi.m.Red),t?(0,d.jsx)(xs.k,{status:t,mode:"icons",size:"l"}):null};function Ss({active:e,label:t,status:a,metrics:n}){return(0,d.jsxs)(ms.A,{className:bs({active:e}),active:e,children:[(0,d.jsxs)("div",{className:bs("header"),children:[t&&(0,d.jsx)("div",{className:bs("label"),children:t}),fs(a)]}),(0,d.jsx)("div",{className:bs("content"),children:n.map((({title:e,...t},a)=>(0,d.jsxs)("div",{className:bs("metric"),children:[(0,d.jsx)("div",{className:bs("metric-title"),children:e}),(0,d.jsx)(ys.O,{size:"xs",colorizeProgress:!0,...t})]},a)))})]})}const Es=(0,c.cn)("metrics-cards");function Ts({poolsCpuStats:e,memoryStats:t,blobStorageStats:a,tabletStorageStats:n,tenantName:r}){const i=(0,pr.zy)(),{metricsTab:s}=(0,he.N4)((e=>e.tenant)),o=(0,Ae.mA)(i),l=e=>e===s?"":e,c={[ge.pA.cpu]:(0,ga.YL)({...o,[ga.vh.metricsTab]:l(ge.pA.cpu)}),[ge.pA.storage]:(0,ga.YL)({...o,[ga.vh.metricsTab]:l(ge.pA.storage)}),[ge.pA.memory]:(0,ga.YL)({...o,[ga.vh.metricsTab]:l(ge.pA.memory)}),[ge.pA.healthcheck]:(0,ga.YL)({...o,[ga.vh.metricsTab]:l(ge.pA.healthcheck)})};return(0,d.jsxs)("div",{className:Es(),children:[(0,d.jsx)(xe.N_,{to:c.cpu,className:Es("tab"),children:(0,d.jsx)(Ns,{poolsCpuStats:e,active:s===ge.pA.cpu})}),(0,d.jsx)(xe.N_,{to:c.storage,className:Es("tab"),children:(0,d.jsx)(js,{blobStorageStats:a,tabletStorageStats:n,active:s===ge.pA.storage})}),(0,d.jsx)(xe.N_,{to:c.memory,className:Es("tab"),children:(0,d.jsx)(Cs,{memoryStats:t,active:s===ge.pA.memory})}),(0,d.jsx)(xe.N_,{to:c.healthcheck,className:Es("tab"),children:(0,d.jsx)(gs,{tenantName:r,active:s===ge.pA.healthcheck})})]})}function Ns({poolsCpuStats:e=[],active:t}){let a=os.u.Unspecified;const n=e.filter((e=>!("Batch"===e.name||"IO"===e.name))).map((e=>{const{name:t,usage:n,limit:r,used:i}=e,s=(0,ui.ni)(n);return os.Z[s]>os.Z[a]&&(a=s),{title:t,value:i,capacity:r,warningThreshold:ui.Xi,dangerThreshold:ui._O}}));return(0,d.jsx)(Ss,{label:Oi("cards.cpu-label"),active:t,metrics:n,status:a})}function js({blobStorageStats:e=[],tabletStorageStats:t,active:a}){let n=os.u.Unspecified;const r=(t||e).map((e=>{const{name:t,used:a,limit:r,usage:i}=e,s=(0,ui.oK)(i);return os.Z[s]>os.Z[n]&&(n=s),{title:t,value:a,capacity:r,warningThreshold:ui.Ct,dangerThreshold:ui.T6,formatValues:Pe.j9}}));return(0,d.jsx)(Ss,{label:Oi("cards.storage-label"),active:a,metrics:r,status:n})}function Cs({active:e,memoryStats:t=[]}){let a=os.u.Unspecified;const n=t.map((e=>{const{name:t,used:n,limit:r,usage:i}=e,s=(0,ui.E)(i);return os.Z[s]>os.Z[a]&&(a=s),{title:t,value:n,capacity:r,warningThreshold:ui.Ke,dangerThreshold:ui.xI,formatValues:Pe.j9}}));return(0,d.jsx)(Ss,{label:Oi("cards.memory-label"),active:e,metrics:n,status:a})}var ws=a(78762),Ps=a(86782),Is=a(15298),Ds=a(40781);const As=(0,c.cn)("tenant-overview");function _s({title:e,error:t,loading:a,tableClassNameModifiers:r={},...i}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:As("title"),children:e}),t?(0,d.jsx)(Ne.o,{error:t}):null,(0,d.jsx)("div",{className:As("table",r),children:t&&0===i.data.length?null:a?(0,d.jsx)(zt.Q,{rows:me.Nz}):(0,d.jsx)(Xe.l,{settings:me.jp,...i})})]})}var Rs=a(82015);const Os=({prefix:e=Oi("top"),entity:t,postfix:a,link:r,onClick:i})=>r?(0,d.jsxs)(n.Fragment,{children:[e," ",(0,d.jsx)(Rs.E,{to:r,onClick:i,children:t})," ",a]}):`${e} ${t} ${a}`;function Ms({tenantName:e,additionalNodesProps:t}){const a=(0,he.e4)(),[n]=(0,he.Nt)(),[r,i]=function(e){const t={...(0,ws.Nh)(e),width:void 0},a=[(0,ws.kv)(),(0,ws._E)(),t].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,Ds.R)(n,Ps.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:s,isFetching:o,error:l}=Is.s.useGetNodesQuery({tenant:e,type:"any",sort:"-CPU",limit:me.Nz,tablets:!1,fieldsRequired:i},{pollingInterval:n}),c=o&&void 0===s,u=(null===s||void 0===s?void 0:s.Nodes)||[],p=Os({entity:Oi("nodes"),postfix:Oi("by-pools-usage"),link:(0,ga.YL)({...a,[ga.vh.diagnosticsTab]:ge.iJ.nodes})});return(0,d.jsx)(_s,{columnsWidthLSKey:Ps.zO,data:u,columns:r,title:p,loading:c,error:l,emptyDataMessage:Oi("top-nodes.empty-data")})}function ks({tenantName:e,additionalNodesProps:t}){const a=(0,he.e4)(),[n]=(0,he.Nt)(),[r,i]=function(e){const t={...(0,ws.Nh)(e),width:void 0},a=[(0,ws.fR)(),(0,ws._E)(),t,(0,ws.Rn)()].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,Ds.R)(n,Ps.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:s,isFetching:o,error:l}=Is.s.useGetNodesQuery({tenant:e,type:"any",sort:"-LoadAverage",limit:me.Nz,tablets:!1,fieldsRequired:i},{pollingInterval:n}),c=o&&void 0===s,u=(null===s||void 0===s?void 0:s.Nodes)||[],p=Os({entity:Oi("nodes"),postfix:Oi("by-load"),link:(0,ga.YL)({...a,[ga.vh.diagnosticsTab]:ge.iJ.nodes})});return(0,d.jsx)(_s,{columnsWidthLSKey:Ps.zO,data:u,columns:r,title:p,loading:c,error:l,emptyDataMessage:Oi("top-nodes.empty-data")})}var Ls=a(69053),zs=a(10468),Fs=a(16332),Us=a(2198);const qs=JSON.parse('{"action_cancel":"Cancel"}'),Qs=(0,rt.g4)("ydb-confirmation-dialog",{en:qs}),Bs=(0,c.cn)("confirmation-dialog"),$s="confirmation-dialog";function Gs({caption:e="",children:t,onConfirm:a,onClose:n,progress:r,textButtonApply:i,textButtonCancel:s,buttonApplyView:o="normal",className:l,renderButtons:c,open:u}){return(0,d.jsxs)(Us.l,{className:Bs(null,l),size:"s",onClose:n,disableOutsideClick:!0,open:u,children:[(0,d.jsx)(Us.l.Header,{caption:(0,d.jsx)("span",{className:Bs("caption"),children:e})}),(0,d.jsx)(Us.l.Body,{children:t}),(0,d.jsx)(Us.l.Footer,{onClickButtonApply:a,propsButtonApply:{view:o},textButtonApply:i,textButtonCancel:null!==s&&void 0!==s?s:Qs("action_cancel"),onClickButtonCancel:n,loading:r,renderButtons:c})]})}const Hs=Fs.vt((e=>{const t=Fs.hS(),a=()=>{t.hide(),t.remove()};return(0,d.jsx)(Gs,{...e,onConfirm:async()=>{var n;await(null===(n=e.onConfirm)||void 0===n?void 0:n.call(e)),t.resolve(!0),a()},onClose:()=>{var n;null===(n=e.onClose)||void 0===n||n.call(e),t.resolve(!1),a()},open:t.visible})}));Fs.kz($s,Hs);var Ws=a(40569),Vs=a(28664),Js=a(36894);function Ys(){const[e]=(0,he.iK)(me.ld,[]),t=(0,he.N4)(Js.cu).toLowerCase();return t?e.filter((e=>e.body.toLowerCase().includes(t))):e}const Ks=JSON.parse('{"action.save":"Save query","action.edit":"Edit query","action.save-as-new":"Save as new","action.edit-existing":"Edit existing","description":"The query will be saved in your browser","input-label":"Query name","input-placeholder":"Enter query name","button-apply":"Save","button-cancel":"Cancel","error.name-exists":"This name already exists","error.name-not-empty":"Name should not be empty"}'),Zs=(0,rt.g4)("ydb-save-query-dialog",{en:Ks}),Xs=(0,c.cn)("ydb-save-query");function eo(e){const t=(0,he.YQ)();return n.useCallback((()=>{Fs.Ay.show(ro,e),t((0,Js.gJ)())}),[t,e])}function to({dialogProps:e,...t}){const a=eo(e);return(0,d.jsx)(wn.$,{onClick:a,...t,children:Zs("action.save")})}function ao({buttonProps:e={}}){const t=(0,he.YQ)(),a=(0,he.N4)(Js.aW),n=eo(),r=()=>{t((0,Js.Wg)(a)),t((0,Js.gJ)())};return a?(()=>{const t=[{action:r,text:Zs("action.edit-existing")},{action:n,text:Zs("action.save-as-new")}];return(0,d.jsx)(Ws.r,{items:t,renderSwitcher:t=>(0,d.jsx)(wn.$,{...t,...e,children:Zs("action.edit")}),popupProps:{placement:"top"}})})():(0,d.jsx)(to,{})}function no({onSuccess:e,onCancel:t,onClose:a,open:r}){const i=Ys(),s=(0,he.YQ)(),[o,l]=n.useState(""),[c,u]=n.useState(),p=()=>{s((0,Js.NJ)("idle")),l(""),u(void 0),null===a||void 0===a||a()},m=()=>{null===t||void 0===t||t(),p()};return(0,d.jsxs)(Us.l,{open:r,hasCloseButton:!1,size:"s",onClose:m,children:[(0,d.jsx)(Us.l.Header,{caption:Zs("action.save")}),(0,d.jsxs)("form",{onSubmit:t=>{t.preventDefault();const a=(n=o)?i.some((e=>e.name.toLowerCase()===n.trim().toLowerCase()))?Zs("error.name-exists"):void 0:Zs("error.name-not-empty");var n;u(a),a||(s((0,Js.Wg)(o)),p(),null===e||void 0===e||e())},children:[(0,d.jsxs)(Us.l.Body,{className:Xs("dialog-body"),children:[(0,d.jsx)("div",{className:Xs("dialog-row"),children:Zs("description")}),(0,d.jsxs)("div",{className:Xs("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryName",className:Xs("field-title","required"),children:Zs("input-label")}),(0,d.jsx)("div",{className:Xs("control-wrapper"),children:(0,d.jsx)(Vs.k,{id:"queryName",placeholder:Zs("input-placeholder"),value:o,onUpdate:e=>{l(e),u(void 0)},hasClear:!0,autoFocus:!0,autoComplete:!1,validationState:c?"invalid":void 0,errorMessage:c})})]})]}),(0,d.jsx)(Us.l.Footer,{textButtonApply:Zs("button-apply"),textButtonCancel:Zs("button-cancel"),onClickButtonCancel:m,propsButtonApply:{type:"submit"}})]})]})}const ro="save-query-dialog",io=Fs.Ay.create((e=>{const t=Fs.Ay.useModal();return(0,d.jsx)(no,{...e,onClose:()=>{var a;null===(a=e.onClose)||void 0===a||a.call(e),t.hide(),t.remove()},open:t.visible})}));Fs.Ay.register(ro,io);const so=JSON.parse('{"action_apply":"Don\'t save","context_unsaved-changes-warning":"You have unsaved changes in query editor.\\nDo you want to proceed?"}'),oo=(0,rt.g4)("ydb-change-input-confirmation",{en:so});function lo(){const e=Fs.Ay.useModal($s),t=n.useCallback((()=>{e.hide(),e.remove()}),[e]),a=n.useCallback((()=>{e.resolve(!0),t()}),[e,t]),r=n.useCallback((()=>{e.resolve(!1),t()}),[t,e]),i=n.useMemo((()=>({onSuccess:a,onCancel:r})),[a,r]);return(0,d.jsx)(to,{view:"action",size:"l",dialogProps:i})}async function co(){return await Fs.Ay.show($s,{id:$s,caption:oo("context_unsaved-changes-warning"),textButtonApply:oo("action_apply"),propsButtonApply:{view:"l"},renderButtons:(e,t)=>(0,d.jsxs)(n.Fragment,{children:[t,(0,d.jsx)(lo,{}),e]})})}function uo(e){const t=(0,he.N4)(zs.Wp),a=n.useMemo((()=>function(e){return async t=>{await co()&&e(t)}}(e)),[e]);return t?a:e}const po=(0,c.cn)("kv-truncated-query"),mo=({value:e="",maxQueryHeight:t=6})=>{const a=e.split("\n");if(a.length>t){const e=a.slice(0,t).join("\n"),r="\n...\nThe request was truncated. Click on the line to show the full query on the query tab";return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("span",{className:po(),children:e}),(0,d.jsx)("span",{className:po("message",{color:"secondary"}),children:r})]})}return(0,d.jsx)(n.Fragment,{children:e})},ho=({value:e=""})=>(0,d.jsx)(jt.s,{contentClassName:po("popover-content"),content:e,children:e});var vo=a(70206),go=a.n(vo);const yo={...me.N3,dynamicRenderType:"variable"},xo=JSON.parse('{"cpu-time":"CPUTime","read-rows":"ReadRows","read-bytes":"ReadBytes","query-hash":"QueryHash","user":"User","start-time":"Start time","end-time":"End time","duration":"Duration","query-text":"Query text","application":"Application"}'),bo=(0,rt.g4)("ydb-top-queries-columns",{en:xo}),fo="topQueriesColumnsWidth",So="CPUTime",Eo="QueryText",To="EndTime",No="ReadRows",jo="ReadBytes",Co="UserSID",wo="OneLineQueryText",Po="QueryHash",Io="Duration",Do="QueryStartAt",Ao="ApplicationName",_o={get CPUTime(){return bo("cpu-time")},get QueryText(){return bo("query-text")},get EndTime(){return bo("end-time")},get ReadRows(){return bo("read-rows")},get ReadBytes(){return bo("read-bytes")},get UserSID(){return bo("user")},get OneLineQueryText(){return bo("query-text")},get QueryHash(){return bo("query-hash")},get Duration(){return bo("duration")},get QueryStartAt(){return bo("start-time")},get ApplicationName(){return bo("application")}},Ro={CPUTime:"CPUTimeUs",QueryText:void 0,EndTime:"EndTime",ReadRows:"ReadRows",ReadBytes:"ReadBytes",UserSID:"UserSID",OneLineQueryText:void 0,QueryHash:void 0,Duration:"Duration",QueryStartAt:"QueryStartAt",ApplicationName:"ApplicationName"};function Oo(e){return Ro[e]}function Mo(e){return Boolean(Oo(e))}const ko=(0,c.cn)("kv-top-queries"),Lo={name:So,header:_o.CPUTime,sortAccessor:e=>Number(e.CPUTimeUs),render:({row:e})=>{var t;return(0,Dt.Xo)((0,Dt.Jc)(null!==(t=e.CPUTimeUs)&&void 0!==t?t:void 0))},width:120,align:Vt.Ay.RIGHT,sortable:!1},zo={name:Eo,header:_o.QueryText,sortAccessor:e=>Number(e.CPUTimeUs),render:({row:e})=>{var t;return(0,d.jsx)("div",{className:ko("query"),children:(0,d.jsx)(mo,{value:null===(t=e.QueryText)||void 0===t?void 0:t.toString(),maxQueryHeight:6})})},sortable:!1,width:500},Fo={name:To,header:_o.EndTime,render:({row:e})=>(0,Pe.r6)(new Date(e.EndTime).getTime()),align:Vt.Ay.RIGHT,width:200},Uo={name:No,header:_o.ReadRows,render:({row:e})=>(0,Pe.ZV)(e.ReadRows),sortAccessor:e=>Number(e.ReadRows),align:Vt.Ay.RIGHT,width:150},qo={name:jo,header:_o.ReadBytes,render:({row:e})=>(0,Pe.ZV)(e.ReadBytes),sortAccessor:e=>Number(e.ReadBytes),align:Vt.Ay.RIGHT,width:150},Qo={name:Co,header:_o.UserSID,render:({row:e})=>(0,d.jsx)("div",{className:ko("user-sid"),children:e.UserSID||"\u2013"}),sortAccessor:e=>String(e.UserSID),align:Vt.Ay.LEFT},Bo={name:wo,header:_o.OneLineQueryText,render:({row:e})=>{var t;return(0,d.jsx)(ho,{value:null===(t=e.QueryText)||void 0===t?void 0:t.toString()})},sortable:!1,width:500},$o={name:Po,header:_o.QueryHash,render:({row:e})=>{return t=String(e.QueryText),(go().str(t)>>>0).toString(16).toUpperCase().padStart(8,"0");var t},width:130,sortable:!1},Go={name:Io,header:_o.Duration,render:({row:e})=>{var t;return(0,Dt.Xo)((0,Dt.Jc)(null!==(t=e.Duration)&&void 0!==t?t:void 0))},sortAccessor:e=>Number(e.Duration),align:Vt.Ay.RIGHT,width:150},Ho={name:Do,header:_o.QueryStartAt,render:({row:e})=>(0,Pe.r6)(new Date(e.QueryStartAt).getTime()),sortable:!0,resizeable:!1,defaultOrder:Vt.Ay.DESCENDING},Wo={name:Ao,header:_o.ApplicationName,render:({row:e})=>(0,d.jsx)("div",{className:ko("user-sid"),children:e.ApplicationName||"\u2013"}),sortable:!0};function Vo({tenantName:e}){var t,a;const r=(0,he.YQ)(),i=(0,pr.zy)(),s=(0,pr.W6)(),o=(0,Ae.mA)(i),[l]=(0,he.Nt)(),c=n.useMemo((()=>[$o,Bo,Lo].map((e=>({...e,sortable:!1})))),[]),{currentData:u,isFetching:p,error:m}=Ls.Ke.useGetTopQueriesQuery({database:e},{pollingInterval:l}),h=p&&void 0===u,v=(null===u||void 0===u||null===(t=u.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],g=uo(n.useCallback((e=>{const{QueryText:t}=e;r((0,zs.iZ)({input:t}));const a=(0,Ae.mA)(i),n=(0,ga.YL)({...a,[ge.Dt]:ge.Dg.query,[ga.vh.queryTab]:ge.tQ.newQuery});s.push(n)}),[r,s,i])),y=Os({entity:Oi("queries"),postfix:Oi("by-cpu-time",{executionPeriod:Oi("executed-last-hour")}),onClick:()=>{r((0,Ls.TX)({from:void 0,to:void 0}))},link:(0,ga.YL)({...o,[ga.vh.diagnosticsTab]:ge.iJ.topQueries})});return(0,d.jsx)(_s,{columnsWidthLSKey:fo,data:v||[],columns:c,onRowClick:g,title:y,loading:h,error:(0,Ft.Cb)(m),rowClassName:()=>As("top-queries-row")})}function Jo(e,t){return`SELECT\n ${t?`CAST(SUBSTRING(CAST(Path AS String), ${t.length}) AS Utf8) AS Path`:"Path"},\n TabletId,\n CPUCores,\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\nORDER BY CPUCores DESC\nLIMIT ${me.Nz}`}const Yo=oe.F.injectEndpoints({endpoints:e=>({getTopShards:e.query({queryFn:async({database:e,path:t=""},{signal:a})=>{try{const n=await window.api.viewer.sendQuery({query:Jo(t,e),database:e,action:"execute-scan"},{signal:a,withRetries:!0});return(0,Ft.We)(n)?{error:n}:{data:(0,Ft.fW)(n)}}catch(n){return{error:n||new Error("Unauthorized")}}},providesTags:["All"]})}),overrideExisting:"throw"});var Ko=a(67884);function Zo({path:e,location:t,...a}){const n=(0,Ae.mA)(t),r=(0,Ae.Ow)({...n,schema:e});return(0,d.jsx)(Ko.N,{view:"normal",...a,href:r})}var Xo=a(80420),el=a(13342);const tl=(0,a(16439).H)(60,80,["success","warning","danger"]);var al=a(29819);const nl=JSON.parse('{"tablet-id":"TabletId","cpu-cores":"CPUCores","data-size":"DataSize (B)","path":"Path","node-id":"NodeId","peak-time":"PeakTime","in-flight-tx-count":"InFlightTxCount","interval-end":"IntervalEnd"}'),rl=(0,rt.g4)("ydb-top-shards-columns",{en:nl}),il="topShardsColumnsWidth",sl="TabletId",ol="CPUCores",ll="DataSize",cl="Path",dl="NodeId",ul="PeakTime",pl="InFlightTxCount",ml="IntervalEnd",hl={get TabletId(){return rl("tablet-id")},get CPUCores(){return rl("cpu-cores")},get DataSize(){return rl("data-size")},get Path(){return rl("path")},get NodeId(){return rl("node-id")},get PeakTime(){return rl("peak-time")},get InFlightTxCount(){return rl("in-flight-tx-count")},get IntervalEnd(){return rl("interval-end")}},vl={TabletId:void 0,CPUCores:"CPUCores",DataSize:"DataSize",Path:void 0,NodeId:void 0,PeakTime:void 0,InFlightTxCount:"InFlightTxCount",IntervalEnd:void 0};function gl(e){return vl[e]}const yl=(e,t)=>({name:cl,header:hl.Path,render:({row:a})=>(0,d.jsx)(Zo,{path:e+a.Path,location:t,children:a.Path}),sortable:!1,width:300}),xl={name:ol,header:hl.CPUCores,render:({row:e})=>{return t=e.CPUCores||0,`${(0,Pe.CR)(100*Number(t),2)}%`;var t},align:Vt.Ay.RIGHT},bl={name:ll,header:hl.DataSize,render:({row:e})=>(0,Pe.ZV)(e.DataSize),align:Vt.Ay.RIGHT},fl={name:sl,header:hl.TabletId,render:({row:e})=>e.TabletId?(0,d.jsx)(Xo.$,{tabletId:e.TabletId}):"\u2013",sortable:!1,width:220},Sl={name:dl,header:hl.NodeId,render:({row:e})=>e.NodeId?(0,d.jsx)($a.E,{to:(0,al.vI)(e.NodeId),children:e.NodeId}):"\u2013",align:Vt.Ay.RIGHT},El={name:ol,header:hl.CPUCores,render:({row:e})=>(0,d.jsx)(el.U,{value:(0,Pe.CR)(100*Number(e.CPUCores),2),theme:tl(100*Number(e.CPUCores))}),align:Vt.Ay.RIGHT,sortable:!1,width:140,resizeMinWidth:140},Tl={name:pl,header:hl.InFlightTxCount,render:({row:e})=>(0,Pe.ZV)(e.InFlightTxCount),align:Vt.Ay.RIGHT},Nl=({tenantName:e,path:t})=>{var a,n;const r=(0,pr.zy)(),i=(0,Ae.mA)(r),[s]=(0,he.Nt)(),{currentData:o,isFetching:l,error:c}=Yo.useGetTopShardsQuery({database:e,path:t},{pollingInterval:s}),u=l&&void 0===o,p=(null===o||void 0===o||null===(a=o.resultSets)||void 0===a||null===(n=a[0])||void 0===n?void 0:n.result)||[],m=((e,t)=>[fl,yl(e,t),El])(e,r),h=Os({entity:Oi("shards"),postfix:Oi("by-cpu-usage"),link:(0,ga.YL)({...i,[ga.vh.diagnosticsTab]:ge.iJ.topShards})});return(0,d.jsx)(_s,{columnsWidthLSKey:il,data:p||[],columns:m,title:h,loading:u,error:(0,Ft.Cb)(c)})},jl=[{title:Oi("charts.cpu-usage"),metrics:["IC","IO","Batch","User","System"].map((e=>({target:`resources.cpu.${e}.usage`,title:e}))),options:{dataType:"percent",scaleRange:{min:0,max:1}}}];function Cl({tenantName:e,additionalNodesProps:t}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(_i,{database:e,charts:jl}),(0,d.jsx)(ks,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(Ms,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(Nl,{tenantName:e,path:e}),(0,d.jsx)(Vo,{tenantName:e})]})}var wl=a(73473);function Pl({tenantName:e,additionalNodesProps:t}){const a=(0,he.e4)(),[n]=(0,he.Nt)(),[r,i]=function(e){const t=[(0,ws._E)(),(0,ws.Nh)(e),(0,ws.jl)(),(0,ws.fR)(),(0,ws.iX)(),(0,ws.oz)(),(0,ws.qp)(e)].map((e=>({...e,sortable:!1}))),a=t.map((e=>e.name));return[t,(0,Ds.R)(a,Ps.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:s,isFetching:o,error:l}=Is.s.useGetNodesQuery({tenant:e,type:"any",tablets:!0,sort:"-Memory",limit:me.Nz,fieldsRequired:i},{pollingInterval:n}),c=o&&void 0===s,u=(null===s||void 0===s?void 0:s.Nodes)||[],p=Os({entity:Oi("nodes"),postfix:Oi("by-memory"),link:(0,ga.YL)({...a,[ga.vh.diagnosticsTab]:ge.iJ.nodes})});return(0,d.jsx)(_s,{columnsWidthLSKey:Ps.zO,data:u,columns:r,title:p,loading:c,error:l,emptyDataMessage:Oi("top-nodes.empty-data")})}const Il=[{title:Oi("charts.memory-usage"),metrics:[{target:"resources.memory.used_bytes",title:Oi("charts.memory-usage")}],options:{dataType:"size"}}];function Dl({tenantName:e,memoryStats:t,memoryUsed:a,memoryLimit:r}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(_i,{database:e,charts:Il}),(0,d.jsx)("div",{className:As("title"),children:"Memory details"}),(0,d.jsx)("div",{className:As("memory-info"),children:t?(0,d.jsx)(wl.S,{formatValues:Pe.vX,stats:t}):(0,d.jsx)(ys.O,{value:a,capacity:r,formatValues:Pe.vX,colorizeProgress:!0})}),(0,d.jsx)(Pl,{tenantName:e})]})}var Al=a(18863),_l=a(10174),Rl=a(19093),Ol=a(10360);function Ml({tenant:e}){const t=(0,he.e4)(),a=(0,fe.Pm)(),n=(0,fe.YA)(),[r]=(0,he.Nt)(),[i,s]=function(){const e=(0,Rl.k)(),t=e.map((e=>e.name));return[e,(0,Ds.R)(t,Ol.YX)]}(),{currentData:o,isFetching:l,error:c}=_l.S.useGetStorageGroupsInfoQuery({tenant:e,sort:"-Usage",with:"all",limit:me.Nz,shouldUseGroupsHandler:n,fieldsRequired:s},{pollingInterval:r,skip:!a}),u=l&&void 0===o,p=(null===o||void 0===o?void 0:o.groups)||[],m=Os({entity:Oi("groups"),postfix:Oi("by-usage"),link:(0,ga.YL)({...t,[ga.vh.diagnosticsTab]:ge.iJ.storage})});return(0,d.jsx)(_s,{columnsWidthLSKey:Ol.qK,data:p,columns:i,title:m,loading:u||!a,error:c})}const kl=e=>`\nSELECT\n Path, SUM(DataSize) as Size\nFROM \`${e}/.sys/partition_stats\`\nGROUP BY Path\n ORDER BY Size DESC\n LIMIT ${me.Nz}\n`,Ll=oe.F.injectEndpoints({endpoints:e=>({getTopTables:e.query({queryFn:async({path:e},{signal:t})=>{try{const a=await window.api.viewer.sendQuery({query:kl(e),database:e,action:"execute-scan"},{signal:t,withRetries:!0});return(0,Ft.We)(a)?{error:a}:{data:(0,Ft.fW)(a)}}catch(a){return{error:a||"Unauthorized"}}},providesTags:["All"]})}),overrideExisting:"throw"});function zl({path:e}){var t,a;const n=(0,pr.zy)(),[r]=(0,he.Nt)(),{currentData:i,error:s,isFetching:o}=Ll.useGetTopTablesQuery({path:e},{pollingInterval:r}),l=o&&void 0===i,c=(null===i||void 0===i||null===(t=i.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],u=[{name:"Size",width:100,sortable:!1,render:({row:e})=>(e=>{const t=(0,wa.dd)(null!==c&&void 0!==c&&c.length?Number(c[0].Size):0,0);return(0,wa.z3)({value:e,size:t,precision:1})})(Number(e.Size)),align:Vt.Ay.RIGHT},{name:"Path",width:700,sortable:!1,render:({row:e})=>e.Path?(0,d.jsx)(jt.s,{content:e.Path,children:(0,d.jsx)(Zo,{path:String(e.Path),location:n,children:e.Path})}):null}],p=Os({entity:Oi("tables"),postfix:Oi("by-size")});return(0,d.jsx)(_s,{columnsWidthLSKey:"topTablesTableColumnsWidth",data:c||[],columns:u,title:p,loading:l,error:(0,Ft.Cb)(s)})}const Fl=[{title:Oi("charts.storage-usage"),metrics:[{target:"resources.storage.used_bytes",title:Oi("charts.storage-usage")}],options:{dataType:"size"}}];function Ul({tenantName:e,metrics:t}){const{blobStorageUsed:a,tabletStorageUsed:r,blobStorageLimit:i,tabletStorageLimit:s}=t,o=[{label:(0,d.jsx)(Ha,{text:Oi("storage.tablet-storage-title"),popoverContent:Oi("storage.tablet-storage-description")}),value:(0,d.jsx)(ys.O,{value:r,capacity:s,formatValues:Pe.j9,colorizeProgress:!0,warningThreshold:75,dangerThreshold:85})},{label:(0,d.jsx)(Ha,{text:Oi("storage.db-storage-title"),popoverContent:Oi("storage.db-storage-description")}),value:(0,d.jsx)(ys.O,{value:a,capacity:i,formatValues:Pe.j9,colorizeProgress:!0,warningThreshold:75,dangerThreshold:85})}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(_i,{database:e,charts:Fl}),(0,d.jsx)(Al.z,{className:As("storage-info"),title:"Storage details",info:o}),(0,d.jsx)(zl,{path:e}),(0,d.jsx)(Ml,{tenant:e})]})}function ql({tenantName:e,additionalTenantProps:t,additionalNodesProps:a}){var n,r,i;const{metricsTab:s}=(0,he.N4)((e=>e.tenant)),[o]=(0,he.Nt)(),{currentData:l,isFetching:c}=Se.z6.useGetTenantInfoQuery({path:e},{pollingInterval:o}),u=c&&void 0===l,{Name:p,Type:m,Overall:h}=l||{},v=(g=m)&&$[g];var g;const{currentData:y}=le.useGetOverviewQuery({path:e,database:e},{pollingInterval:o}),{Tables:x,Topics:b}=(null===y||void 0===y||null===(n=y.PathDescription)||void 0===n||null===(r=n.DomainDescription)||void 0===r?void 0:r.DiskSpaceUsage)||{},f=[null===x||void 0===x?void 0:x.TotalSize,null===b||void 0===b?void 0:b.DataSize].reduce(((e,t)=>t?e+Number(t):e),0),S={...l,Metrics:{...null===l||void 0===l?void 0:l.Metrics,Storage:String(f)}},{blobStorage:E,tabletStorage:T,blobStorageLimit:N,tabletStorageLimit:j,poolsStats:C,memoryStats:w,blobStorageStats:P,tabletStorageStats:I}=(0,ui.uI)(S),D={blobStorageUsed:E,blobStorageLimit:N,tabletStorageUsed:T,tabletStorageLimit:j};if(u)return(0,d.jsx)("div",{className:As("loader"),children:(0,d.jsx)(oi.a,{size:"m"})});const A=null===t||void 0===t||null===(i=t.getMonitoringLink)||void 0===i?void 0:i.call(t,p,m);return(0,d.jsxs)("div",{className:As(),children:[(0,d.jsxs)("div",{className:As("info"),children:[(0,d.jsx)("div",{className:As("top-label"),children:v}),(0,d.jsxs)("div",{className:As("top"),children:[(0,d.jsx)("div",{className:As("tenant-name-wrapper"),children:(0,d.jsx)(rr.c,{status:h,name:p||me.oK,withLeftTrim:!0,hasClipboardButton:Boolean(l),clipboardButtonAlwaysVisible:!0})}),A&&(0,d.jsx)(di,{href:A})]}),(0,d.jsx)(Ts,{poolsCpuStats:C,memoryStats:w,blobStorageStats:P,tabletStorageStats:I,tenantName:e})]}),(()=>{switch(s){case ge.pA.cpu:return(0,d.jsx)(Cl,{tenantName:e,additionalNodesProps:a});case ge.pA.storage:return(0,d.jsx)(Ul,{tenantName:e,metrics:D});case ge.pA.memory:return(0,d.jsx)(Dl,{tenantName:e,memoryUsed:S.MemoryUsed,memoryLimit:S.MemoryLimit,memoryStats:S.MemoryStats});case ge.pA.healthcheck:return(0,d.jsx)(ss,{tenantName:e});default:return(0,d.jsx)(ki,{database:e})}})()]})}const Ql=(0,c.cn)("kv-detailed-overview");const Bl=function(e){const{type:t,tenantName:a,path:n,additionalTenantProps:r,additionalNodesProps:i}=e,s=a===n;return(0,d.jsx)("div",{className:Ql(),children:s?(0,d.jsx)("div",{className:Ql("section"),children:(0,d.jsx)(ql,{tenantName:a,additionalTenantProps:r,additionalNodesProps:i})}):(0,d.jsx)(ii,{type:t,path:n,database:a})})},$l={id:ge.iJ.overview,title:"Info"},Gl={id:ge.iJ.schema,title:"Schema"},Hl={id:ge.iJ.topQueries,title:"Queries"},Wl={id:ge.iJ.topShards,title:"Top shards"},Vl={id:ge.iJ.nodes,title:"Nodes"},Jl={id:ge.iJ.tablets,title:"Tablets"},Yl={id:ge.iJ.storage,title:"Storage"},Kl={id:ge.iJ.network,title:"Network"},Zl={id:ge.iJ.describe,title:"Describe"},Xl={id:ge.iJ.hotKeys,title:"Hot keys"},ec={id:ge.iJ.graph,title:"Graph"},tc={id:ge.iJ.consumers,title:"Consumers"},ac={id:ge.iJ.partitions,title:"Partitions"},nc=[$l,Jl,Zl],rc=[$l,Hl,Wl,Vl,Jl,Yl,Kl,Zl,{id:ge.iJ.configs,title:"Configs"},{id:ge.iJ.operations,title:"Operations"}],ic=[$l,Gl,Wl,Vl,ec,Jl,Xl,Zl],sc=[$l,Gl,Wl,Vl,Jl,Zl],oc=[$l,Wl,Vl,Zl],lc=[$l,tc,ac,Vl,Jl,Zl],cc=[$l,tc,ac,Vl,Jl,Zl],dc=[$l,Zl],uc=[$l,Gl,Zl],pc=[$l,Gl,Zl],mc={[f.EPathTypeInvalid]:void 0,[f.EPathTypeSubDomain]:rc,[f.EPathTypeExtSubDomain]:rc,[f.EPathTypeColumnStore]:rc,[f.EPathTypeTable]:ic,[f.EPathTypeColumnTable]:sc,[f.EPathTypeDir]:oc,[f.EPathTypeTableIndex]:oc,[f.EPathTypeCdcStream]:lc,[f.EPathTypePersQueueGroup]:cc,[f.EPathTypeExternalDataSource]:dc,[f.EPathTypeExternalTable]:uc,[f.EPathTypeView]:pc,[f.EPathTypeReplication]:nc};var hc=a(81240),vc=a(80604);const gc=oe.F.injectEndpoints({endpoints:e=>({getHotKeys:e.query({queryFn:async({path:e,database:t},{signal:a})=>{try{var n;const r=await window.api.viewer.getHotKeys({path:e,database:t,enableSampling:!0},{signal:a});if(Array.isArray(r.hotkeys))return{data:r.hotkeys};await Promise.race([new Promise((e=>{setTimeout(e,5e3)})),new Promise(((e,t)=>{a.addEventListener("abort",t)}))]);return{data:null!==(n=(await window.api.viewer.getHotKeys({path:e,database:t,enableSampling:!1},{signal:a})).hotkeys)&&void 0!==n?n:null}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"}),yc=JSON.parse('{"hot-keys-collecting":"Please wait a little while we are collecting hot keys samples...","no-data":"No information about hot keys","help":"Hot keys contains a list of table primary key values that are accessed most often. Sample is collected upon request to the tab during 5s time interval. Samples column indicates how many requests to the particular key value were registered during collection phase."}'),xc=(0,rt.g4)("ydb-hot-keys",{en:yc});var bc;function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},fc.apply(this,arguments)}const Sc=function(e){return n.createElement("svg",fc({viewBox:"0 0 12 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),bc||(bc=n.createElement("path",{d:"M8 7h3V5h1V2H6.66C6.085.79 4.86 0 3.5 0 1.57 0 0 1.57 0 3.5S1.57 7 3.5 7c1.36 0 2.59-.79 3.16-2H8v2zm2-1H9V4H5.97l-.115.335a2.5 2.5 0 110-1.67L5.97 3H11v1h-1v2zM3.5 5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zM3 3.5a.5.5 0 111 0 .5.5 0 01-1 0z"})))},Ec=(0,c.cn)("ydb-hot-keys"),Tc="accessSample";function Nc({path:e,database:t}){var a,r;const{currentData:i,isFetching:s,error:o}=gc.useGetHotKeysQuery({path:e,database:t}),l=s&&void 0===i,[c]=(0,he.Nt)(),{currentData:u,isLoading:p}=le.useGetOverviewQuery({path:e,database:t},{pollingInterval:c}),m=null===u||void 0===u||null===(a=u.PathDescription)||void 0===a||null===(r=a.Table)||void 0===r?void 0:r.KeyColumnNames,h=n.useMemo((()=>((e=[])=>[...e.map(((e,t)=>({name:e,header:(0,d.jsxs)("div",{className:Ec("primary-key-column"),children:[(0,d.jsx)(Tt.I,{data:Sc,width:12,height:7}),e]}),render:({row:e})=>e.keyValues[t],align:Vt.Ay.RIGHT,sortable:!1}))),{name:Tc,header:"Samples",render:({row:e})=>e.accessSample,align:Vt.Ay.RIGHT,sortable:!1}])(m)),[m]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(jc,{}),l||p?(0,d.jsx)("div",{children:xc("hot-keys-collecting")}):o?(0,d.jsx)(Ne.o,{error:o}):i?(0,d.jsx)(Xe.l,{wrapperClassName:Ec("table"),columns:h,data:i,settings:me.N3,initialSortOrder:{columnId:Tc,order:Vt.Ay.DESCENDING}}):(0,d.jsx)("div",{children:xc("no-data")})]})}function jc(){const[e,t]=(0,he.iK)(me.Gj);return e?null:(0,d.jsxs)(vc.Z,{theme:"info",view:"filled",type:"container",className:Ec("help-card"),children:[xc("help"),(0,d.jsx)(wn.$,{className:Ec("help-card__close-button"),view:"flat",onClick:()=>t(!0),children:(0,d.jsx)(Tt.I,{data:hc.A,size:18})})]})}var Cc=a(78524),wc=a(9252);const Pc=oe.F.injectEndpoints({endpoints:e=>({getNetworkInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getNetwork({path:e,database:e},{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"});var Ic=a(88610);const Dc=(0,c.cn)("node-network");function Ac(){}function _c({nodeId:e,connected:t,capacity:a,rack:r,status:i,onClick:s=Ac,onMouseEnter:o=Ac,onMouseLeave:l=Ac,showID:c,isBlurred:u}){const p=n.useRef(null),m=i||function(e=0,t=0){const a=Math.floor(e/t*100);return 100===a?Yi.m.Green:a>=70?Yi.m.Yellow:a>=1?Yi.m.Red:Yi.m.Grey}(t,a);return(0,d.jsx)("div",{ref:p,className:Dc({[m.toLowerCase()]:!0,id:c,blur:u}),onMouseEnter:()=>{o(p.current,{nodeId:e,connected:t,capacity:a,rack:r},"node")},onMouseLeave:()=>{l()},onClick:()=>s(e),children:c?e:null})}const Rc=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>t.Connected?e+1:e),0);var Oc,Mc,kc,Lc,zc,Fc,Uc,qc,Qc,Bc,$c,Gc,Hc,Wc,Vc;function Jc(){return Jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Jc.apply(this,arguments)}const Yc=function(e){return n.createElement("svg",Jc({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 221 204"},e),Oc||(Oc=n.createElement("path",{d:"M68.46 2.529v25.227c0 1.227.876 2.278 2.102 2.511 16.643 2.979 29.14 17.812 28.498 35.448-.642 18.045-15.359 32.703-33.345 33.403-17.636.643-32.41-11.854-35.448-28.44a2.562 2.562 0 00-2.51-2.102H2.528c-1.519 0-2.687 1.285-2.512 2.745 3.446 32.703 31.243 58.106 64.939 57.814 35.155-.292 63.829-29.024 64.121-64.18.292-33.695-25.17-61.492-57.873-64.938-1.46-.175-2.744.993-2.744 2.512z",fill:"#EBF2FA"})),Mc||(Mc=n.createElement("path",{d:"M22.736 18.354l17.811 17.812c.876.876 2.278.992 3.329.233 4.146-3.095 9.052-5.197 14.366-6.19 1.226-.233 2.102-1.226 2.102-2.511V2.528a2.502 2.502 0 00-2.803-2.51C44.46 1.418 32.488 6.674 22.91 14.674c-1.168.935-1.226 2.628-.175 3.68zm-9.403 6.133C6.093 33.83 1.303 45.16.02 57.54c-.176 1.46 1.05 2.745 2.51 2.745H27.7a2.562 2.562 0 002.511-2.103c.818-4.672 2.628-9.051 5.14-12.847a2.642 2.642 0 00-.293-3.212L17.13 24.312c-1.05-1.11-2.861-.993-3.796.175zm67.275 107.392h32.995c1.868 0 3.387 1.518 3.445 3.445v65.231a3.451 3.451 0 01-3.445 3.445H80.608a3.452 3.452 0 01-3.446-3.445v-65.231a3.451 3.451 0 013.446-3.445zm77.844 27.097h-32.878a3.514 3.514 0 00-3.503 3.504v37.959a3.514 3.514 0 003.503 3.504h32.878a3.515 3.515 0 003.504-3.504V162.48a3.515 3.515 0 00-3.504-3.504zm12.205 18.28h32.586a3.639 3.639 0 013.621 3.62v19.388a3.639 3.639 0 01-3.621 3.621h-32.586a3.639 3.639 0 01-3.62-3.621v-19.388a3.638 3.638 0 013.62-3.62z",fill:"#EBF2FA"})),kc||(kc=n.createElement("path",{d:"M134.275 171.532h-113c-5.84 0-10.628-4.789-10.628-10.629v-73.23c0-5.84 4.788-10.629 10.628-10.629h112.941c5.84 0 10.629 4.789 10.629 10.629v73.23c.058 5.899-4.731 10.629-10.57 10.629v0z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),Lc||(Lc=n.createElement("path",{d:"M21.625 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM31.494 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM41.363 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074z",fill:"#2EE5C0"})),zc||(zc=n.createElement("path",{d:"M10.822 98.592h133.673",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),Fc||(Fc=n.createElement("path",{d:"M184.555 149.164L57.89 156.172c-4.263.234-7.767-3.037-7.767-7.3V51.114c0-4.263 3.504-7.533 7.767-7.3l126.665 7.008c3.27.176 5.898 3.33 5.898 7.008v84.327c0 3.679-2.628 6.832-5.898 7.007z",fill:"#027BF3"})),Uc||(Uc=n.createElement("path",{d:"M65.13 54.151c0 1.986-1.576 3.504-3.562 3.387-1.985-.058-3.562-1.752-3.562-3.737 0-1.986 1.635-3.504 3.562-3.387 1.927.058 3.562 1.752 3.562 3.737zm11.506.466a3.38 3.38 0 01-3.504 3.388c-1.927-.059-3.504-1.753-3.504-3.68a3.38 3.38 0 013.504-3.387c1.927.117 3.504 1.752 3.504 3.68zm7.825 3.855c1.869.117 3.387-1.402 3.387-3.329 0-1.927-1.518-3.562-3.387-3.62-1.927-.117-3.445 1.401-3.445 3.328 0 1.927 1.576 3.562 3.445 3.62z",fill:"#fff"})),qc||(qc=n.createElement("path",{d:"M75.467 142.974V85.277c-3.971-.525-8.584-.409-13.899.7v57.64l13.899-.643zM88.84 90.651v51.799l-11.096.467v-57.23c4.322.934 7.942 2.745 11.096 4.964zm13.431 13.899a1.618 1.618 0 01-.146-.176 1.487 1.487 0 00-.146-.175c-.42-.51-.841-1.026-1.265-1.546-2.875-3.522-5.874-7.197-9.538-10.25v49.93l11.095-.467V104.55zm13.432 5.722c-3.913-.058-7.709-.701-11.096-3.445v34.922l11.096-.468v-31.009zm13.431-.409c-2.764-.173-5.529.006-8.246.181-.957.062-1.907.123-2.849.169v30.951l11.095-.467v-30.834zm24.002 29.841l-8.234.35v-22.191c8.176 9.285 8.234 21.841 8.234 21.841zM140.113 113.6a19.774 19.774 0 012.453 1.927v24.644l-11.096.467v-30.483c2.92.467 5.782 1.46 8.643 3.445z",fill:"#00236B"})),Qc||(Qc=n.createElement("path",{d:"M55.745 76.436a2 2 0 103.123 2.499l-3.123-2.499zm5.766-4.006l1.575-1.233a2 2 0 00-3.136-.017l1.561 1.25zm2.63 6.605a2 2 0 103.15-2.465l-3.15 2.465zm107.94 53.502a2 2 0 00-2.499 3.123l2.499-3.123zm4.006 5.766l1.214 1.59a1.999 1.999 0 00.036-3.151l-1.25 1.561zm-6.644 2.557a1.999 1.999 0 102.427 3.179l-2.427-3.179zM58.868 78.935l4.205-5.256-3.123-2.499-4.205 5.256 3.123 2.499zm1.068-5.273l4.205 5.373 3.15-2.465-4.205-5.373-3.15 2.465zm109.646 61.998l5.256 4.205 2.499-3.123-5.256-4.205-2.499 3.123zm5.292 1.054l-5.431 4.146 2.427 3.179 5.431-4.146-2.427-3.179zM147.137 69.146a2 2 0 10-.149 3.998l.149-3.998zm29.634 5.107a2 2 0 10.149-3.997l-.149 3.997zm-29.657 5.404a2 2 0 00-.102 3.999l.102-3.999zm29.681 4.758a2 2 0 00.102-3.999l-.102 4zm-29.72 5.928a2 2 0 10-.023 4l.023-4zm29.759 4.176a2 2 0 10.024-4l-.024 4zm-29.846-21.375l29.783 1.11.149-3.998-29.783-1.11-.149 3.998zm.024 10.512l29.783.76.102-4-29.783-.759-.102 3.999zm.04 10.687l29.782.176.024-4-29.783-.175-.023 4zM143.442 71.202a2.458 2.458 0 01-2.57 2.453c-1.401-.058-2.569-1.285-2.569-2.686 0-1.402 1.168-2.57 2.569-2.453 1.46.058 2.57 1.285 2.57 2.686zm.001 10.396a2.458 2.458 0 01-2.57 2.453c-1.401-.059-2.569-1.285-2.569-2.686 0-1.46 1.168-2.57 2.569-2.453 1.46.058 2.57 1.284 2.57 2.686zm-2.57 12.848a2.458 2.458 0 002.57-2.453c0-1.402-1.11-2.628-2.57-2.686-1.401-.117-2.569 1.05-2.569 2.452s1.168 2.628 2.569 2.687z",fill:"#fff"})),Bc||(Bc=n.createElement("path",{opacity:.2,d:"M190.452 91.875V57.771c0-3.68-2.628-6.833-5.899-7.008l-23.651-1.285a35.18 35.18 0 00-1.752 10.98c0 17.635 12.79 31.826 28.09 31.65 1.051.06 2.16-.058 3.212-.233z",fill:"#00236B"})),$c||($c=n.createElement("path",{d:"M220.645 58.883c0-16.585-11.621-30.775-26.454-31.651-15.3-.876-28.089 12.672-28.089 30.308s12.789 31.827 28.089 31.652c14.833-.117 26.454-13.724 26.454-30.309z",fill:"#FF4645"})),Gc||(Gc=n.createElement("path",{d:"M215.329 40.372c-4.788-7.475-12.38-12.614-21.14-13.14v31.01l21.14-17.87z",fill:"#FC0"})),Hc||(Hc=n.createElement("path",{d:"M215.329 40.372l-21.14 17.87 26.455.642c0-6.89-1.986-13.315-5.315-18.512z",fill:"#00236B"})),Wc||(Wc=n.createElement("path",{d:"M194.248 58.24V27.233c-15.301-.876-28.09 12.672-28.09 30.308l28.09.7z",fill:"#FF4645"})),Vc||(Vc=n.createElement("path",{d:"M161.151 14.734a2 2 0 10-4 0h4zm-4 4.204a2 2 0 004 0h-4zm4 8.876a2 2 0 10-4 0h4zm-4 4.555a2 2 0 004 0h-4zm10.819-6.816a2 2 0 000-4v4zm-4.263-4a2 2 0 100 4v-4zm-9.169 4a2 2 0 100-4v4zm-4.263-4a2 2 0 000 4v-4zm6.876-6.82v4.205h4v-4.204h-4zm0 13.08v4.556h4v-4.555h-4zm10.819-6.26h-4.263v4h4.263v-4zm-13.432 0h-4.263v4h4.263v-4z",fill:"#2EE5C0"})))},Kc=(0,c.cn)("network");function Zc({tenantName:e}){var t,a;const[r]=(0,he.Nt)(),i=(0,he.N4)(Ic.yV),s=(0,he.YQ)(),[o,l]=n.useState(),[c,u]=n.useState(!1),[p,m]=n.useState(!1),{currentData:h,isFetching:v,error:g}=Pc.useGetNetworkInfoQuery(e,{pollingInterval:r});if(v&&void 0===h)return(0,d.jsx)("div",{className:"loader",children:(0,d.jsx)(oi.a,{size:"l"})});const y=h,x=null!==(t=(null===y||void 0===y?void 0:y.Tenants)&&y.Tenants[0].Nodes)&&void 0!==t?t:[];if(!g&&0===x.length)return(0,d.jsx)("div",{className:"error",children:"no nodes data"});const b=ed(x,"NodeType"),f=o?ed(null!==(a=o.Peers)&&void 0!==a?a:[],"NodeType"):{};return(0,d.jsxs)("div",{className:Kc(),children:[g?(0,d.jsx)(Ne.o,{error:g}):null,x.length>0?(0,d.jsx)("div",{className:Kc("inner"),children:(0,d.jsxs)("div",{className:Kc("nodes-row"),children:[(0,d.jsxs)("div",{className:Kc("left"),children:[(0,d.jsx)("div",{className:Kc("controls-wrapper"),children:(0,d.jsxs)("div",{className:Kc("controls"),children:[(0,d.jsx)(wc.k,{value:i,onChange:e=>{s((0,Ic.$u)(e))},className:Kc("problem-filter")}),(0,d.jsx)("div",{className:Kc("checkbox-wrapper"),children:(0,d.jsx)(Te.S,{onUpdate:()=>{u(!c)},checked:c,children:"ID"})}),(0,d.jsx)("div",{className:Kc("checkbox-wrapper"),children:(0,d.jsx)(Te.S,{onUpdate:()=>{m(!p)},checked:p,children:"Racks"})})]})}),(0,d.jsx)(Xc,{nodes:b,showId:c,showRacks:p,clickedNode:o,onClickNode:l})]}),(0,d.jsx)("div",{className:Kc("right"),children:o?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:Kc("label"),children:["Connectivity of node"," ",(0,d.jsx)(xe.N_,{className:Kc("link"),to:(0,al.vI)(o.NodeId),children:o.NodeId})," ","to other nodes"]}),(0,d.jsx)("div",{className:Kc("nodes-row"),children:(0,d.jsx)(Xc,{nodes:f,isRight:!0,showId:c,showRacks:p,clickedNode:o,onClickNode:l})})]}):(0,d.jsxs)("div",{className:Kc("placeholder"),children:[(0,d.jsx)("div",{className:Kc("placeholder-img"),children:(0,d.jsx)(Tt.I,{data:Yc,width:221,height:204})}),(0,d.jsx)("div",{className:Kc("placeholder-text"),children:"Select node to see its connectivity to other nodes"})]})})]})}):null]})}function Xc({nodes:e,isRight:t,showId:a,showRacks:n,clickedNode:r,onClickNode:i}){const s=(0,he.N4)(Ic.yV),o=(0,he.YQ)();let l=0;const c=Object.keys(e).map(((c,u)=>{const p=ed(e[c],"Rack");return(0,d.jsxs)("div",{className:Kc("nodes-container",{right:t}),children:[(0,d.jsxs)("div",{className:Kc("nodes-title"),children:[c," nodes"]}),(0,d.jsx)("div",{className:Kc("nodes"),children:n?Object.keys(p).map(((e,n)=>(0,d.jsxs)("div",{className:Kc("rack-column"),children:[(0,d.jsx)("div",{className:Kc("rack-index"),children:"undefined"===e?"?":e}),p[e].map(((e,n)=>{let c,u;return!t&&"Peers"in e&&e.Peers&&(c=Object.keys(e.Peers).length,u=Rc(e.Peers)),s===Ic.s$.PROBLEMS&&c!==u||s===Ic.s$.ALL||t?(l++,(0,d.jsx)(_c,{nodeId:e.NodeId,showID:a,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:c,connected:u,onMouseEnter:(...e)=>{o((0,we.DK)(...e))},onMouseLeave:()=>{o((0,we.w7)())},onClick:t?void 0:()=>{i(r&&e.NodeId===r.NodeId?void 0:e)},isBlurred:!t&&r&&r.NodeId!==e.NodeId},n)):null}))]},n))):e[c].map(((e,n)=>{let c,u;const p=e&&"Peers"in e?e.Peers:void 0;return!t&&"Peers"in e&&e.Peers&&(c=e.Peers.length,u=Rc(p)),s===Ic.s$.PROBLEMS&&c!==u||s===Ic.s$.ALL||t?(l++,(0,d.jsx)(_c,{nodeId:e.NodeId,showID:a,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:null===p||void 0===p?void 0:p.length,connected:u,onMouseEnter:(...e)=>{o((0,we.DK)(...e))},onMouseLeave:()=>{o((0,we.w7)())},onClick:t?void 0:()=>{i(r&&e.NodeId===r.NodeId?void 0:e)},isBlurred:!t&&r&&r.NodeId!==e.NodeId},n)):null}))})]},u)}));return s===Ic.s$.PROBLEMS&&0===l?(0,d.jsx)(Cc.v,{name:"thumbsUp",width:"200"}):c}function ed(e,t){return e.reduce(((e,a)=>(e[a[t]]?e[a[t]].push(a):e[a[t]]=[a],e)),{})}const td=["NodeId","Host","Connections","NetworkUtilization","SendThroughput","ReceiveThroughput","PingTime","ClockSkew"],ad=["NodeId"],nd=["Host","DC","Rack","Uptime","ConnectStatus","NetworkUtilization","PingTime","ClockSkew"];function rd({database:e,path:t,parentRef:a,additionalNodesProps:n}){const r=(0,fe.Pm)(),i=(0,fe.WF)(),[s]=(0,he.iK)(me.g5),l=i&&s;return(0,d.jsx)(o.r,{loading:!r,children:(()=>{return l?(0,d.jsx)(Ke.G,{path:t,database:e,parentRef:a,withPeerRoleFilter:!0,additionalNodesProps:n,columns:(r={database:e,getNodeRef:null===n||void 0===n?void 0:n.getNodeRef},[(0,ws._E)(),(0,ws.Nh)(r,{statusForIcon:"ConnectStatus"}),(0,ws.uk)(),(0,ws.OX)(),(0,ws.jl)(),(0,ws.fr)(),(0,ws.kv)(),(0,ws.SH)(),(0,ws.H)(),(0,ws.DH)(),(0,ws.ui)(),(0,ws.wN)(),(0,ws.pt)()].map((e=>({...e,sortable:(0,Ps.sp)(e.name)})))),defaultColumnsIds:td,requiredColumnsIds:ad,selectedColumnsKey:"networkNodesTableSelectedColumns",groupByParams:nd}):(0,d.jsx)(Zc,{tenantName:e});var r})()})}var id=a(24600),sd=a(47058),od=a(29289),ld=a(41775);const cd=JSON.parse('{"lagsPopover.writeLags":"Write lags statistics (time format dd hh:mm:ss)","lagsPopover.readLags":"Read lags statistics (time format dd hh:mm:ss)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"Consumer:","controls.consumerSelector.emptyOption":"No consumer","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"No partitions match the current search","noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers"}'),dd=JSON.parse('{"lagsPopover.writeLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0438 (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"\u0427\u0438\u0442\u0430\u0442\u0435\u043b\u044c:","controls.consumerSelector.emptyOption":"\u041d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439","noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439"}'),ud=(0,rt.g4)("ydb-diagnostics-partitions",{ru:dd,en:cd}),pd={PARTITION_ID:"partitionId",STORE_SIZE:"storeSize",WRITE_SPEED:"writeSpeed",READ_SPEED:"readSpeed",WRITE_LAGS:"writeLags",READ_LAGS:"readLags",UNCOMMITED_MESSAGES:"uncommitedMessages",UNREAD_MESSAGES:"unreadMessages",START_OFFSET:"startOffset",END_OFFSET:"endOffset",COMMITED_OFFSET:"commitedOffset",READ_SESSION_ID:"readSessionId",READER_NAME:"readerName",PARTITION_HOST:"partitionHost",CONNECTION_HOST:"connectionHost"},md={[pd.PARTITION_ID]:"Partition ID",[pd.STORE_SIZE]:"Store size",[pd.WRITE_SPEED]:"Write speed",[pd.READ_SPEED]:"Read speed",[pd.WRITE_LAGS]:"Write lags, duration",[pd.READ_LAGS]:"Read lags, duration",[pd.UNCOMMITED_MESSAGES]:"Uncommited messages",[pd.UNREAD_MESSAGES]:"Unread messages",[pd.START_OFFSET]:"Start offset",[pd.END_OFFSET]:"End offset",[pd.COMMITED_OFFSET]:"Commited offset",[pd.READ_SESSION_ID]:"Read session ID",[pd.READER_NAME]:"Reader name",[pd.PARTITION_HOST]:"Partition host",[pd.CONNECTION_HOST]:"Connection host"},hd="partitionWriteLag",vd="partitionWriteIdleTime",gd={[hd]:"write lag",[vd]:"write idle time"},yd="consumerWriteLag",xd="consumerReadLag",bd="consumerReadIdleTime",fd={[yd]:"write lag",[xd]:"read lag",[bd]:"read idle time"},Sd=[pd.PARTITION_ID,pd.STORE_SIZE,pd.WRITE_SPEED,pd.WRITE_LAGS,pd.START_OFFSET,pd.END_OFFSET,pd.PARTITION_HOST],Ed=Object.values(pd),Td=({consumers:e,selectedConsumer:t,onSelectedConsumerChange:a,selectDisabled:r,partitions:i,onSearchChange:s,hiddenColumns:o,onHiddenColumnsChange:l,initialColumnsIds:c})=>{const[u,p]=n.useState(""),[m,h]=n.useState("");n.useEffect((()=>{if(!i)return;const e=new RegExp(Ca()(m),"i"),t=new RegExp(Ca()(u),"i"),a=i.filter((a=>{const{partitionId:n,readerName:r,readSessionId:i,partitionNodeId:s,connectionNodeId:o,partitionHost:l,connectionHost:c}=a,d=e.test(n),u=[r,i,s,o,l,c].filter(Boolean).map(String),p=0===u.length||u.some((e=>t.test(e)));return d&&p}));s(a)}),[m,u,i,s]);const v=n.useMemo((()=>{const t=e&&e.length?e.map((e=>({value:e,content:e}))):[];return[{value:"",content:ud("controls.consumerSelector.emptyOption")},...t]}),[e]),g=n.useMemo((()=>{const e=[];for(const t of c){const a=t===pd.PARTITION_ID,n={title:md[t],selected:Boolean(!o.includes(t)),id:t,required:a,sticky:a?"start":void 0};a?e.unshift(n):e.push(n)}return e}),[c,o]),y=e=>(0,d.jsx)("div",{className:Od("select-option",{empty:""===e.value}),children:e.content});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Ee.l,{className:Od("consumer-select"),label:ud("controls.consumerSelector"),options:v,value:[t||""],onUpdate:e=>{a(e[0]||void 0)},filterable:e&&e.length>5,disabled:r||!e||!e.length,renderOption:y,renderSelectedOption:y}),(0,d.jsx)(ld.v,{onChange:e=>{h(e)},placeholder:ud("controls.partitionSearch"),className:Od("search",{partition:!0}),value:m}),(0,d.jsx)(ld.v,{onChange:e=>{p(e)},placeholder:ud("controls.generalSearch"),className:Od("search",{general:!0}),value:u}),(0,d.jsx)(od.O,{popupWidth:242,items:g,showStatus:!0,onUpdate:e=>{const t=[...o];e.forEach((e=>{e.selected||o.includes(e.id)?e.selected&&o.includes(e.id)&&t.splice(o.indexOf(e.id)):t.push(e.id)})),l(t)},sortable:!1},"TableColumnSetup")]})},Nd=(0,c.cn)("ydb-diagnostics-partitions-columns-header"),jd=({title:e})=>(0,d.jsx)("div",{className:Nd("multiline"),children:e}),Cd=()=>(0,d.jsx)("div",{className:Nd("read-session"),children:md[pd.READ_SESSION_ID]}),wd=()=>(0,d.jsx)(Ha,{className:Nd("lags"),text:md[pd.WRITE_LAGS],popoverContent:(0,d.jsx)(on,{text:ud("lagsPopover.writeLags"),type:"write"})}),Pd=()=>(0,d.jsx)(Ha,{className:Nd("lags"),text:md[pd.READ_LAGS],popoverContent:(0,d.jsx)(on,{text:ud("lagsPopover.readLags"),type:"read"})}),Id=()=>(0,d.jsx)(Ha,{className:Nd("messages"),text:md[pd.UNREAD_MESSAGES],popoverContent:(0,d.jsx)("div",{className:Nd("messages-popover-content"),children:ud("headers.unread")})}),Dd=()=>(0,d.jsx)(Ha,{className:Nd("messages"),text:md[pd.UNCOMMITED_MESSAGES],popoverContent:(0,d.jsx)("div",{className:Nd("messages-popover-content"),children:ud("headers.uncommited")})}),Ad=(0,c.cn)("ydb-diagnostics-partitions-columns"),_d=[{name:pd.PARTITION_ID,header:(0,d.jsx)(jd,{title:md[pd.PARTITION_ID]}),sortAccessor:e=>(0,Xr.kf)(e.partitionId)&&Number(e.partitionId),align:Vt.Ay.LEFT,render:({row:e})=>e.partitionId},{name:pd.STORE_SIZE,header:(0,d.jsx)(jd,{title:md[pd.STORE_SIZE]}),align:Vt.Ay.RIGHT,render:({row:e})=>(0,Pe.z3)(e.storeSize)},{name:pd.WRITE_SPEED,header:md[pd.WRITE_SPEED],align:Vt.Ay.LEFT,resizeMinWidth:140,sortAccessor:e=>e.writeSpeed.perMinute,render:({row:e})=>(0,d.jsx)(Fa,{data:e.writeSpeed})},{name:pd.READ_SPEED,header:md[pd.READ_SPEED],align:Vt.Ay.LEFT,resizeMinWidth:140,sortAccessor:e=>{var t;return null===(t=e.readSpeed)||void 0===t?void 0:t.perMinute},render:({row:e})=>(0,d.jsx)(Fa,{data:e.readSpeed})},{name:pd.WRITE_LAGS,header:(0,d.jsx)(wd,{}),className:Ad("lags-header"),sub:[{name:hd,header:gd[hd],align:Vt.Ay.RIGHT,render:({row:e})=>(0,Pe.lr)(e.partitionWriteLag)},{name:vd,header:gd[vd],align:Vt.Ay.RIGHT,render:({row:e})=>(0,Pe.lr)(e.partitionWriteIdleTime)}]},{name:pd.READ_LAGS,header:(0,d.jsx)(Pd,{}),className:Ad("lags-header"),sub:[{name:yd,header:fd[yd],align:Vt.Ay.RIGHT,render:({row:e})=>(0,Pe.lr)(e.consumerWriteLag)},{name:xd,header:fd[xd],align:Vt.Ay.RIGHT,render:({row:e})=>(0,Pe.lr)(e.consumerReadLag)},{name:bd,header:fd[bd],align:Vt.Ay.RIGHT,render:({row:e})=>(0,Pe.lr)(e.consumerReadIdleTime)}]},{name:pd.UNCOMMITED_MESSAGES,header:(0,d.jsx)(Dd,{}),align:Vt.Ay.RIGHT,render:({row:e})=>e.uncommitedMessages},{name:pd.UNREAD_MESSAGES,header:(0,d.jsx)(Id,{}),align:Vt.Ay.RIGHT,render:({row:e})=>e.unreadMessages},{name:pd.START_OFFSET,header:(0,d.jsx)(jd,{title:md[pd.START_OFFSET]}),sortAccessor:e=>(0,Xr.kf)(e.startOffset)&&Number(e.startOffset),align:Vt.Ay.RIGHT,render:({row:e})=>e.startOffset},{name:pd.END_OFFSET,header:(0,d.jsx)(jd,{title:md[pd.END_OFFSET]}),sortAccessor:e=>(0,Xr.kf)(e.endOffset)&&Number(e.endOffset),align:Vt.Ay.RIGHT,render:({row:e})=>e.endOffset},{name:pd.COMMITED_OFFSET,header:(0,d.jsx)(jd,{title:md[pd.COMMITED_OFFSET]}),sortAccessor:e=>(0,Xr.kf)(e.commitedOffset)&&Number(e.commitedOffset),align:Vt.Ay.RIGHT,render:({row:e})=>e.commitedOffset},{name:pd.READ_SESSION_ID,header:(0,d.jsx)(Cd,{}),align:Vt.Ay.LEFT,width:150,render:({row:e})=>e.readSessionId?(0,d.jsx)(rr.c,{name:e.readSessionId,showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:pd.READER_NAME,header:(0,d.jsx)(jd,{title:md[pd.READER_NAME]}),align:Vt.Ay.LEFT,width:150,render:({row:e})=>e.readerName?(0,d.jsx)(rr.c,{name:e.readerName,showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:pd.PARTITION_HOST,header:(0,d.jsx)(jd,{title:md[pd.PARTITION_HOST]}),align:Vt.Ay.LEFT,width:200,render:({row:e})=>e.partitionNodeId&&e.partitionHost?(0,d.jsx)(rr.c,{name:e.partitionHost,path:(0,al.vI)(e.partitionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:pd.CONNECTION_HOST,header:(0,d.jsx)(jd,{title:md[pd.CONNECTION_HOST]}),align:Vt.Ay.LEFT,width:200,render:({row:e})=>e.connectionNodeId&&e.connectionHost?(0,d.jsx)(rr.c,{name:e.connectionHost,path:(0,al.vI)(e.connectionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}],Rd=_d.filter((e=>Sd.includes(e.name))),Od=(0,c.cn)("ydb-diagnostics-partitions"),Md=({path:e,database:t})=>{const a=(0,he.YQ)(),[r,i]=n.useState([]),s=(0,he.N4)((a=>_a(a,e,t))),[o]=(0,he.Nt)(),{selectedConsumer:l}=(0,he.N4)((e=>e.partitions)),{currentData:c,isFetching:u,error:p}=Pa.useGetTopicQuery({path:e,database:t}),m=u&&void 0===c,{currentData:h,isFetching:v,error:g}=id.m.useGetNodesListQuery(void 0),y=v&&void 0===h,x=(0,he.N4)(id.E),[f,S]=(0,he.iK)(me.bs),[E,T]=(e=>{const[t,a]=n.useState([]),[r,i]=n.useState([]);return n.useEffect((()=>{e?(a(_d),i(Ed)):(a(Rd),i(Sd))}),[e]),[t,r]})(l),N=m?b.hT:{path:e,database:t,consumerName:l},{currentData:j,isFetching:C,error:w}=sd.aD.useGetPartitionsQuery(N,{pollingInterval:o}),P=C&&void 0===j,I=j,D=n.useMemo((()=>((e=[],t)=>null===e||void 0===e?void 0:e.map((e=>{const a=e.partitionNodeId&&t?t.get(e.partitionNodeId):void 0,n=e.connectionNodeId&&t?t.get(e.connectionNodeId):void 0;return{...e,partitionHost:a,connectionHost:n}})))(I,x)),[I,x]);n.useEffect((()=>{const e=!m&&!s,t=l&&s&&!s.includes(l);(e||t)&&a((0,sd.WD)(void 0))}),[a,m,l,s]);const A=n.useMemo((()=>E.filter((e=>!f.includes(e.name)))),[E,f]),_=e=>{S(e)},R=e=>{a((0,sd.WD)(e))},O=m||y||P,M=g||p||w;return(0,d.jsxs)("div",{className:Od(),children:[(0,d.jsx)("div",{className:Od("controls"),children:(0,d.jsx)(Td,{consumers:s,selectedConsumer:l,onSelectedConsumerChange:R,selectDisabled:Boolean(M)||O,partitions:D,onSearchChange:i,hiddenColumns:f,onHiddenColumnsChange:_,initialColumnsIds:T})}),M?(0,d.jsx)(Ne.o,{error:M}):null,(0,d.jsx)("div",{className:Od("table-wrapper"),children:(0,d.jsx)("div",{className:Od("table-content"),children:j?O?(0,d.jsx)(zt.Q,{className:Od("loader")}):(0,d.jsx)(Xe.l,{columnsWidthLSKey:"partitionsColumnsWidth",wrapperClassName:Od("table"),data:r,columns:A,settings:me.N3,emptyDataMessage:ud("table.emptyDataMessage")}):null})})]})};var kd=a(44433),Ld=a(79142);const zd=JSON.parse('{"date-format":"MM/DD/YYYY","date-time-format":"MM/DD/YYYY HH:mm"}'),Fd=JSON.parse('{"date-format":"DD.MM.YYYY","date-time-format":"DD.MM.YYYY HH:mm"}'),Ud=(0,rt.g4)("ydb-date-range",{ru:Fd,en:zd});function qd(e){var t,a,n,r;return"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)&&"relative"===(null===e||void 0===e||null===(a=e.end)||void 0===a?void 0:a.type)?"s":"relative"===(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.type)||"relative"===(null===e||void 0===e||null===(r=e.end)||void 0===r?void 0:r.type)?"m":"l"}const Qd=(0,c.cn)("date-range"),Bd={start:{value:"now-1h",type:"relative"},end:{value:"now",type:"relative"}},$d=({from:e,to:t,className:a,onChange:r})=>{const i=n.useCallback((e=>null===r||void 0===r?void 0:r(function(e){var t,a,n,r,i,s;return{from:"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)?e.start.value.toString():String(null===(a=(0,yt.bQ)(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.value))||void 0===a?void 0:a.valueOf()),to:"relative"===(null===e||void 0===e||null===(r=e.end)||void 0===r?void 0:r.type)?e.end.value.toString():String(null===(i=(0,yt.bQ)(null===e||void 0===e||null===(s=e.end)||void 0===s?void 0:s.value))||void 0===i?void 0:i.valueOf())}}(e))),[r]),s=n.useMemo((()=>{if(e||t)return function(e){var t,a;const n=(0,yt.eP)(null!==(t=e.from)&&void 0!==t?t:""),r=(0,yt.eP)(null!==(a=e.to)&&void 0!==a?a:"");return{start:e.from?{type:n?"relative":"absolute",value:n?e.from:(0,yt.bQ)(Number(e.from))}:null,end:e.to?{type:r?"relative":"absolute",value:r?e.to:(0,yt.bQ)(Number(e.to))}:null}}({from:e,to:t})}),[e,t]),o=Intl.DateTimeFormat().resolvedOptions().timeZone;return(0,d.jsx)("div",{className:Qd(null,a),children:(0,d.jsx)(Ld.k,{withPresets:!0,className:Qd("range-input",{[qd(s)]:!0}),timeZone:o,value:s||Bd,allowNullableValues:!0,size:"m",format:Ud("date-time-format"),onUpdate:i,placeholder:`${Ud("date-time-format")} - ${Ud("date-time-format")}`,withApplyButton:!0})})},Gd=JSON.parse('{"no-data":"No data","filter.text.placeholder":"Search by query text or userSID...","mode_top":"Top","mode_running":"Running"}'),Hd=(0,rt.g4)("ydb-diagnostics-top-queries",{en:Gd}),Wd={...yo,disableSortReset:!0};function Vd(e){const[t,a]=(0,he.GY)({initialSortColumn:e,initialSortOrder:-1,multiple:!0}),r=n.useMemo((()=>(0,he.JN)(t,Oo)),[t]);return{tableSort:t,handleTableSort:a,backendSort:r}}const Jd=({database:e,onRowClick:t,rowClassName:a})=>{var r;const[i]=(0,he.Nt)(),s=(0,he.N4)((e=>e.executeTopQueries)),{tableSort:o,handleTableSort:l,backendSort:c}=Vd(Do),{currentData:u,isFetching:p,error:m}=Ls.Ke.useGetRunningQueriesQuery({database:e,filters:s,sortOrder:c},{pollingInterval:i}),h=p&&void 0===u,v=(null===u||void 0===u||null===(r=u.resultSets)||void 0===r?void 0:r[0].result)||[],g=n.useMemo((()=>[Qo,Ho,zo,Wo].map((e=>({...e,sortable:Mo(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[m?(0,d.jsx)(Ne.o,{error:(0,Ft.Cb)(m)}):null,(0,d.jsx)(et.L.Table,{loading:h,children:(0,d.jsx)(Xe.l,{emptyDataMessage:Hd("no-data"),columnsWidthLSKey:"runningQueriesColumnsWidth",columns:g,data:v,settings:Wd,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:o,onSort:l})})]})},Yd=({database:e,onRowClick:t,rowClassName:a})=>{var r,i;const[s]=(0,he.Nt)(),o=(0,he.N4)((e=>e.executeTopQueries)),{tableSort:l,handleTableSort:c,backendSort:u}=Vd(So),{currentData:p,isFetching:m,error:h}=Ls.Ke.useGetTopQueriesQuery({database:e,filters:o,sortOrder:u},{pollingInterval:s}),v=m&&void 0===p,g=(null===p||void 0===p||null===(r=p.resultSets)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.result)||[],y=n.useMemo((()=>[$o,Lo,zo,Fo,Go,Uo,qo,Qo].map((e=>({...e,sortable:Mo(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[h?(0,d.jsx)(Ne.o,{error:(0,Ft.Cb)(h)}):null,(0,d.jsx)(et.L.Table,{loading:v,children:(0,d.jsx)(Xe.l,{emptyDataMessage:Hd("no-data"),columnsWidthLSKey:fo,columns:y,data:g||[],settings:Wd,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:l,onSort:c})})]})},Kd=(0,c.cn)("kv-top-queries"),Zd={top:"top",running:"running"},Xd=[{value:Zd.top,get content(){return Hd("mode_top")}},{value:Zd.running,get content(){return Hd("mode_running")}}],eu=Rt.z.nativeEnum(Zd).catch(Zd.top),tu=({tenantName:e})=>{const t=(0,he.YQ)(),a=(0,pr.zy)(),r=(0,pr.W6)(),[s=Zd.top,o]=(0,i.useQueryParam)("queryMode",i.StringParam),l=eu.parse(s),c=l===Zd.top,u=(0,he.N4)((e=>e.executeTopQueries)),p=uo(n.useCallback((e=>{t((0,zs.iZ)({input:e}));const n=(0,Ae.mA)(a),i=(0,ga.YL)({...n,[ge.Dt]:ge.Dg.query,[ga.vh.queryTab]:ge.tQ.newQuery});r.push(i)}),[t,r,a])),m=c?Yd:Jd;return(0,d.jsxs)(et.L,{children:[(0,d.jsxs)(et.L.Controls,{children:[(0,d.jsx)(kd.a,{options:Xd,value:l,onUpdate:o}),(0,d.jsx)(nt.v,{value:u.text,onChange:e=>{t((0,Ls.TX)({text:e}))},placeholder:Hd("filter.text.placeholder"),className:Kd("search")}),c?(0,d.jsx)($d,{from:u.from,to:u.to,onChange:e=>{t((0,Ls.TX)(e))}}):null]}),(0,d.jsx)(m,{database:e,onRowClick:p,rowClassName:Kd("row")})]})};var au=a(46496),nu=a(87747);const ru=JSON.parse('{"no-data":"No data","filters.mode.immediate":"Immediate","filters.mode.history":"Historical","description":"Historical data only tracks shards with CPU load over 70%"}'),iu=JSON.parse('{"no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","filters.mode.immediate":"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u044b\u0435","filters.mode.history":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435","description":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e \u0448\u0430\u0440\u0434\u0430\u0445 \u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 CPU \u0432\u044b\u0448\u0435 70%"}'),su=(0,rt.g4)("ydb-diagnostics-top-shards",{ru:iu,en:ru}),ou=({value:e,onChange:t})=>{const a=e.mode===nu.h.Immediate?void 0:e.from,r=e.mode===nu.h.Immediate?void 0:e.to;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(kd.a,{value:e.mode,onUpdate:e=>{if(!((e,t)=>Object.values(e).includes(t))(nu.h,e)){const t=Object.values(nu.h).join(", ");throw new Error(`Unexpected TopShards mode "${e}". Should be one of: ${t}`)}t({mode:e})},children:[(0,d.jsx)(kd.a.Option,{value:nu.h.Immediate,children:su("filters.mode.immediate")}),(0,d.jsx)(kd.a.Option,{value:nu.h.History,children:su("filters.mode.history")})]}),(0,d.jsx)($d,{from:a,to:r,onChange:e=>{t({mode:nu.h.History,...e})}})]})};const lu=(0,c.cn)("top-shards"),cu={...me.N3,dynamicRender:!1,externalSort:!0,disableSortReset:!0,defaultOrder:Vt.Ay.DESCENDING};function du(e){return e?(0,Pe.r6)(new Date(e).getTime()):"\u2013"}function uu(e){return e.to="now",e.from="now-1h",e}const pu=({tenantName:e,path:t,type:a})=>{var r,i;const s=(0,he.YQ)(),o=(0,pr.zy)(),[l]=(0,he.Nt)(),c=(0,he.N4)((e=>e.shardsWorkload)),[u,p]=n.useState((()=>{const e={...c};return e.mode||(e.mode=nu.h.Immediate),e.from||e.to||uu(e),e})),{tableSort:m,handleTableSort:h,backendSort:v}=function(){const[e,t]=(0,he.GY)({initialSortColumn:ol,fixedOrderType:-1,multiple:!0}),a=n.useMemo((()=>(0,he.JN)(e,gl)),[e]);return{tableSort:e,handleTableSort:t,backendSort:a}}(),{currentData:g,isFetching:y,error:x}=au.Xx.useSendShardQueryQuery({database:e,path:t,sortOrder:v,filters:u},{pollingInterval:l}),b=y&&void 0===g,f=(null===g||void 0===g||null===(r=g.resultSets)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.result)||[],S=e=>{const t={...e};if(!c.from&&!c.to&&!e.from&&!e.to)switch(e.mode){case nu.h.Immediate:t.from=t.to=void 0;break;case nu.h.History:uu(t)}s((0,au.rF)(e)),p((e=>({...e,...t})))},E=n.useMemo((()=>{const t=((e,t)=>[yl(e,t),xl,bl,fl,Sl,Tl])(e,o),a=t.map((e=>{return{...e,sortable:(t=e.name,Boolean(gl(t)))};var t}));return u.mode===nu.h.History&&(a.splice(5,0,{name:ul,render:({row:e})=>du(e.PeakTime),sortable:!1}),a.push({name:ml,render:({row:e})=>du(e.IntervalEnd)})),a}),[u.mode,o,e]);return(0,d.jsxs)(et.L,{children:[(0,d.jsx)(et.L.Controls,{children:(0,d.jsx)(ou,{value:u,onChange:S})}),u.mode===nu.h.History&&(0,d.jsx)("div",{className:lu("hint"),children:su("description")}),x?(0,d.jsx)(Ne.o,{error:(0,Ft.Cb)(x)}):null,(0,d.jsx)(et.L.Table,{loading:b,children:x&&!f?null:!f||Y(a)?su("no-data"):(0,d.jsx)(Xe.l,{columnsWidthLSKey:il,columns:E,data:f,settings:cu,onSort:h,sortOrder:m})})]})},mu=(0,c.cn)("kv-tenant-diagnostics");const hu=function(e){const t=n.useRef(null),a=(0,he.YQ)(),{diagnosticsTab:s=ge.iJ.overview}=(0,he.N4)((e=>e.tenant)),[o]=(0,i.useQueryParams)({database:i.StringParam,schema:i.StringParam,backend:i.StringParam,clusterName:i.StringParam}),l=Z(e.type)?e.path:e.tenantName,c=Z(e.type)||e.path===e.tenantName,u=(0,fe._Q)(),p=c?(({hasFeatureFlags:e})=>e?rc:rc.filter((e=>e.id!==ge.iJ.configs)))({hasFeatureFlags:u}):(m=e.type)&&mc[m]||oc;var m;let h=p.find((e=>e.id===s));return h||(h=p[0]),n.useEffect((()=>{h&&h.id!==s&&a((0,Se.WO)(h.id))}),[h,s,a]),(0,d.jsxs)("div",{className:mu(),children:[h?(0,d.jsx)(r.mg,{children:(0,d.jsx)("title",{children:h.title})}):null,(()=>{var e;return(0,d.jsx)("div",{className:mu("header-wrapper"),children:(0,d.jsxs)("div",{className:mu("tabs"),children:[(0,d.jsx)(ye.t,{size:"l",items:p,activeTab:null===(e=h)||void 0===e?void 0:e.id,wrapTo:({id:e},t)=>{const a=(0,ga.YL)({...o,[ga.vh.diagnosticsTab]:e});return(0,d.jsx)(xe.N_,{to:a,className:mu("tab"),children:t},e)},allowNotSelected:!0}),(0,d.jsx)(be.E,{})]})})})(),(0,d.jsx)("div",{className:mu("page-wrapper"),ref:t,children:(()=>{var a;const{type:n,path:r}=e;switch(null===(a=h)||void 0===a?void 0:a.id){case ge.iJ.overview:return(0,d.jsx)(Bl,{type:n,tenantName:l,path:r,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps});case ge.iJ.schema:return(0,d.jsx)(va,{path:r,tenantName:l,type:n,extended:!0});case ge.iJ.topQueries:return(0,d.jsx)(tu,{tenantName:l});case ge.iJ.topShards:return(0,d.jsx)(pu,{tenantName:l,path:r,type:n});case ge.iJ.nodes:return(0,d.jsx)(Ke.G,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case ge.iJ.tablets:return(0,d.jsx)(Lt.C,{path:r,database:l});case ge.iJ.storage:return(0,d.jsx)(kt.p,{database:l,parentRef:t});case ge.iJ.network:return(0,d.jsx)(rd,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case ge.iJ.describe:return(0,d.jsx)(Ln,{path:r,database:l,type:n});case ge.iJ.hotKeys:return(0,d.jsx)(Nc,{path:r,database:l});case ge.iJ.graph:return(0,d.jsx)(Ye,{path:r,database:l});case ge.iJ.consumers:return(0,d.jsx)(Nn,{path:r,database:l,type:n});case ge.iJ.partitions:return(0,d.jsx)(Md,{path:r,database:l});case ge.iJ.configs:return(0,d.jsx)(Na,{database:l});case ge.iJ.operations:return(0,d.jsx)(Mt,{database:l});default:return(0,d.jsx)("div",{children:"No data..."})}})()})]})},vu=JSON.parse('{"controls.query-mode-selector_type":"Query type:","tabs.newQuery":"Editor","tabs.history":"History","tabs.saved":"Saved","history.empty":"History is empty","history.empty-search":"Search result is empty","saved.empty":"There are no saved queries","delete-dialog.header":"Delete query","delete-dialog.question":"Are you sure you want to delete query","delete-dialog.delete":"Delete","delete-dialog.cancel":"Cancel","preview.title":"Preview","preview.not-available":"Preview is not available","preview.close":"Close preview","preview.truncated":"truncated","method-description.script":"For YQL-scripts combining DDL and DML.\\nAPI call: schema.scripting","method-description.scan":"Read-only queries, potentially reading a lot of data.\\nAPI call: table.ExecuteScan","method-description.data":"DML queries for changing and fetching data in serialization mode.\\nAPI call: table.executeDataQuery","method-description.query":"Any query. An experimental API call supposed to replace all existing methods.\\nAPI Call: query.ExecuteScript","method-description.pg":"Queries in postgresql syntax.\\nAPI call: query.ExecuteScript","transaction-mode-description.serializable":"Provides the strictest isolation level for custom transactions","transaction-mode-description.onlinero":"Each read operation in the transaction is reading the data that is most recent at execution time","transaction-mode-description.stalero":"Read operations within a transaction may return results that are slightly out-of-date (lagging by fractions of a second)","transaction-mode-description.snapshot":"All the read operations within a transaction access the database snapshot. All the data reads are consistent","transaction-mode-description.implicit":"No transaction","tracing-level-description.basic":"Spans of main component operations","tracing-level-description.detailed":"Highest detail applicable for diagnosing problems in production","tracing-level-description.diagnostic":"Detailed debugging information for developers","tracing-level-description.off":"No tracing","tracing-level-description.toplevel":"Lowest detail, no more than two spans per request to the component","tracing-level-description.trace":"Very detailed debugging information","statistics-mode-description.none":"Don\'t collect statistics","statistics-mode-description.basic":"Collect statistics","statistics-mode-description.full":"Collect statistics and query plan","statistics-mode-description.profile":"Collect statistics for individual tasks","query-duration.description":"Duration of server-side query execution","action.send-query":"Send query","action.send-selected-query":"Send selected query","action.previous-query":"Previous query in history","action.next-query":"Next query in history","action.save-query":"Save query","action.stop":"Stop","filter.text.placeholder":"Search by query text...","gear.tooltip":"Query execution settings have been changed for ","banner.query-settings.message":"Query results are displayed for ","history.queryText":"Query text","history.endTime":"End time","history.duration":"Duration"}'),gu=(0,rt.g4)("ydb-query-editor",{en:vu}),yu=(0,c.cn)("ydb-queries-history");const xu=function({changeUserInput:e}){const t=(0,he.YQ)(),a=(0,he.N4)(zs.py),n=(0,he.N4)(zs.jY),r=[...a].reverse(),i=uo((a=>{e({input:a.queryText}),t((0,Se.sH)(ge.tQ.newQuery))})),s=[{name:"queryText",header:gu("history.queryText"),render:({row:e})=>(0,d.jsx)("div",{className:yu("query"),children:(0,d.jsx)(mo,{value:e.queryText,maxQueryHeight:6})}),sortable:!1,width:600},{name:"EndTime",header:gu("history.endTime"),render:({row:e})=>e.endTime?(0,Pe.r6)(e.endTime.toString()):"-",align:"right",width:200,sortable:!1},{name:"Duration",header:gu("history.duration"),render:({row:e})=>e.durationUs?(0,Dt.Xo)((0,Dt.Jc)(e.durationUs)):"-",align:"right",width:150,sortable:!1}];return(0,d.jsxs)(et.L,{className:yu(),children:[(0,d.jsx)(et.L.Controls,{children:(0,d.jsx)(nt.v,{value:n,onChange:e=>{t((0,zs.Ni)(e))},placeholder:gu("filter.text.placeholder"),className:yu("search")})}),(0,d.jsx)(et.L.Table,{children:(0,d.jsx)(Xe.l,{columnsWidthLSKey:"queriesHistoryTableColumnsWidth",columns:s,data:r,settings:yo,emptyDataMessage:gu(n?"history.empty-search":"history.empty"),onRowClick:e=>i(e),rowClassName:()=>yu("table-row")})})]})};var bu=a(13847),fu=a(72093);const Su=(0,a(99006)._)((async()=>({Editor:(await Promise.resolve().then(a.bind(a,6376))).default})),"Editor");var Eu=a(29078);function Tu(e,t){const a=new Map(Object.entries(e)),n=new Map(Object.entries(t));return Array.from(a.keys()).filter((e=>a.has(e)&&void 0!==a.get(e)&&a.get(e)!==n.get(e)))}const Nu=JSON.parse('{"action.settings":"Query settings","form.query-mode":"Query type","form.timeout":"Timeout","form.transaction-mode":"Transaction mode","form.statistics-mode":"Statistics collection mode","form.tracing-level":"Tracing level","form.limit-rows":"Limit rows","button-done":"Save","tooltip_plan-to-svg-statistics":"Statistics option is set to \\"Full\\" due to the enabled \\"Execution plan\\" experiment.\\n To disable it, go to the \\"Experiments\\" section in the user settings.","button-cancel":"Cancel","form.timeout.seconds":"sec","form.validation.timeout":"Must be positive","form.validation.limitRows":"Must be between 1 and 100000","description.default":" (default)","docs":"Documentation"}'),ju=JSON.parse('{"action.settings":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.query-mode":"\u0422\u0438\u043f \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442","form.transaction-mode":"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438","form.statistics-mode":"\u0420\u0435\u0436\u0438\u043c \u0441\u0431\u043e\u0440\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438","form.tracing-level":"Tracing level","form.limit-rows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a","tooltip_plan-to-svg-statistics":"\u041e\u043f\u0446\u0438\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"Full\\" \u0438\u0437-\u0437\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \\"Execution plan\\".\\n \u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e, \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \\"Experiments\\" \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.","button-done":"\u0413\u043e\u0442\u043e\u0432\u043e","button-cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","form.timeout.seconds":"\u0441\u0435\u043a","form.validation.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c","form.validation.limitRows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0435\u0436\u0434\u0443 1 \u0438 100000","description.default":" (default)","docs":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f"}'),Cu=(0,rt.g4)("ydb-query-settings-dialog",{en:Nu,ru:ju}),wu=[{value:Ft.Wg.implicit,content:Ft._d[Ft.Wg.implicit],text:gu("transaction-mode-description.implicit"),isDefault:!0},{value:Ft.Wg.serializable,content:Ft._d[Ft.Wg.serializable],text:gu("transaction-mode-description.serializable")},{value:Ft.Wg.onlinero,content:Ft._d[Ft.Wg.onlinero],text:gu("transaction-mode-description.onlinero")},{value:Ft.Wg.stalero,content:Ft._d[Ft.Wg.stalero],text:gu("transaction-mode-description.stalero")},{value:Ft.Wg.snapshot,content:Ft._d[Ft.Wg.snapshot],text:gu("transaction-mode-description.snapshot")}],Pu=[{value:Ft.ei.query,content:Ft.om[Ft.ei.query],text:gu("method-description.query"),isDefault:!0},{value:Ft.ei.script,content:Ft.om[Ft.ei.script],text:gu("method-description.script")},{value:Ft.ei.scan,content:Ft.om[Ft.ei.scan],text:gu("method-description.scan")},{value:Ft.ei.data,content:Ft.om[Ft.ei.data],text:gu("method-description.data")},{value:Ft.ei.pg,content:Ft.om[Ft.ei.pg],text:gu("method-description.pg")}],Iu=[{value:Ft.pE.none,content:Ft.Pn[Ft.pE.none],text:gu("statistics-mode-description.none"),isDefault:!0},{value:Ft.pE.basic,content:Ft.Pn[Ft.pE.basic],text:gu("statistics-mode-description.basic")},{value:Ft.pE.full,content:Ft.Pn[Ft.pE.full],text:gu("statistics-mode-description.full")},{value:Ft.pE.profile,content:Ft.Pn[Ft.pE.profile],text:gu("statistics-mode-description.profile")}],Du=[{value:Ft.PB.off,content:Ft.PX[Ft.PB.off],text:gu("tracing-level-description.off"),isDefault:!0},{value:Ft.PB.toplevel,content:Ft.PX[Ft.PB.toplevel],text:gu("tracing-level-description.toplevel")},{value:Ft.PB.basic,content:Ft.PX[Ft.PB.basic],text:gu("tracing-level-description.basic")},{value:Ft.PB.detailed,content:Ft.PX[Ft.PB.detailed],text:gu("tracing-level-description.detailed")},{value:Ft.PB.diagnostic,content:Ft.PX[Ft.PB.diagnostic],text:gu("tracing-level-description.diagnostic")},{value:Ft.PB.trace,content:Ft.PX[Ft.PB.trace],text:gu("tracing-level-description.trace")}],Au={transactionMode:{title:Cu("form.transaction-mode"),options:wu},queryMode:{title:Cu("form.query-mode"),options:Pu},statisticsMode:{title:Cu("form.statistics-mode"),options:Iu},tracingLevel:{title:Cu("form.tracing-level"),options:Du},timeout:{title:Cu("form.timeout")},limitRows:{title:Cu("form.limit-rows")}};function _u({currentSettings:e,defaultSettings:t}){const a=Tu(e,t),n={};return a.forEach((t=>{const a=Au[t],r=e[t];if("options"in a){var i;const e=null===(i=a.options.find((e=>e.value===r)))||void 0===i?void 0:i.content;e&&(n[a.title]=e)}else r&&(n[a.title]=String(r))})),n}var Ru=a(80967);const Ou=()=>{const[e,t]=(0,Ru.i)(me.fr);let a;try{a=Ft.id.parse(e)}catch(n){a=void 0}return[a,t]};var Mu=a(95312);const ku=()=>{const[e,t]=(0,Ru.i)(me.YQ),[a]=Ou(),[n]=(0,Mu.X)(),r=a?Tu(a,Ft.jU):[],i=n?Tu(n,Ft.jU):[],s=r.length>0,o=a?_u({currentSettings:a,defaultSettings:Ft.jU}):{},l=n?_u({currentSettings:n,defaultSettings:Ft.jU}):{},c=e&&Date.now()-e<1e3*me.Du;return{isBannerShown:s&&!c,isIndicatorShown:s&&c,closeBanner:()=>t(Date.now()),resetBanner:()=>t(void 0),changedCurrentSettings:i,changedCurrentSettingsDescriptions:l,changedLastExucutionSettings:r,changedLastExecutionSettingsDescriptions:o}};var Lu=a(53472);let zu;!function(e){e.triggerCollapse="triggerCollapse",e.triggerExpand="triggerExpand",e.clear="clear"}(zu||(zu={}));const Fu=e=>{localStorage.setItem(e,"true")},Uu=e=>{localStorage.removeItem(e)};function qu(e){return function(t,a){switch(a){case zu.triggerCollapse:return Fu(e),{...t,triggerCollapse:!0,triggerExpand:!1,collapsed:!0};case zu.triggerExpand:return Uu(e),{...t,triggerCollapse:!1,triggerExpand:!0,collapsed:!1};case zu.clear:return Uu(e),{triggerCollapse:!1,triggerExpand:!1,collapsed:!1};default:return t}}}const Qu=(0,c.cn)("kv-pane-visibility-button");function Bu({onCollapse:e,onExpand:t,isCollapsed:a,initialDirection:r="top",className:i}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Et.m,{title:"Collapse",children:(0,d.jsx)(wn.$,{view:"flat-secondary",onClick:e,className:Qu({hidden:a},i),children:(0,d.jsx)(Tt.I,{data:Lu.A,className:Qu({[r]:!0})})})}),(0,d.jsx)(Et.m,{title:"Expand",children:(0,d.jsx)(wn.$,{view:"flat-secondary",onClick:t,className:Qu({hidden:!a},i),children:(0,d.jsx)(Tt.I,{data:Lu.A,className:Qu({[r]:!0},"rotate")})})})]})}var $u=a(31819),Gu=a(72976);const Hu=function({disabled:e}){const t=(0,he.YQ)();return(0,d.jsx)(wn.$,{onClick:()=>{t((0,Gu.Jf)())},view:"flat-secondary",disabled:e,title:"Fullscreen",children:(0,d.jsx)(Tt.I,{data:$u.A})})};var Wu,Vu=a(98392);function Ju(){return Ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Ju.apply(this,arguments)}const Yu=function(e){return n.createElement("svg",Ju({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),Wu||(Wu=n.createElement("path",{fill:"currentColor",d:"M13.383 6.5a.309.309 0 00.305-.305V5.18a.328.328 0 00-.305-.305H11.25V2.742a.328.328 0 00-.305-.304H9.93a.309.309 0 00-.305.304v3.149c0 .355.254.609.61.609h3.148zm-7.008-.61V2.743a.328.328 0 00-.305-.304H5.055a.309.309 0 00-.305.304v2.133H2.617a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305h3.149c.33 0 .609-.254.609-.61zm0 7.618v-3.149c0-.33-.28-.609-.61-.609H2.618a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305H4.75v2.133c0 .178.127.305.305.305H6.07a.309.309 0 00.305-.305zm4.875 0v-2.133h2.133a.309.309 0 00.305-.305v-1.015a.328.328 0 00-.305-.305h-3.149c-.355 0-.609.28-.609.61v3.148c0 .178.127.305.305.305h1.015a.309.309 0 00.305-.305z"})))};var Ku;const Zu=(0,c.cn)("ydb-fullscreen"),Xu=null!==(Ku=document.getElementById("fullscreen-root"))&&void 0!==Ku?Ku:void 0;const ep=function({children:e,className:t}){const a=(0,he.N4)((e=>e.fullscreen)),r=(0,he.YQ)(),i=n.useCallback((()=>{r((0,Gu.sM)())}),[r]);n.useEffect((()=>{const e=e=>{"Escape"===e.key&&i()};return document.addEventListener("keydown",e,!1),()=>{document.removeEventListener("keydown",e,!1)}}),[i]);const[s,o]=n.useState(null);n.useEffect((()=>{const e=document.createElement("div");return null===Xu||void 0===Xu||Xu.appendChild(e),e.style.display="contents",o(e),()=>{o(null),e.remove()}}),[]);const l=n.useRef(null);return n.useLayoutEffect((()=>{var e;s&&(a?null===Xu||void 0===Xu||Xu.appendChild(s):null===(e=l.current)||void 0===e||e.appendChild(s))}),[s,a]),s?(0,d.jsx)("div",{ref:l,style:{display:"contents"},children:(0,d.jsx)(Vu.Z,{container:s,children:(0,d.jsxs)("div",{className:Zu({fullscreen:a},t),children:[(0,d.jsx)(wn.$,{onClick:i,view:"raised",className:Zu("close-button"),children:(0,d.jsx)(Tt.I,{data:Yu})}),(0,d.jsx)("div",{className:Zu("content"),children:e})]})})}):null},tp=n.memo((function(e){const{className:t,value:a}=e,n=(0,he.YQ)();return(0,d.jsx)("span",{className:op("cell",t),onClick:e=>n((0,we.DK)(e.target,a,"cell")),children:a})})),ap=JSON.parse('{"empty":"Table is empty"}'),np=JSON.parse('{"empty":"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0443\u0441\u0442\u0430\u044f"}'),rp=(0,rt.g4)("ydb-query-result-table",{ru:np,en:ap}),ip=({data:e,name:t})=>{let a=t.length;if(e)for(const n of e){const e=n[t]?String(n[t]).length:0;if(a=Math.max(a,e),10*a+20>=600)return 600}return 10*a+20},sp={...me.N3,stripedRows:!0,sortable:!1,displayIndices:!0},op=(0,c.cn)("ydb-query-result-table"),lp=(e,t)=>t,cp=(e,t)=>t+1,dp=e=>{const{columns:t,data:a,...r}=e,i=n.useMemo((()=>(0,Ft.vi)(a)),[a]),s=n.useMemo((()=>t?((e,t)=>{if(!e.length)return[];const a=null===t||void 0===t?void 0:t.slice(0,100);return e.map((({name:e,type:t})=>{const n=(0,Ft.nh)(t);return{name:e,width:ip({data:a,name:e}),align:"number"===n?Vt.Ay.RIGHT:Vt.Ay.LEFT,render:({row:t})=>(0,d.jsx)(tp,{value:String(t[e])})}}))})(t,i):(e=>{if(!e.length)return[];const t=null===e||void 0===e?void 0:e.slice(0,100);return Object.keys(e[0]).map((a=>({name:a,width:ip({data:t,name:a}),align:(0,Xr.kf)(e[0][a])?Vt.Ay.RIGHT:Vt.Ay.LEFT,render:({row:e})=>(0,d.jsx)(tp,{value:String(e[a])})})))})(i)),[i,t]);return Array.isArray(a)?s.length?(0,d.jsx)(Xe.l,{data:i,columns:s,settings:sp,rowKey:lp,visibleRowIndex:cp,...r}):(0,d.jsx)("div",{className:op("message"),children:rp("empty")}):null},up=oe.F.injectEndpoints({endpoints:e=>({sendQuery:e.query({queryFn:async({query:e,database:t,action:a,limitRows:n},{signal:r})=>{try{const i=await window.api.viewer.sendQuery({query:e,database:t,action:a,limit_rows:n},{signal:r,withRetries:!0});return(0,Ft.We)(i)?{error:i}:{data:(0,Ft.fW)(i)}}catch(i){return{error:i||new Error("Unauthorized")}}},providesTags:["All","PreviewData"]})}),overrideExisting:"throw"}),pp=(0,c.cn)("kv-preview"),mp=({database:e,path:t,type:a})=>{var n,r,i;const s=(0,he.YQ)(),o=H(a),l=`select * from \`${t}\` limit 101`,{currentData:c,isFetching:u,error:p}=up.useSendQueryQuery({database:e,query:l,action:re(a)?"execute-query":"execute-scan",limitRows:100},{skip:!o,refetchOnMountOrArgChange:!0}),m=u&&void 0===c,h=null!==(n=null===c||void 0===c||null===(r=c.resultSets)||void 0===r?void 0:r[0])&&void 0!==n?n:{},v=()=>{s((0,Eu.o)(!1))};if(m)return(0,d.jsx)("div",{className:pp("loader-container"),children:(0,d.jsx)(oi.a,{size:"m"})});let g;o?p&&(g=(0,d.jsx)("div",{className:pp("message-container","error"),children:(0,Ft.Cb)(p)})):g=(0,d.jsx)("div",{className:pp("message-container"),children:gu("preview.not-available")});const y=null!==(i=g)&&void 0!==i?i:(0,d.jsx)("div",{className:pp("result"),children:(0,d.jsx)(dp,{data:h.result,columns:h.columns})});return(0,d.jsxs)("div",{className:pp(),children:[(()=>{var e,a;return(0,d.jsxs)("div",{className:pp("header"),children:[(0,d.jsxs)("div",{className:pp("title"),children:[gu("preview.title"),(0,d.jsxs)(ft.E,{color:"secondary",variant:"body-2",children:[h.truncated?`${gu("preview.truncated")} `:"","(",null!==(e=null===(a=h.result)||void 0===a?void 0:a.length)&&void 0!==e?e:0,")"]}),(0,d.jsx)("div",{className:pp("table-name"),children:t})]}),(0,d.jsxs)("div",{className:pp("controls-left"),children:[(0,d.jsx)(Hu,{disabled:Boolean(p)}),(0,d.jsx)(wn.$,{view:"flat-secondary",onClick:v,title:gu("preview.close"),children:(0,d.jsx)(Tt.I,{data:hc.A,size:18})})]})]})})(),(0,d.jsx)(ep,{children:y})]})};var hp=a(27738),vp=a(594),gp=a(1155);const yp=(0,c.cn)("ydb-query-settings-description"),xp=({querySettings:e,prefix:t})=>(0,d.jsxs)("div",{className:yp("message"),children:[t,Object.entries(e).map((([e,t],a,n)=>(0,d.jsxs)("span",{className:yp("description-item"),children:[`${e}: ${t}`,a<n.length-1?", ":null]},a)))]});var bp=a(13066);function fp(e){var t;window.ydbEditor||console.error("Monaco editor not found"),null===(t=window.ydbEditor)||void 0===t||t.trigger(void 0,"insertSnippetToEditor",e)}const Sp=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}/my_row_table\``:"${1:my_row_table}"} (\n category_id Uint64 NOT NULL,\n id Uint64,\n expire_at Datetime,\n updated_on Datetime,\n name Text,\n \`binary-payload\` Bytes,\n attributes JsonDocument,\n -- uncomment to add a secondary index\n -- INDEX idx_row_table_id GLOBAL SYNC ON ( id ) COVER ( name, attributes ), -- Secondary indexes docs https://ydb.tech/en/docs/yql/reference/syntax/create_table#secondary_index\n PRIMARY KEY (category_id, id)\n) \nWITH (\n AUTO_PARTITIONING_BY_SIZE = ENABLED,\n AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,\n AUTO_PARTITIONING_BY_LOAD = ENABLED,\n AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 4,\n AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 1024\n -- uncomment to create a table with predefined partitions\n -- , UNIFORM_PARTITIONS = 4 -- The number of partitions for uniform initial table partitioning.\n -- The primary key's first column must have type Uint64 or Uint32.\n -- A created table is immediately divided into the specified number of partitions\n -- uncomment to launch read only replicas in every AZ\n -- , READ_REPLICAS_SETTINGS = 'PER_AZ:1' -- Enable read replicas for stale read, launch one replica in every availability zone\n -- uncomment to enable ttl\n -- , TTL = Interval("PT1H") ON expire_at -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl\n -- uncomment to create a table with a bloom filter\n -- , KEY_BLOOM_FILTER = ENABLED -- With a Bloom filter, you can more efficiently determine\n -- if some keys are missing in a table when making multiple single queries by the primary key.\n)`,Ep=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}/my_column_table\``:"${1:my_column_table}"} (\n id Int64 NOT NULL,\n author Text,\n title Text,\n body Text,\n PRIMARY KEY (id)\n)\nPARTITION BY HASH(id)\nWITH (STORE = COLUMN)`,Tp=()=>'-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-async-replication\nCREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";\n\nCREATE ASYNC REPLICATION my_replication\nFOR ${1:<original_table>} AS ${2:replica_table} --[, `/remote_database/another_table_name` AS `another_local_table_name` ...]\nWITH (\n CONNECTION_STRING="${3:grpcs://mydb.ydb.tech:2135/?database=/remote_database}",\n TOKEN_SECRET_NAME = "secret_name"\n -- ENDPOINT="mydb.ydb.tech:2135",\n -- DATABASE=`/remote_database`,\n -- USER="user",\n -- PASSWORD_SECRET_NAME="your_password"\n);',Np=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/\n\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\n -- RENAME TO new_table_name\n -- DROP COLUMN some_existing_column\n\${2:ADD COLUMN numeric_column Int32};`,jp=e=>{var t;const a=null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${2:<my_table>}";return`SELECT ${(null===e||void 0===e||null===(t=e.schemaData)||void 0===t?void 0:t.map((e=>"`"+e.name+"`")).join(", "))||"${1:*}"}\nFROM ${a}\n${null!==e&&void 0!==e&&e.relativePath?"":"WHERE ${3:Key1 = 1}\nORDER BY ${4:Key1}\n"}LIMIT \${5:10};`},Cp=e=>{var t;return`UPSERT INTO ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\n( ${(null===e||void 0===e||null===(t=e.schemaData)||void 0===t?void 0:t.map((e=>`\`${e.name}\``)).join(", "))||"${2:id, name}"} )\nVALUES ( ${null!==e&&void 0!==e&&e.schemaData?"${3: }":'${3:1, "foo"}'} );`},wp=e=>`DROP EXTERNAL TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:my_table}"};`,Pp=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`CREATE EXTERNAL TABLE ${t?`\`${t}/my_external_table\``:"${1:<my_external_table>}"} (\n column1 Int,\n column2 Int\n) WITH (\n DATA_SOURCE="${null!==e&&void 0!==e&&e.relativePath?`${e.relativePath}`:"${2:<path_to_data_source>}"}",\n LOCATION="",\n FORMAT="json_as_string",\n \`file_pattern\`=""\n);`},Ip=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-topic\nCREATE TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\`/my_topic`:"${1:my_topic}"} (\n CONSUMER consumer1,\n CONSUMER consumer2 WITH (read_from = Datetime('1970-01-01T00:00:00Z')) -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format). \n -- Default value: now\n) WITH (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to \n -- the quota value (this allows write bursts of up to one second).\n);`,Dp=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic\nALTER TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_topic>}"}\n ADD CONSUMER new_consumer WITH (read_from = Datetime('1970-01-01T00:00:00Z')), -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).\n -- Default value: now\n ALTER CONSUMER consumer1 SET (read_from = Datetime('1970-01-01T00:00:00Z')),\n DROP CONSUMER consumer2,\n SET (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to\n -- the quota value (this allows write bursts of up to one second).\n );`,Ap=e=>`DROP TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_topic>}"};`,_p=e=>`CREATE VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\`/my_view`:"${1:my_view}"} WITH (security_invoker = TRUE) AS SELECT 1;`,Rp=e=>`DROP VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_view>}"};`,Op=e=>`DROP ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_replication>}"};`,Mp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter-async-replication\nALTER ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_replication>}"} SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`,kp=e=>`ALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"} ADD INDEX \${2:index_name} GLOBAL ON (\${3:<column_name>});`,Lp=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").pop(),a=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`ALTER TABLE ${a?`\`${a}\``:"${1:<my_table>}"} DROP INDEX ${t||"${2:<index_name>}"};`},zp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/changefeed\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"} ADD CHANGEFEED \${2:changefeed_name} WITH (\n MODE = \${3:'UPDATES'}, -- KEYS_ONLY, UPDATES, NEW_IMAGE, OLD_IMAGE, or NEW_AND_OLD_IMAGES\n FORMAT = \${4:'JSON'}, -- JSON or DEBEZIUM_JSON\n VIRTUAL_TIMESTAMPS = \${5:TRUE}, -- true or false\n RETENTION_PERIOD = \${6:Interval('PT12H')}, -- Interval value, e.g., Interval('PT24H')\n -- TOPIC_MIN_ACTIVE_PARTITIONS: The number of topic partitions. By default, the number of topic partitions is equal to the number of table partitions\n INITIAL_SCAN = \${8:TRUE} -- true or false\n)\n\n-- MODE options:\n-- KEYS_ONLY: Only the primary key components and change flag are written.\n-- UPDATES: Updated column values that result from updates are written.\n-- NEW_IMAGE: Any column values resulting from updates are written.\n-- OLD_IMAGE: Any column values before updates are written.\n-- NEW_AND_OLD_IMAGES: A combination of NEW_IMAGE and OLD_IMAGE modes.`,Fp=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-group\nCREATE GROUP ${1:group_name}\n-- group_name: The name of the group. It may contain lowercase Latin letters and digits.",Up=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-user\nCREATE USER ${1:user_name} PASSWORD ${2:'password'}\n-- user_name: The name of the user. It may contain lowercase Latin letters and digits.\n-- option: The password of the user:\n -- PASSWORD 'password' creates a user with the password password. The ENCRYPTED option is always enabled.\n -- PASSWORD NULL creates a user with an empty password.",qp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/delete\nDELETE FROM ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\nWHERE \${2:Key1 = 1};`,Qp=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-group\nDROP GROUP ${1:<group_name>}\n\n-- IF EXISTS: Suppress an error if the group doesn't exist.\n-- group_name: The name of the group to be deleted.",Bp=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-user\nDROP USER ${1:<user_name>}\n\n-- IF EXISTS: Suppress an error if the user doesn't exist.\n-- user_name: The name of the user to be deleted.",$p=e=>`GRANT \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${2:<path_to_scheme_object>}"}\nTO \${3:<role_name>}\n\n-- permission_name: The name of the access right to schema objects that needs to be assigned.\n-- path_to_scheme_object: The path to the schema object for which rights are being granted.\n-- role_name: The name of the user or group to whom rights on the schema object are being granted.\n-- WITH GRANT OPTION: Using this construct gives the user or group of users the right to manage access rights - \n-- to assign or revoke certain rights. This construct has functionality similar to granting \n-- the "ydb.access.grant" or GRANT right. A subject with the ydb.access.grant right cannot \n-- grant rights broader than they possess themselves.`,Gp=e=>`REVOKE \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${2:<path_to_scheme_object>}"}\nFROM \${3:<role_name>}\n\n-- permission_name: The name of the access right to schema objects that needs to be revoked.\n-- path_to_scheme_object: The path to the schema object from which rights are being revoked.\n-- role_name: The name of the user or group from whom rights on the schema object are being revoked.\n-- GRANT OPTION FOR: Using this construct revokes the user's or group's right to manage access rights.\n-- All previously granted rights by this user remain in effect.\n-- This construct has functionality similar to revoking the "ydb.access.grant" or GRANT right.`,Hp=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/update\nUPDATE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\nSET \${2:Column1 = 'foo', Column2 = 'bar'}\nWHERE \${3:Key1 = 1};`,Wp=e=>`DROP TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"};`,Vp=JSON.parse('{"button.new-sql":"New query","action.create-row-table":"Create row table","action.create-column-table":"Create column table","action.create-external-table":"Create external table","action.upsert-to-table":"Upsert into table","action.update-table":"Update table","action.alter-table":"Alter table","action.select-rows":"Select from a table","action.delete-rows":"Delete rows","action.drop-table":"Drop table","action.add-index":"Add index","action.drop-index":"Drop index","action.drop-external-table":"Drop external table","menu.tables":"Tables","menu.topics":"Topics","menu.capture":"Change data capture","menu.replication":"Async replication","menu.users":"Users","action.create-topic":"Create Topic","action.drop-topic":"Drop Topic","action.alter-topic":"Alter Topic","action.create-cdc-stream":"Create changefeed","action.create-async-replication":"Create async replication","action.create-user":"Create user","action.create-group":"Create group","action.drop-user":"Drop user","action.drop-group":"Drop group","action.grant-privilege":"Grant privilege","action.revoke-privilege":"Revoke privilege","action.alter-async-replication":"Alter async replication","action.drop-async-replication":"Drop async replication"}'),Jp=(0,rt.g4)("ydb-new-sql",{en:Vp});function Yp(){const e=(e=>{const t=t=>()=>{e(t())};return{createRowTable:t(Sp),createColumnTable:t(Ep),createAsyncReplication:t(Tp),alterAsyncReplication:t(Mp),dropAsyncReplication:t(Op),alterTable:t(Np),selectQuery:t(jp),upsertQuery:t(Cp),createExternalTable:t(Pp),dropExternalTable:t(wp),createTopic:t(Ip),alterTopic:t(Dp),dropTopic:t(Ap),createView:t(_p),dropTable:t(Wp),deleteRows:t(qp),updateTable:t(Hp),createUser:t(Up),createGroup:t(Fp),createCdcStream:t(zp),grantPrivilege:t($p),revokePrivilege:t(Gp),dropUser:t(Bp),dropGroup:t(Qp),addTableIndex:t(kp),dropTableIndex:t(Lp)}})(uo(n.useCallback((e=>{fp(e)}),[]))),t=[{text:Jp("menu.tables"),items:[{text:Jp("action.create-row-table"),action:e.createRowTable},{text:Jp("action.create-column-table"),action:e.createColumnTable},{text:Jp("action.create-external-table"),action:e.createExternalTable},{text:Jp("action.upsert-to-table"),action:e.upsertQuery},{text:Jp("action.update-table"),action:e.updateTable},{text:Jp("action.alter-table"),action:e.alterTable},{text:Jp("action.select-rows"),action:e.selectQuery},{text:Jp("action.delete-rows"),action:e.deleteRows},{text:Jp("action.drop-table"),action:e.dropTable},{text:Jp("action.drop-external-table"),action:e.dropExternalTable},{text:Jp("action.add-index"),action:e.addTableIndex},{text:Jp("action.drop-index"),action:e.dropTableIndex}]},{text:Jp("menu.topics"),items:[{text:Jp("action.create-topic"),action:e.createTopic},{text:Jp("action.alter-topic"),action:e.alterTopic},{text:Jp("action.drop-topic"),action:e.dropTopic}]},{text:Jp("menu.replication"),items:[{text:Jp("action.create-async-replication"),action:e.createAsyncReplication},{text:Jp("action.alter-async-replication"),action:e.alterAsyncReplication},{text:Jp("action.drop-async-replication"),action:e.dropAsyncReplication}]},{text:Jp("menu.capture"),items:[{text:Jp("action.create-cdc-stream"),action:e.createCdcStream}]},{text:Jp("menu.users"),items:[{text:Jp("action.create-user"),action:e.createUser},{text:Jp("action.create-group"),action:e.createGroup},{text:Jp("action.drop-user"),action:e.dropUser},{text:Jp("action.drop-group"),action:e.dropGroup},{text:Jp("action.grant-privilege"),action:e.grantPrivilege},{text:Jp("action.revoke-privilege"),action:e.revokePrivilege}]}];return(0,d.jsx)(Ws.r,{items:t,renderSwitcher:e=>(0,d.jsxs)(wn.$,{...e,children:[Jp("button.new-sql"),(0,d.jsx)(wn.$.Icon,{children:(0,d.jsx)(bp.A,{})})]}),popupProps:{placement:"top"}})}const Kp=(0,c.cn)("ydb-query-editor-controls"),Zp=({onClick:e,runIsLoading:t})=>{const{changedCurrentSettings:a,changedCurrentSettingsDescriptions:n}=ku(),r=a.length>0?{view:"outlined-info",selected:!0}:null;return(0,d.jsx)(gp.m,{disabled:0===a.length,content:(0,d.jsx)(xp,{prefix:gu("gear.tooltip"),querySettings:n}),openDelay:0,placement:["top-start"],children:(0,d.jsxs)(wn.$,{onClick:e,loading:t,className:Kp("gear-button"),...r,children:[(0,d.jsx)(Tt.I,{data:hp.A,size:16}),r?(0,d.jsxs)("div",{className:Kp("changed-settings"),children:["(",a.length,")"]}):null]})})},Xp=({disabled:e,isLoading:t,highlightedAction:a,handleSendExecuteClick:n,onSettingsButtonClick:r,handleGetExplainQueryClick:i})=>{const s="execute"===a?"action":void 0,o="explain"===a?"action":void 0;return(0,d.jsxs)("div",{className:Kp(),children:[(0,d.jsxs)("div",{className:Kp("left"),children:[(0,d.jsxs)(wn.$,{onClick:()=>{n()},disabled:e,loading:t,view:s,className:Kp("run-button"),children:[(0,d.jsx)(Tt.I,{data:vp.A,size:14}),"Run"]}),(0,d.jsx)(wn.$,{onClick:()=>{i()},disabled:e,loading:t,view:o,children:"Explain"}),(0,d.jsx)(Zp,{onClick:r,runIsLoading:t})]}),(0,d.jsxs)("div",{className:Kp("right"),children:[(0,d.jsx)(Yp,{}),(0,d.jsx)(ao,{buttonProps:{disabled:e}})]})]})},em=(0,c.cn)("kv-divider");const tm=function(){return(0,d.jsx)("div",{className:em()})},am=(0,c.cn)("ydb-query-elapsed-time");function nm({className:e}){const[,t]=n.useState({}),[a]=n.useState(Date.now()),r=Date.now()-a;n.useEffect((()=>{const e=setInterval((()=>{t({})}),me.KF);return()=>{clearInterval(e)}}),[]);const i=r>me.Jg*me.KF?(0,yt.p0)(r).format("hh:mm:ss"):(0,yt.p0)(r).format("mm:ss");return(0,d.jsx)(Qt.J,{className:am(null,e),children:i})}var rm=a(64280),im=a(80953);function sm(e){var t;const a=(0,Ft.KH)(e);return"object"===typeof a&&"Query was cancelled"===(null===(t=a.error)||void 0===t?void 0:t.message)}var om=a(81288);const lm=(0,c.cn)("kv-query-execution-status"),cm=()=>{const{isIndicatorShown:e,changedLastExecutionSettingsDescriptions:t}=ku();return e?(0,d.jsx)(gp.m,{openDelay:0,content:(0,d.jsx)(xp,{prefix:gu("banner.query-settings.message"),querySettings:t}),children:(0,d.jsx)(Tt.I,{data:ds.A,className:lm("query-settings-icon")})}):null},dm=({className:e,error:t,loading:a})=>{let n,r;if(a)n=(0,d.jsx)(im.t,{size:"xs"}),r="Running";else if((0,om.F0)(t)&&"ECONNABORTED"===t.code)n=(0,d.jsx)(Tt.I,{data:rm.A}),r="Connection aborted";else if(sm(t))n=(0,d.jsx)(Tt.I,{data:bt.A}),r="Stopped";else{const e=Boolean(t);n=(0,d.jsx)(Tt.I,{data:e?us.A:cs.A,className:lm("result-status-icon",{error:e})}),r=e?"Failed":"Completed"}return(0,d.jsxs)("div",{className:lm(null,e),children:[n,r,sm(t)||a?null:(0,d.jsx)(cm,{})]})};var um=a(66528);const pm=oe.F.injectEndpoints({endpoints:e=>({cancelQuery:e.mutation({queryFn:async({queryId:e,database:t},{signal:a})=>{try{const n=await window.api.viewer.sendQuery({database:t,action:"cancel-query",query_id:e},{signal:a});if((0,Ft.We)(n))return{error:n};return{data:(0,Ft.fW)(n)}}catch(n){return{error:n}}}})}),overrideExisting:"throw"}),mm=(0,c.cn)("cancel-query-button");function hm({queryId:e,tenantName:t}){const[a,r]=pm.useCancelQueryMutation(),i=n.useCallback((()=>{a({queryId:e,database:t})}),[e,a,t]);return(0,d.jsxs)(wn.$,{loading:r.isLoading,onClick:i,className:mm("stop-button",{error:Boolean(r.error)}),children:[(0,d.jsx)(Tt.I,{data:um.A,size:16}),gu("action.stop")]})}const vm=(0,c.cn)("ydb-query-duration"),gm=({duration:e})=>{if(!e)return null;const t=(0,Dt.Bi)((0,Dt.Jc)(e),1);return(0,d.jsx)("span",{className:vm(),children:(0,d.jsx)(Ha,{className:vm("item-with-popover"),contentClassName:vm("popover-content"),text:t,popoverClassName:vm("popover"),popoverContent:gu("query-duration.description"),buttonProps:{className:vm("popover-button")}})})};var ym=a(55299);const xm=(0,c.cn)("ydb-query-settings-banner");function bm(){const{isBannerShown:e,changedLastExecutionSettingsDescriptions:t,closeBanner:a}=ku();return e?(0,d.jsx)(ym.F,{className:xm(),theme:"info",align:"baseline",message:(0,d.jsx)(xp,{prefix:gu("banner.query-settings.message"),querySettings:t}),onClose:a}):null}function fm(e){return e.replaceAll("\\","\\\\").replaceAll("\n","\\n").replaceAll("\r","\\r").replaceAll("\t","\\t")}var Sm=a(6376);const Em=(0,c.cn)("ydb-query-ast"),Tm={automaticLayout:!0,selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},wrappingIndent:"indent"};function Nm({ast:e,theme:t}){return(0,d.jsx)("div",{className:Em(),children:(0,d.jsx)(Sm.default,{language:"s-expression",value:e,options:Tm,theme:`vs-${t}`})})}var jm=a(73253);function Cm(e){const t=n.useRef(null),a=n.useId(),{data:r,opts:i,shapes:s}=e;return n.useEffect((()=>{const e=t.current;if(!e)return;e.innerHTML="",e.style.setProperty("width","100vw"),e.style.setProperty("height","100vh");const a=(0,jm.og)(e.id,r,i,s);return a.render(),e.style.setProperty("width","100%"),e.style.setProperty("height","100%"),()=>{a.destroy()}}),[r,i,s]),(0,d.jsx)("div",{id:a,ref:t,style:{overflow:"auto"}})}const wm={renderNodeTitle:e=>{const t=e.name.split("|");return t.length>1?t[1]:e.name},textOverflow:"normal",initialZoomFitsCanvas:!0},Pm={node:jm.SO};function Im(e){return(0,d.jsx)(Cm,{...e,opts:wm,shapes:Pm})}const Dm=JSON.parse('{"description.graph-is-not-supported":"Graph can not be rendered","description.empty-result":"There is no {{activeSection}} for the request","action.result":"Result","action.stats":"Stats","action.schema":"Schema","action.explain-plan":"Explain Plan","action.json":"JSON","action.ast":"AST","action.copy":"Copy {{activeSection}}","trace":"Trace","title.truncated":"Truncated","title.result":"Result","text_plan-svg":"Execution plan","text_open-plan-svg":"Open execution plan in new window","text_error-plan-svg":"Error: {{error}}"}'),Am=(0,rt.g4)("ydb-execute-result",{en:Dm}),_m=(0,c.cn)("ydb-query-result-stub-message");function Rm({message:e}){return(0,d.jsx)("div",{className:_m(null),children:e})}const Om=(0,c.cn)("ydb-query-explain-graph");function Mm({explain:e={},theme:t}){const{links:a,nodes:n}=e;return a&&n&&n.length?(0,d.jsx)("div",{className:Om("canvas-container"),children:(0,d.jsx)(Im,{data:{links:a,nodes:n}},t)}):(0,d.jsx)(Rm,{message:Am("description.graph-is-not-supported")})}var km=a(112);const Lm=oe.F.injectEndpoints({endpoints:e=>({planToSvgQuery:e.query({queryFn:async({plan:e,database:t},{signal:a})=>{try{return{data:await window.api.viewer.planToSvg({database:t,plan:e},{signal:a})}}catch(n){return{error:n}}}})}),overrideExisting:"throw"});function zm(e,t){return e?"flat-danger":t?"flat-secondary":"flat-info"}function Fm({plan:e,database:t}){const[a,r]=n.useState(null),[i,s]=n.useState(null),[o,{isLoading:l}]=Lm.useLazyPlanToSvgQueryQuery(),c=n.useCallback((()=>{o({plan:e,database:t}).unwrap().then((e=>{const t=new Blob([e],{type:"image/svg+xml"}),a=URL.createObjectURL(t);s(a),r(null),window.open(a,"_blank")})).catch((e=>{r(JSON.stringify(e))}))}),[t,o,e]);return n.useEffect((()=>()=>{i&&URL.revokeObjectURL(i)}),[i]),(0,d.jsx)(gp.m,{content:a?Am("text_error-plan-svg",{error:a}):Am("text_open-plan-svg"),children:(0,d.jsxs)(wn.$,{view:zm(a,l),loading:l,onClick:c,disabled:l,children:[Am("text_plan-svg"),(0,d.jsx)(wn.$.Icon,{children:(0,d.jsx)(km.A,{})})]})})}const Um=(0,c.cn)("ydb-query-json-viewer");function qm({data:e}){return(0,d.jsx)("div",{className:Um("inspector"),children:(0,d.jsx)(On,{data:e,isExpanded:()=>!0})})}var Qm=a(89954);const Bm=(0,c.cn)("ydb-query-result-error ");function $m({error:e}){const t=(0,Ft.KH)(e);return!t||sm(e)?null:"object"===typeof t?(0,d.jsx)(Qm.O,{data:t}):(0,d.jsx)("div",{className:Bm("message"),children:t})}const Gm=(0,c.cn)("ydb-query-result-sets-viewer");function Hm({resultSets:e,selectedResultSet:t,setSelectedResultSet:a}){const n=(null===e||void 0===e?void 0:e.length)||0,r=null===e||void 0===e?void 0:e[t];return(0,d.jsxs)("div",{className:Gm("result-wrapper"),children:[(()=>{if(n>1){const r=(0,Zr._e)(n).map((t=>{var a;return{id:String(t),title:`Result #${t+1}${null!==e&&void 0!==e&&null!==(a=e[t])&&void 0!==a&&a.truncated?" (T)":""}`}}));return(0,d.jsx)("div",{children:(0,d.jsx)(ye.t,{className:Gm("tabs"),size:"l",items:r,activeTab:String(t),onSelectTab:e=>a(Number(e))})})}return null})(),r?(0,d.jsxs)("div",{className:Gm("result"),children:[(0,d.jsxs)("div",{className:Gm("head"),children:[(0,d.jsx)(ft.E,{variant:"subheader-3",children:null!==r&&void 0!==r&&r.truncated?Am("title.truncated"):Am("title.result")}),null!==r&&void 0!==r&&r.result?(0,d.jsx)(ft.E,{color:"secondary",variant:"body-2",className:Gm("row-count"),children:`(${null===r||void 0===r?void 0:r.result.length})`}):null]}),(0,d.jsx)(dp,{data:r.result,columns:r.columns})]}):null]})}var Wm=a(36590),Vm=a(79737),Jm=a(79685);const Ym=(0,c.cn)("ydb-query-simplified-plan");function Km({value:e,formatter:t}){if(!(0,Xr.kf)(e))return;const a=t(Number(e));return(0,d.jsx)("div",{className:Ym("metrics-cell"),children:a})}var Zm=a(33705);const Xm={Table:"var(--g-color-text-info)",Predicate:"var(--g-color-text-positive)",Condition:"var(--g-color-text-utility)"};function eh(e){return e in Xm?Xm[e]:"var(--g-color-text-secondary)"}function th(e={}){const t=[],a=Object.entries(e);if(1===a.length){const e=a[0][1],n=eh(a[0][0]);t.push((0,d.jsx)("span",{style:{color:n},children:(0,Pe.vN)(e)},"param"))}else{const a=function(e){const t=[],{Table:a,Predicate:n,Condition:r,...i}=e;return a&&t.push(["Table",a]),n&&t.push(["Predicate",n]),r&&t.push(["Condition",r]),t.concat(Object.entries(i))}(e);for(let e=0;e<a.length;e++){const[n,r]=a[e],i=eh(n);e>0&&t.push(", "),t.push((0,d.jsxs)("span",{style:{color:i},children:[n,": ",(0,Pe.vN)(r)]},e))}}return t}function ah({params:e}){return e?(0,d.jsxs)("span",{className:Ym("operation-params"),children:["(",th(e),")"]}):null}function nh({modifiers:e,left:t}){return(0,d.jsx)("div",{className:Ym("divider",e),style:{left:t}})}function rh({row:e,depth:t=0,params:a}){const{name:r,operationParams:i,lines:s=""}=a,o=e.getLeafRows().length>0&&e.getIsExpanded(),l=n.useMemo((()=>function(e,t){const a=e.split(".").map(Number),n=[];for(let r=0;r<a.length;r++)r===a.length-1&&0!==r&&(a[r]?n.push((0,d.jsx)(nh,{modifiers:{horizontal:!0},left:10+25*(r-1)},"last")):n.push((0,d.jsx)(nh,{modifiers:{last:!0},left:9+25*(r-1)},"last"))),r===a.length-1&&t&&n.push((0,d.jsx)(nh,{modifiers:{first:!0},left:9+25*r},"first")),a[r]&&n.push((0,d.jsx)(nh,{left:9+25*(r-1)},r));return n}(s,o)),[s,o]);return(0,d.jsxs)("div",{style:{paddingLeft:25*t},className:Ym("operation-name"),children:[l,(0,d.jsxs)(St.s,{gap:1,alignItems:"center",className:Ym("operation-content"),children:[e.getCanExpand()&&(0,d.jsx)(wn.$,{view:"flat",size:"xs",onClick:e.getToggleExpandedHandler(),children:(0,d.jsx)(wn.$.Icon,{children:(0,d.jsx)(Zm.I,{direction:e.getIsExpanded()?"bottom":"right",size:14})})}),(0,d.jsx)("div",{className:Ym("operation-name-content"),children:(0,d.jsxs)("div",{children:[r,"\xa0",(0,d.jsx)(ah,{params:i})]})})]})]})}function ih(e){return(0,d.jsx)(Km,{value:e.getValue(),formatter:e=>e<1e8?(0,Jm.p)(e).format():(0,Xr.z0)(e,1)})}const sh=[{accessorKey:"name",accessorFn:function(e){return{name:e.name,operationParams:e.operationParams,lines:e.lines}},header:()=>(0,d.jsx)(Vm.A,{children:"Operation"}),size:600,cell:e=>(0,d.jsx)(rh,{row:e.row,depth:e.row.depth,params:e.getValue()})},{accessorKey:"aCpu",header:()=>(0,d.jsx)(Vm.A,{children:"A-Cpu"}),size:90,minSize:90,cell:function(e){return(0,d.jsx)(Km,{value:e.getValue(),formatter:e=>(0,Dt.Xo)(Math.round(e))})},meta:{align:"right",verticalAlign:"top"}},{accessorKey:"aRows",header:()=>(0,d.jsx)(Vm.A,{children:"A-Rows"}),size:90,minSize:90,cell:ih,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eCost",header:()=>(0,d.jsx)(Vm.A,{children:"E-Cost"}),size:90,minSize:90,cell:ih,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eRows",header:()=>(0,d.jsx)(Vm.A,{children:"E-Rows"}),size:90,minSize:90,cell:ih,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eSize",header:()=>(0,d.jsx)(Vm.A,{children:"E-Size"}),size:90,minSize:90,cell:ih,meta:{align:"right",verticalAlign:"top"}}];function oh({plan:e}){const t=n.useMemo((()=>function(e,t=""){if(!e)return[];const a=[{items:e,prefix:t,parentIndex:-1,parentArray:[]}],n=[];for(;a.length>0;){const{items:e,prefix:t,parentIndex:r,parentArray:i}=a.pop(),s=[];for(let n=0;n<e.length;n++){const r={...e[n]},i=n<e.length-1?1:0;let o=`${t}.${i}`;t||(o=String(i)),r.lines=o,s.push(r),r.children&&a.push({items:r.children,prefix:o,parentIndex:n,parentArray:s})}-1===r?n.push(...s):i[r].children=s}return n}(e)),[e]),[a,r]=n.useState(!0),i=(0,Wm.K)({columns:sh,data:t,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:r,state:{expanded:a},enableColumnResizing:!0,columnResizeMode:"onChange"});return(0,d.jsx)(Vm.X,{wrapperClassName:Ym(),table:i,stickyHeader:!0,width:"max"})}var lh=a(67298);const ch=oe.F.injectEndpoints({endpoints:e=>({checkTrace:e.query({queryFn:async({url:e},{signal:t,dispatch:a})=>{try{const n=await window.api.trace.checkTrace({url:e},{signal:t});return a((0,zs.P7)()),{data:n}}catch(n){return{error:n}}}})}),overrideExisting:"throw"});function dh(e,t){return e.replace(/\${(\w+)}/g,((e,a)=>t[a]||e))}function uh({traceId:e,isTraceReady:t}){const{traceCheck:a,traceView:r}=(0,lh.Zd)(),i=null!==a&&void 0!==a&&a.url?dh(a.url,{traceId:e}):"",s=null!==r&&void 0!==r&&r.url?dh(r.url,{traceId:e}):"",[o,{isLoading:l,isUninitialized:c}]=ch.useLazyCheckTraceQuery();return n.useEffect((()=>{let e;return i&&!t&&(e=o({url:i})),()=>{var t;return null===(t=e)||void 0===t?void 0:t.abort()}}),[o,i,t]),!s||c&&!t?null:(0,d.jsxs)(wn.$,{view:l?"flat-secondary":"flat-info",loading:l,href:s,target:"_blank",children:[Am("trace"),(0,d.jsx)(wn.$.Icon,{children:(0,d.jsx)(km.A,{})})]})}const ph=(0,c.cn)("ydb-query-result"),mh="result",hh="schema",vh="simplified",gh="json",yh="stats",xh="ast",bh={get result(){return Am("action.result")},get schema(){return Am("action.schema")},get simplified(){return Am("action.explain-plan")},get json(){return Am("action.json")},get stats(){return Am("action.stats")},get ast(){return Am("action.ast")}},fh=["result","schema","simplified","stats"],Sh=["schema","json","simplified","ast"];function Eh({result:e,resultType:t="execute",isResultsCollapsed:a,theme:r,tenantName:i,onCollapseResults:s,onExpandResults:l}){const c=(0,he.YQ)(),u="execute"===t,p="explain"===t,[m,h]=n.useState(0),[v,g]=n.useState((()=>u?mh:hh)),[y]=(0,he.iK)(me.lr),{error:x,isLoading:b,queryId:f,data:S={}}=e,{preparedPlan:E,simplifiedPlan:T,stats:N,resultSets:j,ast:C}=S;n.useEffect((()=>{"execute"!==t||fh.includes(v)||g("result"),"explain"!==t||Sh.includes(v)||g("schema")}),[v,t]);const w=n.useMemo((()=>{let e=[];return u?e=fh:p&&(e=Sh),e.map((e=>({value:e,content:bh[e]})))}),[u,p]);n.useEffect((()=>()=>{c((0,Gu.sM)())}),[c]);const P=e=>{g(e)},I=()=>{switch(v){case mh:{var e;const t=null===S||void 0===S||null===(e=S.resultSets)||void 0===e?void 0:e[m],a=function(e){if(null===e||void 0===e||!e.length)return"";const t=Object.keys(e[0]),a=[t.map(fm).join("\t")];for(const n of e){const e=[];for(const a of t){const t=n[a];e.push(fm("object"===typeof t?JSON.stringify(t):`${t}`))}a.push(e.join("\t"))}return a.join("\n")}(null===t||void 0===t?void 0:t.result);return a}case gh:return null===E||void 0===E?void 0:E.pristine;case vh:return null===T||void 0===T?void 0:T.pristine;case yh:return N;case xh:return C;default:return}},D=()=>{const e=I(),t=(0,Pe.vN)(e);return t?(0,d.jsx)(jn.b,{text:t,view:"flat-secondary",title:Am("action.copy",{activeSection:v})}):null},A=()=>(0,d.jsx)(Rm,{message:Am("description.empty-result",{activeSection:bh[v]})});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:ph("controls"),children:[(0,d.jsxs)("div",{className:ph("controls-left"),children:[(0,d.jsx)(dm,{error:x,loading:b}),!x&&!b&&(0,d.jsxs)(n.Fragment,{children:[(0,Zr.f8)(null===N||void 0===N?void 0:N.DurationUs)?(0,d.jsx)(gm,{duration:Number(N.DurationUs)}):null,w.length&&v?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(tm,{}),(0,d.jsx)(kd.a,{options:w,value:v,onUpdate:P})]}):null]}),b?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(nm,{className:ph("elapsed-time")}),(0,d.jsx)(hm,{queryId:f,tenantName:i})]}):null,null!==S&&void 0!==S&&S.traceId&&u?(0,d.jsx)(uh,{traceId:S.traceId,isTraceReady:e.isTraceReady}):null,null!==S&&void 0!==S&&S.plan&&y&&u?(0,d.jsx)(Fm,{plan:null===S||void 0===S?void 0:S.plan,database:i}):null]}),(0,d.jsxs)("div",{className:ph("controls-right"),children:[D(),(0,d.jsx)(Hu,{}),(0,d.jsx)(Bu,{onCollapse:s,onExpand:l,isCollapsed:a,initialDirection:"bottom"})]})]}),b||sm(x)?null:(0,d.jsx)(bm,{}),(0,d.jsx)(o.r,{loading:b,children:(0,d.jsx)(ep,{className:ph("result"),children:(()=>{return x?(0,d.jsx)($m,{error:x}):v===mh?(0,d.jsx)(Hm,{resultSets:j,selectedResultSet:m,setSelectedResultSet:h}):v===hh?null!==E&&void 0!==E&&null!==(e=E.nodes)&&void 0!==e&&e.length?(0,d.jsx)(Mm,{theme:r,explain:E}):A():v===gh?null!==E&&void 0!==E&&E.pristine?(0,d.jsx)(qm,{data:null===E||void 0===E?void 0:E.pristine}):A():v===vh?null!==T&&void 0!==T&&null!==(t=T.plan)&&void 0!==t&&t.length?(0,d.jsx)(oh,{plan:T.plan}):A():v===yh?N?(0,d.jsx)(qm,{data:N}):A():v===xh?C?(0,d.jsx)(Nm,{ast:C,theme:r}):A():null;var e,t})()})})]})}var Th=a(16122),Nh=a(23971);const jh=()=>-1,Ch=(0,c.cn)("ydb-query-settings-select");function wh(e){return(0,d.jsx)("div",{className:Ch("selector"),children:(0,d.jsx)(Ee.l,{id:e.id,disabled:e.disabled,options:e.settingOptions,value:[e.setting],onUpdate:t=>{e.onUpdateSetting(t[0])},getOptionHeight:jh,popupClassName:Ch("popup"),renderOption:e=>(0,d.jsxs)("div",{className:Ch("item",{type:e.value}),children:[(0,d.jsxs)("div",{className:Ch("item-title"),children:[e.content,e.isDefault?Cu("description.default"):""]}),e.text&&(0,d.jsx)("span",{className:Ch("item-description"),children:e.text})]}),width:"max"})})}const Ph=(0,c.cn)("ydb-query-settings-dialog");function Ih(){const e=(0,he.YQ)(),t=(0,he.N4)(Js.xM),[a,r]=(0,he.XS)(),i=n.useCallback((()=>{e((0,Js.NJ)("idle"))}),[e]),s=n.useCallback((e=>{r(e),i()}),[i,r]);return(0,d.jsxs)(Us.l,{open:"settings"===t,size:"s",onClose:i,className:Ph(),hasCloseButton:!1,children:[(0,d.jsx)(Us.l.Header,{caption:Cu("action.settings")}),(0,d.jsx)(Dh,{initialValues:a,onSubmit:s,onClose:i})]})}function Dh({initialValues:e,onSubmit:t,onClose:a}){const{control:r,handleSubmit:i,formState:{errors:s}}=(0,Nh.mN)({defaultValues:e,resolver:(0,Th.u)(Ft.id)}),[o]=(0,he.iK)(me.lr),l=(0,fe.Oi)();return(0,d.jsxs)("form",{onSubmit:i(t),children:[(0,d.jsxs)(Us.l.Body,{className:Ph("dialog-body"),children:[(0,d.jsxs)(St.s,{direction:"row",alignItems:"flex-start",className:Ph("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryMode",className:Ph("field-title"),children:Au.queryMode.title}),(0,d.jsx)("div",{className:Ph("control-wrapper",{queryMode:!0}),children:(0,d.jsx)(Nh.xI,{name:"queryMode",control:r,render:({field:e})=>(0,d.jsx)(wh,{id:"queryMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:Au.queryMode.options})})})]}),(0,d.jsxs)(St.s,{direction:"row",alignItems:"flex-start",className:Ph("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"timeout",className:Ph("field-title"),children:Au.timeout.title}),(0,d.jsx)("div",{className:Ph("control-wrapper"),children:(0,d.jsx)(Nh.xI,{name:"timeout",control:r,render:({field:e})=>{var t,a;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Vs.k,{id:"timeout",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:Ph("timeout"),placeholder:"60",validationState:s.timeout?"invalid":void 0,errorMessage:null===(a=s.timeout)||void 0===a?void 0:a.message,errorPlacement:"inside"}),(0,d.jsx)("span",{className:Ph("timeout-suffix"),children:Cu("form.timeout.seconds")})]})}})})]}),l&&(0,d.jsxs)(St.s,{direction:"row",alignItems:"flex-start",className:Ph("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"tracingLevel",className:Ph("field-title"),children:Au.tracingLevel.title}),(0,d.jsx)("div",{className:Ph("control-wrapper"),children:(0,d.jsx)(Nh.xI,{name:"tracingLevel",control:r,render:({field:e})=>(0,d.jsx)(wh,{id:"tracingLevel",setting:e.value,onUpdateSetting:e.onChange,settingOptions:Au.tracingLevel.options})})})]}),(0,d.jsxs)(St.s,{direction:"row",alignItems:"flex-start",className:Ph("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"transactionMode",className:Ph("field-title"),children:Au.transactionMode.title}),(0,d.jsx)("div",{className:Ph("control-wrapper",{transactionMode:!0}),children:(0,d.jsx)(Nh.xI,{name:"transactionMode",control:r,render:({field:e})=>(0,d.jsx)(wh,{id:"transactionMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:Au.transactionMode.options})})})]}),(0,d.jsxs)(St.s,{direction:"row",alignItems:"flex-start",className:Ph("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"statisticsMode",className:Ph("field-title"),children:Au.statisticsMode.title}),(0,d.jsx)(gp.m,{className:Ph("statistics-mode-tooltip"),disabled:!o,openDelay:0,content:Cu("tooltip_plan-to-svg-statistics"),children:(0,d.jsx)("div",{className:Ph("control-wrapper",{statisticsMode:!0}),children:(0,d.jsx)(Nh.xI,{name:"statisticsMode",control:r,render:({field:e})=>(0,d.jsx)(wh,{id:"statisticsMode",disabled:o,setting:e.value,onUpdateSetting:e.onChange,settingOptions:Au.statisticsMode.options})})})})]}),(0,d.jsxs)(St.s,{direction:"row",alignItems:"flex-start",className:Ph("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"limitRows",className:Ph("field-title"),children:Au.limitRows.title}),(0,d.jsx)("div",{className:Ph("control-wrapper"),children:(0,d.jsx)(Nh.xI,{name:"limitRows",control:r,render:({field:e})=>{var t,a;return(0,d.jsx)(Vs.k,{id:"limitRows",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:Ph("limit-rows"),placeholder:"10000",validationState:s.limitRows?"invalid":void 0,errorMessage:null===(a=s.limitRows)||void 0===a?void 0:a.message,errorPlacement:"inside"})}})})]})]}),(0,d.jsx)(Us.l.Footer,{textButtonApply:Cu("button-done"),textButtonCancel:Cu("button-cancel"),onClickButtonCancel:a,propsButtonApply:{type:"submit"},renderButtons:(e,t)=>(0,d.jsxs)("div",{className:Ph("buttons-container"),children:[(0,d.jsx)(Ko.N,{href:"https://ydb.tech/docs",target:"_blank",className:Ph("documentation-link"),children:Cu("docs")}),(0,d.jsxs)("div",{className:Ph("main-buttons"),children:[t,e]})]})})]})}const Ah={automaticLayout:!0,selectOnLineNumbers:!0,minimap:{enabled:!1}};const _h="navigation",Rh=(0,c.cn)("query-editor"),Oh={triggerExpand:!1,triggerCollapse:!1,collapsed:!0};function Mh(e){const t=function(){const[e]=(0,he.iK)(me.LK),[t]=(0,he.iK)(me.IO);return n.useMemo((()=>{const a=Boolean(e);return{quickSuggestions:a,suggestOnTriggerCharacters:a,acceptSuggestionOnEnter:t?"on":"off",...Ah}}),[e,t])}(),a=(0,he.YQ)(),{tenantName:r,path:i,type:s,theme:o,changeUserInput:l}=e,c=(0,he.N4)(zs.yJ),u=(0,he.N4)(zs.wf),p=(0,he.N4)(zs.py),m=(0,he.N4)(zs.Kz),v=(0,he.N4)(zs.Wp),g=(0,he.N4)(Eu.Ab),y=Boolean(u),[x]=(0,he.XS)(),b=(0,fe.Oi)(),[f,S]=Ou(),{resetBanner:E}=ku(),[T,N]=(0,he.iK)(me.zk),[j]=zs.JO.useUseSendQueryMutation();n.useEffect((()=>{c!==r&&a((0,zs.Id)(r))}),[a,r,c]);const[C,w]=n.useReducer(qu(me.GV),Oh);n.useEffect((()=>{w(zu.triggerCollapse)}),[]),n.useEffect((()=>{w(g||y?zu.triggerExpand:zu.triggerCollapse)}),[g,y]);const P=(0,he.A5)((()=>p&&0!==p.length?p[p.length-1].queryText:"")),I=(0,he.A5)((e=>{const t=null!==e&&void 0!==e?e:v;N(Ft.x5.execute),(0,bu.isEqual)(f,x)||(E(),S(x));const n=(0,fu.A)();var i;(j({actionType:"execute",query:t,database:r,querySettings:x,enableTracingLevel:b,queryId:n}),a((0,Eu.o)(!1)),e)||t!==(null===(i=p[m])||void 0===i?void 0:i.queryText)&&a((0,zs.nO)({queryText:v,queryId:n}));w(zu.triggerExpand)})),D=()=>{a((0,Js.NJ)("settings"))},A=(0,he.A5)((()=>{N(Ft.x5.explain),(0,bu.isEqual)(f,x)||(E(),S(x));const e=(0,fu.A)();j({actionType:"explain",query:v,database:r,querySettings:x,enableTracingLevel:b,queryId:e}),a((0,Eu.o)(!1)),w(zu.triggerExpand)})),_=(0,he.A5)((()=>{T===Ft.x5.explain?A():I()}));return(0,d.jsxs)("div",{className:Rh(),children:[(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:me.l_,triggerCollapse:C.triggerCollapse,triggerExpand:C.triggerExpand,minSize:[0,52],collapsedSizes:[100,0],onSplitStartDragAdditional:()=>{w(zu.clear)},children:[(0,d.jsxs)("div",{className:Rh("pane-wrapper",{top:!0}),children:[(0,d.jsx)("div",{className:Rh("monaco-wrapper"),children:(0,d.jsx)("div",{className:Rh("monaco"),children:(0,d.jsx)(Su,{language:"yql",value:v,options:t,onChange:e=>{l({input:e})},editorDidMount:(e,t)=>{window.ydbEditor=e;const n=function(e){const{KeyMod:t,KeyCode:a}=e,n=t.CtrlCmd;return{sendQuery:n|a.Enter,sendSelectedQuery:n|t.Shift|e.KeyCode.Enter,selectPreviousQuery:n|a.UpArrow,selectNextQuery:n|a.DownArrow,saveQuery:n|a.KeyS,saveSelectedQuery:n|t.Shift|a.KeyS}}(t);t.editor.registerCommand("insertSnippetToEditor",((t,a)=>{const n=e.getContribution("snippetController2");n&&(e.focus(),e.setValue(""),n.insert(a))})),function(e){const t=De()((()=>{e.layout()}),100);e.layout(),window.addEventListener("resize",t),e.onDidDispose((()=>{window.removeEventListener("resize",t)}))}(e),function(e,t){Lh(e.getValue(),t()),e.onDidChangeModelContent((()=>{Lh(e.getValue(),t())})),e.onDidDispose((()=>{window.onbeforeunload=null}))}(e,P),e.focus(),e.addAction({id:"sendQuery",label:gu("action.send-query"),keybindings:[n.sendQuery],precondition:void 0,keybindingContext:void 0,contextMenuGroupId:_h,contextMenuOrder:1,run:()=>_()});const r=e.createContextKey("canSendSelectedText",!1);e.onDidChangeCursorSelection((({selection:e,secondarySelections:t})=>{const a=e.selectionStartLineNumber!==e.positionLineNumber||e.selectionStartColumn!==e.positionColumn,n=t.length>0;r.set(a&&!n)})),e.addAction({id:"sendSelectedQuery",label:gu("action.send-selected-query"),keybindings:[n.sendSelectedQuery],precondition:"canSendSelectedText",contextMenuGroupId:_h,contextMenuOrder:1,run:e=>{const t=e.getSelection(),a=e.getModel();if(t&&a){const e=a.getValueInRange({startLineNumber:t.getSelectionStart().lineNumber,startColumn:t.getSelectionStart().column,endLineNumber:t.getPosition().lineNumber,endColumn:t.getPosition().column});I(e)}}}),e.addAction({id:"previous-query",label:gu("action.previous-query"),keybindings:[n.selectPreviousQuery],contextMenuGroupId:_h,contextMenuOrder:2,run:()=>{a((0,zs.JK)())}}),e.addAction({id:"next-query",label:gu("action.next-query"),keybindings:[n.selectNextQuery],contextMenuGroupId:_h,contextMenuOrder:3,run:()=>{a((0,zs.tS)())}}),e.addAction({id:"save-query",label:gu("action.save-query"),keybindings:[n.saveQuery],run:()=>{Fs.Ay.show(ro)}})},theme:`vs-${o}`,editorWillUnmount:()=>{window.ydbEditor=void 0}})})}),(0,d.jsx)(Xp,{handleSendExecuteClick:I,onSettingsButtonClick:D,isLoading:Boolean(null===u||void 0===u?void 0:u.isLoading),handleGetExplainQueryClick:A,disabled:!v,highlightedAction:T})]}),(0,d.jsx)("div",{className:Rh("pane-wrapper"),children:(0,d.jsx)(kh,{resultVisibilityState:C,onExpandResultHandler:()=>{w(zu.triggerExpand)},onCollapseResultHandler:()=>{w(zu.triggerCollapse)},type:s,theme:o,result:u,tenantName:r,path:i,showPreview:g},null===u||void 0===u?void 0:u.queryId)})]}),(0,d.jsx)(Ih,{})]})}function kh({resultVisibilityState:e,onExpandResultHandler:t,onCollapseResultHandler:a,type:n,theme:r,result:i,tenantName:s,path:o,showPreview:l}){return l?(0,d.jsx)(mp,{database:s,path:o,type:n}):i?(0,d.jsx)(Eh,{result:i,resultType:null===i||void 0===i?void 0:i.type,theme:r,tenantName:s,isResultsCollapsed:e.collapsed,onExpandResults:t,onCollapseResults:a}):null}function Lh(e,t){const a=!!e&&e!==t;window.onbeforeunload=a?e=>{e.preventDefault(),e.returnValue=""}:null}const zh=[{id:ge.tQ.newQuery,title:gu("tabs.newQuery")},{id:ge.tQ.history,title:gu("tabs.history")},{id:ge.tQ.saved,title:gu("tabs.saved")}],Fh=({className:e,activeTab:t})=>{const a=(0,pr.zy)(),n=(0,Ae.mA)(a);return(0,d.jsx)("div",{className:e,children:(0,d.jsx)(ye.t,{size:"l",allowNotSelected:!0,activeTab:t,items:zh,wrapTo:({id:e},t)=>{const a=(0,ga.YL)({...n,[ga.vh.queryTab]:e});return(0,d.jsx)(Rs.E,{to:a,children:t},e)}})})};var Uh=a(65872),qh=a(64470);const Qh=(0,c.cn)("ydb-saved-queries"),Bh=({visible:e,queryName:t,onCancelClick:a,onConfirmClick:n})=>(0,d.jsxs)(Us.l,{open:e,hasCloseButton:!1,size:"s",onClose:a,onEnterKeyDown:n,children:[(0,d.jsx)(Us.l.Header,{caption:gu("delete-dialog.header")}),(0,d.jsxs)(Us.l.Body,{className:Qh("dialog-body"),children:[gu("delete-dialog.question"),(0,d.jsx)("span",{className:Qh("dialog-query-name"),children:` ${t}?`})]}),(0,d.jsx)(Us.l.Footer,{textButtonApply:gu("delete-dialog.delete"),textButtonCancel:gu("delete-dialog.cancel"),onClickButtonCancel:a,onClickButtonApply:n})]}),$h=({changeUserInput:e})=>{const t=Ys(),a=(0,he.YQ)(),r=(0,he.N4)(Js.cu),[i,s]=n.useState(!1),[o,l]=n.useState(""),c=()=>{s(!1),l("")},u=uo(n.useCallback((({queryText:t,queryName:n})=>{e({input:t}),a((0,Js.JP)(n)),a((0,Se.sH)(ge.tQ.newQuery))}),[e,a])),p=[{name:"name",header:"Name",render:({row:e})=>(0,d.jsx)("div",{className:Qh("query-name"),children:e.name}),width:200},{name:"body",header:"Query Text",render:({row:e})=>{return(0,d.jsxs)("div",{className:Qh("query"),children:[(0,d.jsx)("div",{className:Qh("query-body"),children:(0,d.jsx)(mo,{value:e.body,maxQueryHeight:6})}),(0,d.jsxs)("span",{className:Qh("controls"),children:[(0,d.jsx)(wn.$,{view:"flat-secondary",children:(0,d.jsx)(Tt.I,{data:Uh.A})}),(0,d.jsx)(wn.$,{view:"flat-secondary",onClick:(t=e.name,e=>{e.stopPropagation(),s(!0),l(t)}),children:(0,d.jsx)(Tt.I,{data:qh.A})})]})]});var t},sortable:!1,resizeMinWidth:650}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(et.L,{className:Qh(),children:[(0,d.jsx)(et.L.Controls,{children:(0,d.jsx)(nt.v,{onChange:e=>{a((0,Js.ys)(e))},placeholder:gu("filter.text.placeholder"),className:Qh("search")})}),(0,d.jsx)(et.L.Table,{children:(0,d.jsx)(Xe.l,{columnsWidthLSKey:"savedQueriesTableColumnsWidth",columns:p,data:t,settings:yo,emptyDataMessage:gu(r?"history.empty-search":"saved.empty"),rowClassName:()=>Qh("row"),onRowClick:e=>u({queryText:e.body,queryName:e.name}),initialSortOrder:{columnId:"name",order:Vt.Ay.ASCENDING}})})]}),(0,d.jsx)(Bh,{visible:i,queryName:o,onCancelClick:()=>{c()},onConfirmClick:()=>{c(),a((0,Js.fu)(o)),l("")}})]})},Gh=(0,c.cn)("ydb-query"),Hh=e=>{const t=(0,he.YQ)(),{queryTab:a=ge.tQ.newQuery}=(0,he.N4)((e=>e.tenant)),i=e=>{t((0,zs.iZ)(e))},s=n.useMemo((()=>zh.find((({id:e})=>e===a))),[a]);return(0,d.jsxs)("div",{className:Gh(),children:[s?(0,d.jsx)(r.mg,{children:(0,d.jsx)("title",{children:s.title})}):null,(0,d.jsx)(Fh,{className:Gh("tabs"),activeTab:a}),(0,d.jsx)("div",{className:Gh("content"),children:(()=>{switch(a){case ge.tQ.newQuery:return(0,d.jsx)(Mh,{changeUserInput:i,...e});case ge.tQ.history:return(0,d.jsx)(xu,{changeUserInput:i});case ge.tQ.saved:return(0,d.jsx)($h,{changeUserInput:i});default:return null}})()})]})};var Wh=a(46649),Vh=a(93844);const Jh=["query","diagnostics"],Yh={query:Wh.A,diagnostics:Vh.A};const Kh=(0,c.cn)("ydb-tenant-navigation"),Zh=({id:e,title:t,icon:a})=>({value:e,content:(0,d.jsxs)("span",{className:Kh("item"),children:[(0,d.jsx)(Tt.I,{data:a,size:16,className:Kh("icon")}),(0,d.jsx)("span",{className:Kh("text"),children:t})]})}),Xh=()=>{const e=function(){const e=(0,pr.W6)(),t=(0,pr.zy)(),a=(0,Ae.mA)(t),[,r]=(0,he.iK)(me.Mt),{tenantPage:i}=(0,he.N4)((e=>e.tenant)),s=n.useMemo((()=>{if(t.pathname!==Ae.Ay.tenant)return[];const n=Jh.map((t=>{const n=ge.Dg[t],s=(0,ga.YL)({...a,[ge.Dt]:n});return{id:n,title:Hr(`pages.${t}`),icon:Yh[t],path:s,current:i===n,onForward:()=>{r(n),e.push(s)}}}));return n}),[i,r,t.pathname,e,a]);return s}();return(0,d.jsx)("div",{className:Kh(),children:(0,d.jsx)(kd.a,{width:"auto",onUpdate:t=>{const a=e.find((e=>e.id===t));null===a||void 0===a||a.onForward()},size:"l",className:Kh("body"),value:(e.find((e=>e.current))||e[0]).id,options:e.map(Zh)})})},ev=(0,c.cn)("object-general");const tv=function(e){const t=(0,ve.i)(),{tenantPage:a}=(0,he.N4)((e=>e.tenant));return(0,d.jsxs)("div",{className:ev(),children:[(0,d.jsx)(Xh,{}),(()=>{const{type:n,additionalTenantProps:r,additionalNodesProps:i,tenantName:s,path:o}=e;return a===ge.Dg.query?(0,d.jsx)(Hh,{tenantName:s,path:o,theme:t,type:n}):(0,d.jsx)(hu,{type:n,tenantName:s,path:o,additionalTenantProps:r,additionalNodesProps:i})})()]})};var av=a(1956);const nv=oe.F.injectEndpoints({endpoints:e=>({getSchemaAcl:e.query({queryFn:async({path:e,database:t},{signal:a})=>{try{const n=await window.api.viewer.getSchemaAcl({path:e,database:t},{signal:a});return{data:{acl:n.Common.ACL,effectiveAcl:n.Common.EffectiveACL,owner:n.Common.Owner,interruptInheritance:n.Common.InterruptInheritance}}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"}),rv=JSON.parse('{"title_rights":"Access Rights","title_effective-rights":"Effective Access Rights","title_owner":"Owner","title_interupt-inheritance":"Interrupt inheritance","description_empty":"No Acl data"}'),iv=(0,rt.g4)("ydb-acl",{en:rv}),sv=(0,c.cn)("ydb-acl"),ov=["access","type","inheritance"],lv={access:"Access",type:"Access type",inheritance:"Inheritance type"},cv=new Set(["Object","Container"]);function dv({value:e}){const t="string"===typeof e?[e]:e;return(0,d.jsx)("div",{className:sv("definition-content"),children:t.map((e=>(0,d.jsx)("span",{children:e},e)))})}function uv(e){if(!e||!e.length)return[];const t=function(e){return e.map((e=>{const{AccessRules:t=[],AccessRights:a=[],AccessType:n,InheritanceType:r,Subject:i}=e,s=t.concat(a),o="Allow"===n?void 0:n;let l;return((null===r||void 0===r?void 0:r.length)!==cv.size||r.some((e=>!cv.has(e))))&&(l=r),{access:s.length?s:void 0,type:o,inheritance:l,Subject:i}}))}(e);return t.map((({Subject:e,...t})=>{const a=Object.entries(t).filter((([e,t])=>Boolean(t)));return 1===a.length&&"access"===a[0][0]?{name:e,content:(0,d.jsx)(dv,{value:a[0][1]}),multilineName:!0}:{label:(0,d.jsx)("span",{className:sv("group-label"),children:e}),items:ov.map((e=>{const a=t[e];if(a)return{name:lv[e],content:(0,d.jsx)(dv,{value:a}),multilineName:!0}})).filter(Zr.f8)}}))}const pv=({path:e,database:t})=>{const{currentData:a,isFetching:r,error:i}=nv.useGetSchemaAclQuery({path:e,database:t}),s=r&&!a,{acl:o,effectiveAcl:l,owner:c,interruptInheritance:u}=a||{},p=uv(o),m=uv(l),h=function(e){const t=(a=e,a&&a.endsWith("@staff")&&!a.startsWith("svc_")?a.split("@")[0]:a);var a;return t?[{name:t,content:iv("title_owner"),multilineName:!0}]:[]}(c),v=u?[{name:iv("title_interupt-inheritance"),content:(0,d.jsx)(Tt.I,{data:av.A,size:20}),multilineName:!0}]:[];if(s)return(0,d.jsx)(je.a,{});if(i)return(0,d.jsx)(Ne.o,{error:i});if(!o&&!c&&!l)return(0,d.jsx)(n.Fragment,{children:iv("description_empty")});const g=h.concat(p);return(0,d.jsxs)("div",{className:sv(),children:[(0,d.jsx)(mv,{items:v}),(0,d.jsx)(mv,{items:g,title:iv("title_rights")}),(0,d.jsx)(mv,{items:m,title:iv("title_effective-rights")})]})};function mv({items:e,title:t}){return e.length?(0,d.jsxs)(n.Fragment,{children:[t&&(0,d.jsx)("div",{className:sv("list-title"),children:t}),(0,d.jsx)(br.u,{items:e,nameMaxWidth:200,className:sv("result",{"no-title":!t}),responsive:!0})]}):null}var hv=a(11951);const vv=(e,t,a)=>{const{setActivePath:n}=a;return{openPreview:()=>{t(oe.F.util.invalidateTags(["PreviewData"])),t((0,Eu.o)(!0)),t((0,Se.es)(ge.Dg.query)),t((0,Se.sH)(ge.tQ.newQuery)),n(e)}}},gv=(e,t)=>(0,d.jsx)(wn.$,{view:"flat-secondary",onClick:e.openPreview,title:Hr("actions.openPreview"),size:t||"s",children:(0,d.jsx)(Tt.I,{data:hv.A})}),yv=(e,t,a)=>(n,r)=>{const i=vv(n,e,t),s=gv(i,a);return{async_replication:void 0,database:void 0,directory:void 0,table:s,column_table:s,index_table:void 0,topic:void 0,stream:void 0,index:void 0,external_table:s,external_data_source:void 0,view:s}[r]},xv=(e,t,a)=>(n,r)=>{const i=vv(n,e,t);return{preview:gv(i,a)}[r]};var bv=a(57949);const fv=5*me.KF,Sv=oe.F.injectEndpoints({endpoints:e=>({getTableSchemaData:e.query({queryFn:async({path:e,tenantName:t,type:a},{dispatch:n})=>{try{if(se(a)){const a=await n(qt.endpoints.getViewSchema.initiate({database:t,path:e,timeout:fv}));if((0,Ft.We)(a))return{error:a};return{data:ha(a.data)}}const r=await n(le.endpoints.getOverview.initiate({path:e,database:t,timeout:fv}));return{data:ma(a,r.data)}}catch(r){return{error:r}}}})})});var Ev=a(32133),Tv=a.n(Ev);function Nv(e,t){const a=e.replace(/^\/+|\/+$/g,""),n=t.replace(/^\/+|\/+$/g,"");if(!a.startsWith(n))return a||"/";if(a===n)return`/${a}`;let r=a.slice(n.length);return r=r.replace(/^\/+/,"")||"/",r}function jv(e,t){return t===f.EPathTypeDir&&(2===e.split("/").length&&e.startsWith("/"))}const Cv=({text:e,action:t,isLoading:a})=>({text:(0,d.jsxs)(St.s,{justifyContent:"space-between",alignItems:"center",children:[e,a&&(0,d.jsx)(im.t,{size:"xs"})]}),action:t,disabled:a}),wv=(e,t,a="")=>(n,r)=>{const i=((e,t,a)=>{const{setActivePath:n,showCreateDirectoryDialog:r,getConfirmation:i,schemaData:s}=a,o=a=>()=>{const r=()=>{t((0,Se.es)(ge.Dg.query)),t((0,Se.sH)(ge.tQ.newQuery)),n(e.path),fp(a({...e,schemaData:s}))};i?i().then((e=>{e&&r()})):r()};return{createDirectory:r?()=>{r(e.path)}:void 0,createTable:o(Sp),createColumnTable:o(Ep),createAsyncReplication:o(Tp),alterAsyncReplication:o(Mp),dropAsyncReplication:o(Op),alterTable:o(Np),dropTable:o(Wp),selectQuery:o(jp),upsertQuery:o(Cp),createExternalTable:o(Pp),dropExternalTable:o(wp),selectQueryFromExternalTable:o(jp),createTopic:o(Ip),alterTopic:o(Dp),dropTopic:o(Ap),createView:o(_p),dropView:o(Rp),dropIndex:o(Lp),addTableIndex:o(kp),createCdcStream:o(zp),copyPath:()=>{try{Tv()(e.relativePath),It({name:"Copied",title:Hr("actions.copied"),type:"success"})}catch{It({name:"Not copied",title:Hr("actions.notCopied"),type:"error"})}}}})({path:n,relativePath:Nv(n,a),tenantName:a,type:r},e,t),s={text:Hr("actions.copyPath"),action:i.copyPath},o=[[s],[{text:Hr("actions.createTable"),action:i.createTable},{text:Hr("actions.createColumnTable"),action:i.createColumnTable},{text:Hr("actions.createAsyncReplication"),action:i.createAsyncReplication},{text:Hr("actions.createTopic"),action:i.createTopic},{text:Hr("actions.createView"),action:i.createView}]];i.createDirectory&&o.splice(1,0,[{text:Hr("actions.createDirectory"),action:i.createDirectory}]);const l=[[s],[{text:Hr("actions.alterTable"),action:i.alterTable},{text:Hr("actions.dropTable"),action:i.dropTable},Cv({text:Hr("actions.selectQuery"),action:i.selectQuery,isLoading:t.isSchemaDataLoading}),Cv({text:Hr("actions.upsertQuery"),action:i.upsertQuery,isLoading:t.isSchemaDataLoading}),{text:Hr("actions.addTableIndex"),action:i.addTableIndex},{text:Hr("actions.createCdcStream"),action:i.createCdcStream}]],c=[[s],[{text:Hr("actions.alterTable"),action:i.alterTable},{text:Hr("actions.dropTable"),action:i.dropTable},{text:Hr("actions.selectQuery"),action:i.selectQuery},{text:Hr("actions.upsertQuery"),action:i.upsertQuery}]],d=[[s],[{text:Hr("actions.alterTopic"),action:i.alterTopic},{text:Hr("actions.dropTopic"),action:i.dropTopic}]],u=[[s],[{text:Hr("actions.selectQuery"),action:i.selectQueryFromExternalTable}],[{text:Hr("actions.dropTable"),action:i.dropExternalTable}]],p=[[s],[{text:Hr("actions.createExternalTable"),action:i.createExternalTable}]],m=[[s],[{text:Hr("actions.selectQuery"),action:i.selectQuery}],[{text:Hr("actions.dropView"),action:i.dropView}]],h=[s];return{async_replication:[[s],[{text:Hr("actions.alterReplication"),action:i.alterAsyncReplication},{text:Hr("actions.dropReplication"),action:i.dropAsyncReplication}]],database:o,directory:o,table:l,column_table:c,index_table:h,topic:d,stream:h,index:[[s,{text:Hr("actions.dropIndex"),action:i.dropIndex}]],external_table:u,external_data_source:p,view:m}[r]},Pv=(0,c.cn)("ydb-schema-create-directory-dialog"),Iv="relativePath";function Dv({open:e,onClose:t,database:a,parentPath:r,onSuccess:i}){const[s,o]=n.useState(""),[l,c]=n.useState(""),[u,p]=Eu.sM.useCreateDirectoryMutation(),m=()=>{o(""),p.reset()},h=()=>{t(),c(""),m()};return(0,d.jsxs)(Us.l,{open:e,onClose:h,size:"s",children:[(0,d.jsx)(Us.l.Header,{caption:Hr("schema.tree.dialog.header")}),(0,d.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=(n=l)?/\s/.test(n)?Hr("schema.tree.dialog.whitespace"):"":Hr("schema.tree.dialog.empty");var n;o(t),t||u({database:a,path:`${r}/${l}`}).unwrap().then((()=>{h(),i(l)}))},children:[(0,d.jsxs)(Us.l.Body,{children:[(0,d.jsxs)("label",{htmlFor:Iv,className:Pv("label"),children:[(0,d.jsx)("span",{className:Pv("description"),children:Hr("schema.tree.dialog.description")}),`${r}/`]}),(0,d.jsx)("div",{className:Pv("input-wrapper"),children:(0,d.jsx)(Vs.k,{placeholder:Hr("schema.tree.dialog.placeholder"),value:l,onUpdate:e=>{c(e),m()},autoFocus:!0,hasClear:!0,autoComplete:!1,disabled:p.isLoading,validationState:s?"invalid":void 0,id:Iv,errorMessage:s})}),p.isError&&(0,d.jsx)(Ne.o,{error:p.error,defaultMessage:Hr("schema.tree.dialog.invalid")})]}),(0,d.jsx)(Us.l.Footer,{loading:p.isLoading,textButtonApply:Hr("schema.tree.dialog.buttonApply"),textButtonCancel:Hr("schema.tree.dialog.buttonCancel"),onClickButtonCancel:h,propsButtonApply:{type:"submit"}})]})]})}const Av=n.createContext(void 0),_v=n.createContext(void 0);function Rv({children:e}){const[t,a]=n.useState("");return(0,d.jsx)(Av.Provider,{value:t,children:(0,d.jsx)(_v.Provider,{value:a,children:e})})}function Ov(){const e=n.useContext(_v);if(void 0===e)throw new Error("useDispatchTreeKey must be used within a TreeKeyProvider");return e}function Mv(e){const t=(0,fe.Ii)(),{rootPath:a,rootName:r,rootType:i,currentPath:s,onActivePathUpdate:o}=e,l=(0,he.YQ)(),c=(0,he.N4)(zs.Wp),[u,{currentData:p,isFetching:m}]=Sv.useLazyGetTableSchemaDataQuery(),[h,v]=(0,he.XS)(),[g,y]=n.useState(!1),[x,b]=n.useState(""),f=Ov(),S=function(){const e=n.useContext(Av);if(void 0===e)throw new Error("useTreeKey must be used within a TreeKeyProvider");return e}();n.useEffect((()=>{null!==s&&void 0!==s&&s.startsWith(a)||o(a)}),[s,o,a]);const E=e=>{b(e),y(!0)},T=n.useMemo((()=>wv(l,{setActivePath:o,updateQueryExecutionSettings:e=>v({...h,...e}),showCreateDirectoryDialog:t?E:void 0,getConfirmation:c?co:void 0,schemaData:p,isSchemaDataLoading:m},a)),[p,t,l,c,m,o,h,a,v]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Dv,{onClose:()=>{y(!1)},open:g,database:a,parentPath:x,onSuccess:e=>{const t=`${x}/${e}`;o(t),f(t)}}),(0,d.jsx)(bv.F,{rootState:{path:a,name:r,type:q(i),collapsed:!1},fetchPath:async e=>{let t;for(;;){const n=l(Eu.sM.endpoints.getSchema.initiate({path:e,database:a},{forceRefetch:!0})),{data:r,originalArgs:i}=await n;if(n.unsubscribe(),(null===i||void 0===i?void 0:i.path)===e){t=null===r||void 0===r?void 0:r[e];break}}if(!t)throw new Error(`no describe data about path ${e}`);const{PathDescription:{Children:n=[]}={}}=t;return n.map((e=>{const{Name:t="",PathType:a,PathSubType:n}=e;return{name:t,type:q(a,n),expandable:!ne(a,n)}}))},getActions:T,onActionsOpenToggle:({path:e,type:t,isOpen:n})=>{const r=U[t];return n&&r&&u({path:e,tenantName:a,type:r}),[]},renderAdditionalNodeElements:yv(l,{setActivePath:o}),activePath:s,onActivePathUpdate:o,cache:!1,virtualize:!0},S)]})}const kv=JSON.parse('{"title_navigation":"Navigation","field_source-type":"Source Type","field_data-source":"Data Source","action_copySchemaPath":"Copy schema path","action_openInDiagnostics":"Open in Diagnostics","field_type":"Type","field_subtype":"SubType","field_id":"Id","field_version":"Version","field_created":"Created","field_data-size":"Data size","field_row-count":"Row count","field_partitions":"Partitions count","field_paths":"Paths","field_shards":"Shards","field_state":"State","field_mode":"Mode","field_format":"Format","field_retention":"Retention"}'),Lv=(0,rt.g4)("ydb-object-summary",{en:kv}),zv=(0,c.cn)("ydb-object-summary");function Fv({tenantName:e,path:t}){var a;const{data:n={},isLoading:r}=(0,Eu.Tn)({path:e,database:e}),s=null===n||void 0===n||null===(a=n.PathDescription)||void 0===a?void 0:a.Self,[,o]=(0,i.useQueryParam)("schema",i.StringParam);return!s&&r?(0,d.jsx)("div",{children:(0,d.jsx)(je.a,{})}):(0,d.jsxs)("div",{className:zv("tree-wrapper"),children:[(0,d.jsx)("div",{className:zv("tree-header"),children:Lv("title_navigation")}),(0,d.jsx)("div",{className:zv("tree"),children:s?(0,d.jsx)(Mv,{rootPath:e,rootName:s.Name||e,rootType:s.PathType,currentPath:t,onActivePathUpdate:o}):null})]})}var Uv=a(16963);function qv(){const e=(0,he.YQ)(),{diagnosticsTab:t,tenantPage:a}=(0,he.N4)((e=>e.tenant)),n=a===ge.Dg.diagnostics&&t===ge.iJ.schema;return(0,d.jsx)("div",{children:!n&&(0,d.jsx)(wn.$,{title:Lv("action_openInDiagnostics"),onClick:()=>{e((0,Se.es)(ge.Dg.diagnostics)),e((0,Se.WO)(ge.iJ.schema))},size:"s",children:(0,d.jsx)(Tt.I,{data:Uv.A,size:14})})})}var Qv=a(8873),Bv=a(97091);function $v(){const e=Ov();return(0,d.jsx)(Et.m,{title:"Refresh",children:(0,d.jsx)(wn.$,{view:"flat-secondary",onClick:()=>{e((0,Bv.Ak)())},children:(0,d.jsx)(Tt.I,{data:Qv.A})})})}const Gv=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(me.hh))});function Hv({type:e,subType:t,tenantName:a,path:r,onCollapseSummary:s,onExpandSummary:o,isCollapsed:l}){var c;const[u]=(0,he.Nt)(),p=(0,he.YQ)(),[,m]=(0,i.useQueryParam)("schema",i.StringParam),[v,g]=n.useReducer(qu(me.hh),void 0,Gv),{summaryTab:y=ge.ml.overview}=(0,he.N4)((e=>e.tenant)),x=(0,pr.zy)(),b=Ba().parse(x.search,{ignoreQueryPrefix:!0}),{currentData:E}=le.useGetOverviewQuery({path:r,database:a},{pollingInterval:u}),T=null===E||void 0===E||null===(c=E.PathDescription)||void 0===c?void 0:c.Self;n.useEffect((()=>{const t=H(e);!e||t||ga.x$.find((e=>e.id===y))||p((0,Se.Mj)(ge.ml.overview))}),[p,e,y]);const N=()=>{const t=H(e)?[...ga.x$,...ga.nb]:ga.x$;return(0,d.jsx)("div",{className:zv("tabs"),children:(0,d.jsxs)(St.s,{className:zv("tabs-inner"),justifyContent:"space-between",alignItems:"center",children:[(0,d.jsx)(ye.t,{size:"l",items:t,activeTab:y,wrapTo:({id:e},t)=>{const a=(0,ga.YL)({...b,[ga.vh.summaryTab]:e});return(0,d.jsx)(xe.N_,{to:a,className:zv("tab"),children:t},e)},allowNotSelected:!0}),y===ge.ml.schema&&(0,d.jsx)(qv,{})]})})},j=()=>{switch(y){case ge.ml.acl:return(0,d.jsx)(pv,{path:r,database:a});case ge.ml.schema:return(0,d.jsx)(va,{type:e,path:r,tenantName:a});default:return(()=>{var e;if(!T)return;const{CreateStep:t,PathType:a,PathSubType:i,PathId:s,PathVersion:o}=T,l=[],c=jv(r,a)?"Domain":null===a||void 0===a?void 0:a.replace(/^EPathType/,"");l.push({name:Lv("field_type"),content:c}),i!==S.EPathSubTypeEmpty&&l.push({name:Lv("field_subtype"),content:null===i||void 0===i?void 0:i.replace(/^EPathSubType/,"")}),l.push({name:Lv("field_id"),content:s}),l.push({name:Lv("field_version"),content:o}),l.push({name:Lv("field_created"),content:(0,Pe.r6)(t)});const{PathDescription:u}=E;if(null!==u&&void 0!==u&&u.TableStats){const{DataSize:e,RowCount:t}=u.TableStats;l.push({name:Lv("field_data-size"),content:Gn(e)},{name:Lv("field_row-count"),content:(0,Pe.ZV)(t)})}const p=()=>{var e;const{PathsInside:t,ShardsInside:a,PathsLimit:n,ShardsLimit:r}=null!==(e=null===u||void 0===u?void 0:u.DomainDescription)&&void 0!==e?e:{};let i=(0,Pe.ZV)(t),s=(0,Pe.ZV)(a);return i&&n&&(i=`${i} / ${(0,Pe.ZV)(n)}`),s&&r&&(s=`${s} / ${(0,Pe.ZV)(r)}`),[{name:Lv("field_paths"),content:i},{name:Lv("field_shards"),content:s}]},m={[f.EPathTypeInvalid]:void 0,[f.EPathTypeDir]:void 0,[f.EPathTypeTable]:()=>{var e;return[{name:Lv("field_partitions"),content:null===u||void 0===u||null===(e=u.TablePartitions)||void 0===e?void 0:e.length}]},[f.EPathTypeSubDomain]:p,[f.EPathTypeTableIndex]:void 0,[f.EPathTypeExtSubDomain]:p,[f.EPathTypeColumnStore]:()=>{var e,t;return[{name:Lv("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnStoreDescription)||void 0===e||null===(t=e.ColumnShards)||void 0===t?void 0:t.length}]},[f.EPathTypeColumnTable]:()=>{var e,t,a;return[{name:Lv("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnTableDescription)||void 0===e||null===(t=e.Sharding)||void 0===t||null===(a=t.ColumnShards)||void 0===a?void 0:a.length}]},[f.EPathTypeCdcStream]:()=>{const{Mode:e,Format:t}=(null===u||void 0===u?void 0:u.CdcStreamDescription)||{};return[{name:Lv("field_mode"),content:null===e||void 0===e?void 0:e.replace(/^ECdcStreamMode/,"")},{name:Lv("field_format"),content:null===t||void 0===t?void 0:t.replace(/^ECdcStreamFormat/,"")}]},[f.EPathTypePersQueueGroup]:()=>{var e,t,a;const n=null===u||void 0===u?void 0:u.PersQueueGroup,r=null===n||void 0===n||null===(e=n.PQTabletConfig)||void 0===e||null===(t=e.PartitionConfig)||void 0===t?void 0:t.LifetimeSeconds;return[{name:Lv("field_partitions"),content:null===n||void 0===n||null===(a=n.Partitions)||void 0===a?void 0:a.length},{name:Lv("field_retention"),content:r&&(0,Pe.Pt)(r)}]},[f.EPathTypeExternalTable]:()=>{var e,t;const a=(0,Ae.Ow)({...b,schema:null===u||void 0===u||null===(e=u.ExternalTableDescription)||void 0===e?void 0:e.DataSourcePath}),{SourceType:n,DataSourcePath:r}=(null===u||void 0===u?void 0:u.ExternalTableDescription)||{},i=(null===r||void 0===r||null===(t=r.match(/([^/]*)\/*$/))||void 0===t?void 0:t[1])||"";return[{name:Lv("field_source-type"),content:n},{name:Lv("field_data-source"),content:r&&(0,d.jsx)("span",{title:r,children:(0,d.jsx)(mr.K,{title:i||"",url:a})})}]},[f.EPathTypeExternalDataSource]:()=>{var e;return[{name:Lv("field_source-type"),content:null===u||void 0===u||null===(e=u.ExternalDataSourceDescription)||void 0===e?void 0:e.SourceType}]},[f.EPathTypeView]:void 0,[f.EPathTypeReplication]:()=>{var e;const t=null===u||void 0===u||null===(e=u.ReplicationDescription)||void 0===e?void 0:e.State;return t?[{name:Lv("field_state"),content:(0,d.jsx)(jr,{state:t})}]:[]}},h=a&&(null===(e=m[a])||void 0===e?void 0:e.call(m))||[];l.push(...h);const v=l.filter((e=>e.content)).map((e=>({...e,content:(0,d.jsx)("div",{className:zv("overview-item-content"),children:e.content}),multilineName:!0})));return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:zv("overview-title"),children:(0,d.jsx)(Wr,{data:u})}),(0,d.jsx)(br.u,{items:v,responsive:!0,nameMaxWidth:150})]})})()}},C=()=>{g(zu.triggerCollapse)},w=()=>{g(zu.triggerExpand)},P=()=>{g(zu.clear)},I=Nv(r,a),D=()=>{const a=H(e)&&!V(t);return(0,d.jsxs)(n.Fragment,{children:[a&&xv(p,{setActivePath:m},"m")(r,"preview"),(0,d.jsx)(jn.b,{text:I,view:"flat-secondary",title:Lv("action_copySchemaPath")}),(0,d.jsx)(Bu,{onCollapse:C,onExpand:w,isCollapsed:v.collapsed,initialDirection:"bottom"})]})},A=()=>{const{Status:t,Reason:a}=null!==E&&void 0!==E?E:{};if(e){let t=e.replace("EPathType","");return jv(r,e)&&(t="domain"),(0,d.jsx)("div",{className:zv("entity-type"),children:t})}let n;return t&&a&&(n=`${t}: ${a}`),(0,d.jsx)("div",{className:zv("entity-type",{error:!0}),children:(0,d.jsx)(Ga.B,{content:n,offset:{left:0}})})};return(0,d.jsx)(Rv,{children:(0,d.jsxs)("div",{className:zv(),children:[(0,d.jsx)("div",{className:zv({hidden:l}),children:(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:me.ED,onSplitStartDragAdditional:P,triggerCollapse:v.triggerCollapse,triggerExpand:v.triggerExpand,minSize:[200,52],collapsedSizes:[100,0],children:[(0,d.jsx)(Fv,{tenantName:a,path:r}),(0,d.jsxs)("div",{className:zv("info"),children:[(0,d.jsxs)("div",{className:zv("sticky-top"),children:[(0,d.jsxs)("div",{className:zv("info-header"),children:[(0,d.jsxs)("div",{className:zv("info-title"),children:[A(),(0,d.jsx)("div",{className:zv("path-name"),children:I})]}),(0,d.jsx)("div",{className:zv("info-controls"),children:D()})]}),N()]}),(0,d.jsx)("div",{className:zv("overview-wrapper"),children:j()})]})]})}),(0,d.jsxs)(St.s,{className:zv("actions"),gap:.5,children:[!l&&(0,d.jsx)($v,{}),(0,d.jsx)(Bu,{onCollapse:s,onExpand:o,isCollapsed:l,initialDirection:"left"})]})]})})}const Wv=(0,c.cn)("tenant-page"),Vv=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(me.jX))});function Jv(e){var t;const[l]=(0,he.Nt)(),[c,u]=n.useReducer(qu(me.jX),void 0,Vv),[{database:p,name:m,schema:v},g]=(0,i.useQueryParams)({database:i.StringParam,name:i.StringParam,schema:i.StringParam});n.useEffect((()=>{m&&!p&&g({database:m,name:void 0},"replaceIn")}),[p,m,g]);const x=null!==p&&void 0!==p?p:m;if(!x)throw new Error("Tenant name is not defined");const b=n.useRef();n.useEffect((()=>{if(b.current!==x){(async()=>{const{registerYQLCompletionItemProvider:e}=await a.e(5210).then(a.bind(a,35210));e(x)})().catch(console.error),b.current=x}}),[x]);const f=(0,he.YQ)();n.useEffect((()=>{f((0,y.g)("tenant",{tenantName:x}))}),[x,f]);const S=null!==v&&void 0!==v?v:x,{currentData:E,error:T,isLoading:N}=le.useGetOverviewQuery({path:S,database:x},{pollingInterval:l}),{PathType:j,PathSubType:C}=(null===E||void 0===E||null===(t=E.PathDescription)||void 0===t?void 0:t.Self)||{},w=(0,s.P)(T),[P,I]=n.useState(!0);P&&!N&&I(!1);const D=S||Hr("page.title");return(0,d.jsxs)("div",{className:Wv(),children:[(0,d.jsx)(r.mg,{defaultTitle:`${D} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${D} \u2014 YDB Monitoring`}),(0,d.jsx)(o.r,{loading:P,children:(0,d.jsx)(s.A,{error:w?T:void 0,children:(0,d.jsxs)(h,{defaultSizePaneKey:me.jQ,defaultSizes:[25,75],triggerCollapse:c.triggerCollapse,triggerExpand:c.triggerExpand,minSize:[36,200],onSplitStartDragAdditional:()=>{u(zu.clear)},children:[(0,d.jsx)(Hv,{type:j,subType:C,tenantName:x,path:S,onCollapseSummary:()=>{u(zu.triggerCollapse)},onExpandSummary:()=>{u(zu.triggerExpand)},isCollapsed:c.collapsed}),(0,d.jsx)("div",{className:Wv("main"),children:(0,d.jsx)(tv,{type:j,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps,tenantName:x,path:S})})]})})})]})}},66574:()=>{},2748:()=>{},52246:()=>{}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4662.1c10232d.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/4662.1c10232d.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/4662.1c10232d.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/4662.1c10232d.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/4678.4e2f4af4.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/4678.4e2f4af4.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/4678.4e2f4af4.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/4678.4e2f4af4.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/4818.6beda30c.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/4818.6beda30c.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/4818.6beda30c.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/4818.6beda30c.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/4870.22c3bb79.chunk.js b/ydb/core/viewer/monitoring/static/js/4870.1916a88d.chunk.js index 36718056bfa..f57deacb236 100644 --- a/ydb/core/viewer/monitoring/static/js/4870.22c3bb79.chunk.js +++ b/ydb/core/viewer/monitoring/static/js/4870.1916a88d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 4870.22c3bb79.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4870],{84870:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>m,language:()=>b});var r,o,l=t(32858),a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,n,t,r)=>{if(n&&"object"===typeof n||"function"===typeof n)for(let o of c(n))u.call(e,o)||o===t||a(e,o,{get:()=>n[o],enumerable:!(r=i(n,o))||r.enumerable});return e},s={};d(s,r=l,"default"),o&&d(o,r,"default");var m={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:s.languages.IndentAction.Indent}}]},b={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}}}}]);
\ No newline at end of file +/*! For license information please see 4870.1916a88d.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4870],{84870:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>m,language:()=>b});var r,o,l=t(80781),a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,n,t,r)=>{if(n&&"object"===typeof n||"function"===typeof n)for(let o of c(n))u.call(e,o)||o===t||a(e,o,{get:()=>n[o],enumerable:!(r=i(n,o))||r.enumerable});return e},s={};d(s,r=l,"default"),o&&d(o,r,"default");var m={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:s.languages.IndentAction.Indent}}]},b={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4870.1916a88d.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/4870.1916a88d.chunk.js.LICENSE.txt new file mode 100644 index 00000000000..34dc0256d74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/4870.1916a88d.chunk.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/4870.22c3bb79.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/4870.22c3bb79.chunk.js.LICENSE.txt deleted file mode 100644 index a62733317c0..00000000000 --- a/ydb/core/viewer/monitoring/static/js/4870.22c3bb79.chunk.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/4872.2eea7e0a.chunk.js b/ydb/core/viewer/monitoring/static/js/4872.2eea7e0a.chunk.js new file mode 100644 index 00000000000..b5a32b52b87 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/4872.2eea7e0a.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 4872.2eea7e0a.chunk.js.LICENSE.txt */ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4872],{16929:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},45720:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75",clipRule:"evenodd"}))},79879:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.003 4.702 4.22-2.025a1.8 1.8 0 0 1 1.554 0l4.22 2.025a.89.89 0 0 1 .503.8V6a8.55 8.55 0 0 1-3.941 7.201l-.986.631a1.06 1.06 0 0 1-1.146 0l-.986-.63A8.55 8.55 0 0 1 2.5 6v-.498c0-.341.196-.652.503-.8m3.57-3.377L2.354 3.35A2.39 2.39 0 0 0 1 5.502V6a10.05 10.05 0 0 0 4.632 8.465l.986.63a2.56 2.56 0 0 0 2.764 0l.986-.63A10.05 10.05 0 0 0 15 6v-.498c0-.918-.526-1.755-1.354-2.152l-4.22-2.025a3.3 3.3 0 0 0-2.852 0M9.5 7a1.5 1.5 0 0 1-.75 1.3v1.95a.75.75 0 0 1-1.5 0V8.3A1.5 1.5 0 1 1 9.5 7",clipRule:"evenodd"}))},71153:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.835 2.244c.963-1.665 3.367-1.665 4.33 0l4.916 8.505c.964 1.666-.24 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.165-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},89169:(n,t,r)=>{"use strict";r.d(t,{E:()=>i});var e=r(59284);const u=(0,r(69220).om)("skeleton");function i({className:n,style:t,qa:r}){return e.createElement("div",{className:u(null,n),style:t,"data-qa":r})}},13847:function(n,t,r){var e;n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=16,c=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,g=4294967295,y=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",c],["partialRight",l],["rearg",h]],d="[object Arguments]",w="[object Array]",b="[object Boolean]",m="[object Date]",x="[object Error]",A="[object Function]",j="[object GeneratorFunction]",k="[object Map]",E="[object Number]",R="[object Object]",O="[object Promise]",I="[object RegExp]",z="[object Set]",S="[object String]",C="[object Symbol]",L="[object WeakMap]",W="[object ArrayBuffer]",B="[object DataView]",T="[object Float32Array]",U="[object Float64Array]",M="[object Int8Array]",$="[object Int16Array]",D="[object Int32Array]",N="[object Uint8Array]",F="[object Uint8ClampedArray]",q="[object Uint16Array]",P="[object Uint32Array]",V=/\b__p \+= '';/g,Z=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,J=RegExp(G.source),Y=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),fn=/^\s+/,an=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,yn=/^[-+]0x[0-9a-f]+$/i,dn=/^0b[01]+$/i,wn=/^\[object .+?Constructor\]$/,bn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,An=/($^)/,jn=/['\n\r\u2028\u2029\\]/g,kn="\\ud800-\\udfff",En="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Rn="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",In="A-Z\\xc0-\\xd6\\xd8-\\xde",zn="\\ufe0e\\ufe0f",Sn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cn="['\u2019]",Ln="["+kn+"]",Wn="["+Sn+"]",Bn="["+En+"]",Tn="\\d+",Un="["+Rn+"]",Mn="["+On+"]",$n="[^"+kn+Sn+Tn+Rn+On+In+"]",Dn="\\ud83c[\\udffb-\\udfff]",Nn="[^"+kn+"]",Fn="(?:\\ud83c[\\udde6-\\uddff]){2}",qn="[\\ud800-\\udbff][\\udc00-\\udfff]",Pn="["+In+"]",Vn="\\u200d",Zn="(?:"+Mn+"|"+$n+")",Kn="(?:"+Pn+"|"+$n+")",Gn="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Hn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Jn="(?:"+Bn+"|"+Dn+")"+"?",Yn="["+zn+"]?",Qn=Yn+Jn+("(?:"+Vn+"(?:"+[Nn,Fn,qn].join("|")+")"+Yn+Jn+")*"),Xn="(?:"+[Un,Fn,qn].join("|")+")"+Qn,nt="(?:"+[Nn+Bn+"?",Bn,Fn,qn,Ln].join("|")+")",tt=RegExp(Cn,"g"),rt=RegExp(Bn,"g"),et=RegExp(Dn+"(?="+Dn+")|"+nt+Qn,"g"),ut=RegExp([Pn+"?"+Mn+"+"+Gn+"(?="+[Wn,Pn,"$"].join("|")+")",Kn+"+"+Hn+"(?="+[Wn,Pn+Zn,"$"].join("|")+")",Pn+"?"+Zn+"+"+Gn,Pn+"+"+Hn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tn,Xn].join("|"),"g"),it=RegExp("["+Vn+kn+En+zn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[T]=ct[U]=ct[M]=ct[$]=ct[D]=ct[N]=ct[F]=ct[q]=ct[P]=!0,ct[d]=ct[w]=ct[W]=ct[b]=ct[B]=ct[m]=ct[x]=ct[A]=ct[k]=ct[E]=ct[R]=ct[I]=ct[z]=ct[S]=ct[L]=!1;var lt={};lt[d]=lt[w]=lt[W]=lt[B]=lt[b]=lt[m]=lt[T]=lt[U]=lt[M]=lt[$]=lt[D]=lt[k]=lt[E]=lt[R]=lt[I]=lt[z]=lt[S]=lt[C]=lt[N]=lt[F]=lt[q]=lt[P]=!0,lt[x]=lt[A]=lt[L]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_t="object"==typeof self&&self&&self.Object===Object&&self,gt=vt||_t||Function("return this")(),yt=t&&!t.nodeType&&t,dt=yt&&n&&!n.nodeType&&n,wt=dt&&dt.exports===yt,bt=wt&&vt.process,mt=function(){try{var n=dt&&dt.require&&dt.require("util").types;return n||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),xt=mt&&mt.isArrayBuffer,At=mt&&mt.isDate,jt=mt&&mt.isMap,kt=mt&&mt.isRegExp,Et=mt&&mt.isSet,Rt=mt&&mt.isTypedArray;function Ot(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function It(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function zt(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&!1!==t(n[r],r,n););return n}function St(n,t){for(var r=null==n?0:n.length;r--&&!1!==t(n[r],r,n););return n}function Ct(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return!1;return!0}function Lt(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function Wt(n,t){return!!(null==n?0:n.length)&&Pt(n,t,0)>-1}function Bt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return!0;return!1}function Tt(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function Ut(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function Mt(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n);return r}function $t(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function Dt(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return!0;return!1}var Nt=Gt("length");function Ft(n,t,r){var e;return r(n,(function(n,r,u){if(t(n,r,u))return e=r,!1})),e}function qt(n,t,r,e){for(var u=n.length,i=r+(e?1:-1);e?i--:++i<u;)if(t(n[i],i,n))return i;return-1}function Pt(n,t,r){return t===t?function(n,t,r){var e=r-1,u=n.length;for(;++e<u;)if(n[e]===t)return e;return-1}(n,t,r):qt(n,Zt,r)}function Vt(n,t,r,e){for(var u=r-1,i=n.length;++u<i;)if(e(n[u],t))return u;return-1}function Zt(n){return n!==n}function Kt(n,t){var r=null==n?0:n.length;return r?Yt(n,t)/r:_}function Gt(n){return function(t){return null==t?u:t[n]}}function Ht(n){return function(t){return null==n?u:n[t]}}function Jt(n,t,r,e,u){return u(n,(function(n,u,i){r=e?(e=!1,n):t(r,n,u,i)})),r}function Yt(n,t){for(var r,e=-1,i=n.length;++e<i;){var o=t(n[e]);o!==u&&(r=r===u?o:r+o)}return r}function Qt(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function Xt(n){return n?n.slice(0,gr(n)+1).replace(fn,""):n}function nr(n){return function(t){return n(t)}}function tr(n,t){return Tt(t,(function(t){return n[t]}))}function rr(n,t){return n.has(t)}function er(n,t){for(var r=-1,e=n.length;++r<e&&Pt(t,n[r],0)>-1;);return r}function ur(n,t){for(var r=n.length;r--&&Pt(t,n[r],0)>-1;);return r}var ir=Ht({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),or=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function fr(n){return"\\"+st[n]}function ar(n){return it.test(n)}function cr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r];o!==t&&o!==f||(n[r]=f,i[u++]=r)}return i}function hr(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=n})),r}function pr(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=[n,n]})),r}function vr(n){return ar(n)?function(n){var t=et.lastIndex=0;for(;et.test(n);)++t;return t}(n):Nt(n)}function _r(n){return ar(n)?function(n){return n.match(et)||[]}(n):function(n){return n.split("")}(n)}function gr(n){for(var t=n.length;t--&&an.test(n.charAt(t)););return t}var yr=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"});var dr=function n(t){var r=(t=null==t?gt:dr.defaults(gt.Object(),t,dr.pick(gt,ft))).Array,e=t.Date,an=t.Error,kn=t.Function,En=t.Math,Rn=t.Object,On=t.RegExp,In=t.String,zn=t.TypeError,Sn=r.prototype,Cn=kn.prototype,Ln=Rn.prototype,Wn=t["__core-js_shared__"],Bn=Cn.toString,Tn=Ln.hasOwnProperty,Un=0,Mn=function(){var n=/[^.]+$/.exec(Wn&&Wn.keys&&Wn.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),$n=Ln.toString,Dn=Bn.call(Rn),Nn=gt._,Fn=On("^"+Bn.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=wt?t.Buffer:u,Pn=t.Symbol,Vn=t.Uint8Array,Zn=qn?qn.allocUnsafe:u,Kn=lr(Rn.getPrototypeOf,Rn),Gn=Rn.create,Hn=Ln.propertyIsEnumerable,Jn=Sn.splice,Yn=Pn?Pn.isConcatSpreadable:u,Qn=Pn?Pn.iterator:u,Xn=Pn?Pn.toStringTag:u,nt=function(){try{var n=si(Rn,"defineProperty");return n({},"",{}),n}catch(t){}}(),et=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=e&&e.now!==gt.Date.now&&e.now,st=t.setTimeout!==gt.setTimeout&&t.setTimeout,vt=En.ceil,_t=En.floor,yt=Rn.getOwnPropertySymbols,dt=qn?qn.isBuffer:u,bt=t.isFinite,mt=Sn.join,Nt=lr(Rn.keys,Rn),Ht=En.max,wr=En.min,br=e.now,mr=t.parseInt,xr=En.random,Ar=Sn.reverse,jr=si(t,"DataView"),kr=si(t,"Map"),Er=si(t,"Promise"),Rr=si(t,"Set"),Or=si(t,"WeakMap"),Ir=si(Rn,"create"),zr=Or&&new Or,Sr={},Cr=Ui(jr),Lr=Ui(kr),Wr=Ui(Er),Br=Ui(Rr),Tr=Ui(Or),Ur=Pn?Pn.prototype:u,Mr=Ur?Ur.valueOf:u,$r=Ur?Ur.toString:u;function Dr(n){if(tf(n)&&!Po(n)&&!(n instanceof Pr)){if(n instanceof qr)return n;if(Tn.call(n,"__wrapped__"))return Mi(n)}return new qr(n)}var Nr=function(){function n(){}return function(t){if(!nf(t))return{};if(Gn)return Gn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Fr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Pr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Vr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Zr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Kr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Gr(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new Kr;++t<r;)this.add(n[t])}function Hr(n){var t=this.__data__=new Zr(n);this.size=t.size}function Jr(n,t){var r=Po(n),e=!r&&qo(n),u=!r&&!e&&Go(n),i=!r&&!e&&!u&&lf(n),o=r||e||u||i,f=o?Qt(n.length,In):[],a=f.length;for(var c in n)!t&&!Tn.call(n,c)||o&&("length"==c||u&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||di(c,a))||f.push(c);return f}function Yr(n){var t=n.length;return t?n[Ge(0,t-1)]:u}function Qr(n,t){return Wi(Iu(n),fe(t,0,n.length))}function Xr(n){return Wi(Iu(n))}function ne(n,t,r){(r!==u&&!Do(n[t],r)||r===u&&!(t in n))&&ie(n,t,r)}function te(n,t,r){var e=n[t];Tn.call(n,t)&&Do(e,r)&&(r!==u||t in n)||ie(n,t,r)}function re(n,t){for(var r=n.length;r--;)if(Do(n[r][0],t))return r;return-1}function ee(n,t,r,e){return he(n,(function(n,u,i){t(e,n,r(n),i)})),e}function ue(n,t){return n&&zu(t,Cf(t),n)}function ie(n,t,r){"__proto__"==t&&nt?nt(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}function oe(n,t){for(var e=-1,i=t.length,o=r(i),f=null==n;++e<i;)o[e]=f?u:Rf(n,t[e]);return o}function fe(n,t,r){return n===n&&(r!==u&&(n=n<=r?n:r),t!==u&&(n=n>=t?n:t)),n}function ae(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==u)return f;if(!nf(n))return n;var s=Po(n);if(s){if(f=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!a)return Iu(n,f)}else{var h=vi(n),p=h==A||h==j;if(Go(n))return Au(n,a);if(h==R||h==d||p&&!i){if(f=c||p?{}:gi(n),!a)return c?function(n,t){return zu(n,pi(n),t)}(n,function(n,t){return n&&zu(t,Lf(t),n)}(f,n)):function(n,t){return zu(n,hi(n),t)}(n,ue(f,n))}else{if(!lt[h])return i?n:{};f=function(n,t,r){var e=n.constructor;switch(t){case W:return ju(n);case b:case m:return new e(+n);case B:return function(n,t){var r=t?ju(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case T:case U:case M:case $:case D:case N:case F:case q:case P:return ku(n,r);case k:return new e;case E:case S:return new e(n);case I:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case C:return u=n,Mr?Rn(Mr.call(u)):{}}var u}(n,h,a)}}o||(o=new Hr);var v=o.get(n);if(v)return v;o.set(n,f),ff(n)?n.forEach((function(e){f.add(ae(e,t,r,e,n,o))})):rf(n)&&n.forEach((function(e,u){f.set(u,ae(e,t,r,u,n,o))}));var _=s?u:(l?c?ui:ei:c?Lf:Cf)(n);return zt(_||n,(function(e,u){_&&(e=n[u=e]),te(f,u,ae(e,t,r,u,n,o))})),f}function ce(n,t,r){var e=r.length;if(null==n)return!e;for(n=Rn(n);e--;){var i=r[e],o=t[i],f=n[i];if(f===u&&!(i in n)||!o(f))return!1}return!0}function le(n,t,r){if("function"!=typeof n)throw new zn(i);return zi((function(){n.apply(u,r)}),t)}function se(n,t,r,e){var u=-1,i=Wt,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=Tt(t,nr(r))),e?(i=Bt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Gr(t));n:for(;++u<f;){var l=n[u],s=null==r?l:r(l);if(l=e||0!==l?l:0,o&&s===s){for(var h=c;h--;)if(t[h]===s)continue n;a.push(l)}else i(t,s,e)||a.push(l)}return a}Dr.templateSettings={escape:Q,evaluate:X,interpolate:nn,variable:"",imports:{_:Dr}},Dr.prototype=Fr.prototype,Dr.prototype.constructor=Dr,qr.prototype=Nr(Fr.prototype),qr.prototype.constructor=qr,Pr.prototype=Nr(Fr.prototype),Pr.prototype.constructor=Pr,Vr.prototype.clear=function(){this.__data__=Ir?Ir(null):{},this.size=0},Vr.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},Vr.prototype.get=function(n){var t=this.__data__;if(Ir){var r=t[n];return r===o?u:r}return Tn.call(t,n)?t[n]:u},Vr.prototype.has=function(n){var t=this.__data__;return Ir?t[n]!==u:Tn.call(t,n)},Vr.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=Ir&&t===u?o:t,this},Zr.prototype.clear=function(){this.__data__=[],this.size=0},Zr.prototype.delete=function(n){var t=this.__data__,r=re(t,n);return!(r<0)&&(r==t.length-1?t.pop():Jn.call(t,r,1),--this.size,!0)},Zr.prototype.get=function(n){var t=this.__data__,r=re(t,n);return r<0?u:t[r][1]},Zr.prototype.has=function(n){return re(this.__data__,n)>-1},Zr.prototype.set=function(n,t){var r=this.__data__,e=re(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Kr.prototype.clear=function(){this.size=0,this.__data__={hash:new Vr,map:new(kr||Zr),string:new Vr}},Kr.prototype.delete=function(n){var t=ci(this,n).delete(n);return this.size-=t?1:0,t},Kr.prototype.get=function(n){return ci(this,n).get(n)},Kr.prototype.has=function(n){return ci(this,n).has(n)},Kr.prototype.set=function(n,t){var r=ci(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Gr.prototype.add=Gr.prototype.push=function(n){return this.__data__.set(n,o),this},Gr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.clear=function(){this.__data__=new Zr,this.size=0},Hr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Hr.prototype.get=function(n){return this.__data__.get(n)},Hr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Zr){var e=r.__data__;if(!kr||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Kr(e)}return r.set(n,t),this.size=r.size,this};var he=Lu(be),pe=Lu(me,!0);function ve(n,t){var r=!0;return he(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function _e(n,t,r){for(var e=-1,i=n.length;++e<i;){var o=n[e],f=t(o);if(null!=f&&(a===u?f===f&&!cf(f):r(f,a)))var a=f,c=o}return c}function ge(n,t){var r=[];return he(n,(function(n,e,u){t(n,e,u)&&r.push(n)})),r}function ye(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=yi),u||(u=[]);++i<o;){var f=n[i];t>0&&r(f)?t>1?ye(f,t-1,r,e,u):Ut(u,f):e||(u[u.length]=f)}return u}var de=Wu(),we=Wu(!0);function be(n,t){return n&&de(n,t,Cf)}function me(n,t){return n&&we(n,t,Cf)}function xe(n,t){return Lt(t,(function(t){return Yo(n[t])}))}function Ae(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&r<e;)n=n[Ti(t[r++])];return r&&r==e?n:u}function je(n,t,r){var e=t(n);return Po(n)?e:Ut(e,r(n))}function ke(n){return null==n?n===u?"[object Undefined]":"[object Null]":Xn&&Xn in Rn(n)?function(n){var t=Tn.call(n,Xn),r=n[Xn];try{n[Xn]=u;var e=!0}catch(o){}var i=$n.call(n);e&&(t?n[Xn]=r:delete n[Xn]);return i}(n):function(n){return $n.call(n)}(n)}function Ee(n,t){return n>t}function Re(n,t){return null!=n&&Tn.call(n,t)}function Oe(n,t){return null!=n&&t in Rn(n)}function Ie(n,t,e){for(var i=e?Bt:Wt,o=n[0].length,f=n.length,a=f,c=r(f),l=1/0,s=[];a--;){var h=n[a];a&&t&&(h=Tt(h,nr(t))),l=wr(h.length,l),c[a]=!e&&(t||o>=120&&h.length>=120)?new Gr(a&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p<o&&s.length<l;){var _=h[p],g=t?t(_):_;if(_=e||0!==_?_:0,!(v?rr(v,g):i(s,g,e))){for(a=f;--a;){var y=c[a];if(!(y?rr(y,g):i(n[a],g,e)))continue n}v&&v.push(g),s.push(_)}}return s}function ze(n,t,r){var e=null==(n=Ri(n,t=wu(t,n)))?n:n[Ti(Hi(t))];return null==e?u:Ot(e,n,r)}function Se(n){return tf(n)&&ke(n)==d}function Ce(n,t,r,e,i){return n===t||(null==n||null==t||!tf(n)&&!tf(t)?n!==n&&t!==t:function(n,t,r,e,i,o){var f=Po(n),a=Po(t),c=f?w:vi(n),l=a?w:vi(t),s=(c=c==d?R:c)==R,h=(l=l==d?R:l)==R,p=c==l;if(p&&Go(n)){if(!Go(t))return!1;f=!0,s=!1}if(p&&!s)return o||(o=new Hr),f||lf(n)?ti(n,t,r,e,i,o):function(n,t,r,e,u,i,o){switch(r){case B:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case W:return!(n.byteLength!=t.byteLength||!i(new Vn(n),new Vn(t)));case b:case m:case E:return Do(+n,+t);case x:return n.name==t.name&&n.message==t.message;case I:case S:return n==t+"";case k:var f=cr;case z:var a=1&e;if(f||(f=hr),n.size!=t.size&&!a)return!1;var c=o.get(n);if(c)return c==t;e|=2,o.set(n,t);var l=ti(f(n),f(t),e,u,i,o);return o.delete(n),l;case C:if(Mr)return Mr.call(n)==Mr.call(t)}return!1}(n,t,c,r,e,i,o);if(!(1&r)){var v=s&&Tn.call(n,"__wrapped__"),_=h&&Tn.call(t,"__wrapped__");if(v||_){var g=v?n.value():n,y=_?t.value():t;return o||(o=new Hr),i(g,y,r,e,o)}}if(!p)return!1;return o||(o=new Hr),function(n,t,r,e,i,o){var f=1&r,a=ei(n),c=a.length,l=ei(t),s=l.length;if(c!=s&&!f)return!1;var h=c;for(;h--;){var p=a[h];if(!(f?p in t:Tn.call(t,p)))return!1}var v=o.get(n),_=o.get(t);if(v&&_)return v==t&&_==n;var g=!0;o.set(n,t),o.set(t,n);var y=f;for(;++h<c;){var d=n[p=a[h]],w=t[p];if(e)var b=f?e(w,d,p,t,n,o):e(d,w,p,n,t,o);if(!(b===u?d===w||i(d,w,r,e,o):b)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var m=n.constructor,x=t.constructor;m==x||!("constructor"in n)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x||(g=!1)}return o.delete(n),o.delete(t),g}(n,t,r,e,i,o)}(n,t,r,e,Ce,i))}function Le(n,t,r,e){var i=r.length,o=i,f=!e;if(null==n)return!o;for(n=Rn(n);i--;){var a=r[i];if(f&&a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++i<o;){var c=(a=r[i])[0],l=n[c],s=a[1];if(f&&a[2]){if(l===u&&!(c in n))return!1}else{var h=new Hr;if(e)var p=e(l,s,c,n,t,h);if(!(p===u?Ce(s,l,3,e,h):p))return!1}}return!0}function We(n){return!(!nf(n)||(t=n,Mn&&Mn in t))&&(Yo(n)?Fn:wn).test(Ui(n));var t}function Be(n){return"function"==typeof n?n:null==n?ua:"object"==typeof n?Po(n)?Ne(n[0],n[1]):De(n):pa(n)}function Te(n){if(!Ai(n))return Nt(n);var t=[];for(var r in Rn(n))Tn.call(n,r)&&"constructor"!=r&&t.push(r);return t}function Ue(n){if(!nf(n))return function(n){var t=[];if(null!=n)for(var r in Rn(n))t.push(r);return t}(n);var t=Ai(n),r=[];for(var e in n)("constructor"!=e||!t&&Tn.call(n,e))&&r.push(e);return r}function Me(n,t){return n<t}function $e(n,t){var e=-1,u=Zo(n)?r(n.length):[];return he(n,(function(n,r,i){u[++e]=t(n,r,i)})),u}function De(n){var t=li(n);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(r){return r===n||Le(r,n,t)}}function Ne(n,t){return bi(n)&&ji(t)?ki(Ti(n),t):function(r){var e=Rf(r,n);return e===u&&e===t?Of(r,n):Ce(t,e,3)}}function Fe(n,t,r,e,i){n!==t&&de(t,(function(o,f){if(i||(i=new Hr),nf(o))!function(n,t,r,e,i,o,f){var a=Oi(n,r),c=Oi(t,r),l=f.get(c);if(l)return void ne(n,r,l);var s=o?o(a,c,r+"",n,t,f):u,h=s===u;if(h){var p=Po(c),v=!p&&Go(c),_=!p&&!v&&lf(c);s=c,p||v||_?Po(a)?s=a:Ko(a)?s=Iu(a):v?(h=!1,s=Au(c,!0)):_?(h=!1,s=ku(c,!0)):s=[]:uf(c)||qo(c)?(s=a,qo(a)?s=df(a):nf(a)&&!Yo(a)||(s=gi(c))):h=!1}h&&(f.set(c,s),i(s,c,e,o,f),f.delete(c));ne(n,r,s)}(n,t,f,r,Fe,e,i);else{var a=e?e(Oi(n,f),o,f+"",n,t,i):u;a===u&&(a=o),ne(n,f,a)}}),Lf)}function qe(n,t){var r=n.length;if(r)return di(t+=t<0?r:0,r)?n[t]:u}function Pe(n,t,r){t=t.length?Tt(t,(function(n){return Po(n)?function(t){return Ae(t,1===n.length?n[0]:n)}:n})):[ua];var e=-1;t=Tt(t,nr(ai()));var u=$e(n,(function(n,r,u){var i=Tt(t,(function(t){return t(n)}));return{criteria:i,index:++e,value:n}}));return function(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].value;return n}(u,(function(n,t){return function(n,t,r){var e=-1,u=n.criteria,i=t.criteria,o=u.length,f=r.length;for(;++e<o;){var a=Eu(u[e],i[e]);if(a)return e>=f?a:a*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ve(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=Ae(n,o);r(f,o)&&Xe(i,wu(o,n),f)}return i}function Ze(n,t,r,e){var u=e?Vt:Pt,i=-1,o=t.length,f=n;for(n===t&&(t=Iu(t)),r&&(f=Tt(n,nr(r)));++i<o;)for(var a=0,c=t[i],l=r?r(c):c;(a=u(f,l,a,e))>-1;)f!==n&&Jn.call(f,a,1),Jn.call(n,a,1);return n}function Ke(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;di(u)?Jn.call(n,u,1):su(n,u)}}return n}function Ge(n,t){return n+_t(xr()*(t-n+1))}function He(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=_t(t/2))&&(n+=n)}while(t);return r}function Je(n,t){return Si(Ei(n,t,ua),n+"")}function Ye(n){return Yr(Nf(n))}function Qe(n,t){var r=Nf(n);return Wi(r,fe(t,0,r.length))}function Xe(n,t,r,e){if(!nf(n))return n;for(var i=-1,o=(t=wu(t,n)).length,f=o-1,a=n;null!=a&&++i<o;){var c=Ti(t[i]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return n;if(i!=f){var s=a[c];(l=e?e(s,c,a):u)===u&&(l=nf(s)?s:di(t[i+1])?[]:{})}te(a,c,l),a=a[c]}return n}var nu=zr?function(n,t){return zr.set(n,t),n}:ua,tu=nt?function(n,t){return nt(n,"toString",{configurable:!0,enumerable:!1,value:ta(t),writable:!0})}:ua;function ru(n){return Wi(Nf(n))}function eu(n,t,e){var u=-1,i=n.length;t<0&&(t=-t>i?0:i+t),(e=e>i?i:e)<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var o=r(i);++u<i;)o[u]=n[u+t];return o}function uu(n,t){var r;return he(n,(function(n,e,u){return!(r=t(n,e,u))})),!!r}function iu(n,t,r){var e=0,u=null==n?e:n.length;if("number"==typeof t&&t===t&&u<=2147483647){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!cf(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return ou(n,t,ua,r)}function ou(n,t,r,e){var i=0,o=null==n?0:n.length;if(0===o)return 0;for(var f=(t=r(t))!==t,a=null===t,c=cf(t),l=t===u;i<o;){var s=_t((i+o)/2),h=r(n[s]),p=h!==u,v=null===h,_=h===h,g=cf(h);if(f)var y=e||_;else y=l?_&&(e||p):a?_&&p&&(e||!v):c?_&&p&&!v&&(e||!g):!v&&!g&&(e?h<=t:h<t);y?i=s+1:o=s}return wr(o,4294967294)}function fu(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r],f=t?t(o):o;if(!r||!Do(f,a)){var a=f;i[u++]=0===o?0:o}}return i}function au(n){return"number"==typeof n?n:cf(n)?_:+n}function cu(n){if("string"==typeof n)return n;if(Po(n))return Tt(n,cu)+"";if(cf(n))return $r?$r.call(n):"";var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function lu(n,t,r){var e=-1,u=Wt,i=n.length,o=!0,f=[],a=f;if(r)o=!1,u=Bt;else if(i>=200){var c=t?null:Hu(n);if(c)return hr(c);o=!1,u=rr,a=new Gr}else a=t?[]:f;n:for(;++e<i;){var l=n[e],s=t?t(l):l;if(l=r||0!==l?l:0,o&&s===s){for(var h=a.length;h--;)if(a[h]===s)continue n;t&&a.push(s),f.push(l)}else u(a,s,r)||(a!==f&&a.push(s),f.push(l))}return f}function su(n,t){return null==(n=Ri(n,t=wu(t,n)))||delete n[Ti(Hi(t))]}function hu(n,t,r,e){return Xe(n,t,r(Ae(n,t)),e)}function pu(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?eu(n,e?0:i,e?i+1:u):eu(n,e?i+1:0,e?u:i)}function vu(n,t){var r=n;return r instanceof Pr&&(r=r.value()),Mt(t,(function(n,t){return t.func.apply(t.thisArg,Ut([n],t.args))}),r)}function _u(n,t,e){var u=n.length;if(u<2)return u?lu(n[0]):[];for(var i=-1,o=r(u);++i<u;)for(var f=n[i],a=-1;++a<u;)a!=i&&(o[i]=se(o[i]||f,n[a],t,e));return lu(ye(o,1),t,e)}function gu(n,t,r){for(var e=-1,i=n.length,o=t.length,f={};++e<i;){var a=e<o?t[e]:u;r(f,n[e],a)}return f}function yu(n){return Ko(n)?n:[]}function du(n){return"function"==typeof n?n:ua}function wu(n,t){return Po(n)?n:bi(n,t)?[n]:Bi(wf(n))}var bu=Je;function mu(n,t,r){var e=n.length;return r=r===u?e:r,!t&&r>=e?n:eu(n,t,r)}var xu=et||function(n){return gt.clearTimeout(n)};function Au(n,t){if(t)return n.slice();var r=n.length,e=Zn?Zn(r):new n.constructor(r);return n.copy(e),e}function ju(n){var t=new n.constructor(n.byteLength);return new Vn(t).set(new Vn(n)),t}function ku(n,t){var r=t?ju(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Eu(n,t){if(n!==t){var r=n!==u,e=null===n,i=n===n,o=cf(n),f=t!==u,a=null===t,c=t===t,l=cf(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n<t||l&&r&&i&&!e&&!o||a&&r&&i||!f&&i||!c)return-1}return 0}function Ru(n,t,e,u){for(var i=-1,o=n.length,f=e.length,a=-1,c=t.length,l=Ht(o-f,0),s=r(c+l),h=!u;++a<c;)s[a]=t[a];for(;++i<f;)(h||i<o)&&(s[e[i]]=n[i]);for(;l--;)s[a++]=n[i++];return s}function Ou(n,t,e,u){for(var i=-1,o=n.length,f=-1,a=e.length,c=-1,l=t.length,s=Ht(o-a,0),h=r(s+l),p=!u;++i<s;)h[i]=n[i];for(var v=i;++c<l;)h[v+c]=t[c];for(;++f<a;)(p||i<o)&&(h[v+e[f]]=n[i++]);return h}function Iu(n,t){var e=-1,u=n.length;for(t||(t=r(u));++e<u;)t[e]=n[e];return t}function zu(n,t,r,e){var i=!r;r||(r={});for(var o=-1,f=t.length;++o<f;){var a=t[o],c=e?e(r[a],n[a],a,r,n):u;c===u&&(c=n[a]),i?ie(r,a,c):te(r,a,c)}return r}function Su(n,t){return function(r,e){var u=Po(r)?It:ee,i=t?t():{};return u(r,n,ai(e,2),i)}}function Cu(n){return Je((function(t,r){var e=-1,i=r.length,o=i>1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&wi(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=Rn(t);++e<i;){var a=r[e];a&&n(t,a,e,o)}return t}))}function Lu(n,t){return function(r,e){if(null==r)return r;if(!Zo(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=Rn(r);(t?i--:++i<u)&&!1!==e(o[i],i,o););return r}}function Wu(n){return function(t,r,e){for(var u=-1,i=Rn(t),o=e(t),f=o.length;f--;){var a=o[n?f:++u];if(!1===r(i[a],a,i))break}return t}}function Bu(n){return function(t){var r=ar(t=wf(t))?_r(t):u,e=r?r[0]:t.charAt(0),i=r?mu(r,1).join(""):t.slice(1);return e[n]()+i}}function Tu(n){return function(t){return Mt(Qf(Pf(t).replace(tt,"")),n,"")}}function Uu(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Nr(n.prototype),e=n.apply(r,t);return nf(e)?e:r}}function Mu(n){return function(t,r,e){var i=Rn(t);if(!Zo(t)){var o=ai(r,3);t=Cf(t),r=function(n){return o(i[n],n,i)}}var f=n(t,r,e);return f>-1?i[o?t[f]:f]:u}}function $u(n){return ri((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new zn(i);if(o&&!a&&"wrapper"==oi(f))var a=new qr([],!0)}for(e=a?e:r;++e<r;){var c=oi(f=t[e]),l="wrapper"==c?ii(f):u;a=l&&mi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[oi(l[0])].apply(a,l[3]):1==f.length&&mi(f)?a[c]():a.thru(f)}return function(){var n=arguments,e=n[0];if(a&&1==n.length&&Po(e))return a.plant(e).value();for(var u=0,i=r?t[u].apply(this,n):e;++u<r;)i=t[u].call(this,i);return i}}))}function Du(n,t,e,i,o,f,a,c,l,h){var p=t&s,v=1&t,_=2&t,g=24&t,y=512&t,d=_?u:Uu(n);return function s(){for(var w=arguments.length,b=r(w),m=w;m--;)b[m]=arguments[m];if(g)var x=fi(s),A=function(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}(b,x);if(i&&(b=Ru(b,i,o,g)),f&&(b=Ou(b,f,a,g)),w-=A,g&&w<h){var j=sr(b,x);return Ku(n,t,Du,s.placeholder,e,b,j,c,l,h-w)}var k=v?e:this,E=_?k[n]:n;return w=b.length,c?b=function(n,t){var r=n.length,e=wr(t.length,r),i=Iu(n);for(;e--;){var o=t[e];n[e]=di(o,r)?i[o]:u}return n}(b,c):y&&w>1&&b.reverse(),p&&l<w&&(b.length=l),this&&this!==gt&&this instanceof s&&(E=d||Uu(E)),E.apply(k,b)}}function Nu(n,t){return function(r,e){return function(n,t,r,e){return be(n,(function(n,u,i){t(e,r(n),u,i)})),e}(r,n,t(e),{})}}function Fu(n,t){return function(r,e){var i;if(r===u&&e===u)return t;if(r!==u&&(i=r),e!==u){if(i===u)return e;"string"==typeof r||"string"==typeof e?(r=cu(r),e=cu(e)):(r=au(r),e=au(e)),i=n(r,e)}return i}}function qu(n){return ri((function(t){return t=Tt(t,nr(ai())),Je((function(r){var e=this;return n(t,(function(n){return Ot(n,e,r)}))}))}))}function Pu(n,t){var r=(t=t===u?" ":cu(t)).length;if(r<2)return r?He(t,n):t;var e=He(t,vt(n/vr(t)));return ar(t)?mu(_r(e),0,n).join(""):e.slice(0,n)}function Vu(n){return function(t,e,i){return i&&"number"!=typeof i&&wi(t,e,i)&&(e=i=u),t=vf(t),e===u?(e=t,t=0):e=vf(e),function(n,t,e,u){for(var i=-1,o=Ht(vt((t-n)/(e||1)),0),f=r(o);o--;)f[u?o:++i]=n,n+=e;return f}(t,e,i=i===u?t<e?1:-1:vf(i),n)}}function Zu(n){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=yf(t),r=yf(r)),n(t,r)}}function Ku(n,t,r,e,i,o,f,a,s,h){var p=8&t;t|=p?c:l,4&(t&=~(p?l:c))||(t&=-4);var v=[n,t,i,p?o:u,p?f:u,p?u:o,p?u:f,a,s,h],_=r.apply(u,v);return mi(n)&&Ii(_,v),_.placeholder=e,Ci(_,n,t)}function Gu(n){var t=En[n];return function(n,r){if(n=yf(n),(r=null==r?0:wr(_f(r),292))&&bt(n)){var e=(wf(n)+"e").split("e");return+((e=(wf(t(e[0]+"e"+(+e[1]+r)))+"e").split("e"))[0]+"e"+(+e[1]-r))}return t(n)}}var Hu=Rr&&1/hr(new Rr([,-0]))[1]==p?function(n){return new Rr(n)}:ca;function Ju(n){return function(t){var r=vi(t);return r==k?cr(t):r==z?pr(t):function(n,t){return Tt(t,(function(t){return[t,n[t]]}))}(t,n(t))}}function Yu(n,t,e,o,p,v,_,g){var y=2&t;if(!y&&"function"!=typeof n)throw new zn(i);var d=o?o.length:0;if(d||(t&=-97,o=p=u),_=_===u?_:Ht(_f(_),0),g=g===u?g:_f(g),d-=p?p.length:0,t&l){var w=o,b=p;o=p=u}var m=y?u:ii(n),x=[n,t,e,o,p,w,b,v,_,g];if(m&&function(n,t){var r=n[1],e=t[1],u=r|e,i=u<131,o=e==s&&8==r||e==s&&r==h&&n[7].length<=t[8]||384==e&&t[7].length<=t[8]&&8==r;if(!i&&!o)return n;1&e&&(n[2]=t[2],u|=1&r?0:4);var a=t[3];if(a){var c=n[3];n[3]=c?Ru(c,a,t[4]):a,n[4]=c?sr(n[3],f):t[4]}(a=t[5])&&(c=n[5],n[5]=c?Ou(c,a,t[6]):a,n[6]=c?sr(n[5],f):t[6]);(a=t[7])&&(n[7]=a);e&s&&(n[8]=null==n[8]?t[8]:wr(n[8],t[8]));null==n[9]&&(n[9]=t[9]);n[0]=t[0],n[1]=u}(x,m),n=x[0],t=x[1],e=x[2],o=x[3],p=x[4],!(g=x[9]=x[9]===u?y?0:n.length:Ht(x[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)A=8==t||t==a?function(n,t,e){var i=Uu(n);return function o(){for(var f=arguments.length,a=r(f),c=f,l=fi(o);c--;)a[c]=arguments[c];var s=f<3&&a[0]!==l&&a[f-1]!==l?[]:sr(a,l);return(f-=s.length)<e?Ku(n,t,Du,o.placeholder,u,a,s,u,u,e-f):Ot(this&&this!==gt&&this instanceof o?i:n,this,a)}}(n,t,g):t!=c&&33!=t||p.length?Du.apply(u,x):function(n,t,e,u){var i=1&t,o=Uu(n);return function t(){for(var f=-1,a=arguments.length,c=-1,l=u.length,s=r(l+a),h=this&&this!==gt&&this instanceof t?o:n;++c<l;)s[c]=u[c];for(;a--;)s[c++]=arguments[++f];return Ot(h,i?e:this,s)}}(n,t,e,o);else var A=function(n,t,r){var e=1&t,u=Uu(n);return function t(){return(this&&this!==gt&&this instanceof t?u:n).apply(e?r:this,arguments)}}(n,t,e);return Ci((m?nu:Ii)(A,x),n,t)}function Qu(n,t,r,e){return n===u||Do(n,Ln[r])&&!Tn.call(e,r)?t:n}function Xu(n,t,r,e,i,o){return nf(n)&&nf(t)&&(o.set(t,n),Fe(n,t,u,Xu,o),o.delete(t)),n}function ni(n){return uf(n)?u:n}function ti(n,t,r,e,i,o){var f=1&r,a=n.length,c=t.length;if(a!=c&&!(f&&c>a))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Gr:u;for(o.set(n,t),o.set(t,n);++h<a;){var _=n[h],g=t[h];if(e)var y=f?e(g,_,h,t,n,o):e(_,g,h,n,t,o);if(y!==u){if(y)continue;p=!1;break}if(v){if(!Dt(t,(function(n,t){if(!rr(v,t)&&(_===n||i(_,n,r,e,o)))return v.push(t)}))){p=!1;break}}else if(_!==g&&!i(_,g,r,e,o)){p=!1;break}}return o.delete(n),o.delete(t),p}function ri(n){return Si(Ei(n,u,Pi),n+"")}function ei(n){return je(n,Cf,hi)}function ui(n){return je(n,Lf,pi)}var ii=zr?function(n){return zr.get(n)}:ca;function oi(n){for(var t=n.name+"",r=Sr[t],e=Tn.call(Sr,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function fi(n){return(Tn.call(Dr,"placeholder")?Dr:n).placeholder}function ai(){var n=Dr.iteratee||ia;return n=n===ia?Be:n,arguments.length?n(arguments[0],arguments[1]):n}function ci(n,t){var r=n.__data__;return function(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}(t)?r["string"==typeof t?"string":"hash"]:r.map}function li(n){for(var t=Cf(n),r=t.length;r--;){var e=t[r],u=n[e];t[r]=[e,u,ji(u)]}return t}function si(n,t){var r=function(n,t){return null==n?u:n[t]}(n,t);return We(r)?r:u}var hi=yt?function(n){return null==n?[]:(n=Rn(n),Lt(yt(n),(function(t){return Hn.call(n,t)})))}:ga,pi=yt?function(n){for(var t=[];n;)Ut(t,hi(n)),n=Kn(n);return t}:ga,vi=ke;function _i(n,t,r){for(var e=-1,u=(t=wu(t,n)).length,i=!1;++e<u;){var o=Ti(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:!!(u=null==n?0:n.length)&&Xo(u)&&di(o,u)&&(Po(n)||qo(n))}function gi(n){return"function"!=typeof n.constructor||Ai(n)?{}:Nr(Kn(n))}function yi(n){return Po(n)||qo(n)||!!(Yn&&n&&n[Yn])}function di(n,t){var r=typeof n;return!!(t=null==t?v:t)&&("number"==r||"symbol"!=r&&mn.test(n))&&n>-1&&n%1==0&&n<t}function wi(n,t,r){if(!nf(r))return!1;var e=typeof t;return!!("number"==e?Zo(r)&&di(t,r.length):"string"==e&&t in r)&&Do(r[t],n)}function bi(n,t){if(Po(n))return!1;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!cf(n))||(rn.test(n)||!tn.test(n)||null!=t&&n in Rn(t))}function mi(n){var t=oi(n),r=Dr[t];if("function"!=typeof r||!(t in Pr.prototype))return!1;if(n===r)return!0;var e=ii(r);return!!e&&n===e[0]}(jr&&vi(new jr(new ArrayBuffer(1)))!=B||kr&&vi(new kr)!=k||Er&&vi(Er.resolve())!=O||Rr&&vi(new Rr)!=z||Or&&vi(new Or)!=L)&&(vi=function(n){var t=ke(n),r=t==R?n.constructor:u,e=r?Ui(r):"";if(e)switch(e){case Cr:return B;case Lr:return k;case Wr:return O;case Br:return z;case Tr:return L}return t});var xi=Wn?Yo:ya;function Ai(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||Ln)}function ji(n){return n===n&&!nf(n)}function ki(n,t){return function(r){return null!=r&&(r[n]===t&&(t!==u||n in Rn(r)))}}function Ei(n,t,e){return t=Ht(t===u?n.length-1:t,0),function(){for(var u=arguments,i=-1,o=Ht(u.length-t,0),f=r(o);++i<o;)f[i]=u[t+i];i=-1;for(var a=r(t+1);++i<t;)a[i]=u[i];return a[t]=e(f),Ot(n,this,a)}}function Ri(n,t){return t.length<2?n:Ae(n,eu(t,0,-1))}function Oi(n,t){if(("constructor"!==t||"function"!==typeof n[t])&&"__proto__"!=t)return n[t]}var Ii=Li(nu),zi=st||function(n,t){return gt.setTimeout(n,t)},Si=Li(tu);function Ci(n,t,r){var e=t+"";return Si(n,function(n,t){var r=t.length;if(!r)return n;var e=r-1;return t[e]=(r>1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return zt(y,(function(r){var e="_."+r[0];t&r[1]&&!Wt(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Li(n){var t=0,r=0;return function(){var e=br(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Wi(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r<t;){var o=Ge(r,i),f=n[o];n[o]=n[r],n[r]=f}return n.length=t,n}var Bi=function(n){var t=Wo(n,(function(n){return 500===r.size&&r.clear(),n})),r=t.cache;return t}((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(en,(function(n,r,e,u){t.push(e?u.replace(vn,"$1"):r||n)})),t}));function Ti(n){if("string"==typeof n||cf(n))return n;var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function Ui(n){if(null!=n){try{return Bn.call(n)}catch(t){}try{return n+""}catch(t){}}return""}function Mi(n){if(n instanceof Pr)return n.clone();var t=new qr(n.__wrapped__,n.__chain__);return t.__actions__=Iu(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}var $i=Je((function(n,t){return Ko(n)?se(n,ye(t,1,Ko,!0)):[]})),Di=Je((function(n,t){var r=Hi(t);return Ko(r)&&(r=u),Ko(n)?se(n,ye(t,1,Ko,!0),ai(r,2)):[]})),Ni=Je((function(n,t){var r=Hi(t);return Ko(r)&&(r=u),Ko(n)?se(n,ye(t,1,Ko,!0),u,r):[]}));function Fi(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_f(r);return u<0&&(u=Ht(e+u,0)),qt(n,ai(t,3),u)}function qi(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e-1;return r!==u&&(i=_f(r),i=r<0?Ht(e+i,0):wr(i,e-1)),qt(n,ai(t,3),i,!0)}function Pi(n){return(null==n?0:n.length)?ye(n,1):[]}function Vi(n){return n&&n.length?n[0]:u}var Zi=Je((function(n){var t=Tt(n,yu);return t.length&&t[0]===n[0]?Ie(t):[]})),Ki=Je((function(n){var t=Hi(n),r=Tt(n,yu);return t===Hi(r)?t=u:r.pop(),r.length&&r[0]===n[0]?Ie(r,ai(t,2)):[]})),Gi=Je((function(n){var t=Hi(n),r=Tt(n,yu);return(t="function"==typeof t?t:u)&&r.pop(),r.length&&r[0]===n[0]?Ie(r,u,t):[]}));function Hi(n){var t=null==n?0:n.length;return t?n[t-1]:u}var Ji=Je(Yi);function Yi(n,t){return n&&n.length&&t&&t.length?Ze(n,t):n}var Qi=ri((function(n,t){var r=null==n?0:n.length,e=oe(n,t);return Ke(n,Tt(t,(function(n){return di(n,r)?+n:n})).sort(Eu)),e}));function Xi(n){return null==n?n:Ar.call(n)}var no=Je((function(n){return lu(ye(n,1,Ko,!0))})),to=Je((function(n){var t=Hi(n);return Ko(t)&&(t=u),lu(ye(n,1,Ko,!0),ai(t,2))})),ro=Je((function(n){var t=Hi(n);return t="function"==typeof t?t:u,lu(ye(n,1,Ko,!0),u,t)}));function eo(n){if(!n||!n.length)return[];var t=0;return n=Lt(n,(function(n){if(Ko(n))return t=Ht(n.length,t),!0})),Qt(t,(function(t){return Tt(n,Gt(t))}))}function uo(n,t){if(!n||!n.length)return[];var r=eo(n);return null==t?r:Tt(r,(function(n){return Ot(t,u,n)}))}var io=Je((function(n,t){return Ko(n)?se(n,t):[]})),oo=Je((function(n){return _u(Lt(n,Ko))})),fo=Je((function(n){var t=Hi(n);return Ko(t)&&(t=u),_u(Lt(n,Ko),ai(t,2))})),ao=Je((function(n){var t=Hi(n);return t="function"==typeof t?t:u,_u(Lt(n,Ko),u,t)})),co=Je(eo);var lo=Je((function(n){var t=n.length,r=t>1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,uo(n,r)}));function so(n){var t=Dr(n);return t.__chain__=!0,t}function ho(n,t){return t(n)}var po=ri((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return oe(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Pr&&di(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:ho,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var vo=Su((function(n,t,r){Tn.call(n,r)?++n[r]:ie(n,r,1)}));var _o=Mu(Fi),go=Mu(qi);function yo(n,t){return(Po(n)?zt:he)(n,ai(t,3))}function wo(n,t){return(Po(n)?St:pe)(n,ai(t,3))}var bo=Su((function(n,t,r){Tn.call(n,r)?n[r].push(t):ie(n,r,[t])}));var mo=Je((function(n,t,e){var u=-1,i="function"==typeof t,o=Zo(n)?r(n.length):[];return he(n,(function(n){o[++u]=i?Ot(t,n,e):ze(n,t,e)})),o})),xo=Su((function(n,t,r){ie(n,r,t)}));function Ao(n,t){return(Po(n)?Tt:$e)(n,ai(t,3))}var jo=Su((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var ko=Je((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Pe(n,ye(t,1),[])})),Eo=it||function(){return gt.Date.now()};function Ro(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Yu(n,s,u,u,u,u,t)}function Oo(n,t){var r;if("function"!=typeof t)throw new zn(i);return n=_f(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var Io=Je((function(n,t,r){var e=1;if(r.length){var u=sr(r,fi(Io));e|=c}return Yu(n,e,t,r,u)})),zo=Je((function(n,t,r){var e=3;if(r.length){var u=sr(r,fi(zo));e|=c}return Yu(t,e,n,r,u)}));function So(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new zn(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=f}function y(){var n=Eo();if(g(n))return d(n);c=zi(y,function(n){var r=t-(n-l);return p?wr(r,f-(n-s)):r}(n))}function d(n){return c=u,v&&e?_(n):(e=o=u,a)}function w(){var n=Eo(),r=g(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=zi(y,t),h?_(n):a}(l);if(p)return xu(c),c=zi(y,t),_(l)}return c===u&&(c=zi(y,t)),a}return t=yf(t)||0,nf(r)&&(h=!!r.leading,f=(p="maxWait"in r)?Ht(yf(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),w.cancel=function(){c!==u&&xu(c),s=0,e=l=o=c=u},w.flush=function(){return c===u?a:d(Eo())},w}var Co=Je((function(n,t){return le(n,1,t)})),Lo=Je((function(n,t,r){return le(n,yf(t)||0,r)}));function Wo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new zn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Wo.Cache||Kr),r}function Bo(n){if("function"!=typeof n)throw new zn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Wo.Cache=Kr;var To=bu((function(n,t){var r=(t=1==t.length&&Po(t[0])?Tt(t[0],nr(ai())):Tt(ye(t,1),nr(ai()))).length;return Je((function(e){for(var u=-1,i=wr(e.length,r);++u<i;)e[u]=t[u].call(this,e[u]);return Ot(n,this,e)}))})),Uo=Je((function(n,t){var r=sr(t,fi(Uo));return Yu(n,c,u,t,r)})),Mo=Je((function(n,t){var r=sr(t,fi(Mo));return Yu(n,l,u,t,r)})),$o=ri((function(n,t){return Yu(n,h,u,u,u,t)}));function Do(n,t){return n===t||n!==n&&t!==t}var No=Zu(Ee),Fo=Zu((function(n,t){return n>=t})),qo=Se(function(){return arguments}())?Se:function(n){return tf(n)&&Tn.call(n,"callee")&&!Hn.call(n,"callee")},Po=r.isArray,Vo=xt?nr(xt):function(n){return tf(n)&&ke(n)==W};function Zo(n){return null!=n&&Xo(n.length)&&!Yo(n)}function Ko(n){return tf(n)&&Zo(n)}var Go=dt||ya,Ho=At?nr(At):function(n){return tf(n)&&ke(n)==m};function Jo(n){if(!tf(n))return!1;var t=ke(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!uf(n)}function Yo(n){if(!nf(n))return!1;var t=ke(n);return t==A||t==j||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==_f(n)}function Xo(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function nf(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function tf(n){return null!=n&&"object"==typeof n}var rf=jt?nr(jt):function(n){return tf(n)&&vi(n)==k};function ef(n){return"number"==typeof n||tf(n)&&ke(n)==E}function uf(n){if(!tf(n)||ke(n)!=R)return!1;var t=Kn(n);if(null===t)return!0;var r=Tn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Bn.call(r)==Dn}var of=kt?nr(kt):function(n){return tf(n)&&ke(n)==I};var ff=Et?nr(Et):function(n){return tf(n)&&vi(n)==z};function af(n){return"string"==typeof n||!Po(n)&&tf(n)&&ke(n)==S}function cf(n){return"symbol"==typeof n||tf(n)&&ke(n)==C}var lf=Rt?nr(Rt):function(n){return tf(n)&&Xo(n.length)&&!!ct[ke(n)]};var sf=Zu(Me),hf=Zu((function(n,t){return n<=t}));function pf(n){if(!n)return[];if(Zo(n))return af(n)?_r(n):Iu(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=vi(n);return(t==k?cr:t==z?hr:Nf)(n)}function vf(n){return n?(n=yf(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n===n?n:0:0===n?n:0}function _f(n){var t=vf(n),r=t%1;return t===t?r?t-r:t:0}function gf(n){return n?fe(_f(n),0,g):0}function yf(n){if("number"==typeof n)return n;if(cf(n))return _;if(nf(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=nf(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Xt(n);var r=dn.test(n);return r||bn.test(n)?pt(n.slice(2),r?2:8):yn.test(n)?_:+n}function df(n){return zu(n,Lf(n))}function wf(n){return null==n?"":cu(n)}var bf=Cu((function(n,t){if(Ai(t)||Zo(t))zu(t,Cf(t),n);else for(var r in t)Tn.call(t,r)&&te(n,r,t[r])})),mf=Cu((function(n,t){zu(t,Lf(t),n)})),xf=Cu((function(n,t,r,e){zu(t,Lf(t),n,e)})),Af=Cu((function(n,t,r,e){zu(t,Cf(t),n,e)})),jf=ri(oe);var kf=Je((function(n,t){n=Rn(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r<e;)for(var o=t[r],f=Lf(o),a=-1,c=f.length;++a<c;){var l=f[a],s=n[l];(s===u||Do(s,Ln[l])&&!Tn.call(n,l))&&(n[l]=o[l])}return n})),Ef=Je((function(n){return n.push(u,Xu),Ot(Bf,u,n)}));function Rf(n,t,r){var e=null==n?u:Ae(n,t);return e===u?r:e}function Of(n,t){return null!=n&&_i(n,t,Oe)}var If=Nu((function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=$n.call(t)),n[t]=r}),ta(ua)),zf=Nu((function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=$n.call(t)),Tn.call(n,t)?n[t].push(r):n[t]=[r]}),ai),Sf=Je(ze);function Cf(n){return Zo(n)?Jr(n):Te(n)}function Lf(n){return Zo(n)?Jr(n,!0):Ue(n)}var Wf=Cu((function(n,t,r){Fe(n,t,r)})),Bf=Cu((function(n,t,r,e){Fe(n,t,r,e)})),Tf=ri((function(n,t){var r={};if(null==n)return r;var e=!1;t=Tt(t,(function(t){return t=wu(t,n),e||(e=t.length>1),t})),zu(n,ui(n),r),e&&(r=ae(r,7,ni));for(var u=t.length;u--;)su(r,t[u]);return r}));var Uf=ri((function(n,t){return null==n?{}:function(n,t){return Ve(n,t,(function(t,r){return Of(n,r)}))}(n,t)}));function Mf(n,t){if(null==n)return{};var r=Tt(ui(n),(function(n){return[n]}));return t=ai(t),Ve(n,r,(function(n,r){return t(n,r[0])}))}var $f=Ju(Cf),Df=Ju(Lf);function Nf(n){return null==n?[]:tr(n,Cf(n))}var Ff=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?qf(t):t)}));function qf(n){return Yf(wf(n).toLowerCase())}function Pf(n){return(n=wf(n))&&n.replace(xn,ir).replace(rt,"")}var Vf=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Zf=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Kf=Bu("toLowerCase");var Gf=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Hf=Tu((function(n,t,r){return n+(r?" ":"")+Yf(t)}));var Jf=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Yf=Bu("toUpperCase");function Qf(n,t,r){return n=wf(n),(t=r?u:t)===u?function(n){return ot.test(n)}(n)?function(n){return n.match(ut)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Xf=Je((function(n,t){try{return Ot(n,u,t)}catch(r){return Jo(r)?r:new an(r)}})),na=ri((function(n,t){return zt(t,(function(t){t=Ti(t),ie(n,t,Io(n[t],n))})),n}));function ta(n){return function(){return n}}var ra=$u(),ea=$u(!0);function ua(n){return n}function ia(n){return Be("function"==typeof n?n:ae(n,1))}var oa=Je((function(n,t){return function(r){return ze(r,n,t)}})),fa=Je((function(n,t){return function(r){return ze(n,r,t)}}));function aa(n,t,r){var e=Cf(t),u=xe(t,e);null!=r||nf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=xe(t,Cf(t)));var i=!(nf(r)&&"chain"in r)||!!r.chain,o=Yo(n);return zt(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=Iu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Ut([this.value()],arguments))})})),n}function ca(){}var la=qu(Tt),sa=qu(Ct),ha=qu(Dt);function pa(n){return bi(n)?Gt(Ti(n)):function(n){return function(t){return Ae(t,n)}}(n)}var va=Vu(),_a=Vu(!0);function ga(){return[]}function ya(){return!1}var da=Fu((function(n,t){return n+t}),0),wa=Gu("ceil"),ba=Fu((function(n,t){return n/t}),1),ma=Gu("floor");var xa=Fu((function(n,t){return n*t}),1),Aa=Gu("round"),ja=Fu((function(n,t){return n-t}),0);return Dr.after=function(n,t){if("function"!=typeof t)throw new zn(i);return n=_f(n),function(){if(--n<1)return t.apply(this,arguments)}},Dr.ary=Ro,Dr.assign=bf,Dr.assignIn=mf,Dr.assignInWith=xf,Dr.assignWith=Af,Dr.at=jf,Dr.before=Oo,Dr.bind=Io,Dr.bindAll=na,Dr.bindKey=zo,Dr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Po(n)?n:[n]},Dr.chain=so,Dr.chunk=function(n,t,e){t=(e?wi(n,t,e):t===u)?1:Ht(_f(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,f=0,a=r(vt(i/t));o<i;)a[f++]=eu(n,o,o+=t);return a},Dr.compact=function(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){var i=n[t];i&&(u[e++]=i)}return u},Dr.concat=function(){var n=arguments.length;if(!n)return[];for(var t=r(n-1),e=arguments[0],u=n;u--;)t[u-1]=arguments[u];return Ut(Po(e)?Iu(e):[e],ye(t,1))},Dr.cond=function(n){var t=null==n?0:n.length,r=ai();return n=t?Tt(n,(function(n){if("function"!=typeof n[1])throw new zn(i);return[r(n[0]),n[1]]})):[],Je((function(r){for(var e=-1;++e<t;){var u=n[e];if(Ot(u[0],this,r))return Ot(u[1],this,r)}}))},Dr.conforms=function(n){return function(n){var t=Cf(n);return function(r){return ce(r,n,t)}}(ae(n,1))},Dr.constant=ta,Dr.countBy=vo,Dr.create=function(n,t){var r=Nr(n);return null==t?r:ue(r,t)},Dr.curry=function n(t,r,e){var i=Yu(t,8,u,u,u,u,u,r=e?u:r);return i.placeholder=n.placeholder,i},Dr.curryRight=function n(t,r,e){var i=Yu(t,a,u,u,u,u,u,r=e?u:r);return i.placeholder=n.placeholder,i},Dr.debounce=So,Dr.defaults=kf,Dr.defaultsDeep=Ef,Dr.defer=Co,Dr.delay=Lo,Dr.difference=$i,Dr.differenceBy=Di,Dr.differenceWith=Ni,Dr.drop=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,(t=r||t===u?1:_f(t))<0?0:t,e):[]},Dr.dropRight=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,0,(t=e-(t=r||t===u?1:_f(t)))<0?0:t):[]},Dr.dropRightWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!0,!0):[]},Dr.dropWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!0):[]},Dr.fill=function(n,t,r,e){var i=null==n?0:n.length;return i?(r&&"number"!=typeof r&&wi(n,t,r)&&(r=0,e=i),function(n,t,r,e){var i=n.length;for((r=_f(r))<0&&(r=-r>i?0:i+r),(e=e===u||e>i?i:_f(e))<0&&(e+=i),e=r>e?0:gf(e);r<e;)n[r++]=t;return n}(n,t,r,e)):[]},Dr.filter=function(n,t){return(Po(n)?Lt:ge)(n,ai(t,3))},Dr.flatMap=function(n,t){return ye(Ao(n,t),1)},Dr.flatMapDeep=function(n,t){return ye(Ao(n,t),p)},Dr.flatMapDepth=function(n,t,r){return r=r===u?1:_f(r),ye(Ao(n,t),r)},Dr.flatten=Pi,Dr.flattenDeep=function(n){return(null==n?0:n.length)?ye(n,p):[]},Dr.flattenDepth=function(n,t){return(null==n?0:n.length)?ye(n,t=t===u?1:_f(t)):[]},Dr.flip=function(n){return Yu(n,512)},Dr.flow=ra,Dr.flowRight=ea,Dr.fromPairs=function(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){var u=n[t];e[u[0]]=u[1]}return e},Dr.functions=function(n){return null==n?[]:xe(n,Cf(n))},Dr.functionsIn=function(n){return null==n?[]:xe(n,Lf(n))},Dr.groupBy=bo,Dr.initial=function(n){return(null==n?0:n.length)?eu(n,0,-1):[]},Dr.intersection=Zi,Dr.intersectionBy=Ki,Dr.intersectionWith=Gi,Dr.invert=If,Dr.invertBy=zf,Dr.invokeMap=mo,Dr.iteratee=ia,Dr.keyBy=xo,Dr.keys=Cf,Dr.keysIn=Lf,Dr.map=Ao,Dr.mapKeys=function(n,t){var r={};return t=ai(t,3),be(n,(function(n,e,u){ie(r,t(n,e,u),n)})),r},Dr.mapValues=function(n,t){var r={};return t=ai(t,3),be(n,(function(n,e,u){ie(r,e,t(n,e,u))})),r},Dr.matches=function(n){return De(ae(n,1))},Dr.matchesProperty=function(n,t){return Ne(n,ae(t,1))},Dr.memoize=Wo,Dr.merge=Wf,Dr.mergeWith=Bf,Dr.method=oa,Dr.methodOf=fa,Dr.mixin=aa,Dr.negate=Bo,Dr.nthArg=function(n){return n=_f(n),Je((function(t){return qe(t,n)}))},Dr.omit=Tf,Dr.omitBy=function(n,t){return Mf(n,Bo(ai(t)))},Dr.once=function(n){return Oo(2,n)},Dr.orderBy=function(n,t,r,e){return null==n?[]:(Po(t)||(t=null==t?[]:[t]),Po(r=e?u:r)||(r=null==r?[]:[r]),Pe(n,t,r))},Dr.over=la,Dr.overArgs=To,Dr.overEvery=sa,Dr.overSome=ha,Dr.partial=Uo,Dr.partialRight=Mo,Dr.partition=jo,Dr.pick=Uf,Dr.pickBy=Mf,Dr.property=pa,Dr.propertyOf=function(n){return function(t){return null==n?u:Ae(n,t)}},Dr.pull=Ji,Dr.pullAll=Yi,Dr.pullAllBy=function(n,t,r){return n&&n.length&&t&&t.length?Ze(n,t,ai(r,2)):n},Dr.pullAllWith=function(n,t,r){return n&&n.length&&t&&t.length?Ze(n,t,u,r):n},Dr.pullAt=Qi,Dr.range=va,Dr.rangeRight=_a,Dr.rearg=$o,Dr.reject=function(n,t){return(Po(n)?Lt:ge)(n,Bo(ai(t,3)))},Dr.remove=function(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],i=n.length;for(t=ai(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),u.push(e))}return Ke(n,u),r},Dr.rest=function(n,t){if("function"!=typeof n)throw new zn(i);return Je(n,t=t===u?t:_f(t))},Dr.reverse=Xi,Dr.sampleSize=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_f(t),(Po(n)?Qr:Qe)(n,t)},Dr.set=function(n,t,r){return null==n?n:Xe(n,t,r)},Dr.setWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:Xe(n,t,r,e)},Dr.shuffle=function(n){return(Po(n)?Xr:ru)(n)},Dr.slice=function(n,t,r){var e=null==n?0:n.length;return e?(r&&"number"!=typeof r&&wi(n,t,r)?(t=0,r=e):(t=null==t?0:_f(t),r=r===u?e:_f(r)),eu(n,t,r)):[]},Dr.sortBy=ko,Dr.sortedUniq=function(n){return n&&n.length?fu(n):[]},Dr.sortedUniqBy=function(n,t){return n&&n.length?fu(n,ai(t,2)):[]},Dr.split=function(n,t,r){return r&&"number"!=typeof r&&wi(n,t,r)&&(t=r=u),(r=r===u?g:r>>>0)?(n=wf(n))&&("string"==typeof t||null!=t&&!of(t))&&!(t=cu(t))&&ar(n)?mu(_r(n),0,r):n.split(t,r):[]},Dr.spread=function(n,t){if("function"!=typeof n)throw new zn(i);return t=null==t?0:Ht(_f(t),0),Je((function(r){var e=r[t],u=mu(r,0,t);return e&&Ut(u,e),Ot(n,this,u)}))},Dr.tail=function(n){var t=null==n?0:n.length;return t?eu(n,1,t):[]},Dr.take=function(n,t,r){return n&&n.length?eu(n,0,(t=r||t===u?1:_f(t))<0?0:t):[]},Dr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,(t=e-(t=r||t===u?1:_f(t)))<0?0:t,e):[]},Dr.takeRightWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!1,!0):[]},Dr.takeWhile=function(n,t){return n&&n.length?pu(n,ai(t,3)):[]},Dr.tap=function(n,t){return t(n),n},Dr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new zn(i);return nf(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),So(n,t,{leading:e,maxWait:t,trailing:u})},Dr.thru=ho,Dr.toArray=pf,Dr.toPairs=$f,Dr.toPairsIn=Df,Dr.toPath=function(n){return Po(n)?Tt(n,Ti):cf(n)?[n]:Iu(Bi(wf(n)))},Dr.toPlainObject=df,Dr.transform=function(n,t,r){var e=Po(n),u=e||Go(n)||lf(n);if(t=ai(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:nf(n)&&Yo(i)?Nr(Kn(n)):{}}return(u?zt:be)(n,(function(n,e,u){return t(r,n,e,u)})),r},Dr.unary=function(n){return Ro(n,1)},Dr.union=no,Dr.unionBy=to,Dr.unionWith=ro,Dr.uniq=function(n){return n&&n.length?lu(n):[]},Dr.uniqBy=function(n,t){return n&&n.length?lu(n,ai(t,2)):[]},Dr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?lu(n,u,t):[]},Dr.unset=function(n,t){return null==n||su(n,t)},Dr.unzip=eo,Dr.unzipWith=uo,Dr.update=function(n,t,r){return null==n?n:hu(n,t,du(r))},Dr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:hu(n,t,du(r),e)},Dr.values=Nf,Dr.valuesIn=function(n){return null==n?[]:tr(n,Lf(n))},Dr.without=io,Dr.words=Qf,Dr.wrap=function(n,t){return Uo(du(t),n)},Dr.xor=oo,Dr.xorBy=fo,Dr.xorWith=ao,Dr.zip=co,Dr.zipObject=function(n,t){return gu(n||[],t||[],te)},Dr.zipObjectDeep=function(n,t){return gu(n||[],t||[],Xe)},Dr.zipWith=lo,Dr.entries=$f,Dr.entriesIn=Df,Dr.extend=mf,Dr.extendWith=xf,aa(Dr,Dr),Dr.add=da,Dr.attempt=Xf,Dr.camelCase=Ff,Dr.capitalize=qf,Dr.ceil=wa,Dr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=yf(r))===r?r:0),t!==u&&(t=(t=yf(t))===t?t:0),fe(yf(n),t,r)},Dr.clone=function(n){return ae(n,4)},Dr.cloneDeep=function(n){return ae(n,5)},Dr.cloneDeepWith=function(n,t){return ae(n,5,t="function"==typeof t?t:u)},Dr.cloneWith=function(n,t){return ae(n,4,t="function"==typeof t?t:u)},Dr.conformsTo=function(n,t){return null==t||ce(n,t,Cf(t))},Dr.deburr=Pf,Dr.defaultTo=function(n,t){return null==n||n!==n?t:n},Dr.divide=ba,Dr.endsWith=function(n,t,r){n=wf(n),t=cu(t);var e=n.length,i=r=r===u?e:fe(_f(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Dr.eq=Do,Dr.escape=function(n){return(n=wf(n))&&Y.test(n)?n.replace(H,or):n},Dr.escapeRegExp=function(n){return(n=wf(n))&&on.test(n)?n.replace(un,"\\$&"):n},Dr.every=function(n,t,r){var e=Po(n)?Ct:ve;return r&&wi(n,t,r)&&(t=u),e(n,ai(t,3))},Dr.find=_o,Dr.findIndex=Fi,Dr.findKey=function(n,t){return Ft(n,ai(t,3),be)},Dr.findLast=go,Dr.findLastIndex=qi,Dr.findLastKey=function(n,t){return Ft(n,ai(t,3),me)},Dr.floor=ma,Dr.forEach=yo,Dr.forEachRight=wo,Dr.forIn=function(n,t){return null==n?n:de(n,ai(t,3),Lf)},Dr.forInRight=function(n,t){return null==n?n:we(n,ai(t,3),Lf)},Dr.forOwn=function(n,t){return n&&be(n,ai(t,3))},Dr.forOwnRight=function(n,t){return n&&me(n,ai(t,3))},Dr.get=Rf,Dr.gt=No,Dr.gte=Fo,Dr.has=function(n,t){return null!=n&&_i(n,t,Re)},Dr.hasIn=Of,Dr.head=Vi,Dr.identity=ua,Dr.includes=function(n,t,r,e){n=Zo(n)?n:Nf(n),r=r&&!e?_f(r):0;var u=n.length;return r<0&&(r=Ht(u+r,0)),af(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&Pt(n,t,r)>-1},Dr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_f(r);return u<0&&(u=Ht(e+u,0)),Pt(n,t,u)},Dr.inRange=function(n,t,r){return t=vf(t),r===u?(r=t,t=0):r=vf(r),function(n,t,r){return n>=wr(t,r)&&n<Ht(t,r)}(n=yf(n),t,r)},Dr.invoke=Sf,Dr.isArguments=qo,Dr.isArray=Po,Dr.isArrayBuffer=Vo,Dr.isArrayLike=Zo,Dr.isArrayLikeObject=Ko,Dr.isBoolean=function(n){return!0===n||!1===n||tf(n)&&ke(n)==b},Dr.isBuffer=Go,Dr.isDate=Ho,Dr.isElement=function(n){return tf(n)&&1===n.nodeType&&!uf(n)},Dr.isEmpty=function(n){if(null==n)return!0;if(Zo(n)&&(Po(n)||"string"==typeof n||"function"==typeof n.splice||Go(n)||lf(n)||qo(n)))return!n.length;var t=vi(n);if(t==k||t==z)return!n.size;if(Ai(n))return!Te(n).length;for(var r in n)if(Tn.call(n,r))return!1;return!0},Dr.isEqual=function(n,t){return Ce(n,t)},Dr.isEqualWith=function(n,t,r){var e=(r="function"==typeof r?r:u)?r(n,t):u;return e===u?Ce(n,t,u,r):!!e},Dr.isError=Jo,Dr.isFinite=function(n){return"number"==typeof n&&bt(n)},Dr.isFunction=Yo,Dr.isInteger=Qo,Dr.isLength=Xo,Dr.isMap=rf,Dr.isMatch=function(n,t){return n===t||Le(n,t,li(t))},Dr.isMatchWith=function(n,t,r){return r="function"==typeof r?r:u,Le(n,t,li(t),r)},Dr.isNaN=function(n){return ef(n)&&n!=+n},Dr.isNative=function(n){if(xi(n))throw new an("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return We(n)},Dr.isNil=function(n){return null==n},Dr.isNull=function(n){return null===n},Dr.isNumber=ef,Dr.isObject=nf,Dr.isObjectLike=tf,Dr.isPlainObject=uf,Dr.isRegExp=of,Dr.isSafeInteger=function(n){return Qo(n)&&n>=-9007199254740991&&n<=v},Dr.isSet=ff,Dr.isString=af,Dr.isSymbol=cf,Dr.isTypedArray=lf,Dr.isUndefined=function(n){return n===u},Dr.isWeakMap=function(n){return tf(n)&&vi(n)==L},Dr.isWeakSet=function(n){return tf(n)&&"[object WeakSet]"==ke(n)},Dr.join=function(n,t){return null==n?"":mt.call(n,t)},Dr.kebabCase=Vf,Dr.last=Hi,Dr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=_f(r))<0?Ht(e+i,0):wr(i,e-1)),t===t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):qt(n,Zt,i,!0)},Dr.lowerCase=Zf,Dr.lowerFirst=Kf,Dr.lt=sf,Dr.lte=hf,Dr.max=function(n){return n&&n.length?_e(n,ua,Ee):u},Dr.maxBy=function(n,t){return n&&n.length?_e(n,ai(t,2),Ee):u},Dr.mean=function(n){return Kt(n,ua)},Dr.meanBy=function(n,t){return Kt(n,ai(t,2))},Dr.min=function(n){return n&&n.length?_e(n,ua,Me):u},Dr.minBy=function(n,t){return n&&n.length?_e(n,ai(t,2),Me):u},Dr.stubArray=ga,Dr.stubFalse=ya,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=xa,Dr.nth=function(n,t){return n&&n.length?qe(n,_f(t)):u},Dr.noConflict=function(){return gt._===this&&(gt._=Nn),this},Dr.noop=ca,Dr.now=Eo,Dr.pad=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Pu(_t(u),r)+n+Pu(vt(u),r)},Dr.padEnd=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;return t&&e<t?n+Pu(t-e,r):n},Dr.padStart=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;return t&&e<t?Pu(t-e,r)+n:n},Dr.parseInt=function(n,t,r){return r||null==t?t=0:t&&(t=+t),mr(wf(n).replace(fn,""),t||0)},Dr.random=function(n,t,r){if(r&&"boolean"!=typeof r&&wi(n,t,r)&&(t=r=u),r===u&&("boolean"==typeof t?(r=t,t=u):"boolean"==typeof n&&(r=n,n=u)),n===u&&t===u?(n=0,t=1):(n=vf(n),t===u?(t=n,n=0):t=vf(t)),n>t){var e=n;n=t,t=e}if(r||n%1||t%1){var i=xr();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Ge(n,t)},Dr.reduce=function(n,t,r){var e=Po(n)?Mt:Jt,u=arguments.length<3;return e(n,ai(t,4),r,u,he)},Dr.reduceRight=function(n,t,r){var e=Po(n)?$t:Jt,u=arguments.length<3;return e(n,ai(t,4),r,u,pe)},Dr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_f(t),He(wf(n),t)},Dr.replace=function(){var n=arguments,t=wf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Dr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++e<i;){var o=null==n?u:n[Ti(t[e])];o===u&&(e=i,o=r),n=Yo(o)?o.call(n):o}return n},Dr.round=Aa,Dr.runInContext=n,Dr.sample=function(n){return(Po(n)?Yr:Ye)(n)},Dr.size=function(n){if(null==n)return 0;if(Zo(n))return af(n)?vr(n):n.length;var t=vi(n);return t==k||t==z?n.size:Te(n).length},Dr.snakeCase=Gf,Dr.some=function(n,t,r){var e=Po(n)?Dt:uu;return r&&wi(n,t,r)&&(t=u),e(n,ai(t,3))},Dr.sortedIndex=function(n,t){return iu(n,t)},Dr.sortedIndexBy=function(n,t,r){return ou(n,t,ai(r,2))},Dr.sortedIndexOf=function(n,t){var r=null==n?0:n.length;if(r){var e=iu(n,t);if(e<r&&Do(n[e],t))return e}return-1},Dr.sortedLastIndex=function(n,t){return iu(n,t,!0)},Dr.sortedLastIndexBy=function(n,t,r){return ou(n,t,ai(r,2),!0)},Dr.sortedLastIndexOf=function(n,t){if(null==n?0:n.length){var r=iu(n,t,!0)-1;if(Do(n[r],t))return r}return-1},Dr.startCase=Hf,Dr.startsWith=function(n,t,r){return n=wf(n),r=null==r?0:fe(_f(r),0,n.length),t=cu(t),n.slice(r,r+t.length)==t},Dr.subtract=ja,Dr.sum=function(n){return n&&n.length?Yt(n,ua):0},Dr.sumBy=function(n,t){return n&&n.length?Yt(n,ai(t,2)):0},Dr.template=function(n,t,r){var e=Dr.templateSettings;r&&wi(n,t,r)&&(t=u),n=wf(n),t=xf({},t,e,Qu);var i,o,f=xf({},t.imports,e.imports,Qu),a=Cf(f),c=tr(f,a),l=0,s=t.interpolate||An,h="__p += '",p=On((t.escape||An).source+"|"+s.source+"|"+(s===nn?_n:An).source+"|"+(t.evaluate||An).source+"|$","g"),v="//# sourceURL="+(Tn.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";n.replace(p,(function(t,r,e,u,f,a){return e||(e=u),h+=n.slice(l,a).replace(jn,fr),r&&(i=!0,h+="' +\n__e("+r+") +\n'"),f&&(o=!0,h+="';\n"+f+";\n__p += '"),e&&(h+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),l=a+t.length,t})),h+="';\n";var _=Tn.call(t,"variable")&&t.variable;if(_){if(pn.test(_))throw new an("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(V,""):h).replace(Z,"$1").replace(K,"$1;"),h="function("+(_||"obj")+") {\n"+(_?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Xf((function(){return kn(a,v+"return "+h).apply(u,c)}));if(g.source=h,Jo(g))throw g;return g},Dr.times=function(n,t){if((n=_f(n))<1||n>v)return[];var r=g,e=wr(n,g);t=ai(t),n-=g;for(var u=Qt(e,t);++r<n;)t(r);return u},Dr.toFinite=vf,Dr.toInteger=_f,Dr.toLength=gf,Dr.toLower=function(n){return wf(n).toLowerCase()},Dr.toNumber=yf,Dr.toSafeInteger=function(n){return n?fe(_f(n),-9007199254740991,v):0===n?n:0},Dr.toString=wf,Dr.toUpper=function(n){return wf(n).toUpperCase()},Dr.trim=function(n,t,r){if((n=wf(n))&&(r||t===u))return Xt(n);if(!n||!(t=cu(t)))return n;var e=_r(n),i=_r(t);return mu(e,er(e,i),ur(e,i)+1).join("")},Dr.trimEnd=function(n,t,r){if((n=wf(n))&&(r||t===u))return n.slice(0,gr(n)+1);if(!n||!(t=cu(t)))return n;var e=_r(n);return mu(e,0,ur(e,_r(t))+1).join("")},Dr.trimStart=function(n,t,r){if((n=wf(n))&&(r||t===u))return n.replace(fn,"");if(!n||!(t=cu(t)))return n;var e=_r(n);return mu(e,er(e,_r(t))).join("")},Dr.truncate=function(n,t){var r=30,e="...";if(nf(t)){var i="separator"in t?t.separator:i;r="length"in t?_f(t.length):r,e="omission"in t?cu(t.omission):e}var o=(n=wf(n)).length;if(ar(n)){var f=_r(n);o=f.length}if(r>=o)return n;var a=r-vr(e);if(a<1)return e;var c=f?mu(f,0,a).join(""):n.slice(0,a);if(i===u)return c+e;if(f&&(a+=c.length-a),of(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=On(i.source,wf(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?a:h)}}else if(n.indexOf(cu(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Dr.unescape=function(n){return(n=wf(n))&&J.test(n)?n.replace(G,yr):n},Dr.uniqueId=function(n){var t=++Un;return wf(n)+t},Dr.upperCase=Jf,Dr.upperFirst=Yf,Dr.each=yo,Dr.eachRight=wo,Dr.first=Vi,aa(Dr,function(){var n={};return be(Dr,(function(t,r){Tn.call(Dr.prototype,r)||(n[r]=t)})),n}(),{chain:!1}),Dr.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Dr[n].placeholder=Dr})),zt(["drop","take"],(function(n,t){Pr.prototype[n]=function(r){r=r===u?1:Ht(_f(r),0);var e=this.__filtered__&&!t?new Pr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,g),type:n+(e.__dir__<0?"Right":"")}),e},Pr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),zt(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Pr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ai(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),zt(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Pr.prototype[n]=function(){return this[r](1).value()[0]}})),zt(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Pr.prototype[n]=function(){return this.__filtered__?new Pr(this):this[r](1)}})),Pr.prototype.compact=function(){return this.filter(ua)},Pr.prototype.find=function(n){return this.filter(n).head()},Pr.prototype.findLast=function(n){return this.reverse().find(n)},Pr.prototype.invokeMap=Je((function(n,t){return"function"==typeof n?new Pr(this):this.map((function(r){return ze(r,n,t)}))})),Pr.prototype.reject=function(n){return this.filter(Bo(ai(n)))},Pr.prototype.slice=function(n,t){n=_f(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Pr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=_f(t))<0?r.dropRight(-t):r.take(t-n)),r)},Pr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Pr.prototype.toArray=function(){return this.take(g)},be(Pr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Dr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Dr.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof Pr,c=f[0],l=a||Po(t),s=function(n){var t=i.apply(Dr,Ut([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new Pr(this);var g=n.apply(t,f);return g.__actions__.push({func:ho,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),zt(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Sn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Dr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Po(u)?u:[],n)}return this[r]((function(r){return t.apply(Po(r)?r:[],n)}))}})),be(Pr.prototype,(function(n,t){var r=Dr[t];if(r){var e=r.name+"";Tn.call(Sr,e)||(Sr[e]=[]),Sr[e].push({name:t,func:r})}})),Sr[Du(u,2).name]=[{name:"wrapper",func:u}],Pr.prototype.clone=function(){var n=new Pr(this.__wrapped__);return n.__actions__=Iu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Iu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Iu(this.__views__),n},Pr.prototype.reverse=function(){if(this.__filtered__){var n=new Pr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Pr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Po(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e<u;){var i=r[e],o=i.size;switch(i.type){case"drop":n+=o;break;case"dropRight":t-=o;break;case"take":t=wr(t,n+o);break;case"takeRight":n=Ht(n,t-o)}}return{start:n,end:t}}(0,u,this.__views__),o=i.start,f=i.end,a=f-o,c=e?f:o-1,l=this.__iteratees__,s=l.length,h=0,p=wr(a,this.__takeCount__);if(!r||!e&&u==a&&p==a)return vu(n,this.__actions__);var v=[];n:for(;a--&&h<p;){for(var _=-1,g=n[c+=t];++_<s;){var y=l[_],d=y.iteratee,w=y.type,b=d(g);if(2==w)g=b;else if(!b){if(1==w)continue n;break n}}v[h++]=g}return v},Dr.prototype.at=po,Dr.prototype.chain=function(){return so(this)},Dr.prototype.commit=function(){return new qr(this.value(),this.__chain__)},Dr.prototype.next=function(){this.__values__===u&&(this.__values__=pf(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Dr.prototype.plant=function(n){for(var t,r=this;r instanceof Fr;){var e=Mi(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Dr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Pr){var t=n;return this.__actions__.length&&(t=new Pr(this)),(t=t.reverse()).__actions__.push({func:ho,args:[Xi],thisArg:u}),new qr(t,this.__chain__)}return this.thru(Xi)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return vu(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Qn&&(Dr.prototype[Qn]=function(){return this}),Dr}();gt._=dr,(e=function(){return dr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/4872.abdc9054.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/4872.2eea7e0a.chunk.js.LICENSE.txt index b1121f519ab..b1121f519ab 100644 --- a/ydb/core/viewer/monitoring/static/js/4872.abdc9054.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/4872.2eea7e0a.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/4872.abdc9054.chunk.js b/ydb/core/viewer/monitoring/static/js/4872.abdc9054.chunk.js deleted file mode 100644 index b9d32f159cd..00000000000 --- a/ydb/core/viewer/monitoring/static/js/4872.abdc9054.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 4872.abdc9054.chunk.js.LICENSE.txt */ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[4872],{16929:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0V5Z",clipRule:"evenodd"}))},45720:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75Z",clipRule:"evenodd"}))},79879:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.003 4.702 4.22-2.025a1.796 1.796 0 0 1 1.554 0l4.22 2.025a.886.886 0 0 1 .503.8V6a8.55 8.55 0 0 1-3.941 7.201l-.986.631a1.063 1.063 0 0 1-1.146 0l-.986-.63A8.55 8.55 0 0 1 2.5 6v-.498c0-.341.196-.652.503-.8Zm3.57-3.377L2.354 3.35A2.387 2.387 0 0 0 1 5.502V6a10.05 10.05 0 0 0 4.632 8.465l.986.63a2.563 2.563 0 0 0 2.764 0l.986-.63A10.05 10.05 0 0 0 15 6v-.498c0-.918-.526-1.755-1.354-2.152l-4.22-2.025a3.296 3.296 0 0 0-2.852 0ZM9.5 7a1.5 1.5 0 0 1-.75 1.3v1.95a.75.75 0 0 1-1.5 0V8.3A1.5 1.5 0 1 1 9.5 7Z",clipRule:"evenodd"}))},71153:(n,t,r)=>{"use strict";r.d(t,{A:()=>u});var e=r(59284);const u=n=>e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},n),e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.836 2.244c.962-1.665 3.366-1.665 4.328 0l4.917 8.505c.964 1.666-.239 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.164-3.751l4.917-8.505ZM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5Zm1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}))},89169:(n,t,r)=>{"use strict";r.d(t,{E:()=>i});var e=r(59284);const u=(0,r(69220).om)("skeleton");function i({className:n,style:t,qa:r}){return e.createElement("div",{className:u(null,n),style:t,"data-qa":r})}},13847:function(n,t,r){var e;n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=16,c=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,g=4294967295,y=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",c],["partialRight",l],["rearg",h]],d="[object Arguments]",w="[object Array]",b="[object Boolean]",m="[object Date]",x="[object Error]",A="[object Function]",j="[object GeneratorFunction]",k="[object Map]",E="[object Number]",R="[object Object]",O="[object Promise]",I="[object RegExp]",z="[object Set]",S="[object String]",C="[object Symbol]",L="[object WeakMap]",W="[object ArrayBuffer]",B="[object DataView]",T="[object Float32Array]",U="[object Float64Array]",M="[object Int8Array]",$="[object Int16Array]",D="[object Int32Array]",Z="[object Uint8Array]",N="[object Uint8ClampedArray]",F="[object Uint16Array]",q="[object Uint32Array]",P=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,J=RegExp(G.source),Y=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),fn=/^\s+/,an=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,yn=/^[-+]0x[0-9a-f]+$/i,dn=/^0b[01]+$/i,wn=/^\[object .+?Constructor\]$/,bn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,An=/($^)/,jn=/['\n\r\u2028\u2029\\]/g,kn="\\ud800-\\udfff",En="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Rn="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",In="A-Z\\xc0-\\xd6\\xd8-\\xde",zn="\\ufe0e\\ufe0f",Sn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cn="['\u2019]",Ln="["+kn+"]",Wn="["+Sn+"]",Bn="["+En+"]",Tn="\\d+",Un="["+Rn+"]",Mn="["+On+"]",$n="[^"+kn+Sn+Tn+Rn+On+In+"]",Dn="\\ud83c[\\udffb-\\udfff]",Zn="[^"+kn+"]",Nn="(?:\\ud83c[\\udde6-\\uddff]){2}",Fn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+In+"]",Pn="\\u200d",Vn="(?:"+Mn+"|"+$n+")",Kn="(?:"+qn+"|"+$n+")",Gn="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Hn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Jn="(?:"+Bn+"|"+Dn+")"+"?",Yn="["+zn+"]?",Qn=Yn+Jn+("(?:"+Pn+"(?:"+[Zn,Nn,Fn].join("|")+")"+Yn+Jn+")*"),Xn="(?:"+[Un,Nn,Fn].join("|")+")"+Qn,nt="(?:"+[Zn+Bn+"?",Bn,Nn,Fn,Ln].join("|")+")",tt=RegExp(Cn,"g"),rt=RegExp(Bn,"g"),et=RegExp(Dn+"(?="+Dn+")|"+nt+Qn,"g"),ut=RegExp([qn+"?"+Mn+"+"+Gn+"(?="+[Wn,qn,"$"].join("|")+")",Kn+"+"+Hn+"(?="+[Wn,qn+Vn,"$"].join("|")+")",qn+"?"+Vn+"+"+Gn,qn+"+"+Hn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tn,Xn].join("|"),"g"),it=RegExp("["+Pn+kn+En+zn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[T]=ct[U]=ct[M]=ct[$]=ct[D]=ct[Z]=ct[N]=ct[F]=ct[q]=!0,ct[d]=ct[w]=ct[W]=ct[b]=ct[B]=ct[m]=ct[x]=ct[A]=ct[k]=ct[E]=ct[R]=ct[I]=ct[z]=ct[S]=ct[L]=!1;var lt={};lt[d]=lt[w]=lt[W]=lt[B]=lt[b]=lt[m]=lt[T]=lt[U]=lt[M]=lt[$]=lt[D]=lt[k]=lt[E]=lt[R]=lt[I]=lt[z]=lt[S]=lt[C]=lt[Z]=lt[N]=lt[F]=lt[q]=!0,lt[x]=lt[A]=lt[L]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_t="object"==typeof self&&self&&self.Object===Object&&self,gt=vt||_t||Function("return this")(),yt=t&&!t.nodeType&&t,dt=yt&&n&&!n.nodeType&&n,wt=dt&&dt.exports===yt,bt=wt&&vt.process,mt=function(){try{var n=dt&&dt.require&&dt.require("util").types;return n||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),xt=mt&&mt.isArrayBuffer,At=mt&&mt.isDate,jt=mt&&mt.isMap,kt=mt&&mt.isRegExp,Et=mt&&mt.isSet,Rt=mt&&mt.isTypedArray;function Ot(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function It(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function zt(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&!1!==t(n[r],r,n););return n}function St(n,t){for(var r=null==n?0:n.length;r--&&!1!==t(n[r],r,n););return n}function Ct(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return!1;return!0}function Lt(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function Wt(n,t){return!!(null==n?0:n.length)&&qt(n,t,0)>-1}function Bt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return!0;return!1}function Tt(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function Ut(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function Mt(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n);return r}function $t(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function Dt(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return!0;return!1}var Zt=Gt("length");function Nt(n,t,r){var e;return r(n,(function(n,r,u){if(t(n,r,u))return e=r,!1})),e}function Ft(n,t,r,e){for(var u=n.length,i=r+(e?1:-1);e?i--:++i<u;)if(t(n[i],i,n))return i;return-1}function qt(n,t,r){return t===t?function(n,t,r){var e=r-1,u=n.length;for(;++e<u;)if(n[e]===t)return e;return-1}(n,t,r):Ft(n,Vt,r)}function Pt(n,t,r,e){for(var u=r-1,i=n.length;++u<i;)if(e(n[u],t))return u;return-1}function Vt(n){return n!==n}function Kt(n,t){var r=null==n?0:n.length;return r?Yt(n,t)/r:_}function Gt(n){return function(t){return null==t?u:t[n]}}function Ht(n){return function(t){return null==n?u:n[t]}}function Jt(n,t,r,e,u){return u(n,(function(n,u,i){r=e?(e=!1,n):t(r,n,u,i)})),r}function Yt(n,t){for(var r,e=-1,i=n.length;++e<i;){var o=t(n[e]);o!==u&&(r=r===u?o:r+o)}return r}function Qt(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function Xt(n){return n?n.slice(0,gr(n)+1).replace(fn,""):n}function nr(n){return function(t){return n(t)}}function tr(n,t){return Tt(t,(function(t){return n[t]}))}function rr(n,t){return n.has(t)}function er(n,t){for(var r=-1,e=n.length;++r<e&&qt(t,n[r],0)>-1;);return r}function ur(n,t){for(var r=n.length;r--&&qt(t,n[r],0)>-1;);return r}var ir=Ht({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),or=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function fr(n){return"\\"+st[n]}function ar(n){return it.test(n)}function cr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r];o!==t&&o!==f||(n[r]=f,i[u++]=r)}return i}function hr(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=n})),r}function pr(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=[n,n]})),r}function vr(n){return ar(n)?function(n){var t=et.lastIndex=0;for(;et.test(n);)++t;return t}(n):Zt(n)}function _r(n){return ar(n)?function(n){return n.match(et)||[]}(n):function(n){return n.split("")}(n)}function gr(n){for(var t=n.length;t--&&an.test(n.charAt(t)););return t}var yr=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"});var dr=function n(t){var r=(t=null==t?gt:dr.defaults(gt.Object(),t,dr.pick(gt,ft))).Array,e=t.Date,an=t.Error,kn=t.Function,En=t.Math,Rn=t.Object,On=t.RegExp,In=t.String,zn=t.TypeError,Sn=r.prototype,Cn=kn.prototype,Ln=Rn.prototype,Wn=t["__core-js_shared__"],Bn=Cn.toString,Tn=Ln.hasOwnProperty,Un=0,Mn=function(){var n=/[^.]+$/.exec(Wn&&Wn.keys&&Wn.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),$n=Ln.toString,Dn=Bn.call(Rn),Zn=gt._,Nn=On("^"+Bn.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fn=wt?t.Buffer:u,qn=t.Symbol,Pn=t.Uint8Array,Vn=Fn?Fn.allocUnsafe:u,Kn=lr(Rn.getPrototypeOf,Rn),Gn=Rn.create,Hn=Ln.propertyIsEnumerable,Jn=Sn.splice,Yn=qn?qn.isConcatSpreadable:u,Qn=qn?qn.iterator:u,Xn=qn?qn.toStringTag:u,nt=function(){try{var n=si(Rn,"defineProperty");return n({},"",{}),n}catch(t){}}(),et=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=e&&e.now!==gt.Date.now&&e.now,st=t.setTimeout!==gt.setTimeout&&t.setTimeout,vt=En.ceil,_t=En.floor,yt=Rn.getOwnPropertySymbols,dt=Fn?Fn.isBuffer:u,bt=t.isFinite,mt=Sn.join,Zt=lr(Rn.keys,Rn),Ht=En.max,wr=En.min,br=e.now,mr=t.parseInt,xr=En.random,Ar=Sn.reverse,jr=si(t,"DataView"),kr=si(t,"Map"),Er=si(t,"Promise"),Rr=si(t,"Set"),Or=si(t,"WeakMap"),Ir=si(Rn,"create"),zr=Or&&new Or,Sr={},Cr=Ui(jr),Lr=Ui(kr),Wr=Ui(Er),Br=Ui(Rr),Tr=Ui(Or),Ur=qn?qn.prototype:u,Mr=Ur?Ur.valueOf:u,$r=Ur?Ur.toString:u;function Dr(n){if(tf(n)&&!qo(n)&&!(n instanceof qr)){if(n instanceof Fr)return n;if(Tn.call(n,"__wrapped__"))return Mi(n)}return new Fr(n)}var Zr=function(){function n(){}return function(t){if(!nf(t))return{};if(Gn)return Gn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Nr(){}function Fr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function qr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Pr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Vr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Kr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Gr(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new Kr;++t<r;)this.add(n[t])}function Hr(n){var t=this.__data__=new Vr(n);this.size=t.size}function Jr(n,t){var r=qo(n),e=!r&&Fo(n),u=!r&&!e&&Go(n),i=!r&&!e&&!u&&lf(n),o=r||e||u||i,f=o?Qt(n.length,In):[],a=f.length;for(var c in n)!t&&!Tn.call(n,c)||o&&("length"==c||u&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||di(c,a))||f.push(c);return f}function Yr(n){var t=n.length;return t?n[Ge(0,t-1)]:u}function Qr(n,t){return Wi(Iu(n),fe(t,0,n.length))}function Xr(n){return Wi(Iu(n))}function ne(n,t,r){(r!==u&&!Do(n[t],r)||r===u&&!(t in n))&&ie(n,t,r)}function te(n,t,r){var e=n[t];Tn.call(n,t)&&Do(e,r)&&(r!==u||t in n)||ie(n,t,r)}function re(n,t){for(var r=n.length;r--;)if(Do(n[r][0],t))return r;return-1}function ee(n,t,r,e){return he(n,(function(n,u,i){t(e,n,r(n),i)})),e}function ue(n,t){return n&&zu(t,Cf(t),n)}function ie(n,t,r){"__proto__"==t&&nt?nt(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}function oe(n,t){for(var e=-1,i=t.length,o=r(i),f=null==n;++e<i;)o[e]=f?u:Rf(n,t[e]);return o}function fe(n,t,r){return n===n&&(r!==u&&(n=n<=r?n:r),t!==u&&(n=n>=t?n:t)),n}function ae(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==u)return f;if(!nf(n))return n;var s=qo(n);if(s){if(f=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!a)return Iu(n,f)}else{var h=vi(n),p=h==A||h==j;if(Go(n))return Au(n,a);if(h==R||h==d||p&&!i){if(f=c||p?{}:gi(n),!a)return c?function(n,t){return zu(n,pi(n),t)}(n,function(n,t){return n&&zu(t,Lf(t),n)}(f,n)):function(n,t){return zu(n,hi(n),t)}(n,ue(f,n))}else{if(!lt[h])return i?n:{};f=function(n,t,r){var e=n.constructor;switch(t){case W:return ju(n);case b:case m:return new e(+n);case B:return function(n,t){var r=t?ju(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case T:case U:case M:case $:case D:case Z:case N:case F:case q:return ku(n,r);case k:return new e;case E:case S:return new e(n);case I:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case C:return u=n,Mr?Rn(Mr.call(u)):{}}var u}(n,h,a)}}o||(o=new Hr);var v=o.get(n);if(v)return v;o.set(n,f),ff(n)?n.forEach((function(e){f.add(ae(e,t,r,e,n,o))})):rf(n)&&n.forEach((function(e,u){f.set(u,ae(e,t,r,u,n,o))}));var _=s?u:(l?c?ui:ei:c?Lf:Cf)(n);return zt(_||n,(function(e,u){_&&(e=n[u=e]),te(f,u,ae(e,t,r,u,n,o))})),f}function ce(n,t,r){var e=r.length;if(null==n)return!e;for(n=Rn(n);e--;){var i=r[e],o=t[i],f=n[i];if(f===u&&!(i in n)||!o(f))return!1}return!0}function le(n,t,r){if("function"!=typeof n)throw new zn(i);return zi((function(){n.apply(u,r)}),t)}function se(n,t,r,e){var u=-1,i=Wt,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=Tt(t,nr(r))),e?(i=Bt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Gr(t));n:for(;++u<f;){var l=n[u],s=null==r?l:r(l);if(l=e||0!==l?l:0,o&&s===s){for(var h=c;h--;)if(t[h]===s)continue n;a.push(l)}else i(t,s,e)||a.push(l)}return a}Dr.templateSettings={escape:Q,evaluate:X,interpolate:nn,variable:"",imports:{_:Dr}},Dr.prototype=Nr.prototype,Dr.prototype.constructor=Dr,Fr.prototype=Zr(Nr.prototype),Fr.prototype.constructor=Fr,qr.prototype=Zr(Nr.prototype),qr.prototype.constructor=qr,Pr.prototype.clear=function(){this.__data__=Ir?Ir(null):{},this.size=0},Pr.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},Pr.prototype.get=function(n){var t=this.__data__;if(Ir){var r=t[n];return r===o?u:r}return Tn.call(t,n)?t[n]:u},Pr.prototype.has=function(n){var t=this.__data__;return Ir?t[n]!==u:Tn.call(t,n)},Pr.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=Ir&&t===u?o:t,this},Vr.prototype.clear=function(){this.__data__=[],this.size=0},Vr.prototype.delete=function(n){var t=this.__data__,r=re(t,n);return!(r<0)&&(r==t.length-1?t.pop():Jn.call(t,r,1),--this.size,!0)},Vr.prototype.get=function(n){var t=this.__data__,r=re(t,n);return r<0?u:t[r][1]},Vr.prototype.has=function(n){return re(this.__data__,n)>-1},Vr.prototype.set=function(n,t){var r=this.__data__,e=re(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Kr.prototype.clear=function(){this.size=0,this.__data__={hash:new Pr,map:new(kr||Vr),string:new Pr}},Kr.prototype.delete=function(n){var t=ci(this,n).delete(n);return this.size-=t?1:0,t},Kr.prototype.get=function(n){return ci(this,n).get(n)},Kr.prototype.has=function(n){return ci(this,n).has(n)},Kr.prototype.set=function(n,t){var r=ci(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Gr.prototype.add=Gr.prototype.push=function(n){return this.__data__.set(n,o),this},Gr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Hr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Hr.prototype.get=function(n){return this.__data__.get(n)},Hr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Vr){var e=r.__data__;if(!kr||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Kr(e)}return r.set(n,t),this.size=r.size,this};var he=Lu(be),pe=Lu(me,!0);function ve(n,t){var r=!0;return he(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function _e(n,t,r){for(var e=-1,i=n.length;++e<i;){var o=n[e],f=t(o);if(null!=f&&(a===u?f===f&&!cf(f):r(f,a)))var a=f,c=o}return c}function ge(n,t){var r=[];return he(n,(function(n,e,u){t(n,e,u)&&r.push(n)})),r}function ye(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=yi),u||(u=[]);++i<o;){var f=n[i];t>0&&r(f)?t>1?ye(f,t-1,r,e,u):Ut(u,f):e||(u[u.length]=f)}return u}var de=Wu(),we=Wu(!0);function be(n,t){return n&&de(n,t,Cf)}function me(n,t){return n&&we(n,t,Cf)}function xe(n,t){return Lt(t,(function(t){return Yo(n[t])}))}function Ae(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&r<e;)n=n[Ti(t[r++])];return r&&r==e?n:u}function je(n,t,r){var e=t(n);return qo(n)?e:Ut(e,r(n))}function ke(n){return null==n?n===u?"[object Undefined]":"[object Null]":Xn&&Xn in Rn(n)?function(n){var t=Tn.call(n,Xn),r=n[Xn];try{n[Xn]=u;var e=!0}catch(o){}var i=$n.call(n);e&&(t?n[Xn]=r:delete n[Xn]);return i}(n):function(n){return $n.call(n)}(n)}function Ee(n,t){return n>t}function Re(n,t){return null!=n&&Tn.call(n,t)}function Oe(n,t){return null!=n&&t in Rn(n)}function Ie(n,t,e){for(var i=e?Bt:Wt,o=n[0].length,f=n.length,a=f,c=r(f),l=1/0,s=[];a--;){var h=n[a];a&&t&&(h=Tt(h,nr(t))),l=wr(h.length,l),c[a]=!e&&(t||o>=120&&h.length>=120)?new Gr(a&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p<o&&s.length<l;){var _=h[p],g=t?t(_):_;if(_=e||0!==_?_:0,!(v?rr(v,g):i(s,g,e))){for(a=f;--a;){var y=c[a];if(!(y?rr(y,g):i(n[a],g,e)))continue n}v&&v.push(g),s.push(_)}}return s}function ze(n,t,r){var e=null==(n=Ri(n,t=wu(t,n)))?n:n[Ti(Hi(t))];return null==e?u:Ot(e,n,r)}function Se(n){return tf(n)&&ke(n)==d}function Ce(n,t,r,e,i){return n===t||(null==n||null==t||!tf(n)&&!tf(t)?n!==n&&t!==t:function(n,t,r,e,i,o){var f=qo(n),a=qo(t),c=f?w:vi(n),l=a?w:vi(t),s=(c=c==d?R:c)==R,h=(l=l==d?R:l)==R,p=c==l;if(p&&Go(n)){if(!Go(t))return!1;f=!0,s=!1}if(p&&!s)return o||(o=new Hr),f||lf(n)?ti(n,t,r,e,i,o):function(n,t,r,e,u,i,o){switch(r){case B:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case W:return!(n.byteLength!=t.byteLength||!i(new Pn(n),new Pn(t)));case b:case m:case E:return Do(+n,+t);case x:return n.name==t.name&&n.message==t.message;case I:case S:return n==t+"";case k:var f=cr;case z:var a=1&e;if(f||(f=hr),n.size!=t.size&&!a)return!1;var c=o.get(n);if(c)return c==t;e|=2,o.set(n,t);var l=ti(f(n),f(t),e,u,i,o);return o.delete(n),l;case C:if(Mr)return Mr.call(n)==Mr.call(t)}return!1}(n,t,c,r,e,i,o);if(!(1&r)){var v=s&&Tn.call(n,"__wrapped__"),_=h&&Tn.call(t,"__wrapped__");if(v||_){var g=v?n.value():n,y=_?t.value():t;return o||(o=new Hr),i(g,y,r,e,o)}}if(!p)return!1;return o||(o=new Hr),function(n,t,r,e,i,o){var f=1&r,a=ei(n),c=a.length,l=ei(t),s=l.length;if(c!=s&&!f)return!1;var h=c;for(;h--;){var p=a[h];if(!(f?p in t:Tn.call(t,p)))return!1}var v=o.get(n),_=o.get(t);if(v&&_)return v==t&&_==n;var g=!0;o.set(n,t),o.set(t,n);var y=f;for(;++h<c;){var d=n[p=a[h]],w=t[p];if(e)var b=f?e(w,d,p,t,n,o):e(d,w,p,n,t,o);if(!(b===u?d===w||i(d,w,r,e,o):b)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var m=n.constructor,x=t.constructor;m==x||!("constructor"in n)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x||(g=!1)}return o.delete(n),o.delete(t),g}(n,t,r,e,i,o)}(n,t,r,e,Ce,i))}function Le(n,t,r,e){var i=r.length,o=i,f=!e;if(null==n)return!o;for(n=Rn(n);i--;){var a=r[i];if(f&&a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++i<o;){var c=(a=r[i])[0],l=n[c],s=a[1];if(f&&a[2]){if(l===u&&!(c in n))return!1}else{var h=new Hr;if(e)var p=e(l,s,c,n,t,h);if(!(p===u?Ce(s,l,3,e,h):p))return!1}}return!0}function We(n){return!(!nf(n)||(t=n,Mn&&Mn in t))&&(Yo(n)?Nn:wn).test(Ui(n));var t}function Be(n){return"function"==typeof n?n:null==n?ua:"object"==typeof n?qo(n)?Ze(n[0],n[1]):De(n):pa(n)}function Te(n){if(!Ai(n))return Zt(n);var t=[];for(var r in Rn(n))Tn.call(n,r)&&"constructor"!=r&&t.push(r);return t}function Ue(n){if(!nf(n))return function(n){var t=[];if(null!=n)for(var r in Rn(n))t.push(r);return t}(n);var t=Ai(n),r=[];for(var e in n)("constructor"!=e||!t&&Tn.call(n,e))&&r.push(e);return r}function Me(n,t){return n<t}function $e(n,t){var e=-1,u=Vo(n)?r(n.length):[];return he(n,(function(n,r,i){u[++e]=t(n,r,i)})),u}function De(n){var t=li(n);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(r){return r===n||Le(r,n,t)}}function Ze(n,t){return bi(n)&&ji(t)?ki(Ti(n),t):function(r){var e=Rf(r,n);return e===u&&e===t?Of(r,n):Ce(t,e,3)}}function Ne(n,t,r,e,i){n!==t&&de(t,(function(o,f){if(i||(i=new Hr),nf(o))!function(n,t,r,e,i,o,f){var a=Oi(n,r),c=Oi(t,r),l=f.get(c);if(l)return void ne(n,r,l);var s=o?o(a,c,r+"",n,t,f):u,h=s===u;if(h){var p=qo(c),v=!p&&Go(c),_=!p&&!v&&lf(c);s=c,p||v||_?qo(a)?s=a:Ko(a)?s=Iu(a):v?(h=!1,s=Au(c,!0)):_?(h=!1,s=ku(c,!0)):s=[]:uf(c)||Fo(c)?(s=a,Fo(a)?s=df(a):nf(a)&&!Yo(a)||(s=gi(c))):h=!1}h&&(f.set(c,s),i(s,c,e,o,f),f.delete(c));ne(n,r,s)}(n,t,f,r,Ne,e,i);else{var a=e?e(Oi(n,f),o,f+"",n,t,i):u;a===u&&(a=o),ne(n,f,a)}}),Lf)}function Fe(n,t){var r=n.length;if(r)return di(t+=t<0?r:0,r)?n[t]:u}function qe(n,t,r){t=t.length?Tt(t,(function(n){return qo(n)?function(t){return Ae(t,1===n.length?n[0]:n)}:n})):[ua];var e=-1;t=Tt(t,nr(ai()));var u=$e(n,(function(n,r,u){var i=Tt(t,(function(t){return t(n)}));return{criteria:i,index:++e,value:n}}));return function(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].value;return n}(u,(function(n,t){return function(n,t,r){var e=-1,u=n.criteria,i=t.criteria,o=u.length,f=r.length;for(;++e<o;){var a=Eu(u[e],i[e]);if(a)return e>=f?a:a*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Pe(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=Ae(n,o);r(f,o)&&Xe(i,wu(o,n),f)}return i}function Ve(n,t,r,e){var u=e?Pt:qt,i=-1,o=t.length,f=n;for(n===t&&(t=Iu(t)),r&&(f=Tt(n,nr(r)));++i<o;)for(var a=0,c=t[i],l=r?r(c):c;(a=u(f,l,a,e))>-1;)f!==n&&Jn.call(f,a,1),Jn.call(n,a,1);return n}function Ke(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;di(u)?Jn.call(n,u,1):su(n,u)}}return n}function Ge(n,t){return n+_t(xr()*(t-n+1))}function He(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=_t(t/2))&&(n+=n)}while(t);return r}function Je(n,t){return Si(Ei(n,t,ua),n+"")}function Ye(n){return Yr(Zf(n))}function Qe(n,t){var r=Zf(n);return Wi(r,fe(t,0,r.length))}function Xe(n,t,r,e){if(!nf(n))return n;for(var i=-1,o=(t=wu(t,n)).length,f=o-1,a=n;null!=a&&++i<o;){var c=Ti(t[i]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return n;if(i!=f){var s=a[c];(l=e?e(s,c,a):u)===u&&(l=nf(s)?s:di(t[i+1])?[]:{})}te(a,c,l),a=a[c]}return n}var nu=zr?function(n,t){return zr.set(n,t),n}:ua,tu=nt?function(n,t){return nt(n,"toString",{configurable:!0,enumerable:!1,value:ta(t),writable:!0})}:ua;function ru(n){return Wi(Zf(n))}function eu(n,t,e){var u=-1,i=n.length;t<0&&(t=-t>i?0:i+t),(e=e>i?i:e)<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var o=r(i);++u<i;)o[u]=n[u+t];return o}function uu(n,t){var r;return he(n,(function(n,e,u){return!(r=t(n,e,u))})),!!r}function iu(n,t,r){var e=0,u=null==n?e:n.length;if("number"==typeof t&&t===t&&u<=2147483647){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!cf(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return ou(n,t,ua,r)}function ou(n,t,r,e){var i=0,o=null==n?0:n.length;if(0===o)return 0;for(var f=(t=r(t))!==t,a=null===t,c=cf(t),l=t===u;i<o;){var s=_t((i+o)/2),h=r(n[s]),p=h!==u,v=null===h,_=h===h,g=cf(h);if(f)var y=e||_;else y=l?_&&(e||p):a?_&&p&&(e||!v):c?_&&p&&!v&&(e||!g):!v&&!g&&(e?h<=t:h<t);y?i=s+1:o=s}return wr(o,4294967294)}function fu(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r],f=t?t(o):o;if(!r||!Do(f,a)){var a=f;i[u++]=0===o?0:o}}return i}function au(n){return"number"==typeof n?n:cf(n)?_:+n}function cu(n){if("string"==typeof n)return n;if(qo(n))return Tt(n,cu)+"";if(cf(n))return $r?$r.call(n):"";var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function lu(n,t,r){var e=-1,u=Wt,i=n.length,o=!0,f=[],a=f;if(r)o=!1,u=Bt;else if(i>=200){var c=t?null:Hu(n);if(c)return hr(c);o=!1,u=rr,a=new Gr}else a=t?[]:f;n:for(;++e<i;){var l=n[e],s=t?t(l):l;if(l=r||0!==l?l:0,o&&s===s){for(var h=a.length;h--;)if(a[h]===s)continue n;t&&a.push(s),f.push(l)}else u(a,s,r)||(a!==f&&a.push(s),f.push(l))}return f}function su(n,t){return null==(n=Ri(n,t=wu(t,n)))||delete n[Ti(Hi(t))]}function hu(n,t,r,e){return Xe(n,t,r(Ae(n,t)),e)}function pu(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?eu(n,e?0:i,e?i+1:u):eu(n,e?i+1:0,e?u:i)}function vu(n,t){var r=n;return r instanceof qr&&(r=r.value()),Mt(t,(function(n,t){return t.func.apply(t.thisArg,Ut([n],t.args))}),r)}function _u(n,t,e){var u=n.length;if(u<2)return u?lu(n[0]):[];for(var i=-1,o=r(u);++i<u;)for(var f=n[i],a=-1;++a<u;)a!=i&&(o[i]=se(o[i]||f,n[a],t,e));return lu(ye(o,1),t,e)}function gu(n,t,r){for(var e=-1,i=n.length,o=t.length,f={};++e<i;){var a=e<o?t[e]:u;r(f,n[e],a)}return f}function yu(n){return Ko(n)?n:[]}function du(n){return"function"==typeof n?n:ua}function wu(n,t){return qo(n)?n:bi(n,t)?[n]:Bi(wf(n))}var bu=Je;function mu(n,t,r){var e=n.length;return r=r===u?e:r,!t&&r>=e?n:eu(n,t,r)}var xu=et||function(n){return gt.clearTimeout(n)};function Au(n,t){if(t)return n.slice();var r=n.length,e=Vn?Vn(r):new n.constructor(r);return n.copy(e),e}function ju(n){var t=new n.constructor(n.byteLength);return new Pn(t).set(new Pn(n)),t}function ku(n,t){var r=t?ju(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Eu(n,t){if(n!==t){var r=n!==u,e=null===n,i=n===n,o=cf(n),f=t!==u,a=null===t,c=t===t,l=cf(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n<t||l&&r&&i&&!e&&!o||a&&r&&i||!f&&i||!c)return-1}return 0}function Ru(n,t,e,u){for(var i=-1,o=n.length,f=e.length,a=-1,c=t.length,l=Ht(o-f,0),s=r(c+l),h=!u;++a<c;)s[a]=t[a];for(;++i<f;)(h||i<o)&&(s[e[i]]=n[i]);for(;l--;)s[a++]=n[i++];return s}function Ou(n,t,e,u){for(var i=-1,o=n.length,f=-1,a=e.length,c=-1,l=t.length,s=Ht(o-a,0),h=r(s+l),p=!u;++i<s;)h[i]=n[i];for(var v=i;++c<l;)h[v+c]=t[c];for(;++f<a;)(p||i<o)&&(h[v+e[f]]=n[i++]);return h}function Iu(n,t){var e=-1,u=n.length;for(t||(t=r(u));++e<u;)t[e]=n[e];return t}function zu(n,t,r,e){var i=!r;r||(r={});for(var o=-1,f=t.length;++o<f;){var a=t[o],c=e?e(r[a],n[a],a,r,n):u;c===u&&(c=n[a]),i?ie(r,a,c):te(r,a,c)}return r}function Su(n,t){return function(r,e){var u=qo(r)?It:ee,i=t?t():{};return u(r,n,ai(e,2),i)}}function Cu(n){return Je((function(t,r){var e=-1,i=r.length,o=i>1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&wi(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=Rn(t);++e<i;){var a=r[e];a&&n(t,a,e,o)}return t}))}function Lu(n,t){return function(r,e){if(null==r)return r;if(!Vo(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=Rn(r);(t?i--:++i<u)&&!1!==e(o[i],i,o););return r}}function Wu(n){return function(t,r,e){for(var u=-1,i=Rn(t),o=e(t),f=o.length;f--;){var a=o[n?f:++u];if(!1===r(i[a],a,i))break}return t}}function Bu(n){return function(t){var r=ar(t=wf(t))?_r(t):u,e=r?r[0]:t.charAt(0),i=r?mu(r,1).join(""):t.slice(1);return e[n]()+i}}function Tu(n){return function(t){return Mt(Qf(qf(t).replace(tt,"")),n,"")}}function Uu(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Zr(n.prototype),e=n.apply(r,t);return nf(e)?e:r}}function Mu(n){return function(t,r,e){var i=Rn(t);if(!Vo(t)){var o=ai(r,3);t=Cf(t),r=function(n){return o(i[n],n,i)}}var f=n(t,r,e);return f>-1?i[o?t[f]:f]:u}}function $u(n){return ri((function(t){var r=t.length,e=r,o=Fr.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new zn(i);if(o&&!a&&"wrapper"==oi(f))var a=new Fr([],!0)}for(e=a?e:r;++e<r;){var c=oi(f=t[e]),l="wrapper"==c?ii(f):u;a=l&&mi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[oi(l[0])].apply(a,l[3]):1==f.length&&mi(f)?a[c]():a.thru(f)}return function(){var n=arguments,e=n[0];if(a&&1==n.length&&qo(e))return a.plant(e).value();for(var u=0,i=r?t[u].apply(this,n):e;++u<r;)i=t[u].call(this,i);return i}}))}function Du(n,t,e,i,o,f,a,c,l,h){var p=t&s,v=1&t,_=2&t,g=24&t,y=512&t,d=_?u:Uu(n);return function s(){for(var w=arguments.length,b=r(w),m=w;m--;)b[m]=arguments[m];if(g)var x=fi(s),A=function(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}(b,x);if(i&&(b=Ru(b,i,o,g)),f&&(b=Ou(b,f,a,g)),w-=A,g&&w<h){var j=sr(b,x);return Ku(n,t,Du,s.placeholder,e,b,j,c,l,h-w)}var k=v?e:this,E=_?k[n]:n;return w=b.length,c?b=function(n,t){var r=n.length,e=wr(t.length,r),i=Iu(n);for(;e--;){var o=t[e];n[e]=di(o,r)?i[o]:u}return n}(b,c):y&&w>1&&b.reverse(),p&&l<w&&(b.length=l),this&&this!==gt&&this instanceof s&&(E=d||Uu(E)),E.apply(k,b)}}function Zu(n,t){return function(r,e){return function(n,t,r,e){return be(n,(function(n,u,i){t(e,r(n),u,i)})),e}(r,n,t(e),{})}}function Nu(n,t){return function(r,e){var i;if(r===u&&e===u)return t;if(r!==u&&(i=r),e!==u){if(i===u)return e;"string"==typeof r||"string"==typeof e?(r=cu(r),e=cu(e)):(r=au(r),e=au(e)),i=n(r,e)}return i}}function Fu(n){return ri((function(t){return t=Tt(t,nr(ai())),Je((function(r){var e=this;return n(t,(function(n){return Ot(n,e,r)}))}))}))}function qu(n,t){var r=(t=t===u?" ":cu(t)).length;if(r<2)return r?He(t,n):t;var e=He(t,vt(n/vr(t)));return ar(t)?mu(_r(e),0,n).join(""):e.slice(0,n)}function Pu(n){return function(t,e,i){return i&&"number"!=typeof i&&wi(t,e,i)&&(e=i=u),t=vf(t),e===u?(e=t,t=0):e=vf(e),function(n,t,e,u){for(var i=-1,o=Ht(vt((t-n)/(e||1)),0),f=r(o);o--;)f[u?o:++i]=n,n+=e;return f}(t,e,i=i===u?t<e?1:-1:vf(i),n)}}function Vu(n){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=yf(t),r=yf(r)),n(t,r)}}function Ku(n,t,r,e,i,o,f,a,s,h){var p=8&t;t|=p?c:l,4&(t&=~(p?l:c))||(t&=-4);var v=[n,t,i,p?o:u,p?f:u,p?u:o,p?u:f,a,s,h],_=r.apply(u,v);return mi(n)&&Ii(_,v),_.placeholder=e,Ci(_,n,t)}function Gu(n){var t=En[n];return function(n,r){if(n=yf(n),(r=null==r?0:wr(_f(r),292))&&bt(n)){var e=(wf(n)+"e").split("e");return+((e=(wf(t(e[0]+"e"+(+e[1]+r)))+"e").split("e"))[0]+"e"+(+e[1]-r))}return t(n)}}var Hu=Rr&&1/hr(new Rr([,-0]))[1]==p?function(n){return new Rr(n)}:ca;function Ju(n){return function(t){var r=vi(t);return r==k?cr(t):r==z?pr(t):function(n,t){return Tt(t,(function(t){return[t,n[t]]}))}(t,n(t))}}function Yu(n,t,e,o,p,v,_,g){var y=2&t;if(!y&&"function"!=typeof n)throw new zn(i);var d=o?o.length:0;if(d||(t&=-97,o=p=u),_=_===u?_:Ht(_f(_),0),g=g===u?g:_f(g),d-=p?p.length:0,t&l){var w=o,b=p;o=p=u}var m=y?u:ii(n),x=[n,t,e,o,p,w,b,v,_,g];if(m&&function(n,t){var r=n[1],e=t[1],u=r|e,i=u<131,o=e==s&&8==r||e==s&&r==h&&n[7].length<=t[8]||384==e&&t[7].length<=t[8]&&8==r;if(!i&&!o)return n;1&e&&(n[2]=t[2],u|=1&r?0:4);var a=t[3];if(a){var c=n[3];n[3]=c?Ru(c,a,t[4]):a,n[4]=c?sr(n[3],f):t[4]}(a=t[5])&&(c=n[5],n[5]=c?Ou(c,a,t[6]):a,n[6]=c?sr(n[5],f):t[6]);(a=t[7])&&(n[7]=a);e&s&&(n[8]=null==n[8]?t[8]:wr(n[8],t[8]));null==n[9]&&(n[9]=t[9]);n[0]=t[0],n[1]=u}(x,m),n=x[0],t=x[1],e=x[2],o=x[3],p=x[4],!(g=x[9]=x[9]===u?y?0:n.length:Ht(x[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)A=8==t||t==a?function(n,t,e){var i=Uu(n);return function o(){for(var f=arguments.length,a=r(f),c=f,l=fi(o);c--;)a[c]=arguments[c];var s=f<3&&a[0]!==l&&a[f-1]!==l?[]:sr(a,l);return(f-=s.length)<e?Ku(n,t,Du,o.placeholder,u,a,s,u,u,e-f):Ot(this&&this!==gt&&this instanceof o?i:n,this,a)}}(n,t,g):t!=c&&33!=t||p.length?Du.apply(u,x):function(n,t,e,u){var i=1&t,o=Uu(n);return function t(){for(var f=-1,a=arguments.length,c=-1,l=u.length,s=r(l+a),h=this&&this!==gt&&this instanceof t?o:n;++c<l;)s[c]=u[c];for(;a--;)s[c++]=arguments[++f];return Ot(h,i?e:this,s)}}(n,t,e,o);else var A=function(n,t,r){var e=1&t,u=Uu(n);return function t(){return(this&&this!==gt&&this instanceof t?u:n).apply(e?r:this,arguments)}}(n,t,e);return Ci((m?nu:Ii)(A,x),n,t)}function Qu(n,t,r,e){return n===u||Do(n,Ln[r])&&!Tn.call(e,r)?t:n}function Xu(n,t,r,e,i,o){return nf(n)&&nf(t)&&(o.set(t,n),Ne(n,t,u,Xu,o),o.delete(t)),n}function ni(n){return uf(n)?u:n}function ti(n,t,r,e,i,o){var f=1&r,a=n.length,c=t.length;if(a!=c&&!(f&&c>a))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Gr:u;for(o.set(n,t),o.set(t,n);++h<a;){var _=n[h],g=t[h];if(e)var y=f?e(g,_,h,t,n,o):e(_,g,h,n,t,o);if(y!==u){if(y)continue;p=!1;break}if(v){if(!Dt(t,(function(n,t){if(!rr(v,t)&&(_===n||i(_,n,r,e,o)))return v.push(t)}))){p=!1;break}}else if(_!==g&&!i(_,g,r,e,o)){p=!1;break}}return o.delete(n),o.delete(t),p}function ri(n){return Si(Ei(n,u,qi),n+"")}function ei(n){return je(n,Cf,hi)}function ui(n){return je(n,Lf,pi)}var ii=zr?function(n){return zr.get(n)}:ca;function oi(n){for(var t=n.name+"",r=Sr[t],e=Tn.call(Sr,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function fi(n){return(Tn.call(Dr,"placeholder")?Dr:n).placeholder}function ai(){var n=Dr.iteratee||ia;return n=n===ia?Be:n,arguments.length?n(arguments[0],arguments[1]):n}function ci(n,t){var r=n.__data__;return function(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}(t)?r["string"==typeof t?"string":"hash"]:r.map}function li(n){for(var t=Cf(n),r=t.length;r--;){var e=t[r],u=n[e];t[r]=[e,u,ji(u)]}return t}function si(n,t){var r=function(n,t){return null==n?u:n[t]}(n,t);return We(r)?r:u}var hi=yt?function(n){return null==n?[]:(n=Rn(n),Lt(yt(n),(function(t){return Hn.call(n,t)})))}:ga,pi=yt?function(n){for(var t=[];n;)Ut(t,hi(n)),n=Kn(n);return t}:ga,vi=ke;function _i(n,t,r){for(var e=-1,u=(t=wu(t,n)).length,i=!1;++e<u;){var o=Ti(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:!!(u=null==n?0:n.length)&&Xo(u)&&di(o,u)&&(qo(n)||Fo(n))}function gi(n){return"function"!=typeof n.constructor||Ai(n)?{}:Zr(Kn(n))}function yi(n){return qo(n)||Fo(n)||!!(Yn&&n&&n[Yn])}function di(n,t){var r=typeof n;return!!(t=null==t?v:t)&&("number"==r||"symbol"!=r&&mn.test(n))&&n>-1&&n%1==0&&n<t}function wi(n,t,r){if(!nf(r))return!1;var e=typeof t;return!!("number"==e?Vo(r)&&di(t,r.length):"string"==e&&t in r)&&Do(r[t],n)}function bi(n,t){if(qo(n))return!1;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!cf(n))||(rn.test(n)||!tn.test(n)||null!=t&&n in Rn(t))}function mi(n){var t=oi(n),r=Dr[t];if("function"!=typeof r||!(t in qr.prototype))return!1;if(n===r)return!0;var e=ii(r);return!!e&&n===e[0]}(jr&&vi(new jr(new ArrayBuffer(1)))!=B||kr&&vi(new kr)!=k||Er&&vi(Er.resolve())!=O||Rr&&vi(new Rr)!=z||Or&&vi(new Or)!=L)&&(vi=function(n){var t=ke(n),r=t==R?n.constructor:u,e=r?Ui(r):"";if(e)switch(e){case Cr:return B;case Lr:return k;case Wr:return O;case Br:return z;case Tr:return L}return t});var xi=Wn?Yo:ya;function Ai(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||Ln)}function ji(n){return n===n&&!nf(n)}function ki(n,t){return function(r){return null!=r&&(r[n]===t&&(t!==u||n in Rn(r)))}}function Ei(n,t,e){return t=Ht(t===u?n.length-1:t,0),function(){for(var u=arguments,i=-1,o=Ht(u.length-t,0),f=r(o);++i<o;)f[i]=u[t+i];i=-1;for(var a=r(t+1);++i<t;)a[i]=u[i];return a[t]=e(f),Ot(n,this,a)}}function Ri(n,t){return t.length<2?n:Ae(n,eu(t,0,-1))}function Oi(n,t){if(("constructor"!==t||"function"!==typeof n[t])&&"__proto__"!=t)return n[t]}var Ii=Li(nu),zi=st||function(n,t){return gt.setTimeout(n,t)},Si=Li(tu);function Ci(n,t,r){var e=t+"";return Si(n,function(n,t){var r=t.length;if(!r)return n;var e=r-1;return t[e]=(r>1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return zt(y,(function(r){var e="_."+r[0];t&r[1]&&!Wt(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Li(n){var t=0,r=0;return function(){var e=br(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Wi(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r<t;){var o=Ge(r,i),f=n[o];n[o]=n[r],n[r]=f}return n.length=t,n}var Bi=function(n){var t=Wo(n,(function(n){return 500===r.size&&r.clear(),n})),r=t.cache;return t}((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(en,(function(n,r,e,u){t.push(e?u.replace(vn,"$1"):r||n)})),t}));function Ti(n){if("string"==typeof n||cf(n))return n;var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function Ui(n){if(null!=n){try{return Bn.call(n)}catch(t){}try{return n+""}catch(t){}}return""}function Mi(n){if(n instanceof qr)return n.clone();var t=new Fr(n.__wrapped__,n.__chain__);return t.__actions__=Iu(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}var $i=Je((function(n,t){return Ko(n)?se(n,ye(t,1,Ko,!0)):[]})),Di=Je((function(n,t){var r=Hi(t);return Ko(r)&&(r=u),Ko(n)?se(n,ye(t,1,Ko,!0),ai(r,2)):[]})),Zi=Je((function(n,t){var r=Hi(t);return Ko(r)&&(r=u),Ko(n)?se(n,ye(t,1,Ko,!0),u,r):[]}));function Ni(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_f(r);return u<0&&(u=Ht(e+u,0)),Ft(n,ai(t,3),u)}function Fi(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e-1;return r!==u&&(i=_f(r),i=r<0?Ht(e+i,0):wr(i,e-1)),Ft(n,ai(t,3),i,!0)}function qi(n){return(null==n?0:n.length)?ye(n,1):[]}function Pi(n){return n&&n.length?n[0]:u}var Vi=Je((function(n){var t=Tt(n,yu);return t.length&&t[0]===n[0]?Ie(t):[]})),Ki=Je((function(n){var t=Hi(n),r=Tt(n,yu);return t===Hi(r)?t=u:r.pop(),r.length&&r[0]===n[0]?Ie(r,ai(t,2)):[]})),Gi=Je((function(n){var t=Hi(n),r=Tt(n,yu);return(t="function"==typeof t?t:u)&&r.pop(),r.length&&r[0]===n[0]?Ie(r,u,t):[]}));function Hi(n){var t=null==n?0:n.length;return t?n[t-1]:u}var Ji=Je(Yi);function Yi(n,t){return n&&n.length&&t&&t.length?Ve(n,t):n}var Qi=ri((function(n,t){var r=null==n?0:n.length,e=oe(n,t);return Ke(n,Tt(t,(function(n){return di(n,r)?+n:n})).sort(Eu)),e}));function Xi(n){return null==n?n:Ar.call(n)}var no=Je((function(n){return lu(ye(n,1,Ko,!0))})),to=Je((function(n){var t=Hi(n);return Ko(t)&&(t=u),lu(ye(n,1,Ko,!0),ai(t,2))})),ro=Je((function(n){var t=Hi(n);return t="function"==typeof t?t:u,lu(ye(n,1,Ko,!0),u,t)}));function eo(n){if(!n||!n.length)return[];var t=0;return n=Lt(n,(function(n){if(Ko(n))return t=Ht(n.length,t),!0})),Qt(t,(function(t){return Tt(n,Gt(t))}))}function uo(n,t){if(!n||!n.length)return[];var r=eo(n);return null==t?r:Tt(r,(function(n){return Ot(t,u,n)}))}var io=Je((function(n,t){return Ko(n)?se(n,t):[]})),oo=Je((function(n){return _u(Lt(n,Ko))})),fo=Je((function(n){var t=Hi(n);return Ko(t)&&(t=u),_u(Lt(n,Ko),ai(t,2))})),ao=Je((function(n){var t=Hi(n);return t="function"==typeof t?t:u,_u(Lt(n,Ko),u,t)})),co=Je(eo);var lo=Je((function(n){var t=n.length,r=t>1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,uo(n,r)}));function so(n){var t=Dr(n);return t.__chain__=!0,t}function ho(n,t){return t(n)}var po=ri((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return oe(t,n)};return!(t>1||this.__actions__.length)&&e instanceof qr&&di(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:ho,args:[i],thisArg:u}),new Fr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var vo=Su((function(n,t,r){Tn.call(n,r)?++n[r]:ie(n,r,1)}));var _o=Mu(Ni),go=Mu(Fi);function yo(n,t){return(qo(n)?zt:he)(n,ai(t,3))}function wo(n,t){return(qo(n)?St:pe)(n,ai(t,3))}var bo=Su((function(n,t,r){Tn.call(n,r)?n[r].push(t):ie(n,r,[t])}));var mo=Je((function(n,t,e){var u=-1,i="function"==typeof t,o=Vo(n)?r(n.length):[];return he(n,(function(n){o[++u]=i?Ot(t,n,e):ze(n,t,e)})),o})),xo=Su((function(n,t,r){ie(n,r,t)}));function Ao(n,t){return(qo(n)?Tt:$e)(n,ai(t,3))}var jo=Su((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var ko=Je((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),qe(n,ye(t,1),[])})),Eo=it||function(){return gt.Date.now()};function Ro(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Yu(n,s,u,u,u,u,t)}function Oo(n,t){var r;if("function"!=typeof t)throw new zn(i);return n=_f(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var Io=Je((function(n,t,r){var e=1;if(r.length){var u=sr(r,fi(Io));e|=c}return Yu(n,e,t,r,u)})),zo=Je((function(n,t,r){var e=3;if(r.length){var u=sr(r,fi(zo));e|=c}return Yu(t,e,n,r,u)}));function So(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new zn(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=f}function y(){var n=Eo();if(g(n))return d(n);c=zi(y,function(n){var r=t-(n-l);return p?wr(r,f-(n-s)):r}(n))}function d(n){return c=u,v&&e?_(n):(e=o=u,a)}function w(){var n=Eo(),r=g(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=zi(y,t),h?_(n):a}(l);if(p)return xu(c),c=zi(y,t),_(l)}return c===u&&(c=zi(y,t)),a}return t=yf(t)||0,nf(r)&&(h=!!r.leading,f=(p="maxWait"in r)?Ht(yf(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),w.cancel=function(){c!==u&&xu(c),s=0,e=l=o=c=u},w.flush=function(){return c===u?a:d(Eo())},w}var Co=Je((function(n,t){return le(n,1,t)})),Lo=Je((function(n,t,r){return le(n,yf(t)||0,r)}));function Wo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new zn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Wo.Cache||Kr),r}function Bo(n){if("function"!=typeof n)throw new zn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Wo.Cache=Kr;var To=bu((function(n,t){var r=(t=1==t.length&&qo(t[0])?Tt(t[0],nr(ai())):Tt(ye(t,1),nr(ai()))).length;return Je((function(e){for(var u=-1,i=wr(e.length,r);++u<i;)e[u]=t[u].call(this,e[u]);return Ot(n,this,e)}))})),Uo=Je((function(n,t){var r=sr(t,fi(Uo));return Yu(n,c,u,t,r)})),Mo=Je((function(n,t){var r=sr(t,fi(Mo));return Yu(n,l,u,t,r)})),$o=ri((function(n,t){return Yu(n,h,u,u,u,t)}));function Do(n,t){return n===t||n!==n&&t!==t}var Zo=Vu(Ee),No=Vu((function(n,t){return n>=t})),Fo=Se(function(){return arguments}())?Se:function(n){return tf(n)&&Tn.call(n,"callee")&&!Hn.call(n,"callee")},qo=r.isArray,Po=xt?nr(xt):function(n){return tf(n)&&ke(n)==W};function Vo(n){return null!=n&&Xo(n.length)&&!Yo(n)}function Ko(n){return tf(n)&&Vo(n)}var Go=dt||ya,Ho=At?nr(At):function(n){return tf(n)&&ke(n)==m};function Jo(n){if(!tf(n))return!1;var t=ke(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!uf(n)}function Yo(n){if(!nf(n))return!1;var t=ke(n);return t==A||t==j||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==_f(n)}function Xo(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function nf(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function tf(n){return null!=n&&"object"==typeof n}var rf=jt?nr(jt):function(n){return tf(n)&&vi(n)==k};function ef(n){return"number"==typeof n||tf(n)&&ke(n)==E}function uf(n){if(!tf(n)||ke(n)!=R)return!1;var t=Kn(n);if(null===t)return!0;var r=Tn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Bn.call(r)==Dn}var of=kt?nr(kt):function(n){return tf(n)&&ke(n)==I};var ff=Et?nr(Et):function(n){return tf(n)&&vi(n)==z};function af(n){return"string"==typeof n||!qo(n)&&tf(n)&&ke(n)==S}function cf(n){return"symbol"==typeof n||tf(n)&&ke(n)==C}var lf=Rt?nr(Rt):function(n){return tf(n)&&Xo(n.length)&&!!ct[ke(n)]};var sf=Vu(Me),hf=Vu((function(n,t){return n<=t}));function pf(n){if(!n)return[];if(Vo(n))return af(n)?_r(n):Iu(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=vi(n);return(t==k?cr:t==z?hr:Zf)(n)}function vf(n){return n?(n=yf(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n===n?n:0:0===n?n:0}function _f(n){var t=vf(n),r=t%1;return t===t?r?t-r:t:0}function gf(n){return n?fe(_f(n),0,g):0}function yf(n){if("number"==typeof n)return n;if(cf(n))return _;if(nf(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=nf(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Xt(n);var r=dn.test(n);return r||bn.test(n)?pt(n.slice(2),r?2:8):yn.test(n)?_:+n}function df(n){return zu(n,Lf(n))}function wf(n){return null==n?"":cu(n)}var bf=Cu((function(n,t){if(Ai(t)||Vo(t))zu(t,Cf(t),n);else for(var r in t)Tn.call(t,r)&&te(n,r,t[r])})),mf=Cu((function(n,t){zu(t,Lf(t),n)})),xf=Cu((function(n,t,r,e){zu(t,Lf(t),n,e)})),Af=Cu((function(n,t,r,e){zu(t,Cf(t),n,e)})),jf=ri(oe);var kf=Je((function(n,t){n=Rn(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r<e;)for(var o=t[r],f=Lf(o),a=-1,c=f.length;++a<c;){var l=f[a],s=n[l];(s===u||Do(s,Ln[l])&&!Tn.call(n,l))&&(n[l]=o[l])}return n})),Ef=Je((function(n){return n.push(u,Xu),Ot(Bf,u,n)}));function Rf(n,t,r){var e=null==n?u:Ae(n,t);return e===u?r:e}function Of(n,t){return null!=n&&_i(n,t,Oe)}var If=Zu((function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=$n.call(t)),n[t]=r}),ta(ua)),zf=Zu((function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=$n.call(t)),Tn.call(n,t)?n[t].push(r):n[t]=[r]}),ai),Sf=Je(ze);function Cf(n){return Vo(n)?Jr(n):Te(n)}function Lf(n){return Vo(n)?Jr(n,!0):Ue(n)}var Wf=Cu((function(n,t,r){Ne(n,t,r)})),Bf=Cu((function(n,t,r,e){Ne(n,t,r,e)})),Tf=ri((function(n,t){var r={};if(null==n)return r;var e=!1;t=Tt(t,(function(t){return t=wu(t,n),e||(e=t.length>1),t})),zu(n,ui(n),r),e&&(r=ae(r,7,ni));for(var u=t.length;u--;)su(r,t[u]);return r}));var Uf=ri((function(n,t){return null==n?{}:function(n,t){return Pe(n,t,(function(t,r){return Of(n,r)}))}(n,t)}));function Mf(n,t){if(null==n)return{};var r=Tt(ui(n),(function(n){return[n]}));return t=ai(t),Pe(n,r,(function(n,r){return t(n,r[0])}))}var $f=Ju(Cf),Df=Ju(Lf);function Zf(n){return null==n?[]:tr(n,Cf(n))}var Nf=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?Ff(t):t)}));function Ff(n){return Yf(wf(n).toLowerCase())}function qf(n){return(n=wf(n))&&n.replace(xn,ir).replace(rt,"")}var Pf=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Vf=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Kf=Bu("toLowerCase");var Gf=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Hf=Tu((function(n,t,r){return n+(r?" ":"")+Yf(t)}));var Jf=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Yf=Bu("toUpperCase");function Qf(n,t,r){return n=wf(n),(t=r?u:t)===u?function(n){return ot.test(n)}(n)?function(n){return n.match(ut)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Xf=Je((function(n,t){try{return Ot(n,u,t)}catch(r){return Jo(r)?r:new an(r)}})),na=ri((function(n,t){return zt(t,(function(t){t=Ti(t),ie(n,t,Io(n[t],n))})),n}));function ta(n){return function(){return n}}var ra=$u(),ea=$u(!0);function ua(n){return n}function ia(n){return Be("function"==typeof n?n:ae(n,1))}var oa=Je((function(n,t){return function(r){return ze(r,n,t)}})),fa=Je((function(n,t){return function(r){return ze(n,r,t)}}));function aa(n,t,r){var e=Cf(t),u=xe(t,e);null!=r||nf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=xe(t,Cf(t)));var i=!(nf(r)&&"chain"in r)||!!r.chain,o=Yo(n);return zt(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=Iu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Ut([this.value()],arguments))})})),n}function ca(){}var la=Fu(Tt),sa=Fu(Ct),ha=Fu(Dt);function pa(n){return bi(n)?Gt(Ti(n)):function(n){return function(t){return Ae(t,n)}}(n)}var va=Pu(),_a=Pu(!0);function ga(){return[]}function ya(){return!1}var da=Nu((function(n,t){return n+t}),0),wa=Gu("ceil"),ba=Nu((function(n,t){return n/t}),1),ma=Gu("floor");var xa=Nu((function(n,t){return n*t}),1),Aa=Gu("round"),ja=Nu((function(n,t){return n-t}),0);return Dr.after=function(n,t){if("function"!=typeof t)throw new zn(i);return n=_f(n),function(){if(--n<1)return t.apply(this,arguments)}},Dr.ary=Ro,Dr.assign=bf,Dr.assignIn=mf,Dr.assignInWith=xf,Dr.assignWith=Af,Dr.at=jf,Dr.before=Oo,Dr.bind=Io,Dr.bindAll=na,Dr.bindKey=zo,Dr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return qo(n)?n:[n]},Dr.chain=so,Dr.chunk=function(n,t,e){t=(e?wi(n,t,e):t===u)?1:Ht(_f(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,f=0,a=r(vt(i/t));o<i;)a[f++]=eu(n,o,o+=t);return a},Dr.compact=function(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){var i=n[t];i&&(u[e++]=i)}return u},Dr.concat=function(){var n=arguments.length;if(!n)return[];for(var t=r(n-1),e=arguments[0],u=n;u--;)t[u-1]=arguments[u];return Ut(qo(e)?Iu(e):[e],ye(t,1))},Dr.cond=function(n){var t=null==n?0:n.length,r=ai();return n=t?Tt(n,(function(n){if("function"!=typeof n[1])throw new zn(i);return[r(n[0]),n[1]]})):[],Je((function(r){for(var e=-1;++e<t;){var u=n[e];if(Ot(u[0],this,r))return Ot(u[1],this,r)}}))},Dr.conforms=function(n){return function(n){var t=Cf(n);return function(r){return ce(r,n,t)}}(ae(n,1))},Dr.constant=ta,Dr.countBy=vo,Dr.create=function(n,t){var r=Zr(n);return null==t?r:ue(r,t)},Dr.curry=function n(t,r,e){var i=Yu(t,8,u,u,u,u,u,r=e?u:r);return i.placeholder=n.placeholder,i},Dr.curryRight=function n(t,r,e){var i=Yu(t,a,u,u,u,u,u,r=e?u:r);return i.placeholder=n.placeholder,i},Dr.debounce=So,Dr.defaults=kf,Dr.defaultsDeep=Ef,Dr.defer=Co,Dr.delay=Lo,Dr.difference=$i,Dr.differenceBy=Di,Dr.differenceWith=Zi,Dr.drop=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,(t=r||t===u?1:_f(t))<0?0:t,e):[]},Dr.dropRight=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,0,(t=e-(t=r||t===u?1:_f(t)))<0?0:t):[]},Dr.dropRightWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!0,!0):[]},Dr.dropWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!0):[]},Dr.fill=function(n,t,r,e){var i=null==n?0:n.length;return i?(r&&"number"!=typeof r&&wi(n,t,r)&&(r=0,e=i),function(n,t,r,e){var i=n.length;for((r=_f(r))<0&&(r=-r>i?0:i+r),(e=e===u||e>i?i:_f(e))<0&&(e+=i),e=r>e?0:gf(e);r<e;)n[r++]=t;return n}(n,t,r,e)):[]},Dr.filter=function(n,t){return(qo(n)?Lt:ge)(n,ai(t,3))},Dr.flatMap=function(n,t){return ye(Ao(n,t),1)},Dr.flatMapDeep=function(n,t){return ye(Ao(n,t),p)},Dr.flatMapDepth=function(n,t,r){return r=r===u?1:_f(r),ye(Ao(n,t),r)},Dr.flatten=qi,Dr.flattenDeep=function(n){return(null==n?0:n.length)?ye(n,p):[]},Dr.flattenDepth=function(n,t){return(null==n?0:n.length)?ye(n,t=t===u?1:_f(t)):[]},Dr.flip=function(n){return Yu(n,512)},Dr.flow=ra,Dr.flowRight=ea,Dr.fromPairs=function(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){var u=n[t];e[u[0]]=u[1]}return e},Dr.functions=function(n){return null==n?[]:xe(n,Cf(n))},Dr.functionsIn=function(n){return null==n?[]:xe(n,Lf(n))},Dr.groupBy=bo,Dr.initial=function(n){return(null==n?0:n.length)?eu(n,0,-1):[]},Dr.intersection=Vi,Dr.intersectionBy=Ki,Dr.intersectionWith=Gi,Dr.invert=If,Dr.invertBy=zf,Dr.invokeMap=mo,Dr.iteratee=ia,Dr.keyBy=xo,Dr.keys=Cf,Dr.keysIn=Lf,Dr.map=Ao,Dr.mapKeys=function(n,t){var r={};return t=ai(t,3),be(n,(function(n,e,u){ie(r,t(n,e,u),n)})),r},Dr.mapValues=function(n,t){var r={};return t=ai(t,3),be(n,(function(n,e,u){ie(r,e,t(n,e,u))})),r},Dr.matches=function(n){return De(ae(n,1))},Dr.matchesProperty=function(n,t){return Ze(n,ae(t,1))},Dr.memoize=Wo,Dr.merge=Wf,Dr.mergeWith=Bf,Dr.method=oa,Dr.methodOf=fa,Dr.mixin=aa,Dr.negate=Bo,Dr.nthArg=function(n){return n=_f(n),Je((function(t){return Fe(t,n)}))},Dr.omit=Tf,Dr.omitBy=function(n,t){return Mf(n,Bo(ai(t)))},Dr.once=function(n){return Oo(2,n)},Dr.orderBy=function(n,t,r,e){return null==n?[]:(qo(t)||(t=null==t?[]:[t]),qo(r=e?u:r)||(r=null==r?[]:[r]),qe(n,t,r))},Dr.over=la,Dr.overArgs=To,Dr.overEvery=sa,Dr.overSome=ha,Dr.partial=Uo,Dr.partialRight=Mo,Dr.partition=jo,Dr.pick=Uf,Dr.pickBy=Mf,Dr.property=pa,Dr.propertyOf=function(n){return function(t){return null==n?u:Ae(n,t)}},Dr.pull=Ji,Dr.pullAll=Yi,Dr.pullAllBy=function(n,t,r){return n&&n.length&&t&&t.length?Ve(n,t,ai(r,2)):n},Dr.pullAllWith=function(n,t,r){return n&&n.length&&t&&t.length?Ve(n,t,u,r):n},Dr.pullAt=Qi,Dr.range=va,Dr.rangeRight=_a,Dr.rearg=$o,Dr.reject=function(n,t){return(qo(n)?Lt:ge)(n,Bo(ai(t,3)))},Dr.remove=function(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],i=n.length;for(t=ai(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),u.push(e))}return Ke(n,u),r},Dr.rest=function(n,t){if("function"!=typeof n)throw new zn(i);return Je(n,t=t===u?t:_f(t))},Dr.reverse=Xi,Dr.sampleSize=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_f(t),(qo(n)?Qr:Qe)(n,t)},Dr.set=function(n,t,r){return null==n?n:Xe(n,t,r)},Dr.setWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:Xe(n,t,r,e)},Dr.shuffle=function(n){return(qo(n)?Xr:ru)(n)},Dr.slice=function(n,t,r){var e=null==n?0:n.length;return e?(r&&"number"!=typeof r&&wi(n,t,r)?(t=0,r=e):(t=null==t?0:_f(t),r=r===u?e:_f(r)),eu(n,t,r)):[]},Dr.sortBy=ko,Dr.sortedUniq=function(n){return n&&n.length?fu(n):[]},Dr.sortedUniqBy=function(n,t){return n&&n.length?fu(n,ai(t,2)):[]},Dr.split=function(n,t,r){return r&&"number"!=typeof r&&wi(n,t,r)&&(t=r=u),(r=r===u?g:r>>>0)?(n=wf(n))&&("string"==typeof t||null!=t&&!of(t))&&!(t=cu(t))&&ar(n)?mu(_r(n),0,r):n.split(t,r):[]},Dr.spread=function(n,t){if("function"!=typeof n)throw new zn(i);return t=null==t?0:Ht(_f(t),0),Je((function(r){var e=r[t],u=mu(r,0,t);return e&&Ut(u,e),Ot(n,this,u)}))},Dr.tail=function(n){var t=null==n?0:n.length;return t?eu(n,1,t):[]},Dr.take=function(n,t,r){return n&&n.length?eu(n,0,(t=r||t===u?1:_f(t))<0?0:t):[]},Dr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?eu(n,(t=e-(t=r||t===u?1:_f(t)))<0?0:t,e):[]},Dr.takeRightWhile=function(n,t){return n&&n.length?pu(n,ai(t,3),!1,!0):[]},Dr.takeWhile=function(n,t){return n&&n.length?pu(n,ai(t,3)):[]},Dr.tap=function(n,t){return t(n),n},Dr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new zn(i);return nf(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),So(n,t,{leading:e,maxWait:t,trailing:u})},Dr.thru=ho,Dr.toArray=pf,Dr.toPairs=$f,Dr.toPairsIn=Df,Dr.toPath=function(n){return qo(n)?Tt(n,Ti):cf(n)?[n]:Iu(Bi(wf(n)))},Dr.toPlainObject=df,Dr.transform=function(n,t,r){var e=qo(n),u=e||Go(n)||lf(n);if(t=ai(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:nf(n)&&Yo(i)?Zr(Kn(n)):{}}return(u?zt:be)(n,(function(n,e,u){return t(r,n,e,u)})),r},Dr.unary=function(n){return Ro(n,1)},Dr.union=no,Dr.unionBy=to,Dr.unionWith=ro,Dr.uniq=function(n){return n&&n.length?lu(n):[]},Dr.uniqBy=function(n,t){return n&&n.length?lu(n,ai(t,2)):[]},Dr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?lu(n,u,t):[]},Dr.unset=function(n,t){return null==n||su(n,t)},Dr.unzip=eo,Dr.unzipWith=uo,Dr.update=function(n,t,r){return null==n?n:hu(n,t,du(r))},Dr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:hu(n,t,du(r),e)},Dr.values=Zf,Dr.valuesIn=function(n){return null==n?[]:tr(n,Lf(n))},Dr.without=io,Dr.words=Qf,Dr.wrap=function(n,t){return Uo(du(t),n)},Dr.xor=oo,Dr.xorBy=fo,Dr.xorWith=ao,Dr.zip=co,Dr.zipObject=function(n,t){return gu(n||[],t||[],te)},Dr.zipObjectDeep=function(n,t){return gu(n||[],t||[],Xe)},Dr.zipWith=lo,Dr.entries=$f,Dr.entriesIn=Df,Dr.extend=mf,Dr.extendWith=xf,aa(Dr,Dr),Dr.add=da,Dr.attempt=Xf,Dr.camelCase=Nf,Dr.capitalize=Ff,Dr.ceil=wa,Dr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=yf(r))===r?r:0),t!==u&&(t=(t=yf(t))===t?t:0),fe(yf(n),t,r)},Dr.clone=function(n){return ae(n,4)},Dr.cloneDeep=function(n){return ae(n,5)},Dr.cloneDeepWith=function(n,t){return ae(n,5,t="function"==typeof t?t:u)},Dr.cloneWith=function(n,t){return ae(n,4,t="function"==typeof t?t:u)},Dr.conformsTo=function(n,t){return null==t||ce(n,t,Cf(t))},Dr.deburr=qf,Dr.defaultTo=function(n,t){return null==n||n!==n?t:n},Dr.divide=ba,Dr.endsWith=function(n,t,r){n=wf(n),t=cu(t);var e=n.length,i=r=r===u?e:fe(_f(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Dr.eq=Do,Dr.escape=function(n){return(n=wf(n))&&Y.test(n)?n.replace(H,or):n},Dr.escapeRegExp=function(n){return(n=wf(n))&&on.test(n)?n.replace(un,"\\$&"):n},Dr.every=function(n,t,r){var e=qo(n)?Ct:ve;return r&&wi(n,t,r)&&(t=u),e(n,ai(t,3))},Dr.find=_o,Dr.findIndex=Ni,Dr.findKey=function(n,t){return Nt(n,ai(t,3),be)},Dr.findLast=go,Dr.findLastIndex=Fi,Dr.findLastKey=function(n,t){return Nt(n,ai(t,3),me)},Dr.floor=ma,Dr.forEach=yo,Dr.forEachRight=wo,Dr.forIn=function(n,t){return null==n?n:de(n,ai(t,3),Lf)},Dr.forInRight=function(n,t){return null==n?n:we(n,ai(t,3),Lf)},Dr.forOwn=function(n,t){return n&&be(n,ai(t,3))},Dr.forOwnRight=function(n,t){return n&&me(n,ai(t,3))},Dr.get=Rf,Dr.gt=Zo,Dr.gte=No,Dr.has=function(n,t){return null!=n&&_i(n,t,Re)},Dr.hasIn=Of,Dr.head=Pi,Dr.identity=ua,Dr.includes=function(n,t,r,e){n=Vo(n)?n:Zf(n),r=r&&!e?_f(r):0;var u=n.length;return r<0&&(r=Ht(u+r,0)),af(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&qt(n,t,r)>-1},Dr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_f(r);return u<0&&(u=Ht(e+u,0)),qt(n,t,u)},Dr.inRange=function(n,t,r){return t=vf(t),r===u?(r=t,t=0):r=vf(r),function(n,t,r){return n>=wr(t,r)&&n<Ht(t,r)}(n=yf(n),t,r)},Dr.invoke=Sf,Dr.isArguments=Fo,Dr.isArray=qo,Dr.isArrayBuffer=Po,Dr.isArrayLike=Vo,Dr.isArrayLikeObject=Ko,Dr.isBoolean=function(n){return!0===n||!1===n||tf(n)&&ke(n)==b},Dr.isBuffer=Go,Dr.isDate=Ho,Dr.isElement=function(n){return tf(n)&&1===n.nodeType&&!uf(n)},Dr.isEmpty=function(n){if(null==n)return!0;if(Vo(n)&&(qo(n)||"string"==typeof n||"function"==typeof n.splice||Go(n)||lf(n)||Fo(n)))return!n.length;var t=vi(n);if(t==k||t==z)return!n.size;if(Ai(n))return!Te(n).length;for(var r in n)if(Tn.call(n,r))return!1;return!0},Dr.isEqual=function(n,t){return Ce(n,t)},Dr.isEqualWith=function(n,t,r){var e=(r="function"==typeof r?r:u)?r(n,t):u;return e===u?Ce(n,t,u,r):!!e},Dr.isError=Jo,Dr.isFinite=function(n){return"number"==typeof n&&bt(n)},Dr.isFunction=Yo,Dr.isInteger=Qo,Dr.isLength=Xo,Dr.isMap=rf,Dr.isMatch=function(n,t){return n===t||Le(n,t,li(t))},Dr.isMatchWith=function(n,t,r){return r="function"==typeof r?r:u,Le(n,t,li(t),r)},Dr.isNaN=function(n){return ef(n)&&n!=+n},Dr.isNative=function(n){if(xi(n))throw new an("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return We(n)},Dr.isNil=function(n){return null==n},Dr.isNull=function(n){return null===n},Dr.isNumber=ef,Dr.isObject=nf,Dr.isObjectLike=tf,Dr.isPlainObject=uf,Dr.isRegExp=of,Dr.isSafeInteger=function(n){return Qo(n)&&n>=-9007199254740991&&n<=v},Dr.isSet=ff,Dr.isString=af,Dr.isSymbol=cf,Dr.isTypedArray=lf,Dr.isUndefined=function(n){return n===u},Dr.isWeakMap=function(n){return tf(n)&&vi(n)==L},Dr.isWeakSet=function(n){return tf(n)&&"[object WeakSet]"==ke(n)},Dr.join=function(n,t){return null==n?"":mt.call(n,t)},Dr.kebabCase=Pf,Dr.last=Hi,Dr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=_f(r))<0?Ht(e+i,0):wr(i,e-1)),t===t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):Ft(n,Vt,i,!0)},Dr.lowerCase=Vf,Dr.lowerFirst=Kf,Dr.lt=sf,Dr.lte=hf,Dr.max=function(n){return n&&n.length?_e(n,ua,Ee):u},Dr.maxBy=function(n,t){return n&&n.length?_e(n,ai(t,2),Ee):u},Dr.mean=function(n){return Kt(n,ua)},Dr.meanBy=function(n,t){return Kt(n,ai(t,2))},Dr.min=function(n){return n&&n.length?_e(n,ua,Me):u},Dr.minBy=function(n,t){return n&&n.length?_e(n,ai(t,2),Me):u},Dr.stubArray=ga,Dr.stubFalse=ya,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=xa,Dr.nth=function(n,t){return n&&n.length?Fe(n,_f(t)):u},Dr.noConflict=function(){return gt._===this&&(gt._=Zn),this},Dr.noop=ca,Dr.now=Eo,Dr.pad=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return qu(_t(u),r)+n+qu(vt(u),r)},Dr.padEnd=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;return t&&e<t?n+qu(t-e,r):n},Dr.padStart=function(n,t,r){n=wf(n);var e=(t=_f(t))?vr(n):0;return t&&e<t?qu(t-e,r)+n:n},Dr.parseInt=function(n,t,r){return r||null==t?t=0:t&&(t=+t),mr(wf(n).replace(fn,""),t||0)},Dr.random=function(n,t,r){if(r&&"boolean"!=typeof r&&wi(n,t,r)&&(t=r=u),r===u&&("boolean"==typeof t?(r=t,t=u):"boolean"==typeof n&&(r=n,n=u)),n===u&&t===u?(n=0,t=1):(n=vf(n),t===u?(t=n,n=0):t=vf(t)),n>t){var e=n;n=t,t=e}if(r||n%1||t%1){var i=xr();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Ge(n,t)},Dr.reduce=function(n,t,r){var e=qo(n)?Mt:Jt,u=arguments.length<3;return e(n,ai(t,4),r,u,he)},Dr.reduceRight=function(n,t,r){var e=qo(n)?$t:Jt,u=arguments.length<3;return e(n,ai(t,4),r,u,pe)},Dr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_f(t),He(wf(n),t)},Dr.replace=function(){var n=arguments,t=wf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Dr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++e<i;){var o=null==n?u:n[Ti(t[e])];o===u&&(e=i,o=r),n=Yo(o)?o.call(n):o}return n},Dr.round=Aa,Dr.runInContext=n,Dr.sample=function(n){return(qo(n)?Yr:Ye)(n)},Dr.size=function(n){if(null==n)return 0;if(Vo(n))return af(n)?vr(n):n.length;var t=vi(n);return t==k||t==z?n.size:Te(n).length},Dr.snakeCase=Gf,Dr.some=function(n,t,r){var e=qo(n)?Dt:uu;return r&&wi(n,t,r)&&(t=u),e(n,ai(t,3))},Dr.sortedIndex=function(n,t){return iu(n,t)},Dr.sortedIndexBy=function(n,t,r){return ou(n,t,ai(r,2))},Dr.sortedIndexOf=function(n,t){var r=null==n?0:n.length;if(r){var e=iu(n,t);if(e<r&&Do(n[e],t))return e}return-1},Dr.sortedLastIndex=function(n,t){return iu(n,t,!0)},Dr.sortedLastIndexBy=function(n,t,r){return ou(n,t,ai(r,2),!0)},Dr.sortedLastIndexOf=function(n,t){if(null==n?0:n.length){var r=iu(n,t,!0)-1;if(Do(n[r],t))return r}return-1},Dr.startCase=Hf,Dr.startsWith=function(n,t,r){return n=wf(n),r=null==r?0:fe(_f(r),0,n.length),t=cu(t),n.slice(r,r+t.length)==t},Dr.subtract=ja,Dr.sum=function(n){return n&&n.length?Yt(n,ua):0},Dr.sumBy=function(n,t){return n&&n.length?Yt(n,ai(t,2)):0},Dr.template=function(n,t,r){var e=Dr.templateSettings;r&&wi(n,t,r)&&(t=u),n=wf(n),t=xf({},t,e,Qu);var i,o,f=xf({},t.imports,e.imports,Qu),a=Cf(f),c=tr(f,a),l=0,s=t.interpolate||An,h="__p += '",p=On((t.escape||An).source+"|"+s.source+"|"+(s===nn?_n:An).source+"|"+(t.evaluate||An).source+"|$","g"),v="//# sourceURL="+(Tn.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";n.replace(p,(function(t,r,e,u,f,a){return e||(e=u),h+=n.slice(l,a).replace(jn,fr),r&&(i=!0,h+="' +\n__e("+r+") +\n'"),f&&(o=!0,h+="';\n"+f+";\n__p += '"),e&&(h+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),l=a+t.length,t})),h+="';\n";var _=Tn.call(t,"variable")&&t.variable;if(_){if(pn.test(_))throw new an("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(P,""):h).replace(V,"$1").replace(K,"$1;"),h="function("+(_||"obj")+") {\n"+(_?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Xf((function(){return kn(a,v+"return "+h).apply(u,c)}));if(g.source=h,Jo(g))throw g;return g},Dr.times=function(n,t){if((n=_f(n))<1||n>v)return[];var r=g,e=wr(n,g);t=ai(t),n-=g;for(var u=Qt(e,t);++r<n;)t(r);return u},Dr.toFinite=vf,Dr.toInteger=_f,Dr.toLength=gf,Dr.toLower=function(n){return wf(n).toLowerCase()},Dr.toNumber=yf,Dr.toSafeInteger=function(n){return n?fe(_f(n),-9007199254740991,v):0===n?n:0},Dr.toString=wf,Dr.toUpper=function(n){return wf(n).toUpperCase()},Dr.trim=function(n,t,r){if((n=wf(n))&&(r||t===u))return Xt(n);if(!n||!(t=cu(t)))return n;var e=_r(n),i=_r(t);return mu(e,er(e,i),ur(e,i)+1).join("")},Dr.trimEnd=function(n,t,r){if((n=wf(n))&&(r||t===u))return n.slice(0,gr(n)+1);if(!n||!(t=cu(t)))return n;var e=_r(n);return mu(e,0,ur(e,_r(t))+1).join("")},Dr.trimStart=function(n,t,r){if((n=wf(n))&&(r||t===u))return n.replace(fn,"");if(!n||!(t=cu(t)))return n;var e=_r(n);return mu(e,er(e,_r(t))).join("")},Dr.truncate=function(n,t){var r=30,e="...";if(nf(t)){var i="separator"in t?t.separator:i;r="length"in t?_f(t.length):r,e="omission"in t?cu(t.omission):e}var o=(n=wf(n)).length;if(ar(n)){var f=_r(n);o=f.length}if(r>=o)return n;var a=r-vr(e);if(a<1)return e;var c=f?mu(f,0,a).join(""):n.slice(0,a);if(i===u)return c+e;if(f&&(a+=c.length-a),of(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=On(i.source,wf(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?a:h)}}else if(n.indexOf(cu(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Dr.unescape=function(n){return(n=wf(n))&&J.test(n)?n.replace(G,yr):n},Dr.uniqueId=function(n){var t=++Un;return wf(n)+t},Dr.upperCase=Jf,Dr.upperFirst=Yf,Dr.each=yo,Dr.eachRight=wo,Dr.first=Pi,aa(Dr,function(){var n={};return be(Dr,(function(t,r){Tn.call(Dr.prototype,r)||(n[r]=t)})),n}(),{chain:!1}),Dr.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Dr[n].placeholder=Dr})),zt(["drop","take"],(function(n,t){qr.prototype[n]=function(r){r=r===u?1:Ht(_f(r),0);var e=this.__filtered__&&!t?new qr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,g),type:n+(e.__dir__<0?"Right":"")}),e},qr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),zt(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;qr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ai(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),zt(["head","last"],(function(n,t){var r="take"+(t?"Right":"");qr.prototype[n]=function(){return this[r](1).value()[0]}})),zt(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");qr.prototype[n]=function(){return this.__filtered__?new qr(this):this[r](1)}})),qr.prototype.compact=function(){return this.filter(ua)},qr.prototype.find=function(n){return this.filter(n).head()},qr.prototype.findLast=function(n){return this.reverse().find(n)},qr.prototype.invokeMap=Je((function(n,t){return"function"==typeof n?new qr(this):this.map((function(r){return ze(r,n,t)}))})),qr.prototype.reject=function(n){return this.filter(Bo(ai(n)))},qr.prototype.slice=function(n,t){n=_f(n);var r=this;return r.__filtered__&&(n>0||t<0)?new qr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=_f(t))<0?r.dropRight(-t):r.take(t-n)),r)},qr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},qr.prototype.toArray=function(){return this.take(g)},be(qr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Dr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Dr.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof qr,c=f[0],l=a||qo(t),s=function(n){var t=i.apply(Dr,Ut([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new qr(this);var g=n.apply(t,f);return g.__actions__.push({func:ho,args:[s],thisArg:u}),new Fr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),zt(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Sn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Dr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(qo(u)?u:[],n)}return this[r]((function(r){return t.apply(qo(r)?r:[],n)}))}})),be(qr.prototype,(function(n,t){var r=Dr[t];if(r){var e=r.name+"";Tn.call(Sr,e)||(Sr[e]=[]),Sr[e].push({name:t,func:r})}})),Sr[Du(u,2).name]=[{name:"wrapper",func:u}],qr.prototype.clone=function(){var n=new qr(this.__wrapped__);return n.__actions__=Iu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Iu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Iu(this.__views__),n},qr.prototype.reverse=function(){if(this.__filtered__){var n=new qr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},qr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=qo(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e<u;){var i=r[e],o=i.size;switch(i.type){case"drop":n+=o;break;case"dropRight":t-=o;break;case"take":t=wr(t,n+o);break;case"takeRight":n=Ht(n,t-o)}}return{start:n,end:t}}(0,u,this.__views__),o=i.start,f=i.end,a=f-o,c=e?f:o-1,l=this.__iteratees__,s=l.length,h=0,p=wr(a,this.__takeCount__);if(!r||!e&&u==a&&p==a)return vu(n,this.__actions__);var v=[];n:for(;a--&&h<p;){for(var _=-1,g=n[c+=t];++_<s;){var y=l[_],d=y.iteratee,w=y.type,b=d(g);if(2==w)g=b;else if(!b){if(1==w)continue n;break n}}v[h++]=g}return v},Dr.prototype.at=po,Dr.prototype.chain=function(){return so(this)},Dr.prototype.commit=function(){return new Fr(this.value(),this.__chain__)},Dr.prototype.next=function(){this.__values__===u&&(this.__values__=pf(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Dr.prototype.plant=function(n){for(var t,r=this;r instanceof Nr;){var e=Mi(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Dr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof qr){var t=n;return this.__actions__.length&&(t=new qr(this)),(t=t.reverse()).__actions__.push({func:ho,args:[Xi],thisArg:u}),new Fr(t,this.__chain__)}return this.thru(Xi)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return vu(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Qn&&(Dr.prototype[Qn]=function(){return this}),Dr}();gt._=dr,(e=function(){return dr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5050.ffa3921f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/5050.ffa3921f.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/5050.ffa3921f.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/5050.ffa3921f.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/5210.566d9075.chunk.js b/ydb/core/viewer/monitoring/static/js/5210.566d9075.chunk.js deleted file mode 100644 index 74b9f0651d3..00000000000 --- a/ydb/core/viewer/monitoring/static/js/5210.566d9075.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5210],{35210:(e,t,n)=>{n.d(t,{registerYQLCompletionItemProvider:()=>U});n(44915),n(88952),n(36999),n(58590),n(6438),n(94908),n(4836),n(60703),n(64215),n(31659),n(99822),n(40142),n(18864),n(32516),n(20961),n(40800),n(2183),n(58568),n(63867),n(43780),n(34175),n(44588),n(70552),n(48279),n(65877),n(81091),n(99312),n(62427),n(15989),n(56800),n(28449),n(57244),n(87536),n(47873),n(59477),n(9948),n(84325),n(15040),n(75639),n(85117),n(14614),n(95200),n(50352),n(4519),n(73494),n(6429),n(28211),n(59731),n(57377),n(50071),n(18278),n(98745),n(44798),n(10617),n(30936),n(57197),n(24518),n(10846),n(22890),n(98472),n(50166),n(91268),n(47210),n(29500),n(38728),n(46606);var i,s=n(32858);n(61562),n(94318),n(23304),n(59896),n(75208),n(51232),n(77888),n(46686),n(27020),n(15600),n(80200),n(87152),n(60352),n(66235),n(31474),n(84840),n(17184),n(74304),n(37954),n(74800),n(25922),n(46648),n(61082),n(19856),n(97884),n(83488),n(3254),n(57680),n(796),n(89336),n(19436),n(40340),n(86492),n(52894),n(73374),n(38320),n(92080),n(57664),n(8868),n(31396),n(18544),n(538),n(25064),n(64256),n(32624),n(97360),n(42776),n(97144),n(46304),n(58820),n(82560),n(74276),n(39866),n(73020),n(71316),n(70492),n(50848),n(59520),n(46576),n(49150),n(33358),n(96716),n(28304),n(14720),n(27734),n(2068),n(71468),n(15482),n(42572),n(77668),n(36e3),n(10072),n(48448),n(51376),n(61764),n(85872),n(22362),n(98408),n(61472),n(50576),n(11272),n(89518),n(99669),n(24152),n(51861),n(97791),n(23934);self.MonacoEnvironment=(i={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var s=n.p,o=(s?s.replace(/\/$/,"")+"/":"")+i[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(o)){var r=String(window.location),a=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(o.substring(0,a.length)!==a){/^(\/\/)/.test(o)&&(o=window.location.protocol+o);var l=new Blob(["/*"+t+'*/importScripts("'+o+'");'],{type:"application/javascript"});return URL.createObjectURL(l)}}return o}});var o=n(23195);const r=["Text","Bytes","String","Bool","Int32","Uint32","Int64","Uint64","Float","Double","Void","Yson","Utf8","Unit","Json","Date","Datetime","Timestamp","Interval","Null","Int8","Uint8","Int16","Uint16","TzDate","TzDatetime","TzTimestamp","Uuid","EmptyList","EmptyDict","JsonDocument","DyNumber"],a=["CAST","COALESCE","LENGTH","LEN","SUBSTRING","FIND","RFIND","StartsWith","EndsWith","IF","NANVL","Random","RandomNumber","RandomUuid","CurrentUtcDate","CurrentUtcDatetime","CurrentUtcTimestamp","CurrentTzDate","CurrentTzDatetime","CurrentTzTimestamp","AddTimezone","RemoveTimezone","MAX_OF","MIN_OF","GREATEST","LEAST","AsTuple","AsStruct","AsList","AsDict","AsSet","AsListStrict","AsDictStrict","AsSetStrict","Variant","AsVariant","Enum","AsEnum","AsTagged","Untag","TableRow","JoinTableRow","Ensure","EnsureType","EnsureConvertibleTo","ToBytes","FromBytes","ByteAt","TestBit","ClearBit","SetBit","FlipBit","Abs","Just","Unwrap","Nothing","Callable","StaticMap","StaticZip","ListCreate","AsListStrict","ListLength","ListHasItems","ListCollect","ListSort","ListSortAsc","ListSortDesc","ListExtend","ListExtendStrict","ListUnionAll","ListZip","ListZipAll","ListEnumerate","ListReverse","ListSkip","ListTake","ListIndexOf","ListMap","ListFilter","ListFlatMap","ListNotNull","ListFlatten","ListUniq","ListAny","ListAll","ListHas","ListHead","ListLast","ListMin","ListMax","ListSum","ListAvg","ListFold","ListFold1","ListFoldMap","ListFold1Map","ListFromRange","ListReplicate","ListConcat","ListExtract","ListTakeWhile","ListSkipWhile","ListAggregate","ToDict","ToMultiDict","ToSet","DictCreate","SetCreate","DictLength","DictHasItems","DictItems","DictKeys","DictPayloads","DictLookup","DictContains","DictAggregate","SetIsDisjoint","SetIntersection","SetIncludes","SetUnion","SetDifference","SetSymmetricDifference","TryMember","ExpandStruct","AddMember","RemoveMember","ForceRemoveMember","ChooseMembers","RemoveMembers","ForceRemoveMembers","CombineMembers","FlattenMembers","StructMembers","RenameMembers","ForceRenameMembers","GatherMembers","SpreadMembers","ForceSpreadMembers","FormatType","ParseType","TypeOf","InstanceOf","DataType","OptionalType","ListType","StreamType","DictType","TupleType","StructType","VariantType","ResourceType","CallableType","GenericType","UnitType","VoidType","OptionalItemType","ListItemType","StreamItemType","DictKeyType","DictPayloadType","TupleElementType","StructMemberType","CallableResultType","CallableArgumentType","VariantUnderlyingType","JSON_EXISTS","JSON_VALUE","JSON_QUERY"],l=["COUNT","MIN","MAX","SUM","AVG","COUNT_IF","SUM_IF","AVG_IF","SOME","CountDistinctEstimate","HyperLogLog","AGGREGATE_LIST","AGGREGATE_LIST_DISTINCT","AGG_LIST","AGG_LIST_DISTINCT","MAX_BY","MIN_BY","AGGREGATE_BY","MULTI_AGGREGATE_BY","TOP","BOTTOM","TOP_BY","BOTTOM_BY","TOPFREQ","MODE","STDDEV","VARIANCE","CORRELATION","COVARIANCE","PERCENTILE","MEDIAN","HISTOGRAM","LogarithmicHistogram","LogHistogram","LinearHistogram","BOOL_AND","BOOL_OR","BOOL_XOR","BIT_AND","BIT_OR","BIT_XOR","SessionStart"],u=Object.entries({DateTime:["EndOfMonth","Format","FromMicroseconds","FromMilliseconds","FromSeconds","GetDayOfMonth","GetDayOfWeek","GetDayOfWeekName","GetDayOfYear","GetHour","GetMicrosecondOfSecond","GetMillisecondOfSecond","GetMinute","GetMonth","GetMonthName","GetSecond","GetTimezoneId","GetTimezoneName","GetWeekOfYear","GetWeekOfYearIso8601","GetYear","IntervalFromDays","IntervalFromHours","IntervalFromMicroseconds","IntervalFromMilliseconds","IntervalFromMinutes","IntervalFromSeconds","MakeDate","MakeDatetime","MakeTimestamp","MakeTzDate","MakeTzDatetime","MakeTzTimestamp","Parse","ParseHttp","ParseIso8601","ParseRfc822","ParseX509","ShiftMonths","ShiftQuarters","ShiftYears","Split","StartOf","StartOfDay","StartOfMonth","StartOfQuarter","StartOfWeek","StartOfYear","TimeOfDay","ToDays","ToHours","ToMicroseconds","ToMilliseconds","ToMinutes","ToSeconds","Update"],Dsv:["Parse","ReadRecord","Serialize"],String:["AsciiToLower","AsciiToTitle","AsciiToUpper","Base32Decode","Base32Encode","Base32StrictDecode","Base64Decode","Base64Encode","Base64EncodeUrl","Base64StrictDecode","Bin","BinText","CgiEscape","CgiUnescape","Collapse","CollapseText","Contains","DecodeHtml","EncodeHtml","EndsWith","EndsWithIgnoreCase","EscapeC","FromByteList","HasPrefix","HasPrefixIgnoreCase","HasSuffix","HasSuffixIgnoreCase","Hex","HexDecode","HexEncode","HexText","HumanReadableBytes","HumanReadableDuration","HumanReadableQuantity","IsAscii","IsAsciiAlnum","IsAsciiAlpha","IsAsciiDigit","IsAsciiHex","IsAsciiLower","IsAsciiSpace","IsAsciiUpper","JoinFromList","LeftPad","LevensteinDistance","Prec","RemoveAll","RemoveFirst","RemoveLast","ReplaceAll","ReplaceFirst","ReplaceLast","RightPad","SBin","SHex","SplitToList","StartsWith","StartsWithIgnoreCase","Strip","ToByteList","UnescapeC"],Unicode:["Find","Fold","FromCodePointList","GetLength","IsAlnum","IsAlpha","IsAscii","IsDigit","IsHex","IsLower","IsSpace","IsUnicodeSet","IsUpper","IsUtf","JoinFromList","LevensteinDistance","Normalize","NormalizeNFC","NormalizeNFD","NormalizeNFKC","NormalizeNFKD","RFind","RemoveAll","RemoveFirst","RemoveLast","ReplaceAll","ReplaceFirst","ReplaceLast","Reverse","SplitToList","Strip","Substring","ToCodePointList","ToLower","ToTitle","ToUint64","ToUpper","Translit","TryToUint64"],Url:["BuildQueryString","CanBePunycodeHostName","CutQueryStringAndFragment","CutScheme","CutWWW","CutWWW2","Decode","Encode","ForceHostNameToPunycode","ForcePunycodeToHostName","GetCGIParam","GetDomain","GetDomainLevel","GetFragment","GetHost","GetHostPort","GetOwner","GetPath","GetPort","GetScheme","GetSchemeHost","GetSchemeHostPort","GetSignificantDomain","GetTLD","GetTail","HostNameToPunycode","IsAllowedByRobotsTxt","IsKnownTLD","IsWellKnownTLD","Normalize","NormalizeWithDefaultHttpScheme","Parse","PunycodeToHostName","QueryStringToDict","QueryStringToList"],Yson:["Attributes","Contains","ConvertTo","ConvertToBool","ConvertToBoolDict","ConvertToBoolList","ConvertToDict","ConvertToDouble","ConvertToDoubleDict","ConvertToDoubleList","ConvertToInt64","ConvertToInt64Dict","ConvertToInt64List","ConvertToList","ConvertToString","ConvertToStringDict","ConvertToStringList","ConvertToUint64","ConvertToUint64Dict","ConvertToUint64List","Equals","From","GetHash","GetLength","IsBool","IsDict","IsDouble","IsEntity","IsInt64","IsList","IsString","IsUint64","Lookup","LookupBool","LookupDict","LookupDouble","LookupInt64","LookupList","LookupString","LookupUint64","Options","Parse","ParseJson","ParseJsonDecodeUtf8","Serialize","SerializeJson","SerializePretty","SerializeText","WithAttributes","YPath","YPathBool","YPathDict","YPathDouble","YPathInt64","YPathList","YPathString","YPathUint64"],HyperLogLog:["AddValue","Create","Deserialize","GetResult","Merge","Serialize"],Hyperscan:["BacktrackingGrep","BacktrackingMatch","Capture","Grep","Match","MultiGrep","MultiMatch","Replace"],Ip:["ConvertToIPv6","FromString","GetSubnet","GetSubnetByMask","IsEmbeddedIPv4","IsIPv4","IsIPv6","SubnetFromString","SubnetMatch","SubnetToString","ToFixedIPv6String","ToString"],Json:["BoolAsJsonNode","CompilePath","DoubleAsJsonNode","JsonAsJsonNode","JsonDocumentSqlExists","JsonDocumentSqlQuery","JsonDocumentSqlQueryConditionalWrap","JsonDocumentSqlQueryWrap","JsonDocumentSqlTryExists","JsonDocumentSqlValueBool","JsonDocumentSqlValueConvertToUtf8","JsonDocumentSqlValueInt64","JsonDocumentSqlValueNumber","JsonDocumentSqlValueUtf8","Parse","Serialize","SerializeToJsonDocument","SqlExists","SqlQuery","SqlQueryConditionalWrap","SqlQueryWrap","SqlTryExists","SqlValueBool","SqlValueConvertToUtf8","SqlValueInt64","SqlValueNumber","SqlValueUtf8","Utf8AsJsonNode"],Math:["Abs","Acos","Asin","Asinh","Atan","Atan2","Cbrt","Ceil","Cos","Cosh","E","Eps","Erf","ErfInv","ErfcInv","Exp","Exp2","Fabs","Floor","Fmod","FuzzyEquals","Hypot","IsFinite","IsInf","IsNaN","Ldexp","Lgamma","Log","Log10","Log2","Mod","NearbyInt","Pi","Pow","Rem","Remainder","Rint","Round","RoundDownward","RoundToNearest","RoundTowardZero","RoundUpward","Sigmoid","Sin","Sinh","Sqrt","Tan","Tanh","Tgamma","Trunc"],Pire:["Capture","Grep","Match","MultiGrep","MultiMatch","Replace"],Re2:["Capture","Count","Escape","FindAndConsume","Grep","Match","Options","PatternFromLike","Replace"],Re2posix:["Capture","Count","Escape","FindAndConsume","Grep","Match","Options","PatternFromLike","Replace"],Digest:["Argon2","Blake2B","CityHash","CityHash128","Crc32c","Crc64","FarmHashFingerprint","FarmHashFingerprint128","FarmHashFingerprint2","FarmHashFingerprint32","FarmHashFingerprint64","Fnv32","Fnv64","HighwayHash","IntHash64","Md5HalfMix","Md5Hex","Md5Raw","MurMurHash","MurMurHash2A","MurMurHash2A32","MurMurHash32","NumericHash","Sha1","Sha256","SipHash","SuperFastHash","XXH3","XXH3_128"],Histogram:["CalcLowerBound","CalcLowerBoundSafe","CalcUpperBound","CalcUpperBoundSafe","GetSumAboveBound","GetSumBelowBound","GetSumInRange","Normalize","Print","ToCumulativeDistributionFunction"]}).reduce(((e,[t,n])=>{const i=n.map((e=>`${t}::${e}`));return e.concat(i)}),[]),c=["ROW_NUMBER","LAG","LEAD","FIRST_VALUE","LAST_VALUE","RANK","DENSE_RANK","SessionState"],m=[],d=["TablePathPrefix","Warning"],T={table:["AUTO_PARTITIONING_BY_SIZE","AUTO_PARTITIONING_PARTITION_SIZE_MB","AUTO_PARTITIONING_BY_LOAD","AUTO_PARTITIONING_MIN_PARTITIONS_COUNT","AUTO_PARTITIONING_MAX_PARTITIONS_COUNT","UNIFORM_PARTITIONS","READ_REPLICAS_SETTINGS","TTL","KEY_BLOOM_FILTER","STORE"],view:["security_invoker"],topic:["min_active_partitions","partition_count_limit","retention_period","retention_storage_mb","partition_write_speed_bytes_per_second","partition_write_burst_bytes","metering_mode"],object:[],user:[],group:[],externalDataSource:[],externalTable:[],tableStore:[],replication:["ENDPOINT","DATABASE","USER","PASSWORD"],tableIndex:[],topicConsumer:["important","read_from"]},g={Method:0,Function:1,Constructor:2,Field:3,Variable:4,Class:5,Struct:6,Interface:7,Module:8,Property:9,Event:10,Operator:11,Unit:12,Value:13,Constant:14,Enum:15,EnumMember:16,Keyword:17,Text:18,Color:19,File:20,Reference:21,Customcolor:22,Folder:23,TypeParameter:24,User:25,Issue:26,Snippet:27},p=/[\s'"-/@]/,S={externalDataSource:["external_data_source"],externalTable:["external_table"],replication:["replication"],table:["table","column_table"],tableStore:["column_store"],topic:["pers_queue_group"],view:["view"],tableIndex:["table_index","index"]},I=["dir","unknown","ext_sub_domain"],L=["dir","ext_sub_domain"];function h(e){let t=e;return e.match(p)&&(t=`\`${e}\``),t}function y(e){let t=0,n=e.length;return e.startsWith("`")&&(t=1),e.endsWith("`")&&(n=-1),e.slice(t,n)}function A(e){return e.startsWith("/")?e.slice(1):e}function C(e="",t){const n=y(e);if(!n.startsWith("/"))return n;let i=A(n);const s=A(t);return i.startsWith(s)&&(i=i.slice(s.length)),A(i)}const b={suggestTemplates:0,suggestPragmas:1,suggestEntity:2,suggestAllColumns:3,suggestColumns:4,suggestColumnAliases:5,suggestTableIndexes:6,suggestTableHints:7,suggestEntitySettings:8,suggestKeywords:9,suggestAggregateFunctions:10,suggestTableFunctions:11,suggestWindowFunctions:12,suggestFunctions:13,suggestSimpleTypes:14,suggestUdfs:15};function D(e){return b[e]}async function f(e,t,n,i){const o=C(i,n),r=await window.api.viewer.autocomplete({database:n,prefix:o,limit:1e3}),a=null===i||void 0===i?void 0:i.startsWith("`");if(r.Success){const n=function(e,t){const n=t.reduce(((e,t)=>{const n=S[t];return n&&n.forEach((t=>e.add(t))),e}),new Set(I));return null===e||void 0===e?void 0:e.filter((({Type:e})=>n.has(e)))}(r.Result.Entities,t);return n?n.reduce(((t,{Name:n,Type:i})=>{var o;const r=L.includes(i),l=r?`${n}/`:n;let u;r&&!a&&(u=`\`${l}$0\``);const c=t.length;return t.push({label:l,insertText:null!==(o=u)&&void 0!==o?o:l,kind:r?g.Folder:g.Text,insertTextRules:u?s.languages.CompletionItemInsertTextRule.InsertAsSnippet:s.languages.CompletionItemInsertTextRule.None,detail:i,range:e,command:l.endsWith("/")?{id:"editor.action.triggerSuggest",title:""}:void 0,sortText:x(D("suggestEntity"))+x(c)}),t}),[]):[]}return[]}async function v(e){return(await async function(){return a}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Function",range:e,sortText:x(D("suggestFunctions"))})))}async function F(e){return(await async function(){return r}()).map((t=>({label:t,insertText:t,kind:g.TypeParameter,detail:"Type",range:e,sortText:x(D("suggestSimpleTypes"))})))}async function E(e){return(await async function(){return u}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"UDF",range:e,sortText:x(D("suggestUdfs"))})))}async function M(e){return(await async function(){return c}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Window function",range:e,sortText:x(D("suggestWindowFunctions"))})))}async function R(e){return(await async function(){return m}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Table function",range:e,sortText:x(D("suggestTableFunctions"))})))}async function N(e){return(await async function(){return l}()).map((t=>({label:t,insertText:t,kind:g.Function,detail:"Aggregate function",range:e,sortText:x(D("suggestAggregateFunctions"))})))}async function w(e){return(await async function(){return d}()).map((t=>({label:t,insertText:t,kind:g.Module,detail:"Pragma",range:e,sortText:x(D("suggestPragmas"))})))}async function _(e,t){const n=await async function(e){return T[e]}(t);return n.map((t=>({label:t,insertText:t,kind:g.Property,detail:"Setting",range:e,sortText:x(D("suggestEntitySettings"))})))}const P="abcdefghijklmnopqrstuvwxyz";function x(e){const t=P[e];if(t)return t;const n=Math.floor(e/P.length),i=e%P.length;return P.slice(-1).repeat(n)+P[i]}function O(e){return async(t,i,s,o)=>{const r=function(e,t){const{startColumn:n,endColumn:i}=e.getWordUntilPosition(t),s="$"===e.getLineContent(t.lineNumber)[n-2]?1:0;return{startColumn:n-s,startLineNumber:t.lineNumber,endColumn:i,endLineNumber:t.lineNumber}}(t,i),a=await async function(e,t,i,s){const{parseYqlQuery:o}=await n.e(1112).then(n.bind(n,91112)),r={line:t.lineNumber,column:t.column},a=o(e.getValue(),r);let l=[],u=[],c=[],m=[],d=[],T=[],p=[],S=[],I=[];if(a.suggestEntity){const n=function(e,t){var n,i,s,o;const r=e.findPreviousMatch("\\s(`?[^\\s]*)",t,!0,!1,null,!0),a=e.findNextMatch("([^\\s]*)`?",t,!0,!1,null,!0);return`${null!==(n=null===r||void 0===r||null===(i=r.matches)||void 0===i?void 0:i[1])&&void 0!==n?n:""}${null!==(s=null===a||void 0===a||null===(o=a.matches)||void 0===o?void 0:o[1])&&void 0!==s?s:""}`}(e,t);l=await f(i,a.suggestEntity,s,n)}a.suggestFunctions&&(u=await v(i));a.suggestAggregateFunctions&&(c=await N(i));a.suggestWindowFunctions&&(m=await M(i));a.suggestTableFunctions&&(d=await R(i));a.suggestSimpleTypes&&(p=await F(i));a.suggestUdfs&&(T=await E(i));a.suggestPragmas&&(S=await w(i));a.suggestEntitySettings&&(I=await _(i,a.suggestEntitySettings));const L=await function(e,t){return t?null===t||void 0===t?void 0:t.map((t=>({label:t.name,insertText:t.name,kind:g.Variable,detail:"Column alias",range:e,sortText:x(D("suggestColumnAliases"))}))):[]}(i,a.suggestColumnAliases),A=await async function(e,t,n){var i,s,o,r;if(null===t||void 0===t||!t.tables)return[];const a=[],l=t.all?[]:void 0,u=t.tables.length>1,c=null!==(i=null===(s=t.tables)||void 0===s?void 0:s.map((e=>{let t=y(e.name);return t.endsWith("/")||(t=`${t}/`),C(t,n)})))&&void 0!==i?i:[],m=Array.from(new Set(c)),d=await window.api.viewer.autocomplete({database:n,table:m,limit:1e3});if(!d.Success)return[];const T=null===(o=t.tables)||void 0===o?void 0:o.reduce(((e,t)=>{var i;const s=C(y(t.name),n),o=null!==(i=e[s])&&void 0!==i?i:[];return t.alias&&o.push(t.alias),e[s]=o,e}),{});if(null===(r=d.Result.Entities)||void 0===r||r.forEach((t=>{if("column"!==t.Type)return;const i=function(e){const{PKIndex:t,NotNull:n,Default:i}=e,s=[];return void 0!==t&&s.push(`PK${t}`),n&&s.push("NN"),i&&s.push("Default"),s.length?s.join(", "):""}(t),s=h(t.Name),o=C(t.Parent,n),r=T[o],c=a.length;if(null!==r&&void 0!==r&&r.length)r.forEach((t=>{const n=`${t}.${s}`;a.push({label:{label:n,description:i},insertText:n,kind:g.Variable,detail:"Column",range:e,sortText:x(D("suggestColumns"))+x(c)}),null===l||void 0===l||l.push(n)}));else{let t=s;u&&(t=`${h(o)}.${s}`),a.push({label:{label:t,description:i},insertText:t,kind:g.Variable,detail:"Column",range:e,sortText:x(D("suggestColumns"))+x(c)}),null===l||void 0===l||l.push(t)}})),l&&l.length>0){const t=l.join(", ");a.push({label:t,insertText:t,kind:g.Variable,range:e,sortText:x(D("suggestAllColumns"))})}return a}(i,a.suggestColumns,s),b=function(e,t){return t?null===t||void 0===t?void 0:t.map((t=>({label:t.value,insertText:t.value,kind:g.Keyword,detail:"Keyword",range:e,sortText:x(D("suggestKeywords"))}))):[]}(i,a.suggestKeywords),P=[...l,...u,...m,...d,...T,...p,...S,...L,...A,...b,...c,...I];return P}(t,i,r,e);return{suggestions:a}}}let G;function U(e){G&&G.dispose(),G=s.languages.registerCompletionItemProvider(o.l,{triggerCharacters:[" ",".","`","(","/"],provideCompletionItems:O(e)})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5252.80fc836d.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/5252.80fc836d.chunk.js.LICENSE.txt deleted file mode 100644 index a62733317c0..00000000000 --- a/ydb/core/viewer/monitoring/static/js/5252.80fc836d.chunk.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/5252.80fc836d.chunk.js b/ydb/core/viewer/monitoring/static/js/5252.991dcab8.chunk.js index e7a1a5b3540..2d9d1f59d84 100644 --- a/ydb/core/viewer/monitoring/static/js/5252.80fc836d.chunk.js +++ b/ydb/core/viewer/monitoring/static/js/5252.991dcab8.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 5252.80fc836d.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5252],{65252:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>h,language:()=>b});var a,r,m=n(32858),l=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,s=(e,t,n,a)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of o(t))d.call(e,r)||r===n||l(e,r,{get:()=>t[r],enumerable:!(a=i(t,r))||a.enumerable});return e},c={};s(c,a=m,"default"),r&&s(r,a,"default");var p=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:c.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}}}]);
\ No newline at end of file +/*! For license information please see 5252.991dcab8.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5252],{65252:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>h,language:()=>b});var a,r,m=n(80781),l=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,s=(e,t,n,a)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of o(t))d.call(e,r)||r===n||l(e,r,{get:()=>t[r],enumerable:!(a=i(t,r))||a.enumerable});return e},c={};s(c,a=m,"default"),r&&s(r,a,"default");var p=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:c.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5252.991dcab8.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/5252.991dcab8.chunk.js.LICENSE.txt new file mode 100644 index 00000000000..34dc0256d74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5252.991dcab8.chunk.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/535.ee345954.chunk.js b/ydb/core/viewer/monitoring/static/js/535.ee345954.chunk.js new file mode 100644 index 00000000000..f24b8b0f8bb --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/535.ee345954.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[535],{90053:(e,t,a)=>{a.d(t,{E:()=>v});var n=a(8873),l=a(84476),s=a(24555),i=a(21334),o=a(77506),r=a(90182),d=a(48372);const c=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,d.g4)("ydb-diagnostics-autorefresh-control",{en:c});var h=a(60712);const m=(0,o.cn)("auto-refresh-control");function v({className:e}){const t=(0,r.YQ)(),[a,o]=(0,r.Nt)();return(0,h.jsxs)("div",{className:m(null,e),children:[(0,h.jsx)(l.$,{view:"flat-secondary",onClick:()=>{t(i.F.util.invalidateTags(["All"]))},extraProps:{"aria-label":u("Refresh")},children:(0,h.jsx)(l.$.Icon,{children:(0,h.jsx)(n.A,{})})}),(0,h.jsxs)(s.l,{value:[String(a)],onUpdate:e=>{o(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,h.jsx)(s.l.Option,{value:"0",children:u("None")}),(0,h.jsx)(s.l.Option,{value:"15000",children:u("15 sec")}),(0,h.jsx)(s.l.Option,{value:"60000",children:u("1 min")}),(0,h.jsx)(s.l.Option,{value:"120000",children:u("2 min")}),(0,h.jsx)(s.l.Option,{value:"300000",children:u("5 min")})]})]})}},22983:(e,t,a)=>{a.d(t,{B:()=>d});var n=a(59284),l=a(84476),s=a(84375),i=a(55974),o=a(42829),r=a(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:a,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:h=!1,buttonView:m="action",buttonTitle:v,buttonClassName:p,withPopover:b=!1,popoverContent:g,popoverPlacement:x="right",popoverDisabled:f=!0}){const[y,j]=n.useState(!1),[w,N]=n.useState(!1),[S,T]=n.useState(!1),_=()=>(0,r.jsx)(l.$,{onClick:()=>j(!0),view:m,disabled:h,loading:!h&&w,className:p,title:v,children:e});return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(i.g,{visible:y,header:d,text:c,withRetry:S,retryButtonText:u,onConfirm:async e=>{N(!0),await t(e)},onConfirmActionSuccess:async()=>{T(!1);try{await(null===a||void 0===a?void 0:a())}finally{N(!1)}},onConfirmActionError:e=>{T((0,o.D)(e)),N(!1)},onClose:()=>{j(!1)}}),b?(0,r.jsx)(s.A,{content:g,placement:x,disabled:f,children:_()}):_()]})}},55974:(e,t,a)=>{a.d(t,{g:()=>g});var n=a(59284),l=a(18677),s=a(71153),i=a(74321),o=a(2198),r=a(99991),d=a(89954),c=a(77506),u=a(48372);const h=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),m=(0,u.g4)("ydb-critical-action-dialog",{en:h});var v=a(60712);const p=(0,c.cn)("ydb-critical-dialog"),b=e=>e.data&&"issues"in e.data&&e.data.issues?(0,v.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?m("no-rights-error"):e.statusText?e.statusText:m("default-error");function g({visible:e,header:t,text:a,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:h,onConfirm:g,onConfirmActionSuccess:x,onConfirmActionError:f}){const[y,j]=n.useState(!1),[w,N]=n.useState(),[S,T]=n.useState(!1),_=async e=>(j(!0),g(e).then((()=>{x(),h()})).catch((e=>{f(e),N(e)})).finally((()=>{j(!1)})));return(0,v.jsx)(o.l,{open:e,hasCloseButton:!1,className:p(),size:"s",onClose:h,onTransitionExited:()=>{N(void 0),T(!1)},children:w?(0,v.jsxs)(n.Fragment,{children:[(0,v.jsx)(o.l.Header,{caption:t}),(0,v.jsx)(o.l.Body,{className:p("body"),children:(0,v.jsxs)("div",{className:p("body-message",{error:!0}),children:[(0,v.jsx)("span",{className:p("error-icon"),children:(0,v.jsx)(l.A,{width:"24",height:"22"})}),b(w)]})}),(0,v.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||m("button-retry"):void 0,textButtonCancel:m("button-close"),onClickButtonApply:()=>_(!0),onClickButtonCancel:h})]}):(0,v.jsxs)(n.Fragment,{children:[(0,v.jsx)(o.l.Header,{caption:t}),(0,v.jsxs)(o.l.Body,{className:p("body"),children:[(0,v.jsxs)("div",{className:p("body-message",{warning:!0}),children:[(0,v.jsx)("span",{className:p("warning-icon"),children:(0,v.jsx)(r.I,{data:s.A,size:24})}),a]}),u?(0,v.jsx)(i.S,{checked:S,onUpdate:T,children:m("checkbox-text")}):null]}),(0,v.jsx)(o.l.Footer,{loading:y,preset:"default",textButtonApply:m("button-confirm"),textButtonCancel:m("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!S},onClickButtonCancel:h,onClickButtonApply:()=>_()})]})})}},42829:(e,t,a)=>{a.d(t,{D:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},3685:(e,t,a)=>{a.d(t,{$:()=>o});var n=a(77506),l=a(33775),s=a(60712);const i=(0,n.cn)("ydb-entity-page-title");function o({entityName:e,status:t,id:a,className:n}){return(0,s.jsxs)("div",{className:i(null,n),children:[(0,s.jsx)("span",{className:i("prefix"),children:e}),(0,s.jsx)(l.k,{className:i("icon"),status:t,size:"s"}),a]})}},10508:(e,t,a)=>{a.d(t,{c:()=>u});var n=a(67884),l=a(96873),s=a(54090),i=a(77506),o=a(82015),r=a(33775),d=a(60712);const c=(0,i.cn)("entity-status");function u({status:e=s.m.Grey,name:t="",label:a,path:i,iconPath:u,size:h="s",mode:m="color",showStatus:v=!0,externalLink:p=!1,withLeftTrim:b=!1,hasClipboardButton:g,clipboardButtonAlwaysVisible:x=!1,className:f}){const y=()=>v?(0,d.jsx)(r.k,{className:c("icon"),status:e,size:h,mode:m}):null;return(0,d.jsxs)("div",{className:c(null,f),children:[u?(j=u,(0,d.jsx)(n.N,{target:"_blank",href:j,children:y()})):y(),a&&(0,d.jsx)("span",{title:a,className:c("label",{size:h,state:e.toLowerCase()}),children:a}),(i||t)&&(0,d.jsxs)("div",{className:c("wrapper",{"with-button":g}),children:[(0,d.jsx)("span",{className:c("link",{"with-left-trim":b}),title:t,children:i?p?(0,d.jsx)(n.N,{className:c("name"),href:i,children:t}):(0,d.jsx)(o.E,{className:c("name"),to:i,children:t}):t&&(0,d.jsx)("span",{className:c("name"),children:t})}),g&&(0,d.jsx)("div",{className:c("controls-wrapper",{visible:x}),children:(0,d.jsx)(l.b,{text:t,size:"xs",view:"normal",className:c("clipboard-button",{visible:x})})})]})]});var j}},58389:(e,t,a)=>{a.d(t,{B:()=>c});var n=a(87184),l=a(77506),s=a(90053),i=a(70043),o=a(60712);const r=(0,l.cn)("ydb-page-meta");function d({items:e,loading:t}){return(0,o.jsx)("div",{className:r("info"),children:t?(0,o.jsx)(i.E,{className:r("skeleton")}):e.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c({className:e,...t}){return(0,o.jsxs)(n.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,o.jsx)(d,{...t}),(0,o.jsx)(s.E,{})]})}},17594:(e,t,a)=>{a.d(t,{l:()=>d});var n=a(69024),l=a(4557),s=a(77506),i=a(16819),o=a(60712);const r=(0,s.cn)("ydb-resizeable-data-table");function d({columnsWidthLSKey:e,columns:t,settings:a,wrapperClassName:s,...d}){const[c,u]=(0,i.a)(e),h=(0,n.j)(t,c),m={...a,defaultResizeable:!0};return(0,o.jsx)("div",{className:r(null,s),children:(0,o.jsx)(l.Ay,{theme:"yandex-cloud",columns:h,onResize:u,settings:m,...d})})}},70043:(e,t,a)=>{a.d(t,{E:()=>i});var n=a(89169),l=a(66781),s=a(60712);const i=({delay:e=600,className:t})=>{const[a]=(0,l.y)(e);return a?(0,s.jsx)(n.E,{className:t}):null}},33775:(e,t,a)=>{a.d(t,{k:()=>h});var n=a(45720),l=a(16929),s=a(71153),i=a(99991),o=a(54090),r=a(77506),d=a(60712);const c=(0,r.cn)("ydb-status-icon"),u={[o.m.Blue]:n.A,[o.m.Yellow]:l.A,[o.m.Orange]:s.A,[o.m.Red]:l.A};function h({status:e=o.m.Grey,size:t="s",mode:a="color",className:n}){const l={state:e.toLowerCase(),size:t};return"icons"===a&&e in u?(0,d.jsx)(i.I,{className:c("status-icon",l,n),data:u[e]}):(0,d.jsx)("div",{className:c("status-color",l,n)})}},79737:(e,t,a)=>{a.d(t,{A:()=>o,X:()=>r});var n=a(5874),l=a(77506),s=a(60712);const i=(0,l.cn)("ydb-table");function o({children:e,className:t}){return(0,s.jsx)("div",{className:i("table-header-content",t),children:e})}function r({className:e,width:t,wrapperClassName:a,...l}){return(0,s.jsx)("div",{className:i(null,a),children:(0,s.jsx)(n.W,{headerCellClassName:({column:e})=>{var t;const a=null===(t=e.columnDef.meta)||void 0===t?void 0:t.align;return i("table-header-cell",{align:a})},cellClassName:e=>{var t,a;const n=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,l=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return i("table-cell",{align:n,"vertical-align":l})},className:i("table",{width:t},e),...l})})}},27775:(e,t,a)=>{a.d(t,{i:()=>i});var n=a(47665),l=a(58267),s=a(60712);function i({state:e}){return(0,s.jsx)(n.J,{theme:(0,l._)(e),children:e})}},47584:(e,t,a)=>{a.r(t),a.d(t,{Tablet:()=>be});var n=a(59284),l=a(87184),s=a(23871),i=a(44992),o=a(61750),r=a(10755),d=a(67087),c=a(370),u=a(7889),h=a(3685),m=a(44508),v=a(44294),p=a(98167),b=a(58389),g=a(92459),x=a(78668),f=a(40174),y=a(21545),j=a(54090),w=a(77506),N=a(76086),S=a(90182),T=a(76938),_=a(66528);const I=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",d:"M13.756 10.164c1.665-.962 1.665-3.366 0-4.328L5.251.919C3.584-.045 1.5 1.158 1.5 3.083v9.834c0 1.925 2.084 3.128 3.751 2.164z"}));var C=a(99991),A=a(22983),k=a(6354),D=a(48372);const E=JSON.parse('{"tablet.header":"Tablet","tablet.meta-database":"Database","tablet.meta-follower":"Follower","controls.kill":"Restart","controls.stop":"Stop","controls.resume":"Resume","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet","controls.stop-not-allowed":"You don\'t have enough rights to stop tablet","controls.resume-not-allowed":"You don\'t have enough rights to resume tablet","dialog.kill-header":"Restart tablet","dialog.stop-header":"Stop tablet","dialog.resume-header":"Resume tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","dialog.stop-text":"The tablet will be stopped. Do you want to proceed?","dialog.resume-text":"The tablet will be resumed. Do you want to proceed?","emptyState":"The tablet was not found","label_tablet-history":"Tablets","label_tablet-channels":"Storage"}'),B=(0,D.g4)("ydb-tablet-page",{en:E});function R(e){return Boolean(e&&"0"!==e)}var F=a(60712);const z=({tablet:e})=>{const{TabletId:t,HiveId:a}=e,s=(0,S.N4)(x._5),[i]=y.X.useKillTabletMutation(),[o]=y.X.useStopTabletMutation(),[r]=y.X.useResumeTabletMutation();if(!t)return null;const d=R(a),c=e.State===k.r.Stopped,u=e.State!==k.r.Stopped&&e.State!==k.r.Dead,h=e.State===k.r.Stopped||e.State===k.r.Deleted;return(0,F.jsxs)(l.s,{gap:2,wrap:"nowrap",children:[(0,F.jsxs)(A.B,{dialogHeader:B("dialog.kill-header"),dialogText:B("dialog.kill-text"),onConfirmAction:()=>i({id:t}).unwrap(),buttonDisabled:c||!s,withPopover:!0,buttonView:"normal",popoverContent:B("controls.kill-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:T.A}),B("controls.kill")]}),d&&(0,F.jsxs)(n.Fragment,{children:[(0,F.jsxs)(A.B,{dialogHeader:B("dialog.stop-header"),dialogText:B("dialog.stop-text"),onConfirmAction:()=>o({id:t,hiveId:a}).unwrap(),buttonDisabled:h||!s,withPopover:!0,buttonView:"normal",popoverContent:B("controls.stop-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:_.A}),B("controls.stop")]}),(0,F.jsxs)(A.B,{dialogHeader:B("dialog.resume-header"),dialogText:B("dialog.resume-text"),onConfirmAction:()=>r({id:t,hiveId:a}).unwrap(),buttonDisabled:u||!s,withPopover:!0,buttonView:"normal",popoverContent:B("controls.resume-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,F.jsx)(C.I,{data:I}),B("controls.resume")]})]})]})};var O=a(52905),P=a(60073),L=a(25196),G=a(27775),H=a(41826),q=a(31684),$=a(29819);const M=JSON.parse('{"field_scheme-shard":"SchemeShard","field_follower":"Follower","field_generation":"Generation","field_hive":"HiveId","field_state":"State","field_uptime":"Uptime","field_node":"Node","field_links":"Links","field_developer-ui-app":"App","field_developer-ui-counters":"Counters","field_developer-ui-executor":"Executor DB internals","field_developer-ui-state":"State Storage","title_info":"Info","title_links":"Links"}'),Y=(0,D.g4)("ydb-tablet-info",{en:M}),K=(0,w.cn)("ydb-tablet-info"),V=({tablet:e})=>{const t=(0,S.N4)(x._5),{ChangeTime:a,Generation:n,FollowerId:s,NodeId:i,HiveId:o,State:r,TenantId:{SchemeShard:d}={},TabletId:c}=e,u=R(o),h=r===k.r.Active,m=[];u&&m.push({label:Y("field_hive"),value:(0,F.jsx)(O.N_,{to:(0,g.DM)(o),className:K("link"),children:o})}),d&&m.push({label:Y("field_scheme-shard"),value:(0,F.jsx)(O.N_,{to:(0,g.DM)(d),className:K("link"),children:d})}),m.push({label:Y("field_state"),value:(0,F.jsx)(G.i,{state:r})}),h&&m.push({label:Y("field_uptime"),value:(0,F.jsx)(H.H,{ChangeTime:a})}),m.push({label:Y("field_generation"),value:n},{label:Y("field_node"),value:(0,F.jsx)(O.N_,{className:K("link"),to:(0,$.vI)(String(i)),children:i})}),s&&m.push({label:Y("field_follower"),value:s});return(0,F.jsxs)(l.s,{gap:10,wrap:"nowrap",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:K("section-title"),children:Y("title_info")}),(0,F.jsx)(P.z_,{info:m})]}),t&&c?(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:K("section-title"),children:Y("title_links")}),(0,F.jsxs)(l.s,{direction:"column",gap:3,children:[(0,F.jsx)(L.K,{title:Y("field_developer-ui-app"),url:(0,q._t)(c,"app")}),(0,F.jsx)(L.K,{title:Y("field_developer-ui-counters"),url:(0,q._t)(c,"counters")}),(0,F.jsx)(L.K,{title:Y("field_developer-ui-executor"),url:(0,q._t)(c,"executorInternals")}),(0,F.jsx)(L.K,{title:Y("field_developer-ui-state"),url:(0,q._t)(c,void 0,"SsId")})]})]}):null]})};var Q=a(36590),X=a(79737),J=a(84476),W=a(33705),U=a(56839);const Z=JSON.parse('{"label_channel-index":"Channel","label_storage-pool":"Storage Pool Name","label_group-id":"Group ID","label_generation":"From generation","label_timestamp":"Timestamp"}'),ee=(0,D.g4)("ydb-tablet-storage-info",{en:Z}),te=(0,w.cn)("ydb-tablet-storage-info");function ae(e,t){const a=e.getValue(),n="function"===typeof t?t(a):a;return(0,F.jsx)("div",{className:te("metrics-cell"),children:n})}function ne({row:e,name:t,hasExpand:a}){const n=e.getCanExpand();return(0,F.jsxs)(l.s,{gap:1,alignItems:"flex-start",className:te("name-wrapper"),children:[n&&(0,F.jsx)(J.$,{view:"flat",size:"xs",onClick:e.getToggleExpandedHandler(),children:(0,F.jsx)(J.$.Icon,{children:(0,F.jsx)(W.I,{direction:e.getIsExpanded()?"bottom":"right",size:14})})}),(0,F.jsx)("div",{className:te("name-content",{"no-control":a&&!n}),children:t})]})}function le({data:e}){const[t,a]=n.useState({}),l=n.useMemo((()=>function(e){var t;if(!e)return[];const{BoundChannels:a,TabletStorageInfo:n={}}=e,l=null!==(t=n.Channels)&&void 0!==t?t:[],s=[];for(const o of l){var i;const e=o.Channel,t=o.History;if(!e||!t||!t.length)continue;const n=[...t];n.reverse();const[l,...r]=n,d={...l,storagePoolName:null===a||void 0===a||null===(i=a[e])||void 0===i?void 0:i.StoragePoolName,channelIndex:e,children:r};s.push(d)}return s}(e)),[e]),s=n.useMemo((()=>l.some((e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.length}))),[l]),i=n.useMemo((()=>{return e=s,[{accessorKey:"channelIndex",header:()=>(0,F.jsx)(X.A,{children:ee("label_channel-index")}),size:50,cell:ae,meta:{align:"right"}},{accessorKey:"storagePoolName",header:()=>(0,F.jsx)(X.A,{children:ee("label_storage-pool")}),size:200,cell:ae},{accessorKey:"GroupID",header:()=>(0,F.jsx)(X.A,{className:e?te("with-padding"):void 0,children:ee("label_group-id")}),size:100,cell:t=>(0,F.jsx)(ne,{row:t.row,name:t.getValue(),hasExpand:e})},{accessorKey:"FromGeneration",header:()=>(0,F.jsx)(X.A,{children:ee("label_generation")}),size:100,cell:ae,meta:{align:"right"}},{accessorKey:"Timestamp",header:()=>(0,F.jsx)(X.A,{children:ee("label_timestamp")}),size:200,cell:e=>ae(e,U.Ey),meta:{align:"right"}}];var e}),[s]),o=(0,Q.K)({columns:i,data:l,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:a,state:{expanded:t}});return(0,F.jsx)(X.X,{table:o})}var se=a(4557),ie=a(10508),oe=a(82015),re=a(17594);const de=[{name:"Generation",align:se.Ay.RIGHT,render:({row:e})=>e.generation},{name:"Change time",align:se.Ay.RIGHT,sortable:!1,render:({row:e})=>(0,F.jsx)(H.H,{ChangeTime:e.changeTime}),width:120},{name:"State",sortable:!1,render:({row:e})=>(0,F.jsx)(G.i,{state:e.state})},{name:"Follower ID",sortable:!1,render:({row:e})=>e.leader?"leader":e.followerId},{name:"Node ID",align:se.Ay.RIGHT,sortable:!1,render:({row:e})=>(0,F.jsx)(oe.E,{to:(0,$.vI)(e.nodeId),children:e.nodeId})},{name:"Node FQDN",sortable:!1,width:300,render:({row:e})=>e.fqdn?(0,F.jsx)(ie.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,F.jsx)("span",{children:"\u2014"})}],ce={displayIndices:!1},ue=({history:e})=>(0,F.jsx)(re.l,{columnsWidthLSKey:"tabletTableColumnsWidth",data:e,columns:de,settings:ce,initialSortOrder:{columnId:"Generation",order:se.Ay.DESCENDING}}),he=(0,w.cn)("ydb-tablet-page"),me={history:"history",channels:"channels"},ve=[{id:me.history,get title(){return B("label_tablet-history")}},{id:me.channels,get title(){return B("label_tablet-channels")},isAdvanced:!0}],pe=c.z.nativeEnum(me).catch(me.history);function be(){var e;const t=(0,S.YQ)(),{id:a}=(0,r.g)(),[{database:s,clusterName:c}]=(0,d.useQueryParams)(g.qc),[u]=(0,S.Nt)(),{currentData:h,isFetching:v,error:x}=y.X.useGetTabletQuery({id:a,database:null!==s&&void 0!==s?s:void 0},{pollingInterval:u}),j=v&&void 0===h,{data:w={},history:T=[]}=h||{},{currentData:_}=y.X.useGetTabletDescribeQuery(w.TenantId?{tenantId:w.TenantId}:i.hT),I=null!==(e=_||s)&&void 0!==e?e:void 0,C=w.Type;n.useEffect((()=>{t((0,f.g)("tablet",{tenantName:null!==s&&void 0!==s?s:void 0,tabletId:a,tabletType:C}))}),[t,s,a,C]);const{Leader:A,Type:k}=w,D=[];return I&&D.push(`${B("tablet.meta-database")}: ${I}`),k&&D.push(k),!1===A&&D.push(B("tablet.meta-follower").toUpperCase()),(0,F.jsxs)(l.s,{gap:5,direction:"column",className:he(),children:[(0,F.jsx)(o.mg,{children:(0,F.jsx)("title",{children:`${a} \u2014 ${B("tablet.header")} \u2014 ${I||c||N.QM}`})}),(0,F.jsx)(b.B,{items:D}),(0,F.jsxs)(p.r,{loading:j,size:"l",children:[x?(0,F.jsx)(m.o,{error:x}):null,h?(0,F.jsx)(ge,{id:a,tablet:w,history:T}):null]})]})}function ge({id:e,tablet:t,history:a}){const n=!Object.keys(t).length,{Overall:s,HiveId:i}=t;return(0,F.jsxs)(u.q,{title:B("emptyState"),className:he("placeholder"),isEmpty:n,children:[(0,F.jsxs)(l.s,{gap:5,direction:"column",children:[(0,F.jsx)(h.$,{entityName:B("tablet.header"),status:null!==s&&void 0!==s?s:j.m.Grey,id:e}),(0,F.jsx)(z,{tablet:t}),(0,F.jsx)(V,{tablet:t})]}),(0,F.jsx)(xe,{id:e,hiveId:i,history:a})]})}function xe({id:e,hiveId:t,history:a}){var i;const[{activeTab:o,...r},c]=(0,d.useQueryParams)(g.qc),u=!(0,S.N4)(x._5)||!R(t);let h=pe.parse(o);return u&&null!==(i=ve.find((e=>e.id===h)))&&void 0!==i&&i.isAdvanced&&(h=me.history),n.useEffect((()=>{o!==h&&c({activeTab:h},"replaceIn")}),[o,h,c]),(0,F.jsxs)(l.s,{gap:5,direction:"column",children:[(0,F.jsx)("div",{children:(0,F.jsx)(s.t,{size:"l",items:ve.filter((({isAdvanced:e})=>!e||!u)),activeTab:h,wrapTo:(t,a)=>{const n=(0,g.DM)(e,{...r,activeTab:t.id});return(0,F.jsx)(v.E,{to:n,children:a},t.id)}})}),"history"===h?(0,F.jsx)(ue,{history:a}):null,"channels"!==h||u?null:(0,F.jsx)(fe,{id:e,hiveId:t})]})}function fe({id:e,hiveId:t}){const[a]=(0,S.Nt)(),{currentData:n,error:l,isFetching:s}=y.X.useGetAdvancedTableInfoQuery({id:e,hiveId:t},{pollingInterval:a}),i=s&&void 0===n;return(0,F.jsxs)(p.r,{loading:i,size:"l",children:[l?(0,F.jsx)(m.o,{error:l}):null,n?(0,F.jsx)(le,{data:n}):null]})}},89954:(e,t,a)=>{a.d(t,{O:()=>_});var n=a(59284),l=a(45720),s=a(16929),i=a(71153),o=a(18677),r=a(84476),d=a(33705),c=a(67884),u=a(99991),h=a(77506),m=a(48372);const v=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),p=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),b=(0,m.g4)("ydb-shorty-string",{ru:p,en:v});var g=a(60712);const x=(0,h.cn)("kv-shorty-string");function f({value:e="",limit:t=200,strict:a=!1,displayLength:l=!0,render:s=e=>e,onToggle:i,expandLabel:o=b("default_expand_label"),collapseLabel:r=b("default_collapse_label")}){const[d,u]=n.useState(!1),h=(d?r:o)+(l&&!d?b("chars_count",{count:e.length}):""),m=e.length>t+(a?0:h.length),v=d||!m?e:e.slice(0,t-4)+"\xa0...";return(0,g.jsxs)("div",{className:x(),children:[s(v),m?(0,g.jsx)(c.N,{className:x("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===i||void 0===i||i()},children:h}):null]})}var y=a(41650);const j=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function w(e){return function(e){return!!e&&void 0!==j[e]}(e)?j[e]:"S_INFO"}const N=(0,h.cn)("kv-result-issues"),S=(0,h.cn)("kv-issues"),T=(0,h.cn)("kv-issue");function _({data:e,hideSeverity:t}){const[a,l]=n.useState(!1),s="string"===typeof e||null===e||void 0===e?void 0:e.issues,i=Array.isArray(s)&&s.length>0;return(0,g.jsxs)("div",{className:N(),children:[(0,g.jsxs)("div",{className:N("error-message"),children:[(()=>{let a;if("string"===typeof e)a=e;else{var l,s;const i=w(null===e||void 0===e||null===(l=e.error)||void 0===l?void 0:l.severity);a=(0,g.jsxs)(n.Fragment,{children:[t?null:(0,g.jsxs)(n.Fragment,{children:[(0,g.jsx)(B,{severity:i})," "]}),(0,g.jsx)("span",{className:N("error-message-text"),children:null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.message})]})}return a})(),i&&(0,g.jsx)(r.$,{view:"normal",onClick:()=>l(!a),children:a?"Hide details":"Show details"})]}),i&&a&&(0,g.jsx)(I,{hideSeverity:t,issues:s})]})}function I({issues:e,hideSeverity:t}){const a=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var a;const n=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,n)}),10);return(0,g.jsx)("div",{className:S(null),children:null===e||void 0===e?void 0:e.map(((e,n)=>(0,g.jsx)(C,{hideSeverity:t,issue:e,expanded:e===a},n)))})}function C({issue:e,hideSeverity:t,level:a=0}){const[l,s]=n.useState(!0),i=w(e.severity),o=e.issues,c=Array.isArray(o)&&o.length>0,u=l?"bottom":"right";return(0,g.jsxs)("div",{className:T({leaf:!c,"has-issues":c}),children:[(0,g.jsxs)("div",{className:T("line"),children:[c&&(0,g.jsx)(r.$,{view:"flat-secondary",onClick:()=>s(!l),className:T("arrow-toggle"),children:(0,g.jsx)(d.I,{direction:u,size:16})}),t?null:(0,g.jsx)(B,{severity:i}),(0,g.jsx)(A,{issue:e}),e.issue_code?(0,g.jsxs)("span",{className:T("code"),children:["Code: ",e.issue_code]}):null]}),c&&l&&(0,g.jsx)("div",{className:T("issues"),children:(0,g.jsx)(k,{issues:o,level:a+1,expanded:l})})]})}function A({issue:e}){var t;const a=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,y.kf)(t.row))return"";const{row:a,column:n}=t;return(0,y.kf)(n)?`${a}:${n}`:`line ${a}`}(e),n=window.ydbEditor,l=()=>(0,g.jsxs)("span",{className:T("message"),children:[a&&(0,g.jsx)("span",{className:T("place-text"),title:"Position",children:a}),(0,g.jsx)("div",{className:T("message-text"),children:(0,g.jsx)(f,{value:e.message,expandLabel:"Show full message"})})]}),{row:s,column:i}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,y.kf)(s)&&n))return l();return(0,g.jsx)(c.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:s,column:null!==i&&void 0!==i?i:0};n.setPosition(e),n.revealPositionInCenterIfOutsideViewport(e),n.focus()},view:"primary",children:l()})}function k(e){const{issues:t,level:a,expanded:n}=e;return(0,g.jsx)("div",{className:T("list"),children:t.map(((e,t)=>(0,g.jsx)(C,{issue:e,level:a,expanded:n},t)))})}const D={S_INFO:l.A,S_WARNING:s.A,S_ERROR:i.A,S_FATAL:o.A},E=(0,h.cn)("yql-issue-severity");function B({severity:e}){const t=e.slice(2).toLowerCase();return(0,g.jsxs)("span",{className:E({severity:t}),children:[(0,g.jsx)(u.I,{className:E("icon"),data:D[e]}),(0,g.jsx)("span",{className:E("title"),children:t})]})}},21545:(e,t,a)=>{a.d(t,{X:()=>l});var n=a(78034);const l=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t},{signal:a})=>{try{const[l,s,i]=await Promise.all([window.api.viewer.getTablet({id:e,database:t},{signal:a}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:a}),window.api.viewer.getNodesList({signal:a})]),o=(0,n.nN)(i),r=Object.keys(s).reduce(((e,t)=>{var a;const n=null===(a=s[t])||void 0===a?void 0:a.TabletStateInfo;if(n&&n.length){var l;const a=n.find((e=>e.Leader))||n[0],{ChangeTime:s,Generation:i,State:r,Leader:d,FollowerId:c}=a,u=o&&t?null===(l=o.get(Number(t)))||void 0===l?void 0:l.Host:void 0;"Dead"!==r&&e.push({nodeId:t,generation:i,changeTime:s,state:r,leader:d,followerId:c,fqdn:u})}return e}),[]),{TabletStateInfo:d=[]}=l,[c={}]=d,{TabletId:u}=c;return{data:{id:u,data:c,history:r}}}catch(l){return{error:l}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const a=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:n,PathId:l}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${n}:${l}`}}catch(a){return{error:a}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:a})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:a})}}catch(n){return{error:n}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},16819:(e,t,a)=>{a.d(t,{a:()=>i});var n=a(59284),l=a(69024),s=a(59001);const i=e=>{const t=n.useCallback((()=>e?s.f.readUserSettingsValue(e,{}):{}),[e]),a=n.useCallback((t=>{e&&s.f.setUserSettingsValue(e,t)}),[e]);return(0,l.a)({saveSizes:a,getSizes:t})}},58267:(e,t,a)=>{a.d(t,{P:()=>i,_:()=>o});var n=a(54090),l=a(6354);const s={[l.r.Dead]:n.m.Red,[l.r.Created]:n.m.Yellow,[l.r.ResolveStateStorage]:n.m.Yellow,[l.r.Candidate]:n.m.Yellow,[l.r.BlockBlobStorage]:n.m.Yellow,[l.r.WriteZeroEntry]:n.m.Yellow,[l.r.Restored]:n.m.Yellow,[l.r.Discover]:n.m.Yellow,[l.r.Lock]:n.m.Yellow,[l.r.Stopped]:n.m.Yellow,[l.r.ResolveLeader]:n.m.Yellow,[l.r.RebuildGraph]:n.m.Yellow,[l.r.Deleted]:n.m.Green,[l.r.Active]:n.m.Green},i=e=>{if(!e)return n.m.Grey;return t=e,Object.values(n.m).includes(t)?e:s[e];var t};function o(e){if(!e)return"unknown";switch(e){case l.r.Dead:return"danger";case l.r.Active:case l.r.Deleted:return"success";default:return"warning"}}},16929:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(59284);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},45720:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(59284);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75",clipRule:"evenodd"}))},71153:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(59284);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.835 2.244c.963-1.665 3.367-1.665 4.33 0l4.916 8.505c.964 1.666-.24 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.165-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},89169:(e,t,a)=>{a.d(t,{E:()=>s});var n=a(59284);const l=(0,a(69220).om)("skeleton");function s({className:e,style:t,qa:a}){return n.createElement("div",{className:l(null,e),style:t,"data-qa":a})}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5382.3a2e6ac6.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/5382.3a2e6ac6.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/5382.3a2e6ac6.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/5382.3a2e6ac6.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/5438.179dc201.chunk.js b/ydb/core/viewer/monitoring/static/js/5438.179dc201.chunk.js new file mode 100644 index 00000000000..9375ad80c74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5438.179dc201.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5438],{45438:(e,a,r)=>{r.r(a),r.d(a,{ConnectToDBSyntaxHighlighter:()=>x});var n=r(22680),t=r(96873),o=r(96298),l=r(80719),g=r(81571),c=r(46306),s=r(1431),i=r(56421),d=r(29866),p=r(30249),u=r(81243),b=r(62422),y=r(77506),h=r(8300),A=r(63636),m=r(60712);o.A.registerLanguage("bash",l.A),o.A.registerLanguage("cpp",g.A),o.A.registerLanguage("csharp",c.A),o.A.registerLanguage("go",s.A),o.A.registerLanguage("java",i.A),o.A.registerLanguage("javascript",d.A),o.A.registerLanguage("php",p.A),o.A.registerLanguage("python",u.A);const w={...h.XT,'pre[class*="language-"]':{...h.XT['pre[class*="language-"]'],background:b.A['pre[class*="language-"]'].background,scrollbarColor:"var(--g-color-scroll-handle) transparent"},'code[class*="language-"]':{...h.XT['code[class*="language-"]'],whiteSpace:"pre"}},k={...h.BB,'pre[class*="language-"]':{...h.BB['pre[class*="language-"]'],background:"var(--g-color-base-misc-light)",scrollbarColor:"var(--g-color-scroll-handle) transparent"},'code[class*="language-"]':{...h.BB['code[class*="language-"]'],whiteSpace:"pre"}},v=(0,y.cn)("ydb-connect-to-db-syntax-highlighter");function x({text:e,language:a}){const r=(0,n.i)(),l="dark"===r||"dark-hc"===r;return(0,m.jsxs)("div",{className:v("wrapper"),children:[(0,m.jsx)("div",{className:v("sticky-container"),children:(0,m.jsx)(t.b,{view:"flat-secondary",size:"s",className:v("copy"),text:e,children:(0,A.A)("copy")})}),(0,m.jsx)(o.A,{language:a,style:l?w:k,customStyle:{height:"100%"},children:e})]})}},8300:(e,a,r)=>{r.d(a,{BB:()=>l,TL:()=>c,XT:()=>g});var n=r(43733),t=r(32138),o=r(62422);const l={...t.A,'pre[class*="language-"]':{...t.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...t.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#a31515"},tablepath:{color:"#338186"},function:{color:"#7a3e9d"},udf:{color:"#7a3e9d"},type:{color:"#4d932d"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#001188"}},g={...o.A,'pre[class*="language-"]':{...o.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...o.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#ce9178"},tablepath:{color:"#338186"},function:{color:"#9e7bb0"},udf:{color:"#9e7bb0"},type:{color:"#6A8759"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#74b0df"}};function c(e){e.languages.yql={comment:[{pattern:/--.*$/m,greedy:!0},{pattern:/\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0}],tablepath:{pattern:/(`[\w/]+`\s*\.\s*)?`[^`]+`/,greedy:!0},string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},{pattern:/@@(?:[^@]|@(?!@))*@@/,greedy:!0}],variable:[{pattern:/\$[a-zA-Z_]\w*/,greedy:!0}],function:{pattern:new RegExp(`\\b(?:${n.XB.join("|")})\\b`,"i"),greedy:!0},keyword:{pattern:new RegExp(`\\b(?:${n.RE.join("|")})\\b`,"i"),greedy:!0},udf:{pattern:/[A-Za-z_]\w*::[A-Za-z_]\w*/,greedy:!0},type:{pattern:new RegExp(`\\b(?:${n.to.join("|")})\\b`,"i"),greedy:!0},boolean:{pattern:/\b(?:true|false|null)\b/i,greedy:!0},number:{pattern:/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,greedy:!0},operator:{pattern:/[-+*/%<>!=&|^~]+|\b(?:and|or|not|is|like|ilike|rlike|in|between)\b/i,greedy:!0},punctuation:{pattern:/[;[\](){}.,]/,greedy:!0}}}c.displayName="yql",c.aliases=["yql"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5454.e8f64f1a.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/5454.e8f64f1a.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/5454.e8f64f1a.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/5454.e8f64f1a.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/5542.7c13d444.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/5542.7c13d444.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/5542.7c13d444.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/5542.7c13d444.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/5636.da9c4c85.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/5636.da9c4c85.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/5636.da9c4c85.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/5636.da9c4c85.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/5866.14d27c8c.chunk.js b/ydb/core/viewer/monitoring/static/js/5866.14d27c8c.chunk.js new file mode 100644 index 00000000000..d488fe03e11 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5866.14d27c8c.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 5866.14d27c8c.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5866],{5866:(e,t,o)=>{o.r(t),o.d(t,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},s={keywords:["namespace","open","import","export","as","operation","function","body","adjoint","newtype","struct","controlled","if","elif","else","repeat","until","fixup","for","in","while","return","fail","within","apply","Adjoint","Controlled","Adj","Ctl","is","self","auto","distribute","invert","intrinsic","let","set","w/","new","not","and","or","use","borrow","using","borrowing","mutable","internal"],typeKeywords:["Unit","Int","BigInt","Double","Bool","String","Qubit","Result","Pauli","Range"],invalidKeywords:["abstract","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","enum","event","explicit","extern","finally","fixed","float","foreach","goto","implicit","int","interface","lock","long","null","object","operator","out","override","params","private","protected","public","readonly","ref","sbyte","sealed","short","sizeof","stackalloc","static","string","switch","this","throw","try","typeof","unit","ulong","unchecked","unsafe","ushort","virtual","void","volatile"],constants:["true","false","PauliI","PauliX","PauliY","PauliZ","One","Zero"],builtin:["X","Y","Z","H","HY","S","T","SWAP","CNOT","CCNOT","MultiX","R","RFrac","Rx","Ry","Rz","R1","R1Frac","Exp","ExpFrac","Measure","M","MultiM","Message","Length","Assert","AssertProb","AssertEqual"],operators:["and=","<-","->","*","*=","@","!","^","^=",":","::",".","..","==","...","=","=>",">",">=","<","<=","-","-=","!=","or=","%","%=","|","+","+=","?","/","/=","&&&","&&&=","^^^","^^^=",">>>",">>>=","<<<","<<<=","|||","|||=","~~~","_","w/","w/="],namespaceFollows:["namespace","open"],importsFollows:["import"],symbols:/[=><!~?:&|+\-*\/\^%@._]+/,escapes:/\\[\s\S]/,tokenizer:{root:[[/[a-zA-Z_$][\w$]*/,{cases:{"@namespaceFollows":{token:"keyword.$0",next:"@namespace"},"@importsFollows":{token:"keyword.$0",next:"@imports"},"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@builtin":"keyword","@invalidKeywords":"invalid","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],namespace:[{include:"@whitespace"},[/[A-Za-z]\w*/,"namespace"],[/[\.]/,"delimiter"],["","","@pop"]],imports:[{include:"@whitespace"},[/[A-Za-z]\w*(?=\.)/,"namespace"],[/[A-Za-z]\w*/,"identifier"],[/\*/,"wildcard"],[/[\.,]/,"delimiter"],["","","@pop"]],whitespace:[[/[ \t\r\n]+/,"white"],[/(\/\/).*/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5866.14d27c8c.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/5866.14d27c8c.chunk.js.LICENSE.txt new file mode 100644 index 00000000000..34dc0256d74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5866.14d27c8c.chunk.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/5866.d7ea2c00.chunk.js b/ydb/core/viewer/monitoring/static/js/5866.d7ea2c00.chunk.js deleted file mode 100644 index ff6b50dabd4..00000000000 --- a/ydb/core/viewer/monitoring/static/js/5866.d7ea2c00.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 5866.d7ea2c00.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5866],{5866:(e,t,o)=>{o.r(t),o.d(t,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},s={keywords:["namespace","open","as","operation","function","body","adjoint","newtype","controlled","if","elif","else","repeat","until","fixup","for","in","while","return","fail","within","apply","Adjoint","Controlled","Adj","Ctl","is","self","auto","distribute","invert","intrinsic","let","set","w/","new","not","and","or","use","borrow","using","borrowing","mutable","internal"],typeKeywords:["Unit","Int","BigInt","Double","Bool","String","Qubit","Result","Pauli","Range"],invalidKeywords:["abstract","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","enum","event","explicit","extern","finally","fixed","float","foreach","goto","implicit","int","interface","lock","long","null","object","operator","out","override","params","private","protected","public","readonly","ref","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","try","typeof","unit","ulong","unchecked","unsafe","ushort","virtual","void","volatile"],constants:["true","false","PauliI","PauliX","PauliY","PauliZ","One","Zero"],builtin:["X","Y","Z","H","HY","S","T","SWAP","CNOT","CCNOT","MultiX","R","RFrac","Rx","Ry","Rz","R1","R1Frac","Exp","ExpFrac","Measure","M","MultiM","Message","Length","Assert","AssertProb","AssertEqual"],operators:["and=","<-","->","*","*=","@","!","^","^=",":","::","..","==","...","=","=>",">",">=","<","<=","-","-=","!=","or=","%","%=","|","+","+=","?","/","/=","&&&","&&&=","^^^","^^^=",">>>",">>>=","<<<","<<<=","|||","|||=","~~~","_","w/","w/="],namespaceFollows:["namespace","open"],symbols:/[=><!~?:&|+\-*\/\^%@._]+/,escapes:/\\[\s\S]/,tokenizer:{root:[[/[a-zA-Z_$][\w$]*/,{cases:{"@namespaceFollows":{token:"keyword.$0",next:"@namespace"},"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@builtin":"keyword","@invalidKeywords":"invalid","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],namespace:[{include:"@whitespace"},[/[A-Za-z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],whitespace:[[/[ \t\r\n]+/,"white"],[/(\/\/).*/,"comment"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5866.d7ea2c00.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/5866.d7ea2c00.chunk.js.LICENSE.txt deleted file mode 100644 index a62733317c0..00000000000 --- a/ydb/core/viewer/monitoring/static/js/5866.d7ea2c00.chunk.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/5875.af30e4a7.chunk.js b/ydb/core/viewer/monitoring/static/js/5875.af30e4a7.chunk.js deleted file mode 100644 index 565f1efcb50..00000000000 --- a/ydb/core/viewer/monitoring/static/js/5875.af30e4a7.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5875],{98256:(e,t,C)=>{C.r(t),C.d(t,{ReactComponent:()=>u,default:()=>E});var r,a,n,o,i,l,s,d,c,H,p,V,h,k=C(59284);function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var C=arguments[t];for(var r in C)Object.prototype.hasOwnProperty.call(C,r)&&(e[r]=C[r])}return e},M.apply(this,arguments)}function Z({title:e,titleId:t,...C},Z){return k.createElement("svg",M({width:260,height:260,viewBox:"0 0 520 520",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:Z,"aria-labelledby":t},C),e?k.createElement("title",{id:t},e):null,r||(r=k.createElement("path",{opacity:.1,d:"M228.637 445C217.178 445.049 206.065 441.074 197.233 433.768L28.4227 288.499C24.7711 285.319 22.4943 280.846 22.0715 276.02C21.6487 271.195 23.1128 266.393 26.1557 262.626L65.3512 214.612C66.9235 212.684 68.8667 211.091 71.0657 209.927C73.2646 208.764 75.6745 208.055 78.1525 207.841C80.6305 207.627 83.1263 207.913 85.4917 208.682C87.8572 209.452 90.0443 210.688 91.9234 212.319L223.682 326.793L435.516 94.088C438.811 90.4596 443.405 88.2807 448.298 88.0253C453.191 87.7699 457.987 89.4587 461.642 92.7243L507.824 134.205C509.647 135.841 511.129 137.821 512.184 140.032C513.24 142.243 513.849 144.64 513.975 147.087C514.102 149.534 513.744 151.982 512.922 154.29C512.101 156.598 510.831 158.721 509.187 160.536L265.553 428.549C260.881 433.709 255.185 437.838 248.829 440.671C242.472 443.503 235.595 444.978 228.637 445Z",fill:"#509CF5"})),a||(a=k.createElement("path",{d:"M412.933 102.332H294.933C289.433 102.332 284.933 106.832 284.933 112.332V315.432C284.933 320.932 289.433 325.432 294.933 325.432H446.433C451.933 325.432 456.433 320.932 456.433 315.432V133.732L429.933 107.332",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.01 10.02"})),n||(n=k.createElement("path",{d:"M425.033 102.332V104.332",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=k.createElement("path",{d:"M425.033 115.031V126.331C425.033 130.431 428.333 133.731 432.433 133.731H449.033",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.27 10.68"})),i||(i=k.createElement("path",{d:"M454.333 133.73H456.333",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=k.createElement("path",{d:"M77 397.052L89.1 409L110 388",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round"})),s||(s=k.createElement("path",{d:"M125 398C125 416.775 109.775 432 91 432C72.2252 432 57 416.775 57 398C57 379.225 72.2252 364 91 364C109.775 364 125 379.225 125 398Z",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.84 12.11"})),d||(d=k.createElement("path",{d:"M147.5 119C147.5 117.895 146.605 117 145.5 117C144.395 117 143.5 117.895 143.5 119H147.5ZM143.5 129.8C143.5 130.905 144.395 131.8 145.5 131.8C146.605 131.8 147.5 130.905 147.5 129.8H143.5ZM147.5 152.5C147.5 151.395 146.605 150.5 145.5 150.5C144.395 150.5 143.5 151.395 143.5 152.5H147.5ZM143.5 164.2C143.5 165.305 144.395 166.2 145.5 166.2C146.605 166.2 147.5 165.305 147.5 164.2H143.5ZM168.1 143.602C169.205 143.602 170.1 142.706 170.1 141.602C170.1 140.497 169.205 139.602 168.1 139.602V143.602ZM157.2 139.602C156.096 139.602 155.2 140.497 155.2 141.602C155.2 142.706 156.096 143.602 157.2 143.602V139.602ZM133.7 143.602C134.805 143.602 135.7 142.706 135.7 141.602C135.7 140.497 134.805 139.602 133.7 139.602V143.602ZM122.9 139.602C121.795 139.602 120.9 140.497 120.9 141.602C120.9 142.706 121.795 143.602 122.9 143.602V139.602ZM143.5 119V129.8H147.5V119H143.5ZM143.5 152.5V164.2H147.5V152.5H143.5ZM168.1 139.602H157.2V143.602H168.1V139.602ZM133.7 139.602H122.9V143.602H133.7V139.602Z",fill:"#2EE5C0",fillOpacity:.8})),c||(c=k.createElement("path",{d:"M406.3 397.5C406.3 396.395 405.405 395.5 404.3 395.5C403.195 395.5 402.3 396.395 402.3 397.5H406.3ZM402.3 403.1C402.3 404.205 403.195 405.1 404.3 405.1C405.405 405.1 406.3 404.205 406.3 403.1H402.3ZM406.3 414.898C406.3 413.794 405.405 412.898 404.3 412.898C403.195 412.898 402.3 413.794 402.3 414.898H406.3ZM402.3 420.998C402.3 422.103 403.195 422.998 404.3 422.998C405.405 422.998 406.3 422.103 406.3 420.998H402.3ZM416.1 411.2C417.205 411.2 418.1 410.305 418.1 409.2C418.1 408.095 417.205 407.2 416.1 407.2V411.2ZM410.4 407.2C409.295 407.2 408.4 408.095 408.4 409.2C408.4 410.305 409.295 411.2 410.4 411.2V407.2ZM398.2 411.2C399.305 411.2 400.2 410.305 400.2 409.2C400.2 408.095 399.305 407.2 398.2 407.2V411.2ZM392.5 407.2C391.395 407.2 390.5 408.095 390.5 409.2C390.5 410.305 391.395 411.2 392.5 411.2V407.2ZM402.3 397.5V403.1H406.3V397.5H402.3ZM402.3 414.898V420.998H406.3V414.898H402.3ZM416.1 407.2H410.4V411.2H416.1V407.2ZM398.2 407.2H392.5V411.2H398.2V407.2Z",fill:"#2EE5C0",fillOpacity:.8})),H||(H=k.createElement("path",{d:"M186 385.667V394.833C186 397.264 185.012 399.596 183.254 401.315C181.496 403.034 179.111 404 176.625 404H121C115.477 404 111 399.523 111 394V249C111 243.477 115.477 239 121 239H176.625C179.111 239 181.496 239.966 183.254 241.685C185.012 243.404 186 245.736 186 248.167V385.667Z",fill:"#0067C1"})),p||(p=k.createElement("path",{d:"M177.143 375.273V384.637C177.143 387.12 176.153 389.501 174.392 391.257C172.63 393.013 170.241 394 167.75 394H112C106.477 394 102 389.522 102 384V235.465C102 229.942 106.477 225.465 112 225.465H167.75C170.241 225.465 172.63 226.451 174.392 228.207C176.153 229.963 177.143 232.345 177.143 234.828V375.273Z",fill:"#007CE9"})),V||(V=k.createElement("path",{d:"M292.385 235.185C291.545 236.543 292.529 238.321 294.126 238.321H375.327C379.067 238.242 382.784 238.917 386.255 240.305C389.726 241.693 392.879 243.765 395.524 246.398C398.169 249.031 400.252 252.169 401.646 255.623C403.041 259.078 403.718 262.778 403.639 266.5C403.639 294.679 394.201 398 356.452 398H242.081C230.712 398 219.806 393.497 211.748 385.477L206.04 379.797C205.665 379.424 205.158 379.214 204.629 379.214H191.299H179.143C178.038 379.214 177.143 378.319 177.143 377.214V239.495C177.143 238.847 177.668 238.321 178.317 238.321C195.697 238.321 212.371 231.438 224.69 219.177L233.949 209.961C240.092 203.848 245.391 196.942 249.705 189.426L267.012 159.283C275.636 144.262 293.887 133.185 306.212 145.354C312.929 151.987 316.741 160.994 316.815 170.411C316.815 171.538 316.721 172.665 316.626 173.886C314.302 197.951 298.104 225.943 292.385 235.185Z",fill:"#FFCC00"})),h||(h=k.createElement("path",{d:"M356.457 369.801H237.651C229.12 369.801 220.937 366.421 214.893 360.401C208.849 354.381 200.666 351.001 192.135 351.001H177.143V379.2H192.135C200.666 379.2 208.849 382.58 214.893 388.6C220.937 394.62 229.12 398 237.651 398H356.457C394.207 398 403.645 294.601 403.645 266.402C403.645 263.723 403.328 261.054 402.701 258.449C399.568 298.831 387.743 369.801 356.457 369.801Z",fill:"#DEB700"})))}const u=k.forwardRef(Z),E=C.p+"static/media/thumbsUp.d4a03fbaa64ce85a0045bf8ba77f8e2b.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5875.f8a190bf.chunk.js b/ydb/core/viewer/monitoring/static/js/5875.f8a190bf.chunk.js new file mode 100644 index 00000000000..7e6298b22c2 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/5875.f8a190bf.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[5875],{98256:(e,t,C)=>{C.r(t),C.d(t,{ReactComponent:()=>u,default:()=>E});var r,a,n,o,i,l,s,d,c,H,p,V,k,M=C(59284);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var C=arguments[t];for(var r in C)({}).hasOwnProperty.call(C,r)&&(e[r]=C[r])}return e},h.apply(null,arguments)}function Z({title:e,titleId:t,...C},Z){return M.createElement("svg",h({width:260,height:260,viewBox:"0 0 520 520",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:Z,"aria-labelledby":t},C),e?M.createElement("title",{id:t},e):null,r||(r=M.createElement("path",{opacity:.1,d:"M228.637 445C217.178 445.049 206.065 441.074 197.233 433.768L28.4227 288.499C24.7711 285.319 22.4943 280.846 22.0715 276.02C21.6487 271.195 23.1128 266.393 26.1557 262.626L65.3512 214.612C66.9235 212.684 68.8667 211.091 71.0657 209.927C73.2646 208.764 75.6745 208.055 78.1525 207.841C80.6305 207.627 83.1263 207.913 85.4917 208.682C87.8572 209.452 90.0443 210.688 91.9234 212.319L223.682 326.793L435.516 94.088C438.811 90.4596 443.405 88.2807 448.298 88.0253C453.191 87.7699 457.987 89.4587 461.642 92.7243L507.824 134.205C509.647 135.841 511.129 137.821 512.184 140.032C513.24 142.243 513.849 144.64 513.975 147.087C514.102 149.534 513.744 151.982 512.922 154.29C512.101 156.598 510.831 158.721 509.187 160.536L265.553 428.549C260.881 433.709 255.185 437.838 248.829 440.671C242.472 443.503 235.595 444.978 228.637 445Z",fill:"#509CF5"})),a||(a=M.createElement("path",{d:"M412.933 102.332H294.933C289.433 102.332 284.933 106.832 284.933 112.332V315.432C284.933 320.932 289.433 325.432 294.933 325.432H446.433C451.933 325.432 456.433 320.932 456.433 315.432V133.732L429.933 107.332",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.01 10.02"})),n||(n=M.createElement("path",{d:"M425.033 102.332V104.332",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=M.createElement("path",{d:"M425.033 115.031V126.331C425.033 130.431 428.333 133.731 432.433 133.731H449.033",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.27 10.68"})),i||(i=M.createElement("path",{d:"M454.333 133.73H456.333",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=M.createElement("path",{d:"M77 397.052L89.1 409L110 388",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round"})),s||(s=M.createElement("path",{d:"M125 398C125 416.775 109.775 432 91 432C72.2252 432 57 416.775 57 398C57 379.225 72.2252 364 91 364C109.775 364 125 379.225 125 398Z",stroke:"#00E6C5",strokeOpacity:.8,strokeWidth:4.84211,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4.84 12.11"})),d||(d=M.createElement("path",{d:"M147.5 119C147.5 117.895 146.605 117 145.5 117C144.395 117 143.5 117.895 143.5 119H147.5ZM143.5 129.8C143.5 130.905 144.395 131.8 145.5 131.8C146.605 131.8 147.5 130.905 147.5 129.8H143.5ZM147.5 152.5C147.5 151.395 146.605 150.5 145.5 150.5C144.395 150.5 143.5 151.395 143.5 152.5H147.5ZM143.5 164.2C143.5 165.305 144.395 166.2 145.5 166.2C146.605 166.2 147.5 165.305 147.5 164.2H143.5ZM168.1 143.602C169.205 143.602 170.1 142.706 170.1 141.602C170.1 140.497 169.205 139.602 168.1 139.602V143.602ZM157.2 139.602C156.096 139.602 155.2 140.497 155.2 141.602C155.2 142.706 156.096 143.602 157.2 143.602V139.602ZM133.7 143.602C134.805 143.602 135.7 142.706 135.7 141.602C135.7 140.497 134.805 139.602 133.7 139.602V143.602ZM122.9 139.602C121.795 139.602 120.9 140.497 120.9 141.602C120.9 142.706 121.795 143.602 122.9 143.602V139.602ZM143.5 119V129.8H147.5V119H143.5ZM143.5 152.5V164.2H147.5V152.5H143.5ZM168.1 139.602H157.2V143.602H168.1V139.602ZM133.7 139.602H122.9V143.602H133.7V139.602Z",fill:"#2EE5C0",fillOpacity:.8})),c||(c=M.createElement("path",{d:"M406.3 397.5C406.3 396.395 405.405 395.5 404.3 395.5C403.195 395.5 402.3 396.395 402.3 397.5H406.3ZM402.3 403.1C402.3 404.205 403.195 405.1 404.3 405.1C405.405 405.1 406.3 404.205 406.3 403.1H402.3ZM406.3 414.898C406.3 413.794 405.405 412.898 404.3 412.898C403.195 412.898 402.3 413.794 402.3 414.898H406.3ZM402.3 420.998C402.3 422.103 403.195 422.998 404.3 422.998C405.405 422.998 406.3 422.103 406.3 420.998H402.3ZM416.1 411.2C417.205 411.2 418.1 410.305 418.1 409.2C418.1 408.095 417.205 407.2 416.1 407.2V411.2ZM410.4 407.2C409.295 407.2 408.4 408.095 408.4 409.2C408.4 410.305 409.295 411.2 410.4 411.2V407.2ZM398.2 411.2C399.305 411.2 400.2 410.305 400.2 409.2C400.2 408.095 399.305 407.2 398.2 407.2V411.2ZM392.5 407.2C391.395 407.2 390.5 408.095 390.5 409.2C390.5 410.305 391.395 411.2 392.5 411.2V407.2ZM402.3 397.5V403.1H406.3V397.5H402.3ZM402.3 414.898V420.998H406.3V414.898H402.3ZM416.1 407.2H410.4V411.2H416.1V407.2ZM398.2 407.2H392.5V411.2H398.2V407.2Z",fill:"#2EE5C0",fillOpacity:.8})),H||(H=M.createElement("path",{d:"M186 385.667V394.833C186 397.264 185.012 399.596 183.254 401.315C181.496 403.034 179.111 404 176.625 404H121C115.477 404 111 399.523 111 394V249C111 243.477 115.477 239 121 239H176.625C179.111 239 181.496 239.966 183.254 241.685C185.012 243.404 186 245.736 186 248.167V385.667Z",fill:"#0067C1"})),p||(p=M.createElement("path",{d:"M177.143 375.273V384.637C177.143 387.12 176.153 389.501 174.392 391.257C172.63 393.013 170.241 394 167.75 394H112C106.477 394 102 389.522 102 384V235.465C102 229.942 106.477 225.465 112 225.465H167.75C170.241 225.465 172.63 226.451 174.392 228.207C176.153 229.963 177.143 232.345 177.143 234.828V375.273Z",fill:"#007CE9"})),V||(V=M.createElement("path",{d:"M292.385 235.185C291.545 236.543 292.529 238.321 294.126 238.321H375.327C379.067 238.242 382.784 238.917 386.255 240.305C389.726 241.693 392.879 243.765 395.524 246.398C398.169 249.031 400.252 252.169 401.646 255.623C403.041 259.078 403.718 262.778 403.639 266.5C403.639 294.679 394.201 398 356.452 398H242.081C230.712 398 219.806 393.497 211.748 385.477L206.04 379.797C205.665 379.424 205.158 379.214 204.629 379.214H191.299H179.143C178.038 379.214 177.143 378.319 177.143 377.214V239.495C177.143 238.847 177.668 238.321 178.317 238.321C195.697 238.321 212.371 231.438 224.69 219.177L233.949 209.961C240.092 203.848 245.391 196.942 249.705 189.426L267.012 159.283C275.636 144.262 293.887 133.185 306.212 145.354C312.929 151.987 316.741 160.994 316.815 170.411C316.815 171.538 316.721 172.665 316.626 173.886C314.302 197.951 298.104 225.943 292.385 235.185Z",fill:"#FFCC00"})),k||(k=M.createElement("path",{d:"M356.457 369.801H237.651C229.12 369.801 220.937 366.421 214.893 360.401C208.849 354.381 200.666 351.001 192.135 351.001H177.143V379.2H192.135C200.666 379.2 208.849 382.58 214.893 388.6C220.937 394.62 229.12 398 237.651 398H356.457C394.207 398 403.645 294.601 403.645 266.402C403.645 263.723 403.328 261.054 402.701 258.449C399.568 298.831 387.743 369.801 356.457 369.801Z",fill:"#DEB700"})))}const u=M.forwardRef(Z),E=C.p+"static/media/thumbsUp.d4a03fbaa64ce85a0045bf8ba77f8e2b.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/5888.4fa64369.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/5888.4fa64369.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/5888.4fa64369.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/5888.4fa64369.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/5988.38ef363d.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/5988.38ef363d.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/5988.38ef363d.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/5988.38ef363d.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/6012.aac08e72.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/6012.aac08e72.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/6012.aac08e72.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/6012.aac08e72.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/6030.95d317e6.chunk.js b/ydb/core/viewer/monitoring/static/js/6030.95d317e6.chunk.js new file mode 100644 index 00000000000..da8d20d18d9 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6030.95d317e6.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6030],{22983:(e,s,t)=>{t.d(s,{B:()=>d});var i=t(59284),n=t(84476),a=t(84375),l=t(55974),o=t(42829),r=t(60712);function d({children:e,onConfirmAction:s,onConfirmActionSuccess:t,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:v=!1,buttonView:h="action",buttonTitle:p,buttonClassName:m,withPopover:g=!1,popoverContent:f,popoverPlacement:x="right",popoverDisabled:k=!0}){const[b,y]=i.useState(!1),[j,N]=i.useState(!1),[w,D]=i.useState(!1),I=()=>(0,r.jsx)(n.$,{onClick:()=>y(!0),view:h,disabled:v,loading:!v&&j,className:m,title:p,children:e});return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(l.g,{visible:b,header:d,text:c,withRetry:w,retryButtonText:u,onConfirm:async e=>{N(!0),await s(e)},onConfirmActionSuccess:async()=>{D(!1);try{await(null===t||void 0===t?void 0:t())}finally{N(!1)}},onConfirmActionError:e=>{D((0,o.D)(e)),N(!1)},onClose:()=>{y(!1)}}),g?(0,r.jsx)(a.A,{content:f,placement:x,disabled:k,children:I()}):I()]})}},55974:(e,s,t)=>{t.d(s,{g:()=>f});var i=t(59284),n=t(18677),a=t(71153),l=t(74321),o=t(2198),r=t(99991),d=t(89954),c=t(77506),u=t(48372);const v=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),h=(0,u.g4)("ydb-critical-action-dialog",{en:v});var p=t(60712);const m=(0,c.cn)("ydb-critical-dialog"),g=e=>e.data&&"issues"in e.data&&e.data.issues?(0,p.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?h("no-rights-error"):e.statusText?e.statusText:h("default-error");function f({visible:e,header:s,text:t,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:v,onConfirm:f,onConfirmActionSuccess:x,onConfirmActionError:k}){const[b,y]=i.useState(!1),[j,N]=i.useState(),[w,D]=i.useState(!1),I=async e=>(y(!0),f(e).then((()=>{x(),v()})).catch((e=>{k(e),N(e)})).finally((()=>{y(!1)})));return(0,p.jsx)(o.l,{open:e,hasCloseButton:!1,className:m(),size:"s",onClose:v,onTransitionExited:()=>{N(void 0),D(!1)},children:j?(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(o.l.Header,{caption:s}),(0,p.jsx)(o.l.Body,{className:m("body"),children:(0,p.jsxs)("div",{className:m("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:m("error-icon"),children:(0,p.jsx)(n.A,{width:"24",height:"22"})}),g(j)]})}),(0,p.jsx)(o.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||h("button-retry"):void 0,textButtonCancel:h("button-close"),onClickButtonApply:()=>I(!0),onClickButtonCancel:v})]}):(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(o.l.Header,{caption:s}),(0,p.jsxs)(o.l.Body,{className:m("body"),children:[(0,p.jsxs)("div",{className:m("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:m("warning-icon"),children:(0,p.jsx)(r.I,{data:a.A,size:24})}),t]}),u?(0,p.jsx)(l.S,{checked:w,onUpdate:D,children:h("checkbox-text")}):null]}),(0,p.jsx)(o.l.Footer,{loading:b,preset:"default",textButtonApply:h("button-confirm"),textButtonCancel:h("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!w},onClickButtonCancel:v,onClickButtonApply:()=>I()})]})})}},42829:(e,s,t)=>{t.d(s,{D:()=>i});const i=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},3685:(e,s,t)=>{t.d(s,{$:()=>o});var i=t(77506),n=t(33775),a=t(60712);const l=(0,i.cn)("ydb-entity-page-title");function o({entityName:e,status:s,id:t,className:i}){return(0,a.jsxs)("div",{className:l(null,i),children:[(0,a.jsx)("span",{className:l("prefix"),children:e}),(0,a.jsx)(n.k,{className:l("icon"),status:s,size:"s"}),t]})}},42655:(e,s,t)=>{t.d(s,{y:()=>c});var i=t(59284),n=t(89169),a=t(77506),l=t(66781),o=t(60712);const r=(0,a.cn)("ydb-info-viewer-skeleton"),d=()=>(0,o.jsxs)("div",{className:r("label"),children:[(0,o.jsx)(n.E,{className:r("label__text")}),(0,o.jsx)("div",{className:r("label__dots")})]}),c=({rows:e=8,className:s,delay:t=600})=>{const[a]=(0,l.y)(t);let c=(0,o.jsxs)(i.Fragment,{children:[(0,o.jsx)(d,{}),(0,o.jsx)(n.E,{className:r("value")})]});return a||(c=null),(0,o.jsx)("div",{className:r(null,s),children:[...new Array(e)].map(((e,s)=>(0,o.jsx)("div",{className:r("row"),children:c},`skeleton-row-${s}`)))})}},58389:(e,s,t)=>{t.d(s,{B:()=>c});var i=t(87184),n=t(77506),a=t(90053),l=t(70043),o=t(60712);const r=(0,n.cn)("ydb-page-meta");function d({items:e,loading:s}){return(0,o.jsx)("div",{className:r("info"),children:s?(0,o.jsx)(l.E,{className:r("skeleton")}):e.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c({className:e,...s}){return(0,o.jsxs)(i.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,o.jsx)(d,{...s}),(0,o.jsx)(a.E,{})]})}},70043:(e,s,t)=>{t.d(s,{E:()=>l});var i=t(89169),n=t(66781),a=t(60712);const l=({delay:e=600,className:s})=>{const[t]=(0,n.y)(e);return t?(0,a.jsx)(i.E,{className:s}):null}},67440:(e,s,t)=>{t.d(s,{E:()=>y});t(59284);var i=t(92459),n=t(78668),a=t(7435),l=t(77506),o=t(56839),r=t(31684),d=t(7187),c=t(90182),u=t(41650),v=t(60073),h=t(25196),p=t(15132),m=t(33775),g=t(48372);const f=JSON.parse('{"slot-id":"VDisk Slot Id","pool-name":"Storage Pool Name","kind":"Kind","guid":"GUID","incarnation-guid":"Incarnation GUID","instance-guid":"Instance GUID","replication-status":"Replicated","state-status":"VDisk State","space-status":"Disk Space","fresh-rank-satisfaction":"Fresh Rank Satisfaction","level-rank-satisfaction":"Level Rank Satisfaction","front-queues":"Front Queues","has-unreadable-blobs":"Has Unreadable Blobs","size":"Size","read-throughput":"Read Throughput","write-throughput":"Write Throughput","links":"Links","vdisk-page":"VDisk Page","developer-ui":"Developer UI","yes":"Yes","no":"No","vdiks-title":"VDisk"}'),x=(0,g.g4)("ydb-vDisk-info",{en:f});var k=t(60712);const b=(0,l.cn)("ydb-vdisk-info");function y({data:e,withVDiskPageLink:s,withTitle:t,...l}){var d,g;const f=(0,c.N4)(n._5),{AllocatedSize:y,DiskSpace:N,FrontQueues:w,Guid:D,Replicated:I,VDiskState:S,VDiskSlotId:C,Kind:_,SatisfactionRank:A,AvailableSize:E,HasUnreadableBlobs:P,IncarnationGuid:R,InstanceGuid:T,StoragePoolName:B,ReadThroughput:F,WriteThroughput:V,PDiskId:$,NodeId:O}=e||{},L=[];var z,G;((0,a.f8)(C)&&L.push({label:x("slot-id"),value:C}),(0,a.f8)(B)&&L.push({label:x("pool-name"),value:B}),(0,a.f8)(S)&&L.push({label:x("state-status"),value:S}),Number(y)>=0&&Number(E)>=0&&L.push({label:x("size"),value:(0,k.jsx)(p.O,{value:y,capacity:Number(y)+Number(E),formatValues:o.vX,colorizeProgress:!0})}),(0,a.f8)(_)&&L.push({label:x("kind"),value:_}),(0,a.f8)(D)&&L.push({label:x("guid"),value:D}),(0,a.f8)(R)&&L.push({label:x("incarnation-guid"),value:R}),(0,a.f8)(T)&&L.push({label:x("instance-guid"),value:T}),(0,a.f8)(I)&&L.push({label:x("replication-status"),value:x(I?"yes":"no")}),(0,a.f8)(N)&&L.push({label:x("space-status"),value:(0,k.jsx)(m.k,{status:N})}),(0,a.f8)(null===A||void 0===A||null===(d=A.FreshRank)||void 0===d?void 0:d.Flag))&&L.push({label:x("fresh-rank-satisfaction"),value:(0,k.jsx)(m.k,{status:null===A||void 0===A||null===(z=A.FreshRank)||void 0===z?void 0:z.Flag})});(0,a.f8)(null===A||void 0===A||null===(g=A.LevelRank)||void 0===g?void 0:g.Flag)&&L.push({label:x("level-rank-satisfaction"),value:(0,k.jsx)(m.k,{status:null===A||void 0===A||null===(G=A.LevelRank)||void 0===G?void 0:G.Flag})});(0,a.f8)(w)&&L.push({label:x("front-queues"),value:(0,k.jsx)(m.k,{status:w})}),(0,a.f8)(P)&&L.push({label:x("has-unreadable-blobs"),value:x(P?"yes":"no")}),(0,a.f8)(F)&&L.push({label:x("read-throughput"),value:(0,u.O4)(F)}),(0,a.f8)(V)&&L.push({label:x("write-throughput"),value:(0,u.O4)(V)});if((0,a.f8)($)&&(0,a.f8)(O)&&(0,a.f8)(C)){const e=[];if(s){const s=(0,i.yX)(C,$,O);e.push((0,k.jsx)(h.K,{title:x("vdisk-page"),url:s,external:!1},s))}if(f){const s=(0,r.Wg)({nodeId:O,pDiskId:$,vDiskSlotId:C});e.push((0,k.jsx)(h.K,{title:x("developer-ui"),url:s},s))}e.length&&L.push({label:x("links"),value:(0,k.jsx)("div",{className:b("links"),children:e})})}const H=e&&t?(0,k.jsx)(j,{data:e}):null;return(0,k.jsx)(v.z_,{info:L,title:H,...l})}function j({data:e}){return(0,k.jsxs)("div",{className:b("title"),children:[x("vdiks-title"),(0,k.jsx)(m.k,{status:(0,d.XY)(e.Severity)}),e.StringifiedId]})}},89954:(e,s,t)=>{t.d(s,{O:()=>I});var i=t(59284),n=t(45720),a=t(16929),l=t(71153),o=t(18677),r=t(84476),d=t(33705),c=t(67884),u=t(99991),v=t(77506),h=t(48372);const p=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),m=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),g=(0,h.g4)("ydb-shorty-string",{ru:m,en:p});var f=t(60712);const x=(0,v.cn)("kv-shorty-string");function k({value:e="",limit:s=200,strict:t=!1,displayLength:n=!0,render:a=e=>e,onToggle:l,expandLabel:o=g("default_expand_label"),collapseLabel:r=g("default_collapse_label")}){const[d,u]=i.useState(!1),v=(d?r:o)+(n&&!d?g("chars_count",{count:e.length}):""),h=e.length>s+(t?0:v.length),p=d||!h?e:e.slice(0,s-4)+"\xa0...";return(0,f.jsxs)("div",{className:x(),children:[a(p),h?(0,f.jsx)(c.N,{className:x("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===l||void 0===l||l()},children:v}):null]})}var b=t(41650);const y=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function j(e){return function(e){return!!e&&void 0!==y[e]}(e)?y[e]:"S_INFO"}const N=(0,v.cn)("kv-result-issues"),w=(0,v.cn)("kv-issues"),D=(0,v.cn)("kv-issue");function I({data:e,hideSeverity:s}){const[t,n]=i.useState(!1),a="string"===typeof e||null===e||void 0===e?void 0:e.issues,l=Array.isArray(a)&&a.length>0;return(0,f.jsxs)("div",{className:N(),children:[(0,f.jsxs)("div",{className:N("error-message"),children:[(()=>{let t;if("string"===typeof e)t=e;else{var n,a;const l=j(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.severity);t=(0,f.jsxs)(i.Fragment,{children:[s?null:(0,f.jsxs)(i.Fragment,{children:[(0,f.jsx)(R,{severity:l})," "]}),(0,f.jsx)("span",{className:N("error-message-text"),children:null===e||void 0===e||null===(a=e.error)||void 0===a?void 0:a.message})]})}return t})(),l&&(0,f.jsx)(r.$,{view:"normal",onClick:()=>n(!t),children:t?"Hide details":"Show details"})]}),l&&t&&(0,f.jsx)(S,{hideSeverity:s,issues:a})]})}function S({issues:e,hideSeverity:s}){const t=null===e||void 0===e?void 0:e.reduce(((e,s)=>{var t;const i=null!==(t=s.severity)&&void 0!==t?t:10;return Math.min(e,i)}),10);return(0,f.jsx)("div",{className:w(null),children:null===e||void 0===e?void 0:e.map(((e,i)=>(0,f.jsx)(C,{hideSeverity:s,issue:e,expanded:e===t},i)))})}function C({issue:e,hideSeverity:s,level:t=0}){const[n,a]=i.useState(!0),l=j(e.severity),o=e.issues,c=Array.isArray(o)&&o.length>0,u=n?"bottom":"right";return(0,f.jsxs)("div",{className:D({leaf:!c,"has-issues":c}),children:[(0,f.jsxs)("div",{className:D("line"),children:[c&&(0,f.jsx)(r.$,{view:"flat-secondary",onClick:()=>a(!n),className:D("arrow-toggle"),children:(0,f.jsx)(d.I,{direction:u,size:16})}),s?null:(0,f.jsx)(R,{severity:l}),(0,f.jsx)(_,{issue:e}),e.issue_code?(0,f.jsxs)("span",{className:D("code"),children:["Code: ",e.issue_code]}):null]}),c&&n&&(0,f.jsx)("div",{className:D("issues"),children:(0,f.jsx)(A,{issues:o,level:t+1,expanded:n})})]})}function _({issue:e}){var s;const t=function(e){const{position:s}=e;if("object"!==typeof s||null===s||!(0,b.kf)(s.row))return"";const{row:t,column:i}=s;return(0,b.kf)(i)?`${t}:${i}`:`line ${t}`}(e),i=window.ydbEditor,n=()=>(0,f.jsxs)("span",{className:D("message"),children:[t&&(0,f.jsx)("span",{className:D("place-text"),title:"Position",children:t}),(0,f.jsx)("div",{className:D("message-text"),children:(0,f.jsx)(k,{value:e.message,expandLabel:"Show full message"})})]}),{row:a,column:l}=null!==(s=e.position)&&void 0!==s?s:{};if(!((0,b.kf)(a)&&i))return n();return(0,f.jsx)(c.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:a,column:null!==l&&void 0!==l?l:0};i.setPosition(e),i.revealPositionInCenterIfOutsideViewport(e),i.focus()},view:"primary",children:n()})}function A(e){const{issues:s,level:t,expanded:i}=e;return(0,f.jsx)("div",{className:D("list"),children:s.map(((e,s)=>(0,f.jsx)(C,{issue:e,level:t,expanded:i},s)))})}const E={S_INFO:n.A,S_WARNING:a.A,S_ERROR:l.A,S_FATAL:o.A},P=(0,v.cn)("yql-issue-severity");function R({severity:e}){const s=e.slice(2).toLowerCase();return(0,f.jsxs)("span",{className:P({severity:s}),children:[(0,f.jsx)(u.I,{className:P("icon"),data:E[e]}),(0,f.jsx)("span",{className:P("title"),children:s})]})}},80208:(e,s,t)=>{t.r(s),t.d(s,{VDiskPage:()=>P});var i=t(59284);const n=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.28 4.78a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 1 0-1.06 1.06L6.94 3.5H1.75a.75.75 0 1 0 0 1.5h5.19L5.72 6.22a.75.75 0 1 0 1.06 1.06zm-.06 3.94-2.5 2.5a.75.75 0 0 0 0 1.06l2.5 2.5a.75.75 0 1 0 1.06-1.06L9.06 12.5h5.19a.75.75 0 0 0 0-1.5H9.06l1.22-1.22a.75.75 0 1 0-1.06-1.06M14 4.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M3.75 13.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5",clipRule:"evenodd"}));var a=t(99991),l=t(44992),o=t(61750),r=t(67087),d=t(22983),c=t(3685),u=t(44508),v=t(42655),h=t(58389),p=t(67440),m=t(21334),g=t(78668),f=t(67028),x=t(40174),k=t(7187),b=t(27295),y=t(78034);const j=m.F.injectEndpoints({endpoints:e=>({getVDiskData:e.query({queryFn:async({nodeId:e,pDiskId:s,vDiskSlotId:t},{signal:i})=>{try{const n=await Promise.all([window.api.viewer.getVDiskInfo({nodeId:e,pDiskId:s,vDiskSlotId:t},{signal:i}),window.api.viewer.getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:s},{signal:i}),window.api.viewer.getNodeInfo(e,{signal:i})]);return{data:function([e,s,t]){var i,n,a,l,o,r,d;const c=null===(i=e.VDiskStateInfo)||void 0===i?void 0:i[0],u=(0,b.WT)(c),v=null===(n=s.PDiskStateInfo)||void 0===n?void 0:n[0],h=(0,b.or)(v),p=null===(a=t.SystemStateInfo)||void 0===a?void 0:a[0],m=(0,y.q1)(p),g=null!==(l=null!==(o=u.NodeId)&&void 0!==o?o:h.NodeId)&&void 0!==l?l:m.NodeId,f=m.Host,x=null===(r=m.Roles)||void 0===r?void 0:r[0],k=m.DC,j=null!==(d=u.PDiskId)&&void 0!==d?d:h.PDiskId,N=h.Type;return{...u,NodeId:g,NodeHost:f,NodeType:x,NodeDC:k,PDiskId:j,PDiskType:N}}(n)}}catch(n){return{error:n}}},providesTags:(e,s,t)=>["All",{type:"VDiskData",id:(0,k.gh)(t.nodeId,t.pDiskId,t.vDiskSlotId)}]})}),overrideExisting:"throw"});var N=t(7435),w=t(77506),D=t(90182),I=t(99936),S=t(48372);const C=JSON.parse('{"fqdn":"FQDN","node":"Node","pdisk":"PDisk","vdisk":"VDisk","storage":"Storage","evict-vdisk-button":"Evict VDisk","force-evict-vdisk-button":"Evict anyway","evict-vdisk-dialog-header":"Evict VDisk","evict-vdisk-dialog-text":"VDisk will be evicted. Do you want to proceed?","evict-vdisk-not-allowed":"You don\'t have enough rights to evict VDisk"}'),_=(0,S.g4)("ydb-vDisk-page",{en:C});var A=t(60712);const E=(0,w.cn)("ydb-vdisk-page");function P(){const e=(0,D.YQ)(),s=i.useRef(null),t=(0,D.N4)(g._5),b=(0,f.c2)(),[{nodeId:y,pDiskId:w,vDiskSlotId:S}]=(0,r.useQueryParams)({nodeId:r.StringParam,pDiskId:r.StringParam,vDiskSlotId:r.StringParam});i.useEffect((()=>{e((0,x.g)("vDisk",{nodeId:y,pDiskId:w,vDiskSlotId:S}))}),[e,y,w,S]);const[C]=(0,D.Nt)(),P=(0,N.f8)(y)&&(0,N.f8)(w)&&(0,N.f8)(S)?{nodeId:y,pDiskId:w,vDiskSlotId:S}:l.hT,{currentData:R={},isFetching:T,error:B}=j.useGetVDiskDataQuery(P,{pollingInterval:C}),F=T&&void 0===R,{NodeHost:V,NodeId:$,NodeType:O,NodeDC:L,PDiskId:z,PDiskType:G,Severity:H,VDiskId:q}=R,{GroupID:M,GroupGeneration:Y,Ring:U,Domain:W,VDisk:Q}=q||{},J=(0,N.f8)(M)&&(0,N.f8)(Y)&&(0,N.f8)(U)&&(0,N.f8)(W)&&(0,N.f8)(Q),K=async e=>{if(J){var s;const t={groupId:M,groupGeneration:Y,failRealmIdx:U,failDomainIdx:W,vDiskIdx:Q,force:e};let i;if(i=b?await window.api.vdisk.evictVDisk(t):await window.api.tablets.evictVDiskOld(t),!1===(null===(s=i)||void 0===s?void 0:s.result)){throw{statusText:i.error,retryPossible:i.forceRetryPossible}}}},X=()=>{e(m.F.util.invalidateTags([{type:"VDiskData",id:(0,k.gh)(y||0,w||0,S||0)},"StorageData"]))};return(0,A.jsxs)("div",{className:E(null),ref:s,children:[(()=>{const e=S?`${_("vdisk")} ${S}`:_("vdisk"),s=w?`${_("pdisk")} ${w}`:_("pdisk"),t=V||_("node");return(0,A.jsx)(o.mg,{titleTemplate:`%s - ${e} - ${s} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} - ${s} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=V?`${_("fqdn")}: ${V}`:void 0,s=$?`${_("node")}: ${$}`:void 0,t=$?`${_("pdisk")}: ${z}`:void 0;return(0,A.jsx)(h.B,{className:E("meta"),loading:F,items:[e,s,O,L,t,G]})})(),(0,A.jsx)(c.$,{className:E("title"),entityName:_("vdisk"),status:(0,k.XY)(H),id:null===R||void 0===R?void 0:R.StringifiedId}),(0,A.jsx)("div",{className:E("controls"),children:(0,A.jsxs)(d.B,{onConfirmAction:K,onConfirmActionSuccess:X,buttonDisabled:!J||!t,buttonView:"normal",dialogHeader:_("evict-vdisk-dialog-header"),dialogText:_("evict-vdisk-dialog-text"),retryButtonText:_("force-evict-vdisk-button"),withPopover:!0,popoverContent:_("evict-vdisk-not-allowed"),popoverDisabled:t,children:[(0,A.jsx)(a.I,{data:n}),_("evict-vdisk-button")]})}),F?(0,A.jsx)(v.y,{rows:20}):(0,A.jsxs)(i.Fragment,{children:[B?(0,A.jsx)(u.o,{error:B}):null,(0,A.jsx)(p.E,{data:R,className:E("info")}),(0,N.f8)(M)&&(0,N.f8)(y)?(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)("div",{className:E("storage-title"),children:_("storage")}),(0,A.jsx)(I.z,{groupId:M,nodeId:y,pDiskId:null!==w&&void 0!==w?w:void 0,parentRef:s,viewContext:{groupId:null===M||void 0===M?void 0:M.toString(),nodeId:null===y||void 0===y?void 0:y.toString(),pDiskId:null===w||void 0===w?void 0:w.toString(),vDiskSlotId:null===S||void 0===S?void 0:S.toString()}})]}):null]})]})}},18677:(e,s,t)=>{t.d(s,{A:()=>n});var i=t(59284);const n=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},74321:(e,s,t)=>{t.d(s,{S:()=>d});var i=t(59284),n=t(64222),a=t(46898);function l(e){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),i.createElement("path",{d:"M4 7h9v3H4z"}))}function o(e){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),i.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const r=(0,t(69220).om)("checkbox"),d=i.forwardRef((function(e,s){const{size:t="m",indeterminate:d,disabled:c=!1,content:u,children:v,title:h,style:p,className:m,qa:g}=e,{checked:f,inputProps:x}=(0,n.v)(e),k=u||v,b=i.createElement("span",{className:r("indicator")},i.createElement("span",{className:r("icon"),"aria-hidden":!0},d?i.createElement(l,{className:r("icon-svg",{type:"dash"})}):i.createElement(o,{className:r("icon-svg",{type:"tick"})})),i.createElement("input",Object.assign({},x,{className:r("control")})),i.createElement("span",{className:r("outline")}));return i.createElement(a.m,{ref:s,title:h,style:p,size:t,disabled:c,className:r({size:t,disabled:c,indeterminate:d,checked:f},m),qa:g,control:b},k)}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6210.69d6a30a.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/6210.69d6a30a.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/6210.69d6a30a.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/6210.69d6a30a.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/6214.c63fd980.chunk.js b/ydb/core/viewer/monitoring/static/js/6214.a9a481a7.chunk.js index 3667c700120..25183bb0e7d 100644 --- a/ydb/core/viewer/monitoring/static/js/6214.c63fd980.chunk.js +++ b/ydb/core/viewer/monitoring/static/js/6214.a9a481a7.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 6214.c63fd980.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6214],{26214:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>l,language:()=>m});var o,i,s=n(32858),r=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,a=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of c(t))p.call(e,i)||i===n||r(e,i,{get:()=>t[i],enumerable:!(o=d(t,i))||o.enumerable});return e},k={};a(k,o=s,"default"),i&&a(i,o,"default");var l={comments:{blockComment:["{/*","*/}"]},brackets:[["{","}"]],autoClosingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"\u201c",close:"\u201d"},{open:"\u2018",close:"\u2019"},{open:"`",close:"`"},{open:"{",close:"}"},{open:"(",close:")"},{open:"_",close:"_"},{open:"**",close:"**"},{open:"<",close:">"}],onEnterRules:[{beforeText:/^\s*- .+/,action:{indentAction:k.languages.IndentAction.None,appendText:"- "}},{beforeText:/^\s*\+ .+/,action:{indentAction:k.languages.IndentAction.None,appendText:"+ "}},{beforeText:/^\s*\* .+/,action:{indentAction:k.languages.IndentAction.None,appendText:"* "}},{beforeText:/^> /,action:{indentAction:k.languages.IndentAction.None,appendText:"> "}},{beforeText:/<\w+/,action:{indentAction:k.languages.IndentAction.Indent}},{beforeText:/\s+>\s*$/,action:{indentAction:k.languages.IndentAction.Indent}},{beforeText:/<\/\w+>/,action:{indentAction:k.languages.IndentAction.Outdent}},...Array.from({length:100},((e,t)=>({beforeText:new RegExp(`^${t}\\. .+`),action:{indentAction:k.languages.IndentAction.None,appendText:`${t+1}. `}})))]},m={defaultToken:"",tokenPostfix:".mdx",control:/[!#()*+.[\\\]_`{}\-]/,escapes:/\\@control/,tokenizer:{root:[[/^---$/,{token:"meta.content",next:"@frontmatter",nextEmbedded:"yaml"}],[/^\s*import/,{token:"keyword",next:"@import",nextEmbedded:"js"}],[/^\s*export/,{token:"keyword",next:"@export",nextEmbedded:"js"}],[/<\w+/,{token:"type.identifier",next:"@jsx"}],[/<\/?\w+>/,"type.identifier"],[/^(\s*)(>*\s*)(#{1,6}\s)/,[{token:"white"},{token:"comment"},{token:"keyword",next:"@header"}]],[/^(\s*)(>*\s*)([*+-])(\s+)/,["white","comment","keyword","white"]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,["white","comment","number","white"]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,["white","comment","number","white"]],[/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/,["white","comment","keyword"]],[/`{3,}(\s.*)?$/,{token:"string",next:"@codeblock_backtick"}],[/~{3,}(\s.*)?$/,{token:"string",next:"@codeblock_tilde"}],[/`{3,}(\S+).*$/,{token:"string",next:"@codeblock_highlight_backtick",nextEmbedded:"$1"}],[/~{3,}(\S+).*$/,{token:"string",next:"@codeblock_highlight_tilde",nextEmbedded:"$1"}],[/^(\s*)(-{4,})$/,["white","comment"]],[/^(\s*)(>+)/,["white","comment"]],{include:"content"}],content:[[/(\[)(.+)(]\()(.+)(\s+".*")(\))/,["","string.link","","type.identifier","string.link",""]],[/(\[)(.+)(]\()(.+)(\))/,["","type.identifier","","string.link",""]],[/(\[)(.+)(]\[)(.+)(])/,["","type.identifier","","type.identifier",""]],[/(\[)(.+)(]:\s+)(\S*)/,["","type.identifier","","string.link"]],[/(\[)(.+)(])/,["","type.identifier",""]],[/`.*`/,"variable.source"],[/_/,{token:"emphasis",next:"@emphasis_underscore"}],[/\*(?!\*)/,{token:"emphasis",next:"@emphasis_asterisk"}],[/\*\*/,{token:"strong",next:"@strong"}],[/{/,{token:"delimiter.bracket",next:"@expression",nextEmbedded:"js"}]],import:[[/'\s*(;|$)/,{token:"string",next:"@pop",nextEmbedded:"@pop"}]],expression:[[/{/,{token:"delimiter.bracket",next:"@expression"}],[/}/,{token:"delimiter.bracket",next:"@pop",nextEmbedded:"@pop"}]],export:[[/^\s*$/,{token:"delimiter.bracket",next:"@pop",nextEmbedded:"@pop"}]],jsx:[[/\s+/,""],[/(\w+)(=)("(?:[^"\\]|\\.)*")/,["attribute.name","operator","string"]],[/(\w+)(=)('(?:[^'\\]|\\.)*')/,["attribute.name","operator","string"]],[/(\w+(?=\s|>|={|$))/,["attribute.name"]],[/={/,{token:"delimiter.bracket",next:"@expression",nextEmbedded:"js"}],[/>/,{token:"type.identifier",next:"@pop"}]],header:[[/.$/,{token:"keyword",next:"@pop"}],{include:"content"},[/./,{token:"keyword"}]],strong:[[/\*\*/,{token:"strong",next:"@pop"}],{include:"content"},[/./,{token:"strong"}]],emphasis_underscore:[[/_/,{token:"emphasis",next:"@pop"}],{include:"content"},[/./,{token:"emphasis"}]],emphasis_asterisk:[[/\*(?!\*)/,{token:"emphasis",next:"@pop"}],{include:"content"},[/./,{token:"emphasis"}]],frontmatter:[[/^---$/,{token:"meta.content",nextEmbedded:"@pop",next:"@pop"}]],codeblock_highlight_backtick:[[/\s*`{3,}\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/.*$/,"variable.source"]],codeblock_highlight_tilde:[[/\s*~{3,}\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/.*$/,"variable.source"]],codeblock_backtick:[[/\s*`{3,}\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblock_tilde:[[/\s*~{3,}\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]]}}}}]);
\ No newline at end of file +/*! For license information please see 6214.a9a481a7.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6214],{26214:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>l,language:()=>m});var o,i,s=n(80781),r=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,a=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of c(t))p.call(e,i)||i===n||r(e,i,{get:()=>t[i],enumerable:!(o=d(t,i))||o.enumerable});return e},k={};a(k,o=s,"default"),i&&a(i,o,"default");var l={comments:{blockComment:["{/*","*/}"]},brackets:[["{","}"]],autoClosingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"\u201c",close:"\u201d"},{open:"\u2018",close:"\u2019"},{open:"`",close:"`"},{open:"{",close:"}"},{open:"(",close:")"},{open:"_",close:"_"},{open:"**",close:"**"},{open:"<",close:">"}],onEnterRules:[{beforeText:/^\s*- .+/,action:{indentAction:k.languages.IndentAction.None,appendText:"- "}},{beforeText:/^\s*\+ .+/,action:{indentAction:k.languages.IndentAction.None,appendText:"+ "}},{beforeText:/^\s*\* .+/,action:{indentAction:k.languages.IndentAction.None,appendText:"* "}},{beforeText:/^> /,action:{indentAction:k.languages.IndentAction.None,appendText:"> "}},{beforeText:/<\w+/,action:{indentAction:k.languages.IndentAction.Indent}},{beforeText:/\s+>\s*$/,action:{indentAction:k.languages.IndentAction.Indent}},{beforeText:/<\/\w+>/,action:{indentAction:k.languages.IndentAction.Outdent}},...Array.from({length:100},((e,t)=>({beforeText:new RegExp(`^${t}\\. .+`),action:{indentAction:k.languages.IndentAction.None,appendText:`${t+1}. `}})))]},m={defaultToken:"",tokenPostfix:".mdx",control:/[!#()*+.[\\\]_`{}\-]/,escapes:/\\@control/,tokenizer:{root:[[/^---$/,{token:"meta.content",next:"@frontmatter",nextEmbedded:"yaml"}],[/^\s*import/,{token:"keyword",next:"@import",nextEmbedded:"js"}],[/^\s*export/,{token:"keyword",next:"@export",nextEmbedded:"js"}],[/<\w+/,{token:"type.identifier",next:"@jsx"}],[/<\/?\w+>/,"type.identifier"],[/^(\s*)(>*\s*)(#{1,6}\s)/,[{token:"white"},{token:"comment"},{token:"keyword",next:"@header"}]],[/^(\s*)(>*\s*)([*+-])(\s+)/,["white","comment","keyword","white"]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,["white","comment","number","white"]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,["white","comment","number","white"]],[/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/,["white","comment","keyword"]],[/`{3,}(\s.*)?$/,{token:"string",next:"@codeblock_backtick"}],[/~{3,}(\s.*)?$/,{token:"string",next:"@codeblock_tilde"}],[/`{3,}(\S+).*$/,{token:"string",next:"@codeblock_highlight_backtick",nextEmbedded:"$1"}],[/~{3,}(\S+).*$/,{token:"string",next:"@codeblock_highlight_tilde",nextEmbedded:"$1"}],[/^(\s*)(-{4,})$/,["white","comment"]],[/^(\s*)(>+)/,["white","comment"]],{include:"content"}],content:[[/(\[)(.+)(]\()(.+)(\s+".*")(\))/,["","string.link","","type.identifier","string.link",""]],[/(\[)(.+)(]\()(.+)(\))/,["","type.identifier","","string.link",""]],[/(\[)(.+)(]\[)(.+)(])/,["","type.identifier","","type.identifier",""]],[/(\[)(.+)(]:\s+)(\S*)/,["","type.identifier","","string.link"]],[/(\[)(.+)(])/,["","type.identifier",""]],[/`.*`/,"variable.source"],[/_/,{token:"emphasis",next:"@emphasis_underscore"}],[/\*(?!\*)/,{token:"emphasis",next:"@emphasis_asterisk"}],[/\*\*/,{token:"strong",next:"@strong"}],[/{/,{token:"delimiter.bracket",next:"@expression",nextEmbedded:"js"}]],import:[[/'\s*(;|$)/,{token:"string",next:"@pop",nextEmbedded:"@pop"}]],expression:[[/{/,{token:"delimiter.bracket",next:"@expression"}],[/}/,{token:"delimiter.bracket",next:"@pop",nextEmbedded:"@pop"}]],export:[[/^\s*$/,{token:"delimiter.bracket",next:"@pop",nextEmbedded:"@pop"}]],jsx:[[/\s+/,""],[/(\w+)(=)("(?:[^"\\]|\\.)*")/,["attribute.name","operator","string"]],[/(\w+)(=)('(?:[^'\\]|\\.)*')/,["attribute.name","operator","string"]],[/(\w+(?=\s|>|={|$))/,["attribute.name"]],[/={/,{token:"delimiter.bracket",next:"@expression",nextEmbedded:"js"}],[/>/,{token:"type.identifier",next:"@pop"}]],header:[[/.$/,{token:"keyword",next:"@pop"}],{include:"content"},[/./,{token:"keyword"}]],strong:[[/\*\*/,{token:"strong",next:"@pop"}],{include:"content"},[/./,{token:"strong"}]],emphasis_underscore:[[/_/,{token:"emphasis",next:"@pop"}],{include:"content"},[/./,{token:"emphasis"}]],emphasis_asterisk:[[/\*(?!\*)/,{token:"emphasis",next:"@pop"}],{include:"content"},[/./,{token:"emphasis"}]],frontmatter:[[/^---$/,{token:"meta.content",nextEmbedded:"@pop",next:"@pop"}]],codeblock_highlight_backtick:[[/\s*`{3,}\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/.*$/,"variable.source"]],codeblock_highlight_tilde:[[/\s*~{3,}\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/.*$/,"variable.source"]],codeblock_backtick:[[/\s*`{3,}\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblock_tilde:[[/\s*~{3,}\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6214.a9a481a7.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/6214.a9a481a7.chunk.js.LICENSE.txt new file mode 100644 index 00000000000..34dc0256d74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6214.a9a481a7.chunk.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/6214.c63fd980.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/6214.c63fd980.chunk.js.LICENSE.txt deleted file mode 100644 index a62733317c0..00000000000 --- a/ydb/core/viewer/monitoring/static/js/6214.c63fd980.chunk.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/6262.44dba84f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/6262.44dba84f.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/6262.44dba84f.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/6262.44dba84f.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/6342.a2819c87.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/6342.a2819c87.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/6342.a2819c87.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/6342.a2819c87.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/6374.be0c5879.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/6374.be0c5879.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/6374.be0c5879.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/6374.be0c5879.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/6397.b46d0b55.chunk.js b/ydb/core/viewer/monitoring/static/js/6397.b8cf6fae.chunk.js index b48e4b4c76f..8b25c8ad5a3 100644 --- a/ydb/core/viewer/monitoring/static/js/6397.b46d0b55.chunk.js +++ b/ydb/core/viewer/monitoring/static/js/6397.b8cf6fae.chunk.js @@ -1 +1 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6397],{66397:(t,e,a)=>{a.r(e),a.d(e,{completionLists:()=>m,conf:()=>I,language:()=>g});const r=["AND","ANY","AS","ASC","ATTACH","BETWEEN","CASE","CAST","CREATE","CROSS","DATABASE","DATABASES","DEFAULT","DELETE","DESC","DESCRIBE","DETACH","DISTINCT","DROP","ELSE","END","FOREIGN","FROM","GRANT","HAVING","IF","INNER","INSERT","JOIN","KEY","LEFT","NATURAL","NOT","OFFSET","ON","OPTIMIZE","OR","OUTER","PREWHERE","PRIMARY","PROCESSLIST","REFERENCES","RIGHT","SELECT","SHOW","TABLE","THEN","TO","TOTALS","TYPE","UNION","UPDATE","USE","WHEN","WHERE","WITH"],n=["true","false","NULL"],i=["__bitBoolMaskAnd","__bitBoolMaskOr","__bitSwapLastTwo","__bitWrapperFunc","__getScalar","accurate_Cast","accurate_CastOrNull","accurateCast","accurateCastOrNull","acosh","addDays","addHours","addMinutes","addMonths","addQuarters","addressToLine","addressToSymbol","addSeconds","addWeeks","addYears","aes_decrypt_mysql","aes_encrypt_mysql","aggThrow","alphaTokens","and","any","anyHeavy","anyLast","appendTrailingCharIfAbsent","argMax","argMin","array","arrayAll","arrayAUC","arrayAvg","arrayCompact","arrayConcat","arrayCount","arrayCumSum","arrayCumSumNonNegative","arrayDifference","arrayDistinct","arrayElement","arrayEnumerate","arrayEnumerateDense","arrayEnumerateDenseRanked","arrayEnumerateUniq","arrayEnumerateUniqRanked","arrayExists","arrayFill","arrayFilter","arrayFirst","arrayFirstIndex","arrayFlatten","arrayIntersect","arrayJoin","arrayMap","arrayMax","arrayMin","arrayPopBack","arrayPopFront","arrayProduct","arrayPushBack","arrayPushFront","arrayReduce","arrayReduceInRanges","arrayResize","arrayReverse","arrayReverseFill","arrayReverseSort","arrayReverseSplit","arraySlice","arraySort","arraySplit","arrayStringConcat","arraySum","arrayUniq","arrayWithConstant","arrayZip","asinh","assumeNotNull","atanh","avgWeighted","bar","base64Decode","base64Encode","basename","bitAnd","bitCount","bitHammingDistance","bitmaskToArray","bitmaskToList","bitNot","bitOr","bitPositionsToArray","bitRotateLeft","bitRotateRight","bitShiftLeft","bitShiftRight","bitTest","bitTestAll","bitTestAny","bitXor","blockNumber","blockSerializedSize","blockSize","boundingRatio","buildId","byteSize","caseWithExpr","caseWithExpression","caseWithoutExpr","caseWithoutExpression","categoricalInformationValue","cbrt","cityHash64","concatAssumeInjective","ConvertYson","corrStable","cosh","countDigits","countEqual","countMatches","countMatchesCaseInsensitive","countSubstringsCaseInsensitive","countSubstringsCaseInsensitiveUTF8","covarPop","covarPopStable","covarSamp","covarSampStable","currentDatabase","currentProfiles","currentRoles","currentUser","cutFragment","cutIPv6","cutQueryString","cutQueryStringAndFragment","cutToFirstSignificantSubdomain","cutToFirstSignificantSubdomainCustom","cutToFirstSignificantSubdomainCustomWithWWW","cutToFirstSignificantSubdomainWithWWW","cutURLParameter","cutWWW","dateTime64ToSnowflake","dateTimeToSnowflake","dateTrunc","decodeURLComponent","decodeXMLComponent","decrypt","defaultProfiles","defaultRoles","defaultValueOfArgumentType","defaultValueOfTypeName","deltaSum","deltaSumTimestamp","demangle","dictGet","dictGetChildren","dictGetDate","dictGetDateOrDefault","dictGetDateTime","dictGetDateTimeOrDefault","dictGetDescendants","dictGetFloat32","dictGetFloat32OrDefault","dictGetFloat64","dictGetFloat64OrDefault","dictGetHierarchy","dictGetInt8","dictGetInt8OrDefault","dictGetInt16","dictGetInt16OrDefault","dictGetInt32","dictGetInt32OrDefault","dictGetInt64","dictGetInt64OrDefault","dictGetOrDefault","dictGetOrNull","dictGetString","dictGetStringOrDefault","dictGetUInt8","dictGetUInt8OrDefault","dictGetUInt16","dictGetUInt16OrDefault","dictGetUInt32","dictGetUInt32OrDefault","dictGetUInt64","dictGetUInt64OrDefault","dictGetUUID","dictGetUUIDOrDefault","dictHas","dictIsIn","divide","domain","domainWithoutWWW","dumpColumnStructure","e","empty","emptyArrayDate","emptyArrayDateTime","emptyArrayFloat32","emptyArrayFloat64","emptyArrayInt8","emptyArrayInt16","emptyArrayInt32","emptyArrayInt64","emptyArrayString","emptyArrayToSingle","emptyArrayUInt8","emptyArrayUInt16","emptyArrayUInt32","emptyArrayUInt64","enabledProfiles","enabledRoles","encodeXMLComponent","encrypt","endsWith","entropy","equals","erf","erfc","errorCodeToName","evalMLMethod","exp2","exp10","extract","extractAll","extractAllGroups","extractAllGroupsHorizontal","extractAllGroupsVertical","extractGroups","extractTextFromHTML","extractURLParameter","extractURLParameterNames","extractURLParameters","farmFingerprint64","farmHash64","file","filesystemAvailable","filesystemCapacity","filesystemFree","finalizeAggregation","firstSignificantSubdomain","firstSignificantSubdomainCustom","format","formatDateTime","formatReadableQuantity","formatReadableSize","formatReadableTimeDelta","formatRow","formatRowNoNewline","fragment","FROM_UNIXTIME","fromModifiedJulianDay","fromModifiedJulianDayOrNull","fromUnixTimestamp","fromUnixTimestamp64Micro","fromUnixTimestamp64Milli","fromUnixTimestamp64Nano","fullHostName","fuzzBits","gcd","generateUUIDv4","geoDistance","geohashDecode","geohashEncode","geohashesInBox","geoToH3","getMacro","getServerPort","getSetting","getSizeOfEnumType","globalIn","globalInIgnoreSet","globalNotIn","globalNotInIgnoreSet","globalNotNullIn","globalNotNullInIgnoreSet","globalNullIn","globalNullInIgnoreSet","globalVariable","greatCircleAngle","greatCircleDistance","greater","greaterOrEquals","groupArray","groupArrayInsertAt","groupArrayMovingAvg","groupArrayMovingSum","groupArraySample","groupBitAnd","groupBitOr","groupBitXor","groupUniqArray","h3EdgeAngle","h3EdgeLengthM","h3GetBaseCell","h3GetResolution","h3HexAreaM2","h3IndexesAreNeighbors","h3IsValid","h3kRing","h3ToChildren","h3ToGeo","h3ToParent","h3ToString","halfMD5","has","hasAll","hasAny","hasColumnInTable","hasSubstr","hasThreadFuzzer","hasToken","hasTokenCaseInsensitive","histogram","hiveHash","hostName","hostname","identity","ifNotFinite","ignore","ilike","in","indexHint","indexOf","inIgnoreSet","initializeAggregation","initialQueryID","intDiv","intDivOrZero","intervalLengthSum","intExp2","intExp10","intHash32","intHash64","IPv4CIDRToRange","IPv4NumToString","IPv4NumToStringClassC","IPv4StringToNum","IPv4ToIPv6","IPv6CIDRToRange","IPv6NumToString","IPv6StringToNum","isConstant","isDecimalOverflow","isFinite","isInfinite","isIPAddressInRange","isIPv4String","isIPv6String","isNaN","isNotNull","isValidJSON","isValidUTF8","isZeroOrNull","javaHash","javaHashUTF16LE","joinGet","joinGetOrNull","JSON_EXISTS","JSON_QUERY","JSON_VALUE","JSONExtract","JSONExtractArrayRaw","JSONExtractBool","JSONExtractFloat","JSONExtractInt","JSONExtractKeysAndValues","JSONExtractKeysAndValuesRaw","JSONExtractRaw","JSONExtractString","JSONExtractUInt","JSONHas","JSONKey","JSONLength","JSONType","jumpConsistentHash","kurtPop","kurtSamp","lagInFrame","lcm","leadInFrame","leftPad","leftPadUTF8","lengthUTF8","less","lessOrEquals","lgamma","like","log1p","logTrace","lowCardinalityIndices","lowCardinalityKeys","lowerUTF8","MACNumToString","MACStringToNum","MACStringToOUI","mannWhitneyUTest","map","mapAdd","mapContains","mapKeys","mapPopulateSeries","mapSubtract","mapValues","match","materialize","maxIntersections","maxIntersectionsPosition","maxMap","MD5","median","medianBFloat16","medianBFloat16Weighted","medianDeterministic","medianExact","medianExactHigh","medianExactLow","medianExactWeighted","medianTDigest","medianTDigestWeighted","medianTiming","medianTimingWeighted","metroHash64","minMap","minus","modelEvaluate","modulo","moduloLegacy","moduloOrZero","multiFuzzyMatchAllIndices","multiFuzzyMatchAny","multiFuzzyMatchAnyIndex","multiIf","multiMatchAllIndices","multiMatchAny","multiMatchAnyIndex","multiply","multiSearchAllPositions","multiSearchAllPositionsCaseInsensitive","multiSearchAllPositionsCaseInsensitiveUTF8","multiSearchAllPositionsUTF8","multiSearchAny","multiSearchAnyCaseInsensitive","multiSearchAnyCaseInsensitiveUTF8","multiSearchAnyUTF8","multiSearchFirstIndex","multiSearchFirstIndexCaseInsensitive","multiSearchFirstIndexCaseInsensitiveUTF8","multiSearchFirstIndexUTF8","multiSearchFirstPosition","multiSearchFirstPositionCaseInsensitive","multiSearchFirstPositionCaseInsensitiveUTF8","multiSearchFirstPositionUTF8","negate","neighbor","netloc","ngramDistance","ngramDistanceCaseInsensitive","ngramDistanceCaseInsensitiveUTF8","ngramDistanceUTF8","ngramMinHash","ngramMinHashArg","ngramMinHashArgCaseInsensitive","ngramMinHashArgCaseInsensitiveUTF8","ngramMinHashArgUTF8","ngramMinHashCaseInsensitive","ngramMinHashCaseInsensitiveUTF8","ngramMinHashUTF8","ngramSearch","ngramSearchCaseInsensitive","ngramSearchCaseInsensitiveUTF8","ngramSearchUTF8","ngramSimHash","ngramSimHashCaseInsensitive","ngramSimHashCaseInsensitiveUTF8","ngramSimHashUTF8","normalizedQueryHash","normalizedQueryHashKeepNames","normalizeQuery","normalizeQueryKeepNames","notEmpty","notEquals","notILike","notIn","notInIgnoreSet","notLike","notNullIn","notNullInIgnoreSet","nullIn","nullInIgnoreSet","or","parseDateTime32BestEffort","parseDateTime32BestEffortOrNull","parseDateTime32BestEffortOrZero","parseDateTime64BestEffort","parseDateTime64BestEffortOrNull","parseDateTime64BestEffortOrZero","parseDateTimeBestEffort","parseDateTimeBestEffortOrNull","parseDateTimeBestEffortOrZero","parseDateTimeBestEffortUS","parseDateTimeBestEffortUSOrNull","parseDateTimeBestEffortUSOrZero","partitionId","path","pathFull","plus","pointInEllipses","pointInPolygon","polygonAreaCartesian","polygonAreaSpherical","polygonConvexHullCartesian","polygonPerimeterCartesian","polygonPerimeterSpherical","polygonsDistanceCartesian","polygonsDistanceSpherical","polygonsEqualsCartesian","polygonsIntersectionCartesian","polygonsIntersectionSpherical","polygonsSymDifferenceCartesian","polygonsSymDifferenceSpherical","polygonsUnionCartesian","polygonsUnionSpherical","polygonsWithinCartesian","polygonsWithinSpherical","port","positionCaseInsensitive","positionCaseInsensitiveUTF8","positionUTF8","protocol","quantile","quantileBFloat16","quantileBFloat16Weighted","quantileDeterministic","quantileExact","quantileExactExclusive","quantileExactHigh","quantileExactInclusive","quantileExactLow","quantileExactWeighted","quantiles","quantilesBFloat16","quantilesBFloat16Weighted","quantilesDeterministic","quantilesExact","quantilesExactExclusive","quantilesExactHigh","quantilesExactInclusive","quantilesExactLow","quantilesExactWeighted","quantilesTDigest","quantilesTDigestWeighted","quantilesTiming","quantilesTimingWeighted","quantileTDigest","quantileTDigestWeighted","quantileTiming","quantileTimingWeighted","queryID","queryString","queryStringAndFragment","rand32","rand64","randConstant","randomFixedString","randomPrintableASCII","randomString","randomStringUTF8","range","rankCorr","readWktMultiPolygon","readWktPoint","readWktPolygon","readWktRing","regexpQuoteMeta","regionHierarchy","regionIn","regionToArea","regionToCity","regionToContinent","regionToCountry","regionToDistrict","regionToName","regionToPopulation","regionToTopContinent","reinterpret","reinterpretAsDate","reinterpretAsDateTime","reinterpretAsFixedString","reinterpretAsFloat32","reinterpretAsFloat64","reinterpretAsInt8","reinterpretAsInt16","reinterpretAsInt32","reinterpretAsInt64","reinterpretAsInt128","reinterpretAsInt256","reinterpretAsString","reinterpretAsUInt8","reinterpretAsUInt16","reinterpretAsUInt32","reinterpretAsUInt64","reinterpretAsUInt128","reinterpretAsUInt256","reinterpretAsUUID","replaceAll","replaceOne","replaceRegexpAll","replaceRegexpOne","replicate","retention","reverseUTF8","rightPad","rightPadUTF8","roundAge","roundBankers","roundDown","roundDuration","roundToExp2","rowNumberInAllBlocks","rowNumberInBlock","runningAccumulate","runningConcurrency","runningDifference","runningDifferenceStartingWithFirstValue","sequenceCount","sequenceMatch","sequenceNextNode","serverUUID","SHA1","SHA224","SHA256","SHA512","shardCount","shardNum","sigmoid","simpleJSONExtractBool","simpleJSONExtractFloat","simpleJSONExtractInt","simpleJSONExtractRaw","simpleJSONExtractString","simpleJSONExtractUInt","simpleJSONHas","simpleLinearRegression","singleValueOrNull","sinh","sipHash64","sipHash128","skewPop","skewSamp","sleep","sleepEachRow","snowflakeToDateTime","snowflakeToDateTime64","splitByChar","splitByNonAlpha","splitByRegexp","splitByString","splitByWhitespace","startsWith","stddevPop","stddevPopStable","stddevSamp","stddevSampStable","stochasticLinearRegression","stochasticLogisticRegression","stringToH3","studentTTest","substringUTF8","subtractDays","subtractHours","subtractMinutes","subtractMonths","subtractQuarters","subtractSeconds","subtractWeeks","subtractYears","sumCount","sumKahan","sumMap","sumMapFiltered","sumMapFilteredWithOverflow","sumMapWithOverflow","sumWithOverflow","svg","tcpPort","tgamma","throwIf","tid","timeSlot","timeSlots","timeZone","timezone","timeZoneOf","timezoneOf","timeZoneOffset","timezoneOffset","toColumnTypeName","toDate","toDate32","toDate32OrNull","toDate32OrZero","toDateOrNull","toDateOrZero","toDateTime","toDateTime32","toDateTime64","toDateTime64OrNull","toDateTime64OrZero","toDateTimeOrNull","toDateTimeOrZero","today","toDayOfMonth","toDayOfWeek","toDayOfYear","toDecimal32","toDecimal32OrNull","toDecimal32OrZero","toDecimal64","toDecimal64OrNull","toDecimal64OrZero","toDecimal128","toDecimal128OrNull","toDecimal128OrZero","toDecimal256","toDecimal256OrNull","toDecimal256OrZero","toFixedString","toFloat32","toFloat32OrNull","toFloat32OrZero","toFloat64","toFloat64OrNull","toFloat64OrZero","toHour","toInt8","toInt8OrNull","toInt8OrZero","toInt16","toInt16OrNull","toInt16OrZero","toInt32","toInt32OrNull","toInt32OrZero","toInt64","toInt64OrNull","toInt64OrZero","toInt128","toInt128OrNull","toInt128OrZero","toInt256","toInt256OrNull","toInt256OrZero","toIntervalDay","toIntervalHour","toIntervalMinute","toIntervalMonth","toIntervalQuarter","toIntervalSecond","toIntervalWeek","toIntervalYear","toIPv4","toIPv6","toISOWeek","toISOYear","toJSONString","toLowCardinality","toMinute","toModifiedJulianDay","toModifiedJulianDayOrNull","toMonday","toMonth","toNullable","topK","topKWeighted","topLevelDomain","toQuarter","toRelativeDayNum","toRelativeHourNum","toRelativeMinuteNum","toRelativeMonthNum","toRelativeQuarterNum","toRelativeSecondNum","toRelativeWeekNum","toRelativeYearNum","toSecond","toStartOfDay","toStartOfFifteenMinutes","toStartOfFiveMinute","toStartOfHour","toStartOfInterval","toStartOfISOYear","toStartOfMinute","toStartOfMonth","toStartOfQuarter","toStartOfSecond","toStartOfTenMinutes","toStartOfWeek","toStartOfYear","toString","toStringCutToZero","toTime","toTimeZone","toTimezone","toTypeName","toUInt8","toUInt8OrNull","toUInt8OrZero","toUInt16","toUInt16OrNull","toUInt16OrZero","toUInt32","toUInt32OrNull","toUInt32OrZero","toUInt64","toUInt64OrNull","toUInt64OrZero","toUInt128","toUInt128OrNull","toUInt128OrZero","toUInt256","toUInt256OrNull","toUInt256OrZero","toUnixTimestamp","toUnixTimestamp64Micro","toUnixTimestamp64Milli","toUnixTimestamp64Nano","toUUID","toUUIDOrNull","toUUIDOrZero","toValidUTF8","toWeek","toYear","toYearWeek","toYYYYMM","toYYYYMMDD","toYYYYMMDDhhmmss","transform","trimBoth","trimLeft","trimRight","tryBase64Decode","tuple","tupleElement","tupleHammingDistance","tupleToNameValuePairs","uniq","uniqCombined","uniqCombined64","uniqExact","uniqHLL12","uniqUpTo","upperUTF8","uptime","URLHash","URLHierarchy","URLPathHierarchy","UUIDNumToString","UUIDStringToNum","validateNestedArraySizes","varPop","varPopStable","varSamp","varSampStable","visibleWidth","visitParamExtractBool","visitParamExtractFloat","visitParamExtractInt","visitParamExtractRaw","visitParamExtractString","visitParamExtractUInt","visitParamHas","welchTTest","windowFunnel","wkt","wordShingleMinHash","wordShingleMinHashArg","wordShingleMinHashArgCaseInsensitive","wordShingleMinHashArgCaseInsensitiveUTF8","wordShingleMinHashArgUTF8","wordShingleMinHashCaseInsensitive","wordShingleMinHashCaseInsensitiveUTF8","wordShingleMinHashUTF8","wordShingleSimHash","wordShingleSimHashCaseInsensitive","wordShingleSimHashCaseInsensitiveUTF8","wordShingleSimHashUTF8","xor","xxHash32","xxHash64","yandexConsistentHash","yesterday","YPathArrayBoolean","YPathArrayBooleanStrict","YPathArrayDouble","YPathArrayDoubleStrict","YPathArrayInt64","YPathArrayInt64Strict","YPathArrayUInt64","YPathArrayUInt64Strict","YPathBoolean","YPathBooleanStrict","YPathDouble","YPathDoubleStrict","YPathExtract","YPathExtractStrict","YPathInt64","YPathInt64Strict","YPathRaw","YPathRawStrict","YPathString","YPathStringStrict","YPathUInt64","YPathUInt64Strict","YSONExtract","YSONExtractArrayRaw","YSONExtractBool","YSONExtractFloat","YSONExtractInt","YSONExtractKeysAndValues","YSONExtractKeysAndValuesRaw","YSONExtractRaw","YSONExtractString","YSONExtractUInt","YSONHas","YSONKey","YSONLength","YSONType"],o=["_CAST","abs","acos","asin","atan","atan2","avg","bin","BIT_AND","BIT_OR","BIT_XOR","CAST","ceil","ceiling","char","CHAR_LENGTH","CHARACTER_LENGTH","coalesce","concat","connection_id","connectionId","corr","cos","count","countSubstrings","COVAR_POP","COVAR_SAMP","CRC32","CRC32IEEE","CRC64","DATABASE","DATE","date_trunc","dateDiff","dateName","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","dense_rank","exp","first_value","flatten","floor","FQDN","FROM_BASE64","greatest","hex","HOUR","hypot","if","ifNull","INET6_ATON","INET6_NTOA","INET_ATON","INET_NTOA","initial_query_id","isNull","last_value","lcase","least","length","ln","locate","log","log2","log10","lower","lpad","max","mid","min","MINUTE","mod","MONTH","not","now","now64","nth_value","nullIf","pi","position","pow","power","QUARTER","query_id","rand","rank","repeat","replace","reverse","round","row_number","rpad","SECOND","sign","sin","sqrt","STDDEV_POP","STDDEV_SAMP","substr","substring","sum","tan","tanh","TO_BASE64","trunc","truncate","ucase","unbin","unhex","upper","user","VAR_POP","VAR_SAMP","version","week","YEAR","yearweek"],s=["cluster","clusterAllReplicas","concatYtTables","concatYtTablesLike","concatYtTablesRange","concatYtTablesRegexp","dictionary","executable","file","generateRandom","input","jdbc","merge","null","numbers","numbers_mt","odbc","remote","remoteSecure","url","values","view","ytSubquery","zeros","zeros_mt"],l=["Buffer","Memory","YtTable"],c=["AggregateFunction","Array","Enum8","Enum16","FixedString","Float32","Float64","Int8","Int16","Int32","Int64","Int128","Int256","IntervalDay","IntervalHour","IntervalMinute","IntervalMonth","IntervalQuarter","IntervalSecond","IntervalWeek","IntervalYear","IPv4","IPv6","LowCardinality","Map","MultiPolygon","Nested","Nothing","Nullable","Point","Polygon","Ring","SimpleAggregateFunction","String","Tuple","UInt8","UInt16","UInt32","UInt64","UInt128","UInt256","UUID","YtBoolean"],u=["BIGINT","BIGINT SIGNED","BIGINT UNSIGNED","BINARY","BINARY LARGE OBJECT","BINARY VARYING","BLOB","BOOL","BOOLEAN","BYTE","BYTEA","CHAR","CHAR LARGE OBJECT","CHAR VARYING","CHARACTER","CHARACTER LARGE OBJECT","CHARACTER VARYING","CLOB","DEC","DOUBLE","DOUBLE PRECISION","Date","Date32","DateTime","DateTime32","DateTime64","Decimal","Decimal128","Decimal256","Decimal32","Decimal64","ENUM","Enum","FIXED","FLOAT","INET4","INET6","INT","INT SIGNED","INT UNSIGNED","INT1","INT1 SIGNED","INT1 UNSIGNED","INTEGER","INTEGER SIGNED","INTEGER UNSIGNED","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMINT SIGNED","MEDIUMINT UNSIGNED","MEDIUMTEXT","NATIONAL CHAR","NATIONAL CHAR VARYING","NATIONAL CHARACTER","NATIONAL CHARACTER LARGE OBJECT","NATIONAL CHARACTER VARYING","NCHAR","NCHAR LARGE OBJECT","NCHAR VARYING","NUMERIC","NVARCHAR","REAL","SINGLE","SMALLINT","SMALLINT SIGNED","SMALLINT UNSIGNED","TEXT","TIMESTAMP","TINYBLOB","TINYINT","TINYINT SIGNED","TINYINT UNSIGNED","TINYTEXT","VARCHAR","VARCHAR2"],m={keywordList:r.concat(["GROUP BY","ON CLUSTER","ORDER BY","LIMIT","RENAME TABLE","IF NOT EXISTS","IF EXISTS","FORMAT Vertical","FORMAT JSONCompact","FORMAT JSONEachRow","FORMAT TSKV","FORMAT TabSeparatedWithNames","FORMAT TabSeparatedWithNamesAndTypes","FORMAT TabSeparatedRaw","FORMAT BlockTabSeparated","FORMAT CSVWithNames","FORMAT CSV","FORMAT JSON","FORMAT TabSeparated"]),constantList:n,typeParameterList:c.concat(u,l),functionList:i.concat(o,s)},I={comments:{lineComment:"--",blockComment:["```","```"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},T=A(r),S=A(u.filter((t=>/^\S*$/.test(t))));const d=A(o),g={defaultToken:"text",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],keywords:r,keywordsDouble:[`${p("GROUP")}\\W+${p("BY")}`,`${p("ON")}\\W+${p("CLUSTER")}`,`${p("ORDER")}\\W+${p("BY")}`,`${p("LIMIT")}\\W+\\d+\\W*,\\W*\\d+`,`${p("LIMIT")}\\W+\\d+\\W+${p("BY")}\\W+`,`${p("LIMIT")}\\W+\\d+`,`${p("RENAME")}\\W+${p("TABLE")}`,`${p("IF")}\\W+${p("NOT")}\\W+${p("EXISTS")}`,`${p("IF")}\\W+${p("EXISTS")}`,`${p("FORMAT")}\\W+Vertical`,`${p("FORMAT")}\\W+JSONCompact`,`${p("FORMAT")}\\W+JSONEachRow`,`${p("FORMAT")}\\W+TSKV`,`${p("FORMAT")}\\W+TabSeparatedWithNames`,`${p("FORMAT")}\\W+TabSeparatedWithNamesAndTypes`,`${p("FORMAT")}\\W+TabSeparatedRaw`,`${p("FORMAT")}\\W+BlockTabSeparated`,`${p("FORMAT")}\\W+CSVWithNames`,`${p("FORMAT")}\\W+CSV`,`${p("FORMAT")}\\W+JSON`,`${p("FORMAT")}\\W+TabSeparated`].join("|"),typeKeywords:c,typeKeywordsDouble:A(function(t){return t.filter((t=>/\s/.test(t))).sort(((t,e)=>e.localeCompare(t)))}(u)),constants:n,builtinFunctions:i,tableFunctions:s,tableEngines:l,operators:["+","-","/","//","%","<@>","@>","<@","&","^","~","<",">","<=","=>","==","!=","<>","="],symbols:/[=><!~?:&|+\-*/^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/[\w]+(?:\[[\w\]+]|[=-]>\w+)?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@numbers"},{include:"@strings"},[/[$@:](@variables)/,"variable"],[/{(@variables)}/,"variable"],[/[?;,.]/,"delimiter"],[/[(){}[\]]/,"@brackets"],[/@keywordsDouble/,"keyword"],[/@typeKeywordsDouble/,"keyword.type"],[/[a-zA-Z_$][\w$]*/,{cases:{[T]:{token:"keyword"},"@constants":{token:"constant"},"@builtinFunctions":{token:"constant.other.color"},[d]:{token:"constant.other.color"},"@tableFunctions":{token:"constant.other.color"},"@tableEngines":{token:"constant.other.color"},"@typeKeywords":{token:"keyword.type"},[S]:{token:"keyword.type"},"@default":"identifier"}}],[/@symbols/,{cases:{"@operators":"operator.sql","@default":""}}]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/```/,{token:"comment.quote",next:"@comment"}],[/\/\*/,{token:"comment.quote",next:"@cppComment"}]],comment:[[/[^`]+/,"comment"],[/```/,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],cppComment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/,"number"]],strings:[[/'/,{token:"string",next:"@stringSingle"}],[/"/,{token:"string.tablepath",next:"@stringDouble"}],[/`/,{token:"string.tablepath",next:"@stringBacktick"}]],stringSingle:[[/[^\\']/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^\\"]/,"string.tablepath"],[/@escapes/,"string.tablepath"],[/\\./,"string.tablepath"],[/"/,{token:"string.tablepath",next:"@pop"}]],stringBacktick:[[/[^\\`]/,"string.tablepath"],[/@escapes/,"string.tablepath"],[/\\./,"string.tablepath"],[/`/,{token:"string.tablepath",next:"@pop"}]]}};function p(t){return t.split("").map((t=>/[a-zA-Z]/.test(t)?`[${t.toLowerCase()}${t.toUpperCase()}]`:t)).join("")}function A(t){return`(${t.map((t=>p(t).replace(/\s+/g,"\\s"))).join("|")})`}}}]);
\ No newline at end of file +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6397],{66397:(t,e,a)=>{a.r(e),a.d(e,{completionLists:()=>m,conf:()=>I,language:()=>g});const r=["AND","ANY","AS","ASC","ATTACH","BETWEEN","CASE","CAST","CREATE","CROSS","DATABASE","DATABASES","DEFAULT","DELETE","DESC","DESCRIBE","DETACH","DISTINCT","DROP","ELSE","END","FOREIGN","FROM","GRANT","HAVING","IF","INNER","INSERT","JOIN","KEY","LEFT","NATURAL","NOT","OFFSET","ON","OPTIMIZE","OR","OUTER","PREWHERE","PRIMARY","PROCESSLIST","REFERENCES","RIGHT","SELECT","SHOW","TABLE","THEN","TO","TOTALS","TYPE","UNION","UPDATE","USE","WHEN","WHERE","WITH"],n=["true","false","NULL"],i=["__bitBoolMaskAnd","__bitBoolMaskOr","__bitSwapLastTwo","__bitWrapperFunc","__getScalar","accurate_Cast","accurate_CastOrNull","accurateCast","accurateCastOrNull","acosh","addDays","addHours","addMinutes","addMonths","addQuarters","addressToLine","addressToSymbol","addSeconds","addWeeks","addYears","aes_decrypt_mysql","aes_encrypt_mysql","aggThrow","alphaTokens","and","any","anyHeavy","anyLast","appendTrailingCharIfAbsent","argMax","argMin","array","arrayAll","arrayAUC","arrayAvg","arrayCompact","arrayConcat","arrayCount","arrayCumSum","arrayCumSumNonNegative","arrayDifference","arrayDistinct","arrayElement","arrayEnumerate","arrayEnumerateDense","arrayEnumerateDenseRanked","arrayEnumerateUniq","arrayEnumerateUniqRanked","arrayExists","arrayFill","arrayFilter","arrayFirst","arrayFirstIndex","arrayFlatten","arrayIntersect","arrayJoin","arrayMap","arrayMax","arrayMin","arrayPopBack","arrayPopFront","arrayProduct","arrayPushBack","arrayPushFront","arrayReduce","arrayReduceInRanges","arrayResize","arrayReverse","arrayReverseFill","arrayReverseSort","arrayReverseSplit","arraySlice","arraySort","arraySplit","arrayStringConcat","arraySum","arrayUniq","arrayWithConstant","arrayZip","asinh","assumeNotNull","atanh","avgWeighted","bar","base64Decode","base64Encode","basename","bitAnd","bitCount","bitHammingDistance","bitmaskToArray","bitmaskToList","bitNot","bitOr","bitPositionsToArray","bitRotateLeft","bitRotateRight","bitShiftLeft","bitShiftRight","bitTest","bitTestAll","bitTestAny","bitXor","blockNumber","blockSerializedSize","blockSize","boundingRatio","buildId","byteSize","caseWithExpr","caseWithExpression","caseWithoutExpr","caseWithoutExpression","categoricalInformationValue","cbrt","cityHash64","concatAssumeInjective","ConvertYson","corrStable","cosh","countDigits","countEqual","countMatches","countMatchesCaseInsensitive","countSubstringsCaseInsensitive","countSubstringsCaseInsensitiveUTF8","covarPop","covarPopStable","covarSamp","covarSampStable","currentDatabase","currentProfiles","currentRoles","currentUser","cutFragment","cutIPv6","cutQueryString","cutQueryStringAndFragment","cutToFirstSignificantSubdomain","cutToFirstSignificantSubdomainCustom","cutToFirstSignificantSubdomainCustomWithWWW","cutToFirstSignificantSubdomainWithWWW","cutURLParameter","cutWWW","dateTime64ToSnowflake","dateTimeToSnowflake","dateTrunc","decodeURLComponent","decodeXMLComponent","decrypt","defaultProfiles","defaultRoles","defaultValueOfArgumentType","defaultValueOfTypeName","deltaSum","deltaSumTimestamp","demangle","dictGet","dictGetChildren","dictGetDate","dictGetDateOrDefault","dictGetDateTime","dictGetDateTimeOrDefault","dictGetDescendants","dictGetFloat32","dictGetFloat32OrDefault","dictGetFloat64","dictGetFloat64OrDefault","dictGetHierarchy","dictGetInt8","dictGetInt8OrDefault","dictGetInt16","dictGetInt16OrDefault","dictGetInt32","dictGetInt32OrDefault","dictGetInt64","dictGetInt64OrDefault","dictGetOrDefault","dictGetOrNull","dictGetString","dictGetStringOrDefault","dictGetUInt8","dictGetUInt8OrDefault","dictGetUInt16","dictGetUInt16OrDefault","dictGetUInt32","dictGetUInt32OrDefault","dictGetUInt64","dictGetUInt64OrDefault","dictGetUUID","dictGetUUIDOrDefault","dictHas","dictIsIn","divide","domain","domainWithoutWWW","dumpColumnStructure","e","empty","emptyArrayDate","emptyArrayDateTime","emptyArrayFloat32","emptyArrayFloat64","emptyArrayInt8","emptyArrayInt16","emptyArrayInt32","emptyArrayInt64","emptyArrayString","emptyArrayToSingle","emptyArrayUInt8","emptyArrayUInt16","emptyArrayUInt32","emptyArrayUInt64","enabledProfiles","enabledRoles","encodeXMLComponent","encrypt","endsWith","entropy","equals","erf","erfc","errorCodeToName","evalMLMethod","exp2","exp10","extract","extractAll","extractAllGroups","extractAllGroupsHorizontal","extractAllGroupsVertical","extractGroups","extractTextFromHTML","extractURLParameter","extractURLParameterNames","extractURLParameters","farmFingerprint64","farmHash64","file","filesystemAvailable","filesystemCapacity","filesystemFree","finalizeAggregation","firstSignificantSubdomain","firstSignificantSubdomainCustom","format","formatDateTime","formatReadableQuantity","formatReadableSize","formatReadableTimeDelta","formatRow","formatRowNoNewline","fragment","FROM_UNIXTIME","fromModifiedJulianDay","fromModifiedJulianDayOrNull","fromUnixTimestamp","fromUnixTimestamp64Micro","fromUnixTimestamp64Milli","fromUnixTimestamp64Nano","fullHostName","fuzzBits","gcd","generateUUIDv4","geoDistance","geohashDecode","geohashEncode","geohashesInBox","geoToH3","getMacro","getServerPort","getSetting","getSizeOfEnumType","globalIn","globalInIgnoreSet","globalNotIn","globalNotInIgnoreSet","globalNotNullIn","globalNotNullInIgnoreSet","globalNullIn","globalNullInIgnoreSet","globalVariable","greatCircleAngle","greatCircleDistance","greater","greaterOrEquals","groupArray","groupArrayInsertAt","groupArrayMovingAvg","groupArrayMovingSum","groupArraySample","groupBitAnd","groupBitOr","groupBitXor","groupUniqArray","h3EdgeAngle","h3EdgeLengthM","h3GetBaseCell","h3GetResolution","h3HexAreaM2","h3IndexesAreNeighbors","h3IsValid","h3kRing","h3ToChildren","h3ToGeo","h3ToParent","h3ToString","halfMD5","has","hasAll","hasAny","hasColumnInTable","hasSubstr","hasThreadFuzzer","hasToken","hasTokenCaseInsensitive","histogram","hiveHash","hostName","hostname","identity","ifNotFinite","ignore","ilike","in","indexHint","indexOf","inIgnoreSet","initializeAggregation","initialQueryID","intDiv","intDivOrZero","intervalLengthSum","intExp2","intExp10","intHash32","intHash64","IPv4CIDRToRange","IPv4NumToString","IPv4NumToStringClassC","IPv4StringToNum","IPv4ToIPv6","IPv6CIDRToRange","IPv6NumToString","IPv6StringToNum","isConstant","isDecimalOverflow","isFinite","isInfinite","isIPAddressInRange","isIPv4String","isIPv6String","isNaN","isNotNull","isValidJSON","isValidUTF8","isZeroOrNull","javaHash","javaHashUTF16LE","joinGet","joinGetOrNull","JSON_EXISTS","JSON_QUERY","JSON_VALUE","JSONExtract","JSONExtractArrayRaw","JSONExtractBool","JSONExtractFloat","JSONExtractInt","JSONExtractKeysAndValues","JSONExtractKeysAndValuesRaw","JSONExtractRaw","JSONExtractString","JSONExtractUInt","JSONHas","JSONKey","JSONLength","JSONType","jumpConsistentHash","kurtPop","kurtSamp","lagInFrame","lcm","leadInFrame","leftPad","leftPadUTF8","lengthUTF8","less","lessOrEquals","lgamma","like","log1p","logTrace","lowCardinalityIndices","lowCardinalityKeys","lowerUTF8","MACNumToString","MACStringToNum","MACStringToOUI","mannWhitneyUTest","map","mapAdd","mapContains","mapKeys","mapPopulateSeries","mapSubtract","mapValues","match","materialize","maxIntersections","maxIntersectionsPosition","maxMap","MD5","median","medianBFloat16","medianBFloat16Weighted","medianDeterministic","medianExact","medianExactHigh","medianExactLow","medianExactWeighted","medianTDigest","medianTDigestWeighted","medianTiming","medianTimingWeighted","metroHash64","minMap","minus","modelEvaluate","modulo","moduloLegacy","moduloOrZero","multiFuzzyMatchAllIndices","multiFuzzyMatchAny","multiFuzzyMatchAnyIndex","multiIf","multiMatchAllIndices","multiMatchAny","multiMatchAnyIndex","multiply","multiSearchAllPositions","multiSearchAllPositionsCaseInsensitive","multiSearchAllPositionsCaseInsensitiveUTF8","multiSearchAllPositionsUTF8","multiSearchAny","multiSearchAnyCaseInsensitive","multiSearchAnyCaseInsensitiveUTF8","multiSearchAnyUTF8","multiSearchFirstIndex","multiSearchFirstIndexCaseInsensitive","multiSearchFirstIndexCaseInsensitiveUTF8","multiSearchFirstIndexUTF8","multiSearchFirstPosition","multiSearchFirstPositionCaseInsensitive","multiSearchFirstPositionCaseInsensitiveUTF8","multiSearchFirstPositionUTF8","negate","neighbor","netloc","ngramDistance","ngramDistanceCaseInsensitive","ngramDistanceCaseInsensitiveUTF8","ngramDistanceUTF8","ngramMinHash","ngramMinHashArg","ngramMinHashArgCaseInsensitive","ngramMinHashArgCaseInsensitiveUTF8","ngramMinHashArgUTF8","ngramMinHashCaseInsensitive","ngramMinHashCaseInsensitiveUTF8","ngramMinHashUTF8","ngramSearch","ngramSearchCaseInsensitive","ngramSearchCaseInsensitiveUTF8","ngramSearchUTF8","ngramSimHash","ngramSimHashCaseInsensitive","ngramSimHashCaseInsensitiveUTF8","ngramSimHashUTF8","normalizedQueryHash","normalizedQueryHashKeepNames","normalizeQuery","normalizeQueryKeepNames","notEmpty","notEquals","notILike","notIn","notInIgnoreSet","notLike","notNullIn","notNullInIgnoreSet","nullIn","nullInIgnoreSet","or","parseDateTime32BestEffort","parseDateTime32BestEffortOrNull","parseDateTime32BestEffortOrZero","parseDateTime64BestEffort","parseDateTime64BestEffortOrNull","parseDateTime64BestEffortOrZero","parseDateTimeBestEffort","parseDateTimeBestEffortOrNull","parseDateTimeBestEffortOrZero","parseDateTimeBestEffortUS","parseDateTimeBestEffortUSOrNull","parseDateTimeBestEffortUSOrZero","partitionId","path","pathFull","plus","pointInEllipses","pointInPolygon","polygonAreaCartesian","polygonAreaSpherical","polygonConvexHullCartesian","polygonPerimeterCartesian","polygonPerimeterSpherical","polygonsDistanceCartesian","polygonsDistanceSpherical","polygonsEqualsCartesian","polygonsIntersectionCartesian","polygonsIntersectionSpherical","polygonsSymDifferenceCartesian","polygonsSymDifferenceSpherical","polygonsUnionCartesian","polygonsUnionSpherical","polygonsWithinCartesian","polygonsWithinSpherical","port","positionCaseInsensitive","positionCaseInsensitiveUTF8","positionUTF8","protocol","quantile","quantileBFloat16","quantileBFloat16Weighted","quantileDeterministic","quantileExact","quantileExactExclusive","quantileExactHigh","quantileExactInclusive","quantileExactLow","quantileExactWeighted","quantiles","quantilesBFloat16","quantilesBFloat16Weighted","quantilesDeterministic","quantilesExact","quantilesExactExclusive","quantilesExactHigh","quantilesExactInclusive","quantilesExactLow","quantilesExactWeighted","quantilesTDigest","quantilesTDigestWeighted","quantilesTiming","quantilesTimingWeighted","quantileTDigest","quantileTDigestWeighted","quantileTiming","quantileTimingWeighted","queryID","queryString","queryStringAndFragment","rand32","rand64","randConstant","randomFixedString","randomPrintableASCII","randomString","randomStringUTF8","range","rankCorr","readWktMultiPolygon","readWktPoint","readWktPolygon","readWktRing","regexpQuoteMeta","regionHierarchy","regionIn","regionToArea","regionToCity","regionToContinent","regionToCountry","regionToDistrict","regionToName","regionToPopulation","regionToTopContinent","reinterpret","reinterpretAsDate","reinterpretAsDateTime","reinterpretAsFixedString","reinterpretAsFloat32","reinterpretAsFloat64","reinterpretAsInt8","reinterpretAsInt16","reinterpretAsInt32","reinterpretAsInt64","reinterpretAsInt128","reinterpretAsInt256","reinterpretAsString","reinterpretAsUInt8","reinterpretAsUInt16","reinterpretAsUInt32","reinterpretAsUInt64","reinterpretAsUInt128","reinterpretAsUInt256","reinterpretAsUUID","replaceAll","replaceOne","replaceRegexpAll","replaceRegexpOne","replicate","retention","reverseUTF8","rightPad","rightPadUTF8","roundAge","roundBankers","roundDown","roundDuration","roundToExp2","rowNumberInAllBlocks","rowNumberInBlock","runningAccumulate","runningConcurrency","runningDifference","runningDifferenceStartingWithFirstValue","sequenceCount","sequenceMatch","sequenceNextNode","serverUUID","SHA1","SHA224","SHA256","SHA512","shardCount","shardNum","sigmoid","simpleJSONExtractBool","simpleJSONExtractFloat","simpleJSONExtractInt","simpleJSONExtractRaw","simpleJSONExtractString","simpleJSONExtractUInt","simpleJSONHas","simpleLinearRegression","singleValueOrNull","sinh","sipHash64","sipHash128","skewPop","skewSamp","sleep","sleepEachRow","snowflakeToDateTime","snowflakeToDateTime64","splitByChar","splitByNonAlpha","splitByRegexp","splitByString","splitByWhitespace","startsWith","stddevPop","stddevPopStable","stddevSamp","stddevSampStable","stochasticLinearRegression","stochasticLogisticRegression","stringToH3","studentTTest","substringUTF8","subtractDays","subtractHours","subtractMinutes","subtractMonths","subtractQuarters","subtractSeconds","subtractWeeks","subtractYears","sumCount","sumKahan","sumMap","sumMapFiltered","sumMapFilteredWithOverflow","sumMapWithOverflow","sumWithOverflow","svg","tcpPort","tgamma","throwIf","tid","timeSlot","timeSlots","timeZone","timezone","timeZoneOf","timezoneOf","timeZoneOffset","timezoneOffset","toColumnTypeName","toDate","toDate32","toDate32OrNull","toDate32OrZero","toDateOrNull","toDateOrZero","toDateTime","toDateTime32","toDateTime64","toDateTime64OrNull","toDateTime64OrZero","toDateTimeOrNull","toDateTimeOrZero","today","toDayOfMonth","toDayOfWeek","toDayOfYear","toDecimal32","toDecimal32OrNull","toDecimal32OrZero","toDecimal64","toDecimal64OrNull","toDecimal64OrZero","toDecimal128","toDecimal128OrNull","toDecimal128OrZero","toDecimal256","toDecimal256OrNull","toDecimal256OrZero","toFixedString","toFloat32","toFloat32OrNull","toFloat32OrZero","toFloat64","toFloat64OrNull","toFloat64OrZero","toHour","toInt8","toInt8OrNull","toInt8OrZero","toInt16","toInt16OrNull","toInt16OrZero","toInt32","toInt32OrNull","toInt32OrZero","toInt64","toInt64OrNull","toInt64OrZero","toInt128","toInt128OrNull","toInt128OrZero","toInt256","toInt256OrNull","toInt256OrZero","toIntervalDay","toIntervalHour","toIntervalMinute","toIntervalMonth","toIntervalQuarter","toIntervalSecond","toIntervalWeek","toIntervalYear","toIPv4","toIPv6","toISOWeek","toISOYear","toJSONString","toLowCardinality","toMinute","toModifiedJulianDay","toModifiedJulianDayOrNull","toMonday","toMonth","toNullable","topK","topKWeighted","topLevelDomain","toQuarter","toRelativeDayNum","toRelativeHourNum","toRelativeMinuteNum","toRelativeMonthNum","toRelativeQuarterNum","toRelativeSecondNum","toRelativeWeekNum","toRelativeYearNum","toSecond","toStartOfDay","toStartOfFifteenMinutes","toStartOfFiveMinute","toStartOfHour","toStartOfInterval","toStartOfISOYear","toStartOfMinute","toStartOfMonth","toStartOfQuarter","toStartOfSecond","toStartOfTenMinutes","toStartOfWeek","toStartOfYear","toString","toStringCutToZero","toTime","toTimeZone","toTimezone","toTypeName","toUInt8","toUInt8OrNull","toUInt8OrZero","toUInt16","toUInt16OrNull","toUInt16OrZero","toUInt32","toUInt32OrNull","toUInt32OrZero","toUInt64","toUInt64OrNull","toUInt64OrZero","toUInt128","toUInt128OrNull","toUInt128OrZero","toUInt256","toUInt256OrNull","toUInt256OrZero","toUnixTimestamp","toUnixTimestamp64Micro","toUnixTimestamp64Milli","toUnixTimestamp64Nano","toUUID","toUUIDOrNull","toUUIDOrZero","toValidUTF8","toWeek","toYear","toYearWeek","toYYYYMM","toYYYYMMDD","toYYYYMMDDhhmmss","transform","trimBoth","trimLeft","trimRight","tryBase64Decode","tuple","tupleElement","tupleHammingDistance","tupleToNameValuePairs","uniq","uniqCombined","uniqCombined64","uniqExact","uniqHLL12","uniqUpTo","upperUTF8","uptime","URLHash","URLHierarchy","URLPathHierarchy","UUIDNumToString","UUIDStringToNum","validateNestedArraySizes","varPop","varPopStable","varSamp","varSampStable","visibleWidth","visitParamExtractBool","visitParamExtractFloat","visitParamExtractInt","visitParamExtractRaw","visitParamExtractString","visitParamExtractUInt","visitParamHas","welchTTest","windowFunnel","wkt","wordShingleMinHash","wordShingleMinHashArg","wordShingleMinHashArgCaseInsensitive","wordShingleMinHashArgCaseInsensitiveUTF8","wordShingleMinHashArgUTF8","wordShingleMinHashCaseInsensitive","wordShingleMinHashCaseInsensitiveUTF8","wordShingleMinHashUTF8","wordShingleSimHash","wordShingleSimHashCaseInsensitive","wordShingleSimHashCaseInsensitiveUTF8","wordShingleSimHashUTF8","xor","xxHash32","xxHash64","yandexConsistentHash","yesterday","YPathArrayBoolean","YPathArrayBooleanStrict","YPathArrayDouble","YPathArrayDoubleStrict","YPathArrayInt64","YPathArrayInt64Strict","YPathArrayUInt64","YPathArrayUInt64Strict","YPathBoolean","YPathBooleanStrict","YPathDouble","YPathDoubleStrict","YPathExtract","YPathExtractStrict","YPathInt64","YPathInt64Strict","YPathRaw","YPathRawStrict","YPathString","YPathStringStrict","YPathUInt64","YPathUInt64Strict","YSONExtract","YSONExtractArrayRaw","YSONExtractBool","YSONExtractFloat","YSONExtractInt","YSONExtractKeysAndValues","YSONExtractKeysAndValuesRaw","YSONExtractRaw","YSONExtractString","YSONExtractUInt","YSONHas","YSONKey","YSONLength","YSONType"],o=["_CAST","abs","acos","asin","atan","atan2","avg","bin","BIT_AND","BIT_OR","BIT_XOR","CAST","ceil","ceiling","char","CHAR_LENGTH","CHARACTER_LENGTH","coalesce","concat","connection_id","connectionId","corr","cos","count","countSubstrings","COVAR_POP","COVAR_SAMP","CRC32","CRC32IEEE","CRC64","DATABASE","DATE","date_trunc","dateDiff","dateName","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","dense_rank","exp","first_value","flatten","floor","FQDN","FROM_BASE64","greatest","hex","HOUR","hypot","if","ifNull","INET6_ATON","INET6_NTOA","INET_ATON","INET_NTOA","initial_query_id","isNull","last_value","lcase","least","length","ln","locate","log","log2","log10","lower","lpad","max","mid","min","MINUTE","mod","MONTH","not","now","now64","nth_value","nullIf","pi","position","pow","power","QUARTER","query_id","rand","rank","repeat","replace","reverse","round","row_number","rpad","SECOND","sign","sin","sqrt","STDDEV_POP","STDDEV_SAMP","substr","substring","sum","tan","tanh","TO_BASE64","trunc","truncate","ucase","unbin","unhex","upper","user","VAR_POP","VAR_SAMP","version","week","YEAR","yearweek"],s=["cluster","clusterAllReplicas","concatYtTables","concatYtTablesLike","concatYtTablesRange","concatYtTablesRegexp","dictionary","executable","file","generateRandom","input","jdbc","merge","null","numbers","numbers_mt","odbc","remote","remoteSecure","url","values","view","ytSubquery","zeros","zeros_mt"],l=["Buffer","Memory","YtTable"],c=["AggregateFunction","Array","Enum8","Enum16","FixedString","Float32","Float64","Int8","Int16","Int32","Int64","Int128","Int256","IntervalDay","IntervalHour","IntervalMinute","IntervalMonth","IntervalQuarter","IntervalSecond","IntervalWeek","IntervalYear","IPv4","IPv6","LowCardinality","Map","MultiPolygon","Nested","Nothing","Nullable","Point","Polygon","Ring","SimpleAggregateFunction","String","Tuple","UInt8","UInt16","UInt32","UInt64","UInt128","UInt256","UUID","YtBoolean"],u=["BIGINT","BIGINT SIGNED","BIGINT UNSIGNED","BINARY","BINARY LARGE OBJECT","BINARY VARYING","BLOB","BOOL","BOOLEAN","BYTE","BYTEA","CHAR","CHAR LARGE OBJECT","CHAR VARYING","CHARACTER","CHARACTER LARGE OBJECT","CHARACTER VARYING","CLOB","DEC","DOUBLE","DOUBLE PRECISION","Date","Date32","DateTime","DateTime32","DateTime64","Decimal","Decimal128","Decimal256","Decimal32","Decimal64","ENUM","Enum","FIXED","FLOAT","INET4","INET6","INT","INT SIGNED","INT UNSIGNED","INT1","INT1 SIGNED","INT1 UNSIGNED","INTEGER","INTEGER SIGNED","INTEGER UNSIGNED","LONGBLOB","LONGTEXT","MEDIUMBLOB","MEDIUMINT","MEDIUMINT SIGNED","MEDIUMINT UNSIGNED","MEDIUMTEXT","NATIONAL CHAR","NATIONAL CHAR VARYING","NATIONAL CHARACTER","NATIONAL CHARACTER LARGE OBJECT","NATIONAL CHARACTER VARYING","NCHAR","NCHAR LARGE OBJECT","NCHAR VARYING","NUMERIC","NVARCHAR","REAL","SINGLE","SMALLINT","SMALLINT SIGNED","SMALLINT UNSIGNED","TEXT","TIMESTAMP","TINYBLOB","TINYINT","TINYINT SIGNED","TINYINT UNSIGNED","TINYTEXT","VARCHAR","VARCHAR2"],m={keywordList:r.concat(["GROUP BY","ON CLUSTER","ORDER BY","LIMIT","RENAME TABLE","IF NOT EXISTS","IF EXISTS","FORMAT Vertical","FORMAT JSONCompact","FORMAT JSONEachRow","FORMAT TSKV","FORMAT TabSeparatedWithNames","FORMAT TabSeparatedWithNamesAndTypes","FORMAT TabSeparatedRaw","FORMAT BlockTabSeparated","FORMAT CSVWithNames","FORMAT CSV","FORMAT JSON","FORMAT TabSeparated"]),constantList:n,typeParameterList:c.concat(u,l),functionList:i.concat(o,s)},I={comments:{lineComment:"--",blockComment:["```","```"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},T=A(r),S=A(u.filter((t=>/^\S*$/.test(t))));const d=A(o),g={defaultToken:"text",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],keywords:r,keywordsDouble:[`${p("GROUP")}\\W+${p("BY")}`,`${p("ON")}\\W+${p("CLUSTER")}`,`${p("ORDER")}\\W+${p("BY")}`,`${p("LIMIT")}\\W+\\d+\\W*,\\W*\\d+`,`${p("LIMIT")}\\W+\\d+\\W+${p("BY")}\\W+`,`${p("LIMIT")}\\W+\\d+`,`${p("RENAME")}\\W+${p("TABLE")}`,`${p("IF")}\\W+${p("NOT")}\\W+${p("EXISTS")}`,`${p("IF")}\\W+${p("EXISTS")}`,`${p("FORMAT")}\\W+Vertical`,`${p("FORMAT")}\\W+JSONCompact`,`${p("FORMAT")}\\W+JSONEachRow`,`${p("FORMAT")}\\W+TSKV`,`${p("FORMAT")}\\W+TabSeparatedWithNames`,`${p("FORMAT")}\\W+TabSeparatedWithNamesAndTypes`,`${p("FORMAT")}\\W+TabSeparatedRaw`,`${p("FORMAT")}\\W+BlockTabSeparated`,`${p("FORMAT")}\\W+CSVWithNames`,`${p("FORMAT")}\\W+CSV`,`${p("FORMAT")}\\W+JSON`,`${p("FORMAT")}\\W+TabSeparated`].join("|"),typeKeywords:c,typeKeywordsDouble:A(function(t){return t.filter((t=>/\s/.test(t))).sort(((t,e)=>e.localeCompare(t)))}(u)),constants:n,builtinFunctions:i,tableFunctions:s,tableEngines:l,operators:["+","-","/","//","%","<@>","@>","<@","&","^","~","<",">","<=","=>","==","!=","<>","="],symbols:/[=><!~?:&|+\-*/^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/[\w]+(?:\[[\w\]+]|[=-]>\w+)?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@numbers"},{include:"@strings"},[/[$@:](@variables)/,"variable"],[/{(@variables)}/,"variable"],[/[?;,.]/,"delimiter"],[/[(){}[\]]/,"@brackets"],[/@keywordsDouble/,"keyword"],[/@typeKeywordsDouble/,"keyword.type"],[/[a-zA-Z_$][\w$]*/,{cases:{[T]:{token:"keyword"},"@constants":{token:"constant"},"@builtinFunctions":{token:"constant.other.color"},[d]:{token:"constant.other.color"},"@tableFunctions":{token:"constant.other.color"},"@tableEngines":{token:"constant.other.color"},"@typeKeywords":{token:"keyword.type"},[S]:{token:"keyword.type"},"@default":"identifier"}}],[/@symbols/,{cases:{"@operators":"operator.sql","@default":""}}]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/```/,{token:"comment.quote",next:"@comment"}],[/\/\*/,{token:"comment.quote",next:"@cppComment"}]],comment:[[/[^`]+/,"comment"],[/```/,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],cppComment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/,"number"]],strings:[[/'/,{token:"string",next:"@stringSingle"}],[/"/,{token:"string.tablepath",next:"@stringDouble"}],[/`/,{token:"string.tablepath",next:"@stringBacktick"}]],stringSingle:[[/[^\\']/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^\\"]/,"string.tablepath"],[/@escapes/,"string.tablepath"],[/\\./,"string.tablepath"],[/"/,{token:"string.tablepath",next:"@pop"}]],stringBacktick:[[/[^\\`]/,"string.tablepath"],[/@escapes/,"string.tablepath"],[/\\./,"string.tablepath"],[/`/,{token:"string.tablepath",next:"@pop"}]]}};function p(t){return t.split("").map((t=>/[a-zA-Z]/.test(t)?`[${t.toLowerCase()}${t.toUpperCase()}]`:t)).join("")}function A(t){return`(${t.map((t=>p(t).replace(/\s+/g,"\\s"))).join("|")})`}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6447.08677ae3.chunk.js b/ydb/core/viewer/monitoring/static/js/6447.08677ae3.chunk.js deleted file mode 100644 index 12d11b2b592..00000000000 --- a/ydb/core/viewer/monitoring/static/js/6447.08677ae3.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6447.08677ae3.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6447],{66447:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>gt,DefinitionAdapter:()=>Ct,DiagnosticsAdapter:()=>ut,DocumentColorAdapter:()=>Mt,DocumentFormattingEditProvider:()=>Rt,DocumentHighlightAdapter:()=>_t,DocumentLinkAdapter:()=>Tt,DocumentRangeFormattingEditProvider:()=>Dt,DocumentSymbolAdapter:()=>xt,FoldingRangeAdapter:()=>jt,HoverAdapter:()=>vt,ReferenceAdapter:()=>Et,RenameAdapter:()=>At,SelectionRangeAdapter:()=>Ft,WorkerManager:()=>se,fromPosition:()=>lt,fromRange:()=>ht,getWorker:()=>nn,setupMode:()=>on,toRange:()=>ft,toTextEdit:()=>mt});var r,i,o=n(32858),a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of c(t))u.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},g={};d(g,r=o,"default"),i&&d(i,r,"default");var l,h,f,p,m,v,b,k,_,w,C,y,E,A,x,I,S,T,R,D,P,M,j,L,F,O,N,W,U,V,H,K,z,q,X,B,$,J,Q,G,Y,Z,ee,te,ne,re,ie,oe,ae,se=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=g.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(h=l||(l={})).MIN_VALUE=-2147483648,h.MAX_VALUE=2147483647,(p=f||(f={})).MIN_VALUE=0,p.MAX_VALUE=2147483647,(v=m||(m={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=f.MAX_VALUE),t===Number.MAX_VALUE&&(t=f.MAX_VALUE),{line:e,character:t}},v.is=function(e){var t=e;return st.objectLiteral(t)&&st.uinteger(t.line)&&st.uinteger(t.character)},(k=b||(b={})).create=function(e,t,n,r){if(st.uinteger(e)&&st.uinteger(t)&&st.uinteger(n)&&st.uinteger(r))return{start:m.create(e,t),end:m.create(n,r)};if(m.is(e)&&m.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},k.is=function(e){var t=e;return st.objectLiteral(t)&&m.is(t.start)&&m.is(t.end)},(w=_||(_={})).create=function(e,t){return{uri:e,range:t}},w.is=function(e){var t=e;return st.defined(t)&&b.is(t.range)&&(st.string(t.uri)||st.undefined(t.uri))},(y=C||(C={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},y.is=function(e){var t=e;return st.defined(t)&&b.is(t.targetRange)&&st.string(t.targetUri)&&(b.is(t.targetSelectionRange)||st.undefined(t.targetSelectionRange))&&(b.is(t.originSelectionRange)||st.undefined(t.originSelectionRange))},(A=E||(E={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},A.is=function(e){var t=e;return st.numberRange(t.red,0,1)&&st.numberRange(t.green,0,1)&&st.numberRange(t.blue,0,1)&&st.numberRange(t.alpha,0,1)},(I=x||(x={})).create=function(e,t){return{range:e,color:t}},I.is=function(e){var t=e;return b.is(t.range)&&E.is(t.color)},(T=S||(S={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},T.is=function(e){var t=e;return st.string(t.label)&&(st.undefined(t.textEdit)||q.is(t))&&(st.undefined(t.additionalTextEdits)||st.typedArray(t.additionalTextEdits,q.is))},(D=R||(R={})).Comment="comment",D.Imports="imports",D.Region="region",(M=P||(P={})).create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return st.defined(n)&&(o.startCharacter=n),st.defined(r)&&(o.endCharacter=r),st.defined(i)&&(o.kind=i),o},M.is=function(e){var t=e;return st.uinteger(t.startLine)&&st.uinteger(t.startLine)&&(st.undefined(t.startCharacter)||st.uinteger(t.startCharacter))&&(st.undefined(t.endCharacter)||st.uinteger(t.endCharacter))&&(st.undefined(t.kind)||st.string(t.kind))},(L=j||(j={})).create=function(e,t){return{location:e,message:t}},L.is=function(e){var t=e;return st.defined(t)&&_.is(t.location)&&st.string(t.message)},(O=F||(F={})).Error=1,O.Warning=2,O.Information=3,O.Hint=4,(W=N||(N={})).Unnecessary=1,W.Deprecated=2,(U||(U={})).is=function(e){var t=e;return void 0!==t&&null!==t&&st.string(t.href)},(H=V||(V={})).create=function(e,t,n,r,i,o){var a={range:e,message:t};return st.defined(n)&&(a.severity=n),st.defined(r)&&(a.code=r),st.defined(i)&&(a.source=i),st.defined(o)&&(a.relatedInformation=o),a},H.is=function(e){var t,n=e;return st.defined(n)&&b.is(n.range)&&st.string(n.message)&&(st.number(n.severity)||st.undefined(n.severity))&&(st.integer(n.code)||st.string(n.code)||st.undefined(n.code))&&(st.undefined(n.codeDescription)||st.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(st.string(n.source)||st.undefined(n.source))&&(st.undefined(n.relatedInformation)||st.typedArray(n.relatedInformation,j.is))},(z=K||(K={})).create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return st.defined(n)&&n.length>0&&(i.arguments=n),i},z.is=function(e){var t=e;return st.defined(t)&&st.string(t.title)&&st.string(t.command)},(X=q||(q={})).replace=function(e,t){return{range:e,newText:t}},X.insert=function(e,t){return{range:{start:e,end:e},newText:t}},X.del=function(e){return{range:e,newText:""}},X.is=function(e){var t=e;return st.objectLiteral(t)&&st.string(t.newText)&&b.is(t.range)},($=B||(B={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},$.is=function(e){var t=e;return void 0!==t&&st.objectLiteral(t)&&st.string(t.label)&&(st.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(st.string(t.description)||void 0===t.description)},(J||(J={})).is=function(e){return"string"===typeof e},(G=Q||(Q={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},G.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},G.del=function(e,t){return{range:e,newText:"",annotationId:t}},G.is=function(e){var t=e;return q.is(t)&&(B.is(t.annotationId)||J.is(t.annotationId))},(Z=Y||(Y={})).create=function(e,t){return{textDocument:e,edits:t}},Z.is=function(e){var t=e;return st.defined(t)&&le.is(t.textDocument)&&Array.isArray(t.edits)},(te=ee||(ee={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},te.is=function(e){var t=e;return t&&"create"===t.kind&&st.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||st.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||st.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(re=ne||(ne={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},re.is=function(e){var t=e;return t&&"rename"===t.kind&&st.string(t.oldUri)&&st.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||st.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||st.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},oe.is=function(e){var t=e;return t&&"delete"===t.kind&&st.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||st.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||st.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(ae||(ae={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return st.string(e.kind)?ee.is(e)||ne.is(e)||ie.is(e):Y.is(e)})))};var ce,ue,de,ge,le,he,fe,pe,me,ve,be,ke,_e,we,Ce,ye,Ee,Ae,xe,Ie,Se,Te,Re,De,Pe,Me,je,Le,Fe,Oe,Ne,We,Ue,Ve,He,Ke,ze,qe,Xe,Be,$e,Je,Qe,Ge,Ye,Ze,et,tt,nt,rt,it,ot=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=q.insert(e,t):J.is(n)?(i=n,r=Q.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Q.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=q.replace(e,t):J.is(n)?(i=n,r=Q.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Q.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=q.del(e):J.is(t)?(r=t,n=Q.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=Q.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),at=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(J.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new at(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Y.is(e)){var n=new ot(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ot(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(le.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new ot(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ot(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new at,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(B.is(t)||J.is(t)?r=t:n=t,void 0===r?i=ee.create(e,n):(o=J.is(r)?r:this._changeAnnotations.manage(r),i=ee.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(B.is(n)||J.is(n)?i=n:r=n,void 0===i?o=ne.create(e,t,r):(a=J.is(i)?i:this._changeAnnotations.manage(i),o=ne.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(B.is(t)||J.is(t)?r=t:n=t,void 0===r?i=ie.create(e,n):(o=J.is(r)?r:this._changeAnnotations.manage(r),i=ie.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}();(ue=ce||(ce={})).create=function(e){return{uri:e}},ue.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)},(ge=de||(de={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)&&st.integer(t.version)},(he=le||(le={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)&&(null===t.version||st.integer(t.version))},(pe=fe||(fe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},pe.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)&&st.string(t.languageId)&&st.integer(t.version)&&st.string(t.text)},(ve=me||(me={})).PlainText="plaintext",ve.Markdown="markdown",function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(me||(me={})),(be||(be={})).is=function(e){var t=e;return st.objectLiteral(e)&&me.is(t.kind)&&st.string(t.value)},(_e=ke||(ke={})).Text=1,_e.Method=2,_e.Function=3,_e.Constructor=4,_e.Field=5,_e.Variable=6,_e.Class=7,_e.Interface=8,_e.Module=9,_e.Property=10,_e.Unit=11,_e.Value=12,_e.Enum=13,_e.Keyword=14,_e.Snippet=15,_e.Color=16,_e.File=17,_e.Reference=18,_e.Folder=19,_e.EnumMember=20,_e.Constant=21,_e.Struct=22,_e.Event=23,_e.Operator=24,_e.TypeParameter=25,(Ce=we||(we={})).PlainText=1,Ce.Snippet=2,(ye||(ye={})).Deprecated=1,(Ae=Ee||(Ee={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Ae.is=function(e){var t=e;return t&&st.string(t.newText)&&b.is(t.insert)&&b.is(t.replace)},(Ie=xe||(xe={})).asIs=1,Ie.adjustIndentation=2,(Se||(Se={})).create=function(e){return{label:e}},(Te||(Te={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(De=Re||(Re={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},De.is=function(e){var t=e;return st.string(t)||st.objectLiteral(t)&&st.string(t.language)&&st.string(t.value)},(Pe||(Pe={})).is=function(e){var t=e;return!!t&&st.objectLiteral(t)&&(be.is(t.contents)||Re.is(t.contents)||st.typedArray(t.contents,Re.is))&&(void 0===e.range||b.is(e.range))},(Me||(Me={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(je||(je={})).create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return st.defined(t)&&(i.documentation=t),st.defined(n)?i.parameters=n:i.parameters=[],i},(Fe=Le||(Le={})).Text=1,Fe.Read=2,Fe.Write=3,(Oe||(Oe={})).create=function(e,t){var n={range:e};return st.number(t)&&(n.kind=t),n},(We=Ne||(Ne={})).File=1,We.Module=2,We.Namespace=3,We.Package=4,We.Class=5,We.Method=6,We.Property=7,We.Field=8,We.Constructor=9,We.Enum=10,We.Interface=11,We.Function=12,We.Variable=13,We.Constant=14,We.String=15,We.Number=16,We.Boolean=17,We.Array=18,We.Object=19,We.Key=20,We.Null=21,We.EnumMember=22,We.Struct=23,We.Event=24,We.Operator=25,We.TypeParameter=26,(Ue||(Ue={})).Deprecated=1,(Ve||(Ve={})).create=function(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(Ke=He||(He={})).create=function(e,t,n,r,i,o){var a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},Ke.is=function(e){var t=e;return t&&st.string(t.name)&&st.number(t.kind)&&b.is(t.range)&&b.is(t.selectionRange)&&(void 0===t.detail||st.string(t.detail))&&(void 0===t.deprecated||st.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(qe=ze||(ze={})).Empty="",qe.QuickFix="quickfix",qe.Refactor="refactor",qe.RefactorExtract="refactor.extract",qe.RefactorInline="refactor.inline",qe.RefactorRewrite="refactor.rewrite",qe.Source="source",qe.SourceOrganizeImports="source.organizeImports",qe.SourceFixAll="source.fixAll",(Be=Xe||(Xe={})).create=function(e,t){var n={diagnostics:e};return void 0!==t&&null!==t&&(n.only=t),n},Be.is=function(e){var t=e;return st.defined(t)&&st.typedArray(t.diagnostics,V.is)&&(void 0===t.only||st.typedArray(t.only,st.string))},(Je=$e||($e={})).create=function(e,t,n){var r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):K.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},Je.is=function(e){var t=e;return t&&st.string(t.title)&&(void 0===t.diagnostics||st.typedArray(t.diagnostics,V.is))&&(void 0===t.kind||st.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||K.is(t.command))&&(void 0===t.isPreferred||st.boolean(t.isPreferred))&&(void 0===t.edit||ae.is(t.edit))},(Ge=Qe||(Qe={})).create=function(e,t){var n={range:e};return st.defined(t)&&(n.data=t),n},Ge.is=function(e){var t=e;return st.defined(t)&&b.is(t.range)&&(st.undefined(t.command)||K.is(t.command))},(Ze=Ye||(Ye={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},Ze.is=function(e){var t=e;return st.defined(t)&&st.uinteger(t.tabSize)&&st.boolean(t.insertSpaces)},(tt=et||(et={})).create=function(e,t,n){return{range:e,target:t,data:n}},tt.is=function(e){var t=e;return st.defined(t)&&b.is(t.range)&&(st.undefined(t.target)||st.string(t.target))},(rt=nt||(nt={})).create=function(e,t){return{range:e,parent:t}},rt.is=function(e){var t=e;return void 0!==t&&b.is(t.range)&&(void 0===t.parent||rt.is(t.parent))},function(e){function t(e,n){if(e.length<=1)return e;var r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);for(var a=0,s=0,c=0;a<i.length&&s<o.length;){var u=n(i[a],o[s]);e[c++]=u<=0?i[a++]:o[s++]}for(;a<i.length;)e[c++]=i[a++];for(;s<o.length;)e[c++]=o[s++];return e}e.create=function(e,t,n,r){return new ct(e,t,n,r)},e.is=function(e){var t=e;return!!(st.defined(t)&&st.string(t.uri)&&(st.undefined(t.languageId)||st.string(t.languageId))&&st.uinteger(t.lineCount)&&st.func(t.getText)&&st.func(t.positionAt)&&st.func(t.offsetAt))},e.applyEdits=function(e,n){for(var r=e.getText(),i=t(n,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length,a=i.length-1;a>=0;a--){var s=i[a],c=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=o))throw new Error("Overlapping edit");r=r.substring(0,c)+s.newText+r.substring(u,r.length),o=c}return r}}(it||(it={}));var st,ct=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return m.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return m.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(st||(st={}));var ut=class{constructor(e,t,n){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const r=e=>{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{g.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(g.editor.onDidCreateModel(r)),this._disposables.push(g.editor.onWillDisposeModel(i)),this._disposables.push(g.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{g.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{g.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),g.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"===typeof t.code?String(t.code):t.code;return{severity:dt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=g.editor.getModel(e);i&&i.getLanguageId()===t&&g.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function dt(e){switch(e){case F.Error:return g.MarkerSeverity.Error;case F.Warning:return g.MarkerSeverity.Warning;case F.Information:return g.MarkerSeverity.Info;case F.Hint:return g.MarkerSeverity.Hint;default:return g.MarkerSeverity.Info}}var gt=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),lt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new g.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:pt(e.kind)};var n,r;return e.textEdit&&("undefined"!==typeof(r=e.textEdit).insert&&"undefined"!==typeof r.replace?t.range={insert:ft(e.textEdit.insert),replace:ft(e.textEdit.replace)}:t.range=ft(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(mt)),e.insertTextFormat===we.Snippet&&(t.insertTextRules=g.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function lt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ht(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function ft(e){if(e)return new g.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function pt(e){const t=g.languages.CompletionItemKind;switch(e){case ke.Text:return t.Text;case ke.Method:return t.Method;case ke.Function:return t.Function;case ke.Constructor:return t.Constructor;case ke.Field:return t.Field;case ke.Variable:return t.Variable;case ke.Class:return t.Class;case ke.Interface:return t.Interface;case ke.Module:return t.Module;case ke.Property:return t.Property;case ke.Unit:return t.Unit;case ke.Value:return t.Value;case ke.Enum:return t.Enum;case ke.Keyword:return t.Keyword;case ke.Snippet:return t.Snippet;case ke.Color:return t.Color;case ke.File:return t.File;case ke.Reference:return t.Reference}return t.Property}function mt(e){if(e)return{range:ft(e.range),text:e.newText}}var vt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),lt(t)))).then((e=>{if(e)return{range:ft(e.range),contents:kt(e.contents)}}))}};function bt(e){return"string"===typeof e?{value:e}:(t=e)&&"object"===typeof t&&"string"===typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function kt(e){if(e)return Array.isArray(e)?e.map(bt):[bt(e)]}var _t=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),lt(t)))).then((e=>{if(e)return e.map((e=>({range:ft(e.range),kind:wt(e.kind)})))}))}};function wt(e){switch(e){case Le.Read:return g.languages.DocumentHighlightKind.Read;case Le.Write:return g.languages.DocumentHighlightKind.Write;case Le.Text:return g.languages.DocumentHighlightKind.Text}return g.languages.DocumentHighlightKind.Text}var Ct=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),lt(t)))).then((e=>{if(e)return[yt(e)]}))}};function yt(e){return{uri:g.Uri.parse(e.uri),range:ft(e.range)}}var Et=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),lt(t)))).then((e=>{if(e)return e.map(yt)}))}},At=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),lt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=g.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:ft(i.range),text:i.newText}})}return{edits:t}}(e)))}};var xt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?It(e):{name:e.name,detail:"",containerName:e.containerName,kind:St(e.kind),range:ft(e.location.range),selectionRange:ft(e.location.range),tags:[]}))}))}};function It(e){return{name:e.name,detail:e.detail??"",kind:St(e.kind),range:ft(e.range),selectionRange:ft(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>It(e)))}}function St(e){let t=g.languages.SymbolKind;switch(e){case Ne.File:return t.File;case Ne.Module:return t.Module;case Ne.Namespace:return t.Namespace;case Ne.Package:return t.Package;case Ne.Class:return t.Class;case Ne.Method:return t.Method;case Ne.Property:return t.Property;case Ne.Field:return t.Field;case Ne.Constructor:return t.Constructor;case Ne.Enum:return t.Enum;case Ne.Interface:return t.Interface;case Ne.Function:return t.Function;case Ne.Variable:return t.Variable;case Ne.Constant:return t.Constant;case Ne.String:return t.String;case Ne.Number:return t.Number;case Ne.Boolean:return t.Boolean;case Ne.Array:return t.Array}return t.Function}var Tt=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:ft(e.range),url:e.target})))}}))}},Rt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,Pt(t)).then((e=>{if(e&&0!==e.length)return e.map(mt)}))))}},Dt=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),ht(t),Pt(n)).then((e=>{if(e&&0!==e.length)return e.map(mt)}))))}};function Pt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Mt=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:ft(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,ht(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=mt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(mt)),t}))}))}},jt=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(t.kind=function(e){switch(e){case R.Comment:return g.languages.FoldingRangeKind.Comment;case R.Imports:return g.languages.FoldingRangeKind.Imports;case R.Region:return g.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var Lt,Ft=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(lt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:ft(e.range)}),e=e.parent;return t}))}))}};function Ot(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Nt(e){return 10===e||13===e||8232===e||8233===e}function Wt(e){return e>=48&&e<=57}(Lt||(Lt={})).DEFAULT={allowTrailingComma:!1};var Ut=function(e,t){void 0===t&&(t=!1);var n=e.length,r=0,i="",o=0,a=16,s=0,c=0,u=0,d=0,g=0;function l(t,n){for(var i=0,o=0;i<t||!n;){var a=e.charCodeAt(r);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}r++,i++}return i<t&&(o=-1),o}function h(){if(i="",g=0,o=r,c=s,d=u,r>=n)return o=n,a=17;var t=e.charCodeAt(r);if(Ot(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(Ot(t));return a=15}if(Nt(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),s++,u=r,a=14;switch(t){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=function(){for(var t="",i=r;;){if(r>=n){t+=e.substring(i,r),g=2;break}var o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(Nt(o)){t+=e.substring(i,r),g=2;break}g=6}r++}else{if(t+=e.substring(i,r),++r>=n){g=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var a=l(4,!0);a>=0?t+=String.fromCharCode(a):g=4;break;default:g=5}i=r}}return t}(),a=10;case 47:var h=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!Nt(e.charCodeAt(r));)r++;return i=e.substring(h,r),a=12}if(42===e.charCodeAt(r+1)){r+=2;for(var p=n-1,m=!1;r<p;){var v=e.charCodeAt(r);if(42===v&&47===e.charCodeAt(r+1)){r+=2,m=!0;break}r++,Nt(v)&&(13===v&&10===e.charCodeAt(r)&&r++,s++,u=r)}return m||(r++,g=1),i=e.substring(h,r),a=13}return i+=String.fromCharCode(t),r++,a=16;case 45:if(i+=String.fromCharCode(t),++r===n||!Wt(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){var t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&Wt(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(!(++r<e.length&&Wt(e.charCodeAt(r))))return g=3,e.substring(t,r);for(r++;r<e.length&&Wt(e.charCodeAt(r));)r++}var n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if((++r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&Wt(e.charCodeAt(r))){for(r++;r<e.length&&Wt(e.charCodeAt(r));)r++;n=r}else g=3;return e.substring(t,n)}(),a=11;default:for(;r<n&&f(t);)r++,t=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r)){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(t),r++,a=16}}function f(e){if(Ot(e)||Nt(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,i="",o=0,a=16,g=0},getPosition:function(){return r},scan:t?function(){var e;do{e=h()}while(e>=12&&e<=15);return e}:h,getToken:function(){return a},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return o-d},getTokenError:function(){return g}}};function Vt(e){return{getInitialState:()=>new tn(null,null,!1,null),tokenize:(t,n)=>function(e,t,n,r=0){let i=0,o=!1;switch(n.scanError){case 2:t='"'+t,i=1;break;case 1:t="/*"+t,i=2}const a=Ut(t);let s=n.lastWasColon,c=n.parents;const u={tokens:[],endState:n.clone()};for(;;){let d=r+a.getPosition(),g="";const l=a.scan();if(17===l)break;if(d===r+a.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(a.getPosition(),3));switch(o&&(d-=i),o=i>0,l){case 1:c=en.push(c,0),g=Kt,s=!1;break;case 2:c=en.pop(c),g=Kt,s=!1;break;case 3:c=en.push(c,1),g=zt,s=!1;break;case 4:c=en.pop(c),g=zt,s=!1;break;case 6:g=qt,s=!0;break;case 5:g=Xt,s=!1;break;case 8:case 9:g=Bt,s=!1;break;case 7:g=$t,s=!1;break;case 10:const e=c?c.type:0;g=s||1===e?Jt:Gt,s=!1;break;case 11:g=Qt,s=!1}if(e)switch(l){case 12:g=Zt;break;case 13:g=Yt}u.endState=new tn(n.getStateData(),a.getTokenError(),s,c),u.tokens.push({startIndex:d,scopes:g})}return u}(e,t,n)}}var Ht,Kt="delimiter.bracket.json",zt="delimiter.array.json",qt="delimiter.colon.json",Xt="delimiter.comma.json",Bt="keyword.json",$t="keyword.json",Jt="string.value.json",Qt="number.json",Gt="string.key.json",Yt="comment.block.json",Zt="comment.line.json",en=class e{constructor(e,t){this.parent=e,this.type=t}static pop(e){return e?e.parent:null}static push(t,n){return new e(t,n)}static equals(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;for(;e&&t;){if(e===t)return!0;if(e.type!==t.type)return!1;e=e.parent,t=t.parent}return!0}},tn=class e{constructor(e,t,n,r){this._state=e,this.scanError=t,this.lastWasColon=n,this.parents=r}clone(){return new e(this._state,this.scanError,this.lastWasColon,this.parents)}equals(t){return t===this||!!(t&&t instanceof e)&&(this.scanError===t.scanError&&this.lastWasColon===t.lastWasColon&&en.equals(this.parents,t.parents))}getStateData(){return this._state}setStateData(e){this._state=e}};function nn(){return new Promise(((e,t)=>{if(!Ht)return t("JSON not registered!");e(Ht)}))}var rn=class extends ut{constructor(e,t,n){super(e,t,n.onDidChange),this._disposables.push(g.editor.onWillDisposeModel((e=>{this._resetSchema(e.uri)}))),this._disposables.push(g.editor.onDidChangeModelLanguage((e=>{this._resetSchema(e.model.uri)})))}_resetSchema(e){this._worker().then((t=>{t.resetSchema(e.toString())}))}};function on(e){const t=[],n=[],r=new se(e);function i(){const{languageId:t,modeConfiguration:r}=e;sn(n),r.documentFormattingEdits&&n.push(g.languages.registerDocumentFormattingEditProvider(t,new Rt(Ht))),r.documentRangeFormattingEdits&&n.push(g.languages.registerDocumentRangeFormattingEditProvider(t,new Dt(Ht))),r.completionItems&&n.push(g.languages.registerCompletionItemProvider(t,new gt(Ht,[" ",":",'"']))),r.hovers&&n.push(g.languages.registerHoverProvider(t,new vt(Ht))),r.documentSymbols&&n.push(g.languages.registerDocumentSymbolProvider(t,new xt(Ht))),r.tokens&&n.push(g.languages.setTokensProvider(t,Vt(!0))),r.colors&&n.push(g.languages.registerColorProvider(t,new Mt(Ht))),r.foldingRanges&&n.push(g.languages.registerFoldingRangeProvider(t,new jt(Ht))),r.diagnostics&&n.push(new rn(t,Ht,e)),r.selectionRanges&&n.push(g.languages.registerSelectionRangeProvider(t,new Ft(Ht)))}t.push(r),Ht=(...e)=>r.getLanguageServiceWorker(...e),i(),t.push(g.languages.setLanguageConfiguration(e.languageId,cn));let o=e.modeConfiguration;return e.onDidChange((e=>{e.modeConfiguration!==o&&(o=e.modeConfiguration,i())})),t.push(an(n)),an(t)}function an(e){return{dispose:()=>sn(e)}}function sn(e){for(;e.length;)e.pop().dispose()}var cn={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6447.08677ae3.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/6447.08677ae3.chunk.js.LICENSE.txt deleted file mode 100644 index a62733317c0..00000000000 --- a/ydb/core/viewer/monitoring/static/js/6447.08677ae3.chunk.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/6447.2c0d9bda.chunk.js b/ydb/core/viewer/monitoring/static/js/6447.2c0d9bda.chunk.js new file mode 100644 index 00000000000..5c3c6d7042b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6447.2c0d9bda.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 6447.2c0d9bda.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6447],{66447:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>Wt,DefinitionAdapter:()=>Zt,DiagnosticsAdapter:()=>Vt,DocumentColorAdapter:()=>ln,DocumentFormattingEditProvider:()=>cn,DocumentHighlightAdapter:()=>Gt,DocumentLinkAdapter:()=>sn,DocumentRangeFormattingEditProvider:()=>un,DocumentSymbolAdapter:()=>rn,FoldingRangeAdapter:()=>gn,HoverAdapter:()=>$t,ReferenceAdapter:()=>tn,RenameAdapter:()=>nn,SelectionRangeAdapter:()=>pn,WorkerManager:()=>Nt,fromPosition:()=>Kt,fromRange:()=>Ht,getWorker:()=>Kn,setupMode:()=>Xn,toRange:()=>Xt,toTextEdit:()=>qt});var r,i,o=n(80781),a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of c(t))u.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g,f,h,p,m,v,b,k,C,_,w,y,x,E,I,A,S,T,L,R,M,F,P,j,D,N,O,U,V,B,W,K,H,X,z,q,$,Q,J,G,Y,Z,ee,te,ne,re,ie,oe,ae,se,ce,ue,de,le,ge,fe,he,pe,me,ve,be,ke,Ce,_e,we,ye,xe,Ee,Ie,Ae,Se,Te,Le,Re,Me,Fe,Pe,je,De,Ne,Oe,Ue,Ve,Be,We,Ke,He,Xe,ze,qe,$e,Qe,Je,Ge,Ye,Ze,et,tt,nt,rt,it,ot,at,st,ct,ut,dt,lt,gt,ft,ht,pt,mt,vt,bt,kt,Ct,_t,wt,yt,xt,Et,It,At,St,Tt,Lt,Rt,Mt,Ft,Pt,jt,Dt,Nt=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(g||(g={})).is=function(e){return"string"===typeof e},(f||(f={})).is=function(e){return"string"===typeof e},(p=h||(h={})).MIN_VALUE=-2147483648,p.MAX_VALUE=2147483647,p.is=function(e){return"number"===typeof e&&p.MIN_VALUE<=e&&e<=p.MAX_VALUE},(v=m||(m={})).MIN_VALUE=0,v.MAX_VALUE=2147483647,v.is=function(e){return"number"===typeof e&&v.MIN_VALUE<=e&&e<=v.MAX_VALUE},(k=b||(b={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=m.MAX_VALUE),t===Number.MAX_VALUE&&(t=m.MAX_VALUE),{line:e,character:t}},k.is=function(e){let t=e;return Ot.objectLiteral(t)&&Ot.uinteger(t.line)&&Ot.uinteger(t.character)},(_=C||(C={})).create=function(e,t,n,r){if(Ot.uinteger(e)&&Ot.uinteger(t)&&Ot.uinteger(n)&&Ot.uinteger(r))return{start:b.create(e,t),end:b.create(n,r)};if(b.is(e)&&b.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},_.is=function(e){let t=e;return Ot.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)},(y=w||(w={})).create=function(e,t){return{uri:e,range:t}},y.is=function(e){let t=e;return Ot.objectLiteral(t)&&C.is(t.range)&&(Ot.string(t.uri)||Ot.undefined(t.uri))},(E=x||(x={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},E.is=function(e){let t=e;return Ot.objectLiteral(t)&&C.is(t.targetRange)&&Ot.string(t.targetUri)&&C.is(t.targetSelectionRange)&&(C.is(t.originSelectionRange)||Ot.undefined(t.originSelectionRange))},(A=I||(I={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},A.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.numberRange(t.red,0,1)&&Ot.numberRange(t.green,0,1)&&Ot.numberRange(t.blue,0,1)&&Ot.numberRange(t.alpha,0,1)},(T=S||(S={})).create=function(e,t){return{range:e,color:t}},T.is=function(e){const t=e;return Ot.objectLiteral(t)&&C.is(t.range)&&I.is(t.color)},(R=L||(L={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},R.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.string(t.label)&&(Ot.undefined(t.textEdit)||q.is(t))&&(Ot.undefined(t.additionalTextEdits)||Ot.typedArray(t.additionalTextEdits,q.is))},(F=M||(M={})).Comment="comment",F.Imports="imports",F.Region="region",(j=P||(P={})).create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return Ot.defined(n)&&(a.startCharacter=n),Ot.defined(r)&&(a.endCharacter=r),Ot.defined(i)&&(a.kind=i),Ot.defined(o)&&(a.collapsedText=o),a},j.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.uinteger(t.startLine)&&Ot.uinteger(t.startLine)&&(Ot.undefined(t.startCharacter)||Ot.uinteger(t.startCharacter))&&(Ot.undefined(t.endCharacter)||Ot.uinteger(t.endCharacter))&&(Ot.undefined(t.kind)||Ot.string(t.kind))},(N=D||(D={})).create=function(e,t){return{location:e,message:t}},N.is=function(e){let t=e;return Ot.defined(t)&&w.is(t.location)&&Ot.string(t.message)},(U=O||(O={})).Error=1,U.Warning=2,U.Information=3,U.Hint=4,(B=V||(V={})).Unnecessary=1,B.Deprecated=2,(W||(W={})).is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.string(t.href)},(H=K||(K={})).create=function(e,t,n,r,i,o){let a={range:e,message:t};return Ot.defined(n)&&(a.severity=n),Ot.defined(r)&&(a.code=r),Ot.defined(i)&&(a.source=i),Ot.defined(o)&&(a.relatedInformation=o),a},H.is=function(e){var t;let n=e;return Ot.defined(n)&&C.is(n.range)&&Ot.string(n.message)&&(Ot.number(n.severity)||Ot.undefined(n.severity))&&(Ot.integer(n.code)||Ot.string(n.code)||Ot.undefined(n.code))&&(Ot.undefined(n.codeDescription)||Ot.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ot.string(n.source)||Ot.undefined(n.source))&&(Ot.undefined(n.relatedInformation)||Ot.typedArray(n.relatedInformation,D.is))},(z=X||(X={})).create=function(e,t,...n){let r={title:e,command:t};return Ot.defined(n)&&n.length>0&&(r.arguments=n),r},z.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.title)&&Ot.string(t.command)},($=q||(q={})).replace=function(e,t){return{range:e,newText:t}},$.insert=function(e,t){return{range:{start:e,end:e},newText:t}},$.del=function(e){return{range:e,newText:""}},$.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.string(t.newText)&&C.is(t.range)},(J=Q||(Q={})).create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},J.is=function(e){const t=e;return Ot.objectLiteral(t)&&Ot.string(t.label)&&(Ot.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ot.string(t.description)||void 0===t.description)},(G||(G={})).is=function(e){const t=e;return Ot.string(t)},(Z=Y||(Y={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Z.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Z.del=function(e,t){return{range:e,newText:"",annotationId:t}},Z.is=function(e){const t=e;return q.is(t)&&(Q.is(t.annotationId)||G.is(t.annotationId))},(te=ee||(ee={})).create=function(e,t){return{textDocument:e,edits:t}},te.is=function(e){let t=e;return Ot.defined(t)&&fe.is(t.textDocument)&&Array.isArray(t.edits)},(re=ne||(ne={})).create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},re.is=function(e){let t=e;return t&&"create"===t.kind&&Ot.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ot.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ot.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},oe.is=function(e){let t=e;return t&&"rename"===t.kind&&Ot.string(t.oldUri)&&Ot.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ot.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ot.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(se=ae||(ae={})).create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},se.is=function(e){let t=e;return t&&"delete"===t.kind&&Ot.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ot.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ot.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||G.is(t.annotationId))},(ce||(ce={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Ot.string(e.kind)?ne.is(e)||ie.is(e)||ae.is(e):ee.is(e))))},(de=ue||(ue={})).create=function(e){return{uri:e}},de.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.uri)},(ge=le||(le={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.uri)&&Ot.integer(t.version)},(he=fe||(fe={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.uri)&&(null===t.version||Ot.integer(t.version))},(me=pe||(pe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},me.is=function(e){let t=e;return Ot.defined(t)&&Ot.string(t.uri)&&Ot.string(t.languageId)&&Ot.integer(t.version)&&Ot.string(t.text)},(be=ve||(ve={})).PlainText="plaintext",be.Markdown="markdown",be.is=function(e){const t=e;return t===be.PlainText||t===be.Markdown},(ke||(ke={})).is=function(e){const t=e;return Ot.objectLiteral(e)&&ve.is(t.kind)&&Ot.string(t.value)},(_e=Ce||(Ce={})).Text=1,_e.Method=2,_e.Function=3,_e.Constructor=4,_e.Field=5,_e.Variable=6,_e.Class=7,_e.Interface=8,_e.Module=9,_e.Property=10,_e.Unit=11,_e.Value=12,_e.Enum=13,_e.Keyword=14,_e.Snippet=15,_e.Color=16,_e.File=17,_e.Reference=18,_e.Folder=19,_e.EnumMember=20,_e.Constant=21,_e.Struct=22,_e.Event=23,_e.Operator=24,_e.TypeParameter=25,(ye=we||(we={})).PlainText=1,ye.Snippet=2,(xe||(xe={})).Deprecated=1,(Ie=Ee||(Ee={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Ie.is=function(e){const t=e;return t&&Ot.string(t.newText)&&C.is(t.insert)&&C.is(t.replace)},(Se=Ae||(Ae={})).asIs=1,Se.adjustIndentation=2,(Te||(Te={})).is=function(e){const t=e;return t&&(Ot.string(t.detail)||void 0===t.detail)&&(Ot.string(t.description)||void 0===t.description)},(Le||(Le={})).create=function(e){return{label:e}},(Re||(Re={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Fe=Me||(Me={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Fe.is=function(e){const t=e;return Ot.string(t)||Ot.objectLiteral(t)&&Ot.string(t.language)&&Ot.string(t.value)},(Pe||(Pe={})).is=function(e){let t=e;return!!t&&Ot.objectLiteral(t)&&(ke.is(t.contents)||Me.is(t.contents)||Ot.typedArray(t.contents,Me.is))&&(void 0===e.range||C.is(e.range))},(je||(je={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(De||(De={})).create=function(e,t,...n){let r={label:e};return Ot.defined(t)&&(r.documentation=t),Ot.defined(n)?r.parameters=n:r.parameters=[],r},(Oe=Ne||(Ne={})).Text=1,Oe.Read=2,Oe.Write=3,(Ue||(Ue={})).create=function(e,t){let n={range:e};return Ot.number(t)&&(n.kind=t),n},(Be=Ve||(Ve={})).File=1,Be.Module=2,Be.Namespace=3,Be.Package=4,Be.Class=5,Be.Method=6,Be.Property=7,Be.Field=8,Be.Constructor=9,Be.Enum=10,Be.Interface=11,Be.Function=12,Be.Variable=13,Be.Constant=14,Be.String=15,Be.Number=16,Be.Boolean=17,Be.Array=18,Be.Object=19,Be.Key=20,Be.Null=21,Be.EnumMember=22,Be.Struct=23,Be.Event=24,Be.Operator=25,Be.TypeParameter=26,(We||(We={})).Deprecated=1,(Ke||(Ke={})).create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(He||(He={})).create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}},(ze=Xe||(Xe={})).create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},ze.is=function(e){let t=e;return t&&Ot.string(t.name)&&Ot.number(t.kind)&&C.is(t.range)&&C.is(t.selectionRange)&&(void 0===t.detail||Ot.string(t.detail))&&(void 0===t.deprecated||Ot.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},($e=qe||(qe={})).Empty="",$e.QuickFix="quickfix",$e.Refactor="refactor",$e.RefactorExtract="refactor.extract",$e.RefactorInline="refactor.inline",$e.RefactorRewrite="refactor.rewrite",$e.Source="source",$e.SourceOrganizeImports="source.organizeImports",$e.SourceFixAll="source.fixAll",(Je=Qe||(Qe={})).Invoked=1,Je.Automatic=2,(Ye=Ge||(Ge={})).create=function(e,t,n){let r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r},Ye.is=function(e){let t=e;return Ot.defined(t)&&Ot.typedArray(t.diagnostics,K.is)&&(void 0===t.only||Ot.typedArray(t.only,Ot.string))&&(void 0===t.triggerKind||t.triggerKind===Qe.Invoked||t.triggerKind===Qe.Automatic)},(et=Ze||(Ze={})).create=function(e,t,n){let r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):X.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},et.is=function(e){let t=e;return t&&Ot.string(t.title)&&(void 0===t.diagnostics||Ot.typedArray(t.diagnostics,K.is))&&(void 0===t.kind||Ot.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||X.is(t.command))&&(void 0===t.isPreferred||Ot.boolean(t.isPreferred))&&(void 0===t.edit||ce.is(t.edit))},(nt=tt||(tt={})).create=function(e,t){let n={range:e};return Ot.defined(t)&&(n.data=t),n},nt.is=function(e){let t=e;return Ot.defined(t)&&C.is(t.range)&&(Ot.undefined(t.command)||X.is(t.command))},(it=rt||(rt={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},it.is=function(e){let t=e;return Ot.defined(t)&&Ot.uinteger(t.tabSize)&&Ot.boolean(t.insertSpaces)},(at=ot||(ot={})).create=function(e,t,n){return{range:e,target:t,data:n}},at.is=function(e){let t=e;return Ot.defined(t)&&C.is(t.range)&&(Ot.undefined(t.target)||Ot.string(t.target))},(ct=st||(st={})).create=function(e,t){return{range:e,parent:t}},ct.is=function(e){let t=e;return Ot.objectLiteral(t)&&C.is(t.range)&&(void 0===t.parent||ct.is(t.parent))},(dt=ut||(ut={})).namespace="namespace",dt.type="type",dt.class="class",dt.enum="enum",dt.interface="interface",dt.struct="struct",dt.typeParameter="typeParameter",dt.parameter="parameter",dt.variable="variable",dt.property="property",dt.enumMember="enumMember",dt.event="event",dt.function="function",dt.method="method",dt.macro="macro",dt.keyword="keyword",dt.modifier="modifier",dt.comment="comment",dt.string="string",dt.number="number",dt.regexp="regexp",dt.operator="operator",dt.decorator="decorator",(gt=lt||(lt={})).declaration="declaration",gt.definition="definition",gt.readonly="readonly",gt.static="static",gt.deprecated="deprecated",gt.abstract="abstract",gt.async="async",gt.modification="modification",gt.documentation="documentation",gt.defaultLibrary="defaultLibrary",(ft||(ft={})).is=function(e){const t=e;return Ot.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(pt=ht||(ht={})).create=function(e,t){return{range:e,text:t}},pt.is=function(e){const t=e;return void 0!==t&&null!==t&&C.is(t.range)&&Ot.string(t.text)},(vt=mt||(mt={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},vt.is=function(e){const t=e;return void 0!==t&&null!==t&&C.is(t.range)&&Ot.boolean(t.caseSensitiveLookup)&&(Ot.string(t.variableName)||void 0===t.variableName)},(kt=bt||(bt={})).create=function(e,t){return{range:e,expression:t}},kt.is=function(e){const t=e;return void 0!==t&&null!==t&&C.is(t.range)&&(Ot.string(t.expression)||void 0===t.expression)},(_t=Ct||(Ct={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},_t.is=function(e){const t=e;return Ot.defined(t)&&C.is(e.stoppedLocation)},(yt=wt||(wt={})).Type=1,yt.Parameter=2,yt.is=function(e){return 1===e||2===e},(Et=xt||(xt={})).create=function(e){return{value:e}},Et.is=function(e){const t=e;return Ot.objectLiteral(t)&&(void 0===t.tooltip||Ot.string(t.tooltip)||ke.is(t.tooltip))&&(void 0===t.location||w.is(t.location))&&(void 0===t.command||X.is(t.command))},(At=It||(It={})).create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},At.is=function(e){const t=e;return Ot.objectLiteral(t)&&b.is(t.position)&&(Ot.string(t.label)||Ot.typedArray(t.label,xt.is))&&(void 0===t.kind||wt.is(t.kind))&&void 0===t.textEdits||Ot.typedArray(t.textEdits,q.is)&&(void 0===t.tooltip||Ot.string(t.tooltip)||ke.is(t.tooltip))&&(void 0===t.paddingLeft||Ot.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ot.boolean(t.paddingRight))},(St||(St={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Tt||(Tt={})).create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}},(Lt||(Lt={})).create=function(e){return{items:e}},(Mt=Rt||(Rt={})).Invoked=0,Mt.Automatic=1,(Ft||(Ft={})).create=function(e,t){return{range:e,text:t}},(Pt||(Pt={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(jt||(jt={})).is=function(e){const t=e;return Ot.objectLiteral(t)&&f.is(t.uri)&&Ot.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,c=0;for(;a<i.length&&s<o.length;){let t=n(i[a],o[s]);e[c++]=t<=0?i[a++]:o[s++]}for(;a<i.length;)e[c++]=i[a++];for(;s<o.length;)e[c++]=o[s++];return e}e.create=function(e,t,n,r){return new Ut(e,t,n,r)},e.is=function(e){let t=e;return!!(Ot.defined(t)&&Ot.string(t.uri)&&(Ot.undefined(t.languageId)||Ot.string(t.languageId))&&Ot.uinteger(t.lineCount)&&Ot.func(t.getText)&&Ot.func(t.positionAt)&&Ot.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(Dt||(Dt={}));var Ot,Ut=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return b.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return b.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Ot||(Ot={}));var Vt=class{constructor(e,t,n){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const r=e=>{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{l.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(l.editor.onDidCreateModel(r)),this._disposables.push(l.editor.onWillDisposeModel(i)),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{l.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),l.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"===typeof t.code?String(t.code):t.code;return{severity:Bt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=l.editor.getModel(e);i&&i.getLanguageId()===t&&l.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function Bt(e){switch(e){case O.Error:return l.MarkerSeverity.Error;case O.Warning:return l.MarkerSeverity.Warning;case O.Information:return l.MarkerSeverity.Info;case O.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}var Wt=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),Kt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new l.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:zt(e.kind)};var n,r;return e.textEdit&&("undefined"!==typeof(r=e.textEdit).insert&&"undefined"!==typeof r.replace?t.range={insert:Xt(e.textEdit.insert),replace:Xt(e.textEdit.replace)}:t.range=Xt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(qt)),e.insertTextFormat===we.Snippet&&(t.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function Kt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Ht(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function Xt(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function zt(e){const t=l.languages.CompletionItemKind;switch(e){case Ce.Text:return t.Text;case Ce.Method:return t.Method;case Ce.Function:return t.Function;case Ce.Constructor:return t.Constructor;case Ce.Field:return t.Field;case Ce.Variable:return t.Variable;case Ce.Class:return t.Class;case Ce.Interface:return t.Interface;case Ce.Module:return t.Module;case Ce.Property:return t.Property;case Ce.Unit:return t.Unit;case Ce.Value:return t.Value;case Ce.Enum:return t.Enum;case Ce.Keyword:return t.Keyword;case Ce.Snippet:return t.Snippet;case Ce.Color:return t.Color;case Ce.File:return t.File;case Ce.Reference:return t.Reference}return t.Property}function qt(e){if(e)return{range:Xt(e.range),text:e.newText}}var $t=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),Kt(t)))).then((e=>{if(e)return{range:Xt(e.range),contents:Jt(e.contents)}}))}};function Qt(e){return"string"===typeof e?{value:e}:(t=e)&&"object"===typeof t&&"string"===typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function Jt(e){if(e)return Array.isArray(e)?e.map(Qt):[Qt(e)]}var Gt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),Kt(t)))).then((e=>{if(e)return e.map((e=>({range:Xt(e.range),kind:Yt(e.kind)})))}))}};function Yt(e){switch(e){case Ne.Read:return l.languages.DocumentHighlightKind.Read;case Ne.Write:return l.languages.DocumentHighlightKind.Write;case Ne.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Zt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),Kt(t)))).then((e=>{if(e)return[en(e)]}))}};function en(e){return{uri:l.Uri.parse(e.uri),range:Xt(e.range)}}var tn=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),Kt(t)))).then((e=>{if(e)return e.map(en)}))}},nn=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),Kt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=l.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:Xt(i.range),text:i.newText}})}return{edits:t}}(e)))}};var rn=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?on(e):{name:e.name,detail:"",containerName:e.containerName,kind:an(e.kind),range:Xt(e.location.range),selectionRange:Xt(e.location.range),tags:[]}))}))}};function on(e){return{name:e.name,detail:e.detail??"",kind:an(e.kind),range:Xt(e.range),selectionRange:Xt(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>on(e)))}}function an(e){let t=l.languages.SymbolKind;switch(e){case Ve.File:return t.File;case Ve.Module:return t.Module;case Ve.Namespace:return t.Namespace;case Ve.Package:return t.Package;case Ve.Class:return t.Class;case Ve.Method:return t.Method;case Ve.Property:return t.Property;case Ve.Field:return t.Field;case Ve.Constructor:return t.Constructor;case Ve.Enum:return t.Enum;case Ve.Interface:return t.Interface;case Ve.Function:return t.Function;case Ve.Variable:return t.Variable;case Ve.Constant:return t.Constant;case Ve.String:return t.String;case Ve.Number:return t.Number;case Ve.Boolean:return t.Boolean;case Ve.Array:return t.Array}return t.Function}var sn=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:Xt(e.range),url:e.target})))}}))}},cn=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,dn(t)).then((e=>{if(e&&0!==e.length)return e.map(qt)}))))}},un=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),Ht(t),dn(n)).then((e=>{if(e&&0!==e.length)return e.map(qt)}))))}};function dn(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var ln=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:Xt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,Ht(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=qt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(qt)),t}))}))}},gn=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(t.kind=function(e){switch(e){case M.Comment:return l.languages.FoldingRangeKind.Comment;case M.Imports:return l.languages.FoldingRangeKind.Imports;case M.Region:return l.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var fn,hn,pn=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(Kt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:Xt(e.range)}),e=e.parent;return t}))}))}};function mn(e){return 32===e||9===e}function vn(e){return 10===e||13===e}function bn(e){return e>=48&&e<=57}(hn=fn||(fn={}))[hn.lineFeed=10]="lineFeed",hn[hn.carriageReturn=13]="carriageReturn",hn[hn.space=32]="space",hn[hn._0=48]="_0",hn[hn._1=49]="_1",hn[hn._2=50]="_2",hn[hn._3=51]="_3",hn[hn._4=52]="_4",hn[hn._5=53]="_5",hn[hn._6=54]="_6",hn[hn._7=55]="_7",hn[hn._8=56]="_8",hn[hn._9=57]="_9",hn[hn.a=97]="a",hn[hn.b=98]="b",hn[hn.c=99]="c",hn[hn.d=100]="d",hn[hn.e=101]="e",hn[hn.f=102]="f",hn[hn.g=103]="g",hn[hn.h=104]="h",hn[hn.i=105]="i",hn[hn.j=106]="j",hn[hn.k=107]="k",hn[hn.l=108]="l",hn[hn.m=109]="m",hn[hn.n=110]="n",hn[hn.o=111]="o",hn[hn.p=112]="p",hn[hn.q=113]="q",hn[hn.r=114]="r",hn[hn.s=115]="s",hn[hn.t=116]="t",hn[hn.u=117]="u",hn[hn.v=118]="v",hn[hn.w=119]="w",hn[hn.x=120]="x",hn[hn.y=121]="y",hn[hn.z=122]="z",hn[hn.A=65]="A",hn[hn.B=66]="B",hn[hn.C=67]="C",hn[hn.D=68]="D",hn[hn.E=69]="E",hn[hn.F=70]="F",hn[hn.G=71]="G",hn[hn.H=72]="H",hn[hn.I=73]="I",hn[hn.J=74]="J",hn[hn.K=75]="K",hn[hn.L=76]="L",hn[hn.M=77]="M",hn[hn.N=78]="N",hn[hn.O=79]="O",hn[hn.P=80]="P",hn[hn.Q=81]="Q",hn[hn.R=82]="R",hn[hn.S=83]="S",hn[hn.T=84]="T",hn[hn.U=85]="U",hn[hn.V=86]="V",hn[hn.W=87]="W",hn[hn.X=88]="X",hn[hn.Y=89]="Y",hn[hn.Z=90]="Z",hn[hn.asterisk=42]="asterisk",hn[hn.backslash=92]="backslash",hn[hn.closeBrace=125]="closeBrace",hn[hn.closeBracket=93]="closeBracket",hn[hn.colon=58]="colon",hn[hn.comma=44]="comma",hn[hn.dot=46]="dot",hn[hn.doubleQuote=34]="doubleQuote",hn[hn.minus=45]="minus",hn[hn.openBrace=123]="openBrace",hn[hn.openBracket=91]="openBracket",hn[hn.plus=43]="plus",hn[hn.slash=47]="slash",hn[hn.formFeed=12]="formFeed",hn[hn.tab=9]="tab";new Array(20).fill(0).map(((e,t)=>" ".repeat(t)));var kn,Cn=200;new Array(Cn).fill(0).map(((e,t)=>"\n"+" ".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\r"+" ".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\r\n"+" ".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\n"+"\t".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\r"+"\t".repeat(t))),new Array(Cn).fill(0).map(((e,t)=>"\r\n"+"\t".repeat(t)));(kn||(kn={})).DEFAULT={allowTrailingComma:!1};var _n,wn,yn,xn,En,In,An=function(e,t=!1){const n=e.length;let r=0,i="",o=0,a=16,s=0,c=0,u=0,d=0,l=0;function g(t,n){let i=0,o=0;for(;i<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)o=16*o+t-48;else if(t>=65&&t<=70)o=16*o+t-65+10;else{if(!(t>=97&&t<=102))break;o=16*o+t-97+10}r++,i++}return i<t&&(o=-1),o}function f(){if(i="",l=0,o=r,c=s,d=u,r>=n)return o=n,a=17;let t=e.charCodeAt(r);if(mn(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(mn(t));return a=15}if(vn(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),s++,u=r,a=14;switch(t){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=function(){let t="",i=r;for(;;){if(r>=n){t+=e.substring(i,r),l=2;break}const o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(vn(o)){t+=e.substring(i,r),l=2;break}l=6}r++}else{if(t+=e.substring(i,r),r++,r>=n){l=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=g(4,!0);e>=0?t+=String.fromCharCode(e):l=4;break;default:l=5}i=r}}return t}(),a=10;case 47:const c=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!vn(e.charCodeAt(r));)r++;return i=e.substring(c,r),a=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let o=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,o=!0;break}r++,vn(t)&&(13===t&&10===e.charCodeAt(r)&&r++,s++,u=r)}return o||(r++,l=1),i=e.substring(c,r),a=13}return i+=String.fromCharCode(t),r++,a=16;case 45:if(i+=String.fromCharCode(t),r++,r===n||!bn(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&bn(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&bn(e.charCodeAt(r))))return l=3,e.substring(t,r);for(r++;r<e.length&&bn(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&bn(e.charCodeAt(r))){for(r++;r<e.length&&bn(e.charCodeAt(r));)r++;n=r}else l=3;return e.substring(t,n)}(),a=11;default:for(;r<n&&h(t);)r++,t=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(t),r++,a=16}}function h(e){if(mn(e)||vn(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,i="",o=0,a=16,l=0},getPosition:()=>r,scan:t?function(){let e;do{e=f()}while(e>=12&&e<=15);return e}:f,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>o,getTokenLength:()=>r-o,getTokenStartLine:()=>c,getTokenStartCharacter:()=>o-d,getTokenError:()=>l}};function Sn(e){return{getInitialState:()=>new Wn(null,null,!1,null),tokenize:(t,n)=>function(e,t,n,r=0){let i=0,o=!1;switch(n.scanError){case 2:t='"'+t,i=1;break;case 1:t="/*"+t,i=2}const a=An(t);let s=n.lastWasColon,c=n.parents;const u={tokens:[],endState:n.clone()};for(;;){let d=r+a.getPosition(),l="";const g=a.scan();if(17===g)break;if(d===r+a.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(a.getPosition(),3));switch(o&&(d-=i),o=i>0,g){case 1:c=Bn.push(c,0),l=Ln,s=!1;break;case 2:c=Bn.pop(c),l=Ln,s=!1;break;case 3:c=Bn.push(c,1),l=Rn,s=!1;break;case 4:c=Bn.pop(c),l=Rn,s=!1;break;case 6:l=Mn,s=!0;break;case 5:l=Fn,s=!1;break;case 8:case 9:l=Pn,s=!1;break;case 7:l=jn,s=!1;break;case 10:const e=c?c.type:0;l=s||1===e?Dn:On,s=!1;break;case 11:l=Nn,s=!1}if(e)switch(g){case 12:l=Vn;break;case 13:l=Un}u.endState=new Wn(n.getStateData(),a.getTokenError(),s,c),u.tokens.push({startIndex:d,scopes:l})}return u}(e,t,n)}}(wn=_n||(_n={}))[wn.None=0]="None",wn[wn.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",wn[wn.UnexpectedEndOfString=2]="UnexpectedEndOfString",wn[wn.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",wn[wn.InvalidUnicode=4]="InvalidUnicode",wn[wn.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",wn[wn.InvalidCharacter=6]="InvalidCharacter",(xn=yn||(yn={}))[xn.OpenBraceToken=1]="OpenBraceToken",xn[xn.CloseBraceToken=2]="CloseBraceToken",xn[xn.OpenBracketToken=3]="OpenBracketToken",xn[xn.CloseBracketToken=4]="CloseBracketToken",xn[xn.CommaToken=5]="CommaToken",xn[xn.ColonToken=6]="ColonToken",xn[xn.NullKeyword=7]="NullKeyword",xn[xn.TrueKeyword=8]="TrueKeyword",xn[xn.FalseKeyword=9]="FalseKeyword",xn[xn.StringLiteral=10]="StringLiteral",xn[xn.NumericLiteral=11]="NumericLiteral",xn[xn.LineCommentTrivia=12]="LineCommentTrivia",xn[xn.BlockCommentTrivia=13]="BlockCommentTrivia",xn[xn.LineBreakTrivia=14]="LineBreakTrivia",xn[xn.Trivia=15]="Trivia",xn[xn.Unknown=16]="Unknown",xn[xn.EOF=17]="EOF",(In=En||(En={}))[In.InvalidSymbol=1]="InvalidSymbol",In[In.InvalidNumberFormat=2]="InvalidNumberFormat",In[In.PropertyNameExpected=3]="PropertyNameExpected",In[In.ValueExpected=4]="ValueExpected",In[In.ColonExpected=5]="ColonExpected",In[In.CommaExpected=6]="CommaExpected",In[In.CloseBraceExpected=7]="CloseBraceExpected",In[In.CloseBracketExpected=8]="CloseBracketExpected",In[In.EndOfFileExpected=9]="EndOfFileExpected",In[In.InvalidCommentToken=10]="InvalidCommentToken",In[In.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",In[In.UnexpectedEndOfString=12]="UnexpectedEndOfString",In[In.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",In[In.InvalidUnicode=14]="InvalidUnicode",In[In.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",In[In.InvalidCharacter=16]="InvalidCharacter";var Tn,Ln="delimiter.bracket.json",Rn="delimiter.array.json",Mn="delimiter.colon.json",Fn="delimiter.comma.json",Pn="keyword.json",jn="keyword.json",Dn="string.value.json",Nn="number.json",On="string.key.json",Un="comment.block.json",Vn="comment.line.json",Bn=class e{constructor(e,t){this.parent=e,this.type=t}static pop(e){return e?e.parent:null}static push(t,n){return new e(t,n)}static equals(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;for(;e&&t;){if(e===t)return!0;if(e.type!==t.type)return!1;e=e.parent,t=t.parent}return!0}},Wn=class e{constructor(e,t,n,r){this._state=e,this.scanError=t,this.lastWasColon=n,this.parents=r}clone(){return new e(this._state,this.scanError,this.lastWasColon,this.parents)}equals(t){return t===this||!!(t&&t instanceof e)&&(this.scanError===t.scanError&&this.lastWasColon===t.lastWasColon&&Bn.equals(this.parents,t.parents))}getStateData(){return this._state}setStateData(e){this._state=e}};function Kn(){return new Promise(((e,t)=>{if(!Tn)return t("JSON not registered!");e(Tn)}))}var Hn=class extends Vt{constructor(e,t,n){super(e,t,n.onDidChange),this._disposables.push(l.editor.onWillDisposeModel((e=>{this._resetSchema(e.uri)}))),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{this._resetSchema(e.model.uri)})))}_resetSchema(e){this._worker().then((t=>{t.resetSchema(e.toString())}))}};function Xn(e){const t=[],n=[],r=new Nt(e);function i(){const{languageId:t,modeConfiguration:r}=e;qn(n),r.documentFormattingEdits&&n.push(l.languages.registerDocumentFormattingEditProvider(t,new cn(Tn))),r.documentRangeFormattingEdits&&n.push(l.languages.registerDocumentRangeFormattingEditProvider(t,new un(Tn))),r.completionItems&&n.push(l.languages.registerCompletionItemProvider(t,new Wt(Tn,[" ",":",'"']))),r.hovers&&n.push(l.languages.registerHoverProvider(t,new $t(Tn))),r.documentSymbols&&n.push(l.languages.registerDocumentSymbolProvider(t,new rn(Tn))),r.tokens&&n.push(l.languages.setTokensProvider(t,Sn(!0))),r.colors&&n.push(l.languages.registerColorProvider(t,new ln(Tn))),r.foldingRanges&&n.push(l.languages.registerFoldingRangeProvider(t,new gn(Tn))),r.diagnostics&&n.push(new Hn(t,Tn,e)),r.selectionRanges&&n.push(l.languages.registerSelectionRangeProvider(t,new pn(Tn)))}t.push(r),Tn=(...e)=>r.getLanguageServiceWorker(...e),i(),t.push(l.languages.setLanguageConfiguration(e.languageId,$n));let o=e.modeConfiguration;return e.onDidChange((e=>{e.modeConfiguration!==o&&(o=e.modeConfiguration,i())})),t.push(zn(n)),zn(t)}function zn(e){return{dispose:()=>qn(e)}}function qn(e){for(;e.length;)e.pop().dispose()}var $n={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6447.2c0d9bda.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/6447.2c0d9bda.chunk.js.LICENSE.txt new file mode 100644 index 00000000000..34dc0256d74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6447.2c0d9bda.chunk.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/6539.39f8bd0e.chunk.js b/ydb/core/viewer/monitoring/static/js/6539.39f8bd0e.chunk.js deleted file mode 100644 index 06d175e7e1c..00000000000 --- a/ydb/core/viewer/monitoring/static/js/6539.39f8bd0e.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 6539.39f8bd0e.chunk.js.LICENSE.txt */ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6539],{16963:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var n,s=i(59284);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(this,arguments)}const r=function(e){return s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),n||(n=s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 010 1.06l-2.5 2.5a.75.75 0 11-1.06-1.06l1.22-1.22H4.75a.75.75 0 010-1.5h7.69l-1.22-1.22a.75.75 0 011.06-1.06l2.5 2.5zM9.5 4.25a.75.75 0 01-1.5 0V4a1.5 1.5 0 00-1.5-1.5H4A1.5 1.5 0 002.5 4v8A1.5 1.5 0 004 13.5h2.5A1.5 1.5 0 008 12v-.25a.75.75 0 011.5 0V12a3 3 0 01-3 3H4a3 3 0 01-3-3V4a3 3 0 013-3h2.5a3 3 0 013 3v.25z",clipRule:"evenodd"})))}},94630:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n,s,o=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},r.apply(this,arguments)}const a=function(e){return o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),n||(n=o.createElement("g",{clipPath:"url(#font-case_svg__a)"},o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.75 2.25c-.618 0-1.169.39-1.373.974L.042 12.752a.75.75 0 001.416.496L2.595 10h4.31l1.137 3.248a.75.75 0 001.416-.496L6.123 3.224A1.455 1.455 0 004.75 2.25zM6.38 8.5L4.75 3.842 3.12 8.5h3.26zm5.135 2.996c0-.223.28-.746 1.152-.746H14.4c-.294 1.024-1.178 1.5-1.9 1.5-.45 0-.677-.134-.792-.249a.706.706 0 01-.193-.505zm2.985.754V13a.75.75 0 101.5 0v-3c0-1.117-.28-2.065-.873-2.744-.606-.692-1.453-1.006-2.377-1.006-.53 0-.946.07-1.306.195-.338.117-.6.274-.804.396l-.025.015a.75.75 0 10.77 1.288c.22-.132.365-.217.55-.281.178-.062.423-.113.815-.113.576 0 .978.186 1.248.494.191.218.354.543.44 1.006h-1.771c-1.462 0-2.658.977-2.652 2.254.003.542.191 1.116.632 1.557.447.448 1.085.689 1.853.689 1 0 1.75-.75 1.75-1.5h.25z",clipRule:"evenodd"}))),s||(s=o.createElement("defs",null,o.createElement("clipPath",{id:"font-case_svg__a"},o.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))))}},8964:(e,t,i)=>{"use strict";i.d(t,{R:()=>a,J:()=>r});var n=i(1448);const s=JSON.parse('{"common":{"tooltip-sum":"Sum","tooltip-rest":"Rest"},"chartkit":{"error":"Error","legend-series-hide":"Hide all lines","legend-series-show":"Show all lines","tooltip-point-format-size":"Size","tooltip-sum":"Sum","tooltip-rest":"Rest","error-incorrect-key-value-intro":"Incorrect notation of an object passed to","error-incorrect-key":", object keys must be convertible to integer","error-incorrect-value":", object values must be a string or a function which returns a string"},"chartkit-table":{"message-no-data":"No data","paginator-rows":"Rows"},"chartkit-ymap-legend":{"label-more":"Show more {{count}}","label-hide":"Hide","label-heatmap":"Heatmap"},"error":{"label_no-data":"No data","label_unknown-plugin":"Unknown plugin type \\"{{type}}\\"","label_unknown-error":"Unknown error","label_invalid-axis-category-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"category\\". Strings and numbers are allowed.","label_invalid-axis-datetime-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"datetime\\". Only numbers are allowed.","label_invalid-axis-linear-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"linear\\". Numbers and nulls are allowed.","label_invalid-pie-data-value":"It seems you are trying to use inappropriate data type for \\"value\\" value. Only numbers are allowed.","label_invalid-series-type":"It seems you haven\'t defined \\"series.type\\" property, or defined it incorrectly. Available values: [{{types}}].","label_invalid-series-property":"It seems you are trying to use inappropriate value for \\"{{key}}\\", or defined it incorrectly. Available values: [{{values}}].","label_invalid-treemap-redundant-value":"It seems you are trying to set \\"value\\" for container node. Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"It seems you are trying to use node without \\"value\\". Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"It seems you are trying to use inappropriate index for Y axis: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"Reset zoom","decimal-point":".","thousands-sep":" ","Mon":"Mon","Tue":"Tue","Wed":"Wed","Thu":"Thu","Fri":"Fri","Sat":"Sat","Sun":"Sun","Jan":"Jan","January":"January","Feb":"Feb","February":"February","Mar":"Mar","March":"March","Apr":"Apr","April":"April","May":"May","Jun":"Jun","June":"June","Jul":"Jul","July":"July","Aug":"Aug","August":"August","Sep":"Sep","September":"September","Oct":"Oct","October":"October","Nov":"Nov","November":"November","Dec":"Dec","December":"December"}}'),o=JSON.parse('{"common":{"tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435"},"chartkit":{"error":"\u041e\u0448\u0438\u0431\u043a\u0430","legend-series-hide":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","legend-series-show":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430","tooltip-point-format-size":"\u0420\u0430\u0437\u043c\u0435\u0440","tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435","error-incorrect-key-value-intro":"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432","error-incorrect-key":", \u043a\u043b\u044e\u0447\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c\u044b \u0432 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e","error-incorrect-value":", \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u0438\u0431\u043e \u0441\u0442\u0440\u043e\u043a\u0430, \u043b\u0438\u0431\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0443"},"chartkit-table":{"message-no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","paginator-rows":"\u0421\u0442\u0440\u043e\u043a\u0438"},"chartkit-ymap-legend":{"label-more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451 {{count}}","label-hide":"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c","label-heatmap":"\u0422\u0435\u043f\u043b\u043e\u0432\u0430\u044f \u043a\u0430\u0440\u0442\u0430"},"error":{"label_no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label_unknown-plugin":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0442\u0438\u043f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \\"{{type}}\\"","label_unknown-error":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430","label_invalid-axis-category-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"category\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0438 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-datetime-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"datetime\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-linear-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"linear\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 null.","label_invalid-pie-data-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-series-type":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"series.type\\" \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{types}}].","label_invalid-series-property":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \\"{{key}}\\", \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{values}}].","label_invalid-treemap-redundant-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"value\\" \u0434\u043b\u044f \u0443\u0437\u043b\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0437\u0435\u043b \u0431\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u0434\u043b\u044f \u043e\u0441\u0438 Y: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435","decimal-point":",","thousands-sep":" ","Mon":"\u041f\u043d","Tue":"\u0412\u0442","Wed":"\u0421\u0440","Thu":"\u0427\u0442","Fri":"\u041f\u0442","Sat":"\u0421\u0431","Sun":"\u0412\u0441","Jan":"\u042f\u043d\u0432","January":"\u042f\u043d\u0432\u0430\u0440\u044c","Feb":"\u0424\u0435\u0432","February":"\u0424\u0435\u0432\u0440\u0430\u043b\u044c","Mar":"\u041c\u0430\u0440","March":"\u041c\u0430\u0440\u0442","Apr":"\u0410\u043f\u0440","April":"\u0410\u043f\u0440\u0435\u043b\u044c","May":"\u041c\u0430\u0439","Jun":"\u0418\u044e\u043d","June":"\u0418\u044e\u043d\u044c","Jul":"\u0418\u044e\u043b","July":"\u0418\u044e\u043b\u044c","Aug":"\u0410\u0432\u0433","August":"\u0410\u0432\u0433\u0443\u0441\u0442","Sep":"\u0421\u0435\u043d","September":"\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","Oct":"\u041e\u043a\u0442","October":"\u041e\u043a\u0442\u044f\u0431\u0440\u044c","Nov":"\u041d\u043e\u044f","November":"\u041d\u043e\u044f\u0431\u0440\u044c","Dec":"\u0414\u0435\u043a","December":"\u0414\u0435\u043a\u0430\u0431\u0440\u044c"}}'),r=new n.TH;r.registerKeysets("en",s),r.registerKeysets("ru",o);const a=r.i18n.bind(r)},40014:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>b});var n=i(27145),s=i(59284),o=i(8964),r=i(66643),a=i(42392);const l=()=>`ck.${((e,t)=>{let i="";for(let n=e;n>0;--n)i+=t[Math.floor(Math.random()*t.length)];return i})(10,"0123456789abcdefghijklmnopqrstuvwxyz")}`,d=s.memo;var h=i(82435);const c=(0,h.withNaming)({e:"__",m:"_"}),u=(0,h.withNaming)({n:"chartkit-",e:"__",m:"_"});class g extends s.Component{constructor(){super(...arguments),this.state={error:void 0},this.resetError=()=>{this.state.error&&this.setState({error:void 0})}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(){var e,t;const{error:i}=this.state;i&&(null===(t=(e=this.props).onError)||void 0===t||t.call(e,{error:i}))}componentDidUpdate(e){if(e.data!==this.props.data){const{error:e}=this.state;e&&"code"in e&&e.code===a.iY.NO_DATA&&this.resetError()}}render(){const{error:e}=this.state;if(e){const t=function(e){const t="code"in e&&e.code;return(e.message||t||(0,o.R)("error","label_unknown-error")).toString()}(e);return this.props.renderError?this.props.renderError({error:e,message:t,resetError:this.resetError}):s.createElement("div",null,t)}return this.props.children}}var p=i(74417);const m=u("loader"),f=e=>{var{renderPluginLoader:t}=e,i=(0,n.Tt)(e,["renderPluginLoader"]);const o=null===t||void 0===t?void 0:t();return"undefined"!==typeof o?o:s.createElement("div",{className:m()},s.createElement(p.a,Object.assign({},i)))},_=c("chartkit"),v=e=>{const t=s.useRef(),{instanceRef:i,id:d,type:h,isMobile:c,renderPluginLoader:u}=e,g=(0,n.Tt)(e,["instanceRef","id","type","isMobile","renderPluginLoader"]),p=s.useMemo((()=>l()),[]),m=d||p,v=r.W.get("lang"),b=r.W.get("plugins").find((e=>e.type===h));if(!b)throw new a.R({code:a.iY.UNKNOWN_PLUGIN,message:(0,o.R)("error","label_unknown-plugin",{type:h})});const C=b.renderer;return s.useImperativeHandle(i,(()=>({reflow(e){var i;(null===(i=t.current)||void 0===i?void 0:i.reflow)&&t.current.reflow(e)}})),[]),s.createElement(s.Suspense,{fallback:s.createElement(f,{renderPluginLoader:u})},s.createElement("div",{className:_({mobile:c},"chartkit-theme_common")},s.createElement(C,Object.assign({ref:t,id:m,lang:v},g))))},b=d(s.forwardRef((function(e,t){return s.createElement(g,{onError:e.onError,data:e.data,renderError:e.renderError},s.createElement(v,Object.assign({instanceRef:t},e)))})))},42392:(e,t,i)=>{"use strict";i.d(t,{R:()=>s,iY:()=>n});const n={NO_DATA:"ERR.CK.NO_DATA",INVALID_DATA:"ERR.CK.INVALID_DATA",UNKNOWN:"ERR.CK.UNKNOWN_ERROR",UNKNOWN_PLUGIN:"ERR.CK.UNKNOWN_PLUGIN",TOO_MANY_LINES:"ERR.CK.TOO_MANY_LINES"};class s extends Error{constructor({originalError:e,message:t,code:i=n.UNKNOWN}={}){super(t),this.isCustomError=!0,this.code=i,e&&(this.name=e.name,this.stack=e.stack)}}},66643:(e,t,i)=>{"use strict";i.d(t,{W:()=>p});var n=i(3357),s=i(87924),o=i.n(s),r=i(52708),a=i.n(r),l=i(8964);var d=i(38469),h=i.n(d);function c(e,t,i){if("plugins"===i){const i=[...e],n=[...t];let s=i.map((e=>{const t=n.findIndex((({type:t})=>t===e.type));if(-1!==t){const i=n[t];return n.splice(t,1),{type:e.type,renderer:i.renderer}}return e}));return n.length>0&&(s=[...s,...n]),s}return h()(e)?a()(e,t,c):t}const u=new class{constructor(){this.events={}}on(e,t){this.events[e]?this.events[e].push(t):this.events[e]=[t]}off(e,t){this.events[e]&&(this.events[e]=this.events[e].filter((({id:e})=>e!==t)))}dispatch(e,t){this.events[e]&&this.events[e].forEach((({action:e})=>{e(t)}))}},g=e=>{(0,n.jK)({lang:e}),l.J.setLang(e)};const p=new class{constructor(){this.settings={plugins:[],lang:"en"},g(this.get("lang"))}get(e){return o()(this.settings,e)}set(e){const t=(i=e,Object.entries(i).reduce(((e,[t,i])=>("undefined"!==typeof i&&(e[t]=i),e)),{}));var i;if(this.settings=a()(this.settings,t,c),t.lang){const e=t.lang||this.get("lang");g(e),u.dispatch("change-lang",e)}}}},25533:(e,t,i)=>{"use strict";i.d(t,{YagrPlugin:()=>n});const n={type:"yagr",renderer:i(59284).lazy((()=>Promise.all([i.e(1836),i.e(8593)]).then(i.bind(i,81836))))}},49001:(e,t,i)=>{"use strict";i.d(t,{u:()=>p});var n=i(59284),s=i(96873);const o=(0,i(98192).o)("definition-list");const r=e=>"label"in e&&!("name"in e);function a(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function l({copyText:e,content:t,copyPosition:i}){const r="inside"===i,a=null!==t&&void 0!==t?t:"\u2014";return e?n.createElement("div",{className:o("copy-container",{"icon-inside":r})},n.createElement("span",null,a),n.createElement(s.b,{size:"s",text:e,className:o("copy-button"),view:r?"raised":"flat-secondary"})):a}var d=i(98089);function h({label:e}){return n.createElement("div",{className:o("title")},n.createElement(d.E,{variant:"subheader-1",color:"complementary"},e))}var c=i(6170);function u({note:e}){if(!e)return null;const t=o("item-note-tooltip");return"string"===typeof e?n.createElement(c.B,{className:t,content:e,placement:["bottom","top"]}):"object"===typeof e?n.createElement(c.B,Object.assign({className:t,placement:["bottom","top"]},e)):null}function g({note:e,name:t,nameTitle:i,multilineName:s}){const r=n.createElement(n.Fragment,null,"\xa0",n.createElement(u,{note:e}));return n.createElement(n.Fragment,null,n.createElement("div",{className:o("term-wrapper")},n.createElement("span",{title:a(i,t)},t),s&&r),!s&&r,n.createElement("div",{className:o("dots",{"with-note":Boolean(e)})}))}function p({items:e,responsive:t,nameMaxWidth:i,contentMaxWidth:s="auto",className:d,itemClassName:c,copyPosition:u="outside",qa:p}){const m=i?{flexBasis:i}:{},f="number"===typeof s?{flexBasis:s,maxWidth:s}:{},_=n.useMemo((()=>function(e){return e.reduce(((e,t)=>{var i;if(r(t)){e.push({label:t.label});const n=[...null!==(i=t.items)&&void 0!==i?i:[]].map((e=>Object.assign(Object.assign({},e),{isGrouped:!0})));e.push(...n)}else e.push(t);return e}),[])}(e).map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[e]);return n.createElement("dl",{className:o({responsive:t},d),"data-qa":p},_.map((e=>{if(r(e)){const{key:t,label:i}=e;return n.createElement(h,{key:t,label:i})}const{name:t,key:i,content:s,contentTitle:d,nameTitle:p,copyText:_,note:v,multilineName:b,isGrouped:C}=e;return n.createElement("div",{key:i,className:o("item",{grouped:C},c)},n.createElement("dt",{className:o("term-container",{multiline:b}),style:m},n.createElement(g,{name:t,nameTitle:p,note:v,multilineName:b})),n.createElement("dd",{className:o("definition"),title:a(d,s),style:Object.assign(Object.assign({},f),{lineBreak:"string"===typeof s&&(y=20,function(e){return e.split(/\s+/).some((e=>e.length>y))})(s)?"anywhere":void 0})},n.createElement(l,{copyPosition:u,copyText:_,content:s})));var y})))}},6170:(e,t,i)=>{"use strict";i.d(t,{B:()=>d});var n=i(59284),s=i(73633),o=i(84375),r=i(99991);const a=(0,i(98192).o)("help-popover"),l=16;function d(e){var t;return n.createElement(o.A,Object.assign({},e,{className:a(null,e.className)}),n.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:a("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),n.createElement(r.I,{data:s.A,size:l})))}},98192:(e,t,i)=>{"use strict";i.d(t,{o:()=>s});var n=i(82435);(0,n.withNaming)({e:"__",m:"_",v:"_"});const s=(0,n.withNaming)({n:"gc-",e:"__",m:"_",v:"_"})},79142:(e,t,i)=>{"use strict";i.d(t,{k:()=>Zt});var n=i(60712),s=i(59284);const o=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.25 5.497a.75.75 0 0 1-.75-.75V4A1.5 1.5 0 0 0 3 5.5v1h10v-1A1.5 1.5 0 0 0 11.5 4v.75a.75.75 0 0 1-1.5 0V4H6v.747a.75.75 0 0 1-.75.75ZM10 2.5H6v-.752a.75.75 0 1 0-1.5 0V2.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-6a3 3 0 0 0-3-3v-.75a.75.75 0 0 0-1.5 0v.75ZM3 8v3.5A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5V8H3Z",clipRule:"evenodd"}));var r=i(46819),a=i(85736),l=i(51301),d=i(28664),h=i(84476),c=i(99991);const u="g-date-",g=(0,i(82435).withNaming)({n:u,e:"__",m:"_"});function p({name:e,value:t,onReset:i,form:o,disabled:r,toStringValue:a}){const l=function({initialValue:e,onReset:t}){const[i,n]=s.useState(null),o=s.useRef(e);s.useEffect((()=>{if(!i||!t)return;const e=()=>{t(o.current)};return i.addEventListener("reset",e),()=>{i.removeEventListener("reset",e)}}),[i,t]);const r=s.useCallback((e=>{var t;n(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[]);return r}({initialValue:t,onReset:i});if(!e)return null;const d=a?a(t):`${null!==t&&void 0!==t?t:""}`;return(0,n.jsx)("input",{ref:l,type:"hidden",name:e,value:d,disabled:r,form:o})}function m(e){switch(e){case"xl":return"l";case"l":return"m";case"s":return"xs";default:return"s"}}var f=i(14750),_=i(12640),v=i(39238);const b=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("g",{clipPath:"url(#a)"},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.312 4.29a.764.764 0 0 1 1.103-.62.75.75 0 1 0 .67-1.34 2.264 2.264 0 0 0-3.268 1.836L2.706 5.5H1.75a.75.75 0 0 0 0 1.5h.83l-.392 4.71a.764.764 0 0 1-1.103.62.75.75 0 0 0-.67 1.34 2.264 2.264 0 0 0 3.268-1.836L4.086 7H5.25a.75.75 0 1 0 0-1.5H4.21l.102-1.21Zm6.014 2.23a.75.75 0 0 0-1.152.96l.85 1.02-.85 1.02a.75.75 0 0 0 1.152.96L11 9.672l.674.808a.75.75 0 0 0 1.152-.96l-.85-1.02.85-1.02a.75.75 0 0 0-1.152-.96L11 7.328l-.674-.808ZM8.02 4.55a.75.75 0 0 1 .43.969l-.145.378a7.25 7.25 0 0 0 0 5.205l.145.378a.75.75 0 0 1-1.4.539l-.145-.378a8.75 8.75 0 0 1 0-6.282l.145-.378a.75.75 0 0 1 .97-.431Zm5.961 0a.75.75 0 0 1 .97.43l.145.379a8.75 8.75 0 0 1 0 6.282l-.146.378a.75.75 0 1 1-1.4-.538l.146-.379a7.25 7.25 0 0 0 0-5.205l-.146-.378a.75.75 0 0 1 .431-.97Z",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))),C=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM8.75 4.5a.75.75 0 0 0-1.5 0V8a.75.75 0 0 0 .3.6l2 1.5a.75.75 0 1 0 .9-1.2l-1.7-1.275V4.5Z",clipRule:"evenodd"}));var y=i(32084),w=i(9187),S=i(38602),k=i(33705);var x=i(72837);const L=JSON.parse('{"Previous":"Previous","Next":"Next","Switch to months view":"Switch to months view","Switch to quarters view":"Switch to quarters view","Switch to years view":"Switch to years view"}'),D=JSON.parse('{"Previous":"\u041d\u0430\u0437\u0430\u0434","Next":"\u0412\u043f\u0435\u0440\u0451\u0434","Switch to months view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043c\u0435\u0441\u044f\u0446\u0430\u043c","Switch to quarters view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430\u043c","Switch to years view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u0433\u043e\u0434\u0430\u043c"}'),E=(0,x.N)({en:L,ru:D},`${u}calendar`),N="yc-button_disabled g-button_disabled";function T(e,t){const i=t.indexOf(e)+1;if(i===t.length)return;return{days:"",months:E("Switch to months view"),quarters:E("Switch to quarters view"),years:E("Switch to years view")}[t[i]]}function I(e,t,i){return t&&e.isBefore(t)?t:i&&i.isBefore(e)?i:e}const M=["days","months","quarters","years"],A=g("calendar"),R=s.forwardRef((function(e,t){const{state:i}=e,{calendarProps:o,modeButtonProps:r,nextButtonProps:a,previousButtonProps:d}=function(e,t){const i="years"===t.mode||"quarters"===t.mode?`${t.startDate.year()} \u2014 ${t.endDate.year()}`:t.focusedDate.format("days"===t.mode?"MMMM YYYY":"YYYY"),{focusWithinProps:n}=(0,l.R)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur}),o=Object.assign({role:"group",id:e.id,"aria-label":[e["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]||void 0,"aria-describedby":e["aria-describedby"]||void 0,"aria-details":e["aria-details"]||void 0,"aria-disabled":t.disabled||void 0},n),r=t.availableModes.indexOf(t.mode),a=r+1===t.availableModes.length,d=r+2===t.availableModes.length,h=t.disabled||a,c={disabled:t.disabled,className:h?N:void 0,onClick:h?void 0:()=>{t.zoomOut(),d&&t.setFocused(!0)},extraProps:{"aria-disabled":h?"true":void 0,"aria-description":T(t.mode,t.availableModes),"aria-live":"polite"},children:i},u=s.useRef(!1),g=t.disabled||t.isPreviousPageInvalid();s.useLayoutEffect((()=>{g&&u.current&&(u.current=!1,t.setFocused(!0))}));const p={disabled:t.disabled,className:g?N:void 0,onClick:g?void 0:()=>{t.focusPreviousPage()},onFocus:g?void 0:()=>{u.current=!0},onBlur:g?void 0:()=>{u.current=!1},extraProps:{"aria-label":E("Previous"),"aria-disabled":g?"true":void 0}},m=s.useRef(!1),f=t.disabled||t.isNextPageInvalid();return s.useLayoutEffect((()=>{f&&m.current&&(m.current=!1,t.setFocused(!0))})),{calendarProps:o,modeButtonProps:c,nextButtonProps:{disabled:t.disabled,className:f?N:void 0,onClick:f?void 0:()=>{t.focusNextPage()},onFocus:f?void 0:()=>{m.current=!0},onBlur:f?void 0:()=>{m.current=!1},extraProps:{"aria-label":E("Next"),"aria-disabled":g?"true":void 0}},previousButtonProps:p}}(e,i);return s.useImperativeHandle(t,(()=>({focus(){i.setFocused(!0)}}))),(0,n.jsxs)("div",Object.assign({},o,{className:A({size:e.size}),children:[(0,n.jsxs)("div",{className:A("header"),children:[(0,n.jsx)(h.$,Object.assign({},r,{view:"flat",size:e.size,children:i.availableModes.indexOf(i.mode)+1===i.availableModes.length?(0,n.jsx)("span",{className:A("mode-label",A("years-label")),children:r.children},"label"):[(0,n.jsx)("span",{className:A("mode-label"),children:r.children},"label"),(0,n.jsx)(h.$.Icon,{children:(0,n.jsx)(k.I,{direction:"bottom"})},"icon")]})),(0,n.jsxs)("div",{className:A("controls"),children:[(0,n.jsx)(h.$,Object.assign({},d,{view:"flat",size:e.size,children:(0,n.jsx)(h.$.Icon,{children:(0,n.jsx)(w.A,{className:A("control-icon")})})})),(0,n.jsx)(h.$,Object.assign({},a,{view:"flat",size:e.size,children:(0,n.jsx)(h.$.Icon,{children:(0,n.jsx)(S.A,{className:A("control-icon")})})}))]})]}),(0,n.jsx)(O,{state:i})]}))}));function O({state:e}){const[t,i]=s.useState((()=>Object.assign(Object.assign({},e),{isFocused:!1}))),o=e.mode!==t.mode,r=!e.startDate.isSame(t.startDate,"days");let a;o?a=M.indexOf(t.mode)>M.indexOf(e.mode)?"zoom-out":"zoom-in":r&&(a=e.startDate.isBefore(t.startDate)?"forward":"backward");const{gridProps:d}=function(e){const{focusWithinProps:t}=(0,l.R)({onFocusWithinChange:t=>{e.setFocused(t)}});return{gridProps:Object.assign(Object.assign({role:"grid","aria-label":"years"===e.mode||"quarters"===e.mode?`${e.startDate.year()} \u2014 ${e.endDate.year()}`:e.focusedDate.format("days"===e.mode?"MMMM YYYY":"YYYY"),"aria-disabled":e.disabled?"true":void 0,"aria-readonly":e.readOnly?"true":void 0},t),{onKeyDown:t=>{"ArrowRight"===t.key?(t.preventDefault(),e.focusNextCell()):"ArrowLeft"===t.key?(t.preventDefault(),e.focusPreviousCell()):"ArrowDown"===t.key?(t.preventDefault(),e.focusNextRow()):"ArrowUp"===t.key?(t.preventDefault(),e.focusPreviousRow()):"PageDown"===t.key?(t.preventDefault(),e.focusNextPage(t.shiftKey)):"PageUp"===t.key?(t.preventDefault(),e.focusPreviousPage(t.shiftKey)):"End"===t.key?(t.preventDefault(),e.focusSectionEnd()):"Home"===t.key?(t.preventDefault(),e.focusSectionStart()):"Minus"===t.code?(t.preventDefault(),e.zoomOut()):"Equal"===t.code?(t.preventDefault(),e.zoomIn()):"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.selectDate(e.focusedDate))}})}}(e);return(0,n.jsxs)("div",Object.assign({className:A("grid")},d,{children:[a&&(0,n.jsx)(P,{className:A("previous-state"),state:t,animation:a}),(0,n.jsx)(P,{className:A("current-state"),state:e,animation:a,onAnimationEnd:()=>{i(Object.assign(Object.assign({},e),{isFocused:!1}))}},"current")]}))}function P({className:e,state:t,animation:i,onAnimationEnd:s}){return(0,n.jsxs)("div",{className:A("content",{animation:i},e),onAnimationEnd:s,role:"presentation",children:["days"===t.mode&&(0,n.jsx)(F,{state:t}),(0,n.jsx)(B,{state:t})]})}function F({state:e}){const t=function(){const e=[],t=(0,f.KQ)().startOf("week");for(let i=0;i<7;i++){const n=t.add({days:i});e.push(n)}return e}();return(0,n.jsx)("div",{className:A("grid-row"),role:"row",children:t.map((t=>(0,n.jsx)("div",{className:A("weekday",{weekend:e.isWeekend(t)}),role:"columnheader","aria-label":t.format("dddd"),children:t.format("dd")},t.day())))})}function B({state:e}){const t="days"===e.mode?6:4,i="days"===e.mode?7:3+("quarters"===e.mode?1:0),s=function(e,t,i){const n=[];if("days"===i){const t=e.startOf("week");for(let e=0;e<42;e++)n.push(t.add({days:e}))}else if("quarters"===i)for(let s=0;s<16;s++)n.push(e.add(s,"quarters"));else for(let s=0;s<12;s++)n.push(e.add({[i]:s}));return n}(e.startDate,e.endDate,e.mode);return(0,n.jsx)("div",{className:A("grid-rowgroup",{mode:e.mode}),role:"rowgroup",children:[...new Array(t).keys()].map((t=>(0,n.jsxs)("div",{className:A("grid-row"),role:"row",children:["quarters"===e.mode?(0,n.jsx)("span",{role:"rowheader",className:A("grid-rowgroup-header"),children:s[t*i].format("YYYY")}):null,s.slice(t*i,(t+1)*i).map((t=>(0,n.jsx)(W,{date:t,state:e},t.unix())))]},t)))})}function W({date:e,state:t}){const{cellProps:i,buttonProps:o,formattedDate:r,isDisabled:a,isSelected:l,isRangeSelection:d,isSelectionStart:h,isSelectionEnd:c,isOutsideCurrentRange:u,isUnavailable:g,isCurrent:p,isWeekend:m}=function(e,t){const i=s.useRef(null),n=t.isCellFocused(e);s.useEffect((()=>{var e;n&&(null===(e=i.current)||void 0===e||e.focus({preventScroll:!0}))}),[n]);const o=t.focusedDate.isSame(e,t.mode)?0:-1,r=t.isCellDisabled(e),a=t.isSelected(e),l="highlightedRange"in t&&t.highlightedRange,d=Boolean(l&&a),h=a&&l&&e.isSame(l.start,t.mode),c=a&&l&&e.isSame(l.end,t.mode),u="days"===t.mode&&!t.focusedDate.isSame(e,"month"),g=t.isCellUnavailable(e),p=!r&&!g,m=t.isCurrent(e),f=t.isWeekend(e),_=function(e,t){let i="";return"days"===t?i=`${e.format("dddd")}, ${e.format("LL")}`:"months"===t?i=`${e.format("MMMM YYYY")}`:"quarters"===t?i=`${e.format("[Q]Q YYYY")}`:"years"===t&&(i=`${e.format("YYYY")}`),i}(e,t.mode),v={role:"gridcell","aria-selected":a?"true":void 0,"aria-disabled":r?"true":void 0},b={ref:i,role:"button",tabIndex:r?void 0:o,"aria-disabled":p?void 0:"true","aria-label":_,onClick:p?()=>{t.setFocusedDate(e),t.selectDate(e)}:void 0,onPointerEnter(){if("highlightDate"in t&&p)if(u){const i=e.isBefore(t.focusedDate)?t.focusedDate.startOf("month"):t.focusedDate.endOf("month").startOf("date");t.highlightDate(i)}else t.highlightDate(e)}};let C=e.format("D");return"months"===t.mode?C=e.format("MMM"):"quarters"===t.mode?C=e.format("[Q]Q"):"years"===t.mode&&(C=e.format("YYYY")),{cellProps:v,buttonProps:b,formattedDate:C,isDisabled:r,isSelected:a,isRangeSelection:d,isSelectionStart:h,isSelectionEnd:c,isOutsideCurrentRange:u,isUnavailable:g,isCurrent:m,isWeekend:f}}(e,t);return(0,n.jsx)("div",Object.assign({},i,{children:(0,n.jsx)("div",Object.assign({},o,{className:A("button",{disabled:a,selected:l,"range-selection":d,"selection-start":h,"selection-end":c,"out-of-boundary":u,unavailable:g,current:p,weekend:m}),children:r}))}))}function V({placeholderValue:e,timeZone:t}){return null!==e&&void 0!==e?e:(0,f.KQ)({timeZone:t}).set("hour",0).set("minute",0).set("second",0)}function H(e,t){return e.set("hours",t.hour()).set("minutes",t.minute()).set("seconds",t.second())}function z(e){const t=e?e.timeZone():"default",[i,n]=s.useState(t);e&&t!==i&&n(t);return e?t:i}const j={days:!0,months:!0,quarters:!1,years:!0};function U(e,t){if("days"===t)return e.startOf("month");if("months"===t)return e.startOf("year");if("quarters"===t){const t=4*Math.floor(e.year()/4);return e.startOf("year").set("year",t)}const i=12*Math.floor(e.year()/12);return e.startOf("year").set("year",i)}function K(e,t){if("days"===t)return e.endOf("month").startOf("day");if("months"===t)return e.endOf("year").startOf("month");const i=U(e,t);return"quarters"===t?i.add(15,"quarters"):i.add({[t]:11})}function G(e,t,i,n="days"){return!I(e,t,i).isSame(e,n)}const $=s.forwardRef((function(e,t){const i=function(e){var t,i,n;const{disabled:o,readOnly:r,modes:l=j}=e,[d,h]=(0,a.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),c=M.filter((e=>l[e])),u=c[0]||"days",[g,p]=(0,a.P)(e.mode,null!==(i=e.defaultMode)&&void 0!==i?i:u,e.onUpdateMode),m=g&&c.includes(g)?g:u,_=z(e.value||e.defaultValue||e.focusedValue||e.defaultFocusedValue),v=e.timeZone||_,b=s.useMemo((()=>e.minValue?e.minValue.timeZone(v):void 0),[v,e.minValue]),C=s.useMemo((()=>e.maxValue?e.maxValue.timeZone(v):void 0),[v,e.maxValue]),y=s.useMemo((()=>e.focusedValue?I(e.focusedValue.timeZone(v),b,C):e.focusedValue),[e.focusedValue,b,C,v]),w=s.useMemo((()=>{var t;return I((null===(t=e.defaultFocusedValue?e.defaultFocusedValue:d)||void 0===t?void 0:t.timeZone(v))||V({timeZone:v}).startOf(u),b,C)}),[C,b,e.defaultFocusedValue,v,d,u]),[S,k]=(0,a.P)(y,w,(t=>{var i;null===(i=e.onFocusUpdate)||void 0===i||i.call(e,t.timeZone(_))})),x=null!==(n=null===S||void 0===S?void 0:S.timeZone(v))&&void 0!==n?n:I(V({timeZone:v}),b,C);function L(e){k(I(e.startOf(m),b,C))}G(x,b,C)&&k(I(x,b,C));const[D,E]=s.useState(e.autoFocus||!1),N=U(x,m),T=K(x,m);return{disabled:o,readOnly:r,value:d,setValue(e){if(!o&&!r){let t=I(e,b,C);if(this.isCellUnavailable(t))return;d&&(t=H(t,d.timeZone(v))),h(t.timeZone(_))}},timeZone:v,selectDate(e,t=!1){o||(r||!t&&this.mode!==u?this.zoomIn():(this.setValue(e.startOf(u)),t&&m!==u&&p(u)))},minValue:b,maxValue:C,focusedDate:x,startDate:N,endDate:T,setFocusedDate(e){L(e),E(!0)},focusNextCell(){L(x.add(1,this.mode))},focusPreviousCell(){L(x.subtract(1,this.mode))},focusNextRow(){"days"===this.mode?L(x.add(1,"week")):"quarters"===this.mode?L(x.add(1,"years")):L(x.add(3,this.mode))},focusPreviousRow(){"days"===this.mode?L(x.subtract(1,"week")):"quarters"===this.mode?L(x.subtract(1,"years")):L(x.subtract(3,this.mode))},focusNextPage(e){"days"===this.mode?L(x.add({months:e?12:1})):"quarters"===this.mode?L(x.add(4,"years")):L(x.add(12,this.mode))},focusPreviousPage(e){"days"===this.mode?L(x.subtract({months:e?12:1})):"quarters"===this.mode?L(x.subtract(4,"years")):L(x.subtract(12,this.mode))},focusSectionStart(){L(U(x,this.mode))},focusSectionEnd(){L(K(x,this.mode))},zoomIn(){const e=c[c.indexOf(this.mode)-1];e&&this.setMode(e)},zoomOut(){const e=c[c.indexOf(this.mode)+1];e&&this.setMode(e)},selectFocusedDate(){this.selectDate(x,!0)},isFocused:D,setFocused:E,isInvalid(e){return G(e,this.minValue,this.maxValue,this.mode)},isPreviousPageInvalid(){const e=this.startDate.subtract(1,"day");return this.isInvalid(e)},isNextPageInvalid(){const e=this.endDate.endOf(this.mode).add(1,"day");return this.isInvalid(e)},isSelected(e){return Boolean(d&&e.isSame(d.timeZone(v),m)&&!this.isCellDisabled(e))},isCellUnavailable(t){return this.mode===u&&Boolean(e.isDateUnavailable&&e.isDateUnavailable(t))},isCellFocused(e){return this.isFocused&&x&&e.isSame(x,m)},isCellDisabled(e){return this.disabled||this.isInvalid(e)},isWeekend(e){return"days"===this.mode&&[0,6].includes(e.day())},isCurrent(e){return(0,f.KQ)({timeZone:v}).isSame(e,this.mode)},mode:m,setMode:p,availableModes:c}}(e);return(0,n.jsx)(R,Object.assign({ref:t},e,{state:i}))}));var q=i(27145);const Q=JSON.parse('{"year_placeholder":"Y","month_placeholder":"M","weekday_placeholder":"E","day_placeholder":"D","hour_placeholder":"h","minute_placeholder":"m","second_placeholder":"s","dayPeriod_placeholder":"aa"}'),Y=JSON.parse('{"year_placeholder":"\u0413","month_placeholder":"\u041c","weekday_placeholder":"\u0414\u041d","day_placeholder":"\u0414","hour_placeholder":"\u0447","minute_placeholder":"\u043c","second_placeholder":"\u0441","dayPeriod_placeholder":"(\u0434|\u043f)\u043f"}'),Z=(0,x.N)({en:Q,ru:Y},`${u}date-field`),X={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,weekday:!0},J={start:"[",end:"]"},ee={YY:"year",YYYY:"year",M:"month",MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:"day",DD:"day",Do:"day",d:"weekday",dd:{sectionType:"weekday",contentType:"letter"},ddd:{sectionType:"weekday",contentType:"letter"},dddd:{sectionType:"weekday",contentType:"letter"},A:{sectionType:"dayPeriod",contentType:"letter"},a:{sectionType:"dayPeriod",contentType:"letter"},H:"hour",HH:"hour",h:"hour",hh:"hour",m:"minute",mm:"minute",s:"second",ss:"second",z:{sectionType:"timeZoneName",contentType:"letter"},zzz:{sectionType:"timeZoneName",contentType:"letter"},Z:{sectionType:"timeZoneName",contentType:"letter"},ZZ:{sectionType:"timeZoneName",contentType:"letter"}};function te(e){return 4===(0,f.KQ)().format(e).length}function ie(e,t){const{type:i,format:n}=e;switch(i){case"year":{const e=te(n);return{minValue:e?1:0,maxValue:e?9999:99}}case"month":return{minValue:0,maxValue:11};case"weekday":return{minValue:0,maxValue:6};case"day":return{minValue:1,maxValue:t?t.daysInMonth():31};case"hour":if(function(e){return"15"!==(0,f.KQ)().set("hour",15).format(e)}(n)){const e=t.hour()>=12;return{minValue:e?12:0,maxValue:e?23:11}}return{minValue:0,maxValue:23};case"minute":case"second":return{minValue:0,maxValue:59}}return{}}function ne(e,t){const i=e.type;switch(i){case"year":return te(e.format)?t.year():Number(t.format(e.format));case"month":case"hour":case"minute":case"second":return t[i]();case"day":return t.date();case"weekday":return t.day();case"dayPeriod":return t.hour()>=12?12:0}}const se={weekday:"day",day:"date",dayPeriod:"hour"};function oe(e){if("literal"===e||"timeZoneName"===e||"unknown"===e)throw new Error(`${e} section does not have duration unit.`);return e in se?se[e]:e}function re(e,t){switch(e.type){case"year":return Z("year_placeholder").repeat((0,f.KQ)().format(t).length);case"month":return Z("month_placeholder").repeat("letter"===e.contentType?4:2);case"day":return Z("day_placeholder").repeat(2);case"weekday":return Z("weekday_placeholder").repeat("letter"===e.contentType?4:2);case"hour":return Z("hour_placeholder").repeat(2);case"minute":return Z("minute_placeholder").repeat(2);case"second":return Z("second_placeholder").repeat(2);case"dayPeriod":return Z("dayPeriod_placeholder");default:return t}}function ae(e){const t=[],i=(0,f.cS)(e);let n="",s=!1,o=!1;for(let r=0;r<i.length;r++){const e=i[r]||"";if(o){if(e===J.end){o=!1;continue}n+=e}else e.match(/[a-zA-Z]/)?(s&&(de(t,n),n=""),s=!1,n+=e):(s||(le(t,n),n=""),s=!0,e===J.start?o=!0:n+=e)}return n&&(s?de(t,n):le(t,n)),t}function le(e,t){if(!t)return;const i=function(e){const t=ee[e];return t?"string"===typeof t?{type:t,contentType:"digit"}:{type:t.sectionType,contentType:t.contentType}:(console.error([`The token "${e}" is not supported by the Date field.`,"Please try using another token."].join("\n")),{type:"literal",contentType:"letter"})}(t),n=function(e,t,i){if("digit"!==e)return!1;switch(t){case"year":return te(i)?"0001"===(0,f.KQ)().set("year",1).format(i):"01"===(0,f.KQ)().set("year",2001).format(i);case"month":return(0,f.KQ)().startOf("year").format(i).length>1;case"day":return(0,f.KQ)().startOf("month").format(i).length>1;case"weekday":return(0,f.KQ)().startOf("week").format(i).length>1;case"hour":return(0,f.KQ)().set("hour",1).format(i).length>1;case"minute":return(0,f.KQ)().set("minute",1).format(i).length>1;case"second":return(0,f.KQ)().set("second",1).format(i).length>1;default:throw new Error("Invalid section type")}}(i.contentType,i.type,t);e.push(Object.assign(Object.assign({},i),{format:t,placeholder:re(i,t),options:he(i,t),hasLeadingZeros:n}))}function de(e,t){t&&e.push({type:"literal",contentType:"letter",format:t,placeholder:t,hasLeadingZeros:!1})}function he(e,t){switch(e.type){case"month":{const i="letter"===e.contentType?t:"MMMM";let n=(0,f.KQ)().startOf("year");const s=[];for(let e=0;e<12;e++)s.push(n.format(i).toLocaleUpperCase()),n=n.add(1,"months");return s}case"dayPeriod":{const e=(0,f.KQ)().hour(0),i=e.hour(12);return[e.format(t).toLocaleUpperCase(),i.format(t).toLocaleUpperCase()]}case"weekday":{const i="letter"===e.contentType?t:"dddd";let n=(0,f.KQ)().day(0);const s=[];for(let e=0;e<7;e++)s.push(n.format(i).toLocaleUpperCase()),n=n.add(1,"day");return s}}}function ce(e,t,i){let n=1;const s=[];let o=-1;for(let r=0;r<e.length;r++){const a=e[r];if(!a)continue;const l=ge(a,t,i,n,o);if(s.push(l),ue(a)){for(let e=Math.max(0,o);e<=r;e++){const t=s[e];t&&(t.nextEditableSection=r,-1===t.previousEditableSection&&(t.previousEditableSection=r))}o=r}n+=l.textValue.length}return s}function ue(e){var t;return null!==(t=X[e.type])&&void 0!==t&&t}function ge(e,t,i,n,s){const o=ue(e);let r=e.placeholder;(o&&i[e.type]||"timeZoneName"===e.type)&&(r=t.format(e.format),"digit"===e.contentType&&r.length<e.placeholder.length&&(r=r.padStart(e.placeholder.length,"0"))),r="\u2068"+r+"\u2069";const a=r.length;return Object.assign(Object.assign(Object.assign({},e),{value:ne(e,t),textValue:r,start:n,end:n+a,modified:!1,previousEditableSection:s,nextEditableSection:s}),ie(e,t))}function pe(e,t){const i="all"===t||-1===t?0:t,n=e[i];return n&&!X[n.type]?n.nextEditableSection:n?i:-1}function me(e){let t=(0,f.KQ)(e);return(0,f.fn)(t)||(t=(0,f.KQ)(Object.assign(Object.assign({},e),{format:void 0}))),t}function fe(e,t){return Object.keys(e).every((e=>t[e]))}function _e(e,t){const i=s.useRef(null),[,n]=s.useState({});function o(t){e.setSelectedSections(t),n({})}function r(){var t,s;e.readOnly?o(-1):(e.focusSectionInPosition(null!==(s=null===(t=i.current)||void 0===t?void 0:t.selectionStart)&&void 0!==s?s:0),n({}))}s.useLayoutEffect((()=>{const t=i.current;if(!t)return;if(null===e.selectedSectionIndexes)return void(t.scrollLeft&&(t.scrollLeft=0));const n=e.sections[e.selectedSectionIndexes.startIndex],s=e.sections[e.selectedSectionIndexes.endIndex];if(n&&s){const e=n.start,i=s.end;e===t.selectionStart&&i===t.selectionEnd||t.setSelectionRange(e,i)}}));const a=s.useMemo((()=>{if(!e.selectedSectionIndexes)return"text";const t=e.sections[e.selectedSectionIndexes.startIndex];return t&&"letter"!==t.contentType?"tel":"text"}),[e.selectedSectionIndexes,e.sections]);return{inputProps:{value:e.text,view:t.view,size:t.size,disabled:e.disabled,hasClear:!e.readOnly&&!e.isEmpty&&t.hasClear,placeholder:t.placeholder,id:t.id,label:t.label,startContent:t.startContent,endContent:t.endContent,pin:t.pin,autoFocus:t.autoFocus,controlRef:i,autoComplete:"off",type:"text",validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,onUpdate(t){t||e.clearAll()},onFocus(n){var s;if(null===(s=t.onFocus)||void 0===s||s.call(t,n),null!==e.selectedSectionIndexes)return;const a=n.target,l=!i.current;setTimeout((()=>{a&&a===i.current&&(l?e.focusSectionInPosition(0):a.value.length&&Number(a.selectionEnd)-Number(a.selectionStart)===a.value.length?o("all"):r())}))},onBlur(e){var i;null===(i=t.onBlur)||void 0===i||i.call(t,e),o(-1)},onKeyDown(i){var n;null===(n=t.onKeyDown)||void 0===n||n.call(t,i),"ArrowLeft"===i.key?(i.preventDefault(),e.focusPreviousSection()):"ArrowRight"===i.key?(i.preventDefault(),e.focusNextSection()):"Home"===i.key?(i.preventDefault(),e.decrementToMin()):"End"===i.key?(i.preventDefault(),e.incrementToMax()):"ArrowUp"!==i.key||i.altKey?"ArrowDown"!==i.key||i.altKey?"PageUp"===i.key?(i.preventDefault(),e.incrementPage()):"PageDown"===i.key?(i.preventDefault(),e.decrementPage()):"Backspace"===i.key||"Delete"===i.key?(i.preventDefault(),e.clearSection()):"a"===i.key&&(i.ctrlKey||i.metaKey)&&(i.preventDefault(),o("all")):(i.preventDefault(),e.decrement()):(i.preventDefault(),e.increment())},onKeyUp:t.onKeyUp,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0,inputMode:a,onClick(){r()},onMouseUp(e){e.preventDefault()},onBeforeInput(t){t.preventDefault();const i=t.data;void 0!==i&&null!==i&&e.onInput(i)},onPaste(t){if(t.preventDefault(),e.readOnly)return;const i=t.clipboardData.getData("text").replace(/[\u2066\u2067\u2068\u2069]/g,"");if(e.selectedSectionIndexes&&e.selectedSectionIndexes.startIndex===e.selectedSectionIndexes.endIndex){const t=e.sections[e.selectedSectionIndexes.startIndex],n=/^\d+$/.test(i),s=/^[a-zA-Z]+$/.test(i);if(Boolean(t&&("digit"===t.contentType&&n||"letter"===t.contentType&&s)))return void e.onInput(i);if(n||s)return}e.setValueFromString(i)}}}}}const ve={year:5,month:2,weekday:3,day:7,hour:2,minute:15,second:15};function be(e){var t,i;const[n,o]=(0,a.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),r=z(e.value||e.defaultValue||e.placeholderValue),l=e.timeZone||r,d=e=>{o(e?e.timeZone(r):e)},[h,c]=s.useState((()=>V({placeholderValue:e.placeholderValue,timeZone:l}))),u=e.format||"L",g=function(e){const t=e,[i,n]=s.useState((()=>ae(t))),[o,r]=s.useState(t);return t!==o&&(r(t),n(ae(t))),i}(u),p=s.useMemo((()=>g.filter((e=>X[e.type])).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t.type]:!0})),{})),[g]),m=s.useState((()=>n?Object.assign({},p):{}));let _=m[0];const v=m[1];n&&!fe(p,_)&&v(Object.assign({},p)),!n&&fe(p,_)&&Object.keys(_).length===Object.keys(p).length&&(_={},v(_),c(V({placeholderValue:e.placeholderValue,timeZone:l})));const b=n&&(0,f.fn)(n)&&fe(p,_)?n.timeZone(l):h.timeZone(l),C=function(e,t,i){const[n,o]=s.useState((()=>({value:t,sections:e,validSegments:i,editableSections:ce(e,t,i)})));e===n.sections&&i===n.validSegments&&t.isSame(n.value)&&t.timeZone()===n.value.timeZone()||o({value:t,sections:e,validSegments:i,editableSections:ce(e,t,i)});return n}(g,b,_),[y,w]=s.useState(-1),S=s.useMemo((()=>{if(-1===y)return null;if("all"===y)return{startIndex:0,endIndex:C.editableSections.length-1};if("number"===typeof y)return{startIndex:y,endIndex:y};if("string"===typeof y){const e=C.editableSections.findIndex((e=>e.type===y));return{startIndex:e,endIndex:e}}return y}),[y,C.editableSections]);function k(t){e.disabled||e.readOnly||(fe(p,_)?n&&t.isSame(n)||d(t):(n&&d(null),c(t)))}function x(e){_[e]=!0,_.day&&_.month&&_.year&&p.weekday&&(_.weekday=!0),_.hour&&p.dayPeriod&&(_.dayPeriod=!0),v(Object.assign({},_))}const L=e.validationState||(function(e,t,i){return!!e&&(!(!t||!e.isBefore(t))||!(!i||!i.isBefore(e)))}(n,e.minValue,e.maxValue)?"invalid":void 0)||(n&&(null===(i=e.isDateUnavailable)||void 0===i?void 0:i.call(e,n))?"invalid":void 0);return function(e){const{value:t,validationState:i,displayValue:n,editableSections:o,selectedSectionIndexes:r,selectedSections:a,isEmpty:l,flushAllValidSections:d,flushValidSection:h,setSelectedSections:c,setValue:u,setDate:g,adjustSection:p,setSection:m,getSectionValue:f,setSectionValue:_,createPlaceholder:v,setValueFromString:b}=e,C=s.useRef(""),{hasDate:y,hasTime:w}=s.useMemo((()=>{let e=!1,t=!1;for(const i of o)t||(t=["hour","minute","second"].includes(i.type)),e||(e=["day","month","year"].includes(i.type));return{hasTime:t,hasDate:e}}),[o]);return{value:t,isEmpty:l,displayValue:n,setValue:u,setDate:g,text:(S=o,"\u2066"+S.map((e=>e.textValue)).join("")+"\u2069"),readOnly:e.readOnly,disabled:e.disabled,sections:o,hasDate:y,hasTime:w,selectedSectionIndexes:r,validationState:i,setSelectedSections(e){C.current="",c(e)},focusSectionInPosition(e){const t=this.sections.findIndex((t=>t.end>=e)),i=-1===t?0:t,n=this.sections[i];n&&this.setSelectedSections(X[n.type]?i:n.nextEditableSection)},focusNextSection(){var e,t;const i="all"===a?0:a,n=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==n&&this.setSelectedSections(n)},focusPreviousSection(){var e,t;const i="all"===a?0:a,n=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==n&&this.setSelectedSections(n)},focusFirstSection(){var e,t;const i=null!==(t=null===(e=this.sections[0])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==i&&c(i)},focusLastSection(){var e,t;const i=null!==(t=null===(e=this.sections[this.sections.length-1])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==i&&this.setSelectedSections(i)},increment(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);-1!==e&&p(e,1)},decrement(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);-1!==e&&p(e,-1)},incrementPage(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);-1!==e&&p(e,ve[this.sections[e].type]||1)},decrementPage(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);-1!==e&&p(e,-(ve[this.sections[e].type]||1))},incrementToMax(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.maxValue&&m(e,t.maxValue)}},decrementToMin(){if(this.readOnly||this.disabled)return;C.current="";const e=pe(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.minValue&&m(e,t.minValue)}},clearSection(){if(this.readOnly||this.disabled)return;if(C.current="","all"===a)return void this.clearAll();const t=pe(this.sections,a);if(-1===t)return;h(t);const i=this.sections[t],n=V({placeholderValue:e.placeholderValue,timeZone:e.timeZone}).timeZone(e.timeZone),s=f(t);let o=s;if("dayPeriod"===i.type){const e=s.hour()>=12,t=n.hour()>=12;e&&!t?o=s.set("hour",s.hour()-12):!e&&t&&(o=s.set("hour",s.hour()+12))}else{const e=oe(i.type);o=s.set(e,n[e]())}_(t,o)},clearAll(){if(this.readOnly||this.disabled)return;C.current="",d(),null!==t&&g(null);const e=v();u(e)},onInput(e){if(this.readOnly||this.disabled)return;const t=pe(this.sections,a);if(-1===t)return;const i=this.sections[t];let n=C.current+e;const s=s=>{var o,r,a;let l="month"===i.type?s-1:s;const d=0===i.minValue;if("hour"!==i.type||12!==i.minValue&&11!==i.maxValue){if(l>(null!==(o=i.maxValue)&&void 0!==o?o:0)&&(l=Number(e)-("month"===i.type?1:0),n=e,l>(null!==(r=i.maxValue)&&void 0!==r?r:0)))return void(C.current="")}else s>12&&(l=Number(e)),12===i.minValue&&l>1&&(l+=12);const h=l>0||0===l&&d;h&&m(t,l),Number(s+"0")>(null!==(a=i.maxValue)&&void 0!==a?a:0)||n.length>=String(i.maxValue).length?(C.current="",h&&this.focusNextSection()):C.current=n},o=s=>{var o;const r=null!==(o=i.options)&&void 0!==o?o:[];let a=s.toLocaleUpperCase(),l=r.filter((e=>e.startsWith(a)));if(0===l.length&&(s!==e&&(a=e.toLocaleUpperCase(),l=r.filter((e=>e.startsWith(a)))),0===l.length))return void(C.current="");const d=l[0],h=r.indexOf(d);"dayPeriod"===i.type?m(t,1===h?12:0):m(t,h),l.length>1?C.current=n:(C.current="",this.focusNextSection())};switch(i.type){case"day":case"hour":case"minute":case"second":case"year":if(!Number.isInteger(Number(n)))return;s(Number(n));break;case"dayPeriod":o(n);break;case"weekday":case"month":Number.isInteger(Number(n))?s(Number(n)):o(n)}},setValueFromString:e=>(C.current="",b(e))};var S}({value:n,displayValue:b,placeholderValue:e.placeholderValue,timeZone:l,validationState:L,editableSections:C.editableSections,readOnly:e.readOnly,disabled:e.disabled,selectedSectionIndexes:S,selectedSections:y,isEmpty:0===Object.keys(_).length,flushAllValidSections:function(){_={},v({})},flushValidSection:function(e){const t=C.editableSections[e];t&&delete _[t.type],v(Object.assign({},_))},setSelectedSections:w,setValue:k,setDate:d,adjustSection:function(e,t){const i=C.editableSections[e];i&&(_[i.type]?k(function(e,t,i){var n;let s=null!==(n=e.value)&&void 0!==n?n:0;if("dayPeriod"===e.type)s=t.hour()+(t.hour()>=12?-12:12);else{s+=i;const t=e.minValue,n=e.maxValue;if("number"===typeof t&&"number"===typeof n){const e=n-t+1;s=(s-t+e)%e+t}}"year"!==e.type||te(e.format)||(s=(0,f.KQ)({input:`${s}`.padStart(2,"0"),format:e.format}).year());const o=oe(e.type);return t.set(o,s)}(i,b,t)):(x(i.type),Object.keys(_).length>=Object.keys(p).length&&k(b)))},setSection:function(e,t){const i=C.editableSections[e];i&&(x(i.type),k(function(e,t,i){const n=e.type;switch(n){case"year":return t.set("year",te(e.format)?i:(0,f.KQ)({input:`${i}`.padStart(2,"0"),format:e.format}).year());case"day":case"weekday":case"month":return t.set(oe(n),i);case"dayPeriod":{const e=t.hour(),n=e>=12;return i>=12===n?t:t.set("hour",n?e-12:e+12)}case"hour":{let n=i;if(12===e.minValue||11===e.maxValue){const e=t.hour()>=12;e||12!==n||(n=0),e&&n<12&&(n+=12)}return t.set("hour",n)}case"minute":case"second":return t.set(n,i)}return t}(i,b,t)))},getSectionValue:function(e){return b},setSectionValue:function(e,t){k(t)},createPlaceholder:function(){return V({placeholderValue:e.placeholderValue,timeZone:l}).timeZone(l)},setValueFromString:function(e){const t=function(e,t,i){let n=me({input:e,format:t,timeZone:i});(0,f.fn)(n)&&i&&!function(e){return/z$/i.test(e)||/[+-]\d\d:\d\d$/.test(e)}(e)&&(n=H(n,me({input:e,format:t})));return n}(e,u,l);return!!(0,f.fn)(t)&&(d(t),!0)}})}const Ce=g("date-field");function ye(e){var{className:t}=e,i=(0,q.Tt)(e,["className"]);const o=be(i),{inputProps:r}=_e(o,i),[a,h]=s.useState(!1),{focusWithinProps:c}=(0,l.R)({onFocusWithinChange(e){h(e)}});return(0,n.jsxs)("div",Object.assign({className:Ce(null,t),style:i.style},c,{children:[(0,n.jsx)(d.k,Object.assign({},r,{value:o.isEmpty&&!a&&i.placeholder?"":r.value})),(0,n.jsx)(p,{name:i.name,value:o.value,toStringValue:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.toISOString())&&void 0!==t?t:""},onReset:e=>{o.setDate(e)},disabled:o.disabled,form:i.form})]}))}const we=g("mobile-calendar");function Se({props:e,state:t}){var i,s;let o="date";return t.hasTime&&t.hasDate?o="datetime-local":t.hasTime&&(o="time"),(0,n.jsx)("input",{className:we(),disabled:e.disabled,type:o,value:xe(t.dateFieldState.displayValue,o),id:e.id,min:xe(null===(i=e.minValue)||void 0===i?void 0:i.timeZone(t.timeZone),o),max:xe(null===(s=e.maxValue)||void 0===s?void 0:s.timeZone(t.timeZone),o),tabIndex:-1,onChange:i=>{var n,s;if(e.readOnly)return;const r=i.target.value;if(r){const i=(0,f.KQ)({input:r,format:ke(o),timeZone:"system"}).timeZone(t.timeZone,!0);let a=t.hasDate?i:V({placeholderValue:null===(n=e.placeholderValue)||void 0===n?void 0:n.timeZone(t.timeZone),timeZone:t.timeZone});a=t.hasTime?H(a,i):t.value?H(a,t.value.timeZone(t.timeZone)):H(a,V({placeholderValue:null===(s=e.placeholderValue)||void 0===s?void 0:s.timeZone(t.timeZone),timeZone:t.timeZone})),t.setValue(a)}else t.setValue(null)}})}function ke(e){switch(e){case"time":return"HH:mm";case"datetime-local":return"YYYY-MM-DDTHH:mm";default:return"YYYY-MM-DD"}}function xe(e,t){if(!e)return"";const i=ke(t);return e.format(i)}const Le=g("stub-button");function De({size:e,icon:t}){return(0,n.jsx)("span",{className:Le({size:e}),children:(0,n.jsx)("span",{className:Le("icon"),children:(0,n.jsx)(c.I,{data:t})})})}function Ee(...e){const t=Object.assign({},e[0]);for(let i=1;i<e.length;i++){const n=e[i];if(n)for(const e of Object.keys(n)){const i=t[e],s=n[e];"function"===typeof i&&"function"===typeof s&&e.startsWith("on")&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Ne(i,s):t[e]="className"===e&&"string"===typeof i&&"string"===typeof s?i+" "+s:"controlProps"===e&&"object"===typeof i&&"object"===typeof s?Ee(i,s):void 0===s?i:s}}return t}function Ne(...e){return(...t)=>{for(const i of e)"function"===typeof i&&i(...t)}}const Te=JSON.parse('{"Calendar":"Calendar","Formula input mode":"Formula input mode"}'),Ie=JSON.parse('{"Calendar":"\u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c","Formula input mode":"\u0420\u0435\u0436\u0438\u043c \u0432\u0432\u043e\u0434\u0430 \u0444\u043e\u0440\u043c\u0443\u043b\u044b"}'),Me=(0,x.N)({en:Te,ru:Ie},`${u}relative-date-picker`);function Ae(e,t){var{onFocus:i,onBlur:n}=t,o=(0,q.Tt)(t,["onFocus","onBlur"]);const{mode:r,setMode:d,datePickerState:h,relativeDateState:c}=e,[u,g]=s.useState("relative"===r?c.lastCorrectDate:h.dateFieldState.displayValue),[p,f]=s.useState(c.lastCorrectDate);p!==c.lastCorrectDate&&(f(c.lastCorrectDate),g(c.lastCorrectDate));const[_,v]=s.useState(h.dateFieldState.displayValue);h.dateFieldState.displayValue.isSame(_,"day")||(v(h.dateFieldState.displayValue),g(h.dateFieldState.displayValue));const{focusWithinProps:b}=(0,l.R)({onFocusWithin:i,onBlurWithin:n,onFocusWithinChange(t){t||e.setActive(!1)}}),[C,w]=(0,a.P)(void 0,!1,o.onOpenChange);!e.isActive&&C&&w(!1);const S={onFocus:()=>{e.isActive||(e.setActive(!0),w(!0))},errorMessage:o.errorMessage,errorPlacement:o.errorPlacement,controlProps:{onClick:()=>{e.disabled||C||(e.setActive(!0),w(!0))}}},{inputProps:k}=_e(h.dateFieldState,Object.assign(Object.assign({},o),{value:void 0,defaultValue:void 0,onUpdate:void 0})),{inputProps:x}=function(e,t){const[i,n]=s.useState(e.lastCorrectDate),[o,r]=s.useState(e.lastCorrectDate);return i!==e.lastCorrectDate&&(n(e.lastCorrectDate),r(e.lastCorrectDate)),{inputProps:{size:t.size,autoFocus:t.autoFocus,value:e.text,onUpdate:e.setText,disabled:e.disabled,hasClear:t.hasClear,validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,label:t.label,id:t.id,startContent:t.startContent,endContent:t.endContent,pin:t.pin,view:t.view,placeholder:t.placeholder,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onBlur:t.onBlur,onFocus:t.onFocus,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0}},calendarProps:{size:"s"===t.size?"m":t.size,readOnly:!0,value:e.parsedDate,focusedValue:o,onFocusUpdate:r},timeInputProps:{size:t.size,readOnly:!0,value:e.lastCorrectDate,format:"LTS"}}}(c,Object.assign(Object.assign({},o),{value:void 0,defaultValue:void 0,onUpdate:void 0}));let L=o.validationState;L||(L="relative"===r?c.validationState:h.dateFieldState.validationState);const D=s.useRef(null),E=(0,y.N)(D,"relative"===r?x.controlRef:k.controlRef),N=s.useRef(null);function T(){setTimeout((()=>{var e;null===(e=N.current)||void 0===e||e.focus()}))}function I(){setTimeout((()=>{var e;null===(e=D.current)||void 0===e||e.focus({preventScroll:!0})}))}const M=s.useRef(null);return{groupProps:Object.assign(Object.assign({ref:M,tabIndex:-1,role:"group"},b),{onKeyDown:e=>{!e.altKey||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),e.stopPropagation(),w(!0),T())}}),fieldProps:Ee(S,"relative"===r?x:k,"absolute"===r&&h.dateFieldState.isEmpty&&!e.isActive&&o.placeholder?{value:""}:void 0,{controlRef:E,validationState:L}),modeSwitcherProps:{size:m(o.size),disabled:e.readOnly||e.disabled,view:"flat-secondary",style:{zIndex:2,marginInlineEnd:2},selected:"relative"===r,extraProps:{"aria-label":Me("Formula input mode")},onClick:()=>{if(d("relative"===r?"absolute":"relative"),"relative"===r){const e=h.value;e&&g(e)}else c.parsedDate&&g(c.parsedDate);I()}},calendarButtonProps:{size:m(o.size),disabled:e.disabled,extraProps:{"aria-label":Me("Calendar"),"aria-haspopup":"dialog","aria-expanded":C},view:"flat-secondary",onClick:()=>{e.setActive(!0),w(!C),C||T()}},popupProps:{open:C,onEscapeKeyDown:()=>{w(!1),I()},onOutsideClick:e=>{var t;e.target&&!(null===(t=M.current)||void 0===t?void 0:t.contains(e.target))&&w(!1)},onTransitionExited:()=>{g("relative"===r?c.lastCorrectDate:h.dateFieldState.displayValue)}},calendarProps:{ref:N,size:"s"===o.size?"m":o.size,readOnly:o.readOnly,value:e.selectedDate,onUpdate:t=>{h.setDateValue(t),e.datePickerState.hasTime||(w(!1),I())},focusedValue:u,onFocusUpdate:g,minValue:o.minValue,maxValue:o.maxValue},timeInputProps:{value:h.timeValue,onUpdate:h.setTimeValue,format:h.timeFormat,readOnly:e.readOnly,disabled:e.disabled,timeZone:o.timeZone,hasClear:o.hasClear,size:o.size}}}const Re=function({getPlaceholderTime:e,mergeDateTime:t,setTimezone:i,getDateTime:n,useDateFieldState:o}){return function(r){var l,d;const{disabled:h,readOnly:c}=r,[u,g]=(0,a.P)(r.open,null!==(l=r.defaultOpen)&&void 0!==l&&l,r.onOpenChange),p=g,[m,f]=(0,a.P)(r.value,null!==(d=r.defaultValue)&&void 0!==d?d:null,r.onUpdate),[_,v]=s.useState(null),[b,C]=s.useState(null),y=z(n(r.value)||n(r.defaultValue)||r.placeholderValue),w=r.timeZone||y;let S=_,k=b;const x=r.format||"L",L=(e,n)=>{h||c||(f(i(t(e,n),y)),v(null),C(null))},D=o(Object.assign(Object.assign({},r),{value:m,onUpdate(e){e?L(e,e):f(null)},disabled:h,readOnly:c,validationState:r.validationState,minValue:r.minValue,maxValue:r.maxValue,isDateUnavailable:r.isDateUnavailable,format:x,placeholderValue:r.placeholderValue,timeZone:w})),E=s.useMemo((()=>{if(!D.hasTime)return;const e=[],t=D.sections.find((e=>"hour"===e.type));t&&e.push(t.format);const i=D.sections.find((e=>"minute"===e.type));i&&e.push(i.format);const n=D.sections.find((e=>"second"===e.type));n&&e.push(n.format);const s=D.sections.find((e=>"dayPeriod"===e.type));return e.join(":")+(s?` ${s.format}`:"")}),[D.hasTime,D.sections]);m&&(S=i(m,w),D.hasTime&&(k=i(m,w)));return D.hasTime&&!k&&(k=D.displayValue),{value:m,setValue(e){r.readOnly||r.disabled||f(e?i(e,y):null)},dateValue:S,timeValue:k,setDateValue:e=>{if(h||c)return;const t=!D.hasTime;D.hasTime?k||t?L(e,k||e):v(e):L(e,e),t&&p(!1,"ValueSelected")},setTimeValue:t=>{if(h||c)return;const i=null!==t&&void 0!==t?t:e(r.placeholderValue,w);S?L(S,i):C(i)},disabled:h,readOnly:c,format:x,hasDate:D.hasDate,hasTime:D.hasTime,timeFormat:E,timeZone:w,isOpen:u,setOpen(t,i){!t&&!m&&S&&D.hasTime&&L(S,k||e(r.placeholderValue,r.timeZone)),p(t,i)},dateFieldState:D}}}({getPlaceholderTime:function(e,t){return V({placeholderValue:e,timeZone:t})},mergeDateTime:H,setTimezone:(e,t)=>e.timeZone(t),getDateTime:function(e){if(e)return"start"in e&&"end"in e?e.start:e},useDateFieldState:be});function Oe(e){var t;const[i,n]=(0,a.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[o,r]=s.useState("relative"===(null===i||void 0===i?void 0:i.type)?"relative":"absolute"),[l,d]=s.useState(i);i!==l&&(d(i),i&&i.type!==o&&r(i.type));const[h,c]=s.useState("absolute"===(null===i||void 0===i?void 0:i.type)?i.value:null);"absolute"===(null===i||void 0===i?void 0:i.type)&&i.value!==h&&c(i.value);const u=Re({value:h,onUpdate:e=>{c(e),"absolute"===(null===i||void 0===i?void 0:i.type)&&(null===e||void 0===e?void 0:e.isSame(i.value))||n(e?{type:"absolute",value:e}:null)},format:e.format,placeholderValue:e.placeholderValue,timeZone:e.timeZone,disabled:e.disabled,readOnly:e.readOnly,minValue:e.minValue,maxValue:e.maxValue}),[g,p]=s.useState("relative"===(null===i||void 0===i?void 0:i.type)?i.value:null);"relative"===(null===i||void 0===i?void 0:i.type)&&i.value!==g&&p(i.value);const m=function(e){var t;const[i,n]=(0,a.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[o,r]=s.useState(null!==i&&void 0!==i?i:"");i&&i!==o&&r(i);const l=s.useMemo((()=>{var t;return i&&null!==(t=(0,f.bQ)(i,{timeZone:e.timeZone,roundUp:e.roundUp}))&&void 0!==t?t:null}),[i,e.timeZone,e.roundUp]),[d,h]=s.useState(l);l&&l!==d&&h(l);const c=e.validationState||o&&!l?"invalid":void 0;return{value:i,setValue(t){e.disabled||e.readOnly||n(t)},text:o,setText:t=>{if(!e.disabled&&!e.readOnly)if(r(t),(0,f.eP)(t)){const e=(0,f.bQ)(t);e&&(0,f.fn)(e)?n(t):n(null)}else n(null)},parsedDate:l,lastCorrectDate:d,validationState:c,disabled:e.disabled,readOnly:e.readOnly}}({value:g,onUpdate:e=>{p(e),"relative"===(null===i||void 0===i?void 0:i.type)&&e===i.value||n(e?{type:"relative",value:e}:null)},disabled:e.disabled,readOnly:e.readOnly,timeZone:u.timeZone,roundUp:e.roundUp});i||("absolute"===o&&h?c(null):"relative"===o&&g&&p(null));const _="relative"===o?m.parsedDate:u.dateFieldState.displayValue,[v,b]=s.useState(!1);return{value:i,setValue(t){e.readOnly||e.disabled||n(t)},disabled:e.disabled,readOnly:e.readOnly,mode:o,setMode(t){e.readOnly||e.disabled||t===o||(r(t),"relative"===t?(!i&&g||i)&&n(g?{type:"relative",value:g}:null):(!i&&h||i)&&n(h?{type:"absolute",value:h}:null))},datePickerState:u,relativeDateState:m,selectedDate:_,isActive:v,setActive:b}}const Pe=g("relative-date-picker");function Fe(e){var t;const i=Oe(e),{groupProps:a,fieldProps:l,modeSwitcherProps:u,calendarButtonProps:g,popupProps:m,calendarProps:f,timeInputProps:_}=Ae(i,e),w=s.useRef(null),S=(0,y.N)(w,a.ref),k=(0,r.I)(),x=i.datePickerState.hasTime&&!i.datePickerState.hasDate;return(0,n.jsxs)("div",Object.assign({},a,{ref:S,className:Pe(null,e.className),children:[k&&"absolute"===i.mode&&(0,n.jsx)(Se,{state:i.datePickerState,props:{id:e.id,disabled:e.disabled,readOnly:e.readOnly,placeholderValue:e.placeholderValue,timeZone:e.timeZone}}),(0,n.jsx)(d.k,Object.assign({},l,{controlProps:Object.assign(Object.assign({},l.controlProps),{disabled:k&&"absolute"===i.mode,className:Pe("input",{mobile:k&&"absolute"===i.mode})}),hasClear:e.hasClear&&!(k&&"absolute"===i.mode),startContent:(0,n.jsx)(h.$,Object.assign({},u,{children:(0,n.jsx)(c.I,{data:b})})),endContent:(0,n.jsxs)(s.Fragment,{children:[!k&&!x&&(0,n.jsx)(h.$,Object.assign({},g,{children:(0,n.jsx)(c.I,{data:o})})),!k&&x&&(0,n.jsx)(De,{size:g.size,icon:C}),k&&"absolute"===i.mode&&(0,n.jsx)(De,{size:g.size,icon:x?C:o})]})})),(0,n.jsx)(p,{name:e.name,value:null===(t=i.value)||void 0===t?void 0:t.type,disabled:i.disabled,form:e.form}),(0,n.jsx)(p,{name:e.name,value:i.value,toStringValue:e=>function(e){if(!e)return"";if("relative"===e.type)return e.value;return e.value.toISOString()}(e),onReset:e=>{i.setValue(e)},disabled:i.disabled,form:e.form}),!k&&!x&&(0,n.jsx)(v.z,Object.assign({},m,{anchorRef:w,children:(0,n.jsxs)("div",{className:Pe("popup-content"),children:["function"===typeof e.children?e.children(f):(0,n.jsx)($,Object.assign({},f)),i.datePickerState.hasTime&&(0,n.jsx)("div",{className:Pe("time-field-wrapper"),children:(0,n.jsx)(ye,Object.assign({},_))})]})}))]}))}var Be=i(23871),We=i(40091),Ve=i(73633),He=i(87924),ze=i.n(He),je=i(81824),Ue=i.n(je),Ke=i(61199),Ge=i.n(Ke),$e=i(69220),qe=i(27629);const Qe=JSON.parse('{"label_empty":"No data","label-actions":"Actions","label-row-select":"Select"}'),Ye=JSON.parse('{"label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label-actions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f","label-row-select":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c"}'),Ze=(0,x.N)({en:Qe,ru:Ye},"Table");function Xe(e){(0,qe.m)(`[Table] Physical values (left, right) of "${e}" property are deprecated. Use logical values (start, end) instead.`)}function Je(e,t){return"left"===e?(Xe(t),"start"):"right"===e?(Xe(t),"end"):e}const et=(0,$e.om)("table");class tt extends s.Component{constructor(){super(...arguments),this.state={activeScrollElement:"scrollContainer",columnsStyles:Array.from(this.props.columns,(()=>({}))),columnHeaderRefs:Array.from(this.props.columns,(()=>s.createRef()))},this.tableRef=s.createRef(),this.scrollContainerRef=s.createRef(),this.horizontalScrollBarRef=s.createRef(),this.horizontalScrollBarInnerRef=s.createRef(),this.renderRow=(e,t)=>{const{columns:i,isRowDisabled:n,onRowClick:o,onRowMouseEnter:r,onRowMouseLeave:a,onRowMouseDown:l,getRowClassNames:d,verticalAlign:h,edgePadding:c,wordWrap:u,getRowDescriptor:g}=this.props,{columnsStyles:p}=this.state,m=null===g||void 0===g?void 0:g(e,t),f=(null===m||void 0===m?void 0:m.disabled)||(null===n||void 0===n?void 0:n(e,t))||!1,_=(null===m||void 0===m?void 0:m.classNames)||(null===d||void 0===d?void 0:d(e,t))||[],v=Boolean(!f&&o);return s.createElement("tr",{key:tt.getRowId(this.props,e,t),onClick:!f&&o?o.bind(null,e,t):void 0,onMouseEnter:!f&&r?r.bind(null,e,t):void 0,onMouseLeave:!f&&a?a.bind(null,e,t):void 0,onMouseDown:!f&&l?l.bind(null,e,t):void 0,className:et("row",{disabled:f,interactive:v,"vertical-align":h},_.join(" "))},i.map(((i,n)=>{const{id:o,align:r,primary:a,className:l,sticky:d}=i,h=tt.getBodyCellContent(i,e,t),g=Je(r,"column.align"),m=Je(d,"column.sticky");return s.createElement("td",{key:o,style:p[n],className:et("cell",{align:g,primary:a,sticky:m,"edge-padding":c,"word-wrap":u},l)},h)})))},this.handleScrollContainerMouseenter=()=>{this.setState({activeScrollElement:"scrollContainer"})},this.handleScrollContainerScroll=()=>{"scrollContainer"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.horizontalScrollBarRef.current.scrollLeft=this.scrollContainerRef.current.scrollLeft)},this.handleHorizontalScrollBarMouseenter=()=>{this.setState({activeScrollElement:"scrollBar"})},this.handleHorizontalScrollBarScroll=()=>{"scrollBar"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.scrollContainerRef.current.scrollLeft=this.horizontalScrollBarRef.current.scrollLeft)}}static getRowId(e,t,i){const{data:n,getRowId:s,getRowDescriptor:o}=e,r=null!==i&&void 0!==i?i:n.indexOf(t),a=null===o||void 0===o?void 0:o(t,r);return void 0!==(null===a||void 0===a?void 0:a.id)?a.id:"function"===typeof s?s(t,r):String(s&&s in t?t[s]:r)}static getHeadCellContent(e){const{id:t,name:i}=e;let n;return n="function"===typeof i?i():"string"===typeof i?i:t,n}static getBodyCellContent(e,t,i){const{id:n,template:s,placeholder:o}=e;let r,a;return r="function"===typeof o?o(t,i):null!==o&&void 0!==o?o:"\u2014","function"===typeof s?a=s(t,i):"string"===typeof s?a=ze()(t,s):Ue()(t,n)&&(a=ze()(t,n)),[void 0,null,""].includes(a)&&r?r:a}static getDerivedStateFromProps(e,t){return e.columns.length===t.columnHeaderRefs.length?null:{columnHeaderRefs:Array.from(e.columns,(()=>s.createRef()))}}componentDidMount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver=new ResizeObserver((e=>{var t;const{contentRect:i}=e[0];null===(t=this.horizontalScrollBarInnerRef.current)||void 0===t||t.style.setProperty("width",`${i.width}px`)})),this.tableRef.current&&this.tableResizeObserver.observe(this.tableRef.current),this.scrollContainerRef.current&&(this.scrollContainerRef.current.addEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.addEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.addEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.addEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver=new ResizeObserver((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length&&this.updateColumnStyles()}))})),this.tableRef.current&&this.columnsResizeObserver.observe(this.tableRef.current),this.updateColumnStyles()}componentDidUpdate(e){this.props.columns!==e.columns&&this.updateColumnStyles()}componentWillUnmount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver&&this.tableResizeObserver.disconnect(),this.scrollContainerRef.current&&(this.scrollContainerRef.current.removeEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.removeEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.removeEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.removeEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver&&this.columnsResizeObserver.disconnect()}render(){const{columns:e,stickyHorizontalScroll:t,className:i,qa:n}=this.props,o=e.some((({primary:e})=>e));return s.createElement("div",{className:et({"with-primary":o,"with-sticky-scroll":t},i),"data-qa":n},t?s.createElement(s.Fragment,null,s.createElement("div",{ref:this.scrollContainerRef,className:et("scroll-container")},this.renderTable()),this.renderHorizontalScrollBar()):this.renderTable())}renderHead(){const{columns:e,edgePadding:t,wordWrap:i}=this.props,{columnsStyles:n}=this.state;return s.createElement("thead",{className:et("head")},s.createElement("tr",{className:et("row")},e.map(((e,o)=>{const{id:r,align:a,primary:l,sticky:d,className:h}=e,c=Je(a,"column.align"),u=Je(d,"column.sticky"),g=tt.getHeadCellContent(e);return s.createElement("th",{key:r,ref:this.state.columnHeaderRefs[o],style:n[o],className:et("cell",{align:c,primary:l,sticky:u,"edge-padding":t,"word-wrap":i},h)},g)}))))}renderBody(){const{data:e}=this.props;return s.createElement("tbody",{className:et("body")},e.length>0?e.map(this.renderRow):this.renderEmptyRow())}renderTable(){const{width:e="auto"}=this.props;return s.createElement("table",{ref:this.tableRef,className:et("table",{width:e})},this.renderHead(),this.renderBody())}renderEmptyRow(){const{columns:e,emptyMessage:t}=this.props;return s.createElement("tr",{className:et("row",{empty:!0})},s.createElement("td",{className:et("cell"),colSpan:e.length},t||Ze("label_empty")))}renderHorizontalScrollBar(){const{stickyHorizontalScroll:e,stickyHorizontalScrollBreakpoint:t=0}=this.props;return s.createElement("div",{ref:this.horizontalScrollBarRef,className:et("horizontal-scroll-bar",{"sticky-horizontal-scroll":e}),style:{bottom:`${t}px`},"data-qa":"sticky-horizontal-scroll-breakpoint-qa"},s.createElement("div",{ref:this.horizontalScrollBarInnerRef,className:et("horizontal-scroll-bar-inner")}))}updateColumnStyles(){this.setState((e=>{const t=e.columnHeaderRefs.map((e=>null===e.current?void 0:e.current.getBoundingClientRect().width));return{columnsStyles:this.props.columns.map(((e,i)=>this.getColumnStyles(i,t)))}}))}getColumnStyles(e,t){const{columns:i}=this.props,n=i[e],s={};if("string"===typeof n.width)return{maxWidth:0,width:n.width};if("undefined"!==typeof n.width&&(s.width=n.width),!n.sticky)return s;const o="left"===n.sticky||"start"===n.sticky?t.slice(0,e):t.slice(e+1);return s["left"===n.sticky||"start"===n.sticky?"insetInlineStart":"insetInlineEnd"]=o.reduce(((e,t)=>Ge()(t)?e+t:e),0),s}}tt.defaultProps={edgePadding:!0};var it=i(84375);const nt=JSON.parse('{"Last 5 minutes":"Last 5 minutes","Last 15 minutes":"Last 15 minutes","Last 30 minutes":"Last 30 minutes","Last hour":"Last hour","Last 3 hours":"Last 3 hours","Last 6 hours":"Last 6 hours","Last 12 hours":"Last 12 hours","Last day":"Last day","Last 3 days":"Last 3 days","Last week":"Last week","Last month":"Last month","Last 3 months":"Last 3 months","Last 6 months":"Last 6 months","Last year":"Last year","Last 3 years":"Last 3 years","Today":"Today","Yesterday":"Yesterday","Day before yesterday":"Day before yesterday","This week":"This week","This month":"This month","This year":"This year","From start of day":"From start of day","From start of week":"From start of week","From start of month":"From start of month","From start of year":"From start of year","Previous month":"Previous month","Last {count} {unit}":"Last {{count}} {{unit}}","m":["minute","minutes","minutes"],"h":["hour","hours","hours"],"d":["day","days","days"],"w":["week","weeks","weeks"],"M":["month","months","months"],"y":["year","years","years"],"Main":"Main","Other":"Other","Range":"Range","From":"From","To":"To"}'),st=JSON.parse('{"Last 5 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 5 \u043c\u0438\u043d\u0443\u0442","Last 15 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 15 \u043c\u0438\u043d\u0443\u0442","Last 30 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 30 \u043c\u0438\u043d\u0443\u0442","Last hour":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0447\u0430\u0441","Last 3 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0447\u0430\u0441\u0430","Last 6 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u0447\u0430\u0441\u043e\u0432","Last 12 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 12 \u0447\u0430\u0441\u043e\u0432","Last day":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0434\u0435\u043d\u044c","Last 3 days":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0434\u043d\u044f","Last week":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043d\u0435\u0434\u0435\u043b\u044f","Last month":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last 3 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u043c\u0435\u0441\u044f\u0446\u0430","Last 6 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u043c\u0435\u0441\u044f\u0446\u0435\u0432","Last year":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0433\u043e\u0434","Last 3 years":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0433\u043e\u0434\u0430","Today":"\u0421\u0435\u0433\u043e\u0434\u043d\u044f","Yesterday":"\u0412\u0447\u0435\u0440\u0430","Day before yesterday":"\u041f\u043e\u0437\u0430\u0432\u0447\u0435\u0440\u0430","This week":"\u042d\u0442\u0430 \u043d\u0435\u0434\u0435\u043b\u044f","This month":"\u042d\u0442\u043e\u0442 \u043c\u0435\u0441\u044f\u0446","This year":"\u042d\u0442\u043e\u0442 \u0433\u043e\u0434","From start of day":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043d\u044f","From start of week":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u0434\u0435\u043b\u0438","From start of month":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u0435\u0441\u044f\u0446\u0430","From start of year":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0433\u043e\u0434\u0430","Previous month":"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last {count} {unit}":"Last {{count}} {{unit}}","m":["minute","minutes","minutes"],"h":["hour","hours","hours"],"d":["day","days","days"],"w":["week","weeks","weeks"],"M":["month","months","months"],"y":["year","years","years"],"Main":"\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435","Other":"\u0414\u0440\u0443\u0433\u0438\u0435","Range":"\u041f\u0435\u0440\u0438\u043e\u0434","From":"\u041e\u0442","To":"\u0414\u043e"}'),ot=(0,x.N)({en:nt,ru:st},`${u}relative-range-date-picker-presets`),rt=g("relative-range-date-picker-presets-doc"),at=[{id:"title",name:()=>ot("Range")},{id:"from",name:()=>ot("From")},{id:"to",name:()=>ot("To")}],lt=[{get title(){return ot("Last 5 minutes")},from:"now - 5m",to:"now"},{get title(){return ot("From start of day")},from:"now/d",to:"now"},{get title(){return ot("This week")},from:"now/w",to:"now/w"},{get title(){return ot("From start of week")},from:"now/w",to:"now"},{get title(){return ot("Previous month")},from:"now - 1M/M",to:"now - 1M/M"}];function dt({size:e,docs:t}){return(0,n.jsx)(tt,{columns:at,data:t,className:rt("table",{size:e})})}function ht({className:e,size:t,docs:i}){return(0,n.jsx)(it.A,{className:rt(null,e),tooltipContentClassName:rt("content"),hasArrow:!1,content:(0,n.jsx)(dt,{size:t,docs:i}),children:(0,n.jsx)(h.$,{className:rt("button"),view:"flat-secondary",size:m(t),children:(0,n.jsx)(c.I,{data:Ve.A})})})}function ct({className:e,size:t,docs:i}){const[o,r]=s.useState(!1);return(0,n.jsxs)("div",{className:rt(null,e),children:[(0,n.jsx)(h.$,{className:rt("button"),view:"flat-secondary",size:"l",onClick:()=>{r(!0)},children:(0,n.jsx)(c.I,{data:Ve.A})}),(0,n.jsx)(_.c,{visible:o,onClose:()=>r(!1),children:(0,n.jsx)(dt,{size:t,docs:i})})]})}function ut({className:e,size:t,docs:i=lt}){const s=(0,r.I)();return Array.isArray(i)&&0!==i.length?s?(0,n.jsx)(ct,{className:e,size:t,docs:i}):(0,n.jsx)(ht,{className:e,size:t,docs:i}):null}const gt=[{from:"now-1d",to:"now",get title(){return ot("Last day")}},{from:"now-3d",to:"now",get title(){return ot("Last 3 days")}},{from:"now-1w",to:"now",get title(){return ot("Last week")}},{from:"now-1M",to:"now",get title(){return ot("Last month")}},{from:"now-3M",to:"now",get title(){return ot("Last 3 months")}},{from:"now-6M",to:"now",get title(){return ot("Last 6 months")}},{from:"now-1y",to:"now",get title(){return ot("Last year")}},{from:"now-3y",to:"now",get title(){return ot("Last 3 years")}}],pt=[{from:"now-5m",to:"now",get title(){return ot("Last 5 minutes")}},{from:"now-15m",to:"now",get title(){return ot("Last 15 minutes")}},{from:"now-30m",to:"now",get title(){return ot("Last 30 minutes")}},{from:"now-1h",to:"now",get title(){return ot("Last hour")}},{from:"now-3h",to:"now",get title(){return ot("Last 3 hours")}},{from:"now-6h",to:"now",get title(){return ot("Last 6 hours")}},{from:"now-12h",to:"now",get title(){return ot("Last 12 hours")}}],mt=[{from:"now/d",to:"now/d",get title(){return ot("Today")}},{from:"now-1d/d",to:"now-1d/d",get title(){return ot("Yesterday")}},{from:"now-2d/d",to:"now-2d/d",get title(){return ot("Day before yesterday")}},{from:"now/w",to:"now/w",get title(){return ot("This week")}},{from:"now/M",to:"now/M",get title(){return ot("This month")}},{from:"now/y",to:"now/y",get title(){return ot("This year")}},{from:"now/d",to:"now",get title(){return ot("From start of day")}},{from:"now/w",to:"now",get title(){return ot("From start of week")}},{from:"now/M",to:"now",get title(){return ot("From start of month")}},{from:"now/y",to:"now",get title(){return ot("From start of year")}}],ft=pt.concat(gt,mt);function _t(e,t){return e.filter((e=>{const i=(0,f.bQ)(e.from),n=(0,f.bQ)(e.to,{roundUp:!0});return!(!i||!n)&&(!n.isBefore(i)&&(!t||!i.isBefore(t)))}))}const vt=g("relative-range-date-picker-presets");function bt({className:e,size:t="m",minValue:i,withTime:o,onChoosePreset:r,presetTabs:a,docs:l}){var d,h;const c=s.useMemo((()=>function(e,{minValue:t}={}){return e.reduce(((e,i)=>{const n=_t(i.presets,t);return n.length&&e.push(Object.assign(Object.assign({},i),{presets:n})),e}),[])}(null!==a&&void 0!==a?a:function({withTime:e,minValue:t}){const i=[],n={id:"main",title:ot("Main"),presets:[]},s=gt;e&&s.unshift(...pt),n.presets=_t(s,t),n.presets.length>0&&i.push(n);const o={id:"other",title:ot("Other"),presets:_t(mt,t)};return o.presets.length>0&&i.push(o),i}({withTime:o}),{minValue:i})),[o,i,a]),[u,g]=s.useState(null===(d=c[0])||void 0===d?void 0:d.id);if(0===c.length)return null;const p=null!==(h=c.find((e=>e.id===u)))&&void 0!==h?h:c[0];return p?(p.id!==u&&g(p.id),(0,n.jsxs)("div",{className:vt({size:t},e),children:[(0,n.jsxs)("div",{className:vt("tabs"),children:[(0,n.jsx)(Be.t,{activeTab:u,onSelectTab:g,items:c,size:"s"===t?"m":t}),(0,n.jsx)(ut,{className:vt("doc"),size:t,docs:l})]}),(0,n.jsx)("div",{className:vt("content"),children:(0,n.jsx)(yt,{presets:p.presets,onChoosePreset:r,size:t})})]})):null}const Ct={s:28,m:28,l:32,xl:36};function yt({presets:e,onChoosePreset:t,size:i="m"}){const o=s.useRef(null);return s.useEffect((()=>{var e,t;const i=o.current,n=null===(t=null===(e=o.current)||void 0===e?void 0:e.refContainer.current)||void 0===t?void 0:t.node;if(i&&n)try{n.setAttribute("tabindex","0"),n.setAttribute("class",vt("list-container"));const e=()=>{null===i.getActiveItem()&&i.activateItem(0,!0)};return n.addEventListener("focus",e),()=>{n.removeEventListener("focus",e)}}catch(s){}}),[]),(0,n.jsx)(We.B,{ref:o,className:vt("list"),itemClassName:vt("item"),items:e,filterable:!1,virtualized:!1,renderItem:e=>e.title,itemHeight:Ct[i],onItemClick:e=>{t(e.from,e.to)}})}var wt=i(24555),St=i(98089);function kt(e){const t=e.toLowerCase();return"default"===t||"system"===t?t:function(e){return"default"===e||"system"===e?(0,f.KQ)({timeZone:e}).timeZone():e}(e)}function xt(e){return`UTC ${(0,f.KQ)({timeZone:e}).format("Z")}`}function Lt({value:e,timeZone:t,alwaysShowAsAbsolute:i,format:n="L",presets:s}){var o,r,a,l,d,h;if(!e)return"";const c="default"===t?"":` (${xt(t)})`;let u="";e.start&&(u="relative"!==e.start.type||i?null!==(r=null===(o=(0,f.bQ)(e.start.value,{timeZone:t}))||void 0===o?void 0:o.format(n))&&void 0!==r?r:"":e.start.value);let g="";if(e.end&&(g="relative"!==e.end.type||i?null!==(l=null===(a=(0,f.bQ)(e.end.value,{timeZone:t,roundUp:!0}))||void 0===a?void 0:a.format(n))&&void 0!==l?l:"":e.end.value),!i&&"relative"===(null===(d=e.start)||void 0===d?void 0:d.type)&&"relative"===(null===(h=e.end)||void 0===h?void 0:h.type))return`${function(e,t,i=ft){const n=e.replace(/\s+/g,""),s=t.replace(/\s+/g,"");for(const o of i)if(o.from===n&&o.to===s)return o.title;if("now"===t){const t=/^now-(\d+)([m|h|d|w|M|y])$/.exec(e);if(t){const[,e,i]=t;if(["m","h","d","w","M","y"].includes(i))return ot("Last {count} {unit}",{count:e,unit:ot(i,{count:Number(e)})})}}return n+" \u2014 "+s}(e.start.value,e.end.value,s)}${c}`;return`${u} \u2014 ${g}${c}`}const Dt=JSON.parse('{"default":"Default","system":"Browser time"}'),Et=JSON.parse('{"default":"\u0414\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f","system":"\u0411\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f"}'),Nt=(0,x.N)({en:Dt,ru:Et},`${u}relative-range-date-picker-zones`),Tt={},It=(0,f.Pn)().reduce(((e,t)=>{const[i]=t.split("/");if(i){let n=Tt[i];n||(n={label:i,options:[]},Tt[i]=n,e.push(n)),n.options.push({value:t})}return e}),[]);It.unshift({value:"UTC"}),It.unshift({value:"system",get content(){return Nt("system")}}),It.unshift({value:"default",get content(){return Nt("default")}});const Mt=g("relative-range-date-picker-zones");function At(e){const t=kt(e.value),i=e.isMobile?"xl":e.size;return(0,n.jsx)(wt.l,{value:[t],options:It,size:i,onUpdate:t=>{const i=t[0];i&&e.onUpdate(i)},width:"max",renderControl:s=>{const o="system"===t||"default"===t?Nt(t):t;return(0,n.jsxs)(h.$,{onClick:s.onClick,ref:s.ref,view:"flat-secondary",width:"max",pin:"clear-clear",size:i,extraProps:{"aria-haspopup":"listbox","aria-expanded":s.open,onKeyDown:s.onKeyDown},className:Mt("control"),children:[`${o} (${xt(t)})`,(0,n.jsx)(c.I,{className:Mt("control-icon"),data:S.A,size:e.isMobile?20:16})]})},renderOption:({value:e,content:t})=>{const i=null!==t&&void 0!==t?t:e;return(0,n.jsxs)("span",{className:Mt("item"),children:[(0,n.jsxs)("span",{className:Mt("item-title"),title:e,children:[i,"\xa0"]}),(0,n.jsx)(St.E,{color:"secondary",children:xt(e)})]})},filterable:!0})}const Rt=JSON.parse('{"Value is incorrect.":"Value is incorrect.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","From":"From","To":"To","Apply":"Apply"}'),Ot=JSON.parse('{"Value is incorrect.":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","From":"\u041e\u0442","To":"\u0414o","Apply":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c"}'),Pt=(0,x.N)({en:Rt,ru:Ot},`${u}relative-range-date-picker-dialog`),Ft=JSON.parse('{"Value must be {minValue} or later.":"{{value}} must be {{minValue}} or later.","Value must be {maxValue} or earlier.":"{{value}} must be {{maxValue}} or earlier.","Selected date unavailable.":"Selected date unavailable.","Value is required.":"{{value}} is required."}'),Bt=JSON.parse('{"Value must be {minValue} or later.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {minValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435.","Value must be {maxValue} or earlier.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {maxValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u0440\u0430\u043d\u044c\u0448\u0435.","Selected date unavailable.":"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u0434\u0430\u0442\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430.","Value is required.":"{value} \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e."}'),Wt=(0,x.N)({en:Ft,ru:Bt},`${u}validation`);function Vt(e,t,i,n,s,o="Value"){const r=e&&i&&i.isBefore(e),a=e&&t&&e.isBefore(t),l=e&&(null===n||void 0===n?void 0:n(e))||!1,d=r||a||l,h=[];return d&&(a&&t&&h.push(Wt("Value must be {minValue} or later.",{minValue:t.timeZone(s).format(),value:o})),r&&i&&h.push(Wt("Value must be {maxValue} or earlier.",{maxValue:i.timeZone(s).format(),value:o})),l&&h.push(Wt("Selected date unavailable."))),{isInvalid:d,errors:h}}function Ht(e,t,i={}){var n;if(!e&&!t)return null;const{isInvalid:s}=zt(e,t,i.allowNullableValues,i.minValue,i.maxValue,i.isDateUnavailable,null!==(n=i.timeZone)&&void 0!==n?n:"default");return s?null:{start:e,end:t}}function zt(e,t,i,n,s,o,r){if(!e&&!t)return{isInvalid:!1};const a=e?(0,f.bQ)(e.value,{timeZone:r}):null,l=t?(0,f.bQ)(t.value,{timeZone:r,roundUp:!0}):null,d=Vt(a,n,s,o,r);a||i||(d.isInvalid=!0,d.errors.push(Pt("Value is required.")));const h=Vt(l,n,s,o,r);return l||i||(h.isInvalid=!0,h.errors.push(Pt("Value is required."))),a&&l&&l.isBefore(a)&&(d.isInvalid=!0,d.errors.push(Pt('"From" can\'t be after "To".'))),{isInvalid:d.isInvalid||h.isInvalid,startValidationResult:d,endValidationResult:h}}const jt=g("relative-range-date-picker-dialog");function Ut({props:e,state:t,open:i,onClose:s,focusInput:o,isMobile:r,anchorRef:a,className:l}){return r?(0,n.jsx)(_.c,{visible:i,onClose:s,contentClassName:jt("content",{mobile:!0,size:"xl"},l),children:(0,n.jsx)(Kt,Object.assign({},e,{size:"xl",state:t,onApply:s}))}):(0,n.jsx)(v.z,{open:i,onEscapeKeyDown:()=>{s(),o()},onClose:s,role:"dialog",anchorRef:a,contentClassName:jt("content",{size:e.size},l),autoFocus:!0,focusTrap:!0,children:(0,n.jsx)(Kt,Object.assign({},e,{state:t,onApply:s}))})}function Kt(e){var t,i,o,r,a,l,d;const c=function(e,t){var i,n,o,r;const{withApplyButton:a,allowNullableValues:l}=t,[d,h]=s.useState(null!==(n=null===(i=e.value)||void 0===i?void 0:i.start)&&void 0!==n?n:null),[c,u]=s.useState(null!==(r=null===(o=e.value)||void 0===o?void 0:o.end)&&void 0!==r?r:null),[g,p]=s.useState(e.timeZone),m=a?g:e.timeZone,f=s.useMemo((()=>zt(d,c,l,t.minValue,t.maxValue,t.isDateUnavailable,m)),[l,c,t.isDateUnavailable,t.maxValue,t.minValue,d,m]);return{start:d,end:c,timeZone:m,setStart:function(i){h(i),a||e.setValue(Ht(i,c,Object.assign(Object.assign({},t),{timeZone:m})),m)},setEnd:function(i){u(i),a||e.setValue(Ht(d,i,Object.assign(Object.assign({},t),{timeZone:m})),m)},setRange:function(i,n){h(i),u(n),a||e.setValue(Ht(i,n,Object.assign(Object.assign({},t),{timeZone:m})),m)},setTimeZone:function(i){p(i),a||e.setValue(Ht(d,c,Object.assign(Object.assign({},t),{timeZone:i})),i)},applyValue:function(){e.setValue(Ht(d,c,Object.assign(Object.assign({},t),{timeZone:m})),m)},isInvalid:f.isInvalid,startValidation:f.startValidationResult,endValidation:f.endValidationResult}}(e.state,e),u=(null===(t=e.placeholderValue)||void 0===t?void 0:t.timeZone(e.state.timeZone))||(0,f.KQ)({timeZone:e.state.timeZone}),g={timeZone:e.state.timeZone,format:e.format,minValue:e.minValue,maxValue:e.maxValue,hasClear:e.allowNullableValues,readOnly:e.readOnly,size:e.size,errorPlacement:"inside"};return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:jt("pickers"),children:[(0,n.jsx)(Fe,Object.assign({},g,{validationState:(null===(i=c.startValidation)||void 0===i?void 0:i.isInvalid)?"invalid":void 0,errorMessage:(null===(r=null===(o=c.startValidation)||void 0===o?void 0:o.errors)||void 0===r?void 0:r.join("\n"))||Pt("Value is incorrect."),placeholderValue:u.startOf("day"),label:Pt("From"),value:c.start,onUpdate:c.setStart})),(0,n.jsx)(Fe,Object.assign({},g,{validationState:(null===(a=c.endValidation)||void 0===a?void 0:a.isInvalid)?"invalid":void 0,errorMessage:(null===(d=null===(l=c.endValidation)||void 0===l?void 0:l.errors)||void 0===d?void 0:d.join("\n"))||Pt("Value is incorrect."),placeholderValue:u.endOf("day"),label:Pt("To"),value:c.end,onUpdate:c.setEnd,roundUp:!0}))]}),e.withApplyButton&&!e.readOnly?(0,n.jsx)(h.$,{disabled:c.isInvalid,size:e.size,onClick:()=>{c.applyValue(),e.onApply()},className:jt("apply"),width:"max",children:Pt("Apply")}):null,e.withPresets&&!e.readOnly?(0,n.jsx)(bt,{size:e.size,presetTabs:e.presetTabs,onChoosePreset:(t,i)=>{c.setRange({type:"relative",value:t},{type:"relative",value:i}),e.withApplyButton||e.onApply()},minValue:e.minValue,docs:e.docs,className:jt("presets")}):null,e.withZonesList?(0,n.jsx)("div",{className:jt("zone"),children:(0,n.jsx)(At,{value:c.timeZone,onUpdate:c.setTimeZone,disabled:e.readOnly,size:e.size})}):null]})}const Gt=JSON.parse('{"\\"From\\"":"\\"From\\"","\\"From\\" is required.":"\\"From\\" is required.","\\"To\\"":"\\"To\\"","\\"To\\" is required.":"\\"To\\" is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","to":"to"}'),$t=JSON.parse('{"\\"From\\"":"\xab\u041e\u0442\xbb","\\"From\\" is required.":"\xab\u041e\u0442\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"To\\"":"\xab\u0414\u043e\xbb","\\"To\\" is required.":"\xab\u0414\u043e\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"From\\" can\'t be after \\"To\\".":"\xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","to":"\u0434\u043e"}'),qt=(0,x.N)({en:Gt,ru:$t},`${u}relative-range-date-picker`);function Qt(e){var t,i;const[n,o]=(0,a.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null),[r,l]=(0,a.P)(e.timeZone,null!==(i=e.defaultTimeZone)&&void 0!==i?i:"default",e.onUpdateTimeZone),d=s.useMemo((()=>function(e,t,i,n,s,o){if(!e)return{isInvalid:!1,errors:[]};const r=e.start?(0,f.bQ)(e.start.value,{timeZone:o}):null,a=e.end?(0,f.bQ)(e.end.value,{timeZone:o,roundUp:!0}):null,l=Vt(r,i,n,s,o,qt('"From"'));r||t||(l.isInvalid=!0,l.errors.push(qt('"From" is required.')));const d=Vt(a,i,n,s,o,qt('"To"'));a||t||(d.isInvalid=!0,d.errors.push(qt('"To" is required.')));r&&a&&a.isBefore(r)&&(l.isInvalid=!0,l.errors.push(qt('"From" can\'t be after "To".')));return{isInvalid:l.isInvalid||d.isInvalid,errors:l.errors.concat(d.errors)}}(n,e.allowNullableValues,e.minValue,e.maxValue,e.isDateUnavailable,r)),[n,e.allowNullableValues,e.isDateUnavailable,e.maxValue,e.minValue,r]);return Object.assign({value:n,timeZone:r,setValue(t,i){var s;o(t),l(i),(n!==t||n&&r!==i)&&(null===(s=e.onUpdate)||void 0===s||s.call(e,t,i))}},d)}const Yt=g("relative-range-date-picker");function Zt(e){var t;const i=Qt(e),u=(0,r.I)(),g=s.useRef(null),f=s.useRef(null),[_,v]=s.useState(!1),[b,C]=(0,a.P)(void 0,!1,e.onOpenChange),{focusWithinProps:y}=(0,l.R)({isDisabled:e.disabled,onFocusWithin:t=>{var i;_||null===(i=e.onFocus)||void 0===i||i.call(e,t)},onBlurWithin:t=>{var i;b||(v(!1),null===(i=e.onBlur)||void 0===i||i.call(e,t))}}),{alwaysShowAsAbsolute:w,presetTabs:S,getRangeTitle:k}=e,x=e.format||"L",L=s.useMemo((()=>"function"===typeof k?k(i.value,i.timeZone):Lt({value:i.value,timeZone:i.timeZone,alwaysShowAsAbsolute:w,format:x,presets:null===S||void 0===S?void 0:S.flatMap((({presets:e})=>e))})),[w,x,k,S,i.timeZone,i.value]),D=e.validationState||(i.isInvalid?"invalid":void 0),E=null!==(t=e.errorMessage)&&void 0!==t?t:i.errors.join("\n");return(0,n.jsxs)("div",Object.assign({ref:g},y,{className:Yt(null,e.className),style:e.style,children:[(0,n.jsx)(d.k,{id:e.id,autoFocus:e.autoFocus,controlRef:f,value:L,placeholder:e.placeholder,onUpdate:t=>{e.readOnly||t||i.setValue(null,"default")},controlProps:{"aria-haspopup":"dialog","aria-expanded":b,disabled:u,className:Yt("input",{mobile:u}),onClick:()=>{e.disabled||b||(v(!0),C(!0))}},onKeyDown:t=>{e.disabled||!t.altKey||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),C(!0))},onFocus:()=>{_||(v(!0),C(!0))},validationState:D,errorMessage:E,errorPlacement:e.errorPlacement,pin:e.pin,size:e.size,label:e.label,hasClear:e.hasClear,disabled:e.disabled,endContent:(0,n.jsx)(h.$,{view:"flat-secondary",size:m(e.size),disabled:e.disabled,extraProps:{"aria-haspopup":"dialog","aria-expanded":b},onClick:()=>{v(!0),C(!b)},children:(0,n.jsx)(c.I,{data:o})})}),u?(0,n.jsx)("button",{className:Yt("mobile-trigger",{"has-clear":Boolean(e.hasClear&&i.value),"has-errors":i.isInvalid&&"inside"===e.errorPlacement,size:e.size}),onClick:()=>{v(!0),C(!0)}}):null,(0,n.jsx)(p,{name:e.name,form:e.form,value:i.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.start)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,n.jsx)(p,{name:e.name,form:e.form,value:i.value,toStringValue:e=>{var t;return Xt(null!==(t=null===e||void 0===e?void 0:e.start)&&void 0!==t?t:null)},disabled:e.disabled}),(0,n.jsx)(p,{name:e.name,form:e.form,value:i.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.end)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,n.jsx)(p,{name:e.name,form:e.form,value:i.value,toStringValue:e=>{var t;return Xt(null!==(t=null===e||void 0===e?void 0:e.end)&&void 0!==t?t:null)},disabled:e.disabled}),(0,n.jsx)(p,{name:e.name,form:e.form,onReset:e=>{i.setValue(e.value,e.timeZone)},value:{value:i.value,timeZone:i.timeZone},toStringValue:e=>e.timeZone,disabled:e.disabled}),(0,n.jsx)(Ut,{state:i,props:e,open:b,onClose:()=>{C(!1)},focusInput:()=>{setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus({preventScroll:!0})}))},anchorRef:g,isMobile:u,className:e.popupClassName})]}))}function Xt(e){return e?"relative"===e.type?e.value:e.value.toISOString():""}},58272:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(59284);const s=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.323 12.383a5.5 5.5 0 0 1-7.706-7.706l7.706 7.706Zm1.06-1.06L4.677 3.617a5.5 5.5 0 0 1 7.706 7.706ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z",clipRule:"evenodd"}))},53472:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(59284);const s=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.97 12.53a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 1 0 1.06 1.06L8 9.56l2.97 2.97Zm0-5a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 1.06 1.06L8 4.56l2.97 2.97Z",clipRule:"evenodd"}))},64280:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(59284);const s=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM6.44 4.54c.43-.354.994-.565 1.56-.565 1.217 0 2.34.82 2.34 2.14 0 .377-.079.745-.298 1.1-.208.339-.513.614-.875.867-.217.153-.326.257-.379.328-.038.052-.038.07-.038.089a.75.75 0 0 1-1.5 0c0-.794.544-1.286 1.056-1.645.28-.196.402-.332.46-.425a.543.543 0 0 0 .073-.313c0-.3-.243-.641-.839-.641a.997.997 0 0 0-.608.224c-.167.137-.231.286-.231.417a.75.75 0 0 1-1.5 0c0-.673.345-1.22.78-1.577ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}))},45345:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(59284);const s=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM5.25 6.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-3.5a1 1 0 0 1-1-1v-3.5Z",clipRule:"evenodd"}))},10800:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(59284);const s=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},11951:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(59284);const s=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 6H8.75v2.5h4.75V6ZM7.25 6H2.5v2.5h4.75V6ZM1 6V5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6Zm7.75 4h4.75v1a1.5 1.5 0 0 1-1.5 1.5H8.75V10ZM2.5 10h4.75v2.5H4A1.5 1.5 0 0 1 2.5 11v-1Z",clipRule:"evenodd"}))},65872:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(59284);const s=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.423 1A3.577 3.577 0 0 1 15 4.577c0 .27-.108.53-.3.722l-.528.529-1.971 1.971-5.059 5.059a3 3 0 0 1-1.533.82l-2.638.528a1 1 0 0 1-1.177-1.177l.528-2.638a3 3 0 0 1 .82-1.533l5.059-5.059 2.5-2.5c.191-.191.451-.299.722-.299Zm-2.31 4.009-4.91 4.91a1.5 1.5 0 0 0-.41.766l-.38 1.903 1.902-.38a1.5 1.5 0 0 0 .767-.41l4.91-4.91a2.077 2.077 0 0 0-1.88-1.88Zm3.098.658a3.59 3.59 0 0 0-1.878-1.879l1.28-1.28c.995.09 1.788.884 1.878 1.88l-1.28 1.28Z",clipRule:"evenodd"}))},96589:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(59284);const s=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 6.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM8 8a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm1 1.225a.71.71 0 0 0-.679-.72A11.087 11.087 0 0 0 8 8.5c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h2.25a.75.75 0 0 0 0-1.5H3.5a1 1 0 0 1-1-1c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10c.058 0 .117 0 .175.002.442.008.825-.335.825-.777Zm3.59.307c.434.102.776.444.879.878l-2.823 2.822a1.5 1.5 0 0 1-.848.425l-.53.075.075-.53a1.5 1.5 0 0 1 .425-.848l2.822-2.822Zm-.883 4.76 3.068-3.067a.767.767 0 0 0 .225-.543A2.683 2.683 0 0 0 12.318 8a.766.766 0 0 0-.543.224l-3.068 3.069a3 3 0 0 0-.848 1.697l-.17 1.19a1 1 0 0 0 1.13 1.131l1.191-.17a3 3 0 0 0 1.697-.848Z",clipRule:"evenodd"}))},594:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(59284);const s=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("g",{clipPath:"url(#a)"},n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.756 10.164c1.665-.962 1.665-3.366 0-4.329L6.251.918C4.585-.045 2.5 1.158 2.5 3.083v9.834c0 1.925 2.085 3.128 3.751 2.164l8.505-4.917Z",clipRule:"evenodd"})),n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},93844:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(59284);const s=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("g",{clipPath:"url(#a)"},n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.235 1a.75.75 0 0 1 .74.56l2.034 7.726 1.09-1.908A.75.75 0 0 1 13.75 7h1.5a.75.75 0 0 1 0 1.5h-1.065l-1.784 3.122a.75.75 0 0 1-1.376-.181l-1.71-6.496-2.083 9.466a.75.75 0 0 1-1.446.07L3.544 7.55l-.65 1.085A.75.75 0 0 1 2.25 9H.75a.75.75 0 1 1 0-1.5h1.075l1.282-2.136a.75.75 0 0 1 1.357.155l1.898 5.868 2.156-9.798A.75.75 0 0 1 9.235 1Z",clipRule:"evenodd"})),n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},1956:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(59284);const s=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3h7A1.5 1.5 0 0 1 13 4.5v7a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3Zm-3 1.5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3v-7Zm10.092 1.46a.75.75 0 0 0-1.184-.92L7.43 8.869l-1.4-1.4A.75.75 0 0 0 4.97 8.53l2 2a.75.75 0 0 0 1.122-.07l3.5-4.5Z",clipRule:"evenodd"}))},31819:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(59284);const s=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3A1.5 1.5 0 0 0 3 4.5v1.75a.75.75 0 0 1-1.5 0V4.5a3 3 0 0 1 3-3h1.75a.75.75 0 0 1 0 1.5H4.5ZM9 2.25a.75.75 0 0 1 .75-.75h1.75a3 3 0 0 1 3 3v1.75a.75.75 0 0 1-1.5 0V4.5A1.5 1.5 0 0 0 11.5 3H9.75A.75.75 0 0 1 9 2.25ZM2.25 9a.75.75 0 0 1 .75.75v1.75A1.5 1.5 0 0 0 4.5 13h1.75a.75.75 0 0 1 0 1.5H4.5a3 3 0 0 1-3-3V9.75A.75.75 0 0 1 2.25 9Zm11.5 0a.75.75 0 0 1 .75.75v1.75a3 3 0 0 1-3 3H9.75a.75.75 0 0 1 0-1.5h1.75a1.5 1.5 0 0 0 1.5-1.5V9.75a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}))},46649:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(59284);const s=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3.5H4A1.5 1.5 0 0 0 2.5 5v6A1.5 1.5 0 0 0 4 12.5h8a1.5 1.5 0 0 0 1.5-1.5V5A1.5 1.5 0 0 0 12 3.5ZM4 2a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3H4Zm.47 8.53a.75.75 0 0 1 0-1.06L5.94 8 4.47 6.53a.75.75 0 0 1 1.06-1.06l2 2a.75.75 0 0 1 0 1.06l-2 2a.75.75 0 0 1-1.06 0ZM8.75 9.5a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5h-2.5Z",clipRule:"evenodd"}))},64470:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(59284);const s=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 2H7a.5.5 0 0 0-.5.5V3h3v-.5A.5.5 0 0 0 9 2Zm2 1v-.5a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2V3H2.251a.75.75 0 0 0 0 1.5h.312l.317 7.625A3 3 0 0 0 5.878 15h4.245a3 3 0 0 0 2.997-2.875l.318-7.625h.312a.75.75 0 0 0 0-1.5H11Zm.936 1.5H4.064l.315 7.562A1.5 1.5 0 0 0 5.878 13.5h4.245a1.5 1.5 0 0 0 1.498-1.438l.315-7.562Zm-6.186 2v5a.75.75 0 0 0 1.5 0v-5a.75.75 0 0 0-1.5 0Zm3.75-.75a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}))},73253:(e,t,i)=>{"use strict";i.d(t,{og:()=>L,SO:()=>me});var n=i(7252);function s(e,t){const i=document.createElement("button");return i.innerText=e,i.className=`paranoid-button paranoid-button_${t}`,i}const o="ParanoidC";function r(e,t){const i=document.getElementById(e);if(!i)throw new Error(`Not found element with id ${e}`);i.style.position="relative";const r=s("+","plus"),a=s("-","minus"),l=s("1:1","normal"),d=function(e,t){const i=document.createElement("canvas");i.setAttribute("id",o),i.setAttribute("width",String(e.offsetWidth)),i.setAttribute("height",String(e.offsetHeight)),e.appendChild(i);const s=t.colors||{};return new n.fabric.Canvas(o,{selection:!1,backgroundColor:s.fill,defaultCursor:"grab"})}(i,t),h=function(e,t,i,n){const s=document.createElement("div");s.className="paranoid-controls";const o=document.createElement("style");return o.innerText=function(e){return`\n .paranoid-controls {\n position: absolute;\n top: 10px;\n right: 10px;\n }\n .paranoid-button {\n margin-left: 12px;\n border-radius: 4px;\n height: 36px;\n width: 36px;\n line-height: 13px;\n font-family: Arial, sans-serif;\n font-size: 13px;\n text-align: center;\n padding: 0;\n box-shadow: 0px 5px 6px ${e.nodeShadow};\n border: 1px solid ${e.buttonBorderColor};\n background-color: ${e.nodeFill};\n color: ${e.textColor};\n cursor: pointer;\n }\n .paranoid-button:focus {\n outline: none;\n }\n .paranoid-button:active {\n border: 1px solid ${e.buttonBorderColor};\n }\n .paranoid-button_plus {\n margin-left: 0;\n border-left: none;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .paranoid-button_minus {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n`}(n),s.appendChild(o),s.appendChild(t),s.appendChild(e),s.appendChild(i),s}(r,a,l,t.colors);return i.appendChild(h),function(e,t,i,n,s){const o=s.minZoom||.2,r=s.zoomStep||.2,a=s.maxZoom||2,l=s.startZoom||1;e.setZoom(l),i.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i-=r,i<o&&(i=o),e.setZoom(i)})),t.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i+=r,i>a&&(i=a),e.setZoom(i)})),n.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),e.setZoom(1)}))}(d,r,a,l,t),function(e){let t=!1,i=0,n=0;e.on("mouse:down",(s=>{s.target||(e.setCursor("grabbing"),t=!0,i=s.pointer.x,n=s.pointer.y)})),e.on("mouse:move",(s=>{t&&(e.viewportTransform[4]+=s.pointer.x-i,e.viewportTransform[5]+=s.pointer.y-n,e.setCursor("grabbing"),e.getObjects().forEach((e=>e.setCoords())),e.requestRenderAll(),i=s.pointer.x,n=s.pointer.y)})),e.on("mouse:up",(()=>{t&&(e.setCursor("grab"),t=!1)}))}(d),d}const a={success:"rgba(59, 201, 53, 0.75)",error:"#ff0400",warning:"#ff7700",errorBackground:"rgba(235,50,38,0.08)",warningBackground:"rgba(255,219,77,0.3)",mute:"rgba(0,0,0,0.15)",stroke:"rgba(0,0,0,0.3)",fill:"#fafafa",nodeFill:"#ffffff",nodeShadow:"rgba(0,0,0,0.15)",titleColor:"#000000",textColor:"rgba(0,0,0,0.7)",buttonBorderColor:"rgba(0,0,0,0.07)",groupBorderColor:"rgba(2, 123, 243, 0.14)",groupFill:"rgba(2, 123, 243, 0.08)",titleHoverColor:"#004080",nodeHover:"#f3f3f3",specialHover:"rgba(2,123,243,1)"},l={hasControls:!1,hasRotatingPoint:!1,lockMovementX:!0,lockMovementY:!0,selectable:!1,hoverCursor:"default",subTargetCheck:!0},d="Arial, sans-serif",h=13,c=1.38;var u;!function(e){e.Group="GROUP"}(u||(u={}));i(32133);class g{constructor(e,t){this.children=[],this.members=[],this.data=e,this.canvasNode=t}add(e,t){const i=new g(e,t);i.addParent(this),this.children.push(i)}addNode(e){e.addParent(this),this.children.push(e)}addNodes(e){e.forEach((e=>{e.addParent(this)})),this.children=this.children.concat(e)}addCanvasNode(e){this.canvasNode=e}addShapeInstance(e){this.shapeInstance=e}hasChildren(){return this.children.length>0}addParent(e){this.parent=e}getLeftSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e-1]}getRightSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e+1]}}class p{constructor(e){this.nodesWithChildren=[],this.root=e}traverseBF(e){const t=[this.root];for(;t.length>0;){const i=t.shift();i&&(t.push(...i.children),e(i))}}traverseDF(e){const t=[this.root];for(;t.length;){const i=t.shift();let n=!1;i&&(i.children.length>0?t.unshift(...i.children):n=!0,e(i,n))}}traverseByLevels(e){let t=0,i=this.root.children;for(e([this.root],0);i.length>0;)t++,e(i,t),i=i.reduce(((e,t)=>e.concat(t.children)),[])}getTreeDepth(){let e=0;return this.traverseByLevels(((t,i)=>{e=i})),e}setCanvas(e){this.canvas=e}setNodesWithChildren(e){this.nodesWithChildren=e}}class m{constructor(e,t){this.nodes=new Map,this.data=e,this.opts=t}parseData(){const e=this.data,t=this.getGroups(e),i=[...e.nodes];t.forEach(((e,t)=>{i.push({name:t,children:e,type:u.Group})}));const n=this.findSources(i,e.links);let s=[],o={},r=new Map;return n.forEach((t=>{const n=this.mapNodesToTree(t,i,e.links);o=Object.assign(Object.assign({},n.groups),o),r=new Map([...r,...n.notGroupMemebersChildren]),s.push(n.tree)})),r.forEach(((e,t)=>{o[t]&&o[t].addNodes(e)})),s=s.reduce(((e,t)=>{const i=t.root.data.group;return i?o[i].members.push(t):e.push(t),e}),[]),s}getGroups({nodes:e}){const t=new Map;return e.forEach((e=>{if(e.group){const i=t.get(e.group);i?i.push(e.name):t.set(e.group,[e.name])}})),t}findSources(e,t){const i=t.map((({to:e})=>e));return e.reduce(((e,t)=>(i.includes(t.name)||e.push(t),e)),[])}mapNodesToTree(e,t,i){var n;const s=this.createNode(e),o={};this.appendGoup(o,s);const r=t.map((e=>{const t=i.reduce(((t,i)=>(i.from===e.name&&t.push(i.to),t)),[]);return Object.assign(Object.assign({},e),{children:t})})),a=this.getAppender(r,o)(s,(null===(n=r.find((t=>t.name===e.name)))||void 0===n?void 0:n.children)||[]);return{tree:new p(s),groups:o,notGroupMemebersChildren:a}}appendGoup(e,t){const i=t.data;t.data.type===u.Group&&(e[i.name]=t)}getAppender(e,t){const i=new Map,n=(s,o)=>{const r=o.map((i=>{const s=e.find((({name:e})=>e===i)),o=this.createNode(s);return this.appendGoup(t,o),s.children.length>0&&n(o,s.children),o})),a=s.data.group,l=Boolean(a),d=[],h=[];if(r.forEach((e=>{const t=e.data.group;l?a===t?d.push(e):h.push(e):d.push(e)})),s.addNodes(d),a&&h.length>0){const e=i.get(a);e?e.push(...h):i.set(a,h)}return i};return n}createNode(e){const t=new g(e);return this.nodes.set(e.name,t),t}}class f extends CustomEvent{}class _ extends EventTarget{dispatch(e,t){this.dispatchEvent(new f(e,{detail:t}))}}function v(e){switch(e){case 0:return 0;case 1:return 16;default:return 24}}function b(e,t,i,n,s,o){const r=function(e,t,i,n,s,o,r){const a=new Map,l=new Map,d=new Map,h=[];return n.traverseBF((n=>{const{object:s,width:o,height:l}=function(e,t,i,n,s,o,r){var a,l;const d=null!==(a=t.shapeInstance)&&void 0!==a?a:o.node(e,{top:i,left:n},t,s,r),h=null!==(l=t.canvasNode)&&void 0!==l?l:d.getShape();return t.addShapeInstance(d),t.addCanvasNode(h),{object:h,top:i,left:n,width:h.getScaledWidth(),height:h.getScaledHeight()}}(e,n,0,0,t,i,r);a.set(n,{width:o,height:l}),h.push(s)})),function e(t){const{width:i}=a.get(t);let n=i,s=0;if(t.parent&&1===t.parent.children.length&&l.has(t.parent)){const e=l.get(t.parent);n<e&&(n=e)}return l.set(t,n),t.children.length>0&&(s=16*(t.children.length-1)+t.children.reduce(((t,i)=>t+e(i)),0),d.set(t,s)),n=Math.max(n,s),l.set(t,n),n}(n.root),function e(t,i,n){let s=n,o=n;for(const r of t){const{width:t,height:n}=a.get(r),h=l.get(r),c=i,u=s+Math.floor(h/2)-Math.floor(t/2);if(r.canvasNode.set({top:c,left:u}),r.canvasNode.setCoords(),s=s+h+16,r.children.length){let t=0;const s=d.get(r);s<h&&(t=Math.floor((h-s)/2));const a=i+n+v(r.children.length),l=o+t;e(r.children,a,l)}o=s}}([n.root],s,o),h}(e.canvas,n,s,e,t,i,o);let a=0,l=0;return r.forEach((e=>{a=Math.max(a,(e.left||0)+e.getScaledWidth()),l=Math.max(l,(e.top||0)+e.getScaledHeight())})),{nodes:r,bottom:l,right:a}}function C(e){const t=e.canvasNode;if(t){const e=t.left||0,i=(t.top||0)+t.getScaledHeight();return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}function y(e){const t=e.canvasNode;if(t){const e=t.left||0,i=t.top||0;return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}class w{constructor(e,t,i,n){this.canvas=r(e,t),this.parser=new m(i,t),this.opts=t,this.shapes=n,this.em=new _,this.trees=[],this.nodes=[],this.links=[],this.listenNodeResize()}render(){requestAnimationFrame((()=>{this.trees=this.parser.parseData(),this.renderIntoCanvas(),this.opts.initialZoomFitsCanvas&&this.zoomObjectsToFitCanvas()}))}destroy(){const e=document.getElementById(o);e&&(this.canvas.dispose(),e.remove())}getEventEmmiter(){return this.em}getGraphNode(e){return this.parser.nodes.get(e)}getOpts(){return this.opts}getColors(){return this.opts.colors}getCanvas(){return this.canvas}renderIntoCanvas(){this.nodes.forEach((e=>{this.canvas.remove(e)})),this.nodes=[],this.links.forEach((e=>{this.canvas.remove(e)})),this.links=[];const e=this.canvas.getHeight()||0,t=this.canvas.getWidth()||0;let i=e,s=t;const o=this.opts.initialTop;let r=this.opts.initialLeft;this.trees.forEach((e=>{e.setCanvas(this.canvas);const{nodes:t,bottom:n,right:a}=b(e,o,r,this.opts,this.shapes,this.em);r=a+15,i=Math.max(n,i),s=Math.max(a,s),this.nodes.push(...t),this.canvas.add(...t)}));const a=function(e,t){const i=t.colors,s=[];return e.data.links.reduce(((t,{from:o})=>{const r=e.nodes.get(o);if(r&&1===r.children.length&&!s.includes(o)){const{x:e,y:a}=C(r),d=new n.fabric.Path(`M ${e} ${a}\n V ${a+16}`,{fill:"",stroke:i.stroke,strokeWidth:1});t.push(new n.fabric.Group([d],Object.assign({},l))),s.push(o)}if(r&&r.children.length>1&&!s.includes(o)){const{x:e,y:a}=C(r),d=12,h=6,c=[new n.fabric.Path(`M ${e} ${a}\n V ${a+d}`,{fill:"",stroke:i.stroke,strokeWidth:1})],{x:u,y:g}=y(r.children[0]),{x:p,y:m}=y(r.children[r.children.length-1]),f=new n.fabric.Path(`M ${u} ${g}\n V ${g-d+h}\n Q ${u} ${g-d} ${u+h} ${g-d}\n H ${p-h}\n Q ${p} ${m-d} ${p} ${m+h-d}\n V ${m}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});c.push(f),r.children.forEach(((e,t)=>{if(0===t||t===r.children.length-1)return;const{x:s,y:o}=y(e),a=new n.fabric.Path(`M ${s} ${o}\n V ${o-d}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});c.push(a)})),t.push(new n.fabric.Group(c,Object.assign({},l))),s.push(o)}return t}),[])}(this.parser,this.opts);this.links.push(...a),this.canvas.add(...a),this.bringNodesToFront()}bringNodesToFront(){var e;const t=null===(e=this.parser)||void 0===e?void 0:e.nodes;t&&t.forEach((e=>{e.canvasNode&&e.canvasNode.bringToFront()}))}listenNodeResize(){this.em.addEventListener("node:resize",(()=>{this.renderIntoCanvas()}))}zoomObjectsToFitCanvas(){let e=0,t=0;this.canvas.getObjects().forEach((i=>{const{top:n,left:s,height:o,width:r}=i.getBoundingRect(),a=s+r,l=n+o;a>e&&(e=a),l>t&&(t=l)})),e+=this.opts.initialLeft,t+=this.opts.initialTop;const i=this.canvas.getWidth()/e,s=this.canvas.getHeight()/t,o=Math.min(i,s);if(o<1){this.canvas.setZoom(o);const e=this.opts.initialTop*o,t=this.opts.initialLeft*o,i=this.opts.initialTop-e,s=this.opts.initialLeft-t;this.canvas.relativePan(new n.fabric.Point(s,i))}}}function S(){const e={success:"--g-color-text-positive",error:"--g-color-text-danger",warning:"--g-color-text-warning",errorBackground:"--g-color-base-danger-light",warningBackground:"--g-color-base-warning-light",mute:"--g-color-line-generic",stroke:"--g-color-text-hint",fill:"--g-color-base-generic-ultralight",nodeFill:"--g-color-base-float",nodeShadow:"--g-color-sfx-shadow",titleColor:"--g-color-text-primary",textColor:"--g-color-text-complementary",buttonBorderColor:"--g-color-line-generic",groupBorderColor:"--g-color-base-info-light-hover",groupFill:"--g-color-base-info-light",titleHoverColor:"--g-color-text-link-hover",nodeHover:"--g-color-base-float-hover",specialHover:"--g-color-line-brand"},t=getComputedStyle(document.body),i=Object.keys(e).reduce(((i,n)=>{const s=t.getPropertyValue(e[n]).replace(/ /g,"");return s&&(i[n]=s),i}),{});return Object.assign(Object.assign(Object.assign({},a),i),{getCommonColor:e=>t.getPropertyValue(`--g-color-${e}`).replace(/ /g,"")})}const k={linkType:"arrow"};function x(e=k){const t=e.colors||{};return Object.assign(Object.assign({initialTop:10,initialLeft:10},e),{colors:Object.assign(Object.assign(Object.assign({},a),S()),t)})}function L(e,t,i,n){const s=x(i);return new w(e,s,t,n)}var D=i(59284),E=(i(43781),i(62060),function(){if("undefined"!==typeof Map)return Map;function e(e,t){var i=-1;return e.some((function(e,n){return e[0]===t&&(i=n,!0)})),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var i=e(this.__entries__,t),n=this.__entries__[i];return n&&n[1]},t.prototype.set=function(t,i){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,n=e(i,t);~n&&i.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var i=0,n=this.__entries__;i<n.length;i++){var s=n[i];e.call(t,s[1],s[0])}},t}()}()),N="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,T="undefined"!==typeof i.g&&i.g.Math===Math?i.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),I="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(T):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var M=["top","right","bottom","left","width","height","size","weight"],A="undefined"!==typeof MutationObserver,R=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var i=!1,n=!1,s=0;function o(){i&&(i=!1,e()),n&&a()}function r(){I(o)}function a(){var e=Date.now();if(i){if(e-s<2)return;n=!0}else i=!0,n=!1,setTimeout(r,t);s=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,i=t.indexOf(e);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){N&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),A?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){N&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,i=void 0===t?"":t;M.some((function(e){return!!~i.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),O=function(e,t){for(var i=0,n=Object.keys(t);i<n.length;i++){var s=n[i];Object.defineProperty(e,s,{value:t[s],enumerable:!1,writable:!1,configurable:!0})}return e},P=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||T},F=j(0,0,0,0);function B(e){return parseFloat(e)||0}function W(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return t.reduce((function(t,i){return t+B(e["border-"+i+"-width"])}),0)}function V(e){var t=e.clientWidth,i=e.clientHeight;if(!t&&!i)return F;var n=P(e).getComputedStyle(e),s=function(e){for(var t={},i=0,n=["top","right","bottom","left"];i<n.length;i++){var s=n[i],o=e["padding-"+s];t[s]=B(o)}return t}(n),o=s.left+s.right,r=s.top+s.bottom,a=B(n.width),l=B(n.height);if("border-box"===n.boxSizing&&(Math.round(a+o)!==t&&(a-=W(n,"left","right")+o),Math.round(l+r)!==i&&(l-=W(n,"top","bottom")+r)),!function(e){return e===P(e).document.documentElement}(e)){var d=Math.round(a+o)-t,h=Math.round(l+r)-i;1!==Math.abs(d)&&(a-=d),1!==Math.abs(h)&&(l-=h)}return j(s.left,s.top,a,l)}var H="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof P(e).SVGGraphicsElement}:function(e){return e instanceof P(e).SVGElement&&"function"===typeof e.getBBox};function z(e){return N?H(e)?function(e){var t=e.getBBox();return j(0,0,t.width,t.height)}(e):V(e):F}function j(e,t,i,n){return{x:e,y:t,width:i,height:n}}var U=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=j(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=z(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),K=function(e,t){var i=function(e){var t=e.x,i=e.y,n=e.width,s=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,r=Object.create(o.prototype);return O(r,{x:t,y:i,width:n,height:s,top:i,right:t+n,bottom:s+i,left:t}),r}(t);O(this,{target:e,contentRect:i})},G=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new E,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof P(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new U(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof P(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new K(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),$="undefined"!==typeof WeakMap?new WeakMap:new E,q=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=R.getInstance(),n=new G(t,i,this);$.set(this,n)};["observe","unobserve","disconnect"].forEach((function(e){q.prototype[e]=function(){var t;return(t=$.get(this))[e].apply(t,arguments)}}));"undefined"!==typeof T.ResizeObserver&&T.ResizeObserver;D.Component;D.Component;var Q=i(87924),Y=i.n(Q);const Z={width:280,expandedWidth:360,borderRadius:4,titleFontSize:h,titleLineHeight:c,textFontSize:h,textLineHeight:c,padding:12,timeMaxWidth:25,percentageMaxWidth:25,textOffset:8,tagLeftOffset:4,tagTopOffset:5,statsOffset:24};class X{constructor(e,t,i,n){this.top=0,this.left=0,this.canvas=e,this.stats=t,this.coords=i,this.colors=n,this.textProps={fontSize:Z.textFontSize,lineHeight:Z.textLineHeight,fontFamily:d,fill:null===n||void 0===n?void 0:n.titleColor},this.selectedGroup=t[0].group;const s=this.createTitles(),o=s.map((e=>e.getScaledHeight())),r=Math.max.apply(null,o);this.lineTop=this.top+r+Z.textOffset;const a=this.createLine();this.content=this.createContent(s),this.group=this.createGroup(s,a,this.content),this.initListeners()}getCanvasObject(){return this.group}createTitles(){let e=this.left;return this.stats.map((({group:e})=>e)).map((t=>{var i,s;const o=new n.fabric.Text(t,Object.assign(Object.assign({left:e,top:this.top},this.textProps),{fill:t===this.selectedGroup?null===(i=this.colors)||void 0===i?void 0:i.titleColor:null===(s=this.colors)||void 0===s?void 0:s.textColor}));return e+=o.getScaledWidth()+Z.statsOffset,o}))}createLine(){return new n.fabric.Path(`M ${this.left} ${this.lineTop}\n H ${Z.expandedWidth-2*Z.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1})}createContent(e){return this.stats.map((({group:t,stats:i},s)=>{const o=this.getContentItems(i,this.lineTop),r=e[s],a=r.left||0,l=a+r.getScaledWidth();return{group:t,items:new n.fabric.Group(o,{opacity:this.selectedGroup===t?1:0}),title:r,hoverLine:this.createHoverLine(a,l,t)}}))}getContentItems(e,t){let i=t+2*Z.textOffset;const s=[],o=e=>{e.forEach((({name:e,value:t})=>{var o;const r=new n.fabric.Text(e,Object.assign({left:this.left,top:i},this.textProps)),a=Z.expandedWidth/2-Z.padding,l=Z.expandedWidth-2*Z.padding,d=new n.fabric.Textbox(String(t),Object.assign(Object.assign({left:a,top:i},this.textProps),{fill:null===(o=this.colors)||void 0===o?void 0:o.textColor,splitByGrapheme:!0,width:l-a}));s.push(r,d),i+=Math.max(r.getScaledHeight(),d.getScaledHeight())+Z.textOffset}))};return!function(e){var t;return Boolean(null===(t=e[0])||void 0===t?void 0:t.items)}(e)?o(e):e.forEach((({name:t,items:r},a)=>{const l=new n.fabric.Text(t,Object.assign(Object.assign({left:this.left,top:i},this.textProps),{fontWeight:"bold"}));if(s.push(l),i+=l.getScaledHeight()+Z.textOffset,o(r),a!==e.length-1){const e=new n.fabric.Path(`M ${this.left} ${i}\n H ${Z.expandedWidth-2*Z.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1,strokeDashArray:[6,4]});s.push(e),i+=e.getScaledHeight()+Z.textOffset}})),s}createGroup(e,t,i){const s=i.map((({items:e})=>e)),o=i.map((({hoverLine:e})=>e));return new n.fabric.Group([...e,t,...s,...o],Object.assign({left:this.coords.left,top:this.coords.top},l))}createHoverLine(e,t,i){return new n.fabric.Path(`M ${e} ${this.lineTop-1}\n H ${t}`,{fill:"",stroke:this.colors.specialHover,strokeWidth:2,opacity:this.selectedGroup===i?1:0})}initListeners(){this.content.forEach((({group:e,title:t,items:i,hoverLine:n})=>{t.on("mousedown",(()=>{const s=this.selectedGroup,o=this.content.find((e=>e.group===s));o&&(o.title.set({fill:this.colors.textColor}),o.items.set({opacity:0}),o.hoverLine.set({opacity:0}),t.set({fill:this.colors.titleColor}),i.set({opacity:1}),n.set({opacity:1}),this.selectedGroup=e,this.canvas.requestRenderAll())}))}))}}function J(e,t,i,n,s){return new X(e,t,{top:i,left:n},s).getCanvasObject()}function ee(e,t,i){return new n.fabric.Textbox(e?`#${e}`:"",{fontSize:12,lineHeight:14,textAlign:"right",fontFamily:d,fill:i.getCommonColor("text-secondary"),hoverCursor:t?"pointer":"default"})}const te={width:112,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:c,textFontSize:h,textLineHeight:c,padding:16,textOffset:8},ie={scaleX:16/512,scaleY:16/512,originY:"center"};function ne(e,t,i){const s=new n.fabric.Text(e,{fontSize:te.textFontSize,lineHeight:te.textFontSize,fontFamily:d,fill:i.getCommonColor("text-misc"),originY:"center"}),o=[s];let r;switch(e){case"Merge":r=new n.fabric.Path("M232.5 5.171C247.4-1.718 264.6-1.718 279.5 5.171L498.1 106.2C506.6 110.1 512 118.6 512 127.1C512 137.3 506.6 145.8 498.1 149.8L279.5 250.8C264.6 257.7 247.4 257.7 232.5 250.8L13.93 149.8C5.438 145.8 0 137.3 0 127.1C0 118.6 5.437 110.1 13.93 106.2L232.5 5.171zM498.1 234.2C506.6 238.1 512 246.6 512 255.1C512 265.3 506.6 273.8 498.1 277.8L279.5 378.8C264.6 385.7 247.4 385.7 232.5 378.8L13.93 277.8C5.438 273.8 0 265.3 0 255.1C0 246.6 5.437 238.1 13.93 234.2L67.13 209.6L219.1 279.8C242.5 290.7 269.5 290.7 292.9 279.8L444.9 209.6L498.1 234.2zM292.9 407.8L444.9 337.6L498.1 362.2C506.6 366.1 512 374.6 512 383.1C512 393.3 506.6 401.8 498.1 405.8L279.5 506.8C264.6 513.7 247.4 513.7 232.5 506.8L13.93 405.8C5.438 401.8 0 393.3 0 383.1C0 374.6 5.437 366.1 13.93 362.2L67.13 337.6L219.1 407.8C242.5 418.7 269.5 418.7 292.9 407.8V407.8z",ie);break;case"UnionAll":r=new n.fabric.Path("M200 288H88c-21.4 0-32.1 25.8-17 41l32.9 31-99.2 99.3c-6.2 6.2-6.2 16.4 0 22.6l25.4 25.4c6.2 6.2 16.4 6.2 22.6 0L152 408l31.1 33c15.1 15.1 40.9 4.4 40.9-17V312c0-13.3-10.7-24-24-24zm112-64h112c21.4 0 32.1-25.9 17-41l-33-31 99.3-99.3c6.2-6.2 6.2-16.4 0-22.6L481.9 4.7c-6.2-6.2-16.4-6.2-22.6 0L360 104l-31.1-33C313.8 55.9 288 66.6 288 88v112c0 13.3 10.7 24 24 24zm96 136l33-31.1c15.1-15.1 4.4-40.9-17-40.9H312c-13.3 0-24 10.7-24 24v112c0 21.4 25.9 32.1 41 17l31-32.9 99.3 99.3c6.2 6.2 16.4 6.2 22.6 0l25.4-25.4c6.2-6.2 6.2-16.4 0-22.6L408 360zM183 71.1L152 104 52.7 4.7c-6.2-6.2-16.4-6.2-22.6 0L4.7 30.1c-6.2 6.2-6.2 16.4 0 22.6L104 152l-33 31.1C55.9 198.2 66.6 224 88 224h112c13.3 0 24-10.7 24-24V88c0-21.3-25.9-32-41-16.9z",ie);break;case"HashShuffle":r=new n.fabric.Path("M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z",ie);break;case"Map":r=new n.fabric.Path("M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z",ie);break;case"Broadcast":r=new n.fabric.Path("M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z",ie)}return r&&(r.set({fill:i.getCommonColor("text-misc"),top:0,left:0,originY:"center"}),s.set({left:22}),o.push(r)),new n.fabric.Group(o,Object.assign(Object.assign({},l),{hoverCursor:t?"pointer":"default"}))}class se{constructor(e,t,i,n,s){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=n,this.em=s,this.data=Y()(i,["data","data"]),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.getCommonColor("base-misc-light")}getHoverFillColor(){return this.opts.colors.getCommonColor("base-misc-light-hover")}getShadow(){}getHoverShadow(){}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+te.padding,new n.fabric.Rect({width:te.width,height:this.nodeHeight,fill:this.getFillColor(),shadow:this.getShadow(),stroke:e.getCommonColor("line-misc"),rx:te.borderRadius,ry:te.borderRadius,hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){return[ee(this.data.id,this.isExpandable(),this.opts.colors),ne(this.data.name||"",this.isExpandable(),this.opts.colors)]}setShapeObjectsCoords(){const[e,t]=this.objects,i=te.padding,n=this.expanded?te.expandedWidth:te.width,s=t.getScaledWidth();e.set({left:0,top:4,width:n-4}),t.set({left:n/2-s/2,top:i})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.expanded=!this.expanded,this.updateDimensions(),this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors,[t,i]=this.objects,n=i.getScaledWidth();let s,o;this.expanded?(this.stats=J(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+te.padding,(this.group.left||0)+te.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*te.padding,s=te.expandedWidth,o=this.expandedNodeHeight,this.group.addWithUpdate(this.stats)):(s=te.width,o=this.nodeHeight,this.group.removeWithUpdate(this.stats),this.stats=void 0);const r=function(e,t){const i=[];return t.forEachObject((n=>{i.push(n),t.removeWithUpdate(n),e.add(n)})),()=>{i.forEach((i=>{e.remove(i),t.addWithUpdate(i)}))}}(this.canvas,this.group);this.body.set({width:s,height:o,fill:this.getFillColor(),shadow:this.getShadow()}),t.set({width:s-4}),i.set({left:(this.body.left||0)+(this.body.width||0)/2-n/2}),r()}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}const oe={width:190,bevelSize:10,titleFontSize:h,titleLineHeight:c,padding:12};class re{constructor(e,t,i,s,o){this.nodeHeight=0,this.coords=t,this.opts=s,this.data=Y()(i,["data","data"]),this.shadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+oe.padding,new n.fabric.Polygon([{x:oe.bevelSize,y:0},{x:oe.width-oe.bevelSize,y:0},{x:oe.width,y:oe.bevelSize},{x:oe.width,y:this.nodeHeight-oe.bevelSize},{x:oe.width-oe.bevelSize,y:this.nodeHeight},{x:oe.bevelSize,y:this.nodeHeight},{x:0,y:this.nodeHeight-oe.bevelSize},{x:0,y:oe.bevelSize}],{fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new n.fabric.Text(e.join("\n"),{fontSize:oe.titleFontSize,lineHeight:oe.titleLineHeight,left:0,top:26,fontFamily:d,fontStyle:"italic",fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=oe.padding,i=e.getScaledWidth();e.set({left:oe.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}}const ae=40,le=40,de=20;class he{constructor(e,t,i,s,o){this.coords=t,this.opts=s,this.shadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:3,blur:8}),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors;return new n.fabric.Rect({width:ae,height:le,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:de,ry:de,shadow:this.getShadow(),hoverCursor:"default"})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body],Object.assign({top:e,left:t},l))}}const ce={width:112,borderRadius:6,titleFontSize:h,titleLineHeight:c,textFontSize:h,textLineHeight:c,padding:12,textOffset:8};class ue{constructor(e,t,i,s,o){this.nodeHeight=0,this.coords=t,this.opts=s,this.data=Y()(i,["data","data"]),this.shadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+ce.padding,new n.fabric.Rect({width:ce.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new n.fabric.Text(e.join("\n"),{fontSize:ce.textFontSize,lineHeight:ce.textLineHeight,left:0,top:26,fontFamily:d,fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=ce.padding,i=e.getScaledWidth();e.set({left:ce.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}}const ge={width:248,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:c,textFontSize:h,textLineHeight:c,padding:12,textOffset:8};class pe{constructor(e,t,i,s,o){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=s,this.em=o,this.data=Y()(i,["data","data"]),this.shadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new n.fabric.Shadow({color:s.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor(),shadow:e?this.getHoverShadow():this.getShadow()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+ge.padding,new n.fabric.Rect({width:ge.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:ge.borderRadius,ry:ge.borderRadius,shadow:this.getShadow(),hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){const e=ee(this.data.id,this.isExpandable(),this.opts.colors),t=(i=this.data.operators||[this.data.name||""],s=this.isExpandable(),o=this.opts.colors,new n.fabric.Text(i.join("\n"),{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:d,fill:o.getCommonColor("text-primary"),hoverCursor:s?"pointer":"default"}));var i,s,o;const r=function(e,t){if(0===e.length)return new n.fabric.Group([],Object.assign({top:0,left:0},l));const i=new n.fabric.Text("Tables:",{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:d,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),s=i.getScaledWidth()+2,o=ge.width-2*ge.padding-s,r=new n.fabric.Textbox(e.join("\n"),{left:s,width:o,fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:d,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new n.fabric.Group([i,r],Object.assign({top:0,left:0},l))}(this.data.tables||[],this.opts.colors),a=function(e,t){if(!e)return new n.fabric.Group([],Object.assign({top:0,left:0},l));const i=new n.fabric.Text("CTE:",{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:d,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),s=i.getScaledWidth()+2,o=ge.width-2*ge.padding-s,r=new n.fabric.Textbox(e,{left:s,width:o,fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:d,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new n.fabric.Group([i,r],Object.assign({top:0,left:0},l))}(this.data.cte||"",this.opts.colors);return[e,t,r,a]}setShapeObjectsCoords(){const[e,t,i,n]=this.objects;let s=ge.padding;const o=ge.padding;e.set({left:0,top:4,width:(this.expanded?ge.expandedWidth:ge.width)-4}),t.set({left:o,top:s}),s+=t.getScaledHeight(),i.set({left:o,top:s+(0===i.size()?0:ge.textOffset)}),s+=i.getScaledHeight(),n.set({left:o,top:s+(0===n.size()?0:ge.textOffset)})}createGroup(){const{top:e,left:t}=this.coords;return new n.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.updateDimensions(),this.expanded=!this.expanded,this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors;if(this.expanded){const e=ge.width,t=this.nodeHeight;this.body.set({width:e,height:t,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:e-4}).setCoords(),this.group.removeWithUpdate(this.stats),this.stats=void 0}else{this.stats=J(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+ge.padding,(this.group.left||0)+ge.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*ge.padding;const t=ge.expandedWidth,i=this.expandedNodeHeight;this.body.set({width:t,height:i,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:t-4}).setCoords(),this.group.addWithUpdate(this.stats)}}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}function me(e,t,i,n,s){return function(e){const t=Y()(e,["data","data"]);return"connection"===(null===t||void 0===t?void 0:t.type)}(i)?new se(e,t,i,n,s):function(e){const t=Y()(e,["data","data"]);return"result"===(null===t||void 0===t?void 0:t.type)}(i)?new ue(e,t,i,n,s):function(e){const t=Y()(e,["data","data"]);return"query"===(null===t||void 0===t?void 0:t.type)}(i)?new he(e,t,i,n,s):function(e){const t=Y()(e,["data","data"]);return"materialize"===(null===t||void 0===t?void 0:t.type)}(i)?new re(e,t,i,n,s):new pe(e,t,i,n,s)}},55299:(e,t,i)=>{"use strict";i.d(t,{F:()=>A});var n=i(59284),s=i(81240),o=i(84476),r=i(80604),a=i(99991),l=i(63365),d=i(46423),h=i(87184);const c=n.createContext(null),u=()=>{const e=n.useContext(c);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},g=e=>{const{view:t}=u();return n.createElement(o.$,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};var p=i(69220);const m=(0,p.om)("alert"),f=({layout:e,view:t,children:i})=>n.createElement(c.Provider,{value:{layout:e,view:t}},i);var _=i(18677),v=i(10800),b=i(45720),C=i(43937);const y=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm3.1-8.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08l3-4Z",clipRule:"evenodd"}));var w=i(70825),S=i(71153),k=i(94420);const x=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.216 2.216 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414Z"}));var L=i(27612);const D={danger:{filled:_.A,outlined:v.A},info:{filled:b.A,outlined:C.A},success:{filled:y,outlined:w.A},warning:{filled:S.A,outlined:k.A},utility:{filled:x,outlined:L.A},normal:null};var E=i(98089);var N=i(72837);const T=JSON.parse('{"label_close":"Close"}'),I=JSON.parse('{"label_close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),M=(0,N.N)({en:T,ru:I},"Alert"),A=e=>{const{theme:t="normal",view:i="filled",layout:c="vertical",message:u,className:g,corners:p,style:_,onClose:v,align:b,qa:C}=e;return n.createElement(f,{layout:c,view:i},n.createElement(r.Z,{style:_,className:m({corners:p},(0,d.Y)({py:4,px:5},g)),theme:t,view:i,qa:C},n.createElement(h.s,{gap:"3",alignItems:b},"undefined"===typeof e.icon?n.createElement(A.Icon,{theme:t,view:i}):e.icon,n.createElement(h.s,{direction:"vertical"===c?"column":"row",gap:"5",grow:!0},n.createElement(h.s,{gap:"2",grow:!0,className:m("text-content")},n.createElement(h.s,{direction:"column",gap:"1",grow:!0,justifyContent:b},"string"===typeof e.title?n.createElement(A.Title,{text:e.title}):e.title,u)),Array.isArray(e.actions)?n.createElement(A.Actions,{items:e.actions}):e.actions),v&&n.createElement(o.$,{view:"flat",className:m("close-btn"),onClick:v,extraProps:{"aria-label":M("label_close")}},n.createElement(a.I,{data:s.A,size:18,className:(0,l.$)({color:"secondary"})})))))};A.Icon=({className:e,theme:t,view:i="filled",size:s=18})=>{const o=D[t];if(!o)return null;let r;return"success"===t?r="positive":"normal"!==t&&(r=t),n.createElement("div",{className:m("icon",(0,l.$)({color:r},e))},n.createElement(a.I,{data:o[i],size:s}))},A.Title=({text:e,className:t})=>n.createElement(E.E,{variant:"subheader-2",className:m("title",t)},e),A.Actions=({items:e,children:t,className:i})=>{const{layout:s}=u();return n.createElement(h.s,{className:m("actions",{minContent:"horizontal"===s},i),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===s?"center":"flex-start"},(null===e||void 0===e?void 0:e.map((({handler:e,text:t},i)=>n.createElement(g,{key:i,onClick:e},t))))||t)},A.Action=g},80604:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(27145),s=i(59284),o=i(46734),r=i(9296);const a=(0,i(69220).om)("card"),l=s.forwardRef((function(e,t){const{type:i="container",theme:l,view:d,size:h="m",children:c,className:u,onClick:g,disabled:p,selected:m}=e,f=(0,n.Tt)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),_="selection"===i,v="container"===i,b=("action"===i||_)&&Boolean(g)&&!p,C=v?"normal":void 0,y=v||_?"outlined":void 0,w=b?g:void 0,{onKeyDown:S}=(0,o.N)(g);return s.createElement(r.a,Object.assign({ref:t,role:b?"button":void 0,className:a({theme:l||C,view:d||y,type:i,selected:m,size:h,disabled:p,clickable:b},u),onClick:w,onKeyDown:b?S:void 0,tabIndex:b?0:void 0},f),c)}))},80953:(e,t,i)=>{"use strict";i.d(t,{t:()=>o});var n=i(59284);const s=(0,i(69220).om)("spin"),o=n.forwardRef((function(e,t){const{size:i="m",style:o,className:r,qa:a}=e;return n.createElement("div",{ref:t,style:o,className:s({size:i},r),"data-qa":a},n.createElement("div",{className:s("inner")}))}))},1155:(e,t,i)=>{"use strict";i.d(t,{m:()=>h});var n=i(59284),s=i(32084),o=i(81517),r=i(39238),a=i(98089);const l=(0,i(69220).om)("tooltip"),d=["bottom","top"],h=e=>{const{children:t,content:i,disabled:h,placement:c=d,qa:u,id:g,className:p,style:m,disablePortal:f,contentClassName:_,openDelay:v=1e3,closeDelay:b}=e,[C,y]=n.useState(null),w=(0,o.d)(C,{openDelay:v,closeDelay:b,preventTriggerOnFocus:!0}),S=n.Children.only(t),k=S.ref,x=(0,s.N)(y,k);return n.createElement(n.Fragment,null,n.cloneElement(S,{ref:x}),C?n.createElement(r.z,{id:g,role:"tooltip",className:l(null,p),style:m,open:w&&!h,placement:c,anchorRef:{current:C},disablePortal:f,disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:u},n.createElement("div",{className:l("content",_)},n.createElement(a.E,{variant:"body-short",color:"complementary"},i))):null)}},70206:(e,t)=>{var i;i=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=new Array(256),i=0;256!=i;++i)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=i)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[i]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}(),i=function(e){var t=0,i=0,n=0,s="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(n=0;256!=n;++n)s[n]=e[n];for(n=0;256!=n;++n)for(i=e[n],t=256+n;t<4096;t+=256)i=s[t]=i>>>8^e[255&i];var o=[];for(n=1;16!=n;++n)o[n-1]="undefined"!==typeof Int32Array?s.subarray(256*n,256*n+256):s.slice(256*n,256*n+256);return o}(t),n=i[0],s=i[1],o=i[2],r=i[3],a=i[4],l=i[5],d=i[6],h=i[7],c=i[8],u=i[9],g=i[10],p=i[11],m=i[12],f=i[13],_=i[14];e.table=t,e.bstr=function(e,i){for(var n=~i,s=0,o=e.length;s<o;)n=n>>>8^t[255&(n^e.charCodeAt(s++))];return~n},e.buf=function(e,i){for(var v=~i,b=e.length-15,C=0;C<b;)v=_[e[C++]^255&v]^f[e[C++]^v>>8&255]^m[e[C++]^v>>16&255]^p[e[C++]^v>>>24]^g[e[C++]]^u[e[C++]]^c[e[C++]]^h[e[C++]]^d[e[C++]]^l[e[C++]]^a[e[C++]]^r[e[C++]]^o[e[C++]]^s[e[C++]]^n[e[C++]]^t[e[C++]];for(b+=15;C<b;)v=v>>>8^t[255&(v^e[C++])];return~v},e.str=function(e,i){for(var n=~i,s=0,o=e.length,r=0,a=0;s<o;)(r=e.charCodeAt(s++))<128?n=n>>>8^t[255&(n^r)]:r<2048?n=(n=n>>>8^t[255&(n^(192|r>>6&31))])>>>8^t[255&(n^(128|63&r))]:r>=55296&&r<57344?(r=64+(1023&r),a=1023&e.charCodeAt(s++),n=(n=(n=(n=n>>>8^t[255&(n^(240|r>>8&7))])>>>8^t[255&(n^(128|r>>2&63))])>>>8^t[255&(n^(128|a>>6&15|(3&r)<<4))])>>>8^t[255&(n^(128|63&a))]):n=(n=(n=n>>>8^t[255&(n^(224|r>>12&15))])>>>8^t[255&(n^(128|r>>6&63))])>>>8^t[255&(n^(128|63&r))];return~n}},"undefined"===typeof DO_NOT_EXPORT_CRC?i(t):i({})},7252:(e,t,i)=>{var n,s=s||{version:"5.3.0"};if(t.fabric=s,"undefined"!==typeof document&&"undefined"!==typeof window)document instanceof("undefined"!==typeof HTMLDocument?HTMLDocument:Document)?s.document=document:s.document=document.implementation.createHTMLDocument(""),s.window=window;else{var o=new(i(66574).JSDOM)(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;s.document=o.document,s.jsdomImplForWrapper=i(2748).implForWrapper,s.nodeCanvas=i(52246).Canvas,s.window=o,DOMParser=s.window.DOMParser}function r(e,t){var i=e.canvas,n=t.targetCanvas,s=n.getContext("2d");s.translate(0,n.height),s.scale(1,-1);var o=i.height-n.height;s.drawImage(i,0,o,n.width,n.height,0,0,n.width,n.height)}function a(e,t){var i=t.targetCanvas.getContext("2d"),n=t.destinationWidth,s=t.destinationHeight,o=n*s*4,r=new Uint8Array(this.imageBuffer,0,o),a=new Uint8ClampedArray(this.imageBuffer,0,o);e.readPixels(0,0,n,s,e.RGBA,e.UNSIGNED_BYTE,r);var l=new ImageData(a,n,s);i.putImageData(l,0,0)}s.isTouchSupported="ontouchstart"in s.window||"ontouchstart"in s.document||s.window&&s.window.navigator&&s.window.navigator.maxTouchPoints>0,s.isLikelyNode="undefined"!==typeof Buffer&&"undefined"===typeof window,s.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],s.DPI=96,s.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",s.commaWsp="(?:\\s+,?\\s*|,\\s*)",s.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,s.reNonWord=/[ \n\.,;!\?\-]/,s.fontPaths={},s.iMatrix=[1,0,0,1,0,0],s.svgNS="http://www.w3.org/2000/svg",s.perfLimitSizeTotal=2097152,s.maxCacheSideLimit=4096,s.minCacheSideLimit=256,s.charWidthsCache={},s.textureSize=2048,s.disableStyleCopyPaste=!1,s.enableGLFiltering=!0,s.devicePixelRatio=s.window.devicePixelRatio||s.window.webkitDevicePixelRatio||s.window.mozDevicePixelRatio||1,s.browserShadowBlurConstant=1,s.arcToSegmentsCache={},s.boundsOfCurveCache={},s.cachesBoundsOfCurve=!0,s.forceGLPutImageData=!1,s.initFilterBackend=function(){return s.enableGLFiltering&&s.isWebglSupported&&s.isWebglSupported(s.textureSize)?(console.log("max texture size: "+s.maxTextureSize),new s.WebglFilterBackend({tileSize:s.textureSize})):s.Canvas2dFilterBackend?new s.Canvas2dFilterBackend:void 0},"undefined"!==typeof document&&"undefined"!==typeof window&&(window.fabric=s),function(){function e(e,t){if(this.__eventListeners[e]){var i=this.__eventListeners[e];t?i[i.indexOf(t)]=!1:s.util.array.fill(i,!1)}}function t(e,t){var i=function(){t.apply(this,arguments),this.off(e,i)}.bind(this);this.on(e,i)}s.Observable={fire:function(e,t){if(!this.__eventListeners)return this;var i=this.__eventListeners[e];if(!i)return this;for(var n=0,s=i.length;n<s;n++)i[n]&&i[n].call(this,t||{});return this.__eventListeners[e]=i.filter((function(e){return!1!==e})),this},on:function(e,t){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var i in e)this.on(i,e[i]);else this.__eventListeners[e]||(this.__eventListeners[e]=[]),this.__eventListeners[e].push(t);return this},once:function(e,i){if(1===arguments.length)for(var n in e)t.call(this,n,e[n]);else t.call(this,e,i);return this},off:function(t,i){if(!this.__eventListeners)return this;if(0===arguments.length)for(t in this.__eventListeners)e.call(this,t);else if(1===arguments.length&&"object"===typeof arguments[0])for(var n in t)e.call(this,n,t[n]);else e.call(this,t,i);return this}}}(),s.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var e=0,t=arguments.length;e<t;e++)this._onObjectAdded(arguments[e]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(e,t,i){var n=this._objects;return i?n[t]=e:n.splice(t,0,e),this._onObjectAdded&&this._onObjectAdded(e),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var e,t=this._objects,i=!1,n=0,s=arguments.length;n<s;n++)-1!==(e=t.indexOf(arguments[n]))&&(i=!0,t.splice(e,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[n]));return this.renderOnAddRemove&&i&&this.requestRenderAll(),this},forEachObject:function(e,t){for(var i=this.getObjects(),n=0,s=i.length;n<s;n++)e.call(t,i[n],n,i);return this},getObjects:function(e){return"undefined"===typeof e?this._objects.concat():this._objects.filter((function(t){return t.type===e}))},item:function(e){return this._objects[e]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(e,t){return this._objects.indexOf(e)>-1||!!t&&this._objects.some((function(t){return"function"===typeof t.contains&&t.contains(e,!0)}))},complexity:function(){return this._objects.reduce((function(e,t){return e+=t.complexity?t.complexity():0}),0)}},s.CommonMethods={_setOptions:function(e){for(var t in e)this.set(t,e[t])},_initGradient:function(e,t){!e||!e.colorStops||e instanceof s.Gradient||this.set(t,new s.Gradient(e))},_initPattern:function(e,t,i){!e||!e.source||e instanceof s.Pattern?i&&i():this.set(t,new s.Pattern(e,i))},_setObject:function(e){for(var t in e)this._set(t,e[t])},set:function(e,t){return"object"===typeof e?this._setObject(e):this._set(e,t),this},_set:function(e,t){this[e]=t},toggle:function(e){var t=this.get(e);return"boolean"===typeof t&&this.set(e,!t),this},get:function(e){return this[e]}},function(e){var t=Math.sqrt,i=Math.atan2,n=Math.pow,o=Math.PI/180,r=Math.PI/2;s.util={cos:function(e){if(0===e)return 1;switch(e<0&&(e=-e),e/r){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},sin:function(e){if(0===e)return 0;var t=1;switch(e<0&&(t=-1),e/r){case 1:return t;case 2:return 0;case 3:return-t}return Math.sin(e)},removeFromArray:function(e,t){var i=e.indexOf(t);return-1!==i&&e.splice(i,1),e},getRandomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e},degreesToRadians:function(e){return e*o},radiansToDegrees:function(e){return e/o},rotatePoint:function(e,t,i){var n=new s.Point(e.x-t.x,e.y-t.y),o=s.util.rotateVector(n,i);return new s.Point(o.x,o.y).addEquals(t)},rotateVector:function(e,t){var i=s.util.sin(t),n=s.util.cos(t);return{x:e.x*n-e.y*i,y:e.x*i+e.y*n}},createVector:function(e,t){return new s.Point(t.x-e.x,t.y-e.y)},calcAngleBetweenVectors:function(e,t){return Math.acos((e.x*t.x+e.y*t.y)/(Math.hypot(e.x,e.y)*Math.hypot(t.x,t.y)))},getHatVector:function(e){return new s.Point(e.x,e.y).multiply(1/Math.hypot(e.x,e.y))},getBisector:function(e,t,i){var n=s.util.createVector(e,t),o=s.util.createVector(e,i),r=s.util.calcAngleBetweenVectors(n,o),a=r*(0===s.util.calcAngleBetweenVectors(s.util.rotateVector(n,r),o)?1:-1)/2;return{vector:s.util.getHatVector(s.util.rotateVector(n,a)),angle:r}},projectStrokeOnPoints:function(e,t,i){var n=[],o=t.strokeWidth/2,r=t.strokeUniform?new s.Point(1/t.scaleX,1/t.scaleY):new s.Point(1,1),a=function(e){var t=o/Math.hypot(e.x,e.y);return new s.Point(e.x*t*r.x,e.y*t*r.y)};return e.length<=1||e.forEach((function(l,d){var h,c,u=new s.Point(l.x,l.y);0===d?(c=e[d+1],h=i?a(s.util.createVector(c,u)).addEquals(u):e[e.length-1]):d===e.length-1?(h=e[d-1],c=i?a(s.util.createVector(h,u)).addEquals(u):e[0]):(h=e[d-1],c=e[d+1]);var g,p,m=s.util.getBisector(u,h,c),f=m.vector,_=m.angle;if("miter"===t.strokeLineJoin&&(g=-o/Math.sin(_/2),p=new s.Point(f.x*g*r.x,f.y*g*r.y),Math.hypot(p.x,p.y)/o<=t.strokeMiterLimit))return n.push(u.add(p)),void n.push(u.subtract(p));g=-o*Math.SQRT2,p=new s.Point(f.x*g*r.x,f.y*g*r.y),n.push(u.add(p)),n.push(u.subtract(p))})),n},transformPoint:function(e,t,i){return i?new s.Point(t[0]*e.x+t[2]*e.y,t[1]*e.x+t[3]*e.y):new s.Point(t[0]*e.x+t[2]*e.y+t[4],t[1]*e.x+t[3]*e.y+t[5])},makeBoundingBoxFromPoints:function(e,t){if(t)for(var i=0;i<e.length;i++)e[i]=s.util.transformPoint(e[i],t);var n=[e[0].x,e[1].x,e[2].x,e[3].x],o=s.util.array.min(n),r=s.util.array.max(n)-o,a=[e[0].y,e[1].y,e[2].y,e[3].y],l=s.util.array.min(a);return{left:o,top:l,width:r,height:s.util.array.max(a)-l}},invertTransform:function(e){var t=1/(e[0]*e[3]-e[1]*e[2]),i=[t*e[3],-t*e[1],-t*e[2],t*e[0]],n=s.util.transformPoint({x:e[4],y:e[5]},i,!0);return i[4]=-n.x,i[5]=-n.y,i},toFixed:function(e,t){return parseFloat(Number(e).toFixed(t))},parseUnit:function(e,t){var i=/\D{0,2}$/.exec(e),n=parseFloat(e);switch(t||(t=s.Text.DEFAULT_SVG_FONT_SIZE),i[0]){case"mm":return n*s.DPI/25.4;case"cm":return n*s.DPI/2.54;case"in":return n*s.DPI;case"pt":return n*s.DPI/72;case"pc":return n*s.DPI/72*12;case"em":return n*t;default:return n}},falseFunction:function(){return!1},getKlass:function(e,t){return e=s.util.string.camelize(e.charAt(0).toUpperCase()+e.slice(1)),s.util.resolveNamespace(t)[e]},getSvgAttributes:function(e){var t=["instantiated_by_use","style","id","class"];switch(e){case"linearGradient":t=t.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":t=t.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":t=t.concat(["offset","stop-color","stop-opacity"])}return t},resolveNamespace:function(t){if(!t)return s;var i,n=t.split("."),o=n.length,r=e||s.window;for(i=0;i<o;++i)r=r[n[i]];return r},loadImage:function(e,t,i,n){if(e){var o=s.util.createImage(),r=function(){t&&t.call(i,o,!1),o=o.onload=o.onerror=null};o.onload=r,o.onerror=function(){s.log("Error loading "+o.src),t&&t.call(i,null,!0),o=o.onload=o.onerror=null},0!==e.indexOf("data")&&void 0!==n&&null!==n&&(o.crossOrigin=n),"data:image/svg"===e.substring(0,14)&&(o.onload=null,s.util.loadImageInDom(o,r)),o.src=e}else t&&t.call(i,e)},loadImageInDom:function(e,t){var i=s.document.createElement("div");i.style.width=i.style.height="1px",i.style.left=i.style.top="-100%",i.style.position="absolute",i.appendChild(e),s.document.querySelector("body").appendChild(i),e.onload=function(){t(),i.parentNode.removeChild(i),i=null}},enlivenObjects:function(e,t,i,n){var o=[],r=0,a=(e=e||[]).length;function l(){++r===a&&t&&t(o.filter((function(e){return e})))}a?e.forEach((function(e,t){e&&e.type?s.util.getKlass(e.type,i).fromObject(e,(function(i,s){s||(o[t]=i),n&&n(e,i,s),l()})):l()})):t&&t(o)},enlivenObjectEnlivables:function(e,t,i){var n=s.Object.ENLIVEN_PROPS.filter((function(t){return!!e[t]}));s.util.enlivenObjects(n.map((function(t){return e[t]})),(function(e){var s={};n.forEach((function(i,n){s[i]=e[n],t&&(t[i]=e[n])})),i&&i(s)}))},enlivenPatterns:function(e,t){function i(){++o===r&&t&&t(n)}var n=[],o=0,r=(e=e||[]).length;r?e.forEach((function(e,t){e&&e.source?new s.Pattern(e,(function(e){n[t]=e,i()})):(n[t]=e,i())})):t&&t(n)},groupSVGElements:function(e,t,i){var n;return e&&1===e.length?("undefined"!==typeof i&&(e[0].sourcePath=i),e[0]):(t&&(t.width&&t.height?t.centerPoint={x:t.width/2,y:t.height/2}:(delete t.width,delete t.height)),n=new s.Group(e,t),"undefined"!==typeof i&&(n.sourcePath=i),n)},populateWithProperties:function(e,t,i){if(i&&Array.isArray(i))for(var n=0,s=i.length;n<s;n++)i[n]in e&&(t[i[n]]=e[i[n]])},createCanvasElement:function(){return s.document.createElement("canvas")},copyCanvasElement:function(e){var t=s.util.createCanvasElement();return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t},toDataURL:function(e,t,i){return e.toDataURL("image/"+t,i)},createImage:function(){return s.document.createElement("img")},multiplyTransformMatrices:function(e,t,i){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],i?0:e[0]*t[4]+e[2]*t[5]+e[4],i?0:e[1]*t[4]+e[3]*t[5]+e[5]]},qrDecompose:function(e){var s=i(e[1],e[0]),r=n(e[0],2)+n(e[1],2),a=t(r),l=(e[0]*e[3]-e[2]*e[1])/a,d=i(e[0]*e[2]+e[1]*e[3],r);return{angle:s/o,scaleX:a,scaleY:l,skewX:d/o,skewY:0,translateX:e[4],translateY:e[5]}},calcRotateMatrix:function(e){if(!e.angle)return s.iMatrix.concat();var t=s.util.degreesToRadians(e.angle),i=s.util.cos(t),n=s.util.sin(t);return[i,n,-n,i,0,0]},calcDimensionsMatrix:function(e){var t="undefined"===typeof e.scaleX?1:e.scaleX,i="undefined"===typeof e.scaleY?1:e.scaleY,n=[e.flipX?-t:t,0,0,e.flipY?-i:i,0,0],o=s.util.multiplyTransformMatrices,r=s.util.degreesToRadians;return e.skewX&&(n=o(n,[1,0,Math.tan(r(e.skewX)),1],!0)),e.skewY&&(n=o(n,[1,Math.tan(r(e.skewY)),0,1],!0)),n},composeMatrix:function(e){var t=[1,0,0,1,e.translateX||0,e.translateY||0],i=s.util.multiplyTransformMatrices;return e.angle&&(t=i(t,s.util.calcRotateMatrix(e))),(1!==e.scaleX||1!==e.scaleY||e.skewX||e.skewY||e.flipX||e.flipY)&&(t=i(t,s.util.calcDimensionsMatrix(e))),t},resetObjectTransform:function(e){e.scaleX=1,e.scaleY=1,e.skewX=0,e.skewY=0,e.flipX=!1,e.flipY=!1,e.rotate(0)},saveObjectTransform:function(e){return{scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,angle:e.angle,left:e.left,flipX:e.flipX,flipY:e.flipY,top:e.top}},isTransparent:function(e,t,i,n){n>0&&(t>n?t-=n:t=0,i>n?i-=n:i=0);var s,o=!0,r=e.getImageData(t,i,2*n||1,2*n||1),a=r.data.length;for(s=3;s<a&&!1!==(o=r.data[s]<=0);s+=4);return r=null,o},parsePreserveAspectRatioAttribute:function(e){var t,i="meet",n=e.split(" ");return n&&n.length&&("meet"!==(i=n.pop())&&"slice"!==i?(t=i,i="meet"):n.length&&(t=n.pop())),{meetOrSlice:i,alignX:"none"!==t?t.slice(1,4):"none",alignY:"none"!==t?t.slice(5,8):"none"}},clearFabricFontCache:function(e){(e=(e||"").toLowerCase())?s.charWidthsCache[e]&&delete s.charWidthsCache[e]:s.charWidthsCache={}},limitDimsByArea:function(e,t){var i=Math.sqrt(t*e),n=Math.floor(t/i);return{x:Math.floor(i),y:n}},capValue:function(e,t,i){return Math.max(e,Math.min(t,i))},findScaleToFit:function(e,t){return Math.min(t.width/e.width,t.height/e.height)},findScaleToCover:function(e,t){return Math.max(t.width/e.width,t.height/e.height)},matrixToSVG:function(e){return"matrix("+e.map((function(e){return s.util.toFixed(e,s.Object.NUM_FRACTION_DIGITS)})).join(" ")+")"},removeTransformFromObject:function(e,t){var i=s.util.invertTransform(t),n=s.util.multiplyTransformMatrices(i,e.calcOwnMatrix());s.util.applyTransformToObject(e,n)},addTransformToObject:function(e,t){s.util.applyTransformToObject(e,s.util.multiplyTransformMatrices(t,e.calcOwnMatrix()))},applyTransformToObject:function(e,t){var i=s.util.qrDecompose(t),n=new s.Point(i.translateX,i.translateY);e.flipX=!1,e.flipY=!1,e.set("scaleX",i.scaleX),e.set("scaleY",i.scaleY),e.skewX=i.skewX,e.skewY=i.skewY,e.angle=i.angle,e.setPositionByOrigin(n,"center","center")},sizeAfterTransform:function(e,t,i){var n=e/2,o=t/2,r=[{x:-n,y:-o},{x:n,y:-o},{x:-n,y:o},{x:n,y:o}],a=s.util.calcDimensionsMatrix(i),l=s.util.makeBoundingBoxFromPoints(r,a);return{x:l.width,y:l.height}},mergeClipPaths:function(e,t){var i=e,n=t;i.inverted&&!n.inverted&&(i=t,n=e),s.util.applyTransformToObject(n,s.util.multiplyTransformMatrices(s.util.invertTransform(i.calcTransformMatrix()),n.calcTransformMatrix()));var o=i.inverted&&n.inverted;return o&&(i.inverted=n.inverted=!1),new s.Group([i],{clipPath:n,inverted:o})},hasStyleChanged:function(e,t,i){return i=i||!1,e.fill!==t.fill||e.stroke!==t.stroke||e.strokeWidth!==t.strokeWidth||e.fontSize!==t.fontSize||e.fontFamily!==t.fontFamily||e.fontWeight!==t.fontWeight||e.fontStyle!==t.fontStyle||e.textBackgroundColor!==t.textBackgroundColor||e.deltaY!==t.deltaY||i&&(e.overline!==t.overline||e.underline!==t.underline||e.linethrough!==t.linethrough)},stylesToArray:function(e,t){e=s.util.object.clone(e,!0);for(var i=t.split("\n"),n=-1,o={},r=[],a=0;a<i.length;a++)if(e[a])for(var l=0;l<i[a].length;l++){n++;var d=e[a][l];if(d&&Object.keys(d).length>0)s.util.hasStyleChanged(o,d,!0)?r.push({start:n,end:n+1,style:d}):r[r.length-1].end++;o=d||{}}else n+=i[a].length;return r},stylesFromArray:function(e,t){if(!Array.isArray(e))return e;for(var i=t.split("\n"),n=-1,s=0,o={},r=0;r<i.length;r++)for(var a=0;a<i[r].length;a++)n++,e[s]&&e[s].start<=n&&n<e[s].end&&(o[r]=o[r]||{},o[r][a]=Object.assign({},e[s].style),n===e[s].end-1&&s++);return o}}}(t),function(){var e=Array.prototype.join,t={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},i={m:"l",M:"L"};function n(e,t,i,n,o,r,a,l,d,h,c){var u=s.util.cos(e),g=s.util.sin(e),p=s.util.cos(t),m=s.util.sin(t),f=i*o*p-n*r*m+a,_=n*o*p+i*r*m+l;return["C",h+d*(-i*o*g-n*r*u),c+d*(-n*o*g+i*r*u),f+d*(i*o*m+n*r*p),_+d*(n*o*m-i*r*p),f,_]}function o(e,t,i,n){var s=Math.atan2(t,e),o=Math.atan2(n,i);return o>=s?o-s:2*Math.PI-(s-o)}function r(e,t,i){for(var r=i[1],a=i[2],l=i[3],d=i[4],h=i[5],c=function(e,t,i,r,a,l,d){var h=Math.PI,c=d*h/180,u=s.util.sin(c),g=s.util.cos(c),p=0,m=0,f=-g*e*.5-u*t*.5,_=-g*t*.5+u*e*.5,v=(i=Math.abs(i))*i,b=(r=Math.abs(r))*r,C=_*_,y=f*f,w=v*b-v*C-b*y,S=0;if(w<0){var k=Math.sqrt(1-w/(v*b));i*=k,r*=k}else S=(a===l?-1:1)*Math.sqrt(w/(v*C+b*y));var x=S*i*_/r,L=-S*r*f/i,D=g*x-u*L+.5*e,E=u*x+g*L+.5*t,N=o(1,0,(f-x)/i,(_-L)/r),T=o((f-x)/i,(_-L)/r,(-f-x)/i,(-_-L)/r);0===l&&T>0?T-=2*h:1===l&&T<0&&(T+=2*h);for(var I=Math.ceil(Math.abs(T/h*2)),M=[],A=T/I,R=8/3*Math.sin(A/4)*Math.sin(A/4)/Math.sin(A/2),O=N+A,P=0;P<I;P++)M[P]=n(N,O,g,u,i,r,D,E,R,p,m),p=M[P][5],m=M[P][6],N=O,O+=A;return M}(i[6]-e,i[7]-t,r,a,d,h,l),u=0,g=c.length;u<g;u++)c[u][1]+=e,c[u][2]+=t,c[u][3]+=e,c[u][4]+=t,c[u][5]+=e,c[u][6]+=t;return c}function a(e,t,i,n){return Math.sqrt((i-e)*(i-e)+(n-t)*(n-t))}function l(e,t,i,n,s,o,r,a){return function(l){var d,h=(d=l)*d*d,c=function(e){return 3*e*e*(1-e)}(l),u=function(e){return 3*e*(1-e)*(1-e)}(l),g=function(e){return(1-e)*(1-e)*(1-e)}(l);return{x:r*h+s*c+i*u+e*g,y:a*h+o*c+n*u+t*g}}}function d(e,t,i,n,s,o,r,a){return function(l){var d=1-l,h=3*d*d*(i-e)+6*d*l*(s-i)+3*l*l*(r-s),c=3*d*d*(n-t)+6*d*l*(o-n)+3*l*l*(a-o);return Math.atan2(c,h)}}function h(e,t,i,n,s,o){return function(r){var a,l=(a=r)*a,d=function(e){return 2*e*(1-e)}(r),h=function(e){return(1-e)*(1-e)}(r);return{x:s*l+i*d+e*h,y:o*l+n*d+t*h}}}function c(e,t,i,n,s,o){return function(r){var a=1-r,l=2*a*(i-e)+2*r*(s-i),d=2*a*(n-t)+2*r*(o-n);return Math.atan2(d,l)}}function u(e,t,i){var n,s,o={x:t,y:i},r=0;for(s=1;s<=100;s+=1)n=e(s/100),r+=a(o.x,o.y,n.x,n.y),o=n;return r}function g(e,t){for(var i,n,s,o=0,r=0,l=e.iterator,d={x:e.x,y:e.y},h=.01,c=e.angleFinder;r<t&&h>1e-4;)i=l(o),s=o,(n=a(d.x,d.y,i.x,i.y))+r>t?(o-=h,h/=2):(d=i,o+=h,r+=n);return i.angle=c(s),i}function p(e){for(var t,i,n,s,o=0,r=e.length,g=0,p=0,m=0,f=0,_=[],v=0;v<r;v++){switch(n={x:g,y:p,command:(t=e[v])[0]},t[0]){case"M":n.length=0,m=g=t[1],f=p=t[2];break;case"L":n.length=a(g,p,t[1],t[2]),g=t[1],p=t[2];break;case"C":i=l(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),s=d(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),n.iterator=i,n.angleFinder=s,n.length=u(i,g,p),g=t[5],p=t[6];break;case"Q":i=h(g,p,t[1],t[2],t[3],t[4]),s=c(g,p,t[1],t[2],t[3],t[4]),n.iterator=i,n.angleFinder=s,n.length=u(i,g,p),g=t[3],p=t[4];break;case"Z":case"z":n.destX=m,n.destY=f,n.length=a(g,p,m,f),g=m,p=f}o+=n.length,_.push(n)}return _.push({length:o,x:g,y:p}),_}s.util.joinPath=function(e){return e.map((function(e){return e.join(" ")})).join(" ")},s.util.parsePath=function(e){var n,o,r,a,l,d=[],h=[],c=s.rePathCommand,u="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",g="("+u+")"+s.commaWsp,p="([01])"+s.commaWsp+"?",m=new RegExp(g+"?"+g+"?"+g+p+p+g+"?("+u+")","g");if(!e||!e.match)return d;for(var f,_=0,v=(l=e.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi)).length;_<v;_++){a=(n=l[_]).slice(1).trim(),h.length=0;var b=n.charAt(0);if(f=[b],"a"===b.toLowerCase())for(var C;C=m.exec(a);)for(var y=1;y<C.length;y++)h.push(C[y]);else for(;r=c.exec(a);)h.push(r[0]);y=0;for(var w=h.length;y<w;y++)o=parseFloat(h[y]),isNaN(o)||f.push(o);var S=t[b.toLowerCase()],k=i[b]||b;if(f.length-1>S)for(var x=1,L=f.length;x<L;x+=S)d.push([b].concat(f.slice(x,x+S))),b=k;else d.push(f)}return d},s.util.makePathSimpler=function(e){var t,i,n,s,o,a,l=0,d=0,h=e.length,c=0,u=0,g=[];for(i=0;i<h;++i){switch(n=!1,(t=e[i].slice(0))[0]){case"l":t[0]="L",t[1]+=l,t[2]+=d;case"L":l=t[1],d=t[2];break;case"h":t[1]+=l;case"H":t[0]="L",t[2]=d,l=t[1];break;case"v":t[1]+=d;case"V":t[0]="L",d=t[1],t[1]=l,t[2]=d;break;case"m":t[0]="M",t[1]+=l,t[2]+=d;case"M":l=t[1],d=t[2],c=t[1],u=t[2];break;case"c":t[0]="C",t[1]+=l,t[2]+=d,t[3]+=l,t[4]+=d,t[5]+=l,t[6]+=d;case"C":o=t[3],a=t[4],l=t[5],d=t[6];break;case"s":t[0]="S",t[1]+=l,t[2]+=d,t[3]+=l,t[4]+=d;case"S":"C"===s?(o=2*l-o,a=2*d-a):(o=l,a=d),l=t[3],d=t[4],t[0]="C",t[5]=t[3],t[6]=t[4],t[3]=t[1],t[4]=t[2],t[1]=o,t[2]=a,o=t[3],a=t[4];break;case"q":t[0]="Q",t[1]+=l,t[2]+=d,t[3]+=l,t[4]+=d;case"Q":o=t[1],a=t[2],l=t[3],d=t[4];break;case"t":t[0]="T",t[1]+=l,t[2]+=d;case"T":"Q"===s?(o=2*l-o,a=2*d-a):(o=l,a=d),t[0]="Q",l=t[1],d=t[2],t[1]=o,t[2]=a,t[3]=l,t[4]=d;break;case"a":t[0]="A",t[6]+=l,t[7]+=d;case"A":n=!0,g=g.concat(r(l,d,t)),l=t[6],d=t[7];break;case"z":case"Z":l=c,d=u}n||g.push(t),s=t[0]}return g},s.util.getSmoothPathFromPoints=function(e,t){var i,n=[],o=new s.Point(e[0].x,e[0].y),r=new s.Point(e[1].x,e[1].y),a=e.length,l=1,d=0,h=a>2;for(t=t||0,h&&(l=e[2].x<r.x?-1:e[2].x===r.x?0:1,d=e[2].y<r.y?-1:e[2].y===r.y?0:1),n.push(["M",o.x-l*t,o.y-d*t]),i=1;i<a;i++){if(!o.eq(r)){var c=o.midPointFrom(r);n.push(["Q",o.x,o.y,c.x,c.y])}o=e[i],i+1<e.length&&(r=e[i+1])}return h&&(l=o.x>e[i-2].x?1:o.x===e[i-2].x?0:-1,d=o.y>e[i-2].y?1:o.y===e[i-2].y?0:-1),n.push(["L",o.x+l*t,o.y+d*t]),n},s.util.getPathSegmentsInfo=p,s.util.getBoundsOfCurve=function(t,i,n,o,r,a,l,d){var h;if(s.cachesBoundsOfCurve&&(h=e.call(arguments),s.boundsOfCurveCache[h]))return s.boundsOfCurveCache[h];var c,u,g,p,m,f,_,v,b=Math.sqrt,C=Math.min,y=Math.max,w=Math.abs,S=[],k=[[],[]];u=6*t-12*n+6*r,c=-3*t+9*n-9*r+3*l,g=3*n-3*t;for(var x=0;x<2;++x)if(x>0&&(u=6*i-12*o+6*a,c=-3*i+9*o-9*a+3*d,g=3*o-3*i),w(c)<1e-12){if(w(u)<1e-12)continue;0<(p=-g/u)&&p<1&&S.push(p)}else(_=u*u-4*g*c)<0||(0<(m=(-u+(v=b(_)))/(2*c))&&m<1&&S.push(m),0<(f=(-u-v)/(2*c))&&f<1&&S.push(f));for(var L,D,E,N=S.length,T=N;N--;)L=(E=1-(p=S[N]))*E*E*t+3*E*E*p*n+3*E*p*p*r+p*p*p*l,k[0][N]=L,D=E*E*E*i+3*E*E*p*o+3*E*p*p*a+p*p*p*d,k[1][N]=D;k[0][T]=t,k[1][T]=i,k[0][T+1]=l,k[1][T+1]=d;var I=[{x:C.apply(null,k[0]),y:C.apply(null,k[1])},{x:y.apply(null,k[0]),y:y.apply(null,k[1])}];return s.cachesBoundsOfCurve&&(s.boundsOfCurveCache[h]=I),I},s.util.getPointOnPath=function(e,t,i){i||(i=p(e));for(var n=0;t-i[n].length>0&&n<i.length-2;)t-=i[n].length,n++;var o,r=i[n],a=t/r.length,l=r.command,d=e[n];switch(l){case"M":return{x:r.x,y:r.y,angle:0};case"Z":case"z":return(o=new s.Point(r.x,r.y).lerp(new s.Point(r.destX,r.destY),a)).angle=Math.atan2(r.destY-r.y,r.destX-r.x),o;case"L":return(o=new s.Point(r.x,r.y).lerp(new s.Point(d[1],d[2]),a)).angle=Math.atan2(d[2]-r.y,d[1]-r.x),o;case"C":case"Q":return g(r,t)}},s.util.transformPath=function(e,t,i){return i&&(t=s.util.multiplyTransformMatrices(t,[1,0,0,1,-i.x,-i.y])),e.map((function(e){for(var i=e.slice(0),n={},o=1;o<e.length-1;o+=2)n.x=e[o],n.y=e[o+1],n=s.util.transformPoint(n,t),i[o]=n.x,i[o+1]=n.y;return i}))}}(),function(){var e=Array.prototype.slice;function t(e,t,i){if(e&&0!==e.length){var n=e.length-1,s=t?e[n][t]:e[n];if(t)for(;n--;)i(e[n][t],s)&&(s=e[n][t]);else for(;n--;)i(e[n],s)&&(s=e[n]);return s}}s.util.array={fill:function(e,t){for(var i=e.length;i--;)e[i]=t;return e},invoke:function(t,i){for(var n=e.call(arguments,2),s=[],o=0,r=t.length;o<r;o++)s[o]=n.length?t[o][i].apply(t[o],n):t[o][i].call(t[o]);return s},min:function(e,i){return t(e,i,(function(e,t){return e<t}))},max:function(e,i){return t(e,i,(function(e,t){return e>=t}))}}}(),function(){function e(t,i,n){if(n)if(!s.isLikelyNode&&i instanceof Element)t=i;else if(i instanceof Array){t=[];for(var o=0,r=i.length;o<r;o++)t[o]=e({},i[o],n)}else if(i&&"object"===typeof i)for(var a in i)"canvas"===a||"group"===a?t[a]=null:i.hasOwnProperty(a)&&(t[a]=e({},i[a],n));else t=i;else for(var a in i)t[a]=i[a];return t}s.util.object={extend:e,clone:function(t,i){return e({},t,i)}},s.util.object.extend(s.util,s.Observable)}(),function(){function e(e,t){var i=e.charCodeAt(t);if(isNaN(i))return"";if(i<55296||i>57343)return e.charAt(t);if(55296<=i&&i<=56319){if(e.length<=t+1)throw"High surrogate without following low surrogate";var n=e.charCodeAt(t+1);if(56320>n||n>57343)throw"High surrogate without following low surrogate";return e.charAt(t)+e.charAt(t+1)}if(0===t)throw"Low surrogate without preceding high surrogate";var s=e.charCodeAt(t-1);if(55296>s||s>56319)throw"Low surrogate without preceding high surrogate";return!1}s.util.string={camelize:function(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))},capitalize:function(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())},escapeXml:function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")},graphemeSplit:function(t){var i,n=0,s=[];for(n=0;n<t.length;n++)!1!==(i=e(t,n))&&s.push(i);return s}}}(),function(){var e=Array.prototype.slice,t=function(){},i=function(){for(var e in{toString:1})if("toString"===e)return!1;return!0}(),n=function(e,t,n){for(var s in t)s in e.prototype&&"function"===typeof e.prototype[s]&&(t[s]+"").indexOf("callSuper")>-1?e.prototype[s]=function(e){return function(){var i=this.constructor.superclass;this.constructor.superclass=n;var s=t[e].apply(this,arguments);if(this.constructor.superclass=i,"initialize"!==e)return s}}(s):e.prototype[s]=t[s],i&&(t.toString!==Object.prototype.toString&&(e.prototype.toString=t.toString),t.valueOf!==Object.prototype.valueOf&&(e.prototype.valueOf=t.valueOf))};function o(){}function r(t){for(var i=null,n=this;n.constructor.superclass;){var s=n.constructor.superclass.prototype[t];if(n[t]!==s){i=s;break}n=n.constructor.superclass.prototype}return i?arguments.length>1?i.apply(this,e.call(arguments,1)):i.call(this):console.log("tried to callSuper "+t+", method not found in prototype chain",this)}s.util.createClass=function(){var i=null,s=e.call(arguments,0);function a(){this.initialize.apply(this,arguments)}"function"===typeof s[0]&&(i=s.shift()),a.superclass=i,a.subclasses=[],i&&(o.prototype=i.prototype,a.prototype=new o,i.subclasses.push(a));for(var l=0,d=s.length;l<d;l++)n(a,s[l],i);return a.prototype.initialize||(a.prototype.initialize=t),a.prototype.constructor=a,a.prototype.callSuper=r,a}}(),function(){var e=!!s.document.createElement("div").attachEvent,t=["touchstart","touchmove","touchend"];s.util.addListener=function(t,i,n,s){t&&t.addEventListener(i,n,!e&&s)},s.util.removeListener=function(t,i,n,s){t&&t.removeEventListener(i,n,!e&&s)},s.util.getPointer=function(e){var t=e.target,i=s.util.getScrollLeftTop(t),n=function(e){var t=e.changedTouches;return t&&t[0]?t[0]:e}(e);return{x:n.clientX+i.left,y:n.clientY+i.top}},s.util.isTouchEvent=function(e){return t.indexOf(e.type)>-1||"touch"===e.pointerType}}(),function(){var e=s.document.createElement("div"),t="string"===typeof e.style.opacity,i="string"===typeof e.style.filter,n=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,o=function(e){return e};t?o=function(e,t){return e.style.opacity=t,e}:i&&(o=function(e,t){var i=e.style;return e.currentStyle&&!e.currentStyle.hasLayout&&(i.zoom=1),n.test(i.filter)?(t=t>=.9999?"":"alpha(opacity="+100*t+")",i.filter=i.filter.replace(n,t)):i.filter+=" alpha(opacity="+100*t+")",e}),s.util.setStyle=function(e,t){var i=e.style;if(!i)return e;if("string"===typeof t)return e.style.cssText+=";"+t,t.indexOf("opacity")>-1?o(e,t.match(/opacity:\s*(\d?\.?\d*)/)[1]):e;for(var n in t)if("opacity"===n)o(e,t[n]);else{var s="float"===n||"cssFloat"===n?"undefined"===typeof i.styleFloat?"cssFloat":"styleFloat":n;i.setProperty(s,t[n])}return e}}(),function(){var e=Array.prototype.slice;var t,i,n=function(t){return e.call(t,0)};try{t=n(s.document.childNodes)instanceof Array}catch(a){}function o(e,t){var i=s.document.createElement(e);for(var n in t)"class"===n?i.className=t[n]:"for"===n?i.htmlFor=t[n]:i.setAttribute(n,t[n]);return i}function r(e){for(var t=0,i=0,n=s.document.documentElement,o=s.document.body||{scrollLeft:0,scrollTop:0};e&&(e.parentNode||e.host)&&((e=e.parentNode||e.host)===s.document?(t=o.scrollLeft||n.scrollLeft||0,i=o.scrollTop||n.scrollTop||0):(t+=e.scrollLeft||0,i+=e.scrollTop||0),1!==e.nodeType||"fixed"!==e.style.position););return{left:t,top:i}}t||(n=function(e){for(var t=new Array(e.length),i=e.length;i--;)t[i]=e[i];return t}),i=s.document.defaultView&&s.document.defaultView.getComputedStyle?function(e,t){var i=s.document.defaultView.getComputedStyle(e,null);return i?i[t]:void 0}:function(e,t){var i=e.style[t];return!i&&e.currentStyle&&(i=e.currentStyle[t]),i},function(){var e=s.document.documentElement.style,t="userSelect"in e?"userSelect":"MozUserSelect"in e?"MozUserSelect":"WebkitUserSelect"in e?"WebkitUserSelect":"KhtmlUserSelect"in e?"KhtmlUserSelect":"";s.util.makeElementUnselectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=s.util.falseFunction),t?e.style[t]="none":"string"===typeof e.unselectable&&(e.unselectable="on"),e},s.util.makeElementSelectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=null),t?e.style[t]="":"string"===typeof e.unselectable&&(e.unselectable=""),e}}(),s.util.setImageSmoothing=function(e,t){e.imageSmoothingEnabled=e.imageSmoothingEnabled||e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled||e.oImageSmoothingEnabled,e.imageSmoothingEnabled=t},s.util.getById=function(e){return"string"===typeof e?s.document.getElementById(e):e},s.util.toArray=n,s.util.addClass=function(e,t){e&&-1===(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className+=(e.className?" ":"")+t)},s.util.makeElement=o,s.util.wrapElement=function(e,t,i){return"string"===typeof t&&(t=o(t,i)),e.parentNode&&e.parentNode.replaceChild(t,e),t.appendChild(e),t},s.util.getScrollLeftTop=r,s.util.getElementOffset=function(e){var t,n,s=e&&e.ownerDocument,o={left:0,top:0},a={left:0,top:0},l={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!s)return a;for(var d in l)a[l[d]]+=parseInt(i(e,d),10)||0;return t=s.documentElement,"undefined"!==typeof e.getBoundingClientRect&&(o=e.getBoundingClientRect()),n=r(e),{left:o.left+n.left-(t.clientLeft||0)+a.left,top:o.top+n.top-(t.clientTop||0)+a.top}},s.util.getNodeCanvas=function(e){var t=s.jsdomImplForWrapper(e);return t._canvas||t._image},s.util.cleanUpJsdomNode=function(e){if(s.isLikelyNode){var t=s.jsdomImplForWrapper(e);t&&(t._image=null,t._canvas=null,t._currentSrc=null,t._attributes=null,t._classList=null)}}}(),function(){function e(){}s.util.request=function(t,i){i||(i={});var n=i.method?i.method.toUpperCase():"GET",o=i.onComplete||function(){},r=new s.window.XMLHttpRequest,a=i.body||i.parameters;return r.onreadystatechange=function(){4===r.readyState&&(o(r),r.onreadystatechange=e)},"GET"===n&&(a=null,"string"===typeof i.parameters&&(t=function(e,t){return e+(/\?/.test(e)?"&":"?")+t}(t,i.parameters))),r.open(n,t,!0),"POST"!==n&&"PUT"!==n||r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.send(a),r}}(),s.log=console.log,s.warn=console.warn,function(){var e=s.util.object.extend,t=s.util.object.clone,i=[];function n(){return!1}function o(e,t,i,n){return-i*Math.cos(e/n*(Math.PI/2))+i+t}s.util.object.extend(i,{cancelAll:function(){var e=this.splice(0);return e.forEach((function(e){e.cancel()})),e},cancelByCanvas:function(e){if(!e)return[];var t=this.filter((function(t){return"object"===typeof t.target&&t.target.canvas===e}));return t.forEach((function(e){e.cancel()})),t},cancelByTarget:function(e){var t=this.findAnimationsByTarget(e);return t.forEach((function(e){e.cancel()})),t},findAnimationIndex:function(e){return this.indexOf(this.findAnimation(e))},findAnimation:function(e){return this.find((function(t){return t.cancel===e}))},findAnimationsByTarget:function(e){return e?this.filter((function(t){return t.target===e})):[]}});var r=s.window.requestAnimationFrame||s.window.webkitRequestAnimationFrame||s.window.mozRequestAnimationFrame||s.window.oRequestAnimationFrame||s.window.msRequestAnimationFrame||function(e){return s.window.setTimeout(e,1e3/60)},a=s.window.cancelAnimationFrame||s.window.clearTimeout;function l(){return r.apply(s.window,arguments)}s.util.animate=function(i){i||(i={});var r,a=!1,d=function(){var e=s.runningAnimations.indexOf(r);return e>-1&&s.runningAnimations.splice(e,1)[0]};return r=e(t(i),{cancel:function(){return a=!0,d()},currentValue:"startValue"in i?i.startValue:0,completionRate:0,durationRate:0}),s.runningAnimations.push(r),l((function(e){var t,s=e||+new Date,h=i.duration||500,c=s+h,u=i.onChange||n,g=i.abort||n,p=i.onComplete||n,m=i.easing||o,f="startValue"in i&&i.startValue.length>0,_="startValue"in i?i.startValue:0,v="endValue"in i?i.endValue:100,b=i.byValue||(f?_.map((function(e,t){return v[t]-_[t]})):v-_);i.onStart&&i.onStart(),function e(i){var n=(t=i||+new Date)>c?h:t-s,o=n/h,C=f?_.map((function(e,t){return m(n,_[t],b[t],h)})):m(n,_,b,h),y=f?Math.abs((C[0]-_[0])/b[0]):Math.abs((C-_)/b);if(r.currentValue=f?C.slice():C,r.completionRate=y,r.durationRate=o,!a){if(!g(C,y,o))return t>c?(r.currentValue=f?v.slice():v,r.completionRate=1,r.durationRate=1,u(f?v.slice():v,1,1),p(v,1,1),void d()):(u(C,y,o),void l(e));d()}}(s)})),r.cancel},s.util.requestAnimFrame=l,s.util.cancelAnimFrame=function(){return a.apply(s.window,arguments)},s.runningAnimations=i}(),function(){function e(e,t,i){var n="rgba("+parseInt(e[0]+i*(t[0]-e[0]),10)+","+parseInt(e[1]+i*(t[1]-e[1]),10)+","+parseInt(e[2]+i*(t[2]-e[2]),10);return n+=","+(e&&t?parseFloat(e[3]+i*(t[3]-e[3])):1),n+=")"}s.util.animateColor=function(t,i,n,o){var r=new s.Color(t).getSource(),a=new s.Color(i).getSource(),l=o.onComplete,d=o.onChange;return o=o||{},s.util.animate(s.util.object.extend(o,{duration:n||500,startValue:r,endValue:a,byValue:a,easing:function(t,i,n,s){return e(i,n,o.colorEasing?o.colorEasing(t,s):1-Math.cos(t/s*(Math.PI/2)))},onComplete:function(t,i,n){if(l)return l(e(a,a,0),i,n)},onChange:function(t,i,n){if(d){if(Array.isArray(t))return d(e(t,t,0),i,n);d(t,i,n)}}}))}}(),function(){function e(e,t,i,n){return e<Math.abs(t)?(e=t,n=i/4):n=0===t&&0===e?i/(2*Math.PI)*Math.asin(1):i/(2*Math.PI)*Math.asin(t/e),{a:e,c:t,p:i,s:n}}function t(e,t,i){return e.a*Math.pow(2,10*(t-=1))*Math.sin((t*i-e.s)*(2*Math.PI)/e.p)}function i(e,t,i,s){return i-n(s-e,0,i,s)+t}function n(e,t,i,n){return(e/=n)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t}s.util.ease={easeInQuad:function(e,t,i,n){return i*(e/=n)*e+t},easeOutQuad:function(e,t,i,n){return-i*(e/=n)*(e-2)+t},easeInOutQuad:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,i,n){return i*(e/=n)*e*e+t},easeOutCubic:function(e,t,i,n){return i*((e=e/n-1)*e*e+1)+t},easeInOutCubic:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,i,n){return i*(e/=n)*e*e*e+t},easeOutQuart:function(e,t,i,n){return-i*((e=e/n-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,i,n){return i*(e/=n)*e*e*e*e+t},easeOutQuint:function(e,t,i,n){return i*((e=e/n-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,i,n){return-i*Math.cos(e/n*(Math.PI/2))+i+t},easeOutSine:function(e,t,i,n){return i*Math.sin(e/n*(Math.PI/2))+t},easeInOutSine:function(e,t,i,n){return-i/2*(Math.cos(Math.PI*e/n)-1)+t},easeInExpo:function(e,t,i,n){return 0===e?t:i*Math.pow(2,10*(e/n-1))+t},easeOutExpo:function(e,t,i,n){return e===n?t+i:i*(1-Math.pow(2,-10*e/n))+t},easeInOutExpo:function(e,t,i,n){return 0===e?t:e===n?t+i:(e/=n/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,i,n){return-i*(Math.sqrt(1-(e/=n)*e)-1)+t},easeOutCirc:function(e,t,i,n){return i*Math.sqrt(1-(e=e/n-1)*e)+t},easeInOutCirc:function(e,t,i,n){return(e/=n/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(i,n,s,o){var r=0;return 0===i?n:1===(i/=o)?n+s:(r||(r=.3*o),-t(e(s,s,r,1.70158),i,o)+n)},easeOutElastic:function(t,i,n,s){var o=0;if(0===t)return i;if(1===(t/=s))return i+n;o||(o=.3*s);var r=e(n,n,o,1.70158);return r.a*Math.pow(2,-10*t)*Math.sin((t*s-r.s)*(2*Math.PI)/r.p)+r.c+i},easeInOutElastic:function(i,n,s,o){var r=0;if(0===i)return n;if(2===(i/=o/2))return n+s;r||(r=o*(.3*1.5));var a=e(s,s,r,1.70158);return i<1?-.5*t(a,i,o)+n:a.a*Math.pow(2,-10*(i-=1))*Math.sin((i*o-a.s)*(2*Math.PI)/a.p)*.5+a.c+n},easeInBack:function(e,t,i,n,s){return void 0===s&&(s=1.70158),i*(e/=n)*e*((s+1)*e-s)+t},easeOutBack:function(e,t,i,n,s){return void 0===s&&(s=1.70158),i*((e=e/n-1)*e*((s+1)*e+s)+1)+t},easeInOutBack:function(e,t,i,n,s){return void 0===s&&(s=1.70158),(e/=n/2)<1?i/2*(e*e*((1+(s*=1.525))*e-s))+t:i/2*((e-=2)*e*((1+(s*=1.525))*e+s)+2)+t},easeInBounce:i,easeOutBounce:n,easeInOutBounce:function(e,t,s,o){return e<o/2?.5*i(2*e,0,s,o)+t:.5*n(2*e-o,0,s,o)+.5*s+t}}}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.util.object.clone,s=t.util.toFixed,o=t.util.parseUnit,r=t.util.multiplyTransformMatrices,a={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},l={stroke:"strokeOpacity",fill:"fillOpacity"},d="font-size",h="clip-path";function c(e){return e in a?a[e]:e}function u(e,i,n,s){var a,l=Array.isArray(i);if("fill"!==e&&"stroke"!==e||"none"!==i){if("strokeUniform"===e)return"non-scaling-stroke"===i;if("strokeDashArray"===e)i="none"===i?null:i.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===e)i=n&&n.transformMatrix?r(n.transformMatrix,t.parseTransformAttribute(i)):t.parseTransformAttribute(i);else if("visible"===e)i="none"!==i&&"hidden"!==i,n&&!1===n.visible&&(i=!1);else if("opacity"===e)i=parseFloat(i),n&&"undefined"!==typeof n.opacity&&(i*=n.opacity);else if("textAnchor"===e)i="start"===i?"left":"end"===i?"right":"center";else if("charSpacing"===e)a=o(i,s)/s*1e3;else if("paintFirst"===e){var d=i.indexOf("fill"),h=i.indexOf("stroke");i="fill";(d>-1&&h>-1&&h<d||-1===d&&h>-1)&&(i="stroke")}else{if("href"===e||"xlink:href"===e||"font"===e)return i;if("imageSmoothing"===e)return"optimizeQuality"===i;a=l?i.map(o):o(i,s)}}else i="";return!l&&isNaN(a)?i:a}function g(e){return new RegExp("^("+e.join("|")+")\\b","i")}function p(e,t){var i,n,s,o,r=[];for(s=0,o=t.length;s<o;s++)i=t[s],n=e.getElementsByTagName(i),r=r.concat(Array.prototype.slice.call(n));return r}function m(e,t){var i,n=!0;return(i=f(e,t.pop()))&&t.length&&(n=function(e,t){var i,n=!0;for(;e.parentNode&&1===e.parentNode.nodeType&&t.length;)n&&(i=t.pop()),n=f(e=e.parentNode,i);return 0===t.length}(e,t)),i&&n&&0===t.length}function f(e,t){var i,n,s=e.nodeName,o=e.getAttribute("class"),r=e.getAttribute("id");if(i=new RegExp("^"+s,"i"),t=t.replace(i,""),r&&t.length&&(i=new RegExp("#"+r+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"")),o&&t.length)for(n=(o=o.split(" ")).length;n--;)i=new RegExp("\\."+o[n]+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"");return 0===t.length}function _(e,t){var i;if(e.getElementById&&(i=e.getElementById(t)),i)return i;var n,s,o,r=e.getElementsByTagName("*");for(s=0,o=r.length;s<o;s++)if(t===(n=r[s]).getAttribute("id"))return n}t.svgValidTagNamesRegEx=g(["path","circle","polygon","polyline","ellipse","rect","line","image","text"]),t.svgViewBoxElementsRegEx=g(["symbol","image","marker","pattern","view","svg"]),t.svgInvalidAncestorsRegEx=g(["pattern","defs","symbol","metadata","clipPath","mask","desc"]),t.svgValidParentsRegEx=g(["symbol","g","a","svg","clipPath","defs"]),t.cssRules={},t.gradientDefs={},t.clipPaths={},t.parseTransformAttribute=function(){function e(e,i,n){e[n]=Math.tan(t.util.degreesToRadians(i[0]))}var i=t.iMatrix,n=t.reNum,s=t.commaWsp,o="(?:"+("(?:(matrix)\\s*\\(\\s*("+n+")"+s+"("+n+")"+s+"("+n+")"+s+"("+n+")"+s+"("+n+")"+s+"("+n+")\\s*\\))")+"|"+("(?:(translate)\\s*\\(\\s*("+n+")(?:"+s+"("+n+"))?\\s*\\))")+"|"+("(?:(scale)\\s*\\(\\s*("+n+")(?:"+s+"("+n+"))?\\s*\\))")+"|"+("(?:(rotate)\\s*\\(\\s*("+n+")(?:"+s+"("+n+")"+s+"("+n+"))?\\s*\\))")+"|"+("(?:(skewX)\\s*\\(\\s*("+n+")\\s*\\))")+"|"+("(?:(skewY)\\s*\\(\\s*("+n+")\\s*\\))")+")",r=new RegExp("^\\s*(?:"+("(?:"+o+"(?:"+s+"*"+o+")*)")+"?)\\s*$"),a=new RegExp(o,"g");return function(n){var s=i.concat(),l=[];if(!n||n&&!r.test(n))return s;n.replace(a,(function(n){var r=new RegExp(o).exec(n).filter((function(e){return!!e})),a=r[1],d=r.slice(2).map(parseFloat);switch(a){case"translate":!function(e,t){e[4]=t[0],2===t.length&&(e[5]=t[1])}(s,d);break;case"rotate":d[0]=t.util.degreesToRadians(d[0]),function(e,i){var n=t.util.cos(i[0]),s=t.util.sin(i[0]),o=0,r=0;3===i.length&&(o=i[1],r=i[2]),e[0]=n,e[1]=s,e[2]=-s,e[3]=n,e[4]=o-(n*o-s*r),e[5]=r-(s*o+n*r)}(s,d);break;case"scale":!function(e,t){var i=t[0],n=2===t.length?t[1]:t[0];e[0]=i,e[3]=n}(s,d);break;case"skewX":e(s,d,2);break;case"skewY":e(s,d,1);break;case"matrix":s=d}l.push(s.concat()),s=i.concat()}));for(var d=l[0];l.length>1;)l.shift(),d=t.util.multiplyTransformMatrices(d,l[0]);return d}}();var v=new RegExp("^\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*$");function b(e){if(!t.svgViewBoxElementsRegEx.test(e.nodeName))return{};var i,n,s,r,a,l,d=e.getAttribute("viewBox"),h=1,c=1,u=e.getAttribute("width"),g=e.getAttribute("height"),p=e.getAttribute("x")||0,m=e.getAttribute("y")||0,f=e.getAttribute("preserveAspectRatio")||"",_=!d||!(d=d.match(v)),b=!u||!g||"100%"===u||"100%"===g,C=_&&b,y={},w="",S=0,k=0;if(y.width=0,y.height=0,y.toBeParsed=C,_&&(p||m)&&e.parentNode&&"#document"!==e.parentNode.nodeName&&(w=" translate("+o(p)+" "+o(m)+") ",a=(e.getAttribute("transform")||"")+w,e.setAttribute("transform",a),e.removeAttribute("x"),e.removeAttribute("y")),C)return y;if(_)return y.width=o(u),y.height=o(g),y;if(i=-parseFloat(d[1]),n=-parseFloat(d[2]),s=parseFloat(d[3]),r=parseFloat(d[4]),y.minX=i,y.minY=n,y.viewBoxWidth=s,y.viewBoxHeight=r,b?(y.width=s,y.height=r):(y.width=o(u),y.height=o(g),h=y.width/s,c=y.height/r),"none"!==(f=t.util.parsePreserveAspectRatioAttribute(f)).alignX&&("meet"===f.meetOrSlice&&(c=h=h>c?c:h),"slice"===f.meetOrSlice&&(c=h=h>c?h:c),S=y.width-s*h,k=y.height-r*h,"Mid"===f.alignX&&(S/=2),"Mid"===f.alignY&&(k/=2),"Min"===f.alignX&&(S=0),"Min"===f.alignY&&(k=0)),1===h&&1===c&&0===i&&0===n&&0===p&&0===m)return y;if((p||m)&&"#document"!==e.parentNode.nodeName&&(w=" translate("+o(p)+" "+o(m)+") "),a=w+" matrix("+h+" 0 0 "+c+" "+(i*h+S)+" "+(n*c+k)+") ","svg"===e.nodeName){for(l=e.ownerDocument.createElementNS(t.svgNS,"g");e.firstChild;)l.appendChild(e.firstChild);e.appendChild(l)}else(l=e).removeAttribute("x"),l.removeAttribute("y"),a=l.getAttribute("transform")+a;return l.setAttribute("transform",a),y}function C(e,t){var i="xlink:href",n=_(e,t.getAttribute(i).slice(1));if(n&&n.getAttribute(i)&&C(e,n),["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"].forEach((function(e){n&&!t.hasAttribute(e)&&n.hasAttribute(e)&&t.setAttribute(e,n.getAttribute(e))})),!t.children.length)for(var s=n.cloneNode(!0);s.firstChild;)t.appendChild(s.firstChild);t.removeAttribute(i)}t.parseSVGDocument=function(e,i,s,o){if(e){!function(e){for(var i=p(e,["use","svg:use"]),n=0;i.length&&n<i.length;){var s=i[n],o=s.getAttribute("xlink:href")||s.getAttribute("href");if(null===o)return;var r,a,l,d,h=o.slice(1),c=s.getAttribute("x")||0,u=s.getAttribute("y")||0,g=_(e,h).cloneNode(!0),m=(g.getAttribute("transform")||"")+" translate("+c+", "+u+")",f=i.length,v=t.svgNS;if(b(g),/^svg$/i.test(g.nodeName)){var C=g.ownerDocument.createElementNS(v,"g");for(a=0,d=(l=g.attributes).length;a<d;a++)r=l.item(a),C.setAttributeNS(v,r.nodeName,r.nodeValue);for(;g.firstChild;)C.appendChild(g.firstChild);g=C}for(a=0,d=(l=s.attributes).length;a<d;a++)"x"!==(r=l.item(a)).nodeName&&"y"!==r.nodeName&&"xlink:href"!==r.nodeName&&"href"!==r.nodeName&&("transform"===r.nodeName?m=r.nodeValue+" "+m:g.setAttribute(r.nodeName,r.nodeValue));g.setAttribute("transform",m),g.setAttribute("instantiated_by_use","1"),g.removeAttribute("id"),s.parentNode.replaceChild(g,s),i.length===f&&n++}}(e);var r,a,l=t.Object.__uid++,d=b(e),h=t.util.toArray(e.getElementsByTagName("*"));if(d.crossOrigin=o&&o.crossOrigin,d.svgUid=l,0===h.length&&t.isLikelyNode){var c=[];for(r=0,a=(h=e.selectNodes('//*[name(.)!="svg"]')).length;r<a;r++)c[r]=h[r];h=c}var u=h.filter((function(e){return b(e),t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))&&!function(e,t){for(;e&&(e=e.parentNode);)if(e.nodeName&&t.test(e.nodeName.replace("svg:",""))&&!e.getAttribute("instantiated_by_use"))return!0;return!1}(e,t.svgInvalidAncestorsRegEx)}));if(!u||u&&!u.length)i&&i([],{});else{var g={};h.filter((function(e){return"clipPath"===e.nodeName.replace("svg:","")})).forEach((function(e){var i=e.getAttribute("id");g[i]=t.util.toArray(e.getElementsByTagName("*")).filter((function(e){return t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))}))})),t.gradientDefs[l]=t.getGradientDefs(e),t.cssRules[l]=t.getCSSRules(e),t.clipPaths[l]=g,t.parseElements(u,(function(e,n){i&&(i(e,d,n,h),delete t.gradientDefs[l],delete t.cssRules[l],delete t.clipPaths[l])}),n(d),s,o)}}};var y=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+t.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+t.reNum+"))?\\s+(.*)");i(t,{parseFontDeclaration:function(e,t){var i=e.match(y);if(i){var n=i[1],s=i[3],r=i[4],a=i[5],l=i[6];n&&(t.fontStyle=n),s&&(t.fontWeight=isNaN(parseFloat(s))?s:parseFloat(s)),r&&(t.fontSize=o(r)),l&&(t.fontFamily=l),a&&(t.lineHeight="normal"===a?1:a)}},getGradientDefs:function(e){var t,i=p(e,["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"]),n=0,s={};for(n=i.length;n--;)(t=i[n]).getAttribute("xlink:href")&&C(e,t),s[t.getAttribute("id")]=t;return s},parseAttributes:function(e,n,r){if(e){var a,g,p,f={};"undefined"===typeof r&&(r=e.getAttribute("svgUid")),e.parentNode&&t.svgValidParentsRegEx.test(e.parentNode.nodeName)&&(f=t.parseAttributes(e.parentNode,n,r));var _=n.reduce((function(t,i){return(a=e.getAttribute(i))&&(t[i]=a),t}),{}),v=i(function(e,i){var n={};for(var s in t.cssRules[i])if(m(e,s.split(" ")))for(var o in t.cssRules[i][s])n[o]=t.cssRules[i][s][o];return n}(e,r),t.parseStyleAttribute(e));_=i(_,v),v[h]&&e.setAttribute(h,v[h]),g=p=f.fontSize||t.Text.DEFAULT_SVG_FONT_SIZE,_[d]&&(_[d]=g=o(_[d],p));var b,C,y={};for(var w in _)C=u(b=c(w),_[w],f,g),y[b]=C;y&&y.font&&t.parseFontDeclaration(y.font,y);var S=i(f,y);return t.svgValidParentsRegEx.test(e.nodeName)?S:function(e){for(var i in l)if("undefined"!==typeof e[l[i]]&&""!==e[i]){if("undefined"===typeof e[i]){if(!t.Object.prototype[i])continue;e[i]=t.Object.prototype[i]}if(0!==e[i].indexOf("url(")){var n=new t.Color(e[i]);e[i]=n.setAlpha(s(n.getAlpha()*e[l[i]],2)).toRgba()}}return e}(S)}},parseElements:function(e,i,n,s,o){new t.ElementsParser(e,i,n,s,o).parse()},parseStyleAttribute:function(e){var t={},i=e.getAttribute("style");return i?("string"===typeof i?function(e,t){var i,n;e.replace(/;\s*$/,"").split(";").forEach((function(e){var s=e.split(":");i=s[0].trim().toLowerCase(),n=s[1].trim(),t[i]=n}))}(i,t):function(e,t){var i,n;for(var s in e)"undefined"!==typeof e[s]&&(i=s.toLowerCase(),n=e[s],t[i]=n)}(i,t),t):t},parsePointsAttribute:function(e){if(!e)return null;var t,i,n=[];for(t=0,i=(e=(e=e.replace(/,/g," ").trim()).split(/\s+/)).length;t<i;t+=2)n.push({x:parseFloat(e[t]),y:parseFloat(e[t+1])});return n},getCSSRules:function(e){var i,n,s=e.getElementsByTagName("style"),o={};for(i=0,n=s.length;i<n;i++){var r=s[i].textContent;""!==(r=r.replace(/\/\*[\s\S]*?\*\//g,"")).trim()&&r.split("}").filter((function(e){return e.trim()})).forEach((function(e){var s=e.split("{"),r={},a=s[1].trim().split(";").filter((function(e){return e.trim()}));for(i=0,n=a.length;i<n;i++){var l=a[i].split(":"),d=l[0].trim(),h=l[1].trim();r[d]=h}(e=s[0].trim()).split(",").forEach((function(e){""!==(e=e.replace(/^svg/i,"").trim())&&(o[e]?t.util.object.extend(o[e],r):o[e]=t.util.object.clone(r))}))}))}return o},loadSVGFromURL:function(e,i,n,s){e=e.replace(/^\n\s*/,"").trim(),new t.util.request(e,{method:"get",onComplete:function(e){var o=e.responseXML;if(!o||!o.documentElement)return i&&i(null),!1;t.parseSVGDocument(o.documentElement,(function(e,t,n,s){i&&i(e,t,n,s)}),n,s)}})},loadSVGFromString:function(e,i,n,s){var o=(new t.window.DOMParser).parseFromString(e.trim(),"text/xml");t.parseSVGDocument(o.documentElement,(function(e,t,n,s){i(e,t,n,s)}),n,s)}})}(t),s.ElementsParser=function(e,t,i,n,s,o){this.elements=e,this.callback=t,this.options=i,this.reviver=n,this.svgUid=i&&i.svgUid||0,this.parsingOptions=s,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=o},(n=s.ElementsParser.prototype).parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},n.createObjects=function(){var e=this;this.elements.forEach((function(t,i){t.setAttribute("svgUid",e.svgUid),e.createObject(t,i)}))},n.findTag=function(e){return s[s.util.string.capitalize(e.tagName.replace("svg:",""))]},n.createObject=function(e,t){var i=this.findTag(e);if(i&&i.fromElement)try{i.fromElement(e,this.createCallback(t,e),this.options)}catch(n){s.log(n)}else this.checkIfDone()},n.createCallback=function(e,t){var i=this;return function(n){var o;i.resolveGradient(n,t,"fill"),i.resolveGradient(n,t,"stroke"),n instanceof s.Image&&n._originalElement&&(o=n.parsePreserveAspectRatioAttribute(t)),n._removeTransformMatrix(o),i.resolveClipPath(n,t),i.reviver&&i.reviver(t,n),i.instances[e]=n,i.checkIfDone()}},n.extractPropertyDefinition=function(e,t,i){var n=e[t],o=this.regexUrl;if(o.test(n)){o.lastIndex=0;var r=o.exec(n)[1];return o.lastIndex=0,s[i][this.svgUid][r]}},n.resolveGradient=function(e,t,i){var n=this.extractPropertyDefinition(e,i,"gradientDefs");if(n){var o=t.getAttribute(i+"-opacity"),r=s.Gradient.fromElement(n,e,o,this.options);e.set(i,r)}},n.createClipPathCallback=function(e,t){return function(e){e._removeTransformMatrix(),e.fillRule=e.clipRule,t.push(e)}},n.resolveClipPath=function(e,t){var i,n,o,r,a=this.extractPropertyDefinition(e,"clipPath","clipPaths");if(a){o=[],n=s.util.invertTransform(e.calcTransformMatrix());for(var l=a[0].parentNode,d=t;d.parentNode&&d.getAttribute("clip-path")!==e.clipPath;)d=d.parentNode;d.parentNode.appendChild(l);for(var h=0;h<a.length;h++)i=a[h],this.findTag(i).fromElement(i,this.createClipPathCallback(e,o),this.options);a=1===o.length?o[0]:new s.Group(o),r=s.util.multiplyTransformMatrices(n,a.calcTransformMatrix()),a.clipPath&&this.resolveClipPath(a,d);var c=s.util.qrDecompose(r);a.flipX=!1,a.flipY=!1,a.set("scaleX",c.scaleX),a.set("scaleY",c.scaleY),a.angle=c.angle,a.skewX=c.skewX,a.skewY=0,a.setPositionByOrigin({x:c.translateX,y:c.translateY},"center","center"),e.clipPath=a}else delete e.clipPath},n.checkIfDone=function(){0===--this.numElements&&(this.instances=this.instances.filter((function(e){return null!=e})),this.callback(this.instances,this.elements))},function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e,t){this.x=e,this.y=t}t.Point?t.warn("fabric.Point is already defined"):(t.Point=i,i.prototype={type:"point",constructor:i,add:function(e){return new i(this.x+e.x,this.y+e.y)},addEquals:function(e){return this.x+=e.x,this.y+=e.y,this},scalarAdd:function(e){return new i(this.x+e,this.y+e)},scalarAddEquals:function(e){return this.x+=e,this.y+=e,this},subtract:function(e){return new i(this.x-e.x,this.y-e.y)},subtractEquals:function(e){return this.x-=e.x,this.y-=e.y,this},scalarSubtract:function(e){return new i(this.x-e,this.y-e)},scalarSubtractEquals:function(e){return this.x-=e,this.y-=e,this},multiply:function(e){return new i(this.x*e,this.y*e)},multiplyEquals:function(e){return this.x*=e,this.y*=e,this},divide:function(e){return new i(this.x/e,this.y/e)},divideEquals:function(e){return this.x/=e,this.y/=e,this},eq:function(e){return this.x===e.x&&this.y===e.y},lt:function(e){return this.x<e.x&&this.y<e.y},lte:function(e){return this.x<=e.x&&this.y<=e.y},gt:function(e){return this.x>e.x&&this.y>e.y},gte:function(e){return this.x>=e.x&&this.y>=e.y},lerp:function(e,t){return"undefined"===typeof t&&(t=.5),t=Math.max(Math.min(1,t),0),new i(this.x+(e.x-this.x)*t,this.y+(e.y-this.y)*t)},distanceFrom:function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},midPointFrom:function(e){return this.lerp(e)},min:function(e){return new i(Math.min(this.x,e.x),Math.min(this.y,e.y))},max:function(e){return new i(Math.max(this.x,e.x),Math.max(this.y,e.y))},toString:function(){return this.x+","+this.y},setXY:function(e,t){return this.x=e,this.y=t,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setFromPoint:function(e){return this.x=e.x,this.y=e.y,this},swap:function(e){var t=this.x,i=this.y;this.x=e.x,this.y=e.y,e.x=t,e.y=i},clone:function(){return new i(this.x,this.y)}})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){this.status=e,this.points=[]}t.Intersection?t.warn("fabric.Intersection is already defined"):(t.Intersection=i,t.Intersection.prototype={constructor:i,appendPoint:function(e){return this.points.push(e),this},appendPoints:function(e){return this.points=this.points.concat(e),this}},t.Intersection.intersectLineLine=function(e,n,s,o){var r,a=(o.x-s.x)*(e.y-s.y)-(o.y-s.y)*(e.x-s.x),l=(n.x-e.x)*(e.y-s.y)-(n.y-e.y)*(e.x-s.x),d=(o.y-s.y)*(n.x-e.x)-(o.x-s.x)*(n.y-e.y);if(0!==d){var h=a/d,c=l/d;0<=h&&h<=1&&0<=c&&c<=1?(r=new i("Intersection")).appendPoint(new t.Point(e.x+h*(n.x-e.x),e.y+h*(n.y-e.y))):r=new i}else r=new i(0===a||0===l?"Coincident":"Parallel");return r},t.Intersection.intersectLinePolygon=function(e,t,n){var s,o,r,a,l=new i,d=n.length;for(a=0;a<d;a++)s=n[a],o=n[(a+1)%d],r=i.intersectLineLine(e,t,s,o),l.appendPoints(r.points);return l.points.length>0&&(l.status="Intersection"),l},t.Intersection.intersectPolygonPolygon=function(e,t){var n,s=new i,o=e.length;for(n=0;n<o;n++){var r=e[n],a=e[(n+1)%o],l=i.intersectLinePolygon(r,a,t);s.appendPoints(l.points)}return s.points.length>0&&(s.status="Intersection"),s},t.Intersection.intersectPolygonRectangle=function(e,n,s){var o=n.min(s),r=n.max(s),a=new t.Point(r.x,o.y),l=new t.Point(o.x,r.y),d=i.intersectLinePolygon(o,a,e),h=i.intersectLinePolygon(a,r,e),c=i.intersectLinePolygon(r,l,e),u=i.intersectLinePolygon(l,o,e),g=new i;return g.appendPoints(d.points),g.appendPoints(h.points),g.appendPoints(c.points),g.appendPoints(u.points),g.points.length>0&&(g.status="Intersection"),g})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){e?this._tryParsingColor(e):this.setSource([0,0,0,1])}function n(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}t.Color?t.warn("fabric.Color is already defined."):(t.Color=i,t.Color.prototype={_tryParsingColor:function(e){var t;e in i.colorNameMap&&(e=i.colorNameMap[e]),"transparent"===e&&(t=[255,255,255,0]),t||(t=i.sourceFromHex(e)),t||(t=i.sourceFromRgb(e)),t||(t=i.sourceFromHsl(e)),t||(t=[0,0,0,1]),t&&this.setSource(t)},_rgbToHsl:function(e,i,n){e/=255,i/=255,n/=255;var s,o,r,a=t.util.array.max([e,i,n]),l=t.util.array.min([e,i,n]);if(r=(a+l)/2,a===l)s=o=0;else{var d=a-l;switch(o=r>.5?d/(2-a-l):d/(a+l),a){case e:s=(i-n)/d+(i<n?6:0);break;case i:s=(n-e)/d+2;break;case n:s=(e-i)/d+4}s/=6}return[Math.round(360*s),Math.round(100*o),Math.round(100*r)]},getSource:function(){return this._source},setSource:function(e){this._source=e},toRgb:function(){var e=this.getSource();return"rgb("+e[0]+","+e[1]+","+e[2]+")"},toRgba:function(){var e=this.getSource();return"rgba("+e[0]+","+e[1]+","+e[2]+","+e[3]+")"},toHsl:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsl("+t[0]+","+t[1]+"%,"+t[2]+"%)"},toHsla:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsla("+t[0]+","+t[1]+"%,"+t[2]+"%,"+e[3]+")"},toHex:function(){var e,t,i,n=this.getSource();return e=1===(e=n[0].toString(16)).length?"0"+e:e,t=1===(t=n[1].toString(16)).length?"0"+t:t,i=1===(i=n[2].toString(16)).length?"0"+i:i,e.toUpperCase()+t.toUpperCase()+i.toUpperCase()},toHexa:function(){var e,t=this.getSource();return e=1===(e=(e=Math.round(255*t[3])).toString(16)).length?"0"+e:e,this.toHex()+e.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(e){var t=this.getSource();return t[3]=e,this.setSource(t),this},toGrayscale:function(){var e=this.getSource(),t=parseInt((.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),10),i=e[3];return this.setSource([t,t,t,i]),this},toBlackWhite:function(e){var t=this.getSource(),i=(.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),n=t[3];return e=e||127,i=Number(i)<Number(e)?0:255,this.setSource([i,i,i,n]),this},overlayWith:function(e){e instanceof i||(e=new i(e));var t,n=[],s=this.getAlpha(),o=this.getSource(),r=e.getSource();for(t=0;t<3;t++)n.push(Math.round(.5*o[t]+.5*r[t]));return n[3]=s,this.setSource(n),this}},t.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,t.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,t.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,t.Color.colorNameMap={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},t.Color.fromRgb=function(e){return i.fromSource(i.sourceFromRgb(e))},t.Color.sourceFromRgb=function(e){var t=e.match(i.reRGBa);if(t){var n=parseInt(t[1],10)/(/%$/.test(t[1])?100:1)*(/%$/.test(t[1])?255:1),s=parseInt(t[2],10)/(/%$/.test(t[2])?100:1)*(/%$/.test(t[2])?255:1),o=parseInt(t[3],10)/(/%$/.test(t[3])?100:1)*(/%$/.test(t[3])?255:1);return[parseInt(n,10),parseInt(s,10),parseInt(o,10),t[4]?parseFloat(t[4]):1]}},t.Color.fromRgba=i.fromRgb,t.Color.fromHsl=function(e){return i.fromSource(i.sourceFromHsl(e))},t.Color.sourceFromHsl=function(e){var t=e.match(i.reHSLa);if(t){var s,o,r,a=(parseFloat(t[1])%360+360)%360/360,l=parseFloat(t[2])/(/%$/.test(t[2])?100:1),d=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===l)s=o=r=d;else{var h=d<=.5?d*(l+1):d+l-d*l,c=2*d-h;s=n(c,h,a+1/3),o=n(c,h,a),r=n(c,h,a-1/3)}return[Math.round(255*s),Math.round(255*o),Math.round(255*r),t[4]?parseFloat(t[4]):1]}},t.Color.fromHsla=i.fromHsl,t.Color.fromHex=function(e){return i.fromSource(i.sourceFromHex(e))},t.Color.sourceFromHex=function(e){if(e.match(i.reHex)){var t=e.slice(e.indexOf("#")+1),n=3===t.length||4===t.length,s=8===t.length||4===t.length,o=n?t.charAt(0)+t.charAt(0):t.substring(0,2),r=n?t.charAt(1)+t.charAt(1):t.substring(2,4),a=n?t.charAt(2)+t.charAt(2):t.substring(4,6),l=s?n?t.charAt(3)+t.charAt(3):t.substring(6,8):"FF";return[parseInt(o,16),parseInt(r,16),parseInt(a,16),parseFloat((parseInt(l,16)/255).toFixed(2))]}},t.Color.fromSource=function(e){var t=new i;return t.setSource(e),t})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=["e","se","s","sw","w","nw","n","ne","e"],n=["ns","nesw","ew","nwse"],s={},o="left",r="top",a="right",l="bottom",d="center",h={top:l,bottom:r,left:a,right:o,center:d},c=t.util.radiansToDegrees,u=Math.sign||function(e){return(e>0)-(e<0)||+e};function g(e,t){var i=e.angle+c(Math.atan2(t.y,t.x))+360;return Math.round(i%360/45)}function p(e,i){var n=i.transform.target,s=n.canvas,o=t.util.object.clone(i);o.target=n,s&&s.fire("object:"+e,o),n.fire(e,i)}function m(e,t){var i=t.canvas,n=e[i.uniScaleKey];return i.uniformScaling&&!n||!i.uniformScaling&&n}function f(e){return e.originX===d&&e.originY===d}function _(e,t,i){var n=e.lockScalingX,s=e.lockScalingY;return!(!n||!s)||(!(t||!n&&!s||!i)||(!(!n||"x"!==t)||!(!s||"y"!==t)))}function v(e,t,i,n){return{e:e,transform:t,pointer:{x:i,y:n}}}function b(e){return function(t,i,n,s){var o=i.target,r=o.getCenterPoint(),a=o.translateToOriginPoint(r,i.originX,i.originY),l=e(t,i,n,s);return o.setPositionByOrigin(a,i.originX,i.originY),l}}function C(e,t){return function(i,n,s,o){var r=t(i,n,s,o);return r&&p(e,v(i,n,s,o)),r}}function y(e,i,n,s,o){var r=e.target,a=r.controls[e.corner],l=r.canvas.getZoom(),d=r.padding/l,h=r.toLocalPoint(new t.Point(s,o),i,n);return h.x>=d&&(h.x-=d),h.x<=-d&&(h.x+=d),h.y>=d&&(h.y-=d),h.y<=d&&(h.y+=d),h.x-=a.offsetX,h.y-=a.offsetY,h}function w(e){return e.flipX!==e.flipY}function S(e,t,i,n,s){if(0!==e[t]){var o=s/e._getTransformedDimensions()[n]*e[i];e.set(i,o)}}function k(e,t,i,n){var s,d=t.target,h=d._getTransformedDimensions(0,d.skewY),u=y(t,t.originX,t.originY,i,n),g=Math.abs(2*u.x)-h.x,p=d.skewX;g<2?s=0:(s=c(Math.atan2(g/d.scaleX,h.y/d.scaleY)),t.originX===o&&t.originY===l&&(s=-s),t.originX===a&&t.originY===r&&(s=-s),w(d)&&(s=-s));var m=p!==s;if(m){var f=d._getTransformedDimensions().y;d.set("skewX",s),S(d,"skewY","scaleY","y",f)}return m}function x(e,t,i,n){var s,d=t.target,h=d._getTransformedDimensions(d.skewX,0),u=y(t,t.originX,t.originY,i,n),g=Math.abs(2*u.y)-h.y,p=d.skewY;g<2?s=0:(s=c(Math.atan2(g/d.scaleY,h.x/d.scaleX)),t.originX===o&&t.originY===l&&(s=-s),t.originX===a&&t.originY===r&&(s=-s),w(d)&&(s=-s));var m=p!==s;if(m){var f=d._getTransformedDimensions().x;d.set("skewY",s),S(d,"skewX","scaleX","x",f)}return m}function L(e,t,i,n,s){s=s||{};var o,r,a,l,d,c,g=t.target,p=g.lockScalingX,v=g.lockScalingY,b=s.by,C=m(e,g),w=_(g,b,C),S=t.gestureScale;if(w)return!1;if(S)r=t.scaleX*S,a=t.scaleY*S;else{if(o=y(t,t.originX,t.originY,i,n),d="y"!==b?u(o.x):1,c="x"!==b?u(o.y):1,t.signX||(t.signX=d),t.signY||(t.signY=c),g.lockScalingFlip&&(t.signX!==d||t.signY!==c))return!1;if(l=g._getTransformedDimensions(),C&&!b){var k=Math.abs(o.x)+Math.abs(o.y),x=t.original,L=k/(Math.abs(l.x*x.scaleX/g.scaleX)+Math.abs(l.y*x.scaleY/g.scaleY));r=x.scaleX*L,a=x.scaleY*L}else r=Math.abs(o.x*g.scaleX/l.x),a=Math.abs(o.y*g.scaleY/l.y);f(t)&&(r*=2,a*=2),t.signX!==d&&"y"!==b&&(t.originX=h[t.originX],r*=-1,t.signX=d),t.signY!==c&&"x"!==b&&(t.originY=h[t.originY],a*=-1,t.signY=c)}var D=g.scaleX,E=g.scaleY;return b?("x"===b&&g.set("scaleX",r),"y"===b&&g.set("scaleY",a)):(!p&&g.set("scaleX",r),!v&&g.set("scaleY",a)),D!==g.scaleX||E!==g.scaleY}s.scaleCursorStyleHandler=function(e,t,n){var s=m(e,n),o="";if(0!==t.x&&0===t.y?o="x":0===t.x&&0!==t.y&&(o="y"),_(n,o,s))return"not-allowed";var r=g(n,t);return i[r]+"-resize"},s.skewCursorStyleHandler=function(e,t,i){var s="not-allowed";if(0!==t.x&&i.lockSkewingY)return s;if(0!==t.y&&i.lockSkewingX)return s;var o=g(i,t)%4;return n[o]+"-resize"},s.scaleSkewCursorStyleHandler=function(e,t,i){return e[i.canvas.altActionKey]?s.skewCursorStyleHandler(e,t,i):s.scaleCursorStyleHandler(e,t,i)},s.rotationWithSnapping=C("rotating",b((function(e,t,i,n){var s=t,o=s.target,r=o.translateToOriginPoint(o.getCenterPoint(),s.originX,s.originY);if(o.lockRotation)return!1;var a,l=Math.atan2(s.ey-r.y,s.ex-r.x),d=Math.atan2(n-r.y,i-r.x),h=c(d-l+s.theta);if(o.snapAngle>0){var u=o.snapAngle,g=o.snapThreshold||u,p=Math.ceil(h/u)*u,m=Math.floor(h/u)*u;Math.abs(h-m)<g?h=m:Math.abs(h-p)<g&&(h=p)}return h<0&&(h=360+h),h%=360,a=o.angle!==h,o.angle=h,a}))),s.scalingEqually=C("scaling",b((function(e,t,i,n){return L(e,t,i,n)}))),s.scalingX=C("scaling",b((function(e,t,i,n){return L(e,t,i,n,{by:"x"})}))),s.scalingY=C("scaling",b((function(e,t,i,n){return L(e,t,i,n,{by:"y"})}))),s.scalingYOrSkewingX=function(e,t,i,n){return e[t.target.canvas.altActionKey]?s.skewHandlerX(e,t,i,n):s.scalingY(e,t,i,n)},s.scalingXOrSkewingY=function(e,t,i,n){return e[t.target.canvas.altActionKey]?s.skewHandlerY(e,t,i,n):s.scalingX(e,t,i,n)},s.changeWidth=C("resizing",b((function(e,t,i,n){var s=t.target,o=y(t,t.originX,t.originY,i,n),r=s.strokeWidth/(s.strokeUniform?s.scaleX:1),a=f(t)?2:1,l=s.width,d=Math.abs(o.x*a/s.scaleX)-r;return s.set("width",Math.max(d,0)),l!==d}))),s.skewHandlerX=function(e,t,i,n){var s,l=t.target,h=l.skewX,c=t.originY;return!l.lockSkewingX&&(0===h?s=y(t,d,d,i,n).x>0?o:a:(h>0&&(s=c===r?o:a),h<0&&(s=c===r?a:o),w(l)&&(s=s===o?a:o)),t.originX=s,C("skewing",b(k))(e,t,i,n))},s.skewHandlerY=function(e,t,i,n){var s,a=t.target,h=a.skewY,c=t.originX;return!a.lockSkewingY&&(0===h?s=y(t,d,d,i,n).y>0?r:l:(h>0&&(s=c===o?r:l),h<0&&(s=c===o?l:r),w(a)&&(s=s===r?l:r)),t.originY=s,C("skewing",b(x))(e,t,i,n))},s.dragHandler=function(e,t,i,n){var s=t.target,o=i-t.offsetX,r=n-t.offsetY,a=!s.get("lockMovementX")&&s.left!==o,l=!s.get("lockMovementY")&&s.top!==r;return a&&s.set("left",o),l&&s.set("top",r),(a||l)&&p("moving",v(e,t,i,n)),a||l},s.scaleOrSkewActionName=function(e,t,i){var n=e[i.canvas.altActionKey];return 0===t.x?n?"skewX":"scaleY":0===t.y?n?"skewY":"scaleX":void 0},s.rotationStyleHandler=function(e,t,i){return i.lockRotation?"not-allowed":t.cursorStyle},s.fireEvent=p,s.wrapWithFixedAnchor=b,s.wrapWithFireEvent=C,s.getLocalPoint=y,t.controlsUtils=s}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians,n=t.controlsUtils;n.renderCircleControl=function(e,t,i,n,s){n=n||{};var o,r=this.sizeX||n.cornerSize||s.cornerSize,a=this.sizeY||n.cornerSize||s.cornerSize,l="undefined"!==typeof n.transparentCorners?n.transparentCorners:s.transparentCorners,d=l?"stroke":"fill",h=!l&&(n.cornerStrokeColor||s.cornerStrokeColor),c=t,u=i;e.save(),e.fillStyle=n.cornerColor||s.cornerColor,e.strokeStyle=n.cornerStrokeColor||s.cornerStrokeColor,r>a?(o=r,e.scale(1,a/r),u=i*r/a):a>r?(o=a,e.scale(r/a,1),c=t*a/r):o=r,e.lineWidth=1,e.beginPath(),e.arc(c,u,o/2,0,2*Math.PI,!1),e[d](),h&&e.stroke(),e.restore()},n.renderSquareControl=function(e,t,n,s,o){s=s||{};var r=this.sizeX||s.cornerSize||o.cornerSize,a=this.sizeY||s.cornerSize||o.cornerSize,l="undefined"!==typeof s.transparentCorners?s.transparentCorners:o.transparentCorners,d=l?"stroke":"fill",h=!l&&(s.cornerStrokeColor||o.cornerStrokeColor),c=r/2,u=a/2;e.save(),e.fillStyle=s.cornerColor||o.cornerColor,e.strokeStyle=s.cornerStrokeColor||o.cornerStrokeColor,e.lineWidth=1,e.translate(t,n),e.rotate(i(o.angle)),e[d+"Rect"](-c,-u,r,a),h&&e.strokeRect(-c,-u,r,a),e.restore()}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Control=function(e){for(var t in e)this[t]=e[t]},t.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(e,t){return t.cursorStyle},getActionName:function(e,t){return t.actionName},getVisibility:function(e,t){var i=e._controlsVisibility;return i&&"undefined"!==typeof i[t]?i[t]:this.visible},setVisibility:function(e){this.visible=e},positionHandler:function(e,i){return t.util.transformPoint({x:this.x*e.x+this.offsetX,y:this.y*e.y+this.offsetY},i)},calcCornerCoords:function(e,i,n,s,o){var r,a,l,d,h=o?this.touchSizeX:this.sizeX,c=o?this.touchSizeY:this.sizeY;if(h&&c&&h!==c){var u=Math.atan2(c,h),g=Math.sqrt(h*h+c*c)/2,p=u-t.util.degreesToRadians(e),m=Math.PI/2-u-t.util.degreesToRadians(e);r=g*t.util.cos(p),a=g*t.util.sin(p),l=g*t.util.cos(m),d=g*t.util.sin(m)}else{g=.7071067812*(h&&c?h:i);p=t.util.degreesToRadians(45-e);r=l=g*t.util.cos(p),a=d=g*t.util.sin(p)}return{tl:{x:n-d,y:s-l},tr:{x:n+r,y:s-a},bl:{x:n-r,y:s+a},br:{x:n+d,y:s+l}}},render:function(e,i,n,s,o){if("circle"===((s=s||{}).cornerStyle||o.cornerStyle))t.controlsUtils.renderCircleControl.call(this,e,i,n,s,o);else t.controlsUtils.renderSquareControl.call(this,e,i,n,s,o)}}}(t),function(){function e(e,t){var i,n,o,r,a=e.getAttribute("style"),l=e.getAttribute("offset")||0;if(l=(l=parseFloat(l)/(/%$/.test(l)?100:1))<0?0:l>1?1:l,a){var d=a.split(/\s*;\s*/);for(""===d[d.length-1]&&d.pop(),r=d.length;r--;){var h=d[r].split(/\s*:\s*/),c=h[0].trim(),u=h[1].trim();"stop-color"===c?i=u:"stop-opacity"===c&&(o=u)}}return i||(i=e.getAttribute("stop-color")||"rgb(0,0,0)"),o||(o=e.getAttribute("stop-opacity")),n=(i=new s.Color(i)).getAlpha(),o=isNaN(parseFloat(o))?1:parseFloat(o),o*=n*t,{offset:l,color:i.toRgb(),opacity:o}}var t=s.util.object.clone;s.Gradient=s.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(e){e||(e={}),e.coords||(e.coords={});var t,i=this;Object.keys(e).forEach((function(t){i[t]=e[t]})),this.id?this.id+="_"+s.Object.__uid++:this.id=s.Object.__uid++,t={x1:e.coords.x1||0,y1:e.coords.y1||0,x2:e.coords.x2||0,y2:e.coords.y2||0},"radial"===this.type&&(t.r1=e.coords.r1||0,t.r2=e.coords.r2||0),this.coords=t,this.colorStops=e.colorStops.slice()},addColorStop:function(e){for(var t in e){var i=new s.Color(e[t]);this.colorStops.push({offset:parseFloat(t),color:i.toRgb(),opacity:i.getAlpha()})}return this},toObject:function(e){var t={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return s.util.populateWithProperties(this,t,e),t},toSVG:function(e,i){var n,o,r,a,l=t(this.coords,!0),d=(i=i||{},t(this.colorStops,!0)),h=l.r1>l.r2,c=this.gradientTransform?this.gradientTransform.concat():s.iMatrix.concat(),u=-this.offsetX,g=-this.offsetY,p=!!i.additionalTransform,m="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox";if(d.sort((function(e,t){return e.offset-t.offset})),"objectBoundingBox"===m?(u/=e.width,g/=e.height):(u+=e.width/2,g+=e.height/2),"path"===e.type&&"percentage"!==this.gradientUnits&&(u-=e.pathOffset.x,g-=e.pathOffset.y),c[4]-=u,c[5]-=g,a='id="SVGID_'+this.id+'" gradientUnits="'+m+'"',a+=' gradientTransform="'+(p?i.additionalTransform+" ":"")+s.util.matrixToSVG(c)+'" ',"linear"===this.type?r=["<linearGradient ",a,' x1="',l.x1,'" y1="',l.y1,'" x2="',l.x2,'" y2="',l.y2,'">\n']:"radial"===this.type&&(r=["<radialGradient ",a,' cx="',h?l.x1:l.x2,'" cy="',h?l.y1:l.y2,'" r="',h?l.r1:l.r2,'" fx="',h?l.x2:l.x1,'" fy="',h?l.y2:l.y1,'">\n']),"radial"===this.type){if(h)for((d=d.concat()).reverse(),n=0,o=d.length;n<o;n++)d[n].offset=1-d[n].offset;var f=Math.min(l.r1,l.r2);if(f>0){var _=f/Math.max(l.r1,l.r2);for(n=0,o=d.length;n<o;n++)d[n].offset+=_*(1-d[n].offset)}}for(n=0,o=d.length;n<o;n++){var v=d[n];r.push("<stop ",'offset="',100*v.offset+"%",'" style="stop-color:',v.color,"undefined"!==typeof v.opacity?";stop-opacity: "+v.opacity:";",'"/>\n')}return r.push("linear"===this.type?"</linearGradient>\n":"</radialGradient>\n"),r.join("")},toLive:function(e){var t,i,n,o=s.util.object.clone(this.coords);if(this.type){for("linear"===this.type?t=e.createLinearGradient(o.x1,o.y1,o.x2,o.y2):"radial"===this.type&&(t=e.createRadialGradient(o.x1,o.y1,o.r1,o.x2,o.y2,o.r2)),i=0,n=this.colorStops.length;i<n;i++){var r=this.colorStops[i].color,a=this.colorStops[i].opacity,l=this.colorStops[i].offset;"undefined"!==typeof a&&(r=new s.Color(r).setAlpha(a).toRgba()),t.addColorStop(l,r)}return t}}}),s.util.object.extend(s.Gradient,{fromElement:function(t,i,n,o){var r=parseFloat(n)/(/%$/.test(n)?100:1);r=r<0?0:r>1?1:r,isNaN(r)&&(r=1);var a,l,d,h,c=t.getElementsByTagName("stop"),u="userSpaceOnUse"===t.getAttribute("gradientUnits")?"pixels":"percentage",g=t.getAttribute("gradientTransform")||"",p=[],m=0,f=0;for("linearGradient"===t.nodeName||"LINEARGRADIENT"===t.nodeName?(a="linear",l=function(e){return{x1:e.getAttribute("x1")||0,y1:e.getAttribute("y1")||0,x2:e.getAttribute("x2")||"100%",y2:e.getAttribute("y2")||0}}(t)):(a="radial",l=function(e){return{x1:e.getAttribute("fx")||e.getAttribute("cx")||"50%",y1:e.getAttribute("fy")||e.getAttribute("cy")||"50%",r1:0,x2:e.getAttribute("cx")||"50%",y2:e.getAttribute("cy")||"50%",r2:e.getAttribute("r")||"50%"}}(t)),d=c.length;d--;)p.push(e(c[d],r));return h=s.parseTransformAttribute(g),function(e,t,i,n){var s,o;Object.keys(t).forEach((function(e){"Infinity"===(s=t[e])?o=1:"-Infinity"===s?o=0:(o=parseFloat(t[e],10),"string"===typeof s&&/^(\d+\.\d+)%|(\d+)%$/.test(s)&&(o*=.01,"pixels"===n&&("x1"!==e&&"x2"!==e&&"r2"!==e||(o*=i.viewBoxWidth||i.width),"y1"!==e&&"y2"!==e||(o*=i.viewBoxHeight||i.height)))),t[e]=o}))}(0,l,o,u),"pixels"===u&&(m=-i.left,f=-i.top),new s.Gradient({id:t.getAttribute("id"),type:a,coords:l,colorStops:p,gradientUnits:u,gradientTransform:h,offsetX:m,offsetY:f})}})}(),function(){"use strict";var e=s.util.toFixed;s.Pattern=s.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(e,t){if(e||(e={}),this.id=s.Object.__uid++,this.setOptions(e),!e.source||e.source&&"string"!==typeof e.source)t&&t(this);else{var i=this;this.source=s.util.createImage(),s.util.loadImage(e.source,(function(e,n){i.source=e,t&&t(i,n)}),null,this.crossOrigin)}},toObject:function(t){var i,n,o=s.Object.NUM_FRACTION_DIGITS;return"string"===typeof this.source.src?i=this.source.src:"object"===typeof this.source&&this.source.toDataURL&&(i=this.source.toDataURL()),n={type:"pattern",source:i,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:e(this.offsetX,o),offsetY:e(this.offsetY,o),patternTransform:this.patternTransform?this.patternTransform.concat():null},s.util.populateWithProperties(this,n,t),n},toSVG:function(e){var t="function"===typeof this.source?this.source():this.source,i=t.width/e.width,n=t.height/e.height,s=this.offsetX/e.width,o=this.offsetY/e.height,r="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(n=1,o&&(n+=Math.abs(o))),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(i=1,s&&(i+=Math.abs(s))),t.src?r=t.src:t.toDataURL&&(r=t.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+s+'" y="'+o+'" width="'+i+'" height="'+n+'">\n<image x="0" y="0" width="'+t.width+'" height="'+t.height+'" xlink:href="'+r+'"></image>\n</pattern>\n'},setOptions:function(e){for(var t in e)this[t]=e[t]},toLive:function(e){var t=this.source;if(!t)return"";if("undefined"!==typeof t.src){if(!t.complete)return"";if(0===t.naturalWidth||0===t.naturalHeight)return""}return e.createPattern(t,this.repeat)}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.toFixed;t.Shadow?t.warn("fabric.Shadow is already defined."):(t.Shadow=t.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(e){for(var i in"string"===typeof e&&(e=this._parseShadow(e)),e)this[i]=e[i];this.id=t.Object.__uid++},_parseShadow:function(e){var i=e.trim(),n=t.Shadow.reOffsetsAndBlur.exec(i)||[];return{color:(i.replace(t.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)").trim(),offsetX:parseFloat(n[1],10)||0,offsetY:parseFloat(n[2],10)||0,blur:parseFloat(n[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(e){var n=40,s=40,o=t.Object.NUM_FRACTION_DIGITS,r=t.util.rotateVector({x:this.offsetX,y:this.offsetY},t.util.degreesToRadians(-e.angle)),a=new t.Color(this.color);return e.width&&e.height&&(n=100*i((Math.abs(r.x)+this.blur)/e.width,o)+20,s=100*i((Math.abs(r.y)+this.blur)/e.height,o)+20),e.flipX&&(r.x*=-1),e.flipY&&(r.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+s+'%" height="'+(100+2*s)+'%" x="-'+n+'%" width="'+(100+2*n)+'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="'+i(this.blur?this.blur/2:0,o)+'"></feGaussianBlur>\n\t<feOffset dx="'+i(r.x,o)+'" dy="'+i(r.y,o)+'" result="oBlur" ></feOffset>\n\t<feFlood flood-color="'+a.toRgb()+'" flood-opacity="'+a.getAlpha()+'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode></feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"></feMergeNode>\n\t</feMerge>\n</filter>\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var e={},i=t.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach((function(t){this[t]!==i[t]&&(e[t]=this[t])}),this),e}}),t.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/)}(t),function(){"use strict";if(s.StaticCanvas)s.warn("fabric.StaticCanvas is already defined.");else{var e=s.util.object.extend,t=s.util.getElementOffset,i=s.util.removeFromArray,n=s.util.toFixed,o=s.util.transformPoint,r=s.util.invertTransform,a=s.util.getNodeCanvas,l=s.util.createCanvasElement,d=new Error("Could not initialize `canvas` element");s.StaticCanvas=s.util.createClass(s.CommonMethods,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:s.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(e,t){var i=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(e),this._initOptions(t),this.interactive||this._initRetinaScaling(),t.overlayImage&&this.setOverlayImage(t.overlayImage,i),t.backgroundImage&&this.setBackgroundImage(t.backgroundImage,i),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor,i),t.overlayColor&&this.setOverlayColor(t.overlayColor,i),this.calcOffset()},_isRetinaScaling:function(){return s.devicePixelRatio>1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?Math.max(1,s.devicePixelRatio):1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var e=s.devicePixelRatio;this.__initRetinaScaling(e,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(e,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(e,t,i){t.setAttribute("width",this.width*e),t.setAttribute("height",this.height*e),i.scale(e,e)},calcOffset:function(){return this._offset=t(this.lowerCanvasEl),this},setOverlayImage:function(e,t,i){return this.__setBgOverlayImage("overlayImage",e,t,i)},setBackgroundImage:function(e,t,i){return this.__setBgOverlayImage("backgroundImage",e,t,i)},setOverlayColor:function(e,t){return this.__setBgOverlayColor("overlayColor",e,t)},setBackgroundColor:function(e,t){return this.__setBgOverlayColor("backgroundColor",e,t)},__setBgOverlayImage:function(e,t,i,n){return"string"===typeof t?s.util.loadImage(t,(function(t,o){if(t){var r=new s.Image(t,n);this[e]=r,r.canvas=this}i&&i(t,o)}),this,n&&n.crossOrigin):(n&&t.setOptions(n),this[e]=t,t&&(t.canvas=this),i&&i(t,!1)),this},__setBgOverlayColor:function(e,t,i){return this[e]=t,this._initGradient(t,e),this._initPattern(t,e,i),this},_createCanvasElement:function(){var e=l();if(!e)throw d;if(e.style||(e.style={}),"undefined"===typeof e.getContext)throw d;return e},_initOptions:function(e){var t=this.lowerCanvasEl;this._setOptions(e),this.width=this.width||parseInt(t.width,10)||0,this.height=this.height||parseInt(t.height,10)||0,this.lowerCanvasEl.style&&(t.width=this.width,t.height=this.height,t.style.width=this.width+"px",t.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(e){e&&e.getContext?this.lowerCanvasEl=e:this.lowerCanvasEl=s.util.getById(e)||this._createCanvasElement(),s.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(e,t){return this.setDimensions({width:e},t)},setHeight:function(e,t){return this.setDimensions({height:e},t)},setDimensions:function(e,t){var i;for(var n in t=t||{},e)i=e[n],t.cssOnly||(this._setBackstoreDimension(n,e[n]),i+="px",this.hasLostContext=!0),t.backstoreOnly||this._setCssDimension(n,i);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),t.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(e,t){return this.lowerCanvasEl[e]=t,this.upperCanvasEl&&(this.upperCanvasEl[e]=t),this.cacheCanvasEl&&(this.cacheCanvasEl[e]=t),this[e]=t,this},_setCssDimension:function(e,t){return this.lowerCanvasEl.style[e]=t,this.upperCanvasEl&&(this.upperCanvasEl.style[e]=t),this.wrapperEl&&(this.wrapperEl.style[e]=t),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(e){var t,i,n,s=this._activeObject,o=this.backgroundImage,r=this.overlayImage;for(this.viewportTransform=e,i=0,n=this._objects.length;i<n;i++)(t=this._objects[i]).group||t.setCoords(!0);return s&&s.setCoords(),o&&o.setCoords(!0),r&&r.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(e,t){var i=e,n=this.viewportTransform.slice(0);e=o(e,r(this.viewportTransform)),n[0]=t,n[3]=t;var s=o(e,n);return n[4]+=i.x-s.x,n[5]+=i.y-s.y,this.setViewportTransform(n)},setZoom:function(e){return this.zoomToPoint(new s.Point(0,0),e),this},absolutePan:function(e){var t=this.viewportTransform.slice(0);return t[4]=-e.x,t[5]=-e.y,this.setViewportTransform(t)},relativePan:function(e){return this.absolutePan(new s.Point(-e.x-this.viewportTransform[4],-e.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(e){this.stateful&&e.setupState(),e._set("canvas",this),e.setCoords(),this.fire("object:added",{target:e}),e.fire("added")},_onObjectRemoved:function(e){this.fire("object:removed",{target:e}),e.fire("removed"),delete e.canvas},clearContext:function(e){return e.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var e=this.contextContainer;return this.renderCanvas(e,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=s.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var e={},t=this.width,i=this.height,n=r(this.viewportTransform);return e.tl=o({x:0,y:0},n),e.br=o({x:t,y:i},n),e.tr=new s.Point(e.br.x,e.tl.y),e.bl=new s.Point(e.tl.x,e.br.y),this.vptCoords=e,e},cancelRequestedRender:function(){this.isRendering&&(s.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(e,t){var i=this.viewportTransform,n=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(e),s.util.setImageSmoothing(e,this.imageSmoothingEnabled),this.fire("before:render",{ctx:e}),this._renderBackground(e),e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this._renderObjects(e,t),e.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),n&&(n.canvas=this,n.shouldCache(),n._transformDone=!0,n.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(e)),this._renderOverlay(e),this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),this.fire("after:render",{ctx:e})},drawClipPathOnCanvas:function(e){var t=this.viewportTransform,i=this.clipPath;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e.globalCompositeOperation="destination-in",i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},_renderObjects:function(e,t){var i,n;for(i=0,n=t.length;i<n;++i)t[i]&&t[i].render(e)},_renderBackgroundOrOverlay:function(e,t){var i=this[t+"Color"],n=this[t+"Image"],s=this.viewportTransform,o=this[t+"Vpt"];if(i||n){if(i){e.save(),e.beginPath(),e.moveTo(0,0),e.lineTo(this.width,0),e.lineTo(this.width,this.height),e.lineTo(0,this.height),e.closePath(),e.fillStyle=i.toLive?i.toLive(e,this):i,o&&e.transform(s[0],s[1],s[2],s[3],s[4],s[5]),e.transform(1,0,0,1,i.offsetX||0,i.offsetY||0);var r=i.gradientTransform||i.patternTransform;r&&e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),e.fill(),e.restore()}n&&(e.save(),o&&e.transform(s[0],s[1],s[2],s[3],s[4],s[5]),n.render(e),e.restore())}},_renderBackground:function(e){this._renderBackgroundOrOverlay(e,"background")},_renderOverlay:function(e){this._renderBackgroundOrOverlay(e,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},getCenterPoint:function(){return new s.Point(this.width/2,this.height/2)},centerObjectH:function(e){return this._centerObject(e,new s.Point(this.getCenterPoint().x,e.getCenterPoint().y))},centerObjectV:function(e){return this._centerObject(e,new s.Point(e.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(e){var t=this.getCenterPoint();return this._centerObject(e,t)},viewportCenterObject:function(e){var t=this.getVpCenter();return this._centerObject(e,t)},viewportCenterObjectH:function(e){var t=this.getVpCenter();return this._centerObject(e,new s.Point(t.x,e.getCenterPoint().y)),this},viewportCenterObjectV:function(e){var t=this.getVpCenter();return this._centerObject(e,new s.Point(e.getCenterPoint().x,t.y))},getVpCenter:function(){var e=this.getCenterPoint(),t=r(this.viewportTransform);return o(e,t)},_centerObject:function(e,t){return e.setPositionByOrigin(t,"center","center"),e.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(e){return this.toDatalessObject(e)},toObject:function(e){return this._toObjectMethod("toObject",e)},toDatalessObject:function(e){return this._toObjectMethod("toDatalessObject",e)},_toObjectMethod:function(t,i){var n=this.clipPath,o={version:s.version,objects:this._toObjects(t,i)};return n&&!n.excludeFromExport&&(o.clipPath=this._toObject(this.clipPath,t,i)),e(o,this.__serializeBgOverlay(t,i)),s.util.populateWithProperties(this,o,i),o},_toObjects:function(e,t){return this._objects.filter((function(e){return!e.excludeFromExport})).map((function(i){return this._toObject(i,e,t)}),this)},_toObject:function(e,t,i){var n;this.includeDefaultValues||(n=e.includeDefaultValues,e.includeDefaultValues=!1);var s=e[t](i);return this.includeDefaultValues||(e.includeDefaultValues=n),s},__serializeBgOverlay:function(e,t){var i={},n=this.backgroundImage,s=this.overlayImage,o=this.backgroundColor,r=this.overlayColor;return o&&o.toObject?o.excludeFromExport||(i.background=o.toObject(t)):o&&(i.background=o),r&&r.toObject?r.excludeFromExport||(i.overlay=r.toObject(t)):r&&(i.overlay=r),n&&!n.excludeFromExport&&(i.backgroundImage=this._toObject(n,e,t)),s&&!s.excludeFromExport&&(i.overlayImage=this._toObject(s,e,t)),i},svgViewportTransformation:!0,toSVG:function(e,t){e||(e={}),e.reviver=t;var i=[];return this._setSVGPreamble(i,e),this._setSVGHeader(i,e),this.clipPath&&i.push('<g clip-path="url(#'+this.clipPath.clipPathId+')" >\n'),this._setSVGBgOverlayColor(i,"background"),this._setSVGBgOverlayImage(i,"backgroundImage",t),this._setSVGObjects(i,t),this.clipPath&&i.push("</g>\n"),this._setSVGBgOverlayColor(i,"overlay"),this._setSVGBgOverlayImage(i,"overlayImage",t),i.push("</svg>"),i.join("")},_setSVGPreamble:function(e,t){t.suppressPreamble||e.push('<?xml version="1.0" encoding="',t.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')},_setSVGHeader:function(e,t){var i,o=t.width||this.width,r=t.height||this.height,a='viewBox="0 0 '+this.width+" "+this.height+'" ',l=s.Object.NUM_FRACTION_DIGITS;t.viewBox?a='viewBox="'+t.viewBox.x+" "+t.viewBox.y+" "+t.viewBox.width+" "+t.viewBox.height+'" ':this.svgViewportTransformation&&(i=this.viewportTransform,a='viewBox="'+n(-i[4]/i[0],l)+" "+n(-i[5]/i[3],l)+" "+n(this.width/i[0],l)+" "+n(this.height/i[3],l)+'" '),e.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',o,'" ','height="',r,'" ',a,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",s.version,"</desc>\n","<defs>\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(t),"</defs>\n")},createSVGClipPathMarkup:function(e){var t=this.clipPath;return t?(t.clipPathId="CLIPPATH_"+s.Object.__uid++,'<clipPath id="'+t.clipPathId+'" >\n'+this.clipPath.toClipPathSVG(e.reviver)+"</clipPath>\n"):""},createSVGRefElementsMarkup:function(){var e=this;return["background","overlay"].map((function(t){var i=e[t+"Color"];if(i&&i.toLive){var n=e[t+"Vpt"],o=e.viewportTransform,r={width:e.width/(n?o[0]:1),height:e.height/(n?o[3]:1)};return i.toSVG(r,{additionalTransform:n?s.util.matrixToSVG(o):""})}})).join("")},createSVGFontFacesMarkup:function(){var e,t,i,n,o,r,a,l,d="",h={},c=s.fontPaths,u=[];for(this._objects.forEach((function e(t){u.push(t),t._objects&&t._objects.forEach(e)})),a=0,l=u.length;a<l;a++)if(t=(e=u[a]).fontFamily,-1!==e.type.indexOf("text")&&!h[t]&&c[t]&&(h[t]=!0,e.styles))for(o in i=e.styles)for(r in n=i[o])!h[t=n[r].fontFamily]&&c[t]&&(h[t]=!0);for(var g in h)d+=["\t\t@font-face {\n","\t\t\tfont-family: '",g,"';\n","\t\t\tsrc: url('",c[g],"');\n","\t\t}\n"].join("");return d&&(d=['\t<style type="text/css">',"<![CDATA[\n",d,"]]>","</style>\n"].join("")),d},_setSVGObjects:function(e,t){var i,n,s,o=this._objects;for(n=0,s=o.length;n<s;n++)(i=o[n]).excludeFromExport||this._setSVGObject(e,i,t)},_setSVGObject:function(e,t,i){e.push(t.toSVG(i))},_setSVGBgOverlayImage:function(e,t,i){this[t]&&!this[t].excludeFromExport&&this[t].toSVG&&e.push(this[t].toSVG(i))},_setSVGBgOverlayColor:function(e,t){var i=this[t+"Color"],n=this.viewportTransform,o=this.width,r=this.height;if(i)if(i.toLive){var a=i.repeat,l=s.util.invertTransform(n),d=this[t+"Vpt"]?s.util.matrixToSVG(l):"";e.push('<rect transform="'+d+" translate(",o/2,",",r/2,')"',' x="',i.offsetX-o/2,'" y="',i.offsetY-r/2,'" ','width="',"repeat-y"===a||"no-repeat"===a?i.source.width:o,'" height="',"repeat-x"===a||"no-repeat"===a?i.source.height:r,'" fill="url(#SVGID_'+i.id+')"',"></rect>\n")}else e.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',i,'"',"></rect>\n")},sendToBack:function(e){if(!e)return this;var t,n,s,o=this._activeObject;if(e===o&&"activeSelection"===e.type)for(t=(s=o._objects).length;t--;)n=s[t],i(this._objects,n),this._objects.unshift(n);else i(this._objects,e),this._objects.unshift(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(e){if(!e)return this;var t,n,s,o=this._activeObject;if(e===o&&"activeSelection"===e.type)for(s=o._objects,t=0;t<s.length;t++)n=s[t],i(this._objects,n),this._objects.push(n);else i(this._objects,e),this._objects.push(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(e,t){if(!e)return this;var n,s,o,r,a,l=this._activeObject,d=0;if(e===l&&"activeSelection"===e.type)for(a=l._objects,n=0;n<a.length;n++)s=a[n],(o=this._objects.indexOf(s))>0+d&&(r=o-1,i(this._objects,s),this._objects.splice(r,0,s)),d++;else 0!==(o=this._objects.indexOf(e))&&(r=this._findNewLowerIndex(e,o,t),i(this._objects,e),this._objects.splice(r,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(e,t,i){var n,s;if(i)for(n=t,s=t-1;s>=0;--s){if(e.intersectsWithObject(this._objects[s])||e.isContainedWithinObject(this._objects[s])||this._objects[s].isContainedWithinObject(e)){n=s;break}}else n=t-1;return n},bringForward:function(e,t){if(!e)return this;var n,s,o,r,a,l=this._activeObject,d=0;if(e===l&&"activeSelection"===e.type)for(n=(a=l._objects).length;n--;)s=a[n],(o=this._objects.indexOf(s))<this._objects.length-1-d&&(r=o+1,i(this._objects,s),this._objects.splice(r,0,s)),d++;else(o=this._objects.indexOf(e))!==this._objects.length-1&&(r=this._findNewUpperIndex(e,o,t),i(this._objects,e),this._objects.splice(r,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(e,t,i){var n,s,o;if(i)for(n=t,s=t+1,o=this._objects.length;s<o;++s){if(e.intersectsWithObject(this._objects[s])||e.isContainedWithinObject(this._objects[s])||this._objects[s].isContainedWithinObject(e)){n=s;break}}else n=t+1;return n},moveTo:function(e,t){return i(this._objects,e),this._objects.splice(t,0,e),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(s.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),s.util.setStyle(this.lowerCanvasEl,this._originalCanvasStyle),delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),s.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),e(s.StaticCanvas.prototype,s.Observable),e(s.StaticCanvas.prototype,s.Collection),e(s.StaticCanvas.prototype,s.DataURLExporter),e(s.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(e){var t=l();if(!t||!t.getContext)return null;var i=t.getContext("2d");return i&&"setLineDash"===e?"undefined"!==typeof i.setLineDash:null}}),s.StaticCanvas.prototype.toJSON=s.StaticCanvas.prototype.toObject,s.isLikelyNode&&(s.StaticCanvas.prototype.createPNGStream=function(){var e=a(this.lowerCanvasEl);return e&&e.createPNGStream()},s.StaticCanvas.prototype.createJPEGStream=function(e){var t=a(this.lowerCanvasEl);return t&&t.createJPEGStream(e)})}}(),s.BaseBrush=s.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(e){e.strokeStyle=this.color,e.lineWidth=this.width,e.lineCap=this.strokeLineCap,e.miterLimit=this.strokeMiterLimit,e.lineJoin=this.strokeLineJoin,e.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(e){var t=this.canvas.viewportTransform;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5])},_setShadow:function(){if(this.shadow){var e=this.canvas,t=this.shadow,i=e.contextTop,n=e.getZoom();e&&e._isRetinaScaling()&&(n*=s.devicePixelRatio),i.shadowColor=t.color,i.shadowBlur=t.blur*n,i.shadowOffsetX=t.offsetX*n,i.shadowOffsetY=t.offsetY*n}},needsFullRender:function(){return new s.Color(this.color).getAlpha()<1||!!this.shadow},_resetShadow:function(){var e=this.canvas.contextTop;e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0},_isOutSideCanvas:function(e){return e.x<0||e.x>this.canvas.getWidth()||e.y<0||e.y>this.canvas.getHeight()}}),s.PencilBrush=s.util.createClass(s.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(e){this.canvas=e,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(e,t,i){var n=t.midPointFrom(i);return e.quadraticCurveTo(t.x,t.y,n.x,n.y),n},onMouseDown:function(e,t){this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],this._prepareForDrawing(e),this._captureDrawingPath(e),this._render())},onMouseMove:function(e,t){if(this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(e))&&this._captureDrawingPath(e)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var i=this._points,n=i.length,s=this.canvas.contextTop;this._saveAndTransform(s),this.oldEnd&&(s.beginPath(),s.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(s,i[n-2],i[n-1],!0),s.stroke(),s.restore()}},onMouseUp:function(e){return!this.canvas._isMainEvent(e.e)||(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(e){var t=new s.Point(e.x,e.y);this._reset(),this._addPoint(t),this.canvas.contextTop.moveTo(t.x,t.y)},_addPoint:function(e){return!(this._points.length>1&&e.eq(this._points[this._points.length-1]))&&(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(e),!0)},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(e){var t=new s.Point(e.x,e.y);return this._addPoint(t)},_render:function(e){var t,i,n=this._points[0],o=this._points[1];if(e=e||this.canvas.contextTop,this._saveAndTransform(e),e.beginPath(),2===this._points.length&&n.x===o.x&&n.y===o.y){var r=this.width/1e3;n=new s.Point(n.x,n.y),o=new s.Point(o.x,o.y),n.x-=r,o.x+=r}for(e.moveTo(n.x,n.y),t=1,i=this._points.length;t<i;t++)this._drawSegment(e,n,o),n=this._points[t],o=this._points[t+1];e.lineTo(n.x,n.y),e.stroke(),e.restore()},convertPointsToSVGPath:function(e){var t=this.width/1e3;return s.util.getSmoothPathFromPoints(e,t)},_isEmptySVGPath:function(e){return"M 0 0 Q 0 0 0 0 L 0 0"===s.util.joinPath(e)},createPath:function(e){var t=new s.Path(e,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,t.shadow=new s.Shadow(this.shadow)),t},decimatePoints:function(e,t){if(e.length<=2)return e;var i,n=this.canvas.getZoom(),s=Math.pow(t/n,2),o=e.length-1,r=e[0],a=[r];for(i=1;i<o-1;i++)Math.pow(r.x-e[i].x,2)+Math.pow(r.y-e[i].y,2)>=s&&(r=e[i],a.push(r));return a.push(e[o]),a},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var e=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(e))this.canvas.requestRenderAll();else{var t=this.createPath(e);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:t}),this.canvas.add(t),this.canvas.requestRenderAll(),t.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:t})}}}),s.CircleBrush=s.util.createClass(s.BaseBrush,{width:10,initialize:function(e){this.canvas=e,this.points=[]},drawDot:function(e){var t=this.addPoint(e),i=this.canvas.contextTop;this._saveAndTransform(i),this.dot(i,t),i.restore()},dot:function(e,t){e.fillStyle=t.fill,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!1),e.closePath(),e.fill()},onMouseDown:function(e){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(e)},_render:function(){var e,t,i=this.canvas.contextTop,n=this.points;for(this._saveAndTransform(i),e=0,t=n.length;e<t;e++)this.dot(i,n[e]);i.restore()},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(e),this._render()):this.drawDot(e))},onMouseUp:function(){var e,t,i=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var n=[];for(e=0,t=this.points.length;e<t;e++){var o=this.points[e],r=new s.Circle({radius:o.radius,left:o.x,top:o.y,originX:"center",originY:"center",fill:o.fill});this.shadow&&(r.shadow=new s.Shadow(this.shadow)),n.push(r)}var a=new s.Group(n);a.canvas=this.canvas,this.canvas.fire("before:path:created",{path:a}),this.canvas.add(a),this.canvas.fire("path:created",{path:a}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=i,this.canvas.requestRenderAll()},addPoint:function(e){var t=new s.Point(e.x,e.y),i=s.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,n=new s.Color(this.color).setAlpha(s.util.getRandomInt(0,100)/100).toRgba();return t.radius=i,t.fill=n,this.points.push(t),t}}),s.SprayBrush=s.util.createClass(s.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(e){this.canvas=e,this.sprayChunks=[]},onMouseDown:function(e){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(e),this.render(this.sprayChunkPoints)},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.addSprayChunk(e),this.render(this.sprayChunkPoints))},onMouseUp:function(){var e=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var t=[],i=0,n=this.sprayChunks.length;i<n;i++)for(var o=this.sprayChunks[i],r=0,a=o.length;r<a;r++){var l=new s.Rect({width:o[r].width,height:o[r].width,left:o[r].x+1,top:o[r].y+1,originX:"center",originY:"center",fill:this.color});t.push(l)}this.optimizeOverlapping&&(t=this._getOptimizedRects(t));var d=new s.Group(t);this.shadow&&d.set("shadow",new s.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:d}),this.canvas.add(d),this.canvas.fire("path:created",{path:d}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=e,this.canvas.requestRenderAll()},_getOptimizedRects:function(e){var t,i,n,s={};for(i=0,n=e.length;i<n;i++)s[t=e[i].left+""+e[i].top]||(s[t]=e[i]);var o=[];for(t in s)o.push(s[t]);return o},render:function(e){var t,i,n=this.canvas.contextTop;for(n.fillStyle=this.color,this._saveAndTransform(n),t=0,i=e.length;t<i;t++){var s=e[t];"undefined"!==typeof s.opacity&&(n.globalAlpha=s.opacity),n.fillRect(s.x,s.y,s.width,s.width)}n.restore()},_render:function(){var e,t,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),e=0,t=this.sprayChunks.length;e<t;e++)this.render(this.sprayChunks[e]);i.restore()},addSprayChunk:function(e){this.sprayChunkPoints=[];var t,i,n,o,r=this.width/2;for(o=0;o<this.density;o++){t=s.util.getRandomInt(e.x-r,e.x+r),i=s.util.getRandomInt(e.y-r,e.y+r),n=this.dotWidthVariance?s.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var a=new s.Point(t,i);a.width=n,this.randomOpacity&&(a.opacity=s.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(a)}this.sprayChunks.push(this.sprayChunkPoints)}}),s.PatternBrush=s.util.createClass(s.PencilBrush,{getPatternSrc:function(){var e=s.util.createCanvasElement(),t=e.getContext("2d");return e.width=e.height=25,t.fillStyle=this.color,t.beginPath(),t.arc(10,10,10,0,2*Math.PI,!1),t.closePath(),t.fill(),e},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(e){return e.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(e){this.callSuper("_setBrushStyles",e),e.strokeStyle=this.getPattern(e)},createPath:function(e){var t=this.callSuper("createPath",e),i=t._getLeftTopCoords().scalarAdd(t.strokeWidth/2);return t.stroke=new s.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-i.x,offsetY:-i.y}),t}}),function(){var e=s.util.getPointer,t=s.util.degreesToRadians,i=s.util.isTouchEvent;for(var n in s.Canvas=s.util.createClass(s.StaticCanvas,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],enablePointerEvents:!1,_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=s.PencilBrush&&new s.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var e,t,i,n=this.getActiveObjects();if(n.length>0&&!this.preserveObjectStacking){t=[],i=[];for(var s=0,o=this._objects.length;s<o;s++)e=this._objects[s],-1===n.indexOf(e)?t.push(e):i.push(e);n.length>1&&(this._activeObject._objects=i),t.push.apply(t,i)}else t=this._objects;return t},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1);var e=this.contextContainer;return this.renderCanvas(e,this._chooseObjectsToRender()),this},renderTopLayer:function(e){e.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(e),this.contextTopDirty=!0),e.restore()},renderTop:function(){var e=this.contextTop;return this.clearContext(e),this.renderTopLayer(e),this.fire("after:render"),this},_normalizePointer:function(e,t){var i=e.calcTransformMatrix(),n=s.util.invertTransform(i),o=this.restorePointerVpt(t);return s.util.transformPoint(o,n)},isTargetTransparent:function(e,t,i){if(e.shouldCache()&&e._cacheCanvas&&e!==this._activeObject){var n=this._normalizePointer(e,{x:t,y:i}),o=Math.max(e.cacheTranslationX+n.x*e.zoomX,0),r=Math.max(e.cacheTranslationY+n.y*e.zoomY,0);return s.util.isTransparent(e._cacheContext,Math.round(o),Math.round(r),this.targetFindTolerance)}var a=this.contextCache,l=e.selectionBackgroundColor,d=this.viewportTransform;return e.selectionBackgroundColor="",this.clearContext(a),a.save(),a.transform(d[0],d[1],d[2],d[3],d[4],d[5]),e.render(a),a.restore(),e.selectionBackgroundColor=l,s.util.isTransparent(a,t,i,this.targetFindTolerance)},_isSelectionKeyPressed:function(e){return Array.isArray(this.selectionKey)?!!this.selectionKey.find((function(t){return!0===e[t]})):e[this.selectionKey]},_shouldClearSelection:function(e,t){var i=this.getActiveObjects(),n=this._activeObject;return!t||t&&n&&i.length>1&&-1===i.indexOf(t)&&n!==t&&!this._isSelectionKeyPressed(e)||t&&!t.evented||t&&!t.selectable&&n&&n!==t},_shouldCenterTransform:function(e,t,i){var n;if(e)return"scale"===t||"scaleX"===t||"scaleY"===t||"resizing"===t?n=this.centeredScaling||e.centeredScaling:"rotate"===t&&(n=this.centeredRotation||e.centeredRotation),n?!i:i},_getOriginFromCorner:function(e,t){var i={x:e.originX,y:e.originY};return"ml"===t||"tl"===t||"bl"===t?i.x="right":"mr"!==t&&"tr"!==t&&"br"!==t||(i.x="left"),"tl"===t||"mt"===t||"tr"===t?i.y="bottom":"bl"!==t&&"mb"!==t&&"br"!==t||(i.y="top"),i},_getActionFromCorner:function(e,t,i,n){if(!t||!e)return"drag";var s=n.controls[t];return s.getActionName(i,s,n)},_setupCurrentTransform:function(e,i,n){if(i){var o=this.getPointer(e),r=i.__corner,a=i.controls[r],l=n&&r?a.getActionHandler(e,i,a):s.controlsUtils.dragHandler,d=this._getActionFromCorner(n,r,e,i),h=this._getOriginFromCorner(i,r),c=e[this.centeredKey],u={target:i,action:d,actionHandler:l,corner:r,scaleX:i.scaleX,scaleY:i.scaleY,skewX:i.skewX,skewY:i.skewY,offsetX:o.x-i.left,offsetY:o.y-i.top,originX:h.x,originY:h.y,ex:o.x,ey:o.y,lastX:o.x,lastY:o.y,theta:t(i.angle),width:i.width*i.scaleX,shiftKey:e.shiftKey,altKey:c,original:s.util.saveObjectTransform(i)};this._shouldCenterTransform(i,d,c)&&(u.originX="center",u.originY="center"),u.original.originX=h.x,u.original.originY=h.y,this._currentTransform=u,this._beforeTransform(e)}},setCursor:function(e){this.upperCanvasEl.style.cursor=e},_drawSelection:function(e){var t=this._groupSelector,i=new s.Point(t.ex,t.ey),n=s.util.transformPoint(i,this.viewportTransform),o=new s.Point(t.ex+t.left,t.ey+t.top),r=s.util.transformPoint(o,this.viewportTransform),a=Math.min(n.x,r.x),l=Math.min(n.y,r.y),d=Math.max(n.x,r.x),h=Math.max(n.y,r.y),c=this.selectionLineWidth/2;this.selectionColor&&(e.fillStyle=this.selectionColor,e.fillRect(a,l,d-a,h-l)),this.selectionLineWidth&&this.selectionBorderColor&&(e.lineWidth=this.selectionLineWidth,e.strokeStyle=this.selectionBorderColor,a+=c,l+=c,d-=c,h-=c,s.Object.prototype._setLineDash.call(this,e,this.selectionDashArray),e.strokeRect(a,l,d-a,h-l))},findTarget:function(e,t){if(!this.skipTargetFind){var n,s,o=this.getPointer(e,!0),r=this._activeObject,a=this.getActiveObjects(),l=i(e),d=a.length>1&&!t||1===a.length;if(this.targets=[],d&&r._findTargetCorner(o,l))return r;if(a.length>1&&!t&&r===this._searchPossibleTargets([r],o))return r;if(1===a.length&&r===this._searchPossibleTargets([r],o)){if(!this.preserveObjectStacking)return r;n=r,s=this.targets,this.targets=[]}var h=this._searchPossibleTargets(this._objects,o);return e[this.altSelectionKey]&&h&&n&&h!==n&&(h=n,this.targets=s),h}},_checkTarget:function(e,t,i){if(t&&t.visible&&t.evented&&t.containsPoint(e)){if(!this.perPixelTargetFind&&!t.perPixelTargetFind||t.isEditing)return!0;if(!this.isTargetTransparent(t,i.x,i.y))return!0}},_searchPossibleTargets:function(e,t){for(var i,n,o=e.length;o--;){var r=e[o],a=r.group?this._normalizePointer(r.group,t):t;if(this._checkTarget(a,r,t)){(i=e[o]).subTargetCheck&&i instanceof s.Group&&(n=this._searchPossibleTargets(i._objects,t))&&this.targets.push(n);break}}return i},restorePointerVpt:function(e){return s.util.transformPoint(e,s.util.invertTransform(this.viewportTransform))},getPointer:function(t,i){if(this._absolutePointer&&!i)return this._absolutePointer;if(this._pointer&&i)return this._pointer;var n,s=e(t),o=this.upperCanvasEl,r=o.getBoundingClientRect(),a=r.width||0,l=r.height||0;a&&l||("top"in r&&"bottom"in r&&(l=Math.abs(r.top-r.bottom)),"right"in r&&"left"in r&&(a=Math.abs(r.right-r.left))),this.calcOffset(),s.x=s.x-this._offset.left,s.y=s.y-this._offset.top,i||(s=this.restorePointerVpt(s));var d=this.getRetinaScaling();return 1!==d&&(s.x/=d,s.y/=d),n=0===a||0===l?{width:1,height:1}:{width:o.width/a,height:o.height/l},{x:s.x*n.width,y:s.y*n.height}},_createUpperCanvas:function(){var e=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),t=this.lowerCanvasEl,i=this.upperCanvasEl;i?i.className="":(i=this._createCanvasElement(),this.upperCanvasEl=i),s.util.addClass(i,"upper-canvas "+e),this.wrapperEl.appendChild(i),this._copyCanvasStyle(t,i),this._applyCanvasStyle(i),this.contextTop=i.getContext("2d")},getTopContext:function(){return this.contextTop},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=s.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),s.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),s.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(e){var t=this.width||e.width,i=this.height||e.height;s.util.setStyle(e,{position:"absolute",width:t+"px",height:i+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),e.width=t,e.height=i,s.util.makeElementUnselectable(e)},_copyCanvasStyle:function(e,t){t.style.cssText=e.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var e=this._activeObject;return e?"activeSelection"===e.type&&e._objects?e._objects.slice(0):[e]:[]},_onObjectRemoved:function(e){e===this._activeObject&&(this.fire("before:selection:cleared",{target:e}),this._discardActiveObject(),this.fire("selection:cleared",{target:e}),e.fire("deselected")),e===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",e)},_fireSelectionEvents:function(e,t){var i=!1,n=this.getActiveObjects(),s=[],o=[];e.forEach((function(e){-1===n.indexOf(e)&&(i=!0,e.fire("deselected",{e:t,target:e}),o.push(e))})),n.forEach((function(n){-1===e.indexOf(n)&&(i=!0,n.fire("selected",{e:t,target:n}),s.push(n))})),e.length>0&&n.length>0?i&&this.fire("selection:updated",{e:t,selected:s,deselected:o}):n.length>0?this.fire("selection:created",{e:t,selected:s}):e.length>0&&this.fire("selection:cleared",{e:t,deselected:o})},setActiveObject:function(e,t){var i=this.getActiveObjects();return this._setActiveObject(e,t),this._fireSelectionEvents(i,t),this},_setActiveObject:function(e,t){return this._activeObject!==e&&(!!this._discardActiveObject(t,e)&&(!e.onSelect({e:t})&&(this._activeObject=e,!0)))},_discardActiveObject:function(e,t){var i=this._activeObject;if(i){if(i.onDeselect({e:e,object:t}))return!1;this._activeObject=null}return!0},discardActiveObject:function(e){var t=this.getActiveObjects(),i=this.getActiveObject();return t.length&&this.fire("before:selection:cleared",{target:i,e:e}),this._discardActiveObject(e),this._fireSelectionEvents(t,e),this},dispose:function(){var e=this.wrapperEl;return this.removeListeners(),e.removeChild(this.upperCanvasEl),e.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(e){s.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this)),e.parentNode&&e.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,s.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(e){var t=this._activeObject;t&&t._renderControls(e)},_toObject:function(e,t,i){var n=this._realizeGroupTransformOnObject(e),s=this.callSuper("_toObject",e,t,i);return this._unwindGroupTransformOnObject(e,n),s},_realizeGroupTransformOnObject:function(e){if(e.group&&"activeSelection"===e.group.type&&this._activeObject===e.group){var t={};return["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"].forEach((function(i){t[i]=e[i]})),s.util.addTransformToObject(e,this._activeObject.calcOwnMatrix()),t}return null},_unwindGroupTransformOnObject:function(e,t){t&&e.set(t)},_setSVGObject:function(e,t,i){var n=this._realizeGroupTransformOnObject(t);this.callSuper("_setSVGObject",e,t,i),this._unwindGroupTransformOnObject(t,n)},setViewportTransform:function(e){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),s.StaticCanvas.prototype.setViewportTransform.call(this,e)}}),s.StaticCanvas)"prototype"!==n&&(s.Canvas[n]=s.StaticCanvas[n])}(),function(){var e=s.util.addListener,t=s.util.removeListener,i={passive:!1};function n(e,t){return e.button&&e.button===t-1}s.util.object.extend(s.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(e,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(e,t){var n=this.upperCanvasEl,o=this._getEventPrefix();e(s.window,"resize",this._onResize),e(n,o+"down",this._onMouseDown),e(n,o+"move",this._onMouseMove,i),e(n,o+"out",this._onMouseOut),e(n,o+"enter",this._onMouseEnter),e(n,"wheel",this._onMouseWheel),e(n,"contextmenu",this._onContextMenu),e(n,"dblclick",this._onDoubleClick),e(n,"dragover",this._onDragOver),e(n,"dragenter",this._onDragEnter),e(n,"dragleave",this._onDragLeave),e(n,"drop",this._onDrop),this.enablePointerEvents||e(n,"touchstart",this._onTouchStart,i),"undefined"!==typeof eventjs&&t in eventjs&&(eventjs[t](n,"gesture",this._onGesture),eventjs[t](n,"drag",this._onDrag),eventjs[t](n,"orientation",this._onOrientationChange),eventjs[t](n,"shake",this._onShake),eventjs[t](n,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(t,"remove");var e=this._getEventPrefix();t(s.document,e+"up",this._onMouseUp),t(s.document,"touchend",this._onTouchEnd,i),t(s.document,e+"move",this._onMouseMove,i),t(s.document,"touchmove",this._onMouseMove,i)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._onDrop.bind(this),this.eventsBound=!0)},_onGesture:function(e,t){this.__onTransformGesture&&this.__onTransformGesture(e,t)},_onDrag:function(e,t){this.__onDrag&&this.__onDrag(e,t)},_onMouseWheel:function(e){this.__onMouseWheel(e)},_onMouseOut:function(e){var t=this._hoveredTarget;this.fire("mouse:out",{target:t,e:e}),this._hoveredTarget=null,t&&t.fire("mouseout",{e:e});var i=this;this._hoveredTargets.forEach((function(n){i.fire("mouse:out",{target:t,e:e}),n&&t.fire("mouseout",{e:e})})),this._hoveredTargets=[]},_onMouseEnter:function(e){this._currentTransform||this.findTarget(e)||(this.fire("mouse:over",{target:null,e:e}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(e,t){this.__onOrientationChange&&this.__onOrientationChange(e,t)},_onShake:function(e,t){this.__onShake&&this.__onShake(e,t)},_onLongPress:function(e,t){this.__onLongPress&&this.__onLongPress(e,t)},_onDragOver:function(e){e.preventDefault();var t=this._simpleEventHandler("dragover",e);this._fireEnterLeaveEvents(t,e)},_onDrop:function(e){return this._simpleEventHandler("drop:before",e),this._simpleEventHandler("drop",e)},_onContextMenu:function(e){return this.stopContextMenu&&(e.stopPropagation(),e.preventDefault()),!1},_onDoubleClick:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"dblclick"),this._resetTransformEventData(e)},getPointerId:function(e){var t=e.changedTouches;return t?t[0]&&t[0].identifier:this.enablePointerEvents?e.pointerId:-1},_isMainEvent:function(e){return!0===e.isPrimary||!1!==e.isPrimary&&("touchend"===e.type&&0===e.touches.length||(!e.changedTouches||e.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(n){n.preventDefault(),null===this.mainTouchId&&(this.mainTouchId=this.getPointerId(n)),this.__onMouseDown(n),this._resetTransformEventData();var o=this.upperCanvasEl,r=this._getEventPrefix();e(s.document,"touchend",this._onTouchEnd,i),e(s.document,"touchmove",this._onMouseMove,i),t(o,r+"down",this._onMouseDown)},_onMouseDown:function(n){this.__onMouseDown(n),this._resetTransformEventData();var o=this.upperCanvasEl,r=this._getEventPrefix();t(o,r+"move",this._onMouseMove,i),e(s.document,r+"up",this._onMouseUp),e(s.document,r+"move",this._onMouseMove,i)},_onTouchEnd:function(n){if(!(n.touches.length>0)){this.__onMouseUp(n),this._resetTransformEventData(),this.mainTouchId=null;var o=this._getEventPrefix();t(s.document,"touchend",this._onTouchEnd,i),t(s.document,"touchmove",this._onMouseMove,i);var r=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){e(r.upperCanvasEl,o+"down",r._onMouseDown),r._willAddMouseDown=0}),400)}},_onMouseUp:function(n){this.__onMouseUp(n),this._resetTransformEventData();var o=this.upperCanvasEl,r=this._getEventPrefix();this._isMainEvent(n)&&(t(s.document,r+"up",this._onMouseUp),t(s.document,r+"move",this._onMouseMove,i),e(o,r+"move",this._onMouseMove,i))},_onMouseMove:function(e){!this.allowTouchScrolling&&e.preventDefault&&e.preventDefault(),this.__onMouseMove(e)},_onResize:function(){this.calcOffset()},_shouldRender:function(e){var t=this._activeObject;return!!(!!t!==!!e||t&&e&&t!==e)||(t&&t.isEditing,!1)},__onMouseUp:function(e){var t,i=this._currentTransform,o=this._groupSelector,r=!1,a=!o||0===o.left&&0===o.top;if(this._cacheTransformEventData(e),t=this._target,this._handleEvent(e,"up:before"),n(e,3))this.fireRightClick&&this._handleEvent(e,"up",3,a);else{if(n(e,2))return this.fireMiddleClick&&this._handleEvent(e,"up",2,a),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(e);else if(this._isMainEvent(e)){if(i&&(this._finalizeCurrentTransform(e),r=i.actionPerformed),!a){var l=t===this._activeObject;this._maybeGroupObjects(e),r||(r=this._shouldRender(t)||!l&&t===this._activeObject)}var d,h;if(t){if(d=t._findTargetCorner(this.getPointer(e,!0),s.util.isTouchEvent(e)),t.selectable&&t!==this._activeObject&&"up"===t.activeOn)this.setActiveObject(t,e),r=!0;else{var c=t.controls[d],u=c&&c.getMouseUpHandler(e,t,c);u&&u(e,i,(h=this.getPointer(e)).x,h.y)}t.isMoving=!1}if(i&&(i.target!==t||i.corner!==d)){var g=i.target&&i.target.controls[i.corner],p=g&&g.getMouseUpHandler(e,t,c);h=h||this.getPointer(e),p&&p(e,i,h.x,h.y)}this._setCursorFromEvent(e,t),this._handleEvent(e,"up",1,a),this._groupSelector=null,this._currentTransform=null,t&&(t.__corner=0),r?this.requestRenderAll():a||this.renderTop()}}},_simpleEventHandler:function(e,t){var i=this.findTarget(t),n=this.targets,s={e:t,target:i,subTargets:n};if(this.fire(e,s),i&&i.fire(e,s),!n)return i;for(var o=0;o<n.length;o++)n[o].fire(e,s);return i},_handleEvent:function(e,t,i,n){var s=this._target,o=this.targets||[],r={e:e,target:s,subTargets:o,button:i||1,isClick:n||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};"up"===t&&(r.currentTarget=this.findTarget(e),r.currentSubTargets=this.targets),this.fire("mouse:"+t,r),s&&s.fire("mouse"+t,r);for(var a=0;a<o.length;a++)o[a].fire("mouse"+t,r)},_finalizeCurrentTransform:function(e){var t=this._currentTransform,i=t.target,n={e:e,target:i,transform:t,action:t.action};i._scaling&&(i._scaling=!1),i.setCoords(),(t.actionPerformed||this.stateful&&i.hasStateChanged())&&this._fire("modified",n)},_onMouseDownInDrawingMode:function(e){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(e).requestRenderAll();var t=this.getPointer(e);this.freeDrawingBrush.onMouseDown(t,{e:e,pointer:t}),this._handleEvent(e,"down")},_onMouseMoveInDrawingMode:function(e){if(this._isCurrentlyDrawing){var t=this.getPointer(e);this.freeDrawingBrush.onMouseMove(t,{e:e,pointer:t})}this.setCursor(this.freeDrawingCursor),this._handleEvent(e,"move")},_onMouseUpInDrawingMode:function(e){var t=this.getPointer(e);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:e,pointer:t}),this._handleEvent(e,"up")},__onMouseDown:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"down:before");var t=this._target;if(n(e,3))this.fireRightClick&&this._handleEvent(e,"down",3);else if(n(e,2))this.fireMiddleClick&&this._handleEvent(e,"down",2);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(e);else if(this._isMainEvent(e)&&!this._currentTransform){var i=this._pointer;this._previousPointer=i;var o=this._shouldRender(t),r=this._shouldGroup(e,t);if(this._shouldClearSelection(e,t)?this.discardActiveObject(e):r&&(this._handleGrouping(e,t),t=this._activeObject),!this.selection||t&&(t.selectable||t.isEditing||t===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),t){var a=t===this._activeObject;t.selectable&&"down"===t.activeOn&&this.setActiveObject(t,e);var l=t._findTargetCorner(this.getPointer(e,!0),s.util.isTouchEvent(e));if(t.__corner=l,t===this._activeObject&&(l||!r)){this._setupCurrentTransform(e,t,a);var d=t.controls[l],h=(i=this.getPointer(e),d&&d.getMouseDownHandler(e,t,d));h&&h(e,this._currentTransform,i.x,i.y)}}this._handleEvent(e,"down"),(o||r)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(e){this._resetTransformEventData(),this._pointer=this.getPointer(e,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(e)||null},_beforeTransform:function(e){var t=this._currentTransform;this.stateful&&t.target.saveState(),this.fire("before:transform",{e:e,transform:t})},__onMouseMove:function(e){var t,i;if(this._handleEvent(e,"move:before"),this._cacheTransformEventData(e),this.isDrawingMode)this._onMouseMoveInDrawingMode(e);else if(this._isMainEvent(e)){var n=this._groupSelector;n?(i=this._absolutePointer,n.left=i.x-n.ex,n.top=i.y-n.ey,this.renderTop()):this._currentTransform?this._transformObject(e):(t=this.findTarget(e)||null,this._setCursorFromEvent(e,t),this._fireOverOutEvents(t,e)),this._handleEvent(e,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(e,t){var i=this._hoveredTarget,n=this._hoveredTargets,s=this.targets,o=Math.max(n.length,s.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var r=0;r<o;r++)this.fireSyntheticInOutEvents(s[r],t,{oldTarget:n[r],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=e,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(e,t){var i=this._draggedoverTarget,n=this._hoveredTargets,s=this.targets,o=Math.max(n.length,s.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"dragleave",evtIn:"dragenter"});for(var r=0;r<o;r++)this.fireSyntheticInOutEvents(s[r],t,{oldTarget:n[r],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=e},fireSyntheticInOutEvents:function(e,t,i){var n,s,o,r=i.oldTarget,a=r!==e,l=i.canvasEvtIn,d=i.canvasEvtOut;a&&(n={e:t,target:e,previousTarget:r},s={e:t,target:r,nextTarget:e}),o=e&&a,r&&a&&(d&&this.fire(d,s),r.fire(i.evtOut,s)),o&&(l&&this.fire(l,n),e.fire(i.evtIn,n))},__onMouseWheel:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"wheel"),this._resetTransformEventData()},_transformObject:function(e){var t=this.getPointer(e),i=this._currentTransform;i.reset=!1,i.shiftKey=e.shiftKey,i.altKey=e[this.centeredKey],this._performTransformAction(e,i,t),i.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(e,t,i){var n=i.x,s=i.y,o=t.action,r=!1,a=t.actionHandler;a&&(r=a(e,t,n,s)),"drag"===o&&r&&(t.target.isMoving=!0,this.setCursor(t.target.moveCursor||this.moveCursor)),t.actionPerformed=t.actionPerformed||r},_fire:s.controlsUtils.fireEvent,_setCursorFromEvent:function(e,t){if(!t)return this.setCursor(this.defaultCursor),!1;var i=t.hoverCursor||this.hoverCursor,n=this._activeObject&&"activeSelection"===this._activeObject.type?this._activeObject:null,s=(!n||!n.contains(t))&&t._findTargetCorner(this.getPointer(e,!0));s?this.setCursor(this.getCornerCursor(s,t,e)):(t.subTargetCheck&&this.targets.concat().reverse().map((function(e){i=e.hoverCursor||i})),this.setCursor(i))},getCornerCursor:function(e,t,i){var n=t.controls[e];return n.cursorStyleHandler(i,n,t)}})}(),function(){var e=Math.min,t=Math.max;s.util.object.extend(s.Canvas.prototype,{_shouldGroup:function(e,t){var i=this._activeObject;return i&&this._isSelectionKeyPressed(e)&&t&&t.selectable&&this.selection&&(i!==t||"activeSelection"===i.type)&&!t.onSelect({e:e})},_handleGrouping:function(e,t){var i=this._activeObject;i.__corner||(t!==i||(t=this.findTarget(e,!0))&&t.selectable)&&(i&&"activeSelection"===i.type?this._updateActiveSelection(t,e):this._createActiveSelection(t,e))},_updateActiveSelection:function(e,t){var i=this._activeObject,n=i._objects.slice(0);i.contains(e)?(i.removeWithUpdate(e),this._hoveredTarget=e,this._hoveredTargets=this.targets.concat(),1===i.size()&&this._setActiveObject(i.item(0),t)):(i.addWithUpdate(e),this._hoveredTarget=i,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(n,t)},_createActiveSelection:function(e,t){var i=this.getActiveObjects(),n=this._createGroup(e);this._hoveredTarget=n,this._setActiveObject(n,t),this._fireSelectionEvents(i,t)},_createGroup:function(e){var t=this._objects,i=t.indexOf(this._activeObject)<t.indexOf(e)?[this._activeObject,e]:[e,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new s.ActiveSelection(i,{canvas:this})},_groupSelectedObjects:function(e){var t,i=this._collectObjects(e);1===i.length?this.setActiveObject(i[0],e):i.length>1&&(t=new s.ActiveSelection(i.reverse(),{canvas:this}),this.setActiveObject(t,e))},_collectObjects:function(i){for(var n,o=[],r=this._groupSelector.ex,a=this._groupSelector.ey,l=r+this._groupSelector.left,d=a+this._groupSelector.top,h=new s.Point(e(r,l),e(a,d)),c=new s.Point(t(r,l),t(a,d)),u=!this.selectionFullyContained,g=r===l&&a===d,p=this._objects.length;p--&&!((n=this._objects[p])&&n.selectable&&n.visible&&(u&&n.intersectsWithRect(h,c,!0)||n.isContainedWithinRect(h,c,!0)||u&&n.containsPoint(h,null,!0)||u&&n.containsPoint(c,null,!0))&&(o.push(n),g)););return o.length>1&&(o=o.filter((function(e){return!e.onSelect({e:i})}))),o},_maybeGroupObjects:function(e){this.selection&&this._groupSelector&&this._groupSelectedObjects(e),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),s.util.object.extend(s.StaticCanvas.prototype,{toDataURL:function(e){e||(e={});var t=e.format||"png",i=e.quality||1,n=(e.multiplier||1)*(e.enableRetinaScaling?this.getRetinaScaling():1),o=this.toCanvasElement(n,e);return s.util.toDataURL(o,t,i)},toCanvasElement:function(e,t){e=e||1;var i=((t=t||{}).width||this.width)*e,n=(t.height||this.height)*e,o=this.getZoom(),r=this.width,a=this.height,l=o*e,d=this.viewportTransform,h=(d[4]-(t.left||0))*e,c=(d[5]-(t.top||0))*e,u=this.interactive,g=[l,0,0,l,h,c],p=this.enableRetinaScaling,m=s.util.createCanvasElement(),f=this.contextTop;return m.width=i,m.height=n,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=g,this.width=i,this.height=n,this.calcViewportBoundaries(),this.renderCanvas(m.getContext("2d"),this._objects),this.viewportTransform=d,this.width=r,this.height=a,this.calcViewportBoundaries(),this.interactive=u,this.enableRetinaScaling=p,this.contextTop=f,m}}),s.util.object.extend(s.StaticCanvas.prototype,{loadFromJSON:function(e,t,i){if(e){var n="string"===typeof e?JSON.parse(e):s.util.object.clone(e),o=this,r=n.clipPath,a=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete n.clipPath,this._enlivenObjects(n.objects,(function(e){o.clear(),o._setBgOverlay(n,(function(){r?o._enlivenObjects([r],(function(i){o.clipPath=i[0],o.__setupCanvas.call(o,n,e,a,t)})):o.__setupCanvas.call(o,n,e,a,t)}))}),i),this}},__setupCanvas:function(e,t,i,n){var s=this;t.forEach((function(e,t){s.insertAt(e,t)})),this.renderOnAddRemove=i,delete e.objects,delete e.backgroundImage,delete e.overlayImage,delete e.background,delete e.overlay,this._setOptions(e),this.renderAll(),n&&n()},_setBgOverlay:function(e,t){var i={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(e.backgroundImage||e.overlayImage||e.background||e.overlay){var n=function(){i.backgroundImage&&i.overlayImage&&i.backgroundColor&&i.overlayColor&&t&&t()};this.__setBgOverlay("backgroundImage",e.backgroundImage,i,n),this.__setBgOverlay("overlayImage",e.overlayImage,i,n),this.__setBgOverlay("backgroundColor",e.background,i,n),this.__setBgOverlay("overlayColor",e.overlay,i,n)}else t&&t()},__setBgOverlay:function(e,t,i,n){var o=this;if(!t)return i[e]=!0,void(n&&n());"backgroundImage"===e||"overlayImage"===e?s.util.enlivenObjects([t],(function(t){o[e]=t[0],i[e]=!0,n&&n()})):this["set"+s.util.string.capitalize(e,!0)](t,(function(){i[e]=!0,n&&n()}))},_enlivenObjects:function(e,t,i){e&&0!==e.length?s.util.enlivenObjects(e,(function(e){t&&t(e)}),null,i):t&&t([])},_toDataURL:function(e,t){this.clone((function(i){t(i.toDataURL(e))}))},_toDataURLWithMultiplier:function(e,t,i){this.clone((function(n){i(n.toDataURLWithMultiplier(e,t))}))},clone:function(e,t){var i=JSON.stringify(this.toJSON(t));this.cloneWithoutData((function(t){t.loadFromJSON(i,(function(){e&&e(t)}))}))},cloneWithoutData:function(e){var t=s.util.createCanvasElement();t.width=this.width,t.height=this.height;var i=new s.Canvas(t);this.backgroundImage?(i.setBackgroundImage(this.backgroundImage.src,(function(){i.renderAll(),e&&e(i)})),i.backgroundImageOpacity=this.backgroundImageOpacity,i.backgroundImageStretch=this.backgroundImageStretch):e&&e(i)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.util.object.clone,s=t.util.toFixed,o=t.util.string.capitalize,r=t.util.degreesToRadians,a=!t.isLikelyNode;t.Object||(t.Object=t.util.createClass(t.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:a,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(e){e&&this.setOptions(e)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=t.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(e){var i=t.perfLimitSizeTotal,n=e.width,s=e.height,o=t.maxCacheSideLimit,r=t.minCacheSideLimit;if(n<=o&&s<=o&&n*s<=i)return n<r&&(e.width=r),s<r&&(e.height=r),e;var a=n/s,l=t.util.limitDimsByArea(a,i),d=t.util.capValue,h=d(r,l.x,o),c=d(r,l.y,o);return n>h&&(e.zoomX/=n/h,e.width=h,e.capped=!0),s>c&&(e.zoomY/=s/c,e.height=c,e.capped=!0),e},_getCacheCanvasDimensions:function(){var e=this.getTotalObjectScaling(),t=this._getTransformedDimensions(0,0),i=t.x*e.scaleX/this.scaleX,n=t.y*e.scaleY/this.scaleY;return{width:i+2,height:n+2,zoomX:e.scaleX,zoomY:e.scaleY,x:i,y:n}},_updateCacheCanvas:function(){var e=this.canvas;if(this.noScaleCache&&e&&e._currentTransform){var i=e._currentTransform.target,n=e._currentTransform.action;if(this===i&&n.slice&&"scale"===n.slice(0,5))return!1}var s,o,r=this._cacheCanvas,a=this._limitCacheSize(this._getCacheCanvasDimensions()),l=t.minCacheSideLimit,d=a.width,h=a.height,c=a.zoomX,u=a.zoomY,g=d!==this.cacheWidth||h!==this.cacheHeight,p=this.zoomX!==c||this.zoomY!==u,m=g||p,f=0,_=0,v=!1;if(g){var b=this._cacheCanvas.width,C=this._cacheCanvas.height,y=d>b||h>C;v=y||(d<.9*b||h<.9*C)&&b>l&&C>l,y&&!a.capped&&(d>l||h>l)&&(f=.1*d,_=.1*h)}return this instanceof t.Text&&this.path&&(m=!0,v=!0,f+=this.getHeightOfLine(0)*this.zoomX,_+=this.getHeightOfLine(0)*this.zoomY),!!m&&(v?(r.width=Math.ceil(d+f),r.height=Math.ceil(h+_)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,r.width,r.height)),s=a.x/2,o=a.y/2,this.cacheTranslationX=Math.round(r.width/2-s)+s,this.cacheTranslationY=Math.round(r.height/2-o)+o,this.cacheWidth=d,this.cacheHeight=h,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(c,u),this.zoomX=c,this.zoomY=u,!0)},setOptions:function(e){this._setOptions(e),this._initGradient(e.fill,"fill"),this._initGradient(e.stroke,"stroke"),this._initPattern(e.fill,"fill"),this._initPattern(e.stroke,"stroke")},transform:function(e){var t=this.group&&!this.group._transformDone||this.group&&this.canvas&&e===this.canvas.contextTop,i=this.calcTransformMatrix(!t);e.transform(i[0],i[1],i[2],i[3],i[4],i[5])},toObject:function(e){var i=t.Object.NUM_FRACTION_DIGITS,n={type:this.type,version:t.version,originX:this.originX,originY:this.originY,left:s(this.left,i),top:s(this.top,i),width:s(this.width,i),height:s(this.height,i),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:s(this.strokeWidth,i),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:s(this.strokeMiterLimit,i),scaleX:s(this.scaleX,i),scaleY:s(this.scaleY,i),angle:s(this.angle,i),flipX:this.flipX,flipY:this.flipY,opacity:s(this.opacity,i),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:s(this.skewX,i),skewY:s(this.skewY,i)};return this.clipPath&&!this.clipPath.excludeFromExport&&(n.clipPath=this.clipPath.toObject(e),n.clipPath.inverted=this.clipPath.inverted,n.clipPath.absolutePositioned=this.clipPath.absolutePositioned),t.util.populateWithProperties(this,n,e),this.includeDefaultValues||(n=this._removeDefaultValues(n)),n},toDatalessObject:function(e){return this.toObject(e)},_removeDefaultValues:function(e){var i=t.util.getKlass(e.type).prototype;return i.stateProperties.forEach((function(t){"left"!==t&&"top"!==t&&(e[t]===i[t]&&delete e[t],Array.isArray(e[t])&&Array.isArray(i[t])&&0===e[t].length&&0===i[t].length&&delete e[t])})),e},toString:function(){return"#<fabric."+o(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var e=t.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(e.scaleX),scaleY:Math.abs(e.scaleY)}},getTotalObjectScaling:function(){var e=this.getObjectScaling(),t=e.scaleX,i=e.scaleY;if(this.canvas){var n=this.canvas.getZoom(),s=this.canvas.getRetinaScaling();t*=n*s,i*=n*s}return{scaleX:t,scaleY:i}},getObjectOpacity:function(){var e=this.opacity;return this.group&&(e*=this.group.getObjectOpacity()),e},_set:function(e,i){var n="scaleX"===e||"scaleY"===e,s=this[e]!==i,o=!1;return n&&(i=this._constrainScale(i)),"scaleX"===e&&i<0?(this.flipX=!this.flipX,i*=-1):"scaleY"===e&&i<0?(this.flipY=!this.flipY,i*=-1):"shadow"!==e||!i||i instanceof t.Shadow?"dirty"===e&&this.group&&this.group.set("dirty",i):i=new t.Shadow(i),this[e]=i,s&&(o=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(e)>-1?(this.dirty=!0,o&&this.group.set("dirty",!0)):o&&this.stateProperties.indexOf(e)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:t.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width&&!this.height&&0===this.strokeWidth||!this.visible},render:function(e){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(e.save(),this._setupCompositeOperation(e),this.drawSelectionBackground(e),this.transform(e),this._setOpacity(e),this._setShadow(e,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(e)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(e),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),e.restore())},renderCache:function(e){e=e||{},this._cacheCanvas&&this._cacheContext||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,e.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this._cacheContext=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&"transparent"!==this.stroke&&0!==this.strokeWidth},hasFill:function(){return this.fill&&"transparent"!==this.fill},needsItsOwnCache:function(){return!("stroke"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||"object"!==typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(e,i){if(e.save(),i.inverted?e.globalCompositeOperation="destination-out":e.globalCompositeOperation="destination-in",i.absolutePositioned){var n=t.util.invertTransform(this.calcTransformMatrix());e.transform(n[0],n[1],n[2],n[3],n[4],n[5])}i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},drawObject:function(e,t){var i=this.fill,n=this.stroke;t?(this.fill="black",this.stroke="",this._setClippingProperties(e)):this._renderBackground(e),this._render(e),this._drawClipPath(e,this.clipPath),this.fill=i,this.stroke=n},_drawClipPath:function(e,t){t&&(t.canvas=this.canvas,t.shouldCache(),t._transformDone=!0,t.renderCache({forClipping:!0}),this.drawClipPathOnCache(e,t))},drawCacheOnCanvas:function(e){e.scale(1/this.zoomX,1/this.zoomY),e.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(e){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!e&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!e){var t=this.cacheWidth/this.zoomX,i=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-t/2,-i/2,t,i)}return!0}return!1},_renderBackground:function(e){if(this.backgroundColor){var t=this._getNonTransformedDimensions();e.fillStyle=this.backgroundColor,e.fillRect(-t.x/2,-t.y/2,t.x,t.y),this._removeShadow(e)}},_setOpacity:function(e){this.group&&!this.group._transformDone?e.globalAlpha=this.getObjectOpacity():e.globalAlpha*=this.opacity},_setStrokeStyles:function(e,t){var i=t.stroke;i&&(e.lineWidth=t.strokeWidth,e.lineCap=t.strokeLineCap,e.lineDashOffset=t.strokeDashOffset,e.lineJoin=t.strokeLineJoin,e.miterLimit=t.strokeMiterLimit,i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?this._applyPatternForTransformedGradient(e,i):(e.strokeStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):e.strokeStyle=t.stroke)},_setFillStyles:function(e,t){var i=t.fill;i&&(i.toLive?(e.fillStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,t.fill)):e.fillStyle=i)},_setClippingProperties:function(e){e.globalAlpha=1,e.strokeStyle="transparent",e.fillStyle="#000000"},_setLineDash:function(e,t){t&&0!==t.length&&(1&t.length&&t.push.apply(t,t),e.setLineDash(t))},_renderControls:function(e,i){var n,s,o,a=this.getViewportTransform(),l=this.calcTransformMatrix();s="undefined"!==typeof(i=i||{}).hasBorders?i.hasBorders:this.hasBorders,o="undefined"!==typeof i.hasControls?i.hasControls:this.hasControls,l=t.util.multiplyTransformMatrices(a,l),n=t.util.qrDecompose(l),e.save(),e.translate(n.translateX,n.translateY),e.lineWidth=1*this.borderScaleFactor,this.group||(e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(n.angle-=180),e.rotate(r(this.group?n.angle:this.angle)),i.forActiveSelection||this.group?s&&this.drawBordersInGroup(e,n,i):s&&this.drawBorders(e,i),o&&this.drawControls(e,i),e.restore()},_setShadow:function(e){if(this.shadow){var i,n=this.shadow,s=this.canvas,o=s&&s.viewportTransform[0]||1,r=s&&s.viewportTransform[3]||1;i=n.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),s&&s._isRetinaScaling()&&(o*=t.devicePixelRatio,r*=t.devicePixelRatio),e.shadowColor=n.color,e.shadowBlur=n.blur*t.browserShadowBlurConstant*(o+r)*(i.scaleX+i.scaleY)/4,e.shadowOffsetX=n.offsetX*o*i.scaleX,e.shadowOffsetY=n.offsetY*r*i.scaleY}},_removeShadow:function(e){this.shadow&&(e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0)},_applyPatternGradientTransform:function(e,t){if(!t||!t.toLive)return{offsetX:0,offsetY:0};var i=t.gradientTransform||t.patternTransform,n=-this.width/2+t.offsetX||0,s=-this.height/2+t.offsetY||0;return"percentage"===t.gradientUnits?e.transform(this.width,0,0,this.height,n,s):e.transform(1,0,0,1,n,s),i&&e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),{offsetX:n,offsetY:s}},_renderPaintInOrder:function(e){"stroke"===this.paintFirst?(this._renderStroke(e),this._renderFill(e)):(this._renderFill(e),this._renderStroke(e))},_render:function(){},_renderFill:function(e){this.fill&&(e.save(),this._setFillStyles(e,this),"evenodd"===this.fillRule?e.fill("evenodd"):e.fill(),e.restore())},_renderStroke:function(e){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this.strokeUniform&&this.group){var t=this.getObjectScaling();e.scale(1/t.scaleX,1/t.scaleY)}else this.strokeUniform&&e.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(e,this.strokeDashArray),this._setStrokeStyles(e,this),e.stroke(),e.restore()}},_applyPatternForTransformedGradient:function(e,i){var n,s=this._limitCacheSize(this._getCacheCanvasDimensions()),o=t.util.createCanvasElement(),r=this.canvas.getRetinaScaling(),a=s.x/this.scaleX/r,l=s.y/this.scaleY/r;o.width=a,o.height=l,(n=o.getContext("2d")).beginPath(),n.moveTo(0,0),n.lineTo(a,0),n.lineTo(a,l),n.lineTo(0,l),n.closePath(),n.translate(a/2,l/2),n.scale(s.zoomX/this.scaleX/r,s.zoomY/this.scaleY/r),this._applyPatternGradientTransform(n,i),n.fillStyle=i.toLive(e),n.fill(),e.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),e.scale(r*this.scaleX/s.zoomX,r*this.scaleY/s.zoomY),e.strokeStyle=n.createPattern(o,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var e=t.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",e.scaleX),this.set("scaleY",e.scaleY),this.angle=e.angle,this.skewX=e.skewX,this.skewY=0}},_removeTransformMatrix:function(e){var i=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),i=t.util.transformPoint(i,this.transformMatrix)),this.transformMatrix=null,e&&(this.scaleX*=e.scaleX,this.scaleY*=e.scaleY,this.cropX=e.cropX,this.cropY=e.cropY,i.x+=e.offsetLeft,i.y+=e.offsetTop,this.width=e.width,this.height=e.height),this.setPositionByOrigin(i,"center","center")},clone:function(e,i){var n=this.toObject(i);this.constructor.fromObject?this.constructor.fromObject(n,e):t.Object._fromObject("Object",n,e)},cloneAsImage:function(e,i){var n=this.toCanvasElement(i);return e&&e(new t.Image(n)),this},toCanvasElement:function(e){e||(e={});var i=t.util,n=i.saveObjectTransform(this),s=this.group,o=this.shadow,r=Math.abs,a=(e.multiplier||1)*(e.enableRetinaScaling?t.devicePixelRatio:1);delete this.group,e.withoutTransform&&i.resetObjectTransform(this),e.withoutShadow&&(this.shadow=null);var l,d,h,c,u=t.util.createCanvasElement(),g=this.getBoundingRect(!0,!0),p=this.shadow,m={x:0,y:0};p&&(d=p.blur,l=p.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),m.x=2*Math.round(r(p.offsetX)+d)*r(l.scaleX),m.y=2*Math.round(r(p.offsetY)+d)*r(l.scaleY)),h=g.width+m.x,c=g.height+m.y,u.width=Math.ceil(h),u.height=Math.ceil(c);var f=new t.StaticCanvas(u,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});"jpeg"===e.format&&(f.backgroundColor="#fff"),this.setPositionByOrigin(new t.Point(f.width/2,f.height/2),"center","center");var _=this.canvas;f.add(this);var v=f.toCanvasElement(a||1,e);return this.shadow=o,this.set("canvas",_),s&&(this.group=s),this.set(n).setCoords(),f._objects=[],f.dispose(),f=null,v},toDataURL:function(e){return e||(e={}),t.util.toDataURL(this.toCanvasElement(e),e.format||"png",e.quality||1)},isType:function(e){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===e},complexity:function(){return 1},toJSON:function(e){return this.toObject(e)},rotate:function(e){var t=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return t&&this._setOriginToCenter(),this.set("angle",e),t&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(e,i){i=i||this.canvas.getPointer(e);var n=new t.Point(i.x,i.y),s=this._getLeftTopCoords();return this.angle&&(n=t.util.rotatePoint(n,s,r(-this.angle))),{x:n.x-s.x,y:n.y-s.y}},_setupCompositeOperation:function(e){this.globalCompositeOperation&&(e.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){t.runningAnimations&&t.runningAnimations.cancelByTarget(this)}}),t.util.createAccessors&&t.util.createAccessors(t.Object),i(t.Object.prototype,t.Observable),t.Object.NUM_FRACTION_DIGITS=2,t.Object.ENLIVEN_PROPS=["clipPath"],t.Object._fromObject=function(e,i,s,o){var r=t[e];i=n(i,!0),t.util.enlivenPatterns([i.fill,i.stroke],(function(e){"undefined"!==typeof e[0]&&(i.fill=e[0]),"undefined"!==typeof e[1]&&(i.stroke=e[1]),t.util.enlivenObjectEnlivables(i,i,(function(){var e=o?new r(i[o],i):new r(i);s&&s(e)}))}))},t.Object.__uid=0)}(t),function(){var e=s.util.degreesToRadians,t={left:-.5,center:0,right:.5},i={top:-.5,center:0,bottom:.5};s.util.object.extend(s.Object.prototype,{translateToGivenOrigin:function(e,n,o,r,a){var l,d,h,c=e.x,u=e.y;return"string"===typeof n?n=t[n]:n-=.5,"string"===typeof r?r=t[r]:r-=.5,"string"===typeof o?o=i[o]:o-=.5,"string"===typeof a?a=i[a]:a-=.5,d=a-o,((l=r-n)||d)&&(h=this._getTransformedDimensions(),c=e.x+l*h.x,u=e.y+d*h.y),new s.Point(c,u)},translateToCenterPoint:function(t,i,n){var o=this.translateToGivenOrigin(t,i,n,"center","center");return this.angle?s.util.rotatePoint(o,t,e(this.angle)):o},translateToOriginPoint:function(t,i,n){var o=this.translateToGivenOrigin(t,"center","center",i,n);return this.angle?s.util.rotatePoint(o,t,e(this.angle)):o},getCenterPoint:function(){var e=new s.Point(this.left,this.top);return this.translateToCenterPoint(e,this.originX,this.originY)},getPointByOrigin:function(e,t){var i=this.getCenterPoint();return this.translateToOriginPoint(i,e,t)},toLocalPoint:function(t,i,n){var o,r,a=this.getCenterPoint();return o="undefined"!==typeof i&&"undefined"!==typeof n?this.translateToGivenOrigin(a,"center","center",i,n):new s.Point(this.left,this.top),r=new s.Point(t.x,t.y),this.angle&&(r=s.util.rotatePoint(r,a,-e(this.angle))),r.subtractEquals(o)},setPositionByOrigin:function(e,t,i){var n=this.translateToCenterPoint(e,t,i),s=this.translateToOriginPoint(n,this.originX,this.originY);this.set("left",s.x),this.set("top",s.y)},adjustPosition:function(i){var n,o,r=e(this.angle),a=this.getScaledWidth(),l=s.util.cos(r)*a,d=s.util.sin(r)*a;n="string"===typeof this.originX?t[this.originX]:this.originX-.5,o="string"===typeof i?t[i]:i-.5,this.left+=l*(o-n),this.top+=d*(o-n),this.setCoords(),this.originX=i},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var e=this.getCenterPoint();this.originX="center",this.originY="center",this.left=e.x,this.top=e.y},_resetOrigin:function(){var e=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=e.x,this.top=e.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){var e=s.util,t=e.degreesToRadians,i=e.multiplyTransformMatrices,n=e.transformPoint;e.object.extend(s.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(e,t){return t?e?this.calcACoords():this.calcLineCoords():(this.aCoords&&this.lineCoords||this.setCoords(!0),e?this.aCoords:this.lineCoords)},getCoords:function(e,t){return i=this._getCoords(e,t),[new s.Point(i.tl.x,i.tl.y),new s.Point(i.tr.x,i.tr.y),new s.Point(i.br.x,i.br.y),new s.Point(i.bl.x,i.bl.y)];var i},intersectsWithRect:function(e,t,i,n){var o=this.getCoords(i,n);return"Intersection"===s.Intersection.intersectPolygonRectangle(o,e,t).status},intersectsWithObject:function(e,t,i){return"Intersection"===s.Intersection.intersectPolygonPolygon(this.getCoords(t,i),e.getCoords(t,i)).status||e.isContainedWithinObject(this,t,i)||this.isContainedWithinObject(e,t,i)},isContainedWithinObject:function(e,t,i){for(var n=this.getCoords(t,i),s=t?e.aCoords:e.lineCoords,o=0,r=e._getImageLines(s);o<4;o++)if(!e.containsPoint(n[o],r))return!1;return!0},isContainedWithinRect:function(e,t,i,n){var s=this.getBoundingRect(i,n);return s.left>=e.x&&s.left+s.width<=t.x&&s.top>=e.y&&s.top+s.height<=t.y},containsPoint:function(e,t,i,n){var s=this._getCoords(i,n),o=(t=t||this._getImageLines(s),this._findCrossPoints(e,t));return 0!==o&&o%2===1},isOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.getCoords(!0,e).some((function(e){return e.x<=i.x&&e.x>=t.x&&e.y<=i.y&&e.y>=t.y}))||(!!this.intersectsWithRect(t,i,!0,e)||this._containsCenterOfCanvas(t,i,e))},_containsCenterOfCanvas:function(e,t,i){var n={x:(e.x+t.x)/2,y:(e.y+t.y)/2};return!!this.containsPoint(n,null,!0,i)},isPartiallyOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.intersectsWithRect(t,i,!0,e)||this.getCoords(!0,e).every((function(e){return(e.x>=i.x||e.x<=t.x)&&(e.y>=i.y||e.y<=t.y)}))&&this._containsCenterOfCanvas(t,i,e)},_getImageLines:function(e){return{topline:{o:e.tl,d:e.tr},rightline:{o:e.tr,d:e.br},bottomline:{o:e.br,d:e.bl},leftline:{o:e.bl,d:e.tl}}},_findCrossPoints:function(e,t){var i,n,s,o=0;for(var r in t)if(!((s=t[r]).o.y<e.y&&s.d.y<e.y)&&!(s.o.y>=e.y&&s.d.y>=e.y)&&(s.o.x===s.d.x&&s.o.x>=e.x?n=s.o.x:(i=(s.d.y-s.o.y)/(s.d.x-s.o.x),n=-(e.y-0*e.x-(s.o.y-i*s.o.x))/(0-i)),n>=e.x&&(o+=1),2===o))break;return o},getBoundingRect:function(t,i){var n=this.getCoords(t,i);return e.makeBoundingBoxFromPoints(n)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(e){return Math.abs(e)<this.minScaleLimit?e<0?-this.minScaleLimit:this.minScaleLimit:0===e?1e-4:e},scale:function(e){return this._set("scaleX",e),this._set("scaleY",e),this.setCoords()},scaleToWidth:function(e,t){var i=this.getBoundingRect(t).width/this.getScaledWidth();return this.scale(e/this.width/i)},scaleToHeight:function(e,t){var i=this.getBoundingRect(t).height/this.getScaledHeight();return this.scale(e/this.height/i)},calcLineCoords:function(){var i=this.getViewportTransform(),s=this.padding,o=t(this.angle),r=e.cos(o)*s,a=e.sin(o)*s,l=r+a,d=r-a,h=this.calcACoords(),c={tl:n(h.tl,i),tr:n(h.tr,i),bl:n(h.bl,i),br:n(h.br,i)};return s&&(c.tl.x-=d,c.tl.y-=l,c.tr.x+=l,c.tr.y-=d,c.bl.x-=l,c.bl.y+=d,c.br.x+=d,c.br.y+=l),c},calcOCoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),n=this.getViewportTransform(),s=i(n,t),o=i(s,e),r=(o=i(o,[1/n[0],0,0,1/n[3],0,0]),this._calculateCurrentDimensions()),a={};return this.forEachControl((function(e,t,i){a[t]=e.positionHandler(r,o,i)})),a},calcACoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),s=i(t,e),o=this._getTransformedDimensions(),r=o.x/2,a=o.y/2;return{tl:n({x:-r,y:-a},s),tr:n({x:r,y:-a},s),bl:n({x:-r,y:a},s),br:n({x:r,y:a},s)}},setCoords:function(e){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),e||(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords()),this},_calcRotateMatrix:function(){return e.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var e=this.getCenterPoint();return[1,0,0,1,e.x,e.y]},transformMatrixKey:function(e){var t="_",i="";return!e&&this.group&&(i=this.group.transformMatrixKey(e)+t),i+this.top+t+this.left+t+this.scaleX+t+this.scaleY+t+this.skewX+t+this.skewY+t+this.angle+t+this.originX+t+this.originY+t+this.width+t+this.height+t+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(e){var t=this.calcOwnMatrix();if(e||!this.group)return t;var n=this.transformMatrixKey(e),s=this.matrixCache||(this.matrixCache={});return s.key===n?s.value:(this.group&&(t=i(this.group.calcTransformMatrix(!1),t)),s.key=n,s.value=t,t)},calcOwnMatrix:function(){var t=this.transformMatrixKey(!0),i=this.ownMatrixCache||(this.ownMatrixCache={});if(i.key===t)return i.value;var n=this._calcTranslateMatrix(),s={angle:this.angle,translateX:n[4],translateY:n[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return i.key=t,i.value=e.composeMatrix(s),i.value},_getNonTransformedDimensions:function(){var e=this.strokeWidth;return{x:this.width+e,y:this.height+e}},_getTransformedDimensions:function(t,i){"undefined"===typeof t&&(t=this.skewX),"undefined"===typeof i&&(i=this.skewY);var n,s,o,r=0===t&&0===i;if(this.strokeUniform?(s=this.width,o=this.height):(s=(n=this._getNonTransformedDimensions()).x,o=n.y),r)return this._finalizeDimensions(s*this.scaleX,o*this.scaleY);var a=e.sizeAfterTransform(s,o,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:t,skewY:i});return this._finalizeDimensions(a.x,a.y)},_finalizeDimensions:function(e,t){return this.strokeUniform?{x:e+this.strokeWidth,y:t+this.strokeWidth}:{x:e,y:t}},_calculateCurrentDimensions:function(){var e=this.getViewportTransform(),t=this._getTransformedDimensions();return n(t,e,!0).scalarAdd(2*this.padding)}})}(),s.util.object.extend(s.Object.prototype,{sendToBack:function(){return this.group?s.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?s.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(e){return this.group?s.StaticCanvas.prototype.sendBackwards.call(this.group,this,e):this.canvas&&this.canvas.sendBackwards(this,e),this},bringForward:function(e){return this.group?s.StaticCanvas.prototype.bringForward.call(this.group,this,e):this.canvas&&this.canvas.bringForward(this,e),this},moveTo:function(e){return this.group&&"activeSelection"!==this.group.type?s.StaticCanvas.prototype.moveTo.call(this.group,this,e):this.canvas&&this.canvas.moveTo(this,e),this}}),function(){function e(e,t){if(t){if(t.toLive)return e+": url(#SVGID_"+t.id+"); ";var i=new s.Color(t),n=e+": "+i.toRgb()+"; ",o=i.getAlpha();return 1!==o&&(n+=e+"-opacity: "+o.toString()+"; "),n}return e+": none; "}var t=s.util.toFixed;s.util.object.extend(s.Object.prototype,{getSvgStyles:function(t){var i=this.fillRule?this.fillRule:"nonzero",n=this.strokeWidth?this.strokeWidth:"0",s=this.strokeDashArray?this.strokeDashArray.join(" "):"none",o=this.strokeDashOffset?this.strokeDashOffset:"0",r=this.strokeLineCap?this.strokeLineCap:"butt",a=this.strokeLineJoin?this.strokeLineJoin:"miter",l=this.strokeMiterLimit?this.strokeMiterLimit:"4",d="undefined"!==typeof this.opacity?this.opacity:"1",h=this.visible?"":" visibility: hidden;",c=t?"":this.getSvgFilter(),u=e("fill",this.fill);return[e("stroke",this.stroke),"stroke-width: ",n,"; ","stroke-dasharray: ",s,"; ","stroke-linecap: ",r,"; ","stroke-dashoffset: ",o,"; ","stroke-linejoin: ",a,"; ","stroke-miterlimit: ",l,"; ",u,"fill-rule: ",i,"; ","opacity: ",d,";",c,h].join("")},getSvgSpanStyles:function(t,i){var n="; ",s=t.fontFamily?"font-family: "+(-1===t.fontFamily.indexOf("'")&&-1===t.fontFamily.indexOf('"')?"'"+t.fontFamily+"'":t.fontFamily)+n:"",o=t.strokeWidth?"stroke-width: "+t.strokeWidth+n:"",r=(s=s,t.fontSize?"font-size: "+t.fontSize+"px"+n:""),a=t.fontStyle?"font-style: "+t.fontStyle+n:"",l=t.fontWeight?"font-weight: "+t.fontWeight+n:"",d=t.fill?e("fill",t.fill):"",h=t.stroke?e("stroke",t.stroke):"",c=this.getSvgTextDecoration(t);return c&&(c="text-decoration: "+c+n),[h,o,s,r,a,l,c,d,t.deltaY?"baseline-shift: "+-t.deltaY+"; ":"",i?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(e){return["overline","underline","line-through"].filter((function(t){return e[t.replace("-","")]})).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(e,t){var i=e?this.calcTransformMatrix():this.calcOwnMatrix();return'transform="'+s.util.matrixToSVG(i)+(t||"")+'" '},_setSVGBg:function(e){if(this.backgroundColor){var i=s.Object.NUM_FRACTION_DIGITS;e.push("\t\t<rect ",this._getFillAttributes(this.backgroundColor),' x="',t(-this.width/2,i),'" y="',t(-this.height/2,i),'" width="',t(this.width,i),'" height="',t(this.height,i),'"></rect>\n')}},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(e),{reviver:e})},toClipPathSVG:function(e){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(e),{reviver:e})},_createBaseClipPathSVGMarkup:function(e,t){var i=(t=t||{}).reviver,n=t.additionalTransform||"",s=[this.getSvgTransform(!0,n),this.getSvgCommons()].join(""),o=e.indexOf("COMMON_PARTS");return e[o]=s,i?i(e.join("")):e.join("")},_createBaseSVGMarkup:function(e,t){var i,n,o=(t=t||{}).noStyle,r=t.reviver,a=o?"":'style="'+this.getSvgStyles()+'" ',l=t.withShadow?'style="'+this.getSvgFilter()+'" ':"",d=this.clipPath,h=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",c=d&&d.absolutePositioned,u=this.stroke,g=this.fill,p=this.shadow,m=[],f=e.indexOf("COMMON_PARTS"),_=t.additionalTransform;return d&&(d.clipPathId="CLIPPATH_"+s.Object.__uid++,n='<clipPath id="'+d.clipPathId+'" >\n'+d.toClipPathSVG(r)+"</clipPath>\n"),c&&m.push("<g ",l,this.getSvgCommons()," >\n"),m.push("<g ",this.getSvgTransform(!1),c?"":l+this.getSvgCommons()," >\n"),i=[a,h,o?"":this.addPaintOrder()," ",_?'transform="'+_+'" ':""].join(""),e[f]=i,g&&g.toLive&&m.push(g.toSVG(this)),u&&u.toLive&&m.push(u.toSVG(this)),p&&m.push(p.toSVG(this)),d&&m.push(n),m.push(e.join("")),m.push("</g>\n"),c&&m.push("</g>\n"),r?r(m.join("")):m.join("")},addPaintOrder:function(){return"fill"!==this.paintFirst?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var e=s.util.object.extend,t="stateProperties";function i(t,i,n){var s={};n.forEach((function(e){s[e]=t[e]})),e(t[i],s,!0)}function n(e,t,i){if(e===t)return!0;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var s=0,o=e.length;s<o;s++)if(!n(e[s],t[s]))return!1;return!0}if(e&&"object"===typeof e){var r,a=Object.keys(e);if(!t||"object"!==typeof t||!i&&a.length!==Object.keys(t).length)return!1;for(s=0,o=a.length;s<o;s++)if("canvas"!==(r=a[s])&&"group"!==r&&!n(e[r],t[r]))return!1;return!0}}s.util.object.extend(s.Object.prototype,{hasStateChanged:function(e){var i="_"+(e=e||t);return Object.keys(this[i]).length<this[e].length||!n(this[i],this,!0)},saveState:function(e){var n=e&&e.propertySet||t,s="_"+n;return this[s]?(i(this,s,this[n]),e&&e.stateProperties&&i(this,s,e.stateProperties),this):this.setupState(e)},setupState:function(e){var i=(e=e||{}).propertySet||t;return e.propertySet=i,this["_"+i]={},this.saveState(e),this}})}(),function(){var e=s.util.degreesToRadians;s.util.object.extend(s.Object.prototype,{_findTargetCorner:function(e,t){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var i,n,s,o=e.x,r=e.y,a=Object.keys(this.oCoords),l=a.length-1;for(this.__corner=0;l>=0;l--)if(s=a[l],this.isControlVisible(s)&&(n=this._getImageLines(t?this.oCoords[s].touchCorner:this.oCoords[s].corner),0!==(i=this._findCrossPoints({x:o,y:r},n))&&i%2===1))return this.__corner=s,s;return!1},forEachControl:function(e){for(var t in this.controls)e(this.controls[t],t,this)},_setCornerCoords:function(){var e=this.oCoords;for(var t in e){var i=this.controls[t];e[t].corner=i.calcCornerCoords(this.angle,this.cornerSize,e[t].x,e[t].y,!1),e[t].touchCorner=i.calcCornerCoords(this.angle,this.touchCornerSize,e[t].x,e[t].y,!0)}},drawSelectionBackground:function(t){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;t.save();var i=this.getCenterPoint(),n=this._calculateCurrentDimensions(),s=this.canvas.viewportTransform;return t.translate(i.x,i.y),t.scale(1/s[0],1/s[3]),t.rotate(e(this.angle)),t.fillStyle=this.selectionBackgroundColor,t.fillRect(-n.x/2,-n.y/2,n.x,n.y),t.restore(),this},drawBorders:function(e,t){t=t||{};var i=this._calculateCurrentDimensions(),n=this.borderScaleFactor,s=i.x+n,o=i.y+n,r="undefined"!==typeof t.hasControls?t.hasControls:this.hasControls,a=!1;return e.save(),e.strokeStyle=t.borderColor||this.borderColor,this._setLineDash(e,t.borderDashArray||this.borderDashArray),e.strokeRect(-s/2,-o/2,s,o),r&&(e.beginPath(),this.forEachControl((function(t,i,n){t.withConnection&&t.getVisibility(n,i)&&(a=!0,e.moveTo(t.x*s,t.y*o),e.lineTo(t.x*s+t.offsetX,t.y*o+t.offsetY))})),a&&e.stroke()),e.restore(),this},drawBordersInGroup:function(e,t,i){i=i||{};var n=s.util.sizeAfterTransform(this.width,this.height,t),o=this.strokeWidth,r=this.strokeUniform,a=this.borderScaleFactor,l=n.x+o*(r?this.canvas.getZoom():t.scaleX)+a,d=n.y+o*(r?this.canvas.getZoom():t.scaleY)+a;return e.save(),this._setLineDash(e,i.borderDashArray||this.borderDashArray),e.strokeStyle=i.borderColor||this.borderColor,e.strokeRect(-l/2,-d/2,l,d),e.restore(),this},drawControls:function(e,t){t=t||{},e.save();var i,n,o=this.canvas.getRetinaScaling();return e.setTransform(o,0,0,o,0,0),e.strokeStyle=e.fillStyle=t.cornerColor||this.cornerColor,this.transparentCorners||(e.strokeStyle=t.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(e,t.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(i=this.group.calcTransformMatrix()),this.forEachControl((function(o,r,a){n=a.oCoords[r],o.getVisibility(a,r)&&(i&&(n=s.util.transformPoint(n,i)),o.render(e,n.x,n.y,t,a))})),e.restore(),this},isControlVisible:function(e){return this.controls[e]&&this.controls[e].getVisibility(this,e)},setControlVisible:function(e,t){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[e]=t,this},setControlsVisibility:function(e){for(var t in e||(e={}),e)this.setControlVisible(t,e[t]);return this},onDeselect:function(){},onSelect:function(){}})}(),s.util.object.extend(s.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(e,t){var i=function(){},n=(t=t||{}).onComplete||i,o=t.onChange||i,r=this;return s.util.animate({target:this,startValue:e.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(t){e.set("left",t),r.requestRenderAll(),o()},onComplete:function(){e.setCoords(),n()}})},fxCenterObjectV:function(e,t){var i=function(){},n=(t=t||{}).onComplete||i,o=t.onChange||i,r=this;return s.util.animate({target:this,startValue:e.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(t){e.set("top",t),r.requestRenderAll(),o()},onComplete:function(){e.setCoords(),n()}})},fxRemove:function(e,t){var i=function(){},n=(t=t||{}).onComplete||i,o=t.onChange||i,r=this;return s.util.animate({target:this,startValue:e.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(t){e.set("opacity",t),r.requestRenderAll(),o()},onComplete:function(){r.remove(e),n()}})}}),s.util.object.extend(s.Object.prototype,{animate:function(){if(arguments[0]&&"object"===typeof arguments[0]){var e,t,i=[],n=[];for(e in arguments[0])i.push(e);for(var s=0,o=i.length;s<o;s++)e=i[s],t=s!==o-1,n.push(this._animate(e,arguments[0][e],arguments[1],t));return n}return this._animate.apply(this,arguments)},_animate:function(e,t,i,n){var o,r=this;t=t.toString(),i=i?s.util.object.clone(i):{},~e.indexOf(".")&&(o=e.split("."));var a=r.colorProperties.indexOf(e)>-1||o&&r.colorProperties.indexOf(o[1])>-1,l=o?this.get(o[0])[o[1]]:this.get(e);"from"in i||(i.from=l),a||(t=~t.indexOf("=")?l+parseFloat(t.replace("=","")):parseFloat(t));var d={target:this,startValue:i.from,endValue:t,byValue:i.by,easing:i.easing,duration:i.duration,abort:i.abort&&function(e,t,n){return i.abort.call(r,e,t,n)},onChange:function(t,s,a){o?r[o[0]][o[1]]=t:r.set(e,t),n||i.onChange&&i.onChange(t,s,a)},onComplete:function(e,t,s){n||(r.setCoords(),i.onComplete&&i.onComplete(e,t,s))}};return a?s.util.animateColor(d.startValue,d.endValue,d.duration,d):s.util.animate(d)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.util.object.clone,s={x1:1,x2:1,y1:1,y2:1};function o(e,t){var i=e.origin,n=e.axis1,s=e.axis2,o=e.dimension,r=t.nearest,a=t.center,l=t.farthest;return function(){switch(this.get(i)){case r:return Math.min(this.get(n),this.get(s));case a:return Math.min(this.get(n),this.get(s))+.5*this.get(o);case l:return Math.max(this.get(n),this.get(s))}}}t.Line?t.warn("fabric.Line is already defined"):(t.Line=t.util.createClass(t.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:t.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(e,t){e||(e=[0,0,0,0]),this.callSuper("initialize",t),this.set("x1",e[0]),this.set("y1",e[1]),this.set("x2",e[2]),this.set("y2",e[3]),this._setWidthHeight(t)},_setWidthHeight:function(e){e||(e={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in e?e.left:this._getLeftToOriginX(),this.top="top"in e?e.top:this._getTopToOriginY()},_set:function(e,t){return this.callSuper("_set",e,t),"undefined"!==typeof s[e]&&this._setWidthHeight(),this},_getLeftToOriginX:o({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:o({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(e){e.beginPath();var t=this.calcLinePoints();e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineWidth=this.strokeWidth;var i=e.strokeStyle;e.strokeStyle=this.stroke||e.fillStyle,this.stroke&&this._renderStroke(e),e.strokeStyle=i},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(e){return i(this.callSuper("toObject",e),this.calcLinePoints())},_getNonTransformedDimensions:function(){var e=this.callSuper("_getNonTransformedDimensions");return"butt"===this.strokeLineCap&&(0===this.width&&(e.y-=this.strokeWidth),0===this.height&&(e.x-=this.strokeWidth)),e},calcLinePoints:function(){var e=this.x1<=this.x2?-1:1,t=this.y1<=this.y2?-1:1,i=e*this.width*.5,n=t*this.height*.5;return{x1:i,x2:e*this.width*-.5,y1:n,y2:t*this.height*-.5}},_toSVG:function(){var e=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',e.x1,'" y1="',e.y1,'" x2="',e.x2,'" y2="',e.y2,'" />\n']}}),t.Line.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),t.Line.fromElement=function(e,n,s){s=s||{};var o=t.parseAttributes(e,t.Line.ATTRIBUTE_NAMES),r=[o.x1||0,o.y1||0,o.x2||0,o.y2||0];n(new t.Line(r,i(o,s)))},t.Line.fromObject=function(e,i){var s=n(e,!0);s.points=[e.x1,e.y1,e.x2,e.y2],t.Object._fromObject("Line",s,(function(e){delete e.points,i&&i(e)}),"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians;t.Circle?t.warn("fabric.Circle is already defined."):(t.Circle=t.util.createClass(t.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:t.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(e,t){return this.callSuper("_set",e,t),"radius"===e&&this.setRadius(t),this},toObject:function(e){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(e))},_toSVG:function(){var e,n=(this.endAngle-this.startAngle)%360;if(0===n)e=["<circle ","COMMON_PARTS",'cx="0" cy="0" ','r="',this.radius,'" />\n'];else{var s=i(this.startAngle),o=i(this.endAngle),r=this.radius;e=['<path d="M '+t.util.cos(s)*r+" "+t.util.sin(s)*r," A "+r+" "+r," 0 ",+(n>180?"1":"0")+" 1"," "+t.util.cos(o)*r+" "+t.util.sin(o)*r,'" ',"COMMON_PARTS"," />\n"]}return e},_render:function(e){e.beginPath(),e.arc(0,0,this.radius,i(this.startAngle),i(this.endAngle),!1),this._renderPaintInOrder(e)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(e){return this.radius=e,this.set("width",2*e).set("height",2*e)}}),t.Circle.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),t.Circle.fromElement=function(e,i){var n,s=t.parseAttributes(e,t.Circle.ATTRIBUTE_NAMES);if(!("radius"in(n=s)&&n.radius>=0))throw new Error("value of `r` attribute is required and can not be negative");s.left=(s.left||0)-s.radius,s.top=(s.top||0)-s.radius,i(new t.Circle(s))},t.Circle.fromObject=function(e,i){t.Object._fromObject("Circle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Triangle?t.warn("fabric.Triangle is already defined"):(t.Triangle=t.util.createClass(t.Object,{type:"triangle",width:100,height:100,_render:function(e){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,i),e.lineTo(0,-i),e.lineTo(t,i),e.closePath(),this._renderPaintInOrder(e)},_toSVG:function(){var e=this.width/2,t=this.height/2;return["<polygon ","COMMON_PARTS",'points="',[-e+" "+t,"0 "+-t,e+" "+t].join(","),'" />']}}),t.Triangle.fromObject=function(e,i){return t.Object._fromObject("Triangle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=2*Math.PI;t.Ellipse?t.warn("fabric.Ellipse is already defined."):(t.Ellipse=t.util.createClass(t.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this.set("rx",e&&e.rx||0),this.set("ry",e&&e.ry||0)},_set:function(e,t){switch(this.callSuper("_set",e,t),e){case"rx":this.rx=t,this.set("width",2*t);break;case"ry":this.ry=t,this.set("height",2*t)}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,'" />\n']},_render:function(e){e.beginPath(),e.save(),e.transform(1,0,0,this.ry/this.rx,0,0),e.arc(0,0,this.rx,0,i,!1),e.restore(),this._renderPaintInOrder(e)}}),t.Ellipse.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),t.Ellipse.fromElement=function(e,i){var n=t.parseAttributes(e,t.Ellipse.ATTRIBUTE_NAMES);n.left=(n.left||0)-n.rx,n.top=(n.top||0)-n.ry,i(new t.Ellipse(n))},t.Ellipse.fromObject=function(e,i){t.Object._fromObject("Ellipse",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend;t.Rect?t.warn("fabric.Rect is already defined"):(t.Rect=t.util.createClass(t.Object,{stateProperties:t.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(e){var t=this.rx?Math.min(this.rx,this.width/2):0,i=this.ry?Math.min(this.ry,this.height/2):0,n=this.width,s=this.height,o=-this.width/2,r=-this.height/2,a=0!==t||0!==i,l=.4477152502;e.beginPath(),e.moveTo(o+t,r),e.lineTo(o+n-t,r),a&&e.bezierCurveTo(o+n-l*t,r,o+n,r+l*i,o+n,r+i),e.lineTo(o+n,r+s-i),a&&e.bezierCurveTo(o+n,r+s-l*i,o+n-l*t,r+s,o+n-t,r+s),e.lineTo(o+t,r+s),a&&e.bezierCurveTo(o+l*t,r+s,o,r+s-l*i,o,r+s-i),e.lineTo(o,r+i),a&&e.bezierCurveTo(o,r+l*i,o+l*t,r,o+t,r),e.closePath(),this._renderPaintInOrder(e)},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<rect ","COMMON_PARTS",'x="',-this.width/2,'" y="',-this.height/2,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,'" />\n']}}),t.Rect.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),t.Rect.fromElement=function(e,n,s){if(!e)return n(null);s=s||{};var o=t.parseAttributes(e,t.Rect.ATTRIBUTE_NAMES);o.left=o.left||0,o.top=o.top||0,o.height=o.height||0,o.width=o.width||0;var r=new t.Rect(i(s?t.util.object.clone(s):{},o));r.visible=r.visible&&r.width>0&&r.height>0,n(r)},t.Rect.fromObject=function(e,i){return t.Object._fromObject("Rect",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.util.array.min,s=t.util.array.max,o=t.util.toFixed,r=t.util.projectStrokeOnPoints;t.Polyline?t.warn("fabric.Polyline is already defined"):(t.Polyline=t.util.createClass(t.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:t.Object.prototype.cacheProperties.concat("points"),initialize:function(e,t){t=t||{},this.points=e||[],this.callSuper("initialize",t),this._setPositionDimensions(t)},_projectStrokeOnPoints:function(){return r(this.points,this,!0)},_setPositionDimensions:function(e){var t,i=this._calcDimensions(e),n=this.exactBoundingBox?this.strokeWidth:0;this.width=i.width-n,this.height=i.height-n,e.fromSVG||(t=this.translateToGivenOrigin({x:i.left-this.strokeWidth/2+n/2,y:i.top-this.strokeWidth/2+n/2},"left","top",this.originX,this.originY)),"undefined"===typeof e.left&&(this.left=e.fromSVG?i.left:t.x),"undefined"===typeof e.top&&(this.top=e.fromSVG?i.top:t.y),this.pathOffset={x:i.left+this.width/2+n/2,y:i.top+this.height/2+n/2}},_calcDimensions:function(){var e=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,t=n(e,"x")||0,i=n(e,"y")||0;return{left:t,top:i,width:(s(e,"x")||0)-t,height:(s(e,"y")||0)-i}},toObject:function(e){return i(this.callSuper("toObject",e),{points:this.points.concat()})},_toSVG:function(){for(var e=[],i=this.pathOffset.x,n=this.pathOffset.y,s=t.Object.NUM_FRACTION_DIGITS,r=0,a=this.points.length;r<a;r++)e.push(o(this.points[r].x-i,s),",",o(this.points[r].y-n,s)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',e.join(""),'" />\n']},commonRender:function(e){var t,i=this.points.length,n=this.pathOffset.x,s=this.pathOffset.y;if(!i||isNaN(this.points[i-1].y))return!1;e.beginPath(),e.moveTo(this.points[0].x-n,this.points[0].y-s);for(var o=0;o<i;o++)t=this.points[o],e.lineTo(t.x-n,t.y-s);return!0},_render:function(e){this.commonRender(e)&&this._renderPaintInOrder(e)},complexity:function(){return this.get("points").length}}),t.Polyline.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polyline.fromElementGenerator=function(e){return function(n,s,o){if(!n)return s(null);o||(o={});var r=t.parsePointsAttribute(n.getAttribute("points")),a=t.parseAttributes(n,t[e].ATTRIBUTE_NAMES);a.fromSVG=!0,s(new t[e](r,i(a,o)))}},t.Polyline.fromElement=t.Polyline.fromElementGenerator("Polyline"),t.Polyline.fromObject=function(e,i){return t.Object._fromObject("Polyline",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.projectStrokeOnPoints;t.Polygon?t.warn("fabric.Polygon is already defined"):(t.Polygon=t.util.createClass(t.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return i(this.points,this)},_render:function(e){this.commonRender(e)&&(e.closePath(),this._renderPaintInOrder(e))}}),t.Polygon.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polygon.fromElement=t.Polyline.fromElementGenerator("Polygon"),t.Polygon.fromObject=function(e,i){t.Object._fromObject("Polygon",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,n=t.util.array.max,s=t.util.object.extend,o=t.util.object.clone,r=t.util.toFixed;t.Path?t.warn("fabric.Path is already defined"):(t.Path=t.util.createClass(t.Object,{type:"path",path:null,cacheProperties:t.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:t.Object.prototype.stateProperties.concat("path"),initialize:function(e,t){delete(t=o(t||{})).path,this.callSuper("initialize",t),this._setPath(e||[],t)},_setPath:function(e,i){this.path=t.util.makePathSimpler(Array.isArray(e)?e:t.util.parsePath(e)),t.Polyline.prototype._setPositionDimensions.call(this,i||{})},_renderPathCommands:function(e){var t,i=0,n=0,s=0,o=0,r=0,a=0,l=-this.pathOffset.x,d=-this.pathOffset.y;e.beginPath();for(var h=0,c=this.path.length;h<c;++h)switch((t=this.path[h])[0]){case"L":s=t[1],o=t[2],e.lineTo(s+l,o+d);break;case"M":i=s=t[1],n=o=t[2],e.moveTo(s+l,o+d);break;case"C":s=t[5],o=t[6],r=t[3],a=t[4],e.bezierCurveTo(t[1]+l,t[2]+d,r+l,a+d,s+l,o+d);break;case"Q":e.quadraticCurveTo(t[1]+l,t[2]+d,t[3]+l,t[4]+d),s=t[3],o=t[4],r=t[1],a=t[2];break;case"z":case"Z":s=i,o=n,e.closePath()}},_render:function(e){this._renderPathCommands(e),this._renderPaintInOrder(e)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(e){return s(this.callSuper("toObject",e),{path:this.path.map((function(e){return e.slice()}))})},toDatalessObject:function(e){var t=this.toObject(["sourcePath"].concat(e));return t.sourcePath&&delete t.path,t},_toSVG:function(){return["<path ","COMMON_PARTS",'d="',t.util.joinPath(this.path),'" stroke-linecap="round" ',"/>\n"]},_getOffsetTransform:function(){var e=t.Object.NUM_FRACTION_DIGITS;return" translate("+r(-this.pathOffset.x,e)+", "+r(-this.pathOffset.y,e)+")"},toClipPathSVG:function(e){var t=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},toSVG:function(e){var t=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var e,s,o=[],r=[],a=0,l=0,d=0,h=0,c=0,u=this.path.length;c<u;++c){switch((e=this.path[c])[0]){case"L":d=e[1],h=e[2],s=[];break;case"M":a=d=e[1],l=h=e[2],s=[];break;case"C":s=t.util.getBoundsOfCurve(d,h,e[1],e[2],e[3],e[4],e[5],e[6]),d=e[5],h=e[6];break;case"Q":s=t.util.getBoundsOfCurve(d,h,e[1],e[2],e[1],e[2],e[3],e[4]),d=e[3],h=e[4];break;case"z":case"Z":d=a,h=l}s.forEach((function(e){o.push(e.x),r.push(e.y)})),o.push(d),r.push(h)}var g=i(o)||0,p=i(r)||0;return{left:g,top:p,width:(n(o)||0)-g,height:(n(r)||0)-p}}}),t.Path.fromObject=function(e,i){if("string"===typeof e.sourcePath){var n=e.sourcePath;t.loadSVGFromURL(n,(function(n){var s=n[0];s.setOptions(e),e.clipPath?t.util.enlivenObjects([e.clipPath],(function(e){s.clipPath=e[0],i&&i(s)})):i&&i(s)}))}else t.Object._fromObject("Path",e,i,"path")},t.Path.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(["d"]),t.Path.fromElement=function(e,i,n){var o=t.parseAttributes(e,t.Path.ATTRIBUTE_NAMES);o.fromSVG=!0,i(new t.Path(o.d,s(o,n)))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,n=t.util.array.max;t.Group||(t.Group=t.util.createClass(t.Object,t.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(e,t,i){t=t||{},this._objects=[],i&&this.callSuper("initialize",t),this._objects=e||[];for(var n=this._objects.length;n--;)this._objects[n].group=this;if(i)this._updateObjectsACoords();else{var s=t&&t.centerPoint;void 0!==t.originX&&(this.originX=t.originX),void 0!==t.originY&&(this.originY=t.originY),s||this._calcBounds(),this._updateObjectsCoords(s),delete t.centerPoint,this.callSuper("initialize",t)}this.setCoords()},_updateObjectsACoords:function(){for(var e=this._objects.length;e--;)this._objects[e].setCoords(true)},_updateObjectsCoords:function(e){e=e||this.getCenterPoint();for(var t=this._objects.length;t--;)this._updateObjectCoords(this._objects[t],e)},_updateObjectCoords:function(e,t){var i=e.left,n=e.top;e.set({left:i-t.x,top:n-t.y}),e.group=this,e.setCoords(!0)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(e){var i=!!this.group;return this._restoreObjectsState(),t.util.resetObjectTransform(this),e&&(i&&t.util.removeTransformFromObject(e,this.group.calcTransformMatrix()),this._objects.push(e),e.group=this,e._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,i?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(e){return this._restoreObjectsState(),t.util.resetObjectTransform(this),this.remove(e),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(e){this.dirty=!0,e.group=this,e._set("canvas",this.canvas)},_onObjectRemoved:function(e){this.dirty=!0,delete e.group},_set:function(e,i){var n=this._objects.length;if(this.useSetOnGroup)for(;n--;)this._objects[n].setOnGroup(e,i);if("canvas"===e)for(;n--;)this._objects[n]._set(e,i);t.Object.prototype._set.call(this,e,i)},toObject:function(e){var i=this.includeDefaultValues,n=this._objects.filter((function(e){return!e.excludeFromExport})).map((function(t){var n=t.includeDefaultValues;t.includeDefaultValues=i;var s=t.toObject(e);return t.includeDefaultValues=n,s})),s=t.Object.prototype.toObject.call(this,e);return s.objects=n,s},toDatalessObject:function(e){var i,n=this.sourcePath;if(n)i=n;else{var s=this.includeDefaultValues;i=this._objects.map((function(t){var i=t.includeDefaultValues;t.includeDefaultValues=s;var n=t.toDatalessObject(e);return t.includeDefaultValues=i,n}))}var o=t.Object.prototype.toDatalessObject.call(this,e);return o.objects=i,o},render:function(e){this._transformDone=!0,this.callSuper("render",e),this._transformDone=!1},shouldCache:function(){var e=t.Object.prototype.shouldCache.call(this);if(e)for(var i=0,n=this._objects.length;i<n;i++)if(this._objects[i].willDrawShadow())return this.ownCaching=!1,!1;return e},willDrawShadow:function(){if(t.Object.prototype.willDrawShadow.call(this))return!0;for(var e=0,i=this._objects.length;e<i;e++)if(this._objects[e].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(e){for(var t=0,i=this._objects.length;t<i;t++)this._objects[t].render(e);this._drawClipPath(e,this.clipPath)},isCacheDirty:function(e){if(this.callSuper("isCacheDirty",e))return!0;if(!this.statefullCache)return!1;for(var t=0,i=this._objects.length;t<i;t++)if(this._objects[t].isCacheDirty(!0)){if(this._cacheCanvas){var n=this.cacheWidth/this.zoomX,s=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-n/2,-s/2,n,s)}return!0}return!1},_restoreObjectsState:function(){var e=this.calcOwnMatrix();return this._objects.forEach((function(i){t.util.addTransformToObject(i,e),delete i.group,i.setCoords()})),this},destroy:function(){return this._objects.forEach((function(e){e.set("dirty",!0)})),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[]},toActiveSelection:function(){if(this.canvas){var e=this._objects,i=this.canvas;this._objects=[];var n=this.toObject();delete n.objects;var s=new t.ActiveSelection([]);return s.set(n),s.type="activeSelection",i.remove(this),e.forEach((function(e){e.group=s,e.dirty=!0,i.add(e)})),s.canvas=i,s._objects=e,i._activeObject=s,s.setCoords(),s}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){return this.forEachObject((function(e){e.setCoords(true)})),this},_calcBounds:function(e){for(var t,i,n,s,o=[],r=[],a=["tr","br","bl","tl"],l=0,d=this._objects.length,h=a.length;l<d;++l){for(n=(t=this._objects[l]).calcACoords(),s=0;s<h;s++)i=a[s],o.push(n[i].x),r.push(n[i].y);t.aCoords=n}this._getBounds(o,r,e)},_getBounds:function(e,s,o){var r=new t.Point(i(e),i(s)),a=new t.Point(n(e),n(s)),l=r.y||0,d=r.x||0,h=a.x-r.x||0,c=a.y-r.y||0;this.width=h,this.height=c,o||this.setPositionByOrigin({x:d,y:l},"left","top")},_toSVG:function(e){for(var t=["<g ","COMMON_PARTS"," >\n"],i=0,n=this._objects.length;i<n;i++)t.push("\t\t",this._objects[i].toSVG(e));return t.push("</g>\n"),t},getSvgStyles:function(){var e="undefined"!==typeof this.opacity&&1!==this.opacity?"opacity: "+this.opacity+";":"",t=this.visible?"":" visibility: hidden;";return[e,this.getSvgFilter(),t].join("")},toClipPathSVG:function(e){for(var t=[],i=0,n=this._objects.length;i<n;i++)t.push("\t",this._objects[i].toClipPathSVG(e));return this._createBaseClipPathSVGMarkup(t,{reviver:e})}}),t.Group.fromObject=function(e,i){var n=e.objects,s=t.util.object.clone(e,!0);delete s.objects,"string"!==typeof n?t.util.enlivenObjects(n,(function(n){t.util.enlivenObjectEnlivables(e,s,(function(){i&&i(new t.Group(n,s,!0))}))})):t.loadSVGFromURL(n,(function(o){var r=t.util.groupSVGElements(o,e,n),a=s.clipPath;delete s.clipPath,r.set(s),a?t.util.enlivenObjects([a],(function(e){r.clipPath=e[0],i&&i(r)})):i&&i(r)}))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.ActiveSelection||(t.ActiveSelection=t.util.createClass(t.Group,{type:"activeSelection",initialize:function(e,i){i=i||{},this._objects=e||[];for(var n=this._objects.length;n--;)this._objects[n].group=this;i.originX&&(this.originX=i.originX),i.originY&&(this.originY=i.originY),this._calcBounds(),this._updateObjectsCoords(),t.Object.prototype.initialize.call(this,i),this.setCoords()},toGroup:function(){var e=this._objects.concat();this._objects=[];var i=t.Object.prototype.toObject.call(this),n=new t.Group([]);if(delete i.type,n.set(i),e.forEach((function(e){e.canvas.remove(e),e.group=n})),n._objects=e,!this.canvas)return n;var s=this.canvas;return s.add(n),s._activeObject=n,n.setCoords(),n},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(e,t,i){e.save(),e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper("_renderControls",e,t),"undefined"===typeof(i=i||{}).hasControls&&(i.hasControls=!1),i.forActiveSelection=!0;for(var n=0,s=this._objects.length;n<s;n++)this._objects[n]._renderControls(e,i);e.restore()}}),t.ActiveSelection.fromObject=function(e,i){t.util.enlivenObjects(e.objects,(function(n){delete e.objects,i&&i(new t.ActiveSelection(n,e,!0))}))})}(t),function(e){"use strict";var t=s.util.object.extend;e.fabric||(e.fabric={}),e.fabric.Image?s.warn("fabric.Image is already defined."):(s.Image=s.util.createClass(s.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:s.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:s.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(e,t){t||(t={}),this.filters=[],this.cacheKey="texture"+s.Object.__uid++,this.callSuper("initialize",t),this._initElement(e,t)},getElement:function(){return this._element||{}},setElement:function(e,t){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=e,this._originalElement=e,this._initConfig(t),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(e){var t=s.filterBackend;t&&t.evictCachesForKey&&t.evictCachesForKey(e)},dispose:function(){this.callSuper("dispose"),this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(e){s.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var e=this.getElement();return{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height}},_stroke:function(e){if(this.stroke&&0!==this.strokeWidth){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,-i),e.lineTo(t,-i),e.lineTo(t,i),e.lineTo(-t,i),e.lineTo(-t,-i),e.closePath()}},toObject:function(e){var i=[];this.filters.forEach((function(e){e&&i.push(e.toObject())}));var n=t(this.callSuper("toObject",["cropX","cropY"].concat(e)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:i});return this.resizeFilter&&(n.resizeFilter=this.resizeFilter.toObject()),n},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var e,t=[],i=[],n=this._element,o=-this.width/2,r=-this.height/2,a="",l="";if(!n)return[];if(this.hasCrop()){var d=s.Object.__uid++;t.push('<clipPath id="imageCrop_'+d+'">\n','\t<rect x="'+o+'" y="'+r+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),a=' clip-path="url(#imageCrop_'+d+')" '}if(this.imageSmoothing||(l='" image-rendering="optimizeSpeed'),i.push("\t<image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',o-this.cropX,'" y="',r-this.cropY,'" width="',n.width||n.naturalWidth,'" height="',n.height||n.height,l,'"',a,"></image>\n"),this.stroke||this.strokeDashArray){var h=this.fill;this.fill=null,e=["\t<rect ",'x="',o,'" y="',r,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'"/>\n'],this.fill=h}return t="fill"!==this.paintFirst?t.concat(e,i):t.concat(i,e)},getSrc:function(e){var t=e?this._element:this._originalElement;return t?t.toDataURL?t.toDataURL():this.srcFromAttribute?t.getAttribute("src"):t.src:this.src||""},setSrc:function(e,t,i){return s.util.loadImage(e,(function(e,n){this.setElement(e,i),this._setWidthHeight(),t&&t(this,n)}),this,i&&i.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var e=this.resizeFilter,t=this.minimumScaleTrigger,i=this.getTotalObjectScaling(),n=i.scaleX,o=i.scaleY,r=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!e||n>t&&o>t)return this._element=r,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=n,void(this._lastScaleY=o);s.filterBackend||(s.filterBackend=s.initFilterBackend());var a=s.util.createCanvasElement(),l=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,d=r.width,h=r.height;a.width=d,a.height=h,this._element=a,this._lastScaleX=e.scaleX=n,this._lastScaleY=e.scaleY=o,s.filterBackend.applyFilters([e],r,d,h,this._element,l),this._filterScalingX=a.width/this._originalElement.width,this._filterScalingY=a.height/this._originalElement.height},applyFilters:function(e){if(e=(e=e||this.filters||[]).filter((function(e){return e&&!e.isNeutralState()})),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),0===e.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var t=this._originalElement,i=t.naturalWidth||t.width,n=t.naturalHeight||t.height;if(this._element===this._originalElement){var o=s.util.createCanvasElement();o.width=i,o.height=n,this._element=o,this._filteredEl=o}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,i,n),this._lastScaleX=1,this._lastScaleY=1;return s.filterBackend||(s.filterBackend=s.initFilterBackend()),s.filterBackend.applyFilters(e,this._originalElement,i,n,this._element,this.cacheKey),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(e){s.util.setImageSmoothing(e,this.imageSmoothing),!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(e),this._renderPaintInOrder(e)},drawCacheOnCanvas:function(e){s.util.setImageSmoothing(e,this.imageSmoothing),s.Object.prototype.drawCacheOnCanvas.call(this,e)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(e){var t=this._element;if(t){var i=this._filterScalingX,n=this._filterScalingY,s=this.width,o=this.height,r=Math.min,a=Math.max,l=a(this.cropX,0),d=a(this.cropY,0),h=t.naturalWidth||t.width,c=t.naturalHeight||t.height,u=l*i,g=d*n,p=r(s*i,h-u),m=r(o*n,c-g),f=-s/2,_=-o/2,v=r(s,h/i-l),b=r(o,c/n-d);t&&e.drawImage(t,u,g,p,m,f,_,v,b)}},_needsResize:function(){var e=this.getTotalObjectScaling();return e.scaleX!==this._lastScaleX||e.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(e,t){this.setElement(s.util.getById(e),t),s.util.addClass(this.getElement(),s.Image.CSS_CANVAS)},_initConfig:function(e){e||(e={}),this.setOptions(e),this._setWidthHeight(e)},_initFilters:function(e,t){e&&e.length?s.util.enlivenObjects(e,(function(e){t&&t(e)}),"fabric.Image.filters"):t&&t()},_setWidthHeight:function(e){e||(e={});var t=this.getElement();this.width=e.width||t.naturalWidth||t.width||0,this.height=e.height||t.naturalHeight||t.height||0},parsePreserveAspectRatioAttribute:function(){var e,t=s.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),i=this._element.width,n=this._element.height,o=1,r=1,a=0,l=0,d=0,h=0,c=this.width,u=this.height,g={width:c,height:u};return!t||"none"===t.alignX&&"none"===t.alignY?(o=c/i,r=u/n):("meet"===t.meetOrSlice&&(e=(c-i*(o=r=s.util.findScaleToFit(this._element,g)))/2,"Min"===t.alignX&&(a=-e),"Max"===t.alignX&&(a=e),e=(u-n*r)/2,"Min"===t.alignY&&(l=-e),"Max"===t.alignY&&(l=e)),"slice"===t.meetOrSlice&&(e=i-c/(o=r=s.util.findScaleToCover(this._element,g)),"Mid"===t.alignX&&(d=e/2),"Max"===t.alignX&&(d=e),e=n-u/r,"Mid"===t.alignY&&(h=e/2),"Max"===t.alignY&&(h=e),i=c/o,n=u/r)),{width:i,height:n,scaleX:o,scaleY:r,offsetLeft:a,offsetTop:l,cropX:d,cropY:h}}}),s.Image.CSS_CANVAS="canvas-img",s.Image.prototype.getSvgSrc=s.Image.prototype.getSrc,s.Image.fromObject=function(e,t){var i=s.util.object.clone(e);s.util.loadImage(i.src,(function(e,n){n?t&&t(null,!0):s.Image.prototype._initFilters.call(i,i.filters,(function(n){i.filters=n||[],s.Image.prototype._initFilters.call(i,[i.resizeFilter],(function(n){i.resizeFilter=n[0],s.util.enlivenObjectEnlivables(i,i,(function(){var n=new s.Image(e,i);t(n,!1)}))}))}))}),null,i.crossOrigin)},s.Image.fromURL=function(e,t,i){s.util.loadImage(e,(function(e,n){t&&t(new s.Image(e,i),n)}),null,i&&i.crossOrigin)},s.Image.ATTRIBUTE_NAMES=s.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),s.Image.fromElement=function(e,i,n){var o=s.parseAttributes(e,s.Image.ATTRIBUTE_NAMES);s.Image.fromURL(o["xlink:href"],i,t(n?s.util.object.clone(n):{},o))})}(t),s.util.object.extend(s.Object.prototype,{_getAngleValueForStraighten:function(){var e=this.angle%360;return e>0?90*Math.round((e-1)/90):90*Math.round(e/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(e){var t=function(){},i=(e=e||{}).onComplete||t,n=e.onChange||t,o=this;return s.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(e){o.rotate(e),n()},onComplete:function(){o.setCoords(),i()}})}}),s.util.object.extend(s.StaticCanvas.prototype,{straightenObject:function(e){return e.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(e){return e.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){"use strict";function e(e,t){var i="precision "+t+" float;\nvoid main(){}",n=e.createShader(e.FRAGMENT_SHADER);return e.shaderSource(n,i),e.compileShader(n),!!e.getShaderParameter(n,e.COMPILE_STATUS)}function t(e){e&&e.tileSize&&(this.tileSize=e.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}s.isWebglSupported=function(t){if(s.isLikelyNode)return!1;t=t||s.WebglFilterBackend.prototype.tileSize;var i=document.createElement("canvas"),n=i.getContext("webgl")||i.getContext("experimental-webgl"),o=!1;if(n){s.maxTextureSize=n.getParameter(n.MAX_TEXTURE_SIZE),o=s.maxTextureSize>=t;for(var r=["highp","mediump","lowp"],a=0;a<3;a++)if(e(n,r[a])){s.webGlPrecision=r[a];break}}return this.isSupported=o,o},s.WebglFilterBackend=t,t.prototype={tileSize:2048,resources:{},setupGLContext:function(e,t){this.dispose(),this.createWebGLCanvas(e,t),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(e,t)},chooseFastestCopyGLTo2DMethod:function(e,t){var i,n="undefined"!==typeof window.performance;try{new ImageData(1,1),i=!0}catch(p){i=!1}var o="undefined"!==typeof ArrayBuffer,l="undefined"!==typeof Uint8ClampedArray;if(n&&i&&o&&l){var d=s.util.createCanvasElement(),h=new ArrayBuffer(e*t*4);if(s.forceGLPutImageData)return this.imageBuffer=h,void(this.copyGLTo2D=a);var c,u,g={imageBuffer:h,destinationWidth:e,destinationHeight:t,targetCanvas:d};d.width=e,d.height=t,c=window.performance.now(),r.call(g,this.gl,g),u=window.performance.now()-c,c=window.performance.now(),a.call(g,this.gl,g),u>window.performance.now()-c?(this.imageBuffer=h,this.copyGLTo2D=a):this.copyGLTo2D=r}},createWebGLCanvas:function(e,t){var i=s.util.createCanvasElement();i.width=e,i.height=t;var n={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},o=i.getContext("webgl",n);o||(o=i.getContext("experimental-webgl",n)),o&&(o.clearColor(0,0,0,0),this.canvas=i,this.gl=o)},applyFilters:function(e,t,i,n,s,o){var r,a=this.gl;o&&(r=this.getCachedTexture(o,t));var l={originalWidth:t.width||t.originalWidth,originalHeight:t.height||t.originalHeight,sourceWidth:i,sourceHeight:n,destinationWidth:i,destinationHeight:n,context:a,sourceTexture:this.createTexture(a,i,n,!r&&t),targetTexture:this.createTexture(a,i,n),originalTexture:r||this.createTexture(a,i,n,!r&&t),passes:e.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:s},d=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,d),e.forEach((function(e){e&&e.applyTo(l)})),function(e){var t=e.targetCanvas,i=t.width,n=t.height,s=e.destinationWidth,o=e.destinationHeight;i===s&&n===o||(t.width=s,t.height=o)}(l),this.copyGLTo2D(a,l),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(l.sourceTexture),a.deleteTexture(l.targetTexture),a.deleteFramebuffer(d),s.getContext("2d").setTransform(1,0,0,1,0,0),l},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(e,t,i,n,s){var o=e.createTexture();return e.bindTexture(e.TEXTURE_2D,o),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,s||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,s||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),n?e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,n):e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,i,0,e.RGBA,e.UNSIGNED_BYTE,null),o},getCachedTexture:function(e,t){if(this.textureCache[e])return this.textureCache[e];var i=this.createTexture(this.gl,t.width,t.height,t);return this.textureCache[e]=i,i},evictCachesForKey:function(e){this.textureCache[e]&&(this.gl.deleteTexture(this.textureCache[e]),delete this.textureCache[e])},copyGLTo2D:r,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var e=this.gl,t={renderer:"",vendor:""};if(!e)return t;var i=e.getExtension("WEBGL_debug_renderer_info");if(i){var n=e.getParameter(i.UNMASKED_RENDERER_WEBGL),s=e.getParameter(i.UNMASKED_VENDOR_WEBGL);n&&(t.renderer=n.toLowerCase()),s&&(t.vendor=s.toLowerCase())}return this.gpuInfo=t,t}}}(),function(){"use strict";var e=function(){};function t(){}s.Canvas2dFilterBackend=t,t.prototype={evictCachesForKey:e,dispose:e,clearWebGLCaches:e,resources:{},applyFilters:function(e,t,i,n,s){var o=s.getContext("2d");o.drawImage(t,0,0,i,n);var r={sourceWidth:i,sourceHeight:n,imageData:o.getImageData(0,0,i,n),originalEl:t,originalImageData:o.getImageData(0,0,i,n),canvasEl:s,ctx:o,filterBackend:this};return e.forEach((function(e){e.applyTo(r)})),r.imageData.width===i&&r.imageData.height===n||(s.width=r.imageData.width,s.height=r.imageData.height),o.putImageData(r.imageData,0,0),r}}}(),s.Image=s.Image||{},s.Image.filters=s.Image.filters||{},s.Image.filters.BaseFilter=s.util.createClass({type:"BaseFilter",vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvoid main() {\nvTexCoord = aPosition;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:"precision highp float;\nvarying vec2 vTexCoord;\nuniform sampler2D uTexture;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\n}",initialize:function(e){e&&this.setOptions(e)},setOptions:function(e){for(var t in e)this[t]=e[t]},createProgram:function(e,t,i){t=t||this.fragmentSource,i=i||this.vertexSource,"highp"!==s.webGlPrecision&&(t=t.replace(/precision highp float/g,"precision "+s.webGlPrecision+" float"));var n=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(n,i),e.compileShader(n),!e.getShaderParameter(n,e.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+e.getShaderInfoLog(n));var o=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(o,t),e.compileShader(o),!e.getShaderParameter(o,e.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+e.getShaderInfoLog(o));var r=e.createProgram();if(e.attachShader(r,n),e.attachShader(r,o),e.linkProgram(r),!e.getProgramParameter(r,e.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+e.getProgramInfoLog(r));var a=this.getAttributeLocations(e,r),l=this.getUniformLocations(e,r)||{};return l.uStepW=e.getUniformLocation(r,"uStepW"),l.uStepH=e.getUniformLocation(r,"uStepH"),{program:r,attributeLocations:a,uniformLocations:l}},getAttributeLocations:function(e,t){return{aPosition:e.getAttribLocation(t,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(e,t,i){var n=t.aPosition,s=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,s),e.enableVertexAttribArray(n),e.vertexAttribPointer(n,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,i,e.STATIC_DRAW)},_setupFrameBuffer:function(e){var t,i,n=e.context;e.passes>1?(t=e.destinationWidth,i=e.destinationHeight,e.sourceWidth===t&&e.sourceHeight===i||(n.deleteTexture(e.targetTexture),e.targetTexture=e.filterBackend.createTexture(n,t,i)),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e.targetTexture,0)):(n.bindFramebuffer(n.FRAMEBUFFER,null),n.finish())},_swapTextures:function(e){e.passes--,e.pass++;var t=e.targetTexture;e.targetTexture=e.sourceTexture,e.sourceTexture=t},isNeutralState:function(){var e=this.mainParameter,t=s.Image.filters[this.type].prototype;if(e){if(Array.isArray(t[e])){for(var i=t[e].length;i--;)if(this[e][i]!==t[e][i])return!1;return!0}return t[e]===this[e]}return!1},applyTo:function(e){e.webgl?(this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},retrieveShader:function(e){return e.programCache.hasOwnProperty(this.type)||(e.programCache[this.type]=this.createProgram(e.context)),e.programCache[this.type]},applyToWebGL:function(e){var t=e.context,i=this.retrieveShader(e);0===e.pass&&e.originalTexture?t.bindTexture(t.TEXTURE_2D,e.originalTexture):t.bindTexture(t.TEXTURE_2D,e.sourceTexture),t.useProgram(i.program),this.sendAttributeData(t,i.attributeLocations,e.aPosition),t.uniform1f(i.uniformLocations.uStepW,1/e.sourceWidth),t.uniform1f(i.uniformLocations.uStepH,1/e.sourceHeight),this.sendUniformData(t,i.uniformLocations),t.viewport(0,0,e.destinationWidth,e.destinationHeight),t.drawArrays(t.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(e,t,i){e.activeTexture(i),e.bindTexture(e.TEXTURE_2D,t),e.activeTexture(e.TEXTURE0)},unbindAdditionalTexture:function(e,t){e.activeTexture(t),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(e){this[this.mainParameter]=e},sendUniformData:function(){},createHelpLayer:function(e){if(!e.helpLayer){var t=document.createElement("canvas");t.width=e.sourceWidth,t.height=e.sourceHeight,e.helpLayer=t}},toObject:function(){var e={type:this.type},t=this.mainParameter;return t&&(e[t]=this[t]),e},toJSON:function(){return this.toObject()}}),s.Image.filters.BaseFilter.fromObject=function(e,t){var i=new s.Image.filters[e.type](e);return t&&t(i),i},function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.ColorMatrix=n(i.BaseFilter,{type:"ColorMatrix",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nuniform mat4 uColorMatrix;\nuniform vec4 uConstants;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor *= uColorMatrix;\ncolor += uConstants;\ngl_FragColor = color;\n}",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(e){this.callSuper("initialize",e),this.matrix=this.matrix.slice(0)},applyTo2d:function(e){var t,i,n,s,o,r=e.imageData.data,a=r.length,l=this.matrix,d=this.colorsOnly;for(o=0;o<a;o+=4)t=r[o],i=r[o+1],n=r[o+2],d?(r[o]=t*l[0]+i*l[1]+n*l[2]+255*l[4],r[o+1]=t*l[5]+i*l[6]+n*l[7]+255*l[9],r[o+2]=t*l[10]+i*l[11]+n*l[12]+255*l[14]):(s=r[o+3],r[o]=t*l[0]+i*l[1]+n*l[2]+s*l[3]+255*l[4],r[o+1]=t*l[5]+i*l[6]+n*l[7]+s*l[8]+255*l[9],r[o+2]=t*l[10]+i*l[11]+n*l[12]+s*l[13]+255*l[14],r[o+3]=t*l[15]+i*l[16]+n*l[17]+s*l[18]+255*l[19])},getUniformLocations:function(e,t){return{uColorMatrix:e.getUniformLocation(t,"uColorMatrix"),uConstants:e.getUniformLocation(t,"uConstants")}},sendUniformData:function(e,t){var i=this.matrix,n=[i[0],i[1],i[2],i[3],i[5],i[6],i[7],i[8],i[10],i[11],i[12],i[13],i[15],i[16],i[17],i[18]],s=[i[4],i[9],i[14],i[19]];e.uniformMatrix4fv(t.uColorMatrix,!1,n),e.uniform4fv(t.uConstants,s)}}),t.Image.filters.ColorMatrix.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Brightness=n(i.BaseFilter,{type:"Brightness",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBrightness;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += uBrightness;\ngl_FragColor = color;\n}",brightness:0,mainParameter:"brightness",applyTo2d:function(e){if(0!==this.brightness){var t,i=e.imageData.data,n=i.length,s=Math.round(255*this.brightness);for(t=0;t<n;t+=4)i[t]=i[t]+s,i[t+1]=i[t+1]+s,i[t+2]=i[t+2]+s}},getUniformLocations:function(e,t){return{uBrightness:e.getUniformLocation(t,"uBrightness")}},sendUniformData:function(e,t){e.uniform1f(t.uBrightness,this.brightness)}}),t.Image.filters.Brightness.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.Image.filters,s=t.util.createClass;n.Convolute=s(n.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_3_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_5_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_5_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_7_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_7_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_9_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_9_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}"},retrieveShader:function(e){var t=Math.sqrt(this.matrix.length),i=this.type+"_"+t+"_"+(this.opaque?1:0),n=this.fragmentSource[i];return e.programCache.hasOwnProperty(i)||(e.programCache[i]=this.createProgram(e.context,n)),e.programCache[i]},applyTo2d:function(e){var t,i,n,s,o,r,a,l,d,h,c,u,g,p=e.imageData,m=p.data,f=this.matrix,_=Math.round(Math.sqrt(f.length)),v=Math.floor(_/2),b=p.width,C=p.height,y=e.ctx.createImageData(b,C),w=y.data,S=this.opaque?1:0;for(c=0;c<C;c++)for(h=0;h<b;h++){for(o=4*(c*b+h),t=0,i=0,n=0,s=0,g=0;g<_;g++)for(u=0;u<_;u++)r=h+u-v,(a=c+g-v)<0||a>=C||r<0||r>=b||(l=4*(a*b+r),d=f[g*_+u],t+=m[l]*d,i+=m[l+1]*d,n+=m[l+2]*d,S||(s+=m[l+3]*d));w[o]=t,w[o+1]=i,w[o+2]=n,w[o+3]=S?m[o+3]:s}e.imageData=y},getUniformLocations:function(e,t){return{uMatrix:e.getUniformLocation(t,"uMatrix"),uOpaque:e.getUniformLocation(t,"uOpaque"),uHalfSize:e.getUniformLocation(t,"uHalfSize"),uSize:e.getUniformLocation(t,"uSize")}},sendUniformData:function(e,t){e.uniform1fv(t.uMatrix,this.matrix)},toObject:function(){return i(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),t.Image.filters.Convolute.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Grayscale=n(i.BaseFilter,{type:"Grayscale",fragmentSource:{average:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat average = (color.r + color.b + color.g) / 3.0;\ngl_FragColor = vec4(average, average, average, color.a);\n}",lightness:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\ngl_FragColor = vec4(average, average, average, col.a);\n}",luminosity:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\ngl_FragColor = vec4(average, average, average, col.a);\n}"},mode:"average",mainParameter:"mode",applyTo2d:function(e){var t,i,n=e.imageData.data,s=n.length,o=this.mode;for(t=0;t<s;t+=4)"average"===o?i=(n[t]+n[t+1]+n[t+2])/3:"lightness"===o?i=(Math.min(n[t],n[t+1],n[t+2])+Math.max(n[t],n[t+1],n[t+2]))/2:"luminosity"===o&&(i=.21*n[t]+.72*n[t+1]+.07*n[t+2]),n[t]=i,n[t+1]=i,n[t+2]=i},retrieveShader:function(e){var t=this.type+"_"+this.mode;if(!e.programCache.hasOwnProperty(t)){var i=this.fragmentSource[this.mode];e.programCache[t]=this.createProgram(e.context,i)}return e.programCache[t]},getUniformLocations:function(e,t){return{uMode:e.getUniformLocation(t,"uMode")}},sendUniformData:function(e,t){e.uniform1i(t.uMode,1)},isNeutralState:function(){return!1}}),t.Image.filters.Grayscale.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Invert=n(i.BaseFilter,{type:"Invert",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uInvert;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nif (uInvert == 1) {\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\n} else {\ngl_FragColor = color;\n}\n}",invert:!0,mainParameter:"invert",applyTo2d:function(e){var t,i=e.imageData.data,n=i.length;for(t=0;t<n;t+=4)i[t]=255-i[t],i[t+1]=255-i[t+1],i[t+2]=255-i[t+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(e,t){return{uInvert:e.getUniformLocation(t,"uInvert")}},sendUniformData:function(e,t){e.uniform1i(t.uInvert,this.invert)}}),t.Image.filters.Invert.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.Image.filters,s=t.util.createClass;n.Noise=s(n.BaseFilter,{type:"Noise",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uStepH;\nuniform float uNoise;\nuniform float uSeed;\nvarying vec2 vTexCoord;\nfloat rand(vec2 co, float seed, float vScale) {\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\n}\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\ngl_FragColor = color;\n}",mainParameter:"noise",noise:0,applyTo2d:function(e){if(0!==this.noise){var t,i,n=e.imageData.data,s=n.length,o=this.noise;for(t=0,s=n.length;t<s;t+=4)i=(.5-Math.random())*o,n[t]+=i,n[t+1]+=i,n[t+2]+=i}},getUniformLocations:function(e,t){return{uNoise:e.getUniformLocation(t,"uNoise"),uSeed:e.getUniformLocation(t,"uSeed")}},sendUniformData:function(e,t){e.uniform1f(t.uNoise,this.noise/255),e.uniform1f(t.uSeed,Math.random())},toObject:function(){return i(this.callSuper("toObject"),{noise:this.noise})}}),t.Image.filters.Noise.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Pixelate=n(i.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBlocksize;\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nfloat blockW = uBlocksize * uStepW;\nfloat blockH = uBlocksize * uStepW;\nint posX = int(vTexCoord.x / blockW);\nint posY = int(vTexCoord.y / blockH);\nfloat fposX = float(posX);\nfloat fposY = float(posY);\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\nvec4 color = texture2D(uTexture, squareCoords);\ngl_FragColor = color;\n}",applyTo2d:function(e){var t,i,n,s,o,r,a,l,d,h,c,u=e.imageData,g=u.data,p=u.height,m=u.width;for(i=0;i<p;i+=this.blocksize)for(n=0;n<m;n+=this.blocksize)for(s=g[t=4*i*m+4*n],o=g[t+1],r=g[t+2],a=g[t+3],h=Math.min(i+this.blocksize,p),c=Math.min(n+this.blocksize,m),l=i;l<h;l++)for(d=n;d<c;d++)g[t=4*l*m+4*d]=s,g[t+1]=o,g[t+2]=r,g[t+3]=a},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(e,t){return{uBlocksize:e.getUniformLocation(t,"uBlocksize"),uStepW:e.getUniformLocation(t,"uStepW"),uStepH:e.getUniformLocation(t,"uStepH")}},sendUniformData:function(e,t){e.uniform1f(t.uBlocksize,this.blocksize)}}),t.Image.filters.Pixelate.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,n=t.Image.filters,s=t.util.createClass;n.RemoveColor=s(n.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uLow;\nuniform vec4 uHigh;\nvarying vec2 vTexCoord;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\ngl_FragColor.a = 0.0;\n}\n}",distance:.02,useAlpha:!1,applyTo2d:function(e){var i,n,s,o,r=e.imageData.data,a=255*this.distance,l=new t.Color(this.color).getSource(),d=[l[0]-a,l[1]-a,l[2]-a],h=[l[0]+a,l[1]+a,l[2]+a];for(i=0;i<r.length;i+=4)n=r[i],s=r[i+1],o=r[i+2],n>d[0]&&s>d[1]&&o>d[2]&&n<h[0]&&s<h[1]&&o<h[2]&&(r[i+3]=0)},getUniformLocations:function(e,t){return{uLow:e.getUniformLocation(t,"uLow"),uHigh:e.getUniformLocation(t,"uHigh")}},sendUniformData:function(e,i){var n=new t.Color(this.color).getSource(),s=parseFloat(this.distance),o=[0+n[0]/255-s,0+n[1]/255-s,0+n[2]/255-s,1],r=[n[0]/255+s,n[1]/255+s,n[2]/255+s,1];e.uniform4fv(i.uLow,o),e.uniform4fv(i.uHigh,r)},toObject:function(){return i(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),t.Image.filters.RemoveColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass,s={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var o in s)i[o]=n(i.ColorMatrix,{type:o,matrix:s[o],mainParameter:!1,colorsOnly:!0}),t.Image.filters[o].fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,n=t.util.createClass;i.BlendColor=n(i.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",diff:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"if (uColor.r < 0.5) {\ngl_FragColor.r *= 2.0 * uColor.r;\n} else {\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n}\nif (uColor.g < 0.5) {\ngl_FragColor.g *= 2.0 * uColor.g;\n} else {\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n}\nif (uColor.b < 0.5) {\ngl_FragColor.b *= 2.0 * uColor.b;\n} else {\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n}\n",tint:"gl_FragColor.rgb *= (1.0 - uColor.a);\ngl_FragColor.rgb += uColor.rgb;\n"},buildSource:function(e){return"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ngl_FragColor = color;\nif (color.a > 0.0) {\n"+this.fragmentSource[e]+"}\n}"},retrieveShader:function(e){var t,i=this.type+"_"+this.mode;return e.programCache.hasOwnProperty(i)||(t=this.buildSource(this.mode),e.programCache[i]=this.createProgram(e.context,t)),e.programCache[i]},applyTo2d:function(e){var i,n,s,o,r,a,l,d=e.imageData.data,h=d.length,c=1-this.alpha;i=(l=new t.Color(this.color).getSource())[0]*this.alpha,n=l[1]*this.alpha,s=l[2]*this.alpha;for(var u=0;u<h;u+=4)switch(o=d[u],r=d[u+1],a=d[u+2],this.mode){case"multiply":d[u]=o*i/255,d[u+1]=r*n/255,d[u+2]=a*s/255;break;case"screen":d[u]=255-(255-o)*(255-i)/255,d[u+1]=255-(255-r)*(255-n)/255,d[u+2]=255-(255-a)*(255-s)/255;break;case"add":d[u]=o+i,d[u+1]=r+n,d[u+2]=a+s;break;case"diff":case"difference":d[u]=Math.abs(o-i),d[u+1]=Math.abs(r-n),d[u+2]=Math.abs(a-s);break;case"subtract":d[u]=o-i,d[u+1]=r-n,d[u+2]=a-s;break;case"darken":d[u]=Math.min(o,i),d[u+1]=Math.min(r,n),d[u+2]=Math.min(a,s);break;case"lighten":d[u]=Math.max(o,i),d[u+1]=Math.max(r,n),d[u+2]=Math.max(a,s);break;case"overlay":d[u]=i<128?2*o*i/255:255-2*(255-o)*(255-i)/255,d[u+1]=n<128?2*r*n/255:255-2*(255-r)*(255-n)/255,d[u+2]=s<128?2*a*s/255:255-2*(255-a)*(255-s)/255;break;case"exclusion":d[u]=i+o-2*i*o/255,d[u+1]=n+r-2*n*r/255,d[u+2]=s+a-2*s*a/255;break;case"tint":d[u]=i+o*c,d[u+1]=n+r*c,d[u+2]=s+a*c}},getUniformLocations:function(e,t){return{uColor:e.getUniformLocation(t,"uColor")}},sendUniformData:function(e,i){var n=new t.Color(this.color).getSource();n[0]=this.alpha*n[0]/255,n[1]=this.alpha*n[1]/255,n[2]=this.alpha*n[2]/255,n[3]=this.alpha,e.uniform4fv(i.uColor,n)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,n=t.util.createClass;i.BlendImage=n(i.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nuniform mat3 uTransformMatrix;\nvoid main() {\nvTexCoord = aPosition;\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:{multiply:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.rgba *= color2.rgba;\ngl_FragColor = color;\n}",mask:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.a = color2.a;\ngl_FragColor = color;\n}"},retrieveShader:function(e){var t=this.type+"_"+this.mode,i=this.fragmentSource[this.mode];return e.programCache.hasOwnProperty(t)||(e.programCache[t]=this.createProgram(e.context,i)),e.programCache[t]},applyToWebGL:function(e){var t=e.context,i=this.createTexture(e.filterBackend,this.image);this.bindAdditionalTexture(t,i,t.TEXTURE1),this.callSuper("applyToWebGL",e),this.unbindAdditionalTexture(t,t.TEXTURE1)},createTexture:function(e,t){return e.getCachedTexture(t.cacheKey,t._element)},calculateMatrix:function(){var e=this.image,t=e._element.width,i=e._element.height;return[1/e.scaleX,0,0,0,1/e.scaleY,0,-e.left/t,-e.top/i,1]},applyTo2d:function(e){var i,n,s,o,r,a,l,d,h,c,u,g=e.imageData,p=e.filterBackend.resources,m=g.data,f=m.length,_=g.width,v=g.height,b=this.image;p.blendImage||(p.blendImage=t.util.createCanvasElement()),c=(h=p.blendImage).getContext("2d"),h.width!==_||h.height!==v?(h.width=_,h.height=v):c.clearRect(0,0,_,v),c.setTransform(b.scaleX,0,0,b.scaleY,b.left,b.top),c.drawImage(b._element,0,0,_,v),u=c.getImageData(0,0,_,v).data;for(var C=0;C<f;C+=4)switch(r=m[C],a=m[C+1],l=m[C+2],d=m[C+3],i=u[C],n=u[C+1],s=u[C+2],o=u[C+3],this.mode){case"multiply":m[C]=r*i/255,m[C+1]=a*n/255,m[C+2]=l*s/255,m[C+3]=d*o/255;break;case"mask":m[C+3]=o}},getUniformLocations:function(e,t){return{uTransformMatrix:e.getUniformLocation(t,"uTransformMatrix"),uImage:e.getUniformLocation(t,"uImage")}},sendUniformData:function(e,t){var i=this.calculateMatrix();e.uniform1i(t.uImage,1),e.uniformMatrix3fv(t.uTransformMatrix,!1,i)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendImage.fromObject=function(e,i){t.Image.fromObject(e.image,(function(n){var s=t.util.object.clone(e);s.image=n,i(new t.Image.filters.BlendImage(s))}))}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=Math.pow,n=Math.floor,s=Math.sqrt,o=Math.abs,r=Math.round,a=Math.sin,l=Math.ceil,d=t.Image.filters,h=t.util.createClass;d.Resize=h(d.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(e,t){return{uDelta:e.getUniformLocation(t,"uDelta"),uTaps:e.getUniformLocation(t,"uTaps")}},sendUniformData:function(e,t){e.uniform2fv(t.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),e.uniform1fv(t.uTaps,this.taps)},retrieveShader:function(e){var t=this.getFilterWindow(),i=this.type+"_"+t;if(!e.programCache.hasOwnProperty(i)){var n=this.generateShader(t);e.programCache[i]=this.createProgram(e.context,n)}return e.programCache[i]},getFilterWindow:function(){var e=this.tempScale;return Math.ceil(this.lanczosLobes/e)},getTaps:function(){for(var e=this.lanczosCreate(this.lanczosLobes),t=this.tempScale,i=this.getFilterWindow(),n=new Array(i),s=1;s<=i;s++)n[s-1]=e(s*t);return n},generateShader:function(e){for(var t=new Array(e),i=this.fragmentSourceTOP,n=1;n<=e;n++)t[n-1]=n+".0 * uDelta";return i+="uniform float uTaps["+e+"];\n",i+="void main() {\n",i+=" vec4 color = texture2D(uTexture, vTexCoord);\n",i+=" float sum = 1.0;\n",t.forEach((function(e,t){i+=" color += texture2D(uTexture, vTexCoord + "+e+") * uTaps["+t+"];\n",i+=" color += texture2D(uTexture, vTexCoord - "+e+") * uTaps["+t+"];\n",i+=" sum += 2.0 * uTaps["+t+"];\n"})),i+=" gl_FragColor = color / sum;\n",i+="}"},fragmentSourceTOP:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\n",applyTo:function(e){e.webgl?(e.passes++,this.width=e.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=e.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),e.destinationWidth=this.dW,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceWidth=e.destinationWidth,this.height=e.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),e.destinationHeight=this.dH,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceHeight=e.destinationHeight):this.applyTo2d(e)},isNeutralState:function(){return 1===this.scaleX&&1===this.scaleY},lanczosCreate:function(e){return function(t){if(t>=e||t<=-e)return 0;if(t<1.1920929e-7&&t>-1.1920929e-7)return 1;var i=(t*=Math.PI)/e;return a(t)/t*a(i)/i}},applyTo2d:function(e){var t=e.imageData,i=this.scaleX,n=this.scaleY;this.rcpScaleX=1/i,this.rcpScaleY=1/n;var s,o=t.width,a=t.height,l=r(o*i),d=r(a*n);"sliceHack"===this.resizeType?s=this.sliceByTwo(e,o,a,l,d):"hermite"===this.resizeType?s=this.hermiteFastResize(e,o,a,l,d):"bilinear"===this.resizeType?s=this.bilinearFiltering(e,o,a,l,d):"lanczos"===this.resizeType&&(s=this.lanczosResize(e,o,a,l,d)),e.imageData=s},sliceByTwo:function(e,i,s,o,r){var a,l,d=e.imageData,h=.5,c=!1,u=!1,g=i*h,p=s*h,m=t.filterBackend.resources,f=0,_=0,v=i,b=0;for(m.sliceByTwo||(m.sliceByTwo=document.createElement("canvas")),((a=m.sliceByTwo).width<1.5*i||a.height<s)&&(a.width=1.5*i,a.height=s),(l=a.getContext("2d")).clearRect(0,0,1.5*i,s),l.putImageData(d,0,0),o=n(o),r=n(r);!c||!u;)i=g,s=p,o<n(g*h)?g=n(g*h):(g=o,c=!0),r<n(p*h)?p=n(p*h):(p=r,u=!0),l.drawImage(a,f,_,i,s,v,b,g,p),f=v,_=b,b+=p;return l.getImageData(f,_,o,r)},lanczosResize:function(e,t,r,a,d){var h=e.imageData.data,c=e.ctx.createImageData(a,d),u=c.data,g=this.lanczosCreate(this.lanczosLobes),p=this.rcpScaleX,m=this.rcpScaleY,f=2/this.rcpScaleX,_=2/this.rcpScaleY,v=l(p*this.lanczosLobes/2),b=l(m*this.lanczosLobes/2),C={},y={},w={};return function e(l){var S,k,x,L,D,E,N,T,I,M,A;for(y.x=(l+.5)*p,w.x=n(y.x),S=0;S<d;S++){for(y.y=(S+.5)*m,w.y=n(y.y),D=0,E=0,N=0,T=0,I=0,k=w.x-v;k<=w.x+v;k++)if(!(k<0||k>=t)){M=n(1e3*o(k-y.x)),C[M]||(C[M]={});for(var R=w.y-b;R<=w.y+b;R++)R<0||R>=r||(A=n(1e3*o(R-y.y)),C[M][A]||(C[M][A]=g(s(i(M*f,2)+i(A*_,2))/1e3)),(x=C[M][A])>0&&(D+=x,E+=x*h[L=4*(R*t+k)],N+=x*h[L+1],T+=x*h[L+2],I+=x*h[L+3]))}u[L=4*(S*a+l)]=E/D,u[L+1]=N/D,u[L+2]=T/D,u[L+3]=I/D}return++l<a?e(l):c}(0)},bilinearFiltering:function(e,t,i,s,o){var r,a,l,d,h,c,u,g,p,m=0,f=this.rcpScaleX,_=this.rcpScaleY,v=4*(t-1),b=e.imageData.data,C=e.ctx.createImageData(s,o),y=C.data;for(l=0;l<o;l++)for(d=0;d<s;d++)for(h=f*d-(r=n(f*d)),c=_*l-(a=n(_*l)),p=4*(a*t+r),u=0;u<4;u++)g=b[p+u]*(1-h)*(1-c)+b[p+4+u]*h*(1-c)+b[p+v+u]*c*(1-h)+b[p+v+4+u]*h*c,y[m++]=g;return C},hermiteFastResize:function(e,t,i,r,a){for(var d=this.rcpScaleX,h=this.rcpScaleY,c=l(d/2),u=l(h/2),g=e.imageData.data,p=e.ctx.createImageData(r,a),m=p.data,f=0;f<a;f++)for(var _=0;_<r;_++){for(var v=4*(_+f*r),b=0,C=0,y=0,w=0,S=0,k=0,x=0,L=(f+.5)*h,D=n(f*h);D<(f+1)*h;D++)for(var E=o(L-(D+.5))/u,N=(_+.5)*d,T=E*E,I=n(_*d);I<(_+1)*d;I++){var M=o(N-(I+.5))/c,A=s(T+M*M);A>1&&A<-1||(b=2*A*A*A-3*A*A+1)>0&&(x+=b*g[(M=4*(I+D*t))+3],y+=b,g[M+3]<255&&(b=b*g[M+3]/250),w+=b*g[M],S+=b*g[M+1],k+=b*g[M+2],C+=b)}m[v]=w/C,m[v+1]=S/C,m[v+2]=k/C,m[v+3]=x/y}return p},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),t.Image.filters.Resize.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Contrast=n(i.BaseFilter,{type:"Contrast",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uContrast;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\ngl_FragColor = color;\n}",contrast:0,mainParameter:"contrast",applyTo2d:function(e){if(0!==this.contrast){var t,i=e.imageData.data,n=i.length,s=Math.floor(255*this.contrast),o=259*(s+255)/(255*(259-s));for(t=0;t<n;t+=4)i[t]=o*(i[t]-128)+128,i[t+1]=o*(i[t+1]-128)+128,i[t+2]=o*(i[t+2]-128)+128}},getUniformLocations:function(e,t){return{uContrast:e.getUniformLocation(t,"uContrast")}},sendUniformData:function(e,t){e.uniform1f(t.uContrast,this.contrast)}}),t.Image.filters.Contrast.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Saturation=n(i.BaseFilter,{type:"Saturation",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uSaturation;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat rgMax = max(color.r, color.g);\nfloat rgbMax = max(rgMax, color.b);\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\ngl_FragColor = color;\n}",saturation:0,mainParameter:"saturation",applyTo2d:function(e){if(0!==this.saturation){var t,i,n=e.imageData.data,s=n.length,o=-this.saturation;for(t=0;t<s;t+=4)i=Math.max(n[t],n[t+1],n[t+2]),n[t]+=i!==n[t]?(i-n[t])*o:0,n[t+1]+=i!==n[t+1]?(i-n[t+1])*o:0,n[t+2]+=i!==n[t+2]?(i-n[t+2])*o:0}},getUniformLocations:function(e,t){return{uSaturation:e.getUniformLocation(t,"uSaturation")}},sendUniformData:function(e,t){e.uniform1f(t.uSaturation,-this.saturation)}}),t.Image.filters.Saturation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Vibrance=n(i.BaseFilter,{type:"Vibrance",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uVibrance;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat max = max(color.r, max(color.g, color.b));\nfloat avg = (color.r + color.g + color.b) / 3.0;\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\ngl_FragColor = color;\n}",vibrance:0,mainParameter:"vibrance",applyTo2d:function(e){if(0!==this.vibrance){var t,i,n,s,o=e.imageData.data,r=o.length,a=-this.vibrance;for(t=0;t<r;t+=4)i=Math.max(o[t],o[t+1],o[t+2]),n=(o[t]+o[t+1]+o[t+2])/3,s=2*Math.abs(i-n)/255*a,o[t]+=i!==o[t]?(i-o[t])*s:0,o[t+1]+=i!==o[t+1]?(i-o[t+1])*s:0,o[t+2]+=i!==o[t+2]?(i-o[t+2])*s:0}},getUniformLocations:function(e,t){return{uVibrance:e.getUniformLocation(t,"uVibrance")}},sendUniformData:function(e,t){e.uniform1f(t.uVibrance,-this.vibrance)}}),t.Image.filters.Vibrance.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Blur=n(i.BaseFilter,{type:"Blur",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\nconst float nSamples = 15.0;\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\nfloat random(vec3 scale) {\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n}\nvoid main() {\nvec4 color = vec4(0.0);\nfloat total = 0.0;\nfloat offset = random(v3offset);\nfor (float t = -nSamples; t <= nSamples; t++) {\nfloat percent = (t + offset - 0.5) / nSamples;\nfloat weight = 1.0 - abs(percent);\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\ntotal += weight;\n}\ngl_FragColor = color / total;\n}",blur:0,mainParameter:"blur",applyTo:function(e){e.webgl?(this.aspectRatio=e.sourceWidth/e.sourceHeight,e.passes++,this._setupFrameBuffer(e),this.horizontal=!0,this.applyToWebGL(e),this._swapTextures(e),this._setupFrameBuffer(e),this.horizontal=!1,this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},applyTo2d:function(e){e.imageData=this.simpleBlur(e)},simpleBlur:function(e){var i,n,s=e.filterBackend.resources,o=e.imageData.width,r=e.imageData.height;s.blurLayer1||(s.blurLayer1=t.util.createCanvasElement(),s.blurLayer2=t.util.createCanvasElement()),i=s.blurLayer1,n=s.blurLayer2,i.width===o&&i.height===r||(n.width=i.width=o,n.height=i.height=r);var a,l,d,h,c=i.getContext("2d"),u=n.getContext("2d"),g=15,p=.06*this.blur*.5;for(c.putImageData(e.imageData,0,0),u.clearRect(0,0,o,r),h=-15;h<=g;h++)d=p*(l=h/g)*o+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(l),u.drawImage(i,d,a),c.drawImage(n,0,0),u.globalAlpha=1,u.clearRect(0,0,n.width,n.height);for(h=-15;h<=g;h++)d=p*(l=h/g)*r+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(l),u.drawImage(i,a,d),c.drawImage(n,0,0),u.globalAlpha=1,u.clearRect(0,0,n.width,n.height);e.ctx.drawImage(i,0,0);var m=e.ctx.getImageData(0,0,i.width,i.height);return c.globalAlpha=1,c.clearRect(0,0,i.width,i.height),m},getUniformLocations:function(e,t){return{delta:e.getUniformLocation(t,"uDelta")}},sendUniformData:function(e,t){var i=this.chooseRightDelta();e.uniform2fv(t.delta,i)},chooseRightDelta:function(){var e,t=1,i=[0,0];return this.horizontal?this.aspectRatio>1&&(t=1/this.aspectRatio):this.aspectRatio<1&&(t=this.aspectRatio),e=t*this.blur*.12,this.horizontal?i[0]=e:i[1]=e,i}}),i.Blur.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Gamma=n(i.BaseFilter,{type:"Gamma",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec3 uGamma;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec3 correction = (1.0 / uGamma);\ncolor.r = pow(color.r, correction.r);\ncolor.g = pow(color.g, correction.g);\ncolor.b = pow(color.b, correction.b);\ngl_FragColor = color;\ngl_FragColor.rgb *= color.a;\n}",gamma:[1,1,1],mainParameter:"gamma",initialize:function(e){this.gamma=[1,1,1],i.BaseFilter.prototype.initialize.call(this,e)},applyTo2d:function(e){var t,i=e.imageData.data,n=this.gamma,s=i.length,o=1/n[0],r=1/n[1],a=1/n[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),t=0,s=256;t<s;t++)this.rVals[t]=255*Math.pow(t/255,o),this.gVals[t]=255*Math.pow(t/255,r),this.bVals[t]=255*Math.pow(t/255,a);for(t=0,s=i.length;t<s;t+=4)i[t]=this.rVals[i[t]],i[t+1]=this.gVals[i[t+1]],i[t+2]=this.bVals[i[t+2]]},getUniformLocations:function(e,t){return{uGamma:e.getUniformLocation(t,"uGamma")}},sendUniformData:function(e,t){e.uniform3fv(t.uGamma,this.gamma)}}),t.Image.filters.Gamma.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.Composed=n(i.BaseFilter,{type:"Composed",subFilters:[],initialize:function(e){this.callSuper("initialize",e),this.subFilters=this.subFilters.slice(0)},applyTo:function(e){e.passes+=this.subFilters.length-1,this.subFilters.forEach((function(t){t.applyTo(e)}))},toObject:function(){return t.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map((function(e){return e.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(e){return!e.isNeutralState()}))}}),t.Image.filters.Composed.fromObject=function(e,i){var n=(e.subFilters||[]).map((function(e){return new t.Image.filters[e.type](e)})),s=new t.Image.filters.Composed({subFilters:n});return i&&i(s),s}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,n=t.util.createClass;i.HueRotation=n(i.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var e=this.rotation*Math.PI,i=t.util.cos(e),n=t.util.sin(e),s=1/3,o=Math.sqrt(s)*n,r=1-i;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=i+r/3,this.matrix[1]=s*r-o,this.matrix[2]=s*r+o,this.matrix[5]=s*r+o,this.matrix[6]=i+s*r,this.matrix[7]=s*r-o,this.matrix[10]=s*r-o,this.matrix[11]=s*r+o,this.matrix[12]=i+s*r},isNeutralState:function(e){return this.calculateMatrix(),i.BaseFilter.prototype.isNeutralState.call(this,e)},applyTo:function(e){this.calculateMatrix(),i.BaseFilter.prototype.applyTo.call(this,e)}}),t.Image.filters.HueRotation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.clone;if(t.Text)t.warn("fabric.Text is already defined");else{var n="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");t.Text=t.util.createClass(t.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:t.Object.prototype.stateProperties.concat(n),cacheProperties:t.Object.prototype.cacheProperties.concat(n),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(e,t){this.styles=t&&t.styles||{},this.text=e,this.__skipDimension=!0,this.callSuper("initialize",t),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var e=this.path;e&&(e.segmentsInfo=t.util.getPathSegmentsInfo(e.path))},getMeasuringContext:function(){return t._measuringContext||(t._measuringContext=this.canvas&&this.canvas.contextCache||t.util.createCanvasElement().getContext("2d")),t._measuringContext},_splitText:function(){var e=this._splitTextIntoLines(this.text);return this.textLines=e.lines,this._textLines=e.graphemeLines,this._unwrappedTextLines=e._unwrappedLines,this._text=e.graphemeText,e},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"}))},enlargeSpaces:function(){for(var e,t,i,n,s,o,r,a=0,l=this._textLines.length;a<l;a++)if(("justify"===this.textAlign||a!==l-1&&!this.isEndOfWrapping(a))&&(n=0,s=this._textLines[a],(t=this.getLineWidth(a))<this.width&&(r=this.textLines[a].match(this._reSpacesAndTabs)))){i=r.length,e=(this.width-t)/i;for(var d=0,h=s.length;d<=h;d++)o=this.__charBounds[a][d],this._reSpaceAndTab.test(s[d])?(o.width+=e,o.kernedWidth+=e,o.left+=n,n+=e):o.left+=n}},isEndOfWrapping:function(e){return e===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var e=this.callSuper("_getCacheCanvasDimensions"),t=this.fontSize;return e.width+=t*e.zoomX,e.height+=t*e.zoomY,e},_render:function(e){var t=this.path;t&&!t.isNotVisible()&&t._render(e),this._setTextStyles(e),this._renderTextLinesBackground(e),this._renderTextDecoration(e,"underline"),this._renderText(e),this._renderTextDecoration(e,"overline"),this._renderTextDecoration(e,"linethrough")},_renderText:function(e){"stroke"===this.paintFirst?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))},_setTextStyles:function(e,t,i){if(e.textBaseline="alphabetical",this.path)switch(this.pathAlign){case"center":e.textBaseline="middle";break;case"ascender":e.textBaseline="top";break;case"descender":e.textBaseline="bottom"}e.font=this._getFontDeclaration(t,i)},calcTextWidth:function(){for(var e=this.getLineWidth(0),t=1,i=this._textLines.length;t<i;t++){var n=this.getLineWidth(t);n>e&&(e=n)}return e},_renderTextLine:function(e,t,i,n,s,o){this._renderChars(e,t,i,n,s,o)},_renderTextLinesBackground:function(e){if(this.textBackgroundColor||this.styleHas("textBackgroundColor")){for(var t,i,n,s,o,r,a,l=e.fillStyle,d=this._getLeftOffset(),h=this._getTopOffset(),c=0,u=0,g=this.path,p=0,m=this._textLines.length;p<m;p++)if(t=this.getHeightOfLine(p),this.textBackgroundColor||this.styleHas("textBackgroundColor",p)){n=this._textLines[p],i=this._getLineLeftOffset(p),u=0,c=0,s=this.getValueOfPropertyAt(p,0,"textBackgroundColor");for(var f=0,_=n.length;f<_;f++)o=this.__charBounds[p][f],r=this.getValueOfPropertyAt(p,f,"textBackgroundColor"),g?(e.save(),e.translate(o.renderLeft,o.renderTop),e.rotate(o.angle),e.fillStyle=r,r&&e.fillRect(-o.width/2,-t/this.lineHeight*(1-this._fontSizeFraction),o.width,t/this.lineHeight),e.restore()):r!==s?(a=d+i+c,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=s,s&&e.fillRect(a,h,u,t/this.lineHeight),c=o.left,u=o.width,s=r):u+=o.kernedWidth;r&&!g&&(a=d+i+c,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=r,e.fillRect(a,h,u,t/this.lineHeight)),h+=t}else h+=t;e.fillStyle=l,this._removeShadow(e)}},getFontCache:function(e){var i=e.fontFamily.toLowerCase();t.charWidthsCache[i]||(t.charWidthsCache[i]={});var n=t.charWidthsCache[i],s=e.fontStyle.toLowerCase()+"_"+(e.fontWeight+"").toLowerCase();return n[s]||(n[s]={}),n[s]},_measureChar:function(e,t,i,n){var s,o,r,a,l=this.getFontCache(t),d=i+e,h=this._getFontDeclaration(t)===this._getFontDeclaration(n),c=t.fontSize/this.CACHE_FONT_SIZE;if(i&&void 0!==l[i]&&(r=l[i]),void 0!==l[e]&&(a=s=l[e]),h&&void 0!==l[d]&&(a=(o=l[d])-r),void 0===s||void 0===r||void 0===o){var u=this.getMeasuringContext();this._setTextStyles(u,t,!0)}return void 0===s&&(a=s=u.measureText(e).width,l[e]=s),void 0===r&&h&&i&&(r=u.measureText(i).width,l[i]=r),h&&void 0===o&&(o=u.measureText(d).width,l[d]=o,a=o-r),{width:s*c,kernedWidth:a*c}},getHeightOfChar:function(e,t){return this.getValueOfPropertyAt(e,t,"fontSize")},measureLine:function(e){var t=this._measureLine(e);return 0!==this.charSpacing&&(t.width-=this._getWidthOfCharSpacing()),t.width<0&&(t.width=0),t},_measureLine:function(e){var i,n,s,o,r,a,l=0,d=this._textLines[e],h=new Array(d.length),c=0,u=this.path,g="right"===this.pathSide;for(this.__charBounds[e]=h,i=0;i<d.length;i++)n=d[i],o=this._getGraphemeBox(n,e,i,s),h[i]=o,l+=o.kernedWidth,s=n;if(h[i]={left:o?o.left+o.width:0,width:0,kernedWidth:0,height:this.fontSize},u){switch(a=u.segmentsInfo[u.segmentsInfo.length-1].length,(r=t.util.getPointOnPath(u.path,0,u.segmentsInfo)).x+=u.pathOffset.x,r.y+=u.pathOffset.y,this.textAlign){case"left":c=g?a-l:0;break;case"center":c=(a-l)/2;break;case"right":c=g?0:a-l}for(c+=this.pathStartOffset*(g?-1:1),i=g?d.length-1:0;g?i>=0:i<d.length;g?i--:i++)o=h[i],c>a?c%=a:c<0&&(c+=a),this._setGraphemeOnPath(c,o,r),c+=o.kernedWidth}return{width:l,numOfSpaces:0}},_setGraphemeOnPath:function(e,i,n){var s=e+i.kernedWidth/2,o=this.path,r=t.util.getPointOnPath(o.path,s,o.segmentsInfo);i.renderLeft=r.x-n.x,i.renderTop=r.y-n.y,i.angle=r.angle+("right"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(e,t,i,n,s){var o,r=this.getCompleteStyleDeclaration(t,i),a=n?this.getCompleteStyleDeclaration(t,i-1):{},l=this._measureChar(e,r,n,a),d=l.kernedWidth,h=l.width;0!==this.charSpacing&&(h+=o=this._getWidthOfCharSpacing(),d+=o);var c={width:h,left:0,height:r.fontSize,kernedWidth:d,deltaY:r.deltaY};if(i>0&&!s){var u=this.__charBounds[t][i-1];c.left=u.left+u.width+l.kernedWidth-l.width}return c},getHeightOfLine:function(e){if(this.__lineHeights[e])return this.__lineHeights[e];for(var t=this._textLines[e],i=this.getHeightOfChar(e,0),n=1,s=t.length;n<s;n++)i=Math.max(this.getHeightOfChar(e,n),i);return this.__lineHeights[e]=i*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var e,t=0,i=0,n=this._textLines.length;i<n;i++)e=this.getHeightOfLine(i),t+=i===n-1?e/this.lineHeight:e;return t},_getLeftOffset:function(){return"ltr"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(e,t){e.save();for(var i=0,n=this._getLeftOffset(),s=this._getTopOffset(),o=0,r=this._textLines.length;o<r;o++){var a=this.getHeightOfLine(o),l=a/this.lineHeight,d=this._getLineLeftOffset(o);this._renderTextLine(t,e,this._textLines[o],n+d,s+i+l,o),i+=a}e.restore()},_renderTextFill:function(e){(this.fill||this.styleHas("fill"))&&this._renderTextCommon(e,"fillText")},_renderTextStroke:function(e){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this._setLineDash(e,this.strokeDashArray),e.beginPath(),this._renderTextCommon(e,"strokeText"),e.closePath(),e.restore())},_renderChars:function(e,i,n,s,o,r){var a,l,d,h,c,u=this.getHeightOfLine(r),g=-1!==this.textAlign.indexOf("justify"),p="",m=0,f=this.path,_=!g&&0===this.charSpacing&&this.isEmptyStyles(r)&&!f,v="ltr"===this.direction,b="ltr"===this.direction?1:-1,C=i.canvas.getAttribute("dir");if(i.save(),C!==this.direction&&(i.canvas.setAttribute("dir",v?"ltr":"rtl"),i.direction=v?"ltr":"rtl",i.textAlign=v?"left":"right"),o-=u*this._fontSizeFraction/this.lineHeight,_)return this._renderChar(e,i,r,0,n.join(""),s,o,u),void i.restore();for(var y=0,w=n.length-1;y<=w;y++)h=y===w||this.charSpacing||f,p+=n[y],d=this.__charBounds[r][y],0===m?(s+=b*(d.kernedWidth-d.width),m+=d.width):m+=d.kernedWidth,g&&!h&&this._reSpaceAndTab.test(n[y])&&(h=!0),h||(a=a||this.getCompleteStyleDeclaration(r,y),l=this.getCompleteStyleDeclaration(r,y+1),h=t.util.hasStyleChanged(a,l,!1)),h&&(f?(i.save(),i.translate(d.renderLeft,d.renderTop),i.rotate(d.angle),this._renderChar(e,i,r,y,p,-m/2,0,u),i.restore()):(c=s,this._renderChar(e,i,r,y,p,c,o,u)),p="",a=l,s+=b*m,m=0);i.restore()},_applyPatternGradientTransformText:function(e){var i,n=t.util.createCanvasElement(),s=this.width+this.strokeWidth,o=this.height+this.strokeWidth;return n.width=s,n.height=o,(i=n.getContext("2d")).beginPath(),i.moveTo(0,0),i.lineTo(s,0),i.lineTo(s,o),i.lineTo(0,o),i.closePath(),i.translate(s/2,o/2),i.fillStyle=e.toLive(i),this._applyPatternGradientTransform(i,e),i.fill(),i.createPattern(n,"no-repeat")},handleFiller:function(e,t,i){var n,s;return i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?(n=-this.width/2,s=-this.height/2,e.translate(n,s),e[t]=this._applyPatternGradientTransformText(i),{offsetX:n,offsetY:s}):(e[t]=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):(e[t]=i,{offsetX:0,offsetY:0})},_setStrokeStyles:function(e,t){return e.lineWidth=t.strokeWidth,e.lineCap=this.strokeLineCap,e.lineDashOffset=this.strokeDashOffset,e.lineJoin=this.strokeLineJoin,e.miterLimit=this.strokeMiterLimit,this.handleFiller(e,"strokeStyle",t.stroke)},_setFillStyles:function(e,t){return this.handleFiller(e,"fillStyle",t.fill)},_renderChar:function(e,t,i,n,s,o,r){var a,l,d=this._getStyleDeclaration(i,n),h=this.getCompleteStyleDeclaration(i,n),c="fillText"===e&&h.fill,u="strokeText"===e&&h.stroke&&h.strokeWidth;(u||c)&&(t.save(),c&&(a=this._setFillStyles(t,h)),u&&(l=this._setStrokeStyles(t,h)),t.font=this._getFontDeclaration(h),d&&d.textBackgroundColor&&this._removeShadow(t),d&&d.deltaY&&(r+=d.deltaY),c&&t.fillText(s,o-a.offsetX,r-a.offsetY),u&&t.strokeText(s,o-l.offsetX,r-l.offsetY),t.restore())},setSuperscript:function(e,t){return this._setScript(e,t,this.superscript)},setSubscript:function(e,t){return this._setScript(e,t,this.subscript)},_setScript:function(e,t,i){var n=this.get2DCursorLocation(e,!0),s=this.getValueOfPropertyAt(n.lineIndex,n.charIndex,"fontSize"),o=this.getValueOfPropertyAt(n.lineIndex,n.charIndex,"deltaY"),r={fontSize:s*i.size,deltaY:o+s*i.baseline};return this.setSelectionStyles(r,e,t),this},_getLineLeftOffset:function(e){var t=this.getLineWidth(e),i=this.width-t,n=this.textAlign,s=this.direction,o=0,r=this.isEndOfWrapping(e);return"justify"===n||"justify-center"===n&&!r||"justify-right"===n&&!r||"justify-left"===n&&!r?0:("center"===n&&(o=i/2),"right"===n&&(o=i),"justify-center"===n&&(o=i/2),"justify-right"===n&&(o=i),"rtl"===s&&(o-=i),o)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var e=this._forceClearCache;return e||(e=this.hasStateChanged("_dimensionAffectingProps")),e&&(this.dirty=!0,this._forceClearCache=!1),e},getLineWidth:function(e){if(void 0!==this.__lineWidths[e])return this.__lineWidths[e];var t=this.measureLine(e).width;return this.__lineWidths[e]=t,t},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(e,t,i){var n=this._getStyleDeclaration(e,t);return n&&"undefined"!==typeof n[i]?n[i]:this[i]},_renderTextDecoration:function(e,t){if(this[t]||this.styleHas(t)){for(var i,n,s,o,r,a,l,d,h,c,u,g,p,m,f,_,v=this._getLeftOffset(),b=this._getTopOffset(),C=this.path,y=this._getWidthOfCharSpacing(),w=this.offsets[t],S=0,k=this._textLines.length;S<k;S++)if(i=this.getHeightOfLine(S),this[t]||this.styleHas(t,S)){l=this._textLines[S],m=i/this.lineHeight,o=this._getLineLeftOffset(S),c=0,u=0,d=this.getValueOfPropertyAt(S,0,t),_=this.getValueOfPropertyAt(S,0,"fill"),h=b+m*(1-this._fontSizeFraction),n=this.getHeightOfChar(S,0),r=this.getValueOfPropertyAt(S,0,"deltaY");for(var x=0,L=l.length;x<L;x++)if(g=this.__charBounds[S][x],p=this.getValueOfPropertyAt(S,x,t),f=this.getValueOfPropertyAt(S,x,"fill"),s=this.getHeightOfChar(S,x),a=this.getValueOfPropertyAt(S,x,"deltaY"),C&&p&&f)e.save(),e.fillStyle=_,e.translate(g.renderLeft,g.renderTop),e.rotate(g.angle),e.fillRect(-g.kernedWidth/2,w*s+a,g.kernedWidth,this.fontSize/15),e.restore();else if((p!==d||f!==_||s!==n||a!==r)&&u>0){var D=v+o+c;"rtl"===this.direction&&(D=this.width-D-u),d&&_&&(e.fillStyle=_,e.fillRect(D,h+w*n+r,u,this.fontSize/15)),c=g.left,u=g.width,d=p,_=f,n=s,r=a}else u+=g.kernedWidth;D=v+o+c;"rtl"===this.direction&&(D=this.width-D-u),e.fillStyle=f,p&&f&&e.fillRect(D,h+w*n+r,u-y,this.fontSize/15),b+=i}else b+=i;this._removeShadow(e)}},_getFontDeclaration:function(e,i){var n=e||this,s=this.fontFamily,o=t.Text.genericFonts.indexOf(s.toLowerCase())>-1,r=void 0===s||s.indexOf("'")>-1||s.indexOf(",")>-1||s.indexOf('"')>-1||o?n.fontFamily:'"'+n.fontFamily+'"';return[t.isLikelyNode?n.fontWeight:n.fontStyle,t.isLikelyNode?n.fontStyle:n.fontWeight,i?this.CACHE_FONT_SIZE+"px":n.fontSize+"px",r].join(" ")},render:function(e){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",e)))},_splitTextIntoLines:function(e){for(var i=e.split(this._reNewline),n=new Array(i.length),s=["\n"],o=[],r=0;r<i.length;r++)n[r]=t.util.string.graphemeSplit(i[r]),o=o.concat(n[r],s);return o.pop(),{_unwrappedLines:n,lines:i,graphemeText:o,graphemeLines:n}},toObject:function(e){var i=n.concat(e),s=this.callSuper("toObject",i);return s.styles=t.util.stylesToArray(this.styles,this.text),s.path&&(s.path=this.path.toObject()),s},set:function(e,t){this.callSuper("set",e,t);var i=!1,n=!1;if("object"===typeof e)for(var s in e)"path"===s&&this.setPathInfo(),i=i||-1!==this._dimensionAffectingProps.indexOf(s),n=n||"path"===s;else i=-1!==this._dimensionAffectingProps.indexOf(e),n="path"===e;return n&&this.setPathInfo(),i&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),t.Text.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),t.Text.DEFAULT_SVG_FONT_SIZE=16,t.Text.fromElement=function(e,n,s){if(!e)return n(null);var o=t.parseAttributes(e,t.Text.ATTRIBUTE_NAMES),r=o.textAnchor||"left";if((s=t.util.object.extend(s?i(s):{},o)).top=s.top||0,s.left=s.left||0,o.textDecoration){var a=o.textDecoration;-1!==a.indexOf("underline")&&(s.underline=!0),-1!==a.indexOf("overline")&&(s.overline=!0),-1!==a.indexOf("line-through")&&(s.linethrough=!0),delete s.textDecoration}"dx"in o&&(s.left+=o.dx),"dy"in o&&(s.top+=o.dy),"fontSize"in s||(s.fontSize=t.Text.DEFAULT_SVG_FONT_SIZE);var l="";"textContent"in e?l=e.textContent:"firstChild"in e&&null!==e.firstChild&&"data"in e.firstChild&&null!==e.firstChild.data&&(l=e.firstChild.data),l=l.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var d=s.strokeWidth;s.strokeWidth=0;var h=new t.Text(l,s),c=h.getScaledHeight()/h.height,u=((h.height+h.strokeWidth)*h.lineHeight-h.height)*c,g=h.getScaledHeight()+u,p=0;"center"===r&&(p=h.getScaledWidth()/2),"right"===r&&(p=h.getScaledWidth()),h.set({left:h.left-p,top:h.top-(g-h.fontSize*(.07+h._fontSizeFraction))/h.lineHeight,strokeWidth:"undefined"!==typeof d?d:1}),n(h)},t.Text.fromObject=function(e,n){var s=i(e),o=e.path;return delete s.path,t.Object._fromObject("Text",s,(function(i){i.styles=t.util.stylesFromArray(e.styles,e.text),o?t.Object._fromObject("Path",o,(function(e){i.set("path",e),n(i)}),"path"):n(i)}),"text")},t.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],t.util.createAccessors&&t.util.createAccessors(t.Text)}}(t),s.util.object.extend(s.Text.prototype,{isEmptyStyles:function(e){if(!this.styles)return!0;if("undefined"!==typeof e&&!this.styles[e])return!0;var t="undefined"===typeof e?this.styles:{line:this.styles[e]};for(var i in t)for(var n in t[i])for(var s in t[i][n])return!1;return!0},styleHas:function(e,t){if(!this.styles||!e||""===e)return!1;if("undefined"!==typeof t&&!this.styles[t])return!1;var i="undefined"===typeof t?this.styles:{0:this.styles[t]};for(var n in i)for(var s in i[n])if("undefined"!==typeof i[n][s][e])return!0;return!1},cleanStyle:function(e){if(!this.styles||!e||""===e)return!1;var t,i,n=this.styles,s=0,o=!0,r=0;for(var a in n){for(var l in t=0,n[a]){var d;s++,(d=n[a][l]).hasOwnProperty(e)?(i?d[e]!==i&&(o=!1):i=d[e],d[e]===this[e]&&delete d[e]):o=!1,0!==Object.keys(d).length?t++:delete n[a][l]}0===t&&delete n[a]}for(var h=0;h<this._textLines.length;h++)r+=this._textLines[h].length;o&&s===r&&(this[e]=i,this.removeStyle(e))},removeStyle:function(e){if(this.styles&&e&&""!==e){var t,i,n,s=this.styles;for(i in s){for(n in t=s[i])delete t[n][e],0===Object.keys(t[n]).length&&delete t[n];0===Object.keys(t).length&&delete s[i]}}},_extendStyles:function(e,t){var i=this.get2DCursorLocation(e);this._getLineStyle(i.lineIndex)||this._setLineStyle(i.lineIndex),this._getStyleDeclaration(i.lineIndex,i.charIndex)||this._setStyleDeclaration(i.lineIndex,i.charIndex,{}),s.util.object.extend(this._getStyleDeclaration(i.lineIndex,i.charIndex),t)},get2DCursorLocation:function(e,t){"undefined"===typeof e&&(e=this.selectionStart);for(var i=t?this._unwrappedTextLines:this._textLines,n=i.length,s=0;s<n;s++){if(e<=i[s].length)return{lineIndex:s,charIndex:e};e-=i[s].length+this.missingNewlineOffset(s)}return{lineIndex:s-1,charIndex:i[s-1].length<e?i[s-1].length:e}},getSelectionStyles:function(e,t,i){"undefined"===typeof e&&(e=this.selectionStart||0),"undefined"===typeof t&&(t=this.selectionEnd||e);for(var n=[],s=e;s<t;s++)n.push(this.getStyleAtPosition(s,i));return n},getStyleAtPosition:function(e,t){var i=this.get2DCursorLocation(e);return(t?this.getCompleteStyleDeclaration(i.lineIndex,i.charIndex):this._getStyleDeclaration(i.lineIndex,i.charIndex))||{}},setSelectionStyles:function(e,t,i){"undefined"===typeof t&&(t=this.selectionStart||0),"undefined"===typeof i&&(i=this.selectionEnd||t);for(var n=t;n<i;n++)this._extendStyles(n,e);return this._forceClearCache=!0,this},_getStyleDeclaration:function(e,t){var i=this.styles&&this.styles[e];return i?i[t]:null},getCompleteStyleDeclaration:function(e,t){for(var i,n=this._getStyleDeclaration(e,t)||{},s={},o=0;o<this._styleProperties.length;o++)s[i=this._styleProperties[o]]="undefined"===typeof n[i]?this[i]:n[i];return s},_setStyleDeclaration:function(e,t,i){this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){delete this.styles[e][t]},_getLineStyle:function(e){return!!this.styles[e]},_setLineStyle:function(e){this.styles[e]={}},_deleteLineStyle:function(e){delete this.styles[e]}}),function(){function e(e){e.textDecoration&&(e.textDecoration.indexOf("underline")>-1&&(e.underline=!0),e.textDecoration.indexOf("line-through")>-1&&(e.linethrough=!0),e.textDecoration.indexOf("overline")>-1&&(e.overline=!0),delete e.textDecoration)}s.IText=s.util.createClass(s.Text,s.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(e,t){this.callSuper("initialize",e,t),this.initBehavior()},setSelectionStart:function(e){e=Math.max(e,0),this._updateAndFire("selectionStart",e)},setSelectionEnd:function(e){e=Math.min(e,this.text.length),this._updateAndFire("selectionEnd",e)},_updateAndFire:function(e,t){this[e]!==t&&(this._fireSelectionChanged(),this[e]=t),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(e){this.clearContextTop(),this.callSuper("render",e),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(e){this.callSuper("_render",e)},clearContextTop:function(e){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var t=this.canvas.contextTop,i=this.canvas.viewportTransform;t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this.transform(t),this._clearTextArea(t),e||t.restore()}},renderCursorOrSelection:function(){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var e=this._getCursorBoundaries(),t=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(e,t):this.renderSelection(e,t),t.restore()}},_clearTextArea:function(e){var t=this.width+4,i=this.height+4;e.clearRect(-t/2,-i/2,t,i)},_getCursorBoundaries:function(e){"undefined"===typeof e&&(e=this.selectionStart);var t=this._getLeftOffset(),i=this._getTopOffset(),n=this._getCursorBoundariesOffsets(e);return{left:t,top:i,leftOffset:n.left,topOffset:n.top}},_getCursorBoundariesOffsets:function(e){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var t,i,n,s,o=0,r=0,a=this.get2DCursorLocation(e);n=a.charIndex,i=a.lineIndex;for(var l=0;l<i;l++)o+=this.getHeightOfLine(l);t=this._getLineLeftOffset(i);var d=this.__charBounds[i][n];return d&&(r=d.left),0!==this.charSpacing&&n===this._textLines[i].length&&(r-=this._getWidthOfCharSpacing()),s={top:o,left:t+(r>0?r:0)},"rtl"===this.direction&&(s.left*=-1),this.cursorOffsetCache=s,this.cursorOffsetCache},renderCursor:function(e,t){var i=this.get2DCursorLocation(),n=i.lineIndex,s=i.charIndex>0?i.charIndex-1:0,o=this.getValueOfPropertyAt(n,s,"fontSize"),r=this.scaleX*this.canvas.getZoom(),a=this.cursorWidth/r,l=e.topOffset,d=this.getValueOfPropertyAt(n,s,"deltaY");l+=(1-this._fontSizeFraction)*this.getHeightOfLine(n)/this.lineHeight-o*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(e,t),t.fillStyle=this.cursorColor||this.getValueOfPropertyAt(n,s,"fill"),t.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,t.fillRect(e.left+e.leftOffset-a/2,l+e.top+d,a,o)},renderSelection:function(e,t){for(var i=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,n=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,s=-1!==this.textAlign.indexOf("justify"),o=this.get2DCursorLocation(i),r=this.get2DCursorLocation(n),a=o.lineIndex,l=r.lineIndex,d=o.charIndex<0?0:o.charIndex,h=r.charIndex<0?0:r.charIndex,c=a;c<=l;c++){var u,g=this._getLineLeftOffset(c)||0,p=this.getHeightOfLine(c),m=0,f=0;if(c===a&&(m=this.__charBounds[a][d].left),c>=a&&c<l)f=s&&!this.isEndOfWrapping(c)?this.width:this.getLineWidth(c)||5;else if(c===l)if(0===h)f=this.__charBounds[l][h].left;else{var _=this._getWidthOfCharSpacing();f=this.__charBounds[l][h-1].left+this.__charBounds[l][h-1].width-_}u=p,(this.lineHeight<1||c===l&&this.lineHeight>1)&&(p/=this.lineHeight);var v=e.left+g+m,b=f-m,C=p,y=0;this.inCompositionMode?(t.fillStyle=this.compositionColor||"black",C=1,y=p):t.fillStyle=this.selectionColor,"rtl"===this.direction&&(v=this.width-v-b),t.fillRect(v,e.top+e.topOffset+y,b,C),e.topOffset+=u}},getCurrentCharFontSize:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fontSize")},getCurrentCharColor:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fill")},_getCurrentCharIndex:function(){var e=this.get2DCursorLocation(this.selectionStart,!0),t=e.charIndex>0?e.charIndex-1:0;return{l:e.lineIndex,c:t}}}),s.IText.fromObject=function(t,i){var n=s.util.stylesFromArray(t.styles,t.text),o=Object.assign({},t,{styles:n});if(e(o),o.styles)for(var r in o.styles)for(var a in o.styles[r])e(o.styles[r][a]);s.Object._fromObject("IText",o,i,"text")}}(),function(){var e=s.util.object.clone;s.util.object.extend(s.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var e=this;this.on("added",(function(){var t=e.canvas;t&&(t._hasITextHandlers||(t._hasITextHandlers=!0,e._initCanvasHandlers(t)),t._iTextInstances=t._iTextInstances||[],t._iTextInstances.push(e))}))},initRemovedHandler:function(){var e=this;this.on("removed",(function(){var t=e.canvas;t&&(t._iTextInstances=t._iTextInstances||[],s.util.removeFromArray(t._iTextInstances,e),0===t._iTextInstances.length&&(t._hasITextHandlers=!1,e._removeCanvasHandlers(t)))}))},_initCanvasHandlers:function(e){e._mouseUpITextHandler=function(){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.__isMousedown=!1}))},e.on("mouse:up",e._mouseUpITextHandler)},_removeCanvasHandlers:function(e){e.off("mouse:up",e._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(e,t,i,n){var s;return s={isAborted:!1,abort:function(){this.isAborted=!0}},e.animate("_currentCursorOpacity",t,{duration:i,onComplete:function(){s.isAborted||e[n]()},onChange:function(){e.canvas&&e.selectionStart===e.selectionEnd&&e.renderCursorOrSelection()},abort:function(){return s.isAborted}}),s},_onTickComplete:function(){var e=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){e._currentTickCompleteState=e._animateCursor(e,0,this.cursorDuration/2,"_tick")}),100)},initDelayedCursor:function(e){var t=this,i=e?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){t._tick()}),i)},abortCursorAnimation:function(){var e=this._currentTickState||this._currentTickCompleteState,t=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,e&&t&&t.clearContext(t.contextTop||t.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(e){var t=0,i=e-1;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i--;for(;/\S/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findWordBoundaryRight:function(e){var t=0,i=e;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i++;for(;/\S/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},findLineBoundaryLeft:function(e){for(var t=0,i=e-1;!/\n/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findLineBoundaryRight:function(e){for(var t=0,i=e;!/\n/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},searchWordBoundary:function(e,t){for(var i=this._text,n=this._reSpace.test(i[e])?e-1:e,o=i[n],r=s.reNonWord;!r.test(o)&&n>0&&n<i.length;)o=i[n+=t];return r.test(o)&&(n+=1===t?0:1),n},selectWord:function(e){e=e||this.selectionStart;var t=this.searchWordBoundary(e,-1),i=this.searchWordBoundary(e,1);this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(e){e=e||this.selectionStart;var t=this.findLineBoundaryLeft(e),i=this.findLineBoundaryRight(e);return this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(e){if(!this.isEditing&&this.editable)return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(e),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(e){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.selected=!1,e.isEditing&&e.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(e){if(this.__isMousedown&&this.isEditing){document.activeElement!==this.hiddenTextarea&&this.hiddenTextarea.focus();var t=this.getSelectionStartFromPointer(e.e),i=this.selectionStart,n=this.selectionEnd;(t===this.__selectionStartOnMouseDown&&i!==n||i!==t&&n!==t)&&(t>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i&&this.selectionEnd===n||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(e,t,i){var n=i.slice(0,e),o=s.util.string.graphemeSplit(n).length;if(e===t)return{selectionStart:o,selectionEnd:o};var r=i.slice(e,t);return{selectionStart:o,selectionEnd:o+s.util.string.graphemeSplit(r).length}},fromGraphemeToStringSelection:function(e,t,i){var n=i.slice(0,e).join("").length;return e===t?{selectionStart:n,selectionEnd:n}:{selectionStart:n,selectionEnd:n+i.slice(e,t).join("").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var e=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=e.selectionStart,this.hiddenTextarea.selectionEnd=e.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var e=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=e.selectionEnd,this.inCompositionMode||(this.selectionStart=e.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var e=this._calcTextareaPosition();this.hiddenTextarea.style.left=e.left,this.hiddenTextarea.style.top=e.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var e=this.inCompositionMode?this.compositionStart:this.selectionStart,t=this._getCursorBoundaries(e),i=this.get2DCursorLocation(e),n=i.lineIndex,o=i.charIndex,r=this.getValueOfPropertyAt(n,o,"fontSize")*this.lineHeight,a=t.leftOffset,l=this.calcTransformMatrix(),d={x:t.left+a,y:t.top+t.topOffset+r},h=this.canvas.getRetinaScaling(),c=this.canvas.upperCanvasEl,u=c.width/h,g=c.height/h,p=u-r,m=g-r,f=c.clientWidth/u,_=c.clientHeight/g;return d=s.util.transformPoint(d,l),(d=s.util.transformPoint(d,this.canvas.viewportTransform)).x*=f,d.y*=_,d.x<0&&(d.x=0),d.x>p&&(d.x=p),d.y<0&&(d.y=0),d.y>m&&(d.y=m),d.x+=this.canvas._offset.left,d.y+=this.canvas._offset.top,{left:d.x+"px",top:d.y+"px",fontSize:r+"px",charHeight:r}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var e=this._textBeforeEdit!==this.text,t=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,t&&(t.blur&&t.blur(),t.parentNode&&t.parentNode.removeChild(t)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),e&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),e&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var e in this.styles)this._textLines[e]||delete this.styles[e]},removeStyleFromTo:function(e,t){var i,n,s=this.get2DCursorLocation(e,!0),o=this.get2DCursorLocation(t,!0),r=s.lineIndex,a=s.charIndex,l=o.lineIndex,d=o.charIndex;if(r!==l){if(this.styles[r])for(i=a;i<this._unwrappedTextLines[r].length;i++)delete this.styles[r][i];if(this.styles[l])for(i=d;i<this._unwrappedTextLines[l].length;i++)(n=this.styles[l][i])&&(this.styles[r]||(this.styles[r]={}),this.styles[r][a+i-d]=n);for(i=r+1;i<=l;i++)delete this.styles[i];this.shiftLineStyles(l,r-l)}else if(this.styles[r]){n=this.styles[r];var h,c,u=d-a;for(i=a;i<d;i++)delete n[i];for(c in this.styles[r])(h=parseInt(c,10))>=d&&(n[h-u]=n[c],delete n[c])}},shiftLineStyles:function(t,i){var n=e(this.styles);for(var s in this.styles){var o=parseInt(s,10);o>t&&(this.styles[o+i]=n[o],n[o-i]||delete this.styles[o])}},restartCursorIfNeeded:function(){this._currentTickState&&!this._currentTickState.isAborted&&this._currentTickCompleteState&&!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,i,n,s){var o,r={},a=!1,l=this._unwrappedTextLines[t].length===i;for(var d in n||(n=1),this.shiftLineStyles(t,n),this.styles[t]&&(o=this.styles[t][0===i?i:i-1]),this.styles[t]){var h=parseInt(d,10);h>=i&&(a=!0,r[h-i]=this.styles[t][d],l&&0===i||delete this.styles[t][d])}var c=!1;for(a&&!l&&(this.styles[t+n]=r,c=!0),c&&n--;n>0;)s&&s[n-1]?this.styles[t+n]={0:e(s[n-1])}:o?this.styles[t+n]={0:e(o)}:delete this.styles[t+n],n--;this._forceClearCache=!0},insertCharStyleObject:function(t,i,n,s){this.styles||(this.styles={});var o=this.styles[t],r=o?e(o):{};for(var a in n||(n=1),r){var l=parseInt(a,10);l>=i&&(o[l+n]=r[l],r[l-n]||delete o[l])}if(this._forceClearCache=!0,s)for(;n--;)Object.keys(s[n]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][i+n]=e(s[n]));else if(o)for(var d=o[i?i-1:1];d&&n--;)this.styles[t][i+n]=e(d)},insertNewStyleBlock:function(e,t,i){for(var n=this.get2DCursorLocation(t,!0),s=[0],o=0,r=0;r<e.length;r++)"\n"===e[r]?s[++o]=0:s[o]++;s[0]>0&&(this.insertCharStyleObject(n.lineIndex,n.charIndex,s[0],i),i=i&&i.slice(s[0]+1)),o&&this.insertNewlineStyleObject(n.lineIndex,n.charIndex+s[0],o);for(r=1;r<o;r++)s[r]>0?this.insertCharStyleObject(n.lineIndex+r,0,s[r],i):i&&this.styles[n.lineIndex+r]&&i[0]&&(this.styles[n.lineIndex+r][0]=i[0]),i=i&&i.slice(s[r]+1);s[r]>0&&this.insertCharStyleObject(n.lineIndex+r,0,s[r],i)},setSelectionStartEndWithShift:function(e,t,i){i<=e?(t===e?this._selectionDirection="left":"right"===this._selectionDirection&&(this._selectionDirection="left",this.selectionEnd=e),this.selectionStart=i):i>e&&i<t?"right"===this._selectionDirection?this.selectionEnd=i:this.selectionStart=i:(t===e?this._selectionDirection="right":"left"===this._selectionDirection&&(this._selectionDirection="right",this.selectionStart=t),this.selectionEnd=i)},setSelectionInBoundaries:function(){var e=this.text.length;this.selectionStart>e?this.selectionStart=e:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>e?this.selectionEnd=e:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),s.util.object.extend(s.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(e){if(this.canvas){this.__newClickTime=+new Date;var t=e.pointer;this.isTripleClick(t)&&(this.fire("tripleclick",e),this._stopEvent(e.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=t,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(e){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===e.x&&this.__lastPointer.y===e.y},_stopEvent:function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(e){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(e.e))},tripleClickHandler:function(e){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(e.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(e.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(e){if(this.__isMousedown=!1,!(!this.editable||this.group||e.transform&&e.transform.actionPerformed||e.e.button&&1!==e.e.button)){if(this.canvas){var t=this.canvas._activeObject;if(t&&t!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(e){var t=this.getSelectionStartFromPointer(e),i=this.selectionStart,n=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(i,n,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(e){for(var t,i=this.getLocalPointer(e),n=0,s=0,o=0,r=0,a=0,l=0,d=this._textLines.length;l<d&&o<=i.y;l++)o+=this.getHeightOfLine(l)*this.scaleY,a=l,l>0&&(r+=this._textLines[l-1].length+this.missingNewlineOffset(l-1));s=this._getLineLeftOffset(a)*this.scaleX,t=this._textLines[a],"rtl"===this.direction&&(i.x=this.width*this.scaleX-i.x+s);for(var h=0,c=t.length;h<c&&(n=s,(s+=this.__charBounds[a][h].kernedWidth*this.scaleX)<=i.x);h++)r++;return this._getNewSelectionStartFromOffset(i,n,s,r,c)},_getNewSelectionStartFromOffset:function(e,t,i,n,s){var o=e.x-t,r=i-e.x,a=n+(r>o||r<0?0:1);return this.flipX&&(a=s-a),a>this._text.length&&(a=this._text.length),a}}),s.util.object.extend(s.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=s.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var e=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+e.top+"; left: "+e.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: "+e.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):s.document.body.appendChild(this.hiddenTextarea),s.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),s.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),s.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),s.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),s.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),s.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),s.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),s.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),s.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(s.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(e){if(this.isEditing){var t="rtl"===this.direction?this.keysMapRtl:this.keysMap;if(e.keyCode in t)this[t[e.keyCode]](e);else{if(!(e.keyCode in this.ctrlKeysMapDown)||!e.ctrlKey&&!e.metaKey)return;this[this.ctrlKeysMapDown[e.keyCode]](e)}e.stopImmediatePropagation(),e.preventDefault(),e.keyCode>=33&&e.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(e){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey)&&(this[this.ctrlKeysMapUp[e.keyCode]](e),e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(e){var t=this.fromPaste;if(this.fromPaste=!1,e&&e.stopPropagation(),this.isEditing){var i,n,o,r,a,l=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,d=this._text.length,h=l.length,c=h-d,u=this.selectionStart,g=this.selectionEnd,p=u!==g;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var m=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),f=u>m.selectionStart;p?(i=this._text.slice(u,g),c+=g-u):h<d&&(i=f?this._text.slice(g+c,g):this._text.slice(u,u-c)),n=l.slice(m.selectionEnd-c,m.selectionEnd),i&&i.length&&(n.length&&(o=this.getSelectionStyles(u,u+1,!1),o=n.map((function(){return o[0]}))),p?(r=u,a=g):f?(r=g-i.length,a=g):(r=g,a=g+i.length),this.removeStyleFromTo(r,a)),n.length&&(t&&n.join("")===s.copiedText&&!s.disableStyleCopyPaste&&(o=s.copiedTextStyle),this.insertNewStyleBlock(n,u,o)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(e){this.compositionStart=e.target.selectionStart,this.compositionEnd=e.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(s.copiedText=this.getSelectedText(),s.disableStyleCopyPaste?s.copiedTextStyle=null:s.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(e){return e&&e.clipboardData||s.window.clipboardData},_getWidthBeforeCursor:function(e,t){var i,n=this._getLineLeftOffset(e);return t>0&&(n+=(i=this.__charBounds[e][t-1]).left+i.width),n},getDownCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),n=this.get2DCursorLocation(i),s=n.lineIndex;if(s===this._textLines.length-1||e.metaKey||34===e.keyCode)return this._text.length-i;var o=n.charIndex,r=this._getWidthBeforeCursor(s,o),a=this._getIndexOnLine(s+1,r);return this._textLines[s].slice(o).length+a+1+this.missingNewlineOffset(s)},_getSelectionForOffset:function(e,t){return e.shiftKey&&this.selectionStart!==this.selectionEnd&&t?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),n=this.get2DCursorLocation(i),s=n.lineIndex;if(0===s||e.metaKey||33===e.keyCode)return-i;var o=n.charIndex,r=this._getWidthBeforeCursor(s,o),a=this._getIndexOnLine(s-1,r),l=this._textLines[s].slice(0,o),d=this.missingNewlineOffset(s-1);return-this._textLines[s-1].length+a-l.length+(1-d)},_getIndexOnLine:function(e,t){for(var i,n,s=this._textLines[e],o=this._getLineLeftOffset(e),r=0,a=0,l=s.length;a<l;a++)if((o+=i=this.__charBounds[e][a].width)>t){n=!0;var d=o-i,h=o,c=Math.abs(d-t);r=Math.abs(h-t)<c?a:a-1;break}return n||(r=s.length-1),r},moveCursorDown:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",e)},moveCursorUp:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",e)},_moveCursorUpOrDown:function(e,t){var i=this["get"+e+"CursorOffset"](t,"right"===this._selectionDirection);t.shiftKey?this.moveCursorWithShift(i):this.moveCursorWithoutShift(i),0!==i&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(e){var t="left"===this._selectionDirection?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),0!==e},moveCursorWithoutShift:function(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),0!==e},moveCursorLeft:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",e)},_move:function(e,t,i){var n;if(e.altKey)n=this["findWordBoundary"+i](this[t]);else{if(!e.metaKey&&35!==e.keyCode&&36!==e.keyCode)return this[t]+="Left"===i?-1:1,!0;n=this["findLineBoundary"+i](this[t])}if("undefined"!==typeof n&&this[t]!==n)return this[t]=n,!0},_moveLeft:function(e,t){return this._move(e,t,"Left")},_moveRight:function(e,t){return this._move(e,t,"Right")},moveCursorLeftWithoutShift:function(e){var t=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(t=this._moveLeft(e,"selectionStart")),this.selectionEnd=this.selectionStart,t},moveCursorLeftWithShift:function(e){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(e,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(e,"selectionStart")):void 0},moveCursorRight:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",e)},_moveCursorLeftOrRight:function(e,t){var i="moveCursor"+e+"With";this._currentCursorOpacity=1,t.shiftKey?i+="Shift":i+="outShift",this[i](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(e){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(e,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(e,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(e){var t=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(t=this._moveRight(e,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t},removeChars:function(e,t){"undefined"===typeof t&&(t=e+1),this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(e,t,i,n){"undefined"===typeof n&&(n=i),n>i&&this.removeStyleFromTo(i,n);var o=s.util.string.graphemeSplit(e);this.insertNewStyleBlock(o,i,t),this._text=[].concat(this._text.slice(0,i),o,this._text.slice(n)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var e=s.util.toFixed,t=/ +/g;s.util.object.extend(s.Text.prototype,{_toSVG:function(){var e=this._getSVGLeftTopOffsets(),t=this._getSVGTextAndBg(e.textTop,e.textLeft);return this._wrapSVGTextAndBg(t)},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(e){var t=this.getSvgTextDecoration(this);return[e.textBgRects.join(""),'\t\t<text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",t?'text-decoration="'+t+'" ':"",'style="',this.getSvgStyles(!0),'"',this.addPaintOrder()," >",e.textSpans.join(""),"</text>\n"]},_getSVGTextAndBg:function(e,t){var i,n=[],s=[],o=e;this._setSVGBg(s);for(var r=0,a=this._textLines.length;r<a;r++)i=this._getLineLeftOffset(r),(this.textBackgroundColor||this.styleHas("textBackgroundColor",r))&&this._setSVGTextLineBg(s,r,t+i,o),this._setSVGTextLineText(n,r,t+i,o),o+=this.getHeightOfLine(r);return{textSpans:n,textBgRects:s}},_createTextCharSpan:function(i,n,o,r){var a=i!==i.trim()||i.match(t),l=this.getSvgSpanStyles(n,a),d=l?'style="'+l+'"':"",h=n.deltaY,c="",u=s.Object.NUM_FRACTION_DIGITS;return h&&(c=' dy="'+e(h,u)+'" '),['<tspan x="',e(o,u),'" y="',e(r,u),'" ',c,d,">",s.util.string.escapeXml(i),"</tspan>"].join("")},_setSVGTextLineText:function(e,t,i,n){var o,r,a,l,d,h=this.getHeightOfLine(t),c=-1!==this.textAlign.indexOf("justify"),u="",g=0,p=this._textLines[t];n+=h*(1-this._fontSizeFraction)/this.lineHeight;for(var m=0,f=p.length-1;m<=f;m++)d=m===f||this.charSpacing,u+=p[m],a=this.__charBounds[t][m],0===g?(i+=a.kernedWidth-a.width,g+=a.width):g+=a.kernedWidth,c&&!d&&this._reSpaceAndTab.test(p[m])&&(d=!0),d||(o=o||this.getCompleteStyleDeclaration(t,m),r=this.getCompleteStyleDeclaration(t,m+1),d=s.util.hasStyleChanged(o,r,!0)),d&&(l=this._getStyleDeclaration(t,m)||{},e.push(this._createTextCharSpan(u,l,i,n)),u="",o=r,i+=g,g=0)},_pushTextBgRect:function(t,i,n,o,r,a){var l=s.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(i),' x="',e(n,l),'" y="',e(o,l),'" width="',e(r,l),'" height="',e(a,l),'"></rect>\n')},_setSVGTextLineBg:function(e,t,i,n){for(var s,o,r=this._textLines[t],a=this.getHeightOfLine(t)/this.lineHeight,l=0,d=0,h=this.getValueOfPropertyAt(t,0,"textBackgroundColor"),c=0,u=r.length;c<u;c++)s=this.__charBounds[t][c],(o=this.getValueOfPropertyAt(t,c,"textBackgroundColor"))!==h?(h&&this._pushTextBgRect(e,h,i+d,n,l,a),d=s.left,l=s.width,h=o):l+=s.kernedWidth;o&&this._pushTextBgRect(e,o,i+d,n,l,a)},_getFillAttributes:function(e){var t=e&&"string"===typeof e?new s.Color(e):"";return t&&t.getSource()&&1!==t.getAlpha()?'opacity="'+t.getAlpha()+'" fill="'+t.setAlpha(1).toRgb()+'"':'fill="'+e+'"'},_getSVGLineTopOffset:function(e){for(var t,i=0,n=0;n<e;n++)i+=this.getHeightOfLine(n);return t=this.getHeightOfLine(n),{lineTop:i,offset:(this._fontSizeMult-this._fontSizeFraction)*t/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(e){return s.Object.prototype.getSvgStyles.call(this,e)+" white-space: pre;"}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Textbox=t.util.createClass(t.IText,t.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:t.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(e){for(var t=0,i=0,n=0,s={},o=0;o<e.graphemeLines.length;o++)"\n"===e.graphemeText[n]&&o>0?(i=0,n++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[n])&&o>0&&(i++,n++),s[o]={line:t,offset:i},n+=e.graphemeLines[o].length,i+=e.graphemeLines[o].length;return s},styleHas:function(e,i){if(this._styleMap&&!this.isWrapping){var n=this._styleMap[i];n&&(i=n.line)}return t.Text.prototype.styleHas.call(this,e,i)},isEmptyStyles:function(e){if(!this.styles)return!0;var t,i,n=0,s=!1,o=this._styleMap[e],r=this._styleMap[e+1];for(var a in o&&(e=o.line,n=o.offset),r&&(s=r.line===e,t=r.offset),i="undefined"===typeof e?this.styles:{line:this.styles[e]})for(var l in i[a])if(l>=n&&(!s||l<t))for(var d in i[a][l])return!1;return!0},_getStyleDeclaration:function(e,t){if(this._styleMap&&!this.isWrapping){var i=this._styleMap[e];if(!i)return null;e=i.line,t=i.offset+t}return this.callSuper("_getStyleDeclaration",e,t)},_setStyleDeclaration:function(e,t,i){var n=this._styleMap[e];e=n.line,t=n.offset+t,this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){var i=this._styleMap[e];e=i.line,t=i.offset+t,delete this.styles[e][t]},_getLineStyle:function(e){var t=this._styleMap[e];return!!this.styles[t.line]},_setLineStyle:function(e){var t=this._styleMap[e];this.styles[t.line]={}},_wrapText:function(e,t){var i,n=[];for(this.isWrapping=!0,i=0;i<e.length;i++)n=n.concat(this._wrapLine(e[i],i,t));return this.isWrapping=!1,n},_measureWord:function(e,t,i){var n,s=0;i=i||0;for(var o=0,r=e.length;o<r;o++){s+=this._getGraphemeBox(e[o],t,o+i,n,true).kernedWidth,n=e[o]}return s},_wrapLine:function(e,i,n,s){var o=0,r=this.splitByGrapheme,a=[],l=[],d=r?t.util.string.graphemeSplit(e):e.split(this._wordJoiners),h="",c=0,u=r?"":" ",g=0,p=0,m=0,f=!0,_=this._getWidthOfCharSpacing();s=s||0;0===d.length&&d.push([]),n-=s;for(var v=0;v<d.length;v++)h=r?d[v]:t.util.string.graphemeSplit(d[v]),g=this._measureWord(h,i,c),c+=h.length,(o+=p+g-_)>n&&!f?(a.push(l),l=[],o=g,f=!0):o+=_,f||r||l.push(u),l=l.concat(h),p=r?0:this._measureWord([u],i,c),c++,f=!1,g>m&&(m=g);return v&&a.push(l),m+s>this.dynamicMinWidth&&(this.dynamicMinWidth=m-_+s),a},isEndOfWrapping:function(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line},missingNewlineOffset:function(e){return this.splitByGrapheme?this.isEndOfWrapping(e)?1:0:1},_splitTextIntoLines:function(e){for(var i=t.Text.prototype._splitTextIntoLines.call(this,e),n=this._wrapText(i.lines,this.width),s=new Array(n.length),o=0;o<n.length;o++)s[o]=n[o].join("");return i.lines=s,i.graphemeLines=n,i},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var e={};for(var t in this._styleMap)this._textLines[t]&&(e[this._styleMap[t].line]=1);for(var t in this.styles)e[t]||delete this.styles[t]},toObject:function(e){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(e))}}),t.Textbox.fromObject=function(e,i){var n=t.util.stylesFromArray(e.styles,e.text),s=Object.assign({},e,{styles:n});return t.Object._fromObject("Textbox",s,i,"text")}}(t),function(){var e=s.controlsUtils,t=e.scaleSkewCursorStyleHandler,i=e.scaleCursorStyleHandler,n=e.scalingEqually,o=e.scalingYOrSkewingX,r=e.scalingXOrSkewingY,a=e.scaleOrSkewActionName,l=s.Object.prototype.controls;if(l.ml=new s.Control({x:-.5,y:0,cursorStyleHandler:t,actionHandler:r,getActionName:a}),l.mr=new s.Control({x:.5,y:0,cursorStyleHandler:t,actionHandler:r,getActionName:a}),l.mb=new s.Control({x:0,y:.5,cursorStyleHandler:t,actionHandler:o,getActionName:a}),l.mt=new s.Control({x:0,y:-.5,cursorStyleHandler:t,actionHandler:o,getActionName:a}),l.tl=new s.Control({x:-.5,y:-.5,cursorStyleHandler:i,actionHandler:n}),l.tr=new s.Control({x:.5,y:-.5,cursorStyleHandler:i,actionHandler:n}),l.bl=new s.Control({x:-.5,y:.5,cursorStyleHandler:i,actionHandler:n}),l.br=new s.Control({x:.5,y:.5,cursorStyleHandler:i,actionHandler:n}),l.mtr=new s.Control({x:0,y:-.5,actionHandler:e.rotationWithSnapping,cursorStyleHandler:e.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),s.Textbox){var d=s.Textbox.prototype.controls={};d.mtr=l.mtr,d.tr=l.tr,d.br=l.br,d.tl=l.tl,d.bl=l.bl,d.mt=l.mt,d.mb=l.mb,d.mr=new s.Control({x:.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"}),d.ml=new s.Control({x:-.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"})}}()},79064:(e,t,i)=>{var n=i(59368),s=i(63819);e.exports=function e(t,i,o,r,a){var l=-1,d=t.length;for(o||(o=s),a||(a=[]);++l<d;){var h=t[l];i>0&&o(h)?i>1?e(h,i-1,o,r,a):n(a,h):r||(a[a.length]=h)}return a}},63010:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,i){return null!=e&&t.call(e,i)}},80531:(e,t,i)=>{var n=i(68097),s=i(88834),o=i(12529),r=i(92061);e.exports=function(e,t){return t=n(t,e),null==(e=o(e,t))||delete e[r(s(t))]}},24410:(e,t,i)=>{var n=i(20011);e.exports=function(e){return n(e)?void 0:e}},34408:(e,t,i)=>{var n=i(96298),s=i(39069),o=i(72633);e.exports=function(e){return o(s(e,void 0,n),e+"")}},63819:(e,t,i)=>{var n=i(537),s=i(52964),o=i(19305),r=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||s(e)||!!(r&&e&&e[r])}},12529:(e,t,i)=>{var n=i(43238),s=i(32112);e.exports=function(e,t){return t.length<2?e:n(e,s(t,0,-1))}},96298:(e,t,i)=>{var n=i(79064);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},81824:(e,t,i)=>{var n=i(63010),s=i(78326);e.exports=function(e,t){return null!=e&&s(e,t,n)}},61199:(e,t,i)=>{var n=i(16320),s=i(59698);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},88834:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},52708:(e,t,i)=>{var n=i(634),s=i(35647)((function(e,t,i,s){n(e,t,i,s)}));e.exports=s},62091:(e,t,i)=>{var n=i(54380),s=i(35367),o=i(80531),r=i(68097),a=i(62871),l=i(24410),d=i(34408),h=i(35725),c=d((function(e,t){var i={};if(null==e)return i;var d=!1;t=n(t,(function(t){return t=r(t,e),d||(d=t.length>1),t})),a(e,h(e),i),d&&(i=s(i,7,l));for(var c=t.length;c--;)o(i,t[c]);return i}));e.exports=c},32858:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>Wl,Emitter:()=>Vl,KeyCode:()=>Hl,KeyMod:()=>zl,MarkerSeverity:()=>$l,MarkerTag:()=>ql,Position:()=>jl,Range:()=>Ul,Selection:()=>Kl,SelectionDirection:()=>Gl,Token:()=>Yl,Uri:()=>Ql,default:()=>td,editor:()=>Zl,languages:()=>Xl});var n={};i.r(n),i.d(n,{CancellationTokenSource:()=>Wl,Emitter:()=>Vl,KeyCode:()=>Hl,KeyMod:()=>zl,MarkerSeverity:()=>$l,MarkerTag:()=>ql,Position:()=>jl,Range:()=>Ul,Selection:()=>Kl,SelectionDirection:()=>Gl,Token:()=>Yl,Uri:()=>Ql,editor:()=>Zl,languages:()=>Xl});i(44915),i(88952),i(36999),i(58590),i(6438),i(94908),i(4836);var s=i(60703),o=(i(64215),i(31659),i(99822),i(40142),i(18864),i(32516),i(20961),i(40800),i(2183),i(58568),i(63867),i(43780),i(34175),i(44588),i(70552),i(48279),i(65877),i(81091),i(99312),i(62427),i(15989),i(56800),i(28449),i(57244),i(87536),i(47873),i(59477),i(9948),i(84325),i(15040),i(75639),i(85117),i(14614),i(95200),i(50352),i(4519),i(73494),i(6429),i(28211),i(59731),i(57377),i(50071),i(18278),i(98745),i(44798),i(10617),i(30936),i(57197),i(24518),i(10846),i(22890),i(98472),i(50166),i(91268),i(47210),i(29500),i(38728),i(46606),i(87908)),r=i(73848),a=i(25893),l=i(5662),d=i(91508),h=i(79400),c=i(28433),u=i(31450),g=i(80301),p=i(10146),m=i(14011);class f extends m.Z6{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?(0,p.V0)(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.fmr(t,i),n=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},s={};for(const e of t)s[e]=n(e,i);return s}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then((e=>this.getProxy()))}}var _=i(79027),v=i(74196),b=i(23452),C=i(62083),y=i(10154),w=i(17469),S=i(83941),k=i(20788),x=i(16223),L=i(23750),D=i(35015),E=i(80789),N=i(87469),T=i(35600),I=i(92896);function M(e){return!function(e){return Array.isArray(e)}(e)}function A(e){return"string"===typeof e}function R(e){return!A(e)}function O(e){return!e}function P(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function F(e){return e.replace(/[&<>'"_]/g,"-")}function B(e,t){return new Error(`${e.languageId}: ${t}`)}function W(e,t,i,n,s){let o=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,r,a,l,d,h,c,u,g){return O(a)?O(l)?!O(d)&&d<n.length?P(e,n[d]):!O(c)&&e&&"string"===typeof e[c]?e[c]:(null===o&&(o=s.split("."),o.unshift(s)),!O(h)&&h<o.length?P(e,o[h]):""):P(e,i):"$"}))}function V(e,t){let i=t;for(;i&&i.length>0;){const t=e.tokenizer[i];if(t)return t;const n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}var H,z=i(84001),j=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},U=function(e,t){return function(i,n){t(i,n,e)}};class K{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new G(e,t);let i=G.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new G(e,t),this._entries[i]=n,n)}}K._INSTANCE=new K(5);class G{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return G._equals(this,e)}push(e){return K.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return K.create(this.parent,e)}}class ${constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new $(this.languageId,this.state)}}class q{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t)return new Q(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new Q(e,t);const i=G.getStackElementId(e);let n=this._entries[i];return n||(n=new Q(e,null),this._entries[i]=n,n)}}q._INSTANCE=new q(5);class Q{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:q.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof Q&&(!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData)))}}class Y{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new C.ou(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){const s=i.languageId,o=i.state,r=C.dG.get(s);if(!r)return this.enterLanguage(s),this.emit(n,""),o;const a=r.tokenize(e,t,o);if(0!==n)for(const l of a.tokens)this._tokens.push(new C.ou(l.offset+n,l.type,l.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new C.$M(this._tokens,e)}}class Z{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const n=null!==e?e.length:0,s=t.length,o=null!==i?i.length:0;if(0===n&&0===s&&0===o)return new Uint32Array(0);if(0===n&&0===s)return i;if(0===s&&0===o)return e;const r=new Uint32Array(n+s+o);null!==e&&r.set(e);for(let a=0;a<s;a++)r[n+a]=t[a];return null!==i&&r.set(i,n+s),r}nestedLanguageTokenize(e,t,i,n){const s=i.languageId,o=i.state,r=C.dG.get(s);if(!r)return this.enterLanguage(s),this.emit(n,""),o;const a=r.tokenizeEncoded(e,t,o);if(0!==n)for(let l=0,d=a.tokens.length;l<d;l+=2)a.tokens[l]+=n;return this._prependTokens=Z._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState}finalize(e){return new C.rY(Z._merge(this._prependTokens,this._tokens,null),e)}}let X=H=class extends l.jG{constructor(e,t,i,n,s){super(),this._configurationService=s,this._languageService=e,this._standaloneThemeService=t,this._languageId=i,this._lexer=n,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let o=!1;this._register(C.dG.onDidChange((e=>{if(o)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i<n;i++){const n=e.changedLanguages[i];if(this._embeddedLanguages[n]){t=!0;break}}t&&(o=!0,C.dG.handleChange([this._languageId]),o=!1)}))),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})))}getLoadStatus(){const e=[];for(const t in this._embeddedLanguages){const i=C.dG.get(t);if(i){if(i instanceof H){const t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise)}}else C.dG.isResolved(t)||e.push(C.dG.getOrCreate(t))}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((e=>{}))}}getInitialState(){const e=K.create(null,this._lexer.start);return q.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,k.$H)(this._languageId,i);const n=new Y,s=this._tokenize(e,t,i,n);return n.finalize(s)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,k.Lh)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const n=new Z(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),s=this._tokenize(e,t,i,n);return n.finalize(s)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=V(this._lexer,t.stack.state),!i))throw B(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,s=!1;for(const o of i){if(!R(o.action)||"@pop"!==o.action.nextEmbedded)continue;s=!0;let i=o.resolveRegex(t.stack.state);const r=i.source;if("^(?:"===r.substr(0,4)&&")"===r.substr(r.length-1,1)){const e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(r.substr(4,r.length-5),e)}const a=e.search(i);-1===a||0!==a&&o.matchOnlyAtLineStart||(-1===n||a<n)&&(n=a)}if(!s)throw B(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return n}_nestedTokenize(e,t,i,n,s){const o=this._findLeavingNestedLanguageOffset(e,i);if(-1===o){const o=s.nestedLanguageTokenize(e,t,i.embeddedLanguageData,n);return q.create(i.stack,new $(i.embeddedLanguageData.languageId,o))}const r=e.substring(0,o);r.length>0&&s.nestedLanguageTokenize(r,!1,i.embeddedLanguageData,n);const a=e.substring(o);return this._myTokenize(a,t,i,n+o,s)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,s){s.enterLanguage(this._languageId);const o=e.length,r=t&&this._lexer.includeLF?e+"\n":e,a=r.length;let l=i.embeddedLanguageData,d=i.stack,h=0,c=null,u=!0;for(;u||h<a;){const i=h,m=d.depth,f=c?c.groups.length:0,_=d.state;let v=null,b=null,C=null,y=null,w=null;if(c){v=c.matches;const e=c.groups.shift();b=e.matched,C=e.action,y=c.rule,0===c.groups.length&&(c=null)}else{if(!u&&h>=a)break;u=!1;let e=this._lexer.tokenizer[_];if(!e&&(e=V(this._lexer,_),!e))throw B(this._lexer,"tokenizer state is not defined: "+_);const t=r.substr(h);for(const i of e)if((0===h||!i.matchOnlyAtLineStart)&&(v=t.match(i.resolveRegex(_)),v)){b=v[0],C=i.action;break}}if(v||(v=[""],b=""),C||(h<a&&(v=[r.charAt(h)],b=v[0]),C=this._lexer.defaultToken),null===b)break;for(h+=b.length;M(C)&&R(C)&&C.test;)C=C.test(b,v,_,h===a);let S=null;if("string"===typeof C||Array.isArray(C))S=C;else if(C.group)S=C.group;else if(null!==C.token&&void 0!==C.token){if(S=C.tokenSubst?W(this._lexer,C.token,b,v,_):C.token,C.nextEmbedded)if("@pop"===C.nextEmbedded){if(!l)throw B(this._lexer,"cannot pop embedded language if not inside one");l=null}else{if(l)throw B(this._lexer,"cannot enter embedded language from within an embedded language");w=W(this._lexer,C.nextEmbedded,b,v,_)}if(C.goBack&&(h=Math.max(0,h-C.goBack)),C.switchTo&&"string"===typeof C.switchTo){let e=W(this._lexer,C.switchTo,b,v,_);if("@"===e[0]&&(e=e.substr(1)),!V(this._lexer,e))throw B(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(y));d=d.switchTo(e)}else{if(C.transform&&"function"===typeof C.transform)throw B(this._lexer,"action.transform not supported");if(C.next)if("@push"===C.next){if(d.depth>=this._lexer.maxStack)throw B(this._lexer,"maximum tokenizer stack size reached: ["+d.state+","+d.parent.state+",...]");d=d.push(_)}else if("@pop"===C.next){if(d.depth<=1)throw B(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(y));d=d.pop()}else if("@popall"===C.next)d=d.popall();else{let e=W(this._lexer,C.next,b,v,_);if("@"===e[0]&&(e=e.substr(1)),!V(this._lexer,e))throw B(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(y));d=d.push(e)}}C.log&&"string"===typeof C.log&&(g=this._lexer,p=this._lexer.languageId+": "+W(this._lexer,C.log,b,v,_),console.log(`${g.languageId}: ${p}`))}if(null===S)throw B(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(y));const k=i=>{const o=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,r=this._getNestedEmbeddedLanguageData(o);if(h<a){const i=e.substr(h);return this._nestedTokenize(i,t,q.create(d,r),n+h,s)}return q.create(d,r)};if(Array.isArray(S)){if(c&&c.groups.length>0)throw B(this._lexer,"groups cannot be nested: "+this._safeRuleName(y));if(v.length!==S.length+1)throw B(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(y));let e=0;for(let t=1;t<v.length;t++)e+=v[t].length;if(e!==b.length)throw B(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(y));c={rule:y,matches:v,groups:[]};for(let t=0;t<S.length;t++)c.groups[t]={action:S[t],matched:v[t+1]};h-=b.length}else{{if("@rematch"===S&&(h-=b.length,b="",v=null,S="",null!==w))return k(w);if(0===b.length){if(0===a||m!==d.depth||_!==d.state||(c?c.groups.length:0)!==f)continue;throw B(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(y))}let e=null;if(A(S)&&0===S.indexOf("@brackets")){const t=S.substr(9),i=J(this._lexer,b);if(!i)throw B(this._lexer,"@brackets token returned but no bracket defined as: "+b);e=F(i.token+t)}else{e=F(""===S?"":S+this._lexer.tokenPostfix)}i<o&&s.emit(i+n,e)}if(null!==w)return k(w)}}var g,p;return q.create(d,l)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new $(e,k.r3);e!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(e),C.dG.getOrCreate(e),this._embeddedLanguages[e]=!0);const t=C.dG.get(e);return new $(e,t?t.getInitialState():k.r3)}};function J(e,t){if(!t)return null;t=P(e,t);const i=e.brackets;for(const n of i){if(n.open===t)return{token:n.token,bracketType:1};if(n.close===t)return{token:n.token,bracketType:-1}}return null}X=H=j([U(4,z.pG)],X);const ee=(0,E.H)("standaloneColorizer",{createHTML:e=>e});class te{static colorizeElement(e,t,i,n){const s=(n=n||{}).theme||"vs",o=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();const r=t.getLanguageIdByMimeType(o)||o;e.setTheme(s);const a=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+s;return this.colorize(t,a||"",r,n).then((e=>{var t;const n=null!==(t=null===ee||void 0===ee?void 0:ee.createHTML(e))&&void 0!==t?t:e;i.innerHTML=n}),(e=>console.error(e)))}static async colorize(e,t,i,n){const s=e.languageIdCodec;let o=4;n&&"number"===typeof n.tabSize&&(o=n.tabSize),d.LU(t)&&(t=t.substr(1));const r=d.uz(t);if(!e.isRegisteredLanguageId(i))return ie(r,o,s);const a=await C.dG.getOrCreate(i);return a?function(e,t,i,n){return new Promise(((s,o)=>{const r=()=>{const a=function(e,t,i,n){let s=[],o=i.getInitialState();for(let r=0,a=e.length;r<a;r++){const a=e[r],l=i.tokenizeEncoded(a,!0,o);N.f.convertToEndOffset(l.tokens,a.length);const d=new N.f(l.tokens,a,n),h=I.qL.isBasicASCII(a,!0),c=I.qL.containsRTL(a,h,!0),u=(0,T.Md)(new T.zL(!1,!0,a,!1,h,c,0,d.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));s=s.concat(u.html),s.push("<br/>"),o=l.endState}return s.join("")}(e,t,i,n);if(i instanceof X){const e=i.getLoadStatus();if(!1===e.loaded)return void e.promise.then(r,o)}s(a)};r()}))}(r,o,a,s):ie(r,o,s)}static colorizeLine(e,t,i,n,s=4){const o=I.qL.isBasicASCII(e,t),r=I.qL.containsRTL(e,o,i);return(0,T.Md)(new T.zL(!1,!0,e,!1,o,r,0,n,[],s,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const n=e.getLineContent(t);e.tokenization.forceTokenization(t);const s=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),s,i)}}function ie(e,t,i){let n=[];const s=new Uint32Array(2);s[0]=0,s[1]=33587200;for(let o=0,r=e.length;o<r;o++){const r=e[o];s[0]=r.length;const a=new N.f(s,r,i),l=I.qL.isBasicASCII(r,!0),d=I.qL.containsRTL(r,l,!0),h=(0,T.Md)(new T.zL(!1,!0,r,!1,l,d,0,a,[],t,0,0,0,0,-1,"none",!1,!1,null));n=n.concat(h.html),n.push("<br/>")}return n.join("")}var ne=i(11007),se=i(29611),oe=i(8597),re=i(36456),ae=i(41234),le=i(58925),de=i(47612),he=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ce=function(e,t){return function(i,n){t(i,n,e)}};let ue=class extends l.jG{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new ae.vl),this._onCodeEditorAdd=this._register(new ae.vl),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new ae.vl),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new ae.vl),this._onDiffEditorAdd=this._register(new ae.vl),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new ae.vl),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new le.w,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorationsByType(e)))))}setModelProperty(e,t,i){const n=e.toString();let s;this._modelProperties.has(n)?s=this._modelProperties.get(n):(s=new Map,this._modelProperties.set(n,s)),s.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i)){return this._modelProperties.get(i).get(t)}}async openCodeEditor(e,t,i){for(const n of this._codeEditorOpenHandlers){const s=await n(e,t,i);if(null!==s)return s}return null}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return(0,l.s)(t)}};ue=he([ce(0,de.Gy)],ue);var ge=i(32848),pe=i(14718),me=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},fe=function(e,t){return function(i,n){t(i,n,e)}};let _e=class extends ue{constructor(e,t){super(t),this._register(this.onCodeEditorAdd((()=>this._checkContextKey()))),this._register(this.onCodeEditorRemove((()=>this._checkContextKey()))),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler((async(e,t,i)=>t?this.doOpenEditor(t,e):null)))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const i=t.resource.scheme;if(i===re.ny.http||i===re.ny.https)return(0,oe.CE)(t.resource.toString()),e}return null}const i=t.options?t.options.selection:null;if(i)if("number"===typeof i.endLineNumber&&"number"===typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};_e=me([fe(0,ge.fN),fe(1,de.Gy)],_e),(0,pe.v)(g.T,_e,0);var ve=i(25890),be=i(63591);const Ce=(0,be.u1)("layoutService");var ye=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},we=function(e,t){return function(i,n){t(i,n,e)}};let Se=class{get mainContainer(){var e,t;return null!==(t=null===(e=(0,ve.Fy)(this._codeEditorService.listCodeEditors()))||void 0===e?void 0:e.getContainerDomNode())&&void 0!==t?t:a.G.document.body}get activeContainer(){var e,t;const i=null!==(e=this._codeEditorService.getFocusedCodeEditor())&&void 0!==e?e:this._codeEditorService.getActiveCodeEditor();return null!==(t=null===i||void 0===i?void 0:i.getContainerDomNode())&&void 0!==t?t:this.mainContainer}get mainContainerDimension(){return oe.tG(this.mainContainer)}get activeContainerDimension(){return oe.tG(this.activeContainer)}get containers(){return(0,ve.Yc)(this._codeEditorService.listCodeEditors().map((e=>e.getContainerDomNode())))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=ae.Jh.None,this.onDidLayoutActiveContainer=ae.Jh.None,this.onDidLayoutContainer=ae.Jh.None,this.onDidChangeActiveContainer=ae.Jh.None,this.onDidAddContainer=ae.Jh.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};Se=ye([we(0,g.T)],Se);let ke=class extends Se{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};ke=ye([we(1,g.T)],ke),(0,pe.v)(Ce,Se,1);var xe=i(64383),Le=i(42291),De=i(31629),Ee=i(59599),Ne=i(58591),Te=i(47579),Ie=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Me=function(e,t){return function(i,n){t(i,n,e)}};const Ae=!1;function Re(e){return e.scheme===re.ny.file?e.fsPath:e.path}let Oe=0;class Pe{constructor(e,t,i,n,s,o,r){this.id=++Oe,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=s,this.sourceId=o,this.sourceOrder=r,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Fe{constructor(e,t){this.resourceLabel=e,this.reason=t}}class Be{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,n]of this.elements){(0===n.reason?e:t).push(n.resourceLabel)}const i=[];return e.length>0&&i.push(De.kg({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(De.kg({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class We{constructor(e,t,i,n,s,o,r){this.id=++Oe,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=s,this.sourceId=o,this.sourceOrder=r,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"===typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new Be),this.removedResources.has(t)||this.removedResources.set(t,new Fe(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new Be),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new Fe(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Ve{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)1===t.type&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,n=this._past.length;i<n;i++)t.push(this._past[i].id);for(let i=this._future.length-1;i>=0;i--)t.push(this._future[i].id);return new Te.To(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,n=0,s=-1;for(let r=0,a=this._past.length;r<a;r++,n++){const o=this._past[r];i&&(n>=t||o.id!==e.elements[n])&&(i=!1,s=0),i||1!==o.type||o.removeResource(this.resourceLabel,this.strResource,0)}let o=-1;for(let r=this._future.length-1;r>=0;r--,n++){const s=this._future[r];i&&(n>=t||s.id!==e.elements[n])&&(i=!1,o=r),i||1!==s.type||s.removeResource(this.resourceLabel,this.strResource,0)}-1!==s&&(this._past=this._past.slice(0,s)),-1!==o&&(this._future=this._future.slice(o+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class He{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;t<i;t++)this._versionIds[t]=this.editStacks[t].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}const ze=new Ve("","");ze.locked=!0;let je=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(const t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);const t=[];for(const i of this._editStacks)t.push(i[1].toString());console.log(t.join("\n"))}pushElement(e,t=Te.I_.None,i=Te.Ym.None){if(0===e.type){const n=Re(e.resource),s=this.getUriComparisonKey(e.resource);this._pushElement(new Pe(e,n,s,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{const n=new Set,s=[],o=[];for(const t of e.resources){const e=Re(t),i=this.getUriComparisonKey(t);n.has(i)||(n.add(i),s.push(e),o.push(i))}1===s.length?this._pushElement(new Pe(e,s[0],o[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new We(e,s,o,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){const i=e.resourceLabels[t],n=e.strResources[t];let s;this._editStacks.has(n)?s=this._editStacks.get(n):(s=new Ve(i,n),this._editStacks.set(n,s)),s.pushElement(e)}}getLastElement(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);if(e.hasFutureElements())return null;const i=e.getClosestPastElement();return i?i.actual:null}return null}_splitPastWorkspaceElement(e,t){const i=e.actual.split(),n=new Map;for(const s of i){const e=Re(s.resource),t=this.getUriComparisonKey(s.resource),i=new Pe(s,e,t,0,0,0,0);n.set(i.strResource,i)}for(const s of e.strResources){if(t&&t.has(s))continue;this._editStacks.get(s).splitPastWorkspaceElement(e,n)}}_splitFutureWorkspaceElement(e,t){const i=e.actual.split(),n=new Map;for(const s of i){const e=Re(s.resource),t=this.getUriComparisonKey(s.resource),i=new Pe(s,e,t,0,0,0,0);n.set(i.strResource,i)}for(const s of e.strResources){if(t&&t.has(s))continue;this._editStacks.get(s).splitFutureWorkspaceElement(e,n)}}removeElements(e){const t="string"===typeof e?e:this.getUriComparisonKey(e);if(this._editStacks.has(t)){this._editStacks.get(t).dispose(),this._editStacks.delete(t)}}setElementsValidFlag(e,t,i){const n=this.getUriComparisonKey(e);if(this._editStacks.has(n)){this._editStacks.get(n).setElementsValidFlag(t,i)}}createSnapshot(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).createSnapshot(e)}return new Te.To(e,[])}restoreSnapshot(e){const t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){const i=this._editStacks.get(t);i.restoreSnapshot(e),i.hasPastElements()||i.hasFutureElements()||(i.dispose(),this._editStacks.delete(t))}}getElements(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).getElements()}return{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const o=s.getClosestPastElement();o&&(o.sourceId===e&&(!t||o.sourceOrder>t.sourceOrder)&&(t=o,i=n))}return[t,i]}canUndo(e){if(e instanceof Te.Ym){const[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasPastElements()}return!1}_onError(e,t){(0,xe.dz)(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,s){const o=this._acquireLocks(i);let r;try{r=t()}catch(a){return o(),n.dispose(),this._onError(a,e)}return r?r.then((()=>(o(),n.dispose(),s())),(t=>(o(),n.dispose(),this._onError(t,e)))):(o(),n.dispose(),s())}async _invokeWorkspacePrepare(e){if("undefined"===typeof e.actual.prepareUndoRedo)return l.jG.None;const t=e.actual.prepareUndoRedo();return"undefined"===typeof t?l.jG.None:t}_invokeResourcePrepare(e,t){if(1!==e.actual.type||"undefined"===typeof e.actual.prepareUndoRedo)return t(l.jG.None);const i=e.actual.prepareUndoRedo();return i?(0,l.Xm)(i)?t(i):i.then((e=>t(e))):t(l.jG.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||ze);return new He(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new Ue(this._undo(e,0,!0));for(const s of t.strResources)this.removeElements(s);return this._notificationService.warn(n),new Ue}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,De.kg({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,De.kg({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const s=[];for(const r of i.editStacks)r.getClosestPastElement()!==t&&s.push(r.resourceLabel);if(s.length>0)return this._tryToSplitAndUndo(e,t,null,De.kg({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,s.join(", ")));const o=[];for(const r of i.editStacks)r.locked&&o.push(r.resourceLabel);return o.length>0?this._tryToSplitAndUndo(e,t,null,De.kg({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,o.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,De.kg({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const n=this._getAffectedEditStacks(t),s=this._checkWorkspaceUndo(e,t,n,!1);return s?s.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,n){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let s;!function(e){e[e.All=0]="All",e[e.This=1]="This",e[e.Cancel=2]="Cancel"}(s||(s={}));const{result:o}=await this._dialogService.prompt({type:Le.A.Info,message:De.kg("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),buttons:[{label:De.kg({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",i.editStacks.length),run:()=>s.All},{label:De.kg({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>s.This}],cancelButton:{run:()=>s.Cancel}});if(o===s.Cancel)return;if(o===s.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const r=this._checkWorkspaceUndo(e,t,i,!1);if(r)return r.returnValue;n=!0}let s;try{s=await this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const o=this._checkWorkspaceUndo(e,t,i,!0);if(o)return s.dispose(),o.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.undo()),i,s,(()=>this._continueUndoInGroup(t.groupId,n)))}_resourceUndo(e,t,i){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,(()=>t.actual.undo()),new He([e]),n,(()=>this._continueUndoInGroup(t.groupId,i))))));{const e=De.kg({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const o=s.getClosestPastElement();o&&(o.groupId===e&&(!t||o.groupOrder>t.groupOrder)&&(t=o,i=n))}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);return i?this._undo(i,0,t):void 0}undo(e){if(e instanceof Te.Ym){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"===typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const n=this._editStacks.get(e),s=n.getClosestPastElement();if(!s)return;if(s.groupId){const[e,n]=this._findClosestUndoElementInGroup(s.groupId);if(s!==e&&n)return this._undo(n,t,i)}if((s.sourceId!==t||s.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,s);try{return 1===s.type?this._workspaceUndo(e,s,i):this._resourceUndo(n,s,i)}finally{Ae}}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:De.kg("confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:De.kg({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:De.kg("confirmDifferentSource.no","No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const o=s.getClosestFutureElement();o&&(o.sourceId===e&&(!t||o.sourceOrder<t.sourceOrder)&&(t=o,i=n))}return[t,i]}canRedo(e){if(e instanceof Te.Ym){const[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasFutureElements()}return!1}_tryToSplitAndRedo(e,t,i,n){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(n),new Ue(this._redo(e));for(const s of t.strResources)this.removeElements(s);return this._notificationService.warn(n),new Ue}_checkWorkspaceRedo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,De.kg({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,De.kg({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const s=[];for(const r of i.editStacks)r.getClosestFutureElement()!==t&&s.push(r.resourceLabel);if(s.length>0)return this._tryToSplitAndRedo(e,t,null,De.kg({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,s.join(", ")));const o=[];for(const r of i.editStacks)r.locked&&o.push(r.resourceLabel);return o.length>0?this._tryToSplitAndRedo(e,t,null,De.kg({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,o.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,De.kg({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let n;try{n=await this._invokeWorkspacePrepare(t)}catch(o){return this._onError(o,t)}const s=this._checkWorkspaceRedo(e,t,i,!0);if(s)return n.dispose(),s.returnValue;for(const r of i.editStacks)r.moveForward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.redo()),i,n,(()=>this._continueRedoInGroup(t.groupId)))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(i=>(e.moveForward(t),this._safeInvokeWithLocks(t,(()=>t.actual.redo()),new He([e]),i,(()=>this._continueRedoInGroup(t.groupId))))));{const e=De.kg({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,s]of this._editStacks){const o=s.getClosestFutureElement();o&&(o.groupId===e&&(!t||o.groupOrder<t.groupOrder)&&(t=o,i=n))}return[t,i]}_continueRedoInGroup(e){if(!e)return;const[,t]=this._findClosestRedoElementInGroup(e);return t?this._redo(t):void 0}redo(e){if(e instanceof Te.Ym){const[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"===typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;const t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){const[e,t]=this._findClosestRedoElementInGroup(i.groupId);if(i!==e&&t)return this._redo(t)}try{return 1===i.type?this._workspaceRedo(e,i):this._resourceRedo(t,i)}finally{Ae}}}};je=Ie([Me(0,Ee.X),Me(1,Ne.Ot)],je);class Ue{constructor(e){this.returnValue=e}}(0,pe.v)(Te.$D,je,1);i(32500);var Ke=i(18801),Ge=i(45538),$e=i(74243),qe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Qe=function(e,t){return function(i,n){t(i,n,e)}};let Ye=class extends l.jG{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new Ge.i(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};Ye=qe([Qe(0,de.Gy),Qe(1,Ke.rr),Qe(2,y.L)],Ye),(0,pe.v)($e.F,Ye,1);var Ze=i(54459);function Xe(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(Xe):!!e.exclusive)}class Je{constructor(e,t,i,n){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n}equals(e){var t,i;return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&(null===(t=this.notebookUri)||void 0===t?void 0:t.toString())===(null===(i=e.notebookUri)||void 0===i?void 0:i.toString())}}class et{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new ae.vl,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,l.s)((()=>{if(i){const e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(const i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,(e=>t.push(e.provider))),t}orderedGroups(e){const t=[];let i,n;return this._orderedForEach(e,(e=>{i&&n===e._score?i.push(e.provider):(n=e._score,i=[e.provider],t.push(i))})),t}_orderedForEach(e,t){this._updateScores(e);for(const i of this._entries)i._score>0&&t(i)}_updateScores(e){var t,i;const n=null===(t=this._notebookInfoResolver)||void 0===t?void 0:t.call(this,e.uri),s=n?new Je(e.uri,e.getLanguageId(),n.uri,n.type):new Je(e.uri,e.getLanguageId(),void 0,void 0);if(!(null===(i=this._lastCandidate)||void 0===i?void 0:i.equals(s))){this._lastCandidate=s;for(const t of this._entries)if(t._score=(0,Ze.f)(t.selector,s.uri,s.languageId,(0,x.vd)(e),s.notebookUri,s.notebookType),Xe(t.selector)&&t._score>0){for(const e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(et._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:tt(e.selector)&&!tt(t.selector)?1:!tt(e.selector)&&tt(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function tt(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(tt):Boolean(e.isBuiltin))}var it=i(56942);(0,pe.v)(it.u,class{constructor(){this.referenceProvider=new et(this._score.bind(this)),this.renameProvider=new et(this._score.bind(this)),this.newSymbolNamesProvider=new et(this._score.bind(this)),this.codeActionProvider=new et(this._score.bind(this)),this.definitionProvider=new et(this._score.bind(this)),this.typeDefinitionProvider=new et(this._score.bind(this)),this.declarationProvider=new et(this._score.bind(this)),this.implementationProvider=new et(this._score.bind(this)),this.documentSymbolProvider=new et(this._score.bind(this)),this.inlayHintsProvider=new et(this._score.bind(this)),this.colorProvider=new et(this._score.bind(this)),this.codeLensProvider=new et(this._score.bind(this)),this.documentFormattingEditProvider=new et(this._score.bind(this)),this.documentRangeFormattingEditProvider=new et(this._score.bind(this)),this.onTypeFormattingEditProvider=new et(this._score.bind(this)),this.signatureHelpProvider=new et(this._score.bind(this)),this.hoverProvider=new et(this._score.bind(this)),this.documentHighlightProvider=new et(this._score.bind(this)),this.multiDocumentHighlightProvider=new et(this._score.bind(this)),this.selectionRangeProvider=new et(this._score.bind(this)),this.foldingRangeProvider=new et(this._score.bind(this)),this.linkProvider=new et(this._score.bind(this)),this.inlineCompletionsProvider=new et(this._score.bind(this)),this.inlineEditProvider=new et(this._score.bind(this)),this.completionProvider=new et(this._score.bind(this)),this.linkedEditingRangeProvider=new et(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new et(this._score.bind(this)),this.documentSemanticTokensProvider=new et(this._score.bind(this)),this.documentOnDropEditProvider=new et(this._score.bind(this)),this.documentPasteEditProvider=new et(this._score.bind(this))}_score(e){var t;return null===(t=this._notebookTypeResolver)||void 0===t?void 0:t.call(this,e)}},1);var nt=i(85845),st=i(67220),ot=i(47508),rt=i(98031),at=i(52776),lt=i(17390),dt=i(49099),ht=i(20492),ct=i(16980),ut=i(98067),gt=i(253),pt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},mt=function(e,t){return function(i,n){t(i,n,e)}};const ft=oe.$;let _t=class extends lt.x{get _targetWindow(){return oe.zk(this._target.targetElements[0])}get _targetDocumentElement(){return oe.zk(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return 2===this._hoverPosition?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(e,t,i,n,s,r){var a,d,h,c,u,g,p,m;super(),this._keybindingService=t,this._configurationService=i,this._openerService=n,this._instantiationService=s,this._accessibilityService=r,this._messageListeners=new l.Cm,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._onDispose=this._register(new ae.vl),this._onRequestLayout=this._register(new ae.vl),this._linkHandler=e.linkHandler||(t=>(0,ht.i)(this._openerService,t,(0,ct.VS)(e.content)?e.content.isTrusted:void 0)),this._target="targetElements"in e.target?e.target:new bt(e.target),this._hoverPointer=(null===(a=e.appearance)||void 0===a?void 0:a.showPointer)?ft("div.workbench-hover-pointer"):void 0,this._hover=this._register(new at.N4),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),(null===(d=e.appearance)||void 0===d?void 0:d.compact)&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),(null===(h=e.appearance)||void 0===h?void 0:h.skipFadeInAnimation)&&this._hover.containerDomNode.classList.add("skip-fade-in"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),(null===(c=e.position)||void 0===c?void 0:c.forcePosition)&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=null!==(g=null===(u=e.position)||void 0===u?void 0:u.hoverPosition)&&void 0!==g?g:3,this.onmousedown(this._hover.containerDomNode,(e=>e.stopPropagation())),this.onkeydown(this._hover.containerDomNode,(e=>{e.equals(9)&&this.dispose()})),this._register(oe.ko(this._targetWindow,"blur",(()=>this.dispose())));const f=ft("div.hover-row.markdown-hover"),_=ft("div.hover-contents");if("string"===typeof e.content)_.textContent=e.content,_.style.whiteSpace="pre-wrap";else if(e.content instanceof HTMLElement)_.appendChild(e.content),_.classList.add("html-hover-contents");else{const t=e.content,i=this._instantiationService.createInstance(ht.T,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||o.jU.fontFamily}),{element:n}=i.render(t,{actionHandler:{callback:e=>this._linkHandler(e),disposables:this._messageListeners},asyncRenderCallback:()=>{_.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});_.appendChild(n)}if(f.appendChild(_),this._hover.contentsDomNode.appendChild(f),e.actions&&e.actions.length>0){const t=ft("div.hover-row.status-bar"),i=ft("div.actions");e.actions.forEach((e=>{const t=this._keybindingService.lookupKeybinding(e.commandId),n=t?t.getLabel():null;at.jQ.render(i,{label:e.label,commandId:e.commandId,run:t=>{e.run(t),this.dispose()},iconClass:e.iconClass},n)})),t.appendChild(i),this._hover.containerDomNode.appendChild(t)}let v;if(this._hoverContainer=ft("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode),v=!(e.actions&&e.actions.length>0)&&(void 0===(null===(p=e.persistence)||void 0===p?void 0:p.hideOnHover)?"string"===typeof e.content||(0,ct.VS)(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes("</a>"):e.persistence.hideOnHover),v&&(null===(m=e.appearance)||void 0===m?void 0:m.showHoverHint)){const e=ft("div.hover-row.status-bar"),t=ft("div.info");t.textContent=(0,De.kg)("hoverhint","Hold {0} key to mouse over",ut.zx?"Option":"Alt"),e.appendChild(t),this._hover.containerDomNode.appendChild(e)}const b=[...this._target.targetElements];v||b.push(this._hoverContainer);const C=this._register(new vt(b));if(this._register(C.onMouseOut((()=>{this._isLocked||this.dispose()}))),v){const e=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new vt(e)),this._register(this._lockMouseTracker.onMouseOut((()=>{this._isLocked||this.dispose()})))}else this._lockMouseTracker=C}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;const e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){const i=oe.Hs(this._hoverContainer,ft("div")),n=oe.BC(this._hoverContainer,ft("div"));i.tabIndex=0,n.tabIndex=0,this._register(oe.ko(n,"focus",(t=>{e.focus(),t.preventDefault()}))),this._register(oe.ko(i,"focus",(e=>{t.focus(),e.preventDefault()})))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t<e.childNodes.length;t++){const i=e.childNodes.item(e.childNodes.length-t-1);if(i.nodeType===i.ELEMENT_NODE){const e=i;if("number"===typeof e.tabIndex&&e.tabIndex>=0)return e}const n=this.findLastFocusableChild(i);if(n)return n}}render(e){var t;e.appendChild(this._hoverContainer);const i=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&(0,at.vr)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),null===(t=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))||void 0===t?void 0:t.getAriaLabel());i&&(0,ne.h5)(i),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";const e=this._target.targetElements.map((e=>(e=>{const t=oe.mU(e),i=e.getBoundingClientRect();return{top:i.top*t,bottom:i.bottom*t,right:i.right*t,left:i.left*t}})(e))),{top:t,right:i,bottom:n,left:s}=e[0],o=i-s,r=n-t,a={top:t,right:i,bottom:n,left:s,width:o,height:r,center:{x:s+o/2,y:t+r/2}};if(this.adjustHorizontalHoverPosition(a),this.adjustVerticalHoverPosition(a),this.adjustHoverMaxHeight(a),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:a.left+=3,a.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:a.left-=3,a.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:a.top+=3,a.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:a.top-=3,a.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px"}a.center.x=a.left+o/2,a.center.y=a.top+r/2}this.computeXCordinate(a),this.computeYCordinate(a),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(a)),this._hover.onContentsChanged()}computeXCordinate(e){const t=this._hover.containerDomNode.clientWidth+2;void 0!==this._target.x?this._x=this._target.x:1===this._hoverPosition?this._x=e.right:0===this._hoverPosition?this._x=e.left-t:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+t>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-t-2,this._targetDocumentElement.clientLeft))),this._x<this._targetDocumentElement.clientLeft&&(this._x=e.left+2)}computeYCordinate(e){void 0!==this._target.y?this._y=this._target.y:3===this._hoverPosition?this._y=e.top:2===this._hoverPosition?this._y=e.bottom-2:this._hoverPointer?this._y=e.center.y+this._hover.containerDomNode.clientHeight/2:this._y=e.bottom,this._y>this._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(void 0!==this._target.x)return;const t=this._hoverPointer?3:0;if(this._forcePosition){const i=t+2;1===this._hoverPosition?this._hover.containerDomNode.style.maxWidth=this._targetDocumentElement.clientWidth-e.right-i+"px":0===this._hoverPosition&&(this._hover.containerDomNode.style.maxWidth=e.left-i+"px")}else if(1===this._hoverPosition){if(this._targetDocumentElement.clientWidth-e.right<this._hover.containerDomNode.clientWidth+t){e.left>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=0:this._hoverPosition=2}}else if(0===this._hoverPosition){if(e.left<this._hover.containerDomNode.clientWidth+t){this._targetDocumentElement.clientWidth-e.right>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=1:this._hoverPosition=2}e.left-this._hover.containerDomNode.clientWidth-t<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1)}}adjustVerticalHoverPosition(e){if(void 0!==this._target.y||this._forcePosition)return;const t=this._hoverPointer?3:0;3===this._hoverPosition?e.top-this._hover.containerDomNode.clientHeight-t<0&&(this._hoverPosition=2):2===this._hoverPosition&&e.bottom+this._hover.containerDomNode.clientHeight+t>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight/2;if(this._forcePosition){const i=2+(this._hoverPointer?3:0);3===this._hoverPosition?t=Math.min(t,e.top-i):2===this._hoverPosition&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.clientHeight<this._hover.contentsDomNode.scrollHeight){const e=`${this._hover.scrollbar.options.verticalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingRight!==e&&(this._hover.contentsDomNode.style.paddingRight=e)}}setHoverPointerPosition(e){if(this._hoverPointer)switch(this._hoverPosition){case 0:case 1:{this._hoverPointer.classList.add(0===this._hoverPosition?"right":"left");const t=this._hover.containerDomNode.clientHeight;t>e.height?this._hoverPointer.style.top=e.center.y-(this._y-t)-3+"px":this._hoverPointer.style.top=Math.round(t/2)-3+"px";break}case 3:case 2:{this._hoverPointer.classList.add(3===this._hoverPosition?"bottom":"top");const t=this._hover.containerDomNode.clientWidth;let i=Math.round(t/2)-3;const n=this._x+i;(n<e.left||n>e.right)&&(i=e.center.x-this._x-3),this._hoverPointer.style.left=`${i}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._hoverContainer.remove(),this._messageListeners.dispose(),this._target.dispose(),super.dispose()),this._isDisposed=!0}};_t=pt([mt(1,rt.b),mt(2,z.pG),mt(3,dt.C),mt(4,be._Y),mt(5,gt.j)],_t);class vt extends lt.x{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e){super(),this._elements=e,this._isMouseIn=!0,this._onMouseOut=this._register(new ae.vl),this._elements.forEach((e=>this.onmouseover(e,(()=>this._onTargetMouseOver(e))))),this._elements.forEach((e=>this.onmouseleave(e,(()=>this._onTargetMouseLeave(e)))))}_onTargetMouseOver(e){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(e)}_onTargetMouseLeave(e){this._isMouseIn=!1,this._evaluateMouseState(e)}_evaluateMouseState(e){this._clearEvaluateMouseStateTimeout(e),this._mouseTimeout=oe.zk(e).setTimeout((()=>this._fireIfMouseOutside()),0)}_clearEvaluateMouseStateTimeout(e){this._mouseTimeout&&(oe.zk(e).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}}class bt{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}var Ct,yt=i(72962),wt=i(55089),St=i(92719);function kt(e,t,i){const n=i.mode===Ct.ALIGN?i.offset:i.offset+i.size,s=i.mode===Ct.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-n?n:t<=s?s-t:Math.max(e-t,0):t<=s?s-t:t<=e-n?n:0}!function(e){e[e.AVOID=0]="AVOID",e[e.ALIGN=1]="ALIGN"}(Ct||(Ct={}));class xt extends l.jG{constructor(e,t){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=l.jG.None,this.toDisposeOnSetContainer=l.jG.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=oe.$(".context-view"),oe.jD(this.view),this.setContainer(e,t),this._register((0,l.s)((()=>this.setContainer(null,1))))}setContainer(e,t){var i;this.useFixedPosition=1!==t;const n=this.useShadowDOM;if(this.useShadowDOM=3===t,(e!==this.container||n!==this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,null===(i=this.shadowRootHostElement)||void 0===i||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e)){if(this.container=e,this.useShadowDOM){this.shadowRootHostElement=oe.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=Lt,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(oe.$("slot"))}else this.container.appendChild(this.view);const t=new l.Cm;xt.BUBBLE_UP_EVENTS.forEach((e=>{t.add(oe.b2(this.container,e,(e=>{this.onDOMEvent(e,!1)})))})),xt.BUBBLE_DOWN_EVENTS.forEach((e=>{t.add(oe.b2(this.container,e,(e=>{this.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=t}}show(e){var t,i,n;this.isVisible()&&this.hide(),oe.w_(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+(null!==(t=e.layer)&&void 0!==t?t:0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",oe.WU(this.view),this.toDisposeOnClean=e.render(this.view)||l.jG.None,this.delegate=e,this.doLayout(),null===(n=(i=this.delegate).focus)||void 0===n||n.call(i)}getViewElement(){return this.view}layout(){var e,t;this.isVisible()&&(!1!==this.delegate.canRelayout||ut.un&&wt.e.pointerEvents?(null===(t=null===(e=this.delegate)||void 0===e?void 0:e.layout)||void 0===t||t.call(e),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(e instanceof HTMLElement){const i=oe.BK(e),n=oe.mU(e);t={top:i.top*n,left:i.left*n,width:i.width*n,height:i.height*n}}else t=function(e){const t=e;return!!t&&"number"===typeof t.x&&"number"===typeof t.y}(e)?{top:e.y,left:e.x,width:e.width||1,height:e.height||2}:{top:e.posy,left:e.posx,width:2,height:2};const i=oe.Tr(this.view),n=oe.OK(this.view),s=this.delegate.anchorPosition||0,o=this.delegate.anchorAlignment||0,r=this.delegate.anchorAxisAlignment||0;let a,l;const d=oe.fz();if(0===r){const e={offset:t.top-d.pageYOffset,size:t.height,position:0===s?0:1},r={offset:t.left,size:t.width,position:0===o?0:1,mode:Ct.ALIGN};a=kt(d.innerHeight,n,e)+d.pageYOffset,St.Q.intersects({start:a,end:a+n},{start:e.offset,end:e.offset+e.size})&&(r.mode=Ct.AVOID),l=kt(d.innerWidth,i,r)}else{const e={offset:t.left,size:t.width,position:0===o?0:1},r={offset:t.top,size:t.height,position:0===s?0:1,mode:Ct.ALIGN};l=kt(d.innerWidth,i,e),St.Q.intersects({start:l,end:l+i},{start:e.offset,end:e.offset+e.size})&&(r.mode=Ct.AVOID),a=kt(d.innerHeight,n,r)+d.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===s?"bottom":"top"),this.view.classList.add(0===o?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const h=oe.BK(this.container);this.view.style.top=a-(this.useFixedPosition?oe.BK(this.view).top:h.top)+"px",this.view.style.left=l-(this.useFixedPosition?oe.BK(this.view).left:h.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,(null===t||void 0===t?void 0:t.onHide)&&t.onHide(e),this.toDisposeOnClean.dispose(),oe.jD(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,oe.zk(e).document.activeElement):t&&!oe.QX(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}xt.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],xt.BUBBLE_DOWN_EVENTS=["click"];const Lt='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var Dt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Et=function(e,t){return function(i,n){t(i,n,e)}};let Nt=class extends l.jG{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=this._register(new l.HE),this.contextView=this._register(new xt(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer((()=>this.layout())))}showContextView(e,t,i){let n;n=t?t===this.layoutService.getContainer((0,oe.zk)(t))?1:i?3:2:1,this.contextView.setContainer(null!==t&&void 0!==t?t:this.layoutService.activeContainer,n),this.contextView.show(e);const s=(0,l.s)((()=>{this.currentViewDisposable===s&&this.hideContextView()}));return this.currentViewDisposable.value=s,s}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};Nt=Dt([Et(0,Ce)],Nt);class Tt extends Nt{getContextViewElement(){return this.contextView.getViewElement()}}var It=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Mt=function(e,t){return function(i,n){t(i,n,e)}};let At=class extends l.jG{constructor(e,t,i,n,s){super(),this._instantiationService=e,this._keybindingService=i,this._layoutService=n,this._accessibilityService=s,t.onDidShowContextMenu((()=>this.hideHover())),this._contextViewHandler=this._register(new Nt(this._layoutService))}showHover(e,t,i){var n,s,o,r;if(Rt(this._currentHoverOptions)===Rt(e))return;if(this._currentHover&&(null===(s=null===(n=this._currentHoverOptions)||void 0===n?void 0:n.persistence)||void 0===s?void 0:s.sticky))return;this._currentHoverOptions=e,this._lastHoverOptions=e;const d=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),h=(0,oe.bq)();i||(this._lastFocusedElementBeforeOpen=d&&h?h:void 0);const c=new l.Cm,u=this._instantiationService.createInstance(_t,e);if((null===(o=e.persistence)||void 0===o?void 0:o.sticky)&&(u.isLocked=!0),u.onDispose((()=>{var t,i;(null===(t=this._currentHover)||void 0===t?void 0:t.domNode)&&(0,oe.nR)(this._currentHover.domNode)&&(null===(i=this._lastFocusedElementBeforeOpen)||void 0===i||i.focus()),this._currentHoverOptions===e&&(this._currentHoverOptions=void 0),c.dispose()})),!e.container){const t=e.target instanceof HTMLElement?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer((0,oe.zk)(t))}if(this._contextViewHandler.showContextView(new Ot(u,t),e.container),u.onRequestLayout((()=>this._contextViewHandler.layout())),null===(r=e.persistence)||void 0===r?void 0:r.sticky)c.add((0,oe.ko)((0,oe.zk)(e.container).document,oe.Bx.MOUSE_DOWN,(e=>{(0,oe.QX)(e.target,u.domNode)||this.doHideHover()})));else{if("targetElements"in e.target)for(const i of e.target.targetElements)c.add((0,oe.ko)(i,oe.Bx.CLICK,(()=>this.hideHover())));else c.add((0,oe.ko)(e.target,oe.Bx.CLICK,(()=>this.hideHover())));const t=(0,oe.bq)();if(t){const i=(0,oe.zk)(t).document;c.add((0,oe.ko)(t,oe.Bx.KEY_DOWN,(t=>{var i;return this._keyDown(t,u,!!(null===(i=e.persistence)||void 0===i?void 0:i.hideOnKeyDown))}))),c.add((0,oe.ko)(i,oe.Bx.KEY_DOWN,(t=>{var i;return this._keyDown(t,u,!!(null===(i=e.persistence)||void 0===i?void 0:i.hideOnKeyDown))}))),c.add((0,oe.ko)(t,oe.Bx.KEY_UP,(e=>this._keyUp(e,u)))),c.add((0,oe.ko)(i,oe.Bx.KEY_UP,(e=>this._keyUp(e,u))))}}if("IntersectionObserver"in a.G){const t=new IntersectionObserver((e=>this._intersectionChange(e,u)),{threshold:0}),i="targetElements"in e.target?e.target.targetElements[0]:e.target;t.observe(i),c.add((0,l.s)((()=>t.disconnect())))}return this._currentHover=u,u}hideHover(){var e;!(null===(e=this._currentHover)||void 0===e?void 0:e.isLocked)&&this._currentHoverOptions&&this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(e,t){e[e.length-1].isIntersecting||t.dispose()}_keyDown(e,t,i){var n,s;if("Alt"===e.key)return void(t.isLocked=!0);const o=new yt.Z(e);this._keybindingService.resolveKeyboardEvent(o).getSingleModifierDispatchChords().some((e=>!!e))||0!==this._keybindingService.softDispatch(o,o.target).kind||!i||(null===(n=this._currentHoverOptions)||void 0===n?void 0:n.trapFocus)&&"Tab"===e.key||(this.hideHover(),null===(s=this._lastFocusedElementBeforeOpen)||void 0===s||s.focus())}_keyUp(e,t){var i;"Alt"===e.key&&(t.isLocked=!1,t.isMouseIn||(this.hideHover(),null===(i=this._lastFocusedElementBeforeOpen)||void 0===i||i.focus()))}};function Rt(e){var t;if(void 0!==e)return null!==(t=null===e||void 0===e?void 0:e.id)&&void 0!==t?t:e}At=It([Mt(0,be._Y),Mt(1,ot.Z),Mt(2,rt.b),Mt(3,Ce),Mt(4,gt.j)],At);class Ot{get anchorPosition(){return this._hover.anchor}constructor(e,t=!1){this._hover=e,this._focus=t,this.layer=1}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}(0,pe.v)(st.TN,At,1),(0,de.zy)(((e,t)=>{const i=e.getColor(nt.oZ8);i&&(t.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`))}));var Pt=i(42539),Ft=i(80537),Bt=i(94371),Wt=i(7085),Vt=i(83069),Ht=i(36677),zt=i(18938),jt=i(90360),Ut=i(50091),Kt=i(74320),Gt=i(631),$t=i(1646),qt=i(46359);function Qt(e){return Object.isFrozen(e)?e:p.ol(e)}class Yt{constructor(e={},t=[],i=[],n){this._contents=e,this._keys=t,this._overrides=i,this.raw=n,this.overrideConfigurations=new Map}get rawConfiguration(){var e;if(!this._rawConfiguration)if(null===(e=this.raw)||void 0===e?void 0:e.length){const e=this.raw.map((e=>{if(e instanceof Yt)return e;const t=new Zt("");return t.parseRaw(e),t.configurationModel}));this._rawConfiguration=e.reduce(((e,t)=>t===e?t:e.merge(t)),e[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?(0,z.gD)(this.contents,e):this.contents}inspect(e,t){const i=this;return{get value(){return Qt(i.rawConfiguration.getValue(e))},get override(){return t?Qt(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return Qt(t?i.rawConfiguration.override(t).getValue(e):i.rawConfiguration.getValue(e))},get overrides(){const t=[];for(const{contents:n,identifiers:s,keys:o}of i.rawConfiguration.overrides){const i=new Yt(n,o).getValue(e);void 0!==i&&t.push({identifiers:s,value:i})}return t.length?Qt(t):void 0}}}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?(0,z.gD)(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){var t,i;const n=p.Go(this.contents),s=p.Go(this.overrides),o=[...this.keys],r=(null===(t=this.raw)||void 0===t?void 0:t.length)?[...this.raw]:[this];for(const a of e)if(r.push(...(null===(i=a.raw)||void 0===i?void 0:i.length)?a.raw:[a]),!a.isEmpty()){this.mergeContents(n,a.contents);for(const e of a.overrides){const[t]=s.filter((t=>ve.aI(t.identifiers,e.identifiers)));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=ve.dM(t.keys)):s.push(p.Go(e))}for(const e of a.keys)-1===o.indexOf(e)&&o.push(e)}return new Yt(n,o,s,r.every((e=>e instanceof Yt))?void 0:r)}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!==typeof t||!Object.keys(t).length)return this;const i={};for(const n of ve.dM([...Object.keys(this.contents),...Object.keys(t)])){let e=this.contents[n];const s=t[n];s&&("object"===typeof e&&"object"===typeof s?(e=p.Go(e),this.mergeContents(e,s)):e=s),i[n]=e}return new Yt(i,this.keys,this.overrides)}mergeContents(e,t){for(const i of Object.keys(t))i in e&&Gt.Gv(e[i])&&Gt.Gv(t[i])?this.mergeContents(e[i],t[i]):e[i]=p.Go(t[i])}getContentsForOverrideIdentifer(e){let t=null,i=null;const n=e=>{e&&(i?this.mergeContents(i,e):i=p.Go(e))};for(const s of this.overrides)1===s.identifiers.length&&s.identifiers[0]===e?t=s.contents:s.identifiers.includes(e)&&n(s.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(e,t){this.updateValue(e,t,!0)}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){const t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),(0,z.iB)(this.contents,e),$t.rC.test(e)&&this.overrides.splice(this.overrides.findIndex((t=>ve.aI(t.identifiers,(0,$t.Gv)(e)))),1))}updateValue(e,t,i){(0,z.kW)(this.contents,e,t,(e=>console.error(e))),(i=i||-1===this.keys.indexOf(e))&&this.keys.push(e),$t.rC.test(e)&&this.overrides.push({identifiers:(0,$t.Gv)(e),keys:Object.keys(this.contents[e]),contents:(0,z.ad)(this.contents[e],(e=>console.error(e)))})}}class Zt{constructor(e){this._name=e,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||new Yt}parseRaw(e,t){this._raw=e;const{contents:i,keys:n,overrides:s,restricted:o,hasExcludedProperties:r}=this.doParseRaw(e,t);this._configurationModel=new Yt(i,n,s,r?[e]:void 0),this._restrictedConfigurations=o||[]}doParseRaw(e,t){const i=qt.O.as($t.Fd.Configuration).getConfigurationProperties(),n=this.filter(e,i,!0,t);e=n.raw;return{contents:(0,z.ad)(e,(e=>console.error(`Conflict in settings file ${this._name}: ${e}`))),keys:Object.keys(e),overrides:this.toOverrides(e,(e=>console.error(`Conflict in settings file ${this._name}: ${e}`))),restricted:n.restricted,hasExcludedProperties:n.hasExcludedProperties}}filter(e,t,i,n){var s,o,r;let a=!1;if(!(null===n||void 0===n?void 0:n.scopes)&&!(null===n||void 0===n?void 0:n.skipRestricted)&&!(null===(s=null===n||void 0===n?void 0:n.exclude)||void 0===s?void 0:s.length))return{raw:e,restricted:[],hasExcludedProperties:a};const l={},d=[];for(const h in e)if($t.rC.test(h)&&i){const i=this.filter(e[h],t,!1,n);l[h]=i.raw,a=a||i.hasExcludedProperties,d.push(...i.restricted)}else{const i=t[h],s=i?"undefined"!==typeof i.scope?i.scope:3:void 0;(null===i||void 0===i?void 0:i.restricted)&&d.push(h),(null===(o=n.exclude)||void 0===o?void 0:o.includes(h))||!(null===(r=n.include)||void 0===r?void 0:r.includes(h))&&(void 0!==s&&void 0!==n.scopes&&!n.scopes.includes(s)||n.skipRestricted&&(null===i||void 0===i?void 0:i.restricted))?a=!0:l[h]=e[h]}return{raw:l,restricted:d,hasExcludedProperties:a}}toOverrides(e,t){const i=[];for(const n of Object.keys(e))if($t.rC.test(n)){const s={};for(const t in e[n])s[t]=e[n][t];i.push({identifiers:(0,$t.Gv)(n),keys:Object.keys(s),contents:(0,z.ad)(s,t)})}return i}}class Xt{constructor(e,t,i,n,s,o,r,a,l,d,h,c,u){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=n,this.defaultConfiguration=s,this.policyConfiguration=o,this.applicationConfiguration=r,this.userConfiguration=a,this.localUserConfiguration=l,this.remoteUserConfiguration=d,this.workspaceConfiguration=h,this.folderConfigurationModel=c,this.memoryConfigurationModel=u}toInspectValue(e){return void 0!==(null===e||void 0===e?void 0:e.value)||void 0!==(null===e||void 0===e?void 0:e.override)||void 0!==(null===e||void 0===e?void 0:e.overrides)?e:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}}class Jt{constructor(e,t,i,n,s=new Yt,o=new Yt,r=new Kt.fT,a=new Yt,l=new Kt.fT){this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=n,this._remoteUserConfiguration=s,this._workspaceConfiguration=o,this._folderConfigurations=r,this._memoryConfiguration=a,this._memoryConfigurationByResource=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Kt.fT,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidatedConfigurationModel(e,t,i).getValue(e)}updateValue(e,t,i={}){let n;i.resource?(n=this._memoryConfigurationByResource.get(i.resource),n||(n=new Yt,this._memoryConfigurationByResource.set(i.resource,n))):n=this._memoryConfiguration,void 0===t?n.removeValue(e):n.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const n=this.getConsolidatedConfigurationModel(e,t,i),s=this.getFolderConfigurationModelForResource(t.resource,i),o=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,r=new Set;for(const a of n.overrides)for(const t of a.identifiers)void 0!==n.getOverrideValue(e,t)&&r.add(t);return new Xt(e,t,n.getValue(e),r.size?[...r]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,s||void 0,o)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let n=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(n=n.override(t.overrideIdentifier)),this._policyConfiguration.isEmpty()||void 0===this._policyConfiguration.getValue(e)||(n=n.merge(this._policyConfiguration)),n}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const n=t.getFolder(e);n&&(i=this.getFolderConsolidatedConfiguration(n.uri)||i);const s=this._memoryConfigurationByResource.get(e);s&&(i=i.merge(s))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce(((e,t)=>{const{contents:i,overrides:n,keys:s}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:s}]),e}),[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.policy),n=this.parseConfigurationModel(e.application),s=this.parseConfigurationModel(e.user),o=this.parseConfigurationModel(e.workspace),r=e.folders.reduce(((e,t)=>(e.set(h.r.revive(t[0]),this.parseConfigurationModel(t[1])),e)),new Kt.fT);return new Jt(t,i,n,s,new Yt,o,r,new Yt,new Kt.fT)}static parseConfigurationModel(e){return new Yt(e.contents,e.keys,e.overrides)}}class ei{constructor(e,t,i,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this._marker="\n",this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=".".charCodeAt(0),this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const s of e.keys)this.affectedKeys.add(s);for(const[,s]of e.overrides)for(const e of s)this.affectedKeys.add(e);this._affectsConfigStr=this._marker;for(const s of this.affectedKeys)this._affectsConfigStr+=s+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Jt.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var i;const n=this._marker+e,s=this._affectsConfigStr.indexOf(n);if(s<0)return!1;const o=s+n.length;if(o>=this._affectsConfigStr.length)return!1;const r=this._affectsConfigStr.charCodeAt(o);if(r!==this._markerCode1&&r!==this._markerCode2)return!1;if(t){const n=this.previousConfiguration?this.previousConfiguration.getValue(e,t,null===(i=this.previous)||void 0===i?void 0:i.workspace):void 0,s=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!p.aI(n,s)}return!0}}var ti=i(90766),ii=i(2299);const ni={kind:0},si={kind:1};class oi{constructor(e,t,i){var n;this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const s of e){const e=s.command;e&&"-"!==e.charAt(0)&&this._defaultBoundCommands.set(e,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=oi.handleRemovals([].concat(e).concat(t));for(let s=0,o=this._keybindings.length;s<o;s++){const e=this._keybindings[s];if(0===e.chords.length)continue;const t=null===(n=e.when)||void 0===n?void 0:n.substituteConstants();t&&0===t.type||this._addKeyPress(e.chords[0],e)}}static _isTargetedForRemoval(e,t,i){if(t)for(let n=0;n<t.length;n++)if(t[n]!==e.chords[n])return!1;if(i&&1!==i.type){if(!e.when)return!1;if(!(0,ge.jQ)(i,e.when))return!1}return!0}static handleRemovals(e){const t=new Map;for(let n=0,s=e.length;n<s;n++){const i=e[n];if(i.command&&"-"===i.command.charAt(0)){const e=i.command.substring(1);t.has(e)?t.get(e).push(i):t.set(e,[i])}}if(0===t.size)return e;const i=[];for(let n=0,s=e.length;n<s;n++){const s=e[n];if(!s.command||0===s.command.length){i.push(s);continue}if("-"===s.command.charAt(0))continue;const o=t.get(s.command);if(!o||!s.isDefault){i.push(s);continue}let r=!1;for(const e of o){const t=e.when;if(this._isTargetedForRemoval(s,e.chords,t)){r=!0;break}}r||i.push(s)}return i}_addKeyPress(e,t){const i=this._map.get(e);if("undefined"===typeof i)return this._map.set(e,[t]),void this._addToLookupMap(t);for(let n=i.length-1;n>=0;n--){const e=i[n];if(e.command===t.command)continue;let s=!0;for(let i=1;i<e.chords.length&&i<t.chords.length;i++)if(e.chords[i]!==t.chords[i]){s=!1;break}s&&(oi.whenIsEntirelyIncluded(e.when,t.when)&&this._removeFromLookupMap(e))}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);"undefined"===typeof t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;const t=this._lookupMap.get(e.command);if("undefined"!==typeof t)for(let i=0,n=t.length;i<n;i++)if(t[i]===e)return void t.splice(i,1)}static whenIsEntirelyIncluded(e,t){return!t||1===t.type||!(!e||1===e.type)&&(0,ge.M0)(e,t)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(e,t){const i=this._lookupMap.get(e);if("undefined"===typeof i||0===i.length)return null;if(1===i.length)return i[0];for(let n=i.length-1;n>=0;n--){const e=i[n];if(t.contextMatchesRules(e.when))return e}return i[i.length-1]}resolve(e,t,i){const n=[...t,i];this._log(`| Resolving ${n}`);const s=this._map.get(n[0]);if(void 0===s)return this._log("\\ No keybinding entries."),ni;let o=null;if(n.length<2)o=s;else{o=[];for(let e=0,t=s.length;e<t;e++){const t=s[e];if(n.length>t.chords.length)continue;let i=!0;for(let e=1;e<n.length;e++)if(t.chords[e]!==n[e]){i=!1;break}i&&o.push(t)}}const r=this._findCommand(e,o);return r?n.length<r.chords.length?(this._log(`\\ From ${o.length} keybinding entries, awaiting ${r.chords.length-n.length} more chord(s), when: ${ri(r.when)}, source: ${ai(r)}.`),si):(this._log(`\\ From ${o.length} keybinding entries, matched ${r.command}, when: ${ri(r.when)}, source: ${ai(r)}.`),a=r.command,l=r.commandArgs,d=r.bubble,{kind:2,commandId:a,commandArgs:l,isBubble:d}):(this._log(`\\ From ${o.length} keybinding entries, no when clauses matched the context.`),ni);var a,l,d}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){const n=t[i];if(oi._contextMatchesRules(e,n.when))return n}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}}function ri(e){return e?`${e.serialize()}`:"no when condition"}function ai(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}const li=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class di extends l.jG{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:ae.Jh.None}get inChordMode(){return this._currentChords.length>0}constructor(e,t,i,n,s){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=s,this._onDidUpdateKeybindings=this._register(new ae.vl),this._currentChords=[],this._currentChordChecker=new ti.vb,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=hi.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new ti.pc,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),ni;const[n]=i.getDispatchChords();if(null===n)return this._log("\\ Keyboard event cannot be dispatched"),ni;const s=this._contextKeyService.getContext(t),o=this._currentChords.map((({keypress:e})=>e));return this._getResolver().resolve(s,o,n)}_scheduleLeaveChordMode(){const e=Date.now();this._currentChordChecker.cancelAndSet((()=>{this._documentHasFocus()?Date.now()-e>5e3&&this._leaveChordMode():this._leaveChordMode()}),500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw(0,xe.iH)("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(De.kg("first.chord","({0}) was pressed. Waiting for second key of chord...",t));break;default:{const e=this._currentChords.map((({label:e})=>e)).join(", ");this._currentChordStatusMessage=this._notificationService.status(De.kg("next.chord","({0}) was pressed. Waiting for next key of chord...",e))}}this._scheduleLeaveChordMode(),ii.M.enabled&&ii.M.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],ii.M.enable()}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchChords();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=hi.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=hi.EMPTY,null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet((()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null}),300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[s]=i.getChords();return this._ignoreSingleModifiers=new hi(s),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){var n;let s=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let o=null,r=null;if(i){const[t]=e.getSingleModifierDispatchChords();o=t,r=t?[t]:[]}else[o]=e.getDispatchChords(),r=this._currentChords.map((({keypress:e})=>e));if(null===o)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),s;const a=this._contextKeyService.getContext(t),l=e.getLabel(),d=this._getResolver().resolve(a,r,o);switch(d.kind){case 0:if(this._logService.trace("KeybindingService#dispatch",l,"[ No matching keybinding ]"),this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(De.kg("missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),s=!0}return s;case 1:return this._logService.trace("KeybindingService#dispatch",l,"[ Several keybindings match - more chords needed ]"),s=!0,this._expectAnotherChord(o,l),this._log(1===this._currentChords.length?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),s;case 2:if(this._logService.trace("KeybindingService#dispatch",l,`[ Will dispatch command ${d.commandId} ]`),null===d.commandId||""===d.commandId){if(this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(De.kg("missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),s=!0}}else{this.inChordMode&&this._leaveChordMode(),d.isBubble||(s=!0),this._log(`+ Invoking command ${d.commandId}.`),this._currentlyDispatchingCommandId=d.commandId;try{"undefined"===typeof d.commandArgs?this._commandService.executeCommand(d.commandId).then(void 0,(e=>this._notificationService.warn(e))):this._commandService.executeCommand(d.commandId,d.commandArgs).then(void 0,(e=>this._notificationService.warn(e)))}finally{this._currentlyDispatchingCommandId=null}li.test(d.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:d.commandId,from:"keybinding",detail:null!==(n=e.getUserSettingsLabel())&&void 0!==n?n:void 0})}return s}}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class hi{constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}hi.EMPTY=new hi(null);var ci=i(59261);class ui{constructor(e,t,i,n,s,o,r){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?gi(e.getDispatchChords()):[],e&&0===this.chords.length&&(this.chords=gi(e.getSingleModifierDispatchChords())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=s,this.extensionId=o,this.isBuiltinExtension=r}}function gi(e){const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i];if(!n)return[];t.push(n)}return t}var pi=i(24939),mi=i(83619);class fi extends Pt.z5{constructor(e,t){if(super(),0===t.length)throw(0,xe.Qg)("chords");this._os=e,this._chords=t}getLabel(){return mi.Of.toLabel(this._os,this._chords,(e=>this._getLabel(e)))}getAriaLabel(){return mi.r0.toLabel(this._os,this._chords,(e=>this._getAriaLabel(e)))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:mi.rr.toLabel(this._os,this._chords,(e=>this._getElectronAccelerator(e)))}getUserSettingsLabel(){return mi.G$.toLabel(this._os,this._chords,(e=>this._getUserSettingsLabel(e)))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map((e=>this._getChord(e)))}_getChord(e){return new Pt.FW(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map((e=>this._getChordDispatch(e)))}getSingleModifierDispatchChords(){return this._chords.map((e=>this._getSingleModifierChordDispatch(e)))}}class _i extends fi{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return pi.YM.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":pi.YM.toString(e.keyCode)}_getElectronAccelerator(e){return pi.YM.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";const t=pi.YM.toUserSettingsUS(e.keyCode);return t?t.toLowerCase():t}_getChordDispatch(e){return _i.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=pi.YM.toString(e.keyCode),t}_getSingleModifierChordDispatch(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}static _scanCodeToKeyCode(e){const t=pi.Fo[e];if(-1!==t)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(e){if(!e)return null;if(e instanceof Pt.dG)return e;const t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new Pt.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(e,t){const i=gi(e.chords.map((e=>this._toKeyCodeChord(e))));return i.length>0?[new _i(i,t)]:[]}}var vi=i(67841),bi=i(73823),Ci=i(90651),yi=i(37227),wi=i(51861),Si=i(89403),ki=i(51465),xi=i(46958),Li=i(44320),Di=i(74027);let Ei=[],Ni=[],Ti=[];function Ii(e,t=!1){!function(e,t,i){const n=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,xi.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(Di.SA.sep)>=0}}(e,t);Ei.push(n),n.userConfigured?Ti.push(n):Ni.push(n);i&&!n.userConfigured&&Ei.forEach((e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))}))}(e,!1,t)}function Mi(e,t){return function(e,t){let i;if(e)switch(e.scheme){case re.ny.file:i=e.fsPath;break;case re.ny.data:i=Si.B6.parseMetaData(e).get(Si.B6.META_DATA_LABEL);break;case re.ny.vscodeNotebookCell:i=void 0;break;default:i=e.path}if(!i)return[{id:"unknown",mime:Li.K.unknown}];i=i.toLowerCase();const n=(0,Di.P8)(i),s=Ai(i,n,Ti);if(s)return[s,{id:S.vH,mime:Li.K.text}];const o=Ai(i,n,Ni);if(o)return[o,{id:S.vH,mime:Li.K.text}];if(t){const e=function(e){(0,d.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=Ei.length-1;t>=0;t--){const i=Ei[t];if(!i.firstline)continue;const n=e.match(i.firstline);if(n&&n.length>0)return i}return}(t);if(e)return[e,{id:S.vH,mime:Li.K.text}]}return[{id:"unknown",mime:Li.K.unknown}]}(e,t).map((e=>e.id))}function Ai(e,t,i){var n;let s,o,r;for(let a=i.length-1;a>=0;a--){const l=i[a];if(t===l.filenameLowercase){s=l;break}if(l.filepattern&&(!o||l.filepattern.length>o.filepattern.length)){const i=l.filepatternOnPath?e:t;(null===(n=l.filepatternLowercase)||void 0===n?void 0:n.call(l,i))&&(o=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&t.endsWith(l.extensionLowercase)&&(r=l)}return s||(o||(r||void 0))}const Ri=Object.prototype.hasOwnProperty,Oi="vs.editor.nullLanguage";class Pi{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(Oi,0),this._register(S.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||Oi}}class Fi extends l.jG{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new ae.vl),this.onDidChange=this._onDidChange.event,Fi.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new Pi,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(S.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){Fi.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Ei=Ei.filter((e=>e.userConfigured)),Ni=[];const e=[].concat(S.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),qt.O.as($t.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;Ri.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)Ii({id:i,mime:n,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const a of t.filenames)Ii({id:i,mime:n,filename:a},this._warnOnOverwrite),e.filenames.push(a);if(Array.isArray(t.filenamePatterns))for(const a of t.filenamePatterns)Ii({id:i,mime:n,filepattern:a},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,d.eY)(t)||Ii({id:i,mime:n,firstline:t},this._warnOnOverwrite)}catch(r){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,r)}}e.aliases.push(i);let s=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(s=0===t.aliases.length?[null]:t.aliases),null!==s)for(const a of s)a&&0!==a.length&&e.aliases.push(a);const o=null!==s&&s.length>0;if(o&&null===s[0]);else{const t=(o?s[0]:null)||i;!o&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&Ri.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return Ri.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&Ri.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?Mi(e,t):[]}}Fi.instanceCount=0;class Bi extends l.jG{constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new ae.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new ae.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new ae.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,Bi.instanceCount++,this._registry=this._register(new Fi(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){Bi.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,ve.Fy)(i,null)}createById(e){return new Wi(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new Wi(this.onDidChange,(()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=S.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),C.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}Bi.instanceCount=0;class Wi{constructor(e,t){this._onDidChangeLanguages=e,this._selector=t,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages((()=>this._evaluate()))),this._emitter||(this._emitter=new ae.vl({onDidRemoveLastListener:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var e;const t=this._selector();t!==this.languageId&&(this.languageId=t,null===(e=this._emitter)||void 0===e||e.fire(this.languageId))}}var Vi=i(36921),Hi=i(43878),zi=i(27195),ji=i(47358),Ui=i(60413),Ki=i(25154),Gi=i(11799),$i=i(5646),qi=i(31295),Qi=i(10350),Yi=i(18956),Zi=i(25689),Xi=i(37882);const Ji=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,en=/(&)?(&)([^\s&])/g;var tn,nn;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(tn||(tn={})),function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}(nn||(nn={}));class sn extends Gi.E{constructor(e,t,i,n){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const s=document.createElement("div");s.classList.add("monaco-menu"),s.setAttribute("role","presentation"),super(s,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,o),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...ut.zx||ut.j9?[10]:[]],keyDown:!0}}),this.menuStyles=n,this.menuElement=s,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,n),this._register(Ki.q.addTarget(s)),this._register((0,oe.ko)(s,oe.Bx.KEY_DOWN,(e=>{new yt.Z(e).equals(2)&&e.preventDefault()}))),i.enableMnemonics&&this._register((0,oe.ko)(s,oe.Bx.KEY_DOWN,(e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){oe.fs.stop(e,!0);const i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof rn&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){const e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}}))),ut.j9&&this._register((0,oe.ko)(s,oe.Bx.KEY_DOWN,(e=>{const t=new yt.Z(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),oe.fs.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),oe.fs.stop(e,!0))}))),this._register((0,oe.ko)(this.domNode,oe.Bx.MOUSE_OUT,(e=>{const t=e.relatedTarget;(0,oe.QX)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())}))),this._register((0,oe.ko)(this.actionsList,oe.Bx.MOUSE_OVER,(e=>{let t=e.target;if(t&&(0,oe.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}))),this._register(Ki.q.addTarget(this.actionsList)),this._register((0,oe.ko)(this.actionsList,Ki.B.Tap,(e=>{let t=e.initialTarget;if(t&&(0,oe.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})));const o={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new qi.MU(s,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const r=this.scrollableElement.getDomNode();r.style.position="",this.styleScrollElement(r,n),this._register((0,oe.ko)(s,Ki.B.Change,(e=>{oe.fs.stop(e,!0);const t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})}))),this._register((0,oe.ko)(r,oe.Bx.MOUSE_UP,(e=>{e.preventDefault()})));const a=(0,oe.zk)(e);s.style.maxHeight=`${Math.max(10,a.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(((e,n)=>{var s;if(null===(s=i.submenuIds)||void 0===s?void 0:s.has(e.id))return console.warn(`Found submenu cycle: ${e.id}`),!1;if(e instanceof Vi.wv){if(n===t.length-1||0===n)return!1;if(t[n-1]instanceof Vi.wv)return!1}return!0})),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter((e=>!(e instanceof an))).forEach(((e,t,i)=>{e.updatePositionInSet(t+1,i.length)}))}initializeOrUpdateStyleSheet(e,t){this.styleSheet||((0,oe.Cl)(e)?this.styleSheet=(0,oe.li)(e):(sn.globalStyleSheet||(sn.globalStyleSheet=(0,oe.li)()),this.styleSheet=sn.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=`\n.monaco-menu {\n\tfont-size: 13px;\n\tborder-radius: 5px;\n\tmin-width: 160px;\n}\n\n${ln(Qi.W.menuSelection)}\n${ln(Qi.W.menuSubmenu)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid var(--vscode-menu-separatorBackground);\n\tpadding-top: 1px;\n\tpadding: 30px;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n\tmargin: 0 4px;\n\tborder-radius: 4px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {\n\topacity: unset;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\twidth: 100%;\n\theight: 0px !important;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.hc-black .context-view.monaco-menu-container,\n.hc-light .context-view.monaco-menu-container,\n:host-context(.hc-black) .context-view.monaco-menu-container,\n:host-context(.hc-light) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: 4px 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tmargin: 5px 0 !important;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}`;if(t){i+="\n\t\t\t/* Arrows */\n\t\t\t.monaco-scrollable-element > .scrollbar > .scra {\n\t\t\t\tcursor: pointer;\n\t\t\t\tfont-size: 11px !important;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .visible {\n\t\t\t\topacity: 1;\n\n\t\t\t\t/* Background rule added for IE9 - to allow clicks on dom node */\n\t\t\t\tbackground:rgba(0,0,0,0);\n\n\t\t\t\ttransition: opacity 100ms linear;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible {\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible.fade {\n\t\t\t\ttransition: opacity 800ms linear;\n\t\t\t}\n\n\t\t\t/* Scrollable Content Inset Shadow */\n\t\t\t.monaco-scrollable-element > .shadow {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 3px;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top-left-corner {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t";const t=e.scrollbarShadow;t&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\t\tbox-shadow: ${t} 0 6px 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 0 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 6px 6px -6px inset;\n\t\t\t\t}\n\t\t\t`);const n=e.scrollbarSliderBackground;n&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\t\tbackground: ${n};\n\t\t\t\t}\n\t\t\t`);const s=e.scrollbarSliderHoverBackground;s&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\t\tbackground: ${s};\n\t\t\t\t}\n\t\t\t`);const o=e.scrollbarSliderActiveBackground;o&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\t\tbackground: ${o};\n\t\t\t\t}\n\t\t\t`)}return i}(t,(0,oe.Cl)(e))}styleScrollElement(e,t){var i,n;const s=null!==(i=t.foregroundColor)&&void 0!==i?i:"",o=null!==(n=t.backgroundColor)&&void 0!==n?n:"",r=t.borderColor?`1px solid ${t.borderColor}`:"",a=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=r,e.style.borderRadius="5px",e.style.color=s,e.style.backgroundColor=o,e.style.boxShadow=a}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t<this.actionsList.children.length;t++){if(e===this.actionsList.children[t]){this.focusedItem=t;break}}}updateFocus(e){super.updateFocus(e,!0,!0),"undefined"!==typeof this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(e,t,i){if(e instanceof Vi.wv)return new an(t.context,e,{icon:!0},this.menuStyles);if(e instanceof Vi.YH){const n=new rn(e,e.actions,i,{...t,submenuIds:new Set([...t.submenuIds||[],e.id])},this.menuStyles);if(t.enableMnemonics){const e=n.getMnemonic();if(e&&n.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(n),this.mnemonics.set(e,t)}}return n}{const i={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext};if(t.getKeyBinding){const n=t.getKeyBinding(e);if(n){const e=n.getLabel();e&&(i.keybinding=e)}}const n=new on(t.context,e,i,this.menuStyles);if(t.enableMnemonics){const e=n.getMnemonic();if(e&&n.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(n),this.mnemonics.set(e,t)}}return n}}}class on extends $i.EH{constructor(e,t,i,n){if(i.isMenu=!0,super(t,t,i),this.menuStyle=n,this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass="",this.options.label&&i.enableMnemonics){const e=this.action.label;if(e){const t=Ji.exec(e);t&&(this.mnemonic=(t[1]?t[1]:t[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new ti.uC((()=>{this.element&&(this._register((0,oe.ko)(this.element,oe.Bx.MOUSE_UP,(e=>{if(oe.fs.stop(e,!0),Ui.gm){if(new ji.P((0,oe.zk)(this.element),e).rightButton)return;this.onClick(e)}else setTimeout((()=>{this.onClick(e)}),0)}))),this._register((0,oe.ko)(this.element,oe.Bx.CONTEXT_MENU,(e=>{oe.fs.stop(e,!0)}))))}),100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=(0,oe.BC)(this.element,(0,oe.$)("a.action-menu-item")),this._action.id===Vi.wv.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,oe.BC)(this.item,(0,oe.$)("span.menu-item-check"+Zi.L.asCSSSelector(Qi.W.menuSelection))),this.check.setAttribute("role","none"),this.label=(0,oe.BC)(this.item,(0,oe.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,oe.BC)(this.item,(0,oe.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){var e;super.focus(),null===(e=this.item)||void 0===e||e.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){var e;if(this.label&&this.options.label){(0,oe.w_)(this.label);let t=(0,Xi.pS)(this.action.label);if(t){const i=function(e){const t=Ji,i=t.exec(e);if(!i)return e;const n=!i[1];return e.replace(t,n?"$2$3":"").trim()}(t);this.options.enableMnemonics||(t=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));const n=Ji.exec(t);if(n){t=d.ih(t),en.lastIndex=0;let i=en.exec(t);for(;i&&i[1];)i=en.exec(t);const s=e=>e.replace(/&&/g,"&");i?this.label.append(d.NB(s(t.substr(0,i.index))," "),(0,oe.$)("u",{"aria-hidden":"true"},i[3]),d.BO(s(t.substr(i.index+i[0].length))," ")):this.label.innerText=s(t).trim(),null===(e=this.item)||void 0===e||e.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else this.label.innerText=t.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.action.checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,n=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",s=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=null!==t&&void 0!==t?t:"",this.item.style.backgroundColor=null!==i&&void 0!==i?i:"",this.item.style.outline=n,this.item.style.outlineOffset=s),this.check&&(this.check.style.color=null!==t&&void 0!==t?t:"")}}class rn extends on{constructor(e,t,i,n,s){super(e,e,n,s),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new l.Cm),this.mouseOver=!1,this.expandDirection=n&&void 0!==n.expandDirection?n.expandDirection:{horizontal:tn.Right,vertical:nn.Below},this.showScheduler=new ti.uC((()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))}),250),this.hideScheduler=new ti.uC((()=>{this.element&&!(0,oe.QX)((0,oe.bq)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}),750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,oe.BC)(this.item,(0,oe.$)("span.submenu-indicator"+Zi.L.asCSSSelector(Qi.W.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,oe.ko)(this.element,oe.Bx.KEY_UP,(e=>{const t=new yt.Z(e);(t.equals(17)||t.equals(3))&&(oe.fs.stop(e,!0),this.createSubmenu(!0))}))),this._register((0,oe.ko)(this.element,oe.Bx.KEY_DOWN,(e=>{const t=new yt.Z(e);(0,oe.bq)()===this.item&&(t.equals(17)||t.equals(3))&&oe.fs.stop(e,!0)}))),this._register((0,oe.ko)(this.element,oe.Bx.MOUSE_OVER,(e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())}))),this._register((0,oe.ko)(this.element,oe.Bx.MOUSE_LEAVE,(e=>{this.mouseOver=!1}))),this._register((0,oe.ko)(this.element,oe.Bx.FOCUS_OUT,(e=>{this.element&&!(0,oe.QX)((0,oe.bq)(),this.element)&&this.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}))))}updateEnabled(){}onClick(e){oe.fs.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(t){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const s={top:0,left:0};return s.left=kt(e.width,t.width,{position:n.horizontal===tn.Right?0:1,offset:i.left,size:i.width}),s.left>=i.left&&s.left<i.left+i.width&&(i.left+10+t.width<=e.width&&(s.left=i.left+10),i.top+=10,i.height=0),s.top=kt(e.height,t.height,{position:0,offset:i.top,size:0}),s.top+t.height===i.top&&s.top+i.height+t.height<=e.height&&(s.top+=i.height),s}createSubmenu(e=!0){if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=(0,oe.BC)(this.element,(0,oe.$)("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view");const t=(0,oe.zk)(this.parentData.parent.domNode).getComputedStyle(this.parentData.parent.domNode),i=parseFloat(t.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new sn(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new Vi.HJ],this.submenuOptions,this.menuStyle);const n=this.element.getBoundingClientRect(),s={top:n.top-i,left:n.left,height:n.height+2*i,width:n.width},o=this.submenuContainer.getBoundingClientRect(),r=(0,oe.zk)(this.element),{top:a,left:l}=this.calculateSubmenuMenuLayout(new oe.fg(r.innerWidth,r.innerHeight),oe.fg.lift(o),s,this.expandDirection);this.submenuContainer.style.left=l-o.left+"px",this.submenuContainer.style.top=a-o.top+"px",this.submenuDisposables.add((0,oe.ko)(this.submenuContainer,oe.Bx.KEY_UP,(e=>{new yt.Z(e).equals(15)&&(oe.fs.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add((0,oe.ko)(this.submenuContainer,oe.Bx.KEY_DOWN,(e=>{new yt.Z(e).equals(15)&&oe.fs.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))}applyStyle(){super.applyStyle();const e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=null!==e&&void 0!==e?e:"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class an extends $i.Z4{constructor(e,t,i,n){super(e,t,i),this.menuStyles=n}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function ln(e){const t=(0,Yi.J)()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}var dn=i(19070);class hn{constructor(e,t,i,n){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let i;this.focusToReturn=(0,oe.bq)();const n=e.domForShadowRoot instanceof HTMLElement?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:n=>{var s;this.lastContainer=n;const o=e.getMenuClassName?e.getMenuClassName():"";o&&(n.className+=" "+o),this.options.blockMouse&&(this.block=n.appendChild((0,oe.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",null===(s=this.blockDisposable)||void 0===s||s.dispose(),this.blockDisposable=(0,oe.ko)(this.block,oe.Bx.MOUSE_DOWN,(e=>e.stopPropagation())));const r=new l.Cm,a=e.actionRunner||new Vi.LN;a.onWillRun((t=>this.onActionRun(t,!e.skipTelemetry)),this,r),a.onDidRun(this.onDidActionRun,this,r),i=new sn(n,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:a,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)},dn.XS),i.onDidCancel((()=>this.contextViewService.hideContextView(!0)),null,r),i.onDidBlur((()=>this.contextViewService.hideContextView(!0)),null,r);const d=(0,oe.zk)(n);return r.add((0,oe.ko)(d,oe.Bx.BLUR,(()=>this.contextViewService.hideContextView(!0)))),r.add((0,oe.ko)(d,oe.Bx.MOUSE_DOWN,(e=>{if(e.defaultPrevented)return;const t=new ji.P(d,e);let i=t.target;if(!t.rightButton){for(;i;){if(i===n)return;i=i.parentElement}this.contextViewService.hideContextView(!0)}}))),(0,l.qE)(r,i)},focus:()=>{null===i||void 0===i||i.focus(!!e.autoSelectFirstItem)},onHide:t=>{var i,n,s;null===(i=e.onHide)||void 0===i||i.call(e,!!t),this.block&&(this.block.remove(),this.block=null),null===(n=this.blockDisposable)||void 0===n||n.dispose(),this.blockDisposable=null,this.lastContainer&&((0,oe.bq)()===this.lastContainer||(0,oe.QX)((0,oe.bq)(),this.lastContainer))&&(null===(s=this.focusToReturn)||void 0===s||s.focus()),this.lastContainer=null}},n,!!n)}onActionRun(e,t){t&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!(0,xe.MB)(e.error)&&this.notificationService.error(e.error)}}var cn=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},un=function(e,t){return function(i,n){t(i,n,e)}};let gn=class extends l.jG{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new hn(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(e,t,i,n,s,o){super(),this.telemetryService=e,this.notificationService=t,this.contextViewService=i,this.keybindingService=n,this.menuService=s,this.contextKeyService=o,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new ae.vl),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new ae.vl)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){e=pn.transform(e,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...e,onHide:t=>{var i;null===(i=e.onHide)||void 0===i||i.call(e,t),this._onDidHideContextMenu.fire()}}),oe.Di.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};var pn;gn=cn([un(0,Ci.k),un(1,Ne.Ot),un(2,ot.l),un(3,rt.b),un(4,zi.ez),un(5,ge.fN)],gn),function(e){e.transform=function(e,t,i){if(!((n=e)&&n.menuId instanceof zi.D8))return e;var n;const{menuId:s,menuActionOptions:o,contextKeyService:r}=e;return{...e,getActions:()=>{const n=[];if(s){const e=t.createMenu(s,null!==r&&void 0!==r?r:i);(0,Hi.$u)(e,o,n),e.dispose()}return e.getActions?Vi.wv.join(e.getActions(),n):n}}}}(pn||(pn={}));var mn,fn=i(18447),_n=i(908);!function(e){e[e.API=0]="API",e[e.USER=1]="USER"}(mn||(mn={}));var vn=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},bn=function(e,t){return function(i,n){t(i,n,e)}};let Cn=class{constructor(e){this._commandService=e}async open(e,t){if(!(0,re.v$)(e,re.ny.command))return!1;if(!(null===t||void 0===t?void 0:t.allowCommands))return!0;if("string"===typeof e&&(e=h.r.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path))return!0;let i=[];try{i=(0,_n.qg)(decodeURIComponent(e.query))}catch(n){try{i=(0,_n.qg)(e.query)}catch(s){}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(e.path,...i),!0}};Cn=vn([bn(0,Ut.d)],Cn);let yn=class{constructor(e){this._editorService=e}async open(e,t){"string"===typeof e&&(e=h.r.parse(e));const{selection:i,uri:n}=(0,dt.e)(e);return(e=n).scheme===re.ny.file&&(e=(0,Si.Fd)(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:(null===t||void 0===t?void 0:t.fromUserGesture)?mn.USER:mn.API,...null===t||void 0===t?void 0:t.editorOptions}},this._editorService.getFocusedCodeEditor(),null===t||void 0===t?void 0:t.openToSide),!0}};yn=vn([bn(0,g.T)],yn);let wn=class{constructor(e,t){this._openers=new le.w,this._validators=new le.w,this._resolvers=new le.w,this._resolvedUriTargets=new Kt.fT((e=>e.with({path:null,fragment:null,query:null}).toString())),this._externalOpeners=new le.w,this._defaultExternalOpener={openExternal:async e=>((0,re.fV)(e,re.ny.http,re.ny.https)?oe.CE(e):a.G.location.href=e,!0)},this._openers.push({open:async(e,t)=>!(!(null===t||void 0===t?void 0:t.openExternal)&&!(0,re.fV)(e,re.ny.mailto,re.ny.http,re.ny.https,re.ny.vsls))&&(await this._doOpenExternal(e,t),!0)}),this._openers.push(new Cn(t)),this._openers.push(new yn(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}async open(e,t){var i;const n="string"===typeof e?h.r.parse(e):e,s=null!==(i=this._resolvedUriTargets.get(n))&&void 0!==i?i:e;for(const o of this._validators)if(!await o.shouldOpen(s,t))return!1;for(const o of this._openers){if(await o.open(e,t))return!0}return!1}async resolveExternalUri(e,t){for(const n of this._resolvers)try{const i=await n.resolveExternalUri(e,t);if(i)return this._resolvedUriTargets.has(i.resolved)||this._resolvedUriTargets.set(i.resolved,e),i}catch(i){}throw new Error("Could not resolve external URI: "+e.toString())}async _doOpenExternal(e,t){const i="string"===typeof e?h.r.parse(e):e;let n,s;try{n=(await this.resolveExternalUri(i,t)).resolved}catch(o){n=i}if(s="string"===typeof e&&i.toString()===n.toString()?e:encodeURI(n.toString(!0)),null===t||void 0===t?void 0:t.allowContributedOpeners){const e="string"===typeof(null===t||void 0===t?void 0:t.allowContributedOpeners)?null===t||void 0===t?void 0:t.allowContributedOpeners:void 0;for(const t of this._externalOpeners){if(await t.openExternal(s,{sourceUri:i,preferredOpenerId:e},fn.X.None))return!0}}return this._defaultExternalOpener.openExternal(s,{sourceUri:i},fn.X.None)}dispose(){this._validators.clear()}};wn=vn([bn(0,g.T),bn(1,Ut.d)],wn);var Sn=i(10920),kn=i(75147),xn=i(87119),Ln=i(48495),Dn=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},En=function(e,t){return function(i,n){t(i,n,e)}};let Nn=class extends l.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new ae.vl),this._markerDecorations=new Kt.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new Tn(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){var t;const i=this._markerDecorations.get(e.uri);i&&(i.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==re.ny.inMemory&&e.uri.scheme!==re.ny.internal&&e.uri.scheme!==re.ny.vscode||null===(t=this._markerService)||void 0===t||t.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};Nn=Dn([En(0,L.S),En(1,kn.DR)],Nn);class Tn extends l.jG{constructor(e){super(),this.model=e,this._map=new Kt.cO,this._register((0,l.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:i}=(0,Ln.Z)(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===i.length)return!1;const n=i.map((e=>this._map.get(e))),s=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),o=this.model.deltaDecorations(n,s);for(const r of i)this._map.delete(r);for(let r=0;r<o.length;r++)this._map.set(t[r],o[r]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let i=Ht.Q.lift(t);if(t.severity!==kn.cj.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(1===t||i.endColumn>=t)return i;const n=e.getWordAtPosition(i.getStartPosition());n&&(i=new Ht.Q(i.startLineNumber,n.startColumn,i.endLineNumber,n.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){const n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n<i.endColumn&&(i=new Ht.Q(i.startLineNumber,n,i.endLineNumber,i.endColumn),t.startColumn=n)}return i}_createDecorationOption(e){let t,i,n,s,o;switch(e.severity){case kn.cj.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case kn.cj.Info:t="squiggly-info",i=(0,de.Yf)(xn.AQ),n=10,o={color:(0,de.Yf)(nt.KoI),position:1};break;case kn.cj.Warning:t="squiggly-warning",i=(0,de.Yf)(xn.aZ),n=20,o={color:(0,de.Yf)(nt.uMG),position:1};break;case kn.cj.Error:default:t="squiggly-error",i=(0,de.Yf)(xn.yI),n=30,o={color:(0,de.Yf)(nt.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(s="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(s="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:i,position:x.A5.Right},minimap:o,zIndex:n,inlineClassName:s}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}var In,Mn=i(37550),An=i(38361),Rn=i(24329),On=i(85600),Pn=i(26656),Fn=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Bn=function(e,t){return function(i,n){t(i,n,e)}};function Wn(e){return e.toString()}class Vn{constructor(e,t,i){this.model=e,this._modelEventListeners=new l.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>i(e,t))))}dispose(){this._modelEventListeners.dispose()}}const Hn=ut.j9||ut.zx?1:2;class zn{constructor(e,t,i,n,s,o,r,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=s,this.sha1=o,this.versionId=r,this.alternativeVersionId=a}}let jn=In=class extends l.jG{constructor(e,t,i,n,s){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._languageService=n,this._languageConfigurationService=s,this._onModelAdded=this._register(new ae.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new ae.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new ae.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){var i;let n=Rn.R.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let s="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(s=Math.max(t,1))}let o=Rn.R.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(o="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let r=Hn;const a=e.eol;"\r\n"===a?r=2:"\n"===a&&(r=1);let l=Rn.R.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let d=Rn.R.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(d="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=Rn.R.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let c=Rn.R.bracketPairColorizationOptions;return(null===(i=e.editor)||void 0===i?void 0:i.bracketPairColorization)&&"object"===typeof e.editor.bracketPairColorization&&(c={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:s,insertSpaces:o,detectIndentation:d,defaultEOL:r,trimAutoWhitespace:l,largeFileOptimizations:h,bracketPairColorizationOptions:c}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"===typeof i&&"auto"!==i?i:3===ut.OS||2===ut.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,i){const n="string"===typeof e?e:e.languageId;let s=this._modelCreationOptionsByLanguageAndResource[n+t];if(!s){const e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),o=this._getEOL(t,n);s=In._readModelOptions({editor:e,eol:o},i),this._modelCreationOptionsByLanguageAndResource[n+t]=s}return s}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const i=Object.keys(this._models);for(let n=0,s=i.length;n<s;n++){const s=i[n],o=this._models[s],r=o.model.getLanguageId(),a=o.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:r,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:r,resource:a}))continue;const l=t[r+a],d=this.getCreationOptions(r,a,o.model.isForSimpleWidget);In._setModelOptionsForModel(o.model,d,l)}}static _setModelOptionsForModel(e,t,i){i&&i.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),i&&i.detectIndentation===t.detectIndentation&&i.insertSpaces===t.insertSpaces&&i.tabSize===t.tabSize&&i.indentSize===t.indentSize&&i.trimAutoWhitespace===t.trimAutoWhitespace&&(0,p.aI)(i.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(Wn(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(Wn(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(Wn(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const s=this.getCreationOptions(t,i,n),o=new An.Bz(e,t,s,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(Wn(i))){const e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),n=this._getSHA1Computer(),s=!!n.canComputeSHA1(o)&&n.computeSHA1(o)===e.sha1;if(s||e.sharesUndoRedoStack){for(const e of t.past)(0,Pn.Th)(e)&&e.matchesResource(i)&&e.setModel(o);for(const e of t.future)(0,Pn.Th)(e)&&e.matchesResource(i)&&e.setModel(o);this._undoRedoService.setElementsValidFlag(i,!0,(e=>(0,Pn.Th)(e)&&e.matchesResource(i))),s&&(o._overwriteVersionId(e.versionId),o._overwriteAlternativeVersionId(e.alternativeVersionId),o._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const r=Wn(o.uri);if(this._models[r])throw new Error("ModelService: Cannot add model because it already exists!");const a=new Vn(o,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[r]=a,a}createModel(e,t,i,n=!1){let s;return s=t?this._createModelData(e,t,i,n):this._createModelData(e,S.vH,i,n),this._onModelAdded.fire(s.model),s.model}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i<n;i++){const n=t[i];e.push(this._models[n].model)}return e}getModel(e){const t=Wn(e),i=this._models[t];return i?i.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===re.ny.file||e.scheme===re.ny.vscodeRemote||e.scheme===re.ny.vscodeUserData||e.scheme===re.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=Wn(e.uri),i=this._models[t],n=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let s=!1,o=0;if(n||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const i of t.past)(0,Pn.Th)(i)&&i.matchesResource(e.uri)&&(s=!0,o+=i.heapSize(e.uri),i.setModel(e.uri));for(const i of t.future)(0,Pn.Th)(i)&&i.matchesResource(e.uri)&&(s=!0,o+=i.heapSize(e.uri),i.setModel(e.uri))}}const r=In.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(s)if(n||!(o>r)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(r-o),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>(0,Pn.Th)(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new zn(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,o,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!n){const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,n=e.getLanguageId(),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);In._setModelOptionsForModel(e,o,s),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}_getSHA1Computer(){return new Un}};jn.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,jn=In=Fn([Bn(0,z.pG),Bn(1,jt.J),Bn(2,Te.$D),Bn(3,y.L),Bn(4,w.JZ)],jn);class Un{canComputeSHA1(e){return e.getValueLength()<=Un.MAX_MODEL_SIZE}computeSHA1(e){const t=new On.v7,i=e.createSnapshot();let n;for(;n=i.read();)t.update(n);return t.digest()}}Un.MAX_MODEL_SIZE=10485760;var Kn=i(71597),Gn=i(51467),$n=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},qn=function(e,t){return function(i,n){t(i,n,e)}};let Qn=class extends l.jG{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=qt.O.as(Kn.Fd.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n,s,o;const[r,a]=this.getOrInstantiateProvider(e),d=this.visibleQuickAccess,h=null===d||void 0===d?void 0:d.descriptor;if(d&&a&&h===a)return e===a.prefix||(null===i||void 0===i?void 0:i.preserveValue)||(d.picker.value=e),void this.adjustValueSelection(d.picker,a,i);if(a&&!(null===i||void 0===i?void 0:i.preserveValue)){let t;if(d&&h&&h!==a){const e=d.value.substr(h.prefix.length);e&&(t=`${a.prefix}${e}`)}if(!t){const e=null===r||void 0===r?void 0:r.defaultFilterValue;e===Kn.aJ.LAST?t=this.lastAcceptedPickerValues.get(a):"string"===typeof e&&(t=`${a.prefix}${e}`)}"string"===typeof t&&(e=t)}const c=null===(n=null===d||void 0===d?void 0:d.picker)||void 0===n?void 0:n.valueSelection,u=null===(s=null===d||void 0===d?void 0:d.picker)||void 0===s?void 0:s.value,g=new l.Cm,p=g.add(this.quickInputService.createQuickPick());let m;p.value=e,this.adjustValueSelection(p,a,i),p.placeholder=null===a||void 0===a?void 0:a.placeholder,p.quickNavigate=null===i||void 0===i?void 0:i.quickNavigateConfiguration,p.hideInput=!!p.quickNavigate&&!d,("number"===typeof(null===i||void 0===i?void 0:i.itemActivation)||(null===i||void 0===i?void 0:i.quickNavigateConfiguration))&&(p.itemActivation=null!==(o=null===i||void 0===i?void 0:i.itemActivation)&&void 0!==o?o:Gn.C1.SECOND),p.contextKey=null===a||void 0===a?void 0:a.contextKey,p.filterValue=e=>e.substring(a?a.prefix.length:0),t&&(m=new ti.Zv,g.add(ae.Jh.once(p.onWillAccept)((e=>{e.veto(),p.hide()})))),g.add(this.registerPickerListeners(p,r,a,e,null===i||void 0===i?void 0:i.providerOptions));const f=g.add(new fn.Q);return r&&g.add(r.provide(p,f.token,null===i||void 0===i?void 0:i.providerOptions)),ae.Jh.once(p.onDidHide)((()=>{0===p.selectedItems.length&&f.cancel(),g.dispose(),null===m||void 0===m||m.complete(p.selectedItems.slice(0))})),p.show(),c&&u===e&&(p.valueSelection=c),t?null===m||void 0===m?void 0:m.p:void 0}adjustValueSelection(e,t,i){var n;let s;s=(null===i||void 0===i?void 0:i.preserveValue)?[e.value.length,e.value.length]:[null!==(n=null===t||void 0===t?void 0:t.prefix.length)&&void 0!==n?n:0,e.value.length],e.valueSelection=s}registerPickerListeners(e,t,i,n,s){const o=new l.Cm,r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return o.add((0,l.s)((()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)}))),o.add(e.onDidChangeValue((e=>{const[i]=this.getOrInstantiateProvider(e);i!==t?this.show(e,{preserveValue:!0,providerOptions:s}):r.value=e}))),i&&o.add(e.onDidAccept((()=>{this.lastAcceptedPickerValues.set(i,e.value)}))),o}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};Qn=$n([qn(0,Gn.GK),qn(1,be._Y)],Qn);var Yn=i(35315),Zn=i(56245),Xn=i(20370),Jn=i(96032),es=i(58694),ts=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class is{constructor(e){this.nodes=e}toString(){return this.nodes.map((e=>"string"===typeof e?e:e.label)).join("")}}ts([es.B],is.prototype,"toString",null);const ns=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi;const ss={},os=new Jn.n("quick-input-button-icon-");function rs(e,t,i){let n=e.iconClass||function(e){if(!e)return;let t;const i=e.dark.toString();return ss[i]?t=ss[i]:(t=os.nextId(),oe.Wt(`.${t}, .hc-light .${t}`,`background-image: ${oe.Tf(e.light||e.dark)}`),oe.Wt(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${oe.Tf(e.dark)}`),ss[i]=t),t}(e.iconPath);return e.alwaysVisible&&(n=n?`${n} always-visible`:"always-visible"),{id:t,label:"",tooltip:e.tooltip||"",class:n,enabled:!0,run:i}}function as(e,t,i){oe.Ln(t);const n=function(e){const t=[];let i,n=0;for(;i=ns.exec(e);){i.index-n>0&&t.push(e.substring(n,i.index));const[,s,o,,r]=i;r?t.push({label:s,href:o,title:r}):t.push({label:s,href:o}),n=i.index+i[0].length}return n<e.length&&t.push(e.substring(n)),new is(t)}(e);let s=0;for(const o of n.nodes)if("string"===typeof o)t.append(...(0,Xn.n)(o));else{let e=o.title;!e&&o.href.startsWith("command:")?e=(0,De.kg)("executeCommand","Click to execute command '{0}'",o.href.substring(8)):e||(e=o.href);const n=oe.$("a",{href:o.href,title:e,tabIndex:s++},o.label);n.style.textDecoration="underline";const r=e=>{oe.sd(e)&&oe.fs.stop(e,!0),i.callback(o.href)},a=i.disposables.add(new Zn.f(n,oe.Bx.CLICK)).event,l=i.disposables.add(new Zn.f(n,oe.Bx.KEY_DOWN)).event,d=ae.Jh.chain(l,(e=>e.filter((e=>{const t=new yt.Z(e);return t.equals(10)||t.equals(3)}))));i.disposables.add(Ki.q.addTarget(n));const h=i.disposables.add(new Zn.f(n,Ki.B.Tap)).event;ae.Jh.any(a,h,d)(r,null,i.disposables),t.appendChild(n)}}var ls=i(36584),ds=i(21852),hs=i(47625),cs=i(86723),us=i(91090);const gs=new us.d((()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));new us.d((()=>({collator:new Intl.Collator(void 0,{numeric:!0})}))),new us.d((()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})})));function ps(e,t,i){const n=e.toLowerCase(),s=t.toLowerCase(),o=function(e,t,i){const n=e.toLowerCase(),s=t.toLowerCase(),o=n.startsWith(i),r=s.startsWith(i);if(o!==r)return o?-1:1;if(o&&r){if(n.length<s.length)return-1;if(n.length>s.length)return 1}return 0}(e,t,i);if(o)return o;const r=n.endsWith(i);if(r!==s.endsWith(i))return r?-1:1;const a=function(e,t){const i=e||"",n=t||"",s=gs.value.collator.compare(i,n);return gs.value.collatorIsNumeric&&0===s&&i!==n?i<n?-1:1:s}(n,s);return 0!==a?a:n.localeCompare(s)}var ms,fs=i(19466),_s=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},vs=function(e,t){return function(i,n){t(i,n,e)}};const bs=oe.$;var Cs,ys;!function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage",e[e.NextSeparator=8]="NextSeparator",e[e.PreviousSeparator=9]="PreviousSeparator"}(Cs||(Cs={}));class ws{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new us.d((()=>{var e;const t=null!==(e=i.label)&&void 0!==e?e:"",n=(0,Xi._k)(t).text.trim(),s=i.ariaLabel||[t,this.saneDescription,this.saneDetail].map((e=>(0,Xi.R$)(e))).filter((e=>!!e)).join(", ");return{saneLabel:t,saneSortLabel:n,saneAriaLabel:s}})),this._saneDescription=i.description,this._saneTooltip=i.tooltip}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(e){this._element=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}get saneDescription(){return this._saneDescription}set saneDescription(e){this._saneDescription=e}get saneDetail(){return this._saneDetail}set saneDetail(e){this._saneDetail=e}get saneTooltip(){return this._saneTooltip}set saneTooltip(e){this._saneTooltip=e}get labelHighlights(){return this._labelHighlights}set labelHighlights(e){this._labelHighlights=e}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(e){this._descriptionHighlights=e}get detailHighlights(){return this._detailHighlights}set detailHighlights(e){this._detailHighlights=e}}class Ss extends ws{constructor(e,t,i,n,s,o){var r,a,l;super(e,t,s),this.fireButtonTriggered=i,this._onChecked=n,this.item=s,this._separator=o,this._checked=!1,this.onChecked=t?ae.Jh.map(ae.Jh.filter(this._onChecked.event,(e=>e.element===this)),(e=>e.checked)):ae.Jh.None,this._saneDetail=s.detail,this._labelHighlights=null===(r=s.highlights)||void 0===r?void 0:r.label,this._descriptionHighlights=null===(a=s.highlights)||void 0===a?void 0:a.description,this._detailHighlights=null===(l=s.highlights)||void 0===l?void 0:l.detail}get separator(){return this._separator}set separator(e){this._separator=e}get checked(){return this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({element:this,checked:e}))}get checkboxDisabled(){return!!this.item.disabled}}!function(e){e[e.NONE=0]="NONE",e[e.MOUSE_HOVER=1]="MOUSE_HOVER",e[e.ACTIVE_ITEM=2]="ACTIVE_ITEM"}(ys||(ys={}));class ks extends ws{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=new Array,this.focusInsideSeparator=ys.NONE}}class xs{getHeight(e){return e instanceof ks?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof Ss?Es.ID:Ns.ID}}class Ls{getWidgetAriaLabel(){return(0,De.kg)("quickInput","Quick Input")}getAriaLabel(e){var t;return(null===(t=e.separator)||void 0===t?void 0:t.label)?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox&&e instanceof Ss)return{value:e.checked,onDidChange:e.onChecked}}}class Ds{constructor(e){this.hoverDelegate=e}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=new l.Cm,t.toDisposeTemplate=new l.Cm,t.entry=oe.BC(e,bs(".quick-input-list-entry"));const i=oe.BC(t.entry,bs("label.quick-input-list-label"));t.toDisposeTemplate.add(oe.b2(i,oe.Bx.CLICK,(e=>{t.checkbox.offsetParent||e.preventDefault()}))),t.checkbox=oe.BC(i,bs("input.quick-input-list-checkbox")),t.checkbox.type="checkbox";const n=oe.BC(i,bs(".quick-input-list-rows")),s=oe.BC(n,bs(".quick-input-list-row")),o=oe.BC(n,bs(".quick-input-list-row"));t.label=new ds.s(s,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=oe.Hs(t.label.element,bs(".quick-input-list-icon"));const r=oe.BC(s,bs(".quick-input-list-entry-keybinding"));t.keybinding=new hs.x(r,ut.OS),t.toDisposeTemplate.add(t.keybinding);const a=oe.BC(o,bs(".quick-input-list-label-meta"));return t.detail=new ds.s(a,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=oe.BC(t.entry,bs(".quick-input-list-separator")),t.actionBar=new Gi.E(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.actionBar),t}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,t,i){i.toDisposeElement.clear(),i.actionBar.clear()}}let Es=ms=class extends Ds{constructor(e,t){super(e),this.themeService=t,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return ms.ID}renderTemplate(e){const t=super.renderTemplate(e);return t.toDisposeTemplate.add(oe.b2(t.checkbox,oe.Bx.CHANGE,(e=>{t.element.checked=t.checkbox.checked}))),t}renderElement(e,t,i){var n,s,o;const r=e.element;i.element=r,r.element=null!==(n=i.entry)&&void 0!==n?n:void 0;const a=r.item;i.checkbox.checked=r.checked,i.toDisposeElement.add(r.onChecked((e=>i.checkbox.checked=e))),i.checkbox.disabled=r.checkboxDisabled;const{labelHighlights:l,descriptionHighlights:d,detailHighlights:c}=r;if(a.iconPath){const e=(0,cs.HD)(this.themeService.getColorTheme().type)?a.iconPath.dark:null!==(s=a.iconPath.light)&&void 0!==s?s:a.iconPath.dark,t=h.r.revive(e);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=oe.Tf(t)}else i.icon.style.backgroundImage="",i.icon.className=a.iconClass?`quick-input-list-icon ${a.iconClass}`:"";let u;!r.saneTooltip&&r.saneDescription&&(u={markdown:{value:r.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:r.saneDescription});const g={matches:l||[],descriptionTitle:u,descriptionMatches:d||[],labelEscapeNewLines:!0};if(g.extraClasses=a.iconClasses,g.italic=a.italic,g.strikethrough=a.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(r.saneLabel,r.saneDescription,g),i.keybinding.set(a.keybinding),r.saneDetail){let e;r.saneTooltip||(e={markdown:{value:r.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:r.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(r.saneDetail,void 0,{matches:c,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";(null===(o=r.separator)||void 0===o?void 0:o.label)?(i.separator.textContent=r.separator.label,i.separator.style.display="",this.addItemWithSeparator(r)):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!r.separator);const p=a.buttons;p&&p.length?(i.actionBar.push(p.map(((e,t)=>rs(e,`id-${t}`,(()=>r.fireButtonTriggered({button:e,item:r.item}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){this.removeItemWithSeparator(e.element),super.disposeElement(e,t,i)}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e)}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1)}removeItemWithSeparator(e){const t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e)}};Es.ID="quickpickitem",Es=ms=_s([vs(1,de.Gy)],Es);class Ns extends Ds{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}get templateId(){return Ns.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderElement(e,t,i){var n;const s=e.element;i.element=s,s.element=null!==(n=i.entry)&&void 0!==n?n:void 0,s.element.classList.toggle("focus-inside",!!s.focusInsideSeparator);const o=s.separator,{labelHighlights:r,descriptionHighlights:a,detailHighlights:l}=s;let d;i.icon.style.backgroundImage="",i.icon.className="",!s.saneTooltip&&s.saneDescription&&(d={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const h={matches:r||[],descriptionTitle:d,descriptionMatches:a||[],labelEscapeNewLines:!0};if(i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,h),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:l,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");const c=o.buttons;c&&c.length?(i.actionBar.push(c.map(((e,t)=>rs(e,`id-${t}`,(()=>s.fireSeparatorButtonTriggered({button:e,separator:s.separator}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions"),this.addSeparator(s)}disposeElement(e,t,i){var n;this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||null===(n=e.element.element)||void 0===n||n.classList.remove("focus-inside"),super.disposeElement(e,t,i)}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1)}removeSeparator(e){const t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e)}}Ns.ID="quickpickseparator";let Ts=class extends l.jG{constructor(e,t,i,n,s){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this._onKeyDown=new ae.vl,this.onKeyDown=this._onKeyDown.event,this._onLeave=new ae.vl,this.onLeave=this._onLeave.event,this._onChangedAllVisibleChecked=new ae.vl,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new ae.vl,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new ae.vl,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new ae.vl,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new ae.vl,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new ae.vl,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._onTriggerEmptySelectionOrFocus=new ae.vl,this._elementChecked=new ae.vl,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new l.Cm),this._shouldFireCheckedEvents=!0,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._container=oe.BC(this.parent,bs(".quick-input-list")),this._separatorRenderer=new Ns(t),this._itemRenderer=s.createInstance(Es,t),this._tree=this._register(s.createInstance(ls.zL,"QuickInput",this._container,new xs,[this._itemRenderer,this._separatorRenderer],{accessibilityProvider:new Ls,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:fs.KP.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,identityProvider:{getId:e=>{var t,i,n,s,o,r,a,l;return null!==(l=null!==(r=null!==(s=null!==(i=null===(t=e.item)||void 0===t?void 0:t.id)&&void 0!==i?i:null===(n=e.item)||void 0===n?void 0:n.label)&&void 0!==s?s:null===(o=e.separator)||void 0===o?void 0:o.id)&&void 0!==r?r:null===(a=e.separator)||void 0===a?void 0:a.label)&&void 0!==l?l:""}},alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=n,this._registerListeners()}get onDidChangeFocus(){return ae.Jh.map(ae.Jh.any(this._tree.onDidChangeFocus,this._onTriggerEmptySelectionOrFocus.event),(e=>e.elements.filter((e=>e instanceof Ss)).map((e=>e.item))))}get onDidChangeSelection(){return ae.Jh.map(ae.Jh.any(this._tree.onDidChangeSelection,this._onTriggerEmptySelectionOrFocus.event),(e=>({items:e.elements.filter((e=>e instanceof Ss)).map((e=>e.item)),event:e.browserEvent})))}get scrollTop(){return this._tree.scrollTop}set scrollTop(e){this._tree.scrollTop=e}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(e){this._tree.ariaLabel=null!==e&&void 0!==e?e:""}set enabled(e){this._tree.getHTMLElement().style.pointerEvents=e?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown((e=>{const t=new yt.Z(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(ut.zx?e.metaKey:e.ctrlKey)&&this._tree.setFocus(this._itemElements);break;case 16:{const e=this._tree.getFocus();1===e.length&&e[0]===this._itemElements[0]&&this._onLeave.fire();break}case 18:{const e=this._tree.getFocus();1===e.length&&e[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}}this._onKeyDown.fire(t)})))}_registerOnContainerClick(){this._register(oe.ko(this._container,oe.Bx.CLICK,(e=>{(e.x||e.y)&&this._onLeave.fire()})))}_registerOnMouseMiddleClick(){this._register(oe.ko(this._container,oe.Bx.AUXCLICK,(e=>{1===e.button&&this._onLeave.fire()})))}_registerOnElementChecked(){this._register(this._elementChecked.event((e=>this._fireCheckedEvents())))}_registerOnContextMenu(){this._register(this._tree.onContextMenu((e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]))})))}_registerHoverListeners(){const e=this._register(new ti.Th(this.hoverDelegate.delay));this._register(this._tree.onMouseOver((async t=>{var i;if(t.browserEvent.target instanceof HTMLAnchorElement)e.cancel();else if(t.browserEvent.relatedTarget instanceof HTMLAnchorElement||!oe.QX(t.browserEvent.relatedTarget,null===(i=t.element)||void 0===i?void 0:i.element))try{await e.trigger((async()=>{t.element instanceof Ss&&this.showHover(t.element)}))}catch(t){if(!(0,xe.MB)(t))throw t}}))),this._register(this._tree.onMouseOut((t=>{var i;oe.QX(t.browserEvent.relatedTarget,null===(i=t.element)||void 0===i?void 0:i.element)||e.cancel()})))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus((e=>{const t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(const i of this._separatorRenderer.visibleSeparators){const e=i===t;!!(i.focusInsideSeparator&ys.ACTIVE_ITEM)!==e&&(e?i.focusInsideSeparator|=ys.ACTIVE_ITEM:i.focusInsideSeparator&=~ys.ACTIVE_ITEM,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOver((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&ys.MOUSE_HOVER)||(i.focusInsideSeparator|=ys.MOUSE_HOVER,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOut((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&ys.MOUSE_HOVER)&&(i.focusInsideSeparator&=~ys.MOUSE_HOVER,this._tree.rerender(i))}})))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection((e=>{const t=e.elements.filter((e=>e instanceof Ss));t.length!==e.elements.length&&(1===e.elements.length&&e.elements[0]instanceof ks&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(t))})))}getAllVisibleChecked(){return this._allVisibleChecked(this._itemElements,!1)}getCheckedCount(){return this._itemElements.filter((e=>e.checked)).length}getVisibleCount(){return this._itemElements.filter((e=>!e.hidden)).length}setAllVisibleChecked(e){try{this._shouldFireCheckedEvents=!1,this._itemElements.forEach((t=>{t.hidden||t.checkboxDisabled||(t.checked=e)}))}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}setElements(e){this._elementDisposable.clear(),this._inputElements=e;const t=this.parent.classList.contains("show-checkboxes");let i;this._itemElements=new Array,this._elementTree=e.reduce(((n,s,o)=>{let r;if("separator"===s.type){if(!s.buttons)return n;i=new ks(o,(e=>this.fireSeparatorButtonTriggered(e)),s),r=i}else{const a=o>0?e[o-1]:void 0;let l;a&&"separator"===a.type&&!a.buttons&&(i=void 0,l=a);const d=new Ss(o,t,(e=>this.fireButtonTriggered(e)),this._elementChecked,s,l);if(this._itemElements.push(d),i)return i.children.push(d),n;r=d}return n.push(r),n}),new Array);const n=new Array;let s=0;for(const o of this._elementTree)o instanceof ks?(n.push({element:o,collapsible:!1,collapsed:!1,children:o.children.map((e=>({element:e,collapsible:!1,collapsed:!1})))}),s+=o.children.length+1):(n.push({element:o,collapsible:!1,collapsed:!1}),s++);this._tree.setChildren(null,n),this._onChangedVisibleCount.fire(s)}setFocusedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e));if(this._tree.setFocus(t),e.length>0){const e=this._tree.getFocus()[0];e&&this._tree.reveal(e)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e));this._tree.setSelection(t)}getCheckedElements(){return this._itemElements.filter((e=>e.checked)).map((e=>e.item))}setCheckedElements(e){try{this._shouldFireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const e of this._itemElements)e.checked=t.has(e.item)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}focus(e){var t;if(this._itemElements.length)switch(e===Cs.Second&&this._itemElements.length<2&&(e=Cs.First),e){case Cs.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,(e=>e.element instanceof Ss));break;case Cs.Second:this._tree.scrollTop=0,this._tree.setFocus([this._itemElements[1]]);break;case Cs.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]);break;case Cs.Next:this._tree.focusNext(void 0,!0,void 0,(e=>e.element instanceof Ss&&(this._tree.reveal(e.element),!0)));break;case Cs.Previous:this._tree.focusPrevious(void 0,!0,void 0,(e=>{if(!(e.element instanceof Ss))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));break;case Cs.NextPage:this._tree.focusNextPage(void 0,(e=>e.element instanceof Ss&&(this._tree.reveal(e.element),!0)));break;case Cs.PreviousPage:this._tree.focusPreviousPage(void 0,(e=>{if(!(e.element instanceof Ss))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));break;case Cs.NextSeparator:{let e=!1;const t=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,(t=>{if(e)return!0;if(t.element instanceof ks)e=!0,this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element.children[0]):this._tree.reveal(t.element,0);else if(t.element instanceof Ss){if(t.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),!0;if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0}return!1}));t===this._tree.getFocus()[0]&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]));break}case Cs.PreviousSeparator:{let e,i=!!(null===(t=this._tree.getFocus()[0])||void 0===t?void 0:t.separator);this._tree.focusPrevious(void 0,!0,void 0,(t=>{if(t.element instanceof ks)i?e||(this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),e=t.element.children[0]):i=!0;else if(t.element instanceof Ss&&!e)if(t.element.separator)this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),e=t.element;else if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0;return!1})),e&&this._tree.setFocus([e]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?44*Math.floor(e/44)+6+"px":"",this._tree.layout()}filter(e){if(!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;const t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this._elementTree.forEach((n=>{var s,o,r,a;let l;l="fuzzy"===this.matchOnLabelMode?this.matchOnLabel&&null!==(s=(0,Xi.pz)(e,(0,Xi._k)(n.saneLabel)))&&void 0!==s?s:void 0:this.matchOnLabel&&null!==(o=function(e,t){const{text:i,iconOffsets:n}=t;if(!n||0===n.length)return Is(e,i);const s=(0,d.NB)(i," "),o=i.length-s.length,r=Is(e,s);if(r)for(const a of r){const e=n[a.start+o]+o;a.start+=e,a.end+=e}return r}(t,(0,Xi._k)(n.saneLabel)))&&void 0!==o?o:void 0;const h=this.matchOnDescription&&null!==(r=(0,Xi.pz)(e,(0,Xi._k)(n.saneDescription||"")))&&void 0!==r?r:void 0,c=this.matchOnDetail&&null!==(a=(0,Xi.pz)(e,(0,Xi._k)(n.saneDetail||"")))&&void 0!==a?a:void 0;if(l||h||c?(n.labelHighlights=l,n.descriptionHighlights=h,n.detailHighlights=c,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item||!n.item.alwaysShow),n.item?n.separator=void 0:n.separator&&(n.hidden=!0),!this.sortByLabel){const e=n.index&&this._inputElements[n.index-1];i=e&&"separator"===e.type?e:i,i&&!n.hidden&&(n.separator=i,i=void 0)}}))}else this._itemElements.forEach((e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this._inputElements[e.index-1];e.item&&(e.separator=t&&"separator"===t.type&&!t.buttons?t:void 0)}));const i=this._elementTree.filter((e=>!e.hidden));if(this.sortByLabel&&e){const t=e.toLowerCase();i.sort(((e,i)=>function(e,t,i){const n=e.labelHighlights||[],s=t.labelHighlights||[];if(n.length&&!s.length)return-1;if(!n.length&&s.length)return 1;if(0===n.length&&0===s.length)return 0;return ps(e.saneSortLabel,t.saneSortLabel,i)}(e,i,t)))}let n;const s=i.reduce(((e,t,i)=>(t instanceof Ss?n?n.children.push(t):e.push(t):t instanceof ks&&(t.children=[],n=t,e.push(t)),e)),new Array),o=new Array;for(const a of s)a instanceof ks?o.push({element:a,collapsible:!1,collapsed:!1,children:a.children.map((e=>({element:e,collapsible:!1,collapsed:!1})))}):o.push({element:a,collapsible:!1,collapsed:!1});const r=this._tree.getFocus().length;return this._tree.setChildren(null,o),r>0&&0===o.length&&this._onTriggerEmptySelectionOrFocus.fire({elements:[]}),this._tree.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(i.length),!0}toggleCheckbox(){try{this._shouldFireCheckedEvents=!1;const e=this._tree.getFocus().filter((e=>e instanceof Ss)),t=this._allVisibleChecked(e);for(const i of e)i.checkboxDisabled||(i.checked=!t)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}display(e){this._container.style.display=e?"":"none"}isDisplayed(){return"none"!==this._container.style.display}style(e){this._tree.style(e)}toggleHover(){const e=this._tree.getFocus()[0];if(!(null===e||void 0===e?void 0:e.saneTooltip)||!(e instanceof Ss))return;if(this._lastHover&&!this._lastHover.isDisposed)return void this._lastHover.dispose();this.showHover(e);const t=new l.Cm;t.add(this._tree.onDidChangeFocus((e=>{e.elements[0]instanceof Ss&&this.showHover(e.elements[0])}))),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t)}_allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i<n;i++){const n=e[i];if(!n.hidden){if(!n.checked)return!1;t=!0}}return t}_fireCheckedEvents(){this._shouldFireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}fireSeparatorButtonTriggered(e){this._onSeparatorButtonTriggered.fire(e)}showHover(e){var t,i,n;this._lastHover&&!this._lastHover.isDisposed&&(null===(i=(t=this.hoverDelegate).onDidHideHover)||void 0===i||i.call(t),null===(n=this._lastHover)||void 0===n||n.dispose()),e.element&&e.saneTooltip&&(this._lastHover=this.hoverDelegate.showHover({content:e.saneTooltip,target:e.element,linkHandler:e=>{this.linkOpenerDelegate(e)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};function Is(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1!==i?[{start:i,end:i+e.length}]:null}_s([es.B],Ts.prototype,"onDidChangeFocus",null),_s([es.B],Ts.prototype,"onDidChangeSelection",null),Ts=_s([vs(4,be._Y)],Ts);var Ms=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},As=function(e,t){return function(i,n){t(i,n,e)}};const Rs={iconClass:Zi.L.asClassName(Qi.W.quickInputBack),tooltip:(0,De.kg)("quickInput.back","Back"),handle:-1};class Os extends l.jG{constructor(e){super(),this.ui=e,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=Os.noPromptMessage,this._severity=Le.A.Ignore,this.onDidTriggerButtonEmitter=this._register(new ae.vl),this.onDidHideEmitter=this._register(new ae.vl),this.onWillHideEmitter=this._register(new ae.vl),this.onDisposeEmitter=this._register(new ae.vl),this.visibleDisposables=this._register(new l.Cm),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!ut.un;this._ignoreFocusOut=e&&!ut.un,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(e){this._toggles=null!==e&&void 0!==e?e:[],this.togglesUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton((e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)}))),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=Gn.kF.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}willHide(e=Gn.kF.Other){this.onWillHideEmitter.fire({reason:e})}update(){var e,t;if(!this.visible)return;const i=this.getTitle();i&&this.ui.title.textContent!==i?this.ui.title.textContent=i:i||" "===this.ui.title.innerHTML||(this.ui.title.innerText="\xa0");const n=this.getDescription();if(this.ui.description1.textContent!==n&&(this.ui.description1.textContent=n),this.ui.description2.textContent!==n&&(this.ui.description2.textContent=n),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?oe.Ln(this.ui.widget,this._widget):oe.Ln(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new ti.pc,this.busyDelay.setIfNotSet((()=>{this.visible&&this.ui.progressBar.infinite()}),800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this.buttons.filter((e=>e===Rs)).map(((e,t)=>rs(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.leftActionBar.push(e,{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this.buttons.filter((e=>e!==Rs)).map(((e,t)=>rs(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.rightActionBar.push(t,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const i=null!==(t=null===(e=this.toggles)||void 0===e?void 0:e.filter((e=>e instanceof Yn.l)))&&void 0!==t?t:[];this.ui.inputBox.toggles=i}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const s=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==s&&(this._lastValidationMessage=s,oe.Ln(this.ui.message),as(s,this.ui.message,{callback:e=>{this.ui.linkOpenerDelegate(e)},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,De.kg)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==Le.A.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}Os.noPromptMessage=(0,De.kg)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class Ps extends Os{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new ae.vl),this.onWillAcceptEmitter=this._register(new ae.vl),this.onDidAcceptEmitter=this._register(new ae.vl),this.onDidCustomEmitter=this._register(new ae.vl),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._keepScrollPosition=!1,this._itemActivation=Gn.C1.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new ae.vl),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new ae.vl),this.onDidTriggerItemButtonEmitter=this._register(new ae.vl),this.onDidTriggerSeparatorButtonEmitter=this._register(new ae.vl),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){if(this._value!==e){if(this._value=e,t||this.update(),this.visible){this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst()}this.onDidChangeValueEmitter.fire(this._value)}}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?Gn.Ym:this.ui.keyMods}get valueSelection(){const e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end]}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(Cs.First)}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{this.doSetValue(e,!0)}))),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown((e=>{switch(e.keyCode){case 18:(ut.zx?e.metaKey:e.altKey)?this.ui.list.focus(Cs.NextSeparator):this.ui.list.focus(Cs.Next),this.canSelectMany&&this.ui.list.domFocus(),oe.fs.stop(e,!0);break;case 16:(ut.zx?e.metaKey:e.altKey)?this.ui.list.focus(Cs.PreviousSeparator):this.ui.list.focus(Cs.Previous),this.canSelectMany&&this.ui.list.domFocus(),oe.fs.stop(e,!0);break;case 12:this.ui.list.focus(Cs.NextPage),this.canSelectMany&&this.ui.list.domFocus(),oe.fs.stop(e,!0);break;case 11:this.ui.list.focus(Cs.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),oe.fs.stop(e,!0);break;case 17:if(!this._canAcceptInBackground)return;if(!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(Cs.First),oe.fs.stop(e,!0));break;case 13:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(Cs.Last),oe.fs.stop(e,!0))}}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)}))),this.visibleDisposables.add(this.ui.onDidCustom((()=>{this.onDidCustomEmitter.fire()}))),this.visibleDisposables.add(this.ui.list.onDidChangeFocus((e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&(0,ve.aI)(e,this._activeItems,((e,t)=>e===t))||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.list.onDidChangeSelection((({items:e,event:t})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&(0,ve.aI)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(oe.Er(t)&&1===t.button))}))),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements((e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&(0,ve.aI)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))}))),this.visibleDisposables.add(this.ui.list.onButtonTriggered((e=>this.onDidTriggerItemButtonEmitter.fire(e)))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered((e=>this.onDidTriggerSeparatorButtonEmitter.fire(e)))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return oe.ko(this.ui.container,oe.Bx.KEY_UP,(e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new yt.Z(e),i=t.keyCode;this._quickNavigate.keybindings.some((e=>{const n=e.getChords();return!(n.length>1)&&(n[0].shiftKey&&4===i?!(t.ctrlKey||t.altKey||t.metaKey):!(!n[0].altKey||6!==i)||(!(!n[0].ctrlKey||5!==i)||!(!n[0].metaKey||57!==i)))}))&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)}))}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this.description,i={title:!!this.title||!!this.step||!!this.buttons.length,description:t,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||t,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let n=this.ariaLabel;if(!n&&i.inputBox&&(n=this.placeholder||Ps.DEFAULT_ARIA_LABEL,this.title&&(n+=` - ${this.title}`)),this.ui.list.ariaLabel!==n&&(this.ui.list.ariaLabel=null!==n&&void 0!==n?n:null),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated){this.itemsUpdated=!1;const e=this._activeItems;switch(this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case Gn.C1.NONE:e.length>0&&(this._activeItems=[],this.onDidChangeActiveEmitter.fire(this._activeItems)),this._itemActivation=Gn.C1.FIRST;break;case Gn.C1.SECOND:this.ui.list.focus(Cs.Second),this._itemActivation=Gn.C1.FIRST;break;case Gn.C1.LAST:this.ui.list.focus(Cs.Last),this._itemActivation=Gn.C1.FIRST;break;default:this.trySelectFirst()}}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(Cs.First)),this.keepScrollPosition&&(this.scrollTop=e)}}Ps.DEFAULT_ARIA_LABEL=(0,De.kg)("quickInputBox.ariaLabel","Type to narrow down results.");class Fs extends Os{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new ae.vl),this.onDidAcceptEmitter=this._register(new ae.vl),this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(e){this._value=e||"",this.update()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>this.onDidAcceptEmitter.fire()))),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");const e={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(e),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password)}}let Bs=class extends st.fO{constructor(e,t){super("element",!1,(e=>this.getOverrideOptions(e)),e,t)}getOverrideOptions(e){var t;return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:(e.content instanceof HTMLElement?null!==(t=e.content.textContent)&&void 0!==t?t:"":"string"===typeof e.content?e.content:e.content.value).includes("\n"),skipFadeInAnimation:!0}}}};Bs=Ms([As(0,z.pG),As(1,st.TN)],Bs);var Ws=i(62890),Vs=i(3828);const Hs="done",zs="active",js="infinite",Us="infinite-long-running",Ks="discrete";class Gs extends l.jG{constructor(e,t){super(),this.workedVal=0,this.showDelayedScheduler=this._register(new ti.uC((()=>(0,oe.WU)(this.element)),0)),this.longRunningScheduler=this._register(new ti.uC((()=>this.infiniteLongRunning()),Gs.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e,t)}create(e,t){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=(null===t||void 0===t?void 0:t.progressBarBackground)||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(zs,js,Us,Ks),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(Hs),this.element.classList.contains(js)?(this.bit.style.opacity="0",e?setTimeout((()=>this.off()),200):this.off()):(this.bit.style.width="inherit",e?setTimeout((()=>this.off()),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(Ks,Hs,Us),this.element.classList.add(zs,js),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Us)}getContainer(){return this.element}}Gs.LONG_RUNNING_INFINITE_THRESHOLD=1e4;var $s=i(88443);const qs=oe.$;class Qs extends l.jG{constructor(e,t,i){super(),this.parent=e,this.onKeyDown=e=>oe.b2(this.findInput.inputBox.inputElement,oe.Bx.KEY_DOWN,e),this.onDidChange=e=>this.findInput.onDidChange(e),this.container=oe.BC(this.parent,qs(".quick-input-box")),this.findInput=this._register(new $s.c(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i}));const n=this.findInput.inputBox.inputElement;n.role="combobox",n.ariaHasPopup="menu",n.ariaAutoComplete="list",n.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(e){this.findInput.setValue(e)}select(e=null){this.findInput.inputBox.select(e)}getSelection(){return this.findInput.inputBox.getSelection()}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.findInput.inputBox.setPlaceHolder(e)}get password(){return"password"===this.findInput.inputBox.inputElement.type}set password(e){this.findInput.inputBox.inputElement.type=e?"password":"text"}set enabled(e){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!e)}set toggles(e){this.findInput.setAdditionalToggles(e)}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t)}showDecoration(e){e===Le.A.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===Le.A.Info?1:e===Le.A.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===Le.A.Info?1:e===Le.A.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}var Ys,Zs=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Xs=function(e,t){return function(i,n){t(i,n,e)}};const Js=oe.$;let eo=Ys=class extends l.jG{get container(){return this._container}constructor(e,t,i){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.enabled=!0,this.onDidAcceptEmitter=this._register(new ae.vl),this.onDidCustomEmitter=this._register(new ae.vl),this.onDidTriggerButtonEmitter=this._register(new ae.vl),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new ae.vl),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new ae.vl),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(ae.Jh.runAndSubscribe(oe.Iv,(({window:e,disposables:t})=>this.registerKeyModsListeners(e,t)),{window:a.G,disposables:this._store})),this._register(oe.q3((e=>{this.ui&&oe.zk(this.ui.container)===e&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))})))}registerKeyModsListeners(e,t){const i=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};for(const n of[oe.Bx.KEY_DOWN,oe.Bx.KEY_UP,oe.Bx.MOUSE_DOWN])t.add(oe.ko(e,n,i,!0))}getUI(e){if(this.ui)return e&&oe.zk(this._container)!==oe.zk(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const t=oe.BC(this._container,Js(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";const i=oe.li(t),n=oe.BC(t,Js(".quick-input-titlebar")),s=this._register(new Gi.E(n,{hoverDelegate:this.options.hoverDelegate}));s.domNode.classList.add("quick-input-left-action-bar");const o=oe.BC(n,Js(".quick-input-title")),r=this._register(new Gi.E(n,{hoverDelegate:this.options.hoverDelegate}));r.domNode.classList.add("quick-input-right-action-bar");const a=oe.BC(t,Js(".quick-input-header")),l=oe.BC(a,Js("input.quick-input-check-all"));l.type="checkbox",l.setAttribute("aria-label",(0,De.kg)("quickInput.checkAll","Toggle all checkboxes")),this._register(oe.b2(l,oe.Bx.CHANGE,(e=>{const t=l.checked;L.setAllVisibleChecked(t)}))),this._register(oe.ko(l,oe.Bx.CLICK,(e=>{(e.x||e.y)&&u.setFocus()})));const d=oe.BC(a,Js(".quick-input-description")),h=oe.BC(a,Js(".quick-input-and-message")),c=oe.BC(h,Js(".quick-input-filter")),u=this._register(new Qs(c,this.styles.inputBox,this.styles.toggle));u.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=oe.BC(c,Js(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const p=new Vs.x(g,{countFormat:(0,De.kg)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),m=oe.BC(c,Js(".quick-input-count"));m.setAttribute("aria-live","polite");const f=new Vs.x(m,{countFormat:(0,De.kg)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),_=oe.BC(a,Js(".quick-input-action")),v=this._register(new Ws.$(_,this.styles.button));v.label=(0,De.kg)("ok","OK"),this._register(v.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const b=oe.BC(a,Js(".quick-input-action")),C=this._register(new Ws.$(b,{...this.styles.button,supportIcons:!0}));C.label=(0,De.kg)("custom","Custom"),this._register(C.onDidClick((e=>{this.onDidCustomEmitter.fire()})));const y=oe.BC(h,Js(`#${this.idPrefix}message.quick-input-message`)),w=this._register(new Gs(t,this.styles.progressBar));w.getContainer().classList.add("quick-input-progress");const S=oe.BC(t,Js(".quick-input-html-widget"));S.tabIndex=-1;const k=oe.BC(t,Js(".quick-input-description")),x=this.idPrefix+"list",L=this._register(this.instantiationService.createInstance(Ts,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,x));u.setAttribute("aria-controls",x),this._register(L.onDidChangeFocus((()=>{var e;u.setAttribute("aria-activedescendant",null!==(e=L.getActiveDescendant())&&void 0!==e?e:"")}))),this._register(L.onChangedAllVisibleChecked((e=>{l.checked=e}))),this._register(L.onChangedVisibleCount((e=>{p.setCount(e)}))),this._register(L.onChangedCheckedCount((e=>{f.setCount(e)}))),this._register(L.onLeave((()=>{setTimeout((()=>{this.controller&&(u.setFocus(),this.controller instanceof Ps&&this.controller.canSelectMany&&L.clearFocus())}),0)})));const D=oe.w5(t);return this._register(D),this._register(oe.ko(t,oe.Bx.FOCUS,(e=>{oe.QX(e.relatedTarget,t)||(this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0)}),!0)),this._register(D.onDidBlur((()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(Gn.kF.Blur),this.previousFocusElement=void 0}))),this._register(oe.ko(t,oe.Bx.FOCUS,(e=>{u.setFocus()}))),this._register(oe.b2(t,oe.Bx.KEY_DOWN,(e=>{if(!oe.QX(e.target,S))switch(e.keyCode){case 3:oe.fs.stop(e,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:oe.fs.stop(e,!0),this.hide(Gn.kF.Gesture);break;case 2:if(!e.altKey&&!e.ctrlKey&&!e.metaKey){const i=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(t.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.isDisplayed()&&i.push(".monaco-list"),this.getUI().message&&i.push(".quick-input-message a"),this.getUI().widget){if(oe.QX(e.target,this.getUI().widget))break;i.push(".quick-input-html-widget")}const n=t.querySelectorAll(i.join(", "));e.shiftKey&&e.target===n[0]?(oe.fs.stop(e,!0),L.clearFocus()):!e.shiftKey&&oe.QX(e.target,n[n.length-1])&&(oe.fs.stop(e,!0),n[0].focus())}break;case 10:e.ctrlKey&&(oe.fs.stop(e,!0),this.getUI().list.toggleHover())}}))),this.ui={container:t,styleSheet:i,leftActionBar:s,titleBar:n,title:o,description1:k,description2:d,widget:S,rightActionBar:r,checkAll:l,inputContainer:h,filterContainer:c,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:m,count:f,okContainer:_,ok:v,message:y,customButtonContainer:b,customButton:C,list:L,progressBar:w,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e),linkOpenerDelegate:e=>this.options.linkOpenerDelegate(e)},this.updateStyles(),this.ui}reparentUI(e){this.ui&&(this._container=e,oe.BC(this._container,this.ui.container))}pick(e,t={},i=fn.X.None){return new Promise(((n,s)=>{let o=e=>{var i;o=n,null===(i=t.onKeyMods)||void 0===i||i.call(t,r.keyMods),n(e)};if(i.isCancellationRequested)return void o(void 0);const r=this.createQuickPick();let a;const d=[r,r.onDidAccept((()=>{if(r.canSelectMany)o(r.selectedItems.slice()),r.hide();else{const e=r.activeItems[0];e&&(o(e),r.hide())}})),r.onDidChangeActive((e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)})),r.onDidChangeSelection((e=>{if(!r.canSelectMany){const t=e[0];t&&(o(t),r.hide())}})),r.onDidTriggerItemButton((e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{const t=r.items.indexOf(e.item);if(-1!==t){const e=r.items.slice(),i=e.splice(t,1),n=r.activeItems.filter((e=>e!==i[0])),s=r.keepScrollPosition;r.keepScrollPosition=!0,r.items=e,n&&(r.activeItems=n),r.keepScrollPosition=s}}}))),r.onDidTriggerSeparatorButton((e=>{var i;return null===(i=t.onDidTriggerSeparatorButton)||void 0===i?void 0:i.call(t,e)})),r.onDidChangeValue((e=>{!a||e||1===r.activeItems.length&&r.activeItems[0]===a||(r.activeItems=[a])})),i.onCancellationRequested((()=>{r.hide()})),r.onDidHide((()=>{(0,l.AS)(d),o(void 0)}))];r.title=t.title,r.canSelectMany=!!t.canPickMany,r.placeholder=t.placeHolder,r.ignoreFocusOut=!!t.ignoreFocusLost,r.matchOnDescription=!!t.matchOnDescription,r.matchOnDetail=!!t.matchOnDetail,r.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,r.quickNavigate=t.quickNavigate,r.hideInput=!!t.hideInput,r.contextKey=t.contextKey,r.busy=!0,Promise.all([e,t.activeItem]).then((([e,t])=>{a=t,r.busy=!1,r.items=e,r.canSelectMany&&(r.selectedItems=e.filter((e=>"separator"!==e.type&&e.picked))),a&&(r.activeItems=[a])})),r.show(),Promise.resolve(e).then(void 0,(e=>{s(e),r.hide()}))}))}createQuickPick(){const e=this.getUI(!0);return new Ps(e)}createInputBox(){const e=this.getUI(!0);return new Fs(e)}show(e){const t=this.getUI(!0);this.onShowEmitter.fire();const i=this.controller;this.controller=e,null===i||void 0===i||i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",oe.Ln(t.widget),t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Le.A.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),oe.Ln(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;const n=this.options.backKeybindingLabel();Rs.tooltip=n?(0,De.kg)("quickInput.backWithKeybinding","Back ({0})",n):(0,De.kg)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}isVisible(){return!!this.ui&&"none"!==this.ui.container.style.display}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.action.enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.action.enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().inputBox.enabled=e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t,i;const n=this.controller;if(!n)return;n.willHide(e);const s=null===(t=this.ui)||void 0===t?void 0:t.container,o=s&&!oe.nR(s);if(this.controller=null,this.onHideEmitter.fire(),s&&(s.style.display="none"),!o){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=null!==(i=e.parentElement)&&void 0!==i?i:void 0;(null===e||void 0===e?void 0:e.offsetParent)?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}n.didHide(e)}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,Ys.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:n,widgetShadow:s}=this.styles.widget;this.ui.titleBar.style.backgroundColor=null!==e&&void 0!==e?e:"",this.ui.container.style.backgroundColor=null!==t&&void 0!==t?t:"",this.ui.container.style.color=null!==i&&void 0!==i?i:"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=s?`0 0 8px 2px ${s}`:"",this.ui.list.style(this.styles.list);const o=[];this.styles.pickerGroup.pickerGroupBorder&&o.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&o.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&o.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(o.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&o.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&o.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&o.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&o.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&o.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),o.push("}"));const r=o.join("\n");r!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=r)}}};eo.MAX_WIDTH=600,eo=Ys=Zs([Xs(1,Ce),Xs(2,be._Y)],eo);var to=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},io=function(e,t){return function(i,n){t(i,n,e)}};let no=class extends de.lR{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(Qn))),this._quickAccess}constructor(e,t,i,n,s){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=n,this.configurationService=s,this._onShow=this._register(new ae.vl),this._onHide=this._register(new ae.vl),this.contexts=new Map}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),linkOpenerDelegate:e=>{this.instantiationService.invokeFunction((t=>{t.get(dt.C).open(e,{allowCommands:!0,fromUserGesture:!0})}))},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(Bs))},n=this._register(this.instantiationService.createInstance(eo,{...i,...t}));return n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer((t=>{(0,oe.zk)(e.activeContainer)===(0,oe.zk)(n.container)&&n.layout(t,e.activeContainerOffset.quickPickTop)}))),this._register(e.onDidChangeActiveContainer((()=>{n.isVisible()||n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop)}))),this._register(n.onShow((()=>{this.resetContextKeys(),this._onShow.fire()}))),this._register(n.onHide((()=>{this.resetContextKeys(),this._onHide.fire()}))),n}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new ge.N1(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),null===t||void 0===t||t.set(!0))}resetContextKeys(){this.contexts.forEach((e=>{e.get()&&e.reset()}))}pick(e,t={},i=fn.X.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:(0,nt.GuP)(nt.ELA),quickInputForeground:(0,nt.GuP)(nt.HJZ),quickInputTitleBackground:(0,nt.GuP)(nt.er1),widgetBorder:(0,nt.GuP)(nt.DSL),widgetShadow:(0,nt.GuP)(nt.f9l)},inputBox:dn.ho,toggle:dn.mk,countBadge:dn.m$,button:dn.cv,progressBar:dn.oJ,keybindingLabel:dn.ir,list:(0,dn.t8)({listBackground:nt.ELA,listFocusBackground:nt.AlL,listFocusForeground:nt.nH,listInactiveFocusForeground:nt.nH,listInactiveSelectionIconForeground:nt.c7i,listInactiveFocusBackground:nt.AlL,listFocusOutline:nt.buw,listInactiveFocusOutline:nt.buw}),pickerGroup:{pickerGroupBorder:(0,nt.GuP)(nt.iwL),pickerGroupForeground:(0,nt.GuP)(nt.NBf)}}}};no=to([io(0,be._Y),io(1,ge.fN),io(2,de.Gy),io(3,Ce),io(4,z.pG)],no);var so=i(6921),oo=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ro=function(e,t){return function(i,n){t(i,n,e)}};let ao=class extends no{constructor(e,t,i,n,s,o){super(t,i,n,new ke(e.getContainerDomNode(),s),o),this.host=void 0;const r=ho.get(e);if(r){const t=r.widget;this.host={_serviceBrand:void 0,get mainContainer(){return t.getDomNode()},getContainer:()=>t.getDomNode(),whenContainerStylesLoaded(){},get containers(){return[t.getDomNode()]},get activeContainer(){return t.getDomNode()},get mainContainerDimension(){return e.getLayoutInfo()},get activeContainerDimension(){return e.getLayoutInfo()},get onDidLayoutMainContainer(){return e.onDidLayoutChange},get onDidLayoutActiveContainer(){return e.onDidLayoutChange},get onDidLayoutContainer(){return ae.Jh.map(e.onDidLayoutChange,(e=>({container:t.getDomNode(),dimension:e})))},get onDidChangeActiveContainer(){return ae.Jh.None},get onDidAddContainer(){return ae.Jh.None},get mainContainerOffset(){return{top:0,quickPickTop:0}},get activeContainerOffset(){return{top:0,quickPickTop:0}},focus:()=>e.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};ao=oo([ro(1,be._Y),ro(2,ge.fN),ro(3,de.Gy),ro(4,g.T),ro(5,z.pG)],ao);let lo=class{get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(ao,e);this.mapEditorToService.set(e,t),(0,so.P)(e.onDidDispose)((()=>{i.dispose(),this.mapEditorToService.delete(e)}))}return t}get quickAccess(){return this.activeService.quickAccess}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}pick(e,t={},i=fn.X.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}createInputBox(){return this.activeService.createInputBox()}};lo=oo([ro(0,be._Y),ro(1,g.T)],lo);class ho{static get(e){return e.getContribution(ho.ID)}constructor(e){this.editor=e,this.widget=new co(this.editor)}dispose(){this.widget.dispose()}}ho.ID="editor.controller.quickInput";class co{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return co.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}co.ID="editor.contrib.quickInputWidget",(0,u.HW)(ho.ID,ho,4);var uo=i(10424),go=i(24520),po=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},mo=function(e,t){return function(i,n){t(i,n,e)}};let fo=class extends l.jG{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new ae.vl,this._onDidChangeReducedMotion=new ae.vl,this._accessibilityModeEnabledContext=gt.f.bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())}))),n(),this._register(this.onDidChangeScreenReaderOptimized((()=>n())));const s=a.G.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=s.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this.initReducedMotionListeners(s)}initReducedMotionListeners(e){this._register((0,oe.ko)(e,"change",(()=>{this._systemMotionReduced=e.matches,"auto"===this._configMotionReduced&&this._onDidChangeReducedMotion.fire()})));const t=()=>{const e=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",e),this._layoutService.mainContainer.classList.toggle("enable-motion",!e)};t(),this._register(this.onDidChangeReducedMotion((()=>t())))}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};fo=po([mo(0,ge.fN),mo(1,Ce),mo(2,z.pG)],fo);var _o,vo,bo=i(9711),Co=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},yo=function(e,t){return function(i,n){t(i,n,e)}};let wo=class{constructor(e,t){this._commandService=e,this._hiddenStates=new So(t)}createMenu(e,t,i){return new xo(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,t)}resetHiddenStates(e){this._hiddenStates.reset(e)}};wo=Co([yo(0,Ut.d),yo(1,bo.CS)],wo);let So=_o=class{constructor(e){this._storageService=e,this._disposables=new l.Cm,this._onDidChange=new ae.vl,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const t=e.get(_o._key,0,"{}");this._data=JSON.parse(t)}catch(t){this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(0,_o._key,this._disposables)((()=>{if(!this._ignoreChangeEvent)try{const t=e.get(_o._key,0,"{}");this._data=JSON.parse(t)}catch(t){console.log("FAILED to read storage after UPDATE",t)}this._onDidChange.fire()})))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(e,t){var i;return null!==(i=this._hiddenByDefaultCache.get(`${e.id}/${t}`))&&void 0!==i&&i}setDefaultState(e,t,i){this._hiddenByDefaultCache.set(`${e.id}/${t}`,i)}isHidden(e,t){var i,n;const s=this._isHiddenByDefault(e,t),o=null!==(n=null===(i=this._data[e.id])||void 0===i?void 0:i.includes(t))&&void 0!==n&&n;return s?!o:o}updateHidden(e,t,i){this._isHiddenByDefault(e,t)&&(i=!i);const n=this._data[e.id];if(i)if(n){n.indexOf(t)<0&&n.push(t)}else this._data[e.id]=[t];else if(n){const i=n.indexOf(t);i>=0&&(0,ve.UH)(n,i),0===n.length&&delete this._data[e.id]}this._persist()}reset(e){if(void 0===e)this._data=Object.create(null),this._persist();else{for(const{id:t}of e)this._data[t]&&delete this._data[t];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const e=JSON.stringify(this._data);this._storageService.store(_o._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};So._key="menu.hiddenCommands",So=_o=Co([yo(0,bo.CS)],So);let ko=vo=class{constructor(e,t,i,n,s){this._id=e,this._hiddenStates=t,this._collectContextKeysForSubmenus=i,this._commandService=n,this._contextKeyService=s,this._menuGroups=[],this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const e=zi.ZG.getMenuItems(this._id);let t;e.sort(vo._compareMenuItems);for(const i of e){const e=i.group||"";t&&t[0]===e||(t=[e,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeys(i)}}_collectContextKeys(e){if(vo._fillInKbExprKeys(e.when,this._structureContextKeys),(0,zi.is)(e)){if(e.command.precondition&&vo._fillInKbExprKeys(e.command.precondition,this._preconditionContextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;vo._fillInKbExprKeys(t,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&zi.ZG.getMenuItems(e.submenu).forEach(this._collectContextKeys,this)}createActionGroups(e){const t=[];for(const i of this._menuGroups){const[n,s]=i,o=[];for(const t of s)if(this._contextKeyService.contextMatchesRules(t.when)){const i=(0,zi.is)(t);i&&this._hiddenStates.setDefaultState(this._id,t.command.id,!!t.isHiddenByDefault);const n=Lo(this._id,i?t.command:t,this._hiddenStates);if(i)o.push(new zi.Xe(t.command,t.alt,e,n,this._contextKeyService,this._commandService));else{const i=new vo(t.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._contextKeyService).createActionGroups(e),s=Vi.wv.join(...i.map((e=>e[1])));s.length>0&&o.push(new zi.nI(t,n,s))}}o.length>0&&t.push([n,o])}return t}static _fillInKbExprKeys(e,t){if(e)for(const i of e.keys())t.add(i)}static _compareMenuItems(e,t){const i=e.group,n=t.group;if(i!==n){if(!i)return 1;if(!n)return-1;if("navigation"===i)return-1;if("navigation"===n)return 1;const e=i.localeCompare(n);if(0!==e)return e}const s=e.order||0,o=t.order||0;return s<o?-1:s>o?1:vo._compareTitles((0,zi.is)(e)?e.command.title:e.title,(0,zi.is)(t)?t.command.title:t.title)}static _compareTitles(e,t){const i="string"===typeof e?e:e.original,n="string"===typeof t?t:t.original;return i.localeCompare(n)}};ko=vo=Co([yo(3,Ut.d),yo(4,ge.fN)],ko);let xo=class{constructor(e,t,i,n,s){this._disposables=new l.Cm,this._menuInfo=new ko(e,t,i.emitEventsForSubmenuChanges,n,s);const o=new ti.uC((()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})}),i.eventDebounceDelay);this._disposables.add(o),this._disposables.add(zi.ZG.onDidChangeMenu((t=>{t.has(e)&&o.schedule()})));const r=this._disposables.add(new l.Cm);this._onDidChange=new ae.uI({onWillAddFirstListener:()=>{r.add(s.onDidChangeContext((e=>{const t=e.affectsSome(this._menuInfo.structureContextKeys),i=e.affectsSome(this._menuInfo.preconditionContextKeys),n=e.affectsSome(this._menuInfo.toggledContextKeys);(t||i||n)&&this._onDidChange.fire({menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:n})}))),r.add(t.onDidChange((e=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})})))},onDidRemoveLastListener:r.clear.bind(r),delay:i.eventDebounceDelay,merge:e=>{let t=!1,i=!1,n=!1;for(const s of e)if(t=t||s.isStructuralChange,i=i||s.isEnablementChange,n=n||s.isToggleChange,t&&i&&n)break;return{menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:n}}}),this.onDidChange=this._onDidChange.event}getActions(e){return this._menuInfo.createActionGroups(e)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};function Lo(e,t,i){const n=(0,zi.i1)(t)?t.submenu.id:t.id,s="string"===typeof t.title?t.title:t.title.value,o=(0,Vi.ih)({id:`hide/${e.id}/${n}`,label:(0,De.kg)("hide.label","Hide '{0}'",s),run(){i.updateHidden(e,n,!0)}}),r=(0,Vi.ih)({id:`toggle/${e.id}/${n}`,label:s,get checked(){return!i.isHidden(e,n)},run(){i.updateHidden(e,n,!!this.checked)}});return{hide:o,toggle:r,get isHidden(){return!r.checked}}}xo=Co([yo(3,Ut.d),yo(4,ge.fN)],xo);var Do,Eo=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},No=function(e,t){return function(i,n){t(i,n,e)}};let To=Do=class extends l.jG{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(Ui.nr||Ui.c8)&&this.installWebKitWriteTextWorkaround(),this._register(ae.Jh.runAndSubscribe(oe.Iv,(({window:e,disposables:t})=>{t.add((0,oe.ko)(e.document,"copy",(()=>this.clearResources())))}),{window:a.G,disposables:this._store}))}installWebKitWriteTextWorkaround(){const e=()=>{const e=new ti.Zv;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch((async t=>{t instanceof Error&&"NotAllowedError"===t.name&&e.isRejected||this.logService.error(t)}))};this._register(ae.Jh.runAndSubscribe(this.layoutService.onDidAddContainer,(({container:t,disposables:i})=>{i.add((0,oe.ko)(t,"click",e)),i.add((0,oe.ko)(t,"keydown",e))}),{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.writeResources([]),t)this.mapTextToType.set(t,e);else{if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return await navigator.clipboard.writeText(e)}catch(i){console.error(i)}this.fallbackWriteText(e)}}fallbackWriteText(e){const t=(0,oe.a)(),i=t.activeElement,n=t.body.appendChild((0,oe.$)("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),t.execCommand("copy"),i instanceof HTMLElement&&i.focus(),t.body.removeChild(n)}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await navigator.clipboard.readText()}catch(t){console.error(t)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}async writeResources(e){0===e.length?this.clearResources():(this.resources=e,this.resourcesStateHash=await this.computeResourcesStateHash())}async readResources(){const e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResources(),this.resources}async computeResourcesStateHash(){if(0===this.resources.length)return;const e=await this.readText();return(0,On.tW)(e.substring(0,Do.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearResources(){this.resources=[],this.resourcesStateHash=void 0}};To.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3,To=Do=Eo([No(0,Ce),No(1,Ke.rr)],To);var Io=i(54770),Mo=i(42522),Ao=i(4853),Ro=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Oo=function(e,t){return function(i,n){t(i,n,e)}};const Po="data-keybinding-context";class Fo{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t}}class Bo extends Fo{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}Bo.INSTANCE=new Bo;class Wo extends Fo{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Ao.cB.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration((e=>{if(7===e.source){const e=Array.from(this._values,(([e])=>e));this._values.clear(),i.fire(new zo(e))}else{const t=[];for(const i of e.affectedKeys){const e=`config.${i}`,n=this._values.findSuperstr(e);void 0!==n&&(t.push(...Mo.f.map(n,(([e])=>e))),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new zo(t))}}))}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(Wo._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(Wo._keyPrefix.length),i=this._configurationService.getValue(t);let n;switch(typeof i){case"number":case"boolean":case"string":n=i;break;default:n=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,n),n}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}Wo._keyPrefix="config.";class Vo{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class Ho{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class zo{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every((t=>e.has(t)))}}class jo{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every((t=>t.allKeysContainedIn(e)))}}class Uo extends l.jG{constructor(e){super(),this._onDidChangeContext=this._register(new ae.fV({merge:e=>new jo(e)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Vo(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Go(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new Ho(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Ho(e))}getContext(e){return this._isDisposed?Bo.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(Po)){const t=e.getAttribute(Po);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))}dispose(){super.dispose(),this._isDisposed=!0}}let Ko=class extends Uo{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0;const t=this._register(new Wo(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t)}getContextValuesContainer(e){return this._isDisposed?Bo.INSTANCE:this._contexts.get(e)||Bo.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const t=++this._lastContextId;return this._contexts.set(t,new Fo(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};Ko=Ro([Oo(0,z.pG)],Ko);class Go extends Uo{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=this._register(new l.HE),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(Po)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error("Element already has context attribute"+(e?": "+e:""))}this._domNode.setAttribute(Po,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext((e=>{const t=this._parent.getContextValuesContainer(this._myContextId).value;var i;i=t,e.allKeysContainedIn(new Set(Object.keys(i)))||this._onDidChangeContext.fire(e)}))}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(Po),super.dispose())}getContextValuesContainer(e){return this._isDisposed?Bo.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}Ut.w.registerCommand("_setContext",(function(e,t,i){e.get(ge.fN).createKey(String(t),function(e){return(0,p.PI)(e,(e=>"object"===typeof e&&1===e.$mid?h.r.revive(e).toString():e instanceof h.r?e.toString():void 0))}(i))})),Ut.w.registerCommand({id:"getContextKeyInfo",handler:()=>[...ge.N1.all()].sort(((e,t)=>e.key.localeCompare(t.key))),metadata:{description:(0,De.kg)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),Ut.w.registerCommand("_generateContextKeyInfo",(function(){const e=[],t=new Set;for(const i of ge.N1.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort(((e,t)=>e.key.localeCompare(t.key))),console.log(JSON.stringify(e,void 0,2))}));var $o=i(84040);class qo{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}}class Qo{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(n.key,n),n.incoming.set(i.key,i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new qo(t,e),this._nodes.set(t,i)),i}isEmpty(){return 0===this._nodes.size}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}\n\t(-> incoming)[${[...i.incoming.keys()].join(", ")}]\n\t(outgoing ->)[${[...i.outgoing.keys()].join(",")}]\n`);return e.join("\n")}findCycleSlow(){for(const[e,t]of this._nodes){const i=new Set([e]),n=this._findCycle(t,i);if(n)return n}}_findCycle(e,t){for(const[i,n]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const e=this._findCycle(n,t);if(e)return e;t.delete(i)}}}var Yo=i(58345);class Zo extends Error{constructor(e){var t;super("cyclic dependency between services"),this.message=null!==(t=e.findCycleSlow())&&void 0!==t?t:`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}}class Xo{constructor(e=new Yo.a,t=!1,i,n=false){var s;this._services=e,this._strict=t,this._parent=i,this._enableTracing=n,this._activeInstantiations=new Set,this._services.set(be._Y,this),this._globalGraph=n?null!==(s=null===i||void 0===i?void 0:i._globalGraph)&&void 0!==s?s:new Qo((e=>e)):void 0}createChild(e){return new Xo(e,this._strict,this,this._enableTracing)}invokeFunction(e,...t){const i=Jo.traceInvocation(this._enableTracing,e);let n=!1;try{return e({get:e=>{if(n)throw(0,xe.iH)("service accessor is only valid during the invocation of its target method");const t=this._getOrCreateServiceInstance(e,i);if(!t)throw new Error(`[invokeFunction] unknown service '${e}'`);return t}},...t)}finally{n=!0,i.stop()}}createInstance(e,...t){let i,n;return e instanceof $o.d?(i=Jo.traceCreation(this._enableTracing,e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=Jo.traceCreation(this._enableTracing,e),n=this._createInstance(e,t,i)),i.stop(),n}_createInstance(e,t=[],i){const n=be._$.getServiceDependencies(e).sort(((e,t)=>e.index-t.index)),s=[];for(const r of n){const t=this._getOrCreateServiceInstance(r.id,i);t||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${r.id}.`,!1),s.push(t)}const o=n.length>0?n[0].index:t.length;if(t.length!==o){console.trace(`[createInstance] First service dependency of ${e.name} at position ${o+1} conflicts with ${t.length} static arguments`);const i=o-t.length;t=i>0?t.concat(new Array(i)):t.slice(0,o)}return Reflect.construct(e,t.concat(s))}_setServiceInstance(e,t){if(this._services.get(e)instanceof $o.d)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){const t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));const i=this._getServiceInstanceOrDescriptor(e);return i instanceof $o.d?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){var n;const s=new Qo((e=>e.id.toString()));let o=0;const r=[{id:e,desc:t,_trace:i}];for(;r.length;){const t=r.pop();if(s.lookupOrInsertNode(t),o++>1e3)throw new Zo(s);for(const i of be._$.getServiceDependencies(t.desc.ctor)){const o=this._getServiceInstanceOrDescriptor(i.id);if(o||this._throwIfStrict(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`,!0),null===(n=this._globalGraph)||void 0===n||n.insertEdge(String(t.id),String(i.id)),o instanceof $o.d){const e={id:i.id,desc:o,_trace:t._trace.branch(i.id,!0)};s.insertEdge(t,e),r.push(e)}}}for(;;){const e=s.roots();if(0===e.length){if(!s.isEmpty())throw new Zo(s);break}for(const{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof $o.d){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setServiceInstance(t.id,e)}s.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],n,s){if(this._services.get(e)instanceof $o.d)return this._createServiceInstance(e,t,i,n,s);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,n,s);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t,i=[],n,s){if(n){const n=new Xo(void 0,this._strict,this,this._enableTracing);n._globalGraphImplicitDependency=String(e);const o=new Map,r=new ti.F6((()=>{const e=n._createInstance(t,i,s);for(const[t,i]of o){const n=e[t];if("function"===typeof n)for(const t of i)t.disposable=n.apply(e,t.listener)}return o.clear(),e}));return new Proxy(Object.create(null),{get(e,t){if(!r.isInitialized&&"string"===typeof t&&(t.startsWith("onDid")||t.startsWith("onWill"))){let e=o.get(t);e||(e=new le.w,o.set(t,e));return(i,n,s)=>{if(r.isInitialized)return r.value[t](i,n,s);{const t={listener:[i,n,s],disposable:void 0},o=e.push(t);return(0,l.s)((()=>{var e;o(),null===(e=t.disposable)||void 0===e||e.dispose()}))}}}if(t in e)return e[t];const i=r.value;let n=i[t];return"function"!==typeof n||(n=n.bind(i),e[t]=n),n},set:(e,t,i)=>(r.value[t]=i,!0),getPrototypeOf:e=>t.prototype})}return this._createInstance(t,i,s)}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw new Error(e)}}class Jo{static traceInvocation(e,t){return e?new Jo(2,t.name||(new Error).stack.split("\n").slice(3,4).join("\n")):Jo._None}static traceCreation(e,t){return e?new Jo(1,t.name):Jo._None}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}branch(e,t){const i=new Jo(3,e.toString());return this._dep.push([e,t,i]),i}stop(){const e=Date.now()-this._start;Jo._totals+=e;let t=!1;const i=[`${1===this.type?"CREATE":"CALL"} ${this.name}`,`${function e(i,n){const s=[],o=new Array(i+1).join("\t");for(const[r,a,l]of n._dep)if(a&&l){t=!0,s.push(`${o}CREATES -> ${r}`);const n=e(i+1,l);n&&s.push(n)}else s.push(`${o}uses -> ${r}`);return s.join("\n")}(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${Jo._totals.toFixed(2)}ms)`];(e>2||t)&&Jo.all.add(i.join("\n"))}}Jo.all=new Set,Jo._None=new class extends Jo{constructor(){super(0,null)}stop(){}branch(){return this}},Jo._totals=0;const er=new Set([re.ny.inMemory,re.ny.vscodeSourceControl,re.ny.walkThrough,re.ny.walkThroughSnippet,re.ny.vscodeChatCodeBlock]);class tr{constructor(){this._byResource=new Kt.fT,this._byOwner=new Map}set(e,t,i){let n=this._byResource.get(e);n||(n=new Map,this._byResource.set(e,n)),n.set(t,i);let s=this._byOwner.get(t);s||(s=new Kt.fT,this._byOwner.set(t,s)),s.set(e,i)}get(e,t){const i=this._byResource.get(e);return null===i||void 0===i?void 0:i.get(t)}delete(e,t){let i=!1,n=!1;const s=this._byResource.get(e);s&&(i=s.delete(t));const o=this._byOwner.get(t);if(o&&(n=o.delete(e)),i!==n)throw new Error("illegal state");return i&&n}values(e){var t,i,n,s;return"string"===typeof e?null!==(i=null===(t=this._byOwner.get(e))||void 0===t?void 0:t.values())&&void 0!==i?i:Mo.f.empty():h.r.isUri(e)?null!==(s=null===(n=this._byResource.get(e))||void 0===n?void 0:n.values())&&void 0!==s?s:Mo.f.empty():Mo.f.map(Mo.f.concat(...this._byOwner.values()),(e=>e[1]))}}class ir{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new Kt.fT,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const i=this._resourceStats(t);this._add(i),this._data.set(t,i)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(er.has(e.scheme))return t;for(const{severity:i}of this._service.read({resource:e}))i===kn.cj.Error?t.errors+=1:i===kn.cj.Warning?t.warnings+=1:i===kn.cj.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class nr{constructor(){this._onMarkerChanged=new ae.uI({delay:0,merge:nr._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new tr,this._stats=new ir(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if((0,ve.Ct)(i)){this._data.delete(t,e)&&this._onMarkerChanged.fire([t])}else{const n=[];for(const s of i){const i=nr._toMarker(e,t,s);i&&n.push(i)}this._data.set(t,e,n),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:n,severity:s,message:o,source:r,startLineNumber:a,startColumn:l,endLineNumber:d,endColumn:h,relatedInformation:c,tags:u}=i;if(o)return a=a>0?a:1,l=l>0?l:1,d=d>=a?d:a,h=h>0?h:l,{resource:t,owner:e,code:n,severity:s,message:o,source:r,startLineNumber:a,startColumn:l,endLineNumber:d,endColumn:h,relatedInformation:c,tags:u}}changeAll(e,t){const i=[],n=this._data.values(e);if(n)for(const s of n){const t=Mo.f.first(s);t&&(i.push(t.resource),this._data.delete(t.resource,e))}if((0,ve.EI)(t)){const n=new Kt.fT;for(const{resource:s,marker:o}of t){const t=nr._toMarker(e,s,o);if(!t)continue;const r=n.get(s);r?r.push(t):(n.set(s,[t]),i.push(s))}for(const[t,i]of n)this._data.set(t,e,i)}i.length>0&&this._onMarkerChanged.fire(i)}read(e=Object.create(null)){let{owner:t,resource:i,severities:n,take:s}=e;if((!s||s<0)&&(s=-1),t&&i){const e=this._data.get(i,t);if(e){const t=[];for(const i of e)if(nr._accept(i,n)){const e=t.push(i);if(s>0&&e===s)break}return t}return[]}if(t||i){const e=this._data.values(null!==i&&void 0!==i?i:t),o=[];for(const t of e)for(const e of t)if(nr._accept(e,n)){const t=o.push(e);if(s>0&&t===s)return o}return o}{const e=[];for(const t of this._data.values())for(const i of t)if(nr._accept(i,n)){const t=e.push(i);if(s>0&&t===s)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){const t=new Kt.fT;for(const i of e)for(const e of i)t.set(e,!0);return Array.from(t.keys())}}class sr extends l.jG{constructor(){super(...arguments),this._configurationModel=new Yt}get configurationModel(){return this._configurationModel}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=new Yt;const e=qt.O.as($t.Fd.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const i=this.getConfigurationDefaultOverrides();for(const n of e){const e=i[n],s=t[n];void 0!==e?this._configurationModel.addValue(n,e):s?this._configurationModel.addValue(n,s.default):this._configurationModel.removeValue(n)}}}var or=i(87213);class rr extends l.jG{constructor(e,t=[]){super(),this.logger=new Ke.Dk([e,...t]),this._register(e.onDidChangeLogLevel((e=>this.setLevel(e))))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}warn(e,...t){this.logger.warn(e,...t)}error(e,...t){this.logger.error(e,...t)}}var ar=i(72466),lr=i(97035),dr=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},hr=function(e,t){return function(i,n){t(i,n,e)}};class cr{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new ae.vl}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let ur=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new l.BO(new cr(t))):Promise.reject(new Error("Model not found"))}};ur=dr([hr(0,L.S)],ur);class gr{show(){return gr.NULL_PROGRESS_RUNNER}async showWhile(e,t){await e}}gr.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class pr{info(e){return this.notify({severity:Le.A.Info,message:e})}warn(e){return this.notify({severity:Le.A.Warning,message:e})}error(e){return this.notify({severity:Le.A.Error,message:e})}notify(e){switch(e.severity){case Le.A.Error:console.error(e.message);break;case Le.A.Warning:console.warn(e.message);break;default:console.log(e.message)}return pr.NO_OP}prompt(e,t,i,n){return pr.NO_OP}status(e,t){return l.jG.None}}pr.NO_OP=new Ne.Kz;let mr=class{constructor(e){this._onWillExecuteCommand=new ae.vl,this._onDidExecuteCommand=new ae.vl,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=Ut.w.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const n=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}};mr=dr([hr(0,be._Y)],mr);let fr=class extends di{constructor(e,t,i,n,s,o){super(e,t,i,n,s),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const r=e=>{const t=new l.Cm;t.add(oe.ko(e,oe.Bx.KEY_DOWN,(e=>{const t=new yt.Z(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(oe.ko(e,oe.Bx.KEY_UP,(e=>{const t=new yt.Z(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new _r(e,t))},a=e=>{for(let t=0;t<this._domNodeListeners.length;t++){const i=this._domNodeListeners[t];i.domNode===e&&(this._domNodeListeners.splice(t,1),i.dispose())}},d=e=>{e.getOption(61)||r(e.getContainerDomNode())};this._register(o.onCodeEditorAdd(d)),this._register(o.onCodeEditorRemove((e=>{e.getOption(61)||a(e.getContainerDomNode())}))),o.listCodeEditors().forEach(d);const h=e=>{r(e.getContainerDomNode())};this._register(o.onDiffEditorAdd(h)),this._register(o.onDiffEditorRemove((e=>{a(e.getContainerDomNode())}))),o.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,i,n){return(0,l.qE)(Ut.w.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:n}]))}addDynamicKeybindings(e){const t=e.map((e=>{var t;return{keybinding:(0,Pt.Zv)(e.keybinding,ut.OS),command:null!==(t=e.command)&&void 0!==t?t:null,commandArgs:e.commandArgs,when:e.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}}));return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),(0,l.s)((()=>{for(let e=0;e<this._dynamicKeybindings.length;e++)if(this._dynamicKeybindings[e]===t[0])return this._dynamicKeybindings.splice(e,t.length),void this.updateResolver()}))}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(ci.f.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new oi(e,t,(e=>this._log(e)))}return this._cachedResolver}_documentHasFocus(){return a.G.document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let n=0;for(const s of e){const e=s.when||void 0,o=s.keybinding;if(o){const r=_i.resolveKeybinding(o,ut.OS);for(const o of r)i[n++]=new ui(o,s.command,s.commandArgs,e,t,null,!1)}else i[n++]=new ui(void 0,s.command,s.commandArgs,e,t,null,!1)}return i}resolveKeyboardEvent(e){const t=new Pt.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new _i([t],ut.OS)}};fr=dr([hr(0,ge.fN),hr(1,Ut.d),hr(2,Ci.k),hr(3,Ne.Ot),hr(4,Ke.rr),hr(5,g.T)],fr);class _r extends l.jG{constructor(e,t){super(),this.domNode=e,this._register(t)}}function vr(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof h.r)}class br{constructor(){this._onDidChangeConfiguration=new ae.vl,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const e=new sr;this._configuration=new Jt(e.reload(),new Yt,new Yt,new Yt),e.dispose()}getValue(e,t){const i="string"===typeof e?e:void 0,n=vr(e)?e:vr(t)?t:{};return this._configuration.getValue(i,n,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const n of e){const[e,t]=n;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),i.push(e))}if(i.length>0){const e=new ei({keys:i,overrides:[]},t,this._configuration);e.source=8,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,i,n){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}}let Cr=class{constructor(e,t,i){this.configurationService=e,this.modelService=t,this.languageService=i,this._onDidChangeConfiguration=new ae.vl,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)})}))}getValue(e,t,i){const n=Vt.y.isIPosition(t)?t:null,s=n?"string"===typeof i?i:void 0:"string"===typeof t?t:void 0,o=e?this.getLanguage(e,n):void 0;return"undefined"===typeof s?this.configurationService.getValue({resource:e,overrideIdentifier:o}):this.configurationService.getValue(s,{resource:e,overrideIdentifier:o})}getLanguage(e,t){const i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};Cr=dr([hr(0,z.pG),hr(1,L.S),hr(2,y.L)],Cr);let yr=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&"string"===typeof i&&"auto"!==i?i:ut.j9||ut.zx?"\n":"\r\n"}};yr=dr([hr(0,z.pG)],yr);class wr{constructor(){const e=h.r.from({scheme:wr.SCHEME,authority:"model",path:"/"});this.workspace={id:yi.cn,folders:[new yi.mX({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===wr.SCHEME?this.workspace.folders[0]:null}}function Sr(e,t,i){if(!t)return;if(!(e instanceof br))return;const n=[];Object.keys(t).forEach((e=>{(0,Bt.vf)(e)&&n.push([`editor.${e}`,t[e]]),i&&(0,Bt.Gn)(e)&&n.push([`diffEditor.${e}`,t[e]])})),n.length>0&&e.updateValues(n)}wr.SCHEME="inmemory";let kr=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,t){const i=Array.isArray(e)?e:Ft.jN.convert(e),n=new Map;for(const r of i){if(!(r instanceof Ft.cw))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(r.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof r.versionId&&e.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let t=n.get(e);t||(t=[],n.set(e,t)),t.push(Wt.k.replaceMove(Ht.Q.lift(r.textEdit.range),r.textEdit.text))}let s=0,o=0;for(const[r,a]of n)r.pushStackElement(),r.pushEditOperations([],a,(()=>[])),r.pushStackElement(),o+=1,s+=a.length;return{ariaSummary:d.GP(wi.tu.bulkEditServiceSummary,s,o),isApplied:s>0}}};kr=dr([hr(0,L.S)],kr);let xr=class extends Tt{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,i)}};xr=dr([hr(0,Ce),hr(1,g.T)],xr);let Lr=class extends gn{constructor(e,t,i,n,s,o){super(e,t,i,n,s,o),this.configure({blockMouse:!1})}};Lr=dr([hr(0,Ci.k),hr(1,Ne.Ot),hr(2,ot.l),hr(3,rt.b),hr(4,zi.ez),hr(5,ge.fN)],Lr);var Dr;(0,pe.v)(z.pG,br,0),(0,pe.v)(jt.U,Cr,0),(0,pe.v)(jt.J,yr,0),(0,pe.v)(yi.VR,wr,0),(0,pe.v)(vi.L,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,Si.P8)(e)}},0),(0,pe.v)(Ci.k,class{publicLog2(){}},0),(0,pe.v)(Ee.X,class{async confirm(e){return{confirmed:this.doConfirm(e.message,e.detail),checkboxChecked:!1}}doConfirm(e,t){let i=e;return t&&(i=i+"\n\n"+t),a.G.confirm(i)}async prompt(e){var t,i;let n;if(this.doConfirm(e.message,e.detail)){const s=[...null!==(t=e.buttons)&&void 0!==t?t:[]];e.cancelButton&&"string"!==typeof e.cancelButton&&"boolean"!==typeof e.cancelButton&&s.push(e.cancelButton),n=await(null===(i=s[0])||void 0===i?void 0:i.run({checkboxChecked:!1}))}return{result:n}}async error(e,t){await this.prompt({type:Le.A.Error,message:e,detail:t})}},0),(0,pe.v)(lr.k,class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}},0),(0,pe.v)(Ne.Ot,pr,0),(0,pe.v)(kn.DR,nr,0),(0,pe.v)(y.L,class extends Bi{constructor(){super()}},0),(0,pe.v)(go.L,uo.Sx,0),(0,pe.v)(Ke.rr,class extends rr{constructor(){super(new Ke.Cr)}},0),(0,pe.v)(L.S,jn,0),(0,pe.v)(Mn.A,Nn,0),(0,pe.v)(ge.fN,Ko,0),(0,pe.v)(bi.G5,class{withProgress(e,t,i){return t({report:()=>{}})}},0),(0,pe.v)(bi.N8,gr,0),(0,pe.v)(bo.CS,bo.pc,0),(0,pe.v)(Sn.w,m.Bc,0),(0,pe.v)(Ft.nu,kr,0),(0,pe.v)(ki.L,class{constructor(){this._neverEmitter=new ae.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},0),(0,pe.v)(zt.b,ur,0),(0,pe.v)(gt.j,fo,0),(0,pe.v)(ls.PE,ls.aG,0),(0,pe.v)(Ut.d,mr,0),(0,pe.v)(rt.b,fr,0),(0,pe.v)(Gn.GK,lo,0),(0,pe.v)(ot.l,xr,0),(0,pe.v)(dt.C,wn,0),(0,pe.v)(Io.h,To,0),(0,pe.v)(ot.Z,Lr,0),(0,pe.v)(zi.ez,wo,0),(0,pe.v)(or.Nt,class{async playSignal(e,t){}},0),function(e){const t=new Yo.a;for(const[r,a]of(0,pe.N)())t.set(r,a);const i=new Xo(t,!0);t.set(be._Y,i),e.get=function(e){n||o({});const s=t.get(e);if(!s)throw new Error("Missing service "+e);return s instanceof $o.d?i.invokeFunction((t=>t.get(e))):s};let n=!1;const s=new ae.vl;function o(e){if(n)return i;n=!0;for(const[i,n]of(0,pe.N)())t.get(i)||t.set(i,n);for(const i in e)if(e.hasOwnProperty(i)){const n=(0,be.u1)(i);t.get(n)instanceof $o.d&&t.set(n,e[i])}const o=(0,ar.T)();for(const t of o)try{i.createInstance(t)}catch(r){(0,xe.dz)(r)}return s.fire(),i}e.initialize=o,e.withServices=function(e){if(n)return e();const t=new l.Cm,i=t.add(s.event((()=>{i.dispose(),t.add(e())})));return t}}(Dr||(Dr={}));var Er=i(89723),Nr=i(42904),Tr=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ir=function(e,t){return function(i,n){t(i,n,e)}};let Mr=0,Ar=!1;let Rr=class extends s.x{constructor(e,t,i,n,s,o,r,l,d,h,c,u){const g={...t};g.ariaLabel=g.ariaLabel||wi.vp.editorViewAccessibleLabel,g.ariaLabel=g.ariaLabel+";"+wi.vp.accessibilityHelpMessage,super(e,g,{},i,n,s,o,l,d,h,c,u),this._standaloneKeybindingService=r instanceof fr?r:null,function(e){if(!e){if(Ar)return;Ar=!0}ne.vr(e||a.G.document.body)}(g.ariaContainerElement),(0,Nr.MW)(((e,t)=>i.createInstance(st.fO,e,t,{})))}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++Mr,s=ge.M$.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,s),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),l.jG.None;const t=e.id,i=e.label,n=ge.M$.and(ge.M$.equals("editorId",this.getId()),ge.M$.deserialize(e.precondition)),s=e.keybindings,o=ge.M$.and(n,ge.M$.deserialize(e.keybindingContext)),r=e.contextMenuGroupId||null,a=e.contextMenuOrder||0,d=(t,...i)=>Promise.resolve(e.run(this,...i)),h=new l.Cm,c=this.getId()+":"+t;if(h.add(Ut.w.registerCommand(c,d)),r){const e={command:{id:c,title:i},when:n,group:r,order:a};h.add(zi.ZG.appendMenuItem(zi.D8.EditorContext,e))}if(Array.isArray(s))for(const l of s)h.add(this._standaloneKeybindingService.addDynamicKeybinding(c,l,d,o));const u=new se.f(c,i,i,void 0,n,((...t)=>Promise.resolve(e.run(this,...t))),this._contextKeyService);return this._actions.set(t,u),h.add((0,l.s)((()=>{this._actions.delete(t)}))),h}_triggerCommand(e,t){if(this._codeEditorService instanceof _e)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};Rr=Tr([Ir(2,be._Y),Ir(3,g.T),Ir(4,Ut.d),Ir(5,ge.fN),Ir(6,rt.b),Ir(7,de.Gy),Ir(8,Ne.Ot),Ir(9,gt.j),Ir(10,w.JZ),Ir(11,it.u)],Rr);let Or=class extends Rr{constructor(e,t,i,n,s,o,r,a,l,d,h,c,u,g,p){const m={...t};Sr(d,m,!1);const f=a.registerEditorContainer(e);"string"===typeof m.theme&&a.setTheme(m.theme),"undefined"!==typeof m.autoDetectHighContrast&&a.setAutoDetectHighContrast(Boolean(m.autoDetectHighContrast));const _=m.model;let v;if(delete m.model,super(e,m,i,n,s,o,r,a,l,h,g,p),this._configurationService=d,this._standaloneThemeService=a,this._register(f),"undefined"===typeof _){const e=u.getLanguageIdByMimeType(m.language)||m.language||S.vH;v=Fr(c,u,m.value||"",e,void 0),this._ownsModel=!0}else v=_,this._ownsModel=!1;if(this._attachModel(v),v){const e={oldModelUrl:null,newModelUrl:v.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){Sr(this._configurationService,e,!1),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Or=Tr([Ir(2,be._Y),Ir(3,g.T),Ir(4,Ut.d),Ir(5,ge.fN),Ir(6,rt.b),Ir(7,go.L),Ir(8,Ne.Ot),Ir(9,z.pG),Ir(10,gt.j),Ir(11,L.S),Ir(12,y.L),Ir(13,w.JZ),Ir(14,it.u)],Or);let Pr=class extends Er.T{constructor(e,t,i,n,s,o,r,a,l,d,h,c){const u={...t};Sr(a,u,!0);const g=o.registerEditorContainer(e);"string"===typeof u.theme&&o.setTheme(u.theme),"undefined"!==typeof u.autoDetectHighContrast&&o.setAutoDetectHighContrast(Boolean(u.autoDetectHighContrast)),super(e,u,{},n,i,s,c,d),this._configurationService=a,this._standaloneThemeService=o,this._register(g)}dispose(){super.dispose()}updateOptions(e){Sr(this._configurationService,e,!0),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(Rr,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function Fr(e,t,i,n,s){if(i=i||"",!n){const n=i.indexOf("\n");let o=i;return-1!==n&&(o=i.substring(0,n)),Br(e,i,t.createByFilepathOrFirstLine(s||null,o),s)}return Br(e,i,t.createById(n),s)}function Br(e,t,i,n){return e.createModel(t,i,n)}Pr=Tr([Ir(2,be._Y),Ir(3,ge.fN),Ir(4,g.T),Ir(5,go.L),Ir(6,Ne.Ot),Ir(7,z.pG),Ir(8,ot.Z),Ir(9,bi.N8),Ir(10,Io.h),Ir(11,or.Nt)],Pr);var Wr=i(99938),Vr=i(90568),Hr=i(46041),zr=i(49154),jr=i(49353),Ur=i(74444),Kr=i(75326),Gr=i(60002),$r=i(65644),qr=i(25791),Qr=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Yr=function(e,t){return function(i,n){t(i,n,e)}};class Zr{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let Xr=class extends l.jG{constructor(e,t,i,n){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=n,this._viewModel=(0,zr.FY)(this,void 0),this._collapsed=(0,Wr.un)(this,(e=>{var t;return null===(t=this._viewModel.read(e))||void 0===t?void 0:t.collapsed.read(e)})),this._editorContentHeight=(0,zr.FY)(this,500),this.contentHeight=(0,Wr.un)(this,(e=>(this._collapsed.read(e)?0:this._editorContentHeight.read(e))+this._outerEditorHeight)),this._modifiedContentWidth=(0,zr.FY)(this,0),this._modifiedWidth=(0,zr.FY)(this,0),this._originalContentWidth=(0,zr.FY)(this,0),this._originalWidth=(0,zr.FY)(this,0),this.maxScroll=(0,Wr.un)(this,(e=>{const t=this._modifiedContentWidth.read(e)-this._modifiedWidth.read(e),i=this._originalContentWidth.read(e)-this._originalWidth.read(e);return t>i?{maxScroll:t,width:this._modifiedWidth.read(e)}:{maxScroll:i,width:this._originalWidth.read(e)}})),this._elements=(0,oe.h)("div.multiDiffEntry",[(0,oe.h)("div.header@header",[(0,oe.h)("div.header-content",[(0,oe.h)("div.collapse-button@collapseButton"),(0,oe.h)("div.file-path",[(0,oe.h)("div.title.modified.show-file-icons@primaryPath",[]),(0,oe.h)("div.status.deleted@status",["R"]),(0,oe.h)("div.title.original.show-file-icons@secondaryPath",[])]),(0,oe.h)("div.actions@actions")])]),(0,oe.h)("div.editorParent",[(0,oe.h)("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(Er.T,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=Jr(this.editor.getModifiedEditor()),this.isOriginalFocused=Jr(this.editor.getOriginalEditor()),this.isFocused=(0,Wr.un)(this,(e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e))),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=new l.Cm,this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const s=new Ws.$(this._elements.collapseButton,{});this._register((0,Wr.fm)((e=>{s.element.className="",s.icon=this._collapsed.read(e)?Qi.W.chevronRight:Qi.W.chevronDown}))),this._register(s.onDidClick((()=>{var e;null===(e=this._viewModel.get())||void 0===e||e.collapsed.set(!this._collapsed.get(),void 0)}))),this._register((0,Wr.fm)((e=>{this._elements.editor.style.display=this._collapsed.read(e)?"none":"block"}))),this._register(this.editor.getModifiedEditor().onDidLayoutChange((e=>{const t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0)}))),this._register(this.editor.getOriginalEditor().onDidLayoutChange((e=>{const t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0)}))),this._register(this.editor.onDidContentSizeChange((e=>{(0,zr.YY)((t=>{this._editorContentHeight.set(e.contentHeight,t),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),t),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),t)}))}))),this._register(this.editor.getOriginalEditor().onDidScrollChange((e=>{if(this._isSettingScrollTop)return;if(!e.scrollTopChanged||!this._data)return;const t=e.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(t)}))),this._register((0,Wr.fm)((e=>{const t=this.isFocused.read(e);this._elements.root.classList.toggle("focused",t)}))),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._register(this._instantiationService.createInstance($r.m,this._elements.actions,zi.D8.MultiDiffEditorFileToolbar,{actionRunner:this._register(new qr.I((()=>{var e;return null===(e=this._viewModel.get())||void 0===e?void 0:e.modifiedUri}))),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("navigation")},actionViewItemProvider:(e,t)=>(0,Hi.rN)(n,e,t)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){function t(e){return{...e,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}this._data=e;const i=e.viewModel.entry.value;i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange((()=>{var e;this.editor.updateOptions(t(null!==(e=i.options)&&void 0!==e?e:{}))}))),(0,zr.YY)((n=>{var s,o,r,a;null===(s=this._resourceLabel)||void 0===s||s.setUri(null!==(o=e.viewModel.modifiedUri)&&void 0!==o?o:e.viewModel.originalUri,{strikethrough:void 0===e.viewModel.modifiedUri});let l=!1,d=!1,h=!1,c="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(c="R",l=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(c="A",h=!0):(c="D",d=!0),this._elements.status.classList.toggle("renamed",l),this._elements.status.classList.toggle("deleted",d),this._elements.status.classList.toggle("added",h),this._elements.status.innerText=c,null===(r=this._resourceLabel2)||void 0===r||r.setUri(l?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,n),this.editor.setModel(e.viewModel.diffEditorViewModel,n),this.editor.updateOptions(t(null!==(a=i.options)&&void 0!==a?a:{}))}))}render(e,t,i,n){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";const s=e.length-this._headerHeight,o=Math.max(0,Math.min(n.start-e.start,s));this._elements.header.style.transform=`translateY(${o}px)`,(0,zr.YY)((i=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})}));try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",o>0||i>0),this._elements.header.classList.toggle("collapsed",o===s)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};function Jr(e){return(0,Wr.y0)((t=>{const i=new l.Cm;return i.add(e.onDidFocusEditorWidget((()=>t(!0)))),i.add(e.onDidBlurEditorWidget((()=>t(!1)))),i}),(()=>e.hasTextFocus()))}Xr=Qr([Yr(3,be._Y)],Xr);class ea{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){var t;let i;if(0===this._unused.size)i=this._create(e),this._itemData.set(i,e);else{const n=[...this._unused.values()];i=null!==(t=n.find((t=>this._itemData.get(t).getId()===e.getId())))&&void 0!==t?t:n[0],this._unused.delete(i),this._itemData.set(i,e),i.setData(e)}return this._used.add(i),{object:i,dispose:()=>{this._used.delete(i),this._unused.size>5?i.dispose():this._unused.add(i)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var ta=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ia=function(e,t){return function(i,n){t(i,n,e)}};let na=class extends l.jG{constructor(e,t,i,n,s,o){super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=n,this._parentContextKeyService=s,this._parentInstantiationService=o,this._elements=(0,oe.h)("div.monaco-component.multiDiffEditor",[(0,oe.h)("div@content",{style:{overflow:"hidden"}}),(0,oe.h)("div.monaco-editor@overflowWidgetsDomNode",{})]),this._sizeObserver=this._register(new Vr.pN(this._element,void 0)),this._objectPool=this._register(new ea((e=>{const t=this._instantiationService.createInstance(Xr,this._elements.content,this._elements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return t.setData(e),t}))),this._scrollable=this._register(new jr.yE({forceIntegerValues:!1,scheduleAtNextAnimationFrame:e=>(0,oe.PG)((0,oe.zk)(this._element),e),smoothScrollDuration:100})),this._scrollableElement=this._register(new qi.oO(this._elements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this.scrollTop=(0,Wr.y0)(this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollTop)),this.scrollLeft=(0,Wr.y0)(this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollLeft)),this._viewItems=(0,Wr.rm)(this,((e,t)=>{const i=this._viewModel.read(e);if(!i)return[];return i.items.read(e).map((e=>{var i;const n=t.add(new sa(e,this._objectPool,this.scrollLeft,(e=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+e})}))),s=null===(i=this._lastDocStates)||void 0===i?void 0:i[n.getKey()];return s&&(0,zr.Rn)((e=>{n.setViewState(s,e)})),n}))})),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,((e,t)=>e.reduce(((e,i)=>e+i.contentHeight.read(t)+this._spaceBetweenPx),0))),this.activeDiffItem=(0,Wr.un)(this,(e=>this._viewItems.read(e).find((t=>{var i;return null===(i=t.template.read(e))||void 0===i?void 0:i.isFocused.read(e)})))),this.lastActiveDiffItem=(0,Wr.ZX)(((e,t)=>{var i;return null!==(i=this.activeDiffItem.read(e))&&void 0!==i?i:t})),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._parentInstantiationService.createChild(new Yo.a([ge.fN,this._contextKeyService])),this._lastDocStates={},this._contextKeyService.createKey(Gr.R.inMultiDiffEditor.key,!0),this._register((0,Wr.yC)(((e,t)=>{const i=this._viewModel.read(e);if(i&&i.contextKeys)for(const[n,s]of Object.entries(i.contextKeys)){const e=this._contextKeyService.createKey(n,void 0);e.set(s),t.add((0,l.s)((()=>e.reset())))}})));const r=this._parentContextKeyService.createKey(Gr.R.multiDiffEditorAllCollapsed.key,!1);this._register((0,Wr.fm)((e=>{const t=this._viewModel.read(e);if(t){const i=t.items.read(e).every((t=>t.collapsed.read(e)));r.set(i)}}))),this._register((0,Wr.fm)((e=>{const t=this.lastActiveDiffItem.read(e);(0,zr.Rn)((i=>{var n;null===(n=this._viewModel.read(e))||void 0===n||n.activeDiffItem.set(null===t||void 0===t?void 0:t.viewModel,i)}))}))),this._register((0,Wr.fm)((e=>{const t=this._dimension.read(e);this._sizeObserver.observe(t)}))),this._elements.content.style.position="relative",this._register((0,Wr.fm)((e=>{const t=this._sizeObserver.height.read(e);this._elements.root.style.height=`${t}px`;const i=this._totalHeight.read(e);this._elements.content.style.height=`${i}px`;const n=this._sizeObserver.width.read(e);let s=n;const o=this._viewItems.read(e),r=(0,Hr.Nf)(o,(t=>t.maxScroll.read(e).maxScroll));if(r){s=n+r.maxScroll.read(e).maxScroll}this._scrollableElement.setScrollDimensions({width:n,height:t,scrollHeight:i,scrollWidth:s})}))),e.replaceChildren(this._scrollableElement.getDomNode()),this._register((0,l.s)((()=>{e.replaceChildren()}))),this._register(this._register((0,Wr.fm)((e=>{(0,zr.YY)((t=>{this.render(e)}))}))))}render(e){const t=this.scrollTop.read(e);let i=0,n=0,s=0;const o=this._sizeObserver.height.read(e),r=Ur.L.ofStartAndLength(t,o),a=this._sizeObserver.width.read(e);for(const l of this._viewItems.read(e)){const d=l.contentHeight.read(e),h=Math.min(d,o),c=Ur.L.ofStartAndLength(n,h),u=Ur.L.ofStartAndLength(s,d);if(u.isBefore(r))i-=d-h,l.hide();else if(u.isAfter(r))l.hide();else{const e=Math.max(0,Math.min(r.start-u.start,d-h));i-=e;const n=Ur.L.ofStartAndLength(t+i,o);l.render(c,e,a,n)}n+=h+this._spaceBetweenPx,s+=d+this._spaceBetweenPx}this._elements.content.style.transform=`translateY(${-(t+i)}px)`}};na=ta([ia(4,ge.fN),ia(5,be._Y)],na);class sa extends l.jG{constructor(e,t,i,n){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=i,this._deltaScrollVertical=n,this._templateRef=this._register((0,zr.X2)(this,void 0)),this.contentHeight=(0,Wr.un)(this,(e=>{var t,i,n;return null!==(n=null===(i=null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object.contentHeight)||void 0===i?void 0:i.read(e))&&void 0!==n?n:this.viewModel.lastTemplateData.read(e).contentHeight})),this.maxScroll=(0,Wr.un)(this,(e=>{var t,i;return null!==(i=null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object.maxScroll.read(e))&&void 0!==i?i:{maxScroll:0,scrollWidth:0}})),this.template=(0,Wr.un)(this,(e=>{var t;return null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object})),this._isHidden=(0,Wr.FY)(this,!1),this._register((0,Wr.fm)((e=>{var t;const i=this._scrollLeft.read(e);null===(t=this._templateRef.read(e))||void 0===t||t.object.setScrollLeft(i)}))),this._register((0,Wr.fm)((e=>{const t=this._templateRef.read(e);if(!t)return;if(!this._isHidden.read(e))return;t.object.isFocused.read(e)||this._clear()})))}dispose(){this._clear(),super.dispose()}toString(){var e;return`VirtualViewItem(${null===(e=this.viewModel.entry.value.modified)||void 0===e?void 0:e.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){var i;this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const n=this.viewModel.lastTemplateData.get(),s=null===(i=e.selections)||void 0===i?void 0:i.map(Kr.L.liftSelection);this.viewModel.lastTemplateData.set({...n,selections:s},t);const o=this._templateRef.get();o&&s&&o.object.editor.setSelections(s)}_updateTemplateData(e){var t;const i=this._templateRef.get();i&&this.viewModel.lastTemplateData.set({contentHeight:i.object.contentHeight.get(),selections:null!==(t=i.object.editor.getSelections())&&void 0!==t?t:void 0},e)}_clear(){const e=this._templateRef.get();e&&(0,zr.Rn)((t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)}))}hide(){this._isHidden.set(!0,void 0)}render(e,t,i,n){this._isHidden.set(!1,void 0);let s=this._templateRef.get();if(!s){s=this._objectPool.getUnusedObj(new Zr(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(s,void 0);const e=this.viewModel.lastTemplateData.get().selections;e&&s.object.editor.setSelections(e)}s.object.render(e,i,t,n)}}(0,nt.x1A)("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},(0,De.kg)("multiDiffEditor.headerBackground","The background color of the diff editor's header")),(0,nt.x1A)("multiDiffEditor.background",{dark:"editorBackground",light:"editorBackground",hcDark:"editorBackground",hcLight:"editorBackground"},(0,De.kg)("multiDiffEditor.background","The background color of the multi file diff editor")),(0,nt.x1A)("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},(0,De.kg)("multiDiffEditor.border","The border color of the multi file diff editor"));var oa=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ra=function(e,t){return function(i,n){t(i,n,e)}};let aa=class extends l.jG{constructor(e,t,i){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=i,this._dimension=(0,Wr.FY)(this,void 0),this._viewModel=(0,Wr.FY)(this,void 0),this._widgetImpl=(0,Wr.rm)(this,((e,t)=>((0,Vr.b6)(Xr,e),t.add(this._instantiationService.createInstance((0,Vr.b6)(na,e),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory))))),this._register((0,Wr.OI)(this._widgetImpl))}};function la(e,t,i){return Dr.initialize(i||{}).createInstance(Or,e,t)}function da(e){return Dr.get(g.T).onCodeEditorAdd((t=>{e(t)}))}function ha(e){return Dr.get(g.T).onDiffEditorAdd((t=>{e(t)}))}function ca(){return Dr.get(g.T).listCodeEditors()}function ua(){return Dr.get(g.T).listDiffEditors()}function ga(e,t,i){return Dr.initialize(i||{}).createInstance(Pr,e,t)}function pa(e,t){const i=Dr.initialize(t||{});return new aa(e,{},i)}function ma(e){if("string"!==typeof e.id||"function"!==typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return Ut.w.registerCommand(e.id,e.run)}function fa(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=ge.M$.deserialize(e.precondition),i=new l.Cm;if(i.add(Ut.w.registerCommand(e.id,((i,...n)=>u.DX.runEditorCommand(i,n,t,((t,i,n)=>Promise.resolve(e.run(i,...n))))))),e.contextMenuGroupId){const n={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add(zi.ZG.appendMenuItem(zi.D8.EditorContext,n))}if(Array.isArray(e.keybindings)){const n=Dr.get(rt.b);if(n instanceof fr){const s=ge.M$.and(t,ge.M$.deserialize(e.keybindingContext));i.add(n.addDynamicKeybindings(e.keybindings.map((t=>({keybinding:t,command:e.id,when:s})))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return i}function _a(e){return va([e])}function va(e){const t=Dr.get(rt.b);return t instanceof fr?t.addDynamicKeybindings(e.map((e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:ge.M$.deserialize(e.when)})))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),l.jG.None)}function ba(e,t,i){const n=Dr.get(y.L),s=n.getLanguageIdByMimeType(t)||t;return Fr(Dr.get(L.S),n,e,s,i)}function Ca(e,t){const i=Dr.get(y.L),n=i.getLanguageIdByMimeType(t)||t||S.vH;e.setLanguage(i.createById(n))}function ya(e,t,i){if(e){Dr.get(kn.DR).changeOne(t,e.uri,i)}}function wa(e){Dr.get(kn.DR).changeAll(e,[])}function Sa(e){return Dr.get(kn.DR).read(e)}function ka(e){return Dr.get(kn.DR).onMarkerChanged(e)}function xa(e){return Dr.get(L.S).getModel(e)}function La(){return Dr.get(L.S).getModels()}function Da(e){return Dr.get(L.S).onModelAdded(e)}function Ea(e){return Dr.get(L.S).onModelRemoved(e)}function Na(e){return Dr.get(L.S).onModelLanguageChanged((t=>{e({model:t.model,oldLanguage:t.oldLanguageId})}))}function Ta(e){return function(e,t,i){return new f(e,t,i)}(Dr.get(L.S),Dr.get(w.JZ),e)}function Ia(e,t){const i=Dr.get(y.L),n=Dr.get(go.L);return te.colorizeElement(n,i,e,t).then((()=>{n.registerEditorContainer(e)}))}function Ma(e,t,i){const n=Dr.get(y.L);return Dr.get(go.L).registerEditorContainer(a.G.document.body),te.colorize(n,e,t,i)}function Aa(e,t,i=4){return Dr.get(go.L).registerEditorContainer(a.G.document.body),te.colorizeModelLine(e,t,i)}function Ra(e,t){C.dG.getOrCreate(t);const i=function(e){const t=C.dG.get(e);return t||{getInitialState:()=>k.r3,tokenize:(t,i,n)=>(0,k.$H)(e,n)}}(t),n=(0,d.uz)(e),s=[];let o=i.getInitialState();for(let r=0,a=n.length;r<a;r++){const e=n[r],t=i.tokenize(e,!0,o);s[r]=t.tokens,o=t.endState}return s}function Oa(e,t){Dr.get(go.L).defineTheme(e,t)}function Pa(e){Dr.get(go.L).setTheme(e)}function Fa(){c.T.clearAllFontInfos()}function Ba(e,t){return Ut.w.registerCommand({id:e,handler:t})}function Wa(e){return Dr.get(dt.C).registerOpener({open:async t=>("string"===typeof t&&(t=h.r.parse(t)),e.open(t))})}function Va(e){return Dr.get(g.T).registerCodeEditorOpenHandler((async(t,i,n)=>{var s;if(!i)return null;const o=null===(s=t.options)||void 0===s?void 0:s.selection;let r;return o&&"number"===typeof o.endLineNumber&&"number"===typeof o.endColumn?r=o:o&&(r={lineNumber:o.startLineNumber,column:o.startColumn}),await e.openCodeEditor(i,t.resource,r)?i:null}))}aa=oa([ra(2,be._Y)],aa);var Ha=i(47661);function za(e,t){return"boolean"===typeof e?e:t}function ja(e,t){return"string"===typeof e?e:t}function Ua(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const i=function(e){const t={};for(const i of e)t[i]=!0;return t}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function Ka(e,t,i){t=t.replace(/@@/g,"\x01");let n,s=0;do{n=!1,t=t.replace(/@(\w+)/g,(function(i,s){n=!0;let o="";if("string"===typeof e[s])o=e[s];else{if(!(e[s]&&e[s]instanceof RegExp))throw void 0===e[s]?B(e,"language definition does not contain attribute '"+s+"', used at: "+t):B(e,"attribute reference '"+s+"' must be a string, used at: "+t);o=e[s].source}return O(o)?"":"(?:"+o+")"})),s++}while(n&&s<5);t=t.replace(/\x01/g,"@");const o=(e.ignoreCase?"i":"")+(e.unicode?"u":"");if(i){if(t.match(/\$[sS](\d\d?)/g)){let i=null,n=null;return s=>(n&&i===s||(i=s,n=new RegExp(function(e,t,i){let n=null;return t.replace(/\$[sS](\d\d?)/g,(function(t,s){return null===n&&(n=i.split("."),n.unshift(i)),!O(s)&&s<n.length?P(e,n[s]):""}))}(e,t,s),o)),n)}}return new RegExp(t,o)}function Ga(e,t,i,n){let s=-1,o=i,r=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);r&&(r[3]&&(s=parseInt(r[3]),r[2]&&(s+=100)),o=r[4]);let a,l="~",d=o;if(o&&0!==o.length?/^\w*$/.test(d)?l="==":(r=o.match(/^(@|!@|~|!~|==|!=)(.*)$/),r&&(l=r[1],d=r[2])):(l="!=",d=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(d))if("@"===l||"!@"===l){const i=e[d];if(!i)throw B(e,"the @ match target '"+d+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const i of t)if(!e(i))return!1;return!0}((function(e){return"string"===typeof e}),i))throw B(e,"the @ match target '"+d+"' must be an array of strings, in rule: "+t);const n=Ua(i,e.ignoreCase);a=function(e){return"@"===l?n(e):!n(e)}}else if("~"===l||"!~"===l)if(d.indexOf("$")<0){const t=Ka(e,"^"+d+"$",!1);a=function(e){return"~"===l?t.test(e):!t.test(e)}}else a=function(t,i,n,s){return Ka(e,"^"+W(e,d,i,n,s)+"$",!1).test(t)};else if(d.indexOf("$")<0){const t=P(e,d);a=function(e){return"=="===l?e===t:e!==t}}else{const t=P(e,d);a=function(i,n,s,o,r){const a=W(e,t,n,s,o);return"=="===l?i===a:i!==a}}else{const t=Ua(d.split("|"),e.ignoreCase);a=function(e){return"~"===l?t(e):!t(e)}}return-1===s?{name:i,value:n,test:function(e,t,i,n){return a(e,e,t,i,n)}}:{name:i,value:n,test:function(e,t,i,n){const o=function(e,t,i,n){if(n<0)return e;if(n<t.length)return t[n];if(n>=100){n-=100;const e=i.split(".");if(e.unshift(i),n<e.length)return e[n]}return null}(e,t,i,s);return a(o||"",e,t,i,n)}}}function $a(e,t,i){if(i){if("string"===typeof i)return i;if(i.token||""===i.token){if("string"!==typeof i.token)throw B(e,"a 'token' attribute must be of type string, in rule: "+t);{const n={token:i.token};if(i.token.indexOf("$")>=0&&(n.tokenSubst=!0),"string"===typeof i.bracket)if("@open"===i.bracket)n.bracket=1;else{if("@close"!==i.bracket)throw B(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);n.bracket=-1}if(i.next){if("string"!==typeof i.next)throw B(e,"the next state must be a string value in rule: "+t);{let s=i.next;if(!/^(@pop|@push|@popall)$/.test(s)&&("@"===s[0]&&(s=s.substr(1)),s.indexOf("$")<0&&!function(e,t){let i=t;for(;i&&i.length>0;){if(e.stateNames[i])return!0;const t=i.lastIndexOf(".");i=t<0?null:i.substr(0,t)}return!1}(e,W(e,s,"",[],""))))throw B(e,"the next state '"+i.next+"' is not defined in rule: "+t);n.next=s}}return"number"===typeof i.goBack&&(n.goBack=i.goBack),"string"===typeof i.switchTo&&(n.switchTo=i.switchTo),"string"===typeof i.log&&(n.log=i.log),"string"===typeof i.nextEmbedded&&(n.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),n}}if(Array.isArray(i)){const n=[];for(let s=0,o=i.length;s<o;s++)n[s]=$a(e,t,i[s]);return{group:n}}if(i.cases){const n=[];for(const o in i.cases)if(i.cases.hasOwnProperty(o)){const s=$a(e,t,i.cases[o]);"@default"===o||"@"===o||""===o?n.push({test:void 0,value:s,name:o}):"@eos"===o?n.push({test:function(e,t,i,n){return n},value:s,name:o}):n.push(Ga(e,t,o,s))}const s=e.defaultToken;return{test:function(e,t,i,o){for(const s of n){if(!s.test||s.test(e,t,i,o))return s.value}return s}}}throw B(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}class qa{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let i;if("string"===typeof t)i=t;else{if(!(t instanceof RegExp))throw B(e,"rules must start with a match string or regular expression: "+this.name);i=t.source}this.matchOnlyAtLineStart=i.length>0&&"^"===i[0],this.name=this.name+": "+i,this.regex=Ka(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")",!0)}setAction(e,t){this.action=$a(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}function Qa(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");const i={};i.languageId=e,i.includeLF=za(t.includeLF,!1),i.noThrow=!1,i.maxStack=100,i.start="string"===typeof t.start?t.start:null,i.ignoreCase=za(t.ignoreCase,!1),i.unicode=za(t.unicode,!1),i.tokenPostfix=ja(t.tokenPostfix,"."+i.languageId),i.defaultToken=ja(t.defaultToken,"source"),i.usesEmbedded=!1;const n=t;function s(e,o,r){for(const a of r){let r=a.include;if(r){if("string"!==typeof r)throw B(i,"an 'include' attribute must be a string at: "+e);if("@"===r[0]&&(r=r.substr(1)),!t.tokenizer[r])throw B(i,"include target '"+r+"' is not defined at: "+e);s(e+"."+r,o,t.tokenizer[r])}else{const t=new qa(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(n,a[0]),a.length>=3)if("string"===typeof a[1])t.setAction(n,{token:a[1],next:a[2]});else{if("object"!==typeof a[1])throw B(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=a[1];e.next=a[2],t.setAction(n,e)}}else t.setAction(n,a[1]);else{if(!a.regex)throw B(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"===typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=za(a.matchOnlyAtLineStart,!1)),t.setRegex(n,a.regex),t.setAction(n,a.action)}o.push(t)}}}if(n.languageId=e,n.includeLF=i.includeLF,n.ignoreCase=i.ignoreCase,n.unicode=i.unicode,n.noThrow=i.noThrow,n.usesEmbedded=i.usesEmbedded,n.stateNames=t.tokenizer,n.defaultToken=i.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw B(i,"a language definition must define the 'tokenizer' attribute as an object");i.tokenizer=[];for(const r in t.tokenizer)if(t.tokenizer.hasOwnProperty(r)){i.start||(i.start=r);const e=t.tokenizer[r];i.tokenizer[r]=new Array,s("tokenizer."+r,i.tokenizer[r],e)}if(i.usesEmbedded=n.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw B(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const o=[];for(const r of t.brackets){let e=r;if(e&&Array.isArray(e)&&3===e.length&&(e={token:e[2],open:e[0],close:e[1]}),e.open===e.close)throw B(i,"open and close brackets in a 'brackets' attribute must be different: "+e.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof e.open||"string"!==typeof e.token||"string"!==typeof e.close)throw B(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");o.push({token:e.token+i.tokenPostfix,open:P(i,e.open),close:P(i,e.close)})}return i.brackets=o,i.noThrow=!0,i}function Ya(e){S.W6.registerLanguage(e)}function Za(){let e=[];return e=e.concat(S.W6.getLanguages()),e}function Xa(e){return Dr.get(y.L).languageIdCodec.encodeLanguageId(e)}function Ja(e,t){return Dr.withServices((()=>{const i=Dr.get(y.L).onDidRequestRichLanguageFeatures((n=>{n===e&&(i.dispose(),t())}));return i}))}function el(e,t){return Dr.withServices((()=>{const i=Dr.get(y.L).onDidRequestBasicLanguageFeatures((n=>{n===e&&(i.dispose(),t())}));return i}))}function tl(e,t){if(!Dr.get(y.L).isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);return Dr.get(w.JZ).register(e,t,100)}class il{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if("function"===typeof this._actual.tokenize)return nl.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new C.rY(n.tokens,n.endState)}}class nl{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let s=0,o=e.length;s<o;s++){const o=e[s];let r=o.startIndex;0===s?r=0:r<n&&(r=n),i[s]=new C.ou(r,o.scopes,t),n=r}return i}static adaptTokenize(e,t,i,n){const s=t.tokenize(i,n),o=nl._toClassicTokens(s.tokens,e);let r;return r=s.endState.equals(n)?n:s.endState,new C.$M(o,r)}tokenize(e,t,i){return nl.adaptTokenize(this._languageId,this._actual,e,i)}_toBinaryTokens(e,t){const i=e.encodeLanguageId(this._languageId),n=this._standaloneThemeService.getColorTheme().tokenTheme,s=[];let o=0,r=0;for(let l=0,d=t.length;l<d;l++){const e=t[l],a=1024|n.match(i,e.scopes);if(o>0&&s[o-1]===a)continue;let d=e.startIndex;0===l?d=0:d<r&&(d=r),s[o++]=d,s[o++]=a,r=d}const a=new Uint32Array(o);for(let l=0;l<o;l++)a[l]=s[l];return a}tokenizeEncoded(e,t,i){const n=this._actual.tokenize(e,i),s=this._toBinaryTokens(this._languageService.languageIdCodec,n.tokens);let o;return o=n.endState.equals(i)?i:n.endState,new C.rY(s,o)}}function sl(e){return e&&"function"===typeof e.then}function ol(e){const t=Dr.get(go.L);if(e){const i=[null];for(let t=1,n=e.length;t<n;t++)i[t]=Ha.Q1.fromHex(e[t]);t.setColorMapOverride(i)}else t.setColorMapOverride(null)}function rl(e,t){return function(e){return"tokenizeEncoded"in e}(t)?new il(e,t):new nl(e,t,Dr.get(y.L),Dr.get(go.L))}function al(e,t){const i=new C.v_((async()=>{const i=await Promise.resolve(t.create());return i?"function"===typeof i.getInitialState?rl(e,i):new X(Dr.get(y.L),Dr.get(go.L),e,Qa(e,i),Dr.get(z.pG)):null}));return C.dG.registerFactory(e,i)}function ll(e,t){if(!Dr.get(y.L).isRegisteredLanguageId(e))throw new Error(`Cannot set tokens provider for unknown language ${e}`);return sl(t)?al(e,{create:()=>t}):C.dG.register(e,rl(e,t))}function dl(e,t){return sl(t)?al(e,{create:()=>t}):C.dG.register(e,(t=>new X(Dr.get(y.L),Dr.get(go.L),e,Qa(e,t),Dr.get(z.pG)))(t))}function hl(e,t){return Dr.get(it.u).referenceProvider.register(e,t)}function cl(e,t){return Dr.get(it.u).renameProvider.register(e,t)}function ul(e,t){return Dr.get(it.u).newSymbolNamesProvider.register(e,t)}function gl(e,t){return Dr.get(it.u).signatureHelpProvider.register(e,t)}function pl(e,t){return Dr.get(it.u).hoverProvider.register(e,{provideHover:(e,i,n)=>{const s=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,n)).then((e=>{if(e)return!e.range&&s&&(e.range=new Ht.Q(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn)),e.range||(e.range=new Ht.Q(i.lineNumber,i.column,i.lineNumber,i.column)),e}))}})}function ml(e,t){return Dr.get(it.u).documentSymbolProvider.register(e,t)}function fl(e,t){return Dr.get(it.u).documentHighlightProvider.register(e,t)}function _l(e,t){return Dr.get(it.u).linkedEditingRangeProvider.register(e,t)}function vl(e,t){return Dr.get(it.u).definitionProvider.register(e,t)}function bl(e,t){return Dr.get(it.u).implementationProvider.register(e,t)}function Cl(e,t){return Dr.get(it.u).typeDefinitionProvider.register(e,t)}function yl(e,t){return Dr.get(it.u).codeLensProvider.register(e,t)}function wl(e,t,i){return Dr.get(it.u).codeActionProvider.register(e,{providedCodeActionKinds:null===i||void 0===i?void 0:i.providedCodeActionKinds,documentation:null===i||void 0===i?void 0:i.documentation,provideCodeActions:(e,i,n,s)=>{const o=Dr.get(kn.DR).read({resource:e.uri}).filter((e=>Ht.Q.areIntersectingOrTouching(e,i)));return t.provideCodeActions(e,i,{markers:o,only:n.only,trigger:n.trigger},s)},resolveCodeAction:t.resolveCodeAction})}function Sl(e,t){return Dr.get(it.u).documentFormattingEditProvider.register(e,t)}function kl(e,t){return Dr.get(it.u).documentRangeFormattingEditProvider.register(e,t)}function xl(e,t){return Dr.get(it.u).onTypeFormattingEditProvider.register(e,t)}function Ll(e,t){return Dr.get(it.u).linkProvider.register(e,t)}function Dl(e,t){return Dr.get(it.u).completionProvider.register(e,t)}function El(e,t){return Dr.get(it.u).colorProvider.register(e,t)}function Nl(e,t){return Dr.get(it.u).foldingRangeProvider.register(e,t)}function Tl(e,t){return Dr.get(it.u).declarationProvider.register(e,t)}function Il(e,t){return Dr.get(it.u).selectionRangeProvider.register(e,t)}function Ml(e,t){return Dr.get(it.u).documentSemanticTokensProvider.register(e,t)}function Al(e,t){return Dr.get(it.u).documentRangeSemanticTokensProvider.register(e,t)}function Rl(e,t){return Dr.get(it.u).inlineCompletionsProvider.register(e,t)}function Ol(e,t){return Dr.get(it.u).inlineEditProvider.register(e,t)}function Pl(e,t){return Dr.get(it.u).inlayHintsProvider.register(e,t)}var Fl=i(49079);o.qB.wrappingIndent.defaultValue=0,o.qB.glyphMargin.defaultValue=!1,o.qB.autoIndent.defaultValue=3,o.qB.overviewRulerLanes.defaultValue=2,Fl.Pj.setFormatterSelector(((e,t,i)=>Promise.resolve(e[0])));const Bl=(0,r.r)();Bl.editor={create:la,getEditors:ca,getDiffEditors:ua,onDidCreateEditor:da,onDidCreateDiffEditor:ha,createDiffEditor:ga,addCommand:ma,addEditorAction:fa,addKeybindingRule:_a,addKeybindingRules:va,createModel:ba,setModelLanguage:Ca,setModelMarkers:ya,getModelMarkers:Sa,removeAllMarkers:wa,onDidChangeMarkers:ka,getModels:La,getModel:xa,onDidCreateModel:Da,onWillDisposeModel:Ea,onDidChangeModelLanguage:Na,createWebWorker:Ta,colorizeElement:Ia,colorize:Ma,colorizeModelLine:Aa,tokenize:Ra,defineTheme:Oa,setTheme:Pa,remeasureFonts:Fa,registerCommand:Ba,registerLinkOpener:Wa,registerEditorOpener:Va,AccessibilitySupport:D.Gn,ContentWidgetPositionPreference:D.Qj,CursorChangeReason:D.h5,DefaultEndOfLine:D.of,EditorAutoIndentStrategy:D.e0,EditorOption:D.p2,EndOfLinePreference:D.kf,EndOfLineSequence:D.WU,MinimapPosition:D.R3,MinimapSectionHeaderStyle:D.VX,MouseTargetType:D.hS,OverlayWidgetPositionPreference:D.dE,OverviewRulerLane:D.A5,GlyphMarginLane:D.ZS,RenderLineNumbersType:D.DO,RenderMinimap:D.hW,ScrollbarVisibility:D.XR,ScrollType:D.ov,TextEditorCursorBlinkingStyle:D.U7,TextEditorCursorStyle:D.m9,TrackedRangeStickiness:D.kK,WrappingIndent:D.tJ,InjectedTextCursorStops:D.VW,PositionAffinity:D.Ic,ShowLightbulbIconMode:D.jT,ConfigurationChangedEvent:o.lw,BareFontInfo:v._8,FontInfo:v.YJ,TextModelResolvedOptions:x.X2,FindMatch:x.Dg,ApplyUpdateResult:o.hZ,EditorZoom:_.D,createMultiFileDiffEditor:pa,EditorType:b._,EditorOptions:o.qB},Bl.languages={register:Ya,getLanguages:Za,onLanguage:Ja,onLanguageEncountered:el,getEncodedLanguageId:Xa,setLanguageConfiguration:tl,setColorMap:ol,registerTokensProviderFactory:al,setTokensProvider:ll,setMonarchTokensProvider:dl,registerReferenceProvider:hl,registerRenameProvider:cl,registerNewSymbolNameProvider:ul,registerCompletionItemProvider:Dl,registerSignatureHelpProvider:gl,registerHoverProvider:pl,registerDocumentSymbolProvider:ml,registerDocumentHighlightProvider:fl,registerLinkedEditingRangeProvider:_l,registerDefinitionProvider:vl,registerImplementationProvider:bl,registerTypeDefinitionProvider:Cl,registerCodeLensProvider:yl,registerCodeActionProvider:wl,registerDocumentFormattingEditProvider:Sl,registerDocumentRangeFormattingEditProvider:kl,registerOnTypeFormattingEditProvider:xl,registerLinkProvider:Ll,registerColorProvider:El,registerFoldingRangeProvider:Nl,registerDeclarationProvider:Tl,registerSelectionRangeProvider:Il,registerDocumentSemanticTokensProvider:Ml,registerDocumentRangeSemanticTokensProvider:Al,registerInlineCompletionsProvider:Rl,registerInlineEditProvider:Ol,registerInlayHintsProvider:Pl,DocumentHighlightKind:D.Kb,CompletionItemKind:D.Io,CompletionItemTag:D.QP,CompletionItemInsertTextRule:D._E,SymbolKind:D.v0,SymbolTag:D.H_,IndentAction:D.l,CompletionTriggerKind:D.t7,SignatureHelpTriggerKind:D.WA,InlayHintKind:D.r4,InlineCompletionTriggerKind:D.qw,InlineEditTriggerKind:D.sm,CodeActionTriggerType:D.ok,NewSymbolNameTag:D.OV,PartialAcceptTriggerKind:D.Ah,FoldingRangeKind:C.lO,SelectedSuggestionInfo:C.GE};const Wl=Bl.CancellationTokenSource,Vl=Bl.Emitter,Hl=Bl.KeyCode,zl=Bl.KeyMod,jl=Bl.Position,Ul=Bl.Range,Kl=Bl.Selection,Gl=Bl.SelectionDirection,$l=Bl.MarkerSeverity,ql=Bl.MarkerTag,Ql=Bl.Uri,Yl=Bl.Token,Zl=Bl.editor,Xl=Bl.languages,Jl=globalThis.MonacoEnvironment;((null===Jl||void 0===Jl?void 0:Jl.globalAPI)||"function"===typeof define&&i.amdO)&&(globalThis.monaco=Bl),"undefined"!==typeof globalThis.require&&"function"===typeof globalThis.require.config&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var ed;i(61562),i(94318),i(23304),i(59896),i(75208),i(51232),i(77888),i(46686),i(27020),i(15600),i(80200),i(87152),i(11272),i(60352),i(66235),i(31474),i(84840),i(17184),i(74304),i(74800),i(37954),i(25922),i(46648),i(61082),i(19856),i(97884),i(89518),i(83488),i(3254),i(57680),i(99669),i(796),i(89336),i(19436),i(40340),i(52894),i(86492),i(73374),i(38320),i(92080),i(57664),i(8868),i(31396),i(18544),i(538),i(25064),i(64256),i(32624),i(97360),i(42776),i(97144),i(46304),i(58820),i(82560),i(74276),i(39866),i(73020),i(71316),i(70492),i(50848),i(59520),i(46576),i(49150),i(33358),i(96716),i(28304),i(14720),i(27734),i(2068),i(71468),i(15482),i(42572),i(77668),i(36e3),i(10072),i(48448),i(51376),i(61764),i(85872),i(24152),i(22362),i(98408),i(61472),i(50576),i(23934);self.MonacoEnvironment=(ed={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var n=i.p,s=(n?n.replace(/\/$/,"")+"/":"")+ed[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(s)){var o=String(window.location),r=o.substr(0,o.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(s.substring(0,r.length)!==r){/^(\/\/)/.test(s)&&(s=window.location.protocol+s);var a=new Blob(["/*"+t+'*/importScripts("'+s+'");'],{type:"application/javascript"});return URL.createObjectURL(a)}}return s}});const td=n},60413:(e,t,i)=>{"use strict";i.d(t,{Dy:()=>o,H8:()=>h,Qu:()=>m,Tc:()=>d,c8:()=>u,gm:()=>l,m0:()=>g,nr:()=>c,pR:()=>r});var n=i(25893);class s{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){var t;return null!==(t=this.mapWindowIdToZoomFactor.get(this.getWindowId(e)))&&void 0!==t?t:1}getWindowId(e){return e.vscodeWindowId}}function o(e,t,i){"string"===typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i)}function r(e){return s.INSTANCE.getZoomFactor(e)}s.INSTANCE=new s;const a=navigator.userAgent,l=a.indexOf("Firefox")>=0,d=a.indexOf("AppleWebKit")>=0,h=a.indexOf("Chrome")>=0,c=!h&&a.indexOf("Safari")>=0,u=!h&&!c&&d,g=(a.indexOf("Electron/"),a.indexOf("Android")>=0);let p=!1;if("function"===typeof n.G.matchMedia){const e=n.G.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=n.G.matchMedia("(display-mode: fullscreen)");p=e.matches,o(n.G,e,(({matches:e})=>{p&&t.matches||(p=e)}))}function m(){return p}},55089:(e,t,i)=>{"use strict";i.d(t,{e:()=>r});var n=i(60413),s=i(25893),o=i(98067);const r={clipboard:{writeText:o.ib||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:o.ib||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:o.ib||n.Qu()?0:navigator.keyboard||n.nr?1:2,touch:"ontouchstart"in s.G||navigator.maxTouchPoints>0,pointerEvents:s.G.PointerEvent&&("ontouchstart"in s.G||navigator.maxTouchPoints>0)}},42731:(e,t,i)=>{"use strict";i.d(t,{t:()=>n});const n={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:i(44320).K.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},8597:(e,t,i)=>{"use strict";i.d(t,{$:()=>Oe,BC:()=>Ne,BK:()=>K,Be:()=>F,Bx:()=>ye,CE:()=>Ve,Cl:()=>ee,Di:()=>$e,Ej:()=>U,Er:()=>be,Fv:()=>L,H4:()=>Q,Hs:()=>Te,Ij:()=>R,Iv:()=>k,L9:()=>W,Ln:()=>Ie,OK:()=>Y,Oq:()=>O,PG:()=>P,Pl:()=>Ee,Q2:()=>y,QX:()=>Z,TT:()=>Ge,Tf:()=>ze,Tr:()=>$,U2:()=>_e,U3:()=>A,WU:()=>Fe,Wt:()=>fe,X7:()=>ne,XD:()=>X,Xc:()=>M,ZF:()=>w,a:()=>oe,a4:()=>Ke,b2:()=>I,bo:()=>Pe,bq:()=>ie,cL:()=>j,fg:()=>z,fs:()=>Se,fz:()=>re,gI:()=>Ue,h:()=>Ye,i0:()=>He,jD:()=>Be,jG:()=>te,jh:()=>le,ko:()=>N,kx:()=>Ce,li:()=>he,mU:()=>G,nR:()=>se,pN:()=>qe,q3:()=>x,sd:()=>we,tG:()=>V,vT:()=>We,w5:()=>De,w_:()=>D,wk:()=>xe,y6:()=>q,yt:()=>je,zK:()=>ke,zk:()=>_});var n=i(60413),s=i(55089),o=i(72962),r=i(47358),a=i(90766),l=i(64383),d=i(41234),h=i(83750),c=i(5662),u=i(36456),g=i(98067),p=i(85600),m=i(25893);const{registerWindow:f,getWindow:_,getDocument:v,getWindows:b,getWindowsCount:C,getWindowId:y,getWindowById:w,hasWindow:S,onDidRegisterWindow:k,onWillUnregisterWindow:x,onDidUnregisterWindow:L}=function(){const e=new Map;(0,m.y)(m.G,1);const t={window:m.G,disposables:new c.Cm};e.set(m.G.vscodeWindowId,t);const i=new d.vl,n=new d.vl,s=new d.vl;return{onDidRegisterWindow:i.event,onWillUnregisterWindow:s.event,onDidUnregisterWindow:n.event,registerWindow(t){if(e.has(t.vscodeWindowId))return c.jG.None;const o=new c.Cm,r={window:t,disposables:o.add(new c.Cm)};return e.set(t.vscodeWindowId,r),o.add((0,c.s)((()=>{e.delete(t.vscodeWindowId),n.fire(t)}))),o.add(N(t,ye.BEFORE_UNLOAD,(()=>{s.fire(t)}))),i.fire(r),o},getWindows:()=>e.values(),getWindowsCount:()=>e.size,getWindowId:e=>e.vscodeWindowId,hasWindow:t=>e.has(t),getWindowById:function(i,n){const s="number"===typeof i?e.get(i):void 0;return null!==s&&void 0!==s?s:n?t:void 0},getWindow(e){var t;const i=e;if(null===(t=null===i||void 0===i?void 0:i.ownerDocument)||void 0===t?void 0:t.defaultView)return i.ownerDocument.defaultView.window;const n=e;return(null===n||void 0===n?void 0:n.view)?n.view.window:m.G},getDocument:e=>_(e).document}}();function D(e){for(;e.firstChild;)e.firstChild.remove()}class E{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function N(e,t,i,n){return new E(e,t,i,n)}function T(e,t){return function(i){return t(new r.P(e,i))}}const I=function(e,t,i,n){let s=i;return"click"===t||"mousedown"===t?s=T(_(e),i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(s=function(e){return function(t){return e(new o.Z(t))}}(i)),N(e,t,s,n)},M=function(e,t,i){return function(e,t,i){return N(e,g.un&&s.e.pointerEvents?ye.POINTER_DOWN:ye.MOUSE_DOWN,t,i)}(e,T(_(e),t),i)};function A(e,t,i){return(0,a.b7)(e,t,i)}class R extends a.A0{constructor(e,t){super(e,t)}}let O,P;class F extends a.vb{constructor(e){super(),this.defaultTarget=e&&_(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,null!==i&&void 0!==i?i:this.defaultTarget)}}class B{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,l.dz)(e)}}static sort(e,t){return t.priority-e.priority}}function W(e){return _(e).getComputedStyle(e,null)}function V(e,t){const i=_(e),n=i.document;if(e!==n.body)return new z(e.clientWidth,e.clientHeight);if(g.un&&(null===i||void 0===i?void 0:i.visualViewport))return new z(i.visualViewport.width,i.visualViewport.height);if((null===i||void 0===i?void 0:i.innerWidth)&&i.innerHeight)return new z(i.innerWidth,i.innerHeight);if(n.body&&n.body.clientWidth&&n.body.clientHeight)return new z(n.body.clientWidth,n.body.clientHeight);if(n.documentElement&&n.documentElement.clientWidth&&n.documentElement.clientHeight)return new z(n.documentElement.clientWidth,n.documentElement.clientHeight);if(t)return V(t);throw new Error("Unable to figure out browser width and height")}!function(){const e=new Map,t=new Map,i=new Map,n=new Map;P=(s,o,r=0)=>{const a=y(s),l=new B(o,r);let d=e.get(a);return d||(d=[],e.set(a,d)),d.push(l),i.get(a)||(i.set(a,!0),s.requestAnimationFrame((()=>(s=>{var o;i.set(s,!1);const r=null!==(o=e.get(s))&&void 0!==o?o:[];for(t.set(s,r),e.set(s,[]),n.set(s,!0);r.length>0;)r.sort(B.sort),r.shift().execute();n.set(s,!1)})(a)))),l},O=(e,i,s)=>{const o=y(e);if(n.get(o)){const e=new B(i,s);let n=t.get(o);return n||(n=[],t.set(o,n)),n.push(e),e}return P(e,i,s)}}();class H{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const n=W(e),s=n?n.getPropertyValue(t):"0";return H.convertToPixels(e,s)}static getBorderLeftWidth(e){return H.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return H.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return H.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return H.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return H.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return H.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return H.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return H.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return H.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return H.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return H.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return H.getDimension(e,"margin-bottom","marginBottom")}}class z{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new z(e,t):this}static is(e){return"object"===typeof e&&"number"===typeof e.height&&"number"===typeof e.width}static lift(e){return e instanceof z?e:new z(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function j(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;const s=J(e)?null:W(e);s&&(n-="rtl"!==s.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=H.getBorderLeftWidth(e),i+=H.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function U(e,t,i){"number"===typeof t&&(e.style.width=`${t}px`),"number"===typeof i&&(e.style.height=`${i}px`)}function K(e){const t=e.getBoundingClientRect(),i=_(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function G(e){let t=e,i=1;do{const e=W(t).zoom;null!==e&&void 0!==e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function $(e){const t=H.getMarginLeft(e)+H.getMarginRight(e);return e.offsetWidth+t}function q(e){const t=H.getBorderLeftWidth(e)+H.getBorderRightWidth(e),i=H.getPaddingLeft(e)+H.getPaddingRight(e);return e.offsetWidth-t-i}function Q(e){const t=H.getBorderTopWidth(e)+H.getBorderBottomWidth(e),i=H.getPaddingTop(e)+H.getPaddingBottom(e);return e.offsetHeight-t-i}function Y(e){const t=H.getMarginTop(e)+H.getMarginBottom(e);return e.offsetHeight+t}function Z(e,t){return Boolean(null===t||void 0===t?void 0:t.contains(e))}function X(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"===typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}(e,t,i)}function J(e){return e&&!!e.host&&!!e.mode}function ee(e){return!!te(e)}function te(e){for(var t;e.parentNode;){if(e===(null===(t=e.ownerDocument)||void 0===t?void 0:t.body))return null;e=e.parentNode}return J(e)?e:null}function ie(){let e=oe().activeElement;for(;null===e||void 0===e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function ne(e){return ie()===e}function se(e){return Z(ie(),e)}function oe(){var e;if(C()<=1)return m.G.document;return null!==(e=Array.from(b()).map((({window:e})=>e.document)).find((e=>e.hasFocus())))&&void 0!==e?e:m.G.document}function re(){var e,t;return null!==(t=null===(e=oe().defaultView)||void 0===e?void 0:e.window)&&void 0!==t?t:m.G}z.None=new z(0,0);const ae=new Map;function le(){return new de}class de{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=he(m.G.document.head,(t=>t.innerText=e)))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function he(e=m.G.document.head,t,i){const n=document.createElement("style");if(n.type="text/css",n.media="screen",null===t||void 0===t||t(n),e.appendChild(n),i&&i.add((0,c.s)((()=>e.removeChild(n)))),e===m.G.document.head){const e=new Set;ae.set(n,e);for(const{window:t,disposables:s}of b()){if(t===m.G)continue;const o=s.add(ce(n,e,t));null===i||void 0===i||i.add(o)}}return n}function ce(e,t,i){var n,s;const o=new c.Cm,r=e.cloneNode(!0);i.document.head.appendChild(r),o.add((0,c.s)((()=>i.document.head.removeChild(r))));for(const a of me(e))null===(n=r.sheet)||void 0===n||n.insertRule(a.cssText,null===(s=r.sheet)||void 0===s?void 0:s.cssRules.length);return o.add(ue.observe(e,o,{childList:!0})((()=>{r.textContent=e.textContent}))),t.add(r),o.add((0,c.s)((()=>t.delete(r)))),o}const ue=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let n=this.mutationObservers.get(e);n||(n=new Map,this.mutationObservers.set(e,n));const s=(0,p.tW)(i);let o=n.get(s);if(o)o.users+=1;else{const r=new d.vl,a=new MutationObserver((e=>r.fire(e)));a.observe(e,i);const l=o={users:1,observer:a,onDidMutate:r.event};t.add((0,c.s)((()=>{l.users-=1,0===l.users&&(r.dispose(),a.disconnect(),null===n||void 0===n||n.delete(s),0===(null===n||void 0===n?void 0:n.size)&&this.mutationObservers.delete(e))}))),n.set(s,o)}return o.onDidMutate}};let ge=null;function pe(){return ge||(ge=he()),ge}function me(e){var t,i;return(null===(t=null===e||void 0===e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(i=null===e||void 0===e?void 0:e.sheet)||void 0===i?void 0:i.cssRules)?e.sheet.cssRules:[]}function fe(e,t,i=pe()){var n,s;if(i&&t){null===(n=i.sheet)||void 0===n||n.insertRule(`${e} {${t}}`,0);for(const n of null!==(s=ae.get(i))&&void 0!==s?s:[])fe(e,t,n)}}function _e(e,t=pe()){var i,n;if(!t)return;const s=me(t),o=[];for(let r=0;r<s.length;r++){const t=s[r];ve(t)&&-1!==t.selectorText.indexOf(e)&&o.push(r)}for(let r=o.length-1;r>=0;r--)null===(i=t.sheet)||void 0===i||i.deleteRule(o[r]);for(const r of null!==(n=ae.get(t))&&void 0!==n?n:[])_e(e,r)}function ve(e){return"string"===typeof e.selectorText}function be(e){return e instanceof MouseEvent||e instanceof _(e).MouseEvent}function Ce(e){return e instanceof KeyboardEvent||e instanceof _(e).KeyboardEvent}const ye={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:n.Tc?"webkitAnimationStart":"animationstart",ANIMATION_END:n.Tc?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:n.Tc?"webkitAnimationIteration":"animationiteration"};function we(e){const t=e;return!(!t||"function"!==typeof t.preventDefault||"function"!==typeof t.stopPropagation)}const Se={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function ke(e){const t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function xe(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class Le extends c.jG{static hasFocusWithin(e){if(e instanceof HTMLElement){const t=te(e);return Z(t?t.activeElement:e.ownerDocument.activeElement,e)}{const t=e;return Z(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new d.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new d.vl),this.onDidBlur=this._onDidBlur.event;let t=Le.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},s=()=>{t&&(i=!0,(e instanceof HTMLElement?_(e):e).setTimeout((()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{Le.hasFocusWithin(e)!==t&&(t?s():n())},this._register(N(e,ye.FOCUS,n,!0)),this._register(N(e,ye.BLUR,s,!0)),e instanceof HTMLElement&&(this._register(N(e,ye.FOCUS_IN,(()=>this._refreshStateHandler()))),this._register(N(e,ye.FOCUS_OUT,(()=>this._refreshStateHandler()))))}}function De(e){return new Le(e)}function Ee(e,t){return e.after(t),t}function Ne(e,...t){if(e.append(...t),1===t.length&&"string"!==typeof t[0])return t[0]}function Te(e,t){return e.insertBefore(t,e.firstChild),t}function Ie(e,...t){e.innerText="",Ne(e,...t)}const Me=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Ae;function Re(e,t,i,...n){const s=Me.exec(t);if(!s)throw new Error("Bad use of emmet");const o=s[1]||"div";let r;return r=e!==Ae.HTML?document.createElementNS(e,o):document.createElement(o),s[3]&&(r.id=s[3]),s[4]&&(r.className=s[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach((([e,t])=>{"undefined"!==typeof t&&(/^on\w+$/.test(e)?r[e]=t:"selected"===e?t&&r.setAttribute(e,"true"):r.setAttribute(e,t))})),r.append(...n),r}function Oe(e,t,...i){return Re(Ae.HTML,e,t,...i)}function Pe(e,...t){e?Fe(...t):Be(...t)}function Fe(...e){for(const t of e)t.style.display="",t.removeAttribute("aria-hidden")}function Be(...e){for(const t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function We(e,t){const i=e.devicePixelRatio*t;return Math.max(1,Math.floor(i))/e.devicePixelRatio}function Ve(e){m.G.open(e,"_blank","noopener")}function He(e,t){const i=()=>{t(),n=P(e,i)};let n=P(e,i);return(0,c.s)((()=>n.dispose()))}function ze(e){return e?`url('${u.zl.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function je(e){return`'${e.replace(/'/g,"%27")}'`}function Ue(e,t){if(void 0!==e){const i=e.match(/^\s*var\((.+)\)$/);if(i){const e=i[1].split(",",2);return 2===e.length&&(t=Ue(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}function Ke(e,t=!1){const i=document.createElement("a");return h.$w("afterSanitizeAttributes",(n=>{for(const s of["href","src"])if(n.hasAttribute(s)){const o=n.getAttribute(s);if("href"===s&&o.startsWith("#"))continue;if(i.href=o,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===s&&i.href.startsWith("data:"))continue;n.removeAttribute(s)}}})),(0,c.s)((()=>{h.SV("afterSanitizeAttributes")}))}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(Ae||(Ae={})),Oe.SVG=function(e,t,...i){return Re(Ae.SVG,e,t,...i)},u.Ez.setPreferredWebSchema(/^https:/.test(m.G.location.href)?"https":"http");const Ge=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class $e extends d.vl{constructor(){super(),this._subscriptions=new c.Cm,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(d.Jh.runAndSubscribe(k,(({window:e,disposables:t})=>this.registerListeners(e,t)),{window:m.G,disposables:this._subscriptions}))}registerListeners(e,t){t.add(N(e,"keydown",(e=>{if(e.defaultPrevented)return;const t=new o.Z(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}}),!0)),t.add(N(e,"keyup",(e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))}),!0)),t.add(N(e.document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(N(e.document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(N(e.document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),t.add(N(e,"blur",(()=>{this.resetKeyStatus()})))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return $e.instance||($e.instance=new $e),$e.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class qe extends c.jG{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(N(this.element,ye.DRAG_START,(e=>{var t,i;null===(i=(t=this.callbacks).onDragStart)||void 0===i||i.call(t,e)}))),this.callbacks.onDrag&&this._register(N(this.element,ye.DRAG,(e=>{var t,i;null===(i=(t=this.callbacks).onDrag)||void 0===i||i.call(t,e)}))),this._register(N(this.element,ye.DRAG_ENTER,(e=>{var t,i;this.counter++,this.dragStartTime=e.timeStamp,null===(i=(t=this.callbacks).onDragEnter)||void 0===i||i.call(t,e)}))),this._register(N(this.element,ye.DRAG_OVER,(e=>{var t,i;e.preventDefault(),null===(i=(t=this.callbacks).onDragOver)||void 0===i||i.call(t,e,e.timeStamp-this.dragStartTime)}))),this._register(N(this.element,ye.DRAG_LEAVE,(e=>{var t,i;this.counter--,0===this.counter&&(this.dragStartTime=0,null===(i=(t=this.callbacks).onDragLeave)||void 0===i||i.call(t,e))}))),this._register(N(this.element,ye.DRAG_END,(e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDragEnd)||void 0===i||i.call(t,e)}))),this._register(N(this.element,ye.DROP,(e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDrop)||void 0===i||i.call(t,e)})))}}const Qe=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function Ye(e,...t){let i,n;Array.isArray(t[0])?(i={},n=t[0]):(i=t[0]||{},n=t[1]);const s=Qe.exec(e);if(!s||!s.groups)throw new Error("Bad use of h");const o=s.groups.tag||"div",r=document.createElement(o);s.groups.id&&(r.id=s.groups.id);const a=[];if(s.groups.class)for(const d of s.groups.class.split("."))""!==d&&a.push(d);if(void 0!==i.className)for(const d of i.className.split("."))""!==d&&a.push(d);a.length>0&&(r.className=a.join(" "));const l={};if(s.groups.name&&(l[s.groups.name]=r),n)for(const d of n)d instanceof HTMLElement?r.appendChild(d):"string"===typeof d?r.append(d):"root"in d&&(Object.assign(l,d),r.appendChild(d.root));for(const[d,h]of Object.entries(i))if("className"!==d)if("style"===d)for(const[e,t]of Object.entries(h))r.style.setProperty(Ze(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===d?r.tabIndex=h:r.setAttribute(Ze(d),h.toString());return l.root=r,l}function Ze(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},83750:(e,t,i)=>{"use strict";i.d(t,{$w:()=>J,SV:()=>ee,aj:()=>X});const{entries:n,setPrototypeOf:s,isFrozen:o,getPrototypeOf:r,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:d,create:h}=Object,{apply:c,construct:u}="undefined"!==typeof Reflect&&Reflect;c||(c=function(e,t,i){return e.apply(t,i)}),l||(l=function(e){return e}),d||(d=function(e){return e}),u||(u=function(e,t){return new e(...t)});const g=x(Array.prototype.forEach),p=x(Array.prototype.pop),m=x(Array.prototype.push),f=x(String.prototype.toLowerCase),_=x(String.prototype.toString),v=x(String.prototype.match),b=x(String.prototype.replace),C=x(String.prototype.indexOf),y=x(String.prototype.trim),w=x(RegExp.prototype.test),S=(k=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(k,t)});var k;function x(e){return function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return c(e,t,n)}}function L(e,t,i){var n;i=null!==(n=i)&&void 0!==n?n:f,s&&s(e,null);let r=t.length;for(;r--;){let n=t[r];if("string"===typeof n){const e=i(n);e!==n&&(o(t)||(t[r]=e),n=e)}e[n]=!0}return e}function D(e){const t=h(null);for(const[i,s]of n(e))t[i]=s;return t}function E(e,t){for(;null!==e;){const i=a(e,t);if(i){if(i.get)return x(i.get);if("function"===typeof i.value)return x(i.value)}e=r(e)}return function(e){return console.warn("fallback value for",e),null}}const N=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),T=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),I=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),A=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),R=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=l(["#text"]),P=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),F=l(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=d(/<%[\w\W]*|[\w\W]*%>/gm),z=d(/\${[\w\W]*}/gm),j=d(/^data-[\-\w.\u00B7-\uFFFF]/),U=d(/^aria-[\-\w]+$/),K=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=d(/^(?:\w+script|data):/i),$=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=d(/^html$/i);var Q=Object.freeze({__proto__:null,MUSTACHE_EXPR:V,ERB_EXPR:H,TMPLIT_EXPR:z,DATA_ATTR:j,ARIA_ATTR:U,IS_ALLOWED_URI:K,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:$,DOCTYPE_NAME:q});const Y=()=>"undefined"===typeof window?null:window;var Z=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y();const i=t=>e(t);if(i.version="3.0.5",i.removed=[],!t||!t.document||9!==t.document.nodeType)return i.isSupported=!1,i;const s=t.document,o=s.currentScript;let{document:r}=t;const{DocumentFragment:a,HTMLTemplateElement:d,Node:h,Element:c,NodeFilter:u,NamedNodeMap:k=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:x,DOMParser:V,trustedTypes:H}=t,z=c.prototype,j=E(z,"cloneNode"),U=E(z,"nextSibling"),G=E(z,"childNodes"),$=E(z,"parentNode");if("function"===typeof d){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Z,X="";const{implementation:J,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:ie}=r,{importNode:ne}=s;let se={};i.isSupported="function"===typeof n&&"function"===typeof $&&J&&void 0!==J.createHTMLDocument;const{MUSTACHE_EXPR:oe,ERB_EXPR:re,TMPLIT_EXPR:ae,DATA_ATTR:le,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:ce}=Q;let{IS_ALLOWED_URI:ue}=Q,ge=null;const pe=L({},[...N,...T,...I,...A,...O]);let me=null;const fe=L({},[...P,...F,...B,...W]);let _e=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,be=null,Ce=!0,ye=!0,we=!1,Se=!0,ke=!1,xe=!1,Le=!1,De=!1,Ee=!1,Ne=!1,Te=!1,Ie=!0,Me=!1,Ae=!0,Re=!1,Oe={},Pe=null;const Fe=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Be=null;const We=L({},["audio","video","img","source","image","track"]);let Ve=null;const He=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ze="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",Ue="http://www.w3.org/1999/xhtml";let Ke=Ue,Ge=!1,$e=null;const qe=L({},[ze,je,Ue],_);let Qe;const Ye=["application/xhtml+xml","text/html"];let Ze,Xe=null;const Je=r.createElement("form"),et=function(e){return e instanceof RegExp||e instanceof Function},tt=function(e){if(!Xe||Xe!==e){if(e&&"object"===typeof e||(e={}),e=D(e),Qe=Qe=-1===Ye.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ze="application/xhtml+xml"===Qe?_:f,ge="ALLOWED_TAGS"in e?L({},e.ALLOWED_TAGS,Ze):pe,me="ALLOWED_ATTR"in e?L({},e.ALLOWED_ATTR,Ze):fe,$e="ALLOWED_NAMESPACES"in e?L({},e.ALLOWED_NAMESPACES,_):qe,Ve="ADD_URI_SAFE_ATTR"in e?L(D(He),e.ADD_URI_SAFE_ATTR,Ze):He,Be="ADD_DATA_URI_TAGS"in e?L(D(We),e.ADD_DATA_URI_TAGS,Ze):We,Pe="FORBID_CONTENTS"in e?L({},e.FORBID_CONTENTS,Ze):Fe,ve="FORBID_TAGS"in e?L({},e.FORBID_TAGS,Ze):{},be="FORBID_ATTR"in e?L({},e.FORBID_ATTR,Ze):{},Oe="USE_PROFILES"in e&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,ye=!1!==e.ALLOW_DATA_ATTR,we=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Se=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,xe=e.WHOLE_DOCUMENT||!1,Ee=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Te=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,Ie=!1!==e.SANITIZE_DOM,Me=e.SANITIZE_NAMED_PROPS||!1,Ae=!1!==e.KEEP_CONTENT,Re=e.IN_PLACE||!1,ue=e.ALLOWED_URI_REGEXP||K,Ke=e.NAMESPACE||Ue,_e=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_e.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_e.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(_e.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(ye=!1),Ne&&(Ee=!0),Oe&&(ge=L({},[...O]),me=[],!0===Oe.html&&(L(ge,N),L(me,P)),!0===Oe.svg&&(L(ge,T),L(me,F),L(me,W)),!0===Oe.svgFilters&&(L(ge,I),L(me,F),L(me,W)),!0===Oe.mathMl&&(L(ge,A),L(me,B),L(me,W))),e.ADD_TAGS&&(ge===pe&&(ge=D(ge)),L(ge,e.ADD_TAGS,Ze)),e.ADD_ATTR&&(me===fe&&(me=D(me)),L(me,e.ADD_ATTR,Ze)),e.ADD_URI_SAFE_ATTR&&L(Ve,e.ADD_URI_SAFE_ATTR,Ze),e.FORBID_CONTENTS&&(Pe===Fe&&(Pe=D(Pe)),L(Pe,e.FORBID_CONTENTS,Ze)),Ae&&(ge["#text"]=!0),xe&&L(ge,["html","head","body"]),ge.table&&(L(ge,["tbody"]),delete ve.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Z=e.TRUSTED_TYPES_POLICY,X=Z.createHTML("")}else void 0===Z&&(Z=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const s="dompurify"+(i?"#"+i:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(o){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}(H,o)),null!==Z&&"string"===typeof X&&(X=Z.createHTML(""));l&&l(e),Xe=e}},it=L({},["mi","mo","mn","ms","mtext"]),nt=L({},["foreignobject","desc","title","annotation-xml"]),st=L({},["title","style","font","a","script"]),ot=L({},T);L(ot,I),L(ot,M);const rt=L({},A);L(rt,R);const at=function(e){m(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},lt=function(e,t){try{m(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(n){m(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!me[e])if(Ee||Ne)try{at(t)}catch(n){}else try{t.setAttribute(e,"")}catch(n){}},dt=function(e){let t,i;if(De)e="<remove></remove>"+e;else{const t=v(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===Qe&&Ke===Ue&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=Z?Z.createHTML(e):e;if(Ke===Ue)try{t=(new V).parseFromString(n,Qe)}catch(o){}if(!t||!t.documentElement){t=J.createDocument(Ke,"template",null);try{t.documentElement.innerHTML=Ge?X:n}catch(o){}}const s=t.body||t.documentElement;return e&&i&&s.insertBefore(r.createTextNode(i),s.childNodes[0]||null),Ke===Ue?ie.call(t,xe?"html":"body")[0]:xe?t.documentElement:s},ht=function(e){return ee.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},ct=function(e){return"object"===typeof h?e instanceof h:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},ut=function(e,t,n){se[e]&&g(se[e],(e=>{e.call(i,t,n,Xe)}))},gt=function(e){let t;if(ut("beforeSanitizeElements",e,null),(n=e)instanceof x&&("string"!==typeof n.nodeName||"string"!==typeof n.textContent||"function"!==typeof n.removeChild||!(n.attributes instanceof k)||"function"!==typeof n.removeAttribute||"function"!==typeof n.setAttribute||"string"!==typeof n.namespaceURI||"function"!==typeof n.insertBefore||"function"!==typeof n.hasChildNodes))return at(e),!0;var n;const s=Ze(e.nodeName);if(ut("uponSanitizeElement",e,{tagName:s,allowedTags:ge}),e.hasChildNodes()&&!ct(e.firstElementChild)&&(!ct(e.content)||!ct(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return at(e),!0;if(!ge[s]||ve[s]){if(!ve[s]&&mt(s)){if(_e.tagNameCheck instanceof RegExp&&w(_e.tagNameCheck,s))return!1;if(_e.tagNameCheck instanceof Function&&_e.tagNameCheck(s))return!1}if(Ae&&!Pe[s]){const t=$(e)||e.parentNode,i=G(e)||e.childNodes;if(i&&t){for(let n=i.length-1;n>=0;--n)t.insertBefore(j(i[n],!0),U(e))}}return at(e),!0}return e instanceof c&&!function(e){let t=$(e);t&&t.tagName||(t={namespaceURI:Ke,tagName:"template"});const i=f(e.tagName),n=f(t.tagName);return!!$e[e.namespaceURI]&&(e.namespaceURI===je?t.namespaceURI===Ue?"svg"===i:t.namespaceURI===ze?"svg"===i&&("annotation-xml"===n||it[n]):Boolean(ot[i]):e.namespaceURI===ze?t.namespaceURI===Ue?"math"===i:t.namespaceURI===je?"math"===i&&nt[n]:Boolean(rt[i]):e.namespaceURI===Ue?!(t.namespaceURI===je&&!nt[n])&&!(t.namespaceURI===ze&&!it[n])&&!rt[i]&&(st[i]||!ot[i]):!("application/xhtml+xml"!==Qe||!$e[e.namespaceURI]))}(e)?(at(e),!0):"noscript"!==s&&"noembed"!==s&&"noframes"!==s||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&3===e.nodeType&&(t=e.textContent,t=b(t,oe," "),t=b(t,re," "),t=b(t,ae," "),e.textContent!==t&&(m(i.removed,{element:e.cloneNode()}),e.textContent=t)),ut("afterSanitizeElements",e,null),!1):(at(e),!0)},pt=function(e,t,i){if(Ie&&("id"===t||"name"===t)&&(i in r||i in Je))return!1;if(ye&&!be[t]&&w(le,t));else if(Ce&&w(de,t));else if(!me[t]||be[t]){if(!(mt(e)&&(_e.tagNameCheck instanceof RegExp&&w(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&w(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t))||"is"===t&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&w(_e.tagNameCheck,i)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(i))))return!1}else if(Ve[t]);else if(w(ue,b(i,ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(i,"data:")||!Be[e]){if(we&&!w(he,b(i,ce,"")));else if(i)return!1}else;return!0},mt=function(e){return e.indexOf("-")>0},ft=function(e){let t,n,s,o;ut("beforeSanitizeAttributes",e,null);const{attributes:r}=e;if(!r)return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};for(o=r.length;o--;){t=r[o];const{name:d,namespaceURI:h}=t;if(n="value"===d?t.value:y(t.value),s=Ze(d),a.attrName=s,a.attrValue=n,a.keepAttr=!0,a.forceKeepAttr=void 0,ut("uponSanitizeAttribute",e,a),n=a.attrValue,a.forceKeepAttr)continue;if(lt(d,e),!a.keepAttr)continue;if(!Se&&w(/\/>/i,n)){lt(d,e);continue}ke&&(n=b(n,oe," "),n=b(n,re," "),n=b(n,ae," "));const c=Ze(e.nodeName);if(pt(c,s,n)){if(!Me||"id"!==s&&"name"!==s||(lt(d,e),n="user-content-"+n),Z&&"object"===typeof H&&"function"===typeof H.getAttributeType)if(h);else switch(H.getAttributeType(c,s)){case"TrustedHTML":n=Z.createHTML(n);break;case"TrustedScriptURL":n=Z.createScriptURL(n)}try{h?e.setAttributeNS(h,d,n):e.setAttribute(d,n),p(i.removed)}catch(l){}}}ut("afterSanitizeAttributes",e,null)},_t=function e(t){let i;const n=ht(t);for(ut("beforeSanitizeShadowDOM",t,null);i=n.nextNode();)ut("uponSanitizeShadowNode",i,null),gt(i)||(i.content instanceof a&&e(i.content),ft(i));ut("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t,n,o,r,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ge=!e,Ge&&(e="\x3c!--\x3e"),"string"!==typeof e&&!ct(e)){if("function"!==typeof e.toString)throw S("toString is not a function");if("string"!==typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Le||tt(l),i.removed=[],"string"===typeof e&&(Re=!1),Re){if(e.nodeName){const t=Ze(e.nodeName);if(!ge[t]||ve[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof h)t=dt("\x3c!----\x3e"),n=t.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!Ee&&!ke&&!xe&&-1===e.indexOf("<"))return Z&&Te?Z.createHTML(e):e;if(t=dt(e),!t)return Ee?null:Te?X:""}t&&De&&at(t.firstChild);const d=ht(Re?e:t);for(;o=d.nextNode();)gt(o)||(o.content instanceof a&&_t(o.content),ft(o));if(Re)return e;if(Ee){if(Ne)for(r=te.call(t.ownerDocument);t.firstChild;)r.appendChild(t.firstChild);else r=t;return(me.shadowroot||me.shadowrootmode)&&(r=ne.call(s,r,!0)),r}let c=xe?t.outerHTML:t.innerHTML;return xe&&ge["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&w(q,t.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+c),ke&&(c=b(c,oe," "),c=b(c,re," "),c=b(c,ae," ")),Z&&Te?Z.createHTML(c):c},i.setConfig=function(e){tt(e),Le=!0},i.clearConfig=function(){Xe=null,Le=!1},i.isValidAttribute=function(e,t,i){Xe||tt({});const n=Ze(e),s=Ze(t);return pt(n,s,i)},i.addHook=function(e,t){"function"===typeof t&&(se[e]=se[e]||[],m(se[e],t))},i.removeHook=function(e){if(se[e])return p(se[e])},i.removeHooks=function(e){se[e]&&(se[e]=[])},i.removeAllHooks=function(){se={}},i}();Z.version,Z.isSupported;const X=Z.sanitize,J=(Z.setConfig,Z.clearConfig,Z.isValidAttribute,Z.addHook),ee=Z.removeHook;Z.removeHooks,Z.removeAllHooks},56245:(e,t,i)=>{"use strict";i.d(t,{f:()=>s});var n=i(41234);class s{get event(){return this.emitter.event}constructor(e,t,i){const s=e=>this.emitter.fire(e);this.emitter=new n.vl({onWillAddFirstListener:()=>e.addEventListener(t,s,i),onDidRemoveLastListener:()=>e.removeEventListener(t,s,i)})}dispose(){this.emitter.dispose()}}},55275:(e,t,i)=>{"use strict";i.d(t,{D:()=>n,Z:()=>o});class n{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=s(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=s(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=s(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=s(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=s(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=s(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=s(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=s(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=s(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=s(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=s(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function s(e){return"number"===typeof e?`${e}px`:e}function o(e){return new n(e)}},27661:(e,t,i)=>{"use strict";i.d(t,{S5:()=>s,n:()=>r,yk:()=>o});var n=i(8597);function s(e,t={}){const i=r(t);return i.textContent=e,i}function o(e,t={}){const i=r(t);return l(i,function(e,t){const i={type:1,children:[]};let n=0,s=i;const o=[],r=new a(e);for(;!r.eos();){let e=r.next();const i="\\"===e&&0!==h(r.peek(),t);if(i&&(e=r.next()),!i&&d(e,t)&&e===r.peek()){r.advance(),2===s.type&&(s=o.pop());const i=h(e,t);if(s.type===i||5===s.type&&6===i)s=o.pop();else{const e={type:i,children:[]};5===i&&(e.index=n,n++),s.children.push(e),o.push(s),s=e}}else if("\n"===e)2===s.type&&(s=o.pop()),s.children.push({type:8});else if(2!==s.type){const t={type:2,content:e};s.children.push(t),o.push(s),s=t}else s.content+=e}2===s.type&&(s=o.pop());o.length;return i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function r(e){const t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function l(e,t,i,s){let o;if(2===t.type)o=document.createTextNode(t.content||"");else if(3===t.type)o=document.createElement("b");else if(4===t.type)o=document.createElement("i");else if(7===t.type&&s)o=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");i.disposables.add(n.b2(e,"click",(e=>{i.callback(String(t.index),e)}))),o=e}else 8===t.type?o=document.createElement("br"):1===t.type&&(o=e);o&&e!==o&&e.appendChild(o),o&&Array.isArray(t.children)&&t.children.forEach((e=>{l(o,e,i,s)}))}function d(e,t){return 0!==h(e,t)}function h(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},34072:(e,t,i)=>{"use strict";i.d(t,{_:()=>o});var n=i(8597),s=i(5662);class o{constructor(){this._hooks=new s.Cm,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,o,r){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=o,this._onStopCallback=r;let a=e;try{e.setPointerCapture(t),this._hooks.add((0,s.s)((()=>{try{e.releasePointerCapture(t)}catch(i){}})))}catch(l){a=n.zk(e)}this._hooks.add(n.ko(a,n.Bx.POINTER_MOVE,(e=>{e.buttons===i?(e.preventDefault(),this._pointerMoveCallback(e)):this.stopMonitoring(!0)}))),this._hooks.add(n.ko(a,n.Bx.POINTER_UP,(e=>this.stopMonitoring(!0))))}}},72962:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(60413),s=i(24939),o=i(42539),r=i(98067);const a=r.zx?256:2048,l=r.zx?2048:256;class d{constructor(e){var t;this._standardKeyboardEventBrand=!0;const i=e;this.browserEvent=i,this.target=i.target,this.ctrlKey=i.ctrlKey,this.shiftKey=i.shiftKey,this.altKey=i.altKey,this.metaKey=i.metaKey,this.altGraphKey=null===(t=i.getModifierState)||void 0===t?void 0:t.call(i,"AltGraph"),this.keyCode=function(e){if(e.charCode){const t=String.fromCharCode(e.charCode).toUpperCase();return s.YM.fromString(t)}const t=e.keyCode;if(3===t)return 7;if(n.gm)switch(t){case 59:return 85;case 60:if(r.j9)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(r.zx)return 57}else if(n.Tc){if(r.zx&&93===t)return 57;if(!r.zx&&92===t)return 57}return s.uw[t]||0}(i),this.code=i.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=l),t|=e,t}_computeKeyCodeChord(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new o.dG(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},68214:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>L,R9:()=>I});var n=i(8597),s=i(83750),o=i(56245),r=i(27661),a=i(72962),l=i(47358),d=i(20370),h=i(64383),c=i(41234),u=i(16980),g=i(37882),p=i(96032),m=i(91090),f=i(5662);let _={};!function(){function e(e,t){t(_)}var t,i;e.amd=!0,t=this,i=function(e){function t(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function n(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.defaults={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var o=/[&<>"']/,r=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"},h=function(e){return d[e]};function c(e,t){if(t){if(o.test(e))return e.replace(r,h)}else if(a.test(e))return e.replace(l,h);return e}var u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function g(e){return e.replace(u,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var p=/(^|[^\[])\^/g;function m(e,t){e="string"===typeof e?e:e.source,t=t||"";var i={replace:function(t,n){return n=(n=n.source||n).replace(p,"$1"),e=e.replace(t,n),i},getRegex:function(){return new RegExp(e,t)}};return i}var f=/[^\w:]/g,_=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(e,t,i){if(e){var n;try{n=decodeURIComponent(g(i)).replace(f,"").toLowerCase()}catch(s){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!_.test(i)&&(i=function(e,t){b[" "+e]||(C.test(e)?b[" "+e]=e+"/":b[" "+e]=L(e,"/",!0));var i=-1===(e=b[" "+e]).indexOf(":");return"//"===t.substring(0,2)?i?t:e.replace(y,"$1")+t:"/"===t.charAt(0)?i?t:e.replace(w,"$1")+t:e+t}(t,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(s){return null}return i}var b={},C=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,w=/^([^:]+:\/*[^/]*)[\s\S]*$/,S={exec:function(){}};function k(e){for(var t,i,n=1;n<arguments.length;n++)for(i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}function x(e,t){var i=e.replace(/\|/g,(function(e,t,i){for(var n=!1,s=t;--s>=0&&"\\"===i[s];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(/\\\|/g,"|");return i}function L(e,t,i){var n=e.length;if(0===n)return"";for(var s=0;s<n;){var o=e.charAt(n-s-1);if(o!==t||i){if(o===t||!i)break;s++}else s++}return e.slice(0,n-s)}function D(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function E(e,t){if(t<1)return"";for(var i="";t>1;)1&t&&(i+=e),t>>=1,e+=e;return i+e}function N(e,t,i,n){var s=t.href,o=t.title?c(t.title):null,r=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var a={type:"link",raw:i,href:s,title:o,text:r,tokens:n.inlineTokens(r)};return n.state.inLink=!1,a}return{type:"image",raw:i,href:s,title:o,text:c(r)}}var T=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},i.code=function(e){var t=this.rules.block.code.exec(e);if(t){var i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:L(i,"\n")}}},i.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var i=t[0],n=function(e,t){var i=e.match(/^(\s+)(?:```)/);if(null===i)return t;var n=i[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:n}}},i.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var i=t[2].trim();if(/#$/.test(i)){var n=L(i,"#");this.options.pedantic?i=n.trim():n&&!/ $/.test(n)||(i=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}},i.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},i.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var i=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}},i.list=function(e){var t=this.rules.block.list.exec(e);if(t){var i,s,o,r,a,l,d,h,c,u,g,p,m=t[1].trim(),f=m.length>1,_={type:"list",raw:"",ordered:f,start:f?+m.slice(0,-1):"",loose:!1,items:[]};m=f?"\\d{1,9}\\"+m.slice(-1):"\\"+m,this.options.pedantic&&(m=f?m:"[*+-]");for(var v=new RegExp("^( {0,3}"+m+")((?:[\t ][^\\n]*)?(?:\\n|$))");e&&(p=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(i=t[0],e=e.substring(i.length),h=t[2].split("\n",1)[0],c=e.split("\n",1)[0],this.options.pedantic?(r=2,g=h.trimLeft()):(r=(r=t[2].search(/[^ ]/))>4?1:r,g=h.slice(r),r+=t[1].length),l=!1,!h&&/^ *$/.test(c)&&(i+=c+"\n",e=e.substring(c.length+1),p=!0),!p)for(var b=new RegExp("^ {0,"+Math.min(3,r-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),C=new RegExp("^ {0,"+Math.min(3,r-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),y=new RegExp("^ {0,"+Math.min(3,r-1)+"}(?:```|~~~)"),w=new RegExp("^ {0,"+Math.min(3,r-1)+"}#");e&&(h=u=e.split("\n",1)[0],this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!y.test(h))&&!w.test(h)&&!b.test(h)&&!C.test(e);){if(h.search(/[^ ]/)>=r||!h.trim())g+="\n"+h.slice(r);else{if(l)break;g+="\n"+h}l||h.trim()||(l=!0),i+=u+"\n",e=e.substring(u.length+1)}_.loose||(d?_.loose=!0:/\n *\n *$/.test(i)&&(d=!0)),this.options.gfm&&(s=/^\[[ xX]\] /.exec(g))&&(o="[ ] "!==s[0],g=g.replace(/^\[[ xX]\] +/,"")),_.items.push({type:"list_item",raw:i,task:!!s,checked:o,loose:!1,text:g}),_.raw+=i}_.items[_.items.length-1].raw=i.trimRight(),_.items[_.items.length-1].text=g.trimRight(),_.raw=_.raw.trimRight();var S=_.items.length;for(a=0;a<S;a++){this.lexer.state.top=!1,_.items[a].tokens=this.lexer.blockTokens(_.items[a].text,[]);var k=_.items[a].tokens.filter((function(e){return"space"===e.type})),x=k.every((function(e){for(var t,i=0,s=n(e.raw.split(""));!(t=s()).done;)if("\n"===t.value&&(i+=1),i>1)return!0;return!1}));!_.loose&&k.length&&x&&(_.loose=!0,_.items[a].loose=!0)}return _}},i.html=function(e){var t=this.rules.block.html.exec(e);if(t){var i={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){var n=this.options.sanitizer?this.options.sanitizer(t[0]):c(t[0]);i.type="paragraph",i.text=n,i.tokens=this.lexer.inline(n)}return i}},i.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},i.table=function(e){var t=this.rules.block.table.exec(e);if(t){var i={type:"table",header:x(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=t[0];var n,s,o,r,a=i.align.length;for(n=0;n<a;n++)/^ *-+: *$/.test(i.align[n])?i.align[n]="right":/^ *:-+: *$/.test(i.align[n])?i.align[n]="center":/^ *:-+ *$/.test(i.align[n])?i.align[n]="left":i.align[n]=null;for(a=i.rows.length,n=0;n<a;n++)i.rows[n]=x(i.rows[n],i.header.length).map((function(e){return{text:e}}));for(a=i.header.length,s=0;s<a;s++)i.header[s].tokens=this.lexer.inline(i.header[s].text);for(a=i.rows.length,s=0;s<a;s++)for(r=i.rows[s],o=0;o<r.length;o++)r[o].tokens=this.lexer.inline(r[o].text);return i}}},i.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}},i.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var i="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}},i.text=function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}},i.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:c(t[1])}},i.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):c(t[0]):t[0]}},i.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var i=t[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;var n=L(i.slice(0,-1),"\\");if((i.length-n.length)%2===0)return}else{var s=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var i=e.length,n=0,s=0;s<i;s++)if("\\"===e[s])s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&--n<0)return s;return-1}(t[2],"()");if(s>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var r=t[2],a="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);l&&(r=l[1],a=l[3])}else a=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(r=this.options.pedantic&&!/>$/.test(i)?r.slice(1):r.slice(1,-1)),N(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0],this.lexer)}},i.reflink=function(e,t){var i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return N(i,n,i[0],this.lexer)}},i.emStrong=function(e,t,i){void 0===i&&(i="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!i.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var s=n[1]||n[2]||"";if(!s||s&&(""===i||this.rules.inline.punctuation.exec(i))){var o,r,a=n[0].length-1,l=a,d=0,h="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+a);null!=(n=h.exec(t));)if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(r=o.length,n[3]||n[4])l+=r;else if(!((n[5]||n[6])&&a%3)||(a+r)%3){if(!((l-=r)>0)){if(r=Math.min(r,r+l+d),Math.min(a,r)%2){var c=e.slice(1,a+n.index+r);return{type:"em",raw:e.slice(0,a+n.index+r+1),text:c,tokens:this.lexer.inlineTokens(c)}}var u=e.slice(2,a+n.index+r-1);return{type:"strong",raw:e.slice(0,a+n.index+r+1),text:u,tokens:this.lexer.inlineTokens(u)}}}else d+=r}}},i.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var i=t[2].replace(/\n/g," "),n=/[^ ]/.test(i),s=/^ /.test(i)&&/ $/.test(i);return n&&s&&(i=i.substring(1,i.length-1)),i=c(i,!0),{type:"codespan",raw:t[0],text:i}}},i.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},i.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}},i.autolink=function(e,t){var i,n,s=this.rules.inline.autolink.exec(e);if(s)return n="@"===s[2]?"mailto:"+(i=c(this.options.mangle?t(s[1]):s[1])):i=c(s[1]),{type:"link",raw:s[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},i.url=function(e,t){var i;if(i=this.rules.inline.url.exec(e)){var n,s;if("@"===i[2])s="mailto:"+(n=c(this.options.mangle?t(i[0]):i[0]));else{var o;do{o=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(o!==i[0]);n=c(i[0]),s="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}},i.inlineText=function(e,t){var i,n=this.rules.inline.text.exec(e);if(n)return i=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):c(n[0]):n[0]:c(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}},t}(),I={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:S,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};I.def=m(I.def).replace("label",I._label).replace("title",I._title).getRegex(),I.bullet=/(?:[*+-]|\d{1,9}[.)])/,I.listItemStart=m(/^( *)(bull) */).replace("bull",I.bullet).getRegex(),I.list=m(I.list).replace(/bull/g,I.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+I.def.source+")").getRegex(),I._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",I._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,I.html=m(I.html,"i").replace("comment",I._comment).replace("tag",I._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),I.paragraph=m(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.blockquote=m(I.blockquote).replace("paragraph",I.paragraph).getRegex(),I.normal=k({},I),I.gfm=k({},I.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),I.gfm.table=m(I.gfm.table).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.gfm.paragraph=m(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",I.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.pedantic=k({},I.normal,{html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",I._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:S,paragraph:m(I.normal._paragraph).replace("hr",I.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",I.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var M={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:S,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:S,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function A(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function R(e){var t,i,n="",s=e.length;for(t=0;t<s;t++)i=e.charCodeAt(t),Math.random()>.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}M._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",M.punctuation=m(M.punctuation).replace(/punctuation/g,M._punctuation).getRegex(),M.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,M.escapedEmSt=/\\\*|\\_/g,M._comment=m(I._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),M.emStrong.lDelim=m(M.emStrong.lDelim).replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimAst=m(M.emStrong.rDelimAst,"g").replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimUnd=m(M.emStrong.rDelimUnd,"g").replace(/punct/g,M._punctuation).getRegex(),M._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,M._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,M._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,M.autolink=m(M.autolink).replace("scheme",M._scheme).replace("email",M._email).getRegex(),M._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,M.tag=m(M.tag).replace("comment",M._comment).replace("attribute",M._attribute).getRegex(),M._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,M._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,M._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,M.link=m(M.link).replace("label",M._label).replace("href",M._href).replace("title",M._title).getRegex(),M.reflink=m(M.reflink).replace("label",M._label).replace("ref",I._label).getRegex(),M.nolink=m(M.nolink).replace("ref",I._label).getRegex(),M.reflinkSearch=m(M.reflinkSearch,"g").replace("reflink",M.reflink).replace("nolink",M.nolink).getRegex(),M.normal=k({},M),M.pedantic=k({},M.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:m(/^!?\[(label)\]\((.*?)\)/).replace("label",M._label).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",M._label).getRegex()}),M.gfm=k({},M.normal,{escape:m(M.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),M.gfm.url=m(M.gfm.url,"i").replace("email",M.gfm._extended_email).getRegex(),M.breaks=k({},M.gfm,{br:m(M.br).replace("{2,}","*").getRegex(),text:m(M.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var O=function(){function i(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new T,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var i={block:I.normal,inline:M.normal};this.options.pedantic?(i.block=I.pedantic,i.inline=M.pedantic):this.options.gfm&&(i.block=I.gfm,this.options.breaks?i.inline=M.breaks:i.inline=M.gfm),this.tokenizer.rules=i}i.lex=function(e,t){return new i(t).lex(e)},i.lexInline=function(e,t){return new i(t).inlineTokens(e)};var n,s,o,r=i.prototype;return r.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},r.blockTokens=function(e,t){var i,n,s,o,r=this;for(void 0===t&&(t=[]),e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(function(e,t,i){return t+" ".repeat(i.length)}));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(i=n.call({lexer:r},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),1===i.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(i):(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.list(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.def(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(s=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,i=e.slice(1),n=void 0;r.options.extensions.startBlock.forEach((function(e){"number"===typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}(),this.state.top&&(i=this.tokenizer.paragraph(s)))n=t[t.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),o=s.length!==e.length,e=e.substring(i.raw.length);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return this.state.top=!0,t},r.inline=function(e,t){return void 0===t&&(t=[]),this.inlineQueue.push({src:e,tokens:t}),t},r.inlineTokens=function(e,t){var i,n,s,o=this;void 0===t&&(t=[]);var r,a,l,d=e;if(this.tokens.links){var h=Object.keys(this.tokens.links);if(h.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(d));)h.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,r.index)+"["+E("a",r[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(d));)d=d.slice(0,r.index)+"["+E("a",r[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(d));)d=d.slice(0,r.index)+"++"+d.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(l=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(i=n.call({lexer:o},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,d,l))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e,R))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e,R))){if(s=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,i=e.slice(1),n=void 0;o.options.extensions.startInline.forEach((function(e){"number"===typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(s,A))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),a=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(i.raw.length),t.push(i);return t},n=i,o=[{key:"rules",get:function(){return{block:I,inline:M}}}],(s=null)&&t(n.prototype,s),o&&t(n,o),Object.defineProperty(n,"prototype",{writable:!1}),i}(),P=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.code=function(e,t,i){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var s=this.options.highlight(e,n);null!=s&&s!==e&&(i=!0,e=s)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+c(n,!0)+'">'+(i?e:c(e,!0))+"</code></pre>\n":"<pre><code>"+(i?e:c(e,!0))+"</code></pre>\n"},i.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},i.html=function(e){return e},i.heading=function(e,t,i,n){return this.options.headerIds?"<h"+t+' id="'+(this.options.headerPrefix+n.slug(i))+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},i.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},i.list=function(e,t,i){var n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"</"+n+">\n"},i.listitem=function(e){return"<li>"+e+"</li>\n"},i.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},i.paragraph=function(e){return"<p>"+e+"</p>\n"},i.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},i.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},i.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+"</"+i+">\n"},i.strong=function(e){return"<strong>"+e+"</strong>"},i.em=function(e){return"<em>"+e+"</em>"},i.codespan=function(e){return"<code>"+e+"</code>"},i.br=function(){return this.options.xhtml?"<br/>":"<br>"},i.del=function(e){return"<del>"+e+"</del>"},i.link=function(e,t,i){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return i;var n='<a href="'+c(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+i+"</a>"},i.image=function(e,t,i){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return i;var n='<img src="'+e+'" alt="'+i+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">"},i.text=function(e){return e},t}(),F=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,i){return""+i},t.image=function(e,t,i){return""+i},t.br=function(){return""},e}(),B=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do{i=e+"-"+ ++n}while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i},t.slug=function(e,t){void 0===t&&(t={});var i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)},e}(),W=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new P,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new F,this.slugger=new B}t.parse=function(e,i){return new t(i).parse(e)},t.parseInline=function(e,i){return new t(i).parseInline(e)};var i=t.prototype;return i.parse=function(e,t){void 0===t&&(t=!0);var i,n,s,o,r,a,l,d,h,c,u,p,m,f,_,v,b,C,y,w="",S=e.length;for(i=0;i<S;i++)if(c=e[i],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[c.type])||!1===(y=this.options.extensions.renderers[c.type].call({parser:this},c))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type))switch(c.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(c.tokens),c.depth,g(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(d="",l="",o=c.header.length,n=0;n<o;n++)l+=this.renderer.tablecell(this.parseInline(c.header[n].tokens),{header:!0,align:c.align[n]});for(d+=this.renderer.tablerow(l),h="",o=c.rows.length,n=0;n<o;n++){for(l="",r=(a=c.rows[n]).length,s=0;s<r;s++)l+=this.renderer.tablecell(this.parseInline(a[s].tokens),{header:!1,align:c.align[s]});h+=this.renderer.tablerow(l)}w+=this.renderer.table(d,h);continue;case"blockquote":h=this.parse(c.tokens),w+=this.renderer.blockquote(h);continue;case"list":for(u=c.ordered,p=c.start,m=c.loose,o=c.items.length,h="",n=0;n<o;n++)v=(_=c.items[n]).checked,b=_.task,f="",_.task&&(C=this.renderer.checkbox(v),m?_.tokens.length>0&&"paragraph"===_.tokens[0].type?(_.tokens[0].text=C+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&"text"===_.tokens[0].tokens[0].type&&(_.tokens[0].tokens[0].text=C+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:C}):f+=C),f+=this.parse(_.tokens,m),h+=this.renderer.listitem(f,b,v);w+=this.renderer.list(h,u,p);continue;case"html":w+=this.renderer.html(c.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(h=c.tokens?this.parseInline(c.tokens):c.text;i+1<S&&"text"===e[i+1].type;)h+="\n"+((c=e[++i]).tokens?this.parseInline(c.tokens):c.text);w+=t?this.renderer.paragraph(h):h;continue;default:var k='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(k);throw new Error(k)}else w+=y||"";return w},i.parseInline=function(e,t){t=t||this.renderer;var i,n,s,o="",r=e.length;for(i=0;i<r;i++)if(n=e[i],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type])||!1===(s=this.options.extensions.renderers[n.type].call({parser:this},n))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type))switch(n.type){case"escape":case"text":o+=t.text(n.text);break;case"html":o+=t.html(n.text);break;case"link":o+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":o+=t.image(n.href,n.title,n.text);break;case"strong":o+=t.strong(this.parseInline(n.tokens,t));break;case"em":o+=t.em(this.parseInline(n.tokens,t));break;case"codespan":o+=t.codespan(n.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(n.tokens,t));break;default:var a='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}else o+=s||"";return o},t}();function V(e,t,i){if("undefined"===typeof e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"===typeof t&&(i=t,t=null),D(t=k({},V.defaults,t||{})),i){var n,s=t.highlight;try{n=O.lex(e,t)}catch(d){return i(d)}var o=function(e){var o;if(!e)try{t.walkTokens&&V.walkTokens(n,t.walkTokens),o=W.parse(n,t)}catch(d){e=d}return t.highlight=s,e?i(e):i(null,o)};if(!s||s.length<3)return o();if(delete t.highlight,!n.length)return o();var r=0;return V.walkTokens(n,(function(e){"code"===e.type&&(r++,setTimeout((function(){s(e.text,e.lang,(function(t,i){if(t)return o(t);null!=i&&i!==e.text&&(e.text=i,e.escaped=!0),0===--r&&o()}))}),0))})),void(0===r&&o())}function a(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+c(e.message+"",!0)+"</pre>";throw e}try{var l=O.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(V.walkTokens(l,t.walkTokens)).then((function(){return W.parse(l,t)})).catch(a);V.walkTokens(l,t.walkTokens)}return W.parse(l,t)}catch(d){a(d)}}V.options=V.setOptions=function(t){var i;return k(V.defaults,t),i=V.defaults,e.defaults=i,V},V.getDefaults=s,V.defaults=e.defaults,V.use=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n,s=k.apply(void 0,[{}].concat(t)),o=V.defaults.extensions||{renderers:{},childTokens:{}};t.forEach((function(e){if(e.extensions&&(n=!0,e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=o.renderers?o.renderers[e.name]:null;o.renderers[e.name]=t?function(){for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];var o=e.renderer.apply(this,n);return!1===o&&(o=t.apply(this,n)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");o[e.level]?o[e.level].unshift(e.tokenizer):o[e.level]=[e.tokenizer],e.start&&("block"===e.level?o.startBlock?o.startBlock.push(e.start):o.startBlock=[e.start]:"inline"===e.level&&(o.startInline?o.startInline.push(e.start):o.startInline=[e.start]))}e.childTokens&&(o.childTokens[e.name]=e.childTokens)}))),e.renderer&&function(){var t=V.defaults.renderer||new P,i=function(i){var n=t[i];t[i]=function(){for(var s=arguments.length,o=new Array(s),r=0;r<s;r++)o[r]=arguments[r];var a=e.renderer[i].apply(t,o);return!1===a&&(a=n.apply(t,o)),a}};for(var n in e.renderer)i(n);s.renderer=t}(),e.tokenizer&&function(){var t=V.defaults.tokenizer||new T,i=function(i){var n=t[i];t[i]=function(){for(var s=arguments.length,o=new Array(s),r=0;r<s;r++)o[r]=arguments[r];var a=e.tokenizer[i].apply(t,o);return!1===a&&(a=n.apply(t,o)),a}};for(var n in e.tokenizer)i(n);s.tokenizer=t}(),e.walkTokens){var t=V.defaults.walkTokens;s.walkTokens=function(i){var n=[];return n.push(e.walkTokens.call(this,i)),t&&(n=n.concat(t.call(this,i))),n}}n&&(s.extensions=o),V.setOptions(s)}))},V.walkTokens=function(e,t){for(var i,s=[],o=function(){var e=i.value;switch(s=s.concat(t.call(V,e)),e.type){case"table":for(var o,r=n(e.header);!(o=r()).done;){var a=o.value;s=s.concat(V.walkTokens(a.tokens,t))}for(var l,d=n(e.rows);!(l=d()).done;)for(var h,c=n(l.value);!(h=c()).done;){var u=h.value;s=s.concat(V.walkTokens(u.tokens,t))}break;case"list":s=s.concat(V.walkTokens(e.items,t));break;default:V.defaults.extensions&&V.defaults.extensions.childTokens&&V.defaults.extensions.childTokens[e.type]?V.defaults.extensions.childTokens[e.type].forEach((function(i){s=s.concat(V.walkTokens(e[i],t))})):e.tokens&&(s=s.concat(V.walkTokens(e.tokens,t)))}},r=n(e);!(i=r()).done;)o();return s},V.parseInline=function(e,t){if("undefined"===typeof e||null===e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");D(t=k({},V.defaults,t||{}));try{var i=O.lexInline(e,t);return t.walkTokens&&V.walkTokens(i,t.walkTokens),W.parseInline(i,t)}catch(n){if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+c(n.message+"",!0)+"</pre>";throw n}},V.Parser=W,V.parser=W.parse,V.Renderer=P,V.TextRenderer=F,V.Lexer=O,V.lexer=O.lex,V.Tokenizer=T,V.Slugger=B,V.parse=V;var H=V.options,z=V.setOptions,j=V.use,U=V.walkTokens,K=V.parseInline,G=V,$=W.parse,q=O.lex;e.Lexer=O,e.Parser=W,e.Renderer=P,e.Slugger=B,e.TextRenderer=F,e.Tokenizer=T,e.getDefaults=s,e.lexer=q,e.marked=V,e.options=H,e.parse=G,e.parseInline=K,e.parser=$,e.setOptions=z,e.use=j,e.walkTokens=U,Object.defineProperty(e,"__esModule",{value:!0})},e.amd?e(0,i):"object"===typeof exports?i(exports):i((t="undefined"!==typeof globalThis?globalThis:t||self).marked={})}();_.Lexer||exports.Lexer,_.Parser||exports.Parser,_.Renderer||exports.Renderer,_.Slugger||exports.Slugger,_.TextRenderer||exports.TextRenderer,_.Tokenizer||exports.Tokenizer,_.getDefaults||exports.getDefaults,_.lexer||exports.lexer;var v=_.marked||exports.marked,b=(_.options||exports.options,_.parse||exports.parse,_.parseInline||exports.parseInline,_.parser||exports.parser,_.setOptions||exports.setOptions,_.use||exports.use,_.walkTokens||exports.walkTokens,i(908)),C=i(36456),y=i(10146),w=i(89403),S=i(91508),k=i(79400);const x=Object.freeze({image:(e,t,i)=>{let n=[],s=[];return e&&(({href:e,dimensions:n}=(0,u.nI)(e)),s.push(`src="${(0,u.oO)(e)}"`)),i&&s.push(`alt="${(0,u.oO)(i)}"`),t&&s.push(`title="${(0,u.oO)(t)}"`),n.length&&(s=s.concat(n)),"<img "+s.join(" ")+">"},paragraph:e=>`<p>${e}</p>`,link:(e,t,i)=>"string"!==typeof e?"":(e===i&&(i=(0,u._W)(i)),t="string"===typeof t?(0,u.oO)((0,u._W)(t)):"",`<a href="${e=(e=(0,u._W)(e)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${t||e}" draggable="false">${i}</a>`)});function L(e,t={},i={}){var s,u;const m=new f.Cm;let _=!1;const w=(0,r.n)(t),L=function(t){let i;try{i=(0,b.qg)(decodeURIComponent(t))}catch(n){}return i?(i=(0,y.PI)(i,(t=>e.uris&&e.uris[t]?k.r.revive(e.uris[t]):void 0)),encodeURIComponent(JSON.stringify(i))):t},T=function(t,i){const n=e.uris&&e.uris[t];let s=k.r.revive(n);return i?t.startsWith(C.ny.data+":")?t:(s||(s=k.r.parse(t)),C.zl.uriToBrowserUri(s).toString(!0)):s?k.r.parse(t).toString()===s.toString()?t:(s.query&&(s=s.with({query:L(s.query)})),s.toString()):t},I=new v.Renderer;I.image=x.image,I.link=x.link,I.paragraph=x.paragraph;const M=[],A=[];if(t.codeBlockRendererSync?I.code=(e,i)=>{const n=p.r.nextId(),s=t.codeBlockRendererSync(D(i),e);return A.push([n,s]),`<div class="code" data-code="${n}">${(0,S.ih)(e)}</div>`}:t.codeBlockRenderer&&(I.code=(e,i)=>{const n=p.r.nextId(),s=t.codeBlockRenderer(D(i),e);return M.push(s.then((e=>[n,e]))),`<div class="code" data-code="${n}">${(0,S.ih)(e)}</div>`}),t.actionHandler){const i=function(i){let n=i.target;if("A"===n.tagName||(n=n.parentElement,n&&"A"===n.tagName))try{let s=n.dataset.href;s&&(e.baseUri&&(s=E(k.r.from(e.baseUri),s)),t.actionHandler.callback(s,i))}catch(s){(0,h.dz)(s)}finally{i.preventDefault()}},s=t.actionHandler.disposables.add(new o.f(w,"click")),r=t.actionHandler.disposables.add(new o.f(w,"auxclick"));t.actionHandler.disposables.add(c.Jh.any(s.event,r.event)((e=>{const t=new l.P(n.zk(w),e);(t.leftButton||t.middleButton)&&i(t)}))),t.actionHandler.disposables.add(n.ko(w,"keydown",(e=>{const t=new a.Z(e);(t.equals(10)||t.equals(3))&&i(t)})))}e.supportHtml||(i.sanitizer=t=>(e.isTrusted?t.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?t:"",i.sanitize=!0,i.silent=!0),i.renderer=I;let R,P=null!==(s=e.value)&&void 0!==s?s:"";if(P.length>1e5&&(P=`${P.substr(0,1e5)}\u2026`),e.supportThemeIcons&&(P=(0,g.sA)(P)),t.fillInIncompleteTokens){const e={...v.defaults,...i},t=function(e){let t,i;for(t=0;t<e.length;t++){const n=e[t];let s;if("paragraph"===n.type&&(s=n.raw.match(/(\n|^)(````*)/))){const n=s[2];i=F(e.slice(t),n);break}if("paragraph"===n.type&&n.raw.match(/(\n|^)\|/)){i=G(e.slice(t));break}if(t===e.length-1&&"paragraph"===n.type){const e=O(n);if(e){i=[e];break}}}if(i){const n=[...e.slice(0,t),...i];return n.links=e.links,n}return e}(v.lexer(P,e));R=v.parser(t,e)}else R=v.parse(P,i);if(e.supportThemeIcons){R=(0,d.n)(R).map((e=>"string"===typeof e?e:e.outerHTML)).join("")}const B=(new DOMParser).parseFromString(N(e,R),"text/html");if(B.body.querySelectorAll("img").forEach((t=>{const i=t.getAttribute("src");if(i){let s=i;try{e.baseUri&&(s=E(k.r.from(e.baseUri),s))}catch(n){}t.src=T(s,!0)}})),B.body.querySelectorAll("a").forEach((t=>{const i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let n=T(i,!1);e.baseUri&&(n=E(k.r.from(e.baseUri),i)),t.dataset.href=n}})),w.innerHTML=N(e,B.body.innerHTML),M.length>0)Promise.all(M).then((e=>{var i,s;if(_)return;const o=new Map(e),r=w.querySelectorAll("div[data-code]");for(const t of r){const e=o.get(null!==(i=t.dataset.code)&&void 0!==i?i:"");e&&n.Ln(t,e)}null===(s=t.asyncRenderCallback)||void 0===s||s.call(t)}));else if(A.length>0){const e=new Map(A),t=w.querySelectorAll("div[data-code]");for(const i of t){const t=e.get(null!==(u=i.dataset.code)&&void 0!==u?u:"");t&&n.Ln(i,t)}}if(t.asyncRenderCallback)for(const o of w.getElementsByTagName("img")){const e=m.add(n.ko(o,"load",(()=>{e.dispose(),t.asyncRenderCallback()})))}return{element:w,dispose:()=>{_=!0,m.dispose()}}}function D(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function E(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,w.o1)(e,t).toString():(0,w.o1)((0,w.pD)(e),t).toString()}function N(e,t){const{config:i,allowedSchemes:o}=function(e){const t=[C.ny.http,C.ny.https,C.ny.mailto,C.ny.data,C.ny.file,C.ny.vscodeFileResource,C.ny.vscodeRemote,C.ny.vscodeRemoteResource];e.isTrusted&&t.push(C.ny.command);return{config:{ALLOWED_TAGS:[...n.TT],ALLOWED_ATTR:T,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e);s.$w("uponSanitizeAttribute",((e,t)=>{var i;if("style"!==t.attrName&&"class"!==t.attrName){if("INPUT"===e.tagName&&"checkbox"===(null===(i=e.attributes.getNamedItem("type"))||void 0===i?void 0:i.value)){if("type"===t.attrName&&"checkbox"===t.attrValue||"disabled"===t.attrName||"checked"===t.attrName)return void(t.keepAttr=!0);t.keepAttr=!1}}else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}})),s.$w("uponSanitizeElement",((e,t)=>{var i,n;"input"===t.tagName&&("checkbox"===(null===(i=e.attributes.getNamedItem("type"))||void 0===i?void 0:i.value)?e.setAttribute("disabled",""):null===(n=e.parentElement)||void 0===n||n.removeChild(e))}));const r=n.a4(o);try{return s.aj(t,{...i,RETURN_TRUSTED_TYPE:!0})}finally{s.SV("uponSanitizeAttribute"),r.dispose()}}const T=["align","autoplay","alt","checked","class","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","src","style","target","title","type","width","start"];function I(e){return"string"===typeof e?e:function(e){var t;let i=null!==(t=e.value)&&void 0!==t?t:"";i.length>1e5&&(i=`${i.substr(0,1e5)}\u2026`);return N({isTrusted:!1},v.parse(i,{renderer:A.value}).replace(/&(#\d+|[a-zA-Z]+);/g,(e=>{var t;return null!==(t=M.get(e))&&void 0!==t?t:e}))).toString()}(e)}const M=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]),A=new m.d((()=>{const e=new v.Renderer;return e.code=e=>e,e.blockquote=e=>e,e.html=e=>"",e.heading=(e,t,i)=>e+"\n",e.hr=()=>"",e.list=(e,t)=>e,e.listitem=e=>e+"\n",e.paragraph=e=>e+"\n",e.table=(e,t)=>e+t+"\n",e.tablerow=e=>e,e.tablecell=(e,t)=>e+" ",e.strong=e=>e,e.em=e=>e,e.codespan=e=>e,e.br=()=>"\n",e.del=e=>e,e.image=(e,t,i)=>"",e.text=e=>e,e.link=(e,t,i)=>i,e}));function R(e){let t="";return e.forEach((e=>{t+=e.raw})),t}function O(e){var t,i;for(let n=0;n<e.tokens.length;n++){const s=e.tokens[n];if("text"===s.type){const o=s.raw.split("\n"),r=o[o.length-1];if(r.includes("`"))return B(e);if(r.includes("**"))return K(e,"**");if(r.match(/\*\w/))return W(e);if(r.match(/(^|\s)__\w/))return U(e);if(r.match(/(^|\s)_\w/))return V(e);if(r.match(/(^|\s)\[.*\]\(\w*/)){const s=e.tokens.slice(n+1);return"link"===(null===(t=s[0])||void 0===t?void 0:t.type)&&"text"===(null===(i=s[1])||void 0===i?void 0:i.type)&&s[1].raw.match(/^ *"[^"]*$/)?z(e):H(e)}if(P(r))return H(e);if(r.match(/(^|\s)\[\w/)&&!e.tokens.slice(n+1).some((e=>P(e.raw))))return j(e)}}}function P(e){return!!e.match(/^[^\[]*\]\([^\)]*$/)}function F(e,t){const i=R(e);return v.lexer(i+`\n${t}`)}function B(e){return K(e,"`")}function W(e){return K(e,"*")}function V(e){return K(e,"_")}function H(e){return K(e,")")}function z(e){return K(e,'")')}function j(e){return K(e,"](about:blank)")}function U(e){return K(e,"__")}function K(e,t){const i=R(Array.isArray(e)?e:[e]);return v.lexer(i+t)[0]}function G(e){const t=R(e),i=t.split("\n");let n,s=!1;for(let o=0;o<i.length;o++){const e=i[o].trim();if("undefined"===typeof n&&e.match(/^\s*\|/)){const t=e.match(/(\|[^\|]+)(?=\||$)/g);t&&(n=t.length)}else if("number"===typeof n){if(!e.match(/^\s*\|/))return;if(o!==i.length-1)return;s=!0}}if("number"===typeof n&&n>0){const e=s?i.slice(0,-1).join("\n"):t,o=!!e.match(/\|\s*$/),r=e+(o?"":"|")+`\n|${" --- |".repeat(n)}`;return v.lexer(r)}}},47358:(e,t,i)=>{"use strict";i.d(t,{P:()=>l,$:()=>d});var n=i(60413);const s=new WeakMap;function o(e){if(!e.parent||e.parent===e)return null;try{const t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return null}catch(t){return null}return e.parent}class r{static getSameOriginWindowChain(e){let t=s.get(e);if(!t){t=[],s.set(e,t);let i,n=e;do{i=o(n),i?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=i}while(n)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){var i,n;if(!t||e===t)return{top:0,left:0};let s=0,o=0;const r=this.getSameOriginWindowChain(e);for(const a of r){const e=a.window.deref();if(s+=null!==(i=null===e||void 0===e?void 0:e.scrollY)&&void 0!==i?i:0,o+=null!==(n=null===e||void 0===e?void 0:e.scrollX)&&void 0!==n?n:0,e===t)break;if(!a.iframeElement)break;const r=a.iframeElement.getBoundingClientRect();s+=r.top,o+=r.left}return{top:s,left:o}}}var a=i(98067);class l{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=0===t.button,this.middleButton=1===t.button,this.rightButton=2===t.button,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,"dblclick"===t.type&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,"number"===typeof t.pageX?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=r.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class d{constructor(e,t=0,i=0){var s;this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let o=!1;if(n.H8){const e=navigator.userAgent.match(/Chrome\/(\d+)/);o=(e?parseInt(e[1]):123)<=122}if(e){const t=e,i=e,r=(null===(s=e.view)||void 0===s?void 0:s.devicePixelRatio)||1;if("undefined"!==typeof t.wheelDeltaY)this.deltaY=o?t.wheelDeltaY/(120*r):t.wheelDeltaY/120;else if("undefined"!==typeof i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.gm&&!a.zx?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if("undefined"!==typeof t.wheelDeltaX)n.nr&&a.uF?this.deltaX=-t.wheelDeltaX/120:this.deltaX=o?t.wheelDeltaX/(120*r):t.wheelDeltaX/120;else if("undefined"!==typeof i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.gm&&!a.zx?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=o?e.wheelDelta/(120*r):e.wheelDelta/120)}}preventDefault(){var e;null===(e=this.browserEvent)||void 0===e||e.preventDefault()}stopPropagation(){var e;null===(e=this.browserEvent)||void 0===e||e.stopPropagation()}}},5239:(e,t,i)=>{"use strict";var n;i.d(t,{p:()=>n}),function(e){const t={total:0,min:Number.MAX_VALUE,max:0},i={...t},n={...t},s={...t};let o=0;const r={keydown:0,input:0,render:0};function a(){1===r.keydown&&(performance.mark("keydown/end"),r.keydown=2)}function l(){performance.mark("input/start"),r.input=1,c()}function d(){1===r.input&&(performance.mark("input/end"),r.input=2)}function h(){1===r.render&&(performance.mark("render/end"),r.render=2)}function c(){setTimeout(u)}function u(){2===r.keydown&&2===r.input&&2===r.render&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),g("keydown",t),g("input",i),g("render",n),g("inputlatency",s),o++,performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),r.keydown=0,r.input=0,r.render=0)}function g(e,t){const i=performance.getEntriesByName(e)[0].duration;t.total+=i,t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}function p(e){return{average:e.total/o,max:e.max,min:e.min}}function m(e){e.total=0,e.min=Number.MAX_VALUE,e.max=0}e.onKeyDown=function(){u(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),r.keydown=1,queueMicrotask(a)},e.onBeforeInput=l,e.onInput=function(){0===r.input&&l(),queueMicrotask(d)},e.onKeyUp=function(){u()},e.onSelectionChange=function(){u()},e.onRenderStart=function(){2===r.keydown&&2===r.input&&0===r.render&&(performance.mark("render/start"),r.render=1,queueMicrotask(h),c())},e.getAndClearMeasurements=function(){if(0===o)return;const e={keydown:p(t),input:p(i),render:p(n),total:p(s),sampleCount:o};return m(t),m(i),m(n),m(s),o=0,e}}(n||(n={}))},94106:(e,t,i)=>{"use strict";i.d(t,{c:()=>l});var n=i(8597),s=i(41234),o=i(5662);class r extends o.jG{constructor(e){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){var i;null===(i=this._mediaQueryList)||void 0===i||i.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class a extends o.jG{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new r(e));this._register(t.onDidChange((()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)})))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}}const l=new class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=(0,n.Q2)(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,o.lC)(new a(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,o.lC)(s.Jh.once(n.Fv)((({vscodeWindowId:e})=>{e===t&&(null===i||void 0===i||i.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}},25154:(e,t,i)=>{"use strict";i.d(t,{B:()=>n,q:()=>u});var n,s=i(8597),o=i(25893),r=i(25890),a=i(58694),l=i(41234),d=i(5662),h=i(58925),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(n||(n={}));class u extends d.jG{constructor(){super(),this.dispatched=!1,this.targets=new h.w,this.ignoreTargets=new h.w,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(l.Jh.runAndSubscribe(s.Iv,(({window:e,disposables:t})=>{t.add(s.ko(e.document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),t.add(s.ko(e.document,"touchend",(t=>this.onTouchEnd(e,t)))),t.add(s.ko(e.document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}),{window:o.G,disposables:this._store}))}static addTarget(e){if(!u.isTouchDevice())return d.jG.None;u.INSTANCE||(u.INSTANCE=(0,d.lC)(new u));const t=u.INSTANCE.targets.push(e);return(0,d.s)(t)}static ignoreTarget(e){if(!u.isTouchDevice())return d.jG.None;u.INSTANCE||(u.INSTANCE=(0,d.lC)(new u));const t=u.INSTANCE.ignoreTargets.push(e);return(0,d.s)(t)}static isTouchDevice(){return"ontouchstart"in o.G||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,s=e.targetTouches.length;i<s;i++){const s=e.targetTouches.item(i);this.activeTouches[s.identifier]={id:s.identifier,initialTarget:s.target,initialTimeStamp:t,initialPageX:s.pageX,initialPageY:s.pageY,rollingTimestamps:[t],rollingPageX:[s.pageX],rollingPageY:[s.pageY]};const o=this.newGestureEvent(n.Start,s.target);o.pageX=s.pageX,o.pageY=s.pageY,this.dispatchEvent(o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e,t){const i=Date.now(),s=Object.keys(this.activeTouches).length;for(let o=0,a=t.changedTouches.length;o<a;o++){const a=t.changedTouches.item(o);if(!this.activeTouches.hasOwnProperty(String(a.identifier))){console.warn("move of an UNKNOWN touch",a);continue}const l=this.activeTouches[a.identifier],d=Date.now()-l.initialTimeStamp;if(d<u.HOLD_DELAY&&Math.abs(l.initialPageX-r.RT(l.rollingPageX))<30&&Math.abs(l.initialPageY-r.RT(l.rollingPageY))<30){const e=this.newGestureEvent(n.Tap,l.initialTarget);e.pageX=r.RT(l.rollingPageX),e.pageY=r.RT(l.rollingPageY),this.dispatchEvent(e)}else if(d>=u.HOLD_DELAY&&Math.abs(l.initialPageX-r.RT(l.rollingPageX))<30&&Math.abs(l.initialPageY-r.RT(l.rollingPageY))<30){const e=this.newGestureEvent(n.Contextmenu,l.initialTarget);e.pageX=r.RT(l.rollingPageX),e.pageY=r.RT(l.rollingPageY),this.dispatchEvent(e)}else if(1===s){const t=r.RT(l.rollingPageX),n=r.RT(l.rollingPageY),s=r.RT(l.rollingTimestamps)-l.rollingTimestamps[0],o=t-l.rollingPageX[0],a=n-l.rollingPageY[0],d=[...this.targets].filter((e=>l.initialTarget instanceof Node&&e.contains(l.initialTarget)));this.inertia(e,d,i,Math.abs(o)/s,o>0?1:-1,t,Math.abs(a)/s,a>0?1:-1,n)}this.dispatchEvent(this.newGestureEvent(n.End,l.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===n.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>u.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==n.Change&&e.type!==n.Contextmenu||(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const i of this.ignoreTargets)if(i.contains(e.initialTarget))return;const t=[];for(const i of this.targets)if(i.contains(e.initialTarget)){let n=0,s=e.initialTarget;for(;s&&s!==i;)n++,s=s.parentElement;t.push([n,i])}t.sort(((e,t)=>e[0]-t[0]));for(const[i,n]of t)n.dispatchEvent(e),this.dispatched=!0}}inertia(e,t,i,o,r,a,l,d,h){this.handle=s.PG(e,(()=>{const s=Date.now(),c=s-i;let g=0,p=0,m=!0;o+=u.SCROLL_FRICTION*c,l+=u.SCROLL_FRICTION*c,o>0&&(m=!1,g=r*o*c),l>0&&(m=!1,p=d*l*c);const f=this.newGestureEvent(n.Change);f.translationX=g,f.translationY=p,t.forEach((e=>e.dispatchEvent(f))),m||this.inertia(e,t,s,o,r,a+g,l,d,h+p)}))}onTouchMove(e){const t=Date.now();for(let i=0,s=e.changedTouches.length;i<s;i++){const s=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(s.identifier))){console.warn("end of an UNKNOWN touch",s);continue}const o=this.activeTouches[s.identifier],a=this.newGestureEvent(n.Change,o.initialTarget);a.translationX=s.pageX-r.RT(o.rollingPageX),a.translationY=s.pageY-r.RT(o.rollingPageY),a.pageX=s.pageX,a.pageY=s.pageY,this.dispatchEvent(a),o.rollingPageX.length>3&&(o.rollingPageX.shift(),o.rollingPageY.shift(),o.rollingTimestamps.shift()),o.rollingPageX.push(s.pageX),o.rollingPageY.push(s.pageY),o.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}u.SCROLL_FRICTION=-.005,u.HOLD_DELAY=700,u.CLEAR_TAP_COUNT_TIME=400,c([a.B],u,"isTouchDevice",null)},80789:(e,t,i)=>{"use strict";i.d(t,{H:()=>o});var n=i(25893),s=i(64383);function o(e,t){var i;const o=globalThis.MonacoEnvironment;if(null===o||void 0===o?void 0:o.createTrustedTypesPolicy)try{return o.createTrustedTypesPolicy(e,t)}catch(r){return void(0,s.dz)(r)}try{return null===(i=n.G.trustedTypes)||void 0===i?void 0:i.createPolicy(e,t)}catch(r){return void(0,s.dz)(r)}}},5646:(e,t,i)=>{"use strict";i.d(t,{Z4:()=>N,EH:()=>E,XF:()=>T});var n=i(60413),s=i(42731),o=i(8597),r=i(25154),a=i(42904),l=i(43545),d=i(56245),h=i(72962),c=i(68214),u=i(93090),g=i(25890),p=i(41234),m=i(24939),f=i(5662),_=i(98067),v=i(31629);const b=o.$,C="selectOption.entry.template";class y{get templateId(){return C}renderTemplate(e){const t=Object.create(null);return t.root=e,t.text=o.BC(e,b(".option-text")),t.detail=o.BC(e,b(".option-detail")),t.decoratorRight=o.BC(e,b(".option-decorator-right")),t}renderElement(e,t,i){const n=i,s=e.text,o=e.detail,r=e.decoratorRight,a=e.isDisabled;n.text.textContent=s,n.detail.textContent=o||"",n.decoratorRight.innerText=r||"",a?n.root.classList.add("option-disabled"):n.root.classList.remove("option-disabled")}disposeTemplate(e){}}class w extends f.jG{constructor(e,t,i,n,s){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=n,this.selectBoxOptions=s||Object.create(null),"number"!==typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=w.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new p.vl,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}setTitle(e){!this._hover&&e?this._hover=this._register((0,l.f)((0,a.nZ)("mouse"),this.selectElement,e)):this._hover&&this._hover.update(e)}getHeight(){return 22}getTemplateId(){return C}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=o.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=o.BC(this.selectDropDownContainer,b(".select-box-details-pane"));const t=o.BC(this.selectDropDownContainer,b(".select-box-dropdown-container-width-control")),i=o.BC(t,b(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",o.BC(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=o.li(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(o.ko(this.selectDropDownContainer,o.Bx.DRAG_START,(e=>{o.fs.stop(e,!0)})))}registerListeners(){let e;this._register(o.b2(this.selectElement,"change",(e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}))),this._register(o.ko(this.selectElement,o.Bx.CLICK,(e=>{o.fs.stop(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(o.ko(this.selectElement,o.Bx.MOUSE_DOWN,(e=>{o.fs.stop(e)}))),this._register(o.ko(this.selectElement,"touchstart",(t=>{e=this._isVisible}))),this._register(o.ko(this.selectElement,"touchend",(t=>{o.fs.stop(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(o.ko(this.selectElement,o.Bx.KEY_DOWN,(e=>{const t=new h.Z(e);let i=!1;_.zx?18!==t.keyCode&&16!==t.keyCode&&10!==t.keyCode&&3!==t.keyCode||(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),o.fs.stop(e,!0))})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){g.aI(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"===typeof e.description&&(this._hasDetails=!0)}))),void 0!==t&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){var e;null===(e=this.selectList)||void 0===e||e.splice(0,this.selectList.length,this.options)}select(e){e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const e=[];this.styles.listFocusBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=e.join("\n")}styleSelectElement(){var e,t,i;const n=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",s=null!==(t=this.styles.selectForeground)&&void 0!==t?t:"",o=null!==(i=this.styles.selectBorder)&&void 0!==i?i:"";this.selectElement.style.backgroundColor=n,this.selectElement.style.color=s,this.selectElement.style.borderColor=o}styleList(){var e,t;const i=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",n=o.gI(this.styles.selectListBackground,i);this.selectDropDownListContainer.style.backgroundColor=n,this.selectionDetailsPane.style.backgroundColor=n;const s=null!==(t=this.styles.focusBorder)&&void 0!==t?t:"";this.selectDropDownContainer.style.outlineColor=s,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){const n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{try{e.removeChild(this.selectDropDownContainer)}catch(t){}}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach(((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)})),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=o.zk(this.selectElement),i=o.BK(this.selectElement),n=o.zk(this.selectElement).getComputedStyle(this.selectElement),s=parseFloat(n.getPropertyValue("--dropdown-padding-top"))+parseFloat(n.getPropertyValue("--dropdown-padding-bottom")),r=t.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),a=i.top-w.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,l=this.selectElement.offsetWidth,d=this.setWidthControlElement(this.widthControlElement),h=Math.max(d,Math.round(l)).toString()+"px";this.selectDropDownContainer.style.width=h,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let c=this.selectList.contentHeight;this._hasDetails&&void 0===this._cachedMaxDetailsHeight&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const u=this._hasDetails?this._cachedMaxDetailsHeight:0,g=c+s+u,p=Math.floor((r-s-u)/this.getHeight()),m=Math.floor((a-s-u)/this.getHeight());if(e)return!(i.top+i.height>t.innerHeight-22||i.top<w.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||p<1&&m<1)&&(p<w.DEFAULT_MINIMUM_VISIBLE_OPTIONS&&m>p&&this.options.length>p?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(i.top+i.height>t.innerHeight-22||i.top<w.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||0===this._dropDownPosition&&p<1||1===this._dropDownPosition&&m<1)return this.hideSelectDropDown(!0),!1;if(0===this._dropDownPosition){if(this._isVisible&&p+m<1)return this.hideSelectDropDown(!0),!1;g>r&&(c=p*this.getHeight())}else g>a&&(c=m*this.getHeight());return this.selectList.layout(c),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=c+s+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=c+s+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=h,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}return!1}setWidthControlElement(e){let t=0;if(e){let i=0,n=0;this.options.forEach(((e,t)=>{const s=e.detail?e.detail.length:0,o=e.decoratorRight?e.decoratorRight.length:0,r=e.text.length+s+o;r>n&&(i=t,n=r)})),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=o.Tr(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=o.BC(e,b(".select-box-dropdown-list-container")),this.listRenderer=new y,this.selectList=new u.B8("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.detail&&(t+=`. ${e.detail}`),e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>(0,v.kg)({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>_.zx?"":"option",getWidgetRole:()=>"listbox"}}),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=this._register(new d.f(this.selectDropDownListContainer,"keydown")),i=p.Jh.chain(t.event,(e=>e.filter((()=>this.selectList.length>0)).map((e=>new h.Z(e)))));this._register(p.Jh.chain(i,(e=>e.filter((e=>3===e.keyCode))))(this.onEnter,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>2===e.keyCode))))(this.onEnter,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>9===e.keyCode))))(this.onEscape,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>16===e.keyCode))))(this.onUpArrow,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>18===e.keyCode))))(this.onDownArrow,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>12===e.keyCode))))(this.onPageDown,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>11===e.keyCode))))(this.onPageUp,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>14===e.keyCode))))(this.onHome,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>13===e.keyCode))))(this.onEnd,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=85&&e.keyCode<=113))))(this.onCharacter,this)),this._register(o.ko(this.selectList.getHTMLElement(),o.Bx.POINTER_UP,(e=>this.onPointerUp(e)))),this._register(this.selectList.onMouseOver((e=>"undefined"!==typeof e.index&&this.selectList.setFocus([e.index])))),this._register(this.selectList.onDidChangeFocus((e=>this.onListFocus(e)))),this._register(o.ko(this.selectDropDownContainer,o.Bx.FOCUS_OUT,(e=>{this._isVisible&&!o.QX(e.relatedTarget,this.selectDropDownContainer)&&this.onListBlur()}))),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;o.fs.stop(e);const t=e.target;if(!t)return;if(t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const n=Number(i.getAttribute("data-index")),s=i.classList.contains("option-disabled");n>=0&&n<this.options.length&&!s&&(this.selected=n,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0))}onListBlur(){this._sticky||(this.selected!==this._currentSelection&&this.select(this._currentSelection),this.hideSelectDropDown(!1))}renderDescriptionMarkdown(e,t){const i=e=>{for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes.item(t);"img"===(n.tagName&&n.tagName.toLowerCase())?e.removeChild(n):i(n)}},n=(0,c.Gc)({value:e,supportThemeIcons:!0},{actionHandler:t});return n.element.classList.add("select-box-description-markdown"),i(n.element),n.element}onListFocus(e){this._isVisible&&this._hasDetails&&this.updateDetail(e.indexes[0])}updateDetail(e){var t,i;this.selectionDetailsPane.innerText="";const n=this.options[e],s=null!==(t=null===n||void 0===n?void 0:n.description)&&void 0!==t?t:"",o=null!==(i=null===n||void 0===n?void 0:n.descriptionIsMarkdown)&&void 0!==i&&i;if(s){if(o){const e=n.descriptionMarkdownActionHandler;this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(s,e))}else this.selectionDetailsPane.innerText=s;this.selectionDetailsPane.style.display="block"}else this.selectionDetailsPane.style.display="none";this._skipLayout=!0,this.contextViewProvider.layout(),this._skipLayout=!1}onEscape(e){o.fs.stop(e),this.select(this._currentSelection),this.hideSelectDropDown(!0)}onEnter(e){o.fs.stop(e),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0)}onDownArrow(e){if(this.selected<this.options.length-1){o.fs.stop(e,!0);const t=this.options[this.selected+1].isDisabled;if(t&&this.options.length>this.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){if(this.selected>0){o.fs.stop(e,!0);this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onPageUp(e){o.fs.stop(e),this.selectList.focusPreviousPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected<this.options.length-1&&(this.selected++,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onPageDown(e){o.fs.stop(e),this.selectList.focusNextPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onHome(e){o.fs.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){o.fs.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){const t=m.YM.toString(e.keyCode);let i=-1;for(let n=0;n<this.options.length-1;n++)if(i=(n+this.selected+1)%this.options.length,this.options[i].text.charAt(0).toUpperCase()===t&&!this.options[i].isDisabled){this.select(i),this.selectList.setFocus([i]),this.selectList.reveal(this.selectList.getFocus()[0]),o.fs.stop(e);break}}dispose(){this.hideSelectDropDown(!1),super.dispose()}}w.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN=32,w.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN=2,w.DEFAULT_MINIMUM_VISIBLE_OPTIONS=3;class S extends f.jG{constructor(e,t,i,n){super(),this.selected=0,this.selectBoxOptions=n||Object.create(null),this.options=[],this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=this._register(new p.vl),this.styles=i,this.registerListeners(),this.setOptions(e,t)}registerListeners(){this._register(r.q.addTarget(this.selectElement)),[r.B.Tap].forEach((e=>{this._register(o.ko(this.selectElement,e,(e=>{this.selectElement.focus()})))})),this._register(o.b2(this.selectElement,"click",(e=>{o.fs.stop(e,!0)}))),this._register(o.b2(this.selectElement,"change",(e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})}))),this._register(o.b2(this.selectElement,"keydown",(e=>{let t=!1;_.zx?18!==e.keyCode&&16!==e.keyCode&&10!==e.keyCode||(t=!0):(18===e.keyCode&&e.altKey||10===e.keyCode||3===e.keyCode)&&(t=!0),t&&e.stopPropagation()})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){this.options&&g.aI(this.options,e)||(this.options=e,this.selectElement.options.length=0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled))}))),void 0!==t&&this.select(t)}select(e){0===this.options.length?this.selected=0:e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected<this.options.length&&"string"===typeof this.options[this.selected].text?this.selectElement.title=this.options[this.selected].text:this.selectElement.title=""}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){e.classList.add("select-container"),e.appendChild(this.selectElement),this.setOptions(this.options,this.selected),this.applyStyles()}applyStyles(){var e,t,i;this.selectElement&&(this.selectElement.style.backgroundColor=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",this.selectElement.style.color=null!==(t=this.styles.selectForeground)&&void 0!==t?t:"",this.selectElement.style.borderColor=null!==(i=this.styles.selectBorder)&&void 0!==i?i:"")}createOption(e,t,i){const n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n}}var k=i(17390);class x extends k.x{constructor(e,t,i,n,s){super(),_.zx&&!(null===s||void 0===s?void 0:s.useCustomDrawn)?this.selectBoxDelegate=new S(e,t,n,s):this.selectBoxDelegate=new w(e,t,i,n,s),this._register(this.selectBoxDelegate)}get onDidSelect(){return this.selectBoxDelegate.onDidSelect}setOptions(e,t){this.selectBoxDelegate.setOptions(e,t)}select(e){this.selectBoxDelegate.select(e)}focus(){this.selectBoxDelegate.focus()}blur(){this.selectBoxDelegate.blur()}setFocusable(e){this.selectBoxDelegate.setFocusable(e)}render(e){this.selectBoxDelegate.render(e)}}var L=i(36921),D=i(631);i(62469);class E extends f.jG{get action(){return this._action}constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof L.rc&&this._register(t.onDidChange((e=>{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new L.LN)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(r.q.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,n.gm&&this._register((0,o.ko)(e,o.Bx.DRAG_START,(e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(s.t.TEXT,this._action.label)})))),this._register((0,o.ko)(t,r.B.Tap,(e=>this.onClick(e,!0)))),this._register((0,o.ko)(t,o.Bx.MOUSE_DOWN,(e=>{i||o.fs.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),_.zx&&this._register((0,o.ko)(t,o.Bx.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register((0,o.ko)(t,o.Bx.CLICK,(e=>{o.fs.stop(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register((0,o.ko)(t,o.Bx.DBLCLICK,(e=>{o.fs.stop(e,!0)}))),[o.Bx.MOUSE_UP,o.Bx.MOUSE_OUT].forEach((e=>{this._register((0,o.ko)(t,e,(e=>{o.fs.stop(e),t.classList.remove("active")})))}))}onClick(e,t=!1){var i;o.fs.stop(e,!0);const n=D.z(this._context)?(null===(i=this.options)||void 0===i?void 0:i.useEventAsContext)?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){var e,t,i;if(!this.element)return;const n=null!==(e=this.getTooltip())&&void 0!==e?e:"";if(this.updateAriaLabel(),null===(t=this.options.hoverDelegate)||void 0===t?void 0:t.showNativeHover)this.element.title=n;else if(this.customHover||""===n)this.customHover&&this.customHover.update(n);else{const e=null!==(i=this.options.hoverDelegate)&&void 0!==i?i:(0,a.nZ)("element");this.customHover=this._store.add((0,l.f)(e,this.element,n))}}updateAriaLabel(){var e;if(this.element){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.element.setAttribute("aria-label",t)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class N extends E{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),D.j(this.element);const t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){const e=document.createElement("span");e.classList.add("keybinding"),e.textContent=this.options.keybinding,this.element.appendChild(e)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===L.wv.ID?"presentation":this.options.isMenu?"menuitem":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=v.kg({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),null!==e&&void 0!==e?e:void 0}updateClass(){var e;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):null===(e=this.label)||void 0===e||e.classList.remove("codicon")}updateEnabled(){var e,t;this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),null===(e=this.element)||void 0===e||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),null===(t=this.element)||void 0===t||t.classList.add("disabled"))}updateAriaLabel(){var e;if(this.label){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.label.setAttribute("aria-label",t)}}updateChecked(){this.label&&(void 0!==this.action.checked?(this.label.classList.toggle("checked",this.action.checked),this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox")):(this.label.classList.remove("checked"),this.label.removeAttribute("aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}}class T extends E{constructor(e,t,i,n,s,o,r){super(e,t),this.selectBox=new x(i,n,s,o,r),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect((e=>this.runAction(e.selected,e.index))))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){var e;null===(e=this.selectBox)||void 0===e||e.focus()}blur(){var e;null===(e=this.selectBox)||void 0===e||e.blur()}render(e){this.selectBox.render(e)}}},11799:(e,t,i)=>{"use strict";i.d(t,{E:()=>c});var n=i(8597),s=i(72962),o=i(5646),r=i(42904),a=i(36921),l=i(41234),d=i(5662),h=i(631);i(62469);class c extends d.jG{constructor(e,t={}){var i,h,c,u,g,p,m;let f,_;switch(super(),this._actionRunnerDisposables=this._register(new d.Cm),this.viewItemDisposables=this._register(new d.$w),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new l.vl),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new l.vl({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new l.vl),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new l.vl),this.onWillRun=this._onWillRun.event,this.options=t,this._context=null!==(i=t.context)&&void 0!==i?i:null,this._orientation=null!==(h=this.options.orientation)&&void 0!==h?h:0,this._triggerKeys={keyDown:null!==(u=null===(c=this.options.triggerKeys)||void 0===c?void 0:c.keyDown)&&void 0!==u&&u,keys:null!==(p=null===(g=this.options.triggerKeys)||void 0===g?void 0:g.keys)&&void 0!==p?p:[3,10]},this._hoverDelegate=null!==(m=t.hoverDelegate)&&void 0!==m?m:this._register((0,r.bW)()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new a.LN,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",this._orientation){case 0:f=[15],_=[17];break;case 1:f=[16],_=[18],this.domNode.className+=" vertical"}this._register(n.ko(this.domNode,n.Bx.KEY_DOWN,(e=>{const t=new s.Z(e);let i=!0;const n="number"===typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;f&&(t.equals(f[0])||t.equals(f[1]))?i=this.focusPrevious():_&&(t.equals(_[0])||t.equals(_[1]))?i=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?i=this.focusFirst():t.equals(13)?i=this.focusLast():t.equals(2)&&n instanceof o.EH&&n.trapsArrowNavigation?i=this.focusNext():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:i=!1,i&&(t.preventDefault(),t.stopPropagation())}))),this._register(n.ko(this.domNode,n.Bx.KEY_UP,(e=>{const t=new s.Z(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026)||t.equals(16)||t.equals(18)||t.equals(15)||t.equals(17))&&this.updateFocusedItem()}))),this.focusTracker=this._register(n.w5(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{n.bq()!==this.domNode&&n.QX(n.bq(),this.domNode)||(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const e=this.viewItems.find((e=>e instanceof o.EH&&e.isEnabled()));e instanceof o.EH&&e.setFocusable(!0)}else this.viewItems.forEach((e=>{e instanceof o.EH&&e.setFocusable(!1)}))}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){var e,t;for(let i=0;i<this.actionsList.children.length;i++){const s=this.actionsList.children[i];if(n.QX(n.bq(),s)){this.focusedItem=i,null===(t=null===(e=this.viewItems[this.focusedItem])||void 0===e?void 0:e.showHover)||void 0===t||t.call(e);break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach((t=>t.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems.forEach((t=>t.actionRunner=e))}getContainer(){return this.domNode}getAction(e){var t;if("number"===typeof e)return null===(t=this.viewItems[e])||void 0===t?void 0:t.action;if(e instanceof HTMLElement){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t<this.actionsList.childNodes.length;t++)if(this.actionsList.childNodes[t]===e)return this.viewItems[t].action}}push(e,t={}){const i=Array.isArray(e)?e:[e];let s=h.Et(t.index)?t.index:null;i.forEach((e=>{const i=document.createElement("li");let r;i.className="action-item",i.setAttribute("role","presentation");const a={hoverDelegate:this._hoverDelegate,...t};this.options.actionViewItemProvider&&(r=this.options.actionViewItemProvider(e,a)),r||(r=new o.Z4(this.context,e,a)),this.options.allowContextMenu||this.viewItemDisposables.set(r,n.ko(i,n.Bx.CONTEXT_MENU,(e=>{n.fs.stop(e,!0)}))),r.actionRunner=this._actionRunner,r.setActionContext(this.context),r.render(i),this.focusable&&r instanceof o.EH&&0===this.viewItems.length&&r.setFocusable(!0),null===s||s<0||s>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(r)):(this.actionsList.insertBefore(i,this.actionsList.children[s]),this.viewItems.splice(s,0,r),s++)})),"number"===typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=(0,d.AS)(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),n.w_(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return 0===this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"===typeof e?t=e:"boolean"===typeof e&&(i=e),i&&"undefined"===typeof this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){if("undefined"===typeof this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.wv.ID));return this.updateFocus(),!0}focusPrevious(e){if("undefined"===typeof this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.wv.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n,s;"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&(null===(n=this.viewItems[this.previouslyFocusedItem])||void 0===n||n.blur());const o=void 0!==this.focusedItem?this.viewItems[this.focusedItem]:void 0;if(o){let n=!0;h.Tn(o.focus)||(n=!1),this.options.focusOnlyEnabledItems&&h.Tn(o.isEnabled)&&!o.isEnabled()&&(n=!1),o.action.id===a.wv.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(o.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),n&&(null===(s=o.showHover)||void 0===s||s.call(o))}}doTrigger(e){if("undefined"===typeof this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof o.EH){const i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this.viewItems=(0,d.AS)(this.viewItems),this.getContainer().remove(),super.dispose()}}},11007:(e,t,i)=>{"use strict";i.d(t,{xE:()=>c,vr:()=>h,h5:()=>u});var n=i(8597);const s=2e4;let o,r,a,l,d;function h(e){o=document.createElement("div"),o.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),o.appendChild(e),e};r=t(),a=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),o.appendChild(e),e};l=i(),d=i(),e.appendChild(o)}function c(e){o&&(r.textContent!==e?(n.w_(a),g(r,e)):(n.w_(r),g(a,e)))}function u(e){o&&(l.textContent!==e?(n.w_(d),g(l,e)):(n.w_(l),g(d,e)))}function g(e,t){n.w_(e),t.length>s&&(t=t.substr(0,s)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},62890:(e,t,i)=>{"use strict";i.d(t,{$:()=>f});var n=i(8597),s=i(83750),o=i(72962),r=i(68214),a=i(25154),l=i(42904),d=i(43545),h=i(20370),c=i(47661),u=i(41234),g=i(16980),p=i(5662),m=i(25689);c.Q1.white.toString(),c.Q1.white.toString();class f extends p.jG{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new u.vl),this._onDidEscape=this._register(new u.vl),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!t.secondary);const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,s=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=s||"",this._element.style.backgroundColor=i||"",t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),"string"===typeof t.title&&this.setTitle(t.title),"string"===typeof t.ariaLabel&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this._register(a.q.addTarget(this._element)),[n.Bx.CLICK,a.B.Tap].forEach((e=>{this._register((0,n.ko)(this._element,e,(e=>{this.enabled?this._onDidClick.fire(e):n.fs.stop(e)})))})),this._register((0,n.ko)(this._element,n.Bx.KEY_DOWN,(e=>{const t=new o.Z(e);let i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._onDidEscape.fire(e),this._element.blur(),i=!0),i&&n.fs.stop(t,!0)}))),this._register((0,n.ko)(this._element,n.Bx.MOUSE_OVER,(e=>{this._element.classList.contains("disabled")||this.updateBackground(!0)}))),this._register((0,n.ko)(this._element,n.Bx.MOUSE_OUT,(e=>{this.updateBackground(!1)}))),this.focusTracker=this._register((0,n.w5)(this._element)),this._register(this.focusTracker.onDidFocus((()=>{this.enabled&&this.updateBackground(!0)}))),this._register(this.focusTracker.onDidBlur((()=>{this.enabled&&this.updateBackground(!1)})))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){const t=[];for(let i of(0,h.n)(e))if("string"===typeof i){if(i=i.trim(),""===i)continue;const e=document.createElement("span");e.textContent=i,t.push(e)}else t.push(i);return t}updateBackground(e){let t;t=this.options.secondary?e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){var t;if(this._label===e)return;if((0,g.VS)(this._label)&&(0,g.VS)(e)&&(0,g.nK)(this._label,e))return;this._element.classList.add("monaco-text-button");const i=this.options.supportShortLabel?this._labelElement:this._element;if((0,g.VS)(e)){const o=(0,r.Gc)(e,{inline:!0});o.dispose();const a=null===(t=o.element.querySelector("p"))||void 0===t?void 0:t.innerHTML;if(a){const e=(0,s.aj)(a,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});i.innerHTML=e}else(0,n.Ln)(i)}else this.options.supportIcons?(0,n.Ln)(i,...this.getContentElements(e)):i.textContent=e;let o="";"string"===typeof this.options.title?o=this.options.title:this.options.title&&(o=(0,r.R9)(e)),this.setTitle(o),"string"===typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",o),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...m.L.asClassNameArray(e))}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}setTitle(e){var t;this._hover||""===e?this._hover&&this._hover.update(e):this._hover=this._register((0,d.f)(null!==(t=this.options.hoverDelegate)&&void 0!==t?t:(0,l.nZ)("mouse"),this._element,e))}}},97791:()=>{},3828:(e,t,i)=>{"use strict";i.d(t,{x:()=>o});var n=i(8597),s=i(91508);class o{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=(0,n.BC)(e,(0,n.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){var e,t;this.element.textContent=(0,s.GP)(this.countFormat,this.count),this.element.title=(0,s.GP)(this.titleFormat,this.count),this.element.style.backgroundColor=null!==(e=this.styles.badgeBackground)&&void 0!==e?e:"",this.element.style.color=null!==(t=this.styles.badgeForeground)&&void 0!==t?t:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}},89506:(e,t,i)=>{"use strict";i.d(t,{d:()=>g});var n=i(8597),s=i(5646),o=i(72962),r=i(25154),a=i(36921),l=i(41234);class d extends a.LN{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new l.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,n.BC)(e,(0,n.$)(".monaco-dropdown")),this._label=(0,n.BC)(this._element,(0,n.$)(".dropdown-label"));let i=t.labelRenderer;i||(i=e=>(e.textContent=t.label||"",null));for(const o of[n.Bx.CLICK,n.Bx.MOUSE_DOWN,r.B.Tap])this._register((0,n.ko)(this.element,o,(e=>n.fs.stop(e,!0))));for(const o of[n.Bx.MOUSE_DOWN,r.B.Tap])this._register((0,n.ko)(this._label,o,(e=>{(0,n.Er)(e)&&(e.detail>1||0!==e.button)||(this.visible?this.hide():this.show())})));this._register((0,n.ko)(this._label,n.Bx.KEY_UP,(e=>{const t=new o.Z(e);(t.equals(3)||t.equals(10))&&(n.fs.stop(e,!0),this.visible?this.hide():this.show())})));const s=i(this._label);s&&this._register(s),this._register(r.q.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class h extends d{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}var c=i(43545),u=i(42904);class g extends s.EH{constructor(e,t,i,n=Object.create(null)){super(null,e,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new l.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{var t;this.element=(0,n.BC)(e,(0,n.$)("a.action-label"));let i=[];return"string"===typeof this.options.classNames?i=this.options.classNames.split(/\s+/g).filter((e=>!!e)):this.options.classNames&&(i=this.options.classNames),i.find((e=>"icon"===e))||i.push("codicon"),this.element.classList.add(...i),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register((0,c.f)(null!==(t=this.options.hoverDelegate)&&void 0!==t?t:(0,u.nZ)("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new h(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility((e=>{var t;null===(t=this.element)||void 0===t||t.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return e.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),null!==e&&void 0!==e?e:void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){var e;null===(e=this.dropdownMenu)||void 0===e||e.show()}updateEnabled(){var e,t;const i=!this.action.enabled;null===(e=this.actionItem)||void 0===e||e.classList.toggle("disabled",i),null===(t=this.element)||void 0===t||t.classList.toggle("disabled",i)}}},88443:(e,t,i)=>{"use strict";i.d(t,{c:()=>u});var n=i(8597),s=i(23034),o=i(91581),r=i(17390),a=i(41234),l=(i(10713),i(31629)),d=i(5662),h=i(42904);const c=l.kg("defaultLabel","input");class u extends r.x{constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new d.HE),this.additionalToggles=[],this._onDidOptionChange=this._register(new a.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new a.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new a.vl),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new a.vl),this._onKeyUp=this._register(new a.vl),this._onCaseSensitiveKeyDown=this._register(new a.vl),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new a.vl),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||c,this.showCommonFindToggles=!!i.showCommonFindToggles;const r=i.appendCaseSensitiveLabel||"",l=i.appendWholeWordsLabel||"",u=i.appendRegexLabel||"",g=i.history||[],p=!!i.flexibleHeight,m=!!i.flexibleWidth,f=i.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new o.mJ(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:g,showHistoryHint:i.showHistoryHint,flexibleHeight:p,flexibleWidth:m,flexibleMaxHeight:f,inputBoxStyles:i.inputBoxStyles}));const _=this._register((0,h.bW)());if(this.showCommonFindToggles){this.regex=this._register(new s.Ix({appendTitle:u,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.regex.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.regex.onKeyDown((e=>{this._onRegexKeyDown.fire(e)}))),this.wholeWords=this._register(new s.nV({appendTitle:l,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.wholeWords.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this.caseSensitive=this._register(new s.bc({appendTitle:r,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.caseSensitive.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.caseSensitive.onKeyDown((e=>{this._onCaseSensitiveKeyDown.fire(e)})));const e=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,(t=>{if(t.equals(15)||t.equals(17)||t.equals(9)){const i=e.indexOf(this.domNode.ownerDocument.activeElement);if(i>=0){let s=-1;t.equals(17)?s=(i+1)%e.length:t.equals(15)&&(s=0===i?e.length-1:i-1),t.equals(9)?(e[i].blur(),this.inputBox.focus()):s>=0&&e[s].focus(),n.fs.stop(t,!0)}}}))}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(null===i||void 0===i?void 0:i.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),null===e||void 0===e||e.appendChild(this.domNode),this._register(n.ko(this.inputBox.inputElement,"compositionstart",(e=>{this.imeSessionInProgress=!0}))),this._register(n.ko(this.inputBox.inputElement,"compositionend",(e=>{this.imeSessionInProgress=!1,this._onInput.fire()}))),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}get onDidChange(){return this.inputBox.onDidChange}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget)}enable(){var e,t,i;this.domNode.classList.remove("disabled"),this.inputBox.enable(),null===(e=this.regex)||void 0===e||e.enable(),null===(t=this.wholeWords)||void 0===t||t.enable(),null===(i=this.caseSensitive)||void 0===i||i.enable();for(const n of this.additionalToggles)n.enable()}disable(){var e,t,i;this.domNode.classList.add("disabled"),this.inputBox.disable(),null===(e=this.regex)||void 0===e||e.disable(),null===(t=this.wholeWords)||void 0===t||t.disable(),null===(i=this.caseSensitive)||void 0===i||i.disable();for(const n of this.additionalToggles)n.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const t of this.additionalToggles)t.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new d.Cm;for(const t of null!==e&&void 0!==e?e:[])this.additionalTogglesDisposables.value.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.value.add(t.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()}))),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(e=!1){var t,i,n,s,o,r;this.inputBox.paddingRight=e?0:(null!==(i=null===(t=this.caseSensitive)||void 0===t?void 0:t.width())&&void 0!==i?i:0)+(null!==(s=null===(n=this.wholeWords)||void 0===n?void 0:n.width())&&void 0!==s?s:0)+(null!==(r=null===(o=this.regex)||void 0===o?void 0:o.width())&&void 0!==r?r:0)+this.additionalToggles.reduce(((e,t)=>e+t.width()),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){var e,t;return null!==(t=null===(e=this.caseSensitive)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){var e,t;return null!==(t=null===(e=this.wholeWords)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){var e,t;return null!==(t=null===(e=this.regex)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){var e;null===(e=this.caseSensitive)||void 0===e||e.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}},23034:(e,t,i)=>{"use strict";i.d(t,{Ix:()=>u,bc:()=>h,nV:()=>c});var n=i(42904),s=i(35315),o=i(10350),r=i(31629);const a=r.kg("caseDescription","Match Case"),l=r.kg("wordsDescription","Match Whole Word"),d=r.kg("regexDescription","Use Regular Expression");class h extends s.l{constructor(e){var t;super({icon:o.W.caseSensitive,title:a+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,n.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class c extends s.l{constructor(e){var t;super({icon:o.W.wholeWord,title:l+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,n.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class u extends s.l{constructor(e){var t;super({icon:o.W.regex,title:d+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,n.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}},37479:(e,t,i)=>{"use strict";i.d(t,{_:()=>d});var n=i(8597),s=i(42904),o=i(43545),r=i(20370),a=i(5662),l=i(10146);class d extends a.jG{constructor(e,t){var i;super(),this.options=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=null!==(i=null===t||void 0===t?void 0:t.supportIcons)&&void 0!==i&&i,this.domNode=n.BC(e,n.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=d.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&l.aI(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){var e,t,i,a;const l=[];let d=0;for(const s of this.highlights){if(s.end===s.start)continue;if(d<s.start){const e=this.text.substring(d,s.start);this.supportIcons?l.push(...(0,r.n)(e)):l.push(e),d=s.start}const e=this.text.substring(d,s.end),t=n.$("span.highlight",void 0,...this.supportIcons?(0,r.n)(e):[e]);s.extraClasses&&t.classList.add(...s.extraClasses),l.push(t),d=s.end}if(d<this.text.length){const e=this.text.substring(d);this.supportIcons?l.push(...(0,r.n)(e)):l.push(e)}if(n.Ln(this.domNode,...l),null===(t=null===(e=this.options)||void 0===e?void 0:e.hoverDelegate)||void 0===t?void 0:t.showNativeHover)this.domNode.title=this.title;else if(this.customHover||""===this.title)this.customHover&&this.customHover.update(this.title);else{const e=null!==(a=null===(i=this.options)||void 0===i?void 0:i.hoverDelegate)&&void 0!==a?a:(0,s.nZ)("mouse");this.customHover=this._register((0,o.f)(e,this.domNode,this.title))}this.didEverRender=!0}static escapeNewLines(e,t){let i=0,n=0;return e.replace(/\r\n|\r|\n/g,((e,s)=>{n="\r\n"===e?-1:0,s+=i;for(const i of t)i.end<=s||(i.start>=s&&(i.start+=n),i.end>=s&&(i.end+=n));return i+=n,"\u23ce"}))}}},42904:(e,t,i)=>{"use strict";i.d(t,{MW:()=>a,bW:()=>d,nZ:()=>l});var n=i(91090);let s=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});const o=new n.d((()=>s("mouse",!1))),r=new n.d((()=>s("element",!1)));function a(e){s=e}function l(e){return"element"===e?r.value:o.value}function d(){return s("element",!0)}},52776:(e,t,i)=>{"use strict";i.d(t,{jQ:()=>h,N4:()=>d,vr:()=>c});var n=i(8597),s=i(72962),o=i(31295),r=i(5662),a=i(31629);const l=n.$;class d extends r.jG{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new o.MU(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class h extends r.jG{static render(e,t,i){return new h(e,t,i)}constructor(e,t,i){super(),this.actionContainer=n.BC(e,l("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=n.BC(this.actionContainer,l("a.action")),this.action.setAttribute("role","button"),t.iconClass&&n.BC(this.action,l(`span.icon.${t.iconClass}`));n.BC(this.action,l("span")).textContent=i?`${t.label} (${i})`:t.label,this._register(n.ko(this.actionContainer,n.Bx.CLICK,(e=>{e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer)}))),this._register(n.ko(this.actionContainer,n.Bx.KEY_DOWN,(e=>{const i=new s.Z(e);(i.equals(3)||i.equals(10))&&(e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer))}))),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}function c(e,t){return e&&t?(0,a.kg)("acessibleViewHint","Inspect this in the accessible view with {0}.",t):e?(0,a.kg)("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}},43545:(e,t,i)=>{"use strict";i.d(t,{$:()=>c,f:()=>p});var n=i(8597),s=i(90766),o=i(18447),r=i(16980),a=i(37882),l=i(5662),d=i(631),h=i(31629);function c(e,t){(0,d.Kg)(t)?e.title=(0,a.pS)(t):(null===t||void 0===t?void 0:t.markdownNotSupportedFallback)?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}class u{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){var n;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(void 0===e||(0,d.Kg)(e)||e instanceof HTMLElement)s=e;else if((0,d.Tn)(e.markdown)){this._hoverWidget||this.show((0,h.kg)("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new o.Q;const i=this._cancellationTokenSource.token;if(s=await e.markdown(i),void 0===s&&(s=e.markdownNotSupportedFallback),this.isDisposed||i.isCancellationRequested)return}else s=null!==(n=e.markdown)&&void 0!==n?n:e.markdownNotSupportedFallback;this.show(s,t,i)}show(e,t,i){const n=this._hoverWidget;if(this.hasContent(e)){const s={content:e,target:this.target,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!n},position:{hoverPosition:2},...i};this._hoverWidget=this.hoverDelegate.showHover(s,t)}null===n||void 0===n||n.dispose()}hasContent(e){return!!e&&(!(0,r.VS)(e)||!!e.value)}get isDisposed(){var e;return null===(e=this._hoverWidget)||void 0===e?void 0:e.isDisposed}dispose(){var e,t;null===(e=this._hoverWidget)||void 0===e||e.dispose(),null===(t=this._cancellationTokenSource)||void 0===t||t.dispose(!0),this._cancellationTokenSource=void 0}}function g(e,t){for(t=null!==t&&void 0!==t?t:n.zk(e).document.body;!e.hasAttribute("custom-hover")&&e!==t;)e=e.parentElement;return e}function p(e,t,i,o){let r,a;t.setAttribute("custom-hover","true"),""!==t.title&&(console.warn("HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute."),console.trace("Stack trace:",t.title),t.title="");const d=(t,i)=>{var n;const s=void 0!==a;t&&(null===a||void 0===a||a.dispose(),a=void 0),i&&(null===r||void 0===r||r.dispose(),r=void 0),s&&(null===(n=e.onDidHideHover)||void 0===n||n.call(e),a=void 0)},h=(n,r,l)=>new s.pc((async()=>{a&&!a.isDisposed||(a=new u(e,l||t,n>0),await a.update("function"===typeof i?i():i,r,o))}),n);let c=!1;const p=n.ko(t,n.Bx.MOUSE_DOWN,(()=>{c=!0,d(!0,!0)}),!0),m=n.ko(t,n.Bx.MOUSE_UP,(()=>{c=!1}),!0),f=n.ko(t,n.Bx.MOUSE_LEAVE,(e=>{c=!1,d(!1,e.fromElement===t)}),!0),_=n.ko(t,n.Bx.MOUSE_OVER,(i=>{if(r)return;const s=new l.Cm,o={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>{o.x=e.x+10,e.target instanceof HTMLElement&&g(e.target,t)!==t&&d(!0,!0)};s.add(n.ko(t,n.Bx.MOUSE_MOVE,e,!0))}r=s,i.target instanceof HTMLElement&&g(i.target,t)!==t||s.add(h(e.delay,!1,o))}),!0),v=()=>{if(c||r)return;const i={targetElements:[t],dispose:()=>{}},s=new l.Cm;s.add(n.ko(t,n.Bx.BLUR,(()=>d(!0,!0)),!0)),s.add(h(e.delay,!1,i)),r=s};let b;const C=t.tagName.toLowerCase();"input"!==C&&"textarea"!==C&&(b=n.ko(t,n.Bx.FOCUS,v,!0));return{show:e=>{d(!1,!0),h(0,e)},hide:()=>{d(!0,!0)},update:async(e,t)=>{i=e,await(null===a||void 0===a?void 0:a.update(i,void 0,t))},dispose:()=>{_.dispose(),f.dispose(),p.dispose(),m.dispose(),null===b||void 0===b||b.dispose(),d(!0,!0)}}}},21852:(e,t,i)=>{"use strict";i.d(t,{s:()=>c});var n=i(8597),s=i(37479),o=i(43545),r=i(5662),a=i(10146),l=i(92719),d=i(42904);class h{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class c extends r.jG{constructor(e,t){var i;super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new h(n.BC(e,n.$(".monaco-icon-label")))),this.labelContainer=n.BC(this.domNode.element,n.$(".monaco-icon-label-container")),this.nameContainer=n.BC(this.labelContainer,n.$("span.monaco-icon-name-container")),(null===t||void 0===t?void 0:t.supportHighlights)||(null===t||void 0===t?void 0:t.supportIcons)?this.nameNode=this._register(new g(this.nameContainer,!!t.supportIcons)):this.nameNode=new u(this.nameContainer),this.hoverDelegate=null!==(i=null===t||void 0===t?void 0:t.hoverDelegate)&&void 0!==i?i:(0,d.nZ)("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){var n;const o=["monaco-icon-label"],r=["monaco-icon-label-container"];let a="";if(i&&(i.extraClasses&&o.push(...i.extraClasses),i.italic&&o.push("italic"),i.strikethrough&&o.push("strikethrough"),i.disabledCommand&&r.push("disabled"),i.title&&("string"===typeof i.title?a+=i.title:a+=e)),this.domNode.className=o.join(" "),this.domNode.element.setAttribute("aria-label",a),this.labelContainer.className=r.join(" "),this.setupHover((null===i||void 0===i?void 0:i.descriptionTitle)?this.labelContainer:this.element,null===i||void 0===i?void 0:i.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){const e=this.getOrCreateDescriptionNode();e instanceof s._?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,null===i||void 0===i?void 0:i.labelEscapeNewLines),this.setupHover(e.element,null===i||void 0===i?void 0:i.descriptionTitle)):(e.textContent=t&&(null===i||void 0===i?void 0:i.labelEscapeNewLines)?s._.escapeNewLines(t,[]):t||"",this.setupHover(e.element,(null===i||void 0===i?void 0:i.descriptionTitle)||""),e.empty=!t)}if((null===i||void 0===i?void 0:i.suffix)||this.suffixNode){this.getOrCreateSuffixNode().textContent=null!==(n=null===i||void 0===i?void 0:i.suffix)&&void 0!==n?n:""}}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate.showNativeHover)(0,o.$)(e,t);else{const i=(0,o.f)(this.hoverDelegate,e,t);i&&this.customHovers.set(e,i)}else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const e=this._register(new h(n.Pl(this.nameContainer,n.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new h(n.BC(e.element,n.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){var e;if(!this.descriptionNode){const t=this._register(new h(n.BC(this.labelContainer,n.$("span.monaco-icon-description-container"))));(null===(e=this.creationOptions)||void 0===e?void 0:e.supportDescriptionHighlights)?this.descriptionNode=this._register(new s._(n.BC(t.element,n.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new h(n.BC(t.element,n.$("span.label-description"))))}return this.descriptionNode}}class u{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,a.aI)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=n.BC(this.container,n.$("a.label-name",{id:null===t||void 0===t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i<e.length;i++){const s=e[i],o=(null===t||void 0===t?void 0:t.domId)&&`${null===t||void 0===t?void 0:t.domId}_${i}`;n.BC(this.container,n.$("a.label-name",{id:o,"data-icon-label-count":e.length,"data-icon-label-index":i,role:"treeitem"},s)),i<e.length-1&&n.BC(this.container,n.$("span.label-separator",void 0,(null===t||void 0===t?void 0:t.separator)||"/"))}}}}class g extends r.jG{constructor(e,t){super(),this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,a.aI)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=this._register(new s._(n.BC(this.container,n.$("a.label-name",{id:null===t||void 0===t?void 0:t.domId})),{supportIcons:this.supportIcons}))),this.singleLabel.set(e,null===t||void 0===t?void 0:t.matches,void 0,null===t||void 0===t?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=(null===t||void 0===t?void 0:t.separator)||"/",o=function(e,t,i){if(!i)return;let n=0;return e.map((e=>{const s={start:n,end:n+e.length},o=i.map((e=>l.Q.intersect(s,e))).filter((e=>!l.Q.isEmpty(e))).map((({start:e,end:t})=>({start:e-n,end:t-n})));return n=s.end+t.length,o}))}(e,i,null===t||void 0===t?void 0:t.matches);for(let r=0;r<e.length;r++){const a=e[r],l=o?o[r]:void 0,d=(null===t||void 0===t?void 0:t.domId)&&`${null===t||void 0===t?void 0:t.domId}_${r}`,h=n.$("a.label-name",{id:d,"data-icon-label-count":e.length,"data-icon-label-index":r,role:"treeitem"});this._register(new s._(n.BC(this.container,h),{supportIcons:this.supportIcons})).set(a,l,void 0,null===t||void 0===t?void 0:t.labelEscapeNewLines),r<e.length-1&&n.BC(h,n.$("span.label-separator",void 0,i))}}}}},20370:(e,t,i)=>{"use strict";i.d(t,{n:()=>r,s:()=>a});var n=i(8597),s=i(25689);const o=new RegExp(`(\\\\)?\\$\\((${s.L.iconNameExpression}(?:${s.L.iconModifierExpression})?)\\)`,"g");function r(e){const t=new Array;let i,n=0,s=0;for(;null!==(i=o.exec(e));){s=i.index||0,n<s&&t.push(e.substring(n,s)),n=(i.index||0)+i[0].length;const[,o,r]=i;t.push(o?`$(${r})`:a({id:r}))}return n<e.length&&t.push(e.substring(n)),t}function a(e){const t=n.$("span");return t.classList.add(...s.L.asClassNameArray(e)),t}},91581:(e,t,i)=>{"use strict";i.d(t,{mJ:()=>C,x8:()=>v});var n=i(8597),s=i(56245),o=i(27661),r=i(11799),a=i(11007),l=i(42904),d=i(43545),h=i(31295),c=i(17390),u=i(41234);class g{constructor(e,t=0,i=e.length,n=t-1){this.items=e,this.start=t,this.end=i,this.index=n}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class p{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._navigator.next()}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return null===this._navigator.current()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new g(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}var m=i(10146),f=i(31629);const _=n.$,v={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class b extends c.x{constructor(e,t,i){var o;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new u.vl),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new u.vl),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=null!==(o=this.options.tooltip)&&void 0!==o?o:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=n.BC(e,_(".monaco-inputbox.idle"));const a=this.options.flexibleHeight?"textarea":"input",l=n.BC(this.element,_(".ibwrapper"));if(this.input=n.BC(l,_(a+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,(()=>this.element.classList.add("synthetic-focus"))),this.onblur(this.input,(()=>this.element.classList.remove("synthetic-focus"))),this.options.flexibleHeight){this.maxHeight="number"===typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=n.BC(l,_("div.mirror")),this.mirror.innerText="\xa0",this.scrollableElement=new h.Se(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),n.BC(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new s.f(e.ownerDocument,"selectionchange")),i=u.Jh.filter(t.event,(()=>{const t=e.ownerDocument.getSelection();return(null===t||void 0===t?void 0:t.anchorNode)===l}));this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,(()=>this.onValueChange())),this.onblur(this.input,(()=>this.onBlur())),this.onfocus(this.input,(()=>this.onFocus())),this._register(this.ignoreGesture(this.input)),setTimeout((()=>this.updateMirror()),0),this.options.actions&&(this.actionbar=this._register(new r.E(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.hover?this.hover.update(e):this.hover=this._register((0,d.f)((0,l.nZ)("mouse"),this.input,e))}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"===typeof this.cachedHeight?this.cachedHeight:n.OK(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return n.X7(this.input)}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}getSelection(){var e;const t=this.input.selectionStart;if(null===t)return null;return{start:t,end:null!==(e=this.input.selectionEnd)&&void 0!==e?e:t}}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!==typeof this.cachedContentHeight||"number"!==typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){if("open"===this.state&&(0,m.aI)(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${n.gI(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null===e||void 0===e?void 0:e.type}stylesForType(e){const t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=n.Tr(this.element)+"px";let i;this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{var s,r;if(!this.message)return null;e=n.BC(i,_(".monaco-inputbox-container")),t();const a={inline:!0,className:"monaco-inputbox-message"},l=this.message.formatContent?(0,o.yk)(this.message.content,a):(0,o.S5)(this.message.content,a);l.classList.add(this.classForType(this.message.type));const d=this.stylesForType(this.message.type);return l.style.backgroundColor=null!==(s=d.background)&&void 0!==s?s:"",l.style.color=null!==(r=d.foreground)&&void 0!==r?r:"",l.style.border=d.border?`1px solid ${d.border}`:"",n.BC(e,l),null},onHide:()=>{this.state="closed"},layout:t}),i=3===this.message.type?f.kg("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?f.kg("alertWarningMessage","Warning: {0}",this.message.content):f.kg("alertInfoMessage","Info: {0}",this.message.content),a.xE(i),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText="\xa0",this.layout()}applyStyles(){var e,t,i;const s=this.options.inputBoxStyles,o=null!==(e=s.inputBackground)&&void 0!==e?e:"",r=null!==(t=s.inputForeground)&&void 0!==t?t:"",a=null!==(i=s.inputBorder)&&void 0!==i?i:"";this.element.style.backgroundColor=o,this.element.style.color=r,this.input.style.backgroundColor="inherit",this.input.style.color=r,this.element.style.border=`1px solid ${n.gI(a,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=n.OK(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,s=t.value;null!==i&&null!==n&&(this.value=s.substr(0,i)+e+s.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){var e;this._hideMessage(),this.message=null,null===(e=this.actionbar)||void 0===e||e.dispose(),super.dispose()}}class C extends b{constructor(e,t,i){const s=f.kg({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," or {0} for history","\u21c5"),o=f.kg({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," ({0} for history)","\u21c5");super(e,t,i),this._onDidFocus=this._register(new u.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new u.vl),this.onDidBlur=this._onDidBlur.event,this.history=new p(i.history,100);const r=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(s)&&!this.placeholder.endsWith(o)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?s:o,t=this.placeholder+e;i.showPlaceholderOnFocus&&!n.X7(this.input)?this.placeholder=t:this.setPlaceHolder(t)}};this.observer=new MutationObserver(((e,t)=>{e.forEach((e=>{e.target.textContent||r()}))})),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,(()=>r())),this.onblur(this.input,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(o)||e(s)}))}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=null!==e&&void 0!==e?e:"",a.h5(this.value?this.value:f.kg("clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,a.h5(this.value))}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}},47625:(e,t,i)=>{"use strict";i.d(t,{x:()=>u,l:()=>c});var n=i(8597),s=i(42904),o=i(43545),r=i(83619),a=i(5662),l=i(10146),d=i(31629);const h=n.$,c={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0};class u extends a.jG{constructor(e,t,i){super(),this.os=t,this.keyElements=new Set,this.options=i||Object.create(null);const r=this.options.keybindingLabelForeground;this.domNode=n.BC(e,h(".monaco-keybinding")),r&&(this.domNode.style.color=r),this.hover=this._register((0,o.f)((0,s.nZ)("mouse"),this.domNode,"")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&u.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){var e;if(this.clear(),this.keybinding){const t=this.keybinding.getChords();t[0]&&this.renderChord(this.domNode,t[0],this.matches?this.matches.firstPart:null);for(let e=1;e<t.length;e++)n.BC(this.domNode,h("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderChord(this.domNode,t[e],this.matches?this.matches.chordPart:null);const i=null!==(e=this.options.disableTitle)&&void 0!==e&&e?void 0:this.keybinding.getAriaLabel()||void 0;this.hover.update(i),this.domNode.setAttribute("aria-label",i||"")}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0}clear(){n.w_(this.domNode),this.keyElements.clear()}renderChord(e,t,i){const n=r.Of.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,n.ctrlKey,Boolean(null===i||void 0===i?void 0:i.ctrlKey),n.separator),t.shiftKey&&this.renderKey(e,n.shiftKey,Boolean(null===i||void 0===i?void 0:i.shiftKey),n.separator),t.altKey&&this.renderKey(e,n.altKey,Boolean(null===i||void 0===i?void 0:i.altKey),n.separator),t.metaKey&&this.renderKey(e,n.metaKey,Boolean(null===i||void 0===i?void 0:i.metaKey),n.separator);const s=t.keyLabel;s&&this.renderKey(e,s,Boolean(null===i||void 0===i?void 0:i.keyCode),"")}renderKey(e,t,i,s){n.BC(e,this.createKeyElement(t,i?".highlight":"")),s&&n.BC(e,h("span.monaco-keybinding-key-separator",void 0,s))}renderUnbound(e){n.BC(e,this.createKeyElement((0,d.kg)("unbound","Unbound")))}createKeyElement(e,t=""){const i=h("span.monaco-keybinding-key"+t,void 0,e);return this.keyElements.add(i),this.options.keybindingLabelBackground&&(i.style.backgroundColor=this.options.keybindingLabelBackground),this.options.keybindingLabelBorder&&(i.style.borderColor=this.options.keybindingLabelBorder),this.options.keybindingLabelBottomBorder&&(i.style.borderBottomColor=this.options.keybindingLabelBottomBorder),this.options.keybindingLabelShadow&&(i.style.boxShadow=`inset 0 -1px 0 ${this.options.keybindingLabelShadow}`),i}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,l.aI)(e.firstPart,t.firstPart)&&(0,l.aI)(e.chordPart,t.chordPart)}}},66700:(e,t,i)=>{"use strict";i.d(t,{ur:()=>k,uO:()=>E});var n=i(42731),s=i(8597),o=i(56245),r=i(25154),a=i(31295),l=i(25890),d=i(90766),h=i(58694),c=i(41234),u=i(5662),g=i(92719),p=i(49353);function m(e,t){const i=[];for(const n of t){if(e.start>=n.range.end)continue;if(e.end<n.range.start)break;const t=g.Q.intersect(e,n.range);g.Q.isEmpty(t)||i.push({range:t,size:n.size})}return i}function f({start:e,end:t},i){return{start:e+i,end:t+i}}class _{get paddingTop(){return this._paddingTop}set paddingTop(e){this._size=this._size+e-this._paddingTop,this._paddingTop=e}constructor(e){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=null!==e&&void 0!==e?e:0,this._size=this._paddingTop}splice(e,t,i=[]){const n=i.length-t,s=m({start:0,end:e},this.groups),o=m({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((e=>({range:f(e.range,n),size:e.size}))),r=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=function(...e){return function(e){const t=[];let i=null;for(const n of e){const e=n.range.start,s=n.range.end,o=n.size;i&&o===i.size?i.range.end=s:(i={range:{start:e,end:s},size:o},t.push(i))}return t}(e.reduce(((e,t)=>e.concat(t)),[]))}(s,r,o),this._size=this._paddingTop+this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;if(e<this._paddingTop)return 0;let t=0,i=this._paddingTop;for(const n of this.groups){const s=n.range.end-n.range.start,o=i+s*n.size;if(e<o)return t+Math.floor((e-i)/n.size);t+=s,i=o}return t}indexAfter(e){return Math.min(this.indexAt(e)+1,this.count)}positionAt(e){if(e<0)return-1;let t=0,i=0;for(const n of this.groups){const s=n.range.end-n.range.start,o=i+s;if(e<o)return this._paddingTop+t+(e-i)*n.size;t+=s*n.size,i=o}return-1}}class v{constructor(e){this.renderers=e,this.cache=new Map,this.transactionNodesPendingRemoval=new Set,this.inTransaction=!1}alloc(e){let t=this.getTemplateCache(e).pop(),i=!1;if(t)i=this.transactionNodesPendingRemoval.has(t.domNode),i&&this.transactionNodesPendingRemoval.delete(t.domNode);else{const i=(0,s.$)(".monaco-list-row");t={domNode:i,templateId:e,templateData:this.getRenderer(e).renderTemplate(i)}}return{row:t,isReusingConnectedDomNode:i}}release(e){e&&this.releaseRow(e)}transact(e){if(this.inTransaction)throw new Error("Already in transaction");this.inTransaction=!0;try{e()}finally{for(const e of this.transactionNodesPendingRemoval)this.doRemoveNode(e);this.transactionNodesPendingRemoval.clear(),this.inTransaction=!1}}releaseRow(e){const{domNode:t,templateId:i}=e;t&&(this.inTransaction?this.transactionNodesPendingRemoval.add(t):this.doRemoveNode(t));this.getTemplateCache(i).push(e)}doRemoveNode(e){e.classList.remove("scrolling"),function(e){var t;try{null===(t=e.parentElement)||void 0===t||t.removeChild(e)}catch(i){}}(e)}getTemplateCache(e){let t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t}dispose(){this.cache.forEach(((e,t)=>{for(const i of e){this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}})),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var b=i(64383),C=i(1592),y=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};const w={CurrentDragAndDropData:void 0},S={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class k{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class x{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class L{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;t<e.files.length;t++){const i=e.files.item(t);i&&(i.size||i.type)&&this.files.push(i)}}}getData(){return{types:this.types,files:this.files}}}class D{constructor(e){(null===e||void 0===e?void 0:e.getSetSize)?this.getSetSize=e.getSetSize.bind(e):this.getSetSize=(e,t,i)=>i,(null===e||void 0===e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null===e||void 0===e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null===e||void 0===e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>{}}}class E{get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,s.y6)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i,n=S){var o,l,h,g,m,f,_,b,C,y,w,k,x;if(this.virtualDelegate=t,this.domId="list_id_"+ ++E.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new d.ve(50),this.splicing=!1,this.dragOverAnimationStopDisposable=u.jG.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=u.jG.None,this.onDragLeaveTimeout=u.jG.None,this.disposables=new u.Cm,this._onDidChangeContentHeight=new c.vl,this._onDidChangeContentWidth=new c.vl,this.onDidChangeContentHeight=c.Jh.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(null!==(o=n.paddingTop)&&void 0!==o?o:0);for(const s of i)this.renderers.set(s.templateId,s);this.cache=this.disposables.add(new v(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!==typeof n.mouseSupport||n.mouseSupport),this._horizontalScrolling=null!==(l=n.horizontalScrolling)&&void 0!==l?l:S.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom="undefined"===typeof n.paddingBottom?0:n.paddingBottom,this.accessibilityProvider=new D(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";(null!==(h=n.transformOptimization)&&void 0!==h?h:S.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(r.q.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new p.yE({forceIntegerValues:!0,smoothScrollDuration:null!==(g=n.smoothScrolling)&&void 0!==g&&g?125:0,scheduleAtNextAnimationFrame:e=>(0,s.PG)((0,s.zk)(this.domNode),e)})),this.scrollableElement=this.disposables.add(new a.oO(this.rowsContainer,{alwaysConsumeMouseWheel:null!==(m=n.alwaysConsumeMouseWheel)&&void 0!==m?m:S.alwaysConsumeMouseWheel,horizontal:1,vertical:null!==(f=n.verticalScrollMode)&&void 0!==f?f:S.verticalScrollMode,useShadows:null!==(_=n.useShadows)&&void 0!==_?_:S.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity,scrollByPage:n.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,s.ko)(this.rowsContainer,r.B.Change,(e=>this.onTouchChange(e)))),this.disposables.add((0,s.ko)(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add((0,s.ko)(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add((0,s.ko)(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add((0,s.ko)(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add((0,s.ko)(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=null!==(b=n.setRowLineHeight)&&void 0!==b?b:S.setRowLineHeight,this.setRowHeight=null!==(C=n.setRowHeight)&&void 0!==C?C:S.setRowHeight,this.supportDynamicHeights=null!==(y=n.supportDynamicHeights)&&void 0!==y?y:S.supportDynamicHeights,this.dnd=null!==(w=n.dnd)&&void 0!==w?w:this.disposables.add(S.dnd),this.layout(null===(k=n.initialSize)||void 0===k?void 0:k.height,null===(x=n.initialSize)||void 0===x?void 0:x.width)}updateOptions(e){let t;if(void 0!==e.paddingBottom&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t={...null!==t&&void 0!==t?t:{},scrollByPage:e.scrollByPage}),void 0!==e.mouseWheelScrollSensitivity&&(t={...null!==t&&void 0!==t?t:{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&(t={...null!==t&&void 0!==t?t:{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),void 0!==e.paddingTop&&e.paddingTop!==this.rangeMap.paddingTop){const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(t,Math.max(0,this.lastRenderTop+i),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new _(e)}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),s={start:e,end:e+t},o=g.Q.intersect(n,s),r=new Map;for(let u=o.end-1;u>=o.start;u--){const e=this.items[u];if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){let t=r.get(e.templateId);t||(t=[],r.set(e.templateId,t));const i=this.renderers.get(e.templateId);i&&i.disposeElement&&i.disposeElement(e.element,u,e.row.templateData,e.size),t.push(e.row)}e.row=null,e.stale=!0}const a={start:e+t,end:this.items.length},l=g.Q.intersect(a,n),d=g.Q.relativeComplement(a,n),h=i.map((e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:u.jG.None,checkedDisposable:u.jG.None,stale:!1})));let c;0===e&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,h),c=this.items,this.items=h):(this.rangeMap.splice(e,t,h),c=this.items.splice(e,t,...h));const p=i.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=f(l,p),v=g.Q.intersect(m,_);for(let u=v.start;u<v.end;u++)this.updateItemInDOM(this.items[u],u);const b=g.Q.relativeComplement(_,m);for(const u of b)for(let e=u.start;e<u.end;e++)this.removeItemFromDOM(e);const C=d.map((e=>f(e,p))),y=[{start:e,end:e+i.length},...C].map((e=>g.Q.intersect(m,e))).reverse();for(const u of y)for(let e=u.end-1;e>=u.start;e--){const t=this.items[e],i=r.get(t.templateId),n=null===i||void 0===i?void 0:i.pop();this.insertItemInDOM(e,n)}for(const u of r.values())for(const e of u)this.cache.release(e);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),c.map((e=>e.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,s.PG)((0,s.zk)(this.domNode),(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)"undefined"!==typeof t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(e){return this.items[e].element}indexOf(e){return this.items.findIndex((t=>t.element===e))}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:"number"===typeof e?e:(0,s.H4)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:(0,s.y6)(this.domNode)})}render(e,t,i,n,s,o=!1){const r=this.getRenderRange(t,i),a=g.Q.relativeComplement(r,e).reverse(),l=g.Q.relativeComplement(e,r);if(o){const t=g.Q.intersect(e,r);for(let e=t.start;e<t.end;e++)this.updateItemInDOM(this.items[e],e)}this.cache.transact((()=>{for(const e of l)for(let t=e.start;t<e.end;t++)this.removeItemFromDOM(t);for(const e of a)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t)})),void 0!==n&&(this.rowsContainer.style.left=`-${n}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==s&&(this.rowsContainer.style.width=`${Math.max(s,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){var i,n,o;const r=this.items[e];if(!r.row)if(t)r.row=t,r.stale=!0;else{const e=this.cache.alloc(r.templateId);r.row=e.row,r.stale||(r.stale=e.isReusingConnectedDomNode)}const a=this.accessibilityProvider.getRole(r.element)||"listitem";r.row.domNode.setAttribute("role",a);const l=this.accessibilityProvider.isChecked(r.element);if("boolean"===typeof l)r.row.domNode.setAttribute("aria-checked",String(!!l));else if(l){const e=e=>r.row.domNode.setAttribute("aria-checked",String(!!e));e(l.value),r.checkedDisposable=l.onDidChange(e)}if(r.stale||!r.row.domNode.parentElement){const t=null!==(o=null===(n=null===(i=this.items.at(e+1))||void 0===i?void 0:i.row)||void 0===n?void 0:n.domNode)&&void 0!==o?o:null;this.rowsContainer.insertBefore(r.row.domNode,t),r.stale=!1}this.updateItemInDOM(r,e);const d=this.renderers.get(r.templateId);if(!d)throw new Error(`No renderer found for template id ${r.templateId}`);null===d||void 0===d||d.renderElement(r.element,e,r.row.templateData,r.size);const h=this.dnd.getDragURI(r.element);r.dragStartDisposable.dispose(),r.row.domNode.draggable=!!h,h&&(r.dragStartDisposable=(0,s.ko)(r.row.domNode,"dragstart",(e=>this.onDragStart(r.element,h,e)))),this.horizontalScrolling&&(this.measureItemWidth(r),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=(0,s.y6)(e.row.domNode);const t=(0,s.zk)(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return c.Jh.map(this.disposables.add(new o.f(this.domNode,"click")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseDblClick(){return c.Jh.map(this.disposables.add(new o.f(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseMiddleClick(){return c.Jh.filter(c.Jh.map(this.disposables.add(new o.f(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e)),this.disposables),(e=>1===e.browserEvent.button),this.disposables)}get onMouseDown(){return c.Jh.map(this.disposables.add(new o.f(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOver(){return c.Jh.map(this.disposables.add(new o.f(this.domNode,"mouseover")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOut(){return c.Jh.map(this.disposables.add(new o.f(this.domNode,"mouseout")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onContextMenu(){return c.Jh.any(c.Jh.map(this.disposables.add(new o.f(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e)),this.disposables),c.Jh.map(this.disposables.add(new o.f(this.domNode,r.B.Contextmenu)).event,(e=>this.toGestureEvent(e)),this.disposables))}get onTouchStart(){return c.Jh.map(this.disposables.add(new o.f(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)),this.disposables)}get onTap(){return c.Jh.map(this.disposables.add(new o.f(this.rowsContainer,r.B.Tap)).event,(e=>this.toGestureEvent(e)),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element,sector:this.getTargetSector(e,t)}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){var o,r;if(!i.dataTransfer)return;const a=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(n.t.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(a,i)),"undefined"===typeof e&&(e=String(a.length));const t=(0,s.$)(".monaco-drag-image");t.textContent=e;const n=(e=>{for(;e&&!e.classList.contains("monaco-workbench");)e=e.parentElement;return e||this.domNode.ownerDocument})(this.domNode);n.appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>n.removeChild(t)),0)}this.domNode.classList.add("dragging"),this.currentDragData=new k(a),w.CurrentDragAndDropData=new x(a),null===(r=(o=this.dnd).onDragStart)||void 0===r||r.call(o,this.currentDragData,i)}onDragOver(e){var t,i;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),w.CurrentDragAndDropData&&"vscode-ui"===w.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(w.CurrentDragAndDropData)this.currentDragData=w.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new L}const n=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop="boolean"===typeof n?n:n.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let s;e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof n&&0===(null===(t=n.effect)||void 0===t?void 0:t.type)?"copy":"move",s="boolean"!==typeof n&&n.feedback?n.feedback:"undefined"===typeof e.index?[-1]:[e.index],s=(0,l.dM)(s).filter((e=>e>=-1&&e<this.length)).sort(((e,t)=>e-t)),s=-1===s[0]?[-1]:s;let o="boolean"!==typeof n&&n.effect&&n.effect.position?n.effect.position:"drop-target";if(r=this.currentDragFeedback,a=s,(Array.isArray(r)&&Array.isArray(a)?(0,l.aI)(r,a):r===a)&&this.currentDragFeedbackPosition===o)return!0;var r,a;if(this.currentDragFeedback=s,this.currentDragFeedbackPosition=o,this.currentDragFeedbackDisposable.dispose(),-1===s[0])this.domNode.classList.add(o),this.rowsContainer.classList.add(o),this.currentDragFeedbackDisposable=(0,u.s)((()=>{this.domNode.classList.remove(o),this.rowsContainer.classList.remove(o)}));else{if(s.length>1&&"drop-target"!==o)throw new Error("Can't use multiple feedbacks with position different than 'over'");"drop-target-after"===o&&s[0]<this.length-1&&(s[0]+=1,o="drop-target-before");for(const e of s){const t=this.items[e];t.dropTarget=!0,null===(i=t.row)||void 0===i||i.domNode.classList.add(o)}this.currentDragFeedbackDisposable=(0,u.s)((()=>{var e;for(const t of s){const i=this.items[t];i.dropTarget=!1,null===(e=i.row)||void 0===e||e.domNode.classList.remove(o)}}))}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,d.EQ)((()=>this.clearDragOverFeedback()),100,this.disposables),this.currentDragData&&(null===(i=(t=this.dnd).onDragLeave)||void 0===i||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,w.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,w.CurrentDragAndDropData=void 0,null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=u.jG.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=(0,s.cL)(this.domNode).top;this.dragOverAnimationDisposable=(0,s.i0)((0,s.zk)(this.domNode),this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,d.EQ)((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(void 0===t)return;const i=e.offsetY/this.items[t].size,n=Math.floor(i/.25);return(0,C.qE)(n,0,3)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let s,o;e===this.elementTop(n.start)?(s=n.start,o=0):n.end-n.start>1&&(s=n.start+1,o=this.elementTop(s)-e);let r=0;for(;;){const a=this.getRenderRange(e,t);let l=!1;for(let e=a.start;e<a.end;e++){const t=this.probeDynamicHeight(e);0!==t&&this.rangeMap.splice(e,1,[this.items[e]]),r+=t,l=l||0!==t}if(!l){0!==r&&this.eventuallyUpdateScrollDimensions();const t=g.Q.relativeComplement(n,a);for(const e of t)for(let t=e.start;t<e.end;t++)this.items[t].row&&this.removeItemFromDOM(t);const l=g.Q.relativeComplement(a,n).reverse();for(const e of l)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t);for(let e=a.start;e<a.end;e++)this.items[e].row&&this.updateItemInDOM(this.items[e],e);if("number"===typeof s){const t=this.scrollable.getFutureScrollPosition().scrollTop-e,n=this.elementTop(s)-o+t;this.setScrollTop(n,i)}return void this._onDidChangeContentHeight.fire(this.contentHeight)}}}probeDynamicHeight(e){var t,i,n;const o=this.items[e];if(this.virtualDelegate.getDynamicHeight){const e=this.virtualDelegate.getDynamicHeight(o.element);if(null!==e){const t=o.size;return o.size=e,o.lastDynamicHeightWidth=this.renderWidth,e-t}}if(!o.hasDynamicHeight||o.lastDynamicHeightWidth===this.renderWidth)return 0;if(this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(o.element))return 0;const r=o.size;if(o.row)return o.row.domNode.style.height="",o.size=o.row.domNode.offsetHeight,0!==o.size||(0,s.QX)(o.row.domNode,(0,s.zk)(o.row.domNode).document.body)||console.warn("Measuring item node that is not in DOM! Add ListView to the DOM before measuring row height!"),o.lastDynamicHeightWidth=this.renderWidth,o.size-r;const{row:a}=this.cache.alloc(o.templateId);a.domNode.style.height="",this.rowsContainer.appendChild(a.domNode);const l=this.renderers.get(o.templateId);if(!l)throw new b.D7("Missing renderer for templateId: "+o.templateId);return l.renderElement(o.element,e,a.templateData,void 0),o.size=a.domNode.offsetHeight,null===(t=l.disposeElement)||void 0===t||t.call(l,o.element,e,a.templateData,void 0),null===(n=(i=this.virtualDelegate).setDynamicHeight)||void 0===n||n.call(i,o.element,o.size),o.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(a.domNode),this.cache.release(a),o.size-r}getElementDomId(e){return`${this.domId}_${e}`}dispose(){var e,t;for(const i of this.items)if(i.dragStartDisposable.dispose(),i.checkedDisposable.dispose(),i.row){const t=this.renderers.get(i.row.templateId);t&&(null===(e=t.disposeElement)||void 0===e||e.call(t,i.element,-1,i.row.templateData,void 0),t.disposeTemplate(i.row.templateData))}this.items=[],this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),null===(t=this.dragOverAnimationDisposable)||void 0===t||t.dispose(),this.disposables.dispose()}}E.InstanceCount=0,y([h.B],E.prototype,"onMouseClick",null),y([h.B],E.prototype,"onMouseDblClick",null),y([h.B],E.prototype,"onMouseMiddleClick",null),y([h.B],E.prototype,"onMouseDown",null),y([h.B],E.prototype,"onMouseOver",null),y([h.B],E.prototype,"onMouseOut",null),y([h.B],E.prototype,"onContextMenu",null),y([h.B],E.prototype,"onTouchStart",null),y([h.B],E.prototype,"onTap",null)},93090:(e,t,i)=>{"use strict";i.d(t,{hb:()=>G,B8:()=>ee,MH:()=>K,_C:()=>C,W0:()=>R,Bm:()=>F,B6:()=>T,b$:()=>A,bm:()=>M,mh:()=>j,tX:()=>z,Es:()=>P,xu:()=>O,bG:()=>$});var n=i(8597),s=i(56245),o=i(72962),r=i(25154),a=i(11007);class l{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach((n=>n.splice(e,t,i)))}}var d=i(25890),h=i(90766),c=i(47661),u=i(58694),g=i(41234),p=i(26690),m=i(5662),f=i(1592),_=i(98067),v=i(631);i(48215);class b extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var C,y,w=i(66700),S=i(47358),k=i(99938),x=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class L{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex((e=>e.templateData===i));if(n>=0){const e=this.renderedElements[n];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const s of this.renderedElements)s.index<e?n.push(s):s.index>=e+t&&n.push({index:s.index+i-t,templateData:s.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}class D{get name(){return this._trait}get renderer(){return new L(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.vl,this.onChange=this._onChange.event}splice(e,t,i){const n=i.length-t,s=e+t,o=[];let r=0;for(;r<this.sortedIndexes.length&&this.sortedIndexes[r]<e;)o.push(this.sortedIndexes[r++]);for(let a=0;a<i.length;a++)i[a]&&o.push(a+e);for(;r<this.sortedIndexes.length&&this.sortedIndexes[r]>=s;)o.push(this.sortedIndexes[r++]+n);this.renderer.splice(e,t,i.length),this._set(o,o)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(Y),t)}_set(e,t,i){const n=this.indexes,s=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const o=Q(s,e);return this.renderer.renderIndexes(o),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return(0,d.El)(this.sortedIndexes,e,Y)>=0}dispose(){(0,m.AS)(this._onChange)}}x([u.B],D.prototype,"renderer",null);class E extends D{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class N{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,new Array(i.length).fill(!1));const n=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString()));if(0===n.length)return this.trait.splice(e,t,new Array(i.length).fill(!1));const s=new Set(n),o=i.map((e=>s.has(this.identityProvider.getId(e).toString())));this.trait.splice(e,t,o)}}function T(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function I(e,t){return!!e.classList.contains(t)||!e.classList.contains("monaco-list")&&(!!e.parentElement&&I(e.parentElement,t))}function M(e){return I(e,"monaco-editor")}function A(e){return I(e,"monaco-custom-toggle")}function R(e){return I(e,"action-item")}function O(e){return I(e,"monaco-tree-sticky-row")}function P(e){return e.classList.contains("monaco-tree-sticky-container")}function F(e){return!!("A"===e.tagName&&e.classList.contains("monaco-button")||"DIV"===e.tagName&&e.classList.contains("monaco-button-dropdown"))||!e.classList.contains("monaco-list")&&(!!e.parentElement&&F(e.parentElement))}class B{get onKeyDown(){return g.Jh.chain(this.disposables.add(new s.f(this.view.domNode,"keydown")).event,(e=>e.filter((e=>!T(e.target))).map((e=>new o.Z(e)))))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new m.Cm,this.multipleSelectionDisposables=new m.Cm,this.multipleSelectionSupport=i.multipleSelectionSupport,this.disposables.add(this.onKeyDown((e=>{switch(e.keyCode){case 3:return this.onEnter(e);case 16:return this.onUpArrow(e);case 18:return this.onDownArrow(e);case 11:return this.onPageUpArrow(e);case 12:return this.onPageDownArrow(e);case 9:return this.onEscape(e);case 31:this.multipleSelectionSupport&&(_.zx?e.metaKey:e.ctrlKey)&&this.onCtrlA(e)}})))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,d.y1)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}x([u.B],B.prototype,"onKeyDown",null),function(e){e[e.Automatic=0]="Automatic",e[e.Trigger=1]="Trigger"}(C||(C={})),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(y||(y={}));const W=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95)}};class V{constructor(e,t,i,n,s){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=n,this.delegate=s,this.enabled=!1,this.state=y.Idle,this.mode=C.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new m.Cm,this.disposables=new m.Cm,this.updateOptions(e.options)}updateOptions(e){var t,i;null===(t=e.typeNavigationEnabled)||void 0===t||t?this.enable():this.disable(),this.mode=null!==(i=e.typeNavigationMode)&&void 0!==i?i:C.Automatic}enable(){if(this.enabled)return;let e=!1;const t=g.Jh.chain(this.enabledDisposables.add(new s.f(this.view.domNode,"keydown")).event,(t=>t.filter((e=>!T(e.target))).filter((()=>this.mode===C.Automatic||this.triggered)).map((e=>new o.Z(e))).filter((t=>e||this.keyboardNavigationEventFilter(t))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>n.fs.stop(e,!0))).map((e=>e.browserEvent.key)))),i=g.Jh.debounce(t,(()=>null),800,void 0,void 0,void 0,this.enabledDisposables);g.Jh.reduce(g.Jh.any(t,i),((e,t)=>null===t?null:(e||"")+t),void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t((()=>e=!0),void 0,this.enabledDisposables),i((()=>e=!1),void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));"string"===typeof i?(0,a.xE)(i):i&&(0,a.xE)(i.get())}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=y.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===y.Idle?1:0;this.state=y.Typing;for(let s=0;s<this.list.length;s++){const t=(i+s+n)%this.list.length,o=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(t)),r=o&&o.toString();if(this.list.options.typeNavigationEnabled){if("undefined"!==typeof r){if((0,p.WP)(e,r))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t);const n=(0,p.O)(e,r);if(n){if(n[0].end-n[0].start>1&&1===n.length)return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}}else if("undefined"===typeof r||(0,p.WP)(e,r))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class H{constructor(e,t){this.list=e,this.view=t,this.disposables=new m.Cm;const i=g.Jh.chain(this.disposables.add(new s.f(t.domNode,"keydown")).event,(e=>e.filter((e=>!T(e.target))).map((e=>new o.Z(e)))));g.Jh.chain(i,(e=>e.filter((e=>2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey))))(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const s=i.querySelector("[tabIndex]");if(!s||!(s instanceof HTMLElement)||-1===s.tabIndex)return;const o=(0,n.zk)(s).getComputedStyle(s);"hidden"!==o.visibility&&"none"!==o.display&&(e.preventDefault(),e.stopPropagation(),s.focus())}dispose(){this.disposables.dispose()}}function z(e){return _.zx?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function j(e){return e.browserEvent.shiftKey}const U={isSelectionSingleChangeEvent:z,isSelectionRangeChangeEvent:j};class K{constructor(e){this.list=e,this.disposables=new m.Cm,this._onPointer=new g.vl,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||U),this.mouseSupport="undefined"===typeof e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(r.q.addTarget(e.getHTMLElement()))),g.Jh.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||U))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){M(e.browserEvent.target)||(0,n.bq)()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(T(e.browserEvent.target)||M(e.browserEvent.target))return;const t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(T(e.browserEvent.target)||M(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=e.index;return"undefined"===typeof t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),i=e.browserEvent,(0,n.Er)(i)&&2===i.button||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e));var i}onDoubleClick(e){if(T(e.browserEvent.target)||M(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if("undefined"===typeof i){const e=this.list.getFocus()[0];i=null!==e&&void 0!==e?e:t,this.list.setAnchor(i)}const n=Math.min(i,t),s=Math.max(i,t),o=(0,d.y1)(n,s+1),r=this.list.getSelection(),a=function(e,t){const i=e.indexOf(t);if(-1===i)return[];const n=[];let s=i-1;for(;s>=0&&e[s]===t-(i-s);)n.push(e[s--]);n.reverse(),s=i;for(;s<e.length&&e[s]===t+(s-i);)n.push(e[s++]);return n}(Q(r,[i]),i);if(0===a.length)return;const l=Q(o,function(e,t){const i=[];let n=0,s=0;for(;n<e.length||s<t.length;)if(n>=e.length)i.push(t[s++]);else if(s>=t.length)i.push(e[n++]);else{if(e[n]===t[s]){n++,s++;continue}e[n]<t[s]?i.push(e[n++]):s++}return i}(r,a));this.list.setSelection(l,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const i=this.list.getSelection(),n=i.filter((e=>e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===n.length?this.list.setSelection([...n,t],e.browserEvent):this.list.setSelection(n,e.browserEvent)}}dispose(){this.disposables.dispose()}}class G{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){var t,i;const s=this.selectorSuffix&&`.${this.selectorSuffix}`,o=[];e.listBackground&&o.push(`.monaco-list${s} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(o.push(`.monaco-list${s}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),o.push(`.monaco-list${s}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&o.push(`.monaco-list${s}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(o.push(`.monaco-list${s}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),o.push(`.monaco-list${s}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&o.push(`.monaco-list${s}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&o.push(`.monaco-list${s}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&o.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${s}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&o.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${s}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(o.push(`.monaco-list${s} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),o.push(`.monaco-list${s} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&o.push(`.monaco-list${s} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(o.push(`.monaco-list${s} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),o.push(`.monaco-list${s} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(o.push(`.monaco-list${s} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),o.push(`.monaco-list${s} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&o.push(`.monaco-list${s} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&o.push(`.monaco-list${s}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&o.push(`.monaco-list${s}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);const r=(0,n.gI)(e.listFocusAndSelectionOutline,(0,n.gI)(e.listSelectionOutline,null!==(t=e.listFocusOutline)&&void 0!==t?t:""));r&&o.push(`.monaco-list${s}:focus .monaco-list-row.focused.selected { outline: 1px solid ${r}; outline-offset: -1px;}`),e.listFocusOutline&&o.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${s}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t\t.monaco-workbench.context-menu-visible .monaco-list${s}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`);const a=(0,n.gI)(e.listSelectionOutline,null!==(i=e.listInactiveFocusOutline)&&void 0!==i?i:"");a&&o.push(`.monaco-list${s} .monaco-list-row.focused.selected { outline: 1px dotted ${a}; outline-offset: -1px; }`),e.listSelectionOutline&&o.push(`.monaco-list${s} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&o.push(`.monaco-list${s} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&o.push(`.monaco-list${s} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&o.push(`\n\t\t\t\t.monaco-list${s}.drop-target,\n\t\t\t\t.monaco-list${s} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${s} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; }\n\t\t\t`),e.listDropBetweenBackground&&(o.push(`\n\t\t\t.monaco-list${s} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,\n\t\t\t.monaco-list${s} .monaco-list-row.drop-target-before::before {\n\t\t\t\tcontent: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`),o.push(`\n\t\t\t.monaco-list${s} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,\n\t\t\t.monaco-list${s} .monaco-list-row.drop-target-after::after {\n\t\t\t\tcontent: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`)),e.tableColumnsBorder&&o.push(`\n\t\t\t\t.monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: transparent;\n\t\t\t\t}\n\t\t\t`),e.tableOddRowsBackgroundColor&&o.push(`\n\t\t\t\t.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {\n\t\t\t\t\tbackground-color: ${e.tableOddRowsBackgroundColor};\n\t\t\t\t}\n\t\t\t`),this.styleElement.textContent=o.join("\n")}}const $={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:c.Q1.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:c.Q1.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:c.Q1.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0},q={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}}};function Q(e,t){const i=[];let n=0,s=0;for(;n<e.length||s<t.length;)if(n>=e.length)i.push(t[s++]);else if(s>=t.length)i.push(e[n++]);else{if(e[n]===t[s]){i.push(e[n]),n++,s++;continue}e[n]<t[s]?i.push(e[n++]):i.push(t[s++])}return i}const Y=(e,t)=>e-t;class Z{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,n){let s=0;for(const o of this.renderers)o.renderElement(e,t,i[s++],n)}disposeElement(e,t,i,n){var s;let o=0;for(const r of this.renderers)null===(s=r.disposeElement)||void 0===s||s.call(r,e,t,i[o],n),o+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class X{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return{container:e,disposables:new m.Cm}}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e),s=n&&"string"!==typeof n?n:(0,k.lk)(n);i.disposables.add((0,k.fm)((e=>{this.setAriaLabel(e.readObservable(s),i.container)})));const o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof o?i.container.setAttribute("aria-level",`${o}`):i.container.removeAttribute("aria-level")}setAriaLabel(e,t){e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")}disposeElement(e,t,i,n){i.disposables.clear()}disposeTemplate(e){e.disposables.dispose()}}class J{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,e,t)}onDragOver(e,t,i,n,s){return this.dnd.onDragOver(e,t,i,n,s)}onDragLeave(e,t,i,n){var s,o;null===(o=(s=this.dnd).onDragLeave)||void 0===o||o.call(s,e,t,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}drop(e,t,i,n,s){this.dnd.drop(e,t,i,n,s)}dispose(){this.dnd.dispose()}}class ee{get onDidChangeFocus(){return g.Jh.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)),this.disposables)}get onDidChangeSelection(){return g.Jh.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=g.Jh.chain(this.disposables.add(new s.f(this.view.domNode,"keydown")).event,(t=>t.map((e=>new o.Z(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map((e=>n.fs.stop(e,!0))).filter((()=>!1)))),i=g.Jh.chain(this.disposables.add(new s.f(this.view.domNode,"keyup")).event,(t=>t.forEach((()=>e=!1)).map((e=>new o.Z(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map((e=>n.fs.stop(e,!0))).map((({browserEvent:e})=>{const t=this.getFocus(),i=t.length?t[0]:void 0;return{index:i,element:"undefined"!==typeof i?this.view.element(i):void 0,anchor:"undefined"!==typeof i?this.view.domElement(i):this.view.domNode,browserEvent:e}})))),r=g.Jh.chain(this.view.onContextMenu,(t=>t.filter((t=>!e)).map((({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:new S.P((0,n.zk)(this.view.domNode),i),browserEvent:i})))));return g.Jh.any(t,i,r)}get onKeyDown(){return this.disposables.add(new s.f(this.view.domNode,"keydown")).event}get onDidFocus(){return g.Jh.signal(this.disposables.add(new s.f(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return g.Jh.signal(this.disposables.add(new s.f(this.view.domNode,"blur",!0)).event)}constructor(e,t,i,s,o=q){var r,a,d,h;this.user=e,this._options=o,this.focus=new D("focused"),this.anchor=new D("anchor"),this.eventBufferer=new g.at,this._ariaLabel="",this.disposables=new m.Cm,this._onDidDispose=new g.vl,this.onDidDispose=this._onDidDispose.event;const c=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(r=this._options.accessibilityProvider)||void 0===r?void 0:r.getWidgetRole():"list";this.selection=new E("listbox"!==c);const u=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=o.accessibilityProvider,this.accessibilityProvider&&(u.push(new X(this.accessibilityProvider)),null===(d=(a=this.accessibilityProvider).onDidChangeActiveDescendant)||void 0===d||d.call(a,this.onDidChangeActiveDescendant,this,this.disposables)),s=s.map((e=>new Z(e.templateId,[...u,e])));const p={...o,dnd:o.dnd&&new J(this,o.dnd)};if(this.view=this.createListView(t,i,s,p),this.view.domNode.setAttribute("role",c),o.styleController)this.styleController=o.styleController(this.view.domId);else{const e=(0,n.li)(this.view.domNode);this.styleController=new G(e,this.view.domId)}if(this.spliceable=new l([new N(this.focus,this.view,o.identityProvider),new N(this.selection,this.view,o.identityProvider),new N(this.anchor,this.view,o.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new H(this,this.view)),("boolean"!==typeof o.keyboardSupport||o.keyboardSupport)&&(this.keyboardController=new B(this,this.view,o),this.disposables.add(this.keyboardController)),o.keyboardNavigationLabelProvider){const e=o.keyboardNavigationDelegate||W;this.typeNavigationController=new V(this,this.view,o.keyboardNavigationLabelProvider,null!==(h=o.keyboardNavigationEventFilter)&&void 0!==h?h:()=>!0,e),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(o),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,i,n){return new w.uO(e,t,i,n)}createMouseController(e){return new K(this)}updateOptions(e={}){var t,i;this._options={...this._options,...e},null===(t=this.typeNavigationController)||void 0===t||t.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),null===(i=this.keyboardController)||void 0===i||i.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new b(this.user,`Invalid start index: ${e}`);if(t<0)throw new b(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new b(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if("undefined"!==typeof e){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return(0,d.Fy)(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return"undefined"===typeof e?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new b(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(0===this.length)return;const s=this.focus.get(),o=this.findNextIndex(s.length>0?s[0]+e:0,t,n);o>-1&&this.setFocus([o],i)}focusPrevious(e=1,t=!1,i,n){if(0===this.length)return;const s=this.focus.get(),o=this.findPreviousIndex(s.length>0?s[0]-e:0,t,n);o>-1&&this.setFocus([o],i)}async focusNextPage(e,t){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const n=this.getFocus()[0];if(n!==i&&(void 0===n||i>n)){const s=this.findPreviousIndex(i,!1,t);s>-1&&n!==s?this.setFocus([s],e):this.setFocus([i],e)}else{const s=this.view.getScrollTop();let o=s+this.view.renderHeight;i>n&&(o-=this.view.elementHeight(i)),this.view.setScrollTop(o),this.view.getScrollTop()!==s&&(this.setFocus([]),await(0,h.wR)(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t,i=()=>0){let n;const s=i(),o=this.view.getScrollTop()+s;n=0===o?this.view.indexAt(o):this.view.indexAfter(o-1);const r=this.getFocus()[0];if(r!==n&&(void 0===r||r>=n)){const i=this.findNextIndex(n,!1,t);i>-1&&r!==i?this.setFocus([i],e):this.setFocus([n],e)}else{const n=o;this.view.setScrollTop(o-this.view.renderHeight-s),this.view.getScrollTop()+i()!==n&&(this.setFocus([]),await(0,h.wR)(0),await this.focusPreviousPage(e,t,i))}}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e,t=!1,i){for(let n=0;n<this.length;n++){if(e>=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let n=0;n<this.length;n++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!i||i(this.element(e)))return e;e--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map((e=>this.view.element(e)))}reveal(e,t,i=0){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);const n=this.view.getScrollTop(),s=this.view.elementTop(e),o=this.view.elementHeight(e);if((0,v.Et)(t)){const e=o-this.view.renderHeight+i;this.view.setScrollTop(e*(0,f.qE)(t,0,1)+s-i)}else{const e=s+o,t=n+this.view.renderHeight;s<n+i&&e>=t||(s<n+i||e>=t&&o>=this.view.renderHeight?this.view.setScrollTop(s-i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e,t=0){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),s=this.view.elementHeight(e);if(n<i+t||n+s>i+this.view.renderHeight)return null;const o=s-this.view.renderHeight+t;return Math.abs((i+t-n)/o)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map((e=>this.view.element(e))),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}x([u.B],ee.prototype,"onDidChangeFocus",null),x([u.B],ee.prototype,"onDidChangeSelection",null),x([u.B],ee.prototype,"onContextMenu",null),x([u.B],ee.prototype,"onKeyDown",null),x([u.B],ee.prototype,"onDidFocus",null),x([u.B],ee.prototype,"onDidBlur",null)},88807:(e,t,i)=>{"use strict";i.d(t,{v:()=>a});var n=i(8597),s=i(92403),o=i(41234),r=i(5662);class a{constructor(){let e;this._onDidWillResize=new o.vl,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new o.vl,this.onDidResize=this._onDidResize.event,this._sashListener=new r.Cm,this._size=new n.fg(0,0),this._minSize=new n.fg(0,0),this._maxSize=new n.fg(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new s.m(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new s.m(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new s.m(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:s.B.North}),this._southSash=new s.m(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:s.B.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(o.Jh.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)((()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)}))),this._sashListener.add(o.Jh.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)((()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(this._eastSash.onDidChange((n=>{e&&(i=n.currentX-n.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))}))),this._sashListener.add(this._westSash.onDidChange((n=>{e&&(i=-(n.currentX-n.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))}))),this._sashListener.add(this._northSash.onDidChange((n=>{e&&(t=-(n.currentY-n.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))}))),this._sashListener.add(this._southSash.onDidChange((n=>{e&&(t=n.currentY-n.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))}))),this._sashListener.add(o.Jh.any(this._eastSash.onDidReset,this._westSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(o.Jh.any(this._northSash.onDidReset,this._southSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))})))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=n?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:s}=this._minSize,{height:o,width:r}=this._maxSize;e=Math.max(i,Math.min(o,e)),t=Math.max(s,Math.min(r,t));const a=new n.fg(t,e);n.fg.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}},92403:(e,t,i)=>{"use strict";i.d(t,{B:()=>u,m:()=>b});var n=i(8597),s=i(56245),o=i(25154),r=i(90766),a=i(58694),l=i(41234),d=i(5662),h=i(98067),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};var u;!function(e){e.North="north",e.South="south",e.East="east",e.West="west"}(u||(u={}));const g=new l.vl;const p=new l.vl;class m{constructor(e){this.el=e,this.disposables=new d.Cm}get onPointerMove(){return this.disposables.add(new s.f((0,n.zk)(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new s.f((0,n.zk)(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}c([a.B],m.prototype,"onPointerMove",null),c([a.B],m.prototype,"onPointerUp",null);class f{get onPointerMove(){return this.disposables.add(new s.f(this.el,o.B.Change)).event}get onPointerUp(){return this.disposables.add(new s.f(this.el,o.B.End)).event}constructor(e){this.el=e,this.disposables=new d.Cm}dispose(){this.disposables.dispose()}}c([a.B],f.prototype,"onPointerMove",null),c([a.B],f.prototype,"onPointerUp",null);class _{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}c([a.B],_.prototype,"onPointerMove",null),c([a.B],_.prototype,"onPointerUp",null);const v="pointer-events-disabled";class b extends d.jG{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,n.BC)(this.el,(0,n.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,d.s)((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new s.f(this._orthogonalStartDragHandle,"mouseenter")).event((()=>b.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new s.f(this._orthogonalStartDragHandle,"mouseleave")).event((()=>b.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}}set orthogonalEndSash(e){if(this._orthogonalEndSash!==e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,n.BC)(this.el,(0,n.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,d.s)((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new s.f(this._orthogonalEndDragHandle,"mouseenter")).event((()=>b.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new s.f(this._orthogonalEndDragHandle,"mouseleave")).event((()=>b.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}}constructor(e,t,i){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new r.ve(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new l.vl),this._onDidStart=this._register(new l.vl),this._onDidChange=this._register(new l.vl),this._onDidReset=this._register(new l.vl),this._onDidEnd=this._register(new l.vl),this.orthogonalStartSashDisposables=this._register(new d.Cm),this.orthogonalStartDragHandleDisposables=this._register(new d.Cm),this.orthogonalEndSashDisposables=this._register(new d.Cm),this.orthogonalEndDragHandleDisposables=this._register(new d.Cm),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,n.BC)(e,(0,n.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),h.zx&&this.el.classList.add("mac");const a=this._register(new s.f(this.el,"mousedown")).event;this._register(a((t=>this.onPointerStart(t,new m(e))),this));const c=this._register(new s.f(this.el,"dblclick")).event;this._register(c(this.onPointerDoublePress,this));const u=this._register(new s.f(this.el,"mouseenter")).event;this._register(u((()=>b.onMouseEnter(this))));const _=this._register(new s.f(this.el,"mouseleave")).event;this._register(_((()=>b.onMouseLeave(this)))),this._register(o.q.addTarget(this.el));const v=this._register(new s.f(this.el,o.B.Start)).event;this._register(v((e=>this.onPointerStart(e,new f(this.el))),this));const C=this._register(new s.f(this.el,o.B.Tap)).event;let y;this._register(C((e=>{if(y)return clearTimeout(y),y=void 0,void this.onPointerDoublePress(e);clearTimeout(y),y=setTimeout((()=>y=void 0),250)}),this)),"number"===typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=4,this._register(g.event((e=>{this.size=e,this.layout()})))),this._register(p.event((e=>this.hoverDelay=e))),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",false),this.layout()}onPointerStart(e,t){n.fs.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const n=this.getOrthogonalSash(e);n&&(i=!0,e.__orthogonalSashEvent=!0,n.onPointerStart(e,new _(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new _(t))),!this.state)return;const s=this.el.ownerDocument.getElementsByTagName("iframe");for(const n of s)n.classList.add(v);const o=e.pageX,r=e.pageY,a=e.altKey,l={startX:o,currentX:o,startY:r,currentY:r,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const c=(0,n.li)(this.el),u=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":h.zx?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":h.zx?"col-resize":"ew-resize",c.textContent=`* { cursor: ${e} !important; }`},g=new d.Cm;u(),i||this.onDidEnablementChange.event(u,null,g);t.onPointerMove((e=>{n.fs.stop(e,!1);const t={startX:o,currentX:e.pageX,startY:r,currentY:e.pageY,altKey:a};this._onDidChange.fire(t)}),null,g),t.onPointerUp((e=>{n.fs.stop(e,!1),this.el.removeChild(c),this.el.classList.remove("active"),this._onDidEnd.fire(),g.dispose();for(const t of s)t.classList.remove(v)}),null,g),g.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger((()=>e.el.classList.add("hover")),e.hoverDelay).then(void 0,(()=>{})),!t&&e.linkedSash&&b.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&b.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){b.onMouseLeave(this)}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){var t;const i=null!==(t=e.initialTarget)&&void 0!==t?t:e.target;if(i&&i instanceof HTMLElement)return i.classList.contains("orthogonal-drag-handle")?i.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},31295:(e,t,i)=>{"use strict";i.d(t,{MU:()=>E,QC:()=>k,Se:()=>L,oO:()=>D});var n=i(60413),s=i(8597),o=i(55275),r=i(47358),a=i(34072),l=i(17390),d=i(90766),h=i(25689);const c=11;class u extends l.x{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px","undefined"!==typeof e.top&&(this.bgDomNode.style.top="0px"),"undefined"!==typeof e.left&&(this.bgDomNode.style.left="0px"),"undefined"!==typeof e.bottom&&(this.bgDomNode.style.bottom="0px"),"undefined"!==typeof e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...h.L.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px","undefined"!==typeof e.top&&(this.domNode.style.top=e.top+"px"),"undefined"!==typeof e.left&&(this.domNode.style.left=e.left+"px"),"undefined"!==typeof e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),"undefined"!==typeof e.right&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new a._),this._register(s.b2(this.bgDomNode,s.Bx.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._register(s.b2(this.domNode,s.Bx.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._pointerdownRepeatTimer=this._register(new s.Be),this._pointerdownScheduleRepeatTimer=this._register(new d.pc)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet((()=>{this._pointerdownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24,s.zk(e))}),200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{}),(()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()})),e.preventDefault()}}var g=i(5662);class p extends g.jG{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new d.pc)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{var e;null===(e=this._domNode)||void 0===e||e.setClassName(this._visibleClassName)}),0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,null===(t=this._domNode)||void 0===t||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}var m=i(98067);class f extends l.x{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new p(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new a._),this._shouldRender=!0,this.domNode=(0,o.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(s.ko(this.domNode.domNode,s.Bx.POINTER_DOWN,(e=>this._domNodePointerDown(e))))}_createArrow(e){const t=this._register(new u(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=(0,o.Z)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof i&&this.slider.setWidth(i),"number"===typeof n&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(s.ko(this.slider.domNode,s.Bx.POINTER_DOWN,(e=>{0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}))),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),s=this._sliderPointerPosition(e);i<=s&&s<=n?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"===typeof e.offsetX&&"number"===typeof e.offsetY)t=e.offsetX,i=e.offsetY;else{const n=s.BK(this.domNode.domNode);t=e.pageX-n.left,i=e.pageY-n.top}const n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{const s=this._sliderOrthogonalPointerPosition(e),o=Math.abs(s-i);if(m.uF&&o>140)return void this._setDesiredScrollPositionNow(n.getScrollPosition());const r=this._sliderPointerPosition(e)-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(r))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}var _=i(74850),v=i(10350);class b extends f{constructor(e,t,i){const n=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.m(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,n.width,n.scrollWidth,s.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){const e=(t.arrowSize-c)/2,i=(t.horizontalScrollbarSize-c)/2;this._createArrow({className:"scra",icon:v.W.scrollbarButtonLeft,top:i,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new r.$(null,1,0))}),this._createArrow({className:"scra",icon:v.W.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new r.$(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class C extends f{constructor(e,t,i){const n=e.getScrollDimensions(),s=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.m(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,s.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-c)/2,i=(t.verticalScrollbarSize-c)/2;this._createArrow({className:"scra",icon:v.W.scrollbarButtonUp,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.$(null,0,1))}),this._createArrow({className:"scra",icon:v.W.scrollbarButtonDown,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.$(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var y=i(41234),w=i(49353);class S{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class k{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,n=this._rear;for(;;){const s=n===this._front?e:Math.pow(2,-i);if(e-=s,t+=this._memory[n].score*s,n===this._front)break;n=(this._capacity+n-1)%this._capacity,i++}return t<=.5}acceptStandardWheelEvent(e){if(n.H8){const t=s.zk(e.browserEvent),i=(0,n.pR)(t);this.accept(Date.now(),e.deltaX*i,e.deltaY*i)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){let n=null;const s=new S(e,t,i);-1===this._front&&-1===this._rear?(this._memory[0]=s,this._front=0,this._rear=0):(n=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=s),s.score=this._computeScore(s,n)}_computeScore(e,t){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let i=.5;if(this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(i+=.25),t){const n=Math.abs(e.deltaX),s=Math.abs(e.deltaY),o=Math.abs(t.deltaX),r=Math.abs(t.deltaY),a=Math.max(Math.min(n,o),1),l=Math.max(Math.min(s,r),1),d=Math.max(n,o),h=Math.max(s,r);d%a===0&&h%l===0&&(i-=.5)}return Math.min(Math.max(i,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}k.INSTANCE=new k;class x extends l.x{get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new y.vl),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new y.vl),e.style.overflow="hidden",this._options=function(e){const t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:"undefined"!==typeof e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:"undefined"!==typeof e.scrollByPage&&e.scrollByPage};t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,m.zx&&(t.className+=" mac");return t}(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const n={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new C(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new b(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,o.Z)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,o.Z)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,o.Z)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onmouseleave(this._listenOnDomNode,(e=>this._onMouseLeave(e))),this._hideTimeout=this._register(new d.pc),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,g.AS)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,m.zx&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontal&&(this._options.horizontal=e.horizontal),"undefined"!==typeof e.vertical&&(this._options.vertical=e.vertical),"undefined"!==typeof e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),"undefined"!==typeof e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),"undefined"!==typeof e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new r.$(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,g.AS)(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new r.$(e))};this._mouseWheelToDispose.push(s.ko(this._listenOnDomNode,s.Bx.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){var t;if(null===(t=e.browserEvent)||void 0===t?void 0:t.defaultPrevented)return;const i=k.INSTANCE;i.acceptStandardWheelEvent(e);let n=!1;if(e.deltaY||e.deltaX){let t=e.deltaY*this._options.mouseWheelScrollSensitivity,s=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&s+t===0?s=t=0:Math.abs(t)>=Math.abs(s)?s=0:t=0),this._options.flipAxes&&([t,s]=[s,t]);const o=!m.zx&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!o||s||(s=t,t=0),e.browserEvent&&e.browserEvent.altKey&&(s*=this._options.fastScrollSensitivity,t*=this._options.fastScrollSensitivity);const r=this._scrollable.getFutureScrollPosition();let a={};if(t){const e=50*t,i=r.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,i)}if(s){const e=50*s,t=r.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}if(a=this._scrollable.validateScrollPosition(a),r.scrollLeft!==a.scrollLeft||r.scrollTop!==a.scrollTop){this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),n=!0}}let s=n;!s&&this._options.alwaysConsumeMouseWheel&&(s=!0),!s&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(s=!0),s&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",s=t?" top":"",o=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${s}`),this._topLeftShadowDomNode.setClassName(`shadow${o}${s}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),500)}}class L extends x{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new w.yE({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>s.PG(s.zk(e),t)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class D extends x{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class E extends x{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new w.yE({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>s.PG(s.zk(e),t)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}))),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},74850:(e,t,i)=>{"use strict";i.d(t,{m:()=>n});class n{constructor(e,t,i,n,s,o){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=s,this._scrollPosition=o,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new n(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,s){const o=Math.max(0,i-e),r=Math.max(0,o-2*t),a=n>0&&n>i;if(!a)return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(r),computedSliderRatio:0,computedSliderPosition:0};const l=Math.round(Math.max(20,Math.floor(i*r/n))),d=(r-l)/(n-i),h=s*d;return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:d,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){const e=n._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return t<this._computedSliderPosition?i-=this._visibleSize:i+=this._visibleSize,i}getDesiredScrollPositionFromDelta(e){if(!this._computedIsNeeded)return 0;const t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)}}},35151:(e,t,i)=>{"use strict";i.d(t,{X:()=>b,U:()=>C});var n=i(8597),s=i(56245),o=i(92403),r=i(31295),a=i(25890),l=i(47661),d=i(41234),h=i(5662),c=i(1592),u=i(49353),g=i(631);const p={separatorBorder:l.Q1.transparent};class m{set size(e){this._size=e}get size(){return this._size}get visible(){return"undefined"===typeof this._cachedVisibleSize}setVisible(e,t){var i,n;if(e!==this.visible){e?(this.size=(0,c.qE)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"===typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e);try{null===(n=(i=this.view).setVisible)||void 0===n||n.call(i,e)}catch(s){console.error("Splitview: Failed to set visible view"),console.error(s)}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){var e;return null===(e=this.view.proportionalLayout)||void 0===e||e}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,"number"===typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}layout(e,t){this.layoutContainer(e);try{this.view.layout(this.size,e,t)}catch(i){console.error("Splitview: Failed to layout view"),console.error(i)}}dispose(){this.disposable.dispose()}}class f extends m{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class _ extends m{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var v,b;!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(v||(v={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Auto=function(e){return{type:"auto",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(b||(b={}));class C extends h.jG{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t={}){var i,o,a,l,h;super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=v.Idle,this._onDidSashChange=this._register(new d.vl),this._onDidSashReset=this._register(new d.vl),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=null!==(i=t.orientation)&&void 0!==i?i:0,this.inverseAltBehavior=null!==(o=t.inverseAltBehavior)&&void 0!==o&&o,this.proportionalLayout=null===(a=t.proportionalLayout)||void 0===a||a,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=(0,n.BC)(this.el,(0,n.$)(".sash-container")),this.viewContainer=(0,n.$)(".split-view-container"),this.scrollable=this._register(new u.yE({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:e=>(0,n.PG)((0,n.zk)(this.el),e)})),this.scrollableElement=this._register(new r.oO(this.viewContainer,{vertical:0===this.orientation?null!==(l=t.scrollbarVisibility)&&void 0!==l?l:1:2,horizontal:1===this.orientation?null!==(h=t.scrollbarVisibility)&&void 0!==h?h:1:2},this.scrollable));const c=this._register(new s.f(this.viewContainer,"scroll")).event;this._register(c((e=>{const t=this.scrollableElement.getScrollPosition(),i=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,n=Math.abs(this.viewContainer.scrollTop-t.scrollTop)<=1?void 0:this.viewContainer.scrollTop;void 0===i&&void 0===n||this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:n})}))),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft)}))),(0,n.BC)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||p),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=g.b0(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},n=e.view;this.doAddView(n,i,t,!0)})),this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let t=0;for(let i=0;i<this.viewItems.length;i++){const n=this.viewItems[i],s=this.proportions[i];"number"===typeof s?t+=s:e-=n.size}for(let i=0;i<this.viewItems.length;i++){const n=this.viewItems[i],s=this.proportions[i];"number"===typeof s&&t>0&&(n.size=(0,c.qE)(Math.round(s*e/t),n.minimumSize,n.maximumSize))}}else{const t=(0,a.y1)(this.viewItems.length),n=t.filter((e=>1===this.viewItems[e].priority)),s=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,n,s)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map((e=>e.proportionalLayout&&e.visible?e.size/this._contentSize:void 0)))}onSashStart({sash:e,start:t,alt:i}){for(const n of this.viewItems)n.enabled=!1;const s=this.sashItems.findIndex((t=>t.sash===e)),o=(0,h.qE)((0,n.ko)(this.el.ownerDocument.body,"keydown",(e=>r(this.sashDragState.current,e.altKey))),(0,n.ko)(this.el.ownerDocument.body,"keyup",(()=>r(this.sashDragState.current,!1)))),r=(e,t)=>{const i=this.viewItems.map((e=>e.size));let n,r,l=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){if(s===this.sashItems.length-1){const e=this.viewItems[s];l=(e.minimumSize-e.size)/2,d=(e.maximumSize-e.size)/2}else{const e=this.viewItems[s+1];l=(e.size-e.maximumSize)/2,d=(e.size-e.minimumSize)/2}}if(!t){const e=(0,a.y1)(s,-1),t=(0,a.y1)(s+1,this.viewItems.length),o=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),l=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),d=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),h=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),c=Math.max(o,h),u=Math.min(d,l),g=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"===typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);n={index:g,limitDelta:e.visible?c-t:c+t,size:e.size}}if("number"===typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);r={index:p,limitDelta:e.visible?u+t:u-t,size:e.size}}}this.sashDragState={start:e,current:e,index:s,sizes:i,minDelta:l,maxDelta:d,alt:t,snapBefore:n,snapAfter:r,disposable:o}};r(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:s,minDelta:o,maxDelta:r,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e;const d=e-i,h=this.resize(t,d,n,void 0,void 0,o,r,a,l);if(s){const e=t===this.sashItems.length-1,i=this.viewItems.map((e=>e.size)),n=e?t:t+1,s=this.viewItems[n],o=s.size-s.maximumSize,r=s.size-s.minimumSize,a=e?t-1:t+1;this.resize(a,-h,i,void 0,void 0,o,r)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=(0,c.qE)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const i=(0,a.y1)(this.viewItems.length).filter((t=>t!==e)),n=[...i.filter((e=>1===this.viewItems[e].priority)),e],s=i.filter((e=>2===this.viewItems[e].priority)),o=this.viewItems[e];t=Math.round(t),t=(0,c.qE)(t,o.minimumSize,Math.min(o.maximumSize,this.size)),o.size=t,this.relayout(n,s)}finally{this.state=v.Idle}}}distributeViewSizes(){const e=[];let t=0;for(const r of this.viewItems)r.maximumSize-r.minimumSize>0&&(e.push(r),t+=r.size);const i=Math.floor(t/e.length);for(const r of e)r.size=(0,c.qE)(i,r.minimumSize,r.maximumSize);const n=(0,a.y1)(this.viewItems.length),s=n.filter((e=>1===this.viewItems[e].priority)),o=n.filter((e=>2===this.viewItems[e].priority));this.relayout(s,o)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,s){if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const r=(0,n.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(r):this.viewContainer.insertBefore(r,this.viewContainer.children.item(i));const l=e.onDidChange((e=>this.onViewChange(p,e))),c=(0,h.s)((()=>this.viewContainer.removeChild(r))),u=(0,h.qE)(l,c);let g;"number"===typeof t?g=t:("auto"===t.type&&(t=this.areViewsDistributed()?{type:"distribute"}:{type:"split",index:t.index}),g="split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize);const p=0===this.orientation?new f(r,e,g,u):new _(r,e,g,u);if(this.viewItems.splice(i,0,p),this.viewItems.length>1){const e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new o.m(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{...e,orientation:1}):new o.m(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{...e,orientation:0}),n=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),s=d.Jh.map(t.onDidStart,n)(this.onSashStart,this),r=d.Jh.map(t.onDidChange,n)(this.onSashChange,this),l=d.Jh.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),c=l(this.onSashEnd,this),u=t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=(0,a.y1)(e,-1),n=(0,a.y1)(e+1,this.viewItems.length),s=this.findFirstSnapIndex(i),o=this.findFirstSnapIndex(n);("number"!==typeof s||this.viewItems[s].visible)&&("number"!==typeof o||this.viewItems[o].visible)&&this._onDidSashReset.fire(e)})),g=(0,h.qE)(s,r,c,u,t),p={sash:t,disposable:g};this.sashItems.splice(i-1,0,p)}let m;r.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(m=[t.index]),s||this.relayout([i],m),s||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()}finally{this.state=v.Idle}}relayout(e,t){const i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map((e=>e.size)),n,s,o=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY,l,d){if(e<0||e>=this.viewItems.length)return 0;const h=(0,a.y1)(e,-1),u=(0,a.y1)(e+1,this.viewItems.length);if(s)for(const c of s)(0,a._A)(h,c),(0,a._A)(u,c);if(n)for(const c of n)(0,a.r7)(h,c),(0,a.r7)(u,c);const g=h.map((e=>this.viewItems[e])),p=h.map((e=>i[e])),m=u.map((e=>this.viewItems[e])),f=u.map((e=>i[e])),_=h.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),v=h.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),b=0===u.length?Number.POSITIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),C=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),y=Math.max(_,C,o),w=Math.min(b,v,r);let S=!1;if(l){const e=this.viewItems[l.index],i=t>=l.limitDelta;S=i!==e.visible,e.setVisible(i,l.size)}if(!S&&d){const e=this.viewItems[d.index],i=t<d.limitDelta;S=i!==e.visible,e.setVisible(i,d.size)}if(S)return this.resize(e,t,i,n,s,o,r);for(let a=0,k=t=(0,c.qE)(t,y,w);a<g.length;a++){const e=g[a],t=(0,c.qE)(p[a]+k,e.minimumSize,e.maximumSize);k-=t-p[a],e.size=t}for(let a=0,k=t;a<m.length;a++){const e=m[a],t=(0,c.qE)(f[a]-k,e.minimumSize,e.maximumSize);k+=t-f[a],e.size=t}return t}distributeEmptySpace(e){const t=this.viewItems.reduce(((e,t)=>e+t.size),0);let i=this.size-t;const n=(0,a.y1)(this.viewItems.length-1,-1),s=n.filter((e=>1===this.viewItems[e].priority)),o=n.filter((e=>2===this.viewItems[e].priority));for(const r of o)(0,a._A)(n,r);for(const r of s)(0,a.r7)(n,r);"number"===typeof e&&(0,a.r7)(n,e);for(let r=0;0!==i&&r<n.length;r++){const e=this.viewItems[n[r]],t=(0,c.qE)(e.size+i,e.minimumSize,e.maximumSize);i-=t-e.size,e.size=t}}layoutViews(){this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),n=[...this.viewItems].reverse();e=!1;const s=n.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const o=n.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let r=0;for(let l=0;l<this.sashItems.length;l++){const{sash:e}=this.sashItems[l];r+=this.viewItems[l].size;const n=!(t[l]&&o[l+1]),d=!(i[l]&&s[l+1]);if(n&&d){const i=(0,a.y1)(l,-1),n=(0,a.y1)(l+1,this.viewItems.length),o=this.findFirstSnapIndex(i),d=this.findFirstSnapIndex(n),h="number"===typeof o&&!this.viewItems[o].visible,c="number"===typeof d&&!this.viewItems[d].visible;h&&s[l]&&(r>0||this.startSnappingEnabled)?e.state=1:c&&t[l]&&(r<this._contentSize||this.endSnappingEnabled)?e.state=2:e.state=0}else e.state=n&&!d?1:!n&&d?2:3}}getSashPosition(e){let t=0;for(let i=0;i<this.sashItems.length;i++)if(t+=this.viewItems[i].size,this.sashItems[i].sash===e)return t;return 0}findFirstSnapIndex(e){for(const t of e){const e=this.viewItems[t];if(e.visible&&e.snap)return t}for(const t of e){const e=this.viewItems[t];if(e.visible&&e.maximumSize-e.minimumSize>0)return;if(!e.visible&&e.snap)return t}}areViewsDistributed(){let e,t;for(const i of this.viewItems)if(e=void 0===e?i.size:Math.min(e,i.size),t=void 0===t?i.size:Math.max(t,i.size),t-e>2)return!1;return!0}dispose(){var e;null===(e=this.sashDragState)||void 0===e||e.disposable.dispose(),(0,h.AS)(this.viewItems),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[],super.dispose()}}},35315:(e,t,i)=>{"use strict";i.d(t,{l:()=>d,F:()=>l});var n=i(17390),s=i(25689),o=i(41234),r=i(43545),a=i(42904);const l={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class d extends n.x{constructor(e){var t;super(),this._onChange=this._register(new o.vl),this.onChange=this._onChange.event,this._onKeyDown=this._register(new o.vl),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const i=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,i.push(...s.L.asClassNameArray(this._icon))),this._opts.actionClassName&&i.push(...this._opts.actionClassName.split(" ")),this._checked&&i.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register((0,r.f)(null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,a.nZ)("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...i),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,(e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())})),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,(e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),void e.stopPropagation();this._onKeyDown.fire(e)}))}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},19466:(e,t,i)=>{"use strict";i.d(t,{DO:()=>$,w0:()=>D,KP:()=>n,RD:()=>M,vD:()=>I});var n,s=i(8597),o=(i(56245),i(72962)),r=(i(11799),i(88443),i(91581)),a=i(66700),l=i(93090),d=i(35315),h=i(37472),c=i(84565),u=(i(36921),i(25890)),g=i(90766),p=i(10350),m=i(25689),f=i(74320),_=i(41234),v=i(26690),b=i(5662),C=i(1592),y=i(631),w=i(31629),S=(i(42904),i(99938));class k extends a.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function x(e){return e instanceof a.ur?new k(e):e}class L{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=b.jG.None,this.disposables=new b.Cm}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,x(e),t)}onDragOver(e,t,i,n,s,o=!0){const r=this.dnd.onDragOver(x(e),t&&t.element,i,n,s),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return r;if(a&&"boolean"!==typeof r&&r.autoExpand&&(this.autoExpandDisposable=(0,g.EQ)((()=>{const e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0}),500,this.disposables)),"boolean"===typeof r||!r.accept||"undefined"===typeof r.bubble||r.feedback){if(!o){return{accept:"boolean"===typeof r?r:r.accept,effect:"boolean"===typeof r?void 0:r.effect,feedback:[i]}}return r}if(1===r.bubble){const i=this.modelProvider(),o=i.getNodeLocation(t),r=i.getParentNodeLocation(o),a=i.getNode(r),l=r&&i.getListIndex(r);return this.onDragOver(e,a,l,n,s,!1)}const l=this.modelProvider(),d=l.getNodeLocation(t),h=l.getListIndex(d),c=l.getListRenderCount(d);return{...r,feedback:(0,u.y1)(h,h+c)}}drop(e,t,i,n,s){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(x(e),t&&t.element,i,n,s)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}dispose(){this.disposables.dispose(),this.dnd.dispose()}}class D{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){var i,n;null===(n=(i=this.delegate).setDynamicHeight)||void 0===n||n.call(i,e.element,t)}}!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(n||(n={}));class E{get elements(){return this._elements}constructor(e,t=[]){this._elements=t,this.disposables=new b.Cm,this.onDidChange=_.Jh.forEach(e,(e=>this._elements=e),this.disposables)}dispose(){this.disposables.dispose()}}class N{constructor(e,t,i,n,s,o={}){var r;this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedIndentGuides=s,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=N.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=b.jG.None,this.disposables=new b.Cm,this.templateId=e.templateId,this.updateOptions(o),_.Jh.map(i,(e=>e.node))(this.onDidChangeNodeTwistieState,this,this.disposables),null===(r=e.onDidChangeTwistieState)||void 0===r||r.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if("undefined"!==typeof e.indent){const t=(0,C.qE)(e.indent,0,40);if(t!==this.indent){this.indent=t;for(const[e,t]of this.renderedNodes)this.renderTreeElement(e,t)}}if("undefined"!==typeof e.renderIndentGuides){const t=e.renderIndentGuides!==n.None;if(t!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=t;for(const[e,t]of this.renderedNodes)this._renderIndentGuides(e,t);if(this.indentGuidesDisposable.dispose(),t){const e=new b.Cm;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=(0,s.BC)(e,(0,s.$)(".monaco-tl-row")),i=(0,s.BC)(t,(0,s.$)(".monaco-tl-indent")),n=(0,s.BC)(t,(0,s.$)(".monaco-tl-twistie")),o=(0,s.BC)(t,(0,s.$)(".monaco-tl-contents")),r=this.renderer.renderTemplate(o);return{container:e,indent:i,twistie:n,indentGuidesDisposable:b.jG.None,templateData:r}}renderElement(e,t,i,n){this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){var s,o;i.indentGuidesDisposable.dispose(),null===(o=(s=this.renderer).disposeElement)||void 0===o||o.call(s,e,t,i.templateData,n),"number"===typeof n&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t))}renderTreeElement(e,t){const i=N.DefaultIndent+(e.depth-1)*this.indent;t.twistie.style.paddingLeft=`${i}px`,t.indent.style.width=i+this.indent-16+"px",e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...m.L.asClassNameArray(p.W.treeItemExpanded));let n=!1;this.renderer.renderTwistie&&(n=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(n||t.twistie.classList.add(...m.L.asClassNameArray(p.W.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,t)}_renderIndentGuides(e,t){if((0,s.w_)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new b.Cm,n=this.modelProvider();for(;;){const o=n.getNodeLocation(e),r=n.getParentNodeLocation(o);if(!r)break;const a=n.getNode(r),l=(0,s.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(a)&&l.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(l):t.indent.insertBefore(l,t.indent.firstElementChild),this.renderedIndentGuides.add(a,l),i.add((0,b.s)((()=>this.renderedIndentGuides.delete(a,l)))),e=a}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach((e=>{const n=i.getNodeLocation(e);try{const s=i.getParentNodeLocation(n);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):s&&t.add(i.getNode(s))}catch(s){}})),this.activeIndentNodes.forEach((e=>{t.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.remove("active")))})),t.forEach((e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.add("active")))})),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,b.AS)(this.disposables)}}N.DefaultIndent=8;class T{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new b.Cm,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,t){let i=1;if(this._filter){const n=this._filter.filter(e,t);if(i="boolean"===typeof n?n?1:0:(0,h.iZ)(n)?(0,h.Mn)(n.visibility):n,0===i)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:v.ne.Default,visibility:i};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),s=Array.isArray(n)?n:[n];for(const o of s){const e=o&&o.toString();if("undefined"===typeof e)return{data:v.ne.Default,visibility:i};let t;if(this.tree.findMatchType===M.Contiguous){const i=e.toLowerCase().indexOf(this._lowercasePattern);if(i>-1){t=[Number.MAX_SAFE_INTEGER,0];for(let e=this._lowercasePattern.length;e>0;e--)t.push(i+e-1)}}else t=(0,v.dt)(this._pattern,this._lowercasePattern,0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(t)return this._matchCount++,1===s.length?{data:t,visibility:i}:{data:{label:e,score:t},visibility:i}}return this.tree.findMode===I.Filter?"number"===typeof this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:v.ne.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,b.AS)(this.disposables)}}d.l;d.l;r.x8,d.F;var I,M;!function(e){e[e.Highlight=0]="Highlight",e[e.Filter=1]="Filter"}(I||(I={})),function(e){e[e.Fuzzy=0]="Fuzzy",e[e.Contiguous=1]="Contiguous"}(M||(M={}));b.jG;class A{get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}get matchType(){return this._matchType}set matchType(e){e!==this._matchType&&(this._matchType=e,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e))}constructor(e,t,i,n,s,o={}){var r,a;this.tree=e,this.view=i,this.filter=n,this.contextViewProvider=s,this.options=o,this._pattern="",this.width=0,this._onDidChangeMode=new _.vl,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new _.vl,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new _.vl,this._onDidChangeOpenState=new _.vl,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new b.Cm,this.disposables=new b.Cm,this._mode=null!==(r=e.options.defaultFindMode)&&void 0!==r?r:I.Highlight,this._matchType=null!==(a=e.options.defaultFindMatchType)&&void 0!==a?a:M.Fuzzy,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(e={}){void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}render(){var e,t,i,n;const s=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&s?null===(e=this.tree.options.showNotFoundMessage)||void 0===e||e?null===(t=this.widget)||void 0===t||t.showMessage({type:2,content:(0,w.kg)("not found","No elements found.")}):null===(i=this.widget)||void 0===i||i.showMessage({type:2}):null===(n=this.widget)||void 0===n||n.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||(this.filter.totalCount>0&&this.filter.matchCount<=1||!v.ne.isDefault(e.filterData))}layout(e){var t;this.width=e,null===(t=this.widget)||void 0===t||t.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function R(e,t){return e.position===t.position&&O(e,t)}function O(e,t){return e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex}class P{constructor(e=[]){this.stickyNodes=e}get count(){return this.stickyNodes.length}equal(e){return(0,u.aI)(this.stickyNodes,e.stickyNodes,R)}lastNodePartiallyVisible(){if(0===this.count)return!1;const e=this.stickyNodes[this.count-1];if(1===this.count)return 0!==e.position;const t=this.stickyNodes[this.count-2];return t.position+t.height!==e.position}animationStateChanged(e){if(!(0,u.aI)(this.stickyNodes,e.stickyNodes,O))return!1;if(0===this.count)return!1;const t=this.stickyNodes[this.count-1],i=e.stickyNodes[e.count-1];return t.position!==i.position}}class F{constrainStickyScrollNodes(e,t,i){for(let n=0;n<e.length;n++){const s=e[n];if(s.position+s.height>i||n>=t)return e.slice(0,n)}return e}}class B extends b.jG{constructor(e,t,i,n,s,o={}){var r;super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=s,this.maxWidgetViewRatio=.4;const a=this.validateStickySettings(o);this.stickyScrollMaxItemCount=a.stickyScrollMaxItemCount,this.stickyScrollDelegate=null!==(r=o.stickyScrollDelegate)&&void 0!==r?r:new F,this._widget=this._register(new W(i.getScrollableElement(),i,e,n,s,o.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(i.onDidScroll((()=>this.update()))),this._register(i.onDidChangeContentHeight((()=>this.update()))),this._register(e.onDidChangeCollapseState((()=>this.update()))),this.update()}get height(){return this._widget.height}getNodeAtHeight(e){let t;if(t=0===e?this.view.firstVisibleIndex:this.view.indexAt(e+this.view.scrollTop),!(t<0||t>=this.view.length))return this.view.element(t)}update(){const e=this.getNodeAtHeight(0);if(!e||0===this.tree.scrollTop)return void this._widget.setState(void 0);const t=this.findStickyState(e);this._widget.setState(t)}findStickyState(e){const t=[];let i=e,n=0,s=this.getNextStickyNode(i,void 0,n);for(;s&&(t.push(s),n+=s.height,!(t.length<=this.stickyScrollMaxItemCount)||(i=this.getNextVisibleNode(s),i));)s=this.getNextStickyNode(i,s.node,n);const o=this.constrainStickyNodes(t);return o.length?new P(o):void 0}getNextVisibleNode(e){return this.getNodeAtHeight(e.position+e.height)}getNextStickyNode(e,t,i){const n=this.getAncestorUnderPrevious(e,t);if(n){if(n===e){if(!this.nodeIsUncollapsedParent(e))return;if(this.nodeTopAlignsWithStickyNodesBottom(e,i))return}return this.createStickyScrollNode(n,i)}}nodeTopAlignsWithStickyNodesBottom(e,t){const i=this.getNodeIndex(e),n=this.view.getElementTop(i),s=t;return this.view.scrollTop===n-s}createStickyScrollNode(e,t){const i=this.treeDelegate.getHeight(e),{startIndex:n,endIndex:s}=this.getNodeRange(e);return{node:e,position:this.calculateStickyNodePosition(s,t,i),height:i,startIndex:n,endIndex:s}}getAncestorUnderPrevious(e,t=void 0){let i=e,n=this.getParentNode(i);for(;n;){if(n===t)return i;i=n,n=this.getParentNode(i)}if(void 0===t)return i}calculateStickyNodePosition(e,t,i){let n=this.view.getRelativeTop(e);if(null===n&&this.view.firstVisibleIndex===e&&e+1<this.view.length){const t=this.treeDelegate.getHeight(this.view.element(e)),i=this.view.getRelativeTop(e+1);n=i?i-t/this.view.renderHeight:null}if(null===n)return t;const s=this.view.element(e),o=this.treeDelegate.getHeight(s),r=n*this.view.renderHeight+o;return t+i>r&&t<=r?r-i:t}constrainStickyNodes(e){if(0===e.length)return[];const t=this.view.renderHeight*this.maxWidgetViewRatio,i=e[e.length-1];if(e.length<=this.stickyScrollMaxItemCount&&i.position+i.height<=t)return e;const n=this.stickyScrollDelegate.constrainStickyScrollNodes(e,this.stickyScrollMaxItemCount,t);if(!n.length)return[];const s=n[n.length-1];if(n.length>this.stickyScrollMaxItemCount||s.position+s.height>t)throw new Error("stickyScrollDelegate violates constraints");return n}getParentNode(e){const t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0}nodeIsUncollapsedParent(e){const t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1}getNodeIndex(e){const t=this.model.getNodeLocation(e);return this.model.getListIndex(t)}getNodeRange(e){const t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw new Error("Node not found in tree");return{startIndex:i,endIndex:i+this.model.getListRenderCount(t)-1}}nodePositionTopBelowWidget(e){const t=[];let i=this.getParentNode(e);for(;i;)t.push(i),i=this.getParentNode(i);let n=0;for(let s=0;s<t.length&&s<this.stickyScrollMaxItemCount;s++)n+=this.treeDelegate.getHeight(t[s]);return n}domFocus(){this._widget.domFocus()}focusedLast(){return this._widget.focusedLast()}updateOptions(e={}){if(!e.stickyScrollMaxItemCount)return;const t=this.validateStickySettings(e);this.stickyScrollMaxItemCount!==t.stickyScrollMaxItemCount&&(this.stickyScrollMaxItemCount=t.stickyScrollMaxItemCount,this.update())}validateStickySettings(e){let t=7;return"number"===typeof e.stickyScrollMaxItemCount&&(t=Math.max(e.stickyScrollMaxItemCount,1)),{stickyScrollMaxItemCount:t}}}class W{constructor(e,t,i,n,o,r){this.view=t,this.tree=i,this.treeRenderers=n,this.treeDelegate=o,this.accessibilityProvider=r,this._previousElements=[],this._previousStateDisposables=new b.Cm,this._rootDomNode=(0,s.$)(".monaco-tree-sticky-container.empty"),e.appendChild(this._rootDomNode);const a=(0,s.$)(".monaco-tree-sticky-container-shadow");this._rootDomNode.appendChild(a),this.stickyScrollFocus=new V(this._rootDomNode,t),this.onDidChangeHasFocus=this.stickyScrollFocus.onDidChangeHasFocus,this.onContextMenu=this.stickyScrollFocus.onContextMenu}get height(){if(!this._previousState)return 0;const e=this._previousState.stickyNodes[this._previousState.count-1];return e.position+e.height}setState(e){const t=!!this._previousState&&this._previousState.count>0,i=!!e&&e.count>0;if(!t&&!i||t&&i&&this._previousState.equal(e))return;if(t!==i&&this.setVisible(i),!i)return this._previousState=void 0,this._previousElements=[],void this._previousStateDisposables.clear();const n=e.stickyNodes[e.count-1];if(this._previousState&&e.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${n.position}px`;else{this._previousStateDisposables.clear();const t=Array(e.count);for(let i=e.count-1;i>=0;i--){const n=e.stickyNodes[i],{element:s,disposable:o}=this.createElement(n,i,e.count);t[i]=s,this._rootDomNode.appendChild(s),this._previousStateDisposables.add(o)}this.stickyScrollFocus.updateElements(t,e),this._previousElements=t}this._previousState=e,this._rootDomNode.style.height=`${n.position+n.height}px`}createElement(e,t,i){const n=e.startIndex,s=document.createElement("div");s.style.top=`${e.position}px`,!1!==this.tree.options.setRowHeight&&(s.style.height=`${e.height}px`),!1!==this.tree.options.setRowLineHeight&&(s.style.lineHeight=`${e.height}px`),s.classList.add("monaco-tree-sticky-row"),s.classList.add("monaco-list-row"),s.setAttribute("data-index",`${n}`),s.setAttribute("data-parity",n%2===0?"even":"odd"),s.setAttribute("id",this.view.getElementID(n));const o=this.setAccessibilityAttributes(s,e.node.element,t,i),r=this.treeDelegate.getTemplateId(e.node),a=this.treeRenderers.find((e=>e.templateId===r));if(!a)throw new Error(`No renderer found for template id ${r}`);let l=e.node;l===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(l=new Proxy(e.node,{}));const d=a.renderTemplate(s);a.renderElement(l,e.startIndex,d,e.height);const h=(0,b.s)((()=>{o.dispose(),a.disposeElement(l,e.startIndex,d,e.height),a.disposeTemplate(d),s.remove()}));return{element:s,disposable:h}}setAccessibilityAttributes(e,t,i,n){var s;if(!this.accessibilityProvider)return b.jG.None;this.accessibilityProvider.getSetSize&&e.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(t,i,n))),this.accessibilityProvider.getPosInSet&&e.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(t,i))),this.accessibilityProvider.getRole&&e.setAttribute("role",null!==(s=this.accessibilityProvider.getRole(t))&&void 0!==s?s:"treeitem");const o=this.accessibilityProvider.getAriaLabel(t),r=o&&"string"!==typeof o?o:(0,S.lk)(o),a=(0,S.fm)((t=>{const i=t.readObservable(r);i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label")}));"string"===typeof o||o&&e.setAttribute("aria-label",o.get());const l=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(t);return"number"===typeof l&&e.setAttribute("aria-level",`${l}`),e.setAttribute("aria-selected",String(!1)),a}setVisible(e){this._rootDomNode.classList.toggle("empty",!e),e||this.stickyScrollFocus.updateElements([],void 0)}domFocus(){this.stickyScrollFocus.domFocus()}focusedLast(){return this.stickyScrollFocus.focusedLast()}dispose(){this.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove()}}class V extends b.jG{get domHasFocus(){return this._domHasFocus}set domHasFocus(e){e!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(e),this._domHasFocus=e)}constructor(e,t){super(),this.container=e,this.view=t,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=new _.vl,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new _.vl,this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this.container.addEventListener("focus",(()=>this.onFocus())),this.container.addEventListener("blur",(()=>this.onBlur())),this._register(this.view.onDidFocus((()=>this.toggleStickyScrollFocused(!1)))),this._register(this.view.onKeyDown((e=>this.onKeyDown(e)))),this._register(this.view.onMouseDown((e=>this.onMouseDown(e)))),this._register(this.view.onContextMenu((e=>this.handleContextMenu(e))))}handleContextMenu(e){const t=e.browserEvent.target;if(!(0,l.Es)(t)&&!(0,l.xu)(t))return void(this.focusedLast()&&this.view.domFocus());if(!(0,s.kx)(e.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");const t=this.state.stickyNodes.findIndex((t=>{var i;return t.node.element===(null===(i=e.element)||void 0===i?void 0:i.element)}));if(-1===t)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");return this.container.focus(),void this.setFocus(t)}if(!this.state||this.focusedIndex<0)throw new Error("Context menu key should not be triggered when focus is not in sticky scroll widget");const i=this.state.stickyNodes[this.focusedIndex].node.element,n=this.elements[this.focusedIndex];this._onContextMenu.fire({element:i,anchor:n,browserEvent:e.browserEvent,isStickyScroll:!0})}onKeyDown(e){if(this.domHasFocus&&this.state)if("ArrowUp"===e.key)this.setFocusedElement(Math.max(0,this.focusedIndex-1)),e.preventDefault(),e.stopPropagation();else if("ArrowDown"===e.key||"ArrowRight"===e.key){if(this.focusedIndex>=this.state.count-1){const e=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([e]),this.scrollNodeUnderWidget(e,this.state)}else this.setFocusedElement(this.focusedIndex+1);e.preventDefault(),e.stopPropagation()}}onMouseDown(e){const t=e.browserEvent.target;((0,l.Es)(t)||(0,l.xu)(t))&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation())}updateElements(e,t){if(t&&0===t.count)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(t&&t.count!==e.length)throw new Error("Sticky scroll focus received illigel state");const i=this.focusedIndex;if(this.removeFocus(),this.elements=e,this.state=t,t){const e=(0,C.qE)(i,0,t.count-1);this.setFocus(e)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=t?0:-1}setFocusedElement(e){const t=this.state;if(!t)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(e),!(e<t.count-1)&&t.lastNodePartiallyVisible()){const i=t.stickyNodes[e];this.scrollNodeUnderWidget(i.endIndex+1,t)}}scrollNodeUnderWidget(e,t){const i=t.stickyNodes[t.count-1],n=t.count>1?t.stickyNodes[t.count-2]:void 0,s=this.view.getElementTop(e),o=n?n.position+n.height+i.height:i.height;this.view.scrollTop=s-o}domFocus(){if(!this.state)throw new Error("Cannot focus when state is undefined");this.container.focus()}focusedLast(){return!!this.state&&this.view.getHTMLElement().classList.contains("sticky-scroll-focused")}removeFocus(){-1!==this.focusedIndex&&(this.toggleElementFocus(this.elements[this.focusedIndex],!1),this.focusedIndex=-1)}setFocus(e){if(0>e)throw new Error("addFocus() can not remove focus");if(!this.state&&e>=0)throw new Error("Cannot set focus index when state is undefined");if(this.state&&e>=this.state.count)throw new Error("Cannot set focus index to an index that does not exist");const t=this.focusedIndex;t>=0&&this.toggleElementFocus(this.elements[t],!1),e>=0&&this.toggleElementFocus(this.elements[e],!0),this.focusedIndex=e}toggleElementFocus(e,t){this.toggleElementActiveFocus(e,t&&this.domHasFocus),this.toggleElementPassiveFocus(e,t)}toggleCurrentElementActiveFocus(e){-1!==this.focusedIndex&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],e)}toggleElementActiveFocus(e,t){e.classList.toggle("focused",t)}toggleElementPassiveFocus(e,t){e.classList.toggle("passive-focused",t)}toggleStickyScrollFocused(e){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",e)}onFocus(){if(!this.state||0===this.elements.length)throw new Error("Cannot focus when state is undefined or elements are empty");this.domHasFocus=!0,this.toggleStickyScrollFocused(!0),this.toggleCurrentElementActiveFocus(!0),-1===this.focusedIndex&&this.setFocus(0)}onBlur(){this.domHasFocus=!1,this.toggleCurrentElementActiveFocus(!1)}dispose(){this.toggleStickyScrollFocused(!1),this._onDidChangeHasFocus.fire(!1),super.dispose()}}function H(e){let t=c.Lx.Unknown;return(0,s.XD)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=c.Lx.Twistie:(0,s.XD)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=c.Lx.Element:(0,s.XD)(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=c.Lx.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function z(e){const t=(0,l.Es)(e.browserEvent.target);return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor,isStickyScroll:t}}function j(e,t){t(e),e.children.forEach((e=>j(e,t)))}class U{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new _.vl,this.onDidChange=this._onDidChange.event}set(e,t){!(null===t||void 0===t?void 0:t.__forceEvent)&&(0,u.aI)(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map((e=>e.element))),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const e=this.createNodeSet(),i=t=>e.delete(t);return t.forEach((e=>j(e,i))),void this.set([...e.values()])}const i=new Set,n=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach((e=>j(e,n)));const s=new Map,o=e=>s.set(this.identityProvider.getId(e.element).toString(),e);e.forEach((e=>j(e,o)));const r=[];for(const a of this.nodes){const e=this.identityProvider.getId(a.element).toString();if(i.has(e)){const t=s.get(e);t&&t.visible&&r.push(t)}else r.push(a)}if(this.nodes.length>0&&0===r.length){const e=this.getFirstViewElementWithTrait();e&&r.push(e)}this._set(r,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class K extends l.MH{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i}onViewPointer(e){if((0,l.Bm)(e.browserEvent.target)||(0,l.B6)(e.browserEvent.target)||(0,l.bm)(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,s=(0,l.xu)(e.browserEvent.target);let o=!1;if(o=!!s||("function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick),s)this.handleStickyScrollMouseEvent(e,t);else{if(o&&!n&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e)}if(t.collapsible&&(!s||n)){const i=this.tree.getNodeLocation(t),s=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,s),o&&n)return void(e.browserEvent.isHandledByList=!0)}s||super.onViewPointer(e)}handleStickyScrollMouseEvent(e,t){if((0,l.b$)(e.browserEvent.target)||(0,l.W0)(e.browserEvent.target))return;const i=this.stickyScrollProvider();if(!i)throw new Error("Sticky scroll controller not found");const n=this.list.indexOf(t),s=this.list.getElementTop(n),o=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=s-o,this.list.domFocus(),this.list.setFocus([n]),this.list.setSelection([n])}onDoubleClick(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&(e.browserEvent.isHandledByList||super.onDoubleClick(e))}onMouseDown(e){const t=e.browserEvent.target;(0,l.Es)(t)||(0,l.xu)(t)||super.onMouseDown(e)}onContextMenu(e){const t=e.browserEvent.target;(0,l.Es)(t)||(0,l.xu)(t)||super.onContextMenu(e)}}class G extends l.B8{constructor(e,t,i,n,s,o,r,a){super(e,t,i,n,a),this.focusTrait=s,this.selectionTrait=o,this.anchorTrait=r}createMouseController(e){return new K(this,e.tree,e.stickyScrollProvider)}splice(e,t,i=[]){if(super.splice(e,t,i),0===i.length)return;const n=[],s=[];let o;i.forEach(((t,i)=>{this.focusTrait.has(t)&&n.push(e+i),this.selectionTrait.has(t)&&s.push(e+i),this.anchorTrait.has(t)&&(o=e+i)})),n.length>0&&super.setFocus((0,u.dM)([...super.getFocus(),...n])),s.length>0&&super.setSelection((0,u.dM)([...super.getSelection(),...s])),"number"===typeof o&&super.setAnchor(o)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map((e=>this.element(e))),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map((e=>this.element(e))),t)}setAnchor(e,t=!1){super.setAnchor(e),t||("undefined"===typeof e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class ${get onDidScroll(){return this.view.onDidScroll}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return _.Jh.filter(_.Jh.map(this.view.onMouseDblClick,H),(e=>e.target!==c.Lx.Filter))}get onMouseOver(){return _.Jh.map(this.view.onMouseOver,H)}get onMouseOut(){return _.Jh.map(this.view.onMouseOut,H)}get onContextMenu(){var e,t;return _.Jh.any(_.Jh.filter(_.Jh.map(this.view.onContextMenu,z),(e=>!e.isStickyScroll)),null!==(t=null===(e=this.stickyScrollController)||void 0===e?void 0:e.onContextMenu)&&void 0!==t?t:_.Jh.None)}get onPointer(){return _.Jh.map(this.view.onPointer,H)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return _.Jh.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.mode)&&void 0!==t?t:I.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.matchType)&&void 0!==t?t:M.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}get expandOnDoubleClick(){return"undefined"===typeof this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return"undefined"===typeof this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(e,t,i,r,a={}){var d;this._user=e,this._options=a,this.eventBufferer=new _.at,this.onDidChangeFindOpenState=_.Jh.None,this.onDidChangeStickyScrollFocused=_.Jh.None,this.disposables=new b.Cm,this._onWillRefilter=new _.vl,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new _.vl,this.treeDelegate=new D(i);const h=new _.Wj,c=new _.Wj,u=this.disposables.add(new E(c.event)),p=new f.db;this.renderers=r.map((e=>new N(e,(()=>this.model),h.event,u,p,a)));for(const n of this.renderers)this.disposables.add(n);let m;var v,C;a.keyboardNavigationLabelProvider&&(m=new T(this,a.keyboardNavigationLabelProvider,a.filter),a={...a,filter:m},this.disposables.add(m)),this.focus=new U((()=>this.view.getFocusedElements()[0]),a.identityProvider),this.selection=new U((()=>this.view.getSelectedElements()[0]),a.identityProvider),this.anchor=new U((()=>this.view.getAnchorElement()),a.identityProvider),this.view=new G(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...(v=()=>this.model,C=a,C&&{...C,identityProvider:C.identityProvider&&{getId:e=>C.identityProvider.getId(e.element)},dnd:C.dnd&&new L(v,C.dnd),multipleSelectionController:C.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>C.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element}),isSelectionRangeChangeEvent:e=>C.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})},accessibilityProvider:C.accessibilityProvider&&{...C.accessibilityProvider,getSetSize(e){const t=v(),i=t.getNodeLocation(e),n=t.getParentNodeLocation(i);return t.getNode(n).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:C.accessibilityProvider&&C.accessibilityProvider.isChecked?e=>C.accessibilityProvider.isChecked(e.element):void 0,getRole:C.accessibilityProvider&&C.accessibilityProvider.getRole?e=>C.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>C.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>C.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:C.accessibilityProvider&&C.accessibilityProvider.getWidgetRole?()=>C.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:C.accessibilityProvider&&C.accessibilityProvider.getAriaLevel?e=>C.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:C.accessibilityProvider.getActiveDescendantId&&(e=>C.accessibilityProvider.getActiveDescendantId(e.element))},keyboardNavigationLabelProvider:C.keyboardNavigationLabelProvider&&{...C.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:e=>C.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(e,this.view,a),h.input=this.model.onDidChangeCollapseState;const y=_.Jh.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}),this.disposables);y((()=>null),null,this.disposables);const w=this.disposables.add(new _.vl),S=this.disposables.add(new g.ve(0));if(this.disposables.add(_.Jh.any(y,this.focus.onDidChange,this.selection.onDidChange)((()=>{S.trigger((()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);w.fire([...e.values()])}))}))),c.input=w.event,!1!==a.keyboardSupport){const e=_.Jh.chain(this.view.onKeyDown,(e=>e.filter((e=>!(0,l.B6)(e.target))).map((e=>new o.Z(e)))));_.Jh.chain(e,(e=>e.filter((e=>15===e.keyCode))))(this.onLeftArrow,this,this.disposables),_.Jh.chain(e,(e=>e.filter((e=>17===e.keyCode))))(this.onRightArrow,this,this.disposables),_.Jh.chain(e,(e=>e.filter((e=>10===e.keyCode))))(this.onSpace,this,this.disposables)}if((null===(d=a.findWidgetEnabled)||void 0===d||d)&&a.keyboardNavigationLabelProvider&&a.contextViewProvider){const e=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new A(this,this.model,this.view,m,a.contextViewProvider,e),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=_.Jh.None,this.onDidChangeFindMatchType=_.Jh.None;a.enableStickyScroll&&(this.stickyScrollController=new B(this,this.model,this.view,this.renderers,this.treeDelegate,a),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=(0,s.li)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===n.Always)}updateOptions(e={}){var t;this._options={...this._options,...e};for(const i of this.renderers)i.updateOptions(e);this.view.updateOptions(this._options),null===(t=this.findController)||void 0===t||t.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===n.Always)}get options(){return this._options}updateStickyScroll(e){var t;!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new B(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=_.Jh.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),null===(t=this.stickyScrollController)||void 0===t||t.updateOptions(e)}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get ariaLabel(){return this.view.ariaLabel}set ariaLabel(e){this.view.ariaLabel=e}domFocus(){var e;(null===(e=this.stickyScrollController)||void 0===e?void 0:e.focusedLast())?this.stickyScrollController.domFocus():this.view.domFocus()}layout(e,t){var i;this.view.layout(e,t),(0,y.Et)(t)&&(null===(i=this.findController)||void 0===i||i.layout(t))}style(e){var t;const i=`.${this.view.domId}`,n=[];e.treeIndentGuidesStroke&&(n.push(`.monaco-list${i}:hover .monaco-tl-indent > .indent-guide, .monaco-list${i}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),n.push(`.monaco-list${i} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),e.listBackground&&(n.push(`.monaco-list${i} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${e.listBackground}; }`),n.push(`.monaco-list${i} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${e.listBackground}; }`)),e.listFocusForeground&&(n.push(`.monaco-list${i}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),n.push(`.monaco-list${i}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));const o=(0,s.gI)(e.listFocusAndSelectionOutline,(0,s.gI)(e.listSelectionOutline,null!==(t=e.listFocusOutline)&&void 0!==t?t:""));o&&(n.push(`.monaco-list${i}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${o}; outline-offset: -1px;}`),n.push(`.monaco-list${i}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),e.listFocusOutline&&(n.push(`.monaco-list${i}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),n.push(`.monaco-list${i}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),n.push(`.monaco-workbench.context-menu-visible .monaco-list${i}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),n.push(`.monaco-workbench.context-menu-visible .monaco-list${i}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),n.push(`.monaco-workbench.context-menu-visible .monaco-list${i}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=n.join("\n"),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}getNodeLocation(e){return this.model.getNodeLocation(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}toggleCollapsed(e,t=!1){return this.model.setCollapsed(e,void 0,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.selection.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setSelection(n,t,!0)}))}getSelection(){return this.selection.get()}setFocus(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.focus.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setFocus(n,t,!0)}))}focusNext(e=1,t=!1,i,n=((0,s.kx)(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusNext(e,t,i,n)}focusPrevious(e=1,t=!1,i,n=((0,s.kx)(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusPrevious(e,t,i,n)}focusNextPage(e,t=((0,s.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusNextPage(e,t)}focusPreviousPage(e,t=((0,s.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusPreviousPage(e,t,(()=>{var e,t;return null!==(t=null===(e=this.stickyScrollController)||void 0===e?void 0:e.height)&&void 0!==t?t:0}))}focusFirst(e,t=((0,s.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){this.view.focusFirst(e,t)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);if(-1!==i)if(this.stickyScrollController){const n=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,n)}else this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const e=this.model.getParentNodeLocation(n);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some((e=>e.visible)))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i),s=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,s)}dispose(){var e;(0,b.AS)(this.disposables),null===(e=this.stickyScrollController)||void 0===e||e.dispose(),this.view.dispose()}}},37472:(e,t,i)=>{"use strict";i.d(t,{G6:()=>g,Mn:()=>c,iZ:()=>h});var n=i(84565),s=i(25890),o=i(90766),r=i(44759),a=i(83993),l=i(41234),d=i(42522);function h(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function c(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function u(e){return"boolean"===typeof e.collapsible}class g{constructor(e,t,i,n={}){var s;this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new l.at,this._onDidChangeCollapseState=new l.vl,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new l.vl,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new l.vl,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new o.ve(r.h),this.collapseByDefault="undefined"!==typeof n.collapseByDefault&&n.collapseByDefault,this.allowNonCollapsibleParents=null!==(s=n.allowNonCollapsibleParents)&&void 0!==s&&s,this.filter=n.filter,this.autoExpandSingleChildren="undefined"!==typeof n.autoExpandSingleChildren&&n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=d.f.empty(),s={}){if(0===e.length)throw new n.jh(this.user,"Invalid tree location");s.diffIdentityProvider?this.spliceSmart(s.diffIdentityProvider,e,t,i,s):this.spliceSimple(e,t,i,s)}spliceSmart(e,t,i,n,s,o){var r;void 0===n&&(n=d.f.empty()),void 0===o&&(o=null!==(r=s.diffDepth)&&void 0!==r?r:0);const{parentNode:l}=this.getParentNodeWithListIndex(t);if(!l.lastDiffIds)return this.spliceSimple(t,i,n,s);const h=[...n],c=t[t.length-1],u=new a.uP({getElements:()=>l.lastDiffIds},{getElements:()=>[...l.children.slice(0,c),...h,...l.children.slice(c+i)].map((t=>e.getId(t.element).toString()))}).ComputeDiff(!1);if(u.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(t,i,h,s);const g=t.slice(0,-1),p=(t,i,n)=>{if(o>0)for(let r=0;r<n;r++)t--,i--,this.spliceSmart(e,[...g,t,0],Number.MAX_SAFE_INTEGER,h[i].children,s,o-1)};let m=Math.min(l.children.length,c+i),f=h.length;for(const a of u.changes.sort(((e,t)=>t.originalStart-e.originalStart)))p(m,f,m-(a.originalStart+a.originalLength)),m=a.originalStart,f=a.modifiedStart-c,this.spliceSimple([...g,m],a.originalLength,d.f.slice(h,f,f+a.modifiedLength),s);p(m,f,m)}spliceSimple(e,t,i=d.f.empty(),{onDidCreateNode:n,onDidDeleteNode:o,diffIdentityProvider:r}){const{parentNode:a,listIndex:l,revealed:h,visible:c}=this.getParentNodeWithListIndex(e),u=[],g=d.f.map(i,(e=>this.createTreeNode(e,a,a.visible?1:0,h,u,n))),p=e[e.length-1];let m=0;for(let s=p;s>=0&&s<a.children.length;s--){const e=a.children[s];if(e.visible){m=e.visibleChildIndex;break}}const f=[];let _=0,v=0;for(const s of g)f.push(s),v+=s.renderNodeCount,s.visible&&(s.visibleChildIndex=m+_++);const b=(0,s.V4)(a.children,p,t,f);r?a.lastDiffIds?(0,s.V4)(a.lastDiffIds,p,t,f.map((e=>r.getId(e.element).toString()))):a.lastDiffIds=a.children.map((e=>r.getId(e.element).toString())):a.lastDiffIds=void 0;let C=0;for(const s of b)s.visible&&C++;if(0!==C)for(let s=p+f.length;s<a.children.length;s++){const e=a.children[s];e.visible&&(e.visibleChildIndex-=C)}if(a.visibleChildrenCount+=_-C,h&&c){const e=b.reduce(((e,t)=>e+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(a,v-e),this.list.splice(l,e,u)}if(b.length>0&&o){const e=t=>{o(t),t.children.forEach(e)};b.forEach(e)}this._onDidSplice.fire({insertedNodes:f,deletedNodes:b});let y=a;for(;y;){if(2===y.visibility){this.refilterDelayer.trigger((()=>this.refilter()));break}y=y.parent}}rerender(e){if(0===e.length)throw new n.jh(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:s}=this.getTreeNodeWithListIndex(e);t.visible&&s&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,n)))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);"undefined"===typeof t&&(t=!n.collapsed);const s={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,s)))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:s}=this.getTreeNodeWithListIndex(e),o=this._setListNodeCollapseState(i,n,s,t);if(i!==this.root&&this.autoExpandSingleChildren&&o&&!u(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let n=-1;for(let e=0;e<i.children.length;e++){if(i.children[e].visible){if(n>-1){n=-1;break}n=e}}n>-1&&this._setCollapseState([...e,n],t)}return o}_setListNodeCollapseState(e,t,i,n){const s=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!s)return s;const o=e.renderNodeCount,r=this.updateNodeAfterCollapseChange(e),a=o-(-1===t?0:1);return this.list.splice(t+1,a,r.slice(1)),s}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(u(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!u(t)&&t.recursive)for(const s of e.children)n=this._setNodeCollapseState(s,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents((()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})}))}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,s,o){const r={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(r,i);r.visibility=a,n&&s.push(r);const l=e.children||d.f.empty(),h=n&&0!==a&&!r.collapsed;let c=0,u=1;for(const d of l){const e=this.createTreeNode(d,r,a,h,s,o);r.children.push(e),u+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=c++)}return this.allowNonCollapsibleParents||(r.collapsible=r.collapsible||r.children.length>0),r.visibleChildrenCount=c,r.visible=2===a?c>0:1===a,r.visible?r.collapsed||(r.renderNodeCount=u):(r.renderNodeCount=0,n&&s.pop()),null===o||void 0===o||o(r),r}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let s;if(e!==this.root){if(s=this._filterNode(e,t),0===s)return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}const o=i.length;e.renderNodeCount=e===this.root?0:1;let r=!1;if(e.collapsed&&0===s)e.visibleChildrenCount=0;else{let t=0;for(const o of e.children)r=this._updateNodeAfterFilterChange(o,s,i,n&&!e.collapsed)||r,o.visible&&(o.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===s?r:1===s,e.visibility=s),e.visible?e.collapsed||(e.renderNodeCount+=i.length-o):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof i?(e.filterData=void 0,i?1:0):h(i)?(e.filterData=i.data,c(i.visibility)):(e.filterData=void 0,c(i))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[i,...n]=e;return!(i<0||i>t.children.length)&&this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[i,...s]=e;if(i<0||i>t.children.length)throw new n.jh(this.user,"Invalid tree location");return this.getTreeNode(s,t.children[i])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:s,visible:o}=this.getParentNodeWithListIndex(e),r=e[e.length-1];if(r<0||r>t.children.length)throw new n.jh(this.user,"Invalid tree location");const a=t.children[r];return{node:a,listIndex:i,revealed:s,visible:o&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,s=!0,o=!0){const[r,...a]=e;if(r<0||r>t.children.length)throw new n.jh(this.user,"Invalid tree location");for(let n=0;n<r;n++)i+=t.children[n].renderNodeCount;return s=s&&!t.collapsed,o=o&&t.visible,0===a.length?{parentNode:t,listIndex:i,revealed:s,visible:o}:this.getParentNodeWithListIndex(a,t.children[r],i+1,s,o)}getNode(e=[]){return this.getTreeNode(e)}getNodeLocation(e){const t=[];let i=e;for(;i.parent;)t.push(i.parent.children.indexOf(i)),i=i.parent;return t.reverse()}getParentNodeLocation(e){return 0===e.length?void 0:1===e.length?[]:(0,s.bS)(e)[0]}getFirstElementChild(e){const t=this.getTreeNode(e);if(0!==t.children.length)return t.children[0].element}}},84565:(e,t,i)=>{"use strict";var n,s;i.d(t,{Lx:()=>s,Yo:()=>n,jh:()=>o,y2:()=>r}),function(e){e[e.Expanded=0]="Expanded",e[e.Collapsed=1]="Collapsed",e[e.PreserveOrExpanded=2]="PreserveOrExpanded",e[e.PreserveOrCollapsed=3]="PreserveOrCollapsed"}(n||(n={})),function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element",e[e.Filter=3]="Filter"}(s||(s={}));class o extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class r{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}},17390:(e,t,i)=>{"use strict";i.d(t,{x:()=>l});var n=i(8597),s=i(72962),o=i(47358),r=i(25154),a=i(5662);class l extends a.jG{onclick(e,t){this._register(n.ko(e,n.Bx.CLICK,(i=>t(new o.P(n.zk(e),i)))))}onmousedown(e,t){this._register(n.ko(e,n.Bx.MOUSE_DOWN,(i=>t(new o.P(n.zk(e),i)))))}onmouseover(e,t){this._register(n.ko(e,n.Bx.MOUSE_OVER,(i=>t(new o.P(n.zk(e),i)))))}onmouseleave(e,t){this._register(n.ko(e,n.Bx.MOUSE_LEAVE,(i=>t(new o.P(n.zk(e),i)))))}onkeydown(e,t){this._register(n.ko(e,n.Bx.KEY_DOWN,(e=>t(new s.Z(e)))))}onkeyup(e,t){this._register(n.ko(e,n.Bx.KEY_UP,(e=>t(new s.Z(e)))))}oninput(e,t){this._register(n.ko(e,n.Bx.INPUT,t))}onblur(e,t){this._register(n.ko(e,n.Bx.BLUR,t))}onfocus(e,t){this._register(n.ko(e,n.Bx.FOCUS,t))}ignoreGesture(e){return r.q.ignoreTarget(e)}}},25893:(e,t,i)=>{"use strict";function n(e,t){const i=e;"number"!==typeof i.vscodeWindowId&&Object.defineProperty(i,"vscodeWindowId",{get:()=>t})}i.d(t,{G:()=>s,y:()=>n});const s=window},36921:(e,t,i)=>{"use strict";i.d(t,{HJ:()=>h,LN:()=>a,YH:()=>d,ih:()=>c,rc:()=>r,wv:()=>l});var n=i(41234),s=i(5662),o=i(31629);class r extends s.jG{constructor(e,t="",i="",s=!0,o){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=s,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class a extends s.jG{constructor(){super(...arguments),this._onWillRun=this._register(new n.vl),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new n.vl),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;let i;this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(n){i=n}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class l{constructor(){this.id=l.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t=t.length?[...t,new l,...i]:i);return t}async run(){}}l.ID="vs.actions.separator";class d{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}}class h extends r{constructor(){super(h.ID,o.kg("submenu.empty","(empty)"),void 0,!1)}}function c(e){var t;return{id:e.id,label:e.label,class:e.class,enabled:null===(t=e.enabled)||void 0===t||t,checked:e.checked,run:async(...t)=>e.run(...t),tooltip:e.label}}h.ID="vs.actions.empty"},25890:(e,t,i)=>{"use strict";function n(e,t=0){return e[e.length-(1+t)]}function s(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function o(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0,s=e.length;n<s;n++)if(!i(e[n],t[n]))return!1;return!0}function r(e,t){const i=e.length-1;t<i&&(e[t]=e[i]),e.pop()}function a(e,t,i){return function(e,t){let i=0,n=e-1;for(;i<=n;){const e=(i+n)/2|0,s=t(e);if(s<0)i=e+1;else{if(!(s>0))return e;n=e-1}}return-(i+1)}(e.length,(n=>i(e[n],t)))}function l(e,t,i){if((e|=0)>=t.length)throw new TypeError("invalid index");const n=t[Math.floor(t.length*Math.random())],s=[],o=[],r=[];for(const a of t){const e=i(a,n);e<0?s.push(a):e>0?o.push(a):r.push(a)}return e<s.length?l(e,s,i):e<s.length+r.length?r[0]:l(e-(s.length+r.length),o,i)}function d(e,t){const i=[];let n;for(const s of e.slice(0).sort(t))n&&0===t(n[0],s)?n.push(s):(n=[s],i.push(n));return i}function*h(e,t){let i,n;for(const s of e)void 0!==n&&t(n,s)?i.push(s):(i&&(yield i),i=[s]),n=s;i&&(yield i)}function c(e,t){for(let i=0;i<=e.length;i++)t(0===i?void 0:e[i-1],i===e.length?void 0:e[i])}function u(e,t){for(let i=0;i<e.length;i++)t(0===i?void 0:e[i-1],e[i],i+1===e.length?void 0:e[i+1])}function g(e){return e.filter((e=>!!e))}function p(e){let t=0;for(let i=0;i<e.length;i++)e[i]&&(e[t]=e[i],t+=1);e.length=t}function m(e){return!Array.isArray(e)||0===e.length}function f(e){return Array.isArray(e)&&e.length>0}function _(e,t=e=>e){const i=new Set;return e.filter((e=>{const n=t(e);return!i.has(n)&&(i.add(n),!0)}))}function v(e,t){return e.length>0?e[0]:t}function b(e,t){let i="number"===typeof t?e:0;"number"===typeof t?i=e:(i=0,t=e);const n=[];if(i<=t)for(let s=i;s<t;s++)n.push(s);else for(let s=i;s>t;s--)n.push(s);return n}function C(e,t,i){const n=e.slice(0,t),s=e.slice(t);return n.concat(i,s)}function y(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function w(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function S(e,t){for(const i of t)e.push(i)}function k(e){return Array.isArray(e)?e:[e]}function x(e,t,i,n){const s=L(e,t);let o=e.splice(s,i);return void 0===o&&(o=[]),function(e,t,i){const n=L(e,t),s=e.length,o=i.length;e.length=s+o;for(let r=s-1;r>=n;r--)e[r+o]=e[r];for(let r=0;r<o;r++)e[r+n]=i[r]}(e,s,n),o}function L(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}var D;function E(e,t){return(i,n)=>t(e(i),e(n))}function N(...e){return(t,i)=>{for(const n of e){const e=n(t,i);if(!D.isNeitherLessOrGreaterThan(e))return e}return D.neitherLessOrGreaterThan}}i.d(t,{$z:()=>d,Ct:()=>m,E4:()=>S,EI:()=>f,El:()=>a,Fy:()=>v,Hw:()=>M,RT:()=>n,SK:()=>p,SO:()=>l,TS:()=>I,U9:()=>T,UH:()=>r,V4:()=>x,VE:()=>E,Yc:()=>g,_A:()=>y,_j:()=>k,aI:()=>o,bS:()=>s,c1:()=>R,dM:()=>_,j3:()=>A,kj:()=>u,n:()=>h,nH:()=>N,nK:()=>C,pN:()=>c,r7:()=>w,t9:()=>O,y1:()=>b}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(D||(D={}));const T=(e,t)=>e-t,I=(e,t)=>T(e?1:0,t?1:0);function M(e){return(t,i)=>-e(t,i)}class A{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class R{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new R((t=>this.iterate((i=>!e(i)||t(i)))))}map(e){return new R((t=>this.iterate((i=>t(e(i))))))}findLast(e){let t;return this.iterate((i=>(e(i)&&(t=i),!0))),t}findLastMaxBy(e){let t,i=!0;return this.iterate((n=>((i||D.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0))),t}}R.empty=new R((e=>{}));class O{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort(((i,n)=>t(e[i],e[n])));return new O(i)}apply(e){return e.map(((t,i)=>e[this._indexMap[i]]))}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new O(e)}}},46041:(e,t,i)=>{"use strict";function n(e,t,i){const n=function(e,t,i=e.length-1){for(let n=i;n>=0;n--){if(t(e[n]))return n}return-1}(e,t);if(-1!==n)return e[n]}function s(e,t){const i=o(e,t);return-1===i?void 0:e[i]}function o(e,t,i=0,n=e.length){let s=i,o=n;for(;s<o;){const i=Math.floor((s+o)/2);t(e[i])?s=i+1:o=i}return s-1}function r(e,t){const i=a(e,t);return i===e.length?void 0:e[i]}function a(e,t,i=0,n=e.length){let s=i,o=n;for(;s<o;){const i=Math.floor((s+o)/2);t(e[i])?o=i:s=i+1}return s}i.d(t,{Jw:()=>h,Nf:()=>d,Uk:()=>n,XP:()=>r,dC:()=>c,hw:()=>a,iM:()=>o,lx:()=>s,oH:()=>g,oU:()=>u,vJ:()=>l});class l{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=o(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function d(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){const s=e[n];t(s,i)>0&&(i=s)}return i}function h(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){const s=e[n];t(s,i)>=0&&(i=s)}return i}function c(e,t){return d(e,((e,i)=>-t(e,i)))}function u(e,t){if(0===e.length)return-1;let i=0;for(let n=1;n<e.length;n++){t(e[n],e[i])>0&&(i=n)}return i}function g(e,t){for(const i of e){const e=t(i);if(void 0!==e)return e}}l.assertInvariants=!1},66782:(e,t,i)=>{"use strict";i.d(t,{Ft:()=>a,V7:()=>r,Xo:()=>l,ok:()=>s,xb:()=>o});var n=i(64383);function s(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function o(e,t="Unreachable"){throw new Error(t)}function r(e){e||(0,n.dz)(new n.D7("Soft Assertion Failed"))}function a(e){e()||(e(),(0,n.dz)(new n.D7("Assertion Failed")))}function l(e,t){let i=0;for(;i<e.length-1;){if(!t(e[i],e[i+1]))return!1;i++}return!0}},90766:(e,t,i)=>{"use strict";i.d(t,{$1:()=>_,$6:()=>y,A0:()=>S,AE:()=>D,EQ:()=>f,F6:()=>k,HC:()=>L,PK:()=>c,Qg:()=>d,SS:()=>h,Th:()=>p,Zv:()=>x,b7:()=>w,bI:()=>N,pc:()=>v,uC:()=>C,vb:()=>b,ve:()=>g,wR:()=>m});var n=i(18447),s=i(64383),o=i(41234),r=i(5662),a=i(98067),l=i(44759);function d(e){return!!e&&"function"===typeof e.then}function h(e){const t=new n.Q,i=e(t.token),o=new Promise(((e,n)=>{const o=t.token.onCancellationRequested((()=>{o.dispose(),n(new s.AL)}));Promise.resolve(i).then((i=>{o.dispose(),t.dispose(),e(i)}),(e=>{o.dispose(),t.dispose(),n(e)}))}));return new class{cancel(){t.cancel(),t.dispose()}then(e,t){return o.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return o.finally(e)}}}function c(e,t,i){return new Promise(((n,s)=>{const o=t.onCancellationRequested((()=>{o.dispose(),n(i)}));e.then(n,s).finally((()=>o.dispose()))}))}class u{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{if(this.queuedPromise=null,this.isDisposed)return;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}dispose(){this.isDisposed=!0}}class g{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})));const i=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=t===l.h?(e=>{let t=!0;return queueMicrotask((()=>{t&&(t=!1,e())})),{isTriggered:()=>t,dispose:()=>{t=!1}}})(i):((e,t)=>{let i=!0;const n=setTimeout((()=>{i=!1,t()}),e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}})(t,i),this.completionPromise}isTriggered(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new s.AL),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class p{constructor(e){this.delayer=new g(e),this.throttler=new u}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function m(e,t){return t?new Promise(((i,n)=>{const o=setTimeout((()=>{r.dispose(),i()}),e),r=t.onCancellationRequested((()=>{clearTimeout(o),r.dispose(),n(new s.AL)}))})):h((t=>m(e,t)))}function f(e,t=0,i){const n=setTimeout((()=>{e(),i&&s.dispose()}),t),s=(0,r.s)((()=>{clearTimeout(n),null===i||void 0===i||i.deleteAndLeak(s)}));return null===i||void 0===i||i.add(s),s}function _(e,t=e=>!!e,i=null){let n=0;const s=e.length,o=()=>{if(n>=s)return Promise.resolve(i);const r=e[n++];return Promise.resolve(r()).then((e=>t(e)?Promise.resolve(e):o()))};return o()}class v{constructor(e,t){this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class b{constructor(){this.disposable=void 0}cancel(){var e;null===(e=this.disposable)||void 0===e||e.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){this.cancel();const n=i.setInterval((()=>{e()}),t);this.disposable=(0,r.s)((()=>{i.clearInterval(n),this.disposable=void 0}))}dispose(){this.cancel()}}class C{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}let y,w;w="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,a._p)((()=>{if(i)return;const e=Date.now()+15,n={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(n))}));let i=!1;return{dispose(){i||(i=!0)}}}:(e,t,i)=>{const n=e.requestIdleCallback(t,"number"===typeof i?{timeout:i}:void 0);let s=!1;return{dispose(){s||(s=!0,e.cancelIdleCallback(n))}}},y=e=>w(globalThis,e);class S{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=w(e,(()=>this._executor()))}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class k extends S{constructor(e){super(globalThis,e)}}class x{get isRejected(){var e;return 1===(null===(e=this.outcome)||void 0===e?void 0:e.outcome)}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise(((e,t)=>{this.completeCallback=e,this.errorCallback=t}))}complete(e){return new Promise((t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()}))}error(e){return new Promise((t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()}))}cancel(){return this.error(new s.AL)}}var L;!function(e){e.settled=async function(e){let t;const i=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return i},e.withAsyncBody=function(e){return new Promise((async(t,i)=>{try{await e(t,i)}catch(n){i(n)}}))}}(L||(L={}));class D{static fromArray(e){return new D((t=>{t.emitMany(e)}))}static fromPromise(e){return new D((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new D((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new D((async t=>{await Promise.all(e.map((async e=>{for await(const i of e)t.emitOne(i)})))}))}constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new o.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await o.Jh.toPromise(this._onStateChanged.event)}}}}static map(e,t){return new D((async i=>{for await(const n of e)i.emitOne(t(n))}))}map(e){return D.map(this,e)}static filter(e,t){return new D((async i=>{for await(const n of e)t(n)&&i.emitOne(n)}))}filter(e){return D.filter(this,e)}static coalesce(e){return D.filter(e,(e=>!!e))}coalesce(){return D.coalesce(this)}static async toPromise(e){const t=[];for await(const i of e)t.push(i);return t}toPromise(){return D.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}D.EMPTY=D.fromArray([]);class E extends D{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function N(e){const t=new n.Q,i=e(t.token);return new E(t,(async e=>{const n=t.token.onCancellationRequested((()=>{n.dispose(),t.dispose(),e.reject(new s.AL)}));try{for await(const n of i){if(t.token.isCancellationRequested)return;e.emitOne(n)}n.dispose(),t.dispose()}catch(o){n.dispose(),t.dispose(),e.reject(o)}}))}},81674:(e,t,i)=>{"use strict";i.d(t,{$l:()=>a,Gs:()=>u,MB:()=>r,Sw:()=>h,bb:()=>d,gN:()=>l,pJ:()=>c});var n=i(91090);const s="undefined"!==typeof Buffer;new n.d((()=>new Uint8Array(256)));let o;class r{static wrap(e){return s&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new r(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return s?this.buffer.toString():(o||(o=new TextDecoder),o.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function d(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function c(e,t){return e[t]}function u(e,t,i){e[i]=t}},81788:(e,t,i)=>{"use strict";i.d(t,{V:()=>s,o:()=>n});class n{constructor(e,t=JSON.stringify){this.fn=e,this._computeKey=t,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const t=this.fn(e);return this._map.set(e,t),t}}},18447:(e,t,i)=>{"use strict";i.d(t,{Q:()=>a,X:()=>o});var n=i(41234);const s=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var o;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof r||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:s})}(o||(o={}));class r{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?s:(this._emitter||(this._emitter=new n.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new r),this._token}cancel(){this._token?this._token instanceof r&&this._token.cancel():this._token=o.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof r&&this._token.dispose():this._token=o.None}}},10350:(e,t,i)=>{"use strict";i.d(t,{W:()=>s});var n=i(18956);const s={...{add:(0,n.k)("add",6e4),plus:(0,n.k)("plus",6e4),gistNew:(0,n.k)("gist-new",6e4),repoCreate:(0,n.k)("repo-create",6e4),lightbulb:(0,n.k)("lightbulb",60001),lightBulb:(0,n.k)("light-bulb",60001),repo:(0,n.k)("repo",60002),repoDelete:(0,n.k)("repo-delete",60002),gistFork:(0,n.k)("gist-fork",60003),repoForked:(0,n.k)("repo-forked",60003),gitPullRequest:(0,n.k)("git-pull-request",60004),gitPullRequestAbandoned:(0,n.k)("git-pull-request-abandoned",60004),recordKeys:(0,n.k)("record-keys",60005),keyboard:(0,n.k)("keyboard",60005),tag:(0,n.k)("tag",60006),gitPullRequestLabel:(0,n.k)("git-pull-request-label",60006),tagAdd:(0,n.k)("tag-add",60006),tagRemove:(0,n.k)("tag-remove",60006),person:(0,n.k)("person",60007),personFollow:(0,n.k)("person-follow",60007),personOutline:(0,n.k)("person-outline",60007),personFilled:(0,n.k)("person-filled",60007),gitBranch:(0,n.k)("git-branch",60008),gitBranchCreate:(0,n.k)("git-branch-create",60008),gitBranchDelete:(0,n.k)("git-branch-delete",60008),sourceControl:(0,n.k)("source-control",60008),mirror:(0,n.k)("mirror",60009),mirrorPublic:(0,n.k)("mirror-public",60009),star:(0,n.k)("star",60010),starAdd:(0,n.k)("star-add",60010),starDelete:(0,n.k)("star-delete",60010),starEmpty:(0,n.k)("star-empty",60010),comment:(0,n.k)("comment",60011),commentAdd:(0,n.k)("comment-add",60011),alert:(0,n.k)("alert",60012),warning:(0,n.k)("warning",60012),search:(0,n.k)("search",60013),searchSave:(0,n.k)("search-save",60013),logOut:(0,n.k)("log-out",60014),signOut:(0,n.k)("sign-out",60014),logIn:(0,n.k)("log-in",60015),signIn:(0,n.k)("sign-in",60015),eye:(0,n.k)("eye",60016),eyeUnwatch:(0,n.k)("eye-unwatch",60016),eyeWatch:(0,n.k)("eye-watch",60016),circleFilled:(0,n.k)("circle-filled",60017),primitiveDot:(0,n.k)("primitive-dot",60017),closeDirty:(0,n.k)("close-dirty",60017),debugBreakpoint:(0,n.k)("debug-breakpoint",60017),debugBreakpointDisabled:(0,n.k)("debug-breakpoint-disabled",60017),debugHint:(0,n.k)("debug-hint",60017),terminalDecorationSuccess:(0,n.k)("terminal-decoration-success",60017),primitiveSquare:(0,n.k)("primitive-square",60018),edit:(0,n.k)("edit",60019),pencil:(0,n.k)("pencil",60019),info:(0,n.k)("info",60020),issueOpened:(0,n.k)("issue-opened",60020),gistPrivate:(0,n.k)("gist-private",60021),gitForkPrivate:(0,n.k)("git-fork-private",60021),lock:(0,n.k)("lock",60021),mirrorPrivate:(0,n.k)("mirror-private",60021),close:(0,n.k)("close",60022),removeClose:(0,n.k)("remove-close",60022),x:(0,n.k)("x",60022),repoSync:(0,n.k)("repo-sync",60023),sync:(0,n.k)("sync",60023),clone:(0,n.k)("clone",60024),desktopDownload:(0,n.k)("desktop-download",60024),beaker:(0,n.k)("beaker",60025),microscope:(0,n.k)("microscope",60025),vm:(0,n.k)("vm",60026),deviceDesktop:(0,n.k)("device-desktop",60026),file:(0,n.k)("file",60027),fileText:(0,n.k)("file-text",60027),more:(0,n.k)("more",60028),ellipsis:(0,n.k)("ellipsis",60028),kebabHorizontal:(0,n.k)("kebab-horizontal",60028),mailReply:(0,n.k)("mail-reply",60029),reply:(0,n.k)("reply",60029),organization:(0,n.k)("organization",60030),organizationFilled:(0,n.k)("organization-filled",60030),organizationOutline:(0,n.k)("organization-outline",60030),newFile:(0,n.k)("new-file",60031),fileAdd:(0,n.k)("file-add",60031),newFolder:(0,n.k)("new-folder",60032),fileDirectoryCreate:(0,n.k)("file-directory-create",60032),trash:(0,n.k)("trash",60033),trashcan:(0,n.k)("trashcan",60033),history:(0,n.k)("history",60034),clock:(0,n.k)("clock",60034),folder:(0,n.k)("folder",60035),fileDirectory:(0,n.k)("file-directory",60035),symbolFolder:(0,n.k)("symbol-folder",60035),logoGithub:(0,n.k)("logo-github",60036),markGithub:(0,n.k)("mark-github",60036),github:(0,n.k)("github",60036),terminal:(0,n.k)("terminal",60037),console:(0,n.k)("console",60037),repl:(0,n.k)("repl",60037),zap:(0,n.k)("zap",60038),symbolEvent:(0,n.k)("symbol-event",60038),error:(0,n.k)("error",60039),stop:(0,n.k)("stop",60039),variable:(0,n.k)("variable",60040),symbolVariable:(0,n.k)("symbol-variable",60040),array:(0,n.k)("array",60042),symbolArray:(0,n.k)("symbol-array",60042),symbolModule:(0,n.k)("symbol-module",60043),symbolPackage:(0,n.k)("symbol-package",60043),symbolNamespace:(0,n.k)("symbol-namespace",60043),symbolObject:(0,n.k)("symbol-object",60043),symbolMethod:(0,n.k)("symbol-method",60044),symbolFunction:(0,n.k)("symbol-function",60044),symbolConstructor:(0,n.k)("symbol-constructor",60044),symbolBoolean:(0,n.k)("symbol-boolean",60047),symbolNull:(0,n.k)("symbol-null",60047),symbolNumeric:(0,n.k)("symbol-numeric",60048),symbolNumber:(0,n.k)("symbol-number",60048),symbolStructure:(0,n.k)("symbol-structure",60049),symbolStruct:(0,n.k)("symbol-struct",60049),symbolParameter:(0,n.k)("symbol-parameter",60050),symbolTypeParameter:(0,n.k)("symbol-type-parameter",60050),symbolKey:(0,n.k)("symbol-key",60051),symbolText:(0,n.k)("symbol-text",60051),symbolReference:(0,n.k)("symbol-reference",60052),goToFile:(0,n.k)("go-to-file",60052),symbolEnum:(0,n.k)("symbol-enum",60053),symbolValue:(0,n.k)("symbol-value",60053),symbolRuler:(0,n.k)("symbol-ruler",60054),symbolUnit:(0,n.k)("symbol-unit",60054),activateBreakpoints:(0,n.k)("activate-breakpoints",60055),archive:(0,n.k)("archive",60056),arrowBoth:(0,n.k)("arrow-both",60057),arrowDown:(0,n.k)("arrow-down",60058),arrowLeft:(0,n.k)("arrow-left",60059),arrowRight:(0,n.k)("arrow-right",60060),arrowSmallDown:(0,n.k)("arrow-small-down",60061),arrowSmallLeft:(0,n.k)("arrow-small-left",60062),arrowSmallRight:(0,n.k)("arrow-small-right",60063),arrowSmallUp:(0,n.k)("arrow-small-up",60064),arrowUp:(0,n.k)("arrow-up",60065),bell:(0,n.k)("bell",60066),bold:(0,n.k)("bold",60067),book:(0,n.k)("book",60068),bookmark:(0,n.k)("bookmark",60069),debugBreakpointConditionalUnverified:(0,n.k)("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:(0,n.k)("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:(0,n.k)("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:(0,n.k)("debug-breakpoint-data-unverified",60072),debugBreakpointData:(0,n.k)("debug-breakpoint-data",60073),debugBreakpointDataDisabled:(0,n.k)("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:(0,n.k)("debug-breakpoint-log-unverified",60074),debugBreakpointLog:(0,n.k)("debug-breakpoint-log",60075),debugBreakpointLogDisabled:(0,n.k)("debug-breakpoint-log-disabled",60075),briefcase:(0,n.k)("briefcase",60076),broadcast:(0,n.k)("broadcast",60077),browser:(0,n.k)("browser",60078),bug:(0,n.k)("bug",60079),calendar:(0,n.k)("calendar",60080),caseSensitive:(0,n.k)("case-sensitive",60081),check:(0,n.k)("check",60082),checklist:(0,n.k)("checklist",60083),chevronDown:(0,n.k)("chevron-down",60084),chevronLeft:(0,n.k)("chevron-left",60085),chevronRight:(0,n.k)("chevron-right",60086),chevronUp:(0,n.k)("chevron-up",60087),chromeClose:(0,n.k)("chrome-close",60088),chromeMaximize:(0,n.k)("chrome-maximize",60089),chromeMinimize:(0,n.k)("chrome-minimize",60090),chromeRestore:(0,n.k)("chrome-restore",60091),circleOutline:(0,n.k)("circle-outline",60092),circle:(0,n.k)("circle",60092),debugBreakpointUnverified:(0,n.k)("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:(0,n.k)("terminal-decoration-incomplete",60092),circleSlash:(0,n.k)("circle-slash",60093),circuitBoard:(0,n.k)("circuit-board",60094),clearAll:(0,n.k)("clear-all",60095),clippy:(0,n.k)("clippy",60096),closeAll:(0,n.k)("close-all",60097),cloudDownload:(0,n.k)("cloud-download",60098),cloudUpload:(0,n.k)("cloud-upload",60099),code:(0,n.k)("code",60100),collapseAll:(0,n.k)("collapse-all",60101),colorMode:(0,n.k)("color-mode",60102),commentDiscussion:(0,n.k)("comment-discussion",60103),creditCard:(0,n.k)("credit-card",60105),dash:(0,n.k)("dash",60108),dashboard:(0,n.k)("dashboard",60109),database:(0,n.k)("database",60110),debugContinue:(0,n.k)("debug-continue",60111),debugDisconnect:(0,n.k)("debug-disconnect",60112),debugPause:(0,n.k)("debug-pause",60113),debugRestart:(0,n.k)("debug-restart",60114),debugStart:(0,n.k)("debug-start",60115),debugStepInto:(0,n.k)("debug-step-into",60116),debugStepOut:(0,n.k)("debug-step-out",60117),debugStepOver:(0,n.k)("debug-step-over",60118),debugStop:(0,n.k)("debug-stop",60119),debug:(0,n.k)("debug",60120),deviceCameraVideo:(0,n.k)("device-camera-video",60121),deviceCamera:(0,n.k)("device-camera",60122),deviceMobile:(0,n.k)("device-mobile",60123),diffAdded:(0,n.k)("diff-added",60124),diffIgnored:(0,n.k)("diff-ignored",60125),diffModified:(0,n.k)("diff-modified",60126),diffRemoved:(0,n.k)("diff-removed",60127),diffRenamed:(0,n.k)("diff-renamed",60128),diff:(0,n.k)("diff",60129),diffSidebyside:(0,n.k)("diff-sidebyside",60129),discard:(0,n.k)("discard",60130),editorLayout:(0,n.k)("editor-layout",60131),emptyWindow:(0,n.k)("empty-window",60132),exclude:(0,n.k)("exclude",60133),extensions:(0,n.k)("extensions",60134),eyeClosed:(0,n.k)("eye-closed",60135),fileBinary:(0,n.k)("file-binary",60136),fileCode:(0,n.k)("file-code",60137),fileMedia:(0,n.k)("file-media",60138),filePdf:(0,n.k)("file-pdf",60139),fileSubmodule:(0,n.k)("file-submodule",60140),fileSymlinkDirectory:(0,n.k)("file-symlink-directory",60141),fileSymlinkFile:(0,n.k)("file-symlink-file",60142),fileZip:(0,n.k)("file-zip",60143),files:(0,n.k)("files",60144),filter:(0,n.k)("filter",60145),flame:(0,n.k)("flame",60146),foldDown:(0,n.k)("fold-down",60147),foldUp:(0,n.k)("fold-up",60148),fold:(0,n.k)("fold",60149),folderActive:(0,n.k)("folder-active",60150),folderOpened:(0,n.k)("folder-opened",60151),gear:(0,n.k)("gear",60152),gift:(0,n.k)("gift",60153),gistSecret:(0,n.k)("gist-secret",60154),gist:(0,n.k)("gist",60155),gitCommit:(0,n.k)("git-commit",60156),gitCompare:(0,n.k)("git-compare",60157),compareChanges:(0,n.k)("compare-changes",60157),gitMerge:(0,n.k)("git-merge",60158),githubAction:(0,n.k)("github-action",60159),githubAlt:(0,n.k)("github-alt",60160),globe:(0,n.k)("globe",60161),grabber:(0,n.k)("grabber",60162),graph:(0,n.k)("graph",60163),gripper:(0,n.k)("gripper",60164),heart:(0,n.k)("heart",60165),home:(0,n.k)("home",60166),horizontalRule:(0,n.k)("horizontal-rule",60167),hubot:(0,n.k)("hubot",60168),inbox:(0,n.k)("inbox",60169),issueReopened:(0,n.k)("issue-reopened",60171),issues:(0,n.k)("issues",60172),italic:(0,n.k)("italic",60173),jersey:(0,n.k)("jersey",60174),json:(0,n.k)("json",60175),kebabVertical:(0,n.k)("kebab-vertical",60176),key:(0,n.k)("key",60177),law:(0,n.k)("law",60178),lightbulbAutofix:(0,n.k)("lightbulb-autofix",60179),linkExternal:(0,n.k)("link-external",60180),link:(0,n.k)("link",60181),listOrdered:(0,n.k)("list-ordered",60182),listUnordered:(0,n.k)("list-unordered",60183),liveShare:(0,n.k)("live-share",60184),loading:(0,n.k)("loading",60185),location:(0,n.k)("location",60186),mailRead:(0,n.k)("mail-read",60187),mail:(0,n.k)("mail",60188),markdown:(0,n.k)("markdown",60189),megaphone:(0,n.k)("megaphone",60190),mention:(0,n.k)("mention",60191),milestone:(0,n.k)("milestone",60192),gitPullRequestMilestone:(0,n.k)("git-pull-request-milestone",60192),mortarBoard:(0,n.k)("mortar-board",60193),move:(0,n.k)("move",60194),multipleWindows:(0,n.k)("multiple-windows",60195),mute:(0,n.k)("mute",60196),noNewline:(0,n.k)("no-newline",60197),note:(0,n.k)("note",60198),octoface:(0,n.k)("octoface",60199),openPreview:(0,n.k)("open-preview",60200),package:(0,n.k)("package",60201),paintcan:(0,n.k)("paintcan",60202),pin:(0,n.k)("pin",60203),play:(0,n.k)("play",60204),run:(0,n.k)("run",60204),plug:(0,n.k)("plug",60205),preserveCase:(0,n.k)("preserve-case",60206),preview:(0,n.k)("preview",60207),project:(0,n.k)("project",60208),pulse:(0,n.k)("pulse",60209),question:(0,n.k)("question",60210),quote:(0,n.k)("quote",60211),radioTower:(0,n.k)("radio-tower",60212),reactions:(0,n.k)("reactions",60213),references:(0,n.k)("references",60214),refresh:(0,n.k)("refresh",60215),regex:(0,n.k)("regex",60216),remoteExplorer:(0,n.k)("remote-explorer",60217),remote:(0,n.k)("remote",60218),remove:(0,n.k)("remove",60219),replaceAll:(0,n.k)("replace-all",60220),replace:(0,n.k)("replace",60221),repoClone:(0,n.k)("repo-clone",60222),repoForcePush:(0,n.k)("repo-force-push",60223),repoPull:(0,n.k)("repo-pull",60224),repoPush:(0,n.k)("repo-push",60225),report:(0,n.k)("report",60226),requestChanges:(0,n.k)("request-changes",60227),rocket:(0,n.k)("rocket",60228),rootFolderOpened:(0,n.k)("root-folder-opened",60229),rootFolder:(0,n.k)("root-folder",60230),rss:(0,n.k)("rss",60231),ruby:(0,n.k)("ruby",60232),saveAll:(0,n.k)("save-all",60233),saveAs:(0,n.k)("save-as",60234),save:(0,n.k)("save",60235),screenFull:(0,n.k)("screen-full",60236),screenNormal:(0,n.k)("screen-normal",60237),searchStop:(0,n.k)("search-stop",60238),server:(0,n.k)("server",60240),settingsGear:(0,n.k)("settings-gear",60241),settings:(0,n.k)("settings",60242),shield:(0,n.k)("shield",60243),smiley:(0,n.k)("smiley",60244),sortPrecedence:(0,n.k)("sort-precedence",60245),splitHorizontal:(0,n.k)("split-horizontal",60246),splitVertical:(0,n.k)("split-vertical",60247),squirrel:(0,n.k)("squirrel",60248),starFull:(0,n.k)("star-full",60249),starHalf:(0,n.k)("star-half",60250),symbolClass:(0,n.k)("symbol-class",60251),symbolColor:(0,n.k)("symbol-color",60252),symbolConstant:(0,n.k)("symbol-constant",60253),symbolEnumMember:(0,n.k)("symbol-enum-member",60254),symbolField:(0,n.k)("symbol-field",60255),symbolFile:(0,n.k)("symbol-file",60256),symbolInterface:(0,n.k)("symbol-interface",60257),symbolKeyword:(0,n.k)("symbol-keyword",60258),symbolMisc:(0,n.k)("symbol-misc",60259),symbolOperator:(0,n.k)("symbol-operator",60260),symbolProperty:(0,n.k)("symbol-property",60261),wrench:(0,n.k)("wrench",60261),wrenchSubaction:(0,n.k)("wrench-subaction",60261),symbolSnippet:(0,n.k)("symbol-snippet",60262),tasklist:(0,n.k)("tasklist",60263),telescope:(0,n.k)("telescope",60264),textSize:(0,n.k)("text-size",60265),threeBars:(0,n.k)("three-bars",60266),thumbsdown:(0,n.k)("thumbsdown",60267),thumbsup:(0,n.k)("thumbsup",60268),tools:(0,n.k)("tools",60269),triangleDown:(0,n.k)("triangle-down",60270),triangleLeft:(0,n.k)("triangle-left",60271),triangleRight:(0,n.k)("triangle-right",60272),triangleUp:(0,n.k)("triangle-up",60273),twitter:(0,n.k)("twitter",60274),unfold:(0,n.k)("unfold",60275),unlock:(0,n.k)("unlock",60276),unmute:(0,n.k)("unmute",60277),unverified:(0,n.k)("unverified",60278),verified:(0,n.k)("verified",60279),versions:(0,n.k)("versions",60280),vmActive:(0,n.k)("vm-active",60281),vmOutline:(0,n.k)("vm-outline",60282),vmRunning:(0,n.k)("vm-running",60283),watch:(0,n.k)("watch",60284),whitespace:(0,n.k)("whitespace",60285),wholeWord:(0,n.k)("whole-word",60286),window:(0,n.k)("window",60287),wordWrap:(0,n.k)("word-wrap",60288),zoomIn:(0,n.k)("zoom-in",60289),zoomOut:(0,n.k)("zoom-out",60290),listFilter:(0,n.k)("list-filter",60291),listFlat:(0,n.k)("list-flat",60292),listSelection:(0,n.k)("list-selection",60293),selection:(0,n.k)("selection",60293),listTree:(0,n.k)("list-tree",60294),debugBreakpointFunctionUnverified:(0,n.k)("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:(0,n.k)("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:(0,n.k)("debug-breakpoint-function-disabled",60296),debugStackframeActive:(0,n.k)("debug-stackframe-active",60297),circleSmallFilled:(0,n.k)("circle-small-filled",60298),debugStackframeDot:(0,n.k)("debug-stackframe-dot",60298),terminalDecorationMark:(0,n.k)("terminal-decoration-mark",60298),debugStackframe:(0,n.k)("debug-stackframe",60299),debugStackframeFocused:(0,n.k)("debug-stackframe-focused",60299),debugBreakpointUnsupported:(0,n.k)("debug-breakpoint-unsupported",60300),symbolString:(0,n.k)("symbol-string",60301),debugReverseContinue:(0,n.k)("debug-reverse-continue",60302),debugStepBack:(0,n.k)("debug-step-back",60303),debugRestartFrame:(0,n.k)("debug-restart-frame",60304),debugAlt:(0,n.k)("debug-alt",60305),callIncoming:(0,n.k)("call-incoming",60306),callOutgoing:(0,n.k)("call-outgoing",60307),menu:(0,n.k)("menu",60308),expandAll:(0,n.k)("expand-all",60309),feedback:(0,n.k)("feedback",60310),gitPullRequestReviewer:(0,n.k)("git-pull-request-reviewer",60310),groupByRefType:(0,n.k)("group-by-ref-type",60311),ungroupByRefType:(0,n.k)("ungroup-by-ref-type",60312),account:(0,n.k)("account",60313),gitPullRequestAssignee:(0,n.k)("git-pull-request-assignee",60313),bellDot:(0,n.k)("bell-dot",60314),debugConsole:(0,n.k)("debug-console",60315),library:(0,n.k)("library",60316),output:(0,n.k)("output",60317),runAll:(0,n.k)("run-all",60318),syncIgnored:(0,n.k)("sync-ignored",60319),pinned:(0,n.k)("pinned",60320),githubInverted:(0,n.k)("github-inverted",60321),serverProcess:(0,n.k)("server-process",60322),serverEnvironment:(0,n.k)("server-environment",60323),pass:(0,n.k)("pass",60324),issueClosed:(0,n.k)("issue-closed",60324),stopCircle:(0,n.k)("stop-circle",60325),playCircle:(0,n.k)("play-circle",60326),record:(0,n.k)("record",60327),debugAltSmall:(0,n.k)("debug-alt-small",60328),vmConnect:(0,n.k)("vm-connect",60329),cloud:(0,n.k)("cloud",60330),merge:(0,n.k)("merge",60331),export:(0,n.k)("export",60332),graphLeft:(0,n.k)("graph-left",60333),magnet:(0,n.k)("magnet",60334),notebook:(0,n.k)("notebook",60335),redo:(0,n.k)("redo",60336),checkAll:(0,n.k)("check-all",60337),pinnedDirty:(0,n.k)("pinned-dirty",60338),passFilled:(0,n.k)("pass-filled",60339),circleLargeFilled:(0,n.k)("circle-large-filled",60340),circleLarge:(0,n.k)("circle-large",60341),circleLargeOutline:(0,n.k)("circle-large-outline",60341),combine:(0,n.k)("combine",60342),gather:(0,n.k)("gather",60342),table:(0,n.k)("table",60343),variableGroup:(0,n.k)("variable-group",60344),typeHierarchy:(0,n.k)("type-hierarchy",60345),typeHierarchySub:(0,n.k)("type-hierarchy-sub",60346),typeHierarchySuper:(0,n.k)("type-hierarchy-super",60347),gitPullRequestCreate:(0,n.k)("git-pull-request-create",60348),runAbove:(0,n.k)("run-above",60349),runBelow:(0,n.k)("run-below",60350),notebookTemplate:(0,n.k)("notebook-template",60351),debugRerun:(0,n.k)("debug-rerun",60352),workspaceTrusted:(0,n.k)("workspace-trusted",60353),workspaceUntrusted:(0,n.k)("workspace-untrusted",60354),workspaceUnknown:(0,n.k)("workspace-unknown",60355),terminalCmd:(0,n.k)("terminal-cmd",60356),terminalDebian:(0,n.k)("terminal-debian",60357),terminalLinux:(0,n.k)("terminal-linux",60358),terminalPowershell:(0,n.k)("terminal-powershell",60359),terminalTmux:(0,n.k)("terminal-tmux",60360),terminalUbuntu:(0,n.k)("terminal-ubuntu",60361),terminalBash:(0,n.k)("terminal-bash",60362),arrowSwap:(0,n.k)("arrow-swap",60363),copy:(0,n.k)("copy",60364),personAdd:(0,n.k)("person-add",60365),filterFilled:(0,n.k)("filter-filled",60366),wand:(0,n.k)("wand",60367),debugLineByLine:(0,n.k)("debug-line-by-line",60368),inspect:(0,n.k)("inspect",60369),layers:(0,n.k)("layers",60370),layersDot:(0,n.k)("layers-dot",60371),layersActive:(0,n.k)("layers-active",60372),compass:(0,n.k)("compass",60373),compassDot:(0,n.k)("compass-dot",60374),compassActive:(0,n.k)("compass-active",60375),azure:(0,n.k)("azure",60376),issueDraft:(0,n.k)("issue-draft",60377),gitPullRequestClosed:(0,n.k)("git-pull-request-closed",60378),gitPullRequestDraft:(0,n.k)("git-pull-request-draft",60379),debugAll:(0,n.k)("debug-all",60380),debugCoverage:(0,n.k)("debug-coverage",60381),runErrors:(0,n.k)("run-errors",60382),folderLibrary:(0,n.k)("folder-library",60383),debugContinueSmall:(0,n.k)("debug-continue-small",60384),beakerStop:(0,n.k)("beaker-stop",60385),graphLine:(0,n.k)("graph-line",60386),graphScatter:(0,n.k)("graph-scatter",60387),pieChart:(0,n.k)("pie-chart",60388),bracket:(0,n.k)("bracket",60175),bracketDot:(0,n.k)("bracket-dot",60389),bracketError:(0,n.k)("bracket-error",60390),lockSmall:(0,n.k)("lock-small",60391),azureDevops:(0,n.k)("azure-devops",60392),verifiedFilled:(0,n.k)("verified-filled",60393),newline:(0,n.k)("newline",60394),layout:(0,n.k)("layout",60395),layoutActivitybarLeft:(0,n.k)("layout-activitybar-left",60396),layoutActivitybarRight:(0,n.k)("layout-activitybar-right",60397),layoutPanelLeft:(0,n.k)("layout-panel-left",60398),layoutPanelCenter:(0,n.k)("layout-panel-center",60399),layoutPanelJustify:(0,n.k)("layout-panel-justify",60400),layoutPanelRight:(0,n.k)("layout-panel-right",60401),layoutPanel:(0,n.k)("layout-panel",60402),layoutSidebarLeft:(0,n.k)("layout-sidebar-left",60403),layoutSidebarRight:(0,n.k)("layout-sidebar-right",60404),layoutStatusbar:(0,n.k)("layout-statusbar",60405),layoutMenubar:(0,n.k)("layout-menubar",60406),layoutCentered:(0,n.k)("layout-centered",60407),target:(0,n.k)("target",60408),indent:(0,n.k)("indent",60409),recordSmall:(0,n.k)("record-small",60410),errorSmall:(0,n.k)("error-small",60411),terminalDecorationError:(0,n.k)("terminal-decoration-error",60411),arrowCircleDown:(0,n.k)("arrow-circle-down",60412),arrowCircleLeft:(0,n.k)("arrow-circle-left",60413),arrowCircleRight:(0,n.k)("arrow-circle-right",60414),arrowCircleUp:(0,n.k)("arrow-circle-up",60415),layoutSidebarRightOff:(0,n.k)("layout-sidebar-right-off",60416),layoutPanelOff:(0,n.k)("layout-panel-off",60417),layoutSidebarLeftOff:(0,n.k)("layout-sidebar-left-off",60418),blank:(0,n.k)("blank",60419),heartFilled:(0,n.k)("heart-filled",60420),map:(0,n.k)("map",60421),mapHorizontal:(0,n.k)("map-horizontal",60421),foldHorizontal:(0,n.k)("fold-horizontal",60421),mapFilled:(0,n.k)("map-filled",60422),mapHorizontalFilled:(0,n.k)("map-horizontal-filled",60422),foldHorizontalFilled:(0,n.k)("fold-horizontal-filled",60422),circleSmall:(0,n.k)("circle-small",60423),bellSlash:(0,n.k)("bell-slash",60424),bellSlashDot:(0,n.k)("bell-slash-dot",60425),commentUnresolved:(0,n.k)("comment-unresolved",60426),gitPullRequestGoToChanges:(0,n.k)("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:(0,n.k)("git-pull-request-new-changes",60428),searchFuzzy:(0,n.k)("search-fuzzy",60429),commentDraft:(0,n.k)("comment-draft",60430),send:(0,n.k)("send",60431),sparkle:(0,n.k)("sparkle",60432),insert:(0,n.k)("insert",60433),mic:(0,n.k)("mic",60434),thumbsdownFilled:(0,n.k)("thumbsdown-filled",60435),thumbsupFilled:(0,n.k)("thumbsup-filled",60436),coffee:(0,n.k)("coffee",60437),snake:(0,n.k)("snake",60438),game:(0,n.k)("game",60439),vr:(0,n.k)("vr",60440),chip:(0,n.k)("chip",60441),piano:(0,n.k)("piano",60442),music:(0,n.k)("music",60443),micFilled:(0,n.k)("mic-filled",60444),repoFetch:(0,n.k)("repo-fetch",60445),copilot:(0,n.k)("copilot",60446),lightbulbSparkle:(0,n.k)("lightbulb-sparkle",60447),robot:(0,n.k)("robot",60448),sparkleFilled:(0,n.k)("sparkle-filled",60449),diffSingle:(0,n.k)("diff-single",60450),diffMultiple:(0,n.k)("diff-multiple",60451),surroundWith:(0,n.k)("surround-with",60452),share:(0,n.k)("share",60453),gitStash:(0,n.k)("git-stash",60454),gitStashApply:(0,n.k)("git-stash-apply",60455),gitStashPop:(0,n.k)("git-stash-pop",60456),vscode:(0,n.k)("vscode",60457),vscodeInsiders:(0,n.k)("vscode-insiders",60458),codeOss:(0,n.k)("code-oss",60459),runCoverage:(0,n.k)("run-coverage",60460),runAllCoverage:(0,n.k)("run-all-coverage",60461),coverage:(0,n.k)("coverage",60462),githubProject:(0,n.k)("github-project",60463),mapVertical:(0,n.k)("map-vertical",60464),foldVertical:(0,n.k)("fold-vertical",60464),mapVerticalFilled:(0,n.k)("map-vertical-filled",60465),foldVerticalFilled:(0,n.k)("fold-vertical-filled",60465)},...{dialogError:(0,n.k)("dialog-error","error"),dialogWarning:(0,n.k)("dialog-warning","warning"),dialogInfo:(0,n.k)("dialog-info","info"),dialogClose:(0,n.k)("dialog-close","close"),treeItemExpanded:(0,n.k)("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:(0,n.k)("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:(0,n.k)("tree-filter-on-type-off","list-selection"),treeFilterClear:(0,n.k)("tree-filter-clear","close"),treeItemLoading:(0,n.k)("tree-item-loading","loading"),menuSelection:(0,n.k)("menu-selection","check"),menuSubmenu:(0,n.k)("menu-submenu","chevron-right"),menuBarMore:(0,n.k)("menubar-more","more"),scrollbarButtonLeft:(0,n.k)("scrollbar-button-left","triangle-left"),scrollbarButtonRight:(0,n.k)("scrollbar-button-right","triangle-right"),scrollbarButtonUp:(0,n.k)("scrollbar-button-up","triangle-up"),scrollbarButtonDown:(0,n.k)("scrollbar-button-down","triangle-down"),toolBarMore:(0,n.k)("toolbar-more","more"),quickInputBack:(0,n.k)("quick-input-back","arrow-left"),dropDownButton:(0,n.k)("drop-down-button",60084),symbolCustomColor:(0,n.k)("symbol-customcolor",60252),exportIcon:(0,n.k)("export",60332),workspaceUnspecified:(0,n.k)("workspace-unspecified",60355),newLine:(0,n.k)("newline",60394),thumbsDownFilled:(0,n.k)("thumbsdown-filled",60435),thumbsUpFilled:(0,n.k)("thumbsup-filled",60436),gitFetch:(0,n.k)("git-fetch",60445),lightbulbSparkleAutofix:(0,n.k)("lightbulb-sparkle-autofix",60447),debugBreakpointPending:(0,n.k)("debug-breakpoint-pending",60377)}}},18956:(e,t,i)=>{"use strict";i.d(t,{J:()=>r,k:()=>o});var n=i(631);const s=Object.create(null);function o(e,t){if((0,n.Kg)(t)){const i=s[t];if(void 0===i)throw new Error(`${e} references an unknown codicon: ${t}`);t=i}return s[e]=t,{id:e}}function r(){return s}},48495:(e,t,i)=>{"use strict";function n(e,t){const i=[],n=[];for(const s of e)t.has(s)||i.push(s);for(const s of t)e.has(s)||n.push(s);return{removed:i,added:n}}function s(e,t){const i=new Set;for(const n of t)e.has(n)&&i.add(n);return i}i.d(t,{E:()=>s,Z:()=>n})},47661:(e,t,i)=>{"use strict";function n(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{$J:()=>r,Q1:()=>a,bU:()=>s,hB:()=>o});class s{constructor(e,t,i,s=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=n(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class o{constructor(e,t,i,s){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.l=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,s=e.a,r=Math.max(t,i,n),a=Math.min(t,i,n);let l=0,d=0;const h=(a+r)/2,c=r-a;if(c>0){switch(d=Math.min(h<=.5?c/(2*h):c/(2-2*h),1),r){case t:l=(i-n)/c+(i<n?6:0);break;case i:l=(n-t)/c+2;break;case n:l=(t-i)/c+4}l*=60,l=Math.round(l)}return new o(l,d,h,s)}static _hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:n,a:r}=e;let a,l,d;if(0===i)a=l=d=n;else{const e=n<.5?n*(1+i):n+i-n*i,s=2*n-e;a=o._hue2rgb(s,e,t+1/3),l=o._hue2rgb(s,e,t),d=o._hue2rgb(s,e,t-1/3)}return new s(Math.round(255*a),Math.round(255*l),Math.round(255*d),r)}}class r{constructor(e,t,i,s){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.v=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,s),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,s=Math.max(t,i,n),o=s-Math.min(t,i,n),a=0===s?0:o/s;let l;return l=0===o?0:s===t?((i-n)/o%6+6)%6:s===i?(n-t)/o+2:(t-i)/o+4,new r(Math.round(60*l),a,s,e.a)}static toRGBA(e){const{h:t,s:i,v:n,a:o}=e,r=n*i,a=r*(1-Math.abs(t/60%2-1)),l=n-r;let[d,h,c]=[0,0,0];return t<60?(d=r,h=a):t<120?(d=a,h=r):t<180?(h=r,c=a):t<240?(h=a,c=r):t<300?(d=a,c=r):t<=360&&(d=r,c=a),d=Math.round(255*(d+l)),h=Math.round(255*(h+l)),c=Math.round(255*(c+l)),new s(d,h,c,o)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:o.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:r.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof s)this.rgba=e;else if(e instanceof o)this._hsla=e,this.rgba=o.toRGBA(e);else{if(!(e instanceof r))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=r.toRGBA(e)}}equals(e){return!!e&&s.equals(this.rgba,e.rgba)&&o.equals(this.hsla,e.hsla)&&r.equals(this.hsva,e.hsva)}getRelativeLuminance(){return n(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new o(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new o(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:i,b:n,a:o}=this.rgba;return new a(new s(t,i,n,o*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new s(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:i,b:n,a:o}=this.rgba;return new a(new s(e.rgba.r-o*(e.rgba.r-t),e.rgba.g-o*(e.rgba.g-i),e.rgba.b-o*(e.rgba.b-n),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,i){if(e.isLighterThan(t))return e;i=i||.5;const n=e.getRelativeLuminance(),s=t.getRelativeLuminance();return i=i*(s-n)/s,e.lighten(i)}static getDarkerColor(e,t,i){if(e.isDarkerThan(t))return e;i=i||.5;const n=e.getRelativeLuminance();return i=i*(n-t.getRelativeLuminance())/n,e.darken(i)}}a.white=new a(new s(255,255,255,1)),a.black=new a(new s(0,0,0,1)),a.red=new a(new s(255,0,0,1)),a.blue=new a(new s(0,0,255,1)),a.green=new a(new s(0,255,0,1)),a.cyan=new a(new s(0,255,255,1)),a.lightgrey=new a(new s(211,211,211,1)),a.transparent=new a(new s(0,0,0,0)),function(e){let t;!function(t){let i;!function(t){function i(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function n(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${i(e.rgba.r)}${i(e.rgba.g)}${i(e.rgba.b)}`},t.formatHexA=function(t,n=!1){return n&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${i(t.rgba.r)}${i(t.rgba.g)}${i(t.rgba.b)}${i(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const i=t.length;if(0===i)return null;if(35!==t.charCodeAt(0))return null;if(7===i){const i=16*n(t.charCodeAt(1))+n(t.charCodeAt(2)),o=16*n(t.charCodeAt(3))+n(t.charCodeAt(4)),r=16*n(t.charCodeAt(5))+n(t.charCodeAt(6));return new e(new s(i,o,r,1))}if(9===i){const i=16*n(t.charCodeAt(1))+n(t.charCodeAt(2)),o=16*n(t.charCodeAt(3))+n(t.charCodeAt(4)),r=16*n(t.charCodeAt(5))+n(t.charCodeAt(6)),a=16*n(t.charCodeAt(7))+n(t.charCodeAt(8));return new e(new s(i,o,r,a/255))}if(4===i){const i=n(t.charCodeAt(1)),o=n(t.charCodeAt(2)),r=n(t.charCodeAt(3));return new e(new s(16*i+i,16*o+o,16*r+r))}if(5===i){const i=n(t.charCodeAt(1)),o=n(t.charCodeAt(2)),r=n(t.charCodeAt(3)),a=n(t.charCodeAt(4));return new e(new s(16*i+i,16*o+o,16*r+r,(16*a+a)/255))}return null}}(i=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},17799:(e,t,i)=>{"use strict";i.d(t,{VX:()=>a,Vq:()=>l,Y:()=>h,gf:()=>r,jt:()=>u});var n=i(25890),s=i(42522),o=i(58255);function r(e){return{asString:async()=>e,asFile:()=>{},value:"string"===typeof e?e:void 0}}function a(e,t,i){const n={id:(0,o.b)(),name:e,uri:t,data:i};return{asString:async()=>"",asFile:()=>n,value:void 0}}class l{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return s.f.some(this,(([e,t])=>t.asFile()))&&t.push("files"),c(d(e),t)}get(e){var t;return null===(t=this._entries.get(this.toKey(e)))||void 0===t?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return d(e)}}function d(e){return e.toLowerCase()}function h(e,t){return c(d(e),t.map(d))}function c(e,t){if("*/*"===e)return t.length>0;if(t.includes(e))return!0;const i=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!i)return!1;const[n,s,o]=i;return"*"===o&&t.some((e=>e.startsWith(s+"/")))}const u=Object.freeze({create:e=>(0,n.dM)(e.map((e=>e.toString()))).join("\r\n"),split:e=>e.split("\r\n"),parse:e=>u.split(e).filter((e=>!e.startsWith("#")))})},58694:(e,t,i)=>{"use strict";function n(e,t,i){let n=null,s=null;if("function"===typeof i.value?(n="value",s=i.value,0!==s.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof i.get&&(n="get",s=i.get),!s)throw new Error("not supported");const o=`$memoize$${t}`;i[n]=function(...e){return this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:s.apply(this,e)}),this[o]}}i.d(t,{B:()=>n})},83993:(e,t,i)=>{"use strict";i.d(t,{uP:()=>h,F1:()=>r});class n{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var s=i(85600);class o{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i<n;i++)t[i]=e.charCodeAt(i);return t}}function r(e,t,i){return new h(new o(e),new o(t)).ComputeDiff(i).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,i,n,s){for(let o=0;o<s;o++)i[n+o]=e[t+o]}static Copy2(e,t,i,n,s){for(let o=0;o<s;o++)i[n+o]=e[t+o]}}class d{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new n(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class h{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,s,o]=h._getElements(e),[r,a,l]=h._getElements(t);this._hasStrings=o&&l,this._originalStringElements=n,this._originalElementsOrHash=s,this._modifiedStringElements=r,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,n=t.length;i<n;i++)e[i]=(0,s.e2)(t[i],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,i,n,s){const o=[!1];let r=this.ComputeDiffRecursive(e,t,i,n,o);return s&&(r=this.PrettifyChanges(r)),{quitEarly:o[0],changes:r}}ComputeDiffRecursive(e,t,i,s,o){for(o[0]=!1;e<=t&&i<=s&&this.ElementsAreEqual(e,i);)e++,i++;for(;t>=e&&s>=i&&this.ElementsAreEqual(t,s);)t--,s--;if(e>t||i>s){let o;return i<=s?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new n(e,0,i,s-i+1)]):e<=t?(a.Assert(i===s+1,"modifiedStart should only be one more than modifiedEnd"),o=[new n(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===s+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}const r=[0],l=[0],d=this.ComputeRecursionPoint(e,t,i,s,r,l,o),h=r[0],c=l[0];if(null!==d)return d;if(!o[0]){const r=this.ComputeDiffRecursive(e,h,i,c,o);let a=[];return a=o[0]?[new n(h+1,t-(h+1)+1,c+1,s-(c+1)+1)]:this.ComputeDiffRecursive(h+1,t,c+1,s,o),this.ConcatenateChanges(r,a)}return[new n(e,t-e+1,i,s-i+1)]}WALKTRACE(e,t,i,s,o,r,a,l,h,c,u,g,p,m,f,_,v,b){let C=null,y=null,w=new d,S=t,k=i,x=p[0]-_[0]-s,L=-1073741824,D=this.m_forwardHistory.length-1;do{const t=x+e;t===S||t<k&&h[t-1]<h[t+1]?(m=(u=h[t+1])-x-s,u<L&&w.MarkNextChange(),L=u,w.AddModifiedElement(u+1,m),x=t+1-e):(m=(u=h[t-1]+1)-x-s,u<L&&w.MarkNextChange(),L=u-1,w.AddOriginalElement(u,m+1),x=t-1-e),D>=0&&(e=(h=this.m_forwardHistory[D])[0],S=1,k=h.length-1)}while(--D>=-1);if(C=w.getReverseChanges(),b[0]){let e=p[0]+1,t=_[0]+1;if(null!==C&&C.length>0){const i=C[C.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}y=[new n(e,g-e+1,t,f-t+1)]}else{w=new d,S=r,k=a,x=p[0]-_[0]-l,L=1073741824,D=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=x+o;e===S||e<k&&c[e-1]>=c[e+1]?(m=(u=c[e+1]-1)-x-l,u>L&&w.MarkNextChange(),L=u+1,w.AddOriginalElement(u+1,m+1),x=e+1-o):(m=(u=c[e-1])-x-l,u>L&&w.MarkNextChange(),L=u,w.AddModifiedElement(u+1,m+1),x=e-1-o),D>=0&&(o=(c=this.m_reverseHistory[D])[0],S=1,k=c.length-1)}while(--D>=-1);y=w.getChanges()}return this.ConcatenateChanges(C,y)}ComputeRecursionPoint(e,t,i,s,o,r,a){let d=0,h=0,c=0,u=0,g=0,p=0;e--,i--,o[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(s-i),f=m+1,_=new Int32Array(f),v=new Int32Array(f),b=s-i,C=t-e,y=e-i,w=t-s,S=(C-b)%2===0;_[b]=e,v[C]=t,a[0]=!1;for(let k=1;k<=m/2+1;k++){let m=0,x=0;c=this.ClipDiagonalBound(b-k,k,b,f),u=this.ClipDiagonalBound(b+k,k,b,f);for(let e=c;e<=u;e+=2){d=e===c||e<u&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,h=d-(e-b)-y;const i=d;for(;d<t&&h<s&&this.ElementsAreEqual(d+1,h+1);)d++,h++;if(_[e]=d,d+h>m+x&&(m=d,x=h),!S&&Math.abs(e-C)<=k-1&&d>=v[e])return o[0]=d,r[0]=h,i<=v[e]&&k<=1448?this.WALKTRACE(b,c,u,y,C,g,p,w,_,v,d,t,o,h,s,r,S,a):null}const L=(m-e+(x-i)-k)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,L))return a[0]=!0,o[0]=m,r[0]=x,L>0&&k<=1448?this.WALKTRACE(b,c,u,y,C,g,p,w,_,v,d,t,o,h,s,r,S,a):(e++,i++,[new n(e,t-e+1,i,s-i+1)]);g=this.ClipDiagonalBound(C-k,k,C,f),p=this.ClipDiagonalBound(C+k,k,C,f);for(let n=g;n<=p;n+=2){d=n===g||n<p&&v[n-1]>=v[n+1]?v[n+1]-1:v[n-1],h=d-(n-C)-w;const l=d;for(;d>e&&h>i&&this.ElementsAreEqual(d,h);)d--,h--;if(v[n]=d,S&&Math.abs(n-b)<=k&&d<=_[n])return o[0]=d,r[0]=h,l>=_[n]&&k<=1448?this.WALKTRACE(b,c,u,y,C,g,p,w,_,v,d,t,o,h,s,r,S,a):null}if(k<=1447){let e=new Int32Array(u-c+2);e[0]=b-c+1,l.Copy2(_,c,e,1,u-c+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=C-g+1,l.Copy2(v,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,c,u,y,C,g,p,w,_,v,d,t,o,h,s,r,S,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const i=e[t],n=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,s=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,o=i.originalLength>0,r=i.modifiedLength>0;for(;i.originalStart+i.originalLength<n&&i.modifiedStart+i.modifiedLength<s&&(!o||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!r||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const e=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!e)break;i.originalStart++,i.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const i=e[t];let n=0,s=0;if(t>0){const i=e[t-1];n=i.originalStart+i.originalLength,s=i.modifiedStart+i.modifiedLength}const o=i.originalLength>0,r=i.modifiedLength>0;let a=0,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,d=i.modifiedStart-e;if(t<n||d<s)break;if(o&&!this.OriginalElementsAreEqual(t,t+i.originalLength))break;if(r&&!this.ModifiedElementsAreEqual(d,d+i.modifiedLength))break;const h=(t===n&&d===s?5:0)+this._boundaryScore(t,i.originalLength,d,i.modifiedLength);h>l&&(l=h,a=e)}i.originalStart-=a,i.modifiedStart-=a;const d=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],d)&&(e[t-1]=d[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,i=e.length;t<i;t++){const i=e[t-1],n=e[t],s=n.originalStart-i.originalStart-i.originalLength,o=i.originalStart,r=n.originalStart+n.originalLength,a=r-o,l=i.modifiedStart,d=n.modifiedStart+n.modifiedLength,h=d-l;if(s<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(o,a,l,h,s);if(e){const[t,o]=e;t===i.originalStart+i.originalLength&&o===i.modifiedStart+i.modifiedLength||(i.originalLength=t-i.originalStart,i.modifiedLength=o-i.modifiedStart,n.originalStart=t+s,n.modifiedStart=o+s,n.originalLength=r-n.originalStart,n.modifiedLength=d-n.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,i,n,s){if(t<s||n<s)return null;const o=e+t-s+1,r=i+n-s+1;let a=0,l=0,d=0;for(let h=e;h<o;h++)for(let e=i;e<r;e++){const t=this._contiguousSequenceScore(h,e,s);t>0&&t>a&&(a=t,l=h,d=e)}return a>0?[l,d]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let s=0;s<i;s++){if(!this.ElementsAreEqual(e+s,t+s))return 0;n+=this._originalStringElements[e+s].length}return n}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,n)?1:0)}ConcatenateChanges(e,t){const i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return l.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],l.Copy(t,1,n,e.length,t.length-1),n}{const i=new Array(e.length+t.length);return l.Copy(e,0,i,0,e.length),l.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const s=e.originalStart;let o=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new n(s,o,r,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&e<n)return e;const s=t%2===0;if(e<0){return s===(i%2===0)?0:1}return s===((n-i-1)%2===0)?n-1:n-2}}},64383:(e,t,i)=>{"use strict";i.d(t,{AL:()=>d,D7:()=>m,EM:()=>g,MB:()=>l,M_:()=>o,Qg:()=>c,aD:()=>h,cU:()=>r,dz:()=>s,iH:()=>u});const n=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function s(e){l(e)||n.onUnexpectedError(e)}function o(e){l(e)||n.onUnexpectedExternalError(e)}function r(e){if(e instanceof Error){const{name:t,message:i}=e;return{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const a="Canceled";function l(e){return e instanceof d||e instanceof Error&&e.name===a&&e.message===a}class d extends Error{constructor(){super(a),this.name=this.message}}function h(){const e=new Error(a);return e.name=e.message,e}function c(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function u(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class g extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},41234:(e,t,i)=>{"use strict";i.d(t,{Jh:()=>l,QT:()=>b,Qy:()=>m,Wj:()=>w,_B:()=>C,at:()=>y,fV:()=>_,uI:()=>v,vl:()=>p});var n=i(64383),s=i(6921),o=i(5662),r=i(58925),a=i(78381);var l;!function(e){function t(e){false}function i(e){return(t,i=null,n)=>{let s,o=!1;return s=e((e=>{if(!o)return s?s.dispose():o=!0,t.call(i,e)}),null,n),o&&s.dispose(),s}}function n(e,t,i){return r(((i,n=null,s)=>e((e=>i.call(n,t(e))),null,s)),i)}function s(e,t,i){return r(((i,n=null,s)=>e((e=>t(e)&&i.call(n,e)),null,s)),i)}function r(e,i){let n;const s={onWillAddFirstListener(){n=e(o.fire,o)},onDidRemoveLastListener(){null===n||void 0===n||n.dispose()}};i||t();const o=new p(s);return null===i||void 0===i||i.add(o),o.event}function a(e,i,n=100,s=!1,o=!1,r,a){let l,d,h,c,u=0;const g={leakWarningThreshold:r,onWillAddFirstListener(){l=e((e=>{u++,d=i(d,e),s&&!h&&(m.fire(d),d=void 0),c=()=>{const e=d;d=void 0,h=void 0,(!s||u>1)&&m.fire(e),u=0},"number"===typeof n?(clearTimeout(h),h=setTimeout(c,n)):void 0===h&&(h=0,queueMicrotask(c))}))},onWillRemoveListener(){o&&u>0&&(null===c||void 0===c||c())},onDidRemoveLastListener(){c=void 0,l.dispose()}};a||t();const m=new p(g);return null===a||void 0===a||a.add(m),m.event}e.None=()=>o.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=i,e.map=n,e.forEach=function(e,t,i){return r(((i,n=null,s)=>e((e=>{t(e),i.call(n,e)}),null,s)),i)},e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,n)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,o.qE)(...e.map((e=>e((e=>t.call(i,e)))))),n)},e.reduce=function(e,t,i,s){let o=i;return n(e,(e=>(o=t(o,e),o)),s)},e.debounce=a,e.accumulate=function(t,i=0,n){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),i,void 0,!0,void 0,n)},e.latch=function(e,t=(e,t)=>e===t,i){let n,o=!0;return s(e,(e=>{const i=o||!t(e,n);return o=!1,n=e,i}),i)},e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,(e=>!i(e)),n)]},e.buffer=function(e,t=!1,i=[],n){let s=i.slice(),o=e((e=>{s?s.push(e):a.fire(e)}));n&&n.add(o);const r=()=>{null===s||void 0===s||s.forEach((e=>a.fire(e))),s=null},a=new p({onWillAddFirstListener(){o||(o=e((e=>a.fire(e))),n&&n.add(o))},onDidAddFirstListener(){s&&(t?setTimeout(r):r())},onDidRemoveLastListener(){o&&o.dispose(),o=null}});return n&&n.add(a),a.event},e.chain=function(e,t){return(i,n,s)=>{const o=t(new d);return e((function(e){const t=o.evaluate(e);t!==l&&i.call(n,t)}),void 0,s)}};const l=Symbol("HaltChainable");class d{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:l)),this}reduce(e,t){let i=t;return this.steps.push((t=>(i=e(i,t),i))),this}latch(e=(e,t)=>e===t){let t,i=!0;return this.steps.push((n=>{const s=i||!e(n,t);return i=!1,t=n,s?n:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,i=e=>e){const n=(...e)=>s.fire(i(...e)),s=new p({onWillAddFirstListener:()=>e.on(t,n),onDidRemoveLastListener:()=>e.removeListener(t,n)});return s.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){const n=(...e)=>s.fire(i(...e)),s=new p({onWillAddFirstListener:()=>e.addEventListener(t,n),onDidRemoveLastListener:()=>e.removeEventListener(t,n)});return s.event},e.toPromise=function(e){return new Promise((t=>i(e)(t)))},e.fromPromise=function(e){const t=new p;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.runAndSubscribe=function(e,t,i){return t(i),e((e=>t(e)))};class h{constructor(e,i){this._observable=e,this._counter=0,this._hasChanged=!1;const n={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};i||t(),this.emitter=new p(n),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,i,n)=>{let s=0,r=!1;const a={beginUpdate(){s++},endUpdate(){s--,0===s&&(e.reportChanges(),r&&(r=!1,t.call(i)))},handlePossibleChange(){},handleChange(){r=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return n instanceof o.Cm?n.add(l):Array.isArray(n)&&n.push(l),l}}}(l||(l={}));class d{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${d._idPool++}`,d.all.add(this)}start(e){this._stopWatch=new a.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}d.all=new Set,d._idPool=0;class h{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const i=this.threshold;if(i<=0||t<i)return;this._stacks||(this._stacks=new Map);const n=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,n+1),this._warnCountdown-=1,this._warnCountdown<=0){let e;this._warnCountdown=.5*i;let n=0;for(const[t,i]of this._stacks)(!e||n<i)&&(e=t,n=i);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${n}):`),console.warn(e)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class c{static create(){var e;return new c(null!==(e=(new Error).stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class u{constructor(e){this.value=e}}const g=void 0;class p{constructor(e){var t,i,n,s,o;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new h(null!==(n=null===(i=this._options)||void 0===i?void 0:i.leakWarningThreshold)&&void 0!==n?n:-1):void 0,this._perfMon=(null===(s=this._options)||void 0===s?void 0:s._profName)?new d(this._options._profName):void 0,this._deliveryQueue=null===(o=this._options)||void 0===o?void 0:o.deliveryQueue}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(i=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,i)=>{var n,s,r,a,l;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),o.jG.None;if(this._disposed)return o.jG.None;t&&(e=e.bind(t));const d=new u(e);let h;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(d.stack=c.create(),h=this._leakageMon.check(d.stack,this._size+1)),this._listeners?this._listeners instanceof u?(null!==(l=this._deliveryQueue)&&void 0!==l||(this._deliveryQueue=new f),this._listeners=[this._listeners,d]):this._listeners.push(d):(null===(s=null===(n=this._options)||void 0===n?void 0:n.onWillAddFirstListener)||void 0===s||s.call(n,this),this._listeners=d,null===(a=null===(r=this._options)||void 0===r?void 0:r.onDidAddFirstListener)||void 0===a||a.call(r,this)),this._size++;const p=(0,o.s)((()=>{null===g||void 0===g||g.unregister(p),null===h||void 0===h||h(),this._removeListener(d)}));if(i instanceof o.Cm?i.add(p):Array.isArray(i)&&i.push(p),g){const e=(new Error).stack.split("\n").slice(2).join("\n").trim();g.register(p,e,p)}return p}),this._event}_removeListener(e){var t,i,n,s;if(null===(i=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===i||i.call(t,this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,null===(s=null===(n=this._options)||void 0===n?void 0:n.onDidRemoveLastListener)||void 0===s||s.call(n,this),void(this._size=0);const o=this._listeners,r=o.indexOf(e);if(-1===r)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,o[r]=void 0;const a=this._deliveryQueue.current===this;if(2*this._size<=o.length){let e=0;for(let t=0;t<o.length;t++)o[t]?o[e++]=o[t]:a&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);o.length=e}}_deliver(e,t){var i;if(!e)return;const s=(null===(i=this._options)||void 0===i?void 0:i.onListenerError)||n.dz;if(s)try{e.value(t)}catch(o){s(o)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){var t,i,n,s;if((null===(t=this._deliveryQueue)||void 0===t?void 0:t.current)&&(this._deliverQueue(this._deliveryQueue),null===(i=this._perfMon)||void 0===i||i.stop()),null===(n=this._perfMon)||void 0===n||n.start(this._size),this._listeners)if(this._listeners instanceof u)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;null===(s=this._perfMon)||void 0===s||s.stop()}hasListeners(){return this._size>0}}const m=()=>new f;class f{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class _ extends p{constructor(e){super(e),this._isPaused=0,this._eventQueue=new r.w,this._mergeFn=null===e||void 0===e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class v extends _{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class b extends p{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=null===e||void 0===e?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask((()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach((e=>super.fire(e))),this._queuedEvents=[]})))}}class C{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new p({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return(0,o.s)((0,s.P)((()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)})))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach((e=>this.hook(e)))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach((e=>this.unhook(e)))}hook(e){e.listener=e.event((e=>this.emitter.fire(e)))}unhook(e){var t;null===(t=e.listener)||void 0===t||t.dispose(),e.listener=null}dispose(){var e;this.emitter.dispose();for(const t of this.events)null===(e=t.listener)||void 0===e||e.dispose();this.events=[]}}class y{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e((e=>{const n=this.buffers[this.buffers.length-1];n?n.push((()=>t.call(i,e))):t.call(i,e)}),void 0,n)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach((e=>e())),i}}class w{constructor(){this.listening=!1,this.inputEvent=l.None,this.inputEventListener=o.jG.None,this.emitter=new p({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},79326:(e,t,i)=>{"use strict";i.d(t,{No:()=>u,TH:()=>a,Zn:()=>d,_1:()=>h,kb:()=>l});var n=i(74027),s=i(98067),o=i(91508);function r(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,n.SA.sep)}function l(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function d(e,t=n.SA.sep){if(!e)return"";const i=e.length,s=e.charCodeAt(0);if(r(s)){if(r(e.charCodeAt(1))&&!r(e.charCodeAt(2))){let n=3;const s=n;for(;n<i&&!r(e.charCodeAt(n));n++);if(s!==n&&!r(e.charCodeAt(n+1)))for(n+=1;n<i;n++)if(r(e.charCodeAt(n)))return e.slice(0,n+1).replace(/[\\/]/g,t)}return t}if(c(s)&&58===e.charCodeAt(1))return r(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<i;o++)if(r(e.charCodeAt(o)))return e.slice(0,o+1);return""}function h(e,t,i,s=n.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(i){if(!(0,o.ns)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===s&&i--,e.charAt(i)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function c(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e,t=s.uF){return!!t&&(c(e.charCodeAt(0))&&58===e.charCodeAt(1))}},26690:(e,t,i)=>{"use strict";i.d(t,{ne:()=>ie,Nd:()=>ne,Jo:()=>H,WJ:()=>z,dt:()=>se,uU:()=>re,Tt:()=>f,yr:()=>W,O:()=>V,WP:()=>p,dE:()=>_,J1:()=>A,or:()=>g});var n=i(74320);function s(e){const t=function(e){if(o=0,a(e,l,4352),o>0)return r.subarray(0,o);if(a(e,d,4449),o>0)return r.subarray(0,o);if(a(e,h,4520),o>0)return r.subarray(0,o);if(a(e,c,12593),o)return r.subarray(0,o);if(e>=44032&&e<=55203){const t=e-44032,i=t%588,n=Math.floor(t/588),s=Math.floor(i/28),u=i%28-1;if(n<l.length?a(n,l,0):4352+n-12593<c.length&&a(4352+n,c,12593),s<d.length?a(s,d,0):4449+s-12593<c.length&&a(4449+s-12593,c,12593),u>=0&&(u<h.length?a(u,h,0):4520+u-12593<c.length&&a(4520+u-12593,c,12593)),o>0)return r.subarray(0,o)}return}(e);if(t&&t.length>0)return new Uint32Array(t)}let o=0;const r=new Uint32Array(10);function a(e,t,i){e>=i&&e<i+t.length&&function(e){if(0===e)return;r[o++]=255&e,e>>8&&(r[o++]=e>>8&255);e>>16&&(r[o++]=e>>16&255)}(t[e-i])}const l=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),d=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),h=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),c=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);var u=i(91508);function g(...e){return function(t,i){for(let n=0,s=e.length;n<s;n++){const s=e[n](t,i);if(s)return s}return null}}m.bind(void 0,!1);const p=m.bind(void 0,!0);function m(e,t,i){if(!i||i.length<t.length)return null;let n;return n=e?u.ns(i,t):0===i.indexOf(t),n?t.length>0?[{start:0,end:t.length}]:[]:null}function f(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function _(e,t){return v(e.toLowerCase(),t.toLowerCase(),0,0)}function v(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]===t[n]){let s=null;return(s=v(e,t,i+1,n+1))?N({start:n,end:n+1},s):null}return v(e,t,i,n+1)}function b(e){return 97<=e&&e<=122}function C(e){return 65<=e&&e<=90}function y(e){return 48<=e&&e<=57}function w(e){return 32===e||9===e||10===e||13===e}const S=new Set;function k(e){return w(e)||S.has(e)}function x(e,t){return e===t||k(e)&&k(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach((e=>S.add(e.charCodeAt(0))));const L=new Map;function D(e){if(L.has(e))return L.get(e);let t;const i=s(e);return i&&(t=i),L.set(e,t),t}function E(e){return b(e)||C(e)||y(e)}function N(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function T(e,t){for(let i=t;i<e.length;i++){const t=e.charCodeAt(i);if(C(t)||y(t)||i>0&&!E(e.charCodeAt(i-1)))return i}return e.length}function I(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]!==t[n].toLowerCase())return null;{let s=null,o=n+1;for(s=I(e,t,i+1,n+1);!s&&(o=T(t,o))<t.length;)s=I(e,t,i+1,o),o++;return null===s?null:N({start:n,end:n+1},s)}}function M(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){let t=0,i=0,n=0,s=0;for(let o=0;o<e.length;o++)n=e.charCodeAt(o),C(n)&&t++,b(n)&&i++,w(n)&&s++;return 0!==t&&0!==i||0!==s?t<=5:e.length<=30}(e))return null;t.length>60&&(t=t.substring(0,60));const i=function(e){let t=0,i=0,n=0,s=0,o=0;for(let r=0;r<e.length;r++)o=e.charCodeAt(r),C(o)&&t++,b(o)&&i++,E(o)&&n++,y(o)&&s++;return{upperPercent:t/e.length,lowerPercent:i/e.length,alphaPercent:n/e.length,numericPercent:s/e.length}}(t);if(!function(e){const{upperPercent:t,lowerPercent:i,alphaPercent:n,numericPercent:s}=e;return i>.2&&t<.8&&n>.6&&s<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let n=null,s=0;for(e=e.toLowerCase();s<t.length&&null===(n=I(e,t,0,s));)s=T(t,s+1);return n}function A(e,t,i=!1){if(!t||0===t.length)return null;let n=null,s=0;for(e=e.toLowerCase(),t=t.toLowerCase();s<t.length&&(n=R(e,t,0,s,i),null===n);)s=O(t,s+1);return n}function R(e,t,i,n,s){let o=0;if(i===e.length)return[];if(n===t.length)return null;if(!x(e.charCodeAt(i),t.charCodeAt(n))){const s=D(e.charCodeAt(i));if(!s)return null;for(let e=0;e<s.length;e++)if(!x(s[e],t.charCodeAt(n+e)))return null;o+=s.length-1}let r=null,a=n+o+1;if(r=R(e,t,i+1,a,s),!s)for(;!r&&(a=O(t,a))<t.length;)r=R(e,t,i+1,a,s),a++;if(!r)return null;if(e.charCodeAt(i)!==t.charCodeAt(n)){const s=D(e.charCodeAt(i));if(!s)return r;for(let e=0;e<s.length;e++)if(s[e]!==t.charCodeAt(n+e))return r}return N({start:n,end:n+o+1},r)}function O(e,t){for(let i=t;i<e.length;i++)if(k(e.charCodeAt(i))||i>0&&k(e.charCodeAt(i-1)))return i;return e.length}const P=g(p,M,f),F=g(p,M,_),B=new n.qK(1e4);function W(e,t,i=!1){if("string"!==typeof e||"string"!==typeof t)return null;let n=B.get(e);n||(n=new RegExp(u.Bm(e),"i"),B.set(e,n));const s=n.exec(t);return s?[{start:s.index,end:s.index+s[0].length}]:i?F(e,t):P(e,t)}function V(e,t){const i=se(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?z(i):null}function H(e,t,i,n,s,o){const r=Math.min(13,e.length);for(;i<r;i++){const r=se(e,t,i,n,s,o,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(r)return r}return[0,o]}function z(e){if("undefined"===typeof e)return[];const t=[],i=e[1];for(let n=e.length-1;n>1;n--){const s=e[n]+i,o=t[t.length-1];o&&o.end===s?o.end=s+1:t.push({start:s,end:s+1})}return t}const j=128;function U(){const e=[],t=[];for(let i=0;i<=j;i++)t[i]=0;for(let i=0;i<=j;i++)e.push(t.slice(0));return e}function K(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const G=K(2*j),$=K(2*j),q=U(),Q=U(),Y=U(),Z=!1;function X(e,t,i,n,s){function o(e,t,i=" "){for(;e.length<t;)e=i+e;return e}let r=` | |${n.split("").map((e=>o(e,3))).join("|")}\n`;for(let a=0;a<=i;a++)r+=0===a?" |":`${t[a-1]}|`,r+=e[a].slice(0,s+1).map((e=>o(e.toString(),3))).join("|")+"\n";return r}function J(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!u.Ss(i)}}function ee(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function te(e,t,i){return t[e]!==i[e]}var ie;!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(ie||(ie={}));class ne{constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}function se(e,t,i,n,s,o,r=ne.default){const a=e.length>j?j:e.length,l=n.length>j?j:n.length;if(i>=a||o>=l||a-i>l-o)return;if(!function(e,t,i,n,s,o,r=!1){for(;t<i&&s<o;)e[t]===n[s]&&(r&&(G[t]=s),t+=1),s+=1;return t===i}(t,i,a,s,o,l,!0))return;!function(e,t,i,n,s,o){let r=e-1,a=t-1;for(;r>=i&&a>=n;)s[r]===o[a]&&($[r]=a,r--),a--}(a,l,i,o,t,s);let d=1,h=1,c=i,u=o;const g=[!1];for(d=1,c=i;c<a;d++,c++){const r=G[c],p=$[c],m=c+1<a?$[c+1]:l;for(h=r-o+1,u=r;u<m;h++,u++){let a=Number.MIN_SAFE_INTEGER,m=!1;u<=p&&(a=oe(e,t,c,i,n,s,u,l,o,0===q[d-1][h-1],g));let f=0;a!==Number.MAX_SAFE_INTEGER&&(m=!0,f=a+Q[d-1][h-1]);const _=u>r,v=_?Q[d][h-1]+(q[d][h-1]>0?-5:0):0,b=u>r+1&&q[d][h-1]>0,C=b?Q[d][h-2]+(q[d][h-2]>0?-5:0):0;if(b&&(!_||C>=v)&&(!m||C>=f))Q[d][h]=C,Y[d][h]=3,q[d][h]=0;else if(_&&(!m||v>=f))Q[d][h]=v,Y[d][h]=2,q[d][h]=0;else{if(!m)throw new Error("not possible");Q[d][h]=f,Y[d][h]=1,q[d][h]=q[d-1][h-1]+1}}}if(Z&&function(e,t,i,n){e=e.substr(t),i=i.substr(n),console.log(X(Q,e,e.length,i,i.length)),console.log(X(Y,e,e.length,i,i.length)),console.log(X(q,e,e.length,i,i.length))}(e,i,n,o),!g[0]&&!r.firstMatchCanBeWeak)return;d--,h--;const p=[Q[d][h],o];let m=0,f=0;for(;d>=1;){let e=h;do{const t=Y[d][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);m>1&&t[i+d-1]===s[o+h-1]&&!te(e+o-1,n,s)&&m+1>q[d][e]&&(e=h),e===h?m++:m=1,f||(f=e),d--,h=e-1,p.push(h)}l===a&&r.boostFullMatch&&(p[0]+=2);const _=f-a;return p[0]-=_,p}function oe(e,t,i,n,s,o,r,a,l,d,h){if(t[i]!==o[r])return Number.MIN_SAFE_INTEGER;let c=1,u=!1;return r===i-n?c=e[i]===s[r]?7:5:!te(r,s,o)||0!==r&&te(r-1,s,o)?!J(o,r)||0!==r&&J(o,r-1)?(J(o,r-1)||ee(o,r-1))&&(c=5,u=!0):c=5:(c=e[i]===s[r]?7:5,u=!0),c>1&&i===n&&(h[0]=!0),u||(u=te(r,s,o)||J(o,r-1)||ee(o,r-1)),i===n?r>l&&(c-=u?3:5):c+=d?u?2:0:u?0:1,r+1===a&&(c-=u?3:5),c}function re(e,t,i,n,s,o,r){return function(e,t,i,n,s,o,r,a){let l=se(e,t,i,n,s,o,a);if(l&&!r)return l;if(e.length>=3){const t=Math.min(7,e.length-1);for(let r=i+1;r<t;r++){const t=ae(e,r);if(t){const e=se(t,t.toLowerCase(),i,n,s,o,a);e&&(e[0]-=3,(!l||e[0]>l[0])&&(l=e))}}}return l}(e,t,i,n,s,o,!0,r)}function ae(e,t){if(t+1>=e.length)return;const i=e[t],n=e[t+1];return i!==n?e.slice(0,t)+n+i+e.slice(t+2):void 0}ne.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}},6921:(e,t,i)=>{"use strict";function n(e,t){const i=this;let n,s=!1;return function(){if(s)return n;if(s=!0,t)try{n=e.apply(i,arguments)}finally{t()}else n=e.apply(i,arguments);return n}}i.d(t,{P:()=>n})},46958:(e,t,i)=>{"use strict";i.d(t,{YW:()=>T,qg:()=>I});var n=i(90766),s=i(79326),o=i(74320),r=i(74027),a=i(98067),l=i(91508);const d="**",h="/",c="[/\\\\]",u="[^/\\\\]",g=/\//g;function p(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${c}|${u}+${c}${t?`|${c}${u}+`:""})*?`}}function m(e,t){if(!e)return[];const i=[];let n=!1,s=!1,o="";for(const r of e){switch(r){case t:if(!n&&!s){i.push(o),o="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":s=!0;break;case"]":s=!1}o+=r}return o&&i.push(o),i}function f(e){if(!e)return"";let t="";const i=m(e,h);if(i.every((e=>e===d)))t=".*";else{let e=!1;i.forEach(((n,s)=>{if(n===d){if(e)return;t+=p(2,s===i.length-1)}else{let e=!1,o="",r=!1,a="";for(const i of n)if("}"!==i&&e)o+=i;else if(!r||"]"===i&&a)switch(i){case"{":e=!0;continue;case"[":r=!0;continue;case"}":{const i=`(?:${m(o,",").map((e=>f(e))).join("|")})`;t+=i,e=!1,o="";break}case"]":t+="["+a+"]",r=!1,a="";break;case"?":t+=u;continue;case"*":t+=p(1);continue;default:t+=(0,l.bm)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||a?i===h?"":(0,l.bm)(i):"^",a+=e}s<i.length-1&&(i[s+1]!==d||s+2<i.length)&&(t+=c)}e=n===d}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,b=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,C=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,y=/^\*\*((\/[\w\.-]+)+)\/?$/,w=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,S=new o.qK(1e4),k=function(){return!1},x=function(){return null};function L(e,t){if(!e)return x;let i;i="string"!==typeof e?e.pattern:e,i=i.trim();const n=`${i}_${!!t.trimForExclusions}`;let s,o=S.get(n);return o||(o=_.test(i)?function(e,t){return function(i,n){return"string"===typeof i&&i.endsWith(e)?t:null}}(i.substr(4),i):(s=v.exec(E(i,t)))?function(e,t){const i=`/${e}`,n=`\\${e}`,s=function(s,o){return"string"!==typeof s?null:o?o===e?t:null:s===e||s.endsWith(i)||s.endsWith(n)?t:null},o=[e];return s.basenames=o,s.patterns=[t],s.allBasenames=o,s}(s[1],i):(t.trimForExclusions?C:b).test(i)?function(e,t){const i=M(e.slice(1,-1).split(",").map((e=>L(e,t))).filter((e=>e!==x)),e),n=i.length;if(!n)return x;if(1===n)return i[0];const s=function(t,n){for(let s=0,o=i.length;s<o;s++)if(i[s](t,n))return e;return null},o=i.find((e=>!!e.allBasenames));o&&(s.allBasenames=o.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);r.length&&(s.allPaths=r);return s}(i,t):(s=y.exec(E(i,t)))?N(s[1].substr(1),i,!0):(s=w.exec(E(i,t)))?N(s[1],i,!1):function(e){try{const t=new RegExp(`^${f(e)}$`);return function(i){return t.lastIndex=0,"string"===typeof i&&t.test(i)?e:null}}catch(t){return x}}(i),S.set(n,o)),D(o,e)}function D(e,t){if("string"===typeof t)return e;const i=function(i,n){return(0,s._1)(i,t.base,!a.j9)?e((0,l.NB)(i.substr(t.base.length),r.Vn),n):null};return i.allBasenames=e.allBasenames,i.allPaths=e.allPaths,i.basenames=e.basenames,i.patterns=e.patterns,i}function E(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function N(e,t,i){const n=r.Vn===r.SA.sep,s=n?e:e.replace(g,r.Vn),o=r.Vn+s,a=r.SA.sep+e;let l;return l=i?function(i,r){return"string"!==typeof i||i!==s&&!i.endsWith(o)&&(n||i!==e&&!i.endsWith(a))?null:t}:function(i,o){return"string"!==typeof i||i!==s&&(n||i!==e)?null:t},l.allPaths=[(i?"*/":"./")+e],l}function T(e,t,i){return!(!e||"string"!==typeof t)&&I(e)(t,void 0,i)}function I(e,t={}){if(!e)return k;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const i=L(e,t);if(i===x)return k;const n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return function(e,t){const i=M(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return x;const s=L(e,i);if(s===x)return x;if("boolean"===typeof t)return s;if(t){const i=t.when;if("string"===typeof i){const t=(t,o,r,a)=>{if(!a||!s(t,o))return null;const l=a(i.replace("$(basename)",(()=>r)));return(0,n.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return s}(i,e[i],t))).filter((e=>e!==x))),s=i.length;if(!s)return x;if(!i.some((e=>!!e.requiresSiblings))){if(1===s)return i[0];const e=function(e,t){let s;for(let o=0,r=i.length;o<r;o++){const r=i[o](e,t);if("string"===typeof r)return r;(0,n.Qg)(r)&&(s||(s=[]),s.push(r))}return s?(async()=>{for(const e of s){const t=await e;if("string"===typeof t)return t}return null})():null},t=i.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const o=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return o.length&&(e.allPaths=o),e}const o=function(e,t,s){let o,a;for(let l=0,d=i.length;l<d;l++){const d=i[l];d.requiresSiblings&&s&&(t||(t=(0,r.P8)(e)),o||(o=t.substr(0,t.length-(0,r.LC)(e).length)));const h=d(e,t,o,s);if("string"===typeof h)return h;(0,n.Qg)(h)&&(a||(a=[]),a.push(h))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=i.find((e=>!!e.allBasenames));a&&(o.allBasenames=a.allBasenames);const l=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(o.allPaths=l);return o}(e,t)}function M(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const n=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let s;if(t){s=[];for(let e=0,i=n.length;e<i;e++)s.push(t)}else s=i.reduce(((e,t)=>{const i=t.patterns;return i?e.concat(i):e}),[]);const o=function(e,t){if("string"!==typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=n.indexOf(t);return-1!==i?s[i]:null};o.basenames=n,o.patterns=s,o.allBasenames=n;const r=e.filter((e=>!e.basenames));return r.push(o),r}},85600:(e,t,i)=>{"use strict";i.d(t,{e2:()=>a,sN:()=>o,tW:()=>s,v7:()=>c});var n=i(91508);function s(e){return o(e,0)}function o(e,t){switch(typeof e){case"object":return null===e?r(349,t):Array.isArray(e)?(i=e,n=r(104579,n=t),i.reduce(((e,t)=>o(t,e)),n)):function(e,t){return t=r(181387,t),Object.keys(e).sort().reduce(((t,i)=>(t=a(i,t),o(e[i],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return r(e?433:863,t)}(e,t);case"number":return r(e,t);case"undefined":return r(937,t);default:return r(617,t)}var i,n}function r(e,t){return(t<<5)-t+e|0}function a(e,t){t=r(149417,t);for(let i=0,n=e.length;i<n;i++)t=r(e.charCodeAt(i),t);return t}function l(e,t,i=32){const n=i-t;return(e<<t|(~((1<<n)-1)&e)>>>n)>>>0}function d(e,t=0,i=e.byteLength,n=0){for(let s=0;s<i;s++)e[t+s]=n}function h(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,i="0"){for(;e.length<t;)e=i+e;return e}((e>>>0).toString(16),t/4)}class c{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let s,o,r=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(s=a,o=-1,a=0):(s=e.charCodeAt(0),o=0);;){let l=s;if(n.pc(s)){if(!(o+1<t)){a=s;break}{const t=e.charCodeAt(o+1);n.LJ(t)?(o++,l=n.z_(s,t)):l=65533}}else n.LJ(s)&&(l=65533);if(r=this._push(i,r,l),o++,!(o<t))break;s=e.charCodeAt(o)}this._buffLen=r,this._leftoverHighSurrogate=a}_push(e,t,i){return i<128?e[t++]=i:i<2048?(e[t++]=192|(1984&i)>>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,d(this._buff,this._buffLen),this._buffLen>56&&(this._step(),d(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=c._bigBlock32,t=this._buffDV;for(let l=0;l<64;l+=4)e.setUint32(l,t.getUint32(l,!1),!1);for(let c=64;c<320;c+=4)e.setUint32(c,l(e.getUint32(c-12,!1)^e.getUint32(c-32,!1)^e.getUint32(c-56,!1)^e.getUint32(c-64,!1),1),!1);let i,n,s,o=this._h0,r=this._h1,a=this._h2,d=this._h3,h=this._h4;for(let c=0;c<80;c++)c<20?(i=r&a|~r&d,n=1518500249):c<40?(i=r^a^d,n=1859775393):c<60?(i=r&a|r&d|a&d,n=2400959708):(i=r^a^d,n=3395469782),s=l(o,5)+i+h+n+e.getUint32(4*c,!1)&4294967295,h=d,d=a,a=l(r,30),r=o,o=s;this._h0=this._h0+o&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+d&4294967295,this._h4=this._h4+h&4294967295}}c._bigBlock32=new DataView(new ArrayBuffer(320))},8995:(e,t,i)=>{"use strict";i.d(t,{k:()=>n});class n{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||e.value.startsWith(this.value+n.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new n((this.value?[this.value,...e]:e).join(n.sep))}}n.sep=".",n.None=new n("@@none@@"),n.Empty=new n("")},16980:(e,t,i)=>{"use strict";i.d(t,{Bc:()=>l,VS:()=>h,_W:()=>g,it:()=>d,nI:()=>p,nK:()=>c,oO:()=>u});var n=i(64383),s=i(37882),o=i(89403),r=i(91508),a=i(79400);class l{constructor(e="",t=!1){var i,s,o;if(this.value=e,"string"!==typeof this.value)throw(0,n.Qg)("value");"boolean"===typeof t?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=null!==(i=t.isTrusted)&&void 0!==i?i:void 0,this.supportThemeIcons=null!==(s=t.supportThemeIcons)&&void 0!==s&&s,this.supportHtml=null!==(o=t.supportHtml)&&void 0!==o&&o)}appendText(e,t=0){var i;return this.value+=(i=this.supportThemeIcons?(0,s.m2)(e):e,i.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=`\n${function(e,t){var i,n;const s=null!==(n=null===(i=e.match(/^`+/gm))||void 0===i?void 0:i.reduce(((e,t)=>e.length>t.length?e:t)).length)&&void 0!==n?n:0,o=s>=3?s+1:3;return[`${"`".repeat(o)}${t}`,e,`${"`".repeat(o)}`].join("\n")}(t,e)}\n`,this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp((0,r.bm)(t),"g");return e.replace(i,((t,i)=>"\\"!==e.charAt(i-1)?`\\${t}`:t))}}function d(e){return h(e)?!e.value:!Array.isArray(e)||e.every(d)}function h(e){return e instanceof l||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||"object"===typeof e.isTrusted||void 0===e.isTrusted)&&("boolean"===typeof e.supportThemeIcons||void 0===e.supportThemeIcons))}function c(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons&&e.supportHtml===t.supportHtml&&(e.baseUri===t.baseUri||!!e.baseUri&&!!t.baseUri&&(0,o.n4)(a.r.from(e.baseUri),a.r.from(t.baseUri))))}function u(e){return e.replace(/"/g,""")}function g(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1"):e}function p(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const n=i[1];if(n){const e=/height=(\d+)/.exec(n),i=/width=(\d+)/.exec(n),s=e?e[1]:"",o=i?i[1]:"",r=isFinite(parseInt(o)),a=isFinite(parseInt(s));r&&t.push(`width="${o}"`),a&&t.push(`height="${s}"`)}return{href:e,dimensions:t}}},37882:(e,t,i)=>{"use strict";i.d(t,{R$:()=>p,_k:()=>f,m2:()=>d,pS:()=>g,pz:()=>_,sA:()=>c});var n=i(26690),s=i(91508),o=i(25689);const r="$(",a=new RegExp(`\\$\\(${o.L.iconNameExpression}(?:${o.L.iconModifierExpression})?\\)`,"g"),l=new RegExp(`(\\\\)?${a.source}`,"g");function d(e){return e.replace(l,((e,t)=>t?e:`\\${e}`))}const h=new RegExp(`\\\\${a.source}`,"g");function c(e){return e.replace(h,(e=>`\\${e}`))}const u=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function g(e){return-1===e.indexOf(r)?e:e.replace(u,((e,t,i,n)=>i?e:t||n||""))}function p(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}const m=new RegExp(`\\$\\(${o.L.iconNameCharacter}+\\)`,"g");function f(e){m.lastIndex=0;let t="";const i=[];let n=0;for(;;){const s=m.lastIndex,o=m.exec(e),r=e.substring(s,null===o||void 0===o?void 0:o.index);if(r.length>0){t+=r;for(let e=0;e<r.length;e++)i.push(n)}if(!o)break;n+=o[0].length}return{text:t,iconOffsets:i}}function _(e,t,i=!1){const{text:o,iconOffsets:r}=t;if(!r||0===r.length)return(0,n.yr)(e,o,i);const a=(0,s.NB)(o," "),l=o.length-a.length,d=(0,n.yr)(e,a,i);if(d)for(const n of d){const e=r[n.start+l]+l;n.start+=e,n.end+=e}return d}},96032:(e,t,i)=>{"use strict";i.d(t,{n:()=>n,r:()=>s});class n{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const s=new n("id#")},2299:(e,t,i)=>{"use strict";i.d(t,{M:()=>s});var n=i(41234);const s=new class{constructor(){this._onDidChange=new n.vl,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}},42522:(e,t,i)=>{"use strict";var n;i.d(t,{f:()=>n}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e||i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const i of e)if(t(i))return!0;return!1},e.find=function(e,t){for(const i of e)if(t(i))return i},e.filter=function*(e,t){for(const i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(const n of e)yield t(n,i++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,i){let n=i;for(const s of e)n=t(n,s);return n},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},e.consume=function(t,i=Number.POSITIVE_INFINITY){const n=[];if(0===i)return[n,t];const s=t[Symbol.iterator]();for(let o=0;o<i;o++){const t=s.next();if(t.done)return[n,e.empty()];n.push(t.value)}return[n,{[Symbol.iterator]:()=>s}]},e.asyncToArray=async function(e){const t=[];for await(const i of e)t.push(i);return Promise.resolve(t)}}(n||(n={}))},24939:(e,t,i)=>{"use strict";i.d(t,{Fo:()=>u,YM:()=>p,m5:()=>m,uw:()=>a});class n{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const s=new n,o=new n,r=new n,a=new Array(230),l={},d=[],h=Object.create(null),c=Object.create(null),u=[],g=[];for(let f=0;f<=193;f++)u[f]=-1;for(let f=0;f<=132;f++)g[f]=-1;var p;function m(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],n=[];for(const p of t){const[e,t,m,f,_,v,b,C,y]=p;if(n[t]||(n[t]=!0,d[t]=m,h[m]=t,c[m.toLowerCase()]=t,e&&(u[t]=f,0!==f&&3!==f&&5!==f&&4!==f&&6!==f&&57!==f&&(g[f]=t))),!i[f]){if(i[f]=!0,!_)throw new Error(`String representation missing for key code ${f} around scan code ${m}`);s.define(f,_),o.define(f,C||_),r.define(f,y||C||_)}v&&(a[v]=f),b&&(l[b]=f)}g[3]=46}(),function(e){e.toString=function(e){return s.keyCodeToStr(e)},e.fromString=function(e){return s.strToKeyCode(e)},e.toUserSettingsUS=function(e){return o.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return r.keyCodeToStr(e)},e.fromUserSettings=function(e){return o.strToKeyCode(e)||r.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return s.keyCodeToStr(e)}}(p||(p={}))},83619:(e,t,i)=>{"use strict";i.d(t,{G$:()=>l,Of:()=>o,r0:()=>r,rr:()=>a});var n=i(31629);class s{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=i(o);if(null===r)return null;n[s]=d(o,r,this.modifierLabels[e])}return n.join(" ")}}const o=new s({ctrlKey:"\u2303",shiftKey:"\u21e7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:n.kg({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:n.kg({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:n.kg({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:n.kg({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:n.kg({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:n.kg({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:n.kg({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:n.kg({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),r=new s({ctrlKey:n.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:n.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:n.kg({key:"optKey.long",comment:["This is the long form for the Alt/Option key on the keyboard"]},"Option"),metaKey:n.kg({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:n.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:n.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:n.kg({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:n.kg({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:n.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:n.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:n.kg({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:n.kg({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"}),a=new s({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),l=new s({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"});function d(e,t,i){if(null===t)return"";const n=[];return e.ctrlKey&&n.push(i.ctrlKey),e.shiftKey&&n.push(i.shiftKey),e.altKey&&n.push(i.altKey),e.metaKey&&n.push(i.metaKey),""!==t&&n.push(t),n.join(i.separator)}},42539:(e,t,i)=>{"use strict";i.d(t,{FW:()=>l,Zv:()=>s,dG:()=>r,z5:()=>d});var n=i(64383);function s(e,t){if("number"===typeof e){if(0===e)return null;const i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new a(0!==n?[o(i,t),o(n,t)]:[o(i,t)])}{const i=[];for(let n=0;n<e.length;n++)i.push(o(e[n],t));return new a(i)}}function o(e,t){const i=!!(2048&e),n=!!(256&e);return new r(2===t?n:i,!!(1024&e),!!(512&e),2===t?i:n,255&e)}class r{constructor(e,t,i,n,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=s}equals(e){return e instanceof r&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class a{constructor(e){if(0===e.length)throw(0,n.Qg)("chords");this.chords=e}}class l{constructor(e,t,i,n,s,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=s,this.keyAriaLabel=o}}class d{}},91090:(e,t,i)=>{"use strict";i.d(t,{d:()=>n});class n{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},5662:(e,t,i)=>{"use strict";i.d(t,{$w:()=>b,AS:()=>c,Ay:()=>r,BO:()=>v,Cm:()=>p,HE:()=>f,VD:()=>a,Xm:()=>h,jG:()=>m,lC:()=>d,mp:()=>_,qE:()=>u,s:()=>g});var n=i(6921),s=i(42522);let o=null;function r(e){return null===o||void 0===o||o.trackDisposable(e),e}function a(e){null===o||void 0===o||o.markAsDisposed(e)}function l(e,t){null===o||void 0===o||o.setParent(e,t)}function d(e){return null===o||void 0===o||o.markAsSingleton(e),e}function h(e){return"function"===typeof e.dispose&&0===e.dispose.length}function c(e){if(s.f.is(e)){const i=[];for(const n of e)if(n)try{n.dispose()}catch(t){i.push(t)}if(1===i.length)throw i[0];if(i.length>1)throw new AggregateError(i,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function u(...e){const t=g((()=>c(e)));return function(e,t){if(o)for(const i of e)o.setParent(i,t)}(e,t),t}function g(e){const t=r({dispose:(0,n.P)((()=>{a(t),e()}))});return t}class p{constructor(){this._toDispose=new Set,this._isDisposed=!1,r(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{c(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}p.DISABLE_DISPOSED_WARNING=!1;class m{constructor(){this._store=new p,r(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}m.None=Object.freeze({dispose(){}});class f{constructor(){this._isDisposed=!1,r(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,a(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class _{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class v{constructor(e){this.object=e}dispose(){}}class b{constructor(){this._store=new Map,this._isDisposed=!1,r(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{c(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||null===(n=this._store.get(e))||void 0===n||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},58925:(e,t,i)=>{"use strict";i.d(t,{w:()=>s});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class s{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;for(;e!==n.Undefined;){const t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==n.Undefined;)yield e.element,e=e.next}}},74320:(e,t,i)=>{"use strict";var n,s;i.d(t,{cO:()=>d,db:()=>h,fT:()=>r,qK:()=>l});class o{constructor(e,t){this.uri=e,this.value=t}}class r{constructor(e,t){if(this[n]="ResourceMap",e instanceof r)this.map=new Map(e.map),this.toKey=null!==t&&void 0!==t?t:r.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=null!==t&&void 0!==t?t:r.defaultToKey;for(const[t,i]of e)this.set(t,i)}else this.map=new Map,this.toKey=null!==e&&void 0!==e?e:r.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new o(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[i,n]of this.map)e(n.value,n.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}r.defaultToKey=e=>e.toString();class a{constructor(){this[s]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:default:this.addItemLast(n);break;case 1:this.addItemFirst(n)}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}[(s=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class l extends a{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}class d{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class h{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},908:(e,t,i)=>{"use strict";i.d(t,{As:()=>o,qg:()=>r});var n=i(81674),s=i(79400);function o(e){return JSON.stringify(e,a)}function r(e){let t=JSON.parse(e);return t=l(t),t}function a(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function l(e,t=0){if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return s.r.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof n.MB||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i<e.length;++i)e[i]=l(e[i],t+1);else for(const i in e)Object.hasOwnProperty.call(e,i)&&(e[i]=l(e[i],t+1))}return e}},44320:(e,t,i)=>{"use strict";i.d(t,{K:()=>n});const n=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},36456:(e,t,i)=>{"use strict";i.d(t,{Ez:()=>c,fV:()=>h,ny:()=>n,v$:()=>d,zl:()=>g});var n,s=i(64383),o=i(98067),r=i(91508),a=i(79400),l=i(74027);function d(e,t){return a.r.isUri(e)?(0,r.Q_)(e.scheme,t):(0,r.ns)(e,t+":")}function h(e,...t){return t.some((t=>d(e,t)))}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.codeSetting="code-setting"}(n||(n={}));const c=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,n.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(h){return s.dz(h),e}const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);const r=this._ports[t],l=this._connectionTokens[t];let d=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(d+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:o.HZ?this._preferredWebSchema:n.vscodeRemoteResource,authority:`${i}:${r}`,path:this._remoteResourcesPath,query:d})}};class u{uriToBrowserUri(e){return e.scheme===n.vscodeRemote?c.rewrite(e):e.scheme!==n.file||!o.ib&&o.lg!==`${n.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:n.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}}u.FALLBACK_AUTHORITY="vscode-app";const g=new u;var p;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";e.getHeadersFromQuery=function(e){let n;"string"===typeof e?n=new URL(e).searchParams:e instanceof URL?n=e.searchParams:a.r.isUri(e)&&(n=new URL(e.toString(!0)).searchParams);const s=null===n||void 0===n?void 0:n.get(i);if(s)return t.get(s)},e.addSearchParam=function(e,t,n){if(!globalThis.crossOriginIsolated)return;const s=t&&n?"3":n?"2":"1";e instanceof URLSearchParams?e.set(i,s):e[i]=s}}(p||(p={}))},1592:(e,t,i)=>{"use strict";function n(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{Uq:()=>s,mu:()=>o,qE:()=>n});class s{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class o{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}},10146:(e,t,i)=>{"use strict";i.d(t,{Go:()=>s,PI:()=>a,V0:()=>c,aI:()=>h,co:()=>d,kT:()=>u,ol:()=>o});var n=i(631);function s(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach((([e,i])=>{t[e]=i&&"object"===typeof i?s(i):i})),t}function o(e){if(!e||"object"!==typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(r.call(e,i)){const s=e[i];"object"!==typeof s||Object.isFrozen(s)||(0,n.iu)(s)||t.push(s)}}return e}const r=Object.prototype.hasOwnProperty;function a(e,t){return l(e,t,new Set)}function l(e,t,i){if((0,n.z)(e))return e;const s=t(e);if("undefined"!==typeof s)return s;if(Array.isArray(e)){const n=[];for(const s of e)n.push(l(s,t,i));return n}if((0,n.Gv)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const n={};for(const s in e)r.call(e,s)&&(n[s]=l(e[s],t,i));return i.delete(e),n}return e}function d(e,t,i=!0){return(0,n.Gv)(e)?((0,n.Gv)(t)&&Object.keys(t).forEach((s=>{s in e?i&&((0,n.Gv)(e[s])&&(0,n.Gv)(t[s])?d(e[s],t[s],i):e[s]=t[s]):e[s]=t[s]})),e):t}function h(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(!h(e[i],t[i]))return!1}else{const s=[];for(n in e)s.push(n);s.sort();const o=[];for(n in t)o.push(n);if(o.sort(),!h(s,o))return!1;for(i=0;i<s.length;i++)if(!h(e[s[i]],t[s[i]]))return!1}return!0}function c(e){const t=[];for(const i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[i]&&t.push(i);return t}function u(e,t){const i=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(const s of e)n[s]=i(s);return n}},99938:(e,t,i)=>{"use strict";i.d(t,{fm:()=>d,Y:()=>c,zL:()=>h,yC:()=>u,lk:()=>p.lk,un:()=>s.un,nb:()=>s.Gy,ZX:()=>p.ZX,C:()=>s.C,rm:()=>s.rm,X2:()=>n.X2,y0:()=>p.y0,Yd:()=>p.Yd,yQ:()=>p.yQ,FY:()=>n.FY,OI:()=>p.OI,PO:()=>n.PO,Rn:()=>n.Rn,oJ:()=>m});var n=i(49154),s=i(87958),o=i(66782),r=i(5662),a=i(22311),l=i(94958);function d(e){return new g(new a.nA(void 0,void 0,e),e,void 0,void 0)}function h(e,t){var i;return new g(new a.nA(e.owner,e.debugName,null!==(i=e.debugReferenceFn)&&void 0!==i?i:t),t,void 0,void 0)}function c(e,t){var i;return new g(new a.nA(e.owner,e.debugName,null!==(i=e.debugReferenceFn)&&void 0!==i?i:t),t,e.createEmptyChangeSummary,e.handleChange)}function u(e){const t=new r.Cm,i=h({owner:void 0,debugName:void 0,debugReferenceFn:e},(i=>{t.clear(),e(i,t)}));return(0,r.s)((()=>{i.dispose(),t.dispose()}))}class g{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n){var s,o;this._debugNameData=e,this._runFn=t,this.createChangeSummary=i,this._handleChange=n,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=null===(s=this.createChangeSummary)||void 0===s?void 0:s.call(this),null===(o=(0,l.tZ)())||void 0===o||o.handleAutorunCreated(this),this._runIfNeeded(),(0,r.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,r.VD)(this)}_runIfNeeded(){var e,t,i;if(3===this.state)return;const n=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=n,this.state=3;const s=this.disposed;try{if(!s){null===(e=(0,l.tZ)())||void 0===e||e.handleAutorunTriggered(this);const i=this.changeSummary;this.changeSummary=null===(t=this.createChangeSummary)||void 0===t?void 0:t.call(this),this._runFn(this,i)}}finally{s||null===(i=(0,l.tZ)())||void 0===i||i.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,o.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=g}(d||(d={}));var p=i(13850);function m(e,t,i){return new Promise(((n,s)=>{let o=!0,r=!1;const a=e.map((e=>({isFinished:t(e),error:!!i&&i(e),state:e}))),l=d((e=>{const{isFinished:t,error:i,state:d}=a.read(e);(t||i)&&(o?r=!0:l.dispose(),i?s(!0===i?d:i):n(d))}));o=!1,r&&l.dispose()}))}},49154:(e,t,i)=>{"use strict";i.d(t,{Bm:()=>d,FB:()=>h,FY:()=>b,N2:()=>c,PO:()=>_,Rn:()=>p,X2:()=>y,YY:()=>m,ZK:()=>g,fL:()=>f,zV:()=>u});var n=i(22311),s=i(94958);let o,r,a,l;function d(e){o=e}function h(e){r=e}function c(e){a=e}class u{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const i=void 0===t?void 0:e,s=void 0===t?e:t;return a({owner:i,debugName:()=>{const e=(0,n.qQ)(s);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(s.toString());return t?`${this.debugName}.${t[2]}`:i?void 0:`${this.debugName} (mapped)`}},(e=>s(this.read(e),e)))}recomputeInitiallyAndOnChange(e,t){return e.add(o(this,t)),this}}class g extends u{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function p(e,t){const i=new v(e,t);try{e(i)}finally{i.finish()}}function m(e){if(l)e(l);else{const t=new v(e,void 0);l=t;try{e(t)}finally{t.finish(),l=void 0}}}async function f(e,t){const i=new v(e,t);try{await e(i)}finally{i.finish()}}function _(e,t,i){e?t(e):p(t,i)}class v{constructor(e,t){var i;this._fn=e,this._getDebugName=t,this.updatingObservers=[],null===(i=(0,s.tZ)())||void 0===i||i.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,n.qQ)(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){var e;const t=this.updatingObservers;for(let i=0;i<t.length;i++){const{observer:e,observable:n}=t[i];e.endUpdate(n)}this.updatingObservers=null,null===(e=(0,s.tZ)())||void 0===e||e.handleEndTransaction()}}function b(e,t){return"string"===typeof e?new C(void 0,e,t):new C(e,void 0,t)}class C extends g{get debugName(){var e;return null!==(e=new n.nA(this._owner,this._debugName,void 0).getDebugName(this))&&void 0!==e?e:"ObservableValue"}constructor(e,t,i){super(),this._owner=e,this._debugName=t,this._value=i}get(){return this._value}set(e,t,i){var n;if(this._value===e)return;let o;t||(t=o=new v((()=>{}),(()=>`Setting ${this.debugName}`)));try{const o=this._value;this._setValue(e),null===(n=(0,s.tZ)())||void 0===n||n.handleObservableChanged(this,{oldValue:o,newValue:e,change:i,didChange:!0,hadValue:!0});for(const e of this.observers)t.updateObserver(e,this),e.handleChange(this,i)}finally{o&&o.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function y(e,t){return"string"===typeof e?new w(void 0,e,t):new w(e,void 0,t)}class w extends C{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){var e;null===(e=this._value)||void 0===e||e.dispose()}}},22311:(e,t,i)=>{"use strict";i.d(t,{nA:()=>n,qQ:()=>l});class n{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return function(e,t){var i;const n=o.get(e);if(n)return n;const d=function(e,t){const i=o.get(e);if(i)return i;const n=t.owner?function(e){var t;const i=a.get(e);if(i)return i;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let s=null!==(t=r.get(n))&&void 0!==t?t:0;s++,r.set(n,s);const o=1===s?n:`${n}#${s}`;return a.set(e,o),o}(t.owner)+".":"";let s;const d=t.debugNameSource;if(void 0!==d){if("function"!==typeof d)return n+d;if(s=d(),void 0!==s)return n+s}const h=t.referenceFn;if(void 0!==h&&(s=l(h),void 0!==s))return n+s;if(void 0!==t.owner){const i=function(e,t){for(const i in e)if(e[i]===t)return i;return}(t.owner,e);if(void 0!==i)return n+i}return}(e,t);if(d){let t=null!==(i=s.get(d))&&void 0!==i?i:0;t++,s.set(d,t);const n=1===t?d:`${d}#${t}`;return o.set(e,n),n}return}(e,this)}}const s=new Map,o=new WeakMap;const r=new Map,a=new WeakMap;function l(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),n=i?i[1]:void 0;return null===n||void 0===n?void 0:n.trim()}},87958:(e,t,i)=>{"use strict";i.d(t,{C:()=>h,Gy:()=>c,a0:()=>g,rm:()=>u,un:()=>d});var n=i(66782),s=i(5662),o=i(49154),r=i(22311),a=i(94958);const l=(e,t)=>e===t;function d(e,t){return void 0!==t?new p(new r.nA(e,void 0,t),t,void 0,void 0,void 0,l):new p(new r.nA(void 0,void 0,e),e,void 0,void 0,void 0,l)}function h(e,t){var i;return new p(new r.nA(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,null!==(i=e.equalityComparer)&&void 0!==i?i:l)}function c(e,t){var i;return new p(new r.nA(e.owner,e.debugName,void 0),t,e.createEmptyChangeSummary,e.handleChange,void 0,null!==(i=e.equalityComparer)&&void 0!==i?i:l)}function u(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);const o=new s.Cm;return new p(new r.nA(n,void 0,i),(e=>(o.clear(),i(e,o))),void 0,void 0,(()=>o.dispose()),l)}function g(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);const o=new s.Cm;return new p(new r.nA(n,void 0,i),(e=>{o.clear();const t=i(e);return t&&o.add(t),t}),void 0,void 0,(()=>o.dispose()),l)}(0,o.N2)(h);class p extends o.ZK{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n,s=void 0,o){var r,l;super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=i,this._handleChange=n,this._handleLastObserverRemoved=s,this._equalityComparator=o,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=null===(r=this.createChangeSummary)||void 0===r?void 0:r.call(this),null===(l=(0,a.tZ)())||void 0===l||l.handleDerivedCreated(this)}onLastObserverRemoved(){var e;this.state=0,this.value=void 0;for(const t of this.dependencies)t.removeObserver(this);this.dependencies.clear(),null===(e=this._handleLastObserverRemoved)||void 0===e||e.call(this)}get(){var e;if(0===this.observers.size){const t=this._computeFn(this,null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this));return this.onLastObserverRemoved(),t}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){var e,t;if(3===this.state)return;const i=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=i;const n=0!==this.state,s=this.value;this.state=3;const o=this.changeSummary;this.changeSummary=null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this);try{this.value=this._computeFn(this,o)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=n&&!this._equalityComparator(s,this.value);if(null===(t=(0,a.tZ)())||void 0===t||t.handleDerivedRecomputed(this,{oldValue:s,newValue:this.value,change:void 0,didChange:r,hadValue:n}),r)for(const a of this.observers)a.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const i of this.observers)i.handlePossibleChange(this);if(t)for(const i of this.observers)i.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,n.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),n=3===this.state;if(i&&(1===this.state||n)&&(this.state=2,n))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}},94958:(e,t,i)=>{"use strict";let n;function s(e){n=e}function o(){return n}i.d(t,{Br:()=>s,jm:()=>r,tZ:()=>o});class r{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return function(e){const t=new Array,i=[];let n="";function s(e){if("length"in e)for(const t of e)t&&s(t);else"text"in e?(n+=`%c${e.text}`,t.push(e.style),e.data&&i.push(...e.data)):"data"in e&&i.push(...e.data)}s(e);const o=[n,...t];return o.push(...i),o}([a(c("| ",this.indentation)),e])}formatInfo(e){return e.hadValue?e.didChange?[a(" "),d(h(e.oldValue,70),{color:"red",strikeThrough:!0}),a(" "),d(h(e.newValue,60),{color:"green"})]:[a(" (unchanged)")]:[a(" "),d(h(e.newValue,60),{color:"green"}),a(" (initial)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([l("observable value changed"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(0!==e.size)return d(" (changed deps: "+[...e].map((e=>e.debugName)).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,n)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,n]))}handleDerivedRecomputed(e,t){const i=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([l("derived recomputed"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(i),{data:[{fn:e._computeFn}]}])),i.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([l("observable from event triggered"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,n)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,n]))}handleAutorunTriggered(e){const t=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([l("autorun"),d(e.debugName,{color:"BlueViolet"}),this.formatChanges(t),{data:[{fn:e._runFn}]}])),t.clear(),this.indentation++}handleAutorunFinished(e){this.indentation--}handleBeginTransaction(e){let t=e.getDebugName();void 0===t&&(t=""),console.log(...this.textToConsoleArgs([l("transaction"),d(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}function a(e){return d(e,{color:"black"})}function l(e){return d(function(e,t){for(;e.length<t;)e+=" ";return e}(`${e}: `,10),{color:"black",bold:!0})}function d(e,t={color:"black"}){const i={color:t.color};return t.strikeThrough&&(i["text-decoration"]="line-through"),t.bold&&(i["font-weight"]="bold"),{text:e,style:(n=i,Object.entries(n).reduce(((e,[t,i])=>`${e}${t}:${i};`),""))};var n}function h(e,t){switch(typeof e){case"number":default:return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return null===e?"null":Array.isArray(e)?function(e,t){let i="[ ",n=!0;for(const s of e){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${h(s,t-i.length)}`}return i+=" ]",i}(e,t):function(e,t){let i="{ ",n=!0;for(const[s,o]of Object.entries(e)){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${s}: ${h(o,t-i.length)}`}return i+=" }",i}(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`}}function c(e,t){let i="";for(let n=1;n<=t;n++)i+=e;return i}},13850:(e,t,i)=>{"use strict";i.d(t,{OI:()=>f,Rl:()=>b,Yd:()=>p,ZX:()=>v,lk:()=>l,y0:()=>h,yQ:()=>u});var n=i(5662),s=i(49154),o=i(22311),r=i(87958),a=i(94958);function l(e){return new d(e)}class d extends s.zV{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function h(e,t){return new c(e,t)}class c extends s.ZK{constructor(e,t){super(),this.event=e,this._getValue=t,this.hasValue=!1,this.handleEvent=e=>{var t;const i=this._getValue(e),n=this.value,o=!this.hasValue||n!==i;let r=!1;o&&(this.value=i,this.hasValue&&(r=!0,(0,s.PO)(c.globalTransaction,(e=>{var t;null===(t=(0,a.tZ)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:n,newValue:i,change:void 0,didChange:o,hadValue:this.hasValue});for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||null===(t=(0,a.tZ)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:n,newValue:i,change:void 0,didChange:o,hadValue:this.hasValue})}}getDebugName(){return(0,o.qQ)(this._getValue)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this._getValue(void 0)}}function u(e,t){return new g(e,t)}!function(e){e.Observer=c,e.batchEventsGlobally=function(e,t){let i=!1;void 0===c.globalTransaction&&(c.globalTransaction=e,i=!0);try{t()}finally{i&&(c.globalTransaction=void 0)}}}(h||(h={}));class g extends s.ZK{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{(0,s.Rn)((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>this.debugName))}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function p(e){return"string"===typeof e?new m(e):new m(void 0,e)}class m extends s.ZK{get debugName(){var e;return null!==(e=new o.nA(this._owner,this._debugName,void 0).getDebugName(this))&&void 0!==e?e:"Observable Signal"}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(e)for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,t);else(0,s.Rn)((e=>{this.trigger(e,t)}),(()=>`Trigger signal ${this.debugName}`))}get(){}}function f(e,t){const i=new _(!0,t);return e.addObserver(i),t?t(e.get()):e.reportChanges(),(0,n.s)((()=>{e.removeObserver(i)}))}(0,s.FB)((function(e){const t=new _(!1,void 0);return e.addObserver(t),(0,n.s)((()=>{e.removeObserver(t)}))})),(0,s.Bm)(f);class _{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}function v(e){let t;return(0,r.un)((i=>(t=e(i,t),t)))}function b(e,t,i,n){let s=new C(i,n);return(0,r.C)({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{s.dispose(),s=new C(i)}},(e=>(s.setItems(t.read(e)),s.getItems())))}class C{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach((e=>e.store.dispose())),this._cache.clear()}setItems(e){const t=[],i=new Set(this._cache.keys());for(const s of e){const e=this._keySelector?this._keySelector(s):s;let o=this._cache.get(e);if(o)i.delete(e);else{const t=new n.Cm;o={out:this._map(s,t),store:t},this._cache.set(e,o)}t.push(o.out)}for(const n of i){this._cache.get(n).store.dispose(),this._cache.delete(n)}this._items=t}getItems(){return this._items}}},74027:(e,t,i)=>{"use strict";i.d(t,{IN:()=>f,LC:()=>k,P8:()=>S,S8:()=>b,SA:()=>v,V8:()=>y,Vn:()=>x,hd:()=>C,pD:()=>w});var n=i(59911);const s=46,o=47,r=92,a=58;class l extends Error{constructor(e,t,i){let n;"string"===typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";const s=-1!==e.indexOf(".")?"property":"argument";let o=`The "${e}" ${s} ${n} of type ${t}`;o+=". Received type "+typeof i,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function d(e,t){if("string"!==typeof e)throw new l(t,"string",e)}const h="win32"===n.iD;function c(e){return e===o||e===r}function u(e){return e===o}function g(e){return e>=65&&e<=90||e>=97&&e<=122}function p(e,t,i,n){let r="",a=0,l=-1,d=0,h=0;for(let c=0;c<=e.length;++c){if(c<e.length)h=e.charCodeAt(c);else{if(n(h))break;h=o}if(n(h)){if(l===c-1||1===d);else if(2===d){if(r.length<2||2!==a||r.charCodeAt(r.length-1)!==s||r.charCodeAt(r.length-2)!==s){if(r.length>2){const e=r.lastIndexOf(i);-1===e?(r="",a=0):(r=r.slice(0,e),a=r.length-1-r.lastIndexOf(i)),l=c,d=0;continue}if(0!==r.length){r="",a=0,l=c,d=0;continue}}t&&(r+=r.length>0?`${i}..`:"..",a=2)}else r.length>0?r+=`${i}${e.slice(l+1,c)}`:r=e.slice(l+1,c),a=c-l-1;l=c,d=0}else h===s&&-1!==d?++d:d=-1}return r}function m(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new l(t,"Object",e)}(t,"pathObject");const i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}const f={resolve(...e){let t="",i="",s=!1;for(let o=e.length-1;o>=-1;o--){let l;if(o>=0){if(l=e[o],d(l,"path"),0===l.length)continue}else 0===t.length?l=n.bJ():(l={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||n.bJ(),(void 0===l||l.slice(0,2).toLowerCase()!==t.toLowerCase()&&l.charCodeAt(2)===r)&&(l=`${t}\\`));const h=l.length;let u=0,p="",m=!1;const f=l.charCodeAt(0);if(1===h)c(f)&&(u=1,m=!0);else if(c(f))if(m=!0,c(l.charCodeAt(1))){let e=2,t=e;for(;e<h&&!c(l.charCodeAt(e));)e++;if(e<h&&e!==t){const i=l.slice(t,e);for(t=e;e<h&&c(l.charCodeAt(e));)e++;if(e<h&&e!==t){for(t=e;e<h&&!c(l.charCodeAt(e));)e++;e!==h&&e===t||(p=`\\\\${i}\\${l.slice(t,e)}`,u=e)}}}else u=1;else g(f)&&l.charCodeAt(1)===a&&(p=l.slice(0,2),u=2,h>2&&c(l.charCodeAt(2))&&(m=!0,u=3));if(p.length>0)if(t.length>0){if(p.toLowerCase()!==t.toLowerCase())continue}else t=p;if(s){if(t.length>0)break}else if(i=`${l.slice(u)}\\${i}`,s=m,m&&t.length>0)break}return i=p(i,!s,"\\",c),s?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){d(e,"path");const t=e.length;if(0===t)return".";let i,n=0,s=!1;const o=e.charCodeAt(0);if(1===t)return u(o)?"\\":e;if(c(o))if(s=!0,c(e.charCodeAt(1))){let s=2,o=s;for(;s<t&&!c(e.charCodeAt(s));)s++;if(s<t&&s!==o){const r=e.slice(o,s);for(o=s;s<t&&c(e.charCodeAt(s));)s++;if(s<t&&s!==o){for(o=s;s<t&&!c(e.charCodeAt(s));)s++;if(s===t)return`\\\\${r}\\${e.slice(o)}\\`;s!==o&&(i=`\\\\${r}\\${e.slice(o,s)}`,n=s)}}}else n=1;else g(o)&&e.charCodeAt(1)===a&&(i=e.slice(0,2),n=2,t>2&&c(e.charCodeAt(2))&&(s=!0,n=3));let r=n<t?p(e.slice(n),!s,"\\",c):"";return 0!==r.length||s||(r="."),r.length>0&&c(e.charCodeAt(t-1))&&(r+="\\"),void 0===i?s?`\\${r}`:r:s?`${i}\\${r}`:`${i}${r}`},isAbsolute(e){d(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return c(i)||t>2&&g(i)&&e.charCodeAt(1)===a&&c(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let o=0;o<e.length;++o){const n=e[o];d(n,"path"),n.length>0&&(void 0===t?t=i=n:t+=`\\${n}`)}if(void 0===t)return".";let n=!0,s=0;if("string"===typeof i&&c(i.charCodeAt(0))){++s;const e=i.length;e>1&&c(i.charCodeAt(1))&&(++s,e>2&&(c(i.charCodeAt(2))?++s:n=!1))}if(n){for(;s<t.length&&c(t.charCodeAt(s));)s++;s>=2&&(t=`\\${t.slice(s)}`)}return f.normalize(t)},relative(e,t){if(d(e,"from"),d(t,"to"),e===t)return"";const i=f.resolve(e),n=f.resolve(t);if(i===n)return"";if((e=i.toLowerCase())===(t=n.toLowerCase()))return"";let s=0;for(;s<e.length&&e.charCodeAt(s)===r;)s++;let o=e.length;for(;o-1>s&&e.charCodeAt(o-1)===r;)o--;const a=o-s;let l=0;for(;l<t.length&&t.charCodeAt(l)===r;)l++;let h=t.length;for(;h-1>l&&t.charCodeAt(h-1)===r;)h--;const c=h-l,u=a<c?a:c;let g=-1,p=0;for(;p<u;p++){const i=e.charCodeAt(s+p);if(i!==t.charCodeAt(l+p))break;i===r&&(g=p)}if(p!==u){if(-1===g)return n}else{if(c>u){if(t.charCodeAt(l+p)===r)return n.slice(l+p+1);if(2===p)return n.slice(l+p)}a>u&&(e.charCodeAt(s+p)===r?g=p:2===p&&(g=3)),-1===g&&(g=0)}let m="";for(p=s+g+1;p<=o;++p)p!==o&&e.charCodeAt(p)!==r||(m+=0===m.length?"..":"\\..");return l+=g,m.length>0?`${m}${n.slice(l,h)}`:(n.charCodeAt(l)===r&&++l,n.slice(l,h))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=f.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===r){if(t.charCodeAt(1)===r){const e=t.charCodeAt(2);if(63!==e&&e!==s)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(g(t.charCodeAt(0))&&t.charCodeAt(1)===a&&t.charCodeAt(2)===r)return`\\\\?\\${t}`;return e},dirname(e){d(e,"path");const t=e.length;if(0===t)return".";let i=-1,n=0;const s=e.charCodeAt(0);if(1===t)return c(s)?e:".";if(c(s)){if(i=n=1,c(e.charCodeAt(1))){let s=2,o=s;for(;s<t&&!c(e.charCodeAt(s));)s++;if(s<t&&s!==o){for(o=s;s<t&&c(e.charCodeAt(s));)s++;if(s<t&&s!==o){for(o=s;s<t&&!c(e.charCodeAt(s));)s++;if(s===t)return e;s!==o&&(i=n=s+1)}}}}else g(s)&&e.charCodeAt(1)===a&&(i=t>2&&c(e.charCodeAt(2))?3:2,n=i);let o=-1,r=!0;for(let a=t-1;a>=n;--a)if(c(e.charCodeAt(a))){if(!r){o=a;break}}else r=!1;if(-1===o){if(-1===i)return".";o=i}return e.slice(0,o)},basename(e,t){void 0!==t&&d(t,"ext"),d(e,"path");let i,n=0,s=-1,o=!0;if(e.length>=2&&g(e.charCodeAt(0))&&e.charCodeAt(1)===a&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){const l=e.charCodeAt(i);if(c(l)){if(!o){n=i+1;break}}else-1===a&&(o=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1===--r&&(s=i):(r=-1,s=a))}return n===s?s=a:-1===s&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=n;--i)if(c(e.charCodeAt(i))){if(!o){n=i+1;break}}else-1===s&&(o=!1,s=i+1);return-1===s?"":e.slice(n,s)},extname(e){d(e,"path");let t=0,i=-1,n=0,o=-1,r=!0,l=0;e.length>=2&&e.charCodeAt(1)===a&&g(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(c(t)){if(!r){n=a+1;break}}else-1===o&&(r=!1,o=a+1),t===s?-1===i?i=a:1!==l&&(l=1):-1!==i&&(l=-1)}return-1===i||-1===o||0===l||1===l&&i===o-1&&i===n+1?"":e.slice(i,o)},format:m.bind(null,"\\"),parse(e){d(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let n=0,o=e.charCodeAt(0);if(1===i)return c(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(c(o)){if(n=1,c(e.charCodeAt(1))){let t=2,s=t;for(;t<i&&!c(e.charCodeAt(t));)t++;if(t<i&&t!==s){for(s=t;t<i&&c(e.charCodeAt(t));)t++;if(t<i&&t!==s){for(s=t;t<i&&!c(e.charCodeAt(t));)t++;t===i?n=t:t!==s&&(n=t+1)}}}}else if(g(o)&&e.charCodeAt(1)===a){if(i<=2)return t.root=t.dir=e,t;if(n=2,c(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;n=3}}n>0&&(t.root=e.slice(0,n));let r=-1,l=n,h=-1,u=!0,p=e.length-1,m=0;for(;p>=n;--p)if(o=e.charCodeAt(p),c(o)){if(!u){l=p+1;break}}else-1===h&&(u=!1,h=p+1),o===s?-1===r?r=p:1!==m&&(m=1):-1!==r&&(m=-1);return-1!==h&&(-1===r||0===m||1===m&&r===h-1&&r===l+1?t.base=t.name=e.slice(l,h):(t.name=e.slice(l,r),t.base=e.slice(l,h),t.ext=e.slice(r,h))),t.dir=l>0&&l!==n?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},_=(()=>{if(h){const e=/\\/g;return()=>{const t=n.bJ().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>n.bJ()})(),v={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){const s=n>=0?e[n]:_();d(s,"path"),0!==s.length&&(t=`${s}/${t}`,i=s.charCodeAt(0)===o)}return t=p(t,!i,"/",u),i?`/${t}`:t.length>0?t:"."},normalize(e){if(d(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===o,i=e.charCodeAt(e.length-1)===o;return 0===(e=p(e,!t,"/",u)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(d(e,"path"),e.length>0&&e.charCodeAt(0)===o),join(...e){if(0===e.length)return".";let t;for(let i=0;i<e.length;++i){const n=e[i];d(n,"path"),n.length>0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":v.normalize(t)},relative(e,t){if(d(e,"from"),d(t,"to"),e===t)return"";if((e=v.resolve(e))===(t=v.resolve(t)))return"";const i=e.length,n=i-1,s=t.length-1,r=n<s?n:s;let a=-1,l=0;for(;l<r;l++){const i=e.charCodeAt(1+l);if(i!==t.charCodeAt(1+l))break;i===o&&(a=l)}if(l===r)if(s>r){if(t.charCodeAt(1+l)===o)return t.slice(1+l+1);if(0===l)return t.slice(1+l)}else n>r&&(e.charCodeAt(1+l)===o?a=l:0===l&&(a=0));let h="";for(l=1+a+1;l<=i;++l)l!==i&&e.charCodeAt(l)!==o||(h+=0===h.length?"..":"/..");return`${h}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(d(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===o;let i=-1,n=!0;for(let s=e.length-1;s>=1;--s)if(e.charCodeAt(s)===o){if(!n){i=s;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&d(t,"ext"),d(e,"path");let i,n=0,s=-1,r=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(i=e.length-1;i>=0;--i){const d=e.charCodeAt(i);if(d===o){if(!r){n=i+1;break}}else-1===l&&(r=!1,l=i+1),a>=0&&(d===t.charCodeAt(a)?-1===--a&&(s=i):(a=-1,s=l))}return n===s?s=l:-1===s&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===o){if(!r){n=i+1;break}}else-1===s&&(r=!1,s=i+1);return-1===s?"":e.slice(n,s)},extname(e){d(e,"path");let t=-1,i=0,n=-1,r=!0,a=0;for(let l=e.length-1;l>=0;--l){const d=e.charCodeAt(l);if(d!==o)-1===n&&(r=!1,n=l+1),d===s?-1===t?t=l:1!==a&&(a=1):-1!==t&&(a=-1);else if(!r){i=l+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===i+1?"":e.slice(t,n)},format:m.bind(null,"/"),parse(e){d(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===o;let n;i?(t.root="/",n=1):n=0;let r=-1,a=0,l=-1,h=!0,c=e.length-1,u=0;for(;c>=n;--c){const t=e.charCodeAt(c);if(t!==o)-1===l&&(h=!1,l=c+1),t===s?-1===r?r=c:1!==u&&(u=1):-1!==r&&(u=-1);else if(!h){a=c+1;break}}if(-1!==l){const n=0===a&&i?1:a;-1===r||0===u||1===u&&r===l-1&&r===a+1?t.base=t.name=e.slice(n,l):(t.name=e.slice(n,r),t.base=e.slice(n,l),t.ext=e.slice(r,l))}return a>0?t.dir=e.slice(0,a-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};v.win32=f.win32=f,v.posix=f.posix=v;const b=h?f.normalize:v.normalize,C=h?f.resolve:v.resolve,y=h?f.relative:v.relative,w=h?f.dirname:v.dirname,S=h?f.basename:v.basename,k=h?f.extname:v.extname,x=h?f.sep:v.sep},98067:(e,t,i)=>{"use strict";i.d(t,{BH:()=>P,Fr:()=>R,H8:()=>j,HZ:()=>I,OS:()=>W,UP:()=>G,_p:()=>B,cm:()=>z,gm:()=>U,ib:()=>T,j9:()=>N,lg:()=>M,m0:()=>$,nr:()=>K,uF:()=>D,un:()=>A,zx:()=>E});var n,s,o=i(31629);const r="en";let a,l,d=!1,h=!1,c=!1,u=!1,g=!1,p=!1,m=!1,f=!1,_=!1,v=!1,b=r,C=null,y=null;const w=globalThis;let S;"undefined"!==typeof w.vscode&&"undefined"!==typeof w.vscode.process?S=w.vscode.process:"undefined"!==typeof process&&"string"===typeof(null===(n=null===process||void 0===process?void 0:process.versions)||void 0===n?void 0:n.node)&&(S=process);const k="string"===typeof(null===(s=null===S||void 0===S?void 0:S.versions)||void 0===s?void 0:s.electron),x=k&&"renderer"===(null===S||void 0===S?void 0:S.type);if("object"===typeof S){d="win32"===S.platform,h="darwin"===S.platform,c="linux"===S.platform,u=c&&!!S.env.SNAP&&!!S.env.SNAP_REVISION,m=k,_=!!S.env.CI||!!S.env.BUILD_ARTIFACTSTAGINGDIRECTORY,a=r,b=r;const e=S.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),i=t.availableLanguages["*"];a=t.locale,C=t.osLocale,b=i||r,y=t._translationsConfigFile}catch(q){}g=!0}else if("object"!==typeof navigator||x)console.error("Unable to resolve platform.");else{l=navigator.userAgent,d=l.indexOf("Windows")>=0,h=l.indexOf("Macintosh")>=0,f=(l.indexOf("Macintosh")>=0||l.indexOf("iPad")>=0||l.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=l.indexOf("Linux")>=0,v=(null===l||void 0===l?void 0:l.indexOf("Mobi"))>=0,p=!0;a=o.AM(o.kg({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"))||r,b=a,C=navigator.language}let L=0;h?L=1:d?L=3:c&&(L=2);const D=d,E=h,N=c,T=g,I=p,M=p&&"function"===typeof w.importScripts?w.origin:void 0,A=f,R=v,O=l,P=b,F="function"===typeof w.postMessage&&!w.importScripts,B=(()=>{if(F){const e=[];w.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i<n;i++){const n=e[i];if(n.id===t.data.vscodeScheduleAsyncWork)return e.splice(i,1),void n.callback()}}));let t=0;return i=>{const n=++t;e.push({id:n,callback:i}),w.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),W=h||f?2:d?1:3;let V=!0,H=!1;function z(){if(!H){H=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);V=513===t[0]}return V}const j=!!(O&&O.indexOf("Chrome")>=0),U=!!(O&&O.indexOf("Firefox")>=0),K=!!(!j&&O&&O.indexOf("Safari")>=0),G=!!(O&&O.indexOf("Edg/")>=0),$=!!(O&&O.indexOf("Android")>=0)},59911:(e,t,i)=>{"use strict";i.d(t,{_K:()=>a,bJ:()=>r,iD:()=>l});var n=i(98067);let s;const o=globalThis.vscode;if("undefined"!==typeof o&&"undefined"!==typeof o.process){const e=o.process;s={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else s="undefined"!==typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return n.uF?"win32":n.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const r=s.cwd,a=s.env,l=s.platform},92719:(e,t,i)=>{"use strict";var n;i.d(t,{Q:()=>n}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),n=Math.min(e.end,t.end);return n-i<=0?{start:0,end:0}:{start:i,end:n}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,n){return!i(t(e,n))},e.relativeComplement=function(e,t){const n=[],s={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return i(s)||n.push(s),i(o)||n.push(o),n}}(n||(n={}))},89403:(e,t,i)=>{"use strict";i.d(t,{B6:()=>S,Fd:()=>v,LC:()=>m,P8:()=>p,Pi:()=>g,er:()=>c,iZ:()=>b,n4:()=>u,o1:()=>C,pD:()=>f,su:()=>d,uJ:()=>_});var n=i(79326),s=i(36456),o=i(74027),r=i(98067),a=i(91508),l=i(79400);function d(e){return(0,l.I)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===s.ny.file)return n._1(d(e),d(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(y(e.authority,t.authority))return n._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return o.SA.basename(e.path)}extname(e){return o.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===s.ny.file?t=l.r.file(o.pD(d(e))).path:(t=o.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===s.ny.file?l.r.file(o.S8(d(e))).path:o.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!y(e.authority,t.authority))return;if(e.scheme===s.ny.file){const i=o.V8(d(e),d(t));return r.uF?n.TH(i):i}let i=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,a.length);e<t&&(i.charCodeAt(e)===a.charCodeAt(e)||i.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);i=a.substr(0,e)+i.substr(e)}return o.SA.relative(i,a)}resolvePath(e,t){if(e.scheme===s.ny.file){const i=l.r.file(o.hd(d(e),t));return e.with({authority:i.authority,path:i.path})}return t=n.kb(t),e.with({path:o.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=o.Vn){if(e.scheme===s.ny.file){const i=d(e);return i.length>n.Zn(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=o.Vn){return w(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=o.Vn){let i=!1;if(e.scheme===s.ny.file){const s=d(e);i=void 0!==s&&s.length===n.Zn(s).length&&s[s.length-1]===t}else{t="/";const n=e.path;i=1===n.length&&47===n.charCodeAt(n.length-1)}return i||w(e,t)?e:e.with({path:e.path+"/"})}}const c=new h((()=>!1)),u=(new h((e=>e.scheme!==s.ny.file||!r.j9)),new h((e=>!0)),c.isEqual.bind(c)),g=(c.isEqualOrParent.bind(c),c.getComparisonKey.bind(c),c.basenameOrAuthority.bind(c)),p=c.basename.bind(c),m=c.extname.bind(c),f=c.dirname.bind(c),_=c.joinPath.bind(c),v=c.normalizePath.bind(c),b=c.relativePath.bind(c),C=c.resolvePath.bind(c),y=(c.isAbsolutePath.bind(c),c.isEqualAuthority.bind(c)),w=c.hasTrailingPathSeparator.bind(c);c.removeTrailingPathSeparator.bind(c),c.addTrailingPathSeparator.bind(c);var S;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,n]=e.split(":");t&&n&&i.set(t,n)}));const n=t.path.substring(0,t.path.indexOf(";"));return n&&i.set(e.META_DATA_MIME,n),i}}(S||(S={}))},49353:(e,t,i)=>{"use strict";i.d(t,{yE:()=>r});var n=i(41234),s=i(5662);class o{constructor(e,t,i,n,s,o,r){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,i|=0,n|=0,s|=0,o|=0,r|=0),this.rawScrollLeft=n,this.rawScrollTop=r,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),s<0&&(s=0),r+s>o&&(r=o-s),r<0&&(r=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=s,this.scrollHeight=o,this.scrollTop=r}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new o(this._forceIntegerValues,"undefined"!==typeof e.width?e.width:this.width,"undefined"!==typeof e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,"undefined"!==typeof e.height?e.height:this.height,"undefined"!==typeof e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new o(this._forceIntegerValues,this.width,this.scrollWidth,"undefined"!==typeof e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,"undefined"!==typeof e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,s=this.scrollLeft!==e.scrollLeft,o=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:s,heightChanged:o,scrollHeightChanged:r,scrollTopChanged:a}}}class r extends s.jG{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new n.vl),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new o(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var i;const n=this._state.withScrollDimensions(e,t);this._setState(n,Boolean(this._smoothScrolling)),null===(i=this._smoothScrolling)||void 0===i||i.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;n=t?new d(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=d.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}hasPendingScrollAnimation(){return Boolean(this._smoothScrolling)}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function l(e,t){const i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}class d{constructor(e,t,i,n){this.from=e,this.to=t,this.duration=n,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let r,a;return e<t?(r=e+.75*i,a=t-.75*i):(r=e-.75*i,a=t+.75*i),n=l(e,r),s=l(a,t),o=.33,function(e){return e<o?n(e/o):s((e-o)/(1-o))}}var n,s,o;return l(e,t)}dispose(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){const t=(e-this.startTime)/this.duration;if(t<1){const e=this.scrollLeft(t),i=this.scrollTop(t);return new a(e,i,!1)}return new a(this.to.scrollLeft,this.to.scrollTop,!0)}combine(e,t,i){return d.start(e,t,i)}static start(e,t,i){i+=10;const n=Date.now()-10;return new d(e,t,n,i)}}},42291:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var n,s=i(91508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(n||(n={})),function(e){const t="error",i="warning",n="info";e.fromValue=function(o){return o?s.Q_(t,o)?e.Error:s.Q_(i,o)||s.Q_("warn",o)?e.Warning:s.Q_(n,o)?e.Info:e.Ignore:e.Ignore},e.toString=function(s){switch(s){case e.Error:return t;case e.Warning:return i;case e.Info:return n;default:return"ignore"}}}(n||(n={}));const o=n},78381:(e,t,i)=>{"use strict";i.d(t,{W:()=>s});const n=globalThis.performance&&"function"===typeof globalThis.performance.now;class s{static create(e){return new s(e)}constructor(e){this._now=n&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},91508:(e,t,i)=>{"use strict";i.d(t,{$X:()=>Q,AV:()=>r,BO:()=>p,Bm:()=>m,Bq:()=>u,DB:()=>E,E_:()=>K,GP:()=>l,HG:()=>y,LJ:()=>P,LU:()=>J,Lv:()=>N,MV:()=>z,NB:()=>g,OS:()=>_,Q_:()=>I,Qp:()=>A,S8:()=>re,Ss:()=>Z,UD:()=>k,UU:()=>w,Vi:()=>R,W1:()=>L,Wd:()=>se,Wv:()=>T,Z5:()=>B,_J:()=>q,aC:()=>$,bm:()=>c,eY:()=>v,en:()=>C,ih:()=>h,iy:()=>H,jy:()=>d,km:()=>V,lF:()=>x,lT:()=>S,m:()=>j,ne:()=>Y,ns:()=>M,pc:()=>O,r_:()=>X,tk:()=>te,tl:()=>ae,uz:()=>b,wB:()=>f,y_:()=>le,zY:()=>ee,z_:()=>F,zd:()=>D});var n,s=i(81788),o=i(91090);function r(e){return!e||"string"!==typeof e||0===e.trim().length}const a=/{(\d+)}/g;function l(e,...t){return 0===t.length?e:e.replace(a,(function(e,i){const n=parseInt(i,10);return isNaN(n)||n<0||n>=t.length?e:t[n]}))}function d(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function h(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function c(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function u(e,t=" "){return p(g(e,t),t)}function g(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function p(e,t){if(!e||!t)return e;const i=t.length,n=e.length;if(0===i||0===n)return e;let s=n,o=-1;for(;o=e.lastIndexOf(t,s-1),-1!==o&&o+i===s;){if(0===o)return"";s=o}return e.substring(0,s)}function m(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(e){return e.replace(/\*/g,"")}function _(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=c(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function v(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function b(e){return e.split(/\r\n|\r|\n/)}function C(e){var t;const i=[],n=e.split(/(\r\n|\r|\n)/);for(let s=0;s<Math.ceil(n.length/2);s++)i.push(n[2*s]+(null!==(t=n[2*s+1])&&void 0!==t?t:""));return i}function y(e){for(let t=0,i=e.length;t<i;t++){const i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function w(e,t=0,i=e.length){for(let n=t;n<i;n++){const i=e.charCodeAt(n);if(32!==i&&9!==i)return e.substring(t,n)}return e.substring(t,i)}function S(e,t=e.length-1){for(let i=t;i>=0;i--){const t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1}function k(e,t){return e<t?-1:e>t?1:0}function x(e,t,i=0,n=e.length,s=0,o=t.length){for(;i<n&&s<o;i++,s++){const n=e.charCodeAt(i),o=t.charCodeAt(s);if(n<o)return-1;if(n>o)return 1}const r=n-i,a=o-s;return r<a?-1:r>a?1:0}function L(e,t){return D(e,t,0,e.length,0,t.length)}function D(e,t,i=0,n=e.length,s=0,o=t.length){for(;i<n&&s<o;i++,s++){let r=e.charCodeAt(i),a=t.charCodeAt(s);if(r===a)continue;if(r>=128||a>=128)return x(e.toLowerCase(),t.toLowerCase(),i,n,s,o);N(r)&&(r-=32),N(a)&&(a-=32);const l=r-a;if(0!==l)return l}const r=n-i,a=o-s;return r<a?-1:r>a?1:0}function E(e){return e>=48&&e<=57}function N(e){return e>=97&&e<=122}function T(e){return e>=65&&e<=90}function I(e,t){return e.length===t.length&&0===D(e,t)}function M(e,t){const i=t.length;return!(t.length>e.length)&&0===D(e,t,0,i)}function A(e,t){const i=Math.min(e.length,t.length);let n;for(n=0;n<i;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return i}function R(e,t){const i=Math.min(e.length,t.length);let n;const s=e.length-1,o=t.length-1;for(n=0;n<i;n++)if(e.charCodeAt(s-n)!==t.charCodeAt(o-n))return n;return i}function O(e){return 55296<=e&&e<=56319}function P(e){return 56320<=e&&e<=57343}function F(e,t){return t-56320+(e-55296<<10)+65536}function B(e,t,i){const n=e.charCodeAt(i);if(O(n)&&i+1<t){const t=e.charCodeAt(i+1);if(P(t))return F(n,t)}return n}class W{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const i=e.charCodeAt(t-1);if(P(i)&&t>1){const n=e.charCodeAt(t-2);if(O(n))return F(n,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=B(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class V{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new W(e,t)}nextGraphemeLength(){const e=ne.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const i=t.offset,s=e.getGraphemeBreakType(t.nextCodePoint());if(ie(n,s)){t.setOffset(i);break}n=s}return t.offset-i}prevGraphemeLength(){const e=ne.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const i=t.offset,s=e.getGraphemeBreakType(t.prevCodePoint());if(ie(s,n)){t.setOffset(i);break}n=s}return i-t.offset}eol(){return this._iterator.eol()}}function H(e,t){return new V(e,t).nextGraphemeLength()}function z(e,t){return new V(e,t).prevGraphemeLength()}function j(e,t){t>0&&P(e.charCodeAt(t))&&t--;const i=t+H(e,t);return[i-z(e,i),i]}let U;function K(e){return U||(U=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),U.test(e)}const G=/^[\t\n\r\x20-\x7E]*$/;function $(e){return G.test(e)}const q=/[\u2028\u2029]/;function Q(e){return q.test(e)}function Y(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Z(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const X=String.fromCharCode(65279);function J(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function ee(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function te(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function ie(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class ne{static getInstance(){return ne._INSTANCE||(ne._INSTANCE=new ne),ne._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let n=1;for(;n<=i;)if(e<t[3*n])n*=2;else{if(!(e>t[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}function se(e,t){if(0===e)return 0;const i=function(e,t){const i=new W(t,e);let n=i.prevCodePoint();for(;oe(n)||65039===n||8419===n;){if(0===i.offset)return;n=i.prevCodePoint()}if(!Z(n))return;let s=i.offset;if(s>0){8205===i.prevCodePoint()&&(s=i.offset)}return s}(e,t);if(void 0!==i)return i;const n=new W(t,e);return n.prevCodePoint(),n.offset}function oe(e){return 127995<=e&&e<=127999}ne._INSTANCE=null;const re="\xa0";class ae{static getInstance(e){return n.cache.get(Array.from(e))}static getLocales(){return n._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}n=ae,ae.ambiguousCharacterData=new o.d((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),ae.cache=new s.o((e=>{function t(e){const t=new Map;for(let i=0;i<e.length;i+=2)t.set(e[i],e[i+1]);return t}function i(e,t){if(!e)return t;const i=new Map;for(const[n,s]of e)t.has(n)&&i.set(n,s);return i}const s=n.ambiguousCharacterData.value;let o,r=e.filter((e=>!e.startsWith("_")&&e in s));0===r.length&&(r=["_default"]);for(const n of r){o=i(o,t(s[n]))}const a=function(e,t){const i=new Map(e);for(const[n,s]of t)i.set(n,s);return i}(t(s._common),o);return new n(a)})),ae._locales=new o.d((()=>Object.keys(n.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class le{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(le.getRawData())),this._data}static isInvisibleCharacter(e){return le.getData().has(e)}static get codePoints(){return le.getData()}}le._data=void 0},44759:(e,t,i)=>{"use strict";i.d(t,{h:()=>n});const n=Symbol("MicrotaskDelay")},4853:(e,t,i)=>{"use strict";i.d(t,{cB:()=>d});var n=i(91508);class s{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}class o{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){if(46===this._value.charCodeAt(this._to)){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,n.lF)(e,this._value,0,e.length,this._from,this._to):(0,n.zd)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class r{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let t=e.length-1;t>=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,n.lF)(e,this._value,0,e.length,this._from,this._to):(0,n.zd)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class a{constructor(e,t){this._ignorePathCasing=e,this._ignoreQueryAndFragment=t,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new r(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(1===this._states[this._stateIdx])return(0,n.W1)(e,this._value.scheme);if(2===this._states[this._stateIdx])return(0,n.W1)(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);if(4===this._states[this._stateIdx])return(0,n.UD)(e,this._value.query);if(5===this._states[this._stateIdx])return(0,n.UD)(e,this._value.fragment);throw new Error}value(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();if(4===this._states[this._stateIdx])return this._value.query;if(5===this._states[this._stateIdx])return this._value.fragment;throw new Error}}class l{constructor(){this.height=1}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){var e,t;return null!==(t=null===(e=this.left)||void 0===e?void 0:e.height)&&void 0!==t?t:0}get heightRight(){var e,t;return null!==(t=null===(e=this.right)||void 0===e?void 0:e.height)&&void 0!==t?t:0}}class d{static forUris(e=()=>!1,t=()=>!1){return new d(new a(e,t))}static forStrings(){return new d(new s)}static forConfigKeys(){return new d(new o)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new l,this._root.segment=i.value());const s=[];for(n=this._root;;){const e=i.cmp(n.segment);if(e>0)n.left||(n.left=new l,n.left.segment=i.value()),s.push([-1,n]),n=n.left;else if(e<0)n.right||(n.right=new l,n.right.segment=i.value()),s.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new l,n.mid.segment=i.value()),s.push([0,n]),n=n.mid}}const o=n.value;n.value=t,n.key=e;for(let r=s.length-1;r>=0;r--){const e=s[r][1];e.updateHeight();const t=e.balanceFactor();if(t<-1||t>1){const t=s[r][0],i=s[r+1][0];if(1===t&&1===i)s[r][1]=e.rotateLeft();else if(-1===t&&-1===i)s[r][1]=e.rotateRight();else if(1===t&&-1===i)e.right=s[r+1][1]=s[r+1][1].rotateRight(),s[r][1]=e.rotateLeft();else{if(-1!==t||1!==i)throw new Error;e.left=s[r+1][1]=s[r+1][1].rotateLeft(),s[r][1]=e.rotateRight()}if(r>0)switch(s[r-1][0]){case-1:s[r-1][1].left=s[r][1];break;case 1:s[r-1][1].right=s[r][1];break;case 0:s[r-1][1].mid=s[r][1]}else this._root=s[0][1]}}return o}get(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===(null===t||void 0===t?void 0:t.value)&&void 0===(null===t||void 0===t?void 0:t.mid))}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),s=[];let o=this._root;for(;o;){const e=n.cmp(o.segment);if(e>0)s.push([-1,o]),o=o.left;else if(e<0)s.push([1,o]),o=o.right;else{if(!n.hasNext())break;n.next(),s.push([0,o]),o=o.mid}}if(o){if(t?(o.left=void 0,o.mid=void 0,o.right=void 0,o.height=1):(o.key=void 0,o.value=void 0),!o.mid&&!o.value)if(o.left&&o.right){const e=this._min(o.right);if(e.key){const{key:t,value:i,segment:n}=e;this._delete(e.key,!1),o.key=t,o.value=i,o.segment=n}}else{const e=null!==(i=o.left)&&void 0!==i?i:o.right;if(s.length>0){const[t,i]=s[s.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e}}else this._root=e}for(let e=s.length-1;e>=0;e--){const t=s[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),s[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),s[e][1]=t.rotateRight()),e>0)switch(s[e-1][0]){case-1:s[e-1][1].left=s[e][1];break;case 1:s[e-1][1].right=s[e][1];break;case 0:s[e-1][1].mid=s[e][1]}else this._root=s[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){const i=this._iter.reset(e);let n=this._root;for(;n;){const e=i.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!i.hasNext())return n.mid?this._entries(n.mid):t?n.value:void 0;i.next(),n=n.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}},25689:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});var n,s,o=i(10350);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(n||(n={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){const n=t.exec(e.id);if(!n)return i(o.W.error);const[,s,r]=n,a=["codicon","codicon-"+s];return r&&a.push("codicon-modifier-"+r.substring(1)),a}e.asClassNameArray=i,e.asClassName=function(e){return i(e).join(" ")},e.asCSSSelector=function(e){return"."+i(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||n.isThemeColor(e.color))};const s=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=s.exec(e);if(!t)return;const[,i]=t;return{id:i}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let i=e.id;const n=i.lastIndexOf("~");return-1!==n&&(i=i.substring(0,n)),t&&(i=`${i}~${t}`),{id:i}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){var i,n;return e.id===t.id&&(null===(i=e.color)||void 0===i?void 0:i.id)===(null===(n=t.color)||void 0===n?void 0:n.id)}}(s||(s={}))},631:(e,t,i)=>{"use strict";function n(e){return"string"===typeof e}function s(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function o(e){const t=Object.getPrototypeOf(Uint8Array);return"object"===typeof e&&e instanceof t}function r(e){return"number"===typeof e&&!isNaN(e)}function a(e){return!!e&&"function"===typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function d(e){return"undefined"===typeof e}function h(e){return!c(e)}function c(e){return d(e)||null===e}function u(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(c(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"===typeof e}function m(e,t){const i=Math.min(e.length,t.length);for(let n=0;n<i;n++)f(e[n],t[n])}function f(e,t){if(n(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(p(t)){try{if(e instanceof t)return}catch(i){}if(!c(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}i.d(t,{Et:()=>r,Gv:()=>s,Kg:()=>n,Lm:()=>l,O9:()=>h,Tn:()=>p,b0:()=>d,eU:()=>g,iu:()=>o,j:()=>u,jx:()=>m,xZ:()=>a,z:()=>c})},85152:(e,t,i)=>{"use strict";function n(e){return e<0?0:e>255?255:0|e}function s(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{W:()=>n,j:()=>s})},79400:(e,t,i)=>{"use strict";i.d(t,{I:()=>_,r:()=>c});var n=i(74027),s=i(98067);const o=/^\w[\w\d+.-]*$/,r=/^\//,a=/^\/\//;const l="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{static isUri(e){return e instanceof c||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,i,n,s,h=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,i||l),this.query=n||l,this.fragment=s||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!o.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,h))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:s,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===i?i=this.authority:null===i&&(i=l),void 0===n?n=this.path:null===n&&(n=l),void 0===s?s=this.query:null===s&&(s=l),void 0===o?o=this.fragment:null===o&&(o=l),t===this.scheme&&i===this.authority&&n===this.path&&s===this.query&&o===this.fragment?this:new g(t,i,n,s,o)}static parse(e,t=!1){const i=h.exec(e);return i?new g(i[2]||l,y(i[4]||l),y(i[5]||l),y(i[7]||l),y(i[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(s.uF&&(e=e.replace(/\\/g,d)),e[0]===d&&e[1]===d){const i=e.indexOf(d,2);-1===i?(t=e.substring(2),e=d):(t=e.substring(2,i),e=e.substring(i)||d)}return new g("file",t,e,l,l)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=s.uF&&"file"===e.scheme?c.file(n.IN.join(_(e,!0),...t)).path:n.SA.join(e.path,...t),e.with({path:i})}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){var t,i;if(e){if(e instanceof c)return e;{const n=new g(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===u&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}return e}}const u=s.uF?1:void 0;class g extends c{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,i){let n,s=-1;for(let o=0;o<e.length;o++){const r=e.charCodeAt(o);if(r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||45===r||46===r||95===r||126===r||t&&47===r||i&&91===r||i&&93===r||i&&58===r)-1!==s&&(n+=encodeURIComponent(e.substring(s,o)),s=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));const t=p[r];void 0!==t?(-1!==s&&(n+=encodeURIComponent(e.substring(s,o)),s=-1),n+=t):-1===s&&(s=o)}}return-1!==s&&(n+=encodeURIComponent(e.substring(s))),void 0!==n?n:e}function f(e){let t;for(let i=0;i<e.length;i++){const n=e.charCodeAt(i);35===n||63===n?(void 0===t&&(t=e.substr(0,i)),t+=p[n]):void 0!==t&&(t+=e[i])}return void 0!==t?t:e}function _(e,t){let i;return i=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,s.uF&&(i=i.replace(/\//g,"\\")),i}function v(e,t){const i=t?f:m;let n="",{scheme:s,authority:o,path:r,query:a,fragment:l}=e;if(s&&(n+=s,n+=":"),(o||"file"===s)&&(n+=d,n+=d),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),e=t.lastIndexOf(":"),-1===e?n+=i(t,!1,!1):(n+=i(t.substr(0,e),!1,!1),n+=":",n+=i(t.substr(e+1),!1,!0)),n+="@"}o=o.toLowerCase(),e=o.lastIndexOf(":"),-1===e?n+=i(o,!1,!0):(n+=i(o.substr(0,e),!1,!0),n+=o.substr(e))}if(r){if(r.length>=3&&47===r.charCodeAt(0)&&58===r.charCodeAt(2)){const e=r.charCodeAt(1);e>=65&&e<=90&&(r=`/${String.fromCharCode(e+32)}:${r.substr(3)}`)}else if(r.length>=2&&58===r.charCodeAt(1)){const e=r.charCodeAt(0);e>=65&&e<=90&&(r=`${String.fromCharCode(e+32)}:${r.substr(2)}`)}n+=i(r,!0,!1)}return a&&(n+="?",n+=i(a,!1,!1)),l&&(n+="#",n+=t?l:m(l,!1,!1)),n}function b(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+b(e.substr(3)):e}}const C=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function y(e){return e.match(C)?e.replace(C,(e=>b(e))):e}},58255:(e,t,i)=>{"use strict";i.d(t,{b:()=>n});const n=function(){if("object"===typeof crypto&&"function"===typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);let e;e="object"===typeof crypto&&"function"===typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e};const t=new Uint8Array(16),i=[];for(let n=0;n<256;n++)i.push(n.toString(16).padStart(2,"0"));return function(){e(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;let n=0,s="";return s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+="-",s+=i[t[n++]],s+=i[t[n++]],s+="-",s+=i[t[n++]],s+=i[t[n++]],s+="-",s+=i[t[n++]],s+=i[t[n++]],s+="-",s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s+=i[t[n++]],s}}()},34918:(e,t,i)=>{"use strict";i.d(t,{K:()=>m});var n,s,o=i(32858),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of l(t))d.call(e,s)||s===i||r(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},c={};h(c,n=o,"default"),s&&h(s,n,"default");var u={},g={},p=class e{static getOrCreate(t){return g[t]||(g[t]=new e(t)),g[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}load(){return this._loadingTriggered||(this._loadingTriggered=!0,u[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}};function m(e){const t=e.id;u[t]=e,c.languages.register(e);const i=p.getOrCreate(t);c.languages.registerTokensProviderFactory(t,{create:async()=>(await i.load()).language}),c.languages.onLanguageEncountered(t,(async()=>{const e=await i.load();c.languages.setLanguageConfiguration(t,e.conf)}))}},61562:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>i.e(5636).then(i.bind(i,25636))})},94318:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>i.e(9872).then(i.bind(i,99872))})},23304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>i.e(3534).then(i.bind(i,73534))})},59896:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>i.e(654).then(i.bind(i,20654))})},75208:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>i.e(8014).then(i.bind(i,98014))})},51232:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>i.e(6374).then(i.bind(i,36374))})},77888:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>i.e(7206).then(i.bind(i,57206))})},46686:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>i.e(5888).then(i.bind(i,35888))})},27020:(e,t,i)=>{"use strict";var n=i(34918);(0,n.K)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>i.e(2042).then(i.bind(i,62042))}),(0,n.K)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>i.e(2042).then(i.bind(i,62042))})},15600:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>i.e(2518).then(i.bind(i,52518))})},80200:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>i.e(5454).then(i.bind(i,55454))})},87152:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>i.e(2742).then(i.bind(i,32742))})},60352:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>i.e(4534).then(i.bind(i,24534))})},66235:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>i.e(30).then(i.bind(i,80030))})},31474:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>i.e(6012).then(i.bind(i,46012))})},84840:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>i.e(734).then(i.bind(i,734))})},17184:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>i.e(5382).then(i.bind(i,35382))})},74304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>i.e(2854).then(i.bind(i,32854))})},74800:(e,t,i)=>{"use strict";var n=i(34918);(0,n.K)({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationDollar))}),(0,n.K)({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAngleInterpolationDollar))}),(0,n.K)({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagBracketInterpolationDollar))}),(0,n.K)({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAngleInterpolationBracket))}),(0,n.K)({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagBracketInterpolationBracket))}),(0,n.K)({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationDollar))}),(0,n.K)({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationBracket))})},37954:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>i.e(7692).then(i.bind(i,47692))})},25922:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>i.e(7148).then(i.bind(i,27148))})},46648:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>i.e(110).then(i.bind(i,60110))})},61082:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>i.e(5252).then(i.bind(i,65252))})},19856:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>i.e(3638).then(i.bind(i,13638))})},97884:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>i.e(6554).then(i.bind(i,96554))})},83488:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>i.e(4678).then(i.bind(i,54678))})},3254:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>i.e(9176).then(i.bind(i,99176))})},57680:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>i.e(2726).then(i.bind(i,2726))})},796:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>i.e(7642).then(i.bind(i,77642))})},89336:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>i.e(2350).then(i.bind(i,62350))})},19436:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>i.e(3338).then(i.bind(i,33338))})},40340:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>i.e(9010).then(i.bind(i,99010))})},52894:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>i.e(9728).then(i.bind(i,19728))})},86492:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>i.e(5050).then(i.bind(i,95050))})},73374:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>i.e(9312).then(i.bind(i,79312))})},38320:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>i.e(3478).then(i.bind(i,73478))})},92080:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>i.e(6214).then(i.bind(i,26214))})},57664:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>i.e(1414).then(i.bind(i,51414))})},8868:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>i.e(2994).then(i.bind(i,2994))})},31396:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>i.e(6210).then(i.bind(i,16210))})},18544:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>i.e(7638).then(i.bind(i,97638))})},538:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>i.e(132).then(i.bind(i,40132))})},25064:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>i.e(7118).then(i.bind(i,57118))})},64256:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>i.e(3158).then(i.bind(i,23158))})},32624:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>i.e(4582).then(i.bind(i,84582))})},97360:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>i.e(6342).then(i.bind(i,86342))})},42776:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pla",extensions:[".pla"],loader:()=>i.e(4542).then(i.bind(i,14542))})},97144:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>i.e(9582).then(i.bind(i,49582))})},46304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>i.e(5542).then(i.bind(i,15542))})},58820:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>i.e(4818).then(i.bind(i,4818))})},82560:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>i.e(902).then(i.bind(i,10902))})},74276:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>i.e(9394).then(i.bind(i,29394))})},39866:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>i.e(2372).then(i.bind(i,22372))})},73020:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>i.e(5866).then(i.bind(i,5866))})},71316:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>i.e(6658).then(i.bind(i,86658))})},70492:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>i.e(8986).then(i.bind(i,58986))})},50848:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>i.e(4662).then(i.bind(i,24662))})},59520:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>i.e(3702).then(i.bind(i,23702))})},46576:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>i.e(2182).then(i.bind(i,42182))})},49150:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>i.e(2016).then(i.bind(i,92016))})},33358:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>i.e(3648).then(i.bind(i,3648))})},96716:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>i.e(7946).then(i.bind(i,57946))})},28304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>i.e(3977).then(i.bind(i,56358))})},14720:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>i.e(7574).then(i.bind(i,67574))})},27734:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>i.e(3048).then(i.bind(i,3048))})},2068:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>i.e(9842).then(i.bind(i,79842))})},71468:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>i.e(8234).then(i.bind(i,98234))})},15482:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>i.e(5988).then(i.bind(i,65988))})},42572:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>i.e(957).then(i.bind(i,53338))})},77668:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>i.e(9778).then(i.bind(i,49778))})},36e3:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>i.e(1321).then(i.bind(i,43702))})},10072:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>i.e(1278).then(i.bind(i,11278))})},48448:(e,t,i)=>{"use strict";var n=i(34918);(0,n.K)({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>i.e(6262).then(i.bind(i,66262))}),(0,n.K)({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>i.e(6262).then(i.bind(i,66262))})},51376:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>i.e(246).then(i.bind(i,10246))})},61764:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>i.e(2162).then(i.bind(i,2162))})},85872:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>i.e(1606).then(i.bind(i,1606))})},22362:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>i.e(9748).then(i.bind(i,59748))})},98408:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>i.e(3822).then(i.bind(i,33822))})},61472:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>i.e(7718).then(i.bind(i,77718))})},50576:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>i.e(4870).then(i.bind(i,84870))})},73157:(e,t,i)=>{"use strict";i.d(t,{M:()=>s});var n=i(55275);function s(e,t){e instanceof n.D?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}},4983:(e,t,i)=>{"use strict";i.d(t,{u:()=>r});var n=i(5662),s=i(41234),o=i(8597);class r extends n.jG{constructor(e,t){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null;const t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()};let i=!1,n=!1;const s=()=>{if(i&&!n)try{i=!1,n=!0,t()}finally{(0,o.PG)((0,o.zk)(this._referenceDomElement),(()=>{n=!1,s()}))}};this._resizeObserver=new ResizeObserver((t=>{e=t&&t[0]&&t[0].contentRect?{width:t[0].contentRect.width,height:t[0].contentRect.height}:null,i=!0,s()})),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,n=this._referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),this._width===i&&this._height===n||(this._width=i,this._height=n,e&&this._onDidChange.fire())}}},28433:(e,t,i)=>{"use strict";i.d(t,{T:()=>p});var n=i(8597),s=i(94106),o=i(41234),r=i(5662),a=i(73157);class l{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class d{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),e.document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");(0,a.M)(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");(0,a.M)(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const n=document.createElement("div");(0,a.M)(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);const s=[];for(const o of this._requests){let e;0===o.type&&(e=t),2===o.type&&(e=i),1===o.type&&(e=n),e.appendChild(document.createElement("br"));const r=document.createElement("span");d._render(r,o),e.appendChild(r),s.push(r)}this._container=e,this._testElements=s}static _render(e,t){if(" "===t.chr){let t="\xa0";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){const t=this._requests[e],i=this._testElements[e];t.fulfill(i.offsetWidth/256)}}}var h=i(87908),c=i(74196);class u extends r.jG{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new o.vl),this.onDidChange=this._onDidChange.event}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire()}_ensureCache(e){const t=(0,n.Q2)(e);let i=this._cache.get(t);return i||(i=new g,this._cache.set(t,i)),i}_writeToCache(e,t,i){this._ensureCache(e).put(t,i),i.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=e.setTimeout((()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)}),5e3))}_evictUntrustedReadings(e){const t=this._ensureCache(e),i=t.getValues();let n=!1;for(const s of i)s.isTrusted||(n=!0,t.remove(s));n&&this._onDidChange.fire()}readFontInfo(e,t){const i=this._ensureCache(e);if(!i.has(t)){let i=this._actualReadFontInfo(e,t);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new c.YJ({pixelRatio:s.c.getInstance(e).value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,t,i)}return i.get(t)}_createRequest(e,t,i,n){const s=new l(e,t);return i.push(s),null===n||void 0===n||n.push(s),s}_actualReadFontInfo(e,t){const i=[],n=[],o=this._createRequest("n",0,i,n),r=this._createRequest("\uff4d",0,i,null),a=this._createRequest(" ",0,i,n),l=this._createRequest("0",0,i,n),u=this._createRequest("1",0,i,n),g=this._createRequest("2",0,i,n),p=this._createRequest("3",0,i,n),m=this._createRequest("4",0,i,n),f=this._createRequest("5",0,i,n),_=this._createRequest("6",0,i,n),v=this._createRequest("7",0,i,n),b=this._createRequest("8",0,i,n),C=this._createRequest("9",0,i,n),y=this._createRequest("\u2192",0,i,n),w=this._createRequest("\uffeb",0,i,null),S=this._createRequest("\xb7",0,i,n),k=this._createRequest(String.fromCharCode(11825),0,i,null),x="|/-_ilm%";for(let s=0,d=8;s<d;s++)this._createRequest(x.charAt(s),0,i,n),this._createRequest(x.charAt(s),1,i,n),this._createRequest(x.charAt(s),2,i,n);!function(e,t,i){new d(t,i).read(e)}(e,t,i);const L=Math.max(l.width,u.width,g.width,p.width,m.width,f.width,_.width,v.width,b.width,C.width);let D=t.fontFeatureSettings===h.Bc.OFF;const E=n[0].width;for(let s=1,d=n.length;D&&s<d;s++){const e=E-n[s].width;if(e<-.001||e>.001){D=!1;break}}let N=!0;return D&&w.width!==E&&(N=!1),w.width>y.width&&(N=!1),new c.YJ({pixelRatio:s.c.getInstance(e).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:D,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:N,spaceWidth:a.width,middotWidth:S.width,wsmiddotWidth:k.width,maxDigitWidth:L},!0)}}class g{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map((e=>this._values[e]))}}const p=new u},77163:(e,t,i)=>{"use strict";i.d(t,{M:()=>s});var n=i(41234);const s=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new n.vl,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}}},68792:(e,t,i)=>{"use strict";i.d(t,{$D:()=>n,Eq:()=>C,M0:()=>x,Mz:()=>k,No:()=>S,bs:()=>y});var n,s=i(60413),o=i(8597),r=i(56245),a=i(72962),l=i(5239),d=i(90766),h=i(41234),c=i(5662),u=i(44320),g=i(91508),p=i(69785),m=i(75326),f=i(253),_=i(18801),v=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},b=function(e,t){return function(i,n){t(i,n,e)}};!function(e){e.Tap="-monaco-textarea-synthetic-tap"}(n||(n={}));const C={forceCopyWithSyntaxHighlighting:!1};class y{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}y.INSTANCE=new y;class w{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){const t={text:e=e||"",replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}let S=class extends c.jG{get textAreaState(){return this._textAreaState}constructor(e,t,i,n,s,o){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=n,this._accessibilityService=s,this._logService=o,this._onFocus=this._register(new h.vl),this.onFocus=this._onFocus.event,this._onBlur=this._register(new h.vl),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new h.vl),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new h.vl),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new h.vl),this.onCut=this._onCut.event,this._onPaste=this._register(new h.vl),this.onPaste=this._onPaste.event,this._onType=this._register(new h.vl),this.onType=this._onType.event,this._onCompositionStart=this._register(new h.vl),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new h.vl),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new h.vl),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new h.vl),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new c.HE),this._asyncTriggerCut=this._register(new d.uC((()=>this._onCut.fire()),0)),this._textAreaState=p._O.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(h.Jh.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new d.uC((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)):this._asyncFocusGainWriteScreenReaderContent.clear()}))),this._hasFocus=!1,this._currentComposition=null;let r=null;this._register(this._textArea.onKeyDown((e=>{const t=new a.Z(e);(114===t.keyCode||this._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),r=t,this._onKeyDown.fire(t)}))),this._register(this._textArea.onKeyUp((e=>{const t=new a.Z(e);this._onKeyUp.fire(t)}))),this._register(this._textArea.onCompositionStart((e=>{p.Hf&&console.log("[compositionstart]",e);const t=new w;if(this._currentComposition)this._currentComposition=t;else{if(this._currentComposition=t,2===this._OS&&r&&r.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"===r.code||"ArrowLeft"===r.code))return p.Hf&&console.log("[compositionstart] Handling long press case on macOS + arrow key",e),t.handleCompositionUpdate("x"),void this._onCompositionStart.fire({data:e.data});this._browser.isAndroid,this._onCompositionStart.fire({data:e.data})}}))),this._register(this._textArea.onCompositionUpdate((e=>{p.Hf&&console.log("[compositionupdate]",e);const t=this._currentComposition;if(!t)return;if(this._browser.isAndroid){const t=p._O.readFromTextArea(this._textArea,this._textAreaState),i=p._O.deduceAndroidCompositionInput(this._textAreaState,t);return this._textAreaState=t,this._onType.fire(i),void this._onCompositionUpdate.fire(e)}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionUpdate.fire(e)}))),this._register(this._textArea.onCompositionEnd((e=>{p.Hf&&console.log("[compositionend]",e);const t=this._currentComposition;if(!t)return;if(this._currentComposition=null,this._browser.isAndroid){const e=p._O.readFromTextArea(this._textArea,this._textAreaState),t=p._O.deduceAndroidCompositionInput(this._textAreaState,e);return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionEnd.fire()}))),this._register(this._textArea.onInput((e=>{if(p.Hf&&console.log("[input]",e),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const t=p._O.readFromTextArea(this._textArea,this._textAreaState),i=p._O.deduceInput(this._textAreaState,t,2===this._OS);(0!==i.replacePrevCharCnt||1!==i.text.length||!g.pc(i.text.charCodeAt(0))&&127!==i.text.charCodeAt(0))&&(this._textAreaState=t,""===i.text&&0===i.replacePrevCharCnt&&0===i.replaceNextCharCnt&&0===i.positionDelta||this._onType.fire(i))}))),this._register(this._textArea.onCut((e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()}))),this._register(this._textArea.onCopy((e=>{this._ensureClipboardGetsEditorSelection(e)}))),this._register(this._textArea.onPaste((e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),e.preventDefault(),!e.clipboardData)return;let[t,i]=k.getTextData(e.clipboardData);t&&(i=i||y.INSTANCE.get(t),this._onPaste.fire({text:t,metadata:i}))}))),this._register(this._textArea.onFocus((()=>{const e=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!e&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new d.uC((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())}))),this._register(this._textArea.onBlur((()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)}))),this._register(this._textArea.onSyntheticTap((()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())})))}_installSelectionChangeListener(){let e=0;return o.ko(this._textArea.ownerDocument,"selectionchange",(t=>{if(l.p.onSelectionChange(),!this._hasFocus)return;if(this._currentComposition)return;if(!this._browser.isChrome)return;const i=Date.now(),n=i-e;if(e=i,n<5)return;const s=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),s<100)return;if(!this._textAreaState.selection)return;const o=this._textArea.getValue();if(this._textAreaState.value!==o)return;const r=this._textArea.getSelectionStart(),a=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===r&&this._textAreaState.selectionEnd===a)return;const d=this._textAreaState.deduceEditorPosition(r),h=this._host.deduceModelPosition(d[0],d[1],d[2]),c=this._textAreaState.deduceEditorPosition(a),u=this._host.deduceModelPosition(c[0],c[1],c[2]),g=new m.L(h.lineNumber,h.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(g)}))}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeNativeTextAreaContent(e){!this._accessibilityService.isScreenReaderOptimized()&&"render"===e||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${e})`),this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};y.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,i),e.preventDefault(),e.clipboardData&&k.setTextData(e.clipboardData,t.text,t.html,i)}};S=v([b(4,f.j),b(5,_.rr)],S);const k={getTextData(e){const t=e.getData(u.K.text);let i=null;const n=e.getData("vscode-editor-data");if("string"===typeof n)try{i=JSON.parse(n),1!==i.version&&(i=null)}catch(s){}if(0===t.length&&null===i&&e.files.length>0){return[Array.prototype.slice.call(e.files,0).map((e=>e.name)).join("\n"),null]}return[t,i]},setTextData(e,t,i,n){e.setData(u.K.text,t),"string"===typeof i&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(n))}};class x extends c.jG{get ownerDocument(){return this._actual.ownerDocument}constructor(e){super(),this._actual=e,this.onKeyDown=this._register(new r.f(this._actual,"keydown")).event,this.onKeyUp=this._register(new r.f(this._actual,"keyup")).event,this.onCompositionStart=this._register(new r.f(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new r.f(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new r.f(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new r.f(this._actual,"beforeinput")).event,this.onInput=this._register(new r.f(this._actual,"input")).event,this.onCut=this._register(new r.f(this._actual,"cut")).event,this.onCopy=this._register(new r.f(this._actual,"copy")).event,this.onPaste=this._register(new r.f(this._actual,"paste")).event,this.onFocus=this._register(new r.f(this._actual,"focus")).event,this.onBlur=this._register(new r.f(this._actual,"blur")).event,this._onSyntheticTap=this._register(new h.vl),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown((()=>l.p.onKeyDown()))),this._register(this.onBeforeInput((()=>l.p.onBeforeInput()))),this._register(this.onInput((()=>l.p.onInput()))),this._register(this.onKeyUp((()=>l.p.onKeyUp()))),this._register(o.ko(this._actual,n.Tap,(()=>this._onSyntheticTap.fire())))}hasFocus(){const e=o.jG(this._actual);return e?e.activeElement===this._actual:!!this._actual.isConnected&&o.bq()===this._actual}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const n=this._actual;let r=null;const a=o.jG(n);r=a?a.activeElement:o.bq();const l=o.zk(r),d=r===n,h=n.selectionStart,c=n.selectionEnd;if(d&&h===t&&c===i)s.gm&&l.parent!==l&&n.focus();else{if(d)return this.setIgnoreSelectionChangeTime("setSelectionRange"),n.setSelectionRange(t,i),void(s.gm&&l.parent!==l&&n.focus());try{const e=o.zK(n);this.setIgnoreSelectionChangeTime("setSelectionRange"),n.focus(),n.setSelectionRange(t,i),o.wk(n,e)}catch(u){}}}}},69785:(e,t,i)=>{"use strict";i.d(t,{Al:()=>a,Hf:()=>o,_O:()=>r});var n=i(91508),s=i(36677);const o=!1;class r{constructor(e,t,i,n,s){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selection=n,this.newlineCountBeforeSelection=s}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e,t){const i=e.getValue(),n=e.getSelectionStart(),s=e.getSelectionEnd();let o;if(t){i.substring(0,n)===t.value.substring(0,t.selectionStart)&&(o=t.newlineCountBeforeSelection)}return new r(i,n,s,null,o)}collapseSelection(){return this.selectionStart===this.value.length?this:new r(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(e,t,i){o&&console.log(`writeToTextArea ${e}: ${this.toString()}`),t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){var t,i,n,s,o,r,a,l;if(e<=this.selectionStart){const n=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(null!==(i=null===(t=this.selection)||void 0===t?void 0:t.getStartPosition())&&void 0!==i?i:null,n,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(null!==(s=null===(n=this.selection)||void 0===n?void 0:n.getEndPosition())&&void 0!==s?s:null,t,1)}const d=this.value.substring(this.selectionStart,e);if(-1===d.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(null!==(r=null===(o=this.selection)||void 0===o?void 0:o.getStartPosition())&&void 0!==r?r:null,d,1);const h=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(null!==(l=null===(a=this.selection)||void 0===a?void 0:a.getEndPosition())&&void 0!==l?l:null,h,-1)}_finishDeduceEditorPosition(e,t,i){let n=0,s=-1;for(;-1!==(s=t.indexOf("\n",s+1));)n++;return[e,i*t.length,n]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};o&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`));const s=Math.min(n.Qp(e.value,t.value),e.selectionStart,t.selectionStart),r=Math.min(n.Vi(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd),a=e.value.substring(s,e.value.length-r),l=t.value.substring(s,t.value.length-r),d=e.selectionStart-s,h=e.selectionEnd-s,c=t.selectionStart-s,u=t.selectionEnd-s;if(o&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${d}, selectionEnd: ${h}`),console.log(`AFTER DIFFING CURRENT STATE: <${l}>, selectionStart: ${c}, selectionEnd: ${u}`)),c===u){const t=e.selectionStart-s;return o&&console.log(`REMOVE PREVIOUS: ${t} chars`),{text:l,replacePrevCharCnt:t,replaceNextCharCnt:0,positionDelta:0}}return{text:l,replacePrevCharCnt:h-d,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(o&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`)),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(n.Qp(e.value,t.value),e.selectionEnd),s=Math.min(n.Vi(e.value,t.value),e.value.length-e.selectionEnd),r=e.value.substring(i,e.value.length-s),a=t.value.substring(i,t.value.length-s),l=e.selectionStart-i,d=e.selectionEnd-i,h=t.selectionStart-i,c=t.selectionEnd-i;return o&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${r}>, selectionStart: ${l}, selectionEnd: ${d}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${h}, selectionEnd: ${c}`)),{text:a,replacePrevCharCnt:d,replaceNextCharCnt:r.length-d,positionDelta:c-a.length}}}r.EMPTY=new r("",0,0,null,void 0);class a{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,n=i+1,o=i+t;return new s.Q(n,1,o+1,1)}static fromEditorSelection(e,t,i,n){const o=500,l=a._getPageOfLine(t.startLineNumber,i),d=a._getRangeForPage(l,i),h=a._getPageOfLine(t.endLineNumber,i),c=a._getRangeForPage(h,i);let u=d.intersectRanges(new s.Q(1,1,t.startLineNumber,t.startColumn));if(n&&e.getValueLengthInRange(u,1)>o){const t=e.modifyPosition(u.getEndPosition(),-500);u=s.Q.fromPositions(t,u.getEndPosition())}const g=e.getValueInRange(u,1),p=e.getLineCount(),m=e.getLineMaxColumn(p);let f=c.intersectRanges(new s.Q(t.endLineNumber,t.endColumn,p,m));if(n&&e.getValueLengthInRange(f,1)>o){const t=e.modifyPosition(f.getStartPosition(),o);f=s.Q.fromPositions(f.getStartPosition(),t)}const _=e.getValueInRange(f,1);let v;if(l===h||l+1===h)v=e.getValueInRange(t,1);else{const i=d.intersectRanges(t),n=c.intersectRanges(t);v=e.getValueInRange(i,1)+String.fromCharCode(8230)+e.getValueInRange(n,1)}return n&&v.length>1e3&&(v=v.substring(0,o)+String.fromCharCode(8230)+v.substring(v.length-o,v.length)),new r(g+v+_,g.length,g.length+v.length,t,u.endLineNumber-u.startLineNumber)}}},36999:(e,t,i)=>{"use strict";i.d(t,{Yh:()=>E,QM:()=>S});var n=i(31629),s=i(60413),o=i(631),r=i(11007),a=i(31450),l=i(80301),d=i(32799),h=i(83069),c=i(36677);class u{static columnSelect(e,t,i,n,s,o){const r=Math.abs(s-i)+1,a=i>s,l=n>o,u=n<o,g=[];for(let p=0;p<r;p++){const s=i+(a?-p:p),r=e.columnFromVisibleColumn(t,s,n),m=e.columnFromVisibleColumn(t,s,o),f=e.visibleColumnFromColumn(t,new h.y(s,r)),_=e.visibleColumnFromColumn(t,new h.y(s,m));if(u){if(f>o)continue;if(_<n)continue}if(l){if(_>n)continue;if(f<o)continue}g.push(new d.mG(new c.Q(s,r,s,r),0,0,new h.y(s,m),0))}if(0===g.length)for(let p=0;p<r;p++){const e=i+(a?-p:p),n=t.getLineMaxColumn(e);g.push(new d.mG(new c.Q(e,n,e,n),0,0,new h.y(e,n),0))}return{viewStates:g,reversed:a,fromLineNumber:i,fromVisualColumn:n,toLineNumber:s,toVisualColumn:o}}static columnSelectLeft(e,t,i){let n=i.toViewVisualColumn;return n>0&&n--,u.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,n)}static columnSelectRight(e,t,i){let n=0;const s=Math.min(i.fromViewLineNumber,i.toViewLineNumber),o=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let a=s;a<=o;a++){const i=t.getLineMaxColumn(a),s=e.visibleColumnFromColumn(t,new h.y(a,i));n=Math.max(n,s)}let r=i.toViewVisualColumn;return r<n&&r++,this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,r)}static columnSelectUp(e,t,i,n){const s=n?e.pageSize:1,o=Math.max(1,i.toViewLineNumber-s);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,o,i.toViewVisualColumn)}static columnSelectDown(e,t,i,n){const s=n?e.pageSize:1,o=Math.min(t.getLineCount(),i.toViewLineNumber+s);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,o,i.toViewVisualColumn)}}var g=i(1226),p=i(50672),m=i(56441),f=i(60002),_=i(32848),v=i(59261),b=i(8597);class C extends a.DX{runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditorCommand(n,i||{})}}var y,w,S;!function(e){e.metadata={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage', 'editor'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!o.Gv(e))return!1;const t=e;return!!o.Kg(t.to)&&(!(!o.b0(t.by)&&!o.Kg(t.by))&&(!(!o.b0(t.value)&&!o.Et(t.value))&&!(!o.b0(t.revealCursor)&&!o.Lm(t.revealCursor))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"},e.parse=function(t){let i,n;switch(t.to){case e.RawDirection.Up:i=1;break;case e.RawDirection.Right:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.Left:i=4;break;default:return null}switch(t.by){case e.RawUnit.Line:n=1;break;case e.RawUnit.WrappedLine:n=2;break;case e.RawUnit.Page:n=3;break;case e.RawUnit.HalfPage:n=4;break;case e.RawUnit.Editor:n=5;break;case e.RawUnit.Column:n=6;break;default:n=2}return{direction:i,unit:n,value:Math.floor(t.value||1),revealCursor:!!t.revealCursor,select:!!t.select}}}(y||(y={})),function(e){e.metadata={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!o.Gv(e))return!1;const t=e;return!(!o.Et(t.lineNumber)&&!o.Kg(t.lineNumber))&&!(!o.b0(t.at)&&!o.Kg(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(w||(w={}));class k{constructor(e){e.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(l.T).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)})),e.addImplementation(1e3,"generic-dom-input-textarea",((e,t)=>{const i=(0,b.bq)();return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(i),!0)})),e.addImplementation(0,"generic-dom",((e,t)=>{const i=e.get(l.T).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))}))}_runEditorCommand(e,t,i){const n=this.runEditorCommand(e,t,i);return n||!0}}!function(e){class t extends C{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;e.model.pushStackElement();e.setCursorStates(t.source,3,[p.c.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&2!==t.revealType&&e.revealAllCursors(t.source,!0,!0)}}e.MoveTo=(0,a.E_)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,a.E_)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends C{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);null!==i&&(e.setCursorStates(t.source,3,i.viewStates.map((e=>d.MF.fromViewState(e)))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source))}}e.ColumnSelect=(0,a.E_)(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,n){if("undefined"===typeof n.position||"undefined"===typeof n.viewPosition||"undefined"===typeof n.mouseColumn)return null;const s=e.model.validatePosition(n.position),o=e.coordinatesConverter.validateViewPosition(new h.y(n.viewPosition.lineNumber,n.viewPosition.column),s),r=n.doColumnSelect?i.fromViewLineNumber:o.lineNumber,a=n.doColumnSelect?i.fromViewVisualColumn:n.mouseColumn-1;return u.columnSelect(e.cursorConfig,e,r,a,o.lineNumber,n.mouseColumn-1)}}),e.CursorColumnSelectLeft=(0,a.E_)(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=(0,a.E_)(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectRight(e.cursorConfig,e,i)}});class o extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=(0,a.E_)(new o({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,a.E_)(new o({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3595,linux:{primary:0}}}));class l extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=(0,a.E_)(new l({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,a.E_)(new l({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3596,linux:{primary:0}}}));class g extends C{constructor(){super({id:"cursorMove",precondition:void 0,metadata:p.S.metadata})}runCoreEditorCommand(e,t){const i=p.S.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,g._move(e,e.getCursorStates(),i)),e.revealAllCursors(t,!0)}static _move(e,t,i){const n=i.select,s=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return p.c.simpleMove(e,t,i.direction,n,s,i.unit);case 11:case 13:case 12:case 14:return p.c.viewportMove(e,t,i.direction,n,s);default:return null}}}e.CursorMoveImpl=g,e.CursorMove=(0,a.E_)(new g);class m extends C{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealAllCursors(t.source,!0)}}e.CursorLeft=(0,a.E_)(new m({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,a.E_)(new m({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1039}})),e.CursorRight=(0,a.E_)(new m({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,a.E_)(new m({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1041}})),e.CursorUp=(0,a.E_)(new m({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,a.E_)(new m({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,a.E_)(new m({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,a.E_)(new m({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1035}})),e.CursorDown=(0,a.E_)(new m({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,a.E_)(new m({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,a.E_)(new m({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,a.E_)(new m({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1036}})),e.CreateCursor=(0,a.E_)(new class extends C{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let i;i=t.wholeLine?p.c.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):p.c.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const n=e.getCursorStates();if(n.length>1){const s=i.modelState?i.modelState.position:null,o=i.viewState?i.viewState.position:null;for(let i=0,r=n.length;i<r;i++){const r=n[i];if((!s||r.modelState.selection.containsPosition(s))&&(!o||r.viewState.selection.containsPosition(o)))return n.splice(i,1),e.model.pushStackElement(),void e.setCursorStates(t.source,3,n)}}n.push(i),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}}),e.LastCursorMoveToSelect=(0,a.E_)(new class extends C{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),s=n.slice(0);s[i]=p.c.moveTo(e,n[i],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,s)}});class _ extends C{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorHome=(0,a.E_)(new _({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=(0,a.E_)(new _({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class v extends C{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e){const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i],s=n.modelState.position.lineNumber;t[i]=d.MF.fromModelState(n.modelState.move(this._inSelectionMode,s,1,0))}return t}}e.CursorLineStart=(0,a.E_)(new v({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=(0,a.E_)(new v({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:1311}}}));class b extends C{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealAllCursors(t.source,!0)}}e.CursorEnd=(0,a.E_)(new b({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:f.R.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},metadata:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:n.kg("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=(0,a.E_)(new b({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:f.R.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},metadata:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:n.kg("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class S extends C{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e,t){const i=[];for(let n=0,s=t.length;n<s;n++){const s=t[n],o=s.modelState.position.lineNumber,r=e.model.getLineMaxColumn(o);i[n]=d.MF.fromModelState(s.modelState.move(this._inSelectionMode,o,r,0))}return i}}e.CursorLineEnd=(0,a.E_)(new S({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=(0,a.E_)(new S({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:1315}}}));class x extends C{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorTop=(0,a.E_)(new x({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=(0,a.E_)(new x({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3086,mac:{primary:3088}}}));class L extends C{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorBottom=(0,a.E_)(new L({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=(0,a.E_)(new L({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3085,mac:{primary:3090}}}));class D extends C{constructor(){super({id:"editorScroll",precondition:void 0,metadata:y.metadata})}determineScrollMethod(e){return[6].includes(e.unit)&&[4,2].includes(e.direction)?this._runHorizontalEditorScroll.bind(this):[1,2,3,4,5,6].includes(e.unit)&&[1,3].includes(e.direction)?this._runVerticalEditorScroll.bind(this):null}runCoreEditorCommand(e,t){const i=y.parse(t);if(!i)return;const n=this.determineScrollMethod(i);n&&n(e,t.source,i)}_runVerticalEditorScroll(e,t,i){const n=this._computeDesiredScrollTop(e,i);if(i.revealCursor){const s=e.getCompletelyVisibleViewRangeAtScrollTop(n);e.setCursorStates(t,3,[p.c.findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),s,i.select)])}e.viewLayout.setScrollPosition({scrollTop:n},0)}_computeDesiredScrollTop(e,t){if(1===t.unit){const i=e.viewLayout.getFutureViewport(),n=e.getCompletelyVisibleViewRangeAtScrollTop(i.top),s=e.coordinatesConverter.convertViewRangeToModelRange(n);let o;o=1===t.direction?Math.max(1,s.startLineNumber-t.value):Math.min(e.model.getLineCount(),s.startLineNumber+t.value);const r=e.coordinatesConverter.convertModelPositionToViewPosition(new h.y(o,1));return e.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber)}if(5===t.unit){let i=0;return 3===t.direction&&(i=e.model.getLineCount()-e.cursorConfig.pageSize),e.viewLayout.getVerticalOffsetForLineNumber(i)}let i;i=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;const n=(1===t.direction?-1:1)*i;return e.viewLayout.getCurrentScrollTop()+n*e.cursorConfig.lineHeight}_runHorizontalEditorScroll(e,t,i){const n=this._computeDesiredScrollLeft(e,i);e.viewLayout.setScrollPosition({scrollLeft:n},0)}_computeDesiredScrollLeft(e,t){const i=(4===t.direction?-1:1)*t.value;return e.viewLayout.getCurrentScrollLeft()+i*e.cursorConfig.typicalHalfwidthCharacterWidth}}e.EditorScrollImpl=D,e.EditorScroll=(0,a.E_)(new D),e.ScrollLineUp=(0,a.E_)(new class extends C{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:y.RawDirection.Up,by:y.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageUp=(0,a.E_)(new class extends C{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:y.RawDirection.Up,by:y.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorTop=(0,a.E_)(new class extends C{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:y.RawDirection.Up,by:y.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLineDown=(0,a.E_)(new class extends C{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:y.RawDirection.Down,by:y.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageDown=(0,a.E_)(new class extends C{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:y.RawDirection.Down,by:y.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorBottom=(0,a.E_)(new class extends C{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:y.RawDirection.Down,by:y.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLeft=(0,a.E_)(new class extends C{constructor(){super({id:"scrollLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:y.RawDirection.Left,by:y.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollRight=(0,a.E_)(new class extends C{constructor(){super({id:"scrollRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:y.RawDirection.Right,by:y.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}});class E extends C{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),2!==t.revealType&&e.revealAllCursors(t.source,!0,!0))}}e.WordSelect=(0,a.E_)(new E({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=(0,a.E_)(new E({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=(0,a.E_)(new class extends C{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),s=n.slice(0),o=n[i];s[i]=p.c.word(e,o,o.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,s)}});class N extends C{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),2!==t.revealType&&e.revealAllCursors(t.source,!1,!0))}}e.LineSelect=(0,a.E_)(new N({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=(0,a.E_)(new N({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class T extends C{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),s=n.slice(0);s[i]=p.c.line(e,n[i],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,s)}}e.LastCursorLineSelect=(0,a.E_)(new T({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=(0,a.E_)(new T({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.CancelSelection=(0,a.E_)(new class extends C{constructor(){super({id:"cancelSelection",precondition:f.R.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.cancelSelection(e,e.getPrimaryCursorState())]),e.revealAllCursors(t.source,!0)}}),e.RemoveSecondaryCursors=(0,a.E_)(new class extends C{constructor(){super({id:"removeSecondaryCursors",precondition:f.R.hasMultipleSelections,kbOpts:{weight:1,kbExpr:f.R.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealAllCursors(t.source,!0),(0,r.h5)(n.kg("removedCursor","Removed secondary cursors"))}}),e.RevealLine=(0,a.E_)(new class extends C{constructor(){super({id:"revealLine",precondition:void 0,metadata:w.metadata})}runCoreEditorCommand(e,t){const i=t,n=i.lineNumber||0;let s="number"===typeof n?n+1:parseInt(n)+1;s<1&&(s=1);const o=e.model.getLineCount();s>o&&(s=o);const r=new c.Q(s,1,s,e.model.getLineMaxColumn(s));let a=0;if(i.at)switch(i.at){case w.RawAtArgument.Top:a=3;break;case w.RawAtArgument.Center:a=1;break;case w.RawAtArgument.Bottom:a=4}const l=e.coordinatesConverter.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends k{constructor(){super(a.tc)}runDOMCommand(e){s.gm&&(e.focus(),e.select()),e.ownerDocument.execCommand("selectAll")}runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditorCommand(n,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[p.c.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=(0,a.E_)(new class extends C{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[d.MF.fromModelSelection(t.selection)]))}})}(S||(S={}));const x=_.M$.and(f.R.textInputFocus,f.R.columnSelection);function L(e,t){v.f.registerKeybindingRule({id:e,primary:t,when:x,weight:1})}function D(e){return e.register(),e}var E;L(S.CursorColumnSelectLeft.id,1039),L(S.CursorColumnSelectRight.id,1041),L(S.CursorColumnSelectUp.id,1040),L(S.CursorColumnSelectPageUp.id,1035),L(S.CursorColumnSelectDown.id,1042),L(S.CursorColumnSelectPageDown.id,1036),function(e){class t extends a.DX{runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditingCommand(t,n,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=(0,a.E_)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.TK.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection))))}}),e.Outdent=(0,a.E_)(new class extends t{constructor(){super({id:"outdent",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:_.M$.and(f.R.editorTextFocus,f.R.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.TK.outdent(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.Tab=(0,a.E_)(new class extends t{constructor(){super({id:"tab",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:_.M$.and(f.R.editorTextFocus,f.R.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.TK.tab(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.DeleteLeft=(0,a.E_)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[n,s]=g.g.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)),t.getCursorAutoClosedCharacters());n&&e.pushUndoStop(),e.executeCommands(this.id,s),t.setPrevEditOperationType(2)}}),e.DeleteRight=(0,a.E_)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[n,s]=g.g.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)));n&&e.pushUndoStop(),e.executeCommands(this.id,s),t.setPrevEditOperationType(3)}}),e.Undo=new class extends k{constructor(){super(a.aU)}runDOMCommand(e){e.ownerDocument.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(91))return t.getModel().undo()}},e.Redo=new class extends k{constructor(){super(a.ih)}runDOMCommand(e){e.ownerDocument.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(91))return t.getModel().redo()}}}(E||(E={}));class N extends a.uB{constructor(e,t,i){super({id:e,precondition:void 0,metadata:i}),this._handlerId=t}runCommand(e,t){const i=e.get(l.T).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function T(e,t){D(new N("default:"+e,e)),D(new N(e,e,t))}T("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),T("replacePreviousChar"),T("compositionType"),T("compositionStart"),T("compositionEnd"),T("paste"),T("cut")},85411:(e,t,i)=>{"use strict";i.d(t,{l:()=>c,q:()=>l});var n=i(42731),s=i(17799),o=i(44320),r=i(79400),a=i(61292);function l(e){const t=new s.Vq;for(const i of e.items){const e=i.type;if("string"===i.kind){const n=new Promise((e=>i.getAsString(e)));t.append(e,(0,s.gf)(n))}else if("file"===i.kind){const n=i.getAsFile();n&&t.append(e,d(n))}}return t}function d(e){const t=e.path?r.r.parse(e.path):void 0;return(0,s.VX)(e.name,t,(async()=>new Uint8Array(await e.arrayBuffer())))}const h=Object.freeze([a.sV.EDITORS,a.sV.FILES,n.t.RESOURCES,n.t.INTERNAL_URI_LIST]);function c(e,t=!1){const i=l(e),a=i.get(n.t.INTERNAL_URI_LIST);if(a)i.replace(o.K.uriList,a);else if(t||!i.has(o.K.uriList)){const t=[];for(const i of e.items){const e=i.getAsFile();if(e){const i=e.path;try{i?t.push(r.r.file(i).toString()):t.push(r.r.parse(e.name,!0).toString())}catch(d){}}}t.length&&i.replace(o.K.uriList,(0,s.gf)(s.jt.create(t)))}for(const n of h)i.delete(n);return i}},34326:(e,t,i)=>{"use strict";i.d(t,{Np:()=>o,jA:()=>r,z9:()=>s});var n=i(23452);function s(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===n._.ICodeEditor}function o(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===n._.IDiffEditor}function r(e){return s(e)?e:o(e)?e.getModifiedEditor():function(e){return!!e&&"object"===typeof e&&"function"===typeof e.onDidChangeActiveEditor}(e)&&s(e.activeCodeEditor)?e.activeCodeEditor:null}},37734:(e,t,i)=>{"use strict";i.d(t,{$z:()=>f,BA:()=>v,DW:()=>_,Hh:()=>h,Qn:()=>b,dO:()=>m,i_:()=>p,nz:()=>d,wt:()=>g});var n=i(8597),s=i(34072),o=i(47358),r=i(90766),a=i(5662),l=i(85845);class d{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(e){return new h(this.x-e.scrollX,this.y-e.scrollY)}}class h{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(e){return new d(this.clientX+e.scrollX,this.clientY+e.scrollY)}}class c{constructor(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n,this._editorPagePositionBrand=void 0}}class u{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function g(e){const t=n.BK(e);return new c(t.left,t.top,t.width,t.height)}function p(e,t,i){const n=t.width/e.offsetWidth,s=t.height/e.offsetHeight,o=(i.x-t.x)/n,r=(i.y-t.y)/s;return new u(o,r)}class m extends o.P{constructor(e,t,i){super(n.zk(i),e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new d(this.posx,this.posy),this.editorPos=g(i),this.relativePos=p(i,this.editorPos,this.pos)}}class f{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return n.ko(e,"contextmenu",(e=>{t(this._create(e))}))}onMouseUp(e,t){return n.ko(e,"mouseup",(e=>{t(this._create(e))}))}onMouseDown(e,t){return n.ko(e,n.Bx.MOUSE_DOWN,(e=>{t(this._create(e))}))}onPointerDown(e,t){return n.ko(e,n.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onMouseLeave(e,t){return n.ko(e,n.Bx.MOUSE_LEAVE,(e=>{t(this._create(e))}))}onMouseMove(e,t){return n.ko(e,"mousemove",(e=>t(this._create(e))))}}class _{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return n.ko(e,"pointerup",(e=>{t(this._create(e))}))}onPointerDown(e,t){return n.ko(e,n.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onPointerLeave(e,t){return n.ko(e,n.Bx.POINTER_LEAVE,(e=>{t(this._create(e))}))}onPointerMove(e,t){return n.ko(e,"pointermove",(e=>t(this._create(e))))}}class v extends a.jG{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new s._),this._keydownListener=null}startMonitoring(e,t,i,s,o){this._keydownListener=n.b2(e.ownerDocument,"keydown",(e=>{e.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,(e=>{s(new m(e,!0,this._editorViewDomNode))}),(e=>{this._keydownListener.dispose(),o(e)}))}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class b{constructor(e){this._editor=e,this._instanceId=++b._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new r.uC((()=>this.garbageCollect()),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let i=this._rules.get(t);if(!i){const s=this._counter++;i=new C(t,`dyn-rule-${this._instanceId}-${s}`,n.Cl(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}}b._idPool=0;class C{constructor(e,t,i,s){this.key=e,this.className=t,this.properties=s,this._referenceCount=0,this._styleElementDisposables=new a.Cm,this._styleElement=n.li(i,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(const n in t){const e=t[n];let s;s="object"===typeof e?(0,l.GuP)(e.id):e;i+=`\n\t${y(n)}: ${s};`}return i+="\n}",i}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function y(e){return e.replace(/(^[A-Z])/,(([e])=>e.toLowerCase())).replace(/([A-Z])/g,(([e])=>`-${e.toLowerCase()}`))}},31450:(e,t,i)=>{"use strict";i.d(t,{DX:()=>S,E_:()=>E,Fl:()=>N,HW:()=>M,PF:()=>x,aU:()=>O,dS:()=>n,fE:()=>y,gW:()=>T,ih:()=>P,ke:()=>D,ks:()=>k,qO:()=>L,tc:()=>F,uB:()=>C,xX:()=>I});var n,s=i(31629),o=i(79400),r=i(80301),a=i(83069),l=i(23750),d=i(18938),h=i(27195),c=i(50091),u=i(32848),g=i(63591),p=i(59261),m=i(46359),f=i(90651),_=i(631),v=i(18801),b=i(8597);class C{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?u.M$.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};p.f.registerKeybindingRule(i)}}c.w.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){h.ZG.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class y extends C{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,n){return this._implementations.push({priority:e,name:t,implementation:i,when:n}),this._implementations.sort(((e,t)=>t.priority-e.priority)),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e].implementation===i)return void this._implementations.splice(e,1)}}}runCommand(e,t){const i=e.get(v.rr),n=e.get(u.fN);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const s of this._implementations){if(s.when){const e=n.getContext((0,b.bq)());if(!s.when.evaluate(e))continue}const o=s.implementation(e,t);if(o){if(i.trace(`Command '${this.id}' was handled by '${s.name}'.`),"boolean"===typeof o)return;return o}}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class w extends C{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class S extends C{static bindToContribution(e){return class extends S{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,i,n){const s=e(i);s&&this._callback(s,n)}}}static runEditorCommand(e,t,i,n){const s=e.get(r.T),o=s.getFocusedCodeEditor()||s.getActiveCodeEditor();if(o)return o.invokeWithinContext((e=>{if(e.get(u.fN).contextMatchesRules(null!==i&&void 0!==i?i:void 0))return n(e,o,t)}))}runCommand(e,t){return S.runEditorCommand(e,t,this.precondition,((e,t,i)=>this.runEditorCommand(e,t,i)))}}class k extends S{static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=h.D8.EditorContext),t.title||(t.title=e.label),t.when=u.M$.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}constructor(e){super(k.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(f.k).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class x extends k{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort(((e,t)=>t[0]-e[0])),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e][1]===t)return void this._implementations.splice(e,1)}}}run(e,t,i){for(const n of this._implementations){const s=n[1](e,t,i);if(s){if("boolean"===typeof s)return;return s}}}}class L extends h.L{run(e,...t){const i=e.get(r.T),n=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(n)return n.invokeWithinContext((e=>{var i,s;const o=e.get(u.fN),r=e.get(v.rr);if(o.contextMatchesRules(null!==(i=this.desc.precondition)&&void 0!==i?i:void 0))return this.runEditorCommand(e,n,...t);r.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,null===(s=this.desc.precondition)||void 0===s?void 0:s.serialize())}))}}function D(e,t){c.w.registerCommand(e,(function(e,...i){const n=e.get(g._Y),[s,r]=i;(0,_.j)(o.r.isUri(s)),(0,_.j)(a.y.isIPosition(r));const h=e.get(l.S).getModel(s);if(h){const e=a.y.lift(r);return n.invokeFunction(t,h,e,...i.slice(2))}return e.get(d.b).createModelReference(s).then((e=>new Promise(((s,o)=>{try{s(n.invokeFunction(t,e.object.textEditorModel,a.y.lift(r),i.slice(2)))}catch(l){o(l)}})).finally((()=>{e.dispose()}))))}))}function E(e){return A.INSTANCE.registerEditorCommand(e),e}function N(e){const t=new e;return A.INSTANCE.registerEditorAction(t),t}function T(e){return A.INSTANCE.registerEditorAction(e),e}function I(e){A.INSTANCE.registerEditorAction(e)}function M(e,t,i){A.INSTANCE.registerEditorContribution(e,t,i)}!function(e){e.getEditorCommand=function(e){return A.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return A.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return A.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return A.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return A.INSTANCE.getDiffEditorContributions()}}(n||(n={}));class A{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function R(e){return e.register(),e}A.INSTANCE=new A,m.O.add("editor.contributions",A.INSTANCE);const O=R(new y({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:h.D8.MenubarEditMenu,group:"1_do",title:s.kg({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:h.D8.CommandPalette,group:"",title:s.kg("undo","Undo"),order:1}]}));R(new w(O,{id:"default:undo",precondition:void 0}));const P=R(new y({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:h.D8.MenubarEditMenu,group:"1_do",title:s.kg({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:h.D8.CommandPalette,group:"",title:s.kg("redo","Redo"),order:1}]}));R(new w(P,{id:"default:redo",precondition:void 0}));const F=R(new y({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:h.D8.MenubarSelectionMenu,group:"1_basic",title:s.kg({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:h.D8.CommandPalette,group:"",title:s.kg("selectAll","Select All"),order:1}]}))},80537:(e,t,i)=>{"use strict";i.d(t,{cw:()=>l,jN:()=>a,nu:()=>r});var n=i(63591),s=i(79400),o=i(631);const r=(0,n.u1)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map((e=>{if(l.is(e))return l.lift(e);if(d.is(e))return d.lift(e);throw new Error("Unsupported edit")}))}}class l extends a{static is(e){return e instanceof l||(0,o.Gv)(e)&&s.r.isUri(e.resource)&&(0,o.Gv)(e.textEdit)}static lift(e){return e instanceof l?e:new l(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,t,i=void 0,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}}class d extends a{static is(e){return e instanceof d||(0,o.Gv)(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof d?e:new d(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t,i={},n){super(n),this.oldResource=e,this.newResource=t,this.options=i}}},80301:(e,t,i)=>{"use strict";i.d(t,{T:()=>n});const n=(0,i(63591).u1)("codeEditorService")},14011:(e,t,i)=>{"use strict";i.d(t,{Z6:()=>Ve,Bc:()=>Re});var n=i(90766),s=i(5662),o=i(64383),r=i(41234),a=i(10146),l=i(98067),d=i(91508);const h="$initialize";let c=!1;function u(e){l.HZ&&(c||(c=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class p{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class m{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class f{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class _{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class v{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const i=String(++this._lastSentReq);return new Promise(((n,s)=>{this._pendingReplies[i]={resolve:n,reject:s},this._send(new g(this._workerId,i,e,t))}))}listen(e,t){let i=null;const n=new r.vl({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new m(this._workerId,i,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new _(this._workerId,i)),i=null}});return n.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;return e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),void t.reject(i)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new p(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,o.cU)(e.detail)),this._send(new p(this._workerId,t,void 0,(0,o.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new f(this._workerId,t,e))}));this._pendingEvents.set(t,i)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let i=0;i<e.args.length;i++)e.args[i]instanceof ArrayBuffer&&t.push(e.args[i]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class b extends s.jG{constructor(e,t,i){super();let n=null;this._worker=this._register(e.create("vs/base/common/worker/simpleWorker",(e=>{this._protocol.handleMessage(e)}),(e=>{null===n||void 0===n||n(e)}))),this._protocol=new v({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t)=>{if("function"!==typeof i[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(n){return Promise.reject(n)}},handleEvent:(e,t)=>{if(y(e)){const n=i[e].call(i,t);if("function"!==typeof n)throw new Error(`Missing dynamic event ${e} on main thread host.`);return n}if(C(e)){const t=i[e];if("function"!==typeof t)throw new Error(`Missing event ${e} on main thread host.`);return t}throw new Error(`Malformed event name ${e}`)}}),this._protocol.setWorkerId(this._worker.getId());let s=null;const o=globalThis.require;"undefined"!==typeof o&&"function"===typeof o.getConfig?s=o.getConfig():"undefined"!==typeof globalThis.requirejs&&(s=globalThis.requirejs.s.contexts._.config);const r=(0,a.V0)(i);this._onModuleLoaded=this._protocol.sendMessage(h,[this._worker.getId(),JSON.parse(JSON.stringify(s)),t,r]);const l=(e,t)=>this._request(e,t),d=(e,t)=>this._protocol.listen(e,t);this._lazyProxy=new Promise(((e,i)=>{n=i,this._onModuleLoaded.then((t=>{e(w(t,l,d))}),(e=>{i(e),this._onError("Worker failed to load "+t,e)}))}))}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise(((i,n)=>{this._onModuleLoaded.then((()=>{this._protocol.sendMessage(e,t).then(i,n)}),n)}))}_onError(e,t){console.error(e),console.info(t)}}function C(e){return"o"===e[0]&&"n"===e[1]&&d.Wv(e.charCodeAt(2))}function y(e){return/^onDynamic/.test(e)&&d.Wv(e.charCodeAt(9))}function w(e,t,i){const n=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},s=e=>function(t){return i(e,t)},o={};for(const r of e)y(r)?o[r]=s(r):C(r)?o[r]=i(r,void 0):o[r]=n(r);return o}const S=(0,i(80789).H)("defaultWorkerFactory",{createScriptURL:e=>e});class k extends s.jG{constructor(e,t,i,n,o){super(),this.id=t,this.label=i;const r=function(e){const t=globalThis.MonacoEnvironment;if(t){if("function"===typeof t.getWorker)return t.getWorker("workerMain.js",e);if("function"===typeof t.getWorkerUrl){const i=t.getWorkerUrl("workerMain.js",e);return new Worker(S?S.createScriptURL(i):i,{name:e})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}(i);"function"===typeof r.then?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then((e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=o,"function"===typeof e.addEventListener&&e.addEventListener("error",o)})),this._register((0,s.s)((()=>{var e;null===(e=this.worker)||void 0===e||e.then((e=>{e.onmessage=null,e.onmessageerror=null,e.removeEventListener("error",o),e.terminate()})),this.worker=null})))}getId(){return this.id}postMessage(e,t){var i;null===(i=this.worker)||void 0===i||i.then((i=>{try{i.postMessage(e,t)}catch(n){(0,o.dz)(n),(0,o.dz)(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:n}))}}))}}class x{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){const n=++x.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new k(e,n,this._label||"anonymous"+n,t,(e=>{u(e),this._webWorkerFailedBeforeError=e,i(e)}))}}x.LAST_WORKER_ID=0;var L=i(36677),D=i(17469),E=i(83993),N=i(79400),T=i(83069),I=i(27414);class M{constructor(e,t,i,n){this._uri=e,this._lines=t,this._eol=i,this._versionId=n,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const i of t)this._acceptDeleteRange(i.range),this._acceptInsertText(new T.y(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let n=0;n<t;n++)i[n]=this._lines[n].length+e;this._lineStarts=new I.N(i)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const i=(0,d.uz)(t);if(1===i.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));i[i.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]);const n=new Uint32Array(i.length-1);for(let s=1;s<i.length;s++)this._lines.splice(e.lineNumber+s-1,0,i[s]),n[s-1]=i[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,n)}}var A=i(26486),R=i(60534);class O{constructor(e,t,i){const n=new Uint8Array(e*t);for(let s=0,o=e*t;s<o;s++)n[s]=i;this._data=n,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,i){this._data[e*this.cols+t]=i}}class P{constructor(e){let t=0,i=0;for(let s=0,o=e.length;s<o;s++){const[n,o,r]=e[s];o>t&&(t=o),n>i&&(i=n),r>i&&(i=r)}t++,i++;const n=new O(i,t,0);for(let s=0,o=e.length;s<o;s++){const[t,i,o]=e[s];n.set(t,i,o)}this._states=n,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let F=null;let B=null;class W{static _createLink(e,t,i,n,s){let o=s-1;do{const i=t.charCodeAt(o);if(2!==e.get(i))break;o--}while(o>n);if(n>0){const e=t.charCodeAt(n-1),i=t.charCodeAt(o);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&o--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:o+2},url:t.substring(n,o+1)}}static computeLinks(e,t=function(){return null===F&&(F=new P([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),F}()){const i=function(){if(null===B){B=new R.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let i=0;i<e.length;i++)B.set(e.charCodeAt(i),1);const t=".,;:";for(let i=0;i<t.length;i++)B.set(t.charCodeAt(i),2)}return B}(),n=[];for(let s=1,o=e.getLineCount();s<=o;s++){const o=e.getLineContent(s),r=o.length;let a=0,l=0,d=0,h=1,c=!1,u=!1,g=!1,p=!1;for(;a<r;){let e=!1;const r=o.charCodeAt(a);if(13===h){let t;switch(r){case 40:c=!0,t=0;break;case 41:t=c?0:1;break;case 91:g=!0,u=!0,t=0;break;case 93:g=!1,t=u?0:1;break;case 123:p=!0,t=0;break;case 125:t=p?0:1;break;case 39:case 34:case 96:t=d===r?1:39===d||34===d||96===d?0:1;break;case 42:t=42===d?1:0;break;case 124:t=124===d?1:0;break;case 32:t=g?0:1;break;default:t=i.get(r)}1===t&&(n.push(W._createLink(i,o,s,l,a)),e=!0)}else if(12===h){let t;91===r?(u=!0,t=0):t=i.get(r),1===t?e=!0:h=13}else h=t.nextState(h,r),0===h&&(e=!0);e&&(h=1,c=!1,u=!1,p=!1,l=a+1,d=r),a++}13===h&&n.push(W._createLink(i,o,s,l,r))}return n}}class V{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,i,n,s){if(e&&t){const i=this.doNavigateValueSet(t,s);if(i)return{range:e,value:i}}if(i&&n){const e=this.doNavigateValueSet(n,s);if(e)return{range:i,value:e}}return null}doNavigateValueSet(e,t){const i=this.numberReplace(e,t);return null!==i?i:this.textReplace(e,t)}numberReplace(e,t){const i=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let n=Number(e);const s=parseFloat(e);return isNaN(n)||isNaN(s)||n!==s?null:0!==n||t?(n=Math.floor(n*i),n+=t?i:-i,String(n/i)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,i){let n=null;for(let s=0,o=e.length;null===n&&s<o;s++)n=this.valueSetReplace(e[s],t,i);return n}valueSetReplace(e,t,i){let n=e.indexOf(t);return n>=0?(n+=i?1:-1,n<0?n=e.length-1:n%=e.length,e[n]):null}}V.INSTANCE=new V;var H=i(73848),z=i(78381),j=i(74855),U=i(41845),K=i(87723),G=i(66782),$=i(86571);class q{computeDiff(e,t,i){var n;const s=new ee(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let r=null;for(const a of s.changes){let e,t;e=0===a.originalEndLineNumber?new $.M(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new $.M(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new $.M(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new $.M(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let i=new K.wm(e,t,null===(n=a.charChanges)||void 0===n?void 0:n.map((e=>new K.q6(new L.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new L.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));r&&(r.modified.endLineNumberExclusive!==i.modified.startLineNumber&&r.original.endLineNumberExclusive!==i.original.startLineNumber||(i=new K.wm(r.original.join(i.original),r.modified.join(i.modified),r.innerChanges&&i.innerChanges?r.innerChanges.concat(i.innerChanges):void 0),o.pop())),o.push(i),r=i}return(0,G.Ft)((()=>(0,G.Xo)(o,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new U.p(o,[],s.quitEarly)}}function Q(e,t,i,n){return new E.uP(e,t,i).ComputeDiff(n)}class Y{constructor(e){const t=[],i=[];for(let n=0,s=e.length;n<s;n++)t[n]=te(e[n],1),i[n]=ie(e[n],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){const e=[];for(let t=0,i=this.lines.length;t<i;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,i){const n=[],s=[],o=[];let r=0;for(let a=t;a<=i;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,d=e?this._endColumns[a]:t.length+1;for(let e=l;e<d;e++)n[r]=t.charCodeAt(e-1),s[r]=a+1,o[r]=e,r++;!e&&a<i&&(n[r]=10,s[r]=a+1,o[r]=t.length+1,r++)}return new Z(n,s,o)}}class Z{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class X{constructor(e,t,i,n,s,o,r,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=n,this.modifiedStartLineNumber=s,this.modifiedStartColumn=o,this.modifiedEndLineNumber=r,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){const n=t.getStartLineNumber(e.originalStart),s=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),r=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),l=i.getStartColumn(e.modifiedStart),d=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new X(n,s,o,r,a,l,d,h)}}class J{constructor(e,t,i,n,s){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=n,this.charChanges=s}static createFromDiffResult(e,t,i,n,s,o,r){let a,l,d,h,c;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,l=0):(a=i.getStartLineNumber(t.originalStart),l=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(d=n.getStartLineNumber(t.modifiedStart)-1,h=0):(d=n.getStartLineNumber(t.modifiedStart),h=n.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&s()){const o=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(o.getElements().length>0&&a.getElements().length>0){let e=Q(o,a,s,!0).changes;r&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let i=t[0];for(let n=1,s=e.length;n<s;n++){const s=e[n],o=s.originalStart-(i.originalStart+i.originalLength),r=s.modifiedStart-(i.modifiedStart+i.modifiedLength);Math.min(o,r)<3?(i.originalLength=s.originalStart+s.originalLength-i.originalStart,i.modifiedLength=s.modifiedStart+s.modifiedLength-i.modifiedStart):(t.push(s),i=s)}return t}(e)),c=[];for(let t=0,i=e.length;t<i;t++)c.push(X.createFromDiffChange(e[t],o,a))}}return new J(a,l,d,h,c)}}class ee{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new Y(e),this.modified=new Y(t),this.continueLineDiff=ne(i.maxComputationTime),this.continueCharDiff=ne(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=Q(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let i=0,n=t.length;i<n;i++)e.push(J.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[i],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:e}}const n=[];let s=0,o=0;for(let r=-1,a=t.length;r<a;r++){const e=r+1<a?t[r+1]:null,i=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;s<i&&o<l;){const e=this.originalLines[s],t=this.modifiedLines[o];if(e!==t){{let i=te(e,1),r=te(t,1);for(;i>1&&r>1;){if(e.charCodeAt(i-2)!==t.charCodeAt(r-2))break;i--,r--}(i>1||r>1)&&this._pushTrimWhitespaceCharChange(n,s+1,1,i,o+1,1,r)}{let i=ie(e,1),r=ie(t,1);const a=e.length+1,l=t.length+1;for(;i<a&&r<l;){if(e.charCodeAt(i-1)!==e.charCodeAt(r-1))break;i++,r++}(i<a||r<l)&&this._pushTrimWhitespaceCharChange(n,s+1,i,a,o+1,r,l)}}s++,o++}e&&(n.push(J.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=e.originalLength,o+=e.modifiedLength)}return{quitEarly:i,changes:n}}_pushTrimWhitespaceCharChange(e,t,i,n,s,o,r){if(this._mergeTrimWhitespaceCharChange(e,t,i,n,s,o,r))return;let a;this.shouldComputeCharChanges&&(a=[new X(t,i,t,n,s,o,s,r)]),e.push(new J(t,t,s,s,a))}_mergeTrimWhitespaceCharChange(e,t,i,n,s,o,r){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new X(t,i,t,n,s,o,s,r)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===s&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new X(t,i,t,n,s,o,s,r)),!0))}}function te(e,t){const i=d.HG(e);return-1===i?t:i+1}function ie(e,t){const i=d.lT(e);return-1===i?t:i+2}function ne(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var se=i(26746);const oe=()=>new q,re=()=>new se.D8;var ae=i(47661);function le(e){const t=[];for(const i of e){const e=Number(i);(e||0===e&&""!==i.replace(/\s/g,""))&&t.push(e)}return t}function de(e,t,i,n){return{red:e/255,blue:i/255,green:t/255,alpha:n}}function he(e,t){const i=t.index,n=t[0].length;if(!i)return;const s=e.positionAt(i);return{startLineNumber:s.lineNumber,startColumn:s.column,endLineNumber:s.lineNumber,endColumn:s.column+n}}function ce(e,t){if(!e)return;const i=ae.Q1.Format.CSS.parseHex(t);return i?{range:e,color:de(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}:void 0}function ue(e,t,i){if(!e||1!==t.length)return;const n=le(t[0].values());return{range:e,color:de(n[0],n[1],n[2],i?n[3]:1)}}function ge(e,t,i){if(!e||1!==t.length)return;const n=le(t[0].values()),s=new ae.Q1(new ae.hB(n[0],n[1]/100,n[2]/100,i?n[3]:1));return{range:e,color:de(s.rgba.r,s.rgba.g,s.rgba.b,s.rgba.a)}}function pe(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function me(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],i=pe(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(const n of i){const i=n.filter((e=>void 0!==e)),s=i[1],o=i[2];if(!o)continue;let r;if("rgb"===s){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;r=ue(he(e,n),pe(o,t),!1)}else if("rgba"===s){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;r=ue(he(e,n),pe(o,t),!0)}else if("hsl"===s){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;r=ge(he(e,n),pe(o,t),!1)}else if("hsla"===s){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;r=ge(he(e,n),pe(o,t),!0)}else"#"===s&&(r=ce(he(e,n),s+o));r&&t.push(r)}return t}(e):[]}const fe=/\bMARK:\s*(.*)$/d,_e=/^-+|-+$/g;function ve(e,t){var i;let n=[];if(t.findRegionSectionHeaders&&(null===(i=t.foldingRules)||void 0===i?void 0:i.markers)){const i=function(e,t){const i=[],n=e.getLineCount();for(let s=1;s<=n;s++){const n=e.getLineContent(s),o=n.match(t.foldingRules.markers.start);if(o){const e={startLineNumber:s,startColumn:o[0].length+1,endLineNumber:s,endColumn:n.length+1};if(e.endColumn>e.startColumn){const t={range:e,...Ce(n.substring(o[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&i.push(t)}}}return i}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],i=e.getLineCount();for(let n=1;n<=i;n++){be(e.getLineContent(n),n,t)}return t}(e);n=n.concat(t)}return n}function be(e,t,i){fe.lastIndex=0;const n=fe.exec(e);if(n){const e={startLineNumber:t,startColumn:n.indices[1][0]+1,endLineNumber:t,endColumn:n.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...Ce(n[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&i.push(t)}}}function Ce(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(_e,""),hasSeparatorLine:t}}class ye extends M{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let i=0;i<this._lines.length;i++){const n=this._lines[i],s=this.offsetAt(new T.y(i+1,1)),o=n.matchAll(e);for(const e of o)(e.index||0===e.index)&&(e.index=e.index+s),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const i=(0,A.Th)(e.column,(0,A.Io)(t),this._lines[e.lineNumber-1],0);return i?new L.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const t=this._lines,i=this._wordenize.bind(this);let n=0,s="",o=0,r=[];return{*[Symbol.iterator](){for(;;)if(o<r.length){const e=s.substring(r[o].start,r[o].end);o+=1,yield e}else{if(!(n<t.length))break;s=t[n],r=i(s,e),o=0,n+=1}}}}getLineWords(e,t){const i=this._lines[e-1],n=this._wordenize(i,t),s=[];for(const o of n)s.push({word:i.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return s}_wordenize(e,t){const i=[];let n;for(t.lastIndex=0;(n=t.exec(e))&&0!==n[0].length;)i.push({start:n.index,end:n.index+n[0].length});return i}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,i=e.startLineNumber-1,n=e.endLineNumber-1,s=[];s.push(this._lines[i].substring(e.startColumn-1));for(let o=i+1;o<n;o++)s.push(this._lines[o]);return s.push(this._lines[n].substring(0,e.endColumn-1)),s.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),i=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,i)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),i=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||i.lineNumber!==e.endLineNumber||i.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}:e}_validatePosition(e){if(!T.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:i}=e,n=!1;if(t<1)t=1,i=1,n=!0;else if(t>this._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{const e=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>e&&(i=e,n=!0)}return n?{lineNumber:t,column:i}:e}}class we{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new ye(N.r.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,t,i){const n=this._getModel(e);return n?j.P.computeUnicodeHighlights(n,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,t){const i=this._getModel(e);return i?ve(i,t):[]}async computeDiff(e,t,i,n){const s=this._getModel(e),o=this._getModel(t);if(!s||!o)return null;return we.computeDiff(s,o,i,n)}static computeDiff(e,t,i,n){const s="advanced"===n?re():oe(),o=e.getLinesContent(),r=t.getLinesContent(),a=s.computeDiff(o,r,i);function l(e){return e.map((e=>{var t;return[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]}))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const i=e.getLineCount();if(i!==t.getLineCount())return!1;for(let n=1;n<=i;n++){if(e.getLineContent(n)!==t.getLineContent(n))return!1}return!0}async computeMoreMinimalEdits(e,t,i){const n=this._getModel(e);if(!n)return t;const s=[];let o;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return L.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let r=0;for(let a=1;a<t.length;a++)L.Q.getEndPosition(t[r].range).equals(L.Q.getStartPosition(t[a].range))?(t[r].range=L.Q.fromPositions(L.Q.getStartPosition(t[r].range),L.Q.getEndPosition(t[a].range)),t[r].text+=t[a].text):(r++,t[r]=t[a]);t.length=r+1;for(let{range:a,text:l,eol:d}of t){if("number"===typeof d&&(o=d),L.Q.isEmpty(a)&&!l)continue;const e=n.getValueInRange(a);if(l=l.replace(/\r\n|\n|\r/g,n.eol),e===l)continue;if(Math.max(l.length,e.length)>we._diffLimit){s.push({range:a,text:l});continue}const t=(0,E.F1)(e,l,i),r=n.offsetAt(L.Q.lift(a).getStartPosition());for(const i of t){const e=n.positionAt(r+i.originalStart),t=n.positionAt(r+i.originalStart+i.originalLength),o={text:l.substr(i.modifiedStart,i.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};n.getValueInRange(o.range)!==o.text&&s.push(o)}}return"number"===typeof o&&s.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?W.computeLinks(e):[]}(t):null}async computeDefaultDocumentColors(e){const t=this._getModel(e);return t?me(t):null}async textualSuggest(e,t,i,n){const s=new z.W,o=new RegExp(i,n),r=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const i of e.words(o))if(i!==t&&isNaN(Number(i))&&(r.add(i),r.size>we._suggestionsLimit))break e}return{words:Array.from(r),duration:s.elapsed()}}async computeWordRanges(e,t,i,n){const s=this._getModel(e);if(!s)return Object.create(null);const o=new RegExp(i,n),r=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=s.getLineWords(a,o);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=r[t.word];e||(e=[],r[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return r}async navigateValueSet(e,t,i,n,s){const o=this._getModel(e);if(!o)return null;const r=new RegExp(n,s);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=o.getValueInRange(t),l=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},r);if(!l)return null;const d=o.getValueInRange(l);return V.INSTANCE.navigateValueSet(t,a,l,d,i)}loadForeignModule(e,t,i){const n={host:(0,a.kT)(i,((e,t)=>this._host.fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(n,t),Promise.resolve((0,a.V0)(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(i){return Promise.reject(i)}}}we._diffLimit=1e5,we._suggestionsLimit=1e4,"function"===typeof importScripts&&(globalThis.monaco=(0,H.r)());var Se=i(23750),ke=i(90360),xe=i(25890),Le=i(18801),De=i(56942),Ee=i(25893),Ne=i(8597),Te=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ie=function(e,t){return function(i,n){t(i,n,e)}};const Me=3e5;function Ae(e,t){const i=e.getModel(t);return!!i&&!i.isTooLargeForSyncing()}let Re=class extends s.jG{constructor(e,t,i,n,s){super(),this._modelService=e,this._workerManager=this._register(new Pe(this._modelService,n)),this._logService=i,this._register(s.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(e,t)=>Ae(this._modelService,e.uri)?this._workerManager.withWorker().then((t=>t.computeLinks(e.uri))).then((e=>e&&{links:e})):Promise.resolve({links:[]})})),this._register(s.completionProvider.register("*",new Oe(this._workerManager,t,this._modelService,n)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return Ae(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then((n=>n.computedUnicodeHighlights(e,t,i)))}async computeDiff(e,t,i,n){const s=await this._workerManager.withWorker().then((s=>s.computeDiff(e,t,i,n)));if(!s)return null;return{identical:s.identical,quitEarly:s.quitEarly,changes:o(s.changes),moves:s.moves.map((e=>new U.t(new K.WL(new $.M(e[0],e[1]),new $.M(e[2],e[3])),o(e[4]))))};function o(e){return e.map((e=>{var t;return new K.wm(new $.M(e[0],e[1]),new $.M(e[2],e[3]),null===(t=e[4])||void 0===t?void 0:t.map((e=>new K.q6(new L.Q(e[0],e[1],e[2],e[3]),new L.Q(e[4],e[5],e[6],e[7])))))}))}}computeMoreMinimalEdits(e,t,i=!1){if((0,xe.EI)(t)){if(!Ae(this._modelService,e))return Promise.resolve(t);const s=z.W.create(),o=this._workerManager.withWorker().then((n=>n.computeMoreMinimalEdits(e,t,i)));return o.finally((()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),s.elapsed()))),Promise.race([o,(0,n.wR)(1e3).then((()=>t))])}return Promise.resolve(void 0)}canNavigateValueSet(e){return Ae(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then((n=>n.navigateValueSet(e,t,i)))}canComputeWordRanges(e){return Ae(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then((i=>i.computeWordRanges(e,t)))}findSectionHeaders(e,t){return this._workerManager.withWorker().then((i=>i.findSectionHeaders(e,t)))}};Re=Te([Ie(0,Se.S),Ie(1,ke.U),Ie(2,Le.rr),Ie(3,D.JZ),Ie(4,De.u)],Re);class Oe{constructor(e,t,i,n){this.languageConfigurationService=n,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}async provideCompletionItems(e,t){const i=this._configurationService.getValue(e.uri,t,"editor");if("off"===i.wordBasedSuggestions)return;const n=[];if("currentDocument"===i.wordBasedSuggestions)Ae(this._modelService,e.uri)&&n.push(e.uri);else for(const h of this._modelService.getModels())Ae(this._modelService,h.uri)&&(h===e?n.unshift(h.uri):"allDocuments"!==i.wordBasedSuggestions&&h.getLanguageId()!==e.getLanguageId()||n.push(h.uri));if(0===n.length)return;const s=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),o=e.getWordAtPosition(t),r=o?new L.Q(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn):L.Q.fromPositions(t),a=r.setEndPosition(t.lineNumber,t.column),l=await this._workerManager.withWorker(),d=await l.textualSuggest(n,null===o||void 0===o?void 0:o.word,s);return d?{duration:d.duration,suggestions:d.words.map((e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:r}})))}:void 0}}class Pe extends s.jG{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime();this._register(new Ne.Be).cancelAndSet((()=>this._checkStopIdleWorker()),Math.round(15e4),Ee.G),this._register(this._modelService.onModelRemoved((e=>this._checkStopEmptyWorker())))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;(new Date).getTime()-this._lastWorkerUsedTime>Me&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Ve(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class Fe extends s.jG{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const e=new n.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(3e4)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,s.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const i of e){const e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const i in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[i]>6e4&&t.push(i)}for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i)return;if(!t&&i.isTooLargeForSyncing())return;const n=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const o=new s.Cm;o.add(i.onDidChangeContent((e=>{this._proxy.acceptModelChanged(n.toString(),e)}))),o.add(i.onWillDispose((()=>{this._stopModelSync(n)}))),o.add((0,s.s)((()=>{this._proxy.acceptRemovedModel(n)}))),this._syncedModels[n]=o}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,s.AS)(t)}}class Be{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class We{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class Ve extends s.jG{constructor(e,t,i,n){super(),this.languageConfigurationService=n,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new x(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new b(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new We(this)))}catch(e){u(e),this._worker=new Be(new we(new We(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,(e=>(u(e),this._worker=new Be(new we(new We(this),null)),this._getOrCreateWorker().getProxyObject())))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new Fe(e,this._modelService,this._keepIdleModels))),this._modelManager}async _withSyncedResources(e,t=!1){return this._disposed?Promise.reject((0,o.aD)()):this._getProxy().then((i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i)))}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then((n=>n.computeUnicodeHighlights(e.toString(),t,i)))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t],!0).then((s=>s.computeDiff(e.toString(),t.toString(),i,n)))}computeMoreMinimalEdits(e,t,i){return this._withSyncedResources([e]).then((n=>n.computeMoreMinimalEdits(e.toString(),t,i)))}computeLinks(e){return this._withSyncedResources([e]).then((t=>t.computeLinks(e.toString())))}computeDefaultDocumentColors(e){return this._withSyncedResources([e]).then((t=>t.computeDefaultDocumentColors(e.toString())))}async textualSuggest(e,t,i){const n=await this._withSyncedResources(e),s=i.source,o=i.flags;return n.textualSuggest(e.map((e=>e.toString())),t,s,o)}computeWordRanges(e,t){return this._withSyncedResources([e]).then((i=>{const n=this._modelService.getModel(e);if(!n)return Promise.resolve(null);const s=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),o=s.source,r=s.flags;return i.computeWordRanges(e.toString(),t,o,r)}))}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then((n=>{const s=this._modelService.getModel(e);if(!s)return null;const o=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId()).getWordDefinition(),r=o.source,a=o.flags;return n.navigateValueSet(e.toString(),t,i,r,a)}))}findSectionHeaders(e,t){return this._withSyncedResources([e]).then((i=>i.findSectionHeaders(e.toString(),t)))}dispose(){super.dispose(),this._disposed=!0}}},55190:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});class n{static capture(e){if(0===e.getScrollTop()||e.hasPendingScrollAnimation())return new n(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0;const s=e.getVisibleRanges();if(s.length>0){t=s[0].getStartPosition();const n=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-n}return new n(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition())}constructor(e,t,i,n,s){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=n,this._cursorPosition=s}restore(e){if((this._initialContentHeight!==e.getContentHeight()||this._initialScrollTop!==e.getScrollTop())&&this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){if(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())return;const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}},80624:(e,t,i)=>{"use strict";i.d(t,{BG:()=>o,IO:()=>a,Y:()=>r,eh:()=>s,pj:()=>d,qN:()=>l});class n{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,t){return this._viewLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,t)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class s extends n{constructor(e,t,i){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class o{constructor(e,t,i,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i,this.continuesOnNextLine=n}}class r{static from(e){const t=new Array(e.length);for(let i=0,n=e.length;i<n;i++){const n=e[i];t[i]=new r(n.left,n.width)}return t}constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class a{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class l{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class d{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}},92473:(e,t,i)=>{"use strict";i.d(t,{Gb:()=>m,Ax:()=>p,rk:()=>w});var n=i(60413),s=i(55275),o=i(98067),r=i(80624);class a{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,n,s){const o=this._createRange();try{return o.setStart(e,t),o.setEnd(i,n),o.getClientRects()}catch(r){return null}finally{this._detachRange(o,s)}}static _mergeAdjacentRanges(e){if(1===e.length)return e;e.sort(r.IO.compare);const t=[];let i=0,n=e[0];for(let s=1,o=e.length;s<o;s++){const o=e[s];n.left+n.width+.9>=o.left?n.width=Math.max(n.width,o.left+o.width-n.left):(t[i++]=n,n=o)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;const n=[];for(let s=0,o=e.length;s<o;s++){const o=e[s];n[s]=new r.IO(Math.max(0,(o.left-t)/i),o.width/i)}return this._mergeAdjacentRanges(n)}static readHorizontalRanges(e,t,i,n,s,o){const r=e.children.length-1;if(0>r)return null;if((t=Math.min(r,Math.max(0,t)))===(n=Math.min(r,Math.max(0,n)))&&i===s&&0===i&&!e.children[t].firstChild){const i=e.children[t].getClientRects();return o.markDidDomLayout(),this._createHorizontalRangesFromClientRects(i,o.clientRectDeltaLeft,o.clientRectScale)}t!==n&&n>0&&0===s&&(n--,s=1073741824);let a=e.children[t].firstChild,l=e.children[n].firstChild;if(a&&l||(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=1073741824),!l&&0===s&&n>0&&(l=e.children[n-1].firstChild,s=1073741824)),!a||!l)return null;i=Math.min(a.textContent.length,Math.max(0,i)),s=Math.min(l.textContent.length,Math.max(0,s));const d=this._readClientRects(a,i,l,s,o.endNode);return o.markDidDomLayout(),this._createHorizontalRangesFromClientRects(d,o.clientRectDeltaLeft,o.clientRectScale)}}var l=i(25521),d=i(35600),h=i(86723),c=i(87908);const u=!!o.ib||!(o.j9||n.gm||n.nr);let g=!0;class p{constructor(e,t){this.themeType=t;const i=e.options,n=i.get(50),s=i.get(38);this.renderWhitespace="off"===s?i.get(99):"none",this.renderControlCharacters=i.get(94),this.spaceWidth=n.spaceWidth,this.middotWidth=n.middotWidth,this.wsmiddotWidth=n.wsmiddotWidth,this.useMonospaceOptimizations=n.isMonospace&&!i.get(33),this.canUseHalfwidthRightwardsArrow=n.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(67),this.stopRenderingLineAfter=i.get(117),this.fontLigatures=i.get(51)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class m{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=(0,s.Z)(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return!(!(0,h.Bb)(this._options.themeType)&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,i,n,s){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const o=n.getViewLineRenderingData(e),r=this._options,a=l.d.filter(o.inlineDecorations,e,o.minColumn,o.maxColumn);let p=null;if((0,h.Bb)(r.themeType)||"selection"===this._options.renderWhitespace){const t=n.selections;for(const i of t){if(i.endLineNumber<e||i.startLineNumber>e)continue;const t=i.startLineNumber===e?i.startColumn:o.minColumn,n=i.endLineNumber===e?i.endColumn:o.maxColumn;t<n&&((0,h.Bb)(r.themeType)&&a.push(new l.d(t,n,"inline-selected-text",0)),"selection"===this._options.renderWhitespace&&(p||(p=[]),p.push(new d.MT(t-1,n-1))))}}const _=new d.zL(r.useMonospaceOptimizations,r.canUseHalfwidthRightwardsArrow,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,o.minColumn-1,o.tokens,a,o.tabSize,o.startVisibleColumn,r.spaceWidth,r.middotWidth,r.wsmiddotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==c.Bc.OFF,p);if(this._renderedViewLine&&this._renderedViewLine.input.equals(_))return!1;s.appendString('<div style="top:'),s.appendString(String(t)),s.appendString("px;height:"),s.appendString(String(i)),s.appendString('px;" class="'),s.appendString(m.CLASS_NAME),s.appendString('">');const v=(0,d.UW)(_,s);s.appendString("</div>");let C=null;return g&&u&&o.isBasicASCII&&r.useMonospaceOptimizations&&0===v.containsForeignElements&&(C=new f(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping)),C||(C=b(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping,v.containsRTL,v.containsForeignElements)),this._renderedViewLine=C,!0}layoutLine(e,t,i){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(i))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof f}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof f?this._renderedViewLine.monospaceAssumptionsAreValid():g}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof f&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,n){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const s=this._renderedViewLine.input.stopRenderingLineAfter;if(-1!==s&&t>s+1&&i>s+1)return new r.pj(!0,[new r.IO(this.getWidth(n),0)]);-1!==s&&t>s+1&&(t=s+1),-1!==s&&i>s+1&&(i=s+1);const o=this._renderedViewLine.getVisibleRangesForRange(e,t,i,n);return o&&o.length>0?new r.pj(!1,o):null}getColumnOfNodeOffset(e,t){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t):1}}m.CLASS_NAME="view-line";class f{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const n=Math.floor(t.lineContent.length/300);if(n>0){this._keyColumnPixelOffsetCache=new Float32Array(n);for(let e=0;e<n;e++)this._keyColumnPixelOffsetCache[e]=-1}else this._keyColumnPixelOffsetCache=null;this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(e){if(!this.domNode||this.input.lineContent.length<300){const e=this._characterMapping.getHorizontalOffset(this._characterMapping.length);return Math.round(this._charWidth*e)}return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,null===e||void 0===e||e.markDidDomLayout()),this._cachedWidth}getWidthIsFast(){return this.input.lineContent.length<300||-1!==this._cachedWidth}monospaceAssumptionsAreValid(){if(!this.domNode)return g;if(this.input.lineContent.length<300){const e=this.getWidth(null),t=this.domNode.domNode.firstChild.offsetWidth;Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),g=!1)}return g}toSlowRenderedLine(){return b(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,n){const s=this._getColumnPixelOffset(e,t,n),o=this._getColumnPixelOffset(e,i,n);return[new r.IO(s,o-s)]}_getColumnPixelOffset(e,t,i){if(t<=300){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const n=Math.floor((t-1)/300)-1,s=300*(n+1)+1;let o=-1;if(this._keyColumnPixelOffsetCache&&(o=this._keyColumnPixelOffsetCache[n],-1===o&&(o=this._actualReadPixelOffset(e,s,i),this._keyColumnPixelOffsetCache[n]=o)),-1===o){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const r=this._characterMapping.getHorizontalOffset(s),a=this._characterMapping.getHorizontalOffset(t);return o+this._charWidth*(a-r)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return-1;const n=this._characterMapping.getDomPosition(t),s=a.readHorizontalRanges(this._getReadingTarget(this.domNode),n.partIndex,n.charIndex,n.partIndex,n.charIndex,i);return s&&0!==s.length?s[0].left:-1}getColumnOfNodeOffset(e,t){return w(this._characterMapping,e,t)}}class _{constructor(e,t,i,n,s){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=s,this._cachedWidth=-1,this._pixelOffsetCache=null,!n||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,null===e||void 0===e||e.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,i,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const s=this._readPixelOffset(this.domNode,e,t,n);if(-1===s)return null;const o=this._readPixelOffset(this.domNode,e,i,n);return-1===o?null:[new r.IO(s,o-s)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,n)}_readVisibleRangesForRange(e,t,i,n,s){if(i===n){const n=this._readPixelOffset(e,t,i,s);return-1===n?null:[new r.IO(n,0)]}return this._readRawVisibleRangesForRange(e,i,n,s)}_readPixelOffset(e,t,i,n){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth(n);const t=this._getReadingTarget(e);return t.firstChild?(n.markDidDomLayout(),t.firstChild.offsetWidth):0}if(null!==this._pixelOffsetCache){const s=this._pixelOffsetCache[i];if(-1!==s)return s;const o=this._actualReadPixelOffset(e,t,i,n);return this._pixelOffsetCache[i]=o,o}return this._actualReadPixelOffset(e,t,i,n)}_actualReadPixelOffset(e,t,i,n){if(0===this._characterMapping.length){const t=a.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth(n);const s=this._characterMapping.getDomPosition(i),o=a.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,s.partIndex,s.charIndex,n);if(!o||0===o.length)return-1;const r=o[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getHorizontalOffset(i),t=Math.round(this.input.spaceWidth*e);if(Math.abs(t-r)<=1)return t}return r}_readRawVisibleRangesForRange(e,t,i,n){if(1===t&&i===this._characterMapping.length)return[new r.IO(0,this.getWidth(n))];const s=this._characterMapping.getDomPosition(t),o=this._characterMapping.getDomPosition(i);return a.readHorizontalRanges(this._getReadingTarget(e),s.partIndex,s.charIndex,o.partIndex,o.charIndex,n)}getColumnOfNodeOffset(e,t){return w(this._characterMapping,e,t)}}class v extends _{_readVisibleRangesForRange(e,t,i,n,s){const o=super._readVisibleRangesForRange(e,t,i,n,s);if(!o||0===o.length||i===n||1===i&&n===this._characterMapping.length)return o;if(!this.input.containsRTL){const i=this._readPixelOffset(e,t,n,s);if(-1!==i){const e=o[o.length-1];e.left<i&&(e.width=i-e.left)}}return o}}const b=n.Tc?C:y;function C(e,t,i,n,s){return new v(e,t,i,n,s)}function y(e,t,i,n,s){return new _(e,t,i,n,s)}function w(e,t,i){const n=t.textContent.length;let s=-1;for(;t;)t=t.previousSibling,s++;return e.getColumn(new d.wZ(s,i),n)}},60703:(e,t,i)=>{"use strict";i.d(t,{x:()=>Qs});var n=i(37550),s=i(31450),o=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},r=function(e,t){return function(i,n){t(i,n,e)}};let a=class{constructor(e,t){}dispose(){}};a.ID="editor.contrib.markerDecorations",a=o([r(1,n.A)],a),(0,s.HW)(a.ID,a,0);var l=i(8597),d=i(64383),h=i(41234),c=i(5662),u=i(36456),g=i(73157),p=i(60413),m=i(25890),f=i(10146),_=i(98067),v=i(4983),b=i(28433);class C{constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=C._read(e,this.key);this.migrate(t,(t=>C._read(e,t)),((t,i)=>C._write(e,t,i)))}static _read(e,t){if("undefined"===typeof e)return;const i=t.indexOf(".");if(i>=0){const n=t.substring(0,i);return this._read(e[n],t.substring(i+1))}return e[t]}static _write(e,t,i){const n=t.indexOf(".");if(n>=0){const s=t.substring(0,n);return e[s]=e[s]||{},void this._write(e[s],t.substring(n+1),i)}e[t]=i}}function y(e,t){C.items.push(new C(e,t))}function w(e,t){y(e,((i,n,s)=>{if("undefined"!==typeof i)for(const[o,r]of t)if(i===o)return void s(e,r)}))}C.items=[],w("wordWrap",[[!0,"on"],[!1,"off"]]),w("lineNumbers",[[!0,"on"],[!1,"off"]]),w("cursorBlinking",[["visible","solid"]]),w("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),w("renderLineHighlight",[[!0,"line"],[!1,"none"]]),w("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),w("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),w("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),w("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),w("autoIndent",[[!1,"advanced"],[!0,"full"]]),w("matchBrackets",[[!0,"always"],[!1,"never"]]),w("renderFinalNewline",[[!0,"on"],[!1,"off"]]),w("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),w("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),w("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),y("autoClosingBrackets",((e,t,i)=>{!1===e&&(i("autoClosingBrackets","never"),"undefined"===typeof t("autoClosingQuotes")&&i("autoClosingQuotes","never"),"undefined"===typeof t("autoSurround")&&i("autoSurround","never"))})),y("renderIndentGuides",((e,t,i)=>{"undefined"!==typeof e&&(i("renderIndentGuides",void 0),"undefined"===typeof t("guides.indentation")&&i("guides.indentation",!!e))})),y("highlightActiveIndentGuide",((e,t,i)=>{"undefined"!==typeof e&&(i("highlightActiveIndentGuide",void 0),"undefined"===typeof t("guides.highlightActiveIndentation")&&i("guides.highlightActiveIndentation",!!e))}));const S={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};y("suggest.filteredTypes",((e,t,i)=>{if(e&&"object"===typeof e){for(const n of Object.entries(S)){!1===e[n[0]]&&"undefined"===typeof t(`suggest.${n[1]}`)&&i(`suggest.${n[1]}`,!1)}i("suggest.filteredTypes",void 0)}})),y("quickSuggestions",((e,t,i)=>{if("boolean"===typeof e){const t=e?"on":"off";i("quickSuggestions",{comments:t,strings:t,other:t})}})),y("experimental.stickyScroll.enabled",((e,t,i)=>{"boolean"===typeof e&&(i("experimental.stickyScroll.enabled",void 0),"undefined"===typeof t("stickyScroll.enabled")&&i("stickyScroll.enabled",e))})),y("experimental.stickyScroll.maxLineCount",((e,t,i)=>{"number"===typeof e&&(i("experimental.stickyScroll.maxLineCount",void 0),"undefined"===typeof t("stickyScroll.maxLineCount")&&i("stickyScroll.maxLineCount",e))})),y("codeActionsOnSave",((e,t,i)=>{if(e&&"object"===typeof e){let t=!1;const n={};for(const i of Object.entries(e))"boolean"===typeof i[1]?(t=!0,n[i[0]]=i[1]?"explicit":"never"):n[i[0]]=i[1];t&&i("codeActionsOnSave",n)}})),y("codeActionWidget.includeNearbyQuickfixes",((e,t,i)=>{"boolean"===typeof e&&(i("codeActionWidget.includeNearbyQuickfixes",void 0),"undefined"===typeof t("codeActionWidget.includeNearbyQuickFixes")&&i("codeActionWidget.includeNearbyQuickFixes",e))})),y("lightbulb.enabled",((e,t,i)=>{"boolean"===typeof e&&i("lightbulb.enabled",e?void 0:"off")}));var k=i(77163),x=i(87908),L=i(79027),D=i(74196),E=i(253),N=i(94106),T=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},I=function(e,t){return function(i,n){t(i,n,e)}};let M=class extends c.jG{constructor(e,t,i,n){super(),this._accessibilityService=n,this._onDidChange=this._register(new h.vl),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new h.vl),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new x.n0,this.isSimpleWidget=e,this._containerObserver=this._register(new v.u(i,t.dimension)),this._targetWindowId=(0,l.zk)(i).vscodeWindowId,this._rawOptions=F(t),this._validatedOptions=P.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(L.D.onDidChangeZoomLevel((()=>this._recomputeOptions()))),this._register(k.M.onDidChangeTabFocus((()=>this._recomputeOptions()))),this._register(this._containerObserver.onDidChange((()=>this._recomputeOptions()))),this._register(b.T.onDidChange((()=>this._recomputeOptions()))),this._register(N.c.getInstance((0,l.zk)(i)).onDidChange((()=>this._recomputeOptions()))),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized((()=>this._recomputeOptions())))}_recomputeOptions(){const e=this._computeOptions(),t=P.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=D._8.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),n={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:k.M.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return P.computeOptions(this._validatedOptions,n)}_readEnvConfiguration(){return{extraEditorClassName:A(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:p.Tc||p.gm,pixelRatio:N.c.getInstance((0,l.ZF)(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return b.T.readFontInfo((0,l.ZF)(this._targetWindowId,!0).window,e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=F(e);P.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=P.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=function(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(e){this._glyphMarginDecorationLaneCount!==e&&(this._glyphMarginDecorationLaneCount=e,this._recomputeOptions())}};function A(){let e="";return p.nr||p.c8||(e+="no-user-select "),p.nr&&(e+="no-minimap-shadow ",e+="enable-user-select "),_.zx&&(e+="mac "),e}M=T([I(3,E.j)],M);class R{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class O{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class P{static validateOptions(e){const t=new R;for(const i of x.BE){const n="_never_"===i.name?void 0:e[i.name];t._write(i.id,i.validate(n))}return t}static computeOptions(e,t){const i=new O;for(const n of x.BE)i._write(n.id,n.compute(t,i,e._read(n.id)));return i}static _deepEquals(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&m.aI(e,t);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!P._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let n=!1;for(const s of x.BE){const o=!P._deepEquals(e._read(s.id),t._read(s.id));i[s.id]=o,o&&(n=!0)}return n?new x.lw(i):null}static applyUpdate(e,t){let i=!1;for(const n of x.BE)if(t.hasOwnProperty(n.name)){const s=n.applyUpdate(e[n.name],t[n.name]);e[n.name]=s.newValue,i=i||s.didChange}return i}}function F(e){const t=f.Go(e);return function(e){C.items.forEach((t=>t.apply(e)))}(t),t}var B=i(80301),W=i(55275),V=i(5239),H=i(37734);class z extends c.jG{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,n=e.length;i<n;i++){const n=e[i];switch(n.type){case 0:this.onCompositionStart(n)&&(t=!0);break;case 1:this.onCompositionEnd(n)&&(t=!0);break;case 2:this.onConfigurationChanged(n)&&(t=!0);break;case 3:this.onCursorStateChanged(n)&&(t=!0);break;case 4:this.onDecorationsChanged(n)&&(t=!0);break;case 5:this.onFlushed(n)&&(t=!0);break;case 6:this.onFocusChanged(n)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(n)&&(t=!0);break;case 8:this.onLineMappingChanged(n)&&(t=!0);break;case 9:this.onLinesChanged(n)&&(t=!0);break;case 10:this.onLinesDeleted(n)&&(t=!0);break;case 11:this.onLinesInserted(n)&&(t=!0);break;case 12:this.onRevealRangeRequest(n)&&(t=!0);break;case 13:this.onScrollChanged(n)&&(t=!0);break;case 15:this.onTokensChanged(n)&&(t=!0);break;case 14:this.onThemeChanged(n)&&(t=!0);break;case 16:this.onTokensColorsChanged(n)&&(t=!0);break;case 17:this.onZonesChanged(n)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(n)}}t&&(this._shouldRender=!0)}}class j extends z{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class U{static write(e,t){e.setAttribute("data-mprt",String(t))}static read(e){const t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)}static collect(e,t){const i=[];let n=0;for(;e&&e!==e.ownerDocument.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(i[n++]=this.read(e)),e=e.parentElement;const s=new Uint8Array(n);for(let o=0;o<n;o++)s[o]=i[n-o-1];return s}}var K,G=i(92473),$=i(83069),q=i(36677),Q=i(1245),Y=i(35817),Z=i(91090);class X{constructor(e=null){this.hitTarget=e,this.type=0}}class J{get hitTarget(){return this.spanNode}constructor(e,t,i){this.position=e,this.spanNode=t,this.injectedText=i,this.type=1}}!function(e){e.createFromDOMInfo=function(e,t,i){const n=e.getPositionFromDOMInfo(t,i);return n?new J(n,t,null):new X(t)}}(K||(K={}));class ee{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class te{static _deduceRage(e,t=null){return!t&&e?new q.Q(e.lineNumber,e.column,e.lineNumber,e.column):null!==t&&void 0!==t?t:null}static createUnknown(e,t,i){return{type:0,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createTextarea(e,t){return{type:1,element:e,mouseColumn:t,position:null,range:null}}static createMargin(e,t,i,n,s,o){return{type:e,element:t,mouseColumn:i,position:n,range:s,detail:o}}static createViewZone(e,t,i,n,s){return{type:e,element:t,mouseColumn:i,position:n,range:this._deduceRage(n),detail:s}}static createContentText(e,t,i,n,s){return{type:6,element:e,mouseColumn:t,position:i,range:this._deduceRage(i,n),detail:s}}static createContentEmpty(e,t,i,n){return{type:7,element:e,mouseColumn:t,position:i,range:this._deduceRage(i),detail:n}}static createContentWidget(e,t,i){return{type:9,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createScrollbar(e,t,i){return{type:11,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createOverlayWidget(e,t,i){return{type:12,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createOutsideEditor(e,t,i,n){return{type:13,element:null,mouseColumn:e,position:t,range:this._deduceRage(t),outsidePosition:i,outsideDistance:n}}static _typeToString(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+JSON.stringify(e.detail)}}class ie{static isTextArea(e){return 2===e.length&&3===e[0]&&7===e[1]}static isChildOfViewLines(e){return e.length>=4&&3===e[0]&&8===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&8===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&6===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&9===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowGuard(e){return e.length>=1&&3===e[0]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}static isChildOfOverflowingOverlayWidgets(e){return e.length>=1&&5===e[0]}}class ne{constructor(e,t,i){this.viewModel=e.viewModel;const n=e.configuration.options;this.layoutInfo=n.get(145),this.viewDomNode=t.viewDomNode,this.lineHeight=n.get(67),this.stickyTabStops=n.get(116),this.typicalHalfwidthCharacterWidth=n.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return ne.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const n=i.verticalOffset+i.height/2,s=e.viewModel.getLineCount();let o,r=null,a=null;return i.afterLineNumber!==s&&(a=new $.y(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(r=new $.y(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),o=null===a?r:null===r?a:t<n?r:a,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:r,positionAfter:a,position:o}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){const e=this._context.viewModel.getLineCount(),t=this._context.viewModel.getLineMaxColumn(e);return{range:new q.Q(e,t,e,t),isAfterLines:!0}}const t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),i=this._context.viewModel.getLineMaxColumn(t);return{range:new q.Q(t,1,t,i),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}isInTopPadding(e){return this._context.viewLayout.isInTopPadding(e)}isInBottomPadding(e){return this._context.viewLayout.isInBottomPadding(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return ne._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,i){for(;e&&e!==e.ownerDocument.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===i)return null;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class se{constructor(e,t,i,n){this.editorPos=t,this.pos=i,this.relativePos=n,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+this.relativePos.x-e.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<e.layoutInfo.contentLeft&&this.relativePos.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,le._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class oe extends se{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=U.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(e,t,i,n,s){super(e,t,i,n),this.hitTestResult=new Z.d((()=>le.doHitTest(this._ctx,this))),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=e,this._eventTarget=s;const o=Boolean(this._eventTarget);this._useHitTestTarget=!o}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&null!==this.hitTestResult.value.hitTarget&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(e=null){return e&&e.column<this._ctx.viewModel.getLineMaxColumn(e.lineNumber)?Q.A.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(e.lineNumber),e.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(e=null){return te.createUnknown(this.target,this._getMouseColumn(e),e)}fulfillTextarea(){return te.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(e,t,i,n){return te.createMargin(e,this.target,this._getMouseColumn(t),t,i,n)}fulfillViewZone(e,t,i){return te.createViewZone(e,this.target,this._getMouseColumn(t),t,i)}fulfillContentText(e,t,i){return te.createContentText(this.target,this._getMouseColumn(e),e,t,i)}fulfillContentEmpty(e,t){return te.createContentEmpty(this.target,this._getMouseColumn(e),e,t)}fulfillContentWidget(e){return te.createContentWidget(this.target,this._getMouseColumn(),e)}fulfillScrollbar(e){return te.createScrollbar(this.target,this._getMouseColumn(e),e)}fulfillOverlayWidget(e){return te.createOverlayWidget(this.target,this._getMouseColumn(),e)}}const re={isAfterLines:!0};function ae(e){return{isAfterLines:!1,horizontalDistanceToText:e}}class le{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){const t=e.target,i=U.collect(t,this._viewHelper.viewDomNode);return!(!ie.isChildOfContentWidgets(i)&&!ie.isChildOfOverflowingContentWidgets(i))||!(!ie.isChildOfOverlayWidgets(i)&&!ie.isChildOfOverflowingOverlayWidgets(i))}createMouseTarget(e,t,i,n,s){const o=new ne(this._context,this._viewHelper,e),r=new oe(o,t,i,n,s);try{const e=le._createMouseTarget(o,r);if(6===e.type&&o.stickyTabStops&&null!==e.position){const t=le._snapToSoftTabBoundary(e.position,o.viewModel),i=q.Q.fromPositions(t,t).plusRange(e.range);return r.fulfillContentText(t,i,e.detail)}return e}catch(a){return r.fulfillUnknown()}}static _createMouseTarget(e,t){if(null===t.target)return t.fulfillUnknown();const i=t;let n=null;return ie.isChildOfOverflowGuard(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)||(n=n||t.fulfillUnknown()),n=n||le._hitTestContentWidget(e,i),n=n||le._hitTestOverlayWidget(e,i),n=n||le._hitTestMinimap(e,i),n=n||le._hitTestScrollbarSlider(e,i),n=n||le._hitTestViewZone(e,i),n=n||le._hitTestMargin(e,i),n=n||le._hitTestViewCursor(e,i),n=n||le._hitTestTextArea(e,i),n=n||le._hitTestViewLines(e,i),n=n||le._hitTestScrollbar(e,i),n||t.fulfillUnknown()}static _hitTestContentWidget(e,t){if(ie.isChildOfContentWidgets(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillContentWidget(i):t.fulfillUnknown()}return null}static _hitTestOverlayWidget(e,t){if(ie.isChildOfOverlayWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillOverlayWidget(i):t.fulfillUnknown()}return null}static _hitTestViewCursor(e,t){if(t.target){const i=e.lastRenderData.lastViewCursorsRenderData;for(const e of i)if(t.target===e.domNode)return t.fulfillContentText(e.position,null,{mightBeForeignElement:!1,injectedText:null})}if(t.isInContentArea){const i=e.lastRenderData.lastViewCursorsRenderData,n=t.mouseContentHorizontalOffset,s=t.mouseVerticalOffset;for(const o of i){if(n<o.contentLeft)continue;if(n>o.contentLeft+o.width)continue;const i=e.getVerticalOffsetForLineNumber(o.position.lineNumber);if(i<=s&&s<=i+o.height)return t.fulfillContentText(o.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const e=t.isInContentArea?8:5;return t.fulfillViewZone(e,i.position,i)}return null}static _hitTestTextArea(e,t){return ie.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),n=i.range.getStartPosition();let s=Math.abs(t.relativePos.x);const o={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:s};if(s-=e.layoutInfo.glyphMarginLeft,s<=e.layoutInfo.glyphMarginWidth){const r=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i.range.getStartPosition()),a=e.viewModel.glyphLanes.getLanesAtLine(r.lineNumber);return o.glyphMarginLane=a[Math.floor(s/e.lineHeight)],t.fulfillMargin(2,n,i.range,o)}return s-=e.layoutInfo.glyphMarginWidth,s<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,n,i.range,o):(s-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,n,i.range,o))}return null}static _hitTestViewLines(e,t){if(!ie.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new $.y(1,1),re);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const i=e.viewModel.getLineCount(),n=e.viewModel.getLineMaxColumn(i);return t.fulfillContentEmpty(new $.y(i,n),re)}if(ie.isStrictChildOfViewLines(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.viewModel.getLineLength(i)){const n=e.getLineWidth(i),s=ae(t.mouseContentHorizontalOffset-n);return t.fulfillContentEmpty(new $.y(i,1),s)}const n=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=n){const s=ae(t.mouseContentHorizontalOffset-n),o=new $.y(i,e.viewModel.getLineMaxColumn(i));return t.fulfillContentEmpty(o,s)}}const i=t.hitTestResult.value;return 1===i.type?le.createMouseTargetFromHitTestPosition(e,t,i.spanNode,i.position,i.injectedText):t.wouldBenefitFromHitTestTargetSwitch?(t.switchToHitTestTarget(),this._createMouseTarget(e,t)):t.fulfillUnknown()}static _hitTestMinimap(e,t){if(ie.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new $.y(i,n))}return null}static _hitTestScrollbarSlider(e,t){if(ie.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new $.y(i,n))}}return null}static _hitTestScrollbar(e,t){if(ie.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new $.y(i,n))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(145),n=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return le._getMouseColumn(n,t.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){if(e<0)return 1;return Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,n,s){const o=n.lineNumber,r=n.column,a=e.getLineWidth(o);if(t.mouseContentHorizontalOffset>a){const e=ae(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(n,e)}const d=e.visibleRangeForPosition(o,r);if(!d)return t.fulfillUnknown(n);const h=d.left;if(Math.abs(t.mouseContentHorizontalOffset-h)<1)return t.fulfillContentText(n,null,{mightBeForeignElement:!!s,injectedText:s});const c=[];if(c.push({offset:d.left,column:r}),r>1){const t=e.visibleRangeForPosition(o,r-1);t&&c.push({offset:t.left,column:r-1})}if(r<e.viewModel.getLineMaxColumn(o)){const t=e.visibleRangeForPosition(o,r+1);t&&c.push({offset:t.left,column:r+1})}c.sort(((e,t)=>e.offset-t.offset));const u=t.pos.toClientCoordinates(l.zk(e.viewDomNode)),g=i.getBoundingClientRect(),p=g.left<=u.clientX&&u.clientX<=g.right;let m=null;for(let l=1;l<c.length;l++){const e=c[l-1],i=c[l];if(e.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=i.offset){m=new q.Q(o,e.column,o,i.column);n=Math.abs(e.offset-t.mouseContentHorizontalOffset)<Math.abs(i.offset-t.mouseContentHorizontalOffset)?new $.y(o,e.column):new $.y(o,i.column);break}}return t.fulfillContentText(n,m,{mightBeForeignElement:!p||!!s,injectedText:s})}static _doHitTestWithCaretRangeFromPoint(e,t){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.getVerticalOffsetForLineNumber(i),s=n+e.lineHeight;if(!(i===e.viewModel.getLineCount()&&t.mouseVerticalOffset>s)){const i=Math.floor((n+s)/2);let o=t.pos.y+(i-t.mouseVerticalOffset);o<=t.editorPos.y&&(o=t.editorPos.y+1),o>=t.editorPos.y+t.editorPos.height&&(o=t.editorPos.y+t.editorPos.height-1);const r=new H.nz(t.pos.x,o),a=this._actualDoHitTestWithCaretRangeFromPoint(e,r.toClientCoordinates(l.zk(e.viewDomNode)));if(1===a.type)return a}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates(l.zk(e.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=l.jG(e.viewDomNode);let n;if(n=i?"undefined"===typeof i.caretRangeFromPoint?function(e,t,i){const n=document.createRange();let s=e.elementFromPoint(t,i);if(null!==s){for(;s&&s.firstChild&&s.firstChild.nodeType!==s.firstChild.TEXT_NODE&&s.lastChild&&s.lastChild.firstChild;)s=s.lastChild;const e=s.getBoundingClientRect(),i=l.zk(s),o=`${i.getComputedStyle(s,null).getPropertyValue("font-style")} ${i.getComputedStyle(s,null).getPropertyValue("font-variant")} ${i.getComputedStyle(s,null).getPropertyValue("font-weight")} ${i.getComputedStyle(s,null).getPropertyValue("font-size")}/${i.getComputedStyle(s,null).getPropertyValue("line-height")} ${i.getComputedStyle(s,null).getPropertyValue("font-family")}`,r=s.innerText;let a,d=e.left,h=0;if(t>e.left+e.width)h=r.length;else{const e=de.getInstance();for(let i=0;i<r.length+1;i++){if(a=e.getCharWidth(r.charAt(i),o)/2,d+=a,t<d){h=i;break}d+=a}}n.setStart(s.firstChild,h),n.setEnd(s.firstChild,h)}return n}(i,t.clientX,t.clientY):i.caretRangeFromPoint(t.clientX,t.clientY):e.viewDomNode.ownerDocument.caretRangeFromPoint(t.clientX,t.clientY),!n||!n.startContainer)return new X;const s=n.startContainer;if(s.nodeType===s.TEXT_NODE){const t=s.parentNode,i=t?t.parentNode:null,o=i?i.parentNode:null;return(o&&o.nodeType===o.ELEMENT_NODE?o.className:null)===G.Gb.CLASS_NAME?K.createFromDOMInfo(e,t,n.startOffset):new X(s.parentNode)}if(s.nodeType===s.ELEMENT_NODE){const t=s.parentNode,i=t?t.parentNode:null;return(i&&i.nodeType===i.ELEMENT_NODE?i.className:null)===G.Gb.CLASS_NAME?K.createFromDOMInfo(e,s,s.textContent.length):new X(s)}return new X}static _doHitTestWithCaretPositionFromPoint(e,t){const i=e.viewDomNode.ownerDocument.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){const t=i.offsetNode.parentNode,n=t?t.parentNode:null,s=n?n.parentNode:null;return(s&&s.nodeType===s.ELEMENT_NODE?s.className:null)===G.Gb.CLASS_NAME?K.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new X(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){const t=i.offsetNode.parentNode,n=t&&t.nodeType===t.ELEMENT_NODE?t.className:null,s=t?t.parentNode:null,o=s&&s.nodeType===s.ELEMENT_NODE?s.className:null;if(n===G.Gb.CLASS_NAME){const t=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(t)return K.createFromDOMInfo(e,t,0)}else if(o===G.Gb.CLASS_NAME)return K.createFromDOMInfo(e,i.offsetNode,0)}return new X(i.offsetNode)}static _snapToSoftTabBoundary(e,t){const i=t.getLineContent(e.lineNumber),{tabSize:n}=t.model.getOptions(),s=Y.s.atomicPosition(i,e.column-1,n,2);return-1!==s?new $.y(e.lineNumber,s+1):e}static doHitTest(e,t){let i=new X;if("function"===typeof e.viewDomNode.ownerDocument.caretRangeFromPoint?i=this._doHitTestWithCaretRangeFromPoint(e,t):e.viewDomNode.ownerDocument.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates(l.zk(e.viewDomNode)))),1===i.type){const t=e.viewModel.getInjectedTextAt(i.position),n=e.viewModel.normalizePosition(i.position,2);!t&&n.equals(i.position)||(i=new J(n,i.spanNode,t))}return i}}class de{static getInstance(){return de._INSTANCE||(de._INSTANCE=new de),de._INSTANCE}constructor(){this._cache={},this._canvas=document.createElement("canvas")}getCharWidth(e,t){const i=e+t;if(this._cache[i])return this._cache[i];const n=this._canvas.getContext("2d");n.font=t;const s=n.measureText(e).width;return this._cache[i]=s,s}}de._INSTANCE=null;var he=i(55089),ce=i(25154),ue=i(25893),ge=i(47358),pe=i(75326),me=i(31295);class fe extends z{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new le(this._context,i),this._mouseDownOperation=this._register(new _e(this._context,this.viewController,this.viewHelper,this.mouseTargetFactory,((e,t)=>this._createMouseTarget(e,t)),(e=>this._getMouseColumn(e)))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(145).height;const n=new H.$z(this.viewHelper.viewDomNode);this._register(n.onContextMenu(this.viewHelper.viewDomNode,(e=>this._onContextMenu(e,!0)))),this._register(n.onMouseMove(this.viewHelper.viewDomNode,(e=>{this._onMouseMove(e),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=l.ko(this.viewHelper.viewDomNode.ownerDocument,"mousemove",(e=>{this.viewHelper.viewDomNode.contains(e.target)||this._onMouseLeave(new H.dO(e,!1,this.viewHelper.viewDomNode))})))}))),this._register(n.onMouseUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onMouseLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e))));let s=0;this._register(n.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>{s=t}))),this._register(l.ko(this.viewHelper.viewDomNode,l.Bx.POINTER_UP,(e=>{this._mouseDownOperation.onPointerUp()}))),this._register(n.onMouseDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e,s)))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const e=me.QC.INSTANCE;let t=0,i=L.D.getZoomLevel(),n=!1,s=0;function o(e){return _.zx?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey}this._register(l.ko(this.viewHelper.viewDomNode,l.Bx.MOUSE_WHEEL,(r=>{if(this.viewController.emitMouseWheel(r),!this._context.configuration.options.get(76))return;const a=new ge.$(r);if(e.acceptStandardWheelEvent(a),e.isPhysicalMouseWheel()){if(o(r)){const e=L.D.getZoomLevel(),t=a.deltaY>0?1:-1;L.D.setZoomLevel(e+t),a.preventDefault(),a.stopPropagation()}}else Date.now()-t>50&&(i=L.D.getZoomLevel(),n=o(r),s=0),t=Date.now(),s+=a.deltaY,n&&(L.D.setZoomLevel(i+s/5),a.preventDefault(),a.stopPropagation())}),{capture:!0,passive:!1}))}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(145)){const e=this._context.configuration.options.get(145).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}getTargetAtClientPoint(e,t){const i=new H.Hh(e,t).toPageCoordinates(l.zk(this.viewHelper.viewDomNode)),n=(0,H.wt)(this.viewHelper.viewDomNode);if(i.y<n.y||i.y>n.y+n.height||i.x<n.x||i.x>n.x+n.width)return null;const s=(0,H.i_)(this.viewHelper.viewDomNode,n,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),n,i,s,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const t=l.jG(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find((e=>this.viewHelper.viewDomNode.contains(e))))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),this._mouseDownOperation.isActive())return;e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e,t){const i=this._createMouseTarget(e,!0),n=6===i.type||7===i.type,s=2===i.type||3===i.type||4===i.type,o=3===i.type,r=this._context.configuration.options.get(109),a=8===i.type||5===i.type,l=9===i.type;let d=e.leftButton||e.middleButton;_.zx&&e.leftButton&&e.ctrlKey&&(d=!1);const h=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(d&&(n||o&&r))h(),this._mouseDownOperation.start(i.type,e,t);else if(s)e.preventDefault();else if(a){const n=i.detail;d&&this.viewHelper.shouldSuppressMouseDownOnViewZone(n.viewZoneId)&&(h(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class _e extends c.jG{constructor(e,t,i,n,s,o){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._mouseTargetFactory=n,this._createMouseTarget=s,this._getMouseColumn=o,this._mouseMoveMonitor=this._register(new H.BA(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new ve(this._context,this._viewHelper,this._mouseTargetFactory,((e,t,i)=>this._dispatchMouse(e,t,i)))),this._mouseState=new Ce,this._currentSelection=new pe.L(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):13!==t.type||"above"!==t.outsidePosition&&"below"!==t.outsidePosition?(this._topBottomDragScrolling.stop(),this._dispatchMouse(t,!0,1)):this._topBottomDragScrolling.start(t,e))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const n=this._findMousePosition(t,!0);if(!n||!n.position)return;this._mouseState.trySetCount(t.detail,n.position),t.detail=this._mouseState.count;const s=this._context.configuration.options;if(!s.get(91)&&s.get(35)&&!s.get(22)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===n.type&&n.position&&this._currentSelection.containsPosition(n.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(e=>{const t=this._findMousePosition(this._lastMouseEvent,!1);l.kx(e)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(n,t.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(()=>this._stop())))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,n=this._context.viewLayout,s=this._getMouseColumn(e);if(e.posy<t.y){const i=t.y-e.posy,o=Math.max(n.getCurrentScrollTop()-i,0),r=ne.getZoneAtCoord(this._context,o);if(r){const e=this._helpPositionJumpOverViewZone(r);if(e)return te.createOutsideEditor(s,e,"above",i)}const a=n.getLineNumberAtVerticalOffset(o);return te.createOutsideEditor(s,new $.y(a,1),"above",i)}if(e.posy>t.y+t.height){const o=e.posy-t.y-t.height,r=n.getCurrentScrollTop()+e.relativePos.y,a=ne.getZoneAtCoord(this._context,r);if(a){const e=this._helpPositionJumpOverViewZone(a);if(e)return te.createOutsideEditor(s,e,"below",o)}const l=n.getLineNumberAtVerticalOffset(r);return te.createOutsideEditor(s,new $.y(l,i.getLineMaxColumn(l)),"below",o)}const o=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+e.relativePos.y);if(e.posx<t.x){const i=t.x-e.posx;return te.createOutsideEditor(s,new $.y(o,1),"left",i)}if(e.posx>t.x+t.width){const n=e.posx-t.x-t.width;return te.createOutsideEditor(s,new $.y(o,i.getLineMaxColumn(o)),"right",n)}return null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const n=this._createMouseTarget(e,t);if(!n.position)return null;if(8===n.type||5===n.type){const e=this._helpPositionJumpOverViewZone(n.detail);if(e)return te.createViewZone(n.type,n.element,n.mouseColumn,e,n.detail)}return n}_helpPositionJumpOverViewZone(e){const t=new $.y(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;return i&&n?i.isBefore(t)?i:n:null}_dispatchMouse(e,t,i){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:i,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class ve extends c.jG{constructor(e,t,i,n){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=n,this._operation=null}dispose(){super.dispose(),this.stop()}start(e,t){this._operation?this._operation.setPosition(e,t):this._operation=new be(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,e,t)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}}class be extends c.jG{constructor(e,t,i,n,s,o){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=n,this._position=s,this._mouseEvent=o,this._lastTime=Date.now(),this._animationFrameDisposable=l.PG(l.zk(o.browserEvent),(()=>this._execute()))}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(e,t){this._position=e,this._mouseEvent=t}_tick(){const e=Date.now(),t=e-this._lastTime;return this._lastTime=e,t}_getScrollSpeed(){const e=this._context.configuration.options.get(67),t=this._context.configuration.options.get(145).height/e,i=this._position.outsideDistance/e;return i<=1.5?Math.max(30,t*(1+i)):i<=3?Math.max(60,t*(2+i)):Math.max(200,t*(7+i))}_execute(){const e=this._context.configuration.options.get(67),t=this._getScrollSpeed()*(this._tick()/1e3)*e,i="above"===this._position.outsidePosition?-t:t;this._context.viewModel.viewLayout.deltaScrollNow(0,i),this._viewHelper.renderNow();const n=this._context.viewLayout.getLinesViewportData(),s="above"===this._position.outsidePosition?n.startLineNumber:n.endLineNumber;let o;{const e=(0,H.wt)(this._viewHelper.viewDomNode),t=this._context.configuration.options.get(145).horizontalScrollbarHeight,i=new H.nz(this._mouseEvent.pos.x,e.y+e.height-t-.1),n=(0,H.i_)(this._viewHelper.viewDomNode,e,i);o=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),e,i,n,null)}o.position&&o.position.lineNumber===s||(o="above"===this._position.outsidePosition?te.createOutsideEditor(this._position.mouseColumn,new $.y(s,1),"above",this._position.outsideDistance):te.createOutsideEditor(this._position.mouseColumn,new $.y(s,this._context.viewModel.getLineMaxColumn(s)),"below",this._position.outsideDistance)),this._dispatchMouse(o,!0,2),this._animationFrameDisposable=l.PG(l.zk(o.element),(()=>this._execute()))}}class Ce{get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=(new Date).getTime();i-this._lastSetMouseDownCountTime>Ce.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}Ce.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var ye=i(68792);class we extends fe{constructor(e,t,i){super(e,t,i),this._register(ce.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(l.ko(this.viewHelper.linesContentDomNode,ce.B.Tap,(e=>this.onTap(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,ce.B.Change,(e=>this.onChange(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,ce.B.Contextmenu,(e=>this._onContextMenu(new H.dO(e,!1,this.viewHelper.viewDomNode),!1)))),this._lastPointerType="mouse",this._register(l.ko(this.viewHelper.linesContentDomNode,"pointerdown",(e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));const n=new H.DW(this.viewHelper.viewDomNode);this._register(n.onPointerMove(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)))),this._register(n.onPointerUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onPointerLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(n.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>this._onMouseDown(e,t))))}onTap(e){e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)&&(e.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(e,!1))}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY),"pen"===this._lastPointerType&&this._dispatchGesture(e,!0)}_dispatchGesture(e,t){const i=this._createMouseTarget(new H.dO(e,!1,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:e.tapCount,inSelectionMode:t,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===i.type&&null!==i.detail.injectedText})}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class Se extends fe{constructor(e,t,i){super(e,t,i),this._register(ce.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(l.ko(this.viewHelper.linesContentDomNode,ce.B.Tap,(e=>this.onTap(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,ce.B.Change,(e=>this.onChange(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,ce.B.Contextmenu,(e=>this._onContextMenu(new H.dO(e,!1,this.viewHelper.viewDomNode),!1))))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new H.dO(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(ye.$D.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position,1)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class ke extends c.jG{constructor(e,t,i){super();(_.un||_.m0&&_.Fr)&&he.e.pointerEvents?this.handler=this._register(new we(e,t,i)):ue.G.TouchEvent?this.handler=this._register(new Se(e,t,i)):this.handler=this._register(new fe(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}var xe=i(31629),Le=i(91508),De=i(69785);class Ee extends z{}var Ne=i(47612),Te=i(87119);class Ie extends Ee{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new $.y(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(67);const t=e.get(68);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(95);const i=e.get(145);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onDecorationsChanged(e){return e.affectsLineNumber}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.y(e,1));if(1!==t.column)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?'<span class="relative-current-line-number">'+i+"</span>":String(e)}if(3===this._renderLineNumbers){if(this._lastCursorModelPosition.lineNumber===i)return String(i);if(i%10===0)return String(i);return i===this._context.viewModel.getLineCount()?String(i):""}return String(i)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=_.j9?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,s=this._context.viewModel.getDecorationsInViewport(e.visibleRange).filter((e=>!!e.options.lineNumberClassName));s.sort(((e,t)=>q.Q.compareRangesUsingEnds(e.range,t.range)));let o=0;const r=this._context.viewModel.getLineCount(),a=[];for(let l=i;l<=n;l++){const e=l-i;let n=this._getLineRenderLineNumber(l),d="";for(;o<s.length&&s[o].range.endLineNumber<l;)o++;for(let t=o;t<s.length;t++){const{range:e,options:i}=s[t];e.startLineNumber<=l&&(d+=" "+i.lineNumberClassName)}n||d?(l===r&&0===this._context.viewModel.getLineLength(l)&&("off"===this._renderFinalNewline&&(n=""),"dimmed"===this._renderFinalNewline&&(d+=" dimmed-line-number")),l===this._activeLineNumber&&(d+=" active-line-number"),a[e]=`<div class="${Ie.CLASS_NAME}${t}${d}" style="left:${this._lineNumbersLeft}px;width:${this._lineNumbersWidth}px;">${n}</div>`):a[e]=""}this._renderResult=a}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Ie.CLASS_NAME="line-numbers",(0,Ne.zy)(((e,t)=>{const i=e.getColor(Te.Qt),n=e.getColor(Te.JB);n?t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${n}; }`):i&&t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i.transparent(.4)}; }`)}));class Me extends j{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=(0,W.Z)(document.createElement("div")),this._domNode.setClassName(Me.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=(0,W.Z)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Me.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}Me.CLASS_NAME="glyph-margin",Me.OUTER_CLASS_NAME="margin";var Ae=i(81782);const Re="monaco-mouse-cursor-text";var Oe=i(62083),Pe=i(47661),Fe=i(2299),Be=i(98031),We=i(63591),Ve=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},He=function(e,t){return function(i,n){t(i,n,e)}};class ze{constructor(e,t,i,n,s){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=n,this.distanceToModelLineEnd=s,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new $.y(this.modelLineNumber,this.distanceToModelLineStart+1),i=new $.y(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(this._previousPresentation=e||{foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const je=p.gm;let Ue=class extends j{constructor(e,t,i,n,s){super(e),this._keybindingService=n,this._instantiationService=s,this._primaryCursorPosition=new $.y(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const o=this._context.configuration.options,r=o.get(145);this._setAccessibilityOptions(o),this._contentLeft=r.contentLeft,this._contentWidth=r.contentWidth,this._contentHeight=r.height,this._fontInfo=o.get(50),this._lineHeight=o.get(67),this._emptySelectionClipboard=o.get(37),this._copyWithSyntaxHighlighting=o.get(25),this._visibleTextArea=null,this._selections=[new pe.L(1,1,1,1)],this._modelSelections=[new pe.L(1,1,1,1)],this._lastRenderPosition=null,this.textArea=(0,W.Z)(document.createElement("textarea")),U.write(this.textArea,7),this.textArea.setClassName(`inputarea ${Re}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:a}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=a*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(o)),this.textArea.setAttribute("aria-required",o.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(o.get(124))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",xe.kg("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",o.get(91)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=(0,W.Z)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const l={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:e=>this._context.viewModel.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.viewModel.getValueInRange(e,t),getValueLengthInRange:(e,t)=>this._context.viewModel.getValueLengthInRange(e,t),modifyPosition:(e,t)=>this._context.viewModel.modifyPosition(e,t)},d={getDataToCopy:()=>{const e=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,_.uF),t=this._context.viewModel.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),n=Array.isArray(e)?e:null,s=Array.isArray(e)?e.join(t):e;let o,r=null;if(ye.Eq.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&s.length<65536){const e=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(o=e.html,r=e.mode)}return{isFromEmptySelection:i,multicursorText:n,text:s,html:o,mode:r}},getScreenReaderContent:()=>{if(1===this._accessibilitySupport){const e=this._selections[0];if(_.zx&&e.isEmpty()){const t=e.getStartPosition();let i=this._getWordBeforePosition(t);if(0===i.length&&(i=this._getCharacterBeforePosition(t)),i.length>0)return new De._O(i,i.length,i.length,q.Q.fromPositions(t),0)}const t=500;if(_.zx&&!e.isEmpty()&&l.getValueLengthInRange(e,0)<t){const t=l.getValueInRange(e,0);return new De._O(t,0,t.length,e,0)}if(p.nr&&!e.isEmpty()){const e="vscode-placeholder";return new De._O(e,0,e.length,null,void 0)}return De._O.EMPTY}if(p.m0){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition(),[i,n]=this._getAndroidWordAtPosition(t);if(i.length>0)return new De._O(i,n,n,q.Q.fromPositions(t),0)}return De._O.EMPTY}return De.Al.fromEditorSelection(l,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,i)},h=this._register(new ye.M0(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(ye.No,d,h,_.OS,{isAndroid:p.m0,isChrome:p.H8,isFirefox:p.gm,isSafari:p.nr})),this._register(this._textAreaInput.onKeyDown((e=>{this._viewController.emitKeyDown(e)}))),this._register(this._textAreaInput.onKeyUp((e=>{this._viewController.emitKeyUp(e)}))),this._register(this._textAreaInput.onPaste((e=>{let t=!1,i=null,n=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null,n=e.metadata.mode),this._viewController.paste(e.text,t,i,n)}))),this._register(this._textAreaInput.onCut((()=>{this._viewController.cut()}))),this._register(this._textAreaInput.onType((e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(De.Hf&&console.log(` => compositionType: <<${e.text}>>, ${e.replacePrevCharCnt}, ${e.replaceNextCharCnt}, ${e.positionDelta}`),this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(De.Hf&&console.log(` => type: <<${e.text}>>`),this._viewController.type(e.text))}))),this._register(this._textAreaInput.onSelectionChangeRequest((e=>{this._viewController.setSelection(e)}))),this._register(this._textAreaInput.onCompositionStart((e=>{const t=this.textArea.domNode,i=this._modelSelections[0],{distanceToModelLineStart:n,widthOfHiddenTextBefore:s}=(()=>{const e=t.value.substring(0,Math.min(t.selectionStart,t.selectionEnd)),n=e.lastIndexOf("\n"),s=e.substring(n+1),o=s.lastIndexOf("\t"),r=s.length-o-1,a=i.getStartPosition(),l=Math.min(a.column-1,r),d=a.column-1-l,h=s.substring(0,s.length-l),{tabSize:c}=this._context.viewModel.model.getOptions(),u=function(e,t,i,n){if(0===t.length)return 0;const s=e.createElement("div");s.style.position="absolute",s.style.top="-50000px",s.style.width="50000px";const o=e.createElement("span");(0,g.M)(o,i),o.style.whiteSpace="pre",o.style.tabSize=n*i.spaceWidth+"px",o.append(t),s.appendChild(o),e.body.appendChild(s);const r=o.offsetWidth;return e.body.removeChild(s),r}(this.textArea.domNode.ownerDocument,h,this._fontInfo,c);return{distanceToModelLineStart:d,widthOfHiddenTextBefore:u}})(),{distanceToModelLineEnd:o}=(()=>{const e=t.value.substring(Math.max(t.selectionStart,t.selectionEnd)),n=e.indexOf("\n"),s=-1===n?e:e.substring(0,n),o=s.indexOf("\t"),r=-1===o?s.length:s.length-o-1,a=i.getEndPosition(),l=Math.min(this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column,r);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column-l}})();this._context.viewModel.revealRange("keyboard",!0,q.Q.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new ze(this._context,i.startLineNumber,n,s,o),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${Re} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()}))),this._register(this._textAreaInput.onCompositionUpdate((e=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())}))),this._register(this._textAreaInput.onCompositionEnd((()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${Re}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()}))),this._register(this._textAreaInput.onFocus((()=>{this._context.viewModel.setHasFocus(!0)}))),this._register(this._textAreaInput.onBlur((()=>{this._context.viewModel.setHasFocus(!1)}))),this._register(Fe.M.onDidChange((()=>{this._ensureReadOnlyAttribute()})))}writeScreenReaderContent(e){this._textAreaInput.writeNativeTextAreaContent(e)}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Ae.i)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',[]);let n=!0,s=e.column,o=!0,r=e.column,a=0;for(;a<50&&(n||o);){if(n&&s<=1&&(n=!1),n){const e=t.charCodeAt(s-2);0!==i.get(e)?n=!1:s--}if(o&&r>t.length&&(o=!1),o){const e=t.charCodeAt(r-1);0!==i.get(e)?o=!1:r++}a++}return[t.substring(s-1,r-1),e.column-s]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Ae.i)(this._context.configuration.options.get(131),[]);let n=e.column,s=0;for(;n>1;){const o=t.charCodeAt(n-2);if(0!==i.get(o)||s>50)return t.substring(n-1,e.column-1);s++,n--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!Le.pc(t.charCodeAt(0)))return t}return""}_getAriaLabel(e){var t,i,n;if(1===e.get(2)){const e=null===(t=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode"))||void 0===t?void 0:t.getAriaLabel(),s=null===(i=this._keybindingService.lookupKeybinding("workbench.action.showCommands"))||void 0===i?void 0:i.getAriaLabel(),o=null===(n=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings"))||void 0===n?void 0:n.getAriaLabel(),r=xe.kg("accessibilityModeOff","The editor is not accessible at this time.");return e?xe.kg("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",r,e):s?xe.kg("accessibilityOffAriaLabelNoKb","{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",r,s):o?xe.kg("accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",r,o):r}return e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===x.qB.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t;const i=e.get(145).wrappingColumn;if(-1!==i&&1!==this._accessibilitySupport){const t=e.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(i*t.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=je?0:1}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(50),this._lineHeight=t.get(67),this._emptySelectionClipboard=t.get(37),this._copyWithSyntaxHighlighting=t.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:n}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=n*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("aria-required",t.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(t.get(124))),(e.hasChanged(34)||e.hasChanged(91))&&this._ensureReadOnlyAttribute(),e.hasChanged(2)&&this._textAreaInput.writeNativeTextAreaContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeNativeTextAreaContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}_ensureReadOnlyAttribute(){const e=this._context.configuration.options;!Fe.M.enabled||e.get(34)&&e.get(91)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(e){var t;this._primaryCursorPosition=new $.y(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),null===(t=this._visibleTextArea)||void 0===t||t.prepareRender(e)}render(e){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){var e;if(this._visibleTextArea){const e=this._visibleTextArea.visibleTextareaStart,t=this._visibleTextArea.visibleTextareaEnd,i=this._visibleTextArea.startPosition,n=this._visibleTextArea.endPosition;if(i&&n&&e&&t&&t.left>=this._scrollLeft&&e.left<=this._scrollLeft+this._contentWidth){const s=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,o=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let r=this._visibleTextArea.widthOfHiddenLineTextBefore,a=this._contentLeft+e.left-this._scrollLeft,l=t.left-e.left+1;if(a<this._contentLeft){const e=this._contentLeft-a;a+=e,r+=e,l-=e}l>this._contentWidth&&(l=this._contentWidth);const d=this._context.viewModel.getViewLineData(i.lineNumber),h=d.tokens.findTokenIndexAtOffset(i.column-1),c=h===d.tokens.findTokenIndexAtOffset(n.column-1),u=this._visibleTextArea.definePresentation(c?d.tokens.getPresentation(h):null);this.textArea.domNode.scrollTop=o*this._lineHeight,this.textArea.domNode.scrollLeft=r,this._doRender({lastRenderPosition:null,top:s,left:a,width:l,height:this._lineHeight,useCover:!1,color:(Oe.dG.getColorMap()||[])[u.foreground],italic:u.italic,bold:u.bold,underline:u.underline,strikethrough:u.strikethrough})}return}if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(t<this._contentLeft||t>this._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const i=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(i<0||i>this._contentHeight)this._renderAtTopLeft();else if(_.zx||2===this._accessibilitySupport){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:i,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const n=null!==(e=this._textAreaInput.textAreaState.newlineCountBeforeSelection)&&void 0!==e?e:this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=n*this._lineHeight}else this._doRender({lastRenderPosition:this._primaryCursorPosition,top:i,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:je?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;for(;;){if(i=e.indexOf("\n",i+1),-1===i)break;t++}return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:je?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;(0,g.M)(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?Pe.Q1.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const n=this._context.configuration.options;n.get(57)?i.setClassName("monaco-editor-background textAreaCover "+Me.OUTER_CLASS_NAME):0!==n.get(68).renderType?i.setClassName("monaco-editor-background textAreaCover "+Ie.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}};Ue=Ve([He(3,Be.b),He(4,We._Y)],Ue);var Ke=i(80624),Ge=i(36999);class $e{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Ge.QM.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new $.y(e.lineNumber,t):e}_hasMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;default:return!1}}_hasNonMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;default:return!1}}dispatchMouse(e){const t=this.configuration.options,i=_.j9&&t.get(107),n=t.get(22);e.middleButton&&!i?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position,e.revealType):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position,e.revealType):this._lastCursorLineSelect(e.position,e.revealType):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):2===e.mouseDownCount?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position,e.revealType):e.inSelectionMode?this._wordSelectDrag(e.position,e.revealType):this._wordSelect(e.position,e.revealType)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position,e.revealType):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position,e.revealType):this.moveTo(e.position,e.revealType)}_usualArgs(e,t){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,revealType:t}}moveTo(e,t){Ge.QM.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_moveToSelect(e,t){Ge.QM.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_columnSelect(e,t,i){e=this._validateViewColumn(e),Ge.QM.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),Ge.QM.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e,t){Ge.QM.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelect(e,t){Ge.QM.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelectDrag(e,t){Ge.QM.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorWordSelect(e,t){Ge.QM.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelect(e,t){Ge.QM.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelectDrag(e,t){Ge.QM.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelect(e,t){Ge.QM.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelectDrag(e,t){Ge.QM.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_selectAll(){Ge.QM.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}var qe=i(80789),Qe=i(99020);class Ye{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new d.D7("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(t<i){const i=t-e+1;return this._rendLineNumberStart-=i,null}if(e>n)return null;let s=0,o=0;for(let r=i;r<=n;r++){const i=r-this._rendLineNumberStart;e<=r&&r<=t&&(0===o?(s=i,o=1):o++)}if(e<i){let n=0;n=t<i?t-e+1:i-e,this._rendLineNumberStart-=n}return this._lines.splice(s,o)}onLinesChanged(e,t){const i=e+t-1;if(0===this.getCount())return!1;const n=this.getStartLineNumber(),s=this.getEndLineNumber();let o=!1;for(let r=e;r<=i;r++)r>=n&&r<=s&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o}onLinesInserted(e,t){if(0===this.getCount())return null;const i=t-e+1,n=this.getStartLineNumber(),s=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>s)return null;if(i+e>s){return this._lines.splice(e-this._rendLineNumberStart,s-e+1)}const o=[];for(let h=0;h<i;h++)o[h]=this._createLine();const r=e-this._rendLineNumberStart,a=this._lines.slice(0,r),l=this._lines.slice(r,this._lines.length-i),d=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=a.concat(o).concat(l),d}onTokensChanged(e){if(0===this.getCount())return!1;const t=this.getStartLineNumber(),i=this.getEndLineNumber();let n=!1;for(let s=0,o=e.length;s<o;s++){const o=e[s];if(o.toLineNumber<t||o.fromLineNumber>i)continue;const r=Math.max(t,o.fromLineNumber),a=Math.min(i,o.toLineNumber);for(let e=r;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),n=!0}}return n}}class Ze{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Ye((()=>this._host.createVisibleLine()))}_createDomNode(){const e=(0,W.Z)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(145)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,n=t.length;i<n;i++){const e=t[i].getDomNode();e&&this.domNode.domNode.removeChild(e)}return!0}onLinesInserted(e){const t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,n=t.length;i<n;i++){const e=t[i].getDomNode();e&&this.domNode.domNode.removeChild(e)}return!0}onScrollChanged(e){return e.scrollTopChanged}onTokensChanged(e){return this._linesCollection.onTokensChanged(e.ranges)}onZonesChanged(e){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(e){return this._linesCollection.getLine(e)}renderLines(e){const t=this._linesCollection._get(),i=new Xe(this.domNode.domNode,this._host,e),n={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},s=i.render(n,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(s.rendLineNumberStart,s.lines)}}class Xe{constructor(e,t,i){this.domNode=e,this.host=t,this.viewportData=i}render(e,t,i,n){const s={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(s.rendLineNumberStart+s.linesLength-1<t||i<s.rendLineNumberStart){s.rendLineNumberStart=t,s.linesLength=i-t+1,s.lines=[];for(let e=t;e<=i;e++)s.lines[e-t]=this.host.createVisibleLine();return this._finishRendering(s,!0,n),s}if(this._renderUntouchedLines(s,Math.max(t-s.rendLineNumberStart,0),Math.min(i-s.rendLineNumberStart,s.linesLength-1),n,t),s.rendLineNumberStart>t){const e=t,o=Math.min(i,s.rendLineNumberStart-1);e<=o&&(this._insertLinesBefore(s,e,o,n,t),s.linesLength+=o-e+1)}else if(s.rendLineNumberStart<t){const e=Math.min(s.linesLength,t-s.rendLineNumberStart);e>0&&(this._removeLinesBefore(s,e),s.linesLength-=e)}if(s.rendLineNumberStart=t,s.rendLineNumberStart+s.linesLength-1<i){const e=s.rendLineNumberStart+s.linesLength,o=i;e<=o&&(this._insertLinesAfter(s,e,o,n,t),s.linesLength+=o-e+1)}else if(s.rendLineNumberStart+s.linesLength-1>i){const e=Math.max(0,i-s.rendLineNumberStart+1),t=s.linesLength-1-e+1;t>0&&(this._removeLinesAfter(s,t),s.linesLength-=t)}return this._finishRendering(s,!1,n),s}_renderUntouchedLines(e,t,i,n,s){const o=e.rendLineNumberStart,r=e.lines;for(let a=t;a<=i;a++){const e=o+a;r[a].layoutLine(e,n[e-s],this.viewportData.lineHeight)}}_insertLinesBefore(e,t,i,n,s){const o=[];let r=0;for(let a=t;a<=i;a++)o[r++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i<t;i++){const t=e.lines[i].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(0,t)}_insertLinesAfter(e,t,i,n,s){const o=[];let r=0;for(let a=t;a<=i;a++)o[r++]=this.host.createVisibleLine();e.lines=e.lines.concat(o)}_removeLinesAfter(e,t){const i=e.linesLength-t;for(let n=0;n<t;n++){const t=e.lines[i+n].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(i,t)}_finishRenderingNewLines(e,t,i,n){Xe._ttPolicy&&(i=Xe._ttPolicy.createHTML(i));const s=this.domNode.lastChild;t||!s?this.domNode.innerHTML=i:s.insertAdjacentHTML("afterend",i);let o=this.domNode.lastChild;for(let r=e.linesLength-1;r>=0;r--){const t=e.lines[r];n[r]&&(t.setDomNode(o),o=o.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");Xe._ttPolicy&&(t=Xe._ttPolicy.createHTML(t)),n.innerHTML=t;for(let s=0;s<e.linesLength;s++){const t=e.lines[s];if(i[s]){const e=n.firstChild,i=t.getDomNode();i.parentNode.replaceChild(e,i),t.setDomNode(e)}}}_finishRendering(e,t,i){const n=Xe._sb,s=e.linesLength,o=e.lines,r=e.rendLineNumberStart,a=[];{n.reset();let l=!1;for(let e=0;e<s;e++){const t=o[e];a[e]=!1;if(t.getDomNode())continue;t.renderLine(e+r,i[e],this.viewportData.lineHeight,this.viewportData,n)&&(a[e]=!0,l=!0)}l&&this._finishRenderingNewLines(e,t,n.build(),a)}{n.reset();let t=!1;const l=[];for(let e=0;e<s;e++){const s=o[e];if(l[e]=!1,a[e])continue;s.renderLine(e+r,i[e],this.viewportData.lineHeight,this.viewportData,n)&&(l[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,n.build(),l)}}}Xe._ttPolicy=(0,qe.H)("editorViewLayer",{createHTML:e=>e}),Xe._sb=new Qe.fe(1e5);class Je extends j{constructor(e){super(e),this._visibleLines=new Ze(this),this.domNode=this._visibleLines.domNode;const t=this._context.configuration.options.get(50);(0,g.M)(this.domNode,t),this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;e<t;e++){if(this._dynamicOverlays[e].shouldRender())return!0}return!1}dispose(){super.dispose();for(let e=0,t=this._dynamicOverlays.length;e<t;e++){this._dynamicOverlays[e].dispose()}this._dynamicOverlays=[]}getDomNode(){return this.domNode}createVisibleLine(){return new et(this._dynamicOverlays)}addDynamicOverlay(e){this._dynamicOverlays.push(e)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e);const t=this._context.configuration.options.get(50);return(0,g.M)(this.domNode,t),!0}onFlushed(e){return this._visibleLines.onFlushed(e)}onFocusChanged(e){return this._isFocused=e.isFocused,!0}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onScrollChanged(e){return this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._visibleLines.onZonesChanged(e)}prepareRender(e){const t=this._dynamicOverlays.filter((e=>e.shouldRender()));for(let i=0,n=t.length;i<n;i++){const n=t[i];n.prepareRender(e),n.onDidRender()}}render(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(e){this._visibleLines.renderLines(e.viewportData)}}class et{constructor(e){this._dynamicOverlays=e,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(e){this._domNode=(0,W.Z)(e)}onContentChanged(){}onTokensChanged(){}renderLine(e,t,i,n,s){let o="";for(let r=0,a=this._dynamicOverlays.length;r<a;r++){o+=this._dynamicOverlays[r].render(n.startLineNumber,e)}return this._renderedContent!==o&&(this._renderedContent=o,s.appendString('<div style="top:'),s.appendString(String(t)),s.appendString("px;height:"),s.appendString(String(i)),s.appendString('px;">'),s.appendString(o),s.appendString("</div>"),!0)}layoutLine(e,t,i){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(i))}}class tt extends Je{constructor(e){super(e);const t=this._context.configuration.options.get(145);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options.get(145);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class it extends Je{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,g.M)(this.domNode,t.get(50))}onConfigurationChanged(e){const t=this._context.configuration.options;(0,g.M)(this.domNode,t.get(50));const i=t.get(145);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class nt{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){var t;null===(t=this.onKeyDown)||void 0===t||t.call(this,e)}emitKeyUp(e){var t;null===(t=this.onKeyUp)||void 0===t||t.call(this,e)}emitContextMenu(e){var t;null===(t=this.onContextMenu)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseMove(e){var t;null===(t=this.onMouseMove)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){var t;null===(t=this.onMouseLeave)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDown(e){var t;null===(t=this.onMouseDown)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseUp(e){var t;null===(t=this.onMouseUp)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){var t;null===(t=this.onMouseDrag)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){var t;null===(t=this.onMouseDrop)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){var e;null===(e=this.onMouseDropCanceled)||void 0===e||e.call(this)}emitMouseWheel(e){var t;null===(t=this.onMouseWheel)||void 0===t||t.call(this,e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return nt.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i={...e};return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),5!==i.type&&8!==i.type||(i.detail=this.convertViewToModelViewZoneData(i.detail,t)),i}static convertViewToModelViewZoneData(e,t){return{viewZoneId:e.viewZoneId,positionBefore:e.positionBefore?t.convertViewPositionToModelPosition(e.positionBefore):e.positionBefore,positionAfter:e.positionAfter?t.convertViewPositionToModelPosition(e.positionAfter):e.positionAfter,position:t.convertViewPositionToModelPosition(e.position),afterLineNumber:t.convertViewPositionToModelPosition(new $.y(e.afterLineNumber,1)).lineNumber}}}class st extends j{constructor(e){super(e),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=(0,W.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let e=!1;const t=this._context.configuration.options.get(145),i=t.contentWidth-t.verticalScrollbarWidth;this.contentWidth!==i&&(this.contentWidth=i,e=!0);const n=t.contentLeft;return this.contentLeft!==n&&(this.contentLeft=n,e=!0),e}dispose(){super.dispose()}onConfigurationChanged(e){return this.update()}onScrollChanged(e){return e.scrollTopChanged||e.scrollLeftChanged}onDecorationsChanged(e){return!0}onZonesChanged(e){return!0}prepareRender(e){}render(e){var t;let i=0;const n=e.getDecorationsInViewport();for(const s of n){if(!s.options.blockClassName)continue;let n,o,r=this.blocks[i];r||(r=this.blocks[i]=(0,W.Z)(document.createElement("div")),this.domNode.appendChild(r)),s.options.blockIsAfterEnd?(n=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!1),o=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0)):(n=e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!0),o=s.range.isEmpty()&&!s.options.blockDoesNotCollapse?e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!1):e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0));const[a,l,d,h]=null!==(t=s.options.blockPadding)&&void 0!==t?t:[0,0,0,0];r.setClassName("blockDecorations-block "+s.options.blockClassName),r.setLeft(this.contentLeft-h),r.setWidth(this.contentWidth+h+l),r.setTop(n-e.scrollTop-a),r.setHeight(o-n+a+d),i++}for(let s=i;s<this.blocks.length;s++)this.blocks[s].domNode.remove();this.blocks.length=i}}class ot extends j{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=(0,W.Z)(document.createElement("div")),U.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=(0,W.Z)(document.createElement("div")),U.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesDeleted(e){return this._updateAnchorsViewPositions(),!0}onLinesInserted(e){return this._updateAnchorsViewPositions(),!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}_updateAnchorsViewPositions(){const e=Object.keys(this._widgets);for(const t of e)this._widgets[t].updateAnchorViewPosition()}addWidget(e){const t=new rt(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i,n,s){this._widgets[e.getId()].setPosition(t,i,n,s),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t];delete this._widgets[t];const i=e.domNode.domNode;i.parentNode.removeChild(i),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class rt{constructor(e,t,i){this._primaryAnchor=new at(null,null),this._secondaryAnchor=new at(null,null),this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=(0,W.Z)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const n=this._context.configuration.options,s=n.get(145);this._fixedOverflowWidgets=n.get(42),this._contentWidth=s.contentWidth,this._contentLeft=s.contentLeft,this._lineHeight=n.get(67),this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(67),e.hasChanged(145)){const e=t.get(145);this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth()}}updateAnchorViewPosition(){this._setPosition(this._affinity,this._primaryAnchor.modelPosition,this._secondaryAnchor.modelPosition)}_setPosition(e,t,i){function n(e,t,i){if(!e)return new at(null,null);const n=t.model.validatePosition(e);if(t.coordinatesConverter.modelPositionIsVisible(n)){const s=t.coordinatesConverter.convertModelPositionToViewPosition(n,null!==i&&void 0!==i?i:void 0);return new at(e,s)}return new at(e,null)}this._affinity=e,this._primaryAnchor=n(t,this._context.viewModel,this._affinity),this._secondaryAnchor=n(i,this._context.viewModel,this._affinity)}_getMaxWidth(){const e=this.domNode.domNode.ownerDocument,t=e.defaultView;return this.allowEditorOverflow?(null===t||void 0===t?void 0:t.innerWidth)||e.documentElement.offsetWidth||e.body.offsetWidth:this._contentWidth}setPosition(e,t,i,n){this._setPosition(n,e,t),this._preference=i,this._primaryAnchor.viewPosition&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,n){const s=e.top,o=s,r=e.top+e.height,a=s-i,l=o>=i,d=r,h=n.viewportHeight-r>=i;let c=e.left;return c+t>n.scrollLeft+n.viewportWidth&&(c=n.scrollLeft+n.viewportWidth-t),c<n.scrollLeft&&(c=n.scrollLeft),{fitsAbove:l,aboveTop:a,fitsBelow:h,belowTop:d,left:c}}_layoutHorizontalSegmentInPage(e,t,i,n){var s;const o=Math.max(15,t.left-n),r=Math.min(t.left+t.width+n,e.width-15),a=this._viewDomNode.domNode.ownerDocument.defaultView;let l=t.left+i-(null!==(s=null===a||void 0===a?void 0:a.scrollX)&&void 0!==s?s:0);if(l+n>r){const e=l-(r-n);l-=e,i-=e}if(l<o){const e=l-o;l-=e,i-=e}return[i,l]}_layoutBoxInPage(e,t,i,n){var s,o;const r=e.top-i,a=e.top+e.height,d=l.BK(this._viewDomNode.domNode),h=this._viewDomNode.domNode.ownerDocument,c=h.defaultView,u=d.top+r-(null!==(s=null===c||void 0===c?void 0:c.scrollY)&&void 0!==s?s:0),g=d.top+a-(null!==(o=null===c||void 0===c?void 0:c.scrollY)&&void 0!==o?o:0),p=l.tG(h.body),[m,f]=this._layoutHorizontalSegmentInPage(p,d,e.left-n.scrollLeft+this._contentLeft,t),_=u>=22,v=g+i<=p.height-22;return this._fixedOverflowWidgets?{fitsAbove:_,aboveTop:Math.max(u,22),fitsBelow:v,belowTop:g,left:f}:{fitsAbove:_,aboveTop:r,fitsBelow:v,belowTop:a,left:m}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new lt(e.top,e.left+this._contentLeft)}_getAnchorsCoordinates(e){var t,i;return{primary:n(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),secondary:n((null===(t=this._secondaryAnchor.viewPosition)||void 0===t?void 0:t.lineNumber)===(null===(i=this._primaryAnchor.viewPosition)||void 0===i?void 0:i.lineNumber)?this._secondaryAnchor.viewPosition:null,this._affinity,this._lineHeight)};function n(t,i,n){if(!t)return null;const s=e.visibleRangeForPosition(t);if(!s)return null;const o=1===t.column&&3===i?0:s.left,r=e.getVerticalOffsetForLineNumber(t.lineNumber)-e.scrollTop;return new dt(r,o,n)}}_reduceAnchorCoordinates(e,t,i){if(!t)return e;const n=this._context.configuration.options.get(50);let s=t.left;return s=s<e.left?Math.max(s,e.left-i+n.typicalFullwidthCharacterWidth):Math.min(s,e.left+i-n.typicalFullwidthCharacterWidth),new dt(e.top,s,e.height)}_prepareRenderWidget(e){if(!this._preference||0===this._preference.length)return null;const{primary:t,secondary:i}=this._getAnchorsCoordinates(e);if(!t)return null;if(-1===this._cachedDomNodeOffsetWidth||-1===this._cachedDomNodeOffsetHeight){let e=null;if("function"===typeof this._actual.beforeRender&&(e=ht(this._actual.beforeRender,this._actual)),e)this._cachedDomNodeOffsetWidth=e.width,this._cachedDomNodeOffsetHeight=e.height;else{const e=this.domNode.domNode.getBoundingClientRect();this._cachedDomNodeOffsetWidth=Math.round(e.width),this._cachedDomNodeOffsetHeight=Math.round(e.height)}}const n=this._reduceAnchorCoordinates(t,i,this._cachedDomNodeOffsetWidth);let s;s=this.allowEditorOverflow?this._layoutBoxInPage(n,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e):this._layoutBoxInViewport(n,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e);for(let o=1;o<=2;o++)for(const e of this._preference)if(1===e){if(!s)return null;if(2===o||s.fitsAbove)return{coordinate:new lt(s.aboveTop,s.left),position:1}}else{if(2!==e)return this.allowEditorOverflow?{coordinate:this._prepareRenderWidgetAtExactPositionOverflowing(new lt(n.top,n.left)),position:0}:{coordinate:new lt(n.top,n.left),position:0};if(!s)return null;if(2===o||s.fitsBelow)return{coordinate:new lt(s.belowTop,s.left),position:2}}return null}onBeforeRender(e){this._primaryAnchor.viewPosition&&this._preference&&(this._primaryAnchor.viewPosition.lineNumber<e.startLineNumber||this._primaryAnchor.viewPosition.lineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),void("function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,this._renderData.position)}}class at{constructor(e,t){this.modelPosition=e,this.viewPosition=t}}class lt{constructor(e,t){this.top=e,this.left=t,this._coordinateBrand=void 0}}class dt{constructor(e,t,i){this.top=e,this.left=t,this.height=i,this._anchorCoordinateBrand=void 0}}function ht(e,t,...i){try{return e.call(t,...i)}catch(n){return null}}var ct=i(86723);class ut extends Ee{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(145);this._renderLineHighlight=t.get(96),this._renderLineHighlightOnlyWhenFocus=t.get(97),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new pe.L(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=new Set;for(const s of this._selections)t.add(s.positionLineNumber);const i=Array.from(t);i.sort(((e,t)=>e-t)),m.aI(this._cursorLineNumbers,i)||(this._cursorLineNumbers=i,e=!0);const n=this._selections.every((e=>e.isEmpty()));return this._selectionIsEmpty!==n&&(this._selectionIsEmpty=n,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._renderLineHighlight=t.get(96),this._renderLineHighlightOnlyWhenFocus=t.get(97),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=[];for(let o=t;o<=i;o++){n[o-t]=""}if(this._wordWrap){const s=this._renderOne(e,!1);for(const e of this._cursorLineNumbers){const o=this._context.viewModel.coordinatesConverter,r=o.convertViewPositionToModelPosition(new $.y(e,1)).lineNumber,a=o.convertModelPositionToViewPosition(new $.y(r,1)).lineNumber,l=o.convertModelPositionToViewPosition(new $.y(r,this._context.viewModel.model.getLineMaxColumn(r))).lineNumber,d=Math.max(a,t),h=Math.min(l,i);for(let e=d;e<=h;e++){n[e-t]=s}}}const s=this._renderOne(e,!0);for(const o of this._cursorLineNumbers){if(o<t||o>i)continue;n[o-t]=s}this._renderData=n}render(e,t){if(!this._renderData)return"";const i=t-e;return i>=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class gt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-both":"")+(t?" current-line-exact":"")}" style="width:${Math.max(e.scrollWidth,this._contentWidth)}px;"></div>`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class pt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-margin":"")+(this._shouldRenderOther()?" current-line-margin-both":"")+(this._shouldRenderInMargin()&&t?" current-line-exact-margin":"")}" style="width:${this._contentLeft}px"></div>`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}(0,Ne.zy)(((e,t)=>{const i=e.getColor(Te.kG);if(i&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${i}; border: none; }`)),!i||i.isTransparent()||e.defines(Te.Mf)){const i=e.getColor(Te.Mf);i&&(t.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${i}; }`),(0,ct.Bb)(e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}}));class mt extends Ee{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let a=0,l=t.length;a<l;a++){const e=t[a];e.options.className&&(i[n++]=e)}i=i.sort(((e,t)=>{if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;const i=e.options.className,n=t.options.className;return i<n?-1:i>n?1:q.Q.compareRangesUsingStarts(e.range,t.range)}));const s=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,r=[];for(let a=s;a<=o;a++){r[a-s]=""}this._renderWholeLineDecorations(e,i,r),this._renderNormalDecorations(e,i,r),this._renderResult=r}_renderWholeLineDecorations(e,t,i){const n=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(let o=0,r=t.length;o<r;o++){const e=t[o];if(!e.options.isWholeLine)continue;const r='<div class="cdr '+e.options.className+'" style="left:0;width:100%;"></div>',a=Math.max(e.range.startLineNumber,n),l=Math.min(e.range.endLineNumber,s);for(let t=a;t<=l;t++){i[t-n]+=r}}}_renderNormalDecorations(e,t,i){var n;const s=e.visibleRange.startLineNumber;let o=null,r=!1,a=null,l=!1;for(let d=0,h=t.length;d<h;d++){const h=t[d];if(h.options.isWholeLine)continue;const c=h.options.className,u=Boolean(h.options.showIfCollapsed);let g=h.range;u&&1===g.endColumn&&g.endLineNumber!==g.startLineNumber&&(g=new q.Q(g.startLineNumber,g.startColumn,g.endLineNumber-1,this._context.viewModel.getLineMaxColumn(g.endLineNumber-1))),o===c&&r===u&&q.Q.areIntersectingOrTouching(a,g)?a=q.Q.plusRange(a,g):(null!==o&&this._renderNormalDecoration(e,a,o,l,r,s,i),o=c,r=u,a=g,l=null!==(n=h.options.shouldFillLineOnLineBreak)&&void 0!==n&&n)}null!==o&&this._renderNormalDecoration(e,a,o,l,r,s,i)}_renderNormalDecoration(e,t,i,n,s,o,r){const a=e.linesVisibleRangesForRange(t,"findMatch"===i);if(a)for(let l=0,d=a.length;l<d;l++){const e=a[l];if(e.outsideRenderedLine)continue;const t=e.lineNumber-o;if(s&&1===e.ranges.length){const t=e.ranges[0];if(t.width<this._typicalHalfwidthCharacterWidth){const i=Math.round(t.left+t.width/2),n=Math.max(0,Math.round(i-this._typicalHalfwidthCharacterWidth/2));e.ranges[0]=new Ke.Y(n,this._typicalHalfwidthCharacterWidth)}}for(let s=0,o=e.ranges.length;s<o;s++){const a=n&&e.continuesOnNextLine&&1===o,l=e.ranges[s],d='<div class="cdr '+i+'" style="left:'+String(l.left)+"px;width:"+(a?"100%;":String(l.width)+"px;")+'"></div>';r[t]+=d}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class ft extends j{constructor(e,t,i,n){super(e);const s=this._context.configuration.options,o=s.get(103),r=s.get(75),a=s.get(40),d=s.get(106),h={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,Ne.Pz)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:o.vertical,horizontal:o.horizontal,verticalHasArrows:o.verticalHasArrows,horizontalHasArrows:o.horizontalHasArrows,verticalScrollbarSize:o.verticalScrollbarSize,verticalSliderSize:o.verticalSliderSize,horizontalScrollbarSize:o.horizontalScrollbarSize,horizontalSliderSize:o.horizontalSliderSize,handleMouseWheel:o.handleMouseWheel,alwaysConsumeMouseWheel:o.alwaysConsumeMouseWheel,arrowSize:o.arrowSize,mouseWheelScrollSensitivity:r,fastScrollSensitivity:a,scrollPredominantAxis:d,scrollByPage:o.scrollByPage};this.scrollbar=this._register(new me.oO(t.domNode,h,this._context.viewLayout.getScrollable())),U.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=(0,W.Z)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const c=(e,t,i)=>{const n={};if(t){const t=e.scrollTop;t&&(n.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){const t=e.scrollLeft;t&&(n.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(n,1)};this._register(l.ko(i.domNode,"scroll",(e=>c(i.domNode,!0,!0)))),this._register(l.ko(t.domNode,"scroll",(e=>c(t.domNode,!0,!1)))),this._register(l.ko(n.domNode,"scroll",(e=>c(n.domNode,!0,!1)))),this._register(l.ko(this.scrollbarDomNode.domNode,"scroll",(e=>c(this.scrollbarDomNode.domNode,!0,!1))))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(145);this.scrollbarDomNode.setLeft(t.contentLeft);"right"===e.get(73).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this.scrollbar.delegateScrollFromMouseWheelEvent(e)}onConfigurationChanged(e){if(e.hasChanged(103)||e.hasChanged(75)||e.hasChanged(40)){const e=this._context.configuration.options,t=e.get(103),i=e.get(75),n=e.get(40),s=e.get(106),o={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:n,scrollPredominantAxis:s};this.scrollbar.updateOptions(o)}return e.hasChanged(145)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,Ne.Pz)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}var _t=i(16223);class vt{constructor(e,t,i,n,s){this.startLineNumber=e,this.endLineNumber=t,this.className=i,this.tooltip=n,this._decorationToRenderBrand=void 0,this.zIndex=null!==s&&void 0!==s?s:0}}class bt{constructor(e,t,i){this.className=e,this.zIndex=t,this.tooltip=i}}class Ct{constructor(){this.decorations=[]}add(e){this.decorations.push(e)}getDecorations(){return this.decorations}}class yt extends Ee{_render(e,t,i){const n=[];for(let r=e;r<=t;r++){n[r-e]=new Ct}if(0===i.length)return n;i.sort(((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1));let s=null,o=0;for(let r=0,a=i.length;r<a;r++){const a=i[r],l=a.className,d=a.zIndex;let h=Math.max(a.startLineNumber,e)-e;const c=Math.min(a.endLineNumber,t)-e;s===l?(h=Math.max(o+1,h),o=Math.max(o,c)):(s=l,o=c);for(let e=h;e<=o;e++)n[e].add(new bt(l,d,a.tooltip))}return n}}class wt extends j{constructor(e){super(e),this._widgets={},this._context=e;const t=this._context.configuration.options,i=t.get(145);this.domNode=(0,W.Z)(document.createElement("div")),this.domNode.setClassName("glyph-margin-widgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,this._managedDomNodes=[],this._decorationGlyphsToRender=[]}dispose(){this._managedDomNodes=[],this._decorationGlyphsToRender=[],this._widgets={},super.dispose()}getWidgets(){return Object.values(this._widgets)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}addWidget(e){const t=(0,W.Z)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:e.getPosition(),domNode:t,renderInfo:null},t.setPosition("absolute"),t.setDisplay("none"),t.setAttribute("widgetId",e.getId()),this.domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return(i.preference.lane!==t.lane||i.preference.zIndex!==t.zIndex||!q.Q.equalsRange(i.preference.range,t.range))&&(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){var t;const i=e.getId();if(this._widgets[i]){const e=this._widgets[i].domNode.domNode;delete this._widgets[i],null===(t=e.parentNode)||void 0===t||t.removeChild(e),this.setShouldRender()}}_collectDecorationBasedGlyphRenderRequest(e,t){var i,n,s;const o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=e.getDecorationsInViewport();for(const l of a){const e=l.options.glyphMarginClassName;if(!e)continue;const a=Math.max(l.range.startLineNumber,o),d=Math.min(l.range.endLineNumber,r),h=null!==(n=null===(i=l.options.glyphMargin)||void 0===i?void 0:i.position)&&void 0!==n?n:_t.ZS.Center,c=null!==(s=l.options.zIndex)&&void 0!==s?s:0;for(let i=a;i<=d;i++){const n=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.y(i,0)),s=this._context.viewModel.glyphLanes.getLanesAtLine(n.lineNumber).indexOf(h);t.push(new St(i,s,c,e))}}}_collectWidgetBasedGlyphRenderRequest(e,t){const i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;for(const s of Object.values(this._widgets)){const e=s.preference.range,{startLineNumber:o,endLineNumber:r}=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(q.Q.lift(e));if(!o||!r||r<i||o>n)continue;const a=Math.max(o,i),l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.y(a,0)),d=this._context.viewModel.glyphLanes.getLanesAtLine(l.lineNumber).indexOf(s.preference.lane);t.push(new kt(a,d,s.preference.zIndex,s))}}_collectSortedGlyphRenderRequests(e){const t=[];return this._collectDecorationBasedGlyphRenderRequest(e,t),this._collectWidgetBasedGlyphRenderRequest(e,t),t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.laneIndex===t.laneIndex?e.zIndex===t.zIndex?t.type===e.type?0===e.type&&0===t.type?e.className<t.className?-1:1:0:t.type-e.type:t.zIndex-e.zIndex:e.laneIndex-t.laneIndex:e.lineNumber-t.lineNumber)),t}prepareRender(e){if(!this._glyphMargin)return void(this._decorationGlyphsToRender=[]);for(const n of Object.values(this._widgets))n.renderInfo=null;const t=new m.j3(this._collectSortedGlyphRenderRequests(e)),i=[];for(;t.length>0;){const e=t.peek();if(!e)break;const n=t.takeWhile((t=>t.lineNumber===e.lineNumber&&t.laneIndex===e.laneIndex));if(!n||0===n.length)break;const s=n[0];if(0===s.type){const e=[];for(const t of n){if(t.zIndex!==s.zIndex||t.type!==s.type)break;0!==e.length&&e[e.length-1]===t.className||e.push(t.className)}i.push(s.accept(e.join(" ")))}else s.widget.renderInfo={lineNumber:s.lineNumber,laneIndex:s.laneIndex}}this._decorationGlyphsToRender=i}render(e){if(!this._glyphMargin){for(const e of Object.values(this._widgets))e.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;){const e=this._managedDomNodes.pop();null===e||void 0===e||e.domNode.remove()}return}const t=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(const i of Object.values(this._widgets))if(i.renderInfo){const n=e.viewportData.relativeVerticalOffset[i.renderInfo.lineNumber-e.viewportData.startLineNumber],s=this._glyphMarginLeft+i.renderInfo.laneIndex*this._lineHeight;i.domNode.setDisplay("block"),i.domNode.setTop(n),i.domNode.setLeft(s),i.domNode.setWidth(t),i.domNode.setHeight(this._lineHeight)}else i.domNode.setDisplay("none");for(let i=0;i<this._decorationGlyphsToRender.length;i++){const n=this._decorationGlyphsToRender[i],s=e.viewportData.relativeVerticalOffset[n.lineNumber-e.viewportData.startLineNumber],o=this._glyphMarginLeft+n.laneIndex*this._lineHeight;let r;i<this._managedDomNodes.length?r=this._managedDomNodes[i]:(r=(0,W.Z)(document.createElement("div")),this._managedDomNodes.push(r),this.domNode.appendChild(r)),r.setClassName("cgmr codicon "+n.combinedClassName),r.setPosition("absolute"),r.setTop(s),r.setLeft(o),r.setWidth(t),r.setHeight(this._lineHeight)}for(;this._managedDomNodes.length>this._decorationGlyphsToRender.length;){const e=this._managedDomNodes.pop();null===e||void 0===e||e.domNode.remove()}}}class St{constructor(e,t,i,n){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.className=n,this.type=0}accept(e){return new xt(this.lineNumber,this.laneIndex,e)}}class kt{constructor(e,t,i,n){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.widget=n,this.type=1}}class xt{constructor(e,t,i){this.lineNumber=e,this.laneIndex=t,this.combinedClassName=i}}var Lt=i(631),Dt=i(53450),Et=i(84739);class Nt extends Ee{constructor(e){super(),this._context=e,this._primaryPosition=null;const t=this._context.configuration.options,i=t.get(146),n=t.get(50);this._spaceWidth=n.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146),n=t.get(50);return this._spaceWidth=n.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),!0}onCursorStateChanged(e){var t;const i=e.selections[0].getPosition();return!(null===(t=this._primaryPosition)||void 0===t?void 0:t.equals(i))&&(this._primaryPosition=i,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){var t,i,n,s;if(!this._bracketPairGuideOptions.indentation&&!1===this._bracketPairGuideOptions.bracketPairs)return void(this._renderResult=null);const o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=e.scrollWidth,l=this._primaryPosition,d=this.getGuidesByLine(o,Math.min(r+1,this._context.viewModel.getLineCount()),l),h=[];for(let c=o;c<=r;c++){const r=c-o,l=d[r];let u="";const g=null!==(i=null===(t=e.visibleRangeForPosition(new $.y(c,1)))||void 0===t?void 0:t.left)&&void 0!==i?i:0;for(const t of l){const i=-1===t.column?g+(t.visibleColumn-1)*this._spaceWidth:e.visibleRangeForPosition(new $.y(c,t.column)).left;if(i>a||this._maxIndentLeft>0&&i>this._maxIndentLeft)break;const o=t.horizontalLine?t.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",r=t.horizontalLine?(null!==(s=null===(n=e.visibleRangeForPosition(new $.y(c,t.horizontalLine.endColumn)))||void 0===n?void 0:n.left)&&void 0!==s?s:i+this._spaceWidth)-i:this._spaceWidth;u+=`<div class="core-guide ${t.className} ${o}" style="left:${i}px;width:${r}px"></div>`}h[r]=u}this._renderResult=h}getGuidesByLine(e,t,i){const n=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?Et.N6.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?Et.N6.EnabledForActive:Et.N6.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,s=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let o=0,r=0,a=0;if(!1!==this._bracketPairGuideOptions.highlightActiveIndentation&&i){const n=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);o=n.startLineNumber,r=n.endLineNumber,a=n.indent}const{indentSize:l}=this._context.viewModel.model.getOptions(),d=[];for(let h=e;h<=t;h++){const t=new Array;d.push(t);const i=n?n[h-e]:[],c=new m.j3(i),u=s?s[h-e]:0;for(let e=1;e<=u;e++){const n=(e-1)*l+1,s=("always"===this._bracketPairGuideOptions.highlightActiveIndentation||0===i.length)&&o<=h&&h<=r&&e===a;t.push(...c.takeWhile((e=>e.visibleColumn<n))||[]);const d=c.peek();d&&d.visibleColumn===n&&!d.horizontalLine||t.push(new Et.TH(n,-1,"core-guide-indent lvl-"+(e-1)%30+(s?" indent-active":""),null,-1,-1))}t.push(...c.takeWhile((e=>!0))||[])}return d}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function Tt(e){if(!e||!e.isTransparent())return e}(0,Ne.zy)(((e,t)=>{const i=[{bracketColor:Te.sN,guideColor:Te.n4,guideColorActive:Te.bB},{bracketColor:Te.lQ,guideColor:Te.I2,guideColorActive:Te.WS},{bracketColor:Te.ss,guideColor:Te.Bo,guideColorActive:Te.Pe},{bracketColor:Te.l5,guideColor:Te.If,guideColorActive:Te.WD},{bracketColor:Te.sH,guideColor:Te.BD,guideColorActive:Te.P1},{bracketColor:Te.zp,guideColor:Te.IW,guideColorActive:Te.WY}],n=new Dt.k,s=[{indentColor:Te.vV,indentColorActive:Te.H0},{indentColor:Te.ob,indentColorActive:Te.Am},{indentColor:Te.hz,indentColorActive:Te.tK},{indentColor:Te.ow,indentColorActive:Te.A3},{indentColor:Te.vP,indentColorActive:Te.tp},{indentColor:Te.CM,indentColorActive:Te.As}],o=i.map((t=>{var i,n;const s=e.getColor(t.bracketColor),o=e.getColor(t.guideColor),r=e.getColor(t.guideColorActive),a=Tt(null!==(i=Tt(o))&&void 0!==i?i:null===s||void 0===s?void 0:s.transparent(.3)),l=Tt(null!==(n=Tt(r))&&void 0!==n?n:s);if(a&&l)return{guideColor:a,guideColorActive:l}})).filter(Lt.O9),r=s.map((t=>{const i=e.getColor(t.indentColor),n=e.getColor(t.indentColorActive),s=Tt(i),o=Tt(n);if(s&&o)return{indentColor:s,indentColorActive:o}})).filter(Lt.O9);if(o.length>0){for(let e=0;e<30;e++){const i=o[e%o.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(e).replace(/ /g,".")} { --guide-color: ${i.guideColor}; --guide-color-active: ${i.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${n.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${n.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${n.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(r.length>0){for(let e=0;e<30;e++){const i=r[e%r.length];t.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${e} { --indent-color: ${i.indentColor}; --indent-color-active: ${i.indentColorActive}; }`)}t.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),t.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}}));var It=i(90766);class Mt{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(e,t){this._domNode=e,this.endNode=t,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}class At{constructor(){this._currentVisibleRange=new q.Q(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Rt{constructor(e,t,i,n,s,o,r){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=n,this.startScrollTop=s,this.stopScrollTop=o,this.scrollType=r,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Ot{constructor(e,t,i,n,s){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=n,this.scrollType=s,this.type="selections";let o=t[0].startLineNumber,r=t[0].endLineNumber;for(let a=1,l=t.length;a<l;a++){const e=t[a];o=Math.min(o,e.startLineNumber),r=Math.max(r,e.endLineNumber)}this.minLineNumber=o,this.maxLineNumber=r}}class Pt extends j{constructor(e,t){super(e),this._linesContent=t,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new Ze(this),this.domNode=this._visibleLines.domNode;const i=this._context.configuration,n=this._context.configuration.options,s=n.get(50),o=n.get(146);this._lineHeight=n.get(67),this._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this._isViewportWrapping=o.isViewportWrapping,this._revealHorizontalRightPadding=n.get(100),this._cursorSurroundingLines=n.get(29),this._cursorSurroundingLinesStyle=n.get(30),this._canUseLayerHinting=!n.get(32),this._viewLineOptions=new G.Ax(i,this._context.theme.type),U.write(this.domNode,8),this.domNode.setClassName(`view-lines ${Re}`),(0,g.M)(this.domNode,s),this._maxLineWidth=0,this._asyncUpdateLineWidths=new It.uC((()=>{this._updateLineWidthsSlow()}),200),this._asyncCheckMonospaceFontAssumptions=new It.uC((()=>{this._checkMonospaceFontAssumptions()}),2e3),this._lastRenderedData=new At,this._horizontalRevealRequest=null,this._stickyScrollEnabled=n.get(115).enabled,this._maxNumberStickyLines=n.get(115).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new G.Gb(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(146)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(50),n=t.get(146);return this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(100),this._cursorSurroundingLines=t.get(29),this._cursorSurroundingLinesStyle=t.get(30),this._canUseLayerHinting=!t.get(32),this._stickyScrollEnabled=t.get(115).enabled,this._maxNumberStickyLines=t.get(115).maxLineCount,(0,g.M)(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(145)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new G.Ax(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let t=e;t<=i;t++){this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions)}return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let s=t;s<=i;s++)n=this._visibleLines.getVisibleLine(s).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Rt(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Ot(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const n=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,n),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>i)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(null===i)return null;const n=this._getLineNumberFor(i);if(-1===n)return null;if(n<1||n>this._context.viewModel.getLineCount())return null;if(1===this._context.viewModel.getLineMaxColumn(n))return new $.y(n,1);const s=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();if(n<s||n>o)return null;let r=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(e,t);const a=this._context.viewModel.getLineMinColumn(n);return r<a&&(r=a),new $.y(n,r)}_getViewLineDomNode(e){for(;e&&1===e.nodeType;){if(e.className===G.Gb.CLASS_NAME)return e;e=e.parentElement}return null}_getLineNumberFor(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let n=t;n<=i;n++){if(e===this._visibleLines.getVisibleLine(n).getDomNode())return n}return-1}getLineWidth(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();if(e<t||e>i)return-1;const n=new Mt(this.domNode.domNode,this._textRangeRestingSpot),s=this._visibleLines.getVisibleLine(e).getWidth(n);return this._updateLineWidthsSlowIfDomDidLayout(n),s}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=q.Q.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;const s=[];let o=0;const r=new Mt(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.y(n.startLineNumber,1)).lineNumber);const l=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber();for(let h=n.startLineNumber;h<=n.endLineNumber;h++){if(h<l||h>d)continue;const e=h===n.startLineNumber?n.startColumn:1,c=h!==n.endLineNumber,u=c?this._context.viewModel.getLineMaxColumn(h):n.endColumn,g=this._visibleLines.getVisibleLine(h).getVisibleRangesForRange(h,e,u,r);if(g){if(t&&h<i){const e=a;a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.y(h+1,1)).lineNumber,e!==a&&(g.ranges[g.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}s[o++]=new Ke.BG(g.outsideRenderedLine,h,Ke.Y.from(g.ranges),c)}}return this._updateLineWidthsSlowIfDomDidLayout(r),0===o?null:s}_visibleRangesForLineRange(e,t,i){if(this.shouldRender())return null;if(e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber())return null;const n=new Mt(this.domNode.domNode,this._textRangeRestingSpot),s=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,n);return this._updateLineWidthsSlowIfDomDidLayout(n),s}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new Ke.qN(t.outsideRenderedLine,t.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(e){e.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,s=!0;for(let o=t;o<=i;o++){const t=this._visibleLines.getVisibleLine(o);!e||t.getWidthIsFast()?n=Math.max(n,t.getWidth(null)):s=!1}return s&&1===t&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),s}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let s=i;s<=n;s++){const i=this._visibleLines.getVisibleLine(s);if(i.needsMonospaceFontCheck()){const n=i.getWidth(null);n>t&&(t=n,e=s)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let s=i;s<=n;s++){this._visibleLines.getVisibleLine(s).onMonospaceAssumptionsInvalidated()}}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),_.j9&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++){if(this._visibleLines.getVisibleLine(i).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(e,t,i,n,s,o){const r=e.top,a=e.height,l=r+a;let d,h,c;if(s&&s.length>0){let e=s[0].startLineNumber,t=s[0].endLineNumber;for(let i=1,n=s.length;i<n;i++){const n=s[i];e=Math.min(e,n.startLineNumber),t=Math.max(t,n.endLineNumber)}d=!1,h=this._context.viewLayout.getVerticalOffsetForLineNumber(e),c=this._context.viewLayout.getVerticalOffsetForLineNumber(t)+this._lineHeight}else{if(!n)return-1;d=!0,h=this._context.viewLayout.getVerticalOffsetForLineNumber(n.startLineNumber),c=this._context.viewLayout.getVerticalOffsetForLineNumber(n.endLineNumber)+this._lineHeight}let u,g=0,p=0;if(("mouse"===t||i)&&"default"===this._cursorSurroundingLinesStyle)i||(g=this._lineHeight);else{const e=Math.min(a/this._lineHeight/2,this._cursorSurroundingLines);g=this._stickyScrollEnabled?Math.max(e,this._maxNumberStickyLines)*this._lineHeight:e*this._lineHeight,p=Math.max(0,e-1)*this._lineHeight}if(i||0!==o&&4!==o||(p+=this._lineHeight),h-=g,c+=p,c-h>a){if(!d)return-1;u=h}else if(5===o||6===o)if(6===o&&r<=h&&c<=l)u=r;else{const e=h-Math.max(5*this._lineHeight,.2*a),t=c-a;u=Math.max(t,e)}else if(1===o||2===o)if(2===o&&r<=h&&c<=l)u=r;else{const e=(h+c)/2;u=Math.max(0,e-a/2)}else u=this._computeMinimumScrolling(r,l,h,c,3===o,4===o);return u}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=this._context.configuration.options.get(145),n=t.left,s=n+t.width-i.verticalScrollbarWidth;let o=1073741824,r=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)o=Math.min(o,Math.round(e.left)),r=Math.max(r,Math.round(e.left+e.width))}else for(const a of e.selections){if(a.startLineNumber!==a.endLineNumber)return null;const e=this._visibleRangesForLineRange(a.startLineNumber,a.startColumn,a.endColumn);if(!e)return null;for(const t of e.ranges)o=Math.min(o,Math.round(t.left)),r=Math.max(r,Math.round(t.left+t.width))}if(e.minimalReveal||(o=Math.max(0,o-Pt.HORIZONTAL_EXTRA_PX),r+=this._revealHorizontalRightPadding),"selections"===e.type&&r-o>t.width)return null;return{scrollLeft:this._computeMinimumScrolling(n,s,o,r),maxHorizontalOffset:r}}_computeMinimumScrolling(e,t,i,n,s,o){s=!!s,o=!!o;const r=(t|=0)-(e|=0);return(n|=0)-(i|=0)<r?s?i:o?Math.max(0,n-r):i<e?i:n>t?Math.max(0,n-r):e:i}}Pt.HORIZONTAL_EXTRA_PX=30;class Ft extends yt{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(145);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(145);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){var t,i;const n=e.getDecorationsInViewport(),s=[];let o=0;for(let r=0,a=n.length;r<a;r++){const e=n[r],a=e.options.linesDecorationsClassName,l=e.options.zIndex;a&&(s[o++]=new vt(e.range.startLineNumber,e.range.endLineNumber,a,null!==(t=e.options.linesDecorationsTooltip)&&void 0!==t?t:null,l));const d=e.options.firstLineDecorationClassName;d&&(s[o++]=new vt(e.range.startLineNumber,e.range.startLineNumber,d,null!==(i=e.options.linesDecorationsTooltip)&&void 0!==i?i:null,l))}return s}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=this._render(t,i,this._getDecorations(e)),s='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',o=[];for(let r=t;r<=i;r++){const e=r-t,i=n[e].getDecorations();let a="";for(const t of i){let e='<div class="cldr '+t.className;null!==t.tooltip&&(e+='" title="'+t.tooltip),e+=s,a+=e}o[e]=a}this._renderResult=o}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Bt extends yt{constructor(e){super(),this._context=e,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let n=0;for(let s=0,o=t.length;s<o;s++){const e=t[s],o=e.options.marginClassName,r=e.options.zIndex;o&&(i[n++]=new vt(e.range.startLineNumber,e.range.endLineNumber,o,null,r))}return i}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=this._render(t,i,this._getDecorations(e)),s=[];for(let o=t;o<=i;o++){const e=o-t,i=n[e].getDecorations();let r="";for(const t of i)r+='<div class="cmdr '+t.className+'" style=""></div>';s[e]=r}this._renderResult=s}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}var Wt=i(34072);class Vt{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=Vt._clamp(e),this.g=Vt._clamp(t),this.b=Vt._clamp(i),this.a=Vt._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}Vt.Empty=new Vt(0,0,0,0);class Ht extends c.jG{static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,c.lC)(new Ht)),this._INSTANCE}constructor(){super(),this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Oe.dG.onDidChange((e=>{e.changedColorMap&&this._updateColorMap()})))}_updateColorMap(){const e=Oe.dG.getColorMap();if(!e)return this._colors=[Vt.Empty],void(this._backgroundIsLight=!0);this._colors=[Vt.Empty];for(let i=1;i<e.length;i++){const t=e[i].rgba;this._colors[i]=new Vt(t.r,t.g,t.b,Math.round(255*t.a))}const t=e[2].getRelativeLuminance();this._backgroundIsLight=t>=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}Ht._INSTANCE=null;var zt=i(92896),jt=i(85845);const Ut=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})();var Kt=i(85152);class Gt{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=Gt.soften(e,.8),this.charDataLight=Gt.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let n=0,s=e.length;n<s;n++)i[n]=(0,Kt.W)(e[n]*t);return i}renderChar(e,t,i,n,s,o,r,a,l,d,h){const c=1*this.scale,u=2*this.scale,g=h?1:u;if(t+c>e.width||i+g>e.height)return void console.warn("bad render request outside image data");const p=d?this.charDataLight:this.charDataNormal,m=((e,t)=>(e-=32)<0||e>96?t<=2?(e+96)%96:95:e)(n,l),f=4*e.width,_=r.r,v=r.g,b=r.b,C=s.r-_,y=s.g-v,w=s.b-b,S=Math.max(o,a),k=e.data;let x=m*c*u,L=i*f+4*t;for(let D=0;D<g;D++){let e=L;for(let t=0;t<c;t++){const t=p[x++]/255*(o/255);k[e++]=_+C*t,k[e++]=v+y*t,k[e++]=b+w*t,k[e++]=S}L+=f}}blockRenderChar(e,t,i,n,s,o,r,a){const l=1*this.scale,d=2*this.scale,h=a?1:d;if(t+l>e.width||i+h>e.height)return void console.warn("bad render request outside image data");const c=4*e.width,u=s/255*.5,g=o.r,p=o.g,m=o.b,f=g+(n.r-g)*u,_=p+(n.g-p)*u,v=m+(n.b-m)*u,b=Math.max(s,r),C=e.data;let y=i*c+4*t;for(let w=0;w<h;w++){let e=y;for(let t=0;t<l;t++)C[e++]=f,C[e++]=_,C[e++]=v,C[e++]=b;y+=c}}}var $t=i(6921);const qt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},Qt=e=>{const t=new Uint8ClampedArray(e.length/2);for(let i=0;i<e.length;i+=2)t[i>>1]=qt[e[i]]<<4|15&qt[e[i+1]];return t},Yt={1:(0,$t.P)((()=>Qt("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792"))),2:(0,$t.P)((()=>Qt("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")))};class Zt{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return i=Yt[e]?new Gt(Yt[e](),e):Zt.createFromSampleData(Zt.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let n=0;for(const s of Ut)i.fillText(String.fromCharCode(s),n,8),n+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");const i=Zt._downsample(e,t);return new Gt(i,t)}static _downsampleChar(e,t,i,n,s){const o=1*s,r=2*s;let a=n,l=0;for(let d=0;d<r;d++){const n=d/r*16,s=(d+1)/r*16;for(let r=0;r<o;r++){const d=r/o*10,h=(r+1)/o*10;let c=0,u=0;for(let i=n;i<s;i++){const n=t+3840*Math.floor(i),s=1-(i-Math.floor(i));for(let t=d;t<h;t++){const i=1-(t-Math.floor(t)),o=n+4*Math.floor(t),r=i*s;u+=r,c+=e[o]*e[o+3]/255*r}}const g=c/u;l=Math.max(l,g),i[a++]=(0,Kt.W)(g)}}return l}static _downsample(e,t){const i=2*t*1*t,n=96*i,s=new Uint8ClampedArray(n);let o=0,r=0,a=0;for(let l=0;l<96;l++)a=Math.max(a,this._downsampleChar(e,r,s,o,t)),o+=i,r+=40;if(a>0){const e=255/a;for(let t=0;t<n;t++)s[t]*=e}return s}}var Xt=i(74320);const Jt=_.uF?'"Segoe WPC", "Segoe UI", sans-serif':_.zx?"-apple-system, BlinkMacSystemFont, sans-serif":'system-ui, "Ubuntu", "Droid Sans", sans-serif';class ei{constructor(e,t,i){const n=e.options,s=n.get(143),o=n.get(145),r=o.minimap,a=n.get(50),l=n.get(73);this.renderMinimap=r.renderMinimap,this.size=l.size,this.minimapHeightIsEditorHeight=r.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=n.get(105),this.paddingTop=n.get(84).top,this.paddingBottom=n.get(84).bottom,this.showSlider=l.showSlider,this.autohide=l.autohide,this.pixelRatio=s,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.lineHeight=n.get(67),this.minimapLeft=r.minimapLeft,this.minimapWidth=r.minimapWidth,this.minimapHeight=o.height,this.canvasInnerWidth=r.minimapCanvasInnerWidth,this.canvasInnerHeight=r.minimapCanvasInnerHeight,this.canvasOuterWidth=r.minimapCanvasOuterWidth,this.canvasOuterHeight=r.minimapCanvasOuterHeight,this.isSampling=r.minimapIsSampling,this.editorHeight=o.height,this.fontScale=r.minimapScale,this.minimapLineHeight=r.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.sectionHeaderFontFamily=Jt,this.sectionHeaderFontSize=l.sectionHeaderFontSize*s,this.sectionHeaderFontColor=ei._getSectionHeaderColor(t,i.getColor(1)),this.charRenderer=(0,$t.P)((()=>Zt.create(this.fontScale,a.fontFamily))),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=ei._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=ei._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(jt.ILr);return i?new Vt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(jt.K1Z);return t?Vt._clamp(Math.round(255*t.rgba.a)):255}static _getSectionHeaderColor(e,t){const i=e.getColor(jt.By2);return i?new Vt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.paddingTop===e.paddingTop&&this.paddingBottom===e.paddingBottom&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.sectionHeaderFontSize===e.sectionHeaderFontSize&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class ti{constructor(e,t,i,n,s,o,r,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=s,this.sliderHeight=o,this.topPaddingLineCount=r,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumber,e.endLineNumber);return t>i?null:[t,i]}getYForLineNumber(e,t){return+(e-this.startLineNumber+this.topPaddingLineCount)*t}static create(e,t,i,n,s,o,r,a,l,d,h){const c=e.pixelRatio,u=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/u),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){let t=a*e.lineHeight+e.paddingTop+e.paddingBottom;e.scrollBeyondLastLine&&(t+=Math.max(0,s-e.lineHeight-e.paddingBottom));const i=Math.max(1,Math.floor(s*s/t)),n=Math.max(0,e.minimapHeight-i),o=n/(d-s),h=l*o,c=n>0,u=Math.floor(e.canvasInnerHeight/e.minimapLineHeight),g=Math.floor(e.paddingTop/e.lineHeight);return new ti(l,d,c,o,h,i,g,1,Math.min(r,u))}let m;if(o&&i!==r){const e=i-t+1;m=Math.floor(e*u/c)}else{const e=s/p;m=Math.floor(e*u/c)}const f=Math.floor(e.paddingTop/p);let _,v=Math.floor(e.paddingBottom/p);if(e.scrollBeyondLastLine){const e=s/p;v=Math.max(v,e-1)}if(v>0){_=(f+r+v-s/p-1)*u/c}else _=Math.max(0,(f+r)*u/c-m);_=Math.min(e.minimapHeight-m,_);const b=_/(d-s),C=l*b;if(g>=f+r+v){return new ti(l,d,_>0,b,C,m,f,1,r)}{let i,s;i=t>1?t+f:Math.max(1,l/p);let o=Math.max(1,Math.floor(i-C*c/u));o<f?(s=f-o+1,o=1):(s=0,o=Math.max(1,o-f)),h&&h.scrollHeight===d&&(h.scrollTop>l&&(o=Math.min(o,h.startLineNumber),s=Math.max(s,h.topPaddingLineCount)),h.scrollTop<l&&(o=Math.max(o,h.startLineNumber),s=Math.min(s,h.topPaddingLineCount)));const a=Math.min(r,o-s+g-1),_=(l-n)/p;let v;return v=l>=e.paddingTop?(t-o+s+_)*u/c:l/e.paddingTop*(s+_)*u/c,new ti(l,d,!0,b,v,m,s,o,a)}}}class ii{constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}ii.INVALID=new ii(-1);class ni{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Ye((()=>ii.INVALID)),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get().lines;for(let i=0,n=t.length;i<n;i++)if(-1===t[i].dy)return!1;return!0}scrollEquals(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber}_get(){const e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}}onLinesChanged(e,t){return this._renderedLines.onLinesChanged(e,t)}onLinesDeleted(e,t){this._renderedLines.onLinesDeleted(e,t)}onLinesInserted(e,t){this._renderedLines.onLinesInserted(e,t)}onTokensChanged(e){return this._renderedLines.onTokensChanged(e)}}class si{constructor(e,t,i,n){this._backgroundFillData=si._createBackgroundFillData(t,i,n),this._buffers=[e.createImageData(t,i),e.createImageData(t,i)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;const e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e}static _createBackgroundFillData(e,t,i){const n=i.r,s=i.g,o=i.b,r=i.a,a=new Uint8ClampedArray(e*t*4);let l=0;for(let d=0;d<t;d++)for(let t=0;t<e;t++)a[l]=n,a[l+1]=s,a[l+2]=o,a[l+3]=r,l+=4;return a}}class oi{static compute(e,t,i){if(0===e.renderMinimap||!e.isSampling)return[null,[]];const{minimapLineCount:n}=x.xZ.computeContainedMinimapLineCount({viewLineCount:t,scrollBeyondLastLine:e.scrollBeyondLastLine,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:e.editorHeight,lineHeight:e.lineHeight,pixelRatio:e.pixelRatio}),s=t/n,o=s/2;if(!i||0===i.minimapLines.length){const e=[];if(e[0]=1,n>1){for(let t=0,i=n-1;t<i;t++)e[t]=Math.round(t*s+o);e[n-1]=t}return[new oi(s,e),[]]}const r=i.minimapLines,a=r.length,l=[];let d=0,h=0,c=1;let u=[],g=null;for(let p=0;p<n;p++){const e=Math.max(c,Math.round(p*s)),i=Math.max(e,Math.round((p+1)*s));for(;d<a&&r[d]<e;){if(u.length<10){const e=d+1+h;g&&"deleted"===g.type&&g._oldIndex===d-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:d,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--}d++}let m;if(d<a&&r[d]<=i)m=r[d],d++;else if(m=0===p?1:p+1===n?t:Math.round(p*s+o),u.length<10){const e=d+1+h;g&&"inserted"===g.type&&g._i===p-1?g.insertToLineNumber++:(g={type:"inserted",_i:p,insertFromLineNumber:e,insertToLineNumber:e},u.push(g)),h++}l[p]=m,c=m}if(u.length<10)for(;d<a;){const e=d+1+h;g&&"deleted"===g.type&&g._oldIndex===d-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:d,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--,d++}else u=[{type:"flush"}];return[new oi(s,l),u]}constructor(e,t){this.samplingRatio=e,this.minimapLines=t}modelLineToMinimapLine(e){return Math.min(this.minimapLines.length,Math.max(1,Math.round(e/this.samplingRatio)))}modelLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e)-1;for(;i>0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1<this.minimapLines.length&&this.minimapLines[n+1]<=t;)n++;if(i===n){const n=this.minimapLines[i];if(n<e||n>t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let s=this.minimapLines.length-1;s>=0&&!(this.minimapLines[s]<e.fromLineNumber);s--)this.minimapLines[s]<=e.toLineNumber?(this.minimapLines[s]=Math.max(1,e.fromLineNumber-1),i=Math.min(i,s),n=Math.max(n,s)):this.minimapLines[s]-=t;return[i,n]}onLinesInserted(e){const t=e.toLineNumber-e.fromLineNumber+1;for(let i=this.minimapLines.length-1;i>=0&&!(this.minimapLines[i]<e.fromLineNumber);i--)this.minimapLines[i]+=t}}class ri extends j{constructor(e){super(e),this._sectionHeaderCache=new Xt.qK(10,1.5),this.tokensColorTracker=Ht.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);const[t]=oi.compute(this.options,this._context.viewModel.getLineCount(),null);this._samplingState=t,this._shouldCheckSampling=!1,this._actual=new ai(e.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){const e=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(e)&&(this.options=e,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(e){return this._onOptionsMaybeChanged()}onCursorStateChanged(e){return this._selections=e.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(e){return!!e.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(e){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(e){if(this._samplingState){const t=this._samplingState.modelLineRangeToMinimapLineRange(e.fromLineNumber,e.fromLineNumber+e.count-1);return!!t&&this._actual.onLinesChanged(t[0],t[1]-t[0]+1)}return this._actual.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){if(this._samplingState){const[t,i]=this._samplingState.onLinesDeleted(e);return t<=i&&this._actual.onLinesChanged(t+1,i-t+1),this._shouldCheckSampling=!0,!0}return this._actual.onLinesDeleted(e.fromLineNumber,e.toLineNumber)}onLinesInserted(e){return this._samplingState?(this._samplingState.onLinesInserted(e),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(e.fromLineNumber,e.toLineNumber)}onScrollChanged(e){return this._actual.onScrollChanged()}onThemeChanged(e){return this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(e){if(this._samplingState){const t=[];for(const i of e.ranges){const e=this._samplingState.modelLineRangeToMinimapLineRange(i.fromLineNumber,i.toLineNumber);e&&t.push({fromLineNumber:e[0],toLineNumber:e[1]})}return!!t.length&&this._actual.onTokensChanged(t)}return this._actual.onTokensChanged(e.ranges)}onTokensColorsChanged(e){return this._onOptionsMaybeChanged(),this._actual.onTokensColorsChanged()}onZonesChanged(e){return this._actual.onZonesChanged()}prepareRender(e){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(e){let t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber;this._samplingState&&(t=this._samplingState.modelLineToMinimapLine(t),i=this._samplingState.modelLineToMinimapLine(i));const n={viewportContainsWhitespaceGaps:e.viewportData.whitespaceViewportData.length>0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=oi.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const n of i)switch(n.type){case"deleted":this._actual.onLinesDeleted(n.deleteFromLineNumber,n.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(n.insertFromLineNumber,n.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const n=[];for(let s=0,o=t-e+1;s<o;s++)i[s]?n[s]=this._context.viewModel.getViewLineData(this._samplingState.minimapLines[e+s-1]):n[s]=null;return n}return this._context.viewModel.getMinimapLinesRenderingData(e,t,i).data}getSelections(){if(null===this._minimapSelections)if(this._samplingState){this._minimapSelections=[];for(const e of this._selections){const[t,i]=this._samplingState.decorationLineRangeToMinimapLineRange(e.startLineNumber,e.endLineNumber);this._minimapSelections.push(new pe.L(t,e.startColumn,i,e.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(e,t){const i=this._getMinimapDecorationsInViewport(e,t).filter((e=>{var t;return!(null===(t=e.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle)}));if(this._samplingState){const e=[];for(const t of i){if(!t.options.minimap)continue;const i=t.range,n=this._samplingState.modelLineToMinimapLine(i.startLineNumber),s=this._samplingState.modelLineToMinimapLine(i.endLineNumber);e.push(new zt.vo(new q.Q(n,i.startColumn,s,i.endColumn),t.options))}return e}return i}getSectionHeaderDecorationsInViewport(e,t){const i=this.options.minimapLineHeight,n=this.options.sectionHeaderFontSize/i;return e=Math.floor(Math.max(1,e-n)),this._getMinimapDecorationsInViewport(e,t).filter((e=>{var t;return!!(null===(t=e.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle)}))}_getMinimapDecorationsInViewport(e,t){let i;if(this._samplingState){const n=this._samplingState.minimapLines[e-1],s=this._samplingState.minimapLines[t-1];i=new q.Q(n,1,s,this._context.viewModel.getLineMaxColumn(s))}else i=new q.Q(e,1,t,this._context.viewModel.getLineMaxColumn(t));return this._context.viewModel.getMinimapDecorationsInRange(i)}getSectionHeaderText(e,t){var i;const n=null===(i=e.options.minimap)||void 0===i?void 0:i.sectionHeaderText;if(!n)return null;const s=this._sectionHeaderCache.get(n);if(s)return s;const o=t(n);return this._sectionHeaderCache.set(n,o),o}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new q.Q(e,1,e,1),1,0)}setScrollTop(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}}class ai extends c.jG{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(jt.yr0),this._domNode=(0,W.Z)(document.createElement("div")),U.write(this._domNode,9),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=(0,W.Z)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=(0,W.Z)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=(0,W.Z)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=(0,W.Z)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=(0,W.Z)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=l.b2(this._domNode.domNode,l.Bx.POINTER_DOWN,(e=>{e.preventDefault();if(0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(0===e.button&&this._lastRenderData){const t=l.BK(this._slider.domNode),i=t.top+t.height/2;this._startSliderDragging(e,i,this._lastRenderData.renderedLayout)}return}const t=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.offsetY;let n=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;n=Math.min(n,this._model.getLineCount()),this._model.revealLineNumber(n)})),this._sliderPointerMoveMonitor=new Wt._,this._sliderPointerDownListener=l.b2(this._slider.domNode,l.Bx.POINTER_DOWN,(e=>{e.preventDefault(),e.stopPropagation(),0===e.button&&this._lastRenderData&&this._startSliderDragging(e,e.pageY,this._lastRenderData.renderedLayout)})),this._gestureDisposable=ce.q.addTarget(this._domNode.domNode),this._sliderTouchStartListener=l.ko(this._domNode.domNode,ce.B.Start,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))}),{passive:!1}),this._sliderTouchMoveListener=l.ko(this._domNode.domNode,ce.B.Change,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)}),{passive:!1}),this._sliderTouchEndListener=l.b2(this._domNode.domNode,ce.B.End,(e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)}))}_startSliderDragging(e,t,i){if(!e.target||!(e.target instanceof Element))return;const n=e.pageX;this._slider.toggleClassName("active",!0);const s=(e,s)=>{const o=l.BK(this._domNode.domNode),r=Math.min(Math.abs(s-n),Math.abs(s-o.left),Math.abs(s-o.left-o.width));if(_.uF&&r>140)return void this._model.setScrollTop(i.scrollTop);const a=e-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(a))};e.pageY!==t&&s(e.pageY,n),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>s(e.pageY,e.pageX)),(()=>{this._slider.toggleClassName("active",!1)}))}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return"always"===this._model.options.showSlider?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new si(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){var i;return null===(i=this._lastRenderData)||void 0===i||i.onLinesDeleted(e,t),!0}onLinesInserted(e,t){var i;return null===(i=this._lastRenderData)||void 0===i||i.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(jt.yr0),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const t=ti.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(q.Q.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort(((e,t)=>(e.options.zIndex||0)-(t.options.zIndex||0)));const{canvasInnerWidth:n,canvasInnerHeight:s}=this._model.options,o=this._model.options.minimapLineHeight,r=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,n,s);const d=new li(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(l,t,d,e,o),this._renderDecorationsLineHighlights(l,i,d,e,o);const h=new li(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(l,t,h,e,o,a,r,n),this._renderDecorationsHighlights(l,i,h,e,o,a,r,n),this._renderSectionHeaders(e)}}_renderSelectionLineHighlights(e,t,i,n,s){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let o=0,r=0;for(const a of t){const t=n.intersectWithViewport(a);if(!t)continue;const[l,d]=t;for(let e=l;e<=d;e++)i.set(e,!0);const h=n.getYForLineNumber(l,s),c=n.getYForLineNumber(d,s);r>=h||(r>o&&e.fillRect(x.xq,o,e.canvas.width,r-o),o=h),r=c}r>o&&e.fillRect(x.xq,o,e.canvas.width,r-o)}_renderDecorationsLineHighlights(e,t,i,n,s){const o=new Map;for(let r=t.length-1;r>=0;r--){const a=t[r],l=a.options.minimap;if(!l||1!==l.position)continue;const d=n.intersectWithViewport(a.range);if(!d)continue;const[h,c]=d,u=l.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=o.get(u.toString());g||(g=u.transparent(.5).toString(),o.set(u.toString(),g)),e.fillStyle=g;for(let t=h;t<=c;t++){if(i.has(t))continue;i.set(t,!0);const o=n.getYForLineNumber(h,s);e.fillRect(x.xq,o,e.canvas.width,s)}}}_renderSelectionsHighlights(e,t,i,n,s,o,r,a){if(this._selectionColor&&!this._selectionColor.isTransparent())for(const l of t){const t=n.intersectWithViewport(l);if(!t)continue;const[d,h]=t;for(let c=d;c<=h;c++)this.renderDecorationOnLine(e,i,l,this._selectionColor,n,c,s,s,o,r,a)}}_renderDecorationsHighlights(e,t,i,n,s,o,r,a){for(const l of t){const t=l.options.minimap;if(!t)continue;const d=n.intersectWithViewport(l.range);if(!d)continue;const[h,c]=d,u=t.getColor(this._theme.value);if(u&&!u.isTransparent())for(let g=h;g<=c;g++)switch(t.position){case 1:this.renderDecorationOnLine(e,i,l.range,u,n,g,s,s,o,r,a);continue;case 2:{const t=n.getYForLineNumber(g,s),i=2;this.renderDecoration(e,u,i,t,2,s);continue}}}}renderDecorationOnLine(e,t,i,n,s,o,r,a,l,d,h){const c=s.getYForLineNumber(o,a);if(c+r<0||c>this._model.options.canvasInnerHeight)return;const{startLineNumber:u,endLineNumber:g}=i,p=u===o?i.startColumn:1,m=g===o?i.endColumn:this._model.getLineMaxColumn(o),f=this.getXOffsetForPosition(t,o,p,l,d,h),_=this.getXOffsetForPosition(t,o,m,l,d,h);this.renderDecoration(e,n,f,c,_-f,r)}getXOffsetForPosition(e,t,i,n,s,o){if(1===i)return x.xq;if((i-1)*s>=o)return o;let r=e.get(t);if(!r){const i=this._model.getLineContent(t);r=[x.xq];let a=x.xq;for(let e=1;e<i.length+1;e++){const t=i.charCodeAt(e-1),l=a+(9===t?n*s:Le.ne(t)?2*s:s);if(l>=o){r[e]=o;break}r[e]=l,a=l}e.set(t,r)}return i-1<r.length?r[i-1]:o}renderDecoration(e,t,i,n,s,o){e.fillStyle=t&&t.toString()||"",e.fillRect(i,n,s,o)}_renderSectionHeaders(e){var t;const i=this._model.options.minimapLineHeight,n=this._model.options.sectionHeaderFontSize,s=1.5*n,{canvasInnerWidth:o}=this._model.options,r=this._model.options.backgroundColor,a=`rgb(${r.r} ${r.g} ${r.b} / .7)`,l=this._model.options.sectionHeaderFontColor,d=`rgb(${l.r} ${l.g} ${l.b})`,h=d,c=this._decorationsCanvas.domNode.getContext("2d");c.font=n+"px "+this._model.options.sectionHeaderFontFamily,c.strokeStyle=h,c.lineWidth=.2;const u=this._model.getSectionHeaderDecorationsInViewport(e.startLineNumber,e.endLineNumber);u.sort(((e,t)=>e.range.startLineNumber-t.range.startLineNumber));const g=ai._fitSectionHeader.bind(null,c,o-x.xq);for(const p of u){const r=e.getYForLineNumber(p.range.startLineNumber,i)+n,l=r-n,h=l+2,u=this._model.getSectionHeaderText(p,g);ai._renderSectionLabel(c,u,2===(null===(t=p.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle),a,d,o,l,s,r,h)}}static _fitSectionHeader(e,t,i){if(!i)return i;const n=e.measureText(i).width,s=e.measureText("\u2026").width;if(n<=t||n<=s)return i;const o=i.length,r=n/i.length,a=Math.floor((t-s)/r)-1;let l=Math.ceil(a/2);for(;l>0&&/\s/.test(i[l-1]);)--l;return i.substring(0,l)+"\u2026"+i.substring(o-(a-l))}static _renderSectionLabel(e,t,i,n,s,o,r,a,l,d){t&&(e.fillStyle=n,e.fillRect(0,r,o,a),e.fillStyle=s,e.fillText(t,x.xq,l)),i&&(e.beginPath(),e.moveTo(0,d),e.lineTo(o,d),e.closePath(),e.stroke())}renderLines(e){const t=e.startLineNumber,i=e.endLineNumber,n=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){const t=this._lastRenderData._get();return new ni(e,t.imageData,t.lines)}const s=this._getBuffer();if(!s)return null;const[o,r,a]=ai._renderUntouchedLines(s,e.topPaddingLineCount,t,i,n,this._lastRenderData),l=this._model.getMinimapLinesRenderingData(t,i,a),d=this._model.getOptions().tabSize,h=this._model.options.defaultBackgroundColor,c=this._model.options.backgroundColor,u=this._model.options.foregroundAlpha,g=this._model.tokensColorTracker,p=g.backgroundIsLight(),m=this._model.options.renderMinimap,f=this._model.options.charRenderer(),_=this._model.options.fontScale,v=this._model.options.minimapCharWidth,b=(1===m?2:3)*_,C=n>b?Math.floor((n-b)/2):0,y=c.a/255,w=new Vt(Math.round((c.r-h.r)*y+h.r),Math.round((c.g-h.g)*y+h.g),Math.round((c.b-h.b)*y+h.b),255);let S=e.topPaddingLineCount*n;const k=[];for(let D=0,E=i-t+1;D<E;D++)a[D]&&ai._renderLine(s,w,c.a,p,m,v,g,u,f,S,C,d,l[D],_,n),k[D]=new ii(S),S+=n;const x=-1===o?0:o,L=(-1===r?s.height:r)-x;return this._canvas.domNode.getContext("2d").putImageData(s,0,0,0,x,s.width,L),new ni(e,s,k)}static _renderUntouchedLines(e,t,i,n,s,o){const r=[];if(!o){for(let e=0,t=n-i+1;e<t;e++)r[e]=!0;return[-1,-1,r]}const a=o._get(),l=a.imageData.data,d=a.rendLineNumberStart,h=a.lines,c=h.length,u=e.width,g=e.data,p=(n-i+1)*s*u*4;let m=-1,f=-1,_=-1,v=-1,b=-1,C=-1,y=t*s;for(let w=i;w<=n;w++){const e=w-i,t=w-d,n=t>=0&&t<c?h[t].dy:-1;if(-1===n){r[e]=!0,y+=s;continue}const o=n*u*4,a=(n+s)*u*4,S=y*u*4,k=(y+s)*u*4;v===o&&C===S?(v=a,C=k):(-1!==_&&(g.set(l.subarray(_,v),b),-1===m&&0===_&&_===b&&(m=v),-1===f&&v===p&&_===b&&(f=_)),_=o,v=a,b=S,C=k),r[e]=!1,y+=s}-1!==_&&(g.set(l.subarray(_,v),b),-1===m&&0===_&&_===b&&(m=v),-1===f&&v===p&&_===b&&(f=_));return[-1===m?-1:m/(4*u),-1===f?-1:f/(4*u),r]}static _renderLine(e,t,i,n,s,o,r,a,l,d,h,c,u,g,p){const m=u.content,f=u.tokens,_=e.width-o,v=1===p;let b=x.xq,C=0,y=0;for(let w=0,S=f.getCount();w<S;w++){const u=f.getEndOffset(w),p=f.getForeground(w),S=r.getColor(p);for(;C<u;C++){if(b>_)return;const r=m.charCodeAt(C);if(9===r){const e=c-(C+y)%c;y+=e-1,b+=e*o}else if(32===r)b+=o;else{const c=Le.ne(r)?2:1;for(let u=0;u<c;u++)if(2===s?l.blockRenderChar(e,b,d+h,S,a,t,i,v):l.renderChar(e,b,d+h,r,S,a,t,i,g,n,v),b+=o,b>_)return}}}}}class li{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let n=0,s=this._endLineNumber-this._startLineNumber+1;n<s;n++)this._values[n]=i}has(e){return this.get(e)!==this._defaultValue}set(e,t){e<this._startLineNumber||e>this._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return e<this._startLineNumber||e>this._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}class di extends j{constructor(e,t){super(e),this._viewDomNode=t;const i=this._context.configuration.options.get(145);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=(0,W.Z)(document.createElement("div")),U.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=(0,W.Z)(document.createElement("div")),U.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(145);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=(0,W.Z)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),e.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(t):this._domNode.appendChild(t),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference===t?(this._updateMaxMinWidth(),!1):(i.preference=t,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){var e,t;let i=0;const n=Object.keys(this._widgets);for(let s=0,o=n.length;s<o;s++){const o=n[s],r=null===(t=(e=this._widgets[o].widget).getMinContentWidthInPx)||void 0===t?void 0:t.call(e);"undefined"!==typeof r&&(i=Math.max(i,r))}this._context.viewLayout.setOverlayWidgetsMinWidth(i)}_renderWidget(e){const t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){const e=t.domNode.clientHeight;t.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else if(2===e.preference)t.setTop(0),t.domNode.style.right="50%";else{const{top:i,left:n}=e.preference;if(this._context.configuration.options.get(42)&&e.widget.allowEditorOverflow){const e=this._viewDomNodeRect;t.setTop(i+e.top),t.setLeft(n+e.left),t.setPosition("fixed")}else t.setTop(i),t.setLeft(n),t.setPosition("absolute")}else t.setTop("")}prepareRender(e){this._viewDomNodeRect=l.BK(this._viewDomNode.domNode)}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let i=0,n=t.length;i<n;i++){const e=t[i];this._renderWidget(this._widgets[e])}}}class hi{constructor(e,t){const i=e.options;this.lineHeight=i.get(67),this.pixelRatio=i.get(143),this.overviewRulerLanes=i.get(83),this.renderBorder=i.get(82);const n=t.getColor(Te.x9);this.borderColor=n?n.toString():null,this.hideCursor=i.get(59);const s=t.getColor(Te.D0);this.cursorColorSingle=s?s.transparent(.7).toString():null;const o=t.getColor(Te.sC);this.cursorColorPrimary=o?o.transparent(.7).toString():null;const r=t.getColor(Te.we);this.cursorColorSecondary=r?r.transparent(.7).toString():null,this.themeType=t.type;const a=i.get(73),l=a.enabled,d=a.side,h=t.getColor(Te.Xr),c=Oe.dG.getDefaultBackground();this.backgroundColor=h||(l&&"right"===d?c:null);const u=i.get(145).overviewRuler;this.top=u.top,this.right=u.right,this.domWidth=u.width,this.domHeight=u.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[g,p]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=g,this.w=p}_initLanes(e,t,i){const n=t-e;if(i>=3){const t=Math.floor(n/3),i=Math.floor(n/3),s=n-t-i,o=e+t;return[[0,e,o,e,e+t+s,e,o,e],[0,t,s,t+s,i,t+s+i,s+i,t+s+i]]}if(2===i){const t=Math.floor(n/2),i=n-t;return[[0,e,e,e,e+t,e,e,e],[0,t,t,t,i,t+i,t+i,t+i]]}return[[0,e,e,e,e,e,e,e],[0,n,n,n,n,n,n,n]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColorSingle===e.cursorColorSingle&&this.cursorColorPrimary===e.cursorColorPrimary&&this.cursorColorSecondary===e.cursorColorSecondary&&this.themeType===e.themeType&&Pe.Q1.equals(this.backgroundColor,e.backgroundColor)&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class ci extends j{constructor(e){super(e),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=(0,W.Z)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Oe.dG.onDidChange((e=>{e.changedColorMap&&this._updateSettings(!0)})),this._cursorPositions=[{position:new $.y(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new hi(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}_markRenderingIsNeeded(){return this._actualShouldRender=2,!0}_markRenderingIsMaybeNeeded(){return this._actualShouldRender=1,!0}onConfigurationChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;t<i;t++){let n=this._settings.cursorColorSingle;i>1&&(n=0===t?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:e.selections[t].getPosition(),color:n})}return this._cursorPositions.sort(((e,t)=>$.y.compare(e.position,t.position))),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(e){return!!e.affectsOverviewRuler&&this._markRenderingIsMaybeNeeded()}onFlushed(e){return this._markRenderingIsNeeded()}onScrollChanged(e){return!!e.scrollHeightChanged&&this._markRenderingIsNeeded()}onZonesChanged(e){return this._markRenderingIsNeeded()}onThemeChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render(),this._actualShouldRender=0}_render(){const e=this._settings.backgroundColor;if(0===this._settings.overviewRulerLanes)return this._domNode.setBackgroundColor(e?Pe.Q1.Format.CSS.formatHexA(e):""),void this._domNode.setDisplay("none");const t=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(t.sort(zt.Uv.compareByRenderingProps),1!==this._actualShouldRender||zt.Uv.equalsArr(this._renderedDecorations,t)||(this._actualShouldRender=2),1!==this._actualShouldRender||(0,m.aI)(this._renderedCursorPositions,this._cursorPositions,((e,t)=>e.position.lineNumber===t.position.lineNumber&&e.color===t.color))||(this._actualShouldRender=2),1===this._actualShouldRender)return;this._renderedDecorations=t,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");const i=this._settings.canvasWidth,n=this._settings.canvasHeight,s=this._settings.lineHeight,o=this._context.viewLayout,r=n/this._context.viewLayout.getScrollHeight(),a=6*this._settings.pixelRatio|0,l=a/2|0,d=this._domNode.domNode.getContext("2d");e?e.isOpaque()?(d.fillStyle=Pe.Q1.Format.CSS.formatHexA(e),d.fillRect(0,0,i,n)):(d.clearRect(0,0,i,n),d.fillStyle=Pe.Q1.Format.CSS.formatHexA(e),d.fillRect(0,0,i,n)):d.clearRect(0,0,i,n);const h=this._settings.x,c=this._settings.w;for(const u of t){const e=u.color,t=u.data;d.fillStyle=e;let i=0,g=0,p=0;for(let u=0,m=t.length/3;u<m;u++){const e=t[3*u],m=t[3*u+1],f=t[3*u+2];let _=o.getVerticalOffsetForLineNumber(m)*r|0,v=(o.getVerticalOffsetForLineNumber(f)+s)*r|0;if(v-_<a){let e=(_+v)/2|0;e<l?e=l:e+l>n&&(e=n-l),_=e-l,v=e+l}_>p+1||e!==i?(0!==u&&d.fillRect(h[i],g,c[i],p-g),i=e,g=_,p=v):v>p&&(p=v)}d.fillRect(h[i],g,c[i],p-g)}if(!this._settings.hideCursor){const e=2*this._settings.pixelRatio|0,t=e/2|0,i=this._settings.x[7],s=this._settings.w[7];let a=-100,l=-100,h=null;for(let c=0,u=this._cursorPositions.length;c<u;c++){const u=this._cursorPositions[c].color;if(!u)continue;const g=this._cursorPositions[c].position;let p=o.getVerticalOffsetForLineNumber(g.lineNumber)*r|0;p<t?p=t:p+t>n&&(p=n-t);const m=p-t,f=m+e;m>l+1||u!==h?(0!==c&&h&&d.fillRect(i,a,s,l-a),a=m,l=f):f>l&&(l=f),h=u,d.fillStyle=u}h&&d.fillRect(i,a,s,l-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(d.beginPath(),d.lineWidth=1,d.strokeStyle=this._settings.borderColor,d.moveTo(0,0),d.lineTo(0,n),d.stroke(),d.moveTo(0,0),d.lineTo(i,0),d.stroke())}}var ui,gi=i(19531);class pi extends z{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=(0,W.Z)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new gi.rW((e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e))),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(67)),this._zoneManager.setPixelRatio(i.get(143)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(67)&&(this._zoneManager.setLineHeight(t.get(67)),this._render()),e.hasChanged(143)&&(this._zoneManager.setPixelRatio(t.get(143)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),s=this._domNode.domNode.getContext("2d");return s.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(s,i,n,e),!0}_renderOneLane(e,t,i,n){let s=0,o=0,r=0;for(const a of t){const t=a.colorId,l=a.from,d=a.to;t!==s?(e.fillRect(0,o,n,r-o),s=t,e.fillStyle=i[s],o=l,r=d):r>=l?r=Math.max(r,d):(e.fillRect(0,o,n,r-o),o=l,r=d)}e.fillRect(0,o,n,r-o)}}class mi extends j{constructor(e){super(e),this.domNode=(0,W.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e<t){const{tabSize:i}=this._context.viewModel.model.getOptions(),n=i;let s=t-e;for(;s>0;){const e=(0,W.Z)(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(n),this.domNode.appendChild(e),this._renderedRulers.push(e),s--}return}let i=e-t;for(;i>0;){const e=this._renderedRulers.pop();this.domNode.removeChild(e),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t<i;t++){const i=this._renderedRulers[t],n=this._rulers[t];i.setBoxShadow(n.color?`1px 0 0 0 ${n.color} inset`:""),i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(n.column*this._typicalHalfwidthCharacterWidth)}}}class fi extends j{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const t=this._context.configuration.options.get(103);this._useShadows=t.useShadows,this._domNode=(0,W.Z)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options.get(145);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options.get(103);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}class _i{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class vi{constructor(e,t){this.lineNumber=e,this.ranges=t}}function bi(e){return new _i(e)}function Ci(e){return new vi(e.lineNumber,e.ranges.map(bi))}class yi extends Ee{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._roundedSelection=t.get(101),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._roundedSelection=t.get(101),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t<i;t++){if(e[t].ranges.length>1)return!0}return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let s=null,o=null;if(i&&i.length>0&&t.length>0){const n=t[0].lineNumber;if(n===e.startLineNumber)for(let e=0;!s&&e<i.length;e++)i[e].lineNumber===n&&(s=i[e].ranges[0]);const r=t[t.length-1].lineNumber;if(r===e.endLineNumber)for(let e=i.length-1;!o&&e>=0;e--)i[e].lineNumber===r&&(o=i[e].ranges[0]);s&&!s.startStyle&&(s=null),o&&!o.startStyle&&(o=null)}for(let r=0,a=t.length;r<a;r++){const e=t[r].ranges[0],i=e.left,l=e.left+e.width,d={top:0,bottom:0},h={top:0,bottom:0};if(r>0){const e=t[r-1].ranges[0].left,s=t[r-1].ranges[0].left+t[r-1].ranges[0].width;wi(i-e)<n?d.top=2:i>e&&(d.top=1),wi(l-s)<n?h.top=2:e<l&&l<s&&(h.top=1)}else s&&(d.top=s.startStyle.top,h.top=s.endStyle.top);if(r+1<a){const e=t[r+1].ranges[0].left,s=t[r+1].ranges[0].left+t[r+1].ranges[0].width;wi(i-e)<n?d.bottom=2:e<i&&i<s&&(d.bottom=1),wi(l-s)<n?h.bottom=2:l<s&&(h.bottom=1)}else o&&(d.bottom=o.startStyle.bottom,h.bottom=o.endStyle.bottom);e.startStyle=d,e.endStyle=h}}_getVisibleRangesWithStyle(e,t,i){const n=(t.linesVisibleRangesForRange(e,!0)||[]).map(Ci);return!this._visibleRangesHaveGaps(n)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,n,i),n}_createSelectionPiece(e,t,i,n,s){return'<div class="cslr '+i+'" style="top:'+e.toString()+"px;bottom:"+t.toString()+"px;left:"+n.toString()+"px;width:"+s.toString()+'px;"></div>'}_actualRenderOneSelection(e,t,i,n){if(0===n.length)return;const s=!!n[0].ranges[0].startStyle,o=n[0].lineNumber,r=n[n.length-1].lineNumber;for(let a=0,l=n.length;a<l;a++){const l=n[a],d=l.lineNumber,h=d-t,c=i&&d===o?1:0,u=i&&d!==o&&d===r?1:0;let g="",p="";for(let e=0,t=l.ranges.length;e<t;e++){const t=l.ranges[e];if(s){const e=t.startStyle,i=t.endStyle;if(1===e.top||1===e.bottom){g+=this._createSelectionPiece(c,u,yi.SELECTION_CLASS_NAME,t.left-yi.ROUNDED_PIECE_WIDTH,yi.ROUNDED_PIECE_WIDTH);let i=yi.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(i+=" "+yi.SELECTION_TOP_RIGHT),1===e.bottom&&(i+=" "+yi.SELECTION_BOTTOM_RIGHT),g+=this._createSelectionPiece(c,u,i,t.left-yi.ROUNDED_PIECE_WIDTH,yi.ROUNDED_PIECE_WIDTH)}if(1===i.top||1===i.bottom){g+=this._createSelectionPiece(c,u,yi.SELECTION_CLASS_NAME,t.left+t.width,yi.ROUNDED_PIECE_WIDTH);let e=yi.EDITOR_BACKGROUND_CLASS_NAME;1===i.top&&(e+=" "+yi.SELECTION_TOP_LEFT),1===i.bottom&&(e+=" "+yi.SELECTION_BOTTOM_LEFT),g+=this._createSelectionPiece(c,u,e,t.left+t.width,yi.ROUNDED_PIECE_WIDTH)}}let i=yi.SELECTION_CLASS_NAME;if(s){const e=t.startStyle,n=t.endStyle;0===e.top&&(i+=" "+yi.SELECTION_TOP_LEFT),0===e.bottom&&(i+=" "+yi.SELECTION_BOTTOM_LEFT),0===n.top&&(i+=" "+yi.SELECTION_TOP_RIGHT),0===n.bottom&&(i+=" "+yi.SELECTION_BOTTOM_RIGHT)}p+=this._createSelectionPiece(c,u,i,t.left,t.width)}e[h][0]+=g,e[h][1]+=p}}prepareRender(e){const t=[],i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;for(let o=i;o<=n;o++){t[o-i]=["",""]}const s=[];for(let o=0,r=this._selections.length;o<r;o++){const n=this._selections[o];if(n.isEmpty()){s[o]=null;continue}const r=this._getVisibleRangesWithStyle(n,e,this._previousFrameVisibleRangesWithStyle[o]);s[o]=r,this._actualRenderOneSelection(t,i,this._selections.length>1,r)}this._previousFrameVisibleRangesWithStyle=s,this._renderResult=t.map((([e,t])=>e+t))}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function wi(e){return e<0?-e:e}yi.SELECTION_CLASS_NAME="selected-text",yi.SELECTION_TOP_LEFT="top-left-radius",yi.SELECTION_BOTTOM_LEFT="bottom-left-radius",yi.SELECTION_TOP_RIGHT="top-right-radius",yi.SELECTION_BOTTOM_RIGHT="bottom-right-radius",yi.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",yi.ROUNDED_PIECE_WIDTH=10,(0,Ne.zy)(((e,t)=>{const i=e.getColor(jt.rm4);i&&!i.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${i}; }`)}));class Si{constructor(e,t,i,n,s,o,r){this.top=e,this.left=t,this.paddingLeft=i,this.width=n,this.height=s,this.textContent=o,this.textContentClassName=r}}!function(e){e[e.Single=0]="Single",e[e.MultiPrimary=1]="MultiPrimary",e[e.MultiSecondary=2]="MultiSecondary"}(ui||(ui={}));class ki{constructor(e,t){this._context=e;const i=this._context.configuration.options,n=i.get(50);this._cursorStyle=i.get(28),this._lineHeight=i.get(67),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(i.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,W.Z)(document.createElement("div")),this._domNode.setClassName(`cursor ${Re}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,g.M)(this._domNode,n),this._domNode.setDisplay("none"),this._position=new $.y(1,1),this._pluralityClass="",this.setPlurality(t),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(e){switch(e){default:case ui.Single:this._pluralityClass="";break;case ui.MultiPrimary:this._pluralityClass="cursor-primary";break;case ui.MultiSecondary:this._pluralityClass="cursor-secondary"}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(50);return this._cursorStyle=t.get(28),this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(31),this._typicalHalfwidthCharacterWidth),(0,g.M)(this._domNode,i),!0}onCursorPositionChanged(e,t){return this._domNode.domNode.style.transitionProperty=t?"none":"",this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[n,s]=Le.m(i,t-1);return[new $.y(e,n+1),i.substring(n,s)]}_prepareRender(e){let t="",i="";const[n,s]=this._getGraphemeAwarePosition();if(this._cursorStyle===x.m9.Line||this._cursorStyle===x.m9.LineThin){const o=e.visibleRangeForPosition(n);if(!o||o.outsideRenderedLine)return null;const r=l.zk(this._domNode.domNode);let a;this._cursorStyle===x.m9.Line?(a=l.vT(r,this._lineCursorWidth>0?this._lineCursorWidth:2),a>2&&(t=s,i=this._getTokenClassName(n))):a=l.vT(r,1);let d=o.left,h=0;a>=2&&d>=1&&(h=1,d-=h);const c=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.bigNumbersDelta;return new Si(c,d,h,a,this._lineHeight,t,i)}const o=e.linesVisibleRangesForRange(new q.Q(n.lineNumber,n.column,n.lineNumber,n.column+s.length),!1);if(!o||0===o.length)return null;const r=o[0];if(r.outsideRenderedLine||0===r.ranges.length)return null;const a=r.ranges[0],d="\t"===s||a.width<1?this._typicalHalfwidthCharacterWidth:a.width;this._cursorStyle===x.m9.Block&&(t=s,i=this._getTokenClassName(n));let h=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.bigNumbersDelta,c=this._lineHeight;return this._cursorStyle!==x.m9.Underline&&this._cursorStyle!==x.m9.UnderlineThin||(h+=this._lineHeight-2,c=2),new Si(h,a.left,0,d,c,t,i)}_getTokenClassName(e){const t=this._context.viewModel.getViewLineData(e.lineNumber),i=t.tokens.findTokenIndexAtOffset(e.column-1);return t.tokens.getClassName(i)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${Re} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class xi extends j{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(91),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new ki(this._context,ui.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,W.Z)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new It.pc,this._cursorFlatBlinkInterval=new l.Be,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(91),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,n=this._secondaryCursors.length;i<n;i++)this._secondaryCursors[i].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t,i){const n=this._secondaryCursors.length!==t.length||"explicit"===this._cursorSmoothCaretAnimation&&3!==i;if(this._primaryCursor.setPlurality(t.length?ui.MultiPrimary:ui.Single),this._primaryCursor.onCursorPositionChanged(e,n),this._updateBlinking(),this._secondaryCursors.length<t.length){const e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){const e=new ki(this._context,ui.MultiSecondary);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let s=0;s<t.length;s++)this._secondaryCursors[s].onCursorPositionChanged(t[s],n)}onCursorStateChanged(e){const t=[];for(let n=0,s=e.selections.length;n<s;n++)t[n]=e.selections[n].getPosition();this._onCursorPositionChanged(t[0],t.slice(1),e.reason);const i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){const t=t=>{for(let i=0,n=e.ranges.length;i<n;i++)if(e.ranges[i].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[i].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(const i of this._secondaryCursors)if(t(i.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._isComposingInput?0:this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();const e=this._getCursorBlinking(),t=0===e,i=5===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),t||i||(1===e?this._cursorFlatBlinkInterval.cancelAndSet((()=>{this._isVisible?this._hide():this._show()}),xi.BLINK_INTERVAL,(0,l.zk)(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet((()=>{this._blinkingEnabled=!0,this._updateDomClassName()}),xi.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case x.m9.Line:e+=" cursor-line-style";break;case x.m9.Block:e+=" cursor-block-style";break;case x.m9.Underline:e+=" cursor-underline-style";break;case x.m9.LineThin:e+=" cursor-line-thin-style";break;case x.m9.BlockOutline:e+=" cursor-block-outline-style";break;case x.m9.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return"on"!==this._cursorSmoothCaretAnimation&&"explicit"!==this._cursorSmoothCaretAnimation||(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].prepareRender(e)}render(e){const t=[];let i=0;const n=this._primaryCursor.render(e);n&&(t[i++]=n);for(let s=0,o=this._secondaryCursors.length;s<o;s++){const n=this._secondaryCursors[s].render(e);n&&(t[i++]=n)}this._renderData=t}getLastRenderData(){return this._renderData}}xi.BLINK_INTERVAL=500,(0,Ne.zy)(((e,t)=>{const i=[{class:".cursor",foreground:Te.D0,background:Te.kM},{class:".cursor-primary",foreground:Te.sC,background:Te.je},{class:".cursor-secondary",foreground:Te.we,background:Te.L0}];for(const n of i){const i=e.getColor(n.foreground);if(i){let s=e.getColor(n.background);s||(s=i.opposite()),t.addRule(`.monaco-editor .cursors-layer ${n.class} { background-color: ${i}; border-color: ${i}; color: ${s}; }`),(0,ct.Bb)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection ${n.class} { border-left: 1px solid ${s}; border-right: 1px solid ${s}; }`)}}}));const Li=()=>{throw new Error("Invalid change accessor")};class Di extends j{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(145);this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=(0,W.Z)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=(0,W.Z)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const n of e)t.set(n.id,n);let i=!1;return this._context.viewModel.changeWhitespace((e=>{const n=Object.keys(this._zones);for(let s=0,o=n.length;s<o;s++){const o=n[s],r=this._zones[o],a=this._computeWhitespaceProps(r.delegate);r.isInHiddenArea=a.isInHiddenArea;const l=t.get(o);!l||l.afterLineNumber===a.afterViewLineNumber&&l.height===a.heightInPx||(e.changeOneWhitespace(o,a.afterViewLineNumber,a.heightInPx),this._safeCallOnComputedHeight(r.delegate,a.heightInPx),i=!0)}})),i}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(145);return this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,e.hasChanged(67)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(e){return this._recomputeWhitespacesProps()}onLinesDeleted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}onLinesInserted(e){return!0}_getZoneOrdinal(e){var t,i;return null!==(i=null!==(t=e.ordinal)&&void 0!==t?t:e.afterColumn)&&void 0!==i?i:1e4}_computeWhitespaceProps(e){if(0===e.afterLineNumber)return{isInHiddenArea:!1,afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};let t,i;if("undefined"!==typeof e.afterColumn)t=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{const i=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new $.y(i,this._context.viewModel.model.getLineMaxColumn(i))}i=t.column===this._context.viewModel.model.getLineMaxColumn(t.lineNumber)?this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber+1,column:1}):this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber,column:t.column+1});const n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t,e.afterColumnAffinity,!0),s=e.showInHiddenAreas||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(i);return{isInHiddenArea:!s,afterViewLineNumber:n.lineNumber,heightInPx:s?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}}changeViewZones(e){let t=!1;return this._context.viewModel.changeWhitespace((i=>{const n={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}};!function(e,t){try{return e(t)}catch(i){(0,d.dz)(i)}}(e,n),n.addZone=Li,n.removeZone=Li,n.layoutZone=Li})),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),n={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:(0,W.Z)(t.domNode),marginDomNode:t.marginDomNode?(0,W.Z)(t.marginDomNode):null};return this._safeCallOnComputedHeight(n.delegate,i.heightInPx),n.domNode.setPosition("absolute"),n.domNode.domNode.style.width="100%",n.domNode.setDisplay("none"),n.domNode.setAttribute("monaco-view-zone",n.whitespaceId),this.domNode.appendChild(n.domNode),n.marginDomNode&&(n.marginDomNode.setPosition("absolute"),n.marginDomNode.domNode.style.width="100%",n.marginDomNode.setDisplay("none"),n.marginDomNode.setAttribute("monaco-view-zone",n.whitespaceId),this.marginDomNode.appendChild(n.marginDomNode)),this._zones[n.whitespaceId]=n,this.setShouldRender(),n.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"===typeof e.heightInPx?e.heightInPx:"number"===typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"===typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"===typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(i){(0,d.dz)(i)}}_safeCallOnDomNodeTop(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(i){(0,d.dz)(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const o of t)this._zones[o.id].isInHiddenArea||(i[o.id]=o,n=!0);const s=Object.keys(this._zones);for(let o=0,r=s.length;o<r;o++){const t=s[o],n=this._zones[t];let r=0,a=0,l="none";i.hasOwnProperty(t)?(r=i[t].verticalOffset-e.bigNumbersDelta,a=i[t].height,l="block",n.isVisible||(n.domNode.setAttribute("monaco-visible-view-zone","true"),n.isVisible=!0),this._safeCallOnDomNodeTop(n.delegate,e.getScrolledTopFromAbsoluteTop(i[t].verticalOffset))):(n.isVisible&&(n.domNode.removeAttribute("monaco-visible-view-zone"),n.isVisible=!1),this._safeCallOnDomNodeTop(n.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),n.domNode.setTop(r),n.domNode.setHeight(a),n.domNode.setDisplay(l),n.marginDomNode&&(n.marginDomNode.setTop(r),n.marginDomNode.setHeight(a),n.marginDomNode.setDisplay(l))}n&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}var Ei=i(35600);class Ni extends Ee{constructor(e){super(),this._context=e,this._options=new Ti(this._context.configuration),this._selection=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=new Ti(this._context.configuration);return this._options.equals(t)?e.hasChanged(145):(this._options=t,!0)}onCursorStateChanged(e){return this._selection=e.selections,"selection"===this._options.renderWhitespace}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}prepareRender(e){if("none"===this._options.renderWhitespace)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber-t+1,n=new Array(i);for(let o=0;o<i;o++)n[o]=!0;const s=this._context.viewModel.getMinimapLinesRenderingData(e.viewportData.startLineNumber,e.viewportData.endLineNumber,n);this._renderResult=[];for(let o=e.viewportData.startLineNumber;o<=e.viewportData.endLineNumber;o++){const t=o-e.viewportData.startLineNumber,i=s.data[t];let n=null;if("selection"===this._options.renderWhitespace){const e=this._selection;for(const t of e){if(t.endLineNumber<o||t.startLineNumber>o)continue;const e=t.startLineNumber===o?t.startColumn:i.minColumn,s=t.endLineNumber===o?t.endColumn:i.maxColumn;e<s&&(n||(n=[]),n.push(new Ei.MT(e-1,s-1)))}}this._renderResult[t]=this._applyRenderWhitespace(e,o,n,i)}}_applyRenderWhitespace(e,t,i,n){if("selection"===this._options.renderWhitespace&&!i)return"";if("trailing"===this._options.renderWhitespace&&n.continuesWithWrappedLine)return"";const s=this._context.theme.getColor(Te.w4),o=this._options.renderWithSVG,r=n.content,a=-1===this._options.stopRenderingLineAfter?r.length:Math.min(this._options.stopRenderingLineAfter,r.length),l=n.continuesWithWrappedLine,d=n.minColumn-1,h="boundary"===this._options.renderWhitespace,c="trailing"===this._options.renderWhitespace,u=this._options.lineHeight,g=this._options.middotWidth,p=this._options.wsmiddotWidth,m=this._options.spaceWidth,f=Math.abs(p-m)<Math.abs(g-m)?11825:183,_=this._options.canUseHalfwidthRightwardsArrow;let v,b="",C=!1,y=Le.HG(r);-1===y?(C=!0,y=a,v=a):v=Le.lT(r);let w=0,S=i&&i[w],k=0;for(let x=d;x<a;x++){const n=r.charCodeAt(x);if(S&&x>=S.endOffset&&(w++,S=i&&i[w]),9!==n&&32!==n)continue;if(c&&!C&&x<=v)continue;if(h&&x>=y&&x<=v&&32===n){const e=x-1>=0?r.charCodeAt(x-1):0,t=x+1<a?r.charCodeAt(x+1):0;if(32!==e&&32!==t)continue}if(h&&l&&x===a-1){const e=x-1>=0?r.charCodeAt(x-1):0;if(32===n&&32!==e&&9!==e)continue}if(i&&(!S||S.startOffset>x||S.endOffset<=x))continue;const s=e.visibleRangeForPosition(new $.y(t,x+1));s&&(o?(k=Math.max(k,s.left),b+=9===n?this._renderArrow(u,m,s.left):`<circle cx="${(s.left+m/2).toFixed(2)}" cy="${(u/2).toFixed(2)}" r="${(m/7).toFixed(2)}" />`):b+=9===n?`<div class="mwh" style="left:${s.left}px;height:${u}px;">${_?String.fromCharCode(65515):String.fromCharCode(8594)}</div>`:`<div class="mwh" style="left:${s.left}px;height:${u}px;">${String.fromCharCode(f)}</div>`)}return o?(k=Math.round(k+m),`<svg style="bottom:0;position:absolute;width:${k}px;height:${u}px" viewBox="0 0 ${k} ${u}" xmlns="http://www.w3.org/2000/svg" fill="${s}">`+b+"</svg>"):b}_renderArrow(e,t,i){const n=e/2,s=i,o={x:0,y:t/7/2},r={x:.8*t,y:o.y},a={x:r.x-.2*r.x,y:r.y+.2*r.x},l={x:a.x+.1*r.x,y:a.y+.1*r.x},d={x:l.x+.35*r.x,y:l.y-.35*r.x};return`<path d="M ${[o,r,a,l,d,{x:d.x,y:-d.y},{x:l.x,y:-l.y},{x:a.x,y:-a.y},{x:r.x,y:-r.y},{x:o.x,y:-o.y}].map((e=>`${(s+e.x).toFixed(2)} ${(n+e.y).toFixed(2)}`)).join(" L ")}" />`}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class Ti{constructor(e){const t=e.options,i=t.get(50),n=t.get(38);"off"===n?(this.renderWhitespace="none",this.renderWithSVG=!1):"svg"===n?(this.renderWhitespace=t.get(99),this.renderWithSVG=!0):(this.renderWhitespace=t.get(99),this.renderWithSVG=!1),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=t.get(67),this.stopRenderingLineAfter=t.get(117)}equals(e){return this.renderWhitespace===e.renderWhitespace&&this.renderWithSVG===e.renderWithSVG&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter}}class Ii{constructor(e,t,i,n){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.lineHeight=0|t.lineHeight,this.whitespaceViewportData=i,this._model=n,this.visibleRange=new q.Q(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class Mi{get type(){return this._theme.type}get value(){return this._theme}constructor(e){this._theme=e}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class Ai{constructor(e,t,i){this.configuration=e,this.theme=new Mi(t),this.viewModel=i,this.viewLayout=i.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}var Ri=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Oi=function(e,t){return function(i,n){t(i,n,e)}};let Pi=class extends z{constructor(e,t,i,n,s,o,r){super(),this._instantiationService=r,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new pe.L(1,1,1,1)],this._renderAnimationFrame=null;const a=new $e(t,n,s,e);this._context=new Ai(t,i,n),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance(Ue,this._context,a,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=(0,W.Z)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=(0,W.Z)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=(0,W.Z)(document.createElement("div")),U.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new ft(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Pt(this._context,this._linesContent),this._viewZones=new Di(this._context),this._viewParts.push(this._viewZones);const l=new ci(this._context);this._viewParts.push(l);const d=new fi(this._context);this._viewParts.push(d);const h=new tt(this._context);this._viewParts.push(h),h.addDynamicOverlay(new gt(this._context)),h.addDynamicOverlay(new yi(this._context)),h.addDynamicOverlay(new Nt(this._context)),h.addDynamicOverlay(new mt(this._context)),h.addDynamicOverlay(new Ni(this._context));const c=new it(this._context);this._viewParts.push(c),c.addDynamicOverlay(new pt(this._context)),c.addDynamicOverlay(new Bt(this._context)),c.addDynamicOverlay(new Ft(this._context)),c.addDynamicOverlay(new Ie(this._context)),this._glyphMarginWidgets=new wt(this._context),this._viewParts.push(this._glyphMarginWidgets);const u=new Me(this._context);u.getDomNode().appendChild(this._viewZones.marginDomNode),u.getDomNode().appendChild(c.getDomNode()),u.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(u),this._contentWidgets=new ot(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new xi(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new di(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);const g=new mi(this._context);this._viewParts.push(g);const p=new st(this._context);this._viewParts.push(p);const m=new ri(this._context);if(this._viewParts.push(m),l){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(l.getDomNode(),e.insertBefore)}this._linesContent.appendChild(h.getDomNode()),this._linesContent.appendChild(g.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(u.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(d.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(m.getDomNode()),this._overflowGuardContainer.appendChild(p.domNode),this.domNode.appendChild(this._overflowGuardContainer),o?(o.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),o.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new ke(this._context,a,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){const e=this._context.viewModel.model,t=this._context.viewModel.glyphLanes;let i=[],n=0;i=i.concat(e.getAllMarginDecorations().map((e=>{var t,i,s;const o=null!==(i=null===(t=e.options.glyphMargin)||void 0===t?void 0:t.position)&&void 0!==i?i:_t.ZS.Center;return n=Math.max(n,e.range.endLineNumber),{range:e.range,lane:o,persist:null===(s=e.options.glyphMargin)||void 0===s?void 0:s.persistLane}}))),i=i.concat(this._glyphMarginWidgets.getWidgets().map((t=>{const i=e.validateRange(t.preference.range);return n=Math.max(n,i.endLineNumber),{range:i,lane:t.preference.lane}}))),i.sort(((e,t)=>q.Q.compareRangesUsingStarts(e.range,t.range))),t.reset(n);for(const s of i)t.push(s.lane,s.range,s.persist);return t}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new ee(e,t)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new $.y(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const e=this._context.configuration.options.get(145);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(142)+" "+(0,Ne.Pz)(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onDecorationsChanged(e){return e.affectsGlyphMargin&&(this._shouldRecomputeGlyphMarginLanes=!0),!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new d.D7;if(null===this._renderAnimationFrame){const e=this._createCoordinatedRendering();this._renderAnimationFrame=Bi.INSTANCE.scheduleCoordinatedRendering({window:l.zk(this.domNode.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new d.D7;try{return e.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new d.D7;return e.renderText()},prepareRender:(t,i)=>{if(this._store.isDisposed)throw new d.D7;return e.prepareRender(t,i)},render:(t,i)=>{if(this._store.isDisposed)throw new d.D7;return e.render(t,i)}})}}_flushAccumulatedAndRenderNow(){const e=this._createCoordinatedRendering();Fi((()=>e.prepareRenderText()));const t=Fi((()=>e.renderText()));if(t){const[i,n]=t;Fi((()=>e.prepareRender(i,n))),Fi((()=>e.render(i,n)))}}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;const e=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(e.requiredLanes)}V.p.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return null;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new Ii(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender()),[e,new Ke.eh(this._context.viewLayout,i,this._viewLines)]},prepareRender:(e,t)=>{for(const i of e)i.prepareRender(t)},render:(e,t)=>{for(const i of e)i.render(t),i.onDidRender()}}}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._scrollbar.delegateScrollFromMouseWheelEvent(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const s=this._viewLines.visibleRangeForPosition(new $.y(n.lineNumber,n.column));return s?s.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?nt.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new pi(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(e){this._textAreaHandler.writeScreenReaderContent(e)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){var t,i,n,s,o,r,a,l;this._contentWidgets.setWidgetPosition(e.widget,null!==(i=null===(t=e.position)||void 0===t?void 0:t.position)&&void 0!==i?i:null,null!==(s=null===(n=e.position)||void 0===n?void 0:n.secondaryPosition)&&void 0!==s?s:null,null!==(r=null===(o=e.position)||void 0===o?void 0:o.preference)&&void 0!==r?r:null,null!==(l=null===(a=e.position)||void 0===a?void 0:a.positionAffinity)&&void 0!==l?l:null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}addGlyphMarginWidget(e){this._glyphMarginWidgets.addWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}layoutGlyphMarginWidget(e){const t=e.position;this._glyphMarginWidgets.setWidgetPosition(e.widget,t)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(e){this._glyphMarginWidgets.removeWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}};function Fi(e){try{return e()}catch(t){return(0,d.dz)(t),null}}Pi=Ri([Oi(6,We._Y)],Pi);class Bi{constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(e){return this._coordinatedRenderings.push(e),this._scheduleRender(e.window),{dispose:()=>{const t=this._coordinatedRenderings.indexOf(e);if(-1!==t&&(this._coordinatedRenderings.splice(t,1),0===this._coordinatedRenderings.length)){for(const[e,t]of this._animationFrameRunners)t.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(e){if(!this._animationFrameRunners.has(e)){const t=()=>{this._animationFrameRunners.delete(e),this._onRenderScheduled()};this._animationFrameRunners.set(e,l.Oq(e,t,100))}}_onRenderScheduled(){const e=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(const i of e)Fi((()=>i.prepareRenderText()));const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i];t[i]=Fi((()=>n.renderText()))}for(let i=0,n=e.length;i<n;i++){const n=e[i],s=t[i];if(!s)continue;const[o,r]=s;Fi((()=>n.prepareRender(o,r)))}for(let i=0,n=e.length;i<n;i++){const n=e[i],s=t[i];if(!s)continue;const[o,r]=s;Fi((()=>n.render(o,r)))}}}Bi.INSTANCE=new Bi;var Wi=i(66782);class Vi{constructor(e,t,i,n,s){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=n,this.wrappedTextIndentLength=s}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let i=this.breakOffsets[e]-t;return e>0&&(i+=this.wrappedTextIndentLength),i}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let i=0===e?t:this.breakOffsets[e-1]+t;if(null!==this.injectionOffsets)for(let n=0;n<this.injectionOffsets.length&&i>this.injectionOffsets[n];n++)i<this.injectionOffsets[n]+this.injectionOptions[n].content.length?i=this.injectionOffsets[n]:i-=this.injectionOptions[n].content.length;return i}translateToOutputPosition(e,t=2){let i=e;if(null!==this.injectionOffsets)for(let n=0;n<this.injectionOffsets.length&&!(e<this.injectionOffsets[n])&&(1===t||e!==this.injectionOffsets[n]);n++)i+=this.injectionOptions[n].content.length;return this.offsetInInputWithInjectionsToOutputPosition(i,t)}offsetInInputWithInjectionsToOutputPosition(e,t=2){let i=0,n=this.breakOffsets.length-1,s=0,o=0;for(;i<=n;){s=i+(n-i)/2|0;const r=this.breakOffsets[s];if(o=s>0?this.breakOffsets[s-1]:0,0===t)if(e<=o)n=s-1;else{if(!(e>r))break;i=s+1}else if(e<o)n=s-1;else{if(!(e>=r))break;i=s+1}}let r=e-o;return s>0&&(r+=this.wrappedTextIndentLength),new ji(s,r)}normalizeOutputPosition(e,t,i){if(null!==this.injectionOffsets){const n=this.outputPositionToOffsetInInputWithInjections(e,t),s=this.normalizeOffsetInInputWithInjectionsAroundInjections(n,i);if(s!==n)return this.offsetInInputWithInjectionsToOutputPosition(s,i)}if(0===i){if(e>0&&t===this.getMinOutputOffset(e))return new ji(e-1,this.getMaxOutputOffset(e-1))}else if(1===i){if(e<this.getOutputLineCount()-1&&t===this.getMaxOutputOffset(e))return new ji(e+1,this.getMinOutputOffset(e+1))}return new ji(e,t)}outputPositionToOffsetInInputWithInjections(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));return(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(2===t){if(e===i.offsetInInputWithInjections+i.length&&Hi(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let e=i.offsetInInputWithInjections;if(zi(this.injectionOptions[i.injectedTextIndex].cursorStops))return e;let t=i.injectedTextIndex-1;for(;t>=0&&this.injectionOffsets[t]===this.injectionOffsets[i.injectedTextIndex]&&!Hi(this.injectionOptions[t].cursorStops)&&(e-=this.injectionOptions[t].content.length,!zi(this.injectionOptions[t].cursorStops));)t--;return e}}if(1===t||4===t){let e=i.offsetInInputWithInjections+i.length,t=i.injectedTextIndex;for(;t+1<this.injectionOffsets.length&&this.injectionOffsets[t+1]===this.injectionOffsets[t];)e+=this.injectionOptions[t+1].content.length,t++;return e}if(0===t||3===t){let e=i.offsetInInputWithInjections,t=i.injectedTextIndex;for(;t-1>=0&&this.injectionOffsets[t-1]===this.injectionOffsets[t];)e-=this.injectionOptions[t-1].content.length,t--;return e}(0,Wi.xb)(t)}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(null!==t){let n=0;for(let s=0;s<t.length;s++){const o=i[s].content.length,r=t[s]+n,a=t[s]+n+o;if(r>e)break;if(e<=a)return{injectedTextIndex:s,offsetInInputWithInjections:r,length:o};n+=o}}}}function Hi(e){return null===e||void 0===e||(e===_t.VW.Right||e===_t.VW.Both)}function zi(e){return null===e||void 0===e||(e===_t.VW.Left||e===_t.VW.Both)}class ji{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new $.y(e+this.outputLineIndex,this.outputOffset+1)}}var Ui=i(64727);const Ki=(0,qe.H)("domLineBreaksComputer",{createHTML:e=>e});class Gi{static create(e){return new Gi(new WeakRef(e))}constructor(e){this.targetWindow=e}createLineBreaksComputer(e,t,i,n,s){const o=[],r=[];return{addRequest:(e,t,i)=>{o.push(e),r.push(t)},finalize:()=>function(e,t,i,n,s,o,r,a){var l;function d(e){const i=a[e];if(i){const n=Ui.uK.applyInjectedText(t[e],i),s=i.map((e=>e.options)),o=i.map((e=>e.column-1));return new Vi(o,s,[n.length],[],0)}return null}if(-1===s){const e=[];for(let i=0,n=t.length;i<n;i++)e[i]=d(i);return e}const h=Math.round(s*i.typicalHalfwidthCharacterWidth),c=3===o?2:2===o?1:0,u=Math.round(n*c),p=Math.ceil(i.spaceWidth*u),m=document.createElement("div");(0,g.M)(m,i);const f=new Qe.fe(1e4),_=[],v=[],b=[],C=[],y=[];for(let g=0;g<t.length;g++){const e=Ui.uK.applyInjectedText(t[g],a[g]);let s=0,r=0,l=h;if(0!==o)if(s=Le.HG(e),-1===s)s=0;else{for(let i=0;i<s;i++){r+=9===e.charCodeAt(i)?n-r%n:1}const t=Math.ceil(i.spaceWidth*r);t+i.typicalFullwidthCharacterWidth>h?(s=0,r=0):l=h-t}const d=e.substr(s),c=$i(d,r,n,l,f,p);_[g]=s,v[g]=r,b[g]=d,C[g]=c[0],y[g]=c[1]}const w=f.build(),S=null!==(l=null===Ki||void 0===Ki?void 0:Ki.createHTML(w))&&void 0!==l?l:w;m.innerHTML=S,m.style.position="absolute",m.style.top="10000","keepAll"===r?(m.style.wordBreak="keep-all",m.style.overflowWrap="anywhere"):(m.style.wordBreak="inherit",m.style.overflowWrap="break-word");e.document.body.appendChild(m);const k=document.createRange(),x=Array.prototype.slice.call(m.children,0),L=[];for(let g=0;g<t.length;g++){const e=qi(k,x[g],b[g],C[g]);if(null===e){L[g]=d(g);continue}const t=_[g],i=v[g]+u,n=y[g],s=[];for(let a=0,d=e.length;a<d;a++)s[a]=n[e[a]];if(0!==t)for(let a=0,d=e.length;a<d;a++)e[a]+=t;let o,r;const l=a[g];l?(o=l.map((e=>e.options)),r=l.map((e=>e.column-1))):(o=null,r=null),L[g]=new Vi(r,o,e,s,i)}return e.document.body.removeChild(m),L}((0,Lt.eU)(this.targetWindow.deref()),o,e,t,i,n,s,r)}}}function $i(e,t,i,n,s,o){if(0!==o){const e=String(o);s.appendString('<div style="text-indent: -'),s.appendString(e),s.appendString("px; padding-left: "),s.appendString(e),s.appendString("px; box-sizing: border-box; width:")}else s.appendString('<div style="width:');s.appendString(String(n)),s.appendString('px;">');const r=e.length;let a=t,l=0;const d=[],h=[];let c=0<r?e.charCodeAt(0):0;s.appendString("<span>");for(let u=0;u<r;u++){0!==u&&u%16384===0&&s.appendString("</span><span>"),d[u]=l,h[u]=a;const t=c;c=u+1<r?e.charCodeAt(u+1):0;let n=1,o=1;switch(t){case 9:n=i-a%i,o=n;for(let e=1;e<=n;e++)e<n?s.appendCharCode(160):s.appendASCIICharCode(32);break;case 32:32===c?s.appendCharCode(160):s.appendASCIICharCode(32);break;case 60:s.appendString("<");break;case 62:s.appendString(">");break;case 38:s.appendString("&");break;case 0:s.appendString("�");break;case 65279:case 8232:case 8233:case 133:s.appendCharCode(65533);break;default:Le.ne(t)&&o++,t<32?s.appendCharCode(9216+t):s.appendCharCode(t)}l+=n,a+=o}return s.appendString("</span>"),d[e.length]=l,h[e.length]=a,s.appendString("</div>"),[d,h]}function qi(e,t,i,n){if(i.length<=1)return null;const s=Array.prototype.slice.call(t.children,0),o=[];try{Qi(e,s,n,0,null,i.length-1,null,o)}catch(r){return console.log(r),null}return 0===o.length?null:(o.push(i.length),o)}function Qi(e,t,i,n,s,o,r,a){if(n===o)return;if(s=s||Yi(e,t,i[n],i[n+1]),r=r||Yi(e,t,i[o],i[o+1]),Math.abs(s[0].top-r[0].top)<=.1)return;if(n+1===o)return void a.push(o);const l=n+(o-n)/2|0,d=Yi(e,t,i[l],i[l+1]);Qi(e,t,i,n,s,l,d,a),Qi(e,t,i,l,d,o,r,a)}function Yi(e,t,i,n){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[n/16384|0].firstChild,n%16384),e.getClientRects()}class Zi extends c.jG{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new c.$w),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,i){this._editor=e,this._instantiationService=i;for(const n of t)this._pending.has(n.id)?(0,d.dz)(new Error(`Cannot have two contributions with the same id ${n.id}`)):this._pending.set(n.id,n);this._instantiateSome(0),this._register((0,l.U3)((0,l.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(1)}))),this._register((0,l.U3)((0,l.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(2)}))),this._register((0,l.U3)((0,l.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(3)}),5e3))}saveViewState(){const e={};for(const[t,i]of this._instances)"function"===typeof i.saveViewState&&(e[t]=i.saveViewState());return e}restoreViewState(e){for(const[t,i]of this._instances)"function"===typeof i.restoreViewState&&i.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){var e;return(0,l.U3)((0,l.zk)(null===(e=this._editor)||void 0===e?void 0:e.getDomNode()),(()=>{this._instantiateSome(1)}),50)}_instantiateSome(e){if(this._finishedInstantiation[e])return;this._finishedInstantiation[e]=!0;const t=this._findPendingContributionsByInstantiation(e);for(const i of t)this._instantiateById(i.id)}_findPendingContributionsByInstantiation(e){const t=[];for(const[,i]of this._pending)i.instantiation===e&&t.push(i);return t}_instantiateById(e){const t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{const e=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,e),"function"===typeof e.restoreViewState&&0!==t.instantiation&&console.warn(`Editor contribution '${t.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(i){(0,d.dz)(i)}}}}var Xi=i(97681),Ji=i(29611),en=i(23452),tn=i(60002),nn=i(17469),sn=i(38361),on=i(56942),rn=i(60534);class an{static create(e){return new an(e.get(134),e.get(133))}constructor(e,t){this.classifier=new ln(e,t)}createLineBreaksComputer(e,t,i,n,s){const o=[],r=[],a=[];return{addRequest:(e,t,i)=>{o.push(e),r.push(t),a.push(i)},finalize:()=>{const l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,d=[];for(let e=0,h=o.length;e<h;e++){const h=r[e],c=a[e];!c||c.injectionOptions||h?d[e]=un(this.classifier,o[e],h,t,i,l,n,s):d[e]=cn(this.classifier,c,o[e],t,i,l,n,s)}return dn.length=0,hn.length=0,d}}}}class ln extends rn.V{constructor(e,t){super(0);for(let i=0;i<e.length;i++)this.set(e.charCodeAt(i),1);for(let i=0;i<t.length;i++)this.set(t.charCodeAt(i),2)}get(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let dn=[],hn=[];function cn(e,t,i,n,s,o,r,a){if(-1===s)return null;const l=i.length;if(l<=1)return null;const d="keepAll"===a,h=t.breakOffsets,c=t.breakOffsetsVisibleColumn,u=fn(i,n,s,o,r),g=s-u,p=dn,m=hn;let f=0,_=0,v=0,b=s;const C=h.length;let y=0;if(y>=0){let e=Math.abs(c[y]-b);for(;y+1<C;){const t=Math.abs(c[y+1]-b);if(t>=e)break;e=t,y++}}for(;y<C;){let t=y<0?0:h[y],s=y<0?0:c[y];_>t&&(t=_,s=v);let r=0,a=0,u=0,w=0;if(s<=b){let v=s,C=0===t?0:i.charCodeAt(t-1),y=0===t?0:e.get(C),S=!0;for(let s=t;s<l;s++){const t=s,l=i.charCodeAt(s);let h,c;if(Le.pc(l)?(s++,h=0,c=2):(h=e.get(l),c=gn(l,v,n,o)),t>_&&mn(C,y,l,h,d)&&(r=t,a=v),v+=c,v>b){t>_?(u=t,w=v-c):(u=s+1,w=v),v-a>g&&(r=0),S=!1;break}C=l,y=h}if(S){f>0&&(p[f]=h[h.length-1],m[f]=c[h.length-1],f++);break}}if(0===r){let l=s,h=i.charCodeAt(t),c=e.get(h),p=!1;for(let n=t-1;n>=_;n--){const t=n+1,s=i.charCodeAt(n);if(9===s){p=!0;break}let m,f;if(Le.LJ(s)?(n--,m=0,f=2):(m=e.get(s),f=Le.ne(s)?o:1),l<=b){if(0===u&&(u=t,w=l),l<=b-g)break;if(mn(s,m,h,c,d)){r=t,a=l;break}}l-=f,h=s,c=m}if(0!==r){const e=g-(w-a);if(e<=n){const t=i.charCodeAt(u);let s;s=Le.pc(t)?2:gn(t,w,n,o),e-s<0&&(r=0)}}if(p){y--;continue}}if(0===r&&(r=u,a=w),r<=_){const e=i.charCodeAt(_);Le.pc(e)?(r=_+2,a=v+2):(r=_+1,a=v+gn(e,v,n,o))}for(_=r,p[f]=r,v=a,m[f]=a,f++,b=a+g;y<0||y<C&&c[y]<a;)y++;let S=Math.abs(c[y]-b);for(;y+1<C;){const e=Math.abs(c[y+1]-b);if(e>=S)break;S=e,y++}}return 0===f?null:(p.length=f,m.length=f,dn=t.breakOffsets,hn=t.breakOffsetsVisibleColumn,t.breakOffsets=p,t.breakOffsetsVisibleColumn=m,t.wrappedTextIndentLength=u,t)}function un(e,t,i,n,s,o,r,a){const l=Ui.uK.applyInjectedText(t,i);let d,h;if(i&&i.length>0?(d=i.map((e=>e.options)),h=i.map((e=>e.column-1))):(d=null,h=null),-1===s)return d?new Vi(h,d,[l.length],[],0):null;const c=l.length;if(c<=1)return d?new Vi(h,d,[l.length],[],0):null;const u="keepAll"===a,g=fn(l,n,s,o,r),p=s-g,m=[],f=[];let _=0,v=0,b=0,C=s,y=l.charCodeAt(0),w=e.get(y),S=gn(y,0,n,o),k=1;Le.pc(y)&&(S+=1,y=l.charCodeAt(1),w=e.get(y),k++);for(let x=k;x<c;x++){const t=x,i=l.charCodeAt(x);let s,r;Le.pc(i)?(x++,s=0,r=2):(s=e.get(i),r=gn(i,S,n,o)),mn(y,w,i,s,u)&&(v=t,b=S),S+=r,S>C&&((0===v||S-b>p)&&(v=t,b=S-r),m[_]=v,f[_]=b,_++,C=b+p,v=0),y=i,w=s}return 0!==_||i&&0!==i.length?(m[_]=c,f[_]=S,new Vi(h,d,m,f,g)):null}function gn(e,t,i,n){return 9===e?i-t%i:Le.ne(e)||e<32?n:1}function pn(e,t){return t-e%t}function mn(e,t,i,n,s){return 32!==i&&(2===t&&2!==n||1!==t&&1===n||!s&&3===t&&2!==n||!s&&3===n&&1!==t)}function fn(e,t,i,n,s){let o=0;if(0!==s){const r=Le.HG(e);if(-1!==r){for(let i=0;i<r;i++){o+=9===e.charCodeAt(i)?pn(o,t):1}const a=3===s?2:2===s?1:0;for(let e=0;e<a;e++){o+=pn(o,t)}o+n>i&&(o=0)}}return o}var _n=i(46041),vn=i(32799);class bn{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new vn.mG(new q.Q(1,1,1,1),0,0,new $.y(1,1),0),new vn.mG(new q.Q(1,1,1,1),0,0,new $.y(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new vn.MF(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!t.isEmpty()?pe.L.fromRange(t.collapseToEnd(),this.modelState.selection.getDirection()):pe.L.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),s=t.selectionStart.getEndPosition(),o=e.normalizePosition(i,2),r=this._validatePositionWithCache(e,n,i,o),a=this._validatePositionWithCache(e,s,n,r);return i.equals(o)&&n.equals(r)&&s.equals(a)?t:new vn.mG(q.Q.fromPositions(r,a),t.selectionStartKind,t.selectionStartLeftoverVisibleColumns+n.column-r.column,o,t.leftoverVisibleColumns+i.column-o.column)}_setState(e,t,i){if(i&&(i=bn._validateViewState(e.viewModel,i)),t){const i=e.model.validateRange(t.selectionStart),n=t.selectionStart.equalsRange(i)?t.selectionStartLeftoverVisibleColumns:0,s=e.model.validatePosition(t.position),o=t.position.equals(s)?t.leftoverVisibleColumns:0;t=new vn.mG(i,t.selectionStartKind,n,s,o)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),s=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new vn.mG(n,i.selectionStartKind,i.selectionStartLeftoverVisibleColumns,s,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),s=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new vn.mG(n,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,s,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new $.y(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),s=e.coordinatesConverter.convertModelPositionToViewPosition(new $.y(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),o=new q.Q(n.lineNumber,n.column,s.lineNumber,s.column),r=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new vn.mG(o,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,r,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class Cn{constructor(e){this.context=e,this.cursors=[new bn(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map((e=>e.readSelectionFromMarkers(this.context)))}getAll(){return this.cursors.map((e=>e.asCursorState()))}getViewPositions(){return this.cursors.map((e=>e.viewState.position))}getTopMostViewPosition(){return(0,_n.dC)(this.cursors,(0,m.VE)((e=>e.viewState.position),$.y.compare)).viewState.position}getBottomMostViewPosition(){return(0,_n.Jw)(this.cursors,(0,m.VE)((e=>e.viewState.position),$.y.compare)).viewState.position}getSelections(){return this.cursors.map((e=>e.modelState.selection))}getViewSelections(){return this.cursors.map((e=>e.viewState.selection))}setSelections(e){this.setStates(vn.MF.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){null!==e&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(t<i){const e=i-t;for(let t=0;t<e;t++)this._addSecondaryCursor()}else if(t>i){const e=t-i;for(let t=0;t<e;t++)this._removeSecondaryCursor(this.cursors.length-2)}for(let n=0;n<i;n++)this.cursors[n+1].setState(this.context,e[n].modelState,e[n].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.cursors.push(new bn(this.context)),this.lastAddedCursorIndex=this.cursors.length-1}getLastAddedCursorIndex(){return 1===this.cursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex}_removeSecondaryCursor(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(1===this.cursors.length)return;const e=this.cursors.slice(0),t=[];for(let i=0,n=e.length;i<n;i++)t.push({index:i,selection:e[i].modelState.selection});t.sort((0,m.VE)((e=>e.selection),q.Q.compareRangesUsingStarts));for(let i=0;i<t.length-1;i++){const n=t[i],s=t[i+1],o=n.selection,r=s.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let a;if(a=r.isEmpty()||o.isEmpty()?r.getStartPosition().isBeforeOrEqual(o.getEndPosition()):r.getStartPosition().isBefore(o.getEndPosition()),a){const o=n.index<s.index?i:i+1,r=n.index<s.index?i+1:i,a=t[r].index,l=t[o].index,d=t[r].selection,h=t[o].selection;if(!d.equalsSelection(h)){const i=d.plusRange(h),n=d.selectionStartLineNumber===d.startLineNumber&&d.selectionStartColumn===d.startColumn,s=h.selectionStartLineNumber===h.startLineNumber&&h.selectionStartColumn===h.startColumn;let r,c;a===this.lastAddedCursorIndex?(r=n,this.lastAddedCursorIndex=l):r=s,c=r?new pe.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new pe.L(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn),t[o].selection=c;const u=vn.MF.fromModelSelection(c);e[l].setState(this.context,u.modelState,u.viewState)}for(const e of t)e.index>a&&e.index--;e.splice(a,1),t.splice(r,1),this._removeSecondaryCursor(a-1),i--}}}}class yn{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}var wn=i(1226),Sn=i(56441);class kn{constructor(){this.type=0}}class xn{constructor(){this.type=1}}class Ln{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class Dn{constructor(e,t,i){this.selections=e,this.modelSelections=t,this.reason=i,this.type=3}}class En{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler,this.affectsGlyphMargin=e.affectsGlyphMargin,this.affectsLineNumber=e.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}}class Nn{constructor(){this.type=5}}class Tn{constructor(e){this.type=6,this.isFocused=e}}class In{constructor(){this.type=7}}class Mn{constructor(){this.type=8}}class An{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}}class Rn{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class On{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class Pn{constructor(e,t,i,n,s,o,r){this.source=e,this.minimalReveal=t,this.range=i,this.selections=n,this.verticalType=s,this.revealHorizontal=o,this.scrollType=r,this.type=12}}class Fn{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class Bn{constructor(e){this.theme=e,this.type=14}}class Wn{constructor(e){this.type=15,this.ranges=e}}class Vn{constructor(){this.type=16}}class Hn{constructor(){this.type=17}}class zn extends c.jG{constructor(){super(),this._onEvent=this._register(new h.vl),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t<i;t++){const i=this._outgoingEvents[t].kind===e.kind?this._outgoingEvents[t].attemptToMerge(e):null;if(i)return void(this._outgoingEvents[t]=i)}this._outgoingEvents.push(e)}_emitOutgoingEvents(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t<i;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)}removeViewEventHandler(e){for(let t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}beginEmitViewEvents(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new jn),this._collector}endEmitViewEvents(){if(this._collectorCnt--,0===this._collectorCnt){const e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;for(const i of e)this._addOutgoingEvent(i);t.length>0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class jn{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class Un{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Un(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class Kn{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new Kn(this.oldHasFocus,e.hasFocus)}}class Gn{constructor(e,t,i,n,s,o,r,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=s,this.scrollLeft=o,this.scrollHeight=r,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Gn(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class $n{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class qn{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Qn{constructor(e,t,i,n,s,o,r){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=s,this.reason=o,this.reachedMaxCursorCount=r}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(!e[n].equalsSelection(t[n]))return!1;return!0}isNoOp(){return Qn._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}attemptToMerge(e){return e.kind!==this.kind?null:new Qn(this.oldSelections,e.selections,this.oldModelVersionId,e.modelVersionId,e.source,e.reason,this.reachedMaxCursorCount||e.reachedMaxCursorCount)}}class Yn{constructor(){this.kind=5}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Zn{constructor(e){this.event=e,this.kind=7}isNoOp(){return!1}attemptToMerge(e){return null}}class Xn{constructor(e){this.event=e,this.kind=8}isNoOp(){return!1}attemptToMerge(e){return null}}class Jn{constructor(e){this.event=e,this.kind=9}isNoOp(){return!1}attemptToMerge(e){return null}}class es{constructor(e){this.event=e,this.kind=10}isNoOp(){return!1}attemptToMerge(e){return null}}class ts{constructor(e){this.event=e,this.kind=11}isNoOp(){return!1}attemptToMerge(e){return null}}class is{constructor(e){this.event=e,this.kind=12}isNoOp(){return!1}attemptToMerge(e){return null}}class ns extends c.jG{constructor(e,t,i,n){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=i,this.context=new yn(this._model,this._viewModel,this._coordinatesConverter,n),this._cursors=new Cn(this.context),this._hasFocus=!1,this._isHandling=!1,this._compositionState=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=(0,c.AS)(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new yn(this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){const e=this._cursors.getSelections();for(let t=0;t<this._autoClosedActions.length;t++){const i=this._autoClosedActions[t];i.isValid(e)||(i.dispose(),this._autoClosedActions.splice(t,1),t--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(e,t,i,n){let s=!1;const o=this.context.cursorConfig.multiCursorLimit;null!==n&&n.length>o&&(n=n.slice(0,o),s=!0);const r=ss.from(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,r,s)}setCursorColumnSelectData(e){this._columnSelectData=e}revealAll(e,t,i,n,s,o){const r=this._cursors.getViewPositions();let a=null,l=null;r.length>1?l=this._cursors.getViewSelections():a=q.Q.fromPositions(r[0],r[0]),e.emitViewEvent(new Pn(t,i,a,l,n,s,o))}revealPrimary(e,t,i,n,s,o){const r=[this._cursors.getPrimaryCursor().viewState.selection];e.emitViewEvent(new Pn(t,i,null,r,n,s,o))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,n=t.length;i<n;i++){const n=t[i];e.push({inSelectionMode:!n.isEmpty(),selectionStart:{lineNumber:n.selectionStartLineNumber,column:n.selectionStartColumn},position:{lineNumber:n.positionLineNumber,column:n.positionColumn}})}return e}restoreState(e,t){const i=[];for(let n=0,s=t.length;n<s;n++){const e=t[n];let s=1,o=1;e.position&&e.position.lineNumber&&(s=e.position.lineNumber),e.position&&e.position.column&&(o=e.position.column);let r=s,a=o;e.selectionStart&&e.selectionStart.lineNumber&&(r=e.selectionStart.lineNumber),e.selectionStart&&e.selectionStart.column&&(a=e.selectionStart.column),i.push({selectionStartLineNumber:r,selectionStartColumn:a,positionLineNumber:s,positionColumn:o})}this.setStates(e,"restoreState",0,vn.MF.fromModelSelections(i)),this.revealAll(e,"restoreState",!1,0,!0,1)}onModelContentChanged(e,t){if(t instanceof Ui.vn){if(this._isHandling)return;this._isHandling=!0;try{this.setStates(e,"modelChange",0,this.getCursorStates())}finally{this._isHandling=!1}}else{const i=t.rawContentChangedEvent;if(this._knownModelVersionId=i.versionId,this._isHandling)return;const n=i.containsEvent(1);if(this._prevEditOperationType=0,n)this._cursors.dispose(),this._cursors=new Cn(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1);else if(this._hasFocus&&i.resultingSelection&&i.resultingSelection.length>0){const t=vn.MF.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,t)&&this.revealAll(e,"modelChange",!1,0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,vn.MF.fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,vn.MF.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],n=[];for(let r=0,a=e.length;r<a;r++)i.push({range:e[r],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),n.push({range:t[r],options:{description:"auto-closed-enclosing",stickiness:1}});const s=this._model.deltaDecorations([],i),o=this._model.deltaDecorations([],n);this._autoClosedActions.push(new os(this._model,s,o))}_executeEditOperation(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();const t=rs.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);const i=[],n=[];for(let t=0;t<e.commands.length;t++){const s=e.commands[t];s instanceof Sn.yl&&s.enclosingRange&&s.closeCharacterRange&&(i.push(s.closeCharacterRange),n.push(s.enclosingRange))}i.length>0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,s){const o=ss.from(this._model,this);if(o.equals(n))return!1;const r=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new Dn(a,r,i)),!n||n.cursorState.length!==o.cursorState.length||o.cursorState.some(((e,t)=>!e.modelState.equals(n.cursorState[t].modelState)))){const a=n?n.cursorState.map((e=>e.modelState.selection)):null,l=n?n.modelVersionId:0;e.emitOutgoingEvent(new Qn(a,r,l,o.modelVersionId,t||"keyboard",i,s))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i];if(!n.text||n.text.indexOf("\n")>=0)return null;const s=n.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!s)return null;const o=s[1],r=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(o);if(!r||1!==r.length)return null;const a=r[0].open,l=n.text.length-s[2].length-1,d=n.text.lastIndexOf(a,l-1);if(-1===d)return null;t.push([d,l])}return t}executeEdits(e,t,i,n){let s=null;"snippet"===t&&(s=this._findAutoClosingPairs(i)),s&&(i[0]._isTracked=!0);const o=[],r=[],a=this._model.pushEditOperations(this.getSelections(),i,(e=>{if(s)for(let i=0,n=s.length;i<n;i++){const[t,n]=s[i],a=e[i],l=a.range.startLineNumber,d=a.range.startColumn-1+t,h=a.range.startColumn-1+n;o.push(new q.Q(l,h+1,l,h+2)),r.push(new q.Q(l,d+1,l,h+2))}const t=n(e);return t&&(this._isHandling=!0),t}));a&&(this._isHandling=!1,this.setSelections(e,t,a,0)),o.length>0&&this._pushAutoClosedAction(o,r)}_executeEdit(e,t,i,n=0){if(this.context.cursorConfig.readOnly)return;const s=ss.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(o){(0,d.dz)(o)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,s,!1)&&this.revealAll(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return os.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new ls(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit((()=>{"keyboard"===t&&this._executeEditOperation(Sn.TK.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))}),e,t)}type(e,t,i){this._executeEdit((()=>{if("keyboard"===i){const e=t.length;let i=0;for(;i<e;){const e=Le.iy(t,i),n=t.substr(i,e);this._executeEditOperation(Sn.TK.typeWithInterceptors(!!this._compositionState,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),n)),i+=e}}else this._executeEditOperation(Sn.TK.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t))}),e,i)}compositionType(e,t,i,n,s,o){if(0!==t.length||0!==i||0!==n)this._executeEdit((()=>{this._executeEditOperation(Sn.TK.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,s))}),e,o);else if(0!==s){const t=this.getSelections().map((e=>{const t=e.getPosition();return new pe.L(t.lineNumber,t.column+s,t.lineNumber,t.column+s)}));this.setSelections(e,o,t,0)}}paste(e,t,i,n,s){this._executeEdit((()=>{this._executeEditOperation(Sn.TK.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))}),e,s,4)}cut(e,t){this._executeEdit((()=>{this._executeEditOperation(wn.g.cut(this.context.cursorConfig,this._model,this.getSelections()))}),e,t)}executeCommand(e,t,i){this._executeEdit((()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new vn.vY(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}executeCommands(e,t,i){this._executeEdit((()=>{this._executeEditOperation(new vn.vY(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}}class ss{static from(e,t){return new ss(e.getVersionId(),t.getCursorStates())}constructor(e,t){this.modelVersionId=e,this.cursorState=t}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t<i;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0}}class os{static getAllAutoClosedCharacters(e){let t=[];for(const i of e)t=t.concat(i.getAutoClosedCharactersRanges());return t}constructor(e,t,i){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=i}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){const e=[];for(let t=0;t<this._autoClosedCharactersDecorations.length;t++){const i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);i&&e.push(i)}return e}isValid(e){const t=[];for(let i=0;i<this._autoClosedEnclosingDecorations.length;i++){const e=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(e&&(t.push(e),e.startLineNumber!==e.endLineNumber))return!1}t.sort(q.Q.compareRangesUsingStarts),e.sort(q.Q.compareRangesUsingStarts);for(let i=0;i<e.length;i++){if(i>=t.length)return!1;if(!t[i].strictContainsRange(e[i]))return!1}return!0}}class rs{static executeCommands(e,t,i){const n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},s=this._innerExecuteCommands(n,i);for(let o=0,r=n.trackedRanges.length;o<r;o++)n.model._setTrackedRange(n.trackedRanges[o],null,0);return s}static _innerExecuteCommands(e,t){if(this._arrayIsEmpty(t))return null;const i=this._getEditOperations(e,t);if(0===i.operations.length)return null;const n=i.operations,s=this._getLoserCursorMap(n);if(s.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;const o=[];for(let l=0,d=n.length;l<d;l++)s.hasOwnProperty(n[l].identifier.major.toString())||o.push(n[l]);i.hadTrackedEditOperation&&o.length>0&&(o[0]._isTracked=!0);let r=e.model.pushEditOperations(e.selectionsBefore,o,(i=>{const n=[];for(let t=0;t<e.selectionsBefore.length;t++)n[t]=[];for(const e of i)e.identifier&&n[e.identifier.major].push(e);const s=(e,t)=>e.identifier.minor-t.identifier.minor,o=[];for(let r=0;r<e.selectionsBefore.length;r++)n[r].length>0?(n[r].sort(s),o[r]=t[r].computeCursorState(e.model,{getInverseEditOperations:()=>n[r],getTrackedSelection:t=>{const i=parseInt(t,10),n=e.model._getTrackedRange(e.trackedRanges[i]);return 0===e.trackedRangesDirection[i]?new pe.L(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new pe.L(n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn)}})):o[r]=e.selectionsBefore[r];return o}));r||(r=e.selectionsBefore);const a=[];for(const l in s)s.hasOwnProperty(l)&&a.push(parseInt(l,10));a.sort(((e,t)=>t-e));for(const l of a)r.splice(l,1);return r}static _arrayIsEmpty(e){for(let t=0,i=e.length;t<i;t++)if(e[t])return!1;return!0}static _getEditOperations(e,t){let i=[],n=!1;for(let s=0,o=t.length;s<o;s++){const o=t[s];if(o){const t=this._getEditOperationsFromCommand(e,s,o);i=i.concat(t.operations),n=n||t.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:n}}static _getEditOperationsFromCommand(e,t,i){const n=[];let s=0;const o=(e,o,r=!1)=>{q.Q.isEmpty(e)&&""===o||n.push({identifier:{major:t,minor:s++},range:e,text:o,forceMoveMarkers:r,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let r=!1;const a={addEditOperation:o,addTrackedEditOperation:(e,t,i)=>{r=!0,o(e,t,i)},trackSelection:(t,i)=>{const n=pe.L.liftSelection(t);let s;if(n.isEmpty())if("boolean"===typeof i)s=i?2:3;else{const t=e.model.getLineMaxColumn(n.startLineNumber);s=n.startColumn===t?2:3}else s=1;const o=e.trackedRanges.length,r=e.model._setTrackedRange(null,n,s);return e.trackedRanges[o]=r,e.trackedRangesDirection[o]=n.getDirection(),o.toString()}};try{i.getEditOperations(e.model,a)}catch(l){return(0,d.dz)(l),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:r}}static _getLoserCursorMap(e){(e=e.slice(0)).sort(((e,t)=>-q.Q.compareRangesUsingEnds(e.range,t.range)));const t={};for(let i=1;i<e.length;i++){const n=e[i-1],s=e[i];if(q.Q.getStartPosition(n.range).isBefore(q.Q.getEndPosition(s.range))){let o;o=n.identifier.major>s.identifier.major?n.identifier.major:s.identifier.major,t[o.toString()]=!0;for(let t=0;t<e.length;t++)e[t].identifier.major===o&&(e.splice(t,1),t<i&&i--,t--);i>0&&i--}}return t}}class as{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class ls{static _capture(e,t){const i=[];for(const n of t){if(n.startLineNumber!==n.endLineNumber)return null;i.push(new as(e.getLineContent(n.startLineNumber),n.startColumn-1,n.endColumn-1))}return i}constructor(e,t){this._original=ls._capture(e,t)}deduceOutcome(e,t){if(!this._original)return null;const i=ls._capture(e,t);if(!i)return null;if(this._original.length!==i.length)return null;const n=[];for(let s=0,o=this._original.length;s<o;s++)n.push(ls._deduceOutcome(this._original[s],i[s]));return n}static _deduceOutcome(e,t){const i=Math.min(e.startSelection,t.startSelection,Le.Qp(e.text,t.text)),n=Math.min(e.text.length-e.endSelection,t.text.length-t.endSelection,Le.Vi(e.text,t.text)),s=e.text.substring(i,e.text.length-n),o=t.text.substring(i,t.text.length-n);return new Sn.vS(s,e.startSelection-i,e.endSelection-i,o,t.startSelection-i,t.endSelection-i)}}var ds=i(83941),hs=i(58314),cs=i(49353);class us{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,n=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,n)}}class gs{constructor(e,t,i,n,s){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=n,this.minWidth=s,this.prefixSum=0}}class ps{constructor(e,t,i,n){this._instanceId=Le.tk(++ps.INSTANCE_COUNT),this._pendingChanges=new us,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=n}static findInsertionIndex(e,t,i){let n=0,s=e.length;for(;n<s;){const o=n+s>>>1;t===e[o].afterLineNumber?i<e[o].ordinal?s=o:n=o+1:t<e[o].afterLineNumber?s=o:n=o+1}return n}setLineHeight(e){this._checkPendingChanges(),this._lineHeight=e}setPadding(e,t){this._paddingTop=e,this._paddingBottom=t}onFlushed(e){this._checkPendingChanges(),this._lineCount=e}changeWhitespace(e){let t=!1;try{e({insertWhitespace:(e,i,n,s)=>{t=!0,e|=0,i|=0,n|=0,s|=0;const o=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new gs(o,e,i,n,s)),o},changeOneWhitespace:(e,i,n)=>{t=!0,i|=0,n|=0,this._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:n})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of i){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const n=new Set;for(const a of i)n.add(a.id);const s=new Map;for(const a of t)s.set(a.id,a);const o=e=>{const t=[];for(const i of e)if(!n.has(i.id)){if(s.has(i.id)){const e=s.get(i.id);i.afterLineNumber=e.newAfterLineNumber,i.height=e.newHeight}t.push(i)}return t},r=o(this._arr).concat(o(e));r.sort(((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber)),this._arr=r,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=ps.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;i<n;i++)if(t[i].id===e)return i;return-1}_changeOneWhitespace(e,t,i){const n=this._findWhitespaceIndex(e);if(-1!==n&&(this._arr[n].height!==i&&(this._arr[n].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1)),this._arr[n].afterLineNumber!==t)){const e=this._arr[n];this._removeWhitespace(n),e.afterLineNumber=t,this._insertWhitespace(e)}}_removeWhitespace(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}onLinesDeleted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(let i=0,n=this._arr.length;i<n;i++){const n=this._arr[i].afterLineNumber;e<=n&&n<=t?this._arr[i].afterLineNumber=e-1:n>t&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i<n;i++){e<=this._arr[i].afterLineNumber&&(this._arr[i].afterLineNumber+=t-e+1)}}getWhitespacesTotalHeight(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(e){this._checkPendingChanges(),e|=0;let t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(let i=t;i<=e;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum}getLinesTotalHeight(){this._checkPendingChanges();return this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(e){this._checkPendingChanges(),e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)}_findLastWhitespaceBeforeLineNumber(e){e|=0;const t=this._arr;let i=0,n=t.length-1;for(;i<=n;){const s=i+((n-i|0)/2|0)|0;if(t[s].afterLineNumber<e){if(s+1>=t.length||t[s+1].afterLineNumber>=e)return s;i=s+1|0}else n=s-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1}getFirstWhitespaceIndexAfterLineNumber(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)}getVerticalOffsetForLineNumber(e,t=!1){let i;this._checkPendingChanges(),i=(e|=0)>1?this._lineHeight*(e-1):0;return i+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0))+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){this._checkPendingChanges(),e|=0;return this._lineHeight*e+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0))+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;t<i;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}isAfterLines(e){this._checkPendingChanges();return e>this.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e<this._paddingTop)}isInBottomPadding(e){if(0===this._paddingBottom)return!1;this._checkPendingChanges();return e>=this.getLinesTotalHeight()-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,i=this._lineHeight;let n=1,s=t;for(;n<s;){const t=(n+s)/2|0,o=0|this.getVerticalOffsetForLineNumber(t);if(e>=o+i)n=t+1;else{if(e>=o)return t;s=t}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this._lineHeight,n=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(n);let o=0|this._lineCount,r=0|this.getFirstWhitespaceIndexAfterLineNumber(n);const a=0|this.getWhitespacesCount();let l,d;-1===r?(r=a,d=o+1,l=0):(d=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));let h=s,c=h;const u=5e5;let g=0;s>=u&&(g=Math.floor(s/u)*u,g=Math.floor(g/i)*i,c-=g);const p=[],m=e+(t-e)/2;let f=-1;for(let C=n;C<=o;C++){if(-1===f){(h<=m&&m<h+i||h>m)&&(f=C)}for(h+=i,p[C-n]=c,c+=i;d===C;)c+=l,h+=l,r++,r>=a?d=o+1:(d=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));if(h>=t){o=C;break}}-1===f&&(f=o);const _=0|this.getVerticalOffsetForLineNumber(o);let v=n,b=o;return v<b&&s<e&&v++,v<b&&_+i>t&&b--,{bigNumbersDelta:g,startLineNumber:n,endLineNumber:o,relativeVerticalOffset:p,centeredLineNumber:f,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:b,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i,n;return i=t>=1?this._lineHeight*t:0,n=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this.getHeightForWhitespaceIndex(i))return-1;for(;t<i;){const n=Math.floor((t+i)/2),s=this.getVerticalOffsetForWhitespaceIndex(n);if(e>=s+this.getHeightForWhitespaceIndex(n))t=n+1;else{if(e>=s)return n;i=n}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];const s=[];for(let o=i;o<=n;o++){const e=this.getVerticalOffsetForWhitespaceIndex(o),i=this.getHeightForWhitespaceIndex(o);if(e>=t)break;s.push({id:this.getIdForWhitespaceIndex(o),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(o),verticalOffset:e,height:i})}return s}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}ps.INSTANCE_COUNT=0;class ms{constructor(e,t,i,n){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(n|=0)<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class fs extends c.jG{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new h.vl),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new ms(0,0,0,0),this._scrollable=this._register(new cs.yE({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new Un(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class _s extends c.jG{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,s=n.get(145),o=n.get(84);this._linesLayout=new ps(t,n.get(67),o.top,o.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new fs(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new ms(s.contentWidth,0,s.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(114)?125:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(t.get(67)),e.hasChanged(84)){const e=t.get(84);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(145)){const e=t.get(145),i=e.contentWidth,n=e.height,s=this._scrollable.getScrollDimensions(),o=s.contentWidth;this._scrollable.setScrollDimensions(new ms(i,s.contentWidth,n,this._getContentHeight(i,n,o)))}else this._updateHeight();e.hasChanged(114)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const i=this._configuration.options.get(103);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let s=this._linesLayout.getLinesTotalHeight();return n.get(105)?s+=Math.max(0,t-n.get(67)-n.get(84).bottom):n.get(103).ignoreHorizontalScrollbarInContentHeight||(s+=this._getHorizontalScrollbarHeight(e,i)),s}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new ms(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new zt.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new zt.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(){const e=this._configuration.options,t=this._maxLineWidth,i=e.get(146),n=e.get(50),s=e.get(145);if(i.isViewportWrapping){const i=e.get(73);return t>s.contentWidth+n.typicalHalfwidthCharacterWidth&&i.enabled&&"right"===i.side?t+s.verticalScrollbarWidth:t}{const i=e.get(104)*n.typicalHalfwidthCharacterWidth,o=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+i+s.verticalScrollbarWidth,o,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){const e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new ms(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}var vs=i(32398),bs=i(87469);function Cs(e,t){return null===e?t?ws.INSTANCE:Ss.INSTANCE:new ys(e,t)}class ys{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const n=i>0?this._projectionData.breakOffsets[i-1]:0,s=this._projectionData.breakOffsets[i];let o;if(null!==this._projectionData.injectionOffsets){const i=this._projectionData.injectionOffsets.map(((e,t)=>new Ui.uK(0,0,e+1,this._projectionData.injectionOptions[t],0)));o=Ui.uK.applyInjectedText(e.getLineContent(t),i).substring(n,s)}else o=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:s+1});return i>0&&(o=xs(this._projectionData.wrappedTextIndentLength)+o),o}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const n=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,n,s,o,r){this._assertVisible();const a=this._projectionData,l=a.injectionOffsets,d=a.injectionOptions;let h,c=null;if(l){c=[];let e=0,t=0;for(let i=0;i<a.getOutputLineCount();i++){const n=new Array;c[i]=n;const s=i>0?a.breakOffsets[i-1]:0,o=a.breakOffsets[i];for(;t<l.length;){const r=d[t].content.length,h=l[t]+e,c=h+r;if(h>o)break;if(s<c){const e=d[t];if(e.inlineClassName){const t=i>0?a.wrappedTextIndentLength:0,r=t+Math.max(h-s,0),l=t+Math.min(c-s,o-s);r!==l&&n.push(new zt.or(r,l,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(!(c<=o))break;e+=r,t++}}}h=l?e.tokenization.getLineTokens(t).withInserted(l.map(((e,t)=>({offset:e,text:d[t].content,tokenMetadata:bs.f.defaultTokenMetadata})))):e.tokenization.getLineTokens(t);for(let u=i;u<i+n;u++){const e=s+u-i;o[e]?r[e]=this._getViewLineData(h,c?c[u]:null,u):r[e]=null}}_getViewLineData(e,t,i){this._assertVisible();const n=this._projectionData,s=i>0?n.wrappedTextIndentLength:0,o=i>0?n.breakOffsets[i-1]:0,r=n.breakOffsets[i],a=e.sliceAndInflate(o,r,s);let l=a.getLineContent();i>0&&(l=xs(n.wrappedTextIndentLength)+l);const d=this._projectionData.getMinOutputOffset(i)+1,h=l.length+1,c=i+1<this.getViewLineCount(),u=0===i?0:n.breakOffsetsVisibleColumn[i-1];return new zt.GP(l,c,d,h,u,a,t)}getModelColumnOfViewPosition(e,t){return this._assertVisible(),this._projectionData.translateToInputOffset(e,t-1)+1}getViewPositionOfModelPosition(e,t,i=2){this._assertVisible();return this._projectionData.translateToOutputPosition(t-1,i).toPosition(e)}getViewLineNumberOfModelPosition(e,t){this._assertVisible();return e+this._projectionData.translateToOutputPosition(t-1).outputLineIndex}normalizePosition(e,t,i){const n=t.lineNumber-e;return this._projectionData.normalizeOutputPosition(e,t.column-1,i).toPosition(n)}getInjectedTextAt(e,t){return this._projectionData.getInjectedText(e,t-1)}_assertVisible(){if(!this._isVisible)throw new Error("Not supported")}}class ws{constructor(){}isVisible(){return!0}setVisible(e){return e?this:Ss.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){const n=e.tokenization.getLineTokens(t),s=n.getLineContent();return new zt.GP(s,!1,1,s.length+1,0,n.inflate(),null)}getViewLinesData(e,t,i,n,s,o,r){o[s]?r[s]=this.getViewLineData(e,t,0):r[s]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new $.y(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i){return t}getInjectedTextAt(e,t){return null}}ws.INSTANCE=new ws;class Ss{constructor(){}isVisible(){return!1}setVisible(e){return e?ws.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw new Error("Not supported")}getViewLineLength(e,t,i){throw new Error("Not supported")}getViewLineMinColumn(e,t,i){throw new Error("Not supported")}getViewLineMaxColumn(e,t,i){throw new Error("Not supported")}getViewLineData(e,t,i){throw new Error("Not supported")}getViewLinesData(e,t,i,n,s,o,r){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}normalizePosition(e,t,i){throw new Error("Not supported")}getInjectedTextAt(e,t){throw new Error("Not supported")}}Ss.INSTANCE=new Ss;const ks=[""];function xs(e){if(e>=ks.length)for(let t=1;t<=e;t++)ks[t]=Ls(t);return ks[e]}function Ls(e){return new Array(e+1).join(" ")}var Ds=i(27414);class Es{constructor(e,t,i,n,s,o,r,a,l,d){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=s,this.tabSize=o,this.wrappingStrategy=r,this.wrappingColumn=a,this.wrappingIndent=l,this.wordBreak=d,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new Is(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),s=i.length,o=this.createLineBreaksComputer(),r=new m.j3(Ui.uK.fromDecorations(n));for(let p=0;p<s;p++){const e=r.takeWhile((e=>e.lineNumber===p+1));o.addRequest(i[p],e,t?t[p]:null)}const a=o.finalize(),l=[],d=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(q.Q.compareRangesUsingStarts);let h=1,c=0,u=-1,g=u+1<d.length?c+1:s+2;for(let p=0;p<s;p++){const e=p+1;e===g&&(u++,h=d[u].startLineNumber,c=d[u].endLineNumber,g=u+1<d.length?c+1:s+2);const t=e>=h&&e<=c,i=Cs(a[p],!t);l[p]=i.getViewLineCount(),this.modelLineProjections[p]=i}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new Ds.c2(l)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e)))}setHiddenAreas(e){const t=function(e){if(0===e.length)return[];const t=e.slice();t.sort(q.Q.compareRangesUsingStarts);const i=[];let n=t[0].startLineNumber,s=t[0].endLineNumber;for(let o=1,r=t.length;o<r;o++){const e=t[o];e.startLineNumber>s+1?(i.push(new q.Q(n,1,s,1)),n=e.startLineNumber,s=e.endLineNumber):e.endLineNumber>s&&(s=e.endLineNumber)}return i.push(new q.Q(n,1,s,1)),i}(e.map((e=>this.model.validateRange(e)))),i=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(q.Q.compareRangesUsingStarts);if(t.length===i.length){let e=!1;for(let n=0;n<t.length;n++)if(!t[n].equalsRange(i[n])){e=!0;break}if(!e)return!1}const n=t.map((e=>({range:e,options:sn.kI.EMPTY})));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,n);const s=t;let o=1,r=0,a=-1,l=a+1<s.length?r+1:this.modelLineProjections.length+2,d=!1;for(let h=0;h<this.modelLineProjections.length;h++){const e=h+1;e===l&&(a++,o=s[a].startLineNumber,r=s[a].endLineNumber,l=a+1<s.length?r+1:this.modelLineProjections.length+2);let t=!1;if(e>=o&&e<=r?this.modelLineProjections[h].isVisible()&&(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!1),t=!0):(d=!0,this.modelLineProjections[h].isVisible()||(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!0),t=!0)),t){const e=this.modelLineProjections[h].getViewLineCount();this.projectedModelLineLineCounts.setValue(h,e)}}return d||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.modelLineProjections.length)&&this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n,s){const o=this.fontInfo.equals(e),r=this.wrappingStrategy===t,a=this.wrappingColumn===i,l=this.wrappingIndent===n,d=this.wordBreak===s;if(o&&r&&a&&l&&d)return!1;const h=o&&r&&!a&&l&&d;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n,this.wordBreak=s;let c=null;if(h){c=[];for(let e=0,t=this.modelLineProjections.length;e<t;e++)c[e]=this.modelLineProjections[e].getProjectionData()}return this._constructLines(!1,c),!0}createLineBreaksComputer(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent,this.wordBreak)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(e,t,i){if(!e||e<=this._validModelVersionId)return null;const n=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,s=this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections.splice(t-1,i-t+1),this.projectedModelLineLineCounts.removeValues(t-1,i-t+1),new Rn(n,s)}onModelLinesInserted(e,t,i,n){if(!e||e<=this._validModelVersionId)return null;const s=t>2&&!this.modelLineProjections[t-2].isVisible(),o=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let r=0;const a=[],l=[];for(let d=0,h=n.length;d<h;d++){const e=Cs(n[d],!s);a.push(e);const t=e.getViewLineCount();r+=t,l[d]=t}return this.modelLineProjections=this.modelLineProjections.slice(0,t-1).concat(a).concat(this.modelLineProjections.slice(t-1)),this.projectedModelLineLineCounts.insertValues(t-1,l),new On(o,o+r-1)}onModelLineChanged(e,t,i){if(null!==e&&e<=this._validModelVersionId)return[!1,null,null,null];const n=t-1,s=this.modelLineProjections[n].getViewLineCount(),o=Cs(i,this.modelLineProjections[n].isVisible());this.modelLineProjections[n]=o;const r=this.modelLineProjections[n].getViewLineCount();let a=!1,l=0,d=-1,h=0,c=-1,u=0,g=-1;s>r?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,d=l+r-1,u=d+1,g=u+(s-r)-1,a=!0):s<r?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,d=l+s-1,h=d+1,c=h+(r-s)-1,a=!0):(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,d=l+r-1),this.projectedModelLineLineCounts.setValue(n,r);return[a,l<=d?new An(l,d-l+1):null,h<=c?new On(h,c):null,u<=g?new Rn(u,g):null]}acceptVersionId(e){this._validModelVersionId=e,1!==this.modelLineProjections.length||this.modelLineProjections[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.projectedModelLineLineCounts.getTotalSum()}_toValidViewLineNumber(e){if(e<1)return 1;const t=this.getViewLineCount();return e>t?t:0|e}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),o=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),r=this.model.guides.getActiveIndentGuide(n.lineNumber,s.lineNumber,o.lineNumber),a=this.convertModelPositionToViewPosition(r.startLineNumber,1),l=this.convertModelPositionToViewPosition(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:r.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,n=t.remainder;return new Ns(i+1,n)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new $.y(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new $.y(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),s=new Array;let o=this.getModelStartPositionOfViewLine(i),r=new Array;for(let a=i.modelLineNumber;a<=n.modelLineNumber;a++){const e=this.modelLineProjections[a-1];if(e.isVisible()){const t=a===i.modelLineNumber?i.modelLineWrappedLineIdx:0,s=a===n.modelLineNumber?n.modelLineWrappedLineIdx+1:e.getViewLineCount();for(let e=t;e<s;e++)r.push(new Ns(a,e))}if(!e.isVisible()&&o){const e=new $.y(a-1,this.model.getLineMaxColumn(a-1)+1),t=q.Q.fromPositions(o,e);s.push(new Ts(t,r)),r=[],o=null}else e.isVisible()&&!o&&(o=new $.y(a,1))}if(o){const e=q.Q.fromPositions(o,this.getModelEndPositionOfViewLine(n));s.push(new Ts(e,r))}return s}getViewLinesBracketGuides(e,t,i,n){const s=i?this.convertViewPositionToModelPosition(i.lineNumber,i.column):null,o=[];for(const r of this.getViewLineInfosGroupedByModelRanges(e,t)){const e=r.modelRange.startLineNumber,t=this.model.guides.getLinesBracketGuides(e,r.modelRange.endLineNumber,s,n);for(const i of r.viewLines){const n=t[i.modelLineNumber-e].map((e=>{if(-1!==e.forWrappedLinesAfterColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesAfterColumn).lineNumber>=i.modelLineWrappedLineIdx)return}if(-1!==e.forWrappedLinesBeforeOrAtColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesBeforeOrAtColumn).lineNumber<i.modelLineWrappedLineIdx)return}if(!e.horizontalLine)return e;let t=-1;if(-1!==e.column){const n=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.column);if(n.lineNumber===i.modelLineWrappedLineIdx)t=n.column;else if(n.lineNumber<i.modelLineWrappedLineIdx)t=this.getMinColumnOfViewLine(i);else if(n.lineNumber>i.modelLineWrappedLineIdx)return}const n=this.convertModelPositionToViewPosition(i.modelLineNumber,e.horizontalLine.endColumn),s=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.horizontalLine.endColumn);return s.lineNumber===i.modelLineWrappedLineIdx?new Et.TH(e.visibleColumn,t,e.className,new Et.pv(e.horizontalLine.top,n.column),-1,-1):s.lineNumber<i.modelLineWrappedLineIdx||-1!==e.visibleColumn?void 0:new Et.TH(e.visibleColumn,t,e.className,new Et.pv(e.horizontalLine.top,this.getMaxColumnOfViewLine(i)),-1,-1)}));o.push(n.filter((e=>!!e)))}}return o}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let s=[];const o=[],r=[],a=i.lineNumber-1,l=n.lineNumber-1;let d=null;for(let g=a;g<=l;g++){const e=this.modelLineProjections[g];if(e.isVisible()){const t=e.getViewLineNumberOfModelPosition(0,g===a?i.column:1),n=e.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(g+1)),s=n-t+1;let l=0;s>1&&1===e.getViewLineMinColumn(this.model,g+1,n)&&(l=0===t?1:2),o.push(s),r.push(l),null===d&&(d=new $.y(g+1,0))}else null!==d&&(s=s.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,g)),d=null)}null!==d&&(s=s.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,n.lineNumber)),d=null);const h=t-e+1,c=new Array(h);let u=0;for(let g=0,p=s.length;g<p;g++){let e=s[g];const t=Math.min(h-u,o[g]),i=r[g];let n;n=2===i?0:1===i?1:t;for(let s=0;s<t;s++)s===n&&(e=0),c[u++]=e}return c}getViewLineContent(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineContent(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineLength(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineLength(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMinColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMinColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMaxColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMaxColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineData(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineData(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLinesData(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const n=this.projectedModelLineLineCounts.getIndexOf(e-1);let s=e;const o=n.index,r=n.remainder,a=[];for(let l=o,d=this.model.getLineCount();l<d;l++){const n=this.modelLineProjections[l];if(!n.isVisible())continue;const d=l===o?r:0;let h=n.getViewLineCount()-d,c=!1;if(s+h>t&&(c=!0,h=t-s+1),n.getViewLinesData(this.model,l+1,d,h,s-e,i,a),s+=h,c)break}return a}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const n=this.projectedModelLineLineCounts.getIndexOf(e-1),s=n.index,o=n.remainder,r=this.modelLineProjections[s],a=r.getViewLineMinColumn(this.model,s+1,o),l=r.getViewLineMaxColumn(this.model,s+1,o);t<a&&(t=a),t>l&&(t=l);const d=r.getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new $.y(s+1,d)).equals(i)?new $.y(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new q.Q(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),n=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new $.y(i.modelLineNumber,n))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new q.Q(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2,n=!1,s=!1){const o=this.model.validatePosition(new $.y(e,t)),r=o.lineNumber,a=o.column;let l=r-1,d=!1;if(s)for(;l<this.modelLineProjections.length&&!this.modelLineProjections[l].isVisible();)l++,d=!0;else for(;l>0&&!this.modelLineProjections[l].isVisible();)l--,d=!0;if(0===l&&!this.modelLineProjections[l].isVisible())return new $.y(n?0:1,1);const h=1+this.projectedModelLineLineCounts.getPrefixSum(l);let c;return c=d?s?this.modelLineProjections[l].getViewPositionOfModelPosition(h,1,i):this.modelLineProjections[l].getViewPositionOfModelPosition(h,this.model.getLineMaxColumn(l+1),i):this.modelLineProjections[r-1].getViewPositionOfModelPosition(h,a,i),c}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return q.Q.fromPositions(i)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new q.Q(t.lineNumber,t.column,i.lineNumber,i.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const e=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(e,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(0===i&&!this.modelLineProjections[i].isVisible())return 1;const n=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i,n,s){const o=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),r=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(r.lineNumber-o.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new q.Q(o.lineNumber,1,r.lineNumber,r.column),t,i,n,s);let a=[];const l=o.lineNumber-1,d=r.lineNumber-1;let h=null;for(let p=l;p<=d;p++){if(this.modelLineProjections[p].isVisible())null===h&&(h=new $.y(p+1,p===l?o.column:1));else if(null!==h){const e=this.model.getLineMaxColumn(p);a=a.concat(this.model.getDecorationsInRange(new q.Q(h.lineNumber,h.column,p,e),t,i,n)),h=null}}null!==h&&(a=a.concat(this.model.getDecorationsInRange(new q.Q(h.lineNumber,h.column,r.lineNumber,r.column),t,i,n)),h=null),a.sort(((e,t)=>{const i=q.Q.compareRangesUsingStarts(e.range,t.range);return 0===i?e.id<t.id?-1:e.id>t.id?1:0:i}));const c=[];let u=0,g=null;for(const p of a){const e=p.id;g!==e&&(g=e,c[u++]=p)}return c}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return 0===t.modelLineWrappedLineIdx?this.model.getLineIndentColumn(t.modelLineNumber):0}}class Ns{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class Ts{constructor(e,t){this.modelRange=e,this.viewLines=t}}class Is{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t,i,n){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t,i,n)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class Ms{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new As(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new Rn(t,i)}onModelLinesInserted(e,t,i,n){return new On(t,i)}onModelLineChanged(e,t,i){return[!1,new An(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,n=new Array(i);for(let s=0;s<i;s++)n[s]=0;return n}getViewLineContent(e){return this.model.getLineContent(e)}getViewLineLength(e){return this.model.getLineLength(e)}getViewLineMinColumn(e){return this.model.getLineMinColumn(e)}getViewLineMaxColumn(e){return this.model.getLineMaxColumn(e)}getViewLineData(e){const t=this.model.tokenization.getLineTokens(e),i=t.getLineContent();return new zt.GP(i,!1,1,i.length+1,0,t.inflate(),null)}getViewLinesData(e,t,i){const n=this.model.getLineCount();e=Math.min(Math.max(1,e),n),t=Math.min(Math.max(1,t),n);const s=[];for(let o=e;o<=t;o++){const t=o-e;s[t]=i[t]?this.getViewLineData(o):null}return s}getDecorationsInRange(e,t,i,n,s){return this.model.getDecorationsInRange(e,t,i,n,s)}normalizePosition(e,t){return this.model.normalizePosition(e,t)}getLineIndentColumn(e){return this.model.getLineIndentColumn(e)}getInjectedTextAt(e){return null}}class As{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}const Rs=_t.ZS.Right;class Os{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*Rs/8))}reset(e){const t=Math.ceil((e+1)*Rs/8);this.lanes.length<t?this.lanes=new Uint8Array(t):this.lanes.fill(0),this._requiredLanes=1}get requiredLanes(){return this._requiredLanes}push(e,t,i){i&&(this.persist|=1<<e-1);for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const t=Rs*n+(e-1);this.lanes[t>>>3]|=1<<t%8,this._requiredLanes=Math.max(this._requiredLanes,this.countAtLine(n))}}getLanesAtLine(e){const t=[];let i=Rs*e;for(let n=0;n<Rs;n++)(this.persist&1<<n||this.lanes[i>>>3]&1<<i%8)&&t.push(n+1),i++;return t.length?t:[_t.ZS.Center]}countAtLine(e){let t=Rs*e,i=0;for(let n=0;n<Rs;n++)(this.persist&1<<n||this.lanes[t>>>3]&1<<t%8)&&i++,t++;return i}}class Ps extends c.jG{constructor(e,t,i,n,s,o,r,a,l){if(super(),this.languageConfigurationService=r,this._themeService=a,this._attachedView=l,this.hiddenAreasModel=new Ws,this.previousHiddenAreas=[],this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new zn,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new vn.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._updateConfigurationViewLineCount=this._register(new It.uC((()=>this._updateConfigurationViewLineCountNow()),0)),this._hasFocus=!1,this._viewportStart=Fs.create(this.model),this.glyphLanes=new Os(0),this.model.isTooLargeForTokenization())this._lines=new Ms(this.model);else{const e=this._configuration.options,t=e.get(50),i=e.get(139),o=e.get(146),r=e.get(138),a=e.get(129);this._lines=new Es(this._editorId,this.model,n,s,t,this.model.getOptions().tabSize,i,o.wrappingColumn,r,a)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new ns(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new _s(this._configuration,this.getLineCount(),o)),this._register(this.viewLayout.onDidScroll((e=>{e.scrollTopChanged&&this._handleVisibleLinesChanged(),e.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new Fn(e)),this._eventDispatcher.emitOutgoingEvent(new Gn(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),this._register(this.viewLayout.onDidContentSizeChange((e=>{this._eventDispatcher.emitOutgoingEvent(e)}))),this._decorations=new vs.UB(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(Ht.getInstance().onDidChange((()=>{this._eventDispatcher.emitSingleViewEvent(new Vn)}))),this._register(this._themeService.onDidColorThemeChange((e=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new Bn(e))}))),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){const e=this.viewLayout.getLinesViewportData(),t=new q.Q(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber));return this._toModelVisibleRanges(t)}visibleLinesStabilized(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!0)}_handleVisibleLinesChanged(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!1)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new Tn(e)),this._eventDispatcher.emitOutgoingEvent(new Kn(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new kn)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new xn)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){const e=new $.y(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),t=this.coordinatesConverter.convertViewPositionToModelPosition(e);return new Hs(t,this._viewportStart.startLineDelta)}return new Hs(null,0)}_onConfigurationChanged(e,t){const i=this._captureStableViewport(),n=this._configuration.options,s=n.get(50),o=n.get(139),r=n.get(146),a=n.get(138),l=n.get(129);this._lines.setWrappingSettings(s,o,r.wrappingColumn,a,l)&&(e.emitViewEvent(new Nn),e.emitViewEvent(new Mn),e.emitViewEvent(new En(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(91)&&(this._decorations.reset(),e.emitViewEvent(new En(null))),t.hasChanged(98)&&(this._decorations.reset(),e.emitViewEvent(new En(null))),e.emitViewEvent(new Ln(t)),this.viewLayout.onConfigurationChanged(t),i.recoverViewportStart(this.coordinatesConverter,this.viewLayout),vn.d$.shouldRecreate(t)&&(this.cursorConfig=new vn.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,n=!1;const s=e instanceof Ui.Ic?e.rawContentChangedEvent.changes:e.changes,o=e instanceof Ui.Ic?e.rawContentChangedEvent.versionId:null,r=this._lines.createLineBreaksComputer();for(const e of s)switch(e.changeType){case 4:for(let t=0;t<e.detail.length;t++){const i=e.detail[t];let n=e.injectedTexts[t];n&&(n=n.filter((e=>!e.ownerId||e.ownerId===this._editorId))),r.addRequest(i,n,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter((e=>!e.ownerId||e.ownerId===this._editorId))),r.addRequest(e.detail,t,null);break}}const a=r.finalize(),l=new m.j3(a);for(const e of s)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new Nn),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break;case 3:{const n=this._lines.onModelLinesDeleted(o,e.fromLineNumber,e.toLineNumber);null!==n&&(t.emitViewEvent(n),this.viewLayout.onLinesDeleted(n.fromLineNumber,n.toLineNumber)),i=!0;break}case 4:{const n=l.takeCount(e.detail.length),s=this._lines.onModelLinesInserted(o,e.fromLineNumber,e.toLineNumber,n);null!==s&&(t.emitViewEvent(s),this.viewLayout.onLinesInserted(s.fromLineNumber,s.toLineNumber)),i=!0;break}case 2:{const i=l.dequeue(),[s,r,a,d]=this._lines.onModelLineChanged(o,e.lineNumber,i);n=s,r&&t.emitViewEvent(r),a&&(t.emitViewEvent(a),this.viewLayout.onLinesInserted(a.fromLineNumber,a.toLineNumber)),d&&(t.emitViewEvent(d),this.viewLayout.onLinesDeleted(d.fromLineNumber,d.toLineNumber));break}}null!==o&&this._lines.acceptVersionId(o),this.viewLayout.onHeightMaybeChanged(),!i&&n&&(t.emitViewEvent(new Mn),t.emitViewEvent(new En(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const e=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),i=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:i+this._viewportStart.startLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();e instanceof Ui.Ic&&t.emitOutgoingEvent(new es(e.contentChangedEvent)),this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()}))),this._register(this.model.onDidChangeTokens((e=>{const t=[];for(let i=0,n=e.ranges.length;i<n;i++){const n=e.ranges[i],s=this.coordinatesConverter.convertModelPositionToViewPosition(new $.y(n.fromLineNumber,1)).lineNumber,o=this.coordinatesConverter.convertModelPositionToViewPosition(new $.y(n.toLineNumber,this.model.getLineMaxColumn(n.toLineNumber))).lineNumber;t[i]={fromLineNumber:s,toLineNumber:o}}this._eventDispatcher.emitSingleViewEvent(new Wn(t)),this._eventDispatcher.emitOutgoingEvent(new is(e))}))),this._register(this.model.onDidChangeLanguageConfiguration((e=>{this._eventDispatcher.emitSingleViewEvent(new In),this.cursorConfig=new vn.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Jn(e))}))),this._register(this.model.onDidChangeLanguage((e=>{this.cursorConfig=new vn.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Xn(e))}))),this._register(this.model.onDidChangeOptions((e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new Nn),e.emitViewEvent(new Mn),e.emitViewEvent(new En(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new vn.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new ts(e))}))),this._register(this.model.onDidChangeDecorations((e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new En(e)),this._eventDispatcher.emitOutgoingEvent(new Zn(e))})))}setHiddenAreas(e,t){var i;this.hiddenAreasModel.setHiddenAreas(t,e);const n=this.hiddenAreasModel.getMergedRanges();if(n===this.previousHiddenAreas)return;this.previousHiddenAreas=n;const s=this._captureStableViewport();let o=!1;try{const e=this._eventDispatcher.beginEmitViewEvents();o=this._lines.setHiddenAreas(n),o&&(e.emitViewEvent(new Nn),e.emitViewEvent(new Mn),e.emitViewEvent(new En(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());const t=null===(i=s.viewportStartModelPosition)||void 0===i?void 0:i.lineNumber;t&&n.some((e=>e.startLineNumber<=t&&t<=e.endLineNumber))||s.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),o&&this._eventDispatcher.emitOutgoingEvent(new qn)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(145),t=this._configuration.options.get(67),i=Math.max(20,Math.round(e.height/t)),n=this.viewLayout.getLinesViewportData(),s=Math.max(1,n.completelyVisibleStartLineNumber-i),o=Math.min(this.getLineCount(),n.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new q.Q(s,this.getLineMinColumn(s),o,this.getLineMaxColumn(o)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(0===i.length)return[t];const n=[];let s=0,o=t.startLineNumber,r=t.startColumn;const a=t.endLineNumber,l=t.endColumn;for(let d=0,h=i.length;d<h;d++){const e=i[d].startLineNumber,t=i[d].endLineNumber;t<o||(e>a||(o<e&&(n[s++]=new q.Q(o,r,e-1,this.model.getLineMaxColumn(e-1))),o=t+1,r=1))}return(o<a||o===a&&r<l)&&(n[s++]=new q.Q(o,r,a,l)),n}getCompletelyVisibleViewRange(){const e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,i=e.completelyVisibleEndLineNumber;return new q.Q(t,this.getLineMinColumn(t),i,this.getLineMaxColumn(i))}getCompletelyVisibleViewRangeAtScrollTop(e){const t=this.viewLayout.getLinesViewportDataAtScrollTop(e),i=t.completelyVisibleStartLineNumber,n=t.completelyVisibleEndLineNumber;return new q.Q(i,this.getLineMinColumn(i),n,this.getLineMaxColumn(n))}saveState(){const e=this.viewLayout.saveState(),t=e.scrollTop,i=this.viewLayout.getLineNumberAtVerticalOffset(t),n=this.coordinatesConverter.convertViewPositionToModelPosition(new $.y(i,this.getLineMinColumn(i))),s=this.viewLayout.getVerticalOffsetForLineNumber(i)-t;return{scrollLeft:e.scrollLeft,firstPosition:n,firstPositionDeltaTop:s}}reduceRestoreState(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),n=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:n}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,i,n){return this._lines.getViewLinesBracketGuides(e,t,i,n)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=Le.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=Le.lT(this.getLineContent(e));return-1===t?0:t+2}getMinimapDecorationsInRange(e){return this._decorations.getMinimapDecorationsInRange(e)}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewportViewLineRenderingData(e,t){const i=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,i)}getViewLineRenderingData(e){const t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}_getViewLineRenderingData(e,t){const i=this.model.mightContainRTL(),n=this.model.mightContainNonBasicASCII(),s=this.getTabSize(),o=this._lines.getViewLineData(e);return o.inlineDecorations&&(t=[...t,...o.inlineDecorations.map((t=>t.toInlineDecoration(e)))]),new zt.qL(o.minColumn,o.maxColumn,o.content,o.continuesWithWrappedLine,i,n,o.tokens,t,s,o.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const n=this._lines.getViewLinesData(e,t,i);return new zt.nt(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,(0,x.$C)(this._configuration.options)),i=new Bs;for(const n of t){const t=n.options,s=t.overviewRuler;if(!s)continue;const o=s.position;if(0===o)continue;const r=s.getColor(e.value),a=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),l=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(r,t.zIndex,a,l,o)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;null===e||void 0===e||e.invalidateCachedColor();const i=t.options.minimap;null===i||void 0===i||i.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}getValueLengthInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueLengthInRange(i,t)}modifyPosition(e,t){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e),n=this.model.modifyPosition(i,t);return this.coordinatesConverter.convertModelPositionToViewPosition(n)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=i:t+=i);const s=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(s)}getPlainTextToCopy(e,t,i){const n=i?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(q.Q.compareRangesUsingStarts);let s=!1,o=!1;for(const a of e)a.isEmpty()?s=!0:o=!0;if(!o){if(!t)return"";const i=e.map((e=>e.startLineNumber));let s="";for(let e=0;e<i.length;e++)e>0&&i[e-1]===i[e]||(s+=this.model.getLineContent(i[e])+n);return s}if(s&&t){const t=[];let n=0;for(const s of e){const e=s.startLineNumber;s.isEmpty()?e!==n&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(s,i?2:0)),n=e}return 1===t.length?t[0]:t}const r=[];for(const a of e)a.isEmpty()||r.push(this.model.getValueInRange(a,i?2:0));return 1===r.length?r[0]:r}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===ds.vH)return null;if(1!==e.length)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const e=n.startLineNumber;n=new q.Q(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const s=this._configuration.options.get(50),o=this._getColorMap();let r;if(/[:;\\\/<>]/.test(s.fontFamily)||s.fontFamily===x.jU.fontFamily)r=x.jU.fontFamily;else{r=s.fontFamily,r=r.replace(/"/g,"'");if(!/[,']/.test(r)){/[+ ]/.test(r)&&(r=`'${r}'`)}r=`${r}, ${x.jU.fontFamily}`}return{mode:i,html:`<div style="color: ${o[1]};background-color: ${o[2]};font-family: ${r};font-weight: ${s.fontWeight};font-size: ${s.fontSize}px;line-height: ${s.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(n,o)+"</div>"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,o=e.endColumn,r=this.getTabSize();let a="";for(let l=i;l<=s;l++){const e=this.model.tokenization.getLineTokens(l),d=e.getLineContent(),h=l===i?n-1:0,c=l===s?o-1:d.length;a+=""===d?"<br>":(0,hs.s0)(d,e.inflate(),t,h,c,r,_.uF)}return a}_getColorMap(){const e=Oe.dG.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;i<n;i++)t[i]=Pe.Q1.Format.CSS.formatHex(e[i]);return t}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(e,t,i){return this._withViewEventsCollector((n=>this._cursor.setStates(n,e,t,i)))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector((n=>this._cursor.setSelections(n,e,t,i)))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector((t=>this._cursor.restoreState(t,e)))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new Yn):this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit((n=>this._cursor.executeEdits(n,e,t,i)))}startComposition(){this._executeCursorEdit((e=>this._cursor.startComposition(e)))}endComposition(e){this._executeCursorEdit((t=>this._cursor.endComposition(t,e)))}type(e,t){this._executeCursorEdit((i=>this._cursor.type(i,e,t)))}compositionType(e,t,i,n,s){this._executeCursorEdit((o=>this._cursor.compositionType(o,e,t,i,n,s)))}paste(e,t,i,n){this._executeCursorEdit((s=>this._cursor.paste(s,e,t,i,n)))}cut(e){this._executeCursorEdit((t=>this._cursor.cut(t,e)))}executeCommand(e,t){this._executeCursorEdit((i=>this._cursor.executeCommand(i,e,t)))}executeCommands(e,t){this._executeCursorEdit((i=>this._cursor.executeCommands(i,e,t)))}revealAllCursors(e,t,i=!1){this._withViewEventsCollector((n=>this._cursor.revealAll(n,e,i,0,t,0)))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector((n=>this._cursor.revealPrimary(n,e,i,0,t,0)))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new q.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Pn(e,!1,i,null,0,!0,0))))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new q.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Pn(e,!1,i,null,0,!0,0))))}revealRange(e,t,i,n,s){this._withViewEventsCollector((o=>o.emitViewEvent(new Pn(e,!1,i,null,n,t,s))))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new Hn),this._eventDispatcher.emitOutgoingEvent(new $n))}_withViewEventsCollector(e){try{return e(this._eventDispatcher.beginEmitViewEvents())}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class Fs{static create(e){const t=e._setTrackedRange(null,new q.Q(1,1,1,1),1);return new Fs(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(e,t,i,n,s){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=n,this._startLineDelta=s}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new $.y(t,e.getLineMinColumn(t))),n=e.model._setTrackedRange(this._modelTrackedRange,new q.Q(i.lineNumber,i.column,i.lineNumber,i.column),1),s=e.viewLayout.getVerticalOffsetForLineNumber(t),o=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=n,this._startLineDelta=o-s}invalidate(){this._isValid=!1}}class Bs{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,s){const o=this._asMap[e];if(o){const e=o.data,t=e[e.length-3],r=e[e.length-1];if(t===s&&r+1>=i)return void(n>r&&(e[e.length-1]=n));e.push(s,i,n)}else{const o=new zt.Uv(e,t,[s,i,n]);this._asMap[e]=o,this.asArray.push(o)}}}class Ws{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(e,t){const i=this.hiddenAreas.get(e);i&&Vs(i,t)||(this.hiddenAreas.set(e,t),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;const e=Array.from(this.hiddenAreas.values()).reduce(((e,t)=>function(e,t){const i=[];let n=0,s=0;for(;n<e.length&&s<t.length;){const o=e[n],r=t[s];if(o.endLineNumber<r.startLineNumber-1)i.push(e[n++]);else if(r.endLineNumber<o.startLineNumber-1)i.push(t[s++]);else{const e=Math.min(o.startLineNumber,r.startLineNumber),t=Math.max(o.endLineNumber,r.endLineNumber);i.push(new q.Q(e,1,t,1)),n++,s++}}for(;n<e.length;)i.push(e[n++]);for(;s<t.length;)i.push(t[s++]);return i}(e,t)),[]);return Vs(this.ranges,e)||(this.ranges=e),this.ranges}}function Vs(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].equalsRange(t[i]))return!1;return!0}class Hs{constructor(e,t){this.viewportStartModelPosition=e,this.startLineDelta=t}recoverViewportStart(e,t){if(!this.viewportStartModelPosition)return;const i=e.convertModelPositionToViewPosition(this.viewportStartModelPosition),n=t.getVerticalOffsetForLineNumber(i.lineNumber);t.setScrollPosition({scrollTop:n+this.startLineDelta},1)}}var zs,js=i(50091),Us=i(32848),Ks=i(58345),Gs=i(58591),$s=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},qs=function(e,t){return function(i,n){t(i,n,e)}};let Qs=zs=class extends c.jG{get isSimpleWidget(){return this._configuration.isSimpleWidget}constructor(e,t,i,n,o,r,a,c,u,g,p,m){var f;super(),this.languageConfigurationService=p,this._deliveryQueue=(0,h.Qy)(),this._contributions=this._register(new Zi),this._onDidDispose=this._register(new h.vl),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onWillChangeModel=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onWillChangeModel=this._onWillChangeModel.event,this._onDidChangeModel=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new Xs({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new Xs({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new Js(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new Js(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new Js(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new Js(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new Js(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new Js(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),o.willCreateCodeEditor();const _={...t};let v;this._domElement=e,this._overflowWidgetsDomNode=_.overflowWidgetsDomNode,delete _.overflowWidgetsDomNode,this._id=++Ys,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,_,g)),this._register(this._configuration.onDidChange((e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(145)){const e=t.get(145);this._onDidLayoutChange.fire(e)}}))),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=u,this._codeEditorService=o,this._commandService=r,this._themeService=c,this._register(new eo(this,this._contextKeyService)),this._register(new to(this,this._contextKeyService,m)),this._instantiationService=n.createChild(new Ks.a([Us.fN,this._contextKeyService])),this._modelData=null,this._focusTracker=new io(e,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange((()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}))),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={},v=Array.isArray(i.contributions)?i.contributions:s.dS.getEditorContributions(),this._contributions.initialize(this,v,this._instantiationService);for(const l of s.dS.getEditorActions()){if(this._actions.has(l.id)){(0,d.dz)(new Error(`Cannot have two actions with the same id ${l.id}`));continue}const e=new Ji.f(l.id,l.label,l.alias,l.metadata,null!==(f=l.precondition)&&void 0!==f?f:void 0,(e=>this._instantiationService.invokeFunction((t=>Promise.resolve(l.runEditorCommand(t,this,e))))),this._contextKeyService);this._actions.set(e.id,e)}const b=()=>!this._configuration.options.get(91)&&this._configuration.options.get(36).enabled;this._register(new l.pN(this._domElement,{onDragOver:e=>{if(!b())return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);(null===t||void 0===t?void 0:t.position)&&this.showDropIndicatorAt(t.position)},onDrop:async e=>{if(!b())return;if(this.removeDropIndicator(),!e.dataTransfer)return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);(null===t||void 0===t?void 0:t.position)&&this._onDropIntoEditor.fire({position:t.position,event:e})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(e){var t;null===(t=this._modelData)||void 0===t||t.view.writeScreenReaderContent(e)}_createConfiguration(e,t,i){return new M(e,t,this._domElement,i)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return en._.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose(),this._actions.clear(),this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e||{})}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?Xi.z.getWordAtPosition(this._modelData.model,this._configuration.options.get(131),this._configuration.options.get(130),e):null}getValue(e=null){if(!this._modelData)return"";const t=!(!e||!e.preserveBOM);let i=0;return e&&e.lineEnding&&"\n"===e.lineEnding?i=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){this._modelData&&this._modelData.model.setValue(e)}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){var t;const i=e;if(null===this._modelData&&null===i)return;if(this._modelData&&this._modelData.model===i)return;const n={oldModelUrl:(null===(t=this._modelData)||void 0===t?void 0:t.model.uri)||null,newModelUrl:(null===i||void 0===i?void 0:i.uri)||null};this._onWillChangeModel.fire(n);const s=this.hasTextFocus(),o=this._detachModel();this._attachModel(i),s&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(n),this._postDetachModelCleanup(o),this._contributionsDisposable=this._contributions.onAfterModelAttached()}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(const i in t)this._removeDecorationType(e+"-"+i)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(e,t,i,n){const s=e.model.validatePosition({lineNumber:t,column:i}),o=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(o.lineNumber,n)}getTopForLineNumber(e,t=!1){return this._modelData?zs._getVerticalOffsetForPosition(this._modelData,e,1,t):-1}getTopForPosition(e,t){return this._modelData?zs._getVerticalOffsetForPosition(this._modelData,e,t,!1):-1}static _getVerticalOffsetForPosition(e,t,i,n=!1){const s=e.model.validatePosition({lineNumber:t,column:i}),o=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber,n)}getBottomForLineNumber(e,t=!1){return this._modelData?zs._getVerticalOffsetAfterPosition(this._modelData,e,1,t):-1}setHiddenAreas(e,t){var i;null===(i=this._modelData)||void 0===i||i.viewModel.setHiddenAreas(e.map((e=>q.Q.lift(e))),t)}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return Q.A.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(this._modelData){if(!$.y.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!q.Q.isIRange(e))throw new Error("Invalid arguments");const s=this._modelData.model.validateRange(e),o=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(s);this._modelData.viewModel.revealRange("api",i,o,t,n)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if("number"!==typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!$.y.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=pe.L.isISelection(e),n=q.Q.isIRange(e);if(!i&&!n)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(n){const i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new pe.L(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if("number"!==typeof e||"number"!==typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e,1,t,1),i,!1,n)}revealRange(e,t=0,i=!1,n=!0){this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!q.Q.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(q.Q.lift(e),t,i,n)}setSelections(e,t="api",i=0){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,i=e.length;t<i;t++)if(!pe.L.isISelection(e[t]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,e,i)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollLeft:e},t)}}setScrollTop(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollTop:e},t)}}setScrollPosition(e,t=1){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPosition(e,t)}hasPendingScrollAnimation(){return!!this._modelData&&this._modelData.viewModel.viewLayout.hasPendingScrollAnimation()}saveViewState(){if(!this._modelData)return null;const e=this._contributions.saveViewState();return{cursorState:this._modelData.viewModel.saveCursorState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}}restoreViewState(e){if(!this._modelData||!this._modelData.hasRealView)return;const t=e;if(t&&t.cursorState&&t.viewState){const e=t.cursorState;Array.isArray(e)?e.length>0&&this._modelData.viewModel.restoreCursorState(e):this._modelData.viewModel.restoreCursorState([e]),this._contributions.restoreViewState(t.contributionsState||{});const i=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(i)}}handleInitialized(){var e;null===(e=this._getViewModel())||void 0===e||e.visibleLinesStabilized()}getContribution(e){return this._contributions.get(e)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let e=this.getActions();return e=e.filter((e=>e.isSupported())),e}getAction(e){return this._actions.get(e)||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=i;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=i;return void this._compositionType(e,t.text||"",t.replaceCharCnt||0,0,0)}case"compositionType":{const t=i;return void this._compositionType(e,t.text||"",t.replacePrevCharCnt||0,t.replaceNextCharCnt||0,t.positionDelta||0)}case"paste":{const t=i;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null,t.clipboardEvent)}case"cut":return void this._cut(e)}const n=this.getAction(t);n?Promise.resolve(n.run(i)).then(void 0,d.dz):this._modelData&&(this._triggerEditorCommand(e,t,i)||this._triggerCommand(t,i))}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_compositionType(e,t,i,n,s){this._modelData&&this._modelData.viewModel.compositionType(t,i,n,s,e)}_paste(e,t,i,n,s,o){if(!this._modelData)return;const r=this._modelData.viewModel,a=r.getSelection().getStartPosition();r.paste(t,i,n,e);const l=r.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({clipboardEvent:o,range:new q.Q(a.lineNumber,a.column,l.lineNumber,l.column),languageId:s})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=s.dS.getEditorCommand(t);return!!n&&((i=i||{}).source=e,this._instantiationService.invokeFunction((e=>{Promise.resolve(n.runEditorCommand(e,this,i)).then(void 0,d.dz)})),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&(!this._configuration.options.get(91)&&(this._modelData.model.pushStackElement(),!0))}popUndoStop(){return!!this._modelData&&(!this._configuration.options.get(91)&&(this._modelData.model.popStackElement(),!0))}executeEdits(e,t,i){if(!this._modelData)return!1;if(this._configuration.options.get(91))return!1;let n;return n=i?Array.isArray(i)?()=>i:i:()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new no(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,(0,x.$C)(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,(0,x.$C)(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){this._modelData&&0!==e.length&&this._modelData.model.changeDecorations((t=>{t.deltaDecorations(e,[])}))}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.changeDecorations((e=>e.deltaDecorations(t,[]))),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(145)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarPointerDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateScrollFromMouseWheelEvent(e)}layout(e,t=!1){this._configuration.observeContainer(e),t||this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id:"+e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}addGlyphMarginWidget(e){const t={widget:e,position:e.getPosition()};this._glyphMarginWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a glyph margin widget with the same id."),this._glyphMarginWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(t)}layoutGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const i=this._glyphMarginWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(i)}}removeGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const e=this._glyphMarginWidgets[t];delete this._glyphMarginWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,n=i.get(145);return{top:zs._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+n.glyphMarginWidth+n.lineNumbersWidth+n.decorationsWidth-this.getScrollLeft(),height:i.get(67)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){(0,g.M)(e,this._configuration.options.get(50))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount());const i=e.onBeforeAttached(),n=new Ps(this._id,this._configuration,e,Gi.create(l.zk(this._domElement)),an.create(this._configuration.options),(e=>l.PG(l.zk(this._domElement),e)),this.languageConfigurationService,this._themeService,i);t.push(e.onWillDispose((()=>this.setModel(null)))),t.push(n.onEvent((t=>{switch(t.kind){case 0:this._onDidContentSizeChange.fire(t);break;case 1:this._editorTextFocus.setValue(t.hasFocus);break;case 2:this._onDidScrollChange.fire(t);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(t.reachedMaxCursorCount){const e=this.getOption(80),t=xe.kg("cursors.maximum","The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",e);this._notificationService.prompt(Gs.AI.Warning,t,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:xe.kg("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const e=[];for(let s=0,o=t.selections.length;s<o;s++)e[s]=t.selections[s].getPosition();const i={position:e[0],secondaryPositions:e.slice(1),reason:t.reason,source:t.source};this._onDidChangeCursorPosition.fire(i);const n={selection:t.selections[0],secondarySelections:t.selections.slice(1),modelVersionId:t.modelVersionId,oldSelections:t.oldSelections,oldModelVersionId:t.oldModelVersionId,source:t.source,reason:t.reason};this._onDidChangeCursorSelection.fire(n);break}case 7:this._onDidChangeModelDecorations.fire(t.event);break;case 8:this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._onDidChangeModelLanguage.fire(t.event);break;case 9:this._onDidChangeModelLanguageConfiguration.fire(t.event);break;case 10:this._onDidChangeModelContent.fire(t.event);break;case 11:this._onDidChangeModelOptions.fire(t.event);break;case 12:this._onDidChangeModelTokens.fire(t.event)}})));const[s,o]=this._createView(n);if(o){this._domElement.appendChild(s.domNode.domNode);let t=Object.keys(this._contentWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];s.addContentWidget(this._contentWidgets[i])}t=Object.keys(this._overlayWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];s.addOverlayWidget(this._overlayWidgets[i])}t=Object.keys(this._glyphMarginWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];s.addGlyphMarginWidget(this._glyphMarginWidgets[i])}s.render(!1,!0),s.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Zs(e,n,s,o,t,i)}_createView(e){let t;t=this.isSimpleWidget?{paste:(e,t,i,n)=>{this._paste("keyboard",e,t,i,n)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,i,n)=>{this._compositionType("keyboard",e,t,i,n)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,i,n)=>{const s={text:e,pasteOnNewLine:t,multicursorText:i,mode:n};this._commandService.executeCommand("paste",s)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},compositionType:(e,t,i,n)=>{if(i||n){const s={text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:n};this._commandService.executeCommand("compositionType",s)}else{const i={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",i)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new nt(e.coordinatesConverter);i.onKeyDown=e=>this._onKeyDown.fire(e),i.onKeyUp=e=>this._onKeyUp.fire(e),i.onContextMenu=e=>this._onContextMenu.fire(e),i.onMouseMove=e=>this._onMouseMove.fire(e),i.onMouseLeave=e=>this._onMouseLeave.fire(e),i.onMouseDown=e=>this._onMouseDown.fire(e),i.onMouseUp=e=>this._onMouseUp.fire(e),i.onMouseDrag=e=>this._onMouseDrag.fire(e),i.onMouseDrop=e=>this._onMouseDrop.fire(e),i.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),i.onMouseWheel=e=>this._onMouseWheel.fire(e);return[new Pi(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(e){null===e||void 0===e||e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){var e;if(null===(e=this._contributionsDisposable)||void 0===e||e.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;const t=this._modelData.model,i=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),i&&this._domElement.contains(i)&&this._domElement.removeChild(i),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),t}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}showDropIndicatorAt(e){const t=[{range:new q.Q(e.lineNumber,e.column,e.lineNumber,e.column),options:zs.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(e,t){this._contextKeyService.createKey(e,t)}};Qs.dropIntoEditorDecorationOptions=sn.kI.register({description:"workbench-dnd-target",className:"dnd-target"}),Qs=zs=$s([qs(3,We._Y),qs(4,B.T),qs(5,js.d),qs(6,Us.fN),qs(7,Ne.Gy),qs(8,Gs.Ot),qs(9,E.j),qs(10,nn.JZ),qs(11,on.u)],Qs);let Ys=0;class Zs{constructor(e,t,i,n,s,o){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=s,this.attachedView=o}dispose(){(0,c.AS)(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}class Xs extends c.jG{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new h.vl(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new h.vl(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class Js extends h.vl{constructor(e,t){super({deliveryQueue:t}),this._contributions=e}fire(e){this._contributions.onBeforeInteractionEvent(),super.fire(e)}}class eo extends c.jG{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=tn.R.editorSimpleInput.bindTo(t),this._editorFocus=tn.R.focus.bindTo(t),this._textInputFocus=tn.R.textInputFocus.bindTo(t),this._editorTextFocus=tn.R.editorTextFocus.bindTo(t),this._tabMovesFocus=tn.R.tabMovesFocus.bindTo(t),this._editorReadonly=tn.R.readOnly.bindTo(t),this._inDiffEditor=tn.R.inDiffEditor.bindTo(t),this._editorColumnSelection=tn.R.columnSelection.bindTo(t),this._hasMultipleSelections=tn.R.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=tn.R.hasNonEmptySelection.bindTo(t),this._canUndo=tn.R.canUndo.bindTo(t),this._canRedo=tn.R.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromConfig()))),this._register(this._editor.onDidChangeCursorSelection((()=>this._updateFromSelection()))),this._register(this._editor.onDidFocusEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidFocusEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidChangeModel((()=>this._updateFromModel()))),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromModel()))),this._register(k.M.onDidChangeTabFocus((e=>this._tabMovesFocus.set(e)))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._tabMovesFocus.set(k.M.getTabFocusMode()),this._editorReadonly.set(e.get(91)),this._inDiffEditor.set(e.get(61)),this._editorColumnSelection.set(e.get(22))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((e=>!e.isEmpty())))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class to extends c.jG{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=tn.R.languageId.bindTo(t),this._hasCompletionItemProvider=tn.R.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=tn.R.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=tn.R.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=tn.R.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=tn.R.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=tn.R.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=tn.R.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=tn.R.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=tn.R.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=tn.R.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=tn.R.hasReferenceProvider.bindTo(t),this._hasRenameProvider=tn.R.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=tn.R.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=tn.R.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=tn.R.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=tn.R.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=tn.R.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=tn.R.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInEmbeddedEditor=tn.R.isInEmbeddedEditor.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(i.completionProvider.onDidChange(n)),this._register(i.codeActionProvider.onDidChange(n)),this._register(i.codeLensProvider.onDidChange(n)),this._register(i.definitionProvider.onDidChange(n)),this._register(i.declarationProvider.onDidChange(n)),this._register(i.implementationProvider.onDidChange(n)),this._register(i.typeDefinitionProvider.onDidChange(n)),this._register(i.hoverProvider.onDidChange(n)),this._register(i.documentHighlightProvider.onDidChange(n)),this._register(i.documentSymbolProvider.onDidChange(n)),this._register(i.referenceProvider.onDidChange(n)),this._register(i.renameProvider.onDidChange(n)),this._register(i.documentFormattingEditProvider.onDidChange(n)),this._register(i.documentRangeFormattingEditProvider.onDidChange(n)),this._register(i.signatureHelpProvider.onDidChange(n)),this._register(i.inlayHintsProvider.onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents((()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInEmbeddedEditor.reset()}))}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents((()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInEmbeddedEditor.set(e.uri.scheme===u.ny.walkThroughSnippet||e.uri.scheme===u.ny.vscodeChatCodeBlock)})):this.reset()}}class io extends c.jG{constructor(e,t){super(),this._onChange=this._register(new h.vl),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(l.w5(e)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus((()=>{this._hasDomElementFocus=!0,this._update()}))),this._register(this._domFocusTracker.onDidBlur((()=>{this._hasDomElementFocus=!1,this._update()}))),t&&(this._overflowWidgetsDomNode=this._register(l.w5(t)),this._register(this._overflowWidgetsDomNode.onDidFocus((()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()}))),this._register(this._overflowWidgetsDomNode.onDidBlur((()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()}))))}_update(){const e=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==e&&(this._hadFocus=e,this._onChange.fire(void 0))}hasFocus(){var e;return null!==(e=this._hadFocus)&&void 0!==e&&e}}class no{get length(){return this._decorationIds.length}constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations((i=>{this._isChangingDecorations||e.call(t,i)}),i)}getRange(e){return this._editor.hasModel()?e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e]):null}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const n=e.getDecorationRange(i);n&&t.push(n)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){0!==this._decorationIds.length&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations((t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)}))}finally{this._isChangingDecorations=!1}return this._decorationIds}append(e){let t=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations((i=>{t=i.deltaDecorations([],e),this._decorationIds=this._decorationIds.concat(t)}))}finally{this._isChangingDecorations=!1}return t}}const so=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),oo=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function ro(e){return so+encodeURIComponent(e.toString())+oo}const ao=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),lo=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');(0,Ne.zy)(((e,t)=>{const i=e.getColor(jt.Rbi);i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${ro(i)}") repeat-x bottom left; }`);const n=e.getColor(jt.Hng);n&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${ro(n)}") repeat-x bottom left; }`);const s=e.getColor(jt.pOz);s&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${ro(s)}") repeat-x bottom left; }`);const o=e.getColor(jt.i61);o&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${function(e){return ao+encodeURIComponent(e.toString())+lo}(o)}") no-repeat bottom left; }`);const r=e.getColor(Te.yw);r&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${r.rgba.a}; }`)}))},29163:(e,t,i)=>{"use strict";i.d(t,{t:()=>f});var n=i(10146),s=i(80301),o=i(60703),r=i(17469),a=i(56942),l=i(253),d=i(50091),h=i(32848),c=i(63591),u=i(58591),g=i(47612),p=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},m=function(e,t){return function(i,n){t(i,n,e)}};let f=class extends o.x{constructor(e,t,i,n,s,o,r,a,l,d,h,c,u){super(e,{...n.getRawOptions(),overflowWidgetsDomNode:n.getOverflowWidgetsDomNode()},i,s,o,r,a,l,d,h,c,u),this._parentEditor=n,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(n.onDidChangeConfiguration((e=>this._onParentConfigurationChanged(e))))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){n.co(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};f=p([m(4,c._Y),m(5,s.T),m(6,d.d),m(7,h.fN),m(8,g.Gy),m(9,u.Ot),m(10,l.j),m(11,r.JZ),m(12,a.u)],f)},20961:(e,t,i)=>{"use strict";var n=i(10350),s=i(8597),o=i(31450),r=i(80301),a=i(89723),l=i(60002),d=i(31629),h=i(27195),c=i(84001),u=i(32848);i(10691);class g extends h.L{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:(0,d.aS)("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:n.W.map,toggled:u.M$.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:u.M$.has("isInDiffEditor"),menu:{when:u.M$.has("isInDiffEditor"),id:h.D8.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(c.pG),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class p extends h.L{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:(0,d.aS)("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:u.M$.has("isInDiffEditor")})}run(e,...t){const i=e.get(c.pG),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class m extends h.L{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:(0,d.aS)("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:u.M$.has("isInDiffEditor")})}run(e,...t){const i=e.get(c.pG),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const f=(0,d.aS)("diffEditor","Diff Editor");class _ extends o.qO{constructor(){super({id:"diffEditor.switchSide",title:(0,d.aS)("switchSide","Switch Side"),icon:n.W.arrowSwap,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,i){const n=x(e);if(n instanceof a.T){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class v extends o.qO{constructor(){super({id:"diffEditor.exitCompareMove",title:(0,d.aS)("exitCompareMove","Exit Compare Move"),icon:n.W.close,precondition:l.R.comparingMovedCode,f1:!1,category:f,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=x(e);n instanceof a.T&&n.exitCompareMove()}}class b extends o.qO{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:(0,d.aS)("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:n.W.fold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,...i){const n=x(e);n instanceof a.T&&n.collapseAllUnchangedRegions()}}class C extends o.qO{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:(0,d.aS)("showAllUnchangedRegions","Show All Unchanged Regions"),icon:n.W.unfold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,...i){const n=x(e);n instanceof a.T&&n.showAllUnchangedRegions()}}class y extends h.L{constructor(){super({id:"diffEditor.revert",title:(0,d.aS)("revert","Revert"),f1:!1,category:f})}run(e,t){var i;const n=function(e,t,i){const n=e.get(r.T);return n.listDiffEditors().find((e=>{var n,s;const o=e.getModifiedEditor(),r=e.getOriginalEditor();return o&&(null===(n=o.getModel())||void 0===n?void 0:n.uri.toString())===i.toString()&&r&&(null===(s=r.getModel())||void 0===s?void 0:s.uri.toString())===t.toString()}))||null}(e,t.originalUri,t.modifiedUri);n instanceof a.T&&n.revertRangeMappings(null!==(i=t.mapping.innerChanges)&&void 0!==i?i:[])}}const w=(0,d.aS)("accessibleDiffViewer","Accessible Diff Viewer");class S extends h.L{constructor(){super({id:S.id,title:(0,d.aS)("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:w,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=x(e);null===t||void 0===t||t.accessibleDiffViewerNext()}}S.id="editor.action.accessibleDiffViewer.next";class k extends h.L{constructor(){super({id:k.id,title:(0,d.aS)("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:w,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=x(e);null===t||void 0===t||t.accessibleDiffViewerPrev()}}function x(e){const t=e.get(r.T).listDiffEditors(),i=(0,s.bq)();if(i)for(const n of t){if(L(n.getContainerDomNode(),i))return n}return null}function L(e,t){let i=t;for(;i;){if(i===e)return!0;i=i.parentElement}return!1}k.id="editor.action.accessibleDiffViewer.prev";var D=i(50091);(0,h.ug)(g),(0,h.ug)(p),(0,h.ug)(m),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:(new m).desc.id,title:(0,d.kg)("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:u.M$.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:u.M$.has("isInDiffEditor")},order:11,group:"1_diff",when:u.M$.and(l.R.diffEditorRenderSideBySideInlineBreakpointReached,u.M$.has("isInDiffEditor"))}),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:(new p).desc.id,title:(0,d.kg)("showMoves","Show Moved Code Blocks"),icon:n.W.move,toggled:u.f1.create("config.diffEditor.experimental.showMoves",!0),precondition:u.M$.has("isInDiffEditor")},order:10,group:"1_diff",when:u.M$.has("isInDiffEditor")}),(0,h.ug)(y);for(const E of[{icon:n.W.arrowRight,key:l.R.diffEditorInlineMode.toNegated()},{icon:n.W.discard,key:l.R.diffEditorInlineMode}])h.ZG.appendMenuItem(h.D8.DiffEditorHunkToolbar,{command:{id:(new y).desc.id,title:(0,d.kg)("revertHunk","Revert Block"),icon:E.icon},when:u.M$.and(l.R.diffEditorModifiedWritable,E.key),order:5,group:"primary"}),h.ZG.appendMenuItem(h.D8.DiffEditorSelectionToolbar,{command:{id:(new y).desc.id,title:(0,d.kg)("revertSelection","Revert Selection"),icon:E.icon},when:u.M$.and(l.R.diffEditorModifiedWritable,E.key),order:5,group:"primary"});(0,h.ug)(_),(0,h.ug)(v),(0,h.ug)(b),(0,h.ug)(C),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:S.id,title:(0,d.kg)("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:u.M$.has("isInDiffEditor")},order:10,group:"2_diff",when:u.M$.and(l.R.accessibleDiffViewerVisible.negate(),u.M$.has("isInDiffEditor"))}),D.w.registerCommandAlias("editor.action.diffReview.next",S.id),(0,h.ug)(S),D.w.registerCommandAlias("editor.action.diffReview.prev",k.id),(0,h.ug)(k)},89723:(e,t,i)=>{"use strict";i.d(t,{T:()=>zt});var n=i(8597),s=i(46041),o=i(64383),r=i(41234),a=i(5662),l=i(99938),d=i(87958),h=i(31450),c=i(80301),u=i(55190),g=i(60703),p=i(80789),m=i(11799),f=i(31295),_=i(36921),v=i(25890),b=i(10350),C=i(25689),y=i(73157),w=i(90568),S=i(87908),k=i(86571),x=i(74444),L=i(83069),D=i(36677),E=i(87723),N=i(10154),T=i(87469),I=i(35600),M=i(92896),A=i(31629),R=i(87213),O=i(63591),P=i(61394),F=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},B=function(e,t){return function(i,n){t(i,n,e)}};const W=(0,P.pU)("diff-review-insert",b.W.add,(0,A.kg)("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),V=(0,P.pU)("diff-review-remove",b.W.remove,(0,A.kg)("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),H=(0,P.pU)("diff-review-close",b.W.close,(0,A.kg)("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer."));let z=class extends a.jG{constructor(e,t,i,n,s,o,r,a,d){super(),this._parentNode=e,this._visible=t,this._setVisible=i,this._canClose=n,this._width=s,this._height=o,this._diffs=r,this._models=a,this._instantiationService=d,this._state=(0,l.rm)(this,((e,t)=>{const i=this._visible.read(e);if(this._parentNode.style.visibility=i?"visible":"hidden",!i)return null;const n=t.add(this._instantiationService.createInstance(j,this._diffs,this._models,this._setVisible,this._canClose));return{model:n,view:t.add(this._instantiationService.createInstance(Z,this._parentNode,n,this._width,this._height,this._models))}})).recomputeInitiallyAndOnChange(this._store)}next(){(0,l.Rn)((e=>{const t=this._visible.get();this._setVisible(!0,e),t&&this._state.get().model.nextGroup(e)}))}prev(){(0,l.Rn)((e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e)}))}close(){(0,l.Rn)((e=>{this._setVisible(!1,e)}))}};z._ttPolicy=(0,p.H)("diffReview",{createHTML:e=>e}),z=F([B(8,O._Y)],z);let j=class extends a.jG{constructor(e,t,i,n,s){super(),this._diffs=e,this._models=t,this._setVisible=i,this.canClose=n,this._accessibilitySignalService=s,this._groups=(0,l.FY)(this,[]),this._currentGroupIdx=(0,l.FY)(this,0),this._currentElementIdx=(0,l.FY)(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map(((e,t)=>this._groups.read(t)[e])),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map(((e,t)=>{var i;return null===(i=this.currentGroup.read(t))||void 0===i?void 0:i.lines[e]})),this._register((0,l.fm)((e=>{const t=this._diffs.read(e);if(!t)return void this._groups.set([],void 0);const i=function(e,t,i){const n=[];for(const s of(0,v.n)(e,((e,t)=>t.modified.startLineNumber-e.modified.endLineNumberExclusive<2*U))){const e=[];e.push(new $);const o=new k.M(Math.max(1,s[0].original.startLineNumber-U),Math.min(s[s.length-1].original.endLineNumberExclusive+U,t+1)),r=new k.M(Math.max(1,s[0].modified.startLineNumber-U),Math.min(s[s.length-1].modified.endLineNumberExclusive+U,i+1));(0,v.pN)(s,((t,i)=>{const n=new k.M(t?t.original.endLineNumberExclusive:o.startLineNumber,i?i.original.startLineNumber:o.endLineNumberExclusive),s=new k.M(t?t.modified.endLineNumberExclusive:r.startLineNumber,i?i.modified.startLineNumber:r.endLineNumberExclusive);n.forEach((t=>{e.push(new Y(t,s.startLineNumber+(t-n.startLineNumber)))})),i&&(i.original.forEach((t=>{e.push(new q(i,t))})),i.modified.forEach((t=>{e.push(new Q(i,t))})))}));const a=s[0].modified.join(s[s.length-1].modified),l=s[0].original.join(s[s.length-1].original);n.push(new G(new E.WL(a,l),e))}return n}(t,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());(0,l.Rn)((e=>{const t=this._models.getModifiedPosition();if(t){const n=i.findIndex((e=>(null===t||void 0===t?void 0:t.lineNumber)<e.range.modified.endLineNumberExclusive));-1!==n&&this._currentGroupIdx.set(n,e)}this._groups.set(i,e)}))}))),this._register((0,l.fm)((e=>{const t=this.currentElement.read(e);(null===t||void 0===t?void 0:t.type)===K.Deleted?this._accessibilitySignalService.playSignal(R.Rh.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):(null===t||void 0===t?void 0:t.type)===K.Added&&this._accessibilitySignalService.playSignal(R.Rh.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})}))),this._register((0,l.fm)((e=>{var t;const i=this.currentElement.read(e);if(i&&i.type!==K.Header){const e=null!==(t=i.modifiedLineNumber)&&void 0!==t?t:i.diff.modified.startLineNumber;this._models.modifiedSetSelection(D.Q.fromPositions(new L.y(e,1)))}})))}_goToGroupDelta(e,t){const i=this.groups.get();!i||i.length<=1||(0,l.PO)(t,(t=>{this._currentGroupIdx.set(x.L.ofLength(i.length).clipCyclic(this._currentGroupIdx.get()+e),t),this._currentElementIdx.set(0,t)}))}nextGroup(e){this._goToGroupDelta(1,e)}previousGroup(e){this._goToGroupDelta(-1,e)}_goToLineDelta(e){const t=this.currentGroup.get();!t||t.lines.length<=1||(0,l.Rn)((i=>{this._currentElementIdx.set(x.L.ofLength(t.lines.length).clip(this._currentElementIdx.get()+e),i)}))}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(e){const t=this.currentGroup.get();if(!t)return;const i=t.lines.indexOf(e);-1!==i&&(0,l.Rn)((e=>{this._currentElementIdx.set(i,e)}))}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);const e=this.currentElement.get();e&&(e.type===K.Deleted?this._models.originalReveal(D.Q.fromPositions(new L.y(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==K.Header?D.Q.fromPositions(new L.y(e.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};j=F([B(4,R.Nt)],j);const U=3;var K;!function(e){e[e.Header=0]="Header",e[e.Unchanged=1]="Unchanged",e[e.Deleted=2]="Deleted",e[e.Added=3]="Added"}(K||(K={}));class G{constructor(e,t){this.range=e,this.lines=t}}class ${constructor(){this.type=K.Header}}class q{constructor(e,t){this.diff=e,this.originalLineNumber=t,this.type=K.Deleted,this.modifiedLineNumber=void 0}}class Q{constructor(e,t){this.diff=e,this.modifiedLineNumber=t,this.type=K.Added,this.originalLineNumber=void 0}}class Y{constructor(e,t){this.originalLineNumber=e,this.modifiedLineNumber=t,this.type=K.Unchanged}}let Z=class extends a.jG{constructor(e,t,i,s,o,r){super(),this._element=e,this._model=t,this._width=i,this._height=s,this._models=o,this._languageService=r,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";const d=document.createElement("div");d.className="diff-review-actions",this._actionBar=this._register(new m.E(d)),this._register((0,l.fm)((e=>{this._actionBar.clear(),this._model.canClose.read(e)&&this._actionBar.push(new _.rc("diffreview.close",(0,A.kg)("label.close","Close"),"close-diff-review "+C.L.asClassName(H),!0,(async()=>t.close())),{label:!1,icon:!0})}))),this._content=document.createElement("div"),this._content.className="diff-review-content",this._content.setAttribute("role","code"),this._scrollbar=this._register(new f.MU(this._content,{})),(0,n.Ln)(this.domNode,this._scrollbar.getDomNode(),d),this._register((0,l.fm)((e=>{this._height.read(e),this._width.read(e),this._scrollbar.scanDomNode()}))),this._register((0,a.s)((()=>{(0,n.Ln)(this.domNode)}))),this._register((0,w.AV)(this.domNode,{width:this._width,height:this._height})),this._register((0,w.AV)(this._content,{width:this._width,height:this._height})),this._register((0,l.yC)(((e,t)=>{this._model.currentGroup.read(e),this._render(t)}))),this._register((0,n.b2)(this.domNode,"keydown",(e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._model.goToNextLine()),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._model.goToPreviousLine()),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this._model.close()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this._model.revealCurrentElementInEditor())})))}_render(e){const t=this._models.getOriginalOptions(),i=this._models.getModifiedOptions(),s=document.createElement("div");s.className="diff-review-table",s.setAttribute("role","list"),s.setAttribute("aria-label",(0,A.kg)("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),(0,y.M)(s,i.get(50)),(0,n.Ln)(this._content,s);const o=this._models.getOriginalModel(),r=this._models.getModifiedModel();if(!o||!r)return;const a=o.getOptions(),d=r.getOptions(),h=i.get(67),c=this._model.currentGroup.get();for(const u of(null===c||void 0===c?void 0:c.lines)||[]){if(!c)break;let g;if(u.type===K.Header){const e=document.createElement("div");e.className="diff-review-row",e.setAttribute("role","listitem");const t=c.range,i=this._model.currentGroupIndex.get(),n=this._model.groups.get().length,s=e=>0===e?(0,A.kg)("no_lines_changed","no lines changed"):1===e?(0,A.kg)("one_line_changed","1 line changed"):(0,A.kg)("more_lines_changed","{0} lines changed",e),o=s(t.original.length),r=s(t.modified.length);e.setAttribute("aria-label",(0,A.kg)({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",i+1,n,t.original.startLineNumber,o,t.modified.startLineNumber,r));const a=document.createElement("div");a.className="diff-review-cell diff-review-summary",a.appendChild(document.createTextNode(`${i+1}/${n}: @@ -${t.original.startLineNumber},${t.original.length} +${t.modified.startLineNumber},${t.modified.length} @@`)),e.appendChild(a),g=e}else g=this._createRow(u,h,this._width.get(),t,o,a,i,r,d);s.appendChild(g);const p=(0,l.un)((e=>this._model.currentElement.read(e)===u));e.add((0,l.fm)((e=>{const t=p.read(e);g.tabIndex=t?0:-1,t&&g.focus()}))),e.add((0,n.ko)(g,"focus",(()=>{this._model.goToLine(u)})))}this._scrollbar.scanDomNode()}_createRow(e,t,i,n,s,o,r,a,l){const d=n.get(145),h=d.glyphMarginWidth+d.lineNumbersWidth,c=r.get(145),u=10+c.glyphMarginWidth+c.lineNumbersWidth;let g="diff-review-row",p="";let m=null;switch(e.type){case K.Added:g="diff-review-row line-insert",p=" char-insert",m=W;break;case K.Deleted:g="diff-review-row line-delete",p=" char-delete",m=V}const f=document.createElement("div");f.style.minWidth=i+"px",f.className=g,f.setAttribute("role","listitem"),f.ariaLevel="";const _=document.createElement("div");_.className="diff-review-cell",_.style.height=`${t}px`,f.appendChild(_);const v=document.createElement("span");v.style.width=h+"px",v.style.minWidth=h+"px",v.className="diff-review-line-number"+p,void 0!==e.originalLineNumber?v.appendChild(document.createTextNode(String(e.originalLineNumber))):v.innerText="\xa0",_.appendChild(v);const b=document.createElement("span");b.style.width=u+"px",b.style.minWidth=u+"px",b.style.paddingRight="10px",b.className="diff-review-line-number"+p,void 0!==e.modifiedLineNumber?b.appendChild(document.createTextNode(String(e.modifiedLineNumber))):b.innerText="\xa0",_.appendChild(b);const y=document.createElement("span");if(y.className="diff-review-spacer",m){const e=document.createElement("span");e.className=C.L.asClassName(m),e.innerText="\xa0\xa0",y.appendChild(e)}else y.innerText="\xa0\xa0";let w;if(_.appendChild(y),void 0!==e.modifiedLineNumber){let t=this._getLineHtml(a,r,l.tabSize,e.modifiedLineNumber,this._languageService.languageIdCodec);z._ttPolicy&&(t=z._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),w=a.getLineContent(e.modifiedLineNumber)}else{let t=this._getLineHtml(s,n,o.tabSize,e.originalLineNumber,this._languageService.languageIdCodec);z._ttPolicy&&(t=z._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),w=s.getLineContent(e.originalLineNumber)}0===w.length&&(w=(0,A.kg)("blankLine","blank"));let S="";switch(e.type){case K.Unchanged:S=e.originalLineNumber===e.modifiedLineNumber?(0,A.kg)({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",w,e.originalLineNumber):(0,A.kg)("equalLine","{0} original line {1} modified line {2}",w,e.originalLineNumber,e.modifiedLineNumber);break;case K.Added:S=(0,A.kg)("insertLine","+ {0} modified line {1}",w,e.modifiedLineNumber);break;case K.Deleted:S=(0,A.kg)("deleteLine","- {0} original line {1}",w,e.originalLineNumber)}return f.setAttribute("aria-label",S),f}_getLineHtml(e,t,i,n,s){const o=e.getLineContent(n),r=t.get(50),a=T.f.createEmpty(o,s),l=M.qL.isBasicASCII(o,e.mightContainNonBasicASCII()),d=M.qL.containsRTL(o,l,e.mightContainRTL());return(0,I.Md)(new I.zL(r.isMonospace&&!t.get(33),r.canUseHalfwidthRightwardsArrow,o,!1,l,d,0,a,[],i,0,r.spaceWidth,r.middotWidth,r.wsmiddotWidth,t.get(117),t.get(99),t.get(94),t.get(51)!==S.Bc.OFF,null)).html}};Z=F([B(5,N.L)],Z);class X{constructor(e){this.editors=e}getOriginalModel(){return this.editors.original.getModel()}getOriginalOptions(){return this.editors.original.getOptions()}originalReveal(e){this.editors.original.revealRange(e),this.editors.original.setSelection(e),this.editors.original.focus()}getModifiedModel(){return this.editors.modified.getModel()}getModifiedOptions(){return this.editors.modified.getOptions()}modifiedReveal(e){e&&(this.editors.modified.revealRange(e),this.editors.modified.setSelection(e)),this.editors.modified.focus()}modifiedSetSelection(e){this.editors.modified.setSelection(e)}modifiedFocus(){this.editors.modified.focus()}getModifiedPosition(){var e;return null!==(e=this.editors.modified.getPosition())&&void 0!==e?e:void 0}}class J extends a.jG{constructor(e,t,i,n,s){super(),this._rootElement=e,this._diffModel=t,this._originalEditorLayoutInfo=i,this._modifiedEditorLayoutInfo=n,this._editors=s,this._originalScrollTop=(0,l.y0)(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,l.y0)(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._viewZonesChanged=(0,l.yQ)("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=(0,l.FY)(this,0),this._modifiedViewZonesChangedSignal=(0,l.yQ)("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=(0,l.yQ)("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=(0,l.rm)(this,((e,t)=>{var i;this._element.replaceChildren();const n=this._diffModel.read(e),s=null===(i=null===n||void 0===n?void 0:n.diff.read(e))||void 0===i?void 0:i.movedTexts;if(!s||0===s.length)return void this.width.set(0,void 0);this._viewZonesChanged.read(e);const o=this._originalEditorLayoutInfo.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(!o||!r)return void this.width.set(0,void 0);this._modifiedViewZonesChangedSignal.read(e),this._originalViewZonesChangedSignal.read(e);const a=s.map((t=>{function i(e,t){return(t.getTopForLineNumber(e.startLineNumber,!0)+t.getTopForLineNumber(e.endLineNumberExclusive,!0))/2}const n=i(t.lineRangeMapping.original,this._editors.original),s=this._originalScrollTop.read(e),o=i(t.lineRangeMapping.modified,this._editors.modified),r=n-s,a=o-this._modifiedScrollTop.read(e),l=Math.min(n,o),d=Math.max(n,o);return{range:new x.L(l,d),from:r,to:a,fromWithoutScroll:n,toWithoutScroll:o,move:t}}));a.sort((0,v.nH)((0,v.VE)((e=>e.fromWithoutScroll>e.toWithoutScroll),v.TS),(0,v.VE)((e=>e.fromWithoutScroll>e.toWithoutScroll?e.fromWithoutScroll:-e.toWithoutScroll),v.U9)));const d=ee.compute(a.map((e=>e.range))),h=o.verticalScrollbarWidth,c=10*(d.getTrackCount()-1)+20,u=h+c+(r.contentLeft-J.movedCodeBlockPadding);let g=0;for(const p of a){const e=h+10+10*d.getTrack(g),i=15,s=15,o=u,a=r.glyphMarginWidth+r.lineNumbersWidth,c=18,m=document.createElementNS("http://www.w3.org/2000/svg","rect");m.classList.add("arrow-rectangle"),m.setAttribute("x",""+(o-a)),m.setAttribute("y",""+(p.to-c/2)),m.setAttribute("width",`${a}`),m.setAttribute("height",`${c}`),this._element.appendChild(m);const f=document.createElementNS("http://www.w3.org/2000/svg","g"),_=document.createElementNS("http://www.w3.org/2000/svg","path");_.setAttribute("d",`M 0 ${p.from} L ${e} ${p.from} L ${e} ${p.to} L ${o-s} ${p.to}`),_.setAttribute("fill","none"),f.appendChild(_);const v=document.createElementNS("http://www.w3.org/2000/svg","polygon");v.classList.add("arrow"),t.add((0,l.fm)((e=>{_.classList.toggle("currentMove",p.move===n.activeMovedText.read(e)),v.classList.toggle("currentMove",p.move===n.activeMovedText.read(e))}))),v.setAttribute("points",`${o-s},${p.to-i/2} ${o},${p.to} ${o-s},${p.to+i/2}`),f.appendChild(v),this._element.appendChild(f),g++}this.width.set(c,void 0)})),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register((0,a.s)((()=>this._element.remove()))),this._register((0,l.fm)((e=>{const t=this._originalEditorLayoutInfo.read(e),i=this._modifiedEditorLayoutInfo.read(e);t&&i&&(this._element.style.left=t.width-t.verticalScrollbarWidth+"px",this._element.style.height=`${t.height}px`,this._element.style.width=`${t.verticalScrollbarWidth+t.contentLeft-J.movedCodeBlockPadding+this.width.read(e)}px`)}))),this._register((0,l.OI)(this._state));const o=(0,l.un)((e=>{const t=this._diffModel.read(e),i=null===t||void 0===t?void 0:t.diff.read(e);return i?i.movedTexts.map((e=>({move:e,original:new w.D1((0,l.lk)(e.lineRangeMapping.original.startLineNumber-1),18),modified:new w.D1((0,l.lk)(e.lineRangeMapping.modified.startLineNumber-1),18)}))):[]}));this._register((0,w.Vs)(this._editors.original,o.map((e=>e.map((e=>e.original)))))),this._register((0,w.Vs)(this._editors.modified,o.map((e=>e.map((e=>e.modified)))))),this._register((0,l.yC)(((e,t)=>{const i=o.read(e);for(const n of i)t.add(new te(this._editors.original,n.original,n.move,"original",this._diffModel.get())),t.add(new te(this._editors.modified,n.modified,n.move,"modified",this._diffModel.get()))})));const r=(0,l.yQ)("original.onDidFocusEditorWidget",(e=>this._editors.original.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0))))),d=(0,l.yQ)("modified.onDidFocusEditorWidget",(e=>this._editors.modified.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0)))));let h="modified";this._register((0,l.Y)({createEmptyChangeSummary:()=>{},handleChange:(e,t)=>(e.didChange(r)&&(h="original"),e.didChange(d)&&(h="modified"),!0)},(e=>{r.read(e),d.read(e);const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e);let n;if(i&&"original"===h){const t=this._editors.originalCursor.read(e);t&&(n=i.movedTexts.find((e=>e.lineRangeMapping.original.contains(t.lineNumber))))}if(i&&"modified"===h){const t=this._editors.modifiedCursor.read(e);t&&(n=i.movedTexts.find((e=>e.lineRangeMapping.modified.contains(t.lineNumber))))}n!==t.movedTextToCompare.get()&&t.movedTextToCompare.set(void 0,void 0),t.setActiveMovedText(n)})))}}J.movedCodeBlockPadding=4;class ee{static compute(e){const t=[],i=[];for(const n of e){let e=t.findIndex((e=>!e.intersectsStrict(n)));if(-1===e){const i=6;t.length>=i?e=(0,s.oU)(t,(0,v.VE)((e=>e.intersectWithRangeLength(n)),v.U9)):(e=t.length,t.push(new x.h))}t[e].addRange(n),i.push(e)}return new ee(t.length,i)}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}}class te extends w.uN{constructor(e,t,i,s,o){const r=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,r.root),this._editor=e,this._move=i,this._kind=s,this._diffModel=o,this._nodes=(0,n.h)("div.diff-moved-code-block",{style:{marginRight:"4px"}},[(0,n.h)("div.text-content@textContent"),(0,n.h)("div.action-bar@actionBar")]),r.root.appendChild(this._nodes.root);const a=(0,l.y0)(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));let d;this._register((0,w.AV)(this._nodes.root,{paddingRight:a.map((e=>e.verticalScrollbarWidth))})),d=i.changes.length>0?"original"===this._kind?(0,A.kg)("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,A.kg)("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):"original"===this._kind?(0,A.kg)("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,A.kg)("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const h=this._register(new m.E(this._nodes.actionBar,{highlightToggledItems:!0})),c=new _.rc("",d,"",!1);h.push(c,{icon:!1,label:!0});const u=new _.rc("","Compare",C.L.asClassName(b.W.compareChanges),!0,(()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0)}));this._register((0,l.fm)((e=>{const t=this._diffModel.movedTextToCompare.read(e)===i;u.checked=t}))),h.push(u,{icon:!1,label:!0})}}var ie=i(10691);class ne extends a.jG{constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._decorations=(0,l.un)(this,(e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.diff.read(e);if(!i)return null;const n=this._diffModel.read(e).movedTextToCompare.read(e),s=this._options.renderIndicators.read(e),o=this._options.showEmptyDecorations.read(e),r=[],a=[];if(!n)for(const d of i.mappings)if(d.lineRangeMapping.original.isEmpty||r.push({range:d.lineRangeMapping.original.toInclusiveRange(),options:s?ie.Ob:ie.XT}),d.lineRangeMapping.modified.isEmpty||a.push({range:d.lineRangeMapping.modified.toInclusiveRange(),options:s?ie.Kl:ie.Zw}),d.lineRangeMapping.modified.isEmpty||d.lineRangeMapping.original.isEmpty)d.lineRangeMapping.original.isEmpty||r.push({range:d.lineRangeMapping.original.toInclusiveRange(),options:ie.KL}),d.lineRangeMapping.modified.isEmpty||a.push({range:d.lineRangeMapping.modified.toInclusiveRange(),options:ie.Ou});else for(const e of d.lineRangeMapping.innerChanges||[])d.lineRangeMapping.original.contains(e.originalRange.startLineNumber)&&r.push({range:e.originalRange,options:e.originalRange.isEmpty()&&o?ie.wp:ie.Zb}),d.lineRangeMapping.modified.contains(e.modifiedRange.startLineNumber)&&a.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()&&o?ie.GM:ie.bk});if(n)for(const d of n.changes){const e=d.original.toInclusiveRange();e&&r.push({range:e,options:s?ie.Ob:ie.XT});const t=d.modified.toInclusiveRange();t&&a.push({range:t,options:s?ie.Kl:ie.Zw});for(const i of d.innerChanges||[])r.push({range:i.originalRange,options:ie.Zb}),a.push({range:i.modifiedRange,options:ie.bk})}const l=this._diffModel.read(e).activeMovedText.read(e);for(const d of i.movedTexts)r.push({range:d.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(d===l?" currentMove":""),blockPadding:[J.movedCodeBlockPadding,0,J.movedCodeBlockPadding,J.movedCodeBlockPadding]}}),a.push({range:d.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(d===l?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:r,modifiedDecorations:a}})),this._register((0,w.pY)(this._editors.original,this._decorations.map((e=>(null===e||void 0===e?void 0:e.originalDecorations)||[])))),this._register((0,w.pY)(this._editors.modified,this._decorations.map((e=>(null===e||void 0===e?void 0:e.modifiedDecorations)||[]))))}}var se=i(92403);class oe extends a.jG{constructor(e,t,i,n){super(),this._options=e,this._domNode=t,this._dimensions=i,this._sashes=n,this._sashRatio=(0,l.FY)(this,void 0),this.sashLeft=(0,l.un)(this,(e=>{var t;const i=null!==(t=this._sashRatio.read(e))&&void 0!==t?t:this._options.splitViewDefaultRatio.read(e);return this._computeSashLeft(i,e)})),this._sash=this._register(new se.m(this._domNode,{getVerticalSashTop:e=>0,getVerticalSashLeft:e=>this.sashLeft.get(),getVerticalSashHeight:e=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart((()=>{this._startSashPosition=this.sashLeft.get()}))),this._register(this._sash.onDidChange((e=>{const t=this._dimensions.width.get(),i=this._computeSashLeft((this._startSashPosition+(e.currentX-e.startX))/t,void 0);this._sashRatio.set(i/t,void 0)}))),this._register(this._sash.onDidEnd((()=>this._sash.layout()))),this._register(this._sash.onDidReset((()=>this._sashRatio.set(void 0,void 0)))),this._register((0,l.fm)((e=>{const t=this._sashes.read(e);t&&(this._sash.orthogonalEndSash=t.bottom)}))),this._register((0,l.fm)((e=>{const t=this._options.enableSplitViewResizing.read(e);this._sash.state=t?3:0,this.sashLeft.read(e),this._dimensions.height.read(e),this._sash.layout()})))}_computeSashLeft(e,t){const i=this._dimensions.width.read(t),n=Math.floor(this._options.splitViewDefaultRatio.read(t)*i),s=this._options.enableSplitViewResizing.read(t)?Math.floor(e*i):n,o=100;return i<=200?n:s<o?o:s>i-o?i-o:s}}var re,ae=i(90766),le=i(631),de=i(18447),he=i(14718),ce=i(78381),ue=i(10920),ge=i(90651),pe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},me=function(e,t){return function(i,n){t(i,n,e)}};const fe=(0,O.u1)("diffProviderFactoryService");let _e=class{constructor(e){this.instantiationService=e}createDiffProvider(e){return this.instantiationService.createInstance(ve,e)}};_e=pe([me(0,O._Y)],_e),(0,he.v)(fe,_e,1);let ve=re=class{constructor(e,t,i){this.editorWorkerService=t,this.telemetryService=i,this.onDidChangeEventEmitter=new r.vl,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(e)}dispose(){var e;null===(e=this.diffAlgorithmOnDidChangeSubscription)||void 0===e||e.dispose()}async computeDiff(e,t,i,n){var s,o;if("string"!==typeof this.diffAlgorithm)return this.diffAlgorithm.computeDiff(e,t,i,n);if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return 1===t.getLineCount()&&1===t.getLineMaxColumn(1)?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new E.wm(new k.M(1,2),new k.M(1,t.getLineCount()+1),[new E.q6(e.getFullModelRange(),t.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const r=JSON.stringify([e.uri.toString(),t.uri.toString()]),a=JSON.stringify([e.id,t.id,e.getAlternativeVersionId(),t.getAlternativeVersionId(),JSON.stringify(i)]),l=re.diffCache.get(r);if(l&&l.context===a)return l.result;const d=ce.W.create(),h=await this.editorWorkerService.computeDiff(e.uri,t.uri,i,this.diffAlgorithm),c=d.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:c,timedOut:null===(s=null===h||void 0===h?void 0:h.quitEarly)||void 0===s||s,detectedMoves:i.computeMoves?null!==(o=null===h||void 0===h?void 0:h.moves.length)&&void 0!==o?o:0:-1}),n.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!h)throw new Error("no diff result available");return re.diffCache.size>10&&re.diffCache.delete(re.diffCache.keys().next().value),re.diffCache.set(r,{result:h,context:a}),h}setOptions(e){var t;let i=!1;e.diffAlgorithm&&this.diffAlgorithm!==e.diffAlgorithm&&(null===(t=this.diffAlgorithmOnDidChangeSubscription)||void 0===t||t.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=e.diffAlgorithm,"string"!==typeof e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription=e.diffAlgorithm.onDidChange((()=>this.onDidChangeEventEmitter.fire()))),i=!0),i&&this.onDidChangeEventEmitter.fire()}};ve.diffCache=new Map,ve=re=pe([me(1,ue.w),me(2,ge.k)],ve);var be=i(26746),Ce=i(94650),ye=i(84084),we=i(82518),Se=i(66782),ke=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},xe=function(e,t){return function(i,n){t(i,n,e)}};let Le=class extends a.jG{setActiveMovedText(e){this._activeMovedText.set(e,void 0)}constructor(e,t,i){super(),this.model=e,this._options=t,this._diffProviderFactoryService=i,this._isDiffUpToDate=(0,l.FY)(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=(0,l.FY)(this,void 0),this.diff=this._diff,this._unchangedRegions=(0,l.FY)(this,void 0),this.unchangedRegions=(0,l.un)(this,(e=>{var t,i;return this._options.hideUnchangedRegions.read(e)?null!==(i=null===(t=this._unchangedRegions.read(e))||void 0===t?void 0:t.regions)&&void 0!==i?i:[]:((0,l.Rn)((e=>{var t;for(const i of(null===(t=this._unchangedRegions.get())||void 0===t?void 0:t.regions)||[])i.collapseAll(e)})),[])})),this.movedTextToCompare=(0,l.FY)(this,void 0),this._activeMovedText=(0,l.FY)(this,void 0),this._hoveredMovedText=(0,l.FY)(this,void 0),this.activeMovedText=(0,l.un)(this,(e=>{var t,i;return null!==(i=null!==(t=this.movedTextToCompare.read(e))&&void 0!==t?t:this._hoveredMovedText.read(e))&&void 0!==i?i:this._activeMovedText.read(e)})),this._cancellationTokenSource=new de.Q,this._diffProvider=(0,l.un)(this,(e=>{const t=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(e)});return{diffProvider:t,onChangeSignal:(0,l.yQ)("onDidChange",t.onDidChange)}})),this._register((0,a.s)((()=>this._cancellationTokenSource.cancel())));const n=(0,l.Yd)("contentChangedSignal"),s=this._register(new ae.uC((()=>n.trigger(void 0)),200));this._register((0,l.fm)((t=>{const i=this._unchangedRegions.read(t);if(!i||i.regions.some((e=>e.isDragged.read(t))))return;const n=i.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?k.M.fromRangeInclusive(e):void 0)),s=i.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?k.M.fromRangeInclusive(e):void 0)),o=i.regions.map(((e,i)=>n[i]&&s[i]?new Ne(n[i].startLineNumber,s[i].startLineNumber,n[i].length,e.visibleLineCountTop.read(t),e.visibleLineCountBottom.read(t)):void 0)).filter(le.O9),r=[];let a=!1;for(const e of(0,v.n)(o,((e,i)=>e.getHiddenModifiedRange(t).endLineNumberExclusive===i.getHiddenModifiedRange(t).startLineNumber)))if(e.length>1){a=!0;const t=e.reduce(((e,t)=>e+t.lineCount),0),i=new Ne(e[0].originalLineNumber,e[0].modifiedLineNumber,t,e[0].visibleLineCountTop.get(),e[e.length-1].visibleLineCountBottom.get());r.push(i)}else r.push(e[0]);if(a){const t=e.original.deltaDecorations(i.originalDecorationIds,r.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),n=e.modified.deltaDecorations(i.modifiedDecorationIds,r.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));(0,l.Rn)((e=>{this._unchangedRegions.set({regions:r,originalDecorationIds:t,modifiedDecorationIds:n},e)}))}})));const o=(t,i,n)=>{const s=Ne.fromDiffs(t.changes,e.original.getLineCount(),e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(n),this._options.hideUnchangedRegionsContextLineCount.read(n));let o;const r=this._unchangedRegions.get();if(r){const t=r.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?k.M.fromRangeInclusive(e):void 0)),i=r.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?k.M.fromRangeInclusive(e):void 0));let s=(0,w.EK)(r.regions.map(((e,n)=>{if(!t[n]||!i[n])return;const s=t[n].length;return new Ne(t[n].startLineNumber,i[n].startLineNumber,s,Math.min(e.visibleLineCountTop.get(),s),Math.min(e.visibleLineCountBottom.get(),s-e.visibleLineCountTop.get()))})).filter(le.O9),((e,t)=>!t||e.modifiedLineNumber>=t.modifiedLineNumber+t.lineCount&&e.originalLineNumber>=t.originalLineNumber+t.lineCount)).map((e=>new E.WL(e.getHiddenOriginalRange(n),e.getHiddenModifiedRange(n))));s=E.WL.clip(s,k.M.ofLength(1,e.original.getLineCount()),k.M.ofLength(1,e.modified.getLineCount())),o=E.WL.inverse(s,e.original.getLineCount(),e.modified.getLineCount())}const a=[];if(o)for(const e of s){const t=o.filter((t=>t.original.intersectsStrict(e.originalUnchangedRange)&&t.modified.intersectsStrict(e.modifiedUnchangedRange)));a.push(...e.setVisibleRanges(t,i))}else a.push(...s);const l=e.original.deltaDecorations((null===r||void 0===r?void 0:r.originalDecorationIds)||[],a.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),d=e.modified.deltaDecorations((null===r||void 0===r?void 0:r.modifiedDecorationIds)||[],a.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));this._unchangedRegions.set({regions:a,originalDecorationIds:l,modifiedDecorationIds:d},i)};this._register(e.modified.onDidChangeContent((t=>{if(this._diff.get()){const i=Ce.c.fromModelContentChanges(t.changes),n=Ie(this._lastDiff,i,e.original,e.modified);n&&(this._lastDiff=n,(0,l.Rn)((e=>{this._diff.set(De.fromDiffResult(this._lastDiff),e),o(n,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),s.schedule()}))),this._register(e.original.onDidChangeContent((t=>{if(this._diff.get()){const i=Ce.c.fromModelContentChanges(t.changes),n=Te(this._lastDiff,i,e.original,e.modified);n&&(this._lastDiff=n,(0,l.Rn)((e=>{this._diff.set(De.fromDiffResult(this._lastDiff),e),o(n,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),s.schedule()}))),this._register((0,l.yC)((async(t,i)=>{var r,a;this._options.hideUnchangedRegionsMinimumLineCount.read(t),this._options.hideUnchangedRegionsContextLineCount.read(t),s.cancel(),n.read(t);const d=this._diffProvider.read(t);d.onChangeSignal.read(t),(0,w.b6)(be.D8,t),(0,w.b6)(we.NC,t),this._isDiffUpToDate.set(!1,void 0);let h=[];i.add(e.original.onDidChangeContent((e=>{const t=Ce.c.fromModelContentChanges(e.changes);h=(0,ye.M)(h,t)})));let c=[];i.add(e.modified.onDidChangeContent((e=>{const t=Ce.c.fromModelContentChanges(e.changes);c=(0,ye.M)(c,t)})));let u=await d.diffProvider.computeDiff(e.original,e.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(t),maxComputationTimeMs:this._options.maxComputationTimeMs.read(t),computeMoves:this._options.showMoves.read(t)},this._cancellationTokenSource.token);var g,p,m;this._cancellationTokenSource.token.isCancellationRequested||(g=u,p=e.original,m=e.modified,u={changes:g.changes.map((e=>new E.wm(e.original,e.modified,e.innerChanges?e.innerChanges.map((e=>function(e,t,i){let n=e.originalRange,s=e.modifiedRange;return(1!==n.endColumn||1!==s.endColumn)&&n.endColumn===t.getLineMaxColumn(n.endLineNumber)&&s.endColumn===i.getLineMaxColumn(s.endLineNumber)&&n.endLineNumber<t.getLineCount()&&s.endLineNumber<i.getLineCount()&&(n=n.setEndPosition(n.endLineNumber+1,1),s=s.setEndPosition(s.endLineNumber+1,1)),new E.q6(n,s)}(e,p,m))):void 0))),moves:g.moves,identical:g.identical,quitEarly:g.quitEarly},u=null!==(r=Te(u,h,e.original,e.modified))&&void 0!==r?r:u,u=null!==(a=Ie(u,c,e.original,e.modified))&&void 0!==a?a:u,(0,l.Rn)((e=>{o(u,e),this._lastDiff=u;const t=De.fromDiffResult(u);this._diff.set(t,e),this._isDiffUpToDate.set(!0,e);const i=this.movedTextToCompare.get();this.movedTextToCompare.set(i?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(i.lineRangeMapping.modified))):void 0,e)})))})))}ensureModifiedLineIsVisible(e,t,i){var n,s;if(0===(null===(n=this.diff.get())||void 0===n?void 0:n.mappings.length))return;const o=(null===(s=this._unchangedRegions.get())||void 0===s?void 0:s.regions)||[];for(const r of o)if(r.getHiddenModifiedRange(void 0).contains(e))return void r.showModifiedLine(e,t,i)}ensureOriginalLineIsVisible(e,t,i){var n,s;if(0===(null===(n=this.diff.get())||void 0===n?void 0:n.mappings.length))return;const o=(null===(s=this._unchangedRegions.get())||void 0===s?void 0:s.regions)||[];for(const r of o)if(r.getHiddenOriginalRange(void 0).contains(e))return void r.showOriginalLine(e,t,i)}async waitForDiff(){await(0,l.oJ)(this.isDiffUpToDate,(e=>e))}serializeState(){const e=this._unchangedRegions.get();return{collapsedRegions:null===e||void 0===e?void 0:e.regions.map((e=>({range:e.getHiddenModifiedRange(void 0).serialize()})))}}restoreSerializedState(e){var t;const i=null===(t=e.collapsedRegions)||void 0===t?void 0:t.map((e=>k.M.deserialize(e.range))),n=this._unchangedRegions.get();n&&i&&(0,l.Rn)((e=>{for(const t of n.regions)for(const n of i)if(t.modifiedUnchangedRange.intersect(n)){t.setHiddenModifiedRange(n,e);break}}))}};Le=ke([xe(2,fe)],Le);class De{static fromDiffResult(e){return new De(e.changes.map((e=>new Ee(e))),e.moves||[],e.identical,e.quitEarly)}constructor(e,t,i,n){this.mappings=e,this.movedTexts=t,this.identical=i,this.quitEarly=n}}class Ee{constructor(e){this.lineRangeMapping=e}}class Ne{static fromDiffs(e,t,i,n,s){const o=E.wm.inverse(e,t,i),r=[];for(const a of o){let e=a.original.startLineNumber,o=a.modified.startLineNumber,l=a.original.length;const d=1===e&&1===o,h=e+l===t+1&&o+l===i+1;(d||h)&&l>=s+n?(d&&!h&&(l-=s),h&&!d&&(e+=s,o+=s,l-=s),r.push(new Ne(e,o,l,0,0))):l>=2*s+n&&(e+=s,o+=s,l-=2*s,r.push(new Ne(e,o,l,0,0)))}return r}get originalUnchangedRange(){return k.M.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return k.M.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(e,t,i,n,s){this.originalLineNumber=e,this.modifiedLineNumber=t,this.lineCount=i,this._visibleLineCountTop=(0,l.FY)(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=(0,l.FY)(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=(0,l.un)(this,(e=>this.visibleLineCountTop.read(e)+this.visibleLineCountBottom.read(e)===this.lineCount&&!this.isDragged.read(e))),this.isDragged=(0,l.FY)(this,void 0);const o=Math.max(Math.min(n,this.lineCount),0),r=Math.max(Math.min(s,this.lineCount-n),0);(0,Se.V7)(n===o),(0,Se.V7)(s===r),this._visibleLineCountTop.set(o,void 0),this._visibleLineCountBottom.set(r,void 0)}setVisibleRanges(e,t){const i=[],n=new k.S(e.map((e=>e.modified))).subtractFrom(this.modifiedUnchangedRange);let s=this.originalLineNumber,o=this.modifiedLineNumber;const r=this.modifiedLineNumber+this.lineCount;if(0===n.ranges.length)this.showAll(t),i.push(this);else{let e=0;for(const a of n.ranges){const l=e===n.ranges.length-1;e++;const d=(l?r:a.endLineNumberExclusive)-o,h=new Ne(s,o,d,0,0);h.setHiddenModifiedRange(a,t),i.push(h),s=h.originalUnchangedRange.endLineNumberExclusive,o=h.modifiedUnchangedRange.endLineNumberExclusive}}return i}shouldHideControls(e){return this._shouldHideControls.read(e)}getHiddenOriginalRange(e){return k.M.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}getHiddenModifiedRange(e){return k.M.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}setHiddenModifiedRange(e,t){const i=e.startLineNumber-this.modifiedLineNumber,n=this.modifiedLineNumber+this.lineCount-e.endLineNumberExclusive;this.setState(i,n,t)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(e=10,t){const i=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+e,i),t)}showMoreBelow(e=10,t){const i=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+e,i),t)}showAll(e){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),e)}showModifiedLine(e,t,i){const n=e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),s=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-e;0===t&&n<s||1===t?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+n,i):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+s,i)}showOriginalLine(e,t,i){const n=e-this.originalLineNumber,s=this.originalLineNumber+this.lineCount-e;0===t&&n<s||1===t?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+s-n,this.getMaxVisibleLineCountTop()),i):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+n-s,this.getMaxVisibleLineCountBottom()),i)}collapseAll(e){this._visibleLineCountTop.set(0,e),this._visibleLineCountBottom.set(0,e)}setState(e,t,i){e=Math.max(Math.min(e,this.lineCount),0),t=Math.max(Math.min(t,this.lineCount-e),0),this._visibleLineCountTop.set(e,i),this._visibleLineCountBottom.set(t,i)}}function Te(e,t,i,n){}function Ie(e,t,i,n){}var Me=i(98067);class Ae extends a.jG{get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}constructor(e,t,i,s,o,r,a,l,d){super(),this._getViewZoneId=e,this._marginDomNode=t,this._modifiedEditor=i,this._diff=s,this._editor=o,this._viewLineCounts=r,this._originalTextModel=a,this._contextMenuService=l,this._clipboardService=d,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=C.L.asClassName(b.W.lightBulb)+" lightbulb-glyph",this._diffActions.style.position="absolute";const h=this._modifiedEditor.getOption(67);this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${h}px`,this._diffActions.style.lineHeight=`${h}px`,this._marginDomNode.appendChild(this._diffActions);let c=0;const u=i.getOption(127)&&!Me.un,g=(e,t)=>{var n;this._contextMenuService.showContextMenu({domForShadowRoot:u&&null!==(n=i.getDomNode())&&void 0!==n?n:void 0,getAnchor:()=>({x:e,y:t}),getActions:()=>{const e=[],t=s.modified.isEmpty;e.push(new _.rc("diff.clipboard.copyDeletedContent",t?s.original.length>1?(0,A.kg)("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):(0,A.kg)("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):s.original.length>1?(0,A.kg)("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):(0,A.kg)("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,(async()=>{const e=this._originalTextModel.getValueInRange(s.original.toExclusiveRange());await this._clipboardService.writeText(e)}))),s.original.length>1&&e.push(new _.rc("diff.clipboard.copyDeletedLineContent",t?(0,A.kg)("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",s.original.startLineNumber+c):(0,A.kg)("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",s.original.startLineNumber+c),void 0,!0,(async()=>{let e=this._originalTextModel.getLineContent(s.original.startLineNumber+c);if(""===e){e=0===this._originalTextModel.getEndOfLineSequence()?"\n":"\r\n"}await this._clipboardService.writeText(e)})));return i.getOption(91)||e.push(new _.rc("diff.inline.revertChange",(0,A.kg)("diff.inline.revertChange.label","Revert this change"),void 0,!0,(async()=>{this._editor.revert(this._diff)}))),e},autoSelectFirstItem:!0})};this._register((0,n.b2)(this._diffActions,"mousedown",(e=>{if(!e.leftButton)return;const{top:t,height:i}=(0,n.BK)(this._diffActions),s=Math.floor(h/3);e.preventDefault(),g(e.posx,t+i+s)}))),this._register(i.onMouseMove((e=>{8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId!==this._getViewZoneId()?this.visibility=!1:(c=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),this.visibility=!0)}))),this._register(i.onMouseDown((e=>{if(e.event.leftButton&&(8===e.target.type||5===e.target.type)){e.target.detail.viewZoneId===this._getViewZoneId()&&(e.event.preventDefault(),c=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),g(e.event.posx,e.event.posy+h))}})))}_updateLightBulbPosition(e,t,i){const{top:s}=(0,n.BK)(e),o=t-s,r=Math.floor(o/i),a=r*i;if(this._diffActions.style.top=`${a}px`,this._viewLineCounts){let e=0;for(let t=0;t<this._viewLineCounts.length;t++)if(e+=this._viewLineCounts[t],r<e)return t}return r}}var Re=i(99020),Oe=i(25521);const Pe=(0,p.H)("diffEditorWidget",{createHTML:e=>e});function Fe(e,t,i,n){(0,y.M)(n,t.fontInfo);const s=i.length>0,o=new Re.fe(1e4);let r=0,a=0;const l=[];for(let c=0;c<e.lineTokens.length;c++){const n=c+1,d=e.lineTokens[c],h=e.lineBreakData[c],u=Oe.d.filter(i,n,1,Number.MAX_SAFE_INTEGER);if(h){let i=0;for(const n of h.breakOffsets){const l=d.sliceAndInflate(i,n,0);r=Math.max(r,Ve(a,l,Oe.d.extractWrapped(u,i,n),s,e.mightContainNonBasicASCII,e.mightContainRTL,t,o)),a++,i=n}l.push(h.breakOffsets.length)}else l.push(1),r=Math.max(r,Ve(a,d,u,s,e.mightContainNonBasicASCII,e.mightContainRTL,t,o)),a++}r+=t.scrollBeyondLastColumn;const d=o.build(),h=Pe?Pe.createHTML(d):d;n.innerHTML=h;return{heightInLines:a,minWidthInPx:r*t.typicalHalfwidthCharacterWidth,viewLineCounts:l}}class Be{constructor(e,t,i,n){this.lineTokens=e,this.lineBreakData=t,this.mightContainNonBasicASCII=i,this.mightContainRTL=n}}class We{static fromEditor(e){var t;const i=e.getOptions(),n=i.get(50),s=i.get(145);return new We((null===(t=e.getModel())||void 0===t?void 0:t.getOptions().tabSize)||0,n,i.get(33),n.typicalHalfwidthCharacterWidth,i.get(104),i.get(67),s.decorationsWidth,i.get(117),i.get(99),i.get(94),i.get(51))}constructor(e,t,i,n,s,o,r,a,l,d,h){this.tabSize=e,this.fontInfo=t,this.disableMonospaceOptimizations=i,this.typicalHalfwidthCharacterWidth=n,this.scrollBeyondLastColumn=s,this.lineHeight=o,this.lineDecorationsWidth=r,this.stopRenderingLineAfter=a,this.renderWhitespace=l,this.renderControlCharacters=d,this.fontLigatures=h}}function Ve(e,t,i,n,s,o,r,a){a.appendString('<div class="view-line'),n||a.appendString(" char-delete"),a.appendString('" style="top:'),a.appendString(String(e*r.lineHeight)),a.appendString('px;width:1000000px;">');const l=t.getLineContent(),d=M.qL.isBasicASCII(l,s),h=M.qL.containsRTL(l,d,o),c=(0,I.UW)(new I.zL(r.fontInfo.isMonospace&&!r.disableMonospaceOptimizations,r.fontInfo.canUseHalfwidthRightwardsArrow,l,!1,d,h,0,t,i,r.tabSize,0,r.fontInfo.spaceWidth,r.fontInfo.middotWidth,r.fontInfo.wsmiddotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==S.Bc.OFF,null),a);return a.appendString("</div>"),c.characterMapping.getHorizontalOffset(c.characterMapping.length)}var He=i(54770),ze=i(47508),je=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ue=function(e,t){return function(i,n){t(i,n,e)}};let Ke=class extends a.jG{constructor(e,t,i,s,o,r,d,h,c,u){super(),this._targetWindow=e,this._editors=t,this._diffModel=i,this._options=s,this._diffEditorWidget=o,this._canIgnoreViewZoneUpdateEvent=r,this._origViewZonesToIgnore=d,this._modViewZonesToIgnore=h,this._clipboardService=c,this._contextMenuService=u,this._originalTopPadding=(0,l.FY)(this,0),this._originalScrollOffset=(0,l.FY)(this,0),this._originalScrollOffsetAnimated=(0,w.Nu)(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=(0,l.FY)(this,0),this._modifiedScrollOffset=(0,l.FY)(this,0),this._modifiedScrollOffsetAnimated=(0,w.Nu)(this._targetWindow,this._modifiedScrollOffset,this._store);const g=(0,l.FY)("invalidateAlignmentsState",0),p=this._register(new ae.uC((()=>{g.set(g.get()+1,void 0)}),0));this._register(this._editors.original.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.modified.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.original.onDidChangeConfiguration((e=>{(e.hasChanged(146)||e.hasChanged(67))&&p.schedule()}))),this._register(this._editors.modified.onDidChangeConfiguration((e=>{(e.hasChanged(146)||e.hasChanged(67))&&p.schedule()})));const m=this._diffModel.map((e=>e?(0,l.y0)(e.model.original.onDidChangeTokens,(()=>2===e.model.original.tokenization.backgroundTokenizationState)):void 0)).map(((e,t)=>null===e||void 0===e?void 0:e.read(t))),f=(0,l.un)((e=>{const t=this._diffModel.read(e),i=null===t||void 0===t?void 0:t.diff.read(e);if(!t||!i)return null;g.read(e);const n=this._options.renderSideBySide.read(e);return Ge(this._editors.original,this._editors.modified,i.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,n)})),_=(0,l.un)((e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e);if(!i)return null;g.read(e);const n=i.changes.map((e=>new Ee(e)));return Ge(this._editors.original,this._editors.modified,n,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)}));function v(){const e=document.createElement("div");return e.className="diagonal-fill",e}const S=this._register(new a.Cm);this.viewZones=(0,l.rm)(this,((e,t)=>{var i,s,r,a,l,d,h,c;S.clear();const u=f.read(e)||[],g=[],p=[],w=this._modifiedTopPadding.read(e);w>0&&p.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:w,showInHiddenAreas:!0,suppressMouseDown:!0});const k=this._originalTopPadding.read(e);k>0&&g.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:k,showInHiddenAreas:!0,suppressMouseDown:!0});const x=this._options.renderSideBySide.read(e),L=x||null===(i=this._editors.modified._getViewModel())||void 0===i?void 0:i.createLineBreaksComputer();if(L){const O=this._editors.original.getModel();for(const P of u)if(P.diff)for(let F=P.originalRange.startLineNumber;F<P.originalRange.endLineNumberExclusive;F++){if(F>O.getLineCount())return{orig:g,mod:p};null===L||void 0===L||L.addRequest(O.getLineContent(F),null,null)}}const D=null!==(s=null===L||void 0===L?void 0:L.finalize())&&void 0!==s?s:[];let E=0;const N=this._editors.modified.getOption(67),T=null===(r=this._diffModel.read(e))||void 0===r?void 0:r.movedTextToCompare.read(e),I=null!==(l=null===(a=this._editors.original.getModel())||void 0===a?void 0:a.mightContainNonBasicASCII())&&void 0!==l&&l,A=null!==(h=null===(d=this._editors.original.getModel())||void 0===d?void 0:d.mightContainRTL())&&void 0!==h&&h,R=We.fromEditor(this._editors.modified);for(const B of u)if(B.diff&&!x){if(!B.originalRange.isEmpty){m.read(e);const V=document.createElement("div");V.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const H=this._editors.original.getModel();if(B.originalRange.endLineNumberExclusive-1>H.getLineCount())return{orig:g,mod:p};const z=new Be(B.originalRange.mapToLineArray((e=>H.tokenization.getLineTokens(e))),B.originalRange.mapToLineArray((e=>D[E++])),I,A),j=[];for(const $ of B.diff.innerChanges||[])j.push(new M.kI($.originalRange.delta(-(B.diff.original.startLineNumber-1)),ie.Zb.className,0));const U=Fe(z,R,j,V),K=document.createElement("div");if(K.className="inline-deleted-margin-view-zone",(0,y.M)(K,R.fontInfo),this._options.renderIndicators.read(e))for(let q=0;q<U.heightInLines;q++){const Q=document.createElement("div");Q.className=`delete-sign ${C.L.asClassName(ie.dv)}`,Q.setAttribute("style",`position:absolute;top:${q*N}px;width:${R.lineDecorationsWidth}px;height:${N}px;right:0;`),K.appendChild(Q)}let G;S.add(new Ae((()=>(0,le.eU)(G)),K,this._editors.modified,B.diff,this._diffEditorWidget,U.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let Y=0;Y<U.viewLineCounts.length;Y++){const Z=U.viewLineCounts[Y];Z>1&&g.push({afterLineNumber:B.originalRange.startLineNumber+Y,domNode:v(),heightInPx:(Z-1)*N,showInHiddenAreas:!0,suppressMouseDown:!0})}p.push({afterLineNumber:B.modifiedRange.startLineNumber-1,domNode:V,heightInPx:U.heightInLines*N,minWidthInPx:U.minWidthInPx,marginDomNode:K,setZoneId(e){G=e},showInHiddenAreas:!0,suppressMouseDown:!0})}const W=document.createElement("div");W.className="gutter-delete",g.push({afterLineNumber:B.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:B.modifiedHeightInPx,marginDomNode:W,showInHiddenAreas:!0,suppressMouseDown:!0})}else{const X=B.modifiedHeightInPx-B.originalHeightInPx;if(X>0){if(null===T||void 0===T?void 0:T.lineRangeMapping.original.delta(-1).deltaLength(2).contains(B.originalRange.endLineNumberExclusive-1))continue;g.push({afterLineNumber:B.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:X,showInHiddenAreas:!0,suppressMouseDown:!0})}else{if(null===T||void 0===T?void 0:T.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(B.modifiedRange.endLineNumberExclusive-1))continue;function J(){const e=document.createElement("div");return e.className="arrow-revert-change "+C.L.asClassName(b.W.arrowRight),t.add((0,n.ko)(e,"mousedown",(e=>e.stopPropagation()))),t.add((0,n.ko)(e,"click",(e=>{e.stopPropagation(),o.revert(B.diff)}))),(0,n.$)("div",{},e)}let ee;B.diff&&B.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(e)&&(ee=J()),p.push({afterLineNumber:B.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-X,marginDomNode:ee,showInHiddenAreas:!0,suppressMouseDown:!0})}}for(const te of null!==(c=_.read(e))&&void 0!==c?c:[]){if(!(null===T||void 0===T?void 0:T.lineRangeMapping.original.intersect(te.originalRange))||!(null===T||void 0===T?void 0:T.lineRangeMapping.modified.intersect(te.modifiedRange)))continue;const ne=te.modifiedHeightInPx-te.originalHeightInPx;ne>0?g.push({afterLineNumber:te.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:ne,showInHiddenAreas:!0,suppressMouseDown:!0}):p.push({afterLineNumber:te.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-ne,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:g,mod:p}}));let k=!1;this._register(this._editors.original.onDidScrollChange((e=>{e.scrollLeftChanged&&!k&&(k=!0,this._editors.modified.setScrollLeft(e.scrollLeft),k=!1)}))),this._register(this._editors.modified.onDidScrollChange((e=>{e.scrollLeftChanged&&!k&&(k=!0,this._editors.original.setScrollLeft(e.scrollLeft),k=!1)}))),this._originalScrollTop=(0,l.y0)(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,l.y0)(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._register((0,l.fm)((e=>{const t=this._originalScrollTop.read(e)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(e))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(e));t!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(t,1)}))),this._register((0,l.fm)((e=>{const t=this._modifiedScrollTop.read(e)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(e))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(e));t!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(t,1)}))),this._register((0,l.fm)((e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e);let n=0;if(i){const e=this._editors.original.getTopForLineNumber(i.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();n=this._editors.modified.getTopForLineNumber(i.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-e}n>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(n,void 0)):n<0?(this._modifiedTopPadding.set(-n,void 0),this._originalTopPadding.set(0,void 0)):setTimeout((()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0)}),400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.get()-n,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+n,void 0,!0)})))}};function Ge(e,t,i,n,s,o){const r=new v.j3($e(e,n)),a=new v.j3($e(t,s)),l=e.getOption(67),d=t.getOption(67),h=[];let c=0,u=0;function g(e,t){for(;;){let i=r.peek(),n=a.peek();if(i&&i.lineNumber>=e&&(i=void 0),n&&n.lineNumber>=t&&(n=void 0),!i&&!n)break;const s=i?i.lineNumber-c:Number.MAX_VALUE,o=n?n.lineNumber-u:Number.MAX_VALUE;s<o?(r.dequeue(),n={lineNumber:i.lineNumber-c+u,heightInPx:0}):s>o?(a.dequeue(),i={lineNumber:n.lineNumber-u+c,heightInPx:0}):(r.dequeue(),a.dequeue()),h.push({originalRange:k.M.ofLength(i.lineNumber,1),modifiedRange:k.M.ofLength(n.lineNumber,1),originalHeightInPx:l+i.heightInPx,modifiedHeightInPx:d+n.heightInPx,diff:void 0})}}for(const p of i){const m=p.lineRangeMapping;g(m.original.startLineNumber,m.modified.startLineNumber);let f=!0,_=m.modified.startLineNumber,b=m.original.startLineNumber;function C(e,t){var i,n,s,o;if(e<b||t<_)return;if(f)f=!1;else if(e===b||t===_)return;const c=new k.M(b,e),u=new k.M(_,t);if(c.isEmpty&&u.isEmpty)return;const g=null!==(n=null===(i=r.takeWhile((t=>t.lineNumber<e)))||void 0===i?void 0:i.reduce(((e,t)=>e+t.heightInPx),0))&&void 0!==n?n:0,m=null!==(o=null===(s=a.takeWhile((e=>e.lineNumber<t)))||void 0===s?void 0:s.reduce(((e,t)=>e+t.heightInPx),0))&&void 0!==o?o:0;h.push({originalRange:c,modifiedRange:u,originalHeightInPx:c.length*l+g,modifiedHeightInPx:u.length*d+m,diff:p.lineRangeMapping}),b=e,_=t}if(o)for(const y of m.innerChanges||[]){y.originalRange.startColumn>1&&y.modifiedRange.startColumn>1&&C(y.originalRange.startLineNumber,y.modifiedRange.startLineNumber);const w=e.getModel(),S=y.originalRange.endLineNumber<=w.getLineCount()?w.getLineMaxColumn(y.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;y.originalRange.endColumn<S&&C(y.originalRange.endLineNumber,y.modifiedRange.endLineNumber)}C(m.original.endLineNumberExclusive,m.modified.endLineNumberExclusive),c=m.original.endLineNumberExclusive,u=m.modified.endLineNumberExclusive}return g(Number.MAX_VALUE,Number.MAX_VALUE),h}function $e(e,t){const i=[],n=[],s=-1!==e.getOption(146).wrappingColumn,o=e._getViewModel().coordinatesConverter,r=e.getOption(67);if(s)for(let a=1;a<=e.getModel().getLineCount();a++){const e=o.getModelLineViewLineCount(a);e>1&&n.push({lineNumber:a,heightInPx:r*(e-1)})}for(const a of e.getWhitespaces()){if(t.has(a.id))continue;const e=0===a.afterLineNumber?0:o.convertViewPositionToModelPosition(new L.y(a.afterLineNumber,1)).lineNumber;i.push({lineNumber:e,heightInPx:a.height})}return(0,w.Am)(i,n,(e=>e.lineNumber),((e,t)=>({lineNumber:e.lineNumber,heightInPx:e.heightInPx+t.heightInPx})))}Ke=je([Ue(8,He.h),Ue(9,ze.Z)],Ke);var qe,Qe=i(34309),Ye=i(55275),Ze=i(74850),Xe=i(19531),Je=i(85845),et=i(47612),tt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},it=function(e,t){return function(i,n){t(i,n,e)}};let nt=qe=class extends a.jG{constructor(e,t,i,s,o,r,a){super(),this._editors=e,this._rootElement=t,this._diffModel=i,this._rootWidth=s,this._rootHeight=o,this._modifiedEditorLayoutInfo=r,this._themeService=a,this.width=qe.ENTIRE_DIFF_OVERVIEW_WIDTH;const d=(0,l.y0)(this._themeService.onDidColorThemeChange,(()=>this._themeService.getColorTheme())),h=(0,l.un)((e=>{const t=d.read(e);return{insertColor:t.getColor(Je.ld8)||(t.getColor(Je.Gj6)||Je.EY1).transparent(2),removeColor:t.getColor(Je.$BZ)||(t.getColor(Je.GNm)||Je.ZEf).transparent(2)}})),c=(0,Ye.Z)(document.createElement("div"));c.setClassName("diffViewport"),c.setPosition("absolute");const u=(0,n.h)("div.diffOverview",{style:{position:"absolute",top:"0px",width:qe.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register((0,w.rX)(u,c.domNode)),this._register((0,n.b2)(u,n.Bx.POINTER_DOWN,(e=>{this._editors.modified.delegateVerticalScrollbarPointerDown(e)}))),this._register((0,n.ko)(u,n.Bx.MOUSE_WHEEL,(e=>{this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1})),this._register((0,w.rX)(this._rootElement,u)),this._register((0,l.yC)(((e,t)=>{const i=this._diffModel.read(e),n=this._editors.original.createOverviewRuler("original diffOverviewRuler");n&&(t.add(n),t.add((0,w.rX)(u,n.getDomNode())));const s=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(s&&(t.add(s),t.add((0,w.rX)(u,s.getDomNode()))),!n||!s)return;const o=(0,l.yQ)("viewZoneChanged",this._editors.original.onDidChangeViewZones),r=(0,l.yQ)("viewZoneChanged",this._editors.modified.onDidChangeViewZones),a=(0,l.yQ)("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),d=(0,l.yQ)("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);t.add((0,l.fm)((e=>{var t;o.read(e),r.read(e),a.read(e),d.read(e);const l=h.read(e),c=null===(t=null===i||void 0===i?void 0:i.diff.read(e))||void 0===t?void 0:t.mappings;function u(e,t,i){const n=i._getViewModel();return n?e.filter((e=>e.length>0)).map((e=>{const i=n.coordinatesConverter.convertModelPositionToViewPosition(new L.y(e.startLineNumber,1)),s=n.coordinatesConverter.convertModelPositionToViewPosition(new L.y(e.endLineNumberExclusive,1)),o=s.lineNumber-i.lineNumber;return new Xe.iE(i.lineNumber,s.lineNumber,o,t.toString())})):[]}const g=u((c||[]).map((e=>e.lineRangeMapping.original)),l.removeColor,this._editors.original),p=u((c||[]).map((e=>e.lineRangeMapping.modified)),l.insertColor,this._editors.modified);null===n||void 0===n||n.setZones(g),null===s||void 0===s||s.setZones(p)}))),t.add((0,l.fm)((e=>{const t=this._rootHeight.read(e),i=this._rootWidth.read(e),o=this._modifiedEditorLayoutInfo.read(e);if(o){const i=qe.ENTIRE_DIFF_OVERVIEW_WIDTH-2*qe.ONE_OVERVIEW_WIDTH;n.setLayout({top:0,height:t,right:i+qe.ONE_OVERVIEW_WIDTH,width:qe.ONE_OVERVIEW_WIDTH}),s.setLayout({top:0,height:t,right:0,width:qe.ONE_OVERVIEW_WIDTH});const r=this._editors.modifiedScrollTop.read(e),a=this._editors.modifiedScrollHeight.read(e),l=this._editors.modified.getOption(103),d=new Ze.m(l.verticalHasArrows?l.arrowSize:0,l.verticalScrollbarSize,0,o.height,a,r);c.setTop(d.getSliderPosition()),c.setHeight(d.getSliderSize())}else c.setTop(0),c.setHeight(0);u.style.height=t+"px",u.style.left=i-qe.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",c.setWidth(qe.ENTIRE_DIFF_OVERVIEW_WIDTH)})))})))}};nt.ONE_OVERVIEW_WIDTH=15,nt.ENTIRE_DIFF_OVERVIEW_WIDTH=2*qe.ONE_OVERVIEW_WIDTH,nt=qe=tt([it(6,et.Gy)],nt);var st=i(20370),ot=i(16223);const rt=[];class at extends a.jG{constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._widget=n,this._selectedDiffs=(0,l.un)(this,(e=>{const t=this._diffModel.read(e),i=null===t||void 0===t?void 0:t.diff.read(e);if(!i)return rt;const n=this._editors.modifiedSelections.read(e);if(n.every((e=>e.isEmpty())))return rt;const s=new k.S(n.map((e=>k.M.fromRangeInclusive(e)))),o=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&s.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>n.some((t=>D.Q.areIntersecting(e.modifiedRange,t)))))})));return 0===o.length||o.every((e=>0===e.rangeMappings.length))?rt:o})),this._register((0,l.yC)(((e,t)=>{if(!this._options.shouldRenderOldRevertArrows.read(e))return;const i=this._diffModel.read(e),n=null===i||void 0===i?void 0:i.diff.read(e);if(!i||!n)return;if(i.movedTextToCompare.read(e))return;const s=[],o=this._selectedDiffs.read(e),r=new Set(o.map((e=>e.mapping)));if(o.length>0){const i=this._editors.modifiedSelections.read(e),n=t.add(new lt(i[i.length-1].positionLineNumber,this._widget,o.flatMap((e=>e.rangeMappings)),!0));this._editors.modified.addGlyphMarginWidget(n),s.push(n)}for(const a of n.mappings)if(!r.has(a)&&!a.lineRangeMapping.modified.isEmpty&&a.lineRangeMapping.innerChanges){const e=t.add(new lt(a.lineRangeMapping.modified.startLineNumber,this._widget,a.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(e),s.push(e)}t.add((0,a.s)((()=>{for(const e of s)this._editors.modified.removeGlyphMarginWidget(e)})))})))}}class lt extends a.jG{getId(){return this._id}constructor(e,t,i,s){super(),this._lineNumber=e,this._widget=t,this._diffs=i,this._revertSelection=s,this._id="revertButton"+lt.counter++,this._domNode=(0,n.h)("div.revertButton",{title:this._revertSelection?(0,A.kg)("revertSelectedChanges","Revert Selected Changes"):(0,A.kg)("revertChange","Revert Change")},[(0,st.s)(b.W.arrowRight)]).root,this._register((0,n.ko)(this._domNode,n.Bx.MOUSE_DOWN,(e=>{2!==e.button&&(e.stopPropagation(),e.preventDefault())}))),this._register((0,n.ko)(this._domNode,n.Bx.MOUSE_UP,(e=>{e.stopPropagation(),e.preventDefault()}))),this._register((0,n.ko)(this._domNode,n.Bx.CLICK,(e=>{this._diffs instanceof E.WL?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),e.stopPropagation(),e.preventDefault()})))}getDomNode(){return this._domNode}getPosition(){return{lane:ot.ZS.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}}lt.counter=0;var dt=i(23452),ht=i(60002),ct=i(32848),ut=i(58345),gt=i(73823),pt=i(98031),mt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ft=function(e,t){return function(i,n){t(i,n,e)}};let _t=class extends a.jG{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,t,i,n,s,o,a){super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=i,this._argCodeEditorWidgetOptions=n,this._createInnerEditor=s,this._instantiationService=o,this._keybindingService=a,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new r.vl),this.modifiedScrollTop=(0,l.y0)(this.modified.onDidScrollChange,(()=>this.modified.getScrollTop())),this.modifiedScrollHeight=(0,l.y0)(this.modified.onDidScrollChange,(()=>this.modified.getScrollHeight())),this.modifiedModel=(0,l.y0)(this.modified.onDidChangeModel,(()=>this.modified.getModel())),this.modifiedSelections=(0,l.y0)(this.modified.onDidChangeCursorSelection,(()=>{var e;return null!==(e=this.modified.getSelections())&&void 0!==e?e:[]})),this.modifiedCursor=(0,l.C)({owner:this,equalityComparer:L.y.equals},(e=>{var t,i;return null!==(i=null===(t=this.modifiedSelections.read(e)[0])||void 0===t?void 0:t.getPosition())&&void 0!==i?i:new L.y(1,1)})),this.originalCursor=(0,l.y0)(this.original.onDidChangeCursorPosition,(()=>{var e;return null!==(e=this.original.getPosition())&&void 0!==e?e:new L.y(1,1)})),this._argCodeEditorWidgetOptions=null,this._register((0,l.Y)({createEmptyChangeSummary:()=>({}),handleChange:(e,t)=>(e.didChange(i.editorOptions)&&Object.assign(t,e.change.changedOptions),!0)},((e,t)=>{i.editorOptions.read(e),this._options.renderSideBySide.read(e),this.modified.updateOptions(this._adjustOptionsForRightHandSide(e,t)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(e,t))})))}_createLeftHandSideEditor(e,t){const i=this._adjustOptionsForLeftHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,t);return n.setContextValue("isInDiffLeftEditor",!0),n}_createRightHandSideEditor(e,t){const i=this._adjustOptionsForRightHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,t);return n.setContextValue("isInDiffRightEditor",!0),n}_constructInnerEditor(e,t,i,n){const s=this._createInnerEditor(e,t,i,n);return this._register(s.onDidContentSizeChange((e=>{const t=this.original.getContentWidth()+this.modified.getContentWidth()+nt.ENTIRE_DIFF_OVERVIEW_WIDTH,i=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged})}))),s}_adjustOptionsForLeftHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return this._options.renderSideBySide.get()?(i.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},i.wordWrapOverride1=this._options.diffWordWrap.get()):(i.wordWrapOverride1="off",i.wordWrapOverride2="off",i.stickyScroll={enabled:!1},i.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),i.glyphMargin=this._options.renderSideBySide.get(),t.originalAriaLabel&&(i.ariaLabel=t.originalAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.readOnly=!this._options.originalEditable.get(),i.dropIntoEditor={enabled:!i.readOnly},i.extraEditorClassName="original-in-monaco-diff-editor",i}_adjustOptionsForRightHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.wordWrapOverride1=this._options.diffWordWrap.get(),i.revealHorizontalRightPadding=S.qB.revealHorizontalRightPadding.defaultValue+nt.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}_adjustOptionsForSubEditor(e){const t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar={...t.scrollbar||{}},t.folding=!1,t.codeLens=this._options.diffCodeLens.get(),t.fixedOverflowWidgets=!0,t.minimap={...t.minimap||{}},t.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?t.stickyScroll={enabled:!1}:t.stickyScroll=this._options.editorOptions.get().stickyScroll,t}_updateAriaLabel(e){var t;e||(e="");const i=(0,A.kg)("diff-aria-navigation-tip"," use {0} to open the accessibility help.",null===(t=this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp"))||void 0===t?void 0:t.getAriaLabel());return this._options.accessibilityVerbose.get()?e+i:e?e.replaceAll(i,""):""}};_t=mt([ft(5,O._Y),ft(6,pt.b)],_t);class vt extends a.jG{constructor(){super(...arguments),this._id=++vt.idCounter,this._onDidDispose=this._register(new r.vl),this.onDidDispose=this._onDidDispose.event}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition(e){return this._targetEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._targetEditor.getPosition()}setPosition(e,t="api"){this._targetEditor.setPosition(e,t)}revealLine(e,t=0){this._targetEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._targetEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._targetEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._targetEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._targetEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._targetEditor.revealPositionNearTop(e,t)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(e,t="api"){this._targetEditor.setSelection(e,t)}setSelections(e,t="api"){this._targetEditor.setSelections(e,t)}revealLines(e,t,i=0){this._targetEditor.revealLines(e,t,i)}revealLinesInCenter(e,t,i=0){this._targetEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._targetEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t,i=0){this._targetEditor.revealLinesNearTop(e,t,i)}revealRange(e,t=0,i=!1,n=!0){this._targetEditor.revealRange(e,t,i,n)}revealRangeInCenter(e,t=0){this._targetEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._targetEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._targetEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._targetEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(e,t,i){this._targetEditor.trigger(e,t,i)}createDecorationsCollection(e){return this._targetEditor.createDecorationsCollection(e)}changeDecorations(e){return this._targetEditor.changeDecorations(e)}}vt.idCounter=0;var bt=i(61059),Ct=i(253),yt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},wt=function(e,t){return function(i,n){t(i,n,e)}};let St=class{get editorOptions(){return this._options}constructor(e,t){this._accessibilityService=t,this._diffEditorWidth=(0,l.FY)(this,0),this._screenReaderMode=(0,l.y0)(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this.couldShowInlineViewBecauseOfSize=(0,l.un)(this,(e=>this._options.read(e).renderSideBySide&&this._diffEditorWidth.read(e)<=this._options.read(e).renderSideBySideInlineBreakpoint)),this.renderOverviewRuler=(0,l.un)(this,(e=>this._options.read(e).renderOverviewRuler)),this.renderSideBySide=(0,l.un)(this,(e=>this._options.read(e).renderSideBySide&&!(this._options.read(e).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(e)&&!this._screenReaderMode.read(e)))),this.readOnly=(0,l.un)(this,(e=>this._options.read(e).readOnly)),this.shouldRenderOldRevertArrows=(0,l.un)(this,(e=>!!this._options.read(e).renderMarginRevertIcon&&(!!this.renderSideBySide.read(e)&&(!this.readOnly.read(e)&&!this.shouldRenderGutterMenu.read(e))))),this.shouldRenderGutterMenu=(0,l.un)(this,(e=>this._options.read(e).renderGutterMenu)),this.renderIndicators=(0,l.un)(this,(e=>this._options.read(e).renderIndicators)),this.enableSplitViewResizing=(0,l.un)(this,(e=>this._options.read(e).enableSplitViewResizing)),this.splitViewDefaultRatio=(0,l.un)(this,(e=>this._options.read(e).splitViewDefaultRatio)),this.ignoreTrimWhitespace=(0,l.un)(this,(e=>this._options.read(e).ignoreTrimWhitespace)),this.maxComputationTimeMs=(0,l.un)(this,(e=>this._options.read(e).maxComputationTime)),this.showMoves=(0,l.un)(this,(e=>this._options.read(e).experimental.showMoves&&this.renderSideBySide.read(e))),this.isInEmbeddedEditor=(0,l.un)(this,(e=>this._options.read(e).isInEmbeddedEditor)),this.diffWordWrap=(0,l.un)(this,(e=>this._options.read(e).diffWordWrap)),this.originalEditable=(0,l.un)(this,(e=>this._options.read(e).originalEditable)),this.diffCodeLens=(0,l.un)(this,(e=>this._options.read(e).diffCodeLens)),this.accessibilityVerbose=(0,l.un)(this,(e=>this._options.read(e).accessibilityVerbose)),this.diffAlgorithm=(0,l.un)(this,(e=>this._options.read(e).diffAlgorithm)),this.showEmptyDecorations=(0,l.un)(this,(e=>this._options.read(e).experimental.showEmptyDecorations)),this.onlyShowAccessibleDiffViewer=(0,l.un)(this,(e=>this._options.read(e).onlyShowAccessibleDiffViewer)),this.hideUnchangedRegions=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.enabled)),this.hideUnchangedRegionsRevealLineCount=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.revealLineCount)),this.hideUnchangedRegionsContextLineCount=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.contextLineCount)),this.hideUnchangedRegionsMinimumLineCount=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.minimumLineCount));const i={...e,...kt(e,bt.q)};this._options=(0,l.FY)(this,i)}updateOptions(e){const t=kt(e,this._options.get()),i={...this._options.get(),...e,...t};this._options.set(i,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}};function kt(e,t){var i,n,s,o,r,a,l,d;return{enableSplitViewResizing:(0,S.zM)(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:(0,S.ls)(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:(0,S.zM)(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:(0,S.zM)(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:(0,S.wA)(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:(0,S.wA)(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,S.zM)(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:(0,S.zM)(e.renderIndicators,t.renderIndicators),originalEditable:(0,S.zM)(e.originalEditable,t.originalEditable),diffCodeLens:(0,S.zM)(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:(0,S.zM)(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:(0,S.O4)(e.diffWordWrap,t.diffWordWrap,["off","on","inherit"]),diffAlgorithm:(0,S.O4)(e.diffAlgorithm,t.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:(0,S.zM)(e.accessibilityVerbose,t.accessibilityVerbose),experimental:{showMoves:(0,S.zM)(null===(i=e.experimental)||void 0===i?void 0:i.showMoves,t.experimental.showMoves),showEmptyDecorations:(0,S.zM)(null===(n=e.experimental)||void 0===n?void 0:n.showEmptyDecorations,t.experimental.showEmptyDecorations)},hideUnchangedRegions:{enabled:(0,S.zM)(null!==(o=null===(s=e.hideUnchangedRegions)||void 0===s?void 0:s.enabled)&&void 0!==o?o:null===(r=e.experimental)||void 0===r?void 0:r.collapseUnchangedRegions,t.hideUnchangedRegions.enabled),contextLineCount:(0,S.wA)(null===(a=e.hideUnchangedRegions)||void 0===a?void 0:a.contextLineCount,t.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:(0,S.wA)(null===(l=e.hideUnchangedRegions)||void 0===l?void 0:l.minimumLineCount,t.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:(0,S.wA)(null===(d=e.hideUnchangedRegions)||void 0===d?void 0:d.revealLineCount,t.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:(0,S.zM)(e.isInEmbeddedEditor,t.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:(0,S.zM)(e.onlyShowAccessibleDiffViewer,t.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:(0,S.wA)(e.renderSideBySideInlineBreakpoint,t.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:(0,S.zM)(e.useInlineViewWhenSpaceIsLimited,t.useInlineViewWhenSpaceIsLimited),renderGutterMenu:(0,S.zM)(e.renderGutterMenu,t.renderGutterMenu)}}St=yt([wt(1,Ct.j)],St);class xt extends a.jG{constructor(e,t,i){super(),this._editor=e,this._domNode=t,this.itemProvider=i,this.scrollTop=(0,l.y0)(this._editor.onDidScrollChange,(e=>this._editor.getScrollTop())),this.isScrollTopZero=this.scrollTop.map((e=>0===e)),this.modelAttached=(0,l.y0)(this._editor.onDidChangeModel,(e=>this._editor.hasModel())),this.editorOnDidChangeViewZones=(0,l.yQ)("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=(0,l.yQ)("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=(0,l.Yd)("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const s=this._domNode.appendChild((0,n.h)("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),o=new ResizeObserver((()=>{(0,l.Rn)((e=>{this.domNodeSizeChanged.trigger(e)}))}));o.observe(this._domNode),this._register((0,a.s)((()=>o.disconnect()))),this._register((0,l.fm)((e=>{s.className=this.isScrollTopZero.read(e)?"":"scroll-decoration"}))),this._register((0,l.fm)((e=>this.render(e))))}dispose(){super.dispose(),(0,n.Ln)(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);const t=this.scrollTop.read(e),i=this._editor.getVisibleRanges(),n=new Set(this.views.keys()),s=x.L.ofStartAndLength(0,this._domNode.clientHeight);if(!s.isEmpty)for(const o of i){const i=new k.M(o.startLineNumber,o.endLineNumber+1),r=this.itemProvider.getIntersectingGutterItems(i,e);(0,l.Rn)((e=>{for(const o of r){if(!o.range.intersect(i))continue;n.delete(o.id);let r=this.views.get(o.id);if(r)r.item.set(o,e);else{const e=document.createElement("div");this._domNode.appendChild(e);const t=(0,l.FY)("item",o),i=this.itemProvider.createView(t,e);r=new Lt(t,i,e),this.views.set(o.id,r)}const a=o.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(o.range.startLineNumber,!0)-t:this._editor.getBottomForLineNumber(o.range.startLineNumber-1,!1)-t,d=(o.range.isEmpty?a:this._editor.getBottomForLineNumber(o.range.endLineNumberExclusive-1,!0)-t)-a;r.domNode.style.top=`${a}px`,r.domNode.style.height=`${d}px`,r.gutterItemView.layout(x.L.ofStartAndLength(a,d),s)}}))}for(const o of n){const e=this.views.get(o);e.gutterItemView.dispose(),this._domNode.removeChild(e.domNode),this.views.delete(o)}}}class Lt{constructor(e,t,i){this.item=e,this.gutterItemView=t,this.domNode=i}}var Dt=i(25791),Et=i(75295),Nt=i(50973);class Tt extends Et.CO{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){const e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new Nt.W(e-1,t)}}var It=i(65644),Mt=i(27195),At=i(67220),Rt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ot=function(e,t){return function(i,n){t(i,n,e)}};const Pt=[];let Ft=class extends a.jG{constructor(e,t,i,s,o,r){super(),this._diffModel=t,this._editors=i,this._instantiationService=s,this._contextKeyService=o,this._menuService=r,this._menu=this._register(this._menuService.createMenu(Mt.D8.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=(0,l.y0)(this._menu.onDidChange,(()=>this._menu.getActions())),this._hasActions=this._actions.map((e=>e.length>0)),this.width=(0,l.un)(this,(e=>this._hasActions.read(e)?35:0)),this.elements=(0,n.h)("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:"35px"}},[]),this._currentDiff=(0,l.un)(this,(e=>{var t;const i=this._diffModel.read(e);if(!i)return;const n=null===(t=i.diff.read(e))||void 0===t?void 0:t.mappings,s=this._editors.modifiedCursor.read(e);return s?null===n||void 0===n?void 0:n.find((e=>e.lineRangeMapping.modified.contains(s.lineNumber))):void 0})),this._selectedDiffs=(0,l.un)(this,(e=>{const t=this._diffModel.read(e),i=null===t||void 0===t?void 0:t.diff.read(e);if(!i)return Pt;const n=this._editors.modifiedSelections.read(e);if(n.every((e=>e.isEmpty())))return Pt;const s=new k.S(n.map((e=>k.M.fromRangeInclusive(e)))),o=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&s.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>n.some((t=>D.Q.areIntersecting(e.modifiedRange,t)))))})));return 0===o.length||o.every((e=>0===e.rangeMappings.length))?Pt:o})),this._register((0,w.$y)(e,this.elements.root)),this._register((0,n.ko)(this.elements.root,"click",(()=>{this._editors.modified.focus()}))),this._register((0,w.AV)(this.elements.root,{display:this._hasActions.map((e=>e?"block":"none"))})),this._register(new xt(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(e,t)=>{const i=this._diffModel.read(t);if(!i)return[];const n=i.diff.read(t);if(!n)return[];const s=this._selectedDiffs.read(t);if(s.length>0){const e=E.wm.fromRangeMappings(s.flatMap((e=>e.rangeMappings)));return[new Bt(e,!0,Mt.D8.DiffEditorSelectionToolbar,void 0,i.model.original.uri,i.model.modified.uri)]}const o=this._currentDiff.read(t);return n.mappings.map((e=>new Bt(e.lineRangeMapping.withInnerChangesFromLineRanges(),e.lineRangeMapping===(null===o||void 0===o?void 0:o.lineRangeMapping),Mt.D8.DiffEditorHunkToolbar,void 0,i.model.original.uri,i.model.modified.uri)))},createView:(e,t)=>this._instantiationService.createInstance(Wt,e,t,this)})),this._register((0,n.ko)(this.elements.gutter,n.Bx.MOUSE_WHEEL,(e=>{this._editors.modified.getOption(103).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1}))}computeStagedValue(e){var t;const i=null!==(t=e.innerChanges)&&void 0!==t?t:[];return new Et.mF(i.map((e=>new Et.WR(e.originalRange,this._editors.modifiedModel.get().getValueInRange(e.modifiedRange))))).apply(new Tt(this._editors.original.getModel()))}layout(e){this.elements.gutter.style.left=e+"px"}};Ft=Rt([Ot(3,O._Y),Ot(4,ct.fN),Ot(5,Mt.ez)],Ft);class Bt{constructor(e,t,i,n,s,o){this.mapping=e,this.showAlways=t,this.menuId=i,this.rangeOverride=n,this.originalUri=s,this.modifiedUri=o}get id(){return this.mapping.modified.toString()}get range(){var e;return null!==(e=this.rangeOverride)&&void 0!==e?e:this.mapping.modified}}let Wt=class extends a.jG{constructor(e,t,i,s){super(),this._item=e,this._elements=(0,n.h)("div.gutterItem",{style:{height:"20px",width:"34px"}},[(0,n.h)("div.background@background",{},[]),(0,n.h)("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,(e=>e.showAlways)),this._menuId=this._item.map(this,(e=>e.menuId)),this._isSmall=(0,l.FY)(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const o=this._register(s.createInstance(At.fO,"element",!0,{position:{hoverPosition:1}}));this._register((0,w.rX)(t,this._elements.root)),this._register((0,l.fm)((e=>{const t=this._showAlways.read(e);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",t),setTimeout((()=>{this._elements.root.classList.toggle("noTransition",!1)}),0)}))),this._register((0,l.yC)(((e,t)=>{this._elements.buttons.replaceChildren();const n=t.add(s.createInstance(It.m,this._elements.buttons,this._menuId.read(e),{orientation:1,hoverDelegate:o,toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(e)?1:3},hiddenItemStrategy:0,actionRunner:new Dt.I((()=>{const e=this._item.get(),t=e.mapping;return{mapping:t,originalWithModifiedChanges:i.computeStagedValue(t),originalUri:e.originalUri,modifiedUri:e.modifiedUri}})),menuOptions:{shouldForwardArgs:!0}}));t.add(n.onDidChangeMenuItems((()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)})))})))}layout(e,t){this._lastItemRange=e,this._lastViewRange=t;let i=this._elements.buttons.clientHeight;this._isSmall.set(1===this._item.get().mapping.original.startLineNumber&&e.length<30,void 0),i=this._elements.buttons.clientHeight,this._elements.root.style.top=e.start+"px",this._elements.root.style.height=e.length+"px";const n=e.length/2-i/2,s=i;let o=e.start+n;const r=x.L.tryCreate(s,t.endExclusive-s-i),a=x.L.tryCreate(e.start+s,e.endExclusive-i-s);a&&r&&a.start<a.endExclusive&&(o=r.clip(o),o=a.clip(o)),this._elements.buttons.style.top=o-e.start+"px"}};Wt=Rt([Ot(3,O._Y)],Wt);var Vt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ht=function(e,t){return function(i,n){t(i,n,e)}};let zt=class extends vt{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,t,i,s,o,h,c,g){var p;super(),this._domElement=e,this._parentContextKeyService=s,this._parentInstantiationService=o,this._accessibilitySignalService=c,this._editorProgressService=g,this.elements=(0,n.h)("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[(0,n.h)("div.noModificationsOverlay@overlay",{style:{position:"absolute",height:"100%",visibility:"hidden"}},[(0,n.$)("span",{},"No Changes")]),(0,n.h)("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),(0,n.h)("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),(0,n.h)("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModel=(0,l.FY)(this,void 0),this._shouldDisposeDiffModel=!1,this.onDidChangeModel=r.Jh.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._parentInstantiationService.createChild(new ut.a([ct.fN,this._contextKeyService])),this._boundarySashes=(0,l.FY)(this,void 0),this._accessibleDiffViewerShouldBeVisible=(0,l.FY)(this,!1),this._accessibleDiffViewerVisible=(0,l.un)(this,(e=>!!this._options.onlyShowAccessibleDiffViewer.read(e)||this._accessibleDiffViewerShouldBeVisible.read(e))),this._movedBlocksLinesPart=(0,l.FY)(this,void 0),this._layoutInfo=(0,l.un)(this,(e=>{var t,i,n,s,o;const r=this._rootSizeObserver.width.read(e),a=this._rootSizeObserver.height.read(e),l=this._sash.read(e),d=this._gutter.read(e),h=null!==(t=null===d||void 0===d?void 0:d.width.read(e))&&void 0!==t?t:0,c=null!==(n=null===(i=this._overviewRulerPart.read(e))||void 0===i?void 0:i.width)&&void 0!==n?n:0;let u,g,p,m,f;if(!!l){const t=l.sashLeft.read(e);u=0,g=t-h-(null!==(o=null===(s=this._movedBlocksLinesPart.read(e))||void 0===s?void 0:s.width.read(e))&&void 0!==o?o:0),f=t-h,p=t,m=r-p-c}else f=0,u=h,g=Math.max(5,this._editors.original.getLayoutInfo().decorationsLeft),p=h+g,m=r-p-c;return this.elements.original.style.left=u+"px",this.elements.original.style.width=g+"px",this._editors.original.layout({width:g,height:a},!0),null===d||void 0===d||d.layout(f),this.elements.modified.style.left=p+"px",this.elements.modified.style.width=m+"px",this._editors.modified.layout({width:m,height:a},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}})),this._diffValue=this._diffModel.map(((e,t)=>null===e||void 0===e?void 0:e.diff.read(t))),this.onDidUpdateDiff=r.Jh.fromObservableLight(this._diffValue),h.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register((0,a.s)((()=>this._domElement.removeChild(this.elements.root)))),this._rootSizeObserver=this._register(new w.pN(this.elements.root,t.dimension)),this._rootSizeObserver.setAutomaticLayout(null!==(p=t.automaticLayout)&&void 0!==p&&p),this._options=this._instantiationService.createInstance(St,t),this._register((0,l.fm)((e=>{this._options.setWidth(this._rootSizeObserver.width.read(e))}))),this._contextKeyService.createKey(ht.R.isEmbeddedDiffEditor.key,!1),this._register((0,w.wp)(ht.R.isEmbeddedDiffEditor,this._contextKeyService,(e=>this._options.isInEmbeddedEditor.read(e)))),this._register((0,w.wp)(ht.R.comparingMovedCode,this._contextKeyService,(e=>{var t;return!!(null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e))}))),this._register((0,w.wp)(ht.R.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,(e=>this._options.couldShowInlineViewBecauseOfSize.read(e)))),this._register((0,w.wp)(ht.R.diffEditorInlineMode,this._contextKeyService,(e=>!this._options.renderSideBySide.read(e)))),this._register((0,w.wp)(ht.R.hasChanges,this._contextKeyService,(e=>{var t,i,n;return(null!==(n=null===(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.diff.read(e))||void 0===i?void 0:i.mappings.length)&&void 0!==n?n:0)>0}))),this._editors=this._register(this._instantiationService.createInstance(_t,this.elements.original,this.elements.modified,this._options,i,((e,t,i,n)=>this._createInnerEditor(e,t,i,n)))),this._register((0,w.wp)(ht.R.diffEditorOriginalWritable,this._contextKeyService,(e=>this._options.originalEditable.read(e)))),this._register((0,w.wp)(ht.R.diffEditorModifiedWritable,this._contextKeyService,(e=>!this._options.readOnly.read(e)))),this._register((0,w.wp)(ht.R.diffEditorOriginalUri,this._contextKeyService,(e=>{var t,i;return null!==(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.model.original.uri.toString())&&void 0!==i?i:""}))),this._register((0,w.wp)(ht.R.diffEditorModifiedUri,this._contextKeyService,(e=>{var t,i;return null!==(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.model.modified.uri.toString())&&void 0!==i?i:""}))),this._overviewRulerPart=(0,d.a0)(this,(e=>this._options.renderOverviewRuler.read(e)?this._instantiationService.createInstance((0,w.b6)(nt,e),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map((e=>e.modifiedEditor))):void 0)).recomputeInitiallyAndOnChange(this._store),this._sash=(0,d.a0)(this,(e=>{const t=this._options.renderSideBySide.read(e);return this.elements.root.classList.toggle("side-by-side",t),t?new oe(this._options,this.elements.root,{height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map(((e,t)=>{var i,n;return e-(null!==(n=null===(i=this._overviewRulerPart.read(t))||void 0===i?void 0:i.width)&&void 0!==n?n:0)}))},this._boundarySashes):void 0})).recomputeInitiallyAndOnChange(this._store);const m=(0,d.a0)(this,(e=>this._instantiationService.createInstance((0,w.b6)(Qe.N,e),this._editors,this._diffModel,this._options))).recomputeInitiallyAndOnChange(this._store);(0,d.a0)(this,(e=>this._instantiationService.createInstance((0,w.b6)(ne,e),this._editors,this._diffModel,this._options,this))).recomputeInitiallyAndOnChange(this._store);const f=new Set,_=new Set;let v=!1;const b=(0,d.a0)(this,(e=>this._instantiationService.createInstance((0,w.b6)(Ke,e),(0,n.zk)(this._domElement),this._editors,this._diffModel,this._options,this,(()=>v||m.get().isUpdatingHiddenAreas),f,_))).recomputeInitiallyAndOnChange(this._store),C=(0,l.un)(this,(e=>{const t=b.read(e).viewZones.read(e).orig,i=m.read(e).viewZones.read(e).origViewZones;return t.concat(i)})),y=(0,l.un)(this,(e=>{const t=b.read(e).viewZones.read(e).mod,i=m.read(e).viewZones.read(e).modViewZones;return t.concat(i)}));let S;this._register((0,w.Vs)(this._editors.original,C,(e=>{v=e}),f)),this._register((0,w.Vs)(this._editors.modified,y,(e=>{v=e,v?S=u.D.capture(this._editors.modified):(null===S||void 0===S||S.restore(this._editors.modified),S=void 0)}),_)),this._accessibleDiffViewer=(0,d.a0)(this,(e=>this._instantiationService.createInstance((0,w.b6)(z,e),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,((e,t)=>this._accessibleDiffViewerShouldBeVisible.set(e,t)),this._options.onlyShowAccessibleDiffViewer.map((e=>!e)),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map(((e,t)=>{var i;return null===(i=null===e||void 0===e?void 0:e.diff.read(t))||void 0===i?void 0:i.mappings.map((e=>e.lineRangeMapping))})),new X(this._editors)))).recomputeInitiallyAndOnChange(this._store);const k=this._accessibleDiffViewerVisible.map((e=>e?"hidden":"visible"));this._register((0,w.AV)(this.elements.modified,{visibility:k})),this._register((0,w.AV)(this.elements.original,{visibility:k})),this._createDiffEditorContributions(),h.addDiffEditor(this),this._gutter=(0,d.a0)(this,(e=>this._options.shouldRenderGutterMenu.read(e)?this._instantiationService.createInstance((0,w.b6)(Ft,e),this.elements.root,this._diffModel,this._editors):void 0)),this._register((0,l.OI)(this._layoutInfo)),(0,d.a0)(this,(e=>new((0,w.b6)(J,e))(this.elements.root,this._diffModel,this._layoutInfo.map((e=>e.originalEditor)),this._layoutInfo.map((e=>e.modifiedEditor)),this._editors))).recomputeInitiallyAndOnChange(this._store,(e=>{this._movedBlocksLinesPart.set(e,void 0)})),this._register((0,w.AV)(this.elements.overlay,{width:this._layoutInfo.map(((e,t)=>e.originalEditor.width+(this._options.renderSideBySide.read(t)?0:e.modifiedEditor.width))),visibility:(0,l.un)((e=>{var t,i;return this._options.hideUnchangedRegions.read(e)&&0===(null===(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.diff.read(e))||void 0===i?void 0:i.mappings.length)?"visible":"hidden"}))})),this._register(r.Jh.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!0)))),this._register(r.Jh.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!1))));const x=this._diffModel.map(this,((e,t)=>{if(e)return void 0===e.diff.read(t)&&!e.isDiffUpToDate.read(t)}));this._register((0,l.yC)(((e,t)=>{if(!0===x.read(e)){const e=this._editorProgressService.show(!0,1e3);t.add((0,a.s)((()=>e.done())))}}))),this._register((0,a.s)((()=>{var e;this._shouldDisposeDiffModel&&(null===(e=this._diffModel.get())||void 0===e||e.dispose())}))),this._register((0,l.yC)(((e,t)=>{t.add(new((0,w.b6)(at,e))(this._editors,this._diffModel,this._options,this))})))}_createInnerEditor(e,t,i,n){return e.createInstance(g.x,t,i,n)}_createDiffEditorContributions(){const e=h.dS.getDiffEditorContributions();for(const i of e)try{this._register(this._instantiationService.createInstance(i.ctor,this))}catch(t){(0,o.dz)(t)}}get _targetEditor(){return this._editors.modified}getEditorType(){return dt._.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){var e;return{original:this._editors.original.saveViewState(),modified:this._editors.modified.saveViewState(),modelState:null===(e=this._diffModel.get())||void 0===e?void 0:e.serializeState()}}restoreViewState(e){var t;if(e&&e.original&&e.modified){const i=e;this._editors.original.restoreViewState(i.original),this._editors.modified.restoreViewState(i.modified),i.modelState&&(null===(t=this._diffModel.get())||void 0===t||t.restoreSerializedState(i.modelState))}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(Le,e,this._options)}getModel(){var e,t;return null!==(t=null===(e=this._diffModel.get())||void 0===e?void 0:e.model)&&void 0!==t?t:null}setModel(e,t){!e&&this._diffModel.get()&&this._accessibleDiffViewer.get().close();const i=e?"model"in e?{model:e,shouldDispose:!1}:{model:this.createViewModel(e),shouldDispose:!0}:void 0;this._diffModel.get()!==(null===i||void 0===i?void 0:i.model)&&(0,l.PO)(t,(e=>{var t;l.y0.batchEventsGlobally(e,(()=>{this._editors.original.setModel(i?i.model.model.original:null),this._editors.modified.setModel(i?i.model.model.modified:null)}));const n=this._diffModel.get(),s=this._shouldDisposeDiffModel;this._shouldDisposeDiffModel=null!==(t=null===i||void 0===i?void 0:i.shouldDispose)&&void 0!==t&&t,this._diffModel.set(null===i||void 0===i?void 0:i.model,e),s&&(null===n||void 0===n||n.dispose())}))}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.diff.get();return t?t.mappings.map((e=>{const t=e.lineRangeMapping;let i,n,s,o,r=t.innerChanges;return t.original.isEmpty?(i=t.original.startLineNumber-1,n=0,r=void 0):(i=t.original.startLineNumber,n=t.original.endLineNumberExclusive-1),t.modified.isEmpty?(s=t.modified.startLineNumber-1,o=0,r=void 0):(s=t.modified.startLineNumber,o=t.modified.endLineNumberExclusive-1),{originalStartLineNumber:i,originalEndLineNumber:n,modifiedStartLineNumber:s,modifiedEndLineNumber:o,charChanges:null===r||void 0===r?void 0:r.map((e=>({originalStartLineNumber:e.originalRange.startLineNumber,originalStartColumn:e.originalRange.startColumn,originalEndLineNumber:e.originalRange.endLineNumber,originalEndColumn:e.originalRange.endColumn,modifiedStartLineNumber:e.modifiedRange.startLineNumber,modifiedStartColumn:e.modifiedRange.startColumn,modifiedEndLineNumber:e.modifiedRange.endLineNumber,modifiedEndColumn:e.modifiedRange.endColumn})))}})):null}revert(e){const t=this._diffModel.get();t&&t.isDiffUpToDate.get()&&this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:t.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){const t=this._diffModel.get();if(!t||!t.isDiffUpToDate.get())return;const i=e.map((e=>({range:e.modifiedRange,text:t.model.original.getValueInRange(e.originalRange)})));this._editors.modified.executeEdits("diffEditor",i)}_goTo(e){this._editors.modified.setPosition(new L.y(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){var t,i,n,o;const r=null===(i=null===(t=this._diffModel.get())||void 0===t?void 0:t.diff.get())||void 0===i?void 0:i.mappings;if(!r||0===r.length)return;const a=this._editors.modified.getPosition().lineNumber;let l;l="next"===e?null!==(n=r.find((e=>e.lineRangeMapping.modified.startLineNumber>a)))&&void 0!==n?n:r[0]:null!==(o=(0,s.Uk)(r,(e=>e.lineRangeMapping.modified.startLineNumber<a)))&&void 0!==o?o:r[r.length-1],this._goTo(l),l.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(R.Rh.diffLineDeleted,{source:"diffEditor.goToDiff"}):l.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(R.Rh.diffLineInserted,{source:"diffEditor.goToDiff"}):l&&this._accessibilitySignalService.playSignal(R.Rh.diffLineModified,{source:"diffEditor.goToDiff"})}revealFirstDiff(){const e=this._diffModel.get();e&&this.waitForDiff().then((()=>{var t;const i=null===(t=e.diff.get())||void 0===t?void 0:t.mappings;i&&0!==i.length&&this._goTo(i[0])}))}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){var e,t;const i=this._editors.modified.hasWidgetFocus(),n=i?this._editors.modified:this._editors.original,s=i?this._editors.original:this._editors.modified;let o;const r=n.getSelection();if(r){const n=null===(t=null===(e=this._diffModel.get())||void 0===e?void 0:e.diff.get())||void 0===t?void 0:t.mappings.map((e=>i?e.lineRangeMapping.flip():e.lineRangeMapping));if(n){const e=(0,w.Mu)(r.getStartPosition(),n),t=(0,w.Mu)(r.getEndPosition(),n);o=D.Q.plusRange(e,t)}}return{destination:s,destinationSelection:o}}switchSide(){const{destination:e,destinationSelection:t}=this.mapToOtherSide();e.focus(),t&&e.setSelection(t)}exitCompareMove(){const e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.unchangedRegions.get();t&&(0,l.Rn)((e=>{for(const i of t)i.collapseAll(e)}))}showAllUnchangedRegions(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.unchangedRegions.get();t&&(0,l.Rn)((e=>{for(const i of t)i.showAll(e)}))}_handleCursorPositionChange(e,t){var i,n;if(3===(null===e||void 0===e?void 0:e.reason)){const s=null===(n=null===(i=this._diffModel.get())||void 0===i?void 0:i.diff.get())||void 0===n?void 0:n.mappings.find((i=>t?i.lineRangeMapping.modified.contains(e.position.lineNumber):i.lineRangeMapping.original.contains(e.position.lineNumber)));(null===s||void 0===s?void 0:s.lineRangeMapping.modified.isEmpty)?this._accessibilitySignalService.playSignal(R.Rh.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):(null===s||void 0===s?void 0:s.lineRangeMapping.original.isEmpty)?this._accessibilitySignalService.playSignal(R.Rh.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):s&&this._accessibilitySignalService.playSignal(R.Rh.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};zt=Vt([Ht(3,ct.fN),Ht(4,O._Y),Ht(5,c.T),Ht(6,R.Nt),Ht(7,gt.N8)],zt)},34309:(e,t,i)=>{"use strict";i.d(t,{N:()=>w});var n,s=i(8597),o=i(20370),r=i(10350),a=i(16980),l=i(5662),d=i(99938),h=i(87958),c=i(25689),u=i(631),g=i(90568),p=i(86571),m=i(83069),f=i(36677),_=i(62083),v=i(31629),b=i(63591),C=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},y=function(e,t){return function(i,n){t(i,n,e)}};let w=n=class extends l.jG{static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,t,i,s){super(),this._editors=e,this._diffModel=t,this._options=i,this._instantiationService=s,this._modifiedOutlineSource=(0,h.a0)(this,(e=>{const t=this._editors.modifiedModel.read(e),i=n._breadcrumbsSourceFactory.read(e);return t&&i?i(t,this._instantiationService):void 0})),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,d.Rn)((e=>{for(const i of this._editors.original.getSelections()||[])null===t||void 0===t||t.ensureOriginalLineIsVisible(i.getStartPosition().lineNumber,0,e),null===t||void 0===t||t.ensureOriginalLineIsVisible(i.getEndPosition().lineNumber,0,e)}))}))),this._register(this._editors.modified.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,d.Rn)((e=>{for(const i of this._editors.modified.getSelections()||[])null===t||void 0===t||t.ensureModifiedLineIsVisible(i.getStartPosition().lineNumber,0,e),null===t||void 0===t||t.ensureModifiedLineIsVisible(i.getEndPosition().lineNumber,0,e)}))})));const o=this._diffModel.map(((e,t)=>{var i,n;const s=null!==(i=null===e||void 0===e?void 0:e.unchangedRegions.read(t))&&void 0!==i?i:[];return 1===s.length&&1===s[0].modifiedLineNumber&&s[0].lineCount===(null===(n=this._editors.modifiedModel.read(t))||void 0===n?void 0:n.getLineCount())?[]:s}));this.viewZones=(0,d.rm)(this,((e,t)=>{const i=this._modifiedOutlineSource.read(e);if(!i)return{origViewZones:[],modViewZones:[]};const n=[],s=[],r=this._options.renderSideBySide.read(e),a=o.read(e);for(const o of a)if(!o.shouldHideControls(e)){{const e=(0,d.un)(this,(e=>o.getHiddenOriginalRange(e).startLineNumber-1)),s=new g.D1(e,24);n.push(s),t.add(new S(this._editors.original,s,o,o.originalUnchangedRange,!r,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}{const e=(0,d.un)(this,(e=>o.getHiddenModifiedRange(e).startLineNumber-1)),n=new g.D1(e,24);s.push(n),t.add(new S(this._editors.modified,n,o,o.modifiedUnchangedRange,!1,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}}return{origViewZones:n,modViewZones:s}}));const l={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},_={description:"Fold Unchanged",glyphMarginHoverMessage:new a.Bc(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown((0,v.kg)("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+c.L.asClassName(r.W.fold),zIndex:10001};this._register((0,g.pY)(this._editors.original,(0,d.un)(this,(e=>{const t=o.read(e),i=t.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:l})));for(const n of t)n.shouldHideControls(e)&&i.push({range:f.Q.fromPositions(new m.y(n.originalLineNumber,1)),options:_});return i})))),this._register((0,g.pY)(this._editors.modified,(0,d.un)(this,(e=>{const t=o.read(e),i=t.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:l})));for(const n of t)n.shouldHideControls(e)&&i.push({range:p.M.ofLength(n.modifiedLineNumber,1).toInclusiveRange(),options:_});return i})))),this._register((0,d.fm)((e=>{const t=o.read(e);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(t.map((t=>t.getHiddenOriginalRange(e).toInclusiveRange())).filter(u.O9)),this._editors.modified.setHiddenAreas(t.map((t=>t.getHiddenModifiedRange(e).toInclusiveRange())).filter(u.O9))}finally{this._isUpdatingHiddenAreas=!1}}))),this._register(this._editors.modified.onMouseUp((e=>{var t;if(!e.event.rightButton&&e.target.position&&(null===(t=e.target.element)||void 0===t?void 0:t.className.includes("fold-unchanged"))){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const n=i.unchangedRegions.get().find((e=>e.modifiedUnchangedRange.includes(t)));if(!n)return;n.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}}))),this._register(this._editors.original.onMouseUp((e=>{var t;if(!e.event.rightButton&&e.target.position&&(null===(t=e.target.element)||void 0===t?void 0:t.className.includes("fold-unchanged"))){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const n=i.unchangedRegions.get().find((e=>e.originalUnchangedRange.includes(t)));if(!n)return;n.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}})))}};w._breadcrumbsSourceFactory=(0,d.FY)("breadcrumbsSourceFactory",void 0),w=n=C([y(3,b._Y)],w);class S extends g.uN{constructor(e,t,i,n,a,l,h,c){const u=(0,s.h)("div.diff-hidden-lines-widget");super(e,t,u.root),this._editor=e,this._unchangedRegion=i,this._unchangedRegionRange=n,this._hide=a,this._modifiedOutlineSource=l,this._revealModifiedHiddenLine=h,this._options=c,this._nodes=(0,s.h)("div.diff-hidden-lines",[(0,s.h)("div.top@top",{title:(0,v.kg)("diff.hiddenLines.top","Click or drag to show more above")}),(0,s.h)("div.center@content",{style:{display:"flex"}},[(0,s.h)("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[(0,s.$)("a",{title:(0,v.kg)("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...(0,o.n)("$(unfold)"))]),(0,s.h)("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),(0,s.h)("div.bottom@bottom",{title:(0,v.kg)("diff.bottom","Click or drag to show more below"),role:"button"})]),u.root.appendChild(this._nodes.root);const p=(0,d.y0)(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));this._hide?(0,s.Ln)(this._nodes.first):this._register((0,g.AV)(this._nodes.first,{width:p.map((e=>e.contentLeft))})),this._register((0,d.fm)((e=>{const t=this._unchangedRegion.visibleLineCountTop.read(e)+this._unchangedRegion.visibleLineCountBottom.read(e)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!t),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),this._nodes.top.classList.toggle("canMoveBottom",!t);const i=this._unchangedRegion.isDragged.read(e),n=this._editor.getDomNode();n&&(n.classList.toggle("draggingUnchangedRegion",!!i),"top"===i?(n.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),n.classList.toggle("canMoveBottom",!t)):"bottom"===i?(n.classList.toggle("canMoveTop",!t),n.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0)):(n.classList.toggle("canMoveTop",!1),n.classList.toggle("canMoveBottom",!1)))})));const m=this._editor;this._register((0,s.ko)(this._nodes.top,"mousedown",(e=>{if(0!==e.button)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const n=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const o=(0,s.zk)(this._nodes.top),r=(0,s.ko)(o,"mousemove",(e=>{const s=e.clientY-t;i=i||Math.abs(s)>2;const o=Math.round(s/m.getOption(67)),r=Math.max(0,Math.min(n+o,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(r,void 0)})),a=(0,s.ko)(o,"mouseup",(e=>{i||this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0),this._nodes.top.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),this._unchangedRegion.isDragged.set(void 0,void 0),r.dispose(),a.dispose()}))}))),this._register((0,s.ko)(this._nodes.bottom,"mousedown",(e=>{if(0!==e.button)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const n=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const o=(0,s.zk)(this._nodes.bottom),r=(0,s.ko)(o,"mousemove",(e=>{const s=e.clientY-t;i=i||Math.abs(s)>2;const o=Math.round(s/m.getOption(67)),r=Math.max(0,Math.min(n-o,this._unchangedRegion.getMaxVisibleLineCountBottom())),a=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(r,void 0);const l=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(l-a))})),a=(0,s.ko)(o,"mouseup",(e=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!i){const e=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const t=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(t-e))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),r.dispose(),a.dispose()}))}))),this._register((0,d.fm)((e=>{const t=[];if(!this._hide){const n=i.getHiddenModifiedRange(e).length,a=(0,v.kg)("hiddenLines","{0} hidden lines",n),l=(0,s.$)("span",{title:(0,v.kg)("diff.hiddenLines.expandAll","Double click to unfold")},a);l.addEventListener("dblclick",(e=>{0===e.button&&(e.preventDefault(),this._unchangedRegion.showAll(void 0))})),t.push(l);const d=this._unchangedRegion.getHiddenModifiedRange(e),h=this._modifiedOutlineSource.getBreadcrumbItems(d,e);if(h.length>0){t.push((0,s.$)("span",void 0,"\xa0\xa0|\xa0\xa0"));for(let e=0;e<h.length;e++){const i=h[e],n=_.gP.toIcon(i.kind),a=(0,s.h)("div.breadcrumb-item",{style:{display:"flex",alignItems:"center"}},[(0,o.s)(n),"\xa0",i.name,...e===h.length-1?[]:[(0,o.s)(r.W.chevronRight)]]).root;t.push(a),a.onclick=()=>{this._revealModifiedHiddenLine(i.startLineNumber)}}}}(0,s.Ln)(this._nodes.others,...t)})))}}},10691:(e,t,i)=>{"use strict";i.d(t,{GM:()=>_,KL:()=>b,Kl:()=>c,Ob:()=>u,Ou:()=>f,XT:()=>p,Zb:()=>v,Zw:()=>g,bk:()=>m,dv:()=>h,wp:()=>C});var n=i(10350),s=i(25689),o=i(38361),r=i(31629),a=i(85845),l=i(61394);(0,a.x1A)("diffEditor.move.border",{dark:"#8b8b8b9c",light:"#8b8b8b9c",hcDark:"#8b8b8b9c",hcLight:"#8b8b8b9c"},(0,r.kg)("diffEditor.move.border","The border color for text that got moved in the diff editor.")),(0,a.x1A)("diffEditor.moveActive.border",{dark:"#FFA500",light:"#FFA500",hcDark:"#FFA500",hcLight:"#FFA500"},(0,r.kg)("diffEditor.moveActive.border","The active border color for text that got moved in the diff editor.")),(0,a.x1A)("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},(0,r.kg)("diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets."));const d=(0,l.pU)("diff-insert",n.W.add,(0,r.kg)("diffInsertIcon","Line decoration for inserts in the diff editor.")),h=(0,l.pU)("diff-remove",n.W.remove,(0,r.kg)("diffRemoveIcon","Line decoration for removals in the diff editor.")),c=o.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+s.L.asClassName(d),marginClassName:"gutter-insert"}),u=o.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+s.L.asClassName(h),marginClassName:"gutter-delete"}),g=o.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),p=o.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),m=o.kI.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),f=o.kI.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),_=o.kI.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),v=o.kI.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),b=o.kI.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),C=o.kI.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})},90568:(e,t,i)=>{"use strict";i.d(t,{MZ:()=>D,pN:()=>b,D1:()=>w,uN:()=>y,Nu:()=>C,rX:()=>_,pY:()=>f,AV:()=>k,Vs:()=>L,wp:()=>N,EK:()=>T,Am:()=>m,$y:()=>v,b6:()=>x,Mu:()=>E});var n=i(46041),s=i(18447),o=i(59911);function r(){return o._K&&!!o._K.VSCODE_DEV}function a(e){if(r()){const t=function(){l||(l=new Set);const e=globalThis;e.$hotReload_applyNewExports||(e.$hotReload_applyNewExports=e=>{const t={config:{mode:void 0},...e};for(const i of l){const e=i(t);if(e)return e}});return l}();return t.add(e),{dispose(){t.delete(e)}}}return{dispose(){}}}let l;r()&&a((({oldExports:e,newSrc:t,config:i})=>{if("patch-prototype"===i.mode)return t=>{var i,n;for(const s in t){const o=t[s];if(console.log(`[hot-reload] Patching prototype methods of '${s}'`,{exportedItem:o}),"function"===typeof o&&o.prototype){const r=e[s];if(r){for(const e of Object.getOwnPropertyNames(o.prototype)){const t=Object.getOwnPropertyDescriptor(o.prototype,e),a=Object.getOwnPropertyDescriptor(r.prototype,e);(null===(i=null===t||void 0===t?void 0:t.value)||void 0===i?void 0:i.toString())!==(null===(n=null===a||void 0===a?void 0:a.value)||void 0===n?void 0:n.toString())&&console.log(`[hot-reload] Patching prototype method '${s}.${e}'`),Object.defineProperty(r.prototype,e,t)}t[s]=r}}}return!0}}));var d=i(5662),h=i(99938),c=i(4983),u=i(83069),g=i(36677),p=i(50973);function m(e,t,i,n){if(0===e.length)return t;if(0===t.length)return e;const s=[];let o=0,r=0;for(;o<e.length&&r<t.length;){const a=e[o],l=t[r],d=i(a),h=i(l);d<h?(s.push(a),o++):d>h?(s.push(l),r++):(s.push(n(a,l)),o++,r++)}for(;o<e.length;)s.push(e[o]),o++;for(;r<t.length;)s.push(t[r]),r++;return s}function f(e,t){const i=new d.Cm,n=e.createDecorationsCollection();return i.add((0,h.zL)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);n.set(i)}))),i.add({dispose:()=>{n.clear()}}),i}function _(e,t){return e.appendChild(t),(0,d.s)((()=>{e.removeChild(t)}))}function v(e,t){return e.prepend(t),(0,d.s)((()=>{e.removeChild(t)}))}class b extends d.jG{get width(){return this._width}get height(){return this._height}constructor(e,t){super(),this.elementSizeObserver=this._register(new c.u(e,t)),this._width=(0,h.FY)(this,this.elementSizeObserver.getWidth()),this._height=(0,h.FY)(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange((e=>(0,h.Rn)((e=>{this._width.set(this.elementSizeObserver.getWidth(),e),this._height.set(this.elementSizeObserver.getHeight(),e)})))))}observe(e){this.elementSizeObserver.observe(e)}setAutomaticLayout(e){e?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}}function C(e,t,i){let n=t.get(),s=n,o=n;const r=(0,h.FY)("animatedValue",n);let a=-1;let l;function d(){const t=Date.now()-a;var i,h,c,u;o=Math.floor((h=s,c=n-s,(i=t)===(u=300)?h+c:c*(1-Math.pow(2,-10*i/u))+h)),t<300?l=e.requestAnimationFrame(d):o=n,r.set(o,void 0)}return i.add((0,h.Y)({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(e,i)=>(e.didChange(t)&&(i.animate=i.animate||e.change),!0)},((i,r)=>{void 0!==l&&(e.cancelAnimationFrame(l),l=void 0),s=o,n=t.read(i),a=Date.now()-(r.animate?0:300),d()}))),r}class y extends d.jG{constructor(e,t,i){super(),this._register(new S(e,i)),this._register(k(i,{height:t.actualHeight,top:t.actualTop}))}}class w{get afterLineNumber(){return this._afterLineNumber.get()}constructor(e,t){this._afterLineNumber=e,this.heightInPx=t,this.domNode=document.createElement("div"),this._actualTop=(0,h.FY)(this,void 0),this._actualHeight=(0,h.FY)(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=e=>{this._actualTop.set(e,void 0)},this.onComputedHeight=e=>{this._actualHeight.set(e,void 0)}}}class S{constructor(e,t){this._editor=e,this._domElement=t,this._overlayWidgetId="managedOverlayWidget-"+S._counter++,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}}function k(e,t){return(0,h.fm)((i=>{for(let[n,s]of Object.entries(t))s&&"object"===typeof s&&"read"in s&&(s=s.read(i)),"number"===typeof s&&(s=`${s}px`),n=n.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),e.style[n]=s}))}function x(e,t){return function(e,t){if(r()){(0,h.yQ)("reload",(t=>a((({oldExports:i})=>{if([...Object.values(i)].some((t=>e.includes(t))))return e=>(t(void 0),!0)})))).read(t)}}([e],t),e}function L(e,t,i,n){const s=new d.Cm,o=[];return s.add((0,h.yC)(((s,r)=>{const a=t.read(s),l=new Map,d=new Map;i&&i(!0),e.changeViewZones((e=>{for(const t of o)e.removeZone(t),null===n||void 0===n||n.delete(t);o.length=0;for(const t of a){const i=e.addZone(t);t.setZoneId&&t.setZoneId(i),o.push(i),null===n||void 0===n||n.add(i),l.set(t,i)}})),i&&i(!1),r.add((0,h.Y)({createEmptyChangeSummary:()=>({zoneIds:[]}),handleChange(e,t){const i=d.get(e.changedObservable);return void 0!==i&&t.zoneIds.push(i),!0}},((t,n)=>{for(const e of a)e.onChange&&(d.set(e.onChange,l.get(e)),e.onChange.read(t));i&&i(!0),e.changeViewZones((e=>{for(const t of n.zoneIds)e.layoutZone(t)})),i&&i(!1)})))}))),s.add({dispose(){i&&i(!0),e.changeViewZones((e=>{for(const t of o)e.removeZone(t)})),null===n||void 0===n||n.clear(),i&&i(!1)}}),s}S._counter=0;class D extends s.Q{dispose(){super.dispose(!0)}}function E(e,t){const i=(0,n.Uk)(t,(t=>t.original.startLineNumber<=e.lineNumber));if(!i)return g.Q.fromPositions(e);if(i.original.endLineNumberExclusive<=e.lineNumber){const t=e.lineNumber-i.original.endLineNumberExclusive+i.modified.endLineNumberExclusive;return g.Q.fromPositions(new u.y(t,e.column))}if(!i.innerChanges)return g.Q.fromPositions(new u.y(i.modified.startLineNumber,1));const s=(0,n.Uk)(i.innerChanges,(t=>t.originalRange.getStartPosition().isBeforeOrEqual(e)));if(!s){const t=e.lineNumber-i.original.startLineNumber+i.modified.startLineNumber;return g.Q.fromPositions(new u.y(t,e.column))}if(s.originalRange.containsPosition(e))return s.modifiedRange;{const t=(o=s.originalRange.getEndPosition(),r=e,o.lineNumber===r.lineNumber?new p.W(0,r.column-o.column):new p.W(r.lineNumber-o.lineNumber,r.column-1));return g.Q.fromPositions(t.addToPosition(s.modifiedRange.getEndPosition()))}var o,r}function N(e,t,i){const n=e.bindTo(t);return(0,h.zL)({debugName:()=>`Set Context Key "${e.key}"`},(e=>{n.set(i(e))}))}function T(e,t){let i;return e.filter((e=>{const n=t(e,i);return i=e,n}))}},20492:(e,t,i)=>{"use strict";i.d(t,{T:()=>f,i:()=>_});var n,s=i(68214),o=i(80789),r=i(64383),a=i(41234),l=i(5662),d=i(73157),h=i(10154),c=i(83941),u=i(58314),g=i(49099),p=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},m=function(e,t){return function(i,n){t(i,n,e)}};let f=n=class{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new a.vl,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e){return{element:document.createElement("span"),dispose:()=>{}}}const n=new l.Cm,o=n.add((0,s.Gc)(e,{...this._getRenderOptions(e,n),...t},i));return o.element.classList.add("rendered-markdown"),{element:o.element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:async(e,t)=>{var i,s,o;let r;e?r=this._languageService.getLanguageIdByLanguageName(e):this._options.editor&&(r=null===(i=this._options.editor.getModel())||void 0===i?void 0:i.getLanguageId()),r||(r=c.vH);const a=await(0,u.Yj)(this._languageService,t,r),l=document.createElement("span");if(l.innerHTML=null!==(o=null===(s=n._ttpTokenizer)||void 0===s?void 0:s.createHTML(a))&&void 0!==o?o:a,this._options.editor){const e=this._options.editor.getOption(50);(0,d.M)(l,e)}else this._options.codeBlockFontFamily&&(l.style.fontFamily=this._options.codeBlockFontFamily);return void 0!==this._options.codeBlockFontSize&&(l.style.fontSize=this._options.codeBlockFontSize),l},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:t=>_(this._openerService,t,e.isTrusted),disposables:t}}}};async function _(e,t,i){try{return await e.open(t,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:v(i)})}catch(n){return(0,r.dz)(n),!1}}function v(e){return!0===e||!(!e||!Array.isArray(e.enabledCommands))&&e.enabledCommands}f._ttpTokenizer=(0,o.H)("tokenizeToString",{createHTML:e=>e}),f=n=p([m(1,h.L),m(2,g.C)],f)},25791:(e,t,i)=>{"use strict";i.d(t,{I:()=>s});var n=i(36921);class s extends n.LN{constructor(e){super(),this._getContext=e}runAction(e,t){const i=this._getContext();return super.runAction(e,i)}}},15092:(e,t,i)=>{"use strict";i.d(t,{iP:()=>a,iu:()=>s,q2:()=>r,tA:()=>o,ui:()=>l});var n=i(75326);class s{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.L.fromPositions(i.getEndPosition())}}class o{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.L.fromRange(i,0)}}class r{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.L.fromPositions(i.getStartPosition())}}class a{constructor(e,t,i,n,s=!1){this._range=e,this._text=t,this._columnDeltaOffset=n,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=s}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.L.fromPositions(i.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}class l{constructor(e,t,i,n=!1){this._range=e,this._text=t,this._initialSelection=i,this._forceMoveMarkers=n,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},7936:(e,t,i)=>{"use strict";i.d(t,{Y:()=>p});var n,s=i(91508),o=i(1245),r=i(36677),a=i(75326),l=i(63346),d=i(17469),h=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},c=function(e,t){return function(i,n){t(i,n,e)}};const u=Object.create(null);function g(e,t){if(t<=0)return"";u[e]||(u[e]=["",e]);const i=u[e];for(let n=i.length;n<=t;n++)i[n]=i[n-1]+e;return i[t]}let p=n=class{static unshiftIndent(e,t,i,n,s){const r=o.A.visibleColumnFromColumn(e,t,i);if(s){const e=g(" ",n);return g(e,o.A.prevIndentTabStop(r,n)/n)}return g("\t",o.A.prevRenderTabStop(r,i)/i)}static shiftIndent(e,t,i,n,s){const r=o.A.visibleColumnFromColumn(e,t,i);if(s){const e=g(" ",n);return g(e,o.A.nextIndentTabStop(r,n)/n)}return g("\t",o.A.nextRenderTabStop(r,i)/i)}constructor(e,t,i){this._languageConfigurationService=i,this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let a=this._selection.endLineNumber;1===this._selection.endColumn&&i!==a&&(a-=1);const{tabSize:d,indentSize:h,insertSpaces:c}=this._opts,u=i===a;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let g=0,p=0;for(let m=i;m<=a;m++,g=p){p=0;const a=e.getLineContent(m);let f,_=s.HG(a);if((!this._opts.isUnshift||0!==a.length&&0!==_)&&(u||this._opts.isUnshift||0!==a.length)){if(-1===_&&(_=a.length),m>1){if(o.A.visibleColumnFromColumn(a,_+1,d)%h!==0&&e.tokenization.isCheapToTokenize(m-1)){const t=(0,l.h)(this._opts.autoIndent,e,new r.Q(m-1,e.getLineMaxColumn(m-1),m-1,e.getLineMaxColumn(m-1)),this._languageConfigurationService);if(t){if(p=g,t.appendText)for(let e=0,i=t.appendText.length;e<i&&p<h&&32===t.appendText.charCodeAt(e);e++)p++;t.removeText&&(p=Math.max(0,p-t.removeText));for(let e=0;e<p&&(0!==_&&32===a.charCodeAt(_-1));e++)_--}}}this._opts.isUnshift&&0===_||(f=this._opts.isUnshift?n.unshiftIndent(a,_+1,d,h,c):n.shiftIndent(a,_+1,d,h,c),this._addEditOperation(t,new r.Q(m,1,m,_+1),f),m!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=_+1))}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&0===e.getLineLength(i)&&(this._useLastEditRangeForCursorEndPosition=!0);const n=c?g(" ",h):"\t";for(let o=i;o<=a;o++){const a=e.getLineContent(o);let l=s.HG(a);if((!this._opts.isUnshift||0!==a.length&&0!==l)&&((u||this._opts.isUnshift||0!==a.length)&&(-1===l&&(l=a.length),!this._opts.isUnshift||0!==l)))if(this._opts.isUnshift){l=Math.min(l,h);for(let e=0;e<l;e++){if(9===a.charCodeAt(e)){l=e+1;break}}this._addEditOperation(t,new r.Q(o,1,o,l+1),"")}else this._addEditOperation(t,new r.Q(o,1,o,1),n),o!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){if(this._useLastEditRangeForCursorEndPosition){const e=t.getInverseEditOperations()[0];return new a.L(e.range.endLineNumber,e.range.endColumn,e.range.endLineNumber,e.range.endColumn)}const i=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){const e=this._selection.startColumn;return i.startColumn<=e?i:0===i.getDirection()?new a.L(i.startLineNumber,e,i.endLineNumber,i.endColumn):new a.L(i.endLineNumber,i.endColumn,i.startLineNumber,e)}return i}};p=n=h([c(2,d.JZ)],p)},61059:(e,t,i)=>{"use strict";i.d(t,{q:()=>n});const n={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0}},94371:(e,t,i)=>{"use strict";i.d(t,{Gn:()=>m,JJ:()=>d,vf:()=>p});var n=i(61059),s=i(87908),o=i(24329),r=i(31629),a=i(1646),l=i(46359);const d=Object.freeze({id:"editor",order:5,type:"object",title:r.kg("editorConfigurationTitle","Editor"),scope:5}),h={...d,properties:{"editor.tabSize":{type:"number",default:o.R.tabSize,minimum:1,markdownDescription:r.kg("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:r.kg("indentSize",'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:o.R.insertSpaces,markdownDescription:r.kg("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:o.R.detectIndentation,markdownDescription:r.kg("detectIndentation","Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:o.R.trimAutoWhitespace,description:r.kg("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:o.R.largeFileOptimizations,description:r.kg("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[r.kg("wordBasedSuggestions.off","Turn off Word Based Suggestions."),r.kg("wordBasedSuggestions.currentDocument","Only suggest words from the active document."),r.kg("wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),r.kg("wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:r.kg("wordBasedSuggestions","Controls whether completions should be computed based on words in the document and from which documents they are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[r.kg("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),r.kg("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),r.kg("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:r.kg("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:r.kg("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:r.kg("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!1,description:r.kg("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:r.kg("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:r.kg("editor.experimental.asyncTokenizationVerification","Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:r.kg("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:r.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:r.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:r.kg("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:r.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:r.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:n.q.maxComputationTime,description:r.kg("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:n.q.maxFileSize,description:r.kg("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:n.q.renderSideBySide,description:r.kg("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:n.q.renderSideBySideInlineBreakpoint,description:r.kg("renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:n.q.useInlineViewWhenSpaceIsLimited,description:r.kg("useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:n.q.renderMarginRevertIcon,description:r.kg("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:n.q.renderGutterMenu,description:r.kg("renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:n.q.ignoreTrimWhitespace,description:r.kg("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:n.q.renderIndicators,description:r.kg("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:n.q.diffCodeLens,description:r.kg("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:n.q.diffWordWrap,markdownEnumDescriptions:[r.kg("wordWrap.off","Lines will never wrap."),r.kg("wordWrap.on","Lines will wrap at the viewport width."),r.kg("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:n.q.diffAlgorithm,markdownEnumDescriptions:[r.kg("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),r.kg("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:n.q.hideUnchangedRegions.enabled,markdownDescription:r.kg("hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:n.q.hideUnchangedRegions.revealLineCount,markdownDescription:r.kg("hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:n.q.hideUnchangedRegions.minimumLineCount,markdownDescription:r.kg("hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:n.q.hideUnchangedRegions.contextLineCount,markdownDescription:r.kg("hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:n.q.experimental.showMoves,markdownDescription:r.kg("showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:n.q.experimental.showEmptyDecorations,description:r.kg("showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")}}};for(const f of s.BE){const e=f.schema;if("undefined"!==typeof e)if("undefined"!==typeof(c=e).type||"undefined"!==typeof c.anyOf)h.properties[`editor.${f.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(h.properties[t]=e[t])}var c;let u=null;function g(){return null===u&&(u=Object.create(null),Object.keys(h.properties).forEach((e=>{u[e]=!0}))),u}function p(e){return g()[`editor.${e}`]||!1}function m(e){return g()[`diffEditor.${e}`]||!1}l.O.as(a.Fd.Configuration).registerConfiguration(h)},87908:(e,t,i)=>{"use strict";i.d(t,{$C:()=>A,BE:()=>W,Bc:()=>N,O4:()=>k,Of:()=>P,XR:()=>O,hZ:()=>g,jT:()=>E,jU:()=>B,ls:()=>y,lw:()=>h,m9:()=>D,n0:()=>c,qB:()=>H,r_:()=>T,wA:()=>b,xZ:()=>M,xq:()=>d,zM:()=>_});var n=i(25890),s=i(10146),o=i(98067),r=i(24329),a=i(26486),l=i(31629);const d=8;class h{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class c{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class u{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return p(e,t)}compute(e,t,i){return i}}class g{constructor(e,t){this.newValue=e,this.didChange=t}}function p(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return new g(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const i=Array.isArray(e)&&Array.isArray(t)&&n.aI(e,t);return new g(t,!i)}let i=!1;for(const n in t)if(t.hasOwnProperty(n)){const s=p(e[n],t[n]);s.didChange&&(e[n]=s.newValue,i=!0)}return new g(e,i)}class m{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return p(e,t)}validate(e){return this.defaultValue}}class f{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return p(e,t)}validate(e){return"undefined"===typeof e?this.defaultValue:e}compute(e,t,i){return i}}function _(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)}class v extends f{constructor(e,t,i,n=void 0){"undefined"!==typeof n&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return _(e,this.defaultValue)}}function b(e,t,i,n){if("undefined"===typeof e)return t;let s=parseInt(e,10);return isNaN(s)?t:(s=Math.max(i,s),s=Math.min(n,s),0|s)}class C extends f{static clampedInt(e,t,i,n){return b(e,t,i,n)}constructor(e,t,i,n,s,o=void 0){"undefined"!==typeof o&&(o.type="integer",o.default=i,o.minimum=n,o.maximum=s),super(e,t,i,o),this.minimum=n,this.maximum=s}validate(e){return C.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function y(e,t,i,n){if("undefined"===typeof e)return t;const s=w.float(e,t);return w.clamp(s,i,n)}class w extends f{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){"undefined"!==typeof s&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(w.float(e,this.defaultValue))}}class S extends f{static string(e,t){return"string"!==typeof e?t:e}constructor(e,t,i,n=void 0){"undefined"!==typeof n&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return S.string(e,this.defaultValue)}}function k(e,t,i,n){return"string"!==typeof e?t:n&&e in n?n[e]:-1===i.indexOf(e)?t:e}class x extends f{constructor(e,t,i,n,s=void 0){"undefined"!==typeof s&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return k(e,this.defaultValue,this._allowedValues)}}class L extends u{constructor(e,t,i,n,s,o,r=void 0){"undefined"!==typeof r&&(r.type="string",r.enum=s,r.default=n),super(e,t,i,r),this._allowedValues=s,this._convert=o}validate(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var D,E;!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(D||(D={}));class N extends u{constructor(){super(51,"fontLigatures",N.OFF,{anyOf:[{type:"boolean",description:l.kg("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:l.kg("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:l.kg("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e||0===e.length?N.OFF:"true"===e?N.ON:e:Boolean(e)?N.ON:N.OFF}}N.OFF='"liga" off, "calt" off',N.ON='"liga" on, "calt" on';class T extends u{constructor(){super(54,"fontVariations",T.OFF,{anyOf:[{type:"boolean",description:l.kg("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:l.kg("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:l.kg("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?T.OFF:"true"===e?T.TRANSLATE:e:Boolean(e)?T.TRANSLATE:T.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}T.OFF="normal",T.TRANSLATE="translate";class I extends u{constructor(){super(53,"fontWeight",B.fontWeight,{anyOf:[{type:"number",minimum:I.MINIMUM_VALUE,maximum:I.MAXIMUM_VALUE,errorMessage:l.kg("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:I.SUGGESTION_VALUES}],default:B.fontWeight,description:l.kg("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(C.clampedInt(e,B.fontWeight,I.MINIMUM_VALUE,I.MAXIMUM_VALUE))}}I.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],I.MINIMUM_VALUE=1,I.MAXIMUM_VALUE=1e3;class M extends m{constructor(){super(145)}compute(e,t,i){return M.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:Math.floor(e.viewLineCount/s)}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const o=t.stableMinimapLayoutInput,r=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,a=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,c=e.minimap.renderCharacters;let u=s>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,_=e.viewLineCount,v=e.remainingWidth,b=e.isViewportWrapping,C=c?2:3;let y=Math.floor(s*n);const w=y/s;let S=!1,k=!1,x=C*u,L=u/s,D=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:i,extraLinesBeforeFirstLine:o,extraLinesBeyondLastLine:l,desiredRatio:d,minimapLineCount:c}=M.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:h,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:a,pixelRatio:s});if(_/c>1)S=!0,k=!0,u=1,x=1,L=u/s;else{let n=!1,h=u+1;if("fit"===p){const e=Math.ceil((o+_+l)*x);b&&r&&v<=t.stableFitRemainingWidth?(n=!0,h=t.stableFitMaxMinimapScale):n=e>y}if("fill"===p||n){S=!0;const n=u;x=Math.min(a*s,Math.max(1,Math.floor(1/d))),b&&r&&v<=t.stableFitRemainingWidth&&(h=t.stableFitMaxMinimapScale),u=Math.min(h,Math.max(1,Math.floor(x/C))),u>n&&(D=Math.min(2,u/n)),L=u/s/D,y=Math.ceil(Math.max(i,o+_+l)*x),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const E=Math.floor(g*L),N=Math.min(E,Math.max(0,Math.floor((v-f-2)*L/(l+L)))+d);let T=Math.floor(s*N);const I=T/s;T=Math.floor(T*D);return{renderMinimap:c?1:2,minimapLeft:"left"===m?0:i-N-f,minimapWidth:N,minimapHeightIsEditorHeight:S,minimapIsSampling:k,minimapScale:u,minimapLineHeight:x,minimapCanvasInnerWidth:T,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:I,minimapCanvasOuterHeight:w}}static computeLayout(e,t){const i=0|t.outerWidth,n=0|t.outerHeight,s=0|t.lineHeight,o=0|t.lineNumbersDigitCount,r=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,d=t.viewLineCount,h=e.get(137),u="inherit"===h?e.get(136):h,g="inherit"===u?e.get(132):u,p=e.get(135),m=t.isDominatedByLongLines,f=e.get(57),_=0!==e.get(68).renderType,v=e.get(69),b=e.get(105),C=e.get(84),y=e.get(73),w=e.get(103),S=w.verticalScrollbarSize,k=w.verticalHasArrows,x=w.arrowSize,L=w.horizontalScrollbarSize,D=e.get(43),E="never"!==e.get(110);let N=e.get(66);D&&E&&(N+=16);let T=0;if(_){const e=Math.max(o,v);T=Math.round(e*a)}let I=0;f&&(I=s*t.glyphMarginDecorationLaneCount);let A=0,R=A+I,O=R+T,P=O+N;const F=i-I-T-N;let B=!1,W=!1,V=-1;"inherit"===u&&m?(B=!0,W=!0):"on"===g||"bounded"===g?W=!0:"wordWrapColumn"===g&&(V=p);const H=M._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:r,pixelRatio:l,scrollBeyondLastLine:b,paddingTop:C.top,paddingBottom:C.bottom,minimap:y,verticalScrollbarWidth:S,viewLineCount:d,remainingWidth:F,isViewportWrapping:W},t.memory||new c);0!==H.renderMinimap&&0===H.minimapLeft&&(A+=H.minimapWidth,R+=H.minimapWidth,O+=H.minimapWidth,P+=H.minimapWidth);const z=F-H.minimapWidth,j=Math.max(1,Math.floor((z-S-2)/r)),U=k?x:0;return W&&(V=Math.max(1,j),"bounded"===g&&(V=Math.min(V,p))),{width:i,height:n,glyphMarginLeft:A,glyphMarginWidth:I,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:R,lineNumbersWidth:T,decorationsLeft:O,decorationsWidth:N,contentLeft:P,contentWidth:z,minimap:H,viewportColumn:j,isWordWrapMinified:B,isViewportWrapping:W,wrappingColumn:V,verticalScrollbarWidth:S,horizontalScrollbarHeight:L,overviewRuler:{top:U,width:S,height:n-2*U,right:0}}}}!function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(E||(E={}));function A(e){const t=e.get(98);return"editable"===t?e.get(91):"on"!==t}function R(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}const O="inUntrustedWorkspace",P={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function F(e,t,i){const n=i.indexOf(e);return-1===n?t:i[n]}const B={fontFamily:o.zx?"Menlo, Monaco, 'Courier New', monospace":o.j9?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:o.zx?12:14,lineHeight:0,letterSpacing:0},W=[];function V(e){return W[e.id]=e,e}const H={acceptSuggestionOnCommitCharacter:V(new v(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:l.kg("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:V(new x(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",l.kg("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:l.kg("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:V(new class extends u{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[l.kg("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),l.kg("accessibilitySupport.on","Optimize for usage with a Screen Reader."),l.kg("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:l.kg("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:V(new C(3,"accessibilityPageSize",10,1,1073741824,{description:l.kg("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:V(new S(4,"ariaLabel",l.kg("editorViewAccessibleLabel","Editor content"))),ariaRequired:V(new v(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:V(new v(8,"screenReaderAnnounceInlineSuggestion",!0,{description:l.kg("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:V(new x(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.kg("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),l.kg("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:l.kg("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:V(new x(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.kg("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),l.kg("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:l.kg("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:V(new x(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",l.kg("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:l.kg("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:V(new x(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",l.kg("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:l.kg("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:V(new x(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.kg("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),l.kg("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:l.kg("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:V(new L(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[l.kg("editor.autoIndent.none","The editor will not insert indentation automatically."),l.kg("editor.autoIndent.keep","The editor will keep the current line's indentation."),l.kg("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),l.kg("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),l.kg("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:l.kg("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:V(new v(13,"automaticLayout",!1)),autoSurround:V(new x(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[l.kg("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),l.kg("editor.autoSurround.quotes","Surround with quotes but not brackets."),l.kg("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:l.kg("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:V(new class extends u{constructor(){const e={enabled:r.R.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:r.R.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.kg("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:l.kg("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:_(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}),bracketPairGuides:V(new class extends u{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[l.kg("editor.guides.bracketPairs.true","Enables bracket pair guides."),l.kg("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),l.kg("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:l.kg("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[l.kg("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),l.kg("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),l.kg("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:l.kg("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:l.kg("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:l.kg("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[l.kg("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),l.kg("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),l.kg("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:l.kg("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{bracketPairs:F(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:F(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:_(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:_(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:F(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}),stickyTabStops:V(new v(116,"stickyTabStops",!1,{description:l.kg("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:V(new v(17,"codeLens",!0,{description:l.kg("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:V(new S(18,"codeLensFontFamily","",{description:l.kg("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:V(new C(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:l.kg("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:V(new v(20,"colorDecorators",!0,{description:l.kg("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:V(new x(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[l.kg("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),l.kg("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),l.kg("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:l.kg("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:V(new C(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:l.kg("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:V(new v(22,"columnSelection",!1,{description:l.kg("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:V(new class extends u{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:l.kg("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:l.kg("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertSpace:_(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:_(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:V(new v(24,"contextmenu",!0)),copyWithSyntaxHighlighting:V(new v(25,"copyWithSyntaxHighlighting",!0,{description:l.kg("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:V(new L(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:l.kg("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:V(new x(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[l.kg("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),l.kg("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),l.kg("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:l.kg("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:V(new L(28,"cursorStyle",D.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return D.Line;case"block":return D.Block;case"underline":return D.Underline;case"line-thin":return D.LineThin;case"block-outline":return D.BlockOutline;case"underline-thin":return D.UnderlineThin}}),{description:l.kg("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:V(new C(29,"cursorSurroundingLines",0,0,1073741824,{description:l.kg("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:V(new x(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[l.kg("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),l.kg("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:l.kg("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:V(new C(31,"cursorWidth",0,0,1073741824,{markdownDescription:l.kg("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:V(new v(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:V(new v(33,"disableMonospaceOptimizations",!1)),domReadOnly:V(new v(34,"domReadOnly",!1)),dragAndDrop:V(new v(35,"dragAndDrop",!0,{description:l.kg("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:V(new class extends v{constructor(){super(37,"emptySelectionClipboard",!0,{description:l.kg("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),dropIntoEditor:V(new class extends u{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.kg("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:l.kg("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[l.kg("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),l.kg("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showDropSelector:k(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}),stickyScroll:V(new class extends u{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:l.kg("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:l.kg("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:l.kg("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:l.kg("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),maxLineCount:C.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:k(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:_(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}),experimentalWhitespaceRendering:V(new x(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[l.kg("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),l.kg("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),l.kg("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:l.kg("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:V(new S(39,"extraEditorClassName","")),fastScrollSensitivity:V(new w(40,"fastScrollSensitivity",5,(e=>e<=0?5:e),{markdownDescription:l.kg("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:V(new class extends u{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:l.kg("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[l.kg("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),l.kg("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),l.kg("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:l.kg("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[l.kg("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),l.kg("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),l.kg("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:l.kg("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:l.kg("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:o.zx},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:l.kg("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:l.kg("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:_(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"===typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":k(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":k(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:_(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:_(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:_(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:V(new v(42,"fixedOverflowWidgets",!1)),folding:V(new v(43,"folding",!0,{description:l.kg("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:V(new x(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[l.kg("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),l.kg("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:l.kg("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:V(new v(45,"foldingHighlight",!0,{description:l.kg("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:V(new v(46,"foldingImportsByDefault",!1,{description:l.kg("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:V(new C(47,"foldingMaximumRegions",5e3,10,65e3,{description:l.kg("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:V(new v(48,"unfoldOnClickAfterEndOfLine",!1,{description:l.kg("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:V(new S(49,"fontFamily",B.fontFamily,{description:l.kg("fontFamily","Controls the font family.")})),fontInfo:V(new class extends m{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:V(new N),fontSize:V(new class extends f{constructor(){super(52,"fontSize",B.fontSize,{type:"number",minimum:6,maximum:100,default:B.fontSize,description:l.kg("fontSize","Controls the font size in pixels.")})}validate(e){const t=w.float(e,this.defaultValue);return 0===t?B.fontSize:w.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:V(new I),fontVariations:V(new T),formatOnPaste:V(new v(55,"formatOnPaste",!1,{description:l.kg("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:V(new v(56,"formatOnType",!1,{description:l.kg("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:V(new v(57,"glyphMargin",!0,{description:l.kg("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:V(new class extends u{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[l.kg("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),l.kg("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),l.kg("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:l.kg("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:l.kg("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:l.kg("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:l.kg("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:l.kg("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:l.kg("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:l.kg("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:l.kg("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:l.kg("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:l.kg("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:l.kg("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,o;if(!e||"object"!==typeof e)return this.defaultValue;const r=e;return{multiple:k(r.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=r.multipleDefinitions)&&void 0!==t?t:k(r.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(i=r.multipleTypeDefinitions)&&void 0!==i?i:k(r.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(n=r.multipleDeclarations)&&void 0!==n?n:k(r.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(s=r.multipleImplementations)&&void 0!==s?s:k(r.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(o=r.multipleReferences)&&void 0!==o?o:k(r.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:S.string(r.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:S.string(r.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:S.string(r.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:S.string(r.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:S.string(r.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:V(new v(59,"hideCursorInOverviewRuler",!1,{description:l.kg("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:V(new class extends u{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:l.kg("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:l.kg("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:l.kg("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:l.kg("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:l.kg("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),delay:C.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:_(t.sticky,this.defaultValue.sticky),hidingDelay:C.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:_(t.above,this.defaultValue.above)}}}),inDiffEditor:V(new v(61,"inDiffEditor",!1)),letterSpacing:V(new w(64,"letterSpacing",B.letterSpacing,(e=>w.clamp(e,-5,20)),{description:l.kg("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:V(new class extends u{constructor(){const e={enabled:E.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[E.Off,E.OnCode,E.On],default:e.enabled,enumDescriptions:[l.kg("editor.lightbulb.enabled.off","Disable the code action menu."),l.kg("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),l.kg("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:l.kg("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;return{enabled:k(e.enabled,this.defaultValue.enabled,[E.Off,E.OnCode,E.On])}}}),lineDecorationsWidth:V(new class extends u{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){if("string"===typeof e&&/^\d+(\.\d+)?ch$/.test(e)){return-parseFloat(e.substring(0,e.length-2))}return C.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?C.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}),lineHeight:V(new class extends w{constructor(){super(67,"lineHeight",B.lineHeight,(e=>w.clamp(e,0,150)),{markdownDescription:l.kg("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:V(new class extends u{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[l.kg("lineNumbers.off","Line numbers are not rendered."),l.kg("lineNumbers.on","Line numbers are rendered as absolute number."),l.kg("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),l.kg("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:l.kg("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:V(new C(69,"lineNumbersMinChars",5,1,300)),linkedEditing:V(new v(70,"linkedEditing",!1,{description:l.kg("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:V(new v(71,"links",!0,{description:l.kg("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:V(new x(72,"matchBrackets","always",["always","near","never"],{description:l.kg("matchBrackets","Highlight matching brackets.")})),minimap:V(new class extends u{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:l.kg("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:l.kg("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[l.kg("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),l.kg("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),l.kg("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:l.kg("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:l.kg("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:l.kg("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:l.kg("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:l.kg("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:l.kg("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:l.kg("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:l.kg("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:l.kg("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")}})}validate(e){var t;if(!e||"object"!==typeof e)return this.defaultValue;const i=e;return{enabled:_(i.enabled,this.defaultValue.enabled),autohide:_(i.autohide,this.defaultValue.autohide),size:k(i.size,this.defaultValue.size,["proportional","fill","fit"]),side:k(i.side,this.defaultValue.side,["right","left"]),showSlider:k(i.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:_(i.renderCharacters,this.defaultValue.renderCharacters),scale:C.clampedInt(i.scale,1,1,3),maxColumn:C.clampedInt(i.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:_(i.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:_(i.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:w.clamp(null!==(t=i.sectionHeaderFontSize)&&void 0!==t?t:this.defaultValue.sectionHeaderFontSize,4,32)}}}),mouseStyle:V(new x(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:V(new w(75,"mouseWheelScrollSensitivity",1,(e=>0===e?1:e),{markdownDescription:l.kg("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:V(new v(76,"mouseWheelZoom",!1,{markdownDescription:o.zx?l.kg("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):l.kg("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:V(new v(77,"multiCursorMergeOverlapping",!0,{description:l.kg("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:V(new L(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?o.zx?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[l.kg("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),l.kg("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:l.kg({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:V(new x(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[l.kg("multiCursorPaste.spread","Each cursor pastes a single line of the text."),l.kg("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:l.kg("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:V(new C(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:l.kg("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:V(new x(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[l.kg("occurrencesHighlight.off","Does not highlight occurrences."),l.kg("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),l.kg("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:l.kg("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:V(new v(82,"overviewRulerBorder",!0,{description:l.kg("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:V(new C(83,"overviewRulerLanes",3,0,3)),padding:V(new class extends u{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:l.kg("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:l.kg("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{top:C.clampedInt(t.top,0,0,1e3),bottom:C.clampedInt(t.bottom,0,0,1e3)}}}),pasteAs:V(new class extends u{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.kg("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:l.kg("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[l.kg("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),l.kg("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showPasteSelector:k(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}),parameterHints:V(new class extends u{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:l.kg("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:l.kg("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),cycle:_(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:V(new x(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[l.kg("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),l.kg("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:l.kg("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:V(new v(88,"definitionLinkOpensInPeek",!1,{description:l.kg("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:V(new class extends u{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[l.kg("on","Quick suggestions show inside the suggest widget"),l.kg("inline","Quick suggestions show as ghost text"),l.kg("off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:l.kg("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:l.kg("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:l.kg("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:l.kg("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if("boolean"===typeof e){const t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!==typeof e)return this.defaultValue;const{other:t,comments:i,strings:n}=e,s=["on","inline","off"];let o,r,a;return o="boolean"===typeof t?t?"on":"off":k(t,this.defaultValue.other,s),r="boolean"===typeof i?i?"on":"off":k(i,this.defaultValue.comments,s),a="boolean"===typeof n?n?"on":"off":k(n,this.defaultValue.strings,s),{other:o,comments:r,strings:a}}}),quickSuggestionsDelay:V(new C(90,"quickSuggestionsDelay",10,0,1073741824,{description:l.kg("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:V(new v(91,"readOnly",!1)),readOnlyMessage:V(new class extends u{constructor(){super(92,"readOnlyMessage",undefined)}validate(e){return e&&"object"===typeof e?e:this.defaultValue}}),renameOnType:V(new v(93,"renameOnType",!1,{description:l.kg("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:l.kg("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:V(new v(94,"renderControlCharacters",!0,{description:l.kg("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:V(new x(95,"renderFinalNewline",o.j9?"dimmed":"on",["off","on","dimmed"],{description:l.kg("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:V(new x(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",l.kg("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:l.kg("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:V(new v(97,"renderLineHighlightOnlyWhenFocus",!1,{description:l.kg("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:V(new x(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:V(new x(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",l.kg("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),l.kg("renderWhitespace.selection","Render whitespace characters only on selected text."),l.kg("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:l.kg("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:V(new C(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:V(new v(101,"roundedSelection",!0,{description:l.kg("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:V(new class extends u{constructor(){const e=[],t={type:"number",description:l.kg("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:l.kg("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:l.kg("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if("number"===typeof i)t.push({column:C.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"===typeof i){const e=i;t.push({column:C.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort(((e,t)=>e.column-t.column)),t}return this.defaultValue}}),scrollbar:V(new class extends u{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[l.kg("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),l.kg("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),l.kg("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:l.kg("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[l.kg("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),l.kg("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),l.kg("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:l.kg("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:l.kg("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:l.kg("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:l.kg("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:l.kg("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e,i=C.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=C.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:C.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:R(t.vertical,this.defaultValue.vertical),horizontal:R(t.horizontal,this.defaultValue.horizontal),useShadows:_(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:_(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:_(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:_(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:_(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:C.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:C.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:_(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:_(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}),scrollBeyondLastColumn:V(new C(104,"scrollBeyondLastColumn",4,0,1073741824,{description:l.kg("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:V(new v(105,"scrollBeyondLastLine",!0,{description:l.kg("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:V(new v(106,"scrollPredominantAxis",!0,{description:l.kg("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:V(new v(107,"selectionClipboard",!0,{description:l.kg("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:o.j9})),selectionHighlight:V(new v(108,"selectionHighlight",!0,{description:l.kg("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:V(new v(109,"selectOnLineNumbers",!0)),showFoldingControls:V(new x(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[l.kg("showFoldingControls.always","Always show the folding controls."),l.kg("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),l.kg("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:l.kg("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:V(new v(111,"showUnused",!0,{description:l.kg("showUnused","Controls fading out of unused code.")})),showDeprecated:V(new v(140,"showDeprecated",!0,{description:l.kg("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:V(new class extends u{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:l.kg("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[l.kg("editor.inlayHints.on","Inlay hints are enabled"),l.kg("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",o.zx?"Ctrl+Option":"Ctrl+Alt"),l.kg("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",o.zx?"Ctrl+Option":"Ctrl+Alt"),l.kg("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:l.kg("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:l.kg("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:l.kg("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return"boolean"===typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:k(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:C.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:S.string(t.fontFamily,this.defaultValue.fontFamily),padding:_(t.padding,this.defaultValue.padding)}}}),snippetSuggestions:V(new x(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[l.kg("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),l.kg("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),l.kg("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),l.kg("snippetSuggestions.none","Do not show snippet suggestions.")],description:l.kg("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:V(new class extends u{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:l.kg("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:l.kg("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"===typeof e?{selectLeadingAndTrailingWhitespace:_(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:_(e.selectSubwords,this.defaultValue.selectSubwords)}:this.defaultValue}}),smoothScrolling:V(new v(114,"smoothScrolling",!1,{description:l.kg("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:V(new C(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:V(new class extends u{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[l.kg("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),l.kg("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:l.kg("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:l.kg("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:l.kg("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:l.kg("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[l.kg("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),l.kg("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),l.kg("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),l.kg("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:l.kg("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:l.kg("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:l.kg("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:l.kg("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:l.kg("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:l.kg("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:l.kg("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:l.kg("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertMode:k(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:_(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:_(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:_(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:_(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:k(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:_(t.showIcons,this.defaultValue.showIcons),showStatusBar:_(t.showStatusBar,this.defaultValue.showStatusBar),preview:_(t.preview,this.defaultValue.preview),previewMode:k(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:_(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:_(t.showMethods,this.defaultValue.showMethods),showFunctions:_(t.showFunctions,this.defaultValue.showFunctions),showConstructors:_(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:_(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:_(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:_(t.showFields,this.defaultValue.showFields),showVariables:_(t.showVariables,this.defaultValue.showVariables),showClasses:_(t.showClasses,this.defaultValue.showClasses),showStructs:_(t.showStructs,this.defaultValue.showStructs),showInterfaces:_(t.showInterfaces,this.defaultValue.showInterfaces),showModules:_(t.showModules,this.defaultValue.showModules),showProperties:_(t.showProperties,this.defaultValue.showProperties),showEvents:_(t.showEvents,this.defaultValue.showEvents),showOperators:_(t.showOperators,this.defaultValue.showOperators),showUnits:_(t.showUnits,this.defaultValue.showUnits),showValues:_(t.showValues,this.defaultValue.showValues),showConstants:_(t.showConstants,this.defaultValue.showConstants),showEnums:_(t.showEnums,this.defaultValue.showEnums),showEnumMembers:_(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:_(t.showKeywords,this.defaultValue.showKeywords),showWords:_(t.showWords,this.defaultValue.showWords),showColors:_(t.showColors,this.defaultValue.showColors),showFiles:_(t.showFiles,this.defaultValue.showFiles),showReferences:_(t.showReferences,this.defaultValue.showReferences),showFolders:_(t.showFolders,this.defaultValue.showFolders),showTypeParameters:_(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:_(t.showSnippets,this.defaultValue.showSnippets),showUsers:_(t.showUsers,this.defaultValue.showUsers),showIssues:_(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:V(new class extends u{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:l.kg("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[l.kg("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),l.kg("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),l.kg("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:l.kg("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:l.kg("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:l.kg("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),mode:k(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:k(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:_(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:S.string(t.fontFamily,this.defaultValue.fontFamily)}}}),inlineEdit:V(new class extends u{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:l.kg("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[l.kg("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),l.kg("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),l.kg("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:l.kg("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:l.kg("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:l.kg("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showToolbar:k(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:S.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:_(t.backgroundColoring,this.defaultValue.backgroundColoring)}}}),inlineCompletionsAccessibilityVerbose:V(new v(149,"inlineCompletionsAccessibilityVerbose",!1,{description:l.kg("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:V(new C(119,"suggestFontSize",0,0,1e3,{markdownDescription:l.kg("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:V(new C(120,"suggestLineHeight",0,0,1e3,{markdownDescription:l.kg("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:V(new v(121,"suggestOnTriggerCharacters",!0,{description:l.kg("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:V(new x(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[l.kg("suggestSelection.first","Always select the first suggestion."),l.kg("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),l.kg("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:l.kg("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:V(new x(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[l.kg("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),l.kg("tabCompletion.off","Disable tab completions."),l.kg("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:l.kg("tabCompletion","Enables tab completions.")})),tabIndex:V(new C(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:V(new class extends u{constructor(){const e={nonBasicASCII:O,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:O,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[P.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,O],default:e.nonBasicASCII,description:l.kg("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[P.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:l.kg("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[P.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:l.kg("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[P.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,O],default:e.includeComments,description:l.kg("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[P.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,O],default:e.includeStrings,description:l.kg("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[P.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:l.kg("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[P.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:l.kg("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(s.aI(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(s.aI(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const n=super.applyUpdate(e,t);return i?new g(n.newValue,!0):n}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{nonBasicASCII:F(t.nonBasicASCII,O,[!0,!1,O]),invisibleCharacters:_(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:_(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:F(t.includeComments,O,[!0,!1,O]),includeStrings:F(t.includeStrings,O,[!0,!1,O]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if("object"!==typeof e||!e)return t;const i={};for(const[n,s]of Object.entries(e))!0===s&&(i[n]=!0);return i}}),unusualLineTerminators:V(new x(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[l.kg("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),l.kg("unusualLineTerminators.off","Unusual line terminators are ignored."),l.kg("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:l.kg("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:V(new v(127,"useShadowDOM",!0)),useTabStops:V(new v(128,"useTabStops",!0,{description:l.kg("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:V(new x(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[l.kg("wordBreak.normal","Use the default line break rule."),l.kg("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:l.kg("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:V(new class extends u{constructor(){super(130,"wordSegmenterLocales",[],{anyOf:[{description:l.kg("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:l.kg("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if("string"===typeof e&&(e=[e]),Array.isArray(e)){const i=[];for(const n of e)if("string"===typeof n)try{Intl.Segmenter.supportedLocalesOf(n).length>0&&i.push(n)}catch(t){}return i}return this.defaultValue}}),wordSeparators:V(new S(131,"wordSeparators",a.J3,{description:l.kg("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:V(new x(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[l.kg("wordWrap.off","Lines will never wrap."),l.kg("wordWrap.on","Lines will wrap at the viewport width."),l.kg({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),l.kg({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:l.kg({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:V(new S(133,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63")),wordWrapBreakBeforeCharacters:V(new S(134,"wordWrapBreakBeforeCharacters","([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b")),wordWrapColumn:V(new C(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:l.kg({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:V(new x(136,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:V(new x(137,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:V(new class extends m{constructor(){super(142)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(74)?n.push("mouse-default"):"copy"===t.get(74)&&n.push("mouse-copy"),t.get(111)&&n.push("showUnused"),t.get(140)&&n.push("showDeprecated"),n.join(" ")}}),defaultColorDecorators:V(new v(147,"defaultColorDecorators",!1,{markdownDescription:l.kg("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:V(new class extends m{constructor(){super(143)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:V(new v(144,"tabFocusMode",!1,{markdownDescription:l.kg("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:V(new M),wrappingInfo:V(new class extends m{constructor(){super(146)}compute(e,t,i){const n=t.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}),wrappingIndent:V(new class extends u{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[l.kg("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),l.kg("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),l.kg("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),l.kg("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:l.kg("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return 2===t.get(2)?0:i}}),wrappingStrategy:V(new class extends u{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[l.kg("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),l.kg("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:l.kg("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return k(e,"simple",["simple","advanced"])}compute(e,t,i){return 2===t.get(2)?"advanced":i}})}},79027:(e,t,i)=>{"use strict";i.d(t,{D:()=>s});var n=i(41234);const s=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new n.vl,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},74196:(e,t,i)=>{"use strict";i.d(t,{YJ:()=>l,_8:()=>a});var n=i(98067),s=i(87908),o=i(79027);const r=n.zx?1.5:1.35;class a{static createFromValidatedSettings(e,t,i){const n=e.get(49),s=e.get(53),o=e.get(52),r=e.get(51),l=e.get(54),d=e.get(67),h=e.get(64);return a._create(n,s,o,r,l,d,h,t,i)}static _create(e,t,i,n,l,d,h,c,u){0===d?d=r*i:d<8&&(d*=i),(d=Math.round(d))<8&&(d=8);const g=1+(u?0:.1*o.D.getZoomLevel());if(i*=g,d*=g,l===s.r_.TRANSLATE)if("normal"===t||"bold"===t)l=s.r_.OFF;else{l=`'wght' ${parseInt(t,10)}`,t="normal"}return new a({pixelRatio:c,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:n,fontVariationSettings:l,lineHeight:d,letterSpacing:h})}constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.fontVariationSettings=e.fontVariationSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const e=s.jU.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class l extends a{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=2,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.fontVariationSettings===e.fontVariationSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},60534:(e,t,i)=>{"use strict";i.d(t,{V:()=>s,y:()=>o});var n=i(85152);class s{constructor(e){const t=(0,n.W)(e);this._defaultValue=t,this._asciiMap=s._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const i=(0,n.W)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class o{constructor(){this._actual=new s(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}clear(){return this._actual.clear()}}},1245:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(91508);class s{static _nextVisibleColumn(e,t,i){return 9===e?s.nextRenderTabStop(t,i):n.ne(e)||n.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,i){const s=Math.min(t-1,e.length),o=e.substring(0,s),r=new n.km(o);let a=0;for(;!r.eol();){const e=n.Z5(o,s,r.offset);r.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,i)}return a}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;const s=e.length,o=new n.km(e);let r=0,a=1;for(;!o.eol();){const l=n.Z5(e,s,o.offset);o.nextGraphemeLength();const d=this._nextVisibleColumn(l,r,i),h=o.offset+1;if(d>=t){return d-t<t-r?h:a}r=d,a=h}return s+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}},7085:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});var n=i(36677);class s{static insert(e,t){return{range:new n.Q(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}},87119:(e,t,i)=>{"use strict";i.d(t,{A3:()=>E,AQ:()=>V,Am:()=>L,As:()=>T,BD:()=>X,Bo:()=>Y,CM:()=>k,D0:()=>d,H0:()=>x,I2:()=>Q,IW:()=>J,If:()=>Z,JB:()=>M,L0:()=>p,Mf:()=>l,P1:()=>se,Pe:()=>ie,Qt:()=>f,WD:()=>ne,WS:()=>te,WY:()=>oe,Xr:()=>R,aZ:()=>W,bB:()=>ee,hz:()=>y,je:()=>u,kG:()=>a,kM:()=>h,l5:()=>U,lQ:()=>z,n4:()=>q,ob:()=>C,ow:()=>w,s7:()=>$,sC:()=>c,sH:()=>K,sN:()=>H,ss:()=>j,tK:()=>D,tp:()=>N,vP:()=>S,vV:()=>b,vp:()=>F,w4:()=>m,we:()=>g,x9:()=>A,yI:()=>B,yw:()=>O,zp:()=>G});var n=i(31629),s=i(47661),o=i(85845),r=i(47612);const a=(0,o.x1A)("editor.lineHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},n.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=(0,o.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:o.b1q},n.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),d=((0,o.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},n.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,o.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:o.buw,hcLight:o.buw},n.kg("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),(0,o.x1A)("editor.symbolHighlightBackground",{dark:o.Ubg,light:o.Ubg,hcDark:null,hcLight:null},n.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,o.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:o.buw,hcLight:o.buw},n.kg("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),(0,o.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:s.Q1.black,hcDark:s.Q1.white,hcLight:"#0F4A85"},n.kg("caret","Color of the editor cursor."))),h=(0,o.x1A)("editorCursor.background",null,n.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),c=(0,o.x1A)("editorMultiCursor.primary.foreground",{dark:d,light:d,hcDark:d,hcLight:d},n.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),u=(0,o.x1A)("editorMultiCursor.primary.background",{dark:h,light:h,hcDark:h,hcLight:h},n.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),g=(0,o.x1A)("editorMultiCursor.secondary.foreground",{dark:d,light:d,hcDark:d,hcLight:d},n.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),p=(0,o.x1A)("editorMultiCursor.secondary.background",{dark:h,light:h,hcDark:h,hcLight:h},n.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,o.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},n.kg("editorWhitespaces","Color of whitespace characters in the editor.")),f=(0,o.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:s.Q1.white,hcLight:"#292929"},n.kg("editorLineNumbers","Color of editor line numbers.")),_=(0,o.x1A)("editorIndentGuide.background",{dark:m,light:m,hcDark:m,hcLight:m},n.kg("editorIndentGuides","Color of the editor indentation guides."),!1,n.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),v=(0,o.x1A)("editorIndentGuide.activeBackground",{dark:m,light:m,hcDark:m,hcLight:m},n.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,n.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),b=(0,o.x1A)("editorIndentGuide.background1",{dark:_,light:_,hcDark:_,hcLight:_},n.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),C=(0,o.x1A)("editorIndentGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),y=(0,o.x1A)("editorIndentGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),w=(0,o.x1A)("editorIndentGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),S=(0,o.x1A)("editorIndentGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),k=(0,o.x1A)("editorIndentGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),x=(0,o.x1A)("editorIndentGuide.activeBackground1",{dark:v,light:v,hcDark:v,hcLight:v},n.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),L=(0,o.x1A)("editorIndentGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),D=(0,o.x1A)("editorIndentGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),E=(0,o.x1A)("editorIndentGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),N=(0,o.x1A)("editorIndentGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),T=(0,o.x1A)("editorIndentGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),I=(0,o.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:o.buw,hcLight:o.buw},n.kg("editorActiveLineNumber","Color of editor active line number"),!1,n.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),M=((0,o.x1A)("editorLineNumber.activeForeground",{dark:I,light:I,hcDark:I,hcLight:I},n.kg("editorActiveLineNumber","Color of editor active line number")),(0,o.x1A)("editorLineNumber.dimmedForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed."))),A=((0,o.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:s.Q1.lightgrey,hcDark:s.Q1.white,hcLight:"#292929"},n.kg("editorRuler","Color of the editor rulers.")),(0,o.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},n.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,o.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},n.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,o.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:o.b1q,hcLight:o.b1q},n.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,o.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},n.kg("editorOverviewRulerBorder","Color of the overview ruler border."))),R=(0,o.x1A)("editorOverviewRuler.background",null,n.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),O=((0,o.x1A)("editorGutter.background",{dark:o.YtV,light:o.YtV,hcDark:o.YtV,hcLight:o.YtV},n.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,o.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#fff").transparent(.8),hcLight:o.b1q},n.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,o.x1A)("editorUnnecessaryCode.opacity",{dark:s.Q1.fromHex("#000a"),light:s.Q1.fromHex("#0007"),hcDark:null,hcLight:null},n.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out."))),P=((0,o.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#fff").transparent(.8),hcLight:s.Q1.fromHex("#292929").transparent(.8)},n.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,o.x1A)("editorGhostText.foreground",{dark:s.Q1.fromHex("#ffffff56"),light:s.Q1.fromHex("#0007"),hcDark:null,hcLight:null},n.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,o.x1A)("editorGhostText.background",{dark:null,light:null,hcDark:null,hcLight:null},n.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new s.Q1(new s.bU(0,122,204,.6))),F=(0,o.x1A)("editorOverviewRuler.rangeHighlightForeground",{dark:P,light:P,hcDark:P,hcLight:P},n.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),B=(0,o.x1A)("editorOverviewRuler.errorForeground",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},n.kg("overviewRuleError","Overview ruler marker color for errors.")),W=(0,o.x1A)("editorOverviewRuler.warningForeground",{dark:o.Hng,light:o.Hng,hcDark:o.Stt,hcLight:o.Stt},n.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),V=(0,o.x1A)("editorOverviewRuler.infoForeground",{dark:o.pOz,light:o.pOz,hcDark:o.IIb,hcLight:o.IIb},n.kg("overviewRuleInfo","Overview ruler marker color for infos.")),H=(0,o.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},n.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),z=(0,o.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},n.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),j=(0,o.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},n.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),U=(0,o.x1A)("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),K=(0,o.x1A)("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),G=(0,o.x1A)("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),$=(0,o.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new s.Q1(new s.bU(255,18,18,.8)),light:new s.Q1(new s.bU(255,18,18,.8)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:""},n.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),q=(0,o.x1A)("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),Q=(0,o.x1A)("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),Y=(0,o.x1A)("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),Z=(0,o.x1A)("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),X=(0,o.x1A)("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),J=(0,o.x1A)("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),ee=(0,o.x1A)("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),te=(0,o.x1A)("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),ie=(0,o.x1A)("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),ne=(0,o.x1A)("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),se=(0,o.x1A)("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),oe=(0,o.x1A)("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,o.x1A)("editorUnicodeHighlight.border",{dark:o.Hng,light:o.Hng,hcDark:o.Hng,hcLight:o.Hng},n.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,o.x1A)("editorUnicodeHighlight.background",{dark:o.whs,light:o.whs,hcDark:o.whs,hcLight:o.whs},n.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,r.zy)(((e,t)=>{const i=e.getColor(o.YtV),n=e.getColor(a),s=n&&!n.isTransparent()?n:i;s&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${s}; }`)}))},64454:(e,t,i)=>{"use strict";function n(e){let t=0,i=0,n=0,s=0;for(let o=0,r=e.length;o<r;o++){const a=e.charCodeAt(o);13===a?(0===t&&(i=o),t++,o+1<r&&10===e.charCodeAt(o+1)?(s|=2,o++):s|=3,n=o+1):10===a&&(s|=1,0===t&&(i=o),t++,n=o+1)}return 0===t&&(i=e.length),[t,i,e.length-n,s]}i.d(t,{W:()=>n})},93895:(e,t,i)=>{"use strict";i.d(t,{P:()=>o});var n=i(91508),s=i(1245);function o(e,t,i){let o=n.HG(e);return-1===o&&(o=e.length),function(e,t,i){let n=0;for(let r=0;r<e.length;r++)"\t"===e.charAt(r)?n=s.A.nextIndentTabStop(n,t):n++;let o="";if(!i){const e=Math.floor(n/t);n%=t;for(let t=0;t<e;t++)o+="\t"}for(let s=0;s<n;s++)o+=" ";return o}(e.substring(0,o),t,i)+e.substring(o)}},86571:(e,t,i)=>{"use strict";i.d(t,{M:()=>a,S:()=>l});var n=i(64383),s=i(74444),o=i(36677),r=i(46041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let i=1;i<e.length;i++)t=t.getUnion(new l(e[i].slice()));return t.ranges}static join(e){if(0===e.length)throw new n.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,i=e[0].endLineNumberExclusive;for(let n=1;n<e.length;n++)t=Math.min(t,e[n].startLineNumber),i=Math.max(i,e[n].endLineNumberExclusive);return new a(t,i)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new n.D7(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=i)return new a(t,i)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new o.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new o.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let i=this.startLineNumber;i<this.endLineNumberExclusive;i++)t.push(e(i));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new s.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,r.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,r.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)this._normalizedRanges.splice(t,0,e);else if(t===i-1){const i=this._normalizedRanges[t];this._normalizedRanges[t]=i.join(e)}else{const n=this._normalizedRanges[t].join(this._normalizedRanges[i-1]).join(e);this._normalizedRanges.splice(t,i-t,n)}}contains(e){const t=(0,r.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,r.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let i=0,n=0,s=null;for(;i<this._normalizedRanges.length||n<e._normalizedRanges.length;){let o=null;if(i<this._normalizedRanges.length&&n<e._normalizedRanges.length){const t=this._normalizedRanges[i],s=e._normalizedRanges[n];t.startLineNumber<s.startLineNumber?(o=t,i++):(o=s,n++)}else i<this._normalizedRanges.length?(o=this._normalizedRanges[i],i++):(o=e._normalizedRanges[n],n++);null===s?s=o:s.endLineNumberExclusive>=o.startLineNumber?s=new a(s.startLineNumber,Math.max(s.endLineNumberExclusive,o.endLineNumberExclusive)):(t.push(s),s=o)}return null!==s&&t.push(s),new l(t)}subtractFrom(e){const t=(0,r.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,r.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)return new l([e]);const n=[];let s=e.startLineNumber;for(let o=t;o<i;o++){const e=this._normalizedRanges[o];e.startLineNumber>s&&n.push(new a(s,e.startLineNumber)),s=e.endLineNumberExclusive}return s<e.endLineNumberExclusive&&n.push(new a(s,e.endLineNumberExclusive)),new l(n)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let i=0,n=0;for(;i<this._normalizedRanges.length&&n<e._normalizedRanges.length;){const s=this._normalizedRanges[i],o=e._normalizedRanges[n],r=s.intersect(o);r&&!r.isEmpty&&t.push(r),s.endLineNumberExclusive<o.endLineNumberExclusive?i++:n++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},74444:(e,t,i)=>{"use strict";i.d(t,{L:()=>s,h:()=>o});var n=i(64383);class s{static addRange(e,t){let i=0;for(;i<t.length&&t[i].endExclusive<e.start;)i++;let n=i;for(;n<t.length&&t[n].start<=e.endExclusive;)n++;if(i===n)t.splice(i,0,e);else{const o=Math.min(e.start,t[i].start),r=Math.max(e.endExclusive,t[n-1].endExclusive);t.splice(i,n-i,new s(o,r))}}static tryCreate(e,t){if(!(e>t))return new s(e,t)}static ofLength(e){return new s(0,e)}static ofStartAndLength(e,t){return new s(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new n.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new s(this.start+e,this.endExclusive+e)}deltaStart(e){return new s(this.start+e,this.endExclusive)}deltaEnd(e){return new s(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new s(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);if(t<=i)return new s(t,i)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new n.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new n.D7(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}class o{constructor(){this._sortedRanges=[]}addRange(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<e.start;)t++;let i=t;for(;i<this._sortedRanges.length&&this._sortedRanges[i].start<=e.endExclusive;)i++;if(t===i)this._sortedRanges.splice(t,0,e);else{const n=Math.min(e.start,this._sortedRanges[t].start),o=Math.max(e.endExclusive,this._sortedRanges[i-1].endExclusive);this._sortedRanges.splice(t,i-t,new s(n,o))}}toString(){return this._sortedRanges.map((e=>e.toString())).join(", ")}intersectsStrict(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<=e.start;)t++;return t<this._sortedRanges.length&&this._sortedRanges[t].start<e.endExclusive}intersectWithRange(e){const t=new o;for(const i of this._sortedRanges){const n=i.intersect(e);n&&t.addRange(n)}return t}intersectWithRangeLength(e){return this.intersectWithRange(e).length}get length(){return this._sortedRanges.reduce(((e,t)=>e+t.length),0)}}},83069:(e,t,i)=>{"use strict";i.d(t,{y:()=>n});class n{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new n(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return n.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return n.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return n.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const i=0|e.lineNumber,n=0|t.lineNumber;if(i===n){return(0|e.column)-(0|t.column)}return i-n}clone(){return new n(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new n(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},36677:(e,t,i)=>{"use strict";i.d(t,{Q:()=>s});var n=i(83069);class s{constructor(e,t,i,n){e>i||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return s.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return s.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return s.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return s.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return s.plusRange(this,e)}static plusRange(e,t){let i,n,o,r;return t.startLineNumber<e.startLineNumber?(i=t.startLineNumber,n=t.startColumn):t.startLineNumber===e.startLineNumber?(i=t.startLineNumber,n=Math.min(t.startColumn,e.startColumn)):(i=e.startLineNumber,n=e.startColumn),t.endLineNumber>e.endLineNumber?(o=t.endLineNumber,r=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,r=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,r=e.endColumn),new s(i,n,o,r)}intersectRanges(e){return s.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,r=e.endColumn;const a=t.startLineNumber,l=t.startColumn,d=t.endLineNumber,h=t.endColumn;return i<a?(i=a,n=l):i===a&&(n=Math.max(n,l)),o>d?(o=d,r=h):o===d&&(r=Math.min(r,h)),i>o||i===o&&n>r?null:new s(i,n,o,r)}equalsRange(e){return s.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return s.getEndPosition(this)}static getEndPosition(e){return new n.y(e.endLineNumber,e.endColumn)}getStartPosition(){return s.getStartPosition(this)}static getStartPosition(e){return new n.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new s(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new s(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return s.collapseToStart(this)}static collapseToStart(e){return new s(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return s.collapseToEnd(this)}static collapseToEnd(e){return new s(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new s(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const i=0|e.startLineNumber,n=0|t.startLineNumber;if(i===n){const i=0|e.startColumn,n=0|t.startColumn;if(i===n){const i=0|e.endLineNumber,n=0|t.endLineNumber;if(i===n){return(0|e.endColumn)-(0|t.endColumn)}return i-n}return i-n}return i-n}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}},75326:(e,t,i)=>{"use strict";i.d(t,{L:()=>o});var n=i(83069),s=i(36677);class o extends s.Q{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return o.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new o(this.startLineNumber,this.startColumn,e,t):new o(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new n.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new n.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new o(e,t,this.endLineNumber,this.endColumn):new o(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new o(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new o(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new o(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i<n;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,i,n,s){return 0===s?new o(e,t,i,n):new o(i,n,e,t)}}},99020:(e,t,i)=>{"use strict";i.d(t,{Su:()=>c,b7:()=>h,fe:()=>u});var n=i(91508),s=i(98067),o=i(81674);let r,a,l;function d(){return r||(r=new TextDecoder("UTF-16LE")),r}function h(){return l||(l=s.cm()?d():(a||(a=new TextDecoder("UTF-16BE")),a)),l}function c(e,t,i){const n=new Uint16Array(e.buffer,t,i);return i>0&&(65279===n[0]||65534===n[0])?function(e,t,i){const n=[];let s=0;for(let r=0;r<i;r++){const i=o.$l(e,t);t+=2,n[s++]=String.fromCharCode(i)}return n.join("")}(e,t,i):d().decode(n)}class u{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return h().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||n.pc(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let i=0;i<t;i++)this._buffer[this._bufferLength++]=e.charCodeAt(i)}}},64829:(e,t,i)=>{"use strict";i.d(t,{k:()=>r,x:()=>a});var n=i(81674),s=i(99020);function o(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class r{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${o(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${o(this.oldText)}")`:`(replace@${this.oldPosition} "${o(this.oldText)}" with "${o(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const s=t.length;n.Sw(e,s,i),i+=4;for(let o=0;o<s;o++)n.gN(e,t.charCodeAt(o),i),i+=2;return i}static _readString(e,t){const i=n.bb(e,t);return t+=4,(0,s.Su)(e,t,i)}writeSize(){return 8+r._writeStringSize(this.oldText)+r._writeStringSize(this.newText)}write(e,t){return n.Sw(e,this.oldPosition,t),t+=4,n.Sw(e,this.newPosition,t),t+=4,t=r._writeString(e,this.oldText,t),t=r._writeString(e,this.newText,t)}static read(e,t,i){const s=n.bb(e,t);t+=4;const o=n.bb(e,t);t+=4;const a=r._readString(e,t);t+=r._writeStringSize(a);const l=r._readString(e,t);return t+=r._writeStringSize(l),i.push(new r(s,a,o,l)),t}}function a(e,t){if(null===e||0===e.length)return t;return new l(e,t).compress()}class l{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,i=this._getPrev(e),n=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===i){this._acceptCurr(n),n=this._getCurr(++t);continue}if(null===n){this._acceptPrev(i),i=this._getPrev(++e);continue}if(n.oldEnd<=i.newPosition){this._acceptCurr(n),n=this._getCurr(++t);continue}if(i.newEnd<=n.oldPosition){this._acceptPrev(i),i=this._getPrev(++e);continue}if(n.oldPosition<i.newPosition){const[e,t]=l._splitCurr(n,i.newPosition-n.oldPosition);this._acceptCurr(e),n=t;continue}if(i.newPosition<n.oldPosition){const[e,t]=l._splitPrev(i,n.oldPosition-i.newPosition);this._acceptPrev(e),i=t;continue}let s,o;if(n.oldEnd===i.newEnd)s=i,o=n,i=this._getPrev(++e),n=this._getCurr(++t);else if(n.oldEnd<i.newEnd){const[e,r]=l._splitPrev(i,n.oldLength);s=e,o=n,i=r,n=this._getCurr(++t)}else{const[t,r]=l._splitCurr(n,i.newLength);s=i,o=t,i=this._getPrev(++e),n=r}this._result[this._resultLen++]=new r(s.oldPosition,s.oldText,o.newPosition,o.newText),this._prevDeltaOffset+=s.newLength-s.oldLength,this._currDeltaOffset+=o.newLength-o.oldLength}const s=l._merge(this._result);return l._removeNoOps(s)}_acceptCurr(e){this._result[this._resultLen++]=l._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=l._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new r(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new r(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const i=e.newText.substr(0,t),n=e.newText.substr(t);return[new r(e.oldPosition,e.oldText,e.newPosition,i),new r(e.oldEnd,"",e.newPosition+t,n)]}static _splitCurr(e,t){const i=e.oldText.substr(0,t),n=e.oldText.substr(t);return[new r(e.oldPosition,i,e.newPosition,e.newText),new r(e.oldPosition+t,n,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let i=0,n=e[0];for(let s=1;s<e.length;s++){const o=e[s];n.oldEnd===o.oldPosition?n=new r(n.oldPosition,n.oldText+o.oldText,n.newPosition,n.newText+o.newText):(t[i++]=n,n=o)}return t[i++]=n,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let i=0;for(let n=0;n<e.length;n++){const s=e[n];s.oldText!==s.newText&&(t[i++]=s)}return t}}},75295:(e,t,i)=>{"use strict";i.d(t,{CO:()=>g,WR:()=>c,mF:()=>h});var n=i(66782),s=i(64383),o=i(83069),r=i(74444),a=i(50973);class l{constructor(e){this.text=e,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t<e.length;t++)"\n"===e.charAt(t)&&this.lineStartOffsetByLineIdx.push(t+1)}getOffset(e){return this.lineStartOffsetByLineIdx[e.lineNumber-1]+e.column-1}getOffsetRange(e){return new r.L(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new a.W(e,this.text.length-this.lineStartOffsetByLineIdx[e])}}var d=i(36677);class h{constructor(e){this.edits=e,(0,n.Ft)((()=>(0,n.Xo)(e,((e,t)=>e.range.getEndPosition().isBeforeOrEqual(t.range.getStartPosition())))))}apply(e){let t="",i=new o.y(1,1);for(const s of this.edits){const n=s.range,o=n.getStartPosition(),r=n.getEndPosition(),a=u(i,o);a.isEmpty()||(t+=e.getValueOfRange(a)),t+=s.text,i=r}const n=u(i,e.endPositionExclusive);return n.isEmpty()||(t+=e.getValueOfRange(n)),t}applyToString(e){const t=new p(e);return this.apply(t)}getNewRanges(){const e=[];let t=0,i=0,n=0;for(const s of this.edits){const r=a.W.ofText(s.text),l=o.y.lift({lineNumber:s.range.startLineNumber+i,column:s.range.startColumn+(s.range.startLineNumber===t?n:0)}),d=r.createRange(l);e.push(d),i=d.endLineNumber-s.range.endLineNumber,n=d.endColumn-s.range.endColumn,t=s.range.endLineNumber}return e}}class c{constructor(e,t){this.range=e,this.text=t}}function u(e,t){if(!e.isBeforeOrEqual(t))throw new s.D7("start must be before end");return new d.Q(e.lineNumber,e.column,t.lineNumber,t.column)}class g{get endPositionExclusive(){return this.length.addToPosition(new o.y(1,1))}}class p extends g{constructor(e){super(),this.value=e,this._t=new l(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}},50973:(e,t,i)=>{"use strict";i.d(t,{W:()=>o});var n=i(83069),s=i(36677);class o{static ofText(e){let t=0,i=0;for(const n of e)"\n"===n?(t++,i=0):i++;return new o(t,i)}constructor(e,t){this.lineCount=e,this.columnCount=t}createRange(e){return 0===this.lineCount?new s.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new s.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new n.y(e.lineNumber,e.column+this.columnCount):new n.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}o.zero=new o(0,0)},24329:(e,t,i)=>{"use strict";i.d(t,{R:()=>n});const n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},81782:(e,t,i)=>{"use strict";i.d(t,{i:()=>a});var n=i(74320),s=i(60534);class o extends s.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let i=0,n=e.length;i<n;i++)this.set(e.charCodeAt(i),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let i=null;for(const n of this._getIntlSegmenterWordsOnLine(e)){if(n.index>t)break;i=n}return i}findNextIntlWordAtOrAfterOffset(e,t){for(const i of this._getIntlSegmenterWordsOnLine(e))if(!(i.index<t))return i;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const i of e)this._isWordLike(i)&&t.push(i);return t}_isWordLike(e){return!!e.isWordLike}}const r=new n.qK(10);function a(e,t){const i=`${e}/${t.join(",")}`;let n=r.get(i);return n||(n=new o(e,t),r.set(i,n)),n}},26486:(e,t,i)=>{"use strict";i.d(t,{Io:()=>a,J3:()=>o,Ld:()=>r,Th:()=>d});var n=i(42522),s=i(58925);const o="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";const r=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const i of o)e.indexOf(i)>=0||(t+="\\"+i);return t+="\\s]+)",new RegExp(t,"g")}();function a(e){let t=r;if(e&&e instanceof RegExp)if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}return t.lastIndex=0,t}const l=new s.w;function d(e,t,i,s,o){if(t=a(t),o||(o=n.f.first(l)),i.length>o.maxLen){let n=e-o.maxLen/2;return n<0?n=0:s+=n,d(e,t,i=i.substring(n,e+o.maxLen/2),s,o)}const r=Date.now(),c=e-1-s;let u=-1,g=null;for(let n=1;!(Date.now()-r>=o.timeBudget);n++){const e=c-o.windowSize*n;t.lastIndex=Math.max(0,e);const s=h(t,i,c,u);if(!s&&g)break;if(g=s,e<=0)break;u=e}if(g){const e={word:g[0],startColumn:s+1+g.index,endColumn:s+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function h(e,t,i,n){let s;for(;s=e.exec(t);){const t=s.index||0;if(t<=i&&e.lastIndex>=i)return s;if(n>0&&t>n)return null}return null}l.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},35817:(e,t,i)=>{"use strict";i.d(t,{s:()=>s});var n=i(1245);class s{static whitespaceVisibleColumn(e,t,i){const s=e.length;let o=0,r=-1,a=-1;for(let l=0;l<s;l++){if(l===t)return[r,a,o];o%i===0&&(r=l,a=o);switch(e.charCodeAt(l)){case 32:o+=1;break;case 9:o=n.A.nextRenderTabStop(o,i);break;default:return[-1,-1,-1]}}return t===s?[r,a,o]:[-1,-1,-1]}static atomicPosition(e,t,i,o){const r=e.length,[a,l,d]=s.whitespaceVisibleColumn(e,t,i);if(-1===d)return-1;let h;switch(o){case 0:h=!0;break;case 1:h=!1;break;case 2:if(d%i===0)return t;h=d%i<=i/2}if(h){if(-1===a)return-1;let t=l;for(let s=a;s<r;++s){if(t===l+i)return a;switch(e.charCodeAt(s)){case 32:t+=1;break;case 9:t=n.A.nextRenderTabStop(t,i);break;default:return-1}}return t===l+i?a:-1}const c=n.A.nextRenderTabStop(d,i);let u=d;for(let s=t;s<r;s++){if(u===c)return s;switch(e.charCodeAt(s)){case 32:u+=1;break;case 9:u=n.A.nextRenderTabStop(u,i);break;default:return-1}}return u===c?r:-1}}},1226:(e,t,i)=>{"use strict";i.d(t,{g:()=>h});var n=i(91508),s=i(15092),o=i(32799),r=i(1245),a=i(94564),l=i(36677),d=i(83069);class h{static deleteRight(e,t,i,n){const o=[];let r=3!==e;for(let d=0,h=n.length;d<h;d++){const e=n[d];let h=e;if(h.isEmpty()){const n=e.getPosition(),s=a.I.right(t,i,n);h=new l.Q(s.lineNumber,s.column,n.lineNumber,n.column)}h.isEmpty()?o[d]=null:(h.startLineNumber!==h.endLineNumber&&(r=!0),o[d]=new s.iu(h,""))}return[r,o]}static isAutoClosingPairDelete(e,t,i,n,s,r,a){if("never"===t&&"never"===i)return!1;if("never"===e)return!1;for(let l=0,d=r.length;l<d;l++){const d=r[l],h=d.getPosition();if(!d.isEmpty())return!1;const c=s.getLineContent(h.lineNumber);if(h.column<2||h.column>=c.length+1)return!1;const u=c.charAt(h.column-2),g=n.get(u);if(!g)return!1;if((0,o.vG)(u)){if("never"===i)return!1}else if("never"===t)return!1;const p=c.charAt(h.column-1);let m=!1;for(const e of g)e.open===u&&e.close===p&&(m=!0);if(!m)return!1;if("auto"===e){let e=!1;for(let t=0,i=a.length;t<i;t++){const i=a[t];if(h.lineNumber===i.startLineNumber&&h.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingPairDelete(e,t,i){const n=[];for(let o=0,r=i.length;o<r;o++){const e=i[o].getPosition(),t=new l.Q(e.lineNumber,e.column-1,e.lineNumber,e.column+1);n[o]=new s.iu(t,"")}return[!0,n]}static deleteLeft(e,t,i,n,o){if(this.isAutoClosingPairDelete(t.autoClosingDelete,t.autoClosingBrackets,t.autoClosingQuotes,t.autoClosingPairs.autoClosingPairsOpenByEnd,i,n,o))return this._runAutoClosingPairDelete(t,i,n);const r=[];let a=2!==e;for(let l=0,d=n.length;l<d;l++){const e=h.getDeleteRange(n[l],i,t);e.isEmpty()?r[l]=null:(e.startLineNumber!==e.endLineNumber&&(a=!0),r[l]=new s.iu(e,""))}return[a,r]}static getDeleteRange(e,t,i){if(!e.isEmpty())return e;const s=e.getPosition();if(i.useTabStops&&s.column>1){const e=t.getLineContent(s.lineNumber),o=n.HG(e),a=-1===o?e.length+1:o+1;if(s.column<=a){const e=i.visibleColumnFromColumn(t,s),n=r.A.prevIndentTabStop(e,i.indentSize),o=i.columnFromVisibleColumn(t,s.lineNumber,n);return new l.Q(s.lineNumber,o,s.lineNumber,s.column)}}return l.Q.fromPositions(h.getPositionAfterDeleteLeft(s,t),s)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=n.Wd(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}if(e.lineNumber>1){const i=e.lineNumber-1;return new d.y(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){const n=[];let r=null;i.sort(((e,t)=>d.y.compare(e.getStartPosition(),t.getEndPosition())));for(let o=0,a=i.length;o<a;o++){const a=i[o];if(a.isEmpty())if(e.emptySelectionClipboard){const e=a.getPosition();let i,d,h,c;e.lineNumber<t.getLineCount()?(i=e.lineNumber,d=1,h=e.lineNumber+1,c=1):e.lineNumber>1&&(null===r||void 0===r?void 0:r.endLineNumber)!==e.lineNumber?(i=e.lineNumber-1,d=t.getLineMaxColumn(e.lineNumber-1),h=e.lineNumber,c=t.getLineMaxColumn(e.lineNumber)):(i=e.lineNumber,d=1,h=e.lineNumber,c=t.getLineMaxColumn(e.lineNumber));const u=new l.Q(i,d,h,c);r=u,u.isEmpty()?n[o]=null:n[o]=new s.iu(u,"")}else n[o]=null;else n[o]=new s.iu(a,"")}return new o.vY(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},50672:(e,t,i)=>{"use strict";i.d(t,{S:()=>n,c:()=>h});var n,s=i(631),o=i(32799),r=i(94564),a=i(97681),l=i(83069),d=i(36677);class h{static addCursorDown(e,t,i){const n=[];let s=0;for(let a=0,l=t.length;a<l;a++){const l=t[a];n[s++]=new o.MF(l.modelState,l.viewState),n[s++]=i?o.MF.fromModelState(r.I.translateDown(e.cursorConfig,e.model,l.modelState)):o.MF.fromViewState(r.I.translateDown(e.cursorConfig,e,l.viewState))}return n}static addCursorUp(e,t,i){const n=[];let s=0;for(let a=0,l=t.length;a<l;a++){const l=t[a];n[s++]=new o.MF(l.modelState,l.viewState),n[s++]=i?o.MF.fromModelState(r.I.translateUp(e.cursorConfig,e.model,l.modelState)):o.MF.fromViewState(r.I.translateUp(e.cursorConfig,e,l.viewState))}return n}static moveToBeginningOfLine(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s];n[s]=this._moveToLineStart(e,o,i)}return n}static _moveToLineStart(e,t,i){const n=t.viewState.position.column,s=n===t.modelState.position.column,o=t.viewState.position.lineNumber,r=e.getLineFirstNonWhitespaceColumn(o);return s||n===r?this._moveToLineStartByModel(e,t,i):this._moveToLineStartByView(e,t,i)}static _moveToLineStartByView(e,t,i){return o.MF.fromViewState(r.I.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,i))}static _moveToLineStartByModel(e,t,i){return o.MF.fromModelState(r.I.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,i))}static moveToEndOfLine(e,t,i,n){const s=[];for(let o=0,r=t.length;o<r;o++){const r=t[o];s[o]=this._moveToLineEnd(e,r,i,n)}return s}static _moveToLineEnd(e,t,i,n){const s=t.viewState.position,o=e.getLineMaxColumn(s.lineNumber),r=s.column===o,a=t.modelState.position,l=e.model.getLineMaxColumn(a.lineNumber),d=o-s.column===l-a.column;return r||d?this._moveToLineEndByModel(e,t,i,n):this._moveToLineEndByView(e,t,i,n)}static _moveToLineEndByView(e,t,i,n){return o.MF.fromViewState(r.I.moveToEndOfLine(e.cursorConfig,e,t.viewState,i,n))}static _moveToLineEndByModel(e,t,i,n){return o.MF.fromModelState(r.I.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,i,n))}static expandLineSelection(e,t){const i=[];for(let n=0,s=t.length;n<s;n++){const s=t[n],r=s.modelState.selection.startLineNumber,a=e.model.getLineCount();let h,c=s.modelState.selection.endLineNumber;c===a?h=e.model.getLineMaxColumn(a):(c++,h=1),i[n]=o.MF.fromModelState(new o.mG(new d.Q(r,1,r,1),0,0,new l.y(c,h),0))}return i}static moveToBeginningOfBuffer(e,t,i){const n=[];for(let s=0,a=t.length;s<a;s++){const a=t[s];n[s]=o.MF.fromModelState(r.I.moveToBeginningOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return n}static moveToEndOfBuffer(e,t,i){const n=[];for(let s=0,a=t.length;s<a;s++){const a=t[s];n[s]=o.MF.fromModelState(r.I.moveToEndOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return n}static selectAll(e,t){const i=e.model.getLineCount(),n=e.model.getLineMaxColumn(i);return o.MF.fromModelState(new o.mG(new d.Q(1,1,1,1),0,0,new l.y(i,n),0))}static line(e,t,i,n,s){const r=e.model.validatePosition(n),a=s?e.coordinatesConverter.validateViewPosition(new l.y(s.lineNumber,s.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);if(!i){const t=e.model.getLineCount();let i=r.lineNumber+1,n=1;return i>t&&(i=t,n=e.model.getLineMaxColumn(i)),o.MF.fromModelState(new o.mG(new d.Q(r.lineNumber,1,i,n),2,0,new l.y(i,n),0))}const h=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumber<h)return o.MF.fromViewState(t.viewState.move(!0,a.lineNumber,1,0));if(r.lineNumber>h){const i=e.getLineCount();let n=a.lineNumber+1,s=1;return n>i&&(n=i,s=e.getLineMaxColumn(n)),o.MF.fromViewState(t.viewState.move(!0,n,s,0))}{const e=t.modelState.selectionStart.getEndPosition();return o.MF.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,i,n){const s=e.model.validatePosition(n);return o.MF.fromModelState(a.z.word(e.cursorConfig,e.model,t.modelState,i,s))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new o.MF(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,n=t.viewState.position.column;return o.MF.fromViewState(new o.mG(new d.Q(i,n,i,n),0,0,new l.y(i,n),0))}static moveTo(e,t,i,n,s){if(i){if(1===t.modelState.selectionStartKind)return this.word(e,t,i,n);if(2===t.modelState.selectionStartKind)return this.line(e,t,i,n,s)}const r=e.model.validatePosition(n),a=s?e.coordinatesConverter.validateViewPosition(new l.y(s.lineNumber,s.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);return o.MF.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,n,s,a){switch(i){case 0:return 4===a?this._moveHalfLineLeft(e,t,n):this._moveLeft(e,t,n,s);case 1:return 4===a?this._moveHalfLineRight(e,t,n):this._moveRight(e,t,n,s);case 2:return 2===a?this._moveUpByViewLines(e,t,n,s):this._moveUpByModelLines(e,t,n,s);case 3:return 2===a?this._moveDownByViewLines(e,t,n,s):this._moveDownByModelLines(e,t,n,s);case 4:return 2===a?t.map((t=>o.MF.fromViewState(r.I.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>o.MF.fromModelState(r.I.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 5:return 2===a?t.map((t=>o.MF.fromViewState(r.I.moveToNextBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>o.MF.fromModelState(r.I.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,s){const o=e.getCompletelyVisibleViewRange(),r=e.coordinatesConverter.convertViewRangeToModelRange(o);switch(i){case 11:{const i=this._firstLineNumberInRange(e.model,r,s),o=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,o)]}case 13:{const i=this._lastLineNumberInRange(e.model,r,s),o=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,o)]}case 12:{const i=Math.round((r.startLineNumber+r.endLineNumber)/2),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 14:{const i=[];for(let s=0,r=t.length;s<r;s++){const r=t[s];i[s]=this.findPositionInViewportIfOutside(e,r,o,n)}return i}default:return null}}static findPositionInViewportIfOutside(e,t,i,n){const s=t.viewState.position.lineNumber;if(i.startLineNumber<=s&&s<=i.endLineNumber-1)return new o.MF(t.modelState,t.viewState);{let a;a=s>i.endLineNumber-1?i.endLineNumber-1:s<i.startLineNumber?i.startLineNumber:s;const l=r.I.vertical(e.cursorConfig,e,s,t.viewState.position.column,t.viewState.leftoverVisibleColumns,a,!1);return o.MF.fromViewState(t.viewState.move(n,l.lineNumber,l.column,l.leftoverVisibleColumns))}}static _firstLineNumberInRange(e,t,i){let n=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(n)&&n++,Math.min(t.endLineNumber,n+i-1)}static _lastLineNumberInRange(e,t,i){let n=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(n)&&n++,Math.max(n,t.endLineNumber-i+1)}static _moveLeft(e,t,i,n){return t.map((t=>o.MF.fromViewState(r.I.moveLeft(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineLeft(e,t,i){const n=[];for(let s=0,a=t.length;s<a;s++){const a=t[s],l=a.viewState.position.lineNumber,d=Math.round(e.getLineLength(l)/2);n[s]=o.MF.fromViewState(r.I.moveLeft(e.cursorConfig,e,a.viewState,i,d))}return n}static _moveRight(e,t,i,n){return t.map((t=>o.MF.fromViewState(r.I.moveRight(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineRight(e,t,i){const n=[];for(let s=0,a=t.length;s<a;s++){const a=t[s],l=a.viewState.position.lineNumber,d=Math.round(e.getLineLength(l)/2);n[s]=o.MF.fromViewState(r.I.moveRight(e.cursorConfig,e,a.viewState,i,d))}return n}static _moveDownByViewLines(e,t,i,n){const s=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];s[a]=o.MF.fromViewState(r.I.moveDown(e.cursorConfig,e,l.viewState,i,n))}return s}static _moveDownByModelLines(e,t,i,n){const s=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];s[a]=o.MF.fromModelState(r.I.moveDown(e.cursorConfig,e.model,l.modelState,i,n))}return s}static _moveUpByViewLines(e,t,i,n){const s=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];s[a]=o.MF.fromViewState(r.I.moveUp(e.cursorConfig,e,l.viewState,i,n))}return s}static _moveUpByModelLines(e,t,i,n){const s=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];s[a]=o.MF.fromModelState(r.I.moveUp(e.cursorConfig,e.model,l.modelState,i,n))}return s}static _moveToViewPosition(e,t,i,n,s){return o.MF.fromViewState(t.viewState.move(i,n,s,0))}static _moveToModelPosition(e,t,i,n,s){return o.MF.fromModelState(t.modelState.move(i,n,s,0))}static _moveToViewMinColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=e.getLineMinColumn(r);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}static _moveToViewFirstNonWhitespaceColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=e.getLineFirstNonWhitespaceColumn(r);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}static _moveToViewCenterColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=Math.round((e.getLineMaxColumn(r)+e.getLineMinColumn(r))/2);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}static _moveToViewMaxColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=e.getLineMaxColumn(r);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}static _moveToViewLastNonWhitespaceColumn(e,t,i){const n=[];for(let s=0,o=t.length;s<o;s++){const o=t[s],r=o.viewState.position.lineNumber,a=e.getLineLastNonWhitespaceColumn(r);n[s]=this._moveToViewPosition(e,o,i,r,a)}return n}}!function(e){e.metadata={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){if(!s.Gv(e))return!1;const t=e;return!!s.Kg(t.to)&&(!(!s.b0(t.select)&&!s.Lm(t.select))&&(!(!s.b0(t.by)&&!s.Kg(t.by))&&!(!s.b0(t.value)&&!s.Et(t.value))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=function(t){if(!t.to)return null;let i;switch(t.to){case e.RawDirection.Left:i=0;break;case e.RawDirection.Right:i=1;break;case e.RawDirection.Up:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.PrevBlankLine:i=4;break;case e.RawDirection.NextBlankLine:i=5;break;case e.RawDirection.WrappedLineStart:i=6;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:i=7;break;case e.RawDirection.WrappedLineColumnCenter:i=8;break;case e.RawDirection.WrappedLineEnd:i=9;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:i=10;break;case e.RawDirection.ViewPortTop:i=11;break;case e.RawDirection.ViewPortBottom:i=13;break;case e.RawDirection.ViewPortCenter:i=12;break;case e.RawDirection.ViewPortIfOutside:i=14;break;default:return null}let n=0;switch(t.by){case e.RawUnit.Line:n=1;break;case e.RawUnit.WrappedLine:n=2;break;case e.RawUnit.Character:n=3;break;case e.RawUnit.HalfLine:n=4}return{direction:i,unit:n,select:!!t.select,value:t.value||1}}}(n||(n={}))},94564:(e,t,i)=>{"use strict";i.d(t,{I:()=>h});var n=i(91508),s=i(1245),o=i(83069),r=i(36677),a=i(35817),l=i(32799);class d{constructor(e,t,i){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=i}}class h{static leftPosition(e,t){if(t.column>e.getLineMinColumn(t.lineNumber))return t.delta(void 0,-n.MV(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new o.y(i,e.getLineMaxColumn(i))}return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const n=e.getLineMinColumn(t.lineNumber),s=e.getLineContent(t.lineNumber),r=a.s.atomicPosition(s,t.column-1,i,0);if(-1!==r&&r+1>=n)return new o.y(t.lineNumber,r+1)}return this.leftPosition(e,t)}static left(e,t,i){const n=e.stickyTabStops?h.leftPositionAtomicSoftTabs(t,i,e.tabSize):h.leftPosition(t,i);return new d(n.lineNumber,n.column,0)}static moveLeft(e,t,i,n,s){let o,r;if(i.hasSelection()&&!n)o=i.selection.startLineNumber,r=i.selection.startColumn;else{const n=i.position.delta(void 0,-(s-1)),a=t.normalizePosition(h.clipPositionColumn(n,t),0),l=h.left(e,t,a);o=l.lineNumber,r=l.column}return i.move(n,o,r,0)}static clipPositionColumn(e,t){return new o.y(e.lineNumber,h.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return e<t?t:e>i?i:e}static rightPosition(e,t,i){return i<e.getLineMaxColumn(t)?i+=n.iy(e.getLineContent(t),i-1):t<e.getLineCount()&&(t+=1,i=e.getLineMinColumn(t)),new o.y(t,i)}static rightPositionAtomicSoftTabs(e,t,i,n,s){if(i<e.getLineIndentColumn(t)){const s=e.getLineContent(t),r=a.s.atomicPosition(s,i-1,n,1);if(-1!==r)return new o.y(t,r+1)}return this.rightPosition(e,t,i)}static right(e,t,i){const n=e.stickyTabStops?h.rightPositionAtomicSoftTabs(t,i.lineNumber,i.column,e.tabSize,e.indentSize):h.rightPosition(t,i.lineNumber,i.column);return new d(n.lineNumber,n.column,0)}static moveRight(e,t,i,n,s){let o,r;if(i.hasSelection()&&!n)o=i.selection.endLineNumber,r=i.selection.endColumn;else{const n=i.position.delta(void 0,s-1),a=t.normalizePosition(h.clipPositionColumn(n,t),1),l=h.right(e,t,a);o=l.lineNumber,r=l.column}return i.move(n,o,r,0)}static vertical(e,t,i,n,r,a,l,h){const c=s.A.visibleColumnFromColumn(t.getLineContent(i),n,e.tabSize)+r,u=t.getLineCount(),g=1===i&&1===n,p=i===u&&n===t.getLineMaxColumn(i),m=a<i?g:p;if((i=a)<1?(i=1,n=l?t.getLineMinColumn(i):Math.min(t.getLineMaxColumn(i),n)):i>u?(i=u,n=l?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),n)):n=e.columnFromVisibleColumn(t,i,c),r=m?0:c-s.A.visibleColumnFromColumn(t.getLineContent(i),n,e.tabSize),void 0!==h){const e=new o.y(i,n),s=t.normalizePosition(e,h);r+=n-s.column,i=s.lineNumber,n=s.column}return new d(i,n,r)}static down(e,t,i,n,s,o,r){return this.vertical(e,t,i,n,s,i+o,r,4)}static moveDown(e,t,i,n,s){let r,a;i.hasSelection()&&!n?(r=i.selection.endLineNumber,a=i.selection.endColumn):(r=i.position.lineNumber,a=i.position.column);let l,d=0;do{l=h.down(e,t,r+d,a,i.leftoverVisibleColumns,s,!0);if(t.normalizePosition(new o.y(l.lineNumber,l.column),2).lineNumber>r)break}while(d++<10&&r+d<t.getLineCount());return i.move(n,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateDown(e,t,i){const n=i.selection,s=h.down(e,t,n.selectionStartLineNumber,n.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.down(e,t,n.positionLineNumber,n.positionColumn,i.leftoverVisibleColumns,1,!1);return new l.mG(new r.Q(s.lineNumber,s.column,s.lineNumber,s.column),0,s.leftoverVisibleColumns,new o.y(a.lineNumber,a.column),a.leftoverVisibleColumns)}static up(e,t,i,n,s,o,r){return this.vertical(e,t,i,n,s,i-o,r,3)}static moveUp(e,t,i,n,s){let o,r;i.hasSelection()&&!n?(o=i.selection.startLineNumber,r=i.selection.startColumn):(o=i.position.lineNumber,r=i.position.column);const a=h.up(e,t,o,r,i.leftoverVisibleColumns,s,!0);return i.move(n,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(e,t,i){const n=i.selection,s=h.up(e,t,n.selectionStartLineNumber,n.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.up(e,t,n.positionLineNumber,n.positionColumn,i.leftoverVisibleColumns,1,!1);return new l.mG(new r.Q(s.lineNumber,s.column,s.lineNumber,s.column),0,s.leftoverVisibleColumns,new o.y(a.lineNumber,a.column),a.leftoverVisibleColumns)}static _isBlankLine(e,t){return 0===e.getLineFirstNonWhitespaceColumn(t)}static moveToPrevBlankLine(e,t,i,n){let s=i.position.lineNumber;for(;s>1&&this._isBlankLine(t,s);)s--;for(;s>1&&!this._isBlankLine(t,s);)s--;return i.move(n,s,t.getLineMinColumn(s),0)}static moveToNextBlankLine(e,t,i,n){const s=t.getLineCount();let o=i.position.lineNumber;for(;o<s&&this._isBlankLine(t,o);)o++;for(;o<s&&!this._isBlankLine(t,o);)o++;return i.move(n,o,t.getLineMinColumn(o),0)}static moveToBeginningOfLine(e,t,i,n){const s=i.position.lineNumber,o=t.getLineMinColumn(s),r=t.getLineFirstNonWhitespaceColumn(s)||o;let a;return a=i.position.column===r?o:r,i.move(n,s,a,0)}static moveToEndOfLine(e,t,i,n,s){const o=i.position.lineNumber,r=t.getLineMaxColumn(o);return i.move(n,o,r,s?1073741824-r:0)}static moveToBeginningOfBuffer(e,t,i,n){return i.move(n,1,1,0)}static moveToEndOfBuffer(e,t,i,n){const s=t.getLineCount(),o=t.getLineMaxColumn(s);return i.move(n,s,o,0)}}},56441:(e,t,i)=>{"use strict";i.d(t,{vS:()=>y,TK:()=>b,yl:()=>C});var n=i(64383),s=i(91508),o=i(15092),r=i(7936),a=i(36677),l=i(75326);class d{constructor(e,t,i){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=i}getEditOperations(e,t){t.addTrackedEditOperation(new a.Q(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a.Q(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){const i=t.getInverseEditOperations(),n=i[0].range,s=i[1].range;return new l.L(n.endLineNumber,n.endColumn,s.endLineNumber,s.endColumn-this._charAfterSelection.length)}}class h{constructor(e,t,i){this._position=e,this._text=t,this._charAfter=i}getEditOperations(e,t){t.addTrackedEditOperation(new a.Q(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return new l.L(i.endLineNumber,i.startColumn,i.endLineNumber,i.endColumn-this._charAfter.length)}}var c=i(32799),u=i(81782),g=i(83069),p=i(38566),m=i(17469),f=i(12296),_=i(82365),v=i(63346);class b{static indent(e,t,i){if(null===t||null===i)return[];const n=[];for(let s=0,o=i.length;s<o;s++)n[s]=new r.Y(i[s],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static outdent(e,t,i){const n=[];for(let s=0,o=i.length;s<o;s++)n[s]=new r.Y(i[s],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static shiftIndent(e,t,i){return i=i||1,r.Y.shiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}static unshiftIndent(e,t,i){return i=i||1,r.Y.unshiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}static _distributedPaste(e,t,i,n){const s=[];for(let r=0,a=i.length;r<a;r++)s[r]=new o.iu(i[r],n[r]);return new c.vY(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,i,n,s){const r=[];for(let l=0,d=i.length;l<d;l++){const e=i[l],t=e.getPosition();if(s&&!e.isEmpty()&&(s=!1),s&&n.indexOf("\n")!==n.length-1&&(s=!1),s){const i=new a.Q(t.lineNumber,1,t.lineNumber,1);r[l]=new o.ui(i,n,e,!0)}else r[l]=new o.iu(e,n)}return new c.vY(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(e,t,i,n,o){if(n)return null;if(1===t.length)return null;if(o&&o.length===t.length)return o;if("spread"===e.multiCursorPaste){10===i.charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1)),13===i.charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1));const e=s.uz(i);if(e.length===t.length)return e}return null}static paste(e,t,i,n,s,o){const r=this._distributePasteToCursors(e,i,n,s,o);return r?(i=i.sort(a.Q.compareRangesUsingStarts),this._distributedPaste(e,t,i,r)):this._simplePaste(e,t,i,n,s)}static _goodIndentForLine(e,t,i){let n=null,o="";const r=(0,_.vn)(e.autoIndent,t,i,!1,e.languageConfigurationService);if(r)n=r.action,o=r.indentation;else if(i>1){let n;for(n=i-1;n>=1;n--){const e=t.getLineContent(n);if(s.lT(e)>=0)break}if(n<1)return null;const r=t.getLineMaxColumn(n),l=(0,v.h)(e.autoIndent,t,new a.Q(n,r,n,r),e.languageConfigurationService);l&&(o=l.indentation+l.appendText)}return n&&(n===p.l.Indent&&(o=b.shiftIndent(e,o)),n===p.l.Outdent&&(o=b.unshiftIndent(e,o)),o=e.normalizeIndentation(o)),o||null}static _replaceJumpToNextIndent(e,t,i,n){let s="";const r=i.getStartPosition();if(e.insertSpaces){const i=e.visibleColumnFromColumn(t,r),n=e.indentSize,o=n-i%n;for(let e=0;e<o;e++)s+=" "}else s="\t";return new o.iu(i,s,n)}static tab(e,t,i){const n=[];for(let s=0,l=i.length;s<l;s++){const l=i[s];if(l.isEmpty()){const i=t.getLineContent(l.startLineNumber);if(/^\s*$/.test(i)&&t.tokenization.isCheapToTokenize(l.startLineNumber)){let r=this._goodIndentForLine(e,t,l.startLineNumber);r=r||"\t";const d=e.normalizeIndentation(r);if(!i.startsWith(d)){n[s]=new o.iu(new a.Q(l.startLineNumber,1,l.startLineNumber,i.length+1),d,!0);continue}}n[s]=this._replaceJumpToNextIndent(e,t,l,!0)}else{if(l.startLineNumber===l.endLineNumber){const i=t.getLineMaxColumn(l.startLineNumber);if(1!==l.startColumn||l.endColumn!==i){n[s]=this._replaceJumpToNextIndent(e,t,l,!1);continue}}n[s]=new r.Y(l,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService)}}return n}static compositionType(e,t,i,n,s,o,r,a){const l=n.map((e=>this._compositionType(i,e,s,o,r,a)));return new c.vY(4,l,{shouldPushStackElementBefore:S(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,s,r){if(!t.isEmpty())return null;const l=t.getPosition(),d=Math.max(1,l.column-n),h=Math.min(e.getLineMaxColumn(l.lineNumber),l.column+s),c=new a.Q(l.lineNumber,d,l.lineNumber,h);return e.getValueInRange(c)===i&&0===r?null:new o.iP(c,i,0,r)}static _typeCommand(e,t,i){return i?new o.q2(e,t,!0):new o.iu(e,t,!0)}static _enter(e,t,i,n){if(0===e.autoIndent)return b._typeCommand(n,"\n",i);if(!t.tokenization.isCheapToTokenize(n.getStartPosition().lineNumber)||1===e.autoIndent){const o=t.getLineContent(n.startLineNumber),r=s.UU(o).substring(0,n.startColumn-1);return b._typeCommand(n,"\n"+e.normalizeIndentation(r),i)}const r=(0,v.h)(e.autoIndent,t,n,e.languageConfigurationService);if(r){if(r.indentAction===p.l.None)return b._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===p.l.Indent)return b._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===p.l.IndentOutdent){const t=e.normalizeIndentation(r.indentation),s=e.normalizeIndentation(r.indentation+r.appendText),a="\n"+s+"\n"+t;return i?new o.q2(n,a,!0):new o.iP(n,a,-1,s.length-t.length,!0)}if(r.indentAction===p.l.Outdent){const t=b.unshiftIndent(e,r.indentation);return b._typeCommand(n,"\n"+e.normalizeIndentation(t+r.appendText),i)}}const a=t.getLineContent(n.startLineNumber),l=s.UU(a).substring(0,n.startColumn-1);if(e.autoIndent>=4){const r=(0,_.MU)(e.autoIndent,t,n,{unshiftIndent:t=>b.unshiftIndent(e,t),shiftIndent:t=>b.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(r){let a=e.visibleColumnFromColumn(t,n.getEndPosition());const l=n.endColumn,d=t.getLineContent(n.endLineNumber),h=s.HG(d);if(n=h>=0?n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,h+1)):n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new o.q2(n,"\n"+e.normalizeIndentation(r.afterEnter),!0);{let t=0;return l<=h+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(r.afterEnter).length-1,0)),new o.iP(n,"\n"+e.normalizeIndentation(r.afterEnter),0,t,!0)}}}return b._typeCommand(n,"\n"+e.normalizeIndentation(l),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let n=0,s=i.length;n<s;n++)if(!t.tokenization.isCheapToTokenize(i[n].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(e,t,i,n){const s=(0,m.Cw)(t,i.startLineNumber,i.startColumn),o=(0,_._t)(e.autoIndent,t,i,n,{shiftIndent:t=>b.shiftIndent(e,t),unshiftIndent:t=>b.unshiftIndent(e,t)},e.languageConfigurationService);if(null===o)return null;if(o!==e.normalizeIndentation(s)){const s=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===s?b._typeCommand(new a.Q(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(o)+n,!1):b._typeCommand(new a.Q(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(o)+t.getLineContent(i.startLineNumber).substring(s-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,s){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(s))return!1;for(let o=0,r=i.length;o<r;o++){const r=i[o];if(!r.isEmpty())return!1;const a=r.getPosition(),l=t.getLineContent(a.lineNumber);if(l.charAt(a.column-1)!==s)return!1;const d=(0,c.vG)(s);if(92===(a.column>2?l.charCodeAt(a.column-2):0)&&d)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=n.length;t<i;t++){const i=n[t];if(a.lineNumber===i.startLineNumber&&a.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingOvertype(e,t,i,n,s){const r=[];for(let l=0,d=n.length;l<d;l++){const e=n[l].getPosition(),t=new a.Q(e.lineNumber,e.column,e.lineNumber,e.column+1);r[l]=new o.iu(t,s)}return new c.vY(4,r,{shouldPushStackElementBefore:S(e,4),shouldPushStackElementAfter:!1})}static _isBeforeClosingBrace(e,t){const i=t.charAt(0),n=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[],s=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],o=n.some((e=>t.startsWith(e.open))),r=s.some((e=>t.startsWith(e.close)));return!o&&r}static _findAutoClosingPairOpen(e,t,i,n){const s=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!s)return null;let o=null;for(const r of s)if(null===o||r.open.length>o.open.length){let e=!0;for(const s of i){if(t.getValueInRange(new a.Q(s.lineNumber,s.column-r.open.length+1,s.lineNumber,s.column))+n!==r.open){e=!1;break}}e&&(o=r)}return o}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let s=null;for(const o of n)o.open!==t.open&&t.open.includes(o.open)&&t.close.endsWith(o.close)&&(!s||o.open.length>s.open.length)&&(s=o);return s}static _getAutoClosingPairClose(e,t,i,n,s){for(const c of i)if(!c.isEmpty())return null;const o=i.map((e=>{const t=e.getPosition();return s?{lineNumber:t.lineNumber,beforeColumn:t.column-n.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}})),r=this._findAutoClosingPairOpen(e,t,o.map((e=>new g.y(e.lineNumber,e.beforeColumn))),n);if(!r)return null;let a,l;if((0,c.vG)(n))a=e.autoClosingQuotes,l=e.shouldAutoCloseBefore.quote;else{!!e.blockCommentStartToken&&r.open.includes(e.blockCommentStartToken)?(a=e.autoClosingComments,l=e.shouldAutoCloseBefore.comment):(a=e.autoClosingBrackets,l=e.shouldAutoCloseBefore.bracket)}if("never"===a)return null;const d=this._findContainedAutoClosingPair(e,r),h=d?d.close:"";let p=!0;for(const c of o){const{lineNumber:i,beforeColumn:s,afterColumn:o}=c,d=t.getLineContent(i),g=d.substring(0,s-1),m=d.substring(o-1);if(m.startsWith(h)||(p=!1),m.length>0){const t=m.charAt(0);if(!b._isBeforeClosingBrace(e,m)&&!l(t))return null}if(1===r.open.length&&("'"===n||'"'===n)&&"always"!==a){const t=(0,u.i)(e.wordSeparators,[]);if(g.length>0){const e=g.charCodeAt(g.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(i))return null;t.tokenization.forceTokenization(i);const _=t.tokenization.getLineTokens(i),v=(0,f.BQ)(_,s-1);if(!r.shouldAutoClose(v,s-v.firstCharOffset))return null;const C=r.findNeutralCharacter();if(C){const e=t.tokenization.getTokenTypeIfInsertingCharacter(i,s,C);if(!r.isOK(e))return null}}return p?r.close.substring(0,r.close.length-h.length):r.close}static _runAutoClosingOpenCharType(e,t,i,n,s,o,r){const a=[];for(let l=0,d=n.length;l<d;l++){const e=n[l];a[l]=new C(e,s,!o,r)}return new c.vY(4,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _shouldSurroundChar(e,t){return(0,c.vG)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}static _isSurroundSelectionType(e,t,i,n){if(!b._shouldSurroundChar(e,n)||!e.surroundingPairs.hasOwnProperty(n))return!1;const s=(0,c.vG)(n);for(const o of i){if(o.isEmpty())return!1;let e=!0;for(let i=o.startLineNumber;i<=o.endLineNumber;i++){const n=t.getLineContent(i),s=i===o.startLineNumber?o.startColumn-1:0,r=i===o.endLineNumber?o.endColumn-1:n.length,a=n.substring(s,r);if(/[^ \t]/.test(a)){e=!1;break}}if(e)return!1;if(s&&o.startLineNumber===o.endLineNumber&&o.startColumn+1===o.endColumn){const e=t.getValueInRange(o);if((0,c.vG)(e))return!1}}return!0}static _runSurroundSelectionType(e,t,i,n,s){const o=[];for(let r=0,a=n.length;r<a;r++){const e=n[r],i=t.surroundingPairs[s];o[r]=new d(e,s,i)}return new c.vY(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isTypeInterceptorElectricChar(e,t,i){return!(1!==i.length||!t.tokenization.isCheapToTokenize(i[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(e,t,i,r,l){if(!t.electricChars.hasOwnProperty(l)||!r.isEmpty())return null;const d=r.getPosition();i.tokenization.forceTokenization(d.lineNumber);const h=i.tokenization.getLineTokens(d.lineNumber);let u;try{u=t.onElectricCharacter(l,h,d.column)}catch(g){return(0,n.dz)(g),null}if(!u)return null;if(u.matchOpenBracket){const n=(h.getLineContent()+l).lastIndexOf(u.matchOpenBracket)+1,r=i.bracketPairs.findMatchingBracketUp(u.matchOpenBracket,{lineNumber:d.lineNumber,column:n},500);if(r){if(r.startLineNumber===d.lineNumber)return null;const n=i.getLineContent(r.startLineNumber),h=s.UU(n),u=t.normalizeIndentation(h),g=i.getLineContent(d.lineNumber),p=i.getLineFirstNonWhitespaceColumn(d.lineNumber)||d.column,m=u+g.substring(p-1,d.column-1)+l,f=new a.Q(d.lineNumber,1,d.lineNumber,d.column),_=new o.iu(f,m);return new c.vY(w(m,e),[_],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}static compositionEndWithInterceptors(e,t,i,n,s,r){if(!n)return null;let l=null;for(const o of n)if(null===l)l=o.insertedText;else if(l!==o.insertedText)return null;if(!l||1!==l.length)return null;const d=l;let u=!1;for(const o of n)if(0!==o.deletedText.length){u=!0;break}if(u){if(!b._shouldSurroundChar(t,d)||!t.surroundingPairs.hasOwnProperty(d))return null;const e=(0,c.vG)(d);for(const t of n){if(0!==t.deletedSelectionStart||t.deletedSelectionEnd!==t.deletedText.length)return null;if(/^[ \t]+$/.test(t.deletedText))return null;if(e&&(0,c.vG)(t.deletedText))return null}const i=[];for(const t of s){if(!t.isEmpty())return null;i.push(t.getPosition())}if(i.length!==n.length)return null;const o=[];for(let s=0,r=i.length;s<r;s++)o.push(new h(i[s],n[s].deletedText,t.surroundingPairs[d]));return new c.vY(4,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(t,i,s,r,d)){const e=s.map((e=>new o.iu(new a.Q(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)));return new c.vY(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const g=this._getAutoClosingPairClose(t,i,s,d,!0);return null!==g?this._runAutoClosingOpenCharType(e,t,i,s,d,!0,g):null}static typeWithInterceptors(e,t,i,n,s,r,a){if(!e&&"\n"===a){const e=[];for(let t=0,o=s.length;t<o;t++)e[t]=b._enter(i,n,!1,s[t]);return new c.vY(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoIndentType(i,n,s)){const e=[];let t=!1;for(let o=0,r=s.length;o<r;o++)if(e[o]=this._runAutoIndentType(i,n,s[o],a),!e[o]){t=!0;break}if(!t)return new c.vY(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(i,n,s,r,a))return this._runAutoClosingOvertype(t,i,n,s,a);if(!e){const e=this._getAutoClosingPairClose(i,n,s,a,!1);if(e)return this._runAutoClosingOpenCharType(t,i,n,s,a,!1,e)}if(!e&&this._isSurroundSelectionType(i,n,s,a))return this._runSurroundSelectionType(t,i,n,s,a);if(!e&&this._isTypeInterceptorElectricChar(i,n,s)){const e=this._typeInterceptorElectricChar(t,i,n,s[0],a);if(e)return e}const l=[];for(let h=0,c=s.length;h<c;h++)l[h]=new o.iu(s[h],a);const d=w(a,t);return new c.vY(d,l,{shouldPushStackElementBefore:S(t,d),shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(e,t,i,n,s){const r=[];for(let l=0,d=n.length;l<d;l++)r[l]=new o.iu(n[l],s);const a=w(s,e);return new c.vY(a,r,{shouldPushStackElementBefore:S(e,a),shouldPushStackElementAfter:!1})}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];const n=[];for(let s=0,r=i.length;s<r;s++){let r=i[s].positionLineNumber;if(1===r)n[s]=new o.q2(new a.Q(1,1,1,1),"\n");else{r--;const i=t.getLineMaxColumn(r);n[s]=this._enter(e,t,!1,new a.Q(r,i,r,i))}}return n}static lineInsertAfter(e,t,i){if(null===t||null===i)return[];const n=[];for(let s=0,o=i.length;s<o;s++){const o=i[s].positionLineNumber,r=t.getLineMaxColumn(o);n[s]=this._enter(e,t,!1,new a.Q(o,r,o,r))}return n}static lineBreakInsert(e,t,i){const n=[];for(let s=0,o=i.length;s<o;s++)n[s]=this._enter(e,t,!0,i[s]);return n}}class C extends o.iP{constructor(e,t,i,n){super(e,(i?t:"")+n,0,-n.length),this._openCharacter=t,this._closeCharacter=n,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this.closeCharacterRange=new a.Q(i.startLineNumber,i.endColumn-this._closeCharacter.length,i.endLineNumber,i.endColumn),this.enclosingRange=new a.Q(i.startLineNumber,i.endColumn-this._openCharacter.length-this._closeCharacter.length,i.endLineNumber,i.endColumn),super.computeCursorState(e,t)}}class y{constructor(e,t,i,n,s,o){this.deletedText=e,this.deletedSelectionStart=t,this.deletedSelectionEnd=i,this.insertedText=n,this.insertedSelectionStart=s,this.insertedSelectionEnd=o}}function w(e,t){return" "===e?5===t||6===t?6:5:4}function S(e,t){return!(!x(e)||x(t))||5!==e&&k(e)!==k(t)}function k(e){return 6===e||5===e?"space":e}function x(e){return 4===e||5===e||6===e}},97681:(e,t,i)=>{"use strict";i.d(t,{c:()=>h,z:()=>d});var n=i(91508),s=i(32799),o=i(1226),r=i(81782),a=i(83069),l=i(36677);class d{static _createWord(e,t,i,n,s){return{start:n,end:s,wordType:t,nextCharClass:i}}static _createIntlWord(e,t){return{start:e.index,end:e.index+e.segment.length,wordType:1,nextCharClass:t}}static _findPreviousWordOnLine(e,t,i){const n=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(n,e,i)}static _doFindPreviousWordOnLine(e,t,i){let n=0;const s=t.findPrevIntlWordBeforeOrAtOffset(e,i.column-2);for(let o=i.column-2;o>=0;o--){const i=e.charCodeAt(o),r=t.get(i);if(s&&o===s.index)return this._createIntlWord(s,r);if(0===r){if(2===n)return this._createWord(e,n,r,o+1,this._findEndOfWord(e,t,n,o+1));n=1}else if(2===r){if(1===n)return this._createWord(e,n,r,o+1,this._findEndOfWord(e,t,n,o+1));n=2}else if(1===r&&0!==n)return this._createWord(e,n,r,o+1,this._findEndOfWord(e,t,n,o+1))}return 0!==n?this._createWord(e,n,1,0,this._findEndOfWord(e,t,n,0)):null}static _findEndOfWord(e,t,i,n){const s=t.findNextIntlWordAtOrAfterOffset(e,n),o=e.length;for(let r=n;r<o;r++){const n=e.charCodeAt(r),o=t.get(n);if(s&&r===s.index+s.segment.length)return r;if(1===o)return r;if(1===i&&2===o)return r;if(2===i&&0===o)return r}return o}static _findNextWordOnLine(e,t,i){const n=t.getLineContent(i.lineNumber);return this._doFindNextWordOnLine(n,e,i)}static _doFindNextWordOnLine(e,t,i){let n=0;const s=e.length,o=t.findNextIntlWordAtOrAfterOffset(e,i.column-1);for(let r=i.column-1;r<s;r++){const i=e.charCodeAt(r),s=t.get(i);if(o&&r===o.index)return this._createIntlWord(o,s);if(0===s){if(2===n)return this._createWord(e,n,s,this._findStartOfWord(e,t,n,r-1),r);n=1}else if(2===s){if(1===n)return this._createWord(e,n,s,this._findStartOfWord(e,t,n,r-1),r);n=2}else if(1===s&&0!==n)return this._createWord(e,n,s,this._findStartOfWord(e,t,n,r-1),r)}return 0!==n?this._createWord(e,n,1,this._findStartOfWord(e,t,n,s-1),s):null}static _findStartOfWord(e,t,i,n){const s=t.findPrevIntlWordBeforeOrAtOffset(e,n);for(let o=n;o>=0;o--){const n=e.charCodeAt(o),r=t.get(n);if(s&&o===s.index)return o;if(1===r)return o+1;if(1===i&&2===r)return o+1;if(2===i&&0===r)return o+1}return 0}static moveWordLeft(e,t,i,n){let s=i.lineNumber,o=i.column;1===o&&s>1&&(s-=1,o=t.getLineMaxColumn(s));let r=d._findPreviousWordOnLine(e,t,new a.y(s,o));if(0===n)return new a.y(s,r?r.start+1:1);if(1===n)return r&&2===r.wordType&&r.end-r.start===1&&0===r.nextCharClass&&(r=d._findPreviousWordOnLine(e,t,new a.y(s,r.start+1))),new a.y(s,r?r.start+1:1);if(3===n){for(;r&&2===r.wordType;)r=d._findPreviousWordOnLine(e,t,new a.y(s,r.start+1));return new a.y(s,r?r.start+1:1)}return r&&o<=r.end+1&&(r=d._findPreviousWordOnLine(e,t,new a.y(s,r.start+1))),new a.y(s,r?r.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,s=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.y(i-1,e.getLineMaxColumn(i-1)):t;const o=e.getLineContent(i);for(let r=t.column-1;r>1;r--){const e=o.charCodeAt(r-2),t=o.charCodeAt(r-1);if(95===e&&95!==t)return new a.y(i,r);if(45===e&&45!==t)return new a.y(i,r);if((n.Lv(e)||n.DB(e))&&n.Wv(t))return new a.y(i,r);if(n.Wv(e)&&n.Wv(t)&&r+1<s){const e=o.charCodeAt(r);if(n.Lv(e)||n.DB(e))return new a.y(i,r)}}return new a.y(i,1)}static moveWordRight(e,t,i,n){let s=i.lineNumber,o=i.column,r=!1;o===t.getLineMaxColumn(s)&&s<t.getLineCount()&&(r=!0,s+=1,o=1);let l=d._findNextWordOnLine(e,t,new a.y(s,o));if(2===n)l&&2===l.wordType&&l.end-l.start===1&&0===l.nextCharClass&&(l=d._findNextWordOnLine(e,t,new a.y(s,l.end+1))),o=l?l.end+1:t.getLineMaxColumn(s);else if(3===n){for(r&&(o=0);l&&(2===l.wordType||l.start+1<=o);)l=d._findNextWordOnLine(e,t,new a.y(s,l.end+1));o=l?l.start+1:t.getLineMaxColumn(s)}else l&&!r&&o>=l.start+1&&(l=d._findNextWordOnLine(e,t,new a.y(s,l.end+1))),o=l?l.start+1:t.getLineMaxColumn(s);return new a.y(s,o)}static _moveWordPartRight(e,t){const i=t.lineNumber,s=e.getLineMaxColumn(i);if(t.column===s)return i<e.getLineCount()?new a.y(i+1,1):t;const o=e.getLineContent(i);for(let r=t.column+1;r<s;r++){const e=o.charCodeAt(r-2),t=o.charCodeAt(r-1);if(95!==e&&95===t)return new a.y(i,r);if(45!==e&&45===t)return new a.y(i,r);if((n.Lv(e)||n.DB(e))&&n.Wv(t))return new a.y(i,r);if(n.Wv(e)&&n.Wv(t)&&r+1<s){const e=o.charCodeAt(r);if(n.Lv(e)||n.DB(e))return new a.y(i,r)}}return new a.y(i,s)}static _deleteWordLeftWhitespace(e,t){const i=e.getLineContent(t.lineNumber),s=t.column-2,o=n.lT(i,s);return o+1<s?new l.Q(t.lineNumber,o+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){const i=e.wordSeparators,n=e.model,s=e.selection,r=e.whitespaceHeuristics;if(!s.isEmpty())return s;if(o.g.isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){const t=e.selection.getPosition();return new l.Q(t.lineNumber,t.column-1,t.lineNumber,t.column+1)}const h=new a.y(s.positionLineNumber,s.positionColumn);let c=h.lineNumber,u=h.column;if(1===c&&1===u)return null;if(r){const e=this._deleteWordLeftWhitespace(n,h);if(e)return e}let g=d._findPreviousWordOnLine(i,n,h);return 0===t?g?u=g.start+1:u>1?u=1:(c--,u=n.getLineMaxColumn(c)):(g&&u<=g.end+1&&(g=d._findPreviousWordOnLine(i,n,new a.y(c,g.start+1))),g?u=g.end+1:u>1?u=1:(c--,u=n.getLineMaxColumn(c))),new l.Q(c,u,h.lineNumber,h.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const n=new a.y(i.positionLineNumber,i.positionColumn),s=this._deleteInsideWordWhitespace(t,n);return s||this._deleteInsideWordDetermineDeleteRange(e,t,n)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=i.length;if(0===n)return null;let s=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,s))return null;let o=Math.min(t.column-1,n-1);if(!this._charAtIsWhitespace(i,o))return null;for(;s>0&&this._charAtIsWhitespace(i,s-1);)s--;for(;o+1<n&&this._charAtIsWhitespace(i,o+1);)o++;return new l.Q(t.lineNumber,s+1,t.lineNumber,o+2)}static _deleteInsideWordDetermineDeleteRange(e,t,i){const n=t.getLineContent(i.lineNumber),s=n.length;if(0===s)return i.lineNumber>1?new l.Q(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<t.getLineCount()?new l.Q(i.lineNumber,1,i.lineNumber+1,1):new l.Q(i.lineNumber,1,i.lineNumber,1);const o=e=>e.start+1<=i.column&&i.column<=e.end+1,r=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new l.Q(i.lineNumber,e,i.lineNumber,t)),a=e=>{let t=e.start+1,i=e.end+1,o=!1;for(;i-1<s&&this._charAtIsWhitespace(n,i-1);)o=!0,i++;if(!o)for(;t>1&&this._charAtIsWhitespace(n,t-2);)t--;return r(t,i)},h=d._findPreviousWordOnLine(e,t,i);if(h&&o(h))return a(h);const c=d._findNextWordOnLine(e,t,i);return c&&o(c)?a(c):h&&c?r(h.end+1,c.start+1):h?r(h.start+1,h.end+1):c?r(c.start+1,c.end+1):r(1,s+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),n=d._moveWordPartLeft(e,i);return new l.Q(i.lineNumber,i.column,n.lineNumber,n.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let n=t;n<i;n++){const t=e.charAt(n);if(" "!==t&&"\t"!==t)return n}return i}static _deleteWordRightWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=t.column-1,s=this._findFirstNonWhitespaceChar(i,n);return n+1<s?new l.Q(t.lineNumber,t.column,t.lineNumber,s+1):null}static deleteWordRight(e,t){const i=e.wordSeparators,n=e.model,s=e.selection,o=e.whitespaceHeuristics;if(!s.isEmpty())return s;const r=new a.y(s.positionLineNumber,s.positionColumn);let h=r.lineNumber,c=r.column;const u=n.getLineCount(),g=n.getLineMaxColumn(h);if(h===u&&c===g)return null;if(o){const e=this._deleteWordRightWhitespace(n,r);if(e)return e}let p=d._findNextWordOnLine(i,n,r);return 2===t?p?c=p.end+1:c<g||h===u?c=g:(h++,p=d._findNextWordOnLine(i,n,new a.y(h,1)),c=p?p.start+1:n.getLineMaxColumn(h)):(p&&c>=p.start+1&&(p=d._findNextWordOnLine(i,n,new a.y(h,p.end+1))),p?c=p.start+1:c<g||h===u?c=g:(h++,p=d._findNextWordOnLine(i,n,new a.y(h,1)),c=p?p.start+1:n.getLineMaxColumn(h))),new l.Q(h,c,r.lineNumber,r.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),n=d._moveWordPartRight(e,i);return new l.Q(i.lineNumber,i.column,n.lineNumber,n.column)}static _createWordAtPosition(e,t,i){const n=new l.Q(t,i.start+1,t,i.end+1);return{word:e.getValueInRange(n),startColumn:n.startColumn,endColumn:n.endColumn}}static getWordAtPosition(e,t,i,n){const s=(0,r.i)(t,i),o=d._findPreviousWordOnLine(s,e,n);if(o&&1===o.wordType&&o.start<=n.column-1&&n.column-1<=o.end)return d._createWordAtPosition(e,n.lineNumber,o);const a=d._findNextWordOnLine(s,e,n);return a&&1===a.wordType&&a.start<=n.column-1&&n.column-1<=a.end?d._createWordAtPosition(e,n.lineNumber,a):null}static word(e,t,i,n,o){const h=(0,r.i)(e.wordSeparators,e.wordSegmenterLocales),c=d._findPreviousWordOnLine(h,t,o),u=d._findNextWordOnLine(h,t,o);if(!n){let e,i;return c&&1===c.wordType&&c.start<=o.column-1&&o.column-1<=c.end?(e=c.start+1,i=c.end+1):u&&1===u.wordType&&u.start<=o.column-1&&o.column-1<=u.end?(e=u.start+1,i=u.end+1):(e=c?c.end+1:1,i=u?u.start+1:t.getLineMaxColumn(o.lineNumber)),new s.mG(new l.Q(o.lineNumber,e,o.lineNumber,i),1,0,new a.y(o.lineNumber,i),0)}let g,p;c&&1===c.wordType&&c.start<o.column-1&&o.column-1<c.end?(g=c.start+1,p=c.end+1):u&&1===u.wordType&&u.start<o.column-1&&o.column-1<u.end?(g=u.start+1,p=u.end+1):(g=o.column,p=o.column);const m=o.lineNumber;let f;if(i.selectionStart.containsPosition(o))f=i.selectionStart.endColumn;else if(o.isBeforeOrEqual(i.selectionStart.getStartPosition())){f=g;const e=new a.y(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.endColumn)}else{f=p;const e=new a.y(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.startColumn)}return i.move(!0,m,f,0)}}class h extends d{static deleteWordPartLeft(e){const t=c([d.deleteWordLeft(e,0),d.deleteWordLeft(e,2),d._deleteWordPartLeft(e.model,e.selection)]);return t.sort(l.Q.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){const t=c([d.deleteWordRight(e,0),d.deleteWordRight(e,2),d._deleteWordPartRight(e.model,e.selection)]);return t.sort(l.Q.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,i){const n=c([d.moveWordLeft(e,t,i,0),d.moveWordLeft(e,t,i,2),d._moveWordPartLeft(t,i)]);return n.sort(a.y.compare),n[2]}static moveWordPartRight(e,t,i){const n=c([d.moveWordRight(e,t,i,0),d.moveWordRight(e,t,i,2),d._moveWordPartRight(t,i)]);return n.sort(a.y.compare),n[0]}}function c(e){return e.filter((e=>Boolean(e)))}},32799:(e,t,i)=>{"use strict";i.d(t,{MF:()=>g,d$:()=>u,mG:()=>f,vG:()=>v,vY:()=>_});var n=i(83069),s=i(36677),o=i(75326),r=i(12296),a=i(1245),l=i(93895);const d=()=>!0,h=()=>!1,c=e=>" "===e||"\t"===e;class u{static shouldRecreate(e){return e.hasChanged(145)||e.hasChanged(131)||e.hasChanged(37)||e.hasChanged(77)||e.hasChanged(79)||e.hasChanged(80)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(9)||e.hasChanged(10)||e.hasChanged(14)||e.hasChanged(128)||e.hasChanged(50)||e.hasChanged(91)||e.hasChanged(130)}constructor(e,t,i,n){var s;this.languageConfigurationService=n,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const o=i.options,r=o.get(145),a=o.get(50);this.readOnly=o.get(91),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=o.get(116),this.lineHeight=a.lineHeight,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=o.get(128),this.wordSeparators=o.get(131),this.emptySelectionClipboard=o.get(37),this.copyWithSyntaxHighlighting=o.get(25),this.multiCursorMergeOverlapping=o.get(77),this.multiCursorPaste=o.get(79),this.multiCursorLimit=o.get(80),this.autoClosingBrackets=o.get(6),this.autoClosingComments=o.get(7),this.autoClosingQuotes=o.get(11),this.autoClosingDelete=o.get(9),this.autoClosingOvertype=o.get(10),this.autoSurround=o.get(14),this.autoIndent=o.get(12),this.wordSegmenterLocales=o.get(130),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(e,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const l=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(l)for(const h of l)this.surroundingPairs[h.open]=h.close;const d=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=null!==(s=null===d||void 0===d?void 0:d.blockCommentStartToken)&&void 0!==s?s:null}get electricChars(){var e;if(!this._electricChars){this._electricChars={};const t=null===(e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)||void 0===e?void 0:e.getElectricCharacters();if(t)for(const e of t)this._electricChars[e]=!0}return this._electricChars}onElectricCharacter(e,t,i){const n=(0,r.BQ)(t,i-1),s=this.languageConfigurationService.getLanguageConfiguration(n.languageId).electricCharacter;return s?s.onElectricCharacter(e,n,i-n.firstCharOffset):null}normalizeIndentation(e){return(0,l.P)(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,i){switch(t){case"beforeWhitespace":return c;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,i);case"always":return d;case"never":return h}}_getLanguageDefinedShouldAutoClose(e,t){const i=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return e=>-1!==i.indexOf(e)}visibleColumnFromColumn(e,t){return a.A.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const n=a.A.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),s=e.getLineMinColumn(t);if(n<s)return s;const o=e.getLineMaxColumn(t);return n>o?o:n}}class g{static fromModelState(e){return new p(e)}static fromViewState(e){return new m(e)}static fromModelSelection(e){const t=o.L.liftSelection(e),i=new f(s.Q.fromPositions(t.getSelectionStart()),0,0,t.getPosition(),0);return g.fromModelState(i)}static fromModelSelections(e){const t=[];for(let i=0,n=e.length;i<n;i++)t[i]=this.fromModelSelection(e[i]);return t}constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}equals(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)}}class p{constructor(e){this.modelState=e,this.viewState=null}}class m{constructor(e){this.modelState=null,this.viewState=e}}class f{constructor(e,t,i,n,s){this.selectionStart=e,this.selectionStartKind=t,this.selectionStartLeftoverVisibleColumns=i,this.position=n,this.leftoverVisibleColumns=s,this._singleCursorStateBrand=void 0,this.selection=f._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.selectionStartKind===e.selectionStartKind&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,i,o){return e?new f(this.selectionStart,this.selectionStartKind,this.selectionStartLeftoverVisibleColumns,new n.y(t,i),o):new f(new s.Q(t,i,t,i),0,o,new n.y(t,i),o)}static _computeSelection(e,t){return e.isEmpty()||!t.isBeforeOrEqual(e.getStartPosition())?o.L.fromPositions(e.getStartPosition(),t):o.L.fromPositions(e.getEndPosition(),t)}}class _{constructor(e,t,i){this._editOperationResultBrand=void 0,this.type=e,this.commands=t,this.shouldPushStackElementBefore=i.shouldPushStackElementBefore,this.shouldPushStackElementAfter=i.shouldPushStackElementAfter}}function v(e){return"'"===e||'"'===e||"`"===e}},68938:(e,t,i)=>{"use strict";i.d(t,{$8:()=>a,SL:()=>r,_3:()=>l,aY:()=>h,uY:()=>d});var n=i(25890),s=i(64383),o=i(74444);class r{static trivial(e,t){return new r([new a(o.L.ofLength(e.length),o.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new r([new a(o.L.ofLength(e.length),o.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class a{static invert(e,t){const i=[];return(0,n.pN)(e,((e,n)=>{i.push(a.fromOffsetPairs(e?e.getEndExclusives():l.zero,n?n.getStarts():new l(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),i}static fromOffsetPairs(e,t){return new a(new o.L(e.offset1,t.offset1),new o.L(e.offset2,t.offset2))}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new a(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new a(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new a(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new a(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new a(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),i=this.seq2Range.intersect(e.seq2Range);if(t&&i)return new a(t,i)}getStarts(){return new l(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new l(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class l{constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new l(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}l.zero=new l(0,0),l.max=new l(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class d{isValid(){return!0}}d.instance=new d;class h{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new s.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}},26746:(e,t,i)=>{"use strict";i.d(t,{D8:()=>M});var n=i(25890),s=i(66782),o=i(86571),r=i(74444),a=i(36677),l=i(68938);class d{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,i){this.array[e+t*this.width]=i}}function h(e){return 32===e||9===e}class c{static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,i){this.range=e,this.lines=t,this.source=i,this.histogram=[];let n=0;for(let s=e.startLineNumber-1;s<e.endLineNumberExclusive-1;s++){const e=t[s];for(let t=0;t<e.length;t++){n++;const i=e[t],s=c.getKey(i);this.histogram[s]=(this.histogram[s]||0)+1}n++;const i=c.getKey("\n");this.histogram[i]=(this.histogram[i]||0)+1}this.totalCount=n}computeSimilarity(e){var t,i;let n=0;const s=Math.max(this.histogram.length,e.histogram.length);for(let o=0;o<s;o++)n+=Math.abs((null!==(t=this.histogram[o])&&void 0!==t?t:0)-(null!==(i=e.histogram[o])&&void 0!==i?i:0));return 1-n/(this.totalCount+e.totalCount)}}c.chrKeys=new Map;class u{compute(e,t,i=l.uY.instance,n){if(0===e.length||0===t.length)return l.SL.trivial(e,t);const s=new d(e.length,t.length),o=new d(e.length,t.length),a=new d(e.length,t.length);for(let r=0;r<e.length;r++)for(let d=0;d<t.length;d++){if(!i.isValid())return l.SL.trivialTimedOut(e,t);const h=0===r?0:s.get(r-1,d),c=0===d?0:s.get(r,d-1);let u;e.getElement(r)===t.getElement(d)?(u=0===r||0===d?0:s.get(r-1,d-1),r>0&&d>0&&3===o.get(r-1,d-1)&&(u+=a.get(r-1,d-1)),u+=n?n(r,d):1):u=-1;const g=Math.max(h,c,u);if(g===u){const e=r>0&&d>0?a.get(r-1,d-1):0;a.set(r,d,e+1),o.set(r,d,3)}else g===h?(a.set(r,d,0),o.set(r,d,1)):g===c&&(a.set(r,d,0),o.set(r,d,2));s.set(r,d,g)}const h=[];let c=e.length,u=t.length;function g(e,t){e+1===c&&t+1===u||h.push(new l.$8(new r.L(e+1,c),new r.L(t+1,u))),c=e,u=t}let p=e.length-1,m=t.length-1;for(;p>=0&&m>=0;)3===o.get(p,m)?(g(p,m),p--,m--):1===o.get(p,m)?p--:m--;return g(-1,-1),h.reverse(),new l.SL(h,!1)}}class g{compute(e,t,i=l.uY.instance){if(0===e.length||0===t.length)return l.SL.trivial(e,t);const n=e,s=t;function o(e,t){for(;e<n.length&&t<s.length&&n.getElement(e)===s.getElement(t);)e++,t++;return e}let a=0;const d=new m;d.set(0,o(0,0));const h=new f;h.set(0,0===d.get(0)?null:new p(null,0,0,d.get(0)));let c=0;e:for(;;){if(a++,!i.isValid())return l.SL.trivialTimedOut(n,s);const e=-Math.min(a,s.length+a%2),t=Math.min(a,n.length+a%2);for(c=e;c<=t;c+=2){let i=0;const r=c===t?-1:d.get(c+1),a=c===e?-1:d.get(c-1)+1;i++;const l=Math.min(Math.max(r,a),n.length),u=l-c;if(i++,l>n.length||u>s.length)continue;const g=o(l,u);d.set(c,g);const m=l===r?h.get(c+1):h.get(c-1);if(h.set(c,g!==l?new p(m,l,u,g-l):m),d.get(c)===n.length&&d.get(c)-c===s.length)break e}}let u=h.get(c);const g=[];let _=n.length,v=s.length;for(;;){const e=u?u.x+u.length:0,t=u?u.y+u.length:0;if(e===_&&t===v||g.push(new l.$8(new r.L(e,_),new r.L(t,v))),!u)break;_=u.x,v=u.y,u=u.prev}return g.reverse(),new l.SL(g,!1)}}class p{constructor(e,t,i,n){this.prev=e,this.x=t,this.y=i,this.length=n}}class m{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class f{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}var _=i(87723),v=i(46041),b=i(74320),C=i(83069);class y{constructor(e,t,i){this.lines=e,this.considerWhitespaceChanges=i,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let n=!1;t.start>0&&t.endExclusive>=e.length&&(t=new r.L(t.start-1,t.endExclusive),n=!0),this.lineRange=t,this.firstCharOffsetByLine[0]=0;for(let s=this.lineRange.start;s<this.lineRange.endExclusive;s++){let t=e[s],o=0;if(n)o=t.length,t="",n=!1;else if(!i){const e=t.trimStart();o=t.length-e.length,t=e.trimEnd()}this.additionalOffsetByLine.push(o);for(let e=0;e<t.length;e++)this.elements.push(t.charCodeAt(e));s<e.length-1&&(this.elements.push("\n".charCodeAt(0)),this.firstCharOffsetByLine[s-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new r.L(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=x(e>0?this.elements[e-1]:-1),i=x(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===i)return 0;if(8===t)return 150;let n=0;return t!==i&&(n+=10,0===t&&1===i&&(n+=1)),n+=k(t),n+=k(i),n}translateOffset(e){if(this.lineRange.isEmpty)return new C.y(this.lineRange.start+1,1);const t=(0,v.iM)(this.firstCharOffsetByLine,(t=>t<=e));return new C.y(this.lineRange.start+t+1,e-this.firstCharOffsetByLine[t]+this.additionalOffsetByLine[t]+1)}translateRange(e){return a.Q.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!w(this.elements[e]))return;let t=e;for(;t>0&&w(this.elements[t-1]);)t--;let i=e;for(;i<this.elements.length&&w(this.elements[i]);)i++;return new r.L(t,i)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){var t,i;const n=null!==(t=(0,v.lx)(this.firstCharOffsetByLine,(t=>t<=e.start)))&&void 0!==t?t:0,s=null!==(i=(0,v.XP)(this.firstCharOffsetByLine,(t=>e.endExclusive<=t)))&&void 0!==i?i:this.elements.length;return new r.L(n,s)}}function w(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const S={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function k(e){return S[e]}function x(e){return 10===e?8:13===e?7:h(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function L(e,t,i,s,r,a){let{moves:l,excludedChanges:d}=function(e,t,i,n){const s=[],o=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new c(e.original,t,e))),r=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new c(e.modified,i,e)))),a=new Set;for(const l of o){let e,t=-1;for(const i of r){const n=l.computeSimilarity(i);n>t&&(t=n,e=i)}if(t>.9&&e&&(r.delete(e),s.push(new _.WL(l.range,e.range)),a.add(l.source),a.add(e.source)),!n.isValid())return{moves:s,excludedChanges:a}}return{moves:s,excludedChanges:a}}(e,t,i,a);if(!a.isValid())return[];const h=function(e,t,i,s,r,a){const l=[],d=new b.db;for(const n of e)for(let e=n.original.startLineNumber;e<n.original.endLineNumberExclusive-2;e++){const i=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;d.add(i,{range:new o.M(e,e+3)})}const h=[];e.sort((0,n.VE)((e=>e.modified.startLineNumber),n.U9));for(const n of e){let e=[];for(let t=n.modified.startLineNumber;t<n.modified.endLineNumberExclusive-2;t++){const n=`${i[t-1]}:${i[t+1-1]}:${i[t+2-1]}`,s=new o.M(t,t+3),r=[];d.forEach(n,(({range:t})=>{for(const n of e)if(n.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&n.modifiedLineRange.endLineNumberExclusive+1===s.endLineNumberExclusive)return n.originalLineRange=new o.M(n.originalLineRange.startLineNumber,t.endLineNumberExclusive),n.modifiedLineRange=new o.M(n.modifiedLineRange.startLineNumber,s.endLineNumberExclusive),void r.push(n);const i={modifiedLineRange:s,originalLineRange:t};h.push(i),r.push(i)})),e=r}if(!a.isValid())return[]}h.sort((0,n.Hw)((0,n.VE)((e=>e.modifiedLineRange.length),n.U9)));const c=new o.S,u=new o.S;for(const n of h){const e=n.modifiedLineRange.startLineNumber-n.originalLineRange.startLineNumber,t=c.subtractFrom(n.modifiedLineRange),i=u.subtractFrom(n.originalLineRange).getWithDelta(e),s=t.getIntersection(i);for(const n of s.ranges){if(n.length<3)continue;const t=n,i=n.delta(-e);l.push(new _.WL(i,t)),c.addRange(t),u.addRange(i)}}l.sort((0,n.VE)((e=>e.original.startLineNumber),n.U9));const g=new v.vJ(e);for(let n=0;n<l.length;n++){const t=l[n],i=g.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),d=(0,v.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),h=Math.max(t.original.startLineNumber-i.original.startLineNumber,t.modified.startLineNumber-d.modified.startLineNumber),p=g.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=(0,v.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),f=Math.max(p.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let b,C;for(b=0;b<h;b++){const e=t.original.startLineNumber-b-1,i=t.modified.startLineNumber-b-1;if(e>s.length||i>r.length)break;if(c.contains(i)||u.contains(e))break;if(!D(s[e-1],r[i-1],a))break}for(b>0&&(u.addRange(new o.M(t.original.startLineNumber-b,t.original.startLineNumber)),c.addRange(new o.M(t.modified.startLineNumber-b,t.modified.startLineNumber))),C=0;C<f;C++){const e=t.original.endLineNumberExclusive+C,i=t.modified.endLineNumberExclusive+C;if(e>s.length||i>r.length)break;if(c.contains(i)||u.contains(e))break;if(!D(s[e-1],r[i-1],a))break}C>0&&(u.addRange(new o.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+C)),c.addRange(new o.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+C))),(b>0||C>0)&&(l[n]=new _.WL(new o.M(t.original.startLineNumber-b,t.original.endLineNumberExclusive+C),new o.M(t.modified.startLineNumber-b,t.modified.endLineNumberExclusive+C)))}return l}(e.filter((e=>!d.has(e))),s,r,t,i,a);return(0,n.E4)(l,h),l=function(e){if(0===e.length)return e;e.sort((0,n.VE)((e=>e.original.startLineNumber),n.U9));const t=[e[0]];for(let i=1;i<e.length;i++){const n=t[t.length-1],s=e[i],o=s.original.startLineNumber-n.original.endLineNumberExclusive,r=s.modified.startLineNumber-n.modified.endLineNumberExclusive;o>=0&&r>=0&&o+r<=2?t[t.length-1]=n.join(s):t.push(s)}return t}(l),l=l.filter((e=>{const i=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return i.join("\n").length>=15&&function(e,t){let i=0;for(const n of e)t(n)&&i++;return i}(i,(e=>e.length>=2))>=2})),l=function(e,t){const i=new v.vJ(e);return t=t.filter((t=>(i.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new _.WL(new o.M(1,1),new o.M(1,1)))!==(0,v.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,l),l}function D(e,t,i){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const n=(new g).compute(new y([e],new r.L(0,1),!1),new y([t],new r.L(0,1),!1),i);let s=0;const o=l.$8.invert(n.diffs,e.length);for(const r of o)r.seq1Range.forEach((t=>{h(e.charCodeAt(t))||s++}));const a=function(t){let i=0;for(let n=0;n<e.length;n++)h(t.charCodeAt(n))||i++;return i}(e.length>t.length?e:t);return s/a>.6&&a>10}var E=i(82518);class N{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:T(this.lines[e-1]))+(e===this.lines.length?0:T(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function T(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}var I=i(41845);class M{constructor(){this.dynamicProgrammingDiffing=new u,this.myersDiffingAlgorithm=new g}computeDiff(e,t,i){if(e.length<=1&&(0,n.aI)(e,t,((e,t)=>e===t)))return new I.p([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new I.p([new _.wm(new o.M(1,e.length+1),new o.M(1,t.length+1),[new _.q6(new a.Q(1,1,e.length,e[0].length+1),new a.Q(1,1,t.length,t[0].length+1))])],[],!1);const d=0===i.maxComputationTimeMs?l.uY.instance:new l.aY(i.maxComputationTimeMs),h=!i.ignoreTrimWhitespace,c=new Map;function u(e){let t=c.get(e);return void 0===t&&(t=c.size,c.set(e,t)),t}const g=e.map((e=>u(e.trim()))),p=t.map((e=>u(e.trim()))),m=new N(g,e),f=new N(p,t),v=(()=>m.length+f.length<1700?this.dynamicProgrammingDiffing.compute(m,f,d,((i,n)=>e[i]===t[n]?0===t[n].length?.1:1+Math.log(1+t[n].length):.99)):this.myersDiffingAlgorithm.compute(m,f))();let b=v.diffs,C=v.hitTimeout;b=(0,E.NC)(m,f,b),b=(0,E.X5)(m,f,b);const y=[],w=i=>{if(h)for(let n=0;n<i;n++){const i=S+n,s=k+n;if(e[i]!==t[s]){const n=this.refineDiff(e,t,new l.$8(new r.L(i,i+1),new r.L(s,s+1)),d,h);for(const e of n.mappings)y.push(e);n.hitTimeout&&(C=!0)}}};let S=0,k=0;for(const n of b){(0,s.Ft)((()=>n.seq1Range.start-S===n.seq2Range.start-k));w(n.seq1Range.start-S),S=n.seq1Range.endExclusive,k=n.seq2Range.endExclusive;const i=this.refineDiff(e,t,n,d,h);i.hitTimeout&&(C=!0);for(const e of i.mappings)y.push(e)}w(e.length-S);const x=A(y,e,t);let L=[];return i.computeMoves&&(L=this.computeMoves(x,e,t,g,p,d,h)),(0,s.Ft)((()=>{function i(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const i=t[e.lineNumber-1];return!(e.column<1||e.column>i.length+1)}function n(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const s of x){if(!s.innerChanges)return!1;for(const n of s.innerChanges){if(!(i(n.modifiedRange.getStartPosition(),t)&&i(n.modifiedRange.getEndPosition(),t)&&i(n.originalRange.getStartPosition(),e)&&i(n.originalRange.getEndPosition(),e)))return!1}if(!n(s.modified,t)||!n(s.original,e))return!1}return!0})),new I.p(x,L,C)}computeMoves(e,t,i,n,s,o,r){return L(e,t,i,n,s,o).map((e=>{const n=A(this.refineDiff(t,i,new l.$8(e.original.toOffsetRange(),e.modified.toOffsetRange()),o,r).mappings,t,i,!0);return new I.t(e,n)}))}refineDiff(e,t,i,n,s){const o=new y(e,i.seq1Range,s),r=new y(t,i.seq2Range,s),a=o.length+r.length<500?this.dynamicProgrammingDiffing.compute(o,r,n):this.myersDiffingAlgorithm.compute(o,r,n);let l=a.diffs;l=(0,E.NC)(o,r,l),l=(0,E.Lk)(o,r,l),l=(0,E.sq)(o,r,l),l=(0,E.Rl)(o,r,l);return{mappings:l.map((e=>new _.q6(o.translateRange(e.seq1Range),r.translateRange(e.seq2Range)))),hitTimeout:a.hitTimeout}}}function A(e,t,i,r=!1){const a=[];for(const s of(0,n.n)(e.map((e=>function(e,t,i){let n=0,s=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+n<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+n<=e.modifiedRange.endLineNumber&&(s=-1);e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+s&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+s&&(n=1);const r=new o.M(e.originalRange.startLineNumber+n,e.originalRange.endLineNumber+1+s),a=new o.M(e.modifiedRange.startLineNumber+n,e.modifiedRange.endLineNumber+1+s);return new _.wm(r,a,[e])}(e,t,i))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=s[0],t=s[s.length-1];a.push(new _.wm(e.original.join(t.original),e.modified.join(t.modified),s.map((e=>e.innerChanges[0]))))}return(0,s.Ft)((()=>{if(!r&&a.length>0){if(a[0].modified.startLineNumber!==a[0].original.startLineNumber)return!1;if(i.length-a[a.length-1].modified.endLineNumberExclusive!==t.length-a[a.length-1].original.endLineNumberExclusive)return!1}return(0,s.Xo)(a,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),a}},82518:(e,t,i)=>{"use strict";i.d(t,{Lk:()=>h,NC:()=>r,Rl:()=>u,X5:()=>c,sq:()=>d});var n=i(25890),s=i(74444),o=i(68938);function r(e,t,i){let n=i;return n=a(e,t,n),n=a(e,t,n),n=function(e,t,i){if(!e.getBoundaryScore||!t.getBoundaryScore)return i;for(let n=0;n<i.length;n++){const o=n>0?i[n-1]:void 0,r=i[n],a=n+1<i.length?i[n+1]:void 0,d=new s.L(o?o.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),h=new s.L(o?o.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);r.seq1Range.isEmpty?i[n]=l(r,e,t,d,h):r.seq2Range.isEmpty&&(i[n]=l(r.swap(),t,e,h,d).swap())}return i}(e,t,n),n}function a(e,t,i){if(0===i.length)return i;const n=[];n.push(i[0]);for(let a=1;a<i.length;a++){const r=n[n.length-1];let l=i[a];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const i=l.seq1Range.start-r.seq1Range.endExclusive;let a;for(a=1;a<=i&&(e.getElement(l.seq1Range.start-a)===e.getElement(l.seq1Range.endExclusive-a)&&t.getElement(l.seq2Range.start-a)===t.getElement(l.seq2Range.endExclusive-a));a++);if(a--,a===i){n[n.length-1]=new o.$8(new s.L(r.seq1Range.start,l.seq1Range.endExclusive-i),new s.L(r.seq2Range.start,l.seq2Range.endExclusive-i));continue}l=l.delta(-a)}n.push(l)}const r=[];for(let a=0;a<n.length-1;a++){const i=n[a+1];let l=n[a];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const r=i.seq1Range.start-l.seq1Range.endExclusive;let d;for(d=0;d<r&&(e.isStronglyEqual(l.seq1Range.start+d,l.seq1Range.endExclusive+d)&&t.isStronglyEqual(l.seq2Range.start+d,l.seq2Range.endExclusive+d));d++);if(d===r){n[a+1]=new o.$8(new s.L(l.seq1Range.start+r,i.seq1Range.endExclusive),new s.L(l.seq2Range.start+r,i.seq2Range.endExclusive));continue}d>0&&(l=l.delta(d))}r.push(l)}return n.length>0&&r.push(n[n.length-1]),r}function l(e,t,i,n,s){let o=1;for(;e.seq1Range.start-o>=n.start&&e.seq2Range.start-o>=s.start&&i.isStronglyEqual(e.seq2Range.start-o,e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let r=0;for(;e.seq1Range.start+r<n.endExclusive&&e.seq2Range.endExclusive+r<s.endExclusive&&i.isStronglyEqual(e.seq2Range.start+r,e.seq2Range.endExclusive+r)&&r<100;)r++;if(0===o&&0===r)return e;let a=0,l=-1;for(let d=-o;d<=r;d++){const n=e.seq2Range.start+d,s=e.seq2Range.endExclusive+d,o=e.seq1Range.start+d,r=t.getBoundaryScore(o)+i.getBoundaryScore(n)+i.getBoundaryScore(s);r>l&&(l=r,a=d)}return e.delta(a)}function d(e,t,i){const n=[];for(const s of i){const e=n[n.length-1];e?s.seq1Range.start-e.seq1Range.endExclusive<=2||s.seq2Range.start-e.seq2Range.endExclusive<=2?n[n.length-1]=new o.$8(e.seq1Range.join(s.seq1Range),e.seq2Range.join(s.seq2Range)):n.push(s):n.push(s)}return n}function h(e,t,i){const n=o.$8.invert(i,e.length),s=[];let r=new o._3(0,0);function a(i,a){if(i.offset1<r.offset1||i.offset2<r.offset2)return;const l=e.findWordContaining(i.offset1),d=t.findWordContaining(i.offset2);if(!l||!d)return;let h=new o.$8(l,d);const c=h.intersect(a);let u=c.seq1Range.length,g=c.seq2Range.length;for(;n.length>0;){const i=n[0];if(!(i.seq1Range.intersects(h.seq1Range)||i.seq2Range.intersects(h.seq2Range)))break;const s=e.findWordContaining(i.seq1Range.start),r=t.findWordContaining(i.seq2Range.start),a=new o.$8(s,r),l=a.intersect(i);if(u+=l.seq1Range.length,g+=l.seq2Range.length,h=h.join(a),!(h.seq1Range.endExclusive>=i.seq1Range.endExclusive))break;n.shift()}u+g<2*(h.seq1Range.length+h.seq2Range.length)/3&&s.push(h),r=h.getEndExclusives()}for(;n.length>0;){const e=n.shift();e.seq1Range.isEmpty||(a(e.getStarts(),e),a(e.getEndExclusives().delta(-1),e))}return function(e,t){const i=[];for(;e.length>0||t.length>0;){const n=e[0],s=t[0];let o;o=n&&(!s||n.seq1Range.start<s.seq1Range.start)?e.shift():t.shift(),i.length>0&&i[i.length-1].seq1Range.endExclusive>=o.seq1Range.start?i[i.length-1]=i[i.length-1].join(o):i.push(o)}return i}(i,s)}function c(e,t,i){let n=i;if(0===n.length)return n;let o,r=0;do{o=!1;const a=[n[0]];for(let l=1;l<n.length;l++){const d=n[l],h=a[a.length-1];function c(t,i){const n=new s.L(h.seq1Range.endExclusive,d.seq1Range.start);return e.getText(n).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||i.seq1Range.length+i.seq2Range.length>5)}c(h,d)?(o=!0,a[a.length-1]=a[a.length-1].join(d)):a.push(d)}n=a}while(r++<10&&o);return n}function u(e,t,i){let r=i;if(0===r.length)return r;let a,l=0;do{a=!1;const h=[r[0]];for(let c=1;c<r.length;c++){const u=r[c],g=h[h.length-1];function p(i,n){const o=new s.L(g.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(o)>5||o.length>500)return!1;const r=e.getText(o).trim();if(r.length>20||r.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(i.seq1Range),l=i.seq1Range.length,d=t.countLinesIn(i.seq2Range),h=i.seq2Range.length,c=e.countLinesIn(n.seq1Range),p=n.seq1Range.length,m=t.countLinesIn(n.seq2Range),f=n.seq2Range.length;function _(e){return Math.min(e,130)}return Math.pow(Math.pow(_(40*a+l),1.5)+Math.pow(_(40*d+h),1.5),1.5)+Math.pow(Math.pow(_(40*c+p),1.5)+Math.pow(_(40*m+f),1.5),1.5)>74184.96480721243}p(g,u)?(a=!0,h[h.length-1]=h[h.length-1].join(u)):h.push(u)}r=h}while(l++<10&&a);const d=[];return(0,n.kj)(r,((t,i,n)=>{let r=i;function a(e){return e.length>0&&e.trim().length<=3&&i.seq1Range.length+i.seq2Range.length>100}const l=e.extendToFullLines(i.seq1Range),h=e.getText(new s.L(l.start,i.seq1Range.start));a(h)&&(r=r.deltaStart(-h.length));const c=e.getText(new s.L(i.seq1Range.endExclusive,l.endExclusive));a(c)&&(r=r.deltaEnd(c.length));const u=o.$8.fromOffsetPairs(t?t.getEndExclusives():o._3.zero,n?n.getStarts():o._3.max),g=r.intersect(u);d.length>0&&g.getStarts().equals(d[d.length-1].getEndExclusives())?d[d.length-1]=d[d.length-1].join(g):d.push(g)})),d}},41845:(e,t,i)=>{"use strict";i.d(t,{p:()=>n,t:()=>s});class n{constructor(e,t,i){this.changes=e,this.moves=t,this.hitTimeout=i}}class s{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}},87723:(e,t,i)=>{"use strict";i.d(t,{WL:()=>s,q6:()=>r,wm:()=>o});var n=i(86571);class s{static inverse(e,t,i){const o=[];let r=1,a=1;for(const d of e){const e=new s(new n.M(r,d.original.startLineNumber),new n.M(a,d.modified.startLineNumber));e.modified.isEmpty||o.push(e),r=d.original.endLineNumberExclusive,a=d.modified.endLineNumberExclusive}const l=new s(new n.M(r,t+1),new n.M(a,i+1));return l.modified.isEmpty||o.push(l),o}static clip(e,t,i){const n=[];for(const o of e){const e=o.original.intersect(t),r=o.modified.intersect(i);e&&!e.isEmpty&&r&&!r.isEmpty&&n.push(new s(e,r))}return n}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new s(this.modified,this.original)}join(e){return new s(this.original.join(e.original),this.modified.join(e.modified))}}class o extends s{static fromRangeMappings(e){const t=n.M.join(e.map((e=>n.M.fromRangeInclusive(e.originalRange)))),i=n.M.join(e.map((e=>n.M.fromRangeInclusive(e.modifiedRange))));return new o(t,i,e)}constructor(e,t,i){super(e,t),this.innerChanges=i}flip(){var e;return new o(this.modified,this.original,null===(e=this.innerChanges)||void 0===e?void 0:e.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new o(this.original,this.modified,[new r(this.original.toExclusiveRange(),this.modified.toExclusiveRange())])}}class r{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new r(this.modifiedRange,this.originalRange)}}},29611:(e,t,i)=>{"use strict";i.d(t,{f:()=>n});class n{constructor(e,t,i,n,s,o,r){this.id=e,this.label=t,this.alias=i,this.metadata=n,this._precondition=s,this._run=o,this._contextKeyService=r}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}},23452:(e,t,i)=>{"use strict";i.d(t,{_:()=>n});const n={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},60002:(e,t,i)=>{"use strict";i.d(t,{R:()=>n});var n,s=i(31629),o=i(32848);!function(e){e.editorSimpleInput=new o.N1("editorSimpleInput",!1,!0),e.editorTextFocus=new o.N1("editorTextFocus",!1,s.kg("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),e.focus=new o.N1("editorFocus",!1,s.kg("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),e.textInputFocus=new o.N1("textInputFocus",!1,s.kg("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),e.readOnly=new o.N1("editorReadonly",!1,s.kg("editorReadonly","Whether the editor is read-only")),e.inDiffEditor=new o.N1("inDiffEditor",!1,s.kg("inDiffEditor","Whether the context is a diff editor")),e.isEmbeddedDiffEditor=new o.N1("isEmbeddedDiffEditor",!1,s.kg("isEmbeddedDiffEditor","Whether the context is an embedded diff editor")),e.inMultiDiffEditor=new o.N1("inMultiDiffEditor",!1,s.kg("inMultiDiffEditor","Whether the context is a multi diff editor")),e.multiDiffEditorAllCollapsed=new o.N1("multiDiffEditorAllCollapsed",void 0,s.kg("multiDiffEditorAllCollapsed","Whether all files in multi diff editor are collapsed")),e.hasChanges=new o.N1("diffEditorHasChanges",!1,s.kg("diffEditorHasChanges","Whether the diff editor has changes")),e.comparingMovedCode=new o.N1("comparingMovedCode",!1,s.kg("comparingMovedCode","Whether a moved code block is selected for comparison")),e.accessibleDiffViewerVisible=new o.N1("accessibleDiffViewerVisible",!1,s.kg("accessibleDiffViewerVisible","Whether the accessible diff viewer is visible")),e.diffEditorRenderSideBySideInlineBreakpointReached=new o.N1("diffEditorRenderSideBySideInlineBreakpointReached",!1,s.kg("diffEditorRenderSideBySideInlineBreakpointReached","Whether the diff editor render side by side inline breakpoint is reached")),e.diffEditorInlineMode=new o.N1("diffEditorInlineMode",!1,s.kg("diffEditorInlineMode","Whether inline mode is active")),e.diffEditorOriginalWritable=new o.N1("diffEditorOriginalWritable",!1,s.kg("diffEditorOriginalWritable","Whether modified is writable in the diff editor")),e.diffEditorModifiedWritable=new o.N1("diffEditorModifiedWritable",!1,s.kg("diffEditorModifiedWritable","Whether modified is writable in the diff editor")),e.diffEditorOriginalUri=new o.N1("diffEditorOriginalUri","",s.kg("diffEditorOriginalUri","The uri of the original document")),e.diffEditorModifiedUri=new o.N1("diffEditorModifiedUri","",s.kg("diffEditorModifiedUri","The uri of the modified document")),e.columnSelection=new o.N1("editorColumnSelection",!1,s.kg("editorColumnSelection","Whether `editor.columnSelection` is enabled")),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new o.N1("editorHasSelection",!1,s.kg("editorHasSelection","Whether the editor has text selected")),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new o.N1("editorHasMultipleSelections",!1,s.kg("editorHasMultipleSelections","Whether the editor has multiple selections")),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new o.N1("editorTabMovesFocus",!1,s.kg("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new o.N1("isInEmbeddedEditor",!1,!0),e.canUndo=new o.N1("canUndo",!1,!0),e.canRedo=new o.N1("canRedo",!1,!0),e.hoverVisible=new o.N1("editorHoverVisible",!1,s.kg("editorHoverVisible","Whether the editor hover is visible")),e.hoverFocused=new o.N1("editorHoverFocused",!1,s.kg("editorHoverFocused","Whether the editor hover is focused")),e.stickyScrollFocused=new o.N1("stickyScrollFocused",!1,s.kg("stickyScrollFocused","Whether the sticky scroll is focused")),e.stickyScrollVisible=new o.N1("stickyScrollVisible",!1,s.kg("stickyScrollVisible","Whether the sticky scroll is visible")),e.standaloneColorPickerVisible=new o.N1("standaloneColorPickerVisible",!1,s.kg("standaloneColorPickerVisible","Whether the standalone color picker is visible")),e.standaloneColorPickerFocused=new o.N1("standaloneColorPickerFocused",!1,s.kg("standaloneColorPickerFocused","Whether the standalone color picker is focused")),e.inCompositeEditor=new o.N1("inCompositeEditor",void 0,s.kg("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new o.N1("editorLangId","",s.kg("editorLangId","The language identifier of the editor")),e.hasCompletionItemProvider=new o.N1("editorHasCompletionItemProvider",!1,s.kg("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),e.hasCodeActionsProvider=new o.N1("editorHasCodeActionsProvider",!1,s.kg("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),e.hasCodeLensProvider=new o.N1("editorHasCodeLensProvider",!1,s.kg("editorHasCodeLensProvider","Whether the editor has a code lens provider")),e.hasDefinitionProvider=new o.N1("editorHasDefinitionProvider",!1,s.kg("editorHasDefinitionProvider","Whether the editor has a definition provider")),e.hasDeclarationProvider=new o.N1("editorHasDeclarationProvider",!1,s.kg("editorHasDeclarationProvider","Whether the editor has a declaration provider")),e.hasImplementationProvider=new o.N1("editorHasImplementationProvider",!1,s.kg("editorHasImplementationProvider","Whether the editor has an implementation provider")),e.hasTypeDefinitionProvider=new o.N1("editorHasTypeDefinitionProvider",!1,s.kg("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),e.hasHoverProvider=new o.N1("editorHasHoverProvider",!1,s.kg("editorHasHoverProvider","Whether the editor has a hover provider")),e.hasDocumentHighlightProvider=new o.N1("editorHasDocumentHighlightProvider",!1,s.kg("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),e.hasDocumentSymbolProvider=new o.N1("editorHasDocumentSymbolProvider",!1,s.kg("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),e.hasReferenceProvider=new o.N1("editorHasReferenceProvider",!1,s.kg("editorHasReferenceProvider","Whether the editor has a reference provider")),e.hasRenameProvider=new o.N1("editorHasRenameProvider",!1,s.kg("editorHasRenameProvider","Whether the editor has a rename provider")),e.hasSignatureHelpProvider=new o.N1("editorHasSignatureHelpProvider",!1,s.kg("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),e.hasInlayHintsProvider=new o.N1("editorHasInlayHintsProvider",!1,s.kg("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),e.hasDocumentFormattingProvider=new o.N1("editorHasDocumentFormattingProvider",!1,s.kg("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),e.hasDocumentSelectionFormattingProvider=new o.N1("editorHasDocumentSelectionFormattingProvider",!1,s.kg("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),e.hasMultipleDocumentFormattingProvider=new o.N1("editorHasMultipleDocumentFormattingProvider",!1,s.kg("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),e.hasMultipleDocumentSelectionFormattingProvider=new o.N1("editorHasMultipleDocumentSelectionFormattingProvider",!1,s.kg("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))}(n||(n={}))},72466:(e,t,i)=>{"use strict";i.d(t,{T:()=>o,x:()=>s});const n=[];function s(e){n.push(e)}function o(){return n.slice(0)}},25982:(e,t,i)=>{"use strict";i.d(t,{x:()=>n});class n{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),8&i&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),n=this.getFontStyle(e);let s=`color: ${t[i]};`;1&n&&(s+="font-style: italic;"),2&n&&(s+="font-weight: bold;");let o="";return 4&n&&(o+=" underline"),8&n&&(o+=" line-through"),o&&(s+=`text-decoration:${o};`),s}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&i),bold:Boolean(2&i),underline:Boolean(4&i),strikethrough:Boolean(8&i)}}}},54459:(e,t,i)=>{"use strict";i.d(t,{f:()=>o});var n=i(46958),s=i(74027);function o(e,t,i,r,a,l){if(Array.isArray(e)){let n=0;for(const s of e){const e=o(s,t,i,r,a,l);if(10===e)return e;e>n&&(n=e)}return n}if("string"===typeof e)return r?"*"===e?5:e===i?10:0:0;if(e){const{language:o,pattern:d,scheme:h,hasAccessToAllModels:c,notebookType:u}=e;if(!r&&!c)return 0;u&&a&&(t=a);let g=0;if(h)if(h===t.scheme)g=10;else{if("*"!==h)return 0;g=5}if(o)if(o===i)g=10;else{if("*"!==o)return 0;g=Math.max(g,5)}if(u)if(u===l)g=10;else{if("*"!==u||void 0===l)return 0;g=Math.max(g,5)}if(d){let e;if(e="string"===typeof d?d:{...d,base:(0,s.S8)(d.base)},e!==t.fsPath&&!(0,n.YW)(e,t.fsPath))return 0;g=10}return g}return 0}},62083:(e,t,i)=>{"use strict";i.d(t,{uB:()=>k,HC:()=>d,Kb:()=>g,FX:()=>c,rY:()=>_,lO:()=>L,r4:()=>x,qw:()=>h,sm:()=>N,v_:()=>D,OV:()=>S,GE:()=>v,WA:()=>u,gP:()=>w,ou:()=>m,dG:()=>E,$M:()=>f,PK:()=>y,Iu:()=>b});var n=i(10350),s=i(79400),o=i(36677),r=i(41234),a=i(5662);class l extends a.jG{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var d,h,c,u,g,p=i(31629);class m{constructor(e,t,i){this.offset=e,this.type=t,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class f{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class _{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){const t=new Map;t.set(0,n.W.symbolMethod),t.set(1,n.W.symbolFunction),t.set(2,n.W.symbolConstructor),t.set(3,n.W.symbolField),t.set(4,n.W.symbolVariable),t.set(5,n.W.symbolClass),t.set(6,n.W.symbolStruct),t.set(7,n.W.symbolInterface),t.set(8,n.W.symbolModule),t.set(9,n.W.symbolProperty),t.set(10,n.W.symbolEvent),t.set(11,n.W.symbolOperator),t.set(12,n.W.symbolUnit),t.set(13,n.W.symbolValue),t.set(15,n.W.symbolEnum),t.set(14,n.W.symbolConstant),t.set(15,n.W.symbolEnum),t.set(16,n.W.symbolEnumMember),t.set(17,n.W.symbolKeyword),t.set(27,n.W.symbolSnippet),t.set(18,n.W.symbolText),t.set(19,n.W.symbolColor),t.set(20,n.W.symbolFile),t.set(21,n.W.symbolReference),t.set(22,n.W.symbolCustomColor),t.set(23,n.W.symbolFolder),t.set(24,n.W.symbolTypeParameter),t.set(25,n.W.account),t.set(26,n.W.issues),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for CompletionItemKind "+e),i=n.W.symbolProperty),i};const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26),e.fromString=function(e,t){let n=i.get(e);return"undefined"!==typeof n||t||(n=9),n}}(d||(d={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(h||(h={}));class v{constructor(e,t,i,n){this.range=e,this.text=t,this.completionKind=i,this.isSnippetText=n}equals(e){return o.Q.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}function b(e){return e&&s.r.isUri(e.uri)&&o.Q.isIRange(e.range)&&(o.Q.isIRange(e.originSelectionRange)||o.Q.isIRange(e.targetSelectionRange))}!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(c||(c={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(u||(u={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(g||(g={}));const C={17:(0,p.kg)("Array","array"),16:(0,p.kg)("Boolean","boolean"),4:(0,p.kg)("Class","class"),13:(0,p.kg)("Constant","constant"),8:(0,p.kg)("Constructor","constructor"),9:(0,p.kg)("Enum","enumeration"),21:(0,p.kg)("EnumMember","enumeration member"),23:(0,p.kg)("Event","event"),7:(0,p.kg)("Field","field"),0:(0,p.kg)("File","file"),11:(0,p.kg)("Function","function"),10:(0,p.kg)("Interface","interface"),19:(0,p.kg)("Key","key"),5:(0,p.kg)("Method","method"),1:(0,p.kg)("Module","module"),2:(0,p.kg)("Namespace","namespace"),20:(0,p.kg)("Null","null"),15:(0,p.kg)("Number","number"),18:(0,p.kg)("Object","object"),24:(0,p.kg)("Operator","operator"),3:(0,p.kg)("Package","package"),6:(0,p.kg)("Property","property"),14:(0,p.kg)("String","string"),22:(0,p.kg)("Struct","struct"),25:(0,p.kg)("TypeParameter","type parameter"),12:(0,p.kg)("Variable","variable")};function y(e,t){return(0,p.kg)("symbolAriaLabel","{0} ({1})",e,C[t])}var w,S,k,x;!function(e){const t=new Map;t.set(0,n.W.symbolFile),t.set(1,n.W.symbolModule),t.set(2,n.W.symbolNamespace),t.set(3,n.W.symbolPackage),t.set(4,n.W.symbolClass),t.set(5,n.W.symbolMethod),t.set(6,n.W.symbolProperty),t.set(7,n.W.symbolField),t.set(8,n.W.symbolConstructor),t.set(9,n.W.symbolEnum),t.set(10,n.W.symbolInterface),t.set(11,n.W.symbolFunction),t.set(12,n.W.symbolVariable),t.set(13,n.W.symbolConstant),t.set(14,n.W.symbolString),t.set(15,n.W.symbolNumber),t.set(16,n.W.symbolBoolean),t.set(17,n.W.symbolArray),t.set(18,n.W.symbolObject),t.set(19,n.W.symbolKey),t.set(20,n.W.symbolNull),t.set(21,n.W.symbolEnumMember),t.set(22,n.W.symbolStruct),t.set(23,n.W.symbolEvent),t.set(24,n.W.symbolOperator),t.set(25,n.W.symbolTypeParameter),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for SymbolKind "+e),i=n.W.symbolProperty),i}}(w||(w={}));class L{static fromValue(e){switch(e){case"comment":return L.Comment;case"imports":return L.Imports;case"region":return L.Region}return new L(e)}constructor(e){this.value=e}}L.Comment=new L("comment"),L.Imports=new L("imports"),L.Region=new L("region"),function(e){e[e.AIGenerated=1]="AIGenerated"}(S||(S={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(k||(k={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(x||(x={}));class D{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then((e=>{e&&e.dispose()}))}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const E=new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new r.vl,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,a.s)((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var i;null===(i=this._factories.get(e))||void 0===i||i.dispose();const n=new l(this,e,t);return this._factories.set(e,n),(0,a.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};var N;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(N||(N={}))},82365:(e,t,i)=>{"use strict";i.d(t,{$f:()=>l,MU:()=>d,Yb:()=>c,_t:()=>h,vn:()=>a});var n=i(91508),s=i(38566),o=i(12296),r=i(17469);function a(e,t,i,o=!0,r){if(e<4)return null;const a=r.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!a)return null;if(i<=1)return{indentation:"",action:null};for(let n=i-1;n>0&&""===t.getLineContent(n);n--)if(1===n)return{indentation:"",action:null};const l=function(e,t,i){const n=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let s,o=-1;for(s=t-1;s>=1;s--){if(e.tokenization.getLanguageIdAtPosition(s,0)!==n)return o;const t=e.getLineContent(s);if(!i.shouldIgnore(t)&&!/^\s+$/.test(t)&&""!==t)return s;o=s}}return-1}(t,i,a);if(l<0)return null;if(l<1)return{indentation:"",action:null};const d=t.getLineContent(l);if(a.shouldIncrease(d)||a.shouldIndentNextLine(d))return{indentation:n.UU(d),action:s.l.Indent,line:l};if(a.shouldDecrease(d))return{indentation:n.UU(d),action:null,line:l};{if(1===l)return{indentation:n.UU(t.getLineContent(l)),action:null,line:l};const e=l-1,i=a.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let n=e-1;n>0;n--)if(!a.shouldIndentNextLine(t.getLineContent(n))){i=n;break}return{indentation:n.UU(t.getLineContent(i+1)),action:null,line:i+1}}if(o)return{indentation:n.UU(t.getLineContent(l)),action:null,line:l};for(let o=l;o>0;o--){const e=t.getLineContent(o);if(a.shouldIncrease(e))return{indentation:n.UU(e),action:s.l.Indent,line:o};if(a.shouldIndentNextLine(e)){let e=0;for(let i=o-1;i>0;i--)if(!a.shouldIndentNextLine(t.getLineContent(o))){e=i;break}return{indentation:n.UU(t.getLineContent(e+1)),action:null,line:e+1}}if(a.shouldDecrease(e))return{indentation:n.UU(e),action:null,line:o}}return{indentation:n.UU(t.getLineContent(1)),action:null,line:1}}}function l(e,t,i,o,r,l){if(e<4)return null;const d=l.getLanguageConfiguration(i);if(!d)return null;const h=l.getLanguageConfiguration(i).indentRulesSupport;if(!h)return null;const c=a(e,t,o,void 0,l),u=t.getLineContent(o);if(c){const i=c.line;if(void 0!==i){let a=!0;for(let e=i;e<o-1;e++)if(!/^\s*$/.test(t.getLineContent(e))){a=!1;break}if(a){const o=d.onEnter(e,"",t.getLineContent(i),"");if(o){let e=n.UU(t.getLineContent(i));return o.removeText&&(e=e.substring(0,e.length-o.removeText)),o.indentAction===s.l.Indent||o.indentAction===s.l.IndentOutdent?e=r.shiftIndent(e):o.indentAction===s.l.Outdent&&(e=r.unshiftIndent(e)),h.shouldDecrease(u)&&(e=r.unshiftIndent(e)),o.appendText&&(e+=o.appendText),n.UU(e)}}}return h.shouldDecrease(u)?c.action===s.l.Indent?c.indentation:r.unshiftIndent(c.indentation):c.action===s.l.Indent?r.shiftIndent(c.indentation):c.indentation}return null}function d(e,t,i,l,d){if(e<4)return null;t.tokenization.forceTokenization(i.startLineNumber);const h=t.tokenization.getLineTokens(i.startLineNumber),c=(0,o.BQ)(h,i.startColumn-1),u=c.getLineContent();let g,p,m=!1;if(c.firstCharOffset>0&&h.getLanguageId(0)!==c.languageId?(m=!0,g=u.substr(0,i.startColumn-1-c.firstCharOffset)):g=h.getLineContent().substring(0,i.startColumn-1),i.isEmpty())p=u.substr(i.startColumn-1-c.firstCharOffset);else{p=(0,r.P6)(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-c.firstCharOffset)}const f=d.getLanguageConfiguration(c.languageId).indentRulesSupport;if(!f)return null;const _=g,v=n.UU(g),b={tokenization:{getLineTokens:e=>t.tokenization.getLineTokens(e),getLanguageId:()=>t.getLanguageId(),getLanguageIdAtPosition:(e,i)=>t.getLanguageIdAtPosition(e,i)},getLineContent:e=>e===i.startLineNumber?_:t.getLineContent(e)},C=n.UU(h.getLineContent()),y=a(e,b,i.startLineNumber+1,void 0,d);if(!y){const e=m?C:v;return{beforeEnter:e,afterEnter:e}}let w=m?C:y.indentation;return y.action===s.l.Indent&&(w=l.shiftIndent(w)),f.shouldDecrease(p)&&(w=l.unshiftIndent(w)),{beforeEnter:m?C:v,afterEnter:w}}function h(e,t,i,n,o,l){if(e<4)return null;const d=(0,r.P6)(t,i.startLineNumber,i.startColumn);if(d.firstCharOffset)return null;const h=l.getLanguageConfiguration(d.languageId).indentRulesSupport;if(!h)return null;const c=d.getLineContent(),u=c.substr(0,i.startColumn-1-d.firstCharOffset);let g;if(i.isEmpty())g=c.substr(i.startColumn-1-d.firstCharOffset);else{g=(0,r.P6)(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-d.firstCharOffset)}if(!h.shouldDecrease(u+g)&&h.shouldDecrease(u+n+g)){const n=a(e,t,i.startLineNumber,!1,l);if(!n)return null;let r=n.indentation;return n.action!==s.l.Indent&&(r=o.unshiftIndent(r)),r}return null}function c(e,t,i){const n=i.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null}},63346:(e,t,i)=>{"use strict";i.d(t,{h:()=>o});var n=i(38566),s=i(17469);function o(e,t,i,o){const r=(0,s.P6)(t,i.startLineNumber,i.startColumn),a=o.getLanguageConfiguration(r.languageId);if(!a)return null;const l=r.getLineContent(),d=l.substr(0,i.startColumn-1-r.firstCharOffset);let h;if(i.isEmpty())h=l.substr(i.startColumn-1-r.firstCharOffset);else{h=(0,s.P6)(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-r.firstCharOffset)}let c="";if(i.startLineNumber>1&&0===r.firstCharOffset){const e=(0,s.P6)(t,i.startLineNumber-1);e.languageId===r.languageId&&(c=e.getLineContent())}const u=a.onEnter(e,c,d,h);if(!u)return null;const g=u.indentAction;let p=u.appendText;const m=u.removeText||0;p?g===n.l.Indent&&(p="\t"+p):p=g===n.l.Indent||g===n.l.IndentOutdent?"\t":"";let f=(0,s.Cw)(t,i.startLineNumber,i.startColumn);return m&&(f=f.substring(0,f.length-m)),{indentAction:g,appendText:p,removeText:m,indentation:f}}},10154:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});const n=(0,i(63591).u1)("languageService")},38566:(e,t,i)=>{"use strict";var n;i.d(t,{GB:()=>o,i3:()=>s,l:()=>n}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(n||(n={}));class s{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const i=e.findTokenIndexAtOffset(t-2),n=e.getStandardTokenType(i);return this.isOK(n)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){const e=String.fromCharCode(i);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class o{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)r(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),r(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),r(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),r(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&r(this.autoClosingPairsCloseSingleChar,t.close,t)}}function r(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}},17469:(e,t,i)=>{"use strict";i.d(t,{JZ:()=>I,Cw:()=>O,P6:()=>P});var n=i(41234),s=i(5662),o=i(91508),r=i(26486),a=i(38566),l=i(12296);class d{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new a.i3(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new a.i3({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.i3({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t",d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t";var h=i(25890),c=i(56772);class u{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const t=i.charAt(i.length-1);e.push(t)}return(0,h.dM)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const n=t.findTokenIndexAtOffset(i-1);if((0,l.Yo)(t.getStandardTokenType(n)))return null;const s=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,i-1)+e,r=c.Fu.findPrevBracketInRange(s,1,o,0,o.length);if(!r)return null;const a=o.substring(r.startColumn-1,r.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const d=t.getActualLineContentBefore(r.startColumn-1);return/^\s*$/.test(d)?{matchOpenBracket:a}:null}}function g(e){return e.global&&(e.lastIndex=0),!0}class p{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&g(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&g(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&g(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&g(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}var m=i(64383);class f{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=f._createOpenBracketRegExp(e[0]),i=f._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let s=0,o=this._regExpRules.length;s<o;s++){const e=this._regExpRules[s];if([{reg:e.beforeText,text:i},{reg:e.afterText,text:n},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&i.length>0&&n.length>0)for(let s=0,o=this._brackets.length;s<o;s++){const e=this._brackets[s];if(e.openRegExp.test(i)&&e.closeRegExp.test(n))return{indentAction:a.l.IndentOutdent}}if(e>=2&&i.length>0)for(let s=0,o=this._brackets.length;s<o;s++){if(this._brackets[s].openRegExp.test(i))return{indentAction:a.l.Indent}}return null}static _createOpenBracketRegExp(e){let t=o.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",f._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=o.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,f._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,m.dz)(t),null}}}var _=i(63591),v=i(84001),b=i(10154),C=i(14718),y=i(83941),w=i(81788);class S{constructor(e,t){this.languageId=e;const i=t.brackets?k(t.brackets):[],n=new w.V((e=>{const t=new Set;return{info:new L(this,e,t),closing:t}})),s=new w.V((e=>{const t=new Set,i=new Set;return{info:new D(this,e,t,i),opening:t,openingColorized:i}}));for(const[r,a]of i){const e=n.get(r),t=s.get(a);e.closing.add(t.info),t.opening.add(e.info)}const o=t.colorizedBracketPairs?k(t.colorizedBracketPairs):i.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[r,a]of o){const e=n.get(r),t=s.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...n.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...s.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function k(e){return e.filter((([e,t])=>""!==e&&""!==t))}class x{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class L extends x{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class D extends x{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var E=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},N=function(e,t){return function(i,n){t(i,n,e)}};class T{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const I=(0,_.u1)("languageConfigurationService");let M=class extends s.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new H),this.onDidChangeEmitter=this._register(new n.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(A));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>i.has(e))),n=e.change.overrides.filter((([e,t])=>t.some((e=>i.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new T(void 0));else for(const i of n)this.languageService.isRegisteredLanguageId(i)&&(this.configurations.delete(i),this.onDidChangeEmitter.fire(new T(i)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new T(e.languageId))})))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,i,n){let s=t.getLanguageConfiguration(e);if(!s){if(!n.isRegisteredLanguageId(e))return new z(e,{});s=new z(e,{})}const o=function(e,t){const i=t.getValue(A.brackets,{overrideIdentifier:e}),n=t.getValue(A.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:R(i),colorizedBracketPairs:R(n)}}(s.languageId,i),r=B([s.underlyingConfig,o]);return new z(s.languageId,r)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};M=E([N(0,v.pG),N(1,b.L)],M);const A={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function R(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}function O(e,t,i){const n=e.getLineContent(t);let s=o.UU(n);return s.length>i-1&&(s=s.substring(0,i-1)),s}function P(e,t,i){e.tokenization.forceTokenization(t);const n=e.tokenization.getLineTokens(t),s="undefined"===typeof i?e.getLineMaxColumn(t)-1:i-1;return(0,l.BQ)(n,s)}class F{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new W(e,t,++this._order);return this._entries.push(i),this._resolved=null,(0,s.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===i){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new z(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(W.cmp),B(this._entries.map((e=>e.configuration))))}}function B(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const i of e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t}class W{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class V{constructor(e){this.languageId=e}}class H extends s.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(y.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let n=this._entries.get(e);n||(n=new F(e),this._entries.set(e,n));const o=n.register(t,i);return this._onDidChange.fire(new V(e)),(0,s.s)((()=>{o.dispose(),this._onDidChange.fire(new V(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return(null===t||void 0===t?void 0:t.getResolvedConfiguration())||null}}class z{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new f(this.underlyingConfig):null,this.comments=z._handleComments(this.underlyingConfig),this.characterPair=new d(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||r.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new p(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new S(e,this.underlyingConfig)}getWordDefinition(){return(0,r.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new c.az(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new u(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new a.GB(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[e,n]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=n}return i}}(0,C.v)(I,M,1)},83941:(e,t,i)=>{"use strict";i.d(t,{W6:()=>l,vH:()=>d});var n=i(31629),s=i(41234),o=i(46359),r=i(44320),a=i(1646);const l=new class{constructor(){this._onDidChangeLanguages=new s.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t<i;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};o.O.add("editor.modesRegistry",l);const d="plaintext";l.registerLanguage({id:d,extensions:[".txt"],aliases:[n.kg("plainText.alias","Plain Text"),"text"],mimetypes:[r.K.text]}),o.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},20788:(e,t,i)=>{"use strict";i.d(t,{$H:()=>o,Lh:()=>r,r3:()=>s});var n=i(62083);const s=new class{clone(){return this}equals(e){return this===e}};function o(e,t){return new n.$M([new n.ou(0,"",e)],t)}function r(e,t){const i=new Uint32Array(2);return i[0]=0,i[1]=(32768|e|2<<24)>>>0,new n.rY(i,null===t?s:t)}},12296:(e,t,i)=>{"use strict";function n(e,t){const i=e.getCount(),n=e.findTokenIndexAtOffset(t),o=e.getLanguageId(n);let r=n;for(;r+1<i&&e.getLanguageId(r+1)===o;)r++;let a=n;for(;a>0&&e.getLanguageId(a-1)===o;)a--;return new s(e,o,a,r+1,e.getStartOffset(a),e.getEndOffset(r))}i.d(t,{BQ:()=>n,Yo:()=>o});class s{constructor(e,t,i,n,s,o){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=s,this._lastCharOffset=o}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function o(e){return 0!==(3&e)}},56772:(e,t,i)=>{"use strict";i.d(t,{Fu:()=>p,az:()=>a});var n=i(91508),s=i(99020),o=i(36677);class r{constructor(e,t,i,n,s,o){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=i,this.close=n,this.forwardRegex=s,this.reversedRegex=o,this._openSet=r._toSet(this.open),this._closeSet=r._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const i of e)t.add(i);return t}}class a{constructor(e,t){this._richEditBracketsBrand=void 0;const i=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const i=[];for(let r=0;r<t;r++)i[r]=r;const n=(e,t)=>{const[i,n]=e,[s,o]=t;return i===s||i===o||n===s||n===o},s=(e,n)=>{const s=Math.min(e,n),o=Math.max(e,n);for(let r=0;r<t;r++)i[r]===o&&(i[r]=s)};for(let r=0;r<t;r++){const o=e[r];for(let a=r+1;a<t;a++)n(o,e[a])&&s(i[r],i[a])}const o=[];for(let r=0;r<t;r++){const n=[],s=[];for(let o=0;o<t;o++)if(i[o]===r){const[t,i]=e[o];n.push(t),s.push(i)}n.length>0&&o.push({open:n,close:s})}return o}(t);this.brackets=i.map(((t,n)=>new r(e,n,t.open,t.close,function(e,t,i,n){let s=[];s=s.concat(e),s=s.concat(t);for(let o=0,r=s.length;o<r;o++)l(s[o],i,n,s);return s=h(s),s.sort(d),s.reverse(),u(s)}(t.open,t.close,i,n),function(e,t,i,n){let s=[];s=s.concat(e),s=s.concat(t);for(let o=0,r=s.length;o<r;o++)l(s[o],i,n,s);return s=h(s),s.sort(d),s.reverse(),u(s.map(g))}(t.open,t.close,i,n)))),this.forwardRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t.map(g))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const n of this.brackets){for(const e of n.open)this.textIsBracket[e]=n,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of n.close)this.textIsBracket[e]=n,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function l(e,t,i,n){for(let s=0,o=t.length;s<o;s++){if(s===i)continue;const o=t[s];for(const t of o.open)t.indexOf(e)>=0&&n.push(t);for(const t of o.close)t.indexOf(e)>=0&&n.push(t)}}function d(e,t){return e.length-t.length}function h(e){if(e.length<=1)return e;const t=[],i=new Set;for(const n of e)i.has(n)||(t.push(n),i.add(n));return t}function c(e){const t=/^[\w ]+$/.test(e);return e=n.bm(e),t?`\\b${e}\\b`:e}function u(e){const t=`(${e.map(c).join(")|(")})`;return n.OS(t,!0)}const g=function(){let e=null,t=null;return function(i){return e!==i&&(e=i,t=function(e){const t=new Uint16Array(e.length);let i=0;for(let n=e.length-1;n>=0;n--)t[i++]=e.charCodeAt(n);return s.b7().decode(t)}(e)),t}}();class p{static _findPrevBracketInText(e,t,i,n){const s=i.match(e);if(!s)return null;const r=i.length-(s.index||0),a=s[0].length,l=n+r;return new o.Q(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,n,s){const o=g(i).substring(i.length-s,i.length-n);return this._findPrevBracketInText(e,t,o,n)}static findNextBracketInText(e,t,i,n){const s=i.match(e);if(!s)return null;const r=s.index||0,a=s[0].length;if(0===a)return null;const l=n+r;return new o.Q(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,n,s){const o=i.substring(n,s);return this.findNextBracketInText(e,t,o,n)}}},58314:(e,t,i)=>{"use strict";i.d(t,{Yj:()=>l,s0:()=>d});var n=i(91508),s=i(87469),o=i(62083),r=i(20788);const a={getInitialState:()=>r.r3,tokenizeEncoded:(e,t,i)=>(0,r.Lh)(0,i)};async function l(e,t,i){if(!i)return h(t,e.languageIdCodec,a);const n=await o.dG.getOrCreate(i);return h(t,e.languageIdCodec,n||a)}function d(e,t,i,n,s,o,r){let a="<div>",l=n,d=0,h=!0;for(let c=0,u=t.getCount();c<u;c++){const u=t.getEndOffset(c);if(u<=n)continue;let g="";for(;l<u&&l<s;l++){const t=e.charCodeAt(l);switch(t){case 9:{let e=o-(l+d)%o;for(d+=e-1;e>0;)r&&h?(g+=" ",h=!1):(g+=" ",h=!0),e--;break}case 60:g+="<",h=!1;break;case 62:g+=">",h=!1;break;case 38:g+="&",h=!1;break;case 0:g+="�",h=!1;break;case 65279:case 8232:case 8233:case 133:g+="\ufffd",h=!1;break;case 13:g+="​",h=!1;break;case 32:r&&h?(g+=" ",h=!1):(g+=" ",h=!0);break;default:g+=String.fromCharCode(t),h=!1}}if(a+=`<span style="${t.getInlineStyle(c,i)}">${g}</span>`,u>s||l>=s)break}return a+="</div>",a}function h(e,t,i){let o='<div class="monaco-tokenized-source">';const r=n.uz(e);let a=i.getInitialState();for(let l=0,d=r.length;l<d;l++){const e=r[l];l>0&&(o+="<br/>");const d=i.tokenizeEncoded(e,!0,a);s.f.convertToEndOffset(d.tokens,e.length);const h=new s.f(d.tokens,e,t).inflate();let c=0;for(let t=0,i=h.getCount();t<i;t++){const i=h.getClassName(t),s=h.getEndOffset(t);o+=`<span class="${i}">${n.ih(e.substring(c,s))}</span>`,c=s}a=d.endState}return o+="</div>",o}},16223:(e,t,i)=>{"use strict";i.d(t,{A5:()=>n,Dg:()=>l,F4:()=>u,L5:()=>c,VW:()=>o,Wo:()=>h,X2:()=>a,ZS:()=>s,nk:()=>d,vd:()=>g});var n,s,o,r=i(10146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(n||(n={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(s||(s={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(o||(o={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,r.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function d(e){return e&&"function"===typeof e.read}class h{constructor(e,t,i,n,s,o){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=s,this._isTracked=o}}class c{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class u{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},40579:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>v,Nn:()=>l,Xw:()=>d,rh:()=>_,yF:()=>f});var n=i(64383),s=i(1245),o=i(19131),r=i(32956);class a{get length(){return this._length}constructor(e){this._length=e}}class l extends a{static create(e,t,i){let n=e.length;return t&&(n=(0,o.QB)(n,t.length)),i&&(n=(0,o.QB)(n,i.length)),new l(n,e,t,i,t?t.missingOpeningBracketIds:r.gV.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,i,n,s){super(e),this.openingBracket=t,this.child=i,this.closingBracket=n,this.missingOpeningBracketIds=s}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new l(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation((0,o.QB)(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class d extends a{static create23(e,t,i,n=!1){let s=e.length,r=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(s=(0,o.QB)(s,t.length),r=r.merge(t.missingOpeningBracketIds),i){if(e.listHeight!==i.listHeight)throw new Error("Invalid list heights");s=(0,o.QB)(s,i.length),r=r.merge(i.missingOpeningBracketIds)}return n?new c(s,e.listHeight+1,e,t,i,r):new h(s,e.listHeight+1,e,t,i,r)}static getEmpty(){return new g(o.Vp,0,[],r.gV.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,i){super(e),this.listHeight=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),i=4===t.kind?t.toMutable():t;return t!==i&&this.setChild(e-1,i),i}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new n.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let n=1;n<e;n++){const e=this.getChild(n);t=(0,o.QB)(t,e.length),i=i.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let i=Number.MAX_SAFE_INTEGER,n=e;for(let s=0;s<this.childrenLength;s++){const e=this.getChild(s);e&&(i=Math.min(i,e.computeMinIndentation(n,t)),n=(0,o.QB)(n,e.length))}return this.cachedMinIndentation=i,i}}class h extends d{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,i,n,s,o){super(e,t,o),this._item1=i,this._item2=n,this._item3=s}deepClone(){return new h(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class c extends h{toMutable(){return new h(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class u extends d{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,i,n){super(e,t,n),this._children=i}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new u(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class g extends u{toMutable(){return new u(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const p=[];class m extends a{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return p}deepClone(){return this}}class f extends m{get kind(){return 0}get missingOpeningBracketIds(){return r.gV.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const i=(0,o.l4)(e),n=(0===i.columnCount?i.lineCount:i.lineCount+1)+1,r=(0,o.eu)((0,o.QB)(e,this.length))+1;let a=Number.MAX_SAFE_INTEGER;for(let o=n;o<=r;o++){const e=t.getLineFirstNonWhitespaceColumn(o),i=t.getLineContent(o);if(0===e)continue;const n=s.A.visibleColumnFromColumn(i,e,t.getOptions().tabSize);a=Math.min(a,n)}return a}}class _ extends m{static create(e,t,i){return new _(e,t,i)}get kind(){return 1}get missingOpeningBracketIds(){return r.gV.getEmpty()}constructor(e,t,i){super(e),this.bracketInfo=t,this.bracketIds=i}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class v extends m{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}},94650:(e,t,i)=>{"use strict";i.d(t,{W:()=>r,c:()=>o});var n=i(36677),s=i(19131);class o{static fromModelContentChanges(e){return e.map((e=>{const t=n.Q.lift(e.range);return new o((0,s.VL)(t.getStartPosition()),(0,s.VL)(t.getEndPosition()),(0,s.rR)(e.text))})).reverse()}constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}toString(){return`[${(0,s.l4)(this.startOffset)}...${(0,s.l4)(this.endOffset)}) -> ${(0,s.l4)(this.newLength)}`}}class r{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>a.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):null;return null===i?null:(0,s.MS)(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?(0,s.qe)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):(0,s.qe)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=(0,s.l4)(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,s.qe)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):(0,s.qe)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],i=this.translateOldToCur(t.endOffsetAfterObj);if(!(0,s.vr)(i,e))break;{this.nextEditIdx++;const e=(0,s.l4)(i),n=(0,s.l4)(this.translateOldToCur(t.endOffsetBeforeObj)),o=e.lineCount-n.lineCount;this.deltaOldToNewLineCount+=o;const r=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,a=e.columnCount-n.columnCount;this.deltaOldToNewColumnCount=r+a,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class a{static from(e){return new a(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,i){this.endOffsetBeforeObj=(0,s.l4)(t),this.endOffsetAfterObj=(0,s.l4)((0,s.QB)(e,i)),this.offsetObj=(0,s.l4)(e)}}},93630:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(91508),s=i(40579),o=i(19131),r=i(32956),a=i(51934);class l{static createFromLanguage(e,t){function i(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const n=new Map;for(const l of e.bracketsNew.openingBrackets){const e=(0,o.qe)(0,l.bracketText.length),t=i(l),d=r.gV.getEmpty().add(t,r.FD);n.set(l.bracketText,new a.ou(e,1,t,d,s.rh.create(e,l,d)))}for(const l of e.bracketsNew.closingBrackets){const e=(0,o.qe)(0,l.bracketText.length);let t=r.gV.getEmpty();const d=l.getOpeningBrackets();for(const n of d)t=t.add(i(n),r.FD);n.set(l.bracketText,new a.ou(e,2,i(d[0]),t,s.rh.create(e,l,t)))}return new l(n)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,n.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(2===i.kind&&i.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class d{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=l.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}},84084:(e,t,i)=>{"use strict";i.d(t,{M:()=>r});var n=i(25890),s=i(94650),o=i(19131);function r(e,t){if(0===e.length)return t;if(0===t.length)return e;const i=new n.j3(l(e)),r=l(t);r.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let d=i.dequeue();function h(e){if(void 0===e){const e=i.takeWhile((e=>!0))||[];return d&&e.unshift(d),e}const t=[];for(;d&&!(0,o.Vh)(e);){const[n,s]=d.splitAt(e);t.push(n),e=(0,o.MS)(n.lengthAfter,e),d=null!==s&&void 0!==s?s:i.dequeue()}return(0,o.Vh)(e)||t.push(new a(!1,e,e)),t}const c=[];function u(e,t,i){if(c.length>0&&(0,o.wP)(c[c.length-1].endOffset,e)){const e=c[c.length-1];c[c.length-1]=new s.c(e.startOffset,t,(0,o.QB)(e.newLength,i))}else c.push({startOffset:e,endOffset:t,newLength:i})}let g=o.Vp;for(const n of r){const e=h(n.lengthBefore);if(n.modified){const t=(0,o.pW)(e,(e=>e.lengthBefore)),i=(0,o.QB)(g,t);u(g,i,n.lengthAfter),g=i}else for(const t of e){const e=g;g=(0,o.QB)(g,t.lengthBefore),t.modified&&u(e,g,t.lengthAfter)}}return c}class a{constructor(e,t,i){this.modified=e,this.lengthBefore=t,this.lengthAfter=i}splitAt(e){const t=(0,o.MS)(e,this.lengthAfter);return(0,o.wP)(t,o.Vp)?[this,void 0]:this.modified?[new a(this.modified,this.lengthBefore,e),new a(this.modified,o.Vp,t)]:[new a(this.modified,e,e),new a(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${(0,o.l4)(this.lengthBefore)} -> ${(0,o.l4)(this.lengthAfter)}`}}function l(e){const t=[];let i=o.Vp;for(const n of e){const e=(0,o.MS)(i,n.startOffset);(0,o.Vh)(e)||t.push(new a(!1,e,e));const s=(0,o.MS)(n.startOffset,n.endOffset);t.push(new a(!0,s,n.newLength)),i=n.endOffset}return t}},19131:(e,t,i)=>{"use strict";i.d(t,{C7:()=>r,MS:()=>_,QB:()=>p,Qx:()=>w,VL:()=>y,Vh:()=>l,Vp:()=>a,eu:()=>u,l4:()=>c,o0:()=>C,pW:()=>m,qe:()=>h,rR:()=>S,sS:()=>g,vr:()=>b,wP:()=>f,zG:()=>v});var n=i(91508),s=i(36677),o=i(50973);function r(e,t,i,n){return e!==i?h(i-e,n):h(0,n-t)}const a=0;function l(e){return 0===e}const d=2**26;function h(e,t){return e*d+t}function c(e){const t=e,i=Math.floor(t/d),n=t-i*d;return new o.W(i,n)}function u(e){return Math.floor(e/d)}function g(e){return e}function p(e,t){let i=e+t;return t>=d&&(i-=e%d),i}function m(e,t){return e.reduce(((e,i)=>p(e,t(i))),a)}function f(e,t){return e===t}function _(e,t){const i=e,n=t;if(n-i<=0)return a;const s=Math.floor(i/d),o=Math.floor(n/d),r=n-o*d;if(s===o){return h(0,r-(i-s*d))}return h(o-s,r)}function v(e,t){return e<t}function b(e,t){return e<=t}function C(e,t){return e>=t}function y(e){return h(e.lineNumber-1,e.column-1)}function w(e,t){const i=e,n=Math.floor(i/d),o=i-n*d,r=t,a=Math.floor(r/d),l=r-a*d;return new s.Q(n+1,o+1,a+1,l+1)}function S(e){const t=(0,n.uz)(e);return h(t.length-1,t[t.length-1].length)}},19562:(e,t,i)=>{"use strict";i.d(t,{T:()=>g});var n=i(40579),s=i(94650),o=i(32956),r=i(19131);function a(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){const s=i>>1;for(let o=0;o<s;o++){const s=o<<1;e[o]=n.Xw.create23(e[s],e[s+1],s+3===i?e[s+2]:null,t)}i=s}return n.Xw.create23(e[0],e[1],i>=3?e[2]:null,t)}function l(e,t){return Math.abs(e.listHeight-t.listHeight)}function d(e,t){return e.listHeight===t.listHeight?n.Xw.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i=e=e.toMutable();const s=[];let o;for(;;){if(t.listHeight===i.listHeight){o=t;break}if(4!==i.kind)throw new Error("unexpected");s.push(i),i=i.makeLastElementMutable()}for(let r=s.length-1;r>=0;r--){const e=s[r];o?e.childrenLength>=3?o=n.Xw.create23(e.unappendChild(),o,null,!1):(e.appendChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?n.Xw.create23(e,o,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable();const s=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw new Error("unexpected");s.push(i),i=i.makeFirstElementMutable()}let o=t;for(let r=s.length-1;r>=0;r--){const e=s[r];o?e.childrenLength>=3?o=n.Xw.create23(o,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?n.Xw.create23(o,e,null,!1):e}(t,e)}class h{constructor(e){this.lastOffset=r.Vp,this.nextNodes=[e],this.offsets=[r.Vp],this.idxs=[]}readLongestNodeAt(e,t){if((0,r.zG)(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=u(this.nextNodes);if(!i)return;const n=u(this.offsets);if((0,r.zG)(e,n))return;if((0,r.zG)(n,e))if((0,r.QB)(n,i.length)<=e)this.nextNodeAfterCurrent();else{const e=c(i);-1!==e?(this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const e=c(i);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=u(this.offsets),t=u(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const i=u(this.nextNodes),n=c(i,this.idxs[this.idxs.length-1]);if(-1!==n){this.nextNodes.push(i.getChild(n)),this.offsets.push((0,r.QB)(e,t.length)),this.idxs[this.idxs.length-1]=n;break}this.idxs.pop()}}}function c(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function u(e){return e.length>0?e[e.length-1]:void 0}function g(e,t,i,n){return new p(e,t,i,n).parseDocument()}class p{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw new Error("Not supported");this.oldNodeReader=i?new h(i):void 0,this.positionMapper=new s.W(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(o.gV.getEmpty(),0);return e||(e=n.Xw.getEmpty()),e}parseList(e,t){const i=[];for(;;){let n=this.tryReadChildFromCache(e);if(!n){const i=this.tokenizer.peek();if(!i||2===i.kind&&i.bracketIds.intersects(e))break;n=this.parseChild(e,t+1)}4===n.kind&&0===n.childrenLength||i.push(n)}const n=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;const i=t,n=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===n;)t++;return t-i>=2?a(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let n=i(),s=i();if(!s)return n;for(let o=i();o;o=i())l(n,s)<=l(s,o)?(n=d(n,s),s=o):s=d(s,o);return d(n,s)}(i):a(i,this.createImmutableLists);return n}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!(0,r.Vh)(t)){const i=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(i=>{if(null!==t&&!(0,r.zG)(i.length,t))return!1;return i.canBeReused(e)}));if(i)return this._itemsFromCache++,this.tokenizer.skip(i.length),i}}}parseChild(e,t){this._itemsConstructed++;const i=this.tokenizer.read();switch(i.kind){case 2:return new n.Gc(i.bracketIds,i.length);case 0:return i.astNode;case 1:{if(t>300)return new n.yF(i.length);const s=e.merge(i.bracketIds),o=this.parseList(s,t+1),r=this.tokenizer.peek();return r&&2===r.kind&&(r.bracketId===i.bracketId||r.bracketIds.intersects(i.bracketIds))?(this.tokenizer.read(),n.Nn.create(i.astNode,o,r.astNode)):n.Nn.create(i.astNode,o,null)}default:throw new Error("unexpected")}}}},32956:(e,t,i)=>{"use strict";i.d(t,{FD:()=>o,Mg:()=>r,gV:()=>s});const n=[];class s{static create(e,t){if(e<=128&&0===t.length){let i=s.cache[e];return i||(i=new s(e,t),s.cache[e]=i),i}return new s(e,t)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const i=t.getKey(e);let n=i>>5;if(0===n){const e=1<<i|this.items;return e===this.items?this:s.create(e,this.additionalItems)}n--;const o=this.additionalItems.slice(0);for(;o.length<n;)o.push(0);return o[n]|=1<<(31&i),s.create(this.items,o)}merge(e){const t=this.items|e.items;if(this.additionalItems===n&&e.additionalItems===n)return t===this.items?this:t===e.items?e:s.create(t,n);const i=[];for(let n=0;n<Math.max(this.additionalItems.length,e.additionalItems.length);n++){const t=this.additionalItems[n]||0,s=e.additionalItems[n]||0;i.push(t|s)}return s.create(t,i)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}s.cache=new Array(129),s.empty=s.create(0,n);const o={getKey:e=>e};class r{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}},51934:(e,t,i)=>{"use strict";i.d(t,{_:()=>c,ou:()=>l,tk:()=>d});var n=i(64383),s=i(25982),o=i(40579),r=i(19131),a=i(32956);class l{constructor(e,t,i,n,s){this.length=e,this.kind=t,this.bracketId=i,this.bracketIds=n,this.astNode=s}}class d{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new h(this.textModel,this.bracketTokens),this._offset=r.Vp,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return(0,r.qe)(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=(0,r.QB)(this._offset,e);const t=(0,r.l4)(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=(0,r.QB)(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class h{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=(0,r.sS)(e.length),e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const n=this.lineTokens,o=n.getCount();let a=null;if(this.lineTokenOffset<o){const l=n.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<o&&l===n.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const d=0===s.x.getTokenType(l),h=s.x.containsBalancedBrackets(l),c=n.getEndOffset(this.lineTokenOffset);if(h&&d&&this.lineCharOffset<c){const e=n.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,c),i=this.bracketTokens.getSingleLanguageBracketTokens(e),s=i.regExpGlobal;if(s){s.lastIndex=0;const e=s.exec(t);e&&(a=i.getToken(e[0]),a&&(this.lineCharOffset+=e.index))}}if(i+=c-this.lineCharOffset,a){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=a;break}return this.lineCharOffset+=(0,r.sS)(a.length),a}this.lineTokenOffset++,this.lineCharOffset=c}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,i+=33,i>1e3)break}if(i>1500)break}const n=(0,r.C7)(e,t,this.lineIdx,this.lineCharOffset);return new l(n,0,-1,a.gV.getEmpty(),new o.yF(n))}}class c{constructor(e,t){this.text=e,this._offset=r.Vp,this.idx=0;const i=t.getRegExpStr(),n=i?new RegExp(i+"|\n","gi"):null,s=[];let d,h=0,c=0,u=0,g=0;const p=[];for(let _=0;_<60;_++)p.push(new l((0,r.qe)(0,_),0,-1,a.gV.getEmpty(),new o.yF((0,r.qe)(0,_))));const m=[];for(let _=0;_<60;_++)m.push(new l((0,r.qe)(1,_),0,-1,a.gV.getEmpty(),new o.yF((0,r.qe)(1,_))));if(n)for(n.lastIndex=0;null!==(d=n.exec(e));){const e=d.index,i=d[0];if("\n"===i)h++,c=e+1;else{if(u!==e){let t;if(g===h){const i=e-u;if(i<p.length)t=p[i];else{const e=(0,r.qe)(0,i);t=new l(e,0,-1,a.gV.getEmpty(),new o.yF(e))}}else{const i=h-g,n=e-c;if(1===i&&n<m.length)t=m[n];else{const e=(0,r.qe)(i,n);t=new l(e,0,-1,a.gV.getEmpty(),new o.yF(e))}}s.push(t)}s.push(t.getToken(i)),u=e+i.length,g=h}}const f=e.length;if(u!==f){const e=g===h?(0,r.qe)(0,f-u):(0,r.qe)(h-g,f-c);s.push(new l(e,0,-1,a.gV.getEmpty(),new o.yF(e)))}this.length=(0,r.qe)(h,f-c),this.tokens=s}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new n.EM}}},26656:(e,t,i)=>{"use strict";i.d(t,{Th:()=>m,z8:()=>f});var n=i(31629),s=i(64383),o=i(75326),r=i(79400),a=i(64829),l=i(81674),d=i(89403);function h(e){return e.toString()}class c{static create(e,t){const i=e.getAlternativeVersionId(),n=p(e);return new c(i,i,n,n,t,t,[])}constructor(e,t,i,n,s,o,r){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=s,this.afterCursorState=o,this.changes=r}append(e,t,i,n,s){t.length>0&&(this.changes=(0,a.x)(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=s}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(l.Sw(e,t?t.length:0,i),i+=4,t)for(const n of t)l.Sw(e,n.selectionStartLineNumber,i),i+=4,l.Sw(e,n.selectionStartColumn,i),i+=4,l.Sw(e,n.positionLineNumber,i),i+=4,l.Sw(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=l.bb(e,t);t+=4;for(let s=0;s<n;s++){const n=l.bb(e,t);t+=4;const s=l.bb(e,t);t+=4;const r=l.bb(e,t);t+=4;const a=l.bb(e,t);t+=4,i.push(new o.L(n,s,r,a))}return t}serialize(){let e=10+c._writeSelectionsSize(this.beforeCursorState)+c._writeSelectionsSize(this.afterCursorState)+4;for(const n of this.changes)e+=n.writeSize();const t=new Uint8Array(e);let i=0;l.Sw(t,this.beforeVersionId,i),i+=4,l.Sw(t,this.afterVersionId,i),i+=4,l.Gs(t,this.beforeEOL,i),i+=1,l.Gs(t,this.afterEOL,i),i+=1,i=c._writeSelections(t,this.beforeCursorState,i),i=c._writeSelections(t,this.afterCursorState,i),l.Sw(t,this.changes.length,i),i+=4;for(const n of this.changes)i=n.write(t,i);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let i=0;const n=l.bb(t,i);i+=4;const s=l.bb(t,i);i+=4;const o=l.pJ(t,i);i+=1;const r=l.pJ(t,i);i+=1;const d=[];i=c._readSelections(t,i,d);const h=[];i=c._readSelections(t,i,h);const u=l.bb(t,i);i+=4;const g=[];for(let l=0;l<u;l++)i=a.k.read(t,i,g);return new c(n,s,o,r,d,h,g)}}class u{get type(){return 0}get resource(){return r.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,i,n){this.label=e,this.code=t,this.model=i,this._data=c.create(i,n)}toString(){return(this._data instanceof c?this._data:c.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(r.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof c}append(e,t,i,n,s){this._data instanceof c&&this._data.append(e,t,i,n,s)}close(){this._data instanceof c&&(this._data=this._data.serialize())}open(){this._data instanceof c||(this._data=c.deserialize(this._data))}undo(){if(r.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof c&&(this._data=this._data.serialize());const e=c.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(r.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof c&&(this._data=this._data.serialize());const e=c.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof c&&(this._data=this._data.serialize()),this._data.byteLength+168}}class g{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const n of this._editStackElementsArr){const e=h(n.resource);this._editStackElementsMap.set(e,n)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=h(e);return this._editStackElementsMap.has(t)}setModel(e){const t=h(r.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=h(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,i,n,s){const o=h(e.uri);this._editStackElementsMap.get(o).append(e,t,i,n,s)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=h(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,d.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function p(e){return"\n"===e.getEOL()?0:1}function m(e){return!!e&&(e instanceof u||e instanceof g)}class f{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const i=this._undoRedoService.getLastElement(this._model.uri);if(m(i)&&i.canAppend(this._model))return i;const s=new u(n.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(s,t),s}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],p(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i,n){const s=this._getOrCreateEditStackElement(e,n),o=this._model.applyEdits(t,!0),r=f._computeCursorState(i,o),a=o.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),s.append(this._model,a.map((e=>e.textChange)),p(this._model),this._model.getAlternativeVersionId(),r),r}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return(0,s.dz)(i),null}}}},53450:(e,t,i)=>{"use strict";i.d(t,{P:()=>c,k:()=>u});var n=i(46041),s=i(91508),o=i(1245),r=i(36677),a=i(20761),l=i(78049),d=i(84739),h=i(64383);class c extends a._{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return(0,l.G)(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,i){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new h.D7("Illegal value for lineNumber");const s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,o=Boolean(s&&s.offSide);let r=-2,a=-1,l=-2,d=-1;const c=e=>{if(-1!==r&&(-2===r||r>e-1)){r=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){r=t,a=e;break}}}if(-2===l){l=-1,d=-1;for(let t=e;t<n;t++){const e=this._computeIndentLevel(t);if(e>=0){l=t,d=e;break}}}};let u=-2,g=-1,p=-2,m=-1;const f=e=>{if(-2===u){u=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,g=e;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1,m=-1;for(let t=e;t<n;t++){const e=this._computeIndentLevel(t);if(e>=0){p=t,m=e;break}}}};let _=0,v=!0,b=0,C=!0,y=0,w=0;for(let h=0;v||C;h++){const s=e-h,r=e+h;h>1&&(s<1||s<t)&&(v=!1),h>1&&(r>n||r>i)&&(C=!1),h>5e4&&(v=!1,C=!1);let p=-1;if(v&&s>=1){const e=this._computeIndentLevel(s-1);e>=0?(l=s-1,d=e,p=Math.ceil(e/this.textModel.getOptions().indentSize)):(c(s),p=this._getIndentLevelForWhitespaceLine(o,a,d))}let S=-1;if(C&&r<=n){const e=this._computeIndentLevel(r-1);e>=0?(u=r-1,g=e,S=Math.ceil(e/this.textModel.getOptions().indentSize)):(f(r),S=this._getIndentLevelForWhitespaceLine(o,g,m))}if(0!==h){if(1===h){if(r<=n&&S>=0&&w+1===S){v=!1,_=r,b=r,y=S;continue}if(s>=1&&p>=0&&p-1===w){C=!1,_=s,b=s,y=p;continue}if(_=e,b=e,y=w,0===y)return{startLineNumber:_,endLineNumber:b,indent:y}}v&&(p>=y?_=s:v=!1),C&&(S>=y?b=r:C=!1)}else w=p}return{startLineNumber:_,endLineNumber:b,indent:y}}getLinesBracketGuides(e,t,i,o){var a;const l=[];for(let n=e;n<=t;n++)l.push([]);const h=!0,c=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new r.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let g;if(i&&c.length>0){const s=(e<=i.lineNumber&&i.lineNumber<=t?c:this.textModel.bracketPairs.getBracketPairsInRange(r.Q.fromPositions(i)).toArray()).filter((e=>r.Q.strictContainsPosition(e.range,i)));g=null===(a=(0,n.Uk)(s,(e=>h)))||void 0===a?void 0:a.range}const p=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,m=new u;for(const n of c){if(!n.closingBracketRange)continue;const i=g&&n.range.equalsRange(g);if(!i&&!o.includeInactive)continue;const r=m.getInlineClassName(n.nestingLevel,n.nestingLevelOfEqualBracketType,p)+(o.highlightActive&&i?" "+m.activeClassName:""),a=n.openingBracketRange.getStartPosition(),h=n.closingBracketRange.getStartPosition(),c=o.horizontalGuides===d.N6.Enabled||o.horizontalGuides===d.N6.EnabledForActive&&i;if(n.range.startLineNumber===n.range.endLineNumber){c&&l[n.range.startLineNumber-e].push(new d.TH(-1,n.openingBracketRange.getEndPosition().column,r,new d.pv(!1,h.column),-1,-1));continue}const u=this.getVisibleColumnFromPosition(h),f=this.getVisibleColumnFromPosition(n.openingBracketRange.getStartPosition()),_=Math.min(f,u,n.minVisibleColumnIndentation+1);let v=!1;s.HG(this.textModel.getLineContent(n.closingBracketRange.startLineNumber))<n.closingBracketRange.startColumn-1&&(v=!0);const b=Math.max(a.lineNumber,e),C=Math.min(h.lineNumber,t),y=v?1:0;for(let t=b;t<C+y;t++)l[t-e].push(new d.TH(_,-1,r,null,t===a.lineNumber?a.column:-1,t===h.lineNumber?h.column:-1));c&&(a.lineNumber>=e&&f>_&&l[a.lineNumber-e].push(new d.TH(_,-1,r,new d.pv(!1,a.column),-1,-1)),h.lineNumber<=t&&u>_&&l[h.lineNumber-e].push(new d.TH(_,-1,r,new d.pv(!v,h.column),-1,-1)))}for(const n of l)n.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return l}getVisibleColumnFromPosition(e){return o.A.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=this.textModel.getOptions(),s=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,o=Boolean(s&&s.offSide),r=new Array(t-e+1);let a=-2,l=-1,d=-2,h=-1;for(let c=e;c<=t;c++){const t=c-e,s=this._computeIndentLevel(c-1);if(s>=0)a=c-1,l=s,r[t]=Math.ceil(s/n.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=c-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==d&&(-2===d||d<c-1)){d=-1,h=-1;for(let e=c;e<i;e++){const t=this._computeIndentLevel(e);if(t>=0){d=e,h=t;break}}}r[t]=this._getIndentLevelForWhitespaceLine(o,l,h)}}return r}_getIndentLevelForWhitespaceLine(e,t,i){const n=this.textModel.getOptions();return-1===t||-1===i?0:t<i?1+Math.floor(t/n.indentSize):t===i||e?Math.ceil(i/n.indentSize):1+Math.floor(i/n.indentSize)}}class u{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,i){return this.getInlineClassNameOfLevel(i?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}},27414:(e,t,i)=>{"use strict";i.d(t,{N:()=>o,c2:()=>r});var n=i(25890),s=i(85152);class o{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,s.j)(e);const i=this.values,n=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(i.length+o),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,s.j)(e),t=(0,s.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,s.j)(e),t=(0,s.j)(t);const i=this.values,n=this.prefixSum;if(e>=i.length)return!1;const o=i.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,s.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,s=0,o=0;for(;t<=i;)if(n=t+(i-t)/2|0,s=this.prefixSum[n],o=s-this.values[n],e<o)i=n-1;else{if(!(e>=s))break;t=n+1}return new a(n,e-o)}}class r{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),0===e?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new a(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=(0,n.nK)(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e<t;e++){const t=this._values[e],i=e>0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let n=0;n<t;n++)this._indexBySum[i+n]=e}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(e,t){this._values[e]!==t&&(this._values[e]=t,this._invalidate(e))}}class a{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}},38361:(e,t,i)=>{"use strict";i.d(t,{Ho:()=>Ht,kI:()=>zt,Bz:()=>Mt});var n=i(25890),s=i(47661),o=i(64383),r=i(41234),a=i(5662),l=i(91508),d=i(79400),h=i(64454),c=i(93895),u=i(86571),g=i(83069),p=i(36677),m=i(75326),f=i(24329),_=i(10154),v=i(17469),b=i(16223),C=i(12296),y=i(56772);class w{constructor(e,t,i,n){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=i,this.isInvalid=n}}class S{constructor(e,t,i,n,s,o){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=n,this.nestingLevelOfEqualBracketType=s,this.bracketPairNode=o}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class k extends S{constructor(e,t,i,n,s,o,r){super(e,t,i,n,s,o),this.minVisibleColumnIndentation=r}}var x=i(94650),L=i(93630),D=i(19131),E=i(19562),N=i(32956),T=i(51934),I=i(84084);class M extends a.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new r.vl,this.denseKeyProvider=new N.Mg,this.brackets=new L.Z(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new T._(this.textModel.getValue(),e);this.initialAstWithoutTokens=(0,E.T)(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new x.c((0,D.qe)(e.fromLineNumber-1,0),(0,D.qe)(e.toLineNumber,0),(0,D.qe)(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=x.c.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const i=(0,I.M)(this.queuedTextEdits,e);this.queuedTextEdits=i,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=(0,I.M)(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,i){const n=t,s=new T.tk(this.textModel,this.brackets);return(0,E.T)(s,e,n,i)}getBracketsInRange(e,t){this.flushQueue();const i=(0,D.qe)(e.startLineNumber-1,e.startColumn-1),s=(0,D.qe)(e.endLineNumber-1,e.endColumn-1);return new n.c1((e=>{const n=this.initialAstWithoutTokens||this.astWithTokens;O(n,D.Vp,n.length,i,s,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const i=(0,D.VL)(e.getStartPosition()),s=(0,D.VL)(e.getEndPosition());return new n.c1((e=>{const n=this.initialAstWithoutTokens||this.astWithTokens,o=new P(e,t,this.textModel);F(n,D.Vp,n.length,i,s,o,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return R(t,D.Vp,t.length,(0,D.VL)(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return A(t,D.Vp,t.length,(0,D.VL)(e))}}function A(e,t,i,n){if(4===e.kind||2===e.kind){const s=[];for(const n of e.children)i=(0,D.QB)(t,n.length),s.push({nodeOffsetStart:t,nodeOffsetEnd:i}),t=i;for(let t=s.length-1;t>=0;t--){const{nodeOffsetStart:i,nodeOffsetEnd:o}=s[t];if((0,D.zG)(i,n)){const s=A(e.children[t],i,o,n);if(s)return s}}return null}if(3===e.kind)return null;if(1===e.kind){const n=(0,D.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:n}}return null}function R(e,t,i,n){if(4===e.kind||2===e.kind){for(const s of e.children){if(i=(0,D.QB)(t,s.length),(0,D.zG)(n,i)){const e=R(s,t,i,n);if(e)return e}t=i}return null}if(3===e.kind)return null;if(1===e.kind){const n=(0,D.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:n}}return null}function O(e,t,i,n,s,o,r,a,l,d,h=!1){if(r>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h<a;h++){const a=e.getChild(h);if(a){if(i=(0,D.QB)(t,a.length),(0,D.vr)(t,s)&&(0,D.o0)(i,n)){if((0,D.o0)(i,s)){e=a;continue e}if(!O(a,t,i,n,s,o,r,0,l,d))return!1}t=i}}return!0}case 2:{const h=!d||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let c=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),c=t,h&&(t++,l.set(e.openingBracket.text,t))}const u=e.childrenLength;for(let g=0;g<u;g++){const u=e.getChild(g);if(u){if(i=(0,D.QB)(t,u.length),(0,D.vr)(t,s)&&(0,D.o0)(i,n)){if((0,D.o0)(i,s)&&1!==u.kind){e=u,h?(r++,a=c+1):a=c;continue e}if(h||1!==u.kind||!e.closingBracket){if(!O(u,t,i,n,s,o,h?r+1:r,h?c+1:c,l,d,!e.closingBracket))return!1}}t=i}}return null===l||void 0===l||l.set(e.openingBracket.text,c),!0}case 3:{const e=(0,D.Qx)(t,i);return o(new w(e,r-1,0,!0))}case 1:{const e=(0,D.Qx)(t,i);return o(new w(e,r-1,a-1,h))}case 0:return!0}}class P{constructor(e,t,i){this.push=e,this.includeMinIndentation=t,this.textModel=i}}function F(e,t,i,n,s,o,r,a){var l;if(r>200)return!0;let d=!0;if(2===e.kind){let h=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),h=t,t++,a.set(e.openingBracket.text,t)}const c=(0,D.QB)(t,e.openingBracket.length);let u=-1;if(o.includeMinIndentation&&(u=e.computeMinIndentation(t,o.textModel)),d=o.push(new k((0,D.Qx)(t,i),(0,D.Qx)(t,c),e.closingBracket?(0,D.Qx)((0,D.QB)(c,(null===(l=e.child)||void 0===l?void 0:l.length)||D.Vp),i):void 0,r,h,e,u)),t=c,d&&e.child){const l=e.child;if(i=(0,D.QB)(t,l.length),(0,D.vr)(t,s)&&(0,D.o0)(i,n)&&(d=F(l,t,i,n,s,o,r+1,a),!d))return!1}null===a||void 0===a||a.set(e.openingBracket.text,h)}else{let i=t;for(const t of e.children){const e=i;if(i=(0,D.QB)(i,t.length),(0,D.vr)(e,s)&&(0,D.vr)(n,i)&&(d=F(t,e,i,n,s,o,r,a),!d))return!1}}return d}class B extends a.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new a.HE),this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange((e=>{var t;e.languageId&&!(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.didLanguageChange(e.languageId))||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())})))}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;null===(e=this.bracketPairsTree.value)||void 0===e||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const i=new a.Cm;this.bracketPairsTree.value=(e=i.add(new M(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=i,{object:e,dispose:()=>null===t||void 0===t?void 0:t.dispose()}),i.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!1))||n.c1.empty}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!0))||n.c1.empty}getBracketsInRange(e,t=!1){var i;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(i=this.bracketPairsTree.value)||void 0===i?void 0:i.object.getBracketsInRange(e,t))||n.c1.empty}findMatchingBracketUp(e,t,i){const n=this.textModel.validatePosition(t),s=this.textModel.getLanguageIdAtPosition(n.lineNumber,n.column);if(this.canBuildAST){const i=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew.getClosingBracketInfo(e);if(!i)return null;const n=this.getBracketPairsInRange(p.Q.fromPositions(t,t)).findLast((e=>i.closes(e.openingBracketInfo)));return n?n.openingBracketRange:null}{const t=e.toLowerCase(),o=this.languageConfigurationService.getLanguageConfiguration(s).brackets;if(!o)return null;const r=o.textIsBracket[t];return r?H(this._findMatchingBracketUp(r,n,W(i))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(p.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,n.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),p.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const i=W(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,n){const s=t.getCount(),o=t.getLanguageId(n);let r=Math.max(0,e.column-1-i.maxBracketLength);for(let l=n-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=r)break;if((0,C.Yo)(t.getStandardTokenType(l))||t.getLanguageId(l)!==o){r=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let l=n+1;l<s;l++){const e=t.getStartOffset(l);if(e>=a)break;if((0,C.Yo)(t.getStandardTokenType(l))||t.getLanguageId(l)!==o){a=e;break}}return{searchStartOffset:r,searchEndOffset:a}}_matchBracket(e,t){const i=e.lineNumber,n=this.textModel.tokenization.getLineTokens(i),s=this.textModel.getLineContent(i),o=n.findTokenIndexAtOffset(e.column-1);if(o<0)return null;const r=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(o)).brackets;if(r&&!(0,C.Yo)(n.getStandardTokenType(o))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,n,r,o),d=null;for(;;){const n=y.Fu.findNextBracketInRange(r.forwardRegex,i,s,a,l);if(!n)break;if(n.startColumn<=e.column&&e.column<=n.endColumn){const e=s.substring(n.startColumn-1,n.endColumn-1).toLowerCase(),i=this._matchFoundBracket(n,r.textIsBracket[e],r.textIsOpenBracket[e],t);if(i){if(i instanceof V)return null;d=i}}a=n.endColumn-1}if(d)return d}if(o>0&&n.getStartOffset(o)===e.column-1){const r=o-1,a=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(r)).brackets;if(a&&!(0,C.Yo)(n.getStandardTokenType(r))){const{searchStartOffset:o,searchEndOffset:l}=this._establishBracketSearchOffsets(e,n,a,r),d=y.Fu.findPrevBracketInRange(a.reversedRegex,i,s,o,l);if(d&&d.startColumn<=e.column&&e.column<=d.endColumn){const e=s.substring(d.startColumn-1,d.endColumn-1).toLowerCase(),i=this._matchFoundBracket(d,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(i)return i instanceof V?null:i}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const s=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return s?s instanceof V?s:[e,s]:null}_findMatchingBracketUp(e,t,i){const n=e.languageId,s=e.reversedRegex;let o=-1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100===0&&!i())return V.INSTANCE;const d=y.Fu.findPrevBracketInRange(s,t,n,a,l);if(!d)break;const h=n.substring(d.startColumn-1,d.endColumn-1).toLowerCase();if(e.isOpen(h)?o++:e.isClose(h)&&o--,0===o)return d;l=d.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),i=e.getCount(),s=this.textModel.getLineContent(l);let o=i-1,r=s.length,d=s.length;l===t.lineNumber&&(o=e.findTokenIndexAtOffset(t.column-1),r=t.column-1,d=t.column-1);let h=!0;for(;o>=0;o--){const t=e.getLanguageId(o)===n&&!(0,C.Yo)(e.getStandardTokenType(o));if(t)h?r=e.getStartOffset(o):(r=e.getStartOffset(o),d=e.getEndOffset(o));else if(h&&r!==d){const e=a(l,s,r,d);if(e)return e}h=t}if(h&&r!==d){const e=a(l,s,r,d);if(e)return e}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageId,s=e.forwardRegex;let o=1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100===0&&!i())return V.INSTANCE;const d=y.Fu.findNextBracketInRange(s,t,n,a,l);if(!d)break;const h=n.substring(d.startColumn-1,d.endColumn-1).toLowerCase();if(e.isOpen(h)?o++:e.isClose(h)&&o--,0===o)return d;a=d.endColumn-1}return null},l=this.textModel.getLineCount();for(let d=t.lineNumber;d<=l;d++){const e=this.textModel.tokenization.getLineTokens(d),i=e.getCount(),s=this.textModel.getLineContent(d);let o=0,r=0,l=0;d===t.lineNumber&&(o=e.findTokenIndexAtOffset(t.column-1),r=t.column-1,l=t.column-1);let h=!0;for(;o<i;o++){const t=e.getLanguageId(o)===n&&!(0,C.Yo)(e.getStandardTokenType(o));if(t)h||(r=e.getStartOffset(o)),l=e.getEndOffset(o);else if(h&&r!==l){const e=a(d,s,r,l);if(e)return e}h=t}if(h&&r!==l){const e=a(d,s,r,l);if(e)return e}}return null}findPrevBracket(e){var t;const i=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getFirstBracketBefore(i))||null;let n=null,s=null,o=null;for(let r=i.lineNumber;r>=1;r--){const e=this.textModel.tokenization.getLineTokens(r),t=e.getCount(),a=this.textModel.getLineContent(r);let l=t-1,d=a.length,h=a.length;if(r===i.lineNumber){l=e.findTokenIndexAtOffset(i.column-1),d=i.column-1,h=i.column-1;const t=e.getLanguageId(l);n!==t&&(n=t,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,o=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let c=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(s&&o&&c&&d!==h){const e=y.Fu.findPrevBracketInRange(s.reversedRegex,r,a,d,h);if(e)return this._toFoundBracket(o,e);c=!1}n=t,s=this.languageConfigurationService.getLanguageConfiguration(n).brackets,o=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const i=!!s&&!(0,C.Yo)(e.getStandardTokenType(l));if(i)c?d=e.getStartOffset(l):(d=e.getStartOffset(l),h=e.getEndOffset(l));else if(o&&s&&c&&d!==h){const e=y.Fu.findPrevBracketInRange(s.reversedRegex,r,a,d,h);if(e)return this._toFoundBracket(o,e)}c=i}if(o&&s&&c&&d!==h){const e=y.Fu.findPrevBracketInRange(s.reversedRegex,r,a,d,h);if(e)return this._toFoundBracket(o,e)}}return null}findNextBracket(e){var t;const i=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getFirstBracketAfter(i))||null;const n=this.textModel.getLineCount();let s=null,o=null,r=null;for(let a=i.lineNumber;a<=n;a++){const e=this.textModel.tokenization.getLineTokens(a),t=e.getCount(),n=this.textModel.getLineContent(a);let l=0,d=0,h=0;if(a===i.lineNumber){l=e.findTokenIndexAtOffset(i.column-1),d=i.column-1,h=i.column-1;const t=e.getLanguageId(l);s!==t&&(s=t,o=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew)}let c=!0;for(;l<t;l++){const t=e.getLanguageId(l);if(s!==t){if(r&&o&&c&&d!==h){const e=y.Fu.findNextBracketInRange(o.forwardRegex,a,n,d,h);if(e)return this._toFoundBracket(r,e);c=!1}s=t,o=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew}const i=!!o&&!(0,C.Yo)(e.getStandardTokenType(l));if(i)c||(d=e.getStartOffset(l)),h=e.getEndOffset(l);else if(r&&o&&c&&d!==h){const e=y.Fu.findNextBracketInRange(o.forwardRegex,a,n,d,h);if(e)return this._toFoundBracket(r,e)}c=i}if(r&&o&&c&&d!==h){const e=y.Fu.findNextBracketInRange(o.forwardRegex,a,n,d,h);if(e)return this._toFoundBracket(r,e)}}return null}findEnclosingBrackets(e,t){const i=this.textModel.validatePosition(e);if(this.canBuildAST){const e=p.Q.fromPositions(i),t=this.getBracketPairsInRange(p.Q.fromPositions(i,i)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const n=W(t),s=this.textModel.getLineCount(),o=new Map;let r=[];const a=(e,t)=>{if(!o.has(e)){const i=[];for(let e=0,n=t?t.brackets.length:0;e<n;e++)i[e]=0;o.set(e,i)}r=o.get(e)};let l=0;const d=(e,t,i,s,o)=>{for(;;){if(n&&++l%100===0&&!n())return V.INSTANCE;const a=y.Fu.findNextBracketInRange(e.forwardRegex,t,i,s,o);if(!a)break;const d=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[d];if(h&&(h.isOpen(d)?r[h.index]++:h.isClose(d)&&r[h.index]--,-1===r[h.index]))return this._matchFoundBracket(a,h,!1,n);s=a.endColumn-1}return null};let h=null,c=null;for(let u=i.lineNumber;u<=s;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),n=this.textModel.getLineContent(u);let s=0,o=0,r=0;if(u===i.lineNumber){s=e.findTokenIndexAtOffset(i.column-1),o=i.column-1,r=i.column-1;const t=e.getLanguageId(s);h!==t&&(h=t,c=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,c))}let l=!0;for(;s<t;s++){const t=e.getLanguageId(s);if(h!==t){if(c&&l&&o!==r){const e=d(c,u,n,o,r);if(e)return H(e);l=!1}h=t,c=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,c)}const i=!!c&&!(0,C.Yo)(e.getStandardTokenType(s));if(i)l||(o=e.getStartOffset(s)),r=e.getEndOffset(s);else if(c&&l&&o!==r){const e=d(c,u,n,o,r);if(e)return H(e)}l=i}if(c&&l&&o!==r){const e=d(c,u,n,o,r);if(e)return H(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const n=e.getBracketInfo(i);return n?{range:t,bracketInfo:n}:null}}function W(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class V{constructor(){this._searchCanceledBrand=void 0}}function H(e){return e instanceof V?null:e}V.INSTANCE=new V;var z=i(87119),j=i(47612);class U extends a.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new K,this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i,n){if(n)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new p.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class K{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,j.zy)(((e,t)=>{const i=[z.sN,z.lQ,z.ss,z.l5,z.sH,z.zp],n=new K;t.addRule(`.monaco-editor .${n.unexpectedClosingBracketClassName} { color: ${e.getColor(z.s7)}; }`);const s=i.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let o=0;o<30;o++){const e=s[o%s.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(o)} { color: ${e}; }`)}}));var G=i(26656),$=i(53450);class q{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Q(e,t,i,n,s){let o;for(s.spacesDiff=0,s.looksLikeAlignment=!1,o=0;o<t&&o<n;o++){if(e.charCodeAt(o)!==i.charCodeAt(o))break}let r=0,a=0;for(let u=o;u<t;u++){32===e.charCodeAt(u)?r++:a++}let l=0,d=0;for(let u=o;u<n;u++){32===i.charCodeAt(u)?l++:d++}if(r>0&&a>0)return;if(l>0&&d>0)return;const h=Math.abs(a-d),c=Math.abs(r-l);if(0===h)return s.spacesDiff=c,void(c>0&&0<=l-1&&l-1<e.length&&l<i.length&&32!==i.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(s.looksLikeAlignment=!0));c%h!==0||(s.spacesDiff=c/h)}function Y(e,t,i){const n=Math.min(e.getLineCount(),1e4);let s=0,o=0,r="",a=0;const l=[2,4,6,8,3,5,7],d=[0,0,0,0,0,0,0,0,0],h=new q;for(let g=1;g<=n;g++){const n=e.getLineLength(g),l=e.getLineContent(g),c=n<=65536;let u=!1,p=0,m=0,f=0;for(let t=0,i=n;t<i;t++){const i=c?l.charCodeAt(t):e.getLineCharCode(g,t);if(9===i)f++;else{if(32!==i){u=!0,p=t;break}m++}}if(!u)continue;if(f>0?s++:m>1&&o++,Q(r,a,l,p,h),h.looksLikeAlignment&&(!i||t!==h.spacesDiff))continue;const _=h.spacesDiff;_<=8&&d[_]++,r=l,a=p}let c=i;s!==o&&(c=s<o);let u=t;if(c){let e=c?0:.1*n;l.forEach((t=>{const i=d[t];i>e&&(e=i,u=t)})),4===u&&d[4]>0&&d[2]>0&&d[2]>=d[4]/2&&(u=2)}return{insertSpaces:c,tabSize:u}}function Z(e){return(1&e.metadata)>>>0}function X(e,t){e.metadata=254&e.metadata|t}function J(e){return(2&e.metadata)>>>1===1}function ee(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function te(e){return(4&e.metadata)>>>2===1}function ie(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function ne(e){return(64&e.metadata)>>>6===1}function se(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function oe(e,t){e.metadata=231&e.metadata|t<<3}function re(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class ae{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,X(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,ie(this,!1),se(this,!1),oe(this,1),re(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,ee(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;const t=this.options.className;ie(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),se(this,null!==this.options.glyphMarginClassName),oe(this,this.options.stickiness),re(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const le=new ae(null,0,0);le.parent=le,le.left=le,le.right=le,X(le,0);class de{constructor(){this.root=le,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,s,o){return this.root===le?[]:function(e,t,i,n,s,o,r){let a=e.root,l=0,d=0,h=0,c=0;const u=[];let g=0;for(;a!==le;)if(J(a))ee(a.left,!1),ee(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!J(a.left)){if(d=l+a.maxEnd,d<t){ee(a,!0);continue}if(a.left!==le){a=a.left;continue}}if(h=l+a.start,h>i)ee(a,!0);else{if(c=l+a.end,c>=t){a.setCachedOffsets(h,c,o);let e=!0;n&&a.ownerId&&a.ownerId!==n&&(e=!1),s&&te(a)&&(e=!1),r&&!ne(a)&&(e=!1),e&&(u[g++]=a)}ee(a,!0),a.right===le||J(a.right)||(l+=a.delta,a=a.right)}}return ee(e.root,!1),u}(this,e,t,i,n,s,o)}search(e,t,i,n){return this.root===le?[]:function(e,t,i,n,s){let o=e.root,r=0,a=0,l=0;const d=[];let h=0;for(;o!==le;){if(J(o)){ee(o.left,!1),ee(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),o=o.parent;continue}if(o.left!==le&&!J(o.left)){o=o.left;continue}a=r+o.start,l=r+o.end,o.setCachedOffsets(a,l,n);let e=!0;t&&o.ownerId&&o.ownerId!==t&&(e=!1),i&&te(o)&&(e=!1),s&&!ne(o)&&(e=!1),e&&(d[h++]=o),ee(o,!0),o.right===le||J(o.right)||(r+=o.delta,o=o.right)}return ee(e.root,!1),d}(this,e,t,i,n)}collectNodesFromOwner(e){return function(e,t){let i=e.root;const n=[];let s=0;for(;i!==le;)J(i)?(ee(i.left,!1),ee(i.right,!1),i=i.parent):i.left===le||J(i.left)?(i.ownerId===t&&(n[s++]=i),ee(i,!0),i.right===le||J(i.right)||(i=i.right)):i=i.left;return ee(e.root,!1),n}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const i=[];let n=0;for(;t!==le;)J(t)?(ee(t.left,!1),ee(t.right,!1),t=t.parent):t.left===le||J(t.left)?t.right===le||J(t.right)?(i[n++]=t,ee(t,!0)):t=t.right:t=t.left;return ee(e.root,!1),i}(this)}insert(e){ue(this,e),this._normalizeDeltaIfNecessary()}delete(e){ge(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const s=i.start+n,o=i.end+n;i.setCachedOffsets(s,o,t)}acceptReplace(e,t,i,n){const s=function(e,t,i){let n=e.root,s=0,o=0,r=0,a=0;const l=[];let d=0;for(;n!==le;)if(J(n))ee(n.left,!1),ee(n.right,!1),n===n.parent.right&&(s-=n.parent.delta),n=n.parent;else{if(!J(n.left)){if(o=s+n.maxEnd,o<t){ee(n,!0);continue}if(n.left!==le){n=n.left;continue}}r=s+n.start,r>i?ee(n,!0):(a=s+n.end,a>=t&&(n.setCachedOffsets(r,a,0),l[d++]=n),ee(n,!0),n.right===le||J(n.right)||(s+=n.delta,n=n.right))}return ee(e.root,!1),l}(this,e,e+t);for(let o=0,r=s.length;o<r;o++){ge(this,s[o])}this._normalizeDeltaIfNecessary(),function(e,t,i,n){let s=e.root,o=0,r=0,a=0;const l=n-(i-t);for(;s!==le;)if(J(s))ee(s.left,!1),ee(s.right,!1),s===s.parent.right&&(o-=s.parent.delta),ve(s),s=s.parent;else{if(!J(s.left)){if(r=o+s.maxEnd,r<t){ee(s,!0);continue}if(s.left!==le){s=s.left;continue}}a=o+s.start,a>i?(s.start+=l,s.end+=l,s.delta+=l,(s.delta<-1073741824||s.delta>1073741824)&&(e.requestNormalizeDelta=!0),ee(s,!0)):(ee(s,!0),s.right===le||J(s.right)||(o+=s.delta,s=s.right))}ee(e.root,!1)}(this,e,e+t,i),this._normalizeDeltaIfNecessary();for(let o=0,r=s.length;o<r;o++){const r=s[o];r.start=r.cachedAbsoluteStart,r.end=r.cachedAbsoluteEnd,ce(r,e,e+t,i,n),r.maxEnd=r.end,ue(this,r)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,i=0;for(;t!==le;)t.left===le||J(t.left)?t.right===le||J(t.right)?(t.start=i+t.start,t.end=i+t.end,t.delta=0,ve(t),ee(t,!0),ee(t.left,!1),ee(t.right,!1),t===t.parent.right&&(i-=t.parent.delta),t=t.parent):(i+=t.delta,t=t.right):t=t.left;ee(e.root,!1)}(this))}}function he(e,t,i,n){return e<i||!(e>i)&&(1!==n&&(2===n||t))}function ce(e,t,i,n,s){const o=function(e){return(24&e.metadata)>>>3}(e),r=0===o||2===o,a=1===o||2===o,l=i-t,d=n,h=Math.min(l,d),c=e.start;let u=!1;const g=e.end;let p=!1;t<=c&&g<=i&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,u=!0,e.end=t,p=!0);{const e=s?1:l>0?2:0;!u&&he(c,r,t,e)&&(u=!0),!p&&he(g,a,t,e)&&(p=!0)}if(h>0&&!s){const e=l>d?2:0;!u&&he(c,r,t+h,e)&&(u=!0),!p&&he(g,a,t+h,e)&&(p=!0)}{const n=s?1:0;!u&&he(c,r,i,n)&&(e.start=t+d,u=!0),!p&&he(g,a,i,n)&&(e.end=t+d,p=!0)}const m=d-l;u||(e.start=Math.max(0,c+m)),p||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function ue(e,t){if(e.root===le)return t.parent=le,t.left=le,t.right=le,X(t,0),e.root=t,e.root;!function(e,t){let i=0,n=e.root;const s=t.start,o=t.end;for(;;){if(Ce(s,o,n.start+i,n.end+i)<0){if(n.left===le){t.start-=i,t.end-=i,t.maxEnd-=i,n.left=t;break}n=n.left}else{if(n.right===le){t.start-=i+n.delta,t.end-=i+n.delta,t.maxEnd-=i+n.delta,n.right=t;break}i+=n.delta,n=n.right}}t.parent=n,t.left=le,t.right=le,X(t,1)}(e,t),be(t.parent);let i=t;for(;i!==e.root&&1===Z(i.parent);)if(i.parent===i.parent.parent.left){const t=i.parent.parent.right;1===Z(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,me(e,i)),X(i.parent,0),X(i.parent.parent,1),fe(e,i.parent.parent))}else{const t=i.parent.parent.left;1===Z(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,fe(e,i)),X(i.parent,0),X(i.parent.parent,1),me(e,i.parent.parent))}return X(e.root,0),t}function ge(e,t){let i,n;if(t.left===le?(i=t.right,n=t,i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===le?(i=t.left,n=t):(n=function(e){for(;e.left!==le;)e=e.left;return e}(t.right),i=n.right,i.start+=n.delta,i.end+=n.delta,i.delta+=n.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,n.delta=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0)),n===e.root)return e.root=i,X(i,0),t.detach(),pe(),ve(i),void(e.root.parent=le);const s=1===Z(n);if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?i.parent=n.parent:(n.parent===t?i.parent=n:i.parent=n.parent,n.left=t.left,n.right=t.right,n.parent=t.parent,X(n,Z(t)),t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==le&&(n.left.parent=n),n.right!==le&&(n.right.parent=n)),t.detach(),s)return be(i.parent),n!==t&&(be(n),be(n.parent)),void pe();let o;for(be(i),be(i.parent),n!==t&&(be(n),be(n.parent));i!==e.root&&0===Z(i);)i===i.parent.left?(o=i.parent.right,1===Z(o)&&(X(o,0),X(i.parent,1),me(e,i.parent),o=i.parent.right),0===Z(o.left)&&0===Z(o.right)?(X(o,1),i=i.parent):(0===Z(o.right)&&(X(o.left,0),X(o,1),fe(e,o),o=i.parent.right),X(o,Z(i.parent)),X(i.parent,0),X(o.right,0),me(e,i.parent),i=e.root)):(o=i.parent.left,1===Z(o)&&(X(o,0),X(i.parent,1),fe(e,i.parent),o=i.parent.left),0===Z(o.left)&&0===Z(o.right)?(X(o,1),i=i.parent):(0===Z(o.left)&&(X(o.right,0),X(o,1),me(e,o),o=i.parent.left),X(o,Z(i.parent)),X(i.parent,0),X(o.left,0),fe(e,i.parent),i=e.root));X(i,0),pe()}function pe(){le.parent=le,le.delta=0,le.start=0,le.end=0}function me(e,t){const i=t.right;i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==le&&(i.left.parent=t),i.parent=t.parent,t.parent===le?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i,ve(t),ve(i)}function fe(e,t){const i=t.left;t.delta-=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==le&&(i.right.parent=t),i.parent=t.parent,t.parent===le?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i,ve(t),ve(i)}function _e(e){let t=e.end;if(e.left!==le){const i=e.left.maxEnd;i>t&&(t=i)}if(e.right!==le){const i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function ve(e){e.maxEnd=_e(e)}function be(e){for(;e!==le;){const t=_e(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Ce(e,t,i,n){return e===i?t-n:e-i}class ye{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==we)return Se(this.right);let e=this;for(;e.parent!==we&&e.parent.left!==e;)e=e.parent;return e.parent===we?we:e.parent}prev(){if(this.left!==we)return ke(this.left);let e=this;for(;e.parent!==we&&e.parent.right!==e;)e=e.parent;return e.parent===we?we:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const we=new ye(null,0);function Se(e){for(;e.left!==we;)e=e.left;return e}function ke(e){for(;e.right!==we;)e=e.right;return e}function xe(e){return e===we?0:e.size_left+e.piece.length+xe(e.right)}function Le(e){return e===we?0:e.lf_left+e.piece.lineFeedCnt+Le(e.right)}function De(){we.parent=we}function Ee(e,t){const i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==we&&(i.left.parent=t),i.parent=t.parent,t.parent===we?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i}function Ne(e,t){const i=t.left;t.left=i.right,i.right!==we&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===we?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i}function Te(e,t){let i,n;if(t.left===we?(n=t,i=n.right):t.right===we?(n=t,i=n.left):(n=Se(t.right),i=n.right),n===e.root)return e.root=i,i.color=0,t.detach(),De(),void(e.root.parent=we);const s=1===n.color;if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?(i.parent=n.parent,Ae(e,i)):(n.parent===t?i.parent=n:i.parent=n.parent,Ae(e,i),n.left=t.left,n.right=t.right,n.parent=t.parent,n.color=t.color,t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==we&&(n.left.parent=n),n.right!==we&&(n.right.parent=n),n.size_left=t.size_left,n.lf_left=t.lf_left,Ae(e,n)),t.detach(),i.parent.left===i){const t=xe(i),n=Le(i);if(t!==i.parent.size_left||n!==i.parent.lf_left){const s=t-i.parent.size_left,o=n-i.parent.lf_left;i.parent.size_left=t,i.parent.lf_left=n,Me(e,i.parent,s,o)}}if(Ae(e,i.parent),s)return void De();let o;for(;i!==e.root&&0===i.color;)i===i.parent.left?(o=i.parent.right,1===o.color&&(o.color=0,i.parent.color=1,Ee(e,i.parent),o=i.parent.right),0===o.left.color&&0===o.right.color?(o.color=1,i=i.parent):(0===o.right.color&&(o.left.color=0,o.color=1,Ne(e,o),o=i.parent.right),o.color=i.parent.color,i.parent.color=0,o.right.color=0,Ee(e,i.parent),i=e.root)):(o=i.parent.left,1===o.color&&(o.color=0,i.parent.color=1,Ne(e,i.parent),o=i.parent.left),0===o.left.color&&0===o.right.color?(o.color=1,i=i.parent):(0===o.left.color&&(o.right.color=0,o.color=1,Ee(e,o),o=i.parent.left),o.color=i.parent.color,i.parent.color=0,o.left.color=0,Ne(e,i.parent),i=e.root));i.color=0,De()}function Ie(e,t){for(Ae(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Ee(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Ne(e,t.parent.parent))}else{const i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Ne(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Ee(e,t.parent.parent))}e.root.color=0}function Me(e,t,i,n){for(;t!==e.root&&t!==we;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}function Ae(e,t){let i=0,n=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(i=xe((t=t.parent).left)-t.size_left,n=Le(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=n;t!==e.root&&(0!==i||0!==n);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}}we.parent=we,we.left=we,we.right=we,we.color=0;var Re=i(43264);const Oe=65535;function Pe(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Fe{constructor(e,t,i,n,s){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=s}}function Be(e,t=!0){const i=[0];let n=1;for(let s=0,o=e.length;s<o;s++){const t=e.charCodeAt(s);13===t?s+1<o&&10===e.charCodeAt(s+1)?(i[n++]=s+2,s++):i[n++]=s+1:10===t&&(i[n++]=s+1)}return t?Pe(i):i}class We{constructor(e,t,i,n,s){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=s}}class Ve{constructor(e,t){this.buffer=e,this.lineStarts=t}}class He{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==we&&e.iterate(e.root,(e=>(e!==we&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class ze{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber<e&&i.nodeStartLineNumber+i.node.piece.lineFeedCnt>=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let n=0;n<i.length;n++){const s=i[n];(null===s.node.parent||s.nodeStartOffset>=e)&&(i[n]=null,t=!0)}if(t){const e=[];for(const t of i)null!==t&&e.push(t);this._cache=e}}}class je{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new Ve("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=we,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let s=0,o=e.length;s<o;s++)if(e[s].buffer.length>0){e[s].lineStarts||(e[s].lineStarts=Be(e[s].buffer));const t=new We(s+1,{line:0,column:0},{line:e[s].lineStarts.length-1,column:e[s].buffer.length-e[s].lineStarts[e[s].lineStarts.length-1]},e[s].lineStarts.length-1,e[s].buffer.length);this._buffers.push(e[s]),n=this.rbInsertRight(n,t)}this._searchCache=new ze(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=Oe,i=t-Math.floor(21845),n=2*i;let s="",o=0;const r=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),l=a.length;if(o<=i||o+l<n)return s+=a,o+=l,!0;const d=s.replace(/\r\n|\r|\n/g,e);return r.push(new Ve(d,Be(d))),s=a,o=l,!0})),o>0){const t=s.replace(/\r\n|\r|\n/g,e);r.push(new Ve(t,Be(t)))}this.create(r,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new He(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==we;)if(n.left!==we&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e){i+=n.size_left;return i+(this.getAccumulatedValue(n,e-n.lf_left-2)+t-1)}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const n=e;for(;t!==we;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const s=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+s.index,0===s.index){const e=n-this.getOffsetAt(i+1,1);return new g.y(i+1,e+1)}return new g.y(i+1,s.remainder+1)}if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===we){const t=n-e-this.getOffsetAt(i+1,1);return new g.y(i+1,t+1)}t=t.right}return new g.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),s=this.getValueInRange2(i,n);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?s:s.replace(/\r\n|\r|\n/g,t):s}getValueInRange2(e,t){if(e.node===t.node){const i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n.substring(s+e.remainder,s+t.remainder)}let i=e.node;const n=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let o=n.substring(s+e.remainder,s+i.piece.length);for(i=i.next();i!==we;){const e=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){o+=e.substring(n,n+t.remainder);break}o+=e.substr(n,i.piece.length),i=i.next()}return o}getLinesContent(){const e=[];let t=0,i="",n=!1;return this.iterate(this.root,(s=>{if(s===we)return!0;const o=s.piece;let r=o.length;if(0===r)return!0;const a=this._buffers[o.bufferIndex].buffer,l=this._buffers[o.bufferIndex].lineStarts,d=o.start.line,h=o.end.line;let c=l[d]+o.start.column;if(n&&(10===a.charCodeAt(c)&&(c++,r--),e[t++]=i,i="",n=!1,0===r))return!0;if(d===h)return this._EOLNormalized||13!==a.charCodeAt(c+r-1)?i+=a.substr(c,r):(n=!0,i+=a.substr(c,r-1)),!0;i+=this._EOLNormalized?a.substring(c,Math.max(c,l[d+1]-this._EOLLength)):a.substring(c,l[d+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let n=d+1;n<h;n++)i=this._EOLNormalized?a.substring(l[n],l[n+1]-this._EOLLength):a.substring(l[n],l[n+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;return this._EOLNormalized||13!==a.charCodeAt(l[h]+o.end.column-1)?i=a.substr(l[h],o.end.column):(n=!0,0===o.end.column?t--:i=a.substr(l[h],o.end.column-1)),!0})),n&&(e[t++]=i,i=""),e[t++]=i,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const i=this._buffers[t.piece.bufferIndex],n=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return i.buffer.charCodeAt(n)}{const t=this._buffers[e.node.piece.bufferIndex],i=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){const i=this.nodeAt2(e,t+1);return this._getCharCode(i)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,i,n,s,o,r,a,l,d,h){const c=this._buffers[e.piece.bufferIndex],u=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,s),m=this.offsetInBuffer(e.piece.bufferIndex,o);let f;const _={line:0,column:0};let v,b;t._wordSeparators?(v=c.buffer.substring(g,m),b=e=>e+g,t.reset(0)):(v=c.buffer,b=e=>e,t.reset(g));do{if(f=t.next(v),f){if(b(f.index)>=m)return d;this.positionInBuffer(e,b(f.index)-u,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,s,_),o=_.line===s.line?_.column-s.column+n:_.column+1,r=o+f[0].length;if(h[d++]=(0,Re.dr)(new p.Q(i+t,o,i+t,r),f,a),b(f.index)+f[0].length>=m)return d;if(d>=l)return d}}while(f);return d}findMatchesLineByLine(e,t,i,n){const s=[];let o=0;const r=new Re.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let d=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,r,e.startLineNumber,e.startColumn,d,h,t,i,n,o,s),s;let c=e.startLineNumber,u=a.node;for(;u!==l.node;){const l=this.getLineFeedCnt(u.piece.bufferIndex,d,u.piece.end);if(l>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[d.line+l],p=c===e.startLineNumber?e.startColumn:1;if(o=this.findMatchesInNode(u,r,c,p,d,this.positionInBuffer(u,g-h),t,i,n,o,s),o>=n)return s;c+=l}const h=c===e.startLineNumber?e.startColumn-1:0;if(c===e.endLineNumber){const a=this.getLineContent(c).substring(h,e.endColumn-1);return o=this._findMatchesInLine(t,r,a,e.endLineNumber,h,o,s,i,n),s}if(o=this._findMatchesInLine(t,r,this.getLineContent(c).substr(h),c,h,o,s,i,n),o>=n)return s;c++,a=this.nodeAt2(c,1),u=a.node,d=this.positionInBuffer(a.node,a.remainder)}if(c===e.endLineNumber){const a=c===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(c).substring(a,e.endColumn-1);return o=this._findMatchesInLine(t,r,l,e.endLineNumber,a,o,s,i,n),s}const g=c===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(l.node,r,c,g,d,h,t,i,n,o,s),s}_findMatchesInLine(e,t,i,n,s,o,r,a,l){const d=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=i.length;let c=-a;for(;-1!==(c=i.indexOf(t,c+a));)if((!d||(0,Re.wC)(d,i,h,c,a))&&(r[o++]=new b.Dg(new p.Q(n,c+1+s,n,c+1+a+s),null),o>=l))return o;return o}let h;t.reset(0);do{if(h=t.next(i),h&&(r[o++]=(0,Re.dr)(new p.Q(n,h.index+1+s,n,h.index+1+h[0].length+s),h,a),o>=l))return o}while(h);return o}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==we){const{node:i,remainder:n,nodeStartOffset:s}=this.nodeAt(e),o=i.piece,r=o.bufferIndex,a=this.positionInBuffer(i,n);if(0===i.piece.bufferIndex&&o.end.line===this._lastChangeBufferPos.line&&o.end.column===this._lastChangeBufferPos.column&&s+o.length===e&&t.length<Oe)return this.appendToNode(i,t),void this.computeBufferMetadata();if(s===e)this.insertContentToNodeLeft(t,i),this._searchCache.validate(e);else if(s+i.piece.length>e){const e=[];let s=new We(o.bufferIndex,a,o.end,this.getLineFeedCnt(o.bufferIndex,a,o.end),this.offsetInBuffer(r,o.end)-this.offsetInBuffer(r,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(i,n)){const e={line:s.start.line+1,column:0};s=new We(s.bufferIndex,e,s.end,this.getLineFeedCnt(s.bufferIndex,e,s.end),s.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(i,n-1)){const s=this.positionInBuffer(i,n-1);this.deleteNodeTail(i,s),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,a)}else this.deleteNodeTail(i,a);const l=this.createNewPieces(t);s.length>0&&this.rbInsertRight(i,s);let d=i;for(let t=0;t<l.length;t++)d=this.rbInsertRight(d,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,i)}else{const e=this.createNewPieces(t);let i=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)i=this.rbInsertRight(i,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===we)return;const i=this.nodeAt(e),n=this.nodeAt(e+t),s=i.node,o=n.node;if(s===o){const o=this.positionInBuffer(s,i.remainder),r=this.positionInBuffer(s,n.remainder);if(i.nodeStartOffset===e){if(t===s.piece.length){const e=s.next();return Te(this,s),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(s,r),this._searchCache.validate(e),this.validateCRLFWithPrevNode(s),void this.computeBufferMetadata()}return i.nodeStartOffset+s.piece.length===e+t?(this.deleteNodeTail(s,o),this.validateCRLFWithNextNode(s),void this.computeBufferMetadata()):(this.shrinkNode(s,o,r),void this.computeBufferMetadata())}const r=[],a=this.positionInBuffer(s,i.remainder);this.deleteNodeTail(s,a),this._searchCache.validate(e),0===s.piece.length&&r.push(s);const l=this.positionInBuffer(o,n.remainder);this.deleteNodeHead(o,l),0===o.piece.length&&r.push(o);for(let h=s.next();h!==we&&h!==o;h=h.next())r.push(h);const d=0===s.piece.length?s.prev():s;this.deleteNodes(r),this.validateCRLFWithNextNode(d),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const i=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const n=t.piece,s={line:n.start.line+1,column:0},o=new We(n.bufferIndex,s,n.end,this.getLineFeedCnt(n.bufferIndex,s,n.end),n.length-1);t.piece=o,e+="\n",Me(this,t,-1,-1),0===t.piece.length&&i.push(t)}const n=this.createNewPieces(e);let s=this.rbInsertLeft(t,n[n.length-1]);for(let o=n.length-2;o>=0;o--)s=this.rbInsertLeft(s,n[o]);this.validateCRLFWithPrevNode(s),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]);let s=n;for(let o=1;o<i.length;o++)s=this.rbInsertRight(s,i[o]);this.validateCRLFWithPrevNode(n)}positionInBuffer(e,t,i){const n=e.piece,s=e.piece.bufferIndex,o=this._buffers[s].lineStarts,r=o[n.start.line]+n.start.column+t;let a=n.start.line,l=n.end.line,d=0,h=0,c=0;for(;a<=l&&(d=a+(l-a)/2|0,c=o[d],d!==l);)if(h=o[d+1],r<c)l=d-1;else{if(!(r>=h))break;a=d+1}return i?(i.line=d,i.column=r-c,null):{line:d,column:r-c}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;const n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;const s=n[i.line+1],o=n[i.line]+i.column;if(s>o+1)return i.line-t.line;const r=o-1;return 13===this._buffers[e].buffer.charCodeAt(r)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Te(this,e[t])}createNewPieces(e){if(e.length>Oe){const t=[];for(;e.length>Oe;){const i=e.charCodeAt(65534);let n;13===i||i>=55296&&i<=56319?(n=e.substring(0,65534),e=e.substring(65534)):(n=e.substring(0,Oe),e=e.substring(Oe));const s=Be(n);t.push(new We(this._buffers.length,{line:0,column:0},{line:s.length-1,column:n.length-s[s.length-1]},s.length-1,n.length)),this._buffers.push(new Ve(n,s))}const i=Be(e);return t.push(new We(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new Ve(e,i)),t}let t=this._buffers[0].buffer.length;const i=Be(e,!1);let n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let e=0;e<i.length;e++)i[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<i.length;e++)i[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+=e}const s=this._buffers[0].buffer.length,o=this._buffers[0].lineStarts.length-1,r={line:o,column:s-this._buffers[0].lineStarts[o]},a=new We(0,n,r,this.getLineFeedCnt(0,n,r),s-t);return this._lastChangeBufferPos=r,[a]}getLineRawContent(e,t=0){let i=this.root,n="";const s=this._searchCache.get2(e);if(s){i=s.node;const o=this.getAccumulatedValue(i,e-s.nodeStartLineNumber-1),r=this._buffers[i.piece.bufferIndex].buffer,a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(s.nodeStartLineNumber+i.piece.lineFeedCnt!==e){const n=this.getAccumulatedValue(i,e-s.nodeStartLineNumber);return r.substring(a+o,a+n-t)}n=r.substring(a+o,a+i.piece.length)}else{let s=0;const o=e;for(;i!==we;)if(i.left!==we&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:s,nodeStartLineNumber:o-(e-1-i.lf_left)}),a.substring(l+n,l+r-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(i,e-i.lf_left-2),s=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=s.substring(o+t,o+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,s+=i.size_left+i.piece.length,i=i.right}}for(i=i.next();i!==we;){const e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const s=this.getAccumulatedValue(i,0),o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=e.substring(o,o+s-t),n}{const t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=e.substr(t,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==we;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,n=this.positionInBuffer(e,t),s=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(t!==s)return{index:t,remainder:0}}return{index:s,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,s=i.start.line+t+1;return s>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[s]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,n=i.lineFeedCnt,s=this.offsetInBuffer(i.bufferIndex,i.end),o=t,r=this.offsetInBuffer(i.bufferIndex,o),a=this.getLineFeedCnt(i.bufferIndex,i.start,o),l=a-n,d=r-s,h=i.length+d;e.piece=new We(i.bufferIndex,i.start,o,a,h),Me(this,e,d,l)}deleteNodeHead(e,t){const i=e.piece,n=i.lineFeedCnt,s=this.offsetInBuffer(i.bufferIndex,i.start),o=t,r=this.getLineFeedCnt(i.bufferIndex,o,i.end),a=r-n,l=s-this.offsetInBuffer(i.bufferIndex,o),d=i.length+l;e.piece=new We(i.bufferIndex,o,i.end,r,d),Me(this,e,l,a)}shrinkNode(e,t,i){const n=e.piece,s=n.start,o=n.end,r=n.length,a=n.lineFeedCnt,l=t,d=this.getLineFeedCnt(n.bufferIndex,n.start,l),h=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,s);e.piece=new We(n.bufferIndex,n.start,l,d,h),Me(this,e,h-r,d-a);const c=new We(n.bufferIndex,i,o,this.getLineFeedCnt(n.bufferIndex,i,o),this.offsetInBuffer(n.bufferIndex,o)-this.offsetInBuffer(n.bufferIndex,i)),u=this.rbInsertRight(e,c);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const s=Be(t,!1);for(let c=0;c<s.length;c++)s[c]+=n;if(i){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:n-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(s.slice(1));const o=this._buffers[0].lineStarts.length-1,r={line:o,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[o]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,d=this.getLineFeedCnt(0,e.piece.start,r),h=d-l;e.piece=new We(e.piece.bufferIndex,e.piece.start,r,d,a),this._lastChangeBufferPos=r,Me(this,e,t.length,h)}nodeAt(e){let t=this.root;const i=this._searchCache.get(e);if(i)return{node:i.node,nodeStartOffset:i.nodeStartOffset,remainder:e-i.nodeStartOffset};let n=0;for(;t!==we;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){n+=t.size_left;const i={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==we;)if(i.left!==we&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2),o=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(s+t-1,o),nodeStartOffset:n}}if(i.lf_left+i.piece.lineFeedCnt===e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2);if(s+t-1<=i.piece.length)return{node:i,remainder:s+t-1,nodeStartOffset:n};t-=i.piece.length-s;break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==we;){if(i.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(i,0),n=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:n}}if(i.piece.length>=t-1){return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)}}t-=i.piece.length,i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===we||0===e.piece.lineFeedCnt)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,s=i[n]+t.start.column;if(n===i.length-1)return!1;return!(i[n+1]>s+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(s)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==we&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],n=this._buffers[e.piece.bufferIndex].lineStarts;let s;s=0===e.piece.end.column?{line:e.piece.end.line-1,column:n[e.piece.end.line]-n[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const o=e.piece.length-1,r=e.piece.lineFeedCnt-1;e.piece=new We(e.piece.bufferIndex,e.piece.start,s,r,o),Me(this,e,-1,-1),0===e.piece.length&&i.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,d=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new We(t.piece.bufferIndex,a,t.piece.end,d,l),Me(this,t,-1,-1),0===t.piece.length&&i.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let c=0;c<i.length;c++)Te(this,i[c])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const i=t.next();if(this.startWithLF(i)){if(e+="\n",1===i.piece.length)Te(this,i);else{const e=i.piece,t={line:e.start.line+1,column:0},n=e.length-1,s=this.getLineFeedCnt(e.bufferIndex,t,e.end);i.piece=new We(e.bufferIndex,t,e.end,s,n),Me(this,i,-1,-1)}return!0}}return!1}iterate(e,t){if(e===we)return t(we);const i=this.iterate(e.left,t);return i?t(e)&&this.iterate(e.right,t):i}getNodeContent(e){if(e===we)return"";const t=this._buffers[e.piece.bufferIndex],i=e.piece,n=this.offsetInBuffer(i.bufferIndex,i.start),s=this.offsetInBuffer(i.bufferIndex,i.end);return t.buffer.substring(n,s)}getPieceContent(e){const t=this._buffers[e.bufferIndex],i=this.offsetInBuffer(e.bufferIndex,e.start),n=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(i,n)}rbInsertRight(e,t){const i=new ye(t,1);i.left=we,i.right=we,i.parent=we,i.size_left=0,i.lf_left=0;if(this.root===we)this.root=i,i.color=0;else if(e.right===we)e.right=i,i.parent=e;else{const t=Se(e.right);t.left=i,i.parent=t}return Ie(this,i),i}rbInsertLeft(e,t){const i=new ye(t,1);if(i.left=we,i.right=we,i.parent=we,i.size_left=0,i.lf_left=0,this.root===we)this.root=i,i.color=0;else if(e.left===we)e.left=i,i.parent=e;else{const t=ke(e.left);t.right=i,i.parent=t}return Ie(this,i),i}}var Ue=i(64829);class Ke extends a.jG{constructor(e,t,i,n,s,o,a){super(),this._onDidChangeContent=this._register(new r.vl),this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=n,this._mightContainUnusualLineTerminators=s,this._pieceTree=new je(e,i,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const i=e+t,n=this.getPositionAt(e),s=this.getPositionAt(i);return new p.Q(n.lineNumber,n.column,s.lineNumber,s.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const i=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,i)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const i=this.getOffsetAt(e.startLineNumber,e.startColumn),n=this.getOffsetAt(e.endLineNumber,e.endColumn);let s=0;const o=this._getEndOfLine(t),r=this.getEOL();if(o.length!==r.length){s=(o.length-r.length)*(e.endLineNumber-e.startLineNumber)}return n-i+s}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let i=0;const n=e.startLineNumber,s=e.endLineNumber;for(let t=n;t<=s;t++){const o=this.getLineContent(t),r=t===n?e.startColumn-1:0,a=t===s?e.endColumn-1:o.length;for(let e=r;e<a;e++)l.pc(o.charCodeAt(e))?(i+=1,e+=1):i+=1}return i+=this._getEndOfLine(t).length*(s-n),i}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=l.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=l.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,i){let n=this._mightContainRTL,s=this._mightContainUnusualLineTerminators,o=this._mightContainNonBasicASCII,r=!0,a=[];for(let f=0;f<e.length;f++){const t=e[f];r&&t._isTracked&&(r=!1);const i=t.range;if(t.text){let e=!0;o||(e=!l.aC(t.text),o=e),!n&&e&&(n=l.E_(t.text)),!s&&e&&(s=l.$X(t.text))}let d="",c=0,u=0,g=0;if(t.text){let e;[c,u,g,e]=(0,h.W)(t.text);const i=this.getEOL();d=0===e||e===("\r\n"===i?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,i)}a[f]={sortIndex:f,identifier:t.identifier||null,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i),text:d,eolCount:c,firstLineLength:u,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Ke._sortOpsAscending);let d=!1;for(let l=0,h=a.length-1;l<h;l++){const e=a[l].range.getEndPosition(),t=a[l+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");d=!0}}r&&(a=this._reduceOperations(a));const c=i||t?Ke._getInverseEditRanges(a):[],u=[];if(t)for(let h=0;h<a.length;h++){const e=a[h],t=c[h];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let i=t.startLineNumber;i<=t.endLineNumber;i++){let n="";i===t.startLineNumber&&(n=this.getLineContent(e.range.startLineNumber),-1!==l.HG(n))||u.push({lineNumber:i,oldContent:n})}}let g=null;if(i){let e=0;g=[];for(let t=0;t<a.length;t++){const i=a[t],n=c[t],s=this.getValueInRange(i.range),o=i.rangeOffset+e;e+=i.text.length-s.length,g[t]={sortIndex:i.sortIndex,identifier:i.identifier,range:n,text:s,textChange:new Ue.k(i.rangeOffset,s,o,i.text)}}d||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=s,this._mightContainNonBasicASCII=o;const p=this._doApplyEdits(a);let m=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=u.length;e<t;e++){const t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;const i=u[e].oldContent,n=this.getLineContent(t);0!==n.length&&n!==i&&-1===l.HG(n)&&m.push(t)}}return this._onDidChangeContent.fire(),new b.F4(g,p,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,n=e[e.length-1].range,s=new p.Q(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let o=i.startLineNumber,r=i.startColumn;const a=[];for(let h=0,g=e.length;h<g;h++){const i=e[h],n=i.range;t=t||i.forceMoveMarkers,a.push(this.getValueInRange(new p.Q(o,r,n.startLineNumber,n.startColumn))),i.text.length>0&&a.push(i.text),o=n.endLineNumber,r=n.endColumn}const l=a.join(""),[d,c,u]=(0,h.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:s,rangeOffset:this.getOffsetAt(s.startLineNumber,s.startColumn),rangeLength:this.getValueLengthInRange(s,0),text:l,eolCount:d,firstLineLength:c,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Ke._sortOpsDescending);const t=[];for(let i=0;i<e.length;i++){const n=e[i],s=n.range.startLineNumber,o=n.range.startColumn,r=n.range.endLineNumber,a=n.range.endColumn;if(s===r&&o===a&&0===n.text.length)continue;n.text?(this._pieceTree.delete(n.rangeOffset,n.rangeLength),this._pieceTree.insert(n.rangeOffset,n.text,!0)):this._pieceTree.delete(n.rangeOffset,n.rangeLength);const l=new p.Q(s,o,r,a);t.push({range:l,rangeLength:n.rangeLength,text:n.text,rangeOffset:n.rangeOffset,forceMoveMarkers:n.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,i,n){return this._pieceTree.findMatchesLineByLine(e,t,i,n)}static _getInverseEditRanges(e){const t=[];let i=0,n=0,s=null;for(let o=0,r=e.length;o<r;o++){const r=e[o];let a,l,d;if(s?s.range.endLineNumber===r.range.startLineNumber?(a=i,l=n+(r.range.startColumn-s.range.endColumn)):(a=i+(r.range.startLineNumber-s.range.endLineNumber),l=r.range.startColumn):(a=r.range.startLineNumber,l=r.range.startColumn),r.text.length>0){const e=r.eolCount+1;d=1===e?new p.Q(a,l,a,l+r.firstLineLength):new p.Q(a,l,a+e-1,r.lastLineLength+1)}else d=new p.Q(a,l,a,l);i=d.endLineNumber,n=d.endColumn,t.push(d),s=r}return t}static _sortOpsAscending(e,t){const i=p.Q.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=p.Q.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}class Ge{constructor(e,t,i,n,s,o,r,a,l){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=s,this._containsRTL=o,this._containsUnusualLineTerminators=r,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let s=0,o=i.length;s<o;s++){const e=i[s].buffer.replace(/\r\n|\r|\n/g,t),n=Be(e);i[s]=new Ve(e,n)}const n=new Ke(i,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:n,disposable:n}}}class $e{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&l.LU(e)&&(this.BOM=l.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let i=1,n=0,s=0,o=0,r=!0;for(let l=0,d=t.length;l<d;l++){const a=t.charCodeAt(l);13===a?l+1<d&&10===t.charCodeAt(l+1)?(o++,e[i++]=l+2,l++):(n++,e[i++]=l+1):10===a?(s++,e[i++]=l+1):r&&9!==a&&(a<32||a>126)&&(r=!1)}const a=new Fe(Pe(e),n,s,o,r);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new Ve(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=l.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=l.$X(e)))}finish(e=!0){return this._finish(),new Ge(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Be(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var qe=i(90766),Qe=i(26486),Ye=i(62083),Ze=i(20761),Xe=i(98067),Je=i(78381),et=i(74444),tt=i(20788);class it{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,i){if(e>=this._store.length)return;if(0===t)return void this.insert(e,i);if(0===i)return void this.delete(e,t);const n=this._store.slice(0,e),s=this._store.slice(e+t),o=function(e,t){const i=[];for(let n=0;n<e;n++)i[n]=t;return i}(i,this._default);this._store=n.concat(o,s)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const i=[];for(let n=0;n<t;n++)i[n]=this._default;this._store=(0,n.nK)(this._store,e,i)}}class nt{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class st{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e)return void i.appendLineTokens(t)}this._tokens.push(new nt(e,[t]))}finalize(){return this._tokens}}var ot=i(87469);class rt{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new lt(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class at extends rt{constructor(e,t,i,n){super(e,t),this._textModel=i,this._languageIdCodec=n}updateTokensUntilLine(e,t){const i=this._textModel.getLanguageId();for(;;){const n=this.getFirstInvalidLine();if(!n||n.lineNumber>t)break;const s=this._textModel.getLineContent(n.lineNumber),o=ct(this._languageIdCodec,i,this.tokenizationSupport,s,!0,n.startState);e.add(n.lineNumber,o.tokens),this.store.setEndState(n.lineNumber,o.endState)}}getTokenTypeIfInsertingCharacter(e,t){const i=this.getStartState(e.lineNumber);if(!i)return 0;const n=this._textModel.getLanguageId(),s=this._textModel.getLineContent(e.lineNumber),o=s.substring(0,e.column-1)+t+s.substring(e.column-1),r=ct(this._languageIdCodec,n,this.tokenizationSupport,o,!0,i),a=new ot.f(r.tokens,o,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,i){const n=e.lineNumber,s=e.column,o=this.getStartState(n);if(!o)return null;const r=this._textModel.getLineContent(n),a=r.substring(0,s-1)+i+r.substring(s-1+t),l=this._textModel.getLanguageIdAtPosition(n,0),d=ct(this._languageIdCodec,l,this.tokenizationSupport,a,!0,o);return new ot.f(d.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,i){if(i<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,i),{heuristicTokens:!1};let n=this.guessStartState(t);const s=this._textModel.getLanguageId();for(let o=t;o<=i;o++){const t=this._textModel.getLineContent(o),i=ct(this._languageIdCodec,s,this.tokenizationSupport,t,!0,n);e.add(o,i.tokens),n=i.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const i=[];let n=null;for(let r=e-1;t>1&&r>=1;r--){const e=this._textModel.getLineFirstNonWhitespaceColumn(r);if(0!==e&&(e<t&&(i.push(this._textModel.getLineContent(r)),t=e,n=this.getStartState(r),n)))break}n||(n=this.tokenizationSupport.getInitialState()),i.reverse();const s=this._textModel.getLanguageId();let o=n;for(const r of i){o=ct(this._languageIdCodec,s,this.tokenizationSupport,r,!1,o).endState}return o}}class lt{constructor(e){this.lineCount=e,this._tokenizationStateStore=new dt,this._invalidEndStatesLineNumbers=new ht,this._invalidEndStatesLineNumbers.addRange(new et.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new o.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const i=this._tokenizationStateStore.setEndState(e,t);return i&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new et.L(e+1,e+2)),i}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new et.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,h.W)(t.text);this.acceptChange(new u.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new et.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const i=this.getStartState(t,e);if(!i)throw new o.D7("Start state must be defined");return{lineNumber:t,startState:i}}}class dt{constructor(){this._lineEndStates=new it(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const i=this._lineEndStates.get(e);return(!i||!i.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let i=e.length;t>0&&i>0&&(i--,t--),this._lineEndStates.replace(e.startLineNumber,i,t)}}class ht{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const i=this._ranges[t];i.start===e?i.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new et.L(e+1,i.endExclusive):i.endExclusive===e+1?this._ranges[t]=new et.L(i.start,e):this._ranges.splice(t,1,new et.L(i.start,e),new et.L(e+1,i.endExclusive))}}addRange(e){et.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let i=0;for(;!(i>=this._ranges.length||e.start<=this._ranges[i].endExclusive);)i++;let n=i;for(;!(n>=this._ranges.length||e.endExclusive<this._ranges[n].start);)n++;const s=t-e.length;for(let o=n;o<this._ranges.length;o++)this._ranges[o]=this._ranges[o].delta(s);if(i===n){const n=new et.L(e.start,e.start+t);n.isEmpty||this._ranges.splice(i,0,n)}else{const t=Math.min(e.start,this._ranges[i].start),o=Math.max(e.endExclusive,this._ranges[n-1].endExclusive),r=new et.L(t,o+s);r.isEmpty?this._ranges.splice(i,n-i):this._ranges.splice(i,n-i,r)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function ct(e,t,i,n,s,r){let a=null;if(i)try{a=i.tokenizeEncoded(n,s,r.clone())}catch(l){(0,o.dz)(l)}return a||(a=(0,tt.Lh)(e.encodeLanguageId(t),r)),ot.f.convertToEndOffset(a.tokens,n.length),a}class ut{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,qe.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,Xe._p)(i):this._beginBackgroundTokenization())};i()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new st,i=Je.W.create(!1);do{if(i.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){var t;const i=null===(t=this._tokenizerWithStateStore)||void 0===t?void 0:t.getFirstInvalidLine();return i?(this._tokenizerWithStateStore.updateTokensUntilLine(e,i.lineNumber),i.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new u.M(e,t))}}const gt=new Uint32Array(0).buffer;class pt{static deleteBeginning(e,t){return null===e||e===gt?e:pt.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===gt)return e;const i=mt(e),n=i[i.length-2];return pt.delete(e,t,n)}static delete(e,t,i){if(null===e||e===gt||t===i)return e;const n=mt(e),s=n.length>>>1;if(0===t&&n[n.length-2]===i)return gt;const o=ot.f.findIndexInTokensArray(n,t),r=o>0?n[o-1<<1]:0;if(i<n[o<<1]){const r=i-t;for(let e=o;e<s;e++)n[e<<1]-=r;return e}let a,l;r!==t?(n[o<<1]=t,a=o+1<<1,l=t):(a=o<<1,l=r);const d=i-t;for(let c=o+1;c<s;c++){const e=n[c<<1]-d;e>l&&(n[a++]=e,n[a++]=n[1+(c<<1)],l=e)}if(a===n.length)return e;const h=new Uint32Array(a);return h.set(n.subarray(0,a),0),h.buffer}static append(e,t){if(t===gt)return e;if(e===gt)return t;if(null===e)return e;if(null===t)return null;const i=mt(e),n=mt(t),s=n.length>>>1,o=new Uint32Array(i.length+n.length);o.set(i,0);let r=i.length;const a=i[i.length-2];for(let l=0;l<s;l++)o[r++]=n[l<<1]+a,o[r++]=n[1+(l<<1)];return o.buffer}static insert(e,t,i){if(null===e||e===gt)return e;const n=mt(e),s=n.length>>>1;let o=ot.f.findIndexInTokensArray(n,t);if(o>0){n[o-1<<1]===t&&o--}for(let r=o;r<s;r++)n[r<<1]+=i;return e}}function mt(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var ft=i(25982);class _t{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,i){let n=null;if(t<this._len&&(n=this._lineTokens[t]),null!==n&&n!==gt)return new ot.f(mt(n),i,this._languageIdCodec);const s=new Uint32Array(2);return s[0]=i.length,s[1]=vt(this._languageIdCodec.encodeLanguageId(e)),new ot.f(s,i,this._languageIdCodec)}static _massageTokens(e,t,i){const n=i?mt(i):null;if(0===t){let t=!1;if(n&&n.length>1&&(t=ft.x.getLanguageId(n[1])!==e),!t)return gt}if(!n||0===n.length){const i=new Uint32Array(2);return i[0]=t,i[1]=vt(e),i.buffer}return n[n.length-2]=t,0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const i=[];for(let n=0;n<t;n++)i[n]=null;this._lineTokens=n.nK(this._lineTokens,e,i),this._len+=t}setTokens(e,t,i,n,s){const o=_t._massageTokens(this._languageIdCodec.encodeLanguageId(e),i,n);this._ensureLine(t);const r=this._lineTokens[t];return this._lineTokens[t]=o,!!s&&!_t._equals(r,o)}static _equals(e,t){if(!e||!t)return!e&&!t;const i=mt(e),n=mt(t);if(i.length!==n.length)return!1;for(let s=0,o=i.length;s<o;s++)if(i[s]!==n[s])return!1;return!0}acceptEdit(e,t,i){this._acceptDeleteRange(e),this._acceptInsertText(new g.y(e.startLineNumber,e.startColumn),t,i)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=pt.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=pt.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null;i<this._len&&(n=pt.deleteBeginning(this._lineTokens[i],e.endColumn-1)),this._lineTokens[t]=pt.append(this._lineTokens[t],n),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,i){if(0===t&&0===i)return;const n=e.lineNumber-1;n>=this._len||(0!==t?(this._lineTokens[n]=pt.deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=pt.insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)):this._lineTokens[n]=pt.insert(this._lineTokens[n],e.column-1,i))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const i=[];for(let n=0,s=e.length;n<s;n++){const s=e[n];let o=0,r=0,a=!1;for(let e=s.startLineNumber;e<=s.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),s.getLineTokens(e),!1),r=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),s.getLineTokens(e),!0)&&(a=!0,o=e,r=e)}a&&i.push({fromLineNumber:o,toLineNumber:r})}return{changes:i}}}function vt(e){return(32768|e|2<<24|1024)>>>0}class bt{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const n=t[0].getRange(),s=t[t.length-1].getRange();if(!n||!s)return e;i=e.plusRange(n).plusRange(s)}let s=null;for(let n=0,o=this._pieces.length;n<o;n++){const e=this._pieces[n];if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){s=s||{index:n};break}if(e.removeTokens(i),e.isEmpty()){this._pieces.splice(n,1),n--,o--;continue}if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){s=s||{index:n};continue}const[t,r]=e.split(i);t.isEmpty()?s=s||{index:n}:r.isEmpty()||(this._pieces.splice(n,1,t,r),n++,o++,s=s||{index:n})}return s=s||{index:this._pieces.length},t.length>0&&(this._pieces=n.nK(this._pieces,s.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const i=this._pieces;if(0===i.length)return t;const n=i[bt._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!n)return t;const s=t.getCount(),o=n.getCount();let r=0;const a=[];let l=0,d=0;const h=(e,t)=>{e!==d&&(d=e,a[l++]=e,a[l++]=t)};for(let c=0;c<o;c++){const e=n.getStartCharacter(c),i=n.getEndCharacter(c),o=n.getMetadata(c),a=((1&o?2048:0)|(2&o?4096:0)|(4&o?8192:0)|(8&o?16384:0)|(16&o?16744448:0)|(32&o?4278190080:0))>>>0,l=~a>>>0;for(;r<s&&t.getEndOffset(r)<=e;)h(t.getEndOffset(r),t.getMetadata(r)),r++;for(r<s&&t.getStartOffset(r)<e&&h(e,t.getMetadata(r));r<s&&t.getEndOffset(r)<i;)h(t.getEndOffset(r),t.getMetadata(r)&l|o&a),r++;if(r<s)h(i,t.getMetadata(r)&l|o&a),t.getEndOffset(r)===i&&r++;else{const e=Math.min(Math.max(0,r-1),s-1);h(i,t.getMetadata(e)&l|o&a)}}for(;r<s;)h(t.getEndOffset(r),t.getMetadata(r)),r++;return new ot.f(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let i=0,n=e.length-1;for(;i<n;){let s=i+Math.floor((n-i)/2);if(e[s].endLineNumber<t)i=s+1;else{if(!(e[s].startLineNumber>t)){for(;s>i&&e[s-1].startLineNumber<=t&&t<=e[s-1].endLineNumber;)s--;return s}n=s-1}}return i}acceptEdit(e,t,i,n,s){for(const o of this._pieces)o.acceptEdit(e,t,i,n,s)}}class Ct extends Ze._{constructor(e,t,i,n,s,o){super(),this._languageService=e,this._languageConfigurationService=t,this._textModel=i,this._bracketPairsTextModelPart=n,this._languageId=s,this._attachedViews=o,this._semanticTokens=new bt(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new r.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new r.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this.grammarTokens=this._register(new yt(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews)),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(this.grammarTokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._register(this.grammarTokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()})))}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,i,n]=(0,h.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,i,n,t.text.length>0?t.text.charCodeAt(0):0)}this.grammarTokens.handleDidChangeContent(e)}handleDidChangeAttached(){this.grammarTokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this.grammarTokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new o.D7("Illegal value for lineNumber")}get hasTokens(){return this.grammarTokens.hasTokens}resetTokenization(){this.grammarTokens.resetTokenization()}get backgroundTokenizationState(){return this.grammarTokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this.grammarTokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this.grammarTokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this.grammarTokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this.grammarTokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,i){return this.grammarTokens.getTokenTypeIfInsertingCharacter(e,t,i)}tokenizeLineWithEdit(e,t,i){return this.grammarTokens.tokenizeLineWithEdit(e,t,i)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),n=this.getLineTokens(t.lineNumber),s=n.findTokenIndexAtOffset(t.column-1),[o,r]=Ct._findLanguageBoundaries(n,s),a=(0,Qe.Th)(t.column,this.getLanguageConfiguration(n.getLanguageId(s)).getWordDefinition(),i.substring(o,r),o);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(s>0&&o===t.column-1){const[o,r]=Ct._findLanguageBoundaries(n,s-1),a=(0,Qe.Th)(t.column,this.getLanguageConfiguration(n.getLanguageId(s-1)).getWordDefinition(),i.substring(o,r),o);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let o=t;o>=0&&e.getLanguageId(o)===i;o--)n=e.getStartOffset(o);let s=e.getLineContent().length;for(let o=t,r=e.getCount();o<r&&e.getLanguageId(o)===i;o++)s=e.getEndOffset(o);return[n,s]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const i=this._textModel.validatePosition(new g.y(e,t)),n=this.getLineTokens(i.lineNumber);return n.getLanguageId(n.findTokenIndexAtOffset(i.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const i={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(i),this.grammarTokens.resetTokenization(),this._onDidChangeLanguage.fire(i),this._onDidChangeLanguageConfiguration.fire({})}}class yt extends a.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,i,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=i,this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new a.HE),this._tokens=new _t(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new a.HE),this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new r.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._attachedViewStates=this._register(new a.$w),this._register(Ye.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(n.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let i=this._attachedViewStates.get(e);i||(i=new wt((()=>this.refreshRanges(i.lineRanges))),this._attachedViewStates.set(e,i)),i.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){var t;this._tokens.flush(),null===(t=this._debugBackgroundTokens)||void 0===t||t.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new lt(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[i,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Ye.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(i){return(0,o.dz)(i),[null,null]}return[e,t]})();if(this._tokenizer=i&&n?new at(this._textModel.getLineCount(),i,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{var i;if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&(null===(i=this._tokenizer)||void 0===i||i.store.setEndState(e,t))}};i&&i.createBackgroundTokenizer&&!i.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=i.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ut(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),(null===i||void 0===i?void 0:i.backgroundTokenizerShouldOnlyVerifyTokens)&&i.createBackgroundTokenizer?(this._debugBackgroundTokens=new _t(this._languageIdCodec),this._debugBackgroundStates=new lt(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=i.createBackgroundTokenizer(this._textModel,{setTokens:e=>{var t;null===(t=this._debugBackgroundTokens)||void 0===t||t.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{var i;null===(i=this._debugBackgroundStates)||void 0===i||i.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){var e;null===(e=this._defaultBackgroundTokenizer)||void 0===e||e.handleChanges()}handleDidChangeContent(e){var t,i,n;if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const i of e.changes){const[e,n]=(0,h.W)(i.text);this._tokens.acceptEdit(i.range,e,n),null===(t=this._debugBackgroundTokens)||void 0===t||t.acceptEdit(i.range,e,n)}null===(i=this._debugBackgroundStates)||void 0===i||i.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),null===(n=this._defaultBackgroundTokenizer)||void 0===n||n.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=u.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){var i,n;if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const s=new st,{heuristicTokens:o}=this._tokenizer.tokenizeHeuristically(s,e,t),r=this.setTokens(s.finalize());if(o)for(const a of r.changes)null===(i=this._backgroundTokenizer.value)||void 0===i||i.requestTokens(a.fromLineNumber,a.toLineNumber+1);null===(n=this._defaultBackgroundTokenizer)||void 0===n||n.checkFinished()}forceTokenization(e){var t,i;const n=new st;null===(t=this._tokenizer)||void 0===t||t.updateTokensUntilLine(n,e),this.setTokens(n.finalize()),null===(i=this._defaultBackgroundTokenizer)||void 0===i||i.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){var t;const i=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,i);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const s=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,i);!n.equals(s)&&(null===(t=this._debugBackgroundTokenizer.value)||void 0===t?void 0:t.reportMismatchingTokens)&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,i){if(!this._tokenizer)return 0;const n=this._textModel.validatePosition(new g.y(e,t));return this.forceTokenization(n.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(n,i)}tokenizeLineWithEdit(e,t,i){if(!this._tokenizer)return null;const n=this._textModel.validatePosition(e);return this.forceTokenization(n.lineNumber),this._tokenizer.tokenizeLineWithEdit(n,t,i)}get hasTokens(){return this._tokens.hasTokens}}class wt extends a.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new qe.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,n.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}var St,kt=i(64727),xt=i(47579),Lt=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Dt=function(e,t){return function(i,n){t(i,n,e)}};function Et(e,t){let i;return i="string"===typeof e?function(e){const t=new $e;return t.acceptChunk(e),t.finish()}(e):b.nk(e)?function(e){const t=new $e;let i;for(;"string"===typeof(i=e.read());)t.acceptChunk(i);return t.finish()}(e):e,i.create(t)}let Nt=0;class Tt{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;for(;;){const n=this._source.read();if(null===n)return this._eos=!0,0===t?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=65536)return e.join("")}}}const It=()=>{throw new Error("Invalid change accessor")};let Mt=St=class extends a.jG{static resolveOptions(e,t){if(t.detectIndentation){const i=Y(e,t.tabSize,t.insertSpaces);return new b.X2({tabSize:i.tabSize,indentSize:"tabSize",insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new b.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,a.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,i,n=null,s,o,h){super(),this._undoRedoService=s,this._languageService=o,this._languageConfigurationService=h,this._onWillDispose=this._register(new r.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Kt((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new r.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new r.vl),this._eventEmitter=this._register(new Gt),this._languageSelectionListener=this._register(new a.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new $t,Nt++,this.id="$model"+Nt,this.isForSimpleWidget=i.isForSimpleWidget,this._associatedResource="undefined"===typeof n||null===n?d.r.parse("inmemory://model/"+Nt):n,this._attachedEditorCount=0;const{textBuffer:c,disposable:u}=Et(e,i.defaultEOL);this._buffer=c,this._bufferDisposable=u,this._options=St.resolveOptions(this._buffer,i);const g="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new B(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new $.P(this,this._languageConfigurationService)),this._decorationProvider=this._register(new U(this)),this._tokenizationTextModelPart=new Ct(this._languageService,this._languageConfigurationService,this,this._bracketPairs,g,this._attachedViews);const m=this._buffer.getLineCount(),f=this._buffer.getValueLengthInRange(new p.Q(1,1,m,this._buffer.getLineLength(m)+1),0);i.largeFileOptimizations?(this._isTooLargeForTokenization=f>St.LARGE_FILE_SIZE_THRESHOLD||m>St.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=f>St.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=f>St._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=l.tk(Nt),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Ot,this._commandManager=new G.z8(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(g)}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Ke([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=a.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new kt.Ic(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,o.Qg)();const{textBuffer:t,disposable:i}=Et(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,n,s,o,r,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:s,isRedoing:o,isFlush:r}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),o=this.getLineMaxColumn(s);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Ot,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new kt.HP([new kt.Wn],this._versionId,!1,!1),this._createContentChanged2(new p.Q(1,1,s,o),0,n,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),o=this.getLineMaxColumn(s);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new kt.HP([new kt.mS],this._versionId,!1,!1),this._createContentChanged2(new p.Q(1,1,s,o),0,n,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i<n;i++){const n=t[i],s=n.range,o=n.cachedAbsoluteStart-n.start,r=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),a=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);n.cachedAbsoluteStart=r,n.cachedAbsoluteEnd=a,n.cachedVersionId=e,n.start=r-o,n.end=a-o,ve(n)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let n=1;n<=i;n++){const i=this._buffer.getLineLength(n);i>=1e4?t+=i:e+=i}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,i="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,n="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,s="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,r=new b.X2({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:s,bracketPairColorizationOptions:o});if(this._options.equals(r))return;const a=this._options.createChangeEvent(r);this._options=r,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const i=Y(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),(0,c.P)(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(l._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new o.D7("Operation would exceed heap memory limits");const i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}createSnapshot(e=!1){return new Tt(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new o.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new o.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,n=e.startColumn;let s=Math.floor("number"!==typeof i||isNaN(i)?1:i),o=Math.floor("number"!==typeof n||isNaN(n)?1:n);if(s<1)s=1,o=1;else if(s>t)s=t,o=this.getLineMaxColumn(s);else if(o<=1)o=1;else{const e=this.getLineMaxColumn(s);o>=e&&(o=e)}const r=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof r||isNaN(r)?1:r),d=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,d=1;else if(l>t)l=t,d=this.getLineMaxColumn(l);else if(d<=1)d=1;else{const e=this.getLineMaxColumn(l);d>=e&&(d=e)}return i===s&&n===o&&r===l&&a===d&&e instanceof p.Q&&!(e instanceof m.L)?e:new p.Q(s,o,l,d)}_isValidPosition(e,t,i){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===i){const i=this._buffer.getLineCharCode(e,t-2);if(l.pc(i))return!1}return!0}_validatePosition(e,t,i){const n=Math.floor("number"!==typeof e||isNaN(e)?1:e),s=Math.floor("number"!==typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(n<1)return new g.y(1,1);if(n>o)return new g.y(o,this.getLineMaxColumn(o));if(s<=1)return new g.y(n,1);const r=this.getLineMaxColumn(n);if(s>=r)return new g.y(n,r);if(1===i){const e=this._buffer.getLineCharCode(n,s-2);if(l.pc(e))return new g.y(n,s-1)}return new g.y(n,s)}validatePosition(e){return this._assertNotDisposed(),e instanceof g.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(i,n,0))return!1;if(!this._isValidPosition(s,o,0))return!1;if(1===t){const e=n>1?this._buffer.getLineCharCode(i,n-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,r=l.pc(e),a=l.pc(t);return!r&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof p.Q&&!(e instanceof m.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),n=t.lineNumber,s=t.column,o=i.lineNumber,r=i.column;{const e=s>1?this._buffer.getLineCharCode(n,s-2):0,t=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,i=l.pc(e),a=l.pc(t);return i||a?n===o&&s===r?new p.Q(n,s-1,o,r-1):i&&a?new p.Q(n,s-1,o,r+1):i?new p.Q(n,s-1,o,r):new p.Q(n,s,o,r+1):new p.Q(n,s,o,r)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new p.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,n){return this._buffer.findMatchesLineByLine(e,t,i,n)}findMatches(e,t,i,n,s,o,r=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>p.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let d;if(l.push(a.reduce(((e,t)=>p.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!i&&e.indexOf("\n")<0){const t=new Re.lt(e,i,n,s).parseSearchRequest();if(!t)return[];d=e=>this.findMatchesLineByLine(e,t,o,r)}else d=t=>Re.hB.findMatches(this,new Re.lt(e,i,n,s),t,o,r);return l.map(d).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,i,n,s,o){this._assertNotDisposed();const r=this.validatePosition(t);if(!i&&e.indexOf("\n")<0){const t=new Re.lt(e,i,n,s).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new p.Q(r.lineNumber,r.column,a,this.getLineMaxColumn(a)),d=this.findMatchesLineByLine(l,t,o,1);return Re.hB.findNextMatch(this,new Re.lt(e,i,n,s),r,o),d.length>0?d[0]:(l=new p.Q(1,1,r.lineNumber,this.getLineMaxColumn(r.lineNumber)),d=this.findMatchesLineByLine(l,t,o,1),d.length>0?d[0]:null)}return Re.hB.findNextMatch(this,new Re.lt(e,i,n,s),r,o)}findPreviousMatch(e,t,i,n,s,o){this._assertNotDisposed();const r=this.validatePosition(t);return Re.hB.findPreviousMatch(this,new Re.lt(e,i,n,s),r,o)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof b.Wo?e:new b.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,n=e.length;i<n;i++)t[i]=this._validateEditOperation(e[i]);return t}pushEditOperations(e,t,i,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),i,n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,i,n){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const i=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let n=!0;if(e)for(let t=0,s=e.length;t<s;t++){const s=e[t];let o=!1;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,n=t.startLineNumber>s.endLineNumber,r=s.startLineNumber>t.endLineNumber;if(!n&&!r){o=!0;break}}if(!o){n=!1;break}}if(n)for(let e=0,s=this._trimAutoWhitespaceLines.length;e<s;e++){const n=this._trimAutoWhitespaceLines[e],s=this.getLineMaxColumn(n);let o=!0;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,r=i[e].text;if(!(n<t.startLineNumber||n>t.endLineNumber)&&(!(n===t.startLineNumber&&t.startColumn===s&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(0))&&!(n===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(r.length-1)))){o=!1;break}}if(o){const e=new p.Q(n,1,n,s);t.push(new b.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i,n)}_applyUndo(e,t,i,n){const s=e.map((e=>{const t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new p.Q(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}}));this._applyUndoRedoEdits(s,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const s=e.map((e=>{const t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new p.Q(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}}));this._applyUndoRedoEdits(s,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,s,o){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(s)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(o),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),s=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),r=s.changes;if(this._trimAutoWhitespaceLines=s.trimAutoWhitespaceLineNumbers,0!==r.length){for(let i=0,n=r.length;i<n;i++){const e=r[i];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=i;for(let i=0,s=r.length;i<s;i++){const s=r[i],[a]=(0,h.W)(s.text);this._onDidChangeDecorations.fire();const l=s.range.startLineNumber,d=s.range.endLineNumber,c=d-l,u=a,p=Math.min(c,u),m=u-c,f=o-t-m+l,_=f,v=f+u,b=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new g.y(_,1)),this.getOffsetAt(new g.y(v,this.getLineMaxColumn(v))),0),C=kt.uK.fromDecorations(b),y=new n.j3(C);for(let t=p;t>=0;t--){const i=l+t,n=f+t;y.takeFromEndWhile((e=>e.lineNumber>n));const s=y.takeFromEndWhile((e=>e.lineNumber===n));e.push(new kt.U0(i,this.getLineContent(n),s))}if(p<c){const t=l+p;e.push(new kt.E$(t+1,d))}if(p<u){const i=new n.j3(C),s=l+p,r=u-p,a=o-t-r+s+1,d=[],h=[];for(let e=0;e<r;e++){const t=a+e;h[e]=this.getLineContent(t),i.takeWhile((e=>e.lineNumber<t)),d[e]=i.takeWhile((e=>e.lineNumber===t))}e.push(new kt.bg(s+1,l+u,h,d))}t+=m}this._emitContentChangedEvent(new kt.HP(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===s.reverseEdits?void 0:s.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new kt.U0(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new kt.vn(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,Ut(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)};let n=null;try{n=t(i)}catch(s){(0,o.dz)(s)}return i.addDecoration=It,i.changeDecoration=It,i.changeDecorationOptions=It,i.removeDecoration=It,i.deltaDecorations=It,n}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,o.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:jt[i]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const s=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),r=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),o,r,s),n.setOptions(jt[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,n=t.length;i<n;i++){const e=t[i];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,i=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,s=!1,o=!1){const r=this.getLineCount(),a=Math.min(r,Math.max(1,e)),l=Math.min(r,Math.max(1,t)),d=this.getLineMaxColumn(l),h=new p.Q(a,1,l,d),c=this._getDecorationsInRange(h,i,s,o);return(0,n.E4)(c,this._decorationProvider.getDecorationsInRange(h,i,s)),c}getDecorationsInRange(e,t=0,i=!1,s=!1,o=!1){const r=this.validateRange(e),a=this._getDecorationsInRange(r,t,i,o);return(0,n.E4)(a,this._decorationProvider.getDecorationsInRange(r,t,i,s)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return kt.uK.fromDecorations(n).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,i,n){const s=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,s,o,t,i,n)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(i.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),o=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,o,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const n=!(!i.options.overviewRuler||!i.options.overviewRuler.color),s=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(i.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const o=n!==s,r=function(e){return!!e.after||!!e.before}(t)!==Rt(i);o||r?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i,n=!1){const s=this.getVersionId(),o=t.length;let r=0;const a=i.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const d=new Array(a);for(;r<o||l<a;){let h=null;if(r<o){do{h=this._decorations[t[r++]]}while(!h&&r<o);if(h){if(h.options.after){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(h.options.before){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(h),n||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(l<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new ae(t,0,0),this._decorations[t]=h}const t=i[l],o=this._validateRangeRelaxedNoAllocations(t.range),r=Ut(t.options),a=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),c=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);h.ownerId=e,h.reset(s,a,c,o),h.setOptions(r),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.startLineNumber),n||this._onDidChangeDecorations.checkAffectedAndFire(r),this._decorationsTree.insert(h),d[l]=h.id,l++}else h&&delete this._decorations[h.id]}return d}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const i of e){if(" "!==i&&"\t"!==i)break;t++}return t}(this.getLineContent(e))+1}};function At(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Rt(e){return!!e.options.after||!!e.options.before}Mt._MODEL_SYNC_LIMIT=52428800,Mt.LARGE_FILE_SIZE_THRESHOLD=20971520,Mt.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,Mt.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456,Mt.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:f.R.tabSize,indentSize:f.R.indentSize,insertSpaces:f.R.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:f.R.trimAutoWhitespace,largeFileOptimizations:f.R.largeFileOptimizations,bracketPairColorizationOptions:f.R.bracketPairColorizationOptions},Mt=St=Lt([Dt(4,xt.$D),Dt(5,_.L),Dt(6,v.JZ)],Mt);class Ot{constructor(){this._decorationsTree0=new de,this._decorationsTree1=new de,this._injectedTextDecorationsTree=new de}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,n,s,o){const r=e.getVersionId(),a=this._intervalSearch(t,i,n,s,r,o);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,i,n,s,o){const r=this._decorationsTree0.intervalSearch(e,t,i,n,s,o),a=this._decorationsTree1.intervalSearch(e,t,i,n,s,o),l=this._injectedTextDecorationsTree.intervalSearch(e,t,i,n,s,o);return r.concat(a).concat(l)}getInjectedTextInInterval(e,t,i,n){const s=e.getVersionId(),o=this._injectedTextDecorationsTree.intervalSearch(t,i,n,!1,s,!1);return this._ensureNodesHaveRanges(e,o).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i,!1);return this._ensureNodesHaveRanges(e,n).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,i,n,s){const o=e.getVersionId(),r=this._search(t,i,n,o,s);return this._ensureNodesHaveRanges(e,r)}_search(e,t,i,n,s){if(i)return this._decorationsTree1.search(e,t,n,s);{const i=this._decorationsTree0.search(e,t,n,s),o=this._decorationsTree1.search(e,t,n,s),r=this._injectedTextDecorationsTree.search(e,t,n,s);return i.concat(o).concat(r)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){Rt(e)?this._injectedTextDecorationsTree.insert(e):At(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Rt(e)?this._injectedTextDecorationsTree.delete(e):At(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Rt(e)?this._injectedTextDecorationsTree.resolveNode(e,t):At(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function Pt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class Ft{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Bt extends Ft{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:b.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class Wt{constructor(e){var t;this.position=null!==(t=null===e||void 0===e?void 0:e.position)&&void 0!==t?t:b.ZS.Center,this.persistLane=null===e||void 0===e?void 0:e.persistLane}}class Vt extends Ft{constructor(e){var t,i;super(e),this.position=e.position,this.sectionHeaderStyle=null!==(t=e.sectionHeaderStyle)&&void 0!==t?t:null,this.sectionHeaderText=null!==(i=e.sectionHeaderText)&&void 0!==i?i:null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?s.Q1.fromHex(e):t.getColor(e.id)}}class Ht{static from(e){return e instanceof Ht?e:new Ht(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class zt{static register(e){return new zt(e)}static createDynamic(e){return new zt(e)}constructor(e){var t,i,n,s,o,r;this.description=e.description,this.blockClassName=e.blockClassName?Pt(e.blockClassName):null,this.blockDoesNotCollapse=null!==(t=e.blockDoesNotCollapse)&&void 0!==t?t:null,this.blockIsAfterEnd=null!==(i=e.blockIsAfterEnd)&&void 0!==i?i:null,this.blockPadding=null!==(n=e.blockPadding)&&void 0!==n?n:null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Pt(e.className):null,this.shouldFillLineOnLineBreak=null!==(s=e.shouldFillLineOnLineBreak)&&void 0!==s?s:null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Bt(e.overviewRuler):null,this.minimap=e.minimap?new Vt(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new Wt(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Pt(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Pt(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Pt(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?l.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Pt(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Pt(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Pt(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Pt(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Pt(e.afterContentClassName):null,this.after=e.after?Ht.from(e.after):null,this.before=e.before?Ht.from(e.before):null,this.hideInCommentTokens=null!==(o=e.hideInCommentTokens)&&void 0!==o&&o,this.hideInStringTokens=null!==(r=e.hideInStringTokens)&&void 0!==r&&r}}zt.EMPTY=zt.register({description:"empty"});const jt=[zt.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),zt.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),zt.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),zt.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Ut(e){return e instanceof zt?e:zt.createDynamic(e)}class Kt extends a.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new r.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),null===(e=this._affectedInjectedTextLines)||void 0===e||e.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){var t,i;this._affectsMinimap||(this._affectsMinimap=!!(null===(t=e.minimap)||void 0===t?void 0:t.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(null===(i=e.overviewRuler)||void 0===i?void 0:i.color)),this._affectsGlyphMargin||(this._affectsGlyphMargin=!!e.glyphMarginClassName),this._affectsLineNumber||(this._affectsLineNumber=!!e.lineNumberClassName),this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class Gt extends a.jG{constructor(){super(),this._fastEmitter=this._register(new r.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}class $t{constructor(){this._onDidChangeVisibleRanges=new r.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new qt((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class qt{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const i=e.map((e=>new u.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:i,stabilized:t})}}},20761:(e,t,i)=>{"use strict";i.d(t,{_:()=>s});var n=i(5662);class s extends n.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}},43264:(e,t,i)=>{"use strict";i.d(t,{W5:()=>g,dr:()=>d,hB:()=>c,lt:()=>l,wC:()=>u});var n=i(91508),s=i(81782),o=i(83069),r=i(36677),a=i(16223);class l{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t<i;t++){const n=e.charCodeAt(t);if(10===n)return!0;if(92===n){if(t++,t>=i)break;const n=e.charCodeAt(t);if(110===n||114===n||87===n)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=n.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(o){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new a.L5(t,this.wordSeparators?(0,s.i)(this.wordSeparators,[]):null,i?this.searchString:null)}}function d(e,t,i){if(!i)return new a.Dg(e,null);const n=[];for(let s=0,o=t.length;s<o;s++)n[s]=t[s];return new a.Dg(e,n)}class h{constructor(e){const t=[];let i=0;for(let n=0,s=e.length;n<s;n++)10===e.charCodeAt(n)&&(t[i++]=n);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let i=0,n=t.length-1;if(-1===n)return 0;if(e<=t[0])return 0;for(;i<n;){const s=i+((n-i)/2|0);t[s]>=e?n=s-1:t[s+1]>=e?(i=s,n=s):i=s+1}return i+1}}class c{static findMatches(e,t,i,n,s){const o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,i,new g(o.wordSeparators,o.regex),n,s):this._doFindMatchesLineByLine(e,i,o,n,s):[]}static _getMultilineMatchRange(e,t,i,n,s,o){let a,l,d=0;if(n?(d=n.findLineFeedCountBeforeOffset(s),a=t+s+d):a=t+s,n){const e=n.findLineFeedCountBeforeOffset(s+o.length)-d;l=a+o.length+e}else l=a+o.length;const h=e.getPositionAt(a),c=e.getPositionAt(l);return new r.Q(h.lineNumber,h.column,c.lineNumber,c.column)}static _doFindMatchesMultiline(e,t,i,n,s){const o=e.getOffsetAt(t.getStartPosition()),r=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new h(r):null,l=[];let c,u=0;for(i.reset(0);c=i.next(r);)if(l[u++]=d(this._getMultilineMatchRange(e,o,r,a,c.index,c[0]),c,n),u>=s)return l;return l}static _doFindMatchesLineByLine(e,t,i,n,s){const o=[];let r=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return r=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,r,o,n,s),o}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);r=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,r,o,n,s);for(let l=t.startLineNumber+1;l<t.endLineNumber&&r<s;l++)r=this._findMatchesInLine(i,e.getLineContent(l),l,0,r,o,n,s);if(r<s){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);r=this._findMatchesInLine(i,a,t.endLineNumber,0,r,o,n,s)}return o}static _findMatchesInLine(e,t,i,n,s,o,l,h){const c=e.wordSeparators;if(!l&&e.simpleSearch){const l=e.simpleSearch,d=l.length,g=t.length;let p=-d;for(;-1!==(p=t.indexOf(l,p+d));)if((!c||u(c,t,g,p,d))&&(o[s++]=new a.Dg(new r.Q(i,p+1+n,i,p+1+d+n),null),s>=h))return s;return s}const p=new g(e.wordSeparators,e.regex);let m;p.reset(0);do{if(m=p.next(t),m&&(o[s++]=d(new r.Q(i,m.index+1+n,i,m.index+1+m[0].length+n),m,l),s>=h))return s}while(m);return s}static findNextMatch(e,t,i,n){const s=t.parseSearchRequest();if(!s)return null;const o=new g(s.wordSeparators,s.regex);return s.regex.multiline?this._doFindNextMatchMultiline(e,i,o,n):this._doFindNextMatchLineByLine(e,i,o,n)}static _doFindNextMatchMultiline(e,t,i,n){const s=new o.y(t.lineNumber,1),a=e.getOffsetAt(s),l=e.getLineCount(),c=e.getValueInRange(new r.Q(s.lineNumber,s.column,l,e.getLineMaxColumn(l)),1),u="\r\n"===e.getEOL()?new h(c):null;i.reset(t.column-1);const g=i.next(c);return g?d(this._getMultilineMatchRange(e,a,c,u,g.index,g[0]),g,n):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new o.y(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){const s=e.getLineCount(),o=t.lineNumber,r=e.getLineContent(o),a=this._findFirstMatchInLine(i,r,o,t.column,n);if(a)return a;for(let l=1;l<=s;l++){const t=(o+l-1)%s,r=e.getLineContent(t+1),a=this._findFirstMatchInLine(i,r,t+1,1,n);if(a)return a}return null}static _findFirstMatchInLine(e,t,i,n,s){e.reset(n-1);const o=e.next(t);return o?d(new r.Q(i,o.index+1,i,o.index+1+o[0].length),o,s):null}static findPreviousMatch(e,t,i,n){const s=t.parseSearchRequest();if(!s)return null;const o=new g(s.wordSeparators,s.regex);return s.regex.multiline?this._doFindPreviousMatchMultiline(e,i,o,n):this._doFindPreviousMatchLineByLine(e,i,o,n)}static _doFindPreviousMatchMultiline(e,t,i,n){const s=this._doFindMatchesMultiline(e,new r.Q(1,1,t.lineNumber,t.column),i,n,9990);if(s.length>0)return s[s.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new o.y(a,e.getLineMaxColumn(a)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){const s=e.getLineCount(),o=t.lineNumber,r=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(i,r,o,n);if(a)return a;for(let l=1;l<=s;l++){const t=(s+o-l-1)%s,r=e.getLineContent(t+1),a=this._findLastMatchInLine(i,r,t+1,n);if(a)return a}return null}static _findLastMatchInLine(e,t,i,n){let s,o=null;for(e.reset(0);s=e.next(t);)o=d(new r.Q(i,s.index+1,i,s.index+1+s[0].length),s,n);return o}}function u(e,t,i,n,s){return function(e,t,i,n,s){if(0===n)return!0;const o=t.charCodeAt(n-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(s>0){const i=t.charCodeAt(n);if(0!==e.get(i))return!0}return!1}(e,t,0,n,s)&&function(e,t,i,n,s){if(n+s===i)return!0;const o=t.charCodeAt(n+s);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(s>0){const i=t.charCodeAt(n+s-1);if(0!==e.get(i))return!0}return!1}(e,t,i,n,s)}class g{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(i=this._searchRegex.exec(e),!i)return null;const s=i.index,o=i[0].length;if(s===this._prevMatchStartIndex&&o===this._prevMatchLength){if(0===o){n.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=s,this._prevMatchLength=o,!this._wordSeparators||u(this._wordSeparators,e,t,s,o))return i}while(i);return null}}},78049:(e,t,i)=>{"use strict";function n(e,t){let i=0,n=0;const s=e.length;for(;n<s;){const s=e.charCodeAt(n);if(32===s)i++;else{if(9!==s)break;i=i-i%t+t}n++}return n===s?-1:i}i.d(t,{G:()=>n})},73848:(e,t,i)=>{"use strict";i.d(t,{r:()=>g});var n=i(18447),s=i(41234),o=i(24939),r=i(79400),a=i(83069),l=i(36677),d=i(75326),h=i(62083),c=i(35015);class u{static chord(e,t){return(0,o.m5)(e,t)}}function g(){return{editor:void 0,languages:void 0,CancellationTokenSource:n.Q,Emitter:s.vl,KeyCode:c.DD,KeyMod:u,Position:a.y,Range:l.Q,Selection:d.L,SelectionDirection:c.SB,MarkerSeverity:c.cj,MarkerTag:c.d_,Uri:r.r,Token:h.ou}}u.CtrlCmd=2048,u.Shift=1024,u.Alt=512,u.WinCtrl=256},10920:(e,t,i)=>{"use strict";i.d(t,{w:()=>n});const n=(0,i(63591).u1)("editorWorkerService")},32500:(e,t,i)=>{"use strict";i.d(t,{U:()=>g});var n=i(85600),s=i(74320),o=i(1592),r=i(97035),a=i(14718),l=i(63591),d=i(18801),h=i(36456),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},u=function(e,t){return function(i,n){t(i,n,e)}};const g=(0,l.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let i=0;e.of=function(e){let n=t.get(e);return void 0===n&&(n=++i,t.set(e,n)),n}}(p||(p={}));class m{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class f{constructor(e,t,i,n,o,r){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=o,this._max=r,this._cache=new s.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,n.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?(0,o.qE)(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let n=this._cache.get(i);n||(n=new o.mu(6),this._cache.set(i,n));const s=(0,o.qE)(n.update(t),this._min,this._max);return(0,h.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${s}ms`),s}_overall(){const e=new o.Uq;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=0|this._overall()||this._default;return(0,o.qE)(e,this._min,this._max)}}let _=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,i){var n,s,o;const r=null!==(n=null===i||void 0===i?void 0:i.min)&&void 0!==n?n:50,a=null!==(s=null===i||void 0===i?void 0:i.max)&&void 0!==s?s:r**2,l=null!==(o=null===i||void 0===i?void 0:i.key)&&void 0!==o?o:void 0,d=`${p.of(e)},${r}${l?","+l:""}`;let h=this._data.get(d);return h||(this._isDev?h=new f(this._logService,t,e,0|this._overallAverage()||1.5*r,r,a):(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),h=new m(1.5*r)),this._data.set(d,h)),h}_overallAverage(){const e=new o.Uq;for(const t of this._data.values())e.update(t.default());return e.value}};_=c([u(0,d.rr),u(1,r.k)],_),(0,a.v)(g,_,1)},56942:(e,t,i)=>{"use strict";i.d(t,{u:()=>n});const n=(0,i(63591).u1)("ILanguageFeaturesService")},37550:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});const n=(0,i(63591).u1)("markerDecorationsService")},23750:(e,t,i)=>{"use strict";i.d(t,{S:()=>n});const n=(0,i(63591).u1)("modelService")},18938:(e,t,i)=>{"use strict";i.d(t,{b:()=>n});const n=(0,i(63591).u1)("textModelService")},45538:(e,t,i)=>{"use strict";i.d(t,{i:()=>m,b:()=>f});var n=i(25982),s=i(47612),o=i(18801),r=i(83069),a=i(36677),l=i(64454);class d{static create(e,t){return new d(e,new h(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new a.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,s,o]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new d(this._startLineNumber,n),new d(this._startLineNumber+o,s)]}applyEdit(e,t){const[i,n,s]=(0,l.W)(t);this.acceptEdit(e,i,n,s,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,s){this._acceptDeleteRange(e),this._acceptInsertText(new r.y(e.startLineNumber,e.startColumn),t,i,n,s),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const e=i-t;return void(this._startLineNumber-=e)}const n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const n=-t;this._startLineNumber-=n,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,s){if(0===t&&0===i)return;const o=e.lineNumber-this._startLineNumber;if(o<0)return void(this._startLineNumber+=t);o>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(o,e.column-1,t,i,n,s)}}class h{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;i<this._tokenCount;i++)t.push(`(${this._getDeltaLine(i)+e},${this._getStartCharacter(i)}-${this._getEndCharacter(i)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),i=this._getDeltaLine(e-1),n=this._getEndCharacter(e-1);return new a.Q(0,t+1,i,n+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,i=this._getTokenCount()-1;for(;t<i;){const n=t+Math.floor((i-t)/2),s=this._getDeltaLine(n);if(s<e)t=n+1;else{if(!(s>e)){let s=n;for(;s>t&&this._getDeltaLine(s-1)===e;)s--;let o=n;for(;o<i&&this._getDeltaLine(o+1)===e;)o++;return new c(this._tokens.subarray(4*s,4*o+4))}i=n-1}}return this._getDeltaLine(t)===e?new c(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,i,n){const s=this._tokens,o=this._tokenCount;let r=0,a=!1,l=0;for(let d=0;d<o;d++){const o=4*d,h=s[o],c=s[o+1],u=s[o+2],g=s[o+3];if((h>e||h===e&&u>=t)&&(h<i||h===i&&c<=n))a=!0;else{if(0===r&&(l=h),a){const e=4*r;s[e]=h-l,s[e+1]=c,s[e+2]=u,s[e+3]=g}r++}}return this._tokenCount=r,l}split(e,t,i,n){const s=this._tokens,o=this._tokenCount,r=[],a=[];let l=r,d=0,c=0;for(let h=0;h<o;h++){const o=4*h,r=s[o],u=s[o+1],g=s[o+2],p=s[o+3];if(r>e||r===e&&g>=t){if(r<i||r===i&&u<=n)continue;l!==a&&(l=a,d=0,c=r)}l[d++]=r-c,l[d++]=u,l[d++]=g,l[d++]=p}return[new h(new Uint32Array(r)),new h(new Uint32Array(a)),c]}acceptDeleteRange(e,t,i,n,s){const o=this._tokens,r=this._tokenCount,a=n-t;let l=0,d=!1;for(let h=0;h<r;h++){const c=4*h;let u=o[c],g=o[c+1],p=o[c+2];const m=o[c+3];if(u<t||u===t&&p<=i){l++;continue}if(u===t&&g<i)u===n&&p>s?p-=s-i:p=i;else if(u===t&&g===i){if(!(u===n&&p>s)){d=!0;continue}p-=s-i}else if(u<n||u===n&&g<s){if(!(u===n&&p>s)){d=!0;continue}u=t,g=i,p=g+(p-s)}else if(u>n){if(0===a&&!d){l=r;break}u-=a}else{if(!(u===n&&g>=s))throw new Error("Not possible!");e&&0===u&&(g+=e,p+=e),u-=a,g-=s-i,p-=s-i}const f=4*l;o[f]=u,o[f+1]=g,o[f+2]=p,o[f+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,i,n,s,o){const r=0===i&&1===n&&(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122),a=this._tokens,l=this._tokenCount;for(let d=0;d<l;d++){const o=4*d;let l=a[o],h=a[o+1],c=a[o+2];if(!(l<e||l===e&&c<t)){if(l===e&&c===t){if(!r)continue;c+=1}else if(l===e&&h<t&&t<c)0===i?c+=n:c=t;else{if(l===e&&h===t&&r)continue;if(l===e)if(l+=i,0===i)h+=n,c+=n;else{const e=c-h;h=s+(h-t),c=h+e}else l+=i}a[o]=l,a[o+1]=h,a[o+2]=c}}}}class c{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var u=i(10154),g=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},p=function(e,t){return function(i,n){t(i,n,e)}};let m=class{constructor(e,t,i,n){this._legend=e,this._themeService=t,this._languageService=i,this._logService=n,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new v}getMetadata(e,t,i){const s=this._languageService.languageIdCodec.encodeLanguageId(i),r=this._hashTable.get(e,t,s);let a;if(r)a=r.metadata,this._logService.getLevel()===o.$b.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${n.x.getForeground(a)}, fontStyle ${n.x.getFontStyle(a).toString(2)}`);else{let r=this._legend.tokenTypes[e];const l=[];if(r){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&l.push(this._legend.tokenModifiers[t]),e>>=1;e>0&&this._logService.getLevel()===o.$b.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));const n=this._themeService.getColorTheme().getTokenStyleMetadata(r,l,i);if("undefined"===typeof n)a=2147483647;else{if(a=0,"undefined"!==typeof n.italic){a|=1|(n.italic?1:0)<<11}if("undefined"!==typeof n.bold){a|=2|(n.bold?2:0)<<11}if("undefined"!==typeof n.underline){a|=4|(n.underline?4:0)<<11}if("undefined"!==typeof n.strikethrough){a|=8|(n.strikethrough?8:0)<<11}if(n.foreground){a|=16|n.foreground<<15}0===a&&(a=2147483647)}}else this._logService.getLevel()===o.$b.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),a=2147483647,r="not-in-legend";this._hashTable.add(e,t,s,a),this._logService.getLevel()===o.$b.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${r}) / ${t} (${l.join(" ")}): foreground ${n.x.getForeground(a)}, fontStyle ${n.x.getFontStyle(a).toString(2)}`)}return a}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,s){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${s}).`))}};function f(e,t,i){const n=e.data,s=e.data.length/5|0,o=Math.max(Math.ceil(s/1024),400),r=[];let a=0,l=1,h=0;for(;a<s;){const e=a;let c=Math.min(e+o,s);if(c<s){let t=c;for(;t-1>e&&0===n[5*t];)t--;if(t-1===e){let e=c;for(;e+1<s&&0===n[5*e];)e++;c=e}else c=t}let u=new Uint32Array(4*(c-e)),g=0,p=0,m=0,f=0;for(;a<c;){const e=5*a,s=n[e],o=n[e+1],r=l+s|0,d=0===s?h+o|0:o,c=d+n[e+2]|0,_=n[e+3],v=n[e+4];if(c<=d)t.warnInvalidLengthSemanticTokens(r,d+1);else if(m===r&&f>d)t.warnOverlappingSemanticTokens(r,d+1);else{const e=t.getMetadata(_,v,i);2147483647!==e&&(0===p&&(p=r),u[g]=r-p,u[g+1]=d,u[g+2]=c,u[g+3]=e,g+=4,m=r,f=c)}l=r,h=d,a++}g!==u.length&&(u=u.subarray(0,g));const _=d.create(p,u);r.push(_)}return r}m=g([p(1,s.Gy),p(2,u.L),p(3,o.rr)],m);class _{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class v{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let i=0;i<t;i++)e[i]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,i){return this._hash2(this._hash2(e,t),i)%this._currentLength}get(e,t,i){const n=this._hashFunc(e,t,i);let s=this._elements[n];for(;s;){if(s.tokenTypeIndex===e&&s.tokenModifierSet===t&&s.languageId===i)return s;s=s.next}return null}add(e,t,i,n){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,i,n))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}v._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]},74243:(e,t,i)=>{"use strict";i.d(t,{F:()=>n});const n=(0,i(63591).u1)("semanticTokensStylingService")},90360:(e,t,i)=>{"use strict";i.d(t,{J:()=>o,U:()=>s});var n=i(63591);const s=(0,n.u1)("textResourceConfigurationService"),o=(0,n.u1)("textResourcePropertiesService")},74855:(e,t,i)=>{"use strict";i.d(t,{P:()=>l});var n=i(36677),s=i(43264),o=i(91508),r=i(66782),a=i(26486);class l{static computeUnicodeHighlights(e,t,i){const l=i?i.startLineNumber:1,h=i?i.endLineNumber:e.getLineCount(),c=new d(t),u=c.getCandidateCodePoints();let g;var p;g="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(p=Array.from(u),`[${o.bm(p.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new s.W5(null,g),f=[];let _,v=!1,b=0,C=0,y=0;e:for(let s=l,d=h;s<=d;s++){const t=e.getLineContent(s),i=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,l=_.index+_[0].length;if(e>0){const i=t.charCodeAt(e-1);o.pc(i)&&e--}if(l+1<i){const e=t.charCodeAt(l-1);o.pc(e)&&l++}const d=t.substring(e,l);let h=(0,a.Th)(e+1,a.Ld,t,0);h&&h.endColumn<=e+1&&(h=null);const u=c.shouldHighlightNonBasicASCII(d,h?h.word:null);if(0!==u){3===u?b++:2===u?C++:1===u?y++:(0,r.xb)(u);const t=1e3;if(f.length>=t){v=!0;break e}f.push(new n.Q(s,e+1,s,l+1))}}}while(_)}return{ranges:f,hasMore:v,ambiguousCharacterCount:b,invisibleCharacterCount:C,nonBasicAsciiCharacterCount:y}}static computeUnicodeHighlightReason(e,t){const i=new d(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const n=e.codePointAt(0),s=i.ambiguousCharacters.getPrimaryConfusable(n),r=o.tl.getLocales().filter((e=>!o.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(n)));return{kind:0,confusableWith:String.fromCodePoint(s),notAmbiguousInLocales:r}}case 1:return{kind:2}}}}class d{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=o.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of o.y_.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let n=!1,s=!1;if(t)for(const r of t){const e=r.codePointAt(0),t=o.aC(r);n=n||t,t||this.ambiguousCharacters.isAmbiguous(e)||o.y_.isInvisibleCharacter(e)||(s=!0)}return!n&&s?0:this.options.invisibleCharacters&&!h(e)&&o.y_.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},35015:(e,t,i)=>{"use strict";var n,s,o,r,a,l,d,h,c,u,g,p,m,f,_,v,b,C,y,w,S,k,x,L,D,E,N,T,I,M,A,R,O,P,F,B,W,V,H,z,j,U,K,G;i.d(t,{A5:()=>I,Ah:()=>M,DD:()=>S,DO:()=>R,Gn:()=>n,H_:()=>z,Ic:()=>A,Io:()=>r,Kb:()=>u,OV:()=>N,QP:()=>a,Qj:()=>d,R3:()=>L,SB:()=>B,U7:()=>j,VW:()=>b,VX:()=>D,WA:()=>V,WU:()=>f,XR:()=>F,ZS:()=>_,_E:()=>o,cj:()=>k,dE:()=>T,d_:()=>x,e0:()=>g,h5:()=>h,hS:()=>E,hW:()=>O,jT:()=>W,kK:()=>K,kf:()=>m,l:()=>v,m9:()=>U,of:()=>c,ok:()=>s,ov:()=>P,p2:()=>p,qw:()=>y,r4:()=>C,sm:()=>w,t7:()=>l,tJ:()=>G,v0:()=>H}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(n||(n={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(s||(s={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(o||(o={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(r||(r={})),function(e){e[e.Deprecated=1]="Deprecated"}(a||(a={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(l||(l={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(d||(d={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(h||(h={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(c||(c={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(u||(u={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(g||(g={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",e[e.quickSuggestions=89]="quickSuggestions",e[e.quickSuggestionsDelay=90]="quickSuggestionsDelay",e[e.readOnly=91]="readOnly",e[e.readOnlyMessage=92]="readOnlyMessage",e[e.renameOnType=93]="renameOnType",e[e.renderControlCharacters=94]="renderControlCharacters",e[e.renderFinalNewline=95]="renderFinalNewline",e[e.renderLineHighlight=96]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=98]="renderValidationDecorations",e[e.renderWhitespace=99]="renderWhitespace",e[e.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",e[e.roundedSelection=101]="roundedSelection",e[e.rulers=102]="rulers",e[e.scrollbar=103]="scrollbar",e[e.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=105]="scrollBeyondLastLine",e[e.scrollPredominantAxis=106]="scrollPredominantAxis",e[e.selectionClipboard=107]="selectionClipboard",e[e.selectionHighlight=108]="selectionHighlight",e[e.selectOnLineNumbers=109]="selectOnLineNumbers",e[e.showFoldingControls=110]="showFoldingControls",e[e.showUnused=111]="showUnused",e[e.snippetSuggestions=112]="snippetSuggestions",e[e.smartSelect=113]="smartSelect",e[e.smoothScrolling=114]="smoothScrolling",e[e.stickyScroll=115]="stickyScroll",e[e.stickyTabStops=116]="stickyTabStops",e[e.stopRenderingLineAfter=117]="stopRenderingLineAfter",e[e.suggest=118]="suggest",e[e.suggestFontSize=119]="suggestFontSize",e[e.suggestLineHeight=120]="suggestLineHeight",e[e.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",e[e.suggestSelection=122]="suggestSelection",e[e.tabCompletion=123]="tabCompletion",e[e.tabIndex=124]="tabIndex",e[e.unicodeHighlighting=125]="unicodeHighlighting",e[e.unusualLineTerminators=126]="unusualLineTerminators",e[e.useShadowDOM=127]="useShadowDOM",e[e.useTabStops=128]="useTabStops",e[e.wordBreak=129]="wordBreak",e[e.wordSegmenterLocales=130]="wordSegmenterLocales",e[e.wordSeparators=131]="wordSeparators",e[e.wordWrap=132]="wordWrap",e[e.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=135]="wordWrapColumn",e[e.wordWrapOverride1=136]="wordWrapOverride1",e[e.wordWrapOverride2=137]="wordWrapOverride2",e[e.wrappingIndent=138]="wrappingIndent",e[e.wrappingStrategy=139]="wrappingStrategy",e[e.showDeprecated=140]="showDeprecated",e[e.inlayHints=141]="inlayHints",e[e.editorClassName=142]="editorClassName",e[e.pixelRatio=143]="pixelRatio",e[e.tabFocusMode=144]="tabFocusMode",e[e.layoutInfo=145]="layoutInfo",e[e.wrappingInfo=146]="wrappingInfo",e[e.defaultColorDecorators=147]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"}(p||(p={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(m||(m={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(f||(f={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(_||(_={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(v||(v={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(b||(b={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(C||(C={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(y||(y={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(w||(w={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(S||(S={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(k||(k={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(x||(x={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(L||(L={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(D||(D={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(E||(E={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(N||(N={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(T||(T={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(I||(I={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(M||(M={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(A||(A={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(R||(R={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(O||(O={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(P||(P={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(F||(F={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(B||(B={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(W||(W={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(V||(V={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(H||(H={})),function(e){e[e.Deprecated=1]="Deprecated"}(z||(z={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(j||(j={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(U||(U={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(K||(K={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(G||(G={}))},51861:(e,t,i)=>{"use strict";i.d(t,{E6:()=>d,Hw:()=>s,YN:()=>n,gf:()=>r,n9:()=>a,oq:()=>o,tu:()=>h,vp:()=>l});var n,s,o,r,a,l,d,h,c=i(31629);!function(e){e.inspectTokensAction=c.kg("inspectTokens","Developer: Inspect Tokens")}(n||(n={})),function(e){e.gotoLineActionLabel=c.kg("gotoLineActionLabel","Go to Line/Column...")}(s||(s={})),function(e){e.helpQuickAccessActionLabel=c.kg("helpQuickAccess","Show all Quick Access Providers")}(o||(o={})),function(e){e.quickCommandActionLabel=c.kg("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=c.kg("quickCommandActionHelp","Show And Run Commands")}(r||(r={})),function(e){e.quickOutlineActionLabel=c.kg("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=c.kg("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(a||(a={})),function(e){e.editorViewAccessibleLabel=c.kg("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=c.kg("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(l||(l={})),function(e){e.toggleHighContrast=c.kg("toggleHighContrast","Toggle High Contrast Theme")}(d||(d={})),function(e){e.bulkEditServiceSummary=c.kg("bulkEditServiceSummary","Made {0} edits in {1} files")}(h||(h={}))},64727:(e,t,i)=>{"use strict";i.d(t,{E$:()=>r,HP:()=>d,Ic:()=>c,U0:()=>o,Wn:()=>n,bg:()=>a,mS:()=>l,uK:()=>s,vn:()=>h});class n{constructor(){this.changeType=1}}class s{static applyInjectedText(e,t){if(!t||0===t.length)return e;let i="",n=0;for(const s of t)i+=e.substring(n,s.column-1),n=s.column-1,i+=s.options.content;return i+=e.substring(n),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new s(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new s(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,i,n,s){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=s}}class o{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class r{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class l{constructor(){this.changeType=5}}class d{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t<i;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const i=[].concat(e.changes).concat(t.changes),n=t.versionId,s=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing;return new d(i,n,s,o)}}class h{constructor(e){this.changes=e}}class c{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=d.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),i=c._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new c(t,i)}static _mergeChangeEvents(e,t){const i=[].concat(e.changes).concat(t.changes),n=t.eol,s=t.versionId,o=e.isUndoing||t.isUndoing,r=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:i,eol:n,isEolChange:e.isEolChange&&t.isEolChange,versionId:s,isUndoing:o,isRedoing:r,isFlush:a}}}},84739:(e,t,i)=>{"use strict";var n;i.d(t,{N6:()=>n,TH:()=>s,pv:()=>o}),function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(n||(n={}));class s{constructor(e,t,i,n,s,o){if(this.visibleColumn=e,this.column=t,this.className=i,this.horizontalLine=n,this.forWrappedLinesAfterColumn=s,this.forWrappedLinesBeforeOrAtColumn=o,-1!==e===(-1!==t))throw new Error}}class o{constructor(e,t){this.top=e,this.endColumn=t}}},87469:(e,t,i)=>{"use strict";i.d(t,{f:()=>s});var n=i(25982);class s{static createEmpty(e,t){const i=s.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new s(n,e,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}equals(e){return e instanceof s&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const n=t<<1,s=n+(i<<1);for(let o=n;o<s;o++)if(this._tokens[o]!==e._tokens[o])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],i=n.x.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return n.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return n.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return n.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[1+(e<<1)];return n.x.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return n.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return s.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new o(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let n=0;n<i;n++)e[n<<1]=e[n+1<<1];e[i<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let i=0,n=(e.length>>>1)-1;for(;i<n;){const s=i+Math.floor((n-i)/2),o=e[s<<1];if(o===t)return s+1;o<t?i=s+1:o>t&&(n=s)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,n="";const o=new Array;let r=0;for(;;){const s=t<this._tokensCount?this._tokens[t<<1]:-1,a=i<e.length?e[i]:null;if(-1!==s&&(null===a||s<=a.offset)){n+=this._text.substring(r,s);const e=this._tokens[1+(t<<1)];o.push(n.length,e),t++,r=s}else{if(!a)break;if(a.offset>r){n+=this._text.substring(r,a.offset);const e=this._tokens[1+(t<<1)];o.push(n.length,e),r=a.offset}n+=a.text,o.push(n.length,a.tokenMetadata),i++}}return new s(new Uint32Array(o),n,this._languageIdCodec)}}s.defaultTokenMetadata=33587200;class o{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let s=this._firstTokenIndex,o=e.getCount();s<o;s++){if(e.getStartOffset(s)>=i)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof o&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}},25521:(e,t,i)=>{"use strict";i.d(t,{Bs:()=>a,d:()=>s});var n=i(91508);class s{constructor(e,t,i,n){this.startColumn=e,this.endColumn=t,this.className=i,this.type=n,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(!s._equals(e[n],t[n]))return!1;return!0}static extractWrapped(e,t,i){if(0===e.length)return e;const n=t+1,o=i+1,r=i-t,a=[];let l=0;for(const d of e)d.endColumn<=n||d.startColumn>=o||(a[l++]=new s(Math.max(1,d.startColumn-n+1),Math.min(r+1,d.endColumn-n+1),d.className,d.type));return a}static filter(e,t,i,n){if(0===e.length)return[];const o=[];let r=0;for(let a=0,l=e.length;a<l;a++){const l=e[a],d=l.range;if(d.endLineNumber<t||d.startLineNumber>t)continue;if(d.isEmpty()&&(0===l.type||3===l.type))continue;const h=d.startLineNumber===t?d.startColumn:i,c=d.endLineNumber===t?d.endColumn:n;o[r++]=new s(h,c,l.inlineClassName,l.type)}return o}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=s._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className<t.className?-1:1:0}}class o{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.className=i,this.metadata=n}}class r{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(e){let t=0;for(let i=0,n=e.length;i<n;i++)t|=e[i];return t}consumeLowerThan(e,t,i){for(;this.count>0&&this.stopOffsets[0]<e;){let e=0;for(;e+1<this.count&&this.stopOffsets[e]===this.stopOffsets[e+1];)e++;i.push(new o(t,this.stopOffsets[e],this.classNames.join(" "),r._metadata(this.metadata))),t=this.stopOffsets[e]+1,this.stopOffsets.splice(0,e+1),this.classNames.splice(0,e+1),this.metadata.splice(0,e+1),this.count-=e+1}return this.count>0&&t<e&&(i.push(new o(t,e-1,this.classNames.join(" "),r._metadata(this.metadata))),t=e),t}insert(e,t,i){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t),this.metadata.push(i);else for(let n=0;n<this.count;n++)if(this.stopOffsets[n]>=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];const i=[],s=new r;let o=0;for(let r=0,a=t.length;r<a;r++){const a=t[r];let l=a.startColumn,d=a.endColumn;const h=a.className,c=1===a.type?2:2===a.type?4:0;if(l>1){const t=e.charCodeAt(l-2);n.pc(t)&&l--}if(d>1){const t=e.charCodeAt(d-2);n.pc(t)&&d--}const u=l-1,g=d-2;o=s.consumeLowerThan(u,o,i),0===s.count&&(o=u),s.insert(g,h,c)}return s.consumeLowerThan(1073741824,o,i),i}}},35600:(e,t,i)=>{"use strict";i.d(t,{wZ:()=>h,MT:()=>l,zL:()=>d,UW:()=>g,Md:()=>m});var n=i(31629),s=i(91508),o=i(99020),r=i(25521);class a{constructor(e,t,i,n){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=n,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class l{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class d{constructor(e,t,i,n,s,o,a,l,d,h,c,u,g,p,m,f,_,v,b){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=s,this.containsRTL=o,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=d.sort(r.d.compare),this.tabSize=h,this.startVisibleColumn=c,this.spaceWidth=u,this.stopRenderingLineAfter=m,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:"trailing"===f?3:0,this.renderControlCharacters=_,this.fontLigatures=v,this.selectionsOnLine=b&&b.sort(((e,t)=>e.startOffset<t.startOffset?-1:1));Math.abs(p-u)<Math.abs(g-u)?(this.renderSpaceWidth=p,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=g,this.renderSpaceCharCode=183)}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}equals(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&r.d.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class h{constructor(e,t){this.partIndex=e,this.charIndex=t}}class c{static getPartIndex(e){return(4294901760&e)>>>16}static getCharIndex(e){return(65535&e)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,n){const s=(t<<16|i)>>>0;this._data[e-1]=s,this._horizontalOffset[e-1]=n}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=c.getPartIndex(t),n=c.getCharIndex(t);return new h(i,n)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;const n=(e<<16|i)>>>0;let s=0,o=this.length-1;for(;s+1<o;){const e=s+o>>>1,t=this._data[e];if(t===n)return e;t>n?o=e:s=e}if(s===o)return s;const r=this._data[s],a=this._data[o];if(r===n)return s;if(a===n)return o;const l=c.getPartIndex(r),d=c.getCharIndex(r);let h;h=l!==c.getPartIndex(a)?t:c.getCharIndex(a);return i-d<=h-i?s:o}}class u{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function g(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("<span>");let i=0,n=0,s=0;for(const r of e.lineDecorations)1!==r.type&&2!==r.type||(t.appendString('<span class="'),t.appendString(r.className),t.appendString('"></span>'),1===r.type&&(s|=1,i++),2===r.type&&(s|=2,n++));t.appendString("</span>");const o=new c(1,i+n);return o.setColumnInfo(1,i,0,0),new u(o,!1,s)}return t.appendString("<span><span></span></span>"),new u(new c(0,0),!1,0)}return function(e,t){const i=e.fontIsMonospace,o=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,a=e.lineContent,l=e.len,d=e.isOverflowing,h=e.overflowingCharCount,g=e.parts,p=e.fauxIndentLength,m=e.tabSize,f=e.startVisibleColumn,b=e.containsRTL,C=e.spaceWidth,y=e.renderSpaceCharCode,w=e.renderWhitespace,S=e.renderControlCharacters,k=new c(l+1,g.length);let x=!1,L=0,D=f,E=0,N=0,T=0;b?t.appendString('<span dir="ltr">'):t.appendString("<span>");for(let n=0,c=g.length;n<c;n++){const e=g[n],d=e.endIndex,h=e.type,c=e.containsRTL,u=0!==w&&e.isWhitespace(),f=u&&!i&&("mtkw"===h||!r),b=L===d&&e.isPseudoAfter();if(E=0,t.appendString("<span "),c&&t.appendString('style="unicode-bidi:isolate" '),t.appendString('class="'),t.appendString(f?"mtkz":h),t.appendASCIICharCode(34),u){let e=0;{let t=L,i=D;for(;t<d;t++){const n=0|(9===a.charCodeAt(t)?m-i%m:1);e+=n,t>=p&&(i+=n)}}for(f&&(t.appendString(' style="width:'),t.appendString(String(C*e)),t.appendString('px"')),t.appendASCIICharCode(62);L<d;L++){k.setColumnInfo(L+1,n-T,E,N),T=0;let e,i;if(9===a.charCodeAt(L)){e=m-D%m|0,i=e,!o||i>1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=i;e++)t.appendCharCode(160)}else e=2,i=1,t.appendCharCode(y),t.appendCharCode(8204);E+=e,N+=i,L>=p&&(D+=i)}}else for(t.appendASCIICharCode(62);L<d;L++){k.setColumnInfo(L+1,n-T,E,N),T=0;const e=a.charCodeAt(L);let i=1,o=1;switch(e){case 9:i=m-D%m,o=i;for(let e=1;e<=i;e++)t.appendCharCode(160);break;case 32:t.appendCharCode(160);break;case 60:t.appendString("<");break;case 62:t.appendString(">");break;case 38:t.appendString("&");break;case 0:S?t.appendCharCode(9216):t.appendString("�");break;case 65279:case 8232:case 8233:case 133:t.appendCharCode(65533);break;default:s.ne(e)&&o++,S&&e<32?t.appendCharCode(9216+e):S&&127===e?t.appendCharCode(9249):S&&_(e)?(t.appendString("[U+"),t.appendString(v(e)),t.appendString("]"),i=8,o=i):t.appendCharCode(e)}E+=i,N+=o,L>=p&&(D+=o)}b?T++:T=0,L>=l&&!x&&e.isPseudoAfter()&&(x=!0,k.setColumnInfo(L+1,n,E,N)),t.appendString("</span>")}x||k.setColumnInfo(l+1,g.length-1,E,N);d&&(t.appendString('<span class="mtkoverflow">'),t.appendString(n.kg("showMore","Show more ({0})",function(e){if(e<1024)return n.kg("overflow.chars","{0} chars",e);if(e<1048576)return`${(e/1024).toFixed(1)} KB`;return`${(e/1024/1024).toFixed(1)} MB`}(h))),t.appendString("</span>"));return t.appendString("</span>"),new u(k,b,r)}(function(e){const t=e.lineContent;let i,n,o;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<t.length?(i=!0,n=t.length-e.stopRenderingLineAfter,o=e.stopRenderingLineAfter):(i=!1,n=0,o=t.length);let l=function(e,t,i,n,o){const r=[];let l=0;n>0&&(r[l++]=new a(n,"",0,!1));let d=n;for(let h=0,c=i.getCount();h<c;h++){const c=i.getEndOffset(h);if(c<=n)continue;const u=i.getClassName(h);if(c>=o){const i=!!t&&s.E_(e.substring(d,o));r[l++]=new a(o,u,0,i);break}const g=!!t&&s.E_(e.substring(d,c));r[l++]=new a(c,u,0,g),d=c}return r}(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,o);e.renderControlCharacters&&!e.isBasicASCII&&(l=function(e,t){const i=[];let n=new a(0,"",0,!1),s=0;for(const o of t){const t=o.endIndex;for(;s<t;s++){_(e.charCodeAt(s))&&(s>n.endIndex&&(n=new a(s,o.type,o.metadata,o.containsRTL),i.push(n)),n=new a(s+1,"mtkcontrol",o.metadata,!1),i.push(n))}s>n.endIndex&&(n=new a(t,o.type,o.metadata,o.containsRTL),i.push(n))}return i}(t,l));(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(l=function(e,t,i,n){const o=e.continuesWithWrappedLine,r=e.fauxIndentLength,l=e.tabSize,d=e.startVisibleColumn,h=e.useMonospaceOptimizations,c=e.selectionsOnLine,u=1===e.renderWhitespace,g=3===e.renderWhitespace,p=e.renderSpaceWidth!==e.spaceWidth,m=[];let f=0,_=0,v=n[_].type,b=n[_].containsRTL,C=n[_].endIndex;const y=n.length;let w,S=!1,k=s.HG(t);-1===k?(S=!0,k=i,w=i):w=s.lT(t);let x=!1,L=0,D=c&&c[L],E=d%l;for(let T=r;T<i;T++){const e=t.charCodeAt(T);let o;if(D&&T>=D.endOffset&&(L++,D=c&&c[L]),T<k||T>w)o=!0;else if(9===e)o=!0;else if(32===e)if(u)if(x)o=!0;else{const e=T+1<i?t.charCodeAt(T+1):0;o=32===e||9===e}else o=!0;else o=!1;if(o&&c&&(o=!!D&&D.startOffset<=T&&D.endOffset>T),o&&g&&(o=S||T>w),o&&b&&T>=k&&T<=w&&(o=!1),x){if(!o||!h&&E>=l){if(p){for(let e=(f>0?m[f-1].endIndex:r)+1;e<=T;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(T,"mtkw",1,!1);E%=l}}else(T===C||o&&T>r)&&(m[f++]=new a(T,v,0,b),E%=l);for(9===e?E=l:s.ne(e)?E+=2:E++,x=o;T===C&&(_++,_<y);)v=n[_].type,b=n[_].containsRTL,C=n[_].endIndex}let N=!1;if(x)if(o&&u){const e=i>0?t.charCodeAt(i-1):0,n=i>1?t.charCodeAt(i-2):0;32===e&&32!==n&&9!==n||(N=!0)}else N=!0;if(N)if(p){for(let e=(f>0?m[f-1].endIndex:r)+1;e<=i;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(i,"mtkw",1,!1);else m[f++]=new a(i,v,0,b);return m}(e,t,o,l));let d=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;t<i;t++){const i=e.lineDecorations[t];3===i.type||1===i.type?d|=1:2===i.type&&(d|=2)}l=function(e,t,i,n){n.sort(r.d.compare);const s=r.Bs.normalize(e,n),o=s.length;let l=0;const d=[];let h=0,c=0;for(let r=0,g=i.length;r<g;r++){const e=i[r],t=e.endIndex,n=e.type,u=e.metadata,g=e.containsRTL;for(;l<o&&s[l].startOffset<t;){const e=s[l];if(e.startOffset>c&&(c=e.startOffset,d[h++]=new a(c,n,u,g)),!(e.endOffset+1<=t)){c=t,d[h++]=new a(c,n+" "+e.className,u|e.metadata,g);break}c=e.endOffset+1,d[h++]=new a(c,n+" "+e.className,u|e.metadata,g),l++}t>c&&(c=t,d[h++]=new a(c,n,u,g))}const u=i[i.length-1].endIndex;if(l<o&&s[l].startOffset===u)for(;l<o&&s[l].startOffset===u;){const e=s[l];d[h++]=new a(c,e.className,e.metadata,!1),l++}return d}(t,0,l,e.lineDecorations)}e.containsRTL||(l=function(e,t,i){let n=0;const s=[];let o=0;if(i)for(let r=0,l=t.length;r<l;r++){const i=t[r],l=i.endIndex;if(n+50<l){const t=i.type,r=i.metadata,d=i.containsRTL;let h=-1,c=n;for(let i=n;i<l;i++)32===e.charCodeAt(i)&&(h=i),-1!==h&&i-c>=50&&(s[o++]=new a(h+1,t,r,d),c=h+1,h=-1);c!==l&&(s[o++]=new a(l,t,r,d))}else s[o++]=i;n=l}else for(let r=0,l=t.length;r<l;r++){const e=t[r],i=e.endIndex,l=i-n;if(l>50){const t=e.type,r=e.metadata,d=e.containsRTL,h=Math.ceil(l/50);for(let e=1;e<h;e++){const i=n+50*e;s[o++]=new a(i,t,r,d)}s[o++]=new a(i,t,r,d)}else s[o++]=e;n=i}return s}(t,l,!e.isBasicASCII||e.fontLigatures));return new f(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,o,i,n,l,d,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}(e),t)}class p{constructor(e,t,i,n){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=n}}function m(e){const t=new o.fe(1e4),i=g(e,t);return new p(i.characterMapping,t.build(),i.containsRTL,i.containsForeignElements)}class f{constructor(e,t,i,n,s,o,r,a,l,d,h,c,u,g,p,m){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=n,this.isOverflowing=s,this.overflowingCharCount=o,this.parts=r,this.containsForeignElements=a,this.fauxIndentLength=l,this.tabSize=d,this.startVisibleColumn=h,this.containsRTL=c,this.spaceWidth=u,this.renderSpaceCharCode=g,this.renderWhitespace=p,this.renderControlCharacters=m}}function _(e){return e<32?9!==e:127===e||(e>=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e)}function v(e){return e.toString(16).toUpperCase().padStart(4,"0")}},92896:(e,t,i)=>{"use strict";i.d(t,{GP:()=>l,LM:()=>r,Uv:()=>g,kI:()=>h,nt:()=>a,or:()=>c,qL:()=>d,vo:()=>u});var n=i(25890),s=i(91508),o=i(36677);class r{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|n}}class a{constructor(e,t){this.tabSize=e,this.data=t}}class l{constructor(e,t,i,n,s,o,r){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=s,this.tokens=o,this.inlineDecorations=r}}class d{constructor(e,t,i,n,s,o,r,a,l,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=d.isBasicASCII(i,o),this.containsRTL=d.containsRTL(i,this.isBasicASCII,s),this.tokens=r,this.inlineDecorations=a,this.tabSize=l,this.startVisibleColumn=h}static isBasicASCII(e,t){return!t||s.aC(e)}static containsRTL(e,t,i){return!(t||!i)&&s.E_(e)}}class h{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class c{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=n}toInlineDecoration(e){return new h(new o.Q(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class u{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class g{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static compareByRenderingProps(e,t){return e.zIndex===t.zIndex?e.color<t.color?-1:e.color>t.color?1:0:e.zIndex-t.zIndex}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&n.aI(e.data,t.data)}static equalsArr(e,t){return n.aI(e,t,g.equals)}}},19531:(e,t,i)=>{"use strict";i.d(t,{iE:()=>s,rW:()=>o});class n{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class s{constructor(e,t,i,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class o{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(s.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),i=Math.floor(this.getCanvasHeight()),s=i/Math.floor(this._outerHeight),o=Math.floor(4*this._pixelRatio/2),r=[];for(let a=0,l=this._zones.length;a<l;a++){const l=this._zones[a];if(!e){const e=l.getColorZones();if(e){r.push(e);continue}}const d=this._getVerticalOffsetForLine(l.startLineNumber),h=0===l.heightInLines?this._getVerticalOffsetForLine(l.endLineNumber)+t:d+l.heightInLines*t,c=Math.floor(s*d),u=Math.floor(s*h);let g=Math.floor((c+u)/2),p=u-g;p<o&&(p=o),g-p<0&&(g=p),g+p>i&&(g=i-p);const m=l.color;let f=this._color2Id[m];f||(f=++this._lastAssignedId,this._color2Id[m]=f,this._id2Color[f]=m);const _=new n(g-p,g+p,f);l.setColorZone(_),r.push(_)}return this._colorZonesInvalid=!1,r.sort(n.compare),r}}},32398:(e,t,i)=>{"use strict";i.d(t,{GN:()=>l,UB:()=>a,a6:()=>d,wc:()=>h});var n=i(83069),s=i(36677),o=i(92896),r=i(87908);class a{constructor(e,t,i,n,s){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=s,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const r=e.range,a=e.options;let l;if(a.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new n.y(r.startLineNumber,1),0,!1,!0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new n.y(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber)),1);l=new s.Q(e.lineNumber,e.column,t.lineNumber,t.column)}else l=this._coordinatesConverter.convertModelRangeToViewRange(r,1);i=new o.vo(l,a),this._decorationsCache[t]=i}return i}getMinimapDecorationsInRange(e){return this._getDecorationsInRange(e,!0,!1).decorations}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e,!1,!1),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e,t=!1,i=!1){const n=new s.Q(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(n,t,i).inlineDecorations[0]}_getDecorationsInRange(e,t,i){const n=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,r.$C)(this.configuration.options),t,i),a=e.startLineNumber,d=e.endLineNumber,h=[];let c=0;const u=[];for(let s=a;s<=d;s++)u[s-a]=[];for(let r=0,g=n.length;r<g;r++){const e=n[r],t=e.options;if(!l(this.model,e))continue;const i=this._getOrCreateViewModelDecoration(e),g=i.range;if(h[c++]=i,t.inlineClassName){const e=new o.kI(g,t.inlineClassName,t.inlineClassNameAffectsLetterSpacing?3:0),i=Math.max(a,g.startLineNumber),n=Math.min(d,g.endLineNumber);for(let t=i;t<=n;t++)u[t-a].push(e)}if(t.beforeContentClassName&&a<=g.startLineNumber&&g.startLineNumber<=d){const e=new o.kI(new s.Q(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn),t.beforeContentClassName,1);u[g.startLineNumber-a].push(e)}if(t.afterContentClassName&&a<=g.endLineNumber&&g.endLineNumber<=d){const e=new o.kI(new s.Q(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn),t.afterContentClassName,2);u[g.endLineNumber-a].push(e)}}return{decorations:h,inlineDecorations:u}}}function l(e,t){return(!t.options.hideInCommentTokens||!d(e,t))&&(!t.options.hideInStringTokens||!h(e,t))}function d(e,t){return c(e,t.range,(e=>1===e))}function h(e,t){return c(e,t.range,(e=>2===e))}function c(e,t,i){for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const s=e.tokenization.getLineTokens(n),o=n===t.startLineNumber,r=n===t.endLineNumber;let a=o?s.findTokenIndexAtOffset(t.startColumn-1):0;for(;a<s.getCount();){if(r){if(s.getStartOffset(a)>t.endColumn-1)break}if(!i(s.getStandardTokenType(a)))return!1;a++}}return!0}},44915:(e,t,i)=>{"use strict";var n,s=i(11007),o=i(16980),r=i(24939),a=i(31450),l=i(75326),d=i(60002),h=i(31629),c=i(32848),u=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},g=function(e,t){return function(i,n){t(i,n,e)}};const p=new c.N1("selectionAnchorSet",!1);let m=n=class{static get(e){return e.getContribution(n.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=p.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations((t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(l.L.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:(new o.Bc).appendText((0,h.kg)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})})),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,s.xE)((0,h.kg)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(l.L.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations((t=>{t.removeDecoration(e),this.decorationId=void 0})),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};m.ID="editor.contrib.selectionAnchorController",m=n=u([g(1,c.fN)],m);class f extends a.ks{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,h.kg)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:d.R.editorTextFocus,primary:(0,r.m5)(2089,2080),weight:100}})}async run(e,t){var i;null===(i=m.get(t))||void 0===i||i.setSelectionAnchor()}}class _ extends a.ks{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,h.kg)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:p})}async run(e,t){var i;null===(i=m.get(t))||void 0===i||i.goToSelectionAnchor()}}class v extends a.ks{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,h.kg)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:p,kbOpts:{kbExpr:d.R.editorTextFocus,primary:(0,r.m5)(2089,2089),weight:100}})}async run(e,t){var i;null===(i=m.get(t))||void 0===i||i.selectFromAnchorToCursor()}}class b extends a.ks{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,h.kg)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:p,kbOpts:{kbExpr:d.R.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;null===(i=m.get(t))||void 0===i||i.cancelSelectionAnchor()}}(0,a.HW)(m.ID,m,4),(0,a.Fl)(f),(0,a.Fl)(_),(0,a.Fl)(v),(0,a.Fl)(b)},88952:(e,t,i)=>{"use strict";var n=i(90766),s=i(5662),o=i(31450),r=i(83069),a=i(36677),l=i(75326),d=i(60002),h=i(16223),c=i(38361),u=i(31629),g=i(27195),p=i(85845),m=i(47612);const f=(0,p.x1A)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},u.kg("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class _ extends o.ks{constructor(){super({id:"editor.action.jumpToBracket",label:u.kg("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:d.R.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;null===(i=y.get(t))||void 0===i||i.jumpToBracket()}}class v extends o.ks{constructor(){super({id:"editor.action.selectToBracket",label:u.kg("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:u.aS("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&!1===i.selectBrackets&&(s=!1),null===(n=y.get(t))||void 0===n||n.selectToBracket(s)}}class b extends o.ks{constructor(){super({id:"editor.action.removeBrackets",label:u.kg("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:d.R.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;null===(i=y.get(t))||void 0===i||i.removeBrackets(this.id)}}class C{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class y extends s.jG{static get(e){return e.getContribution(y.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new n.uC((()=>this._updateBrackets()),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition((e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelContent((e=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModel((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelLanguageConfiguration((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))),this._register(e.onDidBlurEditorWidget((()=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidFocusEditorWidget((()=>{this._updateBracketsSoon.schedule()})))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map((t=>{const i=t.getStartPosition(),n=e.bracketPairs.matchBracket(i);let s=null;if(n)n[0].containsPosition(i)&&!n[1].containsPosition(i)?s=n[1].getStartPosition():n[1].containsPosition(i)&&(s=n[0].getStartPosition());else{const t=e.bracketPairs.findEnclosingBrackets(i);if(t)s=t[1].getStartPosition();else{const t=e.bracketPairs.findNextBracket(i);t&&t.range&&(s=t.range.getStartPosition())}}return s?new l.L(s.lineNumber,s.column,s.lineNumber,s.column):new l.L(i.lineNumber,i.column,i.lineNumber,i.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach((n=>{const s=n.getStartPosition();let o=t.bracketPairs.matchBracket(s);if(!o&&(o=t.bracketPairs.findEnclosingBrackets(s),!o)){const e=t.bracketPairs.findNextBracket(s);e&&e.range&&(o=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let r=null,d=null;if(o){o.sort(a.Q.compareRangesUsingStarts);const[t,i]=o;if(r=e?t.getStartPosition():t.getEndPosition(),d=e?i.getEndPosition():i.getStartPosition(),i.containsPosition(s)){const e=r;r=d,d=e}}r&&d&&i.push(new l.L(r.lineNumber,r.column,d.lineNumber,d.column))})),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach((i=>{const n=i.getPosition();let s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())}))}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let o=0;for(let r=0,c=e.length;r<c;r++){const t=e[r];t.isEmpty()&&(s[o++]=t.getStartPosition())}s.length>1&&s.sort(r.y.compare);const a=[];let l=0,d=0;const h=n.length;for(let r=0,c=s.length;r<c;r++){const e=s[r];for(;d<h&&n[d].position.isBefore(e);)d++;if(d<h&&n[d].position.equals(e))a[l++]=n[d];else{let i=t.bracketPairs.matchBracket(e,20),n=y._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;i||"always"!==this._matchBrackets||(i=t.bracketPairs.findEnclosingBrackets(e,20),n=y._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new C(e,i,n)}}this._lastBracketsData=a,this._lastVersionId=i}}y.ID="editor.contrib.bracketMatchingController",y._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=c.kI.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:(0,m.Yf)(f),position:h.A5.Center}}),y._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=c.kI.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"}),(0,o.HW)(y.ID,y,1),(0,o.Fl)(v),(0,o.Fl)(_),(0,o.Fl)(b),g.ZG.appendMenuItem(g.D8.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:u.kg({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},58590:(e,t,i)=>{"use strict";var n=i(31450),s=i(60002),o=i(36677),r=i(75326);class a{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if((!this._isMovingLeft||1!==n)&&(this._isMovingLeft||s!==e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new o.Q(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new o.Q(i,s,i,s),a)}else{const r=new o.Q(i,s,i,s+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new o.Q(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new r.L(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new r.L(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}var l=i(31629);class d extends n.ks{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new a(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,n.Fl)(class extends d{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:l.kg("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:s.R.writable})}}),(0,n.Fl)(class extends d{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:l.kg("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:s.R.writable})}})},6438:(e,t,i)=>{"use strict";var n=i(31450),s=i(15092),o=i(94564),r=i(36677),a=i(60002),l=i(31629);class d extends n.ks{constructor(){super({id:"editor.action.transposeLetters",label:l.kg("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:a.R.writable,kbOpts:{kbExpr:a.R.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],a=t.getSelections();for(const l of a){if(!l.isEmpty())continue;const e=l.startLineNumber,t=l.startColumn,a=i.getLineMaxColumn(e);if(1===e&&(1===t||2===t&&2===a))continue;const d=t===a?l.getPosition():o.I.rightPosition(i,l.getPosition().lineNumber,l.getPosition().column),h=o.I.leftPosition(i,d),c=o.I.leftPosition(i,h),u=i.getValueInRange(r.Q.fromPositions(c,h)),g=i.getValueInRange(r.Q.fromPositions(h,d)),p=r.Q.fromPositions(c,d);n.push(new s.iu(p,g+u))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}(0,n.Fl)(d)},94908:(e,t,i)=>{"use strict";var n=i(60413),s=i(8597),o=i(98067),r=i(68792),a=i(31450),l=i(80301),d=i(60002),h=i(55433),c=i(31629),u=i(27195),g=i(54770),p=i(32848);const m="9_cutcopypaste",f=o.ib||document.queryCommandSupported("cut"),_=o.ib||document.queryCommandSupported("copy"),v="undefined"!==typeof navigator.clipboard&&!n.gm||document.queryCommandSupported("paste");function b(e){return e.register(),e}const C=f?b(new a.fE({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:o.ib?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:c.kg({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:u.D8.EditorContext,group:m,title:c.kg("actions.clipboard.cutLabel","Cut"),when:d.R.writable,order:1},{menuId:u.D8.CommandPalette,group:"",title:c.kg("actions.clipboard.cutLabel","Cut"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:c.kg("actions.clipboard.cutLabel","Cut"),when:d.R.writable,order:1}]})):void 0,y=_?b(new a.fE({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:o.ib?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:c.kg({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:u.D8.EditorContext,group:m,title:c.kg("actions.clipboard.copyLabel","Copy"),order:2},{menuId:u.D8.CommandPalette,group:"",title:c.kg("actions.clipboard.copyLabel","Copy"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:c.kg("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;u.ZG.appendMenuItem(u.D8.MenubarEditMenu,{submenu:u.D8.MenubarCopy,title:c.aS("copy as","Copy As"),group:"2_ccp",order:3}),u.ZG.appendMenuItem(u.D8.EditorContext,{submenu:u.D8.EditorContextCopy,title:c.aS("copy as","Copy As"),group:m,order:3}),u.ZG.appendMenuItem(u.D8.EditorContext,{submenu:u.D8.EditorContextShare,title:c.aS("share","Share"),group:"11_share",order:-1,when:p.M$.and(p.M$.notEquals("resourceScheme","output"),d.R.editorTextFocus)}),u.ZG.appendMenuItem(u.D8.EditorTitleContext,{submenu:u.D8.EditorTitleContextShare,title:c.aS("share","Share"),group:"11_share",order:-1}),u.ZG.appendMenuItem(u.D8.ExplorerContext,{submenu:u.D8.ExplorerContextShare,title:c.aS("share","Share"),group:"11_share",order:-1});const w=v?b(new a.fE({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:o.ib?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:c.kg({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:u.D8.EditorContext,group:m,title:c.kg("actions.clipboard.pasteLabel","Paste"),when:d.R.writable,order:4},{menuId:u.D8.CommandPalette,group:"",title:c.kg("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:c.kg("actions.clipboard.pasteLabel","Paste"),when:d.R.writable,order:4}]})):void 0;class S extends a.ks{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:c.kg("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:d.R.textInputFocus,primary:0,weight:100}})}run(e,t){if(!t.hasModel())return;!t.getOption(37)&&t.getSelection().isEmpty()||(r.Eq.forceCopyWithSyntaxHighlighting=!0,t.focus(),t.getContainerDomNode().ownerDocument.execCommand("copy"),r.Eq.forceCopyWithSyntaxHighlighting=!1)}}function k(e,t){e&&(e.addImplementation(1e4,"code-editor",((e,i)=>{const n=e.get(l.T).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const e=n.getOption(37),i=n.getSelection();return i&&i.isEmpty()&&!e||n.getContainerDomNode().ownerDocument.execCommand(t),!0}return!1})),e.addImplementation(0,"generic-dom",((e,i)=>((0,s.a)().execCommand(t),!0))))}k(C,"cut"),k(y,"copy"),w&&(w.addImplementation(1e4,"code-editor",((e,t)=>{var i,n;const s=e.get(l.T),a=e.get(g.h),d=s.getFocusedCodeEditor();if(d&&d.hasTextFocus()){return d.getContainerDomNode().ownerDocument.execCommand("paste")?null!==(n=null===(i=h.Rj.get(d))||void 0===i?void 0:i.finishedPaste())&&void 0!==n?n:Promise.resolve():!o.HZ||(async()=>{const e=await a.readText();if(""!==e){const t=r.bs.INSTANCE.get(e);let i=!1,n=null,s=null;t&&(i=d.getOption(37)&&!!t.isFromEmptySelection,n="undefined"!==typeof t.multicursorText?t.multicursorText:null,s=t.mode),d.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:n,mode:s})}})()}return!1})),w.addImplementation(0,"generic-dom",((e,t)=>((0,s.a)().execCommand("paste"),!0)))),_&&(0,a.Fl)(S)},55130:(e,t,i)=>{"use strict";i.d(t,{C9:()=>x,Qp:()=>M,Rw:()=>D,Uy:()=>L,W4:()=>A,Xj:()=>k,dU:()=>T,k_:()=>y,pQ:()=>w,pR:()=>S});var n=i(25890),s=i(18447),o=i(64383),r=i(5662),a=i(79400),l=i(80537),d=i(36677),h=i(75326),c=i(56942),u=i(23750),g=i(50868),p=i(31629),m=i(50091),f=i(58591),_=i(73823),v=i(90651),b=i(61407),C=i(8995);const y="editor.action.codeAction",w="editor.action.quickFix",S="editor.action.autoFix",k="editor.action.refactor",x="editor.action.sourceAction",L="editor.action.organizeImports",D="editor.action.fixAll";class E extends r.jG{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return e.isAI&&!t.isAI?1:!e.isAI&&t.isAI?-1:(0,n.EI)(e.diagnostics)?(0,n.EI)(t.diagnostics)?E.codeActionsPreferredComparator(e,t):-1:(0,n.EI)(t.diagnostics)?1:E.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(E.codeActionsComparator),this.validActions=this.allActions.filter((({action:e})=>!e.disabled))}get hasAutoFix(){return this.validActions.some((({action:e})=>!!e.kind&&b.gB.QuickFix.contains(new C.k(e.kind))&&!!e.isPreferred))}get hasAIFix(){return this.validActions.some((({action:e})=>!!e.isAI))}get allAIFixes(){return this.validActions.every((({action:e})=>!!e.isAI))}}const N={actions:[],documentation:void 0};async function T(e,t,i,s,a,l){var d;const h=s.filter||{},c={...h,excludes:[...h.excludes||[],b.gB.Notebook]},u={only:null===(d=h.include)||void 0===d?void 0:d.value,trigger:s.type},p=new g.ER(t,l),m=2===s.type,f=function(e,t,i){return e.all(t).filter((e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some((e=>(0,b.uJ)(i,new C.k(e))))))}(e,t,m?c:h),_=new r.Cm,v=f.map((async e=>{try{a.report(e);const n=await e.provideCodeActions(t,i,u,p.token);if(n&&_.add(n),p.token.isCancellationRequested)return N;const s=((null===n||void 0===n?void 0:n.actions)||[]).filter((e=>e&&(0,b.aF)(h,e))),o=function(e,t,i){if(!e.documentation)return;const n=e.documentation.map((e=>({kind:new C.k(e.kind),command:e.command})));if(i){let e;for(const t of n)t.kind.contains(i)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return null===e||void 0===e?void 0:e.command}for(const s of t)if(s.kind)for(const e of n)if(e.kind.contains(new C.k(s.kind)))return e.command;return}(e,s,h.include);return{actions:s.map((t=>new b.Vi(t,e))),documentation:o}}catch(n){if((0,o.MB)(n))throw n;return(0,o.M_)(n),N}})),y=e.onDidChange((()=>{const i=e.all(t);(0,n.aI)(i,f)||p.cancel()}));try{const i=await Promise.all(v),o=i.map((e=>e.actions)).flat(),r=[...(0,n.Yc)(i.map((e=>e.documentation))),...I(e,t,s,o)];return new E(o,r,_)}finally{y.dispose(),p.dispose()}}function*I(e,t,i,n){var s,o,r;if(t&&n.length)for(const a of e.all(t))a._getAdditionalMenuItems&&(yield*null===(s=a._getAdditionalMenuItems)||void 0===s?void 0:s.call(a,{trigger:i.type,only:null===(r=null===(o=i.filter)||void 0===o?void 0:o.include)||void 0===r?void 0:r.value},n.map((e=>e.action))))}var M;async function A(e,t,i,n,o=s.X.None){var r;const a=e.get(l.nu),d=e.get(m.d),h=e.get(v.k),c=e.get(f.Ot);if(h.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:i}),await t.resolve(o),!o.isCancellationRequested){if(null===(r=t.action.edit)||void 0===r?void 0:r.edits.length){if(!(await a.apply(t.action.edit,{editor:null===n||void 0===n?void 0:n.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:i!==M.OnSave,showPreview:null===n||void 0===n?void 0:n.preview})).isApplied)return}if(t.action.command)try{await d.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(u){const e=function(e){return"string"===typeof e?e:e instanceof Error&&"string"===typeof e.message?e.message:void 0}(u);c.error("string"===typeof e?e:p.kg("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}}!function(e){e.OnSave="onSave",e.FromProblemsView="fromProblemsView",e.FromCodeActions="fromCodeActions",e.FromAILightbulb="fromAILightbulb"}(M||(M={})),m.w.registerCommand("_executeCodeActionProvider",(async function(e,t,i,n,r){if(!(t instanceof a.r))throw(0,o.Qg)();const{codeActionProvider:l}=e.get(c.u),g=e.get(u.S).getModel(t);if(!g)throw(0,o.Qg)();const p=h.L.isISelection(i)?h.L.liftSelection(i):d.Q.isIRange(i)?g.validateRange(i):void 0;if(!p)throw(0,o.Qg)();const m="string"===typeof n?new C.k(n):void 0,f=await T(l,g,p,{type:1,triggerAction:b.fo.Default,filter:{includeSourceActions:!0,include:m}},_.ke.None,s.X.None),v=[],y=Math.min(f.validActions.length,"number"===typeof r?r:0);for(let o=0;o<y;o++)v.push(f.validActions[o].resolve(s.X.None));try{return await Promise.all(v),f.validActions.map((e=>e.action))}finally{setTimeout((()=>f.dispose()),100)}}))},4836:(e,t,i)=>{"use strict";var n=i(31450),s=i(94371),o=i(8995),r=i(91508),a=i(60002),l=i(55130),d=i(31629),h=i(32848),c=i(61407),u=i(71933),g=i(59473);function p(e){return h.M$.regex(g.D_.keys()[0],new RegExp("(\\s|^)"+(0,r.bm)(e.value)+"\\b"))}const m={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:d.kg("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:d.kg("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[d.kg("args.schema.apply.first","Always apply the first returned code action."),d.kg("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),d.kg("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:d.kg("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function f(e,t,i,n,s=c.fo.Default){if(e.hasModel()){const o=u.C.get(e);null===o||void 0===o||o.manualTriggerAtCurrentPosition(t,s,i,n)}}class _ extends n.ks{constructor(){super({id:l.pQ,label:d.kg("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),kbOpts:{kbExpr:a.R.textInputFocus,primary:2137,weight:100}})}run(e,t){return f(t,d.kg("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,c.fo.QuickFix)}}class v extends n.DX{constructor(){super({id:l.k_,precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:m}]}})}runEditorCommand(e,t,i){const n=c.QA.fromUser(i,{kind:o.k.Empty,apply:"ifSingle"});return f(t,"string"===typeof(null===i||void 0===i?void 0:i.kind)?n.preferred?d.kg("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):d.kg("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?d.kg("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):d.kg("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class b extends n.ks{constructor(){super({id:l.Xj,label:d.kg("refactor.label","Refactor..."),alias:"Refactor...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),kbOpts:{kbExpr:a.R.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:h.M$.and(a.R.writable,p(c.gB.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:m}]}})}run(e,t,i){const n=c.QA.fromUser(i,{kind:c.gB.Refactor,apply:"never"});return f(t,"string"===typeof(null===i||void 0===i?void 0:i.kind)?n.preferred?d.kg("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):d.kg("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):n.preferred?d.kg("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):d.kg("editor.action.refactor.noneMessage","No refactorings available"),{include:c.gB.Refactor.contains(n.kind)?n.kind:o.k.None,onlyIncludePreferredActions:n.preferred},n.apply,c.fo.Refactor)}}class C extends n.ks{constructor(){super({id:l.C9,label:d.kg("source.label","Source Action..."),alias:"Source Action...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:h.M$.and(a.R.writable,p(c.gB.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:m}]}})}run(e,t,i){const n=c.QA.fromUser(i,{kind:c.gB.Source,apply:"never"});return f(t,"string"===typeof(null===i||void 0===i?void 0:i.kind)?n.preferred?d.kg("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):d.kg("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?d.kg("editor.action.source.noneMessage.preferred","No preferred source actions available"):d.kg("editor.action.source.noneMessage","No source actions available"),{include:c.gB.Source.contains(n.kind)?n.kind:o.k.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,c.fo.SourceAction)}}class y extends n.ks{constructor(){super({id:l.Uy,label:d.kg("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:h.M$.and(a.R.writable,p(c.gB.SourceOrganizeImports)),kbOpts:{kbExpr:a.R.textInputFocus,primary:1581,weight:100}})}run(e,t){return f(t,d.kg("editor.action.organize.noneMessage","No organize imports action available"),{include:c.gB.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",c.fo.OrganizeImports)}}class w extends n.ks{constructor(){super({id:l.Rw,label:d.kg("fixAll.label","Fix All"),alias:"Fix All",precondition:h.M$.and(a.R.writable,p(c.gB.SourceFixAll))})}run(e,t){return f(t,d.kg("fixAll.noneMessage","No fix all action available"),{include:c.gB.SourceFixAll,includeSourceActions:!0},"ifSingle",c.fo.FixAll)}}class S extends n.ks{constructor(){super({id:l.pR,label:d.kg("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:h.M$.and(a.R.writable,p(c.gB.QuickFix)),kbOpts:{kbExpr:a.R.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return f(t,d.kg("editor.action.autoFix.noneMessage","No auto fixes available"),{include:c.gB.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",c.fo.AutoFix)}}var k=i(96758),x=i(1646),L=i(46359);(0,n.HW)(u.C.ID,u.C,3),(0,n.HW)(k.E.ID,k.E,4),(0,n.Fl)(_),(0,n.Fl)(b),(0,n.Fl)(C),(0,n.Fl)(y),(0,n.Fl)(S),(0,n.Fl)(w),(0,n.E_)(new v),L.O.as(x.Fd.Configuration).registerConfiguration({...s.JJ,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:d.kg("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}),L.O.as(x.Fd.Configuration).registerConfiguration({...s.JJ,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:d.kg("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}})},71933:(e,t,i)=>{"use strict";i.d(t,{C:()=>ce});var n,s=i(8597),o=i(11007),r=i(64383),a=i(91090),l=i(5662),d=i(83069),h=i(38361),c=i(56942),u=i(55130),g=i(8995),p=i(61407),m=i(98031),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};let v=n=class{constructor(e){this.keybindingService=e}getResolver(){const e=new a.d((()=>this.keybindingService.getKeybindings().filter((e=>n.codeActionCommands.indexOf(e.command)>=0)).filter((e=>e.resolvedKeybinding)).map((e=>{let t=e.commandArgs;return e.command===u.Uy?t={kind:p.gB.SourceOrganizeImports.value}:e.command===u.Rw&&(t={kind:p.gB.SourceFixAll.value}),{resolvedKeybinding:e.resolvedKeybinding,...p.QA.fromUser(t,{kind:g.k.None,apply:"never"})}}))));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return null===i||void 0===i?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new g.k(e.kind);return t.filter((e=>e.kind.contains(i))).filter((t=>!t.preferred||e.isPreferred)).reduceRight(((e,t)=>e?e.kind.contains(t.kind)?t:e:t),void 0)}};v.codeActionCommands=[u.Xj,u.k_,u.C9,u.Uy,u.Rw],v=n=f([_(0,m.b)],v);i(97791);var b=i(10350),C=(i(93409),i(31629));const y=Object.freeze({kind:g.k.Empty,title:(0,C.kg)("codeAction.widget.id.more","More Actions...")}),w=Object.freeze([{kind:p.gB.QuickFix,title:(0,C.kg)("codeAction.widget.id.quickfix","Quick Fix")},{kind:p.gB.RefactorExtract,title:(0,C.kg)("codeAction.widget.id.extract","Extract"),icon:b.W.wrench},{kind:p.gB.RefactorInline,title:(0,C.kg)("codeAction.widget.id.inline","Inline"),icon:b.W.wrench},{kind:p.gB.RefactorRewrite,title:(0,C.kg)("codeAction.widget.id.convert","Rewrite"),icon:b.W.wrench},{kind:p.gB.RefactorMove,title:(0,C.kg)("codeAction.widget.id.move","Move"),icon:b.W.wrench},{kind:p.gB.SurroundWith,title:(0,C.kg)("codeAction.widget.id.surround","Surround With"),icon:b.W.surroundWith},{kind:p.gB.Source,title:(0,C.kg)("codeAction.widget.id.source","Source Action"),icon:b.W.symbolFile},y]);var S=i(96758),k=i(99645),x=i(11799),L=i(47625),D=i(93090),E=i(18447),N=i(98067),T=i(25689),I=i(47508),M=i(19070),A=i(85845),R=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},O=function(e,t){return function(i,n){t(i,n,e)}};const P="acceptSelectedCodeAction",F="previewSelectedCodeAction";class B{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,s;i.text.textContent=null!==(s=null===(n=e.group)||void 0===n?void 0:n.title)&&void 0!==s?s:""}disposeTemplate(e){}}let W=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);return{container:e,icon:t,text:i,keybinding:new L.x(e,N.OS)}}renderElement(e,t,i){var n,o,r;if((null===(n=e.group)||void 0===n?void 0:n.icon)?(i.icon.className=T.L.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=(0,A.GuP)(e.group.icon.color.id))):(i.icon.className=T.L.asClassName(b.W.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=U(e.label),i.keybinding.set(e.keybinding),s.bo(!!e.keybinding,i.keybinding.element);const a=null===(o=this._keybindingService.lookupKeybinding(P))||void 0===o?void 0:o.getLabel(),l=null===(r=this._keybindingService.lookupKeybinding(F))||void 0===r?void 0:r.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&l?this._supportsPreview&&e.canPreview?i.container.title=(0,C.kg)({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",a,l):i.container.title=(0,C.kg)({key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",a):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};W=R([O(1,m.b)],W);class V extends UIEvent{constructor(){super("acceptSelectedAction")}}class H extends UIEvent{constructor(){super("previewSelectedAction")}}function z(e){if("action"===e.kind)return e.label}let j=class extends l.jG{constructor(e,t,i,n,s,o){super(),this._delegate=n,this._contextViewService=s,this._keybindingService=o,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new E.Q),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const r={getHeight:e=>"header"===e.kind?this._headerLineHeight:this._actionLineHeight,getTemplateId:e=>e.kind};this._list=this._register(new D.B8(e,this.domNode,r,[new W(t,this._keybindingService),new B],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:z},accessibilityProvider:{getAriaLabel:e=>{if("action"===e.kind){let t=e.label?U(null===e||void 0===e?void 0:e.label):"";return e.disabled&&(t=(0,C.kg)({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",t,e.disabled)),t}return null},getWidgetAriaLabel:()=>(0,C.kg)({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:e=>"action"===e.kind?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(M.IN),this._register(this._list.onMouseClick((e=>this.onListClick(e)))),this._register(this._list.onMouseOver((e=>this.onListHover(e)))),this._register(this._list.onDidChangeFocus((()=>this.onFocus()))),this._register(this._list.onDidChangeSelection((e=>this.onListSelection(e)))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&"action"===e.kind}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter((e=>"header"===e.kind)).length,i=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(i);let n=e;if(this._allMenuItems.length>=50)n=380;else{const t=this._allMenuItems.map(((e,t)=>{const i=this.domNode.ownerDocument.getElementById(this._list.getElementID(t));if(i){i.style.width="auto";const e=i.getBoundingClientRect().width;return i.style.width="",e}return 0}));n=Math.max(...t,e)}const s=Math.min(i,.7*this.domNode.ownerDocument.body.clientHeight);return this._list.layout(s,n),this.domNode.style.height=`${s}px`,this._list.domFocus(),n}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(0===t.length)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new H:new V;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof H):this._list.setSelection([])}onFocus(){var e,t;const i=this._list.getFocus();if(0===i.length)return;const n=i[0],s=this._list.element(n);null===(t=(e=this._delegate).onFocus)||void 0===t||t.call(e,s.item)}async onListHover(e){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&"action"===t.kind){const e=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=e?e.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus("number"===typeof e.index?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};function U(e){return e.replace(/\r\n|\r|\n/g," ")}j=R([O(4,I.l),O(5,m.b)],j);var K=i(27195),G=i(32848),$=i(14718),q=i(63591),Q=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Y=function(e,t){return function(i,n){t(i,n,e)}};(0,A.x1A)("actionBar.toggledBackground",{dark:A.c1f,light:A.c1f,hcDark:A.c1f,hcLight:A.c1f},(0,C.kg)("actionBar.toggledBackground","Background color for toggled action items in action bar."));const Z={Visible:new G.N1("codeActionMenuVisible",!1,(0,C.kg)("codeActionMenuVisible","Whether the action widget list is visible"))},X=(0,q.u1)("actionWidgetService");let J=class extends l.jG{get isVisible(){return Z.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new l.HE)}show(e,t,i,n,s,o,r){const a=Z.Visible.bindTo(this._contextKeyService),l=this._instantiationService.createInstance(j,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:e=>(a.set(!0),this._renderWidget(e,l,null!==r&&void 0!==r?r:[])),onHide:e=>{a.reset(),this._onWidgetClosed(e)}},o,!1)}acceptSelected(e){var t;null===(t=this._list.value)||void 0===t||t.acceptSelected(e)}focusPrevious(){var e,t;null===(t=null===(e=this._list)||void 0===e?void 0:e.value)||void 0===t||t.focusPrevious()}focusNext(){var e,t;null===(t=null===(e=this._list)||void 0===e?void 0:e.value)||void 0===t||t.focusNext()}hide(){var e;null===(e=this._list.value)||void 0===e||e.hide(),this._list.clear()}_renderWidget(e,t,i){var n;const o=document.createElement("div");if(o.classList.add("action-widget"),e.appendChild(o),this._list.value=t,!this._list.value)throw new Error("List has no value");o.appendChild(this._list.value.domNode);const r=new l.Cm,a=document.createElement("div"),d=e.appendChild(a);d.classList.add("context-view-block"),r.add(s.ko(d,s.Bx.MOUSE_DOWN,(e=>e.stopPropagation())));const h=document.createElement("div"),c=e.appendChild(h);c.classList.add("context-view-pointerBlock"),r.add(s.ko(c,s.Bx.POINTER_MOVE,(()=>c.remove()))),r.add(s.ko(c,s.Bx.MOUSE_DOWN,(()=>c.remove())));let u=0;if(i.length){const e=this._createActionBar(".action-widget-action-bar",i);e&&(o.appendChild(e.getContainer().parentElement),r.add(e),u=e.getContainer().offsetWidth)}const g=null===(n=this._list.value)||void 0===n?void 0:n.layout(u);o.style.width=`${g}px`;const p=r.add(s.w5(e));return r.add(p.onDidBlur((()=>this.hide()))),r}_createActionBar(e,t){if(!t.length)return;const i=s.$(e),n=new x.E(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;null===(t=this._list.value)||void 0===t||t.hide(e)}};J=Q([Y(0,I.l),Y(1,G.fN),Y(2,q._Y)],J),(0,$.v)(X,J,1);const ee=1100;(0,K.ug)(class extends K.L{constructor(){super({id:"hideCodeActionWidget",title:(0,C.aS)("hideCodeActionWidget.title","Hide action widget"),precondition:Z.Visible,keybinding:{weight:ee,primary:9,secondary:[1033]}})}run(e){e.get(X).hide()}}),(0,K.ug)(class extends K.L{constructor(){super({id:"selectPrevCodeAction",title:(0,C.aS)("selectPrevCodeAction.title","Select previous action"),precondition:Z.Visible,keybinding:{weight:ee,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(e){const t=e.get(X);t instanceof J&&t.focusPrevious()}}),(0,K.ug)(class extends K.L{constructor(){super({id:"selectNextCodeAction",title:(0,C.aS)("selectNextCodeAction.title","Select next action"),precondition:Z.Visible,keybinding:{weight:ee,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(e){const t=e.get(X);t instanceof J&&t.focusNext()}}),(0,K.ug)(class extends K.L{constructor(){super({id:P,title:(0,C.aS)("acceptSelected.title","Accept selected action"),precondition:Z.Visible,keybinding:{weight:ee,primary:3,secondary:[2137]}})}run(e){const t=e.get(X);t instanceof J&&t.acceptSelected()}}),(0,K.ug)(class extends K.L{constructor(){super({id:F,title:(0,C.aS)("previewSelected.title","Preview selected action"),precondition:Z.Visible,keybinding:{weight:ee,primary:2051}})}run(e){const t=e.get(X);t instanceof J&&t.acceptSelected(!0)}});var te,ie=i(50091),ne=i(84001),se=i(75147),oe=i(73823),re=i(86723),ae=i(47612),le=i(59473),de=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},he=function(e,t){return function(i,n){t(i,n,e)}};let ce=te=class extends l.jG{static get(e){return e.getContribution(te.ID)}constructor(e,t,i,n,s,o,r,d,h,c){super(),this._commandService=r,this._configurationService=d,this._actionWidgetService=h,this._instantiationService=c,this._activeCodeActions=this._register(new l.HE),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new le.Dc(this._editor,s.codeActionProvider,t,i,o,d)),this._register(this._model.onDidChangeState((e=>this.update(e)))),this._lightBulbWidget=new a.d((()=>{const e=this._editor.getContribution(S.E.ID);return e&&this._register(e.onClick((e=>this.showCodeActionsFromLightbulb(e.actions,e)))),e})),this._resolver=n.createInstance(v),this._register(this._editor.onDidLayoutChange((()=>this._actionWidgetService.hide())))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(e,t){if(e.allAIFixes&&1===e.validActions.length){const t=e.validActions[0],i=t.action.command;return i&&"inlineChat.start"===i.id&&i.arguments&&i.arguments.length>=1&&(i.arguments[0]={...i.arguments[0],autoSend:!1}),void await this._applyCodeAction(t,!1,!1,u.Qp.FromAILightbulb)}await this.showCodeActionList(e,t,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(e,t,i){return this.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n){var s;if(!this._editor.hasModel())return;null===(s=k.k.get(this._editor))||void 0===s||s.closeMessage();const o=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:o}})}_trigger(e){return this._model.trigger(e)}async _applyCodeAction(e,t,i,n){try{await this._instantiationService.invokeFunction(u.W4,e,n,{preview:i,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:p.fo.QuickFix,filter:{}})}}async update(e){var t,i,n,s,o,a,l;if(1!==e.type)return void(null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide());let d;try{d=await e.actions}catch(h){return void(0,r.dz)(h)}if(!this._disposed)if(null===(i=this._lightBulbWidget.value)||void 0===i||i.update(d,e.trigger,e.position),1===e.trigger.type){if(null===(n=e.trigger.filter)||void 0===n?void 0:n.include){const t=this.tryGetValidActionToApply(e.trigger,d);if(t){try{null===(s=this._lightBulbWidget.value)||void 0===s||s.hide(),await this._applyCodeAction(t,!1,!1,u.Qp.FromCodeActions)}finally{d.dispose()}return}if(e.trigger.context){const t=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,d);if(t&&t.action.disabled)return null===(o=k.k.get(this._editor))||void 0===o||o.showMessage(t.action.disabled,e.trigger.context.position),void d.dispose()}}const t=!!(null===(a=e.trigger.filter)||void 0===a?void 0:a.include);if(e.trigger.context&&(!d.allActions.length||!t&&!d.validActions.length))return null===(l=k.k.get(this._editor))||void 0===l||l.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=d,void d.dispose();this._activeCodeActions.value=d,this.showCodeActionList(d,this.toCoords(e.position),{includeDisabledActions:t,fromLightbulb:!1})}else this._actionWidgetService.isVisible?d.dispose():this._activeCodeActions.value=d}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find((({action:e})=>e.disabled)):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}async showCodeActionList(e,t,i){const n=this._editor.createDecorationsCollection(),s=this._editor.getDomNode();if(!s)return;const r=i.includeDisabledActions&&(this._showDisabled||0===e.validActions.length)?e.allActions:e.validActions;if(!r.length)return;const a=d.y.isIPosition(t)?this.toCoords(t):t,l={onSelect:async(e,t)=>{this._applyCodeAction(e,!0,!!t,u.Qp.FromCodeActions),this._actionWidgetService.hide(),n.clear()},onHide:()=>{var e;null===(e=this._editor)||void 0===e||e.focus(),n.clear()},onHover:async(e,t)=>{var i;if(t.isCancellationRequested)return;let n=!1;const s=e.action.kind;if(s){const e=new g.k(s);n=[p.gB.RefactorExtract,p.gB.RefactorInline,p.gB.RefactorRewrite].some((t=>t.contains(e)))}return{canPreview:n||!!(null===(i=e.action.edit)||void 0===i?void 0:i.edits.length)}},onFocus:e=>{var t,i;if(e&&e.action){const s=e.action.ranges,r=e.action.diagnostics;if(n.clear(),s&&s.length>0){const e=r&&(null===r||void 0===r?void 0:r.length)>1?r.map((e=>({range:e,options:te.DECORATION}))):s.map((e=>({range:e,options:te.DECORATION})));n.set(e)}else if(r&&r.length>0){const e=r.map((e=>({range:e,options:te.DECORATION})));n.set(e);const s=r[0];if(s.startLineNumber&&s.startColumn){const e=null===(i=null===(t=this._editor.getModel())||void 0===t?void 0:t.getWordAtPosition({lineNumber:s.startLineNumber,column:s.startColumn}))||void 0===i?void 0:i.word;o.h5((0,C.kg)("editingNewSelection","Context: {0} at line {1} and column {2}.",e,s.startLineNumber,s.startColumn))}}}else n.clear()}};this._actionWidgetService.show("codeActionWidget",!0,function(e,t,i){if(!t)return e.map((e=>{var t;return{kind:"action",item:e,group:y,disabled:!!e.action.disabled,label:e.action.disabled||e.action.title,canPreview:!!(null===(t=e.action.edit)||void 0===t?void 0:t.edits.length)}}));const n=w.map((e=>({group:e,actions:[]})));for(const o of e){const e=o.action.kind?new g.k(o.action.kind):g.k.None;for(const t of n)if(t.group.kind.contains(e)){t.actions.push(o);break}}const s=[];for(const o of n)if(o.actions.length){s.push({kind:"header",group:o.group});for(const e of o.actions){const t=o.group;s.push({kind:"action",item:e,group:e.action.isAI?{title:t.title,kind:t.kind,icon:b.W.sparkle}:t,label:e.action.title,disabled:!!e.action.disabled,keybinding:i(e.action)})}}return s}(r,this._shouldShowHeaders(),this._resolver.getResolver()),l,a,s,this._getActionBarActions(e,t,i))}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=(0,s.BK)(this._editor.getDomNode());return{x:i.left+t.left,y:i.top+t.top+t.height}}_shouldShowHeaders(){var e;const t=null===(e=this._editor)||void 0===e?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:null===t||void 0===t?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map((e=>{var t;return{id:e.id,label:e.title,tooltip:null!==(t=e.tooltip)&&void 0!==t?t:"",class:void 0,enabled:!0,run:()=>{var t;return this._commandService.executeCommand(e.id,...null!==(t=e.arguments)&&void 0!==t?t:[])}}}));return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:(0,C.kg)("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:(0,C.kg)("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};ce.ID="editor.contrib.codeActionController",ce.DECORATION=h.kI.register({description:"quickfix-highlight",className:"quickfix-edit-highlight"}),ce=te=de([he(1,se.DR),he(2,G.fN),he(3,q._Y),he(4,c.u),he(5,oe.N8),he(6,ie.d),he(7,ne.pG),he(8,X),he(9,q._Y)],ce),(0,ae.zy)(((e,t)=>{var i,n;i=".quickfix-edit-highlight",(n=e.getColor(A.Ubg))&&t.addRule(`.monaco-editor ${i} { background-color: ${n}; }`);const s=e.getColor(A.ECk);s&&t.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${(0,re.Bb)(e.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`)}))},59473:(e,t,i)=>{"use strict";i.d(t,{D_:()=>f,Dc:()=>y});var n=i(90766),s=i(64383),o=i(41234),r=i(5662),a=i(89403),l=i(87908),d=i(83069),h=i(75326),c=i(32848),u=i(73823),g=i(61407),p=i(55130),m=i(8995);const f=new c.N1("supportedCodeAction",""),_="_typescript.applyFixAllCodeAction";class v extends r.jG{constructor(e,t,i,s=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=s,this._autoTriggerTimer=this._register(new n.pc),this._register(this._markerService.onMarkerChanged((e=>this._onMarkerChanges(e)))),this._register(this._editor.onDidChangeCursorPosition((()=>this._tryAutoTrigger())))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some((e=>(0,a.n4)(e,t.uri)))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2,triggerAction:g.fo.Default})}),this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getSelection();if(1===e.type)return t;const i=this._editor.getOption(65).enabled;if(i!==l.jT.Off){if(i===l.jT.On)return t;if(i===l.jT.OnCode){if(!t.isEmpty())return t;const e=this._editor.getModel(),{lineNumber:i,column:n}=t.getPosition(),s=e.getLineContent(i);if(0===s.length)return;if(1===n){if(/\s/.test(s[0]))return}else if(n===e.getLineMaxColumn(i)){if(/\s/.test(s[s.length-1]))return}else if(/\s/.test(s[n-2])&&/\s/.test(s[n-1]))return}return t}}}var b;!function(e){e.Empty={type:0};e.Triggered=class{constructor(e,t,i){this.trigger=e,this.position=t,this._cancellablePromise=i,this.type=1,this.actions=i.catch((e=>{if((0,s.MB)(e))return C;throw e}))}cancel(){this._cancellablePromise.cancel()}}}(b||(b={}));const C=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class y extends r.jG{constructor(e,t,i,n,s,a){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._configurationService=a,this._codeActionOracle=this._register(new r.HE),this._state=b.Empty,this._onDidChangeState=this._register(new o.vl),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=f.bindTo(n),this._register(this._editor.onDidChangeModel((()=>this._update()))),this._register(this._editor.onDidChangeModelLanguage((()=>this._update()))),this._register(this._registry.onDidChange((()=>this._update()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(65)&&this._update()}))),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(b.Empty,!0))}_settingEnabledNearbyQuickfixes(){var e;const t=null===(e=this._editor)||void 0===e?void 0:e.getModel();return!!this._configurationService&&this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:null===t||void 0===t?void 0:t.uri})}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(b.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(91)){const t=this._registry.all(e).flatMap((e=>{var t;return null!==(t=e.providedCodeActionKinds)&&void 0!==t?t:[]}));this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new v(this._editor,this._markerService,(t=>{var i;if(!t)return void this.setState(b.Empty);const s=t.selection.getStartPosition(),o=(0,n.SS)((async i=>{var n,s,o,r,a,l,c,f,v,b;if(this._settingEnabledNearbyQuickfixes()&&1===t.trigger.type&&(t.trigger.triggerAction===g.fo.QuickFix||(null===(s=null===(n=t.trigger.filter)||void 0===n?void 0:n.include)||void 0===s?void 0:s.contains(g.gB.QuickFix)))){const n=await(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i),s=[...n.allActions];if(i.isCancellationRequested)return C;const y=null===(o=n.validActions)||void 0===o?void 0:o.some((e=>!!e.action.kind&&g.gB.QuickFix.contains(new m.k(e.action.kind)))),w=this._markerService.read({resource:e.uri});if(y){for(const e of n.validActions)(null===(a=null===(r=e.action.command)||void 0===r?void 0:r.arguments)||void 0===a?void 0:a.some((e=>"string"===typeof e&&e.includes(_))))&&(e.action.diagnostics=[...w.filter((e=>e.relatedInformation))]);return{validActions:n.validActions,allActions:s,documentation:n.documentation,hasAutoFix:n.hasAutoFix,hasAIFix:n.hasAIFix,allAIFixes:n.allAIFixes,dispose:()=>{n.dispose()}}}if(!y&&w.length>0){const o=t.selection.getPosition();let r=o,a=Number.MAX_VALUE;const m=[...n.validActions];for(const y of w){const C=y.endColumn,S=y.endLineNumber,k=y.startLineNumber;if(S===o.lineNumber||k===o.lineNumber){r=new d.y(S,C);const y={type:t.trigger.type,triggerAction:t.trigger.triggerAction,filter:{include:(null===(l=t.trigger.filter)||void 0===l?void 0:l.include)?null===(c=t.trigger.filter)||void 0===c?void 0:c.include:g.gB.QuickFix},autoApply:t.trigger.autoApply,context:{notAvailableMessage:(null===(f=t.trigger.context)||void 0===f?void 0:f.notAvailableMessage)||"",position:r}},k=new h.L(r.lineNumber,r.column,r.lineNumber,r.column),x=await(0,p.dU)(this._registry,e,k,y,u.ke.None,i);if(0!==x.validActions.length){for(const e of x.validActions)(null===(b=null===(v=e.action.command)||void 0===v?void 0:v.arguments)||void 0===b?void 0:b.some((e=>"string"===typeof e&&e.includes(_))))&&(e.action.diagnostics=[...w.filter((e=>e.relatedInformation))]);0===n.allActions.length&&s.push(...x.allActions),Math.abs(o.column-C)<a?m.unshift(...x.validActions):m.push(...x.validActions)}a=Math.abs(o.column-C)}}const C=m.filter(((e,t,i)=>i.findIndex((t=>t.action.title===e.action.title))===t));return C.sort(((e,t)=>e.action.isPreferred&&!t.action.isPreferred?-1:!e.action.isPreferred&&t.action.isPreferred||e.action.isAI&&!t.action.isAI?1:!e.action.isAI&&t.action.isAI?-1:0)),{validActions:C,allActions:s,documentation:n.documentation,hasAutoFix:n.hasAutoFix,hasAIFix:n.hasAIFix,allAIFixes:n.allAIFixes,dispose:()=>{n.dispose()}}}}return(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i)}));1===t.trigger.type&&(null===(i=this._progressService)||void 0===i||i.showWhile(o,250));const r=new b.Triggered(t.trigger,s,o);let a=!1;1===this._state.type&&(a=1===this._state.trigger.type&&1===r.type&&2===r.trigger.type&&this._state.position!==r.position),a||this.setState(r)}),void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:g.fo.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;null===(t=this._codeActionOracle.value)||void 0===t||t.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||this._disposed||this._onDidChangeState.fire(e))}}},96758:(e,t,i)=>{"use strict";i.d(t,{E:()=>v});var n,s,o=i(8597),r=i(25154),a=i(10350),l=i(41234),d=i(5662),h=i(25689),c=i(78049),u=i(55130),g=i(31629),p=i(50091),m=i(98031),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};!function(e){e.Hidden={type:0};e.Showing=class{constructor(e,t,i,n){this.actions=e,this.trigger=t,this.editorPosition=i,this.widgetPosition=n,this.type=1}}}(s||(s={}));let v=n=class extends d.jG{constructor(e,t,i){super(),this._editor=e,this._keybindingService=t,this._onClick=this._register(new l.vl),this.onClick=this._onClick.event,this._state=s.Hidden,this._iconClasses=[],this._domNode=o.$("div.lightBulbWidget"),this._register(r.q.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent((e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide()}))),this._register(o.Xc(this._domNode,(e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:i}=o.BK(this._domNode),n=this._editor.getOption(67);let s=Math.floor(n/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(s+=n),this._onClick.fire({x:e.posx,y:t+i+s,actions:this.state.actions,trigger:this.state.trigger})}))),this._register(o.ko(this._domNode,"mouseenter",(e=>{1===(1&e.buttons)&&this.hide()}))),this._register(l.Jh.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,(()=>{var e,t,i,n;this._preferredKbLabel=null!==(t=null===(e=this._keybindingService.lookupKeybinding(u.pR))||void 0===e?void 0:e.getLabel())&&void 0!==t?t:void 0,this._quickFixKbLabel=null!==(n=null===(i=this._keybindingService.lookupKeybinding(u.pQ))||void 0===i?void 0:i.getLabel())&&void 0!==n?n:void 0,this._updateLightBulbTitleAndIcon()})))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();if(!this._editor.getOptions().get(65).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:r,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,d=this._editor.getOptions().get(50),h=o.getLineContent(r),u=(0,c.G)(h,l),g=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1);let p=r,m=1;if(!(d.spaceWidth*u>22)){if(r>1&&!g(r-1))p-=1;else if(r<o.getLineCount()&&!g(r+1))p+=1;else if(a*d.spaceWidth<22)return this.hide();m=/^\S\s*$/.test(o.getLineContent(p))?2:1}this.state=new s.Showing(e,t,i,{position:{lineNumber:p,column:m},preference:n._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==s.Hidden&&(this.state=s.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this._domNode.classList.remove(...this._iconClasses),this._iconClasses=[],1!==this.state.type)return;let e,t=!1;this.state.actions.allAIFixes?(e=a.W.sparkleFilled,1===this.state.actions.validActions.length&&(t=!0)):e=this.state.actions.hasAutoFix?this.state.actions.hasAIFix?a.W.lightbulbSparkleAutofix:a.W.lightbulbAutofix:this.state.actions.hasAIFix?a.W.lightbulbSparkle:a.W.lightBulb,this._updateLightbulbTitle(this.state.actions.hasAutoFix,t),this._iconClasses=h.L.asClassNameArray(e),this._domNode.classList.add(...this._iconClasses)}_updateLightbulbTitle(e,t){1===this.state.type&&(t?this.title=g.kg("codeActionAutoRun","Run: {0}",this.state.actions.validActions[0].action.title):e&&this._preferredKbLabel?this.title=g.kg("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel):!e&&this._quickFixKbLabel?this.title=g.kg("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):e||(this.title=g.kg("codeAction","Show Code Actions")))}set title(e){this._domNode.title=e}};v.ID="editor.contrib.lightbulbWidget",v._posPref=[0],v=n=f([_(1,m.b),_(2,p.d)],v)},61407:(e,t,i)=>{"use strict";i.d(t,{QA:()=>h,Vi:()=>c,aF:()=>l,fo:()=>r,gB:()=>o,uJ:()=>a});var n=i(64383),s=i(8995);const o=new class{constructor(){this.QuickFix=new s.k("quickfix"),this.Refactor=new s.k("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new s.k("notebook"),this.Source=new s.k("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}};var r;function a(e,t){return!(e.include&&!e.include.intersects(t))&&((!e.excludes||!e.excludes.some((i=>d(t,i,e.include))))&&!(!e.includeSourceActions&&o.Source.contains(t)))}function l(e,t){const i=t.kind?new s.k(t.kind):void 0;return!!(!e.include||i&&e.include.contains(i))&&(!(e.excludes&&i&&e.excludes.some((t=>d(i,t,e.include))))&&(!(!e.includeSourceActions&&i&&o.Source.contains(i))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}function d(e,t,i){return!!t.contains(e)&&(!i||!t.contains(i))}!function(e){e.Refactor="refactor",e.RefactorPreview="refactor preview",e.Lightbulb="lightbulb",e.Default="other (default)",e.SourceAction="source action",e.QuickFix="quick fix action",e.FixAll="fix all",e.OrganizeImports="organize imports",e.AutoFix="auto fix",e.QuickFixHover="quick fix hover window",e.OnSave="save participants",e.ProblemsView="problems view"}(r||(r={}));class h{static fromUser(e,t){return e&&"object"===typeof e?new h(h.getKindFromUser(e,t.kind),h.getApplyFromUser(e,t.apply),h.getPreferredUser(e)):new h(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"===typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"===typeof e.kind?new s.k(e.kind):t}static getPreferredUser(e){return"boolean"===typeof e.preferred&&e.preferred}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class c{constructor(e,t,i){this.action=e,this.provider=t,this.highlightRange=i}async resolve(e){var t;if((null===(t=this.provider)||void 0===t?void 0:t.resolveCodeAction)&&!this.action.edit){let t;try{t=await this.provider.resolveCodeAction(this.action,e)}catch(i){(0,n.M_)(i)}t&&(this.action.edit=t.edit)}return this}}},64215:(e,t,i)=>{"use strict";var n=i(90766),s=i(64383),o=i(5662),r=i(55190),a=i(31450),l=i(87908),d=i(60002),h=i(18447),c=i(631),u=i(79400),g=i(23750),p=i(50091),m=i(56942);class f{constructor(){this.lenses=[],this._disposables=new o.Cm}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}async function _(e,t,i){const n=e.ordered(t),o=new Map,r=new f,a=n.map((async(e,n)=>{o.set(e,n);try{const n=await Promise.resolve(e.provideCodeLenses(t,i));n&&r.add(n,e)}catch(a){(0,s.M_)(a)}}));return await Promise.all(a),r.lenses=r.lenses.sort(((e,t)=>e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:o.get(e.provider)<o.get(t.provider)?-1:o.get(e.provider)>o.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0)),r}p.w.registerCommand("_executeCodeLensProvider",(function(e,...t){let[i,n]=t;(0,c.j)(u.r.isUri(i)),(0,c.j)("number"===typeof n||!n);const{codeLensProvider:r}=e.get(m.u),a=e.get(g.S).getModel(i);if(!a)throw(0,s.Qg)();const l=[],d=new o.Cm;return _(r,a,h.X.None).then((e=>{d.add(e);const t=[];for(const i of e.lenses)void 0===n||null===n||Boolean(i.symbol.command)?l.push(i.symbol):n-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(a,i.symbol,h.X.None)).then((e=>l.push(e||i.symbol))));return Promise.all(t)})).then((()=>l)).finally((()=>{setTimeout((()=>d.dispose()),100)}))}));var v=i(41234),b=i(74320),C=i(36677),y=i(14718),w=i(63591),S=i(9711),k=i(25893),x=i(8597),L=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};const E=(0,w.u1)("ICodeLensCache");class N{constructor(e,t){this.lineCount=e,this.data=t}}let T=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new b.qK(20,.75);(0,x.U3)(k.G,(()=>e.remove("codelens/cache",1)));const t="codelens/cache2",i=e.get(t,1,"{}");this._deserialize(i),v.Jh.once(e.onWillSaveState)((i=>{i.reason===S.LP.SHUTDOWN&&e.store(t,this._serialize(),1,1)}))}put(e,t){const i=t.lenses.map((e=>{var t;return{range:e.symbol.range,command:e.symbol.command&&{id:"",title:null===(t=e.symbol.command)||void 0===t?void 0:t.title}}})),n=new f;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new N(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const e of i.data.lenses)n.add(e.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const i=t[e],n=[];for(const e of i.lines)n.push({range:new C.Q(e,1,e,11)});const s=new f;s.add({lenses:n,dispose(){}},this._fakeProvider),this._cache.set(e,new N(i.lineCount,s))}}catch(t){}}};T=L([D(0,S.CS)],T),(0,y.v)(E,T,1);var I=i(20370),M=i(38361);class A{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class R{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+R._idPool++,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s<e.length;s++){const t=e[s];if(t&&(n=!0,t.command)){const n=(0,I.n)(t.command.title.trim());if(t.command.id){const e="c"+R._idPool++;i.push(x.$("a",{id:e,title:t.command.tooltip,role:"button"},...n)),this._commands.set(e,t.command)}else i.push(x.$("span",{title:t.command.tooltip},...n));s+1<e.length&&i.push(x.$("span",void 0,"\xa0|\xa0"))}}n?(x.Ln(this._domNode,...i),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):x.Ln(this._domNode,x.$("span",void 0,"no commands"))}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){const t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}R._idPool=0;class O{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){const t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let i=0,n=t.length;i<n;i++)this._addDecorationsCallbacks[i](t[i])}}const P=M.kI.register({collapseOnReplaceEdit:!0,description:"codelens"});class F{constructor(e,t,i,n,s,o){let r;this._isDisposed=!1,this._editor=t,this._data=e,this._decorationIds=[];const a=[];this._data.forEach(((e,t)=>{e.symbol.command&&a.push(e.symbol),i.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[t]=e)),r=r?C.Q.plusRange(r,e.symbol.range):C.Q.lift(e.symbol.range)})),this._viewZone=new A(r.startLineNumber-1,s,o),this._viewZoneId=n.addZone(this._viewZone),a.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(a,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new R(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],null===t||void 0===t||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some(((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!(!i||C.Q.isEmpty(n.range)!==i.isEmpty())}))}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach(((e,i)=>{t.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[i]=e))}))}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t<this._decorationIds.length;t++){const i=e.getDecorationRange(this._decorationIds[t]);i&&(this._data[t].symbol.range=i)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){const i=e[t];if(i){const{symbol:e}=this._data[t];e.command=i.command||e.command}}}getCommand(e){var t;return null===(t=this._contentWidget)||void 0===t?void 0:t.getCommand(e)}getLineNumber(){const e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){const t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}}var B=i(31629),W=i(58591),V=i(51467),H=i(32500),z=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},j=function(e,t){return function(i,n){t(i,n,e)}};let U=class{constructor(e,t,i,s,r,a){this._editor=e,this._languageFeaturesService=t,this._commandService=s,this._notificationService=r,this._codeLensCache=a,this._disposables=new o.Cm,this._localToDispose=new o.Cm,this._lenses=[],this._oldCodeLensModels=new o.Cm,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new n.uC((()=>this._resolveCodeLensesInViewport()),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(50)||e.hasChanged(19)||e.hasChanged(18))&&this._updateLensStyle(),e.hasChanged(17)&&this._onModelChange()}))),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),null===(e=this._currentCodeLensModel)||void 0===e||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let t=this._editor.getOption(19);return(!t||t<5)&&(t=.9*this._editor.getOption(52)|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(18),n=this._editor.getOption(50),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(s.setProperty("--vscode-editorCodeLens-fontFamily",i),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",l.jU.fontFamily)),this._editor.changeViewZones((t=>{for(const i of this._lenses)i.updateHeight(e,t)}))}_localDispose(){var e,t,i;null===(e=this._getCodeLensModelPromise)||void 0===e||e.cancel(),this._getCodeLensModelPromise=void 0,null===(t=this._resolveCodeLensesPromise)||void 0===t||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),null===(i=this._currentCodeLensModel)||void 0===i||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(17)||e.isTooLargeForTokenization())return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e))return void(t&&(0,n.EQ)((()=>{const i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())}),3e4,this._localToDispose));for(const n of this._languageFeaturesService.codeLensProvider.all(e))if("function"===typeof n.onDidChange){const e=n.onDidChange((()=>i.schedule()));this._localToDispose.add(e)}const i=new n.uC((()=>{var t;const o=Date.now();null===(t=this._getCodeLensModelPromise)||void 0===t||t.cancel(),this._getCodeLensModelPromise=(0,n.SS)((t=>_(this._languageFeaturesService.codeLensProvider,e,t))),this._getCodeLensModelPromise.then((t=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=t,this._codeLensCache.put(e,t);const n=this._provideCodeLensDebounce.update(e,Date.now()-o);i.delay=n,this._renderCodeLensSymbols(t),this._resolveCodeLensesInViewportSoon()}),s.dz)}),this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add((0,o.s)((()=>this._resolveCodeLensesScheduler.cancel()))),this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{var e;this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const i=[];let n=-1;this._lenses.forEach((e=>{e.isValid()&&n!==e.getLineNumber()?(e.update(t),n=e.getLineNumber()):i.push(e)}));const s=new O;i.forEach((e=>{e.dispose(s,t),this._lenses.splice(this._lenses.indexOf(e),1)})),s.commit(e)}))})),i.schedule(),this._resolveCodeLensesScheduler.cancel(),null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0}))),this._localToDispose.add(this._editor.onDidFocusEditorWidget((()=>{i.schedule()}))),this._localToDispose.add(this._editor.onDidBlurEditorText((()=>{i.cancel()}))),this._localToDispose.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(this._editor.onDidLayoutChange((()=>{this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add((0,o.s)((()=>{if(this._editor.getModel()){const e=r.D.capture(this._editor);this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{this._disposeAllLenses(e,t)}))})),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseDown((e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===(null===t||void 0===t?void 0:t.tagName)&&(t=t.parentElement),"A"===(null===t||void 0===t?void 0:t.tagName))for(const i of this._lenses){const e=i.getCommand(t);if(e){this._commandService.executeCommand(e.id,...e.arguments||[]).catch((e=>this._notificationService.error(e)));break}}}))),i.schedule()}_disposeAllLenses(e,t){const i=new O;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const r of e.lenses){const e=r.symbol.range.startLineNumber;e<1||e>t||(n&&n[n.length-1].symbol.range.startLineNumber===e?n.push(r):(n=[r],i.push(n)))}if(!i.length&&!this._lenses.length)return;const s=r.D.capture(this._editor),o=this._getLayoutInfo();this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const n=new O;let s=0,r=0;for(;r<i.length&&s<this._lenses.length;){const e=i[r][0].symbol.range.startLineNumber,a=this._lenses[s].getLineNumber();a<e?(this._lenses[s].dispose(n,t),this._lenses.splice(s,1)):a===e?(this._lenses[s].updateCodeLensSymbols(i[r],n),r++,s++):(this._lenses.splice(s,0,new F(i[r],this._editor,n,t,o.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),s++,r++)}for(;s<this._lenses.length;)this._lenses[s].dispose(n,t),this._lenses.splice(s,1);for(;r<i.length;)this._lenses.push(new F(i[r],this._editor,n,t,o.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),r++;n.commit(e)}))})),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],o=[];if(this._lenses.forEach((e=>{const n=e.computeIfNecessary(t);n&&(i.push(n),o.push(e))})),0===i.length)return;const r=Date.now(),a=(0,n.SS)((e=>{const n=i.map(((i,n)=>{const r=new Array(i.length),a=i.map(((i,n)=>i.symbol.command||"function"!==typeof i.provider.resolveCodeLens?(r[n]=i.symbol,Promise.resolve(void 0)):Promise.resolve(i.provider.resolveCodeLens(t,i.symbol,e)).then((e=>{r[n]=e}),s.M_)));return Promise.all(a).then((()=>{e.isCancellationRequested||o[n].isDisposed()||o[n].updateCommands(r)}))}));return Promise.all(n)}));this._resolveCodeLensesPromise=a,this._resolveCodeLensesPromise.then((()=>{const e=this._resolveCodeLensesDebounce.update(t,Date.now()-r);this._resolveCodeLensesScheduler.delay=e,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}),(e=>{(0,s.dz)(e),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}))}async getModel(){var e;return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,(null===(e=this._currentCodeLensModel)||void 0===e?void 0:e.isDisposed)?void 0:this._currentCodeLensModel}};U.ID="css.editor.codeLens",U=z([j(1,m.u),j(2,H.U),j(3,p.d),j(4,W.Ot),j(5,E)],U),(0,a.HW)(U.ID,U,1),(0,a.Fl)(class extends a.ks{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:d.R.hasCodeLensProvider,label:(0,B.kg)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(e,t){if(!t.hasModel())return;const i=e.get(V.GK),n=e.get(p.d),s=e.get(W.Ot),o=t.getSelection().positionLineNumber,r=t.getContribution(U.ID);if(!r)return;const a=await r.getModel();if(!a)return;const l=[];for(const u of a.lenses)u.symbol.command&&u.symbol.range.startLineNumber===o&&l.push({label:u.symbol.command.title,command:u.symbol.command});if(0===l.length)return;const d=await i.pick(l,{canPickMany:!1,placeHolder:(0,B.kg)("placeHolder","Select a command")});if(!d)return;let h=d.command;if(a.isDisposed){const e=await r.getModel(),t=null===e||void 0===e?void 0:e.lenses.find((e=>{var t;return e.symbol.range.startLineNumber===o&&(null===(t=e.symbol.command)||void 0===t?void 0:t.title)===h.title}));if(!t||!t.symbol.command)return;h=t.symbol.command}try{await n.executeCommand(h.id,...h.arguments||[])}catch(c){s.error(c)}}})},68310:(e,t,i)=>{"use strict";i.d(t,{R:()=>g,j:()=>u});var n=i(18447),s=i(64383),o=i(79400),r=i(36677),a=i(23750),l=i(50091),d=i(56942),h=i(52363),c=i(84001);async function u(e,t,i,n=!0){return _(new p,e,t,i,n)}function g(e,t,i,n){return Promise.resolve(i.provideColorPresentations(e,t,n))}class p{constructor(){}async compute(e,t,i,n){const s=await e.provideDocumentColors(t,i);if(Array.isArray(s))for(const o of s)n.push({colorInfo:o,provider:e});return Array.isArray(s)}}class m{constructor(){}async compute(e,t,i,n){const s=await e.provideDocumentColors(t,i);if(Array.isArray(s))for(const o of s)n.push({range:o.range,color:[o.color.red,o.color.green,o.color.blue,o.color.alpha]});return Array.isArray(s)}}class f{constructor(e){this.colorInfo=e}async compute(e,t,i,s){const o=await e.provideColorPresentations(t,this.colorInfo,n.X.None);return Array.isArray(o)&&s.push(...o),Array.isArray(o)}}async function _(e,t,i,n,o){let r,a=!1;const l=[],d=t.ordered(i);for(let u=d.length-1;u>=0;u--){const t=d[u];if(t instanceof h.L)r=t;else try{await e.compute(t,i,n,l)&&(a=!0)}catch(c){(0,s.M_)(c)}}return a?l:r&&o?(await e.compute(r,i,n,l),l):[]}function v(e,t){const{colorProvider:i}=e.get(d.u),n=e.get(a.S).getModel(t);if(!n)throw(0,s.Qg)();return{model:n,colorProviderRegistry:i,isDefaultColorDecoratorsEnabled:e.get(c.pG).getValue("editor.defaultColorDecorators",{resource:t})}}l.w.registerCommand("_executeDocumentColorProvider",(function(e,...t){const[i]=t;if(!(i instanceof o.r))throw(0,s.Qg)();const{model:r,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:l}=v(e,i);return _(new m,a,r,n.X.None,l)})),l.w.registerCommand("_executeColorPresentationProvider",(function(e,...t){const[i,a]=t,{uri:l,range:d}=a;if(!(l instanceof o.r)||!Array.isArray(i)||4!==i.length||!r.Q.isIRange(d))throw(0,s.Qg)();const{model:h,colorProviderRegistry:c,isDefaultColorDecoratorsEnabled:u}=v(e,l),[g,p,m,b]=i;return _(new f({range:d,color:{red:g,green:p,blue:m,alpha:b}}),c,h,n.X.None,u)}))},31659:(e,t,i)=>{"use strict";var n=i(5662),s=i(31450),o=i(36677),r=i(9772),a=i(28712),l=i(15989),d=i(57039);class h extends n.jG{constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(148);if("click"!==t&&"clickAndHover"!==t)return;const i=e.target;if(6!==i.type)return;if(!i.detail.injectedText)return;if(i.detail.injectedText.options.attachedData!==r.nM)return;if(!i.range)return;const n=this._editor.getContribution(l.n.ID);if(n&&!n.isColorPickerVisible){const e=new o.Q(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);n.showContentHover(e,1,0,!1,!0)}}}h.ID="editor.contrib.colorContribution",(0,s.HW)(h.ID,h,2),d.B2.register(a.BJ)},9772:(e,t,i)=>{"use strict";i.d(t,{mn:()=>w,nM:()=>y});var n,s=i(90766),o=i(47661),r=i(64383),a=i(41234),l=i(5662),d=i(78381),h=i(91508),c=i(37734),u=i(31450),g=i(36677),p=i(38361),m=i(32500),f=i(56942),_=i(68310),v=i(84001),b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};const y=Object.create({});let w=n=class extends l.jG{constructor(e,t,i,s){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new l.Cm),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new c.Qn(this._editor),this._decoratorLimitReporter=new S,this._colorDecorationClassRefs=this._register(new l.Cm),this._debounceInformation=s.for(i.colorProvider,"Document Colors",{min:n.RECOMPUTE_TIME}),this._register(e.onDidChangeModel((()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()}))),this._register(e.onDidChangeModelLanguage((()=>this.updateColors()))),this._register(i.colorProvider.onDidChange((()=>this.updateColors()))),this._register(e.onDidChangeConfiguration((e=>{const t=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147);const i=t!==this._isColorDecoratorsEnabled||e.hasChanged(21),n=e.hasChanged(147);(i||n)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())}))),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&"object"===typeof i){const e=i.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(20)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();e&&this._languageFeaturesService.colorProvider.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._timeoutTimer||(this._timeoutTimer=new s.pc,this._timeoutTimer.cancelAndSet((()=>{this._timeoutTimer=null,this.beginCompute()}),this._debounceInformation.get(e)))}))),this.beginCompute())}async beginCompute(){this._computePromise=(0,s.SS)((async e=>{const t=this._editor.getModel();if(!t)return[];const i=new d.W(!1),n=await(0,_.j)(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),n}));try{const e=await this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){(0,r.dz)(e)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map((e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:p.kI.EMPTY})));this._editor.changeDecorations((i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach(((t,i)=>this._colorDatas.set(t,e[i])))}))}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],i=this._editor.getOption(21);for(let s=0;s<e.length&&t.length<i;s++){const{red:i,green:n,blue:r,alpha:a}=e[s].colorInfo.color,l=new o.bU(Math.round(255*i),Math.round(255*n),Math.round(255*r),a),d=`rgba(${l.r}, ${l.g}, ${l.b}, ${l.a})`,c=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:d}));t.push({range:{startLineNumber:e[s].colorInfo.range.startLineNumber,startColumn:e[s].colorInfo.range.startColumn,endLineNumber:e[s].colorInfo.range.endLineNumber,endColumn:e[s].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:h.S8,inlineClassName:`${c.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:y}}})}const n=i<e.length&&i;this._decoratorLimitReporter.update(e.length,n),this._colorDecoratorIds.set(t)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(e){const t=this._editor.getModel();if(!t)return null;const i=t.getDecorationsInRange(g.Q.fromPositions(e,e)).filter((e=>this._colorDatas.has(e.id)));return 0===i.length?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};w.ID="editor.contrib.colorDetector",w.RECOMPUTE_TIME=1e3,w=n=b([C(1,v.pG),C(2,f.u),C(3,m.U)],w);class S{constructor(){this._onDidChange=new a.vl,this._computed=0,this._limited=!1}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}(0,u.HW)(w.ID,w,1)},28712:(e,t,i)=>{"use strict";i.d(t,{BJ:()=>O,WE:()=>F});var n=i(90766),s=i(18447),o=i(47661),r=i(5662),a=i(36677),l=i(68310),d=i(9772),h=i(41234);class c{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new h.vl,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new h.vl,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let n=0;n<this.colorPresentations.length;n++)if(t.toLowerCase()===this.colorPresentations[n].label){i=n;break}if(-1===i){const e=t.split("(")[0].toLowerCase();for(let t=0;t<this.colorPresentations.length;t++)if(this.colorPresentations[t].label.toLowerCase().startsWith(e)){i=t;break}}-1!==i&&i!==this.presentationIndex&&(this.presentationIndex=i,this._onDidChangePresentation.fire(this.presentation))}flushColor(){this._onColorFlushed.fire(this._color)}}var u=i(94106),g=i(8597),p=i(34072),m=i(17390),f=i(10350),_=i(25689),v=(i(53396),i(31629)),b=i(85845),C=i(61394);const y=g.$;class w extends r.jG{constructor(e,t,i,n=!1){super(),this.model=t,this.showingStandaloneColorPicker=n,this._closeButton=null,this._domNode=y(".colorpicker-header"),g.BC(e,this._domNode),this._pickedColorNode=g.BC(this._domNode,y(".picked-color")),g.BC(this._pickedColorNode,y("span.codicon.codicon-color-mode")),this._pickedColorPresentation=g.BC(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");const s=(0,v.kg)("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",s),this._originalColorNode=g.BC(this._domNode,y(".original-color")),this._originalColorNode.style.backgroundColor=o.Q1.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=i.getColorTheme().getColor(b.WfR)||o.Q1.white,this._register(i.onDidColorThemeChange((e=>{this.backgroundColor=e.getColor(b.WfR)||o.Q1.white}))),this._register(g.ko(this._pickedColorNode,g.Bx.CLICK,(()=>this.model.selectNextColorPresentation()))),this._register(g.ko(this._originalColorNode,g.Bx.CLICK,(()=>{this.model.color=this.model.originalColor,this.model.flushColor()}))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=o.Q1.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new S(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=o.Q1.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class S extends r.jG{constructor(e){super(),this._onClicked=this._register(new h.vl),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),g.BC(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),g.BC(this._button,t);g.BC(t,y(".button"+_.L.asCSSSelector((0,C.pU)("color-picker-close",f.W.close,(0,v.kg)("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(g.ko(this._button,g.Bx.CLICK,(()=>{this._onClicked.fire()})))}}class k extends r.jG{constructor(e,t,i,n=!1){super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=y(".colorpicker-body"),g.BC(e,this._domNode),this._saturationBox=new x(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new D(this._domNode,this.model,n),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new E(this._domNode,this.model,n),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),n&&(this._insertButton=this._register(new N(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new o.Q1(new o.$J(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new o.Q1(new o.$J(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=360*(1-e);this.model.color=new o.Q1(new o.$J(360===i?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class x extends r.jG{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this._domNode=y(".saturation-wrap"),g.BC(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",g.BC(this._domNode,this._canvas),this.selection=y(".saturation-selection"),g.BC(this._domNode,this.selection),this.layout(),this._register(g.ko(this._domNode,g.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new p._);const t=g.BK(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangePosition(e.pageX-t.left,e.pageY-t.top)),(()=>null));const i=g.ko(e.target.ownerDocument,g.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)}),!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new o.Q1(new o.$J(e.h,1,1,1)),i=this._canvas.getContext("2d"),n=i.createLinearGradient(0,0,this._canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this._canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=o.Q1.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const t=e.hsva;this.paintSelection(t.s,t.v)}}class L extends r.jG{constructor(e,t,i=!1){super(),this.model=t,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=g.BC(e,y(".standalone-strip")),this.overlay=g.BC(this.domNode,y(".standalone-overlay"))):(this.domNode=g.BC(e,y(".strip")),this.overlay=g.BC(this.domNode,y(".overlay"))),this.slider=g.BC(this.domNode,y(".slider")),this.slider.style.top="0px",this._register(g.ko(this.domNode,g.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){const t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new p._),i=g.BK(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangeTop(e.pageY-i.top)),(()=>null));const n=g.ko(e.target.ownerDocument,g.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")}),!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class D extends L{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);const{r:t,g:i,b:n}=e.rgba,s=new o.Q1(new o.bU(t,i,n,1)),r=new o.Q1(new o.bU(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class E extends L{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class N extends r.jG{constructor(e){super(),this._onClicked=this._register(new h.vl),this.onClicked=this._onClicked.event,this._button=g.BC(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(g.ko(this._button,g.Bx.CLICK,(()=>{this._onClicked.fire()})))}get button(){return this._button}}class T extends m.x{constructor(e,t,i,n,s=!1){super(),this.model=t,this.pixelRatio=i,this._register(u.c.getInstance(g.zk(e)).onDidChange((()=>this.layout())));const o=y(".colorpicker-widget");e.appendChild(o),this.header=this._register(new w(o,this.model,n,s)),this.body=this._register(new k(o,this.model,this.pixelRatio,s))}layout(){this.body.layout()}}var I=i(47612),M=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},A=function(e,t){return function(i,n){t(i,n,e)}};class R{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let O=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,i){return n.AE.fromPromise(this._computeAsync(e,t,i))}async _computeAsync(e,t,i){if(!this._editor.hasModel())return[];const n=d.mn.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const e=n.getColorData(s.range.getStartPosition());if(e){return[await B(this,this._editor.getModel(),e.colorInfo,e.provider)]}}return[]}renderHoverParts(e,t){return W(this,this._editor,this._themeService,t,e)}};O=M([A(1,I.Gy)],O);class P{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n}}let F=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}async createColorHover(e,t,i){if(!this._editor.hasModel())return null;if(!d.mn.get(this._editor))return null;const n=await(0,l.j)(i,this._editor.getModel(),s.X.None);let o=null,r=null;for(const s of n){const t=s.colorInfo;a.Q.containsRange(t.range,e.range)&&(o=t,r=s.provider)}const h=null!==o&&void 0!==o?o:e,c=null!==r&&void 0!==r?r:t,u=!!o;return{colorHover:await B(this,this._editor.getModel(),h,c),foundInEditor:u}}async updateEditorModel(e){if(!this._editor.hasModel())return;const t=e.model;let i=new a.Q(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(await H(this._editor.getModel(),t,this._color,i,e),i=V(this._editor,i,t))}renderHoverParts(e,t){return W(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};async function B(e,t,i,n){const r=t.getValueInRange(i.range),{red:d,green:h,blue:u,alpha:g}=i.color,p=new o.bU(Math.round(255*d),Math.round(255*h),Math.round(255*u),g),m=new o.Q1(p),f=await(0,l.R)(t,i,n,s.X.None),_=new c(m,[],0);return _.colorPresentations=f||[],_.guessColorPresentation(m,r),e instanceof O?new R(e,a.Q.lift(i.range),_,n):new P(e,a.Q.lift(i.range),_,n)}function W(e,t,i,n,s){if(0===n.length||!t.hasModel())return r.jG.None;if(s.setMinimumDimensions){const e=t.getOption(67)+8;s.setMinimumDimensions(new g.fg(302,e))}const o=new r.Cm,l=n[0],d=t.getModel(),h=l.model,c=o.add(new T(s.fragment,h,t.getOption(143),i,e instanceof F));s.setColorPicker(c);let u=!1,p=new a.Q(l.range.startLineNumber,l.range.startColumn,l.range.endLineNumber,l.range.endColumn);if(e instanceof F){const t=n[0].model.color;e.color=t,H(d,h,t,p,l),o.add(h.onColorFlushed((t=>{e.color=t})))}else o.add(h.onColorFlushed((async e=>{await H(d,h,e,p,l),u=!0,p=V(t,p,h)})));return o.add(h.onDidChangeColor((e=>{H(d,h,e,p,l)}))),o.add(t.onDidChangeModelContent((e=>{u?u=!1:(s.hide(),t.focus())}))),o}function V(e,t,i){var n,s;const o=[],r=null!==(n=i.presentation.textEdit)&&void 0!==n?n:{range:t,text:i.presentation.label,forceMoveMarkers:!1};o.push(r),i.presentation.additionalTextEdits&&o.push(...i.presentation.additionalTextEdits);const l=a.Q.lift(r.range),d=e.getModel()._setTrackedRange(null,l,3);return e.executeEdits("colorpicker",o),e.pushUndoStop(),null!==(s=e.getModel()._getTrackedRange(d))&&void 0!==s?s:l}async function H(e,t,i,n,o){const r=await(0,l.R)(e,{range:n,color:{red:i.rgba.r/255,green:i.rgba.g/255,blue:i.rgba.b/255,alpha:i.rgba.a}},o.provider,s.X.None);t.colorPresentations=r||[]}F=M([A(1,I.Gy)],F)},52363:(e,t,i)=>{"use strict";i.d(t,{L:()=>u});var n=i(47661),s=i(14011),o=i(23750),r=i(17469),a=i(5662),l=i(56942),d=i(72466),h=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},c=function(e,t){return function(i,n){t(i,n,e)}};class u{constructor(e,t){this._editorWorkerClient=new s.Z6(e,!1,"editorWorkerService",t)}async provideDocumentColors(e,t){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)}provideColorPresentations(e,t,i){const s=t.range,o=t.color,r=o.alpha,a=new n.Q1(new n.bU(Math.round(255*o.red),Math.round(255*o.green),Math.round(255*o.blue),r)),l=r?n.Q1.Format.CSS.formatRGB(a):n.Q1.Format.CSS.formatRGBA(a),d=r?n.Q1.Format.CSS.formatHSL(a):n.Q1.Format.CSS.formatHSLA(a),h=r?n.Q1.Format.CSS.formatHex(a):n.Q1.Format.CSS.formatHexA(a),c=[];return c.push({label:l,textEdit:{range:s,text:l}}),c.push({label:d,textEdit:{range:s,text:d}}),c.push({label:h,textEdit:{range:s,text:h}}),c}}let g=class extends a.jG{constructor(e,t,i){super(),this._register(i.colorProvider.register("*",new u(e,t)))}};g=h([c(0,o.S),c(1,r.JZ),c(2,l.u)],g),(0,d.x)(g)},99822:(e,t,i)=>{"use strict";var n,s,o=i(31450),r=i(31629),a=i(5662),l=i(28712),d=i(63591),h=i(90109),c=i(98031),u=i(41234),g=i(56942),p=i(60002),m=i(32848),f=i(23750),_=i(17469),v=i(52363),b=i(8597),C=(i(53396),function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}),y=function(e,t){return function(i,n){t(i,n,e)}};let w=n=class extends a.jG{constructor(e,t,i,n,s,o,r){super(),this._editor=e,this._modelService=i,this._keybindingService=n,this._instantiationService=s,this._languageFeatureService=o,this._languageConfigurationService=r,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=p.R.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=p.R.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){var e;this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||null===(e=this._standaloneColorPickerWidget)||void 0===e||e.focus():this._standaloneColorPickerWidget=new S(this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused,this._instantiationService,this._modelService,this._keybindingService,this._languageFeatureService,this._languageConfigurationService))}hide(){var e;this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),null===(e=this._standaloneColorPickerWidget)||void 0===e||e.hide(),this._editor.focus()}insertColor(){var e;null===(e=this._standaloneColorPickerWidget)||void 0===e||e.updateEditor(),this.hide()}static get(e){return e.getContribution(n.ID)}};w.ID="editor.contrib.standaloneColorPickerController",w=n=C([y(1,m.fN),y(2,f.S),y(3,c.b),y(4,d._Y),y(5,g.u),y(6,_.JZ)],w),(0,o.HW)(w.ID,w,1);let S=s=class extends a.jG{constructor(e,t,i,n,s,o,r,a){var d;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._modelService=s,this._keybindingService=o,this._languageFeaturesService=r,this._languageConfigurationService=a,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new u.vl),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=n.createInstance(l.WE,this._editor),this._position=null===(d=this._editor._getViewModel())||void 0===d?void 0:d.getPrimaryCursorState().modelState.position;const h=this._editor.getSelection(),c=h?{startLineNumber:h.startLineNumber,startColumn:h.startColumn,endLineNumber:h.endLineNumber,endColumn:h.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},g=this._register(b.w5(this._body));this._register(g.onDidBlur((e=>{this.hide()}))),this._register(g.onDidFocus((e=>{this.focus()}))),this._register(this._editor.onDidChangeCursorPosition((()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()}))),this._register(this._editor.onMouseMove((e=>{var t;const i=null===(t=e.target.element)||void 0===t?void 0:t.classList;i&&i.contains("colorpicker-color-decoration")&&this.hide()}))),this._register(this.onResult((e=>{this._render(e.value,e.foundInEditor)}))),this._start(c),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return s.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(e){const t=await this._computeAsync(e);t&&this._onResult.fire(new k(t.result,t.foundInEditor))}async _computeAsync(e){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},i=await this._standaloneColorPickerParticipant.createColorHover(t,new v.L(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return i?{result:i.colorHover,foundInEditor:i.foundInEditor}:null}_render(e,t){const i=document.createDocumentFragment();let n;const s={fragment:i,statusBar:this._register(new h.L9(this._keybindingService)),setColorPicker:e=>n=e,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=e,this._register(this._standaloneColorPickerParticipant.renderHoverParts(s,[e])),void 0===n)return;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px",this._body.tabIndex=0,this._body.appendChild(i),n.layout();const o=n.body,r=o.saturationBox.domNode.clientWidth,a=o.domNode.clientWidth-r-22-8,l=n.body.enterButton;null===l||void 0===l||l.onClicked((()=>{this.updateEditor(),this.hide()}));const d=n.header;d.pickedColorNode.style.width=r+8+"px";d.originalColorNode.style.width=a+"px";const c=n.header.closeButton;null===c||void 0===c||c.onClicked((()=>{this.hide()})),t&&(l&&(l.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};S.ID="editor.contrib.standaloneColorPickerWidget",S=s=C([y(3,d._Y),y(4,f.S),y(5,c.b),y(6,g.u),y(7,_.JZ)],S);class k{constructor(e,t){this.value=e,this.foundInEditor=t}}var x=i(27195);class L extends o.qO{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...(0,r.aS)("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:(0,r.kg)({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:x.D8.CommandPalette}]})}runEditorCommand(e,t){var i;null===(i=w.get(t))||void 0===i||i.showOrFocus()}}class D extends o.ks{constructor(){super({id:"editor.action.hideColorPicker",label:(0,r.kg)({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:p.R.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100}})}run(e,t){var i;null===(i=w.get(t))||void 0===i||i.hide()}}class E extends o.ks{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:(0,r.kg)({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:p.R.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100}})}run(e,t){var i;null===(i=w.get(t))||void 0===i||i.insertColor()}}(0,o.Fl)(D),(0,o.Fl)(E),(0,x.ug)(L)},40142:(e,t,i)=>{"use strict";var n=i(24939),s=i(31450),o=i(36677),r=i(60002),a=i(17469),l=i(7085),d=i(83069),h=i(75326);class c{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const n=t.length;if(i+n>e.length)return!1;for(let s=0;s<n;s++){const n=e.charCodeAt(i+s),o=t.charCodeAt(s);if(n!==o&&(!(n>=65&&n<=90&&n+32===o)&&!(o>=65&&o<=90&&o+32===n)))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,s,r){const a=e.startLineNumber,l=e.startColumn,d=e.endLineNumber,h=e.endColumn,u=s.getLineContent(a),g=s.getLineContent(d);let p,m=u.lastIndexOf(t,l-1+t.length),f=g.indexOf(i,h-1-i.length);if(-1!==m&&-1!==f)if(a===d){u.substring(m+t.length,f).indexOf(i)>=0&&(m=-1,f=-1)}else{const e=u.substring(m+t.length),n=g.substring(0,f);(e.indexOf(i)>=0||n.indexOf(i)>=0)&&(m=-1,f=-1)}-1!==m&&-1!==f?(n&&m+t.length<u.length&&32===u.charCodeAt(m+t.length)&&(t+=" "),n&&f>0&&32===g.charCodeAt(f-1)&&(i=" "+i,f-=1),p=c._createRemoveBlockCommentOperations(new o.Q(a,m+t.length+1,d,f+1),t,i)):(p=c._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===p.length?i:null);for(const o of p)r.addTrackedEditOperation(o.range,o.text)}static _createRemoveBlockCommentOperations(e,t,i){const n=[];return o.Q.isEmpty(e)?n.push(l.k.delete(new o.Q(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(l.k.delete(new o.Q(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(l.k.delete(new o.Q(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){const s=[];return o.Q.isEmpty(e)?s.push(l.k.replace(new o.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(s.push(l.k.insert(new d.y(e.startLineNumber,e.startColumn),t+(n?" ":""))),s.push(l.k.insert(new d.y(e.endLineNumber,e.endColumn),(n?" ":"")+i))),s}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const s=e.getLanguageIdAtPosition(i,n),o=this.languageConfigurationService.getLanguageConfiguration(s).comments;o&&o.blockCommentStartToken&&o.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,o.blockCommentStartToken,o.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2===i.length){const e=i[0],t=i[1];return new h.L(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=i[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new h.L(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}var u=i(91508);class g{constructor(e,t,i,n,s,o,r){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=n,this._insertSpace=s,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=o,this._ignoreFirstLine=r||!1}static _gatherPreflightCommentStrings(e,t,i,n){e.tokenization.tokenizeIfCheap(t);const s=e.getLanguageIdAtPosition(t,1),o=n.getLanguageConfiguration(s).comments,r=o?o.lineCommentToken:null;if(!r)return null;const a=[];for(let l=0,d=i-t+1;l<d;l++)a[l]={ignore:!1,commentStr:r,commentStrOffset:0,commentStrLength:r.length};return a}static _analyzeLines(e,t,i,n,s,o,r,a){let l,d=!0;l=0===e||1!==e;for(let h=0,g=n.length;h<g;h++){const a=n[h],g=s+h;if(g===s&&r){a.ignore=!0;continue}const p=i.getLineContent(g),m=u.HG(p);if(-1!==m){if(d=!1,a.ignore=!1,a.commentStrOffset=m,l&&!c._haystackHasNeedleAtOffset(p,a.commentStr,m)&&(0===e?l=!1:1===e||(a.ignore=!0)),l&&t){const e=m+a.commentStrLength;e<p.length&&32===p.charCodeAt(e)&&(a.commentStrLength+=1)}}else a.ignore=o,a.commentStrOffset=p.length}if(0===e&&d){l=!1;for(let e=0,t=n.length;e<t;e++)n[e].ignore=!1}return{supported:!0,shouldRemoveComments:l,lines:n}}static _gatherPreflightData(e,t,i,n,s,o,r,a){const l=g._gatherPreflightCommentStrings(i,n,s,a);return null===l?{supported:!1}:g._analyzeLines(e,t,i,l,n,o,r,a)}_executeLineComments(e,t,i,n){let s;i.shouldRemoveComments?s=g._createRemoveLineCommentsOperations(i.lines,n.startLineNumber):(g._normalizeInsertionPoint(e,i.lines,n.startLineNumber,this._indentSize),s=this._createAddLineCommentsOperations(i.lines,n.startLineNumber));const r=new d.y(n.positionLineNumber,n.positionColumn);for(let a=0,l=s.length;a<l;a++)if(t.addEditOperation(s[a].range,s[a].text),o.Q.isEmpty(s[a].range)&&o.Q.getStartPosition(s[a].range).equals(r)){e.getLineContent(r.lineNumber).length+1===r.column&&(this._deltaColumn=(s[a].text||"").length)}this._selectionId=t.trackSelection(n)}_attemptRemoveBlockComment(e,t,i,n){let s=t.startLineNumber,r=t.endLineNumber;const a=n.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn);let l=e.getLineContent(s).lastIndexOf(i,a-1),d=e.getLineContent(r).indexOf(n,t.endColumn-1-i.length);return-1!==l&&-1===d&&(d=e.getLineContent(s).indexOf(n,l+i.length),r=s),-1===l&&-1!==d&&(l=e.getLineContent(r).lastIndexOf(i,d),s=r),!t.isEmpty()||-1!==l&&-1!==d||(l=e.getLineContent(s).indexOf(i),-1!==l&&(d=e.getLineContent(s).indexOf(n,l+i.length))),-1!==l&&32===e.getLineContent(s).charCodeAt(l+i.length)&&(i+=" "),-1!==d&&32===e.getLineContent(r).charCodeAt(d-1)&&(n=" "+n,d-=1),-1!==l&&-1!==d?c._createRemoveBlockCommentOperations(new o.Q(s,l+i.length+1,r,d+1),i,n):null}_executeBlockComment(e,t,i){e.tokenization.tokenizeIfCheap(i.startLineNumber);const n=e.getLanguageIdAtPosition(i.startLineNumber,1),s=this.languageConfigurationService.getLanguageConfiguration(n).comments;if(!s||!s.blockCommentStartToken||!s.blockCommentEndToken)return;const r=s.blockCommentStartToken,a=s.blockCommentEndToken;let l=this._attemptRemoveBlockComment(e,i,r,a);if(!l){if(i.isEmpty()){const t=e.getLineContent(i.startLineNumber);let n=u.HG(t);-1===n&&(n=t.length),l=c._createAddBlockCommentOperations(new o.Q(i.startLineNumber,n+1,i.startLineNumber,t.length+1),r,a,this._insertSpace)}else l=c._createAddBlockCommentOperations(new o.Q(i.startLineNumber,e.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),r,a,this._insertSpace);1===l.length&&(this._deltaColumn=r.length+1)}this._selectionId=t.trackSelection(i);for(const o of l)t.addEditOperation(o.range,o.text)}getEditOperations(e,t){let i=this._selection;if(this._moveEndPositionDown=!1,i.startLineNumber===i.endLineNumber&&this._ignoreFirstLine)return t.addEditOperation(new o.Q(i.startLineNumber,e.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===e.getLineCount()?"":"\n"),void(this._selectionId=t.trackSelection(i));i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const n=g._gatherPreflightData(this._type,this._insertSpace,e,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return n.supported?this._executeLineComments(e,t,n,i):this._executeBlockComment(e,t,i)}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new h.L(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){const i=[];for(let n=0,s=e.length;n<s;n++){const s=e[n];s.ignore||i.push(l.k.delete(new o.Q(t+n,s.commentStrOffset+1,t+n,s.commentStrOffset+s.commentStrLength+1)))}return i}_createAddLineCommentsOperations(e,t){const i=[],n=this._insertSpace?" ":"";for(let s=0,o=e.length;s<o;s++){const o=e[s];o.ignore||i.push(l.k.insert(new d.y(t+s,o.commentStrOffset+1),o.commentStr+n))}return i}static nextVisibleColumn(e,t,i,n){return i?e+(t-e%t):e+n}static _normalizeInsertionPoint(e,t,i,n){let s,o,r=1073741824;for(let a=0,l=t.length;a<l;a++){if(t[a].ignore)continue;const s=e.getLineContent(i+a);let o=0;for(let e=0,i=t[a].commentStrOffset;o<r&&e<i;e++)o=g.nextVisibleColumn(o,n,9===s.charCodeAt(e),1);o<r&&(r=o)}r=Math.floor(r/n)*n;for(let a=0,l=t.length;a<l;a++){if(t[a].ignore)continue;const l=e.getLineContent(i+a);let d=0;for(s=0,o=t[a].commentStrOffset;d<r&&s<o;s++)d=g.nextVisibleColumn(d,n,9===l.charCodeAt(s),1);t[a].commentStrOffset=d>r?s-1:s}}}var p=i(31629),m=i(27195);class f extends s.ks{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(a.JZ);if(!t.hasModel())return;const n=[],s=t.getModel().getOptions(),r=t.getOption(23),l=t.getSelections().map(((e,t)=>({selection:e,index:t,ignoreFirstLine:!1})));l.sort(((e,t)=>o.Q.compareRangesUsingStarts(e.selection,t.selection)));let d=l[0];for(let o=1;o<l.length;o++){const e=l[o];d.selection.endLineNumber===e.selection.startLineNumber&&(d.index<e.index?e.ignoreFirstLine=!0:(d.ignoreFirstLine=!0,d=e))}for(const o of l)n.push(new g(i,o.selection,s.indentSize,this._type,r.insertSpace,r.ignoreEmptyLines,o.ignoreFirstLine));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class _ extends s.ks{constructor(){super({id:"editor.action.blockComment",label:p.kg("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:r.R.writable,kbOpts:{kbExpr:r.R.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:m.D8.MenubarEditMenu,group:"5_insert",title:p.kg({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){const i=e.get(a.JZ);if(!t.hasModel())return;const n=t.getOption(23),s=[],o=t.getSelections();for(const r of o)s.push(new c(r,n.insertSpace,i));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}(0,s.Fl)(class extends f{constructor(){super(0,{id:"editor.action.commentLine",label:p.kg("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:r.R.writable,kbOpts:{kbExpr:r.R.editorTextFocus,primary:2138,weight:100},menuOpts:{menuId:m.D8.MenubarEditMenu,group:"5_insert",title:p.kg({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}),(0,s.Fl)(class extends f{constructor(){super(1,{id:"editor.action.addCommentLine",label:p.kg("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:r.R.writable,kbOpts:{kbExpr:r.R.editorTextFocus,primary:(0,n.m5)(2089,2081),weight:100}})}}),(0,s.Fl)(class extends f{constructor(){super(2,{id:"editor.action.removeCommentLine",label:p.kg("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:r.R.writable,kbOpts:{kbExpr:r.R.editorTextFocus,primary:(0,n.m5)(2089,2099),weight:100}})}}),(0,s.Fl)(_)},18864:(e,t,i)=>{"use strict";var n,s=i(8597),o=i(5646),r=i(36921),a=i(5662),l=i(98067),d=i(31450),h=i(60002),c=i(31629),u=i(27195),g=i(32848),p=i(47508),m=i(98031),f=i(84001),_=i(37227),v=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},b=function(e,t){return function(i,n){t(i,n,e)}};let C=n=class{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,n,o,r,l,d){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=o,this._menuService=r,this._configurationService=l,this._workspaceContextService=d,this._toDispose=new a.Cm,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((e=>this._onContextMenu(e)))),this._toDispose.add(this._editor.onMouseWheel((e=>{if(this._contextMenuIsBeingShownCount>0){const t=this._contextViewService.getContextViewElement(),i=e.srcElement;i.shadowRoot&&s.jG(t)===i.shadowRoot||this._contextViewService.hideContextView()}}))),this._toDispose.add(this._editor.onKeyDown((e=>{this._editor.getOption(24)&&58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())})))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(24))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12===e.target.type)return;if(6===e.target.type&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),11===e.target.type)return this._showScrollbarContextMenu(e.event);if(6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(const i of this._editor.getSelections())if(i.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(24))return;if(!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?u.D8.SimpleEditorContext:u.D8.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),s=n.getActions({arg:e.uri});n.dispose();for(const o of s){const[,t]=o;let n=0;for(const s of t)if(s instanceof u.nI){const t=this._getMenuActions(e,s.item.submenu);t.length>0&&(i.push(new r.YH(s.id,s.label,t)),n++)}else i.push(s),n++;n&&i.push(new r.wv)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let n=t;if(!n){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),t=s.BK(this._editor.getDomNode()),i=t.left+e.left,o=t.top+e.top+e.height;n={x:i,y:o}}const r=this._editor.getOption(127)&&!l.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:r?this._editor.getDomNode():void 0,getAnchor:()=>n,getActions:()=>e,getActionViewItem:e=>{const t=this._keybindingFor(e);if(t)return new o.Z4(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});const i=e;return"function"===typeof i.getActionViewItem?i.getActionViewItem():new o.Z4(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;if((0,_.ct)(this._workspaceContextService.getWorkspace()))return;const t=this._editor.getOption(73);let i=0;const n=e=>({id:"menu-action-"+ ++i,label:e.label,tooltip:"",class:void 0,enabled:"undefined"===typeof e.enabled||e.enabled,checked:e.checked,run:e.run}),s=(e,t,s,o,a)=>{if(!t)return n({label:e,enabled:t,run:()=>{}});const l=e=>()=>{this._configurationService.updateValue(s,e)},d=[];for(const i of a)d.push(n({label:i.label,checked:o===i.value,run:l(i.value)}));return((e,t)=>new r.YH("menu-action-"+ ++i,e,t,void 0))(e,d)},o=[];o.push(n({label:c.kg("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),o.push(new r.wv),o.push(n({label:c.kg("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),o.push(s(c.kg("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:c.kg("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:c.kg("context.minimap.size.fill","Fill"),value:"fill"},{label:c.kg("context.minimap.size.fit","Fit"),value:"fit"}])),o.push(s(c.kg("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:c.kg("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:c.kg("context.minimap.slider.always","Always"),value:"always"}]));const a=this._editor.getOption(127)&&!l.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:a?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>o,onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};C.ID="editor.contrib.contextmenu",C=n=v([b(1,p.Z),b(2,p.l),b(3,g.fN),b(4,m.b),b(5,u.ez),b(6,f.pG),b(7,_.VR)],C);class y extends d.ks{constructor(){super({id:"editor.action.showContextMenu",label:c.kg("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:h.R.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;null===(i=C.get(t))||void 0===i||i.showContextMenu()}}(0,d.HW)(C.ID,C,2),(0,d.Fl)(y)},32516:(e,t,i)=>{"use strict";var n=i(5662),s=i(31450),o=i(60002),r=i(31629);class a{constructor(e){this.selections=e}equals(e){const t=this.selections.length;if(t!==e.selections.length)return!1;for(let i=0;i<t;i++)if(!this.selections[i].equalsSelection(e.selections[i]))return!1;return!0}}class l{constructor(e,t,i){this.cursorState=e,this.scrollTop=t,this.scrollLeft=i}}class d extends n.jG{static get(e){return e.getContribution(d.ID)}constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeModelContent((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeCursorSelection((t=>{if(this._isCursorUndoRedo)return;if(!t.oldSelections)return;if(t.oldModelVersionId!==t.modelVersionId)return;const i=new a(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new l(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())})))}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}d.ID="editor.contrib.cursorUndoRedoController";class h extends s.ks{constructor(){super({id:"cursorUndo",label:r.kg("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;null===(n=d.get(t))||void 0===n||n.cursorUndo()}}class c extends s.ks{constructor(){super({id:"cursorRedo",label:r.kg("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;null===(n=d.get(t))||void 0===n||n.cursorRedo()}}(0,s.HW)(d.ID,d,0),(0,s.Fl)(h),(0,s.Fl)(c)},40800:(e,t,i)=>{"use strict";var n=i(25890),s=i(99938),o=i(34309),r=i(90568),a=i(56942),l=i(29999),d=i(5662),h=i(41234),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},u=function(e,t){return function(i,n){t(i,n,e)}};let g=class extends d.jG{constructor(e,t,i){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=i,this._currentModel=(0,s.FY)(this,void 0);const n=(0,s.yQ)("documentSymbolProvider.onDidChange",this._languageFeaturesService.documentSymbolProvider.onDidChange),o=(0,s.yQ)("_textModel.onDidChangeContent",h.Jh.debounce((e=>this._textModel.onDidChangeContent(e)),(()=>{}),100));this._register((0,s.yC)((async(e,t)=>{n.read(e),o.read(e);const i=t.add(new r.MZ),s=await this._outlineModelService.getOrCreate(this._textModel,i.token);t.isDisposed||this._currentModel.set(s,void 0)})))}getBreadcrumbItems(e,t){const i=this._currentModel.read(t);if(!i)return[];const s=i.asListOfDocumentSymbols().filter((t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber)));return s.sort((0,n.Hw)((0,n.VE)((e=>e.range.endLineNumber-e.range.startLineNumber),n.U9))),s.map((e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber})))}};g=c([u(1,a.u),u(2,l.gW)],g),o.N.setBreadcrumbsSourceFactory(((e,t)=>t.createInstance(g,e)))},2183:(e,t,i)=>{"use strict";var n=i(5662),s=i(98067),o=i(31450),r=i(83069),a=i(36677),l=i(75326),d=i(38361);class h{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a.Q(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new l.L(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new l.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new l.L(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new l.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new l.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection}computeCursorState(e,t){return this.targetSelection}}function c(e){return s.zx?e.altKey:e.ctrlKey}class u extends n.jG{constructor(e){super(),this._editor=e,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(e)))),this._register(this._editor.onMouseDrag((e=>this._onEditorMouseDrag(e)))),this._register(this._editor.onMouseDrop((e=>this._onEditorMouseDrop(e)))),this._register(this._editor.onMouseDropCanceled((()=>this._onEditorMouseDropCanceled()))),this._register(this._editor.onKeyDown((e=>this.onEditorKeyDown(e)))),this._register(this._editor.onKeyUp((e=>this.onEditorKeyUp(e)))),this._register(this._editor.onDidBlurEditorWidget((()=>this.onEditorBlur()))),this._register(this._editor.onDidBlurEditorText((()=>this.onEditorBlur()))),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(c(e)&&(this._modifierPressed=!0),this._mouseDown&&c(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(c(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===u.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(null===this._dragSelection){const e=(this._editor.getSelections()||[]).filter((e=>t.position&&e.containsPosition(t.position)));if(1!==e.length)return;this._dragSelection=e[0]}c(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new r.y(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let i=null;if(e.event.shiftKey){const e=this._editor.getSelection();if(e){const{selectionStartLineNumber:n,selectionStartColumn:s}=e;i=[new l.L(n,s,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map((e=>e.containsPosition(t)?new l.L(t.lineNumber,t.column,t.lineNumber,t.column):e));this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(c(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(u.ID,new h(this._dragSelection,t,c(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new a.Q(e.lineNumber,e.column,e.lineNumber,e.column),options:u._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}u.ID="editor.contrib.dragAndDrop",u.TRIGGER_KEY_VALUE=s.zx?6:5,u._DECORATION_OPTIONS=d.kI.register({description:"dnd-target",className:"dnd-target"}),(0,o.HW)(u.ID,u,2)},58568:(e,t,i)=>{"use strict";var n=i(18447),s=i(631),o=i(79400),r=i(18938),a=i(29999);i(50091).w.registerCommand("_executeDocumentSymbolProvider",(async function(e,...t){const[i]=t;(0,s.j)(o.r.isUri(i));const l=e.get(a.gW),d=e.get(r.b),h=await d.createModelReference(i);try{return(await l.getOrCreate(h.object.textEditorModel,n.X.None)).getTopLevelSymbols()}finally{h.dispose()}}))},29999:(e,t,i)=>{"use strict";i.d(t,{LC:()=>b,e0:()=>C,gW:()=>w,i9:()=>y});var n=i(25890),s=i(18447),o=i(64383),r=i(42522),a=i(74320),l=i(83069),d=i(36677),h=i(32500),c=i(63591),u=i(14718),g=i(23750),p=i(5662),m=i(56942),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};class v{remove(){var e;null===(e=this.parent)||void 0===e||e.children.delete(this.id)}static findId(e,t){let i;"string"===typeof e?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,void 0!==t.children.get(i)&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let n=i;for(let s=0;void 0!==t.children.get(n);s++)n=`${i}_${s}`;return n}static empty(e){return 0===e.children.size}}class b extends v{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class C extends v{constructor(e,t,i,n){super(),this.id=e,this.parent=t,this.label=i,this.order=n,this.children=new Map}}class y extends v{static create(e,t,i){const r=new s.Q(i),a=new y(t.uri),l=e.ordered(t),d=l.map(((e,i)=>{var n;const s=v.findId(`provider_${i}`,a),l=new C(s,a,null!==(n=e.displayName)&&void 0!==n?n:"Unknown Outline Provider",i);return Promise.resolve(e.provideDocumentSymbols(t,r.token)).then((e=>{for(const t of e||[])y._makeOutlineElement(t,l);return l}),(e=>((0,o.M_)(e),l))).then((e=>{v.empty(e)?e.remove():a._groups.set(s,e)}))})),h=e.onDidChange((()=>{const i=e.ordered(t);(0,n.aI)(i,l)||r.cancel()}));return Promise.all(d).then((()=>r.token.isCancellationRequested&&!i.isCancellationRequested?y.create(e,t,i):a._compact())).finally((()=>{r.dispose(),h.dispose(),r.dispose()}))}static _makeOutlineElement(e,t){const i=v.findId(e,t),n=new b(i,t,e);if(e.children)for(const s of e.children)y._makeOutlineElement(s,n);t.children.set(n.id,n)}constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let e=0;for(const[t,i]of this._groups)0===i.children.size?this._groups.delete(t):e+=1;if(1!==e)this.children=this._groups;else{const e=r.f.first(this._groups.values());for(const[,t]of e.children)t.parent=this,this.children.set(t.id,t)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof b?e.push(t.symbol):e.push(...r.f.map(t.children.values(),(e=>e.symbol)));return e.sort(((e,t)=>d.Q.compareRangesUsingStarts(e.range,t.range)))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return y._flattenDocumentSymbols(t,e,""),t.sort(((e,t)=>l.y.compare(d.Q.getStartPosition(e.range),d.Q.getStartPosition(t.range))||l.y.compare(d.Q.getEndPosition(t.range),d.Q.getEndPosition(e.range))))}static _flattenDocumentSymbols(e,t,i){for(const n of t)e.push({kind:n.kind,tags:n.tags,name:n.name,detail:n.detail,containerName:n.containerName||i,range:n.range,selectionRange:n.selectionRange,children:void 0}),n.children&&y._flattenDocumentSymbols(e,n.children,n.name)}}const w=(0,c.u1)("IOutlineModelService");let S=class{constructor(e,t,i){this._languageFeaturesService=e,this._disposables=new p.Cm,this._cache=new a.qK(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved((e=>{this._cache.delete(e.id)})))}dispose(){this._disposables.dispose()}async getOrCreate(e,t){const i=this._languageFeaturesService.documentSymbolProvider,o=i.ordered(e);let r=this._cache.get(e.id);if(!r||r.versionId!==e.getVersionId()||!(0,n.aI)(r.provider,o)){const t=new s.Q;r={versionId:e.getVersionId(),provider:o,promiseCnt:0,source:t,promise:y.create(i,e,t.token),model:void 0},this._cache.set(e.id,r);const n=Date.now();r.promise.then((t=>{r.model=t,this._debounceInformation.update(e,Date.now()-n)})).catch((t=>{this._cache.delete(e.id)}))}if(r.model)return r.model;r.promiseCnt+=1;const a=t.onCancellationRequested((()=>{0===--r.promiseCnt&&(r.source.cancel(),this._cache.delete(e.id))}));try{return await r.promise}finally{a.dispose()}}};S=f([_(0,m.u),_(1,h.U),_(2,g.S)],S),(0,u.v)(w,S,1)},63867:(e,t,i)=>{"use strict";var n,s=i(8995),o=i(31450),r=i(60002),a=i(72466),l=i(55433),d=i(90208),h=i(31629);(0,o.HW)(l.Rj.ID,l.Rj,0),(0,a.x)(d.L9),(0,o.E_)(new class extends o.DX{constructor(){super({id:l.qs,precondition:l.lr,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t){var i;return null===(i=l.Rj.get(t))||void 0===i?void 0:i.changePasteType()}}),(0,o.E_)(new class extends o.DX{constructor(){super({id:"editor.hidePasteWidget",precondition:l.lr,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t){var i;null===(i=l.Rj.get(t))||void 0===i||i.clearWidgets()}}),(0,o.Fl)(((n=class extends o.ks{constructor(){super({id:"editor.action.pasteAs",label:h.kg("pasteAs","Paste As..."),alias:"Paste As...",precondition:r.R.writable,metadata:{description:"Paste as",args:[{name:"args",schema:n.argsSchema}]}})}run(e,t,i){var n;let o="string"===typeof(null===i||void 0===i?void 0:i.kind)?i.kind:void 0;return!o&&i&&(o="string"===typeof i.id?i.id:void 0),null===(n=l.Rj.get(t))||void 0===n?void 0:n.pasteAs(o?new s.k(o):void 0)}}).argsSchema={type:"object",properties:{kind:{type:"string",description:h.kg("pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}},n)),(0,o.Fl)(class extends o.ks{constructor(){super({id:"editor.action.pasteAsText",label:h.kg("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:r.R.writable})}run(e,t){var i;return null===(i=l.Rj.get(t))||void 0===i?void 0:i.pasteAs({providerId:d.LR.id})}})},55433:(e,t,i)=>{"use strict";i.d(t,{Rj:()=>P,lr:()=>R,qs:()=>A});var n,s=i(8597),o=i(25890),r=i(90766),a=i(17799),l=i(8995),d=i(5662),h=i(44320),c=i(98067),u=i(58255),g=i(68792),p=i(85411),m=i(80537),f=i(36677),_=i(62083),v=i(56942),b=i(90208),C=i(85541),y=i(50868),w=i(9948),S=i(99645),k=i(31629),x=i(54770),L=i(32848),D=i(63591),E=i(73823),N=i(51467),T=i(56687),I=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},M=function(e,t){return function(i,n){t(i,n,e)}};const A="editor.changePasteType",R=new L.N1("pasteWidgetVisible",!1,(0,k.kg)("pasteWidgetVisible","Whether the paste widget is showing")),O="application/vnd.code.copyMetadata";let P=n=class extends d.jG{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,n,o,r,a){super(),this._bulkEditService=i,this._clipboardService=n,this._languageFeaturesService=o,this._quickInputService=r,this._progressService=a,this._editor=e;const l=e.getContainerDomNode();this._register((0,s.ko)(l,"copy",(e=>this.handleCopy(e)))),this._register((0,s.ko)(l,"cut",(e=>this.handleCopy(e)))),this._register((0,s.ko)(l,"paste",(e=>this.handlePaste(e)),!0)),this._pasteProgressManager=this._register(new w.I("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(T.G,"pasteIntoEditor",e,R,{id:A,label:(0,k.kg)("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferred:e},(0,s.a)().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled&&!this._editor.getOption(91)}async finishedPaste(){await this._currentPasteOperation}handleCopy(e){var t,i;if(!this._editor.hasTextFocus())return;if(c.HZ&&this._clipboardService.writeResources([]),!e.clipboardData||!this.isPasteAsEnabled())return;const s=this._editor.getModel(),a=this._editor.getSelections();if(!s||!(null===a||void 0===a?void 0:a.length))return;const l=this._editor.getOption(37);let d=a;const h=1===a.length&&a[0].isEmpty();if(h){if(!l)return;d=[new f.Q(d[0].startLineNumber,1,d[0].startLineNumber,1+s.getLineLength(d[0].startLineNumber))]}const g=null===(t=this._editor._getViewModel())||void 0===t?void 0:t.getPlainTextToCopy(a,l,c.uF),m={multicursorText:Array.isArray(g)?g:null,pasteOnNewLine:h,mode:null},_=this._languageFeaturesService.documentPasteEditProvider.ordered(s).filter((e=>!!e.prepareDocumentPaste));if(!_.length)return void this.setCopyMetadata(e.clipboardData,{defaultPastePayload:m});const v=(0,p.q)(e.clipboardData),b=_.flatMap((e=>{var t;return null!==(t=e.copyMimeTypes)&&void 0!==t?t:[]})),C=(0,u.b)();this.setCopyMetadata(e.clipboardData,{id:C,providerCopyMimeTypes:b,defaultPastePayload:m});const y=(0,r.SS)((async e=>{const t=(0,o.Yc)(await Promise.all(_.map((async t=>{try{return await t.prepareDocumentPaste(s,d,v,e)}catch(i){return void console.error(i)}}))));t.reverse();for(const i of t)for(const[e,t]of i)v.replace(e,t);return v}));null===(i=n._currentCopyOperation)||void 0===i||i.dataTransferPromise.cancel(),n._currentCopyOperation={handle:C,dataTransferPromise:y}}async handlePaste(e){var t,i,n,s;if(!e.clipboardData||!this._editor.hasTextFocus())return;null===(t=S.k.get(this._editor))||void 0===t||t.closeMessage(),null===(i=this._currentPasteOperation)||void 0===i||i.cancel(),this._currentPasteOperation=void 0;const o=this._editor.getModel(),r=this._editor.getSelections();if(!(null===r||void 0===r?void 0:r.length)||!o)return;if(!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const l=this.fetchCopyMetadata(e),d=(0,p.l)(e.clipboardData);d.delete(O);const c=[...e.clipboardData.types,...null!==(n=null===l||void 0===l?void 0:l.providerCopyMimeTypes)&&void 0!==n?n:[],h.K.uriList],u=this._languageFeaturesService.documentPasteEditProvider.ordered(o).filter((e=>{var t,i;const n=null===(t=this._pasteAsActionContext)||void 0===t?void 0:t.preferred;return!(n&&e.providedPasteEditKinds&&!this.providerMatchesPreference(e,n))&&(null===(i=e.pasteMimeTypes)||void 0===i?void 0:i.some((e=>(0,a.Y)(e,c))))}));u.length?(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,u,r,d,l):this.doPasteInline(u,r,d,l,e)):(null===(s=this._pasteAsActionContext)||void 0===s?void 0:s.preferred)&&this.showPasteAsNoEditMessage(r,this._pasteAsActionContext.preferred)}showPasteAsNoEditMessage(e,t){var i;null===(i=S.k.get(this._editor))||void 0===i||i.showMessage((0,k.kg)("pasteAsError","No paste edits for '{0}' found",t instanceof l.k?t.value:t.providerId),e[0].getStartPosition())}doPasteInline(e,t,i,n,s){const o=(0,r.SS)((async r=>{const a=this._editor;if(!a.hasModel())return;const l=a.getModel(),d=new y.gI(a,3,void 0,r);try{if(await this.mergeInDataFromCopy(i,n,d.token),d.token.isCancellationRequested)return;const o=e.filter((e=>this.isSupportedPasteProvider(e,i)));if(!o.length||1===o.length&&o[0]instanceof b.LR)return this.applyDefaultPasteHandler(i,n,d.token,s);const r={triggerKind:_.FX.Automatic},h=await this.getPasteEdits(o,i,l,t,r,d.token);if(d.token.isCancellationRequested)return;if(1===h.length&&h[0].provider instanceof b.LR)return this.applyDefaultPasteHandler(i,n,d.token,s);if(h.length){const e="afterPaste"===a.getOption(85).showPasteSelector;return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:h},e,(async(e,t)=>{var i,n;const s=await(null===(n=(i=e.provider).resolveDocumentPasteEdit)||void 0===n?void 0:n.call(i,e,t));return s&&(e.additionalEdit=s.additionalEdit),e}),d.token)}await this.applyDefaultPasteHandler(i,n,d.token,s)}finally{d.dispose(),this._currentPasteOperation===o&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,k.kg)("pasteIntoEditorProgress","Running paste handlers. Click to cancel"),o),this._currentPasteOperation=o}showPasteAsPick(e,t,i,n,s){const o=(0,r.SS)((async r=>{const a=this._editor;if(!a.hasModel())return;const d=a.getModel(),h=new y.gI(a,3,void 0,r);try{if(await this.mergeInDataFromCopy(n,s,h.token),h.token.isCancellationRequested)return;let o=t.filter((t=>this.isSupportedPasteProvider(t,n,e)));e&&(o=o.filter((t=>this.providerMatchesPreference(t,e))));const r={triggerKind:_.FX.PasteAs,only:e&&e instanceof l.k?e:void 0};let a,c=await this.getPasteEdits(o,n,d,i,r,h.token);if(h.token.isCancellationRequested)return;if(e&&(c=c.filter((t=>e instanceof l.k?e.contains(t.kind):e.providerId===t.provider.id))),!c.length)return void(r.only&&this.showPasteAsNoEditMessage(i,r.only));if(e)a=c.at(0);else{const e=await this._quickInputService.pick(c.map((e=>{var t;return{label:e.title,description:null===(t=e.kind)||void 0===t?void 0:t.value,edit:e}})),{placeHolder:(0,k.kg)("pasteAsPickerPlaceholder","Select Paste Action")});a=null===e||void 0===e?void 0:e.edit}if(!a)return;const u=(0,C.v)(d.uri,i,a);await this._bulkEditService.apply(u,{editor:this._editor})}finally{h.dispose(),this._currentPasteOperation===o&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:(0,k.kg)("pasteAsProgress","Running paste handlers")},(()=>o))}setCopyMetadata(e,t){e.setData(O,JSON.stringify(t))}fetchCopyMetadata(e){var t;if(!e.clipboardData)return;const i=e.clipboardData.getData(O);if(i)try{return JSON.parse(i)}catch(o){return}const[n,s]=g.Mz.getTextData(e.clipboardData);return s?{defaultPastePayload:{mode:s.mode,multicursorText:null!==(t=s.multicursorText)&&void 0!==t?t:null,pasteOnNewLine:!!s.isFromEmptySelection}}:void 0}async mergeInDataFromCopy(e,t,i){var s;if((null===t||void 0===t?void 0:t.id)&&(null===(s=n._currentCopyOperation)||void 0===s?void 0:s.handle)===t.id){const t=await n._currentCopyOperation.dataTransferPromise;if(i.isCancellationRequested)return;for(const[i,n]of t)e.replace(i,n)}if(!e.has(h.K.uriList)){const t=await this._clipboardService.readResources();if(i.isCancellationRequested)return;t.length&&e.append(h.K.uriList,(0,a.gf)(a.jt.create(t)))}}async getPasteEdits(e,t,i,n,s,a){const l=await(0,r.PK)(Promise.all(e.map((async e=>{var o,r;try{const l=await(null===(o=e.provideDocumentPasteEdits)||void 0===o?void 0:o.call(e,i,n,t,s,a));return null===(r=null===l||void 0===l?void 0:l.edits)||void 0===r?void 0:r.map((t=>({...t,provider:e})))}catch(l){console.error(l)}}))),a),d=(0,o.Yc)(null!==l&&void 0!==l?l:[]).flat().filter((e=>!s.only||s.only.contains(e.kind)));return(0,C.H)(d)}async applyDefaultPasteHandler(e,t,i,n){var s,o,r,a;const l=null!==(s=e.get(h.K.text))&&void 0!==s?s:e.get("text"),d=null!==(o=await(null===l||void 0===l?void 0:l.asString()))&&void 0!==o?o:"";if(i.isCancellationRequested)return;const c={clipboardEvent:n,text:d,pasteOnNewLine:null!==(r=null===t||void 0===t?void 0:t.defaultPastePayload.pasteOnNewLine)&&void 0!==r&&r,multicursorText:null!==(a=null===t||void 0===t?void 0:t.defaultPastePayload.multicursorText)&&void 0!==a?a:null,mode:null};this._editor.trigger("keyboard","paste",c)}isSupportedPasteProvider(e,t,i){var n;return!!(null===(n=e.pasteMimeTypes)||void 0===n?void 0:n.some((e=>t.matches(e))))&&(!i||this.providerMatchesPreference(e,i))}providerMatchesPreference(e,t){return t instanceof l.k?!e.providedPasteEditKinds||e.providedPasteEditKinds.some((e=>t.contains(e))):e.id===t.providerId}};P.ID="editor.contrib.copyPasteActionController",P=n=I([M(1,D._Y),M(2,m.nu),M(3,x.h),M(4,v.u),M(5,N.GK),M(6,E.G5)],P)},90208:(e,t,i)=>{"use strict";i.d(t,{L9:()=>k,LR:()=>v,ZR:()=>S});var n=i(25890),s=i(17799),o=i(8995),r=i(5662),a=i(44320),l=i(36456),d=i(89403),h=i(79400),c=i(62083),u=i(56942),g=i(31629),p=i(37227),m=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t){return function(i,n){t(i,n,e)}};class _{async provideDocumentPasteEdits(e,t,i,n,s){const o=await this.getEdit(i,s);if(o)return{dispose(){},edits:[{insertText:o.insertText,title:o.title,kind:o.kind,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}]}}async provideDocumentOnDropEdits(e,t,i,n){const s=await this.getEdit(i,n);return s?[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}]:void 0}}class v extends _{constructor(){super(...arguments),this.kind=v.kind,this.dropMimeTypes=[a.K.text],this.pasteMimeTypes=[a.K.text]}async getEdit(e,t){const i=e.get(a.K.text);if(!i)return;if(e.has(a.K.uriList))return;const n=await i.asString();return{handledMimeType:a.K.text,title:(0,g.kg)("text.label","Insert Plain Text"),insertText:n,kind:this.kind}}}v.id="text",v.kind=new o.k("text.plain");class b extends _{constructor(){super(...arguments),this.kind=new o.k("uri.absolute"),this.dropMimeTypes=[a.K.uriList],this.pasteMimeTypes=[a.K.uriList]}async getEdit(e,t){const i=await w(e);if(!i.length||t.isCancellationRequested)return;let n=0;const s=i.map((({uri:e,originalText:t})=>e.scheme===l.ny.file?e.fsPath:(n++,t))).join(" ");let o;return o=n>0?i.length>1?(0,g.kg)("defaultDropProvider.uriList.uris","Insert Uris"):(0,g.kg)("defaultDropProvider.uriList.uri","Insert Uri"):i.length>1?(0,g.kg)("defaultDropProvider.uriList.paths","Insert Paths"):(0,g.kg)("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:a.K.uriList,insertText:s,title:o,kind:this.kind}}}let C=class extends _{constructor(e){super(),this._workspaceContextService=e,this.kind=new o.k("uri.relative"),this.dropMimeTypes=[a.K.uriList],this.pasteMimeTypes=[a.K.uriList]}async getEdit(e,t){const i=await w(e);if(!i.length||t.isCancellationRequested)return;const s=(0,n.Yc)(i.map((({uri:e})=>{const t=this._workspaceContextService.getWorkspaceFolder(e);return t?(0,d.iZ)(t.uri,e):void 0})));return s.length?{handledMimeType:a.K.uriList,insertText:s.join(" "),title:i.length>1?(0,g.kg)("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):(0,g.kg)("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}:void 0}};C=m([f(0,p.VR)],C);class y{constructor(){this.kind=new o.k("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:a.K.text}]}async provideDocumentPasteEdits(e,t,i,n,s){var o;if(n.triggerKind!==c.FX.PasteAs&&!(null===(o=n.only)||void 0===o?void 0:o.contains(this.kind)))return;const r=i.get("text/html"),a=await(null===r||void 0===r?void 0:r.asString());return a&&!s.isCancellationRequested?{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:(0,g.kg)("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}:void 0}}async function w(e){const t=e.get(a.K.uriList);if(!t)return[];const i=await t.asString(),n=[];for(const r of s.jt.parse(i))try{n.push({uri:h.r.parse(r),originalText:r})}catch(o){}return n}let S=class extends r.jG{constructor(e,t){super(),this._register(e.documentOnDropEditProvider.register("*",new v)),this._register(e.documentOnDropEditProvider.register("*",new b)),this._register(e.documentOnDropEditProvider.register("*",new C(t)))}};S=m([f(0,u.u),f(1,p.VR)],S);let k=class extends r.jG{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new v)),this._register(e.documentPasteEditProvider.register("*",new b)),this._register(e.documentPasteEditProvider.register("*",new C(t))),this._register(e.documentPasteEditProvider.register("*",new y))}};k=m([f(0,u.u),f(1,p.VR)],k)},43780:(e,t,i)=>{"use strict";var n=i(31450),s=i(94371),o=i(72466),r=i(90208),a=i(31629),l=i(1646),d=i(46359),h=i(25890),c=i(90766),u=i(17799),g=i(8995),p=i(5662),m=i(85411),f=i(36677),_=i(56942);class v{constructor(e){this.identifier=e}}var b=i(14718),C=i(63591);const y=(0,C.u1)("treeViewsDndService");(0,b.v)(y,class{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}},1);var w,S=i(50868),k=i(9948),x=i(84001),L=i(32848),D=i(61292),E=i(85541),N=i(56687),T=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},I=function(e,t){return function(i,n){t(i,n,e)}};const M="editor.experimental.dropIntoEditor.defaultProvider",A="editor.changeDropType",R=new L.N1("dropWidgetVisible",!1,(0,a.kg)("dropWidgetVisible","Whether the drop widget is showing"));let O=w=class extends p.jG{static get(e){return e.getContribution(w.ID)}constructor(e,t,i,n,s){super(),this._configService=i,this._languageFeaturesService=n,this._treeViewsDragAndDropService=s,this.treeItemsTransfer=D.PD.getInstance(),this._dropProgressManager=this._register(t.createInstance(k.I,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(N.G,"dropIntoEditor",e,R,{id:A,label:(0,a.kg)("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor((t=>this.onDropIntoEditor(e,t.position,t.event))))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(e,t,i){var n;if(!i.dataTransfer||!e.hasModel())return;null===(n=this._currentOperation)||void 0===n||n.cancel(),e.focus(),e.setPosition(t);const s=(0,c.SS)((async n=>{const o=new S.gI(e,1,void 0,n);try{const s=await this.extractDataTransferData(i);if(0===s.size||o.token.isCancellationRequested)return;const r=e.getModel();if(!r)return;const a=this._languageFeaturesService.documentOnDropEditProvider.ordered(r).filter((e=>!e.dropMimeTypes||e.dropMimeTypes.some((e=>s.matches(e))))),l=await this.getDropEdits(a,r,t,s,o);if(o.token.isCancellationRequested)return;if(l.length){const i=this.getInitialActiveEditIndex(r,l),s="afterDrop"===e.getOption(36).showDropSelector;await this._postDropWidgetManager.applyEditAndShowIfNeeded([f.Q.fromPositions(t)],{activeEditIndex:i,allEdits:l},s,(async e=>e),n)}}finally{o.dispose(),this._currentOperation===s&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,(0,a.kg)("dropIntoEditorProgress","Running drop handlers. Click to cancel"),s),this._currentOperation=s}async getDropEdits(e,t,i,n,s){const o=await(0,c.PK)(Promise.all(e.map((async e=>{try{const o=await e.provideDocumentOnDropEdits(t,i,n,s.token);return null===o||void 0===o?void 0:o.map((t=>({...t,providerId:e.id})))}catch(o){console.error(o)}}))),s.token),r=(0,h.Yc)(null!==o&&void 0!==o?o:[]).flat();return(0,E.H)(r)}getInitialActiveEditIndex(e,t){const i=this._configService.getValue(M,{resource:e.uri});for(const[n,s]of Object.entries(i)){const e=new g.k(s),i=t.findIndex((t=>e.value===t.providerId&&t.handledMimeType&&(0,u.Y)(n,[t.handledMimeType])));if(i>=0)return i}return 0}async extractDataTransferData(e){if(!e.dataTransfer)return new u.Vq;const t=(0,m.l)(e.dataTransfer);if(this.treeItemsTransfer.hasData(v.prototype)){const e=this.treeItemsTransfer.getData(v.prototype);if(Array.isArray(e))for(const i of e){const e=await this._treeViewsDragAndDropService.removeDragOperationTransfer(i.identifier);if(e)for(const[i,n]of e)t.replace(i,n)}}return t}};O.ID="editor.contrib.dropIntoEditorController",O=w=T([I(1,C._Y),I(2,x.pG),I(3,_.u),I(4,y)],O),(0,n.HW)(O.ID,O,2),(0,o.x)(r.ZR),(0,n.E_)(new class extends n.DX{constructor(){super({id:A,precondition:R,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t,i){var n;null===(n=O.get(t))||void 0===n||n.changeDropType()}}),(0,n.E_)(new class extends n.DX{constructor(){super({id:"editor.hideDropWidget",precondition:R,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t,i){var n;null===(n=O.get(t))||void 0===n||n.clearWidgets()}}),d.O.as(l.Fd.Configuration).registerConfiguration({...s.JJ,properties:{[M]:{type:"object",scope:5,description:a.kg("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}})},85541:(e,t,i)=>{"use strict";i.d(t,{H:()=>r,v:()=>o});var n=i(80537),s=i(29319);function o(e,t,i){var o,r,a,l;return("string"===typeof i.insertText?""===i.insertText:""===i.insertText.snippet)?{edits:null!==(r=null===(o=i.additionalEdit)||void 0===o?void 0:o.edits)&&void 0!==r?r:[]}:{edits:[...t.map((t=>new n.cw(e,{range:t,text:"string"===typeof i.insertText?s.fr.escape(i.insertText)+"$0":i.insertText.snippet,insertAsSnippet:!0}))),...null!==(l=null===(a=i.additionalEdit)||void 0===a?void 0:a.edits)&&void 0!==l?l:[]]}}function r(e){var t;function i(e,t){return"mimeType"in e?e.mimeType===t.handledMimeType:!!t.kind&&e.kind.contains(t.kind)}const n=new Map;for(const r of e)for(const s of null!==(t=r.yieldTo)&&void 0!==t?t:[])for(const t of e)if(t!==r&&i(s,t)){let e=n.get(r);e||(e=[],n.set(r,e)),e.push(t)}if(!n.size)return Array.from(e);const s=new Set,o=[];return function e(t){if(!t.length)return[];const i=t[0];if(o.includes(i))return console.warn("Yield to cycle detected",i),t;if(s.has(i))return e(t.slice(1));let r=[];const a=n.get(i);return a&&(o.push(i),r=e(a),o.pop()),s.add(i),[...r,i,...e(t.slice(1))]}(Array.from(e))}},56687:(e,t,i)=>{"use strict";i.d(t,{G:()=>v});var n,s=i(8597),o=i(62890),r=i(36921),a=i(41234),l=i(5662),d=i(80537),h=i(85541),c=i(32848),u=i(47508),g=i(63591),p=i(98031),m=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t){return function(i,n){t(i,n,e)}};let _=n=class extends l.jG{constructor(e,t,i,n,s,o,r,d,h,c){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=s,this.edits=o,this.onSelectNewEdit=r,this._contextMenuService=d,this._keybindingService=c,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(h),this.visibleContext.set(!0),this._register((0,l.s)((()=>this.visibleContext.reset()))),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register((0,l.s)((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition((e=>{s.containsPosition(e.position)||this.dispose()}))),this._register(a.Jh.runAndSubscribe(c.onDidUpdateKeybindings,(()=>{this._updateButtonTitle()})))}_updateButtonTitle(){var e;const t=null===(e=this._keybindingService.lookupKeybinding(this.showCommand.id))||void 0===e?void 0:e.getLabel();this.button.element.title=this.showCommand.label+(t?` (${t})`:"")}create(){this.domNode=s.$(".post-edit-widget"),this.button=this._register(new o.$(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(s.ko(this.domNode,s.Bx.CLICK,(()=>this.showSelector())))}getId(){return n.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=s.BK(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map(((e,t)=>(0,r.ih)({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}})))})}};_.baseId="editor.widget.postEditWidget",_=n=m([f(7,u.Z),f(8,c.fN),f(9,p.b)],_);let v=class extends l.jG{constructor(e,t,i,n,s,o){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._instantiationService=s,this._bulkEditService=o,this._currentWidget=this._register(new l.HE),this._register(a.Jh.any(t.onDidChangeModel,t.onDidChangeModelContent)((()=>this.clear())))}async applyEditAndShowIfNeeded(e,t,i,n,s){const o=this._editor.getModel();if(!o||!e.length)return;const r=t.allEdits.at(t.activeEditIndex);if(!r)return;const a=await n(r,s),l=(0,h.v)(o.uri,e,a),d=e[0],c=o.deltaDecorations([],[{range:d,options:{description:"paste-line-suffix",stickiness:0}}]);let u,g;try{u=await this._bulkEditService.apply(l,{editor:this._editor,token:s}),g=o.getDecorationRange(c[0])}finally{o.deltaDecorations(c,[])}i&&u.isApplied&&t.allEdits.length>1&&this.show(null!==g&&void 0!==g?g:d,t,(async o=>{const r=this._editor.getModel();r&&(await r.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:o,allEdits:t.allEdits},i,n,s))}))}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(_,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){var e;null===(e=this._currentWidget.value)||void 0===e||e.showSelector()}};v=m([f(4,g._Y),f(5,d.nu)],v)},50868:(e,t,i)=>{"use strict";i.d(t,{$t:()=>f,gI:()=>_,ER:()=>v});var n=i(91508),s=i(36677),o=i(18447),r=i(5662),a=i(31450),l=i(32848),d=i(58925),h=i(63591),c=i(14718),u=i(31629);const g=(0,h.u1)("IEditorCancelService"),p=new l.N1("cancellableOperation",!1,(0,u.kg)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,c.v)(g,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,n=this._tokens.get(e);return n||(n=e.invokeWithinContext((e=>({key:p.bindTo(e.get(l.fN)),tokens:new d.w}))),this._tokens.set(e,n)),n.key.set(!0),i=n.tokens.push(t),()=>{i&&(i(),n.key.set(!n.tokens.isEmpty()),i=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);class m extends o.Q{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext((t=>t.get(g).add(e,this)))}dispose(){this._unregister(),super.dispose()}}(0,a.E_)(new class extends a.DX{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(e,t){e.get(g).cancel(t)}});class f{constructor(e,t){if(this.flags=t,0!==(1&this.flags)){const t=e.getModel();this.modelVersionId=t?n.GP("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;0!==(4&this.flags)?this.position=e.getPosition():this.position=null,0!==(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!==(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof f))return!1;const t=e;return this.modelVersionId===t.modelVersionId&&(this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&(!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))))}validate(e){return this._equals(new f(e,this.flags))}}class _ extends m{constructor(e,t,i,n){super(e,n),this._listener=new r.Cm,4&t&&this._listener.add(e.onDidChangeCursorPosition((e=>{i&&s.Q.containsPosition(i,e.position)||this.cancel()}))),2&t&&this._listener.add(e.onDidChangeCursorSelection((e=>{i&&s.Q.containsRange(i,e.selection)||this.cancel()}))),8&t&&this._listener.add(e.onDidScrollChange((e=>this.cancel()))),1&t&&(this._listener.add(e.onDidChangeModel((e=>this.cancel()))),this._listener.add(e.onDidChangeModelContent((e=>this.cancel()))))}dispose(){this._listener.dispose(),super.dispose()}}class v extends o.Q{constructor(e,t){super(t),this._listener=e.onDidChangeContent((()=>this.cancel()))}dispose(){this._listener.dispose(),super.dispose()}}},34175:(e,t,i)=>{"use strict";i.d(t,{z0:()=>mt});var n=i(90766),s=i(5662),o=i(91508),r=i(31450),a=i(87119),l=i(60002),d=i(16223),h=i(46041),c=i(15092),u=i(83069),g=i(36677),p=i(75326),m=i(43264),f=i(38361),_=i(85845),v=i(47612);class b{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map((e=>this._editor.getModel().getDecorationRange(e))).filter((e=>!!e));if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e<this._decorations.length?this._decorations[e]:null;return t?this._editor.getModel().getDecorationRange(t):null}getCurrentMatchesPosition(e){const t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const e=i.options;if(e===b._FIND_MATCH_DECORATION||e===b._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let n=0,s=this._decorations.length;n<s;n++){const s=this._editor.getModel().getDecorationRange(this._decorations[n]);if(e.equalsRange(s)){t=this._decorations[n],i=n+1;break}}return null===this._highlightedDecorationId&&null===t||this._editor.changeDecorations((e=>{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,b._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,b._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let i=this._editor.getModel().getDecorationRange(t);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){const e=i.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);i=new g.Q(i.startLineNumber,i.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(i,b._RANGE_HIGHLIGHT_DECORATION)}})),i}set(e,t){this._editor.changeDecorations((i=>{let n=b._FIND_MATCH_DECORATION;const s=[];if(e.length>1e3){n=b._FIND_MATCH_NO_OVERVIEW_DECORATION;const t=this._editor.getModel().getLineCount(),i=this._editor.getLayoutInfo().height/t,o=Math.max(2,Math.ceil(3/i));let r=e[0].range.startLineNumber,a=e[0].range.endLineNumber;for(let n=1,l=e.length;n<l;n++){const t=e[n].range;a+o>=t.startLineNumber?t.endLineNumber>a&&(a=t.endLineNumber):(s.push({range:new g.Q(r,1,a,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),r=t.startLineNumber,a=t.endLineNumber)}s.push({range:new g.Q(r,1,a,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const o=new Array(e.length);for(let t=0,r=e.length;t<r;t++)o[t]={range:e[t].range,options:n};this._decorations=i.deltaDecorations(this._decorations,o),this._overviewRulerApproximateDecorations=i.deltaDecorations(this._overviewRulerApproximateDecorations,s),this._rangeHighlightDecorationId&&(i.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach((e=>i.removeDecoration(e))),this._findScopeDecorationIds=[]),(null===t||void 0===t?void 0:t.length)&&(this._findScopeDecorationIds=t.map((e=>i.addDecoration(e,b._FIND_SCOPE_DECORATION))))}))}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(n&&!(n.endLineNumber>e.lineNumber)){if(n.endLineNumber<e.lineNumber)return n;if(!(n.endColumn>e.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,i=this._decorations.length;t<i;t++){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(n&&!(n.startLineNumber<e.lineNumber)){if(n.startLineNumber>e.lineNumber)return n;if(!(n.startColumn<e.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}}b._CURRENT_FIND_MATCH_DECORATION=f.kI.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:(0,v.Yf)(_.fAP),position:d.A5.Center},minimap:{color:(0,v.Yf)(_.AjU),position:1}}),b._FIND_MATCH_DECORATION=f.kI.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:(0,v.Yf)(_.fAP),position:d.A5.Center},minimap:{color:(0,v.Yf)(_.AjU),position:1}}),b._FIND_MATCH_NO_OVERVIEW_DECORATION=f.kI.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0}),b._FIND_MATCH_ONLY_OVERVIEW_DECORATION=f.kI.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:(0,v.Yf)(_.fAP),position:d.A5.Center}}),b._RANGE_HIGHLIGHT_DECORATION=f.kI.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0}),b._FIND_SCOPE_DECORATION=f.kI.register({description:"find-scope",className:"findScope",isWholeLine:!0});class C{constructor(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){const e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort(((e,t)=>g.Q.compareRangesUsingStarts(e.range,t.range)));const i=[];let n=e[0];for(let t=1;t<e.length;t++)n.range.endLineNumber===e[t].range.startLineNumber&&n.range.endColumn===e[t].range.startColumn?(n.range=n.range.plusRange(e[t].range),n.text=n.text+e[t].text):(i.push(n),n=e[t]);i.push(n);for(const s of i)t.addEditOperation(s.range,s.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}function y(e,t){if(e&&""!==e[0]){const i=w(e,t,"-"),n=w(e,t,"_");return i&&!n?S(e,t,"-"):!i&&n?S(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():o.zY(e[0][0])&&t.length>0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function w(e,t,i){return-1!==e[0].indexOf(i)&&-1!==t.indexOf(i)&&e[0].split(i).length===t.split(i).length}function S(e,t,i){const n=t.split(i),s=e[0].split(i);let o="";return n.forEach(((e,t)=>{o+=y([s[t]],e)+i})),o.slice(0,-1)}class k{constructor(e){this.staticValue=e,this.kind=0}}class x{constructor(e){this.pieces=e,this.kind=1}}class L{static fromStaticValue(e){return new L([D.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new k(e[0].staticValue):this._state=new x(e):this._state=new k("")}buildReplaceString(e,t){if(0===this._state.kind)return t?y(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,s=this._state.pieces.length;n<s;n++){const t=this._state.pieces[n];if(null!==t.staticValue){i+=t.staticValue;continue}let s=L._substitute(t.matchIndex,e);if(null!==t.caseOps&&t.caseOps.length>0){const e=[],i=t.caseOps.length;let n=0;for(let o=0,r=s.length;o<r;o++){if(n>=i){e.push(s.slice(o));break}switch(t.caseOps[n]){case"U":e.push(s[o].toUpperCase());break;case"u":e.push(s[o].toUpperCase()),n++;break;case"L":e.push(s[o].toLowerCase());break;case"l":e.push(s[o].toLowerCase()),n++;break;default:e.push(s[o])}}s=e.join("")}i+=s}return i}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i="";for(;e>0;){if(e<t.length){return(t[e]||"")+i}i=String(e%10)+i,e=Math.floor(e/10)}return"$"+i}}class D{static staticValue(e){return new D(e,-1,null)}static caseOps(e,t){return new D(null,e,t)}constructor(e,t,i){this.staticValue=e,this.matchIndex=t,i&&0!==i.length?this.caseOps=i.slice(0):this.caseOps=null}}class E{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){0!==e.length&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,i){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=D.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=D.caseOps(e,i),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=D.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new L(this._result)}}var N=i(32848);const T=new N.N1("findWidgetVisible",!1),I=(T.toNegated(),new N.N1("findInputFocussed",!1)),M=new N.N1("replaceInputFocussed",!1),A={primary:545,mac:{primary:2593}},R={primary:565,mac:{primary:2613}},O={primary:560,mac:{primary:2608}},P={primary:554,mac:{primary:2602}},F={primary:558,mac:{primary:2606}},B="actions.find",W="actions.findWithSelection",V="editor.actions.findWithArgs",H="editor.action.nextMatchFindAction",z="editor.action.previousMatchFindAction",j="editor.action.goToMatchFindAction",U="editor.action.nextSelectionMatchFindAction",K="editor.action.previousSelectionMatchFindAction",G="editor.action.startFindReplaceAction",$="closeFindWidget",q="toggleFindCaseSensitive",Q="toggleFindWholeWord",Y="toggleFindRegex",Z="toggleFindInSelection",X="togglePreserveCase",J="editor.action.replaceOne",ee="editor.action.replaceAll",te="editor.action.selectAllMatches",ie=19999;class ne{constructor(e,t){this._toDispose=new s.Cm,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new n.pc,this._decorations=new b(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new n.uC((()=>this.research(!1)),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,s.AS)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){if(!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)){this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;"undefined"!==typeof t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map((e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new g.Q(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e})));const n=this._findMatches(i,!1,ie);this._decorations.set(n,i);const s=this._editor.getSelection();let o=this._decorations.getCurrentMatchesPosition(s);if(0===o&&n.length>0){const e=(0,h.hw)(n.map((e=>e.range)),(e=>g.Q.compareRangesUsingStarts(e,s)>=0));o=e>0?e-1+1:o}this._state.changeMatchInfo(o,this._decorations.getCount(),void 0),e&&this._editor.getOption(41).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||1===n?(1===i?i=s.getLineCount():i--,n=s.getLineMaxColumn(i)):n--,new u.y(i,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const t=this._decorations.matchAfterPosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchBeforePosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),void(t&&this._setCurrentFindMatch(t))}if(this._cannotFind())return;const i=this._decorations.getFindScope(),n=ne._getSearchRange(this._editor.getModel(),i);n.getEndPosition().isBefore(e)&&(e=n.getEndPosition()),e.isBefore(n.getStartPosition())&&(e=n.getEndPosition());const{lineNumber:s,column:o}=e,r=this._editor.getModel();let a=new u.y(s,o),l=r.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,!1);return l&&l.range.isEmpty()&&l.range.getStartPosition().equals(a)&&(a=this._prevSearchPosition(a),l=r.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,!1)),l?t||n.containsRange(l.range)?void this._setCurrentFindMatch(l.range):this._moveToPrevMatch(l.range.getStartPosition(),!0):void 0}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const s=this._editor.getModel();return t||n===s.getLineMaxColumn(i)?(i===s.getLineCount()?i=1:i++,n=1):n++,new u.y(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const t=this._decorations.matchBeforePosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}const t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,i,n=!1){if(this._cannotFind())return null;const s=this._decorations.getFindScope(),o=ne._getSearchRange(this._editor.getModel(),s);o.getEndPosition().isBefore(e)&&(e=o.getStartPosition()),e.isBefore(o.getStartPosition())&&(e=o.getStartPosition());const{lineNumber:r,column:a}=e,l=this._editor.getModel();let d=new u.y(r,a),h=l.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,t);return i&&h&&h.range.isEmpty()&&h.range.getStartPosition().equals(d)&&(d=this._nextSearchPosition(d),h=l.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,t)),h?n||o.containsRange(h.range)?h:this._getNextMatch(h.range.getEndPosition(),t,i,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_moveToMatch(e){const t=this._decorations.getDecorationRangeAt(e);t&&this._setCurrentFindMatch(t)}moveToMatch(e){this._moveToMatch(e)}_getReplacePattern(){return this._state.isRegex?function(e){if(!e||0===e.length)return new L(null);const t=[],i=new E(e);for(let n=0,s=e.length;n<s;n++){const o=e.charCodeAt(n);if(92!==o){if(36===o){if(n++,n>=s)break;const o=e.charCodeAt(n);if(36===o){i.emitUnchanged(n-1),i.emitStatic("$",n+1);continue}if(48===o||38===o){i.emitUnchanged(n-1),i.emitMatchIndex(0,n+1,t),t.length=0;continue}if(49<=o&&o<=57){let r=o-48;if(n+1<s){const s=e.charCodeAt(n+1);if(48<=s&&s<=57){n++,r=10*r+(s-48),i.emitUnchanged(n-2),i.emitMatchIndex(r,n+1,t),t.length=0;continue}}i.emitUnchanged(n-1),i.emitMatchIndex(r,n+1,t),t.length=0;continue}}}else{if(n++,n>=s)break;const o=e.charCodeAt(n);switch(o){case 92:i.emitUnchanged(n-1),i.emitStatic("\\",n+1);break;case 110:i.emitUnchanged(n-1),i.emitStatic("\n",n+1);break;case 116:i.emitUnchanged(n-1),i.emitStatic("\t",n+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(n-1),i.emitStatic("",n+1),t.push(String.fromCharCode(o))}}}return i.finalize()}(this._state.replaceString):L.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i)if(t.equalsRange(i.range)){const n=e.buildReplaceString(i.matches,this._state.preserveCase),s=new c.iu(t,n);this._executeEditorCommand("replace",s),this._decorations.setStartPosition(new u.y(t.startLineNumber,t.startColumn+n.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}_findMatches(e,t,i){const n=(e||[null]).map((e=>ne._getSearchRange(this._editor.getModel(),e)));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=ie?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const e=new m.lt(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let e="mu";t.ignoreCase&&(e+="i"),t.global&&(e+="g"),t=new RegExp(t.source,e)}const i=this._editor.getModel(),n=i.getValue(1),s=i.getFullModelRange(),o=this._getReplacePattern();let r;const a=this._state.preserveCase;r=o.hasReplacementPatterns||a?n.replace(t,(function(){return o.buildReplaceString(arguments,a)})):n.replace(t,o.buildReplaceString(null,a));const l=new c.ui(s,r,this._editor.getSelection());this._executeEditorCommand("replaceAll",l)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let o=0,r=i.length;o<r;o++)n[o]=t.buildReplaceString(i[o].matches,this._state.preserveCase);const s=new C(this._editor.getSelection(),i.map((e=>e.range)),n);this._executeEditorCommand("replaceAll",s)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let t=this._findMatches(e,!1,1073741824).map((e=>new p.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)));const i=this._editor.getSelection();for(let n=0,s=t.length;n<s;n++){if(t[n].equalsRange(i)){t=[i].concat(t.slice(0,n)).concat(t.slice(n+1));break}}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}var se=i(8597),oe=i(23034),re=i(17390),ae=i(42904);class le extends re.x{constructor(e,t,i){super(),this._hideSoon=this._register(new n.uC((()=>this._hide()),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const s={inputActiveOptionBorder:(0,_.GuP)(_.uNK),inputActiveOptionForeground:(0,_.GuP)(_.$$0),inputActiveOptionBackground:(0,_.GuP)(_.c1f)},o=this._register((0,ae.bW)());this.caseSensitive=this._register(new oe.bc({appendTitle:this._keybindingLabelFor(q),isChecked:this._state.matchCase,hoverDelegate:o,...s})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange((()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)}))),this.wholeWords=this._register(new oe.nV({appendTitle:this._keybindingLabelFor(Q),isChecked:this._state.wholeWord,hoverDelegate:o,...s})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange((()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)}))),this.regex=this._register(new oe.Ix({appendTitle:this._keybindingLabelFor(Y),isChecked:this._state.isRegex,hoverDelegate:o,...s})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange((()=>{this._state.change({isRegex:this.regex.checked},!1)}))),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange((e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()}))),this._register(se.ko(this._domNode,se.Bx.MOUSE_LEAVE,(e=>this._onMouseLeave()))),this._register(se.ko(this._domNode,"mouseover",(e=>this._onMouseOver())))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return le.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}}le.ID="editor.contrib.findOptionsWidget";var de=i(41234);function he(e,t){return 1===e||2!==e&&t}class ce extends s.jG{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return he(this._isRegexOverride,this._isRegex)}get wholeWord(){return he(this._wholeWordOverride,this._wholeWord)}get matchCase(){return he(this._matchCaseOverride,this._matchCase)}get preserveCase(){return he(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new de.vl),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){const n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let s=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,s=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,s=!0),"undefined"!==typeof i&&(g.Q.equalsRange(this._currentMatch,i)||(this._currentMatch=i,n.currentMatch=!0,s=!0)),s&&this._onFindReplaceStateChange.fire(n)}change(e,t,i=!0){var n;const s={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let o=!1;const r=this.isRegex,a=this.wholeWord,l=this.matchCase,d=this.preserveCase;"undefined"!==typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,s.searchString=!0,o=!0),"undefined"!==typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,s.replaceString=!0,o=!0),"undefined"!==typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,s.isRevealed=!0,o=!0),"undefined"!==typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,s.isReplaceRevealed=!0,o=!0),"undefined"!==typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!==typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!==typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!==typeof e.preserveCase&&(this._preserveCase=e.preserveCase),"undefined"!==typeof e.searchScope&&((null===(n=e.searchScope)||void 0===n?void 0:n.every((e=>{var t;return null===(t=this._searchScope)||void 0===t?void 0:t.some((t=>!g.Q.equalsRange(t,e)))})))||(this._searchScope=e.searchScope,s.searchScope=!0,o=!0)),"undefined"!==typeof e.loop&&this._loop!==e.loop&&(this._loop=e.loop,s.loop=!0,o=!0),"undefined"!==typeof e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,s.isSearching=!0,o=!0),"undefined"!==typeof e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,s.filters=!0,o=!0),this._isRegexOverride="undefined"!==typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!==typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!==typeof e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride="undefined"!==typeof e.preserveCaseOverride?e.preserveCaseOverride:0,r!==this.isRegex&&(o=!0,s.isRegex=!0),a!==this.wholeWord&&(o=!0,s.wholeWord=!0),l!==this.matchCase&&(o=!0,s.matchCase=!0),d!==this.preserveCase&&(o=!0,s.preserveCase=!0),o&&this._onFindReplaceStateChange.fire(s)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=ie}}var ue=i(11007),ge=i(35315),pe=i(92403),me=i(10350),fe=i(64383),_e=i(98067),ve=i(31629),be=i(89100);function Ce(e){var t,i;return"Up"===(null===(t=e.lookupKeybinding("history.showPrevious"))||void 0===t?void 0:t.getElectronAccelerator())&&"Down"===(null===(i=e.lookupKeybinding("history.showNext"))||void 0===i?void 0:i.getElectronAccelerator())}var ye=i(61394),we=i(25689),Se=i(86723),ke=i(631),xe=i(19070),Le=i(43545);const De=(0,ye.pU)("find-selection",me.W.selection,ve.kg("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),Ee=(0,ye.pU)("find-collapsed",me.W.chevronRight,ve.kg("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),Ne=(0,ye.pU)("find-expanded",me.W.chevronDown,ve.kg("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Te=(0,ye.pU)("find-replace",me.W.replace,ve.kg("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Ie=(0,ye.pU)("find-replace-all",me.W.replaceAll,ve.kg("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Me=(0,ye.pU)("find-previous-match",me.W.arrowUp,ve.kg("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Ae=(0,ye.pU)("find-next-match",me.W.arrowDown,ve.kg("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Re=ve.kg("label.findDialog","Find / Replace"),Oe=ve.kg("label.find","Find"),Pe=ve.kg("placeholder.find","Find"),Fe=ve.kg("label.previousMatchButton","Previous Match"),Be=ve.kg("label.nextMatchButton","Next Match"),We=ve.kg("label.toggleSelectionFind","Find in Selection"),Ve=ve.kg("label.closeButton","Close"),He=ve.kg("label.replace","Replace"),ze=ve.kg("placeholder.replace","Replace"),je=ve.kg("label.replaceButton","Replace"),Ue=ve.kg("label.replaceAllButton","Replace All"),Ke=ve.kg("label.toggleReplaceButton","Toggle Replace"),Ge=ve.kg("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",ie),$e=ve.kg("label.matchesLocation","{0} of {1}"),qe=ve.kg("label.noResults","No results"),Qe=419;let Ye=69;const Ze="ctrlEnterReplaceAll.windows.donotask",Xe=_e.zx?256:2048;class Je{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function et(e,t,i){const n=!!t.match(/\n/);i&&n&&i.selectionStart>0&&e.stopPropagation()}function tt(e,t,i){const n=!!t.match(/\n/);i&&n&&i.selectionEnd<i.value.length&&e.stopPropagation()}class it extends re.x{constructor(e,t,i,o,r,a,l,d,h){super(),this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=i,this._contextViewProvider=o,this._keybindingService=r,this._contextKeyService=a,this._storageService=d,this._notificationService=h,this._ctrlEnterReplaceAllWarningPrompted=!!d.getBoolean(Ze,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new n.ve(500),this._register((0,s.s)((()=>this._updateHistoryDelayer.cancel()))),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration((e=>{if(e.hasChanged(91)&&(this._codeEditor.getOption(91)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(145)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(41)){const e=this._codeEditor.getOption(41).loop;this._state.change({loop:e},!1);const t=this._codeEditor.getOption(41).addExtraSpaceOnTop;t&&!this._viewZone&&(this._viewZone=new Je(0),this._showViewZone()),!t&&this._viewZone&&this._removeViewZone()}}))),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection((()=>{this._isVisible&&this._updateToggleSelectionFindButton()}))),this._register(this._codeEditor.onDidFocusEditorWidget((async()=>{if(this._isVisible){const e=await this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}}))),this._findInputFocused=I.bindTo(a),this._findFocusTracker=this._register(se.w5(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus((()=>{this._findInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._findFocusTracker.onDidBlur((()=>{this._findInputFocused.set(!1)}))),this._replaceInputFocused=M.bindTo(a),this._replaceFocusTracker=this._register(se.w5(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus((()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._replaceFocusTracker.onDidBlur((()=>{this._replaceInputFocused.set(!1)}))),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(41).addExtraSpaceOnTop&&(this._viewZone=new Je(0)),this._register(this._codeEditor.onDidChangeModel((()=>{this._isVisible&&(this._viewZoneId=void 0)}))),this._register(this._codeEditor.onDidScrollChange((e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout((()=>{this._layoutViewZone()}),0)})))}getId(){return it.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(91)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=se.Tr(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,fe.dz)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=Ye+"px",this._state.matchesCount>=ie?this._matchesCount.title=Ge:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=ie&&(t+="+");let i=String(this._state.matchesPosition);"0"===i&&(i="?"),e=o.GP($e,i,t)}else e=qe;this._matchesCount.appendChild(document.createTextNode(e)),(0,ue.xE)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),Ye=Math.max(Ye,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===qe)return""===i?ve.kg("ariaSearchNoResultEmpty","{0} found",e):ve.kg("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const n=ve.kg("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),s=this._codeEditor.getModel();if(s&&t.startLineNumber<=s.getLineCount()&&t.startLineNumber>=1){return`${s.getLineContent(t.startLineNumber)}, ${n}`}return n}return ve.kg("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(91);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(41).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout((()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")}),0)),this._revealTimeouts.push(setTimeout((()=>{this._findInput.validate()}),200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(41).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const n=se.BK(i),s=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),o=n.left+(s?s.left:0),r=s?s.top:0;if(this._viewZone&&r<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);const i=se.cL(this._domNode).left;o>i&&(t=!1);const s=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(s?s.left:0)>i&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;const t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)}))}_showViewZone(e=!0){if(!this._isVisible)return;if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new Je(0));const t=this._viewZone;this._codeEditor.changeViewZones((i=>{if(void 0!==this._viewZoneId){const n=this._getHeight();if(n===t.heightInPx)return;const s=n-t.heightInPx;return t.heightInPx=n,i.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s))}{let n=this._getHeight();if(n-=this._codeEditor.getOption(84).top,n<=0)return;t.heightInPx=n,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+n)}}))}_removeViewZone(){this._codeEditor.changeViewZones((e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))}))}_tryUpdateWidgetWidth(){if(!this._isVisible)return;if(!this._domNode.isConnected)return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const t=e.width,i=e.minimap.minimapWidth;let n=!1,s=!1,o=!1;if(this._resized){if(se.Tr(this._domNode)>Qe)return this._domNode.style.maxWidth=t-28-i-15+"px",void(this._replaceInput.width=se.Tr(this._findInput.domNode))}if(447+i>=t&&(s=!0),447+i-Ye>=t&&(o=!0),447+i-Ye>=t+50&&(n=!0),this._domNode.classList.toggle("collapsed-find-widget",n),this._domNode.classList.toggle("narrow-find-widget",o),this._domNode.classList.toggle("reduced-find-widget",s),o||n||(this._domNode.style.maxWidth=t-28-i-15+"px"),this._findInput.layout({collapsedFindWidget:n,narrowFindWidget:o,reducedFindWidget:s}),this._resized){const e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=se.Tr(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map((e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));const t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||g.Q.equalsRange(e,t)?null:e})).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?et(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?tt(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||(_e.uF&&_e.ib&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(ve.kg("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Ze,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n")),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?et(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?tt(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){const e=!0,t=!0;this._findInput=this._register(new be.pG(null,this._contextViewProvider,{width:221,label:Oe,placeholder:Pe,appendCaseSensitiveLabel:this._keybindingLabelFor(q),appendWholeWordsLabel:this._keybindingLabelFor(Q),appendRegexLabel:this._keybindingLabelFor(Y),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(t){return{content:t.message}}},flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>Ce(this._keybindingService),inputBoxStyles:xe.ho,toggleStyles:xe.mk},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((e=>this._onFindInputKeyDown(e)))),this._register(this._findInput.inputBox.onDidChange((()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((e=>{this._tryUpdateHeight()&&this._showViewZone()}))),_e.j9&&this._register(this._findInput.onMouseDown((e=>this._onFindInputMouseDown(e)))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();const i=this._register((0,ae.bW)());this._prevBtn=this._register(new nt({label:Fe+this._keybindingLabelFor(z),icon:Me,hoverDelegate:i,onTrigger:()=>{(0,ke.eU)(this._codeEditor.getAction(z)).run().then(void 0,fe.dz)}})),this._nextBtn=this._register(new nt({label:Be+this._keybindingLabelFor(H),icon:Ae,hoverDelegate:i,onTrigger:()=>{(0,ke.eU)(this._codeEditor.getAction(H)).run().then(void 0,fe.dz)}}));const n=document.createElement("div");n.className="find-part",n.appendChild(this._findInput.domNode);const s=document.createElement("div");s.className="find-actions",n.appendChild(s),s.appendChild(this._matchesCount),s.appendChild(this._prevBtn.domNode),s.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new ge.l({icon:De,title:We+this._keybindingLabelFor(Z),isChecked:!1,hoverDelegate:i,inputActiveOptionBackground:(0,_.GuP)(_.c1f),inputActiveOptionBorder:(0,_.GuP)(_.uNK),inputActiveOptionForeground:(0,_.GuP)(_.$$0)})),this._register(this._toggleSelectionFind.onChange((()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let e=this._codeEditor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)}))),s.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new nt({label:Ve+this._keybindingLabelFor($),icon:ye.$_,hoverDelegate:i,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}})),this._replaceInput=this._register(new be._Q(null,void 0,{label:He,placeholder:ze,appendPreserveCaseLabel:this._keybindingLabelFor(X),history:[],flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showHistoryHint:()=>Ce(this._keybindingService),inputBoxStyles:xe.ho,toggleStyles:xe.mk},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((e=>this._onReplaceInputKeyDown(e)))),this._register(this._replaceInput.inputBox.onDidChange((()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())})));const o=this._register((0,ae.bW)());this._replaceBtn=this._register(new nt({label:je+this._keybindingLabelFor(J),icon:Te,hoverDelegate:o,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}})),this._replaceAllBtn=this._register(new nt({label:Ue+this._keybindingLabelFor(ee),icon:Ie,hoverDelegate:o,onTrigger:()=>{this._controller.replaceAll()}}));const r=document.createElement("div");r.className="replace-part",r.appendChild(this._replaceInput.domNode);const a=document.createElement("div");a.className="replace-actions",r.appendChild(a),a.appendChild(this._replaceBtn.domNode),a.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new nt({label:Ke,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=se.Tr(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=Re,this._domNode.role="dialog",this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(n),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(r),this._resizeSash=this._register(new pe.m(this._domNode,this,{orientation:0,size:2})),this._resized=!1;let l=Qe;this._register(this._resizeSash.onDidStart((()=>{l=se.Tr(this._domNode)}))),this._register(this._resizeSash.onDidChange((e=>{this._resized=!0;const t=l+e.startX-e.currentX;if(t<Qe)return;t>(parseFloat(se.L9(this._domNode).maxWidth)||0)||(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=se.Tr(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((()=>{const e=se.Tr(this._domNode);if(e<Qe)return;let t=Qe;if(!this._resized||e===Qe){const e=this._codeEditor.getLayoutInfo();t=e.width-28-e.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=se.Tr(this._findInput.domNode)),this._findInput.inputBox.layout()})))}updateAccessibilitySupport(){const e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)}}it.ID="editor.contrib.findWidget";class nt extends re.x{constructor(e){var t;super(),this._opts=e;let i="button";this._opts.className&&(i=i+" "+this._opts.className),this._opts.icon&&(i=i+" "+we.L.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.tabIndex=0,this._domNode.className=i,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this._register((0,Le.f)(null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,ae.nZ)("element"),this._domNode,this._opts.label)),this.onclick(this._domNode,(e=>{this._opts.onTrigger(),e.preventDefault()})),this.onkeydown(this._domNode,(e=>{var t,i;if(e.equals(10)||e.equals(3))return this._opts.onTrigger(),void e.preventDefault();null===(i=(t=this._opts).onKeyDown)||void 0===i||i.call(t,e)}))}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...we.L.asClassNameArray(Ee)),this._domNode.classList.add(...we.L.asClassNameArray(Ne))):(this._domNode.classList.remove(...we.L.asClassNameArray(Ne)),this._domNode.classList.add(...we.L.asClassNameArray(Ee)))}}(0,v.zy)(((e,t)=>{const i=e.getColor(_.ECk);i&&t.addRule(`.monaco-editor .findMatch { border: 1px ${(0,Se.Bb)(e.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`);const n=e.getColor(_.S5J);n&&t.addRule(`.monaco-editor .findScope { border: 1px ${(0,Se.Bb)(e.type)?"dashed":"solid"} ${n}; }`);const s=e.getColor(_.b1q);s&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${s}; }`)}));var st,ot=i(27195),rt=i(54770),at=i(47508),lt=i(98031),dt=i(58591),ht=i(51467),ct=i(9711),ut=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},gt=function(e,t){return function(i,n){t(i,n,e)}};function pt(e,t="single",i=!1){if(!e.hasModel())return null;const n=e.getSelection();if("single"===t&&n.startLineNumber===n.endLineNumber||"multiple"===t)if(n.isEmpty()){const t=e.getConfiguredWordAtPosition(n.getStartPosition());if(t&&!1===i)return t.word}else if(e.getModel().getValueLengthInRange(n)<524288)return e.getModel().getValueInRange(n);return null}let mt=st=class extends s.jG{get editor(){return this._editor}static get(e){return e.getContribution(st.ID)}constructor(e,t,i,s,o){super(),this._editor=e,this._findWidgetVisible=T.bindTo(t),this._contextKeyService=t,this._storageService=i,this._clipboardService=s,this._notificationService=o,this._updateHistoryDelayer=new n.ve(500),this._state=this._register(new ce),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._model=null,this._register(this._editor.onDidChangeModel((()=>{const e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(41).loop})})))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!I.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=o.bm(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}async _start(e,t){if(this.disposeModel(),!this._editor.hasModel())return;const i={...t,isRevealed:!0};if("single"===e.seedSearchStringFromSelection){const t=pt(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);t&&(this._state.isRegex?i.searchString=o.bm(t):i.searchString=t)}else if("multiple"===e.seedSearchStringFromSelection&&!e.updateSearchScope){const t=pt(this._editor,e.seedSearchStringFromSelection);t&&(i.searchString=t)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){const e=await this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(i.searchString=e)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){const e=this._editor.getSelections();e.some((e=>!e.isEmpty()))&&(i.searchScope=e)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new ne(this._editor,this._state))}start(e,t){return this._start(e,t)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}goToMatch(e){return!!this._model&&(this._model.moveToMatch(e),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){var e;return!!this._model&&((null===(e=this._editor.getModel())||void 0===e?void 0:e.isTooLargeForHeapOperation())?(this._notificationService.warn(ve.kg("too.large.for.replaceall","The file is too large to perform a replace all operation.")),!1):(this._model.replaceAll(),!0))}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}async getGlobalBufferTerm(){return this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}setGlobalBufferTerm(e){this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};mt.ID="editor.contrib.findController",mt=st=ut([gt(1,N.fN),gt(2,ct.CS),gt(3,rt.h),gt(4,dt.Ot)],mt);let ft=class extends mt{constructor(e,t,i,n,s,o,r,a){super(e,i,r,a,o),this._contextViewService=t,this._keybindingService=n,this._themeService=s,this._widget=null,this._findOptionsWidget=null}async _start(e,t){this._widget||this._createFindWidget();const i=this._editor.getSelection();let n=!1;switch(this._editor.getOption(41).autoFindInSelection){case"always":n=!0;break;case"never":n=!1;break;case"multiline":n=!!i&&i.startLineNumber!==i.endLineNumber;break}e.updateSearchScope=e.updateSearchScope||n,await super._start(e,t),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput())}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new it(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new le(this._editor,this._state,this._keybindingService))}};ft=ut([gt(1,at.l),gt(2,N.fN),gt(3,lt.b),gt(4,v.Gy),gt(5,dt.Ot),gt(6,ct.CS),gt(7,rt.h)],ft);(0,r.gW)(new r.PF({id:B,label:ve.kg("startFindAction","Find"),alias:"Find",precondition:N.M$.or(l.R.focus,N.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:ot.D8.MenubarEditMenu,group:"3_find",title:ve.kg({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})).addImplementation(0,((e,t,i)=>{const n=mt.get(t);return!!n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(41).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})}));const _t={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},isRegex:{type:"boolean"},matchWholeWord:{type:"boolean"},isCaseSensitive:{type:"boolean"},preserveCase:{type:"boolean"},findInSelection:{type:"boolean"}}}}]};class vt extends r.ks{constructor(){super({id:V,label:ve.kg("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},metadata:_t})}async run(e,t,i){const n=mt.get(t);if(n){const e=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:void 0!==i.replaceString,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};await n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(null===i||void 0===i?void 0:i.findInSelection)||!1,loop:t.getOption(41).loop},e),n.setGlobalBufferTerm(n.getState().searchString)}}}class bt extends r.ks{constructor(){super({id:W,label:ve.kg("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}async run(e,t){const i=mt.get(t);i&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),i.setGlobalBufferTerm(i.getState().searchString))}}class Ct extends r.ks{async run(e,t){const i=mt.get(t);i&&!this._run(i)&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===i.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}class yt extends r.ks{constructor(){super({id:j,label:ve.kg("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:T}),this._highlightDecorations=[]}run(e,t,i){const n=mt.get(t);if(!n)return;const s=n.getState().matchesCount;if(s<1){return void e.get(dt.Ot).notify({severity:dt.AI.Warning,message:ve.kg("findMatchAction.noResults","No matches. Try searching for something else.")})}const o=e.get(ht.GK).createInputBox();o.placeholder=ve.kg("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",s);const r=e=>{const t=parseInt(e);if(isNaN(t))return;const i=n.getState().matchesCount;return t>0&&t<=i?t-1:t<0&&t>=-i?i+t:void 0},a=e=>{const i=r(e);if("number"===typeof i){o.validationMessage=void 0,n.goToMatch(i);const e=n.getState().currentMatch;e&&this.addDecorations(t,e)}else o.validationMessage=ve.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount),this.clearDecorations(t)};o.onDidChangeValue((e=>{a(e)})),o.onDidAccept((()=>{const e=r(o.value);"number"===typeof e?(n.goToMatch(e),o.hide()):o.validationMessage=ve.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount)})),o.onDidHide((()=>{this.clearDecorations(t),o.dispose()})),o.show()}clearDecorations(e){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[])}))}addDecorations(e,t){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[{range:t,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:(0,v.Yf)(a.vp),position:d.A5.Full}}}])}))}}class wt extends r.ks{async run(e,t){const i=mt.get(t);if(!i)return;const n=pt(t,"single",!1);n&&i.setSearchString(n),this._run(i)||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}(0,r.gW)(new r.PF({id:G,label:ve.kg("startReplace","Replace"),alias:"Replace",precondition:N.M$.or(l.R.focus,N.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:ot.D8.MenubarEditMenu,group:"3_find",title:ve.kg({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})).addImplementation(0,((e,t,i)=>{if(!t.hasModel()||t.getOption(91))return!1;const n=mt.get(t);if(!n)return!1;const s=t.getSelection(),o=n.isFindInputFocused(),r=!s.isEmpty()&&s.startLineNumber===s.endLineNumber&&"never"!==t.getOption(41).seedSearchStringFromSelection&&!o,a=o||r?2:1;return n.start({forceRevealReplace:!0,seedSearchStringFromSelection:r?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(41).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})})),(0,r.HW)(mt.ID,ft,0),(0,r.Fl)(vt),(0,r.Fl)(bt),(0,r.Fl)(class extends Ct{constructor(){super({id:H,label:ve.kg("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:l.R.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:N.M$.and(l.R.focus,I),primary:3,weight:100}]})}_run(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}),(0,r.Fl)(class extends Ct{constructor(){super({id:z,label:ve.kg("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:l.R.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:N.M$.and(l.R.focus,I),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}),(0,r.Fl)(yt),(0,r.Fl)(class extends wt{constructor(){super({id:U,label:ve.kg("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}),(0,r.Fl)(class extends wt{constructor(){super({id:K,label:ve.kg("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}});const St=r.DX.bindToContribution(mt.get);(0,r.E_)(new St({id:$,precondition:T,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:N.M$.and(l.R.focus,N.M$.not("isComposing")),primary:9,secondary:[1033]}})),(0,r.E_)(new St({id:q,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:A.primary,mac:A.mac,win:A.win,linux:A.linux}})),(0,r.E_)(new St({id:Q,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:R.primary,mac:R.mac,win:R.win,linux:R.linux}})),(0,r.E_)(new St({id:Y,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:O.primary,mac:O.mac,win:O.win,linux:O.linux}})),(0,r.E_)(new St({id:Z,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:P.primary,mac:P.mac,win:P.win,linux:P.linux}})),(0,r.E_)(new St({id:X,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),(0,r.E_)(new St({id:J,precondition:T,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:3094}})),(0,r.E_)(new St({id:J,precondition:T,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:N.M$.and(l.R.focus,M),primary:3}})),(0,r.E_)(new St({id:ee,precondition:T,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:2563}})),(0,r.E_)(new St({id:ee,precondition:T,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:N.M$.and(l.R.focus,M),primary:void 0,mac:{primary:2051}}})),(0,r.E_)(new St({id:te,precondition:T,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:515}}))},44588:(e,t,i)=>{"use strict";i.d(t,{W:()=>V,B:()=>H});var n=i(90766),s=i(18447),o=i(64383),r=i(24939),a=i(5662),l=i(91508),d=i(631),h=i(55190),c=i(31450),u=i(60002),g=i(62083),p=i(17469),m=i(52903),f=i(46041),_=i(41234),v=i(36677),b=i(64454);class C{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new _.vl,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange((e=>this.updateHiddenRanges())),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some((e=>e.range.endLineNumber!==e.range.startLineNumber||0!==(0,b.W)(e.text)[0])))}updateHiddenRanges(){let e=!1;const t=[];let i=0,n=0,s=Number.MAX_VALUE,o=-1;const r=this._foldingModel.regions;for(;i<r.length;i++){if(!r.isCollapsed(i))continue;const a=r.getStartLineNumber(i)+1,l=r.getEndLineNumber(i);s<=a&&l<=o||(!e&&n<this._hiddenRanges.length&&this._hiddenRanges[n].startLineNumber===a&&this._hiddenRanges[n].endLineNumber===l?(t.push(this._hiddenRanges[n]),n++):(e=!0,t.push(new v.Q(a,1,l,1))),s=a,o=l)}(this._hasLineChanges||e||n<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyHiddenRanges(e){this._hiddenRanges=e,this._hasLineChanges=!1,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return null!==y(this._hiddenRanges,e)}adjustSelections(e){let t=!1;const i=this._foldingModel.textModel;let n=null;const s=e=>(n&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,n)||(n=y(this._hiddenRanges,e)),n?n.startLineNumber-1:null);for(let o=0,r=e.length;o<r;o++){let n=e[o];const r=s(n.startLineNumber);r&&(n=n.setStartPosition(r,i.getLineMaxColumn(r)),t=!0);const a=s(n.endLineNumber);a&&(n=n.setEndPosition(a,i.getLineMaxColumn(a)),t=!0),e[o]=n}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function y(e,t){const i=(0,f.hw)(e,(e=>t<e.startLineNumber))-1;return i>=0&&e[i].endLineNumber>=t?e[i]:null}var w,S=i(76495),k=i(31629),x=i(32848),L=i(46109),D=i(44026),E=i(87784),N=i(58591),T=i(32500),I=i(78381),M=i(56942),A=i(50091),R=i(79400),O=i(23750),P=i(84001),F=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},B=function(e,t){return function(i,n){t(i,n,e)}};const W=new x.N1("foldingEnabled",!1);let V=w=class extends a.jG{static get(e){return e.getContribution(w.ID)}static getFoldingRangeProviders(e,t){var i,n;const s=e.foldingRangeProvider.ordered(t);return null!==(n=null===(i=w._foldingRangeSelector)||void 0===i?void 0:i.call(w,s,t))&&void 0!==n?n:s}constructor(e,t,i,n,s,o){super(),this.contextKeyService=t,this.languageConfigurationService=i,this.languageFeaturesService=o,this.localToDispose=this._register(new a.Cm),this.editor=e,this._foldingLimitReporter=new H(e);const r=this.editor.getOptions();this._isEnabled=r.get(43),this._useFoldingProviders="indentation"!==r.get(44),this._unfoldOnClickAfterEndOfLine=r.get(48),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=r.get(46),this.updateDebounceInfo=s.for(o.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new L.rv(e),this.foldingDecorationProvider.showFoldingControls=r.get(110),this.foldingDecorationProvider.showFoldingHighlights=r.get(45),this.foldingEnabled=W.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel((()=>this.onModelChanged()))),this._register(this.editor.onDidChangeConfiguration((e=>{if(e.hasChanged(43)&&(this._isEnabled=this.editor.getOptions().get(43),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(47)&&this.onModelChanged(),e.hasChanged(110)||e.hasChanged(45)){const e=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=e.get(110),this.foldingDecorationProvider.showFoldingHighlights=e.get(45),this.triggerFoldingModelChanged()}e.hasChanged(44)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(44),this.onFoldingStrategyChanged()),e.hasChanged(48)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(48)),e.hasChanged(46)&&(this._foldingImportsByDefault=this.editor.getOptions().get(46))}))),this.onModelChanged()}saveViewState(){const e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){const t=this.foldingModel.getMemento(),i=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:i,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){const t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new m.pN(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new C(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((e=>this.onHiddenRangesChanges(e)))),this.updateScheduler=new n.ve(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new n.uC((()=>this.revealCursor()),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelContent((e=>this.onDidChangeModelContent(e)))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((()=>this.onCursorPositionChanged()))),this.localToDispose.add(this.editor.onMouseDown((e=>this.onEditorMouseDown(e)))),this.localToDispose.add(this.editor.onMouseUp((e=>this.onEditorMouseUp(e)))),this.localToDispose.add({dispose:()=>{var e,t;this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),null===(e=this.updateScheduler)||void 0===e||e.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,null===(t=this.rangeProvider)||void 0===t||t.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){var e;null===(e=this.rangeProvider)||void 0===e||e.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;const t=new S.hW(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){const i=w.getFoldingRangeProviders(this.languageFeaturesService,e);i.length>0&&(this.rangeProvider=new E.M(e,i,(()=>this.triggerFoldingModelChanged()),this._foldingLimitReporter,t))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){var t;null===(t=this.hiddenRangeModel)||void 0===t||t.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((()=>{const e=this.foldingModel;if(!e)return null;const t=new I.W,i=this.getRangeProvider(e.textModel),s=this.foldingRegionPromise=(0,n.SS)((e=>i.compute(e)));return s.then((i=>{if(i&&s===this.foldingRegionPromise){let n;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const e=i.setCollapsedAllOfType(g.lO.Imports.value,!0);e&&(n=h.D.capture(this.editor),this._currentModelHasFoldedImports=e)}const s=this.editor.getSelections(),o=s?s.map((e=>e.startLineNumber)):[];e.update(i,o),null===n||void 0===n||n.restore(this.editor);const r=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=r)}return e}))})).then(void 0,(e=>((0,o.dz)(e),null))))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){const e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then((e=>{if(e){const t=this.editor.getSelections();if(t&&t.length>0){const i=[];for(const n of t){const t=n.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&i.push(...e.getAllRegionsAtLine(t,(e=>e.isCollapsed&&t>e.startLineNumber)))}i.length&&(e.toggleCollapseState(i),this.reveal(t[0].getPosition()))}}})).then(void 0,o.dz)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let i=!1;switch(e.target.type){case 4:{const t=e.target.detail,n=e.target.element.offsetLeft;if(t.offsetX-n<4)return;i=!0;break}case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()){if(!e.target.detail.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){const e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:i}}onEditorMouseUp(e){const t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;const i=this.mouseDownInfo.lineNumber,n=this.mouseDownInfo.iconClicked,s=e.target.range;if(!s||s.startLineNumber!==i)return;if(n){if(4!==e.target.type)return}else{const e=this.editor.getModel();if(!e||s.startColumn!==e.getLineMaxColumn(i))return}const o=t.getRegionAtLine(i);if(o&&o.startLineNumber===i){const s=o.isCollapsed;if(n||s){let n=[];if(e.event.altKey){const e=e=>!e.containedBy(o)&&!o.containedBy(e),i=t.getRegionsInside(null,e);for(const t of i)t.isCollapsed&&n.push(t);0===n.length&&(n=i)}else{const i=e.event.middleButton||e.event.shiftKey;if(i)for(const e of t.getRegionsInside(o))e.isCollapsed===s&&n.push(e);!s&&i&&0!==n.length||n.push(o)}t.toggleCollapseState(n),this.reveal({lineNumber:i,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};V.ID="editor.contrib.folding",V=w=F([B(1,x.fN),B(2,p.JZ),B(3,N.Ot),B(4,T.U),B(5,M.u)],V);class H{constructor(e){this.editor=e,this._onDidChange=new _.vl,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(47)}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}class z extends c.ks{runEditorCommand(e,t,i){const n=e.get(p.JZ),s=V.get(t);if(!s)return;const o=s.getFoldingModel();return o?(this.reportTelemetry(e,t),o.then((e=>{if(e){this.invoke(s,e,t,i,n);const o=t.getSelection();o&&s.reveal(o.getStartPosition())}}))):void 0}getSelectedLines(e){const t=e.getSelections();return t?t.map((e=>e.startLineNumber)):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map((e=>e+1)):this.getSelectedLines(t)}run(e,t){}}function j(e){if(!d.b0(e)){if(!d.Gv(e))return!1;const t=e;if(!d.b0(t.levels)&&!d.Et(t.levels))return!1;if(!d.b0(t.direction)&&!d.Kg(t.direction))return!1;if(!d.b0(t.selectionLines)&&(!Array.isArray(t.selectionLines)||!t.selectionLines.every(d.Et)))return!1}return!0}class U extends z{getFoldingLevel(){return parseInt(this.id.substr(U.ID_PREFIX.length))}invoke(e,t,i){(0,m.sO)(t,this.getFoldingLevel(),!0,this.getSelectedLines(i))}}U.ID_PREFIX="editor.foldLevel",U.ID=e=>U.ID_PREFIX+e;(0,c.HW)(V.ID,V,0),(0,c.Fl)(class extends z{constructor(){super({id:"editor.unfold",label:k.kg("unfoldAction.label","Unfold"),alias:"Unfold",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},metadata:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:j,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const s=n&&n.levels||1,o=this.getLineNumbers(n,i);n&&"up"===n.direction?(0,m.dN)(t,!1,s,o):(0,m.uV)(t,!1,s,o)}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.unfoldRecursively",label:k.kg("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2142),weight:100}})}invoke(e,t,i,n){(0,m.uV)(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.fold",label:k.kg("foldAction.label","Fold"),alias:"Fold",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},metadata:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:j,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const s=this.getLineNumbers(n,i),o=n&&n.levels,r=n&&n.direction;"number"!==typeof o&&"string"!==typeof r?(0,m.W8)(t,!0,s):"up"===r?(0,m.dN)(t,!0,o||1,s):(0,m.uV)(t,!0,o||1,s)}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.foldRecursively",label:k.kg("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2140),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,m.uV)(t,!0,Number.MAX_VALUE,n)}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.foldAll",label:k.kg("foldAllAction.label","Fold All"),alias:"Fold All",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2069),weight:100}})}invoke(e,t,i){(0,m.uV)(t,!0)}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.unfoldAll",label:k.kg("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2088),weight:100}})}invoke(e,t,i){(0,m.uV)(t,!1)}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.foldAllBlockComments",label:k.kg("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2138),weight:100}})}invoke(e,t,i,n,s){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Comment.value,!0);else{const e=i.getModel();if(!e)return;const n=s.getLanguageConfiguration(e.getLanguageId()).comments;if(n&&n.blockCommentStartToken){const e=new RegExp("^\\s*"+(0,l.bm)(n.blockCommentStartToken));(0,m.AI)(t,e,!0)}}}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.foldAllMarkerRegions",label:k.kg("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2077),weight:100}})}invoke(e,t,i,n,s){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Region.value,!0);else{const e=i.getModel();if(!e)return;const n=s.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(n&&n.markers&&n.markers.start){const e=new RegExp(n.markers.start);(0,m.AI)(t,e,!0)}}}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:k.kg("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2078),weight:100}})}invoke(e,t,i,n,s){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Region.value,!1);else{const e=i.getModel();if(!e)return;const n=s.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(n&&n.markers&&n.markers.start){const e=new RegExp(n.markers.start);(0,m.AI)(t,e,!1)}}}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.foldAllExcept",label:k.kg("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2136),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,m.GR)(t,!0,n)}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.unfoldAllExcept",label:k.kg("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2134),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,m.GR)(t,!1,n)}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.toggleFold",label:k.kg("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2090),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,m.bC)(t,1,n)}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.gotoParentFold",label:k.kg("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=(0,m.kK)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.gotoPreviousFold",label:k.kg("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=(0,m.JX)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.gotoNextFold",label:k.kg("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=(0,m.pr)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:k.kg("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2135),weight:100}})}invoke(e,t,i){var n;const s=[],o=i.getSelections();if(o){for(const e of o){let t=e.endLineNumber;1===e.endColumn&&--t,t>e.startLineNumber&&(s.push({startLineNumber:e.startLineNumber,endLineNumber:t,type:void 0,isCollapsed:!0,source:1}),i.setSelection({startLineNumber:e.startLineNumber,startColumn:1,endLineNumber:e.startLineNumber,endColumn:1}))}if(s.length>0){s.sort(((e,t)=>e.startLineNumber-t.startLineNumber));const e=D.tz.sanitizeAndMerge(t.regions,s,null===(n=i.getModel())||void 0===n?void 0:n.getLineCount());t.updatePost(D.tz.fromFoldRanges(e))}}}}),(0,c.Fl)(class extends z{constructor(){super({id:"editor.removeManualFoldingRanges",label:k.kg("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2137),weight:100}})}invoke(e,t,i){const n=i.getSelections();if(n){const i=[];for(const e of n){const{startLineNumber:t,endLineNumber:n}=e;i.push(n>=t?{startLineNumber:t,endLineNumber:n}:{endLineNumber:n,startLineNumber:t})}t.removeManualRanges(i),e.triggerFoldingModelChanged()}}});for(let K=1;K<=7;K++)(0,c.xX)(new U({id:U.ID(K),label:k.kg("foldLevelAction.label","Fold Level {0}",K),alias:`Fold Level ${K}`,precondition:W,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2048|21+K),weight:100}}));A.w.registerCommand("_executeFoldingRangeProvider",(async function(e,...t){const[i]=t;if(!(i instanceof R.r))throw(0,o.Qg)();const n=e.get(M.u),r=e.get(O.S).getModel(i);if(!r)throw(0,o.Qg)();const a=e.get(P.pG);if(!a.getValue("editor.folding",{resource:i}))return[];const l=e.get(p.JZ),d=a.getValue("editor.foldingStrategy",{resource:i}),h={get limit(){return a.getValue("editor.foldingMaximumRegions",{resource:i})},update:(e,t)=>{}},c=new S.hW(r,l,h);let u=c;if("indentation"!==d){const e=V.getFoldingRangeProviders(n,r);e.length&&(u=new E.M(r,e,(()=>{}),h,c))}const m=await u.compute(s.X.None),f=[];try{if(m)for(let e=0;e<m.length;e++){const t=m.getType(e);f.push({start:m.getStartLineNumber(e),end:m.getEndLineNumber(e),kind:t?g.lO.fromValue(t):void 0})}return f}finally{u.dispose()}}))},46109:(e,t,i)=>{"use strict";i.d(t,{E0:()=>c,k0:()=>u,rv:()=>v});var n=i(10350),s=i(38361),o=i(31629),r=i(85845),a=i(61394),l=i(47612),d=i(25689);const h=(0,r.x1A)("editor.foldBackground",{light:(0,r.JO0)(r.seu,.3),dark:(0,r.JO0)(r.seu,.3),hcDark:null,hcLight:null},(0,o.kg)("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.x1A)("editorGutter.foldingControlForeground",{dark:r.t4B,light:r.t4B,hcDark:r.t4B,hcLight:r.t4B},(0,o.kg)("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));const c=(0,a.pU)("folding-expanded",n.W.chevronDown,(0,o.kg)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),u=(0,a.pU)("folding-collapsed",n.W.chevronRight,(0,o.kg)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),g=(0,a.pU)("folding-manual-collapsed",u,(0,o.kg)("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),p=(0,a.pU)("folding-manual-expanded",c,(0,o.kg)("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),m={color:(0,l.Yf)(h),position:1},f=(0,o.kg)("linesCollapsed","Click to expand the range."),_=(0,o.kg)("linesExpanded","Click to collapse the range.");class v{constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,i){return t?v.HIDDEN_RANGE_DECORATION:"never"===this.showFoldingControls?e?this.showFoldingHighlights?v.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:v.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:v.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?i?this.showFoldingHighlights?v.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?v.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.COLLAPSED_VISUAL_DECORATION:"mouseover"===this.showFoldingControls?i?v.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:v.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i?v.MANUALLY_EXPANDED_VISUAL_DECORATION:v.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}}v.COLLAPSED_VISUAL_DECORATION=s.kI.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.L.asClassName(u)}),v.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=s.kI.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.L.asClassName(u)}),v.MANUALLY_COLLAPSED_VISUAL_DECORATION=s.kI.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.L.asClassName(g)}),v.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=s.kI.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.L.asClassName(g)}),v.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=s.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f}),v.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=s.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f}),v.EXPANDED_VISUAL_DECORATION=s.kI.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+d.L.asClassName(c),linesDecorationsTooltip:_}),v.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=s.kI.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:d.L.asClassName(c),linesDecorationsTooltip:_}),v.MANUALLY_EXPANDED_VISUAL_DECORATION=s.kI.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+d.L.asClassName(p),linesDecorationsTooltip:_}),v.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=s.kI.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:d.L.asClassName(p),linesDecorationsTooltip:_}),v.NO_CONTROLS_EXPANDED_RANGE_DECORATION=s.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0}),v.HIDDEN_RANGE_DECORATION=s.kI.register({description:"folding-hidden-range-decoration",stickiness:1})},52903:(e,t,i)=>{"use strict";i.d(t,{AI:()=>g,GR:()=>u,JX:()=>f,W8:()=>h,bC:()=>a,cL:()=>p,dN:()=>d,kK:()=>m,pN:()=>r,pr:()=>_,sO:()=>c,uV:()=>l});var n=i(41234),s=i(44026),o=i(85600);class r{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new n.vl,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new s.tz(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort(((e,t)=>e.regionIndex-t.regionIndex));const t={};this._decorationProvider.changeDecorations((i=>{let n=0,s=-1,o=-1;const r=e=>{for(;n<e;){const e=this._regions.getEndLineNumber(n),t=this._regions.isCollapsed(n);if(e<=s){const s=0!==this.regions.getSource(n);i.changeDecorationOptions(this._editorDecorationIds[n],this._decorationProvider.getDecorationOption(t,e<=o,s))}t&&e>o&&(o=e),n++}};for(const a of e){const e=a.regionIndex,i=this._editorDecorationIds[e];if(i&&!t[i]){t[i]=!0,r(e);const n=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,n),s=Math.max(s,this._regions.getEndLineNumber(e))}}r(this._regions.length)})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){const t=new Array,i=t=>{for(const i of e)if(!(i.startLineNumber>t.endLineNumber||t.startLineNumber>i.endLineNumber))return!0;return!1};for(let n=0;n<this._regions.length;n++){const e=this._regions.toFoldRange(n);0!==e.source&&i(e)||t.push(e)}this.updatePost(s.tz.fromFoldRanges(t))}update(e,t=[]){const i=this._currentFoldedOrManualRanges(t),n=s.tz.sanitizeAndMerge(e,i,this._textModel.getLineCount());this.updatePost(s.tz.fromFoldRanges(n))}updatePost(e){const t=[];let i=-1;for(let n=0,s=e.length;n<s;n++){const s=e.getStartLineNumber(n),o=e.getEndLineNumber(n),r=e.isCollapsed(n),a=0!==e.getSource(n),l={startLineNumber:s,startColumn:this._textModel.getLineMaxColumn(s),endLineNumber:o,endColumn:this._textModel.getLineMaxColumn(o)+1};t.push({range:l,options:this._decorationProvider.getDecorationOption(r,o<=i,a)}),r&&o>i&&(i=o)}this._decorationProvider.changeDecorations((e=>this._editorDecorationIds=e.deltaDecorations(this._editorDecorationIds,t))),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e=[]){const t=(t,i)=>{for(const n of e)if(t<n&&n<=i)return!0;return!1},i=[];for(let n=0,s=this._regions.length;n<s;n++){let e=this.regions.isCollapsed(n);const s=this.regions.getSource(n);if(e||0!==s){const o=this._regions.toFoldRange(n),r=this._textModel.getDecorationRange(this._editorDecorationIds[n]);r&&(e&&t(r.startLineNumber,r.endLineNumber)&&(e=!1),i.push({startLineNumber:r.startLineNumber,endLineNumber:r.endLineNumber,type:o.type,isCollapsed:e,source:s}))}}return i}getMemento(){const e=this._currentFoldedOrManualRanges(),t=[],i=this._textModel.getLineCount();for(let n=0,s=e.length;n<s;n++){const s=e[n];if(s.startLineNumber>=s.endLineNumber||s.startLineNumber<1||s.endLineNumber>i)continue;const o=this._getLinesChecksum(s.startLineNumber+1,s.endLineNumber);t.push({startLineNumber:s.startLineNumber,endLineNumber:s.endLineNumber,isCollapsed:s.isCollapsed,source:s.source,checksum:o})}return t.length>0?t:void 0}applyMemento(e){var t,i;if(!Array.isArray(e))return;const n=[],o=this._textModel.getLineCount();for(const s of e){if(s.startLineNumber>=s.endLineNumber||s.startLineNumber<1||s.endLineNumber>o)continue;const e=this._getLinesChecksum(s.startLineNumber+1,s.endLineNumber);s.checksum&&e!==s.checksum||n.push({startLineNumber:s.startLineNumber,endLineNumber:s.endLineNumber,type:void 0,isCollapsed:null===(t=s.isCollapsed)||void 0===t||t,source:null!==(i=s.source)&&void 0!==i?i:0})}const r=s.tz.sanitizeAndMerge(this._regions,n,o);this.updatePost(s.tz.fromFoldRanges(r))}_getLinesChecksum(e,t){return(0,o.tW)(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){const i=[];if(this._regions){let n=this._regions.findRange(e),s=1;for(;n>=0;){const e=this._regions.toRegion(n);t&&!t(e,s)||i.push(e),s++,n=e.parentIndex}}return i}getRegionAtLine(e){if(this._regions){const t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){const i=[],n=e?e.regionIndex+1:0,s=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let o=n,r=this._regions.length;o<r;o++){const n=this._regions.toRegion(o);if(!(this._regions.getStartLineNumber(o)<s))break;for(;e.length>0&&!n.containedBy(e[e.length-1]);)e.pop();e.push(n),t(n,e.length)&&i.push(n)}}else for(let o=n,r=this._regions.length;o<r;o++){const e=this._regions.toRegion(o);if(!(this._regions.getStartLineNumber(o)<s))break;t&&!t(e)||i.push(e)}return i}}function a(e,t,i){const n=[];for(const s of i){const i=e.getRegionAtLine(s);if(i){const s=!i.isCollapsed;if(n.push(i),t>1){const o=e.getRegionsInside(i,((e,i)=>e.isCollapsed!==s&&i<t));n.push(...o)}}}e.toggleCollapseState(n)}function l(e,t,i=Number.MAX_VALUE,n){const s=[];if(n&&n.length>0)for(const o of n){const n=e.getRegionAtLine(o);if(n&&(n.isCollapsed!==t&&s.push(n),i>1)){const o=e.getRegionsInside(n,((e,n)=>e.isCollapsed!==t&&n<i));s.push(...o)}}else{const n=e.getRegionsInside(null,((e,n)=>e.isCollapsed!==t&&n<i));s.push(...n)}e.toggleCollapseState(s)}function d(e,t,i,n){const s=[];for(const o of n){const n=e.getAllRegionsAtLine(o,((e,n)=>e.isCollapsed!==t&&n<=i));s.push(...n)}e.toggleCollapseState(s)}function h(e,t,i){const n=[];for(const s of i){const i=e.getAllRegionsAtLine(s,(e=>e.isCollapsed!==t));i.length>0&&n.push(i[0])}e.toggleCollapseState(n)}function c(e,t,i,n){const s=e.getRegionsInside(null,((e,s)=>s===t&&e.isCollapsed!==i&&!n.some((t=>e.containsLine(t)))));e.toggleCollapseState(s)}function u(e,t,i){const n=[];for(const o of i){const t=e.getAllRegionsAtLine(o,void 0);t.length>0&&n.push(t[0])}const s=e.getRegionsInside(null,(e=>n.every((t=>!t.containedBy(e)&&!e.containedBy(t)))&&e.isCollapsed!==t));e.toggleCollapseState(s)}function g(e,t,i){const n=e.textModel,s=e.regions,o=[];for(let r=s.length-1;r>=0;r--)if(i!==s.isCollapsed(r)){const e=s.getStartLineNumber(r);t.test(n.getLineContent(e))&&o.push(s.toRegion(r))}e.toggleCollapseState(o)}function p(e,t,i){const n=e.regions,s=[];for(let o=n.length-1;o>=0;o--)i!==n.isCollapsed(o)&&t===n.getType(o)&&s.push(n.toRegion(o));e.toggleCollapseState(s)}function m(e,t){let i=null;const n=t.getRegionAtLine(e);if(null!==n&&(i=n.startLineNumber,e===i)){const e=n.parentIndex;i=-1!==e?t.regions.getStartLineNumber(e):null}return i}function f(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){if(e!==i.startLineNumber)return i.startLineNumber;{const e=i.parentIndex;let n=0;for(-1!==e&&(n=t.regions.getStartLineNumber(i.parentIndex));null!==i;){if(!(i.regionIndex>0))return null;if(i=t.regions.toRegion(i.regionIndex-1),i.startLineNumber<=n)return null;if(i.parentIndex===e)return i.startLineNumber}}}else if(t.regions.length>0)for(i=t.regions.toRegion(t.regions.length-1);null!==i;){if(i.startLineNumber<e)return i.startLineNumber;i=i.regionIndex>0?t.regions.toRegion(i.regionIndex-1):null}return null}function _(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){const e=i.parentIndex;let n=0;if(-1!==e)n=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;n=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==i;){if(!(i.regionIndex<t.regions.length))return null;if(i=t.regions.toRegion(i.regionIndex+1),i.startLineNumber>=n)return null;if(i.parentIndex===e)return i.startLineNumber}}else if(t.regions.length>0)for(i=t.regions.toRegion(0);null!==i;){if(i.startLineNumber>e)return i.startLineNumber;i=i.regionIndex<t.regions.length?t.regions.toRegion(i.regionIndex+1):null}return null}},44026:(e,t,i)=>{"use strict";i.d(t,{tz:()=>a,yy:()=>s});const n={0:" ",1:"u",2:"r"},s=16777215,o=4278190080;class r{constructor(e){const t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){const t=e/32|0,i=e%32;return 0!==(this._states[t]&1<<i)}set(e,t){const i=e/32|0,n=e%32,s=this._states[i];this._states[i]=t?s|1<<n:s&~(1<<n)}}class a{constructor(e,t,i){if(e.length!==t.length||e.length>65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new r(e.length),this._userDefinedStates=new r(e.length),this._recoveredStates=new r(e.length),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const e=[],t=(t,i)=>{const n=e[e.length-1];return this.getStartLineNumber(n)<=t&&this.getEndLineNumber(n)>=i};for(let i=0,n=this._startIndexes.length;i<n;i++){const n=this._startIndexes[i],o=this._endIndexes[i];if(n>s||o>s)throw new Error("startLineNumber or endLineNumber must not exceed "+s);for(;e.length>0&&!t(n,o);)e.pop();const r=e.length>0?e[e.length-1]:-1;e.push(i),this._startIndexes[i]=n+((255&r)<<24),this._endIndexes[i]=o+((65280&r)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&s}getEndLineNumber(e){return this._endIndexes[e]&s}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return this._collapseStates.get(e)}setCollapsed(e,t){this._collapseStates.set(e,t)}isUserDefined(e){return this._userDefinedStates.get(e)}setUserDefined(e,t){return this._userDefinedStates.set(e,t)}isRecovered(e){return this._recoveredStates.get(e)}setRecovered(e,t){return this._recoveredStates.set(e,t)}getSource(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}setSource(e,t){1===t?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):2===t?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let n=0;n<this._types.length;n++)this._types[n]===e&&(this.setCollapsed(n,t),i=!0);return i}toRegion(e){return new l(this,e)}getParentIndex(e){this.ensureParentIndices();const t=((this._startIndexes[e]&o)>>>24)+((this._endIndexes[e]&o)>>>16);return 65535===t?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t<i;){const n=Math.floor((t+i)/2);e<this.getStartLineNumber(n)?i=n:t=n+1}return t-1}findRange(e){let t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){const e=[];for(let t=0;t<this.length;t++)e[t]=`[${n[this.getSource(t)]}${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/${this.getEndLineNumber(t)}`;return e.join(", ")}toFoldRange(e){return{startLineNumber:this._startIndexes[e]&s,endLineNumber:this._endIndexes[e]&s,type:this._types?this._types[e]:void 0,isCollapsed:this.isCollapsed(e),source:this.getSource(e)}}static fromFoldRanges(e){const t=e.length,i=new Uint32Array(t),n=new Uint32Array(t);let s=[],o=!1;for(let a=0;a<t;a++){const t=e[a];i[a]=t.startLineNumber,n[a]=t.endLineNumber,s.push(t.type),t.type&&(o=!0)}o||(s=void 0);const r=new a(i,n,s);for(let a=0;a<t;a++)e[a].isCollapsed&&r.setCollapsed(a,!0),r.setSource(a,e[a].source);return r}static sanitizeAndMerge(e,t,i){i=null!==i&&void 0!==i?i:Number.MAX_VALUE;const n=(e,t)=>Array.isArray(e)?i=>i<t?e[i]:void 0:i=>i<t?e.toFoldRange(i):void 0,s=n(e,e.length),o=n(t,t.length);let r=0,a=0,l=s(0),d=o(0);const h=[];let c,u=0;const g=[];for(;l||d;){let e;if(d&&(!l||l.startLineNumber>=d.startLineNumber))l&&l.startLineNumber===d.startLineNumber?(1===d.source?e=d:(e=l,e.isCollapsed=d.isCollapsed&&l.endLineNumber===d.endLineNumber,e.source=0),l=s(++r)):(e=d,d.isCollapsed&&0===d.source&&(e.source=2)),d=o(++a);else{let t=a,i=d;for(;;){if(!i||i.startLineNumber>l.endLineNumber){e=l;break}if(1===i.source&&i.endLineNumber>l.endLineNumber)break;i=o(++t)}l=s(++r)}if(e){for(;c&&c.endLineNumber<e.startLineNumber;)c=h.pop();e.endLineNumber>e.startLineNumber&&e.startLineNumber>u&&e.endLineNumber<=i&&(!c||c.endLineNumber>=e.endLineNumber)&&(g.push(e),u=e.startLineNumber,c&&h.push(c),c=e)}}return g}}class l{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}},76495:(e,t,i)=>{"use strict";i.d(t,{hW:()=>o});var n=i(78049),s=i(44026);class o{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=i,this.id="indent"}dispose(){}compute(e){const t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=t&&!!t.offSide,s=t&&t.markers;return Promise.resolve(function(e,t,i,s=a){const o=e.getOptions().tabSize,l=new r(s);let d;i&&(d=new RegExp(`(${i.start.source})|(?:${i.end.source})`));const h=[],c=e.getLineCount()+1;h.push({indent:-1,endAbove:c,line:c});for(let r=e.getLineCount();r>0;r--){const i=e.getLineContent(r),s=(0,n.G)(i,o);let a,c=h[h.length-1];if(-1!==s){if(d&&(a=i.match(d))){if(!a[1]){h.push({indent:-2,endAbove:r,line:r});continue}{let e=h.length-1;for(;e>0&&-2!==h[e].indent;)e--;if(e>0){h.length=e+1,c=h[e],l.insertFirst(r,c.line,s),c.line=r,c.indent=s,c.endAbove=r;continue}}}if(c.indent>s){do{h.pop(),c=h[h.length-1]}while(c.indent>s);const e=c.endAbove-1;e-r>=1&&l.insertFirst(r,e,s)}c.indent===s?c.endAbove=r:h.push({indent:s,endAbove:r,line:r})}else t&&(c.endAbove=r)}return l.toIndentRanges(e)}(this.editorModel,i,s,this.foldingRangesLimit))}}class r{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>s.yy||t>s.yy)return;const n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){const t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=this._length-1,n=0;i>=0;i--,n++)e[n]=this._startIndexes[i],t[n]=this._endIndexes[i];return new s.tz(e,t)}{this._foldingRangesLimit.update(this._length,t);let i=0,o=this._indentOccurrences.length;for(let e=0;e<this._indentOccurrences.length;e++){const n=this._indentOccurrences[e];if(n){if(n+i>t){o=e;break}i+=n}}const r=e.getOptions().tabSize,a=new Uint32Array(t),l=new Uint32Array(t);for(let s=this._length-1,d=0;s>=0;s--){const h=this._startIndexes[s],c=e.getLineContent(h),u=(0,n.G)(c,r);(u<o||u===o&&i++<t)&&(a[d]=h,l[d]=this._endIndexes[s],d++)}return new s.tz(a,l)}}}const a={limit:5e3,update:()=>{}}},87784:(e,t,i)=>{"use strict";i.d(t,{M:()=>a});var n=i(64383),s=i(5662),o=i(44026);const r={};class a{constructor(e,t,i,n,o){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=i,this.foldingRangesLimit=n,this.fallbackRangeProvider=o,this.id="syntax",this.disposables=new s.Cm,o&&this.disposables.add(o);for(const s of t)"function"===typeof s.onDidChange&&this.disposables.add(s.onDidChange(i))}compute(e){return function(e,t,i){let s=null;const o=e.map(((e,o)=>Promise.resolve(e.provideFoldingRanges(t,r,i)).then((e=>{if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(s)||(s=[]);const i=t.getLineCount();for(const t of e)t.start>0&&t.end>t.start&&t.end<=i&&s.push({start:t.start,end:t.end,rank:o,kind:t.kind})}}),n.M_)));return Promise.all(o).then((e=>s))}(this.providers,this.editorModel,e).then((t=>{var i,n;if(t){return function(e,t){const i=e.sort(((e,t)=>{let i=e.start-t.start;return 0===i&&(i=e.rank-t.rank),i})),n=new l(t);let s;const o=[];for(const r of i)if(s){if(r.start>s.start)if(r.end<=s.end)o.push(s),s=r,n.add(r.start,r.end,r.kind&&r.kind.value,o.length);else{if(r.start>s.end){do{s=o.pop()}while(s&&r.start>s.end);s&&o.push(s),s=r}n.add(r.start,r.end,r.kind&&r.kind.value,o.length)}}else s=r,n.add(r.start,r.end,r.kind&&r.kind.value,o.length);return n.toIndentRanges()}(t,this.foldingRangesLimit)}return null!==(n=null===(i=this.fallbackRangeProvider)||void 0===i?void 0:i.compute(e))&&void 0!==n?n:null}))}dispose(){this.disposables.dispose()}}class l{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,n){if(e>o.yy||t>o.yy)return;const s=this._length;this._startIndexes[s]=e,this._endIndexes[s]=t,this._nestingLevels[s]=n,this._types[s]=i,this._length++,n<30&&(this._nestingLevelCounts[n]=(this._nestingLevelCounts[n]||0)+1)}toIndentRanges(){const e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=0;i<this._length;i++)e[i]=this._startIndexes[i],t[i]=this._endIndexes[i];return new o.tz(e,t,this._types)}{this._foldingRangesLimit.update(this._length,e);let t=0,i=this._nestingLevelCounts.length;for(let o=0;o<this._nestingLevelCounts.length;o++){const n=this._nestingLevelCounts[o];if(n){if(n+t>e){i=o;break}t+=n}}const n=new Uint32Array(e),s=new Uint32Array(e),r=[];for(let o=0,a=0;o<this._length;o++){const l=this._nestingLevels[o];(l<i||l===i&&t++<e)&&(n[a]=this._startIndexes[o],s[a]=this._endIndexes[o],r[a]=this._types[o],a++)}return new o.tz(n,s,r)}}}},70552:(e,t,i)=>{"use strict";var n=i(31450),s=i(79027),o=i(31629);class r extends n.ks{constructor(){super({id:"editor.action.fontZoomIn",label:o.kg("EditorFontZoomIn.label","Increase Editor Font Size"),alias:"Increase Editor Font Size",precondition:void 0})}run(e,t){s.D.setZoomLevel(s.D.getZoomLevel()+1)}}class a extends n.ks{constructor(){super({id:"editor.action.fontZoomOut",label:o.kg("EditorFontZoomOut.label","Decrease Editor Font Size"),alias:"Decrease Editor Font Size",precondition:void 0})}run(e,t){s.D.setZoomLevel(s.D.getZoomLevel()-1)}}class l extends n.ks{constructor(){super({id:"editor.action.fontZoomReset",label:o.kg("EditorFontZoomReset.label","Reset Editor Font Size"),alias:"Reset Editor Font Size",precondition:void 0})}run(e,t){s.D.setZoomLevel(0)}}(0,n.Fl)(r),(0,n.Fl)(a),(0,n.Fl)(l)},49079:(e,t,i)=>{"use strict";i.d(t,{Pj:()=>L,jX:()=>D,vg:()=>N,_V:()=>I});var n=i(25890),s=i(18447),o=i(64383),r=i(42522),a=i(58925),l=i(631),d=i(79400),h=i(50868),c=i(34326),u=i(83069),g=i(36677),p=i(75326),m=i(10920),f=i(18938),_=i(36998),v=i(50091);class b{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"===typeof e?e.toLowerCase():e._lower}}class C{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(b.toKey(e))}has(e){return this._set.has(b.toKey(e))}}var y=i(63591),w=i(56942),S=i(18801),k=i(87213);function x(e,t,i){const n=[],s=new C,o=e.ordered(i);for(const a of o)n.push(a),a.extensionId&&s.add(a.extensionId);const r=t.ordered(i);for(const a of r){if(a.extensionId){if(s.has(a.extensionId))continue;s.add(a.extensionId)}n.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits:(e,t,i)=>a.provideDocumentRangeFormattingEdits(e,e.getFullModelRange(),t,i)})}return n}class L{static setFormatterSelector(e){return{dispose:L._selectors.unshift(e)}}static async select(e,t,i,n){if(0===e.length)return;const s=r.f.first(L._selectors);return s?await s(e,t,i,n):void 0}}async function D(e,t,i,n,s,o,r){const a=e.get(y._Y),{documentRangeFormattingEditProvider:l}=e.get(w.u),d=(0,c.z9)(t)?t.getModel():t,h=l.ordered(d),u=await L.select(h,d,n,2);u&&(s.report(u),await a.invokeFunction(E,u,t,i,o,r))}async function E(e,t,i,s,o,r){var a,l;const d=e.get(m.w),u=e.get(S.rr),f=e.get(k.Nt);let v,b;(0,c.z9)(i)?(v=i.getModel(),b=new h.gI(i,5,void 0,o)):(v=i,b=new h.ER(i,o));const C=[];let y=0;for(const h of(0,n._j)(s).sort(g.Q.compareRangesUsingStarts))y>0&&g.Q.areIntersectingOrTouching(C[y-1],h)?C[y-1]=g.Q.fromPositions(C[y-1].getStartPosition(),h.getEndPosition()):y=C.push(h);const w=async e=>{var i,n;u.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(i=t.extensionId)||void 0===i?void 0:i.value,e);const s=await t.provideDocumentRangeFormattingEdits(v,e,v.getFormattingOptions(),b.token)||[];return u.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(n=t.extensionId)||void 0===n?void 0:n.value,s),s},x=(e,t)=>{if(!e.length||!t.length)return!1;const i=e.reduce(((e,t)=>g.Q.plusRange(e,t.range)),e[0].range);if(!t.some((e=>g.Q.intersectRanges(i,e.range))))return!1;for(const n of e)for(const e of t)if(g.Q.intersectRanges(n.range,e.range))return!0;return!1},L=[],D=[];try{if("function"===typeof t.provideDocumentRangesFormattingEdits){u.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(a=t.extensionId)||void 0===a?void 0:a.value,C);const e=await t.provideDocumentRangesFormattingEdits(v,C,v.getFormattingOptions(),b.token)||[];u.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(l=t.extensionId)||void 0===l?void 0:l.value,e),D.push(e)}else{for(const e of C){if(b.token.isCancellationRequested)return!0;D.push(await w(e))}for(let e=0;e<C.length;++e)for(let t=e+1;t<C.length;++t){if(b.token.isCancellationRequested)return!0;if(x(D[e],D[t])){const i=g.Q.plusRange(C[e],C[t]),n=await w(i);C.splice(t,1),C.splice(e,1),C.push(i),D.splice(t,1),D.splice(e,1),D.push(n),e=0,t=0}}}for(const e of D){if(b.token.isCancellationRequested)return!0;const t=await d.computeMoreMinimalEdits(v.uri,e);t&&L.push(...t)}}finally{b.dispose()}if(0===L.length)return!1;if((0,c.z9)(i))_.c.execute(i,L,!0),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=L,t=new p.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);v.pushEditOperations([t],L.map((e=>({text:e.text,range:g.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.Q.areIntersectingOrTouching(i,t))return[new p.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return f.playSignal(k.Rh.format,{userGesture:r}),!0}async function N(e,t,i,n,s,o){const r=e.get(y._Y),a=e.get(w.u),l=(0,c.z9)(t)?t.getModel():t,d=x(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,l),h=await L.select(d,l,i,1);h&&(n.report(h),await r.invokeFunction(T,h,t,i,s,o))}async function T(e,t,i,n,s,o){const r=e.get(m.w),a=e.get(k.Nt);let l,d,u;(0,c.z9)(i)?(l=i.getModel(),d=new h.gI(i,5,void 0,s)):(l=i,d=new h.ER(i,s));try{const e=await t.provideDocumentFormattingEdits(l,l.getFormattingOptions(),d.token);if(u=await r.computeMoreMinimalEdits(l.uri,e),d.token.isCancellationRequested)return!0}finally{d.dispose()}if(!u||0===u.length)return!1;if((0,c.z9)(i))_.c.execute(i,u,2!==n),2!==n&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=u,t=new p.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);l.pushEditOperations([t],u.map((e=>({text:e.text,range:g.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.Q.areIntersectingOrTouching(i,t))return[new p.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return a.playSignal(k.Rh.format,{userGesture:o}),!0}function I(e,t,i,n,s,r,a){const l=t.onTypeFormattingEditProvider.ordered(i);return 0===l.length||l[0].autoFormatTriggerCharacters.indexOf(s)<0?Promise.resolve(void 0):Promise.resolve(l[0].provideOnTypeFormattingEdits(i,n,s,r,a)).catch(o.M_).then((t=>e.computeMoreMinimalEdits(i.uri,t)))}L._selectors=new a.w,v.w.registerCommand("_executeFormatRangeProvider",(async function(e,...t){const[i,r,a]=t;(0,l.j)(d.r.isUri(i)),(0,l.j)(g.Q.isIRange(r));const h=e.get(f.b),c=e.get(m.w),u=e.get(w.u),p=await h.createModelReference(i);try{return async function(e,t,i,s,r,a){const l=t.documentRangeFormattingEditProvider.ordered(i);for(const d of l){const t=await Promise.resolve(d.provideDocumentRangeFormattingEdits(i,s,r,a)).catch(o.M_);if((0,n.EI)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(c,u,p.object.textEditorModel,g.Q.lift(r),a,s.X.None)}finally{p.dispose()}})),v.w.registerCommand("_executeFormatDocumentProvider",(async function(e,...t){const[i,r]=t;(0,l.j)(d.r.isUri(i));const a=e.get(f.b),h=e.get(m.w),c=e.get(w.u),u=await a.createModelReference(i);try{return async function(e,t,i,s,r){const a=x(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i);for(const l of a){const t=await Promise.resolve(l.provideDocumentFormattingEdits(i,s,r)).catch(o.M_);if((0,n.EI)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(h,c,u.object.textEditorModel,r,s.X.None)}finally{u.dispose()}})),v.w.registerCommand("_executeFormatOnTypeProvider",(async function(e,...t){const[i,n,o,r]=t;(0,l.j)(d.r.isUri(i)),(0,l.j)(u.y.isIPosition(n)),(0,l.j)("string"===typeof o);const a=e.get(f.b),h=e.get(m.w),c=e.get(w.u),g=await a.createModelReference(i);try{return I(h,c,g.object.textEditorModel,u.y.lift(n),o,r,s.X.None)}finally{g.dispose()}}))},48279:(e,t,i)=>{"use strict";var n=i(25890),s=i(18447),o=i(64383),r=i(24939),a=i(5662),l=i(31450),d=i(80301),h=i(60534),c=i(36677),u=i(60002),g=i(10920),p=i(56942),m=i(49079),f=i(36998),_=i(31629),v=i(87213),b=i(50091),C=i(32848),y=i(63591),w=i(73823),S=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},k=function(e,t){return function(i,n){t(i,n,e)}};let x=class{constructor(e,t,i,n){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._accessibilitySignalService=n,this._disposables=new a.Cm,this._sessionDisposables=new a.Cm,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(56)&&this._update()}))),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new h.y;for(const n of t.autoFormatTriggerCharacters)i.add(n.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType((e=>{const t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))})))}_trigger(e){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),o=new s.Q,r=this._editor.onDidChangeModelContent((e=>{if(e.isFlush)return o.cancel(),void r.dispose();for(let t=0,n=e.changes.length;t<n;t++){if(e.changes[t].range.endLineNumber<=i.lineNumber)return o.cancel(),void r.dispose()}}));(0,m._V)(this._workerService,this._languageFeaturesService,t,i,e,t.getFormattingOptions(),o.token).then((e=>{o.token.isCancellationRequested||(0,n.EI)(e)&&(this._accessibilitySignalService.playSignal(v.Rh.format,{userGesture:!1}),f.c.execute(this._editor,e,!0))})).finally((()=>{r.dispose()}))}};x.ID="editor.contrib.autoFormat",x=S([k(1,p.u),k(2,g.w),k(3,v.Nt)],x);let L=class{constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new a.Cm,this._callOnModel=new a.Cm,this._callOnDispose.add(e.onDidChangeConfiguration((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModel((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModelLanguage((()=>this._update()))),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((({range:e})=>this._trigger(e))))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(m.jX,this.editor,e,2,w.ke.None,s.X.None,!1).catch(o.dz))}};L.ID="editor.contrib.formatOnPaste",L=S([k(1,p.u),k(2,y._Y)],L);class D extends l.ks{constructor(){super({id:"editor.action.formatDocument",label:_.kg("formatDocument.label","Format Document"),alias:"Format Document",precondition:C.M$.and(u.R.notInCompositeEditor,u.R.writable,u.R.hasDocumentFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t){if(t.hasModel()){const i=e.get(y._Y),n=e.get(w.N8);await n.showWhile(i.invokeFunction(m.vg,t,1,w.ke.None,s.X.None,!0),250)}}}class E extends l.ks{constructor(){super({id:"editor.action.formatSelection",label:_.kg("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:C.M$.and(u.R.writable,u.R.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2084),weight:100},contextMenuOpts:{when:u.R.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;const i=e.get(y._Y),n=t.getModel(),o=t.getSelections().map((e=>e.isEmpty()?new c.Q(e.startLineNumber,1,e.startLineNumber,n.getLineMaxColumn(e.startLineNumber)):e)),r=e.get(w.N8);await r.showWhile(i.invokeFunction(m.jX,t,o,1,w.ke.None,s.X.None,!0),250)}}(0,l.HW)(x.ID,x,2),(0,l.HW)(L.ID,L,2),(0,l.Fl)(D),(0,l.Fl)(E),b.w.registerCommand("editor.action.format",(async e=>{const t=e.get(d.T).getFocusedCodeEditor();if(!t||!t.hasModel())return;const i=e.get(b.d);t.getSelection().isEmpty()?await i.executeCommand("editor.action.formatDocument"):await i.executeCommand("editor.action.formatSelection")}))},36998:(e,t,i)=>{"use strict";i.d(t,{c:()=>r});var n=i(7085),s=i(36677),o=i(55190);class r{static _handleEolEdits(e,t){let i;const n=[];for(const s of t)"number"===typeof s.eol&&(i=s.eol),s.range&&"string"===typeof s.text&&n.push(s);return"number"===typeof i&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const a=o.D.capture(e),l=r._handleEolEdits(e,t);1===l.length&&r._isFullModelReplaceEdit(e,l[0])?e.executeEdits("formatEditsCommand",l.map((e=>n.k.replace(s.Q.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",l.map((e=>n.k.replaceMove(s.Q.lift(e.range),e.text)))),i&&e.pushUndoStop(),a.restoreRelativeVerticalPositionOfCursor(e)}}},65877:(e,t,i)=>{"use strict";i.d(t,{j:()=>re,i:()=>le});var n=i(10350),s=i(5662),o=i(31450),r=i(80301),a=i(83069),l=i(36677),d=i(60002),h=i(25890),c=i(41234),u=i(58925),g=i(91508),p=i(79400),m=i(14718),f=i(63591),_=i(75147),v=i(84001),b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};class y{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let w=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new c.vl,this.onDidChange=this._onDidChange.event,this._dispoables=new s.Cm,this._markers=[],this._nextIdx=-1,p.r.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),o=(e,t)=>{let i=(0,g.UD)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===n?l.Q.compareRangesUsingStarts(e,t)||_.cj.compare(e.severity,t.severity):_.cj.compare(e.severity,t.severity)||l.Q.compareRangesUsingStarts(e,t)),i},r=()=>{this._markers=this._markerService.read({resource:p.r.isUri(e)?e:void 0,severities:_.cj.Error|_.cj.Warning|_.cj.Info}),"function"===typeof e&&(this._markers=this._markers.filter((e=>this._resourceFilter(e.resource)))),this._markers.sort(o)};r(),this._dispoables.add(t.onMarkerChanged((e=>{this._resourceFilter&&!e.some((e=>this._resourceFilter(e)))||(r(),this._nextIdx=-1,this._onDidChange.fire())})))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new y(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex((t=>t.resource.toString()===e.uri.toString()));s<0&&(s=(0,h.El)(this._markers,{resource:e.uri},((e,t)=>(0,g.UD)(e.resource.toString(),t.resource.toString()))),s<0&&(s=~s));for(let o=s;o<this._markers.length;o++){let i=l.Q.lift(this._markers[o]);if(i.isEmpty()){const t=e.getWordAtPosition(i.getStartPosition());t&&(i=new l.Q(i.startLineNumber,t.startColumn,i.startLineNumber,t.endColumn))}if(t&&(i.containsPosition(t)||t.isBeforeOrEqual(i.getStartPosition()))){this._nextIdx=o,n=!0;break}if(this._markers[o].resource.toString()!==e.uri.toString())break}n||(this._nextIdx=i?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,i){if(0===this._markers.length)return!1;const n=this._nextIdx;return-1===this._nextIdx?this._initIdx(t,i,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),n!==this._nextIdx}find(e,t){let i=this._markers.findIndex((t=>t.resource.toString()===e.toString()));if(!(i<0))for(;i<this._markers.length;i++)if(l.Q.containsPosition(this._markers[i],t))return new y(this._markers[i],i+1,this._markers.length)}};w=b([C(1,_.DR),C(2,v.pG)],w);const S=(0,f.u1)("IMarkerNavigationService");let k=class{constructor(e,t){this._markerService=e,this._configService=t,this._provider=new u.w}getMarkerList(e){for(const t of this._provider){const i=t.getMarkerList(e);if(i)return i}return new w(e,this._markerService,this._configService)}};k=b([C(0,_.DR),C(1,v.pG)],k),(0,m.v)(S,k,1);var x,L=i(31629),D=i(27195),E=i(32848),N=i(61394),T=i(8597),I=i(31295),M=i(47661),A=i(89403),R=i(84226),O=i(43878),P=i(67841),F=i(49099),B=i(25689),W=i(42291);!function(e){e.className=function(e){switch(e){case W.A.Ignore:return"severity-ignore "+B.L.asClassName(n.W.info);case W.A.Info:return B.L.asClassName(n.W.info);case W.A.Warning:return B.L.asClassName(n.W.warning);case W.A.Error:return B.L.asClassName(n.W.error);default:return""}}}(x||(x={}));var V,H=i(85845),z=i(47612),j=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},U=function(e,t){return function(i,n){t(i,n,e)}};class K{constructor(e,t,i,n,o){this._openerService=n,this._labelService=o,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new s.Cm,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(T.b2(this._relatedBlock,"click",(e=>{e.preventDefault();const t=this._relatedDiagnostics.get(e.target);t&&i(t)}))),this._scrollable=new I.Se(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((e=>{r.style.left=`-${e.scrollLeft}px`,r.style.top=`-${e.scrollTop}px`}))),this._disposables.add(this._scrollable)}dispose(){(0,s.AS)(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let o=((null===t||void 0===t?void 0:t.length)||0)+2;s&&(o+="string"===typeof s?s.length:s.value.length);const r=(0,g.uz)(i);this._lines=r.length,this._longestLineLength=0;for(const h of r)this._longestLineLength=Math.max(h.length+o,this._longestLineLength);T.w_(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const h of r)a=document.createElement("div"),a.innerText=h,""===h&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if(t||s){const e=document.createElement("span");if(e.classList.add("details"),a.appendChild(e),t){const i=document.createElement("span");i.innerText=t,i.classList.add("source"),e.appendChild(i)}if(s)if("string"===typeof s){const t=document.createElement("span");t.innerText=`(${s})`,t.classList.add("code"),e.appendChild(t)}else{this._codeLink=T.$("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(s.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()};T.BC(this._codeLink,T.$("span")).innerText=s.value,e.appendChild(this._codeLink)}}if(T.w_(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,h.EI)(n)){const e=this._relatedBlock.appendChild(document.createElement("div"));e.style.paddingTop=`${Math.floor(.66*this._editor.getOption(67))}px`,this._lines+=1;for(const t of n){const i=document.createElement("div"),n=document.createElement("a");n.classList.add("filename"),n.innerText=`${this._labelService.getUriBasenameLabel(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,n.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(n,t);const s=document.createElement("span");s.innerText=t.message,i.appendChild(n),i.appendChild(s),this._lines+=1,e.appendChild(i)}}const l=this._editor.getOption(50),d=Math.ceil(l.typicalFullwidthCharacterWidth*this._longestLineLength*.75),c=l.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:c})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case _.cj.Error:t=L.kg("Error","Error");break;case _.cj.Warning:t=L.kg("Warning","Warning");break;case _.cj.Info:t=L.kg("Info","Info");break;case _.cj.Hint:t=L.kg("Hint","Hint")}let i=L.kg("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();if(n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1){i=`${n.getLineContent(e.startLineNumber)}, ${i}`}return i}}let G=V=class extends R.j6{constructor(e,t,i,n,o,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},o),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new s.Cm,this._onDidSelectRelatedInformation=new c.vl,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=_.cj.Warning,this._backgroundColor=M.Q1.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(ie);let t=Y,i=Z;this._severity===_.cj.Warning?(t=X,i=J):this._severity===_.cj.Info&&(t=ee,i=te);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(R._X),secondaryHeadingColor:e.getColor(R.e3)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun((e=>this.editor.focus())));const t=[],i=this._menuService.createMenu(V.TitleMenu,this._contextKeyService);(0,O.Ot)(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=T.BC(e,T.$(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new K(this._container,this.editor,(e=>this._onDidSelectRelatedInformation.fire(e)),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=l.Q.lift(e),s=this.editor.getPosition(),o=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(o,this.computeRequiredHeight());const r=this.editor.getModel();if(r){const e=i>1?L.kg("problems","{0} of {1} problems",t,i):L.kg("change","{0} of {1} problem",t,i);this.setTitle((0,A.P8)(r.uri),e)}this._icon.className=`codicon ${x.className(_.cj.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(o,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};G.TitleMenu=new D.D8("gotoErrorTitleMenu"),G=V=j([U(1,z.Gy),U(2,F.C),U(3,D.ez),U(4,f._Y),U(5,E.fN),U(6,P.L)],G);const $=(0,H.yLr)(H.Rbi,H.AN$),q=(0,H.yLr)(H.Hng,H.Stt),Q=(0,H.yLr)(H.pOz,H.IIb),Y=(0,H.x1A)("editorMarkerNavigationError.background",{dark:$,light:$,hcDark:H.b1q,hcLight:H.b1q},L.kg("editorMarkerNavigationError","Editor marker navigation widget error color.")),Z=(0,H.x1A)("editorMarkerNavigationError.headerBackground",{dark:(0,H.JO0)(Y,.1),light:(0,H.JO0)(Y,.1),hcDark:null,hcLight:null},L.kg("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),X=(0,H.x1A)("editorMarkerNavigationWarning.background",{dark:q,light:q,hcDark:H.b1q,hcLight:H.b1q},L.kg("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),J=(0,H.x1A)("editorMarkerNavigationWarning.headerBackground",{dark:(0,H.JO0)(X,.1),light:(0,H.JO0)(X,.1),hcDark:"#0C141F",hcLight:(0,H.JO0)(X,.2)},L.kg("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),ee=(0,H.x1A)("editorMarkerNavigationInfo.background",{dark:Q,light:Q,hcDark:H.b1q,hcLight:H.b1q},L.kg("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),te=(0,H.x1A)("editorMarkerNavigationInfo.headerBackground",{dark:(0,H.JO0)(ee,.1),light:(0,H.JO0)(ee,.1),hcDark:null,hcLight:null},L.kg("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),ie=(0,H.x1A)("editorMarkerNavigation.background",{dark:H.YtV,light:H.YtV,hcDark:H.YtV,hcLight:H.YtV},L.kg("editorMarkerNavigationBackground","Editor marker navigation widget background."));var ne,se=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},oe=function(e,t){return function(i,n){t(i,n,e)}};let re=ne=class{static get(e){return e.getContribution(ne.ID)}constructor(e,t,i,n,o){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=o,this._sessionDispoables=new s.Cm,this._editor=e,this._widgetVisible=he.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(G,this._editor),this._widget.onDidClose((()=>this.close()),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition((e=>{var t,i,n;(null===(t=this._model)||void 0===t?void 0:t.selected)&&l.Q.containsPosition(null===(i=this._model)||void 0===i?void 0:i.selected.marker,e.position)||null===(n=this._model)||void 0===n||n.resetIndex()}))),this._sessionDispoables.add(this._model.onDidChange((()=>{if(!this._widget||!this._widget.position||!this._model)return;const e=this._model.find(this._editor.getModel().uri,this._widget.position);e?this._widget.updateMarker(e.marker):this._widget.showStale()}))),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation((e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:l.Q.lift(e).collapseToStart()}},this._editor),this.close(!1)}))),this._sessionDispoables.add(this._editor.onDidChangeModel((()=>this._cleanUp()))),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new a.y(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}async nagivate(e,t){var i,n;if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const o=await this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);o&&(null===(i=ne.get(o))||void 0===i||i.close(),null===(n=ne.get(o))||void 0===n||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}}};re.ID="editor.contrib.markerController",re=ne=se([oe(1,S),oe(2,E.fN),oe(3,r.T),oe(4,f._Y)],re);class ae extends o.ks{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}async run(e,t){var i;t.hasModel()&&(null===(i=re.get(t))||void 0===i||i.nagivate(this._next,this._multiFile))}}class le extends ae{constructor(){super(!0,!1,{id:le.ID,label:le.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.R.focus,primary:578,weight:100},menuOpts:{menuId:G.TitleMenu,title:le.LABEL,icon:(0,N.pU)("marker-navigation-next",n.W.arrowDown,L.kg("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}le.ID="editor.action.marker.next",le.LABEL=L.kg("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class de extends ae{constructor(){super(!1,!1,{id:de.ID,label:de.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.R.focus,primary:1602,weight:100},menuOpts:{menuId:G.TitleMenu,title:de.LABEL,icon:(0,N.pU)("marker-navigation-previous",n.W.arrowUp,L.kg("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}de.ID="editor.action.marker.prev",de.LABEL=L.kg("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");(0,o.HW)(re.ID,re,4),(0,o.Fl)(le),(0,o.Fl)(de),(0,o.Fl)(class extends ae{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:L.kg("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.R.focus,primary:66,weight:100},menuOpts:{menuId:D.D8.MenubarGoMenu,title:L.kg({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),(0,o.Fl)(class extends ae{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:L.kg("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.R.focus,primary:1090,weight:100},menuOpts:{menuId:D.D8.MenubarGoMenu,title:L.kg({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const he=new E.N1("markersNavigationVisible",!1),ce=o.DX.bindToContribution(re.get);(0,o.E_)(new ce({id:"closeMarkersNavigation",precondition:he,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:d.R.focus,primary:9,secondary:[1033]}}))},99312:(e,t,i)=>{"use strict";i.d(t,{mR:()=>ee,bn:()=>J,QS:()=>X});var n=i(11007),s=i(90766),o=i(24939),r=i(631),a=i(79400),l=i(50868),d=i(34326),h=i(31450),c=i(80301),u=i(29163),g=i(83069),p=i(36677),m=i(60002),f=i(62083),_=i(23646),v=i(79614),b=i(41234),C=i(5662),y=i(89403),w=i(31629),S=i(32848),k=i(14718),x=i(63591),L=i(98031),D=i(59261),E=i(58591),N=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},T=function(e,t){return function(i,n){t(i,n,e)}};const I=new S.N1("hasSymbols",!1,(0,w.kg)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),M=(0,x.u1)("ISymbolNavigationService");let A=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=I.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),null===(e=this._currentState)||void 0===e||e.dispose(),null===(t=this._currentMessage)||void 0===t||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new R(this._editorService),n=i.onDidChange((e=>{if(this._ignoreEditorChange)return;const i=this._editorService.getActiveCodeEditor();if(!i)return;const n=i.getModel(),s=i.getPosition();if(!n||!s)return;let o=!1,r=!1;for(const a of t.references)if((0,y.n4)(a.uri,n.uri))o=!0,r=r||p.Q.containsPosition(a.range,s);else if(o)break;o&&r||this.reset()}));this._currentState=(0,C.qE)(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:p.Q.collapseToStart(t.range),selectionRevealType:3}},e).finally((()=>{this._ignoreEditorChange=!1}))}_showMessage(){var e;null===(e=this._currentMessage)||void 0===e||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?(0,w.kg)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):(0,w.kg)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};A=N([T(0,S.fN),T(1,c.T),T(2,E.Ot),T(3,L.b)],A),(0,k.v)(M,A,1),(0,h.E_)(new class extends h.DX{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:I,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(M).revealNext(t)}}),D.f.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:I,primary:9,handler(e){e.get(M).reset()}});let R=class{constructor(e){this._listener=new Map,this._disposables=new C.Cm,this._onDidChange=new b.vl,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,C.AS)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,C.qE)(e.onDidChangeCursorPosition((t=>this._onDidChange.fire({editor:e}))),e.onDidChangeModelContent((t=>this._onDidChange.fire({editor:e})))))}_onDidRemoveEditor(e){var t;null===(t=this._listener.get(e))||void 0===t||t.dispose(),this._listener.delete(e)}};R=N([T(0,c.T)],R);var O,P,F,B,W,V,H,z,j=i(99645),U=i(84226),K=i(27195),G=i(50091),$=i(73823),q=i(80538),Q=i(56942),Y=i(42522),Z=i(28290);K.ZG.appendMenuItem(K.D8.EditorContext,{submenu:K.D8.EditorContextPeek,title:w.kg("peek.submenu","Peek"),group:"navigation",order:100});class X{static is(e){return!(!e||"object"!==typeof e)&&(e instanceof X||!(!g.y.isIPosition(e.position)||!e.model))}constructor(e,t){this.model=e,this.position=t}}class J extends h.qO{static all(){return J._allSymbolNavigationCommands.values()}static _patchConfig(e){const t={...e,f1:!0};if(t.menu)for(const i of Y.f.wrap(t.menu))i.id!==K.D8.EditorContext&&i.id!==K.D8.EditorContextPeek||(i.when=S.M$.and(e.precondition,i.when));return t}constructor(e,t){super(J._patchConfig(t)),this.configuration=e,J._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,o){if(!t.hasModel())return Promise.resolve(void 0);const r=e.get(E.Ot),a=e.get(c.T),d=e.get($.N8),h=e.get(M),u=e.get(Q.u),g=e.get(x._Y),p=t.getModel(),m=t.getPosition(),f=X.is(i)?i:new X(p,m),_=new l.gI(t,5),v=(0,s.PK)(this._getLocationModel(u,f.model,f.position,_.token),_.token).then((async e=>{var s;if(!e||_.token.isCancellationRequested)return;let r;if((0,n.xE)(e.ariaMessage),e.referenceAt(p.uri,m)){const e=this._getAlternativeCommand(t);!J._activeAlternativeCommands.has(e)&&J._allSymbolNavigationCommands.has(e)&&(r=J._allSymbolNavigationCommands.get(e))}const l=e.references.length;if(0===l){if(!this.configuration.muteMessage){const e=p.getWordAtPosition(m);null===(s=j.k.get(t))||void 0===s||s.showMessage(this._getNoResultFoundMessage(e),m)}}else{if(1!==l||!r)return this._onResult(a,h,t,e,o);J._activeAlternativeCommands.add(this.desc.id),g.invokeFunction((e=>r.runEditorCommand(e,t,i,o).finally((()=>{J._activeAlternativeCommands.delete(this.desc.id)}))))}}),(e=>{r.error(e)})).finally((()=>{_.dispose()}));return d.showWhile(v,250),v}async _onResult(e,t,i,n,s){const o=this._getGoToPreference(i);if(i instanceof u.t||!(this.configuration.openInPeek||"peek"===o&&n.references.length>1)){const r=n.firstReference(),a=n.references.length>1&&"gotoAndPeek"===o,l=await this._openReference(i,e,r,this.configuration.openToSide,!a);a&&l?this._openInPeek(l,n,s):n.dispose(),"goto"===o&&t.put(r)}else this._openInPeek(i,n,s)}async _openReference(e,t,i,n,s){let o;if((0,f.Iu)(i)&&(o=i.targetSelectionRange),o||(o=i.range),!o)return;const r=await t.openCodeEditor({resource:i.uri,options:{selection:p.Q.collapseToStart(o),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(r){if(s){const e=r.getModel(),t=r.createDecorationsCollection([{range:o,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout((()=>{r.getModel()===e&&t.clear()}),350)}return r}}_openInPeek(e,t,i){const n=_.X.get(e);n&&e.hasModel()?n.toggleWidget(null!==i&&void 0!==i?i:e.getSelection(),(0,s.SS)((e=>Promise.resolve(t))),this.configuration.openInPeek):t.dispose()}}J._allSymbolNavigationCommands=new Map,J._activeAlternativeCommands=new Set;class ee extends J{async _getLocationModel(e,t,i,n){return new v.y4(await(0,q.hE)(e.definitionProvider,t,i,n),w.kg("def.title","Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?w.kg("noResultWord","No definition found for '{0}'",e.word):w.kg("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleDefinitions}}(0,K.ug)(((O=class extends ee{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:O.id,title:{...w.aS("actions.goToDecl.label","Go to Definition"),mnemonicTitle:w.kg({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:m.R.hasDefinitionProvider,keybinding:[{when:m.R.editorTextFocus,primary:70,weight:100},{when:S.M$.and(m.R.editorTextFocus,Z.W0),primary:2118,weight:100}],menu:[{id:K.D8.EditorContext,group:"navigation",order:1.1},{id:K.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),G.w.registerCommandAlias("editor.action.goToDeclaration",O.id)}}).id="editor.action.revealDefinition",O)),(0,K.ug)(((P=class extends ee{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:P.id,title:w.aS("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:S.M$.and(m.R.hasDefinitionProvider,m.R.isInEmbeddedEditor.toNegated()),keybinding:[{when:m.R.editorTextFocus,primary:(0,o.m5)(2089,70),weight:100},{when:S.M$.and(m.R.editorTextFocus,Z.W0),primary:(0,o.m5)(2089,2118),weight:100}]}),G.w.registerCommandAlias("editor.action.openDeclarationToTheSide",P.id)}}).id="editor.action.revealDefinitionAside",P)),(0,K.ug)(((F=class extends ee{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:F.id,title:w.aS("actions.previewDecl.label","Peek Definition"),precondition:S.M$.and(m.R.hasDefinitionProvider,U.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:K.D8.EditorContextPeek,group:"peek",order:2}}),G.w.registerCommandAlias("editor.action.previewDeclaration",F.id)}}).id="editor.action.peekDefinition",F));class te extends J{async _getLocationModel(e,t,i,n){return new v.y4(await(0,q.sv)(e.declarationProvider,t,i,n),w.kg("decl.title","Declarations"))}_getNoResultFoundMessage(e){return e&&e.word?w.kg("decl.noResultWord","No declaration found for '{0}'",e.word):w.kg("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(58).multipleDeclarations}}(0,K.ug)(((B=class extends te{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:B.id,title:{...w.aS("actions.goToDeclaration.label","Go to Declaration"),mnemonicTitle:w.kg({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:S.M$.and(m.R.hasDeclarationProvider,m.R.isInEmbeddedEditor.toNegated()),menu:[{id:K.D8.EditorContext,group:"navigation",order:1.3},{id:K.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?w.kg("decl.noResultWord","No declaration found for '{0}'",e.word):w.kg("decl.generic.noResults","No declaration found")}}).id="editor.action.revealDeclaration",B)),(0,K.ug)(class extends te{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:w.aS("actions.peekDecl.label","Peek Declaration"),precondition:S.M$.and(m.R.hasDeclarationProvider,U.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:K.D8.EditorContextPeek,group:"peek",order:3}})}});class ie extends J{async _getLocationModel(e,t,i,n){return new v.y4(await(0,q.f9)(e.typeDefinitionProvider,t,i,n),w.kg("typedef.title","Type Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?w.kg("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):w.kg("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleTypeDefinitions}}(0,K.ug)(((W=class extends ie{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:W.ID,title:{...w.aS("actions.goToTypeDefinition.label","Go to Type Definition"),mnemonicTitle:w.kg({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:m.R.hasTypeDefinitionProvider,keybinding:{when:m.R.editorTextFocus,primary:0,weight:100},menu:[{id:K.D8.EditorContext,group:"navigation",order:1.4},{id:K.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}}).ID="editor.action.goToTypeDefinition",W)),(0,K.ug)(((V=class extends ie{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:V.ID,title:w.aS("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:S.M$.and(m.R.hasTypeDefinitionProvider,U.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:K.D8.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",V));class ne extends J{async _getLocationModel(e,t,i,n){return new v.y4(await(0,q.eS)(e.implementationProvider,t,i,n),w.kg("impl.title","Implementations"))}_getNoResultFoundMessage(e){return e&&e.word?w.kg("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):w.kg("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(58).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(58).multipleImplementations}}(0,K.ug)(((H=class extends ne{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:H.ID,title:{...w.aS("actions.goToImplementation.label","Go to Implementations"),mnemonicTitle:w.kg({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:m.R.hasImplementationProvider,keybinding:{when:m.R.editorTextFocus,primary:2118,weight:100},menu:[{id:K.D8.EditorContext,group:"navigation",order:1.45},{id:K.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}}).ID="editor.action.goToImplementation",H)),(0,K.ug)(((z=class extends ne{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:z.ID,title:w.aS("actions.peekImplementation.label","Peek Implementations"),precondition:S.M$.and(m.R.hasImplementationProvider,U.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:3142,weight:100},menu:{id:K.D8.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",z));class se extends J{_getNoResultFoundMessage(e){return e?w.kg("references.no","No references found for '{0}'",e.word):w.kg("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(58).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(58).multipleReferences}}(0,K.ug)(class extends se{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...w.aS("goToReferences.label","Go to References"),mnemonicTitle:w.kg({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:S.M$.and(m.R.hasReferenceProvider,U.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:1094,weight:100},menu:[{id:K.D8.EditorContext,group:"navigation",order:1.45},{id:K.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(e,t,i,n){return new v.y4(await(0,q.NN)(e.referenceProvider,t,i,!0,n),w.kg("ref.title","References"))}}),(0,K.ug)(class extends se{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:w.aS("references.action.label","Peek References"),precondition:S.M$.and(m.R.hasReferenceProvider,U.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:K.D8.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(e,t,i,n){return new v.y4(await(0,q.NN)(e.referenceProvider,t,i,!1,n),w.kg("ref.title","References"))}});class oe extends J{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:w.aS("label.generic","Go to Any Symbol"),precondition:S.M$.and(U.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}async _getLocationModel(e,t,i,n){return new v.y4(this._references,w.kg("generic.title","Locations"))}_getNoResultFoundMessage(e){return e&&w.kg("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}G.w.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.r},{name:"position",description:"The position at which to start",constraint:g.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(e,t,i,n,s,o,l)=>{(0,r.j)(a.r.isUri(t)),(0,r.j)(g.y.isIPosition(i)),(0,r.j)(Array.isArray(n)),(0,r.j)("undefined"===typeof s||"string"===typeof s),(0,r.j)("undefined"===typeof l||"boolean"===typeof l);const h=e.get(c.T),u=await h.openCodeEditor({resource:t},h.getFocusedCodeEditor());if((0,d.z9)(u))return u.setPosition(i),u.revealPositionInCenterIfOutsideViewport(i,0),u.invokeWithinContext((e=>{const t=new class extends oe{_getNoResultFoundMessage(e){return o||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(o),openInPeek:Boolean(l),openToSide:!1},n,s);e.get(x._Y).invokeFunction(t.run.bind(t),u)}))}}),G.w.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.r},{name:"position",description:"The position at which to start",constraint:g.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:async(e,t,i,n,s)=>{e.get(G.d).executeCommand("editor.action.goToLocations",t,i,n,s,void 0,!0)}}),G.w.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>{(0,r.j)(a.r.isUri(t)),(0,r.j)(g.y.isIPosition(i));const n=e.get(Q.u),o=e.get(c.T);return o.openCodeEditor({resource:t},o.getFocusedCodeEditor()).then((e=>{if(!(0,d.z9)(e)||!e.hasModel())return;const t=_.X.get(e);if(!t)return;const o=(0,s.SS)((t=>(0,q.NN)(n.referenceProvider,e.getModel(),g.y.lift(i),!1,t).then((e=>new v.y4(e,w.kg("ref.title","References")))))),r=new p.Q(i.lineNumber,i.column,i.lineNumber,i.column);return Promise.resolve(t.toggleWidget(r,o,!1))}))}}),G.w.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},80538:(e,t,i)=>{"use strict";i.d(t,{NN:()=>p,eS:()=>u,f9:()=>g,hE:()=>h,sv:()=>c});var n=i(25890),s=i(18447),o=i(64383),r=i(31450),a=i(56942),l=i(79614);async function d(e,t,i,s){const r=i.ordered(e).map((i=>Promise.resolve(s(i,e,t)).then(void 0,(e=>{(0,o.M_)(e)})))),a=await Promise.all(r);return(0,n.Yc)(a.flat())}function h(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideDefinition(t,i,n)))}function c(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideDeclaration(t,i,n)))}function u(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideImplementation(t,i,n)))}function g(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideTypeDefinition(t,i,n)))}function p(e,t,i,n,s){return d(t,i,e,(async(e,t,i)=>{const o=await e.provideReferences(t,i,{includeDeclaration:!0},s);if(!n||!o||2!==o.length)return o;const r=await e.provideReferences(t,i,{includeDeclaration:!1},s);return r&&1===r.length?r:o}))}async function m(e){const t=await e(),i=new l.y4(t,""),n=i.references.map((e=>e.link));return i.dispose(),n}(0,r.ke)("_executeDefinitionProvider",((e,t,i)=>{const n=h(e.get(a.u).definitionProvider,t,i,s.X.None);return m((()=>n))})),(0,r.ke)("_executeTypeDefinitionProvider",((e,t,i)=>{const n=g(e.get(a.u).typeDefinitionProvider,t,i,s.X.None);return m((()=>n))})),(0,r.ke)("_executeDeclarationProvider",((e,t,i)=>{const n=c(e.get(a.u).declarationProvider,t,i,s.X.None);return m((()=>n))})),(0,r.ke)("_executeReferenceProvider",((e,t,i)=>{const n=p(e.get(a.u).referenceProvider,t,i,!1,s.X.None);return m((()=>n))})),(0,r.ke)("_executeImplementationProvider",((e,t,i)=>{const n=u(e.get(a.u).implementationProvider,t,i,s.X.None);return m((()=>n))}))},37927:(e,t,i)=>{"use strict";i.d(t,{gi:()=>c});var n=i(41234),s=i(5662),o=i(98067);function r(e,t){return!!e[t]}class a{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=r(e.event,t.triggerModifier),this.hasSideBySideModifier=r(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class l{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=r(e,t.triggerModifier)}}class d{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function h(e){return"altKey"===e?o.zx?new d(57,"metaKey",6,"altKey"):new d(5,"ctrlKey",6,"altKey"):o.zx?new d(6,"altKey",57,"metaKey"):new d(6,"altKey",5,"ctrlKey")}class c extends s.jG{constructor(e,t){var i;super(),this._onMouseMoveOrRelevantKeyDown=this._register(new n.vl),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new n.vl),this.onExecute=this._onExecute.event,this._onCancel=this._register(new n.vl),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=null!==(i=null===t||void 0===t?void 0:t.extractLineNumberFromMouseEvent)&&void 0!==i?i:e=>e.target.position?e.target.position.lineNumber:0,this._opts=h(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration((e=>{if(e.hasChanged(78)){const e=h(this._editor.getOption(78));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}}))),this._register(this._editor.onMouseMove((e=>this._onEditorMouseMove(new a(e,this._opts))))),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(new a(e,this._opts))))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(new a(e,this._opts))))),this._register(this._editor.onKeyDown((e=>this._onEditorKeyDown(new l(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new l(e,this._opts))))),this._register(this._editor.onMouseDrag((()=>this._resetHandler()))),this._register(this._editor.onDidChangeCursorSelection((e=>this._onDidChangeCursorSelection(e)))),this._register(this._editor.onDidChangeModel((e=>this._resetHandler()))),this._register(this._editor.onDidChangeModelContent((()=>this._resetHandler()))),this._register(this._editor.onDidScrollChange((e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()})))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){const t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},62427:(e,t,i)=>{"use strict";i.d(t,{k:()=>S});var n,s=i(90766),o=i(64383),r=i(16980),a=i(5662),l=i(50868),d=i(31450),h=i(36677),c=i(10154),u=i(18938),g=i(37927),p=i(84226),m=i(31629),f=i(32848),_=i(99312),v=i(80538),b=i(56942),C=i(38361),y=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,n){t(i,n,e)}};let S=n=class{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new a.Cm,this.toUnhookForKeyboard=new a.Cm,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new g.gi(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown((([e,t])=>{this.startFindDefinitionFromMouse(e,null!==t&&void 0!==t?t:void 0)}))),this.toUnhook.add(s.onExecute((e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).catch((e=>{(0,o.dz)(e)})).finally((()=>{this.removeLinkDecorations()}))}))),this.toUnhook.add(s.onCancel((()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null})))}static get(e){return e.getContribution(n.ID)}async startFindDefinitionFromCursor(e){await this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition((()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()}))),this.toUnhookForKeyboard.add(this.editor.onKeyDown((e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())})))}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const i=e.target.position;this.startFindDefinition(i)}async startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const i=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,void this.removeLinkDecorations();if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const n=new l.$t(this.editor,15);let a;this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,s.SS)((t=>this.findDefinition(e,t)));try{a=await this.previousPromise}catch(c){return void(0,o.dz)(c)}if(!a||!a.length||!n.validate(this.editor))return void this.removeLinkDecorations();const d=a[0].originSelectionRange?h.Q.lift(a[0].originSelectionRange):new h.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(a.length>1){let e=d;for(const{originSelectionRange:t}of a)t&&(e=h.Q.plusRange(e,t));this.addDecoration(e,(new r.Bc).appendText(m.kg("multipleResults","Click to show {0} definitions.",a.length)))}else{const e=a[0];if(!e.uri)return;this.textModelResolverService.createModelReference(e.uri).then((t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:i}}=t,{startLineNumber:n}=e.range;if(n<1||n>i.getLineCount())return void t.dispose();const s=this.getPreviewValue(i,n,e),o=this.languageService.guessLanguageIdByFilepathOrFirstLine(i.uri);this.addDecoration(d,s?(new r.Bc).appendCodeblock(o||"",s):void 0),t.dispose()}))}}getPreviewValue(e,t,i){let s=i.range;s.endLineNumber-s.startLineNumber>=n.MAX_SOURCE_PREVIEW_LINES&&(s=this.getPreviewRangeBasedOnIndentation(e,t));return this.stripIndentationFromPreviewRange(e,t,s)}stripIndentationFromPreviewRange(e,t,i){let n=e.getLineFirstNonWhitespaceColumn(t);for(let s=t+1;s<i.endLineNumber;s++){const t=e.getLineFirstNonWhitespaceColumn(s);n=Math.min(n,t)}return e.getValueInRange(i).replace(new RegExp(`^\\s{${n-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(e,t){const i=e.getLineFirstNonWhitespaceColumn(t),s=Math.min(e.getLineCount(),t+n.MAX_SOURCE_PREVIEW_LINES);let o=t+1;for(;o<s;o++){if(i===e.getLineFirstNonWhitespaceColumn(o))break}return new h.Q(t,1,o+1,1)}addDecoration(e,t){const i={range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations.set([i])}removeLinkDecorations(){this.linkDecorations.clear()}isEnabled(e,t){var i;return this.editor.hasModel()&&e.isLeftClick&&e.isNoneOrSingleMouseDown&&6===e.target.type&&!((null===(i=e.target.detail.injectedText)||void 0===i?void 0:i.options)instanceof C.Ho)&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}findDefinition(e,t){const i=this.editor.getModel();return i?(0,v.hE)(this.languageFeaturesService.definitionProvider,i,e,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext((e=>{const i=!t&&this.editor.getOption(88)&&!this.isInPeekEditor(e);return new _.mR({openToSide:t,openInPeek:i,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e)}))}isInPeekEditor(e){const t=e.get(f.fN);return p.x2.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};S.ID="editor.contrib.gotodefinitionatposition",S.MAX_SOURCE_PREVIEW_LINES=8,S=n=y([w(1,u.b),w(2,c.L),w(3,b.u)],S),(0,d.HW)(S.ID,S,2)},23646:(e,t,i)=>{"use strict";i.d(t,{X:()=>ue});var n,s=i(90766),o=i(64383),r=i(24939),a=i(5662),l=i(80301),d=i(83069),h=i(36677),c=i(84226),u=i(31629),g=i(50091),p=i(84001),m=i(32848),f=i(63591),_=i(59261),v=i(36584),b=i(58591),C=i(9711),y=i(79614),w=i(8597),S=i(35151),k=i(47661),x=i(41234),L=i(36456),D=i(89403),E=i(29163),N=i(38361),T=i(17469),I=i(83941),M=i(10154),A=i(18938),R=i(3828),O=i(37479),P=i(21852),F=i(26690),B=i(98031),W=i(67841),V=i(19070),H=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},z=function(e,t){return function(i,n){t(i,n,e)}};let j=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof y.y4||e instanceof y.$L}getChildren(e){if(e instanceof y.y4)return e.groups;if(e instanceof y.$L)return e.resolve(this._resolverService).then((e=>e.children));throw new Error("bad tree")}};j=H([z(0,A.b)],j);class U{getHeight(){return 23}getTemplateId(e){return e instanceof y.$L?q.id:Y.id}}let K=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof y.yc){const i=null===(t=e.parent.getPreview(e))||void 0===t?void 0:t.preview(e.range);if(i)return i.value}return(0,D.P8)(e.uri)}};K=H([z(0,B.b)],K);class G{getId(e){return e instanceof y.yc?e.id:e.uri}}let $=class extends a.jG{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new P.s(i,{supportHighlights:!0})),this.badge=new R.x(w.BC(i,w.$(".count")),{},V.m$),e.appendChild(i)}set(e,t){const i=(0,D.pD)(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat((0,u.kg)("referencesCount","{0} references",n)):this.badge.setTitleFormat((0,u.kg)("referenceCount","{0} reference",n))}};$=H([z(1,W.L)],$);let q=n=class{constructor(e){this._instantiationService=e,this.templateId=n.id}renderTemplate(e){return this._instantiationService.createInstance($,e)}renderElement(e,t,i){i.set(e.element,(0,F.WJ)(e.filterData))}disposeTemplate(e){e.dispose()}};q.id="FileReferencesRenderer",q=n=H([z(0,f._Y)],q);class Q extends a.jG{constructor(e){super(),this.label=this._register(new O._(e))}set(e,t){var i;const n=null===(i=e.parent.getPreview(e))||void 0===i?void 0:i.preview(e.range);if(n&&n.value){const{value:e,highlight:i}=n;t&&!F.ne.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,(0,F.WJ)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[i]))}else this.label.set(`${(0,D.P8)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class Y{constructor(){this.templateId=Y.id}renderTemplate(e){return new Q(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(e){e.dispose()}}Y.id="OneReferenceRenderer";class Z{getWidgetAriaLabel(){return(0,u.kg)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var X=i(47612),J=i(47579),ee=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},te=function(e,t){return function(i,n){t(i,n,e)}};class ie{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new a.Cm,this._callOnModelChange=new a.Cm,this._callOnDispose.add(this._editor.onDidChangeModel((()=>this._onModelChanged()))),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(const t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((()=>this._onDecorationChanged())));const t=[],i=[];for(let n=0,s=e.children.length;n<s;n++){const s=e.children[n];this._decorationIgnoreSet.has(s.id)||s.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:s.range,options:ie.DecorationOptions}),i.push(n))}this._editor.changeDecorations((n=>{const s=n.deltaDecorations([],t);for(let t=0;t<s.length;t++)this._decorations.set(s[t],e.children[i[t]])}))}_onDecorationChanged(){const e=[],t=this._editor.getModel();if(t){for(const[i,n]of this._decorations){const s=t.getDecorationRange(i);if(!s)continue;let o=!1;if(!h.Q.equalsRange(s,n.range)){if(h.Q.spansMultipleLines(s))o=!0;else{n.range.endColumn-n.range.startColumn!==s.endColumn-s.startColumn&&(o=!0)}o?(this._decorationIgnoreSet.add(n.id),e.push(i)):n.range=s}}for(let t=0,i=e.length;t<i;t++)this._decorations.delete(e[t]);this._editor.removeDecorations(e)}}removeDecorations(){this._editor.removeDecorations([...this._decorations.keys()]),this._decorations.clear()}}ie.DecorationOptions=N.kI.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"});class ne{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,i;try{const n=JSON.parse(e);t=n.ratio,i=n.heightInLines}catch(n){}return{ratio:t||.7,heightInLines:i||18}}}class se extends v.er{}let oe=class extends c.j6{constructor(e,t,i,n,s,o,r,l,d,h,c,u){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},o),this._defaultTreeKeyboardSupport=t,this.layoutData=i,this._textModelResolverService=s,this._instantiationService=o,this._peekViewService=r,this._uriLabel=l,this._undoRedoService=d,this._keybindingService=h,this._languageService=c,this._languageConfigurationService=u,this._disposeOnNewModel=new a.Cm,this._callOnDispose=new a.Cm,this._onDidSelectReference=new x.vl,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new w.fg(0,0),this._applyTheme(n.getColorTheme()),this._callOnDispose.add(n.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(e,this),this.create()}dispose(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),(0,a.AS)(this._preview),(0,a.AS)(this._previewNotAvailableMessage),(0,a.AS)(this._tree),(0,a.AS)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(e){const t=e.getColor(c.zl)||k.Q1.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(c.z0)||k.Q1.transparent,primaryHeadingColor:e.getColor(c._X),secondaryHeadingColor:e.getColor(c.e3)})}show(e){super.show(e,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}_fillBody(e){this.setCssClass("reference-zone-widget"),this._messageContainer=w.BC(e,w.$("div.messages")),w.jD(this._messageContainer),this._splitView=new S.U(e,{orientation:1}),this._previewContainer=w.BC(e,w.$("div.preview.inline"));this._preview=this._instantiationService.createInstance(E.t,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!0},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},{},this.editor),w.jD(this._previewContainer),this._previewNotAvailableMessage=new N.Bz(u.kg("missingPreviewMessage","no preview available"),I.vH,N.Bz.DEFAULT_CREATION_OPTIONS,null,this._undoRedoService,this._languageService,this._languageConfigurationService),this._treeContainer=w.BC(e,w.$("div.ref-tree.inline"));const t={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new Z,keyboardNavigationLabelProvider:this._instantiationService.createInstance(K),identityProvider:new G,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:c.n6}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(w.b2(this._treeContainer,"keydown",(e=>{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(se,"ReferencesWidget",this._treeContainer,new U,[this._instantiationService.createInstance(q),this._instantiationService.createInstance(Y)],this._instantiationService.createInstance(j),t),this._splitView.addView({onDidChange:x.Jh.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},S.X.Distribute),this._splitView.addView({onDidChange:x.Jh.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},S.X.Distribute),this._disposables.add(this._splitView.onDidSashChange((()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)}),void 0));const i=(e,t)=>{e instanceof y.yc&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._tree.onDidOpen((e=>{e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")})),w.jD(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new w.fg(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then((()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))}))}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=u.kg("noResults","No results"),w.WU(this._messageContainer),Promise.resolve(void 0)):(w.jD(this._messageContainer),this._decorationsManager=new ie(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((e=>this._tree.rerender(e)))),this._disposeOnNewModel.add(this._preview.onMouseDown((e=>{const{event:t,target:i}=e;if(2!==t.detail)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})}))),this.container.classList.add("results-loaded"),w.WU(this._treeContainer),w.WU(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof y.yc?e:e instanceof y.$L&&e.children.length>0?e.children[0]:void 0}async revealReference(e){await this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}async _revealReference(e,t){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==L.ny.inMemory?this.setTitle((0,D.Pi)(e.uri),this._uriLabel.getUriLabel((0,D.pD)(e.uri))):this.setTitle(u.kg("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),await this._tree.expand(e.parent)),this._tree.reveal(e);const n=await i;if(!this._model)return void n.dispose();(0,a.AS)(this._previewModelReference);const s=n.object;if(s){const t=this._preview.getModel()===s.textEditorModel?0:1,i=h.Q.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()}};oe=ee([te(3,X.Gy),te(4,A.b),te(5,f._Y),te(6,c.zn),te(7,W.L),te(8,J.$D),te(9,B.b),te(10,M.L),te(11,T.JZ)],oe);var re,ae=i(60002),le=i(28290),de=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},he=function(e,t){return function(i,n){t(i,n,e)}};const ce=new m.N1("referenceSearchVisible",!1,u.kg("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let ue=re=class{static get(e){return e.getContribution(re.ID)}constructor(e,t,i,n,s,o,r,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=o,this._storageService=r,this._configurationService=l,this._disposables=new a.Cm,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=ce.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),null===(e=this._widget)||void 0===e||e.dispose(),null===(t=this._model)||void 0===t||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>{this.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((()=>{this._ignoreModelChangeEvent||this.closeWidget()})));const s="peekViewLayout",o=ne.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(oe,this._editor,this._defaultTreeKeyboardSupport,o),this._widget.setTitle(u.kg("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((e=>{const{element:t,kind:n}=e;if(t)switch(n){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":i?this._gotoReference(t,!0):this.openReference(t,!1,!0)}})));const r=++this._requestIdPool;t.then((t=>{var i;if(r===this._requestIdPool&&this._widget)return null===(i=this._model)||void 0===i||i.dispose(),this._model=t,this._widget.setModel(this._model).then((()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(u.kg("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const t=this._editor.getModel().uri,i=new d.y(e.startLineNumber,e.startColumn),n=this._model.nearestReference(t,i);if(n)return this._widget.setSelection(n).then((()=>{this._widget&&"editor"===this._editor.getOption(87)&&this._widget.focusOnPreviewEditor()}))}}));t.dispose()}),(e=>{this._notificationService.error(e)}))}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}async goToNextOrPreviousReference(e){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),o=this._widget.isPreviewEditorFocused();await this._widget.setSelection(n),await this._gotoReference(n,!1),s?this._editor.focus():this._widget&&o&&this._widget.focusOnPreviewEditor()}async revealReference(e){this._editor.hasModel()&&this._model&&this._widget&&await this._widget.revealReference(e)}closeWidget(e=!0){var t,i;null===(t=this._widget)||void 0===t||t.dispose(),null===(i=this._model)||void 0===i||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;null===(i=this._widget)||void 0===i||i.hide(),this._ignoreModelChangeEvent=!0;const n=h.Q.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then((e=>{var t;if(this._ignoreModelChangeEvent=!1,e&&this._widget)if(this._editor===e)this._widget.show(n),this._widget.focusOnReferenceTree();else{const i=re.get(e),o=this._model.clone();this.closeWidget(),e.focus(),null===i||void 0===i||i.toggleWidget(n,(0,s.SS)((e=>Promise.resolve(o))),null!==(t=this._peekMode)&&void 0!==t&&t)}else this.closeWidget()}),(e=>{this._ignoreModelChangeEvent=!1,(0,o.dz)(e)}))}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};function ge(e,t){const i=(0,c.RL)(e);if(!i)return;const n=ue.get(i);n&&t(n)}ue.ID="editor.contrib.referencesController",ue=re=de([he(2,m.fN),he(3,l.T),he(4,b.Ot),he(5,f._Y),he(6,C.CS),he(7,p.pG)],ue),_.f.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,r.m5)(2089,60),when:m.M$.or(ce,c.x2.inPeekEditor),handler(e){ge(e,(e=>{e.changeFocusBetweenPreviewAndReferences()}))}}),_.f.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:m.M$.or(ce,c.x2.inPeekEditor),handler(e){ge(e,(e=>{e.goToNextOrPreviousReference(!0)}))}}),_.f.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:m.M$.or(ce,c.x2.inPeekEditor),handler(e){ge(e,(e=>{e.goToNextOrPreviousReference(!1)}))}}),g.w.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),g.w.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),g.w.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),g.w.registerCommand("closeReferenceSearch",(e=>ge(e,(e=>e.closeWidget())))),_.f.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:m.M$.and(c.x2.inPeekEditor,m.M$.not("config.editor.stablePeek"))}),_.f.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:m.M$.and(ce,m.M$.not("config.editor.stablePeek"),m.M$.or(ae.R.editorTextFocus,le.J7.negate()))}),_.f.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:m.M$.and(ce,v.YD,v.Nf.negate(),v.cH.negate()),handler(e){var t;const i=null===(t=e.get(v.PE).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof y.yc&&ge(e,(e=>e.revealReference(i[0])))}}),_.f.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:m.M$.and(ce,v.YD,v.Nf.negate(),v.cH.negate()),handler(e){var t;const i=null===(t=e.get(v.PE).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof y.yc&&ge(e,(e=>e.openReference(i[0],!0,!0)))}}),g.w.registerCommand("openReference",(e=>{var t;const i=null===(t=e.get(v.PE).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof y.yc&&ge(e,(e=>e.openReference(i[0],!1,!0)))}))},79614:(e,t,i)=>{"use strict";i.d(t,{$L:()=>p,y4:()=>m,yc:()=>u});var n=i(64383),s=i(41234),o=i(96032),r=i(5662),a=i(74320),l=i(89403),d=i(91508),h=i(36677),c=i(31629);class u{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=o.r.nextId()}get uri(){return this.link.uri}get range(){var e,t;return null!==(t=null!==(e=this._range)&&void 0!==e?e:this.link.targetSelectionRange)&&void 0!==t?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=null===(e=this.parent.getPreview(this))||void 0===e?void 0:e.preview(this.range);return t?(0,c.kg)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",t.value,(0,l.P8)(this.uri),this.range.startLineNumber,this.range.startColumn):(0,c.kg)("aria.oneReference","in {0} on line {1} at column {2}",(0,l.P8)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class g{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:o,endColumn:r}=e,a=i.getWordUntilPosition({lineNumber:n,column:s-t}),l=new h.Q(n,a.startColumn,n,s),d=new h.Q(o,r,o,1073741824),c=i.getValueInRange(l).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:c+u+i.getValueInRange(d).replace(/\s+$/,""),highlight:{start:c.length,end:c.length+u.length}}}}class p{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new a.fT}dispose(){(0,r.AS)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?(0,c.kg)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,l.P8)(this.uri),this.uri.fsPath):(0,c.kg)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,l.P8)(this.uri),this.uri.fsPath)}async resolve(e){if(0!==this._previews.size)return this;for(const i of this.children)if(!this._previews.has(i.uri))try{const t=await e.createModelReference(i.uri);this._previews.set(i.uri,new g(t))}catch(t){(0,n.dz)(t)}return this}}class m{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new s.vl,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let n;e.sort(m._compareReferences);for(const s of e)if(n&&l.er.isEqual(n.uri,s.uri,!0)||(n=new p(this,s.uri),this.groups.push(n)),0===n.children.length||0!==m._compareReferences(s,n.children[n.children.length-1])){const e=new u(i===s,n,s,(e=>this._onDidChangeReferenceRange.fire(e)));this.references.push(e),n.children.push(e)}}dispose(){(0,r.AS)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new m(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?(0,c.kg)("aria.result.0","No results found"):1===this.references.length?(0,c.kg)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?(0,c.kg)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,c.kg)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,o=i.parent.groups.length;return 1===o||t&&n+1<s||!t&&n>0?(n=t?(n+1)%s:(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%o,i.parent.groups[n].children[0]):(n=(n+o-1)%o,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map(((i,n)=>({idx:n,prefixLen:d.Qp(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)}))).sort(((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0))[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&h.Q.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return l.er.compare(e.uri,t.uri)||h.Q.compareRangesUsingStarts(e.range,t.range)}}},90109:(e,t,i)=>{"use strict";i.d(t,{Ad:()=>D,Q1:()=>I,L9:()=>M});var n=i(8597),s=i(52776),o=i(25890),r=i(5662),a=i(83069),l=i(36677),d=i(38361),h=i(62083),c=i(12143),u=i(57039),g=i(63591),p=i(98031),m=i(90766),f=i(60002),_=i(32848),v=i(88807);class b extends r.jG{constructor(e,t=new n.fg(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new v.v),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=n.fg.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize((e=>{this._resize(new n.fg(e.dimension.width,e.dimension.height)),e.done&&(this._isResizing=!1)}))),this._register(this._resizableNode.onDidWillResize((()=>{this._isResizing=!0})))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){var e;return(null===(e=this._contentPosition)||void 0===e?void 0:e.position)?a.y.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;return n.BK(t).top+i.top-30}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;const s=n.BK(t),o=n.tG(t.ownerDocument.body),r=s.top+i.top+i.height;return o.height-r-24}_findPositionPreference(e,t){var i,n;const s=Math.min(null!==(i=this._availableVerticalSpaceBelow(t))&&void 0!==i?i:1/0,e),o=Math.min(null!==(n=this._availableVerticalSpaceAbove(t))&&void 0!==n?n:1/0,e),r=Math.min(Math.max(o,s),e),a=Math.min(e,r);let l;return l=this._editor.getOption(60).above?a<=o?1:2:a<=s?2:1,1===l?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),l}_resize(e){this._resizableNode.layout(e.height,e.width)}}var C,y,w=i(84001),S=i(253),k=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},x=function(e,t){return function(i,n){t(i,n,e)}};const L=n.$;let D=C=class extends r.jG{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._widget=this._register(this._instantiationService.createInstance(I,this._editor)),this._participants=[];for(const n of u.B2.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort(((e,t)=>e.hoverOrdinal-t.hoverOrdinal)),this._computer=new A(this._editor,this._participants),this._hoverOperation=this._register(new c.w(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{if(!this._computer.anchor)return;const t=e.hasLoadingMessage?this._addLoadingMessage(e.value):e.value;this._withResult(new E(this._computer.anchor,t,e.isComplete))}))),this._register(n.b2(this._widget.getDomNode(),"keydown",(e=>{e.equals(9)&&this.hide()}))),this._register(h.dG.onDidChange((()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)})))}_startShowingOrUpdateHover(e,t,i,n,s){if(!this._widget.position||!this._currentResult)return!!e&&(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0);return this._editor.getOption(60).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?!(!e||!this._currentResult.anchor.equals(e))||(e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0)):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&0===e.messages.length&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}_addLoadingMessage(e){if(this._computer.anchor)for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}return e}_withResult(e){if(this._widget.position&&this._currentResult&&this._currentResult.isComplete){if(!e.isComplete)return;if(this._computer.insistOnKeepingHoverVisible&&0===e.messages.length)return}this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:n,highlightRange:s}=C.computeHoverRanges(this._editor,e.range,t),o=new r.Cm,a=o.add(new M(this._keybindingService)),l=document.createDocumentFragment();let d=null;const h={fragment:l,statusBar:a,setColorPicker:e=>d=e,onContentsChanged:()=>this._widget.onContentsChanged(),setMinimumDimensions:e=>this._widget.setMinimumDimensions(e),hide:()=>this.hide()};for(const r of this._participants){const e=t.filter((e=>e.owner===r));e.length>0&&o.add(r.renderHoverParts(h,e))}const c=t.some((e=>e.isBeforeContent));if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const e=this._editor.createDecorationsCollection();e.set([{range:s,options:C._DECORATION_OPTIONS}]),o.add((0,r.s)((()=>{e.clear()})))}this._widget.showAt(l,new T(e.initialMousePosX,e.initialMousePosY,d,i,n,this._editor.getOption(60).above,this._computer.shouldFocus,this._computer.source,c,o))}else o.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const i=e._getViewModel(),s=i.coordinatesConverter,o=s.convertModelRangeToViewRange(t),r=new a.y(o.startLineNumber,i.getLineMinColumn(o.startLineNumber));n=s.convertViewPositionToModelPosition(r).column}const s=t.startLineNumber;let o=t.startColumn,r=i[0].range,d=null;for(const a of i)r=l.Q.plusRange(r,a.range),a.range.startLineNumber===s&&a.range.endLineNumber===s&&(o=Math.max(Math.min(o,a.range.startColumn),n)),a.forceShowAtRange&&(d=a.range);return{showAtPosition:d?d.getStartPosition():new a.y(s,t.startColumn),showAtSecondaryPosition:d?d.getStartPosition():new a.y(s,o),highlightRange:r}}showsOrWillShow(e){if(this._widget.isResizing)return!0;const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const i=n.suggestHoverAnchor(e);i&&t.push(i)}const i=e.target;if(6===i.type&&t.push(new u.hx(0,i.range,e.event.posx,e.event.posy)),7===i.type){const n=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&"number"===typeof i.detail.horizontalDistanceToText&&i.detail.horizontalDistanceToText<n&&t.push(new u.hx(0,i.range,e.event.posx,e.event.posy))}return 0===t.length?this._startShowingOrUpdateHover(null,0,0,!1,e):(t.sort(((e,t)=>t.priority-e.priority)),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new u.hx(0,e,void 0,void 0),t,i,n,null)}containsNode(e){return!!e&&this._widget.getDomNode().contains(e)}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}get isColorPickerVisible(){return this._widget.isColorPickerVisible}get isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}get isVisible(){return this._widget.isVisible}get isFocused(){return this._widget.isFocused}get isResizing(){return this._widget.isResizing}get widget(){return this._widget}};D._DECORATION_OPTIONS=d.kI.register({description:"content-hover-highlight",className:"hoverHighlight"}),D=C=k([x(1,g._Y),x(2,p.b)],D);class E{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter((t=>t.isValidForHoverAnchor(e)));return t.length===this.messages.length?this:new N(this,this.anchor,t,this.isComplete)}}class N extends E{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class T{constructor(e,t,i,n,s,o,r,a,l,d){this.initialMousePosX=e,this.initialMousePosY=t,this.colorPicker=i,this.showAtPosition=n,this.showAtSecondaryPosition=s,this.preferAbove=o,this.stoleFocus=r,this.source=a,this.isBeforeContent=l,this.disposables=d,this.closestMouseDistance=void 0}}let I=y=class extends b{get isColorPickerVisible(){var e;return Boolean(null===(e=this._visibleData)||void 0===e?void 0:e.colorPicker)}get isVisibleFromKeyboard(){var e;return 1===(null===(e=this._visibleData)||void 0===e?void 0:e.source)}get isVisible(){var e;return null!==(e=this._hoverVisibleKey.get())&&void 0!==e&&e}get isFocused(){var e;return null!==(e=this._hoverFocusedKey.get())&&void 0!==e&&e}constructor(e,t,i,o,r){const a=e.getOption(67)+8,l=new n.fg(150,a);super(e,l),this._configurationService=i,this._accessibilityService=o,this._keybindingService=r,this._hover=this._register(new s.N4),this._minimumSize=l,this._hoverVisibleKey=f.R.hoverVisible.bindTo(t),this._hoverFocusedKey=f.R.hoverFocused.bindTo(t),n.BC(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange((()=>{this.isVisible&&this._updateMaxDimensions()}))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()})));const d=this._register(n.w5(this._resizableNode.domNode));this._register(d.onDidFocus((()=>{this._hoverFocusedKey.set(!0)}))),this._register(d.onDidBlur((()=>{this._hoverFocusedKey.set(!1)}))),this._setHoverData(void 0),this._editor.addContentWidget(this)}dispose(){var e;super.dispose(),null===(e=this._visibleData)||void 0===e||e.disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return y.ID}static _applyDimensions(e,t,i){const n="number"===typeof t?`${t}px`:t,s="number"===typeof i?`${i}px`:i;e.style.width=n,e.style.height=s}_setContentsDomNodeDimensions(e,t){const i=this._hover.contentsDomNode;return y._applyDimensions(i,e,t)}_setContainerDomNodeDimensions(e,t){const i=this._hover.containerDomNode;return y._applyDimensions(i,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,i){const n="number"===typeof t?`${t}px`:t,s="number"===typeof i?`${i}px`:i;e.style.maxWidth=n,e.style.maxHeight=s}_setHoverWidgetMaxDimensions(e,t){y._applyMaxDimensions(this._hover.contentsDomNode,e,t),y._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth","number"===typeof e?`${e}px`:e),this._layoutContentWidget()}_hasHorizontalScrollbar(){const e=this._hover.scrollbar.getScrollDimensions();return e.scrollWidth>e.width}_adjustContentsBottomPadding(){const e=this._hover.contentsDomNode,t=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;e.style.paddingBottom!==t&&(e.style.paddingBottom=t)}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,i=e.height;this._setHoverWidgetDimensions(t,i),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._setContentsDomNodeDimensions(t,i-10))}_updateResizableNodeMaxDimensions(){var e,t;const i=null!==(e=this._findMaximumRenderingWidth())&&void 0!==e?e:1/0,s=null!==(t=this._findMaximumRenderingHeight())&&void 0!==t?t:1/0;this._resizableNode.maxSize=new n.fg(i,s),this._setHoverWidgetMaxDimensions(i,s)}_resize(e){var t,i;y._lastDimensions=new n.fg(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),null===(i=null===(t=this._visibleData)||void 0===t?void 0:t.colorPicker)||void 0===i||i.layout()}_findAvailableSpaceVertically(){var e;const t=null===(e=this._visibleData)||void 0===e?void 0:e.showAtPosition;if(t)return 1===this._positionPreference?this._availableVerticalSpaceAbove(t):this._availableVerticalSpaceBelow(t)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=6;return Array.from(this._hover.contentsDomNode.children).forEach((e=>{t+=e.clientHeight})),this._hasHorizontalScrollbar()&&(t+=10),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const e=Array.from(this._hover.contentsDomNode.children).some((e=>e.scrollWidth>e.clientWidth));return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const e=this._isHoverTextOverflowing(),t="undefined"===typeof this._contentWidth?0:this._contentWidth-2;if(e||this._hover.containerDomNode.clientWidth<t){return n.tG(this._hover.containerDomNode.ownerDocument.body).width-14}return this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if("undefined"===typeof this._visibleData.initialMousePosX||"undefined"===typeof this._visibleData.initialMousePosY)return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const i=n.BK(this.getDomNode());"undefined"===typeof this._visibleData.closestMouseDistance&&(this._visibleData.closestMouseDistance=R(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const s=R(e,t,i.left,i.top,i.width,i.height);return!(s>this._visibleData.closestMouseDistance+4)&&(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,s),!0)}_setHoverData(e){var t;null===(t=this._visibleData)||void 0===t||t.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_updateFont(){const{fontSize:e,lineHeight:t}=this._editor.getOption(50),i=this._hover.contentsDomNode;i.style.fontSize=`${e}px`,i.style.lineHeight=""+t/e;Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,y._lastDimensions.height),t=Math.max(.66*this._editor.getLayoutInfo().width,500,y._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e,t){this._setHoverData(t),this._updateFont(),this._updateContent(e),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){var e;return this._visibleData?{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,positionAffinity:this._visibleData.isBeforeContent?3:void 0,preference:[null!==(e=this._positionPreference)&&void 0!==e?e:1]}:null}showAt(e,t){var i,o,r,a;if(!this._editor||!this._editor.hasModel())return;this._render(e,t);const l=n.OK(this._hover.containerDomNode),d=t.showAtPosition;this._positionPreference=null!==(i=this._findPositionPreference(l,d))&&void 0!==i?i:1,this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),null===(o=t.colorPicker)||void 0===o||o.layout();const h=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,s.vr)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),null!==(a=null===(r=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))||void 0===r?void 0:r.getAriaLabel())&&void 0!==a?a:"");h&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+h)}hide(){if(!this._visibleData)return;const e=this._visibleData.stoleFocus||this._hoverFocusedKey.get();this._setHoverData(void 0),this._resizableNode.maxSize=new n.fg(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}_adjustHoverHeightForScrollbar(e){var t;const i=this._hover.containerDomNode,s=this._hover.contentsDomNode,o=null!==(t=this._findMaximumRenderingHeight())&&void 0!==t?t:1/0;this._setContainerDomNodeDimensions(n.Tr(i),Math.min(o,e)),this._setContentsDomNodeDimensions(n.Tr(s),Math.min(o,e-10))}setMinimumDimensions(e){this._minimumSize=new n.fg(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const e="undefined"===typeof this._contentWidth?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new n.fg(e,this._minimumSize.height)}onContentsChanged(){var e;this._removeConstraintsRenderNormally();const t=this._hover.containerDomNode;let i=n.OK(t),s=n.Tr(t);if(this._resizableNode.layout(i,s),this._setHoverWidgetDimensions(s,i),i=n.OK(t),s=n.Tr(t),this._contentWidth=s,this._updateMinimumWidth(),this._resizableNode.layout(i,s),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._adjustHoverHeightForScrollbar(i)),null===(e=this._visibleData)||void 0===e?void 0:e.showAtPosition){const e=n.OK(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(e,this._visibleData.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-30})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+30})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};I.ID="editor.contrib.resizableContentHoverWidget",I._lastDimensions=new n.fg(0,0),I=y=k([x(1,_.fN),x(2,w.pG),x(3,S.j),x(4,p.b)],I);let M=class extends r.jG{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=L("div.hover-row.status-bar"),this.actionsElement=n.BC(this.hoverElement,L("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(s.jQ.render(this.actionsElement,e,i))}append(e){const t=n.BC(this.actionsElement,e);return this._hasContent=!0,t}};M=k([x(0,p.b)],M);class A{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(1!==t.type&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter((e=>{if(e.options.isWholeLine)return!0;const i=e.range.startLineNumber===n?e.range.startColumn:1,o=e.range.endLineNumber===n?e.range.endColumn:s;if(e.options.showIfCollapsed){if(i>t.range.startColumn+1||t.range.endColumn-1>o)return!1}else if(i>t.range.startColumn||t.range.endColumn>o)return!1;return!0}))}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return m.AE.EMPTY;const i=A._getLineDecorations(this._editor,t);return m.AE.merge(this._participants.map((n=>n.computeAsync?n.computeAsync(t,i,e):m.AE.EMPTY)))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=A._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return(0,o.Yc)(t)}}function R(e,t,i,n,s,o){const r=i+s/2,a=n+o/2,l=Math.max(Math.abs(e-r)-s/2,0),d=Math.max(Math.abs(t-a)-o/2,0);return Math.sqrt(l*l+d*d)}},7142:(e,t,i)=>{"use strict";i.d(t,{Zt:()=>d});var n=i(90766),s=i(18447),o=i(64383),r=i(31450),a=i(56942);class l{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function d(e,t,i,s){const r=e.ordered(t).map(((e,n)=>async function(e,t,i,n,s){try{const o=await Promise.resolve(e.provideHover(i,n,s));if(o&&function(e){const t="undefined"!==typeof e.range,i="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&i}(o))return new l(e,o,t)}catch(r){(0,o.M_)(r)}}(e,n,t,i,s)));return n.AE.fromPromises(r).coalesce()}(0,r.ke)("_executeHoverProvider",((e,t,i)=>function(e,t,i,n){return d(e,t,i,n).map((e=>e.hover)).toPromise()}(e.get(a.u).hoverProvider,t,i,s.X.None)))},15989:(e,t,i)=>{"use strict";i.d(t,{n:()=>Y});var n=i(24939),s=i(5662),o=i(31450),r=i(36677),a=i(60002),l=i(10154),d=i(62427),h=i(90109),c=i(8597),u=i(25890),g=i(16980),p=i(20492),m=i(12143),f=i(52776),_=i(16223);const v=c.$;class b extends s.jG{constructor(e,t,i){super(),this._renderDisposeables=this._register(new s.Cm),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new f.N4),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new p.T({editor:this._editor},t,i)),this._computer=new C(this._editor),this._hoverOperation=this._register(new m.w(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{this._withResult(e.value)}))),this._register(this._editor.onDidChangeModelDecorations((()=>this._onModelDecorationsChanged()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return b.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e,t){this._computer.lineNumber===e&&this._computer.lane===t||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._computer.lane=t,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const e=v("div.hover-row.markdown-hover"),t=c.BC(e,v("div.hover-contents")),s=this._renderDisposeables.add(this._markdownRenderer.render(n.value));t.appendChild(s.element),i.appendChild(e)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(67),o=i-n-(this._hover.containerDomNode.clientHeight-s)/2,r=t.glyphMarginLeft+t.glyphMarginWidth+("lineNo"===this._computer.lane?t.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${r}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(o),0)}px`}}b.ID="editor.contrib.modesGlyphHoverWidget";class C{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}get lane(){return this._laneOrLine}set lane(e){this._laneOrLine=e}constructor(e){this._editor=e,this._lineNumber=-1,this._laneOrLine=_.ZS.Center}computeSync(){var e,t;const i=e=>({value:e}),n=this._editor.getLineDecorations(this._lineNumber),s=[],o="lineNo"===this._laneOrLine;if(!n)return s;for(const r of n){const n=null!==(t=null===(e=r.options.glyphMargin)||void 0===e?void 0:e.position)&&void 0!==t?t:_.ZS.Center;if(!o&&n!==this._laneOrLine)continue;const a=o?r.options.lineNumberHoverMessage:r.options.glyphMarginHoverMessage;a&&!(0,g.it)(a)&&s.push(...(0,u._j)(a).map(i))}return s}}var y=i(63591),w=i(49099),S=i(85845),k=i(47612),x=i(57039),L=i(57286),D=i(90766),E=i(64383),N=i(89403),T=i(56942),I=i(37550),M=i(55130),A=i(71933),R=i(61407),O=i(65877),P=i(31629),F=i(75147),B=i(73823),W=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},V=function(e,t){return function(i,n){t(i,n,e)}};const H=c.$;class z{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const j={type:1,filter:{include:R.gB.QuickFix},triggerAction:R.fo.QuickFixHover};let U=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),o=[];for(const a of t){const t=a.range.startLineNumber===n?a.range.startColumn:1,l=a.range.endLineNumber===n?a.range.endColumn:s,d=this._markerDecorationsService.getMarker(i.uri,a);if(!d)continue;const h=new r.Q(e.range.startLineNumber,t,e.range.startLineNumber,l);o.push(new z(this,h,d))}return o}renderHoverParts(e,t){if(!t.length)return s.jG.None;const i=new s.Cm;t.forEach((t=>e.fragment.appendChild(this.renderMarkerHover(t,i))));const n=1===t.length?t[0]:t.sort(((e,t)=>F.cj.compare(e.marker.severity,t.marker.severity)))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=H("div.hover-row"),n=c.BC(i,H("div.marker.hover-contents")),{source:s,message:o,code:r,relatedInformation:a}=e.marker;this._editor.applyFontInfo(n);const l=c.BC(n,H("span"));if(l.style.whiteSpace="pre-wrap",l.innerText=o,s||r)if(r&&"string"!==typeof r){const e=H("span");if(s){c.BC(e,H("span")).innerText=s}const i=c.BC(e,H("a.code-link"));i.setAttribute("href",r.target.toString()),t.add(c.ko(i,"click",(e=>{this._openerService.open(r.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()})));c.BC(i,H("span")).innerText=r.value;const o=c.BC(n,e);o.style.opacity="0.6",o.style.paddingLeft="6px"}else{const e=c.BC(n,H("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=s&&r?`${s}(${r})`:s||`(${r})`}if((0,u.EI)(a))for(const{message:d,resource:h,startLineNumber:u,startColumn:g}of a){const e=c.BC(n,H("div"));e.style.marginTop="8px";const i=c.BC(e,H("a"));i.innerText=`${(0,N.P8)(h)}(${u}, ${g}): `,i.style.cursor="pointer",t.add(c.ko(i,"click",(e=>{e.stopPropagation(),e.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(E.dz)})));const s=c.BC(e,H("span"));s.innerText=d,this._editor.applyFontInfo(s)}return i}renderMarkerStatusbar(e,t,i){if(t.marker.severity===F.cj.Error||t.marker.severity===F.cj.Warning||t.marker.severity===F.cj.Info){const i=O.j.get(this._editor);i&&e.statusBar.addAction({label:P.kg("view problem","View Problem"),commandId:O.i.ID,run:()=>{e.hide(),i.showAtMarker(t.marker),this._editor.focus()}})}if(!this._editor.getOption(91)){const n=e.statusBar.append(H("div"));this.recentMarkerCodeActionsInfo&&(F.oc.makeKey(this.recentMarkerCodeActionsInfo.marker)===F.oc.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=P.kg("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const o=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?s.jG.None:(0,D.EQ)((()=>n.textContent=P.kg("checkingForQuickFixes","Checking for quick fixes...")),200,i);n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add((0,s.s)((()=>r.cancel()))),r.then((r=>{if(o.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:r.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return r.dispose(),void(n.textContent=P.kg("noQuickFixes","No quick fixes available"));n.style.display="none";let a=!1;i.add((0,s.s)((()=>{a||r.dispose()}))),e.statusBar.addAction({label:P.kg("quick fixes","Quick Fix..."),commandId:M.pQ,run:t=>{a=!0;const i=A.C.get(this._editor),n=c.BK(t);e.hide(),null===i||void 0===i||i.showCodeActions(j,r,{x:n.left,y:n.top,width:n.width,height:n.height})}})}),E.dz)}}getCodeActions(e){return(0,D.SS)((t=>(0,M.dU)(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new r.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),j,B.ke.None,t)))}};U=W([V(1,I.A),V(2,w.C),V(3,T.u)],U);var K,G=i(25958),$=i(98031),q=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Q=function(e,t){return function(i,n){t(i,n,e)}};let Y=K=class extends s.jG{constructor(e,t,i,n,o){super(),this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._keybindingService=o,this._listenersStore=new s.Cm,this._hoverState={mouseDown:!1,contentHoverFocused:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new D.uC((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}static get(e){return e.getContribution(K.ID)}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.delay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){var t;this._hoverState.mouseDown=!0;const i=e.target;9!==i.type||i.detail!==h.Q1.ID?12===i.type&&i.detail===b.ID||(12!==i.type&&(this._hoverState.contentHoverFocused=!1),(null===(t=this._contentWidget)||void 0===t?void 0:t.widget.isResizing)||this._hideWidgets()):this._hoverState.contentHoverFocused=!0}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){var t,i;this._cancelScheduler();const n=e.event.browserEvent.relatedTarget;(null===(t=this._contentWidget)||void 0===t?void 0:t.widget.isResizing)||(null===(i=this._contentWidget)||void 0===i?void 0:i.containsNode(n))||this._hideWidgets()}_isMouseOverWidget(e){var t,i,n,s,o;const r=e.target,a=this._hoverSettings.sticky;return!(!a||9!==r.type||r.detail!==h.Q1.ID)||(!(!a||!(null===(t=this._contentWidget)||void 0===t?void 0:t.containsNode(null===(i=e.event.browserEvent.view)||void 0===i?void 0:i.document.activeElement))||(null===(s=null===(n=e.event.browserEvent.view)||void 0===n?void 0:n.getSelection())||void 0===s?void 0:s.isCollapsed))||(!(a||9!==r.type||r.detail!==h.Q1.ID||!(null===(o=this._contentWidget)||void 0===o?void 0:o.isColorPickerVisible))||!(!a||12!==r.type||r.detail!==b.ID)))}_onEditorMouseMove(e){var t,i,n,s;if(this._mouseMoveEvent=e,(null===(t=this._contentWidget)||void 0===t?void 0:t.isFocused)||(null===(i=this._contentWidget)||void 0===i?void 0:i.isResizing))return;if(this._hoverState.mouseDown&&this._hoverState.contentHoverFocused)return;const o=this._hoverSettings.sticky;if(o&&(null===(n=this._contentWidget)||void 0===n?void 0:n.isVisibleFromKeyboard))return;if(this._isMouseOverWidget(e))return void this._reactToEditorMouseMoveRunner.cancel();const r=this._hoverSettings.hidingDelay;(null===(s=this._contentWidget)||void 0===s?void 0:s.isVisible)&&o&&r>0?this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(r):this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){var t,i,n,s;if(!e)return;const o=e.target,r=null===(t=o.element)||void 0===t?void 0:t.classList.contains("colorpicker-color-decoration"),a=this._editor.getOption(148),l=this._hoverSettings.enabled,d=this._hoverState.activatedByDecoratorClick;if(r&&("click"===a&&!d||"hover"===a&&!l||"clickAndHover"===a&&!l&&!d)||!r&&!l&&!d)return void this._hideWidgets();if(this._getOrCreateContentWidget().showsOrWillShow(e))null===(i=this._glyphWidget)||void 0===i||i.hide();else if(2===o.type&&o.position&&o.detail.glyphMarginLane){null===(n=this._contentWidget)||void 0===n||n.hide();this._getOrCreateGlyphWidget().startShowingAt(o.position.lineNumber,o.detail.glyphMarginLane)}else if(3===o.type&&o.position){null===(s=this._contentWidget)||void 0===s||s.hide();this._getOrCreateGlyphWidget().startShowingAt(o.position.lineNumber,"lineNo")}else this._hideWidgets()}_onKeyDown(e){var t;if(!this._editor.hasModel())return;const i=this._keybindingService.softDispatch(e,this._editor.getDomNode()),n=1===i.kind||2===i.kind&&"editor.action.showHover"===i.commandId&&(null===(t=this._contentWidget)||void 0===t?void 0:t.isVisible);5===e.keyCode||6===e.keyCode||57===e.keyCode||4===e.keyCode||n||this._hideWidgets()}_hideWidgets(){var e,t,i;this._hoverState.mouseDown&&this._hoverState.contentHoverFocused&&(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible)||G.bo.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,this._hoverState.contentHoverFocused=!1,null===(t=this._glyphWidget)||void 0===t||t.hide(),null===(i=this._contentWidget)||void 0===i||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(h.Ad,this._editor)),this._contentWidget}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=new b(this._editor,this._languageService,this._openerService)),this._glyphWidget}showContentHover(e,t,i,n,s=!1){this._hoverState.activatedByDecoratorClick=s,this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}focus(){var e;null===(e=this._contentWidget)||void 0===e||e.focus()}scrollUp(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollUp()}scrollDown(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollDown()}scrollLeft(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollLeft()}scrollRight(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollRight()}pageUp(){var e;null===(e=this._contentWidget)||void 0===e||e.pageUp()}pageDown(){var e;null===(e=this._contentWidget)||void 0===e||e.pageDown()}goToTop(){var e;null===(e=this._contentWidget)||void 0===e||e.goToTop()}goToBottom(){var e;null===(e=this._contentWidget)||void 0===e||e.goToBottom()}get isColorPickerVisible(){var e;return null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible}get isHoverVisible(){var e;return null===(e=this._contentWidget)||void 0===e?void 0:e.isVisible}dispose(){var e,t;super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),null===(e=this._glyphWidget)||void 0===e||e.dispose(),null===(t=this._contentWidget)||void 0===t||t.dispose()}};var Z;Y.ID="editor.contrib.hover",Y=K=q([Q(1,y._Y),Q(2,w.C),Q(3,l.L),Q(4,$.b)],Y),function(e){e.NoAutoFocus="noAutoFocus",e.FocusIfVisible="focusIfVisible",e.AutoFocusImmediately="autoFocusImmediately"}(Z||(Z={}));class X extends o.ks{constructor(){super({id:"editor.action.showHover",label:P.kg({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse."]},"Show or Focus Hover"),metadata:{description:"Show or Focus Hover",args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[Z.NoAutoFocus,Z.FocusIfVisible,Z.AutoFocusImmediately],enumDescriptions:[P.kg("showOrFocusHover.focus.noAutoFocus","The hover will not automatically take focus."),P.kg("showOrFocusHover.focus.focusIfVisible","The hover will take focus only if it is already visible."),P.kg("showOrFocusHover.focus.autoFocusImmediately","The hover will automatically take focus when it appears.")],default:Z.FocusIfVisible}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:a.R.editorTextFocus,primary:(0,n.m5)(2089,2087),weight:100}})}run(e,t,i){if(!t.hasModel())return;const n=Y.get(t);if(!n)return;const s=null===i||void 0===i?void 0:i.focus;let o=Z.FocusIfVisible;Object.values(Z).includes(s)?o=s:"boolean"===typeof s&&s&&(o=Z.AutoFocusImmediately);const a=e=>{const i=t.getPosition(),s=new r.Q(i.lineNumber,i.column,i.lineNumber,i.column);n.showContentHover(s,1,1,e)},l=2===t.getOption(2);n.isHoverVisible?o!==Z.NoAutoFocus?n.focus():a(l):a(l||o===Z.AutoFocusImmediately)}}class J extends o.ks{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:P.kg({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=Y.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new r.Q(n.lineNumber,n.column,n.lineNumber,n.column),o=d.k.get(t);if(!o)return;o.startFindDefinitionFromCursor(n).then((()=>{i.showContentHover(s,1,1,!0)}))}}class ee extends o.ks{constructor(){super({id:"editor.action.scrollUpHover",label:P.kg({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:a.R.hoverFocused,kbOpts:{kbExpr:a.R.hoverFocused,primary:16,weight:100}})}run(e,t){const i=Y.get(t);i&&i.scrollUp()}}class te extends o.ks{constructor(){super({id:"editor.action.scrollDownHover",label:P.kg({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:a.R.hoverFocused,kbOpts:{kbExpr:a.R.hoverFocused,primary:18,weight:100}})}run(e,t){const i=Y.get(t);i&&i.scrollDown()}}class ie extends o.ks{constructor(){super({id:"editor.action.scrollLeftHover",label:P.kg({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:a.R.hoverFocused,kbOpts:{kbExpr:a.R.hoverFocused,primary:15,weight:100}})}run(e,t){const i=Y.get(t);i&&i.scrollLeft()}}class ne extends o.ks{constructor(){super({id:"editor.action.scrollRightHover",label:P.kg({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:a.R.hoverFocused,kbOpts:{kbExpr:a.R.hoverFocused,primary:17,weight:100}})}run(e,t){const i=Y.get(t);i&&i.scrollRight()}}class se extends o.ks{constructor(){super({id:"editor.action.pageUpHover",label:P.kg({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:a.R.hoverFocused,kbOpts:{kbExpr:a.R.hoverFocused,primary:11,secondary:[528],weight:100}})}run(e,t){const i=Y.get(t);i&&i.pageUp()}}class oe extends o.ks{constructor(){super({id:"editor.action.pageDownHover",label:P.kg({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:a.R.hoverFocused,kbOpts:{kbExpr:a.R.hoverFocused,primary:12,secondary:[530],weight:100}})}run(e,t){const i=Y.get(t);i&&i.pageDown()}}class re extends o.ks{constructor(){super({id:"editor.action.goToTopHover",label:P.kg({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:a.R.hoverFocused,kbOpts:{kbExpr:a.R.hoverFocused,primary:14,secondary:[2064],weight:100}})}run(e,t){const i=Y.get(t);i&&i.goToTop()}}class ae extends o.ks{constructor(){super({id:"editor.action.goToBottomHover",label:P.kg({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:a.R.hoverFocused,kbOpts:{kbExpr:a.R.hoverFocused,primary:13,secondary:[2066],weight:100}})}run(e,t){const i=Y.get(t);i&&i.goToBottom()}}(0,o.HW)(Y.ID,Y,2),(0,o.Fl)(X),(0,o.Fl)(J),(0,o.Fl)(ee),(0,o.Fl)(te),(0,o.Fl)(ie),(0,o.Fl)(ne),(0,o.Fl)(se),(0,o.Fl)(oe),(0,o.Fl)(re),(0,o.Fl)(ae),x.B2.register(L.xJ),x.B2.register(U),(0,k.zy)(((e,t)=>{const i=e.getColor(S.oZ8);i&&(t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${i.transparent(.5)}; }`))}))},12143:(e,t,i)=>{"use strict";i.d(t,{w:()=>l});var n=i(90766),s=i(64383),o=i(41234),r=i(5662);class a{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class l extends r.jG{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new o.vl),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new n.uC((()=>this._triggerAsyncComputation()),0)),this._secondWaitScheduler=this._register(new n.uC((()=>this._triggerSyncComputation()),0)),this._loadingMessageScheduler=this._register(new n.uC((()=>this._triggerLoadingMessage()),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,n.bI)((e=>this._computer.computeAsync(e))),(async()=>{try{for await(const e of this._asyncIterable)e&&(this._result.push(e),this._fireResult());this._asyncIterableDone=!0,3!==this._state&&4!==this._state||this._setState(0)}catch(e){(0,s.dz)(e)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){3===this._state&&this._setState(4)}_fireResult(){if(1===this._state||2===this._state)return;const e=0===this._state,t=4===this._state;this._onResult.fire(new a(this._result.slice(0),e,t))}start(e){if(0===e)0===this._state&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}},57039:(e,t,i)=>{"use strict";i.d(t,{B2:()=>o,hx:()=>n,mm:()=>s});class n{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class s{constructor(e,t,i,n,s,o){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=s,this.supportsMarkerHover=o,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}const o=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}},57286:(e,t,i)=>{"use strict";i.d(t,{eH:()=>C,fm:()=>w,xJ:()=>y});var n=i(8597),s=i(25890),o=i(90766),r=i(16980),a=i(5662),l=i(20492),d=i(83069),h=i(36677),c=i(10154),u=i(7142),g=i(31629),p=i(84001),m=i(49099),f=i(56942),_=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},v=function(e,t){return function(i,n){t(i,n,e)}};const b=n.$;class C{constructor(e,t,i,n,s){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=s}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let y=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=3}createLoadingMessage(e){return new C(this,e.range,[(new r.Bc).appendText(g.kg("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,o=i.getLineMaxColumn(n),a=[];let l=1e3;const d=i.getLineLength(n),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),u=this._editor.getOption(117),p=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c});let m=!1;u>=0&&d>u&&e.range.startColumn>=u&&(m=!0,a.push(new C(this,e.range,[{value:g.kg("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,l++))),!m&&"number"===typeof p&&d>=p&&a.push(new C(this,e.range,[{value:g.kg("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,l++));let f=!1;for(const g of t){const t=g.range.startLineNumber===n?g.range.startColumn:1,i=g.range.endLineNumber===n?g.range.endColumn:o,d=g.options.hoverMessage;if(!d||(0,r.it)(d))continue;g.options.beforeContentClassName&&(f=!0);const c=new h.Q(e.range.startLineNumber,t,e.range.startLineNumber,i);a.push(new C(this,c,(0,s._j)(d),f,l++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return o.AE.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return o.AE.EMPTY;const s=new d.y(e.range.startLineNumber,e.range.startColumn);return(0,u.Zt)(this._languageFeaturesService.hoverProvider,n,s,i).filter((e=>!(0,r.it)(e.hover.contents))).map((t=>{const i=t.hover.range?h.Q.lift(t.hover.range):e.range;return new C(this,i,t.hover.contents,!1,t.ordinal)}))}renderHoverParts(e,t){return w(e,t,this._editor,this._languageService,this._openerService)}};function w(e,t,i,s,o){t.sort(((e,t)=>e.ordinal-t.ordinal));const d=new a.Cm;for(const a of t)for(const t of a.contents){if((0,r.it)(t))continue;const a=b("div.hover-row.markdown-hover"),h=n.BC(a,b("div.hover-contents")),c=d.add(new l.T({editor:i},s,o));d.add(c.onDidRenderAsync((()=>{h.className="hover-contents code-hover-contents",e.onContentsChanged()})));const u=d.add(c.render(t));h.appendChild(u.element),e.fragment.appendChild(a)}return d}y=_([v(1,c.L),v(2,m.C),v(3,p.pG),v(4,f.u)],y)},28449:(e,t,i)=>{"use strict";var n=i(90766),s=i(64383),o=i(50868),r=i(31450),a=i(36677),l=i(75326),d=i(60002),h=i(38361),c=i(10920),u=i(31629);class g{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new l.L(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new l.L(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}var p,m=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t){return function(i,n){t(i,n,e)}};let _=p=class{static get(e){return e.getContribution(p.ID)}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){var i;null===(i=this.currentRequest)||void 0===i||i.cancel();const r=this.editor.getSelection(),d=this.editor.getModel();if(!d||!r)return;let h=r;if(h.startLineNumber!==h.endLineNumber)return;const c=new o.$t(this.editor,5),u=d.uri;return this.editorWorkerService.canNavigateValueSet(u)?(this.currentRequest=(0,n.SS)((e=>this.editorWorkerService.navigateValueSet(u,h,t))),this.currentRequest.then((t=>{var i;if(!t||!t.range||!t.value)return;if(!c.validate(this.editor))return;const o=a.Q.lift(t.range);let r=t.range;const d=t.value.length-(h.endColumn-h.startColumn);r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.startColumn+t.value.length},d>1&&(h=new l.L(h.startLineNumber,h.startColumn,h.endLineNumber,h.endColumn+d-1));const u=new g(o,h,t.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,u),this.editor.pushUndoStop(),this.decorations.set([{range:r,options:p.DECORATION}]),null===(i=this.decorationRemover)||void 0===i||i.cancel(),this.decorationRemover=(0,n.wR)(350),this.decorationRemover.then((()=>this.decorations.clear())).catch(s.dz)})).catch(s.dz)):Promise.resolve(void 0)}};_.ID="editor.contrib.inPlaceReplaceController",_.DECORATION=h.kI.register({description:"in-place-replace",className:"valueSetReplacement"}),_=p=m([f(1,c.w)],_);class v extends r.ks{constructor(){super({id:"editor.action.inPlaceReplace.up",label:u.kg("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:d.R.writable,kbOpts:{kbExpr:d.R.editorTextFocus,primary:3159,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}class b extends r.ks{constructor(){super({id:"editor.action.inPlaceReplace.down",label:u.kg("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:d.R.writable,kbOpts:{kbExpr:d.R.editorTextFocus,primary:3161,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}(0,r.HW)(_.ID,_,4),(0,r.Fl)(v),(0,r.Fl)(b)},57244:(e,t,i)=>{"use strict";var n=i(5662),s=i(91508),o=i(31450),r=i(7936),a=i(36677),l=i(60002),d=i(17469),h=i(23750),c=i(64395),u=i(31629),g=i(51467),p=i(82365),m=i(7085),f=i(93895),_=i(75326);function v(e,t,i,n,o){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const a=t.getLanguageConfiguration(e.getLanguageId()).indentationRules;if(!a)return[];for(n=Math.min(n,e.getLineCount());i<=n&&a.unIndentedLinePattern;){const t=e.getLineContent(i);if(!a.unIndentedLinePattern.test(t))break;i++}if(i>n-1)return[];const{tabSize:l,indentSize:d,insertSpaces:h}=e.getOptions(),c=(e,t)=>(t=t||1,r.Y.shiftIndent(e,e.length+t,l,d,h)),u=(e,t)=>(t=t||1,r.Y.unshiftIndent(e,e.length+t,l,d,h)),g=[];let p;const v=e.getLineContent(i);let b=v;if(void 0!==o&&null!==o){p=o;const e=s.UU(v);b=p+v.substring(e.length),a.decreaseIndentPattern&&a.decreaseIndentPattern.test(b)&&(p=u(p),b=p+v.substring(e.length)),v!==b&&g.push(m.k.replaceMove(new _.L(i,1,i,e.length+1),(0,f.P)(p,d,h)))}else p=s.UU(v);let C=p;a.increaseIndentPattern&&a.increaseIndentPattern.test(b)?(C=c(C),p=c(p)):a.indentNextLinePattern&&a.indentNextLinePattern.test(b)&&(C=c(C));for(let r=++i;r<=n;r++){const t=e.getLineContent(r),i=s.UU(t),n=C+t.substring(i.length);a.decreaseIndentPattern&&a.decreaseIndentPattern.test(n)&&(C=u(C),p=u(p)),i!==C&&g.push(m.k.replaceMove(new _.L(r,1,r,i.length+1),(0,f.P)(C,d,h))),a.unIndentedLinePattern&&a.unIndentedLinePattern.test(t)||(a.increaseIndentPattern&&a.increaseIndentPattern.test(n)?(p=c(p),C=p):C=a.indentNextLinePattern&&a.indentNextLinePattern.test(n)?c(C):p)}return g}var b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};class y extends o.ks{constructor(){super({id:y.ID,label:u.kg("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:l.R.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const o=new A(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}y.ID="editor.action.indentationToSpaces";class w extends o.ks{constructor(){super({id:w.ID,label:u.kg("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:l.R.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),s=t.getSelection();if(!s)return;const o=new R(s,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}w.ID="editor.action.indentationToTabs";class S extends o.ks{constructor(e,t,i){super(i),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){const i=e.get(g.GK),n=e.get(h.S),s=t.getModel();if(!s)return;const o=n.getCreationOptions(s.getLanguageId(),s.uri,s.isForSimpleWidget),r=s.getOptions(),a=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===o.tabSize&&e===r.tabSize?u.kg("configuredTabSize","Configured Tab Size"):e===o.tabSize?u.kg("defaultTabSize","Default Tab Size"):e===r.tabSize?u.kg("currentTabSize","Current Tab Size"):void 0}))),l=Math.min(s.getOptions().tabSize-1,7);setTimeout((()=>{i.pick(a,{placeHolder:u.kg({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[l]}).then((e=>{if(e&&s&&!s.isDisposed()){const t=parseInt(e.label,10);this.displaySizeOnly?s.updateOptions({tabSize:t}):s.updateOptions({tabSize:t,indentSize:t,insertSpaces:this.insertSpaces})}}))}),50)}}class k extends S{constructor(){super(!1,!1,{id:k.ID,label:u.kg("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}k.ID="editor.action.indentUsingTabs";class x extends S{constructor(){super(!0,!1,{id:x.ID,label:u.kg("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}x.ID="editor.action.indentUsingSpaces";class L extends S{constructor(){super(!0,!0,{id:L.ID,label:u.kg("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0})}}L.ID="editor.action.changeTabDisplaySize";class D extends o.ks{constructor(){super({id:D.ID,label:u.kg("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const i=e.get(h.S),n=t.getModel();if(!n)return;const s=i.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(s.insertSpaces,s.tabSize)}}D.ID="editor.action.detectIndentation";class E extends o.ks{constructor(){super({id:"editor.action.reindentlines",label:u.kg("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:l.R.writable})}run(e,t){const i=e.get(d.JZ),n=t.getModel();if(!n)return;const s=v(n,i,1,n.getLineCount());s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}}class N extends o.ks{constructor(){super({id:"editor.action.reindentselectedlines",label:u.kg("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:l.R.writable})}run(e,t){const i=e.get(d.JZ),n=t.getModel();if(!n)return;const s=t.getSelections();if(null===s)return;const o=[];for(const r of s){let e=r.startLineNumber,t=r.endLineNumber;if(e!==t&&1===r.endColumn&&t--,1===e){if(e===t)continue}else e--;const s=v(n,i,e,t);o.push(...s)}o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}}class T{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&"string"===typeof i.text&&this._edits.push(i)}getEditOperations(e,t){for(const n of this._edits)t.addEditOperation(a.Q.lift(n.range),n.text);let i=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let I=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new n.Cm,this.callOnModel=new n.Cm,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(12)<4||this.editor.getOption(55)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((({range:e})=>{this.trigger(e)})))}trigger(e){const t=this.editor.getSelections();if(null===t||t.length>1)return;const i=this.editor.getModel();if(!i)return;if(!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const n=this.editor.getOption(12),{tabSize:o,indentSize:l,insertSpaces:d}=i.getOptions(),h=[],u={shiftIndent:e=>r.Y.shiftIndent(e,e.length+1,o,l,d),unshiftIndent:e=>r.Y.unshiftIndent(e,e.length+1,o,l,d)};let g=e.startLineNumber;for(;g<=e.endLineNumber&&this.shouldIgnoreLine(i,g);)g++;if(g>e.endLineNumber)return;let m=i.getLineContent(g);if(!/\S/.test(m.substring(0,e.startColumn-1))){const e=(0,p.$f)(n,i,i.getLanguageId(),g,u,this._languageConfigurationService);if(null!==e){const t=s.UU(m),n=c.c(e,o);if(n!==c.c(t,o)){const e=c.k(n,o,d);h.push({range:new a.Q(g,1,g,t.length+1),text:e}),m=e+m.substr(t.length)}else{const e=(0,p.Yb)(i,g,this._languageConfigurationService);if(0===e||8===e)return}}}const f=g;for(;g<e.endLineNumber&&!/\S/.test(i.getLineContent(g+1));)g++;if(g!==e.endLineNumber){const t={tokenization:{getLineTokens:e=>i.tokenization.getLineTokens(e),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(e,t)=>i.getLanguageIdAtPosition(e,t)},getLineContent:e=>e===f?m:i.getLineContent(e)},r=(0,p.$f)(n,t,i.getLanguageId(),g+1,u,this._languageConfigurationService);if(null!==r){const t=c.c(r,o),n=c.c(s.UU(i.getLineContent(g+1)),o);if(t!==n){const r=t-n;for(let t=g+1;t<=e.endLineNumber;t++){const e=i.getLineContent(t),n=s.UU(e),l=c.c(n,o)+r,u=c.k(l,o,d);u!==n&&h.push({range:new a.Q(t,1,t,n.length+1),text:u})}}}}if(h.length>0){this.editor.pushUndoStop();const e=new T(h,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(0===i)return!0;const n=e.tokenization.getLineTokens(t);if(n.getCount()>0){const e=n.findTokenIndexAtOffset(i);if(e>=0&&1===n.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};function M(e,t,i,n){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let s="";for(let r=0;r<i;r++)s+=" ";const o=new RegExp(s,"gi");for(let r=1,l=e.getLineCount();r<=l;r++){let i=e.getLineFirstNonWhitespaceColumn(r);if(0===i&&(i=e.getLineMaxColumn(r)),1===i)continue;const l=new a.Q(r,1,r,i),d=e.getValueInRange(l),h=n?d.replace(/\t/gi,s):d.replace(o,"\t");t.addEditOperation(l,h)}}I.ID="editor.contrib.autoIndentOnPaste",I=b([C(1,d.JZ)],I);class A{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class R{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}(0,o.HW)(I.ID,I,2),(0,o.Fl)(y),(0,o.Fl)(w),(0,o.Fl)(k),(0,o.Fl)(x),(0,o.Fl)(L),(0,o.Fl)(D),(0,o.Fl)(E),(0,o.Fl)(N)},64395:(e,t,i)=>{"use strict";function n(e,t){let i=0;for(let n=0;n<e.length;n++)"\t"===e.charAt(n)?i+=t:i++;return i}function s(e,t,i){e=e<0?0:e;let n="";if(!i){const i=Math.floor(e/t);e%=t;for(let e=0;e<i;e++)n+="\t"}for(let s=0;s<e;s++)n+=" ";return n}i.d(t,{c:()=>n,k:()=>s})},87536:(e,t,i)=>{"use strict";var n=i(31450),s=i(57039),o=i(8597),r=i(25890),a=i(90766),l=i(18447),d=i(64383),h=i(5662),c=i(74320),u=i(631),g=i(79400),p=i(37734),m=i(55190),f=i(87908),_=i(7085),v=i(36677),b=i(62083),C=i(16223),y=i(38361),w=i(32500),S=i(56942),k=i(18938),x=i(37927),L=i(83069),D=i(36456);class E{constructor(e,t){this.range=e,this.direction=t}}class N{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new N(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}async resolve(e){if("function"===typeof this.provider.resolveInlayHint){if(this._currentResolve){if(await this._currentResolve,e.isCancellationRequested)return;return this.resolve(e)}this._isResolved||(this._currentResolve=this._doResolve(e).finally((()=>this._currentResolve=void 0))),await this._currentResolve}}async _doResolve(e){var t,i,n;try{const s=await Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=null!==(t=null===s||void 0===s?void 0:s.tooltip)&&void 0!==t?t:this.hint.tooltip,this.hint.label=null!==(i=null===s||void 0===s?void 0:s.label)&&void 0!==i?i:this.hint.label,this.hint.textEdits=null!==(n=null===s||void 0===s?void 0:s.textEdits)&&void 0!==n?n:this.hint.textEdits,this._isResolved=!0}catch(s){(0,d.M_)(s),this._isResolved=!1}}}class T{static async create(e,t,i,n){const s=[],o=e.ordered(t).reverse().map((e=>i.map((async i=>{try{const o=await e.provideInlayHints(t,i,n);((null===o||void 0===o?void 0:o.hints.length)||e.onDidChangeInlayHints)&&s.push([null!==o&&void 0!==o?o:T._emptyInlayHintList,e])}catch(o){(0,d.M_)(o)}}))));if(await Promise.all(o.flat()),n.isCancellationRequested||t.isDisposed())throw new d.AL;return new T(i,s,t)}constructor(e,t,i){this._disposables=new h.Cm,this.ranges=e,this.provider=new Set;const n=[];for(const[s,o]of t){this._disposables.add(s),this.provider.add(o);for(const e of s.hints){const t=i.validatePosition(e.position);let s="before";const r=T._getRangeAtPosition(i,t);let a;r.getStartPosition().isBefore(t)?(a=v.Q.fromPositions(r.getStartPosition(),t),s="after"):(a=v.Q.fromPositions(t,r.getEndPosition()),s="before"),n.push(new N(e,new E(a,s),o))}}this.items=n.sort(((e,t)=>L.y.compare(e.hint.position,t.hint.position)))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new v.Q(i,n.startColumn,i,n.endColumn);e.tokenization.tokenizeIfCheap(i);const s=e.tokenization.getLineTokens(i),o=t.column-1,r=s.findTokenIndexAtOffset(o);let a=s.getStartOffset(r),l=s.getEndOffset(r);return l-a===1&&(a===o&&r>1?(a=s.getStartOffset(r-1),l=s.getEndOffset(r-1)):l===o&&r<s.getCount()-1&&(a=s.getStartOffset(r+1),l=s.getEndOffset(r+1))),new v.Q(i,a+1,i,l+1)}}T._emptyInlayHintList=Object.freeze({dispose(){},hints:[]});var I,M=i(60952),A=i(50091),R=i(14718),O=i(63591),P=i(58591),F=i(85845),B=i(47612),W=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},V=function(e,t){return function(i,n){t(i,n,e)}};class H{constructor(){this._entries=new c.qK(50)}get(e){const t=H._key(e);return this._entries.get(t)}set(e,t){const i=H._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const z=(0,O.u1)("IInlayHintsCache");(0,R.v)(z,H,1);class j{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return"string"===typeof e?{label:e}:e[this.index]}}class U{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let K=I=class{static get(e){var t;return null!==(t=e.getContribution(I.ID))&&void 0!==t?t:void 0}constructor(e,t,i,n,s,o,r){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=s,this._notificationService=o,this._instaService=r,this._disposables=new h.Cm,this._sessionDisposables=new h.Cm,this._decorationsMetadata=new Map,this._ruleFactory=new p.Qn(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange((()=>this._update()))),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(141)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(141);if("off"===e.enabled)return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;if("on"===e.enabled)this._activeRenderMode=0;else{let t,i;"onUnlessPressed"===e.enabled?(t=0,i=1):(t=1,i=0),this._activeRenderMode=t,this._sessionDisposables.add(o.Di.getInstance().event((e=>{if(!this._editor.hasModel())return;const n=e.altKey&&e.ctrlKey&&!e.shiftKey&&!e.metaKey?i:t;if(n!==this._activeRenderMode){this._activeRenderMode=n;const e=this._editor.getModel(),t=this._copyInlayHintsWithCurrentAnchor(e);this._updateHintsDecorators([e.getFullModelRange()],t),r.schedule(0)}})))}const i=this._inlayHintsCache.get(t);let n;i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add((0,h.s)((()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)})));const s=new Set,r=new a.uC((async()=>{const e=Date.now();null===n||void 0===n||n.dispose(!0),n=new l.Q;const i=t.onWillDispose((()=>null===n||void 0===n?void 0:n.cancel()));try{const i=n.token,o=await T.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),i);if(r.delay=this._debounceInfo.update(t,Date.now()-e),i.isCancellationRequested)return void o.dispose();for(const e of o.provider)"function"!==typeof e.onDidChangeInlayHints||s.has(e)||(s.add(e),this._sessionDisposables.add(e.onDidChangeInlayHints((()=>{r.isScheduled()||r.schedule()}))));this._sessionDisposables.add(o),this._updateHintsDecorators(o.ranges,o.items),this._cacheHintsForFastRestore(t)}catch(o){(0,d.dz)(o)}finally{n.dispose(),i.dispose()}}),this._debounceInfo.get(t));this._sessionDisposables.add(r),this._sessionDisposables.add((0,h.s)((()=>null===n||void 0===n?void 0:n.dispose(!0)))),r.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange((e=>{!e.scrollTopChanged&&r.isScheduled()||r.schedule()}))),this._sessionDisposables.add(this._editor.onDidChangeModelContent((e=>{null===n||void 0===n||n.cancel();const t=Math.max(r.delay,1250);r.schedule(t)}))),this._sessionDisposables.add(this._installDblClickGesture((()=>r.schedule(0)))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new h.Cm,t=e.add(new x.gi(this._editor)),i=new h.Cm;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown((e=>{const[t]=e,n=this._getInlayHintLabelPart(t),s=this._editor.getModel();if(!n||!s)return void i.clear();const o=new l.Q;i.add((0,h.s)((()=>o.dispose(!0)))),n.item.resolve(o.token),this._activeInlayHintPart=n.part.command||n.part.location?new U(n,t.hasTriggerModifier):void 0;const r=s.validatePosition(n.item.hint.position).lineNumber,a=new v.Q(r,1,r,s.getLineMaxColumn(r)),d=this._getInlineHintsForRange(a);this._updateHintsDecorators([a],d),i.add((0,h.s)((()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([a],d)})))}))),e.add(t.onCancel((()=>i.clear()))),e.add(t.onExecute((async e=>{const t=this._getInlayHintLabelPart(e);if(t){const i=t.part;i.location?this._instaService.invokeFunction(M.U,e,this._editor,i.location):b.uB.is(i.command)&&await this._invokeCommand(i.command,t.item)}}))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp((async t=>{if(2!==t.event.detail)return;const i=this._getInlayHintLabelPart(t);if(i&&(t.event.preventDefault(),await i.item.resolve(l.X.None),(0,r.EI)(i.item.hint.textEdits))){const t=i.item.hint.textEdits.map((e=>_.k.replace(v.Q.lift(e.range),e.text)));this._editor.executeEdits("inlayHint.default",t),e()}}))}_installContextMenu(){return this._editor.onContextMenu((async e=>{if(!(e.event.target instanceof HTMLElement))return;const t=this._getInlayHintLabelPart(e);t&&await this._instaService.invokeFunction(M.h,this._editor,e.event.target,t)}))}_getInlayHintLabelPart(e){var t;if(6!==e.target.type)return;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof y.Ho&&(null===i||void 0===i?void 0:i.attachedData)instanceof j?i.attachedData:void 0}async _invokeCommand(e,t){var i;try{await this._commandService.executeCommand(e.id,...null!==(i=e.arguments)&&void 0!==i?i:[])}catch(n){this._notificationService.notify({severity:P.AI.Error,source:t.provider.displayName,message:n})}}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,n]of this._decorationsMetadata){if(t.has(n.item))continue;const s=e.getDecorationRange(i);if(s){const e=new E(s,n.item.anchor.direction),i=n.item.with({anchor:e});t.set(n.item,i)}}return Array.from(t.values())}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),i=[];for(const n of t.sort(v.Q.compareRangesUsingStarts)){const t=e.validateRange(new v.Q(n.startLineNumber-30,n.startColumn,n.endLineNumber+30,n.endColumn));0!==i.length&&v.Q.areIntersectingOrTouching(i[i.length-1],t)?i[i.length-1]=v.Q.plusRange(i[i.length-1],t):i.push(t)}return i}_updateHintsDecorators(e,t){var i,n;const s=[],o=(e,t,i,n,o)=>{const r={content:i,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:t.className,cursorStops:n,attachedData:o};s.push({item:e,classNameRef:t,decoration:{range:e.anchor.range,options:{description:"InlayHint",showIfCollapsed:e.anchor.range.isEmpty(),collapseOnReplaceEdit:!e.anchor.range.isEmpty(),stickiness:0,[e.anchor.direction]:0===this._activeRenderMode?r:void 0}}})},a=(e,t)=>{const i=this._ruleFactory.createClassNameRef({width:(l/3|0)+"px",display:"inline-block"});o(e,i,"\u200a",t?C.VW.Right:C.VW.None)},{fontSize:l,fontFamily:d,padding:h,isUniform:c}=this._getLayoutInfo(),u="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(u,d);let g={line:0,totalLen:0};for(const m of t){if(g.line!==m.anchor.range.startLineNumber&&(g={line:m.anchor.range.startLineNumber,totalLen:0}),g.totalLen>I._MAX_LABEL_LEN)continue;m.hint.paddingLeft&&a(m,!1);const e="string"===typeof m.hint.label?[{label:m.hint.label}]:m.hint.label;for(let t=0;t<e.length;t++){const n=e[t],s=0===t,a=t===e.length-1,d={fontSize:`${l}px`,fontFamily:`var(${u}), ${f.jU.fontFamily}`,verticalAlign:c?"baseline":"middle",unicodeBidi:"isolate"};(0,r.EI)(m.hint.textEdits)&&(d.cursor="default"),this._fillInColors(d,m.hint),(n.command||n.location)&&(null===(i=this._activeInlayHintPart)||void 0===i?void 0:i.part.item)===m&&this._activeInlayHintPart.part.index===t&&(d.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(d.color=(0,B.Yf)(F.Ztu),d.cursor="pointer")),h&&(s&&a?(d.padding=`1px ${0|Math.max(1,l/4)}px`,d.borderRadius=(l/4|0)+"px"):s?(d.padding=`1px 0 1px ${0|Math.max(1,l/4)}px`,d.borderRadius=`${l/4|0}px 0 0 ${l/4|0}px`):a?(d.padding=`1px ${0|Math.max(1,l/4)}px 1px 0`,d.borderRadius=`0 ${l/4|0}px ${l/4|0}px 0`):d.padding="1px 0 1px 0");let p=n.label;g.totalLen+=p.length;let _=!1;const v=g.totalLen-I._MAX_LABEL_LEN;if(v>0&&(p=p.slice(0,-v)+"\u2026",_=!0),o(m,this._ruleFactory.createClassNameRef(d),G(p),a&&!m.hint.paddingRight?C.VW.Right:C.VW.None,new j(m,t)),_)break}if(m.hint.paddingRight&&a(m,!0),s.length>I._MAX_DECORATORS)break}const p=[];for(const[r,m]of this._decorationsMetadata){const t=null===(n=this._editor.getModel())||void 0===n?void 0:n.getDecorationRange(r);t&&e.some((e=>e.containsRange(t)))&&(p.push(r),m.classNameRef.dispose(),this._decorationsMetadata.delete(r))}const _=m.D.capture(this._editor);this._editor.changeDecorations((e=>{const t=e.deltaDecorations(p,s.map((e=>e.decoration)));for(let i=0;i<t.length;i++){const e=s[i];this._decorationsMetadata.set(t[i],e)}})),_.restore(this._editor)}_fillInColors(e,t){t.kind===b.r4.Parameter?(e.backgroundColor=(0,B.Yf)(F.B2L),e.color=(0,B.Yf)(F.sjA)):t.kind===b.r4.Type?(e.backgroundColor=(0,B.Yf)(F._pU),e.color=(0,B.Yf)(F.HwT)):(e.backgroundColor=(0,B.Yf)(F.WL6),e.color=(0,B.Yf)(F.P6i))}_getLayoutInfo(){const e=this._editor.getOption(141),t=e.padding,i=this._editor.getOption(52),n=this._editor.getOption(49);let s=e.fontSize;(!s||s<5||s>i)&&(s=i);const o=e.fontFamily||n;return{fontSize:s,fontFamily:o,padding:t,isUniform:!t&&o===n&&s===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};function G(e){return e.replace(/[ \t]/g,"\xa0")}K.ID="editor.contrib.InlayHints",K._MAX_DECORATORS=1500,K._MAX_LABEL_LEN=43,K=I=W([V(1,S.u),V(2,w.U),V(3,z),V(4,A.d),V(5,P.Ot),V(6,O._Y)],K),A.w.registerCommand("_executeInlayHintProvider",(async(e,...t)=>{const[i,n]=t;(0,u.j)(g.r.isUri(i)),(0,u.j)(v.Q.isIRange(n));const{inlayHintsProvider:s}=e.get(S.u),o=await e.get(k.b).createModelReference(i);try{const e=await T.create(s,o.object.textEditorModel,[v.Q.lift(n)],l.X.None),t=e.items.map((e=>e.hint));return setTimeout((()=>e.dispose()),0),t}finally{o.dispose()}}));var $=i(16980),q=i(10154),Q=i(7142),Y=i(57286),Z=i(84001),X=i(49099),J=i(31629),ee=i(98067),te=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ie=function(e,t){return function(i,n){t(i,n,e)}};class ne extends s.mm{constructor(e,t,i,n){super(10,t,e.item.anchor.range,i,n,!0),this.part=e}}let se=class extends Y.xJ{constructor(e,t,i,n,s,o){super(e,t,i,n,o),this._resolverService=s,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!K.get(this._editor))return null;if(6!==e.target.type)return null;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof y.Ho&&i.attachedData instanceof j?new ne(i.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof ne?new a.AE((async t=>{const{part:n}=e;if(await n.item.resolve(i),i.isCancellationRequested)return;let s,o;if("string"===typeof n.item.hint.tooltip?s=(new $.Bc).appendText(n.item.hint.tooltip):n.item.hint.tooltip&&(s=n.item.hint.tooltip),s&&t.emitOne(new Y.eH(this,e.range,[s],!1,0)),(0,r.EI)(n.item.hint.textEdits)&&t.emitOne(new Y.eH(this,e.range,[(new $.Bc).appendText((0,J.kg)("hint.dbl","Double-click to insert"))],!1,10001)),"string"===typeof n.part.tooltip?o=(new $.Bc).appendText(n.part.tooltip):n.part.tooltip&&(o=n.part.tooltip),o&&t.emitOne(new Y.eH(this,e.range,[o],!1,1)),n.part.location||n.part.command){let i;const s="altKey"===this._editor.getOption(78)?ee.zx?(0,J.kg)("links.navigate.kb.meta.mac","cmd + click"):(0,J.kg)("links.navigate.kb.meta","ctrl + click"):ee.zx?(0,J.kg)("links.navigate.kb.alt.mac","option + click"):(0,J.kg)("links.navigate.kb.alt","alt + click");n.part.location&&n.part.command?i=(new $.Bc).appendText((0,J.kg)("hint.defAndCommand","Go to Definition ({0}), right click for more",s)):n.part.location?i=(new $.Bc).appendText((0,J.kg)("hint.def","Go to Definition ({0})",s)):n.part.command&&(i=new $.Bc(`[${(0,J.kg)("hint.cmd","Execute Command")}](${a=n.part.command,g.r.from({scheme:D.ny.command,path:a.id,query:a.arguments&&encodeURIComponent(JSON.stringify(a.arguments))}).toString()} "${n.part.command.title}") (${s})`,{isTrusted:!0})),i&&t.emitOne(new Y.eH(this,e.range,[i],!1,1e4))}var a;const l=await this._resolveInlayHintLabelPartHover(n,i);for await(const e of l)t.emitOne(e)})):a.AE.EMPTY}async _resolveInlayHintLabelPartHover(e,t){if(!e.part.location)return a.AE.EMPTY;const{uri:i,range:n}=e.part.location,s=await this._resolverService.createModelReference(i);try{const i=s.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(i)?(0,Q.Zt)(this._languageFeaturesService.hoverProvider,i,new L.y(n.startLineNumber,n.startColumn),t).filter((e=>!(0,$.it)(e.hover.contents))).map((t=>new Y.eH(this,e.item.anchor.range,t.hover.contents,!1,2+t.ordinal))):a.AE.EMPTY}finally{s.dispose()}}};se=te([ie(1,q.L),ie(2,X.C),ie(3,Z.pG),ie(4,k.b),ie(5,S.u)],se),(0,n.HW)(K.ID,K,1),s.B2.register(se)},60952:(e,t,i)=>{"use strict";i.d(t,{U:()=>v,h:()=>_});var n=i(8597),s=i(36921),o=i(18447),r=i(58255),a=i(36677),l=i(18938),d=i(99312),h=i(84226),c=i(27195),u=i(50091),g=i(32848),p=i(47508),m=i(63591),f=i(58591);async function _(e,t,i,h){var g;const _=e.get(l.b),v=e.get(p.Z),b=e.get(u.d),C=e.get(m._Y),y=e.get(f.Ot);if(await h.item.resolve(o.X.None),!h.part.location)return;const w=h.part.location,S=[],k=new Set(c.ZG.getMenuItems(c.D8.EditorContext).map((e=>(0,c.is)(e)?e.command.id:(0,r.b)())));for(const n of d.bn.all())k.has(n.desc.id)&&S.push(new s.rc(n.desc.id,c.Xe.label(n.desc,{renderShortTitle:!0}),void 0,!0,(async()=>{const e=await _.createModelReference(w.uri);try{const i=new d.QS(e.object.textEditorModel,a.Q.getStartPosition(w.range)),s=h.item.anchor.range;await C.invokeFunction(n.runEditorCommand.bind(n),t,i,s)}finally{e.dispose()}})));if(h.part.command){const{command:e}=h.part;S.push(new s.wv),S.push(new s.rc(e.id,e.title,void 0,!0,(async()=>{var t;try{await b.executeCommand(e.id,...null!==(t=e.arguments)&&void 0!==t?t:[])}catch(i){y.notify({severity:f.AI.Error,source:h.item.provider.displayName,message:i})}})))}const x=t.getOption(127);v.showContextMenu({domForShadowRoot:x&&null!==(g=t.getDomNode())&&void 0!==g?g:void 0,getAnchor:()=>{const e=n.BK(i);return{x:e.left,y:e.top+e.height+8}},getActions:()=>S,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}async function v(e,t,i,n){const s=e.get(l.b),o=await s.createModelReference(n.uri);await i.invokeWithinContext((async e=>{const s=t.hasSideBySideModifier,r=e.get(g.fN),l=h.x2.inPeekEditor.getValue(r),c=!s&&i.getOption(88)&&!l;return new d.mR({openToSide:s,openInPeek:c,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e,new d.QS(o.object.textEditorModel,a.Q.getStartPosition(n.range)),a.Q.lift(n.range))})),o.dispose()}},27675:(e,t,i)=>{"use strict";i.d(t,{PA:()=>o,Vl:()=>s,Wt:()=>n});const n="editor.action.inlineSuggest.commit",s="editor.action.inlineSuggest.showPrevious",o="editor.action.inlineSuggest.showNext"},24380:(e,t,i)=>{"use strict";i.d(t,{AL:()=>c,Vs:()=>h,x9:()=>u,xD:()=>l,yP:()=>d});var n=i(25890),s=i(91508),o=i(83069),r=i(36677),a=i(75295);class l{constructor(e,t){this.lineNumber=e,this.parts=t}equals(e){return this.lineNumber===e.lineNumber&&this.parts.length===e.parts.length&&this.parts.every(((t,i)=>t.equals(e.parts[i])))}renderForScreenReader(e){if(0===this.parts.length)return"";const t=this.parts[this.parts.length-1],i=e.substr(0,t.column-1);return new a.mF([...this.parts.map((e=>new a.WR(r.Q.fromPositions(new o.y(1,e.column)),e.lines.join("\n"))))]).applyToString(i).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every((e=>0===e.lines.length))}get lineCount(){return 1+this.parts.reduce(((e,t)=>e+t.lines.length-1),0)}}class d{constructor(e,t,i){this.column=e,this.text=t,this.preview=i,this.lines=(0,s.uz)(this.text)}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every(((t,i)=>t===e.lines[i]))}}class h{constructor(e,t,i,n=0){this.lineNumber=e,this.columnRange=t,this.text=i,this.additionalReservedLineCount=n,this.parts=[new d(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=(0,s.uz)(this.text)}renderForScreenReader(e){return this.newLines.join("\n")}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every((e=>0===e.lines.length))}equals(e){return this.lineNumber===e.lineNumber&&this.columnRange.equals(e.columnRange)&&this.newLines.length===e.newLines.length&&this.newLines.every(((t,i)=>t===e.newLines[i]))&&this.additionalReservedLineCount===e.additionalReservedLineCount}}function c(e,t){return(0,n.aI)(e,t,u)}function u(e,t){return e===t||!(!e||!t)&&((e instanceof l&&t instanceof l||e instanceof h&&t instanceof h)&&e.equals(t))}},37899:(e,t,i)=>{"use strict";i.d(t,{vS:()=>k,PM:()=>S});var n=i(80789),s=i(41234),o=i(5662),r=i(99938),a=i(91508),l=i(73157),d=i(87908),h=i(83069),c=i(36677),u=i(99020),g=i(10154),p=i(16223),m=i(87469),f=i(25521),_=i(35600),v=i(24380),b=i(73401),C=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},y=function(e,t){return function(i,n){t(i,n,e)}};const w="ghost-text";let S=class extends o.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,r.FY)(this,!1),this.currentTextModel=(0,r.y0)(this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,r.un)(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;const n=i instanceof v.Vs?i.columnRange:void 0,s=[],o=[];function r(e,t){if(o.length>0){const i=o[o.length-1];t&&i.decorations.push(new f.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)o.push({content:i,decorations:t?[new f.d(1,i.length+1,t,0)]:[]})}const a=t.getLineContent(i.lineNumber);let l,d=0;for(const c of i.parts){let e=c.lines;void 0===l?(s.push({column:c.column,text:e[0],preview:c.preview}),e=e.slice(1)):r([a.substring(d,c.column-1)],void 0),e.length>0&&(r(e,w),void 0===l&&c.column<=a.length&&(l=c.column)),d=c.column-1}void 0!==l&&r([a.substring(d)],void 0);const h=void 0!==l?new b.GM(l,a.length+1):void 0;return{replacedRange:n,inlineTexts:s,additionalLines:o,hiddenRange:h,lineNumber:i.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t}})),this.decorations=(0,r.un)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];t.replacedRange&&i.push({range:t.replacedRange.toRange(t.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(const n of t.inlineTexts)i.push({range:c.Q.fromPositions(new h.y(t.lineNumber,n.column)),options:{description:w,after:{content:n.text,inlineClassName:n.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:p.VW.Left},showIfCollapsed:!0}});return i})),this.additionalLinesWidget=this._register(new k(this.editor,this.languageService.languageIdCodec,(0,r.un)((e=>{const t=this.uiState.read(e);return t?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register((0,o.s)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,b.pY)(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};S=C([y(2,g.L)],S);class k extends o.jG{get viewZoneId(){return this._viewZoneId}constructor(e,t,i){super(),this.editor=e,this.languageIdCodec=t,this.lines=i,this._viewZoneId=void 0,this.editorOptionsChanged=(0,r.yQ)("editorOptionChanged",s.Jh.filter(this.editor.onDidChangeConfiguration,(e=>e.hasChanged(33)||e.hasChanged(117)||e.hasChanged(99)||e.hasChanged(94)||e.hasChanged(51)||e.hasChanged(50)||e.hasChanged(67)))),this._register((0,r.fm)((e=>{const t=this.lines.read(e);this.editorOptionsChanged.read(e),t?this.updateLines(t.lineNumber,t.additionalLines,t.minReservedLineCount):this.clear()})))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones((e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)}))}updateLines(e,t,i){const n=this.editor.getModel();if(!n)return;const{tabSize:s}=n.getOptions();this.editor.changeViewZones((n=>{this._viewZoneId&&(n.removeZone(this._viewZoneId),this._viewZoneId=void 0);const o=Math.max(t.length,i);if(o>0){const i=document.createElement("div");!function(e,t,i,n,s){const o=n.get(33),r=n.get(117),h="none",c=n.get(94),g=n.get(51),p=n.get(50),f=n.get(67),v=new u.fe(1e4);v.appendString('<div class="suggest-preview-text">');for(let l=0,u=i.length;l<u;l++){const e=i[l],n=e.content;v.appendString('<div class="view-line'),v.appendString('" style="top:'),v.appendString(String(l*f)),v.appendString('px;width:1000000px;">');const u=a.aC(n),b=a.E_(n),C=m.f.createEmpty(n,s);(0,_.UW)(new _.zL(p.isMonospace&&!o,p.canUseHalfwidthRightwardsArrow,n,!1,u,b,0,C,e.decorations,t,0,p.spaceWidth,p.middotWidth,p.wsmiddotWidth,r,h,c,g!==d.Bc.OFF,null),v),v.appendString("</div>")}v.appendString("</div>"),(0,l.M)(e,p);const b=v.build(),C=x?x.createHTML(b):b;e.innerHTML=C}(i,s,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=n.addZone({afterLineNumber:e,heightInLines:o,domNode:i,afterColumnAffinity:1})}}))}}const x=(0,n.H)("editorGhostText",{createHTML:e=>e})},30318:(e,t,i)=>{"use strict";i.d(t,{p:()=>d});var n=i(99938),s=i(91508),o=i(1245),r=i(32848),a=i(5662),l=i(31629);class d extends a.jG{constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=d.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=d.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=d.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=d.suppressSuggestions.bindTo(this.contextKeyService),this._register((0,n.fm)((e=>{const t=this.model.read(e),i=null===t||void 0===t?void 0:t.state.read(e),n=!!(null===i||void 0===i?void 0:i.inlineCompletion)&&void 0!==(null===i||void 0===i?void 0:i.primaryGhostText)&&!(null===i||void 0===i?void 0:i.primaryGhostText.isEmpty());this.inlineCompletionVisible.set(n),(null===i||void 0===i?void 0:i.primaryGhostText)&&(null===i||void 0===i?void 0:i.inlineCompletion)&&this.suppressSuggestions.set(i.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)}))),this._register((0,n.fm)((e=>{const t=this.model.read(e);let i=!1,n=!0;const r=null===t||void 0===t?void 0:t.primaryGhostText.read(e);if((null===t||void 0===t?void 0:t.selectedSuggestItem)&&r&&r.parts.length>0){const{column:e,lines:a}=r.parts[0],l=a[0];if(e<=t.textModel.getLineIndentColumn(r.lineNumber)){let e=(0,s.HG)(l);-1===e&&(e=l.length-1),i=e>0;const r=t.textModel.getOptions().tabSize;n=o.A.visibleColumnFromColumn(l,e+1,r)<r}}this.inlineCompletionSuggestsIndentation.set(i),this.inlineCompletionSuggestsIndentationLessThanTabSize.set(n)})))}}d.inlineSuggestionVisible=new r.N1("inlineSuggestionVisible",!1,(0,l.kg)("inlineSuggestionVisible","Whether an inline suggestion is visible")),d.inlineSuggestionHasIndentation=new r.N1("inlineSuggestionHasIndentation",!1,(0,l.kg)("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace")),d.inlineSuggestionHasIndentationLessThanTabSize=new r.N1("inlineSuggestionHasIndentationLessThanTabSize",!0,(0,l.kg)("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab")),d.suppressSuggestions=new r.N1("inlineSuggestionSuppressSuggestions",void 0,(0,l.kg)("suppressSuggestions","Whether suggestions should be suppressed for the current suggestion"))},47873:(e,t,i)=>{"use strict";var n=i(31450),s=i(57039),o=i(99938),r=i(49154),a=i(60002),l=i(27675),d=i(30318),h=i(8597),c=i(11007),u=i(5662),g=i(36999),p=i(83069),m=i(32500),f=i(56942),_=i(37899),v=i(25958),b=i(25890),C=i(46041),y=i(64383),w=i(91508),S=i(631),k=i(7085),x=i(36677),L=i(75326),D=i(62083),E=i(17469),N=i(24380),T=i(18447),I=i(26690),M=i(66782),A=i(90766),R=i(74320),O=i(93630),P=i(19131),F=i(19562),B=i(32956),W=i(51934);class V{constructor(e){this.lines=e,this.tokenization={getLineTokens:e=>this.lines[e-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}var H=i(73401),z=i(29319);async function j(e,t,i,n,s=T.X.None,o){const r=function(e,t){const i=t.getWordAtPosition(e),n=t.getLineMaxColumn(e.lineNumber);return i?new x.Q(e.lineNumber,i.startColumn,e.lineNumber,n):x.Q.fromPositions(e,e.with(void 0,n))}(t,i),a=e.all(i),l=new R.db;for(const _ of a)_.groupId&&l.add(_.groupId,_);function d(e){if(!e.yieldsToGroupIds)return[];const t=[];for(const i of e.yieldsToGroupIds||[]){const e=l.get(i);for(const i of e)t.push(i)}return t}const h=new Map,c=new Set;function u(e,t){if(t=[...t,e],c.has(e))return t;c.add(e);try{const i=d(e);for(const e of i){const i=u(e,t);if(i)return i}}finally{c.delete(e)}}function g(e){const o=h.get(e);if(o)return o;const r=u(e,[]);r&&(0,y.M_)(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${r.map((e=>e.toString?e.toString():""+e)).join(" -> ")}`));const a=new A.Zv;return h.set(e,a.p),(async()=>{if(!r){const t=d(e);for(const e of t){const t=await g(e);if(t&&t.items.length>0)return}}try{return await e.provideInlineCompletions(i,t,n,s)}catch(o){return void(0,y.M_)(o)}})().then((e=>a.complete(e)),(e=>a.error(e))),a.p}const p=await Promise.all(a.map((async e=>({provider:e,completions:await g(e)})))),m=new Map,f=[];for(const _ of p){const e=_.completions;if(!e)continue;const t=new K(e,_.provider);f.push(t);for(const n of e.items){const e=G.from(n,t,r,i,o);m.set(e.hash(),e)}}return new U(Array.from(m.values()),new Set(m.keys()),f)}class U{constructor(e,t,i){this.completions=e,this.hashs=t,this.providerResults=i}has(e){return this.hashs.has(e.hash())}dispose(){for(const e of this.providerResults)e.removeRef()}}class K{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,0===this.refCount&&this.provider.freeInlineCompletions(this.inlineCompletions)}}class G{static from(e,t,i,n,s){let o,r,a=e.range?x.Q.lift(e.range):i;if("string"===typeof e.insertText){if(o=e.insertText,s&&e.completeBracketPairs){o=$(o,a.getStartPosition(),n,s);const t=o.length-e.insertText.length;0!==t&&(a=new x.Q(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+t))}r=void 0}else if("snippet"in e.insertText){const t=e.insertText.snippet.length;if(s&&e.completeBracketPairs){e.insertText.snippet=$(e.insertText.snippet,a.getStartPosition(),n,s);const i=e.insertText.snippet.length-t;0!==i&&(a=new x.Q(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+i))}const i=(new z.fr).parse(e.insertText.snippet);1===i.children.length&&i.children[0]instanceof z.EY?(o=i.children[0].value,r=void 0):(o=i.toString(),r={snippet:e.insertText.snippet,range:a})}else(0,M.xb)(e.insertText);return new G(o,e.command,a,o,r,e.additionalTextEdits||(0,H.zk)(),e,t)}constructor(e,t,i,n,s,o,r,a){this.filterText=e,this.command=t,this.range=i,this.insertText=n,this.snippetInfo=s,this.additionalTextEdits=o,this.sourceInlineCompletion=r,this.source=a,n=(e=e.replace(/\r\n|\r/g,"\n")).replace(/\r\n|\r/g,"\n")}withRange(e){return new G(this.filterText,this.command,e,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}}function $(e,t,i,n){const s=i.getLineContent(t.lineNumber).substring(0,t.column-1)+e,o=i.tokenization.tokenizeLineWithEdit(t,s.length-(t.column-1),e),r=null===o||void 0===o?void 0:o.sliceAndInflate(t.column-1,s.length,0);if(!r)return e;const a=function(e,t){const i=new B.Mg,n=new O.Z(i,(e=>t.getLanguageConfiguration(e))),s=new W.tk(new V([e]),n),o=(0,F.T)(s,[],void 0,!0);let r="";const a=e.getLineContent();return function e(t,i){if(2===t.kind)if(e(t.openingBracket,i),i=(0,P.QB)(i,t.openingBracket.length),t.child&&(e(t.child,i),i=(0,P.QB)(i,t.child.length)),t.closingBracket)e(t.closingBracket,i),i=(0,P.QB)(i,t.closingBracket.length);else{const e=n.getSingleLanguageBracketTokens(t.openingBracket.languageId).findClosingTokenText(t.openingBracket.bracketIds);r+=e}else if(3===t.kind);else if(0===t.kind||1===t.kind)r+=a.substring((0,P.sS)(i),(0,P.sS)((0,P.QB)(i,t.length)));else if(4===t.kind)for(const n of t.children)e(n,i),i=(0,P.QB)(i,n.length)}(o,P.Vp),r}(r,n);return a}var q=i(75295),Q=i(83993),Y=i(50973);function Z(e,t,i){const n=i?e.range.intersectRanges(i):e.range;if(!n)return e;const s=t.getValueInRange(n,1),o=(0,w.Qp)(s,e.text),r=Y.W.ofText(s.substring(0,o)).addToPosition(e.range.getStartPosition()),a=e.text.substring(o),l=x.Q.fromPositions(r,e.range.getEndPosition());return new q.WR(l,a)}function X(e,t){return e.text.startsWith(t.text)&&(i=e.range,(n=t.range).getStartPosition().equals(i.getStartPosition())&&n.getEndPosition().isBeforeOrEqual(i.getEndPosition()));var i,n}function J(e,t,i,n,s=0){let o=Z(e,t);if(o.range.endLineNumber!==o.range.startLineNumber)return;const r=t.getLineContent(o.range.startLineNumber),a=(0,w.UU)(r).length;if(o.range.startColumn-1<=a){const e=(0,w.UU)(o.text).length,t=r.substring(o.range.startColumn-1,a),[i,n]=[o.range.getStartPosition(),o.range.getEndPosition()],s=i.column+t.length<=n.column?i.delta(0,t.length):n,l=x.Q.fromPositions(s,n),d=o.text.startsWith(t)?o.text.substring(t.length):o.text.substring(e);o=new q.WR(l,d)}const l=t.getValueInRange(o.range),d=function(e,t){if((null===ee||void 0===ee?void 0:ee.originalValue)===e&&(null===ee||void 0===ee?void 0:ee.newValue)===t)return null===ee||void 0===ee?void 0:ee.changes;{let i=ie(e,t,!0);if(i){const n=te(i);if(n>0){const s=ie(e,t,!1);s&&te(s)<n&&(i=s)}}return ee={originalValue:e,newValue:t,changes:i},i}}(l,o.text);if(!d)return;const h=o.range.startLineNumber,c=new Array;if("prefix"===i){const e=d.filter((e=>0===e.originalLength));if(e.length>1||1===e.length&&e[0].originalStart!==l.length)return}const u=o.text.length-s;for(const g of d){const e=o.range.startColumn+g.originalStart+g.originalLength;if("subwordSmart"===i&&n&&n.lineNumber===o.range.startLineNumber&&e<n.column)return;if(g.originalLength>0)return;if(0===g.modifiedLength)continue;const t=g.modifiedStart+g.modifiedLength,s=Math.max(g.modifiedStart,Math.min(t,u)),r=o.text.substring(g.modifiedStart,s),a=o.text.substring(s,Math.max(g.modifiedStart,t));r.length>0&&c.push(new N.yP(e,r,!1)),a.length>0&&c.push(new N.yP(e,a,!0))}return new N.xD(h,c)}let ee;function te(e){let t=0;for(const i of e)t+=i.originalLength;return t}function ie(e,t,i){if(e.length>5e3||t.length>5e3)return;function n(e){let t=0;for(let i=0,n=e.length;i<n;i++){const n=e.charCodeAt(i);n>t&&(t=n)}return t}const s=Math.max(n(e),n(t));function o(e){if(e<0)throw new Error("unexpected");return s+e+1}function r(e){let t=0,n=0;const s=new Int32Array(e.length);for(let r=0,a=e.length;r<a;r++)if(i&&"("===e[r]){const e=100*n+t;s[r]=o(2*e),t++}else if(i&&")"===e[r]){t=Math.max(t-1,0);const e=100*n+t;s[r]=o(2*e+1),0===t&&n++}else s[r]=e.charCodeAt(r);return s}const a=r(e),l=r(t);return new Q.uP({getElements:()=>a},{getElements:()=>l}).ComputeDiff(!1).changes}var ne=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},se=function(e,t){return function(i,n){t(i,n,e)}};let oe=class extends u.jG{constructor(e,t,i,n,s){super(),this.textModel=e,this.versionId=t,this._debounceValue=i,this.languageFeaturesService=n,this.languageConfigurationService=s,this._updateOperation=this._register(new u.HE),this.inlineCompletions=(0,o.X2)("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=(0,o.X2)("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent((()=>{this._updateOperation.clear()})))}fetch(e,t,i){var n,s;const r=new re(e,t,this.textModel.getVersionId()),a=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(null===(n=this._updateOperation.value)||void 0===n?void 0:n.request.satisfies(r))return this._updateOperation.value.promise;if(null===(s=a.get())||void 0===s?void 0:s.request.satisfies(r))return Promise.resolve(!0);const l=!!this._updateOperation.value;this._updateOperation.clear();const d=new T.Q,h=(async()=>{var n,s;if((l||t.triggerKind===D.qw.Automatic)&&await(n=this._debounceValue.get(this.textModel),s=d.token,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),n);s&&(t=s.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),d.token.isCancellationRequested||this.textModel.getVersionId()!==r.versionId)return!1;const h=new Date,c=await j(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,d.token,this.languageConfigurationService);if(d.token.isCancellationRequested||this.textModel.getVersionId()!==r.versionId)return!1;const u=new Date;this._debounceValue.update(this.textModel,u.getTime()-h.getTime());const g=new le(c,r,this.textModel,this.versionId);if(i){const t=i.toInlineCompletion(void 0);i.canBeReused(this.textModel,e)&&!c.has(t)&&g.prepend(i.inlineCompletion,t.range,!0)}return this._updateOperation.clear(),(0,o.Rn)((e=>{a.set(g,e)})),!0})(),c=new ae(r,d,h);return this._updateOperation.value=c,h}clear(e){this._updateOperation.clear(),this.inlineCompletions.set(void 0,e),this.suggestWidgetInlineCompletions.set(void 0,e)}clearSuggestWidgetInlineCompletions(e){var t;(null===(t=this._updateOperation.value)||void 0===t?void 0:t.request.context.selectedSuggestionInfo)&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,e)}cancelUpdate(){this._updateOperation.clear()}};oe=ne([se(3,f.u),se(4,E.JZ)],oe);class re{constructor(e,t,i){this.position=e,this.context=t,this.versionId=i}satisfies(e){return this.position.equals(e.position)&&function(e,t,i){if(!e||!t)return e===t;return i(e,t)}(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,((e,t)=>e.equals(t)))&&(e.context.triggerKind===D.qw.Automatic||this.context.triggerKind===D.qw.Explicit)&&this.versionId===e.versionId}}class ae{constructor(e,t,i){this.request=e,this.cancellationTokenSource=t,this.promise=i}dispose(){this.cancellationTokenSource.cancel()}}class le{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,i,n){this.inlineCompletionProviderResult=e,this.request=t,this.textModel=i,this.versionId=n,this._refCount=1,this._prependedInlineCompletionItems=[],this._rangeVersionIdValue=0,this._rangeVersionId=(0,o.un)(this,(e=>{this.versionId.read(e);let t=!1;for(const i of this._inlineCompletions)t=t||i._updateRange(this.textModel);return t&&this._rangeVersionIdValue++,this._rangeVersionIdValue}));const s=i.deltaDecorations([],e.completions.map((e=>({range:e.range,options:{description:"inline-completion-tracking-range"}}))));this._inlineCompletions=e.completions.map(((e,t)=>new de(e,s[t],this._rangeVersionId)))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,0===this._refCount){setTimeout((()=>{this.textModel.isDisposed()||this.textModel.deltaDecorations(this._inlineCompletions.map((e=>e.decorationId)),[])}),0),this.inlineCompletionProviderResult.dispose();for(const e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,i){i&&e.source.addRef();const n=this.textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new de(e,n,this._rangeVersionId,t)),this._prependedInlineCompletionItems.push(e)}}class de{get forwardStable(){var e;return null!==(e=this.inlineCompletion.source.inlineCompletions.enableForwardStability)&&void 0!==e&&e}constructor(e,t,i,n){this.inlineCompletion=e,this.decorationId=t,this.rangeVersion=i,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._isValid=!0,this._updatedRange=null!==n&&void 0!==n?n:e.range}toInlineCompletion(e){return this.inlineCompletion.withRange(this._getUpdatedRange(e))}toSingleTextEdit(e){return new q.WR(this._getUpdatedRange(e),this.inlineCompletion.insertText)}isVisible(e,t,i){const n=Z(this._toFilterTextReplacement(i),e);if(!this._isValid||!this.inlineCompletion.range.getStartPosition().equals(this._getUpdatedRange(i).getStartPosition())||t.lineNumber!==n.range.startLineNumber)return!1;const s=e.getValueInRange(n.range,1),o=n.text,r=Math.max(0,t.column-n.range.startColumn);let a=o.substring(0,r),l=o.substring(r),d=s.substring(0,r),h=s.substring(r);const c=e.getLineIndentColumn(n.range.startLineNumber);return n.range.startColumn<=c&&(d=d.trimStart(),0===d.length&&(h=h.trimStart()),a=a.trimStart(),0===a.length&&(l=l.trimStart())),a.startsWith(d)&&!!(0,I.dE)(h,l)}canBeReused(e,t){return this._isValid&&this._getUpdatedRange(void 0).containsPosition(t)&&this.isVisible(e,t,void 0)&&!this._isSmallerThanOriginal(void 0)}_toFilterTextReplacement(e){return new q.WR(this._getUpdatedRange(e),this.inlineCompletion.filterText)}_isSmallerThanOriginal(e){return he(this._getUpdatedRange(e)).isBefore(he(this.inlineCompletion.range))}_getUpdatedRange(e){return this.rangeVersion.read(e),this._updatedRange}_updateRange(e){const t=e.getDecorationRange(this.decorationId);return t?!this._updatedRange.equalsRange(t)&&(this._updatedRange=t,!0):(this._isValid=!1,!0)}}function he(e){return e.startLineNumber===e.endLineNumber?new p.y(1,1+e.endColumn-e.startColumn):new p.y(1+e.endLineNumber-e.startLineNumber,e.endColumn)}var ce,ue=i(30936),ge=i(50091),pe=i(63591),me=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},fe=function(e,t){return function(i,n){t(i,n,e)}};!function(e){e[e.Undo=0]="Undo",e[e.Redo=1]="Redo",e[e.AcceptWord=2]="AcceptWord",e[e.Other=3]="Other"}(ce||(ce={}));let _e=class extends u.jG{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(e,t,i,n,s,r,a,l,d,h,c,u){let g;super(),this.textModel=e,this.selectedSuggestItem=t,this.textModelVersionId=i,this._positions=n,this._debounceValue=s,this._suggestPreviewEnabled=r,this._suggestPreviewMode=a,this._inlineSuggestMode=l,this._enabled=d,this._instantiationService=h,this._commandService=c,this._languageConfigurationService=u,this._source=this._register(this._instantiationService.createInstance(oe,this.textModel,this.textModelVersionId,this._debounceValue)),this._isActive=(0,o.FY)(this,!1),this._forceUpdateSignal=(0,o.Yd)("forceUpdate"),this._selectedInlineCompletionId=(0,o.FY)(this,void 0),this._primaryPosition=(0,o.un)(this,(e=>{var t;return null!==(t=this._positions.read(e)[0])&&void 0!==t?t:new p.y(1,1)})),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([ce.Redo,ce.Undo,ce.AcceptWord]),this._fetchInlineCompletions=(0,o.nb)({owner:this,createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:D.qw.Automatic}),handleChange:(e,t)=>(e.didChange(this.textModelVersionId)&&this._preserveCurrentCompletionReasons.has(e.change)?t.preserveCurrentCompletion=!0:e.didChange(this._forceUpdateSignal)&&(t.inlineCompletionTriggerKind=e.change),!0)},((e,t)=>{this._forceUpdateSignal.read(e);if(!(this._enabled.read(e)&&this.selectedSuggestItem.read(e)||this._isActive.read(e)))return void this._source.cancelUpdate();this.textModelVersionId.read(e);const i=this.selectedInlineCompletion.get(),n=t.preserveCurrentCompletion||(null===i||void 0===i?void 0:i.forwardStable)?i:void 0,s=this._source.suggestWidgetInlineCompletions.get(),r=this.selectedSuggestItem.read(e);if(s&&!r){const e=this._source.inlineCompletions.get();(0,o.Rn)((t=>{(!e||s.request.versionId>e.request.versionId)&&this._source.inlineCompletions.set(s.clone(),t),this._source.clearSuggestWidgetInlineCompletions(t)}))}const a=this._primaryPosition.read(e),l={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:null===r||void 0===r?void 0:r.toSelectedSuggestionInfo()};return this._source.fetch(a,l,n)})),this._filteredInlineCompletionItems=(0,o.un)(this,(e=>{const t=this._source.inlineCompletions.read(e);if(!t)return[];const i=this._primaryPosition.read(e),n=t.inlineCompletions.filter((t=>t.isVisible(this.textModel,i,e)));return n})),this.selectedInlineCompletionIndex=(0,o.un)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineCompletionItems.read(e),n=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===n?(this._selectedInlineCompletionId.set(void 0,void 0),0):n})),this.selectedInlineCompletion=(0,o.un)(this,(e=>this._filteredInlineCompletionItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this.lastTriggerKind=this._source.inlineCompletions.map(this,(e=>null===e||void 0===e?void 0:e.request.context.triggerKind)),this.inlineCompletionsCount=(0,o.un)(this,(e=>this.lastTriggerKind.read(e)===D.qw.Explicit?this._filteredInlineCompletionItems.read(e).length:void 0)),this.state=(0,o.C)({owner:this,equalityComparer:(e,t)=>e&&t?(0,N.AL)(e.ghostTexts,t.ghostTexts)&&e.inlineCompletion===t.inlineCompletion&&e.suggestItem===t.suggestItem:e===t},(e=>{var t,i;const n=this.textModel,s=this.selectedSuggestItem.read(e);if(s){const o=Z(s.toSingleTextEdit(),n),r=this._computeAugmentation(o,e);if(!this._suggestPreviewEnabled.read(e)&&!r)return;const a=null!==(t=null===r||void 0===r?void 0:r.edit)&&void 0!==t?t:o,l=r?r.edit.text.length-o.text.length:0,d=this._suggestPreviewMode.read(e),h=this._positions.read(e),c=[a,...ve(this.textModel,h,a)],u=c.map(((e,t)=>J(e,n,d,h[t],l))).filter(S.O9);return{edits:c,primaryGhostText:null!==(i=u[0])&&void 0!==i?i:new N.xD(a.range.endLineNumber,[]),ghostTexts:u,inlineCompletion:null===r||void 0===r?void 0:r.completion,suggestItem:s}}{if(!this._isActive.read(e))return;const t=this.selectedInlineCompletion.read(e);if(!t)return;const i=t.toSingleTextEdit(e),s=this._inlineSuggestMode.read(e),o=this._positions.read(e),r=[i,...ve(this.textModel,o,i)],a=r.map(((e,t)=>J(e,n,s,o[t],0))).filter(S.O9);if(!a[0])return;return{edits:r,primaryGhostText:a[0],ghostTexts:a,inlineCompletion:t,suggestItem:void 0}}})),this.ghostTexts=(0,o.C)({owner:this,equalityComparer:N.AL},(e=>{const t=this.state.read(e);if(t)return t.ghostTexts})),this.primaryGhostText=(0,o.C)({owner:this,equalityComparer:N.x9},(e=>{const t=this.state.read(e);if(t)return null===t||void 0===t?void 0:t.primaryGhostText})),this._register((0,o.OI)(this._fetchInlineCompletions)),this._register((0,o.fm)((e=>{var t,i;const n=this.state.read(e),s=null===n||void 0===n?void 0:n.inlineCompletion;if((null===s||void 0===s?void 0:s.semanticId)!==(null===g||void 0===g?void 0:g.semanticId)&&(g=s,s)){const e=s.inlineCompletion,n=e.source;null===(i=(t=n.provider).handleItemDidShow)||void 0===i||i.call(t,n.inlineCompletions,e.sourceInlineCompletion,e.insertText)}})))}async trigger(e){this._isActive.set(!0,e),await this._fetchInlineCompletions.get()}async triggerExplicitly(e){(0,o.PO)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateSignal.trigger(e,D.qw.Explicit)})),await this._fetchInlineCompletions.get()}stop(e){(0,o.PO)(e,(e=>{this._isActive.set(!1,e),this._source.clear(e)}))}_computeAugmentation(e,t){const i=this.textModel,n=this._source.suggestWidgetInlineCompletions.read(t),s=n?n.inlineCompletions:[this.selectedInlineCompletion.read(t)].filter(S.O9);return(0,C.oH)(s,(n=>{let s=n.toSingleTextEdit(t);return s=Z(s,i,x.Q.fromPositions(s.range.getStartPosition(),e.range.getEndPosition())),X(s,e)?{completion:n,edit:s}:void 0}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){var t;if(e.getModel()!==this.textModel)throw new y.D7;const i=this.state.get();if(!i||i.primaryGhostText.isEmpty()||!i.inlineCompletion)return;const n=i.inlineCompletion.toInlineCompletion(void 0);if(e.pushUndoStop(),n.snippetInfo)e.executeEdits("inlineSuggestion.accept",[k.k.replaceMove(n.range,""),...n.additionalTextEdits]),e.setPosition(n.snippetInfo.range.getStartPosition(),"inlineCompletionAccept"),null===(t=ue.O.get(e))||void 0===t||t.insert(n.snippetInfo.snippet,{undoStopBefore:!1});else{const t=i.edits,s=be(t).map((e=>L.L.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",[...t.map((e=>k.k.replaceMove(e.range,e.text))),...n.additionalTextEdits]),e.setSelections(s,"inlineCompletionAccept")}n.command&&n.source.addRef(),(0,o.Rn)((e=>{this._source.clear(e),this._isActive.set(!1,e)})),n.command&&(await this._commandService.executeCommand(n.command.id,...n.command.arguments||[]).then(void 0,y.M_),n.source.removeRef())}async acceptNextWord(e){await this._acceptNext(e,((e,t)=>{const i=this.textModel.getLanguageIdAtPosition(e.lineNumber,e.column),n=this._languageConfigurationService.getLanguageConfiguration(i),s=new RegExp(n.wordDefinition.source,n.wordDefinition.flags.replace("g","")),o=t.match(s);let r=0;r=o&&void 0!==o.index?0===o.index?o[0].length:o.index:t.length;const a=/\s+/g.exec(t);return a&&void 0!==a.index&&a.index+a[0].length<r&&(r=a.index+a[0].length),r}),0)}async acceptNextLine(e){await this._acceptNext(e,((e,t)=>{const i=t.match(/\n/);return i&&void 0!==i.index?i.index+1:t.length}),1)}async _acceptNext(e,t,i){if(e.getModel()!==this.textModel)throw new y.D7;const n=this.state.get();if(!n||n.primaryGhostText.isEmpty()||!n.inlineCompletion)return;const s=n.primaryGhostText,o=n.inlineCompletion.toInlineCompletion(void 0);if(o.snippetInfo||o.filterText!==o.insertText)return void await this.accept(e);const r=s.parts[0],a=new p.y(s.lineNumber,r.column),l=r.text,d=t(a,l);if(d===l.length&&1===s.parts.length)return void this.accept(e);const h=l.substring(0,d),c=this._positions.get(),u=c[0];o.source.addRef();try{this._isAcceptingPartially=!0;try{e.pushUndoStop();const t=x.Q.fromPositions(u,a),i=e.getModel().getValueInRange(t)+h,n=new q.WR(t,i),s=[n,...ve(this.textModel,c,n)],o=be(s).map((e=>L.L.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",s.map((e=>k.k.replaceMove(e.range,e.text)))),e.setSelections(o,"inlineCompletionPartialAccept")}finally{this._isAcceptingPartially=!1}if(o.source.provider.handlePartialAccept){const t=x.Q.fromPositions(o.range.getStartPosition(),Y.W.ofText(h).addToPosition(a)),n=e.getModel().getValueInRange(t,1);o.source.provider.handlePartialAccept(o.source.inlineCompletions,o.sourceInlineCompletion,n.length,{kind:i})}}finally{o.source.removeRef()}}handleSuggestAccepted(e){var t,i;const n=Z(e.toSingleTextEdit(),this.textModel),s=this._computeAugmentation(n,void 0);if(!s)return;const o=s.completion.inlineCompletion;null===(i=(t=o.source.provider).handlePartialAccept)||void 0===i||i.call(t,o.source.inlineCompletions,o.sourceInlineCompletion,n.text.length,{kind:2})}};function ve(e,t,i){if(1===t.length)return[];const n=t[0],s=t.slice(1),o=i.range.getStartPosition(),r=i.range.getEndPosition(),a=e.getValueInRange(x.Q.fromPositions(n,r)),l=(0,H.tN)(n,o);if(l.lineNumber<1)return(0,y.dz)(new y.D7(`positionWithinTextEdit line number should be bigger than 0.\n\t\t\tInvalid subtraction between ${n.toString()} and ${o.toString()}`)),[];const d=function(e,t){let i="";const n=(0,w.en)(e);for(let s=t.lineNumber-1;s<n.length;s++)i+=n[s].substring(s===t.lineNumber-1?t.column-1:0);return i}(i.text,l);return s.map((t=>{const i=(0,H.OA)((0,H.tN)(t,o),r),n=e.getValueInRange(x.Q.fromPositions(t,i)),s=(0,w.Qp)(a,n),l=x.Q.fromPositions(t,t.delta(0,s));return new q.WR(l,d)}))}function be(e){const t=b.t9.createSortPermutation(e,((e,t)=>x.Q.compareRangesUsingStarts(e.range,t.range))),i=new q.mF(t.apply(e)).getNewRanges();return t.inverse().apply(i).map((e=>e.getEndPosition()))}_e=me([fe(9,pe._Y),fe(10,ge.d),fe(11,E.JZ)],_e);var Ce=i(41234),ye=i(38280),we=i(24518);class Se extends u.jG{get selectedItem(){return this._selectedItem}constructor(e,t,i,n){super(),this.editor=e,this.suggestControllerPreselector=t,this.checkModelVersion=i,this.onWillAccept=n,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._selectedItem=(0,o.FY)(this,void 0),this._register(e.onKeyDown((e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))}))),this._register(e.onKeyUp((e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))})));const s=we.D.get(this.editor);if(s){this._register(s.registerSelector({priority:100,select:(e,t,i)=>{(0,o.Rn)((e=>this.checkModelVersion(e)));const n=this.editor.getModel();if(!n)return-1;const r=this.suggestControllerPreselector(),a=r?Z(r,n):void 0;if(!a)return-1;const l=p.y.lift(t),d=i.map(((e,t)=>{const i=Z(ke.fromSuggestion(s,n,l,e,this.isShiftKeyPressed).toSingleTextEdit(),n);return{index:t,valid:X(a,i),prefixLength:i.text.length,suggestItem:e}})).filter((e=>e&&e.valid&&e.prefixLength>0)),h=(0,C.Nf)(d,(0,b.VE)((e=>e.prefixLength),b.U9));return h?h.index:-1}}));let e=!1;const t=()=>{e||(e=!0,this._register(s.widget.value.onDidShow((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))),this._register(s.widget.value.onDidHide((()=>{this.isSuggestWidgetVisible=!1,this.update(!1)}))),this._register(s.widget.value.onDidFocus((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))))};this._register(Ce.Jh.once(s.model.onDidTrigger)((e=>{t()}))),this._register(s.onWillInsertSuggestItem((e=>{const t=this.editor.getPosition(),i=this.editor.getModel();if(!t||!i)return;const n=ke.fromSuggestion(s,i,t,e.item,this.isShiftKeyPressed);this.onWillAccept(n)})))}this.update(this._isActive)}update(e){const t=this.getSuggestItemInfo();this._isActive===e&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;return e.equals(t)}(this._currentSuggestItemInfo,t)||(this._isActive=e,this._currentSuggestItemInfo=t,(0,o.Rn)((e=>{this.checkModelVersion(e),this._selectedItem.set(this._isActive?this._currentSuggestItemInfo:void 0,e)})))}getSuggestItemInfo(){const e=we.D.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem(),i=this.editor.getPosition(),n=this.editor.getModel();return t&&i&&n?ke.fromSuggestion(e,n,i,t.item,this.isShiftKeyPressed):void 0}stopForceRenderingAbove(){const e=we.D.get(this.editor);null===e||void 0===e||e.stopForceRenderingAbove()}forceRenderingAbove(){const e=we.D.get(this.editor);null===e||void 0===e||e.forceRenderingAbove()}}class ke{static fromSuggestion(e,t,i,n,s){let{insertText:o}=n.completion,r=!1;if(4&n.completion.insertTextRules){const e=(new z.fr).parse(o);e.children.length<100&&ye.O.adjustWhitespace(t,i,!0,e),o=e.toString(),r=!0}const a=e.getOverwriteInfo(n,s);return new ke(x.Q.fromPositions(i.delta(0,-a.overwriteBefore),i.delta(0,Math.max(a.overwriteAfter,0))),o,n.completion.kind,r)}constructor(e,t,i,n){this.range=e,this.insertText=t,this.completionItemKind=i,this.isSnippetText=n}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new D.GE(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new q.WR(this.range,this.insertText)}}var xe,Le=i(31629),De=i(87213),Ee=i(84001),Ne=i(32848),Te=i(98031),Ie=i(13850),Me=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ae=function(e,t){return function(i,n){t(i,n,e)}};let Re=xe=class extends u.jG{static get(e){return e.getContribution(xe.ID)}constructor(e,t,i,n,s,r,a,c,m){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._configurationService=n,this._commandService=s,this._debounceService=r,this._languageFeaturesService=a,this._accessibilitySignalService=c,this._keybindingService=m,this.model=this._register((0,o.X2)("inlineCompletionModel",void 0)),this._textModelVersionId=(0,o.FY)(this,-1),this._positions=(0,o.FY)(this,[new p.y(1,1)]),this._suggestWidgetAdaptor=this._register(new Se(this.editor,(()=>{var e,t;return null===(t=null===(e=this.model.get())||void 0===e?void 0:e.selectedInlineCompletion.get())||void 0===t?void 0:t.toSingleTextEdit(void 0)}),(e=>this.updateObservables(e,ce.Other)),(e=>{(0,o.Rn)((t=>{var i;this.updateObservables(t,ce.Other),null===(i=this.model.get())||void 0===i||i.handleSuggestAccepted(e)}))}))),this._enabled=(0,o.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).enabled)),this._fontFamily=(0,o.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).fontFamily)),this._ghostTexts=(0,o.un)(this,(e=>{var t;const i=this.model.read(e);return null!==(t=null===i||void 0===i?void 0:i.ghostTexts.read(e))&&void 0!==t?t:[]})),this._stablizedGhostTexts=function(e,t){const i=(0,o.FY)("result",[]),n=[];return t.add((0,o.fm)((t=>{const s=e.read(t);(0,o.Rn)((e=>{if(s.length!==n.length){n.length=s.length;for(let e=0;e<n.length;e++)n[e]||(n[e]=(0,o.FY)("item",s[e]));i.set([...n],e)}n.forEach(((t,i)=>t.set(s[i],e)))}))}))),i}(this._ghostTexts,this._store),this._ghostTextWidgets=(0,Ie.Rl)(this,this._stablizedGhostTexts,((e,t)=>t.add(this._instantiationService.createInstance(_.PM,this.editor,{ghostText:e,minReservedLineCount:(0,o.lk)(0),targetTextModel:this.model.map((e=>null===e||void 0===e?void 0:e.textModel))})))).recomputeInitiallyAndOnChange(this._store),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._playAccessibilitySignal=(0,o.Yd)(this),this._isReadonly=(0,o.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(91))),this._textModel=(0,o.y0)(this.editor.onDidChangeModel,(()=>this.editor.getModel())),this._textModelIfWritable=(0,o.un)((e=>this._isReadonly.read(e)?void 0:this._textModel.read(e))),this._register(new d.p(this._contextKeyService,this.model)),this._register((0,o.fm)((i=>{const n=this._textModelIfWritable.read(i);(0,o.Rn)((i=>{if(this.model.set(void 0,i),this.updateObservables(i,ce.Other),n){const s=t.createInstance(_e,n,this._suggestWidgetAdaptor.selectedItem,this._textModelVersionId,this._positions,this._debounceValue,(0,o.y0)(e.onDidChangeConfiguration,(()=>e.getOption(118).preview)),(0,o.y0)(e.onDidChangeConfiguration,(()=>e.getOption(118).previewMode)),(0,o.y0)(e.onDidChangeConfiguration,(()=>e.getOption(62).mode)),this._enabled);this.model.set(s,i)}}))})));const f=this._register((0,h.jh)());this._register((0,o.fm)((e=>{const t=this._fontFamily.read(e);f.setStyle(""===t||"default"===t?"":`\n.monaco-editor .ghost-text-decoration,\n.monaco-editor .ghost-text-decoration-preview,\n.monaco-editor .ghost-text {\n\tfont-family: ${t};\n}`)})));const b=e=>{var t;return e.isUndoing?ce.Undo:e.isRedoing?ce.Redo:(null===(t=this.model.get())||void 0===t?void 0:t.isAcceptingPartially)?ce.AcceptWord:ce.Other};let C;this._register(e.onDidChangeModelContent((e=>(0,o.Rn)((t=>this.updateObservables(t,b(e))))))),this._register(e.onDidChangeCursorPosition((e=>(0,o.Rn)((t=>{var i;this.updateObservables(t,ce.Other),3!==e.reason&&"api"!==e.source||null===(i=this.model.get())||void 0===i||i.stop(t)}))))),this._register(e.onDidType((()=>(0,o.Rn)((e=>{var t;this.updateObservables(e,ce.Other),this._enabled.get()&&(null===(t=this.model.get())||void 0===t||t.trigger(e))}))))),this._register(this._commandService.onDidExecuteCommand((t=>{new Set([g.Yh.Tab.id,g.Yh.DeleteLeft.id,g.Yh.DeleteRight.id,l.Wt,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&this._enabled.get()&&(0,o.Rn)((e=>{var t;null===(t=this.model.get())||void 0===t||t.trigger(e)}))}))),this._register(this.editor.onDidBlurEditorWidget((()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(62).keepOnBlur||v.bo.dropDownVisible||(0,o.Rn)((e=>{var t;null===(t=this.model.get())||void 0===t||t.stop(e)}))}))),this._register((0,o.fm)((e=>{var t;const i=null===(t=this.model.read(e))||void 0===t?void 0:t.state.read(e);(null===i||void 0===i?void 0:i.suggestItem)?i.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register((0,u.s)((()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register((0,o.Y)({handleChange:(e,t)=>(e.didChange(this._playAccessibilitySignal)&&(C=void 0),!0)},(async e=>{this._playAccessibilitySignal.read(e);const t=this.model.read(e),i=null===t||void 0===t?void 0:t.state.read(e);if(t&&i&&i.inlineCompletion){if(i.inlineCompletion.semanticId!==C){C=i.inlineCompletion.semanticId;const e=t.textModel.getLineContent(i.primaryGhostText.lineNumber);this._accessibilitySignalService.playSignal(De.Rh.inlineSuggestion).then((()=>{this.editor.getOption(8)&&this.provideScreenReaderUpdate(i.primaryGhostText.renderForScreenReader(e))}))}}else C=void 0}))),this._register(new v.Pm(this.editor,this.model,this._instantiationService)),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}))),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(e){this._playAccessibilitySignal.trigger(e)}provideScreenReaderUpdate(e){const t=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),i=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let n;!t&&i&&this.editor.getOption(149)&&(n=(0,Le.kg)("showAccessibleViewHint","Inspect this in the accessible view ({0})",i.getAriaLabel())),n?(0,c.xE)(e+", "+n):(0,c.xE)(e)}updateObservables(e,t){var i,n,s;const o=this.editor.getModel();this._textModelVersionId.set(null!==(i=null===o||void 0===o?void 0:o.getVersionId())&&void 0!==i?i:-1,e,t),this._positions.set(null!==(s=null===(n=this.editor.getSelections())||void 0===n?void 0:n.map((e=>e.getPosition())))&&void 0!==s?s:[new p.y(1,1)],e)}shouldShowHoverAt(e){var t;const i=null===(t=this.model.get())||void 0===t?void 0:t.primaryGhostText.get();return!!i&&i.parts.some((t=>e.containsPosition(new p.y(i.lineNumber,t.column))))}shouldShowHoverAtViewZone(e){var t,i;return null!==(i=null===(t=this._ghostTextWidgets.get()[0])||void 0===t?void 0:t.ownsViewZone(e))&&void 0!==i&&i}};Re.ID="editor.contrib.inlineCompletionsController",Re=xe=Me([Ae(1,pe._Y),Ae(2,Ne.fN),Ae(3,Ee.pG),Ae(4,ge.d),Ae(5,m.U),Ae(6,f.u),Ae(7,De.Nt),Ae(8,Te.b)],Re);var Oe=i(48116),Pe=i(27195);class Fe extends n.ks{constructor(){super({id:Fe.ID,label:Le.kg("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:Ne.M$.and(a.R.writable,d.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}async run(e,t){var i;const n=Re.get(t);null===(i=null===n||void 0===n?void 0:n.model.get())||void 0===i||i.next()}}Fe.ID=l.PA;class Be extends n.ks{constructor(){super({id:Be.ID,label:Le.kg("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:Ne.M$.and(a.R.writable,d.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}async run(e,t){var i;const n=Re.get(t);null===(i=null===n||void 0===n?void 0:n.model.get())||void 0===i||i.previous()}}Be.ID=l.Vl;class We extends n.ks{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:Le.kg("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:a.R.writable})}async run(e,t){const i=Re.get(t);await(0,r.fL)((async e=>{var t;await(null===(t=null===i||void 0===i?void 0:i.model.get())||void 0===t?void 0:t.triggerExplicitly(e)),null===i||void 0===i||i.playAccessibilitySignal(e)}))}}class Ve extends n.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:Le.kg("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:Ne.M$.and(a.R.writable,d.p.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:Ne.M$.and(a.R.writable,d.p.inlineSuggestionVisible)},menuOpts:[{menuId:Pe.D8.InlineSuggestionToolbar,title:Le.kg("acceptWord","Accept Word"),group:"primary",order:2}]})}async run(e,t){var i;const n=Re.get(t);await(null===(i=null===n||void 0===n?void 0:n.model.get())||void 0===i?void 0:i.acceptNextWord(n.editor))}}class He extends n.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:Le.kg("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:Ne.M$.and(a.R.writable,d.p.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:Pe.D8.InlineSuggestionToolbar,title:Le.kg("acceptLine","Accept Line"),group:"secondary",order:2}]})}async run(e,t){var i;const n=Re.get(t);await(null===(i=null===n||void 0===n?void 0:n.model.get())||void 0===i?void 0:i.acceptNextLine(n.editor))}}class ze extends n.ks{constructor(){super({id:l.Wt,label:Le.kg("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:d.p.inlineSuggestionVisible,menuOpts:[{menuId:Pe.D8.InlineSuggestionToolbar,title:Le.kg("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:Ne.M$.and(d.p.inlineSuggestionVisible,a.R.tabMovesFocus.toNegated(),d.p.inlineSuggestionHasIndentationLessThanTabSize,Oe.ob.Visible.toNegated(),a.R.hoverFocused.toNegated())}})}async run(e,t){var i;const n=Re.get(t);n&&(null===(i=n.model.get())||void 0===i||i.accept(n.editor),n.editor.focus())}}class je extends n.ks{constructor(){super({id:je.ID,label:Le.kg("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:d.p.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=Re.get(t);(0,o.Rn)((e=>{var t;null===(t=null===i||void 0===i?void 0:i.model.get())||void 0===t||t.stop(e)}))}}je.ID="editor.action.inlineSuggest.hide";class Ue extends Pe.L{constructor(){super({id:Ue.ID,title:Le.kg("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:Pe.D8.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:Ne.M$.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(e,t){const i=e.get(Ee.pG),n="always"===i.getValue("editor.inlineSuggest.showToolbar")?"onHover":"always";i.updateValue("editor.inlineSuggest.showToolbar",n)}}Ue.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar";var Ke=i(16980),Ge=i(10154),$e=i(20492),qe=i(253),Qe=i(49099),Ye=i(90651),Ze=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Xe=function(e,t){return function(i,n){t(i,n,e)}};class Je{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let et=class{constructor(e,t,i,n,s,o){this._editor=e,this._languageService=t,this._openerService=i,this.accessibilityService=n,this._instantiationService=s,this._telemetryService=o,this.hoverOrdinal=4}suggestHoverAnchor(e){const t=Re.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new s.mm(1e3,this,x.Q.fromPositions(this._editor.getModel().validatePosition(n.positionBefore||n.position)),e.event.posx,e.event.posy,!1)}if(7===i.type&&t.shouldShowHoverAt(i.range))return new s.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1);if(6===i.type){if(i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range))return new s.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1)}return null}computeSync(e,t){if("onHover"!==this._editor.getOption(62).showToolbar)return[];const i=Re.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new Je(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new u.Cm,n=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(8)&&this.renderScreenReaderText(e,n,i);const s=n.controller.model.get(),r=this._instantiationService.createInstance(v.bo,this._editor,!1,(0,o.lk)(null),s.selectedInlineCompletionIndex,s.inlineCompletionsCount,s.selectedInlineCompletion.map((e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.inlineCompletion.source.inlineCompletions.commands)&&void 0!==t?t:[]})));return e.fragment.appendChild(r.getDomNode()),s.triggerExplicitly(),i.add(r),i}renderScreenReaderText(e,t,i){const n=h.$,s=n("div.hover-row.markdown-hover"),r=h.BC(s,n("div.hover-contents",{"aria-live":"assertive"})),a=i.add(new $e.T({editor:this._editor},this._languageService,this._openerService));i.add((0,o.fm)((n=>{var s;const o=null===(s=t.controller.model.read(n))||void 0===s?void 0:s.primaryGhostText.read(n);if(o){const t=this._editor.getModel().getLineContent(o.lineNumber);(t=>{i.add(a.onDidRenderAsync((()=>{r.className="hover-contents code-hover-contents",e.onContentsChanged()})));const n=Le.kg("inlineSuggestionFollows","Suggestion:"),s=i.add(a.render((new Ke.Bc).appendText(n).appendCodeblock("text",t)));r.replaceChildren(s.element)})(o.renderForScreenReader(t))}else h.Ln(r)}))),e.fragment.appendChild(s)}};et=Ze([Xe(1,Ge.L),Xe(2,Qe.C),Xe(3,qe.j),Xe(4,pe._Y),Xe(5,Ye.k)],et),(0,n.HW)(Re.ID,Re,3),(0,n.Fl)(We),(0,n.Fl)(Fe),(0,n.Fl)(Be),(0,n.Fl)(Ve),(0,n.Fl)(He),(0,n.Fl)(ze),(0,n.Fl)(je),(0,Pe.ug)(Ue),s.B2.register(et)},25958:(e,t,i)=>{"use strict";i.d(t,{Pm:()=>I,bo:()=>R});var n,s=i(8597),o=i(5646),r=i(47625),a=i(36921),l=i(25890),d=i(90766),h=i(10350),c=i(5662),u=i(99938),g=i(98067),p=i(25689),m=i(83069),f=i(62083),_=i(27675),v=i(31629),b=i(43878),C=i(65644),y=i(27195),w=i(50091),S=i(32848),k=i(47508),x=i(63591),L=i(98031),D=i(90651),E=i(61394),N=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},T=function(e,t){return function(i,n){t(i,n,e)}};let I=class extends c.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,u.y0)(this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(62).showToolbar)),this.sessionPosition=void 0,this.position=(0,u.un)(this,(e=>{var t,i,n;const s=null===(t=this.model.read(e))||void 0===t?void 0:t.primaryGhostText.read(e);if(!this.alwaysShowToolbar.read(e)||!s||0===s.parts.length)return this.sessionPosition=void 0,null;const o=s.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==s.lineNumber&&(this.sessionPosition=void 0);const r=new m.y(s.lineNumber,Math.min(o,null!==(n=null===(i=this.sessionPosition)||void 0===i?void 0:i.column)&&void 0!==n?n:Number.MAX_SAFE_INTEGER));return this.sessionPosition=r,r})),this._register((0,u.yC)(((t,i)=>{const n=this.model.read(t);if(!n||!this.alwaysShowToolbar.read(t))return;const s=i.add(this.instantiationService.createInstance(R,this.editor,!0,this.position,n.selectedInlineCompletionIndex,n.inlineCompletionsCount,n.selectedInlineCompletion.map((e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.inlineCompletion.source.inlineCompletions.commands)&&void 0!==t?t:[]}))));e.addContentWidget(s),i.add((0,c.s)((()=>e.removeContentWidget(s)))),i.add((0,u.fm)((e=>{this.position.read(e)&&n.lastTriggerKind.read(e)!==f.qw.Explicit&&n.triggerExplicitly()})))})))}};I=N([T(2,x._Y)],I);const M=(0,E.pU)("inline-suggestion-hints-next",h.W.chevronRight,(0,v.kg)("parameterHintsNextIcon","Icon for show next parameter hint.")),A=(0,E.pU)("inline-suggestion-hints-previous",h.W.chevronLeft,(0,v.kg)("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let R=n=class extends c.jG{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new a.rc(e,t,i,!0,(()=>this._commandService.executeCommand(e))),s=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let o=t;return s&&(o=(0,v.kg)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,s.getLabel())),n.tooltip=o,n}constructor(e,t,i,o,r,h,c,g,m,f,b){super(),this.editor=e,this.withBorder=t,this._position=i,this._currentSuggestionIdx=o,this._suggestionCount=r,this._extraCommands=h,this._commandService=c,this.keybindingService=m,this._contextKeyService=f,this._menuService=b,this.id="InlineSuggestionHintsContentWidget"+n.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,s.h)("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[(0,s.h)("div@toolBar")]),this.previousAction=this.createCommandAction(_.Vl,(0,v.kg)("previous","Previous"),p.L.asClassName(A)),this.availableSuggestionCountAction=new a.rc("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(_.PA,(0,v.kg)("next","Next"),p.L.asClassName(M)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(y.D8.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new d.uC((()=>{this.availableSuggestionCountAction.label=""}),100)),this.disableButtonsDebounced=this._register(new d.uC((()=>{this.previousAction.enabled=this.nextAction.enabled=!1}),100)),this.lastCommands=[],this.toolBar=this._register(g.createInstance(F,this.nodes.toolBar,y.D8.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof y.Xe)return g.createInstance(P,e,void 0);if(e===this.availableSuggestionCountAction){const t=new O(void 0,e,{label:!0,icon:!1});return t.setClass("availableSuggestionCount"),t}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{n._dropDownVisible=e}))),this._register((0,u.fm)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,u.fm)((e=>{const t=this._suggestionCount.read(e),i=this._currentSuggestionIdx.read(e);void 0!==t?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${i+1}/${t}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),void 0!==t&&t>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()}))),this._register((0,u.fm)((e=>{const t=this._extraCommands.read(e);if((0,l.aI)(this.lastCommands,t))return;this.lastCommands=t;const i=t.map((e=>({class:void 0,id:e.id,enabled:!0,tooltip:e.tooltip||"",label:e.title,run:t=>this._commandService.executeCommand(e.id)})));for(const[n,s]of this.inlineCompletionsActionsMenus.getActions())for(const e of s)e instanceof y.Xe&&i.push(e);i.length>0&&i.unshift(new a.wv),this.toolBar.setAdditionalSecondaryActions(i)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};R._dropDownVisible=!1,R.id=0,R=n=N([T(6,w.d),T(7,x._Y),T(8,L.b),T(9,S.fN),T(10,y.ez)],R);class O extends o.Z4{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}updateTooltip(){}}class P extends b.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,s.h)("div.keybinding").root;this._register(new r.x(t,g.OS,{disableTitle:!0,...r.l})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}}let F=class extends C.p{constructor(e,t,i,n,s,o,r,a){super(e,{resetMenu:t,...i},n,s,o,r,a),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,o,r;const a=[],l=[];(0,b.Ot)(this.menu,null===(e=this.options2)||void 0===e?void 0:e.menuOptions,{primary:a,secondary:l},null===(i=null===(t=this.options2)||void 0===t?void 0:t.toolbarOptions)||void 0===i?void 0:i.primaryGroup,null===(s=null===(n=this.options2)||void 0===n?void 0:n.toolbarOptions)||void 0===s?void 0:s.shouldInlineSubmenu,null===(r=null===(o=this.options2)||void 0===o?void 0:o.toolbarOptions)||void 0===r?void 0:r.useSeparatorsInPrimaryActions),l.push(...this.additionalActions),a.unshift(...this.prependedPrimaryActions),this.setActions(a,l)}setPrependedPrimaryActions(e){(0,l.aI)(this.prependedPrimaryActions,e,((e,t)=>e===t))||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){(0,l.aI)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};F=N([T(3,y.ez),T(4,S.fN),T(5,k.Z),T(6,L.b),T(7,D.k)],F)},73401:(e,t,i)=>{"use strict";i.d(t,{GM:()=>h,OA:()=>u,pY:()=>c,tN:()=>g,zk:()=>d});var n=i(64383),s=i(5662),o=i(99938),r=i(83069),a=i(36677);const l=[];function d(){return l}class h{constructor(e,t){if(this.startColumn=e,this.endColumnExclusive=t,e>t)throw new n.D7(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new a.Q(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}function c(e,t){const i=new s.Cm,n=e.createDecorationsCollection();return i.add((0,o.zL)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);n.set(i)}))),i.add({dispose:()=>{n.clear()}}),i}function u(e,t){return new r.y(e.lineNumber+t.lineNumber-1,1===t.lineNumber?e.column+t.column-1:t.column)}function g(e,t){return new r.y(e.lineNumber-t.lineNumber+1,e.lineNumber-t.lineNumber===0?e.column-t.column+1:e.column)}},59477:(e,t,i)=>{"use strict";var n=i(31450),s=i(57039),o=i(60002);var r=i(5662),a=i(99938),l=i(7085),d=i(83069),h=i(36677),c=i(10154),u=i(16223),g=i(25521),p=i(37899),m=i(73401),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};const v="inline-edit";let b=class extends r.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,a.FY)(this,!1),this.currentTextModel=(0,a.y0)(this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,a.un)(this,(e=>{var t;if(this.isDisposed.read(e))return;const i=this.currentTextModel.read(e);if(i!==this.model.targetTextModel.read(e))return;const n=this.model.ghostText.read(e);if(!n)return;let s=null===(t=this.model.range)||void 0===t?void 0:t.read(e);s&&s.startLineNumber===s.endLineNumber&&s.startColumn===s.endColumn&&(s=void 0);const o=(!s||s.startLineNumber===s.endLineNumber)&&1===n.parts.length&&1===n.parts[0].lines.length,r=1===n.parts.length&&n.parts[0].lines.every((e=>0===e.length)),a=[],l=[];function d(e,t){if(l.length>0){const i=l[l.length-1];t&&i.decorations.push(new g.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)l.push({content:i,decorations:t?[new g.d(1,i.length+1,t,0)]:[]})}const h=i.getLineContent(n.lineNumber);let c,u=0;if(!r){for(const e of n.parts){let t=e.lines;s&&!o&&(d(t,v),t=[]),void 0===c?(a.push({column:e.column,text:t[0],preview:e.preview}),t=t.slice(1)):d([h.substring(u,e.column-1)],void 0),t.length>0&&(d(t,v),void 0===c&&e.column<=h.length&&(c=e.column)),u=e.column-1}void 0!==c&&d([h.substring(u)],void 0)}const p=void 0!==c?new m.GM(c,h.length+1):void 0,f=o||!s?n.lineNumber:s.endLineNumber-1;return{inlineTexts:a,additionalLines:l,hiddenRange:p,lineNumber:f,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:i,range:s,isSingleLine:o,isPureRemove:r,backgroundColoring:this.model.backgroundColoring.read(e)}})),this.decorations=(0,a.un)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];if(t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"inline-edit-hidden",description:"inline-edit-hidden"}}),t.range){const e=[];if(t.isSingleLine)e.push(t.range);else if(t.isPureRemove){const i=t.range.endLineNumber-t.range.startLineNumber;for(let n=0;n<i;n++){const i=t.range.startLineNumber+n,s=t.targetTextModel.getLineFirstNonWhitespaceColumn(i),o=t.targetTextModel.getLineLastNonWhitespaceColumn(i),r=new h.Q(i,s,i,o);e.push(r)}}else{const i=t.range.endLineNumber-t.range.startLineNumber;for(let n=0;n<i;n++){const i=t.range.startLineNumber+n,s=t.targetTextModel.getLineFirstNonWhitespaceColumn(i),o=t.targetTextModel.getLineLastNonWhitespaceColumn(i),r=new h.Q(i,s,i,o);e.push(r)}}const n=t.backgroundColoring?"inline-edit-remove backgroundColoring":"inline-edit-remove";for(const t of e)i.push({range:t,options:{inlineClassName:n,description:"inline-edit-remove"}})}for(const n of t.inlineTexts)i.push({range:h.Q.fromPositions(new d.y(t.lineNumber,n.column)),options:{description:v,after:{content:n.text,inlineClassName:n.preview?"inline-edit-decoration-preview":"inline-edit-decoration",cursorStops:u.VW.Left},showIfCollapsed:!0}});return i})),this.additionalLinesWidget=this._register(new p.vS(this.editor,this.languageService.languageIdCodec,(0,a.un)((e=>{const t=this.uiState.read(e);return t&&!t.isPureRemove?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register((0,r.s)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,m.pY)(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};b=f([_(2,c.L)],b);var C,y=i(32848),w=i(63591),S=i(62083),k=i(56942),x=i(18447),L=i(24380),D=i(50091),E=i(8597),N=i(47625),T=i(36921),I=i(25890),M=i(98067),A=i(43878),R=i(65644),O=i(27195),P=i(47508),F=i(98031),B=i(90651),W=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},V=function(e,t){return function(i,n){t(i,n,e)}};let H=class extends r.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,a.y0)(this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(63).showToolbar)),this.sessionPosition=void 0,this.position=(0,a.un)(this,(e=>{var t,i,n;const s=null===(t=this.model.read(e))||void 0===t?void 0:t.widget.model.ghostText.read(e);if(!this.alwaysShowToolbar.read(e)||!s||0===s.parts.length)return this.sessionPosition=void 0,null;const o=s.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==s.lineNumber&&(this.sessionPosition=void 0);const r=new d.y(s.lineNumber,Math.min(o,null!==(n=null===(i=this.sessionPosition)||void 0===i?void 0:i.column)&&void 0!==n?n:Number.MAX_SAFE_INTEGER));return this.sessionPosition=r,r})),this._register((0,a.yC)(((t,i)=>{if(!this.model.read(t)||!this.alwaysShowToolbar.read(t))return;const n=i.add(this.instantiationService.createInstance(z,this.editor,!0,this.position));e.addContentWidget(n),i.add((0,r.s)((()=>e.removeContentWidget(n))))})))}};H=W([V(2,w._Y)],H);let z=C=class extends r.jG{constructor(e,t,i,n,s,o){super(),this.editor=e,this.withBorder=t,this._position=i,this._contextKeyService=s,this._menuService=o,this.id="InlineEditHintsContentWidget"+C.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,E.h)("div.inlineEditHints",{className:this.withBorder?".withBorder":""},[(0,E.h)("div@toolBar")]),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(O.D8.InlineEditActions,this._contextKeyService)),this.toolBar=this._register(n.createInstance(U,this.nodes.toolBar,this.editor,O.D8.InlineEditToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof O.Xe)return n.createInstance(j,e,void 0)},telemetrySource:"InlineEditToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{C._dropDownVisible=e}))),this._register((0,a.fm)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,a.fm)((e=>{const t=[];for(const[i,n]of this.inlineCompletionsActionsMenus.getActions())for(const e of n)e instanceof O.Xe&&t.push(e);t.length>0&&t.unshift(new T.wv),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};z._dropDownVisible=!1,z.id=0,z=C=W([V(3,w._Y),V(4,y.fN),V(5,O.ez)],z);class j extends A.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,E.h)("div.keybinding").root;this._register(new N.x(t,M.OS,{disableTitle:!0,...N.l})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineEditStatusBarItemLabel")}}updateTooltip(){}}let U=class extends R.p{constructor(e,t,i,n,s,o,r,a,l){super(e,{resetMenu:i,...n},s,o,r,a,l),this.editor=t,this.menuId=i,this.options2=n,this.menuService=s,this.contextKeyService=o,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this._store.add(this.editor.onDidChangeCursorPosition((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,o,r;const a=[],l=[];(0,A.Ot)(this.menu,null===(e=this.options2)||void 0===e?void 0:e.menuOptions,{primary:a,secondary:l},null===(i=null===(t=this.options2)||void 0===t?void 0:t.toolbarOptions)||void 0===i?void 0:i.primaryGroup,null===(s=null===(n=this.options2)||void 0===n?void 0:n.toolbarOptions)||void 0===s?void 0:s.shouldInlineSubmenu,null===(r=null===(o=this.options2)||void 0===o?void 0:o.toolbarOptions)||void 0===r?void 0:r.useSeparatorsInPrimaryActions),l.push(...this.additionalActions),a.unshift(...this.prependedPrimaryActions),this.setActions(a,l)}setAdditionalSecondaryActions(e){(0,I.aI)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};U=W([V(4,O.ez),V(5,y.fN),V(6,P.Z),V(7,F.b),V(8,B.k)],U);var K,G=i(84001),$=i(64383),q=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Q=function(e,t){return function(i,n){t(i,n,e)}};class Y{constructor(e,t){this.widget=e,this.edit=t}dispose(){this.widget.dispose()}}let Z=K=class extends r.jG{static get(e){return e.getContribution(K.ID)}constructor(e,t,i,n,s,o){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.languageFeaturesService=n,this._commandService=s,this._configurationService=o,this._isVisibleContext=K.inlineEditVisibleContext.bindTo(this.contextKeyService),this._isCursorAtInlineEditContext=K.cursorAtInlineEditContext.bindTo(this.contextKeyService),this._currentEdit=this._register((0,a.X2)(this,void 0)),this._isAccepting=(0,a.FY)(this,!1),this._enabled=(0,a.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).enabled)),this._fontFamily=(0,a.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).fontFamily)),this._backgroundColoring=(0,a.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).backgroundColoring));const r=(0,a.yQ)("InlineEditController.modelContentChangedSignal",e.onDidChangeModelContent);this._register((0,a.fm)((t=>{this._enabled.read(t)&&(r.read(t),this._isAccepting.read(t)||this.getInlineEdit(e,!0))})));const l=(0,a.y0)(e.onDidChangeCursorPosition,(()=>e.getPosition()));this._register((0,a.fm)((e=>{if(!this._enabled.read(e))return;const t=l.read(e);t&&this.checkCursorPosition(t)}))),this._register((0,a.fm)((t=>{const i=this._currentEdit.read(t);if(this._isCursorAtInlineEditContext.set(!1),!i)return void this._isVisibleContext.set(!1);this._isVisibleContext.set(!0);const n=e.getPosition();n&&this.checkCursorPosition(n)})));const d=(0,a.yQ)("InlineEditController.editorBlurSignal",e.onDidBlurEditorWidget);this._register((0,a.fm)((async t=>{var i;this._enabled.read(t)&&(d.read(t),this._configurationService.getValue("editor.experimentalInlineEdit.keepOnBlur")||e.getOption(63).keepOnBlur||(null===(i=this._currentRequestCts)||void 0===i||i.dispose(!0),this._currentRequestCts=void 0,await this.clear(!1)))})));const h=(0,a.yQ)("InlineEditController.editorFocusSignal",e.onDidFocusEditorText);this._register((0,a.fm)((t=>{this._enabled.read(t)&&(h.read(t),this.getInlineEdit(e,!0))})));const c=this._register((0,E.jh)());this._register((0,a.fm)((e=>{const t=this._fontFamily.read(e);c.setStyle(""===t||"default"===t?"":`\n.monaco-editor .inline-edit-decoration,\n.monaco-editor .inline-edit-decoration-preview,\n.monaco-editor .inline-edit {\n\tfont-family: ${t};\n}`)}))),this._register(new H(this.editor,this._currentEdit,this.instantiationService))}checkCursorPosition(e){var t;if(!this._currentEdit)return void this._isCursorAtInlineEditContext.set(!1);const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;i?this._isCursorAtInlineEditContext.set(h.Q.containsPosition(i.range,e)):this._isCursorAtInlineEditContext.set(!1)}validateInlineEdit(e,t){var i,n;if(t.text.includes("\n")&&t.range.startLineNumber!==t.range.endLineNumber&&t.range.startColumn!==t.range.endColumn){if(1!==t.range.startColumn)return!1;const s=t.range.endLineNumber;if(t.range.endColumn!==(null!==(n=null===(i=e.getModel())||void 0===i?void 0:i.getLineLength(s))&&void 0!==n?n:0)+1)return!1}return!0}async fetchInlineEdit(e,t){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const i=e.getModel();if(!i)return;const n=i.getVersionId(),s=this.languageFeaturesService.inlineEditProvider.all(i);if(0===s.length)return;const o=s[0];this._currentRequestCts=new x.Q;const r=this._currentRequestCts.token,a=t?S.sm.Automatic:S.sm.Invoke;var l,d;if(t&&await(l=50,d=r,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),l);d&&(t=d.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),r.isCancellationRequested||i.isDisposed()||i.getVersionId()!==n)return;const h=await o.provideInlineEdit(i,{triggerKind:a},r);return h&&!r.isCancellationRequested&&!i.isDisposed()&&i.getVersionId()===n&&this.validateInlineEdit(e,h)?h:void 0}async getInlineEdit(e,t){var i;this._isCursorAtInlineEditContext.set(!1),await this.clear();const n=await this.fetchInlineEdit(e,t);if(!n)return;const s=n.range.endLineNumber,o=n.range.endColumn,r=new L.xD(s,[new L.yP(o,n.text,!1)]),l=this.instantiationService.createInstance(b,this.editor,{ghostText:(0,a.lk)(r),minReservedLineCount:(0,a.lk)(0),targetTextModel:(0,a.lk)(null!==(i=this.editor.getModel())&&void 0!==i?i:void 0),range:(0,a.lk)(n.range),backgroundColoring:this._backgroundColoring});this._currentEdit.set(new Y(l,n),void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){var e;this._isAccepting.set(!0,void 0);const t=null===(e=this._currentEdit.get())||void 0===e?void 0:e.edit;if(!t)return;let i=t.text;t.text.startsWith("\n")&&(i=t.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[l.k.replace(h.Q.lift(t.range),i)]),t.accepted&&await this._commandService.executeCommand(t.accepted.id,...t.accepted.arguments||[]).then(void 0,$.M_),this.freeEdit(t),(0,a.Rn)((e=>{this._currentEdit.set(void 0,e),this._isAccepting.set(!1,e)}))}jumpToCurrent(){var e,t;this._jumpBackPosition=null===(e=this.editor.getSelection())||void 0===e?void 0:e.getStartPosition();const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;if(!i)return;const n=d.y.lift({lineNumber:i.range.startLineNumber,column:i.range.startColumn});this.editor.setPosition(n),this.editor.revealPositionInCenterIfOutsideViewport(n)}async clear(e=!0){var t;const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;i&&(null===i||void 0===i?void 0:i.rejected)&&e&&await this._commandService.executeCommand(i.rejected.id,...i.rejected.arguments||[]).then(void 0,$.M_),i&&this.freeEdit(i),this._currentEdit.set(void 0,void 0)}freeEdit(e){const t=this.editor.getModel();if(!t)return;const i=this.languageFeaturesService.inlineEditProvider.all(t);0!==i.length&&i[0].freeInlineEdit(e)}shouldShowHoverAt(e){const t=this._currentEdit.get();if(!t)return!1;const i=t.edit,n=t.widget.model;if(h.Q.containsPosition(i.range,e.getStartPosition())||h.Q.containsPosition(i.range,e.getEndPosition()))return!0;const s=n.ghostText.get();return!!s&&s.parts.some((t=>e.containsPosition(new d.y(s.lineNumber,t.column))))}shouldShowHoverAtViewZone(e){var t,i;return null!==(i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.widget.ownsViewZone(e))&&void 0!==i&&i}};Z.ID="editor.contrib.inlineEditController",Z.inlineEditVisibleKey="inlineEditVisible",Z.inlineEditVisibleContext=new y.N1(K.inlineEditVisibleKey,!1),Z.cursorAtInlineEditKey="cursorAtInlineEdit",Z.cursorAtInlineEditContext=new y.N1(K.cursorAtInlineEditKey,!1),Z=K=q([Q(1,w._Y),Q(2,y.fN),Q(3,k.u),Q(4,D.d),Q(5,G.pG)],Z);class X extends n.ks{constructor(){super({id:"editor.action.inlineEdit.accept",label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:y.M$.and(o.R.writable,Z.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:y.M$.and(o.R.writable,Z.inlineEditVisibleContext,Z.cursorAtInlineEditContext)}],menuOpts:[{menuId:O.D8.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(e,t){const i=Z.get(t);await(null===i||void 0===i?void 0:i.accept())}}class J extends n.ks{constructor(){const e=y.M$.and(o.R.writable,y.M$.not(Z.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e}})}async run(e,t){const i=Z.get(t);null===i||void 0===i||i.trigger()}}class ee extends n.ks{constructor(){const e=y.M$.and(o.R.writable,Z.inlineEditVisibleContext,y.M$.not(Z.cursorAtInlineEditKey));super({id:"editor.action.inlineEdit.jumpTo",label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e},menuOpts:[{menuId:O.D8.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:e}]})}async run(e,t){const i=Z.get(t);null===i||void 0===i||i.jumpToCurrent()}}class te extends n.ks{constructor(){const e=y.M$.and(o.R.writable,Z.cursorAtInlineEditContext);super({id:"editor.action.inlineEdit.jumpBack",label:"Jump Back from Inline Edit",alias:"Jump Back from Inline Edit",precondition:e,kbOpts:{weight:110,primary:2646,kbExpr:e},menuOpts:[{menuId:O.D8.InlineEditToolbar,title:"Jump Back",group:"primary",order:3,when:e}]})}async run(e,t){const i=Z.get(t);null===i||void 0===i||i.jumpBack()}}class ie extends n.ks{constructor(){const e=y.M$.and(o.R.writable,Z.inlineEditVisibleContext);super({id:"editor.action.inlineEdit.reject",label:"Reject Inline Edit",alias:"Reject Inline Edit",precondition:e,kbOpts:{weight:100,primary:9,kbExpr:e},menuOpts:[{menuId:O.D8.InlineEditToolbar,title:"Reject",group:"secondary",order:2}]})}async run(e,t){const i=Z.get(t);await(null===i||void 0===i?void 0:i.clear())}}var ne=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},se=function(e,t){return function(i,n){t(i,n,e)}};class oe{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let re=class{constructor(e,t,i){this._editor=e,this._instantiationService=t,this._telemetryService=i,this.hoverOrdinal=5}suggestHoverAnchor(e){const t=Z.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId)){const t=i.range;return new s.mm(1e3,this,t,e.event.posx,e.event.posy,!1)}}if(7===i.type&&t.shouldShowHoverAt(i.range))return new s.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1);if(6===i.type){if(i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range))return new s.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1)}return null}computeSync(e,t){if("onHover"!==this._editor.getOption(63).showToolbar)return[];const i=Z.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new oe(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new r.Cm;this._telemetryService.publicLog2("inlineEditHover.shown");const n=this._instantiationService.createInstance(z,this._editor,!1,(0,a.lk)(null));return e.fragment.appendChild(n.getDomNode()),i.add(n),i}};re=ne([se(1,w._Y),se(2,B.k)],re),(0,n.Fl)(X),(0,n.Fl)(ie),(0,n.Fl)(ee),(0,n.Fl)(te),(0,n.Fl)(J),(0,n.HW)(Z.ID,Z,3),s.B2.register(re)},9948:(e,t,i)=>{"use strict";i.d(t,{I:()=>f});var n=i(8597),s=i(90766),o=i(10350),r=i(5662),a=i(91508),l=i(25689),d=i(36677),h=i(38361),c=i(63591),u=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},g=function(e,t){return function(i,n){t(i,n,e)}};const p=h.kI.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:a.S8,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class m extends r.jG{constructor(e,t,i,n,s){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=s,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=n.$(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=n.$("span.icon");this.domNode.append(t),t.classList.add(...l.L.asClassNameArray(o.W.loading),"codicon-modifier-spin");const i=()=>{const e=this.editor.getOption(67);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};i(),this._register(this.editor.onDidChangeConfiguration((e=>{(e.hasChanged(52)||e.hasChanged(67))&&i()}))),this._register(n.ko(this.domNode,n.Bx.CLICK,(e=>{this.delegate.cancel()})))}getId(){return m.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}m.baseId="editor.widget.inlineProgressWidget";let f=class extends r.jG{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new r.HE),this._currentWidget=new r.HE,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}async showWhile(e,t,i){const n=this._operationIdPool++;this._currentOperation=n,this.clear(),this._showPromise.value=(0,s.EQ)((()=>{const n=d.Q.fromPositions(e);this._currentDecorations.set([{range:n,options:p}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(m,this.id,this._editor,n,t,i))}),this._showDelay);try{return await i}finally{this._currentOperation===n&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};f=u([g(2,c._Y)],f)},15040:(e,t,i)=>{"use strict";var n=i(31450),s=i(50672),o=i(60002),r=i(31629);class a extends n.ks{constructor(){super({id:"expandLineSelection",label:r.kg("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:o.R.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(i.source,3,s.c.expandLineSelection(n,n.getCursorStates())),n.revealAllCursors(i.source,!0)}}(0,n.Fl)(a)},75639:(e,t,i)=>{"use strict";var n=i(24939),s=i(36999),o=i(31450),r=i(15092),a=i(91508),l=i(7085),d=i(36677);class h{constructor(e,t,i){this._selection=e,this._cursors=t,this._selectionId=null,this._trimInRegexesAndStrings=i}getEditOperations(e,t){const i=function(e,t,i){t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber));for(let a=t.length-2;a>=0;a--)t[a].lineNumber===t[a+1].lineNumber&&t.splice(a,1);const n=[];let s=0,o=0;const r=t.length;for(let h=1,c=e.getLineCount();h<=c;h++){const c=e.getLineContent(h),u=c.length+1;let g=0;if(o<r&&t[o].lineNumber===h&&(g=t[o].column,o++,g===u))continue;if(0===c.length)continue;const p=a.lT(c);let m=0;if(-1===p)m=1;else{if(p===c.length-1)continue;m=p+2}if(!i){if(!e.tokenization.hasAccurateTokensForLine(h))continue;const t=e.tokenization.getLineTokens(h),i=t.getStandardTokenType(t.findTokenIndexAtOffset(m));if(2===i||3===i)continue}m=Math.max(g,m),n[s++]=l.k.delete(new d.Q(h,m,h,u))}return n}(e,this._cursors,this._trimInRegexesAndStrings);for(let n=0,s=i.length;n<s;n++){const e=i[n];t.addEditOperation(e.range,e.text)}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}var c=i(56441),u=i(83069),g=i(75326),p=i(60002);class m{constructor(e,t,i){this._selection=e,this._isCopyingDown=t,this._noop=i||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let i=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._endLineNumberDelta=1,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const n=[];for(let o=i.startLineNumber;o<=i.endLineNumber;o++)n.push(e.getLineContent(o));const s=n.join("\n");""===s&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?t.addEditOperation(new d.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber+1,1),i.endLineNumber===e.getLineCount()?"":"\n"):this._isCopyingDown?t.addEditOperation(new d.Q(i.startLineNumber,1,i.startLineNumber,1),s+"\n"):t.addEditOperation(new d.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+s),this._selectionId=t.trackSelection(i),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){let e=i.startLineNumber,t=i.startColumn,n=i.endLineNumber,s=i.endColumn;0!==this._startLineNumberDelta&&(e+=this._startLineNumberDelta,t=1),0!==this._endLineNumberDelta&&(n+=this._endLineNumberDelta,s=1),i=g.L.createWithDirection(e,t,n,s,this._selectionDirection)}return i}}var f=i(7936),_=i(38566),v=i(17469),b=i(64395),C=i(82365),y=i(63346),w=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},S=function(e,t){return function(i,n){t(i,n,e)}};let k=class{constructor(e,t,i,n){this._languageConfigurationService=n,this._selection=e,this._isMovingDown=t,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){const i=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===i)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&1===this._selection.startLineNumber)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let n=this._selection;n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._moveEndPositionDown=!0,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));const{tabSize:s,indentSize:o,insertSpaces:r}=e.getOptions(),l=this.buildIndentConverter(s,o,r),h={tokenization:{getLineTokens:t=>e.tokenization.getLineTokens(t),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:null};if(n.startLineNumber===n.endLineNumber&&1===e.getLineMaxColumn(n.startLineNumber)){const i=n.startLineNumber,s=this._isMovingDown?i+1:i-1;1===e.getLineMaxColumn(s)?t.addEditOperation(new d.Q(1,1,1,1),null):(t.addEditOperation(new d.Q(i,1,i,1),e.getLineContent(s)),t.addEditOperation(new d.Q(s,1,s,e.getLineMaxColumn(s)),null)),n=new g.L(s,1,s,1)}else{let i,o;if(this._isMovingDown){i=n.endLineNumber+1,o=e.getLineContent(i),t.addEditOperation(new d.Q(i-1,e.getLineMaxColumn(i-1),i,e.getLineMaxColumn(i)),null);let c=o;if(this.shouldAutoIndent(e,n)){const u=this.matchEnterRule(e,l,s,i,n.startLineNumber-1);if(null!==u){const t=a.UU(e.getLineContent(i)),n=u+b.c(t,s),l=b.k(n,s,r);c=l+this.trimStart(o)}else{h.getLineContent=t=>t===n.startLineNumber?e.getLineContent(i):e.getLineContent(t);const t=(0,C.$f)(this._autoIndent,h,e.getLanguageIdAtPosition(i,1),n.startLineNumber,l,this._languageConfigurationService);if(null!==t){const n=a.UU(e.getLineContent(i)),l=b.c(t,s);if(l!==b.c(n,s)){const e=b.k(l,s,r);c=e+this.trimStart(o)}}}t.addEditOperation(new d.Q(n.startLineNumber,1,n.startLineNumber,1),c+"\n");const g=this.matchEnterRuleMovingDown(e,l,s,n.startLineNumber,i,c);if(null!==g)0!==g&&this.getIndentEditsOfMovingBlock(e,t,n,s,r,g);else{h.getLineContent=t=>t===n.startLineNumber?c:t>=n.startLineNumber+1&&t<=n.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t);const o=(0,C.$f)(this._autoIndent,h,e.getLanguageIdAtPosition(i,1),n.startLineNumber+1,l,this._languageConfigurationService);if(null!==o){const i=a.UU(e.getLineContent(n.startLineNumber)),l=b.c(o,s),d=b.c(i,s);if(l!==d){const i=l-d;this.getIndentEditsOfMovingBlock(e,t,n,s,r,i)}}}}else t.addEditOperation(new d.Q(n.startLineNumber,1,n.startLineNumber,1),c+"\n")}else if(i=n.startLineNumber-1,o=e.getLineContent(i),t.addEditOperation(new d.Q(i,1,i+1,1),null),t.addEditOperation(new d.Q(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+o),this.shouldAutoIndent(e,n)){h.getLineContent=t=>t===i?e.getLineContent(n.startLineNumber):e.getLineContent(t);const o=this.matchEnterRule(e,l,s,n.startLineNumber,n.startLineNumber-2);if(null!==o)0!==o&&this.getIndentEditsOfMovingBlock(e,t,n,s,r,o);else{const o=(0,C.$f)(this._autoIndent,h,e.getLanguageIdAtPosition(n.startLineNumber,1),i,l,this._languageConfigurationService);if(null!==o){const i=a.UU(e.getLineContent(n.startLineNumber)),l=b.c(o,s),d=b.c(i,s);if(l!==d){const i=l-d;this.getIndentEditsOfMovingBlock(e,t,n,s,r,i)}}}}}this._selectionId=t.trackSelection(n)}buildIndentConverter(e,t,i){return{shiftIndent:n=>f.Y.shiftIndent(n,n.length+1,e,t,i),unshiftIndent:n=>f.Y.unshiftIndent(n,n.length+1,e,t,i)}}parseEnterResult(e,t,i,n,s){if(s){let o=s.indentation;s.indentAction===_.l.None||s.indentAction===_.l.Indent?o=s.indentation+s.appendText:s.indentAction===_.l.IndentOutdent?o=s.indentation:s.indentAction===_.l.Outdent&&(o=t.unshiftIndent(s.indentation)+s.appendText);const r=e.getLineContent(n);if(this.trimStart(r).indexOf(this.trimStart(o))>=0){const s=a.UU(e.getLineContent(n));let r=a.UU(o);const l=(0,C.Yb)(e,n,this._languageConfigurationService);null!==l&&2&l&&(r=t.unshiftIndent(r));return b.c(r,i)-b.c(s,i)}}return null}matchEnterRuleMovingDown(e,t,i,n,s,o){if(a.lT(o)>=0){const o=e.getLineMaxColumn(s),r=(0,y.h)(this._autoIndent,e,new d.Q(s,o,s,o),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,r)}{let s=n-1;for(;s>=1;){const t=e.getLineContent(s);if(a.lT(t)>=0)break;s--}if(s<1||n>e.getLineCount())return null;const o=e.getLineMaxColumn(s),r=(0,y.h)(this._autoIndent,e,new d.Q(s,o,s,o),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,r)}}matchEnterRule(e,t,i,n,s,o){let r=s;for(;r>=1;){let t;t=r===s&&void 0!==o?o:e.getLineContent(r);if(a.lT(t)>=0)break;r--}if(r<1||n>e.getLineCount())return null;const l=e.getLineMaxColumn(r),h=(0,y.h)(this._autoIndent,e,new d.Q(r,l,r,l),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,h)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4)return!1;if(!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const i=e.getLanguageIdAtPosition(t.startLineNumber,1);return i===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport}getIndentEditsOfMovingBlock(e,t,i,n,s,o){for(let r=i.startLineNumber;r<=i.endLineNumber;r++){const l=e.getLineContent(r),h=a.UU(l),c=b.c(h,n)+o,u=b.k(c,n,s);u!==h&&(t.addEditOperation(new d.Q(r,1,r,h.length+1),u),r===i.endLineNumber&&i.endColumn<=h.length+1&&""===u&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber<i.endLineNumber&&(i=i.setEndPosition(i.endLineNumber,2)),i}};k=w([S(3,v.JZ)],k);class x{static getCollator(){return x._COLLATOR||(x._COLLATOR=new Intl.Collator),x._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){const i=function(e,t,i){const n=L(e,t,i);if(!n)return null;return l.k.replace(new d.Q(n.startLineNumber,1,n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),n.after.join("\n"))}(e,this.selection,this.descending);i&&t.addEditOperation(i.range,i.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,i){if(null===e)return!1;const n=L(e,t,i);if(!n)return!1;for(let s=0,o=n.before.length;s<o;s++)if(n.before[s]!==n.after[s])return!0;return!1}}function L(e,t,i){const n=t.startLineNumber;let s=t.endLineNumber;if(1===t.endColumn&&s--,n>=s)return null;const o=[];for(let a=n;a<=s;a++)o.push(e.getLineContent(a));let r=o.slice(0);return r.sort(x.getCollator().compare),!0===i&&(r=r.reverse()),{startLineNumber:n,endLineNumber:s,before:o,after:r}}x._COLLATOR=null;var D=i(31629),E=i(27195),N=i(84001);class T extends o.ks{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const i=t.getSelections().map(((e,t)=>({selection:e,index:t,ignore:!1})));i.sort(((e,t)=>d.Q.compareRangesUsingStarts(e.selection,t.selection)));let n=i[0];for(let o=1;o<i.length;o++){const e=i[o];n.selection.endLineNumber===e.selection.startLineNumber&&(n.index<e.index?e.ignore=!0:(n.ignore=!0,n=e))}const s=[];for(const o of i)s.push(new m(o.selection,this.down,o.ignore));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class I extends o.ks{constructor(){super({id:"editor.action.duplicateSelection",label:D.kg("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:p.R.writable,menuOpts:{menuId:E.D8.MenubarSelectionMenu,group:"2_line",title:D.kg({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,i){if(!t.hasModel())return;const n=[],s=t.getSelections(),o=t.getModel();for(const a of s)if(a.isEmpty())n.push(new m(a,!0));else{const e=new g.L(a.endLineNumber,a.endColumn,a.endLineNumber,a.endColumn);n.push(new r.tA(e,o.getValueInRange(a)))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class M extends o.ks{constructor(e,t){super(t),this.down=e}run(e,t){const i=e.get(v.JZ),n=[],s=t.getSelections()||[],o=t.getOption(12);for(const r of s)n.push(new k(r,this.down,o,i));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class A extends o.ks{constructor(e,t){super(t),this.descending=e}run(e,t){if(!t.hasModel())return;const i=t.getModel();let n=t.getSelections();1===n.length&&n[0].isEmpty()&&(n=[new g.L(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))]);for(const o of n)if(!x.canRun(t.getModel(),o,this.descending))return;const s=[];for(let o=0,r=n.length;o<r;o++)s[o]=new x(n[o],this.descending);t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class R extends o.ks{constructor(){super({id:"editor.action.removeDuplicateLines",label:D.kg("lines.deleteDuplicates","Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:p.R.writable})}run(e,t){if(!t.hasModel())return;const i=t.getModel();if(1===i.getLineCount()&&1===i.getLineMaxColumn(1))return;const n=[],s=[];let o=0,r=!0,a=t.getSelections();1===a.length&&a[0].isEmpty()&&(a=[new g.L(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))],r=!1);for(const d of a){const e=new Set,t=[];for(let n=d.startLineNumber;n<=d.endLineNumber;n++){const s=i.getLineContent(n);e.has(s)||(t.push(s),e.add(s))}const r=new g.L(d.startLineNumber,1,d.endLineNumber,i.getLineMaxColumn(d.endLineNumber)),a=d.startLineNumber-o,h=new g.L(a,1,a+t.length-1,t[t.length-1].length);n.push(l.k.replace(r,t.join("\n"))),s.push(h),o+=d.endLineNumber-d.startLineNumber+1-t.length}t.pushUndoStop(),t.executeEdits(this.id,n,r?s:void 0),t.pushUndoStop()}}class O extends o.ks{constructor(){super({id:O.ID,label:D.kg("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:p.R.writable,kbOpts:{kbExpr:p.R.editorTextFocus,primary:(0,n.m5)(2089,2102),weight:100}})}run(e,t,i){let n=[];"auto-save"===i.reason&&(n=(t.getSelections()||[]).map((e=>new u.y(e.positionLineNumber,e.positionColumn))));const s=t.getSelection();if(null===s)return;const o=e.get(N.pG),r=t.getModel(),a=o.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:null===r||void 0===r?void 0:r.getLanguageId(),resource:null===r||void 0===r?void 0:r.uri}),l=new h(s,n,a);t.pushUndoStop(),t.executeCommands(this.id,[l]),t.pushUndoStop()}}O.ID="editor.action.trimTrailingWhitespace";class P extends o.ks{constructor(){super({id:"editor.action.deleteLines",label:D.kg("lines.delete","Delete Line"),alias:"Delete Line",precondition:p.R.writable,kbOpts:{kbExpr:p.R.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;const i=this._getLinesToRemove(t),n=t.getModel();if(1===n.getLineCount()&&1===n.getLineMaxColumn(1))return;let s=0;const o=[],r=[];for(let a=0,d=i.length;a<d;a++){const e=i[a];let t=e.startLineNumber,d=e.endLineNumber,h=1,c=n.getLineMaxColumn(d);d<n.getLineCount()?(d+=1,c=1):t>1&&(t-=1,h=n.getLineMaxColumn(t)),o.push(l.k.replace(new g.L(t,h,d,c),"")),r.push(new g.L(t-s,e.positionColumn,t-s,e.positionColumn)),s+=e.endLineNumber-e.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,o,r),t.pushUndoStop()}_getLinesToRemove(e){const t=e.getSelections().map((e=>{let t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}}));t.sort(((e,t)=>e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber));const i=[];let n=t[0];for(let s=1;s<t.length;s++)n.endLineNumber+1>=t[s].startLineNumber?n.endLineNumber=t[s].endLineNumber:(i.push(n),n=t[s]);return i.push(n),i}}class F extends o.ks{constructor(){super({id:"editor.action.indentLines",label:D.kg("lines.indent","Indent Line"),alias:"Indent Line",precondition:p.R.writable,kbOpts:{kbExpr:p.R.editorTextFocus,primary:2142,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,c.TK.indent(i.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class B extends o.ks{constructor(){super({id:"editor.action.outdentLines",label:D.kg("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:p.R.writable,kbOpts:{kbExpr:p.R.editorTextFocus,primary:2140,weight:100}})}run(e,t){s.Yh.Outdent.runEditorCommand(e,t,null)}}class W extends o.ks{constructor(){super({id:"editor.action.insertLineBefore",label:D.kg("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:p.R.writable,kbOpts:{kbExpr:p.R.editorTextFocus,primary:3075,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,c.TK.lineInsertBefore(i.cursorConfig,t.getModel(),t.getSelections())))}}class V extends o.ks{constructor(){super({id:"editor.action.insertLineAfter",label:D.kg("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:p.R.writable,kbOpts:{kbExpr:p.R.editorTextFocus,primary:2051,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,c.TK.lineInsertAfter(i.cursorConfig,t.getModel(),t.getSelections())))}}class H extends o.ks{run(e,t){if(!t.hasModel())return;const i=t.getSelection(),n=this._getRangesToDelete(t),s=[];for(let a=0,l=n.length-1;a<l;a++){const e=n[a],t=n[a+1];null===d.Q.intersectRanges(e,t)?s.push(e):n[a+1]=d.Q.plusRange(e,t)}s.push(n[n.length-1]);const o=this._getEndCursorState(i,s),r=s.map((e=>l.k.replace(e,"")));t.pushUndoStop(),t.executeEdits(this.id,r,o),t.pushUndoStop()}}class z extends o.ks{constructor(){super({id:"editor.action.joinLines",label:D.kg("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:p.R.writable,kbOpts:{kbExpr:p.R.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){const i=t.getSelections();if(null===i)return;let n=t.getSelection();if(null===n)return;i.sort(d.Q.compareRangesUsingStarts);const s=[],o=i.reduce(((e,t)=>e.isEmpty()?e.endLineNumber===t.startLineNumber?(n.equalsSelection(e)&&(n=t),t):t.startLineNumber>e.endLineNumber+1?(s.push(e),t):new g.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(s.push(e),t):new g.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)));s.push(o);const r=t.getModel();if(null===r)return;const a=[],h=[];let c=n,u=0;for(let p=0,m=s.length;p<m;p++){const e=s[p],t=e.startLineNumber,i=1;let o,m,f=0;const _=r.getLineLength(e.endLineNumber)-e.endColumn;if(e.isEmpty()||e.startLineNumber===e.endLineNumber){const i=e.getStartPosition();i.lineNumber<r.getLineCount()?(o=t+1,m=r.getLineMaxColumn(o)):(o=i.lineNumber,m=r.getLineMaxColumn(i.lineNumber))}else o=e.endLineNumber,m=r.getLineMaxColumn(o);let v=r.getLineContent(t);for(let n=t+1;n<=o;n++){const e=r.getLineContent(n),t=r.getLineFirstNonWhitespaceColumn(n);if(t>=1){let i=!0;""===v&&(i=!1),!i||" "!==v.charAt(v.length-1)&&"\t"!==v.charAt(v.length-1)||(i=!1,v=v.replace(/[\s\uFEFF\xA0]+$/g," "));const n=e.substr(t-1);v+=(i?" ":"")+n,f=i?n.length+1:n.length}else f=0}const b=new d.Q(t,i,o,m);if(!b.isEmpty()){let i;e.isEmpty()?(a.push(l.k.replace(b,v)),i=new g.L(b.startLineNumber-u,v.length-f+1,t-u,v.length-f+1)):e.startLineNumber===e.endLineNumber?(a.push(l.k.replace(b,v)),i=new g.L(e.startLineNumber-u,e.startColumn,e.endLineNumber-u,e.endColumn)):(a.push(l.k.replace(b,v)),i=new g.L(e.startLineNumber-u,e.startColumn,e.startLineNumber-u,v.length-_)),null!==d.Q.intersectRanges(b,n)?c=i:h.push(i)}u+=b.endLineNumber-b.startLineNumber}h.unshift(c),t.pushUndoStop(),t.executeEdits(this.id,a,h),t.pushUndoStop()}}class j extends o.ks{constructor(){super({id:"editor.action.transpose",label:D.kg("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:p.R.writable})}run(e,t){const i=t.getSelections();if(null===i)return;const n=t.getModel();if(null===n)return;const s=[];for(let o=0,a=i.length;o<a;o++){const e=i[o];if(!e.isEmpty())continue;const t=e.getStartPosition(),a=n.getLineMaxColumn(t.lineNumber);if(t.column>=a){if(t.lineNumber===n.getLineCount())continue;const e=new d.Q(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i=n.getValueInRange(e).split("").reverse().join("");s.push(new r.iu(new g.L(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i))}else{const e=new d.Q(t.lineNumber,Math.max(1,t.column-1),t.lineNumber,t.column+1),i=n.getValueInRange(e).split("").reverse().join("");s.push(new r.ui(e,i,new g.L(t.lineNumber,t.column+1,t.lineNumber,t.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class U extends o.ks{run(e,t){const i=t.getSelections();if(null===i)return;const n=t.getModel();if(null===n)return;const s=t.getOption(131),o=[];for(const r of i)if(r.isEmpty()){const e=r.getStartPosition(),i=t.getConfiguredWordAtPosition(e);if(!i)continue;const a=new d.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),h=n.getValueInRange(a);o.push(l.k.replace(a,this._modifyText(h,s)))}else{const e=n.getValueInRange(r);o.push(l.k.replace(r,this._modifyText(e,s)))}t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop()}}class K{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(e){}}return this._actual}isSupported(){return null!==this.get()}}class G extends U{constructor(){super({id:"editor.action.transformToTitlecase",label:D.kg("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:p.R.writable})}_modifyText(e,t){const i=G.titleBoundary.get();return i?e.toLocaleLowerCase().replace(i,(e=>e.toLocaleUpperCase())):e}}G.titleBoundary=new K("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");class $ extends U{constructor(){super({id:"editor.action.transformToSnakecase",label:D.kg("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:p.R.writable})}_modifyText(e,t){const i=$.caseBoundary.get(),n=$.singleLetters.get();return i&&n?e.replace(i,"$1_$2").replace(n,"$1_$2$3").toLocaleLowerCase():e}}$.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu"),$.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");class q extends U{constructor(){super({id:"editor.action.transformToCamelcase",label:D.kg("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:p.R.writable})}_modifyText(e,t){const i=q.wordBoundary.get();if(!i)return e;const n=e.split(i);return n.shift()+n.map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}q.wordBoundary=new K("[_\\s-]","gm");class Q extends U{constructor(){super({id:"editor.action.transformToPascalcase",label:D.kg("editor.transformToPascalcase","Transform to Pascal Case"),alias:"Transform to Pascal Case",precondition:p.R.writable})}_modifyText(e,t){const i=Q.wordBoundary.get(),n=Q.wordBoundaryToMaintain.get();if(!i||!n)return e;return e.split(n).map((e=>e.split(i))).flat().map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}Q.wordBoundary=new K("[_\\s-]","gm"),Q.wordBoundaryToMaintain=new K("(?<=\\.)","gm");class Y extends U{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every((e=>e.isSupported()))}constructor(){super({id:"editor.action.transformToKebabcase",label:D.kg("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:p.R.writable})}_modifyText(e,t){const i=Y.caseBoundary.get(),n=Y.singleLetters.get(),s=Y.underscoreBoundary.get();return i&&n&&s?e.replace(s,"$1-$3").replace(i,"$1-$2").replace(n,"$1-$2").toLocaleLowerCase():e}}Y.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu"),Y.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu"),Y.underscoreBoundary=new K("(\\S)(_)(\\S)","gm"),(0,o.Fl)(class extends T{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:D.kg("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:p.R.writable,kbOpts:{kbExpr:p.R.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:E.D8.MenubarSelectionMenu,group:"2_line",title:D.kg({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),(0,o.Fl)(class extends T{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:D.kg("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:p.R.writable,kbOpts:{kbExpr:p.R.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:E.D8.MenubarSelectionMenu,group:"2_line",title:D.kg({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),(0,o.Fl)(I),(0,o.Fl)(class extends M{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:D.kg("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:p.R.writable,kbOpts:{kbExpr:p.R.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:E.D8.MenubarSelectionMenu,group:"2_line",title:D.kg({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),(0,o.Fl)(class extends M{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:D.kg("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:p.R.writable,kbOpts:{kbExpr:p.R.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:E.D8.MenubarSelectionMenu,group:"2_line",title:D.kg({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),(0,o.Fl)(class extends A{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:D.kg("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:p.R.writable})}}),(0,o.Fl)(class extends A{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:D.kg("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:p.R.writable})}}),(0,o.Fl)(R),(0,o.Fl)(O),(0,o.Fl)(P),(0,o.Fl)(F),(0,o.Fl)(B),(0,o.Fl)(W),(0,o.Fl)(V),(0,o.Fl)(class extends H{constructor(){super({id:"deleteAllLeft",label:D.kg("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:p.R.writable,kbOpts:{kbExpr:p.R.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];let s=0;return t.forEach((t=>{let o;if(1===t.endColumn&&s>0){const e=t.startLineNumber-s;o=new g.L(e,t.startColumn,e,t.startColumn)}else o=new g.L(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);s+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?i=o:n.push(o)})),i&&n.unshift(i),n}_getRangesToDelete(e){const t=e.getSelections();if(null===t)return[];let i=t;const n=e.getModel();return null===n?[]:(i.sort(d.Q.compareRangesUsingStarts),i=i.map((e=>{if(e.isEmpty()){if(1===e.startColumn){const t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:n.getLineLength(t)+1;return new d.Q(t,i,e.startLineNumber,1)}return new d.Q(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new d.Q(e.startLineNumber,1,e.endLineNumber,e.endColumn)})),i)}}),(0,o.Fl)(class extends H{constructor(){super({id:"deleteAllRight",label:D.kg("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:p.R.writable,kbOpts:{kbExpr:p.R.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];for(let s=0,o=t.length,r=0;s<o;s++){const o=t[s],a=new g.L(o.startLineNumber-r,o.startColumn,o.startLineNumber-r,o.startColumn);o.intersectRanges(e)?i=a:n.push(a)}return i&&n.unshift(i),n}_getRangesToDelete(e){const t=e.getModel();if(null===t)return[];const i=e.getSelections();if(null===i)return[];const n=i.map((e=>{if(e.isEmpty()){const i=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===i?new d.Q(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new d.Q(e.startLineNumber,e.startColumn,e.startLineNumber,i)}return e}));return n.sort(d.Q.compareRangesUsingStarts),n}}),(0,o.Fl)(z),(0,o.Fl)(j),(0,o.Fl)(class extends U{constructor(){super({id:"editor.action.transformToUppercase",label:D.kg("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:p.R.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}),(0,o.Fl)(class extends U{constructor(){super({id:"editor.action.transformToLowercase",label:D.kg("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:p.R.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}),$.caseBoundary.isSupported()&&$.singleLetters.isSupported()&&(0,o.Fl)($),q.wordBoundary.isSupported()&&(0,o.Fl)(q),Q.wordBoundary.isSupported()&&(0,o.Fl)(Q),G.titleBoundary.isSupported()&&(0,o.Fl)(G),Y.isSupported()&&(0,o.Fl)(Y)},85117:(e,t,i)=>{"use strict";var n,s=i(25890),o=i(90766),r=i(18447),a=i(47661),l=i(64383),d=i(41234),h=i(5662),c=i(91508),u=i(79400),g=i(31450),p=i(80301),m=i(83069),f=i(36677),_=i(60002),v=i(38361),b=i(17469),C=i(31629),y=i(32848),w=i(56942),S=i(85845),k=i(32500),x=i(78381),L=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};const E=new y.N1("LinkedEditingInputVisible",!1);let N=n=class extends h.jG{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,n,s){super(),this.languageConfigurationService=n,this._syncRangesToken=0,this._localToDispose=this._register(new h.Cm),this._editor=e,this._providers=i.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=E.bindTo(t),this._debounceInformation=s.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new h.Cm),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequestCts=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(70)||e.hasChanged(93))&&this.reinitialize(!1)}))),this._register(this._providers.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}reinitialize(e){const t=this._editor.getModel(),i=null!==t&&(this._editor.getOption(70)||this._editor.getOption(93))&&this._providers.has(t);if(i===this._enabled&&!e)return;if(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),!i||null===t)return;this._localToDispose.add(d.Jh.runAndSubscribe(t.onDidChangeLanguageConfiguration,(()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()})));const n=new o.ve(this._debounceInformation.get(t)),s=()=>{var e;this._rangeUpdateTriggerPromise=n.trigger((()=>this.updateRanges()),null!==(e=this._debounceDuration)&&void 0!==e?e:this._debounceInformation.get(t))},r=new o.ve(0),a=e=>{this._rangeSyncTriggerPromise=r.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{s()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const t=this._currentDecorations.getRange(0);if(t&&e.changes.every((e=>t.intersectRanges(e.range))))return void a(this._syncRangesToken)}s()}))),this._localToDispose.add({dispose:()=>{n.dispose(),r.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||0===this._currentDecorations.length)return;const t=this._editor.getModel(),i=this._currentDecorations.getRange(0);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();const n=t.getValueInRange(i);if(this._currentWordPattern){const e=n.match(this._currentWordPattern);if((e?e[0].length:0)!==n.length)return this.clearRanges()}const s=[];for(let o=1,r=this._currentDecorations.length;o<r;o++){const e=this._currentDecorations.getRange(o);if(e)if(e.startLineNumber!==e.endLineNumber)s.push({range:e,text:n});else{let i=t.getValueInRange(e),o=n,r=e.startColumn,a=e.endColumn;const l=c.Qp(i,o);r+=l,i=i.substr(l),o=o.substr(l);const d=c.Vi(i,o);a-=d,i=i.substr(0,i.length-d),o=o.substr(0,o.length-d),r===a&&0===o.length||s.push({range:new f.Q(e.startLineNumber,r,e.endLineNumber,a),text:o})}}if(0!==s.length)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;const e=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",s),this._editor._getViewModel().setPrevEditOperationType(e)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations.clear(),this._currentRequestCts&&(this._currentRequestCts.cancel(),this._currentRequestCts=null,this._currentRequestPosition=null)}async updateRanges(e=!1){if(!this._editor.hasModel())return void this.clearRanges();const t=this._editor.getPosition();if(!this._enabled&&!e||this._editor.getSelections().length>1)return void this.clearRanges();const i=this._editor.getModel(),s=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===s){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const e=this._currentDecorations.getRange(0);if(e&&e.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=s;const o=this._currentRequestCts=new r.Q;try{const e=new x.W(!1),r=await M(this._providers,i,t,o.token);if(this._debounceInformation.update(i,e.elapsed()),o!==this._currentRequestCts)return;if(this._currentRequestCts=null,s!==i.getVersionId())return;let a=[];(null===r||void 0===r?void 0:r.ranges)&&(a=r.ranges),this._currentWordPattern=(null===r||void 0===r?void 0:r.wordPattern)||this._languageWordPattern;let l=!1;for(let i=0,n=a.length;i<n;i++)if(f.Q.containsPosition(a[i],t)){if(l=!0,0!==i){const e=a[i];a.splice(i,1),a.unshift(e)}break}if(!l)return void this.clearRanges();const d=a.map((e=>({range:e,options:n.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations.set(d),this._syncRangesToken++}catch(a){(0,l.MB)(a)||(0,l.dz)(a),this._currentRequestCts!==o&&this._currentRequestCts||this.clearRanges()}}};N.ID="editor.contrib.linkedEditing",N.DECORATION=v.kI.register({description:"linked-editing",stickiness:0,className:"linked-editing-decoration"}),N=n=L([D(1,y.fN),D(2,w.u),D(3,b.JZ),D(4,k.U)],N);class T extends g.ks{constructor(){super({id:"editor.action.linkedEditing",label:C.kg("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:y.M$.and(_.R.writable,_.R.hasRenameProvider),kbOpts:{kbExpr:_.R.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const i=e.get(p.T),[n,s]=Array.isArray(t)&&t||[void 0,void 0];return u.r.isUri(n)&&m.y.isIPosition(s)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(s),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),l.dz):super.runCommand(e,t)}run(e,t){const i=N.get(t);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}}const I=g.DX.bindToContribution(N.get);function M(e,t,i,n){const r=e.ordered(t);return(0,o.$1)(r.map((e=>async()=>{try{return await e.provideLinkedEditingRanges(t,i,n)}catch(s){return void(0,l.M_)(s)}})),(e=>!!e&&s.EI(null===e||void 0===e?void 0:e.ranges)))}(0,g.E_)(new I({id:"cancelLinkedEditingInput",precondition:E,handler:e=>e.clearRanges(),kbOpts:{kbExpr:_.R.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));(0,S.x1A)("editor.linkedEditingBackground",{dark:a.Q1.fromHex("#f00").transparent(.3),light:a.Q1.fromHex("#f00").transparent(.3),hcDark:a.Q1.fromHex("#f00").transparent(.3),hcLight:a.Q1.white},C.kg("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,g.ke)("_executeLinkedEditingProvider",((e,t,i)=>{const{linkedEditingRangeProvider:n}=e.get(w.u);return M(n,t,i,r.X.None)})),(0,g.HW)(N.ID,N,1),(0,g.Fl)(T)},14614:(e,t,i)=>{"use strict";var n=i(90766),s=i(18447),o=i(64383),r=i(16980),a=i(5662),l=i(36456),d=i(98067),h=i(89403),c=i(78381),u=i(79400),g=i(31450),p=i(38361),m=i(32500),f=i(56942),_=i(37927),v=i(25890),b=i(631),C=i(36677),y=i(23750),w=i(50091);class S{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}async resolve(e){return this._link.url?this._link.url:"function"===typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then((t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing"))))):Promise.reject(new Error("missing"))}}class k{constructor(e){this._disposables=new a.Cm;let t=[];for(const[i,n]of e){const e=i.links.map((e=>new S(e,n)));t=k._union(t,e),(0,a.Xm)(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){const i=[];let n,s,o,r;for(n=0,o=0,s=e.length,r=t.length;n<s&&o<r;){const s=e[n],r=t[o];if(C.Q.areIntersectingOrTouching(s.range,r.range)){n++;continue}C.Q.compareRangesUsingStarts(s.range,r.range)<0?(i.push(s),n++):(i.push(r),o++)}for(;n<s;n++)i.push(e[n]);for(;o<r;o++)i.push(t[o]);return i}}function x(e,t,i){const n=[],s=e.ordered(t).reverse().map(((e,s)=>Promise.resolve(e.provideLinks(t,i)).then((t=>{t&&(n[s]=[t,e])}),o.M_)));return Promise.all(s).then((()=>{const e=new k((0,v.Yc)(n));return i.isCancellationRequested?(e.dispose(),new k([])):e}))}w.w.registerCommand("_executeLinkProvider",(async(e,...t)=>{let[i,n]=t;(0,b.j)(i instanceof u.r),"number"!==typeof n&&(n=0);const{linkProvider:o}=e.get(f.u),r=e.get(y.S).getModel(i);if(!r)return[];const a=await x(o,r,s.X.None);if(!a)return[];for(let d=0;d<Math.min(n,a.links.length);d++)await a.links[d].resolve(s.X.None);const l=a.links.slice(0);return a.dispose(),l}));var L,D=i(31629),E=i(58591),N=i(49099),T=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},I=function(e,t){return function(i,n){t(i,n,e)}};let M=L=class extends a.jG{static get(e){return e.getContribution(L.ID)}constructor(e,t,i,s,o){super(),this.editor=e,this.openerService=t,this.notificationService=i,this.languageFeaturesService=s,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=o.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new n.uC((()=>this.computeLinksNow()),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const r=this._register(new _.gi(e));this._register(r.onMouseMoveOrRelevantKeyDown((([e,t])=>{this._onEditorMouseMove(e,t)}))),this._register(r.onExecute((e=>{this.onEditorMouseUp(e)}))),this._register(r.onCancel((e=>{this.cleanUpActiveLinkDecoration()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(71)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))}))),this._register(e.onDidChangeModelContent((e=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))}))),this._register(e.onDidChangeModel((e=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)}))),this._register(e.onDidChangeModelLanguage((e=>{this.stop(),this.computeLinks.schedule(0)}))),this._register(this.providers.onDidChange((e=>{this.stop(),this.computeLinks.schedule(0)}))),this.computeLinks.schedule(0)}async computeLinksNow(){if(!this.editor.hasModel()||!this.editor.getOption(71))return;const e=this.editor.getModel();if(!e.isTooLargeForSyncing()&&this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=(0,n.SS)((t=>x(this.providers,e,t)));try{const t=new c.W(!1);if(this.activeLinksList=await this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(t){(0,o.dz)(t)}finally{this.computePromise=null}}}updateDecorations(e){const t="altKey"===this.editor.getOption(78),i=[],n=Object.keys(this.currentOccurrences);for(const o of n){const e=this.currentOccurrences[o];i.push(e.decorationId)}const s=[];if(e)for(const o of e)s.push(O.decoration(o,t));this.editor.changeDecorations((t=>{const n=t.deltaDecorations(i,s);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let i=0,s=n.length;i<s;i++){const t=new O(e[i],n[i]);this.currentOccurrences[t.decorationId]=t}}))}_onEditorMouseMove(e,t){const i="altKey"===this.editor.getOption(78);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();const t=this.getLinkOccurrence(e.target.position);t&&this.editor.changeDecorations((e=>{t.activate(e,i),this.activeLinkDecorationId=t.decorationId}))}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(78);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((i=>{t.deactivate(i,e)})),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,i=!1){if(!this.openerService)return;const{link:n}=e;n.resolve(s.X.None).then((e=>{if("string"===typeof e&&this.editor.hasModel()){const t=this.editor.getModel().uri;if(t.scheme===l.ny.file&&e.startsWith(`${l.ny.file}:`)){const i=u.r.parse(e);if(i.scheme===l.ny.file){const n=h.su(i);let s=null;n.startsWith("/./")||n.startsWith("\\.\\")?s=`.${n.substr(1)}`:(n.startsWith("//./")||n.startsWith("\\\\.\\"))&&(s=`.${n.substr(2)}`),s&&(e=h.uJ(t,s))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})}),(e=>{const t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(D.kg("invalid.url","Failed to open this link because it is not well-formed: {0}",n.url.toString())):"missing"===t?this.notificationService.warn(D.kg("missing.url","Failed to open this link because its target is missing.")):(0,o.dz)(e)}))}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const i of t){const e=this.currentOccurrences[i.id];if(e)return e}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){var e;this.computeLinks.cancel(),this.activeLinksList&&(null===(e=this.activeLinksList)||void 0===e||e.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};M.ID="editor.linkDetector",M=L=T([I(1,N.C),I(2,E.Ot),I(3,f.u),I(4,m.U)],M);const A=p.kI.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),R=p.kI.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"});class O{static decoration(e,t){return{range:e.range,options:O._getOptions(e,t,!1)}}static _getOptions(e,t,i){const n={...i?R:A};return n.hoverMessage=function(e,t){const i=e.url&&/^command:/i.test(e.url.toString()),n=e.tooltip?e.tooltip:i?D.kg("links.navigate.executeCmd","Execute command"):D.kg("links.navigate.follow","Follow link"),s=t?d.zx?D.kg("links.navigate.kb.meta.mac","cmd + click"):D.kg("links.navigate.kb.meta","ctrl + click"):d.zx?D.kg("links.navigate.kb.alt.mac","option + click"):D.kg("links.navigate.kb.alt","alt + click");if(e.url){let t="";if(/^command:/i.test(e.url.toString())){const i=e.url.toString().match(/^command:([^?#]+)/);if(i){const e=i[1];t=D.kg("tooltip.explanation","Execute command {0}",e)}}return new r.Bc("",!0).appendLink(e.url.toString(!0).replace(/ /g,"%20"),n,t).appendMarkdown(` (${s})`)}return(new r.Bc).appendText(`${n} (${s})`)}(e,t),n}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,O._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,O._getOptions(this.link,t,!1))}}class P extends g.ks{constructor(){super({id:"editor.action.openLink",label:D.kg("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){const i=M.get(t);if(!i)return;if(!t.hasModel())return;const n=t.getSelections();for(const s of n){const e=i.getLinkOccurrence(s.getEndPosition());e&&i.openLinkOccurrence(e,!1)}}}(0,g.HW)(M.ID,M,1),(0,g.Fl)(P)},95200:(e,t,i)=>{"use strict";var n=i(5662),s=i(31450);class o extends n.jG{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown((e=>{const t=this._editor.getOption(117);t>=0&&6===e.target.type&&e.target.position.column>=t&&this._editor.updateOptions({stopRenderingLineAfter:-1})})))}}o.ID="editor.contrib.longLinesHelper",(0,s.HW)(o.ID,o,2)},99645:(e,t,i)=>{"use strict";i.d(t,{k:()=>v});var n,s=i(68214),o=i(11007),r=i(41234),a=i(16980),l=i(5662),d=i(31450),h=i(36677),c=i(20492),u=i(31629),g=i(32848),p=i(49099),m=i(8597),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};let v=n=class{static get(e){return e.getContribution(n.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new l.HE,this._messageListeners=new l.Cm,this._mouseOverMessage=!1,this._editor=e,this._visible=n.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;null===(e=this._message)||void 0===e||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;(0,o.xE)((0,a.VS)(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=(0,a.VS)(e)?(0,s.Gc)(e,{actionHandler:{callback:t=>{this.closeMessage(),(0,c.i)(this._openerService,t,(0,a.VS)(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new C(this._editor,t,"string"===typeof e?e:this._message.element),this._messageListeners.add(r.Jh.debounce(this._editor.onDidBlurEditorText,((e,t)=>t),0)((()=>{this._mouseOverMessage||this._messageWidget.value&&m.QX(m.bq(),this._messageWidget.value.getDomNode())||this.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidDispose((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidChangeModel((()=>this.closeMessage()))),this._messageListeners.add(m.ko(this._messageWidget.value.getDomNode(),m.Bx.MOUSE_ENTER,(()=>this._mouseOverMessage=!0),!0)),this._messageListeners.add(m.ko(this._messageWidget.value.getDomNode(),m.Bx.MOUSE_LEAVE,(()=>this._mouseOverMessage=!1),!0)),this._messageListeners.add(this._editor.onMouseMove((e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new h.Q(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(C.fadeOut(this._messageWidget.value))}};v.ID="editor.contrib.messageController",v.MESSAGE_VISIBLE=new g.N1("messageVisible",!1,u.kg("messageVisible","Whether the editor is currently showing an inline message")),v=n=f([_(1,g.fN),_(2,p.C)],v);const b=d.DX.bindToContribution(v.get);(0,d.E_)(new b({id:"leaveEditorMessage",precondition:v.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class C{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const o=document.createElement("div");"string"===typeof n?(o.classList.add("message"),o.textContent=n):(n.classList.add("message"),o.appendChild(n)),this._domNode.appendChild(o);const r=document.createElement("div");r.classList.add("anchor","below"),this._domNode.appendChild(r),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}(0,d.HW)(v.ID,v,4)},50352:(e,t,i)=>{"use strict";var n,s=i(11007),o=i(90766),r=i(24939),a=i(5662),l=i(31450),d=i(50672),h=i(36677),c=i(75326),u=i(60002),g=i(34175),p=i(31629),m=i(27195),f=i(32848),_=i(56942),v=i(13864),b=i(63591),C=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},y=function(e,t){return function(i,n){t(i,n,e)}};function w(e,t){const i=t.filter((t=>!e.find((e=>e.equals(t)))));if(i.length>=1){const e=i.map((e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`)).join(", "),t=1===i.length?p.kg("cursorAdded","Cursor added: {0}",e):p.kg("cursorsAdded","Cursors added: {0}",e);(0,s.h5)(t)}}class S extends l.ks{constructor(){super({id:"editor.action.insertCursorAbove",label:p.kg("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const o=s.getCursorStates();s.setCursorStates(i.source,3,d.c.addCursorUp(s,o,n)),s.revealTopMostCursor(i.source),w(o,s.getCursorStates())}}class k extends l.ks{constructor(){super({id:"editor.action.insertCursorBelow",label:p.kg("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const o=s.getCursorStates();s.setCursorStates(i.source,3,d.c.addCursorDown(s,o,n)),s.revealBottomMostCursor(i.source),w(o,s.getCursorStates())}}class x extends l.ks{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:p.kg("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let n=e.startLineNumber;n<e.endLineNumber;n++){const e=t.getLineMaxColumn(n);i.push(new c.L(n,e,n,e))}e.endColumn>1&&i.push(new c.L(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=t.getSelections(),s=t._getViewModel(),o=s.getCursorStates(),r=[];n.forEach((e=>this.getCursorsForSelection(e,i,r))),r.length>0&&t.setSelections(r),w(o,s.getCursorStates())}}class L extends l.ks{constructor(){super({id:"editor.action.addCursorsToBottom",label:p.kg("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=t.getModel().getLineCount(),s=[];for(let a=i[0].startLineNumber;a<=n;a++)s.push(new c.L(a,i[0].startColumn,a,i[0].endColumn));const o=t._getViewModel(),r=o.getCursorStates();s.length>0&&t.setSelections(s),w(r,o.getCursorStates())}}class D extends l.ks{constructor(){super({id:"editor.action.addCursorsToTop",label:p.kg("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=[];for(let r=i[0].startLineNumber;r>=1;r--)n.push(new c.L(r,i[0].startColumn,r,i[0].endColumn));const s=t._getViewModel(),o=s.getCursorStates();n.length>0&&t.setSelections(n),w(o,s.getCursorStates())}}class E{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class N{static create(e,t){if(!e.hasModel())return null;const i=t.getState();if(!e.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new N(e,t,!1,i.searchString,i.wholeWord,i.matchCase,null);let n,s,o=!1;const r=e.getSelections();1===r.length&&r[0].isEmpty()?(o=!0,n=!0,s=!0):(n=i.wholeWord,s=i.matchCase);const a=e.getSelection();let l,d=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;l=t.word,d=new c.L(a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else l=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new N(e,t,o,l,n,s,d)}constructor(e,t,i,n,s,o,r){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=n,this.wholeWord=s,this.matchCase=o,this.currentMatch=r}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new E(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new E(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1);return i?new c.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new E(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new E(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1);return i?new c.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1,1073741824)}}class T extends a.jG{static get(e){return e.getContribution(T.ID)}constructor(e){super(),this._sessionDispose=this._register(new a.Cm),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=N.create(this._editor,e);if(!t)return;this._session=t;const i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection((e=>{this._ignoreSelectionChange||this._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((()=>{this._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((e=>{(e.matchCase||e.wholeWord)&&this._endSession()})))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new c.L(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const i=e.getState().matchCase;if(!R(this._editor.getModel(),t,i)){const e=this._editor.getModel(),i=[];for(let n=0,s=t.length;n<s;n++)i[n]=this._expandEmptyToWord(e,t[n]);return void this._editor.setSelections(i)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null;const i=e.getState();if(i.isRevealed&&i.searchString.length>0&&i.isRegex){const e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(131):null,!1,1073741824):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(131):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){const e=this._editor.getSelection();for(let i=0,n=t.length;i<n;i++){const n=t[i];if(n.range.intersectRanges(e)){t[i]=t[0],t[0]=n;break}}this._setSelections(t.map((e=>new c.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn))))}}}T.ID="editor.contrib.multiCursorController";class I extends l.ks{run(e,t){const i=T.get(t);if(!i)return;const n=t._getViewModel();if(n){const s=n.getCursorStates(),o=g.z0.get(t);if(o)this._run(i,o);else{const n=e.get(b._Y).createInstance(g.z0,t);this._run(i,n),n.dispose()}w(s,n.getCursorStates())}}}class M{constructor(e,t,i,n,s){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=n,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,s&&this._model===s._model&&this._searchText===s._searchText&&this._matchCase===s._matchCase&&this._wordSeparators===s._wordSeparators&&this._modelVersionId===s._modelVersionId&&(this._cachedFindMatches=s._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map((e=>e.range)),this._cachedFindMatches.sort(h.Q.compareRangesUsingStarts)),this._cachedFindMatches}}let A=n=class extends a.jG{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(108),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new o.uC((()=>this._update()),300)),this.state=null,this._register(e.onDidChangeConfiguration((t=>{this._isEnabled=e.getOption(108)}))),this._register(e.onDidChangeCursorSelection((e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())}))),this._register(e.onDidChangeModel((e=>{this._setState(null)}))),this._register(e.onDidChangeModelContent((e=>{this._isEnabled&&this.updateSoon.schedule()})));const i=g.z0.get(e);i&&this._register(i.getState().onFindReplaceStateChange((e=>{this._update()}))),this.updateSoon.schedule()}_update(){this._setState(n._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t)return null;if(!i.hasModel())return null;const n=i.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;const s=T.get(i);if(!s)return null;const o=g.z0.get(i);if(!o)return null;let r=s.getSession(o);if(!r){const e=i.getSelections();if(e.length>1){const t=o.getState().matchCase;if(!R(i.getModel(),e,t))return null}r=N.create(i,o)}if(!r)return null;if(r.currentMatch)return null;if(/^[ \t]+$/.test(r.searchText))return null;if(r.searchText.length>200)return null;const a=o.getState(),l=a.matchCase;if(a.isRevealed){let e=a.searchString;l||(e=e.toLowerCase());let t=r.searchText;if(l||(t=t.toLowerCase()),e===t&&r.matchCase===a.matchCase&&r.wholeWord===a.wholeWord&&!a.isRegex)return null}return new M(i.getModel(),r.searchText,r.matchCase,r.wholeWord?i.getOption(131):null,e)}_setState(e){if(this.state=e,!this.state)return void this._decorations.clear();if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const i=this.state.findMatches(),n=this.editor.getSelections();n.sort(h.Q.compareRangesUsingStarts);const s=[];for(let l=0,d=0,c=i.length,u=n.length;l<c;){const e=i[l];if(d>=u)s.push(e),l++;else{const t=h.Q.compareRangesUsingStarts(e,n[d]);t<0?(!n[d].isEmpty()&&h.Q.areIntersecting(e,n[d])||s.push(e),l++):(t>0||l++,d++)}}const o="off"!==this.editor.getOption(81),r=this._languageFeaturesService.documentHighlightProvider.has(t)&&o,a=s.map((e=>({range:e,options:(0,v.v)(r)})));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function R(e,t,i){const n=O(e,t[0],!i);for(let s=1,o=t.length;s<o;s++){const o=t[s];if(o.isEmpty())return!1;if(n!==O(e,o,!i))return!1}return!0}function O(e,t,i){const n=e.getValueInRange(t);return i?n.toLowerCase():n}A.ID="editor.contrib.selectionHighlighter",A=n=C([y(1,_.u)],A);class P extends l.ks{constructor(){super({id:"editor.action.focusNextCursor",label:p.kg("mutlicursor.focusNextCursor","Focus Next Cursor"),metadata:{description:p.kg("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const s=Array.from(n.getCursorStates()),o=s.shift();o&&(s.push(o),n.setCursorStates(i.source,3,s),n.revealPrimaryCursor(i.source,!0),w(s,n.getCursorStates()))}}class F extends l.ks{constructor(){super({id:"editor.action.focusPreviousCursor",label:p.kg("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),metadata:{description:p.kg("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const s=Array.from(n.getCursorStates()),o=s.pop();o&&(s.unshift(o),n.setCursorStates(i.source,3,s),n.revealPrimaryCursor(i.source,!0),w(s,n.getCursorStates()))}}(0,l.HW)(T.ID,T,4),(0,l.HW)(A.ID,A,1),(0,l.Fl)(S),(0,l.Fl)(k),(0,l.Fl)(x),(0,l.Fl)(class extends I{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:p.kg("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:2082,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}),(0,l.Fl)(class extends I{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:p.kg("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}),(0,l.Fl)(class extends I{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:p.kg("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:(0,r.m5)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}),(0,l.Fl)(class extends I{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:p.kg("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}),(0,l.Fl)(class extends I{constructor(){super({id:"editor.action.selectHighlights",label:p.kg("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:3114,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}),(0,l.Fl)(class extends I{constructor(){super({id:"editor.action.changeAll",label:p.kg("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:f.M$.and(u.R.writable,u.R.editorTextFocus),kbOpts:{kbExpr:u.R.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}),(0,l.Fl)(L),(0,l.Fl)(D),(0,l.Fl)(P),(0,l.Fl)(F)},4519:(e,t,i)=>{"use strict";var n=i(91090),s=i(5662),o=i(31450),r=i(60002),a=i(62083),l=i(56942),d=i(90766),h=i(64383),c=i(41234),u=i(60534),g=i(18447),p=i(631),m=i(79400),f=i(83069),_=i(18938),v=i(50091),b=i(32848);const C={Visible:new b.N1("parameterHintsVisible",!1),MultipleSignatures:new b.N1("parameterHintsMultipleSignatures",!1)};async function y(e,t,i,n,s){const o=e.ordered(t);for(const a of o)try{const e=await a.provideSignatureHelp(t,i,s,n);if(e)return e}catch(r){(0,h.M_)(r)}}var w;v.w.registerCommand("_executeSignatureHelpProvider",(async(e,...t)=>{const[i,n,s]=t;(0,p.j)(m.r.isUri(i)),(0,p.j)(f.y.isIPosition(n)),(0,p.j)("string"===typeof s||!s);const o=e.get(l.u),r=await e.get(_.b).createModelReference(i);try{const e=await y(o.signatureHelpProvider,r.object.textEditorModel,f.y.lift(n),{triggerKind:a.WA.Invoke,isRetrigger:!1,triggerCharacter:s},g.X.None);if(!e)return;return setTimeout((()=>e.dispose()),0),e.value}finally{r.dispose()}})),function(e){e.Default={type:0};e.Pending=class{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}};e.Active=class{constructor(e){this.hints=e,this.type=1}}}(w||(w={}));class S extends s.jG{constructor(e,t,i=S.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new c.vl),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=w.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new s.HE),this.triggerChars=new u.y,this.retriggerChars=new u.y,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new d.ve(i),this._register(this.editor.onDidBlurEditorWidget((()=>this.cancel()))),this._register(this.editor.onDidChangeConfiguration((()=>this.onEditorConfigurationChange()))),this._register(this.editor.onDidChangeModel((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeModelLanguage((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeCursorSelection((e=>this.onCursorChange(e)))),this._register(this.editor.onDidChangeModelContent((e=>this.onModelContentChange()))),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType((e=>this.onDidType(e)))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=w.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((()=>this.doTrigger(n)),t).catch(h.dz)}next(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e===e-1,n=this.editor.getOption(86).cycle;!(e<2||i)||n?this.updateActiveSignature(i&&n?0:t+1):this.cancel()}previous(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,n=this.editor.getOption(86).cycle;!(e<2||i)||n?this.updateActiveSignature(i&&n?e-1:t-1):this.cancel()}updateActiveSignature(e){1===this.state.type&&(this.state=new w.Active({...this.state.hints,activeSignature:e}),this._onChangedHints.fire(this.state.hints))}async doTrigger(e){const t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const n=this._pendingTriggers.reduce(k);this._pendingTriggers=[];const s={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const o=this.editor.getModel(),r=this.editor.getPosition();this.state=new w.Pending((0,d.SS)((e=>y(this.providers,o,r,s,e))),i);try{const t=await this.state.request;return e!==this.triggerId?(null===t||void 0===t||t.dispose(),!1):t&&t.value.signatures&&0!==t.value.signatures.length?(this.state=new w.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(null===t||void 0===t||t.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(a){return e===this.triggerId&&(this.state=w.Default),(0,h.dz)(a),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const e=this.editor.getModel();if(e)for(const t of this.providers.ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])if(e.length){const t=e.charCodeAt(0);this.triggerChars.add(t),this.retriggerChars.add(t)}for(const e of t.signatureHelpRetriggerCharacters||[])e.length&&this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:a.WA.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:a.WA.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:a.WA.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function k(e,t){switch(t.triggerKind){case a.WA.Invoke:return t;case a.WA.ContentChange:return e;case a.WA.TriggerCharacter:default:return t}}S.DEFAULT_DELAY=120;var x,L=i(31629),D=i(63591),E=i(8597),N=i(11007),T=i(31295),I=i(10350),M=i(91508),A=i(10154),R=i(20492),O=i(49099),P=i(85845),F=i(61394),B=i(25689),W=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},V=function(e,t){return function(i,n){t(i,n,e)}};const H=E.$,z=(0,F.pU)("parameter-hints-next",I.W.chevronDown,L.kg("parameterHintsNextIcon","Icon for show next parameter hint.")),j=(0,F.pU)("parameter-hints-previous",I.W.chevronUp,L.kg("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let U=x=class extends s.jG{constructor(e,t,i,n,o){super(),this.editor=e,this.model=t,this.renderDisposeables=this._register(new s.Cm),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new R.T({editor:e},o,n)),this.keyVisible=C.Visible.bindTo(i),this.keyMultipleSignatures=C.MultipleSignatures.bindTo(i)}createParameterHintDOMNodes(){const e=H(".editor-widget.parameter-hints-widget"),t=E.BC(e,H(".phwrapper"));t.tabIndex=-1;const i=E.BC(t,H(".controls")),n=E.BC(i,H(".button"+B.L.asCSSSelector(j))),s=E.BC(i,H(".overloads")),o=E.BC(i,H(".button"+B.L.asCSSSelector(z)));this._register(E.ko(n,"click",(e=>{E.fs.stop(e),this.previous()}))),this._register(E.ko(o,"click",(e=>{E.fs.stop(e),this.next()})));const r=H(".body"),a=new T.MU(r,{alwaysConsumeMouseWheel:!0});this._register(a),t.appendChild(a.getDomNode());const l=E.BC(r,H(".signature")),d=E.BC(r,H(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:l,overloads:s,docs:d,scrollbar:a},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((e=>{this.visible&&this.editor.layoutContentWidget(this)})));const h=()=>{if(!this.domNodes)return;const e=this.editor.getOption(50);this.domNodes.element.style.fontSize=`${e.fontSize}px`,this.domNodes.element.style.lineHeight=""+e.lineHeight/e.fontSize};h(),this._register(c.Jh.chain(this.editor.onDidChangeConfiguration.bind(this.editor),(e=>e.filter((e=>e.hasChanged(50)))))(h)),this._register(this.editor.onDidLayoutChange((e=>this.updateMaxHeight()))),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((()=>{var e;null===(e=this.domNodes)||void 0===e||e.element.classList.add("visible")}),100),this.editor.layoutContentWidget(this))}hide(){var e;this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,null===(e=this.domNodes)||void 0===e||e.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;const i=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",i),this.keyMultipleSignatures.set(i),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const n=e.signatures[e.activeSignature];if(!n)return;const s=E.BC(this.domNodes.signature,H(".code")),o=this.editor.getOption(50);s.style.fontSize=`${o.fontSize}px`,s.style.fontFamily=o.fontFamily;const r=n.parameters.length>0,a=null!==(t=n.activeParameter)&&void 0!==t?t:e.activeParameter;if(r)this.renderParameters(s,n,a);else{E.BC(s,H("span")).textContent=n.label}const l=n.parameters[a];if(null===l||void 0===l?void 0:l.documentation){const e=H("span.documentation");if("string"===typeof l.documentation)e.textContent=l.documentation;else{const t=this.renderMarkdownDocs(l.documentation);e.appendChild(t.element)}E.BC(this.domNodes.docs,H("p",{},e))}if(void 0===n.documentation);else if("string"===typeof n.documentation)E.BC(this.domNodes.docs,H("p",{},n.documentation));else{const e=this.renderMarkdownDocs(n.documentation);E.BC(this.domNodes.docs,e.element)}const d=this.hasDocs(n,l);if(this.domNodes.signature.classList.toggle("has-docs",d),this.domNodes.docs.classList.toggle("empty",!d),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,l){let e="";const t=n.parameters[a];e=Array.isArray(t.label)?n.label.substring(t.label[0],t.label[1]):t.label,t.documentation&&(e+="string"===typeof t.documentation?`, ${t.documentation}`:`, ${t.documentation.value}`),n.documentation&&(e+="string"===typeof n.documentation?`, ${n.documentation}`:`, ${n.documentation.value}`),this.announcedLabel!==e&&(N.xE(L.kg("hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var e;null===(e=this.domNodes)||void 0===e||e.scrollbar.scanDomNode()}}));return t.element.classList.add("markdown-docs"),t}hasDocs(e,t){return!!(t&&"string"===typeof t.documentation&&(0,p.eU)(t.documentation).length>0)||(!!(t&&"object"===typeof t.documentation&&(0,p.eU)(t.documentation).value.length>0)||(!!(e.documentation&&"string"===typeof e.documentation&&(0,p.eU)(e.documentation).length>0)||!!(e.documentation&&"object"===typeof e.documentation&&(0,p.eU)(e.documentation.value).length>0)))}renderParameters(e,t,i){const[n,s]=this.getParameterLabelOffsets(t,i),o=document.createElement("span");o.textContent=t.label.substring(0,n);const r=document.createElement("span");r.textContent=t.label.substring(n,s),r.className="parameter active";const a=document.createElement("span");a.textContent=t.label.substring(s),E.BC(e,o,r,a)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const t=new RegExp(`(\\W|^)${(0,M.bm)(i.label)}(?=\\W|$)`,"g");t.test(e.label);const n=t.lastIndex-i.label.length;return n>=0?[n,t.lastIndex]:[0,0]}return[0,0]}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return x.ID}updateMaxHeight(){if(!this.domNodes)return;const e=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=e;const t=this.domNodes.element.getElementsByClassName("phwrapper");t.length&&(t[0].style.maxHeight=e)}};U.ID="editor.widget.parameterHintsWidget",U=x=W([V(2,b.fN),V(3,O.C),V(4,A.L)],U),(0,P.x1A)("editorHoverWidget.highlightForeground",{dark:P.QI5,light:P.QI5,hcDark:P.QI5,hcLight:P.QI5},L.kg("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));var K,G=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},$=function(e,t){return function(i,n){t(i,n,e)}};let q=K=class extends s.jG{static get(e){return e.getContribution(K.ID)}constructor(e,t,i){super(),this.editor=e,this.model=this._register(new S(e,i.signatureHelpProvider)),this._register(this.model.onChangedHints((e=>{var t;e?(this.widget.value.show(),this.widget.value.render(e)):null===(t=this.widget.rawValue)||void 0===t||t.hide()}))),this.widget=new n.d((()=>this._register(t.createInstance(U,this.editor,this.model))))}cancel(){this.model.cancel()}previous(){var e;null===(e=this.widget.rawValue)||void 0===e||e.previous()}next(){var e;null===(e=this.widget.rawValue)||void 0===e||e.next()}trigger(e){this.model.trigger(e,0)}};q.ID="editor.controller.parameterHints",q=K=G([$(1,D._Y),$(2,l.u)],q);class Q extends o.ks{constructor(){super({id:"editor.action.triggerParameterHints",label:L.kg("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:r.R.hasSignatureHelpProvider,kbOpts:{kbExpr:r.R.editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=q.get(t);null===i||void 0===i||i.trigger({triggerKind:a.WA.Invoke})}}(0,o.HW)(q.ID,q,2),(0,o.Fl)(Q);const Y=o.DX.bindToContribution(q.get);(0,o.E_)(new Y({id:"closeParameterHints",precondition:C.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:r.R.focus,primary:9,secondary:[1033]}})),(0,o.E_)(new Y({id:"showPrevParameterHint",precondition:b.M$.and(C.Visible,C.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:r.R.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,o.E_)(new Y({id:"showNextParameterHint",precondition:b.M$.and(C.Visible,C.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:r.R.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},84226:(e,t,i)=>{"use strict";i.d(t,{zn:()=>A,x2:()=>R,j6:()=>B,RL:()=>P,zl:()=>z,n6:()=>j,z0:()=>W,_X:()=>V,e3:()=>H});var n=i(8597),s=i(11799),o=i(36921),r=i(10350),a=i(25689),l=i(47661),d=i(41234),h=i(10146),c=i(31450),u=i(80301),g=i(29163),p=i(92403),m=i(96032),f=i(5662),_=i(36677),v=i(38361);const b=new l.Q1(new l.bU(0,122,204)),C={showArrow:!0,showFrame:!0,className:"",frameColor:b,arrowColor:b,keepEditorSelection:!1};class y{constructor(e,t,i,n,s,o,r,a){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this.showInHiddenAreas=r,this.ordinal=a,this._onDomNodeTop=s,this._onComputedHeight=o}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class w{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class S{constructor(e){this._editor=e,this._ruleName=S._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),n.U2(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){n.U2(this._ruleName),n.Wt(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(e){1===e.column&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:_.Q.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}S._IdGenerator=new m.n(".arrow-decoration-");class k{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new f.Cm,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=h.Go(t),h.co(this.options,C,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)})))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null})),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new S(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}null===(t=this._resizeSash)||void 0===t||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=_.Q.isIRange(e)?_.Q.lift(e):_.Q.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:v.kI.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),null===(e=this._arrow)||void 0===e||e.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(67);let t=0;if(this.options.showArrow){t+=2*Math.round(e/3)}if(this.options.showFrame){t+=2*Math.round(e/9)}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const o=document.createElement("div");o.style.overflow="hidden";const r=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const e=Math.max(12,this.editor.getLayoutInfo().height/r*.8);t=Math.min(t,e)}let a=0,l=0;if(this._arrow&&this.options.showArrow&&(a=Math.round(r/3),this._arrow.height=a,this._arrow.show(i)),this.options.showFrame&&(l=Math.round(r/9)),this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new y(o,i.lineNumber,i.column,t,(e=>this._onViewZoneTop(e)),(e=>this._onViewZoneHeight(e)),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new w("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)})),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:l;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}const d=t*r-this._decoratingElementsHeight();this.container&&(this.container.style.top=a+"px",this.container.style.height=d+"px",this.container.style.overflow="hidden"),this._doLayout(d,s),this.options.keepEditorSelection||this.editor.setSelection(e);const h=this.editor.getModel();if(h){const t=h.validateRange(new _.Q(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(t,t.startLineNumber===h.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))}))}_initSash(){if(this._resizeSash)return;let e;this._resizeSash=this._disposables.add(new p.m(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((()=>{e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(67),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}})))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var x=i(31629),L=i(43878),D=i(32848),E=i(14718),N=i(63591),T=i(85845),I=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},M=function(e,t){return function(i,n){t(i,n,e)}};const A=(0,N.u1)("IPeekViewService");var R;(0,E.v)(A,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose());this._widgets.set(e,{widget:t,listener:t.onDidClose((()=>{const i=this._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),this._widgets.delete(e))}))})}},1),function(e){e.inPeekEditor=new D.N1("inReferenceSearchEditor",!0,x.kg("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(R||(R={}));let O=class{constructor(e,t){e instanceof g.t&&R.inPeekEditor.bindTo(t)}dispose(){}};function P(e){const t=e.get(u.T).getFocusedCodeEditor();return t instanceof g.t?t.getParentEditor():t}O.ID="editor.contrib.referenceController",O=I([M(1,D.fN)],O),(0,c.HW)(O.ID,O,0);const F={headerBackgroundColor:l.Q1.white,primaryHeadingColor:l.Q1.fromHex("#333333"),secondaryHeadingColor:l.Q1.fromHex("#6c6c6cb3")};let B=class extends k{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new d.vl,this.onDidClose=this._onDidClose.event,h.co(this.options,F,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=n.$(".head"),this._bodyElement=n.$(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=n.$(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),n.b2(this._titleElement,"click",(e=>this._onTitleClick(e)))),n.BC(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=n.$("span.filename"),this._secondaryHeading=n.$("span.dirname"),this._metaHeading=n.$("span.meta"),n.BC(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const i=n.$(".peekview-actions");n.BC(this._headElement,i);const l=this._getActionBarOptions();this._actionbarWidget=new s.E(i,l),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new o.rc("peekview.close",x.kg("label.close","Close"),a.L.asClassName(r.W.close),!0,(()=>(this.dispose(),Promise.resolve()))),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:L.rN.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:n.w_(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,n.WU(this._metaHeading)):n.jD(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const i=Math.ceil(1.2*this.editor.getOption(67)),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};B=I([M(2,N._Y)],B);const W=(0,T.x1A)("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:l.Q1.black,hcLight:l.Q1.white},x.kg("peekViewTitleBackground","Background color of the peek view title area.")),V=(0,T.x1A)("peekViewTitleLabel.foreground",{dark:l.Q1.white,light:l.Q1.black,hcDark:l.Q1.white,hcLight:T.By2},x.kg("peekViewTitleForeground","Color of the peek view title.")),H=(0,T.x1A)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},x.kg("peekViewTitleInfoForeground","Color of the peek view title info.")),z=(0,T.x1A)("peekView.border",{dark:T.pOz,light:T.pOz,hcDark:T.b1q,hcLight:T.b1q},x.kg("peekViewBorder","Color of the peek view borders and arrow.")),j=(0,T.x1A)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:l.Q1.black,hcLight:l.Q1.white},x.kg("peekViewResultsBackground","Background color of the peek view result list.")),U=((0,T.x1A)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:l.Q1.white,hcLight:T.By2},x.kg("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),(0,T.x1A)("peekViewResult.fileForeground",{dark:l.Q1.white,light:"#1E1E1E",hcDark:l.Q1.white,hcLight:T.By2},x.kg("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),(0,T.x1A)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},x.kg("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),(0,T.x1A)("peekViewResult.selectionForeground",{dark:l.Q1.white,light:"#6C6C6C",hcDark:l.Q1.white,hcLight:T.By2},x.kg("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),(0,T.x1A)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:l.Q1.black,hcLight:l.Q1.white},x.kg("peekViewEditorBackground","Background color of the peek view editor.")));(0,T.x1A)("peekViewEditorGutter.background",{dark:U,light:U,hcDark:U,hcLight:U},x.kg("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),(0,T.x1A)("peekViewEditorStickyScroll.background",{dark:U,light:U,hcDark:U,hcLight:U},x.kg("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),(0,T.x1A)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},x.kg("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),(0,T.x1A)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},x.kg("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),(0,T.x1A)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:T.buw,hcLight:T.buw},x.kg("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},12437:(e,t,i)=>{"use strict";i.d(t,{o:()=>h});var n=i(6921),s=i(5662),o=i(34326),r=i(16223),a=i(87119),l=i(47612),d=i(11007);class h{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var i;const n=new s.Cm;e.canAcceptInBackground=!!(null===(i=this.options)||void 0===i?void 0:i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const o=n.add(new s.HE);return o.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange((()=>{o.value=void 0,o.value=this.doProvide(e,t)}))),n}doProvide(e,t){var i;const r=new s.Cm,a=this.activeTextEditorControl;if(a&&this.canProvideWithTextEditor(a)){const l={editor:a},d=(0,o.jA)(a);if(d){let e=null!==(i=a.saveViewState())&&void 0!==i?i:void 0;r.add(d.onDidChangeCursorPosition((()=>{var t;e=null!==(t=a.saveViewState())&&void 0!==t?t:void 0}))),l.restoreViewState=()=>{e&&a===this.activeTextEditorControl&&a.restoreViewState(e)},r.add((0,n.P)(t.onCancellationRequested)((()=>{var e;return null===(e=l.restoreViewState)||void 0===e?void 0:e.call(l)})))}r.add((0,s.s)((()=>this.clearDecorations(a)))),r.add(this.provideWithTextEditor(l,e,t))}else r.add(this.provideWithoutTextEditor(e,t));return r}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,"code.jump"),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();const i=e.getModel();i&&"getLineContent"in i&&(0,d.h5)(`${i.getLineContent(t.range.startLineNumber)}`)}getModel(e){var t;return(0,o.Np)(e)?null===(t=e.getModel())||void 0===t?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations((e=>{const i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const n=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,l.Yf)(a.vp),position:r.A5.Full}}}],[s,o]=e.deltaDecorations(i,n);this.rangeHighlightDecorationId={rangeHighlightId:s,overviewRulerDecorationId:o}}))}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations((e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])})),this.rangeHighlightDecorationId=void 0)}}},59731:(e,t,i)=>{"use strict";var n=i(16980),s=i(5662),o=i(31450),r=i(99645),a=i(31629);class l extends s.jG{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit((()=>this._onDidAttemptReadOnlyEdit())))}_onDidAttemptReadOnlyEdit(){const e=r.k.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(92);t||(t=this.editor.isSimpleWidget?new n.Bc(a.kg("editor.simple.readonly","Cannot edit in read-only input")):new n.Bc(a.kg("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}}l.ID="editor.contrib.readOnlyMessageController",(0,o.HW)(l.ID,l,2)},50071:(e,t,i)=>{"use strict";var n=i(11007),s=i(90766),o=i(18447),r=i(64383),a=i(16980),l=i(5662),d=i(631),h=i(79400),c=i(31450),u=i(80537),g=i(80301),p=i(83069),m=i(36677),f=i(60002),_=i(56942),v=i(90360),b=i(50868),C=i(99645),y=i(31629),w=i(27195),S=i(1646),k=i(32848),x=i(63591),L=i(18801),D=i(58591),E=i(73823),N=i(46359),T=i(90651),I=i(8597),M=i(20370),A=i(93090),R=i(25890),O=i(10350),P=i(41234),F=i(78381),B=i(73157),W=i(62083),V=i(98031),H=i(19070),z=i(85845),j=i(47612),U=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},K=function(e,t){return function(i,n){t(i,n,e)}};const G=new k.N1("renameInputVisible",!1,(0,y.kg)("renameInputVisible","Whether the rename input widget is visible"));new k.N1("renameInputFocused",!1,(0,y.kg)("renameInputFocused","Whether the rename input widget is focused"));let $=class{constructor(e,t,i,n,s,o){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=n,this._logService=o,this.allowEditorOverflow=!0,this._disposables=new l.Cm,this._visibleContextKey=G.bindTo(s),this._isEditingRenameCandidate=!1,this._beforeFirstInputFieldEditSW=new F.W,this._input=new Q,this._disposables.add(this._input),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._input.domNode),this._renameCandidateListView=this._disposables.add(new q(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:e=>{this._input.domNode.value=e,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._input.onDidChange((()=>{var e,t,i,n;void 0!==(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusedCandidate)&&(this._isEditingRenameCandidate=!0),null!==(t=this._timeBeforeFirstInputFieldEdit)&&void 0!==t||(this._timeBeforeFirstInputFieldEdit=this._beforeFirstInputFieldEditSW.elapsed()),!1===(null===(i=this._renameCandidateProvidersCts)||void 0===i?void 0:i.token.isCancellationRequested)&&this._renameCandidateProvidersCts.cancel(),null===(n=this._renameCandidateListView)||void 0===n||n.clearFocus()}))),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){var t,i,n,s;if(!this._domNode)return;const o=e.getColor(z.f9l),r=e.getColor(z.DSL);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(z.CgL))&&void 0!==t?t:""),this._domNode.style.boxShadow=o?` 0 0 8px 2px ${o}`:"",this._domNode.style.border=r?`1px solid ${r}`:"",this._domNode.style.color=String(null!==(i=e.getColor(z.cws))&&void 0!==i?i:""),this._input.domNode.style.backgroundColor=String(null!==(n=e.getColor(z.L4c))&&void 0!==n?n:"");const a=e.getColor(z.Zgs);this._input.domNode.style.borderWidth=a?"1px":"0px",this._input.domNode.style.borderStyle=a?"solid":"none",this._input.domNode.style.borderColor=null!==(s=null===a||void 0===a?void 0:a.toString())&&void 0!==s?s:"none"}_updateFont(){if(void 0===this._domNode)return;(0,d.j)(void 0!==this._label,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._input.domNode);const e=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(e.fontSize)}px`}_computeLabelFontSize(e){return.8*e}getPosition(){if(!this._visible)return null;if(!this._editor.hasModel()||!this._editor.getDomNode())return null;const e=I.tG(this.getDomNode().ownerDocument.body),t=I.BK(this._editor.getDomNode()),i=this._getTopForPosition();this._nPxAvailableAbove=i+t.top,this._nPxAvailableBelow=e.height-this._nPxAvailableAbove;const n=this._editor.getOption(67),{totalHeight:s}=Y.getLayoutInfo({lineHeight:n}),o=this._nPxAvailableBelow>6*s?[2,1]:[1,2];return{position:this._position,preference:o}}beforeRender(){var e,t;const[i,n]=this._acceptKeybindings;return this._label.innerText=(0,y.kg)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",null===(e=this._keybindingService.lookupKeybinding(i))||void 0===e?void 0:e.getLabel(),null===(t=this._keybindingService.lookupKeybinding(n))||void 0===t?void 0:t.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(e){if(this._trace("invoking afterRender, position: ",e?"not null":"null"),null===e)return void this.cancelInput(!0,"afterRender (because position is null)");if(!this._editor.hasModel()||!this._editor.getDomNode())return;(0,d.j)(this._renameCandidateListView),(0,d.j)(void 0!==this._nPxAvailableAbove),(0,d.j)(void 0!==this._nPxAvailableBelow);const t=I.OK(this._input.domNode),i=I.OK(this._label);let n;n=2===e?this._nPxAvailableBelow:this._nPxAvailableAbove,this._renameCandidateListView.layout({height:n-i-t,width:I.Tr(this._input.domNode)})}acceptInput(e){var t;this._trace("invoking acceptInput"),null===(t=this._currentAcceptInput)||void 0===t||t.call(this,e)}cancelInput(e,t){var i;this._trace(`invoking cancelInput, caller: ${t}, _currentCancelInput: ${this._currentAcceptInput?"not undefined":"undefined"}`),null===(i=this._currentCancelInput)||void 0===i||i.call(this,e)}focusNextRenameSuggestion(){var e;(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusNext())||(this._input.domNode.value=this._currentName)}focusPreviousRenameSuggestion(){var e;(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusPrevious())||(this._input.domNode.value=this._currentName)}getInput(e,t,i,n,r){const{start:a,end:h}=this._getSelection(e,t);this._renameCandidateProvidersCts=new o.Q;const c=n(this._renameCandidateProvidersCts.token);this._updateRenameCandidates(c,t,r.token),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",i),this._position=new p.y(e.startLineNumber,e.startColumn),this._currentName=t,this._input.domNode.value=t,this._input.domNode.setAttribute("selectionStart",a.toString()),this._input.domNode.setAttribute("selectionEnd",h.toString()),this._input.domNode.size=Math.max(1.1*(e.endColumn-e.startColumn),20),this._beforeFirstInputFieldEditSW.reset();const u=new l.Cm;u.add((0,l.s)((()=>r.dispose(!0)))),u.add((0,l.s)((()=>{void 0!==this._renameCandidateProvidersCts&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)})));const g=new s.Zv;return g.p.finally((()=>{u.dispose(),this._hide()})),this._currentCancelInput=e=>{var t;return this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,null===(t=this._renameCandidateListView)||void 0===t||t.clearCandidates(),g.complete(e),!0},this._currentAcceptInput=e=>{this._trace("invoking _currentAcceptInput"),(0,d.j)(void 0!==this._renameCandidateListView);const n=this._renameCandidateListView.nCandidates;let s,o;const r=this._renameCandidateListView.focusedCandidate;void 0!==r?(this._trace("using new name from renameSuggestion"),s=r,o={k:"renameSuggestion"}):(this._trace("using new name from inputField"),s=this._input.domNode.value,o=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),s!==t&&0!==s.trim().length?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),g.complete({newName:s,wantsPreview:i&&e,stats:{source:o,nRenameSuggestions:n,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit}})):this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)")},u.add(r.token.onCancellationRequested((()=>this.cancelInput(!0,"cts.token.onCancellationRequested")))),u.add(this._editor.onDidBlurEditorWidget((()=>{var e;return this.cancelInput(!(null===(e=this._domNode)||void 0===e?void 0:e.ownerDocument.hasFocus()),"editor.onDidBlurEditorWidget")}))),this._show(),g.p}_getSelection(e,t){(0,d.j)(this._editor.hasModel());const i=this._editor.getSelection();let n=0,s=t.length;return m.Q.isEmpty(i)||m.Q.spansMultipleLines(i)||!m.Q.containsRange(e,i)||(n=Math.max(0,i.startColumn-e.startColumn),s=Math.min(e.endColumn,i.endColumn)-e.startColumn),{start:n,end:s}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((()=>{this._input.domNode.focus(),this._input.domNode.setSelectionRange(parseInt(this._input.domNode.getAttribute("selectionStart")),parseInt(this._input.domNode.getAttribute("selectionEnd")))}),100)}async _updateRenameCandidates(e,t,i){const n=(...e)=>this._trace("_updateRenameCandidates",...e);n("start");const o=await(0,s.PK)(Promise.allSettled(e),i);if(void 0===o)return void n("returning early - received updateRenameCandidates results - undefined");const r=o.flatMap((e=>"fulfilled"===e.status&&(0,d.O9)(e.value)?e.value:[]));n(`received updateRenameCandidates results - total (unfiltered) ${r.length} candidates.`);const a=R.dM(r,(e=>e.newSymbolName));n(`distinct candidates - ${a.length} candidates.`);const l=a.filter((({newSymbolName:e})=>e.trim().length>0&&e!==this._input.domNode.value&&e!==t));n(`valid distinct candidates - ${r.length} candidates.`),l.length<1?n("returning early - no valid distinct candidates"):(n("setting candidates"),this._renameCandidateListView.setCandidates(l),n("asking editor to re-layout"),this._editor.layoutContentWidget(this))}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){const e=this._editor.getVisibleRanges();let t;return e.length>0?t=e[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),t=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(t)}_trace(...e){this._logService.trace("RenameWidget",...e)}};$=U([K(2,j.Gy),K(3,V.b),K(4,k.fN),K(5,L.rr)],$);class q{constructor(e,t){this._disposables=new l.Cm,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=t.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=t.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),e.appendChild(this._listContainer),this._listWidget=q._createListWidget(this._listContainer,this._candidateViewHeight,t.fontInfo),this._listWidget.onDidChangeFocus((e=>{1===e.elements.length&&t.onFocusChange(e.elements[0].newSymbolName)}),this._disposables),this._listWidget.onDidChangeSelection((e=>{1===e.elements.length&&t.onSelectionChange()}),this._disposables),this._disposables.add(this._listWidget.onDidBlur((e=>{this._listWidget.setFocus([])}))),this._listWidget.style((0,H.t8)({listInactiveFocusForeground:z.nH,listInactiveFocusBackground:z.AlL}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout({height:e,width:t}){this._availableHeight=e,this._minimumWidth=t}setCandidates(e){this._listWidget.splice(0,0,e);const t=this._pickListHeight(e.length),i=this._pickListWidth(e);this._listWidget.layout(t,i),this._listContainer.style.height=`${t}px`,this._listContainer.style.width=`${i}px`,n.h5((0,y.kg)("renameSuggestionsReceivedAria","Received {0} rename suggestions",e.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(0===this._listWidget.length)return;const e=this._listWidget.getSelectedElements()[0];if(void 0!==e)return e.newSymbolName;const t=this._listWidget.getFocusedElements()[0];return void 0!==t?t.newSymbolName:void 0}focusNext(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();return 0===e.length?(this._listWidget.focusFirst(),!0):e[0]===this._listWidget.length-1?(this._listWidget.setFocus([]),!1):(this._listWidget.focusNext(),!0)}focusPrevious(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();return 0===e.length?(this._listWidget.focusLast(),!0):0===e[0]?(this._listWidget.setFocus([]),!1):(this._listWidget.focusPrevious(),!0)}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){const{totalHeight:e}=Y.getLayoutInfo({lineHeight:this._lineHeight});return e}_pickListHeight(e){const t=this._candidateViewHeight*e;return Math.min(t,this._availableHeight,7*this._candidateViewHeight)}_pickListWidth(e){const t=Math.ceil(Math.max(...e.map((e=>e.newSymbolName.length)))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+t+10)}static _createListWidget(e,t,i){const n=new class{getTemplateId(e){return"candidate"}getHeight(e){return t}},s=new class{constructor(){this.templateId="candidate"}renderTemplate(e){return new Y(e,i)}renderElement(e,t,i){i.populate(e)}disposeTemplate(e){e.dispose()}};return new A.B8("NewSymbolNameCandidates",e,n,[s],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}}class Q{constructor(){this._onDidChange=new P.vl,this.onDidChange=this._onDidChange.event,this._disposables=new l.Cm}get domNode(){return this._domNode||(this._domNode=document.createElement("input"),this._domNode.className="rename-input",this._domNode.type="text",this._domNode.setAttribute("aria-label",(0,y.kg)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._disposables.add(I.ko(this._domNode,"input",(()=>this._onDidChange.fire())))),this._domNode}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}}class Y{constructor(e,t){this._domNode=document.createElement("div"),this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${t.lineHeight}px`,this._domNode.style.padding=`${Y._PADDING}px`;const i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.width=i.style.height=.8*t.lineHeight+"px",this._domNode.appendChild(i),this._icon=(0,M.s)(O.W.sparkle),this._icon.style.display="none",i.appendChild(this._icon),this._label=document.createElement("div"),(0,B.M)(this._label,t),this._domNode.appendChild(this._label),e.appendChild(this._domNode)}populate(e){this._updateIcon(e),this._updateLabel(e)}_updateIcon(e){var t;const i=!!(null===(t=e.tags)||void 0===t?void 0:t.includes(W.OV.AIGenerated));this._icon.style.display=i?"inherit":"none"}_updateLabel(e){this._label.innerText=e.newSymbolName}static getLayoutInfo({lineHeight:e}){return{totalHeight:e+2*Y._PADDING}}dispose(){}}Y._PADDING=2;var Z,X=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},J=function(e,t){return function(i,n){t(i,n,e)}};class ee{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}async resolveRenameLocation(e){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){const i=this._providers[this._providerRenameIdx];if(!i.resolveRenameLocation)break;const n=await i.resolveRenameLocation(this.model,this.position,e);if(n){if(!n.rejectReason)return n;t.push(n.rejectReason)}}this._providerRenameIdx=0;const i=this.model.getWordAtPosition(this.position);return i?{range:new m.Q(this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word,rejectReason:t.length>0?t.join("\n"):void 0}:{range:m.Q.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}async provideRenameEdits(e,t){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}async _provideRenameEdits(e,t,i,n){const s=this._providers[t];if(!s)return{edits:[],rejectReason:i.join("\n")};const o=await s.provideRenameEdits(this.model,this.position,e,n);return o?o.rejectReason?this._provideRenameEdits(e,t+1,i.concat(o.rejectReason),n):o:this._provideRenameEdits(e,t+1,i.concat(y.kg("no result","No result.")),n)}}let te=Z=class{static get(e){return e.getContribution(Z.ID)}constructor(e,t,i,n,s,r,a,d,h){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=s,this._logService=r,this._configService=a,this._languageFeaturesService=d,this._telemetryService=h,this._disposableStore=new l.Cm,this._cts=new o.Q,this._renameWidget=this._disposableStore.add(this._instaService.createInstance($,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){var e,t;const i=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new o.Q,!this.editor.hasModel())return void i("editor has no model");const l=this.editor.getPosition(),d=new ee(this.editor.getModel(),l,this._languageFeaturesService.renameProvider);if(!d.hasProvider())return void i("skeleton has no provider");const h=new b.gI(this.editor,5,void 0,this._cts.token);let c;try{i("resolving rename location");const e=d.resolveRenameLocation(h.token);this._progressService.showWhile(e,250),c=await e,i("resolved rename location")}catch(w){return void(w instanceof r.AL?i("resolve rename location cancelled",JSON.stringify(w,null,"\t")):(i("resolve rename location failed",w instanceof Error?w:JSON.stringify(w,null,"\t")),("string"===typeof w||(0,a.VS)(w))&&(null===(e=C.k.get(this.editor))||void 0===e||e.showMessage(w||y.kg("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),l))))}finally{h.dispose()}if(!c)return void i("returning early - no loc");if(c.rejectReason)return i(`returning early - rejected with reason: ${c.rejectReason}`,c.rejectReason),void(null===(t=C.k.get(this.editor))||void 0===t||t.showMessage(c.rejectReason,l));if(h.token.isCancellationRequested)return void i("returning early - cts1 cancelled");const u=new b.gI(this.editor,5,c.range,this._cts.token),g=this.editor.getModel(),p=this._languageFeaturesService.newSymbolNamesProvider.all(g);i("creating rename input field and awaiting its result");const f=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),_=await this._renameWidget.getInput(c.range,c.text,f,(e=>p.map((t=>t.provideNewSymbolNames(g,c.range,e)))),u);if(i("received response from rename input field"),p.length>0&&this._reportTelemetry(p.length,g.getLanguageId(),_),"boolean"===typeof _)return i(`returning early - rename input field response - ${_}`),_&&this.editor.focus(),void u.dispose();this.editor.focus(),i("requesting rename edits");const v=(0,s.PK)(d.provideRenameEdits(_.newName,u.token),u.token).then((async e=>{if(e)if(this.editor.hasModel()){if(e.rejectReason)return i(`returning early - rejected with reason: ${e.rejectReason}`),void this._notificationService.info(e.rejectReason);this.editor.setSelection(m.Q.fromPositions(this.editor.getSelection().getPosition())),i("applying edits"),this._bulkEditService.apply(e,{editor:this.editor,showPreview:_.wantsPreview,label:y.kg("label","Renaming '{0}' to '{1}'",null===c||void 0===c?void 0:c.text,_.newName),code:"undoredo.rename",quotableLabel:y.kg("quotableLabel","Renaming {0} to {1}",null===c||void 0===c?void 0:c.text,_.newName),respectAutoSaveConfig:!0}).then((e=>{i("edits applied"),e.ariaSummary&&(0,n.xE)(y.kg("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",c.text,_.newName,e.ariaSummary))})).catch((e=>{i(`error when applying edits ${JSON.stringify(e,null,"\t")}`),this._notificationService.error(y.kg("rename.failedApply","Rename failed to apply edits")),this._logService.error(e)}))}else i("returning early - no model after rename edits are provided");else i("returning early - no rename edits result")}),(e=>{i("error when providing rename edits",JSON.stringify(e,null,"\t")),this._notificationService.error(y.kg("rename.failed","Rename failed to compute edits")),this._logService.error(e)})).finally((()=>{u.dispose()}));return i("returning rename operation"),this._progressService.showWhile(v,250),v}acceptRenameInput(e){this._renameWidget.acceptInput(e)}cancelRenameInput(){this._renameWidget.cancelInput(!0,"cancelRenameInput command")}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(e,t,i){const n="boolean"===typeof i?{kind:"cancelled",languageId:t,nRenameSuggestionProviders:e}:{kind:"accepted",languageId:t,nRenameSuggestionProviders:e,source:i.stats.source.k,nRenameSuggestions:i.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:i.stats.timeBeforeFirstInputFieldEdit,wantsPreview:i.wantsPreview};this._telemetryService.publicLog2("renameInvokedEvent",n)}};te.ID="editor.contrib.renameController",te=Z=X([J(1,x._Y),J(2,D.Ot),J(3,u.nu),J(4,E.N8),J(5,L.rr),J(6,v.U),J(7,_.u),J(8,T.k)],te);class ie extends c.ks{constructor(){super({id:"editor.action.rename",label:y.kg("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:k.M$.and(f.R.writable,f.R.hasRenameProvider),kbOpts:{kbExpr:f.R.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(g.T),[n,s]=Array.isArray(t)&&t||[void 0,void 0];return h.r.isUri(n)&&p.y.isIPosition(s)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(s),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),r.dz):super.runCommand(e,t)}run(e,t){const i=e.get(L.rr),n=te.get(t);return n?(i.trace("[RenameAction] got controller, running..."),n.run()):(i.trace("[RenameAction] returning early - controller missing"),Promise.resolve())}}(0,c.HW)(te.ID,te,4),(0,c.Fl)(ie);const ne=c.DX.bindToContribution(te.get);(0,c.E_)(new ne({id:"acceptRenameInput",precondition:G,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:k.M$.and(f.R.focus,k.M$.not("isComposing")),primary:3}})),(0,c.E_)(new ne({id:"acceptRenameInputWithPreview",precondition:k.M$.and(G,k.M$.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:k.M$.and(f.R.focus,k.M$.not("isComposing")),primary:2051}})),(0,c.E_)(new ne({id:"cancelRenameInput",precondition:G,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:f.R.focus,primary:9,secondary:[1033]}})),(0,w.ug)(class extends w.L{constructor(){super({id:"focusNextRenameSuggestion",title:{...y.aS("focusNextRenameSuggestion","Focus Next Rename Suggestion")},precondition:G,keybinding:[{primary:2,secondary:[18],weight:199}]})}run(e){const t=e.get(g.T).getFocusedCodeEditor();if(!t)return;const i=te.get(t);i&&i.focusNextRenameSuggestion()}}),(0,w.ug)(class extends w.L{constructor(){super({id:"focusPreviousRenameSuggestion",title:{...y.aS("focusPreviousRenameSuggestion","Focus Previous Rename Suggestion")},precondition:G,keybinding:[{primary:1026,secondary:[16],weight:199}]})}run(e){const t=e.get(g.T).getFocusedCodeEditor();if(!t)return;const i=te.get(t);i&&i.focusPreviousRenameSuggestion()}}),(0,c.ke)("_executeDocumentRenameProvider",(function(e,t,i,...n){const[s]=n;(0,d.j)("string"===typeof s);const{renameProvider:r}=e.get(_.u);return async function(e,t,i,n){const s=new ee(t,i,e),r=await s.resolveRenameLocation(o.X.None);return(null===r||void 0===r?void 0:r.rejectReason)?{edits:[],rejectReason:r.rejectReason}:s.provideRenameEdits(n,o.X.None)}(r,t,i,s)})),(0,c.ke)("_executePrepareRename",(async function(e,t,i){const{renameProvider:n}=e.get(_.u),s=new ee(t,i,n),r=await s.resolveRenameLocation(o.X.None);if(null===r||void 0===r?void 0:r.rejectReason)throw new Error(r.rejectReason);return r})),N.O.as(S.Fd.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:y.kg("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},18278:(e,t,i)=>{"use strict";var n=i(90766),s=i(5662),o=i(31450),r=i(17469),a=i(38361),l=i(10920),d=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},h=function(e,t){return function(i,n){t(i,n,e)}};let c=class extends s.jG{constructor(e,t,i){super(),this.editor=e,this.languageConfigurationService=t,this.editorWorkerService=i,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(e.getOption(73)),this.computePromise=null,this.currentOccurrences={},this._register(e.onDidChangeModel((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(e.onDidChangeModelLanguage((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(t.onDidChange((t=>{var i;const n=null===(i=this.editor.getModel())||void 0===i?void 0:i.getLanguageId();n&&t.affects(n)&&(this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(e.onDidChangeConfiguration((t=>{this.options&&!t.hasChanged(73)||(this.options=this.createOptions(e.getOption(73)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(this.editor.onDidChangeModelContent((e=>{this.computeSectionHeaders.schedule()}))),this.computeSectionHeaders=this._register(new n.uC((()=>{this.findSectionHeaders()}),250)),this.computeSectionHeaders.schedule(0)}createOptions(e){if(!e||!this.editor.hasModel())return;const t=this.editor.getModel().getLanguageId();if(!t)return;const i=this.languageConfigurationService.getLanguageConfiguration(t).comments,n=this.languageConfigurationService.getLanguageConfiguration(t).foldingRules;return i||(null===n||void 0===n?void 0:n.markers)?{foldingRules:n,findMarkSectionHeaders:e.showMarkSectionHeaders,findRegionSectionHeaders:e.showRegionSectionHeaders}:void 0}findSectionHeaders(){var e,t;if(!this.editor.hasModel()||!(null===(e=this.options)||void 0===e?void 0:e.findMarkSectionHeaders)&&!(null===(t=this.options)||void 0===t?void 0:t.findRegionSectionHeaders))return;const i=this.editor.getModel();if(i.isDisposed()||i.isTooLargeForSyncing())return;const n=i.getVersionId();this.editorWorkerService.findSectionHeaders(i.uri,this.options).then((e=>{i.isDisposed()||i.getVersionId()!==n||this.updateDecorations(e)}))}updateDecorations(e){const t=this.editor.getModel();t&&(e=e.filter((e=>{if(!e.shouldBeInComments)return!0;const i=t.validateRange(e.range),n=t.tokenization.getLineTokens(i.startLineNumber),s=n.findTokenIndexAtOffset(i.startColumn-1),o=n.getStandardTokenType(s);return n.getLanguageId(s)===t.getLanguageId()&&1===o})));const i=Object.values(this.currentOccurrences).map((e=>e.decorationId)),n=e.map((e=>function(e){return{range:e.range,options:a.kI.createDynamic({description:"section-header",stickiness:3,collapseOnReplaceEdit:!0,minimap:{color:void 0,position:1,sectionHeaderStyle:e.hasSeparatorLine?2:1,sectionHeaderText:e.text}})}}(e)));this.editor.changeDecorations((t=>{const s=t.deltaDecorations(i,n);this.currentOccurrences={};for(let i=0,n=s.length;i<n;i++){const t={sectionHeader:e[i],decorationId:s[i]};this.currentOccurrences[t.decorationId]=t}}))}stop(){this.computeSectionHeaders.cancel(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop(),this.decorations.clear()}};c.ID="editor.sectionHeaderDetector",c=d([h(1,r.JZ),h(2,l.w)],c),(0,o.HW)(c.ID,c,1)},98745:(e,t,i)=>{"use strict";var n,s=i(5662),o=i(64383),r=i(23750),a=i(84001),l=i(90766),d=i(18447),h=i(47612),c=i(45538),u=i(40635),g=i(32500),p=i(78381),m=i(56942),f=i(74243),_=i(72466),v=i(84585),b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};let y=class extends s.jG{constructor(e,t,i,n,s,o){super(),this._watchers=Object.create(null);const r=t=>{this._watchers[t.uri.toString()]=new w(t,e,i,s,o)},a=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},l=()=>{for(const e of t.getModels()){const t=this._watchers[e.uri.toString()];(0,v.K)(e,i,n)?t||r(e):t&&a(e,t)}};t.getModels().forEach((e=>{(0,v.K)(e,i,n)&&r(e)})),this._register(t.onModelAdded((e=>{(0,v.K)(e,i,n)&&r(e)}))),this._register(t.onModelRemoved((e=>{const t=this._watchers[e.uri.toString()];t&&a(e,t)}))),this._register(n.onDidChangeConfiguration((e=>{e.affectsConfiguration(v.r)&&l()}))),this._register(i.onDidColorThemeChange(l))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};y=b([C(0,f.F),C(1,r.S),C(2,h.Gy),C(3,a.pG),C(4,g.U),C(5,m.u)],y);let w=n=class extends s.jG{constructor(e,t,i,o,r){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=r.documentSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentSemanticTokens",{min:n.REQUEST_MIN_DELAY,max:n.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new l.uC((()=>this._fetchDocumentSemanticTokensNow()),n.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeAttached((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeLanguage((()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)})));const a=()=>{(0,s.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of this._provider.all(e))"function"===typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange((()=>{this._currentDocumentRequestCancellationTokenSource?this._providersChangedDuringRequest=!0:this._fetchDocumentSemanticTokens.schedule(0)})))};a(),this._register(this._provider.onDidChange((()=>{a(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(i.onDidColorThemeChange((e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),(0,s.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!(0,u.br)(this._provider,this._model))return void(this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1));if(!this._model.isAttachedToEditor())return;const e=new d.Q,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=(0,u.aw)(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;const s=[],r=this._model.onDidChangeContent((e=>{s.push(e)})),a=new p.W(!1);n.then((e=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),e){const{provider:t,tokens:i}=e,n=this._semanticTokensStylingService.getStyling(t);this._setDocumentSemanticTokens(t,i||null,n,s)}else this._setDocumentSemanticTokens(null,null,null,s)}),(e=>{e&&(o.MB(e)||"string"===typeof e.message&&-1!==e.message.indexOf("busy"))||o.dz(e),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),(s.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))}))}static _copy(e,t,i,n,s){s=Math.min(s,i.length-n,e.length-t);for(let o=0;o<s;o++)i[n+o]=e[t+o]}_setDocumentSemanticTokens(e,t,i,s){const o=this._currentDocumentResponse,r=()=>{(s.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&i){if(!t)return this._model.tokenization.setSemanticTokens(null,!0),void r();if((0,u.yS)(t)){if(!o)return void this._model.tokenization.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:o.data};else{let e=0;for(const i of t.edits)e+=(i.data?i.data.length:0)-i.deleteCount;const s=o.data,r=new Uint32Array(s.length+e);let a=s.length,l=r.length;for(let d=t.edits.length-1;d>=0;d--){const e=t.edits[d];if(e.start>s.length)return i.warnInvalidEditStart(o.resultId,t.resultId,d,e.start,s.length),void this._model.tokenization.setSemanticTokens(null,!0);const h=a-(e.start+e.deleteCount);h>0&&(n._copy(s,a-h,r,l-h,h),l-=h),e.data&&(n._copy(e.data,0,r,l-e.data.length,e.data.length),l-=e.data.length),a=e.start}a>0&&n._copy(s,0,r,0,a),t={resultId:t.resultId,data:r}}}if((0,u.BB)(t)){this._currentDocumentResponse=new S(e,t.resultId,t.data);const n=(0,c.b)(t,i,this._model.getLanguageId());if(s.length>0)for(const e of s)for(const t of n)for(const i of e.changes)t.applyEdit(i.range,i.text);this._model.tokenization.setSemanticTokens(n,!0)}else this._model.tokenization.setSemanticTokens(null,!0);r()}else this._model.tokenization.setSemanticTokens(null,!1)}};w.REQUEST_MIN_DELAY=300,w.REQUEST_MAX_DELAY=2e3,w=n=b([C(1,f.F),C(2,h.Gy),C(3,g.U),C(4,m.u)],w);class S{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}(0,_.x)(y)},44798:(e,t,i)=>{"use strict";var n=i(90766),s=i(5662),o=i(31450),r=i(40635),a=i(84585),l=i(45538),d=i(84001),h=i(47612),c=i(32500),u=i(78381),g=i(56942),p=i(74243),m=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t){return function(i,n){t(i,n,e)}};let _=class extends s.jG{constructor(e,t,i,s,o,r){super(),this._semanticTokensStylingService=t,this._themeService=i,this._configurationService=s,this._editor=e,this._provider=r.documentRangeSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new n.uC((()=>this._tokenizeViewportNow()),100)),this._outstandingRequests=[];const l=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange((()=>{l()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),l()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),l()}))),this._register(this._provider.onDidChange((()=>{this._cancelAll(),l()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(a.r)&&(this._cancelAll(),l())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),l()}))),l()}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;t<i;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const e=this._editor.getModel();if(e.tokenization.hasCompleteSemanticTokens())return;if(!(0,a.K)(e,this._themeService,this._configurationService))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));if(!(0,r.WG)(this._provider,e))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));const t=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(t.map((t=>this._requestRange(e,t))))}_requestRange(e,t){const i=e.getVersionId(),s=(0,n.SS)((i=>Promise.resolve((0,r.nZ)(this._provider,e,t,i)))),o=new u.W(!1);return s.then((n=>{if(this._debounceInformation.update(e,o.elapsed()),!n||!n.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:s,tokens:r}=n,a=this._semanticTokensStylingService.getStyling(s);e.tokenization.setPartialSemanticTokens(t,(0,l.b)(r,a,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(s)),(()=>this._removeOutstandingRequest(s))),s}};_.ID="editor.contrib.viewportSemanticTokens",_=m([f(1,p.F),f(2,h.Gy),f(3,d.pG),f(4,c.U),f(5,g.u)],_),(0,o.HW)(_.ID,_,1)},40635:(e,t,i)=>{"use strict";i.d(t,{nZ:()=>w,aw:()=>v,WG:()=>C,br:()=>_,BB:()=>p,yS:()=>m});var n=i(18447),s=i(64383),o=i(79400),r=i(23750),a=i(50091),l=i(631),d=i(81674),h=i(98067);function c(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const i of e.deltas)i.data&&(t+=i.data.length)}return t}(e));let i=0;if(t[i++]=e.id,"full"===e.type)t[i++]=1,t[i++]=e.data.length,t.set(e.data,i),i+=e.data.length;else{t[i++]=2,t[i++]=e.deltas.length;for(const n of e.deltas)t[i++]=n.start,t[i++]=n.deleteCount,n.data?(t[i++]=n.data.length,t.set(n.data,i),i+=n.data.length):t[i++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return h.cm()||function(e){for(let t=0,i=e.length;t<i;t+=4){const i=e[t+0],n=e[t+1],s=e[t+2],o=e[t+3];e[t+0]=o,e[t+1]=s,e[t+2]=n,e[t+3]=i}}(t),d.MB.wrap(t)}(t)}var u=i(36677),g=i(56942);function p(e){return e&&!!e.data}function m(e){return e&&Array.isArray(e.edits)}class f{constructor(e,t,i){this.provider=e,this.tokens=t,this.error=i}}function _(e,t){return e.has(t)}async function v(e,t,i,n,s){const o=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}(e,t),r=await Promise.all(o.map((async e=>{let o,r=null;try{o=await e.provideDocumentSemanticTokens(t,e===i?n:null,s)}catch(a){r=a,o=null}return o&&(p(o)||m(o))||(o=null),new f(e,o,r)})));for(const a of r){if(a.error)throw a.error;if(a.tokens)return a}return r.length>0?r[0]:null}class b{constructor(e,t){this.provider=e,this.tokens=t}}function C(e,t){return e.has(t)}function y(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}async function w(e,t,i,n){const o=y(e,t),r=await Promise.all(o.map((async e=>{let o;try{o=await e.provideDocumentRangeSemanticTokens(t,i,n)}catch(r){(0,s.M_)(r),o=null}return o&&p(o)||(o=null),new b(e,o)})));for(const s of r)if(s.tokens)return s;return r.length>0?r[0]:null}a.w.registerCommand("_provideDocumentSemanticTokensLegend",(async(e,...t)=>{const[i]=t;(0,l.j)(i instanceof o.r);const n=e.get(r.S).getModel(i);if(!n)return;const{documentSemanticTokensProvider:s}=e.get(g.u),d=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:null}(s,n);return d?d[0].getLegend():e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokensLegend",i)})),a.w.registerCommand("_provideDocumentSemanticTokens",(async(e,...t)=>{const[i]=t;(0,l.j)(i instanceof o.r);const s=e.get(r.S).getModel(i);if(!s)return;const{documentSemanticTokensProvider:d}=e.get(g.u);if(!_(d,s))return e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokens",i,s.getFullModelRange());const h=await v(d,s,null,null,n.X.None);if(!h)return;const{provider:u,tokens:m}=h;if(!m||!p(m))return;const f=c({id:0,type:"full",data:m.data});return m.resultId&&u.releaseDocumentSemanticTokens(m.resultId),f})),a.w.registerCommand("_provideDocumentRangeSemanticTokensLegend",(async(e,...t)=>{const[i,s]=t;(0,l.j)(i instanceof o.r);const a=e.get(r.S).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:d}=e.get(g.u),h=y(d,a);if(0===h.length)return;if(1===h.length)return h[0].getLegend();if(!s||!u.Q.isIRange(s))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),h[0].getLegend();const c=await w(d,a,u.Q.lift(s),n.X.None);return c?c.provider.getLegend():void 0})),a.w.registerCommand("_provideDocumentRangeSemanticTokens",(async(e,...t)=>{const[i,s]=t;(0,l.j)(i instanceof o.r),(0,l.j)(u.Q.isIRange(s));const a=e.get(r.S).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:d}=e.get(g.u),h=await w(d,a,u.Q.lift(s),n.X.None);return h&&h.tokens?c({id:0,type:"full",data:h.tokens.data}):void 0}))},84585:(e,t,i)=>{"use strict";i.d(t,{K:()=>s,r:()=>n});const n="editor.semanticHighlighting";function s(e,t,i){var s;const o=null===(s=i.getValue(n,{overrideIdentifier:e.getLanguageId(),resource:e.uri}))||void 0===s?void 0:s.enabled;return"boolean"===typeof o?o:t.getColorTheme().semanticHighlighting}},39286:(e,t,i)=>{"use strict";i.d(t,{n:()=>r});var n=i(58925),s=i(83069),o=i(36677);class r{async provideSelectionRanges(e,t){const i=[];for(const n of t){const t=[];i.push(t);const s=new Map;await new Promise((t=>r._bracketsRightYield(t,0,e,n,s))),await new Promise((i=>r._bracketsLeftYield(i,0,e,n,s,t)))}return i}static _bracketsRightYield(e,t,i,s,o){const a=new Map,l=Date.now();for(;;){if(t>=r._maxRounds){e();break}if(!s){e();break}const d=i.bracketPairs.findNextBracket(s);if(!d){e();break}if(Date.now()-l>r._maxDuration){setTimeout((()=>r._bracketsRightYield(e,t+1,i,s,o)));break}if(d.bracketInfo.isOpeningBracket){const e=d.bracketInfo.bracketText,t=a.has(e)?a.get(e):0;a.set(e,t+1)}else{const e=d.bracketInfo.getOpeningBrackets()[0].bracketText;let t=a.has(e)?a.get(e):0;if(t-=1,a.set(e,Math.max(0,t)),t<0){let t=o.get(e);t||(t=new n.w,o.set(e,t)),t.push(d.range)}}s=d.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,n,s,a){const l=new Map,d=Date.now();for(;;){if(t>=r._maxRounds&&0===s.size){e();break}if(!n){e();break}const h=i.bracketPairs.findPrevBracket(n);if(!h){e();break}if(Date.now()-d>r._maxDuration){setTimeout((()=>r._bracketsLeftYield(e,t+1,i,n,s,a)));break}if(h.bracketInfo.isOpeningBracket){const e=h.bracketInfo.bracketText;let t=l.has(e)?l.get(e):0;if(t-=1,l.set(e,Math.max(0,t)),t<0){const t=s.get(e);if(t){const n=t.shift();0===t.size&&s.delete(e);const l=o.Q.fromPositions(h.range.getEndPosition(),n.getStartPosition()),d=o.Q.fromPositions(h.range.getStartPosition(),n.getEndPosition());a.push({range:l}),a.push({range:d}),r._addBracketLeading(i,d,a)}}}else{const e=h.bracketInfo.getOpeningBrackets()[0].bracketText,t=l.has(e)?l.get(e):0;l.set(e,t+1)}n=h.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const n=t.startLineNumber,r=e.getLineFirstNonWhitespaceColumn(n);0!==r&&r!==t.startColumn&&(i.push({range:o.Q.fromPositions(new s.y(n,r),t.getEndPosition())}),i.push({range:o.Q.fromPositions(new s.y(n,1),t.getEndPosition())}));const a=n-1;if(a>0){const n=e.getLineFirstNonWhitespaceColumn(a);n===t.startColumn&&n!==e.getLineLastNonWhitespaceColumn(a)&&(i.push({range:o.Q.fromPositions(new s.y(a,n),t.getEndPosition())}),i.push({range:o.Q.fromPositions(new s.y(a,1),t.getEndPosition())}))}}}r._maxDuration=30,r._maxRounds=2},10617:(e,t,i)=>{"use strict";var n=i(25890),s=i(18447),o=i(64383),r=i(31450),a=i(83069),l=i(36677),d=i(75326),h=i(60002),c=i(39286),u=i(91508);class g{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){const i=[];for(const n of t){const t=[];i.push(t),this.selectSubwords&&this._addInWordRanges(t,e,n),this._addWordRanges(t,e,n),this._addWhitespaceLine(t,e,n),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const n=t.getWordAtPosition(i);if(!n)return;const{word:s,startColumn:o}=n,r=i.column-o;let a=r,d=r,h=0;for(;a>=0;a--){const e=s.charCodeAt(a);if(a!==r&&(95===e||45===e))break;if((0,u.Lv)(e)&&(0,u.Wv)(h))break;h=e}for(a+=1;d<s.length;d++){const e=s.charCodeAt(d);if((0,u.Wv)(e)&&(0,u.Lv)(h))break;if(95===e||45===e)break;h=e}a<d&&e.push({range:new l.Q(i.lineNumber,o+a,i.lineNumber,o+d)})}_addWordRanges(e,t,i){const n=t.getWordAtPosition(i);n&&e.push({range:new l.Q(i.lineNumber,n.startColumn,i.lineNumber,n.endColumn)})}_addWhitespaceLine(e,t,i){t.getLineLength(i.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new l.Q(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var p,m=i(31629),f=i(27195),_=i(50091),v=i(56942),b=i(18938),C=i(631),y=i(79400),w=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},S=function(e,t){return function(i,n){t(i,n,e)}};class k{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new k(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let x=p=class{static get(e){return e.getContribution(p.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){var e;null===(e=this._selectionListener)||void 0===e||e.dispose()}async run(e){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||await D(this._languageFeaturesService.selectionRangeProvider,i,t.map((e=>e.getPosition())),this._editor.getOption(113),s.X.None).then((e=>{var i;if(n.EI(e)&&e.length===t.length&&this._editor.hasModel()&&n.aI(this._editor.getSelections(),t,((e,t)=>e.equalsSelection(t)))){for(let i=0;i<e.length;i++)e[i]=e[i].filter((e=>e.containsPosition(t[i].getStartPosition())&&e.containsPosition(t[i].getEndPosition()))),e[i].unshift(t[i]);this._state=e.map((e=>new k(0,e))),null===(i=this._selectionListener)||void 0===i||i.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition((()=>{var e;this._ignoreSelection||(null===(e=this._selectionListener)||void 0===e||e.dispose(),this._state=void 0)}))}})),!this._state)return;this._state=this._state.map((t=>t.mov(e)));const o=this._state.map((e=>d.L.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())));this._ignoreSelection=!0;try{this._editor.setSelections(o)}finally{this._ignoreSelection=!1}}};x.ID="editor.contrib.smartSelectController",x=p=w([S(1,v.u)],x);class L extends r.ks{constructor(e,t){super(t),this._forward=e}async run(e,t){const i=x.get(t);i&&await i.run(this._forward)}}_.w.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");async function D(e,t,i,s,r){const d=e.all(t).concat(new g(s.selectSubwords));1===d.length&&d.unshift(new c.n);const h=[],u=[];for(const a of d)h.push(Promise.resolve(a.provideSelectionRanges(t,i,r)).then((e=>{if(n.EI(e)&&e.length===i.length)for(let t=0;t<i.length;t++){u[t]||(u[t]=[]);for(const n of e[t])l.Q.isIRange(n.range)&&l.Q.containsPosition(n.range,i[t])&&u[t].push(l.Q.lift(n.range))}}),o.M_));return await Promise.all(h),u.map((e=>{if(0===e.length)return[];e.sort(((e,t)=>a.y.isBefore(e.getStartPosition(),t.getStartPosition())?1:a.y.isBefore(t.getStartPosition(),e.getStartPosition())||a.y.isBefore(e.getEndPosition(),t.getEndPosition())?-1:a.y.isBefore(t.getEndPosition(),e.getEndPosition())?1:0));const i=[];let n;for(const t of e)(!n||l.Q.containsRange(t,n)&&!l.Q.equalsRange(t,n))&&(i.push(t),n=t);if(!s.selectLeadingAndTrailingWhitespace)return i;const o=[i[0]];for(let s=1;s<i.length;s++){const e=i[s-1],n=i[s];if(n.startLineNumber!==e.startLineNumber||n.endLineNumber!==e.endLineNumber){const i=new l.Q(e.startLineNumber,t.getLineFirstNonWhitespaceColumn(e.startLineNumber),e.endLineNumber,t.getLineLastNonWhitespaceColumn(e.endLineNumber));i.containsRange(e)&&!i.equalsRange(e)&&n.containsRange(i)&&!n.equalsRange(i)&&o.push(i);const s=new l.Q(e.startLineNumber,1,e.endLineNumber,t.getLineMaxColumn(e.endLineNumber));s.containsRange(e)&&!s.equalsRange(i)&&n.containsRange(s)&&!n.equalsRange(s)&&o.push(s)}o.push(n)}return o}))}(0,r.HW)(x.ID,x,4),(0,r.Fl)(class extends L{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:m.kg("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:h.R.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:f.D8.MenubarSelectionMenu,group:"1_basic",title:m.kg({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}),(0,r.Fl)(class extends L{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:m.kg("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:h.R.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:f.D8.MenubarSelectionMenu,group:"1_basic",title:m.kg({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}),_.w.registerCommand("_executeSelectionRangeProvider",(async function(e,...t){const[i,n]=t;(0,C.j)(y.r.isUri(i));const o=e.get(v.u).selectionRangeProvider,r=await e.get(b.b).createModelReference(i);try{return D(o,r.object.textEditorModel,n,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},s.X.None)}finally{r.dispose()}}))},30936:(e,t,i)=>{"use strict";i.d(t,{O:()=>b});var n,s=i(5662),o=i(631),r=i(31450),a=i(83069),l=i(60002),d=i(17469),h=i(56942),c=i(48116),u=i(31629),g=i(32848),p=i(18801),m=i(38280),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};const v={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let b=n=class{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,o,r){this._editor=e,this._logService=t,this._languageFeaturesService=i,this._languageConfigurationService=r,this._snippetListener=new s.Cm,this._modelVersionId=-1,this._inSnippet=n.InSnippetMode.bindTo(o),this._hasNextTabstop=n.HasNextTabstop.bindTo(o),this._hasPrevTabstop=n.HasPrevTabstop.bindTo(o)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),null===(e=this._session)||void 0===e||e.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,"undefined"===typeof t?v:{...v,...t})}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){var i;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!==typeof e&&this.cancel(),this._session?((0,o.j)("string"===typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new m.O(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),null===(i=this._session)||void 0===i?void 0:i.hasChoice){const e={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(e,t)=>{if(!this._session||e!==this._editor.getModel()||!a.y.equals(this._editor.getPosition(),t))return;const{activeChoice:i}=this._session;if(!i||0===i.choice.options.length)return;const n=e.getValueInRange(i.range),s=Boolean(i.choice.options.find((e=>e.value===n))),o=[];for(let r=0;r<i.choice.options.length;r++){const e=i.choice.options[r];o.push({kind:13,label:e.value,insertText:e.value,sortText:"a".repeat(r+1),range:i.range,filterText:s?`${n}_${e.value}`:void 0,command:{id:"jumpToNextSnippetPlaceholder",title:(0,u.kg)("next","Go to next placeholder...")}})}return{suggestions:o}}},t=this._editor.getModel();let i,n=!1;const s=()=>{null===i||void 0===i||i.dispose(),n=!1},o=()=>{n||(i=this._languageFeaturesService.completionProvider.register({language:t.getLanguageId(),pattern:t.uri.fsPath,scheme:t.uri.scheme,exclusive:!0},e),this._snippetListener.add(i),n=!0)};this._choiceCompletions={provider:e,enable:o,disable:s}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((e=>e.isFlush&&this.cancel()))),this._snippetListener.add(this._editor.onDidChangeModel((()=>this.cancel()))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((()=>this._updateState())))}}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){var e;if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{activeChoice:t}=this._session;if(!t||!this._choiceCompletions)return null===(e=this._choiceCompletions)||void 0===e||e.disable(),void(this._currentChoice=void 0);this._currentChoice!==t.choice&&(this._currentChoice=t.choice,this._choiceCompletions.enable(),queueMicrotask((()=>{(0,c.p3)(this._editor,this._choiceCompletions.provider)})))}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,null===(t=this._session)||void 0===t||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){var e;null===(e=this._session)||void 0===e||e.prev(),this._updateState()}next(){var e;null===(e=this._session)||void 0===e||e.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};b.ID="snippetController2",b.InSnippetMode=new g.N1("inSnippetMode",!1,(0,u.kg)("inSnippetMode","Whether the editor in current in snippet mode")),b.HasNextTabstop=new g.N1("hasNextTabstop",!1,(0,u.kg)("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),b.HasPrevTabstop=new g.N1("hasPrevTabstop",!1,(0,u.kg)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),b=n=f([_(1,p.rr),_(2,h.u),_(3,g.fN),_(4,d.JZ)],b),(0,r.HW)(b.ID,b,4);const C=r.DX.bindToContribution(b.get);(0,r.E_)(new C({id:"jumpToNextSnippetPlaceholder",precondition:g.M$.and(b.InSnippetMode,b.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:l.R.editorTextFocus,primary:2}})),(0,r.E_)(new C({id:"jumpToPrevSnippetPlaceholder",precondition:g.M$.and(b.InSnippetMode,b.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:l.R.editorTextFocus,primary:1026}})),(0,r.E_)(new C({id:"leaveSnippet",precondition:b.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:l.R.editorTextFocus,primary:9,secondary:[1033]}})),(0,r.E_)(new C({id:"acceptSnippet",precondition:b.InSnippetMode,handler:e=>e.finish()}))},29319:(e,t,i)=>{"use strict";i.d(t,{EY:()=>o,GR:()=>l,Or:()=>a,fr:()=>p,mQ:()=>g});class n{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t,i=0,s=this.value.charCodeAt(e);if(t=n._table[s],"number"===typeof t)return this.pos+=1,{type:t,pos:e,len:1};if(n.isDigitCharacter(s)){t=8;do{i+=1,s=this.value.charCodeAt(e+i)}while(n.isDigitCharacter(s));return this.pos+=i,{type:t,pos:e,len:i}}if(n.isVariableCharacter(s)){t=9;do{s=this.value.charCodeAt(e+ ++i)}while(n.isVariableCharacter(s)||n.isDigitCharacter(s));return this.pos+=i,{type:t,pos:e,len:i}}t=10;do{i+=1,s=this.value.charCodeAt(e+i)}while(!isNaN(s)&&"undefined"===typeof n._table[s]&&!n.isDigitCharacter(s)&&!n.isVariableCharacter(s));return this.pos+=i,{type:t,pos:e,len:i}}}n._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class s{constructor(){this._children=[]}appendChild(e){return e instanceof o&&this._children[this._children.length-1]instanceof o?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function e(t,i){for(const n of t)n.parent=i,e(n.children,n)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof g)return e;e=e.parent}}toString(){return this.children.reduce(((e,t)=>e+t.toString()),"")}len(){return 0}}class o extends s{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new o(this.value)}}class r extends s{}class a extends r{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof l?this._children[0]:void 0}clone(){const e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}class l extends s{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof o&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new l;return this.options.forEach(e.appendChild,e),e}}class d extends s{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,(function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!i&&this._children.some((e=>e instanceof h&&Boolean(e.elseValue)))&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof h){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new d;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((e=>e.clone())),e}}class h extends s{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((e=>e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}clone(){return new h(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class c extends r{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new o(t)],!0)}clone(){const e=new c(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}function u(e,t){const i=[...e];for(;i.length>0;){const e=i.shift();if(!t(e))break;i.unshift(...e.children)}}class g extends s{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk((function(i){return i instanceof a&&(e.push(i),t=!t||t.index<i.index?i:t),!0})),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk((n=>n===e?(i=!0,!1):(t+=n.len(),!0))),i?t:-1}fullLen(e){let t=0;return u([e],(e=>(t+=e.len(),!0))),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof a&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk((t=>(t instanceof c&&t.resolve(e)&&(this._placeholders=void 0),!0))),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new g;return this._children=this.children.map((e=>e.clone())),e}walk(e){u(this.children,e)}}class p{constructor(){this._scanner=new n,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new g;return this.parseFragment(e,n),this.ensureFinalTabstop(n,null!==i&&void 0!==i&&i,null!==t&&void 0!==t&&t),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk((e=>(e instanceof a&&(e.isFinalTabstop?n.set(0,void 0):!n.has(e.index)&&e.children.length>0?n.set(e.index,e.children):s.push(e)),!0)));const o=(e,i)=>{const s=n.get(e.index);if(!s)return;const r=new a(e.index);r.transform=e.transform;for(const t of s){const e=t.clone();r.appendChild(e),e instanceof a&&n.has(e.index)&&!i.has(e.index)&&(i.add(e.index),o(e,i),i.delete(e.index))}t.replace(e,[r])},r=new Set;for(const a of s)o(a,r);return t.children.slice(i)}ensureFinalTabstop(e,t,i){if(t||i&&e.placeholders.length>0){e.placeholders.find((e=>0===e.index))||e.appendChild(new a(0))}}_accept(e,t){if(void 0===e||this._token.type===e){const e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new o(t)),!0)}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new c(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const n=new a(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new o("${"+t+":")),n.children.forEach(e.appendChild,e),!0}else{if(!(n.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);{const t=new l;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(n.appendChild(t),this._accept(4)))return e.appendChild(n),!0}return this._backTo(i),!1}}}}_parseChoiceElement(e){const t=this._token,i=[];for(;2!==this._token.type&&7!==this._token.type;){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new o(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const n=new c(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new o("${"+t+":")),n.children.forEach(e.appendChild,e),!0}}_parseTransform(e){const t=new d;let i="",n="";for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(6,!0)||e,i+=e;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new o(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,n)}catch(s){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(!n)return this._backTo(t),!1;if(!i)return e.appendChild(new h(Number(n))),!0;if(this._accept(4))return e.appendChild(new h(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){const i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new h(Number(n),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){const t=this._until(4);if(t)return e.appendChild(new h(Number(n),void 0,t,void 0)),!0}else if(this._accept(12)){const t=this._until(4);if(t)return e.appendChild(new h(Number(n),void 0,void 0,t)),!0}else if(this._accept(13)){const t=this._until(1);if(t){const i=this._until(4);if(i)return e.appendChild(new h(Number(n),void 0,t,i)),!0}}else{const t=this._until(4);if(t)return e.appendChild(new h(Number(n),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new o(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},38280:(e,t,i)=>{"use strict";i.d(t,{O:()=>P});var n=i(25890),s=i(5662),o=i(91508),r=i(7085),a=i(36677),l=i(75326),d=i(17469),h=i(38361),c=i(67841),u=i(37227),g=i(29319),p=i(79326),m=i(98067);function f(e,t=m.uF){return(0,p.No)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null);var _=i(74027),v=i(89403),b=i(58255),C=i(31629),y=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,n){t(i,n,e)}};Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,CURRENT_TIMEZONE_OFFSET:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class S{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(void 0!==i)return i}}}class k{constructor(e,t,i,n){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=n}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,i=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,i=e.multiline)}if(t&&i&&e.snippet){const i=this._model.getLineContent(this._selection.startLineNumber),n=(0,o.UU)(i,0,this._selection.startColumn-1);let s=n;e.snippet.walk((t=>t!==e&&(t instanceof g.EY&&(s=(0,o.UU)((0,o.uz)(t.value).pop())),!0)));const r=(0,o.Qp)(s,n);t=t.replace(/(\r\n|\r|\n)(.*)/g,((e,t,i)=>`${t}${s.substr(r)}${i}`))}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):"CURSOR_INDEX"===t?String(this._selectionIdx):"CURSOR_NUMBER"===t?String(this._selectionIdx+1):void 0}}class x{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return _.P8(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=_.P8(this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t?"."===_.pD(this._model.uri.fsPath)?"":this._labelService.getUriLabel((0,v.pD)(this._model.uri)):"TM_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class L{constructor(e,t,i,n){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=n}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter((e=>!(0,o.AV)(e)));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}let D=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),n=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(n)return"LINE_COMMENT"===t?n.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?n.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&n.blockCommentEndToken||void 0}};D=y([w(2,d.JZ)],D);class E{constructor(){this._date=new Date}resolve(e){const{name:t}=e;if("CURRENT_YEAR"===t)return String(this._date.getFullYear());if("CURRENT_YEAR_SHORT"===t)return String(this._date.getFullYear()).slice(-2);if("CURRENT_MONTH"===t)return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if("CURRENT_DATE"===t)return String(this._date.getDate().valueOf()).padStart(2,"0");if("CURRENT_HOUR"===t)return String(this._date.getHours().valueOf()).padStart(2,"0");if("CURRENT_MINUTE"===t)return String(this._date.getMinutes().valueOf()).padStart(2,"0");if("CURRENT_SECOND"===t)return String(this._date.getSeconds().valueOf()).padStart(2,"0");if("CURRENT_DAY_NAME"===t)return E.dayNames[this._date.getDay()];if("CURRENT_DAY_NAME_SHORT"===t)return E.dayNamesShort[this._date.getDay()];if("CURRENT_MONTH_NAME"===t)return E.monthNames[this._date.getMonth()];if("CURRENT_MONTH_NAME_SHORT"===t)return E.monthNamesShort[this._date.getMonth()];if("CURRENT_SECONDS_UNIX"===t)return String(Math.floor(this._date.getTime()/1e3));if("CURRENT_TIMEZONE_OFFSET"===t){const e=this._date.getTimezoneOffset(),t=e>0?"-":"+",i=Math.trunc(Math.abs(e/60)),n=i<10?"0"+i:i,s=Math.abs(e)-60*i;return t+n+":"+(s<10?"0"+s:s)}}}E.dayNames=[C.kg("Sunday","Sunday"),C.kg("Monday","Monday"),C.kg("Tuesday","Tuesday"),C.kg("Wednesday","Wednesday"),C.kg("Thursday","Thursday"),C.kg("Friday","Friday"),C.kg("Saturday","Saturday")],E.dayNamesShort=[C.kg("SundayShort","Sun"),C.kg("MondayShort","Mon"),C.kg("TuesdayShort","Tue"),C.kg("WednesdayShort","Wed"),C.kg("ThursdayShort","Thu"),C.kg("FridayShort","Fri"),C.kg("SaturdayShort","Sat")],E.monthNames=[C.kg("January","January"),C.kg("February","February"),C.kg("March","March"),C.kg("April","April"),C.kg("May","May"),C.kg("June","June"),C.kg("July","July"),C.kg("August","August"),C.kg("September","September"),C.kg("October","October"),C.kg("November","November"),C.kg("December","December")],E.monthNamesShort=[C.kg("JanuaryShort","Jan"),C.kg("FebruaryShort","Feb"),C.kg("MarchShort","Mar"),C.kg("AprilShort","Apr"),C.kg("MayShort","May"),C.kg("JuneShort","Jun"),C.kg("JulyShort","Jul"),C.kg("AugustShort","Aug"),C.kg("SeptemberShort","Sep"),C.kg("OctoberShort","Oct"),C.kg("NovemberShort","Nov"),C.kg("DecemberShort","Dec")];class N{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=(0,u.Q_)(this._workspaceService.getWorkspace());return(0,u.A7)(t)?void 0:"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}_resolveWorkspaceName(e){if((0,u.jB)(e))return _.P8(e.uri.path);let t=_.P8(e.configPath.path);return t.endsWith(u.kF)&&(t=t.substr(0,t.length-u.kF.length-1)),t}_resoveWorkspacePath(e){if((0,u.jB)(e))return f(e.uri.fsPath);const t=_.P8(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?f(i):"/"}}class T{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?(0,b.b)():void 0}}var I,M=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},A=function(e,t){return function(i,n){t(i,n,e)}};class R{constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=(0,n.$z)(t.placeholders,g.Or.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(-1===this._offset)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations((t=>{for(const i of this._snippet.placeholders){const n=this._snippet.offset(i),s=this._snippet.fullLen(i),o=a.Q.fromPositions(e.getPositionAt(this._offset+n),e.getPositionAt(this._offset+n+s)),r=i.isFinalTabstop?R._decor.inactiveFinal:R._decor.inactive,l=t.addDecoration(o,r);this._placeholderDecorations.set(i,l)}}))}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const i=this._placeholderDecorations.get(t),n=this._editor.getModel().getDecorationRange(i),s=this._editor.getModel().getValueInRange(n),o=t.transform.resolve(s).split(/\r\n|\r|\n/);for(let e=1;e<o.length;e++)o[e]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+o[e]);e.push(r.k.replace(n,o.join(this._editor.getModel().getEOL())))}e.length>0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,t=!0):!1===e&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations((e=>{const i=new Set,n=[];for(const s of this._placeholderGroups[this._placeholderGroupsIdx]){const o=this._placeholderDecorations.get(s),r=this._editor.getModel().getDecorationRange(o);n.push(new l.L(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(s),e.changeDecorationOptions(o,s.isFinalTabstop?R._decor.activeFinal:R._decor.active),i.add(s);for(const t of this._snippet.enclosingPlaceholders(s)){const n=this._placeholderDecorations.get(t);e.changeDecorationOptions(n,t.isFinalTabstop?R._decor.activeFinal:R._decor.active),i.add(t)}}for(const[t,s]of this._placeholderDecorations)i.has(t)||e.changeDecorationOptions(s,t.isFinalTabstop?R._decor.inactiveFinal:R._decor.inactive);return n}));return t?this.move(e):null!==i&&void 0!==i?i:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof g.Or){const e=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(e).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(0===this._snippet.placeholders.length)return!0;if(1===this._snippet.placeholders.length){const[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const n of t){if(n.isFinalTabstop)break;i||(i=[],e.set(n.index,i));const t=this._placeholderDecorations.get(n),s=this._editor.getModel().getDecorationRange(t);if(!s){e.delete(n.index);break}i.push(s)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!(null===e||void 0===e?void 0:e.choice))return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);return i?{range:i,choice:e.choice}:void 0}get hasChoice(){let e=!1;return this._snippet.walk((t=>(e=t instanceof g.GR,!e))),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((i=>{for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const s=e.shift();console.assert(-1!==s._offset),console.assert(!s._placeholderDecorations);const o=s._snippet.placeholderInfo.last.index;for(const e of s._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=n.index+(o+1)/this._nestingLevel:e.index=n.index+e.index/this._nestingLevel;this._snippet.replace(n,s._snippet.children);const r=this._placeholderDecorations.get(n);i.removeDecoration(r),this._placeholderDecorations.delete(n);for(const e of s._snippet.placeholders){const n=s._snippet.offset(e),o=s._snippet.fullLen(e),r=a.Q.fromPositions(t.getPositionAt(s._offset+n),t.getPositionAt(s._offset+n+o)),l=i.addDecoration(r,R._decor.inactive);this._placeholderDecorations.set(e,l)}}this._placeholderGroups=(0,n.$z)(this._snippet.placeholders,g.Or.compareByIndex)}))}}R._decor={active:h.kI.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:h.kI.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:h.kI.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:h.kI.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const O={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let P=I=class{static adjustWhitespace(e,t,i,n,s){const r=e.getLineContent(t.lineNumber),a=(0,o.UU)(r,0,t.column-1);let l;return n.walk((t=>{if(!(t instanceof g.EY)||t.parent instanceof g.GR)return!0;if(s&&!s.has(t))return!0;const o=t.value.split(/\r\n|\r|\n/);if(i){const i=n.offset(t);if(0===i)o[0]=e.normalizeIndentation(o[0]);else{l=null!==l&&void 0!==l?l:n.toString();const t=l.charCodeAt(i-1);10!==t&&13!==t||(o[0]=e.normalizeIndentation(a+o[0]))}for(let t=1;t<o.length;t++)o[t]=e.normalizeIndentation(a+o[t])}const r=o.join(e.getEOL());return r!==t.value&&(t.parent.replace(t,[new g.EY(r)]),l=void 0),!0})),a}static adjustSelection(e,t,i,n){if(0!==i||0!==n){const{positionLineNumber:s,positionColumn:o}=t,r=o-i,a=o+n,d=e.validateRange({startLineNumber:s,startColumn:r,endLineNumber:s,endColumn:a});t=l.L.createWithDirection(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn,t.getDirection())}return t}static createEditsAndSnippetsFromSelections(e,t,i,n,s,o,l,d,h){const p=[],m=[];if(!e.hasModel())return{edits:p,snippets:m};const f=e.getModel(),_=e.invokeWithinContext((e=>e.get(u.VR))),v=e.invokeWithinContext((e=>new x(e.get(c.L),f))),b=()=>l,C=f.getValueInRange(I.adjustSelection(f,e.getSelection(),i,0)),y=f.getValueInRange(I.adjustSelection(f,e.getSelection(),0,n)),w=f.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),M=e.getSelections().map(((e,t)=>({selection:e,idx:t}))).sort(((e,t)=>a.Q.compareRangesUsingStarts(e.selection,t.selection)));for(const{selection:a,idx:c}of M){let l=I.adjustSelection(f,a,i,0),u=I.adjustSelection(f,a,0,n);C!==f.getValueInRange(l)&&(l=a),y!==f.getValueInRange(u)&&(u=a);const x=a.setStartPosition(l.startLineNumber,l.startColumn).setEndPosition(u.endLineNumber,u.endColumn),A=(new g.fr).parse(t,!0,s),O=x.getStartPosition(),P=I.adjustWhitespace(f,O,o||c>0&&w!==f.getLineFirstNonWhitespaceColumn(a.positionLineNumber),A);A.resolveVariables(new S([v,new L(b,c,M.length,"spread"===e.getOption(79)),new k(f,a,c,d),new D(f,a,h),new E,new N(_),new T])),p[c]=r.k.replace(x,A.toString()),p[c].identifier={major:c,minor:0},p[c]._isTracked=!0,m[c]=new R(e,A,P)}return{edits:p,snippets:m}}static createEditsAndSnippetsFromEdits(e,t,i,n,s,o,l){if(!e.hasModel()||0===t.length)return{edits:[],snippets:[]};const d=[],h=e.getModel(),p=new g.fr,m=new g.mQ,f=new S([e.invokeWithinContext((e=>new x(e.get(c.L),h))),new L((()=>s),0,e.getSelections().length,"spread"===e.getOption(79)),new k(h,e.getSelection(),0,o),new D(h,e.getSelection(),l),new E,new N(e.invokeWithinContext((e=>e.get(u.VR)))),new T]);t=t.sort(((e,t)=>a.Q.compareRangesUsingStarts(e.range,t.range)));let _=0;for(let c=0;c<t.length;c++){const{range:e,template:i}=t[c];if(c>0){const i=t[c-1].range,n=a.Q.fromPositions(i.getEndPosition(),e.getStartPosition()),s=new g.EY(h.getValueInRange(n));m.appendChild(s),_+=s.value.length}const n=p.parseFragment(i,m);I.adjustWhitespace(h,e.getStartPosition(),!0,m,new Set(n)),m.resolveVariables(f);const s=m.toString(),o=s.slice(_);_=s.length;const l=r.k.replace(e,o);l.identifier={major:c,minor:0},l._isTracked=!0,d.push(l)}return p.ensureFinalTabstop(m,i,!0),{edits:d,snippets:[new R(e,m,"")]}}constructor(e,t,i=O,n){this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=n,this._templateMerges=[],this._snippets=[]}dispose(){(0,s.AS)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}="string"===typeof this._template?I.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):I.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=t,this._editor.executeEdits("snippet",e,(e=>{const i=e.filter((e=>!!e.identifier));for(let n=0;n<t.length;n++)t[n].initialize(i[n].textChange);return this._snippets[0].hasPlaceholder?this._move(!0):i.map((e=>l.L.fromPositions(e.range.getEndPosition())))})),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=O){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:n}=I.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",i,(e=>{const t=e.filter((e=>!!e.identifier));for(let s=0;s<n.length;s++)n[s].initialize(t[s].textChange);const i=n[0].isTrivialSnippet;if(!i){for(const e of this._snippets)e.merge(n);console.assert(0===n.length)}return this._snippets[0].hasPlaceholder&&!i?this._move(void 0):t.map((e=>l.L.fromPositions(e.range.getEndPosition())))}))}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const n=i.move(e);t.push(...n)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;const t=new Map;for(const i of this._snippets){const n=i.computePossibleSelections();if(0===t.size)for(const[i,s]of n){s.sort(a.Q.compareRangesUsingStarts);for(const n of e)if(s[0].containsRange(n)){t.set(i,[]);break}}if(0===t.size)return!1;t.forEach(((e,t)=>{e.push(...n.get(t))}))}e.sort(a.Q.compareRangesUsingStarts);for(const[i,n]of t)if(n.length===e.length){n.sort(a.Q.compareRangesUsingStarts);for(let s=0;s<n.length;s++)n[s].containsRange(e[s])||t.delete(i)}else t.delete(i);return t.size>0}};P=I=M([A(3,d.JZ)],P)},57197:(e,t,i)=>{"use strict";var n=i(31450),s=i(31629);const o=Object.freeze({View:(0,s.aS)("view","View"),Help:(0,s.aS)("help","Help"),Test:(0,s.aS)("test","Test"),File:(0,s.aS)("file","File"),Preferences:(0,s.aS)("preferences","Preferences"),Developer:(0,s.aS)({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer")});var r=i(27195),a=i(84001),l=i(32848),d=i(60002),h=i(5662),c=i(56942),u=i(8597),g=i(80789),p=i(25890),m=i(25689),f=i(92473),_=i(29163),v=i(83069),b=i(99020),C=i(25521),y=i(35600),w=i(46109);class S{constructor(e,t,i,n=null){this.startLineNumbers=e,this.endLineNumbers=t,this.lastLineRelativePosition=i,this.showEndForLine=n}equals(e){return!!e&&this.lastLineRelativePosition===e.lastLineRelativePosition&&this.showEndForLine===e.showEndForLine&&(0,p.aI)(this.startLineNumbers,e.startLineNumbers)&&(0,p.aI)(this.endLineNumbers,e.endLineNumbers)}}const k=(0,g.H)("stickyScrollViewLayer",{createHTML:e=>e}),x="data-sticky-line-index",L="data-sticky-is-line",D="data-sticky-is-folding-icon";class E extends h.jG{constructor(e){super(),this._editor=e,this._foldingIconStore=new h.Cm,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(67),this._renderedStickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof _.t),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const t=()=>{this._linesDomNode.style.left=this._editor.getOption(115).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(115)&&t(),e.hasChanged(67)&&(this._lineHeight=this._editor.getOption(67))}))),this._register(this._editor.onDidScrollChange((e=>{e.scrollLeftChanged&&t(),e.scrollWidthChanged&&this._updateWidgetWidth()}))),this._register(this._editor.onDidChangeModel((()=>{t(),this._updateWidgetWidth()}))),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange((e=>{this._updateWidgetWidth()}))),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getRenderedStickyLine(e){return this._renderedStickyLines.find((t=>t.lineNumber===e))}getCurrentLines(){return this._lineNumbers}setState(e,t,i){if(void 0===i&&(!this._previousState&&!e||this._previousState&&this._previousState.equals(e)))return;const n=this._isWidgetHeightZero(e),s=n?void 0:e,o=n?0:this._findLineToRebuildWidgetFrom(e,i);this._renderRootNode(s,t,o),this._previousState=e}_isWidgetHeightZero(e){if(!e)return!0;const t=e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition;if(t>0){this._lastLineRelativePosition=e.lastLineRelativePosition;const t=[...e.startLineNumbers];null!==e.showEndForLine&&(t[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=t}else this._lastLineRelativePosition=0,this._lineNumbers=[];return 0===t}_findLineToRebuildWidgetFrom(e,t){if(!e||!this._previousState)return 0;if(void 0!==t)return t;const i=this._previousState,n=e.startLineNumbers.findIndex((e=>!i.startLineNumbers.includes(e)));return-1===n?0:n}_updateWidgetWidth(){const e=this._editor.getLayoutInfo(),t=e.contentLeft;this._lineNumbersDomNode.style.width=`${t}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",this._editor.getScrollWidth()-e.verticalScrollbarWidth+"px"),this._rootDomNode.style.width=e.width-e.verticalScrollbarWidth+"px"}_clearStickyLinesFromLine(e){this._foldingIconStore.clear();for(let t=e;t<this._renderedStickyLines.length;t++){const e=this._renderedStickyLines[t];e.lineNumberDomNode.remove(),e.lineDomNode.remove()}this._renderedStickyLines=this._renderedStickyLines.slice(0,e),this._rootDomNode.style.display="none"}_useFoldingOpacityTransition(e){this._lineNumbersDomNode.style.setProperty("--vscode-editorStickyScroll-foldingOpacityTransition",`opacity ${e?.5:0}s`)}_setFoldingIconsVisibility(e){for(const t of this._renderedStickyLines){const i=t.foldingIcon;i&&i.setVisible(!!e||i.isCollapsed)}}async _renderRootNode(e,t,i){if(this._clearStickyLinesFromLine(i),!e)return;for(const r of this._renderedStickyLines)this._updateTopAndZIndexOfStickyLine(r);const n=this._editor.getLayoutInfo(),s=this._lineNumbers.slice(i);for(const[r,a]of s.entries()){const e=this._renderChildNode(r+i,a,t,n);e&&(this._linesDomNode.appendChild(e.lineDomNode),this._lineNumbersDomNode.appendChild(e.lineNumberDomNode),this._renderedStickyLines.push(e))}t&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));const o=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;this._rootDomNode.style.display="block",this._lineNumbersDomNode.style.height=`${o}px`,this._linesDomNodeScrollable.style.height=`${o}px`,this._rootDomNode.style.height=`${o}px`,this._rootDomNode.style.marginLeft="0px",this._minContentWidthInPx=Math.max(...this._renderedStickyLines.map((e=>e.scrollWidth)))+n.verticalScrollbarWidth,this._editor.layoutOverlayWidget(this)}_setFoldingHoverListeners(){"mouseover"===this._editor.getOption(110)&&(this._foldingIconStore.add(u.ko(this._lineNumbersDomNode,u.Bx.MOUSE_ENTER,(()=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)}))),this._foldingIconStore.add(u.ko(this._lineNumbersDomNode,u.Bx.MOUSE_LEAVE,(()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)}))))}_renderChildNode(e,t,i,n){const s=this._editor._getViewModel();if(!s)return;const o=s.coordinatesConverter.convertModelPositionToViewPosition(new v.y(t,1)).lineNumber,r=s.getViewLineRenderingData(o),a=this._editor.getOption(68);let l;try{l=C.d.filter(r.inlineDecorations,o,r.minColumn,r.maxColumn)}catch(S){l=[]}const d=new y.zL(!0,!0,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,0,r.tokens,l,r.tabSize,r.startVisibleColumn,1,1,1,500,"none",!0,!0,null),h=new b.fe(2e3),c=(0,y.UW)(d,h);let u;u=k?k.createHTML(h.build()):h.build();const g=document.createElement("span");g.setAttribute(x,String(e)),g.setAttribute(L,""),g.setAttribute("role","listitem"),g.tabIndex=0,g.className="sticky-line-content",g.classList.add(`stickyLine${t}`),g.style.lineHeight=`${this._lineHeight}px`,g.innerHTML=u;const p=document.createElement("span");p.setAttribute(x,String(e)),p.setAttribute("data-sticky-is-line-number",""),p.className="sticky-line-number",p.style.lineHeight=`${this._lineHeight}px`;const m=n.contentLeft;p.style.width=`${m}px`;const f=document.createElement("span");1===a.renderType||3===a.renderType&&t%10===0?f.innerText=t.toString():2===a.renderType&&(f.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),f.className="sticky-line-number-inner",f.style.lineHeight=`${this._lineHeight}px`,f.style.width=`${n.lineNumbersWidth}px`,f.style.paddingLeft=`${n.lineNumbersLeft}px`,p.appendChild(f);const _=this._renderFoldingIconForLine(i,t);_&&p.appendChild(_.domNode),this._editor.applyFontInfo(g),this._editor.applyFontInfo(f),p.style.lineHeight=`${this._lineHeight}px`,g.style.lineHeight=`${this._lineHeight}px`,p.style.height=`${this._lineHeight}px`,g.style.height=`${this._lineHeight}px`;const w=new N(e,t,g,p,_,c.characterMapping,g.scrollWidth);return this._updateTopAndZIndexOfStickyLine(w)}_updateTopAndZIndexOfStickyLine(e){var t;const i=e.index,n=e.lineDomNode,s=e.lineNumberDomNode,o=i===this._lineNumbers.length-1;n.style.zIndex=o?"0":"1",s.style.zIndex=o?"0":"1";const r=`${i*this._lineHeight+this._lastLineRelativePosition+((null===(t=e.foldingIcon)||void 0===t?void 0:t.isCollapsed)?1:0)}px`,a=i*this._lineHeight+"px";return n.style.top=o?r:a,s.style.top=o?r:a,e}_renderFoldingIconForLine(e,t){const i=this._editor.getOption(110);if(!e||"never"===i)return;const n=e.regions,s=n.findRange(t),o=n.getStartLineNumber(s);if(!(t===o))return;const r=n.isCollapsed(s),a=new T(r,o,n.getEndLineNumber(s),this._lineHeight);return a.setVisible(!!this._isOnGlyphMargin||(r||"always"===i)),a.domNode.setAttribute(D,""),a}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:null}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e<this._renderedStickyLines.length&&this._renderedStickyLines[e].lineDomNode.focus()}getEditorPositionFromNode(e){if(!e||e.children.length>0)return null;const t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;const i=(0,f.rk)(t.characterMapping,e,0);return new v.y(t.lineNumber,i)}getLineNumberFromChildDomNode(e){var t,i;return null!==(i=null===(t=this._getRenderedStickyLineFromChildDomNode(e))||void 0===t?void 0:t.lineNumber)&&void 0!==i?i:null}_getRenderedStickyLineFromChildDomNode(e){const t=this.getLineIndexFromChildDomNode(e);return null===t||t<0||t>=this._renderedStickyLines.length?null:this._renderedStickyLines[t]}getLineIndexFromChildDomNode(e){const t=this._getAttributeValue(e,x);return t?parseInt(t,10):null}isInStickyLine(e){return void 0!==this._getAttributeValue(e,L)}isInFoldingIconDomNode(e){return void 0!==this._getAttributeValue(e,D)}_getAttributeValue(e,t){for(;e&&e!==this._rootDomNode;){const i=e.getAttribute(t);if(null!==i)return i;e=e.parentElement}}}class N{constructor(e,t,i,n,s,o,r){this.index=e,this.lineNumber=t,this.lineDomNode=i,this.lineNumberDomNode=n,this.foldingIcon=s,this.characterMapping=o,this.scrollWidth=r}}class T{constructor(e,t,i,n){this.isCollapsed=e,this.foldingStartLine=t,this.foldingEndLine=i,this.dimension=n,this.domNode=document.createElement("div"),this.domNode.style.width=`${n}px`,this.domNode.style.height=`${n}px`,this.domNode.className=m.L.asClassName(e?w.k0:w.E0)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}var I=i(18447),M=i(90766),A=i(41234),R=i(17469),O=i(29999),P=i(44588),F=i(87784),B=i(76495),W=i(64383);class V{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}}class H{constructor(e,t,i){this.range=e,this.children=t,this.parent=i}}class z{constructor(e,t,i,n){this.uri=e,this.version=t,this.element=i,this.outlineProviderId=n}}var j,U,K=i(42522),G=i(63591),$=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},q=function(e,t){return function(i,n){t(i,n,e)}};!function(e){e.OUTLINE_MODEL="outlineModel",e.FOLDING_PROVIDER_MODEL="foldingProviderModel",e.INDENTATION_MODEL="indentationModel"}(j||(j={})),function(e){e[e.VALID=0]="VALID",e[e.INVALID=1]="INVALID",e[e.CANCELED=2]="CANCELED"}(U||(U={}));let Q=class extends h.jG{constructor(e,t,i,n){switch(super(),this._editor=e,this._languageConfigurationService=i,this._languageFeaturesService=n,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new M.ve(300)),this._updateOperation=this._register(new h.Cm),this._editor.getOption(115).defaultModel){case j.OUTLINE_MODEL:this._modelProviders.push(new Z(this._editor,n));case j.FOLDING_PROVIDER_MODEL:this._modelProviders.push(new ee(this._editor,t,n));case j.INDENTATION_MODEL:this._modelProviders.push(new J(this._editor,i))}}dispose(){this._modelProviders.forEach((e=>e.dispose())),this._updateOperation.clear(),this._cancelModelPromise(),super.dispose()}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}async update(e){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),await this._updateScheduler.trigger((async()=>{for(const t of this._modelProviders){const{statusPromise:i,modelPromise:n}=t.computeStickyModel(e);this._modelPromise=n;const s=await i;if(this._modelPromise!==n)return null;switch(s){case U.CANCELED:return this._updateOperation.clear(),null;case U.VALID:return t.stickyModel}}return null})).catch((e=>((0,W.dz)(e),null)))}};Q=$([q(2,G._Y),q(3,c.u)],Q);class Y extends h.jG{constructor(e){super(),this._editor=e,this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,U.INVALID}computeStickyModel(e){if(e.isCancellationRequested||!this.isProviderValid())return{statusPromise:this._invalid(),modelPromise:null};const t=(0,M.SS)((e=>this.createModelFromProvider(e)));return{statusPromise:t.then((t=>this.isModelValid(t)?e.isCancellationRequested?U.CANCELED:(this._stickyModel=this.createStickyModel(e,t),U.VALID):this._invalid())).then(void 0,(e=>((0,W.dz)(e),U.CANCELED))),modelPromise:t}}isModelValid(e){return!0}isProviderValid(){return!0}}let Z=class extends Y{constructor(e,t){super(e),this._languageFeaturesService=t}createModelFromProvider(e){return O.i9.create(this._languageFeaturesService.documentSymbolProvider,this._editor.getModel(),e)}createStickyModel(e,t){var i;const{stickyOutlineElement:n,providerID:s}=this._stickyModelFromOutlineModel(t,null===(i=this._stickyModel)||void 0===i?void 0:i.outlineProviderId),o=this._editor.getModel();return new z(o.uri,o.getVersionId(),n,s)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let i;if(K.f.first(e.children.values())instanceof O.e0){const n=K.f.find(e.children.values(),(e=>e.id===t));if(n)i=n.children;else{let n,s="",o=-1;for(const[t,i]of e.children.entries()){const e=this._findSumOfRangesOfGroup(i);e>o&&(n=i,o=e,s=i.id)}t=s,i=n.children}}else i=e.children;const n=[],s=Array.from(i.values()).sort(((e,t)=>{const i=new V(e.symbol.range.startLineNumber,e.symbol.range.endLineNumber),n=new V(t.symbol.range.startLineNumber,t.symbol.range.endLineNumber);return this._comparator(i,n)}));for(const o of s)n.push(this._stickyModelFromOutlineElement(o,o.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new H(void 0,n,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){const i=[];for(const s of e.children.values())if(s.symbol.selectionRange.startLineNumber!==s.symbol.range.endLineNumber)if(s.symbol.selectionRange.startLineNumber!==t)i.push(this._stickyModelFromOutlineElement(s,s.symbol.selectionRange.startLineNumber));else for(const e of s.children.values())i.push(this._stickyModelFromOutlineElement(e,s.symbol.selectionRange.startLineNumber));i.sort(((e,t)=>this._comparator(e.range,t.range)));const n=new V(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new H(n,i,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(const i of e.children.values())t+=this._findSumOfRangesOfGroup(i);return e instanceof O.LC?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};Z=$([q(1,c.u)],Z);class X extends Y{constructor(e){super(e),this._foldingLimitReporter=new P.B(e)}createStickyModel(e,t){const i=this._fromFoldingRegions(t),n=this._editor.getModel();return new z(n.uri,n.getVersionId(),i,void 0)}isModelValid(e){return null!==e}_fromFoldingRegions(e){const t=e.length,i=[],n=new H(void 0,[],void 0);for(let s=0;s<t;s++){const t=e.getParentIndex(s);let o;o=-1!==t?i[t]:n;const r=new H(new V(e.getStartLineNumber(s),e.getEndLineNumber(s)+1),[],o);o.children.push(r),i.push(r)}return n}}let J=class extends X{constructor(e,t){super(e),this._languageConfigurationService=t,this.provider=this._register(new B.hW(e.getModel(),this._languageConfigurationService,this._foldingLimitReporter))}async createModelFromProvider(e){return this.provider.compute(e)}};J=$([q(1,R.JZ)],J);let ee=class extends X{constructor(e,t,i){super(e),this._languageFeaturesService=i;const n=P.W.getFoldingRangeProviders(this._languageFeaturesService,e.getModel());n.length>0&&(this.provider=this._register(new F.M(e.getModel(),n,t,this._foldingLimitReporter,void 0)))}isProviderValid(){return void 0!==this.provider}async createModelFromProvider(e){var t,i;return null!==(i=null===(t=this.provider)||void 0===t?void 0:t.compute(e))&&void 0!==i?i:null}};ee=$([q(2,c.u)],ee);var te=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ie=function(e,t){return function(i,n){t(i,n,e)}};class ne{constructor(e,t,i){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=i}}let se=class extends h.jG{constructor(e,t,i){super(),this._languageFeaturesService=t,this._languageConfigurationService=i,this._onDidChangeStickyScroll=this._register(new A.vl),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new h.Cm),this._updateSoon=this._register(new M.uC((()=>this.update()),50)),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(115)&&this.readConfiguration()}))),this.readConfiguration()}readConfiguration(){this._sessionStore.clear();this._editor.getOption(115).enabled&&(this._sessionStore.add(this._editor.onDidChangeModel((()=>{this._model=null,this.updateStickyModelProvider(),this._onDidChangeStickyScroll.fire(),this.update()}))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas((()=>this.update()))),this._sessionStore.add(this._editor.onDidChangeModelContent((()=>this._updateSoon.schedule()))),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>this.update()))),this._sessionStore.add((0,h.s)((()=>{var e;null===(e=this._stickyModelProvider)||void 0===e||e.dispose(),this._stickyModelProvider=null}))),this.updateStickyModelProvider(),this.update())}getVersionId(){var e;return null===(e=this._model)||void 0===e?void 0:e.version}updateStickyModelProvider(){var e;null===(e=this._stickyModelProvider)||void 0===e||e.dispose(),this._stickyModelProvider=null;const t=this._editor;t.hasModel()&&(this._stickyModelProvider=new Q(t,(()=>this._updateSoon.schedule()),this._languageConfigurationService,this._languageFeaturesService))}async update(){var e;null===(e=this._cts)||void 0===e||e.dispose(!0),this._cts=new I.Q,await this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}async updateStickyModel(e){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization())return void(this._model=null);const t=await this._stickyModelProvider.update(e);e.isCancellationRequested||(this._model=t)}updateIndex(e){return-1===e?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,i,n,s){if(0===t.children.length)return;let o=s;const r=[];for(let d=0;d<t.children.length;d++){const e=t.children[d];e.range&&r.push(e.range.startLineNumber)}const a=this.updateIndex((0,p.El)(r,e.startLineNumber,((e,t)=>e-t))),l=this.updateIndex((0,p.El)(r,e.startLineNumber+n,((e,t)=>e-t)));for(let d=a;d<=l;d++){const r=t.children[d];if(!r)return;if(r.range){const t=r.range.startLineNumber,s=r.range.endLineNumber;e.startLineNumber<=s+1&&t-1<=e.endLineNumber&&t!==o&&(o=t,i.push(new ne(t,s-1,n+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,r,i,n+1,t))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,r,i,n,s)}}getCandidateStickyLinesIntersecting(e){var t,i;if(!(null===(t=this._model)||void 0===t?void 0:t.element))return[];let n=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,n,0,-1);const s=null===(i=this._editor._getViewModel())||void 0===i?void 0:i.getHiddenAreas();if(s)for(const o of s)n=n.filter((e=>!(e.startLineNumber>=o.startLineNumber&&e.endLineNumber<=o.endLineNumber+1)));return n}};se=te([ie(1,c.u),ie(2,R.JZ)],se);var oe,re=i(47508),ae=i(37927),le=i(36677),de=i(80538),he=i(60952),ce=i(32500),ue=i(47358),ge=i(52903),pe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},me=function(e,t){return function(i,n){t(i,n,e)}};let fe=oe=class extends h.jG{constructor(e,t,i,n,s,o,r){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=i,this._instaService=n,this._contextKeyService=r,this._sessionStore=new h.Cm,this._foldingModel=null,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._showEndForLine=null,this._stickyScrollWidget=new E(this._editor),this._stickyLineCandidateProvider=new se(this._editor,i,s),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=new S([],[],0),this._onDidResize(),this._readConfiguration();const a=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(115)||e.hasChanged(73)||e.hasChanged(67)||e.hasChanged(110))&&this._readConfiguration()}))),this._register(u.ko(a,u.Bx.CONTEXT_MENU,(async e=>{this._onContextMenu(u.zk(a),e)}))),this._stickyScrollFocusedContextKey=d.R.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=d.R.stickyScrollVisible.bindTo(this._contextKeyService);const l=this._register(u.w5(a));this._register(l.onDidBlur((e=>{!1===this._positionRevealed&&0===a.clientHeight?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()}))),this._register(l.onDidFocus((e=>{this.focus()}))),this._registerMouseListeners(),this._register(u.ko(a,u.Bx.MOUSE_DOWN,(e=>{this._onMouseDown=!0})))}static get(e){return e.getContribution(oe.ID)}_disposeFocusStickyScrollStore(){var e;this._stickyScrollFocusedContextKey.set(!1),null===(e=this._focusDisposableStore)||void 0===e||e.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown)return this._onMouseDown=!1,void this._editor.focus();!0!==this._stickyScrollFocusedContextKey.get()&&(this._focused=!0,this._focusDisposableStore=new h.Cm,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex<this._stickyScrollWidget.lineNumberCount-1&&this._focusNav(!0)}focusPrevious(){this._focusedStickyElementIndex>0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._reveaInEditor(e,(()=>this._editor.revealPosition(e)))}_revealLineInCenterIfOutsideViewport(e){this._reveaInEditor(e,(()=>this._editor.revealLineInCenterIfOutsideViewport(e.lineNumber,0)))}_reveaInEditor(e,t){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,t(),this._editor.setSelection(le.Q.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){const e=this._register(new h.Cm),t=this._register(new ae.gi(this._editor,{extractLineNumberFromMouseEvent:e=>{const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);return t?t.lineNumber:0}})),i=e=>{if(!this._editor.hasModel())return null;if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return null;const t=e.target.element;if(!t||t.innerText!==t.innerHTML)return null;const i=this._stickyScrollWidget.getEditorPositionFromNode(t);return i?{range:new le.Q(i.lineNumber,i.column,i.lineNumber,i.column+t.innerText.length),textElement:t}:null},n=this._stickyScrollWidget.getDomNode();this._register(u.b2(n,u.Bx.CLICK,(e=>{if(e.ctrlKey||e.altKey||e.metaKey)return;if(!e.leftButton)return;if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t)return;const i=new v.y(this._endLineNumbers[t],1);return void this._revealLineInCenterIfOutsideViewport(i)}if(this._stickyScrollWidget.isInFoldingIconDomNode(e.target)){const t=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);return void this._toggleFoldingRegionForLine(t)}if(!this._stickyScrollWidget.isInStickyLine(e.target))return;let t=this._stickyScrollWidget.getEditorPositionFromNode(e.target);if(!t){const i=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);if(null===i)return;t=new v.y(i,1)}this._revealPosition(t)}))),this._register(u.b2(n,u.Bx.MOUSE_MOVE,(e=>{if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t||null!==this._showEndForLine&&this._showEndForLine===t)return;return this._showEndForLine=t,void this._renderStickyScroll()}null!==this._showEndForLine&&(this._showEndForLine=null,this._renderStickyScroll())}))),this._register(u.ko(n,u.Bx.MOUSE_LEAVE,(e=>{null!==this._showEndForLine&&(this._showEndForLine=null,this._renderStickyScroll())}))),this._register(t.onMouseMoveOrRelevantKeyDown((([t,n])=>{const s=i(t);if(!s||!t.hasTriggerModifier||!this._editor.hasModel())return void e.clear();const{range:o,textElement:r}=s;if(o.equalsRange(this._stickyRangeProjectedOnEditor)){if("underline"===r.style.textDecoration)return}else this._stickyRangeProjectedOnEditor=o,e.clear();const a=new I.Q;let l;e.add((0,h.s)((()=>a.dispose(!0)))),(0,de.hE)(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new v.y(o.startLineNumber,o.startColumn+1),a.token).then((t=>{if(!a.token.isCancellationRequested)if(0!==t.length){this._candidateDefinitionsLength=t.length;const i=r;l!==i?(e.clear(),l=i,l.style.textDecoration="underline",e.add((0,h.s)((()=>{l.style.textDecoration="none"})))):l||(l=i,l.style.textDecoration="underline",e.add((0,h.s)((()=>{l.style.textDecoration="none"}))))}else e.clear()}))}))),this._register(t.onCancel((()=>{e.clear()}))),this._register(t.onExecute((async e=>{if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return;const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);t&&this._editor.hasModel()&&this._stickyRangeProjectedOnEditor&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:t.lineNumber,column:1})),this._instaService.invokeFunction(he.U,e,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(e,t){const i=new ue.P(e,t);this._contextMenuService.showContextMenu({menuId:r.D8.StickyScrollContext,getAnchor:()=>i})}_toggleFoldingRegionForLine(e){if(!this._foldingModel||null===e)return;const t=this._stickyScrollWidget.getRenderedStickyLine(e),i=null===t||void 0===t?void 0:t.foldingIcon;if(!i)return;(0,ge.bC)(this._foldingModel,Number.MAX_VALUE,[e]),i.isCollapsed=!i.isCollapsed;const n=(i.isCollapsed?this._editor.getTopForLineNumber(i.foldingEndLine):this._editor.getTopForLineNumber(i.foldingStartLine))-this._editor.getOption(67)*t.index+1;this._editor.setScrollTop(n),this._renderStickyScroll(e)}_readConfiguration(){const e=this._editor.getOption(115);if(!1===e.enabled)return this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),void(this._enabled=!1);e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&(this._showEndForLine=null,this._renderStickyScroll())}))),this._sessionStore.add(this._editor.onDidLayoutChange((()=>this._onDidResize()))),this._sessionStore.add(this._editor.onDidChangeModelTokens((e=>this._onTokensChange(e)))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll((()=>{this._showEndForLine=null,this._renderStickyScroll()}))),this._enabled=!0);2===this._editor.getOption(68).renderType&&this._sessionStore.add(this._editor.onDidChangeCursorPosition((()=>{this._showEndForLine=null,this._renderStickyScroll(0)})))}_needsUpdate(e){const t=this._stickyScrollWidget.getCurrentLines();for(const i of t)for(const t of e.ranges)if(i>=t.fromLineNumber&&i<=t.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll(0)}_onDidResize(){const e=this._editor.getLayoutInfo().height/this._editor.getOption(67);this._maxStickyLines=Math.round(.25*e)}async _renderStickyScroll(e){var t,i;const n=this._editor.getModel();if(!n||n.isTooLargeForTokenization())return this._foldingModel=null,void this._stickyScrollWidget.setState(void 0,null);const s=this._stickyLineCandidateProvider.getVersionId();if(void 0===s||s===n.getVersionId())if(this._foldingModel=null!==(i=await(null===(t=P.W.get(this._editor))||void 0===t?void 0:t.getFoldingModel()))&&void 0!==i?i:null,this._widgetState=this.findScrollWidgetState(),this._stickyScrollVisibleContextKey.set(!(0===this._widgetState.startLineNumbers.length)),this._focused)if(-1===this._focusedStickyElementIndex)this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,-1!==this._focusedStickyElementIndex&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const t=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];if(this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e),0===this._stickyScrollWidget.lineNumberCount)this._focusedStickyElementIndex=-1;else{this._stickyScrollWidget.lineNumbers.includes(t)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}}else this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e)}findScrollWidgetState(){const e=this._editor.getOption(67),t=Math.min(this._maxStickyLines,this._editor.getOption(115).maxLineCount),i=this._editor.getScrollTop();let n=0;const s=[],o=[],r=this._editor.getVisibleRanges();if(0!==r.length){const a=new V(r[0].startLineNumber,r[r.length-1].endLineNumber),l=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(a);for(const r of l){const a=r.startLineNumber,l=r.endLineNumber,d=r.nestingDepth;if(l-a>0){const r=(d-1)*e,h=d*e,c=this._editor.getBottomForLineNumber(a)-i,u=this._editor.getTopForLineNumber(l)-i,g=this._editor.getBottomForLineNumber(l)-i;if(r>u&&r<=g){s.push(a),o.push(l+1),n=g-h;break}if(h>c&&h<=g&&(s.push(a),o.push(l+1)),s.length===t)break}}}return this._endLineNumbers=o,new S(s,o,n,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};fe.ID="store.contrib.stickyScrollController",fe=oe=pe([me(1,re.Z),me(2,c.u),me(3,G._Y),me(4,R.JZ),me(5,ce.U),me(6,l.fN)],fe);class _e extends r.L{constructor(){super({id:"editor.action.toggleStickyScroll",title:{...(0,s.aS)("toggleEditorStickyScroll","Toggle Editor Sticky Scroll"),mnemonicTitle:(0,s.kg)({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Editor Sticky Scroll")},category:o.View,toggled:{condition:l.M$.equals("config.editor.stickyScroll.enabled",!0),title:(0,s.kg)("stickyScroll","Sticky Scroll"),mnemonicTitle:(0,s.kg)({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:r.D8.CommandPalette},{id:r.D8.MenubarAppearanceMenu,group:"4_editor",order:3},{id:r.D8.StickyScrollContext}]})}async run(e){const t=e.get(a.pG),i=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",i)}}const ve=100;class be extends n.qO{constructor(){super({id:"editor.action.focusStickyScroll",title:{...(0,s.aS)("focusStickyScroll","Focus Sticky Scroll"),mnemonicTitle:(0,s.kg)({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll")},precondition:l.M$.and(l.M$.has("config.editor.stickyScroll.enabled"),d.R.stickyScrollVisible),menu:[{id:r.D8.CommandPalette}]})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.focus()}}class Ce extends n.qO{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:(0,s.aS)("selectNextStickyScrollLine.title","Select next sticky scroll line"),precondition:d.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:18}})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.focusNext()}}class ye extends n.qO{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:(0,s.aS)("selectPreviousStickyScrollLine.title","Select previous sticky scroll line"),precondition:d.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:16}})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.focusPrevious()}}class we extends n.qO{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:(0,s.aS)("goToFocusedStickyScrollLine.title","Go to focused sticky scroll line"),precondition:d.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:3}})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.goToFocused()}}class Se extends n.qO{constructor(){super({id:"editor.action.selectEditor",title:(0,s.aS)("selectEditor.title","Select Editor"),precondition:d.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:9}})}runEditorCommand(e,t){var i;null===(i=fe.get(t))||void 0===i||i.selectEditor()}}(0,n.HW)(fe.ID,fe,1),(0,r.ug)(_e),(0,r.ug)(be),(0,r.ug)(ye),(0,r.ug)(Ce),(0,r.ug)(we),(0,r.ug)(Se)},51173:(e,t,i)=>{"use strict";i.d(t,{C:()=>a,O:()=>r});var n=i(25890),s=i(26690),o=i(91508);class r{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}class a{constructor(e,t,i,n,o,r,l=s.Nd.default,d=void 0){this.clipboardText=d,this._snippetCompareFn=a._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=n,this._options=o,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=l,"top"===r?this._snippetCompareFn=a._compareCompletionItemsSnippetsUp:"bottom"===r&&(this._snippetCompareFn=a._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}get items(){return this._ensureCachedState(),this._filteredItems}getItemsByProvider(){return this._ensureCachedState(),this._itemsByProvider}getIncompleteProvider(){this._ensureCachedState();const e=new Set;for(const[t,i]of this.getItemsByProvider())i.length>0&&i[0].container.incomplete&&e.add(t);return e}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let r="",a="";const l=1===this._refilterKind?this._items:this._filteredItems,d=[],h=!this._options.filterGraceful||l.length>2e3?s.dt:s.uU;for(let n=0;n<l.length;n++){const c=l[n];if(c.isInvalid)continue;const u=this._itemsByProvider.get(c.provider);u?u.push(c):this._itemsByProvider.set(c.provider,[c]);const g=c.position.column-c.editStart.column,p=g+i-(c.position.column-this._column);if(r.length!==p&&(r=0===p?"":t.slice(-p),a=r.toLowerCase()),c.word=r,0===p)c.score=s.ne.Default;else{let e=0;for(;e<g;){const t=r.charCodeAt(e);if(32!==t&&9!==t)break;e+=1}if(e>=p)c.score=s.ne.Default;else if("string"===typeof c.completion.filterText){const t=h(r,a,e,c.completion.filterText,c.filterTextLow,0,this._fuzzyScoreOptions);if(!t)continue;0===(0,o.W1)(c.completion.filterText,c.textLabel)?c.score=t:(c.score=(0,s.Jo)(r,a,e,c.textLabel,c.labelLow,0),c.score[0]=t[0])}else{const t=h(r,a,e,c.textLabel,c.labelLow,0,this._fuzzyScoreOptions);if(!t)continue;c.score=t}}c.idx=n,c.distance=this._wordDistance.distance(c.position,c.completion),d.push(c),e.push(c.textLabel.length)}this._filteredItems=d.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?(0,n.SO)(e.length-.85,e,((e,t)=>e-t)):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return a._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return a._compareCompletionItems(e,t)}}},48116:(e,t,i)=>{"use strict";i.d(t,{aR:()=>L,dt:()=>C,f3:()=>k,l1:()=>w,ob:()=>b,p3:()=>N,r3:()=>T});var n=i(18447),s=i(64383),o=i(26690),r=i(5662),a=i(78381),l=i(631),d=i(79400),h=i(83069),c=i(36677),u=i(18938),g=i(29319),p=i(31629),m=i(27195),f=i(50091),_=i(32848),v=i(56942);const b={Visible:i(89100).dg,HasFocusedSuggestion:new _.N1("suggestWidgetHasFocusedSuggestion",!1,(0,p.kg)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new _.N1("suggestWidgetDetailsVisible",!1,(0,p.kg)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new _.N1("suggestWidgetMultipleSuggestions",!1,(0,p.kg)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new _.N1("suggestionMakesTextEdit",!0,(0,p.kg)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new _.N1("acceptSuggestionOnEnter",!0,(0,p.kg)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new _.N1("suggestionHasInsertAndReplaceRange",!1,(0,p.kg)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new _.N1("suggestionInsertMode",void 0,{type:"string",description:(0,p.kg)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new _.N1("suggestionCanResolve",!1,(0,p.kg)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},C=new m.D8("suggestWidgetStatusBar");class y{constructor(e,t,i,n){var s;this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=o.ne.Default,this.distance=0,this.textLabel="string"===typeof t.label?t.label:null===(s=t.label)||void 0===s?void 0:s.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,c.Q.isIRange(t.range)?(this.editStart=new h.y(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new h.y(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new h.y(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||c.Q.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new h.y(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new h.y(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new h.y(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||c.Q.spansMultipleLines(t.range.insert)||c.Q.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!==typeof n.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return void 0!==this._resolveDuration}get resolveDuration(){return void 0!==this._resolveDuration?this._resolveDuration:-1}async resolve(e){if(!this._resolveCache){const t=e.onCancellationRequested((()=>{this._resolveCache=void 0,this._resolveDuration=void 0})),i=new a.W(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then((e=>{Object.assign(this.completion,e),this._resolveDuration=i.elapsed()}),(e=>{(0,s.MB)(e)&&(this._resolveCache=void 0,this._resolveDuration=void 0)})).finally((()=>{t.dispose()}))}return this._resolveCache}}class w{constructor(e=2,t=new Set,i=new Set,n=new Map,s=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=s}}let S;function k(){return S}w.default=new w;class x{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}async function L(e,t,i,o=w.default,l={triggerKind:0},d=n.X.None){const h=new a.W;i=i.clone();const u=t.getWordAtPosition(i),p=u?new c.Q(i.lineNumber,u.startColumn,i.lineNumber,u.endColumn):c.Q.fromPositions(i),m={replace:p,insert:p.setEndPosition(i.lineNumber,i.column)},f=[],_=new r.Cm,v=[];let b=!1;const C=(e,t,n)=>{var s,a,l;let d=!1;if(!t)return d;for(const r of t.suggestions)if(!o.kindFilter.has(r.kind)){if(!o.showDeprecated&&(null===(s=null===r||void 0===r?void 0:r.tags)||void 0===s?void 0:s.includes(1)))continue;r.range||(r.range=m),r.sortText||(r.sortText="string"===typeof r.label?r.label:r.label.label),!b&&r.insertTextRules&&4&r.insertTextRules&&(b=g.fr.guessNeedsClipboard(r.insertText)),f.push(new y(i,r,t,e)),d=!0}return(0,r.Xm)(t)&&_.add(t),v.push({providerName:null!==(a=e._debugDisplayName)&&void 0!==a?a:"unknown_provider",elapsedProvider:null!==(l=t.duration)&&void 0!==l?l:-1,elapsedOverall:n.elapsed()}),d},k=(async()=>{if(!S||o.kindFilter.has(27))return;const e=o.providerItemsToReuse.get(S);if(e)return void e.forEach((e=>f.push(e)));if(o.providerFilter.size>0&&!o.providerFilter.has(S))return;const n=new a.W,s=await S.provideCompletionItems(t,i,l,d);C(S,s,n)})();for(const n of e.orderedGroups(t)){let e=!1;if(await Promise.all(n.map((async n=>{if(o.providerItemsToReuse.has(n)){const t=o.providerItemsToReuse.get(n);return t.forEach((e=>f.push(e))),void(e=e||t.length>0)}if(!(o.providerFilter.size>0)||o.providerFilter.has(n))try{const s=new a.W,o=await n.provideCompletionItems(t,i,l,d);e=C(n,o,s)||e}catch(r){(0,s.M_)(r)}}))),e||d.isCancellationRequested)break}return await k,d.isCancellationRequested?(_.dispose(),Promise.reject(new s.AL)):new x(f.sort((L=o.snippetSortOrder,E.get(L))),b,{entries:v,elapsed:h.elapsed()},_);var L}function D(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.textLabel<t.textLabel?-1:e.textLabel>t.textLabel?1:e.completion.kind-t.completion.kind}const E=new Map;function N(e,t){var i;null===(i=e.getContribution("editor.contrib.suggestController"))||void 0===i||i.triggerSuggest((new Set).add(t),void 0,!0)}E.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return D(e,t)})),E.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return D(e,t)})),E.set(1,D),f.w.registerCommand("_executeCompletionItemProvider",(async(e,...t)=>{const[i,s,o,r]=t;(0,l.j)(d.r.isUri(i)),(0,l.j)(h.y.isIPosition(s)),(0,l.j)("string"===typeof o||!o),(0,l.j)("number"===typeof r||!r);const{completionProvider:a}=e.get(v.u),c=await e.get(u.b).createModelReference(i);try{const e={incomplete:!1,suggestions:[]},t=[],i=c.object.textEditorModel.validatePosition(s),l=await L(a,c.object.textEditorModel,i,void 0,{triggerCharacter:null!==o&&void 0!==o?o:void 0,triggerKind:o?1:0});for(const s of l.items)t.length<(null!==r&&void 0!==r?r:0)&&t.push(s.resolve(n.X.None)),e.incomplete=e.incomplete||s.container.incomplete,e.suggestions.push(s.completion);try{return await Promise.all(t),e}finally{setTimeout((()=>l.disposable.dispose()),100)}}finally{c.dispose()}}));class T{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}},24518:(e,t,i)=>{"use strict";i.d(t,{D:()=>Ze});var n,s=i(11007),o=i(25890),r=i(18447),a=i(64383),l=i(41234),d=i(42539),h=i(5662),c=i(98067),u=i(78381),g=i(631),p=i(55190),m=i(31450),f=i(7085),_=i(83069),v=i(36677),b=i(60002),C=i(30936),y=i(29319),w=i(88415),S=i(32848),k=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},x=function(e,t){return function(i,n){t(i,n,e)}};let L=n=class{constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=n.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration((e=>e.hasChanged(123)&&this._update())),this._update()}dispose(){var e;this._configListener.dispose(),null===(e=this._selectionListener)||void 0===e||e.dispose(),this._ckAtEnd.reset()}_update(){const e="on"===this._editor.getOption(123);if(this._enabled!==e)if(this._enabled=e,this._enabled){const e=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const e=this._editor.getModel(),t=this._editor.getSelection(),i=e.getWordAtPosition(t.getStartPosition());i?this._ckAtEnd.set(i.endColumn===t.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};L.AtEnd=new S.N1("atEndOfWord",!1),L=n=k([x(1,S.fN)],L);var D,E=i(31629),N=i(50091),T=i(63591),I=i(18801),M=i(48116),A=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},R=function(e,t){return function(i,n){t(i,n,e)}};let O=D=class{constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=D.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){var e;this._ckOtherSuggestions.reset(),null===(e=this._listener)||void 0===e||e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},i){if(0===e.items.length)return void this.reset();D._moveIndex(!0,e,t)!==t?(this._acceptNext=i,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition((()=>{this._ignore||this.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,i){let n=i;for(let s=t.items.length;s>0&&(n=(n+t.items.length+(e?1:-1))%t.items.length,n!==i)&&t.items[n].completion.additionalTextEdits;s--);return n}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=D._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};O.OtherSuggestions=new S.N1("hasOtherSuggestions",!1),O=D=A([R(1,S.fN)],O);var P=i(60534);class F{constructor(e,t,i,n){this._disposables=new h.Cm,this._disposables.add(i.onDidSuggest((e=>{0===e.completionModel.items.length&&this.reset()}))),this._disposables.add(i.onDidCancel((e=>{this.reset()}))),this._disposables.add(t.onDidShow((()=>this._onItem(t.getFocusedItem())))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((s=>{if(this._active&&!t.isFrozen()&&0!==i.state){const t=s.charCodeAt(s.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&n(this._active.item)}})))}_onItem(e){if(!e||!(0,o.EI)(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new P.y;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}var B=i(96299);class W{constructor(e,t){this._disposables=new h.Cm,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType((()=>{if(this._locked||!e.hasModel())return;const t=e.getSelections(),i=t.length;let n=!1;for(let e=0;e<i;e++)if(!t[e].isEmpty()){n=!0;break}if(!n)return void(0!==this._lastOvertyped.length&&(this._lastOvertyped.length=0));this._lastOvertyped=[];const s=e.getModel();for(let e=0;e<i;e++){const i=t[e];if(s.getValueLengthInRange(i)>W._maxSelectionLength)return;this._lastOvertyped[e]={value:s.getValueInRange(i),multiline:i.startLineNumber!==i.endLineNumber}}}))),this._disposables.add(t.onDidTrigger((e=>{this._locked=!0}))),this._disposables.add(t.onDidCancel((e=>{this._locked=!1})))}getLastOvertypedInfo(e){if(e>=0&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}dispose(){this._disposables.dispose()}}W._maxSelectionLength=51200;var V=i(8597),H=(i(97791),i(93090)),z=i(90766),j=i(1592),U=i(91508),K=i(29163),G=i(11799),$=i(43878),q=i(27195),Q=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Y=function(e,t){return function(i,n){t(i,n,e)}};class Z extends $.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();this.label&&(this.label.textContent=(0,E.kg)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,Z.symbolPrintEnter(e)))}static symbolPrintEnter(e){var t;return null===(t=e.getLabel())||void 0===t?void 0:t.replace(/\benter\b/gi,"\u23ce")}}let X=class{constructor(e,t,i,n,s){this._menuId=t,this._menuService=n,this._contextKeyService=s,this._menuDisposables=new h.Cm,this.element=V.BC(e,V.$(".suggest-status-bar"));const o=e=>e instanceof q.Xe?i.createInstance(Z,e,void 0):void 0;this._leftActions=new G.E(this.element,{actionViewItemProvider:o}),this._rightActions=new G.E(this.element,{actionViewItemProvider:o}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this._leftActions.dispose(),this._rightActions.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{const t=[],i=[];for(const[n,s]of e.getActions())"left"===n?t.push(...s):i.push(...s);this._leftActions.clear(),this._leftActions.push(t),this._rightActions.clear(),this._rightActions.push(i)};this._menuDisposables.add(e.onDidChange((()=>t()))),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};X=Q([Y(2,T._Y),Y(3,q.ez),Y(4,S.fN)],X);i(93409);var J=i(9711),ee=i(85845),te=i(86723),ie=i(47612),ne=i(88807),se=i(31295),oe=i(10350),re=i(25689),ae=i(16980),le=i(20492),de=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},he=function(e,t){return function(i,n){t(i,n,e)}};function ce(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let ue=class{constructor(e,t){this._editor=e,this._onDidClose=new l.vl,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new l.vl,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new h.Cm,this._renderDisposeable=new h.Cm,this._borderWidth=1,this._size=new V.fg(330,0),this.domNode=V.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(le.T,{editor:e}),this._body=V.$(".body"),this._scrollbar=new se.MU(this._body,{alwaysConsumeMouseWheel:!0}),V.BC(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=V.BC(this._body,V.$(".header")),this._close=V.BC(this._header,V.$("span"+re.L.asCSSSelector(oe.W.close))),this._close.title=E.kg("details.close","Close"),this._type=V.BC(this._header,V.$("p.type")),this._docs=V.BC(this._body,V.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._configureFont()})))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(50),i=t.getMassagedFontFamily(),n=e.get(119)||t.fontSize,s=e.get(120)||t.lineHeight,o=t.fontWeight,r=`${n}px`,a=`${s}px`;this.domNode.style.fontSize=r,this.domNode.style.lineHeight=""+s/n,this.domNode.style.fontWeight=o,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=a,this._close.style.width=a}getLayoutInfo(){const e=this._editor.getOption(120)||this._editor.getOption(50).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=E.kg("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){var i,n;this._renderDisposeable.clear();let{detail:s,documentation:o}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}\n`,t+=`prefix: ${null!==(i=e.word)&&void 0!==i?i:"(no prefix)"}\n`,t+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}\n`,t+=`distance: ${e.distance} (localityBonus-setting)\n`,t+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`,t+=`commit_chars: ${null===(n=e.completion.commitCharacters)||void 0===n?void 0:n.join("")}\n`,o=(new ae.Bc).appendCodeblock("empty",t),s=`Provider: ${e.provider._debugDisplayName}`}if(t||ce(e)){if(this.domNode.classList.remove("no-docs","no-type"),s){const e=s.length>1e5?`${s.substr(0,1e5)}\u2026`:s;this._type.textContent=e,this._type.title=e,V.WU(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(e))}else V.w_(this._type),this._type.title="",V.jD(this._type),this.domNode.classList.add("no-type");if(V.w_(this._docs),"string"===typeof o)this._docs.classList.remove("markdown-docs"),this._docs.textContent=o;else if(o){this._docs.classList.add("markdown-docs"),V.w_(this._docs);const e=this._markdownRenderer.render(o);this._docs.appendChild(e.element),this._renderDisposeable.add(e),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync((()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)})))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=e=>{e.preventDefault(),e.stopPropagation()},this._close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(e,t){const i=new V.fg(e,t);V.fg.equals(i,this._size)||(this._size=i,V.Ej(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};ue=de([he(1,T._Y)],ue);class ge{constructor(e,t){let i,n;this.widget=e,this._editor=t,this.allowEditorOverflow=!0,this._disposables=new h.Cm,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new ne.v,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let s=0,o=0;this._disposables.add(this._resizable.onDidWillResize((()=>{i=this._topLeft,n=this._resizable.size}))),this._disposables.add(this._resizable.onDidResize((e=>{if(i&&n){this.widget.layout(e.dimension.width,e.dimension.height);let t=!1;e.west&&(o=n.width-e.dimension.width,t=!0),e.north&&(s=n.height-e.dimension.height,t=!0),t&&this._applyTopLeft({top:i.top+s,left:i.left+o})}e.done&&(i=void 0,n=void 0,s=0,o=0,this._userSize=e.dimension)}))),this._disposables.add(this.widget.onDidChangeContents((()=>{var e;this._anchorBox&&this._placeAtAnchor(this._anchorBox,null!==(e=this._userSize)&&void 0!==e?e:this.widget.size,this._preferAlignAtTop)})))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){var i;const n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,null!==(i=this._userSize)&&void 0!==i?i:this.widget.size,t)}_placeAtAnchor(e,t,i){var n;const s=V.tG(this.getDomNode().ownerDocument.body),o=this.widget.getLayoutInfo(),r=new V.fg(220,2*o.lineHeight),a=e.top,l=function(){const i=s.width-(e.left+e.width+o.borderWidth+o.horizontalPadding),n=-o.borderWidth+e.left+e.width,l=new V.fg(i,s.height-e.top-o.borderHeight-o.verticalPadding),d=l.with(void 0,e.top+e.height-o.borderHeight-o.verticalPadding);return{top:a,left:n,fit:i-t.width,maxSizeTop:l,maxSizeBottom:d,minSize:r.with(Math.min(i,r.width))}}(),d=function(){const i=e.left-o.borderWidth-o.horizontalPadding,n=Math.max(o.horizontalPadding,e.left-t.width-o.borderWidth),l=new V.fg(i,s.height-e.top-o.borderHeight-o.verticalPadding),d=l.with(void 0,e.top+e.height-o.borderHeight-o.verticalPadding);return{top:a,left:n,fit:i-t.width,maxSizeTop:l,maxSizeBottom:d,minSize:r.with(Math.min(i,r.width))}}(),h=function(){const i=e.left,n=-o.borderWidth+e.top+e.height,a=new V.fg(e.width-o.borderHeight,s.height-e.top-e.height-o.verticalPadding);return{top:n,left:i,fit:a.height-t.height,maxSizeBottom:a,maxSizeTop:a,minSize:r.with(a.width)}}(),c=[l,d,h],u=null!==(n=c.find((e=>e.fit>=0)))&&void 0!==n?n:c.sort(((e,t)=>t.fit-e.fit))[0],g=e.top+e.height-o.borderHeight;let p,m=t.height;const f=Math.max(u.maxSizeTop.height,u.maxSizeBottom.height);let _;m>f&&(m=f),i?m<=u.maxSizeTop.height?(p=!0,_=u.maxSizeTop):(p=!1,_=u.maxSizeBottom):m<=u.maxSizeBottom.height?(p=!1,_=u.maxSizeBottom):(p=!0,_=u.maxSizeTop);let{top:v,left:b}=u;!p&&m>e.height&&(v=g-m);const C=this._editor.getDomNode();if(C){const e=C.getBoundingClientRect();v-=e.top,b-=e.left}this._applyTopLeft({left:b,top:v}),this._resizable.enableSashes(!p,u===l,p,u!==l),this._resizable.minSize=u.minSize,this._resizable.maxSize=_,this._resizable.layout(m,Math.min(_.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this._editor.layoutOverlayWidget(this)}}var pe,me=i(21852),fe=i(26690),_e=i(79400),ve=i(62083),be=i(36456),Ce=i(89403),ye=i(83941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(pe||(pe={}));const we=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function Se(e,t,i,n,s){if(s)return[`codicon-${s.id}`,"predefined-file-icon"];const o=n===pe.ROOT_FOLDER?["rootfolder-icon"]:n===pe.FOLDER?["folder-icon"]:["file-icon"];if(i){let s;if(i.scheme===be.ny.data){s=Ce.B6.parseMetaData(i).get(Ce.B6.META_DATA_LABEL)}else{const e=i.path.match(we);e?(s=ke(e[2].toLowerCase()),e[1]&&o.push(`${ke(e[1].toLowerCase())}-name-dir-icon`)):s=ke(i.authority.toLowerCase())}if(n===pe.ROOT_FOLDER)o.push(`${s}-root-name-folder-icon`);else if(n===pe.FOLDER)o.push(`${s}-name-folder-icon`);else{if(s){if(o.push(`${s}-name-file-icon`),o.push("name-file-icon"),s.length<=255){const e=s.split(".");for(let t=1;t<e.length;t++)o.push(`${e.slice(t).join(".")}-ext-file-icon`)}o.push("ext-file-icon")}const n=function(e,t,i){if(!i)return null;let n=null;if(i.scheme===be.ny.data){const e=Ce.B6.parseMetaData(i).get(Ce.B6.META_DATA_MIME);e&&(n=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(i);t&&(n=t.getLanguageId())}if(n&&n!==ye.vH)return n;return t.guessLanguageIdByFilepathOrFirstLine(i)}(e,t,i);n&&o.push(`${ke(n)}-lang-file-icon`)}}return o}function ke(e){return e.replace(/[\11\12\14\15\40]/g,"/")}var xe,Le=i(23750),De=i(10154),Ee=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Ne=function(e,t){return function(i,n){t(i,n,e)}};function Te(e){return`suggest-aria-id:${e}`}const Ie=(0,i(61394).pU)("suggest-more-info",oe.W.chevronRight,E.kg("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),Me=new((xe=class{extract(e,t){if(e.textLabel.match(xe._regexStrict))return t[0]=e.textLabel,!0;if(e.completion.detail&&e.completion.detail.match(xe._regexStrict))return t[0]=e.completion.detail,!0;if(e.completion.documentation){const i="string"===typeof e.completion.documentation?e.completion.documentation:e.completion.documentation.value,n=xe._regexRelaxed.exec(i);if(n&&(0===n.index||n.index+n[0].length===i.length))return t[0]=n[0],!0}return!1}})._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,xe._regexStrict=new RegExp(`^${xe._regexRelaxed.source}$`,"i"),xe);let Ae=class{constructor(e,t,i,n){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=n,this._onDidToggleDetails=new l.vl,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=new h.Cm,i=e;i.classList.add("show-file-icons");const n=(0,V.BC)(e,(0,V.$)(".icon")),s=(0,V.BC)(n,(0,V.$)("span.colorspan")),o=(0,V.BC)(e,(0,V.$)(".contents")),r=(0,V.BC)(o,(0,V.$)(".main")),a=(0,V.BC)(r,(0,V.$)(".icon-label.codicon")),l=(0,V.BC)(r,(0,V.$)("span.left")),d=(0,V.BC)(r,(0,V.$)("span.right")),c=new me.s(l,{supportHighlights:!0,supportIcons:!0});t.add(c);const u=(0,V.BC)(l,(0,V.$)("span.signature-label")),g=(0,V.BC)(l,(0,V.$)("span.qualifier-label")),p=(0,V.BC)(d,(0,V.$)("span.details-label")),m=(0,V.BC)(d,(0,V.$)("span.readMore"+re.L.asCSSSelector(Ie)));m.title=E.kg("readMore","Read More");return{root:i,left:l,right:d,icon:n,colorspan:s,iconLabel:c,iconContainer:a,parametersLabel:u,qualifierLabel:g,detailsLabel:p,readMore:m,disposables:t,configureFont:()=>{const e=this._editor.getOptions(),t=e.get(50),s=t.getMassagedFontFamily(),o=t.fontFeatureSettings,a=e.get(119)||t.fontSize,l=e.get(120)||t.lineHeight,d=t.fontWeight,h=`${a}px`,c=`${l}px`,u=`${t.letterSpacing}px`;i.style.fontSize=h,i.style.fontWeight=d,i.style.letterSpacing=u,r.style.fontFamily=s,r.style.fontFeatureSettings=o,r.style.lineHeight=c,n.style.height=c,n.style.width=c,m.style.height=c,m.style.width=c}}}renderElement(e,t,i){i.configureFont();const{completion:n}=e;i.root.id=Te(t),i.colorspan.style.backgroundColor="";const s={labelEscapeNewLines:!0,matches:(0,fe.WJ)(e.score)},o=[];if(19===n.kind&&Me.extract(e,o))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=o[0];else if(20===n.kind&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const t=Se(this._modelService,this._languageService,_e.r.from({scheme:"fake",path:e.textLabel}),pe.FILE),o=Se(this._modelService,this._languageService,_e.r.from({scheme:"fake",path:n.detail}),pe.FILE);s.extraClasses=t.length>o.length?t:o}else 23===n.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",s.extraClasses=[Se(this._modelService,this._languageService,_e.r.from({scheme:"fake",path:e.textLabel}),pe.FOLDER),Se(this._modelService,this._languageService,_e.r.from({scheme:"fake",path:n.detail}),pe.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...re.L.asClassNameArray(ve.HC.toIcon(n.kind))));n.tags&&n.tags.indexOf(1)>=0&&(s.extraClasses=(s.extraClasses||[]).concat(["deprecated"]),s.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,s),"string"===typeof n.label?(i.parametersLabel.textContent="",i.detailsLabel.textContent=Re(n.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=Re(n.label.detail||""),i.detailsLabel.textContent=Re(n.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(118).showInlineDetails?(0,V.WU)(i.detailsLabel):(0,V.jD)(i.detailsLabel),ce(e)?(i.right.classList.add("can-expand-details"),(0,V.WU)(i.readMore),i.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},i.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),(0,V.jD)(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};function Re(e){return e.replace(/\r\n|\r|\n/g,"")}Ae=Ee([Ne(1,Le.S),Ne(2,De.L),Ne(3,ie.Gy)],Ae);var Oe,Pe=i(19070),Fe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Be=function(e,t){return function(i,n){t(i,n,e)}};(0,ee.x1A)("editorSuggestWidget.background",{dark:ee.CgL,light:ee.CgL,hcDark:ee.CgL,hcLight:ee.CgL},E.kg("editorSuggestWidgetBackground","Background color of the suggest widget.")),(0,ee.x1A)("editorSuggestWidget.border",{dark:ee.sIe,light:ee.sIe,hcDark:ee.sIe,hcLight:ee.sIe},E.kg("editorSuggestWidgetBorder","Border color of the suggest widget."));const We=(0,ee.x1A)("editorSuggestWidget.foreground",{dark:ee.By2,light:ee.By2,hcDark:ee.By2,hcLight:ee.By2},E.kg("editorSuggestWidgetForeground","Foreground color of the suggest widget."));(0,ee.x1A)("editorSuggestWidget.selectedForeground",{dark:ee.nH,light:ee.nH,hcDark:ee.nH,hcLight:ee.nH},E.kg("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),(0,ee.x1A)("editorSuggestWidget.selectedIconForeground",{dark:ee.c7i,light:ee.c7i,hcDark:ee.c7i,hcLight:ee.c7i},E.kg("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const Ve=(0,ee.x1A)("editorSuggestWidget.selectedBackground",{dark:ee.AlL,light:ee.AlL,hcDark:ee.AlL,hcLight:ee.AlL},E.kg("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));(0,ee.x1A)("editorSuggestWidget.highlightForeground",{dark:ee.QI5,light:ee.QI5,hcDark:ee.QI5,hcLight:ee.QI5},E.kg("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),(0,ee.x1A)("editorSuggestWidget.focusHighlightForeground",{dark:ee.eMz,light:ee.eMz,hcDark:ee.eMz,hcLight:ee.eMz},E.kg("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),(0,ee.x1A)("editorSuggestWidgetStatus.foreground",{dark:(0,ee.JO0)(We,.5),light:(0,ee.JO0)(We,.5),hcDark:(0,ee.JO0)(We,.5),hcLight:(0,ee.JO0)(We,.5)},E.kg("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class He{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof K.t}`}restore(){var e;const t=null!==(e=this._service.get(this._key,0))&&void 0!==e?e:"";try{const e=JSON.parse(t);if(V.fg.is(e))return V.fg.lift(e)}catch(i){}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let ze=Oe=class{constructor(e,t,i,n,s){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new h.HE,this._pendingShowDetails=new h.HE,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new z.pc,this._disposables=new h.Cm,this._onDidSelect=new l.fV,this._onDidFocus=new l.fV,this._onDidHide=new l.vl,this._onDidShow=new l.vl,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new l.vl,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new ne.v,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new je(this,e),this._persistedSize=new He(t,e);class o{constructor(e,t,i=!1,n=!1){this.persistedSize=e,this.currentSize=t,this.persistHeight=i,this.persistWidth=n}}let r;this._disposables.add(this.element.onDidWillResize((()=>{this._contentWidget.lockPreference(),r=new o(this._persistedSize.restore(),this.element.size)}))),this._disposables.add(this.element.onDidResize((e=>{var t,i,n,s;if(this._resize(e.dimension.width,e.dimension.height),r&&(r.persistHeight=r.persistHeight||!!e.north||!!e.south,r.persistWidth=r.persistWidth||!!e.east||!!e.west),e.done){if(r){const{itemHeight:e,defaultSize:o}=this.getLayoutInfo(),a=Math.round(e/2);let{width:l,height:d}=this.element.size;(!r.persistHeight||Math.abs(r.currentSize.height-d)<=a)&&(d=null!==(i=null===(t=r.persistedSize)||void 0===t?void 0:t.height)&&void 0!==i?i:o.height),(!r.persistWidth||Math.abs(r.currentSize.width-l)<=a)&&(l=null!==(s=null===(n=r.persistedSize)||void 0===n?void 0:n.width)&&void 0!==s?s:o.width),this._persistedSize.store(new V.fg(l,d))}this._contentWidget.unlockPreference(),r=void 0}}))),this._messageElement=V.BC(this.element.domNode,V.$(".message")),this._listElement=V.BC(this.element.domNode,V.$(".tree"));const a=this._disposables.add(s.createInstance(ue,this.editor));a.onDidClose(this.toggleDetails,this,this._disposables),this._details=new ge(a,this.editor);const d=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(118).showIcons);d();const c=s.createInstance(Ae,this.editor);this._disposables.add(c),this._disposables.add(c.onDidToggleDetails((()=>this.toggleDetails()))),this._list=new H.B8("SuggestWidget",this._listElement,{getHeight:e=>this.getLayoutInfo().itemHeight,getTemplateId:e=>"suggestion"},[c],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>E.kg("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:e=>{let t=e.textLabel;if("string"!==typeof e.completion.label){const{detail:i,description:n}=e.completion.label;i&&n?t=E.kg("label.full","{0} {1}, {2}",t,i,n):i?t=E.kg("label.detail","{0} {1}",t,i):n&&(t=E.kg("label.desc","{0}, {1}",t,n))}if(!e.isResolved||!this._isDetailsVisible())return t;const{documentation:i,detail:n}=e.completion,s=U.GP("{0}{1}",n||"",i?"string"===typeof i?i:i.value:"");return E.kg("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",t,s)}}}),this._list.style((0,Pe.t8)({listInactiveFocusBackground:Ve,listInactiveFocusOutline:ee.buw})),this._status=s.createInstance(X,this.element.domNode,M.dt);const u=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(118).showStatusBar);u(),this._disposables.add(n.onDidColorThemeChange((e=>this._onThemeChange(e)))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onTap((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onDidChangeSelection((e=>this._onListSelection(e)))),this._disposables.add(this._list.onDidChangeFocus((e=>this._onListFocus(e)))),this._disposables.add(this.editor.onDidChangeCursorSelection((()=>this._onCursorSelectionChanged()))),this._disposables.add(this.editor.onDidChangeConfiguration((e=>{e.hasChanged(118)&&(u(),d()),this._completionModel&&(e.hasChanged(50)||e.hasChanged(119)||e.hasChanged(120))&&this._list.splice(0,this._list.length,this._completionModel.items)}))),this._ctxSuggestWidgetVisible=M.ob.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=M.ob.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=M.ob.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=M.ob.HasFocusedSuggestion.bindTo(i),this._disposables.add(V.b2(this._details.widget.domNode,"keydown",(e=>{this._onDetailsKeydown.fire(e)}))),this._disposables.add(this.editor.onMouseDown((e=>this._onEditorMouseDown(e))))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(e){"undefined"!==typeof e.element&&"undefined"!==typeof e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=(0,te.Bb)(e.type)?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),void this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const i=e.elements[0],n=e.indexes[0];i!==this._focusedItem&&(null===(t=this._currentSuggestionDetails)||void 0===t||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=i,this._list.reveal(n),this._currentSuggestionDetails=(0,z.SS)((async e=>{const t=(0,z.EQ)((()=>{this._isDetailsVisible()&&this.showDetails(!0)}),250),n=e.onCancellationRequested((()=>t.dispose()));try{return await i.resolve(e)}finally{t.dispose(),n.dispose()}})),this._currentSuggestionDetails.then((()=>{n>=this._list.length||i!==this._list.element(n)||(this._ignoreFocusEvents=!0,this._list.splice(n,1,[i]),this._list.setFocus([n]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:Te(n)}))})).catch(a.dz)),this._onDidFocus.fire({item:i,index:n,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",4===e),this.element.domNode.classList.remove("message"),e){case 0:V.jD(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=Oe.LOADING_MESSAGE,V.jD(this._listElement,this._status.element),V.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,s.h5)(Oe.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=Oe.NO_SUGGESTIONS_MESSAGE,V.jD(this._listElement,this._status.element),V.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,s.h5)(Oe.NO_SUGGESTIONS_MESSAGE);break;case 3:case 4:V.jD(this._messageElement),V.WU(this._listElement,this._status.element),this._show();break;case 5:V.jD(this._messageElement),V.WU(this._listElement,this._status.element),this._details.show(),this._show()}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet((()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)}),100)}showTriggered(e,t){0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=(0,z.EQ)((()=>this._setState(1)),t)))}showSuggestions(e,t,i,n,s){var o,r;if(this._contentWidget.setPosition(this.editor.getPosition()),null===(o=this._loadingTimeout)||void 0===o||o.dispose(),null===(r=this._currentSuggestionDetails)||void 0===r||r.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&2!==this._state&&0!==this._state)return void this._setState(4);const a=this._completionModel.items.length,l=0===a;if(this._ctxSuggestWidgetMultipleSuggestions.set(a>1),l)return this._setState(n?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),this._list.reveal(t,0),this._list.setFocus(s?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=V.Oq(V.zk(this.element.domNode),(()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}))}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!ce(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._pendingShowDetails.value=V.Oq(V.zk(this.element.domNode),(()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._details.widget.isEmpty?this._details.hide():(this._positionDetails(),this.element.domNode.classList.add("shows-details")),this.editor.focus()}))}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;this._pendingLayout.clear(),this._pendingShowDetails.clear(),null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const t=this._persistedSize.restore(),i=Math.ceil(4.3*this.getLayoutInfo().itemHeight);t&&t.height<i&&this._persistedSize.store(t.with(void 0,i))}isFrozen(){return 4===this._state}_afterRender(e){null!==e?2!==this._state&&1!==this._state&&(this._isDetailsVisible()&&!this._details.widget.isEmpty&&this._details.show(),this._positionDetails()):this._isDetailsVisible()&&this._details.hide()}_layout(e){var t,i,n;if(!this.editor.hasModel())return;if(!this.editor.getDomNode())return;const s=V.tG(this.element.domNode.ownerDocument.body),o=this.getLayoutInfo();e||(e=o.defaultSize);let r=e.height,a=e.width;if(this._status.element.style.height=`${o.itemHeight}px`,2===this._state||1===this._state)r=o.itemHeight+o.borderHeight,a=o.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new V.fg(a,r),this._contentWidget.setPreference(2);else{const l=s.width-o.borderHeight-2*o.horizontalPadding;a>l&&(a=l);const d=this._completionModel?this._completionModel.stats.pLabelLen*o.typicalHalfwidthCharacterWidth:a,h=o.statusBarHeight+this._list.contentHeight+o.borderHeight,c=o.itemHeight+o.statusBarHeight,u=V.BK(this.editor.getDomNode()),g=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),p=u.top+g.top+g.height,m=Math.min(s.height-p-o.verticalPadding,h),f=u.top+g.top-o.verticalPadding,_=Math.min(f,h);let v=Math.min(Math.max(_,m)+o.borderHeight,h);r===(null===(t=this._cappedHeight)||void 0===t?void 0:t.capped)&&(r=this._cappedHeight.wanted),r<c&&(r=c),r>v&&(r=v);const b=150;r>m||this._forceRenderingAbove&&f>b?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),v=_):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),v=m),this.element.preferredSize=new V.fg(d,o.defaultSize.height),this.element.maxSize=new V.fg(l,v),this.element.minSize=new V.fg(220,c),this._cappedHeight=r===h?{wanted:null!==(n=null===(i=this._cappedHeight)||void 0===i?void 0:i.wanted)&&void 0!==n?n:e.height,capped:r}:void 0}this._resize(a,r)}_resize(e,t){const{width:i,height:n}=this.element.maxSize;e=Math.min(i,e),t=Math.min(n,t);const{statusBarHeight:s}=this.getLayoutInfo();this._list.layout(t-s,e),this._listElement.style.height=t-s+"px",this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var e;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,2===(null===(e=this._contentWidget.getPosition())||void 0===e?void 0:e.preference[0]))}getLayoutInfo(){const e=this.editor.getOption(50),t=(0,j.qE)(this.editor.getOption(120)||e.lineHeight,8,1e3),i=this.editor.getOption(118).showStatusBar&&2!==this._state&&1!==this._state?t:0,n=this._details.widget.borderWidth,s=2*n;return{itemHeight:t,statusBarHeight:i,borderWidth:n,borderHeight:s,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new V.fg(430,i+12*t+s)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};ze.LOADING_MESSAGE=E.kg("suggestWidget.loading","Loading..."),ze.NO_SUGGESTIONS_MESSAGE=E.kg("suggestWidget.noSuggestions","No suggestions."),ze=Oe=Fe([Be(1,J.CS),Be(2,S.fN),Be(3,ie.Gy),Be(4,T._Y)],ze);class je{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:n}=this._widget.getLayoutInfo();return new V.fg(t+2*i+n,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var Ue,Ke=i(90651),Ge=i(85600),$e=i(38361),qe=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},Qe=function(e,t){return function(i,n){t(i,n,e)}};class Ye{constructor(e,t){this._model=e,this._position=t,this._decorationOptions=$e.kI.register({description:"suggest-line-suffix",stickiness:1});if(e.getLineMaxColumn(t.lineNumber)!==t.column){const i=e.getOffsetAt(t),n=e.getPositionAt(i+1);e.changeDecorations((e=>{this._marker&&e.removeDecoration(this._marker),this._marker=e.addDecoration(v.Q.fromPositions(t,n),this._decorationOptions)}))}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.changeDecorations((e=>{e.removeDecoration(this._marker),this._marker=void 0}))}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let Ze=Ue=class{static get(e){return e.getContribution(Ue.ID)}constructor(e,t,i,n,s,o,r){this._memoryService=t,this._commandService=i,this._contextKeyService=n,this._instantiationService=s,this._logService=o,this._telemetryService=r,this._lineSuffix=new h.HE,this._toDispose=new h.Cm,this._selectors=new Xe((e=>e.priority)),this._onWillInsertSuggestItem=new l.vl,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=e,this.model=s.createInstance(B.Y,this.editor),this._selectors.register({priority:0,select:(e,t,i)=>this._memoryService.select(e,t,i)});const a=M.ob.InsertMode.bindTo(n);a.set(e.getOption(118).insertMode),this._toDispose.add(this.model.onDidTrigger((()=>a.set(e.getOption(118).insertMode)))),this.widget=this._toDispose.add(new V.Ij((0,V.zk)(e.getDomNode()),(()=>{const e=this._instantiationService.createInstance(ze,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect((e=>this._insertSuggestion(e,0)),this));const t=new F(this.editor,e,this.model,(e=>this._insertSuggestion(e,2)));this._toDispose.add(t);const i=M.ob.MakesTextEdit.bindTo(this._contextKeyService),n=M.ob.HasInsertAndReplaceRange.bindTo(this._contextKeyService),s=M.ob.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,h.s)((()=>{i.reset(),n.reset(),s.reset()}))),this._toDispose.add(e.onDidFocus((({item:e})=>{const t=this.editor.getPosition(),o=e.editStart.column,r=t.column;let a=!0;if("smart"===this.editor.getOption(1)&&2===this.model.state&&!e.completion.additionalTextEdits&&!(4&e.completion.insertTextRules)&&r-o===e.completion.insertText.length){a=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:o,endLineNumber:t.lineNumber,endColumn:r})!==e.completion.insertText}i.set(a),n.set(!_.y.equals(e.editInsertEnd,e.editReplaceEnd)),s.set(Boolean(e.provider.resolveCompletionItem)||Boolean(e.completion.documentation)||e.completion.detail!==e.completion.label)}))),this._toDispose.add(e.onDetailsKeyDown((e=>{e.toKeyCodeChord().equals(new d.dG(!0,!1,!1,!1,33))||c.zx&&e.toKeyCodeChord().equals(new d.dG(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeyCodeChord().isModifierKey()||this.editor.focus()}))),e}))),this._overtypingCapturer=this._toDispose.add(new V.Ij((0,V.zk)(e.getDomNode()),(()=>this._toDispose.add(new W(this.editor,this.model))))),this._alternatives=this._toDispose.add(new V.Ij((0,V.zk)(e.getDomNode()),(()=>this._toDispose.add(new O(this.editor,this._contextKeyService))))),this._toDispose.add(s.createInstance(L,e)),this._toDispose.add(this.model.onDidTrigger((e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new Ye(this.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((e=>{if(e.triggerOptions.shy)return;let t=-1;for(const n of this._selectors.itemsOrderedByPriorityDesc)if(t=n.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items),-1!==t)break;if(-1===t&&(t=0),0===this.model.state)return;let i=!1;if(e.triggerOptions.auto){const t=this.editor.getOption(118);"never"===t.selectionMode||"always"===t.selectionMode?i="never"===t.selectionMode:"whenTriggerCharacter"===t.selectionMode?i=1!==e.triggerOptions.triggerKind:"whenQuickSuggestion"===t.selectionMode&&(i=1===e.triggerOptions.triggerKind&&!e.triggerOptions.refilter)}this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.triggerOptions.auto,i)}))),this._toDispose.add(this.model.onDidCancel((e=>{e.retrigger||this.widget.value.hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((()=>{this.model.cancel(),this.model.clear()})));const u=M.ob.AcceptSuggestionsOnEnter.bindTo(n),g=()=>{const e=this.editor.getOption(1);u.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((()=>g()))),g()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose(),this._onWillInsertSuggestItem.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const i=C.O.get(this.editor);if(!i)return;this._onWillInsertSuggestItem.fire({item:e.item});const n=this.editor.getModel(),s=n.getAlternativeVersionId(),{item:o}=e,l=[],d=new r.Q;1&t||this.editor.pushUndoStop();const h=this.getOverwriteInfo(o,Boolean(8&t));this._memoryService.memorize(n,this.editor.getPosition(),o);const c=o.isResolved;let g=-1,m=-1;if(Array.isArray(o.completion.additionalTextEdits)){this.model.cancel();const e=p.D.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",o.completion.additionalTextEdits.map((e=>{let t=v.Q.lift(e.range);if(t.startLineNumber===o.position.lineNumber&&t.startColumn>o.position.column){const e=this.editor.getPosition().column-o.position.column,i=e,n=v.Q.spansMultipleLines(t)?0:e;t=new v.Q(t.startLineNumber,t.startColumn+i,t.endLineNumber,t.endColumn+n)}return f.k.replaceMove(t,e.text)}))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!c){const e=new u.W;let i;const s=n.onDidChangeContent((e=>{if(e.isFlush)return d.cancel(),void s.dispose();for(const t of e.changes){const e=v.Q.getEndPosition(t.range);i&&!_.y.isBefore(e,i)||(i=e)}})),r=t;t|=2;let a=!1;const h=this.editor.onWillType((()=>{h.dispose(),a=!0,2&r||this.editor.pushUndoStop()}));l.push(o.resolve(d.token).then((()=>{if(!o.completion.additionalTextEdits||d.token.isCancellationRequested)return;if(i&&o.completion.additionalTextEdits.some((e=>_.y.isBefore(i,v.Q.getStartPosition(e.range)))))return!1;a&&this.editor.pushUndoStop();const e=p.D.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",o.completion.additionalTextEdits.map((e=>f.k.replaceMove(v.Q.lift(e.range),e.text)))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!a&&2&r||this.editor.pushUndoStop(),!0})).then((t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),m=!0===t?1:!1===t?0:-2})).finally((()=>{s.dispose(),h.dispose()})))}let{insertText:b}=o.completion;if(4&o.completion.insertTextRules||(b=y.fr.escape(b)),this.model.cancel(),i.insert(b,{overwriteBefore:h.overwriteBefore,overwriteAfter:h.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&o.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),o.completion.command)if(o.completion.command.id===Je.id)this.model.trigger({auto:!0,retrigger:!0});else{const e=new u.W;l.push(this._commandService.executeCommand(o.completion.command.id,...o.completion.command.arguments?[...o.completion.command.arguments]:[]).catch((e=>{o.completion.extensionId?(0,a.M_)(e):(0,a.dz)(e)})).finally((()=>{g=e.elapsed()})))}4&t&&this._alternatives.value.set(e,(e=>{for(d.cancel();n.canUndo();){s!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(o),Promise.all(l).finally((()=>{this._reportSuggestionAcceptedTelemetry(o,n,c,g,m),this.model.clear(),d.dispose()}))}_reportSuggestionAcceptedTelemetry(e,t,i,n,s){var o,r,a;0!==Math.floor(100*Math.random())&&this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:null!==(r=null===(o=e.extensionId)||void 0===o?void 0:o.value)&&void 0!==r?r:"unknown",providerId:null!==(a=e.provider._debugDisplayName)&&void 0!==a?a:"unknown",kind:e.completion.kind,basenameHash:(0,Ge.tW)((0,Ce.P8)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,Ce.LC)(t.uri),resolveInfo:e.provider.resolveCompletionItem?i?1:0:-1,resolveDuration:e.resolveDuration,commandDuration:n,additionalEditsAsync:s})}getOverwriteInfo(e,t){(0,g.j)(this.editor.hasModel());let i="replace"===this.editor.getOption(118).insertMode;t&&(i=!i);const n=e.position.column-e.editStart.column,s=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:n+(this.editor.getPosition().column-e.position.column),overwriteAfter:s+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){if((0,o.EI)(e.completion.additionalTextEdits)){const t=E.kg("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,s.xE)(t)}}triggerSuggest(e,t,i){this.editor.hasModel()&&(this.model.trigger({auto:null!==t&&void 0!==t&&t,completionOptions:{providerFilter:e,kindFilter:i?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;const t=this.editor.getPosition(),i=e.editStart.column,n=t.column;if(n-i!==e.completion.insertText.length)return!0;return this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:n})!==e.completion.insertText};l.Jh.once(this.model.onDidTrigger)((e=>{const t=[];l.Jh.any(this.model.onDidTrigger,this.model.onDidCancel)((()=>{(0,h.AS)(t),i()}),void 0,t),this.model.onDidSuggest((({completionModel:e})=>{if((0,h.AS)(t),0===e.items.length)return void i();const s=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),o=e.items[s];n(o)?(this.editor.pushUndoStop(),this._insertSuggestion({index:s,item:o,model:e},7)):i()}),void 0,t)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(i,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};Ze.ID="editor.contrib.suggestController",Ze=Ue=qe([Qe(1,w.GS),Qe(2,N.d),Qe(3,S.fN),Qe(4,T._Y),Qe(5,I.rr),Qe(6,Ke.k)],Ze);class Xe{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(-1!==this._items.indexOf(e))throw new Error("Value is already registered");return this._items.push(e),this._items.sort(((e,t)=>this.prioritySelector(t)-this.prioritySelector(e))),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class Je extends m.ks{constructor(){super({id:Je.id,label:E.kg("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:S.M$.and(b.R.writable,b.R.hasCompletionItemProvider,M.ob.Visible.toNegated()),kbOpts:{kbExpr:b.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const n=Ze.get(t);if(!n)return;let s;i&&"object"===typeof i&&!0===i.auto&&(s=!0),n.triggerSuggest(void 0,s,void 0)}}Je.id="editor.action.triggerSuggest",(0,m.HW)(Ze.ID,Ze,2),(0,m.Fl)(Je);const et=190,tt=m.DX.bindToContribution(Ze.get);(0,m.E_)(new tt({id:"acceptSelectedSuggestion",precondition:S.M$.and(M.ob.Visible,M.ob.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:S.M$.and(M.ob.Visible,b.R.textInputFocus),weight:et},{primary:3,kbExpr:S.M$.and(M.ob.Visible,b.R.textInputFocus,M.ob.AcceptSuggestionsOnEnter,M.ob.MakesTextEdit),weight:et}],menuOpts:[{menuId:M.dt,title:E.kg("accept.insert","Insert"),group:"left",order:1,when:M.ob.HasInsertAndReplaceRange.toNegated()},{menuId:M.dt,title:E.kg("accept.insert","Insert"),group:"left",order:1,when:S.M$.and(M.ob.HasInsertAndReplaceRange,M.ob.InsertMode.isEqualTo("insert"))},{menuId:M.dt,title:E.kg("accept.replace","Replace"),group:"left",order:1,when:S.M$.and(M.ob.HasInsertAndReplaceRange,M.ob.InsertMode.isEqualTo("replace"))}]})),(0,m.E_)(new tt({id:"acceptAlternativeSelectedSuggestion",precondition:S.M$.and(M.ob.Visible,b.R.textInputFocus,M.ob.HasFocusedSuggestion),kbOpts:{weight:et,kbExpr:b.R.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:M.dt,group:"left",order:2,when:S.M$.and(M.ob.HasInsertAndReplaceRange,M.ob.InsertMode.isEqualTo("insert")),title:E.kg("accept.replace","Replace")},{menuId:M.dt,group:"left",order:2,when:S.M$.and(M.ob.HasInsertAndReplaceRange,M.ob.InsertMode.isEqualTo("replace")),title:E.kg("accept.insert","Insert")}]})),N.w.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,m.E_)(new tt({id:"hideSuggestWidget",precondition:M.ob.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:et,kbExpr:b.R.textInputFocus,primary:9,secondary:[1033]}})),(0,m.E_)(new tt({id:"selectNextSuggestion",precondition:S.M$.and(M.ob.Visible,S.M$.or(M.ob.MultipleSuggestions,M.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:et,kbExpr:b.R.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,m.E_)(new tt({id:"selectNextPageSuggestion",precondition:S.M$.and(M.ob.Visible,S.M$.or(M.ob.MultipleSuggestions,M.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:et,kbExpr:b.R.textInputFocus,primary:12,secondary:[2060]}})),(0,m.E_)(new tt({id:"selectLastSuggestion",precondition:S.M$.and(M.ob.Visible,S.M$.or(M.ob.MultipleSuggestions,M.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectLastSuggestion()})),(0,m.E_)(new tt({id:"selectPrevSuggestion",precondition:S.M$.and(M.ob.Visible,S.M$.or(M.ob.MultipleSuggestions,M.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:et,kbExpr:b.R.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,m.E_)(new tt({id:"selectPrevPageSuggestion",precondition:S.M$.and(M.ob.Visible,S.M$.or(M.ob.MultipleSuggestions,M.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:et,kbExpr:b.R.textInputFocus,primary:11,secondary:[2059]}})),(0,m.E_)(new tt({id:"selectFirstSuggestion",precondition:S.M$.and(M.ob.Visible,S.M$.or(M.ob.MultipleSuggestions,M.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectFirstSuggestion()})),(0,m.E_)(new tt({id:"focusSuggestion",precondition:S.M$.and(M.ob.Visible,M.ob.HasFocusedSuggestion.negate()),handler:e=>e.focusSuggestion(),kbOpts:{weight:et,kbExpr:b.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}})),(0,m.E_)(new tt({id:"focusAndAcceptSuggestion",precondition:S.M$.and(M.ob.Visible,M.ob.HasFocusedSuggestion.negate()),handler:e=>{e.focusSuggestion(),e.acceptSelectedSuggestion(!0,!1)}})),(0,m.E_)(new tt({id:"toggleSuggestionDetails",precondition:S.M$.and(M.ob.Visible,M.ob.HasFocusedSuggestion),handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:et,kbExpr:b.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:M.dt,group:"right",order:1,when:S.M$.and(M.ob.DetailsVisible,M.ob.CanResolve),title:E.kg("detail.more","show less")},{menuId:M.dt,group:"right",order:1,when:S.M$.and(M.ob.DetailsVisible.toNegated(),M.ob.CanResolve),title:E.kg("detail.less","show more")}]})),(0,m.E_)(new tt({id:"toggleExplainMode",precondition:M.ob.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2138}})),(0,m.E_)(new tt({id:"toggleSuggestionFocus",precondition:M.ob.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:et,kbExpr:b.R.textInputFocus,primary:2570,mac:{primary:778}}})),(0,m.E_)(new tt({id:"insertBestCompletion",precondition:S.M$.and(b.R.textInputFocus,S.M$.equals("config.editor.tabCompletion","on"),L.AtEnd,M.ob.Visible.toNegated(),O.OtherSuggestions.toNegated(),C.O.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest((0,g.Gv)(t)?{fallback:"tab",...t}:{fallback:"tab"})},kbOpts:{weight:et,primary:2}})),(0,m.E_)(new tt({id:"insertNextSuggestion",precondition:S.M$.and(b.R.textInputFocus,S.M$.equals("config.editor.tabCompletion","on"),O.OtherSuggestions,M.ob.Visible.toNegated(),C.O.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:et,kbExpr:b.R.textInputFocus,primary:2}})),(0,m.E_)(new tt({id:"insertPrevSuggestion",precondition:S.M$.and(b.R.textInputFocus,S.M$.equals("config.editor.tabCompletion","on"),O.OtherSuggestions,M.ob.Visible.toNegated(),C.O.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:et,kbExpr:b.R.textInputFocus,primary:1026}})),(0,m.Fl)(class extends m.ks{constructor(){super({id:"editor.action.resetSuggestSize",label:E.kg("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){var i;null===(i=Ze.get(t))||void 0===i||i.resetWidgetSize()}})},10846:(e,t,i)=>{"use strict";var n=i(18447),s=i(26690),o=i(42522),r=i(5662),a=i(80301),l=i(36677),d=i(72466),h=i(56942),c=i(51173),u=i(48116),g=i(88415),p=i(96299),m=i(14055),f=i(54770),_=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},v=function(e,t){return function(i,n){t(i,n,e)}};class b{constructor(e,t,i,n,s,o){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=n,this.command=s,this.completion=o}}let C=class extends r.mp{constructor(e,t,i,n,s,o){super(s.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=n,this._suggestMemoryService=o}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn<i.endColumn&&0===this.completionModel.getIncompleteProvider().size}get items(){var e;const t=[],{items:i}=this.completionModel,r=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},i),a=o.f.slice(i,r),d=o.f.slice(i,0,r);let h=5;for(const c of o.f.concat(a,d)){if(c.score===s.ne.Default)continue;const i=new l.Q(c.editStart.lineNumber,c.editStart.column,c.editInsertEnd.lineNumber,c.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),o=c.completion.insertTextRules&&4&c.completion.insertTextRules?{snippet:c.completion.insertText}:c.completion.insertText;t.push(new b(i,o,null!==(e=c.filterTextLow)&&void 0!==e?e:c.labelLow,c.completion.additionalTextEdits,c.completion.command,c)),h-- >=0&&c.resolve(n.X.None)}return t}};C=_([v(5,g.GS)],C);let y=class extends r.jG{constructor(e,t,i,n){super(),this._languageFeatureService=e,this._clipboardService=t,this._suggestMemoryService=i,this._editorService=n,this._store.add(e.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(e,t,i,n){var s;if(i.selectedSuggestionInfo)return;let o;for(const l of this._editorService.listCodeEditors())if(l.getModel()===e){o=l;break}if(!o)return;const r=o.getOption(89);if(u.r3.isAllOff(r))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const a=e.tokenization.getLineTokens(t.lineNumber),d=a.getStandardTokenType(a.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("inline"!==u.r3.valueFor(r,d))return;let h,g,f=e.getWordAtPosition(t);if((null===f||void 0===f?void 0:f.word)||(h=this._getTriggerCharacterInfo(e,t)),!(null===f||void 0===f?void 0:f.word)&&!h)return;if(f||(f=e.getWordUntilPosition(t)),f.endColumn!==t.column)return;const _=e.getValueInRange(new l.Q(t.lineNumber,1,t.lineNumber,t.column));if(!h&&(null===(s=this._lastResult)||void 0===s?void 0:s.canBeReused(e,t.lineNumber,f))){const e=new c.O(_,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),g=this._lastResult}else{const i=await(0,u.aR)(this._languageFeatureService.completionProvider,e,t,new u.l1(void 0,p.Y.createSuggestFilter(o).itemKind,null===h||void 0===h?void 0:h.providers),h&&{triggerKind:1,triggerCharacter:h.ch},n);let s;i.needsClipboard&&(s=await this._clipboardService.readText());const r=new c.C(i.items,t.column,new c.O(_,0),m.S.None,o.getOption(118),o.getOption(112),{boostFullMatch:!1,firstMatchCanBeWeak:!1},s);g=new C(e,t.lineNumber,f,r,i,this._suggestMemoryService)}return this._lastResult=g,g}handleItemDidShow(e,t){t.completion.resolve(n.X.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var i;const n=e.getValueInRange(l.Q.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),s=new Set;for(const o of this._languageFeatureService.completionProvider.all(e))(null===(i=o.triggerCharacters)||void 0===i?void 0:i.includes(n))&&s.add(o);if(0!==s.size)return{providers:s,ch:n}}};y=_([v(0,h.u),v(1,f.h),v(2,g.GS),v(3,a.T)],y),(0,d.x)(y)},88415:(e,t,i)=>{"use strict";i.d(t,{GS:()=>v});var n,s=i(90766),o=i(5662),r=i(74320),a=i(4853),l=i(62083),d=i(84001),h=i(14718),c=i(63591),u=i(9711),g=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},p=function(e,t){return function(i,n){t(i,n,e)}};class m{constructor(e){this.name=e}select(e,t,i){if(0===i.length)return 0;const n=i[0].score[0];for(let s=0;s<i.length;s++){const{score:e,completion:t}=i[s];if(e[0]!==n)break;if(t.preselect)return s}return 0}}class f extends m{constructor(){super("first")}memorize(e,t,i){}toJSON(){}fromJSON(){}}let _=n=class{constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new o.Cm,this._persistSoon=new s.uC((()=>this._saveState()),500),this._disposables.add(e.onWillSaveState((e=>{e.reason===u.LP.SHUTDOWN&&this._saveState()})))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(e,t){var i;const s=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if((null===(i=this._strategy)||void 0===i?void 0:i.name)!==s){this._saveState();const e=n._strategyCtors.get(s)||f;this._strategy=new e;try{const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=this._storageService.get(`${n._storagePrefix}/${s}`,e);t&&this._strategy.fromJSON(JSON.parse(t))}catch(o){}}return this._strategy}_saveState(){if(this._strategy){const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=JSON.stringify(this._strategy);this._storageService.store(`${n._storagePrefix}/${this._strategy.name}`,t,e,1)}}};_._strategyCtors=new Map([["recentlyUsedByPrefix",class extends m{constructor(){super("recentlyUsedByPrefix"),this._trie=a.cB.forStrings(),this._seq=0}memorize(e,t,i){const{word:n}=e.getWordUntilPosition(t),s=`${e.getLanguageId()}/${n}`;this._trie.set(s,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:n}=e.getWordUntilPosition(t);if(!n)return super.select(e,t,i);const s=`${e.getLanguageId()}/${n}`;let o=this._trie.get(s);if(o||(o=this._trie.findSubstr(s)),o)for(let r=0;r<i.length;r++){const{kind:e,insertText:t}=i[r].completion;if(e===o.type&&t===o.insertText)return r}return super.select(e,t,i)}toJSON(){const e=[];return this._trie.forEach(((t,i)=>e.push([i,t]))),e.sort(((e,t)=>-(e[1].touch-t[1].touch))).forEach(((e,t)=>e[1].touch=t)),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type="number"===typeof i.type?i.type:l.HC.fromString(i.type),this._trie.set(t,i)}}}],["recentlyUsed",class extends m{constructor(){super("recentlyUsed"),this._cache=new r.qK(300,.66),this._seq=0}memorize(e,t,i){const n=`${e.getLanguageId()}/${i.textLabel}`;this._cache.set(n,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(e,t,i){if(0===i.length)return 0;const n=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(n))return super.select(e,t,i);const s=i[0].score[0];let o=-1,r=-1,a=-1;for(let l=0;l<i.length&&i[l].score[0]===s;l++){const t=`${e.getLanguageId()}/${i[l].textLabel}`,n=this._cache.peek(t);if(n&&n.touch>a&&n.type===i[l].completion.kind&&n.insertText===i[l].completion.insertText&&(a=n.touch,r=l),i[l].completion.preselect&&-1===o)return l}return-1!==r?r:-1!==o?o:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();for(const[t,i]of e)i.touch=0,i.type="number"===typeof i.type?i.type:l.HC.fromString(i.type),this._cache.set(t,i);this._seq=this._cache.size}}],["first",f]]),_._storagePrefix="suggest/memories",_=n=g([p(0,u.CS),p(1,d.pG)],_);const v=(0,c.u1)("ISuggestMemories");(0,h.v)(v,_,1)},96299:(e,t,i)=>{"use strict";i.d(t,{Y:()=>N});var n,s=i(90766),o=i(18447),r=i(64383),a=i(41234),l=i(5662),d=i(91508),h=i(75326),c=i(10920),u=i(14055),g=i(54770),p=i(84001),m=i(32848),f=i(18801),_=i(90651),v=i(51173),b=i(48116),C=i(56942),y=i(26690),w=i(631),S=i(30318),k=i(30936),x=i(97035),L=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};class E{static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const n=t.getWordAtPosition(i);return!!n&&((n.endColumn===i.column||n.startColumn+1===i.column)&&!!isNaN(Number(n.word)))}constructor(e,t,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=i}}let N=n=class{constructor(e,t,i,n,o,r,d,c,u){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=n,this._logService=o,this._contextKeyService=r,this._configurationService=d,this._languageFeaturesService=c,this._envService=u,this._toDispose=new l.Cm,this._triggerCharacterListener=new l.Cm,this._triggerQuickSuggest=new s.pc,this._triggerState=void 0,this._completionDisposables=new l.Cm,this._onDidCancel=new a.vl,this._onDidTrigger=new a.vl,this._onDidSuggest=new a.vl,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new h.L(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((()=>{this._updateTriggerCharacters()}))),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange((()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})));let g=!1;this._toDispose.add(this._editor.onDidCompositionStart((()=>{g=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((()=>{g=!1,this._onCompositionEnd()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((e=>{g||this._onCursorChange(e)}))),this._toDispose.add(this._editor.onDidChangeModelContent((()=>{g||void 0===this._triggerState||this._refilterCompletionItems()}))),this._updateTriggerCharacters()}dispose(){(0,l.AS)(this._triggerCharacterListener),(0,l.AS)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(91)||!this._editor.hasModel()||!this._editor.getOption(121))return;const e=new Map;for(const i of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const t of i.triggerCharacters||[]){let n=e.get(t);n||(n=new Set,n.add((0,b.f3)()),e.set(t,n)),n.add(i)}const t=t=>{var i;if(!function(e,t){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;const i=t.getContextKeyValue(S.p.suppressSuggestions.key);return void 0!==i?!i:!e.getOption(62).suppressSuggestions}(this._editor,this._contextKeyService,this._configurationService))return;if(E.shouldAutoTrigger(this._editor))return;if(!t){const e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let n="";(0,d.LJ)(t.charCodeAt(t.length-1))?(0,d.pc)(t.charCodeAt(t.length-2))&&(n=t.substr(t.length-2)):n=t.charAt(t.length-1);const s=e.get(n);if(s){const e=new Map;if(this._completionModel)for(const[t,i]of this._completionModel.getItemsByProvider())s.has(t)||e.set(t,i);this.trigger({auto:!0,triggerKind:1,triggerCharacter:n,retrigger:Boolean(this._completionModel),clipboardText:null===(i=this._completionModel)||void 0===i?void 0:i.clipboardText,completionOptions:{providerFilter:s,providerItemsToReuse:e}})}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd((()=>t())))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(e=!1){var t;void 0!==this._triggerState&&(this._triggerQuickSuggest.cancel(),null===(t=this._requestToken)||void 0===t||t.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){void 0!==this._triggerState&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:this._triggerState.auto,retrigger:!0}):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source?this.cancel():void 0===this._triggerState&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():void 0!==this._triggerState&&3===e.reason&&this._refilterCompletionItems()}_onCompositionEnd(){void 0===this._triggerState?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var e;b.r3.isAllOff(this._editor.getOption(89))||this._editor.getOption(118).snippetsPreventQuickSuggestions&&(null===(e=k.O.get(this._editor))||void 0===e?void 0:e.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet((()=>{if(void 0!==this._triggerState)return;if(!E.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(89);if(!b.r3.isAllOff(i)){if(!b.r3.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);const n=e.tokenization.getLineTokens(t.lineNumber),s=n.getStandardTokenType(n.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==b.r3.valueFor(i,s))return}(function(e,t){if(!Boolean(t.getContextKeyValue(S.p.inlineSuggestionVisible.key)))return!0;const i=t.getContextKeyValue(S.p.suppressSuggestions.key);return void 0!==i?!i:!e.getOption(62).suppressSuggestions})(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(e)&&this.trigger({auto:!0})}}),this._editor.getOption(90)))}_refilterCompletionItems(){(0,w.j)(this._editor.hasModel()),(0,w.j)(void 0!==this._triggerState);const e=this._editor.getModel(),t=this._editor.getPosition(),i=new E(e,t,{...this._triggerState,refilter:!0});this._onNewContext(i)}trigger(e){var t,i,s,a,l,d;if(!this._editor.hasModel())return;const h=this._editor.getModel(),c=new E(h,this._editor.getPosition(),e);this.cancel(e.retrigger),this._triggerState=e,this._onDidTrigger.fire({auto:e.auto,shy:null!==(t=e.shy)&&void 0!==t&&t,position:this._editor.getPosition()}),this._context=c;let g={triggerKind:null!==(i=e.triggerKind)&&void 0!==i?i:0};e.triggerCharacter&&(g={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new o.Q;let p=1;switch(this._editor.getOption(112)){case"top":p=0;break;case"bottom":p=2}const{itemKind:m,showDeprecated:f}=n.createSuggestFilter(this._editor),_=new b.l1(p,null!==(a=null===(s=e.completionOptions)||void 0===s?void 0:s.kindFilter)&&void 0!==a?a:m,null===(l=e.completionOptions)||void 0===l?void 0:l.providerFilter,null===(d=e.completionOptions)||void 0===d?void 0:d.providerItemsToReuse,f),C=u.S.create(this._editorWorkerService,this._editor),w=(0,b.aR)(this._languageFeaturesService.completionProvider,h,this._editor.getPosition(),_,g,this._requestToken.token);Promise.all([w,C]).then((async([t,i])=>{var n;if(null===(n=this._requestToken)||void 0===n||n.dispose(),!this._editor.hasModel())return;let s=null===e||void 0===e?void 0:e.clipboardText;if(!s&&t.needsClipboard&&(s=await this._clipboardService.readText()),void 0===this._triggerState)return;const o=this._editor.getModel(),r=new E(o,this._editor.getPosition(),e),a={...y.Nd.default,firstMatchCanBeWeak:!this._editor.getOption(118).matchOnWordStartOnly};if(this._completionModel=new v.C(t.items,this._context.column,{leadingLineContent:r.leadingLineContent,characterCountDelta:r.column-this._context.column},i,this._editor.getOption(118),this._editor.getOption(112),a,s),this._completionDisposables.add(t.disposable),this._onNewContext(r),this._reportDurationsTelemetry(t.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(const e of t.items)e.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${e.provider._debugDisplayName}`,e.completion)})).catch(r.dz)}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout((()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)}))}static createSuggestFilter(e){const t=new Set;"none"===e.getOption(112)&&t.add(27);const i=e.getOption(118);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(27),i.showUsers||t.add(25),i.showIssues||t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber)if((0,d.UU)(e.leadingLineContent)===(0,d.UU)(this._context.leadingLineContent)){if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0}):this.cancel();else if(this._completionModel)if(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){if(E.shouldAutoTrigger(this._editor)&&this._context){const e=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:e}})}}else if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&0!==e.leadingWord.word.length){const e=new Map,t=new Set;for(const[i,n]of this._completionModel.getItemsByProvider())n.length>0&&n[0].container.incomplete?t.add(i):e.set(i,n);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:t,providerItemsToReuse:e}})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){const n=E.shouldAutoTrigger(this._editor);if(!this._context)return void this.cancel();if(n&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0});if(this._context.triggerOptions.auto)return void this.cancel();if(this._completionModel.lineContext=t,i=this._completionModel.items.length>0,i&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:i})}}else this.cancel();else this.cancel()}};N=n=L([D(1,c.w),D(2,g.h),D(3,_.k),D(4,f.rr),D(5,m.fN),D(6,p.pG),D(7,C.u),D(8,x.k)],N)},14055:(e,t,i)=>{"use strict";i.d(t,{S:()=>r});var n=i(25890),s=i(36677),o=i(39286);class r{static async create(e,t){if(!t.getOption(118).localityBonus)return r.None;if(!t.hasModel())return r.None;const i=t.getModel(),a=t.getPosition();if(!e.canComputeWordRanges(i.uri))return r.None;const[l]=await(new o.n).provideSelectionRanges(i,[a]);if(0===l.length)return r.None;const d=await e.computeWordRanges(i.uri,l[0].range);if(!d)return r.None;const h=i.getWordUntilPosition(a);return delete d[h.word],new class extends r{distance(e,i){if(!a.equals(t.getPosition()))return 0;if(17===i.kind)return 2<<20;const o="string"===typeof i.label?i.label:i.label.label,r=d[o];if((0,n.Ct)(r))return 2<<20;const h=(0,n.El)(r,s.Q.fromPositions(e),s.Q.compareRangesUsingStarts),c=h>=0?r[h]:r[Math.max(0,~h-1)];let u=l.length;for(const t of l){if(!s.Q.containsRange(t.range,c))break;u-=1}return u}}}}r.None=new class extends r{distance(){return 0}}},93409:(e,t,i)=>{"use strict";var n=i(31629),s=i(85845);(0,s.x1A)("symbolIcon.arrayForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.booleanForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.kg)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.colorForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.constantForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.kg)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.kg)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.kg)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.kg)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.kg)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.fileForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.folderForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.kg)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.kg)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.keyForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.keywordForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.kg)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.moduleForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.namespaceForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.nullForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.numberForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.objectForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.operatorForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.packageForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.propertyForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.referenceForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.snippetForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.stringForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.structForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.textForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.typeParameterForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.unitForeground",{dark:s.CU6,light:s.CU6,hcDark:s.CU6,hcLight:s.CU6},(0,n.kg)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,s.x1A)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.kg)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))},98472:(e,t,i)=>{"use strict";var n=i(11007),s=i(77163),o=i(31629),r=i(27195);class a extends r.L{constructor(){super({id:a.ID,title:o.aS({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},f1:!0})}run(){const e=!s.M.getTabFocusMode();s.M.setTabFocusMode(e),e?(0,n.xE)(o.kg("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,n.xE)(o.kg("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}a.ID="editor.action.toggleTabFocusMode",(0,r.ug)(a)},50166:(e,t,i)=>{"use strict";var n=i(78381),s=i(31450),o=i(31629);class r extends s.ks{constructor(){super({id:"editor.action.forceRetokenize",label:o.kg("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const s=new n.W;i.tokenization.forceTokenization(i.getLineCount()),s.stop(),console.log(`tokenization took ${s.elapsed()}`)}}(0,s.Fl)(r)},91268:(e,t,i)=>{"use strict";var n=i(90766),s=i(10350),o=i(16980),r=i(5662),a=i(98067),l=i(91508),d=i(31450),h=i(87908),c=i(38361),u=i(74855),g=i(10920),p=i(10154),m=i(32398),f=i(57039),_=i(57286),v=i(8597),b=i(11799),C=i(36921),y=i(20492),w=i(63591),S=i(56245),k=i(72962),x=i(25154),L=i(41234),D=i(49099),E=i(43545),N=i(42904),T=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},I=function(e,t){return function(i,n){t(i,n,e)}};let M=class extends r.jG{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}constructor(e,t,i={},n){var s,o;super(),this._link=t,this._enabled=!0,this.el=(0,v.BC)(e,(0,v.$)("a.monaco-link",{tabIndex:null!==(s=t.tabIndex)&&void 0!==s?s:0,href:t.href},t.label)),this.hoverDelegate=null!==(o=i.hoverDelegate)&&void 0!==o?o:(0,N.nZ)("mouse"),this.setTooltip(t.title),this.el.setAttribute("role","button");const r=this._register(new S.f(this.el,"click")),a=this._register(new S.f(this.el,"keypress")),l=L.Jh.chain(a.event,(e=>e.map((e=>new k.Z(e))).filter((e=>3===e.keyCode)))),d=this._register(new S.f(this.el,x.B.Tap)).event;this._register(x.q.addTarget(this.el));const h=L.Jh.any(r.event,l,d);this._register(h((e=>{this.enabled&&(v.fs.stop(e,!0),(null===i||void 0===i?void 0:i.opener)?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))}))),this.enabled=!0}setTooltip(e){this.hoverDelegate.showNativeHover?this.el.title=null!==e&&void 0!==e?e:"":!this.hover&&e?this.hover=this._register((0,E.f)(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};M=T([I(3,D.C)],M);var A=i(61394),R=i(25689),O=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},P=function(e,t){return function(i,n){t(i,n,e)}};let F=class extends r.jG{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(B))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{var t;this.hide(),null===(t=e.onClose)||void 0===t||t.call(e)}}),this._editor.setBanner(this.banner.element,26)}};F=O([P(1,w._Y)],F);let B=class extends r.jG{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(y.T,{}),this.element=(0,v.$)("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){return e.ariaLabel?e.ariaLabel:"string"===typeof e.message?e.message:void 0}getBannerMessage(e){if("string"===typeof e){const t=(0,v.$)("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){(0,v.w_)(this.element)}show(e){(0,v.w_)(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=(0,v.BC)(this.element,(0,v.$)("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild((0,v.$)(`div${R.L.asCSSSelector(e.icon)}`));const n=(0,v.BC)(this.element,(0,v.$)("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=(0,v.BC)(this.element,(0,v.$)("div.message-actions-container")),e.actions)for(const o of e.actions)this._register(this.instantiationService.createInstance(M,this.messageActionsContainer,{...o,tabIndex:-1},{}));const s=(0,v.BC)(this.element,(0,v.$)("div.action-container"));this.actionBar=this._register(new b.E(s)),this.actionBar.push(this._register(new C.rc("banner.close","Close Banner",R.L.asClassName(A.$_),!0,(()=>{"function"===typeof e.onClose&&e.onClose()}))),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};B=O([P(0,w._Y)],B);var W=i(31629),V=i(84001),H=i(51467),z=i(51465),j=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},U=function(e,t){return function(i,n){t(i,n,e)}};const K=(0,A.pU)("extensions-warning-message",s.W.warning,W.kg("warningIcon","Icon shown with a warning message in the extensions editor."));let G=class extends r.jG{constructor(e,t,i,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){if(this._bannerClosed)return;const t=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);let i;if(e.nonBasicAsciiCharacterCount>=t)i={message:W.kg("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new oe};else if(e.ambiguousCharacterCount>=t)i={message:W.kg("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new ne};else{if(!(e.invisibleCharacterCount>=t))throw new Error("Unreachable");i={message:W.kg("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new se}}this._bannerController.show({id:"unicodeHighlightBanner",message:i.message,icon:K,actions:[{label:i.command.shortLabel,href:`command:${i.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(F,e)),this._register(this._editor.onDidChangeModel((()=>{this._bannerClosed=!1,this._updateHighlighter()}))),this._options=e.getOption(125),this._register(i.onDidChangeTrust((e=>{this._updateHighlighter()}))),this._register(e.onDidChangeConfiguration((t=>{t.hasChanged(125)&&(this._options=e.getOption(125),this._updateHighlighter())}))),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=function(e,t){return{nonBasicASCII:t.nonBasicASCII===h.XR?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===h.XR?!e:t.includeComments,includeStrings:t.includeStrings===h.XR?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every((e=>!1===e)))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map((e=>e.codePointAt(0))),allowedLocales:Object.keys(e.allowedLocales).map((e=>{if("_os"===e){return(new Intl.NumberFormat).resolvedOptions().locale}return"_vscode"===e?a.BH:e}))};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new $(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new q(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};G.ID="editor.contrib.unicodeHighlighter",G=j([U(1,g.w),U(2,z.L),U(3,w._Y)],G);let $=class extends r.jG{constructor(e,t,i,s){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=s,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new n.uC((()=>this._update()),250)),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then((t=>{if(this._model.isDisposed())return;if(this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const e of t.ranges)i.push({range:e,options:ee.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)}))}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!(0,m.GN)(t,e))return null;return{reason:J(t.getValueInRange(e.range),this._options),inComment:(0,m.a6)(t,e),inString:(0,m.wc)(t,e)}}};$=j([U(3,g.w)],$);class q extends r.jG{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new n.uC((()=>this._update()),250)),this._register(this._editor.onDidLayoutChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidScrollChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeHiddenAreas((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const n of e){const e=u.P.computeUnicodeHighlights(this._model,this._options,n);for(const t of e.ranges)i.ranges.push(t);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||e.hasMore}if(!i.hasMore)for(const n of i.ranges)t.push({range:n,options:ee.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return(0,m.GN)(t,e)?{reason:J(i,this._options),inComment:(0,m.a6)(t,e),inString:(0,m.wc)(t,e)}:null}}const Q=W.kg("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options");let Y=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=this._editor.getContribution(G.ID);if(!n)return[];const s=[],r=new Set;let a=300;for(const d of t){const e=n.getDecorationInfo(d);if(!e)continue;const t=i.getValueInRange(d.range).codePointAt(0),h=X(t);let c;switch(e.reason.kind){case 0:c=(0,l.aC)(e.reason.confusableWith)?W.kg("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",h,X(e.reason.confusableWith.codePointAt(0))):W.kg("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,X(e.reason.confusableWith.codePointAt(0)));break;case 1:c=W.kg("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:c=W.kg("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h)}if(r.has(c))continue;r.add(c);const u={codePoint:t,reason:e.reason,inComment:e.inComment,inString:e.inString},g=W.kg("unicodeHighlight.adjustSettings","Adjust settings"),p=`command:${re.ID}?${encodeURIComponent(JSON.stringify(u))}`,m=new o.Bc("",!0).appendMarkdown(c).appendText(" ").appendLink(p,g,Q);s.push(new _.eH(this,d.range,[m],!1,a++))}return s}renderHoverParts(e,t){return(0,_.fm)(e,t,this._editor,this._languageService,this._openerService)}};function Z(e){return`U+${e.toString(16).padStart(4,"0")}`}function X(e){let t=`\`${Z(e)}\``;return l.y_.isInvisibleCharacter(e)||(t+=` "${function(e){if(96===e)return"`` ` ``";return"`"+String.fromCodePoint(e)+"`"}(e)}"`),t}function J(e,t){return u.P.computeUnicodeHighlightReason(e,t)}Y=j([U(1,p.L),U(2,D.C)],Y);class ee{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let n=this.map.get(i);return n||(n=c.kI.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,n)),n}}ee.instance=new ee;class te extends d.ks{constructor(){super({id:ne.ID,label:W.kg("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=W.kg("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(V.pG);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.Of.includeComments,!1,2)}}class ie extends d.ks{constructor(){super({id:ne.ID,label:W.kg("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=W.kg("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(V.pG);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.Of.includeStrings,!1,2)}}class ne extends d.ks{constructor(){super({id:ne.ID,label:W.kg("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=W.kg("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(V.pG);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.Of.ambiguousCharacters,!1,2)}}ne.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class se extends d.ks{constructor(){super({id:se.ID,label:W.kg("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=W.kg("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(V.pG);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.Of.invisibleCharacters,!1,2)}}se.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class oe extends d.ks{constructor(){super({id:oe.ID,label:W.kg("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=W.kg("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(e,t,i){const n=null===e||void 0===e?void 0:e.get(V.pG);n&&this.runAction(n)}async runAction(e){await e.updateValue(h.Of.nonBasicASCII,!1,2)}}oe.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class re extends d.ks{constructor(){super({id:re.ID,label:W.kg("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(e,t,i){const{codePoint:n,reason:s,inString:o,inComment:r}=i,a=String.fromCodePoint(n),d=e.get(H.GK),c=e.get(V.pG);const u=[];if(0===s.kind)for(const l of s.notAmbiguousInLocales)u.push({label:W.kg("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',l),run:async()=>{ae(c,[l])}});if(u.push({label:function(e){return l.y_.isInvisibleCharacter(e)?W.kg("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",Z(e)):W.kg("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${Z(e)} "${a}"`)}(n),run:()=>async function(e,t){const i=e.getValue(h.Of.allowedCharacters);let n;n="object"===typeof i&&i?i:{};for(const s of t)n[String.fromCodePoint(s)]=!0;await e.updateValue(h.Of.allowedCharacters,n,2)}(c,[n])}),r){const e=new te;u.push({label:e.label,run:async()=>e.runAction(c)})}else if(o){const e=new ie;u.push({label:e.label,run:async()=>e.runAction(c)})}if(0===s.kind){const e=new ne;u.push({label:e.label,run:async()=>e.runAction(c)})}else if(1===s.kind){const e=new se;u.push({label:e.label,run:async()=>e.runAction(c)})}else if(2===s.kind){const e=new oe;u.push({label:e.label,run:async()=>e.runAction(c)})}else!function(e){throw new Error(`Unexpected value: ${e}`)}(s);const g=await d.pick(u,{title:Q});g&&await g.run()}}async function ae(e,t){var i;const n=null===(i=e.inspect(h.Of.allowedLocales).user)||void 0===i?void 0:i.value;let s;s="object"===typeof n&&n?Object.assign({},n):{};for(const o of t)s[o]=!0;await e.updateValue(h.Of.allowedLocales,s,2)}re.ID="editor.action.unicodeHighlight.showExcludeOptions",(0,d.Fl)(ne),(0,d.Fl)(se),(0,d.Fl)(oe),(0,d.Fl)(re),(0,d.HW)(G.ID,G,1),f.B2.register(Y)},47210:(e,t,i)=>{"use strict";var n=i(5662),s=i(89403),o=i(31450),r=i(80301),a=i(31629),l=i(59599),d=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},h=function(e,t){return function(i,n){t(i,n,e)}};const c="ignoreUnusualLineTerminators";let u=class extends n.jG{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._isPresentingDialog=!1,this._config=this._editor.getOption(126),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(126)&&(this._config=this._editor.getOption(126),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()}))),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,c)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(91))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());if(this._isPresentingDialog)return;let i;try{this._isPresentingDialog=!0,i=await this._dialogService.confirm({title:a.kg("unusualLineTerminators.title","Unusual Line Terminators"),message:a.kg("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.kg("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,s.P8)(e.uri)),primaryButton:a.kg({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:a.kg("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}i.confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,i){e.setModelProperty(t.uri,c,i)}(this._codeEditorService,e,!0)}};u.ID="editor.contrib.unusualLineTerminatorsDetector",u=d([h(1,l.X),h(2,r.T)],u),(0,o.HW)(u.ID,u,1)},13864:(e,t,i)=>{"use strict";i.d(t,{P:()=>b,v:()=>C});var n=i(16223),s=i(38361),o=i(62083),r=i(31629),a=i(85845),l=i(47612);const d=(0,a.x1A)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},r.kg("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);(0,a.x1A)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},r.kg("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),(0,a.x1A)("editor.wordHighlightTextBackground",{light:d,dark:d,hcDark:d,hcLight:d},r.kg("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);const h=(0,a.x1A)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:a.buw,hcLight:a.buw},r.kg("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));(0,a.x1A)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:a.buw,hcLight:a.buw},r.kg("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),(0,a.x1A)("editor.wordHighlightTextBorder",{light:h,dark:h,hcDark:h,hcLight:h},r.kg("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));const c=(0,a.x1A)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},r.kg("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u=(0,a.x1A)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},r.kg("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),g=(0,a.x1A)("editorOverviewRuler.wordHighlightTextForeground",{dark:a.z5H,light:a.z5H,hcDark:a.z5H,hcLight:a.z5H},r.kg("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),p=s.kI.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,l.Yf)(u),position:n.A5.Center},minimap:{color:(0,l.Yf)(a.Xp1),position:1}}),m=s.kI.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,l.Yf)(g),position:n.A5.Center},minimap:{color:(0,l.Yf)(a.Xp1),position:1}}),f=s.kI.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,l.Yf)(a.z5H),position:n.A5.Center},minimap:{color:(0,l.Yf)(a.Xp1),position:1}}),_=s.kI.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),v=s.kI.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,l.Yf)(c),position:n.A5.Center},minimap:{color:(0,l.Yf)(a.Xp1),position:1}});function b(e){return e===o.Kb.Write?p:e===o.Kb.Text?m:v}function C(e){return e?_:f}(0,l.zy)(((e,t)=>{const i=e.getColor(a.QwA);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)}))},29500:(e,t,i)=>{"use strict";var n,s,o=i(31629),r=i(25890),a=i(11007),l=i(90766),d=i(18447),h=i(64383),c=i(5662),u=i(34326),g=i(31450),p=i(80301),m=i(36677),f=i(60002),_=i(62083),v=i(16223),b=i(56942),C=i(13864),y=i(32848),w=i(36456),S=i(74320),k=i(54459),x=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},L=function(e,t){return function(i,n){t(i,n,e)}};const D=new y.N1("hasWordHighlights",!1);function E(e,t,i,n){const s=e.ordered(t);return(0,l.$1)(s.map((e=>()=>Promise.resolve(e.provideDocumentHighlights(t,i,n)).then(void 0,h.M_))),r.EI).then((e=>{if(e){const i=new S.fT;return i.set(t.uri,e),i}return new S.fT}))}class N{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=(0,l.SS)((e=>this._compute(this._model,this._selection,this._wordSeparators,e)))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new m.Q(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const n=t.startLineNumber,s=t.startColumn,o=t.endColumn,r=this._getCurrentWordRange(e,t);let a=Boolean(this._wordRange&&this._wordRange.equalsRange(r));for(let l=0,d=i.length;!a&&l<d;l++){const e=i.getRange(l);e&&e.startLineNumber===n&&e.startColumn<=s&&e.endColumn>=o&&(a=!0)}return a}cancel(){this.result.cancel()}}class T extends N{constructor(e,t,i,n){super(e,t,i),this._providers=n}_compute(e,t,i,n){return E(this._providers,e,t.getPosition(),n).then((e=>e||new S.fT))}}class I extends N{constructor(e,t,i,n,s){super(e,t,i),this._providers=n,this._otherModels=s}_compute(e,t,i,n){return function(e,t,i,n,s,o){const r=e.ordered(t);return(0,l.$1)(r.map((e=>()=>{const n=o.filter((e=>(0,v.vd)(e))).filter((t=>(0,k.f)(e.selector,t.uri,t.getLanguageId(),!0,void 0,void 0)>0));return Promise.resolve(e.provideMultiDocumentHighlights(t,i,n,s)).then(void 0,h.M_)})),(e=>e instanceof S.fT&&e.size>0))}(this._providers,e,t.getPosition(),0,n,this._otherModels).then((e=>e||new S.fT))}}class M extends N{constructor(e,t,i,n,s){super(e,t,n),this._otherModels=s,this._selectionIsEmpty=t.isEmpty(),this._word=i}_compute(e,t,i,n){return(0,l.wR)(250,n).then((()=>{const n=new S.fT;let s;if(s=this._word?this._word:e.getWordAtPosition(t.getPosition()),!s)return new S.fT;const o=[e,...this._otherModels];for(const e of o){if(e.isDisposed())continue;const t=e.findMatches(s.word,!0,!1,!0,i,!1).map((e=>({range:e.range,kind:_.Kb.Text})));t&&n.set(e.uri,t)}return n}))}isValid(e,t,i){const n=t.isEmpty();return this._selectionIsEmpty===n&&super.isValid(e,t,i)}}(0,g.ke)("_executeDocumentHighlights",(async(e,t,i)=>{const n=e.get(b.u),s=await E(n.documentHighlightProvider,t,i,d.X.None);return null===s||void 0===s?void 0:s.get(t.uri)}));let A=n=class{constructor(e,t,i,s,o){this.toUnhook=new c.Cm,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new S.fT,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this.multiDocumentProviders=i,this.codeEditorService=o,this._hasWordHighlights=D.bindTo(s),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((e=>{this._ignorePositionChangeEvent||"off"!==this.occurrencesHighlight&&this._onPositionChanged(e)}))),this.toUnhook.add(e.onDidFocusEditorText((e=>{"off"!==this.occurrencesHighlight&&(this.workerRequest||this._run())}))),this.toUnhook.add(e.onDidChangeModelContent((e=>{this._stopAll()}))),this.toUnhook.add(e.onDidChangeModel((e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():n.query&&this._run()}))),this.toUnhook.add(e.onDidChangeConfiguration((e=>{const t=this.editor.getOption(81);this.occurrencesHighlight!==t&&(this.occurrencesHighlight=t,this._stopAll())}))),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,n.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){"off"!==this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(m.Q.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),t=(e.findIndex((e=>e.containsPosition(this.editor.getPosition())))+1)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const n=this._getWord();if(n){const s=this.editor.getModel().getLineContent(i.startLineNumber);(0,a.xE)(`${s}, ${t+1} of ${e.length} for '${n.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),t=(e.findIndex((e=>e.containsPosition(this.editor.getPosition())))-1+e.length)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const n=this._getWord();if(n){const s=this.editor.getModel().getLineContent(i.startLineNumber);(0,a.xE)(`${s}, ${t+1} of ${e.length} for '${n.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;const e=n.storedDecorations.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),n.storedDecorations.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(){const e=this.codeEditorService.listCodeEditors(),t=[];for(const i of e){if(!i.hasModel())continue;const e=n.storedDecorations.get(i.getModel().uri);if(!e)continue;i.removeDecorations(e),t.push(i.getModel().uri);const s=R.get(i);(null===s||void 0===s?void 0:s.wordHighlighter)&&(s.wordHighlighter.decorations.length>0&&(s.wordHighlighter.decorations.clear(),s.wordHighlighter.workerRequest=null,s.wordHighlighter._hasWordHighlights.set(!1)))}for(const i of t)n.storedDecorations.delete(i)}_stopSingular(){var e,t,i,s;this._removeSingleDecorations(),this.editor.hasTextFocus()&&((null===(e=this.editor.getModel())||void 0===e?void 0:e.uri.scheme)!==w.ny.vscodeNotebookCell&&(null===(i=null===(t=n.query)||void 0===t?void 0:t.modelInfo)||void 0===i?void 0:i.model.uri.scheme)!==w.ny.vscodeNotebookCell?(n.query=null,this._run()):(null===(s=n.query)||void 0===s?void 0:s.modelInfo)&&(n.query.modelInfo=null)),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(){this._removeAllDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){var t;"off"!==this.occurrencesHighlight&&(3===e.reason||(null===(t=this.editor.getModel())||void 0===t?void 0:t.uri.scheme)===w.ny.vscodeNotebookCell)?this._run():this._stopAll()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:i})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===w.ny.vscodeNotebookCell){const t=[],i=this.codeEditorService.listCodeEditors();for(const n of i){const i=n.getModel();i&&i!==e&&i.uri.scheme===w.ny.vscodeNotebookCell&&t.push(i)}return t}const t=[],i=this.codeEditorService.listCodeEditors();for(const n of i){if(!(0,u.Np)(n))continue;const i=n.getModel();i&&(e===i.modified&&t.push(i.modified))}if(t.length)return t;if("singleFile"===this.occurrencesHighlight)return[];for(const n of i){const i=n.getModel();i&&i!==e&&t.push(i)}return t}_run(){var e;let t;if(this.editor.hasTextFocus()){const e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber)return n.query=null,void this._stopAll();const i=e.startColumn,s=e.endColumn,o=this._getWord();if(!o||o.startColumn>i||o.endColumn<s)return n.query=null,void this._stopAll();t=this.workerRequest&&this.workerRequest.isValid(this.model,e,this.decorations),n.query={modelInfo:{model:this.model,selection:e},word:o}}else if(!n.query)return;if(this.lastCursorPositionChangeTime=(new Date).getTime(),t)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();const t=++this.workerRequestTokenId;this.workerRequestCompleted=!1;const i=this.getOtherModelsToHighlight(this.editor.getModel());if(!n.query.modelInfo||n.query.modelInfo.model.isDisposed())return;this.workerRequest=this.computeWithModel(n.query.modelInfo.model,n.query.modelInfo.selection,n.query.word,i),null===(e=this.workerRequest)||void 0===e||e.result.then((e=>{t===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations())}),h.dz)}}computeWithModel(e,t,i,n){return n.length?function(e,t,i,n,s,o){return e.has(t)?new I(t,i,s,e,o):new M(t,i,n,s,o)}(this.multiDocumentProviders,e,t,i,this.editor.getOption(131),n):function(e,t,i,n,s){return e.has(t)?new T(t,i,s,e):new M(t,i,n,s,[])}(this.providers,e,t,i,this.editor.getOption(131))}_beginRenderDecorations(){const e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((()=>{this.renderDecorations()}),t-e)}renderDecorations(){var e,t,i;this.renderDecorationsTimer=-1;const s=this.codeEditorService.listCodeEditors();for(const o of s){const s=R.get(o);if(!s)continue;const r=[],a=null===(e=o.getModel())||void 0===e?void 0:e.uri;if(a&&this.workerRequestValue.has(a)){const e=n.storedDecorations.get(a),l=this.workerRequestValue.get(a);if(l)for(const t of l)t.range&&r.push({range:t.range,options:(0,C.P)(t.kind)});let d=[];o.changeDecorations((t=>{d=t.deltaDecorations(null!==e&&void 0!==e?e:[],r)})),n.storedDecorations=n.storedDecorations.set(a,d),r.length>0&&(null===(t=s.wordHighlighter)||void 0===t||t.decorations.set(r),null===(i=s.wordHighlighter)||void 0===i||i._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};A.storedDecorations=new S.fT,A.query=null,A=n=x([L(4,p.T)],A);let R=s=class extends c.jG{static get(e){return e.getContribution(s.ID)}constructor(e,t,i,n){super(),this._wordHighlighter=null;const s=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new A(e,i.documentHighlightProvider,i.multiDocumentHighlightProvider,t,n))};this._register(e.onDidChangeModel((e=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),s()}))),s()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!(!this._wordHighlighter||!this._wordHighlighter.hasDecorations())}moveNext(){var e;null===(e=this._wordHighlighter)||void 0===e||e.moveNext()}moveBack(){var e;null===(e=this._wordHighlighter)||void 0===e||e.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};R.ID="editor.contrib.wordHighlighter",R=s=x([L(1,y.fN),L(2,b.u),L(3,p.T)],R);class O extends g.ks{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=R.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}class P extends g.ks{constructor(){super({id:"editor.action.wordHighlight.trigger",label:o.kg("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:D.toNegated(),kbOpts:{kbExpr:f.R.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const n=R.get(t);n&&n.restoreViewState(!0)}}(0,g.HW)(R.ID,R,0),(0,g.Fl)(class extends O{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:o.kg("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:D,kbOpts:{kbExpr:f.R.editorTextFocus,primary:65,weight:100}})}}),(0,g.Fl)(class extends O{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:o.kg("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:D,kbOpts:{kbExpr:f.R.editorTextFocus,primary:1089,weight:100}})}}),(0,g.Fl)(P)},38728:(e,t,i)=>{"use strict";i.d(t,{Jk:()=>v,R7:()=>y});var n=i(31450),s=i(15092),o=i(87908),r=i(32799),a=i(97681),l=i(81782),d=i(83069),h=i(36677),c=i(75326),u=i(60002),g=i(17469),p=i(31629),m=i(253),f=i(32848),_=i(28290);class v extends n.DX{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const n=(0,l.i)(t.getOption(131),t.getOption(130)),s=t.getModel(),o=t.getSelections().map((e=>{const t=new d.y(e.positionLineNumber,e.positionColumn),i=this._move(n,s,t,this._wordNavigationType);return this._moveTo(e,i,this._inSelectionMode)}));if(s.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,o.map((e=>r.MF.fromModelSelection(e)))),1===o.length){const e=new d.y(o[0].positionLineNumber,o[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,i){return i?new c.L(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new c.L(t.lineNumber,t.column,t.lineNumber,t.column)}}class b extends v{_move(e,t,i,n){return a.z.moveWordLeft(e,t,i,n)}}class C extends v{_move(e,t,i,n){return a.z.moveWordRight(e,t,i,n)}}class y extends n.DX{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const n=e.get(g.JZ);if(!t.hasModel())return;const o=(0,l.i)(t.getOption(131),t.getOption(130)),r=t.getModel(),a=t.getSelections(),d=t.getOption(6),h=t.getOption(11),c=n.getLanguageConfiguration(r.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),p=a.map((e=>{const i=this._delete({wordSeparators:o,model:r,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:d,autoClosingQuotes:h,autoClosingPairs:c,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new s.iu(i,"")}));t.pushUndoStop(),t.executeCommands(this.id,p),t.pushUndoStop()}}class w extends y{_delete(e,t){const i=a.z.deleteWordLeft(e,t);return i||new h.Q(1,1,1,1)}}class S extends y{_delete(e,t){const i=a.z.deleteWordRight(e,t);if(i)return i;const n=e.model.getLineCount(),s=e.model.getLineMaxColumn(n);return new h.Q(n,s,n,s)}}class k extends n.ks{constructor(){super({id:"deleteInsideWord",precondition:u.R.writable,label:p.kg("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const n=(0,l.i)(t.getOption(131),t.getOption(130)),o=t.getModel(),r=t.getSelections().map((e=>{const t=a.z.deleteInsideWord(n,o,e);return new s.iu(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}(0,n.E_)(new class extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}),(0,n.E_)(new class extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}),(0,n.E_)(new class extends b{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,null===(e=f.M$.and(m.f,_.nd))||void 0===e?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}),(0,n.E_)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}),(0,n.E_)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}),(0,n.E_)(new class extends b{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,null===(e=f.M$.and(m.f,_.nd))||void 0===e?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}),(0,n.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}),(0,n.E_)(new class extends C{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,null===(e=f.M$.and(m.f,_.nd))||void 0===e?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}),(0,n.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}),(0,n.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}),(0,n.E_)(new class extends C{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,null===(e=f.M$.and(m.f,_.nd))||void 0===e?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}),(0,n.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}),(0,n.E_)(new class extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.i)(o.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),(0,n.E_)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.i)(o.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),(0,n.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.i)(o.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),(0,n.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.i)(o.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n)}}),(0,n.E_)(new class extends w{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:u.R.writable})}}),(0,n.E_)(new class extends w{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:u.R.writable})}}),(0,n.E_)(new class extends w{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:u.R.writable,kbOpts:{kbExpr:u.R.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}),(0,n.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:u.R.writable})}}),(0,n.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:u.R.writable})}}),(0,n.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:u.R.writable,kbOpts:{kbExpr:u.R.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}),(0,n.Fl)(k)},46606:(e,t,i)=>{"use strict";var n=i(31450),s=i(97681),o=i(36677),r=i(60002),a=i(38728),l=i(50091);class d extends a.R7{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:r.R.writable,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=s.c.deleteWordPartLeft(e);return i||new o.Q(1,1,1,1)}}class h extends a.R7{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:r.R.writable,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=s.c.deleteWordPartRight(e);if(i)return i;const n=e.model.getLineCount(),r=e.model.getLineMaxColumn(n);return new o.Q(n,r,n,r)}}class c extends a.Jk{_move(e,t,i,n){return s.c.moveWordPartLeft(e,t,i)}}l.w.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");l.w.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class u extends a.Jk{_move(e,t,i,n){return s.c.moveWordPartRight(e,t,i)}}(0,n.E_)(new d),(0,n.E_)(new h),(0,n.E_)(new class extends c{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}),(0,n.E_)(new class extends c{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}),(0,n.E_)(new class extends u{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}),(0,n.E_)(new class extends u{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}})},56800:(e,t,i)=>{"use strict";var n=i(8597),s=i(5662),o=i(31450),r=i(98067);class a extends s.jG{constructor(e){super(),this.editor=e,this.widget=null,r.un&&(this._register(e.onDidChangeConfiguration((()=>this.update()))),this.update())}update(){const e=!this.editor.getOption(91);!this.widget&&e?this.widget=new l(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}a.ID="editor.contrib.iPadShowKeyboard";class l extends s.jG{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(n.ko(this._domNode,"touchstart",(e=>{this.editor.focus()}))),this._register(n.ko(this._domNode,"focus",(e=>{this.editor.focus()}))),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return l.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}l.ID="editor.contrib.ShowKeyboardWidget",(0,o.HW)(a.ID,a,3)},84325:(e,t,i)=>{"use strict";var n,s=i(8597),o=i(47661),r=i(5662),a=i(31450),l=i(62083),d=i(25982),h=i(20788),c=i(10154),u=i(24520),g=i(51861),p=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},m=function(e,t){return function(i,n){t(i,n,e)}};let f=n=class extends r.jG{static get(e){return e.getContribution(n.ID)}constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel((e=>this.stop()))),this._register(this._editor.onDidChangeModelLanguage((e=>this.stop()))),this._register(l.dG.onDidChange((e=>this.stop()))),this._register(this._editor.onKeyUp((e=>9===e.keyCode&&this.stop())))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new v(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};f.ID="editor.contrib.inspectTokens",f=n=p([m(1,u.L),m(2,c.L)],f);class _ extends a.ks{constructor(){super({id:"editor.action.inspectTokens",label:g.YN.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=f.get(t);null===i||void 0===i||i.launch()}}class v extends r.jG{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(e,t){const i=l.dG.get(t);if(i)return i;const n=e.encodeLanguageId(t);return{getInitialState:()=>h.r3,tokenize:(e,i,n)=>(0,h.$H)(t,n),tokenizeEncoded:(e,t,i)=>(0,h.Lh)(n,i)}}(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition((e=>this._compute(this._editor.getPosition())))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return v._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let s=t.tokens1.length-1;s>=0;s--){const n=t.tokens1[s];if(e.column-1>=n.offset){i=s;break}}let n=0;for(let s=t.tokens2.length>>>1;s>=0;s--)if(e.column-1>=t.tokens2[s<<1]){n=s;break}const r=this._model.getLineContent(e.lineNumber);let a="";if(i<t.tokens1.length){const e=t.tokens1[i].offset,n=i+1<t.tokens1.length?t.tokens1[i+1].offset:r.length;a=r.substring(e,n)}(0,s.Ln)(this._domNode,(0,s.$)("h2.tm-token",void 0,function(e){let t="";for(let i=0,n=e.length;i<n;i++){const n=e.charCodeAt(i);switch(n){case 9:t+="\u2192";break;case 32:t+="\xb7";break;default:t+=String.fromCharCode(n)}}return t}(a),(0,s.$)("span.tm-token-length",void 0,`${a.length} ${1===a.length?"char":"chars"}`))),(0,s.BC)(this._domNode,(0,s.$)("hr.tokens-inspect-separator",{style:"clear:both"}));const l=1+(n<<1)<t.tokens2.length?this._decodeMetadata(t.tokens2[1+(n<<1)]):null;(0,s.BC)(this._domNode,(0,s.$)("table.tm-metadata-table",void 0,(0,s.$)("tbody",void 0,(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"language"),(0,s.$)("td.tm-metadata-value",void 0,`${l?l.languageId:"-?-"}`)),(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"token type"),(0,s.$)("td.tm-metadata-value",void 0,`${l?this._tokenTypeToString(l.tokenType):"-?-"}`)),(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"font style"),(0,s.$)("td.tm-metadata-value",void 0,`${l?this._fontStyleToString(l.fontStyle):"-?-"}`)),(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"foreground"),(0,s.$)("td.tm-metadata-value",void 0,`${l?o.Q1.Format.CSS.formatHex(l.foreground):"-?-"}`)),(0,s.$)("tr",void 0,(0,s.$)("td.tm-metadata-key",void 0,"background"),(0,s.$)("td.tm-metadata-value",void 0,`${l?o.Q1.Format.CSS.formatHex(l.background):"-?-"}`))))),(0,s.BC)(this._domNode,(0,s.$)("hr.tokens-inspect-separator")),i<t.tokens1.length&&(0,s.BC)(this._domNode,(0,s.$)("span.tm-token-type",void 0,t.tokens1[i].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){const t=l.dG.getColorMap(),i=d.x.getLanguageId(e),n=d.x.getTokenType(e),s=d.x.getFontStyle(e),o=d.x.getForeground(e),r=d.x.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(i),tokenType:n,fontStyle:s,foreground:t[o],background:t[r]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),0===t.length&&(t="---"),t}_getTokensAtLine(e){const t=this._getStateBeforeLine(e),i=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),n=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:i.tokens,tokens2:n.tokens,endState:i.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let i=1;i<e;i++){t=this._tokenizationSupport.tokenize(this._model.getLineContent(i),!0,t).endState}return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}v._ID="editor.contrib.inspectTokensWidget",(0,a.HW)(f.ID,f,4),(0,a.Fl)(_)},73494:(e,t,i)=>{"use strict";var n=i(46359),s=i(71597),o=i(51861),r=i(80301),a=i(37882),l=i(25890),d=i(631),h=i(31629);function c(e,t){return t&&(e.stack||e.stacktrace)?h.kg("stackTrace.format","{0}: {1}",g(e),u(e.stack)||u(e.stacktrace)):g(e)}function u(e){return Array.isArray(e)?e.join("\n"):e}function g(e){return"ERR_UNC_HOST_NOT_ALLOWED"===e.code?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:"string"===typeof e.code&&"number"===typeof e.errno&&"string"===typeof e.syscall?h.kg("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||h.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function p(e=null,t=!1){if(!e)return h.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const i=l.Yc(e),n=p(i[0],t);return i.length>1?h.kg("error.moreErrors","{0} ({1} errors in total)",n,i.length):n}if(d.Kg(e))return e;if(e.detail){const i=e.detail;if(i.error)return c(i.error,t);if(i.exception)return c(i.exception,t)}return e.stack?c(e,t):e.message?e.message:h.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var m=i(64383),f=i(26690),_=i(6921),v=i(5662),b=i(74320);class C{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){const i=this.computeEmbedding(e),n=new Map,s=[];for(const[o,r]of this.documents){if(t.isCancellationRequested)return[];for(const e of r.chunks){const t=this.computeSimilarityScore(e,i,n);t>0&&s.push({key:o,score:t})}}return s}static termFrequencies(e){return function(e){var t;const i=new Map;for(const n of e)i.set(n,(null!==(t=i.get(n))&&void 0!==t?t:0)+1);return i}(C.splitTerms(e))}static*splitTerms(e){const t=e=>e.toLowerCase();for(const[i]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(i);const e=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(e.length>1)for(const i of e)i.length>2&&/\p{Letter}{3,}/gu.test(i)&&(yield t(i))}}updateDocuments(e){var t;for(const{key:i}of e)this.deleteDocument(i);for(const i of e){const e=[];for(const n of i.textChunks){const i=C.termFrequencies(n);for(const e of i.keys())this.chunkOccurrences.set(e,(null!==(t=this.chunkOccurrences.get(e))&&void 0!==t?t:0)+1);e.push({text:n,tf:i})}this.chunkCount+=e.length,this.documents.set(i.key,{chunks:e})}return this}deleteDocument(e){const t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(const e of t.chunks)for(const t of e.tf.keys()){const e=this.chunkOccurrences.get(t);if("number"===typeof e){const i=e-1;i<=0?this.chunkOccurrences.delete(t):this.chunkOccurrences.set(t,i)}}}}computeSimilarityScore(e,t,i){let n=0;for(const[s,o]of Object.entries(t)){const t=e.tf.get(s);if(!t)continue;let r=i.get(s);"number"!==typeof r&&(r=this.computeIdf(s),i.set(s,r));n+=t*r*o}return n}computeEmbedding(e){const t=C.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){var t;const i=null!==(t=this.chunkOccurrences.get(e))&&void 0!==t?t:0;return i>0?Math.log((this.chunkCount+1)/i):0}computeTfidf(e){const t=Object.create(null);for(const[i,n]of e){const e=this.computeIdf(i);e>0&&(t[i]=n*e)}return t}}var y,w=i(50091),S=i(84001),k=i(59599),x=i(63591),L=i(98031),D=i(18801),E=i(90766),N=i(18447);function T(e){const t=e;return Array.isArray(t.items)}function I(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}!function(e){e[e.NO_ACTION=0]="NO_ACTION",e[e.CLOSE_PICKER=1]="CLOSE_PICKER",e[e.REFRESH_PICKER=2]="REFRESH_PICKER",e[e.REMOVE_ITEM=3]="REMOVE_ITEM"}(y||(y={}));class M extends v.jG{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,i){var n;const s=new v.Cm;let o;e.canAcceptInBackground=!!(null===(n=this.options)||void 0===n?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new v.HE),a=async()=>{var n;const s=r.value=new v.Cm;null===o||void 0===o||o.dispose(!0),e.busy=!1,o=new N.Q(t);const a=o.token;let l=e.value.substring(this.prefix.length);(null===(n=this.options)||void 0===n?void 0:n.shouldSkipTrimPickFilter)||(l=l.trim());const h=this._getPicks(l,s,a,i),c=(t,i)=>{var n;let s,o;if(T(t)?(s=t.items,o=t.active):s=t,0===s.length){if(i)return!1;(l.length>0||e.hideInput)&&(null===(n=this.options)||void 0===n?void 0:n.noResultsPick)&&(s=(0,d.Tn)(this.options.noResultsPick)?[this.options.noResultsPick(l)]:[this.options.noResultsPick])}return e.items=s,o&&(e.activeItems=[o]),!0},u=async t=>{let i=!1,n=!1;await Promise.all([(async()=>{"number"===typeof t.mergeDelay&&(await(0,E.wR)(t.mergeDelay),a.isCancellationRequested)||n||(i=c(t.picks,!0))})(),(async()=>{e.busy=!0;try{const n=await t.additionalPicks;if(a.isCancellationRequested)return;let s,o,r,l;if(T(t.picks)?(s=t.picks.items,o=t.picks.active):s=t.picks,T(n)?(r=n.items,l=n.active):r=n,r.length>0||!i){let t;if(!o&&!l){const i=e.activeItems[0];i&&-1!==s.indexOf(i)&&(t=i)}c({items:[...s,...r],active:o||l||t})}}finally{a.isCancellationRequested||(e.busy=!1),n=!0}})()])};if(null===h);else if(I(h))await u(h);else if(h instanceof Promise){e.busy=!0;try{const e=await h;if(a.isCancellationRequested)return;I(e)?await u(e):c(e)}finally{a.isCancellationRequested||(e.busy=!1)}}else c(h)};s.add(e.onDidChangeValue((()=>a()))),a(),s.add(e.onDidAccept((t=>{const[i]=e.selectedItems;"function"===typeof(null===i||void 0===i?void 0:i.accept)&&(t.inBackground||e.hide(),i.accept(e.keyMods,t))})));const l=async(i,n)=>{var s,o;if("function"!==typeof n.trigger)return;const r=null!==(o=null===(s=n.buttons)||void 0===s?void 0:s.indexOf(i))&&void 0!==o?o:-1;if(r>=0){const i=n.trigger(r,e.keyMods),s="number"===typeof i?i:await i;if(t.isCancellationRequested)return;switch(s){case y.NO_ACTION:break;case y.CLOSE_PICKER:e.hide();break;case y.REFRESH_PICKER:a();break;case y.REMOVE_ITEM:{const t=e.items.indexOf(n);if(-1!==t){const i=e.items.slice(),n=i.splice(t,1),s=e.activeItems.filter((e=>e!==n[0])),o=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,s&&(e.activeItems=s),e.keepScrollPosition=o}break}}}};return s.add(e.onDidTriggerItemButton((({button:e,item:t})=>l(e,t)))),s.add(e.onDidTriggerSeparatorButton((({button:e,separator:t})=>l(e,t)))),s}}var A,R,O=i(9711),P=i(90651),F=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},B=function(e,t){return function(i,n){t(i,n,e)}};let W=A=class extends M{constructor(e,t,i,n,s,o){super(A.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=s,this.dialogService=o,this.commandsHistory=this._register(this.instantiationService.createInstance(V)),this.options=e}async _getPicks(e,t,i,n){var s,o,r,a;const l=await this.getCommandPicks(i);if(i.isCancellationRequested)return[];const d=(0,_.P)((()=>{const t=new C;t.updateDocuments(l.map((e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]}))));return function(e){var t,i;const n=e.slice(0);n.sort(((e,t)=>t.score-e.score));const s=null!==(i=null===(t=n[0])||void 0===t?void 0:t.score)&&void 0!==i?i:0;if(s>0)for(const o of n)o.score/=s;return n}(t.calculateScores(e,i)).filter((e=>e.score>A.TFIDF_THRESHOLD)).slice(0,A.TFIDF_MAX_RESULTS)})),c=[];for(const h of l){const t=null!==(s=A.WORD_FILTER(e,h.label))&&void 0!==s?s:void 0,n=h.commandAlias&&null!==(o=A.WORD_FILTER(e,h.commandAlias))&&void 0!==o?o:void 0;if(t||n)h.highlights={label:t,detail:this.options.showAlias?n:void 0},c.push(h);else if(e===h.commandId)c.push(h);else if(e.length>=3){const e=d();if(i.isCancellationRequested)return[];const t=e.find((e=>e.key===h.commandId));t&&(h.tfIdfScore=t.score,c.push(h))}}const u=new Map;for(const h of c){const e=u.get(h.label);e?(h.description=h.commandId,e.description=e.commandId):u.set(h.label,h)}c.sort(((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return-1;const i=this.commandsHistory.peek(e.commandId),n=this.commandsHistory.peek(t.commandId);if(i&&n)return i>n?-1:1;if(i)return-1;if(n)return 1;if(this.options.suggestedCommandIds){const i=this.options.suggestedCommandIds.has(e.commandId),n=this.options.suggestedCommandIds.has(t.commandId);if(i&&n)return 0;if(i)return-1;if(n)return 1}return e.label.localeCompare(t.label)}));const g=[];let p=!1,m=!0,f=!!this.options.suggestedCommandIds;for(let _=0;_<c.length;_++){const e=c[_];0===_&&this.commandsHistory.peek(e.commandId)&&(g.push({type:"separator",label:(0,h.kg)("recentlyUsed","recently used")}),p=!0),m&&void 0!==e.tfIdfScore&&(g.push({type:"separator",label:(0,h.kg)("suggested","similar commands")}),m=!1),f&&void 0===e.tfIdfScore&&!this.commandsHistory.peek(e.commandId)&&(null===(r=this.options.suggestedCommandIds)||void 0===r?void 0:r.has(e.commandId))&&(g.push({type:"separator",label:(0,h.kg)("commonlyUsed","commonly used")}),p=!0,f=!1),!p||void 0!==e.tfIdfScore||this.commandsHistory.peek(e.commandId)||(null===(a=this.options.suggestedCommandIds)||void 0===a?void 0:a.has(e.commandId))||(g.push({type:"separator",label:(0,h.kg)("morecCommands","other commands")}),p=!1),g.push(this.toCommandPick(e,n))}return this.hasAdditionalCommandPicks(e,i)?{picks:g,additionalPicks:(async()=>{var t;const s=await this.getAdditionalCommandPicks(l,c,e,i);if(i.isCancellationRequested)return[];const o=s.map((e=>this.toCommandPick(e,n)));return m&&"separator"!==(null===(t=o[0])||void 0===t?void 0:t.type)&&o.unshift({type:"separator",label:(0,h.kg)("suggested","similar commands")}),o})()}:g}toCommandPick(e,t){if("separator"===e.type)return e;const i=this.keybindingService.lookupKeybinding(e.commandId),n=i?(0,h.kg)("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,i.getAriaLabel()):e.label;return{...e,ariaLabel:n,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,accept:async()=>{var i,n;this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:null!==(i=null===t||void 0===t?void 0:t.from)&&void 0!==i?i:"quick open"});try{(null===(n=e.args)||void 0===n?void 0:n.length)?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(s){(0,m.MB)(s)||this.dialogService.error((0,h.kg)("canNotRun","Command '{0}' resulted in an error",e.label),p(s))}}}}getTfIdfChunk({label:e,commandAlias:t,commandDescription:i}){let n=e;return t&&t!==e&&(n+=` - ${t}`),i&&i.value!==e&&(n+=` - ${i.value===i.original?i.value:`${i.value} (${i.original})`}`),n}};W.PREFIX=">",W.TFIDF_THRESHOLD=.5,W.TFIDF_MAX_RESULTS=5,W.WORD_FILTER=(0,f.or)(f.WP,f.J1,f.Tt),W=A=F([B(1,x._Y),B(2,L.b),B(3,w.d),B(4,P.k),B(5,k.X)],W);let V=R=class extends v.jG{constructor(e,t,i){super(),this.storageService=e,this.configurationService=t,this.logService=i,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>this.updateConfiguration(e)))),this._register(this.storageService.onWillSaveState((e=>{e.reason===O.LP.SHUTDOWN&&this.saveState()})))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=R.getConfiguredCommandHistoryLength(this.configurationService),R.cache&&R.cache.limit!==this.configuredCommandsHistoryLength&&(R.cache.limit=this.configuredCommandsHistoryLength,R.hasChanges=!0))}load(){const e=this.storageService.get(R.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch(n){this.logService.error(`[CommandsHistory] invalid data: ${n}`)}const i=R.cache=new b.qK(this.configuredCommandsHistoryLength,1);if(t){let e;e=t.usesLRU?t.entries:t.entries.sort(((e,t)=>e.value-t.value)),e.forEach((e=>i.set(e.key,e.value)))}R.counter=this.storageService.getNumber(R.PREF_KEY_COUNTER,0,R.counter)}push(e){R.cache&&(R.cache.set(e,R.counter++),R.hasChanges=!0)}peek(e){var t;return null===(t=R.cache)||void 0===t?void 0:t.peek(e)}saveState(){if(!R.cache)return;if(!R.hasChanges)return;const e={usesLRU:!0,entries:[]};R.cache.forEach(((t,i)=>e.entries.push({key:i,value:t}))),this.storageService.store(R.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(R.PREF_KEY_COUNTER,R.counter,0,0),R.hasChanges=!1}static getConfiguredCommandHistoryLength(e){var t,i;const n=null===(i=null===(t=e.getValue().workbench)||void 0===t?void 0:t.commandPalette)||void 0===i?void 0:i.history;return"number"===typeof n?n:R.DEFAULT_COMMANDS_HISTORY_LENGTH}};V.DEFAULT_COMMANDS_HISTORY_LENGTH=50,V.PREF_KEY_CACHE="commandPalette.mru.cache",V.PREF_KEY_COUNTER="commandPalette.mru.counter",V.counter=1,V.hasChanges=!1,V=R=F([B(0,O.CS),B(1,S.pG),B(2,D.rr)],V);class H extends W{constructor(e,t,i,n,s,o){super(e,t,i,n,s,o)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:(0,a.pS)(i.label)||i.id});return t}}var z=i(31450),j=i(60002),U=i(51467),K=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},G=function(e,t){return function(i,n){t(i,n,e)}};let $=class extends H{get activeTextEditorControl(){var e;return null!==(e=this.codeEditorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}constructor(e,t,i,n,s,o){super({showAlias:!1},e,i,n,s,o),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};$=K([G(0,x._Y),G(1,r.T),G(2,L.b),G(3,w.d),G(4,P.k),G(5,k.X)],$);class q extends z.ks{constructor(){super({id:q.ID,label:o.gf.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:j.R.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(U.GK).quickAccess.show($.PREFIX)}}q.ID="editor.action.quickCommand",(0,z.Fl)(q),n.O.as(s.Fd.Quickaccess).registerQuickAccessProvider({ctor:$,prefix:$.PREFIX,helpEntries:[{description:o.gf.quickCommandHelp,commandId:q.ID}]})},81091:(e,t,i)=>{"use strict";var n=i(5662),s=i(34326),o=i(12437),r=i(31629);class a extends o.o{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=(0,r.kg)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,n.jG.None}provideWithTextEditor(e,t,i){const o=e.editor,r=new n.Cm;r.add(t.onDidAccept((i=>{const[n]=t.selectedItems;if(n){if(!this.isValidLineNumber(o,n.lineNumber))return;this.gotoLocation(e,{range:this.toRange(n.lineNumber,n.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),i.inBackground||t.hide()}})));const l=()=>{const e=this.parsePosition(o,t.value.trim().substr(a.PREFIX.length)),i=this.getPickLabel(o,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,!this.isValidLineNumber(o,e.lineNumber))return void this.clearDecorations(o);const n=this.toRange(e.lineNumber,e.column);o.revealRangeInCenter(n,0),this.addDecorations(o,n)};l(),r.add(t.onDidChangeValue((()=>l())));const d=(0,s.jA)(o);if(d){2===d.getOptions().get(68).renderType&&(d.updateOptions({lineNumbers:"on"}),r.add((0,n.s)((()=>d.updateOptions({lineNumbers:"relative"})))))}return r}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map((e=>parseInt(e,10))).filter((e=>!isNaN(e))),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?(0,r.kg)("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):(0,r.kg)("gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},s=this.lineCount(e);return s>1?(0,r.kg)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,s):(0,r.kg)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!(!t||"number"!==typeof t)&&(t>0&&t<=this.lineCount(e))}isValidColumn(e,t,i){if(!i||"number"!==typeof i)return!1;const n=this.getModel(e);if(!n)return!1;const s={lineNumber:t,column:i};return n.validatePosition(s).equals(s)}lineCount(e){var t,i;return null!==(i=null===(t=this.getModel(e))||void 0===t?void 0:t.getLineCount())&&void 0!==i?i:0}}a.PREFIX=":";var l=i(46359),d=i(71597),h=i(80301),c=i(51861),u=i(41234),g=i(31450),p=i(60002),m=i(51467),f=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};let v=class extends a{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=u.Jh.None}get activeTextEditorControl(){var e;return null!==(e=this.editorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}};v=f([_(0,h.T)],v);class b extends g.ks{constructor(){super({id:b.ID,label:c.Hw.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:p.R.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(m.GK).quickAccess.show(v.PREFIX)}}b.ID="editor.action.gotoLine",(0,g.Fl)(b),l.O.as(d.Fd.Quickaccess).registerQuickAccessProvider({ctor:v,prefix:v.PREFIX,helpEntries:[{description:c.Hw.gotoLineActionLabel,commandId:b.ID}]})},28211:(e,t,i)=>{"use strict";i(97791),i(93409);var n=i(90766),s=i(18447),o=i(10350),r=i(25689),a=i(26690),l=i(74027),d=i(98067),h=i(91508);const c=[void 0,[]];function u(e,t,i=0,n=0){const s=t;return s.values&&s.values.length>1?function(e,t,i,n){let s=0;const o=[];for(const r of t){const[t,a]=g(e,r,i,n);if("number"!==typeof t)return c;s+=t,o.push(...a)}return[s,p(o)]}(e,s.values,i,n):g(e,t,i,n)}function g(e,t,i,n){const s=(0,a.dt)(t.original,t.originalLowercase,i,e,e.toLowerCase(),n,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return s?[s[0],(0,a.WJ)(s)]:c}Object.freeze({score:0});function p(e){const t=e.sort(((e,t)=>e.start-t.start)),i=[];let n;for(const s of t)n&&m(n,s)?(n.start=Math.min(n.start,s.start),n.end=Math.max(n.end,s.end)):(n=s,i.push(s));return i}function m(e,t){return!(e.end<t.start)&&!(t.end<e.start)}function f(e){return e.startsWith('"')&&e.endsWith('"')}function _(e){"string"!==typeof e&&(e="");const t=e.toLowerCase(),{pathNormalized:i,normalized:n,normalizedLowercase:s}=v(e),o=i.indexOf(l.Vn)>=0,r=f(e);let a;const d=e.split(" ");if(d.length>1)for(const l of d){const e=f(l),{pathNormalized:t,normalized:i,normalizedLowercase:n}=v(l);i&&(a||(a=[]),a.push({original:l,originalLowercase:l.toLowerCase(),pathNormalized:t,normalized:i,normalizedLowercase:n,expectContiguousMatch:e}))}return{original:e,originalLowercase:t,pathNormalized:i,normalized:n,normalizedLowercase:s,values:a,containsPathSeparator:o,expectContiguousMatch:r}}function v(e){let t;t=d.uF?e.replace(/\//g,l.Vn):e.replace(/\\/g,l.Vn);const i=(0,h.wB)(t).replace(/\s|"/g,"");return{pathNormalized:t,normalized:i,normalizedLowercase:i.toLowerCase()}}function b(e){return Array.isArray(e)?_(e.map((e=>e.original)).join(" ")):_(e.original)}var C,y=i(5662),w=i(36677),S=i(62083),k=i(29999),x=i(12437),L=i(31629),D=i(56942),E=i(46041),N=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},T=function(e,t){return function(i,n){t(i,n,e)}};let I=C=class extends x.o{constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,(0,L.kg)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),y.jG.None}provideWithTextEditor(e,t,i){const n=e.editor,s=this.getModel(n);return s?this._languageFeaturesService.documentSymbolProvider.has(s)?this.doProvideWithEditorSymbols(e,s,t,i):this.doProvideWithoutEditorSymbols(e,s,t,i):y.jG.None}doProvideWithoutEditorSymbols(e,t,i,n){const s=new y.Cm;return this.provideLabelPick(i,(0,L.kg)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>{await this.waitForLanguageSymbolRegistry(t,s)&&!n.isCancellationRequested&&s.add(this.doProvideWithEditorSymbols(e,t,i,n))})(),s}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new n.Zv,s=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(s.dispose(),i.complete(!0))})));return t.add((0,y.s)((()=>i.complete(!1)))),i.p}doProvideWithEditorSymbols(e,t,i,n){var o;const r=e.editor,a=new y.Cm;a.add(i.onDidAccept((t=>{const[n]=i.selectedItems;n&&n.range&&(this.gotoLocation(e,{range:n.range.selection,keyMods:i.keyMods,preserveFocus:t.inBackground}),t.inBackground||i.hide())}))),a.add(i.onDidTriggerItemButton((({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())})));const l=this.getDocumentSymbols(t,n);let d;const h=async e=>{null===d||void 0===d||d.dispose(!0),i.busy=!1,d=new s.Q(n),i.busy=!0;try{const t=_(i.value.substr(C.PREFIX.length).trim()),s=await this.doGetSymbolPicks(l,t,void 0,d.token);if(n.isCancellationRequested)return;if(s.length>0){if(i.items=s,e&&0===t.original.length){const t=(0,E.Uk)(s,(t=>Boolean("separator"!==t.type&&t.range&&w.Q.containsPosition(t.range.decoration,e))));t&&(i.activeItems=[t])}}else t.original.length>0?this.provideLabelPick(i,(0,L.kg)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,(0,L.kg)("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(i.busy=!1)}};return a.add(i.onDidChangeValue((()=>h(void 0)))),h(null===(o=r.getSelection())||void 0===o?void 0:o.getPosition()),a.add(i.onDidChangeActive((()=>{const[e]=i.activeItems;e&&e.range&&(r.revealRangeInCenter(e.range.selection,0),this.addDecorations(r,e.range.decoration))}))),a}async doGetSymbolPicks(e,t,i,n){var s,a;const l=await e;if(n.isCancellationRequested)return[];const d=0===t.original.indexOf(C.SCOPE_PREFIX),c=d?1:0;let g,p,m;t.values&&t.values.length>1?(g=b(t.values[0]),p=b(t.values.slice(1))):g=t;const f=null===(a=null===(s=this.options)||void 0===s?void 0:s.openSideBySideDirection)||void 0===a?void 0:a.call(s);f&&(m=[{iconClass:"right"===f?r.L.asClassName(o.W.splitHorizontal):r.L.asClassName(o.W.splitVertical),tooltip:"right"===f?(0,L.kg)("openToSide","Open to the Side"):(0,L.kg)("openToBottom","Open to the Bottom")}]);const _=[];for(let k=0;k<l.length;k++){const x=l[k],D=(0,h.Bq)(x.name),E=`$(${S.gP.toIcon(x.kind).id}) ${D}`,N=E.length-D.length;let T,I,R,O,P=x.containerName;if((null===i||void 0===i?void 0:i.extraContainerLabel)&&(P=P?`${i.extraContainerLabel} \u2022 ${P}`:i.extraContainerLabel),t.original.length>c){let B=!1;if(g!==t&&([T,I]=u(E,{...t,values:void 0},c,N),"number"===typeof T&&(B=!0)),"number"!==typeof T&&([T,I]=u(E,g,c,N),"number"!==typeof T))continue;if(!B&&p){if(P&&p.original.length>0&&([R,O]=u(P,p)),"number"!==typeof R)continue;"number"===typeof T&&(T+=R)}}const F=x.tags&&x.tags.indexOf(1)>=0;_.push({index:k,kind:x.kind,score:T,label:E,ariaLabel:(0,S.PK)(x.name,x.kind),description:P,highlights:F?void 0:{label:I,description:O},range:{selection:w.Q.collapseToStart(x.selectionRange),decoration:x.range},strikethrough:F,buttons:m})}const v=_.sort(((e,t)=>d?this.compareByKindAndScore(e,t):this.compareByScore(e,t)));let y=[];if(d){let W,V,H=0;function z(){V&&"number"===typeof W&&H>0&&(V.label=(0,h.GP)(A[W]||M,H))}for(const j of v)W!==j.kind?(z(),W=j.kind,H=1,V={type:"separator"},y.push(V)):H++,y.push(j);z()}else v.length>0&&(y=[{label:(0,L.kg)("symbols","symbols ({0})",_.length),type:"separator"},...v]);return y}compareByScore(e,t){if("number"!==typeof e.score&&"number"===typeof t.score)return 1;if("number"===typeof e.score&&"number"!==typeof t.score)return-1;if("number"===typeof e.score&&"number"===typeof t.score){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){const i=A[e.kind]||M,n=A[t.kind]||M,s=i.localeCompare(n);return 0===s?this.compareByScore(e,t):s}async getDocumentSymbols(e,t){const i=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}};I.PREFIX="@",I.SCOPE_PREFIX=":",I.PREFIX_BY_CATEGORY=`${C.PREFIX}${C.SCOPE_PREFIX}`,I=C=N([T(0,D.u),T(1,k.gW)],I);const M=(0,L.kg)("property","properties ({0})"),A={5:(0,L.kg)("method","methods ({0})"),11:(0,L.kg)("function","functions ({0})"),8:(0,L.kg)("_constructor","constructors ({0})"),12:(0,L.kg)("variable","variables ({0})"),4:(0,L.kg)("class","classes ({0})"),22:(0,L.kg)("struct","structs ({0})"),23:(0,L.kg)("event","events ({0})"),24:(0,L.kg)("operator","operators ({0})"),10:(0,L.kg)("interface","interfaces ({0})"),2:(0,L.kg)("namespace","namespaces ({0})"),3:(0,L.kg)("package","packages ({0})"),25:(0,L.kg)("typeParameter","type parameters ({0})"),1:(0,L.kg)("modules","modules ({0})"),6:(0,L.kg)("property","properties ({0})"),9:(0,L.kg)("enum","enumerations ({0})"),21:(0,L.kg)("enumMember","enumeration members ({0})"),14:(0,L.kg)("string","strings ({0})"),0:(0,L.kg)("file","files ({0})"),17:(0,L.kg)("array","arrays ({0})"),15:(0,L.kg)("number","numbers ({0})"),16:(0,L.kg)("boolean","booleans ({0})"),18:(0,L.kg)("object","objects ({0})"),19:(0,L.kg)("key","keys ({0})"),7:(0,L.kg)("field","fields ({0})"),13:(0,L.kg)("constant","constants ({0})")};var R=i(46359),O=i(71597),P=i(80301),F=i(51861),B=i(41234),W=i(31450),V=i(60002),H=i(51467),z=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},j=function(e,t){return function(i,n){t(i,n,e)}};let U=class extends I{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=B.Jh.None}get activeTextEditorControl(){var e;return null!==(e=this.editorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}};U=z([j(0,P.T),j(1,D.u),j(2,k.gW)],U);class K extends W.ks{constructor(){super({id:K.ID,label:F.n9.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:V.R.hasDocumentSymbolProvider,kbOpts:{kbExpr:V.R.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(H.GK).quickAccess.show(I.PREFIX,{itemActivation:H.C1.NONE})}}K.ID="editor.action.quickOutline",(0,W.Fl)(K),R.O.as(O.Fd.Quickaccess).registerQuickAccessProvider({ctor:U,prefix:I.PREFIX,helpEntries:[{description:F.n9.quickOutlineActionLabel,prefix:I.PREFIX,commandId:K.ID},{description:F.n9.quickOutlineByCategoryActionLabel,prefix:I.PREFIX_BY_CATEGORY}]})},6429:(e,t,i)=>{"use strict";var n,s=i(46359),o=i(71597),r=i(51861),a=i(31629),l=i(5662),d=i(98031),h=i(51467),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},u=function(e,t){return function(i,n){t(i,n,e)}};let g=n=class{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=s.O.as(o.Fd.Quickaccess)}provide(e){const t=new l.Cm;return t.add(e.onDidAccept((()=>{const[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),t.add(e.onDidChangeValue((e=>{const t=this.registry.getQuickAccessProvider(e.substr(n.PREFIX.length));t&&t.prefix&&t.prefix!==n.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),e.items=this.getQuickAccessProviders().filter((e=>e.prefix!==n.PREFIX)),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))).flatMap((e=>this.createPicks(e)))}createPicks(e){return e.helpEntries.map((t=>{const i=t.prefix||e.prefix,n=i||"\u2026";return{prefix:i,label:n,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:(0,a.kg)("helpPickAriaLabel","{0}, {1}",n,t.description),description:t.description}}))}};g.PREFIX="?",g=n=c([u(0,h.GK),u(1,d.b)],g),s.O.as(o.Fd.Quickaccess).registerQuickAccessProvider({ctor:g,prefix:"",helpEntries:[{description:r.oq.helpQuickAccessActionLabel}]})},57377:(e,t,i)=>{"use strict";var n=i(31450),s=i(80301),o=i(23646),r=i(84001),a=i(32848),l=i(63591),d=i(58591),h=i(9711),c=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},u=function(e,t){return function(i,n){t(i,n,e)}};let g=class extends o.X{constructor(e,t,i,n,s,o,r){super(!0,e,t,i,n,s,o,r)}};g=c([u(1,a.fN),u(2,s.T),u(3,d.Ot),u(4,l._Y),u(5,h.CS),u(6,r.pG)],g),(0,n.HW)(o.X.ID,g,4)},10424:(e,t,i)=>{"use strict";i.d(t,{aQ:()=>M,nr:()=>A,Sx:()=>V,po:()=>I,tj:()=>T});var n=i(8597),s=i(60413),o=i(47661),r=i(41234),a=i(62083),l=i(25982);class d{constructor(e,t,i,n,s){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=s}}const h=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class c{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(h);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let i=this._color2id.get(e);return i||(i=++this._lastColorId,this._color2id.set(e,i),this._id2color[i]=o.Q1.fromHex("#"+e),i)}getColorMap(){return this._id2color.slice(0)}}class u{static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];const t=[];let i=0;for(let n=0,s=e.length;n<s;n++){const s=e[n];let o=-1;if("string"===typeof s.fontStyle){o=0;const e=s.fontStyle.split(" ");for(let t=0,i=e.length;t<i;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let r=null;"string"===typeof s.foreground&&(r=s.foreground);let a=null;"string"===typeof s.background&&(a=s.background),t[i++]=new d(s.token||"",n,o,r,a)}return t}(e),t)}static createFromParsedTokenTheme(e,t){return function(e,t){e.sort(((e,t)=>{const i=function(e,t){return e<t?-1:e>t?1:0}(e.token,t.token);return 0!==i?i:e.index-t.index}));let i=0,n="000000",s="ffffff";for(;e.length>=1&&""===e[0].token;){const t=e.shift();-1!==t.fontStyle&&(i=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(s=t.background)}const o=new c;for(const h of t)o.getId(h);const r=o.getId(n),a=o.getId(s),l=new p(i,r,a),d=new m(l);for(let h=0,c=e.length;h<c;h++){const t=e[h];d.insert(t.token,t.fontStyle,o.getId(t.foreground),o.getId(t.background))}return new u(o,d)}(e,t)}constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,t){let i=this._cache.get(t);if("undefined"===typeof i){const e=this._match(t),n=function(e){const t=e.match(g);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}(t);i=(e.metadata|n<<8)>>>0,this._cache.set(t,i)}return(i|e)>>>0}}const g=/\b(comment|string|regex|regexp)\b/;class p{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new p(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class m{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;const t=e.indexOf(".");let i,n;-1===t?(i=e,n=""):(i=e.substring(0,t),n=e.substring(t+1));const s=this._children.get(i);return"undefined"!==typeof s?s.match(n):this._mainRule}insert(e,t,i,n){if(""===e)return void this._mainRule.acceptOverwrite(t,i,n);const s=e.indexOf(".");let o,r;-1===s?(o=e,r=""):(o=e.substring(0,s),r=e.substring(s+1));let a=this._children.get(o);"undefined"===typeof a&&(a=new m(this._mainRule.clone()),this._children.set(o,a)),a.insert(r,t,i,n)}}var f=i(87119),_=i(85845);const v={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[_.YtV]:"#FFFFFE",[_.By2]:"#000000",[_.tan]:"#E5EBF1",[f.vV]:"#D3D3D3",[f.H0]:"#939393",[_.QwA]:"#ADD6FF4D"}},b={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[_.YtV]:"#1E1E1E",[_.By2]:"#D4D4D4",[_.tan]:"#3A3D41",[f.vV]:"#404040",[f.H0]:"#707070",[_.QwA]:"#ADD6FF26"}},C={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[_.YtV]:"#000000",[_.By2]:"#FFFFFF",[f.vV]:"#FFFFFF",[f.H0]:"#FFFFFF"}},y={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[_.YtV]:"#FFFFFF",[_.By2]:"#292929",[f.vV]:"#292929",[f.H0]:"#292929"}};var w=i(46359),S=i(47612),k=i(5662),x=i(86723),L=i(25689),D=i(61394);class E{getIcon(e){const t=(0,D.HT)();let i=e.defaults;for(;L.L.isThemeIcon(i);){const e=t.getIcon(i.id);if(!e)return;i=e.defaults}return i}}var N=i(25893);const T="vs",I="vs-dark",M="hc-black",A="hc-light",R=w.O.as(_.FdG.ColorContribution),O=w.O.as(S.Fd.ThemingContribution);class P{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(F(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,o.Q1.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=B(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,o.Q1.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);return i||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=R.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case T:return x.zM.LIGHT;case M:return x.zM.HIGH_CONTRAST_DARK;case A:return x.zM.HIGH_CONTRAST_LIGHT;default:return x.zM.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const i=B(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){const t={token:""};i&&(t.foreground=i),n&&(t.background=n),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=u.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const n=this.tokenTheme._match([e].concat(t).join(".")).metadata,s=l.x.getForeground(n),o=l.x.getFontStyle(n);return{foreground:s,italic:Boolean(1&o),bold:Boolean(2&o),underline:Boolean(4&o),strikethrough:Boolean(8&o)}}}function F(e){return e===T||e===I||e===M||e===A}function B(e){switch(e){case T:return v;case I:return b;case M:return C;case A:return y}}function W(e){const t=B(e);return new P(e,t)}class V extends k.jG{constructor(){super(),this._onColorThemeChange=this._register(new r.vl),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new r.vl),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new E,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(T,W(T)),this._knownThemes.set(I,W(I)),this._knownThemes.set(M,W(M)),this._knownThemes.set(A,W(A));const e=this._register(function(e){const t=new k.Cm,i=t.add(new r.vl),s=(0,D.HT)();return t.add(s.onDidChange((()=>i.fire()))),e&&t.add(e.onDidProductIconThemeChange((()=>i.fire()))),{dispose:()=>t.dispose(),onDidChange:i.event,getCSS(){const t=e?e.getProductIconTheme():new E,i={},o=e=>{const s=t.getIcon(e);if(!s)return;const o=s.font;return o?(i[o.id]=o.definition,`.codicon-${e.id}:before { content: '${s.fontCharacter}'; font-family: ${(0,n.yt)(o.id)}; }`):`.codicon-${e.id}:before { content: '${s.fontCharacter}'; }`},r=[];for(const e of s.getIcons()){const t=o(e);t&&r.push(t)}for(const e in i){const t=i[e],s=t.weight?`font-weight: ${t.weight};`:"",o=t.style?`font-style: ${t.style};`:"",a=t.src.map((e=>`${(0,n.Tf)(e.location)} format('${e.format}')`)).join(", ");r.push(`@font-face { src: ${a}; font-family: ${(0,n.yt)(e)};${s}${o} font-display: block; }`)}return r.join("\n")}}}(this));this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(T),this._onOSSchemeChanged(),this._register(e.onDidChange((()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}))),(0,s.Dy)(N.G,"(forced-colors: active)",(()=>{this._onOSSchemeChanged()}))}registerEditorContainer(e){return n.Cl(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=n.li(void 0,(e=>{e.className="monaco-colors",e.textContent=this._allCSS})),this._styleElements.push(this._globalStyleElement)),k.jG.None}_registerShadowDomContainer(e){const t=n.li(e,(e=>{e.className="monaco-colors",e.textContent=this._allCSS}));return this._styleElements.push(t),{dispose:()=>{for(let e=0;e<this._styleElements.length;e++)if(this._styleElements[e]===t)return void this._styleElements.splice(e,1)}}}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!F(t.base)&&!F(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new P(e,t)),F(e)&&this._knownThemes.forEach((t=>{t.base===e&&t.notifyBaseUpdated()})),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(T),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=N.G.matchMedia("(forced-colors: active)").matches;if(e!==(0,x.Bb)(this._theme.type)){let t;t=(0,x.HD)(this._theme.type)?e?M:I:e?A:T,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:i=>{t[i]||(e.push(i),t[i]=!0)}};O.getThemingParticipants().forEach((e=>e(this._theme,i,this._environment)));const n=[];for(const o of R.getColors()){const e=this._theme.getColor(o.id,!0);e&&n.push(`${(0,_.Bbc)(o.id)}: ${e.toString()};`)}i.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${n.join("\n")} }`);const s=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(function(e){const t=[];for(let i=1,n=e.length;i<n;i++){const n=e[i];t[i]=`.mtk${i} { color: ${n}; }`}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.push(".mtks { text-decoration: line-through; }"),t.push(".mtks.mtku { text-decoration: underline line-through; text-underline-position: under; }"),t.join("\n")}(s)),this._themeCSS=e.join("\n"),this._updateCSS(),a.dG.setColorMap(s),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._styleElements.forEach((e=>e.textContent=this._allCSS))}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},22890:(e,t,i)=>{"use strict";var n=i(31450),s=i(24520),o=i(51861),r=i(86723),a=i(10424);class l extends n.ks{constructor(){super({id:"editor.action.toggleHighContrast",label:o.E6.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(s.L),n=i.getColorTheme();(0,r.Bb)(n.type)?(i.setTheme(this._originalThemeName||((0,r.HD)(n.type)?a.po:a.tj)),this._originalThemeName=null):(i.setTheme((0,r.HD)(n.type)?a.aQ:a.nr),this._originalThemeName=n.themeName)}}(0,n.Fl)(l)},24520:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});const n=(0,i(63591).u1)("themeService")},11272:(e,t,i)=>{"use strict";var n,s,o=i(32858),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of l(t))d.call(e,s)||s===i||r(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},c={};h(c,n=o,"default"),s&&h(s,n,"default");var u=class{constructor(e,t,i){this._onDidChange=new c.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},p={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},m=new u("css",g,p),f=new u("scss",g,p),_=new u("less",g,p);function v(){return i.e(225).then(i.bind(i,70225))}c.languages.css={cssDefaults:m,lessDefaults:_,scssDefaults:f},c.languages.onLanguage("less",(()=>{v().then((e=>e.setupMode(_)))})),c.languages.onLanguage("scss",(()=>{v().then((e=>e.setupMode(f)))})),c.languages.onLanguage("css",(()=>{v().then((e=>e.setupMode(m)))}))},89518:(e,t,i)=>{"use strict";var n,s,o=i(32858),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of l(t))d.call(e,s)||s===i||r(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},c={};h(c,n=o,"default"),s&&h(s,n,"default");var u=class{constructor(e,t,i){this._onDidChange=new c.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function p(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===m,documentFormattingEdits:e===m,documentRangeFormattingEdits:e===m}}var m="html",f="handlebars",_="razor",v=k(m,g,p(m)),b=v.defaults,C=k(f,g,p(f)),y=C.defaults,w=k(_,g,p(_)),S=w.defaults;function k(e,t=g,n=p(e)){const s=new u(e,t,n);let o;const r=c.languages.onLanguage(e,(async()=>{o=(await i.e(8821).then(i.bind(i,68821))).setupMode(s)}));return{defaults:s,dispose(){r.dispose(),o?.dispose(),o=void 0}}}c.languages.html={htmlDefaults:b,razorDefaults:S,handlebarDefaults:y,htmlLanguageService:v,handlebarLanguageService:C,razorLanguageService:w,registerHTMLLanguageService:k}},99669:(e,t,i)=>{"use strict";var n=i(32858),s=new class{constructor(e,t,i){this._onDidChange=new n.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});function o(){return i.e(6447).then(i.bind(i,66447))}n.languages.json={jsonDefaults:s,getWorker:()=>o().then((e=>e.getWorker()))},n.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),n.languages.onLanguage("json",(()=>{o().then((e=>e.setupMode(s)))}))},24152:(e,t,i)=>{"use strict";i.d(t,{IF:()=>b});var n,s,o=i(32858),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of l(t))d.call(e,s)||s===i||r(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},c={};h(c,n=o,"default"),s&&h(s,n,"default");var u=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext",e))(u||{}),g=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(g||{}),p=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(p||{}),m=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(m||{}),f=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e))(f||{}),_=class{constructor(e,t,i,n,s){this._onDidChange=new c.Emitter,this._onDidExtraLibsChange=new c.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this.setModeConfiguration(s),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i="undefined"===typeof t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];e&&e.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content;let n=1;this._removedExtraLibs[e]&&(n=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout((()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)}),0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},v={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},b=new _({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},v),C=new _({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},v);function y(){return i.e(8979).then(i.bind(i,78979))}c.languages.typescript={ModuleKind:u,JsxEmit:g,NewLineKind:p,ScriptTarget:m,ModuleResolutionKind:f,typescriptVersion:"5.0.2",typescriptDefaults:b,javascriptDefaults:C,getTypeScriptWorker:()=>y().then((e=>e.getTypeScriptWorker())),getJavaScriptWorker:()=>y().then((e=>e.getJavaScriptWorker()))},c.languages.onLanguage("typescript",(()=>y().then((e=>e.setupTypeScript(b))))),c.languages.onLanguage("javascript",(()=>y().then((e=>e.setupJavaScript(C)))))},31629:(e,t,i)=>{"use strict";i.d(t,{AM:()=>a,aS:()=>r,kg:()=>o});let n="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let i;return i=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,i)=>{const n=i[0],s=t[n];let o=e;return"string"===typeof s?o=s:"number"!==typeof s&&"boolean"!==typeof s&&void 0!==s&&null!==s||(o=String(s)),o})),n&&(i="\uff3b"+i.replace(/[aouei]/g,"$&$&")+"\uff3d"),i}function o(e,t,...i){return s(t,i)}function r(e,t,...i){const n=s(t,i);return{value:n,original:n}}function a(e){}},253:(e,t,i)=>{"use strict";i.d(t,{f:()=>o,j:()=>s});var n=i(32848);const s=(0,i(63591).u1)("accessibilityService"),o=new n.N1("accessibilityModeEnabled",!1)},87213:(e,t,i)=>{"use strict";i.d(t,{Nt:()=>o,Rh:()=>l});var n=i(63591),s=i(31629);const o=(0,n.u1)("accessibilitySignalService");class r{static register(e){return new r(e.fileName)}constructor(e){this.fileName=e}}r.error=r.register({fileName:"error.mp3"}),r.warning=r.register({fileName:"warning.mp3"}),r.foldedArea=r.register({fileName:"foldedAreas.mp3"}),r.break=r.register({fileName:"break.mp3"}),r.quickFixes=r.register({fileName:"quickFixes.mp3"}),r.taskCompleted=r.register({fileName:"taskCompleted.mp3"}),r.taskFailed=r.register({fileName:"taskFailed.mp3"}),r.terminalBell=r.register({fileName:"terminalBell.mp3"}),r.diffLineInserted=r.register({fileName:"diffLineInserted.mp3"}),r.diffLineDeleted=r.register({fileName:"diffLineDeleted.mp3"}),r.diffLineModified=r.register({fileName:"diffLineModified.mp3"}),r.chatRequestSent=r.register({fileName:"chatRequestSent.mp3"}),r.chatResponsePending=r.register({fileName:"chatResponsePending.mp3"}),r.chatResponseReceived1=r.register({fileName:"chatResponseReceived1.mp3"}),r.chatResponseReceived2=r.register({fileName:"chatResponseReceived2.mp3"}),r.chatResponseReceived3=r.register({fileName:"chatResponseReceived3.mp3"}),r.chatResponseReceived4=r.register({fileName:"chatResponseReceived4.mp3"}),r.clear=r.register({fileName:"clear.mp3"}),r.save=r.register({fileName:"save.mp3"}),r.format=r.register({fileName:"format.mp3"}),r.voiceRecordingStarted=r.register({fileName:"voiceRecordingStarted.mp3"}),r.voiceRecordingStopped=r.register({fileName:"voiceRecordingStopped.mp3"});class a{constructor(e){this.randomOneOf=e}}class l{static register(e){const t=new a("randomOneOf"in e.sound?e.sound.randomOneOf:[e.sound]),i=new l(t,e.name,e.legacySoundSettingsKey,e.settingsKey,e.legacyAnnouncementSettingsKey,e.announcementMessage);return l._signals.add(i),i}constructor(e,t,i,n,s,o){this.sound=e,this.name=t,this.legacySoundSettingsKey=i,this.settingsKey=n,this.legacyAnnouncementSettingsKey=s,this.announcementMessage=o}}l._signals=new Set,l.error=l.register({name:(0,s.kg)("accessibilitySignals.lineHasError.name","Error on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:(0,s.kg)("accessibility.signals.lineHasError","Error"),settingsKey:"accessibility.signals.lineHasError"}),l.warning=l.register({name:(0,s.kg)("accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:r.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:(0,s.kg)("accessibility.signals.lineHasWarning","Warning"),settingsKey:"accessibility.signals.lineHasWarning"}),l.foldedArea=l.register({name:(0,s.kg)("accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:r.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:(0,s.kg)("accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"}),l.break=l.register({name:(0,s.kg)("accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:r.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:(0,s.kg)("accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"}),l.inlineSuggestion=l.register({name:(0,s.kg)("accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"}),l.terminalQuickFix=l.register({name:(0,s.kg)("accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:(0,s.kg)("accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"}),l.onDebugBreak=l.register({name:(0,s.kg)("accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:r.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:(0,s.kg)("accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"}),l.noInlayHints=l.register({name:(0,s.kg)("accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:(0,s.kg)("accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"}),l.taskCompleted=l.register({name:(0,s.kg)("accessibilitySignals.taskCompleted","Task Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:(0,s.kg)("accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"}),l.taskFailed=l.register({name:(0,s.kg)("accessibilitySignals.taskFailed","Task Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:(0,s.kg)("accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"}),l.terminalCommandFailed=l.register({name:(0,s.kg)("accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:r.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:(0,s.kg)("accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"}),l.terminalBell=l.register({name:(0,s.kg)("accessibilitySignals.terminalBell","Terminal Bell"),sound:r.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:(0,s.kg)("accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"}),l.notebookCellCompleted=l.register({name:(0,s.kg)("accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:(0,s.kg)("accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"}),l.notebookCellFailed=l.register({name:(0,s.kg)("accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:(0,s.kg)("accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"}),l.diffLineInserted=l.register({name:(0,s.kg)("accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:r.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"}),l.diffLineDeleted=l.register({name:(0,s.kg)("accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:r.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"}),l.diffLineModified=l.register({name:(0,s.kg)("accessibilitySignals.diffLineModified","Diff Line Modified"),sound:r.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"}),l.chatRequestSent=l.register({name:(0,s.kg)("accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:r.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:(0,s.kg)("accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"}),l.chatResponseReceived=l.register({name:(0,s.kg)("accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[r.chatResponseReceived1,r.chatResponseReceived2,r.chatResponseReceived3,r.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"}),l.chatResponsePending=l.register({name:(0,s.kg)("accessibilitySignals.chatResponsePending","Chat Response Pending"),sound:r.chatResponsePending,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.chatResponsePending",announcementMessage:(0,s.kg)("accessibility.signals.chatResponsePending","Chat Response Pending"),settingsKey:"accessibility.signals.chatResponsePending"}),l.clear=l.register({name:(0,s.kg)("accessibilitySignals.clear","Clear"),sound:r.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:(0,s.kg)("accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"}),l.save=l.register({name:(0,s.kg)("accessibilitySignals.save","Save"),sound:r.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:(0,s.kg)("accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"}),l.format=l.register({name:(0,s.kg)("accessibilitySignals.format","Format"),sound:r.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:(0,s.kg)("accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"}),l.voiceRecordingStarted=l.register({name:(0,s.kg)("accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:r.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"}),l.voiceRecordingStopped=l.register({name:(0,s.kg)("accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:r.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"})},43878:(e,t,i)=>{"use strict";i.d(t,{oq:()=>I,rN:()=>O,Ot:()=>N,$u:()=>E});var n=i(8597),s=i(72962),o=i(5646),r=i(89506),a=i(36921),l=i(83619),d=i(5662),h=i(98067),c=i(31629),u=i(27195);var g=i(32848),p=i(47508),m=i(63591),f=i(98031),_=i(58591),v=i(9711),b=i(47612),C=i(25689),y=i(86723),w=i(631),S=i(85845),k=i(19070),x=i(253),L=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};function E(e,t,i,s){const o=e.getActions(t),r=n.Di.getInstance();T(o,i,r.keyStatus.altKey||(h.uF||h.j9)&&r.keyStatus.shiftKey,s?e=>e===s:e=>"navigation"===e)}function N(e,t,i,n,s,o){T(e.getActions(t),i,!1,"string"===typeof n?e=>e===n:n,s,o)}function T(e,t,i,n=e=>"navigation"===e,s=()=>!1,o=!1){let r,l;Array.isArray(t)?(r=t,l=t):(r=t.primary,l=t.secondary);const d=new Set;for(const[h,c]of e){let e;n(h)?(e=r,e.length>0&&o&&e.push(new a.wv)):(e=l,e.length>0&&e.push(new a.wv));for(let t of c){i&&(t=t instanceof u.Xe&&t.alt?t.alt:t);const n=e.push(t);t instanceof a.YH&&d.add({group:h,action:t,index:n-1})}}for(const{group:a,action:h,index:c}of d){const e=n(a)?r:l,t=h.actions;s(h,a,e.length)&&e.splice(c,1,...t)}}let I=class extends o.Z4{constructor(e,t,i,s,o,r,a,l){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:null===t||void 0===t?void 0:t.draggable,keybinding:null===t||void 0===t?void 0:t.keybinding,hoverDelegate:null===t||void 0===t?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=s,this._contextKeyService=o,this._themeService=r,this._contextMenuService=a,this._accessibilityService=l,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new d.HE),this._altKey=n.Di.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(e){e.preventDefault(),e.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let t=!1;const i=()=>{var e;const i=!!(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)&&(!this._accessibilityService.isMotionReduced()||t)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&t);i!==this._wantsAltCommand&&(this._wantsAltCommand=i,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register((0,n.ko)(e,"mouseleave",(e=>{t=!1,i()}))),this._register((0,n.ko)(e,"mouseenter",(e=>{t=!0,i()}))),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;const t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),n=this._commandAction.tooltip||this._commandAction.label;let s=i?(0,c.kg)("titleAndKb","{0} ({1})",n,i):n;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),n=i?(0,c.kg)("titleAndKb","{0} ({1})",e,i):e;s=(0,c.kg)("titleAndKbAndAlt","{0}\n[{1}] {2}",s,l.Of.modifierLabels[h.OS].altKey,n)}return s}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(!t||!i)return;const s=this._commandAction.checked&&((o=e.toggled)&&void 0!==o.condition)&&e.toggled.icon?e.toggled.icon:e.icon;var o;if(s)if(C.L.isThemeIcon(s)){const e=C.L.asClassNameArray(s);i.classList.add(...e),this._itemClassDispose.value=(0,d.s)((()=>{i.classList.remove(...e)}))}else i.style.backgroundImage=(0,y.HD)(this._themeService.getColorTheme().type)?(0,n.Tf)(s.dark):(0,n.Tf)(s.light),i.classList.add("icon"),this._itemClassDispose.value=(0,d.qE)((0,d.s)((()=>{i.style.backgroundImage="",i.classList.remove("icon")})),this._themeService.onDidColorThemeChange((()=>{this.updateClass()})))}};I=L([D(2,f.b),D(3,_.Ot),D(4,g.fN),D(5,b.Gy),D(6,p.Z),D(7,x.j)],I);let M=class extends r.d{constructor(e,t,i,n,s){var o,r,a;const l={...t,menuAsChild:null!==(o=null===t||void 0===t?void 0:t.menuAsChild)&&void 0!==o&&o,classNames:null!==(r=null===t||void 0===t?void 0:t.classNames)&&void 0!==r?r:C.L.isThemeIcon(e.item.icon)?C.L.asClassName(e.item.icon):void 0,keybindingProvider:null!==(a=null===t||void 0===t?void 0:t.keybindingProvider)&&void 0!==a?a:e=>i.lookupKeybinding(e.id)};super(e,{getActions:()=>e.actions},n,l),this._keybindingService=i,this._contextMenuService=n,this._themeService=s}render(e){super.render(e),(0,w.j)(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!C.L.isThemeIcon(i)){this.element.classList.add("icon");const e=()=>{this.element&&(this.element.style.backgroundImage=(0,y.HD)(this._themeService.getColorTheme().type)?(0,n.Tf)(i.dark):(0,n.Tf)(i.light))};e(),this._register(this._themeService.onDidColorThemeChange((()=>{e()})))}}};M=L([D(2,f.b),D(3,p.Z),D(4,b.Gy)],M);let A=class extends o.EH{constructor(e,t,i,n,s,o,l,d){var h,c,g;let p;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=s,this._menuService=o,this._instaService=l,this._storageService=d,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;const m=(null===t||void 0===t?void 0:t.persistLastActionId)?d.get(this._storageKey,1):void 0;m&&(p=e.actions.find((e=>m===e.id))),p||(p=e.actions[0]),this._defaultAction=this._instaService.createInstance(I,p,{keybinding:this._getDefaultActionKeybindingLabel(p)});const f={keybindingProvider:e=>this._keybindingService.lookupKeybinding(e.id),...t,menuAsChild:null===(h=null===t||void 0===t?void 0:t.menuAsChild)||void 0===h||h,classNames:null!==(c=null===t||void 0===t?void 0:t.classNames)&&void 0!==c?c:["codicon","codicon-chevron-down"],actionRunner:null!==(g=null===t||void 0===t?void 0:t.actionRunner)&&void 0!==g?g:new a.LN};this._dropdown=new r.d(e,e.actions,this._contextMenuService,f),this._register(this._dropdown.actionRunner.onDidRun((e=>{e.action instanceof u.Xe&&this.update(e.action)})))}update(e){var t;(null===(t=this._options)||void 0===t?void 0:t.persistLastActionId)&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(I,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.LN{async runAction(e,t){await e.run(void 0)}},this._container&&this._defaultAction.render((0,n.Hs)(this._container,(0,n.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){const t=this._keybindingService.lookupKeybinding(e.id);t&&(i=`(${t.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=(0,n.$)(".action-container");this._defaultAction.render((0,n.BC)(this._container,t)),this._register((0,n.ko)(t,n.Bx.KEY_DOWN,(e=>{const t=new s.Z(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())})));const i=(0,n.$)(".dropdown-action-container");this._dropdown.render((0,n.BC)(this._container,i)),this._register((0,n.ko)(i,n.Bx.KEY_DOWN,(e=>{var t;const i=new s.Z(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())})))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};A=L([D(2,f.b),D(3,_.Ot),D(4,p.Z),D(5,u.ez),D(6,m._Y),D(7,v.CS)],A);let R=class extends o.XF{constructor(e,t){super(null,e,e.actions.map((e=>({text:e.id===a.wv.ID?"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500":e.label,isDisabled:!e.enabled}))),0,t,k.RE,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex((e=>e.checked))))}render(e){super.render(e),e.style.borderColor=(0,S.GuP)(S.HcB)}runAction(e,t){const i=this.action.actions[t];i&&this.actionRunner.run(i)}};function O(e,t,i){return t instanceof u.Xe?e.createInstance(I,t,i):t instanceof u.nI?t.item.isSelection?e.createInstance(R,t):t.item.rememberDefaultAction?e.createInstance(A,t,{...i,persistLastActionId:!0}):e.createInstance(M,t,i):void 0}R=L([D(1,p.l)],R)},65644:(e,t,i)=>{"use strict";i.d(t,{m:()=>N,p:()=>E});var n=i(8597),s=i(47358),o=i(11799),r=i(89506),a=i(36921),l=i(10350),d=i(25689),h=i(41234),c=i(5662),u=i(31629),g=i(42904);class p extends c.jG{constructor(e,t,i={orientation:0}){var n;super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new h._B),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new c.Cm),i.hoverDelegate=null!==(n=i.hoverDelegate)&&void 0!==n?n:this._register((0,g.bW)()),this.options=i,this.lookupKeybindings="function"===typeof this.options.getKeyBinding,this.toggleMenuAction=this._register(new m((()=>{var e;return null===(e=this.toggleMenuActionViewItem)||void 0===e?void 0:e.show()}),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new o.E(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(e,n)=>{var s;if(e.id===m.ID)return this.toggleMenuActionViewItem=new r.d(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:d.L.asClassNameArray(null!==(s=i.moreIcon)&&void 0!==s?s:l.W.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const t=i.actionViewItemProvider(e,n);if(t)return t}if(e instanceof a.YH){const i=new r.d(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach((e=>{this.actionBar.push(e,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(e)})}))}getKeybindingLabel(e){var t,i,n;const s=this.lookupKeybindings?null===(i=(t=this.options).getKeyBinding)||void 0===i?void 0:i.call(t,e):void 0;return null!==(n=null===s||void 0===s?void 0:s.getLabel())&&void 0!==n?n:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}class m extends a.rc{constructor(e,t){t=t||u.kg("moreActions","More Actions..."),super(m.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}m.ID="toolbar.toggle.more";var f=i(25890),_=i(48495),v=i(64383),b=i(42522),C=i(43878),y=i(27195),w=i(32848),S=i(47508),k=i(98031),x=i(90651),L=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};let E=class extends p{constructor(e,t,i,n,s,o,r){super(e,s,{getKeyBinding:e=>{var t;return null!==(t=o.lookupKeybinding(e.id))&&void 0!==t?t:void 0},...t,allowContextMenu:!0,skipTelemetry:"string"===typeof(null===t||void 0===t?void 0:t.telemetrySource)}),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=s,this._sessionDisposables=this._store.add(new c.Cm);const a=null===t||void 0===t?void 0:t.telemetrySource;a&&this._store.add(this.actionBar.onDidRun((e=>r.publicLog2("workbenchActionExecuted",{id:e.action.id,from:a}))))}setActions(e,t=[],i){var o,r,l;this._sessionDisposables.clear();const d=e.slice(),h=t.slice(),c=[];let g=0;const p=[];let m=!1;if(-1!==(null===(o=this._options)||void 0===o?void 0:o.hiddenItemStrategy))for(let n=0;n<d.length;n++){const e=d[n];(e instanceof y.Xe||e instanceof y.nI)&&(e.hideActions&&(c.push(e.hideActions.toggle),e.hideActions.toggle.checked&&g++,e.hideActions.isHidden&&(m=!0,d[n]=void 0,0!==(null===(r=this._options)||void 0===r?void 0:r.hiddenItemStrategy)&&(p[n]=e))))}if(void 0!==(null===(l=this._options)||void 0===l?void 0:l.overflowBehavior)){const e=(0,_.E)(new Set(this._options.overflowBehavior.exempted),b.f.map(d,(e=>null===e||void 0===e?void 0:e.id))),t=this._options.overflowBehavior.maxItems-e.size;let i=0;for(let n=0;n<d.length;n++){const s=d[n];s&&(i++,e.has(s.id)||i>=t&&(d[n]=void 0,p[n]=s))}}(0,f.SK)(d),(0,f.SK)(p),super.setActions(d,a.wv.join(p,h)),c.length>0&&this._sessionDisposables.add((0,n.ko)(this.getElement(),"contextmenu",(e=>{var t,o,r,l,d;const h=new s.P((0,n.zk)(this.getElement()),e),p=this.getItemAction(h.target);if(!p)return;h.preventDefault(),h.stopPropagation();let f,_=!1;if(1===g&&0===(null===(t=this._options)||void 0===t?void 0:t.hiddenItemStrategy)){_=!0;for(let e=0;e<c.length;e++)if(c[e].checked){c[e]=(0,a.ih)({id:p.id,label:p.label,checked:!0,enabled:!1,run(){}});break}}if(!_&&(p instanceof y.Xe||p instanceof y.nI)){if(!p.hideActions)return;f=p.hideActions.hide}else f=(0,a.ih)({id:"label",label:(0,u.kg)("hide","Hide"),enabled:!1,run(){}});const v=a.wv.join([f],c);(null===(o=this._options)||void 0===o?void 0:o.resetMenu)&&!i&&(i=[this._options.resetMenu]),m&&i&&(v.push(new a.wv),v.push((0,a.ih)({id:"resetThisMenu",label:(0,u.kg)("resetThisMenu","Reset Menu"),run:()=>this._menuService.resetHiddenStates(i)}))),this._contextMenuService.showContextMenu({getAnchor:()=>h,getActions:()=>v,menuId:null===(r=this._options)||void 0===r?void 0:r.contextMenu,menuActionOptions:{renderShortTitle:!0,...null===(l=this._options)||void 0===l?void 0:l.menuOptions},skipTelemetry:"string"===typeof(null===(d=this._options)||void 0===d?void 0:d.telemetrySource),contextKeyService:this._contextKeyService})})))}};E=L([D(2,y.ez),D(3,w.fN),D(4,S.Z),D(5,k.b),D(6,x.k)],E);let N=class extends E{constructor(e,t,i,n,s,o,r,a){super(e,{resetMenu:t,...i},n,s,o,r,a),this._onDidChangeMenuItems=this._store.add(new h.vl),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const l=this._store.add(n.createMenu(t,s,{emitEventsForSubmenuChanges:!0})),d=()=>{var t,n,s;const o=[],r=[];(0,C.Ot)(l,null===i||void 0===i?void 0:i.menuOptions,{primary:o,secondary:r},null===(t=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===t?void 0:t.primaryGroup,null===(n=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===n?void 0:n.shouldInlineSubmenu,null===(s=null===i||void 0===i?void 0:i.toolbarOptions)||void 0===s?void 0:s.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",0===o.length&&0===r.length),super.setActions(o,r)};this._store.add(l.onDidChange((()=>{d(),this._onDidChangeMenuItems.fire(this)}))),d()}setActions(){throw new v.D7("This toolbar is populated from a menu.")}};N=L([D(3,y.ez),D(4,w.fN),D(5,S.Z),D(6,k.b),D(7,x.k)],N)},27195:(e,t,i)=>{"use strict";i.d(t,{D8:()=>_,L:()=>S,Xe:()=>w,ZG:()=>C,ez:()=>v,i1:()=>f,is:()=>m,nI:()=>y,ug:()=>k});var n,s=i(36921),o=i(25689),r=i(41234),a=i(5662),l=i(58925),d=i(50091),h=i(32848),c=i(63591),u=i(59261),g=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},p=function(e,t){return function(i,n){t(i,n,e)}};function m(e){return void 0!==e.command}function f(e){return void 0!==e.submenu}class _{constructor(e){if(_._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);_._instances.set(e,this),this.id=e}}_._instances=new Map,_.CommandPalette=new _("CommandPalette"),_.DebugBreakpointsContext=new _("DebugBreakpointsContext"),_.DebugCallStackContext=new _("DebugCallStackContext"),_.DebugConsoleContext=new _("DebugConsoleContext"),_.DebugVariablesContext=new _("DebugVariablesContext"),_.NotebookVariablesContext=new _("NotebookVariablesContext"),_.DebugHoverContext=new _("DebugHoverContext"),_.DebugWatchContext=new _("DebugWatchContext"),_.DebugToolBar=new _("DebugToolBar"),_.DebugToolBarStop=new _("DebugToolBarStop"),_.EditorContext=new _("EditorContext"),_.SimpleEditorContext=new _("SimpleEditorContext"),_.EditorContent=new _("EditorContent"),_.EditorLineNumberContext=new _("EditorLineNumberContext"),_.EditorContextCopy=new _("EditorContextCopy"),_.EditorContextPeek=new _("EditorContextPeek"),_.EditorContextShare=new _("EditorContextShare"),_.EditorTitle=new _("EditorTitle"),_.EditorTitleRun=new _("EditorTitleRun"),_.EditorTitleContext=new _("EditorTitleContext"),_.EditorTitleContextShare=new _("EditorTitleContextShare"),_.EmptyEditorGroup=new _("EmptyEditorGroup"),_.EmptyEditorGroupContext=new _("EmptyEditorGroupContext"),_.EditorTabsBarContext=new _("EditorTabsBarContext"),_.EditorTabsBarShowTabsSubmenu=new _("EditorTabsBarShowTabsSubmenu"),_.EditorTabsBarShowTabsZenModeSubmenu=new _("EditorTabsBarShowTabsZenModeSubmenu"),_.EditorActionsPositionSubmenu=new _("EditorActionsPositionSubmenu"),_.ExplorerContext=new _("ExplorerContext"),_.ExplorerContextShare=new _("ExplorerContextShare"),_.ExtensionContext=new _("ExtensionContext"),_.GlobalActivity=new _("GlobalActivity"),_.CommandCenter=new _("CommandCenter"),_.CommandCenterCenter=new _("CommandCenterCenter"),_.LayoutControlMenuSubmenu=new _("LayoutControlMenuSubmenu"),_.LayoutControlMenu=new _("LayoutControlMenu"),_.MenubarMainMenu=new _("MenubarMainMenu"),_.MenubarAppearanceMenu=new _("MenubarAppearanceMenu"),_.MenubarDebugMenu=new _("MenubarDebugMenu"),_.MenubarEditMenu=new _("MenubarEditMenu"),_.MenubarCopy=new _("MenubarCopy"),_.MenubarFileMenu=new _("MenubarFileMenu"),_.MenubarGoMenu=new _("MenubarGoMenu"),_.MenubarHelpMenu=new _("MenubarHelpMenu"),_.MenubarLayoutMenu=new _("MenubarLayoutMenu"),_.MenubarNewBreakpointMenu=new _("MenubarNewBreakpointMenu"),_.PanelAlignmentMenu=new _("PanelAlignmentMenu"),_.PanelPositionMenu=new _("PanelPositionMenu"),_.ActivityBarPositionMenu=new _("ActivityBarPositionMenu"),_.MenubarPreferencesMenu=new _("MenubarPreferencesMenu"),_.MenubarRecentMenu=new _("MenubarRecentMenu"),_.MenubarSelectionMenu=new _("MenubarSelectionMenu"),_.MenubarShare=new _("MenubarShare"),_.MenubarSwitchEditorMenu=new _("MenubarSwitchEditorMenu"),_.MenubarSwitchGroupMenu=new _("MenubarSwitchGroupMenu"),_.MenubarTerminalMenu=new _("MenubarTerminalMenu"),_.MenubarViewMenu=new _("MenubarViewMenu"),_.MenubarHomeMenu=new _("MenubarHomeMenu"),_.OpenEditorsContext=new _("OpenEditorsContext"),_.OpenEditorsContextShare=new _("OpenEditorsContextShare"),_.ProblemsPanelContext=new _("ProblemsPanelContext"),_.SCMInputBox=new _("SCMInputBox"),_.SCMChangesSeparator=new _("SCMChangesSeparator"),_.SCMIncomingChanges=new _("SCMIncomingChanges"),_.SCMIncomingChangesContext=new _("SCMIncomingChangesContext"),_.SCMIncomingChangesSetting=new _("SCMIncomingChangesSetting"),_.SCMOutgoingChanges=new _("SCMOutgoingChanges"),_.SCMOutgoingChangesContext=new _("SCMOutgoingChangesContext"),_.SCMOutgoingChangesSetting=new _("SCMOutgoingChangesSetting"),_.SCMIncomingChangesAllChangesContext=new _("SCMIncomingChangesAllChangesContext"),_.SCMIncomingChangesHistoryItemContext=new _("SCMIncomingChangesHistoryItemContext"),_.SCMOutgoingChangesAllChangesContext=new _("SCMOutgoingChangesAllChangesContext"),_.SCMOutgoingChangesHistoryItemContext=new _("SCMOutgoingChangesHistoryItemContext"),_.SCMChangeContext=new _("SCMChangeContext"),_.SCMResourceContext=new _("SCMResourceContext"),_.SCMResourceContextShare=new _("SCMResourceContextShare"),_.SCMResourceFolderContext=new _("SCMResourceFolderContext"),_.SCMResourceGroupContext=new _("SCMResourceGroupContext"),_.SCMSourceControl=new _("SCMSourceControl"),_.SCMSourceControlInline=new _("SCMSourceControlInline"),_.SCMSourceControlTitle=new _("SCMSourceControlTitle"),_.SCMTitle=new _("SCMTitle"),_.SearchContext=new _("SearchContext"),_.SearchActionMenu=new _("SearchActionContext"),_.StatusBarWindowIndicatorMenu=new _("StatusBarWindowIndicatorMenu"),_.StatusBarRemoteIndicatorMenu=new _("StatusBarRemoteIndicatorMenu"),_.StickyScrollContext=new _("StickyScrollContext"),_.TestItem=new _("TestItem"),_.TestItemGutter=new _("TestItemGutter"),_.TestMessageContext=new _("TestMessageContext"),_.TestMessageContent=new _("TestMessageContent"),_.TestPeekElement=new _("TestPeekElement"),_.TestPeekTitle=new _("TestPeekTitle"),_.TouchBarContext=new _("TouchBarContext"),_.TitleBarContext=new _("TitleBarContext"),_.TitleBarTitleContext=new _("TitleBarTitleContext"),_.TunnelContext=new _("TunnelContext"),_.TunnelPrivacy=new _("TunnelPrivacy"),_.TunnelProtocol=new _("TunnelProtocol"),_.TunnelPortInline=new _("TunnelInline"),_.TunnelTitle=new _("TunnelTitle"),_.TunnelLocalAddressInline=new _("TunnelLocalAddressInline"),_.TunnelOriginInline=new _("TunnelOriginInline"),_.ViewItemContext=new _("ViewItemContext"),_.ViewContainerTitle=new _("ViewContainerTitle"),_.ViewContainerTitleContext=new _("ViewContainerTitleContext"),_.ViewTitle=new _("ViewTitle"),_.ViewTitleContext=new _("ViewTitleContext"),_.CommentEditorActions=new _("CommentEditorActions"),_.CommentThreadTitle=new _("CommentThreadTitle"),_.CommentThreadActions=new _("CommentThreadActions"),_.CommentThreadAdditionalActions=new _("CommentThreadAdditionalActions"),_.CommentThreadTitleContext=new _("CommentThreadTitleContext"),_.CommentThreadCommentContext=new _("CommentThreadCommentContext"),_.CommentTitle=new _("CommentTitle"),_.CommentActions=new _("CommentActions"),_.CommentsViewThreadActions=new _("CommentsViewThreadActions"),_.InteractiveToolbar=new _("InteractiveToolbar"),_.InteractiveCellTitle=new _("InteractiveCellTitle"),_.InteractiveCellDelete=new _("InteractiveCellDelete"),_.InteractiveCellExecute=new _("InteractiveCellExecute"),_.InteractiveInputExecute=new _("InteractiveInputExecute"),_.IssueReporter=new _("IssueReporter"),_.NotebookToolbar=new _("NotebookToolbar"),_.NotebookStickyScrollContext=new _("NotebookStickyScrollContext"),_.NotebookCellTitle=new _("NotebookCellTitle"),_.NotebookCellDelete=new _("NotebookCellDelete"),_.NotebookCellInsert=new _("NotebookCellInsert"),_.NotebookCellBetween=new _("NotebookCellBetween"),_.NotebookCellListTop=new _("NotebookCellTop"),_.NotebookCellExecute=new _("NotebookCellExecute"),_.NotebookCellExecuteGoTo=new _("NotebookCellExecuteGoTo"),_.NotebookCellExecutePrimary=new _("NotebookCellExecutePrimary"),_.NotebookDiffCellInputTitle=new _("NotebookDiffCellInputTitle"),_.NotebookDiffCellMetadataTitle=new _("NotebookDiffCellMetadataTitle"),_.NotebookDiffCellOutputsTitle=new _("NotebookDiffCellOutputsTitle"),_.NotebookOutputToolbar=new _("NotebookOutputToolbar"),_.NotebookOutlineFilter=new _("NotebookOutlineFilter"),_.NotebookOutlineActionMenu=new _("NotebookOutlineActionMenu"),_.NotebookEditorLayoutConfigure=new _("NotebookEditorLayoutConfigure"),_.NotebookKernelSource=new _("NotebookKernelSource"),_.BulkEditTitle=new _("BulkEditTitle"),_.BulkEditContext=new _("BulkEditContext"),_.TimelineItemContext=new _("TimelineItemContext"),_.TimelineTitle=new _("TimelineTitle"),_.TimelineTitleContext=new _("TimelineTitleContext"),_.TimelineFilterSubMenu=new _("TimelineFilterSubMenu"),_.AccountsContext=new _("AccountsContext"),_.SidebarTitle=new _("SidebarTitle"),_.PanelTitle=new _("PanelTitle"),_.AuxiliaryBarTitle=new _("AuxiliaryBarTitle"),_.AuxiliaryBarHeader=new _("AuxiliaryBarHeader"),_.TerminalInstanceContext=new _("TerminalInstanceContext"),_.TerminalEditorInstanceContext=new _("TerminalEditorInstanceContext"),_.TerminalNewDropdownContext=new _("TerminalNewDropdownContext"),_.TerminalTabContext=new _("TerminalTabContext"),_.TerminalTabEmptyAreaContext=new _("TerminalTabEmptyAreaContext"),_.TerminalStickyScrollContext=new _("TerminalStickyScrollContext"),_.WebviewContext=new _("WebviewContext"),_.InlineCompletionsActions=new _("InlineCompletionsActions"),_.InlineEditActions=new _("InlineEditActions"),_.NewFile=new _("NewFile"),_.MergeInput1Toolbar=new _("MergeToolbar1Toolbar"),_.MergeInput2Toolbar=new _("MergeToolbar2Toolbar"),_.MergeBaseToolbar=new _("MergeBaseToolbar"),_.MergeInputResultToolbar=new _("MergeToolbarResultToolbar"),_.InlineSuggestionToolbar=new _("InlineSuggestionToolbar"),_.InlineEditToolbar=new _("InlineEditToolbar"),_.ChatContext=new _("ChatContext"),_.ChatCodeBlock=new _("ChatCodeblock"),_.ChatMessageTitle=new _("ChatMessageTitle"),_.ChatExecute=new _("ChatExecute"),_.ChatExecuteSecondary=new _("ChatExecuteSecondary"),_.ChatInputSide=new _("ChatInputSide"),_.AccessibleView=new _("AccessibleView"),_.MultiDiffEditorFileToolbar=new _("MultiDiffEditorFileToolbar"),_.DiffEditorHunkToolbar=new _("DiffEditorHunkToolbar"),_.DiffEditorSelectionToolbar=new _("DiffEditorSelectionToolbar");const v=(0,c.u1)("menuService");class b{static for(e){let t=this._all.get(e);return t||(t=new b(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof b&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}b._all=new Map;const C=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new r.QT({merge:b.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(b.for(_.CommandPalette)),(0,a.s)((()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(b.for(_.CommandPalette))}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,i)=>e.set(i,t))),e}appendMenuItem(e,t){let i=this._menuItems.get(e);i||(i=new l.w,this._menuItems.set(e,i));const n=i.push(t);return this._onDidChangeMenu.fire(b.for(e)),(0,a.s)((()=>{n(),this._onDidChangeMenu.fire(b.for(e))}))}appendMenuItems(e){const t=new a.Cm;for(const{id:i,item:n}of e)t.add(this.appendMenuItem(i,n));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===_.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)m(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach(((i,n)=>{t.has(n)||e.push({command:i})}))}};class y extends s.YH{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,"string"===typeof e.title?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let w=n=class{static label(e,t){return(null===t||void 0===t?void 0:t.renderShortTitle)&&e.shortTitle?"string"===typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"===typeof e.title?e.title:e.title.value}constructor(e,t,i,s,r,a){var l,d;let h;if(this.hideActions=s,this._commandService=a,this.id=e.id,this.label=n.label(e,i),this.tooltip=null!==(d="string"===typeof e.tooltip?e.tooltip:null===(l=e.tooltip)||void 0===l?void 0:l.value)&&void 0!==d?d:"",this.enabled=!e.precondition||r.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=r.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"===typeof t.tooltip?t.tooltip:t.tooltip.value),this.checked&&o.L.isThemeIcon(t.icon)&&(h=t.icon),this.checked&&t.title&&(this.label="string"===typeof t.title?t.title:t.title.value)}h||(h=o.L.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new n(t,void 0,i,s,r,a):void 0,this._options=i,this.class=h&&o.L.asClassName(h)}run(...e){var t,i;let n=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(n=[...n,this._options.arg]),(null===(i=this._options)||void 0===i?void 0:i.shouldForwardArgs)&&(n=[...n,...e]),this._commandService.executeCommand(this.id,...n)}};w=n=g([p(4,h.fN),p(5,d.d)],w);class S{constructor(e){this.desc=e}}function k(e){const t=new a.Cm,i=new e,{f1:n,menu:s,keybinding:o,...r}=i.desc;if(d.w.getCommand(r.id))throw new Error(`Cannot register two commands with the same id: ${r.id}`);if(t.add(d.w.registerCommand({id:r.id,handler:(e,...t)=>i.run(e,...t),metadata:r.metadata})),Array.isArray(s))for(const a of s)t.add(C.appendMenuItem(a.id,{command:{...r,precondition:null===a.precondition?void 0:r.precondition},...a}));else s&&t.add(C.appendMenuItem(s.id,{command:{...r,precondition:null===s.precondition?void 0:r.precondition},...s}));if(n&&(t.add(C.appendMenuItem(_.CommandPalette,{command:r,when:r.precondition})),t.add(C.addCommand(r))),Array.isArray(o))for(const a of o)t.add(u.f.registerKeybindingRule({...a,id:r.id,when:r.precondition?h.M$.and(r.precondition,a.when):a.when}));else o&&t.add(u.f.registerKeybindingRule({...o,id:r.id,when:r.precondition?h.M$.and(r.precondition,o.when):o.when}));return t}},54770:(e,t,i)=>{"use strict";i.d(t,{h:()=>n});const n=(0,i(63591).u1)("clipboardService")},50091:(e,t,i)=>{"use strict";i.d(t,{d:()=>l,w:()=>d});var n=i(41234),s=i(42522),o=i(5662),r=i(58925),a=i(631);const l=(0,i(63591).u1)("commandService"),d=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new n.vl,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){const t=[];for(const n of e.metadata.args)t.push(n.constraint);const i=e.handler;e.handler=function(e,...n){return(0,a.jx)(n,t),i(e,...n)}}const{id:i}=e;let n=this._commands.get(i);n||(n=new r.w,this._commands.set(i,n));const s=n.unshift(e),l=(0,o.s)((()=>{s();const e=this._commands.get(i);(null===e||void 0===e?void 0:e.isEmpty())&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),l}registerCommandAlias(e,t){return d.registerCommand(e,((e,...i)=>e.get(l).executeCommand(t,...i)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return s.f.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}};d.registerCommand("noop",(()=>{}))},84001:(e,t,i)=>{"use strict";i.d(t,{Mo:()=>d,ad:()=>s,gD:()=>l,iB:()=>r,kW:()=>o,pG:()=>n});const n=(0,i(63591).u1)("configurationService");function s(e,t){const i=Object.create(null);for(const n in e)o(i,n,e[n],t);return i}function o(e,t,i,n){const s=t.split("."),o=s.pop();let r=e;for(let l=0;l<s.length;l++){const e=s[l];let i=r[e];switch(typeof i){case"undefined":i=r[e]=Object.create(null);break;case"object":break;default:return void n(`Ignoring ${t} as ${s.slice(0,l+1).join(".")} is ${JSON.stringify(i)}`)}r=i}if("object"===typeof r&&null!==r)try{r[o]=i}catch(a){n(`Ignoring ${t} as ${s.join(".")} is ${JSON.stringify(r)}`)}else n(`Ignoring ${t} as ${s.join(".")} is ${JSON.stringify(r)}`)}function r(e,t){a(e,t.split("."))}function a(e,t){const i=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(i)){const n=e[i];"object"!==typeof n||Array.isArray(n)||(a(n,t),0===Object.keys(n).length&&delete e[i])}}else delete e[i]}function l(e,t,i){const n=function(e,t){let i=e;for(const n of t){if("object"!==typeof i||null===i)return;i=i[n]}return i}(e,t.split("."));return"undefined"===typeof n?i:n}function d(e){return e.replace(/[\[\]]/g,"")}},1646:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>h,Gv:()=>S,rC:()=>w});var n=i(25890),s=i(41234),o=i(631),r=i(31629),a=i(84001),l=i(78748),d=i(46359);const h={Configuration:"base.contributions.configuration"},c={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",v=d.O.as(l.F.JSONContribution);const b="\\[([^\\]]+)\\]",C=new RegExp(b,"g"),y=`^(${b})+$`,w=new RegExp(y);function S(e){const t=[];if(w.test(e)){let i=C.exec(e);for(;null===i||void 0===i?void 0:i.length;){const n=i[1].trim();n&&t.push(n),i=C.exec(e)}}return(0,n.dM)(t)}const k=new class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new s.vl,this._onDidUpdateConfiguration=new s.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:r.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},v.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),v.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i;const n=[];for(const{overrides:s,source:l}of e)for(const e in s)if(t.add(e),w.test(e)){const t=this.configurationDefaultsOverrides.get(e),d=null!==(i=null===t||void 0===t?void 0:t.valuesSources)&&void 0!==i?i:new Map;if(l)for(const i of Object.keys(s[e]))d.set(i,l);const h={...(null===t||void 0===t?void 0:t.value)||{},...s[e]};this.configurationDefaultsOverrides.set(e,{source:l,value:h,valuesSources:d});const c=(0,a.Mo)(e),u={type:"object",default:h,description:r.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",c),$ref:_,defaultDefaultValue:h,source:o.Kg(l)?void 0:l,defaultValueSource:l};n.push(...S(e)),this.configurationProperties[e]=u,this.defaultLanguageConfigurationOverridesNode.properties[e]=u}else{this.configurationDefaultsOverrides.set(e,{value:s[e],source:l});const t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.doRegisterOverrideIdentifiers(n)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,i,n,s=3,r){var a;s=o.z(e.scope)?s:e.scope;const l=e.properties;if(l)for(const h in l){const e=l[h];t&&x(h,e)?delete l[h]:(e.source=i,e.defaultDefaultValue=l[h].default,this.updatePropertyDefaultValue(h,e),w.test(h)?e.scope=void 0:(e.scope=o.z(e.scope)?s:e.scope,e.restricted=o.z(e.restricted)?!!(null===n||void 0===n?void 0:n.includes(h)):e.restricted),!l[h].hasOwnProperty("included")||l[h].included?(this.configurationProperties[h]=l[h],(null===(a=l[h].policy)||void 0===a?void 0:a.name)&&this.policyConfigurations.set(l[h].policy.name,h),!l[h].deprecationMessage&&l[h].markdownDeprecationMessage&&(l[h].deprecationMessage=l[h].markdownDeprecationMessage),r.add(h)):(this.excludedConfigurationProperties[h]=l[h],delete l[h]))}const d=e.allOf;if(d)for(const o of d)this.validateAndRegisterProperties(o,t,i,n,s,r)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const i=e.properties;if(i)for(const t in i)this.updateSchema(t,i[t]);const n=e.allOf;null===n||void 0===n||n.forEach(t)};t(e)}updateSchema(e,t){switch(c.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:p.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:f.properties[e]=t;break;case 5:f.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:r.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,i),c.properties[t]=i,u.properties[t]=i,g.properties[t]=i,p.properties[t]=i,m.properties[t]=i,f.properties[t]=i}}registerOverridePropertyPatternKey(){const e={type:"object",description:r.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};c.patternProperties[y]=e,u.patternProperties[y]=e,g.patternProperties[y]=e,p.patternProperties[y]=e,m.patternProperties[y]=e,f.patternProperties[y]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let n=null===i||void 0===i?void 0:i.value,s=null===i||void 0===i?void 0:i.source;o.b0(n)&&(n=t.defaultDefaultValue,s=void 0),o.b0(n)&&(n=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=n,t.defaultValueSource=s}};function x(e,t){var i,n,s,o;return e.trim()?w.test(e)?r.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==k.getConfigurationProperties()[e]?r.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==k.getPolicyConfigurations().get(null===(n=t.policy)||void 0===n?void 0:n.name)?r.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(s=t.policy)||void 0===s?void 0:s.name,k.getPolicyConfigurations().get(null===(o=t.policy)||void 0===o?void 0:o.name)):null:r.kg("config.property.empty","Cannot register an empty property")}d.O.add(h.Configuration,k)},32848:(e,t,i)=>{"use strict";i.d(t,{f1:()=>T,M$:()=>k,fN:()=>G,N1:()=>K,jQ:()=>x,M0:()=>Q});var n=i(98067),s=i(91508),o=i(64383),r=i(31629);function a(...e){switch(e.length){case 1:return(0,r.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,r.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,r.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const l=(0,r.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),d=(0,r.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class h{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,o.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(a("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(a("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(a("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=h._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(l):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(d);const n=this._input.charCodeAt(e);if(t)t=!1;else{if(47===n&&!i){e++;break}91===n?i=!0:92===n?t=!0:93===n&&(i=!1)}e++}for(;e<this._input.length&&h._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const n=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:n,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}h._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0)))),h._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);var c=i(63591);const u=new Map;u.set("false",!1),u.set("true",!0),u.set("isMac",n.zx),u.set("isLinux",n.j9),u.set("isWindows",n.uF),u.set("isWeb",n.HZ),u.set("isMacNative",n.zx&&!n.HZ),u.set("isEdge",n.UP),u.set("isFirefox",n.gm),u.set("isChrome",n.H8),u.set("isSafari",n.nr);const g=Object.prototype.hasOwnProperty,p={regexParsingWithErrorRecovery:!0},m=(0,r.kg)("contextkey.parser.error.emptyString","Empty context key expression"),f=(0,r.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,r.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,r.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),b=(0,r.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),C=(0,r.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),y=(0,r.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),w=(0,r.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class S{constructor(e=p){this._config=e,this._scanner=new h,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?C:void 0;throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:h.getLexeme(e),additionalInfo:t}),S._parseError}return e}catch(t){if(t!==S._parseError)throw t;return}}else this._parsingErrors.push({message:m,offset:0,lexeme:"",additionalInfo:f})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:k.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:k.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),D.INSTANCE;case 12:return this._advance(),E.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),null===e||void 0===e?void 0:e.negate()}case 17:return this._advance(),R.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),k.true();case 12:return this._advance(),k.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const n=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const i=e.lexeme,s=i.lastIndexOf("/"),o=s===i.length-1?void 0:this._removeFlagsGY(i.substring(s+1));let r;try{r=new RegExp(i.substring(1,s),o)}catch(t){throw this._errExpectedButGot("REGEX",e)}return V.create(n,r)}switch(e.type){case 10:case 19:{const i=[e.lexeme];this._advance();let s=this._peek(),o=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?o++:41===e.lexeme.charCodeAt(t)&&o--;for(;!this._isAtEnd()&&15!==s.type&&16!==s.type;){switch(s.type){case 0:o++;break;case 1:o--;break;case 10:case 18:for(let t=0;t<s.lexeme.length;t++)40===s.lexeme.charCodeAt(t)?o++:41===e.lexeme.charCodeAt(t)&&o--}if(o<0)break;i.push(h.getLexeme(s)),this._advance(),s=this._peek()}const r=i.join(""),a=r.lastIndexOf("/"),l=a===r.length-1?void 0:this._removeFlagsGY(r.substring(a+1));let d;try{d=new RegExp(r.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return k.regex(n,d)}case 18:{const t=e.lexeme;this._advance();let o=null;if(!(0,s.AV)(t)){const n=t.indexOf("/"),s=t.lastIndexOf("/");if(n!==s&&n>=0){const r=t.slice(n+1,s),a="i"===t[s+1]?"i":"";try{o=new RegExp(r,a)}catch(i){throw this._errExpectedButGot("REGEX",e)}}}if(null===o)throw this._errExpectedButGot("REGEX",e);return V.create(n,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);const e=this._value();return k.notIn(n,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return k.equals(n,e);switch(e){case"true":return k.has(n);case"false":return k.not(n);default:return k.equals(n,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return k.notEquals(n,e);switch(e){case"true":return k.not(n);case"false":return k.has(n);default:return k.notEquals(n,e)}}case 5:return this._advance(),B.create(n,this._value());case 6:return this._advance(),W.create(n,this._value());case 7:return this._advance(),P.create(n,this._value());case 8:return this._advance(),F.create(n,this._value());case 13:return this._advance(),k.in(n,this._value());default:return k.has(n)}}case 20:throw this._parsingErrors.push({message:y,offset:e.offset,lexeme:"",additionalInfo:w}),S._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){const n=(0,r.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,h.getLexeme(t)),s=t.offset,o=h.getLexeme(t);return this._parsingErrors.push({message:n,offset:s,lexeme:o,additionalInfo:i}),S._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}S._parseError=new Error;class k{static false(){return D.INSTANCE}static true(){return E.INSTANCE}static has(e){return N.create(e)}static equals(e,t){return T.create(e,t)}static notEquals(e,t){return A.create(e,t)}static regex(e,t){return V.create(e,t)}static in(e,t){return I.create(e,t)}static notIn(e,t){return M.create(e,t)}static not(e){return R.create(e)}static and(...e){return j.create(e,null,!0)}static or(...e){return U.create(e,null,!0)}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function x(e,t){const i=e?e.substituteConstants():void 0,n=t?t.substituteConstants():void 0;return!i&&!n||!(!i||!n)&&i.equals(n)}function L(e,t){return e.cmp(t)}k._parser=new S({regexParsingWithErrorRecovery:!1});class D{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return E.INSTANCE}}D.INSTANCE=new D;class E{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return D.INSTANCE}}E.INSTANCE=new E;class N{static create(e,t=null){const i=u.get(e);return"boolean"===typeof i?i?E.INSTANCE:D.INSTANCE:new N(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?E.INSTANCE:D.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this)),this.negated}}class T{static create(e,t,i=null){if("boolean"===typeof t)return t?N.create(e,i):R.create(e,i);const n=u.get(e);if("boolean"===typeof n){return t===(n?"true":"false")?E.INSTANCE:D.INSTANCE}return new T(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?E.INSTANCE:D.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"===typeof i&&"object"===typeof t&&null!==t&&g.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=M.create(this.key,this.valueKey)),this.negated}}class M{static create(e,t){return new M(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=I.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class A{static create(e,t,i=null){if("boolean"===typeof t)return t?R.create(e,i):N.create(e,i);const n=u.get(e);if("boolean"===typeof n){return t===(n?"true":"false")?D.INSTANCE:E.INSTANCE}return new A(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?D.INSTANCE:E.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class R{static create(e,t=null){const i=u.get(e);return"boolean"===typeof i?i?D.INSTANCE:E.INSTANCE:new R(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?D.INSTANCE:E.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this.key,this)),this.negated}}function O(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):D.INSTANCE}class P{static create(e,t,i=null){return O(t,(t=>new P(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,i=null){return O(t,(t=>new F(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class B{static create(e,t,i=null){return O(t,(t=>new B(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class W{static create(e,t,i=null){return O(t,(t=>new W(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class V{static create(e,t){return new V(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return t<i?-1:t>i?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this)),this.negated}}class H{static create(e){return new H(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function z(e){let t=null;for(let i=0,n=e.length;i<n;i++){const n=e[i].substituteConstants();if(e[i]!==n&&null===t){t=[];for(let n=0;n<i;n++)t[n]=e[n]}null!==t&&(t[i]=n)}return null===t?e:t}class j{static create(e,t,i){return j._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const i=L(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=z(this.expr);return e===this.expr?this:j.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,i){const n=[];let s=!1;for(const o of e)if(o)if(1!==o.type){if(0===o.type)return D.INSTANCE;6!==o.type?n.push(o):n.push(...o.expr)}else s=!0;if(0===n.length&&s)return E.INSTANCE;if(0!==n.length){if(1===n.length)return n[0];n.sort(L);for(let e=1;e<n.length;e++)n[e-1].equals(n[e])&&(n.splice(e,1),e--);if(1===n.length)return n[0];for(;n.length>1;){const e=n[n.length-1];if(9!==e.type)break;n.pop();const t=n.pop(),s=0===n.length,o=U.create(e.expr.map((e=>j.create([e,t],null,i))),null,s);o&&(n.push(o),n.sort(L))}if(1===n.length)return n[0];if(i){for(let e=0;e<n.length;e++)for(let t=e+1;t<n.length;t++)if(n[e].negate().equals(n[t]))return D.INSTANCE;if(1===n.length)return n[0]}return new j(n,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,i){return U._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const i=L(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=z(this.expr);return e===this.expr?this:U.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,i){let n=[],s=!1;if(e){for(let t=0,i=e.length;t<i;t++){const i=e[t];if(i)if(0!==i.type){if(1===i.type)return E.INSTANCE;9!==i.type?n.push(i):n=n.concat(i.expr)}else s=!0}if(0===n.length&&s)return D.INSTANCE;n.sort(L)}if(0!==n.length){if(1===n.length)return n[0];for(let e=1;e<n.length;e++)n[e-1].equals(n[e])&&(n.splice(e,1),e--);if(1===n.length)return n[0];if(i){for(let e=0;e<n.length;e++)for(let t=e+1;t<n.length;t++)if(n[e].negate().equals(n[t]))return E.INSTANCE;if(1===n.length)return n[0]}return new U(n,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),n=[];for(const e of Z(t))for(const t of Z(i))n.push(j.create([e,t],null,!1));e.unshift(U.create(n,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class K extends N{static all(){return K._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"===typeof i?K._info.push({...i,key:e}):!0!==i&&K._info.push({key:e,description:i,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return T.create(this.key,e)}}K._info=[];const G=(0,c.u1)("contextKeyService");function $(e,t){return e<t?-1:e>t?1:0}function q(e,t,i,n){return e<i?-1:e>i?1:t<n?-1:t>n?1:0}function Q(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&Y(e.expr,t.expr);if(9===t.type){for(const i of t.expr)if(Q(e,i))return!0;return!1}if(6===e.type){if(6===t.type)return Y(t.expr,e.expr);for(const i of e.expr)if(Q(i,t))return!0;return!1}return e.equals(t)}function Y(e,t){let i=0,n=0;for(;i<e.length&&n<t.length;){const s=e[i].cmp(t[n]);if(s<0)return!1;0===s?(i++,n++):n++}return i===e.length}function Z(e){return 9===e.type?e.expr:[e]}},28290:(e,t,i)=>{"use strict";i.d(t,{J7:()=>d,W0:()=>a,aV:()=>l,nd:()=>r});var n=i(98067),s=i(31629),o=i(32848);new o.N1("isMac",n.zx,(0,s.kg)("isMac","Whether the operating system is macOS")),new o.N1("isLinux",n.j9,(0,s.kg)("isLinux","Whether the operating system is Linux"));const r=new o.N1("isWindows",n.uF,(0,s.kg)("isWindows","Whether the operating system is Windows")),a=new o.N1("isWeb",n.HZ,(0,s.kg)("isWeb","Whether the platform is a web browser")),l=(new o.N1("isMacNative",n.zx&&!n.HZ,(0,s.kg)("isMacNative","Whether the operating system is macOS on a non-browser platform")),new o.N1("isIOS",n.un,(0,s.kg)("isIOS","Whether the operating system is iOS")),new o.N1("isMobile",n.Fr,(0,s.kg)("isMobile","Whether the platform is a mobile web browser")),new o.N1("isDevelopment",!1,!0),new o.N1("productQualityType","",(0,s.kg)("productQualityType","Quality type of VS Code")),"inputFocus"),d=new o.N1(l,!1,(0,s.kg)("inputFocus","Whether keyboard focus is inside an input box"))},47508:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o,l:()=>s});var n=i(63591);const s=(0,n.u1)("contextViewService"),o=(0,n.u1)("contextMenuService")},59599:(e,t,i)=>{"use strict";i.d(t,{X:()=>n});const n=(0,i(63591).u1)("dialogService")},61292:(e,t,i)=>{"use strict";i.d(t,{PD:()=>o,sV:()=>s});var n=i(46359);const s={EDITORS:"CodeEditors",FILES:"CodeFiles"};n.O.add("workbench.contributions.dragAndDrop",new class{});class o{constructor(){}static getInstance(){return o.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}o.INSTANCE=new o},97035:(e,t,i)=>{"use strict";i.d(t,{k:()=>n});const n=(0,i(63591).u1)("environmentService")},89100:(e,t,i)=>{"use strict";i.d(t,{pG:()=>E,_Q:()=>N,dg:()=>y});var n=i(88443),s=i(8597),o=i(35315),r=i(91581),a=i(17390),l=i(10350),d=i(41234),h=(i(10713),i(31629)),c=i(42904);const u=h.kg("defaultLabel","input"),g=h.kg("label.preserveCaseToggle","Preserve Case");class p extends o.l{constructor(e){var t;super({icon:l.W.preserveCase,title:g+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,c.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class m extends a.x{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new d.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new d.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new d.vl),this._onInput=this._register(new d.vl),this._onKeyUp=this._register(new d.vl),this._onPreserveCaseKeyDown=this._register(new d.vl),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||u;const o=n.appendPreserveCaseLabel||"",a=n.history||[],l=!!n.flexibleHeight,h=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new r.mJ(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:a,showHistoryHint:n.showHistoryHint,flexibleHeight:l,flexibleWidth:h,flexibleMaxHeight:c,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new p({appendTitle:o,isChecked:!1,...n.toggleStyles})),this._register(this.preserveCase.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.preserveCase.onKeyDown((e=>{this._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const g=[this.preserveCase.domNode];this.onkeydown(this.domNode,(e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){const t=g.indexOf(this.domNode.ownerDocument.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%g.length:e.equals(15)&&(i=0===t?g.length-1:t-1),e.equals(9)?(g[t].blur(),this.inputBox.focus()):i>=0&&g[i].focus(),s.fs.stop(e,!0)}}}));const m=document.createElement("div");m.className="controls",m.style.display=this._showOptionButtons?"block":"none",m.appendChild(this.preserveCase.domNode),this.domNode.appendChild(m),null===e||void 0===e||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;null===(e=this.inputBox)||void 0===e||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var f=i(32848),_=i(59261),v=i(5662),b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};const y=new f.N1("suggestWidgetVisible",!1,(0,h.kg)("suggestWidgetVisible","Whether suggestion are visible")),w="historyNavigationWidgetFocus",S="historyNavigationForwardsEnabled",k="historyNavigationBackwardsEnabled";let x;const L=[];function D(e,t){if(L.includes(t))throw new Error("Cannot register the same widget multiple times");L.push(t);const i=new v.Cm,n=new f.N1(w,!1).bindTo(e),o=new f.N1(S,!0).bindTo(e),r=new f.N1(k,!0).bindTo(e),a=()=>{n.set(!0),x=t},l=()=>{n.set(!1),x===t&&(x=void 0)};return(0,s.X7)(t.element)&&a(),i.add(t.onDidFocus((()=>a()))),i.add(t.onDidBlur((()=>l()))),i.add((0,v.s)((()=>{L.splice(L.indexOf(t),1),l()}))),{historyNavigationForwardsEnablement:o,historyNavigationBackwardsEnablement:r,dispose(){i.dispose()}}}let E=class extends n.c{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(D(s,this.inputBox))}};E=b([C(3,f.fN)],E);let N=class extends m{constructor(e,t,i,n,s=!1){super(e,t,s,i);const o=this._register(n.createScoped(this.inputBox.element));this._register(D(o,this.inputBox))}};N=b([C(3,f.fN)],N),_.f.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:f.M$.and(f.M$.has(w),f.M$.equals(k,!0),f.M$.not("isComposing"),y.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{null===x||void 0===x||x.showPreviousValue()}}),_.f.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:f.M$.and(f.M$.has(w),f.M$.equals(S,!0),f.M$.not("isComposing"),y.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{null===x||void 0===x||x.showNextValue()}})},67220:(e,t,i)=>{"use strict";i.d(t,{TN:()=>d,fO:()=>h});var n=i(63591),s=i(5662),o=i(84001),r=i(8597),a=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},l=function(e,t){return function(i,n){t(i,n,e)}};const d=(0,n.u1)("hoverService");let h=class extends s.jG{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(e,t,i={},n,o){super(),this.placement=e,this.instantHover=t,this.overrideOptions=i,this.configurationService=n,this.hoverService=o,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new s.Cm),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))})))}showHover(e,t){const i="function"===typeof this.overrideOptions?this.overrideOptions(e,t):this.overrideOptions;this.hoverDisposables.clear();const n=e.target instanceof HTMLElement?[e.target]:e.target.targetElements;for(const o of n)this.hoverDisposables.add((0,r.b2)(o,"keydown",(e=>{e.equals(9)&&this.hoverService.hideHover()})));const s=e.content instanceof HTMLElement?void 0:e.content.toString();return this.hoverService.showHover({...e,...i,persistence:{hideOnKeyDown:!0,...i.persistence},id:s,appearance:{...e.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...i.appearance}},t)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime<this.timeLimit}onDidHideHover(){this.hoverDisposables.clear(),this.instantHover&&(this.lastHoverHideTime=Date.now())}};h=a([l(3,o.pG),l(4,d)],h)},84040:(e,t,i)=>{"use strict";i.d(t,{d:()=>n});class n{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}},14718:(e,t,i)=>{"use strict";i.d(t,{N:()=>r,v:()=>o});var n=i(84040);const s=[];function o(e,t,i){t instanceof n.d||(t=new n.d(t,[],Boolean(i))),s.push([e,t])}function r(){return s}},63591:(e,t,i)=>{"use strict";var n;i.d(t,{_$:()=>n,_Y:()=>s,u1:()=>o}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(n||(n={}));const s=o("instantiationService");function o(e){if(n.serviceIds.has(e))return n.serviceIds.get(e);const t=function(e,i,s){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,i){t[n.DI_TARGET]===t?t[n.DI_DEPENDENCIES].push({id:e,index:i}):(t[n.DI_DEPENDENCIES]=[{id:e,index:i}],t[n.DI_TARGET]=t)}(t,e,s)};return t.toString=()=>e,n.serviceIds.set(e,t),t}},58345:(e,t,i)=>{"use strict";i.d(t,{a:()=>n});class n{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}},78748:(e,t,i)=>{"use strict";i.d(t,{F:()=>o});var n=i(41234),s=i(46359);const o={JSONContribution:"base.contributions.json"};const r=new class{constructor(){this._onDidChangeSchema=new n.vl,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e,i.length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};s.O.add(o.JSONContribution,r)},98031:(e,t,i)=>{"use strict";i.d(t,{b:()=>n});const n=(0,i(63591).u1)("keybindingService")},59261:(e,t,i)=>{"use strict";i.d(t,{f:()=>h});var n=i(42539),s=i(98067),o=i(50091),r=i(46359),a=i(5662),l=i(58925);class d{constructor(){this._coreKeybindings=new l.w,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===s.OS){if(e&&e.win)return e.win}else if(2===s.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=d.bindToCurrentPlatform(e),i=new a.Cm;if(t&&t.primary){const o=(0,n.Zv)(t.primary,s.OS);o&&i.add(this._registerDefaultKeybinding(o,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let o=0,r=t.secondary.length;o<r;o++){const r=t.secondary[o],a=(0,n.Zv)(r,s.OS);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-o-1,e.when))}return i}registerCommandAndKeybindingRule(e){return(0,a.qE)(this.registerKeybindingRule(e),o.w.registerCommand(e))}_registerDefaultKeybinding(e,t,i,n,s,o){const r=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:o,weight1:n,weight2:s,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,a.s)((()=>{r(),this._cachedMergedKeybindings=null}))}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(c)),this._cachedMergedKeybindings.slice(0)}}const h=new d;function c(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.command<t.command)return-1;if(e.command>t.command)return 1}return e.weight2-t.weight2}r.O.add("platform.keybindingsRegistry",h)},67841:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});const n=(0,i(63591).u1)("labelService")},36584:(e,t,i)=>{"use strict";i.d(t,{PE:()=>be,aG:()=>Ce,er:()=>ft,YD:()=>xe,zL:()=>gt,Nf:()=>Ie,cH:()=>Ae});var n=i(8597),s=i(25890),o=i(18447),r=i(41234),a=i(5662),l=(i(48215),i(93090));class d{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:a.jG.None}}renderElement(e,t,i,n){var s;if(null===(s=i.disposable)||void 0===s||s.dispose(),!i.data)return;const r=this.modelProvider();if(r.isResolved(e))return this.renderer.renderElement(r.get(e),e,i.data,n);const a=new o.Q,l=r.resolve(e,a.token);i.disposable={dispose:()=>a.cancel()},this.renderer.renderPlaceholder(e,i.data),l.then((t=>this.renderer.renderElement(t,e,i.data,n)))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class h{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}class c{constructor(e,t,i,n,s={}){const o=()=>this.model,r=n.map((e=>new d(e,o)));this.list=new l.B8(e,t,i,r,function(e,t){return{...t,accessibilityProvider:t.accessibilityProvider&&new h(e,t.accessibilityProvider)}}(o,s))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get widget(){return this.list}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return r.Jh.map(this.list.onMouseDblClick,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onPointer(){return r.Jh.map(this.list.onPointer,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onDidChangeSelection(){return r.Jh.map(this.list.onDidChangeSelection,(({elements:e,indexes:t,browserEvent:i})=>({elements:e.map((e=>this._model.get(e))),indexes:t,browserEvent:i})))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,(0,s.y1)(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map((e=>this.model.get(e)))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}var u=i(42904),g=i(43545),p=i(35151);class m{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=m.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map((e=>[e.templateId,e])));this.renderers=[];for(const s of e){const e=n.get(s.templateId);if(!e)throw new Error(`Table cell renderer for template id ${s.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=(0,n.BC)(e,(0,n.$)(".monaco-table-tr")),i=[],s=[];for(let r=0;r<this.columns.length;r++){const e=this.renderers[r],o=(0,n.BC)(t,(0,n.$)(".monaco-table-td",{"data-col-index":r}));o.style.width=`${this.getColumnSize(r)}px`,i.push(o),s.push(e.renderTemplate(o))}const o={container:e,cellContainers:i,cellTemplateData:s};return this.renderedTemplates.add(o),o}renderElement(e,t,i,n){for(let s=0;s<this.columns.length;s++){const o=this.columns[s].project(e);this.renderers[s].renderElement(o,t,i.cellTemplateData[s],n)}}disposeElement(e,t,i,n){for(let s=0;s<this.columns.length;s++){const o=this.renderers[s];if(o.disposeElement){const r=this.columns[s].project(e);o.disposeElement(r,t,i.cellTemplateData[s],n)}}}disposeTemplate(e){for(let t=0;t<this.columns.length;t++){this.renderers[t].disposeTemplate(e.cellTemplateData[t])}(0,n.w_)(e.container),this.renderedTemplates.delete(e)}layoutColumn(e,t){for(const{cellContainers:i}of this.renderedTemplates)i[e].style.width=`${t}px`}}m.TemplateId="row";class f extends a.jG{get minimumSize(){var e;return null!==(e=this.column.minimumWidth)&&void 0!==e?e:120}get maximumSize(){var e;return null!==(e=this.column.maximumWidth)&&void 0!==e?e:Number.POSITIVE_INFINITY}get onDidChange(){var e;return null!==(e=this.column.onDidChangeWidthConstraints)&&void 0!==e?e:r.Jh.None}constructor(e,t){super(),this.column=e,this.index=t,this._onDidLayout=new r.vl,this.onDidLayout=this._onDidLayout.event,this.element=(0,n.$)(".monaco-table-th",{"data-col-index":t},e.label),e.tooltip&&this._register((0,g.f)((0,u.nZ)("mouse"),this.element,e.tooltip))}layout(e){this._onDidLayout.fire([this.index,e])}}class _{get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onDidScroll(){return this.list.onDidScroll}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}get scrollHeight(){return this.list.scrollHeight}get renderHeight(){return this.list.renderHeight}get onDidDispose(){return this.list.onDidDispose}constructor(e,t,i,s,o,d){this.virtualDelegate=i,this.domId="table_id_"+ ++_.InstanceCount,this.disposables=new a.Cm,this.cachedWidth=0,this.cachedHeight=0,this.domNode=(0,n.BC)(t,(0,n.$)(`.monaco-table.${this.domId}`));const h=s.map(((e,t)=>this.disposables.add(new f(e,t)))),c={size:h.reduce(((e,t)=>e+t.column.weight),0),views:h.map((e=>({size:e.column.weight,view:e})))};this.splitview=this.disposables.add(new p.U(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:c})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const u=new m(s,o,(e=>this.splitview.getViewSize(e)));var g;this.list=this.disposables.add(new l.B8(e,this.domNode,(g=i,{getHeight:e=>g.getHeight(e),getTemplateId:()=>m.TemplateId}),[u],d)),r.Jh.any(...h.map((e=>e.onDidLayout)))((([e,t])=>u.layoutColumn(e,t)),null,this.disposables),this.splitview.onDidSashReset((e=>{const t=s.reduce(((e,t)=>e+t.weight),0),i=s[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i)}),null,this.disposables),this.styleElement=(0,n.li)(this.domNode),this.style(l.bG)}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}_.InstanceCount=0;var v=i(19466),b=i(66700),C=i(37472),y=i(84565),w=i(42522);class S{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new C.G6(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e,t=w.f.empty(),i={}){const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=w.f.empty(),i){const n=new Set,s=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:e=>{var t;if(null===e.element)return;const o=e;if(n.add(o.element),this.nodes.set(o.element,o),this.identityProvider){const e=this.identityProvider.getId(o.element).toString();s.add(e),this.nodesByIdentity.set(e,o)}null===(t=i.onDidCreateNode)||void 0===t||t.call(i,o)},onDidDeleteNode:e=>{var t;if(null===e.element)return;const o=e;if(n.has(o.element)||this.nodes.delete(o.element),this.identityProvider){const e=this.identityProvider.getId(o.element).toString();s.has(e)||this.nodesByIdentity.delete(e)}null===(t=i.onDidDeleteNode)||void 0===t||t.call(i,o)}})}preserveCollapseState(e=w.f.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),w.f.map(e,(e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t){let t;return t="undefined"===typeof e.collapsed?void 0:e.collapsed===y.Yo.Collapsed||e.collapsed===y.Yo.PreserveOrCollapsed||e.collapsed!==y.Yo.Expanded&&e.collapsed!==y.Yo.PreserveOrExpanded&&Boolean(e.collapsed),{...e,children:this.preserveCollapseState(e.children),collapsed:t}}const i="boolean"===typeof e.collapsible?e.collapsible:t.collapsible;let n;return n="undefined"===typeof e.collapsed||e.collapsed===y.Yo.PreserveOrCollapsed||e.collapsed===y.Yo.PreserveOrExpanded?t.collapsed:e.collapsed===y.Yo.Collapsed||e.collapsed!==y.Yo.Expanded&&Boolean(e.collapsed),{...e,collapsible:i,collapsed:n,children:this.preserveCollapseState(e.children)}}))}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new y.jh(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new y.jh(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new y.jh(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new y.jh(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function k(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:w.f.map(w.f.from(e.children),k),collapsible:e.collapsible,collapsed:e.collapsed}}function x(e){const t=[e.element],i=e.incompressible||!1;let n,s;for(;[s,n]=w.f.consume(w.f.from(e.children),2),1===s.length&&!s[0].incompressible;)e=s[0],t.push(e.element);return{element:{elements:t,incompressible:i},children:w.f.map(w.f.concat(s,n),x),collapsible:e.collapsible,collapsed:e.collapsed}}function L(e,t=0){let i;return i=t<e.element.elements.length-1?[L(e,t+1)]:w.f.map(w.f.from(e.children),(e=>L(e,0))),0===t&&e.element.incompressible?{element:e.element.elements[t],children:i,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:i,collapsible:e.collapsible,collapsed:e.collapsed}}function D(e){return L(e,0)}function E(e,t,i){return e.element===t?{...e,children:i}:{...e,children:w.f.map(w.f.from(e.children),(e=>E(e,t,i)))}}class N{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new S(e,t,i),this.enabled="undefined"===typeof i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}setChildren(e,t=w.f.empty(),i){const n=i.diffIdentityProvider&&(o=i.diffIdentityProvider,{getId:e=>e.elements.map((e=>o.getId(e).toString())).join("\0")});var o;if(null===e){const e=w.f.map(t,this.enabled?x:k);return void this._setChildren(null,e,{diffIdentityProvider:n,diffDepth:1/0})}const r=this.nodes.get(e);if(!r)throw new y.jh(this.user,"Unknown compressed tree node");const a=this.model.getNode(r),l=this.model.getParentNodeLocation(r),d=this.model.getNode(l),h=E(D(a),e,t),c=(this.enabled?x:k)(h),u=i.diffIdentityProvider?(e,t)=>i.diffIdentityProvider.getId(e)===i.diffIdentityProvider.getId(t):void 0;if((0,s.aI)(c.element.elements,a.element.elements,u))return void this._setChildren(r,c.children||w.f.empty(),{diffIdentityProvider:n,diffDepth:1});const g=d.children.map((e=>e===a?c:e));this._setChildren(d.element,g,{diffIdentityProvider:n,diffDepth:a.depth-d.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode().children,i=w.f.map(t,D),n=w.f.map(i,e?x:k);this._setChildren(null,n,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set;this.model.setChildren(e,t,{...i,onDidCreateNode:e=>{for(const t of e.element.elements)n.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(const t of e.element.elements)n.has(t)||this.nodes.delete(t)}})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if("undefined"===typeof e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new y.jh(this.user,`Tree element not found: ${e}`);return t}}const T=e=>e[e.length-1];class I{get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map((e=>new I(this.unwrapper,e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e,t){this.unwrapper=e,this.node=t}}class M{get onDidSplice(){return r.Jh.map(this.model.onDidSplice,(({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map((e=>this.nodeMapper.map(e))),deletedNodes:t.map((e=>this.nodeMapper.map(e)))})))}get onDidChangeCollapseState(){return r.Jh.map(this.model.onDidChangeCollapseState,(({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t})))}get onDidChangeRenderNodeCount(){return r.Jh.map(this.model.onDidChangeRenderNodeCount,(e=>this.nodeMapper.map(e)))}constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||T;const n=e=>this.elementMapper(e.elements);this.nodeMapper=new y.y2((e=>new I(n,e))),this.model=new N(e,function(e,t){return{splice(i,n,s){t.splice(i,n,s.map((t=>e.map(t))))},updateElementHeight(e,i){t.updateElementHeight(e,i)}}}(this.nodeMapper,t),function(e,t){return{...t,identityProvider:t.identityProvider&&{getId:i=>t.identityProvider.getId(e(i))},sorter:t.sorter&&{compare:(e,i)=>t.sorter.compare(e.elements[0],i.elements[0])},filter:t.filter&&{filter:(i,n)=>t.filter.filter(e(i),n)}}}(n,i))}setChildren(e,t=w.f.empty(),i={}){this.model.setChildren(e,t,i)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return null===t||"undefined"===typeof t?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var A=i(58694),R=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class O extends v.DO{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,n,s={}){super(e,t,i,n,s),this.user=e}setChildren(e,t=w.f.empty(),i){this.model.setChildren(e,t,i)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new S(e,t,i)}}class P{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t,i){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=t,this.renderer=i,this.templateId=i.templateId,i.onDidChangeTwistieState&&(this.onDidChangeTwistieState=i.onDidChangeTwistieState)}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){let s=this.stickyScrollDelegate.getCompressedNode(e);s||(s=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),1===s.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=s,this.renderer.renderCompressedElements(s,t,i.data,n))}disposeElement(e,t,i,n){var s,o,r,a;i.compressedTreeNode?null===(o=(s=this.renderer).disposeCompressedElements)||void 0===o||o.call(s,i.compressedTreeNode,t,i.data,n):null===(a=(r=this.renderer).disposeElement)||void 0===a||a.call(r,e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}R([A.B],P.prototype,"compressedTreeNodeProvider",null);class F{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map}getCompressedNode(e){return this.compressedStickyNodes.get(e)}constrainStickyScrollNodes(e,t,i){if(this.compressedStickyNodes.clear(),0===e.length)return[];for(let n=0;n<e.length;n++){const s=e[n],o=s.position+s.height;if(n+1<e.length&&o+e[n+1].height>i||n>=t-1&&t<e.length){const t=e.slice(0,n),i=e.slice(n);return[...t,this.compressStickyNodes(i)]}}return e}compressStickyNodes(e){if(0===e.length)throw new Error("Can't compress empty sticky nodes");if(!this.modelProvider().isCompressionEnabled())return e[0];const t=[];for(const a of e){const e=this.modelProvider().getCompressedTreeNode(a.node.element);if(e.element){if(e.element.incompressible)break;t.push(...e.element.elements)}}if(t.length<2)return e[0];const i=e[e.length-1],n={elements:t,incompressible:!1},s={...i.node,children:[],element:n},o=new Proxy(e[0].node,{}),r={node:o,startIndex:e[0].startIndex,endIndex:i.endIndex,position:e[0].position,height:e[0].height};return this.compressedStickyNodes.set(o,s),r}}function B(e,t){return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(i){let n;try{n=e().getCompressedTreeNode(i)}catch(s){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i)}return 1===n.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(n.element.elements)}}}}class W extends O{constructor(e,t,i,n,s={}){const o=()=>this,r=new F((()=>this.model));super(e,t,i,n.map((e=>new P(o,r,e))),{...B(o,s),stickyScrollDelegate:r})}setChildren(e,t=w.f.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new M(e,t,i)}updateOptions(e={}){super.updateOptions(e),"undefined"!==typeof e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var V=i(90766),H=i(10350),z=i(25689),j=i(64383),U=i(631);function K(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function G(e,t){return!!t.parent&&(t.parent===e||G(e,t.parent))}class ${get element(){return this.node.element.element}get children(){return this.node.children.map((e=>new $(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class q{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...z.L.asClassNameArray(H.W.treeItemLoading)),!0):(t.classList.remove(...z.L.asClassNameArray(H.W.treeItemLoading)),!1)}disposeElement(e,t,i,n){var s,o;null===(o=(s=this.renderer).disposeElement)||void 0===o||o.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function Q(e){return{browserEvent:e.browserEvent,elements:e.elements.map((e=>e.element))}}function Y(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class Z extends b.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function X(e){return e instanceof b.ur?new Z(e):e}class J{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,X(e),t)}onDragOver(e,t,i,n,s,o=!0){return this.dnd.onDragOver(X(e),t&&t.element,i,n,s)}drop(e,t,i,n,s){this.dnd.drop(X(e),t&&t.element,i,n,s)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}dispose(){this.dnd.dispose()}}function ee(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new J(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element}),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var i;return!!(null===(i=e.accessibilityProvider)||void 0===i?void 0:i.isChecked(t.element))}:void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},filter:e.filter&&{filter:(t,i)=>e.filter.filter(t.element,i)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)},sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"===typeof e.defaultFindVisibility?e.defaultFindVisibility:"undefined"===typeof e.defaultFindVisibility?2:e.defaultFindVisibility(t.element)}}function te(e,t){t(e),e.children.forEach((e=>te(e,t)))}class ie{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return r.Jh.map(this.tree.onDidChangeFocus,Q)}get onDidChangeSelection(){return r.Jh.map(this.tree.onDidChangeSelection,Q)}get onMouseDblClick(){return r.Jh.map(this.tree.onMouseDblClick,Y)}get onPointer(){return r.Jh.map(this.tree.onPointer,Y)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,n,s,o={}){this.user=e,this.dataSource=s,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new r.vl,this._onDidChangeNodeSlowState=new r.vl,this.nodeMapper=new y.y2((e=>new $(e))),this.disposables=new a.Cm,this.identityProvider=o.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof o.autoExpandSingleChildren&&o.autoExpandSingleChildren,this.sorter=o.sorter,this.getDefaultCollapseState=e=>o.collapseByDefault?o.collapseByDefault(e)?y.Yo.PreserveOrCollapsed:y.Yo.PreserveOrExpanded:void 0,this.tree=this.createTree(e,t,i,n,o),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=K({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}createTree(e,t,i,n,s){const o=new v.w0(i),r=n.map((e=>new q(e,this.nodeMapper,this._onDidChangeNodeSlowState.event))),a=ee(s)||{};return new O(e,t,o,r,a)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.refreshPromises.forEach((e=>e.cancel())),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"===typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}async _updateChildren(e=this.root.element,t=!0,i=!1,n,s){if("undefined"===typeof this.root.element)throw new y.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await r.Jh.toPromise(this._onDidRender.event));const o=this.getDataNode(e);if(await this.refreshAndRenderNode(o,t,n,s),i)try{this.tree.rerender(o)}catch(a){}}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e,t=!1){if("undefined"===typeof this.root.element)throw new y.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await r.Jh.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(await this.root.refreshPromise,await r.Jh.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await this.root.refreshPromise,await r.Jh.toPromise(this._onDidRender.event)),n}setSelection(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map((e=>e.element))}setFocus(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map((e=>e.element))}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new y.jh(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,i,n){await this.refreshNode(e,t,i),this.disposables.isDisposed||this.render(e,i,n)}async refreshNode(e,t,i){let n;if(this.subTreeRefreshPromises.forEach(((s,o)=>{!n&&function(e,t){return e===t||G(e,t)||G(t,e)}(o,e)&&(n=s.then((()=>this.refreshNode(e,t,i))))})),n)return n;if(e!==this.root){if(this.tree.getNode(e).collapsed)return e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,void this.setChildren(e,[],t,i)}return this.doRefreshSubTree(e,t,i)}async doRefreshSubTree(e,t,i){let n;e.refreshPromise=new Promise((e=>n=e)),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}));try{const n=await this.doRefreshNode(e,t,i);e.stale=!1,await V.HC.settled(n.map((e=>this.doRefreshSubTree(e,t,i))))}finally{n()}}async doRefreshNode(e,t,i){let n;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=this.doGetChildren(e);if((0,U.xZ)(t))n=Promise.resolve(t);else{const i=(0,V.wR)(800);i.then((()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)}),(e=>null)),n=t.finally((()=>i.cancel()))}}else n=Promise.resolve(w.f.empty());try{const s=await n;return this.setChildren(e,s,t,i)}catch(s){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,j.MB)(s))return[];throw s}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return(0,U.xZ)(i)?this.processChildren(i):(t=(0,V.SS)((async()=>this.processChildren(await i))),this.refreshPromises.set(e,t),t.finally((()=>{this.refreshPromises.delete(e)})))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(j.dz))}setChildren(e,t,i,n){const s=[...t];if(0===e.children.length&&0===s.length)return[];const o=new Map,r=new Map;for(const d of e.children)o.set(d.element,d),this.identityProvider&&r.set(d.id,{node:d,collapsed:this.tree.hasElement(d)&&this.tree.isCollapsed(d)});const a=[],l=s.map((t=>{const s=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=K({element:t,parent:e,hasChildren:s,defaultCollapseState:this.getDefaultCollapseState(t)});return s&&i.defaultCollapseState===y.Yo.PreserveOrExpanded&&a.push(i),i}const l=this.identityProvider.getId(t).toString(),d=r.get(l);if(d){const e=d.node;return o.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=s,i?d.collapsed?(e.children.forEach((e=>te(e,(e=>this.nodes.delete(e.element))))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):s&&!d.collapsed&&a.push(e),e}const h=K({element:t,parent:e,id:l,hasChildren:s,defaultCollapseState:this.getDefaultCollapseState(t)});return n&&n.viewState.focus&&n.viewState.focus.indexOf(l)>-1&&n.focus.push(h),n&&n.viewState.selection&&n.viewState.selection.indexOf(l)>-1&&n.selection.push(h),(n&&n.viewState.expanded&&n.viewState.expanded.indexOf(l)>-1||s&&h.defaultCollapseState===y.Yo.PreserveOrExpanded)&&a.push(h),h}));for(const d of o.values())te(d,(e=>this.nodes.delete(e.element)));for(const d of l)this.nodes.set(d.element,d);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].forceExpanded=!0,a.push(l[0])),a}render(e,t,i){const n=e.children.map((e=>this.asTreeElement(e,t))),s=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId:e=>i.diffIdentityProvider.getId(e.element)}};this.tree.setChildren(e===this.root?null:e,n,s),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?w.f.map(e.children,(e=>this.asTreeElement(e,t))):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}}class ne{get element(){return{elements:this.node.element.elements.map((e=>e.element)),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map((e=>new ne(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class se{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...z.L.asClassNameArray(H.W.treeItemLoading)),!0):(t.classList.remove(...z.L.asClassNameArray(H.W.treeItemLoading)),!1)}disposeElement(e,t,i,n){var s,o;null===(o=(s=this.renderer).disposeElement)||void 0===o||o.call(s,this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){var s,o;null===(o=(s=this.renderer).disposeCompressedElements)||void 0===o||o.call(s,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,a.AS)(this.disposables)}}class oe extends ie{constructor(e,t,i,n,s,o,r={}){super(e,t,i,s,o,r),this.compressionDelegate=n,this.compressibleNodeMapper=new y.y2((e=>new ne(e))),this.filter=r.filter}createTree(e,t,i,n,s){const o=new v.w0(i),r=n.map((e=>new se(e,this.nodeMapper,(()=>this.compressibleNodeMapper),this._onDidChangeNodeSlowState.event))),a=function(e){const t=e&&ee(e);return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((e=>e.element)))}}}(s)||{};return new W(e,t,o,r,a)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t,i){if(!this.identityProvider)return super.render(e,t);const n=e=>this.identityProvider.getId(e).toString(),s=e=>{const t=new Set;for(const i of e){const e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(const i of e.element.elements)t.add(n(i.element))}return t},o=s(this.tree.getSelection()),r=s(this.tree.getFocus());super.render(e,t,i);const a=this.getSelection();let l=!1;const d=this.getFocus();let h=!1;const c=e=>{const t=e.element;if(t)for(let i=0;i<t.elements.length;i++){const e=n(t.elements[i].element),s=t.elements[t.elements.length-1].element;o.has(e)&&-1===a.indexOf(s)&&(a.push(s),l=!0),r.has(e)&&-1===d.indexOf(s)&&(d.push(s),h=!0)}e.children.forEach(c)};c(this.tree.getCompressedTreeNode(e===this.root?null:e)),l&&this.setSelection(a),h&&this.setFocus(d)}processChildren(e){return this.filter&&(e=w.f.filter(e,(e=>{const t=this.filter.filter(e,1),i="boolean"===typeof(n=t)?n?1:0:(0,C.iZ)(n)?(0,C.Mn)(n.visibility):(0,C.Mn)(n);var n;if(2===i)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===i}))),super.processChildren(e)}}class re extends v.DO{constructor(e,t,i,n,s,o={}){super(e,t,i,n,o),this.user=e,this.dataSource=s,this.identityProvider=o.identityProvider}createModel(e,t,i){return new S(e,t,i)}}var ae=i(31629),le=i(84001),de=i(1646),he=i(32848),ce=i(28290),ue=i(47508),ge=i(63591),pe=i(98031),me=i(46359),fe=i(19070),_e=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},ve=function(e,t){return function(i,n){t(i,n,e)}};const be=(0,ge.u1)("listService");class Ce{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new a.Cm,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&(null===(t=this._lastFocusedWidget)||void 0===t||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,null===(i=this._lastFocusedWidget)||void 0===i||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;new l.hb((0,n.li)(),"").style(fe.IN)}if(this.lists.some((t=>t.widget===e)))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),(0,n.X7)(e.getHTMLElement())&&this.setLastFocusedList(e),(0,a.qE)(e.onDidFocus((()=>this.setLastFocusedList(e))),(0,a.s)((()=>this.lists.splice(this.lists.indexOf(i),1))),e.onDidDispose((()=>{this.lists=this.lists.filter((e=>e!==i)),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)})))}dispose(){this.disposables.dispose()}}const ye=new he.N1("listScrollAtBoundary","none"),we=(he.M$.or(ye.isEqualTo("top"),ye.isEqualTo("both")),he.M$.or(ye.isEqualTo("bottom"),ye.isEqualTo("both")),new he.N1("listFocus",!0)),Se=new he.N1("treestickyScrollFocused",!1),ke=new he.N1("listSupportsMultiselect",!0),xe=he.M$.and(we,he.M$.not(ce.aV),Se.negate()),Le=new he.N1("listHasSelectionOrFocus",!1),De=new he.N1("listDoubleSelection",!1),Ee=new he.N1("listMultiSelection",!1),Ne=new he.N1("listSelectionNavigation",!1),Te=new he.N1("listSupportsFind",!0),Ie=new he.N1("treeElementCanCollapse",!1),Me=new he.N1("treeElementHasParent",!1),Ae=new he.N1("treeElementCanExpand",!1),Re=new he.N1("treeElementHasChild",!1),Oe=new he.N1("treeFindOpen",!1),Pe="listTypeNavigationMode",Fe="listAutomaticKeyboardNavigation";function Be(e,t){const i=e.createScoped(t.getHTMLElement());return we.bindTo(i),i}function We(e,t){const i=ye.bindTo(e),n=()=>{const e=0===t.scrollTop,n=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&n?i.set("both"):e?i.set("top"):n?i.set("bottom"):i.set("none")};return n(),t.onDidScroll(n)}const Ve="workbench.list.multiSelectModifier",He="workbench.list.openMode",ze="workbench.list.horizontalScrolling",je="workbench.list.defaultFindMode",Ue="workbench.list.typeNavigationMode",Ke="workbench.list.keyboardNavigation",Ge="workbench.list.scrollByPage",$e="workbench.list.defaultFindMatchType",qe="workbench.tree.indent",Qe="workbench.tree.renderIndentGuides",Ye="workbench.list.smoothScrolling",Ze="workbench.list.mouseWheelScrollSensitivity",Xe="workbench.list.fastScrollSensitivity",Je="workbench.tree.expandMode",et="workbench.tree.enableStickyScroll",tt="workbench.tree.stickyScrollMaxItemCount";function it(e){return"alt"===e.getValue(Ve)}class nt extends a.jG{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=it(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Ve)&&(this.useAltAsMultipleSelectionModifier=it(this.configurationService))})))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:(0,l.tX)(e)}isSelectionRangeChangeEvent(e){return(0,l.mh)(e)}}function st(e,t){var i;const n=e.get(le.pG),s=e.get(pe.b),o=new a.Cm;return[{...t,keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>s.mightProducePrintableCharacter(e)},smoothScrolling:Boolean(n.getValue(Ye)),mouseWheelScrollSensitivity:n.getValue(Ze),fastScrollSensitivity:n.getValue(Xe),multipleSelectionController:null!==(i=t.multipleSelectionController)&&void 0!==i?i:o.add(new nt(n)),keyboardNavigationEventFilter:ut(s),scrollByPage:Boolean(n.getValue(Ge))},o]}let ot=class extends l.B8{constructor(e,t,i,n,s,o,r,a,l){const d="undefined"!==typeof s.horizontalScrolling?s.horizontalScrolling:Boolean(a.getValue(ze)),[h,c]=l.invokeFunction(st,s);super(e,t,i,n,{keyboardSupport:!1,...h,horizontalScrolling:d}),this.disposables.add(c),this.contextKeyService=Be(o,this),this.disposables.add(We(this.contextKeyService,this)),this.listSupportsMultiSelect=ke.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport);Ne.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this.listHasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.listDoubleSelection=De.bindTo(this.contextKeyService),this.listMultiSelection=Ee.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(a),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(a.onDidChangeConfiguration((e=>{e.affectsConfiguration(Ve)&&(this._useAltAsMultipleSelectionModifier=it(a));let t={};if(e.affectsConfiguration(ze)&&void 0===this.horizontalScrolling){const e=Boolean(a.getValue(ze));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ge)){const e=Boolean(a.getValue(Ge));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ye)){const e=Boolean(a.getValue(Ye));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Ze)){const e=a.getValue(Ze);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Xe)){const e=a.getValue(Xe);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new dt(this,{configurationService:a,...s}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.t8)(e):fe.IN)}};ot=_e([ve(5,he.fN),ve(6,be),ve(7,le.pG),ve(8,ge._Y)],ot);let rt=class extends c{constructor(e,t,i,n,s,o,r,l,d){const h="undefined"!==typeof s.horizontalScrolling?s.horizontalScrolling:Boolean(l.getValue(ze)),[c,u]=d.invokeFunction(st,s);super(e,t,i,n,{keyboardSupport:!1,...c,horizontalScrolling:h}),this.disposables=new a.Cm,this.disposables.add(u),this.contextKeyService=Be(o,this),this.disposables.add(We(this.contextKeyService,this.widget)),this.horizontalScrolling=s.horizontalScrolling,this.listSupportsMultiSelect=ke.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport);Ne.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this._useAltAsMultipleSelectionModifier=it(l),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(Ve)&&(this._useAltAsMultipleSelectionModifier=it(l));let t={};if(e.affectsConfiguration(ze)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(ze));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ge)){const e=Boolean(l.getValue(Ge));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ye)){const e=Boolean(l.getValue(Ye));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Ze)){const e=l.getValue(Ze);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Xe)){const e=l.getValue(Xe);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new dt(this,{configurationService:l,...s}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables.dispose(),super.dispose()}};rt=_e([ve(5,he.fN),ve(6,be),ve(7,le.pG),ve(8,ge._Y)],rt);let at=class extends _{constructor(e,t,i,n,s,o,r,a,l,d){const h="undefined"!==typeof o.horizontalScrolling?o.horizontalScrolling:Boolean(l.getValue(ze)),[c,u]=d.invokeFunction(st,o);super(e,t,i,n,s,{keyboardSupport:!1,...c,horizontalScrolling:h}),this.disposables.add(u),this.contextKeyService=Be(r,this),this.disposables.add(We(this.contextKeyService,this)),this.listSupportsMultiSelect=ke.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport);Ne.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this.listHasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.listDoubleSelection=De.bindTo(this.contextKeyService),this.listMultiSelection=Ee.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(Ve)&&(this._useAltAsMultipleSelectionModifier=it(l));let t={};if(e.affectsConfiguration(ze)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(ze));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ge)){const e=Boolean(l.getValue(Ge));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Ye)){const e=Boolean(l.getValue(Ye));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Ze)){const e=l.getValue(Ze);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Xe)){const e=l.getValue(Xe);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new ht(this,{configurationService:l,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables.dispose(),super.dispose()}};at=_e([ve(6,he.fN),ve(7,be),ve(8,le.pG),ve(9,ge._Y)],at);class lt extends a.jG{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new r.vl),this.onDidOpen=this._onDidOpen.event,this._register(r.Jh.filter(this.widget.onDidChangeSelection,(e=>(0,n.kx)(e.browserEvent)))((e=>this.onSelectionFromKeyboard(e)))),this._register(this.widget.onPointer((e=>this.onPointer(e.element,e.browserEvent)))),this._register(this.widget.onMouseDblClick((e=>this.onMouseDblClick(e.element,e.browserEvent)))),"boolean"!==typeof(null===t||void 0===t?void 0:t.openOnSingleClick)&&(null===t||void 0===t?void 0:t.configurationService)?(this.openOnSingleClick="doubleClick"!==(null===t||void 0===t?void 0:t.configurationService.getValue(He)),this._register(null===t||void 0===t?void 0:t.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(He)&&(this.openOnSingleClick="doubleClick"!==(null===t||void 0===t?void 0:t.configurationService.getValue(He)))})))):this.openOnSingleClick=null===(i=null===t||void 0===t?void 0:t.openOnSingleClick)||void 0===i||i}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,i="boolean"!==typeof t.preserveFocus||t.preserveFocus,n="boolean"===typeof t.pinned?t.pinned:!i;this._open(this.getSelectedElement(),i,n,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;if(2===t.detail)return;const i=1===t.button,n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,i,n,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,n,t)}_open(e,t,i,n,s){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:s})}}class dt extends lt{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class ht extends lt{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class ct extends lt{constructor(e,t){super(e,t)}getSelectedElement(){var e;return null!==(e=this.widget.getSelection()[0])&&void 0!==e?e:void 0}}function ut(e){let t=!1;return i=>{if(i.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const n=e.softDispatch(i,i.target);return 1===n.kind?(t=!0,!1):(t=!1,0===n.kind)}}let gt=class extends O{constructor(e,t,i,n,s,o,r,a,l){const{options:d,getTypeNavigationMode:h,disposable:c}=o.invokeFunction(Ct,s);super(e,t,i,n,d),this.disposables.add(c),this.internals=new yt(this,s,h,s.overrideStyles,r,a,l),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};gt=_e([ve(5,ge._Y),ve(6,he.fN),ve(7,be),ve(8,le.pG)],gt);let pt=class extends W{constructor(e,t,i,n,s,o,r,a,l){const{options:d,getTypeNavigationMode:h,disposable:c}=o.invokeFunction(Ct,s);super(e,t,i,n,d),this.disposables.add(c),this.internals=new yt(this,s,h,s.overrideStyles,r,a,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};pt=_e([ve(5,ge._Y),ve(6,he.fN),ve(7,be),ve(8,le.pG)],pt);let mt=class extends re{constructor(e,t,i,n,s,o,r,a,l,d){const{options:h,getTypeNavigationMode:c,disposable:u}=r.invokeFunction(Ct,o);super(e,t,i,n,s,h),this.disposables.add(u),this.internals=new yt(this,o,c,o.overrideStyles,a,l,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};mt=_e([ve(6,ge._Y),ve(7,he.fN),ve(8,be),ve(9,le.pG)],mt);let ft=class extends ie{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,n,s,o,r,a,l,d){const{options:h,getTypeNavigationMode:c,disposable:u}=r.invokeFunction(Ct,o);super(e,t,i,n,s,h),this.disposables.add(u),this.internals=new yt(this,o,c,o.overrideStyles,a,l,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};ft=_e([ve(6,ge._Y),ve(7,he.fN),ve(8,be),ve(9,le.pG)],ft);let _t=class extends oe{constructor(e,t,i,n,s,o,r,a,l,d,h){const{options:c,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(Ct,r);super(e,t,i,n,s,o,c),this.disposables.add(g),this.internals=new yt(this,r,u,r.overrideStyles,l,d,h),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function vt(e){const t=e.getValue(je);if("highlight"===t)return v.vD.Highlight;if("filter"===t)return v.vD.Filter;const i=e.getValue(Ke);return"simple"===i||"highlight"===i?v.vD.Highlight:"filter"===i?v.vD.Filter:void 0}function bt(e){const t=e.getValue($e);return"fuzzy"===t?v.RD.Fuzzy:"contiguous"===t?v.RD.Contiguous:void 0}function Ct(e,t){var i;const n=e.get(le.pG),s=e.get(ue.l),o=e.get(he.fN),r=e.get(ge._Y),a=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(n.getValue(ze)),[d,h]=r.invokeFunction(st,t),c=t.paddingBottom,u=void 0!==t.renderIndentGuides?t.renderIndentGuides:n.getValue(Qe);return{getTypeNavigationMode:()=>{const e=o.getContextKeyValue(Pe);if("automatic"===e)return l._C.Automatic;if("trigger"===e)return l._C.Trigger;if(!1===o.getContextKeyValue(Fe))return l._C.Trigger;const t=n.getValue(Ue);return"automatic"===t?l._C.Automatic:"trigger"===t?l._C.Trigger:void 0},disposable:h,options:{keyboardSupport:!1,...d,indent:"number"===typeof n.getValue(qe)?n.getValue(qe):void 0,renderIndentGuides:u,smoothScrolling:Boolean(n.getValue(Ye)),defaultFindMode:vt(n),defaultFindMatchType:bt(n),horizontalScrolling:a,scrollByPage:Boolean(n.getValue(Ge)),paddingBottom:c,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:null!==(i=t.expandOnlyOnTwistieClick)&&void 0!==i?i:"doubleClick"===n.getValue(Je),contextViewProvider:s,findWidgetStyles:fe.Dk,enableStickyScroll:Boolean(n.getValue(et)),stickyScrollMaxItemCount:Number(n.getValue(tt))}}}_t=_e([ve(7,ge._Y),ve(8,he.fN),ve(9,be),ve(10,le.pG)],_t);let yt=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,n,s,o,r){var a;this.tree=e,this.disposables=[],this.contextKeyService=Be(s,e),this.disposables.push(We(this.contextKeyService,e)),this.listSupportsMultiSelect=ke.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport);Ne.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=Te.bindTo(this.contextKeyService),this.listSupportFindWidget.set(null===(a=t.findWidgetEnabled)||void 0===a||a),this.hasSelectionOrFocus=Le.bindTo(this.contextKeyService),this.hasDoubleSelection=De.bindTo(this.contextKeyService),this.hasMultiSelection=Ee.bindTo(this.contextKeyService),this.treeElementCanCollapse=Ie.bindTo(this.contextKeyService),this.treeElementHasParent=Me.bindTo(this.contextKeyService),this.treeElementCanExpand=Ae.bindTo(this.contextKeyService),this.treeElementHasChild=Re.bindTo(this.contextKeyService),this.treeFindOpen=Oe.bindTo(this.contextKeyService),this.treeStickyScrollFocused=Se.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=it(r),this.updateStyleOverrides(n);const l=()=>{const t=e.getFocus()[0];if(!t)return;const i=e.getNode(t);this.treeElementCanCollapse.set(i.collapsible&&!i.collapsed),this.treeElementHasParent.set(!!e.getParentElement(t)),this.treeElementCanExpand.set(i.collapsible&&i.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(t))},d=new Set;d.add(Pe),d.add(Fe),this.disposables.push(this.contextKeyService,o.register(e),e.onDidChangeSelection((()=>{const t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.hasSelectionOrFocus.set(t.length>0||i.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)}))})),e.onDidChangeFocus((()=>{const t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||i.length>0),l()})),e.onDidChangeCollapseState(l),e.onDidChangeModel(l),e.onDidChangeFindOpenState((e=>this.treeFindOpen.set(e))),e.onDidChangeStickyScrollFocused((e=>this.treeStickyScrollFocused.set(e))),r.onDidChangeConfiguration((n=>{let s={};if(n.affectsConfiguration(Ve)&&(this._useAltAsMultipleSelectionModifier=it(r)),n.affectsConfiguration(qe)){const e=r.getValue(qe);s={...s,indent:e}}if(n.affectsConfiguration(Qe)&&void 0===t.renderIndentGuides){const e=r.getValue(Qe);s={...s,renderIndentGuides:e}}if(n.affectsConfiguration(Ye)){const e=Boolean(r.getValue(Ye));s={...s,smoothScrolling:e}}if(n.affectsConfiguration(je)||n.affectsConfiguration(Ke)){const e=vt(r);s={...s,defaultFindMode:e}}if(n.affectsConfiguration(Ue)||n.affectsConfiguration(Ke)){const e=i();s={...s,typeNavigationMode:e}}if(n.affectsConfiguration($e)){const e=bt(r);s={...s,defaultFindMatchType:e}}if(n.affectsConfiguration(ze)&&void 0===t.horizontalScrolling){const e=Boolean(r.getValue(ze));s={...s,horizontalScrolling:e}}if(n.affectsConfiguration(Ge)){const e=Boolean(r.getValue(Ge));s={...s,scrollByPage:e}}if(n.affectsConfiguration(Je)&&void 0===t.expandOnlyOnTwistieClick&&(s={...s,expandOnlyOnTwistieClick:"doubleClick"===r.getValue(Je)}),n.affectsConfiguration(et)){const e=r.getValue(et);s={...s,enableStickyScroll:e}}if(n.affectsConfiguration(tt)){const e=Math.max(1,r.getValue(tt));s={...s,stickyScrollMaxItemCount:e}}if(n.affectsConfiguration(Ze)){const e=r.getValue(Ze);s={...s,mouseWheelScrollSensitivity:e}}if(n.affectsConfiguration(Xe)){const e=r.getValue(Xe);s={...s,fastScrollSensitivity:e}}Object.keys(s).length>0&&e.updateOptions(s)})),this.contextKeyService.onDidChangeContext((t=>{t.affectsSome(d)&&e.updateOptions({typeNavigationMode:i()})}))),this.navigator=new ct(e,{configurationService:r,...t}),this.disposables.push(this.navigator)}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables=(0,a.AS)(this.disposables)}};yt=_e([ve(4,he.fN),ve(5,be),ve(6,le.pG)],yt);me.O.as(de.Fd.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,ae.kg)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Ve]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,ae.kg)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,ae.kg)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,ae.kg)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[He]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.kg)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[ze]:{type:"boolean",default:!1,description:(0,ae.kg)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[Ge]:{type:"boolean",default:!1,description:(0,ae.kg)("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[qe]:{type:"number",default:8,minimum:4,maximum:40,description:(0,ae.kg)("tree indent setting","Controls tree indentation in pixels.")},[Qe]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,ae.kg)("render tree indent guides","Controls whether the tree should render indent guides.")},[Ye]:{type:"boolean",default:!1,description:(0,ae.kg)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Ze]:{type:"number",default:1,markdownDescription:(0,ae.kg)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Xe]:{type:"number",default:5,markdownDescription:(0,ae.kg)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[je]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,ae.kg)("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,ae.kg)("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:(0,ae.kg)("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[Ke]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,ae.kg)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,ae.kg)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,ae.kg)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,ae.kg)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,ae.kg)("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and\t'workbench.list.typeNavigationMode' instead.")},[$e]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,ae.kg)("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),(0,ae.kg)("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:(0,ae.kg)("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[Je]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.kg)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[et]:{type:"boolean",default:!0,description:(0,ae.kg)("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[tt]:{type:"number",minimum:1,default:7,markdownDescription:(0,ae.kg)("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when `#workbench.tree.enableStickyScroll#` is enabled.")},[Ue]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:(0,ae.kg)("typeNavigationMode2","Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}})},18801:(e,t,i)=>{"use strict";i.d(t,{$b:()=>a,Cr:()=>h,Dk:()=>c,rr:()=>r});var n=i(41234),s=i(5662),o=i(32848);const r=(0,i(63591).u1)("logService");var a;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(a||(a={}));const l=a.Info;class d extends s.jG{constructor(){super(...arguments),this.level=l,this._onDidChangeLogLevel=this._register(new n.vl),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==a.Off&&this.level<=e}}class h extends d{constructor(e=l,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(a.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(a.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(a.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(a.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(a.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}}class c extends d{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}new o.N1("logLevel",function(e){switch(e){case a.Trace:return"trace";case a.Debug:return"debug";case a.Info:return"info";case a.Warning:return"warn";case a.Error:return"error";case a.Off:return"off"}}(a.Info))},75147:(e,t,i)=>{"use strict";i.d(t,{DR:()=>l,cj:()=>n,oc:()=>s});var n,s,o=i(42291),r=i(31629),a=i(63591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(n||(n={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,r.kg)("sev.error","Error"),t[e.Warning]=(0,r.kg)("sev.warning","Warning"),t[e.Info]=(0,r.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case o.A.Error:return e.Error;case o.A.Warning:return e.Warning;case o.A.Info:return e.Info;case o.A.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return o.A.Error;case e.Warning:return o.A.Warning;case e.Info:return o.A.Info;case e.Hint:return o.A.Ignore}}}(n||(n={})),function(e){const t="";function i(e,i){const s=[t];return e.source?s.push(e.source.replace("\xa6","\\\xa6")):s.push(t),e.code?"string"===typeof e.code?s.push(e.code.replace("\xa6","\\\xa6")):s.push(e.code.value.replace("\xa6","\\\xa6")):s.push(t),void 0!==e.severity&&null!==e.severity?s.push(n.toString(e.severity)):s.push(t),e.message&&i?s.push(e.message.replace("\xa6","\\\xa6")):s.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?s.push(e.startLineNumber.toString()):s.push(t),void 0!==e.startColumn&&null!==e.startColumn?s.push(e.startColumn.toString()):s.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?s.push(e.endLineNumber.toString()):s.push(t),void 0!==e.endColumn&&null!==e.endColumn?s.push(e.endColumn.toString()):s.push(t),s.push(t),s.join("\xa6")}e.makeKey=function(e){return i(e,!0)},e.makeKeyOptionalMessage=i}(s||(s={}));const l=(0,a.u1)("markerService")},58591:(e,t,i)=>{"use strict";i.d(t,{AI:()=>o,Kz:()=>a,Ot:()=>r});var n=i(42291),s=i(63591),o=n.A;const r=(0,s.u1)("notificationService");class a{}},49099:(e,t,i)=>{"use strict";i.d(t,{C:()=>n,e:()=>s});const n=(0,i(63591).u1)("openerService");function s(e){let t;const i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},73823:(e,t,i)=>{"use strict";i.d(t,{G5:()=>s,N8:()=>r,ke:()=>o});var n=i(63591);const s=(0,n.u1)("progressService");Object.freeze({total(){},worked(){},done(){}});class o{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}o.None=Object.freeze({report(){}});const r=(0,n.u1)("editorProgressService")},71597:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>a,aJ:()=>n});var n,s=i(25890),o=i(5662),r=i(46359);!function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(n||(n={}));const a={Quickaccess:"workbench.contributions.quickaccess"};r.O.add(a.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort(((e,t)=>t.prefix.length-e.prefix.length)),(0,o.s)((()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)}))}getQuickAccessProviders(){return(0,s.Yc)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find((t=>e.startsWith(t.prefix)))||void 0||this.defaultProvider}})},51467:(e,t,i)=>{"use strict";i.d(t,{C1:()=>r,GK:()=>a,Ym:()=>s,kF:()=>o});var n=i(63591);const s={ctrlCmd:!1,alt:!1};var o,r;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(o||(o={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(r||(r={}));new class{constructor(e){this.options=e}};const a=(0,n.u1)("quickInputService")},46359:(e,t,i)=>{"use strict";i.d(t,{O:()=>o});var n=i(66782),s=i(631);const o=new class{constructor(){this.data=new Map}add(e,t){n.ok(s.Kg(e)),n.ok(s.Gv(t)),n.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},9711:(e,t,i)=>{"use strict";i.d(t,{CS:()=>p,pc:()=>_,LP:()=>m});var n,s,o=i(41234),r=i(5662),a=i(631),l=i(90766),d=i(908);!function(e){e[e.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",e[e.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"}(n||(n={})),function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(s||(s={}));class h extends r.jG{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new o.fV),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=s.None,this.cache=new Map,this.flushDelayer=this._register(new l.Th(h.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal((e=>this.onDidChangeItemsExternal(e))))}onDidChangeItemsExternal(e){var t,i;this._onDidChangeStorage.pause();try{null===(t=e.changed)||void 0===t||t.forEach(((e,t)=>this.acceptExternal(t,e))),null===(i=e.deleted)||void 0===i||i.forEach((e=>this.acceptExternal(e,void 0)))}finally{this._onDidChangeStorage.resume()}}acceptExternal(e,t){if(this.state===s.Closed)return;let i=!1;if((0,a.z)(t))i=this.cache.delete(e);else{this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0)}i&&this._onDidChangeStorage.fire({key:e,external:!0})}get(e,t){const i=this.cache.get(e);return(0,a.z)(i)?t:i}getBoolean(e,t){const i=this.get(e);return(0,a.z)(i)?t:"true"===i}getNumber(e,t){const i=this.get(e);return(0,a.z)(i)?t:parseInt(i,10)}async set(e,t,i=!1){if(this.state===s.Closed)return;if((0,a.z)(t))return this.delete(e,i);const n=(0,a.Gv)(t)||Array.isArray(t)?(0,d.As)(t):String(t);return this.cache.get(e)!==n?(this.cache.set(e,n),this.pendingInserts.set(e,n),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire({key:e,external:i}),this.doFlush()):void 0}async delete(e,t=!1){if(this.state===s.Closed)return;return this.cache.delete(e)?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire({key:e,external:t}),this.doFlush()):void 0}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally((()=>{var e;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)null===(e=this.whenFlushedCallbacks.pop())||void 0===e||e()}))}async doFlush(e){return this.options.hint===n.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger((()=>this.flushPending()),e)}}h.DEFAULT_FLUSH_DELAY=100;class c{constructor(){this.onDidChangeItemsExternal=o.Jh.None,this.items=new Map}async updateItems(e){var t,i;null===(t=e.insert)||void 0===t||t.forEach(((e,t)=>this.items.set(t,e))),null===(i=e.delete)||void 0===i||i.forEach((e=>this.items.delete(e)))}}var u=i(63591);const g="__$__targetStorageMarker",p=(0,u.u1)("storageService");var m;!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(m||(m={}));class f extends r.jG{constructor(e={flushInterval:f.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new o.fV),this._onDidChangeTarget=this._register(new o.fV),this._onWillSaveState=this._register(new o.vl),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(e,t,i){return o.Jh.filter(this._onDidChangeValue.event,(i=>i.scope===e&&(void 0===t||i.key===t)),i)}emitDidChangeValue(e,t){const{key:i,external:n}=t;if(i===g){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:i,target:this.getKeyTargets(e)[i],external:n})}get(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getNumber(e,i)}store(e,t,i,n,s=!1){(0,a.z)(t)?this.remove(e,i,s):this.withPausedEmitters((()=>{var o;this.updateKeyTarget(e,i,n),null===(o=this.getStorage(i))||void 0===o||o.set(e,t,s)}))}remove(e,t,i=!1){this.withPausedEmitters((()=>{var n;this.updateKeyTarget(e,t,void 0),null===(n=this.getStorage(t))||void 0===n||n.delete(e,i)}))}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i,n=!1){var s,o;const r=this.getKeyTargets(t);"number"===typeof i?r[e]!==i&&(r[e]=i,null===(s=this.getStorage(t))||void 0===s||s.set(g,JSON.stringify(r),n)):"number"===typeof r[e]&&(delete r[e],null===(o=this.getStorage(t))||void 0===o||o.set(g,JSON.stringify(r),n))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.getStorage(e);return t?function(e){const t=e.get(g);if(t)try{return JSON.parse(t)}catch(i){}return Object.create(null)}(t):Object.create(null)}}f.DEFAULT_FLUSH_INTERVAL=6e4;class _ extends f{constructor(){super(),this.applicationStorage=this._register(new h(new c,{hint:n.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new h(new c,{hint:n.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new h(new c,{hint:n.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage((e=>this.emitDidChangeValue(1,e)))),this._register(this.profileStorage.onDidChangeStorage((e=>this.emitDidChangeValue(0,e)))),this._register(this.applicationStorage.onDidChangeStorage((e=>this.emitDidChangeValue(-1,e))))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},90651:(e,t,i)=>{"use strict";i.d(t,{k:()=>n});const n=(0,i(63591).u1)("telemetryService")},19070:(e,t,i)=>{"use strict";i.d(t,{Dk:()=>h,IN:()=>u,RE:()=>p,XS:()=>m,cv:()=>r,ho:()=>d,ir:()=>o,m$:()=>c,mk:()=>l,oJ:()=>a,t8:()=>g});var n=i(85845),s=i(47661);const o={keybindingLabelBackground:(0,n.GuP)(n.HDX),keybindingLabelForeground:(0,n.GuP)(n.eUu),keybindingLabelBorder:(0,n.GuP)(n.zUX),keybindingLabelBottomBorder:(0,n.GuP)(n.Qfh),keybindingLabelShadow:(0,n.GuP)(n.f9l)},r={buttonForeground:(0,n.GuP)(n.G_h),buttonSeparator:(0,n.GuP)(n.Q1$),buttonBackground:(0,n.GuP)(n.XJc),buttonHoverBackground:(0,n.GuP)(n.T9h),buttonSecondaryForeground:(0,n.GuP)(n.Inn),buttonSecondaryBackground:(0,n.GuP)(n.xOA),buttonSecondaryHoverBackground:(0,n.GuP)(n.nZG),buttonBorder:(0,n.GuP)(n.raQ)},a={progressBarBackground:(0,n.GuP)(n.BTi)},l={inputActiveOptionBorder:(0,n.GuP)(n.uNK),inputActiveOptionForeground:(0,n.GuP)(n.$$0),inputActiveOptionBackground:(0,n.GuP)(n.c1f)},d=((0,n.GuP)(n.OcU),(0,n.GuP)(n.C5U),(0,n.GuP)(n.t0B),(0,n.GuP)(n.CgL),(0,n.GuP)(n.FiB),(0,n.GuP)(n.f9l),(0,n.GuP)(n.b1q),(0,n.GuP)(n.tYX),(0,n.GuP)(n.JPj),(0,n.GuP)(n.bNw),(0,n.GuP)(n.vwp),{inputBackground:(0,n.GuP)(n.L4c),inputForeground:(0,n.GuP)(n.cws),inputBorder:(0,n.GuP)(n.Zgs),inputValidationInfoBorder:(0,n.GuP)(n.YSW),inputValidationInfoBackground:(0,n.GuP)(n.I$A),inputValidationInfoForeground:(0,n.GuP)(n.L9Z),inputValidationWarningBorder:(0,n.GuP)(n.C1n),inputValidationWarningBackground:(0,n.GuP)(n.ULt),inputValidationWarningForeground:(0,n.GuP)(n.T5N),inputValidationErrorBorder:(0,n.GuP)(n.eYZ),inputValidationErrorBackground:(0,n.GuP)(n._$n),inputValidationErrorForeground:(0,n.GuP)(n.h9z)}),h={listFilterWidgetBackground:(0,n.GuP)(n.pnl),listFilterWidgetOutline:(0,n.GuP)(n.fiM),listFilterWidgetNoMatchesOutline:(0,n.GuP)(n.P9Z),listFilterWidgetShadow:(0,n.GuP)(n.H8q),inputBoxStyles:d,toggleStyles:l},c={badgeBackground:(0,n.GuP)(n.WMx),badgeForeground:(0,n.GuP)(n.zRE),badgeBorder:(0,n.GuP)(n.b1q)},u=((0,n.GuP)(n.vV$),(0,n.GuP)(n.mc0),(0,n.GuP)(n.etE),(0,n.GuP)(n.etE),(0,n.GuP)(n.sAS),{listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,n.GuP)(n.VFX),listFocusForeground:(0,n.GuP)(n.efJ),listFocusOutline:(0,n.GuP)(n.p7Y),listActiveSelectionBackground:(0,n.GuP)(n.Rjz),listActiveSelectionForeground:(0,n.GuP)(n.GVV),listActiveSelectionIconForeground:(0,n.GuP)(n.fED),listFocusAndSelectionOutline:(0,n.GuP)(n.gtq),listFocusAndSelectionBackground:(0,n.GuP)(n.Rjz),listFocusAndSelectionForeground:(0,n.GuP)(n.GVV),listInactiveSelectionBackground:(0,n.GuP)(n.uNx),listInactiveSelectionIconForeground:(0,n.GuP)(n.C9U),listInactiveSelectionForeground:(0,n.GuP)(n.f4y),listInactiveFocusBackground:(0,n.GuP)(n.CQ3),listInactiveFocusOutline:(0,n.GuP)(n.ijf),listHoverBackground:(0,n.GuP)(n.lO1),listHoverForeground:(0,n.GuP)(n.QRv),listDropOverBackground:(0,n.GuP)(n.Yoe),listDropBetweenBackground:(0,n.GuP)(n.yIp),listSelectionOutline:(0,n.GuP)(n.buw),listHoverOutline:(0,n.GuP)(n.buw),treeIndentGuidesStroke:(0,n.GuP)(n.U4U),treeInactiveIndentGuidesStroke:(0,n.GuP)(n.pft),tableColumnsBorder:(0,n.GuP)(n.k5u),tableOddRowsBackgroundColor:(0,n.GuP)(n.sbQ)});function g(e){return function(e,t){const i={...t};for(const s in e){const t=e[s];i[s]=void 0!==t?(0,n.GuP)(t):void 0}return i}(e,u)}const p={selectBackground:(0,n.GuP)(n.rvE),selectListBackground:(0,n.GuP)(n.lWP),selectForeground:(0,n.GuP)(n.yqq),decoratorRightForeground:(0,n.GuP)(n.NBf),selectBorder:(0,n.GuP)(n.HcB),focusBorder:(0,n.GuP)(n.tAP),listFocusBackground:(0,n.GuP)(n.AlL),listInactiveSelectionIconForeground:(0,n.GuP)(n.c7i),listFocusForeground:(0,n.GuP)(n.nH),listFocusOutline:(0,n.HP_)(n.buw,s.Q1.transparent.toString()),listHoverBackground:(0,n.GuP)(n.lO1),listHoverForeground:(0,n.GuP)(n.QRv),listHoverOutline:(0,n.GuP)(n.buw),selectListBorder:(0,n.GuP)(n.sIe),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropOverBackground:void 0,listDropBetweenBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0},m={shadowColor:(0,n.GuP)(n.f9l),borderColor:(0,n.GuP)(n.g$2),foregroundColor:(0,n.GuP)(n.dd_),backgroundColor:(0,n.GuP)(n.c6Y),selectionForegroundColor:(0,n.GuP)(n.pmr),selectionBackgroundColor:(0,n.GuP)(n.Ux$),selectionBorderColor:(0,n.GuP)(n.SNb),separatorColor:(0,n.GuP)(n.D7X),scrollbarShadow:(0,n.GuP)(n.bXl),scrollbarSliderBackground:(0,n.GuP)(n.gnV),scrollbarSliderHoverBackground:(0,n.GuP)(n.cI_),scrollbarSliderActiveBackground:(0,n.GuP)(n.mhZ)}},85845:(e,t,i)=>{"use strict";i.d(t,{FdG:()=>u,buw:()=>N,GuP:()=>h,Bbc:()=>d,HP_:()=>c,WMx:()=>I,zRE:()=>M,sAS:()=>Le,vV$:()=>ke,etE:()=>xe,mc0:()=>Se,XJc:()=>mt,raQ:()=>_t,G_h:()=>gt,T9h:()=>ft,xOA:()=>bt,Inn:()=>vt,nZG:()=>Ct,Q1$:()=>pt,OcU:()=>yt,C5U:()=>St,t0B:()=>wt,b1q:()=>E,EY1:()=>pe,ZEf:()=>me,Gj6:()=>fe,ld8:()=>ve,$BZ:()=>be,GNm:()=>_e,Ztu:()=>Z,YtV:()=>B,AN$:()=>U,Rbi:()=>j,Ubg:()=>ie,ECk:()=>ne,S5J:()=>se,By2:()=>W,i61:()=>Y,WfR:()=>oe,oZ8:()=>re,tan:()=>ee,IIb:()=>Q,pOz:()=>q,WL6:()=>le,P6i:()=>ae,B2L:()=>ue,sjA:()=>ce,_pU:()=>he,HwT:()=>de,seu:()=>X,rm4:()=>J,QwA:()=>te,whs:()=>K,Stt:()=>$,Hng:()=>G,CgL:()=>V,sIe:()=>z,FiB:()=>H,tAP:()=>D,CU6:()=>x,t4B:()=>L,c1f:()=>Xe,uNK:()=>Ze,$$0:()=>Je,L4c:()=>qe,Zgs:()=>Ye,cws:()=>Qe,_$n:()=>rt,eYZ:()=>lt,h9z:()=>at,I$A:()=>et,YSW:()=>it,L9Z:()=>tt,ULt:()=>nt,C1n:()=>ot,T5N:()=>st,HDX:()=>kt,zUX:()=>Lt,Qfh:()=>Dt,eUu:()=>xt,Rjz:()=>Mt,GVV:()=>At,fED:()=>Rt,yIp:()=>jt,Yoe:()=>zt,pnl:()=>Qt,P9Z:()=>Zt,fiM:()=>Yt,H8q:()=>Xt,gtq:()=>It,VFX:()=>Et,efJ:()=>Nt,eMz:()=>Kt,p7Y:()=>Tt,QI5:()=>Ut,lO1:()=>Vt,QRv:()=>Ht,CQ3:()=>Bt,ijf:()=>Wt,uNx:()=>Ot,f4y:()=>Pt,C9U:()=>Ft,c6Y:()=>oi,g$2:()=>ni,dd_:()=>si,Ux$:()=>ai,SNb:()=>li,pmr:()=>ri,D7X:()=>di,ILr:()=>Ge,yLC:()=>Ke,AjU:()=>Ve,K1Z:()=>$e,KoI:()=>je,yr0:()=>ze,Xp1:()=>He,uMG:()=>Ue,yLr:()=>v,fAP:()=>Oe,z5H:()=>Pe,iwL:()=>pi,NBf:()=>gi,tYX:()=>Fe,bNw:()=>We,JPj:()=>Be,BTi:()=>F,ELA:()=>hi,HJZ:()=>ci,AlL:()=>vi,nH:()=>fi,c7i:()=>_i,er1:()=>ui,x1A:()=>p,bXl:()=>A,mhZ:()=>P,gnV:()=>R,cI_:()=>O,rvE:()=>dt,HcB:()=>ut,yqq:()=>ct,lWP:()=>ht,k5u:()=>ti,sbQ:()=>ii,vwp:()=>T,JO0:()=>_,pft:()=>ei,U4U:()=>Jt,DSL:()=>ye,f9l:()=>Ce});var n=i(66782),s=i(90766),o=i(47661),r=i(41234),a=i(78748),l=i(46359);function d(e){return`--vscode-${e.replace(/\./g,"-")}`}function h(e){return`var(${d(e)})`}function c(e,t){return`var(${d(e)}, ${t})`}const u={ColorContribution:"base.contributions.colors"};const g=new class{constructor(){this._onDidChangeSchema=new r.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,n=!1,s){const o={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:s};this.colorsById[e]=o;const r={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return s&&(r.deprecationMessage=s),n&&(r.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",r.patternErrorMessage="This color must be transparent or it will obscure content"),this.colorSchema.properties[e]=r,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i&&i.defaults){return C(i.defaults[t.type],t)}}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const i=-1===e.indexOf(".")?0:1,n=-1===t.indexOf(".")?0:1;return i!==n?i-n:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function p(e,t,i,n,s){return g.registerColor(e,t,i,n,s)}function m(e,t){return{op:0,value:e,factor:t}}function f(e,t){return{op:1,value:e,factor:t}}function _(e,t){return{op:2,value:e,factor:t}}function v(...e){return{op:4,values:e}}function b(e,t,i,n){return{op:5,value:e,background:t,factor:i,transparency:n}}function C(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?o.Q1.fromHex(e):t.getColor(e):e instanceof o.Q1?e:"object"===typeof e?function(e,t){var i,s,r,a;switch(e.op){case 0:return null===(i=C(e.value,t))||void 0===i?void 0:i.darken(e.factor);case 1:return null===(s=C(e.value,t))||void 0===s?void 0:s.lighten(e.factor);case 2:return null===(r=C(e.value,t))||void 0===r?void 0:r.transparent(e.factor);case 3:{const i=C(e.background,t);return i?null===(a=C(e.value,t))||void 0===a?void 0:a.makeOpaque(i):C(e.value,t)}case 4:for(const i of e.values){const e=C(i,t);if(e)return e}return;case 6:return C(t.defines(e.if)?e.then:e.else,t);case 5:{const i=C(e.value,t);if(!i)return;const n=C(e.background,t);return n?i.isDarkerThan(n)?o.Q1.getLighterColor(i,n,e.factor).transparent(e.transparency):o.Q1.getDarkerColor(i,n,e.factor).transparent(e.transparency):i.transparent(e.factor*e.transparency)}default:throw(0,n.xb)(e)}}(e,t):void 0}l.O.add(u.ColorContribution,g);const y="vscode://schemas/workbench-colors",w=l.O.as(a.F.JSONContribution);w.registerSchema(y,g.getColorSchema());const S=new s.uC((()=>w.notifySchemaChanged(y)),200);g.onDidChangeSchema((()=>{S.isScheduled()||S.schedule()}));var k=i(31629);const x=p("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},k.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),L=(p("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},k.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),p("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},k.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),p("descriptionForeground",{light:"#717171",dark:_(x,.7),hcDark:_(x,.7),hcLight:_(x,.7)},k.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),p("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},k.kg("iconForeground","The default color for icons in the workbench."))),D=p("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},k.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),E=p("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},k.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),N=p("contrastActiveBorder",{light:null,dark:null,hcDark:D,hcLight:D},k.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),T=(p("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},k.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),p("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},k.kg("textLinkForeground","Foreground color for links in text."))),I=(p("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},k.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),p("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:o.Q1.black,hcLight:"#292929"},k.kg("textSeparatorForeground","Color for text separators.")),p("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},k.kg("textPreformatForeground","Foreground color for preformatted text segments.")),p("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},k.kg("textPreformatBackground","Background color for preformatted text segments.")),p("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},k.kg("textBlockQuoteBackground","Background color for block quotes in text.")),p("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:o.Q1.white,hcLight:"#292929"},k.kg("textBlockQuoteBorder","Border color for block quotes in text.")),p("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:o.Q1.black,hcLight:"#F2F2F2"},k.kg("textCodeBlockBackground","Background color for code blocks in text.")),p("sash.hoverBorder",{dark:D,light:D,hcDark:D,hcLight:D},k.kg("sashActiveBorder","Border color of active sashes.")),p("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:o.Q1.black,hcLight:"#0F4A85"},k.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),M=p("badge.foreground",{dark:o.Q1.white,light:"#333",hcDark:o.Q1.white,hcLight:o.Q1.white},k.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),A=p("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},k.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),R=p("scrollbarSlider.background",{dark:o.Q1.fromHex("#797979").transparent(.4),light:o.Q1.fromHex("#646464").transparent(.4),hcDark:_(E,.6),hcLight:_(E,.4)},k.kg("scrollbarSliderBackground","Scrollbar slider background color.")),O=p("scrollbarSlider.hoverBackground",{dark:o.Q1.fromHex("#646464").transparent(.7),light:o.Q1.fromHex("#646464").transparent(.7),hcDark:_(E,.8),hcLight:_(E,.8)},k.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),P=p("scrollbarSlider.activeBackground",{dark:o.Q1.fromHex("#BFBFBF").transparent(.4),light:o.Q1.fromHex("#000000").transparent(.6),hcDark:E,hcLight:E},k.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),F=p("progressBar.background",{dark:o.Q1.fromHex("#0E70C0"),light:o.Q1.fromHex("#0E70C0"),hcDark:E,hcLight:E},k.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),B=p("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:o.Q1.black,hcLight:o.Q1.white},k.kg("editorBackground","Editor background color.")),W=p("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:o.Q1.white,hcLight:x},k.kg("editorForeground","Editor default foreground color.")),V=(p("editorStickyScroll.background",{light:B,dark:B,hcDark:B,hcLight:B},k.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),p("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:o.Q1.fromHex("#0F4A85").transparent(.1)},k.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),p("editorStickyScroll.border",{dark:null,light:null,hcDark:E,hcLight:E},k.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),p("editorStickyScroll.shadow",{dark:A,light:A,hcDark:A,hcLight:A},k.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),p("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:o.Q1.white},k.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),H=p("editorWidget.foreground",{dark:x,light:x,hcDark:x,hcLight:x},k.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),z=p("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:E,hcLight:E},k.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),j=(p("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},k.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),p("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),p("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},k.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),U=p("editorError.border",{dark:null,light:null,hcDark:o.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},k.kg("errorBorder","If set, color of double underlines for errors in the editor.")),K=p("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),G=p("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},k.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),$=p("editorWarning.border",{dark:null,light:null,hcDark:o.Q1.fromHex("#FFCC00").transparent(.8),hcLight:o.Q1.fromHex("#FFCC00").transparent(.8)},k.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),q=(p("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),p("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},k.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),Q=p("editorInfo.border",{dark:null,light:null,hcDark:o.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},k.kg("infoBorder","If set, color of double underlines for infos in the editor.")),Y=p("editorHint.foreground",{dark:o.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},k.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Z=(p("editorHint.border",{dark:null,light:null,hcDark:o.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},k.kg("hintBorder","If set, color of double underlines for hints in the editor.")),p("editorLink.activeForeground",{dark:"#4E94CE",light:o.Q1.blue,hcDark:o.Q1.cyan,hcLight:"#292929"},k.kg("activeLinkForeground","Color of active links."))),X=p("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},k.kg("editorSelectionBackground","Color of the editor selection.")),J=p("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:o.Q1.white},k.kg("editorSelectionForeground","Color of the selected text for high contrast.")),ee=p("editor.inactiveSelectionBackground",{light:_(X,.5),dark:_(X,.5),hcDark:_(X,.7),hcLight:_(X,.5)},k.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),te=p("editor.selectionHighlightBackground",{light:b(X,B,.3,.6),dark:b(X,B,.3,.6),hcDark:null,hcLight:null},k.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),ie=(p("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:N,hcLight:N},k.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),p("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},k.kg("editorFindMatch","Color of the current search match.")),p("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},k.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),ne=(p("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},k.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),p("editor.findMatchBorder",{light:null,dark:null,hcDark:N,hcLight:N},k.kg("editorFindMatchBorder","Border color of the current search match.")),p("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:N,hcLight:N},k.kg("findMatchHighlightBorder","Border color of the other search matches."))),se=p("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:_(N,.4),hcLight:_(N,.4)},k.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),oe=(p("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},k.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),p("editorHoverWidget.background",{light:V,dark:V,hcDark:V,hcLight:V},k.kg("hoverBackground","Background color of the editor hover."))),re=(p("editorHoverWidget.foreground",{light:H,dark:H,hcDark:H,hcLight:H},k.kg("hoverForeground","Foreground color of the editor hover.")),p("editorHoverWidget.border",{light:z,dark:z,hcDark:z,hcLight:z},k.kg("hoverBorder","Border color of the editor hover."))),ae=(p("editorHoverWidget.statusBarBackground",{dark:f(oe,.2),light:m(oe,.05),hcDark:V,hcLight:V},k.kg("statusBarBackground","Background color of the editor hover status bar.")),p("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:o.Q1.white,hcLight:o.Q1.black},k.kg("editorInlayHintForeground","Foreground color of inline hints"))),le=p("editorInlayHint.background",{dark:_(I,.1),light:_(I,.1),hcDark:_(o.Q1.white,.1),hcLight:_(I,.1)},k.kg("editorInlayHintBackground","Background color of inline hints")),de=p("editorInlayHint.typeForeground",{dark:ae,light:ae,hcDark:ae,hcLight:ae},k.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),he=p("editorInlayHint.typeBackground",{dark:le,light:le,hcDark:le,hcLight:le},k.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),ce=p("editorInlayHint.parameterForeground",{dark:ae,light:ae,hcDark:ae,hcLight:ae},k.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),ue=p("editorInlayHint.parameterBackground",{dark:le,light:le,hcDark:le,hcLight:le},k.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),ge=p("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},k.kg("editorLightBulbForeground","The color used for the lightbulb actions icon.")),pe=(p("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},k.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),p("editorLightBulbAi.foreground",{dark:ge,light:ge,hcDark:ge,hcLight:ge},k.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),p("editor.snippetTabstopHighlightBackground",{dark:new o.Q1(new o.bU(124,124,124,.3)),light:new o.Q1(new o.bU(10,50,100,.2)),hcDark:new o.Q1(new o.bU(124,124,124,.3)),hcLight:new o.Q1(new o.bU(10,50,100,.2))},k.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),p("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),p("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),p("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new o.Q1(new o.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},k.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new o.Q1(new o.bU(155,185,85,.2))),me=new o.Q1(new o.bU(255,0,0,.2)),fe=p("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},k.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),_e=p("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},k.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),ve=(p("diffEditor.insertedLineBackground",{dark:pe,light:pe,hcDark:null,hcLight:null},k.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),p("diffEditor.removedLineBackground",{dark:me,light:me,hcDark:null,hcLight:null},k.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),p("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),p("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),p("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content."))),be=p("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),Ce=(p("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},k.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),p("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},k.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),p("diffEditor.border",{dark:null,light:null,hcDark:E,hcLight:E},k.kg("diffEditorBorder","Border color between the two text editors.")),p("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},k.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),p("diffEditor.unchangedRegionBackground",{dark:"sideBar.background",light:"sideBar.background",hcDark:"sideBar.background",hcLight:"sideBar.background"},k.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),p("diffEditor.unchangedRegionForeground",{dark:"foreground",light:"foreground",hcDark:"foreground",hcLight:"foreground"},k.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),p("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},k.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),p("widget.shadow",{dark:_(o.Q1.black,.36),light:_(o.Q1.black,.16),hcDark:null,hcLight:null},k.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),ye=p("widget.border",{dark:null,light:null,hcDark:E,hcLight:E},k.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),we=p("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},k.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),Se=(p("toolbar.hoverOutline",{dark:null,light:null,hcDark:N,hcLight:N},k.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),p("toolbar.activeBackground",{dark:f(we,.1),light:m(we,.1),hcDark:null,hcLight:null},k.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),p("breadcrumb.foreground",{light:_(x,.8),dark:_(x,.8),hcDark:_(x,.8),hcLight:_(x,.8)},k.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items."))),ke=p("breadcrumb.background",{light:B,dark:B,hcDark:B,hcLight:B},k.kg("breadcrumbsBackground","Background color of breadcrumb items.")),xe=p("breadcrumb.focusForeground",{light:m(x,.2),dark:f(x,.1),hcDark:f(x,.1),hcLight:f(x,.1)},k.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),Le=p("breadcrumb.activeSelectionForeground",{light:m(x,.2),dark:f(x,.1),hcDark:f(x,.1),hcLight:f(x,.1)},k.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),De=(p("breadcrumbPicker.background",{light:V,dark:V,hcDark:V,hcLight:V},k.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),o.Q1.fromHex("#40C8AE").transparent(.5)),Ee=o.Q1.fromHex("#40A6FF").transparent(.5),Ne=o.Q1.fromHex("#606060").transparent(.4),Te=.4,Ie=p("merge.currentHeaderBackground",{dark:De,light:De,hcDark:null,hcLight:null},k.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Me=(p("merge.currentContentBackground",{dark:_(Ie,Te),light:_(Ie,Te),hcDark:_(Ie,Te),hcLight:_(Ie,Te)},k.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),p("merge.incomingHeaderBackground",{dark:Ee,light:Ee,hcDark:null,hcLight:null},k.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),Ae=(p("merge.incomingContentBackground",{dark:_(Me,Te),light:_(Me,Te),hcDark:_(Me,Te),hcLight:_(Me,Te)},k.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),p("merge.commonHeaderBackground",{dark:Ne,light:Ne,hcDark:null,hcLight:null},k.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),Re=(p("merge.commonContentBackground",{dark:_(Ae,Te),light:_(Ae,Te),hcDark:_(Ae,Te),hcLight:_(Ae,Te)},k.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),p("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},k.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),Oe=(p("editorOverviewRuler.currentContentForeground",{dark:_(Ie,1),light:_(Ie,1),hcDark:Re,hcLight:Re},k.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),p("editorOverviewRuler.incomingContentForeground",{dark:_(Me,1),light:_(Me,1),hcDark:Re,hcLight:Re},k.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),p("editorOverviewRuler.commonContentForeground",{dark:_(Ae,1),light:_(Ae,1),hcDark:Re,hcLight:Re},k.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),p("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},k.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),Pe=p("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},k.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Fe=p("problemsErrorIcon.foreground",{dark:j,light:j,hcDark:j,hcLight:j},k.kg("problemsErrorIconForeground","The color used for the problems error icon.")),Be=p("problemsWarningIcon.foreground",{dark:G,light:G,hcDark:G,hcLight:G},k.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),We=p("problemsInfoIcon.foreground",{dark:q,light:q,hcDark:q,hcLight:q},k.kg("problemsInfoIconForeground","The color used for the problems info icon.")),Ve=p("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},k.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),He=p("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},k.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),ze=p("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},k.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),je=p("minimap.infoHighlight",{dark:q,light:q,hcDark:Q,hcLight:Q},k.kg("minimapInfo","Minimap marker color for infos.")),Ue=p("minimap.warningHighlight",{dark:G,light:G,hcDark:$,hcLight:$},k.kg("overviewRuleWarning","Minimap marker color for warnings.")),Ke=p("minimap.errorHighlight",{dark:new o.Q1(new o.bU(255,18,18,.7)),light:new o.Q1(new o.bU(255,18,18,.7)),hcDark:new o.Q1(new o.bU(255,50,50,1)),hcLight:"#B5200D"},k.kg("minimapError","Minimap marker color for errors.")),Ge=p("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("minimapBackground","Minimap background color.")),$e=p("minimap.foregroundOpacity",{dark:o.Q1.fromHex("#000f"),light:o.Q1.fromHex("#000f"),hcDark:o.Q1.fromHex("#000f"),hcLight:o.Q1.fromHex("#000f")},k.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),qe=(p("minimapSlider.background",{light:_(R,.5),dark:_(R,.5),hcDark:_(R,.5),hcLight:_(R,.5)},k.kg("minimapSliderBackground","Minimap slider background color.")),p("minimapSlider.hoverBackground",{light:_(O,.5),dark:_(O,.5),hcDark:_(O,.5),hcLight:_(O,.5)},k.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),p("minimapSlider.activeBackground",{light:_(P,.5),dark:_(P,.5),hcDark:_(P,.5),hcLight:_(P,.5)},k.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),p("charts.foreground",{dark:x,light:x,hcDark:x,hcLight:x},k.kg("chartsForeground","The foreground color used in charts.")),p("charts.lines",{dark:_(x,.5),light:_(x,.5),hcDark:_(x,.5),hcLight:_(x,.5)},k.kg("chartsLines","The color used for horizontal lines in charts.")),p("charts.red",{dark:j,light:j,hcDark:j,hcLight:j},k.kg("chartsRed","The red color used in chart visualizations.")),p("charts.blue",{dark:q,light:q,hcDark:q,hcLight:q},k.kg("chartsBlue","The blue color used in chart visualizations.")),p("charts.yellow",{dark:G,light:G,hcDark:G,hcLight:G},k.kg("chartsYellow","The yellow color used in chart visualizations.")),p("charts.orange",{dark:Ve,light:Ve,hcDark:Ve,hcLight:Ve},k.kg("chartsOrange","The orange color used in chart visualizations.")),p("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},k.kg("chartsGreen","The green color used in chart visualizations.")),p("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},k.kg("chartsPurple","The purple color used in chart visualizations.")),p("input.background",{dark:"#3C3C3C",light:o.Q1.white,hcDark:o.Q1.black,hcLight:o.Q1.white},k.kg("inputBoxBackground","Input box background."))),Qe=p("input.foreground",{dark:x,light:x,hcDark:x,hcLight:x},k.kg("inputBoxForeground","Input box foreground.")),Ye=p("input.border",{dark:null,light:null,hcDark:E,hcLight:E},k.kg("inputBoxBorder","Input box border.")),Ze=p("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:E,hcLight:E},k.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),Xe=(p("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},k.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),p("inputOption.activeBackground",{dark:_(D,.4),light:_(D,.2),hcDark:o.Q1.transparent,hcLight:o.Q1.transparent},k.kg("inputOption.activeBackground","Background hover color of options in input fields."))),Je=p("inputOption.activeForeground",{dark:o.Q1.white,light:o.Q1.black,hcDark:x,hcLight:x},k.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),et=(p("input.placeholderForeground",{light:_(x,.5),dark:_(x,.5),hcDark:_(x,.7),hcLight:_(x,.7)},k.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),p("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:o.Q1.black,hcLight:o.Q1.white},k.kg("inputValidationInfoBackground","Input validation background color for information severity."))),tt=p("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:x},k.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),it=p("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:E,hcLight:E},k.kg("inputValidationInfoBorder","Input validation border color for information severity.")),nt=p("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:o.Q1.black,hcLight:o.Q1.white},k.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),st=p("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:x},k.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),ot=p("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:E,hcLight:E},k.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),rt=p("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:o.Q1.black,hcLight:o.Q1.white},k.kg("inputValidationErrorBackground","Input validation background color for error severity.")),at=p("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:x},k.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),lt=p("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:E,hcLight:E},k.kg("inputValidationErrorBorder","Input validation border color for error severity.")),dt=p("dropdown.background",{dark:"#3C3C3C",light:o.Q1.white,hcDark:o.Q1.black,hcLight:o.Q1.white},k.kg("dropdownBackground","Dropdown background.")),ht=p("dropdown.listBackground",{dark:null,light:null,hcDark:o.Q1.black,hcLight:o.Q1.white},k.kg("dropdownListBackground","Dropdown list background.")),ct=p("dropdown.foreground",{dark:"#F0F0F0",light:x,hcDark:o.Q1.white,hcLight:x},k.kg("dropdownForeground","Dropdown foreground.")),ut=p("dropdown.border",{dark:dt,light:"#CECECE",hcDark:E,hcLight:E},k.kg("dropdownBorder","Dropdown border.")),gt=p("button.foreground",{dark:o.Q1.white,light:o.Q1.white,hcDark:o.Q1.white,hcLight:o.Q1.white},k.kg("buttonForeground","Button foreground color.")),pt=p("button.separator",{dark:_(gt,.4),light:_(gt,.4),hcDark:_(gt,.4),hcLight:_(gt,.4)},k.kg("buttonSeparator","Button separator color.")),mt=p("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},k.kg("buttonBackground","Button background color.")),ft=p("button.hoverBackground",{dark:f(mt,.2),light:m(mt,.2),hcDark:mt,hcLight:mt},k.kg("buttonHoverBackground","Button background color when hovering.")),_t=p("button.border",{dark:E,light:E,hcDark:E,hcLight:E},k.kg("buttonBorder","Button border color.")),vt=p("button.secondaryForeground",{dark:o.Q1.white,light:o.Q1.white,hcDark:o.Q1.white,hcLight:x},k.kg("buttonSecondaryForeground","Secondary button foreground color.")),bt=p("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:o.Q1.white},k.kg("buttonSecondaryBackground","Secondary button background color.")),Ct=p("button.secondaryHoverBackground",{dark:f(bt,.2),light:m(bt,.2),hcDark:null,hcLight:null},k.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),yt=p("checkbox.background",{dark:dt,light:dt,hcDark:dt,hcLight:dt},k.kg("checkbox.background","Background color of checkbox widget.")),wt=(p("checkbox.selectBackground",{dark:V,light:V,hcDark:V,hcLight:V},k.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),p("checkbox.foreground",{dark:ct,light:ct,hcDark:ct,hcLight:ct},k.kg("checkbox.foreground","Foreground color of checkbox widget."))),St=p("checkbox.border",{dark:ut,light:ut,hcDark:ut,hcLight:ut},k.kg("checkbox.border","Border color of checkbox widget.")),kt=(p("checkbox.selectBorder",{dark:L,light:L,hcDark:L,hcLight:L},k.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),p("keybindingLabel.background",{dark:new o.Q1(new o.bU(128,128,128,.17)),light:new o.Q1(new o.bU(221,221,221,.4)),hcDark:o.Q1.transparent,hcLight:o.Q1.transparent},k.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut."))),xt=p("keybindingLabel.foreground",{dark:o.Q1.fromHex("#CCCCCC"),light:o.Q1.fromHex("#555555"),hcDark:o.Q1.white,hcLight:x},k.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),Lt=p("keybindingLabel.border",{dark:new o.Q1(new o.bU(51,51,51,.6)),light:new o.Q1(new o.bU(204,204,204,.4)),hcDark:new o.Q1(new o.bU(111,195,223)),hcLight:E},k.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),Dt=p("keybindingLabel.bottomBorder",{dark:new o.Q1(new o.bU(68,68,68,.6)),light:new o.Q1(new o.bU(187,187,187,.4)),hcDark:new o.Q1(new o.bU(111,195,223)),hcLight:x},k.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Et=p("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Nt=p("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Tt=p("list.focusOutline",{dark:D,light:D,hcDark:N,hcLight:N},k.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),It=p("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),Mt=p("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:o.Q1.fromHex("#0F4A85").transparent(.1)},k.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),At=p("list.activeSelectionForeground",{dark:o.Q1.white,light:o.Q1.white,hcDark:null,hcLight:null},k.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Rt=p("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ot=p("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:o.Q1.fromHex("#0F4A85").transparent(.1)},k.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Pt=p("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Ft=p("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Bt=p("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Wt=p("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Vt=p("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:o.Q1.white.transparent(.1),hcLight:o.Q1.fromHex("#0F4A85").transparent(.1)},k.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Ht=p("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},k.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),zt=p("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},k.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),jt=p("list.dropBetweenBackground",{dark:L,light:L,hcDark:null,hcLight:null},k.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),Ut=p("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:D,hcLight:D},k.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Kt=p("list.focusHighlightForeground",{dark:Ut,light:(Gt=Mt,$t=Ut,qt="#BBE7FF",{op:6,if:Gt,then:$t,else:qt}),hcDark:Ut,hcLight:Ut},k.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var Gt,$t,qt;p("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},k.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),p("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},k.kg("listErrorForeground","Foreground color of list items containing errors.")),p("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},k.kg("listWarningForeground","Foreground color of list items containing warnings."));const Qt=p("listFilterWidget.background",{light:m(V,0),dark:f(V,0),hcDark:V,hcLight:V},k.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Yt=p("listFilterWidget.outline",{dark:o.Q1.transparent,light:o.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},k.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Zt=p("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:E,hcLight:E},k.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Xt=p("listFilterWidget.shadow",{dark:Ce,light:Ce,hcDark:Ce,hcLight:Ce},k.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),Jt=(p("list.filterMatchBackground",{dark:ie,light:ie,hcDark:null,hcLight:null},k.kg("listFilterMatchHighlight","Background color of the filtered match.")),p("list.filterMatchBorder",{dark:ne,light:ne,hcDark:E,hcLight:N},k.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),p("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},k.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized.")),p("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},k.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides."))),ei=p("tree.inactiveIndentGuidesStroke",{dark:_(Jt,.4),light:_(Jt,.4),hcDark:_(Jt,.4),hcLight:_(Jt,.4)},k.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),ti=p("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},k.kg("tableColumnsBorder","Table border color between columns.")),ii=p("tree.tableOddRowsBackground",{dark:_(x,.04),light:_(x,.04),hcDark:null,hcLight:null},k.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),ni=p("menu.border",{dark:null,light:null,hcDark:E,hcLight:E},k.kg("menuBorder","Border color of menus.")),si=p("menu.foreground",{dark:ct,light:ct,hcDark:ct,hcLight:ct},k.kg("menuForeground","Foreground color of menu items.")),oi=p("menu.background",{dark:dt,light:dt,hcDark:dt,hcLight:dt},k.kg("menuBackground","Background color of menu items.")),ri=p("menu.selectionForeground",{dark:At,light:At,hcDark:At,hcLight:At},k.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),ai=p("menu.selectionBackground",{dark:Mt,light:Mt,hcDark:Mt,hcLight:Mt},k.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),li=p("menu.selectionBorder",{dark:null,light:null,hcDark:N,hcLight:N},k.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),di=p("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:E,hcLight:E},k.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),hi=p("quickInput.background",{dark:V,light:V,hcDark:V,hcLight:V},k.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),ci=p("quickInput.foreground",{dark:H,light:H,hcDark:H,hcLight:H},k.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),ui=p("quickInputTitle.background",{dark:new o.Q1(new o.bU(255,255,255,.105)),light:new o.Q1(new o.bU(0,0,0,.06)),hcDark:"#000000",hcLight:o.Q1.white},k.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),gi=p("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:o.Q1.white,hcLight:"#0F4A85"},k.kg("pickerGroupForeground","Quick picker color for grouping labels.")),pi=p("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:o.Q1.white,hcLight:"#0F4A85"},k.kg("pickerGroupBorder","Quick picker color for grouping borders.")),mi=p("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,k.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),fi=p("quickInputList.focusForeground",{dark:At,light:At,hcDark:At,hcLight:At},k.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),_i=p("quickInputList.focusIconForeground",{dark:Rt,light:Rt,hcDark:Rt,hcLight:Rt},k.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),vi=p("quickInputList.focusBackground",{dark:v(mi,Mt),light:v(mi,Mt),hcDark:null,hcLight:null},k.kg("quickInput.listFocusBackground","Quick picker background color for the focused item."));p("search.resultsInfoForeground",{light:x,dark:_(x,.65),hcDark:x,hcLight:x},k.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),p("searchEditor.findMatchBackground",{light:_(ie,.66),dark:_(ie,.66),hcDark:ie,hcLight:ie},k.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),p("searchEditor.findMatchBorder",{light:_(ne,.66),dark:_(ne,.66),hcDark:ne,hcLight:ne},k.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},61394:(e,t,i)=>{"use strict";i.d(t,{$_:()=>y,HT:()=>_,pU:()=>f});var n=i(90766),s=i(10350),o=i(18956),r=i(25689),a=i(41234),l=i(631),d=i(79400),h=i(31629),c=i(78748),u=i(46359);var g,p;!function(e){e.getDefinition=function(e,t){let i=e.defaults;for(;r.L.isThemeIcon(i);){const e=m.getIcon(i.id);if(!e)return;i=e.defaults}return i}}(g||(g={})),function(e){e.toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map((e=>({format:e.format,location:e.location.toString()})))}},e.fromJSONObject=function(e){const t=e=>(0,l.Kg)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every((e=>(0,l.Kg)(e.format)&&(0,l.Kg)(e.location))))return{weight:t(e.weight),style:t(e.style),src:e.src.map((e=>({format:e.format,location:d.r.parse(e.location)})))}}}(p||(p={}));const m=new class{constructor(){this._onDidChange=new a.vl,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,h.kg)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,h.kg)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${r.L.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const s=this.iconsById[e];if(s){if(i&&!s.description){s.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return s}const o={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=o;const r={$ref:"#/definitions/icons"};return n&&(r.deprecationMessage=n),i&&(r.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=r,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map((e=>this.iconsById[e]))}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;r.L.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map((e=>this.iconsById[e]));for(const s of n.filter((e=>!!e.description)).sort(e))i.push(`|<i class="${t(s)}"></i>|${s.id}|${r.L.isThemeIcon(s.defaults)?s.defaults.id:s.id}|${s.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const s of n.filter((e=>!r.L.isThemeIcon(e.defaults))).sort(e))i.push(`|<i class="${t(s)}"></i>|${s.id}|`);return i.join("\n")}};function f(e,t,i,n){return m.registerIcon(e,t,i,n)}function _(){return m}u.O.add("base.contributions.icons",m),function(){const e=(0,o.J)();for(const t in e){const i="\\"+e[t].toString(16);m.registerIcon(t,{fontCharacter:i})}}();const v="vscode://schemas/icons",b=u.O.as(c.F.JSONContribution);b.registerSchema(v,m.getIconSchema());const C=new n.uC((()=>b.notifySchemaChanged(v)),200);m.onDidChange((()=>{C.isScheduled()||C.schedule()}));const y=f("widget-close",s.W.close,(0,h.kg)("widgetClose","Icon for the close action in widgets."));f("goto-previous-location",s.W.arrowUp,(0,h.kg)("previousChangeIcon","Icon for goto previous editor location.")),f("goto-next-location",s.W.arrowDown,(0,h.kg)("nextChangeIcon","Icon for goto next editor location.")),r.L.modify(s.W.sync,"spin"),r.L.modify(s.W.loading,"spin")},86723:(e,t,i)=>{"use strict";var n;function s(e){return e===n.HIGH_CONTRAST_DARK||e===n.HIGH_CONTRAST_LIGHT}function o(e){return e===n.DARK||e===n.HIGH_CONTRAST_DARK}i.d(t,{Bb:()=>s,HD:()=>o,zM:()=>n}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(n||(n={}))},47612:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>c,Gy:()=>l,Pz:()=>h,Yf:()=>d,lR:()=>p,zy:()=>g});var n=i(41234),s=i(5662),o=i(63591),r=i(46359),a=i(86723);const l=(0,o.u1)("themeService");function d(e){return{id:e}}function h(e){switch(e){case a.zM.DARK:return"vs-dark";case a.zM.HIGH_CONTRAST_DARK:return"hc-black";case a.zM.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const c={ThemingContribution:"base.contributions.theming"};const u=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new n.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function g(e){return u.onColorThemeChange(e)}r.O.add(c.ThemingContribution,u);class p extends s.jG{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},47579:(e,t,i)=>{"use strict";i.d(t,{$D:()=>n,I_:()=>o,To:()=>s,Ym:()=>r});const n=(0,i(63591).u1)("undoRedoService");class s{constructor(e,t){this.resource=e,this.elements=t}}class o{constructor(){this.id=o._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}o._ID=0,o.None=new o;class r{constructor(){this.id=r._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}r._ID=0,r.None=new r},37227:(e,t,i)=>{"use strict";i.d(t,{A7:()=>l,Q_:()=>c,VR:()=>r,cn:()=>p,ct:()=>m,jB:()=>a,kF:()=>g,mX:()=>u});var n=i(31629),s=i(74027),o=(i(4853),i(79400));const r=(0,i(63591).u1)("contextService");function a(e){const t=e;return"string"===typeof(null===t||void 0===t?void 0:t.id)&&o.r.isUri(t.uri)}function l(e){return"string"===typeof(null===e||void 0===e?void 0:e.id)&&!a(e)&&!function(e){const t=e;return"string"===typeof(null===t||void 0===t?void 0:t.id)&&o.r.isUri(t.configPath)}(e)}const d={id:"ext-dev"},h={id:"empty-window"};function c(e,t){if("string"===typeof e||"undefined"===typeof e)return"string"===typeof e?{id:(0,s.P8)(e)}:t?d:h;const i=e;return i.configuration?{id:i.id,configPath:i.configuration}:1===i.folders.length?{id:i.id,uri:i.folders[0].uri}:{id:i.id}}class u{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const g="code-workspace",p=((0,n.kg)("codeWorkspace","Code Workspace"),"4064f6ec-cb38-4ad0-af64-ee6467e63c82");function m(e){return e.id===p}},51465:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});const n=(0,i(63591).u1)("workspaceTrustManagementService")},61850:(e,t,i)=>{"use strict";i.d(t,{IK:()=>h,bC:()=>u,RQ:()=>c,KV:()=>l});const n=new RegExp("^[$A-Z_\\s]+$");var s=i(92727);const o={},r={};class a{static getOrCreate(e){return r[e]||(r[e]=new a(e)),r[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}whenLoaded(){return this._lazyLoadPromise}load(){return this._loadingTriggered||(this._loadingTriggered=!0,o[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}}function l(e){const t=e.id;o[t]=e,s.eo.register(e);const i=a.getOrCreate(t);s.eo.setMonarchTokensProvider(t,i.whenLoaded().then((e=>e.language))),s.eo.onLanguage(t,(()=>{i.load().then((e=>{s.eo.setLanguageConfiguration(t,e.conf)}))})),i.whenLoaded().then((e=>{e.completions&&d(t,e.completions)}))}function d(e,t){const i=[];const o=s.eo[e];o&&!o.modeConfiguration.completionItems||i.push(s.eo.registerCompletionItemProvider(e,function(e,t){const i=[];for(const s in t)if(!isNaN(Number(s))){const o=`${t[s].toLowerCase()}List`;if(o in e)for(const t of e[o])i.push({label:t,filterText:n.test(t)?t.toLowerCase():t,insertText:t,kind:Number(s),range:{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1}})}return i.sort(((e,t)=>e.filterText.localeCompare(t.filterText))),{provideCompletionItems(e,t,n,s){const o=e.getWordUntilPosition(t),r={startLineNumber:t.lineNumber,startColumn:o.startColumn,endLineNumber:t.lineNumber,endColumn:o.endColumn};return{suggestions:i.map((e=>Object.assign(Object.assign({},e),{range:r})))}}}}(t,s.eo.CompletionItemKind))),o&&i.push(o.onDidChange((()=>{!function(){for(var e;i.length>0;)null===(e=i.pop())||void 0===e||e.dispose()}(),d(e,t)})))}class h{constructor(e,t,i){this._onDidChange=new s.vl,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}const c={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},u={validate:!0}},92727:(e,t,i)=>{"use strict";i.d(t,{EN:()=>n.editor,eo:()=>n.languages,vl:()=>n.Emitter});var n=i(32858)},23934:(e,t,i)=>{"use strict";var n=i(61850),s=i(92727);const o="clickhouse";(0,n.KV)({id:o,extensions:[],loader:()=>i.e(6397).then(i.bind(i,66397)).then((e=>({conf:e.conf,language:e.language,completions:e.completionLists})))});const r=new n.IK(o,n.bC,n.RQ);s.eo[o]=r;(0,n.KV)({id:"s-expression",extensions:[],loader:()=>i.e(5475).then(i.bind(i,5475))}),s.EN.defineTheme("vs",{base:"vs",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"keyword.type",foreground:"4d932d"},{token:"string.sql",foreground:"a31515"},{token:"support.function",foreground:"7a3e9d"},{token:"constant.other.color",foreground:"7a3e9d"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#EFEFEF"}}),s.EN.defineTheme("vs-dark",{base:"vs-dark",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"storage.type",foreground:"6A8759"},{token:"string.sql",foreground:"ce9178"},{token:"support.function",foreground:"9e7bb0"},{token:"constant.other.color",foreground:"9e7bb0"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#282A2E"}});i(23195);(0,n.KV)({id:"yql_ansi",extensions:[],loader:()=>i.e(2252).then(i.bind(i,22252)).then((e=>({conf:e.conf,language:e.getLanguage({ansi:!0})})))})},23195:(e,t,i)=>{"use strict";i.d(t,{l:()=>s});var n=i(61850);const s="yql";(0,n.KV)({id:s,extensions:[],loader:()=>i.e(2252).then(i.bind(i,22252)).then((e=>({conf:e.conf,language:e.getLanguage()})))})},6376:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MonacoDiffEditor:()=>d,default:()=>g,monaco:()=>n});var n=i(32858),s=i(59284);function o(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function r(){}var a=function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},a.apply(this,arguments)};function l(e){var t=e.width,i=e.height,r=e.value,l=e.defaultValue,d=e.language,h=e.theme,c=e.options,u=e.overrideServices,g=e.editorWillMount,p=e.editorDidMount,m=e.editorWillUnmount,f=e.onChange,_=e.className,v=e.original,b=e.originalUri,C=e.modifiedUri,y=(0,s.useRef)(null),w=(0,s.useRef)(null),S=(0,s.useRef)(null),k=(0,s.useRef)(null),x=o(t),L=o(i),D=(0,s.useMemo)((function(){return{width:x,height:L}}),[x,L]);return(0,s.useEffect)((function(){y.current&&(g(n),w.current=n.editor.createDiffEditor(y.current,a(a(a({},_?{extraEditorClassName:_}:{}),c),h?{theme:h}:{}),u),function(){var e=null!=r?r:l,t=null===b||void 0===b?void 0:b(n),i=null===C||void 0===C?void 0:C(n),s=t&&n.editor.getModel(t),o=i&&n.editor.getModel(i);s?(s.setValue(v),n.editor.setModelLanguage(s,d)):s=n.editor.createModel(e,d,t),o?(s.setValue(e),n.editor.setModelLanguage(o,d)):o=n.editor.createModel(e,d,i),w.current.setModel({original:s,modified:o})}(),function(){p(w.current,n);var e=w.current.getModel().modified;S.current=e.onDidChangeContent((function(t){k.current||f(e.getValue(),t)}))}())}),[]),(0,s.useEffect)((function(){w.current&&w.current.updateOptions(a(a({},_?{extraEditorClassName:_}:{}),c))}),[_,c]),(0,s.useEffect)((function(){w.current&&w.current.layout()}),[t,i]),(0,s.useEffect)((function(){if(w.current){var e=w.current.getModel(),t=e.original,i=e.modified;n.editor.setModelLanguage(t,d),n.editor.setModelLanguage(i,d)}}),[d]),(0,s.useEffect)((function(){if(w.current){var e=w.current.getModel().modified;k.current=!0,w.current.getModifiedEditor().pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:r}]),w.current.getModifiedEditor().pushUndoStop(),k.current=!1}}),[r]),(0,s.useEffect)((function(){n.editor.setTheme(h)}),[h]),(0,s.useEffect)((function(){if(w.current){var e=w.current.getModel().original;v!==e.getValue()&&e.setValue(v)}}),[v]),(0,s.useEffect)((function(){return function(){if(w.current){m(w.current,n),w.current.dispose();var e=w.current.getModel(),t=e.original,i=e.modified;t&&t.dispose(),i&&i.dispose()}S.current&&S.current.dispose()}}),[]),s.createElement("div",{ref:y,style:D,className:"react-monaco-editor-container"})}l.defaultProps={width:"100%",height:"100%",original:null,value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:r,editorDidMount:r,editorWillUnmount:r,onChange:r,className:null},l.displayName="MonacoDiffEditor";const d=l;var h=function(){return h=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},h.apply(this,arguments)},c=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(i[n[s]]=e[n[s]])}return i};function u(e){var t=e.width,i=e.height,r=e.value,a=e.defaultValue,l=e.language,d=e.theme,u=e.options,g=e.overrideServices,p=e.editorWillMount,m=e.editorDidMount,f=e.editorWillUnmount,_=e.onChange,v=e.className,b=e.uri,C=(0,s.useRef)(null),y=(0,s.useRef)(null),w=(0,s.useRef)(null),S=(0,s.useRef)(null),k=o(t),x=o(i),L=(0,s.useMemo)((function(){return{width:k,height:x}}),[k,x]);return(0,s.useEffect)((function(){var e=null!==r?r:a;if(C.current){var t=h(h({},u),p(n)||{}),i=null===b||void 0===b?void 0:b(n),s=i&&n.editor.getModel(i);s?(s.setValue(e),n.editor.setModelLanguage(s,l)):s=n.editor.createModel(e,l,i),y.current=n.editor.create(C.current,h(h(h({model:s},v?{extraEditorClassName:v}:{}),t),d?{theme:d}:{}),g),m(y.current,n),w.current=y.current.onDidChangeModelContent((function(e){S.current||_(y.current.getValue(),e)}))}}),[]),(0,s.useEffect)((function(){if(y.current){if(r===y.current.getValue())return;var e=y.current.getModel();S.current=!0,y.current.pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:r}],void 0),y.current.pushUndoStop(),S.current=!1}}),[r]),(0,s.useEffect)((function(){if(y.current){var e=y.current.getModel();n.editor.setModelLanguage(e,l)}}),[l]),(0,s.useEffect)((function(){if(y.current){u.model;var e=c(u,["model"]);y.current.updateOptions(h(h({},v?{extraEditorClassName:v}:{}),e))}}),[v,u]),(0,s.useEffect)((function(){y.current&&y.current.layout()}),[t,i]),(0,s.useEffect)((function(){n.editor.setTheme(d)}),[d]),(0,s.useEffect)((function(){return function(){y.current&&(f(y.current,n),y.current.dispose()),w.current&&w.current.dispose()}}),[]),s.createElement("div",{ref:C,style:L,className:"react-monaco-editor-container"})}u.defaultProps={width:"100%",height:"100%",value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:r,editorDidMount:r,editorWillUnmount:r,onChange:r,className:null},u.displayName="MonacoEditor";const g=u},61283:(e,t,i)=>{"use strict";i.d(t,{A:()=>E});var n=i(59284),s=i(13260),o=i.n(s),r="undefined"!==typeof window?window:null,a=null===r,l=a?void 0:r.document,d="addEventListener",h="removeEventListener",c="getBoundingClientRect",u="_a",g="_b",p="_c",m="horizontal",f=function(){return!1},_=a?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=l.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",v=function(e){return"string"===typeof e||e instanceof String},b=function(e){if(v(e)){var t=l.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},C=function(e,t,i){var n=e[t];return void 0!==n?n:i},y=function(e,t,i,n){if(t){if("end"===n)return 0;if("center"===n)return e/2}else if(i){if("start"===n)return 0;if("center"===n)return e/2}return e},w=function(e,t){var i=l.createElement("div");return i.className="gutter gutter-"+t,i},S=function(e,t,i){var n={};return v(t)?n[e]=t:n[e]=_+"("+t+"% - "+i+"px)",n},k=function(e,t){var i;return(i={})[e]=t+"px",i};const x=function(e,t){if(void 0===t&&(t={}),a)return{};var i,n,s,o,_,v,x=e;Array.from&&(x=Array.from(x));var L=b(x[0]).parentNode,D=getComputedStyle?getComputedStyle(L):null,E=D?D.flexDirection:null,N=C(t,"sizes")||x.map((function(){return 100/x.length})),T=C(t,"minSize",100),I=Array.isArray(T)?T:x.map((function(){return T})),M=C(t,"maxSize",1/0),A=Array.isArray(M)?M:x.map((function(){return M})),R=C(t,"expandToMin",!1),O=C(t,"gutterSize",10),P=C(t,"gutterAlign","center"),F=C(t,"snapOffset",30),B=Array.isArray(F)?F:x.map((function(){return F})),W=C(t,"dragInterval",1),V=C(t,"direction",m),H=C(t,"cursor",V===m?"col-resize":"row-resize"),z=C(t,"gutter",w),j=C(t,"elementStyle",S),U=C(t,"gutterStyle",k);function K(e,t,n,s){var o=j(i,t,n,s);Object.keys(o).forEach((function(t){e.style[t]=o[t]}))}function G(){return v.map((function(e){return e.size}))}function $(e){return"touches"in e?e.touches[0][n]:e[n]}function q(e){var t=v[this.a],i=v[this.b],n=t.size+i.size;t.size=e/this.size*n,i.size=n-e/this.size*n,K(t.element,t.size,this[g],t.i),K(i.element,i.size,this[p],i.i)}function Q(e){var i,n=v[this.a],s=v[this.b];this.dragging&&(i=$(e)-this.start+(this[g]-this.dragOffset),W>1&&(i=Math.round(i/W)*W),i<=n.minSize+n.snapOffset+this[g]?i=n.minSize+this[g]:i>=this.size-(s.minSize+s.snapOffset+this[p])&&(i=this.size-(s.minSize+this[p])),i>=n.maxSize-n.snapOffset+this[g]?i=n.maxSize+this[g]:i<=this.size-(s.maxSize-s.snapOffset+this[p])&&(i=this.size-(s.maxSize+this[p])),q.call(this,i),C(t,"onDrag",f)(G()))}function Y(){var e=v[this.a].element,t=v[this.b].element,n=e[c](),r=t[c]();this.size=n[i]+r[i]+this[g]+this[p],this.start=n[s],this.end=n[o]}function Z(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var i=e[_];return 0===i?null:i-=V===m?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(L);if(null===t)return e;if(I.reduce((function(e,t){return e+t}),0)>t)return e;var i=0,n=[],s=e.map((function(s,o){var r=t*s/100,a=y(O,0===o,o===e.length-1,P),l=I[o]+a;return r<l?(i+=l-r,n.push(0),l):(n.push(r-l),r)}));return 0===i?e:s.map((function(e,s){var o=e;if(i>0&&n[s]-i>0){var r=Math.min(i,n[s]-i);i-=r,o=e-r}return o/t*100}))}function X(){var e=this,i=v[e.a].element,n=v[e.b].element;e.dragging&&C(t,"onDragEnd",f)(G()),e.dragging=!1,r[h]("mouseup",e.stop),r[h]("touchend",e.stop),r[h]("touchcancel",e.stop),r[h]("mousemove",e.move),r[h]("touchmove",e.move),e.stop=null,e.move=null,i[h]("selectstart",f),i[h]("dragstart",f),n[h]("selectstart",f),n[h]("dragstart",f),i.style.userSelect="",i.style.webkitUserSelect="",i.style.MozUserSelect="",i.style.pointerEvents="",n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",l.body.style.cursor=""}function J(e){if(!("button"in e)||0===e.button){var i=this,n=v[i.a].element,s=v[i.b].element;i.dragging||C(t,"onDragStart",f)(G()),e.preventDefault(),i.dragging=!0,i.move=Q.bind(i),i.stop=X.bind(i),r[d]("mouseup",i.stop),r[d]("touchend",i.stop),r[d]("touchcancel",i.stop),r[d]("mousemove",i.move),r[d]("touchmove",i.move),n[d]("selectstart",f),n[d]("dragstart",f),s[d]("selectstart",f),s[d]("dragstart",f),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",s.style.userSelect="none",s.style.webkitUserSelect="none",s.style.MozUserSelect="none",s.style.pointerEvents="none",i.gutter.style.cursor=H,i.parent.style.cursor=H,l.body.style.cursor=H,Y.call(i),i.dragOffset=$(e)-i.end}}V===m?(i="width",n="clientX",s="left",o="right",_="clientWidth"):"vertical"===V&&(i="height",n="clientY",s="top",o="bottom",_="clientHeight"),N=Z(N);var ee=[];function te(e){var t=e.i===ee.length,i=t?ee[e.i-1]:ee[e.i];Y.call(i);var n=t?i.size-e.minSize-i[p]:e.minSize+i[g];q.call(i,n)}return(v=x.map((function(e,t){var n,s={element:b(e),size:N[t],minSize:I[t],maxSize:A[t],snapOffset:B[t],i:t};if(t>0&&((n={a:t-1,b:t,dragging:!1,direction:V,parent:L})[g]=y(O,t-1===0,!1,P),n[p]=y(O,!1,t===x.length-1,P),"row-reverse"===E||"column-reverse"===E)){var o=n.a;n.a=n.b,n.b=o}if(t>0){var r=z(t,V,s.element);!function(e,t,n){var s=U(i,t,n);Object.keys(s).forEach((function(t){e.style[t]=s[t]}))}(r,O,t),n[u]=J.bind(n),r[d]("mousedown",n[u]),r[d]("touchstart",n[u]),L.insertBefore(r,s.element),n.gutter=r}return K(s.element,s.size,y(O,0===t,t===x.length-1,P),t),t>0&&ee.push(n),s}))).forEach((function(e){var t=e.element[c]()[i];t<e.minSize&&(R?te(e):e.minSize=t)})),{setSizes:function(e){var t=Z(e);t.forEach((function(e,i){if(i>0){var n=ee[i-1],s=v[n.a],o=v[n.b];s.size=t[i-1],o.size=e,K(s.element,s.size,n[g],s.i),K(o.element,o.size,n[p],o.i)}}))},getSizes:G,collapse:function(e){te(v[e])},destroy:function(e,t){ee.forEach((function(n){if(!0!==t?n.parent.removeChild(n.gutter):(n.gutter[h]("mousedown",n[u]),n.gutter[h]("touchstart",n[u])),!0!==e){var s=j(i,n.a.size,n[g]);Object.keys(s).forEach((function(e){v[n.a].element.style[e]="",v[n.b].element.style[e]=""}))}}))},parent:L,pairs:ee}};function L(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&-1===t.indexOf(n)&&(i[n]=e[n]);return i}var D=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,i=L(e,["children","gutter"]);i.gutter=function(e,i){var n;return t?n=t(e,i):(n=document.createElement("div")).className="gutter gutter-"+i,n.__isSplitGutter=!0,n},this.split=x(this.parent.children,i)},t.prototype.componentDidUpdate=function(e){var t=this,i=this.props;i.children;var n=i.minSize,s=i.sizes,o=i.collapsed,r=L(i,["children","minSize","sizes","collapsed"]),a=e.minSize,l=e.sizes,d=e.collapsed,h=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(i){return t.props[i]!==e[i]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(n)&&Array.isArray(a)){var c=!1;n.forEach((function(e,t){c=c||e!==a[t]})),h=h||c}else h=!(!Array.isArray(n)&&!Array.isArray(a))||(h||n!==a);if(h)r.minSize=n,r.sizes=s||this.split.getSizes(),this.split.destroy(!0,!0),r.gutter=function(e,t,i){return i.previousSibling},this.split=x(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),r);else if(s){var u=!1;s.forEach((function(e,t){u=u||e!==l[t]})),u&&this.split.setSizes(this.props.sizes)}Number.isInteger(o)&&(o!==d||h)&&this.split.collapse(o)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var i=t.children,s=L(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return n.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},s),i)},t}(n.Component);D.propTypes={sizes:o().arrayOf(o().number),minSize:o().oneOfType([o().number,o().arrayOf(o().number)]),maxSize:o().oneOfType([o().number,o().arrayOf(o().number)]),expandToMin:o().bool,gutterSize:o().number,gutterAlign:o().string,snapOffset:o().oneOfType([o().number,o().arrayOf(o().number)]),dragInterval:o().number,direction:o().string,cursor:o().string,gutter:o().func,elementStyle:o().func,gutterStyle:o().func,onDrag:o().func,onDragStart:o().func,onDragEnd:o().func,collapsed:o().number,children:o().arrayOf(o().element)},D.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const E=D},72093:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});const n={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var s,o=new Uint8Array(16);function r(){if(!s&&!(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(o)}for(var a=[],l=0;l<256;++l)a.push((l+256).toString(16).slice(1));function d(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}const h=function(e,t,i){if(n.randomUUID&&!t&&!e)return n.randomUUID();var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){i=i||0;for(var o=0;o<16;++o)t[i+o]=s[o];return t}return d(s)}},57949:(e,t,i)=>{"use strict";i.d(t,{F:()=>V});var n=i(60712),s=i(59284),o=i(56993),r=i.n(o),a=i(53302),l=i(63126),d=i(72837);const h=JSON.parse('{"label_error":"Error","label_empty":"No data"}'),c=JSON.parse('{"label_error":"\u041e\u0448\u0438\u0431\u043a\u0430","label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),u=(0,d.N)({en:h,ru:c},"ydb-navigation-tree"),g=(0,a.o)("ydb-navigation-tree-view-empty");function p({level:e}){return(0,n.jsx)(l.G,{name:(0,n.jsx)("span",{className:g(),children:u("label_empty")}),level:e})}const m=(0,a.o)("ydb-navigation-tree-view-error");function f({level:e}){return(0,n.jsx)(l.G,{name:(0,n.jsx)("span",{className:m(),children:u("label_error")}),level:e})}var _=i(80953);const v=(0,a.o)("ydb-navigation-tree-view-loader");function b({level:e}){return(0,n.jsx)(l.G,{name:(0,n.jsx)("div",{className:v(),children:(0,n.jsx)(_.t,{size:"xs"})}),level:e})}function C(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.22 15.03s-.001 0 0 0a.75.75 0 0 0 1.06-1.06l-.47-.47H10a3.016 3.016 0 0 0 1.507-.405A2.999 2.999 0 0 0 13 10.5V7.896h.003a2.735 2.735 0 0 0 .785-.366 2.75 2.75 0 1 0-2.288.366V10.5A1.5 1.5 0 0 1 10 12h-.19l.47-.47s0 .001 0 0a.75.75 0 0 0-1.06-1.06l-.47.47-1.28 1.28a.75.75 0 0 0 0 1.06l1.75 1.75ZM5.72 2.97a.75.75 0 0 1 1.06 0l.47.47 1.28 1.28a.748.748 0 0 1 0 1.06L6.78 7.53c.001 0 0 0 0 0a.751.751 0 0 1-1.06-1.06L6.19 6H6a1.5 1.5 0 0 0-1.5 1.5v2.604a2.757 2.757 0 0 1 2 2.646 2.738 2.738 0 0 1-1.212 2.28 2.737 2.737 0 0 1-1.538.47A2.747 2.747 0 0 1 1 12.75a2.751 2.751 0 0 1 2-2.646V7.5a2.999 2.999 0 0 1 3-3h.19l-.47-.47a.75.75 0 0 1 0-1.06Zm-.908 9.121A1.246 1.246 0 0 1 5 12.75a1.25 1.25 0 1 1-.188-.659ZM11 5.25a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0Z"})}))}function y(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H5.5H7H9H10.5H12C13.1046 2 14 2.89543 14 4V5.5V12C14 13.1046 13.1046 14 12 14H10.5H9H7H5.5H4C2.89543 14 2 13.1046 2 12V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM10.5 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V5.5H10.5L10.5 12.5ZM9 5.5L9 12.5H7L7 5.5H9ZM3.5 5.5H5.5L5.5 12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V5.5Z"})}))}function w(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor"},e,{children:(0,n.jsx)("path",{d:"M448 80V128C448 172.2 347.7 208 224 208C100.3 208 0 172.2 0 128V80C0 35.82 100.3 0 224 0C347.7 0 448 35.82 448 80zM393.2 214.7C413.1 207.3 433.1 197.8 448 186.1V288C448 332.2 347.7 368 224 368C100.3 368 0 332.2 0 288V186.1C14.93 197.8 34.02 207.3 54.85 214.7C99.66 230.7 159.5 240 224 240C288.5 240 348.3 230.7 393.2 214.7V214.7zM54.85 374.7C99.66 390.7 159.5 400 224 400C288.5 400 348.3 390.7 393.2 374.7C413.1 367.3 433.1 357.8 448 346.1V432C448 476.2 347.7 512 224 512C100.3 512 0 476.2 0 432V346.1C14.93 357.8 34.02 367.3 54.85 374.7z"})}))}function S(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.338542 6 0.722222 6L3.61111 6V3L0.722222 3C0.338542 3 0 2.67188 0 2.25C0 1.85156 0.338542 1.5 0.722222 1.5L3.61111 1.5V0.750001C3.61111 0.351563 3.94965 0 4.33333 0C4.73958 0 5.05556 0.351563 5.05556 0.750001H5.77778C7.53819 0.750001 8.98264 2.03906 9.32118 3.75H12V5.25H9.32118C9.29095 5.4049 9.25189 5.55606 9.20457 5.70291C9.10459 5.73587 9.00778 5.77066 8.9144 5.80723C8.505 5.96755 8.12646 6.17556 7.83841 6.44187C7.5498 6.70871 7.3 7.08678 7.3 7.56255V7.90902C6.83862 8.12843 6.32337 8.25 5.77778 8.25H5.05556C5.05556 8.67188 4.73958 9 4.33333 9C3.94965 9 3.61111 8.67188 3.61111 8.25V7.5L0.722222 7.5C0.338542 7.5 0 7.17188 0 6.75ZM16 8.5V7.5625C16 6.70312 14.1964 6 12 6C9.78571 6 8 6.70312 8 7.5625V8.5C8 9.37891 9.78571 10.0625 12 10.0625C14.1964 10.0625 16 9.37891 16 8.5ZM16 9.65234C15.7321 9.86719 15.375 10.0625 15.0179 10.1992C14.2143 10.5117 13.1429 10.6875 12 10.6875C10.8393 10.6875 9.76786 10.5117 8.96429 10.1992C8.60714 10.0625 8.25 9.86719 8 9.65234V11.625C8 12.5039 9.78571 13.1875 12 13.1875C14.1964 13.1875 16 12.5039 16 11.625V9.65234ZM12 13.8125C10.8393 13.8125 9.76786 13.6367 8.96429 13.3242C8.60714 13.1875 8.25 12.9922 8 12.7773V14.4375C8 15.3164 9.78571 16 12 16C14.1964 16 16 15.3164 16 14.4375V12.7773C15.7321 12.9922 15.375 13.1875 15.0179 13.3242C14.2143 13.6367 13.1429 13.8125 12 13.8125Z"})}))}function k(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.351562 6 0.75 6L3.75 6V3L0.75 3C0.351562 3 0 2.67188 0 2.25C0 1.85156 0.351562 1.5 0.75 1.5L3.75 1.5V0.750001C3.75 0.351563 4.10156 0 4.5 0C4.92188 0 5.25 0.351563 5.25 0.750001H6C7.82812 0.750001 9.32812 2.03906 9.67969 3.75H12V5.25H9.67969C9.60376 5.62455 9.47428 5.97724 9.2995 6.30005H7.19969C6.09701 6.30005 5.26846 7.20143 5.25 8.25C5.25 8.67188 4.92188 9 4.5 9C4.10156 9 3.75 8.67188 3.75 8.25V7.5L0.75 7.5C0.351562 7.5 0 7.17188 0 6.75ZM16 8.28571C16 7.58259 15.4336 7 14.75 7H7.25C6.54688 7 6 7.58259 6 8.28571V14.7143C6 15.4375 6.54688 16 7.25 16H14.75C15.4336 16 16 15.4375 16 14.7143V8.28571ZM10.375 9.57143V11.5H7.25V9.57143H10.375ZM7.25 14.7143V12.7857H10.375V14.7143H7.25ZM14.75 14.7143H11.625V12.7857H14.75V14.7143ZM14.75 9.57143V11.5H11.625V9.57143H14.75Z"})}))}function x(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{d:"M13.2812 4.875H8.40625L6.78125 3.25H2.71875C2.0332 3.25 1.5 3.80859 1.5 4.46875V11.7812C1.5 12.4668 2.0332 13 2.71875 13H13.2812C13.9414 13 14.5 12.4668 14.5 11.7812V6.09375C14.5 5.43359 13.9414 4.875 13.2812 4.875Z"})}))}function L(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{d:"M15.2109 9.06445C15.4648 8.6582 15.1602 8.125 14.6777 8.125H4.54688C4.01367 8.125 3.37891 8.50586 3.125 8.9375L1.29688 12.0859C1.04297 12.4922 1.34766 13 1.83008 13H11.9609C12.4941 13 13.1289 12.6445 13.3828 12.2129L15.2109 9.06445ZM4.54688 7.3125H12.875V6.09375C12.875 5.43359 12.3164 4.875 11.6562 4.875H7.59375L5.96875 3.25H1.90625C1.2207 3.25 0.6875 3.80859 0.6875 4.46875V11.5527L2.43945 8.53125C2.87109 7.79492 3.6582 7.3125 4.54688 7.3125Z"})}))}function D(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.24935 2.94323L8.5 9.5H12.1L11.1446 14.2772C11.0322 14.839 11.7994 15.1177 12.0738 14.6147L15.9111 7.57956C16.1765 7.09311 15.8244 6.5 15.2703 6.5H12.9L13.5325 3.33728C13.6192 2.90413 13.2879 2.5 12.8461 2.5H9.74611C9.49194 2.5 9.27821 2.69069 9.24935 2.94323ZM7.40003 10.5L8.25717 3H1.625C0.710938 3 0 3.73633 0 4.625V12.75C0 13.6641 0.710938 14.375 1.625 14.375H10.1517C10.1538 14.2803 10.1646 14.1822 10.1848 14.0811L10.901 10.5H7.40003ZM5.6875 8.6875V6.25H1.625V8.6875H5.6875ZM1.625 10.3125V12.75H5.6875V10.3125H1.625Z"})}))}function E(e){return(0,n.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H7.3H8.8H12C13.1046 2 14 2.89543 14 4V5.5V8.2002V9.7002V12C14 13.1046 13.1046 14 12 14H8.8H7.3H4C2.89543 14 2 13.1046 2 12V9.7002V8.2002V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM8.8 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V9.7002H8.8V12.5ZM7.3 9.7002V12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V9.7002H7.3ZM8.8 8.2002H12.5V5.5H8.8L8.8 8.2002ZM7.3 5.5L7.3 8.2002H3.5V5.5H7.3Z"})}))}function N(e){return(0,n.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,n.jsx)("rect",{x:"2",y:"2.20001",width:"9",height:"2.5",rx:"0.5"}),(0,n.jsx)("rect",{x:"5",y:"6.70001",width:"9",height:"2.5",rx:"0.5"}),(0,n.jsx)("rect",{x:"2",y:"11.2",width:"9",height:"2.5",rx:"0.5"})]}))}function T(e){return(0,n.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.625 2H7.49951C6.47457 2.77006 5.7552 3.92488 5.55588 5.25H1.625V7.6875H5.79193C6.48417 9.6186 8.33076 11 10.5 11C10.877 11 11.2443 10.9583 11.5974 10.8792L12.7748 12.5799C12.4905 13.0601 11.9665 13.375 11.375 13.375H1.625C0.710938 13.375 0 12.6641 0 11.75V3.625C0 2.73633 0.710938 2 1.625 2ZM1.625 11.75V9.3125H5.6875V11.75H1.625Z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4411 8.71106C14.0985 7.9983 14.5 7.04604 14.5 6C14.5 3.79086 12.7091 2 10.5 2C8.29086 2 6.5 3.79086 6.5 6C6.5 8.20914 8.29086 10 10.5 10C11.0316 10 11.5389 9.89631 12.0029 9.70806L14.2807 12.9981C14.5557 13.3955 15.1008 13.4946 15.4981 13.2195C15.8955 12.9444 15.9946 12.3993 15.7195 12.002L13.4411 8.71106ZM12.5 6C12.5 7.10457 11.6046 8 10.5 8C9.39543 8 8.5 7.10457 8.5 6C8.5 4.89543 9.39543 4 10.5 4C11.6046 4 12.5 4.89543 12.5 6Z"})]}))}function I(e){return"status"in e}function M(e,t,i,n=0){const s=e[t];if(s&&(i(s,n,t,e),!s.collapsed))for(const o of s.children)M(e,`${t}/${o}`,i,n+1)}var A;function R(e){return Object.assign(Object.assign(Object.assign({},{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]}),{expandable:"database"===e.type||"directory"===e.type}),e)}function O(e={},t){var i,n;switch(t.type){case A.ToggleCollapsed:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!e[t.payload.path].collapsed})});case A.StartLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!0,loaded:!1,error:!1,children:[]})});case A.FinishLoading:{const s=Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:Boolean(t.payload.data),error:!1})});if(t.payload.data){s[t.payload.path].children=t.payload.data.map((({name:e})=>e));for(const o of t.payload.data){const r=`${t.payload.path}/${o.name}`,{activePath:a=""}=t.payload,l=null!==(n=null===(i=e[r])||void 0===i?void 0:i.collapsed)&&void 0!==n?n:!a.startsWith(`${r}/`);s[r]=R(Object.assign(Object.assign({},o),{collapsed:l,path:r}))}}return s}case A.ErrorLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:!1,error:!0})});case A.ResetNode:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]})});default:return e}}function P(e,t){const i=[];return M(e,t,((e,t)=>{i.push(Object.assign(Object.assign({},e),{level:t}));const n=function(e,t){if(!e.collapsed)return e.loading?{path:e.path,status:"loading",level:t+1}:e.error?{path:e.path,status:"error",level:t+1}:e.loaded&&0===e.children.length?{path:e.path,status:"empty",level:t+1}:void 0}(e,t);n&&i.push(n)})),i}function F(e,t){switch(e){case"async_replication":return(0,n.jsx)(C,{height:16});case"database":return(0,n.jsx)(w,{height:14});case"directory":return t?(0,n.jsx)(x,{height:16}):(0,n.jsx)(L,{height:16});case"index":return(0,n.jsx)(D,{height:16});case"table":case"index_table":return(0,n.jsx)(E,{height:16});case"column_table":return(0,n.jsx)(y,{height:16});case"stream":case"topic":return(0,n.jsx)(N,{height:16});case"external_table":return(0,n.jsx)(k,{height:16});case"external_data_source":return(0,n.jsx)(S,{height:16});case"view":return(0,n.jsx)(T,{height:16});default:return null}}function B({path:e,fetchPath:t,activePath:i,state:o,level:r,dispatch:a,children:d,onActivate:h,getActions:c,onActionsOpenToggle:u,renderAdditionalNodeElements:g,cache:p}){const m=o[e];s.useEffect((()=>{m.collapsed?p||a({type:A.ResetNode,payload:{path:e}}):m.loaded||m.loading||(a({type:A.StartLoading,payload:{path:e}}),t(e).then((t=>{a({type:A.FinishLoading,payload:{path:e,activePath:i,data:t}})})).catch((t=>{a({type:A.ErrorLoading,payload:{path:e,error:t}})})))}),[m.collapsed]);const f=s.useCallback((()=>{h&&h(e)}),[e,h]),_=s.useCallback((()=>{a({type:A.ToggleCollapsed,payload:{path:e}})}),[a,e]),v=s.useMemo((()=>null===g||void 0===g?void 0:g(m.path,m.type)),[g,m]),b=s.useMemo((()=>null===c||void 0===c?void 0:c(m.path,m.type)),[c,m]),C=s.useCallback((e=>{null===u||void 0===u||u({path:m.path,type:m.type,isOpen:e})}),[m.path,m.type,u]);return(0,n.jsx)(l.G,{name:m.name,icon:F(m.type,m.collapsed),collapsed:m.collapsed,active:m.path===i,actions:b,additionalNodeElements:v,hasArrow:m.expandable,onClick:f,onArrowClick:_,onActionsOpenToggle:C,level:r,children:d})}!function(e){e.ToggleCollapsed="toggle-collapsed",e.StartLoading="start-loading",e.FinishLoading="finish-loading",e.ErrorLoading="error-loading",e.ResetNode="reset-node"}(A||(A={}));const W=e=>{const t=`${e.path}|${e.status}`;return"loading"===e.status?(0,n.jsx)(b,{level:e.level},t):"error"===e.status?(0,n.jsx)(f,{level:e.level},t):(0,n.jsx)(p,{level:e.level},t)};function V({rootState:e,fetchPath:t,getActions:i,renderAdditionalNodeElements:o,activePath:a,onActionsOpenToggle:l,onActivePathUpdate:d,cache:h=!0,virtualize:c=!1}){const[u,g]=s.useReducer(O,{[e.path]:R(e)}),p=s.useMemo((()=>P(u,e.path)),[e.path,u]),m=e=>(0,n.jsx)(B,{state:u,path:e.path,activePath:a,fetchPath:t,dispatch:g,onActivate:d,getActions:i,onActionsOpenToggle:l,renderAdditionalNodeElements:o,cache:h,level:e.level},e.path);return c?(0,n.jsx)(r(),{type:"uniform",length:p.length,useStaticSize:!0,itemRenderer:e=>{const t=p[e];return I(t)?W(t):m(t)}}):(0,n.jsx)(s.Fragment,{children:p.map((e=>I(e)?W(e):m(e)))})}},63126:(e,t,i)=>{"use strict";i.d(t,{G:()=>d});var n=i(60712),s=i(59284),o=i(40569),r=i(53302);const a="--ydb-tree-view-level",l=(0,r.o)("ydb-tree-view");function d({children:e,name:t,title:i,icon:r,collapsed:d=!0,active:h=!1,onClick:c,onArrowClick:u,onActionsOpenToggle:g,hasArrow:p=!1,actions:m,additionalNodeElements:f,level:_}){const v=s.useCallback((e=>{if(!c)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||c()}),[c]),b=u||c;let C="tree-view_arrow",y="tree-view_children";return d&&(C+=" tree-view_arrow-collapsed",y+=" tree-view_children-collapsed"),(0,n.jsx)("div",{className:l(),style:{[a]:_},children:(0,n.jsxs)("div",{className:"tree-view",children:[(0,n.jsxs)("div",{className:`tree-view_item ${l("item",{active:h})}`,onClick:v,children:[(0,n.jsx)("button",{type:"button",className:`${C} ${l("arrow",{collapsed:d,hidden:!p})}`,disabled:!b,onClick:b}),(0,n.jsxs)("div",{className:l("content"),children:[r&&(0,n.jsx)("div",{className:l("icon"),children:r}),(0,n.jsx)("div",{className:l("text"),title:i,children:t}),m&&m.length>0&&(0,n.jsxs)("div",{className:l("actions"),children:[f,(0,n.jsx)(o.r,{onOpenToggle:g,defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:m})]})]})]}),(0,n.jsx)("div",{className:`${y} ${l("container",{collapsed:d})}`,children:d?null:e})]})})}},53302:(e,t,i)=>{"use strict";i.d(t,{o:()=>n});const n=(0,i(82435).withNaming)({e:"__",m:"_"})},62469:()=>{},10713:()=>{},48215:()=>{},53396:()=>{},91434:()=>{},16122:(e,t,i)=>{"use strict";i.d(t,{u:()=>d});var n=i(23971);const s=(e,t,i)=>{if(e&&"reportValidity"in e){const s=(0,n.Jt)(i,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},o=(e,t)=>{for(const i in t.fields){const n=t.fields[i];n&&n.ref&&"reportValidity"in n.ref?s(n.ref,i,e):n.refs&&n.refs.forEach((t=>s(t,i,e)))}},r=(e,t)=>{t.shouldUseNativeValidation&&o(e,t);const i={};for(const s in e){const o=(0,n.Jt)(t.fields,s),r=Object.assign(e[s]||{},{ref:o&&o.ref});if(a(t.names||Object.keys(e),s)){const e=Object.assign({},(0,n.Jt)(i,s));(0,n.hZ)(e,"root",r),(0,n.hZ)(i,s,e)}else(0,n.hZ)(i,s,r)}return i},a=(e,t)=>e.some((e=>e.startsWith(t+".")));var l=function(e,t){for(var i={};e.length;){var s=e[0],o=s.code,r=s.message,a=s.path.join(".");if(!i[a])if("unionErrors"in s){var l=s.unionErrors[0].errors[0];i[a]={message:l.message,type:l.code}}else i[a]={message:r,type:o};if("unionErrors"in s&&s.unionErrors.forEach((function(t){return t.errors.forEach((function(t){return e.push(t)}))})),t){var d=i[a].types,h=d&&d[s.code];i[a]=(0,n.Gb)(a,t,i,o,h?[].concat(h,s.message):s.message)}e.shift()}return i},d=function(e,t,i){return void 0===i&&(i={}),function(n,s,a){try{return Promise.resolve(function(s,r){try{var l=Promise.resolve(e["sync"===i.mode?"parse":"parseAsync"](n,t)).then((function(e){return a.shouldUseNativeValidation&&o({},a),{errors:{},values:i.raw?n:e}}))}catch(d){return r(d)}return l&&l.then?l.then(void 0,r):l}(0,(function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:r(l(e.errors,!a.shouldUseNativeValidation&&"all"===a.criteriaMode),a)};throw e})))}catch(d){return Promise.reject(d)}}}},90474:(e,t,i)=>{"use strict";i.d(t,{Mj:()=>N});var n={grad:.9,turn:360,rad:360/(2*Math.PI)},s=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},o=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=Math.pow(10,t)),Math.round(i*e)/i+0},r=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=1),e>i?i:e>t?e:t},a=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},l=function(e){return{r:r(e.r,0,255),g:r(e.g,0,255),b:r(e.b,0,255),a:r(e.a)}},d=function(e){return{r:o(e.r),g:o(e.g),b:o(e.b),a:o(e.a,3)}},h=/^#([0-9a-f]{3,8})$/i,c=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},u=function(e){var t=e.r,i=e.g,n=e.b,s=e.a,o=Math.max(t,i,n),r=o-Math.min(t,i,n),a=r?o===t?(i-n)/r:o===i?2+(n-t)/r:4+(t-i)/r:0;return{h:60*(a<0?a+6:a),s:o?r/o*100:0,v:o/255*100,a:s}},g=function(e){var t=e.h,i=e.s,n=e.v,s=e.a;t=t/360*6,i/=100,n/=100;var o=Math.floor(t),r=n*(1-i),a=n*(1-(t-o)*i),l=n*(1-(1-t+o)*i),d=o%6;return{r:255*[n,a,r,r,l,n][d],g:255*[l,n,n,a,r,r][d],b:255*[r,r,l,n,n,a][d],a:s}},p=function(e){return{h:a(e.h),s:r(e.s,0,100),l:r(e.l,0,100),a:r(e.a)}},m=function(e){return{h:o(e.h),s:o(e.s),l:o(e.l),a:o(e.a,3)}},f=function(e){return g((i=(t=e).s,{h:t.h,s:(i*=((n=t.l)<50?n:100-n)/100)>0?2*i/(n+i)*100:0,v:n+i,a:t.a}));var t,i,n},_=function(e){return{h:(t=u(e)).h,s:(s=(200-(i=t.s))*(n=t.v)/100)>0&&s<200?i*n/100/(s<=100?s:200-s)*100:0,l:s/2,a:t.a};var t,i,n,s},v=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w={string:[[function(e){var t=h.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?o(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?o(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=C.exec(e)||y.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:l({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=v.exec(e)||b.exec(e);if(!t)return null;var i,s,o=p({h:(i=t[1],s=t[2],void 0===s&&(s="deg"),Number(i)*(n[s]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return f(o)},"hsl"]],object:[[function(e){var t=e.r,i=e.g,n=e.b,o=e.a,r=void 0===o?1:o;return s(t)&&s(i)&&s(n)?l({r:Number(t),g:Number(i),b:Number(n),a:Number(r)}):null},"rgb"],[function(e){var t=e.h,i=e.s,n=e.l,o=e.a,r=void 0===o?1:o;if(!s(t)||!s(i)||!s(n))return null;var a=p({h:Number(t),s:Number(i),l:Number(n),a:Number(r)});return f(a)},"hsl"],[function(e){var t=e.h,i=e.s,n=e.v,o=e.a,l=void 0===o?1:o;if(!s(t)||!s(i)||!s(n))return null;var d=function(e){return{h:a(e.h),s:r(e.s,0,100),v:r(e.v,0,100),a:r(e.a)}}({h:Number(t),s:Number(i),v:Number(n),a:Number(l)});return g(d)},"hsv"]]},S=function(e,t){for(var i=0;i<t.length;i++){var n=t[i][0](e);if(n)return[n,t[i][1]]}return[null,void 0]},k=function(e){return"string"==typeof e?S(e.trim(),w.string):"object"==typeof e&&null!==e?S(e,w.object):[null,void 0]},x=function(e,t){var i=_(e);return{h:i.h,s:r(i.s+100*t,0,100),l:i.l,a:i.a}},L=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},D=function(e,t){var i=_(e);return{h:i.h,s:i.s,l:r(i.l+100*t,0,100),a:i.a}},E=function(){function e(e){this.parsed=k(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return o(L(this.rgba),2)},e.prototype.isDark=function(){return L(this.rgba)<.5},e.prototype.isLight=function(){return L(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=d(this.rgba)).r,i=e.g,n=e.b,r=(s=e.a)<1?c(o(255*s)):"","#"+c(t)+c(i)+c(n)+r;var e,t,i,n,s,r},e.prototype.toRgb=function(){return d(this.rgba)},e.prototype.toRgbString=function(){return t=(e=d(this.rgba)).r,i=e.g,n=e.b,(s=e.a)<1?"rgba("+t+", "+i+", "+n+", "+s+")":"rgb("+t+", "+i+", "+n+")";var e,t,i,n,s},e.prototype.toHsl=function(){return m(_(this.rgba))},e.prototype.toHslString=function(){return t=(e=m(_(this.rgba))).h,i=e.s,n=e.l,(s=e.a)<1?"hsla("+t+", "+i+"%, "+n+"%, "+s+")":"hsl("+t+", "+i+"%, "+n+"%)";var e,t,i,n,s},e.prototype.toHsv=function(){return e=u(this.rgba),{h:o(e.h),s:o(e.s),v:o(e.v),a:o(e.a,3)};var e},e.prototype.invert=function(){return N({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),N(x(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),N(x(this.rgba,-e))},e.prototype.grayscale=function(){return N(x(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),N(D(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),N(D(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?N({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):o(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=_(this.rgba);return"number"==typeof e?N({h:e,s:t.s,l:t.l,a:t.a}):o(t.h)},e.prototype.isEqual=function(e){return this.toHex()===N(e).toHex()},e}(),N=function(e){return e instanceof E?e:new E(e)}},23971:(e,t,i)=>{"use strict";i.d(t,{Gb:()=>z,Jt:()=>f,hZ:()=>C,mN:()=>Ee,xI:()=>H});var n=i(59284),s=e=>"checkbox"===e.type,o=e=>e instanceof Date,r=e=>null==e;const a=e=>"object"===typeof e;var l=e=>!r(e)&&!Array.isArray(e)&&a(e)&&!o(e),d=e=>l(e)&&e.target?s(e.target)?e.target.checked:e.target.value:e,h=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),c=e=>{const t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},u="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function g(e){let t;const i=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(u&&(e instanceof Blob||e instanceof FileList)||!i&&!l(e))return e;if(t=i?[]:{},i||c(e))for(const i in e)e.hasOwnProperty(i)&&(t[i]=g(e[i]));else t=e}return t}var p=e=>Array.isArray(e)?e.filter(Boolean):[],m=e=>void 0===e,f=(e,t,i)=>{if(!t||!l(e))return i;const n=p(t.split(/[,[\].]+?/)).reduce(((e,t)=>r(e)?e:e[t]),e);return m(n)||n===e?m(e[t])?i:e[t]:n},_=e=>"boolean"===typeof e,v=e=>/^\w*$/.test(e),b=e=>p(e.replace(/["|']|\]/g,"").split(/\.|\[/)),C=(e,t,i)=>{let n=-1;const s=v(t)?[t]:b(t),o=s.length,r=o-1;for(;++n<o;){const t=s[n];let o=i;if(n!==r){const i=e[t];o=l(i)||Array.isArray(i)?i:isNaN(+s[n+1])?{}:[]}if("__proto__"===t)return;e[t]=o,e=e[t]}return e};const y={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},w={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},S="max",k="min",x="maxLength",L="minLength",D="pattern",E="required",N="validate",T=n.createContext(null),I=()=>n.useContext(T);var M=(e,t,i,n=!0)=>{const s={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(s,o,{get:()=>{const s=o;return t._proxyFormState[s]!==w.all&&(t._proxyFormState[s]=!n||w.all),i&&(i[s]=!0),e[s]}});return s},A=e=>l(e)&&!Object.keys(e).length,R=(e,t,i,n)=>{i(e);const{name:s,...o}=e;return A(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||w.all)))},O=e=>Array.isArray(e)?e:[e],P=(e,t,i)=>!e||!t||e===t||O(e).some((e=>e&&(i?e===t:e.startsWith(t)||t.startsWith(e))));function F(e){const t=n.useRef(e);t.current=e,n.useEffect((()=>{const i=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{i&&i.unsubscribe()}}),[e.disabled])}var B=e=>"string"===typeof e,W=(e,t,i,n,s)=>B(e)?(n&&t.watch.add(e),f(i,e,s)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),f(i,e)))):(n&&(t.watchAll=!0),i);function V(e){const t=I(),{name:i,disabled:s,control:o=t.control,shouldUnregister:r}=e,a=h(o._names.array,i),l=function(e){const t=I(),{control:i=t.control,name:s,defaultValue:o,disabled:r,exact:a}=e||{},l=n.useRef(s);l.current=s,F({disabled:r,subject:i._subjects.values,next:e=>{P(l.current,e.name,a)&&h(g(W(l.current,i._names,e.values||i._formValues,!1,o)))}});const[d,h]=n.useState(i._getWatch(s,o));return n.useEffect((()=>i._removeUnmounted())),d}({control:o,name:i,defaultValue:f(o._formValues,i,f(o._defaultValues,i,e.defaultValue)),exact:!0}),c=function(e){const t=I(),{control:i=t.control,disabled:s,name:o,exact:r}=e||{},[a,l]=n.useState(i._formState),d=n.useRef(!0),h=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=n.useRef(o);return c.current=o,F({disabled:s,next:e=>d.current&&P(c.current,e.name,r)&&R(e,h.current,i._updateFormState)&&l({...i._formState,...e}),subject:i._subjects.state}),n.useEffect((()=>(d.current=!0,h.current.isValid&&i._updateValid(!0),()=>{d.current=!1})),[i]),M(a,i,h.current,!1)}({control:o,name:i}),u=n.useRef(o.register(i,{...e.rules,value:l,..._(e.disabled)?{disabled:e.disabled}:{}}));return n.useEffect((()=>{const e=o._options.shouldUnregister||r,t=(e,t)=>{const i=f(o._fields,e);i&&i._f&&(i._f.mount=t)};if(t(i,!0),e){const e=g(f(o._options.defaultValues,i));C(o._defaultValues,i,e),m(f(o._formValues,i))&&C(o._formValues,i,e)}return()=>{(a?e&&!o._state.action:e)?o.unregister(i):t(i,!1)}}),[i,o,a,r]),n.useEffect((()=>{f(o._fields,i)&&o._updateDisabledField({disabled:s,fields:o._fields,name:i,value:f(o._fields,i)._f.value})}),[s,i,o]),{field:{name:i,value:l,..._(s)||c.disabled?{disabled:c.disabled||s}:{},onChange:n.useCallback((e=>u.current.onChange({target:{value:d(e),name:i},type:y.CHANGE})),[i]),onBlur:n.useCallback((()=>u.current.onBlur({target:{value:f(o._formValues,i),name:i},type:y.BLUR})),[i,o]),ref:e=>{const t=f(o._fields,i);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!f(c.errors,i)},isDirty:{enumerable:!0,get:()=>!!f(c.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!f(c.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!f(c.validatingFields,i)},error:{enumerable:!0,get:()=>f(c.errors,i)}})}}const H=e=>e.render(V(e));var z=(e,t,i,n,s)=>t?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[n]:s||!0}}:{},j=e=>({isOnSubmit:!e||e===w.onSubmit,isOnBlur:e===w.onBlur,isOnChange:e===w.onChange,isOnAll:e===w.all,isOnTouch:e===w.onTouched}),U=(e,t,i)=>!i&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const K=(e,t,i,n)=>{for(const s of i||Object.keys(e)){const i=f(e,s);if(i){const{_f:e,...o}=i;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],s)&&!n)break;if(e.ref&&t(e.ref,e.name)&&!n)break;K(o,t)}else l(o)&&K(o,t)}}};var G=(e,t,i)=>{const n=O(f(e,i));return C(n,"root",t[i]),C(e,i,n),e},$=e=>"file"===e.type,q=e=>"function"===typeof e,Q=e=>{if(!u)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Y=e=>B(e),Z=e=>"radio"===e.type,X=e=>e instanceof RegExp;const J={value:!1,isValid:!1},ee={value:!0,isValid:!0};var te=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!m(e[0].attributes.value)?m(e[0].value)||""===e[0].value?ee:{value:e[0].value,isValid:!0}:ee:J}return J};const ie={isValid:!1,value:null};var ne=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),ie):ie;function se(e,t,i="validate"){if(Y(e)||Array.isArray(e)&&e.every(Y)||_(e)&&!e)return{type:i,message:Y(e)?e:"",ref:t}}var oe=e=>l(e)&&!X(e)?e:{value:e,message:""},re=async(e,t,i,n,o)=>{const{ref:a,refs:d,required:h,maxLength:c,minLength:u,min:g,max:p,pattern:v,validate:b,name:C,valueAsNumber:y,mount:w,disabled:T}=e._f,I=f(t,C);if(!w||T)return{};const M=d?d[0]:a,R=e=>{n&&M.reportValidity&&(M.setCustomValidity(_(e)?"":e||""),M.reportValidity())},O={},P=Z(a),F=s(a),W=P||F,V=(y||$(a))&&m(a.value)&&m(I)||Q(a)&&""===a.value||""===I||Array.isArray(I)&&!I.length,H=z.bind(null,C,i,O),j=(e,t,i,n=x,s=L)=>{const o=e?t:i;O[C]={type:e?n:s,message:o,ref:a,...H(e?n:s,o)}};if(o?!Array.isArray(I)||!I.length:h&&(!W&&(V||r(I))||_(I)&&!I||F&&!te(d).isValid||P&&!ne(d).isValid)){const{value:e,message:t}=Y(h)?{value:!!h,message:h}:oe(h);if(e&&(O[C]={type:E,message:t,ref:M,...H(E,t)},!i))return R(t),O}if(!V&&(!r(g)||!r(p))){let e,t;const n=oe(p),s=oe(g);if(r(I)||isNaN(I)){const i=a.valueAsDate||new Date(I),o=e=>new Date((new Date).toDateString()+" "+e),r="time"==a.type,l="week"==a.type;B(n.value)&&I&&(e=r?o(I)>o(n.value):l?I>n.value:i>new Date(n.value)),B(s.value)&&I&&(t=r?o(I)<o(s.value):l?I<s.value:i<new Date(s.value))}else{const i=a.valueAsNumber||(I?+I:I);r(n.value)||(e=i>n.value),r(s.value)||(t=i<s.value)}if((e||t)&&(j(!!e,n.message,s.message,S,k),!i))return R(O[C].message),O}if((c||u)&&!V&&(B(I)||o&&Array.isArray(I))){const e=oe(c),t=oe(u),n=!r(e.value)&&I.length>+e.value,s=!r(t.value)&&I.length<+t.value;if((n||s)&&(j(n,e.message,t.message),!i))return R(O[C].message),O}if(v&&!V&&B(I)){const{value:e,message:t}=oe(v);if(X(e)&&!I.match(e)&&(O[C]={type:D,message:t,ref:a,...H(D,t)},!i))return R(t),O}if(b)if(q(b)){const e=se(await b(I,t),M);if(e&&(O[C]={...e,...H(N,e.message)},!i))return R(e.message),O}else if(l(b)){let e={};for(const n in b){if(!A(e)&&!i)break;const s=se(await b[n](I,t),M,n);s&&(e={...s,...H(n,s.message)},R(s.message),i&&(O[C]=e))}if(!A(e)&&(O[C]={ref:M,...e},!i))return O}return R(!0),O};function ae(e,t){const i=Array.isArray(t)?t:v(t)?[t]:b(t),n=1===i.length?e:function(e,t){const i=t.slice(0,-1).length;let n=0;for(;n<i;)e=m(e)?n++:e[t[n++]];return e}(e,i),s=i.length-1,o=i[s];return n&&delete n[o],0!==s&&(l(n)&&A(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!m(e[t]))return!1;return!0}(n))&&ae(e,i.slice(0,-1)),e}var le=()=>{let e=[];return{get observers(){return e},next:t=>{for(const i of e)i.next&&i.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},de=e=>r(e)||!a(e);function he(e,t){if(de(e)||de(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();const i=Object.keys(e),n=Object.keys(t);if(i.length!==n.length)return!1;for(const s of i){const i=e[s];if(!n.includes(s))return!1;if("ref"!==s){const e=t[s];if(o(i)&&o(e)||l(i)&&l(e)||Array.isArray(i)&&Array.isArray(e)?!he(i,e):i!==e)return!1}}return!0}var ce=e=>"select-multiple"===e.type,ue=e=>Z(e)||s(e),ge=e=>Q(e)&&e.isConnected,pe=e=>{for(const t in e)if(q(e[t]))return!0;return!1};function me(e,t={}){const i=Array.isArray(e);if(l(e)||i)for(const n in e)Array.isArray(e[n])||l(e[n])&&!pe(e[n])?(t[n]=Array.isArray(e[n])?[]:{},me(e[n],t[n])):r(e[n])||(t[n]=!0);return t}function fe(e,t,i){const n=Array.isArray(e);if(l(e)||n)for(const s in e)Array.isArray(e[s])||l(e[s])&&!pe(e[s])?m(t)||de(i[s])?i[s]=Array.isArray(e[s])?me(e[s],[]):{...me(e[s])}:fe(e[s],r(t)?{}:t[s],i[s]):i[s]=!he(e[s],t[s]);return i}var _e=(e,t)=>fe(e,t,me(t)),ve=(e,{valueAsNumber:t,valueAsDate:i,setValueAs:n})=>m(e)?e:t?""===e?NaN:e?+e:e:i&&B(e)?new Date(e):n?n(e):e;function be(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return $(t)?t.files:Z(t)?ne(e.refs).value:ce(t)?[...t.selectedOptions].map((({value:e})=>e)):s(t)?te(e.refs).value:ve(m(t.value)?e.ref.value:t.value,e)}var Ce=(e,t,i,n)=>{const s={};for(const o of e){const e=f(t,o);e&&C(s,o,e._f)}return{criteriaMode:i,names:[...e],fields:s,shouldUseNativeValidation:n}},ye=e=>m(e)?e:X(e)?e.source:l(e)?X(e.value)?e.value.source:e.value:e,we=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Se(e,t,i){const n=f(e,i);if(n||v(i))return{error:n,name:i};const s=i.split(".");for(;s.length;){const n=s.join("."),o=f(t,n),r=f(e,n);if(o&&!Array.isArray(o)&&i!==n)return{name:i};if(r&&r.type)return{name:n,error:r};s.pop()}return{name:i}}var ke=(e,t,i,n,s)=>!s.isOnAll&&(!i&&s.isOnTouch?!(t||e):(i?n.isOnBlur:s.isOnBlur)?!e:!(i?n.isOnChange:s.isOnChange)||e),xe=(e,t)=>!p(f(e,t)).length&&ae(e,t);const Le={mode:w.onSubmit,reValidateMode:w.onChange,shouldFocusError:!0};function De(e={}){let t,i={...Le,...e},n={submitCount:0,isDirty:!1,isLoading:q(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1},a={},c=(l(i.defaultValues)||l(i.values))&&g(i.defaultValues||i.values)||{},v=i.shouldUnregister?{}:g(c),b={action:!1,mount:!1,watch:!1},S={mount:new Set,unMount:new Set,array:new Set,watch:new Set},k=0;const x={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},L={values:le(),array:le(),state:le()},D=j(i.mode),E=j(i.reValidateMode),N=i.criteriaMode===w.all,T=async e=>{if(x.isValid||e){const e=i.resolver?A((await F()).errors):await V(a,!0);e!==n.isValid&&L.state.next({isValid:e})}},I=(e,t)=>{(x.isValidating||x.validatingFields)&&((e||Array.from(S.mount)).forEach((e=>{e&&(t?C(n.validatingFields,e,t):ae(n.validatingFields,e))})),L.state.next({validatingFields:n.validatingFields,isValidating:!A(n.validatingFields)}))},M=(e,t,i,n)=>{const s=f(a,e);if(s){const o=f(v,e,m(i)?f(c,e):i);m(o)||n&&n.defaultChecked||t?C(v,e,t?o:be(s._f)):Y(e,o),b.mount&&T()}},R=(e,t,i,s,o)=>{let r=!1,l=!1;const d={name:e},h=!!(f(a,e)&&f(a,e)._f&&f(a,e)._f.disabled);if(!i||s){x.isDirty&&(l=n.isDirty,n.isDirty=d.isDirty=H(),r=l!==d.isDirty);const i=h||he(f(c,e),t);l=!(h||!f(n.dirtyFields,e)),i||h?ae(n.dirtyFields,e):C(n.dirtyFields,e,!0),d.dirtyFields=n.dirtyFields,r=r||x.dirtyFields&&l!==!i}if(i){const t=f(n.touchedFields,e);t||(C(n.touchedFields,e,i),d.touchedFields=n.touchedFields,r=r||x.touchedFields&&t!==i)}return r&&o&&L.state.next(d),r?d:{}},P=(i,s,o,r)=>{const a=f(n.errors,i),l=x.isValid&&_(s)&&n.isValid!==s;var d;if(e.delayError&&o?(d=()=>((e,t)=>{C(n.errors,e,t),L.state.next({errors:n.errors})})(i,o),t=e=>{clearTimeout(k),k=setTimeout(d,e)},t(e.delayError)):(clearTimeout(k),t=null,o?C(n.errors,i,o):ae(n.errors,i)),(o?!he(a,o):a)||!A(r)||l){const e={...r,...l&&_(s)?{isValid:s}:{},errors:n.errors,name:i};n={...n,...e},L.state.next(e)}},F=async e=>{I(e,!0);const t=await i.resolver(v,i.context,Ce(e||S.mount,a,i.criteriaMode,i.shouldUseNativeValidation));return I(e),t},V=async(e,t,s={valid:!0})=>{for(const o in e){const r=e[o];if(r){const{_f:e,...a}=r;if(e){const a=S.array.has(e.name);I([o],!0);const l=await re(r,v,N,i.shouldUseNativeValidation&&!t,a);if(I([o]),l[e.name]&&(s.valid=!1,t))break;!t&&(f(l,e.name)?a?G(n.errors,l,e.name):C(n.errors,e.name,l[e.name]):ae(n.errors,e.name))}a&&await V(a,t,s)}}return s.valid},H=(e,t)=>(e&&t&&C(v,e,t),!he(ie(),c)),z=(e,t,i)=>W(e,S,{...b.mount?v:m(t)?c:B(e)?{[e]:t}:t},i,t),Y=(e,t,i={})=>{const n=f(a,e);let o=t;if(n){const i=n._f;i&&(!i.disabled&&C(v,e,ve(t,i)),o=Q(i.ref)&&r(t)?"":t,ce(i.ref)?[...i.ref.options].forEach((e=>e.selected=o.includes(e.value))):i.refs?s(i.ref)?i.refs.length>1?i.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):i.refs[0]&&(i.refs[0].checked=!!o):i.refs.forEach((e=>e.checked=e.value===o)):$(i.ref)?i.ref.value="":(i.ref.value=o,i.ref.type||L.values.next({name:e,values:{...v}})))}(i.shouldDirty||i.shouldTouch)&&R(e,o,i.shouldTouch,i.shouldDirty,!0),i.shouldValidate&&te(e)},Z=(e,t,i)=>{for(const n in t){const s=t[n],r=`${e}.${n}`,l=f(a,r);!S.array.has(e)&&de(s)&&(!l||l._f)||o(s)?Y(r,s,i):Z(r,s,i)}},X=(e,t,i={})=>{const s=f(a,e),o=S.array.has(e),l=g(t);C(v,e,l),o?(L.array.next({name:e,values:{...v}}),(x.isDirty||x.dirtyFields)&&i.shouldDirty&&L.state.next({name:e,dirtyFields:_e(c,v),isDirty:H(e,l)})):!s||s._f||r(l)?Y(e,l,i):Z(e,l,i),U(e,S)&&L.state.next({...n}),L.values.next({name:b.mount?e:void 0,values:{...v}})},J=async e=>{b.mount=!0;const s=e.target;let o=s.name,r=!0;const l=f(a,o),h=e=>{r=Number.isNaN(e)||e===f(v,o,e)};if(l){let c,u;const g=s.type?be(l._f):d(e),p=e.type===y.BLUR||e.type===y.FOCUS_OUT,m=!we(l._f)&&!i.resolver&&!f(n.errors,o)&&!l._f.deps||ke(p,f(n.touchedFields,o),n.isSubmitted,E,D),_=U(o,S,p);C(v,o,g),p?(l._f.onBlur&&l._f.onBlur(e),t&&t(0)):l._f.onChange&&l._f.onChange(e);const b=R(o,g,p,!1),w=!A(b)||_;if(!p&&L.values.next({name:o,type:e.type,values:{...v}}),m)return x.isValid&&T(),w&&L.state.next({name:o,..._?{}:b});if(!p&&_&&L.state.next({...n}),i.resolver){const{errors:e}=await F([o]);if(h(g),r){const t=Se(n.errors,a,o),i=Se(e,a,t.name||o);c=i.error,o=i.name,u=A(e)}}else I([o],!0),c=(await re(l,v,N,i.shouldUseNativeValidation))[o],I([o]),h(g),r&&(c?u=!1:x.isValid&&(u=await V(a,!0)));r&&(l._f.deps&&te(l._f.deps),P(o,u,c,b))}},ee=(e,t)=>{if(f(n.errors,t)&&e.focus)return e.focus(),1},te=async(e,t={})=>{let s,o;const r=O(e);if(i.resolver){const t=await(async e=>{const{errors:t}=await F(e);if(e)for(const i of e){const e=f(t,i);e?C(n.errors,i,e):ae(n.errors,i)}else n.errors=t;return t})(m(e)?e:r);s=A(t),o=e?!r.some((e=>f(t,e))):s}else e?(o=(await Promise.all(r.map((async e=>{const t=f(a,e);return await V(t&&t._f?{[e]:t}:t)})))).every(Boolean),(o||n.isValid)&&T()):o=s=await V(a);return L.state.next({...!B(e)||x.isValid&&s!==n.isValid?{}:{name:e},...i.resolver||!e?{isValid:s}:{},errors:n.errors}),t.shouldFocus&&!o&&K(a,ee,e?r:S.mount),o},ie=e=>{const t={...b.mount?v:c};return m(e)?t:B(e)?f(t,e):e.map((e=>f(t,e)))},ne=(e,t)=>({invalid:!!f((t||n).errors,e),isDirty:!!f((t||n).dirtyFields,e),error:f((t||n).errors,e),isValidating:!!f(n.validatingFields,e),isTouched:!!f((t||n).touchedFields,e)}),se=(e,t,i)=>{const s=(f(a,e,{_f:{}})._f||{}).ref,o=f(n.errors,e)||{},{ref:r,message:l,type:d,...h}=o;C(n.errors,e,{...h,...t,ref:s}),L.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&s&&s.focus&&s.focus()},oe=(e,t={})=>{for(const s of e?O(e):S.mount)S.mount.delete(s),S.array.delete(s),t.keepValue||(ae(a,s),ae(v,s)),!t.keepError&&ae(n.errors,s),!t.keepDirty&&ae(n.dirtyFields,s),!t.keepTouched&&ae(n.touchedFields,s),!t.keepIsValidating&&ae(n.validatingFields,s),!i.shouldUnregister&&!t.keepDefaultValue&&ae(c,s);L.values.next({values:{...v}}),L.state.next({...n,...t.keepDirty?{isDirty:H()}:{}}),!t.keepIsValid&&T()},pe=({disabled:e,name:t,field:i,fields:n,value:s})=>{if(_(e)&&b.mount||e){const o=e?void 0:m(s)?be(i?i._f:f(n,t)._f):s;C(v,t,o),R(t,o,!1,!1,!0)}},me=(e,t={})=>{let n=f(a,e);const s=_(t.disabled);return C(a,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),S.mount.add(e),n?pe({field:n,disabled:t.disabled,name:e,value:t.value}):M(e,!0,t.value),{...s?{disabled:t.disabled}:{},...i.progressive?{required:!!t.required,min:ye(t.min),max:ye(t.max),minLength:ye(t.minLength),maxLength:ye(t.maxLength),pattern:ye(t.pattern)}:{},name:e,onChange:J,onBlur:J,ref:s=>{if(s){me(e,t),n=f(a,e);const i=m(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,o=ue(i),r=n._f.refs||[];if(o?r.find((e=>e===i)):i===n._f.ref)return;C(a,e,{_f:{...n._f,...o?{refs:[...r.filter(ge),i,...Array.isArray(f(c,e))?[{}]:[]],ref:{type:i.type,name:e}}:{ref:i}}}),M(e,!1,void 0,i)}else n=f(a,e,{}),n._f&&(n._f.mount=!1),(i.shouldUnregister||t.shouldUnregister)&&(!h(S.array,e)||!b.action)&&S.unMount.add(e)}}},fe=()=>i.shouldFocusError&&K(a,ee,S.mount),De=(e,t)=>async s=>{let o;s&&(s.preventDefault&&s.preventDefault(),s.persist&&s.persist());let r=g(v);if(L.state.next({isSubmitting:!0}),i.resolver){const{errors:e,values:t}=await F();n.errors=e,r=t}else await V(a);if(ae(n.errors,"root"),A(n.errors)){L.state.next({errors:{}});try{await e(r,s)}catch(l){o=l}}else t&&await t({...n.errors},s),fe(),setTimeout(fe);if(L.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:A(n.errors)&&!o,submitCount:n.submitCount+1,errors:n.errors}),o)throw o},Ee=(t,i={})=>{const s=t?g(t):c,o=g(s),r=A(t),l=r?c:o;if(i.keepDefaultValues||(c=s),!i.keepValues){if(i.keepDirtyValues)for(const e of S.mount)f(n.dirtyFields,e)?C(l,e,f(v,e)):X(e,f(l,e));else{if(u&&m(t))for(const e of S.mount){const t=f(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Q(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}v=e.shouldUnregister?i.keepDefaultValues?g(c):{}:g(l),L.array.next({values:{...l}}),L.values.next({values:{...l}})}S={mount:i.keepDirtyValues?S.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!x.isValid||!!i.keepIsValid||!!i.keepDirtyValues,b.watch=!!e.shouldUnregister,L.state.next({submitCount:i.keepSubmitCount?n.submitCount:0,isDirty:!r&&(i.keepDirty?n.isDirty:!(!i.keepDefaultValues||he(t,c))),isSubmitted:!!i.keepIsSubmitted&&n.isSubmitted,dirtyFields:r?{}:i.keepDirtyValues?i.keepDefaultValues&&v?_e(c,v):n.dirtyFields:i.keepDefaultValues&&t?_e(c,t):i.keepDirty?n.dirtyFields:{},touchedFields:i.keepTouched?n.touchedFields:{},errors:i.keepErrors?n.errors:{},isSubmitSuccessful:!!i.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},Ne=(e,t)=>Ee(q(e)?e(v):e,t);return{control:{register:me,unregister:oe,getFieldState:ne,handleSubmit:De,setError:se,_executeSchema:F,_getWatch:z,_getDirty:H,_updateValid:T,_removeUnmounted:()=>{for(const e of S.unMount){const t=f(a,e);t&&(t._f.refs?t._f.refs.every((e=>!ge(e))):!ge(t._f.ref))&&oe(e)}S.unMount=new Set},_updateFieldArray:(e,t=[],i,s,o=!0,r=!0)=>{if(s&&i){if(b.action=!0,r&&Array.isArray(f(a,e))){const t=i(f(a,e),s.argA,s.argB);o&&C(a,e,t)}if(r&&Array.isArray(f(n.errors,e))){const t=i(f(n.errors,e),s.argA,s.argB);o&&C(n.errors,e,t),xe(n.errors,e)}if(x.touchedFields&&r&&Array.isArray(f(n.touchedFields,e))){const t=i(f(n.touchedFields,e),s.argA,s.argB);o&&C(n.touchedFields,e,t)}x.dirtyFields&&(n.dirtyFields=_e(c,v)),L.state.next({name:e,isDirty:H(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else C(v,e,t)},_updateDisabledField:pe,_getFieldArray:t=>p(f(b.mount?v:c,t,e.shouldUnregister?f(c,t,[]):[])),_reset:Ee,_resetDefaultValues:()=>q(i.defaultValues)&&i.defaultValues().then((e=>{Ne(e,i.resetOptions),L.state.next({isLoading:!1})})),_updateFormState:e=>{n={...n,...e}},_disableForm:e=>{_(e)&&(L.state.next({disabled:e}),K(a,((t,i)=>{const n=f(a,i);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach((t=>{t.disabled=n._f.disabled||e})))}),0,!1))},_subjects:L,_proxyFormState:x,_setErrors:e=>{n.errors=e,L.state.next({errors:n.errors,isValid:!1})},get _fields(){return a},get _formValues(){return v},get _state(){return b},set _state(e){b=e},get _defaultValues(){return c},get _names(){return S},set _names(e){S=e},get _formState(){return n},set _formState(e){n=e},get _options(){return i},set _options(e){i={...i,...e}}},trigger:te,register:me,handleSubmit:De,watch:(e,t)=>q(e)?L.values.subscribe({next:i=>e(z(void 0,t),i)}):z(e,t,!0),setValue:X,getValues:ie,reset:Ne,resetField:(e,t={})=>{f(a,e)&&(m(t.defaultValue)?X(e,g(f(c,e))):(X(e,t.defaultValue),C(c,e,g(t.defaultValue))),t.keepTouched||ae(n.touchedFields,e),t.keepDirty||(ae(n.dirtyFields,e),n.isDirty=t.defaultValue?H(e,g(f(c,e))):H()),t.keepError||(ae(n.errors,e),x.isValid&&T()),L.state.next({...n}))},clearErrors:e=>{e&&O(e).forEach((e=>ae(n.errors,e))),L.state.next({errors:e?n.errors:{}})},unregister:oe,setError:se,setFocus:(e,t={})=>{const i=f(a,e),n=i&&i._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:ne}}function Ee(e={}){const t=n.useRef(),i=n.useRef(),[s,o]=n.useState({isDirty:!1,isValidating:!1,isLoading:q(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:q(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...De(e),formState:s});const r=t.current.control;return r._options=e,F({subject:r._subjects.state,next:e=>{R(e,r._proxyFormState,r._updateFormState,!0)&&o({...r._formState})}}),n.useEffect((()=>r._disableForm(e.disabled)),[r,e.disabled]),n.useEffect((()=>{if(r._proxyFormState.isDirty){const e=r._getDirty();e!==s.isDirty&&r._subjects.state.next({isDirty:e})}}),[r,s.isDirty]),n.useEffect((()=>{e.values&&!he(e.values,i.current)?(r._reset(e.values,r._options.resetOptions),i.current=e.values,o((e=>({...e})))):r._resetDefaultValues()}),[e.values,r]),n.useEffect((()=>{e.errors&&r._setErrors(e.errors)}),[e.errors,r]),n.useEffect((()=>{r._state.mount||(r._updateValid(),r._state.mount=!0),r._state.watch&&(r._state.watch=!1,r._subjects.state.next({...r._formState})),r._removeUnmounted()})),n.useEffect((()=>{e.shouldUnregister&&r._subjects.values.next({values:r._getWatch()})}),[e.shouldUnregister,r]),t.current.formState=M(s,r),t.current}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/654.863ea445.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/654.863ea445.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/654.863ea445.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/654.863ea445.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/6548.72446369.chunk.js b/ydb/core/viewer/monitoring/static/js/6548.72446369.chunk.js new file mode 100644 index 00000000000..fd4afa98360 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6548.72446369.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6548],{79737:(e,t,a)=>{"use strict";a.d(t,{A:()=>o,X:()=>l});var n=a(5874),r=a(77506),s=a(60712);const i=(0,r.cn)("ydb-table");function o({children:e,className:t}){return(0,s.jsx)("div",{className:i("table-header-content",t),children:e})}function l({className:e,width:t,wrapperClassName:a,...r}){return(0,s.jsx)("div",{className:i(null,a),children:(0,s.jsx)(n.W,{headerCellClassName:({column:e})=>{var t;const a=null===(t=e.columnDef.meta)||void 0===t?void 0:t.align;return i("table-header-cell",{align:a})},cellClassName:e=>{var t,a;const n=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,r=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return i("table-cell",{align:n,"vertical-align":r})},className:i("table",{width:t},e),...r})})}},8300:(e,t,a)=>{"use strict";a.d(t,{BB:()=>i,TL:()=>l,XT:()=>o});var n=a(43733),r=a(32138),s=a(62422);const i={...r.A,'pre[class*="language-"]':{...r.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...r.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#a31515"},tablepath:{color:"#338186"},function:{color:"#7a3e9d"},udf:{color:"#7a3e9d"},type:{color:"#4d932d"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#001188"}},o={...s.A,'pre[class*="language-"]':{...s.A['pre[class*="language-"]'],background:"transparent",margin:0},'code[class*="language-"]':{...s.A['code[class*="language-"]'],background:"transparent",color:"var(--g-color-text-primary)",whiteSpace:"pre-wrap"},comment:{color:"#969896"},string:{color:"#ce9178"},tablepath:{color:"#338186"},function:{color:"#9e7bb0"},udf:{color:"#9e7bb0"},type:{color:"#6A8759"},boolean:{color:"#608b4e"},constant:{color:"#608b4e"},variable:{color:"#74b0df"}};function l(e){e.languages.yql={comment:[{pattern:/--.*$/m,greedy:!0},{pattern:/\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0}],tablepath:{pattern:/(`[\w/]+`\s*\.\s*)?`[^`]+`/,greedy:!0},string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},{pattern:/@@(?:[^@]|@(?!@))*@@/,greedy:!0}],variable:[{pattern:/\$[a-zA-Z_]\w*/,greedy:!0}],function:{pattern:new RegExp(`\\b(?:${n.XB.join("|")})\\b`,"i"),greedy:!0},keyword:{pattern:new RegExp(`\\b(?:${n.RE.join("|")})\\b`,"i"),greedy:!0},udf:{pattern:/[A-Za-z_]\w*::[A-Za-z_]\w*/,greedy:!0},type:{pattern:new RegExp(`\\b(?:${n.to.join("|")})\\b`,"i"),greedy:!0},boolean:{pattern:/\b(?:true|false|null)\b/i,greedy:!0},number:{pattern:/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,greedy:!0},operator:{pattern:/[-+*/%<>!=&|^~]+|\b(?:and|or|not|is|like|ilike|rlike|in|between)\b/i,greedy:!0},punctuation:{pattern:/[;[\](){}.,]/,greedy:!0}}}l.displayName="yql",l.aliases=["yql"]},76768:(e,t,a)=>{"use strict";a.d(t,{C:()=>b});var n=a(44992),r=a(44508),s=a(53850),i=a(62060),o=a.n(i),l=a(21334),c=a(24600);const d=l.F.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getTabletsInfo(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),u=(0,s.Mz)((e=>e),(e=>d.endpoints.getTabletsInfo.select(e)),{argsMemoize:s.i5,argsMemoizeOptions:{equalityCheck:o()}}),m=(0,s.Mz)((e=>e),((e,t)=>u(t)),((e,t)=>t(e).data)),p=(0,s.Mz)(((e,t)=>m(e,t)),(e=>(0,c.K)(e)),((e,t)=>null!==e&&void 0!==e&&e.TabletStateInfo?t?e.TabletStateInfo.map((e=>{var a;const n=void 0===e.NodeId||null===(a=t.get(e.NodeId))||void 0===a?void 0:a.Host;return{...e,fqdn:n}})):e.TabletStateInfo:[]));var h=a(77506),v=a(90182),g=a(88616),y=a(60712);const x=(0,h.cn)("tablets");function b({nodeId:e,path:t,database:a,className:s}){const[i]=(0,v.Nt)();let o={};const l=void 0===e?void 0:String(e);void 0!==l?o={nodeId:l,database:a}:t&&(o={path:t,database:a});const{currentData:c,isFetching:u,error:m}=d.useGetTabletsInfoQuery(0===Object.keys(o).length?n.hT:o,{pollingInterval:i}),h=u&&void 0===c,b=(0,v.N4)((e=>p(e,o)));return(0,y.jsxs)("div",{className:x(null,s),children:[m?(0,y.jsx)(r.o,{error:m}):null,c||h?(0,y.jsx)(g.Q,{tablets:b,database:a,loading:h}):null]})}},86681:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Tenant:()=>eg});var n=a(59284),r=a(61750),s=a(67087),i=a(64689),o=a(98167),l=a(61283),c=a(77506),d=a(60712);const u=(0,c.cn)("kv-split"),m=[0,100],p=[50,50];const h=function(e){const[t,a]=n.useState(),r=t=>{const{defaultSizePaneKey:a}=e;localStorage.setItem(a,t.join(","))};return n.useEffect((()=>{const{collapsedSizes:t,triggerCollapse:n}=e;if(n){const e=t||m;r(e),a(e)}}),[e.triggerCollapse]),n.useEffect((()=>{const{triggerExpand:t,defaultSizes:n}=e,s=n||p;t&&(r(s),a(s))}),[e.triggerExpand]),(0,d.jsx)(n.Fragment,{children:(0,d.jsx)(l.A,{direction:e.direction||"horizontal",sizes:t||(()=>{var t;const{defaultSizePaneKey:a,defaultSizes:n=p,initialSizes:r}=e;if(r)return r;return(null===(t=localStorage.getItem(a))||void 0===t?void 0:t.split(",").map(Number))||n})(),minSize:e.minSize||[0,0],onDrag:t=>{const{onSplitDragAdditional:a}=e;a&&a(),r(t)},className:u(null,e.direction||"horizontal"),gutterSize:8,onDragStart:()=>{const{onSplitStartDragAdditional:t}=e;t&&t(),a(void 0)},expandToMin:!0,children:e.children})})};var v=a(40174),g=a(53850),y=a(44992);let x=function(e){return e.EPathTypeInvalid="EPathTypeInvalid",e.EPathTypeDir="EPathTypeDir",e.EPathTypeTable="EPathTypeTable",e.EPathTypePersQueueGroup="EPathTypePersQueueGroup",e.EPathTypeSubDomain="EPathTypeSubDomain",e.EPathTypeTableIndex="EPathTypeTableIndex",e.EPathTypeExtSubDomain="EPathTypeExtSubDomain",e.EPathTypeColumnStore="EPathTypeColumnStore",e.EPathTypeColumnTable="EPathTypeColumnTable",e.EPathTypeCdcStream="EPathTypeCdcStream",e.EPathTypeExternalDataSource="EPathTypeExternalDataSource",e.EPathTypeExternalTable="EPathTypeExternalTable",e.EPathTypeView="EPathTypeView",e.EPathTypeReplication="EPathTypeReplication",e}({}),b=function(e){return e.EPathSubTypeEmpty="EPathSubTypeEmpty",e.EPathSubTypeSyncIndexImplTable="EPathSubTypeSyncIndexImplTable",e.EPathSubTypeAsyncIndexImplTable="EPathSubTypeAsyncIndexImplTable",e.EPathSubTypeStreamImpl="EPathSubTypeStreamImpl",e}({});let f=function(e){return e.ColumnCodecPlain="ColumnCodecPlain",e.ColumnCodecLZ4="ColumnCodecLZ4",e.ColumnCodecZSTD="ColumnCodecZSTD",e}({});let j=function(e){return e.METERING_MODE_RESERVED_CAPACITY="METERING_MODE_RESERVED_CAPACITY",e.METERING_MODE_REQUEST_UNITS="METERING_MODE_REQUEST_UNITS",e}({});const S={[b.EPathSubTypeSyncIndexImplTable]:"index_table",[b.EPathSubTypeAsyncIndexImplTable]:"index_table",[b.EPathSubTypeStreamImpl]:void 0,[b.EPathSubTypeEmpty]:void 0},T={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:"database",[x.EPathTypeExtSubDomain]:"database",[x.EPathTypeDir]:"directory",[x.EPathTypeColumnStore]:"directory",[x.EPathTypeTable]:"table",[x.EPathTypeTableIndex]:"index",[x.EPathTypeColumnTable]:"column_table",[x.EPathTypeCdcStream]:"stream",[x.EPathTypePersQueueGroup]:"topic",[x.EPathTypeExternalDataSource]:"external_data_source",[x.EPathTypeExternalTable]:"external_table",[x.EPathTypeView]:"view",[x.EPathTypeReplication]:"async_replication"},N={table:x.EPathTypeTable,index:x.EPathTypeTableIndex,column_table:x.EPathTypeColumnTable,external_table:x.EPathTypeExternalTable,view:x.EPathTypeView},E=(e=x.EPathTypeDir,t,a="directory")=>t&&S[t]||T[e]||a,w={[b.EPathSubTypeSyncIndexImplTable]:"Secondary Index Table",[b.EPathSubTypeAsyncIndexImplTable]:"Secondary Index Table",[b.EPathSubTypeStreamImpl]:void 0,[b.EPathSubTypeEmpty]:void 0},C={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:"Database",[x.EPathTypeExtSubDomain]:"Database",[x.EPathTypeDir]:"Directory",[x.EPathTypeTable]:"Table",[x.EPathTypeTableIndex]:"Secondary Index",[x.EPathTypeColumnStore]:"Tablestore",[x.EPathTypeColumnTable]:"Column-oriented table",[x.EPathTypeCdcStream]:"Changefeed",[x.EPathTypePersQueueGroup]:"Topic",[x.EPathTypeExternalDataSource]:"External Data Source",[x.EPathTypeExternalTable]:"External Table",[x.EPathTypeView]:"View",[x.EPathTypeReplication]:"Async Replication"},P={UnknownTenantType:"Database",Domain:"Cluster Root",Dedicated:"Dedicated Database",Shared:"Shared Database",Serverless:"Serverless Database"},I={[x.EPathTypeTable]:!0,[x.EPathTypeColumnTable]:!0,[x.EPathTypeExternalTable]:!0,[x.EPathTypeView]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeReplication]:!1},D=e=>{var t;return null!==(t=e&&I[e])&&void 0!==t&&t},A={[b.EPathSubTypeSyncIndexImplTable]:!0,[b.EPathSubTypeAsyncIndexImplTable]:!0,[b.EPathSubTypeStreamImpl]:!1,[b.EPathSubTypeEmpty]:!1},_=e=>{var t;return null!==(t=e&&A[e])&&void 0!==t&&t},R={[x.EPathTypeColumnStore]:!0,[x.EPathTypeColumnTable]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1},k=e=>{var t;return null!==(t=e&&R[e])&&void 0!==t&&t},O={[x.EPathTypeSubDomain]:!0,[x.EPathTypeExtSubDomain]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeCdcStream]:!1,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1},M=e=>{var t;return null!==(t=e&&O[e])&&void 0!==t&&t},L={[x.EPathTypeCdcStream]:!0,[x.EPathTypePersQueueGroup]:!1,[x.EPathTypeInvalid]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1,[x.EPathTypeExternalDataSource]:!1,[x.EPathTypeExternalTable]:!1,[x.EPathTypeView]:!1,[x.EPathTypeReplication]:!1},z=e=>{var t;return null!==(t=e&&L[e])&&void 0!==t&&t},F={[b.EPathSubTypeSyncIndexImplTable]:!0,[b.EPathSubTypeAsyncIndexImplTable]:!0,[b.EPathSubTypeStreamImpl]:!1,[b.EPathSubTypeEmpty]:!1},q={[x.EPathTypeCdcStream]:!0,[x.EPathTypePersQueueGroup]:!0,[x.EPathTypeExternalDataSource]:!0,[x.EPathTypeExternalTable]:!0,[x.EPathTypeView]:!0,[x.EPathTypeReplication]:!0,[x.EPathTypeInvalid]:!1,[x.EPathTypeColumnStore]:!1,[x.EPathTypeColumnTable]:!1,[x.EPathTypeDir]:!1,[x.EPathTypeTable]:!1,[x.EPathTypeSubDomain]:!1,[x.EPathTypeTableIndex]:!1,[x.EPathTypeExtSubDomain]:!1},Q=(e,t)=>{var a;return null!==(a=t&&F[t]||e&&q[e])&&void 0!==a&&a},U=e=>e===x.EPathTypeExternalTable,B=e=>e===x.EPathTypeTable,$=e=>e===x.EPathTypeView;var H=a(21334);const G=H.F.injectEndpoints({endpoints:e=>({getMultiOverview:e.query({queryFn:async({paths:e,database:t},{signal:a})=>{try{return{data:await Promise.all(e.map((e=>window.api.viewer.getDescribe({path:e,database:t},{signal:a}))))}}catch(n){return{error:n}}},keepUnusedDataFor:0,providesTags:["All"]}),getOverview:e.query({queryFn:async({path:e,database:t,timeout:a},{signal:n})=>{try{return{data:await window.api.viewer.getDescribe({path:e,database:t,timeout:a},{signal:n})}}catch(r){return{error:r}}},keepUnusedDataFor:0,providesTags:["All"]})})}),W=(0,g.Mz)((e=>e),((e,t)=>t),((e,t)=>G.endpoints.getOverview.select({path:e,database:t}))),V=(0,g.Mz)((e=>e),((e,t,a)=>W(t,a)),((e,t)=>t(e).data)),J=(0,g.Mz)([(e,t)=>t,(e,t,a)=>a,(e,t,a,n)=>((e,t,a)=>{var n,r;return null===(n=V(e,t,a))||void 0===n||null===(r=n.PathDescription)||void 0===r?void 0:r.Children})(e,t,n)],((e,t,a)=>z(t)?null===a||void 0===a?void 0:a.map((({Name:t})=>e+"/"+t)):void 0));function Y({paths:e,database:t,autoRefreshInterval:a}){const[n,...r]=e,{currentData:s,isFetching:i,error:o}=G.useGetOverviewQuery({path:n,database:t},{pollingInterval:a}),{currentData:l,isFetching:c,error:d}=G.useGetMultiOverviewQuery(r.length?{paths:r,database:t}:y.hT,{pollingInterval:a});return{loading:i&&void 0===s||c&&void 0===l,error:o||d,mergedDescribe:[s,...null!==l&&void 0!==l?l:[]].reduce(((e,t)=>(null!==t&&void 0!==t&&t.Path&&(e[t.Path]=t),e)),{})}}var K=a(76086),Z=a(90182),X=a(81288),ee=a(22680),te=a(52531),ae=a(23871),ne=a(52905),re=a(90053),se=a(67028),ie=a(18517),oe=a(24555),le=a(74321),ce=a(44508),de=a(52248),ue=a(90565),me=a(49818),pe=a(56839),he=a(61758),ve=a.n(he),ge=a(92459),ye=a(58351);const xe=(0,c.cn)("heatmap"),be={width:0,height:0},fe=10,je=e=>{const[t,a]=n.useState(be),{tablets:r}=e,s=n.useRef(null),i=n.useRef(null);n.useEffect((()=>{const e=s.current,a=e.getContext("2d");a.clearRect(0,0,e.offsetWidth,e.offsetHeight),r.map(function(e){return(a,n)=>{const{columnsCount:r}=t,s=n%r*12,i=12*Math.floor(n/r);e.fillStyle=a.color||"grey",e.fillRect(s,i,fe,fe)}}(a))})),n.useLayoutEffect((()=>{const e=i.current;if(e){const t=e.offsetWidth-15,n=Math.floor(t/12),s=Math.ceil(r.length/n);a({width:t,height:12*s,columnsCount:n,rowsCount:s})}}),[]);const o=()=>{let e=s.current,t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},l=()=>{let e=s.current,t=0;for(;e;)t+=e.offsetLeft,e=e.offsetParent;return t},c=(e,a)=>{const{columnsCount:n}=t,r=Math.floor(e/12);return n*Math.floor(a/12)+r},u=ve()(((t,a)=>{const n=new CustomEvent("scroll");window.dispatchEvent(n);const s=e.parentRef.current,i=t-l()+s.scrollLeft,d=a-o()+s.scrollTop,u=c(i,d),m=r[u];if(m){const n={name:m.currentMetric,value:m.formattedValue};e.showTooltip(void 0,m,"tablet",n,{left:t-20,top:a-20})}else e.hideTooltip()}),20);return(0,d.jsx)("div",{ref:i,className:xe("canvas-container"),onMouseLeave:()=>{setTimeout((()=>{e.hideTooltip()}),40)},children:(0,d.jsx)("canvas",{ref:s,width:t.width,height:t.height,onClick:t=>{const a=e.parentRef.current,n=t.clientX-l()+a.scrollLeft,s=t.clientY-o()+a.scrollTop,i=c(n,s),d=r[i];d&&window.open((e=>{const{TabletId:t}=e,a=window.location.hostname,n=(0,ge.DM)(t);return`https://${[a,ye.P8,n].map((e=>e.startsWith("/")?e.slice(1):e)).filter(Boolean).join("/")}`})(d),"_blank")},onMouseMove:e=>u(e.clientX,e.clientY)})})},Se={r:255,g:4,b:0},Te={r:255,g:219,b:77},Ne={r:59,g:201,b:53},Ee={CPU:{min:0,max:1e6},Network:{min:0,max:1e9},Storage:{min:0,max:2e9},DataSize:{min:0,max:2e9},RowCount:{min:0},IndexSize:{min:0}},we=e=>{const t=e.toString(16);return 1===t.length?`0${t}`:t},Ce=(e,t,a)=>{if(1===e)return[t];if(2===e)return[t,a];const n=(t.r-a.r)/(e-1),r=(t.g-a.g)/(e-1),s=(t.b-a.b)/(e-1),i=[];for(let o=0;o<e;o++)i.push({r:Math.round(t.r-n*o),g:Math.round(t.g-r*o),b:Math.round(t.b-s*o)});return i.map((e=>(({r:e,g:t,b:a})=>`#${we(e)}${we(t)}${we(a)}`)(e)))},Pe=e=>{const t=Math.floor(e/2),a=t+1;return[...Ce(e%2===0?t:t+1,Ne,Te),...Ce(a,Te,Se).slice(1)]},Ie=(e,t)=>{const a=new Set,n=Ee[e]||{};t.forEach((t=>{var n;a.add(Number(null===(n=t.metrics)||void 0===n?void 0:n[e]))})),Number.isInteger(n.min)&&a.add(n.min),Number.isInteger(n.max)&&a.add(n.max);const r=Array.from(a.values()).sort(((e,t)=>e-t));return{min:r[0],max:r[r.length-1]}},De=(0,c.cn)("histogram"),Ae=e=>{const t=n.useRef(),{data:a={},maxCount:r}=e,{count:s,leftBound:i,rightBound:o,color:l}=a,c=s/r*100;return(0,d.jsx)("div",{ref:t,className:De("item"),style:{backgroundColor:l,height:`${c}%`},onMouseEnter:()=>{const a=t.current;e.showTooltip(a,{count:s,leftBound:i,rightBound:o},"histogram")},onMouseLeave:e.hideTooltip})},_e=e=>{const{tablets:t,currentMetric:a}=e,{min:n,max:r}=Ie(a,t),s=Pe(50),i=(r-n)/50,o=s.map(((e,t)=>({color:e,count:0,leftBound:(0,pe.ZV)(n+t*i),rightBound:(0,pe.ZV)(n+(t+1)*i)})));let l=0;t.forEach((e=>{var t,n;const r=a&&Number(null===(t=e.metrics)||void 0===t?void 0:t[a]),s=Math.floor(r/i),c=(null===(n=o[s])||void 0===n?void 0:n.count)+1;c>l&&(l=c),o[s]={...o[s],count:c}}));return(0,d.jsx)("div",{className:De(),children:(0,d.jsxs)("div",{className:De("chart"),children:[Boolean(r)&&o.map(((t,a)=>(0,d.jsx)(Ae,{data:t,maxCount:l,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip},a))),(0,d.jsx)("div",{className:De("x-min"),children:(0,pe.ZV)(n)}),(0,d.jsx)("div",{className:De("x-max"),children:(0,pe.ZV)(r)}),(0,d.jsx)("div",{className:De("y-min"),children:"0"}),(0,d.jsx)("div",{className:De("y-max"),children:(0,pe.ZV)(l)})]})})},Re=(0,c.cn)("heatmap"),ke=Pe(500),Oe=({path:e,database:t})=>{const a=(0,Z.YQ)(),r=n.createRef(),[s]=(0,Z.Nt)(),{currentData:i,isFetching:o,error:l}=ue.f1.useGetHeatmapTabletsInfoQuery({path:e,database:t},{pollingInterval:s}),c=o&&void 0===i,{tablets:u=[],metrics:m}=i||{},{sort:p,heatmap:h,currentMetric:v}=(0,Z.N4)((e=>e.heatmap)),g=(...e)=>{a((0,me.DK)(...e))},y=()=>{a((0,me.w7)())},x=e=>{a((0,ue.nd)({currentMetric:e[0]}))},b=()=>{a((0,ue.nd)({sort:!p}))},f=()=>{a((0,ue.nd)({heatmap:!h}))},j=()=>{const{min:e,max:t}=Ie(v,u),a=u.map((a=>{var n;const r=v&&Number(null===(n=a.metrics)||void 0===n?void 0:n[v]),s=((e,t,a)=>0===a?0:Math.round((e-t)/(a-t)*499))(r,e,t),i=ke[s];return{...a,color:i,value:r,formattedValue:(0,pe.ZV)(r),currentMetric:v}})),n=p?a.sort(((e,t)=>Number(t.value)-Number(e.value))):a;return(0,d.jsx)("div",{ref:r,className:Re("items"),children:(0,d.jsx)(je,{tablets:n,parentRef:r,showTooltip:g,hideTooltip:y})})};return c?(0,d.jsx)(de.a,{}):(()=>{const{min:e,max:t}=Ie(v,u);let a;return l&&!i||(a=h?j():(0,d.jsx)(_e,{tablets:u,currentMetric:v,showTooltip:g,hideTooltip:y})),(0,d.jsxs)("div",{className:Re(),children:[(0,d.jsxs)("div",{className:Re("filters"),children:[(0,d.jsx)(oe.l,{className:Re("heatmap-select"),value:v?[v]:[],options:m,onUpdate:x,width:200}),(0,d.jsx)("div",{className:Re("sort-checkbox"),children:(0,d.jsx)(le.S,{onUpdate:b,checked:p,children:"Sort"})}),(0,d.jsx)("div",{className:Re("histogram-checkbox"),children:(0,d.jsx)(le.S,{onUpdate:f,checked:h,children:"Heatmap"})}),(0,d.jsxs)("div",{className:Re("limits"),children:[(0,d.jsxs)("div",{className:Re("limits-block"),children:[(0,d.jsx)("div",{className:Re("limits-title"),children:"min:"}),(0,d.jsx)("div",{className:Re("limits-value"),children:Number.isInteger(e)?(0,pe.ZV)(e):"\u2014"})]}),(0,d.jsxs)("div",{className:Re("limits-block"),children:[(0,d.jsx)("div",{className:Re("limits-title"),children:"max:"}),(0,d.jsx)("div",{className:Re("limits-value"),children:Number.isInteger(t)?(0,pe.ZV)(t):"\u2014"})]}),(0,d.jsxs)("div",{className:Re("limits-block"),children:[(0,d.jsx)("div",{className:Re("limits-title"),children:"count:"}),(0,d.jsx)("div",{className:Re("limits-value"),children:(0,pe.ZV)(u.length)})]})]})]}),l?(0,d.jsx)(ce.o,{error:l}):null,a]})})()};var Me=a(7117),Le=a(59109),ze=a(17594),Fe=a(89073);const qe=H.F.injectEndpoints({endpoints:e=>({getOperationList:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.getOperationList(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]}),cancelOperation:e.mutation({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.cancelOperation(e,{signal:t})}}catch(a){return{error:a}}}}),forgetOperation:e.mutation({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.operation.forgetOperation(e,{signal:t})}}catch(a){return{error:a}}}})}),overrideExisting:"throw"});var Qe=a(28539),Ue=a(95963),Be=a(48372);const $e=JSON.parse('{"label_operations":"Operations","title_empty":"No operations data","pleaceholder_search":"Search operations","placeholder_kind":"Select operation kind","kind_ssBackgrounds":"SS/Backgrounds","kind_export":"Export","kind_buildIndex":"Build Index","column_operationId":"Operation ID","column_status":"Status","column_createdBy":"Created By","column_createTime":"Create Time","column_endTime":"End Time","column_duration":"Duration","label_duration-ongoing":"{{value}} (ongoing)","header_cancel":"Cancel operation","header_forget":"Forget operation","text_cancel":"The operation will be cancelled. Do you want to proceed?","text_forget":"The operation will be forgotten. Do you want to proceed?","text_forgotten":"The operation {{id}} has been forgotten","text_cancelled":"The operation {{id}} has been cancelled"}'),He=(0,Be.g4)("ydb-operations",{en:$e}),Ge="id",We="status",Ve="created_by",Je="create_time",Ye="end_time",Ke="duration",Ze={[Ge]:He("column_operationId"),[We]:He("column_status"),[Ve]:He("column_createdBy"),[Je]:He("column_createTime"),[Ye]:He("column_endTime"),[Ke]:He("column_duration")},Xe=[{value:"export",content:He("kind_export")},{value:"ss/backgrounds",content:He("kind_ssBackgrounds")},{value:"buildindex",content:He("kind_buildIndex")}],et=(0,c.cn)("operations");function tt({kind:e,searchValue:t,entitiesCountCurrent:a,entitiesCountTotal:r,entitiesLoading:s,handleKindChange:i,handleSearchChange:o}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Ue.v,{value:t,onChange:o,placeholder:He("pleaceholder_search"),className:et("search")}),(0,d.jsx)(oe.l,{value:[e],width:150,options:Xe,onUpdate:e=>i(e[0])}),(0,d.jsx)(Qe.T,{label:He("label_operations"),loading:s,total:r,current:a})]})}var at=a(14750),nt=a(58272),rt=a(45345),st=a(98089),it=a(87184),ot=a(18650),lt=a(99991),ct=a(22983),dt=a(71661);let ut=function(e){return e.STATUS_CODE_UNSPECIFIED="STATUS_CODE_UNSPECIFIED",e.SUCCESS="SUCCESS",e.BAD_REQUEST="BAD_REQUEST",e.UNAUTHORIZED="UNAUTHORIZED",e.INTERNAL_ERROR="INTERNAL_ERROR",e.ABORTED="ABORTED",e.UNAVAILABLE="UNAVAILABLE",e.OVERLOADED="OVERLOADED",e.SCHEME_ERROR="SCHEME_ERROR",e.GENERIC_ERROR="GENERIC_ERROR",e.TIMEOUT="TIMEOUT",e.BAD_SESSION="BAD_SESSION",e.PRECONDITION_FAILED="PRECONDITION_FAILED",e.ALREADY_EXISTS="ALREADY_EXISTS",e.NOT_FOUND="NOT_FOUND",e.SESSION_EXPIRED="SESSION_EXPIRED",e.CANCELLED="CANCELLED",e.UNDETERMINED="UNDETERMINED",e.UNSUPPORTED="UNSUPPORTED",e.SESSION_BUSY="SESSION_BUSY",e.EXTERNAL_ERROR="EXTERNAL_ERROR",e}({});var mt=a(59625);const pt=function({name:e,title:t,type:a,content:n}){return mt.X.add({name:null!==e&&void 0!==e?e:"Request succeeded",title:null!==t&&void 0!==t?t:"Request succeeded",theme:"error"===a?"danger":"success",content:n,isClosable:!0,autoHiding:"success"===a&&5e3})};var ht=a(73891);function vt({database:e,refreshTable:t}){return[{name:Ge,header:Ze[Ge],width:340,render:({row:e})=>e.id?(0,d.jsx)(dt.s,{placement:["top","bottom"],content:e.id,children:e.id}):K.Pd},{name:We,header:Ze[We],render:({row:e})=>e.status?(0,d.jsx)(st.E,{color:e.status===ut.SUCCESS?"positive":"danger",children:e.status}):K.Pd},{name:Ve,header:Ze[Ve],render:({row:e})=>e.created_by?e.created_by:K.Pd},{name:Je,header:Ze[Je],render:({row:e})=>e.create_time?(0,pe.r6)((0,ht.ee)(e.create_time)):K.Pd,sortAccessor:e=>e.create_time?(0,ht.ee)(e.create_time):0},{name:Ye,header:Ze[Ye],render:({row:e})=>e.end_time?(0,pe.r6)((0,ht.ee)(e.end_time)):K.Pd,sortAccessor:e=>e.end_time?(0,ht.ee)(e.end_time):Number.MAX_SAFE_INTEGER},{name:Ke,header:Ze[Ke],render:({row:e})=>{let t=0;if(!e.create_time)return K.Pd;const a=(0,ht.ee)(e.create_time);if(e.end_time){t=(0,ht.ee)(e.end_time)-a}else t=Date.now()-a;const n=t>K.Jg*K.KF?(0,at.p0)(t).format("hh:mm:ss"):(0,at.p0)(t).format("mm:ss");return e.end_time?n:He("label_duration-ongoing",{value:n})},sortAccessor:e=>{if(!e.create_time)return 0;const t=(0,ht.ee)(e.create_time);if(e.end_time){return(0,ht.ee)(e.end_time)-t}return Date.now()-t}},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:a})=>(0,d.jsx)(gt,{operation:a,database:e,refreshTable:t})}]}function gt({operation:e,database:t,refreshTable:a}){const[n,{isLoading:r}]=qe.useCancelOperationMutation(),[s,{isLoading:i}]=qe.useForgetOperationMutation(),o=e.id;return o?(0,d.jsxs)(it.s,{gap:"2",children:[(0,d.jsx)(ot.m,{title:He("header_forget"),placement:["left","auto"],children:(0,d.jsx)("div",{children:(0,d.jsx)(ct.B,{buttonView:"outlined",dialogHeader:He("header_forget"),dialogText:He("text_forget"),onConfirmAction:()=>s({id:o,database:t}).unwrap().then((()=>{pt({name:"Forgotten",title:He("text_forgotten",{id:o}),type:"success"}),a()})),buttonDisabled:r,children:(0,d.jsx)(lt.I,{data:nt.A})})})}),(0,d.jsx)(ot.m,{title:He("header_cancel"),placement:["right","auto"],children:(0,d.jsx)("div",{children:(0,d.jsx)(ct.B,{buttonView:"outlined",dialogHeader:He("header_cancel"),dialogText:He("text_cancel"),onConfirmAction:()=>n({id:o,database:t}).unwrap().then((()=>{pt({name:"Cancelled",title:He("text_cancelled",{id:o}),type:"success"}),a()})),buttonDisabled:i,children:(0,d.jsx)(lt.I,{data:rt.A})})})})]}):null}var yt=a(370);const xt=yt.z.enum(["ss/backgrounds","export","buildindex"]).catch("buildindex");function bt({database:e}){var t;const[a]=(0,Z.Nt)(),{kind:r,searchValue:i,pageSize:o,pageToken:l,handleKindChange:c,handleSearchChange:u}=function(){var e,t,a;const[n,r]=(0,s.useQueryParams)({kind:s.StringParam,search:s.StringParam,pageSize:s.NumberParam,pageToken:s.StringParam});return{kind:xt.parse(n.kind),searchValue:null!==(e=n.search)&&void 0!==e?e:"",pageSize:null!==(t=n.pageSize)&&void 0!==t?t:void 0,pageToken:null!==(a=n.pageToken)&&void 0!==a?a:void 0,handleKindChange:e=>{r({kind:e},"replaceIn")},handleSearchChange:e=>{r({search:e||void 0},"replaceIn")},handlePageSizeChange:e=>{r({pageSize:e},"replaceIn")},handlePageTokenChange:e=>{r({pageToken:e},"replaceIn")}}}(),{data:m,isFetching:p,error:h,refetch:v}=qe.useGetOperationListQuery({database:e,kind:r,page_size:o,page_token:l},{pollingInterval:a}),g=n.useMemo((()=>null!==m&&void 0!==m&&m.operations?m.operations.filter((e=>{var t;return null===(t=e.id)||void 0===t?void 0:t.toLowerCase().includes(i.toLowerCase())})):[]),[null===m||void 0===m?void 0:m.operations,i]);return(0,X.Pq)(h)?(0,d.jsx)(Le.O,{position:"left"}):(0,d.jsxs)(Fe.L,{children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(tt,{kind:r,searchValue:i,entitiesCountCurrent:g.length,entitiesCountTotal:null===m||void 0===m||null===(t=m.operations)||void 0===t?void 0:t.length,entitiesLoading:p,handleKindChange:c,handleSearchChange:u})}),h?(0,d.jsx)(ce.o,{error:h}):null,(0,d.jsx)(Fe.L.Table,{loading:p,className:et("table"),children:m?(0,d.jsx)(ze.l,{columns:vt({database:e,refreshTable:v}),columnsWidthLSKey:"selectedOperationColumns",data:g,emptyDataMessage:He("title_empty")}):null})]})}var ft=a(99936),jt=a(76768),St=a(19228),Tt=a(11822);function Nt(e){return`SELECT * FROM \`${e}\` LIMIT 0`}const Et=H.F.injectEndpoints({endpoints:e=>({getViewSchema:e.query({queryFn:async({database:e,path:t,timeout:a})=>{try{var n,r;const s=await window.api.viewer.sendQuery({query:Nt(t),database:e,action:"execute-scan",timeout:a},{withRetries:!0});return(0,Tt.We)(s)?{error:s}:{data:(null===s||void 0===s||null===(n=s.result)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.columns)||[]}}catch(s){return{error:s}}},providesTags:["All"]})}),overrideExisting:"throw"});var wt=a(47665),Ct=a(24543);const Pt=JSON.parse('{"column-title.id":"Id","column-title.name":"Name","column-title.type":"Type","column-title.notNull":"NotNull","column-title.autoIncrement":"AutoIncrement","column-title.defaultValue":"Default","column-title.family":"Family","column-title.media":"Media","column-title.compression":"Compression","primary-key.title":"Primary key:","partitioning-key.title":"Partitioning key:"}'),It=(0,Be.g4)("ydb-schema-viewer",{en:Pt}),Dt=(0,c.cn)("schema-viewer");const At=({tableData:e,extended:t,type:a})=>{const n="primary"===a?function(e){return e.filter((e=>void 0!==e.keyColumnIndex&&-1!==e.keyColumnIndex&&e.name)).sort(((e,t)=>e.keyColumnIndex-t.keyColumnIndex)).map((e=>e.name))}(e):function(e){return e.filter((e=>e.isPartitioningKeyColumn&&e.name)).map((e=>e.name))}(e),r=t?3:n.length,s=n.slice(0,r),i=n.slice(r);return n.length>0?(0,d.jsxs)("div",{className:Dt("keys",{summary:!t,type:a}),children:[(0,d.jsx)("div",{className:Dt("keys-header"),children:It("primary"===a?"primary-key.title":"partitioning-key.title")}),(0,d.jsxs)("div",{className:Dt("keys-values"),children:[" "+s.join(", "),i.length?(0,d.jsx)(Ct.u,{className:Dt("more-badge"),placement:["bottom"],hasArrow:!1,pinOnClick:!0,content:(0,d.jsx)("div",{className:Dt("popup-content"),children:i.map((e=>(0,d.jsx)("div",{className:Dt("popup-item"),children:e},e)))}),children:(0,d.jsx)(wt.J,{className:Dt("keys-label"),children:`+${i.length}`})}):null]})]}):null};var _t=a(4557);const Rt="name",kt="type",Ot="notNull",Mt="autoIncrement",Lt="defaultValue",zt="familyName",Ft="prefferedPoolKind",qt="columnCodec",Qt={name:"id",get header(){return It("column-title.id")},width:60,render:({row:e})=>e.id},Ut={name:Rt,get header(){return It("column-title.name")},width:120,render:({row:e})=>e.name},Bt={name:kt,get header(){return It("column-title.type")},width:100,render:({row:e})=>e.type},$t={name:Ot,get header(){return It("column-title.notNull")},width:100,defaultOrder:_t.Ay.DESCENDING,render:({row:e})=>{if(e.notNull)return"\u2713"}},Ht={name:Mt,get header(){return It("column-title.autoIncrement")},width:100,defaultOrder:_t.Ay.DESCENDING,render:({row:e})=>{if(e.autoIncrement)return"\u2713"}},Gt={name:Lt,get header(){return It("column-title.defaultValue")},width:100,render:({row:e})=>String(e.defaultValue)},Wt={name:zt,get header(){return It("column-title.family")},width:100,render:({row:e})=>e.familyName},Vt={name:Ft,get header(){return It("column-title.media")},width:100,render:({row:e})=>e.prefferedPoolKind},Jt={name:qt,get header(){return It("column-title.compression")},width:130,render:({row:e})=>e.columnCodec};function Yt(e={}){const t=function(e){var t,a,n;return null!==(t=null===e||void 0===e||null===(a=e.PartitionConfig)||void 0===a||null===(n=a.ColumnFamilies)||void 0===n?void 0:n.reduce(((e,t)=>t.Id?{...e,[t.Id]:t}:e),{}))&&void 0!==t?t:{}}(e),{Columns:a,KeyColumnNames:n}=e,r=null===a||void 0===a?void 0:a.map((e=>{var a,r,s,i;const{Id:o,Name:l,NotNull:c,Type:d,Family:u,DefaultFromSequence:m,DefaultFromLiteral:p}=e,h=null!==(a=null===n||void 0===n?void 0:n.findIndex((e=>e===l)))&&void 0!==a?a:-1,v=u?t[u].Name:void 0,g=u?null===(r=t[u].StorageConfig)||void 0===r||null===(s=r.Data)||void 0===s?void 0:s.PreferredPoolKind:void 0,y=u?function(e){if(e)return e===f.ColumnCodecPlain?"None":e.replace("ColumnCodec","").toLocaleLowerCase()}(t[u].ColumnCodec):void 0;return{id:o,name:l,keyColumnIndex:h,type:d,notNull:c,autoIncrement:Boolean(m),defaultValue:null!==(i=Object.values((null===p||void 0===p?void 0:p.value)||{})[0])&&void 0!==i?i:"-",familyName:v,prefferedPoolKind:g,columnCodec:y}}));return[...(null===r||void 0===r?void 0:r.filter((e=>-1!==e.keyColumnIndex)))||[],...(null===r||void 0===r?void 0:r.filter((e=>-1===e.keyColumnIndex)))||[]]}function Kt(e,t){const{Table:a,ColumnTableDescription:n,ExternalTableDescription:r}=(null===t||void 0===t?void 0:t.PathDescription)||{};return B(e)?Yt(a):k(e)?function(e={}){const{Schema:t={},Sharding:a={}}=e,{Columns:n,KeyColumnNames:r}=t,{HashSharding:s={}}=a,{Columns:i=[]}=s,o=null===n||void 0===n?void 0:n.map((e=>{var t;const{Id:a,Name:n,Type:s,NotNull:o}=e,l=null!==(t=null===r||void 0===r?void 0:r.findIndex((e=>e===n)))&&void 0!==t?t:-1,c=Boolean(null===i||void 0===i?void 0:i.find((e=>e===n)));return{id:a,name:n,keyColumnIndex:l,isPartitioningKeyColumn:c,type:s,notNull:o}}));return[...(null===o||void 0===o?void 0:o.filter((e=>-1!==e.keyColumnIndex)))||[],...(null===o||void 0===o?void 0:o.filter((e=>-1===e.keyColumnIndex)))||[]]}(n):U(e)?function(e={}){const{Columns:t}=e;return(null===t||void 0===t?void 0:t.map((e=>{const{Id:t,Name:a,Type:n,NotNull:r}=e;return{id:t,name:a,type:n,notNull:r}})))||[]}(r):[]}function Zt(e){return(null===e||void 0===e?void 0:e.map((e=>{var t;return{type:null!==(t=e.type)&&void 0!==t&&t.endsWith("?")?e.type.slice(0,-1):e.type,name:e.name}})))||[]}const Xt=({type:e,path:t,tenantName:a,extended:r=!1})=>{const[s]=(0,Z.Nt)(),{currentData:i,isLoading:o}=G.useGetOverviewQuery({path:t,database:a},{pollingInterval:s}),l=$(e)?{path:t,database:a}:y.hT,{data:c,isLoading:u}=Et.useGetViewSchemaQuery(l),m=n.useMemo((()=>$(e)?Zt(c):Kt(e,i)),[i,e,c]),p=n.useMemo((()=>m.some((e=>e.autoIncrement))),[m]),h=n.useMemo((()=>m.some((e=>e.defaultValue))),[m]),v=n.useMemo((()=>$(e)?[Ut,Bt]:U(e)||k(e)?[Qt,Ut,Bt,$t]:B(e)?function(e,t,a){const n=[Qt,Ut,Bt,$t];return a&&n.push(Gt),e&&n.push(Wt,Vt,Jt),t&&n.push(Ht),n}(r,p,h):[]),[e,r,p,h]);return o||u?(0,d.jsx)(St.Q,{}):(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:Dt("keys-wrapper"),children:[(0,d.jsx)(At,{tableData:m,extended:r,type:"primary"}),(0,d.jsx)(At,{tableData:m,extended:r,type:"partitioning"})]}),(0,d.jsx)("div",{className:Dt(),children:(0,d.jsx)(ze.l,{columnsWidthLSKey:"schemaTableColumnsWidth",data:m,columns:v,settings:K.N3})})]})};var ea=a(54309),ta=a(96589),aa=a(84375),na=a(85589);const ra=JSON.parse('{"td-feature-flag":"Feature flag","td-default":"Default","td-current":"Current","enabled":"Enabled","disabled":"Disabled","flag-touched":"Flag is changed","search-placeholder":"Search by feature flag","search-empty":"Empty search result","no-data":"No data"}'),sa=(0,Be.g4)("ydb-diagnostics-configs",{en:ra}),ia=(0,c.cn)("ydb-diagnostics-configs"),oa=[{name:"Touched",header:"",render:({row:e})=>e.Current?(0,d.jsx)(aa.A,{content:sa("flag-touched"),className:ia("icon-touched"),placement:"left",children:(0,d.jsx)(lt.I,{data:ta.A})}):null,width:36,sortable:!1,resizeable:!1},{name:"Name",get header(){return sa("td-feature-flag")},render:({row:e})=>e.Current?(0,d.jsx)("b",{children:e.Name}):e.Name,width:400,sortable:!0,sortAccessor:({Current:e,Name:t})=>Number(!e)+t.toLowerCase()},{name:"Default",get header(){return sa("td-default")},render:({row:e})=>{switch(e.Default){case!0:return sa("enabled");case!1:return sa("disabled");default:return"-"}},width:100,sortable:!1,resizeable:!1},{name:"Current",get header(){return sa("td-current")},render:({row:e})=>{var t;return(0,d.jsx)(na.d,{disabled:!0,checked:(null!==(t=e.Current)&&void 0!==t?t:e.Default)||!1})},width:100,sortable:!1,resizeable:!1}],la=({database:e})=>{const[t,a]=(0,s.useQueryParam)("search",s.StringParam),[n]=(0,Z.Nt)(),{currentData:r=[],isFetching:i,error:o}=ie.z6.useGetClusterConfigQuery({database:e},{pollingInterval:n}),l=null===t||void 0===t?void 0:t.toLocaleLowerCase(),c=l?r.filter((e=>e.Name.toLocaleLowerCase().includes(l))):r;return(0,d.jsxs)(Fe.L,{children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Ue.v,{value:l,onChange:e=>{a(e||void 0,"replaceIn")},placeholder:sa("search-placeholder")})}),(0,d.jsx)(Fe.L.Table,{loading:i,children:o?(0,d.jsx)(ce.o,{error:o}):(0,d.jsx)(ze.l,{emptyDataMessage:sa(l?"search-empty":"no-data"),columnsWidthLSKey:"featureFlagsColumnsWidth",columns:oa,data:c,settings:K.N3})})]})};var ca=a(23536),da=a.n(ca),ua=a(46549);const ma=H.F.injectEndpoints({endpoints:e=>({getTopic:e.query({queryFn:async e=>{try{const t=await window.api.viewer.getTopic(e);return"object"!==typeof t?{error:{}}:{data:t}}catch(t){return{error:t}}},providesTags:["All"]})}),overrideExisting:"throw"}),pa=(0,g.Mz)((e=>e),((e,t)=>t),((e,t)=>ma.endpoints.getTopic.select({path:e,database:t}))),ha=(0,g.Mz)((e=>e),((e,t,a)=>pa(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.topic_stats})),va=(0,g.Mz)((e=>e),((e,t,a)=>pa(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.consumers})),ga=(0,g.Mz)(va,(e=>null===e||void 0===e?void 0:e.map((e=>null===e||void 0===e?void 0:e.name)).filter((e=>void 0!==e)))),ya=(0,g.Mz)(ha,(e=>{if(!e)return;const{store_size_bytes:t="0",min_last_write_time:a,max_write_time_lag:n,bytes_written:r}=e||{};return{storeSize:t,partitionsIdleTime:(0,ht.MC)(a),partitionsWriteLag:(0,ht.i6)(n),writeSpeed:(0,ua.ey)(r)}})),xa=(0,g.Mz)(va,(e=>null===e||void 0===e?void 0:e.map((e=>{const{name:t,consumer_stats:a}=e||{},{min_partitions_last_read_time:n,max_read_time_lag:r,max_write_time_lag:s,bytes_read:i}=a||{};return{name:t,readSpeed:(0,ua.ey)(i),writeLag:(0,ht.i6)(s),readLag:(0,ht.i6)(r),readIdleTime:(0,ht.MC)(n)}})))),ba=JSON.parse('{"averageSpeed":"Average speed","perMinute":"per minute","perHour":"per hour","perDay":"per day"}'),fa=JSON.parse('{"averageSpeed":"\u0421\u0440\u0435\u0434\u043d\u044f\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c","perMinute":"\u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443","perHour":"\u0437\u0430 \u0447\u0430\u0441","perDay":"\u0437\u0430 \u0434\u0435\u043d\u044c"}'),ja=(0,Be.g4)("ydb-components-speed-multimeter",{ru:fa,en:ba}),Sa=(0,c.cn)("speed-multimeter"),Ta=({data:e,speedSize:t="kb",withValue:a=!0,withPopover:r=!0})=>{const{perMinute:s=0,perHour:i=0,perDay:o=0}=e||{},l=[s,i,o],c=e=>(0,ua.z3)({value:e,size:t,withSpeedLabel:!0}),u=[{value:c(s),label:ja("perMinute")},{value:c(i),label:ja("perHour")},{value:c(o),label:ja("perDay")}],[m,p]=n.useState(s),[h,v]=n.useState(a?0:void 0),[g,y]=n.useState(),x=(e,t)=>{p(e[t]),v(t),y(t)},b=e=>h===e,f=e=>g===e;return(0,d.jsx)("div",{className:Sa(),children:(0,d.jsxs)("div",{className:Sa("content"),children:[a&&(0,d.jsx)("div",{className:Sa("displayed-value"),children:c(m)}),(0,d.jsx)(aa.A,{content:(0,d.jsxs)("div",{className:Sa("popover-content"),children:[(0,d.jsx)("span",{className:Sa("popover-header"),children:ja("averageSpeed")}),u.map(((e,t)=>{return(0,d.jsx)("span",{className:Sa("popover-row",(a=b(t),a?{color:"primary"}:{color:"secondary"})),children:`${e.label}: ${e.value}`},t);var a}))]}),className:Sa("popover-container"),placement:"bottom",disabled:!r,hasArrow:!0,size:"s",children:(0,d.jsx)("div",{className:Sa("bars"),onMouseLeave:()=>{p(s),v(a?0:void 0),y(void 0)},children:(()=>{const e=Math.max(...l,0)||1;return l.map(((t,a)=>(0,d.jsx)("div",{className:Sa("bar-container",{highlighted:f(a)}),onMouseEnter:x.bind(null,l,a),children:(0,d.jsx)("div",{className:Sa("bar",{color:b(a)?"dark":"light"}),style:{width:100*t/e+"%"}})},a)))})()})})]})})},Na=(0,c.cn)("ydb-diagnostics-consumers-topic-stats"),Ea=({data:e})=>{const{writeSpeed:t,partitionsWriteLag:a,partitionsIdleTime:n}=e||{},r=[{label:"Write speed",value:(0,d.jsx)(Ta,{data:t})},{label:"Write lag",value:(0,pe.lr)(a||0)},{label:"Write idle time",value:(0,pe.lr)(n||0)}];return(0,d.jsx)("div",{className:Na("wrapper"),children:r.map(((e,t)=>(0,d.jsxs)("div",{className:Na("item"),children:[(0,d.jsx)("div",{className:Na("label"),children:e.label}),(0,d.jsx)("div",{className:Na("value"),children:e.value})]},t)))})};var wa=a(74309),Ca=a.n(wa),Pa=a(44294),Ia=a(6170);const Da=({text:e,popoverContent:t,popoverClassName:a,className:n,contentClassName:r,buttonProps:s})=>(0,d.jsxs)("div",{className:n,children:[e,"\xa0",(0,d.jsx)(Ia.B,{className:a,buttonProps:s,content:t,contentClassName:r})]}),Aa=70,_a=54,Ra=268,ka="#ADE8F5",Oa="#f5be9d",Ma=({width:e,height:t,transform:a})=>(0,d.jsx)("path",{d:`M-${e/2} 0 c0 -${t}, ${e} -${t}, ${e} 0`,fill:"none",strokeDasharray:"4,6",stroke:"#28f",strokeWidth:"1.6",transform:a}),La=({width:e})=>(0,d.jsx)("path",{fill:"none",strokeWidth:"2",d:`M0 0 h${e} l-10 -5 m0 10 l10 -5`}),za=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:Oa,children:(0,d.jsx)(La,{width:203})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(Ma,{width:Aa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,d.jsxs)("g",{transform:"translate(119, 27)",children:[(0,d.jsx)(Ma,{width:98,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write idle time"})})]})]}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(0, 27)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:Oa}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,d.jsxs)("g",{transform:"translate(70, 27)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:Oa}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,d.jsx)("g",{transform:"translate(168, 27)",children:(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),Fa=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:ka,children:(0,d.jsx)(La,{width:Ra})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(105, 27)",children:[(0,d.jsx)(Ma,{width:Aa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read lag"})})]}),(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(Ma,{width:Aa,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,d.jsxs)("g",{transform:"translate(182, 27)",children:[(0,d.jsx)(Ma,{width:91,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read idle time"})})]})]}),(0,d.jsxs)("g",{transform:"translate(30, 27)",children:[(0,d.jsxs)("g",{transform:"translate(0, 0)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:ka}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,d.jsxs)("g",{transform:"translate(70, 0)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:ka}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,d.jsxs)("g",{transform:"translate(140, 0)",children:[(0,d.jsx)("use",{x:"-2",y:"-10",xlinkHref:"#check",stroke:ka}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read time"})})]}),(0,d.jsx)("g",{transform:"translate(224, 0)",children:(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),qa=({id:e,fill:t})=>(0,d.jsx)("pattern",{id:e,x:"0",y:"0",width:"8",height:"8",patternUnits:"userSpaceOnUse",children:(0,d.jsx)("path",{d:"M0 5L5 0H8L0 8V5M5 8L8 5V8Z",fill:t})}),Qa=()=>(0,d.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:Ra,height:_a,children:[(0,d.jsxs)("defs",{children:[(0,d.jsx)("g",{id:"check",children:(0,d.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,d.jsx)(qa,{id:"latest-read",fill:ka}),(0,d.jsx)(qa,{id:"latest-write",fill:Oa})]}),(0,d.jsx)(za,{})]}),Ua=()=>(0,d.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:Ra,height:_a,children:[(0,d.jsxs)("defs",{children:[(0,d.jsx)("g",{id:"check",children:(0,d.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,d.jsx)(qa,{id:"latest-read",fill:ka}),(0,d.jsx)(qa,{id:"latest-write",fill:Oa})]}),(0,d.jsx)(Fa,{})]}),Ba=(0,c.cn)("ydb-lag-popover-content"),$a=({text:e,type:t})=>(0,d.jsxs)("div",{className:Ba({type:t}),children:[(0,d.jsx)("div",{className:Ba("text"),children:e}),(0,d.jsx)("div",{children:"read"===t?(0,d.jsx)(Ua,{}):(0,d.jsx)(Qa,{})})]}),Ha=JSON.parse('{"noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers","lagsPopover.readLags":"Read lags statistics, maximum among all consumer partitions (time format dd hh:mm:ss)","table.emptyDataMessage":"No consumers match the current search","controls.search":"Consumer"}'),Ga=JSON.parse('{"noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","controls.search":"Consumer"}'),Wa=(0,Be.g4)("ydb-diagnostics-consumers",{ru:Ga,en:Ha}),Va="consumer",Ja="readSpeed",Ya="readLags",Ka={[Va]:"Consumer",[Ja]:"Read speed",[Ya]:"Read lags, duration"},Za="writeLag",Xa="readLag",en="readIdleTime",tn={[Za]:"write lag",[Xa]:"read lag",[en]:"read idle time"},an=(0,c.cn)("ydb-diagnostics-consumers-columns-header"),nn=()=>(0,d.jsx)(Da,{className:an("lags"),text:Ka[Ya],popoverContent:(0,d.jsx)($a,{text:Wa("lagsPopover.readLags"),type:"read"})}),rn=(0,c.cn)("ydb-diagnostics-consumers-columns"),sn=[{name:Va,header:Ka[Va],align:_t.Ay.LEFT,render:({row:e})=>{if(!e.name)return"\u2013";const t=Ca().parse(location.search,{ignoreQueryPrefix:!0});return(0,d.jsx)(Pa.E,{to:(0,ea.YL)({...t,[ea.vh.diagnosticsTab]:te.iJ.partitions,selectedConsumer:e.name}),children:e.name})}},{name:Ja,header:Ka[Ja],align:_t.Ay.RIGHT,resizeMinWidth:140,sortAccessor:e=>e.readSpeed.perMinute,render:({row:e})=>(0,d.jsx)(Ta,{data:e.readSpeed})},{name:Ya,header:(0,d.jsx)(nn,{}),className:rn("lags-header"),sub:[{name:Za,header:tn[Za],align:_t.Ay.RIGHT,render:({row:e})=>(0,pe.lr)(e.writeLag)},{name:Xa,header:tn[Xa],align:_t.Ay.RIGHT,render:({row:e})=>(0,pe.lr)(e.readLag)},{name:en,header:tn[en],align:_t.Ay.RIGHT,render:({row:e})=>(0,pe.lr)(e.readIdleTime)}]}],on=(0,c.cn)("ydb-diagnostics-consumers"),ln=({path:e,database:t,type:a})=>{const r=(e=>e===x.EPathTypeCdcStream)(a),[s,i]=n.useState(""),[o]=(0,Z.Nt)(),{currentData:l,isFetching:c,error:u}=ma.useGetTopicQuery({path:e,database:t},{pollingInterval:o}),m=c&&void 0===l,p=(0,Z.N4)((a=>xa(a,e,t))),h=(0,Z.N4)((a=>ya(a,e,t))),v=n.useMemo((()=>{if(!p)return[];const e=new RegExp(da()(s),"i");return p.filter((t=>e.test(String(t.name))))}),[p,s]);return m?(0,d.jsx)(de.a,{size:"m"}):u||p&&p.length?(0,d.jsxs)("div",{className:on(),children:[(0,d.jsxs)("div",{className:on("controls"),children:[(0,d.jsx)(Ue.v,{onChange:e=>{i(e)},placeholder:Wa("controls.search"),className:on("search"),value:s}),h&&(0,d.jsx)(Ea,{data:h})]}),u?(0,d.jsx)(ce.o,{error:u}):null,p?(0,d.jsx)("div",{className:on("table-wrapper"),children:(0,d.jsx)("div",{className:on("table-content"),children:(0,d.jsx)(ze.l,{columnsWidthLSKey:"consumersColumnsWidth",wrapperClassName:on("table"),data:v,columns:sn,settings:K.N3,emptyDataMessage:Wa("table.emptyDataMessage")})})}):null]}):(0,d.jsx)("div",{children:Wa("noConsumersMessage."+(r?"stream":"topic"))})};var cn=a(96873),dn=a(97434),un=a(84476),mn=a(67063),pn=a.n(mn);const hn=JSON.parse('{"context_case-sensitive-search":"Case sensitive search enadled","context_case-sensitive-search-disabled":"Case sensitive search disabled"}'),vn=(0,Be.g4)("ydb-json-tree",{en:hn});var gn=a(94630);a(91434);const yn=(0,c.cn)("ydb-json-tree");function xn({treeClassName:e,search:t,...a}){const[n,r]=(0,Z.iK)(K.iD,!1);return(0,d.jsxs)("div",{className:yn(),children:[(0,d.jsx)(pn(),{className:yn("tree",e),filterOptions:{ignoreCase:!n},searchOptions:{debounceTime:300},...a}),!1!==t&&(0,d.jsx)(ot.m,{title:vn(n?"context_case-sensitive-search":"context_case-sensitive-search-disabled"),children:(0,d.jsx)(un.$,{view:"outlined",className:yn("case"),onClick:()=>r(!n),selected:n,children:(0,d.jsx)(lt.I,{data:gn.A})})})]})}const bn=(0,c.cn)("ydb-describe"),fn=new Map,jn=({path:e,database:t,type:a})=>{const[n]=(0,Z.Nt)(),r=z(a),s=(0,Z.N4)((n=>J(n,e,a,t)),dn.bN);let i=[];r?s&&(i=[e,...s]):i=[e];const{mergedDescribe:o,loading:l,error:c}=Y({paths:i,autoRefreshInterval:n,database:t});let u;if(o){const e=Object.keys(o);u=1===e.length?o[e[0]]:o}return l||r&&!s?(0,d.jsx)(de.a,{size:"m"}):u||c?(0,d.jsxs)("div",{className:bn(),children:[c?(0,d.jsx)(ce.o,{error:c}):null,u?(0,d.jsxs)("div",{className:bn("result"),children:[(0,d.jsx)(xn,{data:u,onClick:({path:e})=>{const t=!fn.get(e);fn.set(e,t)},isExpanded:e=>fn.get(e)||!1}),(0,d.jsx)(cn.b,{view:"flat-secondary",text:JSON.stringify(u),className:bn("copy")})]}):null]}):(0,d.jsx)("div",{className:bn("message-container"),children:"Empty"})};var Sn=a(60073);const Tn=e=>{const{PathType:t,PathSubType:a}=(null===e||void 0===e?void 0:e.Self)||{};return n=t,(r=a)&&w[r]||n&&C[n];var n,r},Nn=e=>{var t;return null===e||void 0===e||null===(t=e.UserAttributes)||void 0===t?void 0:t.some((({Key:e,Value:t})=>"__async_replica"===e&&"true"===t))};var En=a(5741),wn=a(82176);const Cn=(0,wn.H)({values:{PathType:e=>null===e||void 0===e?void 0:e.substring(9),CreateStep:pe.r6},labels:{PathType:(0,En.A)("common.type"),CreateStep:(0,En.A)("common.created")}}),Pn=({value:e,withSpeedLabel:t,...a})=>{const n=(0,ua.z3)({value:e,withSpeedLabel:t,...a}),r=(0,ua.z3)({value:e,withSpeedLabel:t,size:"b"});return(0,d.jsx)("span",{title:r,children:n})},In=(e,t)=>e?(0,d.jsx)(Pn,{value:e,significantDigits:2,...t}):null,Dn=(0,wn.H)({values:{Type:e=>null===e||void 0===e?void 0:e.substring(10),State:e=>null===e||void 0===e?void 0:e.substring(11),KeyColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataSize:In},labels:{KeyColumnNames:"Columns",DataColumnNames:"Includes"}}),An={[j.METERING_MODE_REQUEST_UNITS]:"request-units",[j.METERING_MODE_RESERVED_CAPACITY]:"reserved-capacity"},_n=(0,wn.H)({values:{Partitions:e=>(0,pe.ZV)((null===e||void 0===e?void 0:e.length)||0),PQTabletConfig:e=>{const t=Math.round(e.PartitionConfig.LifetimeSeconds/K.Jg*100)/100;return`${(0,pe.ZV)(t)} hours`}},labels:{Partitions:"Partitions count",PQTabletConfig:"Retention"}}),Rn=(0,wn.H)({values:{Codecs:e=>e&&Object.values(e.Codecs||{}).join(", "),MeteringMode:e=>e&&An[e]},labels:{MeteringMode:"Metering mode"}}),kn=(0,wn.H)({values:{StorageLimitBytes:pe.z3,WriteSpeedInBytesPerSecond:pe.tC},labels:{StorageLimitBytes:"Retention storage",WriteSpeedInBytesPerSecond:"Partitions write speed"}}),On=(0,wn.H)({values:{Mode:e=>null===e||void 0===e?void 0:e.substring(14),Format:e=>null===e||void 0===e?void 0:e.substring(16)}}),Mn=(0,wn.H)({values:{CPU:pe.iM,Memory:In,Storage:In,Network:pe.tC,ReadThroughput:pe.tC,WriteThroughput:pe.tC},defaultValueFormatter:pe.ZV}),Ln=(0,wn.H)({values:{FollowerCount:pe.ZV},labels:{FollowerCountPerDataCenter:"FollowerCountPerDC"},defaultValueFormatter:e=>e&&String(e)}),zn=(0,wn.H)({values:{FollowerCount:pe.ZV,CrossDataCenterFollowerCount:pe.ZV}}),Fn=(0,wn.H)({values:{DataSize:In,IndexSize:In,LastAccessTime:pe.r6,LastUpdateTime:pe.r6},defaultValueFormatter:pe.ZV}),qn=new Set(["Type","State","DataSize","KeyColumnNames","DataColumnNames"]),Qn=({data:e})=>{var t;const a=Tn(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]});const n=null===(t=e.PathDescription)||void 0===t?void 0:t.TableIndex,r=[];let s;for(s in n)qn.has(s)&&r.push(Dn(s,null===n||void 0===n?void 0:n[s]));return(0,d.jsx)(Sn.z_,{title:a,info:r})};var Un=a(10508);const Bn=JSON.parse('{"external-objects.source-type":"Source Type","external-objects.data-source":"Data Source","external-objects.location":"Location","external-objects.auth-method":"Auth Method","external-objects.auth-method.none":"None","external-objects.auth-method.service-account":"Service Account","view.query-text":"Query Text"}'),$n=(0,Be.g4)("ydb-tenant-objects-info",{en:Bn}),Hn=(0,c.cn)("ydb-external-data-source-info"),Gn=e=>{var t,a,n,r;return[{label:$n("external-objects.source-type"),value:null===(t=e.PathDescription)||void 0===t||null===(a=t.ExternalDataSourceDescription)||void 0===a?void 0:a.SourceType},Cn("CreateStep",null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep)]},Wn=e=>{var t;const{Location:a,Auth:n}=(null===(t=e.PathDescription)||void 0===t?void 0:t.ExternalDataSourceDescription)||{};return[...Gn(e),{label:$n("external-objects.location"),value:(0,d.jsx)(Un.c,{name:a,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:Hn("location")})},{label:$n("external-objects.auth-method"),value:null!==n&&void 0!==n&&n.ServiceAccount?$n("external-objects.auth-method.service-account"):$n("external-objects.auth-method.none")}]},Vn=({data:e,prepareData:t})=>{const a=Tn(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsx)(Sn.z_,{title:a,info:t(e)}):(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]})},Jn=({data:e})=>(0,d.jsx)(Vn,{data:e,prepareData:Wn});var Yn=a(10755),Kn=a(25196);const Zn=(0,c.cn)("ydb-external-table-info"),Xn=(e,t)=>{var a,n;const{CreateStep:r}=(null===(a=e.PathDescription)||void 0===a?void 0:a.Self)||{},{SourceType:s,DataSourcePath:i}=(null===(n=e.PathDescription)||void 0===n?void 0:n.ExternalTableDescription)||{},o=null===i||void 0===i?void 0:i.split("/").pop();return[{label:$n("external-objects.source-type"),value:s},Cn("CreateStep",r),{label:$n("external-objects.data-source"),value:i&&(0,d.jsx)("span",{title:i,children:(0,d.jsx)(Kn.K,{title:o||"",url:t})})}]},er=(e,t)=>{var a,n;const r=null===(a=e.PathDescription)||void 0===a||null===(n=a.ExternalTableDescription)||void 0===n?void 0:n.Location;return[...Xn(e,t),{label:$n("external-objects.location"),value:(0,d.jsx)(Un.c,{name:r,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:Zn("location")})}]},tr=({data:e,prepareData:t})=>{var a,n;const r=(0,Yn.zy)(),s=(0,ge.mA)(r),i=(0,ge.Ow)({...s,schema:null===e||void 0===e||null===(a=e.PathDescription)||void 0===a||null===(n=a.ExternalTableDescription)||void 0===n?void 0:n.DataSourcePath}),o=Tn(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsx)(Sn.z_,{title:o,info:t(e,i)}):(0,d.jsxs)("div",{className:"error",children:["No ",o," data"]})},ar=({data:e})=>(0,d.jsx)(tr,{data:e,prepareData:er});var nr=a(57439);const rr=JSON.parse('{"no-data":"No data"}'),sr=(0,Be.g4)("ydb-definition-list",{en:rr}),ir=(0,c.cn)("ydb-definition-list");function or({title:e,items:t,nameMaxWidth:a=220,copyPosition:n="outside",className:r,itemClassName:s,...i}){return(0,d.jsxs)("div",{className:ir(null),children:[e?(0,d.jsx)("div",{className:ir("title"),children:e}):null,t.length?(0,d.jsx)(nr.u,{items:t,nameMaxWidth:a,copyPosition:n,className:ir("properties-list",r),itemClassName:ir("item",s),...i}):sr("no-data")]})}var lr=a(96298),cr=a(8300);lr.A.registerLanguage("yql",cr.TL);const dr=(0,c.cn)("yql-highlighter"),ur=({children:e,className:t})=>{const a=(0,ee.i)(),n="dark"===a||"dark-hc"===a;return(0,d.jsx)("div",{className:dr(null,t),children:(0,d.jsx)(lr.A,{language:"yql",style:n?cr.XT:cr.BB,children:e})})};function mr({data:e}){const t=Tn(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:["No ",t," data"]});const a=(e=>{var t,a;const n=null===(t=e.PathDescription)||void 0===t||null===(a=t.ViewDescription)||void 0===a?void 0:a.QueryText;return[{name:$n("view.query-text"),copyText:n,content:n?(0,d.jsx)(ur,{children:n}):null}]})(e);return(0,d.jsx)(or,{title:t,items:a})}function pr({state:e}){return e?"StandBy"in e?(0,d.jsx)(wt.J,{theme:"info",children:"Standby"}):"Paused"in e?(0,d.jsx)(wt.J,{theme:"info",children:"Paused"}):"Done"in e?(0,d.jsx)(wt.J,{theme:"success",children:"Done"}):"Error"in e?(0,d.jsx)(wt.J,{theme:"danger",children:"Error"}):(0,d.jsx)(wt.J,{size:"s",children:"Unknown"}):null}const hr=JSON.parse('{"column.dstPath.name":"Dist","column.srcPath.name":"Source","everythingWithPrefix":"Everything with prefix:","noData":"No data.","title":"Replicated Paths"}'),vr=(0,Be.g4)("ydb-diagnostics-async-replication-paths",{en:hr}),gr=(0,c.cn)("ydb-async-replication-paths"),yr=[{name:vr("column.srcPath.name"),render:({row:e})=>e.SrcPath,sortAccessor:e=>e.SrcPath},{name:vr("column.dstPath.name"),render:({row:e})=>e.DstPath,sortAccessor:e=>e.DstPath}];function xr({config:e}){if(!e)return null;let t=vr("noData");var a,n;e.Everything&&(t=(0,d.jsxs)("span",{children:[vr("everythingWithPrefix")," ",(0,d.jsx)(st.E,{variant:"code-inline-2",children:null!==(a=null===(n=e.Everything)||void 0===n?void 0:n.DstPrefix)&&void 0!==a?a:"undefined"}),"."]}));return e.Specific&&(t=(0,d.jsx)(ze.l,{data:e.Specific.Targets,settings:K.jp,columns:yr})),(0,d.jsxs)("div",{className:gr(),children:[(0,d.jsx)("div",{className:gr("title"),children:vr("title")}),t]})}function br({connection:e}){return e?e.StaticCredentials?(0,d.jsx)(wt.J,{value:e.StaticCredentials.User,theme:"normal",children:"user"}):"OAuthToken"in e?"OAuth":"unknown":null}const fr=JSON.parse('{"credentials.label":"Credentials","noData":"No data for entity:","srcConnection.database.label":"Source Database Path","srcConnection.endpoint.label":"Source Cluster Endpoint","state.label":"State"}'),jr=(0,Be.g4)("ydb-diagnostics-async-replication-info",{en:fr});function Sr({data:e}){var t,a;const n=Tn(null===e||void 0===e?void 0:e.PathDescription);if(!e)return(0,d.jsxs)("div",{className:"error",children:[jr("noData")," ",n]});const r=function(e){var t,a;const n=(null===(t=e.PathDescription)||void 0===t?void 0:t.ReplicationDescription)||{},r=n.State,s=(null===(a=n.Config)||void 0===a?void 0:a.SrcConnectionParams)||{},{Endpoint:i,Database:o}=s,l=[];r&&l.push({name:jr("state.label"),content:(0,d.jsx)(pr,{state:r})});i&&l.push({name:jr("srcConnection.endpoint.label"),copyText:i,content:(0,d.jsx)(st.E,{variant:"code-inline-2",children:i})});o&&l.push({name:jr("srcConnection.database.label"),copyText:o,content:(0,d.jsx)(st.E,{variant:"code-inline-2",children:o})});s&&l.push({name:jr("credentials.label"),content:(0,d.jsx)(br,{connection:s})});return l}(e);return(0,d.jsxs)(it.s,{direction:"column",gap:"4",children:[(0,d.jsx)(or,{title:n,items:r}),(0,d.jsx)(xr,{config:null===(t=e.PathDescription)||void 0===t||null===(a=t.ReplicationDescription)||void 0===a?void 0:a.Config})]})}const Tr=JSON.parse('{"writeLagPopover":"Write lag, maximum among all topic partitions","writeIdleTimePopover":"Write idle time, maximum among all topic partitions"}'),Nr=JSON.parse('{"writeLagPopover":"\u041b\u0430\u0433 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430","writeIdleTimePopover":"\u0412\u0440\u0435\u043c\u044f \u0431\u0435\u0437 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430"}'),Er=(0,Be.g4)("ydb-diagnostics-overview-topic-stats",{ru:Nr,en:Tr}),wr=(0,c.cn)("ydb-overview-topic-stats"),Cr=e=>[{label:"Store size",value:(0,pe.z3)(e.storeSize)},{label:(0,d.jsx)(Da,{text:"Write idle time",popoverContent:(0,d.jsx)($a,{text:Er("writeIdleTimePopover"),type:"write"})}),value:(0,ht.Bi)(e.partitionsIdleTime)},{label:(0,d.jsx)(Da,{text:"Write lag",popoverContent:(0,d.jsx)($a,{text:Er("writeLagPopover"),type:"write"})}),value:(0,ht.Bi)(e.partitionsWriteLag)},{label:"Average write speed",value:(0,d.jsx)(Ta,{data:e.writeSpeed,withValue:!1})}],Pr=e=>{const t=e.writeSpeed;return[{label:"per minute",value:(0,pe.tC)(t.perMinute)},{label:"per hour",value:(0,pe.tC)(t.perHour)},{label:"per day",value:(0,pe.tC)(t.perDay)}]},Ir=({path:e,database:t})=>{const[a]=(0,Z.Nt)(),{currentData:r,isFetching:s,error:i}=ma.useGetTopicQuery({path:e,database:t},{pollingInterval:a}),o=s&&void 0===r,l=(0,Z.N4)((a=>ya(a,e,t)));if(o)return(0,d.jsx)("div",{className:wr(),children:(0,d.jsx)(de.a,{size:"s"})});const c=i||!l?(0,d.jsx)(ce.o,{error:i}):null;return(0,d.jsxs)("div",{className:wr(),children:[(0,d.jsx)("div",{className:wr("title"),children:"Stats"}),c,l?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:wr("info"),children:(0,d.jsx)(Sn.z_,{info:Cr(l),multilineLabels:!0})}),(0,d.jsx)("div",{className:wr("bytes-written"),children:(0,d.jsx)(Sn.z_,{info:Pr(l)})})]}):null]})},Dr=e=>{var t;const a=null===e||void 0===e||null===(t=e.PathDescription)||void 0===t?void 0:t.PersQueueGroup;if(!a)return[];const{Partitions:n=[],PQTabletConfig:r={PartitionConfig:{LifetimeSeconds:0}}}=a,{Codecs:s,MeteringMode:i}=r,{WriteSpeedInBytesPerSecond:o,StorageLimitBytes:l}=r.PartitionConfig;return[...(0,Sn.jl)(_n,{Partitions:n,PQTabletConfig:r}),...(0,Sn.jl)(kn,{StorageLimitBytes:l,WriteSpeedInBytesPerSecond:o}),...(0,Sn.jl)(Rn,{Codecs:s,MeteringMode:i})]},Ar=(e,t)=>{var a,n,r;if(!e&&!t)return[];const s=null===e||void 0===e||null===(a=e.PathDescription)||void 0===a?void 0:a.CdcStreamDescription,{Mode:i,Format:o}=s||{};return[Cn("CreateStep",null===e||void 0===e||null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep),...(0,Sn.jl)(On,{Mode:i,Format:o}),...Dr(t)]},_r=({path:e,database:t,data:a,topic:n})=>{const r=Tn(null===a||void 0===a?void 0:a.PathDescription);return a&&n?(0,d.jsxs)("div",{children:[(0,d.jsx)(Sn.z_,{title:r,info:Ar(a,n)}),(0,d.jsx)(Ir,{path:e,database:t})]}):(0,d.jsxs)("div",{className:"error",children:["No ",r," data"]})},Rr=JSON.parse('{"page.title":"Database","pages.query":"Query","pages.diagnostics":"Diagnostics","summary.navigation":"Navigation","summary.showPreview":"Show preview","summary.source-type":"Source Type","summary.data-source":"Data Source","summary.copySchemaPath":"Copy schema path","summary.type":"Type","summary.subtype":"SubType","summary.id":"Id","summary.version":"Version","summary.created":"Created","summary.data-size":"Data size","summary.row-count":"Row count","summary.partitions":"Partitions count","summary.paths":"Paths","summary.shards":"Shards","summary.state":"State","summary.mode":"Mode","summary.format":"Format","summary.retention":"Retention","label.read-only":"ReadOnly","actions.copied":"The path is copied to the clipboard","actions.notCopied":"Couldn\u2019t copy the path","actions.copyPath":"Copy path","actions.connectToDB":"Connect to DB","actions.dropIndex":"Drop index","actions.openPreview":"Open preview","actions.createTable":"Create table...","actions.createExternalTable":"Create external table...","actions.createTopic":"Create topic...","actions.createColumnTable":"Create column table...","actions.createAsyncReplication":"Create async replication...","actions.createView":"Create view...","actions.dropTable":"Drop table...","actions.dropTopic":"Drop topic...","actions.dropView":"Drop view...","actions.alterTable":"Alter table...","actions.addTableIndex":"Add index...","actions.createCdcStream":"Create changefeed...","actions.alterTopic":"Alter topic...","actions.selectQuery":"Select query...","actions.upsertQuery":"Upsert query...","actions.alterReplication":"Alter async replicaton...","actions.dropReplication":"Drop async replicaton...","actions.createDirectory":"Create directory","schema.tree.dialog.placeholder":"Relative path","schema.tree.dialog.invalid":"Invalid path","schema.tree.dialog.whitespace":"Whitespace is not allowed","schema.tree.dialog.empty":"Path is empty","schema.tree.dialog.header":"Create directory","schema.tree.dialog.description":"Inside","schema.tree.dialog.buttonCancel":"Cancel","schema.tree.dialog.buttonApply":"Create"}'),kr=(0,Be.g4)("ydb-tenant",{en:Rr});function Or({data:e}){const t=Tn(e);return Nn(e)?(0,d.jsxs)(it.s,{gap:1,wrap:"nowrap",children:[t," ",(0,d.jsx)(wt.J,{children:kr("label.read-only")})]}):t}const Mr=JSON.parse('{"tableStats":"Table Stats","tabletMetrics":"Tablet Metrics","partitionConfig":"Partition Config","label.ttl":"TTL for rows","value.ttl":"column: \'{{columnName}}\', expire after: {{expireTime}}","label.standalone":"Standalone","label.partitioning":"Partitioning","label.partitioning-by-size":"Partitioning by size","value.partitioning-by-size.enabled":"Enabled, split size: {{size}}","label.partitioning-by-load":"Partitioning by load","label.partitions-min":"Min number of partitions","label.partitions-max":"Max number of partitions","label.read-replicas":"Read replicas (followers)","label.bloom-filter":"Bloom filter","enabled":"Enabled","disabled":"Disabled"}'),Lr=(0,Be.g4)("ydb-diagnostics-overview-table-info",{en:Mr});var zr=a(62091),Fr=a.n(zr),qr=a(7435),Qr=a(41650);const Ur=e=>{if(e.Enabled&&e.Enabled.ColumnName&&void 0!==e.Enabled.ExpireAfterSeconds){const t=Lr("value.ttl",{columnName:e.Enabled.ColumnName,expireTime:(0,ht.Bi)(1e3*e.Enabled.ExpireAfterSeconds,1)});return{label:Lr("label.ttl"),value:t}}};const Br=(e,t)=>{if(!e)return{};const{PathDescription:a={}}=e,{TableStats:n={},TabletMetrics:r={},Table:{PartitionConfig:s={},TTLSettings:i}={},ColumnTableDescription:o={}}=a,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m,ByKeyFilterSize:p,LastAccessTime:h,LastUpdateTime:v,ImmediateTxCompleted:g,PlannedTxCompleted:y,TxRejectedByOverload:b,TxRejectedBySpace:f,TxCompleteLagMsec:j,InFlightTxCount:S,RowUpdates:T,RowDeletes:N,RowReads:E,RangeReads:w,RangeReadRows:C}=n,{FollowerGroups:P,FollowerCount:I,CrossDataCenterFollowerCount:D}=s;let A=[];switch(t){case x.EPathTypeTable:A=((e,t)=>{var a;const{PartitioningPolicy:n={},FollowerGroups:r,EnableFilterByKey:s}=e,i=[],o=n.SizeToSplit&&Number(n.SizeToSplit)>0?Lr("value.partitioning-by-size.enabled",{size:(0,pe.z3)(n.SizeToSplit)}):Lr("disabled"),l=null!==(a=n.SplitByLoadSettings)&&void 0!==a&&a.Enabled?Lr("enabled"):Lr("disabled");if(i.push({label:Lr("label.partitioning-by-size"),value:o},{label:Lr("label.partitioning-by-load"),value:l},{label:Lr("label.partitions-min"),value:(0,pe.ZV)(n.MinPartitionsCount||0)}),n.MaxPartitionsCount&&i.push({label:Lr("label.partitions-max"),value:(0,pe.ZV)(n.MaxPartitionsCount)}),r&&r.length){const{RequireAllDataCenters:e,FollowerCountPerDataCenter:t,FollowerCount:a}=r[0];let n;n=e&&t?`PER_AZ: ${a}`:`ANY_AZ: ${a}`,i.push({label:Lr("label.read-replicas"),value:n})}if(t){const e=Ur(t);e&&i.push(e)}return(0,qr.f8)(s)&&i.push({label:Lr("label.bloom-filter"),value:Lr(s?"enabled":"disabled")}),i})(s,i);break;case x.EPathTypeColumnTable:A=function(e){var t,a;const n=[];var r;if(n.push({label:Lr("label.standalone"),value:String((r=e,!(r.SchemaPresetName&&void 0!==r.SchemaPresetId)))}),null!==(t=e.Sharding)&&void 0!==t&&null!==(a=t.HashSharding)&&void 0!==a&&a.Columns){const t=`PARTITION BY HASH(${e.Sharding.HashSharding.Columns.join(", ")})`;n.push({label:Lr("label.partitioning"),value:(0,d.jsx)(st.E,{variant:"code-2",wordBreak:"break-word",children:t})})}if(e.TtlSettings){const t=Ur(null===e||void 0===e?void 0:e.TtlSettings);t&&n.push(t)}return n}(o)}const _=(0,Sn.jl)(Fn,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m});(0,Qr.kf)(p)&&(s.EnableFilterByKey||Number(p)>0)&&_.push({label:"BloomFilterSize",value:In(p)});const R=[_,(0,Sn.jl)(Fn,{LastAccessTime:h,LastUpdateTime:v}),(0,Sn.jl)(Fn,{ImmediateTxCompleted:g,PlannedTxCompleted:y,TxRejectedByOverload:b,TxRejectedBySpace:f,TxCompleteLagMsec:j,InFlightTxCount:S}),(0,Sn.jl)(Fn,{RowUpdates:T,RowDeletes:N,RowReads:E,RangeReads:w,RangeReadRows:C})],k=(0,Sn.jl)(Mn,Fr()(r,["GroupReadIops","GroupReadThroughput","GroupWriteIops","GroupWriteThroughput"]));let O=[];return Array.isArray(P)&&P.length>0?O=(0,Sn.jl)(Ln,P[0]):void 0!==I?O.push(zn("FollowerCount",I)):void 0!==D&&O.push(zn("CrossDataCenterFollowerCount",D)),{generalInfo:A,tableStatsInfo:R,tabletMetricsInfo:k,partitionConfigInfo:O}},$r=(0,c.cn)("ydb-diagnostics-table-info"),Hr=({data:e,type:t})=>{const a=(0,d.jsx)(Or,{data:null===e||void 0===e?void 0:e.PathDescription}),{generalInfo:r,tableStatsInfo:s,tabletMetricsInfo:i=[],partitionConfigInfo:o=[]}=n.useMemo((()=>Br(e,t)),[e,t]);return(0,d.jsxs)("div",{className:$r(),children:[(0,d.jsx)(Sn.z_,{info:r,title:a,className:$r("info-block"),renderEmptyState:()=>(0,d.jsx)("div",{className:$r("title"),children:a})}),(0,d.jsxs)("div",{className:$r("row"),children:[s?(0,d.jsx)("div",{className:$r("col"),children:s.map(((e,t)=>(0,d.jsx)(Sn.z_,{info:e,title:0===t?Lr("tableStats"):void 0,className:$r("info-block"),renderEmptyState:()=>null},t)))}):null,i.length>0||o.length>0?(0,d.jsxs)("div",{className:$r("col"),children:[(0,d.jsx)(Sn.z_,{info:i,title:Lr("tabletMetrics"),className:$r("info-block"),renderEmptyState:()=>null}),(0,d.jsx)(Sn.z_,{info:o,title:Lr("partitionConfig"),className:$r("info-block"),renderEmptyState:()=>null})]}):null]})]})},Gr=({data:e,path:t,database:a})=>{const n=Tn(null===e||void 0===e?void 0:e.PathDescription);return e?(0,d.jsxs)("div",{children:[(0,d.jsx)(Sn.z_,{title:n,info:Dr(e)}),(0,d.jsx)(Ir,{path:t,database:a})]}):(0,d.jsxs)("div",{className:"error",children:["No ",n," data"]})};const Wr=function({type:e,path:t,database:a}){const[r]=(0,Z.Nt)(),s=z(e),i=(0,Z.N4)((n=>J(n,t,e,a)),dn.bN);let o=[];s?i&&(o=[t,...i]):o=[t];const{mergedDescribe:l,loading:c,error:u}=Y({paths:o,database:a,autoRefreshInterval:r}),m=l[t];return c||s&&!i?(0,d.jsx)(de.a,{size:"m"}):(0,d.jsxs)(n.Fragment,{children:[u?(0,d.jsx)(ce.o,{error:u}):null,u&&!m?null:(()=>{var n;const r=null!==m&&void 0!==m?m:void 0,s={[x.EPathTypeInvalid]:void 0,[x.EPathTypeDir]:void 0,[x.EPathTypeTable]:void 0,[x.EPathTypeSubDomain]:void 0,[x.EPathTypeTableIndex]:()=>(0,d.jsx)(Qn,{data:r}),[x.EPathTypeExtSubDomain]:void 0,[x.EPathTypeColumnStore]:void 0,[x.EPathTypeColumnTable]:void 0,[x.EPathTypeCdcStream]:()=>{const e=null===i||void 0===i?void 0:i[0];var n;if(e)return(0,d.jsx)(_r,{path:t,database:a,data:r,topic:null!==(n=null===l||void 0===l?void 0:l[e])&&void 0!==n?n:void 0})},[x.EPathTypePersQueueGroup]:()=>(0,d.jsx)(Gr,{data:r,path:t,database:a}),[x.EPathTypeExternalTable]:()=>(0,d.jsx)(ar,{data:r}),[x.EPathTypeExternalDataSource]:()=>(0,d.jsx)(Jn,{data:r}),[x.EPathTypeView]:()=>(0,d.jsx)(mr,{data:r}),[x.EPathTypeReplication]:()=>(0,d.jsx)(Sr,{data:r})};return e&&(null===(n=s[e])||void 0===n?void 0:n.call(s))||(0,d.jsx)(Hr,{data:r,type:e})})()]})};var Vr,Jr=a(74417);function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Yr.apply(null,arguments)}const Kr=function(e){return n.createElement("svg",Yr({fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),Vr||(Vr=n.createElement("path",{d:"M14.195 11.375H3.125v-7.82a.328.328 0 00-.305-.305H1.805a.309.309 0 00-.305.305v9.14c0 .178.127.305.305.305h12.39a.309.309 0 00.305-.305V11.68a.328.328 0 00-.305-.305zm-3.25-5.688L8.812 7.11 6.63 4.24c-.127-.178-.38-.178-.508.026L3.937 7.922v2.64h9.75l-2.285-4.748c-.101-.177-.304-.228-.457-.127z"})))};function Zr({href:e,className:t,size:a="xs"}){return(0,d.jsx)(un.$,{href:e,target:"_blank",className:t,size:a,title:"Monitoring dashboard",children:(0,d.jsx)(lt.I,{data:Kr})})}var Xr=a(20680),es=a(66643),ts=a(40014),as=a(25533),ns=a(90474);const rs=["#7EB26D","#EAB839","#6ED0E0","#EF843C","#E24D42","#1F78C1","#BA43A9","#705DA0","#508642","#CCA300"];function ss(e){return null===e?K.Pd:(0,ht.Xo)((0,pe.CR)(ls(e),2))}function is(e){return null===e?K.Pd:(0,ua.z3)({value:ls(e),precision:3})}function os(e){return null===e?K.Pd:Math.round(100*ls(e))+"%"}function ls(e){return(0,Qr.kf)(e)?Number(e):0}const cs={"30m":30*K.r0,"1h":K.Jg,"1d":K.tt,"1w":7*K.tt},ds=JSON.parse('{"not-supported":"Charts are not supported on current ydb version"}'),us=(0,Be.g4)("ydb-metric-chart",{en:ds}),ms=H.F.injectEndpoints({endpoints:e=>({getChartData:e.query({queryFn:async(e,{signal:t})=>{try{const a=await(async({database:e,metrics:t,timeFrame:a,maxDataPoints:n},{signal:r}={})=>{const s=t.map((e=>`target=${e.target}`)).join("&"),i=Math.round(Date.now()/1e3),o=i-cs[a];return window.api.viewer.getChartData({target:s,from:o,until:i,maxDataPoints:n,database:e},{signal:r})})(e,{signal:t});if(Array.isArray(a)){return{data:((e=[],t)=>{const a=e.map((({datapoints:e,target:a})=>{const n=t.find((e=>e.target===a));if(!n)return;const r=e.map((e=>e[0]));return{...n,data:r}})).filter((e=>void 0!==e));return{timeline:e[0].datapoints.map((e=>1e3*e[1])),metrics:a}})(a,e.metrics)}}return{error:new Error("string"===typeof a?us("not-supported"):a.error)}}catch(a){return{error:a}}},providesTags:["All"],keepUnusedDataFor:0})}),overrideExisting:"throw"}),ps=(0,c.cn)("ydb-metric-chart");es.W.set({plugins:[as.YagrPlugin]});const hs=(e,t={})=>{const{dataType:a,scaleRange:n}=t,r=(e=>{switch(e){case"ms":return ss;case"size":return is;case"percent":return os;default:return}})(a),s=!e.metrics.length,i=e.metrics.map(((e,t)=>{const a=e.color||rs[t],n=function(e,t){const a=(0,ns.Mj)(e);if(!a.isValid())throw new Error("Invalid color is passed");return a.alpha(t).toRgbString()}(a,.1);return{id:e.target,name:e.title||e.target,data:e.data,formatter:r,lineColor:a,color:n,legendColorKey:"lineColor"}}));return{data:{timeline:e.timeline,graphs:i},libraryConfig:{chart:{size:{padding:s?[10,0,10,0]:void 0},series:{type:"area",spanGaps:!0,lineWidth:1.5},select:{zoom:!1}},scales:{y:{type:"linear",range:"nice",min:(null===n||void 0===n?void 0:n.min)||0,max:null===n||void 0===n?void 0:n.max}},axes:{y:{values:r?(e,t)=>t.map(r):void 0}},tooltip:{show:!0,tracking:"sticky"}}}},vs={timeline:[],metrics:[]},gs=({database:e,title:t,metrics:a,timeFrame:r="1h",autorefresh:s,width:i=400,height:o=i/1.5,chartOptions:l,onChartDataStatusChange:c,isChartVisible:u})=>{const{currentData:m,error:p,isFetching:h,status:v}=ms.useGetChartDataQuery({database:e,metrics:a,timeFrame:r,maxDataPoints:i/2},{pollingInterval:s}),g=h&&!m;n.useEffect((()=>null===c||void 0===c?void 0:c("fulfilled"===v?"success":"loading")),[v,c]);const y=hs(m||vs,l);return(0,d.jsxs)("div",{className:ps(null),style:{height:o,width:i},children:[(0,d.jsx)("div",{className:ps("title"),children:t}),g?(0,d.jsx)(de.a,{}):u?(0,d.jsxs)("div",{className:ps("chart"),children:[(0,d.jsx)(ts.Ay,{type:"yagr",data:y}),p?(0,d.jsx)(ce.o,{className:ps("error"),error:p}):null]}):null]})},ys=(0,c.cn)("ydb-timeframe-selector"),xs=({value:e,onChange:t,className:a})=>(0,d.jsx)("div",{className:ys(null,a),children:Object.keys(cs).map((a=>(0,d.jsx)(un.$,{view:"flat",selected:e===a,onClick:()=>t(a),children:a},a)))}),bs=(0,c.cn)("ydb-tenant-dashboard"),fs=({database:e,charts:t})=>{const[a,r]=n.useState(!0),[i="1h",o]=(0,s.useQueryParam)("timeframe",s.StringParam),[l]=(0,Z.Nt)(),c=a?0:l,u=e=>{"success"===e&&r(!1)},m=1===t.length?872:428,p=428/1.5;return(0,d.jsxs)("div",{className:bs(null),style:{display:a?"none":void 0},children:[(0,d.jsx)("div",{className:bs("controls"),children:(0,d.jsx)(xs,{value:i,onChange:o})}),(0,d.jsx)("div",{className:bs("charts"),children:t.map((t=>{const n=t.metrics.map((({target:e})=>e)).join("&");return(0,d.jsx)(gs,{database:e,title:t.title,metrics:t.metrics,timeFrame:i,chartOptions:t.options,autorefresh:c,width:m,height:p,onChartDataStatusChange:u,isChartVisible:!a},n)}))})]})},js=JSON.parse('{"no-data":"No data","no-pools-data":"No pools data","top-nodes.empty-data":"No such nodes","top-groups.empty-data":"No such groups","top":"Top","nodes":"nodes","shards":"shards","groups":"groups","queries":"queries","tables":"tables","by-pools-usage":"by pools usage","by-cpu-time":"by cpu time, {{executionPeriod}}","by-cpu-usage":"by cpu usage","by-load":"by load","by-memory":"by memory","by-usage":"by usage","by-size":"by size","cards.cpu-label":"CPU","cards.storage-label":"Storage","cards.memory-label":"Memory","charts.queries-per-second":"Queries per second","charts.transaction-latency":"Transactions latencies {{percentile}}","charts.cpu-usage":"CPU usage by pool","charts.storage-usage":"Tablet storage usage","charts.memory-usage":"Memory usage","storage.tablet-storage-title":"Tablet storage","storage.tablet-storage-description":"Size of user data and indexes stored in schema objects (tables, topics, etc.)","storage.db-storage-title":"Database storage","storage.db-storage-description":"Size of data stored in distributed storage with all overheads for redundancy","executed-last-hour":"executed in the last hour","column-header.process":"Process"}'),Ss=(0,Be.g4)("ydb-diagnostics-tenant-overview",{en:js}),Ts=[{title:Ss("charts.queries-per-second"),metrics:[{target:"queries.requests",title:Ss("charts.queries-per-second")}]},{title:Ss("charts.transaction-latency",{percentile:""}),metrics:[{target:"queries.latencies.p50",title:Ss("charts.transaction-latency",{percentile:"p50"})},{target:"queries.latencies.p75",title:Ss("charts.transaction-latency",{percentile:"p75"})},{target:"queries.latencies.p90",title:Ss("charts.transaction-latency",{percentile:"p90"})},{target:"queries.latencies.p99",title:Ss("charts.transaction-latency",{percentile:"p99"})}],options:{dataType:"ms"}}],Ns=({database:e})=>(0,d.jsx)(fs,{database:e,charts:Ts}),Es=H.F.injectEndpoints({endpoints:e=>({getHealthcheckInfo:e.query({queryFn:async({database:e,maxLevel:t},{signal:a})=>{try{return{data:await window.api.viewer.getHealthcheckInfo({database:e,maxLevel:t},{signal:a})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"}),ws={RED:0,ORANGE:1,YELLOW:2,BLUE:3,GREEN:4},Cs=e=>e.sort(((e,t)=>(ws[e.status]||0)-(ws[t.status]||0))),Ps=({issue:e,data:t})=>Cs(t.filter((t=>e.reason&&-1!==e.reason.indexOf(t.id)))),Is=({data:e,roots:t})=>t?t.map((t=>{const a=Is({roots:Ps({issue:t,data:e}),data:e});return{...t,reasonsItems:a}})):[],Ds=(0,g.Mz)((e=>e),(e=>Es.endpoints.getHealthcheckInfo.select({database:e}))),As=(0,g.Mz)((e=>e),((e,t)=>Ds(t)),((e,t)=>{var a;return(null===(a=t(e).data)||void 0===a?void 0:a.issue_log)||[]})),_s=(0,g.Mz)(As,((e=[])=>{return Cs((t=e).filter((e=>!t.find((t=>t.reason&&-1!==t.reason.indexOf(e.id))))));var t})),Rs=(0,g.Mz)([As,_s],((e=[],t=[])=>Is({data:e,roots:t}))),ks=(0,g.Mz)(As,((e=[])=>(e=>{const t={};for(const a of e)t[a.status]||(t[a.status]=0),t[a.status]++;return Object.entries(t).sort((([e],[t])=>(ws[e]||0)-(ws[t]||0)))})(e)));let Os=function(e){return e.UNSPECIFIED="UNSPECIFIED",e.GOOD="GOOD",e.DEGRADED="DEGRADED",e.MAINTENANCE_REQUIRED="MAINTENANCE_REQUIRED",e.EMERGENCY="EMERGENCY",e}({}),Ms=function(e){return e.UNSPECIFIED="UNSPECIFIED",e.GREY="GREY",e.GREEN="GREEN",e.BLUE="BLUE",e.YELLOW="YELLOW",e.ORANGE="ORANGE",e.RED="RED",e}({});var Ls=a(63126),zs=a(54090);const Fs={[Ms.UNSPECIFIED]:zs.m.Grey,[Ms.GREY]:zs.m.Grey,[Ms.GREEN]:zs.m.Green,[Ms.BLUE]:zs.m.Blue,[Ms.YELLOW]:zs.m.Yellow,[Ms.ORANGE]:zs.m.Orange,[Ms.RED]:zs.m.Red},qs=(0,c.cn)("issue-tree-item"),Qs=({status:e,message:t,type:a,onClick:n})=>(0,d.jsxs)("div",{className:qs(),onClick:n,children:[(0,d.jsx)("div",{className:qs("field",{status:!0}),children:(0,d.jsx)(Un.c,{mode:"icons",status:e,name:a})}),(0,d.jsx)("div",{className:qs("field",{message:!0}),children:t})]}),Us=(0,c.cn)("issue-tree"),Bs=({issueTree:e})=>{const[t,a]=n.useState({}),r=n.useCallback((e=>e?(0,d.jsx)("div",{className:Us("info-panel"),children:(0,d.jsx)(xn,{data:e,search:!1,isExpanded:()=>!0,treeClassName:Us("inspector")})}):null),[]),s=n.useCallback((e=>e.map((e=>{const{id:n}=e,{status:i,message:o,type:l,reasonsItems:c,level:u,...m}=e,p="undefined"===typeof t[n]||t[n],h=()=>{a((e=>({...e,[n]:!p})))};return(0,d.jsxs)(Ls.G,{name:(0,d.jsx)(Qs,{status:Fs[i],message:o,type:l}),collapsed:p,hasArrow:!0,onClick:h,onArrowClick:h,level:u-1,children:[r(Fr()(m,["reason"])),s(c||[])]},n)}))),[t,r]);return(0,d.jsx)("div",{className:Us(),children:(0,d.jsx)("div",{className:Us("block"),children:s([e])})})},$s=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"Update","label.show-details":"Show details","label.issues":"Issues:","status_message.ok":"No issues","no-data":"no healthcheck data"}'),Hs=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c","label.show-details":"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438","label.issues":"\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:","status_message.ok":"\u041d\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c","no-data":"\u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 healthcheck"}'),Gs=(0,Be.g4)("ydb-diagnostics-healthcheck",{ru:Hs,en:$s}),Ws=(0,c.cn)("healthcheck");function Vs({tenantName:e}){const[t]=(0,Z.Nt)(),{issueTrees:a,loading:r,error:s}=((e,{autorefresh:t}={})=>{const{currentData:a,isFetching:n,error:r,refetch:s}=Es.useGetHealthcheckInfoQuery({database:e},{pollingInterval:t}),i=(null===a||void 0===a?void 0:a.self_check_result)||Os.UNSPECIFIED,o=(0,Z.N4)((t=>ks(t,e)));return{issueTrees:(0,Z.N4)((t=>Rs(t,e))),issuesStatistics:o,loading:void 0===a&&n,error:r,refetch:s,selfCheckResult:i}})(e,{autorefresh:t});return(0,d.jsx)("div",{className:Ws("details"),children:(0,d.jsx)("div",{className:Ws("details-content-wrapper"),children:s?(0,d.jsx)(ce.o,{error:s,defaultMessage:Gs("no-data")}):r?(0,d.jsx)(de.a,{size:"m"}):a&&a.length?(0,d.jsx)(n.Fragment,{children:a.map((e=>(0,d.jsx)(Bs,{issueTree:e},e.id)))}):Gs("status_message.ok")})})}var Js=a(8861),Ys=a(73633),Ks=a(70825),Zs=a(43937),Xs=a(10800),ei=a(71153),ti=a(2102);const ai=(0,c.cn)("healthcheck"),ni={[Os.UNSPECIFIED]:Ys.A,[Os.GOOD]:Ks.A,[Os.DEGRADED]:Zs.A,[Os.MAINTENANCE_REQUIRED]:Xs.A,[Os.EMERGENCY]:ei.A};function ri(e){const{tenantName:t,active:a}=e,[n]=(0,Z.Nt)(),{currentData:r,isFetching:s,error:i}=Es.useGetHealthcheckInfoQuery({database:t},{pollingInterval:n}),o=s&&void 0===r;return(0,d.jsxs)(ti.A,{className:ai("preview"),active:a,children:[(0,d.jsx)("div",{className:ai("preview-header"),children:(0,d.jsx)("div",{className:ai("preview-title-wrapper"),children:(0,d.jsx)("div",{className:ai("preview-title"),children:Gs("title.healthcheck")})})}),(()=>{if(i)return(0,d.jsx)(ce.o,{error:i,defaultMessage:Gs("no-data")});if(o)return(0,d.jsx)(de.a,{size:"m"});const e=(null===r||void 0===r?void 0:r.self_check_result)||Os.UNSPECIFIED,t=e.toLowerCase();return(0,d.jsx)("div",{className:ai("preview-content"),children:(0,d.jsxs)("div",{className:ai("preview-issue",{[t]:!0}),children:[(0,d.jsx)(lt.I,{className:ai("preview-status-icon"),data:ni[e]}),(0,d.jsx)("div",{className:ai("self-check-status-indicator"),children:e.replace(/_/g," ")})]})})})()]})}var si=a(15132),ii=a(33775);const oi=(0,c.cn)("ydb-metrics-card"),li=e=>{let t;return"Warning"===e&&(t=zs.m.Yellow),"Danger"===e&&(t=zs.m.Red),t?(0,d.jsx)(ii.k,{status:t,mode:"icons",size:"l"}):null};function ci({active:e,label:t,status:a,metrics:n}){return(0,d.jsxs)(ti.A,{className:oi({active:e}),active:e,children:[(0,d.jsxs)("div",{className:oi("header"),children:[t&&(0,d.jsx)("div",{className:oi("label"),children:t}),li(a)]}),(0,d.jsx)("div",{className:oi("content"),children:n.map((({title:e,...t},a)=>(0,d.jsxs)("div",{className:oi("metric"),children:[(0,d.jsx)("div",{className:oi("metric-title"),children:e}),(0,d.jsx)(si.O,{size:"xs",colorizeProgress:!0,...t})]},a)))})]})}const di=(0,c.cn)("metrics-cards");function ui({poolsCpuStats:e,memoryStats:t,blobStorageStats:a,tabletStorageStats:n,tenantName:r}){const s=(0,Yn.zy)(),{metricsTab:i}=(0,Z.N4)((e=>e.tenant)),o=(0,ge.mA)(s),l=e=>e===i?"":e,c={[te.pA.cpu]:(0,ea.YL)({...o,[ea.vh.metricsTab]:l(te.pA.cpu)}),[te.pA.storage]:(0,ea.YL)({...o,[ea.vh.metricsTab]:l(te.pA.storage)}),[te.pA.memory]:(0,ea.YL)({...o,[ea.vh.metricsTab]:l(te.pA.memory)}),[te.pA.healthcheck]:(0,ea.YL)({...o,[ea.vh.metricsTab]:l(te.pA.healthcheck)})};return(0,d.jsxs)("div",{className:di(),children:[(0,d.jsx)(ne.N_,{to:c.cpu,className:di("tab"),children:(0,d.jsx)(mi,{poolsCpuStats:e,active:i===te.pA.cpu})}),(0,d.jsx)(ne.N_,{to:c.storage,className:di("tab"),children:(0,d.jsx)(pi,{blobStorageStats:a,tabletStorageStats:n,active:i===te.pA.storage})}),(0,d.jsx)(ne.N_,{to:c.memory,className:di("tab"),children:(0,d.jsx)(hi,{memoryStats:t,active:i===te.pA.memory})}),(0,d.jsx)(ne.N_,{to:c.healthcheck,className:di("tab"),children:(0,d.jsx)(ri,{tenantName:r,active:i===te.pA.healthcheck})})]})}function mi({poolsCpuStats:e=[],active:t}){let a=Js.u.Unspecified;const n=e.filter((e=>!("Batch"===e.name||"IO"===e.name))).map((e=>{const{name:t,usage:n,limit:r,used:s}=e,i=(0,Xr.sf)(n);return Js.Z[i]>Js.Z[a]&&(a=i),{title:t,value:s,capacity:r}}));return(0,d.jsx)(ci,{label:Ss("cards.cpu-label"),active:t,metrics:n,status:a})}function pi({blobStorageStats:e=[],tabletStorageStats:t,active:a}){let n=Js.u.Unspecified;const r=(t||e).map((e=>{const{name:t,used:a,limit:r,usage:s}=e,i=(0,Xr.sf)(s);return Js.Z[i]>Js.Z[n]&&(n=i),{title:t,value:a,capacity:r,formatValues:pe.j9}}));return(0,d.jsx)(ci,{label:Ss("cards.storage-label"),active:a,metrics:r,status:n})}function hi({active:e,memoryStats:t=[]}){let a=Js.u.Unspecified;const n=t.map((e=>{const{name:t,used:n,limit:r,usage:s}=e,i=(0,Xr.sf)(s);return Js.Z[i]>Js.Z[a]&&(a=i),{title:t,value:n,capacity:r,formatValues:pe.j9}}));return(0,d.jsx)(ci,{label:Ss("cards.memory-label"),active:e,metrics:n,status:a})}var vi=a(78762),gi=a(86782),yi=a(15298),xi=a(40781);const bi=(0,c.cn)("tenant-overview");function fi({title:e,error:t,loading:a,tableClassNameModifiers:r={},...s}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:bi("title"),children:e}),t?(0,d.jsx)(ce.o,{error:t}):null,(0,d.jsx)("div",{className:bi("table",r),children:t&&0===s.data.length?null:a?(0,d.jsx)(St.Q,{rows:K.Nz}):(0,d.jsx)(ze.l,{settings:K.jp,...s})})]})}var ji=a(82015);const Si=({prefix:e=Ss("top"),entity:t,postfix:a,link:r,onClick:s})=>r?(0,d.jsxs)(n.Fragment,{children:[e," ",(0,d.jsx)(ji.E,{to:r,onClick:s,children:t})," ",a]}):`${e} ${t} ${a}`;function Ti({tenantName:e,additionalNodesProps:t}){const a=(0,Z.e4)(),[n]=(0,Z.Nt)(),[r,s]=function(e){const t={...(0,vi.Nh)(e),width:void 0},a=[(0,vi.kv)(),(0,vi._E)(),t].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,xi.R)(n,gi.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=yi.s.useGetNodesQuery({tenant:e,type:"any",sort:"-CPU",limit:K.Nz,tablets:!1,fieldsRequired:s},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=Si({entity:Ss("nodes"),postfix:Ss("by-pools-usage"),link:(0,ea.YL)({...a,[ea.vh.diagnosticsTab]:te.iJ.nodes})});return(0,d.jsx)(fi,{columnsWidthLSKey:gi.zO,data:u,columns:r,title:m,loading:c,error:l,emptyDataMessage:Ss("top-nodes.empty-data")})}function Ni({tenantName:e,additionalNodesProps:t}){const a=(0,Z.e4)(),[n]=(0,Z.Nt)(),[r,s]=function(e){const t={...(0,vi.Nh)(e),width:void 0},a=[(0,vi.fR)(),(0,vi._E)(),t,(0,vi.Rn)()].map((e=>({...e,sortable:!1}))),n=a.map((e=>e.name));return[a,(0,xi.R)(n,gi.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=yi.s.useGetNodesQuery({tenant:e,type:"any",sort:"-LoadAverage",limit:K.Nz,tablets:!1,fieldsRequired:s},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=Si({entity:Ss("nodes"),postfix:Ss("by-load"),link:(0,ea.YL)({...a,[ea.vh.diagnosticsTab]:te.iJ.nodes})});return(0,d.jsx)(fi,{columnsWidthLSKey:gi.zO,data:u,columns:r,title:m,loading:c,error:l,emptyDataMessage:Ss("top-nodes.empty-data")})}var Ei=a(69053),wi=a(10468),Ci=a(16332),Pi=a(2198);const Ii=JSON.parse('{"action_cancel":"Cancel"}'),Di=(0,Be.g4)("ydb-confirmation-dialog",{en:Ii}),Ai=(0,c.cn)("confirmation-dialog"),_i="confirmation-dialog";function Ri({caption:e="",children:t,onConfirm:a,onClose:n,progress:r,textButtonApply:s,textButtonCancel:i,buttonApplyView:o="normal",className:l,renderButtons:c,open:u}){return(0,d.jsxs)(Pi.l,{className:Ai(null,l),size:"s",onClose:n,disableOutsideClick:!0,open:u,children:[(0,d.jsx)(Pi.l.Header,{caption:(0,d.jsx)("span",{className:Ai("caption"),children:e})}),(0,d.jsx)(Pi.l.Body,{children:t}),(0,d.jsx)(Pi.l.Footer,{onClickButtonApply:a,propsButtonApply:{view:o},textButtonApply:s,textButtonCancel:null!==i&&void 0!==i?i:Di("action_cancel"),onClickButtonCancel:n,loading:r,renderButtons:c})]})}const ki=Ci.vt((e=>{const t=Ci.hS(),a=()=>{t.hide(),t.remove()};return(0,d.jsx)(Ri,{...e,onConfirm:async()=>{var n;await(null===(n=e.onConfirm)||void 0===n?void 0:n.call(e)),t.resolve(!0),a()},onClose:()=>{var n;null===(n=e.onClose)||void 0===n||n.call(e),t.resolve(!1),a()},open:t.visible})}));Ci.kz(_i,ki);var Oi=a(40569),Mi=a(28664),Li=a(36894);function zi(){const[e]=(0,Z.iK)(K.ld,[]),t=(0,Z.N4)(Li.cu).toLowerCase();return t?e.filter((e=>e.body.toLowerCase().includes(t))):e}const Fi=JSON.parse('{"action.save":"Save query","action.edit":"Edit query","action.save-as-new":"Save as new","action.edit-existing":"Edit existing","description":"The query will be saved in your browser","input-label":"Query name","input-placeholder":"Enter query name","button-apply":"Save","button-cancel":"Cancel","error.name-exists":"This name already exists","error.name-not-empty":"Name should not be empty"}'),qi=(0,Be.g4)("ydb-save-query-dialog",{en:Fi}),Qi=(0,c.cn)("ydb-save-query");function Ui(e){const t=(0,Z.YQ)();return n.useCallback((()=>{Ci.Ay.show(Gi,e),t((0,Li.gJ)())}),[t,e])}function Bi({dialogProps:e,...t}){const a=Ui(e);return(0,d.jsx)(un.$,{onClick:a,...t,children:qi("action.save")})}function $i({buttonProps:e={}}){const t=(0,Z.YQ)(),a=(0,Z.N4)(Li.aW),n=Ui(),r=()=>{t((0,Li.Wg)(a)),t((0,Li.gJ)())};return a?(()=>{const t=[{action:r,text:qi("action.edit-existing")},{action:n,text:qi("action.save-as-new")}];return(0,d.jsx)(Oi.r,{items:t,renderSwitcher:t=>(0,d.jsx)(un.$,{...t,...e,children:qi("action.edit")}),popupProps:{placement:"top"}})})():(0,d.jsx)(Bi,{})}function Hi({onSuccess:e,onCancel:t,onClose:a,open:r}){const s=zi(),i=(0,Z.YQ)(),[o,l]=n.useState(""),[c,u]=n.useState(),m=()=>{i((0,Li.NJ)("idle")),l(""),u(void 0),null===a||void 0===a||a()},p=()=>{null===t||void 0===t||t(),m()};return(0,d.jsxs)(Pi.l,{open:r,hasCloseButton:!1,size:"s",onClose:p,children:[(0,d.jsx)(Pi.l.Header,{caption:qi("action.save")}),(0,d.jsxs)("form",{onSubmit:t=>{t.preventDefault();const a=(n=o)?s.some((e=>e.name.toLowerCase()===n.trim().toLowerCase()))?qi("error.name-exists"):void 0:qi("error.name-not-empty");var n;u(a),a||(i((0,Li.Wg)(o)),m(),null===e||void 0===e||e())},children:[(0,d.jsxs)(Pi.l.Body,{className:Qi("dialog-body"),children:[(0,d.jsx)("div",{className:Qi("dialog-row"),children:qi("description")}),(0,d.jsxs)("div",{className:Qi("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryName",className:Qi("field-title","required"),children:qi("input-label")}),(0,d.jsx)("div",{className:Qi("control-wrapper"),children:(0,d.jsx)(Mi.k,{id:"queryName",placeholder:qi("input-placeholder"),value:o,onUpdate:e=>{l(e),u(void 0)},hasClear:!0,autoFocus:!0,autoComplete:!1,validationState:c?"invalid":void 0,errorMessage:c})})]})]}),(0,d.jsx)(Pi.l.Footer,{textButtonApply:qi("button-apply"),textButtonCancel:qi("button-cancel"),onClickButtonCancel:p,propsButtonApply:{type:"submit"}})]})]})}const Gi="save-query-dialog",Wi=Ci.Ay.create((e=>{const t=Ci.Ay.useModal();return(0,d.jsx)(Hi,{...e,onClose:()=>{var a;null===(a=e.onClose)||void 0===a||a.call(e),t.hide(),t.remove()},open:t.visible})}));Ci.Ay.register(Gi,Wi);const Vi=JSON.parse('{"action_apply":"Don\'t save","context_unsaved-changes-warning":"You have unsaved changes in query editor.\\nDo you want to proceed?"}'),Ji=(0,Be.g4)("ydb-change-input-confirmation",{en:Vi});function Yi(){const e=Ci.Ay.useModal(_i),t=n.useCallback((()=>{e.hide(),e.remove()}),[e]),a=n.useCallback((()=>{e.resolve(!0),t()}),[e,t]),r=n.useCallback((()=>{e.resolve(!1),t()}),[t,e]),s=n.useMemo((()=>({onSuccess:a,onCancel:r})),[a,r]);return(0,d.jsx)(Bi,{view:"action",size:"l",dialogProps:s})}async function Ki(){return await Ci.Ay.show(_i,{id:_i,caption:Ji("context_unsaved-changes-warning"),textButtonApply:Ji("action_apply"),propsButtonApply:{view:"l"},renderButtons:(e,t)=>(0,d.jsxs)(n.Fragment,{children:[t,(0,d.jsx)(Yi,{}),e]})})}function Zi(e){const t=(0,Z.N4)(wi.Wp),a=n.useMemo((()=>function(e){return async t=>{await Ki()&&e(t)}}(e)),[e]);return t?a:e}const Xi=(0,c.cn)("kv-truncated-query"),eo=({value:e="",maxQueryHeight:t=6})=>{const a=e.split("\n");if(a.length>t){const e=a.slice(0,t).join("\n"),r="\n...\nThe request was truncated. Click on the line to show the full query on the query tab";return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(ur,{className:Xi(),children:e}),(0,d.jsx)("span",{className:Xi("message",{color:"secondary"}),children:r})]})}return(0,d.jsx)(ur,{children:e})};var to=a(70206),ao=a.n(to);const no={...K.N3,dynamicRenderType:"variable"},ro=JSON.parse('{"cpu-time":"CPUTime","read-rows":"ReadRows","read-bytes":"ReadBytes","query-hash":"QueryHash","user":"User","start-time":"Start time","end-time":"End time","duration":"Duration","query-text":"Query text","application":"Application"}'),so=(0,Be.g4)("ydb-top-queries-columns",{en:ro}),io="topQueriesColumnsWidth",oo="CPUTime",lo="QueryText",co="EndTime",uo="ReadRows",mo="ReadBytes",po="UserSID",ho="OneLineQueryText",vo="QueryHash",go="Duration",yo="QueryStartAt",xo="ApplicationName",bo={get CPUTime(){return so("cpu-time")},get QueryText(){return so("query-text")},get EndTime(){return so("end-time")},get ReadRows(){return so("read-rows")},get ReadBytes(){return so("read-bytes")},get UserSID(){return so("user")},get OneLineQueryText(){return so("query-text")},get QueryHash(){return so("query-hash")},get Duration(){return so("duration")},get QueryStartAt(){return so("start-time")},get ApplicationName(){return so("application")}},fo={CPUTime:"CPUTimeUs",QueryText:void 0,EndTime:"EndTime",ReadRows:"ReadRows",ReadBytes:"ReadBytes",UserSID:"UserSID",OneLineQueryText:void 0,QueryHash:void 0,Duration:"Duration",QueryStartAt:"QueryStartAt",ApplicationName:"ApplicationName"};function jo(e){return fo[e]}function So(e){return Boolean(jo(e))}const To=(0,c.cn)("kv-top-queries"),No={name:oo,header:bo.CPUTime,sortAccessor:e=>Number(e.CPUTimeUs),render:({row:e})=>{var t;return(0,ht.Xo)((0,ht.Jc)(null!==(t=e.CPUTimeUs)&&void 0!==t?t:void 0))},width:120,align:_t.Ay.RIGHT,sortable:!1},Eo={name:lo,header:bo.QueryText,sortAccessor:e=>Number(e.CPUTimeUs),render:({row:e})=>{var t;return(0,d.jsx)("div",{className:To("query"),children:(0,d.jsx)(eo,{value:null===(t=e.QueryText)||void 0===t?void 0:t.toString(),maxQueryHeight:6})})},sortable:!1,width:500},wo={name:co,header:bo.EndTime,render:({row:e})=>(0,pe.r6)(new Date(e.EndTime).getTime()),align:_t.Ay.RIGHT,width:200},Co={name:uo,header:bo.ReadRows,render:({row:e})=>(0,pe.ZV)(e.ReadRows),sortAccessor:e=>Number(e.ReadRows),align:_t.Ay.RIGHT,width:150},Po={name:mo,header:bo.ReadBytes,render:({row:e})=>(0,pe.ZV)(e.ReadBytes),sortAccessor:e=>Number(e.ReadBytes),align:_t.Ay.RIGHT,width:150},Io={name:po,header:bo.UserSID,render:({row:e})=>(0,d.jsx)("div",{className:To("user-sid"),children:e.UserSID||"\u2013"}),sortAccessor:e=>String(e.UserSID),align:_t.Ay.LEFT},Do={name:ho,header:bo.OneLineQueryText,render:({row:e})=>{var t;return(0,d.jsx)(ur,{children:(null===(t=e.QueryText)||void 0===t?void 0:t.toString())||""})},sortable:!1,width:500},Ao={name:vo,header:bo.QueryHash,render:({row:e})=>{return t=String(e.QueryText),(ao().str(t)>>>0).toString(16).toUpperCase().padStart(8,"0");var t},width:130,sortable:!1},_o={name:go,header:bo.Duration,render:({row:e})=>{var t;return(0,ht.Xo)((0,ht.Jc)(null!==(t=e.Duration)&&void 0!==t?t:void 0))},sortAccessor:e=>Number(e.Duration),align:_t.Ay.RIGHT,width:150},Ro={name:yo,header:bo.QueryStartAt,render:({row:e})=>(0,pe.r6)(new Date(e.QueryStartAt).getTime()),sortable:!0,resizeable:!1,defaultOrder:_t.Ay.DESCENDING},ko={name:xo,header:bo.ApplicationName,render:({row:e})=>(0,d.jsx)("div",{className:To("user-sid"),children:e.ApplicationName||"\u2013"}),sortable:!0};function Oo({tenantName:e}){var t,a;const r=(0,Z.YQ)(),s=(0,Yn.zy)(),i=(0,Yn.W6)(),o=(0,ge.mA)(s),[l]=(0,Z.Nt)(),c=n.useMemo((()=>[Ao,Do,No].map((e=>({...e,sortable:!1})))),[]),{currentData:u,isFetching:m,error:p}=Ei.Ke.useGetTopQueriesQuery({database:e},{pollingInterval:l}),h=m&&void 0===u,v=(null===u||void 0===u||null===(t=u.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],g=Zi(n.useCallback((e=>{const{QueryText:t}=e;r((0,wi.iZ)({input:t}));const a=(0,ge.mA)(s),n=(0,ea.YL)({...a,[te.Dt]:te.Dg.query,[ea.vh.queryTab]:te.tQ.newQuery});i.push(n)}),[r,i,s])),y=Si({entity:Ss("queries"),postfix:Ss("by-cpu-time",{executionPeriod:Ss("executed-last-hour")}),onClick:()=>{r((0,Ei.TX)({from:void 0,to:void 0}))},link:(0,ea.YL)({...o,[ea.vh.diagnosticsTab]:te.iJ.topQueries})});return(0,d.jsx)(fi,{columnsWidthLSKey:io,data:v||[],columns:c,onRowClick:g,title:y,loading:h,error:(0,Tt.Cb)(p),rowClassName:()=>bi("top-queries-row")})}function Mo(e,t){return`SELECT\n ${t?`CAST(SUBSTRING(CAST(Path AS String), ${t.length}) AS Utf8) AS Path`:"Path"},\n TabletId,\n CPUCores,\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\nORDER BY CPUCores DESC\nLIMIT ${K.Nz}`}const Lo=H.F.injectEndpoints({endpoints:e=>({getTopShards:e.query({queryFn:async({database:e,path:t=""},{signal:a})=>{try{const n=await window.api.viewer.sendQuery({query:Mo(t,e),database:e,action:"execute-scan"},{signal:a,withRetries:!0});return(0,Tt.We)(n)?{error:n}:{data:(0,Tt.fW)(n)}}catch(n){return{error:n||new Error("Unauthorized")}}},providesTags:["All"]})}),overrideExisting:"throw"});var zo=a(67884);function Fo({path:e,location:t,...a}){const n=(0,ge.mA)(t),r=(0,ge.Ow)({...n,schema:e});return(0,d.jsx)(zo.N,{view:"normal",...a,href:r})}var qo=a(80420),Qo=a(13342),Uo=a(16439),Bo=a(29819);const $o=JSON.parse('{"tablet-id":"TabletId","cpu-cores":"CPUCores","data-size":"DataSize (B)","path":"Path","node-id":"NodeId","peak-time":"PeakTime","in-flight-tx-count":"InFlightTxCount","interval-end":"IntervalEnd"}'),Ho=(0,Be.g4)("ydb-top-shards-columns",{en:$o}),Go="topShardsColumnsWidth",Wo="TabletId",Vo="CPUCores",Jo="DataSize",Yo="Path",Ko="NodeId",Zo="PeakTime",Xo="InFlightTxCount",el="IntervalEnd",tl={get TabletId(){return Ho("tablet-id")},get CPUCores(){return Ho("cpu-cores")},get DataSize(){return Ho("data-size")},get Path(){return Ho("path")},get NodeId(){return Ho("node-id")},get PeakTime(){return Ho("peak-time")},get InFlightTxCount(){return Ho("in-flight-tx-count")},get IntervalEnd(){return Ho("interval-end")}},al={TabletId:void 0,CPUCores:"CPUCores",DataSize:"DataSize",Path:void 0,NodeId:void 0,PeakTime:void 0,InFlightTxCount:"InFlightTxCount",IntervalEnd:void 0};function nl(e){return al[e]}const rl=(e,t)=>({name:Yo,header:tl.Path,render:({row:a})=>(0,d.jsx)(Fo,{path:e+a.Path,location:t,children:a.Path}),sortable:!1,width:300}),sl={name:Vo,header:tl.CPUCores,render:({row:e})=>{return t=e.CPUCores||0,`${(0,pe.CR)(100*Number(t),2)}%`;var t},align:_t.Ay.RIGHT},il={name:Jo,header:tl.DataSize,render:({row:e})=>(0,pe.ZV)(e.DataSize),align:_t.Ay.RIGHT},ol={name:Wo,header:tl.TabletId,render:({row:e})=>e.TabletId?(0,d.jsx)(qo.$,{tabletId:e.TabletId}):"\u2013",sortable:!1,width:220},ll={name:Ko,header:tl.NodeId,render:({row:e})=>e.NodeId?(0,d.jsx)(Pa.E,{to:(0,Bo.vI)(e.NodeId),children:e.NodeId}):"\u2013",align:_t.Ay.RIGHT},cl={name:Vo,header:tl.CPUCores,render:({row:e})=>(0,d.jsx)(Qo.U,{value:(0,pe.CR)(100*Number(e.CPUCores),2),theme:(0,Uo.f)(100*Number(e.CPUCores))}),align:_t.Ay.RIGHT,sortable:!1,width:140,resizeMinWidth:140},dl={name:Xo,header:tl.InFlightTxCount,render:({row:e})=>(0,pe.ZV)(e.InFlightTxCount),align:_t.Ay.RIGHT},ul=({tenantName:e,path:t})=>{var a,n;const r=(0,Yn.zy)(),s=(0,ge.mA)(r),[i]=(0,Z.Nt)(),{currentData:o,isFetching:l,error:c}=Lo.useGetTopShardsQuery({database:e,path:t},{pollingInterval:i}),u=l&&void 0===o,m=(null===o||void 0===o||null===(a=o.resultSets)||void 0===a||null===(n=a[0])||void 0===n?void 0:n.result)||[],p=((e,t)=>[ol,rl(e,t),cl])(e,r),h=Si({entity:Ss("shards"),postfix:Ss("by-cpu-usage"),link:(0,ea.YL)({...s,[ea.vh.diagnosticsTab]:te.iJ.topShards})});return(0,d.jsx)(fi,{columnsWidthLSKey:Go,data:m||[],columns:p,title:h,loading:u,error:(0,Tt.Cb)(c)})},ml=[{title:Ss("charts.cpu-usage"),metrics:["IC","IO","Batch","User","System"].map((e=>({target:`resources.cpu.${e}.usage`,title:e}))),options:{dataType:"percent",scaleRange:{min:0,max:1}}}];function pl({tenantName:e,additionalNodesProps:t}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(fs,{database:e,charts:ml}),(0,d.jsx)(Ni,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(Ti,{tenantName:e,additionalNodesProps:t}),(0,d.jsx)(ul,{tenantName:e,path:e}),(0,d.jsx)(Oo,{tenantName:e})]})}var hl=a(73473);function vl({tenantName:e,additionalNodesProps:t}){const a=(0,Z.e4)(),[n]=(0,Z.Nt)(),[r,s]=function(e){const t=[(0,vi._E)(),(0,vi.Nh)(e),(0,vi.jl)(),(0,vi.fR)(),(0,vi.iX)(),(0,vi.oz)(),(0,vi.qp)(e)].map((e=>({...e,sortable:!1}))),a=t.map((e=>e.name));return[t,(0,xi.R)(a,gi.fN)]}({getNodeRef:null===t||void 0===t?void 0:t.getNodeRef,database:e}),{currentData:i,isFetching:o,error:l}=yi.s.useGetNodesQuery({tenant:e,type:"any",tablets:!0,sort:"-Memory",limit:K.Nz,fieldsRequired:s},{pollingInterval:n}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=Si({entity:Ss("nodes"),postfix:Ss("by-memory"),link:(0,ea.YL)({...a,[ea.vh.diagnosticsTab]:te.iJ.nodes})});return(0,d.jsx)(fi,{columnsWidthLSKey:gi.zO,data:u,columns:r,title:m,loading:c,error:l,emptyDataMessage:Ss("top-nodes.empty-data")})}const gl=[{title:Ss("charts.memory-usage"),metrics:[{target:"resources.memory.used_bytes",title:Ss("charts.memory-usage")}],options:{dataType:"size"}}];function yl({tenantName:e,memoryStats:t,memoryUsed:a,memoryLimit:r}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(fs,{database:e,charts:gl}),(0,d.jsx)("div",{className:bi("title"),children:"Memory details"}),(0,d.jsx)("div",{className:bi("memory-info"),children:t?(0,d.jsx)(hl.S,{formatValues:pe.vX,stats:t}):(0,d.jsx)(si.O,{value:a,capacity:r,formatValues:pe.vX,colorizeProgress:!0})}),(0,d.jsx)(vl,{tenantName:e})]})}var xl=a(18863),bl=a(10174),fl=a(20831),jl=a(10360);function Sl({tenant:e}){const t=(0,Z.e4)(),a=(0,se.Pm)(),n=(0,se.YA)(),[r]=(0,Z.Nt)(),[s,i]=function(){const e=(0,fl.k)(),t=e.map((e=>e.name));return[e,(0,xi.R)(t,jl.YX)]}(),{currentData:o,isFetching:l,error:c}=bl.S.useGetStorageGroupsInfoQuery({tenant:e,sort:"-Usage",with:"all",limit:K.Nz,shouldUseGroupsHandler:n,fieldsRequired:i},{pollingInterval:r,skip:!a}),u=l&&void 0===o,m=(null===o||void 0===o?void 0:o.groups)||[],p=Si({entity:Ss("groups"),postfix:Ss("by-usage"),link:(0,ea.YL)({...t,[ea.vh.diagnosticsTab]:te.iJ.storage})});return(0,d.jsx)(fi,{columnsWidthLSKey:jl.qK,data:m,columns:s,title:p,loading:u||!a,error:c})}const Tl=e=>`\nSELECT\n Path, SUM(DataSize) as Size\nFROM \`${e}/.sys/partition_stats\`\nGROUP BY Path\n ORDER BY Size DESC\n LIMIT ${K.Nz}\n`,Nl=H.F.injectEndpoints({endpoints:e=>({getTopTables:e.query({queryFn:async({path:e},{signal:t})=>{try{const a=await window.api.viewer.sendQuery({query:Tl(e),database:e,action:"execute-scan"},{signal:t,withRetries:!0});return(0,Tt.We)(a)?{error:a}:{data:(0,Tt.fW)(a)}}catch(a){return{error:a||"Unauthorized"}}},providesTags:["All"]})}),overrideExisting:"throw"});function El({path:e}){var t,a;const n=(0,Yn.zy)(),[r]=(0,Z.Nt)(),{currentData:s,error:i,isFetching:o}=Nl.useGetTopTablesQuery({path:e},{pollingInterval:r}),l=o&&void 0===s,c=(null===s||void 0===s||null===(t=s.resultSets)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.result)||[],u=[{name:"Size",width:100,sortable:!1,render:({row:e})=>(e=>{const t=(0,ua.dd)(null!==c&&void 0!==c&&c.length?Number(c[0].Size):0,0);return(0,ua.z3)({value:e,size:t,precision:1})})(Number(e.Size)),align:_t.Ay.RIGHT},{name:"Path",width:700,sortable:!1,render:({row:e})=>e.Path?(0,d.jsx)(dt.s,{content:e.Path,children:(0,d.jsx)(Fo,{path:String(e.Path),location:n,children:e.Path})}):null}],m=Si({entity:Ss("tables"),postfix:Ss("by-size")});return(0,d.jsx)(fi,{columnsWidthLSKey:"topTablesTableColumnsWidth",data:c||[],columns:u,title:m,loading:l,error:(0,Tt.Cb)(i)})}const wl=[{title:Ss("charts.storage-usage"),metrics:[{target:"resources.storage.used_bytes",title:Ss("charts.storage-usage")}],options:{dataType:"size"}}];function Cl({tenantName:e,metrics:t}){const{blobStorageUsed:a,tabletStorageUsed:r,blobStorageLimit:s,tabletStorageLimit:i}=t,o=[{label:(0,d.jsx)(Da,{text:Ss("storage.tablet-storage-title"),popoverContent:Ss("storage.tablet-storage-description")}),value:(0,d.jsx)(si.O,{value:r,capacity:i,formatValues:pe.j9,colorizeProgress:!0})},{label:(0,d.jsx)(Da,{text:Ss("storage.db-storage-title"),popoverContent:Ss("storage.db-storage-description")}),value:(0,d.jsx)(si.O,{value:a,capacity:s,formatValues:pe.j9,colorizeProgress:!0})}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(fs,{database:e,charts:wl}),(0,d.jsx)(xl.z,{className:bi("storage-info"),title:"Storage details",info:o}),(0,d.jsx)(El,{path:e}),(0,d.jsx)(Sl,{tenant:e})]})}function Pl({tenantName:e,additionalTenantProps:t,additionalNodesProps:a}){var n,r,s;const{metricsTab:i}=(0,Z.N4)((e=>e.tenant)),[o]=(0,Z.Nt)(),{currentData:l,isFetching:c}=ie.z6.useGetTenantInfoQuery({path:e},{pollingInterval:o}),u=c&&void 0===l,{Name:m,Type:p,Overall:h}=l||{},v=(g=p)&&P[g];var g;const{currentData:y}=G.useGetOverviewQuery({path:e,database:e},{pollingInterval:o}),{Tables:x,Topics:b}=(null===y||void 0===y||null===(n=y.PathDescription)||void 0===n||null===(r=n.DomainDescription)||void 0===r?void 0:r.DiskSpaceUsage)||{},f=[null===x||void 0===x?void 0:x.TotalSize,null===b||void 0===b?void 0:b.DataSize].reduce(((e,t)=>t?e+Number(t):e),0),j={...l,Metrics:{...null===l||void 0===l?void 0:l.Metrics,Storage:String(f)}},{blobStorage:S,tabletStorage:T,blobStorageLimit:N,tabletStorageLimit:E,poolsStats:w,memoryStats:C,blobStorageStats:I,tabletStorageStats:D}=(0,Xr.uI)(j),A={blobStorageUsed:S,blobStorageLimit:N,tabletStorageUsed:T,tabletStorageLimit:E};if(u)return(0,d.jsx)("div",{className:bi("loader"),children:(0,d.jsx)(Jr.a,{size:"m"})});const _=null===t||void 0===t||null===(s=t.getMonitoringLink)||void 0===s?void 0:s.call(t,m,p);return(0,d.jsxs)("div",{className:bi(),children:[(0,d.jsxs)("div",{className:bi("info"),children:[(0,d.jsx)("div",{className:bi("top-label"),children:v}),(0,d.jsxs)("div",{className:bi("top"),children:[(0,d.jsx)("div",{className:bi("tenant-name-wrapper"),children:(0,d.jsx)(Un.c,{status:h,name:m||K.oK,withLeftTrim:!0,hasClipboardButton:Boolean(l),clipboardButtonAlwaysVisible:!0})}),_&&(0,d.jsx)(Zr,{href:_})]}),(0,d.jsx)(ui,{poolsCpuStats:w,memoryStats:C,blobStorageStats:I,tabletStorageStats:D,tenantName:e})]}),(()=>{switch(i){case te.pA.cpu:return(0,d.jsx)(pl,{tenantName:e,additionalNodesProps:a});case te.pA.storage:return(0,d.jsx)(Cl,{tenantName:e,metrics:A});case te.pA.memory:return(0,d.jsx)(yl,{tenantName:e,memoryUsed:j.MemoryUsed,memoryLimit:j.MemoryLimit,memoryStats:j.MemoryStats});case te.pA.healthcheck:return(0,d.jsx)(Vs,{tenantName:e});default:return(0,d.jsx)(Ns,{database:e})}})()]})}const Il=(0,c.cn)("kv-detailed-overview");const Dl=function(e){const{type:t,tenantName:a,path:n,additionalTenantProps:r,additionalNodesProps:s}=e,i=a===n;return(0,d.jsx)("div",{className:Il(),children:i?(0,d.jsx)("div",{className:Il("section"),children:(0,d.jsx)(Pl,{tenantName:a,additionalTenantProps:r,additionalNodesProps:s})}):(0,d.jsx)(Wr,{type:t,path:n,database:a})})},Al={id:te.iJ.overview,title:"Info"},_l={id:te.iJ.schema,title:"Schema"},Rl={id:te.iJ.topQueries,title:"Queries"},kl={id:te.iJ.topShards,title:"Top shards"},Ol={id:te.iJ.nodes,title:"Nodes"},Ml={id:te.iJ.tablets,title:"Tablets"},Ll={id:te.iJ.storage,title:"Storage"},zl={id:te.iJ.network,title:"Network"},Fl={id:te.iJ.describe,title:"Describe"},ql={id:te.iJ.hotKeys,title:"Hot keys"},Ql={id:te.iJ.graph,title:"Graph"},Ul={id:te.iJ.consumers,title:"Consumers"},Bl={id:te.iJ.partitions,title:"Partitions"},$l=[Al,Ml,Fl],Hl=[Al,Rl,kl,Ol,Ml,Ll,zl,Fl,{id:te.iJ.configs,title:"Configs"},{id:te.iJ.operations,title:"Operations"}],Gl=[Al,_l,kl,Ol,Ql,Ml,ql,Fl],Wl=[Al,_l,kl,Ol,Ml,Fl],Vl=[Al,kl,Ol,Fl],Jl=[Al,Ul,Bl,Ol,Ml,Fl],Yl=[Al,Ul,Bl,Ol,Ml,Fl],Kl=[Al,Fl],Zl=[Al,_l,Fl],Xl=[Al,_l,Fl],ec={[x.EPathTypeInvalid]:void 0,[x.EPathTypeSubDomain]:Hl,[x.EPathTypeExtSubDomain]:Hl,[x.EPathTypeColumnStore]:Hl,[x.EPathTypeTable]:Gl,[x.EPathTypeColumnTable]:Wl,[x.EPathTypeDir]:Vl,[x.EPathTypeTableIndex]:Vl,[x.EPathTypeCdcStream]:Jl,[x.EPathTypePersQueueGroup]:Yl,[x.EPathTypeExternalDataSource]:Kl,[x.EPathTypeExternalTable]:Zl,[x.EPathTypeView]:Xl,[x.EPathTypeReplication]:$l};var tc=a(81240),ac=a(80604);const nc=H.F.injectEndpoints({endpoints:e=>({getHotKeys:e.query({queryFn:async({path:e,database:t},{signal:a})=>{try{var n;const r=await window.api.viewer.getHotKeys({path:e,database:t,enableSampling:!0},{signal:a});if(Array.isArray(r.hotkeys))return{data:r.hotkeys};await Promise.race([new Promise((e=>{setTimeout(e,5e3)})),new Promise(((e,t)=>{a.addEventListener("abort",t)}))]);return{data:null!==(n=(await window.api.viewer.getHotKeys({path:e,database:t,enableSampling:!1},{signal:a})).hotkeys)&&void 0!==n?n:null}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"}),rc=JSON.parse('{"hot-keys-collecting":"Please wait a little while we are collecting hot keys samples...","no-data":"No information about hot keys","help":"Hot keys contains a list of table primary key values that are accessed most often. Sample is collected upon request to the tab during 5s time interval. Samples column indicates how many requests to the particular key value were registered during collection phase."}'),sc=(0,Be.g4)("ydb-hot-keys",{en:rc});var ic;function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},oc.apply(null,arguments)}const lc=function(e){return n.createElement("svg",oc({viewBox:"0 0 12 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),ic||(ic=n.createElement("path",{d:"M8 7h3V5h1V2H6.66C6.085.79 4.86 0 3.5 0 1.57 0 0 1.57 0 3.5S1.57 7 3.5 7c1.36 0 2.59-.79 3.16-2H8v2zm2-1H9V4H5.97l-.115.335a2.5 2.5 0 110-1.67L5.97 3H11v1h-1v2zM3.5 5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zM3 3.5a.5.5 0 111 0 .5.5 0 01-1 0z"})))},cc=(0,c.cn)("ydb-hot-keys"),dc="accessSample";function uc({path:e,database:t}){var a,r;const{currentData:s,isFetching:i,error:o}=nc.useGetHotKeysQuery({path:e,database:t}),l=i&&void 0===s,[c]=(0,Z.Nt)(),{currentData:u,isLoading:m}=G.useGetOverviewQuery({path:e,database:t},{pollingInterval:c}),p=null===u||void 0===u||null===(a=u.PathDescription)||void 0===a||null===(r=a.Table)||void 0===r?void 0:r.KeyColumnNames,h=n.useMemo((()=>((e=[])=>[...e.map(((e,t)=>({name:e,header:(0,d.jsxs)("div",{className:cc("primary-key-column"),children:[(0,d.jsx)(lt.I,{data:lc,width:12,height:7}),e]}),render:({row:e})=>e.keyValues[t],align:_t.Ay.RIGHT,sortable:!1}))),{name:dc,header:"Samples",render:({row:e})=>e.accessSample,align:_t.Ay.RIGHT,sortable:!1}])(p)),[p]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(mc,{}),l||m?(0,d.jsx)("div",{children:sc("hot-keys-collecting")}):o?(0,d.jsx)(ce.o,{error:o}):s?(0,d.jsx)(ze.l,{wrapperClassName:cc("table"),columns:h,data:s,settings:K.N3,initialSortOrder:{columnId:dc,order:_t.Ay.DESCENDING}}):(0,d.jsx)("div",{children:sc("no-data")})]})}function mc(){const[e,t]=(0,Z.iK)(K.Gj);return e?null:(0,d.jsxs)(ac.Z,{theme:"info",view:"filled",type:"container",className:cc("help-card"),children:[sc("help"),(0,d.jsx)(un.$,{className:cc("help-card__close-button"),view:"flat",onClick:()=>t(!0),children:(0,d.jsx)(lt.I,{data:tc.A,size:18})})]})}var pc=a(78524),hc=a(9252);const vc=H.F.injectEndpoints({endpoints:e=>({getNetworkInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getNetwork({path:e,database:e},{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"});var gc=a(88610);const yc=(0,c.cn)("node-network");function xc(){}function bc({nodeId:e,connected:t,capacity:a,rack:r,status:s,onClick:i=xc,onMouseEnter:o=xc,onMouseLeave:l=xc,showID:c,isBlurred:u}){const m=n.useRef(null),p=s||function(e=0,t=0){const a=Math.floor(e/t*100);return 100===a?zs.m.Green:a>=70?zs.m.Yellow:a>=1?zs.m.Red:zs.m.Grey}(t,a);return(0,d.jsx)("div",{ref:m,className:yc({[p.toLowerCase()]:!0,id:c,blur:u}),onMouseEnter:()=>{o(m.current,{nodeId:e,connected:t,capacity:a,rack:r},"node")},onMouseLeave:()=>{l()},onClick:()=>i(e),children:c?e:null})}const fc=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>t.Connected?e+1:e),0);var jc,Sc,Tc,Nc,Ec,wc,Cc,Pc,Ic,Dc,Ac,_c,Rc,kc,Oc;function Mc(){return Mc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Mc.apply(null,arguments)}const Lc=function(e){return n.createElement("svg",Mc({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 221 204"},e),jc||(jc=n.createElement("path",{d:"M68.46 2.529v25.227c0 1.227.876 2.278 2.102 2.511 16.643 2.979 29.14 17.812 28.498 35.448-.642 18.045-15.359 32.703-33.345 33.403-17.636.643-32.41-11.854-35.448-28.44a2.562 2.562 0 00-2.51-2.102H2.528c-1.519 0-2.687 1.285-2.512 2.745 3.446 32.703 31.243 58.106 64.939 57.814 35.155-.292 63.829-29.024 64.121-64.18.292-33.695-25.17-61.492-57.873-64.938-1.46-.175-2.744.993-2.744 2.512z",fill:"#EBF2FA"})),Sc||(Sc=n.createElement("path",{d:"M22.736 18.354l17.811 17.812c.876.876 2.278.992 3.329.233 4.146-3.095 9.052-5.197 14.366-6.19 1.226-.233 2.102-1.226 2.102-2.511V2.528a2.502 2.502 0 00-2.803-2.51C44.46 1.418 32.488 6.674 22.91 14.674c-1.168.935-1.226 2.628-.175 3.68zm-9.403 6.133C6.093 33.83 1.303 45.16.02 57.54c-.176 1.46 1.05 2.745 2.51 2.745H27.7a2.562 2.562 0 002.511-2.103c.818-4.672 2.628-9.051 5.14-12.847a2.642 2.642 0 00-.293-3.212L17.13 24.312c-1.05-1.11-2.861-.993-3.796.175zm67.275 107.392h32.995c1.868 0 3.387 1.518 3.445 3.445v65.231a3.451 3.451 0 01-3.445 3.445H80.608a3.452 3.452 0 01-3.446-3.445v-65.231a3.451 3.451 0 013.446-3.445zm77.844 27.097h-32.878a3.514 3.514 0 00-3.503 3.504v37.959a3.514 3.514 0 003.503 3.504h32.878a3.515 3.515 0 003.504-3.504V162.48a3.515 3.515 0 00-3.504-3.504zm12.205 18.28h32.586a3.639 3.639 0 013.621 3.62v19.388a3.639 3.639 0 01-3.621 3.621h-32.586a3.639 3.639 0 01-3.62-3.621v-19.388a3.638 3.638 0 013.62-3.62z",fill:"#EBF2FA"})),Tc||(Tc=n.createElement("path",{d:"M134.275 171.532h-113c-5.84 0-10.628-4.789-10.628-10.629v-73.23c0-5.84 4.788-10.629 10.628-10.629h112.941c5.84 0 10.629 4.789 10.629 10.629v73.23c.058 5.899-4.731 10.629-10.57 10.629v0z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),Nc||(Nc=n.createElement("path",{d:"M21.625 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM31.494 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM41.363 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074z",fill:"#2EE5C0"})),Ec||(Ec=n.createElement("path",{d:"M10.822 98.592h133.673",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),wc||(wc=n.createElement("path",{d:"M184.555 149.164L57.89 156.172c-4.263.234-7.767-3.037-7.767-7.3V51.114c0-4.263 3.504-7.533 7.767-7.3l126.665 7.008c3.27.176 5.898 3.33 5.898 7.008v84.327c0 3.679-2.628 6.832-5.898 7.007z",fill:"#027BF3"})),Cc||(Cc=n.createElement("path",{d:"M65.13 54.151c0 1.986-1.576 3.504-3.562 3.387-1.985-.058-3.562-1.752-3.562-3.737 0-1.986 1.635-3.504 3.562-3.387 1.927.058 3.562 1.752 3.562 3.737zm11.506.466a3.38 3.38 0 01-3.504 3.388c-1.927-.059-3.504-1.753-3.504-3.68a3.38 3.38 0 013.504-3.387c1.927.117 3.504 1.752 3.504 3.68zm7.825 3.855c1.869.117 3.387-1.402 3.387-3.329 0-1.927-1.518-3.562-3.387-3.62-1.927-.117-3.445 1.401-3.445 3.328 0 1.927 1.576 3.562 3.445 3.62z",fill:"#fff"})),Pc||(Pc=n.createElement("path",{d:"M75.467 142.974V85.277c-3.971-.525-8.584-.409-13.899.7v57.64l13.899-.643zM88.84 90.651v51.799l-11.096.467v-57.23c4.322.934 7.942 2.745 11.096 4.964zm13.431 13.899a1.618 1.618 0 01-.146-.176 1.487 1.487 0 00-.146-.175c-.42-.51-.841-1.026-1.265-1.546-2.875-3.522-5.874-7.197-9.538-10.25v49.93l11.095-.467V104.55zm13.432 5.722c-3.913-.058-7.709-.701-11.096-3.445v34.922l11.096-.468v-31.009zm13.431-.409c-2.764-.173-5.529.006-8.246.181-.957.062-1.907.123-2.849.169v30.951l11.095-.467v-30.834zm24.002 29.841l-8.234.35v-22.191c8.176 9.285 8.234 21.841 8.234 21.841zM140.113 113.6a19.774 19.774 0 012.453 1.927v24.644l-11.096.467v-30.483c2.92.467 5.782 1.46 8.643 3.445z",fill:"#00236B"})),Ic||(Ic=n.createElement("path",{d:"M55.745 76.436a2 2 0 103.123 2.499l-3.123-2.499zm5.766-4.006l1.575-1.233a2 2 0 00-3.136-.017l1.561 1.25zm2.63 6.605a2 2 0 103.15-2.465l-3.15 2.465zm107.94 53.502a2 2 0 00-2.499 3.123l2.499-3.123zm4.006 5.766l1.214 1.59a1.999 1.999 0 00.036-3.151l-1.25 1.561zm-6.644 2.557a1.999 1.999 0 102.427 3.179l-2.427-3.179zM58.868 78.935l4.205-5.256-3.123-2.499-4.205 5.256 3.123 2.499zm1.068-5.273l4.205 5.373 3.15-2.465-4.205-5.373-3.15 2.465zm109.646 61.998l5.256 4.205 2.499-3.123-5.256-4.205-2.499 3.123zm5.292 1.054l-5.431 4.146 2.427 3.179 5.431-4.146-2.427-3.179zM147.137 69.146a2 2 0 10-.149 3.998l.149-3.998zm29.634 5.107a2 2 0 10.149-3.997l-.149 3.997zm-29.657 5.404a2 2 0 00-.102 3.999l.102-3.999zm29.681 4.758a2 2 0 00.102-3.999l-.102 4zm-29.72 5.928a2 2 0 10-.023 4l.023-4zm29.759 4.176a2 2 0 10.024-4l-.024 4zm-29.846-21.375l29.783 1.11.149-3.998-29.783-1.11-.149 3.998zm.024 10.512l29.783.76.102-4-29.783-.759-.102 3.999zm.04 10.687l29.782.176.024-4-29.783-.175-.023 4zM143.442 71.202a2.458 2.458 0 01-2.57 2.453c-1.401-.058-2.569-1.285-2.569-2.686 0-1.402 1.168-2.57 2.569-2.453 1.46.058 2.57 1.285 2.57 2.686zm.001 10.396a2.458 2.458 0 01-2.57 2.453c-1.401-.059-2.569-1.285-2.569-2.686 0-1.46 1.168-2.57 2.569-2.453 1.46.058 2.57 1.284 2.57 2.686zm-2.57 12.848a2.458 2.458 0 002.57-2.453c0-1.402-1.11-2.628-2.57-2.686-1.401-.117-2.569 1.05-2.569 2.452s1.168 2.628 2.569 2.687z",fill:"#fff"})),Dc||(Dc=n.createElement("path",{opacity:.2,d:"M190.452 91.875V57.771c0-3.68-2.628-6.833-5.899-7.008l-23.651-1.285a35.18 35.18 0 00-1.752 10.98c0 17.635 12.79 31.826 28.09 31.65 1.051.06 2.16-.058 3.212-.233z",fill:"#00236B"})),Ac||(Ac=n.createElement("path",{d:"M220.645 58.883c0-16.585-11.621-30.775-26.454-31.651-15.3-.876-28.089 12.672-28.089 30.308s12.789 31.827 28.089 31.652c14.833-.117 26.454-13.724 26.454-30.309z",fill:"#FF4645"})),_c||(_c=n.createElement("path",{d:"M215.329 40.372c-4.788-7.475-12.38-12.614-21.14-13.14v31.01l21.14-17.87z",fill:"#FC0"})),Rc||(Rc=n.createElement("path",{d:"M215.329 40.372l-21.14 17.87 26.455.642c0-6.89-1.986-13.315-5.315-18.512z",fill:"#00236B"})),kc||(kc=n.createElement("path",{d:"M194.248 58.24V27.233c-15.301-.876-28.09 12.672-28.09 30.308l28.09.7z",fill:"#FF4645"})),Oc||(Oc=n.createElement("path",{d:"M161.151 14.734a2 2 0 10-4 0h4zm-4 4.204a2 2 0 004 0h-4zm4 8.876a2 2 0 10-4 0h4zm-4 4.555a2 2 0 004 0h-4zm10.819-6.816a2 2 0 000-4v4zm-4.263-4a2 2 0 100 4v-4zm-9.169 4a2 2 0 100-4v4zm-4.263-4a2 2 0 000 4v-4zm6.876-6.82v4.205h4v-4.204h-4zm0 13.08v4.556h4v-4.555h-4zm10.819-6.26h-4.263v4h4.263v-4zm-13.432 0h-4.263v4h4.263v-4z",fill:"#2EE5C0"})))},zc=(0,c.cn)("network");function Fc({tenantName:e}){var t,a;const[r]=(0,Z.Nt)(),s=(0,Z.N4)(gc.yV),i=(0,Z.YQ)(),[o,l]=n.useState(),[c,u]=n.useState(!1),[m,p]=n.useState(!1),{currentData:h,isFetching:v,error:g}=vc.useGetNetworkInfoQuery(e,{pollingInterval:r});if(v&&void 0===h)return(0,d.jsx)("div",{className:"loader",children:(0,d.jsx)(Jr.a,{size:"l"})});const y=h,x=null!==(t=(null===y||void 0===y?void 0:y.Tenants)&&y.Tenants[0].Nodes)&&void 0!==t?t:[];if(!g&&0===x.length)return(0,d.jsx)("div",{className:"error",children:"no nodes data"});const b=Qc(x,"NodeType"),f=o?Qc(null!==(a=o.Peers)&&void 0!==a?a:[],"NodeType"):{};return(0,d.jsxs)("div",{className:zc(),children:[g?(0,d.jsx)(ce.o,{error:g}):null,x.length>0?(0,d.jsx)("div",{className:zc("inner"),children:(0,d.jsxs)("div",{className:zc("nodes-row"),children:[(0,d.jsxs)("div",{className:zc("left"),children:[(0,d.jsx)("div",{className:zc("controls-wrapper"),children:(0,d.jsxs)("div",{className:zc("controls"),children:[(0,d.jsx)(hc.k,{value:s,onChange:e=>{i((0,gc.$u)(e))},className:zc("problem-filter")}),(0,d.jsx)("div",{className:zc("checkbox-wrapper"),children:(0,d.jsx)(le.S,{onUpdate:()=>{u(!c)},checked:c,children:"ID"})}),(0,d.jsx)("div",{className:zc("checkbox-wrapper"),children:(0,d.jsx)(le.S,{onUpdate:()=>{p(!m)},checked:m,children:"Racks"})})]})}),(0,d.jsx)(qc,{nodes:b,showId:c,showRacks:m,clickedNode:o,onClickNode:l})]}),(0,d.jsx)("div",{className:zc("right"),children:o?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:zc("label"),children:["Connectivity of node"," ",(0,d.jsx)(ne.N_,{className:zc("link"),to:(0,Bo.vI)(o.NodeId),children:o.NodeId})," ","to other nodes"]}),(0,d.jsx)("div",{className:zc("nodes-row"),children:(0,d.jsx)(qc,{nodes:f,isRight:!0,showId:c,showRacks:m,clickedNode:o,onClickNode:l})})]}):(0,d.jsxs)("div",{className:zc("placeholder"),children:[(0,d.jsx)("div",{className:zc("placeholder-img"),children:(0,d.jsx)(lt.I,{data:Lc,width:221,height:204})}),(0,d.jsx)("div",{className:zc("placeholder-text"),children:"Select node to see its connectivity to other nodes"})]})})]})}):null]})}function qc({nodes:e,isRight:t,showId:a,showRacks:n,clickedNode:r,onClickNode:s}){const i=(0,Z.N4)(gc.yV),o=(0,Z.YQ)();let l=0;const c=Object.keys(e).map(((c,u)=>{const m=Qc(e[c],"Rack");return(0,d.jsxs)("div",{className:zc("nodes-container",{right:t}),children:[(0,d.jsxs)("div",{className:zc("nodes-title"),children:[c," nodes"]}),(0,d.jsx)("div",{className:zc("nodes"),children:n?Object.keys(m).map(((e,n)=>(0,d.jsxs)("div",{className:zc("rack-column"),children:[(0,d.jsx)("div",{className:zc("rack-index"),children:"undefined"===e?"?":e}),m[e].map(((e,n)=>{let c,u;return!t&&"Peers"in e&&e.Peers&&(c=Object.keys(e.Peers).length,u=fc(e.Peers)),i===gc.s$.PROBLEMS&&c!==u||i===gc.s$.ALL||t?(l++,(0,d.jsx)(bc,{nodeId:e.NodeId,showID:a,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:c,connected:u,onMouseEnter:(...e)=>{o((0,me.DK)(...e))},onMouseLeave:()=>{o((0,me.w7)())},onClick:t?void 0:()=>{s(r&&e.NodeId===r.NodeId?void 0:e)},isBlurred:!t&&r&&r.NodeId!==e.NodeId},n)):null}))]},n))):e[c].map(((e,n)=>{let c,u;const m=e&&"Peers"in e?e.Peers:void 0;return!t&&"Peers"in e&&e.Peers&&(c=e.Peers.length,u=fc(m)),i===gc.s$.PROBLEMS&&c!==u||i===gc.s$.ALL||t?(l++,(0,d.jsx)(bc,{nodeId:e.NodeId,showID:a,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:null===m||void 0===m?void 0:m.length,connected:u,onMouseEnter:(...e)=>{o((0,me.DK)(...e))},onMouseLeave:()=>{o((0,me.w7)())},onClick:t?void 0:()=>{s(r&&e.NodeId===r.NodeId?void 0:e)},isBlurred:!t&&r&&r.NodeId!==e.NodeId},n)):null}))})]},u)}));return i===gc.s$.PROBLEMS&&0===l?(0,d.jsx)(pc.v,{name:"thumbsUp",width:"200"}):c}function Qc(e,t){return e.reduce(((e,a)=>(e[a[t]]?e[a[t]].push(a):e[a[t]]=[a],e)),{})}const Uc=["NodeId","Host","Connections","NetworkUtilization","SendThroughput","ReceiveThroughput","PingTime","ClockSkew"],Bc=["NodeId"],$c=["Host","DC","Rack","Uptime","ConnectStatus","NetworkUtilization","PingTime","ClockSkew"];function Hc({database:e,path:t,parentRef:a,additionalNodesProps:n}){const r=(0,se.Pm)(),s=(0,se.WF)(),[i]=(0,Z.iK)(K.g5),l=s&&i;return(0,d.jsx)(o.r,{loading:!r,children:(()=>{return l?(0,d.jsx)(Me.G,{path:t,database:e,parentRef:a,withPeerRoleFilter:!0,additionalNodesProps:n,columns:(r={database:e,getNodeRef:null===n||void 0===n?void 0:n.getNodeRef},[(0,vi._E)(),(0,vi.Nh)(r,{statusForIcon:"ConnectStatus"}),(0,vi.uk)(),(0,vi.OX)(),(0,vi.jl)(),(0,vi.fr)(),(0,vi.kv)(),(0,vi.SH)(),(0,vi.H)(),(0,vi.DH)(),(0,vi.ui)(),(0,vi.wN)(),(0,vi.pt)()].map((e=>({...e,sortable:(0,gi.sp)(e.name)})))),defaultColumnsIds:Uc,requiredColumnsIds:Bc,selectedColumnsKey:"networkNodesTableSelectedColumns",groupByParams:$c}):(0,d.jsx)(Fc,{tenantName:e});var r})()})}var Gc=a(24600),Wc=a(47058),Vc=a(69775),Jc=a(41775);const Yc=JSON.parse('{"lagsPopover.writeLags":"Write lags statistics (time format dd hh:mm:ss)","lagsPopover.readLags":"Read lags statistics (time format dd hh:mm:ss)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"Consumer:","controls.consumerSelector.emptyOption":"No consumer","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"No partitions match the current search","noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers"}'),Kc=JSON.parse('{"lagsPopover.writeLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0438 (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"\u0427\u0438\u0442\u0430\u0442\u0435\u043b\u044c:","controls.consumerSelector.emptyOption":"\u041d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439","noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439"}'),Zc=(0,Be.g4)("ydb-diagnostics-partitions",{ru:Kc,en:Yc}),Xc={PARTITION_ID:"partitionId",STORE_SIZE:"storeSize",WRITE_SPEED:"writeSpeed",READ_SPEED:"readSpeed",WRITE_LAGS:"writeLags",READ_LAGS:"readLags",UNCOMMITED_MESSAGES:"uncommitedMessages",UNREAD_MESSAGES:"unreadMessages",START_OFFSET:"startOffset",END_OFFSET:"endOffset",COMMITED_OFFSET:"commitedOffset",READ_SESSION_ID:"readSessionId",READER_NAME:"readerName",PARTITION_HOST:"partitionHost",CONNECTION_HOST:"connectionHost"},ed={[Xc.PARTITION_ID]:"Partition ID",[Xc.STORE_SIZE]:"Store size",[Xc.WRITE_SPEED]:"Write speed",[Xc.READ_SPEED]:"Read speed",[Xc.WRITE_LAGS]:"Write lags, duration",[Xc.READ_LAGS]:"Read lags, duration",[Xc.UNCOMMITED_MESSAGES]:"Uncommited messages",[Xc.UNREAD_MESSAGES]:"Unread messages",[Xc.START_OFFSET]:"Start offset",[Xc.END_OFFSET]:"End offset",[Xc.COMMITED_OFFSET]:"Commited offset",[Xc.READ_SESSION_ID]:"Read session ID",[Xc.READER_NAME]:"Reader name",[Xc.PARTITION_HOST]:"Partition host",[Xc.CONNECTION_HOST]:"Connection host"},td="partitionWriteLag",ad="partitionWriteIdleTime",nd={[td]:"write lag",[ad]:"write idle time"},rd="consumerWriteLag",sd="consumerReadLag",id="consumerReadIdleTime",od={[rd]:"write lag",[sd]:"read lag",[id]:"read idle time"},ld=[Xc.PARTITION_ID,Xc.STORE_SIZE,Xc.WRITE_SPEED,Xc.WRITE_LAGS,Xc.START_OFFSET,Xc.END_OFFSET,Xc.PARTITION_HOST],cd=Object.values(Xc),dd=({consumers:e,selectedConsumer:t,onSelectedConsumerChange:a,selectDisabled:r,partitions:s,onSearchChange:i,hiddenColumns:o,onHiddenColumnsChange:l,initialColumnsIds:c})=>{const[u,m]=n.useState(""),[p,h]=n.useState("");n.useEffect((()=>{if(!s)return;const e=new RegExp(da()(p),"i"),t=new RegExp(da()(u),"i"),a=s.filter((a=>{const{partitionId:n,readerName:r,readSessionId:s,partitionNodeId:i,connectionNodeId:o,partitionHost:l,connectionHost:c}=a,d=e.test(n),u=[r,s,i,o,l,c].filter(Boolean).map(String),m=0===u.length||u.some((e=>t.test(e)));return d&&m}));i(a)}),[p,u,s,i]);const v=n.useMemo((()=>{const t=e&&e.length?e.map((e=>({value:e,content:e}))):[];return[{value:"",content:Zc("controls.consumerSelector.emptyOption")},...t]}),[e]),g=n.useMemo((()=>{const e=[];for(const t of c){const a=t===Xc.PARTITION_ID,n={title:ed[t],selected:Boolean(!o.includes(t)),id:t,required:a,sticky:a?"start":void 0};a?e.unshift(n):e.push(n)}return e}),[c,o]),y=e=>(0,d.jsx)("div",{className:jd("select-option",{empty:""===e.value}),children:e.content});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(oe.l,{className:jd("consumer-select"),label:Zc("controls.consumerSelector"),options:v,value:[t||""],onUpdate:e=>{a(e[0]||void 0)},filterable:e&&e.length>5,disabled:r||!e||!e.length,renderOption:y,renderSelectedOption:y}),(0,d.jsx)(Jc.v,{onChange:e=>{h(e)},placeholder:Zc("controls.partitionSearch"),className:jd("search",{partition:!0}),value:p}),(0,d.jsx)(Jc.v,{onChange:e=>{m(e)},placeholder:Zc("controls.generalSearch"),className:jd("search",{general:!0}),value:u}),(0,d.jsx)(Vc.O,{popupWidth:242,items:g,showStatus:!0,onUpdate:e=>{const t=[...o];e.forEach((e=>{e.selected||o.includes(e.id)?e.selected&&o.includes(e.id)&&t.splice(o.indexOf(e.id)):t.push(e.id)})),l(t)},sortable:!1},"TableColumnSetup")]})},ud=(0,c.cn)("ydb-diagnostics-partitions-columns-header"),md=({title:e})=>(0,d.jsx)("div",{className:ud("multiline"),children:e}),pd=()=>(0,d.jsx)("div",{className:ud("read-session"),children:ed[Xc.READ_SESSION_ID]}),hd=()=>(0,d.jsx)(Da,{className:ud("lags"),text:ed[Xc.WRITE_LAGS],popoverContent:(0,d.jsx)($a,{text:Zc("lagsPopover.writeLags"),type:"write"})}),vd=()=>(0,d.jsx)(Da,{className:ud("lags"),text:ed[Xc.READ_LAGS],popoverContent:(0,d.jsx)($a,{text:Zc("lagsPopover.readLags"),type:"read"})}),gd=()=>(0,d.jsx)(Da,{className:ud("messages"),text:ed[Xc.UNREAD_MESSAGES],popoverContent:(0,d.jsx)("div",{className:ud("messages-popover-content"),children:Zc("headers.unread")})}),yd=()=>(0,d.jsx)(Da,{className:ud("messages"),text:ed[Xc.UNCOMMITED_MESSAGES],popoverContent:(0,d.jsx)("div",{className:ud("messages-popover-content"),children:Zc("headers.uncommited")})}),xd=(0,c.cn)("ydb-diagnostics-partitions-columns"),bd=[{name:Xc.PARTITION_ID,header:(0,d.jsx)(md,{title:ed[Xc.PARTITION_ID]}),sortAccessor:e=>(0,Qr.kf)(e.partitionId)&&Number(e.partitionId),align:_t.Ay.LEFT,render:({row:e})=>e.partitionId},{name:Xc.STORE_SIZE,header:(0,d.jsx)(md,{title:ed[Xc.STORE_SIZE]}),align:_t.Ay.RIGHT,render:({row:e})=>(0,pe.z3)(e.storeSize)},{name:Xc.WRITE_SPEED,header:ed[Xc.WRITE_SPEED],align:_t.Ay.LEFT,resizeMinWidth:140,sortAccessor:e=>e.writeSpeed.perMinute,render:({row:e})=>(0,d.jsx)(Ta,{data:e.writeSpeed})},{name:Xc.READ_SPEED,header:ed[Xc.READ_SPEED],align:_t.Ay.LEFT,resizeMinWidth:140,sortAccessor:e=>{var t;return null===(t=e.readSpeed)||void 0===t?void 0:t.perMinute},render:({row:e})=>(0,d.jsx)(Ta,{data:e.readSpeed})},{name:Xc.WRITE_LAGS,header:(0,d.jsx)(hd,{}),className:xd("lags-header"),sub:[{name:td,header:nd[td],align:_t.Ay.RIGHT,render:({row:e})=>(0,pe.lr)(e.partitionWriteLag)},{name:ad,header:nd[ad],align:_t.Ay.RIGHT,render:({row:e})=>(0,pe.lr)(e.partitionWriteIdleTime)}]},{name:Xc.READ_LAGS,header:(0,d.jsx)(vd,{}),className:xd("lags-header"),sub:[{name:rd,header:od[rd],align:_t.Ay.RIGHT,render:({row:e})=>(0,pe.lr)(e.consumerWriteLag)},{name:sd,header:od[sd],align:_t.Ay.RIGHT,render:({row:e})=>(0,pe.lr)(e.consumerReadLag)},{name:id,header:od[id],align:_t.Ay.RIGHT,render:({row:e})=>(0,pe.lr)(e.consumerReadIdleTime)}]},{name:Xc.UNCOMMITED_MESSAGES,header:(0,d.jsx)(yd,{}),align:_t.Ay.RIGHT,render:({row:e})=>e.uncommitedMessages},{name:Xc.UNREAD_MESSAGES,header:(0,d.jsx)(gd,{}),align:_t.Ay.RIGHT,render:({row:e})=>e.unreadMessages},{name:Xc.START_OFFSET,header:(0,d.jsx)(md,{title:ed[Xc.START_OFFSET]}),sortAccessor:e=>(0,Qr.kf)(e.startOffset)&&Number(e.startOffset),align:_t.Ay.RIGHT,render:({row:e})=>e.startOffset},{name:Xc.END_OFFSET,header:(0,d.jsx)(md,{title:ed[Xc.END_OFFSET]}),sortAccessor:e=>(0,Qr.kf)(e.endOffset)&&Number(e.endOffset),align:_t.Ay.RIGHT,render:({row:e})=>e.endOffset},{name:Xc.COMMITED_OFFSET,header:(0,d.jsx)(md,{title:ed[Xc.COMMITED_OFFSET]}),sortAccessor:e=>(0,Qr.kf)(e.commitedOffset)&&Number(e.commitedOffset),align:_t.Ay.RIGHT,render:({row:e})=>e.commitedOffset},{name:Xc.READ_SESSION_ID,header:(0,d.jsx)(pd,{}),align:_t.Ay.LEFT,width:150,render:({row:e})=>e.readSessionId?(0,d.jsx)(Un.c,{name:e.readSessionId,showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Xc.READER_NAME,header:(0,d.jsx)(md,{title:ed[Xc.READER_NAME]}),align:_t.Ay.LEFT,width:150,render:({row:e})=>e.readerName?(0,d.jsx)(Un.c,{name:e.readerName,showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Xc.PARTITION_HOST,header:(0,d.jsx)(md,{title:ed[Xc.PARTITION_HOST]}),align:_t.Ay.LEFT,width:200,render:({row:e})=>e.partitionNodeId&&e.partitionHost?(0,d.jsx)(Un.c,{name:e.partitionHost,path:(0,Bo.vI)(e.partitionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"},{name:Xc.CONNECTION_HOST,header:(0,d.jsx)(md,{title:ed[Xc.CONNECTION_HOST]}),align:_t.Ay.LEFT,width:200,render:({row:e})=>e.connectionNodeId&&e.connectionHost?(0,d.jsx)(Un.c,{name:e.connectionHost,path:(0,Bo.vI)(e.connectionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}],fd=bd.filter((e=>ld.includes(e.name))),jd=(0,c.cn)("ydb-diagnostics-partitions"),Sd=({path:e,database:t})=>{const a=(0,Z.YQ)(),[r,s]=n.useState([]),i=(0,Z.N4)((a=>ga(a,e,t))),[o]=(0,Z.Nt)(),{selectedConsumer:l}=(0,Z.N4)((e=>e.partitions)),{currentData:c,isFetching:u,error:m}=ma.useGetTopicQuery({path:e,database:t}),p=u&&void 0===c,{currentData:h,isFetching:v,error:g}=Gc.m.useGetNodesListQuery(void 0),x=v&&void 0===h,b=(0,Z.N4)(Gc.K),[f,j]=(0,Z.iK)(K.bs),[S,T]=(e=>{const[t,a]=n.useState([]),[r,s]=n.useState([]);return n.useEffect((()=>{e?(a(bd),s(cd)):(a(fd),s(ld))}),[e]),[t,r]})(l),N=p?y.hT:{path:e,database:t,consumerName:l},{currentData:E,isFetching:w,error:C}=Wc.aD.useGetPartitionsQuery(N,{pollingInterval:o}),P=w&&void 0===E,I=E,D=n.useMemo((()=>((e=[],t)=>null===e||void 0===e?void 0:e.map((e=>{var a,n;const r=e.partitionNodeId&&t?null===(a=t.get(e.partitionNodeId))||void 0===a?void 0:a.Host:void 0,s=e.connectionNodeId&&t?null===(n=t.get(e.connectionNodeId))||void 0===n?void 0:n.Host:void 0;return{...e,partitionHost:r,connectionHost:s}})))(I,b)),[I,b]);n.useEffect((()=>{const e=!p&&!i,t=l&&i&&!i.includes(l);(e||t)&&a((0,Wc.WD)(void 0))}),[a,p,l,i]);const A=n.useMemo((()=>S.filter((e=>!f.includes(e.name)))),[S,f]),_=e=>{j(e)},R=e=>{a((0,Wc.WD)(e))},k=p||x||P,O=g||m||C;return(0,d.jsxs)("div",{className:jd(),children:[(0,d.jsx)("div",{className:jd("controls"),children:(0,d.jsx)(dd,{consumers:i,selectedConsumer:l,onSelectedConsumerChange:R,selectDisabled:Boolean(O)||k,partitions:D,onSearchChange:s,hiddenColumns:f,onHiddenColumnsChange:_,initialColumnsIds:T})}),O?(0,d.jsx)(ce.o,{error:O}):null,(0,d.jsx)("div",{className:jd("table-wrapper"),children:(0,d.jsx)("div",{className:jd("table-content"),children:E?k?(0,d.jsx)(St.Q,{className:jd("loader")}):(0,d.jsx)(ze.l,{columnsWidthLSKey:"partitionsColumnsWidth",wrapperClassName:jd("table"),data:r,columns:A,settings:K.N3,emptyDataMessage:Zc("table.emptyDataMessage")}):null})})]})};var Td=a(44433),Nd=a(23812);const Ed=JSON.parse('{"date-format":"MM/DD/YYYY","date-time-format":"MM/DD/YYYY HH:mm"}'),wd=JSON.parse('{"date-format":"DD.MM.YYYY","date-time-format":"DD.MM.YYYY HH:mm"}'),Cd=(0,Be.g4)("ydb-date-range",{ru:wd,en:Ed});function Pd(e){var t,a,n,r;return"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)&&"relative"===(null===e||void 0===e||null===(a=e.end)||void 0===a?void 0:a.type)?"s":"relative"===(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.type)||"relative"===(null===e||void 0===e||null===(r=e.end)||void 0===r?void 0:r.type)?"m":"l"}const Id=(0,c.cn)("date-range"),Dd={start:{value:"now-1h",type:"relative"},end:{value:"now",type:"relative"}},Ad=({from:e,to:t,className:a,onChange:r})=>{const s=n.useCallback((e=>null===r||void 0===r?void 0:r(function(e){var t,a,n,r,s,i;return{from:"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)?e.start.value.toString():String(null===(a=(0,at.bQ)(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.value))||void 0===a?void 0:a.valueOf()),to:"relative"===(null===e||void 0===e||null===(r=e.end)||void 0===r?void 0:r.type)?e.end.value.toString():String(null===(s=(0,at.bQ)(null===e||void 0===e||null===(i=e.end)||void 0===i?void 0:i.value))||void 0===s?void 0:s.valueOf())}}(e))),[r]),i=n.useMemo((()=>{if(e||t)return function(e){var t,a;const n=(0,at.eP)(null!==(t=e.from)&&void 0!==t?t:""),r=(0,at.eP)(null!==(a=e.to)&&void 0!==a?a:"");return{start:e.from?{type:n?"relative":"absolute",value:n?e.from:(0,at.bQ)(Number(e.from))}:null,end:e.to?{type:r?"relative":"absolute",value:r?e.to:(0,at.bQ)(Number(e.to))}:null}}({from:e,to:t})}),[e,t]),o=Intl.DateTimeFormat().resolvedOptions().timeZone;return(0,d.jsx)("div",{className:Id(null,a),children:(0,d.jsx)(Nd.k,{withPresets:!0,className:Id("range-input",{[Pd(i)]:!0}),timeZone:o,value:i||Dd,allowNullableValues:!0,size:"m",format:Cd("date-time-format"),onUpdate:s,placeholder:`${Cd("date-time-format")} - ${Cd("date-time-format")}`,withApplyButton:!0})})},_d=JSON.parse('{"no-data":"No data","filter.text.placeholder":"Search by query text or userSID...","mode_top":"Top","mode_running":"Running"}'),Rd=(0,Be.g4)("ydb-diagnostics-top-queries",{en:_d}),kd={...no,disableSortReset:!0};function Od(e){const[t,a]=(0,Z.GY)({initialSortColumn:e,initialSortOrder:-1,multiple:!0}),r=n.useMemo((()=>(0,Z.JN)(t,jo)),[t]);return{tableSort:t,handleTableSort:a,backendSort:r}}const Md=({database:e,onRowClick:t,rowClassName:a})=>{var r;const[s]=(0,Z.Nt)(),i=(0,Z.N4)((e=>e.executeTopQueries)),{tableSort:o,handleTableSort:l,backendSort:c}=Od(yo),{currentData:u,isFetching:m,error:p}=Ei.Ke.useGetRunningQueriesQuery({database:e,filters:i,sortOrder:c},{pollingInterval:s}),h=m&&void 0===u,v=(null===u||void 0===u||null===(r=u.resultSets)||void 0===r?void 0:r[0].result)||[],g=n.useMemo((()=>[Io,Ro,Eo,ko].map((e=>({...e,sortable:So(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[p?(0,d.jsx)(ce.o,{error:(0,Tt.Cb)(p)}):null,(0,d.jsx)(Fe.L.Table,{loading:h,children:(0,d.jsx)(ze.l,{emptyDataMessage:Rd("no-data"),columnsWidthLSKey:"runningQueriesColumnsWidth",columns:g,data:v,settings:kd,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:o,onSort:l})})]})},Ld=({database:e,onRowClick:t,rowClassName:a})=>{var r,s;const[i]=(0,Z.Nt)(),o=(0,Z.N4)((e=>e.executeTopQueries)),{tableSort:l,handleTableSort:c,backendSort:u}=Od(oo),{currentData:m,isFetching:p,error:h}=Ei.Ke.useGetTopQueriesQuery({database:e,filters:o,sortOrder:u},{pollingInterval:i}),v=p&&void 0===m,g=(null===m||void 0===m||null===(r=m.resultSets)||void 0===r||null===(s=r[0])||void 0===s?void 0:s.result)||[],y=n.useMemo((()=>[Ao,No,Eo,wo,_o,Co,Po,Io].map((e=>({...e,sortable:So(e.name)})))),[]);return(0,d.jsxs)(n.Fragment,{children:[h?(0,d.jsx)(ce.o,{error:(0,Tt.Cb)(h)}):null,(0,d.jsx)(Fe.L.Table,{loading:v,children:(0,d.jsx)(ze.l,{emptyDataMessage:Rd("no-data"),columnsWidthLSKey:io,columns:y,data:g||[],settings:kd,onRowClick:e=>t(e.QueryText),rowClassName:()=>a,sortOrder:l,onSort:c})})]})},zd=(0,c.cn)("kv-top-queries"),Fd={top:"top",running:"running"},qd=[{value:Fd.top,get content(){return Rd("mode_top")}},{value:Fd.running,get content(){return Rd("mode_running")}}],Qd=yt.z.nativeEnum(Fd).catch(Fd.top),Ud=({tenantName:e})=>{const t=(0,Z.YQ)(),a=(0,Yn.zy)(),r=(0,Yn.W6)(),[i=Fd.top,o]=(0,s.useQueryParam)("queryMode",s.StringParam),l=Qd.parse(i),c=l===Fd.top,u=(0,Z.N4)((e=>e.executeTopQueries)),m=Zi(n.useCallback((e=>{t((0,wi.iZ)({input:e}));const n=(0,ge.mA)(a),s=(0,ea.YL)({...n,[te.Dt]:te.Dg.query,[ea.vh.queryTab]:te.tQ.newQuery});r.push(s)}),[t,r,a])),p=c?Ld:Md;return(0,d.jsxs)(Fe.L,{children:[(0,d.jsxs)(Fe.L.Controls,{children:[(0,d.jsx)(Td.a,{options:qd,value:l,onUpdate:o}),(0,d.jsx)(Ue.v,{value:u.text,onChange:e=>{t((0,Ei.TX)({text:e}))},placeholder:Rd("filter.text.placeholder"),className:zd("search")}),c?(0,d.jsx)(Ad,{from:u.from,to:u.to,onChange:e=>{t((0,Ei.TX)(e))}}):null]}),(0,d.jsx)(p,{database:e,onRowClick:m,rowClassName:zd("row")})]})};var Bd=a(46496),$d=a(87747);const Hd=JSON.parse('{"no-data":"No data","filters.mode.immediate":"Immediate","filters.mode.history":"Historical","description":"Historical data only tracks shards with CPU load over 70%"}'),Gd=JSON.parse('{"no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","filters.mode.immediate":"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u044b\u0435","filters.mode.history":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435","description":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e \u0448\u0430\u0440\u0434\u0430\u0445 \u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 CPU \u0432\u044b\u0448\u0435 70%"}'),Wd=(0,Be.g4)("ydb-diagnostics-top-shards",{ru:Gd,en:Hd}),Vd=({value:e,onChange:t})=>{const a=e.mode===$d.h.Immediate?void 0:e.from,r=e.mode===$d.h.Immediate?void 0:e.to;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(Td.a,{value:e.mode,onUpdate:e=>{if(!((e,t)=>Object.values(e).includes(t))($d.h,e)){const t=Object.values($d.h).join(", ");throw new Error(`Unexpected TopShards mode "${e}". Should be one of: ${t}`)}t({mode:e})},children:[(0,d.jsx)(Td.a.Option,{value:$d.h.Immediate,children:Wd("filters.mode.immediate")}),(0,d.jsx)(Td.a.Option,{value:$d.h.History,children:Wd("filters.mode.history")})]}),(0,d.jsx)(Ad,{from:a,to:r,onChange:e=>{t({mode:$d.h.History,...e})}})]})};const Jd=(0,c.cn)("top-shards"),Yd={...K.N3,dynamicRender:!1,externalSort:!0,disableSortReset:!0,defaultOrder:_t.Ay.DESCENDING};function Kd(e){return e?(0,pe.r6)(new Date(e).getTime()):"\u2013"}function Zd(e){return e.to="now",e.from="now-1h",e}const Xd=({tenantName:e,path:t,type:a})=>{var r,s;const i=(0,Z.YQ)(),o=(0,Yn.zy)(),[l]=(0,Z.Nt)(),c=(0,Z.N4)((e=>e.shardsWorkload)),[u,m]=n.useState((()=>{const e={...c};return e.mode||(e.mode=$d.h.Immediate),e.from||e.to||Zd(e),e})),{tableSort:p,handleTableSort:h,backendSort:v}=function(){const[e,t]=(0,Z.GY)({initialSortColumn:Vo,fixedOrderType:-1,multiple:!0}),a=n.useMemo((()=>(0,Z.JN)(e,nl)),[e]);return{tableSort:e,handleTableSort:t,backendSort:a}}(),{currentData:g,isFetching:y,error:x}=Bd.Xx.useSendShardQueryQuery({database:e,path:t,sortOrder:v,filters:u},{pollingInterval:l}),b=y&&void 0===g,f=(null===g||void 0===g||null===(r=g.resultSets)||void 0===r||null===(s=r[0])||void 0===s?void 0:s.result)||[],j=e=>{const t={...e};if(!c.from&&!c.to&&!e.from&&!e.to)switch(e.mode){case $d.h.Immediate:t.from=t.to=void 0;break;case $d.h.History:Zd(t)}i((0,Bd.rF)(e)),m((e=>({...e,...t})))},S=n.useMemo((()=>{const t=((e,t)=>[rl(e,t),sl,il,ol,ll,dl])(e,o),a=t.map((e=>{return{...e,sortable:(t=e.name,Boolean(nl(t)))};var t}));return u.mode===$d.h.History&&(a.splice(5,0,{name:Zo,render:({row:e})=>Kd(e.PeakTime),sortable:!1}),a.push({name:el,render:({row:e})=>Kd(e.IntervalEnd)})),a}),[u.mode,o,e]);return(0,d.jsxs)(Fe.L,{children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Vd,{value:u,onChange:j})}),u.mode===$d.h.History&&(0,d.jsx)("div",{className:Jd("hint"),children:Wd("description")}),x?(0,d.jsx)(ce.o,{error:(0,Tt.Cb)(x)}):null,(0,d.jsx)(Fe.L.Table,{loading:b,children:x&&!f?null:!f||k(a)?Wd("no-data"):(0,d.jsx)(ze.l,{columnsWidthLSKey:Go,columns:S,data:f,settings:Yd,onSort:h,sortOrder:p})})]})},eu=(0,c.cn)("kv-tenant-diagnostics");const tu=function(e){const t=n.useRef(null),a=(0,Z.YQ)(),{diagnosticsTab:i=te.iJ.overview}=(0,Z.N4)((e=>e.tenant)),[o]=(0,s.useQueryParams)({database:s.StringParam,schema:s.StringParam,backend:s.StringParam,clusterName:s.StringParam}),l=M(e.type)?e.path:e.tenantName,c=M(e.type)||e.path===e.tenantName,u=(0,se._Q)(),m=c?(({hasFeatureFlags:e})=>e?Hl:Hl.filter((e=>e.id!==te.iJ.configs)))({hasFeatureFlags:u}):(p=e.type)&&ec[p]||Vl;var p;let h=m.find((e=>e.id===i));return h||(h=m[0]),n.useEffect((()=>{h&&h.id!==i&&a((0,ie.WO)(h.id))}),[h,i,a]),(0,d.jsxs)("div",{className:eu(),children:[h?(0,d.jsx)(r.mg,{children:(0,d.jsx)("title",{children:h.title})}):null,(()=>{var e;return(0,d.jsx)("div",{className:eu("header-wrapper"),children:(0,d.jsxs)("div",{className:eu("tabs"),children:[(0,d.jsx)(ae.t,{size:"l",items:m,activeTab:null===(e=h)||void 0===e?void 0:e.id,wrapTo:({id:e},t)=>{const a=(0,ea.YL)({...o,[ea.vh.diagnosticsTab]:e});return(0,d.jsx)(ne.N_,{to:a,className:eu("tab"),children:t},e)},allowNotSelected:!0}),(0,d.jsx)(re.E,{})]})})})(),(0,d.jsx)("div",{className:eu("page-wrapper"),ref:t,children:(()=>{var a;const{type:n,path:r}=e;switch(null===(a=h)||void 0===a?void 0:a.id){case te.iJ.overview:return(0,d.jsx)(Dl,{type:n,tenantName:l,path:r,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps});case te.iJ.schema:return(0,d.jsx)(Xt,{path:r,tenantName:l,type:n,extended:!0});case te.iJ.topQueries:return(0,d.jsx)(Ud,{tenantName:l});case te.iJ.topShards:return(0,d.jsx)(Xd,{tenantName:l,path:r,type:n});case te.iJ.nodes:return(0,d.jsx)(Me.G,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case te.iJ.tablets:return(0,d.jsx)(jt.C,{path:r,database:l});case te.iJ.storage:return(0,d.jsx)(ft.z,{database:l,parentRef:t});case te.iJ.network:return(0,d.jsx)(Hc,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentRef:t});case te.iJ.describe:return(0,d.jsx)(jn,{path:r,database:l,type:n});case te.iJ.hotKeys:return(0,d.jsx)(uc,{path:r,database:l});case te.iJ.graph:return(0,d.jsx)(Oe,{path:r,database:l});case te.iJ.consumers:return(0,d.jsx)(ln,{path:r,database:l,type:n});case te.iJ.partitions:return(0,d.jsx)(Sd,{path:r,database:l});case te.iJ.configs:return(0,d.jsx)(la,{database:l});case te.iJ.operations:return(0,d.jsx)(bt,{database:l});default:return(0,d.jsx)("div",{children:"No data..."})}})()})]})},au=JSON.parse('{"controls.query-mode-selector_type":"Query type:","tabs.newQuery":"Editor","tabs.history":"History","tabs.saved":"Saved","history.empty":"History is empty","history.empty-search":"Search result is empty","saved.empty":"There are no saved queries","delete-dialog.header":"Delete query","delete-dialog.question":"Are you sure you want to delete query","delete-dialog.delete":"Delete","delete-dialog.cancel":"Cancel","preview.title":"Preview","preview.not-available":"Preview is not available","preview.close":"Close preview","preview.truncated":"truncated","method-description.script":"For YQL-scripts combining DDL and DML.\\nAPI call: schema.scripting","method-description.scan":"Read-only queries, potentially reading a lot of data.\\nAPI call: table.ExecuteScan","method-description.data":"DML queries for changing and fetching data in serialization mode.\\nAPI call: table.executeDataQuery","method-description.query":"Any query. An experimental API call supposed to replace all existing methods.\\nAPI Call: query.ExecuteScript","method-description.pg":"Queries in postgresql syntax.\\nAPI call: query.ExecuteScript","transaction-mode-description.serializable":"Provides the strictest isolation level for custom transactions","transaction-mode-description.onlinero":"Each read operation in the transaction is reading the data that is most recent at execution time","transaction-mode-description.stalero":"Read operations within a transaction may return results that are slightly out-of-date (lagging by fractions of a second)","transaction-mode-description.snapshot":"All the read operations within a transaction access the database snapshot. All the data reads are consistent","transaction-mode-description.implicit":"No transaction","tracing-level-description.basic":"Spans of main component operations","tracing-level-description.detailed":"Highest detail applicable for diagnosing problems in production","tracing-level-description.diagnostic":"Detailed debugging information for developers","tracing-level-description.off":"No tracing","tracing-level-description.toplevel":"Lowest detail, no more than two spans per request to the component","tracing-level-description.trace":"Very detailed debugging information","statistics-mode-description.none":"Don\'t collect statistics","statistics-mode-description.basic":"Collect statistics","statistics-mode-description.full":"Collect statistics and query plan","statistics-mode-description.profile":"Collect statistics for individual tasks","query-duration.description":"Duration of server-side query execution","action.send-query":"Send query","action.send-selected-query":"Send selected query","action.previous-query":"Previous query in history","action.next-query":"Next query in history","action.save-query":"Save query","action.stop":"Stop","filter.text.placeholder":"Search by query text...","gear.tooltip":"Query execution settings have been changed for ","banner.query-settings.message":"Query results are displayed for ","history.queryText":"Query text","history.endTime":"End time","history.duration":"Duration"}'),nu=(0,Be.g4)("ydb-query-editor",{en:au}),ru=(0,c.cn)("ydb-queries-history");const su=function({changeUserInput:e}){const t=(0,Z.YQ)(),a=(0,Z.N4)(wi.py),n=(0,Z.N4)(wi.jY),r=[...a].reverse(),s=Zi((a=>{e({input:a.queryText}),t((0,ie.sH)(te.tQ.newQuery))})),i=[{name:"queryText",header:nu("history.queryText"),render:({row:e})=>(0,d.jsx)("div",{className:ru("query"),children:(0,d.jsx)(eo,{value:e.queryText,maxQueryHeight:6})}),sortable:!1,width:600},{name:"EndTime",header:nu("history.endTime"),render:({row:e})=>e.endTime?(0,pe.r6)(e.endTime.toString()):"-",align:"right",width:200,sortable:!1},{name:"Duration",header:nu("history.duration"),render:({row:e})=>e.durationUs?(0,ht.Xo)((0,ht.Jc)(e.durationUs)):"-",align:"right",width:150,sortable:!1}];return(0,d.jsxs)(Fe.L,{className:ru(),children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Ue.v,{value:n,onChange:e=>{t((0,wi.Ni)(e))},placeholder:nu("filter.text.placeholder"),className:ru("search")})}),(0,d.jsx)(Fe.L.Table,{children:(0,d.jsx)(ze.l,{columnsWidthLSKey:"queriesHistoryTableColumnsWidth",columns:i,data:r,settings:no,emptyDataMessage:nu(n?"history.empty-search":"history.empty"),onRowClick:e=>s(e),rowClassName:()=>ru("table-row")})})]})};var iu=a(13847),ou=a(72093),lu=a(29078);function cu(e,t){const a=new Map(Object.entries(e)),n=new Map(Object.entries(t));return Array.from(a.keys()).filter((e=>a.has(e)&&void 0!==a.get(e)&&a.get(e)!==n.get(e)))}const du=JSON.parse('{"action.settings":"Query settings","form.query-mode":"Query type","form.timeout":"Timeout","form.transaction-mode":"Transaction mode","form.statistics-mode":"Statistics collection mode","form.tracing-level":"Tracing level","form.limit-rows":"Limit rows","button-done":"Save","tooltip_plan-to-svg-statistics":"Statistics option is set to \\"Full\\" due to the enabled \\"Execution plan\\" experiment.\\n To disable it, go to the \\"Experiments\\" section in the user settings.","button-cancel":"Cancel","form.timeout.seconds":"sec","form.validation.timeout":"Must be positive","form.validation.limitRows":"Must be between 1 and 100000","description.default":" (default)","docs":"Documentation"}'),uu=JSON.parse('{"action.settings":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.query-mode":"\u0422\u0438\u043f \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442","form.transaction-mode":"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438","form.statistics-mode":"\u0420\u0435\u0436\u0438\u043c \u0441\u0431\u043e\u0440\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438","form.tracing-level":"Tracing level","form.limit-rows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a","tooltip_plan-to-svg-statistics":"\u041e\u043f\u0446\u0438\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"Full\\" \u0438\u0437-\u0437\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \\"Execution plan\\".\\n \u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e, \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \\"Experiments\\" \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.","button-done":"\u0413\u043e\u0442\u043e\u0432\u043e","button-cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","form.timeout.seconds":"\u0441\u0435\u043a","form.validation.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c","form.validation.limitRows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0435\u0436\u0434\u0443 1 \u0438 100000","description.default":" (default)","docs":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f"}'),mu=(0,Be.g4)("ydb-query-settings-dialog",{en:du,ru:uu}),pu=[{value:Tt.Wg.implicit,content:Tt._d[Tt.Wg.implicit],text:nu("transaction-mode-description.implicit"),isDefault:!0},{value:Tt.Wg.serializable,content:Tt._d[Tt.Wg.serializable],text:nu("transaction-mode-description.serializable")},{value:Tt.Wg.onlinero,content:Tt._d[Tt.Wg.onlinero],text:nu("transaction-mode-description.onlinero")},{value:Tt.Wg.stalero,content:Tt._d[Tt.Wg.stalero],text:nu("transaction-mode-description.stalero")},{value:Tt.Wg.snapshot,content:Tt._d[Tt.Wg.snapshot],text:nu("transaction-mode-description.snapshot")}],hu=[{value:Tt.ei.query,content:Tt.om[Tt.ei.query],text:nu("method-description.query"),isDefault:!0},{value:Tt.ei.script,content:Tt.om[Tt.ei.script],text:nu("method-description.script")},{value:Tt.ei.scan,content:Tt.om[Tt.ei.scan],text:nu("method-description.scan")},{value:Tt.ei.data,content:Tt.om[Tt.ei.data],text:nu("method-description.data")},{value:Tt.ei.pg,content:Tt.om[Tt.ei.pg],text:nu("method-description.pg")}],vu=[{value:Tt.pE.none,content:Tt.Pn[Tt.pE.none],text:nu("statistics-mode-description.none"),isDefault:!0},{value:Tt.pE.basic,content:Tt.Pn[Tt.pE.basic],text:nu("statistics-mode-description.basic")},{value:Tt.pE.full,content:Tt.Pn[Tt.pE.full],text:nu("statistics-mode-description.full")},{value:Tt.pE.profile,content:Tt.Pn[Tt.pE.profile],text:nu("statistics-mode-description.profile")}],gu=[{value:Tt.PB.off,content:Tt.PX[Tt.PB.off],text:nu("tracing-level-description.off"),isDefault:!0},{value:Tt.PB.toplevel,content:Tt.PX[Tt.PB.toplevel],text:nu("tracing-level-description.toplevel")},{value:Tt.PB.basic,content:Tt.PX[Tt.PB.basic],text:nu("tracing-level-description.basic")},{value:Tt.PB.detailed,content:Tt.PX[Tt.PB.detailed],text:nu("tracing-level-description.detailed")},{value:Tt.PB.diagnostic,content:Tt.PX[Tt.PB.diagnostic],text:nu("tracing-level-description.diagnostic")},{value:Tt.PB.trace,content:Tt.PX[Tt.PB.trace],text:nu("tracing-level-description.trace")}],yu={transactionMode:{title:mu("form.transaction-mode"),options:pu},queryMode:{title:mu("form.query-mode"),options:hu},statisticsMode:{title:mu("form.statistics-mode"),options:vu},tracingLevel:{title:mu("form.tracing-level"),options:gu},timeout:{title:mu("form.timeout")},limitRows:{title:mu("form.limit-rows")}};function xu({currentSettings:e,defaultSettings:t}){const a=cu(e,t),n={};return a.forEach((t=>{const a=yu[t],r=e[t];if("options"in a){var s;const e=null===(s=a.options.find((e=>e.value===r)))||void 0===s?void 0:s.content;e&&(n[a.title]=e)}else r&&(n[a.title]=String(r))})),n}var bu=a(80967);const fu=()=>{const[e,t]=(0,bu.i)(K.fr);let a;try{a=Tt.id.parse(e)}catch{a=void 0}return[a,t]};var ju=a(95312);const Su=()=>{const[e,t]=(0,bu.i)(K.YQ),[a]=fu(),[n]=(0,ju.X)(),r=a?cu(a,Tt.jU):[],s=n?cu(n,Tt.jU):[],i=r.length>0,o=a?xu({currentSettings:a,defaultSettings:Tt.jU}):{},l=n?xu({currentSettings:n,defaultSettings:Tt.jU}):{},c=e&&Date.now()-e<1e3*K.Du;return{isBannerShown:i&&!c,isIndicatorShown:i&&c,closeBanner:()=>t(Date.now()),resetBanner:()=>t(void 0),changedCurrentSettings:s,changedCurrentSettingsDescriptions:l,changedLastExucutionSettings:r,changedLastExecutionSettingsDescriptions:o}};var Tu=a(53472);let Nu=function(e){return e.triggerCollapse="triggerCollapse",e.triggerExpand="triggerExpand",e.clear="clear",e}({});const Eu=e=>{localStorage.setItem(e,"true")},wu=e=>{localStorage.removeItem(e)};function Cu(e){return function(t,a){switch(a){case Nu.triggerCollapse:return Eu(e),{...t,triggerCollapse:!0,triggerExpand:!1,collapsed:!0};case Nu.triggerExpand:return wu(e),{...t,triggerCollapse:!1,triggerExpand:!0,collapsed:!1};case Nu.clear:return wu(e),{triggerCollapse:!1,triggerExpand:!1,collapsed:!1};default:return t}}}const Pu=(0,c.cn)("kv-pane-visibility-button");function Iu({onCollapse:e,onExpand:t,isCollapsed:a,initialDirection:r="top",className:s}){return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(ot.m,{title:"Collapse",children:(0,d.jsx)(un.$,{view:"flat-secondary",onClick:e,className:Pu({hidden:a,type:"collapse"},s),children:(0,d.jsx)(lt.I,{data:Tu.A,className:Pu({[r]:!0})})})}),(0,d.jsx)(ot.m,{title:"Expand",children:(0,d.jsx)(un.$,{view:"flat-secondary",onClick:t,className:Pu({hidden:!a,type:"expand"},s),children:(0,d.jsx)(lt.I,{data:Tu.A,className:Pu({[r]:!0},"rotate")})})})]})}var Du=a(31819),Au=a(72976);const _u=function({disabled:e}){const t=(0,Z.YQ)();return(0,d.jsx)(un.$,{onClick:()=>{t((0,Au.Jf)())},view:"flat-secondary",disabled:e,title:"Fullscreen",children:(0,d.jsx)(lt.I,{data:Du.A})})};var Ru,ku=a(98392);function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Ou.apply(null,arguments)}const Mu=function(e){return n.createElement("svg",Ou({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),Ru||(Ru=n.createElement("path",{fill:"currentColor",d:"M13.383 6.5a.309.309 0 00.305-.305V5.18a.328.328 0 00-.305-.305H11.25V2.742a.328.328 0 00-.305-.304H9.93a.309.309 0 00-.305.304v3.149c0 .355.254.609.61.609h3.148zm-7.008-.61V2.743a.328.328 0 00-.305-.304H5.055a.309.309 0 00-.305.304v2.133H2.617a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305h3.149c.33 0 .609-.254.609-.61zm0 7.618v-3.149c0-.33-.28-.609-.61-.609H2.618a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305H4.75v2.133c0 .178.127.305.305.305H6.07a.309.309 0 00.305-.305zm4.875 0v-2.133h2.133a.309.309 0 00.305-.305v-1.015a.328.328 0 00-.305-.305h-3.149c-.355 0-.609.28-.609.61v3.148c0 .178.127.305.305.305h1.015a.309.309 0 00.305-.305z"})))};var Lu;const zu=(0,c.cn)("ydb-fullscreen"),Fu=null!==(Lu=document.getElementById("fullscreen-root"))&&void 0!==Lu?Lu:void 0;const qu=function({children:e,className:t}){const a=(0,Z.N4)((e=>e.fullscreen)),r=(0,Z.YQ)(),s=n.useCallback((()=>{r((0,Au.sM)())}),[r]);n.useEffect((()=>{const e=e=>{"Escape"===e.key&&s()};return document.addEventListener("keydown",e,!1),()=>{document.removeEventListener("keydown",e,!1)}}),[s]);const[i,o]=n.useState(null);n.useEffect((()=>{const e=document.createElement("div");return null===Fu||void 0===Fu||Fu.appendChild(e),e.style.display="contents",o(e),()=>{o(null),e.remove()}}),[]);const l=n.useRef(null);return n.useLayoutEffect((()=>{var e;i&&(a?null===Fu||void 0===Fu||Fu.appendChild(i):null===(e=l.current)||void 0===e||e.appendChild(i))}),[i,a]),i?(0,d.jsx)("div",{ref:l,style:{display:"contents"},children:(0,d.jsx)(ku.Z,{container:i,children:(0,d.jsxs)("div",{className:zu({fullscreen:a},t),children:[(0,d.jsx)(un.$,{onClick:s,view:"raised",className:zu("close-button"),children:(0,d.jsx)(lt.I,{data:Mu})}),(0,d.jsx)("div",{className:zu("content"),children:e})]})})}):null},Qu=n.memo((function(e){const{className:t,value:a}=e,n=(0,Z.YQ)();return(0,d.jsx)("span",{className:Wu("cell",t),onClick:e=>n((0,me.DK)(e.target,a,"cell")),children:a})})),Uu=JSON.parse('{"empty":"Table is empty"}'),Bu=JSON.parse('{"empty":"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0443\u0441\u0442\u0430\u044f"}'),$u=(0,Be.g4)("ydb-query-result-table",{ru:Bu,en:Uu}),Hu=({data:e,name:t})=>{let a=t.length;if(e)for(const n of e){const e=n[t]?String(n[t]).length:0;if(a=Math.max(a,e),10*a+20>=600)return 600}return 10*a+20},Gu={...K.N3,stripedRows:!0,sortable:!1,displayIndices:!0},Wu=(0,c.cn)("ydb-query-result-table"),Vu=(e,t)=>t,Ju=(e,t)=>t+1,Yu=e=>{const{columns:t,data:a,...r}=e,s=n.useMemo((()=>(0,Tt.vi)(a)),[a]),i=n.useMemo((()=>t?((e,t)=>{if(!e.length)return[];const a=null===t||void 0===t?void 0:t.slice(0,100);return e.map((({name:e,type:t})=>{const n=(0,Tt.nh)(t);return{name:e,width:Hu({data:a,name:e}),align:"number"===n?_t.Ay.RIGHT:_t.Ay.LEFT,render:({row:t})=>(0,d.jsx)(Qu,{value:String(t[e])})}}))})(t,s):(e=>{if(!e.length)return[];const t=null===e||void 0===e?void 0:e.slice(0,100);return Object.keys(e[0]).map((a=>({name:a,width:Hu({data:t,name:a}),align:(0,Qr.kf)(e[0][a])?_t.Ay.RIGHT:_t.Ay.LEFT,render:({row:e})=>(0,d.jsx)(Qu,{value:String(e[a])})})))})(s)),[s,t]);return Array.isArray(a)?i.length?(0,d.jsx)(ze.l,{data:s,columns:i,settings:Gu,rowKey:Vu,visibleRowIndex:Ju,...r}):(0,d.jsx)("div",{className:Wu("message"),children:$u("empty")}):null},Ku=H.F.injectEndpoints({endpoints:e=>({sendQuery:e.query({queryFn:async({query:e,database:t,action:a,limitRows:n},{signal:r})=>{try{const s=await window.api.viewer.sendQuery({query:e,database:t,action:a,limit_rows:n},{signal:r,withRetries:!0});return(0,Tt.We)(s)?{error:s}:{data:(0,Tt.fW)(s)}}catch(s){return{error:s||new Error("Unauthorized")}}},providesTags:["All","PreviewData"]})}),overrideExisting:"throw"}),Zu=(0,c.cn)("kv-preview"),Xu=({database:e,path:t,type:a})=>{var n,r,s;const i=(0,Z.YQ)(),o=D(a),l=`select * from \`${t}\` limit 101`,{currentData:c,isFetching:u,error:m}=Ku.useSendQueryQuery({database:e,query:l,action:U(a)?"execute-query":"execute-scan",limitRows:100},{skip:!o,refetchOnMountOrArgChange:!0}),p=u&&void 0===c,h=null!==(n=null===c||void 0===c||null===(r=c.resultSets)||void 0===r?void 0:r[0])&&void 0!==n?n:{},v=()=>{i((0,lu.o)(!1))};if(p)return(0,d.jsx)("div",{className:Zu("loader-container"),children:(0,d.jsx)(Jr.a,{size:"m"})});let g;o?m&&(g=(0,d.jsx)("div",{className:Zu("message-container","error"),children:(0,Tt.Cb)(m)})):g=(0,d.jsx)("div",{className:Zu("message-container"),children:nu("preview.not-available")});const y=null!==(s=g)&&void 0!==s?s:(0,d.jsx)("div",{className:Zu("result"),children:(0,d.jsx)(Yu,{data:h.result,columns:h.columns})});return(0,d.jsxs)("div",{className:Zu(),children:[(()=>{var e,a;return(0,d.jsxs)("div",{className:Zu("header"),children:[(0,d.jsxs)("div",{className:Zu("title"),children:[nu("preview.title"),(0,d.jsxs)(st.E,{color:"secondary",variant:"body-2",children:[h.truncated?`${nu("preview.truncated")} `:"","(",null!==(e=null===(a=h.result)||void 0===a?void 0:a.length)&&void 0!==e?e:0,")"]}),(0,d.jsx)("div",{className:Zu("table-name"),children:t})]}),(0,d.jsxs)("div",{className:Zu("controls-left"),children:[(0,d.jsx)(_u,{disabled:Boolean(m)}),(0,d.jsx)(un.$,{view:"flat-secondary",onClick:v,title:nu("preview.close"),children:(0,d.jsx)(lt.I,{data:tc.A,size:18})})]})]})})(),(0,d.jsx)(qu,{children:y})]})};var em=a(27738),tm=a(594),am=a(1155);const nm=(0,c.cn)("ydb-query-settings-description"),rm=({querySettings:e,prefix:t})=>(0,d.jsxs)("div",{className:nm("message"),children:[t,Object.entries(e).map((([e,t],a,n)=>(0,d.jsxs)("span",{className:nm("description-item"),children:[`${e}: ${t}`,a<n.length-1?", ":null]},a)))]});var sm=a(13066);async function im(e){var t;let a=1;const n=async()=>{if(!window.ydbEditor){if(!a)return!1;await new Promise((e=>{window.setTimeout(e,100)})),a-=1,n()}return!0};await n()?null===(t=window.ydbEditor)||void 0===t||t.trigger(void 0,"insertSnippetToEditor",e):console.error("Monaco editor not found")}const om=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}/my_row_table\``:"${1:my_row_table}"} (\n category_id Uint64 NOT NULL,\n id Uint64,\n expire_at Datetime,\n updated_on Datetime,\n name Text,\n \`binary-payload\` Bytes,\n attributes JsonDocument,\n -- uncomment to add a secondary index\n -- INDEX idx_row_table_id GLOBAL SYNC ON ( id ) COVER ( name, attributes ), -- Secondary indexes docs https://ydb.tech/en/docs/yql/reference/syntax/create_table#secondary_index\n PRIMARY KEY (category_id, id)\n) \nWITH (\n AUTO_PARTITIONING_BY_SIZE = ENABLED,\n AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,\n AUTO_PARTITIONING_BY_LOAD = ENABLED,\n AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 4,\n AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 1024\n -- uncomment to create a table with predefined partitions\n -- , UNIFORM_PARTITIONS = 4 -- The number of partitions for uniform initial table partitioning.\n -- The primary key's first column must have type Uint64 or Uint32.\n -- A created table is immediately divided into the specified number of partitions\n -- uncomment to launch read only replicas in every AZ\n -- , READ_REPLICAS_SETTINGS = 'PER_AZ:1' -- Enable read replicas for stale read, launch one replica in every availability zone\n -- uncomment to enable ttl\n -- , TTL = Interval("PT1H") ON expire_at -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl\n -- uncomment to create a table with a bloom filter\n -- , KEY_BLOOM_FILTER = ENABLED -- With a Bloom filter, you can more efficiently determine\n -- if some keys are missing in a table when making multiple single queries by the primary key.\n)`,lm=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables\nCREATE TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}/my_column_table\``:"${1:my_column_table}"} (\n id Int64 NOT NULL,\n author Text,\n title Text,\n body Text,\n PRIMARY KEY (id)\n)\nPARTITION BY HASH(id)\nWITH (STORE = COLUMN)`,cm=()=>'-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-async-replication\nCREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";\n\nCREATE ASYNC REPLICATION my_replication\nFOR ${1:<original_table>} AS ${2:replica_table} --[, `/remote_database/another_table_name` AS `another_local_table_name` ...]\nWITH (\n CONNECTION_STRING="${3:grpcs://mydb.ydb.tech:2135/?database=/remote_database}",\n TOKEN_SECRET_NAME = "secret_name"\n -- ENDPOINT="mydb.ydb.tech:2135",\n -- DATABASE=`/remote_database`,\n -- USER="user",\n -- PASSWORD_SECRET_NAME="your_password"\n);',dm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/\n\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\n -- RENAME TO new_table_name\n -- DROP COLUMN some_existing_column\n\${2:ADD COLUMN numeric_column Int32};`,um=e=>{var t;const a=null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${2:<my_table>}";return`SELECT ${(null===e||void 0===e||null===(t=e.schemaData)||void 0===t?void 0:t.map((e=>"`"+e.name+"`")).join(", "))||"${1:*}"}\nFROM ${a}\n${null!==e&&void 0!==e&&e.relativePath?"":"WHERE ${3:Key1 = 1}\nORDER BY ${4:Key1}\n"}LIMIT \${5:10};`},mm=e=>{var t;return`UPSERT INTO ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\n( ${(null===e||void 0===e||null===(t=e.schemaData)||void 0===t?void 0:t.map((e=>`\`${e.name}\``)).join(", "))||"${2:id, name}"} )\nVALUES ( ${null!==e&&void 0!==e&&e.schemaData?"${3: }":'${3:1, "foo"}'} );`},pm=e=>`DROP EXTERNAL TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:my_table}"};`,hm=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`CREATE EXTERNAL TABLE ${t?`\`${t}/my_external_table\``:"${1:<my_external_table>}"} (\n column1 Int,\n column2 Int\n) WITH (\n DATA_SOURCE="${null!==e&&void 0!==e&&e.relativePath?`${e.relativePath}`:"${2:<path_to_data_source>}"}",\n LOCATION="",\n FORMAT="json_as_string",\n \`file_pattern\`=""\n);`},vm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-topic\nCREATE TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\`/my_topic`:"${1:my_topic}"} (\n CONSUMER consumer1,\n CONSUMER consumer2 WITH (read_from = Datetime('1970-01-01T00:00:00Z')) -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format). \n -- Default value: now\n) WITH (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to \n -- the quota value (this allows write bursts of up to one second).\n);`,gm=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic\nALTER TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_topic>}"}\n ADD CONSUMER new_consumer WITH (read_from = Datetime('1970-01-01T00:00:00Z')), -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).\n -- Default value: now\n ALTER CONSUMER consumer1 SET (read_from = Datetime('1970-01-01T00:00:00Z')),\n DROP CONSUMER consumer2,\n SET (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to\n -- the quota value (this allows write bursts of up to one second).\n );`,ym=e=>`DROP TOPIC ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_topic>}"};`,xm=e=>`CREATE VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}/my_view\``:"${1:my_view}"} WITH (security_invoker = TRUE) AS SELECT 1;`,bm=e=>`DROP VIEW ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_view>}"};`,fm=e=>`DROP ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_replication>}"};`,jm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter-async-replication\nALTER ASYNC REPLICATION ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_replication>}"} SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`,Sm=e=>`ALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"} ADD INDEX \${2:index_name} GLOBAL ON (\${3:<column_name>});`,Tm=e=>{const t=null===e||void 0===e?void 0:e.relativePath.split("/").pop(),a=null===e||void 0===e?void 0:e.relativePath.split("/").slice(0,-1).join("/");return`ALTER TABLE ${a?`\`${a}\``:"${1:<my_table>}"} DROP INDEX ${t||"${2:<index_name>}"};`},Nm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/changefeed\nALTER TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"} ADD CHANGEFEED \${2:changefeed_name} WITH (\n MODE = \${3:'UPDATES'}, -- KEYS_ONLY, UPDATES, NEW_IMAGE, OLD_IMAGE, or NEW_AND_OLD_IMAGES\n FORMAT = \${4:'JSON'}, -- JSON or DEBEZIUM_JSON\n VIRTUAL_TIMESTAMPS = \${5:TRUE}, -- true or false\n RETENTION_PERIOD = \${6:Interval('PT12H')}, -- Interval value, e.g., Interval('PT24H')\n -- TOPIC_MIN_ACTIVE_PARTITIONS: The number of topic partitions. By default, the number of topic partitions is equal to the number of table partitions\n INITIAL_SCAN = \${8:TRUE} -- true or false\n)\n\n-- MODE options:\n-- KEYS_ONLY: Only the primary key components and change flag are written.\n-- UPDATES: Updated column values that result from updates are written.\n-- NEW_IMAGE: Any column values resulting from updates are written.\n-- OLD_IMAGE: Any column values before updates are written.\n-- NEW_AND_OLD_IMAGES: A combination of NEW_IMAGE and OLD_IMAGE modes.`,Em=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-group\nCREATE GROUP ${1:group_name}\n-- group_name: The name of the group. It may contain lowercase Latin letters and digits.",wm=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-user\nCREATE USER ${1:user_name} PASSWORD ${2:'password'}\n-- user_name: The name of the user. It may contain lowercase Latin letters and digits.\n-- option: The password of the user:\n -- PASSWORD 'password' creates a user with the password password. The ENCRYPTED option is always enabled.\n -- PASSWORD NULL creates a user with an empty password.",Cm=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/delete\nDELETE FROM ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\nWHERE \${2:Key1 = 1};`,Pm=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-group\nDROP GROUP ${1:<group_name>}\n\n-- IF EXISTS: Suppress an error if the group doesn't exist.\n-- group_name: The name of the group to be deleted.",Im=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-user\nDROP USER ${1:<user_name>}\n\n-- IF EXISTS: Suppress an error if the user doesn't exist.\n-- user_name: The name of the user to be deleted.",Dm=e=>`GRANT \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${2:<path_to_scheme_object>}"}\nTO \${3:<role_name>}\n\n-- permission_name: The name of the access right to schema objects that needs to be assigned.\n-- path_to_scheme_object: The path to the schema object for which rights are being granted.\n-- role_name: The name of the user or group to whom rights on the schema object are being granted.\n-- WITH GRANT OPTION: Using this construct gives the user or group of users the right to manage access rights - \n-- to assign or revoke certain rights. This construct has functionality similar to granting \n-- the "ydb.access.grant" or GRANT right. A subject with the ydb.access.grant right cannot \n-- grant rights broader than they possess themselves.`,Am=e=>`REVOKE \${1:<permission_name>}\nON ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${2:<path_to_scheme_object>}"}\nFROM \${3:<role_name>}\n\n-- permission_name: The name of the access right to schema objects that needs to be revoked.\n-- path_to_scheme_object: The path to the schema object from which rights are being revoked.\n-- role_name: The name of the user or group from whom rights on the schema object are being revoked.\n-- GRANT OPTION FOR: Using this construct revokes the user's or group's right to manage access rights.\n-- All previously granted rights by this user remain in effect.\n-- This construct has functionality similar to revoking the "ydb.access.grant" or GRANT right.`,_m=e=>`-- docs: https://ydb.tech/docs/en/yql/reference/syntax/update\nUPDATE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"}\nSET \${2:Column1 = 'foo', Column2 = 'bar'}\nWHERE \${3:Key1 = 1};`,Rm=e=>`DROP TABLE ${null!==e&&void 0!==e&&e.relativePath?`\`${null===e||void 0===e?void 0:e.relativePath}\``:"${1:<my_table>}"};`,km=JSON.parse('{"button.new-sql":"New query","action.create-row-table":"Create row table","action.create-column-table":"Create column table","action.create-external-table":"Create external table","action.upsert-to-table":"Upsert into table","action.update-table":"Update table","action.alter-table":"Alter table","action.select-rows":"Select from a table","action.delete-rows":"Delete rows","action.drop-table":"Drop table","action.add-index":"Add index","action.drop-index":"Drop index","action.drop-external-table":"Drop external table","menu.tables":"Tables","menu.topics":"Topics","menu.capture":"Change data capture","menu.replication":"Async replication","menu.users":"Users","action.create-topic":"Create Topic","action.drop-topic":"Drop Topic","action.alter-topic":"Alter Topic","action.create-cdc-stream":"Create changefeed","action.create-async-replication":"Create async replication","action.create-user":"Create user","action.create-group":"Create group","action.drop-user":"Drop user","action.drop-group":"Drop group","action.grant-privilege":"Grant privilege","action.revoke-privilege":"Revoke privilege","action.alter-async-replication":"Alter async replication","action.drop-async-replication":"Drop async replication"}'),Om=(0,Be.g4)("ydb-new-sql",{en:km});function Mm(){const e=(e=>{const t=t=>()=>{e(t())};return{createRowTable:t(om),createColumnTable:t(lm),createAsyncReplication:t(cm),alterAsyncReplication:t(jm),dropAsyncReplication:t(fm),alterTable:t(dm),selectQuery:t(um),upsertQuery:t(mm),createExternalTable:t(hm),dropExternalTable:t(pm),createTopic:t(vm),alterTopic:t(gm),dropTopic:t(ym),createView:t(xm),dropTable:t(Rm),deleteRows:t(Cm),updateTable:t(_m),createUser:t(wm),createGroup:t(Em),createCdcStream:t(Nm),grantPrivilege:t(Dm),revokePrivilege:t(Am),dropUser:t(Im),dropGroup:t(Pm),addTableIndex:t(Sm),dropTableIndex:t(Tm)}})(Zi(n.useCallback((e=>{im(e)}),[]))),t=[{text:Om("menu.tables"),items:[{text:Om("action.create-row-table"),action:e.createRowTable},{text:Om("action.create-column-table"),action:e.createColumnTable},{text:Om("action.create-external-table"),action:e.createExternalTable},{text:Om("action.upsert-to-table"),action:e.upsertQuery},{text:Om("action.update-table"),action:e.updateTable},{text:Om("action.alter-table"),action:e.alterTable},{text:Om("action.select-rows"),action:e.selectQuery},{text:Om("action.delete-rows"),action:e.deleteRows},{text:Om("action.drop-table"),action:e.dropTable},{text:Om("action.drop-external-table"),action:e.dropExternalTable},{text:Om("action.add-index"),action:e.addTableIndex},{text:Om("action.drop-index"),action:e.dropTableIndex}]},{text:Om("menu.topics"),items:[{text:Om("action.create-topic"),action:e.createTopic},{text:Om("action.alter-topic"),action:e.alterTopic},{text:Om("action.drop-topic"),action:e.dropTopic}]},{text:Om("menu.replication"),items:[{text:Om("action.create-async-replication"),action:e.createAsyncReplication},{text:Om("action.alter-async-replication"),action:e.alterAsyncReplication},{text:Om("action.drop-async-replication"),action:e.dropAsyncReplication}]},{text:Om("menu.capture"),items:[{text:Om("action.create-cdc-stream"),action:e.createCdcStream}]},{text:Om("menu.users"),items:[{text:Om("action.create-user"),action:e.createUser},{text:Om("action.create-group"),action:e.createGroup},{text:Om("action.drop-user"),action:e.dropUser},{text:Om("action.drop-group"),action:e.dropGroup},{text:Om("action.grant-privilege"),action:e.grantPrivilege},{text:Om("action.revoke-privilege"),action:e.revokePrivilege}]}];return(0,d.jsx)(Oi.r,{items:t,renderSwitcher:e=>(0,d.jsxs)(un.$,{...e,children:[Om("button.new-sql"),(0,d.jsx)(un.$.Icon,{children:(0,d.jsx)(sm.A,{})})]}),popupProps:{placement:"top"}})}const Lm=(0,c.cn)("ydb-query-editor-controls"),zm=({onClick:e,runIsLoading:t})=>{const{changedCurrentSettings:a,changedCurrentSettingsDescriptions:n}=Su(),r=a.length>0?{view:"outlined-info",selected:!0}:null;return(0,d.jsx)(am.m,{disabled:0===a.length,content:(0,d.jsx)(rm,{prefix:nu("gear.tooltip"),querySettings:n}),openDelay:0,placement:["top-start"],children:(0,d.jsxs)(un.$,{onClick:e,loading:t,className:Lm("gear-button"),...r,children:[(0,d.jsx)(lt.I,{data:em.A,size:16}),r?(0,d.jsxs)("div",{className:Lm("changed-settings"),children:["(",a.length,")"]}):null]})})},Fm=({disabled:e,isLoading:t,highlightedAction:a,handleSendExecuteClick:n,onSettingsButtonClick:r,handleGetExplainQueryClick:s})=>{const i=(0,Z.N4)(wi.Wp),o="execute"===a?"action":void 0,l="explain"===a?"action":void 0,c=e||!i;return(0,d.jsxs)("div",{className:Lm(),children:[(0,d.jsxs)("div",{className:Lm("left"),children:[(0,d.jsxs)(un.$,{onClick:()=>{n(i)},disabled:c,loading:t,view:o,className:Lm("run-button"),children:[(0,d.jsx)(lt.I,{data:tm.A,size:14}),"Run"]}),(0,d.jsx)(un.$,{onClick:()=>{s(i)},disabled:c,loading:t,view:l,children:"Explain"}),(0,d.jsx)(zm,{onClick:r,runIsLoading:t})]}),(0,d.jsxs)("div",{className:Lm("right"),children:[(0,d.jsx)(Mm,{}),(0,d.jsx)($i,{buttonProps:{disabled:e}})]})]})},qm=(0,c.cn)("kv-divider");const Qm=function(){return(0,d.jsx)("div",{className:qm()})},Um=(0,c.cn)("ydb-query-elapsed-time");function Bm({className:e}){const[,t]=n.useState({}),[a]=n.useState(Date.now()),r=Date.now()-a;n.useEffect((()=>{const e=setInterval((()=>{t({})}),K.KF);return()=>{clearInterval(e)}}),[]);const s=r>K.Jg*K.KF?(0,at.p0)(r).format("hh:mm:ss"):(0,at.p0)(r).format("mm:ss");return(0,d.jsx)(wt.J,{className:Um(null,e),children:s})}var $m=a(64280),Hm=a(80953);function Gm(e){var t;const a=(0,Tt.KH)(e);return"object"===typeof a&&"Query was cancelled"===(null===(t=a.error)||void 0===t?void 0:t.message)}const Wm=(0,c.cn)("kv-query-execution-status"),Vm=()=>{const{isIndicatorShown:e,changedLastExecutionSettingsDescriptions:t}=Su();return e?(0,d.jsx)(am.m,{openDelay:0,content:(0,d.jsx)(rm,{prefix:nu("banner.query-settings.message"),querySettings:t}),children:(0,d.jsx)(lt.I,{data:Zs.A,className:Wm("query-settings-icon")})}):null},Jm=({className:e,error:t,loading:a})=>{let n,r;if(a)n=(0,d.jsx)(Hm.t,{size:"xs"}),r="Running";else if((0,X.F0)(t)&&"ECONNABORTED"===t.code)n=(0,d.jsx)(lt.I,{data:$m.A}),r="Connection aborted";else if(Gm(t))n=(0,d.jsx)(lt.I,{data:rt.A}),r="Stopped";else{const e=Boolean(t);n=(0,d.jsx)(lt.I,{data:e?Xs.A:Ks.A,className:Wm("result-status-icon",{error:e})}),r=e?"Failed":"Completed"}return(0,d.jsxs)("div",{className:Wm(null,e),children:[n,r,Gm(t)||a?null:(0,d.jsx)(Vm,{})]})};var Ym=a(66528);const Km=H.F.injectEndpoints({endpoints:e=>({cancelQuery:e.mutation({queryFn:async({queryId:e,database:t},{signal:a})=>{try{const n=await window.api.viewer.sendQuery({database:t,action:"cancel-query",query_id:e},{signal:a});if((0,Tt.We)(n))return{error:n};return{data:(0,Tt.fW)(n)}}catch(n){return{error:n}}}})}),overrideExisting:"throw"}),Zm=(0,c.cn)("cancel-query-button");function Xm({queryId:e,tenantName:t}){const[a,r]=Km.useCancelQueryMutation(),s=n.useCallback((()=>{a({queryId:e,database:t})}),[e,a,t]);return(0,d.jsxs)(un.$,{loading:r.isLoading,onClick:s,className:Zm("stop-button",{error:Boolean(r.error)}),children:[(0,d.jsx)(lt.I,{data:Ym.A,size:16}),nu("action.stop")]})}const ep=(0,c.cn)("ydb-query-duration"),tp=({duration:e})=>{if(!e)return null;const t=(0,ht.Bi)((0,ht.Jc)(e),1);return(0,d.jsx)("span",{className:ep(),children:(0,d.jsx)(Da,{className:ep("item-with-popover"),contentClassName:ep("popover-content"),text:t,popoverClassName:ep("popover"),popoverContent:nu("query-duration.description"),buttonProps:{className:ep("popover-button")}})})};var ap=a(55299);const np=(0,c.cn)("ydb-query-settings-banner");function rp(){const{isBannerShown:e,changedLastExecutionSettingsDescriptions:t,closeBanner:a}=Su();return e?(0,d.jsx)(ap.F,{className:np(),theme:"info",align:"baseline",message:(0,d.jsx)(rm,{prefix:nu("banner.query-settings.message"),querySettings:t}),onClose:a}):null}function sp(e){return e.replaceAll("\\","\\\\").replaceAll("\n","\\n").replaceAll("\r","\\r").replaceAll("\t","\\t")}var ip=a(6376);const op=(0,c.cn)("ydb-query-ast"),lp={automaticLayout:!0,selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},wrappingIndent:"indent"};function cp({ast:e,theme:t}){return(0,d.jsx)("div",{className:op(),children:(0,d.jsx)(ip.default,{language:"s-expression",value:e,options:lp,theme:`vs-${t}`})})}var dp=a(73253);function up(e){const t=n.useRef(null),a=n.useId(),{data:r,opts:s,shapes:i}=e;return n.useEffect((()=>{const e=t.current;if(!e)return;e.innerHTML="",e.style.setProperty("width","100vw"),e.style.setProperty("height","100vh");const a=(0,dp.og)(e.id,r,s,i);return a.render(),e.style.setProperty("width","100%"),e.style.setProperty("height","100%"),()=>{a.destroy()}}),[r,s,i]),(0,d.jsx)("div",{id:a,ref:t,style:{overflow:"auto"}})}const mp={renderNodeTitle:e=>{const t=e.name.split("|");return t.length>1?t[1]:e.name},textOverflow:"normal",initialZoomFitsCanvas:!0},pp={node:dp.SO};function hp(e){return(0,d.jsx)(up,{...e,opts:mp,shapes:pp})}const vp=JSON.parse('{"description.graph-is-not-supported":"Graph can not be rendered","description.empty-result":"There is no {{activeSection}} for the request","action.result":"Result","action.stats":"Stats","action.schema":"Schema","action.explain-plan":"Explain Plan","action.json":"JSON","action.ast":"AST","action.copy":"Copy {{activeSection}}","trace":"Trace","title.truncated":"Truncated","title.result":"Result","tooltip_actions":"Actions","text_open-execution-plan":"Open Execution Plan","text_open-execution-plan_description":"New tab","text_download":"Download Execution Plan","text_download_description":"SVG","text_diagnostics":"Download Diagnostics","text_diagnostics_description":"JSON","text_error-plan-svg":"Error: {{error}}"}'),gp=(0,Be.g4)("ydb-execute-result",{en:vp}),yp=(0,c.cn)("ydb-query-result-stub-message");function xp({message:e}){return(0,d.jsx)("div",{className:yp(null),children:e})}const bp=(0,c.cn)("ydb-query-explain-graph");function fp({explain:e={},theme:t}){const{links:a,nodes:n}=e;return a&&n&&n.length?(0,d.jsx)("div",{className:bp("canvas-container"),children:(0,d.jsx)(hp,{data:{links:a,nodes:n}},t)}):(0,d.jsx)(xp,{message:gp("description.graph-is-not-supported")})}var jp=a(7450);const Sp=(0,c.cn)("query-info-dropdown");var Tp=a(112),Np=a(92159);const Ep=H.F.injectEndpoints({endpoints:e=>({planToSvgQuery:e.query({queryFn:async({plan:e,database:t},{signal:a})=>{try{return{data:await window.api.viewer.planToSvg({database:t,plan:e},{signal:a})}}catch(n){return{error:n}}}})}),overrideExisting:"throw"}),wp=JSON.parse('{"unknown-error":"An unknown error occurred"}'),Cp=(0,Be.g4)("ydb-errors",{en:wp});function Pp(e,t){const a=document.createElement("a");a.href=e,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a)}function Ip({title:e,description:t}){return(0,d.jsxs)("div",{className:Sp("menu-item-content"),children:[(0,d.jsx)(st.E,{variant:"body-1",children:e}),(0,d.jsx)(st.E,{variant:"body-1",color:"secondary",children:t})]})}function Dp({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:r}){const[s,i]=n.useState(null),[o,{isLoading:l}]=Ep.useLazyPlanToSvgQueryQuery();n.useEffect((()=>()=>{s&&URL.revokeObjectURL(s)}),[s]);return{isLoading:l,items:n.useMemo((()=>{const n=[],l=e.plan;if(l&&a){const e=()=>s?Promise.resolve(s):o({plan:l,database:t}).unwrap().then((e=>{const t=new Blob([e],{type:"image/svg+xml"}),a=URL.createObjectURL(t);return i(a),a})).catch((e=>{const t=function(e){if("string"===typeof e)return e;if(!e)return Cp("unknown-error");if((0,X.TX)(e))return e.message;if("object"===typeof e&&"data"in e){var t;const a=e;if(null!==(t=a.data)&&void 0!==t&&t.message)return a.data.message;if("string"===typeof a.data)return a.data}return e instanceof Error?e.message:JSON.stringify(e)}(e);return pt({title:gp("text_error-plan-svg",{error:t}),name:"plan-svg-error",type:"error"}),null})),a=()=>{e().then((e=>{e&&window.open(e,"_blank")}))},r=()=>{e().then((e=>{e&&Pp(e,"query-plan.svg")}))};n.push([{text:(0,d.jsx)(Ip,{title:gp("text_open-execution-plan"),description:gp("text_open-execution-plan_description")}),icon:(0,d.jsx)(Tp.A,{className:Sp("icon")}),action:a,className:Sp("menu-item")},{text:(0,d.jsx)(Ip,{title:gp("text_download"),description:gp("text_download_description")}),icon:(0,d.jsx)(Np.A,{className:Sp("icon")}),action:r,className:Sp("menu-item")}])}if(e){const a=()=>{const a=r?(0,Tt.KH)(r):void 0,n={...e,database:t,...a&&{error:a}},s=new Blob([JSON.stringify(n,null,2)],{type:"application/json"}),i=URL.createObjectURL(s);Pp(i,`query-diagnostics-${(new Date).getTime()}.json`),URL.revokeObjectURL(i)};n.push([{text:(0,d.jsx)(Ip,{title:gp("text_diagnostics"),description:gp("text_diagnostics_description")}),icon:(0,d.jsx)(Np.A,{className:Sp("icon")}),action:a,className:Sp("menu-item")}])}return n}),[e,a,s,o,t,r])}}function Ap({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:n}){const{isLoading:r,items:s}=Dp({queryResultsInfo:e,database:t,hasPlanToSvg:a,error:n});return s.length?(0,d.jsx)(Oi.r,{popupProps:{placement:["bottom-end","left"]},switcherWrapperClassName:Sp("query-info-switcher-wrapper"),renderSwitcher:e=>(0,d.jsx)(ot.m,{title:gp("tooltip_actions"),children:(0,d.jsx)(un.$,{view:"flat-secondary",loading:r,disabled:r,...e,children:(0,d.jsx)(un.$.Icon,{children:(0,d.jsx)(jp.A,{})})})}),items:s,size:"xl"}):null}const _p=(0,c.cn)("ydb-query-json-viewer");function Rp({data:e}){return(0,d.jsx)("div",{className:_p("inspector"),children:(0,d.jsx)(xn,{data:e,isExpanded:()=>!0})})}var kp=a(89954);const Op=(0,c.cn)("ydb-query-result-error ");function Mp({error:e}){const t=(0,Tt.KH)(e);return!t||Gm(e)?null:"object"===typeof t?(0,d.jsx)(kp.O,{data:t}):(0,d.jsx)("div",{className:Op("message"),children:t})}const Lp=(0,c.cn)("ydb-query-result-sets-viewer");function zp({resultSets:e,selectedResultSet:t,setSelectedResultSet:a}){const n=(null===e||void 0===e?void 0:e.length)||0,r=null===e||void 0===e?void 0:e[t];return(0,d.jsxs)("div",{className:Lp("result-wrapper"),children:[(()=>{if(n>1){const r=(0,qr._e)(n).map((t=>{var a;return{id:String(t),title:`Result #${t+1}${null!==e&&void 0!==e&&null!==(a=e[t])&&void 0!==a&&a.truncated?" (T)":""}`}}));return(0,d.jsx)("div",{children:(0,d.jsx)(ae.t,{className:Lp("tabs"),size:"l",items:r,activeTab:String(t),onSelectTab:e=>a(Number(e))})})}return null})(),r?(0,d.jsxs)("div",{className:Lp("result"),children:[(0,d.jsxs)("div",{className:Lp("head"),children:[(0,d.jsx)(st.E,{variant:"subheader-3",children:null!==r&&void 0!==r&&r.truncated?gp("title.truncated"):gp("title.result")}),null!==r&&void 0!==r&&r.result?(0,d.jsx)(st.E,{color:"secondary",variant:"body-2",className:Lp("row-count"),children:`(${null===r||void 0===r?void 0:r.result.length})`}):null]}),(0,d.jsx)(Yu,{data:r.result,columns:r.columns})]}):null]})}var Fp=a(36590),qp=a(79737),Qp=a(79685);const Up=(0,c.cn)("ydb-query-simplified-plan");function Bp({value:e,formatter:t}){if(!(0,Qr.kf)(e))return;const a=t(Number(e));return(0,d.jsx)("div",{className:Up("metrics-cell"),children:a})}var $p=a(33705);const Hp={Table:"var(--g-color-text-info)",Predicate:"var(--g-color-text-positive)",Condition:"var(--g-color-text-utility)"};function Gp(e){return e in Hp?Hp[e]:"var(--g-color-text-secondary)"}function Wp(e={}){const t=[],a=Object.entries(e);if(1===a.length){const e=a[0][1],n=Gp(a[0][0]);t.push((0,d.jsx)("span",{style:{color:n},children:(0,pe.vN)(e)},"param"))}else{const a=function(e){const t=[],{Table:a,Predicate:n,Condition:r,...s}=e;return a&&t.push(["Table",a]),n&&t.push(["Predicate",n]),r&&t.push(["Condition",r]),t.concat(Object.entries(s))}(e);for(let e=0;e<a.length;e++){const[n,r]=a[e],s=Gp(n);e>0&&t.push(", "),t.push((0,d.jsxs)("span",{style:{color:s},children:[n,": ",(0,pe.vN)(r)]},e))}}return t}function Vp({params:e}){return e?(0,d.jsxs)("span",{className:Up("operation-params"),children:["(",Wp(e),")"]}):null}function Jp({modifiers:e,left:t}){return(0,d.jsx)("div",{className:Up("divider",e),style:{left:t}})}function Yp({row:e,depth:t=0,params:a}){const{name:r,operationParams:s,lines:i=""}=a,o=e.getLeafRows().length>0&&e.getIsExpanded(),l=n.useMemo((()=>function(e,t){const a=e.split(".").map(Number),n=[];for(let r=0;r<a.length;r++)r===a.length-1&&0!==r&&(a[r]?n.push((0,d.jsx)(Jp,{modifiers:{horizontal:!0},left:10+25*(r-1)},"last")):n.push((0,d.jsx)(Jp,{modifiers:{last:!0},left:9+25*(r-1)},"last"))),r===a.length-1&&t&&n.push((0,d.jsx)(Jp,{modifiers:{first:!0},left:9+25*r},"first")),a[r]&&n.push((0,d.jsx)(Jp,{left:9+25*(r-1)},r));return n}(i,o)),[i,o]);return(0,d.jsxs)("div",{style:{paddingLeft:25*t},className:Up("operation-name"),children:[l,(0,d.jsxs)(it.s,{gap:1,alignItems:"center",className:Up("operation-content"),children:[e.getCanExpand()&&(0,d.jsx)(un.$,{view:"flat",size:"xs",onClick:e.getToggleExpandedHandler(),children:(0,d.jsx)(un.$.Icon,{children:(0,d.jsx)($p.I,{direction:e.getIsExpanded()?"bottom":"right",size:14})})}),(0,d.jsx)("div",{className:Up("operation-name-content"),children:(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:Up("operation-name"),children:r}),"\xa0",(0,d.jsx)(Vp,{params:s})]})})]})]})}function Kp(e){return(0,d.jsx)(Bp,{value:e.getValue(),formatter:e=>e<1e8?(0,Qp.p)(e).format():(0,Qr.z0)(e,1)})}const Zp=[{accessorKey:"name",accessorFn:function(e){return{name:e.name,operationParams:e.operationParams,lines:e.lines}},header:()=>(0,d.jsx)(qp.A,{children:"Operation"}),size:600,cell:e=>(0,d.jsx)(Yp,{row:e.row,depth:e.row.depth,params:e.getValue()})},{accessorKey:"aCpu",header:()=>(0,d.jsx)(qp.A,{children:"A-Cpu"}),size:90,minSize:90,cell:function(e){return(0,d.jsx)(Bp,{value:e.getValue(),formatter:e=>(0,ht.Xo)(Math.round(e))})},meta:{align:"right",verticalAlign:"top"}},{accessorKey:"aRows",header:()=>(0,d.jsx)(qp.A,{children:"A-Rows"}),size:90,minSize:90,cell:Kp,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eCost",header:()=>(0,d.jsx)(qp.A,{children:"E-Cost"}),size:90,minSize:90,cell:Kp,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eRows",header:()=>(0,d.jsx)(qp.A,{children:"E-Rows"}),size:90,minSize:90,cell:Kp,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eSize",header:()=>(0,d.jsx)(qp.A,{children:"E-Size"}),size:90,minSize:90,cell:Kp,meta:{align:"right",verticalAlign:"top"}}];function Xp({plan:e}){const t=n.useMemo((()=>function(e,t=""){if(!e)return[];const a=[{items:e,prefix:t,parentIndex:-1,parentArray:[]}],n=[];for(;a.length>0;){const{items:e,prefix:t,parentIndex:r,parentArray:s}=a.pop(),i=[];for(let n=0;n<e.length;n++){const r={...e[n]},s=n<e.length-1?1:0;let o=`${t}.${s}`;t||(o=String(s)),r.lines=o,i.push(r),r.children&&a.push({items:r.children,prefix:o,parentIndex:n,parentArray:i})}-1===r?n.push(...i):s[r].children=i}return n}(e)),[e]),[a,r]=n.useState(!0),s=(0,Fp.K)({columns:Zp,data:t,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:r,state:{expanded:a},enableColumnResizing:!0,columnResizeMode:"onChange"});return(0,d.jsx)(qp.X,{wrapperClassName:Up(),table:s,stickyHeader:!0,width:"max"})}var eh=a(67157);const th=H.F.injectEndpoints({endpoints:e=>({checkTrace:e.query({queryFn:async({url:e},{signal:t,dispatch:a})=>{try{const n=await window.api.trace.checkTrace({url:e},{signal:t});return a((0,wi.P7)()),{data:n}}catch(n){return{error:n}}}})}),overrideExisting:"throw"});function ah(e,t){return e.replace(/\${(\w+)}/g,((e,a)=>t[a]||e))}function nh({traceId:e,isTraceReady:t}){const{traceCheck:a,traceView:r}=(0,eh.Zd)(),s=null!==a&&void 0!==a&&a.url?ah(a.url,{traceId:e}):"",i=null!==r&&void 0!==r&&r.url?ah(r.url,{traceId:e}):"",[o,{isLoading:l,isUninitialized:c}]=th.useLazyCheckTraceQuery();return n.useEffect((()=>{let e;return s&&!t&&(e=o({url:s})),()=>{var t;return null===(t=e)||void 0===t?void 0:t.abort()}}),[o,s,t]),!i||c&&!t?null:(0,d.jsxs)(un.$,{view:l?"flat-secondary":"flat-info",loading:l,href:i,target:"_blank",children:[gp("trace"),(0,d.jsx)(un.$.Icon,{children:(0,d.jsx)(Tp.A,{})})]})}const rh=(0,c.cn)("ydb-query-result"),sh="result",ih="schema",oh="simplified",lh="json",ch="stats",dh="ast",uh={get result(){return gp("action.result")},get schema(){return gp("action.schema")},get simplified(){return gp("action.explain-plan")},get json(){return gp("action.json")},get stats(){return gp("action.stats")},get ast(){return gp("action.ast")}},mh=["result","schema","simplified","stats"],ph=["schema","json","simplified","ast"];function hh({result:e,resultType:t="execute",isResultsCollapsed:a,theme:r,tenantName:s,queryText:i,onCollapseResults:l,onExpandResults:c}){const u=(0,Z.YQ)(),m="execute"===t,p="explain"===t,[h,v]=n.useState(0),[g,y]=n.useState((()=>m?sh:ih)),[x]=(0,Z.iK)(K.lr),{error:b,isLoading:f,queryId:j,data:S={}}=e,{preparedPlan:T,simplifiedPlan:N,stats:E,resultSets:w,ast:C}=S;n.useEffect((()=>{"execute"!==t||mh.includes(g)||y("result"),"explain"!==t||ph.includes(g)||y("schema")}),[g,t]);const P=n.useMemo((()=>{let e=[];return m?e=mh:p&&(e=ph),e.map((e=>({value:e,content:uh[e]})))}),[m,p]);n.useEffect((()=>()=>{u((0,Au.sM)())}),[u]);const I=e=>{y(e)},D=()=>{switch(g){case sh:{var e;const t=null===S||void 0===S||null===(e=S.resultSets)||void 0===e?void 0:e[h],a=function(e){if(null===e||void 0===e||!e.length)return"";const t=Object.keys(e[0]),a=[t.map(sp).join("\t")];for(const n of e){const e=[];for(const a of t){const t=n[a];e.push(sp("object"===typeof t?JSON.stringify(t):`${t}`))}a.push(e.join("\t"))}return a.join("\n")}(null===t||void 0===t?void 0:t.result);return a}case lh:return null===T||void 0===T?void 0:T.pristine;case oh:return null===N||void 0===N?void 0:N.pristine;case ch:return E;case dh:return C;default:return}},A=()=>{const e=D(),t=(0,pe.vN)(e);return t?(0,d.jsx)(cn.b,{text:t,view:"flat-secondary",title:gp("action.copy",{activeSection:g})}):null},_=()=>(0,d.jsx)(xp,{message:gp("description.empty-result",{activeSection:uh[g]})});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:rh("controls"),children:[(0,d.jsxs)("div",{className:rh("controls-left"),children:[(0,d.jsx)(Jm,{error:b,loading:f}),!b&&!f&&(0,d.jsxs)(n.Fragment,{children:[(0,qr.f8)(null===E||void 0===E?void 0:E.DurationUs)?(0,d.jsx)(tp,{duration:Number(E.DurationUs)}):null,P.length&&g?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Qm,{}),(0,d.jsx)(Td.a,{options:P,value:g,onUpdate:I})]}):null]}),f?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Bm,{className:rh("elapsed-time")}),(0,d.jsx)(Xm,{queryId:j,tenantName:s})]}):null,null!==S&&void 0!==S&&S.traceId&&m?(0,d.jsx)(nh,{traceId:S.traceId,isTraceReady:e.isTraceReady}):null]}),(0,d.jsxs)("div",{className:rh("controls-right"),children:[f||Gm(b)?null:(0,d.jsx)(Ap,{queryResultsInfo:{queryText:i,ast:S.ast,stats:S.stats,plan:S.plan},error:b,database:s,hasPlanToSvg:Boolean((null===S||void 0===S?void 0:S.plan)&&x&&m)}),A(),(0,d.jsx)(_u,{}),(0,d.jsx)(Iu,{onCollapse:l,onExpand:c,isCollapsed:a,initialDirection:"bottom"})]})]}),f||Gm(b)?null:(0,d.jsx)(rp,{}),(0,d.jsx)(o.r,{loading:f,children:(0,d.jsx)(qu,{className:rh("result"),children:(()=>{return b?(0,d.jsx)(Mp,{error:b}):g===sh?(0,d.jsx)(zp,{resultSets:w,selectedResultSet:h,setSelectedResultSet:v}):g===ih?null!==T&&void 0!==T&&null!==(e=T.nodes)&&void 0!==e&&e.length?(0,d.jsx)(fp,{theme:r,explain:T}):_():g===lh?null!==T&&void 0!==T&&T.pristine?(0,d.jsx)(Rp,{data:null===T||void 0===T?void 0:T.pristine}):_():g===oh?null!==N&&void 0!==N&&null!==(t=N.plan)&&void 0!==t&&t.length?(0,d.jsx)(Xp,{plan:N.plan}):_():g===ch?E?(0,d.jsx)(Rp,{data:E}):_():g===dh?C?(0,d.jsx)(cp,{ast:C,theme:r}):_():null;var e,t})()})})]})}var vh=a(16122),gh=a(23971);const yh=()=>-1,xh=(0,c.cn)("ydb-query-settings-select");function bh(e){return(0,d.jsx)("div",{className:xh("selector"),children:(0,d.jsx)(oe.l,{id:e.id,disabled:e.disabled,options:e.settingOptions,value:[e.setting],onUpdate:t=>{e.onUpdateSetting(t[0])},getOptionHeight:yh,popupClassName:xh("popup"),renderOption:e=>(0,d.jsxs)("div",{className:xh("item",{type:e.value}),children:[(0,d.jsxs)("div",{className:xh("item-title"),children:[e.content,e.isDefault?mu("description.default"):""]}),e.text&&(0,d.jsx)("span",{className:xh("item-description"),children:e.text})]}),width:"max"})})}const fh=(0,c.cn)("ydb-query-settings-dialog");function jh(){const e=(0,Z.YQ)(),t=(0,Z.N4)(Li.xM),[a,r]=(0,Z.XS)(),s=n.useCallback((()=>{e((0,Li.NJ)("idle"))}),[e]),i=n.useCallback((e=>{r(e),s()}),[s,r]);return(0,d.jsxs)(Pi.l,{open:"settings"===t,size:"s",onClose:s,className:fh(),hasCloseButton:!1,children:[(0,d.jsx)(Pi.l.Header,{caption:mu("action.settings")}),(0,d.jsx)(Sh,{initialValues:a,onSubmit:i,onClose:s})]})}function Sh({initialValues:e,onSubmit:t,onClose:a}){const{control:r,handleSubmit:s,formState:{errors:i}}=(0,gh.mN)({defaultValues:e,resolver:(0,vh.u)(Tt.id)}),[o]=(0,Z.iK)(K.lr),l=(0,se.Oi)();return(0,d.jsxs)("form",{onSubmit:s(t),children:[(0,d.jsxs)(Pi.l.Body,{className:fh("dialog-body"),children:[(0,d.jsxs)(it.s,{direction:"row",alignItems:"flex-start",className:fh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryMode",className:fh("field-title"),children:yu.queryMode.title}),(0,d.jsx)("div",{className:fh("control-wrapper",{queryMode:!0}),children:(0,d.jsx)(gh.xI,{name:"queryMode",control:r,render:({field:e})=>(0,d.jsx)(bh,{id:"queryMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:yu.queryMode.options})})})]}),(0,d.jsxs)(it.s,{direction:"row",alignItems:"flex-start",className:fh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"timeout",className:fh("field-title"),children:yu.timeout.title}),(0,d.jsx)("div",{className:fh("control-wrapper"),children:(0,d.jsx)(gh.xI,{name:"timeout",control:r,render:({field:e})=>{var t,a;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Mi.k,{id:"timeout",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:fh("timeout"),placeholder:"60",validationState:i.timeout?"invalid":void 0,errorMessage:null===(a=i.timeout)||void 0===a?void 0:a.message,errorPlacement:"inside"}),(0,d.jsx)("span",{className:fh("timeout-suffix"),children:mu("form.timeout.seconds")})]})}})})]}),l&&(0,d.jsxs)(it.s,{direction:"row",alignItems:"flex-start",className:fh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"tracingLevel",className:fh("field-title"),children:yu.tracingLevel.title}),(0,d.jsx)("div",{className:fh("control-wrapper"),children:(0,d.jsx)(gh.xI,{name:"tracingLevel",control:r,render:({field:e})=>(0,d.jsx)(bh,{id:"tracingLevel",setting:e.value,onUpdateSetting:e.onChange,settingOptions:yu.tracingLevel.options})})})]}),(0,d.jsxs)(it.s,{direction:"row",alignItems:"flex-start",className:fh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"transactionMode",className:fh("field-title"),children:yu.transactionMode.title}),(0,d.jsx)("div",{className:fh("control-wrapper",{transactionMode:!0}),children:(0,d.jsx)(gh.xI,{name:"transactionMode",control:r,render:({field:e})=>(0,d.jsx)(bh,{id:"transactionMode",setting:e.value,onUpdateSetting:e.onChange,settingOptions:yu.transactionMode.options})})})]}),(0,d.jsxs)(it.s,{direction:"row",alignItems:"flex-start",className:fh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"statisticsMode",className:fh("field-title"),children:yu.statisticsMode.title}),(0,d.jsx)(am.m,{className:fh("statistics-mode-tooltip"),disabled:!o,openDelay:0,content:mu("tooltip_plan-to-svg-statistics"),children:(0,d.jsx)("div",{className:fh("control-wrapper",{statisticsMode:!0}),children:(0,d.jsx)(gh.xI,{name:"statisticsMode",control:r,render:({field:e})=>(0,d.jsx)(bh,{id:"statisticsMode",disabled:o,setting:e.value,onUpdateSetting:e.onChange,settingOptions:yu.statisticsMode.options})})})})]}),(0,d.jsxs)(it.s,{direction:"row",alignItems:"flex-start",className:fh("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"limitRows",className:fh("field-title"),children:yu.limitRows.title}),(0,d.jsx)("div",{className:fh("control-wrapper"),children:(0,d.jsx)(gh.xI,{name:"limitRows",control:r,render:({field:e})=>{var t,a;return(0,d.jsx)(Mi.k,{id:"limitRows",type:"number",...e,value:null===(t=e.value)||void 0===t?void 0:t.toString(),className:fh("limit-rows"),placeholder:"10000",validationState:i.limitRows?"invalid":void 0,errorMessage:null===(a=i.limitRows)||void 0===a?void 0:a.message,errorPlacement:"inside"})}})})]})]}),(0,d.jsx)(Pi.l.Footer,{textButtonApply:mu("button-done"),textButtonCancel:mu("button-cancel"),onClickButtonCancel:a,propsButtonApply:{type:"submit"},renderButtons:(e,t)=>(0,d.jsxs)("div",{className:fh("buttons-container"),children:[(0,d.jsx)(zo.N,{href:"https://ydb.tech/docs",target:"_blank",className:fh("documentation-link"),children:mu("docs")}),(0,d.jsxs)("div",{className:fh("main-buttons"),children:[t,e]})]})})]})}const Th=(0,a(99006)._)((async()=>({Editor:(await Promise.resolve().then(a.bind(a,6376))).default})),"Editor");var Nh=a(41614),Eh=a(67913);const wh=JSON.parse('{"context_syntax-error":"Syntax error"}'),Ch=(0,Be.g4)("ydb-monaco",{en:wh}),Ph=(0,iu.debounce)((function(){var e;const t=null===(e=window.ydbEditor)||void 0===e?void 0:e.getModel();if(!t)return void console.error("unable to retrieve model when highlighting errors");const a=(0,Nh.kh)(t.getValue()).errors;if(!a.length)return void Dh();const n=a.map((e=>({message:Ch("context_syntax-error"),source:e.message,severity:Eh.cj.Error,startLineNumber:e.startLine,startColumn:e.startColumn+1,endLineNumber:e.endLine,endColumn:e.endColumn+1})));Eh.EN.setModelMarkers(t,"ydb",n)}),500);function Ih(){const e=(t=Ph,n.useEffect((()=>()=>{t.cancel()}),[t]),t);var t;return n.useCallback((()=>{Dh(),e()}),[e])}function Dh(){Eh.EN.removeAllMarkers("ydb")}const Ah={automaticLayout:!0,selectOnLineNumbers:!0,minimap:{enabled:!1},fixedOverflowWidgets:!0};const _h="navigation";function Rh({changeUserInput:e,theme:t,handleSendExecuteClick:a,handleGetExplainQueryClick:r}){const s=(0,Z.N4)(wi.Wp),i=(0,Z.YQ)(),o=(0,Z.N4)(wi.py),l=function(){const[e]=(0,Z.iK)(K.LK),[t]=(0,Z.iK)(K.IO);return n.useMemo((()=>{const a=Boolean(e);return{quickSuggestions:a,suggestOnTriggerCharacters:a,acceptSuggestionOnEnter:t?"on":"off",...Ah}}),[e,t])}(),c=Ih(),[u]=(0,Z.iK)(K.zk),m=(0,Z.A5)((()=>o&&0!==o.length?o[o.length-1].queryText:"")),p=(0,Z.A5)((()=>{u===Tt.x5.explain?r(s):a(s)}));return(0,d.jsx)(Th,{language:"yql",value:s,options:l,onChange:t=>{c(),e({input:t})},editorDidMount:(e,t)=>{window.ydbEditor=e;const n=function(e){const{KeyMod:t,KeyCode:a}=e,n=t.CtrlCmd;return{sendQuery:n|a.Enter,sendSelectedQuery:n|t.Shift|e.KeyCode.Enter,selectPreviousQuery:n|a.UpArrow,selectNextQuery:n|a.DownArrow,saveQuery:n|a.KeyS,saveSelectedQuery:n|t.Shift|a.KeyS}}(t);t.editor.registerCommand("insertSnippetToEditor",((t,a)=>{const n=e.getContribution("snippetController2");n&&(e.focus(),e.setValue(""),n.insert(a))})),function(e){const t=ve()((()=>{e.layout()}),100);e.layout(),window.addEventListener("resize",t),e.onDidDispose((()=>{window.removeEventListener("resize",t)}))}(e),function(e,t){kh(e.getValue(),t()),e.onDidChangeModelContent((()=>{kh(e.getValue(),t())})),e.onDidDispose((()=>{window.onbeforeunload=null}))}(e,m),e.focus(),e.addAction({id:"sendQuery",label:nu("action.send-query"),keybindings:[n.sendQuery],precondition:void 0,keybindingContext:void 0,contextMenuGroupId:_h,contextMenuOrder:1,run:()=>p()});const r=e.createContextKey("canSendSelectedText",!1);e.onDidChangeCursorSelection((({selection:e,secondarySelections:t})=>{const a=e.selectionStartLineNumber!==e.positionLineNumber||e.selectionStartColumn!==e.positionColumn,n=t.length>0;r.set(a&&!n)})),e.addAction({id:"sendSelectedQuery",label:nu("action.send-selected-query"),keybindings:[n.sendSelectedQuery],precondition:"canSendSelectedText",contextMenuGroupId:_h,contextMenuOrder:1,run:e=>{const t=e.getSelection(),n=e.getModel();if(t&&n){const e=n.getValueInRange({startLineNumber:t.getSelectionStart().lineNumber,startColumn:t.getSelectionStart().column,endLineNumber:t.getPosition().lineNumber,endColumn:t.getPosition().column});a(e,!0)}}}),e.addAction({id:"previous-query",label:nu("action.previous-query"),keybindings:[n.selectPreviousQuery],contextMenuGroupId:_h,contextMenuOrder:2,run:()=>{i((0,wi.JK)())}}),e.addAction({id:"next-query",label:nu("action.next-query"),keybindings:[n.selectNextQuery],contextMenuGroupId:_h,contextMenuOrder:3,run:()=>{i((0,wi.tS)())}}),e.addAction({id:"save-query",label:nu("action.save-query"),keybindings:[n.saveQuery],run:()=>{Ci.Ay.show(Gi)}})},theme:`vs-${t}`,editorWillUnmount:()=>{window.ydbEditor=void 0}})}function kh(e,t){const a=!!e&&e!==t;window.onbeforeunload=a?e=>{e.preventDefault(),e.returnValue=""}:null}const Oh=(0,c.cn)("query-editor"),Mh={triggerExpand:!1,triggerCollapse:!1,collapsed:!0};function Lh(e){const t=(0,Z.YQ)(),{tenantName:a,path:r,type:s,theme:i,changeUserInput:o}=e,l=(0,Z.N4)(wi.yJ),c=(0,Z.N4)(wi.wf),u=(0,Z.N4)(wi.py),m=(0,Z.N4)(wi.Kz),p=(0,Z.N4)(lu.Ab),v=Boolean(c),[g]=(0,Z.XS)(),y=(0,se.Oi)(),[x,b]=fu(),{resetBanner:f}=Su(),[j,S]=(0,Z.iK)(K.zk),[T,N]=n.useState(""),[E]=wi.JO.useUseSendQueryMutation();n.useEffect((()=>{l!==a&&t((0,wi.Id)(a))}),[t,a,l]);const[w,C]=n.useReducer(Cu(K.GV),Mh);n.useEffect((()=>{C(Nu.triggerCollapse)}),[]),n.useEffect((()=>{C(p||v?Nu.triggerExpand:Nu.triggerCollapse)}),[p,v]);const P=(0,Z.A5)(((e,n)=>{S(Tt.x5.execute),N(e),(0,iu.isEqual)(x,g)||(f(),b(g));const r=(0,ou.A)();var s;(E({actionType:"execute",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:r}),t((0,lu.o)(!1)),n)||e!==(null===(s=u[m])||void 0===s?void 0:s.queryText)&&t((0,wi.nO)({queryText:e,queryId:r}));C(Nu.triggerExpand)})),I=()=>{t((0,Li.NJ)("settings"))},D=(0,Z.A5)((e=>{S(Tt.x5.explain),N(e),(0,iu.isEqual)(x,g)||(f(),b(g));const n=(0,ou.A)();E({actionType:"explain",query:e,database:a,querySettings:g,enableTracingLevel:y,queryId:n}),t((0,lu.o)(!1)),C(Nu.triggerExpand)}));return(0,d.jsxs)("div",{className:Oh(),children:[(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:K.l_,triggerCollapse:w.triggerCollapse,triggerExpand:w.triggerExpand,minSize:[0,52],collapsedSizes:[100,0],onSplitStartDragAdditional:()=>{C(Nu.clear)},children:[(0,d.jsxs)("div",{className:Oh("pane-wrapper",{top:!0}),children:[(0,d.jsx)("div",{className:Oh("monaco-wrapper"),children:(0,d.jsx)("div",{className:Oh("monaco"),children:(0,d.jsx)(Rh,{changeUserInput:o,theme:i,handleSendExecuteClick:P,handleGetExplainQueryClick:D})})}),(0,d.jsx)(Fm,{handleSendExecuteClick:P,onSettingsButtonClick:I,isLoading:Boolean(null===c||void 0===c?void 0:c.isLoading),handleGetExplainQueryClick:D,highlightedAction:j})]}),(0,d.jsx)("div",{className:Oh("pane-wrapper"),children:(0,d.jsx)(zh,{resultVisibilityState:w,onExpandResultHandler:()=>{C(Nu.triggerExpand)},onCollapseResultHandler:()=>{C(Nu.triggerCollapse)},type:s,theme:i,result:c,tenantName:a,path:r,showPreview:p,queryText:T},null===c||void 0===c?void 0:c.queryId)})]}),(0,d.jsx)(jh,{})]})}function zh({resultVisibilityState:e,onExpandResultHandler:t,onCollapseResultHandler:a,type:n,theme:r,result:s,tenantName:i,path:o,showPreview:l,queryText:c}){return l?(0,d.jsx)(Xu,{database:i,path:o,type:n}):s?(0,d.jsx)(hh,{result:s,resultType:null===s||void 0===s?void 0:s.type,theme:r,tenantName:i,isResultsCollapsed:e.collapsed,onExpandResults:t,onCollapseResults:a,queryText:c}):null}const Fh=[{id:te.tQ.newQuery,title:nu("tabs.newQuery")},{id:te.tQ.history,title:nu("tabs.history")},{id:te.tQ.saved,title:nu("tabs.saved")}],qh=({className:e,activeTab:t})=>{const a=(0,Yn.zy)(),n=(0,ge.mA)(a);return(0,d.jsx)("div",{className:e,children:(0,d.jsx)(ae.t,{size:"l",allowNotSelected:!0,activeTab:t,items:Fh,wrapTo:({id:e},t)=>{const a=(0,ea.YL)({...n,[ea.vh.queryTab]:e});return(0,d.jsx)(ji.E,{to:a,children:t},e)}})})};var Qh=a(65872),Uh=a(64470);const Bh=(0,c.cn)("ydb-saved-queries"),$h=({visible:e,queryName:t,onCancelClick:a,onConfirmClick:n})=>(0,d.jsxs)(Pi.l,{open:e,hasCloseButton:!1,size:"s",onClose:a,onEnterKeyDown:n,children:[(0,d.jsx)(Pi.l.Header,{caption:nu("delete-dialog.header")}),(0,d.jsxs)(Pi.l.Body,{className:Bh("dialog-body"),children:[nu("delete-dialog.question"),(0,d.jsx)("span",{className:Bh("dialog-query-name"),children:` ${t}?`})]}),(0,d.jsx)(Pi.l.Footer,{textButtonApply:nu("delete-dialog.delete"),textButtonCancel:nu("delete-dialog.cancel"),onClickButtonCancel:a,onClickButtonApply:n})]}),Hh=({changeUserInput:e})=>{const t=zi(),a=(0,Z.YQ)(),r=(0,Z.N4)(Li.cu),[s,i]=n.useState(!1),[o,l]=n.useState(""),c=()=>{i(!1),l("")},u=Zi(n.useCallback((({queryText:t,queryName:n})=>{e({input:t}),a((0,Li.JP)(n)),a((0,ie.sH)(te.tQ.newQuery))}),[e,a])),m=[{name:"name",header:"Name",render:({row:e})=>(0,d.jsx)("div",{className:Bh("query-name"),children:e.name}),width:200},{name:"body",header:"Query Text",render:({row:e})=>{return(0,d.jsxs)("div",{className:Bh("query"),children:[(0,d.jsx)("div",{className:Bh("query-body"),children:(0,d.jsx)(eo,{value:e.body,maxQueryHeight:6})}),(0,d.jsxs)("span",{className:Bh("controls"),children:[(0,d.jsx)(un.$,{view:"flat-secondary",children:(0,d.jsx)(lt.I,{data:Qh.A})}),(0,d.jsx)(un.$,{view:"flat-secondary",onClick:(t=e.name,e=>{e.stopPropagation(),i(!0),l(t)}),children:(0,d.jsx)(lt.I,{data:Uh.A})})]})]});var t},sortable:!1,resizeMinWidth:650}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(Fe.L,{className:Bh(),children:[(0,d.jsx)(Fe.L.Controls,{children:(0,d.jsx)(Ue.v,{onChange:e=>{a((0,Li.ys)(e))},placeholder:nu("filter.text.placeholder"),className:Bh("search")})}),(0,d.jsx)(Fe.L.Table,{children:(0,d.jsx)(ze.l,{columnsWidthLSKey:"savedQueriesTableColumnsWidth",columns:m,data:t,settings:no,emptyDataMessage:nu(r?"history.empty-search":"saved.empty"),rowClassName:()=>Bh("row"),onRowClick:e=>u({queryText:e.body,queryName:e.name}),initialSortOrder:{columnId:"name",order:_t.Ay.ASCENDING}})})]}),(0,d.jsx)($h,{visible:s,queryName:o,onCancelClick:()=>{c()},onConfirmClick:()=>{c(),a((0,Li.fu)(o)),l("")}})]})},Gh=(0,c.cn)("ydb-query"),Wh=e=>{const t=(0,Z.YQ)(),{queryTab:a=te.tQ.newQuery}=(0,Z.N4)((e=>e.tenant)),s=e=>{t((0,wi.iZ)(e))},i=n.useMemo((()=>Fh.find((({id:e})=>e===a))),[a]);return(0,d.jsxs)("div",{className:Gh(),children:[i?(0,d.jsx)(r.mg,{children:(0,d.jsx)("title",{children:i.title})}):null,(0,d.jsx)(qh,{className:Gh("tabs"),activeTab:a}),(0,d.jsx)("div",{className:Gh("content"),children:(()=>{switch(a){case te.tQ.newQuery:return(0,d.jsx)(Lh,{changeUserInput:s,...e});case te.tQ.history:return(0,d.jsx)(su,{changeUserInput:s});case te.tQ.saved:return(0,d.jsx)(Hh,{changeUserInput:s});default:return null}})()})]})};var Vh=a(46649),Jh=a(93844);const Yh=["query","diagnostics"],Kh={query:Vh.A,diagnostics:Jh.A};const Zh=(0,c.cn)("ydb-tenant-navigation"),Xh=({id:e,title:t,icon:a})=>({value:e,content:(0,d.jsxs)("span",{className:Zh("item"),children:[(0,d.jsx)(lt.I,{data:a,size:16,className:Zh("icon")}),(0,d.jsx)("span",{className:Zh("text"),children:t})]})}),ev=()=>{const e=function(){const e=(0,Yn.W6)(),t=(0,Yn.zy)(),a=(0,ge.mA)(t),[,r]=(0,Z.iK)(K.Mt),{tenantPage:s}=(0,Z.N4)((e=>e.tenant)),i=n.useMemo((()=>{if(t.pathname!==ge.Ay.tenant)return[];const n=Yh.map((t=>{const n=te.Dg[t],i=(0,ea.YL)({...a,[te.Dt]:n});return{id:n,title:kr(`pages.${t}`),icon:Kh[t],path:i,current:s===n,onForward:()=>{r(n),e.push(i)}}}));return n}),[s,r,t.pathname,e,a]);return i}();return(0,d.jsx)("div",{className:Zh(),children:(0,d.jsx)(Td.a,{width:"auto",onUpdate:t=>{const a=e.find((e=>e.id===t));null===a||void 0===a||a.onForward()},size:"l",className:Zh("body"),value:(e.find((e=>e.current))||e[0]).id,options:e.map(Xh)})})},tv=(0,c.cn)("object-general");const av=function(e){const t=(0,ee.i)(),{tenantPage:a}=(0,Z.N4)((e=>e.tenant));return(0,d.jsxs)("div",{className:tv(),children:[(0,d.jsx)(ev,{}),(()=>{const{type:n,additionalTenantProps:r,additionalNodesProps:s,tenantName:i,path:o}=e;return a===te.Dg.query?(0,d.jsx)(Wh,{tenantName:i,path:o,theme:t,type:n}):(0,d.jsx)(tu,{type:n,tenantName:i,path:o,additionalTenantProps:r,additionalNodesProps:s})})()]})};var nv=a(40336),rv=a(1956);const sv=H.F.injectEndpoints({endpoints:e=>({getSchemaAcl:e.query({queryFn:async({path:e,database:t},{signal:a})=>{try{const n=await window.api.viewer.getSchemaAcl({path:e,database:t},{signal:a});return{data:{acl:n.Common.ACL,effectiveAcl:n.Common.EffectiveACL,owner:n.Common.Owner,interruptInheritance:n.Common.InterruptInheritance}}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"}),iv=JSON.parse('{"title_rights":"Access Rights","title_effective-rights":"Effective Access Rights","title_owner":"Owner","title_interupt-inheritance":"Interrupt inheritance","description_empty":"No Acl data"}'),ov=(0,Be.g4)("ydb-acl",{en:iv}),lv=(0,c.cn)("ydb-acl"),cv=["access","type","inheritance"],dv={access:"Access",type:"Access type",inheritance:"Inheritance type"},uv=new Set(["Object","Container"]);function mv({value:e}){const t="string"===typeof e?[e]:e;return(0,d.jsx)("div",{className:lv("definition-content"),children:t.map((e=>(0,d.jsx)("span",{children:e},e)))})}function pv(e){if(!e||!e.length)return[];const t=function(e){return e.map((e=>{const{AccessRules:t=[],AccessRights:a=[],AccessType:n,InheritanceType:r,Subject:s}=e,i=t.concat(a),o="Allow"===n?void 0:n;let l;return((null===r||void 0===r?void 0:r.length)!==uv.size||r.some((e=>!uv.has(e))))&&(l=r),{access:i.length?i:void 0,type:o,inheritance:l,Subject:s}}))}(e);return t.map((({Subject:e,...t})=>{const a=Object.entries(t).filter((([e,t])=>Boolean(t)));return 1===a.length&&"access"===a[0][0]?{name:e,content:(0,d.jsx)(mv,{value:a[0][1]}),multilineName:!0}:{label:(0,d.jsx)("span",{className:lv("group-label"),children:e}),items:cv.map((e=>{const a=t[e];if(a)return{name:dv[e],content:(0,d.jsx)(mv,{value:a}),multilineName:!0}})).filter(qr.f8)}}))}const hv=({path:e,database:t})=>{const{currentData:a,isFetching:r,error:s}=sv.useGetSchemaAclQuery({path:e,database:t}),i=r&&!a,{acl:o,effectiveAcl:l,owner:c,interruptInheritance:u}=a||{},m=pv(o),p=pv(l),h=function(e){const t=(a=e,a&&a.endsWith("@staff")&&!a.startsWith("svc_")?a.split("@")[0]:a);var a;return t?[{name:t,content:ov("title_owner"),multilineName:!0}]:[]}(c),v=u?[{name:ov("title_interupt-inheritance"),content:(0,d.jsx)(lt.I,{data:rv.A,size:20}),multilineName:!0}]:[];if(i)return(0,d.jsx)(de.a,{});if(s)return(0,d.jsx)(ce.o,{error:s});if(!o&&!c&&!l)return(0,d.jsx)(n.Fragment,{children:ov("description_empty")});const g=h.concat(m);return(0,d.jsxs)("div",{className:lv(),children:[(0,d.jsx)(vv,{items:v}),(0,d.jsx)(vv,{items:g,title:ov("title_rights")}),(0,d.jsx)(vv,{items:p,title:ov("title_effective-rights")})]})};function vv({items:e,title:t}){return e.length?(0,d.jsxs)(n.Fragment,{children:[t&&(0,d.jsx)("div",{className:lv("list-title"),children:t}),(0,d.jsx)(nr.u,{items:e,nameMaxWidth:200,className:lv("result",{"no-title":!t}),responsive:!0})]}):null}var gv=a(87285);const yv=(e,t,a)=>{const{setActivePath:n}=a;return{openPreview:()=>{t(H.F.util.invalidateTags(["PreviewData"])),t((0,lu.o)(!0)),t((0,ie.es)(te.Dg.query)),t((0,ie.sH)(te.tQ.newQuery)),n(e)}}},xv=(e,t)=>(0,d.jsx)(un.$,{view:"flat-secondary",onClick:e.openPreview,title:kr("actions.openPreview"),size:t||"s",children:(0,d.jsx)(lt.I,{data:gv.A})}),bv=(e,t,a)=>(n,r)=>{const s=yv(n,e,t),i=xv(s,a);return{async_replication:void 0,database:void 0,directory:void 0,table:i,column_table:i,index_table:void 0,topic:void 0,stream:void 0,index:void 0,external_table:i,external_data_source:void 0,view:i}[r]},fv=(e,t,a)=>(n,r)=>{const s=yv(n,e,t);return{preview:xv(s,a)}[r]};var jv=a(57949),Sv=a(1064);const Tv=5*K.KF,Nv=H.F.injectEndpoints({endpoints:e=>({getTableSchemaData:e.query({queryFn:async({path:e,tenantName:t,type:a},{dispatch:n})=>{try{if($(a)){const a=await n(Et.endpoints.getViewSchema.initiate({database:t,path:e,timeout:Tv}));if((0,Tt.We)(a))return{error:a};return{data:Zt(a.data)}}const r=await n(G.endpoints.getOverview.initiate({path:e,database:t,timeout:Tv}));return{data:Kt(a,r.data)}}catch(r){return{error:r}}}})})});var Ev=a(51016),wv=a(49917),Cv=a(32133),Pv=a.n(Cv);function Iv(e,t){const a=e.replace(/^\/+|\/+$/g,""),n=t.replace(/^\/+|\/+$/g,"");if(!a.startsWith(n))return a||"/";if(a===n)return`/${a}`;let r=a.slice(n.length);return r=r.replace(/^\/+/,"")||"/",r}function Dv(e,t){return t===x.EPathTypeDir&&(2===e.split("/").length&&e.startsWith("/"))}const Av=({text:e,action:t,isLoading:a})=>({text:(0,d.jsxs)(it.s,{justifyContent:"space-between",alignItems:"center",children:[e,a&&(0,d.jsx)(Hm.t,{size:"xs"})]}),action:t,disabled:a}),_v=(e,t,a="")=>(n,r)=>{const s=((e,t,a)=>{const{setActivePath:n,showCreateDirectoryDialog:r,getConfirmation:s,getConnectToDBDialog:i,schemaData:o}=a,l=a=>()=>{const r=()=>{t((0,ie.es)(te.Dg.query)),t((0,ie.sH)(te.tQ.newQuery)),n(e.path),im(a({...e,schemaData:o}))};s?s().then((e=>{e&&r()})):r()};return{createDirectory:r?()=>{r(e.path)}:void 0,getConnectToDBDialog:()=>null===i||void 0===i?void 0:i({database:e.path}),createTable:l(om),createColumnTable:l(lm),createAsyncReplication:l(cm),alterAsyncReplication:l(jm),dropAsyncReplication:l(fm),alterTable:l(dm),dropTable:l(Rm),selectQuery:l(um),upsertQuery:l(mm),createExternalTable:l(hm),dropExternalTable:l(pm),selectQueryFromExternalTable:l(um),createTopic:l(vm),alterTopic:l(gm),dropTopic:l(ym),createView:l(xm),dropView:l(bm),dropIndex:l(Tm),addTableIndex:l(Sm),createCdcStream:l(Nm),copyPath:()=>{try{Pv()(e.relativePath),pt({name:"Copied",title:kr("actions.copied"),type:"success"})}catch{pt({name:"Not copied",title:kr("actions.notCopied"),type:"error"})}}}})({path:n,relativePath:Iv(n,a),tenantName:a,type:r},e,t),i={text:kr("actions.copyPath"),action:s.copyPath,iconEnd:(0,d.jsx)(Ev.A,{})},o={text:kr("actions.connectToDB"),action:s.getConnectToDBDialog,iconEnd:(0,d.jsx)(wv.A,{})},l=[{text:kr("actions.createTable"),action:s.createTable},{text:kr("actions.createColumnTable"),action:s.createColumnTable},{text:kr("actions.createAsyncReplication"),action:s.createAsyncReplication},{text:kr("actions.createTopic"),action:s.createTopic},{text:kr("actions.createView"),action:s.createView}],c=[[i,o],l],u=[[i],l];if(s.createDirectory){const e={text:kr("actions.createDirectory"),action:s.createDirectory};c.splice(1,0,[e]),u.splice(1,0,[e])}const m=[[i],[{text:kr("actions.alterTable"),action:s.alterTable},{text:kr("actions.dropTable"),action:s.dropTable},Av({text:kr("actions.selectQuery"),action:s.selectQuery,isLoading:t.isSchemaDataLoading}),Av({text:kr("actions.upsertQuery"),action:s.upsertQuery,isLoading:t.isSchemaDataLoading}),{text:kr("actions.addTableIndex"),action:s.addTableIndex},{text:kr("actions.createCdcStream"),action:s.createCdcStream}]],p=[[i],[{text:kr("actions.alterTable"),action:s.alterTable},{text:kr("actions.dropTable"),action:s.dropTable},{text:kr("actions.selectQuery"),action:s.selectQuery},{text:kr("actions.upsertQuery"),action:s.upsertQuery}]],h=[[i],[{text:kr("actions.alterTopic"),action:s.alterTopic},{text:kr("actions.dropTopic"),action:s.dropTopic}]],v=[[i],[{text:kr("actions.selectQuery"),action:s.selectQueryFromExternalTable}],[{text:kr("actions.dropTable"),action:s.dropExternalTable}]],g=[[i],[{text:kr("actions.createExternalTable"),action:s.createExternalTable}]],y=[[i],[{text:kr("actions.selectQuery"),action:s.selectQuery}],[{text:kr("actions.dropView"),action:s.dropView}]],x=[i];return{async_replication:[[i],[{text:kr("actions.alterReplication"),action:s.alterAsyncReplication},{text:kr("actions.dropReplication"),action:s.dropAsyncReplication}]],database:c,directory:u,table:m,column_table:p,index_table:x,topic:h,stream:x,index:[[i,{text:kr("actions.dropIndex"),action:s.dropIndex}]],external_table:v,external_data_source:g,view:y}[r]},Rv=(0,c.cn)("ydb-schema-create-directory-dialog"),kv="relativePath";function Ov({open:e,onClose:t,database:a,parentPath:r,onSuccess:s}){const[i,o]=n.useState(""),[l,c]=n.useState(""),[u,m]=lu.sM.useCreateDirectoryMutation(),p=()=>{o(""),m.reset()},h=()=>{t(),c(""),p()};return(0,d.jsxs)(Pi.l,{open:e,onClose:h,size:"s",children:[(0,d.jsx)(Pi.l.Header,{caption:kr("schema.tree.dialog.header")}),(0,d.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=(n=l)?/\s/.test(n)?kr("schema.tree.dialog.whitespace"):"":kr("schema.tree.dialog.empty");var n;o(t),t||u({database:a,path:`${r}/${l}`}).unwrap().then((()=>{h(),s(l)}))},children:[(0,d.jsxs)(Pi.l.Body,{children:[(0,d.jsxs)("label",{htmlFor:kv,className:Rv("label"),children:[(0,d.jsx)("span",{className:Rv("description"),children:kr("schema.tree.dialog.description")}),`${r}/`]}),(0,d.jsx)("div",{className:Rv("input-wrapper"),children:(0,d.jsx)(Mi.k,{placeholder:kr("schema.tree.dialog.placeholder"),value:l,onUpdate:e=>{c(e),p()},autoFocus:!0,hasClear:!0,autoComplete:!1,disabled:m.isLoading,validationState:i?"invalid":void 0,id:kv,errorMessage:i})}),m.isError&&(0,d.jsx)(ce.o,{error:m.error,defaultMessage:kr("schema.tree.dialog.invalid")})]}),(0,d.jsx)(Pi.l.Footer,{loading:m.isLoading,textButtonApply:kr("schema.tree.dialog.buttonApply"),textButtonCancel:kr("schema.tree.dialog.buttonCancel"),onClickButtonCancel:h,propsButtonApply:{type:"submit"}})]})]})}const Mv=n.createContext(void 0),Lv=n.createContext(void 0);function zv({children:e}){const[t,a]=n.useState("");return(0,d.jsx)(Mv.Provider,{value:t,children:(0,d.jsx)(Lv.Provider,{value:a,children:e})})}function Fv(){const e=n.useContext(Lv);if(void 0===e)throw new Error("useDispatchTreeKey must be used within a TreeKeyProvider");return e}function qv(e){const t=(0,se.Ii)(),{rootPath:a,rootName:r,rootType:s,currentPath:i,onActivePathUpdate:o}=e,l=(0,Z.YQ)(),c=(0,Z.N4)(wi.Wp),[u,{currentData:m,isFetching:p}]=Nv.useLazyGetTableSchemaDataQuery(),[h,v]=(0,Z.XS)(),[g,y]=n.useState(!1),[x,b]=n.useState(""),f=Fv(),j=function(){const e=n.useContext(Mv);if(void 0===e)throw new Error("useTreeKey must be used within a TreeKeyProvider");return e}(),S=Dv(a,s)?"database":E(s);n.useEffect((()=>{null!==i&&void 0!==i&&i.startsWith(a)||o(a)}),[i,o,a]);const T=e=>{b(e),y(!0)},w=n.useMemo((()=>_v(l,{setActivePath:o,updateQueryExecutionSettings:e=>v({...h,...e}),showCreateDirectoryDialog:t?T:void 0,getConfirmation:c?Ki:void 0,getConnectToDBDialog:Sv.S,schemaData:m,isSchemaDataLoading:p},a)),[m,t,l,c,p,o,h,a,v]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Ov,{onClose:()=>{y(!1)},open:g,database:a,parentPath:x,onSuccess:e=>{const t=`${x}/${e}`;o(t),f(t)}}),(0,d.jsx)(jv.F,{rootState:{path:a,name:r,type:S,collapsed:!1},fetchPath:async e=>{let t;for(;;){const n=l(lu.sM.endpoints.getSchema.initiate({path:e,database:a},{forceRefetch:!0})),{data:r,originalArgs:s}=await n;if(n.unsubscribe(),(null===s||void 0===s?void 0:s.path)===e){t=null===r||void 0===r?void 0:r[e];break}}if(!t)throw new Error(`no describe data about path ${e}`);const{PathDescription:{Children:n=[]}={}}=t;return n.map((e=>{const{Name:t="",PathType:a,PathSubType:n,ChildrenExist:r}=e,s=Q(a,n)||(0,qr.f8)(r)&&!r;return{name:t,type:E(a,n),expandable:!s}}))},getActions:w,onActionsOpenToggle:({path:e,type:t,isOpen:n})=>{const r=N[t];return n&&r&&u({path:e,tenantName:a,type:r}),[]},renderAdditionalNodeElements:bv(l,{setActivePath:o}),activePath:i,onActivePathUpdate:o,cache:!1,virtualize:!0},j)]})}const Qv=JSON.parse('{"title_navigation":"Navigation","field_source-type":"Source Type","field_data-source":"Data Source","action_copySchemaPath":"Copy schema path","action_openInDiagnostics":"Open in Diagnostics","field_type":"Type","field_subtype":"SubType","field_id":"Id","field_version":"Version","field_created":"Created","field_data-size":"Data size","field_row-count":"Row count","field_partitions":"Partitions count","field_paths":"Paths","field_shards":"Shards","field_state":"State","field_mode":"Mode","field_format":"Format","field_retention":"Retention"}'),Uv=(0,Be.g4)("ydb-object-summary",{en:Qv}),Bv=(0,c.cn)("ydb-object-summary");function $v({tenantName:e,path:t}){var a;const{data:n={},isLoading:r}=(0,lu.Tn)({path:e,database:e}),i=null===n||void 0===n||null===(a=n.PathDescription)||void 0===a?void 0:a.Self,[,o]=(0,s.useQueryParam)("schema",s.StringParam);return!i&&r?(0,d.jsx)("div",{children:(0,d.jsx)(de.a,{})}):(0,d.jsxs)("div",{className:Bv("tree-wrapper"),children:[(0,d.jsx)("div",{className:Bv("tree-header"),children:Uv("title_navigation")}),(0,d.jsx)("div",{className:Bv("tree"),children:i?(0,d.jsx)(qv,{rootPath:e,rootName:i.Name||e,rootType:i.PathType,currentPath:t,onActivePathUpdate:o}):null})]})}var Hv=a(16963);function Gv(){const e=(0,Z.YQ)(),{diagnosticsTab:t,tenantPage:a}=(0,Z.N4)((e=>e.tenant)),n=a===te.Dg.diagnostics&&t===te.iJ.schema;return(0,d.jsx)("div",{children:!n&&(0,d.jsx)(un.$,{title:Uv("action_openInDiagnostics"),onClick:()=>{e((0,ie.es)(te.Dg.diagnostics)),e((0,ie.WO)(te.iJ.schema))},size:"s",children:(0,d.jsx)(lt.I,{data:Hv.A,size:14})})})}var Wv=a(8873),Vv=a(97091);function Jv(){const e=Fv();return(0,d.jsx)(ot.m,{title:"Refresh",children:(0,d.jsx)(un.$,{className:Bv("refresh-button"),view:"flat-secondary",onClick:()=>{e((0,Vv.Ak)())},children:(0,d.jsx)(lt.I,{data:Wv.A})})})}const Yv=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(K.hh))});function Kv({type:e,subType:t,tenantName:a,path:r,onCollapseSummary:i,onExpandSummary:o,isCollapsed:l}){var c;const[u]=(0,Z.Nt)(),m=(0,Z.YQ)(),[,p]=(0,s.useQueryParam)("schema",s.StringParam),[v,g]=n.useReducer(Cu(K.hh),void 0,Yv),{summaryTab:y=te.ml.overview}=(0,Z.N4)((e=>e.tenant)),f=(0,Yn.zy)(),j=Ca().parse(f.search,{ignoreQueryPrefix:!0}),{currentData:S}=G.useGetOverviewQuery({path:r,database:a},{pollingInterval:u}),T=null===S||void 0===S||null===(c=S.PathDescription)||void 0===c?void 0:c.Self;n.useEffect((()=>{const t=D(e);!e||t||ea.x$.find((e=>e.id===y))||m((0,ie.Mj)(te.ml.overview))}),[m,e,y]);const N=()=>{const t=D(e)?[...ea.x$,...ea.nb]:ea.x$;return(0,d.jsx)("div",{className:Bv("tabs"),children:(0,d.jsxs)(it.s,{className:Bv("tabs-inner"),justifyContent:"space-between",alignItems:"center",children:[(0,d.jsx)(ae.t,{size:"l",items:t,activeTab:y,wrapTo:({id:e},t)=>{const a=(0,ea.YL)({...j,[ea.vh.summaryTab]:e});return(0,d.jsx)(ne.N_,{to:a,className:Bv("tab"),children:t},e)},allowNotSelected:!0}),y===te.ml.schema&&(0,d.jsx)(Gv,{})]})})},E=()=>{switch(y){case te.ml.acl:return(0,d.jsx)(hv,{path:r,database:a});case te.ml.schema:return(0,d.jsx)(Xt,{type:e,path:r,tenantName:a});default:return(()=>{var e;if(!T)return;const{CreateStep:t,PathType:a,PathSubType:s,PathId:i,PathVersion:o}=T,l=[],c=Dv(r,a)?"Domain":null===a||void 0===a?void 0:a.replace(/^EPathType/,"");l.push({name:Uv("field_type"),content:c}),s!==b.EPathSubTypeEmpty&&l.push({name:Uv("field_subtype"),content:null===s||void 0===s?void 0:s.replace(/^EPathSubType/,"")}),l.push({name:Uv("field_id"),content:i}),l.push({name:Uv("field_version"),content:o}),l.push({name:Uv("field_created"),content:(0,pe.r6)(t)});const{PathDescription:u}=S;if(null!==u&&void 0!==u&&u.TableStats){const{DataSize:e,RowCount:t}=u.TableStats;l.push({name:Uv("field_data-size"),content:In(e)},{name:Uv("field_row-count"),content:(0,pe.ZV)(t)})}const m=()=>{var e;const{PathsInside:t,ShardsInside:a,PathsLimit:n,ShardsLimit:r}=null!==(e=null===u||void 0===u?void 0:u.DomainDescription)&&void 0!==e?e:{};let s=(0,pe.ZV)(t),i=(0,pe.ZV)(a);return s&&n&&(s=`${s} / ${(0,pe.ZV)(n)}`),i&&r&&(i=`${i} / ${(0,pe.ZV)(r)}`),[{name:Uv("field_paths"),content:s},{name:Uv("field_shards"),content:i}]},p={[x.EPathTypeInvalid]:void 0,[x.EPathTypeDir]:void 0,[x.EPathTypeTable]:()=>{var e;return[{name:Uv("field_partitions"),content:null===u||void 0===u||null===(e=u.TablePartitions)||void 0===e?void 0:e.length}]},[x.EPathTypeSubDomain]:m,[x.EPathTypeTableIndex]:void 0,[x.EPathTypeExtSubDomain]:m,[x.EPathTypeColumnStore]:()=>{var e,t;return[{name:Uv("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnStoreDescription)||void 0===e||null===(t=e.ColumnShards)||void 0===t?void 0:t.length}]},[x.EPathTypeColumnTable]:()=>{var e,t,a;return[{name:Uv("field_partitions"),content:null===u||void 0===u||null===(e=u.ColumnTableDescription)||void 0===e||null===(t=e.Sharding)||void 0===t||null===(a=t.ColumnShards)||void 0===a?void 0:a.length}]},[x.EPathTypeCdcStream]:()=>{const{Mode:e,Format:t}=(null===u||void 0===u?void 0:u.CdcStreamDescription)||{};return[{name:Uv("field_mode"),content:null===e||void 0===e?void 0:e.replace(/^ECdcStreamMode/,"")},{name:Uv("field_format"),content:null===t||void 0===t?void 0:t.replace(/^ECdcStreamFormat/,"")}]},[x.EPathTypePersQueueGroup]:()=>{var e,t,a;const n=null===u||void 0===u?void 0:u.PersQueueGroup,r=null===n||void 0===n||null===(e=n.PQTabletConfig)||void 0===e||null===(t=e.PartitionConfig)||void 0===t?void 0:t.LifetimeSeconds;return[{name:Uv("field_partitions"),content:null===n||void 0===n||null===(a=n.Partitions)||void 0===a?void 0:a.length},{name:Uv("field_retention"),content:r&&(0,pe.Pt)(r)}]},[x.EPathTypeExternalTable]:()=>{var e,t;const a=(0,ge.Ow)({...j,schema:null===u||void 0===u||null===(e=u.ExternalTableDescription)||void 0===e?void 0:e.DataSourcePath}),{SourceType:n,DataSourcePath:r}=(null===u||void 0===u?void 0:u.ExternalTableDescription)||{},s=(null===r||void 0===r||null===(t=r.match(/([^/]*)\/*$/))||void 0===t?void 0:t[1])||"";return[{name:Uv("field_source-type"),content:n},{name:Uv("field_data-source"),content:r&&(0,d.jsx)("span",{title:r,children:(0,d.jsx)(Kn.K,{title:s||"",url:a})})}]},[x.EPathTypeExternalDataSource]:()=>{var e;return[{name:Uv("field_source-type"),content:null===u||void 0===u||null===(e=u.ExternalDataSourceDescription)||void 0===e?void 0:e.SourceType}]},[x.EPathTypeView]:void 0,[x.EPathTypeReplication]:()=>{var e;const t=null===u||void 0===u||null===(e=u.ReplicationDescription)||void 0===e?void 0:e.State;return t?[{name:Uv("field_state"),content:(0,d.jsx)(pr,{state:t})}]:[]}},h=a&&(null===(e=p[a])||void 0===e?void 0:e.call(p))||[];l.push(...h);const v=l.filter((e=>e.content)).map((e=>({...e,content:(0,d.jsx)("div",{className:Bv("overview-item-content"),children:e.content})})));return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:Bv("overview-title"),children:(0,d.jsx)(Or,{data:u})}),(0,d.jsx)(nv.u,{responsive:!0,children:v.map((e=>(0,d.jsx)(nv.u.Item,{name:e.name,children:e.content},e.name)))})]})})()}},w=()=>{g(Nu.triggerCollapse)},C=()=>{g(Nu.triggerExpand)},P=()=>{g(Nu.clear)},I=Iv(r,a),A=()=>{const a=D(e)&&!_(t);return(0,d.jsxs)(n.Fragment,{children:[a&&fv(m,{setActivePath:p},"m")(r,"preview"),(0,d.jsx)(cn.b,{text:I,view:"flat-secondary",title:Uv("action_copySchemaPath")}),(0,d.jsx)(Iu,{onCollapse:w,onExpand:C,isCollapsed:v.collapsed,initialDirection:"bottom"})]})},R=()=>{const{Status:t,Reason:a}=null!==S&&void 0!==S?S:{};if(e){let t=e.replace("EPathType","");return Dv(r,e)&&(t="domain"),(0,d.jsx)("div",{className:Bv("entity-type"),children:t})}let n;return t&&a&&(n=`${t}: ${a}`),(0,d.jsx)("div",{className:Bv("entity-type",{error:!0}),children:(0,d.jsx)(Ia.B,{content:n,offset:{left:0}})})};return(0,d.jsx)(zv,{children:(0,d.jsxs)("div",{className:Bv(),children:[(0,d.jsx)("div",{className:Bv({hidden:l}),children:(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:K.ED,onSplitStartDragAdditional:P,triggerCollapse:v.triggerCollapse,triggerExpand:v.triggerExpand,minSize:[200,52],collapsedSizes:[100,0],children:[(0,d.jsx)($v,{tenantName:a,path:r}),(0,d.jsxs)("div",{className:Bv("info"),children:[(0,d.jsxs)("div",{className:Bv("sticky-top"),children:[(0,d.jsxs)("div",{className:Bv("info-header"),children:[(0,d.jsxs)("div",{className:Bv("info-title"),children:[R(),(0,d.jsx)("div",{className:Bv("path-name"),children:I})]}),(0,d.jsx)("div",{className:Bv("info-controls"),children:A()})]}),N()]}),(0,d.jsx)("div",{className:Bv("overview-wrapper"),children:E()})]})]})}),(0,d.jsxs)(it.s,{className:Bv("actions"),gap:.5,children:[!l&&(0,d.jsx)(Jv,{}),(0,d.jsx)(Iu,{onCollapse:i,onExpand:o,isCollapsed:l,initialDirection:"left"})]})]})})}const Zv=(0,c.cn)("tenant-page"),Xv=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(K.jX))});function eg(e){var t;const[l]=(0,Z.Nt)(),[c,u]=n.useReducer(Cu(K.jX),void 0,Xv),[{database:m,name:p,schema:g},y]=(0,s.useQueryParams)({database:s.StringParam,name:s.StringParam,schema:s.StringParam});n.useEffect((()=>{p&&!m&&y({database:p,name:void 0},"replaceIn")}),[m,p,y]);const x=null!==m&&void 0!==m?m:p;if(!x)throw new Error("Tenant name is not defined");const b=n.useRef();n.useEffect((()=>{if(b.current!==x){(async()=>{const{registerYQLCompletionItemProvider:e}=await a.e(4024).then(a.bind(a,94024));e(x)})().catch(console.error),b.current=x}}),[x]);const f=(0,Z.YQ)();n.useEffect((()=>{f((0,v.g)("tenant",{tenantName:x}))}),[x,f]);const j=null!==g&&void 0!==g?g:x,{currentData:S,error:T,isLoading:N}=G.useGetOverviewQuery({path:j,database:x},{pollingInterval:l}),{PathType:E,PathSubType:w}=(null===S||void 0===S||null===(t=S.PathDescription)||void 0===t?void 0:t.Self)||{},C=(0,X.Pq)(T),[P,I]=n.useState(!0);P&&!N&&I(!1);const D=j||kr("page.title");return(0,d.jsxs)("div",{className:Zv(),children:[(0,d.jsx)(r.mg,{defaultTitle:`${D} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${D} \u2014 YDB Monitoring`}),(0,d.jsx)(o.r,{loading:P,children:(0,d.jsx)(i.A,{error:C?T:void 0,children:(0,d.jsxs)(h,{defaultSizePaneKey:K.jQ,defaultSizes:[25,75],triggerCollapse:c.triggerCollapse,triggerExpand:c.triggerExpand,minSize:[36,200],onSplitStartDragAdditional:()=>{u(Nu.clear)},children:[(0,d.jsx)(Kv,{type:E,subType:w,tenantName:x,path:j,onCollapseSummary:()=>{u(Nu.triggerCollapse)},onExpandSummary:()=>{u(Nu.triggerExpand)},isCollapsed:c.collapsed}),(0,d.jsx)("div",{className:Zv("main"),children:(0,d.jsx)(av,{type:E,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps,tenantName:x,path:j})})]})})})]})}},5890:(e,t,a)=>{var n={"./simpleWorker":51929,"./simpleWorker.js":51929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":51929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":51929};function r(e){return Promise.resolve().then((()=>{if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a(n[e])}))}r.keys=()=>Object.keys(n),r.id=5890,e.exports=r},9204:(e,t,a)=>{var n={"./editorBaseApi":[73848],"./editorBaseApi.js":[73848],"./editorSimpleWorker":[16545],"./editorSimpleWorker.js":[16545],"./editorWorker":[10920],"./editorWorker.js":[10920],"./editorWorkerHost":[80718],"./editorWorkerHost.js":[80718],"./findSectionHeaders":[56691],"./findSectionHeaders.js":[56691],"./getIconClasses":[53068],"./getIconClasses.js":[53068],"./languageFeatureDebounce":[32500],"./languageFeatureDebounce.js":[32500],"./languageFeatures":[56942],"./languageFeatures.js":[56942],"./languageFeaturesService":[76007],"./languageFeaturesService.js":[76007],"./languageService":[17890],"./languageService.js":[17890],"./languagesAssociations":[99908],"./languagesAssociations.js":[99908],"./languagesRegistry":[69259],"./languagesRegistry.js":[69259],"./markerDecorations":[37550],"./markerDecorations.js":[37550],"./markerDecorationsService":[30707],"./markerDecorationsService.js":[30707],"./model":[23750],"./model.js":[23750],"./modelService":[16363],"./modelService.js":[16363],"./resolverService":[18938],"./resolverService.js":[18938],"./semanticTokensDto":[98232],"./semanticTokensDto.js":[98232],"./semanticTokensProviderStyling":[45538],"./semanticTokensProviderStyling.js":[45538],"./semanticTokensStyling":[74243],"./semanticTokensStyling.js":[74243],"./semanticTokensStylingService":[27004],"./semanticTokensStylingService.js":[27004],"./textModelSync/textModelSync.impl":[47443],"./textModelSync/textModelSync.impl.js":[47443],"./textModelSync/textModelSync.protocol":[28868,8868],"./textModelSync/textModelSync.protocol.js":[28868,8868],"./textResourceConfiguration":[90360],"./textResourceConfiguration.js":[90360],"./treeSitterParserService":[44432],"./treeSitterParserService.js":[44432],"./treeViewsDnd":[36723],"./treeViewsDnd.js":[36723],"./treeViewsDndService":[29100],"./treeViewsDndService.js":[29100],"./unicodeTextModelHighlighter":[74855],"./unicodeTextModelHighlighter.js":[74855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[73848],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[73848],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[16545],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[16545],"monaco-editor/esm/vs/editor/common/services/editorWorker":[10920],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[10920],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[80718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[80718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[56691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[56691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[53068],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[53068],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[32500],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[32500],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[56942],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[56942],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[76007],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[76007],"monaco-editor/esm/vs/editor/common/services/languageService":[17890],"monaco-editor/esm/vs/editor/common/services/languageService.js":[17890],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[99908],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[99908],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[69259],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[69259],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[37550],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[37550],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[30707],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[30707],"monaco-editor/esm/vs/editor/common/services/model":[23750],"monaco-editor/esm/vs/editor/common/services/model.js":[23750],"monaco-editor/esm/vs/editor/common/services/modelService":[16363],"monaco-editor/esm/vs/editor/common/services/modelService.js":[16363],"monaco-editor/esm/vs/editor/common/services/resolverService":[18938],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[18938],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[98232],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[98232],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[45538],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[45538],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[74243],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[74243],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[27004],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[27004],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[47443],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[47443],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[28868,8868],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[28868,8868],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[90360],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[90360],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[44432],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[44432],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[36723],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[36723],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[29100],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[29100],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[74855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[74855]};function r(e){if(!a.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],r=t[0];return Promise.all(t.slice(1).map(a.e)).then((()=>a(r)))}r.keys=()=>Object.keys(n),r.id=9204,e.exports=r},66574:()=>{},2748:()=>{},52246:()=>{}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6554.70d080f7.chunk.js b/ydb/core/viewer/monitoring/static/js/6554.6dfab136.chunk.js index e47ac829b0f..558a837984c 100644 --- a/ydb/core/viewer/monitoring/static/js/6554.70d080f7.chunk.js +++ b/ydb/core/viewer/monitoring/static/js/6554.6dfab136.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 6554.70d080f7.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6554],{96554:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>u,language:()=>b});var i,r,o=n(32858),a=Object.defineProperty,d=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,m=(e,t,n,i)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of s(t))p.call(e,r)||r===n||a(e,r,{get:()=>t[r],enumerable:!(i=d(t,r))||i.enumerable});return e},l={};m(l,i=o,"default"),r&&m(r,i,"default");var c=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],u={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${c.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:l.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${c.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:l.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},b={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}}}]);
\ No newline at end of file +/*! For license information please see 6554.6dfab136.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6554],{96554:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>u,language:()=>b});var i,r,o=n(80781),a=Object.defineProperty,d=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,m=(e,t,n,i)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of s(t))p.call(e,r)||r===n||a(e,r,{get:()=>t[r],enumerable:!(i=d(t,r))||i.enumerable});return e},l={};m(l,i=o,"default"),r&&m(r,i,"default");var c=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],u={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${c.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:l.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${c.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:l.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},b={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6554.6dfab136.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/6554.6dfab136.chunk.js.LICENSE.txt new file mode 100644 index 00000000000..34dc0256d74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6554.6dfab136.chunk.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/6554.70d080f7.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/6554.70d080f7.chunk.js.LICENSE.txt deleted file mode 100644 index a62733317c0..00000000000 --- a/ydb/core/viewer/monitoring/static/js/6554.70d080f7.chunk.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/6658.b22172da.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/6658.b22172da.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/6658.b22172da.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/6658.b22172da.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/6708.4a755add.chunk.js b/ydb/core/viewer/monitoring/static/js/6708.4a755add.chunk.js deleted file mode 100644 index 9f384de191b..00000000000 --- a/ydb/core/viewer/monitoring/static/js/6708.4a755add.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6708],{29289:(e,t,n)=>{"use strict";n.d(t,{O:()=>Be});var i=n(59284),s=n(27738),a=n(84476),d=n(99991),l=n(66821);const r=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 6V5a2.5 2.5 0 0 0-5 0v1h5ZM4 5v1a3 3 0 0 0-3 3v3a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3V5a4 4 0 0 0-8 0Zm6.5 2.5H12A1.5 1.5 0 0 1 13.5 9v3a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 12V9A1.5 1.5 0 0 1 4 7.5h6.5Zm-1.75 2a.75.75 0 0 0-1.5 0v2a.75.75 0 0 0 1.5 0v-2Z",clipRule:"evenodd"}));var o=n(53202),c=n(90826),u=n(46734),m=n(98089),p=n(32084),I=n(51301),v=n(92609),b=n(19884),g=n(93628),f=n(27145),y=n(87184),h=n(69220);const S=(0,h.om)("list-container-view"),x=i.forwardRef((function({as:e="div",role:t="listbox",children:n,id:s,className:a,fixedHeight:d,extraProps:l,qa:r,style:o},c){return i.createElement(y.s,Object.assign({qa:r,as:e,direction:"column",ref:c,grow:!0,tabIndex:-1,id:s,role:t,style:o,className:S({"fixed-height":d},a)},l),n)})),B=e=>null!==e&&"object"===typeof e&&"data"in e,E=(0,h.om)("list-recursive-renderer");function C(e){var t,{id:n,itemSchema:s,list:a}=e,d=(0,f.Tt)(e,["id","itemSchema","list"]);const l=d.children(n,a.structure.idToFlattenIndex[n]);if(B(s)&&s.children){const e=!a.state.expandedById||!(n in a.state.expandedById)||a.state.expandedById[n];return i.createElement("ul",{style:d.style,className:E(null,d.className),role:"group"},l,e&&Boolean(null===(t=a.structure.groupsState[n])||void 0===t?void 0:t.childrenIds)&&s.children.map(((e,t)=>i.createElement(C,Object.assign({list:a,id:a.structure.groupsState[n].childrenIds[t],itemSchema:e,key:t},d)))))}return l}function O(e){var{containerRef:t,renderItem:n,list:s}=e,a=(0,f.Tt)(e,["containerRef","renderItem","list"]);return i.createElement(x,Object.assign({ref:t},a),s.structure.items.map(((e,t)=>i.createElement(C,{key:t,itemSchema:e,id:s.structure.rootIds[t],list:s},n))))}const w=({list:e,multiple:t})=>({id:n})=>{e.state.disabledById[n]||(e.state.setActiveItemId(n),e.state.expandedById&&n in e.state.expandedById&&e.state.setExpanded?e.state.setExpanded((e=>Object.assign(Object.assign({},e),{[n]:!e[n]}))):e.state.setSelected((e=>Object.assign(Object.assign({},t?e:{}),{[n]:!t||!e[n]}))))};var j=n(359);const k="data-list-item",N={s:[22,44],m:[26,44],l:[34,52],xl:[44,62]},R=({containerRef:e,onItemClick:t,enabled:n,list:s})=>{const a=i.useCallback(((t,n=!0)=>{var i,a;"number"===typeof t&&s.structure.visibleFlattenIds[t]&&(n&&((e,t)=>{var n;if(document){const i=(t||document).querySelector(`[${k}="${e}"]`);i&&(null===(n=i.scrollIntoView)||void 0===n||n.call(i,{block:"nearest"}))}})(s.structure.visibleFlattenIds[t],null===e||void 0===e?void 0:e.current),null===(a=(i=s.state).setActiveItemId)||void 0===a||a.call(i,s.structure.visibleFlattenIds[t]))}),[s.structure.visibleFlattenIds,s.state,e]),d=i.useCallback(((e,t,n=0)=>{e.preventDefault();const i="string"===typeof s.state.activeItemId?s.structure.visibleFlattenIds.findIndex((e=>e===s.state.activeItemId)):-1,d=(({list:e,index:t,step:n,disabledItemsById:i={}})=>{const s=e.length;let a=(t+s)%s;for(let d=0;d<s;d+=1){const t=e[a];if(t&&!i[t])return a;a=(a+s+n)%s}})({list:s.structure.visibleFlattenIds,index:(i>-1?i:n)+t,step:Math.sign(t),disabledItemsById:s.state.disabledById});a(d)}),[a,s.state.activeItemId,s.state.disabledById,s.structure.visibleFlattenIds]);i.useLayoutEffect((()=>{const i=null===e||void 0===e?void 0:e.current;if(n||!i)return;const a=e=>{switch(e.key){case j.D.ARROW_DOWN:d(e,1,-1);break;case j.D.ARROW_UP:d(e,-1);break;case j.D.SPACEBAR:case j.D.ENTER:s.state.activeItemId&&!s.state.disabledById[s.state.activeItemId]&&(e.preventDefault(),null===t||void 0===t||t({id:s.state.activeItemId}))}};return i.addEventListener("keydown",a),()=>{i.removeEventListener("keydown",a)}}),[e,n,d,s.state.activeItemId,s.state.disabledById,t])};var D=n(46423),F=n(25569),P=n(13066);const T=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.03 10.53a.75.75 0 0 1-1.06 0L8 6.56l-3.97 3.97a.75.75 0 1 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06Z",clipRule:"evenodd"}));var A=n(63365);const $=(0,h.om)("list-item-view"),M=e=>"object"===typeof e&&null!==e&&"title"in e,L=e=>{var{children:t,indentation:n=1,className:s}=e,a=(0,f.Tt)(e,["children","indentation","className"]);return i.createElement(y.s,Object.assign({width:16*n,className:$("slot",s)},a),t)},q=({startSlot:e,subtitle:t,endSlot:n,disabled:s,hasSelectionIcon:a,isGroup:l,indentation:r,expanded:o,selected:c,title:u})=>i.createElement(y.s,{alignItems:"center",justifyContent:"space-between",gap:"4",className:$("content")},i.createElement(y.s,{gap:"2",alignItems:"center",grow:!0},a&&i.createElement(L,null,c?i.createElement(d.I,{data:F.A,size:16,className:(0,A.$)({color:"info"})}):null),(e=>e&&e>=1?i.createElement(L,{indentation:Math.floor(e)}):null)(r),l?i.createElement(d.I,{className:$("icon",(0,A.$)({color:s?"hint":void 0})),data:o?P.A:T,size:16}):null,e,i.createElement("div",{className:$("main-content")},"string"===typeof u?i.createElement(m.E,{ellipsis:!0,color:s?"hint":void 0,variant:l?"subheader-1":void 0},u):u,"string"===typeof t?i.createElement(m.E,{ellipsis:!0,color:s?"hint":"secondary"},t):t)),n),_=i.forwardRef((function(e,t){var{id:n,as:s,size:a="m",active:d,selected:l,disabled:r,selectionViewType:o="multiple",activeOnHover:c,className:u,height:m,dragging:p,style:I,content:v,role:b="option",onClick:g}=e,y=(0,f.Tt)(e,["id","as","size","active","selected","disabled","selectionViewType","activeOnHover","className","height","dragging","style","content","role","onClick"]);const h=s||"li",S=r?void 0:g,x="boolean"===typeof c?c:Boolean(S),B=Object.assign({minHeight:`var(--g-list-item-height, ${null!==m&&void 0!==m?m:N[a][Number(Boolean(!!M(v)&&(null===v||void 0===v?void 0:v.subtitle)))]}px)`},I);return i.createElement(h,Object.assign({[k]:n,role:b,"aria-selected":l,onClick:S,className:$({active:p||d,selected:l&&"single"===o,activeOnHover:x,radius:a,size:a,dragging:p,clickable:Boolean(S)},(0,D.Y)({px:2},u)),style:B,ref:t},y),M(v)?i.createElement(q,Object.assign({},v,{hasSelectionIcon:"multiple"===o,selected:l,disabled:r})):v)})),z=(0,h.om)("tree-list"),V=({qa:e,id:t,size:n="m",className:s,list:a,multiple:d,containerRef:l,renderItem:r,renderContainer:o=O,onItemClick:u,mapItemDataToContentProps:m})=>{const p=(0,c.u)(),I=null!==t&&void 0!==t?t:p,v=i.useRef(null),b=null!==l&&void 0!==l?l:v,g=i.useMemo((()=>{if(null===u)return;return(e,t)=>{const n={id:e.id,list:a};if(u)null===u||void 0===u||u(n,t);else{w({list:a,multiple:d})(n,t)}}}),[u,a,d]);R({containerRef:b,onItemClick:g,list:a});return o({qa:e,id:`list-${I}`,size:n,containerRef:b,className:z(null,s),list:a,renderItem:(t,s,l)=>{const o=(({qa:e,list:t,onItemClick:n,mapItemDataToContentProps:i,size:s="m",multiple:a=!1,id:d})=>{var l,r;const o=Object.assign(Object.assign(Object.assign({},t.structure.itemsState[d]),t.structure.groupsState[d]),{isLastItem:d===t.structure.visibleFlattenIds[t.structure.visibleFlattenIds.length-1]}),c={id:d,size:s,selected:Boolean(t.state.selectedById[d]),disabled:Boolean(null===(l=t.state.disabledById)||void 0===l?void 0:l[d]),active:d===t.state.activeItemId,onClick:n?e=>n({id:d},e):void 0,selectionViewType:Boolean(a)&&!o.childrenIds?"multiple":"single",content:Object.assign({expanded:null===(r=t.state.expandedById)||void 0===r?void 0:r[d],indentation:o.indentation,isGroup:t.state.expandedById&&d in t.state.expandedById},i(t.structure.itemsById[d]))};return e&&(c.qa=((e,t)=>`${e}-${t}`)(e,d)),{data:t.structure.itemsById[d],props:c,context:o}})({qa:e,id:t,size:n,multiple:d,mapItemDataToContentProps:m,onItemClick:g,list:a});return r?r({id:t,data:o.data,props:o.props,context:o.context,index:s,renderContainerProps:l,list:a}):i.createElement(_,Object.assign({},o.props,l))}})};var U=n(63246),W=n(34379),H=n(46819);const J=({item:e,groupedId:t,getItemId:n})=>{let i=t;return"function"===typeof n?i=n(B(e)?e.data:e):e&&"object"===typeof e&&"id"in e&&e.id&&(i=e.id),i},Z=(e,t)=>t?`${t}-${e}`:`${e}`;function G({items:e,expandedById:t,getItemId:n}){const s=i.useMemo((()=>function({items:e,getItemId:t,expandedById:n={}}){const i=[],s=(e,a,d,l)=>{const r=Z(d,l),o=J({groupedId:r,item:a,getItemId:t});return l||i.push(o),e.push(o),B(a)&&a.children&&(o in n&&!n[o]||e.push(...a.children.reduce(((e,t,n)=>s(e,t,n,o)),[]))),e},a=e.reduce(((e,t,n)=>s(e,t,n)),[]),d={};for(const[l,r]of a.entries())d[r]=l;return{rootIds:i,visibleFlattenIds:a,idToFlattenIndex:d}}({items:e,expandedById:t,getItemId:n})),[e,t,n]);return s}function Y({items:e,defaultExpandedState:t="expanded",getItemId:n}){const i={itemsById:{},groupsState:{},itemsState:{},initialState:{disabledById:{},selectedById:{},expandedById:{}}},s=({item:e,index:a,parentGroupedId:d,parentId:l})=>{const r=Z(a,d),o=J({groupedId:r,item:e,getItemId:n});l&&i.groupsState[l].childrenIds.push(o),i.itemsById[o]=e.data,i.itemsState[o]||(i.itemsState[o]={indentation:0}),"undefined"!==typeof l&&(i.itemsState[o].parentId=l),"undefined"!==typeof e.selected&&(i.initialState.selectedById[o]=e.selected),"undefined"!==typeof e.disabled&&(i.initialState.disabledById[o]=e.disabled),r&&(i.itemsState[o].indentation=(e=>e.split("-"))(r).length-1),e.children&&(i.groupsState[o]={childrenIds:[]},i.initialState.expandedById&&("undefined"===typeof e.expanded?i.initialState.expandedById[o]="expanded"===t:i.initialState.expandedById[o]=e.expanded),e.children.forEach(((e,t)=>{s({item:e,index:t,parentGroupedId:r,parentId:o})})))};return e.forEach(((e,t)=>B(e)?s({item:e,index:t}):(({item:e,index:t})=>{const s=J({groupedId:String(t),item:e,getItemId:n});i.itemsById[s]=e,i.itemsState[s]||(i.itemsState[s]={indentation:0}),e&&"object"===typeof e&&("selected"in e&&"boolean"===typeof e.selected&&(i.initialState.selectedById[s]=e.selected),"disabled"in e&&"boolean"===typeof e.disabled&&(i.initialState.disabledById[s]=e.disabled))})({item:e,index:t}))),i}const K=({items:e,getItemId:t,defaultExpandedState:n="expanded",withExpandedState:s=!0,initialState:a,controlledState:d})=>{const{itemsById:l,groupsState:r,itemsState:o,initialState:c}=function({items:e,getItemId:t,defaultExpandedState:n}){const s=i.useRef(t).current;return i.useMemo((()=>Y({items:e,getItemId:s,defaultExpandedState:n})),[s,n,e])}({items:e,getItemId:t,defaultExpandedState:n}),u=(({initialState:e,withExpandedState:t})=>{const n=i.useRef(e),s=n.current!==e;n.current=e;const[a,d]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.disabledById)&&void 0!==t?t:{}})),[l,r]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.selectedById)&&void 0!==t?t:{}})),[o,c]=i.useState((()=>{var t;return null!==(t=null===e||void 0===e?void 0:e.expandedById)&&void 0!==t?t:{}})),[u,m]=i.useState((()=>null===e||void 0===e?void 0:e.activeItemId));s&&((null===e||void 0===e?void 0:e.disabledById)&&d((t=>Object.assign(Object.assign({},e.disabledById),t))),(null===e||void 0===e?void 0:e.selectedById)&&r((t=>Object.assign(Object.assign({},e.selectedById),t))),(null===e||void 0===e?void 0:e.expandedById)&&c((t=>Object.assign(Object.assign({},e.expandedById),t))),m((t=>null!==t&&void 0!==t?t:null===e||void 0===e?void 0:e.activeItemId)));const p={disabledById:a,selectedById:l,activeItemId:u,setDisabled:d,setSelected:r,setActiveItemId:m};return t&&(p.expandedById=o,p.setExpanded=c),p})({initialState:i.useMemo((()=>({expandedById:Object.assign(Object.assign({},c.expandedById),null===a||void 0===a?void 0:a.expandedById),selectedById:Object.assign(Object.assign({},c.selectedById),null===a||void 0===a?void 0:a.selectedById),disabledById:Object.assign(Object.assign({},c.disabledById),null===a||void 0===a?void 0:a.disabledById),activeItemId:null===a||void 0===a?void 0:a.activeItemId})),[c.disabledById,c.expandedById,c.selectedById,null===a||void 0===a?void 0:a.activeItemId,null===a||void 0===a?void 0:a.disabledById,null===a||void 0===a?void 0:a.expandedById,null===a||void 0===a?void 0:a.selectedById]),withExpandedState:s}),m=i.useMemo((()=>d?Object.assign(Object.assign({},u),d):u),[d,u]),{visibleFlattenIds:p,idToFlattenIndex:I,rootIds:v}=G({items:e,expandedById:m.expandedById,getItemId:t});return{state:m,structure:{rootIds:v,items:e,visibleFlattenIds:p,idToFlattenIndex:I,itemsById:l,groupsState:r,itemsState:o}}},Q=({defaultValue:e=[],value:t,onUpdate:n})=>{const[s,a]=i.useState(e),d=null!==t&&void 0!==t?t:s,l=!t;return i.useMemo((()=>{const e=d.reduce(((e,t)=>(e[t]=!0,e)),{});return{value:d,selectedById:e,setSelected:t=>{const i=(e=>Object.entries(e).reduce(((e,[t,n])=>(n&&e.push(t),e)),[]))("function"===typeof t?t(e):t);l?a(i):null===n||void 0===n||n(i)},setInnerValue:l?a:void 0}}),[n,l,d])},X=(0,h.om)("tree-select"),ee=e=>i.createElement(_,Object.assign({},e.props,e.renderContainerProps)),te=i.forwardRef((function({id:e,qa:t,title:n,placement:s,slotBeforeListBody:a,slotAfterListBody:d,size:l="m",defaultOpen:r,width:o,containerRef:u,className:m,containerClassName:f,popupClassName:y,open:h,multiple:S,popupWidth:x,popupDisablePortal:B,items:E,value:C,defaultValue:O,placeholder:j,disabled:k=!1,withExpandedState:N=!0,defaultExpandedState:R="expanded",hasClear:D,errorMessage:F,errorPlacement:P,validationState:T,onClose:A,onOpenChange:$,onUpdate:M,renderControl:L,renderItem:q=ee,renderContainer:_,mapItemDataToContentProps:z,onFocus:J,onBlur:Z,getItemId:G,onItemClick:Y},te){const ne=(0,H.I)(),ie=(0,c.u)(),se=null!==e&&void 0!==e?e:ie,ae=`tree-select-popup-${se}`,de=i.useRef(null),le=i.useRef(null),re=i.useRef(null),oe=null!==u&&void 0!==u?u:re,{errorMessage:ce,errorPlacement:ue,validationState:me}=(0,W.Av)({errorMessage:F,errorPlacement:P||"outside",validationState:T}),pe=(0,c.u)(),Ie="invalid"===me,ve=Ie&&Boolean(ce)&&"outside"===ue,be=Ie&&Boolean(ce)&&"inside"===ue,ge=(0,p.N)(te,le),{toggleOpen:fe,open:ye}=(0,v.F)({defaultOpen:r,onClose:A,onOpenChange:$,open:h}),{value:he,selectedById:Se,setSelected:xe}=Q({value:C,defaultValue:O,onUpdate:M}),Be=K({controlledState:{selectedById:Se,setSelected:xe},items:E,getItemId:G,defaultExpandedState:R,withExpandedState:N}),Ee=i.useMemo((()=>{if(null===Y)return;return(e,t)=>{const n={id:e.id,list:Be};if(Y)null===Y||void 0===Y||Y(n,t);else{w({list:Be,multiple:S})(n,t);const i=Be.state.expandedById&&e.id in Be.state.expandedById;S||i||fe(!1)}}}),[Y,Be,S,fe]);i.useLayoutEffect((()=>{var e;return ye&&(null===(e=oe.current)||void 0===e||e.focus({preventScroll:!0})),()=>Be.state.setActiveItemId(void 0)}),[ye]);const Ce=i.useCallback((()=>fe(!1)),[fe]),{focusWithinProps:Oe}=(0,I.R)({onFocusWithin:J,onBlurWithin:i.useCallback((e=>{null===Z||void 0===Z||Z(e),Ce()}),[Ce,Z])}),we={list:Be,open:ye,placeholder:j,toggleOpen:fe,clearValue:()=>Be.state.setSelected({}),ref:ge,size:l,value:he,disabled:k,id:se,activeItemId:Be.state.activeItemId,title:n,errorMessage:be?ce:void 0,errorPlacement:ue,validationState:me,hasClear:D,isErrorVisible:Ie},je=L?L(we):i.createElement(b.Y,Object.assign({},we,{selectedOptionsContent:i.Children.toArray(he.map((e=>e in Be.structure.itemsById?z(Be.structure.itemsById[e]).title:""))).join(", "),view:"normal",pin:"round-round",popupId:ae,selectId:se})),ke=Object.assign({},"max"===o&&{width:o}),Ne={};return"number"===typeof o&&(Ne.width=o),i.createElement("div",Object.assign({ref:de},Oe,{className:X(ke,m),style:Ne}),je,i.createElement(g.t,{ref:de,className:X("popup",{size:l},y),controlRef:le,width:x,placement:s,open:ye,handleClose:Ce,disablePortal:B,mobile:ne,id:ae},a,i.createElement(V,{list:Be,size:l,className:X("list",f),qa:t,multiple:S,id:`list-${se}`,containerRef:oe,onItemClick:Ee,renderContainer:_,mapItemDataToContentProps:z,renderItem:null!==q&&void 0!==q?q:ee}),d),i.createElement(U.o,{errorMessage:ve?ce:null,errorMessageId:pe}))}));var ne=n(28664),ie=n(43781),se=n.n(ie);function ae(e,t){return!t||"object"!==typeof t||!("title"in t)||"string"!==typeof t.title||t.title.toLowerCase().includes((e||"").toLowerCase())}function de({items:e,initialFilterValue:t="",filterItem:n,onFilterChange:s,filterItems:a,debounceTimeout:d=300}){const l=i.useRef(null),[r,o]=i.useState(t),[c,u]=i.useState(e),[m,p]=i.useState(e),I=i.useCallback(((e,t)=>{if(a)return()=>a(e,t);if(e){const i=n||ae;return()=>function(e,t){const n=(e,i)=>{if(B(i)&&i.children){const s=i.children.reduce(n,[]);s.length?e.push(Object.assign(Object.assign({},i),{data:i.data,children:s})):t(i.data)&&e.push(Object.assign(Object.assign({},i),{data:i.data,children:[]}))}else if(B(i)&&t(i.data)){const{children:t}=i,n=(0,f.Tt)(i,["children"]);e.push(n)}else!B(i)&&t(i)&&e.push(i);return e};return e.reduce(n,[])}(t,(t=>i(e,t)))}return()=>t}),[n,a]);e!==c&&(p(I(r,e)),u(e));const v=i.useCallback(se()((t=>p(I(t,e))),d),[p,I,e,d]),{onFilterUpdate:b,reset:g}=i.useMemo((()=>({reset:()=>{o(t),null===s||void 0===s||s(t),v(t)},onFilterUpdate:e=>{o(e),null===s||void 0===s||s(e),v(e)}})),[v,t,s]);return{filterRef:l,filter:r,reset:g,items:m,onFilterUpdate:b}}var le=n(72837);const re=JSON.parse('{"button_apply":"Apply","button_reset":"Reset","button_switcher":"Columns"}'),oe=JSON.parse('{"button_apply":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c","button_reset":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c","button_switcher":"\u041a\u043e\u043b\u043e\u043d\u043a\u0438"}'),ce=(0,le.N)({en:re,ru:oe},"TableColumnSetupInner"),ue=(0,h.om)("inner-table-column-setup"),me=ue("controls"),pe=ue("filter-input"),Ie=ue("empty-placeholder"),ve={isDragDisabled:!0},be=e=>({title:e.title}),ge=(e,t)=>"string"!==typeof t.title||t.title.toLowerCase().includes(e.trim().toLowerCase()),fe=e=>{const{renderSwitcher:t,popupWidth:n,popupPlacement:p,items:I,onUpdate:v,sortable:b,renderControls:g,className:f,defaultItems:h=I,showResetButton:S,filterable:B,filterPlaceholder:E,filterEmptyMessage:C,filterSettings:O=ge}=e,[w,j]=i.useState(!1),[k,N]=i.useState(b),[R,D]=i.useState(b);b!==R&&(D(b),N(b));const[F,P]=i.useState(I),[T,A]=i.useState(I);I!==T&&(A(I),P(I));const $=de({items:F,filterItem:O,debounceTimeout:0}),M=()=>{const e=F.map((({id:e,isSelected:t})=>({id:e,isSelected:t})));v(e),U(!1)},L=()=>i.createElement(a.$,{view:"action",width:"max",onClick:M},ce("button_apply")),q="function"===typeof S?S(F):S,z=(({onDragEnd:e,renderControls:t})=>{const n=(0,c.u)();return({renderItem:s,list:a,containerRef:d,id:l,className:r})=>{const{stickyStartItemIdList:c,sortableItemIdList:u,stickyEndItemIdList:m}=((e,t)=>{let n=0;for(;n!==t.length;n++){const i=e[t[n]];if("left"!==(null===i||void 0===i?void 0:i.sticky)&&"start"!==(null===i||void 0===i?void 0:i.sticky))break}let i=t.length;for(;0!==i;i--){const n=e[t[i-1]];if("right"!==(null===n||void 0===n?void 0:n.sticky)&&"end"!==(null===n||void 0===n?void 0:n.sticky))break}return{stickyStartItemIdList:t.slice(0,n),sortableItemIdList:t.slice(n,i),stickyEndItemIdList:t.slice(i)}})(a.structure.itemsById,a.structure.visibleFlattenIds),p=c.map(((e,t)=>s(e,t,ve))),I=u.map(((e,t)=>s(e,t+c.length))),v=m.map(((e,t)=>s(e,p.length+I.length+t,ve)));return i.createElement(i.Fragment,null,i.createElement(x,{ref:d,id:l,className:r},p,i.createElement(o.JY,{onDragEnd:e},i.createElement(o.gL,{droppableId:n,renderClone:(e,t,n)=>{const i={provided:e,snapshot:t};return s(a.structure.visibleFlattenIds[n.source.index],n.source.index,i)}},(e=>i.createElement("div",Object.assign({},e.droppableProps,{ref:e.innerRef}),I,e.placeholder)))),v),i.createElement("div",{className:me},t()))}})({onDragEnd:({destination:e,source:t})=>{void 0!==(null===e||void 0===e?void 0:e.index)&&(null===e||void 0===e?void 0:e.index)!==t.index&&P((n=>((e,t,n)=>{const i=[...e],[s]=i.splice(t,1);return i.splice(n,0,s),i})(n,t.index,e.index)))},renderControls:()=>g?g({DefaultApplyButton:L,onApply:M}):i.createElement(y.s,{gapRow:1,direction:"column",className:me},q&&i.createElement(a.$,{onClick:()=>{P(h)},width:"max"},ce("button_reset")),i.createElement(L,null))}),V=(e=>({data:t,props:n,index:s,renderContainerProps:a})=>{const c=!1===e||!0===(null===a||void 0===a?void 0:a.isDragDisabled),u=c?void 0:i.createElement(d.I,{data:l.A,size:16}),m=t.isRequired?i.createElement(d.I,{data:r}):void 0,p=!t.isRequired&&n.selected,I=Object.assign(Object.assign({},n),{selected:p,selectionViewType:t.isRequired?"single":"multiple",content:Object.assign(Object.assign({},n.content),{startSlot:m,endSlot:u})});if(c)return i.createElement(_,Object.assign({},I,{key:I.id}));const v=(e,t)=>i.createElement(_,Object.assign({},I,e.draggableProps,e.dragHandleProps,{ref:e.innerRef,dragging:t.isDragging}));return(null===a||void 0===a?void 0:a.provided)&&a.snapshot?v(a.provided,a.snapshot):i.createElement(o.sx,{draggableId:n.id,index:s,key:`item-key-${n.id}`,isDragDisabled:c},v)})(k),U=e=>{j(e),!1===e&&(P(I),N(b),$.reset())},W=i.useMemo((()=>(e=>{const t=[];return e.forEach((({id:e,isSelected:n})=>{n&&t.push(e)})),t})(F)),[F]),H=(J=C,()=>i.createElement(m.E,{className:Ie},J));var J;const Z=B?i.createElement(ne.k,{size:"m",view:"clear",placeholder:E,value:$.filter,className:pe,onUpdate:e=>{$.onFilterUpdate(e),N(!e.length)},hasClear:!0}):null,G=$.filter&&!$.items.length?H:z;return i.createElement(te,{className:ue(null,f),mapItemDataToContentProps:be,multiple:!0,size:"l",open:w,value:W,items:$.filter?$.items:F,onUpdate:e=>{P((t=>t.map((t=>Object.assign(Object.assign({},t),{isSelected:t.isRequired||e.includes(t.id)})))))},popupWidth:n,onOpenChange:U,placement:p,slotBeforeListBody:Z,renderContainer:G,renderControl:({toggleOpen:e})=>{const n=(0,u.h)(e);return(null===t||void 0===t?void 0:t({onClick:e,onKeyDown:n}))||i.createElement(a.$,{onClick:e,extraProps:{onKeyDown:n}},i.createElement(d.I,{data:s.A}),ce("button_switcher"))},renderItem:V})},ye=JSON.parse('{"button_switcher":"Columns"}'),he=JSON.parse('{"button_switcher":"\u041a\u043e\u043b\u043e\u043d\u043a\u0438"}'),Se=(0,le.N)({en:ye,ru:he},"TableColumnSetup"),xe=(0,h.om)("table-column-setup"),Be=e=>{const{switcher:t,renderSwitcher:n,disabled:l,popupWidth:r,popupPlacement:o,className:c,items:u,sortable:m=!0,showStatus:p,onUpdate:I}=e,v=u.map((({id:e,title:t,required:n,selected:i,sticky:s})=>({id:e,title:t,isRequired:n,isSelected:i,sticky:s})));return i.createElement(fe,{items:v,onUpdate:e=>{I(e.map((({id:e,isSelected:t})=>{const n=u.find((t=>t.id===e));return{id:e,selected:t,title:null===n||void 0===n?void 0:n.title,required:null===n||void 0===n?void 0:n.required}})))},popupPlacement:o,popupWidth:r,renderSwitcher:e=>(null===n||void 0===n?void 0:n(e))||t||i.createElement(a.$,{disabled:l,onClick:e.onClick},i.createElement(d.I,{data:s.A}),Se("button_switcher"),(()=>{if(!p)return null;const e=`${u.reduce(((e,t)=>t.selected?e+1:e),0)}/${u.length}`;return i.createElement("span",{className:xe("status")},e)})()),sortable:m,className:xe(null,c)})}},38501:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var i=n(46878);function s(){return(0,i.w)().theme}},23536:(e,t,n)=>{var i=n(68814),s=/[\\^$.*+?()[\]{}|]/g,a=RegExp(s.source);e.exports=function(e){return(e=i(e))&&a.test(e)?e.replace(s,"\\$&"):e}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6820.73ff230e.chunk.js b/ydb/core/viewer/monitoring/static/js/6820.73ff230e.chunk.js new file mode 100644 index 00000000000..786b18bca54 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6820.73ff230e.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 6820.73ff230e.chunk.js.LICENSE.txt */ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6820],{71383:(e,t)=>{"use strict";t.q=function(e){var t,a=[],o=String(e||r),l=o.indexOf(n),c=0,i=!1;for(;!i;)-1===l&&(l=o.length,i=!0),!(t=o.slice(c,l).trim())&&i||a.push(t),c=l+1,l=o.indexOf(n,c);return a};var n=",",a=" ",r=""},91448:e=>{"use strict";e.exports=function(e,n){var a,r,o,l=e||"",c=n||"div",i={},s=0;for(;s<l.length;)t.lastIndex=s,o=t.exec(l),(a=l.slice(s,o?o.index:l.length))&&(r?"#"===r?i.id=a:i.className?i.className.push(a):i.className=[a]:c=a,s+=a.length),o&&(r=o[0],s++);return{type:"element",tagName:c,properties:i,children:[]}};var t=/[#.]/g},27376:(e,t,n)=>{"use strict";var a=n(47556),r=n(72996),o=n(91448),l=n(82140).q,c=n(71383).q;e.exports=function(e,t,n){var r=n?function(e){var t,n=e.length,a=-1,r={};for(;++a<n;)r[(t=e[a]).toLowerCase()]=t;return r}(n):null;return function(e,n){var a,l=o(e,t),c=Array.prototype.slice.call(arguments,2),u=l.tagName.toLowerCase();l.tagName=r&&i.call(r,u)?r[u]:u,n&&function(e,t){return"string"===typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!==typeof n)return!1;if("object"===typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}(n,l)&&(c.unshift(n),n=null);if(n)for(a in n)d(l.properties,a,n[a]);s(l.children,c),"template"===l.tagName&&(l.content={type:"root",children:l.children},l.children=[]);return l};function d(t,n,r){var o,i,s;null!==r&&void 0!==r&&r===r&&(i=(o=a(e,n)).property,"string"===typeof(s=r)&&(o.spaceSeparated?s=l(s):o.commaSeparated?s=c(s):o.commaOrSpaceSeparated&&(s=l(c(s).join(" ")))),"style"===i&&"string"!==typeof r&&(s=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(s)),"className"===i&&t.className&&(s=t.className.concat(s)),t[i]=function(e,t,n){var a,r,o;if("object"!==typeof n||!("length"in n))return u(e,t,n);r=n.length,a=-1,o=[];for(;++a<r;)o[a]=u(e,t,n[a]);return o}(o,i,s))}};var i={}.hasOwnProperty;function s(e,t){var n,a;if("string"!==typeof t&&"number"!==typeof t)if("object"===typeof t&&"length"in t)for(n=-1,a=t.length;++n<a;)s(e,t[n]);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function u(e,t,n){var a=n;return e.number||e.positiveNumber?isNaN(a)||""===a||(a=Number(a)):(e.boolean||e.overloadedBoolean)&&("string"!==typeof a||""!==a&&r(n)!==r(t)||(a=!0)),a}},48893:(e,t,n)=>{"use strict";var a=n(70730),r=n(27376)(a,"div");r.displayName="html",e.exports=r},55942:(e,t,n)=>{"use strict";e.exports=n(48893)},73934:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},494:(e,t,n)=>{"use strict";var a=n(73934),r=n(94667);e.exports=function(e){return a(e)||r(e)}},94667:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},83991:e=>{"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},43733:(e,t,n)=>{"use strict";n.d(t,{RE:()=>a,XB:()=>o,to:()=>r});const a="$row|$rows|action|add|all|alter|and|any|as|asc|assume|async|bigserial|serial|smallserial|serial8|serial4|serial2|begin|bernoulli|between|by|case|changefeed|column|columns|commit|compact|create|cross|cube|declare|define|delete|desc|dict|discard|distinct|do|drop|else|empty_action|end|erase|evaluate|exclusion|exists|export|family|flatten|for|from|full|global|group|grouping|having|if|ignore|ilike|import|in|index|inner|insert|into|is|join|key|left|like|limit|list|match|not|null|nulls|offset|on|only|optional|or|order|over|partition|pragma|presort|primary|process|reduce|regexp|repeatable|replace|respect|result|return|right|rlike|rollup|sample|schema|select|semi|set|sets|stream|subquery|sync|table|tablesample|then|truncate|union|intersect|except|update|upsert|use|using|values|view|when|where|window|with|without|xor|callable|resource|tagged|generic|unit|void|emptylist|emptydict|flow|callable|resource|tagged|generic|unit|void|emptylist|emptydict|flow".split("|"),r="bool|date|datetime|decimal|double|float|int16|int32|int64|int8|interval|json|jsondocument|string|timestamp|tzdate|tzdatetime|tztimestamp|uint16|uint32|uint64|uint8|utf8|uuid|yson|text|bytes".split("|"),o="abs|aggregate_by|aggregate_list|aggregate_list_distinct|agg_list|agg_list_distinct|as_table|avg|avg_if|adaptivedistancehistogram|adaptivewardhistogram|adaptiveweighthistogram|addmember|addtimezone|aggregateflatten|aggregatetransforminput|aggregatetransformoutput|aggregationfactory|asatom|asdict|asdictstrict|asenum|aslist|asliststrict|asset|assetstrict|asstruct|astagged|astuple|asvariant|atomcode|bitcast|bit_and|bit_or|bit_xor|bool_and|bool_or|bool_xor|bottom|bottom_by|blockwardhistogram|blockweighthistogram|cast|coalesce|concat|concat_strict|correlation|count|count_if|covariance|covariance_population|covariance_sample|callableargument|callableargumenttype|callableresulttype|callabletype|callabletypecomponents|callabletypehandle|choosemembers|combinemembers|countdistinctestimate|currentauthenticateduser|currentoperationid|currentoperationsharedid|currenttzdate|currenttzdatetime|currenttztimestamp|currentutcdate|currentutcdatetime|currentutctimestamp|dense_rank|datatype|datatypecomponents|datatypehandle|dictaggregate|dictcontains|dictcreate|dicthasitems|dictitems|dictkeytype|dictkeys|dictlength|dictlookup|dictpayloadtype|dictpayloads|dicttype|dicttypecomponents|dicttypehandle|each|each_strict|emptydicttype|emptydicttypehandle|emptylisttype|emptylisttypehandle|endswith|ensure|ensureconvertibleto|ensuretype|enum|evaluateatom|evaluatecode|evaluateexpr|evaluatetype|expandstruct|filter|filter_strict|find|first_value|folder|filecontent|filepath|flattenmembers|forceremovemember|forceremovemembers|forcerenamemembers|forcespreadmembers|formatcode|formattype|frombytes|frompg|funccode|greatest|grouping|gathermembers|generictype|histogram|hll|hoppingwindowpgcast|hyperloglog|if|if_strict|instanceof|json_exists|json_query|json_value|jointablerow|just|lag|last_value|lead|least|len|length|like|likely|like_strict|lambdaargumentscount|lambdacode|lambdaoptionalargumentscount|linearhistogram|listaggregate|listall|listany|listavg|listcode|listcollect|listconcat|listcreate|listdistinct|listenumerate|listextend|listextendstrict|listextract|listfilter|listflatmap|listflatten|listfold|listfold1|listfold1map|listfoldmap|listfromrange|listfromtuple|listhas|listhasitems|listhead|listindexof|listitemtype|listlast|listlength|listmap|listmax|listmin|listnotnull|listreplicate|listreverse|listskip|listskipwhile|listskipwhileinclusive|listsort|listsortasc|listsortdesc|listsum|listtake|listtakewhile|listtakewhileinclusive|listtop|listtopsort|listtopasc|listtopdesc|listtopsortasc|listtopsortdesc|listtotuple|listtype|listtypehandle|listunionall|listuniq|listzip|listzipall|loghistogram|logarithmichistogram|max|max_by|max_of|median|min|min_by|min_of|mode|multi_aggregate_by|nanvl|nvl|nothing|nulltype|nulltypehandle|optionalitemtype|optionaltype|optionaltypehandle|percentile|parsefile|parsetype|parsetypehandle|pgand|pgarray|pgcall|pgconst|pgnot|pgop|pgor|pickle|quotecode|range|range_strict|rank|regexp|regexp_strict|rfind|row_number|random|randomnumber|randomuuid|removemember|removemembers|removetimezone|renamemembers|replacemember|reprcode|resourcetype|resourcetypehandle|resourcetypetag|some|stddev|stddev_population|stddev_sample|substring|sum|sum_if|sessionstart|sessionwindow|setcreate|setdifference|setincludes|setintersection|setisdisjoint|setsymmetricdifference|setunion|spreadmembers|stablepickle|startswith|staticmap|staticzip|streamitemtype|streamtype|streamtypehandle|structmembertype|structmembers|structtypecomponents|structtypehandle|subqueryextend|subqueryextendfor|subquerymerge|subquerymergefor|subqueryunionall|subqueryunionallfor|subqueryunionmerge|subqueryunionmergefor|top|topfreq|top_by|tablename|tablepath|tablerecordindex|tablerow|tablerows|taggedtype|taggedtypecomponents|taggedtypehandle|tobytes|todict|tomultidict|topg|toset|tosorteddict|tosortedmultidict|trymember|tupleelementtype|tupletype|tupletypecomponents|tupletypehandle|typehandle|typekind|typeof|udaf|udf|unittype|unpickle|untag|unwrap|variance|variance_population|variance_sample|variant|varianttype|varianttypehandle|variantunderlyingtype|voidtype|voidtypehandle|way|worldcode|weakfield".split("|")},64016:e=>{"use strict";var t;e.exports=function(e){var n,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(n=t.textContent).charCodeAt(n.length-1)&&"semi"!==e)return!1;return n!==a&&n}},72824:(e,t,n)=>{"use strict";var a=n(82719),r=n(21257),o=n(94667),l=n(83991),c=n(494),i=n(64016);e.exports=function(e,t){var n,o,l={};t||(t={});for(o in p)n=t[o],l[o]=null===n||void 0===n?p[o]:n;(l.position.indent||l.position.start)&&(l.indent=l.position.indent||[],l.position=l.position.start);return function(e,t){var n,o,l,p,R,q,H,B,U,W,V,Z,G,K,J,Y,X,Q,ee,te=t.additional,ne=t.nonTerminated,ae=t.text,re=t.reference,oe=t.warning,le=t.textContext,ce=t.referenceContext,ie=t.warningContext,se=t.position,ue=t.indent||[],de=e.length,pe=0,ge=-1,me=se.column||1,fe=se.line||1,he="",ye=[];"string"===typeof te&&(te=te.charCodeAt(0));Y=be(),B=oe?ve:d,pe--,de++;for(;++pe<de;)if(R===m&&(me=ue[ge]||1),(R=e.charCodeAt(pe))===y){if((H=e.charCodeAt(pe+1))===g||H===m||H===f||H===h||H===y||H===v||H!==H||te&&H===te){he+=u(R),me++;continue}for(Z=G=pe+1,ee=G,H===x?(ee=++Z,(H=e.charCodeAt(ee))===k||H===S?(K=O,ee=++Z):K=N):K=F,n="",V="",p="",J=j[K],ee--;++ee<de&&J(H=e.charCodeAt(ee));)p+=u(H),K===F&&s.call(a,p)&&(n=p,V=a[p]);(l=e.charCodeAt(ee)===b)&&(ee++,(o=K===F&&i(p))&&(n=p,V=o)),Q=1+ee-G,(l||ne)&&(p?K===F?(l&&!V?B(z,1):(n!==p&&(Q=1+(ee=Z+n.length)-Z,l=!1),l||(U=n?P:_,t.attribute?(H=e.charCodeAt(ee))===w?(B(U,Q),V=null):c(H)?V=null:B(U,Q):B(U,Q))),q=V):(l||B(L,Q),D(q=parseInt(p,C[K]))?(B(T,Q),q=u(A)):q in r?(B(M,Q),q=r[q]):(W="",I(q)&&B(M,Q),q>65535&&(W+=u((q-=65536)>>>10|55296),q=56320|1023&q),q=W+u(q))):K!==F&&B(E,Q)),q?(we(),Y=be(),pe=ee-1,me+=ee-G+1,ye.push(q),(X=be()).offset++,re&&re.call(ce,q,{start:Y,end:X},e.slice(G-1,ee)),Y=X):(p=e.slice(G-1,ee),he+=p,me+=p.length,pe=ee-1)}else 10===R&&(fe++,ge++,me=0),R===R?(he+=u(R),me++):we();return ye.join("");function be(){return{line:fe,column:me,offset:pe+(se.offset||0)}}function ve(e,t){var n=be();n.column+=t,n.offset+=t,oe.call(ie,$[e],n,e)}function we(){he&&(ye.push(he),ae&&ae.call(le,he,{start:Y,end:be()}),he="")}}(e,l)};var s={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},g=9,m=10,f=12,h=32,y=38,b=59,v=60,w=61,x=35,k=88,S=120,A=65533,F="named",O="hexadecimal",N="decimal",C={};C[O]=16,C[N]=10;var j={};j[F]=c,j[N]=o,j[O]=l;var P=1,L=2,_=3,E=4,z=5,M=6,T=7,$={};function D(e){return e>=55296&&e<=57343||e>1114111}function I(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}$[P]="Named character references must be terminated by a semicolon",$[L]="Numeric character references must be terminated by a semicolon",$[_]="Named character references cannot be empty",$[E]="Numeric character references cannot be empty",$[z]="Named character references must be known",$[M]="Numeric character references cannot be disallowed",$[T]="Numeric character references cannot be outside the permissible Unicode range"},47556:(e,t,n)=>{"use strict";var a=n(72996),r=n(70302),o=n(58974),l="data";e.exports=function(e,t){var n=a(t),p=t,g=o;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===l&&c.test(t)&&("-"===t.charAt(4)?p=function(e){var t=e.slice(5).replace(i,d);return l+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(i.test(t))return e;t=t.replace(s,u),"-"!==t.charAt(0)&&(t="-"+t);return l+t}(t),g=r);return new g(p,t)};var c=/^data[-\w.:]+$/i,i=/-[a-z]/g,s=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},70730:(e,t,n)=>{"use strict";var a=n(35228),r=n(83851),o=n(91622),l=n(61945),c=n(11666),i=n(59162);e.exports=a([o,r,l,c,i])},11666:(e,t,n)=>{"use strict";var a=n(73125),r=n(71478),o=a.booleanish,l=a.number,c=a.spaceSeparated;e.exports=r({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:l,ariaColIndex:l,ariaColSpan:l,ariaControls:c,ariaCurrent:null,ariaDescribedBy:c,ariaDetails:null,ariaDisabled:o,ariaDropEffect:c,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:c,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:c,ariaLevel:l,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:c,ariaPlaceholder:null,ariaPosInSet:l,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:c,ariaRowCount:l,ariaRowIndex:l,ariaRowSpan:l,ariaSelected:o,ariaSetSize:l,ariaSort:null,ariaValueMax:l,ariaValueMin:l,ariaValueNow:l,ariaValueText:null,role:null}})},59162:(e,t,n)=>{"use strict";var a=n(73125),r=n(71478),o=n(70503),l=a.boolean,c=a.overloadedBoolean,i=a.booleanish,s=a.number,u=a.spaceSeparated,d=a.commaSeparated;e.exports=r({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:l,allowPaymentRequest:l,allowUserMedia:l,alt:null,as:null,async:l,autoCapitalize:null,autoComplete:u,autoFocus:l,autoPlay:l,capture:l,charSet:null,checked:l,cite:null,className:u,cols:s,colSpan:null,content:null,contentEditable:i,controls:l,controlsList:u,coords:s|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l,defer:l,dir:null,dirName:null,disabled:l,download:c,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l,formTarget:null,headers:u,height:s,hidden:l,high:s,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:l,itemId:null,itemProp:u,itemRef:u,itemScope:l,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:l,muted:l,name:null,nonce:null,noModule:l,noValidate:l,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:l,optimum:s,pattern:null,ping:u,placeholder:null,playsInline:l,poster:null,preload:null,readOnly:l,referrerPolicy:null,rel:u,required:l,reversed:l,rows:s,rowSpan:s,sandbox:u,scope:null,scoped:l,seamless:l,selected:l,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:d,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:l,useMap:null,value:i,width:s,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l,declare:l,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:l,noHref:l,noShade:l,noWrap:l,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:l,disableRemotePlayback:l,prefix:null,property:null,results:s,security:null,unselectable:null}})},70503:(e,t,n)=>{"use strict";var a=n(32990);e.exports=function(e,t){return a(e,t.toLowerCase())}},32990:e=>{"use strict";e.exports=function(e,t){return t in e?e[t]:t}},71478:(e,t,n)=>{"use strict";var a=n(72996),r=n(9009),o=n(70302);e.exports=function(e){var t,n,l=e.space,c=e.mustUseProperty||[],i=e.attributes||{},s=e.properties,u=e.transform,d={},p={};for(t in s)n=new o(t,u(i,t),s[t],l),-1!==c.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[a(t)]=t,p[a(n.attribute)]=t;return new r(d,p,l)}},70302:(e,t,n)=>{"use strict";var a=n(58974),r=n(73125);e.exports=c,c.prototype=new a,c.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],l=o.length;function c(e,t,n,c){var s,u=-1;for(i(this,"space",c),a.call(this,e,t);++u<l;)i(this,s=o[u],(n&r[s])===r[s])}function i(e,t,n){n&&(e[t]=n)}},58974:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},35228:(e,t,n)=>{"use strict";var a=n(31630),r=n(9009);e.exports=function(e){var t,n,o=e.length,l=[],c=[],i=-1;for(;++i<o;)t=e[i],l.push(t.property),c.push(t.normal),n=t.space;return new r(a.apply(null,l),a.apply(null,c),n)}},9009:e=>{"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},73125:(e,t)=>{"use strict";var n=0;function a(){return Math.pow(2,++n)}t.boolean=a(),t.booleanish=a(),t.overloadedBoolean=a(),t.number=a(),t.spaceSeparated=a(),t.commaSeparated=a(),t.commaOrSpaceSeparated=a()},83851:(e,t,n)=>{"use strict";var a=n(71478);e.exports=a({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},91622:(e,t,n)=>{"use strict";var a=n(71478);e.exports=a({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},61945:(e,t,n)=>{"use strict";var a=n(71478),r=n(70503);e.exports=a({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:r,properties:{xmlns:null,xmlnsXLink:null}})},72996:e=>{"use strict";e.exports=function(e){return e.toLowerCase()}},96298:(e,t,n)=>{"use strict";n.d(t,{A:()=>z});var a=n(98587);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function i(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(59284),u=n(58168);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g={};function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t=e.join(".");return g[t]||(g[t]=function(e){var t=e.length;return 0===t||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}(e)),g[t]}(e.filter((function(e){return"token"!==e}))).reduce((function(e,t){return p(p({},e),n[t])}),t)}function f(e){return e.join(" ")}function h(e){var t=e.node,n=e.stylesheet,a=e.style,r=void 0===a?{}:a,o=e.useInlineStyles,l=e.key,c=t.properties,i=t.type,d=t.tagName,g=t.value;if("text"===i)return g;if(d){var y,b=function(e,t){var n=0;return function(a){return n+=1,a.map((function(a,r){return h({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(r)})}))}}(n,o);if(o){var v=Object.keys(n).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),w=c.className&&c.className.includes("token")?["token"]:[],x=c.className&&w.concat(c.className.filter((function(e){return!v.includes(e)})));y=p(p({},c),{},{className:f(x)||void 0,style:m(c.className,Object.assign({},c.style,r),n)})}else y=p(p({},c),{},{className:f(c.className)});var k=b(t.children);return s.createElement(d,(0,u.A)({key:l},y),k)}}var y=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=/\n/g;function x(e){var t=e.codeString,n=e.codeStyle,a=e.containerStyle,r=void 0===a?{float:"left",paddingRight:"10px"}:a,o=e.numberStyle,l=void 0===o?{}:o,c=e.startingLineNumber;return s.createElement("code",{style:Object.assign({},n,r)},function(e){var t=e.lines,n=e.startingLineNumber,a=e.style;return t.map((function(e,t){var r=t+n;return s.createElement("span",{key:"line-".concat(t),className:"react-syntax-highlighter-line-number",style:"function"===typeof a?a(r):a},"".concat(r,"\n"))}))}({lines:t.replace(/\n$/,"").split("\n"),style:l,startingLineNumber:c}))}function k(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function S(e,t,n){var a,r={display:"inline-block",minWidth:(a=n,"".concat(a.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},o="function"===typeof e?e(t):e;return v(v({},r),o)}function A(e){var t=e.children,n=e.lineNumber,a=e.lineNumberStyle,r=e.largestLineNumber,l=e.showInlineLineNumbers,c=e.lineProps,i=void 0===c?{}:c,s=e.className,u=void 0===s?[]:s,d=e.showLineNumbers,p=e.wrapLongLines,g=e.wrapLines,m=void 0!==g&&g?v({},"function"===typeof i?i(n):i):{};if(m.className=m.className?[].concat(o(m.className.trim().split(/\s+/)),o(u)):u,n&&l){var f=S(a,n,r);t.unshift(k(n,f))}return p&d&&(m.style=v({display:"flex"},m.style)),{type:"element",tagName:"span",properties:m,children:t}}function F(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=0;a<e.length;a++){var r=e[a];if("text"===r.type)n.push(A({children:[r],className:o(new Set(t))}));else if(r.children){var l=t.concat(r.properties.className);F(r.children,l).forEach((function(e){return n.push(e)}))}}return n}function O(e,t,n,a,r,o,l,c,i){var s,u=F(e.value),d=[],p=-1,g=0;function m(e,o){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||s.length>0?function(e,o){return A({children:e,lineNumber:o,lineNumberStyle:c,largestLineNumber:l,showInlineLineNumbers:r,lineProps:n,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:a,wrapLongLines:i,wrapLines:t})}(e,o,s):function(e,t){if(a&&t&&r){var n=S(c,t,l);e.unshift(k(t,n))}return e}(e,o)}for(var f=function(){var e=u[g],t=e.children[0].value;if(t.match(w)){var n=t.split("\n");n.forEach((function(t,r){var l=a&&d.length+o,c={type:"text",value:"".concat(t,"\n")};if(0===r){var i=m(u.slice(p+1,g).concat(A({children:[c],className:e.properties.className})),l);d.push(i)}else if(r===n.length-1){var s=u[g+1]&&u[g+1].children&&u[g+1].children[0],f={type:"text",value:"".concat(t)};if(s){var h=A({children:[f],className:e.properties.className});u.splice(g+1,0,h)}else{var y=m([f],l,e.properties.className);d.push(y)}}else{var b=m([c],l,e.properties.className);d.push(b)}})),p=g}g++};g<u.length;)f();if(p!==u.length-1){var h=u.slice(p+1,u.length);if(h&&h.length){var y=m(h,a&&d.length+o);d.push(y)}}return t?d:(s=[]).concat.apply(s,d)}function N(e){var t=e.rows,n=e.stylesheet,a=e.useInlineStyles;return t.map((function(e,t){return h({node:e,stylesheet:n,useInlineStyles:a,key:"code-segement".concat(t)})}))}function C(e){return e&&"undefined"!==typeof e.highlightAuto}var j,P,L=n(86598),_=n.n(L),E=(j=_(),P={},function(e){var t=e.language,n=e.children,r=e.style,o=void 0===r?P:r,l=e.customStyle,c=void 0===l?{}:l,i=e.codeTagProps,u=void 0===i?{className:t?"language-".concat(t):void 0,style:v(v({},o['code[class*="language-"]']),o['code[class*="language-'.concat(t,'"]')])}:i,d=e.useInlineStyles,p=void 0===d||d,g=e.showLineNumbers,m=void 0!==g&&g,f=e.showInlineLineNumbers,h=void 0===f||f,b=e.startingLineNumber,w=void 0===b?1:b,k=e.lineNumberContainerStyle,S=e.lineNumberStyle,A=void 0===S?{}:S,F=e.wrapLines,L=e.wrapLongLines,_=void 0!==L&&L,E=e.lineProps,z=void 0===E?{}:E,M=e.renderer,T=e.PreTag,$=void 0===T?"pre":T,D=e.CodeTag,I=void 0===D?"code":D,R=e.code,q=void 0===R?(Array.isArray(n)?n[0]:n)||"":R,H=e.astGenerator,B=function(e,t){if(null==e)return{};var n,r,o=(0,a.A)(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,y);H=H||j;var U=m?s.createElement(x,{containerStyle:k,codeStyle:u.style||{},numberStyle:A,startingLineNumber:w,codeString:q}):null,W=o.hljs||o['pre[class*="language-"]']||{backgroundColor:"#fff"},V=C(H)?"hljs":"prismjs",Z=p?Object.assign({},B,{style:Object.assign({},W,c)}):Object.assign({},B,{className:B.className?"".concat(V," ").concat(B.className):V,style:Object.assign({},c)});if(u.style=v(_?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"},u.style),!H)return s.createElement($,Z,U,s.createElement(I,u,q));(void 0===F&&M||_)&&(F=!0),M=M||N;var G=[{type:"text",value:q}],K=function(e){var t=e.astGenerator,n=e.language,a=e.code,r=e.defaultCodeValue;if(C(t)){var o=function(e,t){return-1!==e.listLanguages().indexOf(t)}(t,n);return"text"===n?{value:r,language:"text"}:o?t.highlight(n,a):t.highlightAuto(a)}try{return n&&"text"!==n?{value:t.highlight(a,n)}:{value:r}}catch(l){return{value:r}}}({astGenerator:H,language:t,code:q,defaultCodeValue:G});null===K.language&&(K.value=G);var J=K.value.length;1===J&&"text"===K.value[0].type&&(J=K.value[0].value.split("\n").length);var Y=O(K,F,z,m,h,w,J+w,A,_);return s.createElement($,Z,s.createElement(I,u,!h&&U,M({rows:Y,stylesheet:o,useInlineStyles:p})))});E.registerLanguage=function(e,t){return _().register(t)},E.alias=function(e,t){return _().alias(e,t)};const z=E},32138:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#f76d47"},".language-sass > code":{color:"#f76d47"},".language-scss > code":{color:"#f76d47"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#7c4dff"},"attr-name":{color:"#39adb5"},"attr-value":{color:"#f6a434"},attribute:{color:"#f6a434"},boolean:{color:"#7c4dff"},builtin:{color:"#39adb5"},cdata:{color:"#39adb5"},char:{color:"#39adb5"},class:{color:"#39adb5"},"class-name":{color:"#6182b8"},comment:{color:"#aabfc9"},constant:{color:"#7c4dff"},deleted:{color:"#e53935"},doctype:{color:"#aabfc9"},entity:{color:"#e53935"},function:{color:"#7c4dff"},hexcode:{color:"#f76d47"},id:{color:"#7c4dff",fontWeight:"bold"},important:{color:"#7c4dff",fontWeight:"bold"},inserted:{color:"#39adb5"},keyword:{color:"#7c4dff"},number:{color:"#f76d47"},operator:{color:"#39adb5"},prolog:{color:"#aabfc9"},property:{color:"#39adb5"},"pseudo-class":{color:"#f6a434"},"pseudo-element":{color:"#f6a434"},punctuation:{color:"#39adb5"},regex:{color:"#6182b8"},selector:{color:"#e53935"},string:{color:"#f6a434"},symbol:{color:"#7c4dff"},tag:{color:"#e53935"},unit:{color:"#f76d47"},url:{color:"#e53935"},variable:{color:"#e53935"}}},62422:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},86598:(e,t,n)=>{"use strict";var a="object"===typeof globalThis?globalThis:"object"===typeof self?self:"object"===typeof window?window:"object"===typeof n.g?n.g:{},r=function(){var e="Prism"in a,t=e?a.Prism:void 0;return function(){e?a.Prism=t:delete a.Prism;e=void 0,t=void 0}}();a.Prism={manual:!0,disableWorkerMessageHandler:!0};var o=n(55942),l=n(72824),c=n(93915),i=n(33592),s=n(61993),u=n(22216),d=n(50683);r();var p={}.hasOwnProperty;function g(){}g.prototype=c;var m=new g;function f(e){if("function"!==typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===m.languages[e.displayName]&&e(m)}e.exports=m,m.highlight=function(e,t){var n,a=c.highlight;if("string"!==typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===m.util.type(t))n=t,t=null;else{if("string"!==typeof t)throw new Error("Expected `string` for `name`, got `"+t+"`");if(!p.call(m.languages,t))throw new Error("Unknown language: `"+t+"` is not registered");n=m.languages[t]}return a.call(this,e,n,t)},m.register=f,m.alias=function(e,t){var n,a,r,o,l=m.languages,c=e;t&&((c={})[e]=t);for(n in c)for(r=(a="string"===typeof(a=c[n])?[a]:a).length,o=-1;++o<r;)l[a[o]]=l[n]},m.registered=function(e){if("string"!==typeof e)throw new Error("Expected `string` for `language`, got `"+e+"`");return p.call(m.languages,e)},m.listLanguages=function(){var e,t=m.languages,n=[];for(e in t)p.call(t,e)&&"object"===typeof t[e]&&n.push(e);return n},f(i),f(s),f(u),f(d),m.util.encode=function(e){return e},m.Token.stringify=function(e,t,n){var a;if("string"===typeof e)return{type:"text",value:e};if("Array"===m.util.type(e))return function(e,t){var n,a=[],r=e.length,o=-1;for(;++o<r;)""!==(n=e[o])&&null!==n&&void 0!==n&&a.push(n);o=-1,r=a.length;for(;++o<r;)n=a[o],a[o]=m.Token.stringify(n,t,a);return a}(e,t);a={type:e.type,content:m.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(a.classes=a.classes.concat(e.alias));return m.hooks.run("wrap",a),o(a.tag+"."+a.classes.join("."),function(e){var t;for(t in e)e[t]=l(e[t]);return e}(a.attributes),a.content)}},22216:e=>{"use strict";function t(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="clike",t.aliases=[]},61993:e=>{"use strict";function t(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}e.exports=t,t.displayName="css",t.aliases=[]},50683:e=>{"use strict";function t(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=t,t.displayName="javascript",t.aliases=["js"]},33592:e=>{"use strict";function t(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var a={};a["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};r["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:r},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},93915:(e,t,n)=>{var a=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,a={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var l in a={},n[o]=a,t)t.hasOwnProperty(l)&&(a[l]=e(t[l],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"===typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(a){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var a="no-"+t;e;){var r=e.classList;if(r.contains(t))return!0;if(r.contains(a))return!1;e=e.parentElement}return!!n}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],l={};for(var c in o)if(o.hasOwnProperty(c)){if(c==t)for(var i in n)n.hasOwnProperty(i)&&(l[i]=n[i]);n.hasOwnProperty(c)||(l[c]=o[c])}var s=a[e];return a[e]=l,r.languages.DFS(r.languages,(function(t,n){n===s&&t!=e&&(this[t]=l)})),l},DFS:function e(t,n,a,o){o=o||{};var l=r.util.objId;for(var c in t)if(t.hasOwnProperty(c)){n.call(t,c,t[c],a||c);var i=t[c],s=r.util.type(i);"Object"!==s||o[l(i)]?"Array"!==s||o[l(i)]||(o[l(i)]=!0,e(i,n,c,o)):(o[l(i)]=!0,e(i,n,null,o))}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var a={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),r.hooks.run("before-all-elements-highlight",a);for(var o,l=0;o=a.elements[l++];)r.highlightElement(o,!0===t,a.callback)},highlightElement:function(t,n,a){var o=r.util.getLanguage(t),l=r.languages[o];r.util.setLanguage(t,o);var c=t.parentElement;c&&"pre"===c.nodeName.toLowerCase()&&r.util.setLanguage(c,o);var i={element:t,language:o,grammar:l,code:t.textContent};function s(e){i.highlightedCode=e,r.hooks.run("before-insert",i),i.element.innerHTML=i.highlightedCode,r.hooks.run("after-highlight",i),r.hooks.run("complete",i),a&&a.call(i.element)}if(r.hooks.run("before-sanity-check",i),(c=i.element.parentElement)&&"pre"===c.nodeName.toLowerCase()&&!c.hasAttribute("tabindex")&&c.setAttribute("tabindex","0"),!i.code)return r.hooks.run("complete",i),void(a&&a.call(i.element));if(r.hooks.run("before-highlight",i),i.grammar)if(n&&e.Worker){var u=new Worker(r.filename);u.onmessage=function(e){s(e.data)},u.postMessage(JSON.stringify({language:i.language,code:i.code,immediateClose:!0}))}else s(r.highlight(i.code,i.grammar,i.language));else s(r.util.encode(i.code))},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),o.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var a in n)t[a]=n[a];delete t.rest}var r=new i;return s(r,r.head,e),c(e,r,t,r.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(r)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:o};function o(e,t,n,a){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length}function l(e,t,n,a){e.lastIndex=t;var r=e.exec(n);if(r&&a&&r[1]){var o=r[1].length;r.index+=o,r[0]=r[0].slice(o)}return r}function c(e,t,n,a,i,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var g=n[p];g=Array.isArray(g)?g:[g];for(var m=0;m<g.length;++m){if(d&&d.cause==p+","+m)return;var f=g[m],h=f.inside,y=!!f.lookbehind,b=!!f.greedy,v=f.alias;if(b&&!f.pattern.global){var w=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,w+"g")}for(var x=f.pattern||f,k=a.next,S=i;k!==t.tail&&!(d&&S>=d.reach);S+=k.value.length,k=k.next){var A=k.value;if(t.length>e.length)return;if(!(A instanceof o)){var F,O=1;if(b){if(!(F=l(x,S,e,y))||F.index>=e.length)break;var N=F.index,C=F.index+F[0].length,j=S;for(j+=k.value.length;N>=j;)j+=(k=k.next).value.length;if(S=j-=k.value.length,k.value instanceof o)continue;for(var P=k;P!==t.tail&&(j<C||"string"===typeof P.value);P=P.next)O++,j+=P.value.length;O--,A=e.slice(S,j),F.index-=S}else if(!(F=l(x,0,A,y)))continue;N=F.index;var L=F[0],_=A.slice(0,N),E=A.slice(N+L.length),z=S+A.length;d&&z>d.reach&&(d.reach=z);var M=k.prev;if(_&&(M=s(t,M,_),S+=_.length),u(t,M,O),k=s(t,M,new o(p,h?r.tokenize(L,h):L,v,L)),E&&s(t,k,E),O>1){var T={cause:p+","+m,reach:z};c(e,t,n,k.prev,S,T),d&&T.reach>d.reach&&(d.reach=T.reach)}}}}}}function i(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var a=t.next,r={value:n,prev:t,next:a};return t.next=r,a.prev=r,e.length++,r}function u(e,t,n){for(var a=t.next,r=0;r<n&&a!==e.tail;r++)a=a.next;t.next=a,a.prev=t,e.length-=r}if(e.Prism=r,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},l=t.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(o.classes,l):o.classes.push(l)),r.hooks.run("wrap",o);var c="";for(var i in o.attributes)c+=" "+i+'="'+(o.attributes[i]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+c+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),a=n.language,o=n.code,l=n.immediateClose;e.postMessage(r.highlight(o,r.languages[a],a)),l&&e.close()}),!1),r):r;var d=r.util.currentScript();function p(){r.manual||r.highlightAll()}if(d&&(r.filename=d.src,d.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var g=document.readyState;"loading"===g||"interactive"===g&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return r}("undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=a),"undefined"!==typeof n.g&&(n.g.Prism=a)},82140:(e,t)=>{"use strict";t.q=function(e){var t=String(e||n).trim();return t===n?[]:t.split(r)};var n="",a=" ",r=/[ \t\n\r\f]+/g},31630:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var a=arguments[n];for(var r in a)t.call(a,r)&&(e[r]=a[r])}return e};var t=Object.prototype.hasOwnProperty},82719:e=>{"use strict";e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},21257:e=>{"use strict";e.exports=JSON.parse('{"0":"\ufffd","128":"\u20ac","130":"\u201a","131":"\u0192","132":"\u201e","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02c6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017d","145":"\u2018","146":"\u2019","147":"\u201c","148":"\u201d","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02dc","153":"\u2122","154":"\u0161","155":"\u203a","156":"\u0153","158":"\u017e","159":"\u0178"}')}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6820.73ff230e.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/6820.73ff230e.chunk.js.LICENSE.txt new file mode 100644 index 00000000000..0285de91161 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6820.73ff230e.chunk.js.LICENSE.txt @@ -0,0 +1,8 @@ +/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT <https://opensource.org/licenses/MIT> + * @author Lea Verou <https://lea.verou.me> + * @namespace + * @public + */ diff --git a/ydb/core/viewer/monitoring/static/js/684.7c31509b.chunk.js b/ydb/core/viewer/monitoring/static/js/684.7c31509b.chunk.js new file mode 100644 index 00000000000..9274af72cd2 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/684.7c31509b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[684],{22983:(e,t,s)=>{s.d(t,{B:()=>d});var i=s(59284),n=s(84476),o=s(84375),a=s(55974),l=s(42829),r=s(60712);function d({children:e,onConfirmAction:t,onConfirmActionSuccess:s,dialogHeader:d,dialogText:c,retryButtonText:u,buttonDisabled:m=!1,buttonView:p="action",buttonTitle:h,buttonClassName:v,withPopover:g=!1,popoverContent:f,popoverPlacement:b="right",popoverDisabled:x=!0}){const[k,y]=i.useState(!1),[j,N]=i.useState(!1),[S,w]=i.useState(!1),D=()=>(0,r.jsx)(n.$,{onClick:()=>y(!0),view:p,disabled:m,loading:!m&&j,className:v,title:h,children:e});return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(a.g,{visible:k,header:d,text:c,withRetry:S,retryButtonText:u,onConfirm:async e=>{N(!0),await t(e)},onConfirmActionSuccess:async()=>{w(!1);try{await(null===s||void 0===s?void 0:s())}finally{N(!1)}},onConfirmActionError:e=>{w((0,l.D)(e)),N(!1)},onClose:()=>{y(!1)}}),g?(0,r.jsx)(o.A,{content:f,placement:b,disabled:x,children:D()}):D()]})}},55974:(e,t,s)=>{s.d(t,{g:()=>f});var i=s(59284),n=s(18677),o=s(71153),a=s(74321),l=s(2198),r=s(99991),d=s(89954),c=s(77506),u=s(48372);const m=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),p=(0,u.g4)("ydb-critical-action-dialog",{en:m});var h=s(60712);const v=(0,c.cn)("ydb-critical-dialog"),g=e=>e.data&&"issues"in e.data&&e.data.issues?(0,h.jsx)(d.O,{hideSeverity:!0,data:e.data}):403===e.status?p("no-rights-error"):e.statusText?e.statusText:p("default-error");function f({visible:e,header:t,text:s,withRetry:d,retryButtonText:c,withCheckBox:u,onClose:m,onConfirm:f,onConfirmActionSuccess:b,onConfirmActionError:x}){const[k,y]=i.useState(!1),[j,N]=i.useState(),[S,w]=i.useState(!1),D=async e=>(y(!0),f(e).then((()=>{b(),m()})).catch((e=>{x(e),N(e)})).finally((()=>{y(!1)})));return(0,h.jsx)(l.l,{open:e,hasCloseButton:!1,className:v(),size:"s",onClose:m,onTransitionExited:()=>{N(void 0),w(!1)},children:j?(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(l.l.Header,{caption:t}),(0,h.jsx)(l.l.Body,{className:v("body"),children:(0,h.jsxs)("div",{className:v("body-message",{error:!0}),children:[(0,h.jsx)("span",{className:v("error-icon"),children:(0,h.jsx)(n.A,{width:"24",height:"22"})}),g(j)]})}),(0,h.jsx)(l.l.Footer,{loading:!1,preset:"default",textButtonApply:d?c||p("button-retry"):void 0,textButtonCancel:p("button-close"),onClickButtonApply:()=>D(!0),onClickButtonCancel:m})]}):(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(l.l.Header,{caption:t}),(0,h.jsxs)(l.l.Body,{className:v("body"),children:[(0,h.jsxs)("div",{className:v("body-message",{warning:!0}),children:[(0,h.jsx)("span",{className:v("warning-icon"),children:(0,h.jsx)(r.I,{data:o.A,size:24})}),s]}),u?(0,h.jsx)(a.S,{checked:S,onUpdate:w,children:p("checkbox-text")}):null]}),(0,h.jsx)(l.l.Footer,{loading:k,preset:"default",textButtonApply:p("button-confirm"),textButtonCancel:p("button-cancel"),propsButtonApply:{type:"submit",disabled:u&&!S},onClickButtonCancel:m,onClickButtonApply:()=>D()})]})})}},42829:(e,t,s)=>{s.d(t,{D:()=>i});const i=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},3685:(e,t,s)=>{s.d(t,{$:()=>l});var i=s(77506),n=s(33775),o=s(60712);const a=(0,i.cn)("ydb-entity-page-title");function l({entityName:e,status:t,id:s,className:i}){return(0,o.jsxs)("div",{className:a(null,i),children:[(0,o.jsx)("span",{className:a("prefix"),children:e}),(0,o.jsx)(n.k,{className:a("icon"),status:t,size:"s"}),s]})}},42655:(e,t,s)=>{s.d(t,{y:()=>c});var i=s(59284),n=s(89169),o=s(77506),a=s(66781),l=s(60712);const r=(0,o.cn)("ydb-info-viewer-skeleton"),d=()=>(0,l.jsxs)("div",{className:r("label"),children:[(0,l.jsx)(n.E,{className:r("label__text")}),(0,l.jsx)("div",{className:r("label__dots")})]}),c=({rows:e=8,className:t,delay:s=600})=>{const[o]=(0,a.y)(s);let c=(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(d,{}),(0,l.jsx)(n.E,{className:r("value")})]});return o||(c=null),(0,l.jsx)("div",{className:r(null,t),children:[...new Array(e)].map(((e,t)=>(0,l.jsx)("div",{className:r("row"),children:c},`skeleton-row-${t}`)))})}},56735:(e,t,s)=>{s.d(t,{Q:()=>y});var i=s(87184),n=s(92459),o=s(78668),a=s(7435),l=s(46549),r=s(77506),d=s(56839),c=s(31684),u=s(90182),m=s(18863),p=s(25196),h=s(15132),v=s(33775),g=s(48372);const f=JSON.parse('{"type":"Type","path":"Path","guid":"GUID","serial-number":"Serial Number","shared-with-os":"SharedWithOs","drive-status":"Drive Status","state":"State","device":"Device","realtime":"Realtime","space":"Space","slots":"Slots","log-size":"Log Size","system-size":"System Size","links":"Links","developer-ui":"Developer UI","pdisk-page":"PDisk page","yes":"Yes"}'),b=(0,g.g4)("ydb-pDisk-info",{en:f});var x=s(60712);const k=(0,r.cn)("ydb-pdisk-info");function y({pDisk:e,nodeId:t,withPDiskPageLink:s,className:r}){const g=(0,u.N4)(o._5),[f,y,j,N]=function({pDisk:e,nodeId:t,withPDiskPageLink:s,isUserAllowedToMakeChanges:i}){const{PDiskId:o,Path:r,Guid:u,Category:m,Type:g,Device:f,Realtime:y,State:j,SerialNumber:N,TotalSize:S,AllocatedSize:w,StatusV2:D,NumActiveSlots:I,ExpectedSlotCount:C,LogUsedSize:T,LogTotalSize:E,SystemSize:P,SharedWithOs:z}=e||{},A=[];(0,a.f8)(m)&&A.push({label:b("type"),value:g}),(0,a.f8)(r)&&A.push({label:b("path"),value:r}),(0,a.f8)(u)&&A.push({label:b("guid"),value:u}),N&&A.push({label:b("serial-number"),value:N}),(0,a.f8)(z)&&A.push({label:b("shared-with-os"),value:b("yes")});const _=[];(0,a.f8)(D)&&_.push({label:b("drive-status"),value:D}),(0,a.f8)(j)&&_.push({label:b("state"),value:j}),(0,a.f8)(f)&&_.push({label:b("device"),value:(0,x.jsx)(v.k,{status:f})}),(0,a.f8)(y)&&_.push({label:b("realtime"),value:(0,x.jsx)(v.k,{status:y})});const M=[];M.push({label:b("space"),value:(0,x.jsx)(h.O,{value:w,capacity:S,formatValues:d.vX,colorizeProgress:!0})}),(0,a.f8)(I)&&(0,a.f8)(C)&&M.push({label:b("slots"),value:(0,x.jsx)(h.O,{value:I,capacity:C})}),(0,a.f8)(T)&&(0,a.f8)(E)&&M.push({label:b("log-size"),value:(0,x.jsx)(h.O,{value:T,capacity:E,formatValues:d.vX})}),(0,a.f8)(P)&&M.push({label:b("system-size"),value:(0,l.z3)({value:P})});const O=[];if((s||i)&&(0,a.f8)(o)&&(0,a.f8)(t)){const e=(0,n.Ck)(o,t),a=(0,c.ar)({nodeId:t,pDiskId:o});O.push({label:b("links"),value:(0,x.jsxs)("span",{className:k("links"),children:[s&&(0,x.jsx)(p.K,{title:b("pdisk-page"),url:e,external:!1}),i&&(0,x.jsx)(p.K,{title:b("developer-ui"),url:a})]})})}return[A,_,M,O]}({pDisk:e,nodeId:t,withPDiskPageLink:s,isUserAllowedToMakeChanges:g});return(0,x.jsxs)(i.s,{className:r,gap:2,direction:"row",wrap:!0,children:[(0,x.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,x.jsx)(m.z,{info:f,renderEmptyState:()=>null}),(0,x.jsx)(m.z,{info:j,renderEmptyState:()=>null})]}),(0,x.jsxs)(i.s,{direction:"column",gap:2,width:500,children:[(0,x.jsx)(m.z,{info:y,renderEmptyState:()=>null}),(0,x.jsx)(m.z,{info:N,renderEmptyState:()=>null})]})]})}},58389:(e,t,s)=>{s.d(t,{B:()=>c});var i=s(87184),n=s(77506),o=s(90053),a=s(70043),l=s(60712);const r=(0,n.cn)("ydb-page-meta");function d({items:e,loading:t}){return(0,l.jsx)("div",{className:r("info"),children:t?(0,l.jsx)(a.E,{className:r("skeleton")}):e.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function c({className:e,...t}){return(0,l.jsxs)(i.s,{gap:1,alignItems:"center",justifyContent:"space-between",className:r(null,e),children:[(0,l.jsx)(d,{...t}),(0,l.jsx)(o.E,{})]})}},70043:(e,t,s)=>{s.d(t,{E:()=>a});var i=s(89169),n=s(66781),o=s(60712);const a=({delay:e=600,className:t})=>{const[s]=(0,n.y)(e);return s?(0,o.jsx)(i.E,{className:t}):null}},67440:(e,t,s)=>{s.d(t,{E:()=>y});s(59284);var i=s(92459),n=s(78668),o=s(7435),a=s(77506),l=s(56839),r=s(31684),d=s(7187),c=s(90182),u=s(41650),m=s(60073),p=s(25196),h=s(15132),v=s(33775),g=s(48372);const f=JSON.parse('{"slot-id":"VDisk Slot Id","pool-name":"Storage Pool Name","kind":"Kind","guid":"GUID","incarnation-guid":"Incarnation GUID","instance-guid":"Instance GUID","replication-status":"Replicated","state-status":"VDisk State","space-status":"Disk Space","fresh-rank-satisfaction":"Fresh Rank Satisfaction","level-rank-satisfaction":"Level Rank Satisfaction","front-queues":"Front Queues","has-unreadable-blobs":"Has Unreadable Blobs","size":"Size","read-throughput":"Read Throughput","write-throughput":"Write Throughput","links":"Links","vdisk-page":"VDisk Page","developer-ui":"Developer UI","yes":"Yes","no":"No","vdiks-title":"VDisk"}'),b=(0,g.g4)("ydb-vDisk-info",{en:f});var x=s(60712);const k=(0,a.cn)("ydb-vdisk-info");function y({data:e,withVDiskPageLink:t,withTitle:s,...a}){var d,g;const f=(0,c.N4)(n._5),{AllocatedSize:y,DiskSpace:N,FrontQueues:S,Guid:w,Replicated:D,VDiskState:I,VDiskSlotId:C,Kind:T,SatisfactionRank:E,AvailableSize:P,HasUnreadableBlobs:z,IncarnationGuid:A,InstanceGuid:_,StoragePoolName:M,ReadThroughput:O,WriteThroughput:R,PDiskId:L,NodeId:B}=e||{},F=[];var V,$;((0,o.f8)(C)&&F.push({label:b("slot-id"),value:C}),(0,o.f8)(M)&&F.push({label:b("pool-name"),value:M}),(0,o.f8)(I)&&F.push({label:b("state-status"),value:I}),Number(y)>=0&&Number(P)>=0&&F.push({label:b("size"),value:(0,x.jsx)(h.O,{value:y,capacity:Number(y)+Number(P),formatValues:l.vX,colorizeProgress:!0})}),(0,o.f8)(T)&&F.push({label:b("kind"),value:T}),(0,o.f8)(w)&&F.push({label:b("guid"),value:w}),(0,o.f8)(A)&&F.push({label:b("incarnation-guid"),value:A}),(0,o.f8)(_)&&F.push({label:b("instance-guid"),value:_}),(0,o.f8)(D)&&F.push({label:b("replication-status"),value:b(D?"yes":"no")}),(0,o.f8)(N)&&F.push({label:b("space-status"),value:(0,x.jsx)(v.k,{status:N})}),(0,o.f8)(null===E||void 0===E||null===(d=E.FreshRank)||void 0===d?void 0:d.Flag))&&F.push({label:b("fresh-rank-satisfaction"),value:(0,x.jsx)(v.k,{status:null===E||void 0===E||null===(V=E.FreshRank)||void 0===V?void 0:V.Flag})});(0,o.f8)(null===E||void 0===E||null===(g=E.LevelRank)||void 0===g?void 0:g.Flag)&&F.push({label:b("level-rank-satisfaction"),value:(0,x.jsx)(v.k,{status:null===E||void 0===E||null===($=E.LevelRank)||void 0===$?void 0:$.Flag})});(0,o.f8)(S)&&F.push({label:b("front-queues"),value:(0,x.jsx)(v.k,{status:S})}),(0,o.f8)(z)&&F.push({label:b("has-unreadable-blobs"),value:b(z?"yes":"no")}),(0,o.f8)(O)&&F.push({label:b("read-throughput"),value:(0,u.O4)(O)}),(0,o.f8)(R)&&F.push({label:b("write-throughput"),value:(0,u.O4)(R)});if((0,o.f8)(L)&&(0,o.f8)(B)&&(0,o.f8)(C)){const e=[];if(t){const t=(0,i.yX)(C,L,B);e.push((0,x.jsx)(p.K,{title:b("vdisk-page"),url:t,external:!1},t))}if(f){const t=(0,r.Wg)({nodeId:B,pDiskId:L,vDiskSlotId:C});e.push((0,x.jsx)(p.K,{title:b("developer-ui"),url:t},t))}e.length&&F.push({label:b("links"),value:(0,x.jsx)("div",{className:k("links"),children:e})})}const U=e&&s?(0,x.jsx)(j,{data:e}):null;return(0,x.jsx)(m.z_,{info:F,title:U,...a})}function j({data:e}){return(0,x.jsxs)("div",{className:k("title"),children:[b("vdiks-title"),(0,x.jsx)(v.k,{status:(0,d.XY)(e.Severity)}),e.StringifiedId]})}},69134:(e,t,s)=>{s.r(t),s.d(t,{PDiskPage:()=>ke});var i=s(59284),n=s(76938),o=s(99991),a=s(23871),l=s(44992),r=s(61750),d=s(67087),c=s(370),u=s(22983),m=s(3685),p=s(44508),h=s(42655),v=s(82015),g=s(56735),f=s(58389),b=s(92459),x=s(21334),k=s(78668),y=s(67028),j=s(40174),N=s(7187),S=s(68712),w=s(7435),D=s(27295),I=s(78034);const C=x.F.injectEndpoints({endpoints:e=>({getPdiskInfo:e.query({queryFn:async({nodeId:e,pDiskId:t},{signal:s,getState:i,dispatch:n})=>{let o;o=await(0,S.FC)("/pdisk/info",void 0,{getState:i,dispatch:n})>0?window.api.pdisk.getPDiskInfo({nodeId:e,pDiskId:t},{signal:s}):window.api.viewer.getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:t},{signal:s}).then((e=>e.PDiskStateInfo?{Whiteboard:{PDisk:{...e.PDiskStateInfo[0],ExpectedSlotCount:void 0}}}:{}));try{const t=await Promise.all([o,window.api.viewer.getNodeInfo(e,{signal:s})]);return{data:function([e={},t]){var s,i,n;const o=null===(s=t.SystemStateInfo)||void 0===s?void 0:s[0],a=(0,I.q1)(o),{BSC:l={},Whiteboard:r={}}=e||{},{PDisk:d={},VDisks:c=[]}=r,{PDisk:u={}}=l,m=(0,D.or)({...u,...d}),p=null!==(i=m.NodeId)&&void 0!==i?i:a.NodeId,{LogUsedSize:h,LogTotalSize:v,TotalSize:g,SystemSize:f,ExpectedSlotCount:b,EnforcedDynamicSlotSize:x}=m;let k;(0,w.f8)(v)&&(k={SlotType:"log",Used:Number(h),Total:Number(v),UsagePercent:100*Number(h)/Number(v),Severity:1,SlotData:{LogUsedSize:h,LogTotalSize:v,SystemSize:f}});const y=c.map((e=>(0,D.WT)({...e,NodeId:p})));y.sort(((e,t)=>Number(t.VDiskSlotId)-Number(e.VDiskSlotId)));const j=y.map((e=>{var t;return{SlotType:"vDisk",Id:null===(t=e.VDiskId)||void 0===t?void 0:t.GroupID,Title:e.StoragePoolName,Severity:e.Severity,Used:Number(e.AllocatedSize),Total:Number(e.TotalSize),UsagePercent:e.AllocatedPercent,SlotData:e}}));let N=[];if(b&&b>j.length){const e=b-j.length;let t=Number(x);if(isNaN(t)){const s=j.reduce(((e,t)=>t.Total?e+t.Total:e),0);t=(Number(g)-s-Number(v))/e}N=(0,w._e)(e).map((()=>({SlotType:"empty",Total:t,Severity:1,SlotData:{Size:t}})))}const S=[...j,...N];return k&&S.length>0&&S.unshift(k),{...m,NodeId:p,NodeHost:a.Host,NodeType:null===(n=a.Roles)||void 0===n?void 0:n[0],NodeDC:a.DC,SlotItems:S}}(t)}}catch(a){return{error:a}}},providesTags:(e,t,s)=>["All",{type:"PDiskData",id:(0,N.r$)(s.nodeId,s.pDiskId)}]})}),overrideExisting:"throw"});var T=s(77506),E=s(90182),P=s(99936),z=s(13066),A=s(40569),_=s(84375),M=s(84476),O=s(55974),R=s(42829),L=s(48372);const B=JSON.parse('{"fqdn":"FQDN","pdisk":"PDisk","node":"Node","storage":"Storage","disk-distribution":"Disk distribution","empty-slot":"Empty slot","log":"Log","label.log-size":"Log Size","label.system-size":"System Size","label.slot-size":"Slot Size","no-slots-data":"No slots data","restart-pdisk-button":"Restart PDisk","force-restart-pdisk-button":"Restart anyway","restart-pdisk-not-allowed":"You don\'t have enough rights to restart PDisk","restart-pdisk-dialog-header":"Restart PDisk","restart-pdisk-dialog-text":"PDisk will be restarted. Do you want to proceed?","decommission-none":"None","decommission-imminent":"Imminent","decommission-pending":"Pending","decommission-rejected":"Rejected","decommission-label":"{{decommission}} decommission","decommission-button":"Decommission","decommission-change-not-allowed":"You don\'t have enough rights to change PDisk decommission","decommission-dialog-title":"Change decommission status","decommission-dialog-force-change":"Change anyway","decommission-dialog-imminent-warning":"This will start imminent decommission. Existing slots will be moved from the disk","decommission-dialog-pending-warning":"This will start pending decommission. Decommission will be planned for this disk, but will not start immediatelly. Existing slots will not be moved from the disk, but no new slots will be allocated on it","decommission-dialog-rejected-warning":"This will start rejected decommission. No slots from other disks are placed on this disk in the process of decommission","decommission-dialog-none-warning":"This will reset decommission mode, allowing the disk to be used by the storage"}'),F=(0,L.g4)("ydb-pDisk-page",{en:B});var V,$,U,G;function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)({}).hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},H.apply(null,arguments)}const J=function(e){return i.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",fill:"none"},e),V||(V=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.378 7.771c.717 0 1.298.614 1.298 1.372v.914c0 .758-.581 1.372-1.298 1.372H3.46c-.716 0-1.297-.614-1.297-1.372v-.914c0-.758.58-1.372 1.297-1.372h6.92zm.77-1.248L9.935 3.958a1.292 1.292 0 00-1.16-.758H5.063c-.491 0-.94.294-1.16.758L2.69 6.523c.243-.08.501-.123.77-.123h6.918c.268 0 .527.043.77.123zm1.825 1.87V10.057c0 1.515-1.162 2.743-2.595 2.743H3.46c-1.433 0-2.594-1.228-2.594-2.743V8.393c0-.71.156-1.41.456-2.044l1.421-3.004c.44-.93 1.338-1.516 2.32-1.516h3.713c.982 0 1.88.587 2.32 1.516l1.421 3.004c.3.635.457 1.335.457 2.044zm-5.19.521c-.358 0-.648.307-.648.686 0 .379.29.686.649.686h2.162c.358 0 .649-.307.649-.686 0-.379-.29-.686-.65-.686H7.785z",fill:"currentColor",fillOpacity:.85})),$||($=i.createElement("path",{d:"M15.25 11.428c0 2.15-1.639 3.822-3.574 3.822-1.935 0-3.574-1.671-3.574-3.822 0-2.15 1.639-3.821 3.574-3.821 1.935 0 3.574 1.671 3.574 3.821z",fill:"var(--g-color-base-background)",stroke:"currentColor",strokeWidth:1.5})),U||(U=i.createElement("path",{d:"M11.676 16.5c2.69 0 4.824-2.297 4.824-5.072 0-2.774-2.134-5.071-4.824-5.071s-4.824 2.297-4.824 5.071c0 2.775 2.134 5.072 4.824 5.072z",stroke:"var(--g-color-base-background)"})),G||(G=i.createElement("path",{d:"M12.973 10.057L10.378 12.8m0-2.743l2.595 2.743",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))};var W=s(60712);const q=(0,T.cn)("ydb-pdisk-decommission-button");function Y(e){return"DECOMMIT_IMMINENT"===e?F("decommission-dialog-imminent-warning"):"DECOMMIT_PENDING"===e?F("decommission-dialog-pending-warning"):"DECOMMIT_REJECTED"===e?F("decommission-dialog-rejected-warning"):"DECOMMIT_NONE"===e?F("decommission-dialog-none-warning"):void 0}function X({decommission:e,onConfirmAction:t,onConfirmActionSuccess:s,buttonDisabled:n,popoverDisabled:o}){const[a,l]=i.useState(),[r,d]=i.useState(!1),[c,u]=i.useState(!1),m=function(e,t){return[{text:F("decommission-none"),action:()=>t("DECOMMIT_NONE"),hidden:!e||"DECOMMIT_NONE"===e||"DECOMMIT_UNSET"===e},{text:F("decommission-pending"),action:()=>t("DECOMMIT_PENDING"),hidden:"DECOMMIT_PENDING"===e},{text:F("decommission-rejected"),action:()=>t("DECOMMIT_REJECTED"),hidden:"DECOMMIT_REJECTED"===e},{text:F("decommission-imminent"),theme:"danger",action:()=>t("DECOMMIT_IMMINENT"),hidden:"DECOMMIT_IMMINENT"===e}]}(e,l);return(0,W.jsxs)(i.Fragment,{children:[(0,W.jsx)(A.r,{renderSwitcher:e=>(0,W.jsx)(Q,{popoverDisabled:o,loading:r,disabled:n,...e}),items:m,popupProps:{className:q("popup")}}),(0,W.jsx)(O.g,{visible:Boolean(a),header:F("decommission-dialog-title"),text:Y(a),withRetry:c,withCheckBox:!0,retryButtonText:F("decommission-dialog-force-change"),onConfirm:async e=>{d(!0),await t(a,e)},onConfirmActionSuccess:async()=>{u(!1),await(0,w.uk)(5e3);try{await s()}finally{d(!1)}},onConfirmActionError:e=>{u((0,R.D)(e)),d(!1)},onClose:()=>{l(void 0)}})]})}function Q({popoverDisabled:e,...t}){return(0,W.jsx)(_.A,{content:F("decommission-change-not-allowed"),placement:"right",disabled:e,children:(0,W.jsxs)(M.$,{view:"normal",className:q("button"),...t,children:[(0,W.jsx)(o.I,{data:J}),F("decommission-button"),(0,W.jsx)(o.I,{data:z.A})]})})}var K=s(47665);function Z(e){return F("decommission-label",{decommission:e})}function ee({decommission:e}){return"DECOMMIT_IMMINENT"===e?(0,W.jsx)(K.J,{theme:"danger",size:"m",children:Z(F("decommission-imminent"))}):"DECOMMIT_PENDING"===e?(0,W.jsx)(K.J,{theme:"warning",size:"m",children:Z(F("decommission-pending"))}):"DECOMMIT_REJECTED"===e?(0,W.jsx)(K.J,{theme:"normal",size:"m",children:Z(F("decommission-rejected"))}):null}var te=s(88226),se=s(13096),ie=s(60073),ne=s(44294),oe=s(15132),ae=s(67440),le=s(46549),re=s(56839);const de=(0,T.cn)("ydb-pdisk-space-distribution"),ce=40;function ue({data:e}){const{SlotItems:t}=e,{PDiskId:s,NodeId:i}=e,n=ce*((null===t||void 0===t?void 0:t.length)||1);return null!==t&&void 0!==t&&t.length?(0,W.jsx)("div",{className:de(null),style:{height:n,minHeight:n},children:(0,W.jsx)(te.V,{className:de("pdisk-bar"),severity:e.Severity,diskAllocatedPercent:e.AllocatedPercent,content:null===t||void 0===t?void 0:t.map(((e,t)=>(0,W.jsx)(me,{item:e,pDiskId:s,nodeId:i},t))),faded:!0})}):F("no-slots-data")}function me({item:e,pDiskId:t,nodeId:s}){return(0,W.jsx)("div",{className:de("slot-wrapper"),style:{flexGrow:Number(e.Total)||1},children:(()=>{if("vDisk"===e.SlotType){var i;const n=(0,w.f8)(null===(i=e.SlotData)||void 0===i?void 0:i.VDiskSlotId)&&(0,w.f8)(t)&&(0,w.f8)(s)?(0,b.yX)(e.SlotData.VDiskSlotId,t,s):void 0;return(0,W.jsx)(se.P,{popupContent:(0,W.jsx)(ae.E,{data:e.SlotData,withTitle:!0}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(ne.E,{to:n,children:(0,W.jsx)(te.V,{className:de("slot"),severity:e.Severity,diskAllocatedPercent:e.UsagePercent,content:(0,W.jsx)(pe,{id:e.Id,title:e.Title,used:e.Used,total:e.Total})})})})}return function(e){return"log"===e.SlotType}(e)?(0,W.jsx)(se.P,{popupContent:(0,W.jsx)(he,{data:e.SlotData}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(te.V,{className:de("slot"),severity:e.Severity,diskAllocatedPercent:e.UsagePercent,content:(0,W.jsx)(pe,{title:F("log"),used:e.Used,total:e.Total})})}):function(e){return"empty"===e.SlotType}(e)?(0,W.jsx)(se.P,{popupContent:(0,W.jsx)(ve,{data:e.SlotData}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,W.jsx)(te.V,{className:de("slot"),severity:e.Severity,empty:!0,content:(0,W.jsx)(pe,{title:F("empty-slot"),used:e.Total})})}):null})()})}function pe({id:e,title:t,used:s,total:i}){return(0,W.jsxs)("div",{className:de("slot-content"),children:[(0,W.jsxs)("span",{children:[(0,w.f8)(e)?(0,W.jsx)("span",{className:de("slot-id"),children:e}):null,t]}),(0,W.jsx)("span",{className:de("slot-size"),children:(()=>{const[e,t]=(0,re.vX)(s,i);return i?`${e} / ${t}`:e})()})]})}function he({data:e}){const{LogTotalSize:t,LogUsedSize:s,SystemSize:i}=e,n=[{label:F("label.log-size"),value:(0,W.jsx)(oe.O,{value:s,capacity:t,formatValues:re.vX})}];return(0,w.f8)(i)&&n.push({label:F("label.system-size"),value:(0,le.z3)({value:i})}),(0,W.jsx)(ie.z_,{title:F("log"),info:n})}function ve({data:e}){const{Size:t}=e,s=[{label:F("label.slot-size"),value:(0,le.z3)({value:t})}];return(0,W.jsx)(ie.z_,{title:F("empty-slot"),info:s})}const ge=(0,T.cn)("ydb-pdisk-page"),fe={diskDistribution:"diskDistribution",storage:"storage"},be=[{id:fe.diskDistribution,get title(){return F("disk-distribution")}},{id:fe.storage,get title(){return F("storage")}}],xe=c.z.nativeEnum(fe).catch(fe.diskDistribution);function ke(){const e=(0,E.YQ)(),t=(0,E.N4)(k._5),s=(0,y.c2)(),c=i.useRef(null),[{nodeId:S,pDiskId:D,activeTab:I}]=(0,d.useQueryParams)({activeTab:d.StringParam,nodeId:d.StringParam,pDiskId:d.StringParam}),T=(0,w.f8)(S)&&(0,w.f8)(D),z=xe.parse(I);i.useEffect((()=>{e((0,j.g)("pDisk",{nodeId:S,pDiskId:D}))}),[e,S,D]);const[A]=(0,E.Nt)(),_=T?{nodeId:S,pDiskId:D}:l.hT,M=C.useGetPdiskInfoQuery(_,{pollingInterval:A}),O=M.isFetching&&void 0===M.currentData,R=M.currentData,{NodeHost:L,NodeId:B,NodeType:V,NodeDC:$,Severity:U,DecommitStatus:G}=R||{},H=async e=>{if(T){const t=await window.api.pdisk[s?"restartPDisk":"restartPDiskOld"]({nodeId:S,pDiskId:D,force:e});if(!1===(null===t||void 0===t?void 0:t.result)){throw{statusText:t.error,retryPossible:t.forceRetryPossible}}}},J=async(e,t)=>{if(T){const s=await window.api.pdisk.changePDiskStatus({nodeId:S,pDiskId:D,force:t,decommissionStatus:e});if(!1===(null===s||void 0===s?void 0:s.result)){throw{statusText:s.error,retryPossible:s.forceRetryPossible}}}},q=()=>{T&&e(x.F.util.invalidateTags([{type:"PDiskData",id:(0,N.r$)(S,D)}]),"StorageData")};return(0,W.jsxs)("div",{className:ge(null),ref:c,children:[(()=>{const e=D?`${F("pdisk")} ${D}`:F("pdisk"),t=L||F("node");return(0,W.jsx)(r.mg,{titleTemplate:`%s - ${e} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=L?`${F("fqdn")}: ${L}`:void 0,t=B?`${F("node")}: ${B}`:void 0;return(0,W.jsx)(f.B,{loading:O,items:[e,t,V,$],className:ge("meta")})})(),(0,W.jsxs)("div",{className:ge("title"),children:[(0,W.jsx)(m.$,{entityName:F("pdisk"),status:(0,N.XY)(U),id:(0,N.r$)(S,D)}),(0,W.jsx)(ee,{decommission:G})]}),(0,W.jsxs)("div",{className:ge("controls"),children:[(0,W.jsxs)(u.B,{onConfirmAction:H,onConfirmActionSuccess:q,buttonDisabled:!T||!t,buttonView:"normal",dialogHeader:F("restart-pdisk-dialog-header"),dialogText:F("restart-pdisk-dialog-text"),retryButtonText:F("force-restart-pdisk-button"),withPopover:!0,popoverContent:F("restart-pdisk-not-allowed"),popoverDisabled:t,children:[(0,W.jsx)(o.I,{data:n.A}),F("restart-pdisk-button")]}),s?(0,W.jsx)(X,{decommission:G,onConfirmAction:J,onConfirmActionSuccess:q,buttonDisabled:!T||!t,popoverDisabled:t}):null]}),M.error?(0,W.jsx)(p.o,{error:M.error}):null,O?(0,W.jsx)(h.y,{className:ge("info"),rows:10}):(0,W.jsx)(g.Q,{pDisk:R,nodeId:S,className:ge("info")}),(0,W.jsx)("div",{className:ge("tabs"),children:(0,W.jsx)(a.t,{size:"l",items:be,activeTab:z,wrapTo:({id:e},t)=>{const s=T?(0,b.Ck)(D,S,{activeTab:e}):void 0;return(0,W.jsx)(v.E,{to:s,children:t},e)}})}),(()=>{switch(z){case"diskDistribution":return R?(0,W.jsx)("div",{className:ge("disk-distribution"),children:(0,W.jsx)(ue,{data:R})}):null;case"storage":return T?(0,W.jsx)(P.z,{nodeId:S,pDiskId:D,parentRef:c,viewContext:{nodeId:null===S||void 0===S?void 0:S.toString(),pDiskId:null===D||void 0===D?void 0:D.toString()}}):null;default:return null}})()]})}},89954:(e,t,s)=>{s.d(t,{O:()=>D});var i=s(59284),n=s(45720),o=s(16929),a=s(71153),l=s(18677),r=s(84476),d=s(33705),c=s(67884),u=s(99991),m=s(77506),p=s(48372);const h=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),v=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),g=(0,p.g4)("ydb-shorty-string",{ru:v,en:h});var f=s(60712);const b=(0,m.cn)("kv-shorty-string");function x({value:e="",limit:t=200,strict:s=!1,displayLength:n=!0,render:o=e=>e,onToggle:a,expandLabel:l=g("default_expand_label"),collapseLabel:r=g("default_collapse_label")}){const[d,u]=i.useState(!1),m=(d?r:l)+(n&&!d?g("chars_count",{count:e.length}):""),p=e.length>t+(s?0:m.length),h=d||!p?e:e.slice(0,t-4)+"\xa0...";return(0,f.jsxs)("div",{className:b(),children:[o(h),p?(0,f.jsx)(c.N,{className:b("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),u((e=>!e)),null===a||void 0===a||a()},children:m}):null]})}var k=s(41650);const y=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function j(e){return function(e){return!!e&&void 0!==y[e]}(e)?y[e]:"S_INFO"}const N=(0,m.cn)("kv-result-issues"),S=(0,m.cn)("kv-issues"),w=(0,m.cn)("kv-issue");function D({data:e,hideSeverity:t}){const[s,n]=i.useState(!1),o="string"===typeof e||null===e||void 0===e?void 0:e.issues,a=Array.isArray(o)&&o.length>0;return(0,f.jsxs)("div",{className:N(),children:[(0,f.jsxs)("div",{className:N("error-message"),children:[(()=>{let s;if("string"===typeof e)s=e;else{var n,o;const a=j(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.severity);s=(0,f.jsxs)(i.Fragment,{children:[t?null:(0,f.jsxs)(i.Fragment,{children:[(0,f.jsx)(A,{severity:a})," "]}),(0,f.jsx)("span",{className:N("error-message-text"),children:null===e||void 0===e||null===(o=e.error)||void 0===o?void 0:o.message})]})}return s})(),a&&(0,f.jsx)(r.$,{view:"normal",onClick:()=>n(!s),children:s?"Hide details":"Show details"})]}),a&&s&&(0,f.jsx)(I,{hideSeverity:t,issues:o})]})}function I({issues:e,hideSeverity:t}){const s=null===e||void 0===e?void 0:e.reduce(((e,t)=>{var s;const i=null!==(s=t.severity)&&void 0!==s?s:10;return Math.min(e,i)}),10);return(0,f.jsx)("div",{className:S(null),children:null===e||void 0===e?void 0:e.map(((e,i)=>(0,f.jsx)(C,{hideSeverity:t,issue:e,expanded:e===s},i)))})}function C({issue:e,hideSeverity:t,level:s=0}){const[n,o]=i.useState(!0),a=j(e.severity),l=e.issues,c=Array.isArray(l)&&l.length>0,u=n?"bottom":"right";return(0,f.jsxs)("div",{className:w({leaf:!c,"has-issues":c}),children:[(0,f.jsxs)("div",{className:w("line"),children:[c&&(0,f.jsx)(r.$,{view:"flat-secondary",onClick:()=>o(!n),className:w("arrow-toggle"),children:(0,f.jsx)(d.I,{direction:u,size:16})}),t?null:(0,f.jsx)(A,{severity:a}),(0,f.jsx)(T,{issue:e}),e.issue_code?(0,f.jsxs)("span",{className:w("code"),children:["Code: ",e.issue_code]}):null]}),c&&n&&(0,f.jsx)("div",{className:w("issues"),children:(0,f.jsx)(E,{issues:l,level:s+1,expanded:n})})]})}function T({issue:e}){var t;const s=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,k.kf)(t.row))return"";const{row:s,column:i}=t;return(0,k.kf)(i)?`${s}:${i}`:`line ${s}`}(e),i=window.ydbEditor,n=()=>(0,f.jsxs)("span",{className:w("message"),children:[s&&(0,f.jsx)("span",{className:w("place-text"),title:"Position",children:s}),(0,f.jsx)("div",{className:w("message-text"),children:(0,f.jsx)(x,{value:e.message,expandLabel:"Show full message"})})]}),{row:o,column:a}=null!==(t=e.position)&&void 0!==t?t:{};if(!((0,k.kf)(o)&&i))return n();return(0,f.jsx)(c.N,{href:"#",extraProps:{draggable:!1},onClick:()=>{const e={lineNumber:o,column:null!==a&&void 0!==a?a:0};i.setPosition(e),i.revealPositionInCenterIfOutsideViewport(e),i.focus()},view:"primary",children:n()})}function E(e){const{issues:t,level:s,expanded:i}=e;return(0,f.jsx)("div",{className:w("list"),children:t.map(((e,t)=>(0,f.jsx)(C,{issue:e,level:s,expanded:i},t)))})}const P={S_INFO:n.A,S_WARNING:o.A,S_ERROR:a.A,S_FATAL:l.A},z=(0,m.cn)("yql-issue-severity");function A({severity:e}){const t=e.slice(2).toLowerCase();return(0,f.jsxs)("span",{className:z({severity:t}),children:[(0,f.jsx)(u.I,{className:z("icon"),data:P[e]}),(0,f.jsx)("span",{className:z("title"),children:t})]})}},76938:(e,t,s)=>{s.d(t,{A:()=>n});var i=s(59284);const n=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},18677:(e,t,s)=>{s.d(t,{A:()=>n});var i=s(59284);const n=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},74321:(e,t,s)=>{s.d(t,{S:()=>d});var i=s(59284),n=s(64222),o=s(46898);function a(e){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),i.createElement("path",{d:"M4 7h9v3H4z"}))}function l(e){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),i.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const r=(0,s(69220).om)("checkbox"),d=i.forwardRef((function(e,t){const{size:s="m",indeterminate:d,disabled:c=!1,content:u,children:m,title:p,style:h,className:v,qa:g}=e,{checked:f,inputProps:b}=(0,n.v)(e),x=u||m,k=i.createElement("span",{className:r("indicator")},i.createElement("span",{className:r("icon"),"aria-hidden":!0},d?i.createElement(a,{className:r("icon-svg",{type:"dash"})}):i.createElement(l,{className:r("icon-svg",{type:"tick"})})),i.createElement("input",Object.assign({},b,{className:r("control")})),i.createElement("span",{className:r("outline")}));return i.createElement(o.m,{ref:t,title:p,style:h,size:s,disabled:c,className:r({size:s,disabled:c,indeterminate:d,checked:f},v),qa:g,control:k},x)}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6947.0d51a0cf.chunk.js b/ydb/core/viewer/monitoring/static/js/6947.0d51a0cf.chunk.js deleted file mode 100644 index 69add1650d6..00000000000 --- a/ydb/core/viewer/monitoring/static/js/6947.0d51a0cf.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6947],{45720:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75Z",clipRule:"evenodd"}))},10800:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},18677:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},71153:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.836 2.244c.962-1.665 3.366-1.665 4.328 0l4.917 8.505c.964 1.666-.239 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.164-3.751l4.917-8.505ZM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5Zm1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}))},6947:(e,t,l)=>{l.r(t),l.d(t,{TopPanel:()=>s});var n=l(59284),a=l(55299),o=l(49034),i=l(16258);l(82435);const r=({topAlert:e})=>{const t=n.useRef(null),l=(e=>{const[t,l]=n.useState(0);return n.useEffect((()=>{if(e.current){const{current:t}=e;l(t.clientHeight)}}),[e]),t})(t),a=n.useCallback((e=>{const t=document.getElementsByClassName("g-root").item(0);null===t||void 0===t||t.style.setProperty("--gn-aside-top-panel-height",e+"px")}),[]),i=n.useCallback((()=>{var e;t.current&&a((null===(e=t.current)||void 0===e?void 0:e.clientHeight)||0)}),[t,a]);return n.useLayoutEffect((()=>{const t=(0,o.d)(i,200,{leading:!0});return e&&(window.addEventListener("resize",t),t()),()=>{window.removeEventListener("resize",t),a(0)}}),[e,l,t,i,a]),{topRef:t,updateTopSize:i}},s=({topAlert:e})=>{const{topRef:t,updateTopSize:l}=r({topAlert:e}),[o,s]=n.useState(!0),c=n.useCallback((()=>{var t;s(!1),null===(t=null===e||void 0===e?void 0:e.onCloseTopAlert)||void 0===t||t.call(e)}),[e]);return n.useEffect((()=>{o||l()}),[o,l]),e&&e.message?n.createElement("div",{ref:t,className:(0,i.b)("pane-top",{opened:o})},o&&n.createElement(n.Fragment,null,n.createElement(a.F,{className:(0,i.b)("pane-top-alert",{centered:e.centered,dense:e.dense}),corners:"square",layout:"horizontal",theme:e.theme||"warning",icon:e.icon,title:e.title,message:e.message,actions:e.actions,onClose:e.closable?c:void 0}),n.createElement("div",{className:(0,i.b)("pane-top-divider")}))):null}},55299:(e,t,l)=>{l.d(t,{F:()=>j});var n=l(59284),a=l(81240),o=l(84476),i=l(80604),r=l(99991),s=l(63365),c=l(46423),d=l(87184);const m=n.createContext(null),u=()=>{const e=n.useContext(m);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},v=e=>{const{view:t}=u();return n.createElement(o.$,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};var w=l(69220);const g=(0,w.om)("alert"),h=({layout:e,view:t,children:l})=>n.createElement(m.Provider,{value:{layout:e,view:t}},l);var p=l(18677),f=l(10800),E=l(45720),b=l(43937);const A=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm3.1-8.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08l3-4Z",clipRule:"evenodd"}));var y=l(70825),C=l(71153),x=l(94420);const N=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.216 2.216 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414Z"}));var Z=l(27612);const k={danger:{filled:p.A,outlined:f.A},info:{filled:E.A,outlined:b.A},success:{filled:A,outlined:y.A},warning:{filled:C.A,outlined:x.A},utility:{filled:N,outlined:Z.A},normal:null};var L=l(98089);var R=l(72837);const z=JSON.parse('{"label_close":"Close"}'),M=JSON.parse('{"label_close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),O=(0,R.N)({en:z,ru:M},"Alert"),j=e=>{const{theme:t="normal",view:l="filled",layout:m="vertical",message:u,className:v,corners:w,style:p,onClose:f,align:E,qa:b}=e;return n.createElement(h,{layout:m,view:l},n.createElement(i.Z,{style:p,className:g({corners:w},(0,c.Y)({py:4,px:5},v)),theme:t,view:l,qa:b},n.createElement(d.s,{gap:"3",alignItems:E},"undefined"===typeof e.icon?n.createElement(j.Icon,{theme:t,view:l}):e.icon,n.createElement(d.s,{direction:"vertical"===m?"column":"row",gap:"5",grow:!0},n.createElement(d.s,{gap:"2",grow:!0,className:g("text-content")},n.createElement(d.s,{direction:"column",gap:"1",grow:!0,justifyContent:E},"string"===typeof e.title?n.createElement(j.Title,{text:e.title}):e.title,u)),Array.isArray(e.actions)?n.createElement(j.Actions,{items:e.actions}):e.actions),f&&n.createElement(o.$,{view:"flat",className:g("close-btn"),onClick:f,extraProps:{"aria-label":O("label_close")}},n.createElement(r.I,{data:a.A,size:18,className:(0,s.$)({color:"secondary"})})))))};j.Icon=({className:e,theme:t,view:l="filled",size:a=18})=>{const o=k[t];if(!o)return null;let i;return"success"===t?i="positive":"normal"!==t&&(i=t),n.createElement("div",{className:g("icon",(0,s.$)({color:i},e))},n.createElement(r.I,{data:o[l],size:a}))},j.Title=({text:e,className:t})=>n.createElement(L.E,{variant:"subheader-2",className:g("title",t)},e),j.Actions=({items:e,children:t,className:l})=>{const{layout:a}=u();return n.createElement(d.s,{className:g("actions",{minContent:"horizontal"===a},l),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===a?"center":"flex-start"},(null===e||void 0===e?void 0:e.map((({handler:e,text:t},l)=>n.createElement(v,{key:l,onClick:e},t))))||t)},j.Action=v},80604:(e,t,l)=>{l.d(t,{Z:()=>s});var n=l(27145),a=l(59284),o=l(46734),i=l(9296);const r=(0,l(69220).om)("card"),s=a.forwardRef((function(e,t){const{type:l="container",theme:s,view:c,size:d="m",children:m,className:u,onClick:v,disabled:w,selected:g}=e,h=(0,n.Tt)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),p="selection"===l,f="container"===l,E=("action"===l||p)&&Boolean(v)&&!w,b=f?"normal":void 0,A=f||p?"outlined":void 0,y=E?v:void 0,{onKeyDown:C}=(0,o.N)(v);return a.createElement(i.a,Object.assign({ref:t,role:E?"button":void 0,className:r({theme:s||b,view:c||A,type:l,selected:g,size:d,disabled:w,clickable:E},u),onClick:y,onKeyDown:E?C:void 0,tabIndex:E?0:void 0},h),m)}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6989.23c1d1b9.chunk.js b/ydb/core/viewer/monitoring/static/js/6989.23c1d1b9.chunk.js deleted file mode 100644 index e71eaa6a3b6..00000000000 --- a/ydb/core/viewer/monitoring/static/js/6989.23c1d1b9.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6989],{52248:(e,t,a)=>{a.d(t,{a:()=>s.a});var s=a(47334)},56735:(e,t,a)=>{a.d(t,{Q:()=>j});var s=a(87184),i=a(92459),l=a(78668),n=a(7435),d=a(46549),r=a(77506),o=a(86200),c=a(31684),u=a(90182),v=a(18863),p=a(25196),h=a(15132),m=a(33775),g=a(48372);const b=JSON.parse('{"type":"Type","path":"Path","guid":"GUID","serial-number":"Serial Number","shared-with-os":"SharedWithOs","drive-status":"Drive Status","state":"State","device":"Device","realtime":"Realtime","space":"Space","slots":"Slots","log-size":"Log Size","system-size":"System Size","links":"Links","developer-ui":"Developer UI","pdisk-page":"PDisk page","yes":"Yes"}'),x=(0,g.g4)("ydb-pDisk-info",{en:b});var N=a(60712);const f=(0,r.cn)("ydb-pdisk-info");function j({pDisk:e,nodeId:t,withPDiskPageLink:a,className:r}){const g=(0,u.N4)(l._5),[b,j,k,I]=function({pDisk:e,nodeId:t,withPDiskPageLink:a,isUserAllowedToMakeChanges:s}){const{PDiskId:l,Path:r,Guid:u,Category:v,Type:g,Device:b,Realtime:j,State:k,SerialNumber:I,TotalSize:y,AllocatedSize:w,StatusV2:T,NumActiveSlots:S,ExpectedSlotCount:D,LogUsedSize:z,LogTotalSize:P,SystemSize:A,SharedWithOs:C}=e||{},E=[];(0,n.f8)(v)&&E.push({label:x("type"),value:g}),(0,n.f8)(r)&&E.push({label:x("path"),value:r}),(0,n.f8)(u)&&E.push({label:x("guid"),value:u}),I&&E.push({label:x("serial-number"),value:I}),(0,n.f8)(C)&&E.push({label:x("shared-with-os"),value:x("yes")});const V=[];(0,n.f8)(T)&&V.push({label:x("drive-status"),value:T}),(0,n.f8)(k)&&V.push({label:x("state"),value:k}),(0,n.f8)(b)&&V.push({label:x("device"),value:(0,N.jsx)(m.k,{status:b})}),(0,n.f8)(j)&&V.push({label:x("realtime"),value:(0,N.jsx)(m.k,{status:j})});const O=[];O.push({label:x("space"),value:(0,N.jsx)(h.O,{value:w,capacity:y,formatValues:o.vX,colorizeProgress:!0})}),(0,n.f8)(S)&&(0,n.f8)(D)&&O.push({label:x("slots"),value:(0,N.jsx)(h.O,{value:S,capacity:D})}),(0,n.f8)(z)&&(0,n.f8)(P)&&O.push({label:x("log-size"),value:(0,N.jsx)(h.O,{value:z,capacity:P,formatValues:o.vX})}),(0,n.f8)(A)&&O.push({label:x("system-size"),value:(0,d.z3)({value:A})});const q=[];if((a||s)&&(0,n.f8)(l)&&(0,n.f8)(t)){const e=(0,i.Ck)(l,t),n=(0,c.ar)({nodeId:t,pDiskId:l});q.push({label:x("links"),value:(0,N.jsxs)("span",{className:f("links"),children:[a&&(0,N.jsx)(p.K,{title:x("pdisk-page"),url:e,external:!1}),s&&(0,N.jsx)(p.K,{title:x("developer-ui"),url:n})]})})}return[E,V,O,q]}({pDisk:e,nodeId:t,withPDiskPageLink:a,isUserAllowedToMakeChanges:g});return(0,N.jsxs)(s.s,{className:r,gap:2,direction:"row",wrap:!0,children:[(0,N.jsxs)(s.s,{direction:"column",gap:2,width:500,children:[(0,N.jsx)(v.z,{info:b,renderEmptyState:()=>null}),(0,N.jsx)(v.z,{info:k,renderEmptyState:()=>null})]}),(0,N.jsxs)(s.s,{direction:"column",gap:2,width:500,children:[(0,N.jsx)(v.z,{info:j,renderEmptyState:()=>null}),(0,N.jsx)(v.z,{info:I,renderEmptyState:()=>null})]})]})}},80420:(e,t,a)=>{a.d(t,{$:()=>g});var s=a(40336),i=a(63291),l=a(92459),n=a(78668),d=a(31684),r=a(90182),o=a(71661),c=a(10508),u=a(25196),v=a(48372);const p=JSON.parse('{"field_links":"Links","context_developer-ui":"Developer UI"}'),h=(0,v.g4)("ydb-tablet-name-wrapper",{en:p});var m=a(60712);function g({tabletId:e,database:t}){const a=(0,r.N4)(n._5),v=(0,l.DM)(e,{database:t});return(0,m.jsx)(o.s,{disabled:!a,delayClosing:200,content:(0,m.jsx)(s.u,{responsive:!0,children:(0,m.jsx)(s.u.Item,{name:h("field_links"),children:(0,m.jsx)(u.K,{title:h("context_developer-ui"),url:(0,d._t)(e)})})}),placement:["top","bottom"],behavior:i.m.Immediate,children:(0,m.jsx)(c.c,{name:e.toString(),path:v,hasClipboardButton:!0,showStatus:!1})})}},27775:(e,t,a)=>{a.d(t,{i:()=>n});var s=a(47665),i=a(58267),l=a(60712);function n({state:e}){return(0,l.jsx)(s.J,{theme:(0,i._8)(e),children:e})}},59984:(e,t,a)=>{a.d(t,{Y:()=>r});a(59284);var s=a(87184),i=a(77506),l=a(60712);const n=(0,i.cn)("tag"),d=({text:e,type:t})=>(0,l.jsx)("div",{className:n({type:t}),children:e}),r=({tags:e,tagsType:t,className:a="",gap:i=1})=>(0,l.jsx)(s.s,{className:a,gap:i,wrap:"wrap",alignItems:"center",children:e&&e.map(((e,a)=>(0,l.jsx)(d,{text:e,type:t},a)))})},49020:(e,t,a)=>{a.r(t),a.d(t,{Node:()=>je,STORAGE_ROLE:()=>fe});var s=a(59284),i=a(23871),l=a(61750),n=a(10755),d=a(52905),r=a(67087),o=a(90053),c=a(112),u=a(99991),v=a(77506),p=a(31684),h=a(10508),m=a(59984),g=a(60712);const b=(0,v.cn)("basic-node-viewer"),x=({node:e,additionalNodesProps:t,className:a})=>{let i;if(null!==t&&void 0!==t&&t.getNodeRef){const a=t.getNodeRef(e);i=a?(0,p.Un)(a):void 0}else if(e.NodeId){const t=(0,p.Kx)(e.NodeId);i=(0,p.Un)(t)}return(0,g.jsx)("div",{className:b(null,a),children:e?(0,g.jsxs)(s.Fragment,{children:[(0,g.jsx)("div",{className:b("title"),children:"Node"}),(0,g.jsx)(h.c,{status:e.SystemState,name:e.Host}),i&&(0,g.jsx)("a",{rel:"noopener noreferrer",className:b("link",{external:!0}),href:i,target:"_blank",children:(0,g.jsx)(u.I,{data:c.A})}),(0,g.jsxs)("div",{className:b("id"),children:[(0,g.jsx)("label",{className:b("label"),children:"NodeID"}),(0,g.jsx)("label",{children:e.NodeId})]}),e.DC&&(0,g.jsx)(m.Y,{tags:[e.DC]}),e.Roles&&(0,g.jsx)(m.Y,{tags:e.Roles,tagsType:"blue"})]}):(0,g.jsx)("div",{className:"error",children:"no data"})})};var N=a(44508),f=a(76086),j=a(18863);const k=(0,v.cn)("ydb-pool-usage"),I=e=>{let t="green";return e>60&&e<=80?t="yellow":e>80&&(t="red"),t},y=({data:e={}})=>{const{Threads:t,Name:a="Unknown",Usage:s=0}=e,i=s&&t,l=Math.floor(100*s),n=l>100?100:l;return(0,g.jsxs)("div",{className:k(),children:[(0,g.jsxs)("div",{className:k("info"),children:[(0,g.jsx)("div",{className:k("pool-name"),children:a}),i&&(0,g.jsxs)("div",{className:k("value"),children:[(0,g.jsxs)("div",{className:k("percents"),children:[l<1?"<1":l,"%"]}),(0,g.jsxs)("div",{className:k("threads"),children:["(\xd7",t,")"]})]})]}),(0,g.jsx)("div",{className:k("visual"),children:(0,g.jsx)("div",{className:k("usage-line",{type:I(n)}),style:{width:`${n}%`}})})]})};var w=a(15132);const T=(0,v.cn)("full-node-viewer"),S=({node:e,className:t})=>{var a,s,i,l;const n=null===e||void 0===e||null===(a=e.Endpoints)||void 0===a?void 0:a.map((({Name:e,Address:t})=>({label:e,value:t}))),d=[];null!==e&&void 0!==e&&null!==(s=e.Tenants)&&void 0!==s&&s.length&&d.push({label:"Database",value:e.Tenants[0]}),d.push({label:"Version",value:null===e||void 0===e?void 0:e.Version},{label:"Uptime",value:null===e||void 0===e?void 0:e.Uptime},{label:"DC",value:(null===e||void 0===e?void 0:e.DataCenterDescription)||(null===e||void 0===e?void 0:e.DC)},{label:"Rack",value:null===e||void 0===e?void 0:e.Rack});const r=null===e||void 0===e||null===(i=e.LoadAveragePercents)||void 0===i?void 0:i.map(((e,t)=>({label:f.GT[t],value:(0,g.jsx)(w.O,{value:e,percents:!0,colorizeProgress:!0,capacity:100})})));return(0,g.jsx)("div",{className:`${T()} ${t}`,children:e?(0,g.jsxs)("div",{className:T("common-info"),children:[(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:T("section-title"),children:"Pools"}),(0,g.jsx)("div",{className:T("section",{pools:!0}),children:null===e||void 0===e||null===(l=e.PoolStats)||void 0===l?void 0:l.map(((e,t)=>(0,g.jsx)(y,{data:e},t)))})]}),n&&n.length&&(0,g.jsx)(j.z,{title:"Endpoints",className:T("section"),info:n}),(0,g.jsx)(j.z,{title:"Common info",className:T("section"),info:d}),(0,g.jsx)(j.z,{title:"Load average",className:T("section",{average:!0}),info:r})]}):(0,g.jsx)("div",{className:"error",children:"no data"})})};var D=a(52248),z=a(92459),P=a(67028),A=a(40174),C=a(21334),E=a(78034);const V=e=>{var t;if(null===(t=e.SystemStateInfo)||void 0===t||!t.length)return{};const a=e.SystemStateInfo[0];return(0,E.q1)(a)},O=C.F.injectEndpoints({endpoints:e=>({getNodeInfo:e.query({queryFn:async({nodeId:e},{signal:t})=>{try{const a=await window.api.viewer.getNodeInfo(e,{signal:t});return{data:V(a)}}catch(a){return{error:a}}},providesTags:["All"]}),getNodeStructure:e.query({queryFn:async({nodeId:e},{signal:t})=>{try{return{data:await window.api.viewer.getStorageInfo({nodeId:e},{signal:t})}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"});var q=a(90182),R=a(41122),F=a(76768),L=a(29819),U=a(905),M=a.n(U),_=a(53850),G=a(86200),Q=a(27295);const $=(0,_.Mz)((e=>e),(e=>O.endpoints.getNodeStructure.select({nodeId:e}))),X=(0,_.Mz)((e=>e),((e,t)=>$(t)),((e,t)=>t(e).data)),Y=(0,_.Mz)(((e,t)=>Number(t)),((e,t)=>X(e,t)),((e,t)=>{const a=null===t||void 0===t?void 0:t.StoragePools,s={};null===a||void 0===a||a.forEach((t=>{const a=t.Groups;null===a||void 0===a||a.forEach((a=>{var i;const l=null===(i=a.VDisks)||void 0===i?void 0:i.filter((t=>t.NodeId===e)).map(Q.WT);null===l||void 0===l||l.forEach((a=>{var i;const l=(0,G.U9)(a.VDiskId),n=null===(i=a.PDisk)||void 0===i?void 0:i.PDiskId;s[String(n)]||(s[String(n)]={vDisks:{},...a.PDisk}),s[String(n)].vDisks[l]={...a,PDiskId:n,NodeId:e,StoragePoolName:t.Name}}))}))}));return Object.keys(s).reduce(((e,t)=>{const a=s[t].vDisks,i=Object.keys(a).reduce(((e,t,s)=>(e.push({...a[t],id:t,order:s}),e)),[]);return e[t]={...s[t],vDisks:i},e}),{})}));var B=a(45720),H=a(4557),K=a(84476),W=a(84375),J=a(33705),Z=a(56735),ee=a(33775),te=a(67440),ae=a(54090),se=a(67375),ie=a(7435),le=a(48372);const ne=JSON.parse('{"pdisk.developer-ui-button-title":"PDisk Developer UI page","vdisk.developer-ui-button-title":"VDisk Developer UI page"}'),de=JSON.parse('{"pdisk.developer-ui-button-title":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 PDisk \u0432 Developer UI","vdisk.developer-ui-button-title":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 VDisk \u0432 Developer UI"}'),re=(0,le.g4)("ydb-node-page",{en:ne,ru:de}),oe=(0,v.cn)("kv-node-structure");function ce({label:e,value:t,className:a}){return(0,g.jsxs)("span",{className:oe("pdisk-title-item",a),children:[e&&(0,g.jsxs)("span",{className:oe("pdisk-title-item-label"),children:[e,":"]}),(0,g.jsx)("span",{className:oe("pdisk-title-item-value"),children:t})]})}const ue=(0,v.cn)("kv-node-structure");var ve;!function(e){e.slotId="VDiskSlotId",e.VDiskState="VDiskState",e.Size="Size",e.Info="Info"}(ve||(ve={}));const pe={VDiskSlotId:"Slot id",VDiskState:"Status",Size:"Size",Info:""};function he({pDiskId:e,selectedVdiskId:t,nodeId:a}){return[{name:ve.slotId,header:pe[ve.slotId],width:100,render:({row:s})=>{const i=s.VDiskSlotId;let l=null;return(0,ie.f8)(a)&&(0,ie.f8)(e)&&(0,ie.f8)(i)&&(l=(0,p.Wg)({nodeId:a,pDiskId:e,vDiskSlotId:i})),(0,g.jsxs)("div",{className:ue("vdisk-id",{selected:s.id===t}),children:[(0,g.jsx)("span",{children:i}),l&&(0,g.jsx)(K.$,{size:"s",className:ue("external-button",{hidden:!0}),href:l,target:"_blank",title:re("vdisk.developer-ui-button-title"),children:(0,g.jsx)(u.I,{data:c.A})})]})},align:H.Ay.LEFT},{name:ve.VDiskState,header:pe[ve.VDiskState],width:70,render:({row:e})=>(0,g.jsx)(ee.k,{status:e.VDiskState===se.W.OK?ae.m.Green:ae.m.Red}),sortAccessor:e=>e.VDiskState===se.W.OK?1:0,align:H.Ay.CENTER},{name:ve.Size,header:pe[ve.Size],width:170,render:({row:e})=>(0,g.jsx)(w.O,{value:e.AllocatedSize,capacity:Number(e.AllocatedSize)+Number(e.AvailableSize),formatValues:G.vX,colorizeProgress:!0}),sortAccessor:e=>Number(e.AllocatedSize),align:H.Ay.CENTER},{name:ve.Info,header:pe[ve.Info],width:70,render:({row:e})=>(0,g.jsx)(W.A,{placement:["right"],content:(0,g.jsx)(te.E,{data:e,withTitle:!0,withVDiskPageLink:!0}),tooltipContentClassName:ue("vdisk-details"),children:(0,g.jsx)(K.$,{view:"flat-secondary",className:ue("vdisk-details-button",{selected:e.id===t}),children:(0,g.jsx)(u.I,{data:B.A,size:18})})}),sortable:!1}]}function me({id:e,data:t,selectedVdiskId:a,nodeId:i,unfolded:l}){const[n,d]=s.useState(null!==l&&void 0!==l&&l),{TotalSize:r=0,AvailableSize:o=0,Device:c,PDiskId:u,Type:v,vDisks:p}=t,h=Number(r),m=Number(o);return(0,g.jsxs)("div",{className:ue("pdisk"),id:e,children:[(0,g.jsxs)("div",{className:ue("pdisk-header"),children:[(0,g.jsxs)("div",{className:ue("pdisk-title-wrapper"),children:[(0,g.jsx)(ee.k,{status:c}),(0,g.jsx)(ce,{label:"PDiskID",value:u,className:ue("pdisk-title-id")}),(0,g.jsx)(ce,{value:v,className:ue("pdisk-title-type")}),(0,g.jsx)(w.O,{value:h-m,capacity:h,formatValues:G.vX,colorizeProgress:!0,className:ue("pdisk-title-size")}),(0,g.jsx)(ce,{label:"VDisks",value:p.length})]}),(0,g.jsx)(K.$,{onClick:n?()=>{d(!1)}:()=>{d(!0)},view:"flat-secondary",children:(0,g.jsx)(J.I,{direction:n?"top":"bottom"})})]}),n&&(M()(t)?(0,g.jsx)("div",{children:"No information about PDisk"}):(0,g.jsxs)("div",{children:[(0,g.jsx)(Z.Q,{pDisk:t,nodeId:i,className:ue("pdisk-details"),withPDiskPageLink:!0}),(0,g.jsxs)("div",{className:ue("vdisks-container"),children:[(0,g.jsx)("div",{className:ue("vdisks-header"),children:"VDisks"}),(0,g.jsx)(H.Ay,{theme:"yandex-cloud",data:p,columns:he({nodeId:i,pDiskId:u,selectedVdiskId:a}),settings:{...f.N3,dynamicRender:!1},rowClassName:e=>e.id===a?ue("selected-vdisk"):""})]})]}))]})}const ge=(0,v.cn)("kv-node-structure");function be({type:e,id:t}){return`${e}-${t}`}const xe=function({nodeId:e,className:t}){const a=(0,q.N4)((t=>Y(t,e))),[i]=(0,q.Nt)(),{currentData:l,isFetching:n,error:d}=O.useGetNodeStructureQuery({nodeId:e},{pollingInterval:i}),o=n&&void 0===l,[{pdiskId:c,vdiskId:u}]=(0,r.useQueryParams)({pdiskId:r.StringParam,vdiskId:r.StringParam}),v=s.useRef(null),p=s.useRef(!1);return s.useEffect((()=>{if(!M()(a)&&!p.current&&v.current&&c){const t=document.getElementById(be({type:"pdisk",id:c}));let s=0;if(u){var e;const t=null===(e=a[c])||void 0===e?void 0:e.vDisks,i=null===t||void 0===t?void 0:t.find((e=>e.id===u)),l=i?document.querySelector(".data-table"):void 0,n=(null===i||void 0===i?void 0:i.order)||0;l&&(s+=l.offsetTop+40*n)}t&&(v.current.scrollTo({behavior:"smooth",top:s||t.offsetTop}),p.current=!0)}}),[a,c,u]),(0,g.jsxs)("div",{className:ge(),ref:v,children:[d?(0,g.jsx)(N.o,{error:d,className:ge("error")}):null,(0,g.jsx)("div",{className:t,children:o?(0,g.jsx)(D.a,{size:"m"}):d&&!l?null:(()=>{const t=Object.keys(a);return t.length>0?t.map((t=>(0,g.jsx)(me,{data:a[t],id:be({type:"pdisk",id:t}),unfolded:c===t,selectedVdiskId:u,nodeId:e},t))):"There is no information about node structure."})()})]})},Ne=(0,v.cn)("node"),fe="Storage";function je(e){var t,a;const c=s.useRef(null),u=(0,q.YQ)(),v=null!==(t=(0,n.W5)(z.Ay.node))&&void 0!==t?t:Object.create(null),{id:p,activeTab:h}=v.params,[{database:m}]=(0,r.useQueryParams)(L.Gi),[b]=(0,q.Nt)(),{currentData:f,isFetching:j,error:k}=O.useGetNodeInfoQuery({nodeId:p},{pollingInterval:b}),I=j&&void 0===f,y=f,w=(0,P.Pm)(),T=(0,P.c2)(),{activeTabVerified:C,nodeTabs:E}=s.useMemo((()=>{var e;let t=(null===y||void 0===y||null===(e=y.Roles)||void 0===e?void 0:e.find((e=>e===fe)))?L.qn:L.qn.filter((e=>e.id!==L.O3));T&&(t=t.filter((e=>e.id!==L.mX)));const a=t.map((e=>({...e,title:e.name})));let s=a.find((({id:e})=>e===h));return s||(s=a[0]),{activeTabVerified:s,nodeTabs:a}}),[h,y,T]),V=(null===y||void 0===y||null===(a=y.Tenants)||void 0===a?void 0:a[0])||(null===m||void 0===m?void 0:m.toString());let U;if(y){var M;const e=!(null!==y&&void 0!==y&&null!==(M=y.Tenants)&&void 0!==M&&M[0]);U=e?"Storage":"Compute"}s.useEffect((()=>{u((0,A.g)("node",{tenantName:V,nodeRole:U,nodeId:p}))}),[u,V,p,U]);const _=()=>{switch(C.id){case L.O3:return(0,g.jsx)("div",{className:Ne("storage"),ref:c,children:(0,g.jsx)(R.p,{nodeId:p,parentRef:c})});case L.q7:return(0,g.jsx)(F.C,{nodeId:p,database:V,className:Ne("node-page-wrapper")});case L.mX:return(0,g.jsx)(xe,{className:Ne("node-page-wrapper"),nodeId:p});case L.wS:return(0,g.jsx)(S,{node:y,className:Ne("overview-wrapper")});default:return!1}};return I||!w?(0,g.jsx)(D.a,{size:"l"}):y?(0,g.jsxs)("div",{className:Ne(null,e.className),children:[(0,g.jsx)(l.mg,{titleTemplate:`%s \u2014 ${y.Host} \u2014 YDB Monitoring`,defaultTitle:`${y.Host} \u2014 YDB Monitoring`,children:(0,g.jsx)("title",{children:C.title})}),(0,g.jsx)(x,{node:y,additionalNodesProps:e.additionalNodesProps,className:Ne("header")}),k?(0,g.jsx)(N.o,{error:k,className:Ne("error")}):null,(0,g.jsxs)("div",{className:Ne("tabs"),children:[(0,g.jsx)(i.t,{size:"l",items:E,activeTab:C.id,wrapTo:({id:e},t)=>(0,g.jsx)(d.N_,{to:(0,L.vI)(p,{database:V},e),className:Ne("tab"),children:t},e),allowNotSelected:!0}),(0,g.jsx)(o.E,{})]}),(0,g.jsx)("div",{className:Ne("content"),children:_()})]}):k?(0,g.jsx)(N.o,{error:k}):(0,g.jsx)("div",{className:"error",children:"no node data"})}},88616:(e,t,a)=>{a.d(t,{Q:()=>T});var s=a(76938),i=a(98089),l=a(99991),n=a(22983),d=a(10508),r=a(44294),o=a(17594),c=a(19228),u=a(80420),v=a(27775),p=a(78668),h=a(21545),m=a(6354),g=a(76086),b=a(86200),x=a(90182),N=a(29819),f=a(48372);const j=JSON.parse('{"noTabletsData":"No tablets data","Type":"Type","Tablet":"Tablet","State":"State","Node ID":"Node ID","Node FQDN":"Node FQDN","Generation":"Generation","Uptime":"Uptime","dialog.kill-header":"Restart tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet"}'),k=(0,f.g4)("ydb-tablets",{en:j});var I=a(60712);function y({database:e}){return[{name:"Type",width:150,get header(){return k("Type")},render:({row:e})=>{const t=!1===e.Leader;return(0,I.jsxs)("span",{children:[e.Type," ",t?(0,I.jsx)(i.E,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return k("Tablet")},render:({row:t})=>t.TabletId?(0,I.jsx)(u.$,{tabletId:t.TabletId,database:e}):g.Pd},{name:"State",get header(){return k("State")},render:({row:e})=>(0,I.jsx)(v.i,{state:e.State})},{name:"NodeId",get header(){return k("Node ID")},render:({row:e})=>{const t=void 0===e.NodeId?void 0:(0,N.vI)(e.NodeId);return(0,I.jsx)(r.E,{to:t,children:e.NodeId})},align:"right"},{name:"fqdn",get header(){return k("Node FQDN")},render:({row:e})=>e.fqdn?(0,I.jsx)(d.c,{name:e.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,I.jsx)("span",{children:"\u2014"})},{name:"Generation",get header(){return k("Generation")},align:"right"},{name:"Uptime",get header(){return k("Uptime")},render:({row:e})=>(0,b.H7)(e.ChangeTime),sortAccessor:e=>-Number(e.ChangeTime),align:"right"},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:({row:e})=>(0,I.jsx)(w,{...e})}]}function w(e){const t=e.State===m.r.Stopped,a=(0,x.N4)(p._5),[i]=h.X.useKillTabletMutation(),d=e.TabletId;return d?(0,I.jsx)(n.B,{buttonView:"outlined",buttonTitle:k("dialog.kill-header"),dialogHeader:k("dialog.kill-header"),dialogText:k("dialog.kill-text"),onConfirmAction:()=>i({id:d}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:k(a?"dialog.kill-header":"controls.kill-not-allowed"),popoverPlacement:["right","auto"],popoverDisabled:!1,children:(0,I.jsx)(l.I,{data:s.A})}):null}function T({database:e,tablets:t,className:a,loading:s}){return s?(0,I.jsx)(c.Q,{}):(0,I.jsx)(o.l,{wrapperClassName:a,columns:y({database:e}),data:t,settings:g.N3,emptyDataMessage:k("noTabletsData")})}},76768:(e,t,a)=>{a.d(t,{C:()=>N});var s=a(44992),i=a(44508),l=a(53850),n=a(62060),d=a.n(n),r=a(21334),o=a(24600);const c=r.F.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getTabletsInfo(e,{signal:t})}}catch(a){return{error:a}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),u=(0,l.Mz)((e=>e),(e=>c.endpoints.getTabletsInfo.select(e)),{argsMemoize:l.i5,argsMemoizeOptions:{equalityCheck:d()}}),v=(0,l.Mz)((e=>e),((e,t)=>u(t)),((e,t)=>t(e).data)),p=(0,l.Mz)(((e,t)=>v(e,t)),(e=>(0,o.E)(e)),((e,t)=>null!==e&&void 0!==e&&e.TabletStateInfo?t?e.TabletStateInfo.map((e=>{const a=void 0===e.NodeId?void 0:t.get(e.NodeId);return{...e,fqdn:a}})):e.TabletStateInfo:[]));var h=a(77506),m=a(90182),g=a(88616),b=a(60712);const x=(0,h.cn)("tablets");function N({nodeId:e,path:t,database:a,className:l}){const[n]=(0,m.Nt)();let d={};const r=void 0===e?void 0:String(e);void 0!==r?d={nodeId:r,database:a}:t&&(d={path:t,database:a});const{currentData:o,isFetching:u,error:v}=c.useGetTabletsInfoQuery(0===Object.keys(d).length?s.hT:d,{pollingInterval:n}),h=u&&void 0===o,N=(0,m.N4)((e=>p(e,d)));return(0,b.jsxs)("div",{className:x(null,l),children:[v?(0,b.jsx)(i.o,{error:v}):null,o||h?(0,b.jsx)(g.Q,{tablets:N,database:a,loading:h}):null]})}},21545:(e,t,a)=>{a.d(t,{X:()=>i});var s=a(78034);const i=a(21334).F.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async({id:e,database:t},{signal:a})=>{try{const[i,l,n]=await Promise.all([window.api.viewer.getTablet({id:e,database:t},{signal:a}),window.api.viewer.getTabletHistory({id:e,database:t},{signal:a}),window.api.viewer.getNodesList({signal:a})]),d=(0,s.pl)(n),r=Object.keys(l).reduce(((e,t)=>{var a;const s=null===(a=l[t])||void 0===a?void 0:a.TabletStateInfo;if(s&&s.length){const a=s.find((e=>e.Leader))||s[0],{ChangeTime:i,Generation:l,State:n,Leader:r,FollowerId:o}=a,c=d&&t?d.get(Number(t)):void 0;"Dead"!==n&&e.push({nodeId:t,generation:l,changeTime:i,state:n,leader:r,followerId:o,fqdn:c})}return e}),[]),{TabletStateInfo:o=[]}=i,[c={}]=o,{TabletId:u}=c;return{data:{id:u,data:c,history:r}}}catch(i){return{error:i}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async({tenantId:e},{signal:t})=>{try{const a=await window.api.viewer.getTabletDescribe(e,{signal:t}),{SchemeShard:s,PathId:i}=e;return{data:(null===a||void 0===a?void 0:a.Path)||`${s}:${i}`}}catch(a){return{error:a}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async({id:e,hiveId:t},{signal:a})=>{try{return{data:await window.api.tablets.getTabletFromHive({id:e,hiveId:t},{signal:a})}}catch(s){return{error:s}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async({id:e})=>{try{return{data:await window.api.tablets.killTablet(e)}}catch(t){return{error:t}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.stopTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async({id:e,hiveId:t})=>{try{return{data:await window.api.tablets.resumeTablet(e,t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},76938:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(59284);const i=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5Z",clipRule:"evenodd"}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6990.70257b9b.chunk.js b/ydb/core/viewer/monitoring/static/js/6990.70257b9b.chunk.js new file mode 100644 index 00000000000..259700e2fe8 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/6990.70257b9b.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6990],{56990:(e,l,t)=>{t.r(l),t.d(l,{ReactComponent:()=>m,default:()=>h});var a,r,i,n,c,d,o,s,f=t(59284);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},u.apply(null,arguments)}function p({title:e,titleId:l,...t},p){return f.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:230,height:230,fill:"none",ref:p,"aria-labelledby":l},t),e?f.createElement("title",{id:l},e):null,a||(a=f.createElement("path",{fill:"#BECFE0",fillOpacity:.8,fillRule:"evenodd",d:"M169.001 51.666c5.523 0 10 4.477 10 10v21.017l18.197-10.506c4.783-2.762 10.899-1.123 13.66 3.66 2.761 4.783 1.123 10.899-3.66 13.66l-18.197 10.507 18.198 10.506c4.783 2.762 6.421 8.878 3.66 13.661-2.762 4.782-8.877 6.421-13.66 3.66l-18.198-10.506v21.008c0 5.523-4.477 10-10 10-5.522 0-10-4.477-10-10v-21.009l-18.199 10.507c-4.782 2.761-10.898 1.122-13.66-3.66-2.761-4.783-1.122-10.899 3.66-13.661l18.199-10.506-18.198-10.507c-4.783-2.761-6.421-8.877-3.66-13.66 2.762-4.783 8.877-6.422 13.66-3.66l18.198 10.507V61.666c0-5.523 4.478-10 10-10Z",clipRule:"evenodd"})),r||(r=f.createElement("path",{fill:"#E7E7E7",fillRule:"evenodd",d:"M171.523 95.922a11.003 11.003 0 0 1 1.099 8.347l-13.208 49.291c-1.572 5.868-7.604 9.351-13.472 7.778l-25.356-6.794a44.998 44.998 0 0 1-.53 1.929l25.368 6.797c6.935 1.858 14.064-2.257 15.922-9.192l13.207-49.291c.893-3.33.426-6.879-1.298-9.865L155.598 64.34a12.999 12.999 0 0 0-7.894-6.057l-29.972-8.031c-6.935-1.858-14.063 2.257-15.922 9.192l-11.328 42.277c.64.192 1.276.398 1.905.618l11.355-42.377c1.573-5.868 7.604-9.35 13.472-7.778l29.973 8.03a11 11 0 0 1 6.679 5.126l17.657 30.582Z",clipRule:"evenodd"})),i||(i=f.createElement("path",{fill:"#FF5958",fillOpacity:.8,d:"M35.388 155.273c-6.29-23.472 7.64-47.599 31.113-53.889 23.472-6.289 47.599 7.641 53.889 31.113 6.289 23.473-7.641 47.599-31.113 53.889-23.473 6.289-47.6-7.64-53.889-31.113Z"})),n||(n=f.createElement("path",{stroke:"#E7E7E7",strokeWidth:2,d:"M60.636 117.734c53.586-33.459-26.868-81.505-36.557-61.318-11.802 24.59 99.395 51.098 128.865-26.3"})),f.createElement("mask",{id:"b",width:89,height:89,x:33,y:99,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},c||(c=f.createElement("path",{fill:"#FF5958",fillOpacity:.9,d:"M35.388 155.273c-6.29-23.472 7.64-47.599 31.113-53.889 23.472-6.289 47.599 7.641 53.889 31.113 6.289 23.473-7.641 47.599-31.113 53.889-23.473 6.289-47.6-7.64-53.889-31.113Z"}))),d||(d=f.createElement("g",{filter:"url(#a)",mask:"url(#b)"},f.createElement("path",{stroke:"#E7E7E7",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.6,strokeWidth:2,d:"M172.389 95.422a12.004 12.004 0 0 1 1.199 9.106l-13.208 49.291c-1.715 6.401-8.295 10.2-14.697 8.485L91.591 147.81c-6.401-1.715-10.2-8.295-8.485-14.697l19.67-73.41c1.716-6.402 8.296-10.2 14.697-8.485l29.972 8.03a11.998 11.998 0 0 1 7.287 5.592l17.657 30.582Z"}))),o||(o=f.createElement("g",{filter:"url(#c)"},f.createElement("path",{fill:"#fff",fillOpacity:.72,fillRule:"evenodd",d:"M80.866 130.432a6.359 6.359 0 1 1-12.284 3.29 6.359 6.359 0 0 1 12.284-3.29Zm4.817-1.291c1.621 6.052-1.97 12.273-8.022 13.894-6.052 1.622-12.273-1.97-13.895-8.022-1.621-6.052 1.97-12.272 8.022-13.894 6.052-1.622 12.273 1.97 13.895 8.022Zm-21.346 32.565c-.154-.577-.009-2.61 2.877-5.555 2.665-2.721 6.917-5.33 12.158-6.734 5.24-1.404 10.227-1.271 13.896-.247 3.971 1.108 5.114 2.796 5.268 3.372a3.116 3.116 0 0 1-2.204 3.817l-28.178 7.55a3.116 3.116 0 0 1-3.817-2.203ZM78.081 144.6c-12.054 3.23-20.238 12.134-18.56 18.396a8.103 8.103 0 0 0 9.924 5.73l28.178-7.55a8.104 8.104 0 0 0 5.73-9.925c-1.678-6.261-13.218-9.881-25.272-6.651Z",clipRule:"evenodd"}))),s||(s=f.createElement("defs",null,f.createElement("filter",{id:"a",width:113.303,height:133.91,x:71.693,y:39.806,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},f.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),f.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),f.createElement("feGaussianBlur",{result:"effect1_foregroundBlur_1301_35376",stdDeviation:5})),f.createElement("filter",{id:"c",width:73.289,height:73.288,x:41.018,y:106.391,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},f.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),f.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),f.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),f.createElement("feOffset",null),f.createElement("feGaussianBlur",{stdDeviation:1.917}),f.createElement("feComposite",{in2:"hardAlpha",k2:-1,k3:1,operator:"arithmetic"}),f.createElement("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"}),f.createElement("feBlend",{in2:"shape",result:"effect1_innerShadow_1301_35376"})))))}const m=f.forwardRef(p),h=t.p+"static/media/error.ca9e31d5d3dc34da07e11a00f7af0842.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6990.d7efc318.chunk.js b/ydb/core/viewer/monitoring/static/js/6990.d7efc318.chunk.js deleted file mode 100644 index 54ce37e468f..00000000000 --- a/ydb/core/viewer/monitoring/static/js/6990.d7efc318.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[6990],{56990:(e,t,l)=>{l.r(t),l.d(t,{ReactComponent:()=>h,default:()=>m});var a,r,i,c,n,o,d,s,f=l(59284);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},u.apply(this,arguments)}function p({title:e,titleId:t,...l},p){return f.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:230,height:230,fill:"none",ref:p,"aria-labelledby":t},l),e?f.createElement("title",{id:t},e):null,a||(a=f.createElement("path",{fill:"#BECFE0",fillOpacity:.8,fillRule:"evenodd",d:"M169.001 51.666c5.523 0 10 4.477 10 10v21.017l18.197-10.506c4.783-2.762 10.899-1.123 13.66 3.66 2.761 4.783 1.123 10.899-3.66 13.66l-18.197 10.507 18.198 10.506c4.783 2.762 6.421 8.878 3.66 13.661-2.762 4.782-8.877 6.421-13.66 3.66l-18.198-10.506v21.008c0 5.523-4.477 10-10 10-5.522 0-10-4.477-10-10v-21.009l-18.199 10.507c-4.782 2.761-10.898 1.122-13.66-3.66-2.761-4.783-1.122-10.899 3.66-13.661l18.199-10.506-18.198-10.507c-4.783-2.761-6.421-8.877-3.66-13.66 2.762-4.783 8.877-6.422 13.66-3.66l18.198 10.507V61.666c0-5.523 4.478-10 10-10Z",clipRule:"evenodd"})),r||(r=f.createElement("path",{fill:"#E7E7E7",fillRule:"evenodd",d:"M171.523 95.922a11.003 11.003 0 0 1 1.099 8.347l-13.208 49.291c-1.572 5.868-7.604 9.351-13.472 7.778l-25.356-6.794a44.998 44.998 0 0 1-.53 1.929l25.368 6.797c6.935 1.858 14.064-2.257 15.922-9.192l13.207-49.291c.893-3.33.426-6.879-1.298-9.865L155.598 64.34a12.999 12.999 0 0 0-7.894-6.057l-29.972-8.031c-6.935-1.858-14.063 2.257-15.922 9.192l-11.328 42.277c.64.192 1.276.398 1.905.618l11.355-42.377c1.573-5.868 7.604-9.35 13.472-7.778l29.973 8.03a11 11 0 0 1 6.679 5.126l17.657 30.582Z",clipRule:"evenodd"})),i||(i=f.createElement("path",{fill:"#FF5958",fillOpacity:.8,d:"M35.388 155.273c-6.29-23.472 7.64-47.599 31.113-53.889 23.472-6.289 47.599 7.641 53.889 31.113 6.289 23.473-7.641 47.599-31.113 53.889-23.473 6.289-47.6-7.64-53.889-31.113Z"})),c||(c=f.createElement("path",{stroke:"#E7E7E7",strokeWidth:2,d:"M60.636 117.734c53.586-33.459-26.868-81.505-36.557-61.318-11.802 24.59 99.395 51.098 128.865-26.3"})),f.createElement("mask",{id:"b",width:89,height:89,x:33,y:99,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},n||(n=f.createElement("path",{fill:"#FF5958",fillOpacity:.9,d:"M35.388 155.273c-6.29-23.472 7.64-47.599 31.113-53.889 23.472-6.289 47.599 7.641 53.889 31.113 6.289 23.473-7.641 47.599-31.113 53.889-23.473 6.289-47.6-7.64-53.889-31.113Z"}))),o||(o=f.createElement("g",{filter:"url(#a)",mask:"url(#b)"},f.createElement("path",{stroke:"#E7E7E7",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.6,strokeWidth:2,d:"M172.389 95.422a12.004 12.004 0 0 1 1.199 9.106l-13.208 49.291c-1.715 6.401-8.295 10.2-14.697 8.485L91.591 147.81c-6.401-1.715-10.2-8.295-8.485-14.697l19.67-73.41c1.716-6.402 8.296-10.2 14.697-8.485l29.972 8.03a11.998 11.998 0 0 1 7.287 5.592l17.657 30.582Z"}))),d||(d=f.createElement("g",{filter:"url(#c)"},f.createElement("path",{fill:"#fff",fillOpacity:.72,fillRule:"evenodd",d:"M80.866 130.432a6.359 6.359 0 1 1-12.284 3.29 6.359 6.359 0 0 1 12.284-3.29Zm4.817-1.291c1.621 6.052-1.97 12.273-8.022 13.894-6.052 1.622-12.273-1.97-13.895-8.022-1.621-6.052 1.97-12.272 8.022-13.894 6.052-1.622 12.273 1.97 13.895 8.022Zm-21.346 32.565c-.154-.577-.009-2.61 2.877-5.555 2.665-2.721 6.917-5.33 12.158-6.734 5.24-1.404 10.227-1.271 13.896-.247 3.971 1.108 5.114 2.796 5.268 3.372a3.116 3.116 0 0 1-2.204 3.817l-28.178 7.55a3.116 3.116 0 0 1-3.817-2.203ZM78.081 144.6c-12.054 3.23-20.238 12.134-18.56 18.396a8.103 8.103 0 0 0 9.924 5.73l28.178-7.55a8.104 8.104 0 0 0 5.73-9.925c-1.678-6.261-13.218-9.881-25.272-6.651Z",clipRule:"evenodd"}))),s||(s=f.createElement("defs",null,f.createElement("filter",{id:"a",width:113.303,height:133.91,x:71.693,y:39.806,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},f.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),f.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),f.createElement("feGaussianBlur",{result:"effect1_foregroundBlur_1301_35376",stdDeviation:5})),f.createElement("filter",{id:"c",width:73.289,height:73.288,x:41.018,y:106.391,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},f.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),f.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),f.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),f.createElement("feOffset",null),f.createElement("feGaussianBlur",{stdDeviation:1.917}),f.createElement("feComposite",{in2:"hardAlpha",k2:-1,k3:1,operator:"arithmetic"}),f.createElement("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0"}),f.createElement("feBlend",{in2:"shape",result:"effect1_innerShadow_1301_35376"})))))}const h=f.forwardRef(p),m=l.p+"static/media/error.ca9e31d5d3dc34da07e11a00f7af0842.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7118.ce0cd05f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/7118.ce0cd05f.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/7118.ce0cd05f.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/7118.ce0cd05f.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/7148.ef54cd41.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/7148.ef54cd41.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/7148.ef54cd41.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/7148.ef54cd41.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/7206.6b7278f5.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/7206.6b7278f5.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/7206.6b7278f5.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/7206.6b7278f5.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/7329.514640a4.chunk.js b/ydb/core/viewer/monitoring/static/js/7329.514640a4.chunk.js new file mode 100644 index 00000000000..0b04f501d5c --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/7329.514640a4.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7329],{67329:(e,l,t)=>{t.r(l),t.d(l,{ReactComponent:()=>b,default:()=>M});var c,a,h,v,m,n,z,d,i,r,f,s,o,p=t(59284);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e},E.apply(null,arguments)}function u({title:e,titleId:l,...t},u){return p.createElement("svg",E({width:349,height:357,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:u,"aria-labelledby":l},t),e?p.createElement("title",{id:l},e):null,c||(c=p.createElement("path",{d:"M275.033 85.83c0 24.7-9.9 83.9-9.9 117.1 0 33.2 0 106.3-27.8 134.1-27.8 27.8-61.9 16.1-61.9 16.1s-46.7 13-76.3-14.8c-29.6-27.8-60.1-83.5-69.1-115.3-9.9-35-26.5-49.3-27.8-56.5-1.3-7.2 3.6-12.1 12.1-12.6 8.5-.4 22.9 4 34.5 22 11.6 18 17.5 26 23.8 35.9 6.3 9.9 20.6 23.3 20.6 23.3s.4-44.9 1.3-64.1c.9-19.3-1.8-111.7 1.8-132.3 3.6-20.6 26.5-20.2 28.7-4 2.2 16.1 8.8 66.8 9.8 79.8s3.7 44.4 3.7 44.4l7.6-2.7s-.9-105.8-.9-132.9c0-29.2 28.7-29.2 32.3-4 3.6 25.2 6.7 142.8 6.7 142.8l6.7 2.7s2.2-111.7 5.8-129.6c3.6-17.9 26.5-17.5 30.1 4.9 3.6 22.4 1.3 72.2.9 94.2s-.9 43.5-.9 43.5l5.4 4s11-73.3 14.4-99.1c3.7-27.8 28.4-21.5 28.4 3.1z",fill:"#ECF2F9"})),a||(a=p.createElement("path",{d:"M279.233 267.33l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5V99.43c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#FF4645"})),h||(h=p.createElement("path",{d:"M191.333 140.128l-32.3-1.4c-1.9-.1-3.8.6-5.2 1.9l-24.3 22.8c-1.4 1.3-2.2 3.2-2.2 5.2v33.7c0 2 .8 3.8 2.2 5.2l24.3 22.8c1.4 1.3 3.3 2 5.2 1.9l32.3-1.4c1.8-.1 3.6-.9 4.9-2.2l21.5-22.8c1.2-1.3 1.9-3.1 1.9-4.9v-31c0-1.8-.7-3.6-1.9-4.9l-21.5-22.8c-1.3-1.3-3.1-2.1-4.9-2.1z",fill:"#fff"})),v||(v=p.createElement("path",{d:"M203.433 196.428l-58.1.6c-1.6 0-3-1.3-3-3v-17.2c0-1.6 1.3-3 3-3l58.1.6c1.6 0 2.9 1.3 2.9 3v16c0 1.7-1.3 3-2.9 3z",fill:"#FF4645"})),m||(m=p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.733 104.63c0 3.4-2.7 6-6.1 5.8-3.4-.1-6.1-3-6.1-6.4 0-3.4 2.8-6 6.1-5.8 3.4.2 6.1 3 6.1 6.4zm19.7.9c0 3.3-2.7 5.9-6 5.8-3.3-.1-6-3-6-6.3s2.7-5.9 6-5.8c3.3.1 6 2.9 6 6.3zm13.4 6.498c3.2.2 5.8-2.4 5.8-5.7 0-3.3-2.6-6.1-5.8-6.2-3.3-.2-5.9 2.4-5.9 5.7 0 3.3 2.7 6.1 5.9 6.2z",fill:"#fff"})),n||(n=p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M248.733 248.231h84.6v-62c0-22.5-18.3-40.7-40.7-40.7h-3.2c-22.5 0-40.7 18.3-40.7 40.7v62zm70.2-14.3h-56v-47.7c0-14.6 11.9-26.4 26.4-26.4h3.2c14.6 0 26.4 11.9 26.4 26.4v47.7z",fill:"#DEB700"})),z||(z=p.createElement("path",{d:"M340.533 206.43s-16.3-2.7-17.3-2.7l-78.6 1.1c-7 .1-13.7 6.5-13.7 13.1v58.6c0 4.7 2.9 8.5 7 10.1 1.5.6 3.1.9 4.8.9l12.5 2.3 7.6-3.7 60.4-4.3c6.2-.4 11.2-5.8 11.2-11.9v-43.3l6.1-20.2z",fill:"#DEB700"})),d||(d=p.createElement("path",{d:"M337.633 284.332l-79.6 5.7c-7 .5-12.7-4.4-12.7-11v-59.6c0-6.6 5.7-12 12.7-12.1l79.6-1.1c6.2-.1 11.2 4.8 11.2 10.9v55.4c-.1 6-5 11.3-11.2 11.8z",fill:"#FBC900"})),i||(i=p.createElement("path",{d:"M313.033 236.931c0-6.3-5.2-11.4-11.7-11.4-6.7 0-12.3 5.4-12.3 12 0 5 3.2 9.1 7.6 10.7v15.5c0 2.5 2.1 4.4 4.7 4.2 2.6-.2 4.6-2.5 4.6-4.9v-15.1c4.3-2.1 7.1-6.3 7.1-11z",fill:"#00236B"})),r||(r=p.createElement("path",{d:"M308.333 236.93c0-5.5-4-10.1-9.3-11.2-5.6 1.1-10 6-10 11.8 0 5 3.2 9.1 7.6 10.7v15.5c0 1.5.8 2.8 2 3.5 1.6-.9 2.6-2.5 2.6-4.3v-15.1c4.2-2 7.1-6.2 7.1-10.9z",fill:"#18123D"})),f||(f=p.createElement("path",{d:"M21.733 41.629a2 2 0 0 0-4 0h4zm-4 8.2a2 2 0 1 0 4 0h-4zm4 17.198a2 2 0 0 0-4 0h4zm-4 8.9a2 2 0 1 0 4 0h-4zm19.2-15.197a2 2 0 0 0 0-4v4zm-8.3-4a2 2 0 1 0 0 4v-4zm-17.8 4a2 2 0 0 0 0-4v4zm-8.3-4a2 2 0 1 0 0 4v-4zm15.2-15.101v8.2h4v-8.2h-4zm0 25.398v8.9h4v-8.9h-4zm19.2-10.297h-8.3v4h8.3v-4zm-26.1 0h-8.3v4h8.3v-4zm284.2 259.098a2 2 0 0 0-4 0h4zm-4 6.2a2 2 0 1 0 4 0h-4zm4 13.1a2 2 0 0 0-4 0h4zm-4 6.8a2 2 0 1 0 4 0h-4zm15-11.1a2 2 0 0 0 0-4v4zm-6.2-4a2 2 0 0 0 0 4v-4zm-13.6 4a2 2 0 0 0 0-4v4zm-6.3-4a2 2 0 0 0 0 4v-4zm11.1-11v6.2h4v-6.2h-4zm0 19.3v6.8h4v-6.8h-4zm15-8.3h-6.2v4h6.2v-4zm-19.8 0h-6.3v4h6.3v-4z",fill:"#2EE5C0"})),s||(s=p.createElement("path",{clipRule:"evenodd",d:"M15.233 326.328c7.18 0 13-5.82 13-13s-5.82-13-13-13-13 5.82-13 13 5.82 13 13 13z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=p.createElement("path",{d:"M28.233 311.328a2 2 0 0 0 0 4v-4zm35.2 2h2a2 2 0 0 0-2-2v2zm-2 12.2a2 2 0 1 0 4 0h-4zm-17.1 0a2 2 0 1 0 4 0h-4zm4-12.2a2 2 0 0 0-4 0h4zm-20.1 2h35.2v-4h-35.2v4zm33.2-2v12.2h4v-12.2h-4zm-13.1 12.2v-12.2h-4v12.2h4z",fill:"#2EE5C0"})))}const b=p.forwardRef(u),M=t.p+"static/media/403.6367e52f9464706633f52a2488a41958.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7329.a17ffd6a.chunk.js b/ydb/core/viewer/monitoring/static/js/7329.a17ffd6a.chunk.js deleted file mode 100644 index 457ff019e01..00000000000 --- a/ydb/core/viewer/monitoring/static/js/7329.a17ffd6a.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7329],{67329:(e,l,t)=>{t.r(l),t.d(l,{ReactComponent:()=>b,default:()=>M});var c,a,h,v,m,n,z,i,d,r,f,s,o,p=t(59284);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e},E.apply(this,arguments)}function u({title:e,titleId:l,...t},u){return p.createElement("svg",E({width:349,height:357,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:u,"aria-labelledby":l},t),e?p.createElement("title",{id:l},e):null,c||(c=p.createElement("path",{d:"M275.033 85.83c0 24.7-9.9 83.9-9.9 117.1 0 33.2 0 106.3-27.8 134.1-27.8 27.8-61.9 16.1-61.9 16.1s-46.7 13-76.3-14.8c-29.6-27.8-60.1-83.5-69.1-115.3-9.9-35-26.5-49.3-27.8-56.5-1.3-7.2 3.6-12.1 12.1-12.6 8.5-.4 22.9 4 34.5 22 11.6 18 17.5 26 23.8 35.9 6.3 9.9 20.6 23.3 20.6 23.3s.4-44.9 1.3-64.1c.9-19.3-1.8-111.7 1.8-132.3 3.6-20.6 26.5-20.2 28.7-4 2.2 16.1 8.8 66.8 9.8 79.8s3.7 44.4 3.7 44.4l7.6-2.7s-.9-105.8-.9-132.9c0-29.2 28.7-29.2 32.3-4 3.6 25.2 6.7 142.8 6.7 142.8l6.7 2.7s2.2-111.7 5.8-129.6c3.6-17.9 26.5-17.5 30.1 4.9 3.6 22.4 1.3 72.2.9 94.2s-.9 43.5-.9 43.5l5.4 4s11-73.3 14.4-99.1c3.7-27.8 28.4-21.5 28.4 3.1z",fill:"#ECF2F9"})),a||(a=p.createElement("path",{d:"M279.233 267.33l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5V99.43c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#FF4645"})),h||(h=p.createElement("path",{d:"M191.333 140.128l-32.3-1.4c-1.9-.1-3.8.6-5.2 1.9l-24.3 22.8c-1.4 1.3-2.2 3.2-2.2 5.2v33.7c0 2 .8 3.8 2.2 5.2l24.3 22.8c1.4 1.3 3.3 2 5.2 1.9l32.3-1.4c1.8-.1 3.6-.9 4.9-2.2l21.5-22.8c1.2-1.3 1.9-3.1 1.9-4.9v-31c0-1.8-.7-3.6-1.9-4.9l-21.5-22.8c-1.3-1.3-3.1-2.1-4.9-2.1z",fill:"#fff"})),v||(v=p.createElement("path",{d:"M203.433 196.428l-58.1.6c-1.6 0-3-1.3-3-3v-17.2c0-1.6 1.3-3 3-3l58.1.6c1.6 0 2.9 1.3 2.9 3v16c0 1.7-1.3 3-2.9 3z",fill:"#FF4645"})),m||(m=p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.733 104.63c0 3.4-2.7 6-6.1 5.8-3.4-.1-6.1-3-6.1-6.4 0-3.4 2.8-6 6.1-5.8 3.4.2 6.1 3 6.1 6.4zm19.7.9c0 3.3-2.7 5.9-6 5.8-3.3-.1-6-3-6-6.3s2.7-5.9 6-5.8c3.3.1 6 2.9 6 6.3zm13.4 6.498c3.2.2 5.8-2.4 5.8-5.7 0-3.3-2.6-6.1-5.8-6.2-3.3-.2-5.9 2.4-5.9 5.7 0 3.3 2.7 6.1 5.9 6.2z",fill:"#fff"})),n||(n=p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M248.733 248.231h84.6v-62c0-22.5-18.3-40.7-40.7-40.7h-3.2c-22.5 0-40.7 18.3-40.7 40.7v62zm70.2-14.3h-56v-47.7c0-14.6 11.9-26.4 26.4-26.4h3.2c14.6 0 26.4 11.9 26.4 26.4v47.7z",fill:"#DEB700"})),z||(z=p.createElement("path",{d:"M340.533 206.43s-16.3-2.7-17.3-2.7l-78.6 1.1c-7 .1-13.7 6.5-13.7 13.1v58.6c0 4.7 2.9 8.5 7 10.1 1.5.6 3.1.9 4.8.9l12.5 2.3 7.6-3.7 60.4-4.3c6.2-.4 11.2-5.8 11.2-11.9v-43.3l6.1-20.2z",fill:"#DEB700"})),i||(i=p.createElement("path",{d:"M337.633 284.332l-79.6 5.7c-7 .5-12.7-4.4-12.7-11v-59.6c0-6.6 5.7-12 12.7-12.1l79.6-1.1c6.2-.1 11.2 4.8 11.2 10.9v55.4c-.1 6-5 11.3-11.2 11.8z",fill:"#FBC900"})),d||(d=p.createElement("path",{d:"M313.033 236.931c0-6.3-5.2-11.4-11.7-11.4-6.7 0-12.3 5.4-12.3 12 0 5 3.2 9.1 7.6 10.7v15.5c0 2.5 2.1 4.4 4.7 4.2 2.6-.2 4.6-2.5 4.6-4.9v-15.1c4.3-2.1 7.1-6.3 7.1-11z",fill:"#00236B"})),r||(r=p.createElement("path",{d:"M308.333 236.93c0-5.5-4-10.1-9.3-11.2-5.6 1.1-10 6-10 11.8 0 5 3.2 9.1 7.6 10.7v15.5c0 1.5.8 2.8 2 3.5 1.6-.9 2.6-2.5 2.6-4.3v-15.1c4.2-2 7.1-6.2 7.1-10.9z",fill:"#18123D"})),f||(f=p.createElement("path",{d:"M21.733 41.629a2 2 0 0 0-4 0h4zm-4 8.2a2 2 0 1 0 4 0h-4zm4 17.198a2 2 0 0 0-4 0h4zm-4 8.9a2 2 0 1 0 4 0h-4zm19.2-15.197a2 2 0 0 0 0-4v4zm-8.3-4a2 2 0 1 0 0 4v-4zm-17.8 4a2 2 0 0 0 0-4v4zm-8.3-4a2 2 0 1 0 0 4v-4zm15.2-15.101v8.2h4v-8.2h-4zm0 25.398v8.9h4v-8.9h-4zm19.2-10.297h-8.3v4h8.3v-4zm-26.1 0h-8.3v4h8.3v-4zm284.2 259.098a2 2 0 0 0-4 0h4zm-4 6.2a2 2 0 1 0 4 0h-4zm4 13.1a2 2 0 0 0-4 0h4zm-4 6.8a2 2 0 1 0 4 0h-4zm15-11.1a2 2 0 0 0 0-4v4zm-6.2-4a2 2 0 0 0 0 4v-4zm-13.6 4a2 2 0 0 0 0-4v4zm-6.3-4a2 2 0 0 0 0 4v-4zm11.1-11v6.2h4v-6.2h-4zm0 19.3v6.8h4v-6.8h-4zm15-8.3h-6.2v4h6.2v-4zm-19.8 0h-6.3v4h6.3v-4z",fill:"#2EE5C0"})),s||(s=p.createElement("path",{clipRule:"evenodd",d:"M15.233 326.328c7.18 0 13-5.82 13-13s-5.82-13-13-13-13 5.82-13 13 5.82 13 13 13z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=p.createElement("path",{d:"M28.233 311.328a2 2 0 0 0 0 4v-4zm35.2 2h2a2 2 0 0 0-2-2v2zm-2 12.2a2 2 0 1 0 4 0h-4zm-17.1 0a2 2 0 1 0 4 0h-4zm4-12.2a2 2 0 0 0-4 0h4zm-20.1 2h35.2v-4h-35.2v4zm33.2-2v12.2h4v-12.2h-4zm-13.1 12.2v-12.2h-4v12.2h4z",fill:"#2EE5C0"})))}const b=p.forwardRef(u),M=t.p+"static/media/403.6367e52f9464706633f52a2488a41958.svg"}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/734.3fe325e9.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/734.3fe325e9.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/734.3fe325e9.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/734.3fe325e9.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/7341.6e678529.chunk.js b/ydb/core/viewer/monitoring/static/js/7341.6e678529.chunk.js new file mode 100644 index 00000000000..ed763de2828 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/7341.6e678529.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 7341.6e678529.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7341],{76938:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},18677:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},66528:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 1.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3z",clipRule:"evenodd"}))},5874:(e,t,n)=>{n.d(t,{W:()=>L});var l=n(59284);const o=e=>{if(e.options.enableRowSelection)return Boolean(e.options.enableMultiRowSelection)};var r=n(32084);const i=l.createContext(void 0),a={};var s=n(85720);const u=e=>{const t=e.column.getIsPinned(),n="left"===t,l="right"===t,o=n&&e.column.getIsLastColumn("left"),r=l&&e.column.getIsFirstColumn("right");return{pinned:Boolean(t),"pinned-left":n,"pinned-right":l,"last-pinned-left":o,"first-pinned-right":r}},d=e=>e?Object.assign({id:e.column.id},u(e)):null,g=(e,t)=>{if(!e)return t;const n=e.column.getIsPinned();return Object.assign({width:e.column.getSize(),minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,left:"left"===n?`${e.column.getStart("left")}px`:void 0,right:"right"===n?`${e.column.getAfter("right")}px`:void 0},t)};var c=n(82435);(0,c.withNaming)({e:"__",m:"_"});const p=(0,c.withNaming)({n:"gt-",e:"__",m:"_"}),m=p("table");var f=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const v=e=>{var{cell:t,children:n,className:o,style:r,attributes:i}=e,a=f(e,["cell","children","className","style","attributes"]);const u="function"===typeof i?i(t):i,c="function"===typeof o?o(t):o;return l.createElement("td",Object.assign({className:m("cell",d(t),c)},a,u,{style:g(t,Object.assign(Object.assign({},r),null===u||void 0===u?void 0:u.style))}),t?(0,s.Kv)(t.column.columnDef.cell,t.getContext()):n)},w=p("group-header"),h=({row:e,className:t,getGroupTitle:n})=>{var o;return l.createElement("h2",{className:w(null,t)},l.createElement("button",{className:w("button"),onClick:e.getToggleExpandedHandler()},l.createElement("svg",{className:w("icon",{expanded:e.getIsExpanded()}),viewBox:"0 0 16 16",width:"16",height:"16"},l.createElement("path",{d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06Z",fill:"currentColor"})),l.createElement("span",{className:w("content")},l.createElement("span",{className:w("title")},null!==(o=null===n||void 0===n?void 0:n(e))&&void 0!==o?o:e.id),l.createElement("span",{className:w("total")},e.subRows.length))))};var b=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const C=l.forwardRef(((e,t)=>{var{cellClassName:n,className:o,getGroupTitle:i,getIsCustomRow:a,getIsGroupHeaderRow:s,groupHeaderClassName:u,onClick:d,renderCustomRowContent:g,renderGroupHeader:c,renderGroupHeaderRowContent:p,row:f,rowVirtualizer:w,style:C,virtualItem:S,attributes:R,cellAttributes:y,table:I}=e,x=b(e,["cellClassName","className","getGroupTitle","getIsCustomRow","getIsGroupHeaderRow","groupHeaderClassName","onClick","renderCustomRowContent","renderGroupHeader","renderGroupHeaderRowContent","row","rowVirtualizer","style","virtualItem","attributes","cellAttributes","table"]);const M=(0,r.N)(null===w||void 0===w?void 0:w.measureElement,t),F="function"===typeof R?R(f):R,P="function"===typeof o?o(f):o,E=l.useCallback((e=>{null===d||void 0===d||d(f,e)}),[d,f]);return l.createElement("tr",Object.assign({ref:M,className:m("row",{selected:f.getIsSelected(),interactive:Boolean(d)},P),onClick:E,"data-index":null===S||void 0===S?void 0:S.index},x,F,{style:Object.assign(Object.assign({top:w&&S?S.start-w.options.scrollMargin:void 0},C),null===F||void 0===F?void 0:F.style)}),(null===s||void 0===s?void 0:s(f))?p?p({row:f,Cell:v,cellClassName:n,getGroupTitle:i}):l.createElement(v,{className:n,colSpan:f.getVisibleCells().length,attributes:y,"aria-colindex":1},c?c({row:f,className:m("group-header",u),getGroupTitle:i}):l.createElement(h,{row:f,className:m("group-header",u),getGroupTitle:i})):(null===a||void 0===a?void 0:a(f))&&g?g({row:f,Cell:v,cellClassName:n}):f.getVisibleCells().map((e=>l.createElement(v,{key:e.id,cell:e,className:n,attributes:y,"aria-colindex":e.column.getIndex()+1}))))}));C.displayName="BaseRow";var S=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const R=l.forwardRef(((e,t)=>{var n,{attributes:o,row:s,style:u,table:d}=e,g=S(e,["attributes","row","style","table"]);const{isChildMode:c,activeItemKey:p,targetItemIndex:m=-1,enableNesting:f,useSortable:v}=null!==(n=l.useContext(i))&&void 0!==n?n:{},{setNodeRef:w,transform:h=null,transition:b,isDragging:R=!1}=(null===v||void 0===v?void 0:v({id:s.id}))||{},y=Boolean(p),I=c&&m===s.index,x=(0,r.N)(w,t),{isFirstChild:M,depth:F}=(({row:e,table:t,isDragging:n})=>{var o,r,a,s,u;const{isChildMode:d,isParentMode:g,isNextChildMode:c,targetItemIndex:p=-1,enableNesting:m}=null!==(o=l.useContext(i))&&void 0!==o?o:{};let f=n&&-1===p,v=0;if(m)if(n&&-1!==p){const e=t.getRowModel().rows,n=null!==(a=null===(r=e[p])||void 0===r?void 0:r.depth)&&void 0!==a?a:0,l=null!==(u=null===(s=e[p+1])||void 0===s?void 0:s.depth)&&void 0!==u?u:0;if(f=l>n,f)v=l,g&&v--;else{let e=0;g?e=-1:d&&(e=1),v=(c?n:Math.min(n,l))+e}v=Math.max(0,v)}else v=f?0:e.depth;return{depth:v,isFirstChild:f}})({row:s,table:d,isDragging:R}),P=(({style:e=a,transform:t,transition:n,isDragging:o,isDragActive:r,isFirstChild:s,draggableChildRowOffset:u=32,enableNesting:d})=>{var g;const{isChildMode:c,isParentMode:p}=null!==(g=l.useContext(i))&&void 0!==g?g:{};return l.useMemo((()=>{if(!r||!t)return e;let l=0;return d&&o&&(p?l=-u:c&&!s&&(l=u)),Object.assign(Object.assign({},e),{transition:n,transform:`translate3d(${Math.max(l,0)}px, ${t.y}px, 0)`})}),[u,c,r,o,s,p,e,t,n,d])})({style:u,transform:h,transition:b,isDragging:R,isDragActive:y,isFirstChild:M,enableNesting:f}),E=l.useCallback((e=>{const t="function"===typeof o?o(e):o;return Object.assign(Object.assign({},t),{"data-key":e.id,"data-depth":F,"data-draggable":!0,"data-dragging":R,"data-drag-active":y,"data-expanded":y&&I})}),[o,F,R,y,I]);return l.createElement(C,Object.assign({ref:x,attributes:E,row:s,style:P,table:d},g))}));R.displayName="BaseDraggableRow";const y=e=>Object.assign({id:e.column.id,placeholder:e.isPlaceholder,sortable:e.column.getCanSort(),wide:e.colSpan>1},u(e)),I=({header:e,attributes:t,className:n})=>{const o="function"===typeof t?t(e):t,r="function"===typeof n?n(e):n,i=e.depth-e.column.depth;return l.createElement("th",Object.assign({className:m("footer-cell",y(e),r),colSpan:e.colSpan>1?e.colSpan:void 0,rowSpan:i>1?i:void 0},o,{style:g(e,null===o||void 0===o?void 0:o.style)}),(0,s.Kv)(e.column.columnDef.footer,e.getContext()))};var x=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const M=e=>{var{footerGroup:t,attributes:n,cellAttributes:o,cellClassName:r,className:i}=e,a=x(e,["footerGroup","attributes","cellAttributes","cellClassName","className"]);const s="function"===typeof n?n(t):n,u="function"===typeof i?i(t):i;return l.createElement("tr",Object.assign({className:m("footer-row",u)},a,s),t.headers.map((e=>(e=>!e.isPlaceholder)(e)?l.createElement(I,{key:e.column.id,header:e,attributes:o,className:r}):null)))},F=e=>{if(e)return"asc"===e?"ascending":"descending"},P=e=>e.headerGroup.headers.slice(0,e.index).reduce(((e,t)=>e+t.colSpan),1),E=p("resize-handle"),V=({className:e,header:t})=>{var n;const{table:o}=t.getContext(),{columnResizeDirection:r,columnResizeMode:i}=o.options,{columnSizingInfo:a}=o.getState(),s=("rtl"===r?-1:1)*(null!==(n=a.deltaOffset)&&void 0!==n?n:0);return l.createElement("div",{className:E({direction:r,resizing:t.column.getIsResizing()},e),onDoubleClick:()=>t.column.resetSize(),onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),style:{transform:"onEnd"===i&&t.column.getIsResizing()?`translateX(${s}px)`:void 0}})};var O=n(46734),_=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const z=e=>{var{header:t,className:n,children:o}=e,r=_(e,["header","className","children"]);const i=t.column.getToggleSortingHandler(),{onKeyDown:a}=(0,O.N)(i);return l.createElement("span",Object.assign({className:m("sort",n),role:"button",tabIndex:0,onClick:i,onKeyDown:a},r),o)},G=p("sort-indicator"),N=({className:e,header:t})=>{const n=t.column.getIsSorted();return l.createElement("span",{className:G({order:n,invisible:!n},e)},l.createElement("svg",{width:"6",height:"3",viewBox:"0 0 6 3",fill:"currentColor"},l.createElement("path",{d:"M0.404698 0C0.223319 0 0.102399 0.0887574 0.0419396 0.230769C-0.0386733 0.372781 0.00163315 0.497041 0.122552 0.60355L2.72232 2.89349C2.80293 2.9645 2.88354 3 3.00446 3C3.10523 3 3.20599 2.9645 3.28661 2.89349L5.88637 0.60355C6.00729 0.497041 6.02745 0.372781 5.96699 0.230769C5.88637 0.0887574 5.76545 0 5.60423 0H0.404698Z"})))},H=({className:e,header:t,parentHeader:n,renderHeaderCellContent:o,renderResizeHandle:r,renderSortIndicator:i,resizeHandleClassName:a,sortIndicatorClassName:u,attributes:d})=>{const c="function"===typeof d?d(t,n):d,p="function"===typeof e?e(t,n):e,f=t.isPlaceholder?t.getLeafHeaders().length:1;return l.createElement("th",Object.assign({className:m("header-cell",y(t),p),colSpan:t.colSpan>1?t.colSpan:void 0,rowSpan:f>1?f:void 0,"aria-sort":F(t.column.getIsSorted()),"aria-colindex":P(t)},c,{style:g(t,null===c||void 0===c?void 0:c.style)}),o?o({header:t}):l.createElement(l.Fragment,null,t.column.getCanSort()?l.createElement(z,{header:t},(0,s.Kv)(t.column.columnDef.header,t.getContext())," ",i?i({className:m("sort-indicator",u),header:t}):l.createElement(N,{className:m("sort-indicator",u),header:t})):(0,s.Kv)(t.column.columnDef.header,t.getContext()),t.column.getCanResize()&&(r?r({className:m("resize-handle",a),header:t}):l.createElement(V,{className:m("resize-handle",a),header:t}))))};var A=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const D=e=>{var{cellClassName:t,className:n,headerGroup:o,parentHeaderGroup:r,renderHeaderCellContent:i,renderResizeHandle:a,renderSortIndicator:s,resizeHandleClassName:u,sortIndicatorClassName:d,attributes:g,cellAttributes:c}=e,p=A(e,["cellClassName","className","headerGroup","parentHeaderGroup","renderHeaderCellContent","renderResizeHandle","renderSortIndicator","resizeHandleClassName","sortIndicatorClassName","attributes","cellAttributes"]);const f="function"===typeof g?g(o,r):g,v="function"===typeof n?n(o,r):n;return l.createElement("tr",Object.assign({className:m("header-row",v)},p,f),o.headers.map((e=>{const n=null===r||void 0===r?void 0:r.headers.find((t=>e.column.id===t.column.id));return((e,t)=>{const n=e.isPlaceholder&&(null===t||void 0===t?void 0:t.isPlaceholder)&&t.placeholderId===e.placeholderId,l=!e.isPlaceholder&&e.id===e.column.id&&e.depth-e.column.depth>1;return!(n||l)})(e,n)?l.createElement(H,{key:e.column.id,className:t,header:e,parentHeader:n,renderHeaderCellContent:i,renderResizeHandle:a,renderSortIndicator:s,resizeHandleClassName:u,sortIndicatorClassName:d,attributes:c}):null})))},L=l.forwardRef((({table:e,attributes:t,bodyAttributes:n,bodyClassName:r,bodyRef:a,cellAttributes:s,cellClassName:u,className:d,customFooterRowCount:g,emptyContent:c,footerAttributes:p,footerCellAttributes:f,footerCellClassName:v,footerClassName:w,footerRowAttributes:h,footerRowClassName:b,getGroupTitle:S,getIsCustomRow:y,getIsGroupHeaderRow:I,groupHeaderClassName:x,headerAttributes:F,headerCellAttributes:P,headerCellClassName:E,headerClassName:V,headerRowAttributes:O,headerRowClassName:_,onRowClick:z,renderCustomFooterContent:G,renderCustomRowContent:N,renderGroupHeader:H,renderGroupHeaderRowContent:A,renderHeaderCellContent:L,renderResizeHandle:j,renderSortIndicator:T,resizeHandleClassName:B,rowAttributes:k,rowClassName:q,rowVirtualizer:$,sortIndicatorClassName:U,stickyFooter:K=!1,stickyHeader:X=!1,withFooter:Z=!1,withHeader:W=!0},J)=>{var Q;const Y=l.useContext(i),ee=null!==(Q=null===Y||void 0===Y?void 0:Y.activeItemIndex)&&void 0!==Q?Q:-1,{rows:te,rowsById:ne}=e.getRowModel(),le=l.useMemo((()=>(e=>{let t=1;return e.reduce(((e,n,l,o)=>{const r=Object.assign(Object.assign({},e),{[n.id]:t}),i=o[l+1];return(null===i||void 0===i?void 0:i.parentId)!==n.id&&(t+=n.getLeafRows().length),t++,r}),{})})(te)),[te]),oe=W?e.getHeaderGroups():[],re=Z?e.getFooterGroups():[],ie=e.getVisibleLeafColumns().length,ae=oe.length,se=Object.keys(ne).length,ue=Z&&(G&&g||re.length)||0,de=se+ae+ue,ge=(null===$||void 0===$?void 0:$.getVirtualItems())||te;return l.createElement("table",Object.assign({ref:J,className:m({"with-row-virtualization":Boolean($)},d),"data-dragging-row-index":ee>-1?ee:void 0,"aria-colcount":ie>0?ie:void 0,"aria-rowcount":de>0?de:void 0,"aria-multiselectable":o(e)},t),W&&l.createElement("thead",Object.assign({className:m("header",{sticky:X},V)},F),oe.map(((e,t)=>l.createElement(D,{key:e.id,cellClassName:E,className:_,headerGroup:e,parentHeaderGroup:oe[t-1],renderHeaderCellContent:L,renderResizeHandle:j,renderSortIndicator:T,resizeHandleClassName:B,sortIndicatorClassName:U,attributes:O,cellAttributes:P,"aria-rowindex":t+1})))),l.createElement("tbody",Object.assign({ref:a,className:m("body",r)},n,{style:Object.assign({height:ge.length?null===$||void 0===$?void 0:$.getTotalSize():void 0},null===n||void 0===n?void 0:n.style)}),ge.length?ge.map((t=>{var n;const o=$?te[t.index]:t,r=$?t:void 0,i=null!==(n=null===r||void 0===r?void 0:r.key)&&void 0!==n?n:o.id,a={cellClassName:u,className:q,getGroupTitle:S,getIsCustomRow:y,getIsGroupHeaderRow:I,groupHeaderClassName:x,attributes:k,cellAttributes:s,onClick:z,renderCustomRowContent:N,renderGroupHeader:H,renderGroupHeaderRowContent:A,row:o,rowVirtualizer:$,table:e,virtualItem:r,"aria-rowindex":ae+le[o.id],"aria-selected":e.options.enableRowSelection?o.getIsSelected():void 0};return Y?l.createElement(R,Object.assign({key:i},a)):l.createElement(C,Object.assign({key:i},a))})):(()=>{if(!c)return null;const t="function"===typeof q?q():q,n="function"===typeof u?u():u;return l.createElement("tr",{className:m("row",{empty:!0},t)},l.createElement("td",{className:m("cell",{},n),colSpan:ie,style:{width:$?e.getTotalSize():void 0}},"function"===typeof c?c():c))})()),Z&&l.createElement("tfoot",Object.assign({className:m("footer",{sticky:K},w)},p),G?G({cellClassName:m("footer-cell"),footerGroups:re,rowClassName:m("footer-row"),rowIndex:ae+se+1}):re.map(((e,t)=>(e=>e.headers.some((e=>e.column.columnDef.footer)))(e)?l.createElement(M,{key:e.id,footerGroup:e,attributes:h,cellAttributes:f,cellClassName:v,className:b,"aria-rowindex":ae+se+t+1}):null))))}));L.displayName="BaseTable"},36590:(e,t,n)=>{n.d(t,{K:()=>r});var l=n(24953),o=n(85720);const r=e=>{var t,n,r,i,a,s,u,d,g,c,p,m,f;const v=Object.assign(Object.assign({},e),{enableColumnPinning:null!==(t=e.enableColumnPinning)&&void 0!==t&&t,enableColumnResizing:null!==(n=e.enableColumnResizing)&&void 0!==n&&n,enableExpanding:null!==(r=e.enableExpanding)&&void 0!==r&&r,enableGrouping:null!==(i=e.enableGrouping)&&void 0!==i&&i,enableMultiRowSelection:null!==(a=e.enableMultiRowSelection)&&void 0!==a&&a,enableRowSelection:null!==(s=e.enableRowSelection)&&void 0!==s&&s,enableSorting:null!==(u=e.enableSorting)&&void 0!==u&&u,getCoreRowModel:null!==(d=e.getCoreRowModel)&&void 0!==d?d:(0,l.HT)(),getExpandedRowModel:e.enableExpanding?null!==(g=e.getExpandedRowModel)&&void 0!==g?g:(0,l.D0)():void 0,getGroupedRowModel:e.enableGrouping?null!==(c=e.getGroupedRowModel)&&void 0!==c?c:(0,l.cU)():void 0,getSortedRowModel:e.enableSorting?null!==(p=e.getSortedRowModel)&&void 0!==p?p:(0,l.h5)():void 0,manualGrouping:null!==(m=e.manualGrouping)&&void 0!==m&&m,manualSorting:null!==(f=e.manualSorting)&&void 0!==f&&f});return(0,o.N4)(v)}},74321:(e,t,n)=>{n.d(t,{S:()=>u});var l=n(59284),o=n(64222),r=n(46898);function i(e){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),l.createElement("path",{d:"M4 7h9v3H4z"}))}function a(e){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),l.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const s=(0,n(69220).om)("checkbox"),u=l.forwardRef((function(e,t){const{size:n="m",indeterminate:u,disabled:d=!1,content:g,children:c,title:p,style:m,className:f,qa:v}=e,{checked:w,inputProps:h}=(0,o.v)(e),b=g||c,C=l.createElement("span",{className:s("indicator")},l.createElement("span",{className:s("icon"),"aria-hidden":!0},u?l.createElement(i,{className:s("icon-svg",{type:"dash"})}):l.createElement(a,{className:s("icon-svg",{type:"tick"})})),l.createElement("input",Object.assign({},h,{className:s("control")})),l.createElement("span",{className:s("outline")}));return l.createElement(r.m,{ref:t,title:p,style:m,size:n,disabled:d,className:s({size:n,disabled:d,indeterminate:u,checked:w},f),qa:v,control:C},b)}))},85720:(e,t,n)=>{n.d(t,{Kv:()=>r,N4:()=>i});var l=n(59284),o=n(24953);function r(e,t){return e?function(e){return"function"===typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"===typeof n||function(e){return"object"===typeof e&&"symbol"===typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?l.createElement(e,t):e:null;var n}function i(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=l.useState((()=>({current:(0,o.ZR)(t)}))),[r,i]=l.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}},24953:(e,t,n)=>{function l(e,t){return"function"===typeof e?e(t):e}function o(e,t){return n=>{t.setState((t=>({...t,[e]:l(n,t[e])})))}}function r(e){return e instanceof Function}function i(e,t){const n=[],l=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&l(o)}))};return l(e),n}function a(e,t,n){let l,o=[];return r=>{let i;n.key&&n.debug&&(i=Date.now());const a=e(r);if(!(a.length!==o.length||a.some(((e,t)=>o[t]!==e))))return l;let s;if(o=a,n.key&&n.debug&&(s=Date.now()),l=t(...a),null==n||null==n.onChange||n.onChange(l),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-s))/100,l=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c\u23f1 ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*l,120))}deg 100% 31%);`,null==n?void 0:n.key)}return l}}function s(e,t,n,l){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:l}}n.d(t,{D0:()=>W,HT:()=>Z,ZR:()=>X,cU:()=>Q,h5:()=>Y});const u="debugHeaders";function d(e,t,n){var l;let o={id:null!=(l=n.id)?l:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const g={createTable:e=>{e.getHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>{var r,i;const a=null!=(r=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],s=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[];return c(t,[...a,...n.filter((e=>!(null!=l&&l.includes(e.id))&&!(null!=o&&o.includes(e.id)))),...s],e)}),s(e.options,u)),e.getCenterHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>c(t,n=n.filter((e=>!(null!=l&&l.includes(e.id))&&!(null!=o&&o.includes(e.id)))),e,"center")),s(e.options,u)),e.getLeftHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,l)=>{var o;return c(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"left")}),s(e.options,u)),e.getRightHeaderGroups=a((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,l)=>{var o;return c(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"right")}),s(e.options,u)),e.getFooterGroups=a((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getLeftFooterGroups=a((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getCenterFooterGroups=a((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getRightFooterGroups=a((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getFlatHeaders=a((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getLeftFlatHeaders=a((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterFlatHeaders=a((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getRightFlatHeaders=a((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterLeafHeaders=a((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeftLeafHeaders=a((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getRightLeafHeaders=a((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeafHeaders=a((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var l,o,r,i,a,s;return[...null!=(l=null==(o=e[0])?void 0:o.headers)?l:[],...null!=(r=null==(i=t[0])?void 0:i.headers)?r:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),s(e.options,u))}};function c(e,t,n,l){var o,r;let i=0;const a=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)};a(e);let s=[];const u=(e,t)=>{const o={depth:t,id:[l,`${t}`].filter(Boolean).join("_"),headers:[]},r=[];e.forEach((e=>{const i=[...r].reverse()[0];let a,s=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),i&&(null==i?void 0:i.column)===a)i.subHeaders.push(e);else{const o=d(n,a,{id:[l,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${r.filter((e=>e.column===a)).length}`:void 0,depth:t,index:r.length});o.subHeaders.push(e),r.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),t>0&&u(r,t-1)},g=t.map(((e,t)=>d(n,e,{depth:i,index:t})));u(g,i-1),s.reverse();const c=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,l=[0];e.subHeaders&&e.subHeaders.length?(l=[],c(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,l.push(o)}))):t=1;return n+=Math.min(...l),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return c(null!=(o=null==(r=s[0])?void 0:r.headers)?o:[]),s}const p=(e,t,n,l,o,r,u)=>{let d={id:t,index:l,original:n,depth:o,parentId:u,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(d._valuesCache.hasOwnProperty(t))return d._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(d._valuesCache[t]=n.accessorFn(d.original,l),d._valuesCache[t]):void 0},getUniqueValues:t=>{if(d._uniqueValuesCache.hasOwnProperty(t))return d._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(d._uniqueValuesCache[t]=n.columnDef.getUniqueValues(d.original,l),d._uniqueValuesCache[t]):(d._uniqueValuesCache[t]=[d.getValue(t)],d._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=d.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>i(d.subRows,(e=>e.subRows)),getParentRow:()=>d.parentId?e.getRow(d.parentId,!0):void 0,getParentRows:()=>{let e=[],t=d;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:a((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,l){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(l),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:a((()=>[e,n,t,o]),((e,t,n,l)=>({table:e,column:t,row:n,cell:l,getValue:l.getValue,renderValue:l.renderValue})),s(e.options,"debugCells"))};return e._features.forEach((l=>{null==l.createCell||l.createCell(o,n,t,e)}),{}),o}(e,d,t,t.id)))),s(e.options,"debugRows")),_getAllCellsByColumnId:a((()=>[d.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),s(e.options,"debugRows"))};for(let i=0;i<e._features.length;i++){const t=e._features[i];null==t||null==t.createRow||t.createRow(d,e)}return d},m={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},f=(e,t,n)=>{var l,o;const r=null==n||null==(l=n.toString())?void 0:l.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(r))};f.autoRemove=e=>x(e);const v=(e,t,n)=>{var l;return Boolean(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.includes(n))};v.autoRemove=e=>x(e);const w=(e,t,n)=>{var l;return(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.toLowerCase())===(null==n?void 0:n.toLowerCase())};w.autoRemove=e=>x(e);const h=(e,t,n)=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)};h.autoRemove=e=>x(e)||!(null!=e&&e.length);const b=(e,t,n)=>!n.some((n=>{var l;return!(null!=(l=e.getValue(t))&&l.includes(n))}));b.autoRemove=e=>x(e)||!(null!=e&&e.length);const C=(e,t,n)=>n.some((n=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)}));C.autoRemove=e=>x(e)||!(null!=e&&e.length);const S=(e,t,n)=>e.getValue(t)===n;S.autoRemove=e=>x(e);const R=(e,t,n)=>e.getValue(t)==n;R.autoRemove=e=>x(e);const y=(e,t,n)=>{let[l,o]=n;const r=e.getValue(t);return r>=l&&r<=o};y.resolveFilterValue=e=>{let[t,n]=e,l="number"!==typeof t?parseFloat(t):t,o="number"!==typeof n?parseFloat(n):n,r=null===t||Number.isNaN(l)?-1/0:l,i=null===n||Number.isNaN(o)?1/0:o;if(r>i){const e=r;r=i,i=e}return[r,i]},y.autoRemove=e=>x(e)||x(e[0])&&x(e[1]);const I={includesString:f,includesStringSensitive:v,equalsString:w,arrIncludes:h,arrIncludesAll:b,arrIncludesSome:C,equals:S,weakEquals:R,inNumberRange:y};function x(e){return void 0===e||null===e||""===e}const M={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"string"===typeof l?I.includesString:"number"===typeof l?I.inNumberRange:"boolean"===typeof l||null!==l&&"object"===typeof l?I.equals:Array.isArray(l)?I.arrIncludes:I.weakEquals},e.getFilterFn=()=>{var n,l;return r(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(l=t.options.filterFns)?void 0:l[e.columnDef.filterFn])?n:I[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,l,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(l=t.options.enableColumnFilters)||l)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().columnFilters)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),r=null==t?void 0:t.find((t=>t.id===e.id)),i=l(n,r?r.value:void 0);var a;if(F(o,i,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const s={id:e.id,value:i};var u;return r?null!=(u=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?u:[]:null!=t&&t.length?[...t,s]:[s]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=l(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(F(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.resetColumnFilters=t=>{var n,l;e.setColumnFilters(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function F(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||"undefined"===typeof t||"string"===typeof t&&!t}const P={sum:(e,t,n)=>n.reduce(((t,n)=>{const l=n.getValue(e);return t+("number"===typeof l?l:0)}),0),min:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(l>n||void 0===l&&n>=n)&&(l=n)})),l},max:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(l<n||void 0===l&&n>=n)&&(l=n)})),l},extent:(e,t,n)=>{let l,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===l?n>=n&&(l=o=n):(l>n&&(l=n),o<n&&(o=n)))})),[l,o]},mean:(e,t)=>{let n=0,l=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,l+=o)})),n)return l/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(l=n,!Array.isArray(l)||!l.every((e=>"number"===typeof e)))return;var l;if(1===n.length)return n[0];const o=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t));return n.length%2!==0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},E={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,l;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(l=t.options.enableGrouping)||l)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"number"===typeof l?P.sum:"[object Date]"===Object.prototype.toString.call(l)?P.extent:void 0},e.getAggregationFn=()=>{var n,l;if(!e)throw new Error;return r(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(l=t.options.aggregationFns)?void 0:l[e.columnDef.aggregationFn])?n:P[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,l;e.setGrouping(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const l=t.getColumn(n);return null!=l&&l.columnDef.getGroupingValue?(e._groupingValuesCache[n]=l.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,l)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const V={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=a((e=>[H(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),s(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var l;return(null==(l=H(t,n)[0])?void 0:l.id)===e.id},e.getIsLastColumn=n=>{var l;const o=H(t,n);return(null==(l=o[o.length-1])?void 0:l.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=a((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>l=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...l];for(;n.length&&t.length;){const e=t.shift(),l=n.findIndex((t=>t.id===e));l>-1&&o.push(n.splice(l,1)[0])}o=[...o,...n]}else o=l;return function(e,t,n){if(null==t||!t.length||!n)return e;const l=e.filter((e=>!t.includes(e.id)));return"remove"===n?l:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...l]}(o,t,n)}),s(e.options,"debugTable"))}},O={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const l=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,r,i,a,s;return"right"===n?{left:(null!=(r=null==e?void 0:e.left)?r:[]).filter((e=>!(null!=l&&l.includes(e)))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter((e=>!(null!=l&&l.includes(e)))),...l]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=l&&l.includes(e)))),...l],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=l&&l.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=l&&l.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=l&&l.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,l,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(l=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||l)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:l,right:o}=t.getState().columnPinning,r=n.some((e=>null==l?void 0:l.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return r?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();return o?null!=(n=null==(l=t.getState().columnPinning)||null==(l=l[o])?void 0:l.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.column.id)))}),s(t.options,"debugRows")),e.getLeftVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),s(t.options,"debugRows")),e.getRightVisibleCells=a((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),s(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,l;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(l=e.initialState)?void 0:l.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const l=e.getState().columnPinning;var o,r;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.left)?void 0:o.length)||(null==(r=l.right)?void 0:r.length))},e.getLeftLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getRightLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getCenterLeafColumns=a((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.id)))}),s(e.options,"debugColumns"))}},_={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},z={getDefaultColumnDef:()=>_,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,l,o;const r=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:_.minSize,null!=(l=null!=r?r:e.columnDef.size)?l:_.size),null!=(o=e.columnDef.maxSize)?o:_.maxSize)},e.getStart=a((e=>[e,H(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.getAfter=a((e=>[e,H(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...l}=t;return l}))},e.getCanResize=()=>{var n,l;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(l=t.options.enableColumnResizing)||l)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var l;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(l=e.column.getSize())?l:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const l=t.getColumn(e.column.id),o=null==l?void 0:l.getCanResize();return r=>{if(!l||!o)return;if(null==r.persist||r.persist(),N(r)&&r.touches&&r.touches.length>1)return;const i=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[l.id,l.getSize()]],s=N(r)?Math.round(r.touches[0].clientX):r.clientX,u={},d=(e,n)=>{"number"===typeof n&&(t.setColumnSizingInfo((e=>{var l,o;const r="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(l=null==e?void 0:e.startOffset)?l:0))*r,a=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*a,0))/100})),{...e,deltaOffset:i,deltaPercentage:a}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...u}))))},g=e=>d("move",e),c=e=>{d("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!==typeof document?document:null,m={moveHandler:e=>g(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",m.moveHandler),null==p||p.removeEventListener("mouseup",m.upHandler),c(e.clientX)}},f={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),g(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",f.moveHandler),null==p||p.removeEventListener("touchend",f.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(null==(t=e.touches[0])?void 0:t.clientX)}},v=!!function(){if("boolean"===typeof G)return G;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return G=e,G}()&&{passive:!1};N(r)?(null==p||p.addEventListener("touchmove",f.moveHandler,v),null==p||p.addEventListener("touchend",f.upHandler,v)):(null==p||p.addEventListener("mousemove",m.moveHandler,v),null==p||p.addEventListener("mouseup",m.upHandler,v)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:l.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let G=null;function N(e){return"touchstart"===e.type}function H(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const A={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t="undefined"!==typeof t?t:!e.getIsAllRowsSelected();const l={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(l[e.id]=!0)})):o.forEach((e=>{delete l[e.id]})),l}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const l="undefined"!==typeof t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{D(o,t.id,l,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=a((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getFilteredSelectedRowModel=a((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getGroupedSelectedRowModel=a((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let l=Boolean(t.length&&Object.keys(n).length);return l&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(l=!1),l},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let l=!!t.length;return l&&t.some((e=>!n[e.id]))&&(l=!1),l},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,l)=>{const o=e.getIsSelected();t.setRowSelection((r=>{var i;if(n="undefined"!==typeof n?n:!o,e.getCanSelect()&&o===n)return r;const a={...r};return D(a,e.id,n,null==(i=null==l?void 0:l.selectChildren)||i,t),a}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return j(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===T(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===T(e,n)},e.getCanSelect=()=>{var n;return"function"===typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"===typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"===typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var l;t&&e.toggleSelected(null==(l=n.target)?void 0:l.checked)}}}},D=(e,t,n,l,o)=>{var r;const i=o.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],l&&null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>D(e,t.id,n,l,o)))};function L(e,t){const n=e.getState().rowSelection,l=[],o={},r=function(e,t){return e.map((e=>{var t;const i=j(e,n);if(i&&(l.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:r(e.subRows)}),i)return e})).filter(Boolean)};return{rows:r(t.rows),flatRows:l,rowsById:o}}function j(e,t){var n;return null!=(n=t[e.id])&&n}function T(e,t,n){var l;if(null==(l=e.subRows)||!l.length)return!1;let o=!0,r=!1;return e.subRows.forEach((e=>{if((!r||o)&&(e.getCanSelect()&&(j(e,t)?r=!0:o=!1),e.subRows&&e.subRows.length)){const n=T(e,t);"all"===n?r=!0:"some"===n?(r=!0,o=!1):o=!1}})),o?"all":!!r&&"some"}const B=/([0-9]+)/gm;function k(e,t){return e===t?0:e>t?1:-1}function q(e){return"number"===typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"===typeof e?e:""}function $(e,t){const n=e.split(B).filter(Boolean),l=t.split(B).filter(Boolean);for(;n.length&&l.length;){const e=n.shift(),t=l.shift(),o=parseInt(e,10),r=parseInt(t,10),i=[o,r].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>r)return 1;if(r>o)return-1}}return n.length-l.length}const U={alphanumeric:(e,t,n)=>$(q(e.getValue(n)).toLowerCase(),q(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>$(q(e.getValue(n)),q(t.getValue(n))),text:(e,t,n)=>k(q(e.getValue(n)).toLowerCase(),q(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>k(q(e.getValue(n)),q(t.getValue(n))),datetime:(e,t,n)=>{const l=e.getValue(n),o=t.getValue(n);return l>o?1:l<o?-1:0},basic:(e,t,n)=>k(e.getValue(n),t.getValue(n))},K=[g,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,l;const o=e.columns;return null==(n=o.length?o.some((e=>e.getIsVisible())):null==(l=t.getState().columnVisibility)?void 0:l[e.id])||n},e.getCanHide=()=>{var n,l;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(l=t.options.enableHiding)||l)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=a((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),s(t.options,"debugRows")),e.getVisibleCells=a((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),s(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>a((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),s(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t(0,(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t(0,(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t(0,(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t(0,(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},V,O,m,M,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:o("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const l=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"===typeof l||"number"===typeof l}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,l,o,r;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(l=t.options.enableGlobalFilter)||l)&&(null==(o=t.options.enableFilters)||o)&&(null==(r=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||r)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>I.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:l}=e.options;return r(l)?l:"auto"===l?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[l])?t:I[l]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let l=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return U.datetime;if("string"===typeof n&&(l=!0,n.split(B).length>1))return U.alphanumeric}return l?U.text:U.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"===typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,l;if(!e)throw new Error;return r(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(l=t.options.sortingFns)?void 0:l[e.columnDef.sortingFn])?n:U[e.columnDef.sortingFn]},e.toggleSorting=(n,l)=>{const o=e.getNextSortingOrder(),r="undefined"!==typeof n&&null!==n;t.setSorting((i=>{const a=null==i?void 0:i.find((t=>t.id===e.id)),s=null==i?void 0:i.findIndex((t=>t.id===e.id));let u,d=[],g=r?n:"desc"===o;var c;(u=null!=i&&i.length&&e.getCanMultiSort()&&l?a?"toggle":"add":null!=i&&i.length&&s!==i.length-1?"replace":a?"toggle":"replace","toggle"===u&&(r||o||(u="remove")),"add"===u)?(d=[...i,{id:e.id,desc:g}],d.splice(0,d.length-(null!=(c=t.options.maxMultiSortColCount)?c:Number.MAX_SAFE_INTEGER))):d="toggle"===u?i.map((t=>t.id===e.id?{...t,desc:g}:t)):"remove"===u?i.filter((t=>t.id!==e.id)):[{id:e.id,desc:g}];return d}))},e.getFirstSortDir=()=>{var n,l;return(null!=(n=null!=(l=e.columnDef.sortDescFirst)?l:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var l,o;const r=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===r||null!=(l=t.options.enableSortingRemoval)&&!l||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):r},e.getCanSort=()=>{var n,l;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(l=t.options.enableSorting)||l)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,l;return null!=(n=null!=(l=e.columnDef.enableMultiSort)?l:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const l=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!l&&(l.desc?"desc":"asc")},e.getSortIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().sorting)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return l=>{n&&(null==l.persist||l.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(l))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,l;e.setSorting(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},E,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?l:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,l;e.setExpanded(t?{}:null!=(n=null==(l=e.initialState)?void 0:l.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"===typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((l=>{var o;const r=!0===l||!(null==l||!l[e.id]);let i={};if(!0===l?Object.keys(t.getRowModel().rowsById).forEach((e=>{i[e]=!0})):i=l,n=null!=(o=n)?o:!r,!r&&n)return{...i,[e.id]:!0};if(r&&!n){const{[e.id]:t,...n}=i;return n}return l}))},e.getIsExpanded=()=>{var n;const l=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===l||(null==l?void 0:l[e.id]))},e.getCanExpand=()=>{var n,l,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(l=t.options.enableExpanding)||l)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,l=e;for(;n&&l.parentId;)l=t.getRow(l.parentId,!0),n=l.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?l:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>l(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=l(t,n.pageIndex);const r="undefined"===typeof e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,r)),{...n,pageIndex:o}}))},e.resetPageIndex=t=>{var n,l;e.setPageIndex(t?0:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageIndex)?n:0)},e.resetPageSize=t=>{var n,l;e.setPageSize(t?10:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,l(t,e.pageSize)),o=e.pageSize*e.pageIndex,r=Math.floor(o/n);return{...e,pageIndex:r,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var o;let r=l(t,null!=(o=e.options.pageCount)?o:-1);return"number"===typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}})),e.getPageOptions=a((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),s(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:o("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,l,o)=>{const r=l?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],i=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],a=new Set([...i,e.id,...r]);t.setRowPinning((e=>{var t,l,o,r,i,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:[...(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=a&&a.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter((e=>!(null!=a&&a.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:l,enablePinning:o}=t.options;return"function"===typeof l?l(e):null==(n=null!=l?l:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:l,bottom:o}=t.getState().rowPinning,r=n.some((e=>null==l?void 0:l.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return r?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();if(!o)return-1;const r=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(l=null==r?void 0:r.indexOf(e.id))?l:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,l;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(l=e.initialState)?void 0:l.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const l=e.getState().rowPinning;var o,r;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.top)?void 0:o.length)||(null==(r=l.bottom)?void 0:r.length))},e._getPinnedRows=(t,n,l)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:l})))},e.getTopRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.top]),((t,n)=>e._getPinnedRows(t,n,"top")),s(e.options,"debugRows")),e.getBottomRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.bottom]),((t,n)=>e._getPinnedRows(t,n,"bottom")),s(e.options,"debugRows")),e.getCenterRows=a((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const l=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!l.has(e.id)))}),s(e.options,"debugRows"))}},A,z];function X(e){var t,n;const o=[...K,...null!=(t=e._features)?t:[]];let r={_features:o};const i=r._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(r))),{});let u={...null!=(n=e.initialState)?n:{}};r._features.forEach((e=>{var t;u=null!=(t=null==e.getInitialState?void 0:e.getInitialState(u))?t:u}));const d=[];let g=!1;const c={_features:o,options:{...i,...e},initialState:u,_queue:e=>{d.push(e),g||(g=!0,Promise.resolve().then((()=>{for(;d.length;)d.shift()();g=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{r.setState(r.initialState)},setOptions:e=>{const t=l(e,r.options);r.options=(e=>r.options.mergeOptions?r.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>r.options.state,setState:e=>{null==r.options.onStateChange||r.options.onStateChange(e)},_getRowId:(e,t,n)=>{var l;return null!=(l=null==r.options.getRowId?void 0:r.options.getRowId(e,t,n))?l:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?r.getPrePaginationRowModel():r.getRowModel()).rowsById[e];if(!n&&(n=r.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:a((()=>[r.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...r._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),s(e,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:a((()=>[r._getColumnDefs()]),(e=>{const t=function(e,n,l){return void 0===l&&(l=0),e.map((e=>{const o=function(e,t,n,l){var o,r;const i={...e._getDefaultColumnDef(),...t},u=i.accessorKey;let d,g=null!=(o=null!=(r=i.id)?r:u?"function"===typeof String.prototype.replaceAll?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)?o:"string"===typeof i.header?i.header:void 0;if(i.accessorFn?d=i.accessorFn:u&&(d=u.includes(".")?e=>{let t=e;for(const l of u.split(".")){var n;t=null==(n=t)?void 0:n[l]}return t}:e=>e[i.accessorKey]),!g)throw new Error;let c={id:`${String(g)}`,accessorFn:d,parent:l,depth:n,columnDef:i,columns:[],getFlatColumns:a((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),s(e.options,"debugColumns")),getLeafColumns:a((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=c.columns)&&t.length){let t=c.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[c]}),s(e.options,"debugColumns"))};for(const a of e._features)null==a.createColumn||a.createColumn(c,e);return c}(r,e,l,n),i=e;return o.columns=i.columns?t(i.columns,o,l+1):[],o}))};return t(e)}),s(e,"debugColumns")),getAllFlatColumns:a((()=>[r.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),s(e,"debugColumns")),_getAllFlatColumnsById:a((()=>[r.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),s(e,"debugColumns")),getAllLeafColumns:a((()=>[r.getAllColumns(),r._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),s(e,"debugColumns")),getColumn:e=>r._getAllFlatColumnsById()[e]};Object.assign(r,c);for(let l=0;l<r._features.length;l++){const e=r._features[l];null==e||null==e.createTable||e.createTable(r)}return r}function Z(){return e=>a((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},l=function(t,o,r){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const u=p(e,e._getRowId(t[s],s,r),t[s],s,o,void 0,null==r?void 0:r.id);var a;if(n.flatRows.push(u),n.rowsById[u.id]=u,i.push(u),e.options.getSubRows)u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=l(u.originalSubRows,o+1,u))}return i};return n.rows=l(t),n}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}function W(){return e=>a((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?J(t):t),s(e.options,"debugTable"))}function J(e){const t=[],n=e=>{var l;t.push(e),null!=(l=e.subRows)&&l.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Q(){return e=>a((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach((e=>{e.depth=0,e.parentId=void 0})),n;const l=t.filter((t=>e.getColumn(t))),o=[],r={},a=function(t,n,s){if(void 0===n&&(n=0),n>=l.length)return t.map((e=>(e.depth=n,o.push(e),r[e.id]=e,e.subRows&&(e.subRows=a(e.subRows,n+1,e.id)),e)));const u=l[n],d=function(e,t){const n=new Map;return e.reduce(((e,n)=>{const l=`${n.getGroupingValue(t)}`,o=e.get(l);return o?o.push(n):e.set(l,[n]),e}),n)}(t,u),g=Array.from(d.entries()).map(((t,d)=>{let[g,c]=t,m=`${u}:${g}`;m=s?`${s}>${m}`:m;const f=a(c,n+1,m);f.forEach((e=>{e.parentId=m}));const v=n?i(c,(e=>e.subRows)):c,w=p(e,m,v[0].original,d,n,void 0,s);return Object.assign(w,{groupingColumnId:u,groupingValue:g,subRows:f,leafRows:v,getValue:t=>{if(l.includes(t)){if(w._valuesCache.hasOwnProperty(t))return w._valuesCache[t];var n;if(c[0])w._valuesCache[t]=null!=(n=c[0].getValue(t))?n:void 0;return w._valuesCache[t]}if(w._groupingValuesCache.hasOwnProperty(t))return w._groupingValuesCache[t];const o=e.getColumn(t),r=null==o?void 0:o.getAggregationFn();return r?(w._groupingValuesCache[t]=r(t,v,c),w._groupingValuesCache[t]):void 0}}),f.forEach((e=>{o.push(e),r[e.id]=e})),w}));return g},s=a(n.rows,0);return s.forEach((e=>{o.push(e),r[e.id]=e})),{rows:s,flatRows:o,rowsById:r}}),s(e.options,"debugTable",0,(()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))})))}function Y(){return e=>a((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const l=e.getState().sorting,o=[],r=l.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),i={};r.forEach((t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const a=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let l=0;l<r.length;l+=1){var n;const o=r[l],a=i[o.id],s=a.sortUndefined,u=null!=(n=null==o?void 0:o.desc)&&n;let d=0;if(s){const n=void 0===e.getValue(o.id),l=void 0===t.getValue(o.id);if(n||l){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;d=n&&l?0:n?s:-s}}if(0===d&&(d=a.sortingFn(e,t,o.id)),0!==d)return u&&(d*=-1),a.invertSorting&&(d*=-1),d}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t};return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8546.810f324c.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/7341.6e678529.chunk.js.LICENSE.txt index 23ee32e19bc..23ee32e19bc 100644 --- a/ydb/core/viewer/monitoring/static/js/8546.810f324c.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/7341.6e678529.chunk.js.LICENSE.txt diff --git a/ydb/core/viewer/monitoring/static/js/7574.8ac9803d.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/7574.8ac9803d.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/7574.8ac9803d.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/7574.8ac9803d.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/7614.00d00ded.chunk.js b/ydb/core/viewer/monitoring/static/js/7614.00d00ded.chunk.js new file mode 100644 index 00000000000..0f27d904e3e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/7614.00d00ded.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7614,8868],{28868:(e,o,s)=>{"use strict";s.r(o)},47614:(e,o,s)=>{var r={"./editorBaseApi":73848,"./editorBaseApi.js":73848,"./editorSimpleWorker":16545,"./editorSimpleWorker.js":16545,"./editorWorker":10920,"./editorWorker.js":10920,"./editorWorkerHost":80718,"./editorWorkerHost.js":80718,"./findSectionHeaders":56691,"./findSectionHeaders.js":56691,"./getIconClasses":53068,"./getIconClasses.js":53068,"./languageFeatureDebounce":32500,"./languageFeatureDebounce.js":32500,"./languageFeatures":56942,"./languageFeatures.js":56942,"./languageFeaturesService":76007,"./languageFeaturesService.js":76007,"./languageService":17890,"./languageService.js":17890,"./languagesAssociations":99908,"./languagesAssociations.js":99908,"./languagesRegistry":69259,"./languagesRegistry.js":69259,"./markerDecorations":37550,"./markerDecorations.js":37550,"./markerDecorationsService":30707,"./markerDecorationsService.js":30707,"./model":23750,"./model.js":23750,"./modelService":16363,"./modelService.js":16363,"./resolverService":18938,"./resolverService.js":18938,"./semanticTokensDto":98232,"./semanticTokensDto.js":98232,"./semanticTokensProviderStyling":45538,"./semanticTokensProviderStyling.js":45538,"./semanticTokensStyling":74243,"./semanticTokensStyling.js":74243,"./semanticTokensStylingService":27004,"./semanticTokensStylingService.js":27004,"./textModelSync/textModelSync.impl":47443,"./textModelSync/textModelSync.impl.js":47443,"./textModelSync/textModelSync.protocol":28868,"./textModelSync/textModelSync.protocol.js":28868,"./textResourceConfiguration":90360,"./textResourceConfiguration.js":90360,"./treeSitterParserService":44432,"./treeSitterParserService.js":44432,"./treeViewsDnd":36723,"./treeViewsDnd.js":36723,"./treeViewsDndService":29100,"./treeViewsDndService.js":29100,"./unicodeTextModelHighlighter":74855,"./unicodeTextModelHighlighter.js":74855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":73848,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":73848,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":16545,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":16545,"monaco-editor/esm/vs/editor/common/services/editorWorker":10920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":10920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":80718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":80718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":56691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":56691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":53068,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":53068,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":32500,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":32500,"monaco-editor/esm/vs/editor/common/services/languageFeatures":56942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":56942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":76007,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":76007,"monaco-editor/esm/vs/editor/common/services/languageService":17890,"monaco-editor/esm/vs/editor/common/services/languageService.js":17890,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":99908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":99908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":69259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":69259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":37550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":37550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":30707,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":30707,"monaco-editor/esm/vs/editor/common/services/model":23750,"monaco-editor/esm/vs/editor/common/services/model.js":23750,"monaco-editor/esm/vs/editor/common/services/modelService":16363,"monaco-editor/esm/vs/editor/common/services/modelService.js":16363,"monaco-editor/esm/vs/editor/common/services/resolverService":18938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":18938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":98232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":98232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":45538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":45538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":74243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":74243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":27004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":27004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":47443,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":47443,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":28868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":28868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":90360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":90360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":44432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":44432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":36723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":36723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":29100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":29100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":74855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":74855};function i(e){var o=t(e);return s(o)}function t(e){if(!s.o(r,e)){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=t,e.exports=i,i.id=47614}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7638.5489d672.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/7638.5489d672.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/7638.5489d672.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/7638.5489d672.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/7642.39707d60.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/7642.39707d60.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/7642.39707d60.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/7642.39707d60.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/7692.af7181c9.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/7692.af7181c9.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/7692.af7181c9.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/7692.af7181c9.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/7718.98954359.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/7718.98954359.chunk.js.LICENSE.txt deleted file mode 100644 index a62733317c0..00000000000 --- a/ydb/core/viewer/monitoring/static/js/7718.98954359.chunk.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/7718.98954359.chunk.js b/ydb/core/viewer/monitoring/static/js/7718.f897f8ca.chunk.js index a1e84a79b8e..8a96ca87a91 100644 --- a/ydb/core/viewer/monitoring/static/js/7718.98954359.chunk.js +++ b/ydb/core/viewer/monitoring/static/js/7718.f897f8ca.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 7718.98954359.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7718],{77718:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>s,language:()=>p});var a,o,i=n(32858),r=Object.defineProperty,d=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,c=(e,t,n,a)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of l(t))m.call(e,o)||o===n||r(e,o,{get:()=>t[o],enumerable:!(a=d(t,o))||a.enumerable});return e},u={};c(u,a=i,"default"),o&&c(o,a,"default");var s={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:u.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:u.languages.IndentAction.Indent}}]},p={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}}}}]);
\ No newline at end of file +/*! For license information please see 7718.f897f8ca.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7718],{77718:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>s,language:()=>p});var a,o,i=n(80781),r=Object.defineProperty,d=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,c=(e,t,n,a)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of l(t))m.call(e,o)||o===n||r(e,o,{get:()=>t[o],enumerable:!(a=d(t,o))||a.enumerable});return e},u={};c(u,a=i,"default"),o&&c(o,a,"default");var s={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:u.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:u.languages.IndentAction.Indent}}]},p={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/7718.f897f8ca.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/7718.f897f8ca.chunk.js.LICENSE.txt new file mode 100644 index 00000000000..34dc0256d74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/7718.f897f8ca.chunk.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/7750.1fea5741.chunk.js b/ydb/core/viewer/monitoring/static/js/7750.1fea5741.chunk.js new file mode 100644 index 00000000000..fabf58fe04f --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/7750.1fea5741.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 7750.1fea5741.chunk.js.LICENSE.txt */ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[7750],{16963:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 010 1.06l-2.5 2.5a.75.75 0 11-1.06-1.06l1.22-1.22H4.75a.75.75 0 010-1.5h7.69l-1.22-1.22a.75.75 0 011.06-1.06zM9.5 4.25a.75.75 0 01-1.5 0V4a1.5 1.5 0 00-1.5-1.5H4A1.5 1.5 0 002.5 4v8A1.5 1.5 0 004 13.5h2.5A1.5 1.5 0 008 12v-.25a.75.75 0 011.5 0V12a3 3 0 01-3 3H4a3 3 0 01-3-3V4a3 3 0 013-3h2.5a3 3 0 013 3z",clipRule:"evenodd"})))}},87285:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s,n=i(59284);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},r.apply(null,arguments)}const o=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.87 8.515L1.641 8l.229-.515a6.708 6.708 0 0112.26 0l.228.515-.229.515a6.708 6.708 0 01-12.259 0M.5 6.876l-.26.585a1.33 1.33 0 000 1.079l.26.584a8.208 8.208 0 0015 0l.26-.584a1.33 1.33 0 000-1.08l-.26-.584a8.208 8.208 0 00-15 0M9.5 8a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0M11 8a3 3 0 11-6 0 3 3 0 016 0",clipRule:"evenodd"})))}},94630:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var s,n,r=i(59284);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const a=function(e){return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),s||(s=r.createElement("g",{clipPath:"url(#font-case_svg__a)"},r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.75 2.25c-.618 0-1.169.39-1.373.974L.042 12.752a.75.75 0 001.416.496L2.595 10h4.31l1.137 3.248a.75.75 0 001.416-.496L6.123 3.224A1.455 1.455 0 004.75 2.25M6.38 8.5L4.75 3.842 3.12 8.5zm5.135 2.996c0-.223.28-.746 1.152-.746H14.4c-.294 1.024-1.178 1.5-1.9 1.5-.45 0-.677-.134-.792-.249a.7.7 0 01-.193-.505m2.985.754V13a.75.75 0 101.5 0v-3c0-1.117-.28-2.065-.873-2.744-.606-.692-1.453-1.006-2.377-1.006-.53 0-.946.07-1.306.195-.338.117-.6.274-.804.396l-.025.015a.75.75 0 10.77 1.288c.22-.132.365-.217.55-.281.178-.062.423-.113.815-.113.576 0 .978.186 1.248.494.191.218.354.543.44 1.006h-1.771c-1.462 0-2.658.977-2.652 2.254.003.542.191 1.116.632 1.557.447.448 1.085.689 1.853.689 1 0 1.75-.75 1.75-1.5z",clipRule:"evenodd"}))),n||(n=r.createElement("defs",null,r.createElement("clipPath",{id:"font-case_svg__a"},r.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))))}},8964:(e,t,i)=>{"use strict";i.d(t,{R:()=>a,J:()=>o});var s=i(1448);const n=JSON.parse('{"common":{"tooltip-sum":"Sum","tooltip-rest":"Rest"},"chartkit":{"error":"Error","legend-series-hide":"Hide all lines","legend-series-show":"Show all lines","tooltip-point-format-size":"Size","tooltip-sum":"Sum","tooltip-rest":"Rest","error-incorrect-key-value-intro":"Incorrect notation of an object passed to","error-incorrect-key":", object keys must be convertible to integer","error-incorrect-value":", object values must be a string or a function which returns a string"},"chartkit-table":{"message-no-data":"No data","paginator-rows":"Rows"},"chartkit-ymap-legend":{"label-more":"Show more {{count}}","label-hide":"Hide","label-heatmap":"Heatmap"},"error":{"label_no-data":"No data","label_unknown-plugin":"Unknown plugin type \\"{{type}}\\"","label_unknown-error":"Unknown error","label_invalid-axis-category-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"category\\". Strings and numbers are allowed.","label_invalid-axis-datetime-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"datetime\\". Only numbers are allowed.","label_invalid-axis-linear-data-point":"It seems you are trying to use inappropriate data type for \\"{{key}}\\" value in series \\"{{seriesName}}\\" for axis with type \\"linear\\". Numbers and nulls are allowed.","label_invalid-pie-data-value":"It seems you are trying to use inappropriate data type for \\"value\\" value. Only numbers are allowed.","label_invalid-series-type":"It seems you haven\'t defined \\"series.type\\" property, or defined it incorrectly. Available values: [{{types}}].","label_invalid-series-property":"It seems you are trying to use inappropriate value for \\"{{key}}\\", or defined it incorrectly. Available values: [{{values}}].","label_invalid-treemap-redundant-value":"It seems you are trying to set \\"value\\" for container node. Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"It seems you are trying to use node without \\"value\\". Check node with this properties: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"It seems you are trying to use inappropriate index for Y axis: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"Reset zoom","decimal-point":".","thousands-sep":" ","Mon":"Mon","Tue":"Tue","Wed":"Wed","Thu":"Thu","Fri":"Fri","Sat":"Sat","Sun":"Sun","Jan":"Jan","January":"January","Feb":"Feb","February":"February","Mar":"Mar","March":"March","Apr":"Apr","April":"April","May":"May","Jun":"Jun","June":"June","Jul":"Jul","July":"July","Aug":"Aug","August":"August","Sep":"Sep","September":"September","Oct":"Oct","October":"October","Nov":"Nov","November":"November","Dec":"Dec","December":"December"}}'),r=JSON.parse('{"common":{"tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435"},"chartkit":{"error":"\u041e\u0448\u0438\u0431\u043a\u0430","legend-series-hide":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","legend-series-show":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u043d\u0438\u0438","loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430","tooltip-point-format-size":"\u0420\u0430\u0437\u043c\u0435\u0440","tooltip-sum":"\u0421\u0443\u043c\u043c\u0430","tooltip-rest":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435","error-incorrect-key-value-intro":"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432","error-incorrect-key":", \u043a\u043b\u044e\u0447\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c\u044b \u0432 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e","error-incorrect-value":", \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u0438\u0431\u043e \u0441\u0442\u0440\u043e\u043a\u0430, \u043b\u0438\u0431\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0443"},"chartkit-table":{"message-no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","paginator-rows":"\u0421\u0442\u0440\u043e\u043a\u0438"},"chartkit-ymap-legend":{"label-more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451 {{count}}","label-hide":"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c","label-heatmap":"\u0422\u0435\u043f\u043b\u043e\u0432\u0430\u044f \u043a\u0430\u0440\u0442\u0430"},"error":{"label_no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label_unknown-plugin":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0442\u0438\u043f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \\"{{type}}\\"","label_unknown-error":"\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430","label_invalid-axis-category-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"category\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u0438 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-datetime-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"datetime\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-axis-linear-data-point":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"{{key}}\\" \u0432 \u0441\u0435\u0440\u0438\u0438 \\"{{seriesName}}\\" \u0434\u043b\u044f \u043e\u0441\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \\"linear\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 null.","label_invalid-pie-data-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u0414\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b.","label_invalid-series-type":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"series.type\\" \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{types}}].","label_invalid-series-property":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \\"{{key}}\\", \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0432\u0435\u0440\u043d\u043e. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: [{{values}}].","label_invalid-treemap-redundant-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \\"value\\" \u0434\u043b\u044f \u0443\u0437\u043b\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-treemap-missing-value":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0437\u0435\u043b \u0431\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \\"value\\". \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0443\u0437\u0435\u043b \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: { id: \\"{{id}}\\", name: \\"{{name}}\\" }","label_invalid-y-axis-index":"\u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u0434\u043b\u044f \u043e\u0441\u0438 Y: \\"{{index}}\\""},"highcharts":{"reset-zoom-title":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435","decimal-point":",","thousands-sep":" ","Mon":"\u041f\u043d","Tue":"\u0412\u0442","Wed":"\u0421\u0440","Thu":"\u0427\u0442","Fri":"\u041f\u0442","Sat":"\u0421\u0431","Sun":"\u0412\u0441","Jan":"\u042f\u043d\u0432","January":"\u042f\u043d\u0432\u0430\u0440\u044c","Feb":"\u0424\u0435\u0432","February":"\u0424\u0435\u0432\u0440\u0430\u043b\u044c","Mar":"\u041c\u0430\u0440","March":"\u041c\u0430\u0440\u0442","Apr":"\u0410\u043f\u0440","April":"\u0410\u043f\u0440\u0435\u043b\u044c","May":"\u041c\u0430\u0439","Jun":"\u0418\u044e\u043d","June":"\u0418\u044e\u043d\u044c","Jul":"\u0418\u044e\u043b","July":"\u0418\u044e\u043b\u044c","Aug":"\u0410\u0432\u0433","August":"\u0410\u0432\u0433\u0443\u0441\u0442","Sep":"\u0421\u0435\u043d","September":"\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","Oct":"\u041e\u043a\u0442","October":"\u041e\u043a\u0442\u044f\u0431\u0440\u044c","Nov":"\u041d\u043e\u044f","November":"\u041d\u043e\u044f\u0431\u0440\u044c","Dec":"\u0414\u0435\u043a","December":"\u0414\u0435\u043a\u0430\u0431\u0440\u044c"}}'),o=new s.TH;o.registerKeysets("en",n),o.registerKeysets("ru",r);const a=o.i18n.bind(o)},40014:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>C});var s=i(27145),n=i(59284),r=i(8964),o=i(66643),a=i(42392);const l=()=>`ck.${((e,t)=>{let i="";for(let s=e;s>0;--s)i+=t[Math.floor(Math.random()*t.length)];return i})(10,"0123456789abcdefghijklmnopqrstuvwxyz")}`,c=n.memo;var h=i(82435);const d=(0,h.withNaming)({e:"__",m:"_"}),u=(0,h.withNaming)({n:"chartkit-",e:"__",m:"_"});class g extends n.Component{constructor(){super(...arguments),this.state={error:void 0},this.resetError=()=>{this.state.error&&this.setState({error:void 0})}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(){var e,t;const{error:i}=this.state;i&&(null===(t=(e=this.props).onError)||void 0===t||t.call(e,{error:i}))}componentDidUpdate(e){if(e.data!==this.props.data){const{error:e}=this.state;e&&"code"in e&&e.code===a.iY.NO_DATA&&this.resetError()}}render(){const{error:e}=this.state;if(e){const t=function(e){const t="code"in e&&e.code;return(e.message||t||(0,r.R)("error","label_unknown-error")).toString()}(e);return this.props.renderError?this.props.renderError({error:e,message:t,resetError:this.resetError}):n.createElement("div",null,t)}return this.props.children}}var p=i(74417);const m=u("loader"),f=e=>{var{renderPluginLoader:t}=e,i=(0,s.Tt)(e,["renderPluginLoader"]);const r=null===t||void 0===t?void 0:t();return"undefined"!==typeof r?r:n.createElement("div",{className:m()},n.createElement(p.a,Object.assign({},i)))},_=d("chartkit"),v=e=>{const t=n.useRef(),{instanceRef:i,id:c,type:h,isMobile:d,renderPluginLoader:u}=e,g=(0,s.Tt)(e,["instanceRef","id","type","isMobile","renderPluginLoader"]),p=n.useMemo((()=>l()),[]),m=c||p,v=o.W.get("lang"),C=o.W.get("plugins").find((e=>e.type===h));if(!C)throw new a.R({code:a.iY.UNKNOWN_PLUGIN,message:(0,r.R)("error","label_unknown-plugin",{type:h})});const b=C.renderer;return n.useImperativeHandle(i,(()=>({reflow(e){var i;(null===(i=t.current)||void 0===i?void 0:i.reflow)&&t.current.reflow(e)}})),[]),n.createElement(n.Suspense,{fallback:n.createElement(f,{renderPluginLoader:u})},n.createElement("div",{className:_({mobile:d},"chartkit-theme_common")},n.createElement(b,Object.assign({ref:t,id:m,lang:v},g))))},C=c(n.forwardRef((function(e,t){return n.createElement(g,{onError:e.onError,data:e.data,renderError:e.renderError},n.createElement(v,Object.assign({instanceRef:t},e)))})))},42392:(e,t,i)=>{"use strict";i.d(t,{R:()=>n,iY:()=>s});const s={NO_DATA:"ERR.CK.NO_DATA",INVALID_DATA:"ERR.CK.INVALID_DATA",UNKNOWN:"ERR.CK.UNKNOWN_ERROR",UNKNOWN_PLUGIN:"ERR.CK.UNKNOWN_PLUGIN",TOO_MANY_LINES:"ERR.CK.TOO_MANY_LINES"};class n extends Error{constructor({originalError:e,message:t,code:i=s.UNKNOWN}={}){super(t),this.isCustomError=!0,this.code=i,e&&(this.name=e.name,this.stack=e.stack)}}},66643:(e,t,i)=>{"use strict";i.d(t,{W:()=>p});var s=i(3357),n=i(87924),r=i.n(n),o=i(52708),a=i.n(o),l=i(8964);var c=i(38469),h=i.n(c);function d(e,t,i){if("plugins"===i){const i=[...e],s=[...t];let n=i.map((e=>{const t=s.findIndex((({type:t})=>t===e.type));if(-1!==t){const i=s[t];return s.splice(t,1),{type:e.type,renderer:i.renderer}}return e}));return s.length>0&&(n=[...n,...s]),n}return h()(e)?a()(e,t,d):t}const u=new class{constructor(){this.events={}}on(e,t){this.events[e]?this.events[e].push(t):this.events[e]=[t]}off(e,t){this.events[e]&&(this.events[e]=this.events[e].filter((({id:e})=>e!==t)))}dispatch(e,t){this.events[e]&&this.events[e].forEach((({action:e})=>{e(t)}))}},g=e=>{(0,s.jK)({lang:e}),l.J.setLang(e)};const p=new class{constructor(){this.settings={plugins:[],lang:"en"},g(this.get("lang"))}get(e){return r()(this.settings,e)}set(e){const t=(i=e,Object.entries(i).reduce(((e,[t,i])=>("undefined"!==typeof i&&(e[t]=i),e)),{}));var i;if(this.settings=a()(this.settings,t,d),t.lang){const e=t.lang||this.get("lang");g(e),u.dispatch("change-lang",e)}}}},25533:(e,t,i)=>{"use strict";i.d(t,{YagrPlugin:()=>s});const s={type:"yagr",renderer:i(59284).lazy((()=>Promise.all([i.e(1836),i.e(8593)]).then(i.bind(i,81836))))}},57439:(e,t,i)=>{"use strict";i.d(t,{u:()=>w});var s=i(59284),n=i(96873),r=i(98192);const o=(0,r.om)("definition-list");const a=e=>"label"in e&&!("name"in e),l=e=>!e.some((e=>a(e)));function c(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function h({copyText:e,content:t,copyPosition:i}){const r="inside"===i,a=null!==t&&void 0!==t?t:"\u2014";return e?s.createElement("div",{className:o("copy-container",{"icon-inside":r})},s.createElement("span",null,a),s.createElement(n.b,{size:"s",text:e,className:o("copy-button"),view:r?"raised":"flat-secondary"})):a}var d=i(98089);function u({label:e}){return s.createElement("div",{className:o("group-title")},s.createElement(d.E,{variant:"subheader-1",color:"complementary"},e))}var g=i(6170),p=i(72837);const m=JSON.parse('{"label_note":"Note"}'),f=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),_=(0,p.N)({en:m,ru:f},`${r.CU}definition-list`);var v=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function C({note:e}){if(!e)return null;const t=o("item-note-tooltip");if("string"===typeof e)return s.createElement(g.B,{className:t,content:e,placement:["bottom","top"],buttonProps:{"aria-label":_("label_note")}});if("object"===typeof e){const{buttonProps:i}=e,n=v(e,["buttonProps"]);return s.createElement(g.B,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":_("label_note")},i)},n))}return null}function b({note:e,name:t,nameTitle:i,multilineName:n,direction:r}){const a=s.createElement(s.Fragment,null,"\xa0",s.createElement(C,{note:e}));return s.createElement(s.Fragment,null,s.createElement("div",{className:o("term-wrapper")},s.createElement("span",{title:c(i,t)},t),n&&a),!n&&a,"horizontal"===r&&s.createElement("div",{className:o("dots",{"with-note":Boolean(e)})}))}var E=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function S({items:e,responsive:t,direction:i="horizontal",nameMaxWidth:n,contentMaxWidth:r="auto",className:a,itemClassName:l,copyPosition:d="outside",qa:u}){const g=n?{maxWidth:n,width:n}:{},p="number"===typeof r?{width:r,maxWidth:r}:{},m=s.useMemo((()=>e.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[e]);return s.createElement("div",{className:o({responsive:t,vertical:"vertical"===i},a),"data-qa":u},s.createElement("dl",{className:o("list")},m.map((e=>{const{name:t,key:n,content:r,contentTitle:a,nameTitle:u,copyText:m,note:f,multilineName:_}=e;return s.createElement("div",{key:n,className:o("item",l)},s.createElement("dt",{className:o("term-container",{multiline:_}),style:g},s.createElement(b,{direction:i,name:t,nameTitle:u,note:f,multilineName:_})),s.createElement("dd",{className:o("definition"),title:c(a,r),style:Object.assign(Object.assign({},p),{lineBreak:"string"===typeof r&&(v=20,function(e){return e.split(/\s+/).some((e=>e.length>v))})(r)?"anywhere":void 0})},s.createElement(h,{copyPosition:d,copyText:m,content:r})));var v}))))}function y(e){var{items:t,className:i,itemClassName:n}=e,r=E(e,["items","className","itemClassName"]);const a=s.useMemo((()=>t.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[t]);return s.createElement("div",{className:o({vertical:"vertical"===r.direction},i)},a.map((e=>{const{key:t,label:i}=e;return s.createElement(s.Fragment,{key:t},i&&s.createElement(u,{label:i}),e.items&&s.createElement(S,Object.assign({},r,{className:o({margin:!i}),items:e.items,itemClassName:o("item",{grouped:Boolean(i)},n)})))})))}function w(e){var{items:t}=e,i=E(e,["items"]);if(l(t))return s.createElement(S,Object.assign({},i,{items:t}));const n=function(e){const t=[];let i=[];for(const s of e)a(s)?(i.length&&(t.push({items:i,label:null}),i=[]),t.push(s)):i.push(s);return i.length&&(t.push({items:i,label:null}),i=[]),t}(t);return s.createElement(y,Object.assign({},i,{items:n}))}},6170:(e,t,i)=>{"use strict";i.d(t,{B:()=>c});var s=i(59284),n=i(73633),r=i(84375),o=i(99991);const a=(0,i(98192).om)("help-popover"),l=16;function c(e){var t;return s.createElement(r.A,Object.assign({},e,{className:a(null,e.className)}),s.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:a("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),s.createElement(o.I,{data:n.A,size:l})))}},98192:(e,t,i)=>{"use strict";i.d(t,{CU:()=>n,om:()=>r});var s=i(82435);const n="gc-",r=((0,s.withNaming)({e:"__",m:"_",v:"_"}),(0,s.withNaming)({n:n,e:"__",m:"_",v:"_"}))},23812:(e,t,i)=>{"use strict";i.d(t,{k:()=>ai});var s=i(60712),n=i(59284),r=i(46819),o=i(85736),a=i(51301);const l="g-date-",c=(0,i(82435).withNaming)({n:l,e:"__",m:"_"});function h({name:e,value:t,onReset:i,form:r,disabled:o,toStringValue:a}){const l=function({initialValue:e,onReset:t}){const[i,s]=n.useState(null),r=n.useRef(e);n.useEffect((()=>{if(!i||!t)return;const e=()=>{t(r.current)};return i.addEventListener("reset",e),()=>{i.removeEventListener("reset",e)}}),[i,t]);const o=n.useCallback((e=>{var t;s(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[]);return o}({initialValue:t,onReset:i});if(!e)return null;const c=a?a(t):`${null!==t&&void 0!==t?t:""}`;return(0,s.jsx)("input",{ref:l,type:"hidden",name:e,value:c,disabled:o,form:r})}const d=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.25 5.497a.75.75 0 0 1-.75-.75V4A1.5 1.5 0 0 0 3 5.5v1h10v-1A1.5 1.5 0 0 0 11.5 4v.75a.75.75 0 0 1-1.5 0V4H6v.747a.75.75 0 0 1-.75.75M10 2.5H6v-.752a.75.75 0 1 0-1.5 0V2.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-6a3 3 0 0 0-3-3v-.75a.75.75 0 0 0-1.5 0zM3 8v3.5A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5V8z",clipRule:"evenodd"}));var u=i(28664),g=i(84476),p=i(99991);function m(e){switch(e){case"xl":return"l";case"l":return"m";case"s":return"xs";default:return"s"}}var f=i(14750),_=i(72837);const v=JSON.parse('{"Last 5 minutes":"Last 5 minutes","Last 15 minutes":"Last 15 minutes","Last 30 minutes":"Last 30 minutes","Last hour":"Last hour","Last 3 hours":"Last 3 hours","Last 6 hours":"Last 6 hours","Last 12 hours":"Last 12 hours","Last day":"Last day","Last 3 days":"Last 3 days","Last week":"Last week","Last month":"Last month","Last 3 months":"Last 3 months","Last 6 months":"Last 6 months","Last year":"Last year","Last 3 years":"Last 3 years","Today":"Today","Yesterday":"Yesterday","Day before yesterday":"Day before yesterday","This week":"This week","This month":"This month","This year":"This year","From start of day":"From start of day","From start of week":"From start of week","From start of month":"From start of month","From start of year":"From start of year","Previous month":"Previous month","Last second":"Last second","Last minute":"Last minute","Last {count} second":["Last {{count}} second","Last {{count}} seconds","Last {{count}} seconds"],"Last {count} minute":["Last {{count}} minute","Last {{count}} minutes","Last {{count}} minutes"],"Last {count} hour":["Last {{count}} hour","Last {{count}} hours","Last {{count}} hours"],"Last {count} day":["Last {{count}} day","Last {{count}} days","Last {{count}} days"],"Last {count} week":["Last {{count}} week","Last {{count}} weeks","Last {{count}} weeks"],"Last {count} month":["Last {{count}} month","Last {{count}} months","Last {{count}} months"],"Last {count} year":["Last {{count}} year","Last {{count}} years","Last {{count}} years"],"Main":"Main","Other":"Other","Range":"Range","From":"From","To":"To"}'),C=JSON.parse('{"Last 5 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 5 \u043c\u0438\u043d\u0443\u0442","Last 15 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 15 \u043c\u0438\u043d\u0443\u0442","Last 30 minutes":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 30 \u043c\u0438\u043d\u0443\u0442","Last hour":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0447\u0430\u0441","Last 3 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0447\u0430\u0441\u0430","Last 6 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u0447\u0430\u0441\u043e\u0432","Last 12 hours":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 12 \u0447\u0430\u0441\u043e\u0432","Last day":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0434\u0435\u043d\u044c","Last 3 days":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0434\u043d\u044f","Last week":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043d\u0435\u0434\u0435\u043b\u044f","Last month":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last 3 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u043c\u0435\u0441\u044f\u0446\u0430","Last 6 months":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 6 \u043c\u0435\u0441\u044f\u0446\u0435\u0432","Last year":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0433\u043e\u0434","Last 3 years":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3 \u0433\u043e\u0434\u0430","Today":"\u0421\u0435\u0433\u043e\u0434\u043d\u044f","Yesterday":"\u0412\u0447\u0435\u0440\u0430","Day before yesterday":"\u041f\u043e\u0437\u0430\u0432\u0447\u0435\u0440\u0430","This week":"\u042d\u0442\u0430 \u043d\u0435\u0434\u0435\u043b\u044f","This month":"\u042d\u0442\u043e\u0442 \u043c\u0435\u0441\u044f\u0446","This year":"\u042d\u0442\u043e\u0442 \u0433\u043e\u0434","From start of day":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043d\u044f","From start of week":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u0434\u0435\u043b\u0438","From start of month":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u0435\u0441\u044f\u0446\u0430","From start of year":"\u0421 \u043d\u0430\u0447\u0430\u043b\u0430 \u0433\u043e\u0434\u0430","Previous month":"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043c\u0435\u0441\u044f\u0446","Last second":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0435\u043a\u0443\u043d\u0434\u0430","Last minute":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043c\u0438\u043d\u0443\u0442\u0430","Last {count} second":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"],"Last {count} minute":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u043c\u0438\u043d\u0443\u0442\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442"],"Last {count} hour":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0447\u0430\u0441","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0447\u0430\u0441\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0447\u0430\u0441\u043e\u0432"],"Last {count} day":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0434\u0435\u043d\u044c","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0434\u043d\u044f","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0434\u043d\u0435\u0439"],"Last {count} week":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f {{count}} \u043d\u0435\u0434\u0435\u043b\u044f","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043d\u0435\u0434\u0435\u043b\u0438","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"],"Last {count} month":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u043c\u0435\u0441\u044f\u0446","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0435\u0441\u044f\u0446\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"],"Last {count} year":["\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 {{count}} \u0433\u043e\u0434","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u0433\u043e\u0434\u0430","\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 {{count}} \u043b\u0435\u0442"],"Main":"\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435","Other":"\u0414\u0440\u0443\u0433\u0438\u0435","Range":"\u041f\u0435\u0440\u0438\u043e\u0434","From":"\u041e\u0442","To":"\u0414\u043e"}'),b=(0,_.N)({en:v,ru:C},`${l}relative-range-date-picker-presets`),E=[{from:"now-1d",to:"now",get title(){return b("Last day")}},{from:"now-3d",to:"now",get title(){return b("Last 3 days")}},{from:"now-1w",to:"now",get title(){return b("Last week")}},{from:"now-1M",to:"now",get title(){return b("Last month")}},{from:"now-3M",to:"now",get title(){return b("Last 3 months")}},{from:"now-6M",to:"now",get title(){return b("Last 6 months")}},{from:"now-1y",to:"now",get title(){return b("Last year")}},{from:"now-3y",to:"now",get title(){return b("Last 3 years")}}],S=[{from:"now-5m",to:"now",get title(){return b("Last 5 minutes")}},{from:"now-15m",to:"now",get title(){return b("Last 15 minutes")}},{from:"now-30m",to:"now",get title(){return b("Last 30 minutes")}},{from:"now-1h",to:"now",get title(){return b("Last hour")}},{from:"now-3h",to:"now",get title(){return b("Last 3 hours")}},{from:"now-6h",to:"now",get title(){return b("Last 6 hours")}},{from:"now-12h",to:"now",get title(){return b("Last 12 hours")}}],y=[{from:"now/d",to:"now/d",get title(){return b("Today")}},{from:"now-1d/d",to:"now-1d/d",get title(){return b("Yesterday")}},{from:"now-2d/d",to:"now-2d/d",get title(){return b("Day before yesterday")}},{from:"now/w",to:"now/w",get title(){return b("This week")}},{from:"now/M",to:"now/M",get title(){return b("This month")}},{from:"now/y",to:"now/y",get title(){return b("This year")}},{from:"now/d",to:"now",get title(){return b("From start of day")}},{from:"now/w",to:"now",get title(){return b("From start of week")}},{from:"now/M",to:"now",get title(){return b("From start of month")}},{from:"now/y",to:"now",get title(){return b("From start of year")}}],w=S.concat(E,y),L=/^now-(\d+)([smhdwMy])$/,R={s:"Last second",m:"Last minute",h:"Last hour",d:"Last day",w:"Last week",M:"Last month",y:"Last year"},T={s:"Last {count} second",m:"Last {count} minute",h:"Last {count} hour",d:"Last {count} day",w:"Last {count} week",M:"Last {count} month",y:"Last {count} year"};function x(e,t){return e.filter((e=>{const i=(0,f.bQ)(e.from),s=(0,f.bQ)(e.to,{roundUp:!0});return!(!i||!s)&&(!s.isBefore(i)&&(!t||!i.isBefore(t)))}))}function k(e){const t=e.toLowerCase();return"default"===t||"system"===t?t:function(e){return"default"===e||"system"===e?(0,f.KQ)({timeZone:e}).timeZone():e}(e)}function A(e){return`UTC ${(0,f.KQ)({timeZone:e}).format("Z")}`}function N({value:e,timeZone:t,alwaysShowAsAbsolute:i,format:s="L",presets:n}){var r,o,a,l,c,h;if(!e)return"";const d="default"===t?"":` (${A(t)})`;let u="";e.start&&(u="relative"!==e.start.type||i?null!==(o=null===(r=(0,f.bQ)(e.start.value,{timeZone:t}))||void 0===r?void 0:r.format(s))&&void 0!==o?o:"":e.start.value);let g="";if(e.end&&(g="relative"!==e.end.type||i?null!==(l=null===(a=(0,f.bQ)(e.end.value,{timeZone:t,roundUp:!0}))||void 0===a?void 0:a.format(s))&&void 0!==l?l:"":e.end.value),!i&&"relative"===(null===(c=e.start)||void 0===c?void 0:c.type)&&"relative"===(null===(h=e.end)||void 0===h?void 0:h.type))return`${function(e,t,i=w){const s=e.replace(/\s+/g,""),n=t.replace(/\s+/g,"");for(const r of i)if(r.from===s&&r.to===n)return r.title;if("now"===t){const e=L.exec(s);if(e){const[,t,i]=e;if(["s","m","h","d","w","M","y"].includes(i)){const e=1===Number(t)?R[i]:T[i];return b(e,{count:t})}}}return s+" \u2014 "+n}(e.start.value,e.end.value,n)}`;return`${u} \u2014 ${g}${d}`}const I=JSON.parse('{"Range date picker":"Range date picker"}'),O=JSON.parse('{"Range date picker":"\u0412\u044b\u0431\u043e\u0440 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0434\u0430\u0442"}'),D=(0,_.N)({en:I,ru:O},`${l}relative-range-date-picker-control`),M=c("relative-range-date-picker-control"),P=n.forwardRef((({props:e,state:t,open:i,isMobile:r,onClick:o,onKeyDown:a,onFocus:l,onClickCalendar:c,onUpdate:h},f)=>{var _;const{alwaysShowAsAbsolute:v,presetTabs:C,getRangeTitle:b}=e,E=e.format||"L",S=n.useMemo((()=>"function"===typeof b?b(t.value,t.timeZone):N({value:t.value,timeZone:t.timeZone,alwaysShowAsAbsolute:v,format:E,presets:null===C||void 0===C?void 0:C.flatMap((({presets:e})=>e))})),[v,E,b,C,t.timeZone,t.value]),y=e.validationState||(t.isInvalid?"invalid":void 0),w=null!==(_=e.errorMessage)&&void 0!==_?_:t.errors.join("\n"),L={id:e.id,role:"combobox","aria-haspopup":"dialog","aria-expanded":i,"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:e.disabled,readOnly:e.readOnly,onClick:c,onKeyDown:a};return e.renderControl?e.renderControl({ref:f,value:t.value,title:S,validationState:y,errorMessage:w,open:i,triggerProps:L}):(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(u.k,{id:e.id,autoFocus:e.autoFocus,controlRef:f,value:S,placeholder:e.placeholder,onUpdate:h,controlProps:Object.assign(Object.assign({className:M("input",{mobile:r})},L),{disabled:r,onClick:o}),onKeyDown:a,onFocus:l,validationState:y,errorMessage:w,errorPlacement:e.errorPlacement,pin:e.pin,size:e.size,label:e.label,hasClear:e.hasClear,disabled:e.disabled,endContent:(0,s.jsx)(g.$,{view:"flat-secondary",size:m(e.size),disabled:e.disabled,extraProps:{"aria-haspopup":"dialog","aria-expanded":i,"aria-label":D("Range date picker")},onClick:c,children:(0,s.jsx)(p.I,{data:d})})}),r?(0,s.jsx)("button",{className:M("mobile-trigger",{"has-clear":Boolean(e.hasClear&&t.value),"has-errors":t.isInvalid&&"inside"===e.errorPlacement,size:e.size}),onClick:o}):null]})}));P.displayName="Control";var F=i(12640),U=i(39238);const H=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("g",{clipPath:"url(#a)"},n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.312 4.29a.764.764 0 0 1 1.103-.62.75.75 0 1 0 .67-1.34 2.264 2.264 0 0 0-3.268 1.836L2.706 5.5H1.75a.75.75 0 0 0 0 1.5h.83l-.392 4.71a.764.764 0 0 1-1.103.62.75.75 0 0 0-.67 1.34 2.264 2.264 0 0 0 3.268-1.836L4.086 7H5.25a.75.75 0 1 0 0-1.5H4.21zm6.014 2.23a.75.75 0 0 0-1.152.96l.85 1.02-.85 1.02a.75.75 0 0 0 1.152.96L11 9.672l.674.808a.75.75 0 0 0 1.152-.96l-.85-1.02.85-1.02a.75.75 0 0 0-1.152-.96L11 7.328zM8.02 4.55a.75.75 0 0 1 .43.969l-.145.378a7.25 7.25 0 0 0 0 5.205l.145.378a.75.75 0 0 1-1.4.539l-.145-.378a8.75 8.75 0 0 1 0-6.282l.145-.378a.75.75 0 0 1 .97-.431m5.961 0a.75.75 0 0 1 .97.43l.145.379a8.75 8.75 0 0 1 0 6.282l-.146.378a.75.75 0 1 1-1.4-.538l.146-.379a7.25 7.25 0 0 0 0-5.205l-.146-.378a.75.75 0 0 1 .431-.97",clipRule:"evenodd"})),n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))),B=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M8.75 4.5a.75.75 0 0 0-1.5 0V8a.75.75 0 0 0 .3.6l2 1.5a.75.75 0 1 0 .9-1.2l-1.7-1.275z",clipRule:"evenodd"}));var W=i(32084),V=i(9187),z=i(38602),G=i(33705);function j({placeholderValue:e,timeZone:t}){return null!==e&&void 0!==e?e:(0,f.KQ)({timeZone:t}).set("hour",0).set("minute",0).set("second",0)}function K(e,t,i){return t&&e.isBefore(t)?t:i&&i.isBefore(e)?i:e}function Y(e,t){return e.set("hours",t.hour()).set("minutes",t.minute()).set("seconds",t.second())}function q(e,t,i){return(0,f.KQ)({input:e,timeZone:i}).format(t)}function $(e,t){const i=n.useRef(null),s=t.isCellFocused(e);n.useEffect((()=>{var e;s&&(null===(e=i.current)||void 0===e||e.focus({preventScroll:!0}))}),[s]);const r=t.focusedDate.isSame(e,t.mode)?0:-1,o=t.isCellDisabled(e),a=t.isSelected(e),l="highlightedRange"in t&&t.highlightedRange,c=Boolean(l&&a),h=a&&l&&e.isSame(l.start,t.mode),d=a&&l&&e.isSame(l.end,t.mode),u="days"===t.mode&&!t.focusedDate.isSame(e,"month"),g=t.isCellUnavailable(e),p=!o&&!g,m=t.isCurrent(e),f=t.isWeekend(e),_=function(e,t){switch(t.mode){case"days":return`${q(e,"dddd",t.timeZone)}, ${q(e,"LL",t.timeZone)}`;case"months":return`${q(e,"MMMM YYYY",t.timeZone)}`;case"quarters":return`${q(e,"[Q]Q YYYY",t.timeZone)}`;case"years":return`${q(e,"YYYY",t.timeZone)}`;default:return""}}(e,t),v={role:"gridcell","aria-selected":a?"true":void 0,"aria-disabled":o?"true":void 0},C={ref:i,role:"button",tabIndex:o?void 0:r,"aria-disabled":p?void 0:"true","aria-label":_,onClick:p?()=>{t.setFocusedDate(e),t.selectDate(e)}:void 0,onPointerEnter(){if("highlightDate"in t&&p)if(u){const i=e.isBefore(t.focusedDate)?t.focusedDate.startOf("month"):t.focusedDate.endOf("month").startOf("date");t.highlightDate(i)}else t.highlightDate(e)}};let b=q(e,"D",t.timeZone);return"months"===t.mode?b=q(e,"MMM",t.timeZone):"quarters"===t.mode?b=q(e,"[Q]Q",t.timeZone):"years"===t.mode&&(b=q(e,"YYYY",t.timeZone)),{cellProps:v,buttonProps:C,formattedDate:b,isDisabled:o,isSelected:a,isRangeSelection:c,isSelectionStart:h,isSelectionEnd:d,isOutsideCurrentRange:u,isUnavailable:g,isCurrent:m,isWeekend:f}}const Q=JSON.parse('{"Previous":"Previous","Next":"Next","Switch to months view":"Switch to months view","Switch to quarters view":"Switch to quarters view","Switch to years view":"Switch to years view"}'),X=JSON.parse('{"Previous":"\u041d\u0430\u0437\u0430\u0434","Next":"\u0412\u043f\u0435\u0440\u0451\u0434","Switch to months view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043c\u0435\u0441\u044f\u0446\u0430\u043c","Switch to quarters view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u043a\u0432\u0430\u0440\u0442\u0430\u043b\u0430\u043c","Switch to years view":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043e \u0433\u043e\u0434\u0430\u043c"}'),Z=(0,_.N)({en:Q,ru:X},`${l}calendar`),J="yc-button_disabled g-button_disabled";function ee(e,t){const i=t.indexOf(e)+1;if(i===t.length)return;return{days:"",months:Z("Switch to months view"),quarters:Z("Switch to quarters view"),years:Z("Switch to years view")}[t[i]]}const te=["days","months","quarters","years"],ie=c("calendar"),se=n.forwardRef((function(e,t){const{state:i}=e,{calendarProps:r,modeButtonProps:o,nextButtonProps:l,previousButtonProps:c}=function(e,t){const i="years"===t.mode||"quarters"===t.mode?`${t.startDate.year()} \u2014 ${t.endDate.year()}`:q(t.focusedDate,"days"===t.mode?"MMMM YYYY":"YYYY",t.timeZone),{focusWithinProps:s}=(0,a.R)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur}),r=Object.assign({role:"group",id:e.id,"aria-label":[e["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]||void 0,"aria-describedby":e["aria-describedby"]||void 0,"aria-details":e["aria-details"]||void 0,"aria-disabled":t.disabled||void 0},s),o=t.availableModes.indexOf(t.mode),l=o+1===t.availableModes.length,c=o+2===t.availableModes.length,h=t.disabled||l,d={disabled:t.disabled,className:h?J:void 0,onClick:h?void 0:()=>{t.zoomOut(),c&&t.setFocused(!0)},extraProps:{"aria-disabled":h?"true":void 0,"aria-description":ee(t.mode,t.availableModes),"aria-live":"polite"},children:i},u=n.useRef(!1),g=t.disabled||t.isPreviousPageInvalid();n.useLayoutEffect((()=>{g&&u.current&&(u.current=!1,t.setFocused(!0))}));const p={disabled:t.disabled,className:g?J:void 0,onClick:g?void 0:()=>{t.focusPreviousPage()},onFocus:g?void 0:()=>{u.current=!0},onBlur:g?void 0:()=>{u.current=!1},extraProps:{"aria-label":Z("Previous"),"aria-disabled":g?"true":void 0}},m=n.useRef(!1),f=t.disabled||t.isNextPageInvalid();return n.useLayoutEffect((()=>{f&&m.current&&(m.current=!1,t.setFocused(!0))})),{calendarProps:r,modeButtonProps:d,nextButtonProps:{disabled:t.disabled,className:f?J:void 0,onClick:f?void 0:()=>{t.focusNextPage()},onFocus:f?void 0:()=>{m.current=!0},onBlur:f?void 0:()=>{m.current=!1},extraProps:{"aria-label":Z("Next"),"aria-disabled":g?"true":void 0}},previousButtonProps:p}}(e,i);return n.useImperativeHandle(t,(()=>({focus(){i.setFocused(!0)}}))),(0,s.jsxs)("div",Object.assign({},r,{className:ie({size:e.size}),children:[(0,s.jsxs)("div",{className:ie("header"),children:[(0,s.jsx)(g.$,Object.assign({},o,{view:"flat",size:e.size,children:i.availableModes.indexOf(i.mode)+1===i.availableModes.length?(0,s.jsx)("span",{className:ie("mode-label",ie("years-label")),children:o.children},"label"):[(0,s.jsx)("span",{className:ie("mode-label"),children:o.children},"label"),(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(G.I,{direction:"bottom"})},"icon")]})),(0,s.jsxs)("div",{className:ie("controls"),children:[(0,s.jsx)(g.$,Object.assign({},c,{view:"flat",size:e.size,children:(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(V.A,{className:ie("control-icon")})})})),(0,s.jsx)(g.$,Object.assign({},l,{view:"flat",size:e.size,children:(0,s.jsx)(g.$.Icon,{children:(0,s.jsx)(z.A,{className:ie("control-icon")})})}))]})]}),(0,s.jsx)(ne,{state:i})]}))}));function ne({state:e}){const[t,i]=n.useState((()=>Object.assign(Object.assign({},e),{isFocused:!1}))),r=e.mode!==t.mode,o=!e.startDate.isSame(t.startDate,"days");let l;r?l=te.indexOf(t.mode)>te.indexOf(e.mode)?"zoom-out":"zoom-in":o&&(l=e.startDate.isBefore(t.startDate)?"forward":"backward");const{gridProps:c}=function(e){const{focusWithinProps:t}=(0,a.R)({onFocusWithinChange:t=>{e.setFocused(t)}});return{gridProps:Object.assign(Object.assign({role:"grid","aria-label":"years"===e.mode||"quarters"===e.mode?`${e.startDate.year()} \u2014 ${e.endDate.year()}`:q(e.focusedDate,"days"===e.mode?"MMMM YYYY":"YYYY",e.timeZone),"aria-disabled":e.disabled?"true":void 0,"aria-readonly":e.readOnly?"true":void 0},t),{onKeyDown:t=>{"ArrowRight"===t.key?(t.preventDefault(),e.focusNextCell()):"ArrowLeft"===t.key?(t.preventDefault(),e.focusPreviousCell()):"ArrowDown"===t.key?(t.preventDefault(),e.focusNextRow()):"ArrowUp"===t.key?(t.preventDefault(),e.focusPreviousRow()):"PageDown"===t.key?(t.preventDefault(),e.focusNextPage(t.shiftKey)):"PageUp"===t.key?(t.preventDefault(),e.focusPreviousPage(t.shiftKey)):"End"===t.key?(t.preventDefault(),e.focusSectionEnd()):"Home"===t.key?(t.preventDefault(),e.focusSectionStart()):"Minus"===t.code?(t.preventDefault(),e.zoomOut()):"Equal"===t.code?(t.preventDefault(),e.zoomIn()):"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.selectDate(e.focusedDate))}})}}(e);return(0,s.jsxs)("div",Object.assign({className:ie("grid")},c,{children:[l&&(0,s.jsx)(re,{className:ie("previous-state"),state:t,animation:l}),(0,s.jsx)(re,{className:ie("current-state"),state:e,animation:l,onAnimationEnd:()=>{i(Object.assign(Object.assign({},e),{isFocused:!1}))}},"current")]}))}function re({className:e,state:t,animation:i,onAnimationEnd:n}){return(0,s.jsxs)("div",{className:ie("content",{animation:i},e),onAnimationEnd:n,role:"presentation",children:["days"===t.mode&&(0,s.jsx)(oe,{state:t}),(0,s.jsx)(ae,{state:t})]})}function oe({state:e}){const t=function(e){const t=[],i=(0,f.KQ)({timeZone:e.timeZone}).startOf("week");for(let s=0;s<7;s++){const e=i.add({days:s});t.push(e)}return t}(e);return(0,s.jsx)("div",{className:ie("grid-row"),role:"row",children:t.map((t=>(0,s.jsx)("div",{className:ie("weekday",{weekend:e.isWeekend(t)}),role:"columnheader","aria-label":q(t,"dddd",e.timeZone),children:q(t,"dd",e.timeZone)},t.day())))})}function ae({state:e}){const t="days"===e.mode?6:4,i="days"===e.mode?7:3+("quarters"===e.mode?1:0),n=function(e){const t=[],i=(0,f.KQ)({input:e.startDate,timeZone:e.timeZone});if("days"===e.mode){const e=i.startOf("week");for(let i=0;i<42;i++)t.push(e.add({days:i}))}else if("quarters"===e.mode)for(let s=0;s<16;s++)t.push(i.add(s,"quarters"));else for(let s=0;s<12;s++)t.push(i.add({[e.mode]:s}));return t}(e);return(0,s.jsx)("div",{className:ie("grid-rowgroup",{mode:e.mode}),role:"rowgroup",children:[...new Array(t).keys()].map((t=>(0,s.jsxs)("div",{className:ie("grid-row"),role:"row",children:["quarters"===e.mode?(0,s.jsx)("span",{role:"rowheader",className:ie("grid-rowgroup-header"),children:q(n[t*i],"YYYY",e.timeZone)}):null,n.slice(t*i,(t+1)*i).map((t=>(0,s.jsx)(le,{date:t,state:e},t.unix())))]},t)))})}function le({date:e,state:t}){const{cellProps:i,buttonProps:n,formattedDate:r,isDisabled:o,isSelected:a,isRangeSelection:l,isSelectionStart:c,isSelectionEnd:h,isOutsideCurrentRange:d,isUnavailable:u,isCurrent:g,isWeekend:p}=$(e,t);return(0,s.jsx)("div",Object.assign({},i,{children:(0,s.jsx)("div",Object.assign({},n,{className:ie("button",{disabled:o,selected:a,"range-selection":l,"selection-start":c,"selection-end":h,"out-of-boundary":d,unavailable:u,current:g,weekend:p}),children:r}))}))}function ce(e){const t=e?e.timeZone():"default",[i,s]=n.useState(t);e&&t!==i&&s(t);return e?t:i}const he={days:!0,months:!0,quarters:!1,years:!0};function de(e,t){if("days"===t)return e.startOf("month");if("months"===t)return e.startOf("year");if("quarters"===t){const t=4*Math.floor(e.year()/4);return e.startOf("year").set("year",t)}const i=12*Math.floor(e.year()/12);return e.startOf("year").set("year",i)}function ue(e,t){if("days"===t)return e.endOf("month").startOf("day");if("months"===t)return e.endOf("year").startOf("month");const i=de(e,t);return"quarters"===t?i.add(15,"quarters"):i.add({[t]:11})}function ge(e,t,i,s="days"){return!K(e,t,i).isSame(e,s)}const pe=n.forwardRef((function(e,t){const i=function(e){var t,i,s;const{disabled:r,readOnly:a,modes:l=he}=e,[c,h]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),d=te.filter((e=>l[e])),u=d[0]||"days",[g,p]=(0,o.P)(e.mode,null!==(i=e.defaultMode)&&void 0!==i?i:u,e.onUpdateMode),m=g&&d.includes(g)?g:u,_=ce(e.value||e.defaultValue||e.focusedValue||e.defaultFocusedValue),v=e.timeZone||_,C=n.useMemo((()=>e.minValue?e.minValue.timeZone(v):void 0),[v,e.minValue]),b=n.useMemo((()=>e.maxValue?e.maxValue.timeZone(v):void 0),[v,e.maxValue]),E=n.useMemo((()=>e.focusedValue?K(e.focusedValue.timeZone(v),C,b):e.focusedValue),[e.focusedValue,C,b,v]),S=n.useMemo((()=>{var t;return K((null===(t=e.defaultFocusedValue?e.defaultFocusedValue:c)||void 0===t?void 0:t.timeZone(v))||j({timeZone:v}).startOf(u),C,b)}),[b,C,e.defaultFocusedValue,v,c,u]),[y,w]=(0,o.P)(E,S,(t=>{var i;null===(i=e.onFocusUpdate)||void 0===i||i.call(e,t.timeZone(_))})),L=null!==(s=null===y||void 0===y?void 0:y.timeZone(v))&&void 0!==s?s:K(j({timeZone:v}),C,b);function R(e){w(K(e.startOf(m),C,b))}ge(L,C,b)&&w(K(L,C,b));const[T,x]=n.useState(e.autoFocus||!1),k=de(L,m),A=ue(L,m);return{disabled:r,readOnly:a,value:c,setValue(e){if(!r&&!a){let t=K(e,C,b);if(this.isCellUnavailable(t))return;c&&(t=Y(t,c.timeZone(v))),h(t.timeZone(_))}},timeZone:v,selectDate(e,t=!1){r||(a||!t&&this.mode!==u?this.zoomIn():(this.setValue(e.startOf(u)),t&&m!==u&&p(u)))},minValue:C,maxValue:b,focusedDate:L,startDate:k,endDate:A,setFocusedDate(e){R(e),x(!0)},focusNextCell(){R(L.add(1,this.mode))},focusPreviousCell(){R(L.subtract(1,this.mode))},focusNextRow(){"days"===this.mode?R(L.add(1,"week")):"quarters"===this.mode?R(L.add(1,"years")):R(L.add(3,this.mode))},focusPreviousRow(){"days"===this.mode?R(L.subtract(1,"week")):"quarters"===this.mode?R(L.subtract(1,"years")):R(L.subtract(3,this.mode))},focusNextPage(e){"days"===this.mode?R(L.add({months:e?12:1})):"quarters"===this.mode?R(L.add(4,"years")):R(L.add(12,this.mode))},focusPreviousPage(e){"days"===this.mode?R(L.subtract({months:e?12:1})):"quarters"===this.mode?R(L.subtract(4,"years")):R(L.subtract(12,this.mode))},focusSectionStart(){R(de(L,this.mode))},focusSectionEnd(){R(ue(L,this.mode))},zoomIn(){const e=d[d.indexOf(this.mode)-1];e&&this.setMode(e)},zoomOut(){const e=d[d.indexOf(this.mode)+1];e&&this.setMode(e)},selectFocusedDate(){this.selectDate(L,!0)},isFocused:T,setFocused:x,isInvalid(e){return ge(e,this.minValue,this.maxValue,this.mode)},isPreviousPageInvalid(){const e=this.startDate.subtract(1,"day");return this.isInvalid(e)},isNextPageInvalid(){const e=this.endDate.endOf(this.mode).add(1,"day");return this.isInvalid(e)},isSelected(e){return Boolean(c&&e.isSame(c.timeZone(v),m)&&!this.isCellDisabled(e))},isCellUnavailable(t){return this.mode===u&&Boolean(e.isDateUnavailable&&e.isDateUnavailable(t))},isCellFocused(e){return this.isFocused&&L&&e.isSame(L,m)},isCellDisabled(e){return this.disabled||this.isInvalid(e)},isWeekend(t){return"days"===this.mode&&("function"===typeof e.isWeekend?e.isWeekend(t):function(e){return[0,6].includes(e.day())}(t))},isCurrent(e){return(0,f.KQ)({timeZone:v}).isSame(e,this.mode)},mode:m,setMode:p,availableModes:d}}(e);return(0,s.jsx)(se,Object.assign({ref:t},e,{state:i}))}));var me=i(27145);const fe=JSON.parse('{"year_placeholder":"Y","month_placeholder":"M","weekday_placeholder":"E","day_placeholder":"D","hour_placeholder":"h","minute_placeholder":"m","second_placeholder":"s","dayPeriod_placeholder":"aa"}'),_e=JSON.parse('{"year_placeholder":"\u0413","month_placeholder":"\u041c","weekday_placeholder":"\u0414\u041d","day_placeholder":"\u0414","hour_placeholder":"\u0447","minute_placeholder":"\u043c","second_placeholder":"\u0441","dayPeriod_placeholder":"(\u0434|\u043f)\u043f"}'),ve=(0,_.N)({en:fe,ru:_e},`${l}date-field`),Ce={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,weekday:!0},be={start:"[",end:"]"},Ee={YY:"year",YYYY:"year",M:"month",MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:"day",DD:"day",Do:"day",d:"weekday",dd:{sectionType:"weekday",contentType:"letter"},ddd:{sectionType:"weekday",contentType:"letter"},dddd:{sectionType:"weekday",contentType:"letter"},A:{sectionType:"dayPeriod",contentType:"letter"},a:{sectionType:"dayPeriod",contentType:"letter"},H:"hour",HH:"hour",h:"hour",hh:"hour",m:"minute",mm:"minute",s:"second",ss:"second",z:{sectionType:"timeZoneName",contentType:"letter"},zzz:{sectionType:"timeZoneName",contentType:"letter"},Z:{sectionType:"timeZoneName",contentType:"letter"},ZZ:{sectionType:"timeZoneName",contentType:"letter"}};function Se(e){return 4===(0,f.KQ)().format(e).length}function ye(e,t){const{type:i,format:s}=e;switch(i){case"year":{const e=Se(s);return{minValue:e?1:0,maxValue:e?9999:99}}case"month":return{minValue:0,maxValue:11};case"weekday":return{minValue:0,maxValue:6};case"day":return{minValue:1,maxValue:t?t.daysInMonth():31};case"hour":if(function(e){return"15"!==(0,f.KQ)().set("hour",15).format(e)}(s)){const e=t.hour()>=12;return{minValue:e?12:0,maxValue:e?23:11}}return{minValue:0,maxValue:23};case"minute":case"second":return{minValue:0,maxValue:59}}return{}}function we(e,t){const i=e.type;switch(i){case"year":return Se(e.format)?t.year():Number(t.format(e.format));case"month":case"hour":case"minute":case"second":return t[i]();case"day":return t.date();case"weekday":return t.day();case"dayPeriod":return t.hour()>=12?12:0}}const Le={weekday:"day",day:"date",dayPeriod:"hour"};function Re(e){if("literal"===e||"timeZoneName"===e||"unknown"===e)throw new Error(`${e} section does not have duration unit.`);return e in Le?Le[e]:e}function Te(e,t){switch(e.type){case"year":return ve("year_placeholder").repeat((0,f.KQ)().format(t).length);case"month":return ve("month_placeholder").repeat("letter"===e.contentType?4:2);case"day":return ve("day_placeholder").repeat(2);case"weekday":return ve("weekday_placeholder").repeat("letter"===e.contentType?4:2);case"hour":return ve("hour_placeholder").repeat(2);case"minute":return ve("minute_placeholder").repeat(2);case"second":return ve("second_placeholder").repeat(2);case"dayPeriod":return ve("dayPeriod_placeholder");default:return t}}function xe(e){const t=[],i=(0,f.cS)(e);let s="",n=!1,r=!1;for(let o=0;o<i.length;o++){const e=i[o]||"";if(r){if(e===be.end){r=!1;continue}s+=e}else e.match(/[a-zA-Z]/)?(n&&(Ae(t,s),s=""),n=!1,s+=e):(n||(ke(t,s),s=""),n=!0,e===be.start?r=!0:s+=e)}return s&&(n?Ae(t,s):ke(t,s)),t}function ke(e,t){if(!t)return;const i=function(e){const t=Ee[e];return t?"string"===typeof t?{type:t,contentType:"digit"}:{type:t.sectionType,contentType:t.contentType}:(console.error([`The token "${e}" is not supported by the Date field.`,"Please try using another token."].join("\n")),{type:"literal",contentType:"letter"})}(t),s=function(e,t,i){if("digit"!==e)return!1;switch(t){case"year":return Se(i)?"0001"===(0,f.KQ)().set("year",1).format(i):"01"===(0,f.KQ)().set("year",2001).format(i);case"month":return(0,f.KQ)().startOf("year").format(i).length>1;case"day":return(0,f.KQ)().startOf("month").format(i).length>1;case"weekday":return(0,f.KQ)().startOf("week").format(i).length>1;case"hour":return(0,f.KQ)().set("hour",1).format(i).length>1;case"minute":return(0,f.KQ)().set("minute",1).format(i).length>1;case"second":return(0,f.KQ)().set("second",1).format(i).length>1;default:throw new Error("Invalid section type")}}(i.contentType,i.type,t);e.push(Object.assign(Object.assign({},i),{format:t,placeholder:Te(i,t),options:Ne(i,t),hasLeadingZeros:s}))}function Ae(e,t){t&&e.push({type:"literal",contentType:"letter",format:t,placeholder:t,hasLeadingZeros:!1})}function Ne(e,t){switch(e.type){case"month":{const i="letter"===e.contentType?t:"MMMM";let s=(0,f.KQ)().startOf("year");const n=[];for(let e=0;e<12;e++)n.push(s.format(i).toLocaleUpperCase()),s=s.add(1,"months");return n}case"dayPeriod":{const e=(0,f.KQ)().hour(0),i=e.hour(12);return[e.format(t).toLocaleUpperCase(),i.format(t).toLocaleUpperCase()]}case"weekday":{const i="letter"===e.contentType?t:"dddd";let s=(0,f.KQ)().day(0);const n=[];for(let e=0;e<7;e++)n.push(s.format(i).toLocaleUpperCase()),s=s.add(1,"day");return n}}}function Ie(e,t,i){let s=1;const n=[];let r=-1;for(let o=0;o<e.length;o++){const a=e[o];if(!a)continue;const l=De(a,t,i,s,r);if(n.push(l),Oe(a)){for(let e=Math.max(0,r);e<=o;e++){const t=n[e];t&&(t.nextEditableSection=o,-1===t.previousEditableSection&&(t.previousEditableSection=o))}r=o}s+=l.textValue.length}return n}function Oe(e){var t;return null!==(t=Ce[e.type])&&void 0!==t&&t}function De(e,t,i,s,n){const r=Oe(e);let o=e.placeholder;(r&&i[e.type]||"timeZoneName"===e.type)&&(o=t.format(e.format),"digit"===e.contentType&&o.length<e.placeholder.length&&(o=o.padStart(e.placeholder.length,"0"))),o="\u2068"+o+"\u2069";const a=o.length;return Object.assign(Object.assign(Object.assign({},e),{value:we(e,t),textValue:o,start:s,end:s+a,modified:!1,previousEditableSection:n,nextEditableSection:n}),ye(e,t))}function Me(e,t){const i="all"===t||-1===t?0:t,s=e[i];return s&&!Ce[s.type]?s.nextEditableSection:s?i:-1}function Pe(e){let t=(0,f.KQ)(e);return t.isValid()||(t=(0,f.KQ)(Object.assign(Object.assign({},e),{format:void 0}))),t}function Fe(e,t){return Object.keys(e).every((e=>t[e]))}function Ue(e,t){const i=n.useRef(null),[,s]=n.useState({});function r(t){e.setSelectedSections(t),s({})}function o(){var t,n;e.focusSectionInPosition(null!==(n=null===(t=i.current)||void 0===t?void 0:t.selectionStart)&&void 0!==n?n:0),s({})}n.useLayoutEffect((()=>{const t=i.current;if(!t)return;if(null===e.selectedSectionIndexes)return void(t.scrollLeft&&(t.scrollLeft=0));const s=e.sections[e.selectedSectionIndexes.startIndex],n=e.sections[e.selectedSectionIndexes.endIndex];if(s&&n){const e=s.start,i=n.end;e===t.selectionStart&&i===t.selectionEnd||t.setSelectionRange(e,i)}}));const a=n.useMemo((()=>{if(!e.selectedSectionIndexes)return"text";const t=e.sections[e.selectedSectionIndexes.startIndex];return t&&"letter"!==t.contentType?"tel":"text"}),[e.selectedSectionIndexes,e.sections]);return{inputProps:{value:e.text,view:t.view,size:t.size,disabled:e.disabled,hasClear:!e.readOnly&&!e.isEmpty&&t.hasClear,placeholder:t.placeholder,id:t.id,label:t.label,startContent:t.startContent,endContent:t.endContent,pin:t.pin,autoFocus:t.autoFocus,controlRef:i,autoComplete:"off",type:"text",validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,onUpdate(t){t||e.clearAll()},onFocus(s){var n;if(null===(n=t.onFocus)||void 0===n||n.call(t,s),null!==e.selectedSectionIndexes)return;const a=s.target,l=!i.current;setTimeout((()=>{a&&a===i.current&&(l?e.focusSectionInPosition(0):a.value.length&&Number(a.selectionEnd)-Number(a.selectionStart)===a.value.length?r("all"):o())}))},onBlur(e){var i;null===(i=t.onBlur)||void 0===i||i.call(t,e),r(-1)},onKeyDown(i){var s;null===(s=t.onKeyDown)||void 0===s||s.call(t,i),"ArrowLeft"===i.key?(i.preventDefault(),e.focusPreviousSection()):"ArrowRight"===i.key?(i.preventDefault(),e.focusNextSection()):"Home"===i.key?(i.preventDefault(),e.decrementToMin()):"End"===i.key?(i.preventDefault(),e.incrementToMax()):"ArrowUp"!==i.key||i.altKey?"ArrowDown"!==i.key||i.altKey?"PageUp"===i.key?(i.preventDefault(),e.incrementPage()):"PageDown"===i.key?(i.preventDefault(),e.decrementPage()):"Backspace"===i.key||"Delete"===i.key?(i.preventDefault(),e.clearSection()):"a"===i.key&&(i.ctrlKey||i.metaKey)&&(i.preventDefault(),r("all")):(i.preventDefault(),e.decrement()):(i.preventDefault(),e.increment())},onKeyUp:t.onKeyUp,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0,readOnly:e.readOnly,inputMode:a,onClick(){o()},onMouseUp(e){e.preventDefault()},onBeforeInput(t){t.preventDefault();const i=t.data;void 0!==i&&null!==i&&e.onInput(i)},onPaste(t){if(t.preventDefault(),e.readOnly)return;const i=t.clipboardData.getData("text").replace(/[\u2066\u2067\u2068\u2069]/g,"");if(e.selectedSectionIndexes&&e.selectedSectionIndexes.startIndex===e.selectedSectionIndexes.endIndex){const t=e.sections[e.selectedSectionIndexes.startIndex],s=/^\d+$/.test(i),n=/^[a-zA-Z]+$/.test(i);if(Boolean(t&&("digit"===t.contentType&&s||"letter"===t.contentType&&n)))return void e.onInput(i);if(s||n)return}e.setValueFromString(i)}}}}}const He={year:5,month:2,weekday:3,day:7,hour:2,minute:15,second:15};function Be(e){var t,i;const[s,r]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),a=ce(e.value||e.defaultValue||e.placeholderValue),l=e.timeZone||a,c=e=>{r(e?e.timeZone(a):e)},[h,d]=n.useState((()=>j({placeholderValue:e.placeholderValue,timeZone:l}))),u=e.format||"L",g=function(e){const t=e,[i,s]=n.useState((()=>xe(t))),[r,o]=n.useState(t);return t!==r&&(o(t),s(xe(t))),i}(u),p=n.useMemo((()=>g.filter((e=>Ce[e.type])).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t.type]:!0})),{})),[g]),m=n.useState((()=>s?Object.assign({},p):{}));let _=m[0];const v=m[1];s&&!Fe(p,_)&&v(Object.assign({},p)),!s&&Object.keys(p).length>0&&Fe(p,_)&&Object.keys(_).length===Object.keys(p).length&&(_={},v(_),d(j({placeholderValue:e.placeholderValue,timeZone:l})));const C=s&&s.isValid()&&Fe(p,_)?s.timeZone(l):h.timeZone(l),b=function(e,t,i){const[s,r]=n.useState((()=>({value:t,sections:e,validSegments:i,editableSections:Ie(e,t,i)})));e===s.sections&&i===s.validSegments&&t.isSame(s.value)&&t.timeZone()===s.value.timeZone()||r({value:t,sections:e,validSegments:i,editableSections:Ie(e,t,i)});return s}(g,C,_),[E,S]=n.useState(-1),y=n.useMemo((()=>{if(-1===E)return null;if("all"===E)return{startIndex:0,endIndex:b.editableSections.length-1};if("number"===typeof E)return{startIndex:E,endIndex:E};if("string"===typeof E){const e=b.editableSections.findIndex((e=>e.type===E));return{startIndex:e,endIndex:e}}return E}),[E,b.editableSections]);function w(t){e.disabled||e.readOnly||(Fe(p,_)?s&&t.isSame(s)||c(t):(s&&c(null),d(t)))}function L(e){_[e]=!0,_.day&&_.month&&_.year&&p.weekday&&(_.weekday=!0),_.hour&&p.dayPeriod&&(_.dayPeriod=!0),v(Object.assign({},_))}const R=e.validationState||(function(e,t,i){return!!e&&(!(!t||!e.isBefore(t))||!(!i||!i.isBefore(e)))}(s,e.minValue,e.maxValue)?"invalid":void 0)||(s&&(null===(i=e.isDateUnavailable)||void 0===i?void 0:i.call(e,s))?"invalid":void 0);return function(e){const{value:t,validationState:i,displayValue:s,editableSections:r,selectedSectionIndexes:o,selectedSections:a,isEmpty:l,flushAllValidSections:c,flushValidSection:h,setSelectedSections:d,setValue:u,setDate:g,adjustSection:p,setSection:m,getSectionValue:f,setSectionValue:_,createPlaceholder:v,setValueFromString:C}=e,b=n.useRef(""),{hasDate:E,hasTime:S}=n.useMemo((()=>{let e=!1,t=!1;for(const i of r)t||(t=["hour","minute","second"].includes(i.type)),e||(e=["day","month","year"].includes(i.type));return{hasTime:t,hasDate:e}}),[r]);return{value:t,isEmpty:l,displayValue:s,setValue:u,setDate:g,text:(y=r,"\u2066"+y.map((e=>e.textValue)).join("")+"\u2069"),readOnly:e.readOnly,disabled:e.disabled,sections:r,hasDate:E,hasTime:S,selectedSectionIndexes:o,validationState:i,setSelectedSections(e){b.current="",d(e)},focusSectionInPosition(e){const t=this.sections.findIndex((t=>t.end>=e)),i=-1===t?0:t,s=this.sections[i];s&&this.setSelectedSections(Ce[s.type]?i:s.nextEditableSection)},focusNextSection(){var e,t;const i="all"===a?0:a,s=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==s&&this.setSelectedSections(s)},focusPreviousSection(){var e,t;const i="all"===a?0:a,s=null!==(t=null===(e=this.sections[i])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==s&&this.setSelectedSections(s)},focusFirstSection(){var e,t;const i=null!==(t=null===(e=this.sections[0])||void 0===e?void 0:e.previousEditableSection)&&void 0!==t?t:-1;-1!==i&&d(i)},focusLastSection(){var e,t;const i=null!==(t=null===(e=this.sections[this.sections.length-1])||void 0===e?void 0:e.nextEditableSection)&&void 0!==t?t:-1;-1!==i&&this.setSelectedSections(i)},increment(){if(this.readOnly||this.disabled)return;b.current="";const e=Me(this.sections,a);-1!==e&&p(e,1)},decrement(){if(this.readOnly||this.disabled)return;b.current="";const e=Me(this.sections,a);-1!==e&&p(e,-1)},incrementPage(){if(this.readOnly||this.disabled)return;b.current="";const e=Me(this.sections,a);-1!==e&&p(e,He[this.sections[e].type]||1)},decrementPage(){if(this.readOnly||this.disabled)return;b.current="";const e=Me(this.sections,a);-1!==e&&p(e,-(He[this.sections[e].type]||1))},incrementToMax(){if(this.readOnly||this.disabled)return;b.current="";const e=Me(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.maxValue&&m(e,t.maxValue)}},decrementToMin(){if(this.readOnly||this.disabled)return;b.current="";const e=Me(this.sections,a);if(-1!==e){const t=this.sections[e];"number"===typeof t.minValue&&m(e,t.minValue)}},clearSection(){if(this.readOnly||this.disabled)return;if(b.current="","all"===a)return void this.clearAll();const t=Me(this.sections,a);if(-1===t)return;h(t);const i=this.sections[t],s=j({placeholderValue:e.placeholderValue,timeZone:e.timeZone}).timeZone(e.timeZone),n=f(t);let r=n;if("dayPeriod"===i.type){const e=n.hour()>=12,t=s.hour()>=12;e&&!t?r=n.set("hour",n.hour()-12):!e&&t&&(r=n.set("hour",n.hour()+12))}else{const e=Re(i.type);r=n.set(e,s[e]())}_(t,r)},clearAll(){if(this.readOnly||this.disabled)return;b.current="",c(),null!==t&&g(null);const e=v();u(e)},onInput(e){if(this.readOnly||this.disabled)return;const t=Me(this.sections,a);if(-1===t)return;const i=this.sections[t];let s=b.current+e;const n=n=>{var r,o,a;let l="month"===i.type?n-1:n;const c=0===i.minValue;if("hour"!==i.type||12!==i.minValue&&11!==i.maxValue){if(l>(null!==(r=i.maxValue)&&void 0!==r?r:0)&&(l=Number(e)-("month"===i.type?1:0),s=e,l>(null!==(o=i.maxValue)&&void 0!==o?o:0)))return void(b.current="")}else n>12&&(l=Number(e)),12===i.minValue&&l>1&&(l+=12);const h=l>0||0===l&&c;h&&m(t,l),Number(n+"0")>(null!==(a=i.maxValue)&&void 0!==a?a:0)||s.length>=String(i.maxValue).length?(b.current="",h&&this.focusNextSection()):b.current=s},r=n=>{var r;const o=null!==(r=i.options)&&void 0!==r?r:[];let a=n.toLocaleUpperCase(),l=o.filter((e=>e.startsWith(a)));if(0===l.length&&(n!==e&&(a=e.toLocaleUpperCase(),l=o.filter((e=>e.startsWith(a)))),0===l.length))return void(b.current="");const c=l[0],h=o.indexOf(c);"dayPeriod"===i.type?m(t,1===h?12:0):m(t,h),l.length>1?b.current=s:(b.current="",this.focusNextSection())};switch(i.type){case"day":case"hour":case"minute":case"second":case"year":if(!Number.isInteger(Number(s)))return;n(Number(s));break;case"dayPeriod":r(s);break;case"weekday":case"month":Number.isInteger(Number(s))?n(Number(s)):r(s)}},setValueFromString:e=>(b.current="",C(e))};var y}({value:s,displayValue:C,placeholderValue:e.placeholderValue,timeZone:l,validationState:R,editableSections:b.editableSections,readOnly:e.readOnly,disabled:e.disabled,selectedSectionIndexes:y,selectedSections:E,isEmpty:0===Object.keys(_).length,flushAllValidSections:function(){_={},v({})},flushValidSection:function(e){const t=b.editableSections[e];t&&delete _[t.type],v(Object.assign({},_))},setSelectedSections:S,setValue:w,setDate:c,adjustSection:function(e,t){const i=b.editableSections[e];i&&(_[i.type]?w(function(e,t,i){var s;let n=null!==(s=e.value)&&void 0!==s?s:0;if("dayPeriod"===e.type)n=t.hour()+(t.hour()>=12?-12:12);else{n+=i;const t=e.minValue,s=e.maxValue;if("number"===typeof t&&"number"===typeof s){const e=s-t+1;n=(n-t+e)%e+t}}"year"!==e.type||Se(e.format)||(n=(0,f.KQ)({input:`${n}`.padStart(2,"0"),format:e.format}).year());const r=Re(e.type);return t.set(r,n)}(i,C,t)):(L(i.type),Object.keys(_).length>=Object.keys(p).length&&w(C)))},setSection:function(e,t){const i=b.editableSections[e];i&&(L(i.type),w(function(e,t,i){const s=e.type;switch(s){case"year":return t.set("year",Se(e.format)?i:(0,f.KQ)({input:`${i}`.padStart(2,"0"),format:e.format}).year());case"day":case"weekday":case"month":return t.set(Re(s),i);case"dayPeriod":{const e=t.hour(),s=e>=12;return i>=12===s?t:t.set("hour",s?e-12:e+12)}case"hour":{let s=i;if(12===e.minValue||11===e.maxValue){const e=t.hour()>=12;e||12!==s||(s=0),e&&s<12&&(s+=12)}return t.set("hour",s)}case"minute":case"second":return t.set(s,i)}return t}(i,C,t)))},getSectionValue:function(e){return C},setSectionValue:function(e,t){w(t)},createPlaceholder:function(){return j({placeholderValue:e.placeholderValue,timeZone:l}).timeZone(l)},setValueFromString:function(e){const t=function(e,t,i){let s=Pe({input:e,format:t,timeZone:i});s.isValid()&&i&&!function(e){return/z$/i.test(e)||/[+-]\d\d:\d\d$/.test(e)}(e)&&(s=Y(s,Pe({input:e,format:t})));return s}(e,u,l);return!!t.isValid()&&(c(t),!0)}})}const We=c("date-field");function Ve(e){var{className:t}=e,i=(0,me.Tt)(e,["className"]);const r=Be(i),{inputProps:o}=Ue(r,i),[l,c]=n.useState(!1),{focusWithinProps:d}=(0,a.R)({onFocusWithinChange(e){c(e)}});return(0,s.jsxs)("div",Object.assign({className:We(null,t),style:i.style},d,{children:[(0,s.jsx)(u.k,Object.assign({},o,{value:r.isEmpty&&!l&&i.placeholder?"":o.value})),(0,s.jsx)(h,{name:i.name,value:r.value,toStringValue:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.toISOString())&&void 0!==t?t:""},onReset:e=>{r.setDate(e)},disabled:r.disabled,form:i.form})]}))}const ze=c("mobile-calendar");function Ge({props:e,state:t}){var i,n;let r="date";return t.hasTime&&t.hasDate?r="datetime-local":t.hasTime&&(r="time"),(0,s.jsx)("input",{className:ze(),disabled:e.disabled,type:r,value:Ke(t.dateFieldState.value,r),id:e.id,min:Ke(null===(i=e.minValue)||void 0===i?void 0:i.timeZone(t.timeZone),r),max:Ke(null===(n=e.maxValue)||void 0===n?void 0:n.timeZone(t.timeZone),r),tabIndex:-1,onChange:i=>{var s,n;if(e.readOnly)return;const o=i.target.value;if(o){const i=(0,f.KQ)({input:o,format:je(r),timeZone:"system"}).timeZone(t.timeZone,!0);let a=t.hasDate?i:j({placeholderValue:null===(s=e.placeholderValue)||void 0===s?void 0:s.timeZone(t.timeZone),timeZone:t.timeZone});a=t.hasTime?Y(a,i):t.value?Y(a,t.value.timeZone(t.timeZone)):Y(a,j({placeholderValue:null===(n=e.placeholderValue)||void 0===n?void 0:n.timeZone(t.timeZone),timeZone:t.timeZone})),t.setValue(a)}else t.setValue(null)}})}function je(e){switch(e){case"time":return"HH:mm";case"datetime-local":return"YYYY-MM-DDTHH:mm";default:return"YYYY-MM-DD"}}function Ke(e,t){if(!e)return"";const i=je(t);return e.format(i)}const Ye=c("stub-button");function qe({size:e,icon:t}){return(0,s.jsx)("span",{className:Ye({size:e}),children:(0,s.jsx)("span",{className:Ye("icon"),children:(0,s.jsx)(p.I,{data:t})})})}function $e(...e){const t=Object.assign({},e[0]);for(let i=1;i<e.length;i++){const s=e[i];if(s)for(const e of Object.keys(s)){const i=t[e],n=s[e];"function"===typeof i&&"function"===typeof n&&e.startsWith("on")&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Qe(i,n):t[e]="className"===e&&"string"===typeof i&&"string"===typeof n?i+" "+n:"controlProps"===e&&"object"===typeof i&&"object"===typeof n?$e(i,n):void 0===n?i:n}}return t}function Qe(...e){return(...t)=>{for(const i of e)"function"===typeof i&&i(...t)}}const Xe=JSON.parse('{"Calendar":"Calendar","Formula input mode":"Formula input mode"}'),Ze=JSON.parse('{"Calendar":"\u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c","Formula input mode":"\u0420\u0435\u0436\u0438\u043c \u0432\u0432\u043e\u0434\u0430 \u0444\u043e\u0440\u043c\u0443\u043b\u044b"}'),Je=(0,_.N)({en:Xe,ru:Ze},`${l}relative-date-picker`);function et(e,t){var{onFocus:i,onBlur:s}=t,r=(0,me.Tt)(t,["onFocus","onBlur"]);const{mode:l,setMode:c,datePickerState:h,relativeDateState:d}=e,[u,g]=n.useState("relative"===l?d.lastCorrectDate:h.dateFieldState.displayValue),[p,f]=n.useState(d.lastCorrectDate);p!==d.lastCorrectDate&&(f(d.lastCorrectDate),g(d.lastCorrectDate));const[_,v]=n.useState(h.dateFieldState.displayValue);h.dateFieldState.displayValue.isSame(_,"day")||(v(h.dateFieldState.displayValue),g(h.dateFieldState.displayValue));const{focusWithinProps:C}=(0,a.R)({onFocusWithin:i,onBlurWithin:s,onFocusWithinChange(t){t||e.setActive(!1)}}),[b,E]=(0,o.P)(void 0,!1,r.onOpenChange);!e.isActive&&b&&E(!1);const S={onFocus:()=>{e.isActive||(e.setActive(!0),E(!0))},errorMessage:r.errorMessage,errorPlacement:r.errorPlacement,controlProps:{onClick:()=>{e.disabled||b||(e.setActive(!0),E(!0))},role:"combobox","aria-expanded":b}},{inputProps:y}=Ue(h.dateFieldState,Object.assign(Object.assign({},r),{value:void 0,defaultValue:void 0,onUpdate:void 0})),{inputProps:w}=function(e,t){const[i,s]=n.useState(e.lastCorrectDate),[r,o]=n.useState(e.lastCorrectDate);return i!==e.lastCorrectDate&&(s(e.lastCorrectDate),o(e.lastCorrectDate)),{inputProps:{size:t.size,autoFocus:t.autoFocus,value:e.text,onUpdate:e.setText,disabled:e.disabled,hasClear:t.hasClear,validationState:e.validationState,errorMessage:t.errorMessage,errorPlacement:t.errorPlacement,label:t.label,id:t.id,startContent:t.startContent,endContent:t.endContent,pin:t.pin,view:t.view,placeholder:t.placeholder,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onBlur:t.onBlur,onFocus:t.onFocus,controlProps:{"aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,"aria-describedby":t["aria-describedby"]||void 0,"aria-details":t["aria-details"]||void 0,"aria-disabled":e.disabled||void 0,readOnly:e.readOnly}},calendarProps:{size:"s"===t.size?"m":t.size,readOnly:!0,value:e.parsedDate,focusedValue:r,onFocusUpdate:o},timeInputProps:{size:t.size,readOnly:!0,value:e.lastCorrectDate,format:"LTS"}}}(d,Object.assign(Object.assign({},r),{value:void 0,defaultValue:void 0,onUpdate:void 0}));let L=r.validationState;L||(L="relative"===l?d.validationState:h.dateFieldState.validationState);const R=n.useRef(null),T=(0,W.N)(R,"relative"===l?w.controlRef:y.controlRef),x=n.useRef(null);function k(){setTimeout((()=>{var e;null===(e=x.current)||void 0===e||e.focus()}))}function A(){setTimeout((()=>{var e;null===(e=R.current)||void 0===e||e.focus({preventScroll:!0})}))}const N=n.useRef(null);return{groupProps:Object.assign(Object.assign({ref:N,tabIndex:-1,role:"group"},C),{onKeyDown:e=>{!e.altKey||"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),e.stopPropagation(),E(!0),k())}}),fieldProps:$e(S,"relative"===l?w:y,"absolute"===l&&h.dateFieldState.isEmpty&&!e.isActive&&r.placeholder?{value:""}:void 0,{controlRef:T,validationState:L}),modeSwitcherProps:{size:m(r.size),disabled:e.readOnly||e.disabled,view:"flat-secondary",style:{zIndex:2,marginInlineEnd:2},selected:"relative"===l,extraProps:{"aria-label":Je("Formula input mode")},onClick:()=>{if(c("relative"===l?"absolute":"relative"),"relative"===l){const e=h.value;e&&g(e)}else d.parsedDate&&g(d.parsedDate);A()}},calendarButtonProps:{size:m(r.size),disabled:e.disabled,extraProps:{"aria-label":Je("Calendar"),"aria-haspopup":"dialog","aria-expanded":b},view:"flat-secondary",onClick:()=>{e.setActive(!0),E(!b),b||k()}},popupProps:{open:b,onEscapeKeyDown:()=>{E(!1),A()},onOutsideClick:e=>{var t;e.target&&!(null===(t=N.current)||void 0===t?void 0:t.contains(e.target))&&E(!1)},onTransitionExited:()=>{g("relative"===l?d.lastCorrectDate:h.dateFieldState.displayValue)}},calendarProps:{ref:x,size:"s"===r.size?"m":r.size,readOnly:r.readOnly,value:e.selectedDate,onUpdate:t=>{h.setDateValue(t),e.datePickerState.hasTime||(E(!1),A())},focusedValue:u,onFocusUpdate:g,minValue:r.minValue,maxValue:r.maxValue},timeInputProps:{value:h.timeValue,onUpdate:h.setTimeValue,format:h.timeFormat,readOnly:e.readOnly,disabled:e.disabled,timeZone:r.timeZone,hasClear:r.hasClear,size:r.size}}}const tt=function({getPlaceholderTime:e,mergeDateTime:t,setTimezone:i,getDateTime:s,useDateFieldState:r}){return function(a){var l,c;const{disabled:h,readOnly:d}=a,[u,g]=(0,o.P)(a.open,null!==(l=a.defaultOpen)&&void 0!==l&&l,a.onOpenChange),p=g,[m,f]=(0,o.P)(a.value,null!==(c=a.defaultValue)&&void 0!==c?c:null,a.onUpdate),[_,v]=n.useState(null),[C,b]=n.useState(null),E=ce(s(a.value)||s(a.defaultValue)||a.placeholderValue),S=a.timeZone||E;let y=_,w=C;const L=a.format||"L",R=(e,s)=>{h||d||(f(i(t(e,s),E)),v(null),b(null))},T=r(Object.assign(Object.assign({},a),{value:m,onUpdate(e){e?R(e,e):f(null)},disabled:h,readOnly:d,validationState:a.validationState,minValue:a.minValue,maxValue:a.maxValue,isDateUnavailable:a.isDateUnavailable,format:L,placeholderValue:a.placeholderValue,timeZone:S})),x=n.useMemo((()=>{if(!T.hasTime)return;const e=[],t=T.sections.find((e=>"hour"===e.type));t&&e.push(t.format);const i=T.sections.find((e=>"minute"===e.type));i&&e.push(i.format);const s=T.sections.find((e=>"second"===e.type));s&&e.push(s.format);const n=T.sections.find((e=>"dayPeriod"===e.type));return e.join(":")+(n?` ${n.format}`:"")}),[T.hasTime,T.sections]);m&&(y=i(m,S),T.hasTime&&(w=i(m,S)));return T.hasTime&&!w&&(w=T.displayValue),{value:m,setValue(e){a.readOnly||a.disabled||f(e?i(e,E):null)},dateValue:y,timeValue:w,setDateValue:e=>{if(h||d)return;const t=!T.hasTime;T.hasTime?w||t?R(e,w||e):v(e):R(e,e),t&&p(!1,"ValueSelected")},setTimeValue:t=>{if(h||d)return;const i=null!==t&&void 0!==t?t:e(a.placeholderValue,S);y?R(y,i):b(i)},disabled:h,readOnly:d,format:L,hasDate:T.hasDate,hasTime:T.hasTime,timeFormat:x,timeZone:S,isOpen:u,setOpen(t,i){!t&&!m&&y&&T.hasTime&&R(y,w||e(a.placeholderValue,a.timeZone)),p(t,i)},dateFieldState:T}}}({getPlaceholderTime:function(e,t){return j({placeholderValue:e,timeZone:t})},mergeDateTime:Y,setTimezone:(e,t)=>e.timeZone(t),getDateTime:function(e){if(e)return"start"in e&&"end"in e?e.start:e},useDateFieldState:Be});function it(e){var t;const[i,s]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[r,a]=n.useState("relative"===(null===i||void 0===i?void 0:i.type)?"relative":"absolute"),[l,c]=n.useState(i);i!==l&&(c(i),i&&i.type!==r&&a(i.type));const[h,d]=n.useState("absolute"===(null===i||void 0===i?void 0:i.type)?i.value:null);"absolute"===(null===i||void 0===i?void 0:i.type)&&i.value!==h&&d(i.value);const u=tt({value:h,onUpdate:e=>{d(e),"absolute"===(null===i||void 0===i?void 0:i.type)&&(null===e||void 0===e?void 0:e.isSame(i.value))||s(e?{type:"absolute",value:e}:null)},format:e.format,placeholderValue:e.placeholderValue,timeZone:e.timeZone,disabled:e.disabled,readOnly:e.readOnly,minValue:e.minValue,maxValue:e.maxValue}),[g,p]=n.useState("relative"===(null===i||void 0===i?void 0:i.type)?i.value:null);"relative"===(null===i||void 0===i?void 0:i.type)&&i.value!==g&&p(i.value);const m=function(e){var t;const[i,s]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null,e.onUpdate),[r,a]=n.useState(null!==i&&void 0!==i?i:"");i&&i!==r&&a(i);const l=n.useMemo((()=>{var t;return i&&null!==(t=(0,f.bQ)(i,{timeZone:e.timeZone,roundUp:e.roundUp}))&&void 0!==t?t:null}),[i,e.timeZone,e.roundUp]),[c,h]=n.useState(l);l&&l!==c&&h(l);const d=e.validationState||r&&!l?"invalid":void 0;return{value:i,setValue(t){e.disabled||e.readOnly||s(t)},text:r,setText:t=>{if(!e.disabled&&!e.readOnly)if(a(t),(0,f.eP)(t)){const e=(0,f.bQ)(t);e&&e.isValid()?s(t):s(null)}else s(null)},parsedDate:l,lastCorrectDate:c,validationState:d,disabled:e.disabled,readOnly:e.readOnly}}({value:g,onUpdate:e=>{p(e),"relative"===(null===i||void 0===i?void 0:i.type)&&e===i.value||s(e?{type:"relative",value:e}:null)},disabled:e.disabled,readOnly:e.readOnly,timeZone:u.timeZone,roundUp:e.roundUp});i||("absolute"===r&&h?d(null):"relative"===r&&g&&p(null));const _="relative"===r?m.parsedDate:u.dateFieldState.displayValue,[v,C]=n.useState(!1);return{value:i,setValue(t){e.readOnly||e.disabled||s(t)},disabled:e.disabled,readOnly:e.readOnly,mode:r,setMode(t){e.readOnly||e.disabled||t===r||(a(t),"relative"===t?(!i&&g||i)&&s(g?{type:"relative",value:g}:null):(!i&&h||i)&&s(h?{type:"absolute",value:h}:null))},datePickerState:u,relativeDateState:m,selectedDate:_,isActive:v,setActive:C}}const st=c("relative-date-picker");function nt(e){var t;const i=it(e),{groupProps:o,fieldProps:a,modeSwitcherProps:l,calendarButtonProps:c,popupProps:m,calendarProps:f,timeInputProps:_}=et(i,e),v=n.useRef(null),C=(0,W.N)(v,o.ref),b=(0,r.I)(),E=i.datePickerState.hasTime&&!i.datePickerState.hasDate;return(0,s.jsxs)("div",Object.assign({},o,{ref:C,className:st(null,e.className),children:[b&&"absolute"===i.mode&&(0,s.jsx)(Ge,{state:i.datePickerState,props:{id:e.id,disabled:e.disabled,readOnly:e.readOnly,placeholderValue:e.placeholderValue,timeZone:e.timeZone}}),(0,s.jsx)(u.k,Object.assign({},a,{controlProps:Object.assign(Object.assign({},a.controlProps),{disabled:b&&"absolute"===i.mode,className:st("input",{mobile:b&&"absolute"===i.mode})}),hasClear:e.hasClear&&!(b&&"absolute"===i.mode),startContent:(0,s.jsx)(g.$,Object.assign({},l,{children:(0,s.jsx)(p.I,{data:H})})),endContent:(0,s.jsxs)(n.Fragment,{children:[!b&&!E&&(0,s.jsx)(g.$,Object.assign({},c,{children:(0,s.jsx)(p.I,{data:d})})),!b&&E&&(0,s.jsx)(qe,{size:c.size,icon:B}),b&&"absolute"===i.mode&&(0,s.jsx)(qe,{size:c.size,icon:E?B:d})]})})),(0,s.jsx)(h,{name:e.name,value:null===(t=i.value)||void 0===t?void 0:t.type,disabled:i.disabled,form:e.form}),(0,s.jsx)(h,{name:e.name,value:i.value,toStringValue:e=>function(e){if(!e)return"";if("relative"===e.type)return e.value;return e.value.toISOString()}(e),onReset:e=>{i.setValue(e)},disabled:i.disabled,form:e.form}),!b&&!E&&(0,s.jsx)(U.z,Object.assign({},m,{anchorRef:v,children:(0,s.jsxs)("div",{className:st("popup-content"),children:["function"===typeof e.children?e.children(f):(0,s.jsx)(pe,Object.assign({},f)),i.datePickerState.hasTime&&(0,s.jsx)("div",{className:st("time-field-wrapper"),children:(0,s.jsx)(Ve,Object.assign({},_))})]})}))]}))}var rt=i(23871),ot=i(40091),at=i(73633),lt=i(87924),ct=i.n(lt),ht=i(81824),dt=i.n(ht),ut=i(61199),gt=i.n(ut),pt=i(69220),mt=i(27629);const ft=JSON.parse('{"label_empty":"No data","label-actions":"Actions","label-row-select":"Select"}'),_t=JSON.parse('{"label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","label-actions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f","label-row-select":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c"}'),vt=(0,_.N)({en:ft,ru:_t},"Table");function Ct(e){(0,mt.m)(`[Table] Physical values (left, right) of "${e}" property are deprecated. Use logical values (start, end) instead.`)}function bt(e,t){return"left"===e?(Ct(t),"start"):"right"===e?(Ct(t),"end"):e}const Et=(0,pt.om)("table");class St extends n.Component{constructor(){super(...arguments),this.state={activeScrollElement:"scrollContainer",columnsStyles:Array.from(this.props.columns,(()=>({}))),columnHeaderRefs:Array.from(this.props.columns,(()=>n.createRef()))},this.tableRef=n.createRef(),this.scrollContainerRef=n.createRef(),this.horizontalScrollBarRef=n.createRef(),this.horizontalScrollBarInnerRef=n.createRef(),this.renderRow=(e,t)=>{const{columns:i,isRowDisabled:s,onRowClick:r,onRowMouseEnter:o,onRowMouseLeave:a,onRowMouseDown:l,getRowClassNames:c,verticalAlign:h,edgePadding:d,wordWrap:u,getRowDescriptor:g}=this.props,{columnsStyles:p}=this.state,m=null===g||void 0===g?void 0:g(e,t),f=(null===m||void 0===m?void 0:m.disabled)||(null===s||void 0===s?void 0:s(e,t))||!1,_=(null===m||void 0===m?void 0:m.classNames)||(null===c||void 0===c?void 0:c(e,t))||[],v=Boolean(!f&&r);return n.createElement("tr",{key:St.getRowId(this.props,e,t),onClick:!f&&r?r.bind(null,e,t):void 0,onMouseEnter:!f&&o?o.bind(null,e,t):void 0,onMouseLeave:!f&&a?a.bind(null,e,t):void 0,onMouseDown:!f&&l?l.bind(null,e,t):void 0,className:Et("row",{disabled:f,interactive:v,"vertical-align":h},_.join(" "))},i.map(((i,s)=>{const{id:r,align:o,primary:a,className:l,sticky:c}=i,h=St.getBodyCellContent(i,e,t),g=bt(o,"column.align"),m=bt(c,"column.sticky");return n.createElement("td",{key:r,style:p[s],className:Et("cell",{align:g,primary:a,sticky:m,"edge-padding":d,"word-wrap":u},l)},h)})))},this.handleScrollContainerMouseenter=()=>{this.setState({activeScrollElement:"scrollContainer"})},this.handleScrollContainerScroll=()=>{"scrollContainer"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.horizontalScrollBarRef.current.scrollLeft=this.scrollContainerRef.current.scrollLeft)},this.handleHorizontalScrollBarMouseenter=()=>{this.setState({activeScrollElement:"scrollBar"})},this.handleHorizontalScrollBarScroll=()=>{"scrollBar"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.scrollContainerRef.current.scrollLeft=this.horizontalScrollBarRef.current.scrollLeft)}}static getRowId(e,t,i){const{data:s,getRowId:n,getRowDescriptor:r}=e,o=null!==i&&void 0!==i?i:s.indexOf(t),a=null===r||void 0===r?void 0:r(t,o);return void 0!==(null===a||void 0===a?void 0:a.id)?a.id:"function"===typeof n?n(t,o):String(n&&n in t?t[n]:o)}static getHeadCellContent(e){const{id:t,name:i}=e;let s;return s="function"===typeof i?i():"string"===typeof i?i:t,s}static getBodyCellContent(e,t,i){const{id:s,template:n,placeholder:r}=e;let o,a;return o="function"===typeof r?r(t,i):null!==r&&void 0!==r?r:"\u2014","function"===typeof n?a=n(t,i):"string"===typeof n?a=ct()(t,n):dt()(t,s)&&(a=ct()(t,s)),[void 0,null,""].includes(a)&&o?o:a}static getDerivedStateFromProps(e,t){return e.columns.length===t.columnHeaderRefs.length?null:{columnHeaderRefs:Array.from(e.columns,(()=>n.createRef()))}}componentDidMount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver=new ResizeObserver((e=>{var t;const{contentRect:i}=e[0];null===(t=this.horizontalScrollBarInnerRef.current)||void 0===t||t.style.setProperty("width",`${i.width}px`)})),this.tableRef.current&&this.tableResizeObserver.observe(this.tableRef.current),this.scrollContainerRef.current&&(this.scrollContainerRef.current.addEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.addEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.addEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.addEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver=new ResizeObserver((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length&&this.updateColumnStyles()}))})),this.tableRef.current&&this.columnsResizeObserver.observe(this.tableRef.current),this.updateColumnStyles()}componentDidUpdate(e){this.props.columns!==e.columns&&this.updateColumnStyles()}componentWillUnmount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver&&this.tableResizeObserver.disconnect(),this.scrollContainerRef.current&&(this.scrollContainerRef.current.removeEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.removeEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.removeEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.removeEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver&&this.columnsResizeObserver.disconnect()}render(){const{columns:e,stickyHorizontalScroll:t,className:i,qa:s}=this.props,r=e.some((({primary:e})=>e));return n.createElement("div",{className:Et({"with-primary":r,"with-sticky-scroll":t},i),"data-qa":s},t?n.createElement(n.Fragment,null,n.createElement("div",{ref:this.scrollContainerRef,className:Et("scroll-container")},this.renderTable()),this.renderHorizontalScrollBar()):this.renderTable())}renderHead(){const{columns:e,edgePadding:t,wordWrap:i}=this.props,{columnsStyles:s}=this.state;return n.createElement("thead",{className:Et("head")},n.createElement("tr",{className:Et("row")},e.map(((e,r)=>{const{id:o,align:a,primary:l,sticky:c,className:h}=e,d=bt(a,"column.align"),u=bt(c,"column.sticky"),g=St.getHeadCellContent(e);return n.createElement("th",{key:o,ref:this.state.columnHeaderRefs[r],style:s[r],className:Et("cell",{align:d,primary:l,sticky:u,"edge-padding":t,"word-wrap":i},h)},g)}))))}renderBody(){const{data:e}=this.props;return n.createElement("tbody",{className:Et("body")},e.length>0?e.map(this.renderRow):this.renderEmptyRow())}renderTable(){const{width:e="auto"}=this.props;return n.createElement("table",{ref:this.tableRef,className:Et("table",{width:e})},this.renderHead(),this.renderBody())}renderEmptyRow(){const{columns:e,emptyMessage:t}=this.props;return n.createElement("tr",{className:Et("row",{empty:!0})},n.createElement("td",{className:Et("cell"),colSpan:e.length},t||vt("label_empty")))}renderHorizontalScrollBar(){const{stickyHorizontalScroll:e,stickyHorizontalScrollBreakpoint:t=0}=this.props;return n.createElement("div",{ref:this.horizontalScrollBarRef,className:Et("horizontal-scroll-bar",{"sticky-horizontal-scroll":e}),style:{bottom:`${t}px`},"data-qa":"sticky-horizontal-scroll-breakpoint-qa"},n.createElement("div",{ref:this.horizontalScrollBarInnerRef,className:Et("horizontal-scroll-bar-inner")}))}updateColumnStyles(){this.setState((e=>{const t=e.columnHeaderRefs.map((e=>null===e.current?void 0:e.current.getBoundingClientRect().width));return{columnsStyles:this.props.columns.map(((e,i)=>this.getColumnStyles(i,t)))}}))}getColumnStyles(e,t){const{columns:i}=this.props,s=i[e],n={};if("string"===typeof s.width)return{maxWidth:0,width:s.width};if("undefined"!==typeof s.width&&(n.width=s.width),!s.sticky)return n;const r="left"===s.sticky||"start"===s.sticky?t.slice(0,e):t.slice(e+1);return n["left"===s.sticky||"start"===s.sticky?"insetInlineStart":"insetInlineEnd"]=r.reduce(((e,t)=>gt()(t)?e+t:e),0),n}}St.defaultProps={edgePadding:!0};var yt=i(84375);const wt=c("relative-range-date-picker-presets-doc"),Lt=[{id:"title",name:()=>b("Range")},{id:"from",name:()=>b("From")},{id:"to",name:()=>b("To")}],Rt=[{get title(){return b("Last 5 minutes")},from:"now - 5m",to:"now"},{get title(){return b("From start of day")},from:"now/d",to:"now"},{get title(){return b("This week")},from:"now/w",to:"now/w"},{get title(){return b("From start of week")},from:"now/w",to:"now"},{get title(){return b("Previous month")},from:"now - 1M/M",to:"now - 1M/M"}];function Tt({size:e,docs:t}){return(0,s.jsx)(St,{columns:Lt,data:t,className:wt("table",{size:e})})}function xt({className:e,size:t,docs:i}){return(0,s.jsx)(yt.A,{className:wt(null,e),tooltipContentClassName:wt("content"),hasArrow:!1,content:(0,s.jsx)(Tt,{size:t,docs:i}),children:(0,s.jsx)(g.$,{className:wt("button"),view:"flat-secondary",size:m(t),children:(0,s.jsx)(p.I,{data:at.A})})})}function kt({className:e,size:t,docs:i}){const[r,o]=n.useState(!1);return(0,s.jsxs)("div",{className:wt(null,e),children:[(0,s.jsx)(g.$,{className:wt("button"),view:"flat-secondary",size:"l",onClick:()=>{o(!0)},children:(0,s.jsx)(p.I,{data:at.A})}),(0,s.jsx)(F.c,{visible:r,onClose:()=>o(!1),children:(0,s.jsx)(Tt,{size:t,docs:i})})]})}function At({className:e,size:t,docs:i=Rt}){const n=(0,r.I)();return Array.isArray(i)&&0!==i.length?n?(0,s.jsx)(kt,{className:e,size:t,docs:i}):(0,s.jsx)(xt,{className:e,size:t,docs:i}):null}const Nt=c("relative-range-date-picker-presets");function It({className:e,size:t="m",minValue:i,withTime:r,onChoosePreset:o,presetTabs:a,docs:l}){var c,h;const d=n.useMemo((()=>function(e,{minValue:t}={}){return e.reduce(((e,i)=>{const s=x(i.presets,t);return s.length&&e.push(Object.assign(Object.assign({},i),{presets:s})),e}),[])}(null!==a&&void 0!==a?a:function({withTime:e,minValue:t}){const i=[],s={id:"main",title:b("Main"),presets:[]},n=E;e&&n.unshift(...S),s.presets=x(n,t),s.presets.length>0&&i.push(s);const r={id:"other",title:b("Other"),presets:x(y,t)};return r.presets.length>0&&i.push(r),i}({withTime:r}),{minValue:i})),[r,i,a]),[u,g]=n.useState(null===(c=d[0])||void 0===c?void 0:c.id);if(0===d.length)return null;const p=null!==(h=d.find((e=>e.id===u)))&&void 0!==h?h:d[0];return p?(p.id!==u&&g(p.id),(0,s.jsxs)("div",{className:Nt({size:t},e),children:[(0,s.jsxs)("div",{className:Nt("tabs"),children:[(0,s.jsx)(rt.t,{activeTab:u,onSelectTab:g,items:d,size:"s"===t?"m":t}),(0,s.jsx)(At,{className:Nt("doc"),size:t,docs:l})]}),(0,s.jsx)("div",{className:Nt("content"),children:(0,s.jsx)(Dt,{presets:p.presets,onChoosePreset:o,size:t})})]})):null}const Ot={s:28,m:28,l:32,xl:36};function Dt({presets:e,onChoosePreset:t,size:i="m"}){const r=n.useRef(null);return n.useEffect((()=>{var e,t;const i=r.current,s=null===(t=null===(e=r.current)||void 0===e?void 0:e.refContainer.current)||void 0===t?void 0:t.node;if(i&&s)try{s.setAttribute("tabindex","0"),s.setAttribute("class",Nt("list-container"));const e=()=>{null===i.getActiveItem()&&i.activateItem(0,!0)};return s.addEventListener("focus",e),()=>{s.removeEventListener("focus",e)}}catch(n){}}),[]),(0,s.jsx)(ot.B,{ref:r,className:Nt("list"),itemClassName:Nt("item"),items:e,filterable:!1,virtualized:!1,renderItem:e=>e.title,itemHeight:Ot[i],onItemClick:e=>{t(e.from,e.to)}})}var Mt=i(24555),Pt=i(98089);const Ft=JSON.parse('{"default":"Default","system":"Browser time"}'),Ut=JSON.parse('{"default":"\u0414\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f","system":"\u0411\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f"}'),Ht=(0,_.N)({en:Ft,ru:Ut},`${l}relative-range-date-picker-zones`),Bt={},Wt=(0,f.Pn)().reduce(((e,t)=>{const[i]=t.split("/");if(i){let s=Bt[i];s||(s={label:i,options:[]},Bt[i]=s,e.push(s)),s.options.push({value:t})}return e}),[]);Wt.unshift({value:"UTC"}),Wt.unshift({value:"system",get content(){return Ht("system")}}),Wt.unshift({value:"default",get content(){return Ht("default")}});const Vt=c("relative-range-date-picker-zones");function zt(e){const t=k(e.value),i=e.isMobile?"xl":e.size;return(0,s.jsx)(Mt.l,{disabled:e.disabled,value:[t],options:Wt,size:i,onUpdate:t=>{const i=t[0];i&&e.onUpdate(i)},width:"max",renderControl:n=>{const r="system"===t||"default"===t?Ht(t):t;return(0,s.jsxs)(g.$,{onClick:n.onClick,ref:n.ref,view:"flat-secondary",width:"max",pin:"clear-clear",size:i,disabled:e.disabled,extraProps:{"aria-haspopup":"listbox","aria-expanded":n.open,onKeyDown:n.onKeyDown},className:Vt("control"),children:[`${r} (${A(t)})`,(0,s.jsx)(p.I,{className:Vt("control-icon"),data:z.A,size:e.isMobile?20:16})]})},renderOption:({value:e,content:t})=>{const i=null!==t&&void 0!==t?t:e;return(0,s.jsxs)("span",{className:Vt("item"),children:[(0,s.jsxs)("span",{className:Vt("item-title"),title:e,children:[i,"\xa0"]}),(0,s.jsx)(Pt.E,{color:"secondary",children:A(e)})]})},filterable:!0})}const Gt=JSON.parse('{"Value is incorrect.":"Value is incorrect.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","From":"From","To":"To","Apply":"Apply"}'),jt=JSON.parse('{"Value is incorrect.":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e.","Value is required.":"Value is required.","\\"From\\" can\'t be after \\"To\\".":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","From":"\u041e\u0442","To":"\u0414o","Apply":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c"}'),Kt=(0,_.N)({en:Gt,ru:jt},`${l}relative-range-date-picker-dialog`),Yt=JSON.parse('{"Value must be {minValue} or later.":"{{value}} must be {{minValue}} or later.","Value must be {maxValue} or earlier.":"{{value}} must be {{maxValue}} or earlier.","Selected date unavailable.":"Selected date unavailable.","Value is required.":"{{value}} is required."}'),qt=JSON.parse('{"Value must be {minValue} or later.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {minValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435.","Value must be {maxValue} or earlier.":"{value} \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u043e\u0432\u043d\u044f\u0442\u044c\u0441\u044f {maxValue} \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u0440\u0430\u043d\u044c\u0448\u0435.","Selected date unavailable.":"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u0434\u0430\u0442\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430.","Value is required.":"{value} \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e."}'),$t=(0,_.N)({en:Yt,ru:qt},`${l}validation`);function Qt(e,t,i,s,n,r="Value"){const o=e&&i&&i.isBefore(e),a=e&&t&&e.isBefore(t),l=e&&(null===s||void 0===s?void 0:s(e))||!1,c=o||a||l,h=[];return c&&(a&&t&&h.push($t("Value must be {minValue} or later.",{minValue:t.timeZone(n).format(),value:r})),o&&i&&h.push($t("Value must be {maxValue} or earlier.",{maxValue:i.timeZone(n).format(),value:r})),l&&h.push($t("Selected date unavailable."))),{isInvalid:c,errors:h}}function Xt(e,t,i={}){var s;if(!e&&!t)return null;const{isInvalid:n}=Zt(e,t,i.allowNullableValues,i.minValue,i.maxValue,i.isDateUnavailable,null!==(s=i.timeZone)&&void 0!==s?s:"default");return n?null:{start:e,end:t}}function Zt(e,t,i,s,n,r,o){if(!e&&!t)return{isInvalid:!1};const a=e?(0,f.bQ)(e.value,{timeZone:o}):null,l=t?(0,f.bQ)(t.value,{timeZone:o,roundUp:!0}):null,c=Qt(a,s,n,r,o);a||i||(c.isInvalid=!0,c.errors.push(Kt("Value is required.")));const h=Qt(l,s,n,r,o);return l||i||(h.isInvalid=!0,h.errors.push(Kt("Value is required."))),a&&l&&l.isBefore(a)&&(c.isInvalid=!0,c.errors.push(Kt('"From" can\'t be after "To".'))),{isInvalid:c.isInvalid||h.isInvalid,startValidationResult:c,endValidationResult:h}}const Jt=c("relative-range-date-picker-dialog");function ei({props:e,state:t,open:i,onClose:n,focusInput:r,isMobile:o,anchorRef:a,className:l}){return o?(0,s.jsx)(F.c,{visible:i,onClose:n,contentClassName:Jt("content",{mobile:!0,size:"xl"},l),children:(0,s.jsx)(ti,Object.assign({},e,{size:"xl",state:t,onApply:n}))}):(0,s.jsx)(U.z,{open:i,onEscapeKeyDown:()=>{n(),r()},onClose:n,role:"dialog",anchorRef:a,contentClassName:Jt("content",{size:e.size},l),autoFocus:!0,focusTrap:!0,children:(0,s.jsx)(ti,Object.assign({},e,{state:t,onApply:n}))})}function ti(e){var t,i,r,o,a,l,c;const h=function(e,t){var i,s,r,o;const{withApplyButton:a,allowNullableValues:l}=t,[c,h]=n.useState(null!==(s=null===(i=e.value)||void 0===i?void 0:i.start)&&void 0!==s?s:null),[d,u]=n.useState(null!==(o=null===(r=e.value)||void 0===r?void 0:r.end)&&void 0!==o?o:null),[g,p]=n.useState(e.timeZone),m=a?g:e.timeZone,f=n.useMemo((()=>Zt(c,d,l,t.minValue,t.maxValue,t.isDateUnavailable,m)),[l,d,t.isDateUnavailable,t.maxValue,t.minValue,c,m]);return{start:c,end:d,timeZone:m,setStart:function(i){h(i),a||e.setValue(Xt(i,d,Object.assign(Object.assign({},t),{timeZone:m})),m)},setEnd:function(i){u(i),a||e.setValue(Xt(c,i,Object.assign(Object.assign({},t),{timeZone:m})),m)},setRange:function(i,s){h(i),u(s),a||e.setValue(Xt(i,s,Object.assign(Object.assign({},t),{timeZone:m})),m)},setTimeZone:function(i){p(i),a||e.setValue(Xt(c,d,Object.assign(Object.assign({},t),{timeZone:i})),i)},applyValue:function(){e.setValue(Xt(c,d,Object.assign(Object.assign({},t),{timeZone:m})),m)},isInvalid:f.isInvalid,startValidation:f.startValidationResult,endValidation:f.endValidationResult}}(e.state,e),d=(null===(t=e.placeholderValue)||void 0===t?void 0:t.timeZone(e.state.timeZone))||(0,f.KQ)({timeZone:e.state.timeZone}),u={timeZone:e.state.timeZone,format:e.format,minValue:e.minValue,maxValue:e.maxValue,hasClear:e.allowNullableValues,readOnly:e.readOnly,size:e.size,errorPlacement:"inside"};return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:Jt("pickers"),children:[(0,s.jsx)(nt,Object.assign({},u,{validationState:(null===(i=h.startValidation)||void 0===i?void 0:i.isInvalid)?"invalid":void 0,errorMessage:(null===(o=null===(r=h.startValidation)||void 0===r?void 0:r.errors)||void 0===o?void 0:o.join("\n"))||Kt("Value is incorrect."),placeholderValue:d.startOf("day"),label:Kt("From"),value:h.start,onUpdate:h.setStart})),(0,s.jsx)(nt,Object.assign({},u,{validationState:(null===(a=h.endValidation)||void 0===a?void 0:a.isInvalid)?"invalid":void 0,errorMessage:(null===(c=null===(l=h.endValidation)||void 0===l?void 0:l.errors)||void 0===c?void 0:c.join("\n"))||Kt("Value is incorrect."),placeholderValue:d.endOf("day"),label:Kt("To"),value:h.end,onUpdate:h.setEnd,roundUp:!0}))]}),e.withApplyButton&&!e.readOnly?(0,s.jsx)(g.$,{disabled:h.isInvalid,size:e.size,onClick:()=>{h.applyValue(),e.onApply()},className:Jt("apply"),width:"max",children:Kt("Apply")}):null,e.withPresets&&!e.readOnly?(0,s.jsx)(It,{size:e.size,presetTabs:e.presetTabs,onChoosePreset:(t,i)=>{h.setRange({type:"relative",value:t},{type:"relative",value:i}),e.withApplyButton||e.onApply()},minValue:e.minValue,docs:e.docs,className:Jt("presets")}):null,e.withZonesList?(0,s.jsx)("div",{className:Jt("zone"),children:(0,s.jsx)(zt,{value:h.timeZone,onUpdate:h.setTimeZone,disabled:e.readOnly,size:e.size})}):null]})}const ii=JSON.parse('{"\\"From\\"":"\\"From\\"","\\"From\\" is required.":"\\"From\\" is required.","\\"To\\"":"\\"To\\"","\\"To\\" is required.":"\\"To\\" is required.","\\"From\\" can\'t be after \\"To\\".":"\\"From\\" can\'t be after \\"To\\".","to":"to"}'),si=JSON.parse('{"\\"From\\"":"\xab\u041e\u0442\xbb","\\"From\\" is required.":"\xab\u041e\u0442\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"To\\"":"\xab\u0414\u043e\xbb","\\"To\\" is required.":"\xab\u0414\u043e\xbb \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.","\\"From\\" can\'t be after \\"To\\".":"\xab\u041e\u0442\xbb \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \xab\u0414\u043e\xbb.","to":"\u0434\u043e"}'),ni=(0,_.N)({en:ii,ru:si},`${l}relative-range-date-picker`);function ri(e){var t,i;const[s,r]=(0,o.P)(e.value,null!==(t=e.defaultValue)&&void 0!==t?t:null),[a,l]=(0,o.P)(e.timeZone,null!==(i=e.defaultTimeZone)&&void 0!==i?i:"default",e.onUpdateTimeZone),c=n.useMemo((()=>function(e,t,i,s,n,r){if(!e)return{isInvalid:!1,errors:[]};const o=e.start?(0,f.bQ)(e.start.value,{timeZone:r}):null,a=e.end?(0,f.bQ)(e.end.value,{timeZone:r,roundUp:!0}):null,l=Qt(o,i,s,n,r,ni('"From"'));o||t||(l.isInvalid=!0,l.errors.push(ni('"From" is required.')));const c=Qt(a,i,s,n,r,ni('"To"'));a||t||(c.isInvalid=!0,c.errors.push(ni('"To" is required.')));o&&a&&a.isBefore(o)&&(l.isInvalid=!0,l.errors.push(ni('"From" can\'t be after "To".')));return{isInvalid:l.isInvalid||c.isInvalid,errors:l.errors.concat(c.errors)}}(s,e.allowNullableValues,e.minValue,e.maxValue,e.isDateUnavailable,a)),[s,e.allowNullableValues,e.isDateUnavailable,e.maxValue,e.minValue,a]);return Object.assign({value:s,timeZone:a,setValue(t,i){var n;r(t),l(i),(s!==t||s&&a!==i)&&(null===(n=e.onUpdate)||void 0===n||n.call(e,t,i))}},c)}const oi=c("relative-range-date-picker");function ai(e){const t=ri(e),i=(0,r.I)(),l=n.useRef(null),c=n.useRef(null),[d,u]=n.useState(!1),[g,p]=(0,o.P)(void 0,!1,e.onOpenChange),{focusWithinProps:m}=(0,a.R)({isDisabled:e.disabled,onFocusWithin:t=>{var i;d||null===(i=e.onFocus)||void 0===i||i.call(e,t)},onBlurWithin:t=>{var i;g||(u(!1),null===(i=e.onBlur)||void 0===i||i.call(e,t))}});return(0,s.jsxs)("div",Object.assign({ref:l},m,{className:oi(null,e.className),style:e.style,children:[(0,s.jsx)(P,{props:e,state:t,open:g,isMobile:i,ref:c,onClick:()=>{e.disabled||g||(u(!0),p(!0))},onKeyDown:t=>{e.disabled||!t.altKey||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),p(!0))},onClickCalendar:()=>{u(!0),p(!g)},onFocus:()=>{d||(u(!0),p(!0))},onUpdate:i=>{e.readOnly||i||t.setValue(null,"default")}}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.start)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t;return li(null!==(t=null===e||void 0===e?void 0:e.start)&&void 0!==t?t:null)},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t,i;return null!==(i=null===(t=null===e||void 0===e?void 0:e.end)||void 0===t?void 0:t.type)&&void 0!==i?i:""},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,value:t.value,toStringValue:e=>{var t;return li(null!==(t=null===e||void 0===e?void 0:e.end)&&void 0!==t?t:null)},disabled:e.disabled}),(0,s.jsx)(h,{name:e.name,form:e.form,onReset:e=>{t.setValue(e.value,e.timeZone)},value:{value:t.value,timeZone:t.timeZone},toStringValue:e=>e.timeZone,disabled:e.disabled}),(0,s.jsx)(ei,{state:t,props:e,open:g,onClose:()=>{p(!1)},focusInput:()=>{setTimeout((()=>{var e;null===(e=c.current)||void 0===e||e.focus({preventScroll:!0})}))},anchorRef:l,isMobile:i,className:e.popupClassName})]}))}function li(e){return e?"relative"===e.type?e.value:e.value.toISOString():""}},92159:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.53 11.78a.75.75 0 0 1-1.06 0l-2.5-2.5a.75.75 0 0 1 1.06-1.06l1.22 1.22V1.75a.75.75 0 0 1 1.5 0v7.69l1.22-1.22a.75.75 0 1 1 1.06 1.06zM1.75 13.5a.75.75 0 0 0 0 1.5h12.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},58272:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.323 12.383a5.5 5.5 0 0 1-7.706-7.706zm1.06-1.06L4.677 3.617a5.5 5.5 0 0 1 7.706 7.706M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0",clipRule:"evenodd"}))},53472:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.97 12.53a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 1 0 1.06 1.06L8 9.56zm0-5a.75.75 0 1 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 1.06 1.06L8 4.56z",clipRule:"evenodd"}))},64280:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.44 4.54c.43-.354.994-.565 1.56-.565 1.217 0 2.34.82 2.34 2.14 0 .377-.079.745-.298 1.1-.208.339-.513.614-.875.867-.217.153-.326.257-.379.328-.038.052-.038.07-.038.089a.75.75 0 0 1-1.5 0c0-.794.544-1.286 1.056-1.645.28-.196.402-.332.46-.425a.54.54 0 0 0 .073-.313c0-.3-.243-.641-.839-.641a1 1 0 0 0-.608.224c-.167.137-.231.286-.231.417a.75.75 0 0 1-1.5 0c0-.673.345-1.22.78-1.577M9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},45345:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M5.25 6.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-3.5a1 1 0 0 1-1-1z",clipRule:"evenodd"}))},10800:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},65872:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.423 1A3.577 3.577 0 0 1 15 4.577c0 .27-.108.53-.3.722l-.528.529-1.971 1.971-5.059 5.059a3 3 0 0 1-1.533.82l-2.638.528a1 1 0 0 1-1.177-1.177l.528-2.638a3 3 0 0 1 .82-1.533l5.059-5.059 2.5-2.5c.191-.191.451-.299.722-.299m-2.31 4.009-4.91 4.91a1.5 1.5 0 0 0-.41.766l-.38 1.903 1.902-.38a1.5 1.5 0 0 0 .767-.41l4.91-4.91a2.08 2.08 0 0 0-1.88-1.88m3.098.658a3.6 3.6 0 0 0-1.878-1.879l1.28-1.28c.995.09 1.788.884 1.878 1.88z",clipRule:"evenodd"}))},96589:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 6.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4M8 8a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m1 1.225a.71.71 0 0 0-.679-.72A11 11 0 0 0 8 8.5c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h2.25a.75.75 0 0 0 0-1.5H3.5a1 1 0 0 1-1-1c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10q.088 0 .175.002c.442.008.825-.335.825-.777m3.59.307c.434.102.776.444.879.878l-2.823 2.822a1.5 1.5 0 0 1-.848.425l-.53.075.075-.53a1.5 1.5 0 0 1 .425-.848zm-.883 4.76 3.068-3.067a.77.77 0 0 0 .225-.543A2.683 2.683 0 0 0 12.318 8a.77.77 0 0 0-.543.224l-3.068 3.069a3 3 0 0 0-.848 1.697l-.17 1.19a1 1 0 0 0 1.13 1.131l1.191-.17a3 3 0 0 0 1.697-.848",clipRule:"evenodd"}))},594:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("g",{clipPath:"url(#a)"},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.756 10.164c1.665-.962 1.665-3.366 0-4.329L6.251.918C4.585-.045 2.5 1.158 2.5 3.083v9.834c0 1.925 2.085 3.128 3.751 2.164z",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},93844:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("g",{clipPath:"url(#a)"},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.235 1a.75.75 0 0 1 .74.56l2.034 7.726 1.09-1.908A.75.75 0 0 1 13.75 7h1.5a.75.75 0 0 1 0 1.5h-1.065l-1.784 3.122a.75.75 0 0 1-1.376-.181l-1.71-6.496-2.083 9.466a.75.75 0 0 1-1.446.07L3.544 7.55l-.65 1.085A.75.75 0 0 1 2.25 9H.75a.75.75 0 1 1 0-1.5h1.075l1.282-2.136a.75.75 0 0 1 1.357.155l1.898 5.868 2.156-9.798A.75.75 0 0 1 9.235 1",clipRule:"evenodd"})),s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},1956:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3h7A1.5 1.5 0 0 1 13 4.5v7a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3m-3 1.5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3zm10.092 1.46a.75.75 0 0 0-1.184-.92L7.43 8.869l-1.4-1.4A.75.75 0 0 0 4.97 8.53l2 2a.75.75 0 0 0 1.122-.07z",clipRule:"evenodd"}))},31819:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3A1.5 1.5 0 0 0 3 4.5v1.75a.75.75 0 0 1-1.5 0V4.5a3 3 0 0 1 3-3h1.75a.75.75 0 0 1 0 1.5zM9 2.25a.75.75 0 0 1 .75-.75h1.75a3 3 0 0 1 3 3v1.75a.75.75 0 0 1-1.5 0V4.5A1.5 1.5 0 0 0 11.5 3H9.75A.75.75 0 0 1 9 2.25M2.25 9a.75.75 0 0 1 .75.75v1.75A1.5 1.5 0 0 0 4.5 13h1.75a.75.75 0 0 1 0 1.5H4.5a3 3 0 0 1-3-3V9.75A.75.75 0 0 1 2.25 9m11.5 0a.75.75 0 0 1 .75.75v1.75a3 3 0 0 1-3 3H9.75a.75.75 0 0 1 0-1.5h1.75a1.5 1.5 0 0 0 1.5-1.5V9.75a.75.75 0 0 1 .75-.75",clipRule:"evenodd"}))},46649:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3.5H4A1.5 1.5 0 0 0 2.5 5v6A1.5 1.5 0 0 0 4 12.5h8a1.5 1.5 0 0 0 1.5-1.5V5A1.5 1.5 0 0 0 12 3.5M4 2a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3zm.47 8.53a.75.75 0 0 1 0-1.06L5.94 8 4.47 6.53a.75.75 0 0 1 1.06-1.06l2 2a.75.75 0 0 1 0 1.06l-2 2a.75.75 0 0 1-1.06 0M8.75 9.5a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},64470:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(59284);const n=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 2H7a.5.5 0 0 0-.5.5V3h3v-.5A.5.5 0 0 0 9 2m2 1v-.5a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2V3H2.251a.75.75 0 0 0 0 1.5h.312l.317 7.625A3 3 0 0 0 5.878 15h4.245a3 3 0 0 0 2.997-2.875l.318-7.625h.312a.75.75 0 0 0 0-1.5zm.936 1.5H4.064l.315 7.562A1.5 1.5 0 0 0 5.878 13.5h4.245a1.5 1.5 0 0 0 1.498-1.438zm-6.186 2v5a.75.75 0 0 0 1.5 0v-5a.75.75 0 0 0-1.5 0m3.75-.75a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75",clipRule:"evenodd"}))},73253:(e,t,i)=>{"use strict";i.d(t,{og:()=>R,SO:()=>me});var s=i(7252);function n(e,t){const i=document.createElement("button");return i.innerText=e,i.className=`paranoid-button paranoid-button_${t}`,i}const r="ParanoidC";function o(e,t){const i=document.getElementById(e);if(!i)throw new Error(`Not found element with id ${e}`);i.style.position="relative";const o=n("+","plus"),a=n("-","minus"),l=n("1:1","normal"),c=function(e,t){const i=document.createElement("canvas");i.setAttribute("id",r),i.setAttribute("width",String(e.offsetWidth)),i.setAttribute("height",String(e.offsetHeight)),e.appendChild(i);const n=t.colors||{};return new s.fabric.Canvas(r,{selection:!1,backgroundColor:n.fill,defaultCursor:"grab"})}(i,t),h=function(e,t,i,s){const n=document.createElement("div");n.className="paranoid-controls";const r=document.createElement("style");return r.innerText=function(e){return`\n .paranoid-controls {\n position: absolute;\n top: 10px;\n right: 10px;\n }\n .paranoid-button {\n margin-left: 12px;\n border-radius: 4px;\n height: 36px;\n width: 36px;\n line-height: 13px;\n font-family: Arial, sans-serif;\n font-size: 13px;\n text-align: center;\n padding: 0;\n box-shadow: 0px 5px 6px ${e.nodeShadow};\n border: 1px solid ${e.buttonBorderColor};\n background-color: ${e.nodeFill};\n color: ${e.textColor};\n cursor: pointer;\n }\n .paranoid-button:focus {\n outline: none;\n }\n .paranoid-button:active {\n border: 1px solid ${e.buttonBorderColor};\n }\n .paranoid-button_plus {\n margin-left: 0;\n border-left: none;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .paranoid-button_minus {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n`}(s),n.appendChild(r),n.appendChild(t),n.appendChild(e),n.appendChild(i),n}(o,a,l,t.colors);return i.appendChild(h),function(e,t,i,s,n){const r=n.minZoom||.2,o=n.zoomStep||.2,a=n.maxZoom||2,l=n.startZoom||1;e.setZoom(l),i.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i-=o,i<r&&(i=r),e.setZoom(i)})),t.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let i=e.getZoom();i+=o,i>a&&(i=a),e.setZoom(i)})),s.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),e.setZoom(1)}))}(c,o,a,l,t),function(e){let t=!1,i=0,s=0;e.on("mouse:down",(n=>{n.target||(e.setCursor("grabbing"),t=!0,i=n.pointer.x,s=n.pointer.y)})),e.on("mouse:move",(n=>{t&&(e.viewportTransform[4]+=n.pointer.x-i,e.viewportTransform[5]+=n.pointer.y-s,e.setCursor("grabbing"),e.getObjects().forEach((e=>e.setCoords())),e.requestRenderAll(),i=n.pointer.x,s=n.pointer.y)})),e.on("mouse:up",(()=>{t&&(e.setCursor("grab"),t=!1)}))}(c),c}const a={success:"rgba(59, 201, 53, 0.75)",error:"#ff0400",warning:"#ff7700",errorBackground:"rgba(235,50,38,0.08)",warningBackground:"rgba(255,219,77,0.3)",mute:"rgba(0,0,0,0.15)",stroke:"rgba(0,0,0,0.3)",fill:"#fafafa",nodeFill:"#ffffff",nodeShadow:"rgba(0,0,0,0.15)",titleColor:"#000000",textColor:"rgba(0,0,0,0.7)",buttonBorderColor:"rgba(0,0,0,0.07)",groupBorderColor:"rgba(2, 123, 243, 0.14)",groupFill:"rgba(2, 123, 243, 0.08)",titleHoverColor:"#004080",nodeHover:"#f3f3f3",specialHover:"rgba(2,123,243,1)"},l={hasControls:!1,hasRotatingPoint:!1,lockMovementX:!0,lockMovementY:!0,selectable:!1,hoverCursor:"default",subTargetCheck:!0},c="Arial, sans-serif",h=13,d=1.38;var u;!function(e){e.Group="GROUP"}(u||(u={}));i(32133);class g{constructor(e,t){this.children=[],this.members=[],this.data=e,this.canvasNode=t}add(e,t){const i=new g(e,t);i.addParent(this),this.children.push(i)}addNode(e){e.addParent(this),this.children.push(e)}addNodes(e){e.forEach((e=>{e.addParent(this)})),this.children=this.children.concat(e)}addCanvasNode(e){this.canvasNode=e}addShapeInstance(e){this.shapeInstance=e}hasChildren(){return this.children.length>0}addParent(e){this.parent=e}getLeftSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e-1]}getRightSibling(){if(!this.parent)return;const e=this.parent.children.findIndex((e=>e===this));return this.parent.children[e+1]}}class p{constructor(e){this.nodesWithChildren=[],this.root=e}traverseBF(e){const t=[this.root];for(;t.length>0;){const i=t.shift();i&&(t.push(...i.children),e(i))}}traverseDF(e){const t=[this.root];for(;t.length;){const i=t.shift();let s=!1;i&&(i.children.length>0?t.unshift(...i.children):s=!0,e(i,s))}}traverseByLevels(e){let t=0,i=this.root.children;for(e([this.root],0);i.length>0;)t++,e(i,t),i=i.reduce(((e,t)=>e.concat(t.children)),[])}getTreeDepth(){let e=0;return this.traverseByLevels(((t,i)=>{e=i})),e}setCanvas(e){this.canvas=e}setNodesWithChildren(e){this.nodesWithChildren=e}}class m{constructor(e,t){this.nodes=new Map,this.data=e,this.opts=t}parseData(){const e=this.data,t=this.getGroups(e),i=[...e.nodes];t.forEach(((e,t)=>{i.push({name:t,children:e,type:u.Group})}));const s=this.findSources(i,e.links);let n=[],r={},o=new Map;return s.forEach((t=>{const s=this.mapNodesToTree(t,i,e.links);r=Object.assign(Object.assign({},s.groups),r),o=new Map([...o,...s.notGroupMemebersChildren]),n.push(s.tree)})),o.forEach(((e,t)=>{r[t]&&r[t].addNodes(e)})),n=n.reduce(((e,t)=>{const i=t.root.data.group;return i?r[i].members.push(t):e.push(t),e}),[]),n}getGroups({nodes:e}){const t=new Map;return e.forEach((e=>{if(e.group){const i=t.get(e.group);i?i.push(e.name):t.set(e.group,[e.name])}})),t}findSources(e,t){const i=t.map((({to:e})=>e));return e.reduce(((e,t)=>(i.includes(t.name)||e.push(t),e)),[])}mapNodesToTree(e,t,i){var s;const n=this.createNode(e),r={};this.appendGoup(r,n);const o=t.map((e=>{const t=i.reduce(((t,i)=>(i.from===e.name&&t.push(i.to),t)),[]);return Object.assign(Object.assign({},e),{children:t})})),a=this.getAppender(o,r)(n,(null===(s=o.find((t=>t.name===e.name)))||void 0===s?void 0:s.children)||[]);return{tree:new p(n),groups:r,notGroupMemebersChildren:a}}appendGoup(e,t){const i=t.data;t.data.type===u.Group&&(e[i.name]=t)}getAppender(e,t){const i=new Map,s=(n,r)=>{const o=r.map((i=>{const n=e.find((({name:e})=>e===i)),r=this.createNode(n);return this.appendGoup(t,r),n.children.length>0&&s(r,n.children),r})),a=n.data.group,l=Boolean(a),c=[],h=[];if(o.forEach((e=>{const t=e.data.group;l?a===t?c.push(e):h.push(e):c.push(e)})),n.addNodes(c),a&&h.length>0){const e=i.get(a);e?e.push(...h):i.set(a,h)}return i};return s}createNode(e){const t=new g(e);return this.nodes.set(e.name,t),t}}class f extends CustomEvent{}class _ extends EventTarget{dispatch(e,t){this.dispatchEvent(new f(e,{detail:t}))}}function v(e){switch(e){case 0:return 0;case 1:return 16;default:return 24}}function C(e,t,i,s,n,r){const o=function(e,t,i,s,n,r,o){const a=new Map,l=new Map,c=new Map,h=[];return s.traverseBF((s=>{const{object:n,width:r,height:l}=function(e,t,i,s,n,r,o){var a,l;const c=null!==(a=t.shapeInstance)&&void 0!==a?a:r.node(e,{top:i,left:s},t,n,o),h=null!==(l=t.canvasNode)&&void 0!==l?l:c.getShape();return t.addShapeInstance(c),t.addCanvasNode(h),{object:h,top:i,left:s,width:h.getScaledWidth(),height:h.getScaledHeight()}}(e,s,0,0,t,i,o);a.set(s,{width:r,height:l}),h.push(n)})),function e(t){const{width:i}=a.get(t);let s=i,n=0;if(t.parent&&1===t.parent.children.length&&l.has(t.parent)){const e=l.get(t.parent);s<e&&(s=e)}return l.set(t,s),t.children.length>0&&(n=16*(t.children.length-1)+t.children.reduce(((t,i)=>t+e(i)),0),c.set(t,n)),s=Math.max(s,n),l.set(t,s),s}(s.root),function e(t,i,s){let n=s,r=s;for(const o of t){const{width:t,height:s}=a.get(o),h=l.get(o),d=i,u=n+Math.floor(h/2)-Math.floor(t/2);if(o.canvasNode.set({top:d,left:u}),o.canvasNode.setCoords(),n=n+h+16,o.children.length){let t=0;const n=c.get(o);n<h&&(t=Math.floor((h-n)/2));const a=i+s+v(o.children.length),l=r+t;e(o.children,a,l)}r=n}}([s.root],n,r),h}(e.canvas,s,n,e,t,i,r);let a=0,l=0;return o.forEach((e=>{a=Math.max(a,(e.left||0)+e.getScaledWidth()),l=Math.max(l,(e.top||0)+e.getScaledHeight())})),{nodes:o,bottom:l,right:a}}function b(e){const t=e.canvasNode;if(t){const e=t.left||0,i=(t.top||0)+t.getScaledHeight();return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}function E(e){const t=e.canvasNode;if(t){const e=t.left||0,i=t.top||0;return{x:e+t.getScaledWidth()/2,y:i}}return{x:0,y:0}}class S{constructor(e,t,i,s){this.canvas=o(e,t),this.parser=new m(i,t),this.opts=t,this.shapes=s,this.em=new _,this.trees=[],this.nodes=[],this.links=[],this.listenNodeResize()}render(){requestAnimationFrame((()=>{this.trees=this.parser.parseData(),this.renderIntoCanvas(),this.opts.initialZoomFitsCanvas&&this.zoomObjectsToFitCanvas()}))}destroy(){const e=document.getElementById(r);e&&(this.canvas.dispose(),e.remove())}getEventEmmiter(){return this.em}getGraphNode(e){return this.parser.nodes.get(e)}getOpts(){return this.opts}getColors(){return this.opts.colors}getCanvas(){return this.canvas}renderIntoCanvas(){this.nodes.forEach((e=>{this.canvas.remove(e)})),this.nodes=[],this.links.forEach((e=>{this.canvas.remove(e)})),this.links=[];const e=this.canvas.getHeight()||0,t=this.canvas.getWidth()||0;let i=e,n=t;const r=this.opts.initialTop;let o=this.opts.initialLeft;this.trees.forEach((e=>{e.setCanvas(this.canvas);const{nodes:t,bottom:s,right:a}=C(e,r,o,this.opts,this.shapes,this.em);o=a+15,i=Math.max(s,i),n=Math.max(a,n),this.nodes.push(...t),this.canvas.add(...t)}));const a=function(e,t){const i=t.colors,n=[];return e.data.links.reduce(((t,{from:r})=>{const o=e.nodes.get(r);if(o&&1===o.children.length&&!n.includes(r)){const{x:e,y:a}=b(o),c=new s.fabric.Path(`M ${e} ${a}\n V ${a+16}`,{fill:"",stroke:i.stroke,strokeWidth:1});t.push(new s.fabric.Group([c],Object.assign({},l))),n.push(r)}if(o&&o.children.length>1&&!n.includes(r)){const{x:e,y:a}=b(o),c=12,h=6,d=[new s.fabric.Path(`M ${e} ${a}\n V ${a+c}`,{fill:"",stroke:i.stroke,strokeWidth:1})],{x:u,y:g}=E(o.children[0]),{x:p,y:m}=E(o.children[o.children.length-1]),f=new s.fabric.Path(`M ${u} ${g}\n V ${g-c+h}\n Q ${u} ${g-c} ${u+h} ${g-c}\n H ${p-h}\n Q ${p} ${m-c} ${p} ${m+h-c}\n V ${m}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});d.push(f),o.children.forEach(((e,t)=>{if(0===t||t===o.children.length-1)return;const{x:n,y:r}=E(e),a=new s.fabric.Path(`M ${n} ${r}\n V ${r-c}\n `,{fill:"",stroke:i.stroke,strokeWidth:1});d.push(a)})),t.push(new s.fabric.Group(d,Object.assign({},l))),n.push(r)}return t}),[])}(this.parser,this.opts);this.links.push(...a),this.canvas.add(...a),this.bringNodesToFront()}bringNodesToFront(){var e;const t=null===(e=this.parser)||void 0===e?void 0:e.nodes;t&&t.forEach((e=>{e.canvasNode&&e.canvasNode.bringToFront()}))}listenNodeResize(){this.em.addEventListener("node:resize",(()=>{this.renderIntoCanvas()}))}zoomObjectsToFitCanvas(){let e=0,t=0;this.canvas.getObjects().forEach((i=>{const{top:s,left:n,height:r,width:o}=i.getBoundingRect(),a=n+o,l=s+r;a>e&&(e=a),l>t&&(t=l)})),e+=this.opts.initialLeft,t+=this.opts.initialTop;const i=this.canvas.getWidth()/e,n=this.canvas.getHeight()/t,r=Math.min(i,n);if(r<1){this.canvas.setZoom(r);const e=this.opts.initialTop*r,t=this.opts.initialLeft*r,i=this.opts.initialTop-e,n=this.opts.initialLeft-t;this.canvas.relativePan(new s.fabric.Point(n,i))}}}function y(){const e={success:"--g-color-text-positive",error:"--g-color-text-danger",warning:"--g-color-text-warning",errorBackground:"--g-color-base-danger-light",warningBackground:"--g-color-base-warning-light",mute:"--g-color-line-generic",stroke:"--g-color-text-hint",fill:"--g-color-base-generic-ultralight",nodeFill:"--g-color-base-float",nodeShadow:"--g-color-sfx-shadow",titleColor:"--g-color-text-primary",textColor:"--g-color-text-complementary",buttonBorderColor:"--g-color-line-generic",groupBorderColor:"--g-color-base-info-light-hover",groupFill:"--g-color-base-info-light",titleHoverColor:"--g-color-text-link-hover",nodeHover:"--g-color-base-float-hover",specialHover:"--g-color-line-brand"},t=getComputedStyle(document.body),i=Object.keys(e).reduce(((i,s)=>{const n=t.getPropertyValue(e[s]).replace(/ /g,"");return n&&(i[s]=n),i}),{});return Object.assign(Object.assign(Object.assign({},a),i),{getCommonColor:e=>t.getPropertyValue(`--g-color-${e}`).replace(/ /g,"")})}const w={linkType:"arrow"};function L(e=w){const t=e.colors||{};return Object.assign(Object.assign({initialTop:10,initialLeft:10},e),{colors:Object.assign(Object.assign(Object.assign({},a),y()),t)})}function R(e,t,i,s){const n=L(i);return new S(e,n,t,s)}var T=i(59284),x=(i(43781),i(62060),function(){if("undefined"!==typeof Map)return Map;function e(e,t){var i=-1;return e.some((function(e,s){return e[0]===t&&(i=s,!0)})),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var i=e(this.__entries__,t),s=this.__entries__[i];return s&&s[1]},t.prototype.set=function(t,i){var s=e(this.__entries__,t);~s?this.__entries__[s][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,s=e(i,t);~s&&i.splice(s,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var i=0,s=this.__entries__;i<s.length;i++){var n=s[i];e.call(t,n[1],n[0])}},t}()}()),k="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,A="undefined"!==typeof i.g&&i.g.Math===Math?i.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),N="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(A):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var I=["top","right","bottom","left","width","height","size","weight"],O="undefined"!==typeof MutationObserver,D=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var i=!1,s=!1,n=0;function r(){i&&(i=!1,e()),s&&a()}function o(){N(r)}function a(){var e=Date.now();if(i){if(e-n<2)return;s=!0}else i=!0,s=!1,setTimeout(o,t);n=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,i=t.indexOf(e);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){k&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),O?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){k&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,i=void 0===t?"":t;I.some((function(e){return!!~i.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),M=function(e,t){for(var i=0,s=Object.keys(t);i<s.length;i++){var n=s[i];Object.defineProperty(e,n,{value:t[n],enumerable:!1,writable:!1,configurable:!0})}return e},P=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||A},F=z(0,0,0,0);function U(e){return parseFloat(e)||0}function H(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return t.reduce((function(t,i){return t+U(e["border-"+i+"-width"])}),0)}function B(e){var t=e.clientWidth,i=e.clientHeight;if(!t&&!i)return F;var s=P(e).getComputedStyle(e),n=function(e){for(var t={},i=0,s=["top","right","bottom","left"];i<s.length;i++){var n=s[i],r=e["padding-"+n];t[n]=U(r)}return t}(s),r=n.left+n.right,o=n.top+n.bottom,a=U(s.width),l=U(s.height);if("border-box"===s.boxSizing&&(Math.round(a+r)!==t&&(a-=H(s,"left","right")+r),Math.round(l+o)!==i&&(l-=H(s,"top","bottom")+o)),!function(e){return e===P(e).document.documentElement}(e)){var c=Math.round(a+r)-t,h=Math.round(l+o)-i;1!==Math.abs(c)&&(a-=c),1!==Math.abs(h)&&(l-=h)}return z(n.left,n.top,a,l)}var W="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof P(e).SVGGraphicsElement}:function(e){return e instanceof P(e).SVGElement&&"function"===typeof e.getBBox};function V(e){return k?W(e)?function(e){var t=e.getBBox();return z(0,0,t.width,t.height)}(e):B(e):F}function z(e,t,i,s){return{x:e,y:t,width:i,height:s}}var G=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=z(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=V(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),j=function(e,t){var i=function(e){var t=e.x,i=e.y,s=e.width,n=e.height,r="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(r.prototype);return M(o,{x:t,y:i,width:s,height:n,top:i,right:t+s,bottom:n+i,left:t}),o}(t);M(this,{target:e,contentRect:i})},K=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new x,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof P(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new G(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof P(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new j(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Y="undefined"!==typeof WeakMap?new WeakMap:new x,q=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=D.getInstance(),s=new K(t,i,this);Y.set(this,s)};["observe","unobserve","disconnect"].forEach((function(e){q.prototype[e]=function(){var t;return(t=Y.get(this))[e].apply(t,arguments)}}));"undefined"!==typeof A.ResizeObserver&&A.ResizeObserver;T.Component;T.Component;var $=i(87924),Q=i.n($);const X={width:280,expandedWidth:360,borderRadius:4,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,timeMaxWidth:25,percentageMaxWidth:25,textOffset:8,tagLeftOffset:4,tagTopOffset:5,statsOffset:24};class Z{constructor(e,t,i,s){this.top=0,this.left=0,this.canvas=e,this.stats=t,this.coords=i,this.colors=s,this.textProps={fontSize:X.textFontSize,lineHeight:X.textLineHeight,fontFamily:c,fill:null===s||void 0===s?void 0:s.titleColor},this.selectedGroup=t[0].group;const n=this.createTitles(),r=n.map((e=>e.getScaledHeight())),o=Math.max.apply(null,r);this.lineTop=this.top+o+X.textOffset;const a=this.createLine();this.content=this.createContent(n),this.group=this.createGroup(n,a,this.content),this.initListeners()}getCanvasObject(){return this.group}createTitles(){let e=this.left;return this.stats.map((({group:e})=>e)).map((t=>{var i,n;const r=new s.fabric.Text(t,Object.assign(Object.assign({left:e,top:this.top},this.textProps),{fill:t===this.selectedGroup?null===(i=this.colors)||void 0===i?void 0:i.titleColor:null===(n=this.colors)||void 0===n?void 0:n.textColor}));return e+=r.getScaledWidth()+X.statsOffset,r}))}createLine(){return new s.fabric.Path(`M ${this.left} ${this.lineTop}\n H ${X.expandedWidth-2*X.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1})}createContent(e){return this.stats.map((({group:t,stats:i},n)=>{const r=this.getContentItems(i,this.lineTop),o=e[n],a=o.left||0,l=a+o.getScaledWidth();return{group:t,items:new s.fabric.Group(r,{opacity:this.selectedGroup===t?1:0}),title:o,hoverLine:this.createHoverLine(a,l,t)}}))}getContentItems(e,t){let i=t+2*X.textOffset;const n=[],r=e=>{e.forEach((({name:e,value:t})=>{var r;const o=new s.fabric.Text(e,Object.assign({left:this.left,top:i},this.textProps)),a=X.expandedWidth/2-X.padding,l=X.expandedWidth-2*X.padding,c=new s.fabric.Textbox(String(t),Object.assign(Object.assign({left:a,top:i},this.textProps),{fill:null===(r=this.colors)||void 0===r?void 0:r.textColor,splitByGrapheme:!0,width:l-a}));n.push(o,c),i+=Math.max(o.getScaledHeight(),c.getScaledHeight())+X.textOffset}))};return!function(e){var t;return Boolean(null===(t=e[0])||void 0===t?void 0:t.items)}(e)?r(e):e.forEach((({name:t,items:o},a)=>{const l=new s.fabric.Text(t,Object.assign(Object.assign({left:this.left,top:i},this.textProps),{fontWeight:"bold"}));if(n.push(l),i+=l.getScaledHeight()+X.textOffset,r(o),a!==e.length-1){const e=new s.fabric.Path(`M ${this.left} ${i}\n H ${X.expandedWidth-2*X.padding}`,{fill:"",stroke:this.colors.stroke,strokeWidth:1,strokeDashArray:[6,4]});n.push(e),i+=e.getScaledHeight()+X.textOffset}})),n}createGroup(e,t,i){const n=i.map((({items:e})=>e)),r=i.map((({hoverLine:e})=>e));return new s.fabric.Group([...e,t,...n,...r],Object.assign({left:this.coords.left,top:this.coords.top},l))}createHoverLine(e,t,i){return new s.fabric.Path(`M ${e} ${this.lineTop-1}\n H ${t}`,{fill:"",stroke:this.colors.specialHover,strokeWidth:2,opacity:this.selectedGroup===i?1:0})}initListeners(){this.content.forEach((({group:e,title:t,items:i,hoverLine:s})=>{t.on("mousedown",(()=>{const n=this.selectedGroup,r=this.content.find((e=>e.group===n));r&&(r.title.set({fill:this.colors.textColor}),r.items.set({opacity:0}),r.hoverLine.set({opacity:0}),t.set({fill:this.colors.titleColor}),i.set({opacity:1}),s.set({opacity:1}),this.selectedGroup=e,this.canvas.requestRenderAll())}))}))}}function J(e,t,i,s,n){return new Z(e,t,{top:i,left:s},n).getCanvasObject()}function ee(e,t,i){return new s.fabric.Textbox(e?`#${e}`:"",{fontSize:12,lineHeight:14,textAlign:"right",fontFamily:c,fill:i.getCommonColor("text-secondary"),hoverCursor:t?"pointer":"default"})}const te={width:112,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:16,textOffset:8},ie={scaleX:16/512,scaleY:16/512,originY:"center"};function se(e,t,i){const n=new s.fabric.Text(e,{fontSize:te.textFontSize,lineHeight:te.textFontSize,fontFamily:c,fill:i.getCommonColor("text-misc"),originY:"center"}),r=[n];let o;switch(e){case"Merge":o=new s.fabric.Path("M232.5 5.171C247.4-1.718 264.6-1.718 279.5 5.171L498.1 106.2C506.6 110.1 512 118.6 512 127.1C512 137.3 506.6 145.8 498.1 149.8L279.5 250.8C264.6 257.7 247.4 257.7 232.5 250.8L13.93 149.8C5.438 145.8 0 137.3 0 127.1C0 118.6 5.437 110.1 13.93 106.2L232.5 5.171zM498.1 234.2C506.6 238.1 512 246.6 512 255.1C512 265.3 506.6 273.8 498.1 277.8L279.5 378.8C264.6 385.7 247.4 385.7 232.5 378.8L13.93 277.8C5.438 273.8 0 265.3 0 255.1C0 246.6 5.437 238.1 13.93 234.2L67.13 209.6L219.1 279.8C242.5 290.7 269.5 290.7 292.9 279.8L444.9 209.6L498.1 234.2zM292.9 407.8L444.9 337.6L498.1 362.2C506.6 366.1 512 374.6 512 383.1C512 393.3 506.6 401.8 498.1 405.8L279.5 506.8C264.6 513.7 247.4 513.7 232.5 506.8L13.93 405.8C5.438 401.8 0 393.3 0 383.1C0 374.6 5.437 366.1 13.93 362.2L67.13 337.6L219.1 407.8C242.5 418.7 269.5 418.7 292.9 407.8V407.8z",ie);break;case"UnionAll":o=new s.fabric.Path("M200 288H88c-21.4 0-32.1 25.8-17 41l32.9 31-99.2 99.3c-6.2 6.2-6.2 16.4 0 22.6l25.4 25.4c6.2 6.2 16.4 6.2 22.6 0L152 408l31.1 33c15.1 15.1 40.9 4.4 40.9-17V312c0-13.3-10.7-24-24-24zm112-64h112c21.4 0 32.1-25.9 17-41l-33-31 99.3-99.3c6.2-6.2 6.2-16.4 0-22.6L481.9 4.7c-6.2-6.2-16.4-6.2-22.6 0L360 104l-31.1-33C313.8 55.9 288 66.6 288 88v112c0 13.3 10.7 24 24 24zm96 136l33-31.1c15.1-15.1 4.4-40.9-17-40.9H312c-13.3 0-24 10.7-24 24v112c0 21.4 25.9 32.1 41 17l31-32.9 99.3 99.3c6.2 6.2 16.4 6.2 22.6 0l25.4-25.4c6.2-6.2 6.2-16.4 0-22.6L408 360zM183 71.1L152 104 52.7 4.7c-6.2-6.2-16.4-6.2-22.6 0L4.7 30.1c-6.2 6.2-6.2 16.4 0 22.6L104 152l-33 31.1C55.9 198.2 66.6 224 88 224h112c13.3 0 24-10.7 24-24V88c0-21.3-25.9-32-41-16.9z",ie);break;case"HashShuffle":o=new s.fabric.Path("M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z",ie);break;case"Map":o=new s.fabric.Path("M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z",ie);break;case"Broadcast":o=new s.fabric.Path("M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z",ie)}return o&&(o.set({fill:i.getCommonColor("text-misc"),top:0,left:0,originY:"center"}),n.set({left:22}),r.push(o)),new s.fabric.Group(r,Object.assign(Object.assign({},l),{hoverCursor:t?"pointer":"default"}))}class ne{constructor(e,t,i,s,n){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=s,this.em=n,this.data=Q()(i,["data","data"]),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.getCommonColor("base-misc-light")}getHoverFillColor(){return this.opts.colors.getCommonColor("base-misc-light-hover")}getShadow(){}getHoverShadow(){}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+te.padding,new s.fabric.Rect({width:te.width,height:this.nodeHeight,fill:this.getFillColor(),shadow:this.getShadow(),stroke:e.getCommonColor("line-misc"),rx:te.borderRadius,ry:te.borderRadius,hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){return[ee(this.data.id,this.isExpandable(),this.opts.colors),se(this.data.name||"",this.isExpandable(),this.opts.colors)]}setShapeObjectsCoords(){const[e,t]=this.objects,i=te.padding,s=this.expanded?te.expandedWidth:te.width,n=t.getScaledWidth();e.set({left:0,top:4,width:s-4}),t.set({left:s/2-n/2,top:i})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.expanded=!this.expanded,this.updateDimensions(),this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors,[t,i]=this.objects,s=i.getScaledWidth();let n,r;this.expanded?(this.stats=J(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+te.padding,(this.group.left||0)+te.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*te.padding,n=te.expandedWidth,r=this.expandedNodeHeight,this.group.addWithUpdate(this.stats)):(n=te.width,r=this.nodeHeight,this.group.removeWithUpdate(this.stats),this.stats=void 0);const o=function(e,t){const i=[];return t.forEachObject((s=>{i.push(s),t.removeWithUpdate(s),e.add(s)})),()=>{i.forEach((i=>{e.remove(i),t.addWithUpdate(i)}))}}(this.canvas,this.group);this.body.set({width:n,height:r,fill:this.getFillColor(),shadow:this.getShadow()}),t.set({width:n-4}),i.set({left:(this.body.left||0)+(this.body.width||0)/2-s/2}),o()}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}const re={width:190,bevelSize:10,titleFontSize:h,titleLineHeight:d,padding:12};class oe{constructor(e,t,i,n,r){this.nodeHeight=0,this.coords=t,this.opts=n,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+re.padding,new s.fabric.Polygon([{x:re.bevelSize,y:0},{x:re.width-re.bevelSize,y:0},{x:re.width,y:re.bevelSize},{x:re.width,y:this.nodeHeight-re.bevelSize},{x:re.width-re.bevelSize,y:this.nodeHeight},{x:re.bevelSize,y:this.nodeHeight},{x:0,y:this.nodeHeight-re.bevelSize},{x:0,y:re.bevelSize}],{fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new s.fabric.Text(e.join("\n"),{fontSize:re.titleFontSize,lineHeight:re.titleLineHeight,left:0,top:26,fontFamily:c,fontStyle:"italic",fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=re.padding,i=e.getScaledWidth();e.set({left:re.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}}const ae=40,le=40,ce=20;class he{constructor(e,t,i,n,r){this.coords=t,this.opts=n,this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors;return new s.fabric.Rect({width:ae,height:le,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:ce,ry:ce,shadow:this.getShadow(),hoverCursor:"default"})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body],Object.assign({top:e,left:t},l))}}const de={width:112,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,textOffset:8};class ue{constructor(e,t,i,n,r){this.nodeHeight=0,this.coords=t,this.opts=n,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(){}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+de.padding,new s.fabric.Rect({width:de.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,shadow:this.getShadow(),hoverCursor:"default"})}prepareShapeObjects(){var e,t;return[(e=[this.data.name||""],t=this.opts.colors,new s.fabric.Text(e.join("\n"),{fontSize:de.textFontSize,lineHeight:de.textLineHeight,left:0,top:26,fontFamily:c,fill:t.getCommonColor("text-primary")}))]}setShapeObjectsCoords(){const[e]=this.objects,t=de.padding,i=e.getScaledWidth();e.set({left:de.width/2-i/2,top:t})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}}const ge={width:248,expandedWidth:360,borderRadius:6,titleFontSize:h,titleLineHeight:d,textFontSize:h,textLineHeight:d,padding:12,textOffset:8};class pe{constructor(e,t,i,n,r){this.expanded=!1,this.expandedNodeHeight=0,this.nodeHeight=0,this.canvas=e,this.coords=t,this.treeNode=i,this.opts=n,this.em=r,this.data=Q()(i,["data","data"]),this.shadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:1,blur:5}),this.hoverShadow=new s.fabric.Shadow({color:n.colors.nodeShadow,offsetY:3,blur:8}),this.objects=this.prepareShapeObjects(),this.setShapeObjectsCoords(),this.body=this.prepareNodeBody(),this.group=this.createGroup(),this.initListeners()}getShape(){return this.group}getFillColor(){return this.opts.colors.nodeFill}getHoverFillColor(){return this.opts.colors.nodeHover}getShadow(){return this.shadow}getHoverShadow(){return this.hoverShadow}toggleHighlight(e){this.isExpandable()&&!this.expanded&&this.body.set({fill:e?this.getHoverFillColor():this.getFillColor(),shadow:e?this.getHoverShadow():this.getShadow()}),this.canvas.requestRenderAll()}prepareNodeBody(){const e=this.opts.colors,t=this.objects[this.objects.length-1];return this.nodeHeight=(t.top||0)+t.getScaledHeight()+ge.padding,new s.fabric.Rect({width:ge.width,height:this.nodeHeight,fill:this.getFillColor(),stroke:null===e||void 0===e?void 0:e.nodeShadow,rx:ge.borderRadius,ry:ge.borderRadius,shadow:this.getShadow(),hoverCursor:this.isExpandable()?"pointer":"default"})}prepareShapeObjects(){const e=ee(this.data.id,this.isExpandable(),this.opts.colors),t=(i=this.data.operators||[this.data.name||""],n=this.isExpandable(),r=this.opts.colors,new s.fabric.Text(i.join("\n"),{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:c,fill:r.getCommonColor("text-primary"),hoverCursor:n?"pointer":"default"}));var i,n,r;const o=function(e,t){if(0===e.length)return new s.fabric.Group([],Object.assign({top:0,left:0},l));const i=new s.fabric.Text("Tables:",{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:c,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),n=i.getScaledWidth()+2,r=ge.width-2*ge.padding-n,o=new s.fabric.Textbox(e.join("\n"),{left:n,width:r,fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:c,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new s.fabric.Group([i,o],Object.assign({top:0,left:0},l))}(this.data.tables||[],this.opts.colors),a=function(e,t){if(!e)return new s.fabric.Group([],Object.assign({top:0,left:0},l));const i=new s.fabric.Text("CTE:",{fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:c,fill:t.getCommonColor("text-secondary"),hoverCursor:"pointer"}),n=i.getScaledWidth()+2,r=ge.width-2*ge.padding-n,o=new s.fabric.Textbox(e,{left:n,width:r,fontSize:ge.textFontSize,lineHeight:ge.textLineHeight,fontFamily:c,fill:t.getCommonColor("text-primary"),splitByGrapheme:!0,hoverCursor:"pointer"});return new s.fabric.Group([i,o],Object.assign({top:0,left:0},l))}(this.data.cte||"",this.opts.colors);return[e,t,o,a]}setShapeObjectsCoords(){const[e,t,i,s]=this.objects;let n=ge.padding;const r=ge.padding;e.set({left:0,top:4,width:(this.expanded?ge.expandedWidth:ge.width)-4}),t.set({left:r,top:n}),n+=t.getScaledHeight(),i.set({left:r,top:n+(0===i.size()?0:ge.textOffset)}),n+=i.getScaledHeight(),s.set({left:r,top:n+(0===s.size()?0:ge.textOffset)})}createGroup(){const{top:e,left:t}=this.coords;return new s.fabric.Group([this.body,...this.objects],Object.assign({top:e,left:t},l))}initListeners(){this.initHover(),this.isExpandable()&&this.initExpand()}initHover(){this.group.on("mouseover",(()=>{this.em.dispatch("node:mouseover",this.treeNode),this.toggleHighlight(!0)})),this.group.on("mouseout",(()=>{this.em.dispatch("node:mouseout",this.treeNode),this.toggleHighlight(!1)}))}initExpand(){this.group.on("mousedown",(e=>{var t;this.stats&&(null===(t=e.subTargets)||void 0===t?void 0:t.includes(this.stats))||(this.updateDimensions(),this.expanded=!this.expanded,this.em.dispatch("node:resize",this.treeNode))}))}updateDimensions(){const e=this.opts.colors;if(this.expanded){const e=ge.width,t=this.nodeHeight;this.body.set({width:e,height:t,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:e-4}).setCoords(),this.group.removeWithUpdate(this.stats),this.stats=void 0}else{this.stats=J(this.canvas,this.data.stats,(this.group.top||0)+this.body.getScaledHeight()+ge.padding,(this.group.left||0)+ge.padding,e),this.expandedNodeHeight=this.nodeHeight+this.stats.getScaledHeight()+2*ge.padding;const t=ge.expandedWidth,i=this.expandedNodeHeight;this.body.set({width:t,height:i,fill:this.getFillColor(),shadow:this.getShadow()}).setCoords(),this.objects[0].set({width:t-4}).setCoords(),this.group.addWithUpdate(this.stats)}}isExpandable(){return Boolean(this.data.stats&&this.data.stats.length>0)}}function me(e,t,i,s,n){return function(e){const t=Q()(e,["data","data"]);return"connection"===(null===t||void 0===t?void 0:t.type)}(i)?new ne(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"result"===(null===t||void 0===t?void 0:t.type)}(i)?new ue(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"query"===(null===t||void 0===t?void 0:t.type)}(i)?new he(e,t,i,s,n):function(e){const t=Q()(e,["data","data"]);return"materialize"===(null===t||void 0===t?void 0:t.type)}(i)?new oe(e,t,i,s,n):new pe(e,t,i,s,n)}},55299:(e,t,i)=>{"use strict";i.d(t,{F:()=>O});var s=i(59284),n=i(81240),r=i(84476),o=i(80604),a=i(99991),l=i(63365),c=i(46423),h=i(87184);const d=s.createContext(null),u=()=>{const e=s.useContext(d);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},g=e=>{const{view:t}=u();return s.createElement(r.$,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};var p=i(69220);const m=(0,p.om)("alert"),f=({layout:e,view:t,children:i})=>s.createElement(d.Provider,{value:{layout:e,view:t}},i);var _=i(18677),v=i(10800),C=i(45720),b=i(43937);const E=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m3.1-8.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}));var S=i(70825),y=i(71153),w=i(94420);const L=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.22 2.22 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414"}));var R=i(27612);const T={danger:{filled:_.A,outlined:v.A},info:{filled:C.A,outlined:b.A},success:{filled:E,outlined:S.A},warning:{filled:y.A,outlined:w.A},utility:{filled:L,outlined:R.A},normal:null};var x=i(98089);var k=i(72837);const A=JSON.parse('{"label_close":"Close"}'),N=JSON.parse('{"label_close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),I=(0,k.N)({en:A,ru:N},"Alert"),O=e=>{const{theme:t="normal",view:i="filled",layout:d="vertical",message:u,className:g,corners:p,style:_,onClose:v,align:C,qa:b}=e;return s.createElement(f,{layout:d,view:i},s.createElement(o.Z,{style:_,className:m({corners:p},(0,c.Y)({py:4,px:5},g)),theme:t,view:i,qa:b},s.createElement(h.s,{gap:"3",alignItems:C},"undefined"===typeof e.icon?s.createElement(O.Icon,{theme:t,view:i}):e.icon,s.createElement(h.s,{direction:"vertical"===d?"column":"row",gap:"5",grow:!0},s.createElement(h.s,{gap:"2",grow:!0,className:m("text-content")},s.createElement(h.s,{direction:"column",gap:"1",grow:!0,justifyContent:C},"string"===typeof e.title?s.createElement(O.Title,{text:e.title}):e.title,u)),Array.isArray(e.actions)?s.createElement(O.Actions,{items:e.actions}):e.actions),v&&s.createElement(r.$,{view:"flat",className:m("close-btn"),onClick:v,extraProps:{"aria-label":I("label_close")}},s.createElement(a.I,{data:n.A,size:18,className:(0,l.$)({color:"secondary"})})))))};O.Icon=({className:e,theme:t,view:i="filled",size:n=18})=>{const r=T[t];if(!r)return null;let o;return"success"===t?o="positive":"normal"!==t&&(o=t),s.createElement("div",{className:m("icon",(0,l.$)({color:o},e))},s.createElement(a.I,{data:r[i],size:n}))},O.Title=({text:e,className:t})=>s.createElement(x.E,{variant:"subheader-2",className:m("title",t)},e),O.Actions=({items:e,children:t,className:i})=>{const{layout:n}=u();return s.createElement(h.s,{className:m("actions",{minContent:"horizontal"===n},i),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===n?"center":"flex-start"},(null===e||void 0===e?void 0:e.map((({handler:e,text:t},i)=>s.createElement(g,{key:i,onClick:e},t))))||t)},O.Action=g},80604:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var s=i(27145),n=i(59284),r=i(46734),o=i(9296);const a=(0,i(69220).om)("card"),l=n.forwardRef((function(e,t){const{type:i="container",theme:l,view:c,size:h="m",children:d,className:u,onClick:g,disabled:p,selected:m}=e,f=(0,s.Tt)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),_="selection"===i,v="container"===i,C=("action"===i||_)&&Boolean(g)&&!p,b=v?"normal":void 0,E=v||_?"outlined":void 0,S=C?g:void 0,{onKeyDown:y}=(0,r.N)(g);return n.createElement(o.a,Object.assign({ref:t,role:C?"button":void 0,className:a({theme:l||b,view:c||E,type:i,selected:m,size:h,disabled:p,clickable:C},u),onClick:S,onKeyDown:C?y:void 0,tabIndex:C?0:void 0},f),d)}))},80953:(e,t,i)=>{"use strict";i.d(t,{t:()=>r});var s=i(59284);const n=(0,i(69220).om)("spin"),r=s.forwardRef((function(e,t){const{size:i="m",style:r,className:o,qa:a}=e;return s.createElement("div",{ref:t,style:r,className:n({size:i},o),"data-qa":a},s.createElement("div",{className:n("inner")}))}))},1155:(e,t,i)=>{"use strict";i.d(t,{m:()=>u});var s=i(59284),n=i(32084),r=i(81517),o=i(39238),a=i(98089),l=i(69220),c=i(7412);const h=(0,l.om)("tooltip"),d=["bottom","top"],u=e=>{const{children:t,content:i,disabled:l,placement:u=d,qa:g,id:p,className:m,style:f,disablePortal:_,contentClassName:v,openDelay:C=1e3,closeDelay:b}=e,[E,S]=s.useState(null),y=(0,r.d)(E,{openDelay:C,closeDelay:b,preventTriggerOnFocus:!0}),w=s.Children.only(t),L=(0,c.Q)(w),R=(0,n.N)(S,L);return s.createElement(s.Fragment,null,s.cloneElement(w,{ref:R}),E?s.createElement(o.z,{id:p,role:"tooltip",className:h(null,m),style:f,open:y&&!l,placement:u,anchorRef:{current:E},disablePortal:_,disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:g},s.createElement("div",{className:h("content",v)},s.createElement(a.E,{variant:"body-short",color:"complementary"},i))):null)}},70206:(e,t)=>{var i;i=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=new Array(256),i=0;256!=i;++i)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=i)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[i]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}(),i=function(e){var t=0,i=0,s=0,n="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(s=0;256!=s;++s)n[s]=e[s];for(s=0;256!=s;++s)for(i=e[s],t=256+s;t<4096;t+=256)i=n[t]=i>>>8^e[255&i];var r=[];for(s=1;16!=s;++s)r[s-1]="undefined"!==typeof Int32Array?n.subarray(256*s,256*s+256):n.slice(256*s,256*s+256);return r}(t),s=i[0],n=i[1],r=i[2],o=i[3],a=i[4],l=i[5],c=i[6],h=i[7],d=i[8],u=i[9],g=i[10],p=i[11],m=i[12],f=i[13],_=i[14];e.table=t,e.bstr=function(e,i){for(var s=~i,n=0,r=e.length;n<r;)s=s>>>8^t[255&(s^e.charCodeAt(n++))];return~s},e.buf=function(e,i){for(var v=~i,C=e.length-15,b=0;b<C;)v=_[e[b++]^255&v]^f[e[b++]^v>>8&255]^m[e[b++]^v>>16&255]^p[e[b++]^v>>>24]^g[e[b++]]^u[e[b++]]^d[e[b++]]^h[e[b++]]^c[e[b++]]^l[e[b++]]^a[e[b++]]^o[e[b++]]^r[e[b++]]^n[e[b++]]^s[e[b++]]^t[e[b++]];for(C+=15;b<C;)v=v>>>8^t[255&(v^e[b++])];return~v},e.str=function(e,i){for(var s=~i,n=0,r=e.length,o=0,a=0;n<r;)(o=e.charCodeAt(n++))<128?s=s>>>8^t[255&(s^o)]:o<2048?s=(s=s>>>8^t[255&(s^(192|o>>6&31))])>>>8^t[255&(s^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),a=1023&e.charCodeAt(n++),s=(s=(s=(s=s>>>8^t[255&(s^(240|o>>8&7))])>>>8^t[255&(s^(128|o>>2&63))])>>>8^t[255&(s^(128|a>>6&15|(3&o)<<4))])>>>8^t[255&(s^(128|63&a))]):s=(s=(s=s>>>8^t[255&(s^(224|o>>12&15))])>>>8^t[255&(s^(128|o>>6&63))])>>>8^t[255&(s^(128|63&o))];return~s}},"undefined"===typeof DO_NOT_EXPORT_CRC?i(t):i({})},22868:(e,t,i)=>{"use strict";var s=i(67796),n={};function r(e,t,i,s,n,r,o,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[i,s,n,r,o,a],h=0;(l=new Error(t.replace(/%s/g,(function(){return c[h++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}var o="mixins";e.exports=function(e,t,i){var a=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},c={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},h={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var i=0;i<t.length;i++)u(e,t[i])},childContextTypes:function(e,t){e.childContextTypes=s({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=s({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=p(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=s({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var i in t){var s=t[i];if(t.hasOwnProperty(i)){if(r(!(i in h),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',i),i in e)return r("DEFINE_MANY_MERGED"===(c.hasOwnProperty(i)?c[i]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",i),void(e[i]=p(e[i],s));e[i]=s}}}(e,t)},autobind:function(){}};function d(e,t){var i=l.hasOwnProperty(t)?l[t]:null;C.hasOwnProperty(t)&&r("OVERRIDE_BASE"===i,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&r("DEFINE_MANY"===i||"DEFINE_MANY_MERGED"===i,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function u(e,i){if(i){r("function"!==typeof i,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),r(!t(i),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var s=e.prototype,n=s.__reactAutoBindPairs;for(var a in i.hasOwnProperty(o)&&h.mixins(e,i.mixins),i)if(i.hasOwnProperty(a)&&a!==o){var c=i[a],u=s.hasOwnProperty(a);if(d(u,a),h.hasOwnProperty(a))h[a](e,c);else{var g=l.hasOwnProperty(a);if("function"===typeof c&&!g&&!u&&!1!==i.autobind)n.push(a,c),s[a]=c;else if(u){var f=l[a];r(g&&("DEFINE_MANY_MERGED"===f||"DEFINE_MANY"===f),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",f,a),"DEFINE_MANY_MERGED"===f?s[a]=p(s[a],c):"DEFINE_MANY"===f&&(s[a]=m(s[a],c))}else s[a]=c}}}else;}function g(e,t){for(var i in r(e&&t&&"object"===typeof e&&"object"===typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(i)&&(r(void 0===e[i],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",i),e[i]=t[i]);return e}function p(e,t){return function(){var i=e.apply(this,arguments),s=t.apply(this,arguments);if(null==i)return s;if(null==s)return i;var n={};return g(n,i),g(n,s),n}}function m(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function f(e,t){return t.bind(e)}var _={componentDidMount:function(){this.__isMounted=!0}},v={componentWillUnmount:function(){this.__isMounted=!1}},C={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},b=function(){};return s(b.prototype,e.prototype,C),function(e){var t=function(e,s,o){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,i=0;i<t.length;i+=2){var s=t[i],n=t[i+1];e[s]=f(e,n)}}(this),this.props=e,this.context=s,this.refs=n,this.updater=o||i,this.state=null;var a=this.getInitialState?this.getInitialState():null;r("object"===typeof a&&!Array.isArray(a),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=a};for(var s in t.prototype=new b,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],a.forEach(u.bind(null,t)),u(t,_),u(t,e),u(t,v),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),r(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[s]||(t.prototype[s]=null);return t}}},14538:(e,t,i)=>{"use strict";var s=i(59284),n=i(22868);if("undefined"===typeof s)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var r=(new s.Component).updater;e.exports=n(s.Component,s.isValidElement,r)},91740:e=>{e.exports=Date.now||function(){return(new Date).getTime()}},41470:(e,t,i)=>{var s=i(91740);e.exports=function(e,t,i){var n,r,o,a,l;function c(){var h=s()-a;h<t&&h>0?n=setTimeout(c,t-h):(n=null,i||(l=e.apply(o,r),n||(o=r=null)))}return null==t&&(t=100),function(){o=this,r=arguments,a=s();var h=i&&!n;return n||(n=setTimeout(c,t)),h&&(l=e.apply(o,r),o=r=null),l}}},7252:(e,t,i)=>{var s,n=n||{version:"5.4.2"};if(t.fabric=n,"undefined"!==typeof document&&"undefined"!==typeof window)document instanceof("undefined"!==typeof HTMLDocument?HTMLDocument:Document)?n.document=document:n.document=document.implementation.createHTMLDocument(""),n.window=window;else{var r=new(i(66574).JSDOM)(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;n.document=r.document,n.jsdomImplForWrapper=i(2748).implForWrapper,n.nodeCanvas=i(52246).Canvas,n.window=r,DOMParser=n.window.DOMParser}function o(e,t){var i=e.canvas,s=t.targetCanvas,n=s.getContext("2d");n.translate(0,s.height),n.scale(1,-1);var r=i.height-s.height;n.drawImage(i,0,r,s.width,s.height,0,0,s.width,s.height)}function a(e,t){var i=t.targetCanvas.getContext("2d"),s=t.destinationWidth,n=t.destinationHeight,r=s*n*4,o=new Uint8Array(this.imageBuffer,0,r),a=new Uint8ClampedArray(this.imageBuffer,0,r);e.readPixels(0,0,s,n,e.RGBA,e.UNSIGNED_BYTE,o);var l=new ImageData(a,s,n);i.putImageData(l,0,0)}n.isTouchSupported="ontouchstart"in n.window||"ontouchstart"in n.document||n.window&&n.window.navigator&&n.window.navigator.maxTouchPoints>0,n.isLikelyNode="undefined"!==typeof Buffer&&"undefined"===typeof window,n.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],n.DPI=96,n.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",n.commaWsp="(?:\\s+,?\\s*|,\\s*)",n.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,n.reNonWord=/[ \n\.,;!\?\-]/,n.fontPaths={},n.iMatrix=[1,0,0,1,0,0],n.svgNS="http://www.w3.org/2000/svg",n.perfLimitSizeTotal=2097152,n.maxCacheSideLimit=4096,n.minCacheSideLimit=256,n.charWidthsCache={},n.textureSize=2048,n.disableStyleCopyPaste=!1,n.enableGLFiltering=!0,n.devicePixelRatio=n.window.devicePixelRatio||n.window.webkitDevicePixelRatio||n.window.mozDevicePixelRatio||1,n.browserShadowBlurConstant=1,n.arcToSegmentsCache={},n.boundsOfCurveCache={},n.cachesBoundsOfCurve=!0,n.forceGLPutImageData=!1,n.initFilterBackend=function(){return n.enableGLFiltering&&n.isWebglSupported&&n.isWebglSupported(n.textureSize)?(console.log("max texture size: "+n.maxTextureSize),new n.WebglFilterBackend({tileSize:n.textureSize})):n.Canvas2dFilterBackend?new n.Canvas2dFilterBackend:void 0},"undefined"!==typeof document&&"undefined"!==typeof window&&(window.fabric=n),function(){function e(e,t){if(this.__eventListeners[e]){var i=this.__eventListeners[e];t?i[i.indexOf(t)]=!1:n.util.array.fill(i,!1)}}function t(e,t){var i=function(){t.apply(this,arguments),this.off(e,i)}.bind(this);this.on(e,i)}n.Observable={fire:function(e,t){if(!this.__eventListeners)return this;var i=this.__eventListeners[e];if(!i)return this;for(var s=0,n=i.length;s<n;s++)i[s]&&i[s].call(this,t||{});return this.__eventListeners[e]=i.filter((function(e){return!1!==e})),this},on:function(e,t){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var i in e)this.on(i,e[i]);else this.__eventListeners[e]||(this.__eventListeners[e]=[]),this.__eventListeners[e].push(t);return this},once:function(e,i){if(1===arguments.length)for(var s in e)t.call(this,s,e[s]);else t.call(this,e,i);return this},off:function(t,i){if(!this.__eventListeners)return this;if(0===arguments.length)for(t in this.__eventListeners)e.call(this,t);else if(1===arguments.length&&"object"===typeof arguments[0])for(var s in t)e.call(this,s,t[s]);else e.call(this,t,i);return this}}}(),n.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var e=0,t=arguments.length;e<t;e++)this._onObjectAdded(arguments[e]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(e,t,i){var s=this._objects;return i?s[t]=e:s.splice(t,0,e),this._onObjectAdded&&this._onObjectAdded(e),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var e,t=this._objects,i=!1,s=0,n=arguments.length;s<n;s++)-1!==(e=t.indexOf(arguments[s]))&&(i=!0,t.splice(e,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[s]));return this.renderOnAddRemove&&i&&this.requestRenderAll(),this},forEachObject:function(e,t){for(var i=this.getObjects(),s=0,n=i.length;s<n;s++)e.call(t,i[s],s,i);return this},getObjects:function(e){return"undefined"===typeof e?this._objects.concat():this._objects.filter((function(t){return t.type===e}))},item:function(e){return this._objects[e]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(e,t){return this._objects.indexOf(e)>-1||!!t&&this._objects.some((function(t){return"function"===typeof t.contains&&t.contains(e,!0)}))},complexity:function(){return this._objects.reduce((function(e,t){return e+=t.complexity?t.complexity():0}),0)}},n.CommonMethods={_setOptions:function(e){for(var t in e)this.set(t,e[t])},_initGradient:function(e,t){!e||!e.colorStops||e instanceof n.Gradient||this.set(t,new n.Gradient(e))},_initPattern:function(e,t,i){!e||!e.source||e instanceof n.Pattern?i&&i():this.set(t,new n.Pattern(e,i))},_setObject:function(e){for(var t in e)this._set(t,e[t])},set:function(e,t){return"object"===typeof e?this._setObject(e):this._set(e,t),this},_set:function(e,t){this[e]=t},toggle:function(e){var t=this.get(e);return"boolean"===typeof t&&this.set(e,!t),this},get:function(e){return this[e]}},function(e){var t=Math.sqrt,i=Math.atan2,s=Math.pow,r=Math.PI/180,o=Math.PI/2;n.util={cos:function(e){if(0===e)return 1;switch(e<0&&(e=-e),e/o){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},sin:function(e){if(0===e)return 0;var t=1;switch(e<0&&(t=-1),e/o){case 1:return t;case 2:return 0;case 3:return-t}return Math.sin(e)},removeFromArray:function(e,t){var i=e.indexOf(t);return-1!==i&&e.splice(i,1),e},getRandomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e},degreesToRadians:function(e){return e*r},radiansToDegrees:function(e){return e/r},rotatePoint:function(e,t,i){var s=new n.Point(e.x-t.x,e.y-t.y),r=n.util.rotateVector(s,i);return new n.Point(r.x,r.y).addEquals(t)},rotateVector:function(e,t){var i=n.util.sin(t),s=n.util.cos(t);return{x:e.x*s-e.y*i,y:e.x*i+e.y*s}},createVector:function(e,t){return new n.Point(t.x-e.x,t.y-e.y)},calcAngleBetweenVectors:function(e,t){return Math.acos((e.x*t.x+e.y*t.y)/(Math.hypot(e.x,e.y)*Math.hypot(t.x,t.y)))},getHatVector:function(e){return new n.Point(e.x,e.y).multiply(1/Math.hypot(e.x,e.y))},getBisector:function(e,t,i){var s=n.util.createVector(e,t),r=n.util.createVector(e,i),o=n.util.calcAngleBetweenVectors(s,r),a=o*(0===n.util.calcAngleBetweenVectors(n.util.rotateVector(s,o),r)?1:-1)/2;return{vector:n.util.getHatVector(n.util.rotateVector(s,a)),angle:o}},projectStrokeOnPoints:function(e,t,i){var s=[],r=t.strokeWidth/2,o=t.strokeUniform?new n.Point(1/t.scaleX,1/t.scaleY):new n.Point(1,1),a=function(e){var t=r/Math.hypot(e.x,e.y);return new n.Point(e.x*t*o.x,e.y*t*o.y)};return e.length<=1||e.forEach((function(l,c){var h,d,u=new n.Point(l.x,l.y);0===c?(d=e[c+1],h=i?a(n.util.createVector(d,u)).addEquals(u):e[e.length-1]):c===e.length-1?(h=e[c-1],d=i?a(n.util.createVector(h,u)).addEquals(u):e[0]):(h=e[c-1],d=e[c+1]);var g,p,m=n.util.getBisector(u,h,d),f=m.vector,_=m.angle;if("miter"===t.strokeLineJoin&&(g=-r/Math.sin(_/2),p=new n.Point(f.x*g*o.x,f.y*g*o.y),Math.hypot(p.x,p.y)/r<=t.strokeMiterLimit))return s.push(u.add(p)),void s.push(u.subtract(p));g=-r*Math.SQRT2,p=new n.Point(f.x*g*o.x,f.y*g*o.y),s.push(u.add(p)),s.push(u.subtract(p))})),s},transformPoint:function(e,t,i){return i?new n.Point(t[0]*e.x+t[2]*e.y,t[1]*e.x+t[3]*e.y):new n.Point(t[0]*e.x+t[2]*e.y+t[4],t[1]*e.x+t[3]*e.y+t[5])},makeBoundingBoxFromPoints:function(e,t){if(t)for(var i=0;i<e.length;i++)e[i]=n.util.transformPoint(e[i],t);var s=[e[0].x,e[1].x,e[2].x,e[3].x],r=n.util.array.min(s),o=n.util.array.max(s)-r,a=[e[0].y,e[1].y,e[2].y,e[3].y],l=n.util.array.min(a);return{left:r,top:l,width:o,height:n.util.array.max(a)-l}},invertTransform:function(e){var t=1/(e[0]*e[3]-e[1]*e[2]),i=[t*e[3],-t*e[1],-t*e[2],t*e[0]],s=n.util.transformPoint({x:e[4],y:e[5]},i,!0);return i[4]=-s.x,i[5]=-s.y,i},toFixed:function(e,t){return parseFloat(Number(e).toFixed(t))},parseUnit:function(e,t){var i=/\D{0,2}$/.exec(e),s=parseFloat(e);switch(t||(t=n.Text.DEFAULT_SVG_FONT_SIZE),i[0]){case"mm":return s*n.DPI/25.4;case"cm":return s*n.DPI/2.54;case"in":return s*n.DPI;case"pt":return s*n.DPI/72;case"pc":return s*n.DPI/72*12;case"em":return s*t;default:return s}},falseFunction:function(){return!1},getKlass:function(e,t){return e=n.util.string.camelize(e.charAt(0).toUpperCase()+e.slice(1)),n.util.resolveNamespace(t)[e]},getSvgAttributes:function(e){var t=["instantiated_by_use","style","id","class"];switch(e){case"linearGradient":t=t.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":t=t.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":t=t.concat(["offset","stop-color","stop-opacity"])}return t},resolveNamespace:function(t){if(!t)return n;var i,s=t.split("."),r=s.length,o=e||n.window;for(i=0;i<r;++i)o=o[s[i]];return o},loadImage:function(e,t,i,s){if(e){var r=n.util.createImage(),o=function(){t&&t.call(i,r,!1),r=r.onload=r.onerror=null};r.onload=o,r.onerror=function(){n.log("Error loading "+r.src),t&&t.call(i,null,!0),r=r.onload=r.onerror=null},0!==e.indexOf("data")&&void 0!==s&&null!==s&&(r.crossOrigin=s),"data:image/svg"===e.substring(0,14)&&(r.onload=null,n.util.loadImageInDom(r,o)),r.src=e}else t&&t.call(i,e)},loadImageInDom:function(e,t){var i=n.document.createElement("div");i.style.width=i.style.height="1px",i.style.left=i.style.top="-100%",i.style.position="absolute",i.appendChild(e),n.document.querySelector("body").appendChild(i),e.onload=function(){t(),i.parentNode.removeChild(i),i=null}},enlivenObjects:function(e,t,i,s){var r=[],o=0,a=(e=e||[]).length;function l(){++o===a&&t&&t(r.filter((function(e){return e})))}a?e.forEach((function(e,t){e&&e.type?n.util.getKlass(e.type,i).fromObject(e,(function(i,n){n||(r[t]=i),s&&s(e,i,n),l()})):l()})):t&&t(r)},enlivenObjectEnlivables:function(e,t,i){var s=n.Object.ENLIVEN_PROPS.filter((function(t){return!!e[t]}));n.util.enlivenObjects(s.map((function(t){return e[t]})),(function(e){var n={};s.forEach((function(i,s){n[i]=e[s],t&&(t[i]=e[s])})),i&&i(n)}))},enlivenPatterns:function(e,t){function i(){++r===o&&t&&t(s)}var s=[],r=0,o=(e=e||[]).length;o?e.forEach((function(e,t){e&&e.source?new n.Pattern(e,(function(e){s[t]=e,i()})):(s[t]=e,i())})):t&&t(s)},groupSVGElements:function(e,t,i){var s;return e&&1===e.length?("undefined"!==typeof i&&(e[0].sourcePath=i),e[0]):(t&&(t.width&&t.height?t.centerPoint={x:t.width/2,y:t.height/2}:(delete t.width,delete t.height)),s=new n.Group(e,t),"undefined"!==typeof i&&(s.sourcePath=i),s)},populateWithProperties:function(e,t,i){if(i&&Array.isArray(i))for(var s=0,n=i.length;s<n;s++)i[s]in e&&(t[i[s]]=e[i[s]])},createCanvasElement:function(){return n.document.createElement("canvas")},copyCanvasElement:function(e){var t=n.util.createCanvasElement();return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t},toDataURL:function(e,t,i){return e.toDataURL("image/"+t,i)},createImage:function(){return n.document.createElement("img")},multiplyTransformMatrices:function(e,t,i){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],i?0:e[0]*t[4]+e[2]*t[5]+e[4],i?0:e[1]*t[4]+e[3]*t[5]+e[5]]},qrDecompose:function(e){var n=i(e[1],e[0]),o=s(e[0],2)+s(e[1],2),a=t(o),l=(e[0]*e[3]-e[2]*e[1])/a,c=i(e[0]*e[2]+e[1]*e[3],o);return{angle:n/r,scaleX:a,scaleY:l,skewX:c/r,skewY:0,translateX:e[4],translateY:e[5]}},calcRotateMatrix:function(e){if(!e.angle)return n.iMatrix.concat();var t=n.util.degreesToRadians(e.angle),i=n.util.cos(t),s=n.util.sin(t);return[i,s,-s,i,0,0]},calcDimensionsMatrix:function(e){var t="undefined"===typeof e.scaleX?1:e.scaleX,i="undefined"===typeof e.scaleY?1:e.scaleY,s=[e.flipX?-t:t,0,0,e.flipY?-i:i,0,0],r=n.util.multiplyTransformMatrices,o=n.util.degreesToRadians;return e.skewX&&(s=r(s,[1,0,Math.tan(o(e.skewX)),1],!0)),e.skewY&&(s=r(s,[1,Math.tan(o(e.skewY)),0,1],!0)),s},composeMatrix:function(e){var t=[1,0,0,1,e.translateX||0,e.translateY||0],i=n.util.multiplyTransformMatrices;return e.angle&&(t=i(t,n.util.calcRotateMatrix(e))),(1!==e.scaleX||1!==e.scaleY||e.skewX||e.skewY||e.flipX||e.flipY)&&(t=i(t,n.util.calcDimensionsMatrix(e))),t},resetObjectTransform:function(e){e.scaleX=1,e.scaleY=1,e.skewX=0,e.skewY=0,e.flipX=!1,e.flipY=!1,e.rotate(0)},saveObjectTransform:function(e){return{scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,angle:e.angle,left:e.left,flipX:e.flipX,flipY:e.flipY,top:e.top}},isTransparent:function(e,t,i,s){s>0&&(t>s?t-=s:t=0,i>s?i-=s:i=0);var n,r=!0,o=e.getImageData(t,i,2*s||1,2*s||1),a=o.data.length;for(n=3;n<a&&!1!==(r=o.data[n]<=0);n+=4);return o=null,r},parsePreserveAspectRatioAttribute:function(e){var t,i="meet",s=e.split(" ");return s&&s.length&&("meet"!==(i=s.pop())&&"slice"!==i?(t=i,i="meet"):s.length&&(t=s.pop())),{meetOrSlice:i,alignX:"none"!==t?t.slice(1,4):"none",alignY:"none"!==t?t.slice(5,8):"none"}},clearFabricFontCache:function(e){(e=(e||"").toLowerCase())?n.charWidthsCache[e]&&delete n.charWidthsCache[e]:n.charWidthsCache={}},limitDimsByArea:function(e,t){var i=Math.sqrt(t*e),s=Math.floor(t/i);return{x:Math.floor(i),y:s}},capValue:function(e,t,i){return Math.max(e,Math.min(t,i))},findScaleToFit:function(e,t){return Math.min(t.width/e.width,t.height/e.height)},findScaleToCover:function(e,t){return Math.max(t.width/e.width,t.height/e.height)},matrixToSVG:function(e){return"matrix("+e.map((function(e){return n.util.toFixed(e,n.Object.NUM_FRACTION_DIGITS)})).join(" ")+")"},removeTransformFromObject:function(e,t){var i=n.util.invertTransform(t),s=n.util.multiplyTransformMatrices(i,e.calcOwnMatrix());n.util.applyTransformToObject(e,s)},addTransformToObject:function(e,t){n.util.applyTransformToObject(e,n.util.multiplyTransformMatrices(t,e.calcOwnMatrix()))},applyTransformToObject:function(e,t){var i=n.util.qrDecompose(t),s=new n.Point(i.translateX,i.translateY);e.flipX=!1,e.flipY=!1,e.set("scaleX",i.scaleX),e.set("scaleY",i.scaleY),e.skewX=i.skewX,e.skewY=i.skewY,e.angle=i.angle,e.setPositionByOrigin(s,"center","center")},sizeAfterTransform:function(e,t,i){var s=e/2,r=t/2,o=[{x:-s,y:-r},{x:s,y:-r},{x:-s,y:r},{x:s,y:r}],a=n.util.calcDimensionsMatrix(i),l=n.util.makeBoundingBoxFromPoints(o,a);return{x:l.width,y:l.height}},mergeClipPaths:function(e,t){var i=e,s=t;i.inverted&&!s.inverted&&(i=t,s=e),n.util.applyTransformToObject(s,n.util.multiplyTransformMatrices(n.util.invertTransform(i.calcTransformMatrix()),s.calcTransformMatrix()));var r=i.inverted&&s.inverted;return r&&(i.inverted=s.inverted=!1),new n.Group([i],{clipPath:s,inverted:r})},hasStyleChanged:function(e,t,i){return i=i||!1,e.fill!==t.fill||e.stroke!==t.stroke||e.strokeWidth!==t.strokeWidth||e.fontSize!==t.fontSize||e.fontFamily!==t.fontFamily||e.fontWeight!==t.fontWeight||e.fontStyle!==t.fontStyle||e.textBackgroundColor!==t.textBackgroundColor||e.deltaY!==t.deltaY||i&&(e.overline!==t.overline||e.underline!==t.underline||e.linethrough!==t.linethrough)},stylesToArray:function(e,t){e=n.util.object.clone(e,!0);for(var i=t.split("\n"),s=-1,r={},o=[],a=0;a<i.length;a++)if(e[a])for(var l=0;l<i[a].length;l++){s++;var c=e[a][l];if(c&&Object.keys(c).length>0)n.util.hasStyleChanged(r,c,!0)?o.push({start:s,end:s+1,style:c}):o[o.length-1].end++;r=c||{}}else s+=i[a].length;return o},stylesFromArray:function(e,t){if(!Array.isArray(e))return e;for(var i=t.split("\n"),s=-1,n=0,r={},o=0;o<i.length;o++)for(var a=0;a<i[o].length;a++)s++,e[n]&&e[n].start<=s&&s<e[n].end&&(r[o]=r[o]||{},r[o][a]=Object.assign({},e[n].style),s===e[n].end-1&&n++);return r}}}(t),function(){var e=Array.prototype.join,t={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},i={m:"l",M:"L"};function s(e,t,i,s,r,o,a,l,c,h,d){var u=n.util.cos(e),g=n.util.sin(e),p=n.util.cos(t),m=n.util.sin(t),f=i*r*p-s*o*m+a,_=s*r*p+i*o*m+l;return["C",h+c*(-i*r*g-s*o*u),d+c*(-s*r*g+i*o*u),f+c*(i*r*m+s*o*p),_+c*(s*r*m-i*o*p),f,_]}function r(e,t,i,s){var n=Math.atan2(t,e),r=Math.atan2(s,i);return r>=n?r-n:2*Math.PI-(n-r)}function o(e,t,i){for(var o=i[1],a=i[2],l=i[3],c=i[4],h=i[5],d=function(e,t,i,o,a,l,c){var h=Math.PI,d=c*h/180,u=n.util.sin(d),g=n.util.cos(d),p=0,m=0,f=-g*e*.5-u*t*.5,_=-g*t*.5+u*e*.5,v=(i=Math.abs(i))*i,C=(o=Math.abs(o))*o,b=_*_,E=f*f,S=v*C-v*b-C*E,y=0;if(S<0){var w=Math.sqrt(1-S/(v*C));i*=w,o*=w}else y=(a===l?-1:1)*Math.sqrt(S/(v*b+C*E));var L=y*i*_/o,R=-y*o*f/i,T=g*L-u*R+.5*e,x=u*L+g*R+.5*t,k=r(1,0,(f-L)/i,(_-R)/o),A=r((f-L)/i,(_-R)/o,(-f-L)/i,(-_-R)/o);0===l&&A>0?A-=2*h:1===l&&A<0&&(A+=2*h);for(var N=Math.ceil(Math.abs(A/h*2)),I=[],O=A/N,D=8/3*Math.sin(O/4)*Math.sin(O/4)/Math.sin(O/2),M=k+O,P=0;P<N;P++)I[P]=s(k,M,g,u,i,o,T,x,D,p,m),p=I[P][5],m=I[P][6],k=M,M+=O;return I}(i[6]-e,i[7]-t,o,a,c,h,l),u=0,g=d.length;u<g;u++)d[u][1]+=e,d[u][2]+=t,d[u][3]+=e,d[u][4]+=t,d[u][5]+=e,d[u][6]+=t;return d}function a(e,t,i,s){return Math.sqrt((i-e)*(i-e)+(s-t)*(s-t))}function l(e,t,i,s,n,r,o,a){return function(l){var c,h=(c=l)*c*c,d=function(e){return 3*e*e*(1-e)}(l),u=function(e){return 3*e*(1-e)*(1-e)}(l),g=function(e){return(1-e)*(1-e)*(1-e)}(l);return{x:o*h+n*d+i*u+e*g,y:a*h+r*d+s*u+t*g}}}function c(e,t,i,s,n,r,o,a){return function(l){var c=1-l,h=3*c*c*(i-e)+6*c*l*(n-i)+3*l*l*(o-n),d=3*c*c*(s-t)+6*c*l*(r-s)+3*l*l*(a-r);return Math.atan2(d,h)}}function h(e,t,i,s,n,r){return function(o){var a,l=(a=o)*a,c=function(e){return 2*e*(1-e)}(o),h=function(e){return(1-e)*(1-e)}(o);return{x:n*l+i*c+e*h,y:r*l+s*c+t*h}}}function d(e,t,i,s,n,r){return function(o){var a=1-o,l=2*a*(i-e)+2*o*(n-i),c=2*a*(s-t)+2*o*(r-s);return Math.atan2(c,l)}}function u(e,t,i){var s,n,r={x:t,y:i},o=0;for(n=1;n<=100;n+=1)s=e(n/100),o+=a(r.x,r.y,s.x,s.y),r=s;return o}function g(e,t){for(var i,s,n,r=0,o=0,l=e.iterator,c={x:e.x,y:e.y},h=.01,d=e.angleFinder;o<t&&h>1e-4;)i=l(r),n=r,(s=a(c.x,c.y,i.x,i.y))+o>t?(r-=h,h/=2):(c=i,r+=h,o+=s);return i.angle=d(n),i}function p(e){for(var t,i,s,n,r=0,o=e.length,g=0,p=0,m=0,f=0,_=[],v=0;v<o;v++){switch(s={x:g,y:p,command:(t=e[v])[0]},t[0]){case"M":s.length=0,m=g=t[1],f=p=t[2];break;case"L":s.length=a(g,p,t[1],t[2]),g=t[1],p=t[2];break;case"C":i=l(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),n=c(g,p,t[1],t[2],t[3],t[4],t[5],t[6]),s.iterator=i,s.angleFinder=n,s.length=u(i,g,p),g=t[5],p=t[6];break;case"Q":i=h(g,p,t[1],t[2],t[3],t[4]),n=d(g,p,t[1],t[2],t[3],t[4]),s.iterator=i,s.angleFinder=n,s.length=u(i,g,p),g=t[3],p=t[4];break;case"Z":case"z":s.destX=m,s.destY=f,s.length=a(g,p,m,f),g=m,p=f}r+=s.length,_.push(s)}return _.push({length:r,x:g,y:p}),_}n.util.joinPath=function(e){return e.map((function(e){return e.join(" ")})).join(" ")},n.util.parsePath=function(e){var s,r,o,a,l,c=[],h=[],d=n.rePathCommand,u="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",g="("+u+")"+n.commaWsp,p="([01])"+n.commaWsp+"?",m=new RegExp(g+"?"+g+"?"+g+p+p+g+"?("+u+")","g");if(!e||!e.match)return c;for(var f,_=0,v=(l=e.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi)).length;_<v;_++){a=(s=l[_]).slice(1).trim(),h.length=0;var C=s.charAt(0);if(f=[C],"a"===C.toLowerCase())for(var b;b=m.exec(a);)for(var E=1;E<b.length;E++)h.push(b[E]);else for(;o=d.exec(a);)h.push(o[0]);E=0;for(var S=h.length;E<S;E++)r=parseFloat(h[E]),isNaN(r)||f.push(r);var y=t[C.toLowerCase()],w=i[C]||C;if(f.length-1>y)for(var L=1,R=f.length;L<R;L+=y)c.push([C].concat(f.slice(L,L+y))),C=w;else c.push(f)}return c},n.util.makePathSimpler=function(e){var t,i,s,n,r,a,l=0,c=0,h=e.length,d=0,u=0,g=[];for(i=0;i<h;++i){switch(s=!1,(t=e[i].slice(0))[0]){case"l":t[0]="L",t[1]+=l,t[2]+=c;case"L":l=t[1],c=t[2];break;case"h":t[1]+=l;case"H":t[0]="L",t[2]=c,l=t[1];break;case"v":t[1]+=c;case"V":t[0]="L",c=t[1],t[1]=l,t[2]=c;break;case"m":t[0]="M",t[1]+=l,t[2]+=c;case"M":l=t[1],c=t[2],d=t[1],u=t[2];break;case"c":t[0]="C",t[1]+=l,t[2]+=c,t[3]+=l,t[4]+=c,t[5]+=l,t[6]+=c;case"C":r=t[3],a=t[4],l=t[5],c=t[6];break;case"s":t[0]="S",t[1]+=l,t[2]+=c,t[3]+=l,t[4]+=c;case"S":"C"===n?(r=2*l-r,a=2*c-a):(r=l,a=c),l=t[3],c=t[4],t[0]="C",t[5]=t[3],t[6]=t[4],t[3]=t[1],t[4]=t[2],t[1]=r,t[2]=a,r=t[3],a=t[4];break;case"q":t[0]="Q",t[1]+=l,t[2]+=c,t[3]+=l,t[4]+=c;case"Q":r=t[1],a=t[2],l=t[3],c=t[4];break;case"t":t[0]="T",t[1]+=l,t[2]+=c;case"T":"Q"===n?(r=2*l-r,a=2*c-a):(r=l,a=c),t[0]="Q",l=t[1],c=t[2],t[1]=r,t[2]=a,t[3]=l,t[4]=c;break;case"a":t[0]="A",t[6]+=l,t[7]+=c;case"A":s=!0,g=g.concat(o(l,c,t)),l=t[6],c=t[7];break;case"z":case"Z":l=d,c=u}s||g.push(t),n=t[0]}return g},n.util.getSmoothPathFromPoints=function(e,t){var i,s=[],r=new n.Point(e[0].x,e[0].y),o=new n.Point(e[1].x,e[1].y),a=e.length,l=1,c=0,h=a>2;for(t=t||0,h&&(l=e[2].x<o.x?-1:e[2].x===o.x?0:1,c=e[2].y<o.y?-1:e[2].y===o.y?0:1),s.push(["M",r.x-l*t,r.y-c*t]),i=1;i<a;i++){if(!r.eq(o)){var d=r.midPointFrom(o);s.push(["Q",r.x,r.y,d.x,d.y])}r=e[i],i+1<e.length&&(o=e[i+1])}return h&&(l=r.x>e[i-2].x?1:r.x===e[i-2].x?0:-1,c=r.y>e[i-2].y?1:r.y===e[i-2].y?0:-1),s.push(["L",r.x+l*t,r.y+c*t]),s},n.util.getPathSegmentsInfo=p,n.util.getBoundsOfCurve=function(t,i,s,r,o,a,l,c){var h;if(n.cachesBoundsOfCurve&&(h=e.call(arguments),n.boundsOfCurveCache[h]))return n.boundsOfCurveCache[h];var d,u,g,p,m,f,_,v,C=Math.sqrt,b=Math.min,E=Math.max,S=Math.abs,y=[],w=[[],[]];u=6*t-12*s+6*o,d=-3*t+9*s-9*o+3*l,g=3*s-3*t;for(var L=0;L<2;++L)if(L>0&&(u=6*i-12*r+6*a,d=-3*i+9*r-9*a+3*c,g=3*r-3*i),S(d)<1e-12){if(S(u)<1e-12)continue;0<(p=-g/u)&&p<1&&y.push(p)}else(_=u*u-4*g*d)<0||(0<(m=(-u+(v=C(_)))/(2*d))&&m<1&&y.push(m),0<(f=(-u-v)/(2*d))&&f<1&&y.push(f));for(var R,T,x,k=y.length,A=k;k--;)R=(x=1-(p=y[k]))*x*x*t+3*x*x*p*s+3*x*p*p*o+p*p*p*l,w[0][k]=R,T=x*x*x*i+3*x*x*p*r+3*x*p*p*a+p*p*p*c,w[1][k]=T;w[0][A]=t,w[1][A]=i,w[0][A+1]=l,w[1][A+1]=c;var N=[{x:b.apply(null,w[0]),y:b.apply(null,w[1])},{x:E.apply(null,w[0]),y:E.apply(null,w[1])}];return n.cachesBoundsOfCurve&&(n.boundsOfCurveCache[h]=N),N},n.util.getPointOnPath=function(e,t,i){i||(i=p(e));for(var s=0;t-i[s].length>0&&s<i.length-2;)t-=i[s].length,s++;var r,o=i[s],a=t/o.length,l=o.command,c=e[s];switch(l){case"M":return{x:o.x,y:o.y,angle:0};case"Z":case"z":return(r=new n.Point(o.x,o.y).lerp(new n.Point(o.destX,o.destY),a)).angle=Math.atan2(o.destY-o.y,o.destX-o.x),r;case"L":return(r=new n.Point(o.x,o.y).lerp(new n.Point(c[1],c[2]),a)).angle=Math.atan2(c[2]-o.y,c[1]-o.x),r;case"C":case"Q":return g(o,t)}},n.util.transformPath=function(e,t,i){return i&&(t=n.util.multiplyTransformMatrices(t,[1,0,0,1,-i.x,-i.y])),e.map((function(e){for(var i=e.slice(0),s={},r=1;r<e.length-1;r+=2)s.x=e[r],s.y=e[r+1],s=n.util.transformPoint(s,t),i[r]=s.x,i[r+1]=s.y;return i}))}}(),function(){var e=Array.prototype.slice;function t(e,t,i){if(e&&0!==e.length){var s=e.length-1,n=t?e[s][t]:e[s];if(t)for(;s--;)i(e[s][t],n)&&(n=e[s][t]);else for(;s--;)i(e[s],n)&&(n=e[s]);return n}}n.util.array={fill:function(e,t){for(var i=e.length;i--;)e[i]=t;return e},invoke:function(t,i){for(var s=e.call(arguments,2),n=[],r=0,o=t.length;r<o;r++)n[r]=s.length?t[r][i].apply(t[r],s):t[r][i].call(t[r]);return n},min:function(e,i){return t(e,i,(function(e,t){return e<t}))},max:function(e,i){return t(e,i,(function(e,t){return e>=t}))}}}(),function(){function e(t,i,s){if(s)if(!n.isLikelyNode&&i instanceof Element)t=i;else if(i instanceof Array){t=[];for(var r=0,o=i.length;r<o;r++)t[r]=e({},i[r],s)}else if(i&&"object"===typeof i)for(var a in i)"canvas"===a||"group"===a?t[a]=null:i.hasOwnProperty(a)&&(t[a]=e({},i[a],s));else t=i;else for(var a in i)t[a]=i[a];return t}n.util.object={extend:e,clone:function(t,i){return e({},t,i)}},n.util.object.extend(n.util,n.Observable)}(),function(){function e(e,t){var i=e.charCodeAt(t);if(isNaN(i))return"";if(i<55296||i>57343)return e.charAt(t);if(55296<=i&&i<=56319){if(e.length<=t+1)throw"High surrogate without following low surrogate";var s=e.charCodeAt(t+1);if(56320>s||s>57343)throw"High surrogate without following low surrogate";return e.charAt(t)+e.charAt(t+1)}if(0===t)throw"Low surrogate without preceding high surrogate";var n=e.charCodeAt(t-1);if(55296>n||n>56319)throw"Low surrogate without preceding high surrogate";return!1}n.util.string={camelize:function(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))},capitalize:function(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())},escapeXml:function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")},graphemeSplit:function(t){var i,s=0,n=[];for(s=0;s<t.length;s++)!1!==(i=e(t,s))&&n.push(i);return n}}}(),function(){var e=Array.prototype.slice,t=function(){},i=function(){for(var e in{toString:1})if("toString"===e)return!1;return!0}(),s=function(e,t,s){for(var n in t)n in e.prototype&&"function"===typeof e.prototype[n]&&(t[n]+"").indexOf("callSuper")>-1?e.prototype[n]=function(e){return function(){var i=this.constructor.superclass;this.constructor.superclass=s;var n=t[e].apply(this,arguments);if(this.constructor.superclass=i,"initialize"!==e)return n}}(n):e.prototype[n]=t[n],i&&(t.toString!==Object.prototype.toString&&(e.prototype.toString=t.toString),t.valueOf!==Object.prototype.valueOf&&(e.prototype.valueOf=t.valueOf))};function r(){}function o(t){for(var i=null,s=this;s.constructor.superclass;){var n=s.constructor.superclass.prototype[t];if(s[t]!==n){i=n;break}s=s.constructor.superclass.prototype}return i?arguments.length>1?i.apply(this,e.call(arguments,1)):i.call(this):console.log("tried to callSuper "+t+", method not found in prototype chain",this)}n.util.createClass=function(){var i=null,n=e.call(arguments,0);function a(){this.initialize.apply(this,arguments)}"function"===typeof n[0]&&(i=n.shift()),a.superclass=i,a.subclasses=[],i&&(r.prototype=i.prototype,a.prototype=new r,i.subclasses.push(a));for(var l=0,c=n.length;l<c;l++)s(a,n[l],i);return a.prototype.initialize||(a.prototype.initialize=t),a.prototype.constructor=a,a.prototype.callSuper=o,a}}(),function(){var e=!!n.document.createElement("div").attachEvent,t=["touchstart","touchmove","touchend"];n.util.addListener=function(t,i,s,n){t&&t.addEventListener(i,s,!e&&n)},n.util.removeListener=function(t,i,s,n){t&&t.removeEventListener(i,s,!e&&n)},n.util.getPointer=function(e){var t=e.target,i=n.util.getScrollLeftTop(t),s=function(e){var t=e.changedTouches;return t&&t[0]?t[0]:e}(e);return{x:s.clientX+i.left,y:s.clientY+i.top}},n.util.isTouchEvent=function(e){return t.indexOf(e.type)>-1||"touch"===e.pointerType}}(),function(){var e=n.document.createElement("div"),t="string"===typeof e.style.opacity,i="string"===typeof e.style.filter,s=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,r=function(e){return e};t?r=function(e,t){return e.style.opacity=t,e}:i&&(r=function(e,t){var i=e.style;return e.currentStyle&&!e.currentStyle.hasLayout&&(i.zoom=1),s.test(i.filter)?(t=t>=.9999?"":"alpha(opacity="+100*t+")",i.filter=i.filter.replace(s,t)):i.filter+=" alpha(opacity="+100*t+")",e}),n.util.setStyle=function(e,t){var i=e.style;if(!i)return e;if("string"===typeof t)return e.style.cssText+=";"+t,t.indexOf("opacity")>-1?r(e,t.match(/opacity:\s*(\d?\.?\d*)/)[1]):e;for(var s in t)if("opacity"===s)r(e,t[s]);else{var n="float"===s||"cssFloat"===s?"undefined"===typeof i.styleFloat?"cssFloat":"styleFloat":s;i.setProperty(n,t[s])}return e}}(),function(){var e=Array.prototype.slice;var t,i,s=function(t){return e.call(t,0)};try{t=s(n.document.childNodes)instanceof Array}catch(a){}function r(e,t){var i=n.document.createElement(e);for(var s in t)"class"===s?i.className=t[s]:"for"===s?i.htmlFor=t[s]:i.setAttribute(s,t[s]);return i}function o(e){for(var t=0,i=0,s=n.document.documentElement,r=n.document.body||{scrollLeft:0,scrollTop:0};e&&(e.parentNode||e.host)&&((e=e.parentNode||e.host)===n.document?(t=r.scrollLeft||s.scrollLeft||0,i=r.scrollTop||s.scrollTop||0):(t+=e.scrollLeft||0,i+=e.scrollTop||0),1!==e.nodeType||"fixed"!==e.style.position););return{left:t,top:i}}t||(s=function(e){for(var t=new Array(e.length),i=e.length;i--;)t[i]=e[i];return t}),i=n.document.defaultView&&n.document.defaultView.getComputedStyle?function(e,t){var i=n.document.defaultView.getComputedStyle(e,null);return i?i[t]:void 0}:function(e,t){var i=e.style[t];return!i&&e.currentStyle&&(i=e.currentStyle[t]),i},function(){var e=n.document.documentElement.style,t="userSelect"in e?"userSelect":"MozUserSelect"in e?"MozUserSelect":"WebkitUserSelect"in e?"WebkitUserSelect":"KhtmlUserSelect"in e?"KhtmlUserSelect":"";n.util.makeElementUnselectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=n.util.falseFunction),t?e.style[t]="none":"string"===typeof e.unselectable&&(e.unselectable="on"),e},n.util.makeElementSelectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=null),t?e.style[t]="":"string"===typeof e.unselectable&&(e.unselectable=""),e}}(),n.util.setImageSmoothing=function(e,t){e.imageSmoothingEnabled=e.imageSmoothingEnabled||e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled||e.oImageSmoothingEnabled,e.imageSmoothingEnabled=t},n.util.getById=function(e){return"string"===typeof e?n.document.getElementById(e):e},n.util.toArray=s,n.util.addClass=function(e,t){e&&-1===(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className+=(e.className?" ":"")+t)},n.util.makeElement=r,n.util.wrapElement=function(e,t,i){return"string"===typeof t&&(t=r(t,i)),e.parentNode&&e.parentNode.replaceChild(t,e),t.appendChild(e),t},n.util.getScrollLeftTop=o,n.util.getElementOffset=function(e){var t,s,n=e&&e.ownerDocument,r={left:0,top:0},a={left:0,top:0},l={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!n)return a;for(var c in l)a[l[c]]+=parseInt(i(e,c),10)||0;return t=n.documentElement,"undefined"!==typeof e.getBoundingClientRect&&(r=e.getBoundingClientRect()),s=o(e),{left:r.left+s.left-(t.clientLeft||0)+a.left,top:r.top+s.top-(t.clientTop||0)+a.top}},n.util.getNodeCanvas=function(e){var t=n.jsdomImplForWrapper(e);return t._canvas||t._image},n.util.cleanUpJsdomNode=function(e){if(n.isLikelyNode){var t=n.jsdomImplForWrapper(e);t&&(t._image=null,t._canvas=null,t._currentSrc=null,t._attributes=null,t._classList=null)}}}(),function(){function e(){}n.util.request=function(t,i){i||(i={});var s=i.method?i.method.toUpperCase():"GET",r=i.onComplete||function(){},o=new n.window.XMLHttpRequest,a=i.body||i.parameters;return o.onreadystatechange=function(){4===o.readyState&&(r(o),o.onreadystatechange=e)},"GET"===s&&(a=null,"string"===typeof i.parameters&&(t=function(e,t){return e+(/\?/.test(e)?"&":"?")+t}(t,i.parameters))),o.open(s,t,!0),"POST"!==s&&"PUT"!==s||o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(a),o}}(),n.log=console.log,n.warn=console.warn,function(){var e=n.util.object.extend,t=n.util.object.clone,i=[];function s(){return!1}function r(e,t,i,s){return-i*Math.cos(e/s*(Math.PI/2))+i+t}n.util.object.extend(i,{cancelAll:function(){var e=this.splice(0);return e.forEach((function(e){e.cancel()})),e},cancelByCanvas:function(e){if(!e)return[];var t=this.filter((function(t){return"object"===typeof t.target&&t.target.canvas===e}));return t.forEach((function(e){e.cancel()})),t},cancelByTarget:function(e){var t=this.findAnimationsByTarget(e);return t.forEach((function(e){e.cancel()})),t},findAnimationIndex:function(e){return this.indexOf(this.findAnimation(e))},findAnimation:function(e){return this.find((function(t){return t.cancel===e}))},findAnimationsByTarget:function(e){return e?this.filter((function(t){return t.target===e})):[]}});var o=n.window.requestAnimationFrame||n.window.webkitRequestAnimationFrame||n.window.mozRequestAnimationFrame||n.window.oRequestAnimationFrame||n.window.msRequestAnimationFrame||function(e){return n.window.setTimeout(e,1e3/60)},a=n.window.cancelAnimationFrame||n.window.clearTimeout;function l(){return o.apply(n.window,arguments)}n.util.animate=function(i){i||(i={});var o,a=!1,c=function(){var e=n.runningAnimations.indexOf(o);return e>-1&&n.runningAnimations.splice(e,1)[0]};return o=e(t(i),{cancel:function(){return a=!0,c()},currentValue:"startValue"in i?i.startValue:0,completionRate:0,durationRate:0}),n.runningAnimations.push(o),l((function(e){var t,n=e||+new Date,h=i.duration||500,d=n+h,u=i.onChange||s,g=i.abort||s,p=i.onComplete||s,m=i.easing||r,f="startValue"in i&&i.startValue.length>0,_="startValue"in i?i.startValue:0,v="endValue"in i?i.endValue:100,C=i.byValue||(f?_.map((function(e,t){return v[t]-_[t]})):v-_);i.onStart&&i.onStart(),function e(i){var s=(t=i||+new Date)>d?h:t-n,r=s/h,b=f?_.map((function(e,t){return m(s,_[t],C[t],h)})):m(s,_,C,h),E=f?Math.abs((b[0]-_[0])/C[0]):Math.abs((b-_)/C);if(o.currentValue=f?b.slice():b,o.completionRate=E,o.durationRate=r,!a){if(!g(b,E,r))return t>d?(o.currentValue=f?v.slice():v,o.completionRate=1,o.durationRate=1,u(f?v.slice():v,1,1),p(v,1,1),void c()):(u(b,E,r),void l(e));c()}}(n)})),o.cancel},n.util.requestAnimFrame=l,n.util.cancelAnimFrame=function(){return a.apply(n.window,arguments)},n.runningAnimations=i}(),function(){function e(e,t,i){var s="rgba("+parseInt(e[0]+i*(t[0]-e[0]),10)+","+parseInt(e[1]+i*(t[1]-e[1]),10)+","+parseInt(e[2]+i*(t[2]-e[2]),10);return s+=","+(e&&t?parseFloat(e[3]+i*(t[3]-e[3])):1),s+=")"}n.util.animateColor=function(t,i,s,r){var o=new n.Color(t).getSource(),a=new n.Color(i).getSource(),l=r.onComplete,c=r.onChange;return r=r||{},n.util.animate(n.util.object.extend(r,{duration:s||500,startValue:o,endValue:a,byValue:a,easing:function(t,i,s,n){return e(i,s,r.colorEasing?r.colorEasing(t,n):1-Math.cos(t/n*(Math.PI/2)))},onComplete:function(t,i,s){if(l)return l(e(a,a,0),i,s)},onChange:function(t,i,s){if(c){if(Array.isArray(t))return c(e(t,t,0),i,s);c(t,i,s)}}}))}}(),function(){function e(e,t,i,s){return e<Math.abs(t)?(e=t,s=i/4):s=0===t&&0===e?i/(2*Math.PI)*Math.asin(1):i/(2*Math.PI)*Math.asin(t/e),{a:e,c:t,p:i,s:s}}function t(e,t,i){return e.a*Math.pow(2,10*(t-=1))*Math.sin((t*i-e.s)*(2*Math.PI)/e.p)}function i(e,t,i,n){return i-s(n-e,0,i,n)+t}function s(e,t,i,s){return(e/=s)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t}n.util.ease={easeInQuad:function(e,t,i,s){return i*(e/=s)*e+t},easeOutQuad:function(e,t,i,s){return-i*(e/=s)*(e-2)+t},easeInOutQuad:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,i,s){return i*(e/=s)*e*e+t},easeOutCubic:function(e,t,i,s){return i*((e=e/s-1)*e*e+1)+t},easeInOutCubic:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,i,s){return i*(e/=s)*e*e*e+t},easeOutQuart:function(e,t,i,s){return-i*((e=e/s-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,i,s){return i*(e/=s)*e*e*e*e+t},easeOutQuint:function(e,t,i,s){return i*((e=e/s-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,i,s){return(e/=s/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,i,s){return-i*Math.cos(e/s*(Math.PI/2))+i+t},easeOutSine:function(e,t,i,s){return i*Math.sin(e/s*(Math.PI/2))+t},easeInOutSine:function(e,t,i,s){return-i/2*(Math.cos(Math.PI*e/s)-1)+t},easeInExpo:function(e,t,i,s){return 0===e?t:i*Math.pow(2,10*(e/s-1))+t},easeOutExpo:function(e,t,i,s){return e===s?t+i:i*(1-Math.pow(2,-10*e/s))+t},easeInOutExpo:function(e,t,i,s){return 0===e?t:e===s?t+i:(e/=s/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,i,s){return-i*(Math.sqrt(1-(e/=s)*e)-1)+t},easeOutCirc:function(e,t,i,s){return i*Math.sqrt(1-(e=e/s-1)*e)+t},easeInOutCirc:function(e,t,i,s){return(e/=s/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(i,s,n,r){var o=0;return 0===i?s:1===(i/=r)?s+n:(o||(o=.3*r),-t(e(n,n,o,1.70158),i,r)+s)},easeOutElastic:function(t,i,s,n){var r=0;if(0===t)return i;if(1===(t/=n))return i+s;r||(r=.3*n);var o=e(s,s,r,1.70158);return o.a*Math.pow(2,-10*t)*Math.sin((t*n-o.s)*(2*Math.PI)/o.p)+o.c+i},easeInOutElastic:function(i,s,n,r){var o=0;if(0===i)return s;if(2===(i/=r/2))return s+n;o||(o=r*(.3*1.5));var a=e(n,n,o,1.70158);return i<1?-.5*t(a,i,r)+s:a.a*Math.pow(2,-10*(i-=1))*Math.sin((i*r-a.s)*(2*Math.PI)/a.p)*.5+a.c+s},easeInBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),i*(e/=s)*e*((n+1)*e-n)+t},easeOutBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),i*((e=e/s-1)*e*((n+1)*e+n)+1)+t},easeInOutBack:function(e,t,i,s,n){return void 0===n&&(n=1.70158),(e/=s/2)<1?i/2*(e*e*((1+(n*=1.525))*e-n))+t:i/2*((e-=2)*e*((1+(n*=1.525))*e+n)+2)+t},easeInBounce:i,easeOutBounce:s,easeInOutBounce:function(e,t,n,r){return e<r/2?.5*i(2*e,0,n,r)+t:.5*s(2*e-r,0,n,r)+.5*n+t}}}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n=t.util.toFixed,r=t.util.parseUnit,o=t.util.multiplyTransformMatrices,a={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},l={stroke:"strokeOpacity",fill:"fillOpacity"},c="font-size",h="clip-path";function d(e){return e in a?a[e]:e}function u(e,i,s,n){var a,l=Array.isArray(i);if("fill"!==e&&"stroke"!==e||"none"!==i){if("strokeUniform"===e)return"non-scaling-stroke"===i;if("strokeDashArray"===e)i="none"===i?null:i.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===e)i=s&&s.transformMatrix?o(s.transformMatrix,t.parseTransformAttribute(i)):t.parseTransformAttribute(i);else if("visible"===e)i="none"!==i&&"hidden"!==i,s&&!1===s.visible&&(i=!1);else if("opacity"===e)i=parseFloat(i),s&&"undefined"!==typeof s.opacity&&(i*=s.opacity);else if("textAnchor"===e)i="start"===i?"left":"end"===i?"right":"center";else if("charSpacing"===e)a=r(i,n)/n*1e3;else if("paintFirst"===e){var c=i.indexOf("fill"),h=i.indexOf("stroke");i="fill";(c>-1&&h>-1&&h<c||-1===c&&h>-1)&&(i="stroke")}else{if("href"===e||"xlink:href"===e||"font"===e)return i;if("imageSmoothing"===e)return"optimizeQuality"===i;a=l?i.map(r):r(i,n)}}else i="";return!l&&isNaN(a)?i:a}function g(e){return new RegExp("^("+e.join("|")+")\\b","i")}function p(e,t){var i,s,n,r,o=[];for(n=0,r=t.length;n<r;n++)i=t[n],s=e.getElementsByTagName(i),o=o.concat(Array.prototype.slice.call(s));return o}function m(e,t){var i,s=!0;return(i=f(e,t.pop()))&&t.length&&(s=function(e,t){var i,s=!0;for(;e.parentNode&&1===e.parentNode.nodeType&&t.length;)s&&(i=t.pop()),s=f(e=e.parentNode,i);return 0===t.length}(e,t)),i&&s&&0===t.length}function f(e,t){var i,s,n=e.nodeName,r=e.getAttribute("class"),o=e.getAttribute("id");if(i=new RegExp("^"+n,"i"),t=t.replace(i,""),o&&t.length&&(i=new RegExp("#"+o+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"")),r&&t.length)for(s=(r=r.split(" ")).length;s--;)i=new RegExp("\\."+r[s]+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"");return 0===t.length}function _(e,t){var i;if(e.getElementById&&(i=e.getElementById(t)),i)return i;var s,n,r,o=e.getElementsByTagName("*");for(n=0,r=o.length;n<r;n++)if(t===(s=o[n]).getAttribute("id"))return s}t.svgValidTagNamesRegEx=g(["path","circle","polygon","polyline","ellipse","rect","line","image","text"]),t.svgViewBoxElementsRegEx=g(["symbol","image","marker","pattern","view","svg"]),t.svgInvalidAncestorsRegEx=g(["pattern","defs","symbol","metadata","clipPath","mask","desc"]),t.svgValidParentsRegEx=g(["symbol","g","a","svg","clipPath","defs"]),t.cssRules={},t.gradientDefs={},t.clipPaths={},t.parseTransformAttribute=function(){function e(e,i,s){e[s]=Math.tan(t.util.degreesToRadians(i[0]))}var i=t.iMatrix,s=t.reNum,n=t.commaWsp,r="(?:"+("(?:(matrix)\\s*\\(\\s*("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")"+n+"("+s+")\\s*\\))")+"|"+("(?:(translate)\\s*\\(\\s*("+s+")(?:"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(scale)\\s*\\(\\s*("+s+")(?:"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(rotate)\\s*\\(\\s*("+s+")(?:"+n+"("+s+")"+n+"("+s+"))?\\s*\\))")+"|"+("(?:(skewX)\\s*\\(\\s*("+s+")\\s*\\))")+"|"+("(?:(skewY)\\s*\\(\\s*("+s+")\\s*\\))")+")",o=new RegExp("^\\s*(?:"+("(?:"+r+"(?:"+n+"*"+r+")*)")+"?)\\s*$"),a=new RegExp(r,"g");return function(s){var n=i.concat(),l=[];if(!s||s&&!o.test(s))return n;s.replace(a,(function(s){var o=new RegExp(r).exec(s).filter((function(e){return!!e})),a=o[1],c=o.slice(2).map(parseFloat);switch(a){case"translate":!function(e,t){e[4]=t[0],2===t.length&&(e[5]=t[1])}(n,c);break;case"rotate":c[0]=t.util.degreesToRadians(c[0]),function(e,i){var s=t.util.cos(i[0]),n=t.util.sin(i[0]),r=0,o=0;3===i.length&&(r=i[1],o=i[2]),e[0]=s,e[1]=n,e[2]=-n,e[3]=s,e[4]=r-(s*r-n*o),e[5]=o-(n*r+s*o)}(n,c);break;case"scale":!function(e,t){var i=t[0],s=2===t.length?t[1]:t[0];e[0]=i,e[3]=s}(n,c);break;case"skewX":e(n,c,2);break;case"skewY":e(n,c,1);break;case"matrix":n=c}l.push(n.concat()),n=i.concat()}));for(var c=l[0];l.length>1;)l.shift(),c=t.util.multiplyTransformMatrices(c,l[0]);return c}}();var v=new RegExp("^\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*$");function C(e){if(!t.svgViewBoxElementsRegEx.test(e.nodeName))return{};var i,s,n,o,a,l,c=e.getAttribute("viewBox"),h=1,d=1,u=e.getAttribute("width"),g=e.getAttribute("height"),p=e.getAttribute("x")||0,m=e.getAttribute("y")||0,f=e.getAttribute("preserveAspectRatio")||"",_=!c||!(c=c.match(v)),C=!u||!g||"100%"===u||"100%"===g,b=_&&C,E={},S="",y=0,w=0;if(E.width=0,E.height=0,E.toBeParsed=b,_&&(p||m)&&e.parentNode&&"#document"!==e.parentNode.nodeName&&(S=" translate("+r(p)+" "+r(m)+") ",a=(e.getAttribute("transform")||"")+S,e.setAttribute("transform",a),e.removeAttribute("x"),e.removeAttribute("y")),b)return E;if(_)return E.width=r(u),E.height=r(g),E;if(i=-parseFloat(c[1]),s=-parseFloat(c[2]),n=parseFloat(c[3]),o=parseFloat(c[4]),E.minX=i,E.minY=s,E.viewBoxWidth=n,E.viewBoxHeight=o,C?(E.width=n,E.height=o):(E.width=r(u),E.height=r(g),h=E.width/n,d=E.height/o),"none"!==(f=t.util.parsePreserveAspectRatioAttribute(f)).alignX&&("meet"===f.meetOrSlice&&(d=h=h>d?d:h),"slice"===f.meetOrSlice&&(d=h=h>d?h:d),y=E.width-n*h,w=E.height-o*h,"Mid"===f.alignX&&(y/=2),"Mid"===f.alignY&&(w/=2),"Min"===f.alignX&&(y=0),"Min"===f.alignY&&(w=0)),1===h&&1===d&&0===i&&0===s&&0===p&&0===m)return E;if((p||m)&&"#document"!==e.parentNode.nodeName&&(S=" translate("+r(p)+" "+r(m)+") "),a=S+" matrix("+h+" 0 0 "+d+" "+(i*h+y)+" "+(s*d+w)+") ","svg"===e.nodeName){for(l=e.ownerDocument.createElementNS(t.svgNS,"g");e.firstChild;)l.appendChild(e.firstChild);e.appendChild(l)}else(l=e).removeAttribute("x"),l.removeAttribute("y"),a=l.getAttribute("transform")+a;return l.setAttribute("transform",a),E}function b(e,t){var i="xlink:href",s=_(e,t.getAttribute(i).slice(1));if(s&&s.getAttribute(i)&&b(e,s),["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"].forEach((function(e){s&&!t.hasAttribute(e)&&s.hasAttribute(e)&&t.setAttribute(e,s.getAttribute(e))})),!t.children.length)for(var n=s.cloneNode(!0);n.firstChild;)t.appendChild(n.firstChild);t.removeAttribute(i)}t.parseSVGDocument=function(e,i,n,r){if(e){!function(e){for(var i=p(e,["use","svg:use"]),s=0;i.length&&s<i.length;){var n=i[s],r=n.getAttribute("xlink:href")||n.getAttribute("href");if(null===r)return;var o,a,l,c,h=r.slice(1),d=n.getAttribute("x")||0,u=n.getAttribute("y")||0,g=_(e,h).cloneNode(!0),m=(g.getAttribute("transform")||"")+" translate("+d+", "+u+")",f=i.length,v=t.svgNS;if(C(g),/^svg$/i.test(g.nodeName)){var b=g.ownerDocument.createElementNS(v,"g");for(a=0,c=(l=g.attributes).length;a<c;a++)o=l.item(a),b.setAttributeNS(v,o.nodeName,o.nodeValue);for(;g.firstChild;)b.appendChild(g.firstChild);g=b}for(a=0,c=(l=n.attributes).length;a<c;a++)"x"!==(o=l.item(a)).nodeName&&"y"!==o.nodeName&&"xlink:href"!==o.nodeName&&"href"!==o.nodeName&&("transform"===o.nodeName?m=o.nodeValue+" "+m:g.setAttribute(o.nodeName,o.nodeValue));g.setAttribute("transform",m),g.setAttribute("instantiated_by_use","1"),g.removeAttribute("id"),n.parentNode.replaceChild(g,n),i.length===f&&s++}}(e);var o,a,l=t.Object.__uid++,c=C(e),h=t.util.toArray(e.getElementsByTagName("*"));if(c.crossOrigin=r&&r.crossOrigin,c.svgUid=l,0===h.length&&t.isLikelyNode){var d=[];for(o=0,a=(h=e.selectNodes('//*[name(.)!="svg"]')).length;o<a;o++)d[o]=h[o];h=d}var u=h.filter((function(e){return C(e),t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))&&!function(e,t){for(;e&&(e=e.parentNode);)if(e.nodeName&&t.test(e.nodeName.replace("svg:",""))&&!e.getAttribute("instantiated_by_use"))return!0;return!1}(e,t.svgInvalidAncestorsRegEx)}));if(!u||u&&!u.length)i&&i([],{});else{var g={};h.filter((function(e){return"clipPath"===e.nodeName.replace("svg:","")})).forEach((function(e){var i=e.getAttribute("id");g[i]=t.util.toArray(e.getElementsByTagName("*")).filter((function(e){return t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))}))})),t.gradientDefs[l]=t.getGradientDefs(e),t.cssRules[l]=t.getCSSRules(e),t.clipPaths[l]=g,t.parseElements(u,(function(e,s){i&&(i(e,c,s,h),delete t.gradientDefs[l],delete t.cssRules[l],delete t.clipPaths[l])}),s(c),n,r)}}};var E=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+t.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+t.reNum+"))?\\s+(.*)");i(t,{parseFontDeclaration:function(e,t){var i=e.match(E);if(i){var s=i[1],n=i[3],o=i[4],a=i[5],l=i[6];s&&(t.fontStyle=s),n&&(t.fontWeight=isNaN(parseFloat(n))?n:parseFloat(n)),o&&(t.fontSize=r(o)),l&&(t.fontFamily=l),a&&(t.lineHeight="normal"===a?1:a)}},getGradientDefs:function(e){var t,i=p(e,["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"]),s=0,n={};for(s=i.length;s--;)(t=i[s]).getAttribute("xlink:href")&&b(e,t),n[t.getAttribute("id")]=t;return n},parseAttributes:function(e,s,o){if(e){var a,g,p,f={};"undefined"===typeof o&&(o=e.getAttribute("svgUid")),e.parentNode&&t.svgValidParentsRegEx.test(e.parentNode.nodeName)&&(f=t.parseAttributes(e.parentNode,s,o));var _=s.reduce((function(t,i){return(a=e.getAttribute(i))&&(t[i]=a),t}),{}),v=i(function(e,i){var s={};for(var n in t.cssRules[i])if(m(e,n.split(" ")))for(var r in t.cssRules[i][n])s[r]=t.cssRules[i][n][r];return s}(e,o),t.parseStyleAttribute(e));_=i(_,v),v[h]&&e.setAttribute(h,v[h]),g=p=f.fontSize||t.Text.DEFAULT_SVG_FONT_SIZE,_[c]&&(_[c]=g=r(_[c],p));var C,b,E={};for(var S in _)b=u(C=d(S),_[S],f,g),E[C]=b;E&&E.font&&t.parseFontDeclaration(E.font,E);var y=i(f,E);return t.svgValidParentsRegEx.test(e.nodeName)?y:function(e){for(var i in l)if("undefined"!==typeof e[l[i]]&&""!==e[i]){if("undefined"===typeof e[i]){if(!t.Object.prototype[i])continue;e[i]=t.Object.prototype[i]}if(0!==e[i].indexOf("url(")){var s=new t.Color(e[i]);e[i]=s.setAlpha(n(s.getAlpha()*e[l[i]],2)).toRgba()}}return e}(y)}},parseElements:function(e,i,s,n,r){new t.ElementsParser(e,i,s,n,r).parse()},parseStyleAttribute:function(e){var t={},i=e.getAttribute("style");return i?("string"===typeof i?function(e,t){var i,s;e.replace(/;\s*$/,"").split(";").forEach((function(e){var n=e.split(":");i=n[0].trim().toLowerCase(),s=n[1].trim(),t[i]=s}))}(i,t):function(e,t){var i,s;for(var n in e)"undefined"!==typeof e[n]&&(i=n.toLowerCase(),s=e[n],t[i]=s)}(i,t),t):t},parsePointsAttribute:function(e){if(!e)return null;var t,i,s=[];for(t=0,i=(e=(e=e.replace(/,/g," ").trim()).split(/\s+/)).length;t<i;t+=2)s.push({x:parseFloat(e[t]),y:parseFloat(e[t+1])});return s},getCSSRules:function(e){var i,s,n=e.getElementsByTagName("style"),r={};for(i=0,s=n.length;i<s;i++){var o=n[i].textContent;""!==(o=o.replace(/\/\*[\s\S]*?\*\//g,"")).trim()&&o.split("}").filter((function(e){return e.trim()})).forEach((function(e){var n=e.split("{"),o={},a=n[1].trim().split(";").filter((function(e){return e.trim()}));for(i=0,s=a.length;i<s;i++){var l=a[i].split(":"),c=l[0].trim(),h=l[1].trim();o[c]=h}(e=n[0].trim()).split(",").forEach((function(e){""!==(e=e.replace(/^svg/i,"").trim())&&(r[e]?t.util.object.extend(r[e],o):r[e]=t.util.object.clone(o))}))}))}return r},loadSVGFromURL:function(e,i,s,n){e=e.replace(/^\n\s*/,"").trim(),new t.util.request(e,{method:"get",onComplete:function(e){var r=e.responseXML;if(!r||!r.documentElement)return i&&i(null),!1;t.parseSVGDocument(r.documentElement,(function(e,t,s,n){i&&i(e,t,s,n)}),s,n)}})},loadSVGFromString:function(e,i,s,n){var r=(new t.window.DOMParser).parseFromString(e.trim(),"text/xml");t.parseSVGDocument(r.documentElement,(function(e,t,s,n){i(e,t,s,n)}),s,n)}})}(t),n.ElementsParser=function(e,t,i,s,n,r){this.elements=e,this.callback=t,this.options=i,this.reviver=s,this.svgUid=i&&i.svgUid||0,this.parsingOptions=n,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=r},(s=n.ElementsParser.prototype).parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},s.createObjects=function(){var e=this;this.elements.forEach((function(t,i){t.setAttribute("svgUid",e.svgUid),e.createObject(t,i)}))},s.findTag=function(e){return n[n.util.string.capitalize(e.tagName.replace("svg:",""))]},s.createObject=function(e,t){var i=this.findTag(e);if(i&&i.fromElement)try{i.fromElement(e,this.createCallback(t,e),this.options)}catch(s){n.log(s)}else this.checkIfDone()},s.createCallback=function(e,t){var i=this;return function(s){var r;i.resolveGradient(s,t,"fill"),i.resolveGradient(s,t,"stroke"),s instanceof n.Image&&s._originalElement&&(r=s.parsePreserveAspectRatioAttribute(t)),s._removeTransformMatrix(r),i.resolveClipPath(s,t),i.reviver&&i.reviver(t,s),i.instances[e]=s,i.checkIfDone()}},s.extractPropertyDefinition=function(e,t,i){var s=e[t],r=this.regexUrl;if(r.test(s)){r.lastIndex=0;var o=r.exec(s)[1];return r.lastIndex=0,n[i][this.svgUid][o]}},s.resolveGradient=function(e,t,i){var s=this.extractPropertyDefinition(e,i,"gradientDefs");if(s){var r=t.getAttribute(i+"-opacity"),o=n.Gradient.fromElement(s,e,r,this.options);e.set(i,o)}},s.createClipPathCallback=function(e,t){return function(e){e._removeTransformMatrix(),e.fillRule=e.clipRule,t.push(e)}},s.resolveClipPath=function(e,t){var i,s,r,o,a=this.extractPropertyDefinition(e,"clipPath","clipPaths");if(a){r=[],s=n.util.invertTransform(e.calcTransformMatrix());for(var l=a[0].parentNode,c=t;c.parentNode&&c.getAttribute("clip-path")!==e.clipPath;)c=c.parentNode;c.parentNode.appendChild(l);for(var h=0;h<a.length;h++)i=a[h],this.findTag(i).fromElement(i,this.createClipPathCallback(e,r),this.options);a=1===r.length?r[0]:new n.Group(r),o=n.util.multiplyTransformMatrices(s,a.calcTransformMatrix()),a.clipPath&&this.resolveClipPath(a,c);var d=n.util.qrDecompose(o);a.flipX=!1,a.flipY=!1,a.set("scaleX",d.scaleX),a.set("scaleY",d.scaleY),a.angle=d.angle,a.skewX=d.skewX,a.skewY=0,a.setPositionByOrigin({x:d.translateX,y:d.translateY},"center","center"),e.clipPath=a}else delete e.clipPath},s.checkIfDone=function(){0===--this.numElements&&(this.instances=this.instances.filter((function(e){return null!=e})),this.callback(this.instances,this.elements))},function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e,t){this.x=e,this.y=t}t.Point?t.warn("fabric.Point is already defined"):(t.Point=i,i.prototype={type:"point",constructor:i,add:function(e){return new i(this.x+e.x,this.y+e.y)},addEquals:function(e){return this.x+=e.x,this.y+=e.y,this},scalarAdd:function(e){return new i(this.x+e,this.y+e)},scalarAddEquals:function(e){return this.x+=e,this.y+=e,this},subtract:function(e){return new i(this.x-e.x,this.y-e.y)},subtractEquals:function(e){return this.x-=e.x,this.y-=e.y,this},scalarSubtract:function(e){return new i(this.x-e,this.y-e)},scalarSubtractEquals:function(e){return this.x-=e,this.y-=e,this},multiply:function(e){return new i(this.x*e,this.y*e)},multiplyEquals:function(e){return this.x*=e,this.y*=e,this},divide:function(e){return new i(this.x/e,this.y/e)},divideEquals:function(e){return this.x/=e,this.y/=e,this},eq:function(e){return this.x===e.x&&this.y===e.y},lt:function(e){return this.x<e.x&&this.y<e.y},lte:function(e){return this.x<=e.x&&this.y<=e.y},gt:function(e){return this.x>e.x&&this.y>e.y},gte:function(e){return this.x>=e.x&&this.y>=e.y},lerp:function(e,t){return"undefined"===typeof t&&(t=.5),t=Math.max(Math.min(1,t),0),new i(this.x+(e.x-this.x)*t,this.y+(e.y-this.y)*t)},distanceFrom:function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},midPointFrom:function(e){return this.lerp(e)},min:function(e){return new i(Math.min(this.x,e.x),Math.min(this.y,e.y))},max:function(e){return new i(Math.max(this.x,e.x),Math.max(this.y,e.y))},toString:function(){return this.x+","+this.y},setXY:function(e,t){return this.x=e,this.y=t,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setFromPoint:function(e){return this.x=e.x,this.y=e.y,this},swap:function(e){var t=this.x,i=this.y;this.x=e.x,this.y=e.y,e.x=t,e.y=i},clone:function(){return new i(this.x,this.y)}})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){this.status=e,this.points=[]}t.Intersection?t.warn("fabric.Intersection is already defined"):(t.Intersection=i,t.Intersection.prototype={constructor:i,appendPoint:function(e){return this.points.push(e),this},appendPoints:function(e){return this.points=this.points.concat(e),this}},t.Intersection.intersectLineLine=function(e,s,n,r){var o,a=(r.x-n.x)*(e.y-n.y)-(r.y-n.y)*(e.x-n.x),l=(s.x-e.x)*(e.y-n.y)-(s.y-e.y)*(e.x-n.x),c=(r.y-n.y)*(s.x-e.x)-(r.x-n.x)*(s.y-e.y);if(0!==c){var h=a/c,d=l/c;0<=h&&h<=1&&0<=d&&d<=1?(o=new i("Intersection")).appendPoint(new t.Point(e.x+h*(s.x-e.x),e.y+h*(s.y-e.y))):o=new i}else o=new i(0===a||0===l?"Coincident":"Parallel");return o},t.Intersection.intersectLinePolygon=function(e,t,s){var n,r,o,a,l=new i,c=s.length;for(a=0;a<c;a++)n=s[a],r=s[(a+1)%c],o=i.intersectLineLine(e,t,n,r),l.appendPoints(o.points);return l.points.length>0&&(l.status="Intersection"),l},t.Intersection.intersectPolygonPolygon=function(e,t){var s,n=new i,r=e.length;for(s=0;s<r;s++){var o=e[s],a=e[(s+1)%r],l=i.intersectLinePolygon(o,a,t);n.appendPoints(l.points)}return n.points.length>0&&(n.status="Intersection"),n},t.Intersection.intersectPolygonRectangle=function(e,s,n){var r=s.min(n),o=s.max(n),a=new t.Point(o.x,r.y),l=new t.Point(r.x,o.y),c=i.intersectLinePolygon(r,a,e),h=i.intersectLinePolygon(a,o,e),d=i.intersectLinePolygon(o,l,e),u=i.intersectLinePolygon(l,r,e),g=new i;return g.appendPoints(c.points),g.appendPoints(h.points),g.appendPoints(d.points),g.appendPoints(u.points),g.points.length>0&&(g.status="Intersection"),g})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){e?this._tryParsingColor(e):this.setSource([0,0,0,1])}function s(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}t.Color?t.warn("fabric.Color is already defined."):(t.Color=i,t.Color.prototype={_tryParsingColor:function(e){var t;e in i.colorNameMap&&(e=i.colorNameMap[e]),"transparent"===e&&(t=[255,255,255,0]),t||(t=i.sourceFromHex(e)),t||(t=i.sourceFromRgb(e)),t||(t=i.sourceFromHsl(e)),t||(t=[0,0,0,1]),t&&this.setSource(t)},_rgbToHsl:function(e,i,s){e/=255,i/=255,s/=255;var n,r,o,a=t.util.array.max([e,i,s]),l=t.util.array.min([e,i,s]);if(o=(a+l)/2,a===l)n=r=0;else{var c=a-l;switch(r=o>.5?c/(2-a-l):c/(a+l),a){case e:n=(i-s)/c+(i<s?6:0);break;case i:n=(s-e)/c+2;break;case s:n=(e-i)/c+4}n/=6}return[Math.round(360*n),Math.round(100*r),Math.round(100*o)]},getSource:function(){return this._source},setSource:function(e){this._source=e},toRgb:function(){var e=this.getSource();return"rgb("+e[0]+","+e[1]+","+e[2]+")"},toRgba:function(){var e=this.getSource();return"rgba("+e[0]+","+e[1]+","+e[2]+","+e[3]+")"},toHsl:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsl("+t[0]+","+t[1]+"%,"+t[2]+"%)"},toHsla:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsla("+t[0]+","+t[1]+"%,"+t[2]+"%,"+e[3]+")"},toHex:function(){var e,t,i,s=this.getSource();return e=1===(e=s[0].toString(16)).length?"0"+e:e,t=1===(t=s[1].toString(16)).length?"0"+t:t,i=1===(i=s[2].toString(16)).length?"0"+i:i,e.toUpperCase()+t.toUpperCase()+i.toUpperCase()},toHexa:function(){var e,t=this.getSource();return e=1===(e=(e=Math.round(255*t[3])).toString(16)).length?"0"+e:e,this.toHex()+e.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(e){var t=this.getSource();return t[3]=e,this.setSource(t),this},toGrayscale:function(){var e=this.getSource(),t=parseInt((.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),10),i=e[3];return this.setSource([t,t,t,i]),this},toBlackWhite:function(e){var t=this.getSource(),i=(.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),s=t[3];return e=e||127,i=Number(i)<Number(e)?0:255,this.setSource([i,i,i,s]),this},overlayWith:function(e){e instanceof i||(e=new i(e));var t,s=[],n=this.getAlpha(),r=this.getSource(),o=e.getSource();for(t=0;t<3;t++)s.push(Math.round(.5*r[t]+.5*o[t]));return s[3]=n,this.setSource(s),this}},t.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,t.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,t.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,t.Color.colorNameMap={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},t.Color.fromRgb=function(e){return i.fromSource(i.sourceFromRgb(e))},t.Color.sourceFromRgb=function(e){var t=e.match(i.reRGBa);if(t){var s=parseInt(t[1],10)/(/%$/.test(t[1])?100:1)*(/%$/.test(t[1])?255:1),n=parseInt(t[2],10)/(/%$/.test(t[2])?100:1)*(/%$/.test(t[2])?255:1),r=parseInt(t[3],10)/(/%$/.test(t[3])?100:1)*(/%$/.test(t[3])?255:1);return[parseInt(s,10),parseInt(n,10),parseInt(r,10),t[4]?parseFloat(t[4]):1]}},t.Color.fromRgba=i.fromRgb,t.Color.fromHsl=function(e){return i.fromSource(i.sourceFromHsl(e))},t.Color.sourceFromHsl=function(e){var t=e.match(i.reHSLa);if(t){var n,r,o,a=(parseFloat(t[1])%360+360)%360/360,l=parseFloat(t[2])/(/%$/.test(t[2])?100:1),c=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===l)n=r=o=c;else{var h=c<=.5?c*(l+1):c+l-c*l,d=2*c-h;n=s(d,h,a+1/3),r=s(d,h,a),o=s(d,h,a-1/3)}return[Math.round(255*n),Math.round(255*r),Math.round(255*o),t[4]?parseFloat(t[4]):1]}},t.Color.fromHsla=i.fromHsl,t.Color.fromHex=function(e){return i.fromSource(i.sourceFromHex(e))},t.Color.sourceFromHex=function(e){if(e.match(i.reHex)){var t=e.slice(e.indexOf("#")+1),s=3===t.length||4===t.length,n=8===t.length||4===t.length,r=s?t.charAt(0)+t.charAt(0):t.substring(0,2),o=s?t.charAt(1)+t.charAt(1):t.substring(2,4),a=s?t.charAt(2)+t.charAt(2):t.substring(4,6),l=n?s?t.charAt(3)+t.charAt(3):t.substring(6,8):"FF";return[parseInt(r,16),parseInt(o,16),parseInt(a,16),parseFloat((parseInt(l,16)/255).toFixed(2))]}},t.Color.fromSource=function(e){var t=new i;return t.setSource(e),t})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=["e","se","s","sw","w","nw","n","ne","e"],s=["ns","nesw","ew","nwse"],n={},r="left",o="top",a="right",l="bottom",c="center",h={top:l,bottom:o,left:a,right:r,center:c},d=t.util.radiansToDegrees,u=Math.sign||function(e){return(e>0)-(e<0)||+e};function g(e,t){var i=e.angle+d(Math.atan2(t.y,t.x))+360;return Math.round(i%360/45)}function p(e,i){var s=i.transform.target,n=s.canvas,r=t.util.object.clone(i);r.target=s,n&&n.fire("object:"+e,r),s.fire(e,i)}function m(e,t){var i=t.canvas,s=e[i.uniScaleKey];return i.uniformScaling&&!s||!i.uniformScaling&&s}function f(e){return e.originX===c&&e.originY===c}function _(e,t,i){var s=e.lockScalingX,n=e.lockScalingY;return!(!s||!n)||(!(t||!s&&!n||!i)||(!(!s||"x"!==t)||!(!n||"y"!==t)))}function v(e,t,i,s){return{e:e,transform:t,pointer:{x:i,y:s}}}function C(e){return function(t,i,s,n){var r=i.target,o=r.getCenterPoint(),a=r.translateToOriginPoint(o,i.originX,i.originY),l=e(t,i,s,n);return r.setPositionByOrigin(a,i.originX,i.originY),l}}function b(e,t){return function(i,s,n,r){var o=t(i,s,n,r);return o&&p(e,v(i,s,n,r)),o}}function E(e,i,s,n,r){var o=e.target,a=o.controls[e.corner],l=o.canvas.getZoom(),c=o.padding/l,h=o.toLocalPoint(new t.Point(n,r),i,s);return h.x>=c&&(h.x-=c),h.x<=-c&&(h.x+=c),h.y>=c&&(h.y-=c),h.y<=c&&(h.y+=c),h.x-=a.offsetX,h.y-=a.offsetY,h}function S(e){return e.flipX!==e.flipY}function y(e,t,i,s,n){if(0!==e[t]){var r=n/e._getTransformedDimensions()[s]*e[i];e.set(i,r)}}function w(e,t,i,s){var n,c=t.target,h=c._getTransformedDimensions(0,c.skewY),u=E(t,t.originX,t.originY,i,s),g=Math.abs(2*u.x)-h.x,p=c.skewX;g<2?n=0:(n=d(Math.atan2(g/c.scaleX,h.y/c.scaleY)),t.originX===r&&t.originY===l&&(n=-n),t.originX===a&&t.originY===o&&(n=-n),S(c)&&(n=-n));var m=p!==n;if(m){var f=c._getTransformedDimensions().y;c.set("skewX",n),y(c,"skewY","scaleY","y",f)}return m}function L(e,t,i,s){var n,c=t.target,h=c._getTransformedDimensions(c.skewX,0),u=E(t,t.originX,t.originY,i,s),g=Math.abs(2*u.y)-h.y,p=c.skewY;g<2?n=0:(n=d(Math.atan2(g/c.scaleY,h.x/c.scaleX)),t.originX===r&&t.originY===l&&(n=-n),t.originX===a&&t.originY===o&&(n=-n),S(c)&&(n=-n));var m=p!==n;if(m){var f=c._getTransformedDimensions().x;c.set("skewY",n),y(c,"skewX","scaleX","x",f)}return m}function R(e,t,i,s,n){n=n||{};var r,o,a,l,c,d,g=t.target,p=g.lockScalingX,v=g.lockScalingY,C=n.by,b=m(e,g),S=_(g,C,b),y=t.gestureScale;if(S)return!1;if(y)o=t.scaleX*y,a=t.scaleY*y;else{if(r=E(t,t.originX,t.originY,i,s),c="y"!==C?u(r.x):1,d="x"!==C?u(r.y):1,t.signX||(t.signX=c),t.signY||(t.signY=d),g.lockScalingFlip&&(t.signX!==c||t.signY!==d))return!1;if(l=g._getTransformedDimensions(),b&&!C){var w=Math.abs(r.x)+Math.abs(r.y),L=t.original,R=w/(Math.abs(l.x*L.scaleX/g.scaleX)+Math.abs(l.y*L.scaleY/g.scaleY));o=L.scaleX*R,a=L.scaleY*R}else o=Math.abs(r.x*g.scaleX/l.x),a=Math.abs(r.y*g.scaleY/l.y);f(t)&&(o*=2,a*=2),t.signX!==c&&"y"!==C&&(t.originX=h[t.originX],o*=-1,t.signX=c),t.signY!==d&&"x"!==C&&(t.originY=h[t.originY],a*=-1,t.signY=d)}var T=g.scaleX,x=g.scaleY;return C?("x"===C&&g.set("scaleX",o),"y"===C&&g.set("scaleY",a)):(!p&&g.set("scaleX",o),!v&&g.set("scaleY",a)),T!==g.scaleX||x!==g.scaleY}n.scaleCursorStyleHandler=function(e,t,s){var n=m(e,s),r="";if(0!==t.x&&0===t.y?r="x":0===t.x&&0!==t.y&&(r="y"),_(s,r,n))return"not-allowed";var o=g(s,t);return i[o]+"-resize"},n.skewCursorStyleHandler=function(e,t,i){var n="not-allowed";if(0!==t.x&&i.lockSkewingY)return n;if(0!==t.y&&i.lockSkewingX)return n;var r=g(i,t)%4;return s[r]+"-resize"},n.scaleSkewCursorStyleHandler=function(e,t,i){return e[i.canvas.altActionKey]?n.skewCursorStyleHandler(e,t,i):n.scaleCursorStyleHandler(e,t,i)},n.rotationWithSnapping=b("rotating",C((function(e,t,i,s){var n=t,r=n.target,o=r.translateToOriginPoint(r.getCenterPoint(),n.originX,n.originY);if(r.lockRotation)return!1;var a,l=Math.atan2(n.ey-o.y,n.ex-o.x),c=Math.atan2(s-o.y,i-o.x),h=d(c-l+n.theta);if(r.snapAngle>0){var u=r.snapAngle,g=r.snapThreshold||u,p=Math.ceil(h/u)*u,m=Math.floor(h/u)*u;Math.abs(h-m)<g?h=m:Math.abs(h-p)<g&&(h=p)}return h<0&&(h=360+h),h%=360,a=r.angle!==h,r.angle=h,a}))),n.scalingEqually=b("scaling",C((function(e,t,i,s){return R(e,t,i,s)}))),n.scalingX=b("scaling",C((function(e,t,i,s){return R(e,t,i,s,{by:"x"})}))),n.scalingY=b("scaling",C((function(e,t,i,s){return R(e,t,i,s,{by:"y"})}))),n.scalingYOrSkewingX=function(e,t,i,s){return e[t.target.canvas.altActionKey]?n.skewHandlerX(e,t,i,s):n.scalingY(e,t,i,s)},n.scalingXOrSkewingY=function(e,t,i,s){return e[t.target.canvas.altActionKey]?n.skewHandlerY(e,t,i,s):n.scalingX(e,t,i,s)},n.changeWidth=b("resizing",C((function(e,t,i,s){var n=t.target,r=E(t,t.originX,t.originY,i,s),o=n.strokeWidth/(n.strokeUniform?n.scaleX:1),a=f(t)?2:1,l=n.width,c=Math.abs(r.x*a/n.scaleX)-o;return n.set("width",Math.max(c,0)),l!==c}))),n.skewHandlerX=function(e,t,i,s){var n,l=t.target,h=l.skewX,d=t.originY;return!l.lockSkewingX&&(0===h?n=E(t,c,c,i,s).x>0?r:a:(h>0&&(n=d===o?r:a),h<0&&(n=d===o?a:r),S(l)&&(n=n===r?a:r)),t.originX=n,b("skewing",C(w))(e,t,i,s))},n.skewHandlerY=function(e,t,i,s){var n,a=t.target,h=a.skewY,d=t.originX;return!a.lockSkewingY&&(0===h?n=E(t,c,c,i,s).y>0?o:l:(h>0&&(n=d===r?o:l),h<0&&(n=d===r?l:o),S(a)&&(n=n===o?l:o)),t.originY=n,b("skewing",C(L))(e,t,i,s))},n.dragHandler=function(e,t,i,s){var n=t.target,r=i-t.offsetX,o=s-t.offsetY,a=!n.get("lockMovementX")&&n.left!==r,l=!n.get("lockMovementY")&&n.top!==o;return a&&n.set("left",r),l&&n.set("top",o),(a||l)&&p("moving",v(e,t,i,s)),a||l},n.scaleOrSkewActionName=function(e,t,i){var s=e[i.canvas.altActionKey];return 0===t.x?s?"skewX":"scaleY":0===t.y?s?"skewY":"scaleX":void 0},n.rotationStyleHandler=function(e,t,i){return i.lockRotation?"not-allowed":t.cursorStyle},n.fireEvent=p,n.wrapWithFixedAnchor=C,n.wrapWithFireEvent=b,n.getLocalPoint=E,t.controlsUtils=n}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians,s=t.controlsUtils;s.renderCircleControl=function(e,t,i,s,n){s=s||{};var r,o=this.sizeX||s.cornerSize||n.cornerSize,a=this.sizeY||s.cornerSize||n.cornerSize,l="undefined"!==typeof s.transparentCorners?s.transparentCorners:n.transparentCorners,c=l?"stroke":"fill",h=!l&&(s.cornerStrokeColor||n.cornerStrokeColor),d=t,u=i;e.save(),e.fillStyle=s.cornerColor||n.cornerColor,e.strokeStyle=s.cornerStrokeColor||n.cornerStrokeColor,o>a?(r=o,e.scale(1,a/o),u=i*o/a):a>o?(r=a,e.scale(o/a,1),d=t*a/o):r=o,e.lineWidth=1,e.beginPath(),e.arc(d,u,r/2,0,2*Math.PI,!1),e[c](),h&&e.stroke(),e.restore()},s.renderSquareControl=function(e,t,s,n,r){n=n||{};var o=this.sizeX||n.cornerSize||r.cornerSize,a=this.sizeY||n.cornerSize||r.cornerSize,l="undefined"!==typeof n.transparentCorners?n.transparentCorners:r.transparentCorners,c=l?"stroke":"fill",h=!l&&(n.cornerStrokeColor||r.cornerStrokeColor),d=o/2,u=a/2;e.save(),e.fillStyle=n.cornerColor||r.cornerColor,e.strokeStyle=n.cornerStrokeColor||r.cornerStrokeColor,e.lineWidth=1,e.translate(t,s),e.rotate(i(r.angle)),e[c+"Rect"](-d,-u,o,a),h&&e.strokeRect(-d,-u,o,a),e.restore()}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Control=function(e){for(var t in e)this[t]=e[t]},t.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(e,t){return t.cursorStyle},getActionName:function(e,t){return t.actionName},getVisibility:function(e,t){var i=e._controlsVisibility;return i&&"undefined"!==typeof i[t]?i[t]:this.visible},setVisibility:function(e){this.visible=e},positionHandler:function(e,i){return t.util.transformPoint({x:this.x*e.x+this.offsetX,y:this.y*e.y+this.offsetY},i)},calcCornerCoords:function(e,i,s,n,r){var o,a,l,c,h=r?this.touchSizeX:this.sizeX,d=r?this.touchSizeY:this.sizeY;if(h&&d&&h!==d){var u=Math.atan2(d,h),g=Math.sqrt(h*h+d*d)/2,p=u-t.util.degreesToRadians(e),m=Math.PI/2-u-t.util.degreesToRadians(e);o=g*t.util.cos(p),a=g*t.util.sin(p),l=g*t.util.cos(m),c=g*t.util.sin(m)}else{g=.7071067812*(h&&d?h:i);p=t.util.degreesToRadians(45-e);o=l=g*t.util.cos(p),a=c=g*t.util.sin(p)}return{tl:{x:s-c,y:n-l},tr:{x:s+o,y:n-a},bl:{x:s-o,y:n+a},br:{x:s+c,y:n+l}}},render:function(e,i,s,n,r){if("circle"===((n=n||{}).cornerStyle||r.cornerStyle))t.controlsUtils.renderCircleControl.call(this,e,i,s,n,r);else t.controlsUtils.renderSquareControl.call(this,e,i,s,n,r)}}}(t),function(){function e(e,t){var i,s,r,o,a=e.getAttribute("style"),l=e.getAttribute("offset")||0;if(l=(l=parseFloat(l)/(/%$/.test(l)?100:1))<0?0:l>1?1:l,a){var c=a.split(/\s*;\s*/);for(""===c[c.length-1]&&c.pop(),o=c.length;o--;){var h=c[o].split(/\s*:\s*/),d=h[0].trim(),u=h[1].trim();"stop-color"===d?i=u:"stop-opacity"===d&&(r=u)}}return i||(i=e.getAttribute("stop-color")||"rgb(0,0,0)"),r||(r=e.getAttribute("stop-opacity")),s=(i=new n.Color(i)).getAlpha(),r=isNaN(parseFloat(r))?1:parseFloat(r),r*=s*t,{offset:l,color:i.toRgb(),opacity:r}}var t=n.util.object.clone;n.Gradient=n.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(e){e||(e={}),e.coords||(e.coords={});var t,i=this;Object.keys(e).forEach((function(t){i[t]=e[t]})),this.id?this.id+="_"+n.Object.__uid++:this.id=n.Object.__uid++,t={x1:e.coords.x1||0,y1:e.coords.y1||0,x2:e.coords.x2||0,y2:e.coords.y2||0},"radial"===this.type&&(t.r1=e.coords.r1||0,t.r2=e.coords.r2||0),this.coords=t,this.colorStops=e.colorStops.slice()},addColorStop:function(e){for(var t in e){var i=new n.Color(e[t]);this.colorStops.push({offset:parseFloat(t),color:i.toRgb(),opacity:i.getAlpha()})}return this},toObject:function(e){var t={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return n.util.populateWithProperties(this,t,e),t},toSVG:function(e,i){var s,r,o,a,l=t(this.coords,!0),c=(i=i||{},t(this.colorStops,!0)),h=l.r1>l.r2,d=this.gradientTransform?this.gradientTransform.concat():n.iMatrix.concat(),u=-this.offsetX,g=-this.offsetY,p=!!i.additionalTransform,m="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox";if(c.sort((function(e,t){return e.offset-t.offset})),"objectBoundingBox"===m?(u/=e.width,g/=e.height):(u+=e.width/2,g+=e.height/2),"path"===e.type&&"percentage"!==this.gradientUnits&&(u-=e.pathOffset.x,g-=e.pathOffset.y),d[4]-=u,d[5]-=g,a='id="SVGID_'+this.id+'" gradientUnits="'+m+'"',a+=' gradientTransform="'+(p?i.additionalTransform+" ":"")+n.util.matrixToSVG(d)+'" ',"linear"===this.type?o=["<linearGradient ",a,' x1="',l.x1,'" y1="',l.y1,'" x2="',l.x2,'" y2="',l.y2,'">\n']:"radial"===this.type&&(o=["<radialGradient ",a,' cx="',h?l.x1:l.x2,'" cy="',h?l.y1:l.y2,'" r="',h?l.r1:l.r2,'" fx="',h?l.x2:l.x1,'" fy="',h?l.y2:l.y1,'">\n']),"radial"===this.type){if(h)for((c=c.concat()).reverse(),s=0,r=c.length;s<r;s++)c[s].offset=1-c[s].offset;var f=Math.min(l.r1,l.r2);if(f>0){var _=f/Math.max(l.r1,l.r2);for(s=0,r=c.length;s<r;s++)c[s].offset+=_*(1-c[s].offset)}}for(s=0,r=c.length;s<r;s++){var v=c[s];o.push("<stop ",'offset="',100*v.offset+"%",'" style="stop-color:',v.color,"undefined"!==typeof v.opacity?";stop-opacity: "+v.opacity:";",'"/>\n')}return o.push("linear"===this.type?"</linearGradient>\n":"</radialGradient>\n"),o.join("")},toLive:function(e){var t,i,s,r=n.util.object.clone(this.coords);if(this.type){for("linear"===this.type?t=e.createLinearGradient(r.x1,r.y1,r.x2,r.y2):"radial"===this.type&&(t=e.createRadialGradient(r.x1,r.y1,r.r1,r.x2,r.y2,r.r2)),i=0,s=this.colorStops.length;i<s;i++){var o=this.colorStops[i].color,a=this.colorStops[i].opacity,l=this.colorStops[i].offset;"undefined"!==typeof a&&(o=new n.Color(o).setAlpha(a).toRgba()),t.addColorStop(l,o)}return t}}}),n.util.object.extend(n.Gradient,{fromElement:function(t,i,s,r){var o=parseFloat(s)/(/%$/.test(s)?100:1);o=o<0?0:o>1?1:o,isNaN(o)&&(o=1);var a,l,c,h,d=t.getElementsByTagName("stop"),u="userSpaceOnUse"===t.getAttribute("gradientUnits")?"pixels":"percentage",g=t.getAttribute("gradientTransform")||"",p=[],m=0,f=0;for("linearGradient"===t.nodeName||"LINEARGRADIENT"===t.nodeName?(a="linear",l=function(e){return{x1:e.getAttribute("x1")||0,y1:e.getAttribute("y1")||0,x2:e.getAttribute("x2")||"100%",y2:e.getAttribute("y2")||0}}(t)):(a="radial",l=function(e){return{x1:e.getAttribute("fx")||e.getAttribute("cx")||"50%",y1:e.getAttribute("fy")||e.getAttribute("cy")||"50%",r1:0,x2:e.getAttribute("cx")||"50%",y2:e.getAttribute("cy")||"50%",r2:e.getAttribute("r")||"50%"}}(t)),c=d.length;c--;)p.push(e(d[c],o));return h=n.parseTransformAttribute(g),function(e,t,i,s){var n,r;Object.keys(t).forEach((function(e){"Infinity"===(n=t[e])?r=1:"-Infinity"===n?r=0:(r=parseFloat(t[e],10),"string"===typeof n&&/^(\d+\.\d+)%|(\d+)%$/.test(n)&&(r*=.01,"pixels"===s&&("x1"!==e&&"x2"!==e&&"r2"!==e||(r*=i.viewBoxWidth||i.width),"y1"!==e&&"y2"!==e||(r*=i.viewBoxHeight||i.height)))),t[e]=r}))}(0,l,r,u),"pixels"===u&&(m=-i.left,f=-i.top),new n.Gradient({id:t.getAttribute("id"),type:a,coords:l,colorStops:p,gradientUnits:u,gradientTransform:h,offsetX:m,offsetY:f})}})}(),function(){"use strict";var e=n.util.toFixed;n.Pattern=n.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(e,t){if(e||(e={}),this.id=n.Object.__uid++,this.setOptions(e),!e.source||e.source&&"string"!==typeof e.source)t&&t(this);else{var i=this;this.source=n.util.createImage(),n.util.loadImage(e.source,(function(e,s){i.source=e,t&&t(i,s)}),null,this.crossOrigin)}},toObject:function(t){var i,s,r=n.Object.NUM_FRACTION_DIGITS;return"string"===typeof this.source.src?i=this.source.src:"object"===typeof this.source&&this.source.toDataURL&&(i=this.source.toDataURL()),s={type:"pattern",source:i,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:e(this.offsetX,r),offsetY:e(this.offsetY,r),patternTransform:this.patternTransform?this.patternTransform.concat():null},n.util.populateWithProperties(this,s,t),s},toSVG:function(e){var t="function"===typeof this.source?this.source():this.source,i=t.width/e.width,s=t.height/e.height,n=this.offsetX/e.width,r=this.offsetY/e.height,o="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(s=1,r&&(s+=Math.abs(r))),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(i=1,n&&(i+=Math.abs(n))),t.src?o=t.src:t.toDataURL&&(o=t.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+n+'" y="'+r+'" width="'+i+'" height="'+s+'">\n<image x="0" y="0" width="'+t.width+'" height="'+t.height+'" xlink:href="'+o+'"></image>\n</pattern>\n'},setOptions:function(e){for(var t in e)this[t]=e[t]},toLive:function(e){var t=this.source;if(!t)return"";if("undefined"!==typeof t.src){if(!t.complete)return"";if(0===t.naturalWidth||0===t.naturalHeight)return""}return e.createPattern(t,this.repeat)}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.toFixed;t.Shadow?t.warn("fabric.Shadow is already defined."):(t.Shadow=t.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(e){for(var i in"string"===typeof e&&(e=this._parseShadow(e)),e)this[i]=e[i];this.id=t.Object.__uid++},_parseShadow:function(e){var i=e.trim(),s=t.Shadow.reOffsetsAndBlur.exec(i)||[];return{color:(i.replace(t.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)").trim(),offsetX:parseFloat(s[1],10)||0,offsetY:parseFloat(s[2],10)||0,blur:parseFloat(s[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(e){var s=40,n=40,r=t.Object.NUM_FRACTION_DIGITS,o=t.util.rotateVector({x:this.offsetX,y:this.offsetY},t.util.degreesToRadians(-e.angle)),a=new t.Color(this.color);return e.width&&e.height&&(s=100*i((Math.abs(o.x)+this.blur)/e.width,r)+20,n=100*i((Math.abs(o.y)+this.blur)/e.height,r)+20),e.flipX&&(o.x*=-1),e.flipY&&(o.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+n+'%" height="'+(100+2*n)+'%" x="-'+s+'%" width="'+(100+2*s)+'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="'+i(this.blur?this.blur/2:0,r)+'"></feGaussianBlur>\n\t<feOffset dx="'+i(o.x,r)+'" dy="'+i(o.y,r)+'" result="oBlur" ></feOffset>\n\t<feFlood flood-color="'+a.toRgb()+'" flood-opacity="'+a.getAlpha()+'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode></feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"></feMergeNode>\n\t</feMerge>\n</filter>\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var e={},i=t.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach((function(t){this[t]!==i[t]&&(e[t]=this[t])}),this),e}}),t.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/)}(t),function(){"use strict";if(n.StaticCanvas)n.warn("fabric.StaticCanvas is already defined.");else{var e=n.util.object.extend,t=n.util.getElementOffset,i=n.util.removeFromArray,s=n.util.toFixed,r=n.util.transformPoint,o=n.util.invertTransform,a=n.util.getNodeCanvas,l=n.util.createCanvasElement,c=new Error("Could not initialize `canvas` element");n.StaticCanvas=n.util.createClass(n.CommonMethods,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:n.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(e,t){var i=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(e),this._initOptions(t),this.interactive||this._initRetinaScaling(),t.overlayImage&&this.setOverlayImage(t.overlayImage,i),t.backgroundImage&&this.setBackgroundImage(t.backgroundImage,i),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor,i),t.overlayColor&&this.setOverlayColor(t.overlayColor,i),this.calcOffset()},_isRetinaScaling:function(){return n.devicePixelRatio>1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?Math.max(1,n.devicePixelRatio):1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var e=n.devicePixelRatio;this.__initRetinaScaling(e,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(e,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(e,t,i){t.setAttribute("width",this.width*e),t.setAttribute("height",this.height*e),i.scale(e,e)},calcOffset:function(){return this._offset=t(this.lowerCanvasEl),this},setOverlayImage:function(e,t,i){return this.__setBgOverlayImage("overlayImage",e,t,i)},setBackgroundImage:function(e,t,i){return this.__setBgOverlayImage("backgroundImage",e,t,i)},setOverlayColor:function(e,t){return this.__setBgOverlayColor("overlayColor",e,t)},setBackgroundColor:function(e,t){return this.__setBgOverlayColor("backgroundColor",e,t)},__setBgOverlayImage:function(e,t,i,s){return"string"===typeof t?n.util.loadImage(t,(function(t,r){if(t){var o=new n.Image(t,s);this[e]=o,o.canvas=this}i&&i(t,r)}),this,s&&s.crossOrigin):(s&&t.setOptions(s),this[e]=t,t&&(t.canvas=this),i&&i(t,!1)),this},__setBgOverlayColor:function(e,t,i){return this[e]=t,this._initGradient(t,e),this._initPattern(t,e,i),this},_createCanvasElement:function(){var e=l();if(!e)throw c;if(e.style||(e.style={}),"undefined"===typeof e.getContext)throw c;return e},_initOptions:function(e){var t=this.lowerCanvasEl;this._setOptions(e),this.width=this.width||parseInt(t.width,10)||0,this.height=this.height||parseInt(t.height,10)||0,this.lowerCanvasEl.style&&(t.width=this.width,t.height=this.height,t.style.width=this.width+"px",t.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(e){e&&e.getContext?this.lowerCanvasEl=e:this.lowerCanvasEl=n.util.getById(e)||this._createCanvasElement(),n.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(e,t){return this.setDimensions({width:e},t)},setHeight:function(e,t){return this.setDimensions({height:e},t)},setDimensions:function(e,t){var i;for(var s in t=t||{},e)i=e[s],t.cssOnly||(this._setBackstoreDimension(s,e[s]),i+="px",this.hasLostContext=!0),t.backstoreOnly||this._setCssDimension(s,i);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),t.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(e,t){return this.lowerCanvasEl[e]=t,this.upperCanvasEl&&(this.upperCanvasEl[e]=t),this.cacheCanvasEl&&(this.cacheCanvasEl[e]=t),this[e]=t,this},_setCssDimension:function(e,t){return this.lowerCanvasEl.style[e]=t,this.upperCanvasEl&&(this.upperCanvasEl.style[e]=t),this.wrapperEl&&(this.wrapperEl.style[e]=t),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(e){var t,i,s,n=this._activeObject,r=this.backgroundImage,o=this.overlayImage;for(this.viewportTransform=e,i=0,s=this._objects.length;i<s;i++)(t=this._objects[i]).group||t.setCoords(!0);return n&&n.setCoords(),r&&r.setCoords(!0),o&&o.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(e,t){var i=e,s=this.viewportTransform.slice(0);e=r(e,o(this.viewportTransform)),s[0]=t,s[3]=t;var n=r(e,s);return s[4]+=i.x-n.x,s[5]+=i.y-n.y,this.setViewportTransform(s)},setZoom:function(e){return this.zoomToPoint(new n.Point(0,0),e),this},absolutePan:function(e){var t=this.viewportTransform.slice(0);return t[4]=-e.x,t[5]=-e.y,this.setViewportTransform(t)},relativePan:function(e){return this.absolutePan(new n.Point(-e.x-this.viewportTransform[4],-e.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(e){this.stateful&&e.setupState(),e._set("canvas",this),e.setCoords(),this.fire("object:added",{target:e}),e.fire("added")},_onObjectRemoved:function(e){this.fire("object:removed",{target:e}),e.fire("removed"),delete e.canvas},clearContext:function(e){return e.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var e=this.contextContainer;return this.renderCanvas(e,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=n.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var e={},t=this.width,i=this.height,s=o(this.viewportTransform);return e.tl=r({x:0,y:0},s),e.br=r({x:t,y:i},s),e.tr=new n.Point(e.br.x,e.tl.y),e.bl=new n.Point(e.tl.x,e.br.y),this.vptCoords=e,e},cancelRequestedRender:function(){this.isRendering&&(n.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(e,t){var i=this.viewportTransform,s=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(e),n.util.setImageSmoothing(e,this.imageSmoothingEnabled),this.fire("before:render",{ctx:e}),this._renderBackground(e),e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this._renderObjects(e,t),e.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),s&&(s.canvas=this,s.shouldCache(),s._transformDone=!0,s.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(e)),this._renderOverlay(e),this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),this.fire("after:render",{ctx:e})},drawClipPathOnCanvas:function(e){var t=this.viewportTransform,i=this.clipPath;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e.globalCompositeOperation="destination-in",i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},_renderObjects:function(e,t){var i,s;for(i=0,s=t.length;i<s;++i)t[i]&&t[i].render(e)},_renderBackgroundOrOverlay:function(e,t){var i=this[t+"Color"],s=this[t+"Image"],n=this.viewportTransform,r=this[t+"Vpt"];if(i||s){if(i){e.save(),e.beginPath(),e.moveTo(0,0),e.lineTo(this.width,0),e.lineTo(this.width,this.height),e.lineTo(0,this.height),e.closePath(),e.fillStyle=i.toLive?i.toLive(e,this):i,r&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),e.transform(1,0,0,1,i.offsetX||0,i.offsetY||0);var o=i.gradientTransform||i.patternTransform;o&&e.transform(o[0],o[1],o[2],o[3],o[4],o[5]),e.fill(),e.restore()}if(s){e.save();var a=this.skipOffscreen;this.skipOffscreen=r,r&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),s.render(e),this.skipOffscreen=a,e.restore()}}},_renderBackground:function(e){this._renderBackgroundOrOverlay(e,"background")},_renderOverlay:function(e){this._renderBackgroundOrOverlay(e,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},getCenterPoint:function(){return new n.Point(this.width/2,this.height/2)},centerObjectH:function(e){return this._centerObject(e,new n.Point(this.getCenterPoint().x,e.getCenterPoint().y))},centerObjectV:function(e){return this._centerObject(e,new n.Point(e.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(e){var t=this.getCenterPoint();return this._centerObject(e,t)},viewportCenterObject:function(e){var t=this.getVpCenter();return this._centerObject(e,t)},viewportCenterObjectH:function(e){var t=this.getVpCenter();return this._centerObject(e,new n.Point(t.x,e.getCenterPoint().y)),this},viewportCenterObjectV:function(e){var t=this.getVpCenter();return this._centerObject(e,new n.Point(e.getCenterPoint().x,t.y))},getVpCenter:function(){var e=this.getCenterPoint(),t=o(this.viewportTransform);return r(e,t)},_centerObject:function(e,t){return e.setPositionByOrigin(t,"center","center"),e.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(e){return this.toDatalessObject(e)},toObject:function(e){return this._toObjectMethod("toObject",e)},toDatalessObject:function(e){return this._toObjectMethod("toDatalessObject",e)},_toObjectMethod:function(t,i){var s=this.clipPath,r={version:n.version,objects:this._toObjects(t,i)};return s&&!s.excludeFromExport&&(r.clipPath=this._toObject(this.clipPath,t,i)),e(r,this.__serializeBgOverlay(t,i)),n.util.populateWithProperties(this,r,i),r},_toObjects:function(e,t){return this._objects.filter((function(e){return!e.excludeFromExport})).map((function(i){return this._toObject(i,e,t)}),this)},_toObject:function(e,t,i){var s;this.includeDefaultValues||(s=e.includeDefaultValues,e.includeDefaultValues=!1);var n=e[t](i);return this.includeDefaultValues||(e.includeDefaultValues=s),n},__serializeBgOverlay:function(e,t){var i={},s=this.backgroundImage,n=this.overlayImage,r=this.backgroundColor,o=this.overlayColor;return r&&r.toObject?r.excludeFromExport||(i.background=r.toObject(t)):r&&(i.background=r),o&&o.toObject?o.excludeFromExport||(i.overlay=o.toObject(t)):o&&(i.overlay=o),s&&!s.excludeFromExport&&(i.backgroundImage=this._toObject(s,e,t)),n&&!n.excludeFromExport&&(i.overlayImage=this._toObject(n,e,t)),i},svgViewportTransformation:!0,toSVG:function(e,t){e||(e={}),e.reviver=t;var i=[];return this._setSVGPreamble(i,e),this._setSVGHeader(i,e),this.clipPath&&i.push('<g clip-path="url(#'+this.clipPath.clipPathId+')" >\n'),this._setSVGBgOverlayColor(i,"background"),this._setSVGBgOverlayImage(i,"backgroundImage",t),this._setSVGObjects(i,t),this.clipPath&&i.push("</g>\n"),this._setSVGBgOverlayColor(i,"overlay"),this._setSVGBgOverlayImage(i,"overlayImage",t),i.push("</svg>"),i.join("")},_setSVGPreamble:function(e,t){t.suppressPreamble||e.push('<?xml version="1.0" encoding="',t.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')},_setSVGHeader:function(e,t){var i,r=t.width||this.width,o=t.height||this.height,a='viewBox="0 0 '+this.width+" "+this.height+'" ',l=n.Object.NUM_FRACTION_DIGITS;t.viewBox?a='viewBox="'+t.viewBox.x+" "+t.viewBox.y+" "+t.viewBox.width+" "+t.viewBox.height+'" ':this.svgViewportTransformation&&(i=this.viewportTransform,a='viewBox="'+s(-i[4]/i[0],l)+" "+s(-i[5]/i[3],l)+" "+s(this.width/i[0],l)+" "+s(this.height/i[3],l)+'" '),e.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',r,'" ','height="',o,'" ',a,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",n.version,"</desc>\n","<defs>\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(t),"</defs>\n")},createSVGClipPathMarkup:function(e){var t=this.clipPath;return t?(t.clipPathId="CLIPPATH_"+n.Object.__uid++,'<clipPath id="'+t.clipPathId+'" >\n'+this.clipPath.toClipPathSVG(e.reviver)+"</clipPath>\n"):""},createSVGRefElementsMarkup:function(){var e=this;return["background","overlay"].map((function(t){var i=e[t+"Color"];if(i&&i.toLive){var s=e[t+"Vpt"],r=e.viewportTransform,o={width:e.width/(s?r[0]:1),height:e.height/(s?r[3]:1)};return i.toSVG(o,{additionalTransform:s?n.util.matrixToSVG(r):""})}})).join("")},createSVGFontFacesMarkup:function(){var e,t,i,s,r,o,a,l,c="",h={},d=n.fontPaths,u=[];for(this._objects.forEach((function e(t){u.push(t),t._objects&&t._objects.forEach(e)})),a=0,l=u.length;a<l;a++)if(t=(e=u[a]).fontFamily,-1!==e.type.indexOf("text")&&!h[t]&&d[t]&&(h[t]=!0,e.styles))for(r in i=e.styles)for(o in s=i[r])!h[t=s[o].fontFamily]&&d[t]&&(h[t]=!0);for(var g in h)c+=["\t\t@font-face {\n","\t\t\tfont-family: '",g,"';\n","\t\t\tsrc: url('",d[g],"');\n","\t\t}\n"].join("");return c&&(c=['\t<style type="text/css">',"<![CDATA[\n",c,"]]>","</style>\n"].join("")),c},_setSVGObjects:function(e,t){var i,s,n,r=this._objects;for(s=0,n=r.length;s<n;s++)(i=r[s]).excludeFromExport||this._setSVGObject(e,i,t)},_setSVGObject:function(e,t,i){e.push(t.toSVG(i))},_setSVGBgOverlayImage:function(e,t,i){this[t]&&!this[t].excludeFromExport&&this[t].toSVG&&e.push(this[t].toSVG(i))},_setSVGBgOverlayColor:function(e,t){var i=this[t+"Color"],s=this.viewportTransform,r=this.width,o=this.height;if(i)if(i.toLive){var a=i.repeat,l=n.util.invertTransform(s),c=this[t+"Vpt"]?n.util.matrixToSVG(l):"";e.push('<rect transform="'+c+" translate(",r/2,",",o/2,')"',' x="',i.offsetX-r/2,'" y="',i.offsetY-o/2,'" ','width="',"repeat-y"===a||"no-repeat"===a?i.source.width:r,'" height="',"repeat-x"===a||"no-repeat"===a?i.source.height:o,'" fill="url(#SVGID_'+i.id+')"',"></rect>\n")}else e.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',i,'"',"></rect>\n")},sendToBack:function(e){if(!e)return this;var t,s,n,r=this._activeObject;if(e===r&&"activeSelection"===e.type)for(t=(n=r._objects).length;t--;)s=n[t],i(this._objects,s),this._objects.unshift(s);else i(this._objects,e),this._objects.unshift(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(e){if(!e)return this;var t,s,n,r=this._activeObject;if(e===r&&"activeSelection"===e.type)for(n=r._objects,t=0;t<n.length;t++)s=n[t],i(this._objects,s),this._objects.push(s);else i(this._objects,e),this._objects.push(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(e,t){if(!e)return this;var s,n,r,o,a,l=this._activeObject,c=0;if(e===l&&"activeSelection"===e.type)for(a=l._objects,s=0;s<a.length;s++)n=a[s],(r=this._objects.indexOf(n))>0+c&&(o=r-1,i(this._objects,n),this._objects.splice(o,0,n)),c++;else 0!==(r=this._objects.indexOf(e))&&(o=this._findNewLowerIndex(e,r,t),i(this._objects,e),this._objects.splice(o,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(e,t,i){var s,n;if(i)for(s=t,n=t-1;n>=0;--n){if(e.intersectsWithObject(this._objects[n])||e.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(e)){s=n;break}}else s=t-1;return s},bringForward:function(e,t){if(!e)return this;var s,n,r,o,a,l=this._activeObject,c=0;if(e===l&&"activeSelection"===e.type)for(s=(a=l._objects).length;s--;)n=a[s],(r=this._objects.indexOf(n))<this._objects.length-1-c&&(o=r+1,i(this._objects,n),this._objects.splice(o,0,n)),c++;else(r=this._objects.indexOf(e))!==this._objects.length-1&&(o=this._findNewUpperIndex(e,r,t),i(this._objects,e),this._objects.splice(o,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(e,t,i){var s,n,r;if(i)for(s=t,n=t+1,r=this._objects.length;n<r;++n){if(e.intersectsWithObject(this._objects[n])||e.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(e)){s=n;break}}else s=t+1;return s},moveTo:function(e,t){return i(this._objects,e),this._objects.splice(t,0,e),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(n.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),n.util.setStyle(this.lowerCanvasEl,this._originalCanvasStyle),delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),n.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),e(n.StaticCanvas.prototype,n.Observable),e(n.StaticCanvas.prototype,n.Collection),e(n.StaticCanvas.prototype,n.DataURLExporter),e(n.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(e){var t=l();if(!t||!t.getContext)return null;var i=t.getContext("2d");return i&&"setLineDash"===e?"undefined"!==typeof i.setLineDash:null}}),n.StaticCanvas.prototype.toJSON=n.StaticCanvas.prototype.toObject,n.isLikelyNode&&(n.StaticCanvas.prototype.createPNGStream=function(){var e=a(this.lowerCanvasEl);return e&&e.createPNGStream()},n.StaticCanvas.prototype.createJPEGStream=function(e){var t=a(this.lowerCanvasEl);return t&&t.createJPEGStream(e)})}}(),n.BaseBrush=n.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(e){e.strokeStyle=this.color,e.lineWidth=this.width,e.lineCap=this.strokeLineCap,e.miterLimit=this.strokeMiterLimit,e.lineJoin=this.strokeLineJoin,e.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(e){var t=this.canvas.viewportTransform;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5])},_setShadow:function(){if(this.shadow){var e=this.canvas,t=this.shadow,i=e.contextTop,s=e.getZoom();e&&e._isRetinaScaling()&&(s*=n.devicePixelRatio),i.shadowColor=t.color,i.shadowBlur=t.blur*s,i.shadowOffsetX=t.offsetX*s,i.shadowOffsetY=t.offsetY*s}},needsFullRender:function(){return new n.Color(this.color).getAlpha()<1||!!this.shadow},_resetShadow:function(){var e=this.canvas.contextTop;e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0},_isOutSideCanvas:function(e){return e.x<0||e.x>this.canvas.getWidth()||e.y<0||e.y>this.canvas.getHeight()}}),n.PencilBrush=n.util.createClass(n.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(e){this.canvas=e,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(e,t,i){var s=t.midPointFrom(i);return e.quadraticCurveTo(t.x,t.y,s.x,s.y),s},onMouseDown:function(e,t){this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],this._prepareForDrawing(e),this._captureDrawingPath(e),this._render())},onMouseMove:function(e,t){if(this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(e))&&this._captureDrawingPath(e)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var i=this._points,s=i.length,n=this.canvas.contextTop;this._saveAndTransform(n),this.oldEnd&&(n.beginPath(),n.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(n,i[s-2],i[s-1],!0),n.stroke(),n.restore()}},onMouseUp:function(e){return!this.canvas._isMainEvent(e.e)||(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(e){var t=new n.Point(e.x,e.y);this._reset(),this._addPoint(t),this.canvas.contextTop.moveTo(t.x,t.y)},_addPoint:function(e){return!(this._points.length>1&&e.eq(this._points[this._points.length-1]))&&(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(e),!0)},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(e){var t=new n.Point(e.x,e.y);return this._addPoint(t)},_render:function(e){var t,i,s=this._points[0],r=this._points[1];if(e=e||this.canvas.contextTop,this._saveAndTransform(e),e.beginPath(),2===this._points.length&&s.x===r.x&&s.y===r.y){var o=this.width/1e3;s=new n.Point(s.x,s.y),r=new n.Point(r.x,r.y),s.x-=o,r.x+=o}for(e.moveTo(s.x,s.y),t=1,i=this._points.length;t<i;t++)this._drawSegment(e,s,r),s=this._points[t],r=this._points[t+1];e.lineTo(s.x,s.y),e.stroke(),e.restore()},convertPointsToSVGPath:function(e){var t=this.width/1e3;return n.util.getSmoothPathFromPoints(e,t)},_isEmptySVGPath:function(e){return"M 0 0 Q 0 0 0 0 L 0 0"===n.util.joinPath(e)},createPath:function(e){var t=new n.Path(e,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,t.shadow=new n.Shadow(this.shadow)),t},decimatePoints:function(e,t){if(e.length<=2)return e;var i,s=this.canvas.getZoom(),n=Math.pow(t/s,2),r=e.length-1,o=e[0],a=[o];for(i=1;i<r-1;i++)Math.pow(o.x-e[i].x,2)+Math.pow(o.y-e[i].y,2)>=n&&(o=e[i],a.push(o));return a.push(e[r]),a},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var e=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(e))this.canvas.requestRenderAll();else{var t=this.createPath(e);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:t}),this.canvas.add(t),this.canvas.requestRenderAll(),t.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:t})}}}),n.CircleBrush=n.util.createClass(n.BaseBrush,{width:10,initialize:function(e){this.canvas=e,this.points=[]},drawDot:function(e){var t=this.addPoint(e),i=this.canvas.contextTop;this._saveAndTransform(i),this.dot(i,t),i.restore()},dot:function(e,t){e.fillStyle=t.fill,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!1),e.closePath(),e.fill()},onMouseDown:function(e){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(e)},_render:function(){var e,t,i=this.canvas.contextTop,s=this.points;for(this._saveAndTransform(i),e=0,t=s.length;e<t;e++)this.dot(i,s[e]);i.restore()},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(e),this._render()):this.drawDot(e))},onMouseUp:function(){var e,t,i=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var s=[];for(e=0,t=this.points.length;e<t;e++){var r=this.points[e],o=new n.Circle({radius:r.radius,left:r.x,top:r.y,originX:"center",originY:"center",fill:r.fill});this.shadow&&(o.shadow=new n.Shadow(this.shadow)),s.push(o)}var a=new n.Group(s);a.canvas=this.canvas,this.canvas.fire("before:path:created",{path:a}),this.canvas.add(a),this.canvas.fire("path:created",{path:a}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=i,this.canvas.requestRenderAll()},addPoint:function(e){var t=new n.Point(e.x,e.y),i=n.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,s=new n.Color(this.color).setAlpha(n.util.getRandomInt(0,100)/100).toRgba();return t.radius=i,t.fill=s,this.points.push(t),t}}),n.SprayBrush=n.util.createClass(n.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(e){this.canvas=e,this.sprayChunks=[]},onMouseDown:function(e){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(e),this.render(this.sprayChunkPoints)},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.addSprayChunk(e),this.render(this.sprayChunkPoints))},onMouseUp:function(){var e=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var t=[],i=0,s=this.sprayChunks.length;i<s;i++)for(var r=this.sprayChunks[i],o=0,a=r.length;o<a;o++){var l=new n.Rect({width:r[o].width,height:r[o].width,left:r[o].x+1,top:r[o].y+1,originX:"center",originY:"center",fill:this.color});t.push(l)}this.optimizeOverlapping&&(t=this._getOptimizedRects(t));var c=new n.Group(t);this.shadow&&c.set("shadow",new n.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:c}),this.canvas.add(c),this.canvas.fire("path:created",{path:c}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=e,this.canvas.requestRenderAll()},_getOptimizedRects:function(e){var t,i,s,n={};for(i=0,s=e.length;i<s;i++)n[t=e[i].left+""+e[i].top]||(n[t]=e[i]);var r=[];for(t in n)r.push(n[t]);return r},render:function(e){var t,i,s=this.canvas.contextTop;for(s.fillStyle=this.color,this._saveAndTransform(s),t=0,i=e.length;t<i;t++){var n=e[t];"undefined"!==typeof n.opacity&&(s.globalAlpha=n.opacity),s.fillRect(n.x,n.y,n.width,n.width)}s.restore()},_render:function(){var e,t,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),e=0,t=this.sprayChunks.length;e<t;e++)this.render(this.sprayChunks[e]);i.restore()},addSprayChunk:function(e){this.sprayChunkPoints=[];var t,i,s,r,o=this.width/2;for(r=0;r<this.density;r++){t=n.util.getRandomInt(e.x-o,e.x+o),i=n.util.getRandomInt(e.y-o,e.y+o),s=this.dotWidthVariance?n.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var a=new n.Point(t,i);a.width=s,this.randomOpacity&&(a.opacity=n.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(a)}this.sprayChunks.push(this.sprayChunkPoints)}}),n.PatternBrush=n.util.createClass(n.PencilBrush,{getPatternSrc:function(){var e=n.util.createCanvasElement(),t=e.getContext("2d");return e.width=e.height=25,t.fillStyle=this.color,t.beginPath(),t.arc(10,10,10,0,2*Math.PI,!1),t.closePath(),t.fill(),e},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(e){return e.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(e){this.callSuper("_setBrushStyles",e),e.strokeStyle=this.getPattern(e)},createPath:function(e){var t=this.callSuper("createPath",e),i=t._getLeftTopCoords().scalarAdd(t.strokeWidth/2);return t.stroke=new n.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-i.x,offsetY:-i.y}),t}}),function(){var e=n.util.getPointer,t=n.util.degreesToRadians,i=n.util.isTouchEvent;for(var s in n.Canvas=n.util.createClass(n.StaticCanvas,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],enablePointerEvents:!1,_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=n.PencilBrush&&new n.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var e,t,i,s=this.getActiveObjects();if(s.length>0&&!this.preserveObjectStacking){t=[],i=[];for(var n=0,r=this._objects.length;n<r;n++)e=this._objects[n],-1===s.indexOf(e)?t.push(e):i.push(e);s.length>1&&(this._activeObject._objects=i),t.push.apply(t,i)}else t=this._objects;return t},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1);var e=this.contextContainer;return this.renderCanvas(e,this._chooseObjectsToRender()),this},renderTopLayer:function(e){e.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(e),this.contextTopDirty=!0),e.restore()},renderTop:function(){var e=this.contextTop;return this.clearContext(e),this.renderTopLayer(e),this.fire("after:render"),this},_normalizePointer:function(e,t){var i=e.calcTransformMatrix(),s=n.util.invertTransform(i),r=this.restorePointerVpt(t);return n.util.transformPoint(r,s)},isTargetTransparent:function(e,t,i){if(e.shouldCache()&&e._cacheCanvas&&e!==this._activeObject){var s=this._normalizePointer(e,{x:t,y:i}),r=Math.max(e.cacheTranslationX+s.x*e.zoomX,0),o=Math.max(e.cacheTranslationY+s.y*e.zoomY,0);return n.util.isTransparent(e._cacheContext,Math.round(r),Math.round(o),this.targetFindTolerance)}var a=this.contextCache,l=e.selectionBackgroundColor,c=this.viewportTransform;return e.selectionBackgroundColor="",this.clearContext(a),a.save(),a.transform(c[0],c[1],c[2],c[3],c[4],c[5]),e.render(a),a.restore(),e.selectionBackgroundColor=l,n.util.isTransparent(a,t,i,this.targetFindTolerance)},_isSelectionKeyPressed:function(e){return Array.isArray(this.selectionKey)?!!this.selectionKey.find((function(t){return!0===e[t]})):e[this.selectionKey]},_shouldClearSelection:function(e,t){var i=this.getActiveObjects(),s=this._activeObject;return!t||t&&s&&i.length>1&&-1===i.indexOf(t)&&s!==t&&!this._isSelectionKeyPressed(e)||t&&!t.evented||t&&!t.selectable&&s&&s!==t},_shouldCenterTransform:function(e,t,i){var s;if(e)return"scale"===t||"scaleX"===t||"scaleY"===t||"resizing"===t?s=this.centeredScaling||e.centeredScaling:"rotate"===t&&(s=this.centeredRotation||e.centeredRotation),s?!i:i},_getOriginFromCorner:function(e,t){var i={x:e.originX,y:e.originY};return"ml"===t||"tl"===t||"bl"===t?i.x="right":"mr"!==t&&"tr"!==t&&"br"!==t||(i.x="left"),"tl"===t||"mt"===t||"tr"===t?i.y="bottom":"bl"!==t&&"mb"!==t&&"br"!==t||(i.y="top"),i},_getActionFromCorner:function(e,t,i,s){if(!t||!e)return"drag";var n=s.controls[t];return n.getActionName(i,n,s)},_setupCurrentTransform:function(e,i,s){if(i){var r=this.getPointer(e),o=i.__corner,a=i.controls[o],l=s&&o?a.getActionHandler(e,i,a):n.controlsUtils.dragHandler,c=this._getActionFromCorner(s,o,e,i),h=this._getOriginFromCorner(i,o),d=e[this.centeredKey],u={target:i,action:c,actionHandler:l,corner:o,scaleX:i.scaleX,scaleY:i.scaleY,skewX:i.skewX,skewY:i.skewY,offsetX:r.x-i.left,offsetY:r.y-i.top,originX:h.x,originY:h.y,ex:r.x,ey:r.y,lastX:r.x,lastY:r.y,theta:t(i.angle),width:i.width*i.scaleX,shiftKey:e.shiftKey,altKey:d,original:n.util.saveObjectTransform(i)};this._shouldCenterTransform(i,c,d)&&(u.originX="center",u.originY="center"),u.original.originX=h.x,u.original.originY=h.y,this._currentTransform=u,this._beforeTransform(e)}},setCursor:function(e){this.upperCanvasEl.style.cursor=e},_drawSelection:function(e){var t=this._groupSelector,i=new n.Point(t.ex,t.ey),s=n.util.transformPoint(i,this.viewportTransform),r=new n.Point(t.ex+t.left,t.ey+t.top),o=n.util.transformPoint(r,this.viewportTransform),a=Math.min(s.x,o.x),l=Math.min(s.y,o.y),c=Math.max(s.x,o.x),h=Math.max(s.y,o.y),d=this.selectionLineWidth/2;this.selectionColor&&(e.fillStyle=this.selectionColor,e.fillRect(a,l,c-a,h-l)),this.selectionLineWidth&&this.selectionBorderColor&&(e.lineWidth=this.selectionLineWidth,e.strokeStyle=this.selectionBorderColor,a+=d,l+=d,c-=d,h-=d,n.Object.prototype._setLineDash.call(this,e,this.selectionDashArray),e.strokeRect(a,l,c-a,h-l))},findTarget:function(e,t){if(!this.skipTargetFind){var s,n,r=this.getPointer(e,!0),o=this._activeObject,a=this.getActiveObjects(),l=i(e),c=a.length>1&&!t||1===a.length;if(this.targets=[],c&&o._findTargetCorner(r,l))return o;if(a.length>1&&!t&&o===this._searchPossibleTargets([o],r))return o;if(1===a.length&&o===this._searchPossibleTargets([o],r)){if(!this.preserveObjectStacking)return o;s=o,n=this.targets,this.targets=[]}var h=this._searchPossibleTargets(this._objects,r);return e[this.altSelectionKey]&&h&&s&&h!==s&&(h=s,this.targets=n),h}},_checkTarget:function(e,t,i){if(t&&t.visible&&t.evented&&t.containsPoint(e)){if(!this.perPixelTargetFind&&!t.perPixelTargetFind||t.isEditing)return!0;if(!this.isTargetTransparent(t,i.x,i.y))return!0}},_searchPossibleTargets:function(e,t){for(var i,s,r=e.length;r--;){var o=e[r],a=o.group?this._normalizePointer(o.group,t):t;if(this._checkTarget(a,o,t)){(i=e[r]).subTargetCheck&&i instanceof n.Group&&(s=this._searchPossibleTargets(i._objects,t))&&this.targets.push(s);break}}return i},restorePointerVpt:function(e){return n.util.transformPoint(e,n.util.invertTransform(this.viewportTransform))},getPointer:function(t,i){if(this._absolutePointer&&!i)return this._absolutePointer;if(this._pointer&&i)return this._pointer;var s,n=e(t),r=this.upperCanvasEl,o=r.getBoundingClientRect(),a=o.width||0,l=o.height||0;a&&l||("top"in o&&"bottom"in o&&(l=Math.abs(o.top-o.bottom)),"right"in o&&"left"in o&&(a=Math.abs(o.right-o.left))),this.calcOffset(),n.x=n.x-this._offset.left,n.y=n.y-this._offset.top,i||(n=this.restorePointerVpt(n));var c=this.getRetinaScaling();return 1!==c&&(n.x/=c,n.y/=c),s=0===a||0===l?{width:1,height:1}:{width:r.width/a,height:r.height/l},{x:n.x*s.width,y:n.y*s.height}},_createUpperCanvas:function(){var e=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),t=this.lowerCanvasEl,i=this.upperCanvasEl;i?i.className="":(i=this._createCanvasElement(),this.upperCanvasEl=i),n.util.addClass(i,"upper-canvas "+e),this.wrapperEl.appendChild(i),this._copyCanvasStyle(t,i),this._applyCanvasStyle(i),this.contextTop=i.getContext("2d")},getTopContext:function(){return this.contextTop},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=n.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),n.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),n.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(e){var t=this.width||e.width,i=this.height||e.height;n.util.setStyle(e,{position:"absolute",width:t+"px",height:i+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),e.width=t,e.height=i,n.util.makeElementUnselectable(e)},_copyCanvasStyle:function(e,t){t.style.cssText=e.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var e=this._activeObject;return e?"activeSelection"===e.type&&e._objects?e._objects.slice(0):[e]:[]},_onObjectRemoved:function(e){e===this._activeObject&&(this.fire("before:selection:cleared",{target:e}),this._discardActiveObject(),this.fire("selection:cleared",{target:e}),e.fire("deselected")),e===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",e)},_fireSelectionEvents:function(e,t){var i=!1,s=this.getActiveObjects(),n=[],r=[];e.forEach((function(e){-1===s.indexOf(e)&&(i=!0,e.fire("deselected",{e:t,target:e}),r.push(e))})),s.forEach((function(s){-1===e.indexOf(s)&&(i=!0,s.fire("selected",{e:t,target:s}),n.push(s))})),e.length>0&&s.length>0?i&&this.fire("selection:updated",{e:t,selected:n,deselected:r}):s.length>0?this.fire("selection:created",{e:t,selected:n}):e.length>0&&this.fire("selection:cleared",{e:t,deselected:r})},setActiveObject:function(e,t){var i=this.getActiveObjects();return this._setActiveObject(e,t),this._fireSelectionEvents(i,t),this},_setActiveObject:function(e,t){return this._activeObject!==e&&(!!this._discardActiveObject(t,e)&&(!e.onSelect({e:t})&&(this._activeObject=e,!0)))},_discardActiveObject:function(e,t){var i=this._activeObject;if(i){if(i.onDeselect({e:e,object:t}))return!1;this._activeObject=null}return!0},discardActiveObject:function(e){var t=this.getActiveObjects(),i=this.getActiveObject();return t.length&&this.fire("before:selection:cleared",{target:i,e:e}),this._discardActiveObject(e),this._fireSelectionEvents(t,e),this},dispose:function(){var e=this.wrapperEl;return this.removeListeners(),e.removeChild(this.upperCanvasEl),e.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(e){n.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this)),e.parentNode&&e.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,n.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(e){var t=this._activeObject;t&&t._renderControls(e)},_toObject:function(e,t,i){var s=this._realizeGroupTransformOnObject(e),n=this.callSuper("_toObject",e,t,i);return this._unwindGroupTransformOnObject(e,s),n},_realizeGroupTransformOnObject:function(e){if(e.group&&"activeSelection"===e.group.type&&this._activeObject===e.group){var t={};return["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"].forEach((function(i){t[i]=e[i]})),n.util.addTransformToObject(e,this._activeObject.calcOwnMatrix()),t}return null},_unwindGroupTransformOnObject:function(e,t){t&&e.set(t)},_setSVGObject:function(e,t,i){var s=this._realizeGroupTransformOnObject(t);this.callSuper("_setSVGObject",e,t,i),this._unwindGroupTransformOnObject(t,s)},setViewportTransform:function(e){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),n.StaticCanvas.prototype.setViewportTransform.call(this,e)}}),n.StaticCanvas)"prototype"!==s&&(n.Canvas[s]=n.StaticCanvas[s])}(),function(){var e=n.util.addListener,t=n.util.removeListener,i={passive:!1};function s(e,t){return e.button&&e.button===t-1}n.util.object.extend(n.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(e,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(e,t){var s=this.upperCanvasEl,r=this._getEventPrefix();e(n.window,"resize",this._onResize),e(s,r+"down",this._onMouseDown),e(s,r+"move",this._onMouseMove,i),e(s,r+"out",this._onMouseOut),e(s,r+"enter",this._onMouseEnter),e(s,"wheel",this._onMouseWheel),e(s,"contextmenu",this._onContextMenu),e(s,"dblclick",this._onDoubleClick),e(s,"dragover",this._onDragOver),e(s,"dragenter",this._onDragEnter),e(s,"dragleave",this._onDragLeave),e(s,"drop",this._onDrop),this.enablePointerEvents||e(s,"touchstart",this._onTouchStart,i),"undefined"!==typeof eventjs&&t in eventjs&&(eventjs[t](s,"gesture",this._onGesture),eventjs[t](s,"drag",this._onDrag),eventjs[t](s,"orientation",this._onOrientationChange),eventjs[t](s,"shake",this._onShake),eventjs[t](s,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(t,"remove");var e=this._getEventPrefix();t(n.document,e+"up",this._onMouseUp),t(n.document,"touchend",this._onTouchEnd,i),t(n.document,e+"move",this._onMouseMove,i),t(n.document,"touchmove",this._onMouseMove,i)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._onDrop.bind(this),this.eventsBound=!0)},_onGesture:function(e,t){this.__onTransformGesture&&this.__onTransformGesture(e,t)},_onDrag:function(e,t){this.__onDrag&&this.__onDrag(e,t)},_onMouseWheel:function(e){this.__onMouseWheel(e)},_onMouseOut:function(e){var t=this._hoveredTarget;this.fire("mouse:out",{target:t,e:e}),this._hoveredTarget=null,t&&t.fire("mouseout",{e:e});var i=this;this._hoveredTargets.forEach((function(t){i.fire("mouse:out",{target:t,e:e}),t&&t.fire("mouseout",{e:e})})),this._hoveredTargets=[]},_onMouseEnter:function(e){this._currentTransform||this.findTarget(e)||(this.fire("mouse:over",{target:null,e:e}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(e,t){this.__onOrientationChange&&this.__onOrientationChange(e,t)},_onShake:function(e,t){this.__onShake&&this.__onShake(e,t)},_onLongPress:function(e,t){this.__onLongPress&&this.__onLongPress(e,t)},_onDragOver:function(e){e.preventDefault();var t=this._simpleEventHandler("dragover",e);this._fireEnterLeaveEvents(t,e)},_onDrop:function(e){return this._simpleEventHandler("drop:before",e),this._simpleEventHandler("drop",e)},_onContextMenu:function(e){return this.stopContextMenu&&(e.stopPropagation(),e.preventDefault()),!1},_onDoubleClick:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"dblclick"),this._resetTransformEventData(e)},getPointerId:function(e){var t=e.changedTouches;return t?t[0]&&t[0].identifier:this.enablePointerEvents?e.pointerId:-1},_isMainEvent:function(e){return!0===e.isPrimary||!1!==e.isPrimary&&("touchend"===e.type&&0===e.touches.length||(!e.changedTouches||e.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(s){s.preventDefault(),null===this.mainTouchId&&(this.mainTouchId=this.getPointerId(s)),this.__onMouseDown(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();e(n.document,"touchend",this._onTouchEnd,i),e(n.document,"touchmove",this._onMouseMove,i),t(r,o+"down",this._onMouseDown)},_onMouseDown:function(s){this.__onMouseDown(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();t(r,o+"move",this._onMouseMove,i),e(n.document,o+"up",this._onMouseUp),e(n.document,o+"move",this._onMouseMove,i)},_onTouchEnd:function(s){if(!(s.touches.length>0)){this.__onMouseUp(s),this._resetTransformEventData(),this.mainTouchId=null;var r=this._getEventPrefix();t(n.document,"touchend",this._onTouchEnd,i),t(n.document,"touchmove",this._onMouseMove,i);var o=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){e(o.upperCanvasEl,r+"down",o._onMouseDown),o._willAddMouseDown=0}),400)}},_onMouseUp:function(s){this.__onMouseUp(s),this._resetTransformEventData();var r=this.upperCanvasEl,o=this._getEventPrefix();this._isMainEvent(s)&&(t(n.document,o+"up",this._onMouseUp),t(n.document,o+"move",this._onMouseMove,i),e(r,o+"move",this._onMouseMove,i))},_onMouseMove:function(e){!this.allowTouchScrolling&&e.preventDefault&&e.preventDefault(),this.__onMouseMove(e)},_onResize:function(){this.calcOffset()},_shouldRender:function(e){var t=this._activeObject;return!!(!!t!==!!e||t&&e&&t!==e)||(t&&t.isEditing,!1)},__onMouseUp:function(e){var t,i=this._currentTransform,r=this._groupSelector,o=!1,a=!r||0===r.left&&0===r.top;if(this._cacheTransformEventData(e),t=this._target,this._handleEvent(e,"up:before"),s(e,3))this.fireRightClick&&this._handleEvent(e,"up",3,a);else{if(s(e,2))return this.fireMiddleClick&&this._handleEvent(e,"up",2,a),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(e);else if(this._isMainEvent(e)){if(i&&(this._finalizeCurrentTransform(e),o=i.actionPerformed),!a){var l=t===this._activeObject;this._maybeGroupObjects(e),o||(o=this._shouldRender(t)||!l&&t===this._activeObject)}var c,h;if(t){if(c=t._findTargetCorner(this.getPointer(e,!0),n.util.isTouchEvent(e)),t.selectable&&t!==this._activeObject&&"up"===t.activeOn)this.setActiveObject(t,e),o=!0;else{var d=t.controls[c],u=d&&d.getMouseUpHandler(e,t,d);u&&u(e,i,(h=this.getPointer(e)).x,h.y)}t.isMoving=!1}if(i&&(i.target!==t||i.corner!==c)){var g=i.target&&i.target.controls[i.corner],p=g&&g.getMouseUpHandler(e,t,d);h=h||this.getPointer(e),p&&p(e,i,h.x,h.y)}this._setCursorFromEvent(e,t),this._handleEvent(e,"up",1,a),this._groupSelector=null,this._currentTransform=null,t&&(t.__corner=0),o?this.requestRenderAll():a||this.renderTop()}}},_simpleEventHandler:function(e,t){var i=this.findTarget(t),s=this.targets,n={e:t,target:i,subTargets:s};if(this.fire(e,n),i&&i.fire(e,n),!s)return i;for(var r=0;r<s.length;r++)s[r].fire(e,n);return i},_handleEvent:function(e,t,i,s){var n=this._target,r=this.targets||[],o={e:e,target:n,subTargets:r,button:i||1,isClick:s||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};"up"===t&&(o.currentTarget=this.findTarget(e),o.currentSubTargets=this.targets),this.fire("mouse:"+t,o),n&&n.fire("mouse"+t,o);for(var a=0;a<r.length;a++)r[a].fire("mouse"+t,o)},_finalizeCurrentTransform:function(e){var t=this._currentTransform,i=t.target,s={e:e,target:i,transform:t,action:t.action};i._scaling&&(i._scaling=!1),i.setCoords(),(t.actionPerformed||this.stateful&&i.hasStateChanged())&&this._fire("modified",s)},_onMouseDownInDrawingMode:function(e){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(e).requestRenderAll();var t=this.getPointer(e);this.freeDrawingBrush.onMouseDown(t,{e:e,pointer:t}),this._handleEvent(e,"down")},_onMouseMoveInDrawingMode:function(e){if(this._isCurrentlyDrawing){var t=this.getPointer(e);this.freeDrawingBrush.onMouseMove(t,{e:e,pointer:t})}this.setCursor(this.freeDrawingCursor),this._handleEvent(e,"move")},_onMouseUpInDrawingMode:function(e){var t=this.getPointer(e);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:e,pointer:t}),this._handleEvent(e,"up")},__onMouseDown:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"down:before");var t=this._target;if(s(e,3))this.fireRightClick&&this._handleEvent(e,"down",3);else if(s(e,2))this.fireMiddleClick&&this._handleEvent(e,"down",2);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(e);else if(this._isMainEvent(e)&&!this._currentTransform){var i=this._pointer;this._previousPointer=i;var r=this._shouldRender(t),o=this._shouldGroup(e,t);if(this._shouldClearSelection(e,t)?this.discardActiveObject(e):o&&(this._handleGrouping(e,t),t=this._activeObject),!this.selection||t&&(t.selectable||t.isEditing||t===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),t){var a=t===this._activeObject;t.selectable&&"down"===t.activeOn&&this.setActiveObject(t,e);var l=t._findTargetCorner(this.getPointer(e,!0),n.util.isTouchEvent(e));if(t.__corner=l,t===this._activeObject&&(l||!o)){this._setupCurrentTransform(e,t,a);var c=t.controls[l],h=(i=this.getPointer(e),c&&c.getMouseDownHandler(e,t,c));h&&h(e,this._currentTransform,i.x,i.y)}}this._handleEvent(e,"down"),(r||o)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(e){this._resetTransformEventData(),this._pointer=this.getPointer(e,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(e)||null},_beforeTransform:function(e){var t=this._currentTransform;this.stateful&&t.target.saveState(),this.fire("before:transform",{e:e,transform:t})},__onMouseMove:function(e){var t,i;if(this._handleEvent(e,"move:before"),this._cacheTransformEventData(e),this.isDrawingMode)this._onMouseMoveInDrawingMode(e);else if(this._isMainEvent(e)){var s=this._groupSelector;s?(i=this._absolutePointer,s.left=i.x-s.ex,s.top=i.y-s.ey,this.renderTop()):this._currentTransform?this._transformObject(e):(t=this.findTarget(e)||null,this._setCursorFromEvent(e,t),this._fireOverOutEvents(t,e)),this._handleEvent(e,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(e,t){var i=this._hoveredTarget,s=this._hoveredTargets,n=this.targets,r=Math.max(s.length,n.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var o=0;o<r;o++)this.fireSyntheticInOutEvents(n[o],t,{oldTarget:s[o],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=e,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(e,t){var i=this._draggedoverTarget,s=this._hoveredTargets,n=this.targets,r=Math.max(s.length,n.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"dragleave",evtIn:"dragenter"});for(var o=0;o<r;o++)this.fireSyntheticInOutEvents(n[o],t,{oldTarget:s[o],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=e},fireSyntheticInOutEvents:function(e,t,i){var s,n,r,o=i.oldTarget,a=o!==e,l=i.canvasEvtIn,c=i.canvasEvtOut;a&&(s={e:t,target:e,previousTarget:o},n={e:t,target:o,nextTarget:e}),r=e&&a,o&&a&&(c&&this.fire(c,n),o.fire(i.evtOut,n)),r&&(l&&this.fire(l,s),e.fire(i.evtIn,s))},__onMouseWheel:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"wheel"),this._resetTransformEventData()},_transformObject:function(e){var t=this.getPointer(e),i=this._currentTransform;i.reset=!1,i.shiftKey=e.shiftKey,i.altKey=e[this.centeredKey],this._performTransformAction(e,i,t),i.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(e,t,i){var s=i.x,n=i.y,r=t.action,o=!1,a=t.actionHandler;a&&(o=a(e,t,s,n)),"drag"===r&&o&&(t.target.isMoving=!0,this.setCursor(t.target.moveCursor||this.moveCursor)),t.actionPerformed=t.actionPerformed||o},_fire:n.controlsUtils.fireEvent,_setCursorFromEvent:function(e,t){if(!t)return this.setCursor(this.defaultCursor),!1;var i=t.hoverCursor||this.hoverCursor,s=this._activeObject&&"activeSelection"===this._activeObject.type?this._activeObject:null,n=(!s||!s.contains(t))&&t._findTargetCorner(this.getPointer(e,!0));n?this.setCursor(this.getCornerCursor(n,t,e)):(t.subTargetCheck&&this.targets.concat().reverse().map((function(e){i=e.hoverCursor||i})),this.setCursor(i))},getCornerCursor:function(e,t,i){var s=t.controls[e];return s.cursorStyleHandler(i,s,t)}})}(),function(){var e=Math.min,t=Math.max;n.util.object.extend(n.Canvas.prototype,{_shouldGroup:function(e,t){var i=this._activeObject;return i&&this._isSelectionKeyPressed(e)&&t&&t.selectable&&this.selection&&(i!==t||"activeSelection"===i.type)&&!t.onSelect({e:e})},_handleGrouping:function(e,t){var i=this._activeObject;i.__corner||(t!==i||(t=this.findTarget(e,!0))&&t.selectable)&&(i&&"activeSelection"===i.type?this._updateActiveSelection(t,e):this._createActiveSelection(t,e))},_updateActiveSelection:function(e,t){var i=this._activeObject,s=i._objects.slice(0);i.contains(e)?(i.removeWithUpdate(e),this._hoveredTarget=e,this._hoveredTargets=this.targets.concat(),1===i.size()&&this._setActiveObject(i.item(0),t)):(i.addWithUpdate(e),this._hoveredTarget=i,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(s,t)},_createActiveSelection:function(e,t){var i=this.getActiveObjects(),s=this._createGroup(e);this._hoveredTarget=s,this._setActiveObject(s,t),this._fireSelectionEvents(i,t)},_createGroup:function(e){var t=this._objects,i=t.indexOf(this._activeObject)<t.indexOf(e)?[this._activeObject,e]:[e,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new n.ActiveSelection(i,{canvas:this})},_groupSelectedObjects:function(e){var t,i=this._collectObjects(e);1===i.length?this.setActiveObject(i[0],e):i.length>1&&(t=new n.ActiveSelection(i.reverse(),{canvas:this}),this.setActiveObject(t,e))},_collectObjects:function(i){for(var s,r=[],o=this._groupSelector.ex,a=this._groupSelector.ey,l=o+this._groupSelector.left,c=a+this._groupSelector.top,h=new n.Point(e(o,l),e(a,c)),d=new n.Point(t(o,l),t(a,c)),u=!this.selectionFullyContained,g=o===l&&a===c,p=this._objects.length;p--&&!((s=this._objects[p])&&s.selectable&&s.visible&&(u&&s.intersectsWithRect(h,d,!0)||s.isContainedWithinRect(h,d,!0)||u&&s.containsPoint(h,null,!0)||u&&s.containsPoint(d,null,!0))&&(r.push(s),g)););return r.length>1&&(r=r.filter((function(e){return!e.onSelect({e:i})}))),r},_maybeGroupObjects:function(e){this.selection&&this._groupSelector&&this._groupSelectedObjects(e),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),n.util.object.extend(n.StaticCanvas.prototype,{toDataURL:function(e){e||(e={});var t=e.format||"png",i=e.quality||1,s=(e.multiplier||1)*(e.enableRetinaScaling?this.getRetinaScaling():1),r=this.toCanvasElement(s,e);return n.util.toDataURL(r,t,i)},toCanvasElement:function(e,t){e=e||1;var i=((t=t||{}).width||this.width)*e,s=(t.height||this.height)*e,r=this.getZoom(),o=this.width,a=this.height,l=r*e,c=this.viewportTransform,h=(c[4]-(t.left||0))*e,d=(c[5]-(t.top||0))*e,u=this.interactive,g=[l,0,0,l,h,d],p=this.enableRetinaScaling,m=n.util.createCanvasElement(),f=this.contextTop;return m.width=i,m.height=s,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=g,this.width=i,this.height=s,this.calcViewportBoundaries(),this.renderCanvas(m.getContext("2d"),this._objects),this.viewportTransform=c,this.width=o,this.height=a,this.calcViewportBoundaries(),this.interactive=u,this.enableRetinaScaling=p,this.contextTop=f,m}}),n.util.object.extend(n.StaticCanvas.prototype,{loadFromJSON:function(e,t,i){if(e){var s="string"===typeof e?JSON.parse(e):n.util.object.clone(e),r=this,o=s.clipPath,a=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete s.clipPath,this._enlivenObjects(s.objects,(function(e){r.clear(),r._setBgOverlay(s,(function(){o?r._enlivenObjects([o],(function(i){r.clipPath=i[0],r.__setupCanvas.call(r,s,e,a,t)})):r.__setupCanvas.call(r,s,e,a,t)}))}),i),this}},__setupCanvas:function(e,t,i,s){var n=this;t.forEach((function(e,t){n.insertAt(e,t)})),this.renderOnAddRemove=i,delete e.objects,delete e.backgroundImage,delete e.overlayImage,delete e.background,delete e.overlay,this._setOptions(e),this.renderAll(),s&&s()},_setBgOverlay:function(e,t){var i={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(e.backgroundImage||e.overlayImage||e.background||e.overlay){var s=function(){i.backgroundImage&&i.overlayImage&&i.backgroundColor&&i.overlayColor&&t&&t()};this.__setBgOverlay("backgroundImage",e.backgroundImage,i,s),this.__setBgOverlay("overlayImage",e.overlayImage,i,s),this.__setBgOverlay("backgroundColor",e.background,i,s),this.__setBgOverlay("overlayColor",e.overlay,i,s)}else t&&t()},__setBgOverlay:function(e,t,i,s){var r=this;if(!t)return i[e]=!0,void(s&&s());"backgroundImage"===e||"overlayImage"===e?n.util.enlivenObjects([t],(function(t){r[e]=t[0],i[e]=!0,s&&s()})):this["set"+n.util.string.capitalize(e,!0)](t,(function(){i[e]=!0,s&&s()}))},_enlivenObjects:function(e,t,i){e&&0!==e.length?n.util.enlivenObjects(e,(function(e){t&&t(e)}),null,i):t&&t([])},_toDataURL:function(e,t){this.clone((function(i){t(i.toDataURL(e))}))},_toDataURLWithMultiplier:function(e,t,i){this.clone((function(s){i(s.toDataURLWithMultiplier(e,t))}))},clone:function(e,t){var i=JSON.stringify(this.toJSON(t));this.cloneWithoutData((function(t){t.loadFromJSON(i,(function(){e&&e(t)}))}))},cloneWithoutData:function(e){var t=n.util.createCanvasElement();t.width=this.width,t.height=this.height;var i=new n.Canvas(t);this.backgroundImage?(i.setBackgroundImage(this.backgroundImage.src,(function(){i.renderAll(),e&&e(i)})),i.backgroundImageOpacity=this.backgroundImageOpacity,i.backgroundImageStretch=this.backgroundImageStretch):e&&e(i)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n=t.util.toFixed,r=t.util.string.capitalize,o=t.util.degreesToRadians,a=!t.isLikelyNode;t.Object||(t.Object=t.util.createClass(t.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:a,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(e){e&&this.setOptions(e)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=t.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(e){var i=t.perfLimitSizeTotal,s=e.width,n=e.height,r=t.maxCacheSideLimit,o=t.minCacheSideLimit;if(s<=r&&n<=r&&s*n<=i)return s<o&&(e.width=o),n<o&&(e.height=o),e;var a=s/n,l=t.util.limitDimsByArea(a,i),c=t.util.capValue,h=c(o,l.x,r),d=c(o,l.y,r);return s>h&&(e.zoomX/=s/h,e.width=h,e.capped=!0),n>d&&(e.zoomY/=n/d,e.height=d,e.capped=!0),e},_getCacheCanvasDimensions:function(){var e=this.getTotalObjectScaling(),t=this._getTransformedDimensions(0,0),i=t.x*e.scaleX/this.scaleX,s=t.y*e.scaleY/this.scaleY;return{width:Math.ceil(i+2),height:Math.ceil(s+2),zoomX:e.scaleX,zoomY:e.scaleY,x:i,y:s}},_updateCacheCanvas:function(){var e=this.canvas;if(this.noScaleCache&&e&&e._currentTransform){var t=e._currentTransform.target,i=e._currentTransform.action;if(this===t&&i.slice&&"scale"===i.slice(0,5))return!1}var s,n,r=this._cacheCanvas,o=this._limitCacheSize(this._getCacheCanvasDimensions()),a=o.width,l=o.height,c=o.zoomX,h=o.zoomY,d=a!==this.cacheWidth||l!==this.cacheHeight,u=this.zoomX!==c||this.zoomY!==h;return!(!d&&!u)&&(d?(r.width=a,r.height=l):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,r.width,r.height)),s=o.x/2,n=o.y/2,this.cacheTranslationX=Math.round(r.width/2-s)+s,this.cacheTranslationY=Math.round(r.height/2-n)+n,this.cacheWidth=a,this.cacheHeight=l,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(c,h),this.zoomX=c,this.zoomY=h,!0)},setOptions:function(e){this._setOptions(e),this._initGradient(e.fill,"fill"),this._initGradient(e.stroke,"stroke"),this._initPattern(e.fill,"fill"),this._initPattern(e.stroke,"stroke")},transform:function(e){var t=this.group&&!this.group._transformDone||this.group&&this.canvas&&e===this.canvas.contextTop,i=this.calcTransformMatrix(!t);e.transform(i[0],i[1],i[2],i[3],i[4],i[5])},toObject:function(e){var i=t.Object.NUM_FRACTION_DIGITS,s={type:this.type,version:t.version,originX:this.originX,originY:this.originY,left:n(this.left,i),top:n(this.top,i),width:n(this.width,i),height:n(this.height,i),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:n(this.strokeWidth,i),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:n(this.strokeMiterLimit,i),scaleX:n(this.scaleX,i),scaleY:n(this.scaleY,i),angle:n(this.angle,i),flipX:this.flipX,flipY:this.flipY,opacity:n(this.opacity,i),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:n(this.skewX,i),skewY:n(this.skewY,i)};return this.clipPath&&!this.clipPath.excludeFromExport&&(s.clipPath=this.clipPath.toObject(e),s.clipPath.inverted=this.clipPath.inverted,s.clipPath.absolutePositioned=this.clipPath.absolutePositioned),t.util.populateWithProperties(this,s,e),this.includeDefaultValues||(s=this._removeDefaultValues(s)),s},toDatalessObject:function(e){return this.toObject(e)},_removeDefaultValues:function(e){var i=t.util.getKlass(e.type).prototype;return i.stateProperties.forEach((function(t){"left"!==t&&"top"!==t&&(e[t]===i[t]&&delete e[t],Array.isArray(e[t])&&Array.isArray(i[t])&&0===e[t].length&&0===i[t].length&&delete e[t])})),e},toString:function(){return"#<fabric."+r(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var e=t.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(e.scaleX),scaleY:Math.abs(e.scaleY)}},getTotalObjectScaling:function(){var e=this.getObjectScaling(),t=e.scaleX,i=e.scaleY;if(this.canvas){var s=this.canvas.getZoom(),n=this.canvas.getRetinaScaling();t*=s*n,i*=s*n}return{scaleX:t,scaleY:i}},getObjectOpacity:function(){var e=this.opacity;return this.group&&(e*=this.group.getObjectOpacity()),e},_set:function(e,i){var s="scaleX"===e||"scaleY"===e,n=this[e]!==i,r=!1;return s&&(i=this._constrainScale(i)),"scaleX"===e&&i<0?(this.flipX=!this.flipX,i*=-1):"scaleY"===e&&i<0?(this.flipY=!this.flipY,i*=-1):"shadow"!==e||!i||i instanceof t.Shadow?"dirty"===e&&this.group&&this.group.set("dirty",i):i=new t.Shadow(i),this[e]=i,n&&(r=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(e)>-1?(this.dirty=!0,r&&this.group.set("dirty",!0)):r&&this.stateProperties.indexOf(e)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:t.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width&&!this.height&&0===this.strokeWidth||!this.visible},render:function(e){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(e.save(),this._setupCompositeOperation(e),this.drawSelectionBackground(e),this.transform(e),this._setOpacity(e),this._setShadow(e,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(e)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(e),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),e.restore())},renderCache:function(e){e=e||{},this._cacheCanvas&&this._cacheContext||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,e.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this._cacheContext=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&"transparent"!==this.stroke&&0!==this.strokeWidth},hasFill:function(){return this.fill&&"transparent"!==this.fill},needsItsOwnCache:function(){return!("stroke"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||"object"!==typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(e,i){if(e.save(),i.inverted?e.globalCompositeOperation="destination-out":e.globalCompositeOperation="destination-in",i.absolutePositioned){var s=t.util.invertTransform(this.calcTransformMatrix());e.transform(s[0],s[1],s[2],s[3],s[4],s[5])}i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},drawObject:function(e,t){var i=this.fill,s=this.stroke;t?(this.fill="black",this.stroke="",this._setClippingProperties(e)):this._renderBackground(e),this._render(e),this._drawClipPath(e,this.clipPath),this.fill=i,this.stroke=s},_drawClipPath:function(e,t){t&&(t.canvas=this.canvas,t.shouldCache(),t._transformDone=!0,t.renderCache({forClipping:!0}),this.drawClipPathOnCache(e,t))},drawCacheOnCanvas:function(e){e.scale(1/this.zoomX,1/this.zoomY),e.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(e){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!e&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!e){var t=this.cacheWidth/this.zoomX,i=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-t/2,-i/2,t,i)}return!0}return!1},_renderBackground:function(e){if(this.backgroundColor){var t=this._getNonTransformedDimensions();e.fillStyle=this.backgroundColor,e.fillRect(-t.x/2,-t.y/2,t.x,t.y),this._removeShadow(e)}},_setOpacity:function(e){this.group&&!this.group._transformDone?e.globalAlpha=this.getObjectOpacity():e.globalAlpha*=this.opacity},_setStrokeStyles:function(e,t){var i=t.stroke;i&&(e.lineWidth=t.strokeWidth,e.lineCap=t.strokeLineCap,e.lineDashOffset=t.strokeDashOffset,e.lineJoin=t.strokeLineJoin,e.miterLimit=t.strokeMiterLimit,i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?this._applyPatternForTransformedGradient(e,i):(e.strokeStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):e.strokeStyle=t.stroke)},_setFillStyles:function(e,t){var i=t.fill;i&&(i.toLive?(e.fillStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,t.fill)):e.fillStyle=i)},_setClippingProperties:function(e){e.globalAlpha=1,e.strokeStyle="transparent",e.fillStyle="#000000"},_setLineDash:function(e,t){t&&0!==t.length&&(1&t.length&&t.push.apply(t,t),e.setLineDash(t))},_renderControls:function(e,i){var s,n,r,a=this.getViewportTransform(),l=this.calcTransformMatrix();n="undefined"!==typeof(i=i||{}).hasBorders?i.hasBorders:this.hasBorders,r="undefined"!==typeof i.hasControls?i.hasControls:this.hasControls,l=t.util.multiplyTransformMatrices(a,l),s=t.util.qrDecompose(l),e.save(),e.translate(s.translateX,s.translateY),e.lineWidth=1*this.borderScaleFactor,this.group||(e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(s.angle-=180),e.rotate(o(this.group?s.angle:this.angle)),i.forActiveSelection||this.group?n&&this.drawBordersInGroup(e,s,i):n&&this.drawBorders(e,i),r&&this.drawControls(e,i),e.restore()},_setShadow:function(e){if(this.shadow){var i,s=this.shadow,n=this.canvas,r=n&&n.viewportTransform[0]||1,o=n&&n.viewportTransform[3]||1;i=s.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),n&&n._isRetinaScaling()&&(r*=t.devicePixelRatio,o*=t.devicePixelRatio),e.shadowColor=s.color,e.shadowBlur=s.blur*t.browserShadowBlurConstant*(r+o)*(i.scaleX+i.scaleY)/4,e.shadowOffsetX=s.offsetX*r*i.scaleX,e.shadowOffsetY=s.offsetY*o*i.scaleY}},_removeShadow:function(e){this.shadow&&(e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0)},_applyPatternGradientTransform:function(e,t){if(!t||!t.toLive)return{offsetX:0,offsetY:0};var i=t.gradientTransform||t.patternTransform,s=-this.width/2+t.offsetX||0,n=-this.height/2+t.offsetY||0;return"percentage"===t.gradientUnits?e.transform(this.width,0,0,this.height,s,n):e.transform(1,0,0,1,s,n),i&&e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),{offsetX:s,offsetY:n}},_renderPaintInOrder:function(e){"stroke"===this.paintFirst?(this._renderStroke(e),this._renderFill(e)):(this._renderFill(e),this._renderStroke(e))},_render:function(){},_renderFill:function(e){this.fill&&(e.save(),this._setFillStyles(e,this),"evenodd"===this.fillRule?e.fill("evenodd"):e.fill(),e.restore())},_renderStroke:function(e){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this.strokeUniform&&this.group){var t=this.getObjectScaling();e.scale(1/t.scaleX,1/t.scaleY)}else this.strokeUniform&&e.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(e,this.strokeDashArray),this._setStrokeStyles(e,this),e.stroke(),e.restore()}},_applyPatternForTransformedGradient:function(e,i){var s,n=this._limitCacheSize(this._getCacheCanvasDimensions()),r=t.util.createCanvasElement(),o=this.canvas.getRetinaScaling(),a=n.x/this.scaleX/o,l=n.y/this.scaleY/o;r.width=Math.ceil(a),r.height=Math.ceil(l),(s=r.getContext("2d")).beginPath(),s.moveTo(0,0),s.lineTo(a,0),s.lineTo(a,l),s.lineTo(0,l),s.closePath(),s.translate(a/2,l/2),s.scale(n.zoomX/this.scaleX/o,n.zoomY/this.scaleY/o),this._applyPatternGradientTransform(s,i),s.fillStyle=i.toLive(e),s.fill(),e.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),e.scale(o*this.scaleX/n.zoomX,o*this.scaleY/n.zoomY),e.strokeStyle=s.createPattern(r,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var e=t.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",e.scaleX),this.set("scaleY",e.scaleY),this.angle=e.angle,this.skewX=e.skewX,this.skewY=0}},_removeTransformMatrix:function(e){var i=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),i=t.util.transformPoint(i,this.transformMatrix)),this.transformMatrix=null,e&&(this.scaleX*=e.scaleX,this.scaleY*=e.scaleY,this.cropX=e.cropX,this.cropY=e.cropY,i.x+=e.offsetLeft,i.y+=e.offsetTop,this.width=e.width,this.height=e.height),this.setPositionByOrigin(i,"center","center")},clone:function(e,i){var s=this.toObject(i);this.constructor.fromObject?this.constructor.fromObject(s,e):t.Object._fromObject("Object",s,e)},cloneAsImage:function(e,i){var s=this.toCanvasElement(i);return e&&e(new t.Image(s)),this},toCanvasElement:function(e){e||(e={});var i=t.util,s=i.saveObjectTransform(this),n=this.group,r=this.shadow,o=Math.abs,a=(e.multiplier||1)*(e.enableRetinaScaling?t.devicePixelRatio:1);delete this.group,e.withoutTransform&&i.resetObjectTransform(this),e.withoutShadow&&(this.shadow=null);var l,c,h,d,u=t.util.createCanvasElement(),g=this.getBoundingRect(!0,!0),p=this.shadow,m={x:0,y:0};p&&(c=p.blur,l=p.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),m.x=2*Math.round(o(p.offsetX)+c)*o(l.scaleX),m.y=2*Math.round(o(p.offsetY)+c)*o(l.scaleY)),h=g.width+m.x,d=g.height+m.y,u.width=Math.ceil(h),u.height=Math.ceil(d);var f=new t.StaticCanvas(u,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});"jpeg"===e.format&&(f.backgroundColor="#fff"),this.setPositionByOrigin(new t.Point(f.width/2,f.height/2),"center","center");var _=this.canvas;f.add(this);var v=f.toCanvasElement(a||1,e);return this.shadow=r,this.set("canvas",_),n&&(this.group=n),this.set(s).setCoords(),f._objects=[],f.dispose(),f=null,v},toDataURL:function(e){return e||(e={}),t.util.toDataURL(this.toCanvasElement(e),e.format||"png",e.quality||1)},isType:function(e){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===e},complexity:function(){return 1},toJSON:function(e){return this.toObject(e)},rotate:function(e){var t=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return t&&this._setOriginToCenter(),this.set("angle",e),t&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(e,i){i=i||this.canvas.getPointer(e);var s=new t.Point(i.x,i.y),n=this._getLeftTopCoords();return this.angle&&(s=t.util.rotatePoint(s,n,o(-this.angle))),{x:s.x-n.x,y:s.y-n.y}},_setupCompositeOperation:function(e){this.globalCompositeOperation&&(e.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){t.runningAnimations&&t.runningAnimations.cancelByTarget(this)}}),t.util.createAccessors&&t.util.createAccessors(t.Object),i(t.Object.prototype,t.Observable),t.Object.NUM_FRACTION_DIGITS=2,t.Object.ENLIVEN_PROPS=["clipPath"],t.Object._fromObject=function(e,i,n,r){var o=t[e];i=s(i,!0),t.util.enlivenPatterns([i.fill,i.stroke],(function(e){"undefined"!==typeof e[0]&&(i.fill=e[0]),"undefined"!==typeof e[1]&&(i.stroke=e[1]),t.util.enlivenObjectEnlivables(i,i,(function(){var e=r?new o(i[r],i):new o(i);n&&n(e)}))}))},t.Object.__uid=0)}(t),function(){var e=n.util.degreesToRadians,t={left:-.5,center:0,right:.5},i={top:-.5,center:0,bottom:.5};n.util.object.extend(n.Object.prototype,{translateToGivenOrigin:function(e,s,r,o,a){var l,c,h,d=e.x,u=e.y;return"string"===typeof s?s=t[s]:s-=.5,"string"===typeof o?o=t[o]:o-=.5,"string"===typeof r?r=i[r]:r-=.5,"string"===typeof a?a=i[a]:a-=.5,c=a-r,((l=o-s)||c)&&(h=this._getTransformedDimensions(),d=e.x+l*h.x,u=e.y+c*h.y),new n.Point(d,u)},translateToCenterPoint:function(t,i,s){var r=this.translateToGivenOrigin(t,i,s,"center","center");return this.angle?n.util.rotatePoint(r,t,e(this.angle)):r},translateToOriginPoint:function(t,i,s){var r=this.translateToGivenOrigin(t,"center","center",i,s);return this.angle?n.util.rotatePoint(r,t,e(this.angle)):r},getCenterPoint:function(){var e=new n.Point(this.left,this.top);return this.translateToCenterPoint(e,this.originX,this.originY)},getPointByOrigin:function(e,t){var i=this.getCenterPoint();return this.translateToOriginPoint(i,e,t)},toLocalPoint:function(t,i,s){var r,o,a=this.getCenterPoint();return r="undefined"!==typeof i&&"undefined"!==typeof s?this.translateToGivenOrigin(a,"center","center",i,s):new n.Point(this.left,this.top),o=new n.Point(t.x,t.y),this.angle&&(o=n.util.rotatePoint(o,a,-e(this.angle))),o.subtractEquals(r)},setPositionByOrigin:function(e,t,i){var s=this.translateToCenterPoint(e,t,i),n=this.translateToOriginPoint(s,this.originX,this.originY);this.set("left",n.x),this.set("top",n.y)},adjustPosition:function(i){var s,r,o=e(this.angle),a=this.getScaledWidth(),l=n.util.cos(o)*a,c=n.util.sin(o)*a;s="string"===typeof this.originX?t[this.originX]:this.originX-.5,r="string"===typeof i?t[i]:i-.5,this.left+=l*(r-s),this.top+=c*(r-s),this.setCoords(),this.originX=i},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var e=this.getCenterPoint();this.originX="center",this.originY="center",this.left=e.x,this.top=e.y},_resetOrigin:function(){var e=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=e.x,this.top=e.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){var e=n.util,t=e.degreesToRadians,i=e.multiplyTransformMatrices,s=e.transformPoint;e.object.extend(n.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(e,t){return t?e?this.calcACoords():this.calcLineCoords():(this.aCoords&&this.lineCoords||this.setCoords(!0),e?this.aCoords:this.lineCoords)},getCoords:function(e,t){return i=this._getCoords(e,t),[new n.Point(i.tl.x,i.tl.y),new n.Point(i.tr.x,i.tr.y),new n.Point(i.br.x,i.br.y),new n.Point(i.bl.x,i.bl.y)];var i},intersectsWithRect:function(e,t,i,s){var r=this.getCoords(i,s);return"Intersection"===n.Intersection.intersectPolygonRectangle(r,e,t).status},intersectsWithObject:function(e,t,i){return"Intersection"===n.Intersection.intersectPolygonPolygon(this.getCoords(t,i),e.getCoords(t,i)).status||e.isContainedWithinObject(this,t,i)||this.isContainedWithinObject(e,t,i)},isContainedWithinObject:function(e,t,i){for(var s=this.getCoords(t,i),n=t?e.aCoords:e.lineCoords,r=0,o=e._getImageLines(n);r<4;r++)if(!e.containsPoint(s[r],o))return!1;return!0},isContainedWithinRect:function(e,t,i,s){var n=this.getBoundingRect(i,s);return n.left>=e.x&&n.left+n.width<=t.x&&n.top>=e.y&&n.top+n.height<=t.y},containsPoint:function(e,t,i,s){var n=this._getCoords(i,s),r=(t=t||this._getImageLines(n),this._findCrossPoints(e,t));return 0!==r&&r%2===1},isOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.getCoords(!0,e).some((function(e){return e.x<=i.x&&e.x>=t.x&&e.y<=i.y&&e.y>=t.y}))||(!!this.intersectsWithRect(t,i,!0,e)||this._containsCenterOfCanvas(t,i,e))},_containsCenterOfCanvas:function(e,t,i){var s={x:(e.x+t.x)/2,y:(e.y+t.y)/2};return!!this.containsPoint(s,null,!0,i)},isPartiallyOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.intersectsWithRect(t,i,!0,e)||this.getCoords(!0,e).every((function(e){return(e.x>=i.x||e.x<=t.x)&&(e.y>=i.y||e.y<=t.y)}))&&this._containsCenterOfCanvas(t,i,e)},_getImageLines:function(e){return{topline:{o:e.tl,d:e.tr},rightline:{o:e.tr,d:e.br},bottomline:{o:e.br,d:e.bl},leftline:{o:e.bl,d:e.tl}}},_findCrossPoints:function(e,t){var i,s,n,r=0;for(var o in t)if(!((n=t[o]).o.y<e.y&&n.d.y<e.y)&&!(n.o.y>=e.y&&n.d.y>=e.y)&&(n.o.x===n.d.x&&n.o.x>=e.x?s=n.o.x:(i=(n.d.y-n.o.y)/(n.d.x-n.o.x),s=-(e.y-0*e.x-(n.o.y-i*n.o.x))/(0-i)),s>=e.x&&(r+=1),2===r))break;return r},getBoundingRect:function(t,i){var s=this.getCoords(t,i);return e.makeBoundingBoxFromPoints(s)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(e){return Math.abs(e)<this.minScaleLimit?e<0?-this.minScaleLimit:this.minScaleLimit:0===e?1e-4:e},scale:function(e){return this._set("scaleX",e),this._set("scaleY",e),this.setCoords()},scaleToWidth:function(e,t){var i=this.getBoundingRect(t).width/this.getScaledWidth();return this.scale(e/this.width/i)},scaleToHeight:function(e,t){var i=this.getBoundingRect(t).height/this.getScaledHeight();return this.scale(e/this.height/i)},calcLineCoords:function(){var i=this.getViewportTransform(),n=this.padding,r=t(this.angle),o=e.cos(r)*n,a=e.sin(r)*n,l=o+a,c=o-a,h=this.calcACoords(),d={tl:s(h.tl,i),tr:s(h.tr,i),bl:s(h.bl,i),br:s(h.br,i)};return n&&(d.tl.x-=c,d.tl.y-=l,d.tr.x+=l,d.tr.y-=c,d.bl.x-=l,d.bl.y+=c,d.br.x+=c,d.br.y+=l),d},calcOCoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),s=this.getViewportTransform(),n=i(s,t),r=i(n,e),o=(r=i(r,[1/s[0],0,0,1/s[3],0,0]),this._calculateCurrentDimensions()),a={};return this.forEachControl((function(e,t,i){a[t]=e.positionHandler(o,r,i)})),a},calcACoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),n=i(t,e),r=this._getTransformedDimensions(),o=r.x/2,a=r.y/2;return{tl:s({x:-o,y:-a},n),tr:s({x:o,y:-a},n),bl:s({x:-o,y:a},n),br:s({x:o,y:a},n)}},setCoords:function(e){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),e||(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords()),this},_calcRotateMatrix:function(){return e.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var e=this.getCenterPoint();return[1,0,0,1,e.x,e.y]},transformMatrixKey:function(e){var t="_",i="";return!e&&this.group&&(i=this.group.transformMatrixKey(e)+t),i+this.top+t+this.left+t+this.scaleX+t+this.scaleY+t+this.skewX+t+this.skewY+t+this.angle+t+this.originX+t+this.originY+t+this.width+t+this.height+t+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(e){var t=this.calcOwnMatrix();if(e||!this.group)return t;var s=this.transformMatrixKey(e),n=this.matrixCache||(this.matrixCache={});return n.key===s?n.value:(this.group&&(t=i(this.group.calcTransformMatrix(!1),t)),n.key=s,n.value=t,t)},calcOwnMatrix:function(){var t=this.transformMatrixKey(!0),i=this.ownMatrixCache||(this.ownMatrixCache={});if(i.key===t)return i.value;var s=this._calcTranslateMatrix(),n={angle:this.angle,translateX:s[4],translateY:s[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return i.key=t,i.value=e.composeMatrix(n),i.value},_getNonTransformedDimensions:function(){var e=this.strokeWidth;return{x:this.width+e,y:this.height+e}},_getTransformedDimensions:function(t,i){"undefined"===typeof t&&(t=this.skewX),"undefined"===typeof i&&(i=this.skewY);var s,n,r,o=0===t&&0===i;if(this.strokeUniform?(n=this.width,r=this.height):(n=(s=this._getNonTransformedDimensions()).x,r=s.y),o)return this._finalizeDimensions(n*this.scaleX,r*this.scaleY);var a=e.sizeAfterTransform(n,r,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:t,skewY:i});return this._finalizeDimensions(a.x,a.y)},_finalizeDimensions:function(e,t){return this.strokeUniform?{x:e+this.strokeWidth,y:t+this.strokeWidth}:{x:e,y:t}},_calculateCurrentDimensions:function(){var e=this.getViewportTransform(),t=this._getTransformedDimensions();return s(t,e,!0).scalarAdd(2*this.padding)}})}(),n.util.object.extend(n.Object.prototype,{sendToBack:function(){return this.group?n.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?n.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(e){return this.group?n.StaticCanvas.prototype.sendBackwards.call(this.group,this,e):this.canvas&&this.canvas.sendBackwards(this,e),this},bringForward:function(e){return this.group?n.StaticCanvas.prototype.bringForward.call(this.group,this,e):this.canvas&&this.canvas.bringForward(this,e),this},moveTo:function(e){return this.group&&"activeSelection"!==this.group.type?n.StaticCanvas.prototype.moveTo.call(this.group,this,e):this.canvas&&this.canvas.moveTo(this,e),this}}),function(){function e(e,t){if(t){if(t.toLive)return e+": url(#SVGID_"+t.id+"); ";var i=new n.Color(t),s=e+": "+i.toRgb()+"; ",r=i.getAlpha();return 1!==r&&(s+=e+"-opacity: "+r.toString()+"; "),s}return e+": none; "}var t=n.util.toFixed;n.util.object.extend(n.Object.prototype,{getSvgStyles:function(t){var i=this.fillRule?this.fillRule:"nonzero",s=this.strokeWidth?this.strokeWidth:"0",n=this.strokeDashArray?this.strokeDashArray.join(" "):"none",r=this.strokeDashOffset?this.strokeDashOffset:"0",o=this.strokeLineCap?this.strokeLineCap:"butt",a=this.strokeLineJoin?this.strokeLineJoin:"miter",l=this.strokeMiterLimit?this.strokeMiterLimit:"4",c="undefined"!==typeof this.opacity?this.opacity:"1",h=this.visible?"":" visibility: hidden;",d=t?"":this.getSvgFilter(),u=e("fill",this.fill);return[e("stroke",this.stroke),"stroke-width: ",s,"; ","stroke-dasharray: ",n,"; ","stroke-linecap: ",o,"; ","stroke-dashoffset: ",r,"; ","stroke-linejoin: ",a,"; ","stroke-miterlimit: ",l,"; ",u,"fill-rule: ",i,"; ","opacity: ",c,";",d,h].join("")},getSvgSpanStyles:function(t,i){var s="; ",n=t.fontFamily?"font-family: "+(-1===t.fontFamily.indexOf("'")&&-1===t.fontFamily.indexOf('"')?"'"+t.fontFamily+"'":t.fontFamily)+s:"",r=t.strokeWidth?"stroke-width: "+t.strokeWidth+s:"",o=(n=n,t.fontSize?"font-size: "+t.fontSize+"px"+s:""),a=t.fontStyle?"font-style: "+t.fontStyle+s:"",l=t.fontWeight?"font-weight: "+t.fontWeight+s:"",c=t.fill?e("fill",t.fill):"",h=t.stroke?e("stroke",t.stroke):"",d=this.getSvgTextDecoration(t);return d&&(d="text-decoration: "+d+s),[h,r,n,o,a,l,d,c,t.deltaY?"baseline-shift: "+-t.deltaY+"; ":"",i?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(e){return["overline","underline","line-through"].filter((function(t){return e[t.replace("-","")]})).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(e,t){var i=e?this.calcTransformMatrix():this.calcOwnMatrix();return'transform="'+n.util.matrixToSVG(i)+(t||"")+'" '},_setSVGBg:function(e){if(this.backgroundColor){var i=n.Object.NUM_FRACTION_DIGITS;e.push("\t\t<rect ",this._getFillAttributes(this.backgroundColor),' x="',t(-this.width/2,i),'" y="',t(-this.height/2,i),'" width="',t(this.width,i),'" height="',t(this.height,i),'"></rect>\n')}},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(e),{reviver:e})},toClipPathSVG:function(e){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(e),{reviver:e})},_createBaseClipPathSVGMarkup:function(e,t){var i=(t=t||{}).reviver,s=t.additionalTransform||"",n=[this.getSvgTransform(!0,s),this.getSvgCommons()].join(""),r=e.indexOf("COMMON_PARTS");return e[r]=n,i?i(e.join("")):e.join("")},_createBaseSVGMarkup:function(e,t){var i,s,r=(t=t||{}).noStyle,o=t.reviver,a=r?"":'style="'+this.getSvgStyles()+'" ',l=t.withShadow?'style="'+this.getSvgFilter()+'" ':"",c=this.clipPath,h=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",d=c&&c.absolutePositioned,u=this.stroke,g=this.fill,p=this.shadow,m=[],f=e.indexOf("COMMON_PARTS"),_=t.additionalTransform;return c&&(c.clipPathId="CLIPPATH_"+n.Object.__uid++,s='<clipPath id="'+c.clipPathId+'" >\n'+c.toClipPathSVG(o)+"</clipPath>\n"),d&&m.push("<g ",l,this.getSvgCommons()," >\n"),m.push("<g ",this.getSvgTransform(!1),d?"":l+this.getSvgCommons()," >\n"),i=[a,h,r?"":this.addPaintOrder()," ",_?'transform="'+_+'" ':""].join(""),e[f]=i,g&&g.toLive&&m.push(g.toSVG(this)),u&&u.toLive&&m.push(u.toSVG(this)),p&&m.push(p.toSVG(this)),c&&m.push(s),m.push(e.join("")),m.push("</g>\n"),d&&m.push("</g>\n"),o?o(m.join("")):m.join("")},addPaintOrder:function(){return"fill"!==this.paintFirst?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var e=n.util.object.extend,t="stateProperties";function i(t,i,s){var n={};s.forEach((function(e){n[e]=t[e]})),e(t[i],n,!0)}function s(e,t,i){if(e===t)return!0;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(!s(e[n],t[n]))return!1;return!0}if(e&&"object"===typeof e){var o,a=Object.keys(e);if(!t||"object"!==typeof t||!i&&a.length!==Object.keys(t).length)return!1;for(n=0,r=a.length;n<r;n++)if("canvas"!==(o=a[n])&&"group"!==o&&!s(e[o],t[o]))return!1;return!0}}n.util.object.extend(n.Object.prototype,{hasStateChanged:function(e){var i="_"+(e=e||t);return Object.keys(this[i]).length<this[e].length||!s(this[i],this,!0)},saveState:function(e){var s=e&&e.propertySet||t,n="_"+s;return this[n]?(i(this,n,this[s]),e&&e.stateProperties&&i(this,n,e.stateProperties),this):this.setupState(e)},setupState:function(e){var i=(e=e||{}).propertySet||t;return e.propertySet=i,this["_"+i]={},this.saveState(e),this}})}(),function(){var e=n.util.degreesToRadians;n.util.object.extend(n.Object.prototype,{_findTargetCorner:function(e,t){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var i,s,n,r=e.x,o=e.y,a=Object.keys(this.oCoords),l=a.length-1;for(this.__corner=0;l>=0;l--)if(n=a[l],this.isControlVisible(n)&&(s=this._getImageLines(t?this.oCoords[n].touchCorner:this.oCoords[n].corner),0!==(i=this._findCrossPoints({x:r,y:o},s))&&i%2===1))return this.__corner=n,n;return!1},forEachControl:function(e){for(var t in this.controls)e(this.controls[t],t,this)},_setCornerCoords:function(){var e=this.oCoords;for(var t in e){var i=this.controls[t];e[t].corner=i.calcCornerCoords(this.angle,this.cornerSize,e[t].x,e[t].y,!1),e[t].touchCorner=i.calcCornerCoords(this.angle,this.touchCornerSize,e[t].x,e[t].y,!0)}},drawSelectionBackground:function(t){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;t.save();var i=this.getCenterPoint(),s=this._calculateCurrentDimensions(),n=this.canvas.viewportTransform;return t.translate(i.x,i.y),t.scale(1/n[0],1/n[3]),t.rotate(e(this.angle)),t.fillStyle=this.selectionBackgroundColor,t.fillRect(-s.x/2,-s.y/2,s.x,s.y),t.restore(),this},drawBorders:function(e,t){t=t||{};var i=this._calculateCurrentDimensions(),s=this.borderScaleFactor,n=i.x+s,r=i.y+s,o="undefined"!==typeof t.hasControls?t.hasControls:this.hasControls,a=!1;return e.save(),e.strokeStyle=t.borderColor||this.borderColor,this._setLineDash(e,t.borderDashArray||this.borderDashArray),e.strokeRect(-n/2,-r/2,n,r),o&&(e.beginPath(),this.forEachControl((function(t,i,s){t.withConnection&&t.getVisibility(s,i)&&(a=!0,e.moveTo(t.x*n,t.y*r),e.lineTo(t.x*n+t.offsetX,t.y*r+t.offsetY))})),a&&e.stroke()),e.restore(),this},drawBordersInGroup:function(e,t,i){i=i||{};var s=n.util.sizeAfterTransform(this.width,this.height,t),r=this.strokeWidth,o=this.strokeUniform,a=this.borderScaleFactor,l=s.x+r*(o?this.canvas.getZoom():t.scaleX)+a,c=s.y+r*(o?this.canvas.getZoom():t.scaleY)+a;return e.save(),this._setLineDash(e,i.borderDashArray||this.borderDashArray),e.strokeStyle=i.borderColor||this.borderColor,e.strokeRect(-l/2,-c/2,l,c),e.restore(),this},drawControls:function(e,t){t=t||{},e.save();var i,s,r=1;return this.canvas&&(r=this.canvas.getRetinaScaling()),e.setTransform(r,0,0,r,0,0),e.strokeStyle=e.fillStyle=t.cornerColor||this.cornerColor,this.transparentCorners||(e.strokeStyle=t.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(e,t.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(i=this.group.calcTransformMatrix()),this.forEachControl((function(r,o,a){s=a.oCoords[o],r.getVisibility(a,o)&&(i&&(s=n.util.transformPoint(s,i)),r.render(e,s.x,s.y,t,a))})),e.restore(),this},isControlVisible:function(e){return this.controls[e]&&this.controls[e].getVisibility(this,e)},setControlVisible:function(e,t){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[e]=t,this},setControlsVisibility:function(e){for(var t in e||(e={}),e)this.setControlVisible(t,e[t]);return this},onDeselect:function(){},onSelect:function(){}})}(),n.util.object.extend(n.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(t){e.set("left",t),o.requestRenderAll(),r()},onComplete:function(){e.setCoords(),s()}})},fxCenterObjectV:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(t){e.set("top",t),o.requestRenderAll(),r()},onComplete:function(){e.setCoords(),s()}})},fxRemove:function(e,t){var i=function(){},s=(t=t||{}).onComplete||i,r=t.onChange||i,o=this;return n.util.animate({target:this,startValue:e.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(t){e.set("opacity",t),o.requestRenderAll(),r()},onComplete:function(){o.remove(e),s()}})}}),n.util.object.extend(n.Object.prototype,{animate:function(){if(arguments[0]&&"object"===typeof arguments[0]){var e,t,i=[],s=[];for(e in arguments[0])i.push(e);for(var n=0,r=i.length;n<r;n++)e=i[n],t=n!==r-1,s.push(this._animate(e,arguments[0][e],arguments[1],t));return s}return this._animate.apply(this,arguments)},_animate:function(e,t,i,s){var r,o=this;t=t.toString(),i=i?n.util.object.clone(i):{},~e.indexOf(".")&&(r=e.split("."));var a=o.colorProperties.indexOf(e)>-1||r&&o.colorProperties.indexOf(r[1])>-1,l=r?this.get(r[0])[r[1]]:this.get(e);"from"in i||(i.from=l),a||(t=~t.indexOf("=")?l+parseFloat(t.replace("=","")):parseFloat(t));var c={target:this,startValue:i.from,endValue:t,byValue:i.by,easing:i.easing,duration:i.duration,abort:i.abort&&function(e,t,s){return i.abort.call(o,e,t,s)},onChange:function(t,n,a){r?o[r[0]][r[1]]=t:o.set(e,t),s||i.onChange&&i.onChange(t,n,a)},onComplete:function(e,t,n){s||(o.setCoords(),i.onComplete&&i.onComplete(e,t,n))}};return a?n.util.animateColor(c.startValue,c.endValue,c.duration,c):n.util.animate(c)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.object.clone,n={x1:1,x2:1,y1:1,y2:1};function r(e,t){var i=e.origin,s=e.axis1,n=e.axis2,r=e.dimension,o=t.nearest,a=t.center,l=t.farthest;return function(){switch(this.get(i)){case o:return Math.min(this.get(s),this.get(n));case a:return Math.min(this.get(s),this.get(n))+.5*this.get(r);case l:return Math.max(this.get(s),this.get(n))}}}t.Line?t.warn("fabric.Line is already defined"):(t.Line=t.util.createClass(t.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:t.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(e,t){e||(e=[0,0,0,0]),this.callSuper("initialize",t),this.set("x1",e[0]),this.set("y1",e[1]),this.set("x2",e[2]),this.set("y2",e[3]),this._setWidthHeight(t)},_setWidthHeight:function(e){e||(e={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in e?e.left:this._getLeftToOriginX(),this.top="top"in e?e.top:this._getTopToOriginY()},_set:function(e,t){return this.callSuper("_set",e,t),"undefined"!==typeof n[e]&&this._setWidthHeight(),this},_getLeftToOriginX:r({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:r({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(e){e.beginPath();var t=this.calcLinePoints();e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineWidth=this.strokeWidth;var i=e.strokeStyle;e.strokeStyle=this.stroke||e.fillStyle,this.stroke&&this._renderStroke(e),e.strokeStyle=i},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(e){return i(this.callSuper("toObject",e),this.calcLinePoints())},_getNonTransformedDimensions:function(){var e=this.callSuper("_getNonTransformedDimensions");return"butt"===this.strokeLineCap&&(0===this.width&&(e.y-=this.strokeWidth),0===this.height&&(e.x-=this.strokeWidth)),e},calcLinePoints:function(){var e=this.x1<=this.x2?-1:1,t=this.y1<=this.y2?-1:1,i=e*this.width*.5,s=t*this.height*.5;return{x1:i,x2:e*this.width*-.5,y1:s,y2:t*this.height*-.5}},_toSVG:function(){var e=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',e.x1,'" y1="',e.y1,'" x2="',e.x2,'" y2="',e.y2,'" />\n']}}),t.Line.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),t.Line.fromElement=function(e,s,n){n=n||{};var r=t.parseAttributes(e,t.Line.ATTRIBUTE_NAMES),o=[r.x1||0,r.y1||0,r.x2||0,r.y2||0];s(new t.Line(o,i(r,n)))},t.Line.fromObject=function(e,i){var n=s(e,!0);n.points=[e.x1,e.y1,e.x2,e.y2],t.Object._fromObject("Line",n,(function(e){delete e.points,i&&i(e)}),"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians;t.Circle?t.warn("fabric.Circle is already defined."):(t.Circle=t.util.createClass(t.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:t.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(e,t){return this.callSuper("_set",e,t),"radius"===e&&this.setRadius(t),this},toObject:function(e){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(e))},_toSVG:function(){var e,s=(this.endAngle-this.startAngle)%360;if(0===s)e=["<circle ","COMMON_PARTS",'cx="0" cy="0" ','r="',this.radius,'" />\n'];else{var n=i(this.startAngle),r=i(this.endAngle),o=this.radius;e=['<path d="M '+t.util.cos(n)*o+" "+t.util.sin(n)*o," A "+o+" "+o," 0 ",+(s>180?"1":"0")+" 1"," "+t.util.cos(r)*o+" "+t.util.sin(r)*o,'" ',"COMMON_PARTS"," />\n"]}return e},_render:function(e){e.beginPath(),e.arc(0,0,this.radius,i(this.startAngle),i(this.endAngle),!1),this._renderPaintInOrder(e)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(e){return this.radius=e,this.set("width",2*e).set("height",2*e)}}),t.Circle.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),t.Circle.fromElement=function(e,i){var s,n=t.parseAttributes(e,t.Circle.ATTRIBUTE_NAMES);if(!("radius"in(s=n)&&s.radius>=0))throw new Error("value of `r` attribute is required and can not be negative");n.left=(n.left||0)-n.radius,n.top=(n.top||0)-n.radius,i(new t.Circle(n))},t.Circle.fromObject=function(e,i){t.Object._fromObject("Circle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Triangle?t.warn("fabric.Triangle is already defined"):(t.Triangle=t.util.createClass(t.Object,{type:"triangle",width:100,height:100,_render:function(e){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,i),e.lineTo(0,-i),e.lineTo(t,i),e.closePath(),this._renderPaintInOrder(e)},_toSVG:function(){var e=this.width/2,t=this.height/2;return["<polygon ","COMMON_PARTS",'points="',[-e+" "+t,"0 "+-t,e+" "+t].join(","),'" />']}}),t.Triangle.fromObject=function(e,i){return t.Object._fromObject("Triangle",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=2*Math.PI;t.Ellipse?t.warn("fabric.Ellipse is already defined."):(t.Ellipse=t.util.createClass(t.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this.set("rx",e&&e.rx||0),this.set("ry",e&&e.ry||0)},_set:function(e,t){switch(this.callSuper("_set",e,t),e){case"rx":this.rx=t,this.set("width",2*t);break;case"ry":this.ry=t,this.set("height",2*t)}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,'" />\n']},_render:function(e){e.beginPath(),e.save(),e.transform(1,0,0,this.ry/this.rx,0,0),e.arc(0,0,this.rx,0,i,!1),e.restore(),this._renderPaintInOrder(e)}}),t.Ellipse.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),t.Ellipse.fromElement=function(e,i){var s=t.parseAttributes(e,t.Ellipse.ATTRIBUTE_NAMES);s.left=(s.left||0)-s.rx,s.top=(s.top||0)-s.ry,i(new t.Ellipse(s))},t.Ellipse.fromObject=function(e,i){t.Object._fromObject("Ellipse",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend;t.Rect?t.warn("fabric.Rect is already defined"):(t.Rect=t.util.createClass(t.Object,{stateProperties:t.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(e){var t=this.rx?Math.min(this.rx,this.width/2):0,i=this.ry?Math.min(this.ry,this.height/2):0,s=this.width,n=this.height,r=-this.width/2,o=-this.height/2,a=0!==t||0!==i,l=.4477152502;e.beginPath(),e.moveTo(r+t,o),e.lineTo(r+s-t,o),a&&e.bezierCurveTo(r+s-l*t,o,r+s,o+l*i,r+s,o+i),e.lineTo(r+s,o+n-i),a&&e.bezierCurveTo(r+s,o+n-l*i,r+s-l*t,o+n,r+s-t,o+n),e.lineTo(r+t,o+n),a&&e.bezierCurveTo(r+l*t,o+n,r,o+n-l*i,r,o+n-i),e.lineTo(r,o+i),a&&e.bezierCurveTo(r,o+l*i,r+l*t,o,r+t,o),e.closePath(),this._renderPaintInOrder(e)},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<rect ","COMMON_PARTS",'x="',-this.width/2,'" y="',-this.height/2,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,'" />\n']}}),t.Rect.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),t.Rect.fromElement=function(e,s,n){if(!e)return s(null);n=n||{};var r=t.parseAttributes(e,t.Rect.ATTRIBUTE_NAMES);r.left=r.left||0,r.top=r.top||0,r.height=r.height||0,r.width=r.width||0;var o=new t.Rect(i(n?t.util.object.clone(n):{},r));o.visible=o.visible&&o.width>0&&o.height>0,s(o)},t.Rect.fromObject=function(e,i){return t.Object._fromObject("Rect",e,i)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.util.array.min,n=t.util.array.max,r=t.util.toFixed,o=t.util.projectStrokeOnPoints;t.Polyline?t.warn("fabric.Polyline is already defined"):(t.Polyline=t.util.createClass(t.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:t.Object.prototype.cacheProperties.concat("points"),initialize:function(e,t){t=t||{},this.points=e||[],this.callSuper("initialize",t),this._setPositionDimensions(t)},_projectStrokeOnPoints:function(){return o(this.points,this,!0)},_setPositionDimensions:function(e){var t,i=this._calcDimensions(e),s=this.exactBoundingBox?this.strokeWidth:0;this.width=i.width-s,this.height=i.height-s,e.fromSVG||(t=this.translateToGivenOrigin({x:i.left-this.strokeWidth/2+s/2,y:i.top-this.strokeWidth/2+s/2},"left","top",this.originX,this.originY)),"undefined"===typeof e.left&&(this.left=e.fromSVG?i.left:t.x),"undefined"===typeof e.top&&(this.top=e.fromSVG?i.top:t.y),this.pathOffset={x:i.left+this.width/2+s/2,y:i.top+this.height/2+s/2}},_calcDimensions:function(){var e=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,t=s(e,"x")||0,i=s(e,"y")||0;return{left:t,top:i,width:(n(e,"x")||0)-t,height:(n(e,"y")||0)-i}},toObject:function(e){return i(this.callSuper("toObject",e),{points:this.points.concat()})},_toSVG:function(){for(var e=[],i=this.pathOffset.x,s=this.pathOffset.y,n=t.Object.NUM_FRACTION_DIGITS,o=0,a=this.points.length;o<a;o++)e.push(r(this.points[o].x-i,n),",",r(this.points[o].y-s,n)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',e.join(""),'" />\n']},commonRender:function(e){var t,i=this.points.length,s=this.pathOffset.x,n=this.pathOffset.y;if(!i||isNaN(this.points[i-1].y))return!1;e.beginPath(),e.moveTo(this.points[0].x-s,this.points[0].y-n);for(var r=0;r<i;r++)t=this.points[r],e.lineTo(t.x-s,t.y-n);return!0},_render:function(e){this.commonRender(e)&&this._renderPaintInOrder(e)},complexity:function(){return this.get("points").length}}),t.Polyline.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polyline.fromElementGenerator=function(e){return function(s,n,r){if(!s)return n(null);r||(r={});var o=t.parsePointsAttribute(s.getAttribute("points")),a=t.parseAttributes(s,t[e].ATTRIBUTE_NAMES);a.fromSVG=!0,n(new t[e](o,i(a,r)))}},t.Polyline.fromElement=t.Polyline.fromElementGenerator("Polyline"),t.Polyline.fromObject=function(e,i){return t.Object._fromObject("Polyline",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.projectStrokeOnPoints;t.Polygon?t.warn("fabric.Polygon is already defined"):(t.Polygon=t.util.createClass(t.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return i(this.points,this)},_render:function(e){this.commonRender(e)&&(e.closePath(),this._renderPaintInOrder(e))}}),t.Polygon.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polygon.fromElement=t.Polyline.fromElementGenerator("Polygon"),t.Polygon.fromObject=function(e,i){t.Object._fromObject("Polygon",e,i,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,s=t.util.array.max,n=t.util.object.extend,r=t.util.object.clone,o=t.util.toFixed;t.Path?t.warn("fabric.Path is already defined"):(t.Path=t.util.createClass(t.Object,{type:"path",path:null,cacheProperties:t.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:t.Object.prototype.stateProperties.concat("path"),initialize:function(e,t){delete(t=r(t||{})).path,this.callSuper("initialize",t),this._setPath(e||[],t)},_setPath:function(e,i){this.path=t.util.makePathSimpler(Array.isArray(e)?e:t.util.parsePath(e)),t.Polyline.prototype._setPositionDimensions.call(this,i||{})},_renderPathCommands:function(e){var t,i=0,s=0,n=0,r=0,o=0,a=0,l=-this.pathOffset.x,c=-this.pathOffset.y;e.beginPath();for(var h=0,d=this.path.length;h<d;++h)switch((t=this.path[h])[0]){case"L":n=t[1],r=t[2],e.lineTo(n+l,r+c);break;case"M":i=n=t[1],s=r=t[2],e.moveTo(n+l,r+c);break;case"C":n=t[5],r=t[6],o=t[3],a=t[4],e.bezierCurveTo(t[1]+l,t[2]+c,o+l,a+c,n+l,r+c);break;case"Q":e.quadraticCurveTo(t[1]+l,t[2]+c,t[3]+l,t[4]+c),n=t[3],r=t[4],o=t[1],a=t[2];break;case"z":case"Z":n=i,r=s,e.closePath()}},_render:function(e){this._renderPathCommands(e),this._renderPaintInOrder(e)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(e){return n(this.callSuper("toObject",e),{path:this.path.map((function(e){return e.slice()}))})},toDatalessObject:function(e){var t=this.toObject(["sourcePath"].concat(e));return t.sourcePath&&delete t.path,t},_toSVG:function(){return["<path ","COMMON_PARTS",'d="',t.util.joinPath(this.path),'" stroke-linecap="round" ',"/>\n"]},_getOffsetTransform:function(){var e=t.Object.NUM_FRACTION_DIGITS;return" translate("+o(-this.pathOffset.x,e)+", "+o(-this.pathOffset.y,e)+")"},toClipPathSVG:function(e){var t=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},toSVG:function(e){var t=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var e,n,r=[],o=[],a=0,l=0,c=0,h=0,d=0,u=this.path.length;d<u;++d){switch((e=this.path[d])[0]){case"L":c=e[1],h=e[2],n=[];break;case"M":a=c=e[1],l=h=e[2],n=[];break;case"C":n=t.util.getBoundsOfCurve(c,h,e[1],e[2],e[3],e[4],e[5],e[6]),c=e[5],h=e[6];break;case"Q":n=t.util.getBoundsOfCurve(c,h,e[1],e[2],e[1],e[2],e[3],e[4]),c=e[3],h=e[4];break;case"z":case"Z":c=a,h=l}n.forEach((function(e){r.push(e.x),o.push(e.y)})),r.push(c),o.push(h)}var g=i(r)||0,p=i(o)||0;return{left:g,top:p,width:(s(r)||0)-g,height:(s(o)||0)-p}}}),t.Path.fromObject=function(e,i){if("string"===typeof e.sourcePath){var s=e.sourcePath;t.loadSVGFromURL(s,(function(s){var n=s[0];n.setOptions(e),e.clipPath?t.util.enlivenObjects([e.clipPath],(function(e){n.clipPath=e[0],i&&i(n)})):i&&i(n)}))}else t.Object._fromObject("Path",e,i,"path")},t.Path.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(["d"]),t.Path.fromElement=function(e,i,s){var r=t.parseAttributes(e,t.Path.ATTRIBUTE_NAMES);r.fromSVG=!0,i(new t.Path(r.d,n(r,s)))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,s=t.util.array.max;t.Group||(t.Group=t.util.createClass(t.Object,t.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(e,t,i){t=t||{},this._objects=[],i&&this.callSuper("initialize",t),this._objects=e||[];for(var s=this._objects.length;s--;)this._objects[s].group=this;if(i)this._updateObjectsACoords();else{var n=t&&t.centerPoint;void 0!==t.originX&&(this.originX=t.originX),void 0!==t.originY&&(this.originY=t.originY),n||this._calcBounds(),this._updateObjectsCoords(n),delete t.centerPoint,this.callSuper("initialize",t)}this.setCoords()},_updateObjectsACoords:function(){for(var e=this._objects.length;e--;)this._objects[e].setCoords(true)},_updateObjectsCoords:function(e){e=e||this.getCenterPoint();for(var t=this._objects.length;t--;)this._updateObjectCoords(this._objects[t],e)},_updateObjectCoords:function(e,t){var i=e.left,s=e.top;e.set({left:i-t.x,top:s-t.y}),e.group=this,e.setCoords(!0)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(e){var i=!!this.group;return this._restoreObjectsState(),t.util.resetObjectTransform(this),e&&(i&&t.util.removeTransformFromObject(e,this.group.calcTransformMatrix()),this._objects.push(e),e.group=this,e._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,i?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(e){return this._restoreObjectsState(),t.util.resetObjectTransform(this),this.remove(e),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(e){this.dirty=!0,e.group=this,e._set("canvas",this.canvas)},_onObjectRemoved:function(e){this.dirty=!0,delete e.group},_set:function(e,i){var s=this._objects.length;if(this.useSetOnGroup)for(;s--;)this._objects[s].setOnGroup(e,i);if("canvas"===e)for(;s--;)this._objects[s]._set(e,i);t.Object.prototype._set.call(this,e,i)},toObject:function(e){var i=this.includeDefaultValues,s=this._objects.filter((function(e){return!e.excludeFromExport})).map((function(t){var s=t.includeDefaultValues;t.includeDefaultValues=i;var n=t.toObject(e);return t.includeDefaultValues=s,n})),n=t.Object.prototype.toObject.call(this,e);return n.objects=s,n},toDatalessObject:function(e){var i,s=this.sourcePath;if(s)i=s;else{var n=this.includeDefaultValues;i=this._objects.map((function(t){var i=t.includeDefaultValues;t.includeDefaultValues=n;var s=t.toDatalessObject(e);return t.includeDefaultValues=i,s}))}var r=t.Object.prototype.toDatalessObject.call(this,e);return r.objects=i,r},render:function(e){this._transformDone=!0,this.callSuper("render",e),this._transformDone=!1},shouldCache:function(){var e=t.Object.prototype.shouldCache.call(this);if(e)for(var i=0,s=this._objects.length;i<s;i++)if(this._objects[i].willDrawShadow())return this.ownCaching=!1,!1;return e},willDrawShadow:function(){if(t.Object.prototype.willDrawShadow.call(this))return!0;for(var e=0,i=this._objects.length;e<i;e++)if(this._objects[e].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(e){for(var t=0,i=this._objects.length;t<i;t++)this._objects[t].render(e);this._drawClipPath(e,this.clipPath)},isCacheDirty:function(e){if(this.callSuper("isCacheDirty",e))return!0;if(!this.statefullCache)return!1;for(var t=0,i=this._objects.length;t<i;t++)if(this._objects[t].isCacheDirty(!0)){if(this._cacheCanvas){var s=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-s/2,-n/2,s,n)}return!0}return!1},_restoreObjectsState:function(){var e=this.calcOwnMatrix();return this._objects.forEach((function(i){t.util.addTransformToObject(i,e),delete i.group,i.setCoords()})),this},destroy:function(){return this._objects.forEach((function(e){e.set("dirty",!0)})),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[]},toActiveSelection:function(){if(this.canvas){var e=this._objects,i=this.canvas;this._objects=[];var s=this.toObject();delete s.objects;var n=new t.ActiveSelection([]);return n.set(s),n.type="activeSelection",i.remove(this),e.forEach((function(e){e.group=n,e.dirty=!0,i.add(e)})),n.canvas=i,n._objects=e,i._activeObject=n,n.setCoords(),n}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){return this.forEachObject((function(e){e.setCoords(true)})),this},_calcBounds:function(e){for(var t,i,s,n,r=[],o=[],a=["tr","br","bl","tl"],l=0,c=this._objects.length,h=a.length;l<c;++l){for(s=(t=this._objects[l]).calcACoords(),n=0;n<h;n++)i=a[n],r.push(s[i].x),o.push(s[i].y);t.aCoords=s}this._getBounds(r,o,e)},_getBounds:function(e,n,r){var o=new t.Point(i(e),i(n)),a=new t.Point(s(e),s(n)),l=o.y||0,c=o.x||0,h=a.x-o.x||0,d=a.y-o.y||0;this.width=h,this.height=d,r||this.setPositionByOrigin({x:c,y:l},"left","top")},_toSVG:function(e){for(var t=["<g ","COMMON_PARTS"," >\n"],i=0,s=this._objects.length;i<s;i++)t.push("\t\t",this._objects[i].toSVG(e));return t.push("</g>\n"),t},getSvgStyles:function(){var e="undefined"!==typeof this.opacity&&1!==this.opacity?"opacity: "+this.opacity+";":"",t=this.visible?"":" visibility: hidden;";return[e,this.getSvgFilter(),t].join("")},toClipPathSVG:function(e){for(var t=[],i=0,s=this._objects.length;i<s;i++)t.push("\t",this._objects[i].toClipPathSVG(e));return this._createBaseClipPathSVGMarkup(t,{reviver:e})}}),t.Group.fromObject=function(e,i){var s=e.objects,n=t.util.object.clone(e,!0);delete n.objects,"string"!==typeof s?t.util.enlivenObjects(s,(function(s){t.util.enlivenObjectEnlivables(e,n,(function(){i&&i(new t.Group(s,n,!0))}))})):t.loadSVGFromURL(s,(function(r){var o=t.util.groupSVGElements(r,e,s),a=n.clipPath;delete n.clipPath,o.set(n),a?t.util.enlivenObjects([a],(function(e){o.clipPath=e[0],i&&i(o)})):i&&i(o)}))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.ActiveSelection||(t.ActiveSelection=t.util.createClass(t.Group,{type:"activeSelection",initialize:function(e,i){i=i||{},this._objects=e||[];for(var s=this._objects.length;s--;)this._objects[s].group=this;i.originX&&(this.originX=i.originX),i.originY&&(this.originY=i.originY),this._calcBounds(),this._updateObjectsCoords(),t.Object.prototype.initialize.call(this,i),this.setCoords()},toGroup:function(){var e=this._objects.concat();this._objects=[];var i=t.Object.prototype.toObject.call(this),s=new t.Group([]);if(delete i.type,s.set(i),e.forEach((function(e){e.canvas.remove(e),e.group=s})),s._objects=e,!this.canvas)return s;var n=this.canvas;return n.add(s),n._activeObject=s,s.setCoords(),s},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(e,t,i){e.save(),e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,"undefined"===typeof(i=i||{}).hasControls&&(i.hasControls=!1),i.forActiveSelection=!0;for(var s=0,n=this._objects.length;s<n;s++)this._objects[s]._renderControls(e,i);this.callSuper("_renderControls",e,t),e.restore()}}),t.ActiveSelection.fromObject=function(e,i){t.util.enlivenObjects(e.objects,(function(s){delete e.objects,i&&i(new t.ActiveSelection(s,e,!0))}))})}(t),function(e){"use strict";var t=n.util.object.extend;e.fabric||(e.fabric={}),e.fabric.Image?n.warn("fabric.Image is already defined."):(n.Image=n.util.createClass(n.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:n.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:n.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(e,t){t||(t={}),this.filters=[],this.cacheKey="texture"+n.Object.__uid++,this.callSuper("initialize",t),this._initElement(e,t)},getElement:function(){return this._element||{}},setElement:function(e,t){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=e,this._originalElement=e,this._initConfig(t),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(e){var t=n.filterBackend;t&&t.evictCachesForKey&&t.evictCachesForKey(e)},dispose:function(){this.callSuper("dispose"),this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(e){n.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var e=this.getElement();return{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height}},_stroke:function(e){if(this.stroke&&0!==this.strokeWidth){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,-i),e.lineTo(t,-i),e.lineTo(t,i),e.lineTo(-t,i),e.lineTo(-t,-i),e.closePath()}},toObject:function(e){var i=[];this.filters.forEach((function(e){e&&i.push(e.toObject())}));var s=t(this.callSuper("toObject",["cropX","cropY"].concat(e)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:i});return this.resizeFilter&&(s.resizeFilter=this.resizeFilter.toObject()),s},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var e,t=[],i=[],s=this._element,r=-this.width/2,o=-this.height/2,a="",l="";if(!s)return[];if(this.hasCrop()){var c=n.Object.__uid++;t.push('<clipPath id="imageCrop_'+c+'">\n','\t<rect x="'+r+'" y="'+o+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),a=' clip-path="url(#imageCrop_'+c+')" '}if(this.imageSmoothing||(l='" image-rendering="optimizeSpeed'),i.push("\t<image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',r-this.cropX,'" y="',o-this.cropY,'" width="',s.width||s.naturalWidth,'" height="',s.height||s.height,l,'"',a,"></image>\n"),this.stroke||this.strokeDashArray){var h=this.fill;this.fill=null,e=["\t<rect ",'x="',r,'" y="',o,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'"/>\n'],this.fill=h}return t="fill"!==this.paintFirst?t.concat(e,i):t.concat(i,e)},getSrc:function(e){var t=e?this._element:this._originalElement;return t?t.toDataURL?t.toDataURL():this.srcFromAttribute?t.getAttribute("src"):t.src:this.src||""},setSrc:function(e,t,i){return n.util.loadImage(e,(function(e,s){this.setElement(e,i),this._setWidthHeight(),t&&t(this,s)}),this,i&&i.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var e=this.resizeFilter,t=this.minimumScaleTrigger,i=this.getTotalObjectScaling(),s=i.scaleX,r=i.scaleY,o=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!e||s>t&&r>t)return this._element=o,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=s,void(this._lastScaleY=r);n.filterBackend||(n.filterBackend=n.initFilterBackend());var a=n.util.createCanvasElement(),l=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,c=o.width,h=o.height;a.width=c,a.height=h,this._element=a,this._lastScaleX=e.scaleX=s,this._lastScaleY=e.scaleY=r,n.filterBackend.applyFilters([e],o,c,h,this._element,l),this._filterScalingX=a.width/this._originalElement.width,this._filterScalingY=a.height/this._originalElement.height},applyFilters:function(e){if(e=(e=e||this.filters||[]).filter((function(e){return e&&!e.isNeutralState()})),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),0===e.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var t=this._originalElement,i=t.naturalWidth||t.width,s=t.naturalHeight||t.height;if(this._element===this._originalElement){var r=n.util.createCanvasElement();r.width=i,r.height=s,this._element=r,this._filteredEl=r}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,i,s),this._lastScaleX=1,this._lastScaleY=1;return n.filterBackend||(n.filterBackend=n.initFilterBackend()),n.filterBackend.applyFilters(e,this._originalElement,i,s,this._element,this.cacheKey),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(e){n.util.setImageSmoothing(e,this.imageSmoothing),!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(e),this._renderPaintInOrder(e)},drawCacheOnCanvas:function(e){n.util.setImageSmoothing(e,this.imageSmoothing),n.Object.prototype.drawCacheOnCanvas.call(this,e)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(e){var t=this._element;if(t){var i=this._filterScalingX,s=this._filterScalingY,n=this.width,r=this.height,o=Math.min,a=Math.max,l=a(this.cropX,0),c=a(this.cropY,0),h=t.naturalWidth||t.width,d=t.naturalHeight||t.height,u=l*i,g=c*s,p=o(n*i,h-u),m=o(r*s,d-g),f=-n/2,_=-r/2,v=o(n,h/i-l),C=o(r,d/s-c);t&&e.drawImage(t,u,g,p,m,f,_,v,C)}},_needsResize:function(){var e=this.getTotalObjectScaling();return e.scaleX!==this._lastScaleX||e.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(e,t){this.setElement(n.util.getById(e),t),n.util.addClass(this.getElement(),n.Image.CSS_CANVAS)},_initConfig:function(e){e||(e={}),this.setOptions(e),this._setWidthHeight(e)},_initFilters:function(e,t){e&&e.length?n.util.enlivenObjects(e,(function(e){t&&t(e)}),"fabric.Image.filters"):t&&t()},_setWidthHeight:function(e){e||(e={});var t=this.getElement();this.width=e.width||t.naturalWidth||t.width||0,this.height=e.height||t.naturalHeight||t.height||0},parsePreserveAspectRatioAttribute:function(){var e,t=n.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),i=this._element.width,s=this._element.height,r=1,o=1,a=0,l=0,c=0,h=0,d=this.width,u=this.height,g={width:d,height:u};return!t||"none"===t.alignX&&"none"===t.alignY?(r=d/i,o=u/s):("meet"===t.meetOrSlice&&(e=(d-i*(r=o=n.util.findScaleToFit(this._element,g)))/2,"Min"===t.alignX&&(a=-e),"Max"===t.alignX&&(a=e),e=(u-s*o)/2,"Min"===t.alignY&&(l=-e),"Max"===t.alignY&&(l=e)),"slice"===t.meetOrSlice&&(e=i-d/(r=o=n.util.findScaleToCover(this._element,g)),"Mid"===t.alignX&&(c=e/2),"Max"===t.alignX&&(c=e),e=s-u/o,"Mid"===t.alignY&&(h=e/2),"Max"===t.alignY&&(h=e),i=d/r,s=u/o)),{width:i,height:s,scaleX:r,scaleY:o,offsetLeft:a,offsetTop:l,cropX:c,cropY:h}}}),n.Image.CSS_CANVAS="canvas-img",n.Image.prototype.getSvgSrc=n.Image.prototype.getSrc,n.Image.fromObject=function(e,t){var i=n.util.object.clone(e);n.util.loadImage(i.src,(function(e,s){s?t&&t(null,!0):n.Image.prototype._initFilters.call(i,i.filters,(function(s){i.filters=s||[],n.Image.prototype._initFilters.call(i,[i.resizeFilter],(function(s){i.resizeFilter=s[0],n.util.enlivenObjectEnlivables(i,i,(function(){var s=new n.Image(e,i);t(s,!1)}))}))}))}),null,i.crossOrigin)},n.Image.fromURL=function(e,t,i){n.util.loadImage(e,(function(e,s){t&&t(new n.Image(e,i),s)}),null,i&&i.crossOrigin)},n.Image.ATTRIBUTE_NAMES=n.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),n.Image.fromElement=function(e,i,s){var r=n.parseAttributes(e,n.Image.ATTRIBUTE_NAMES);n.Image.fromURL(r["xlink:href"],i,t(s?n.util.object.clone(s):{},r))})}(t),n.util.object.extend(n.Object.prototype,{_getAngleValueForStraighten:function(){var e=this.angle%360;return e>0?90*Math.round((e-1)/90):90*Math.round(e/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(e){var t=function(){},i=(e=e||{}).onComplete||t,s=e.onChange||t,r=this;return n.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(e){r.rotate(e),s()},onComplete:function(){r.setCoords(),i()}})}}),n.util.object.extend(n.StaticCanvas.prototype,{straightenObject:function(e){return e.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(e){return e.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){"use strict";function e(e,t){var i="precision "+t+" float;\nvoid main(){}",s=e.createShader(e.FRAGMENT_SHADER);return e.shaderSource(s,i),e.compileShader(s),!!e.getShaderParameter(s,e.COMPILE_STATUS)}function t(e){e&&e.tileSize&&(this.tileSize=e.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}n.isWebglSupported=function(t){if(n.isLikelyNode)return!1;t=t||n.WebglFilterBackend.prototype.tileSize;var i=document.createElement("canvas"),s=i.getContext("webgl")||i.getContext("experimental-webgl"),r=!1;if(s){n.maxTextureSize=s.getParameter(s.MAX_TEXTURE_SIZE),r=n.maxTextureSize>=t;for(var o=["highp","mediump","lowp"],a=0;a<3;a++)if(e(s,o[a])){n.webGlPrecision=o[a];break}}return this.isSupported=r,r},n.WebglFilterBackend=t,t.prototype={tileSize:2048,resources:{},setupGLContext:function(e,t){this.dispose(),this.createWebGLCanvas(e,t),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(e,t)},chooseFastestCopyGLTo2DMethod:function(e,t){var i,s="undefined"!==typeof window.performance;try{new ImageData(1,1),i=!0}catch(p){i=!1}var r="undefined"!==typeof ArrayBuffer,l="undefined"!==typeof Uint8ClampedArray;if(s&&i&&r&&l){var c=n.util.createCanvasElement(),h=new ArrayBuffer(e*t*4);if(n.forceGLPutImageData)return this.imageBuffer=h,void(this.copyGLTo2D=a);var d,u,g={imageBuffer:h,destinationWidth:e,destinationHeight:t,targetCanvas:c};c.width=e,c.height=t,d=window.performance.now(),o.call(g,this.gl,g),u=window.performance.now()-d,d=window.performance.now(),a.call(g,this.gl,g),u>window.performance.now()-d?(this.imageBuffer=h,this.copyGLTo2D=a):this.copyGLTo2D=o}},createWebGLCanvas:function(e,t){var i=n.util.createCanvasElement();i.width=e,i.height=t;var s={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},r=i.getContext("webgl",s);r||(r=i.getContext("experimental-webgl",s)),r&&(r.clearColor(0,0,0,0),this.canvas=i,this.gl=r)},applyFilters:function(e,t,i,s,n,r){var o,a=this.gl;r&&(o=this.getCachedTexture(r,t));var l={originalWidth:t.width||t.originalWidth,originalHeight:t.height||t.originalHeight,sourceWidth:i,sourceHeight:s,destinationWidth:i,destinationHeight:s,context:a,sourceTexture:this.createTexture(a,i,s,!o&&t),targetTexture:this.createTexture(a,i,s),originalTexture:o||this.createTexture(a,i,s,!o&&t),passes:e.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:n},c=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,c),e.forEach((function(e){e&&e.applyTo(l)})),function(e){var t=e.targetCanvas,i=t.width,s=t.height,n=e.destinationWidth,r=e.destinationHeight;i===n&&s===r||(t.width=n,t.height=r)}(l),this.copyGLTo2D(a,l),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(l.sourceTexture),a.deleteTexture(l.targetTexture),a.deleteFramebuffer(c),n.getContext("2d").setTransform(1,0,0,1,0,0),l},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(e,t,i,s,n){var r=e.createTexture();return e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,n||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,n||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),s?e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,s):e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,i,0,e.RGBA,e.UNSIGNED_BYTE,null),r},getCachedTexture:function(e,t){if(this.textureCache[e])return this.textureCache[e];var i=this.createTexture(this.gl,t.width,t.height,t);return this.textureCache[e]=i,i},evictCachesForKey:function(e){this.textureCache[e]&&(this.gl.deleteTexture(this.textureCache[e]),delete this.textureCache[e])},copyGLTo2D:o,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var e=this.gl,t={renderer:"",vendor:""};if(!e)return t;var i=e.getExtension("WEBGL_debug_renderer_info");if(i){var s=e.getParameter(i.UNMASKED_RENDERER_WEBGL),n=e.getParameter(i.UNMASKED_VENDOR_WEBGL);s&&(t.renderer=s.toLowerCase()),n&&(t.vendor=n.toLowerCase())}return this.gpuInfo=t,t}}}(),function(){"use strict";var e=function(){};function t(){}n.Canvas2dFilterBackend=t,t.prototype={evictCachesForKey:e,dispose:e,clearWebGLCaches:e,resources:{},applyFilters:function(e,t,i,s,n){var r=n.getContext("2d");r.drawImage(t,0,0,i,s);var o={sourceWidth:i,sourceHeight:s,imageData:r.getImageData(0,0,i,s),originalEl:t,originalImageData:r.getImageData(0,0,i,s),canvasEl:n,ctx:r,filterBackend:this};return e.forEach((function(e){e.applyTo(o)})),o.imageData.width===i&&o.imageData.height===s||(n.width=o.imageData.width,n.height=o.imageData.height),r.putImageData(o.imageData,0,0),o}}}(),n.Image=n.Image||{},n.Image.filters=n.Image.filters||{},n.Image.filters.BaseFilter=n.util.createClass({type:"BaseFilter",vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvoid main() {\nvTexCoord = aPosition;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:"precision highp float;\nvarying vec2 vTexCoord;\nuniform sampler2D uTexture;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\n}",initialize:function(e){e&&this.setOptions(e)},setOptions:function(e){for(var t in e)this[t]=e[t]},createProgram:function(e,t,i){t=t||this.fragmentSource,i=i||this.vertexSource,"highp"!==n.webGlPrecision&&(t=t.replace(/precision highp float/g,"precision "+n.webGlPrecision+" float"));var s=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(s,i),e.compileShader(s),!e.getShaderParameter(s,e.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+e.getShaderInfoLog(s));var r=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(r,t),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+e.getShaderInfoLog(r));var o=e.createProgram();if(e.attachShader(o,s),e.attachShader(o,r),e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+e.getProgramInfoLog(o));var a=this.getAttributeLocations(e,o),l=this.getUniformLocations(e,o)||{};return l.uStepW=e.getUniformLocation(o,"uStepW"),l.uStepH=e.getUniformLocation(o,"uStepH"),{program:o,attributeLocations:a,uniformLocations:l}},getAttributeLocations:function(e,t){return{aPosition:e.getAttribLocation(t,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(e,t,i){var s=t.aPosition,n=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,n),e.enableVertexAttribArray(s),e.vertexAttribPointer(s,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,i,e.STATIC_DRAW)},_setupFrameBuffer:function(e){var t,i,s=e.context;e.passes>1?(t=e.destinationWidth,i=e.destinationHeight,e.sourceWidth===t&&e.sourceHeight===i||(s.deleteTexture(e.targetTexture),e.targetTexture=e.filterBackend.createTexture(s,t,i)),s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_2D,e.targetTexture,0)):(s.bindFramebuffer(s.FRAMEBUFFER,null),s.finish())},_swapTextures:function(e){e.passes--,e.pass++;var t=e.targetTexture;e.targetTexture=e.sourceTexture,e.sourceTexture=t},isNeutralState:function(){var e=this.mainParameter,t=n.Image.filters[this.type].prototype;if(e){if(Array.isArray(t[e])){for(var i=t[e].length;i--;)if(this[e][i]!==t[e][i])return!1;return!0}return t[e]===this[e]}return!1},applyTo:function(e){e.webgl?(this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},retrieveShader:function(e){return e.programCache.hasOwnProperty(this.type)||(e.programCache[this.type]=this.createProgram(e.context)),e.programCache[this.type]},applyToWebGL:function(e){var t=e.context,i=this.retrieveShader(e);0===e.pass&&e.originalTexture?t.bindTexture(t.TEXTURE_2D,e.originalTexture):t.bindTexture(t.TEXTURE_2D,e.sourceTexture),t.useProgram(i.program),this.sendAttributeData(t,i.attributeLocations,e.aPosition),t.uniform1f(i.uniformLocations.uStepW,1/e.sourceWidth),t.uniform1f(i.uniformLocations.uStepH,1/e.sourceHeight),this.sendUniformData(t,i.uniformLocations),t.viewport(0,0,e.destinationWidth,e.destinationHeight),t.drawArrays(t.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(e,t,i){e.activeTexture(i),e.bindTexture(e.TEXTURE_2D,t),e.activeTexture(e.TEXTURE0)},unbindAdditionalTexture:function(e,t){e.activeTexture(t),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(e){this[this.mainParameter]=e},sendUniformData:function(){},createHelpLayer:function(e){if(!e.helpLayer){var t=document.createElement("canvas");t.width=e.sourceWidth,t.height=e.sourceHeight,e.helpLayer=t}},toObject:function(){var e={type:this.type},t=this.mainParameter;return t&&(e[t]=this[t]),e},toJSON:function(){return this.toObject()}}),n.Image.filters.BaseFilter.fromObject=function(e,t){var i=new n.Image.filters[e.type](e);return t&&t(i),i},function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.ColorMatrix=s(i.BaseFilter,{type:"ColorMatrix",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nuniform mat4 uColorMatrix;\nuniform vec4 uConstants;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor *= uColorMatrix;\ncolor += uConstants;\ngl_FragColor = color;\n}",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(e){this.callSuper("initialize",e),this.matrix=this.matrix.slice(0)},applyTo2d:function(e){var t,i,s,n,r,o=e.imageData.data,a=o.length,l=this.matrix,c=this.colorsOnly;for(r=0;r<a;r+=4)t=o[r],i=o[r+1],s=o[r+2],c?(o[r]=t*l[0]+i*l[1]+s*l[2]+255*l[4],o[r+1]=t*l[5]+i*l[6]+s*l[7]+255*l[9],o[r+2]=t*l[10]+i*l[11]+s*l[12]+255*l[14]):(n=o[r+3],o[r]=t*l[0]+i*l[1]+s*l[2]+n*l[3]+255*l[4],o[r+1]=t*l[5]+i*l[6]+s*l[7]+n*l[8]+255*l[9],o[r+2]=t*l[10]+i*l[11]+s*l[12]+n*l[13]+255*l[14],o[r+3]=t*l[15]+i*l[16]+s*l[17]+n*l[18]+255*l[19])},getUniformLocations:function(e,t){return{uColorMatrix:e.getUniformLocation(t,"uColorMatrix"),uConstants:e.getUniformLocation(t,"uConstants")}},sendUniformData:function(e,t){var i=this.matrix,s=[i[0],i[1],i[2],i[3],i[5],i[6],i[7],i[8],i[10],i[11],i[12],i[13],i[15],i[16],i[17],i[18]],n=[i[4],i[9],i[14],i[19]];e.uniformMatrix4fv(t.uColorMatrix,!1,s),e.uniform4fv(t.uConstants,n)}}),t.Image.filters.ColorMatrix.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Brightness=s(i.BaseFilter,{type:"Brightness",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBrightness;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += uBrightness;\ngl_FragColor = color;\n}",brightness:0,mainParameter:"brightness",applyTo2d:function(e){if(0!==this.brightness){var t,i=e.imageData.data,s=i.length,n=Math.round(255*this.brightness);for(t=0;t<s;t+=4)i[t]=i[t]+n,i[t+1]=i[t+1]+n,i[t+2]=i[t+2]+n}},getUniformLocations:function(e,t){return{uBrightness:e.getUniformLocation(t,"uBrightness")}},sendUniformData:function(e,t){e.uniform1f(t.uBrightness,this.brightness)}}),t.Image.filters.Brightness.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.Convolute=n(s.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_3_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_5_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_5_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_7_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_7_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_9_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_9_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}"},retrieveShader:function(e){var t=Math.sqrt(this.matrix.length),i=this.type+"_"+t+"_"+(this.opaque?1:0),s=this.fragmentSource[i];return e.programCache.hasOwnProperty(i)||(e.programCache[i]=this.createProgram(e.context,s)),e.programCache[i]},applyTo2d:function(e){var t,i,s,n,r,o,a,l,c,h,d,u,g,p=e.imageData,m=p.data,f=this.matrix,_=Math.round(Math.sqrt(f.length)),v=Math.floor(_/2),C=p.width,b=p.height,E=e.ctx.createImageData(C,b),S=E.data,y=this.opaque?1:0;for(d=0;d<b;d++)for(h=0;h<C;h++){for(r=4*(d*C+h),t=0,i=0,s=0,n=0,g=0;g<_;g++)for(u=0;u<_;u++)o=h+u-v,(a=d+g-v)<0||a>=b||o<0||o>=C||(l=4*(a*C+o),c=f[g*_+u],t+=m[l]*c,i+=m[l+1]*c,s+=m[l+2]*c,y||(n+=m[l+3]*c));S[r]=t,S[r+1]=i,S[r+2]=s,S[r+3]=y?m[r+3]:n}e.imageData=E},getUniformLocations:function(e,t){return{uMatrix:e.getUniformLocation(t,"uMatrix"),uOpaque:e.getUniformLocation(t,"uOpaque"),uHalfSize:e.getUniformLocation(t,"uHalfSize"),uSize:e.getUniformLocation(t,"uSize")}},sendUniformData:function(e,t){e.uniform1fv(t.uMatrix,this.matrix)},toObject:function(){return i(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),t.Image.filters.Convolute.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Grayscale=s(i.BaseFilter,{type:"Grayscale",fragmentSource:{average:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat average = (color.r + color.b + color.g) / 3.0;\ngl_FragColor = vec4(average, average, average, color.a);\n}",lightness:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\ngl_FragColor = vec4(average, average, average, col.a);\n}",luminosity:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\ngl_FragColor = vec4(average, average, average, col.a);\n}"},mode:"average",mainParameter:"mode",applyTo2d:function(e){var t,i,s=e.imageData.data,n=s.length,r=this.mode;for(t=0;t<n;t+=4)"average"===r?i=(s[t]+s[t+1]+s[t+2])/3:"lightness"===r?i=(Math.min(s[t],s[t+1],s[t+2])+Math.max(s[t],s[t+1],s[t+2]))/2:"luminosity"===r&&(i=.21*s[t]+.72*s[t+1]+.07*s[t+2]),s[t]=i,s[t+1]=i,s[t+2]=i},retrieveShader:function(e){var t=this.type+"_"+this.mode;if(!e.programCache.hasOwnProperty(t)){var i=this.fragmentSource[this.mode];e.programCache[t]=this.createProgram(e.context,i)}return e.programCache[t]},getUniformLocations:function(e,t){return{uMode:e.getUniformLocation(t,"uMode")}},sendUniformData:function(e,t){e.uniform1i(t.uMode,1)},isNeutralState:function(){return!1}}),t.Image.filters.Grayscale.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Invert=s(i.BaseFilter,{type:"Invert",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uInvert;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nif (uInvert == 1) {\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\n} else {\ngl_FragColor = color;\n}\n}",invert:!0,mainParameter:"invert",applyTo2d:function(e){var t,i=e.imageData.data,s=i.length;for(t=0;t<s;t+=4)i[t]=255-i[t],i[t+1]=255-i[t+1],i[t+2]=255-i[t+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(e,t){return{uInvert:e.getUniformLocation(t,"uInvert")}},sendUniformData:function(e,t){e.uniform1i(t.uInvert,this.invert)}}),t.Image.filters.Invert.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.Noise=n(s.BaseFilter,{type:"Noise",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uStepH;\nuniform float uNoise;\nuniform float uSeed;\nvarying vec2 vTexCoord;\nfloat rand(vec2 co, float seed, float vScale) {\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\n}\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\ngl_FragColor = color;\n}",mainParameter:"noise",noise:0,applyTo2d:function(e){if(0!==this.noise){var t,i,s=e.imageData.data,n=s.length,r=this.noise;for(t=0,n=s.length;t<n;t+=4)i=(.5-Math.random())*r,s[t]+=i,s[t+1]+=i,s[t+2]+=i}},getUniformLocations:function(e,t){return{uNoise:e.getUniformLocation(t,"uNoise"),uSeed:e.getUniformLocation(t,"uSeed")}},sendUniformData:function(e,t){e.uniform1f(t.uNoise,this.noise/255),e.uniform1f(t.uSeed,Math.random())},toObject:function(){return i(this.callSuper("toObject"),{noise:this.noise})}}),t.Image.filters.Noise.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Pixelate=s(i.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBlocksize;\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nfloat blockW = uBlocksize * uStepW;\nfloat blockH = uBlocksize * uStepW;\nint posX = int(vTexCoord.x / blockW);\nint posY = int(vTexCoord.y / blockH);\nfloat fposX = float(posX);\nfloat fposY = float(posY);\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\nvec4 color = texture2D(uTexture, squareCoords);\ngl_FragColor = color;\n}",applyTo2d:function(e){var t,i,s,n,r,o,a,l,c,h,d,u=e.imageData,g=u.data,p=u.height,m=u.width;for(i=0;i<p;i+=this.blocksize)for(s=0;s<m;s+=this.blocksize)for(n=g[t=4*i*m+4*s],r=g[t+1],o=g[t+2],a=g[t+3],h=Math.min(i+this.blocksize,p),d=Math.min(s+this.blocksize,m),l=i;l<h;l++)for(c=s;c<d;c++)g[t=4*l*m+4*c]=n,g[t+1]=r,g[t+2]=o,g[t+3]=a},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(e,t){return{uBlocksize:e.getUniformLocation(t,"uBlocksize"),uStepW:e.getUniformLocation(t,"uStepW"),uStepH:e.getUniformLocation(t,"uStepH")}},sendUniformData:function(e,t){e.uniform1f(t.uBlocksize,this.blocksize)}}),t.Image.filters.Pixelate.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,s=t.Image.filters,n=t.util.createClass;s.RemoveColor=n(s.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uLow;\nuniform vec4 uHigh;\nvarying vec2 vTexCoord;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\ngl_FragColor.a = 0.0;\n}\n}",distance:.02,useAlpha:!1,applyTo2d:function(e){var i,s,n,r,o=e.imageData.data,a=255*this.distance,l=new t.Color(this.color).getSource(),c=[l[0]-a,l[1]-a,l[2]-a],h=[l[0]+a,l[1]+a,l[2]+a];for(i=0;i<o.length;i+=4)s=o[i],n=o[i+1],r=o[i+2],s>c[0]&&n>c[1]&&r>c[2]&&s<h[0]&&n<h[1]&&r<h[2]&&(o[i+3]=0)},getUniformLocations:function(e,t){return{uLow:e.getUniformLocation(t,"uLow"),uHigh:e.getUniformLocation(t,"uHigh")}},sendUniformData:function(e,i){var s=new t.Color(this.color).getSource(),n=parseFloat(this.distance),r=[0+s[0]/255-n,0+s[1]/255-n,0+s[2]/255-n,1],o=[s[0]/255+n,s[1]/255+n,s[2]/255+n,1];e.uniform4fv(i.uLow,r),e.uniform4fv(i.uHigh,o)},toObject:function(){return i(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),t.Image.filters.RemoveColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass,n={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var r in n)i[r]=s(i.ColorMatrix,{type:r,matrix:n[r],mainParameter:!1,colorsOnly:!0}),t.Image.filters[r].fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,s=t.util.createClass;i.BlendColor=s(i.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",diff:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"if (uColor.r < 0.5) {\ngl_FragColor.r *= 2.0 * uColor.r;\n} else {\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n}\nif (uColor.g < 0.5) {\ngl_FragColor.g *= 2.0 * uColor.g;\n} else {\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n}\nif (uColor.b < 0.5) {\ngl_FragColor.b *= 2.0 * uColor.b;\n} else {\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n}\n",tint:"gl_FragColor.rgb *= (1.0 - uColor.a);\ngl_FragColor.rgb += uColor.rgb;\n"},buildSource:function(e){return"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ngl_FragColor = color;\nif (color.a > 0.0) {\n"+this.fragmentSource[e]+"}\n}"},retrieveShader:function(e){var t,i=this.type+"_"+this.mode;return e.programCache.hasOwnProperty(i)||(t=this.buildSource(this.mode),e.programCache[i]=this.createProgram(e.context,t)),e.programCache[i]},applyTo2d:function(e){var i,s,n,r,o,a,l,c=e.imageData.data,h=c.length,d=1-this.alpha;i=(l=new t.Color(this.color).getSource())[0]*this.alpha,s=l[1]*this.alpha,n=l[2]*this.alpha;for(var u=0;u<h;u+=4)switch(r=c[u],o=c[u+1],a=c[u+2],this.mode){case"multiply":c[u]=r*i/255,c[u+1]=o*s/255,c[u+2]=a*n/255;break;case"screen":c[u]=255-(255-r)*(255-i)/255,c[u+1]=255-(255-o)*(255-s)/255,c[u+2]=255-(255-a)*(255-n)/255;break;case"add":c[u]=r+i,c[u+1]=o+s,c[u+2]=a+n;break;case"diff":case"difference":c[u]=Math.abs(r-i),c[u+1]=Math.abs(o-s),c[u+2]=Math.abs(a-n);break;case"subtract":c[u]=r-i,c[u+1]=o-s,c[u+2]=a-n;break;case"darken":c[u]=Math.min(r,i),c[u+1]=Math.min(o,s),c[u+2]=Math.min(a,n);break;case"lighten":c[u]=Math.max(r,i),c[u+1]=Math.max(o,s),c[u+2]=Math.max(a,n);break;case"overlay":c[u]=i<128?2*r*i/255:255-2*(255-r)*(255-i)/255,c[u+1]=s<128?2*o*s/255:255-2*(255-o)*(255-s)/255,c[u+2]=n<128?2*a*n/255:255-2*(255-a)*(255-n)/255;break;case"exclusion":c[u]=i+r-2*i*r/255,c[u+1]=s+o-2*s*o/255,c[u+2]=n+a-2*n*a/255;break;case"tint":c[u]=i+r*d,c[u+1]=s+o*d,c[u+2]=n+a*d}},getUniformLocations:function(e,t){return{uColor:e.getUniformLocation(t,"uColor")}},sendUniformData:function(e,i){var s=new t.Color(this.color).getSource();s[0]=this.alpha*s[0]/255,s[1]=this.alpha*s[1]/255,s[2]=this.alpha*s[2]/255,s[3]=this.alpha,e.uniform4fv(i.uColor,s)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,i=t.Image.filters,s=t.util.createClass;i.BlendImage=s(i.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nuniform mat3 uTransformMatrix;\nvoid main() {\nvTexCoord = aPosition;\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:{multiply:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.rgba *= color2.rgba;\ngl_FragColor = color;\n}",mask:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.a = color2.a;\ngl_FragColor = color;\n}"},retrieveShader:function(e){var t=this.type+"_"+this.mode,i=this.fragmentSource[this.mode];return e.programCache.hasOwnProperty(t)||(e.programCache[t]=this.createProgram(e.context,i)),e.programCache[t]},applyToWebGL:function(e){var t=e.context,i=this.createTexture(e.filterBackend,this.image);this.bindAdditionalTexture(t,i,t.TEXTURE1),this.callSuper("applyToWebGL",e),this.unbindAdditionalTexture(t,t.TEXTURE1)},createTexture:function(e,t){return e.getCachedTexture(t.cacheKey,t._element)},calculateMatrix:function(){var e=this.image,t=e._element.width,i=e._element.height;return[1/e.scaleX,0,0,0,1/e.scaleY,0,-e.left/t,-e.top/i,1]},applyTo2d:function(e){var i,s,n,r,o,a,l,c,h,d,u,g=e.imageData,p=e.filterBackend.resources,m=g.data,f=m.length,_=g.width,v=g.height,C=this.image;p.blendImage||(p.blendImage=t.util.createCanvasElement()),d=(h=p.blendImage).getContext("2d"),h.width!==_||h.height!==v?(h.width=_,h.height=v):d.clearRect(0,0,_,v),d.setTransform(C.scaleX,0,0,C.scaleY,C.left,C.top),d.drawImage(C._element,0,0,_,v),u=d.getImageData(0,0,_,v).data;for(var b=0;b<f;b+=4)switch(o=m[b],a=m[b+1],l=m[b+2],c=m[b+3],i=u[b],s=u[b+1],n=u[b+2],r=u[b+3],this.mode){case"multiply":m[b]=o*i/255,m[b+1]=a*s/255,m[b+2]=l*n/255,m[b+3]=c*r/255;break;case"mask":m[b+3]=r}},getUniformLocations:function(e,t){return{uTransformMatrix:e.getUniformLocation(t,"uTransformMatrix"),uImage:e.getUniformLocation(t,"uImage")}},sendUniformData:function(e,t){var i=this.calculateMatrix();e.uniform1i(t.uImage,1),e.uniformMatrix3fv(t.uTransformMatrix,!1,i)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendImage.fromObject=function(e,i){t.Image.fromObject(e.image,(function(s){var n=t.util.object.clone(e);n.image=s,i(new t.Image.filters.BlendImage(n))}))}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=Math.pow,s=Math.floor,n=Math.sqrt,r=Math.abs,o=Math.round,a=Math.sin,l=Math.ceil,c=t.Image.filters,h=t.util.createClass;c.Resize=h(c.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(e,t){return{uDelta:e.getUniformLocation(t,"uDelta"),uTaps:e.getUniformLocation(t,"uTaps")}},sendUniformData:function(e,t){e.uniform2fv(t.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),e.uniform1fv(t.uTaps,this.taps)},retrieveShader:function(e){var t=this.getFilterWindow(),i=this.type+"_"+t;if(!e.programCache.hasOwnProperty(i)){var s=this.generateShader(t);e.programCache[i]=this.createProgram(e.context,s)}return e.programCache[i]},getFilterWindow:function(){var e=this.tempScale;return Math.ceil(this.lanczosLobes/e)},getTaps:function(){for(var e=this.lanczosCreate(this.lanczosLobes),t=this.tempScale,i=this.getFilterWindow(),s=new Array(i),n=1;n<=i;n++)s[n-1]=e(n*t);return s},generateShader:function(e){for(var t=new Array(e),i=this.fragmentSourceTOP,s=1;s<=e;s++)t[s-1]=s+".0 * uDelta";return i+="uniform float uTaps["+e+"];\n",i+="void main() {\n",i+=" vec4 color = texture2D(uTexture, vTexCoord);\n",i+=" float sum = 1.0;\n",t.forEach((function(e,t){i+=" color += texture2D(uTexture, vTexCoord + "+e+") * uTaps["+t+"];\n",i+=" color += texture2D(uTexture, vTexCoord - "+e+") * uTaps["+t+"];\n",i+=" sum += 2.0 * uTaps["+t+"];\n"})),i+=" gl_FragColor = color / sum;\n",i+="}"},fragmentSourceTOP:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\n",applyTo:function(e){e.webgl?(e.passes++,this.width=e.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=e.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),e.destinationWidth=this.dW,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceWidth=e.destinationWidth,this.height=e.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),e.destinationHeight=this.dH,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceHeight=e.destinationHeight):this.applyTo2d(e)},isNeutralState:function(){return 1===this.scaleX&&1===this.scaleY},lanczosCreate:function(e){return function(t){if(t>=e||t<=-e)return 0;if(t<1.1920929e-7&&t>-1.1920929e-7)return 1;var i=(t*=Math.PI)/e;return a(t)/t*a(i)/i}},applyTo2d:function(e){var t=e.imageData,i=this.scaleX,s=this.scaleY;this.rcpScaleX=1/i,this.rcpScaleY=1/s;var n,r=t.width,a=t.height,l=o(r*i),c=o(a*s);"sliceHack"===this.resizeType?n=this.sliceByTwo(e,r,a,l,c):"hermite"===this.resizeType?n=this.hermiteFastResize(e,r,a,l,c):"bilinear"===this.resizeType?n=this.bilinearFiltering(e,r,a,l,c):"lanczos"===this.resizeType&&(n=this.lanczosResize(e,r,a,l,c)),e.imageData=n},sliceByTwo:function(e,i,n,r,o){var a,l,c=e.imageData,h=.5,d=!1,u=!1,g=i*h,p=n*h,m=t.filterBackend.resources,f=0,_=0,v=i,C=0;for(m.sliceByTwo||(m.sliceByTwo=document.createElement("canvas")),((a=m.sliceByTwo).width<1.5*i||a.height<n)&&(a.width=1.5*i,a.height=n),(l=a.getContext("2d")).clearRect(0,0,1.5*i,n),l.putImageData(c,0,0),r=s(r),o=s(o);!d||!u;)i=g,n=p,r<s(g*h)?g=s(g*h):(g=r,d=!0),o<s(p*h)?p=s(p*h):(p=o,u=!0),l.drawImage(a,f,_,i,n,v,C,g,p),f=v,_=C,C+=p;return l.getImageData(f,_,r,o)},lanczosResize:function(e,t,o,a,c){var h=e.imageData.data,d=e.ctx.createImageData(a,c),u=d.data,g=this.lanczosCreate(this.lanczosLobes),p=this.rcpScaleX,m=this.rcpScaleY,f=2/this.rcpScaleX,_=2/this.rcpScaleY,v=l(p*this.lanczosLobes/2),C=l(m*this.lanczosLobes/2),b={},E={},S={};return function e(l){var y,w,L,R,T,x,k,A,N,I,O;for(E.x=(l+.5)*p,S.x=s(E.x),y=0;y<c;y++){for(E.y=(y+.5)*m,S.y=s(E.y),T=0,x=0,k=0,A=0,N=0,w=S.x-v;w<=S.x+v;w++)if(!(w<0||w>=t)){I=s(1e3*r(w-E.x)),b[I]||(b[I]={});for(var D=S.y-C;D<=S.y+C;D++)D<0||D>=o||(O=s(1e3*r(D-E.y)),b[I][O]||(b[I][O]=g(n(i(I*f,2)+i(O*_,2))/1e3)),(L=b[I][O])>0&&(T+=L,x+=L*h[R=4*(D*t+w)],k+=L*h[R+1],A+=L*h[R+2],N+=L*h[R+3]))}u[R=4*(y*a+l)]=x/T,u[R+1]=k/T,u[R+2]=A/T,u[R+3]=N/T}return++l<a?e(l):d}(0)},bilinearFiltering:function(e,t,i,n,r){var o,a,l,c,h,d,u,g,p,m=0,f=this.rcpScaleX,_=this.rcpScaleY,v=4*(t-1),C=e.imageData.data,b=e.ctx.createImageData(n,r),E=b.data;for(l=0;l<r;l++)for(c=0;c<n;c++)for(h=f*c-(o=s(f*c)),d=_*l-(a=s(_*l)),p=4*(a*t+o),u=0;u<4;u++)g=C[p+u]*(1-h)*(1-d)+C[p+4+u]*h*(1-d)+C[p+v+u]*d*(1-h)+C[p+v+4+u]*h*d,E[m++]=g;return b},hermiteFastResize:function(e,t,i,o,a){for(var c=this.rcpScaleX,h=this.rcpScaleY,d=l(c/2),u=l(h/2),g=e.imageData.data,p=e.ctx.createImageData(o,a),m=p.data,f=0;f<a;f++)for(var _=0;_<o;_++){for(var v=4*(_+f*o),C=0,b=0,E=0,S=0,y=0,w=0,L=0,R=(f+.5)*h,T=s(f*h);T<(f+1)*h;T++)for(var x=r(R-(T+.5))/u,k=(_+.5)*c,A=x*x,N=s(_*c);N<(_+1)*c;N++){var I=r(k-(N+.5))/d,O=n(A+I*I);O>1&&O<-1||(C=2*O*O*O-3*O*O+1)>0&&(L+=C*g[(I=4*(N+T*t))+3],E+=C,g[I+3]<255&&(C=C*g[I+3]/250),S+=C*g[I],y+=C*g[I+1],w+=C*g[I+2],b+=C)}m[v]=S/b,m[v+1]=y/b,m[v+2]=w/b,m[v+3]=L/E}return p},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),t.Image.filters.Resize.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Contrast=s(i.BaseFilter,{type:"Contrast",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uContrast;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\ngl_FragColor = color;\n}",contrast:0,mainParameter:"contrast",applyTo2d:function(e){if(0!==this.contrast){var t,i=e.imageData.data,s=i.length,n=Math.floor(255*this.contrast),r=259*(n+255)/(255*(259-n));for(t=0;t<s;t+=4)i[t]=r*(i[t]-128)+128,i[t+1]=r*(i[t+1]-128)+128,i[t+2]=r*(i[t+2]-128)+128}},getUniformLocations:function(e,t){return{uContrast:e.getUniformLocation(t,"uContrast")}},sendUniformData:function(e,t){e.uniform1f(t.uContrast,this.contrast)}}),t.Image.filters.Contrast.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Saturation=s(i.BaseFilter,{type:"Saturation",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uSaturation;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat rgMax = max(color.r, color.g);\nfloat rgbMax = max(rgMax, color.b);\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\ngl_FragColor = color;\n}",saturation:0,mainParameter:"saturation",applyTo2d:function(e){if(0!==this.saturation){var t,i,s=e.imageData.data,n=s.length,r=-this.saturation;for(t=0;t<n;t+=4)i=Math.max(s[t],s[t+1],s[t+2]),s[t]+=i!==s[t]?(i-s[t])*r:0,s[t+1]+=i!==s[t+1]?(i-s[t+1])*r:0,s[t+2]+=i!==s[t+2]?(i-s[t+2])*r:0}},getUniformLocations:function(e,t){return{uSaturation:e.getUniformLocation(t,"uSaturation")}},sendUniformData:function(e,t){e.uniform1f(t.uSaturation,-this.saturation)}}),t.Image.filters.Saturation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Vibrance=s(i.BaseFilter,{type:"Vibrance",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uVibrance;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat max = max(color.r, max(color.g, color.b));\nfloat avg = (color.r + color.g + color.b) / 3.0;\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\ngl_FragColor = color;\n}",vibrance:0,mainParameter:"vibrance",applyTo2d:function(e){if(0!==this.vibrance){var t,i,s,n,r=e.imageData.data,o=r.length,a=-this.vibrance;for(t=0;t<o;t+=4)i=Math.max(r[t],r[t+1],r[t+2]),s=(r[t]+r[t+1]+r[t+2])/3,n=2*Math.abs(i-s)/255*a,r[t]+=i!==r[t]?(i-r[t])*n:0,r[t+1]+=i!==r[t+1]?(i-r[t+1])*n:0,r[t+2]+=i!==r[t+2]?(i-r[t+2])*n:0}},getUniformLocations:function(e,t){return{uVibrance:e.getUniformLocation(t,"uVibrance")}},sendUniformData:function(e,t){e.uniform1f(t.uVibrance,-this.vibrance)}}),t.Image.filters.Vibrance.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Blur=s(i.BaseFilter,{type:"Blur",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\nconst float nSamples = 15.0;\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\nfloat random(vec3 scale) {\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n}\nvoid main() {\nvec4 color = vec4(0.0);\nfloat total = 0.0;\nfloat offset = random(v3offset);\nfor (float t = -nSamples; t <= nSamples; t++) {\nfloat percent = (t + offset - 0.5) / nSamples;\nfloat weight = 1.0 - abs(percent);\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\ntotal += weight;\n}\ngl_FragColor = color / total;\n}",blur:0,mainParameter:"blur",applyTo:function(e){e.webgl?(this.aspectRatio=e.sourceWidth/e.sourceHeight,e.passes++,this._setupFrameBuffer(e),this.horizontal=!0,this.applyToWebGL(e),this._swapTextures(e),this._setupFrameBuffer(e),this.horizontal=!1,this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},applyTo2d:function(e){e.imageData=this.simpleBlur(e)},simpleBlur:function(e){var i,s,n=e.filterBackend.resources,r=e.imageData.width,o=e.imageData.height;n.blurLayer1||(n.blurLayer1=t.util.createCanvasElement(),n.blurLayer2=t.util.createCanvasElement()),i=n.blurLayer1,s=n.blurLayer2,i.width===r&&i.height===o||(s.width=i.width=r,s.height=i.height=o);var a,l,c,h,d=i.getContext("2d"),u=s.getContext("2d"),g=15,p=.06*this.blur*.5;for(d.putImageData(e.imageData,0,0),u.clearRect(0,0,r,o),h=-15;h<=g;h++)c=p*(l=h/g)*r+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(l),u.drawImage(i,c,a),d.drawImage(s,0,0),u.globalAlpha=1,u.clearRect(0,0,s.width,s.height);for(h=-15;h<=g;h++)c=p*(l=h/g)*o+(a=(Math.random()-.5)/4),u.globalAlpha=1-Math.abs(l),u.drawImage(i,a,c),d.drawImage(s,0,0),u.globalAlpha=1,u.clearRect(0,0,s.width,s.height);e.ctx.drawImage(i,0,0);var m=e.ctx.getImageData(0,0,i.width,i.height);return d.globalAlpha=1,d.clearRect(0,0,i.width,i.height),m},getUniformLocations:function(e,t){return{delta:e.getUniformLocation(t,"uDelta")}},sendUniformData:function(e,t){var i=this.chooseRightDelta();e.uniform2fv(t.delta,i)},chooseRightDelta:function(){var e,t=1,i=[0,0];return this.horizontal?this.aspectRatio>1&&(t=1/this.aspectRatio):this.aspectRatio<1&&(t=this.aspectRatio),e=t*this.blur*.12,this.horizontal?i[0]=e:i[1]=e,i}}),i.Blur.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Gamma=s(i.BaseFilter,{type:"Gamma",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec3 uGamma;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec3 correction = (1.0 / uGamma);\ncolor.r = pow(color.r, correction.r);\ncolor.g = pow(color.g, correction.g);\ncolor.b = pow(color.b, correction.b);\ngl_FragColor = color;\ngl_FragColor.rgb *= color.a;\n}",gamma:[1,1,1],mainParameter:"gamma",initialize:function(e){this.gamma=[1,1,1],i.BaseFilter.prototype.initialize.call(this,e)},applyTo2d:function(e){var t,i=e.imageData.data,s=this.gamma,n=i.length,r=1/s[0],o=1/s[1],a=1/s[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),t=0,n=256;t<n;t++)this.rVals[t]=255*Math.pow(t/255,r),this.gVals[t]=255*Math.pow(t/255,o),this.bVals[t]=255*Math.pow(t/255,a);for(t=0,n=i.length;t<n;t+=4)i[t]=this.rVals[i[t]],i[t+1]=this.gVals[i[t+1]],i[t+2]=this.bVals[i[t+2]]},getUniformLocations:function(e,t){return{uGamma:e.getUniformLocation(t,"uGamma")}},sendUniformData:function(e,t){e.uniform3fv(t.uGamma,this.gamma)}}),t.Image.filters.Gamma.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.Composed=s(i.BaseFilter,{type:"Composed",subFilters:[],initialize:function(e){this.callSuper("initialize",e),this.subFilters=this.subFilters.slice(0)},applyTo:function(e){e.passes+=this.subFilters.length-1,this.subFilters.forEach((function(t){t.applyTo(e)}))},toObject:function(){return t.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map((function(e){return e.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(e){return!e.isNeutralState()}))}}),t.Image.filters.Composed.fromObject=function(e,i){var s=(e.subFilters||[]).map((function(e){return new t.Image.filters[e.type](e)})),n=new t.Image.filters.Composed({subFilters:s});return i&&i(n),n}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,s=t.util.createClass;i.HueRotation=s(i.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var e=this.rotation*Math.PI,i=t.util.cos(e),s=t.util.sin(e),n=1/3,r=Math.sqrt(n)*s,o=1-i;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=i+o/3,this.matrix[1]=n*o-r,this.matrix[2]=n*o+r,this.matrix[5]=n*o+r,this.matrix[6]=i+n*o,this.matrix[7]=n*o-r,this.matrix[10]=n*o-r,this.matrix[11]=n*o+r,this.matrix[12]=i+n*o},isNeutralState:function(e){return this.calculateMatrix(),i.BaseFilter.prototype.isNeutralState.call(this,e)},applyTo:function(e){this.calculateMatrix(),i.BaseFilter.prototype.applyTo.call(this,e)}}),t.Image.filters.HueRotation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.clone;if(t.Text)t.warn("fabric.Text is already defined");else{var s="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");t.Text=t.util.createClass(t.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:t.Object.prototype.stateProperties.concat(s),cacheProperties:t.Object.prototype.cacheProperties.concat(s),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(e,t){this.styles=t&&t.styles||{},this.text=e,this.__skipDimension=!0,this.callSuper("initialize",t),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var e=this.path;e&&(e.segmentsInfo=t.util.getPathSegmentsInfo(e.path))},getMeasuringContext:function(){return t._measuringContext||(t._measuringContext=this.canvas&&this.canvas.contextCache||t.util.createCanvasElement().getContext("2d")),t._measuringContext},_splitText:function(){var e=this._splitTextIntoLines(this.text);return this.textLines=e.lines,this._textLines=e.graphemeLines,this._unwrappedTextLines=e._unwrappedLines,this._text=e.graphemeText,e},initDimensions:function(){if(!this.__skipDimension){if(this._splitText(),this._clearCache(),this.path){var e=1.1*this.getHeightOfLine(0);this.width=this.path.width+e,this.height=this.path.height+e}else this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight();-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"})}},enlargeSpaces:function(){for(var e,t,i,s,n,r,o,a=0,l=this._textLines.length;a<l;a++)if(("justify"===this.textAlign||a!==l-1&&!this.isEndOfWrapping(a))&&(s=0,n=this._textLines[a],(t=this.getLineWidth(a))<this.width&&(o=this.textLines[a].match(this._reSpacesAndTabs)))){i=o.length,e=(this.width-t)/i;for(var c=0,h=n.length;c<=h;c++)r=this.__charBounds[a][c],this._reSpaceAndTab.test(n[c])?(r.width+=e,r.kernedWidth+=e,r.left+=s,s+=e):r.left+=s}},isEndOfWrapping:function(e){return e===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var e=this.callSuper("_getCacheCanvasDimensions"),t=this.fontSize;return e.width+=t*e.zoomX,e.height+=t*e.zoomY,e},_render:function(e){var t=this.path;t&&!t.isNotVisible()&&t._render(e),this._setTextStyles(e),this._renderTextLinesBackground(e),this._renderTextDecoration(e,"underline"),this._renderText(e),this._renderTextDecoration(e,"overline"),this._renderTextDecoration(e,"linethrough")},_renderText:function(e){"stroke"===this.paintFirst?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))},_setTextStyles:function(e,t,i){if(e.textBaseline="alphabetical",this.path)switch(this.pathAlign){case"center":e.textBaseline="middle";break;case"ascender":e.textBaseline="top";break;case"descender":e.textBaseline="bottom"}e.font=this._getFontDeclaration(t,i)},calcTextWidth:function(){for(var e=this.getLineWidth(0),t=1,i=this._textLines.length;t<i;t++){var s=this.getLineWidth(t);s>e&&(e=s)}return e},_renderTextLine:function(e,t,i,s,n,r){this._renderChars(e,t,i,s,n,r)},_renderTextLinesBackground:function(e){if(this.textBackgroundColor||this.styleHas("textBackgroundColor")){for(var t,i,s,n,r,o,a,l=e.fillStyle,c=this._getLeftOffset(),h=this._getTopOffset(),d=0,u=0,g=this.path,p=0,m=this._textLines.length;p<m;p++)if(t=this.getHeightOfLine(p),this.textBackgroundColor||this.styleHas("textBackgroundColor",p)){s=this._textLines[p],i=this._getLineLeftOffset(p),u=0,d=0,n=this.getValueOfPropertyAt(p,0,"textBackgroundColor");for(var f=0,_=s.length;f<_;f++)r=this.__charBounds[p][f],o=this.getValueOfPropertyAt(p,f,"textBackgroundColor"),g?(e.save(),e.translate(r.renderLeft,r.renderTop),e.rotate(r.angle),e.fillStyle=o,o&&e.fillRect(-r.width/2,-t/this.lineHeight*(1-this._fontSizeFraction),r.width,t/this.lineHeight),e.restore()):o!==n?(a=c+i+d,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=n,n&&e.fillRect(a,h,u,t/this.lineHeight),d=r.left,u=r.width,n=o):u+=r.kernedWidth;o&&!g&&(a=c+i+d,"rtl"===this.direction&&(a=this.width-a-u),e.fillStyle=o,e.fillRect(a,h,u,t/this.lineHeight)),h+=t}else h+=t;e.fillStyle=l,this._removeShadow(e)}},getFontCache:function(e){var i=e.fontFamily.toLowerCase();t.charWidthsCache[i]||(t.charWidthsCache[i]={});var s=t.charWidthsCache[i],n=e.fontStyle.toLowerCase()+"_"+(e.fontWeight+"").toLowerCase();return s[n]||(s[n]={}),s[n]},_measureChar:function(e,t,i,s){var n,r,o,a,l=this.getFontCache(t),c=i+e,h=this._getFontDeclaration(t)===this._getFontDeclaration(s),d=t.fontSize/this.CACHE_FONT_SIZE;if(i&&void 0!==l[i]&&(o=l[i]),void 0!==l[e]&&(a=n=l[e]),h&&void 0!==l[c]&&(a=(r=l[c])-o),void 0===n||void 0===o||void 0===r){var u=this.getMeasuringContext();this._setTextStyles(u,t,!0)}return void 0===n&&(a=n=u.measureText(e).width,l[e]=n),void 0===o&&h&&i&&(o=u.measureText(i).width,l[i]=o),h&&void 0===r&&(r=u.measureText(c).width,l[c]=r,a=r-o),{width:n*d,kernedWidth:a*d}},getHeightOfChar:function(e,t){return this.getValueOfPropertyAt(e,t,"fontSize")},measureLine:function(e){var t=this._measureLine(e);return 0!==this.charSpacing&&(t.width-=this._getWidthOfCharSpacing()),t.width<0&&(t.width=0),t},_measureLine:function(e){var i,s,n,r,o,a,l=0,c=this._textLines[e],h=new Array(c.length),d=0,u=this.path,g="right"===this.pathSide;for(this.__charBounds[e]=h,i=0;i<c.length;i++)s=c[i],r=this._getGraphemeBox(s,e,i,n),h[i]=r,l+=r.kernedWidth,n=s;if(h[i]={left:r?r.left+r.width:0,width:0,kernedWidth:0,height:this.fontSize},u){switch(a=u.segmentsInfo[u.segmentsInfo.length-1].length,(o=t.util.getPointOnPath(u.path,0,u.segmentsInfo)).x+=u.pathOffset.x,o.y+=u.pathOffset.y,this.textAlign){case"left":d=g?a-l:0;break;case"center":d=(a-l)/2;break;case"right":d=g?0:a-l}for(d+=this.pathStartOffset*(g?-1:1),i=g?c.length-1:0;g?i>=0:i<c.length;g?i--:i++)r=h[i],d>a?d%=a:d<0&&(d+=a),this._setGraphemeOnPath(d,r,o),d+=r.kernedWidth}return{width:l,numOfSpaces:0}},_setGraphemeOnPath:function(e,i,s){var n=e+i.kernedWidth/2,r=this.path,o=t.util.getPointOnPath(r.path,n,r.segmentsInfo);i.renderLeft=o.x-s.x,i.renderTop=o.y-s.y,i.angle=o.angle+("right"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(e,t,i,s,n){var r,o=this.getCompleteStyleDeclaration(t,i),a=s?this.getCompleteStyleDeclaration(t,i-1):{},l=this._measureChar(e,o,s,a),c=l.kernedWidth,h=l.width;0!==this.charSpacing&&(h+=r=this._getWidthOfCharSpacing(),c+=r);var d={width:h,left:0,height:o.fontSize,kernedWidth:c,deltaY:o.deltaY};if(i>0&&!n){var u=this.__charBounds[t][i-1];d.left=u.left+u.width+l.kernedWidth-l.width}return d},getHeightOfLine:function(e){if(this.__lineHeights[e])return this.__lineHeights[e];for(var t=this._textLines[e],i=this.getHeightOfChar(e,0),s=1,n=t.length;s<n;s++)i=Math.max(this.getHeightOfChar(e,s),i);return this.__lineHeights[e]=i*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var e,t=0,i=0,s=this._textLines.length;i<s;i++)e=this.getHeightOfLine(i),t+=i===s-1?e/this.lineHeight:e;return t},_getLeftOffset:function(){return"ltr"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(e,t){e.save();for(var i=0,s=this._getLeftOffset(),n=this._getTopOffset(),r=0,o=this._textLines.length;r<o;r++){var a=this.getHeightOfLine(r),l=a/this.lineHeight,c=this._getLineLeftOffset(r);this._renderTextLine(t,e,this._textLines[r],s+c,n+i+l,r),i+=a}e.restore()},_renderTextFill:function(e){(this.fill||this.styleHas("fill"))&&this._renderTextCommon(e,"fillText")},_renderTextStroke:function(e){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this._setLineDash(e,this.strokeDashArray),e.beginPath(),this._renderTextCommon(e,"strokeText"),e.closePath(),e.restore())},_renderChars:function(e,i,s,n,r,o){var a,l,c,h,d,u=this.getHeightOfLine(o),g=-1!==this.textAlign.indexOf("justify"),p="",m=0,f=this.path,_=!g&&0===this.charSpacing&&this.isEmptyStyles(o)&&!f,v="ltr"===this.direction,C="ltr"===this.direction?1:-1,b=i.canvas.getAttribute("dir");if(i.save(),b!==this.direction&&(i.canvas.setAttribute("dir",v?"ltr":"rtl"),i.direction=v?"ltr":"rtl",i.textAlign=v?"left":"right"),r-=u*this._fontSizeFraction/this.lineHeight,_)return this._renderChar(e,i,o,0,s.join(""),n,r,u),void i.restore();for(var E=0,S=s.length-1;E<=S;E++)h=E===S||this.charSpacing||f,p+=s[E],c=this.__charBounds[o][E],0===m?(n+=C*(c.kernedWidth-c.width),m+=c.width):m+=c.kernedWidth,g&&!h&&this._reSpaceAndTab.test(s[E])&&(h=!0),h||(a=a||this.getCompleteStyleDeclaration(o,E),l=this.getCompleteStyleDeclaration(o,E+1),h=t.util.hasStyleChanged(a,l,!1)),h&&(f?(i.save(),i.translate(c.renderLeft,c.renderTop),i.rotate(c.angle),this._renderChar(e,i,o,E,p,-m/2,0,u),i.restore()):(d=n,this._renderChar(e,i,o,E,p,d,r,u)),p="",a=l,n+=C*m,m=0);i.restore()},_applyPatternGradientTransformText:function(e){var i,s=t.util.createCanvasElement(),n=this.width+this.strokeWidth,r=this.height+this.strokeWidth;return s.width=n,s.height=r,(i=s.getContext("2d")).beginPath(),i.moveTo(0,0),i.lineTo(n,0),i.lineTo(n,r),i.lineTo(0,r),i.closePath(),i.translate(n/2,r/2),i.fillStyle=e.toLive(i),this._applyPatternGradientTransform(i,e),i.fill(),i.createPattern(s,"no-repeat")},handleFiller:function(e,t,i){var s,n;return i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?(s=-this.width/2,n=-this.height/2,e.translate(s,n),e[t]=this._applyPatternGradientTransformText(i),{offsetX:s,offsetY:n}):(e[t]=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):(e[t]=i,{offsetX:0,offsetY:0})},_setStrokeStyles:function(e,t){return e.lineWidth=t.strokeWidth,e.lineCap=this.strokeLineCap,e.lineDashOffset=this.strokeDashOffset,e.lineJoin=this.strokeLineJoin,e.miterLimit=this.strokeMiterLimit,this.handleFiller(e,"strokeStyle",t.stroke)},_setFillStyles:function(e,t){return this.handleFiller(e,"fillStyle",t.fill)},_renderChar:function(e,t,i,s,n,r,o){var a,l,c=this._getStyleDeclaration(i,s),h=this.getCompleteStyleDeclaration(i,s),d="fillText"===e&&h.fill,u="strokeText"===e&&h.stroke&&h.strokeWidth;(u||d)&&(t.save(),d&&(a=this._setFillStyles(t,h)),u&&(l=this._setStrokeStyles(t,h)),t.font=this._getFontDeclaration(h),c&&c.textBackgroundColor&&this._removeShadow(t),c&&c.deltaY&&(o+=c.deltaY),d&&t.fillText(n,r-a.offsetX,o-a.offsetY),u&&t.strokeText(n,r-l.offsetX,o-l.offsetY),t.restore())},setSuperscript:function(e,t){return this._setScript(e,t,this.superscript)},setSubscript:function(e,t){return this._setScript(e,t,this.subscript)},_setScript:function(e,t,i){var s=this.get2DCursorLocation(e,!0),n=this.getValueOfPropertyAt(s.lineIndex,s.charIndex,"fontSize"),r=this.getValueOfPropertyAt(s.lineIndex,s.charIndex,"deltaY"),o={fontSize:n*i.size,deltaY:r+n*i.baseline};return this.setSelectionStyles(o,e,t),this},_getLineLeftOffset:function(e){var t=this.getLineWidth(e),i=this.width-t,s=this.textAlign,n=this.direction,r=0,o=this.isEndOfWrapping(e);return"justify"===s||"justify-center"===s&&!o||"justify-right"===s&&!o||"justify-left"===s&&!o?0:("center"===s&&(r=i/2),"right"===s&&(r=i),"justify-center"===s&&(r=i/2),"justify-right"===s&&(r=i),"rtl"===n&&(r-=i),r)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var e=this._forceClearCache;return e||(e=this.hasStateChanged("_dimensionAffectingProps")),e&&(this.dirty=!0,this._forceClearCache=!1),e},getLineWidth:function(e){if(void 0!==this.__lineWidths[e])return this.__lineWidths[e];var t=this.measureLine(e).width;return this.__lineWidths[e]=t,t},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(e,t,i){var s=this._getStyleDeclaration(e,t);return s&&"undefined"!==typeof s[i]?s[i]:this[i]},_renderTextDecoration:function(e,t){if(this[t]||this.styleHas(t)){e.save(),"overline"!==t&&"linethrough"!==t||this._removeShadow(e);for(var i,s,n,r,o,a,l,c,h,d,u,g,p,m,f,_,v=this._getLeftOffset(),C=this._getTopOffset(),b=this.path,E=this._getWidthOfCharSpacing(),S=this.offsets[t],y=0,w=this._textLines.length;y<w;y++)if(i=this.getHeightOfLine(y),this[t]||this.styleHas(t,y)){l=this._textLines[y],m=i/this.lineHeight,r=this._getLineLeftOffset(y),d=0,u=0,c=this.getValueOfPropertyAt(y,0,t),_=this.getValueOfPropertyAt(y,0,"fill"),h=C+m*(1-this._fontSizeFraction),s=this.getHeightOfChar(y,0),o=this.getValueOfPropertyAt(y,0,"deltaY");for(var L=0,R=l.length;L<R;L++)if(g=this.__charBounds[y][L],p=this.getValueOfPropertyAt(y,L,t),f=this.getValueOfPropertyAt(y,L,"fill"),n=this.getHeightOfChar(y,L),a=this.getValueOfPropertyAt(y,L,"deltaY"),b&&p&&f)e.save(),e.fillStyle=_,e.translate(g.renderLeft,g.renderTop),e.rotate(g.angle),e.fillRect(-g.kernedWidth/2,S*n+a,g.kernedWidth,this.fontSize/15),e.restore();else if((p!==c||f!==_||n!==s||a!==o)&&u>0){var T=v+r+d;"rtl"===this.direction&&(T=this.width-T-u),c&&_&&(e.fillStyle=_,e.fillRect(T,h+S*s+o,u,this.fontSize/15)),d=g.left,u=g.width,c=p,_=f,s=n,o=a}else u+=g.kernedWidth;T=v+r+d;"rtl"===this.direction&&(T=this.width-T-u),e.fillStyle=f,p&&f&&e.fillRect(T,h+S*s+o,u-E,this.fontSize/15),C+=i}else C+=i;e.restore()}},_getFontDeclaration:function(e,i){var s=e||this,n=this.fontFamily,r=t.Text.genericFonts.indexOf(n.toLowerCase())>-1,o=void 0===n||n.indexOf("'")>-1||n.indexOf(",")>-1||n.indexOf('"')>-1||r?s.fontFamily:'"'+s.fontFamily+'"';return[t.isLikelyNode?s.fontWeight:s.fontStyle,t.isLikelyNode?s.fontStyle:s.fontWeight,i?this.CACHE_FONT_SIZE+"px":s.fontSize+"px",o].join(" ")},render:function(e){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",e)))},_splitTextIntoLines:function(e){for(var i=e.split(this._reNewline),s=new Array(i.length),n=["\n"],r=[],o=0;o<i.length;o++)s[o]=t.util.string.graphemeSplit(i[o]),r=r.concat(s[o],n);return r.pop(),{_unwrappedLines:s,lines:i,graphemeText:r,graphemeLines:s}},toObject:function(e){var i=s.concat(e),n=this.callSuper("toObject",i);return n.styles=t.util.stylesToArray(this.styles,this.text),n.path&&(n.path=this.path.toObject()),n},set:function(e,t){this.callSuper("set",e,t);var i=!1,s=!1;if("object"===typeof e)for(var n in e)"path"===n&&this.setPathInfo(),i=i||-1!==this._dimensionAffectingProps.indexOf(n),s=s||"path"===n;else i=-1!==this._dimensionAffectingProps.indexOf(e),s="path"===e;return s&&this.setPathInfo(),i&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),t.Text.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),t.Text.DEFAULT_SVG_FONT_SIZE=16,t.Text.fromElement=function(e,s,n){if(!e)return s(null);var r=t.parseAttributes(e,t.Text.ATTRIBUTE_NAMES),o=r.textAnchor||"left";if((n=t.util.object.extend(n?i(n):{},r)).top=n.top||0,n.left=n.left||0,r.textDecoration){var a=r.textDecoration;-1!==a.indexOf("underline")&&(n.underline=!0),-1!==a.indexOf("overline")&&(n.overline=!0),-1!==a.indexOf("line-through")&&(n.linethrough=!0),delete n.textDecoration}"dx"in r&&(n.left+=r.dx),"dy"in r&&(n.top+=r.dy),"fontSize"in n||(n.fontSize=t.Text.DEFAULT_SVG_FONT_SIZE);var l="";"textContent"in e?l=e.textContent:"firstChild"in e&&null!==e.firstChild&&"data"in e.firstChild&&null!==e.firstChild.data&&(l=e.firstChild.data),l=l.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var c=n.strokeWidth;n.strokeWidth=0;var h=new t.Text(l,n),d=h.getScaledHeight()/h.height,u=((h.height+h.strokeWidth)*h.lineHeight-h.height)*d,g=h.getScaledHeight()+u,p=0;"center"===o&&(p=h.getScaledWidth()/2),"right"===o&&(p=h.getScaledWidth()),h.set({left:h.left-p,top:h.top-(g-h.fontSize*(.07+h._fontSizeFraction))/h.lineHeight,strokeWidth:"undefined"!==typeof c?c:1}),s(h)},t.Text.fromObject=function(e,s){var n=i(e),r=e.path;return delete n.path,t.Object._fromObject("Text",n,(function(i){i.styles=t.util.stylesFromArray(e.styles,e.text),r?t.Object._fromObject("Path",r,(function(e){i.set("path",e),s(i)}),"path"):s(i)}),"text")},t.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],t.util.createAccessors&&t.util.createAccessors(t.Text)}}(t),n.util.object.extend(n.Text.prototype,{isEmptyStyles:function(e){if(!this.styles)return!0;if("undefined"!==typeof e&&!this.styles[e])return!0;var t="undefined"===typeof e?this.styles:{line:this.styles[e]};for(var i in t)for(var s in t[i])for(var n in t[i][s])return!1;return!0},styleHas:function(e,t){if(!this.styles||!e||""===e)return!1;if("undefined"!==typeof t&&!this.styles[t])return!1;var i="undefined"===typeof t?this.styles:{0:this.styles[t]};for(var s in i)for(var n in i[s])if("undefined"!==typeof i[s][n][e])return!0;return!1},cleanStyle:function(e){if(!this.styles||!e||""===e)return!1;var t,i,s=this.styles,n=0,r=!0,o=0;for(var a in s){for(var l in t=0,s[a]){var c;n++,(c=s[a][l]).hasOwnProperty(e)?(i?c[e]!==i&&(r=!1):i=c[e],c[e]===this[e]&&delete c[e]):r=!1,0!==Object.keys(c).length?t++:delete s[a][l]}0===t&&delete s[a]}for(var h=0;h<this._textLines.length;h++)o+=this._textLines[h].length;r&&n===o&&(this[e]=i,this.removeStyle(e))},removeStyle:function(e){if(this.styles&&e&&""!==e){var t,i,s,n=this.styles;for(i in n){for(s in t=n[i])delete t[s][e],0===Object.keys(t[s]).length&&delete t[s];0===Object.keys(t).length&&delete n[i]}}},_extendStyles:function(e,t){var i=this.get2DCursorLocation(e);this._getLineStyle(i.lineIndex)||this._setLineStyle(i.lineIndex),this._getStyleDeclaration(i.lineIndex,i.charIndex)||this._setStyleDeclaration(i.lineIndex,i.charIndex,{}),n.util.object.extend(this._getStyleDeclaration(i.lineIndex,i.charIndex),t)},get2DCursorLocation:function(e,t){"undefined"===typeof e&&(e=this.selectionStart);for(var i=t?this._unwrappedTextLines:this._textLines,s=i.length,n=0;n<s;n++){if(e<=i[n].length)return{lineIndex:n,charIndex:e};e-=i[n].length+this.missingNewlineOffset(n,t)}return{lineIndex:n-1,charIndex:i[n-1].length<e?i[n-1].length:e}},getSelectionStyles:function(e,t,i){"undefined"===typeof e&&(e=this.selectionStart||0),"undefined"===typeof t&&(t=this.selectionEnd||e);for(var s=[],n=e;n<t;n++)s.push(this.getStyleAtPosition(n,i));return s},getStyleAtPosition:function(e,t){var i=this.get2DCursorLocation(e);return(t?this.getCompleteStyleDeclaration(i.lineIndex,i.charIndex):this._getStyleDeclaration(i.lineIndex,i.charIndex))||{}},setSelectionStyles:function(e,t,i){"undefined"===typeof t&&(t=this.selectionStart||0),"undefined"===typeof i&&(i=this.selectionEnd||t);for(var s=t;s<i;s++)this._extendStyles(s,e);return this._forceClearCache=!0,this},_getStyleDeclaration:function(e,t){var i=this.styles&&this.styles[e];return i?i[t]:null},getCompleteStyleDeclaration:function(e,t){for(var i,s=this._getStyleDeclaration(e,t)||{},n={},r=0;r<this._styleProperties.length;r++)n[i=this._styleProperties[r]]="undefined"===typeof s[i]?this[i]:s[i];return n},_setStyleDeclaration:function(e,t,i){this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){delete this.styles[e][t]},_getLineStyle:function(e){return!!this.styles[e]},_setLineStyle:function(e){this.styles[e]={}},_deleteLineStyle:function(e){delete this.styles[e]}}),function(){function e(e){e.textDecoration&&(e.textDecoration.indexOf("underline")>-1&&(e.underline=!0),e.textDecoration.indexOf("line-through")>-1&&(e.linethrough=!0),e.textDecoration.indexOf("overline")>-1&&(e.overline=!0),delete e.textDecoration)}n.IText=n.util.createClass(n.Text,n.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(e,t){this.callSuper("initialize",e,t),this.initBehavior()},setSelectionStart:function(e){e=Math.max(e,0),this._updateAndFire("selectionStart",e)},setSelectionEnd:function(e){e=Math.min(e,this.text.length),this._updateAndFire("selectionEnd",e)},_updateAndFire:function(e,t){this[e]!==t&&(this._fireSelectionChanged(),this[e]=t),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(e){this.clearContextTop(),this.callSuper("render",e),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(e){this.callSuper("_render",e)},clearContextTop:function(e){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var t=this.canvas.contextTop,i=this.canvas.viewportTransform;t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this.transform(t),this._clearTextArea(t),e||t.restore()}},renderCursorOrSelection:function(){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var e=this._getCursorBoundaries(),t=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(e,t):this.renderSelection(e,t),t.restore()}},_clearTextArea:function(e){var t=this.width+4,i=this.height+4;e.clearRect(-t/2,-i/2,t,i)},_getCursorBoundaries:function(e){"undefined"===typeof e&&(e=this.selectionStart);var t=this._getLeftOffset(),i=this._getTopOffset(),s=this._getCursorBoundariesOffsets(e);return{left:t,top:i,leftOffset:s.left,topOffset:s.top}},_getCursorBoundariesOffsets:function(e){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var t,i,s,n,r=0,o=0,a=this.get2DCursorLocation(e);s=a.charIndex,i=a.lineIndex;for(var l=0;l<i;l++)r+=this.getHeightOfLine(l);t=this._getLineLeftOffset(i);var c=this.__charBounds[i][s];return c&&(o=c.left),0!==this.charSpacing&&s===this._textLines[i].length&&(o-=this._getWidthOfCharSpacing()),n={top:r,left:t+(o>0?o:0)},"rtl"===this.direction&&(n.left*=-1),this.cursorOffsetCache=n,this.cursorOffsetCache},renderCursor:function(e,t){var i=this.get2DCursorLocation(),s=i.lineIndex,n=i.charIndex>0?i.charIndex-1:0,r=this.getValueOfPropertyAt(s,n,"fontSize"),o=this.scaleX*this.canvas.getZoom(),a=this.cursorWidth/o,l=e.topOffset,c=this.getValueOfPropertyAt(s,n,"deltaY");l+=(1-this._fontSizeFraction)*this.getHeightOfLine(s)/this.lineHeight-r*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(e,t),t.fillStyle=this.cursorColor||this.getValueOfPropertyAt(s,n,"fill"),t.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,t.fillRect(e.left+e.leftOffset-a/2,l+e.top+c,a,r)},renderSelection:function(e,t){for(var i=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,s=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,n=-1!==this.textAlign.indexOf("justify"),r=this.get2DCursorLocation(i),o=this.get2DCursorLocation(s),a=r.lineIndex,l=o.lineIndex,c=r.charIndex<0?0:r.charIndex,h=o.charIndex<0?0:o.charIndex,d=a;d<=l;d++){var u,g=this._getLineLeftOffset(d)||0,p=this.getHeightOfLine(d),m=0,f=0;if(d===a&&(m=this.__charBounds[a][c].left),d>=a&&d<l)f=n&&!this.isEndOfWrapping(d)?this.width:this.getLineWidth(d)||5;else if(d===l)if(0===h)f=this.__charBounds[l][h].left;else{var _=this._getWidthOfCharSpacing();f=this.__charBounds[l][h-1].left+this.__charBounds[l][h-1].width-_}u=p,(this.lineHeight<1||d===l&&this.lineHeight>1)&&(p/=this.lineHeight);var v=e.left+g+m,C=f-m,b=p,E=0;this.inCompositionMode?(t.fillStyle=this.compositionColor||"black",b=1,E=p):t.fillStyle=this.selectionColor,"rtl"===this.direction&&(v=this.width-v-C),t.fillRect(v,e.top+e.topOffset+E,C,b),e.topOffset+=u}},getCurrentCharFontSize:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fontSize")},getCurrentCharColor:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fill")},_getCurrentCharIndex:function(){var e=this.get2DCursorLocation(this.selectionStart,!0),t=e.charIndex>0?e.charIndex-1:0;return{l:e.lineIndex,c:t}}}),n.IText.fromObject=function(t,i){var s=n.util.stylesFromArray(t.styles,t.text),r=Object.assign({},t,{styles:s});if(delete r.path,e(r),r.styles)for(var o in r.styles)for(var a in r.styles[o])e(r.styles[o][a]);n.Object._fromObject("IText",r,(function(e){t.path?n.Object._fromObject("Path",t.path,(function(t){e.set("path",t),i(e)}),"path"):i(e)}),"text")}}(),function(){var e=n.util.object.clone;n.util.object.extend(n.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var e=this;this.on("added",(function(){var t=e.canvas;t&&(t._hasITextHandlers||(t._hasITextHandlers=!0,e._initCanvasHandlers(t)),t._iTextInstances=t._iTextInstances||[],t._iTextInstances.push(e))}))},initRemovedHandler:function(){var e=this;this.on("removed",(function(){var t=e.canvas;t&&(t._iTextInstances=t._iTextInstances||[],n.util.removeFromArray(t._iTextInstances,e),0===t._iTextInstances.length&&(t._hasITextHandlers=!1,e._removeCanvasHandlers(t)))}))},_initCanvasHandlers:function(e){e._mouseUpITextHandler=function(){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.__isMousedown=!1}))},e.on("mouse:up",e._mouseUpITextHandler)},_removeCanvasHandlers:function(e){e.off("mouse:up",e._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(e,t,i,s){var n;return n={isAborted:!1,abort:function(){this.isAborted=!0}},e.animate("_currentCursorOpacity",t,{duration:i,onComplete:function(){n.isAborted||e[s]()},onChange:function(){e.canvas&&e.selectionStart===e.selectionEnd&&e.renderCursorOrSelection()},abort:function(){return n.isAborted}}),n},_onTickComplete:function(){var e=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){e._currentTickCompleteState=e._animateCursor(e,0,this.cursorDuration/2,"_tick")}),100)},initDelayedCursor:function(e){var t=this,i=e?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){t._tick()}),i)},abortCursorAnimation:function(){var e=this._currentTickState||this._currentTickCompleteState,t=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,e&&t&&t.clearContext(t.contextTop||t.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(e){var t=0,i=e-1;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i--;for(;/\S/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findWordBoundaryRight:function(e){var t=0,i=e;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)t++,i++;for(;/\S/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},findLineBoundaryLeft:function(e){for(var t=0,i=e-1;!/\n/.test(this._text[i])&&i>-1;)t++,i--;return e-t},findLineBoundaryRight:function(e){for(var t=0,i=e;!/\n/.test(this._text[i])&&i<this._text.length;)t++,i++;return e+t},searchWordBoundary:function(e,t){for(var i=this._text,s=this._reSpace.test(i[e])?e-1:e,r=i[s],o=n.reNonWord;!o.test(r)&&s>0&&s<i.length;)r=i[s+=t];return o.test(r)&&(s+=1===t?0:1),s},selectWord:function(e){e=e||this.selectionStart;var t=this.searchWordBoundary(e,-1),i=this.searchWordBoundary(e,1);this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(e){e=e||this.selectionStart;var t=this.findLineBoundaryLeft(e),i=this.findLineBoundaryRight(e);return this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(e){if(!this.isEditing&&this.editable)return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(e),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(e){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.selected=!1,e.isEditing&&e.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(e){if(this.__isMousedown&&this.isEditing){document.activeElement!==this.hiddenTextarea&&this.hiddenTextarea.focus();var t=this.getSelectionStartFromPointer(e.e),i=this.selectionStart,s=this.selectionEnd;(t===this.__selectionStartOnMouseDown&&i!==s||i!==t&&s!==t)&&(t>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i&&this.selectionEnd===s||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(e,t,i){var s=i.slice(0,e),r=n.util.string.graphemeSplit(s).length;if(e===t)return{selectionStart:r,selectionEnd:r};var o=i.slice(e,t);return{selectionStart:r,selectionEnd:r+n.util.string.graphemeSplit(o).length}},fromGraphemeToStringSelection:function(e,t,i){var s=i.slice(0,e).join("").length;return e===t?{selectionStart:s,selectionEnd:s}:{selectionStart:s,selectionEnd:s+i.slice(e,t).join("").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var e=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=e.selectionStart,this.hiddenTextarea.selectionEnd=e.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var e=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=e.selectionEnd,this.inCompositionMode||(this.selectionStart=e.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var e=this._calcTextareaPosition();this.hiddenTextarea.style.left=e.left,this.hiddenTextarea.style.top=e.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var e=this.inCompositionMode?this.compositionStart:this.selectionStart,t=this._getCursorBoundaries(e),i=this.get2DCursorLocation(e),s=i.lineIndex,r=i.charIndex,o=this.getValueOfPropertyAt(s,r,"fontSize")*this.lineHeight,a=t.leftOffset,l=this.calcTransformMatrix(),c={x:t.left+a,y:t.top+t.topOffset+o},h=this.canvas.getRetinaScaling(),d=this.canvas.upperCanvasEl,u=d.width/h,g=d.height/h,p=u-o,m=g-o,f=d.clientWidth/u,_=d.clientHeight/g;return c=n.util.transformPoint(c,l),(c=n.util.transformPoint(c,this.canvas.viewportTransform)).x*=f,c.y*=_,c.x<0&&(c.x=0),c.x>p&&(c.x=p),c.y<0&&(c.y=0),c.y>m&&(c.y=m),c.x+=this.canvas._offset.left,c.y+=this.canvas._offset.top,{left:c.x+"px",top:c.y+"px",fontSize:o+"px",charHeight:o}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var e=this._textBeforeEdit!==this.text,t=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,t&&(t.blur&&t.blur(),t.parentNode&&t.parentNode.removeChild(t)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),e&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),e&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var e in this.styles)this._textLines[e]||delete this.styles[e]},removeStyleFromTo:function(e,t){var i,s,n=this.get2DCursorLocation(e,!0),r=this.get2DCursorLocation(t,!0),o=n.lineIndex,a=n.charIndex,l=r.lineIndex,c=r.charIndex;if(o!==l){if(this.styles[o])for(i=a;i<this._unwrappedTextLines[o].length;i++)delete this.styles[o][i];if(this.styles[l])for(i=c;i<this._unwrappedTextLines[l].length;i++)(s=this.styles[l][i])&&(this.styles[o]||(this.styles[o]={}),this.styles[o][a+i-c]=s);for(i=o+1;i<=l;i++)delete this.styles[i];this.shiftLineStyles(l,o-l)}else if(this.styles[o]){s=this.styles[o];var h,d,u=c-a;for(i=a;i<c;i++)delete s[i];for(d in this.styles[o])(h=parseInt(d,10))>=c&&(s[h-u]=s[d],delete s[d])}},shiftLineStyles:function(t,i){var s=e(this.styles);for(var n in this.styles){var r=parseInt(n,10);r>t&&(this.styles[r+i]=s[r],s[r-i]||delete this.styles[r])}},restartCursorIfNeeded:function(){this._currentTickState&&!this._currentTickState.isAborted&&this._currentTickCompleteState&&!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,i,s,n){var r,o={},a=!1,l=this._unwrappedTextLines[t].length,c=l===i;for(var h in s||(s=1),this.shiftLineStyles(t,s),this.styles[t]&&(r=this.styles[t][0===i?i:i-1]),this.styles[t]){var d=parseInt(h,10);d>=i&&(a=!0,o[d-i]=this.styles[t][h],c&&0===i||delete this.styles[t][h])}var u=!1;for(a&&!c&&(this.styles[t+s]=o,u=!0),(u||l>i)&&s--;s>0;)n&&n[s-1]?this.styles[t+s]={0:e(n[s-1])}:r?this.styles[t+s]={0:e(r)}:delete this.styles[t+s],s--;this._forceClearCache=!0},insertCharStyleObject:function(t,i,s,n){this.styles||(this.styles={});var r=this.styles[t],o=r?e(r):{};for(var a in s||(s=1),o){var l=parseInt(a,10);l>=i&&(r[l+s]=o[l],o[l-s]||delete r[l])}if(this._forceClearCache=!0,n)for(;s--;)Object.keys(n[s]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][i+s]=e(n[s]));else if(r)for(var c=r[i?i-1:1];c&&s--;)this.styles[t][i+s]=e(c)},insertNewStyleBlock:function(e,t,i){for(var s=this.get2DCursorLocation(t,!0),n=[0],r=0,o=0;o<e.length;o++)"\n"===e[o]?n[++r]=0:n[r]++;n[0]>0&&(this.insertCharStyleObject(s.lineIndex,s.charIndex,n[0],i),i=i&&i.slice(n[0]+1)),r&&this.insertNewlineStyleObject(s.lineIndex,s.charIndex+n[0],r);for(o=1;o<r;o++)n[o]>0?this.insertCharStyleObject(s.lineIndex+o,0,n[o],i):i&&this.styles[s.lineIndex+o]&&i[0]&&(this.styles[s.lineIndex+o][0]=i[0]),i=i&&i.slice(n[o]+1);n[o]>0&&this.insertCharStyleObject(s.lineIndex+o,0,n[o],i)},setSelectionStartEndWithShift:function(e,t,i){i<=e?(t===e?this._selectionDirection="left":"right"===this._selectionDirection&&(this._selectionDirection="left",this.selectionEnd=e),this.selectionStart=i):i>e&&i<t?"right"===this._selectionDirection?this.selectionEnd=i:this.selectionStart=i:(t===e?this._selectionDirection="right":"left"===this._selectionDirection&&(this._selectionDirection="right",this.selectionStart=t),this.selectionEnd=i)},setSelectionInBoundaries:function(){var e=this.text.length;this.selectionStart>e?this.selectionStart=e:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>e?this.selectionEnd=e:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),n.util.object.extend(n.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(e){if(this.canvas){this.__newClickTime=+new Date;var t=e.pointer;this.isTripleClick(t)&&(this.fire("tripleclick",e),this._stopEvent(e.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=t,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(e){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===e.x&&this.__lastPointer.y===e.y},_stopEvent:function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(e){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(e.e))},tripleClickHandler:function(e){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(e.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(e.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(e){if(this.__isMousedown=!1,!(!this.editable||this.group||e.transform&&e.transform.actionPerformed||e.e.button&&1!==e.e.button)){if(this.canvas){var t=this.canvas._activeObject;if(t&&t!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(e){var t=this.getSelectionStartFromPointer(e),i=this.selectionStart,s=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(i,s,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(e){for(var t,i=this.getLocalPointer(e),s=0,n=0,r=0,o=0,a=0,l=0,c=this._textLines.length;l<c&&r<=i.y;l++)r+=this.getHeightOfLine(l)*this.scaleY,a=l,l>0&&(o+=this._textLines[l-1].length+this.missingNewlineOffset(l-1));n=this._getLineLeftOffset(a)*this.scaleX,t=this._textLines[a],"rtl"===this.direction&&(i.x=this.width*this.scaleX-i.x+n);for(var h=0,d=t.length;h<d&&(s=n,(n+=this.__charBounds[a][h].kernedWidth*this.scaleX)<=i.x);h++)o++;return this._getNewSelectionStartFromOffset(i,s,n,o,d)},_getNewSelectionStartFromOffset:function(e,t,i,s,n){var r=e.x-t,o=i-e.x,a=s+(o>r||o<0?0:1);return this.flipX&&(a=n-a),a>this._text.length&&(a=this._text.length),a}}),n.util.object.extend(n.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=n.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var e=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+e.top+"; left: "+e.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: "+e.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):n.document.body.appendChild(this.hiddenTextarea),n.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),n.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),n.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),n.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),n.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),n.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(n.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(e){if(this.isEditing){var t="rtl"===this.direction?this.keysMapRtl:this.keysMap;if(e.keyCode in t)this[t[e.keyCode]](e);else{if(!(e.keyCode in this.ctrlKeysMapDown)||!e.ctrlKey&&!e.metaKey)return;this[this.ctrlKeysMapDown[e.keyCode]](e)}e.stopImmediatePropagation(),e.preventDefault(),e.keyCode>=33&&e.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(e){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey)&&(this[this.ctrlKeysMapUp[e.keyCode]](e),e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(e){var t=this.fromPaste;if(this.fromPaste=!1,e&&e.stopPropagation(),this.isEditing){var i,s,r,o,a,l=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,c=this._text.length,h=l.length,d=h-c,u=this.selectionStart,g=this.selectionEnd,p=u!==g;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var m=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),f=u>m.selectionStart;p?(i=this._text.slice(u,g),d+=g-u):h<c&&(i=f?this._text.slice(g+d,g):this._text.slice(u,u-d)),s=l.slice(m.selectionEnd-d,m.selectionEnd),i&&i.length&&(s.length&&(r=this.getSelectionStyles(u,u+1,!1),r=s.map((function(){return r[0]}))),p?(o=u,a=g):f?(o=g-i.length,a=g):(o=g,a=g+i.length),this.removeStyleFromTo(o,a)),s.length&&(t&&s.join("")===n.copiedText&&!n.disableStyleCopyPaste&&(r=n.copiedTextStyle),this.insertNewStyleBlock(s,u,r)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(e){this.compositionStart=e.target.selectionStart,this.compositionEnd=e.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(n.copiedText=this.getSelectedText(),n.disableStyleCopyPaste?n.copiedTextStyle=null:n.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(e){return e&&e.clipboardData||n.window.clipboardData},_getWidthBeforeCursor:function(e,t){var i,s=this._getLineLeftOffset(e);return t>0&&(s+=(i=this.__charBounds[e][t-1]).left+i.width),s},getDownCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),s=this.get2DCursorLocation(i),n=s.lineIndex;if(n===this._textLines.length-1||e.metaKey||34===e.keyCode)return this._text.length-i;var r=s.charIndex,o=this._getWidthBeforeCursor(n,r),a=this._getIndexOnLine(n+1,o);return this._textLines[n].slice(r).length+a+1+this.missingNewlineOffset(n)},_getSelectionForOffset:function(e,t){return e.shiftKey&&this.selectionStart!==this.selectionEnd&&t?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),s=this.get2DCursorLocation(i),n=s.lineIndex;if(0===n||e.metaKey||33===e.keyCode)return-i;var r=s.charIndex,o=this._getWidthBeforeCursor(n,r),a=this._getIndexOnLine(n-1,o),l=this._textLines[n].slice(0,r),c=this.missingNewlineOffset(n-1);return-this._textLines[n-1].length+a-l.length+(1-c)},_getIndexOnLine:function(e,t){for(var i,s,n=this._textLines[e],r=this._getLineLeftOffset(e),o=0,a=0,l=n.length;a<l;a++)if((r+=i=this.__charBounds[e][a].width)>t){s=!0;var c=r-i,h=r,d=Math.abs(c-t);o=Math.abs(h-t)<d?a:a-1;break}return s||(o=n.length-1),o},moveCursorDown:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",e)},moveCursorUp:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",e)},_moveCursorUpOrDown:function(e,t){var i=this["get"+e+"CursorOffset"](t,"right"===this._selectionDirection);t.shiftKey?this.moveCursorWithShift(i):this.moveCursorWithoutShift(i),0!==i&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(e){var t="left"===this._selectionDirection?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),0!==e},moveCursorWithoutShift:function(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),0!==e},moveCursorLeft:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",e)},_move:function(e,t,i){var s;if(e.altKey)s=this["findWordBoundary"+i](this[t]);else{if(!e.metaKey&&35!==e.keyCode&&36!==e.keyCode)return this[t]+="Left"===i?-1:1,!0;s=this["findLineBoundary"+i](this[t])}if("undefined"!==typeof s&&this[t]!==s)return this[t]=s,!0},_moveLeft:function(e,t){return this._move(e,t,"Left")},_moveRight:function(e,t){return this._move(e,t,"Right")},moveCursorLeftWithoutShift:function(e){var t=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(t=this._moveLeft(e,"selectionStart")),this.selectionEnd=this.selectionStart,t},moveCursorLeftWithShift:function(e){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(e,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(e,"selectionStart")):void 0},moveCursorRight:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",e)},_moveCursorLeftOrRight:function(e,t){var i="moveCursor"+e+"With";this._currentCursorOpacity=1,t.shiftKey?i+="Shift":i+="outShift",this[i](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(e){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(e,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(e,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(e){var t=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(t=this._moveRight(e,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t},removeChars:function(e,t){"undefined"===typeof t&&(t=e+1),this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(e,t,i,s){"undefined"===typeof s&&(s=i),s>i&&this.removeStyleFromTo(i,s);var r=n.util.string.graphemeSplit(e);this.insertNewStyleBlock(r,i,t),this._text=[].concat(this._text.slice(0,i),r,this._text.slice(s)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var e=n.util.toFixed,t=n.util.radiansToDegrees,i=n.util.calcRotateMatrix,s=n.util.transformPoint,r=/ +/g;n.util.object.extend(n.Text.prototype,{_toSVG:function(){var e=this._getSVGLeftTopOffsets(),t=this._getSVGTextAndBg(e.textTop,e.textLeft);return this._wrapSVGTextAndBg(t)},toSVG:function(e){var t=this._createBaseSVGMarkup(this._toSVG(),{reviver:e,noStyle:!0,withShadow:!0}),i=this.path;return i?t+i._createBaseSVGMarkup(i._toSVG(),{reviver:e,withShadow:!0}):t},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(e){var t=this.getSvgTextDecoration(this);return[e.textBgRects.join(""),'\t\t<text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",t?'text-decoration="'+t+'" ':"",'style="',this.getSvgStyles(!0),'"',this.addPaintOrder()," >",e.textSpans.join(""),"</text>\n"]},_getSVGTextAndBg:function(e,t){var i,s=[],n=[],r=e;this._setSVGBg(n);for(var o=0,a=this._textLines.length;o<a;o++)i=this._getLineLeftOffset(o),(this.textBackgroundColor||this.styleHas("textBackgroundColor",o))&&this._setSVGTextLineBg(n,o,t+i,r),this._setSVGTextLineText(s,o,t+i,r),r+=this.getHeightOfLine(o);return{textSpans:s,textBgRects:n}},_createTextCharSpan:function(o,a,l,c,h){var d=o!==o.trim()||o.match(r),u=this.getSvgSpanStyles(a,d),g=u?'style="'+u+'"':"",p=a.deltaY,m="",f=n.Object.NUM_FRACTION_DIGITS,_="";if(p&&(m=' dy="'+e(p,f)+'" '),void 0!==h.renderLeft){var v=h.angle;_=' rotate="'+e(t(v),n.Object.NUM_FRACTION_DIGITS)+'" ';var C=h.width/2,b=i({angle:t(v)});b[4]=h.renderLeft,b[5]=h.renderTop;var E=s({x:-C,y:0},b);l=E.x,c=E.y}return['<tspan x="',e(l,f),'" y="',e(c,f),'" ',m,g,_,">",n.util.string.escapeXml(o),"</tspan>"].join("")},_setSVGTextLineText:function(e,t,i,s){var r,o,a,l,c,h=this.getHeightOfLine(t),d=-1!==this.textAlign.indexOf("justify"),u="",g=0,p=this._textLines[t];s+=h*(1-this._fontSizeFraction)/this.lineHeight;for(var m=0,f=p.length-1;m<=f;m++)c=m===f||this.charSpacing||this.path,u+=p[m],a=this.__charBounds[t][m],0===g?(i+=a.kernedWidth-a.width,g+=a.width):g+=a.kernedWidth,d&&!c&&this._reSpaceAndTab.test(p[m])&&(c=!0),c||(r=r||this.getCompleteStyleDeclaration(t,m),o=this.getCompleteStyleDeclaration(t,m+1),c=n.util.hasStyleChanged(r,o,!0)),c&&(l=this._getStyleDeclaration(t,m)||{},e.push(this._createTextCharSpan(u,l,i,s,a)),u="",r=o,i+=g,g=0)},_pushTextBgRect:function(t,i,s,r,o,a){var l=n.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(i),' x="',e(s,l),'" y="',e(r,l),'" width="',e(o,l),'" height="',e(a,l),'"></rect>\n')},_setSVGTextLineBg:function(e,t,i,s){for(var n,r,o=this._textLines[t],a=this.getHeightOfLine(t)/this.lineHeight,l=0,c=0,h=this.getValueOfPropertyAt(t,0,"textBackgroundColor"),d=0,u=o.length;d<u;d++)n=this.__charBounds[t][d],(r=this.getValueOfPropertyAt(t,d,"textBackgroundColor"))!==h?(h&&this._pushTextBgRect(e,h,i+c,s,l,a),c=n.left,l=n.width,h=r):l+=n.kernedWidth;r&&this._pushTextBgRect(e,r,i+c,s,l,a)},_getFillAttributes:function(e){var t=e&&"string"===typeof e?new n.Color(e):"";return t&&t.getSource()&&1!==t.getAlpha()?'opacity="'+t.getAlpha()+'" fill="'+t.setAlpha(1).toRgb()+'"':'fill="'+e+'"'},_getSVGLineTopOffset:function(e){for(var t,i=0,s=0;s<e;s++)i+=this.getHeightOfLine(s);return t=this.getHeightOfLine(s),{lineTop:i,offset:(this._fontSizeMult-this._fontSizeFraction)*t/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(e){return n.Object.prototype.getSvgStyles.call(this,e)+" white-space: pre;"}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Textbox=t.util.createClass(t.IText,t.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:t.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(e){for(var t=0,i=0,s=0,n={},r=0;r<e.graphemeLines.length;r++)"\n"===e.graphemeText[s]&&r>0?(i=0,s++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[s])&&r>0&&(i++,s++),n[r]={line:t,offset:i},s+=e.graphemeLines[r].length,i+=e.graphemeLines[r].length;return n},styleHas:function(e,i){if(this._styleMap&&!this.isWrapping){var s=this._styleMap[i];s&&(i=s.line)}return t.Text.prototype.styleHas.call(this,e,i)},isEmptyStyles:function(e){if(!this.styles)return!0;var t,i,s=0,n=!1,r=this._styleMap[e],o=this._styleMap[e+1];for(var a in r&&(e=r.line,s=r.offset),o&&(n=o.line===e,t=o.offset),i="undefined"===typeof e?this.styles:{line:this.styles[e]})for(var l in i[a])if(l>=s&&(!n||l<t))for(var c in i[a][l])return!1;return!0},_getStyleDeclaration:function(e,t){if(this._styleMap&&!this.isWrapping){var i=this._styleMap[e];if(!i)return null;e=i.line,t=i.offset+t}return this.callSuper("_getStyleDeclaration",e,t)},_setStyleDeclaration:function(e,t,i){var s=this._styleMap[e];e=s.line,t=s.offset+t,this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){var i=this._styleMap[e];e=i.line,t=i.offset+t,delete this.styles[e][t]},_getLineStyle:function(e){var t=this._styleMap[e];return!!this.styles[t.line]},_setLineStyle:function(e){var t=this._styleMap[e];this.styles[t.line]={}},_wrapText:function(e,t){var i,s=[];for(this.isWrapping=!0,i=0;i<e.length;i++)s=s.concat(this._wrapLine(e[i],i,t));return this.isWrapping=!1,s},_measureWord:function(e,t,i){var s,n=0;i=i||0;for(var r=0,o=e.length;r<o;r++){n+=this._getGraphemeBox(e[r],t,r+i,s,true).kernedWidth,s=e[r]}return n},_wrapLine:function(e,i,s,n){var r=0,o=this.splitByGrapheme,a=[],l=[],c=o?t.util.string.graphemeSplit(e):e.split(this._wordJoiners),h="",d=0,u=o?"":" ",g=0,p=0,m=0,f=!0,_=this._getWidthOfCharSpacing();n=n||0;0===c.length&&c.push([]),s-=n;for(var v=0;v<c.length;v++)h=o?c[v]:t.util.string.graphemeSplit(c[v]),g=this._measureWord(h,i,d),d+=h.length,(r+=p+g-_)>s&&!f?(a.push(l),l=[],r=g,f=!0):r+=_,f||o||l.push(u),l=l.concat(h),p=o?0:this._measureWord([u],i,d),d++,f=!1,g>m&&(m=g);return v&&a.push(l),m+n>this.dynamicMinWidth&&(this.dynamicMinWidth=m-_+n),a},isEndOfWrapping:function(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line},missingNewlineOffset:function(e,t){return this.splitByGrapheme&&!t?this.isEndOfWrapping(e)?1:0:1},_splitTextIntoLines:function(e){for(var i=t.Text.prototype._splitTextIntoLines.call(this,e),s=this._wrapText(i.lines,this.width),n=new Array(s.length),r=0;r<s.length;r++)n[r]=s[r].join("");return i.lines=n,i.graphemeLines=s,i},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var e={};for(var t in this._styleMap)this._textLines[t]&&(e[this._styleMap[t].line]=1);for(var t in this.styles)e[t]||delete this.styles[t]},toObject:function(e){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(e))}}),t.Textbox.fromObject=function(e,i){var s=t.util.stylesFromArray(e.styles,e.text),n=Object.assign({},e,{styles:s});return delete n.path,t.Object._fromObject("Textbox",n,(function(s){e.path?t.Object._fromObject("Path",e.path,(function(e){s.set("path",e),i(s)}),"path"):i(s)}),"text")}}(t),function(){var e=n.controlsUtils,t=e.scaleSkewCursorStyleHandler,i=e.scaleCursorStyleHandler,s=e.scalingEqually,r=e.scalingYOrSkewingX,o=e.scalingXOrSkewingY,a=e.scaleOrSkewActionName,l=n.Object.prototype.controls;if(l.ml=new n.Control({x:-.5,y:0,cursorStyleHandler:t,actionHandler:o,getActionName:a}),l.mr=new n.Control({x:.5,y:0,cursorStyleHandler:t,actionHandler:o,getActionName:a}),l.mb=new n.Control({x:0,y:.5,cursorStyleHandler:t,actionHandler:r,getActionName:a}),l.mt=new n.Control({x:0,y:-.5,cursorStyleHandler:t,actionHandler:r,getActionName:a}),l.tl=new n.Control({x:-.5,y:-.5,cursorStyleHandler:i,actionHandler:s}),l.tr=new n.Control({x:.5,y:-.5,cursorStyleHandler:i,actionHandler:s}),l.bl=new n.Control({x:-.5,y:.5,cursorStyleHandler:i,actionHandler:s}),l.br=new n.Control({x:.5,y:.5,cursorStyleHandler:i,actionHandler:s}),l.mtr=new n.Control({x:0,y:-.5,actionHandler:e.rotationWithSnapping,cursorStyleHandler:e.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),n.Textbox){var c=n.Textbox.prototype.controls={};c.mtr=l.mtr,c.tr=l.tr,c.br=l.br,c.tl=l.tl,c.bl=l.bl,c.mt=l.mt,c.mb=l.mb,c.mr=new n.Control({x:.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"}),c.ml=new n.Control({x:-.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"})}}()},79064:(e,t,i)=>{var s=i(59368),n=i(63819);e.exports=function e(t,i,r,o,a){var l=-1,c=t.length;for(r||(r=n),a||(a=[]);++l<c;){var h=t[l];i>0&&r(h)?i>1?e(h,i-1,r,o,a):s(a,h):o||(a[a.length]=h)}return a}},63010:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,i){return null!=e&&t.call(e,i)}},80531:(e,t,i)=>{var s=i(68097),n=i(88834),r=i(12529),o=i(92061);e.exports=function(e,t){return t=s(t,e),null==(e=r(e,t))||delete e[o(n(t))]}},24410:(e,t,i)=>{var s=i(20011);e.exports=function(e){return s(e)?void 0:e}},34408:(e,t,i)=>{var s=i(73917),n=i(39069),r=i(72633);e.exports=function(e){return r(n(e,void 0,s),e+"")}},63819:(e,t,i)=>{var s=i(537),n=i(52964),r=i(19305),o=s?s.isConcatSpreadable:void 0;e.exports=function(e){return r(e)||n(e)||!!(o&&e&&e[o])}},12529:(e,t,i)=>{var s=i(43238),n=i(32112);e.exports=function(e,t){return t.length<2?e:s(e,n(t,0,-1))}},73917:(e,t,i)=>{var s=i(79064);e.exports=function(e){return(null==e?0:e.length)?s(e,1):[]}},81824:(e,t,i)=>{var s=i(63010),n=i(78326);e.exports=function(e,t){return null!=e&&n(e,t,s)}},61199:(e,t,i)=>{var s=i(16320),n=i(59698);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},88834:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},52708:(e,t,i)=>{var s=i(634),n=i(35647)((function(e,t,i,n){s(e,t,i,n)}));e.exports=n},62091:(e,t,i)=>{var s=i(54380),n=i(35367),r=i(80531),o=i(68097),a=i(62871),l=i(24410),c=i(34408),h=i(35725),d=c((function(e,t){var i={};if(null==e)return i;var c=!1;t=s(t,(function(t){return t=o(t,e),c||(c=t.length>1),t})),a(e,h(e),i),c&&(i=n(i,7,l));for(var d=t.length;d--;)r(i,t[d]);return i}));e.exports=d},1445:e=>{"use strict";e.exports=function(e){for(var t=function(e){var t,i=1+(e.length+8>>6),s=new Array(16*i);for(t=0;t<16*i;t++)s[t]=0;for(t=0;t<e.length;t++)s[t>>2]|=e.charCodeAt(t)<<(8*e.length+t)%4*8;s[t>>2]|=128<<(8*e.length+t)%4*8;var n=8*e.length;return s[16*i-2]=255&n,s[16*i-2]|=(n>>>8&255)<<8,s[16*i-2]|=(n>>>16&255)<<16,s[16*i-2]|=(n>>>24&255)<<24,s}(e),i=1732584193,s=-271733879,n=-1732584194,a=271733878,u=0;u<t.length;u+=16){var g=i,p=s,m=n,f=a;i=l(i,s,n,a,t[u+0],7,-680876936),a=l(a,i,s,n,t[u+1],12,-389564586),n=l(n,a,i,s,t[u+2],17,606105819),s=l(s,n,a,i,t[u+3],22,-1044525330),i=l(i,s,n,a,t[u+4],7,-176418897),a=l(a,i,s,n,t[u+5],12,1200080426),n=l(n,a,i,s,t[u+6],17,-1473231341),s=l(s,n,a,i,t[u+7],22,-45705983),i=l(i,s,n,a,t[u+8],7,1770035416),a=l(a,i,s,n,t[u+9],12,-1958414417),n=l(n,a,i,s,t[u+10],17,-42063),s=l(s,n,a,i,t[u+11],22,-1990404162),i=l(i,s,n,a,t[u+12],7,1804603682),a=l(a,i,s,n,t[u+13],12,-40341101),n=l(n,a,i,s,t[u+14],17,-1502002290),i=c(i,s=l(s,n,a,i,t[u+15],22,1236535329),n,a,t[u+1],5,-165796510),a=c(a,i,s,n,t[u+6],9,-1069501632),n=c(n,a,i,s,t[u+11],14,643717713),s=c(s,n,a,i,t[u+0],20,-373897302),i=c(i,s,n,a,t[u+5],5,-701558691),a=c(a,i,s,n,t[u+10],9,38016083),n=c(n,a,i,s,t[u+15],14,-660478335),s=c(s,n,a,i,t[u+4],20,-405537848),i=c(i,s,n,a,t[u+9],5,568446438),a=c(a,i,s,n,t[u+14],9,-1019803690),n=c(n,a,i,s,t[u+3],14,-187363961),s=c(s,n,a,i,t[u+8],20,1163531501),i=c(i,s,n,a,t[u+13],5,-1444681467),a=c(a,i,s,n,t[u+2],9,-51403784),n=c(n,a,i,s,t[u+7],14,1735328473),i=h(i,s=c(s,n,a,i,t[u+12],20,-1926607734),n,a,t[u+5],4,-378558),a=h(a,i,s,n,t[u+8],11,-2022574463),n=h(n,a,i,s,t[u+11],16,1839030562),s=h(s,n,a,i,t[u+14],23,-35309556),i=h(i,s,n,a,t[u+1],4,-1530992060),a=h(a,i,s,n,t[u+4],11,1272893353),n=h(n,a,i,s,t[u+7],16,-155497632),s=h(s,n,a,i,t[u+10],23,-1094730640),i=h(i,s,n,a,t[u+13],4,681279174),a=h(a,i,s,n,t[u+0],11,-358537222),n=h(n,a,i,s,t[u+3],16,-722521979),s=h(s,n,a,i,t[u+6],23,76029189),i=h(i,s,n,a,t[u+9],4,-640364487),a=h(a,i,s,n,t[u+12],11,-421815835),n=h(n,a,i,s,t[u+15],16,530742520),i=d(i,s=h(s,n,a,i,t[u+2],23,-995338651),n,a,t[u+0],6,-198630844),a=d(a,i,s,n,t[u+7],10,1126891415),n=d(n,a,i,s,t[u+14],15,-1416354905),s=d(s,n,a,i,t[u+5],21,-57434055),i=d(i,s,n,a,t[u+12],6,1700485571),a=d(a,i,s,n,t[u+3],10,-1894986606),n=d(n,a,i,s,t[u+10],15,-1051523),s=d(s,n,a,i,t[u+1],21,-2054922799),i=d(i,s,n,a,t[u+8],6,1873313359),a=d(a,i,s,n,t[u+15],10,-30611744),n=d(n,a,i,s,t[u+6],15,-1560198380),s=d(s,n,a,i,t[u+13],21,1309151649),i=d(i,s,n,a,t[u+4],6,-145523070),a=d(a,i,s,n,t[u+11],10,-1120210379),n=d(n,a,i,s,t[u+2],15,718787259),s=d(s,n,a,i,t[u+9],21,-343485551),i=r(i,g),s=r(s,p),n=r(n,m),a=r(a,f)}return o(i)+o(s)+o(n)+o(a)};var t="0123456789abcdef";function i(e,t){return(e>>>1|t>>>1)<<1|(1&e|1&t)}function s(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t}function n(e,t){return(e>>>1&t>>>1)<<1|1&e&t}function r(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function o(e){var i,s="";for(i=0;i<=3;i++)s+=t.charAt(e>>8*i+4&15)+t.charAt(e>>8*i&15);return s}function a(e,t,i,s,n,o){return r((a=r(r(t,e),r(s,o)))<<(l=n)|a>>>32-l,i);var a,l}function l(e,t,s,r,o,l,c){return a(i(n(t,s),n(~t,r)),e,t,o,l,c)}function c(e,t,s,r,o,l,c){return a(i(n(t,r),n(s,~r)),e,t,o,l,c)}function h(e,t,i,n,r,o,l){return a(s(s(t,i),n),e,t,r,o,l)}function d(e,t,n,r,o,l,c){return a(s(n,i(t,~r)),e,t,o,l,c)}},80781:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>Pl,Emitter:()=>Fl,KeyCode:()=>Ul,KeyMod:()=>Hl,MarkerSeverity:()=>Gl,MarkerTag:()=>jl,Position:()=>Bl,Range:()=>Wl,Selection:()=>Vl,SelectionDirection:()=>zl,Token:()=>Yl,Uri:()=>Kl,default:()=>Zl,editor:()=>ql,languages:()=>$l});var s={};i.r(s),i.d(s,{CancellationTokenSource:()=>Pl,Emitter:()=>Fl,KeyCode:()=>Ul,KeyMod:()=>Hl,MarkerSeverity:()=>Gl,MarkerTag:()=>jl,Position:()=>Bl,Range:()=>Wl,Selection:()=>Vl,SelectionDirection:()=>zl,Token:()=>Yl,Uri:()=>Kl,editor:()=>ql,languages:()=>$l});i(44915),i(88952),i(36999),i(58590),i(6438),i(94908),i(4836);var n=i(52555),r=(i(64215),i(31659),i(99822),i(40142),i(18864),i(32516),i(20961),i(40800),i(2183),i(58568),i(63867),i(61731),i(34175),i(44588),i(70552),i(48279),i(65877),i(81091),i(99312),i(62427),i(58466),i(56800),i(28449),i(57244),i(76440),i(80409),i(58145),i(40677),i(9948),i(84325),i(15040),i(75639),i(85117),i(14614),i(95200),i(50352),i(4519),i(85646),i(77047),i(6429),i(28211),i(59731),i(57377),i(50071),i(18278),i(98745),i(44798),i(10617),i(30936),i(57197),i(90870),i(10846),i(22890),i(98472),i(50166),i(68887),i(47210),i(79907),i(38728),i(46606),i(87908)),o=i(73848),a=i(25893),l=i(5662),c=i(91508),h=i(79400),d=i(28433),u=i(31450),g=i(80301),p=i(10146),m=i(90766),f=i(51929),_=i(80789),v=i(64383),C=i(36456),b=i(25890),E=i(78209);let S;function y(e,t){const i=globalThis.MonacoEnvironment;if(i){if("function"===typeof i.getWorker)return i.getWorker("workerMain.js",t);if("function"===typeof i.getWorkerUrl){const e=i.getWorkerUrl("workerMain.js",t);return new Worker(S?S.createScriptURL(e):e,{name:t,type:"module"})}}if(e){const i=function(e,t,i){const s=/^((http:)|(https:)|(file:)|(vscode-file:))/.test(t);if(s&&t.substring(0,globalThis.origin.length)!==globalThis.origin);else{const i=t.lastIndexOf("?"),s=t.lastIndexOf("#",i),n=i>0?new URLSearchParams(t.substring(i+1,~s?s:void 0)):new URLSearchParams;C.SJ.addSearchParam(n,!0,!0);t=n.toString()?`${t}?${n.toString()}#${e}`:`${t}#${e}`}0;const n=new Blob([(0,b.Yc)([`/*${e}*/`,i?`globalThis.MonacoEnvironment = { baseUrl: '${i}' };`:void 0,`globalThis._VSCODE_NLS_MESSAGES = ${JSON.stringify((0,E.Ec)())};`,`globalThis._VSCODE_NLS_LANGUAGE = ${JSON.stringify((0,E.i8)())};`,`globalThis._VSCODE_FILE_ROOT = '${globalThis._VSCODE_FILE_ROOT}';`,"const ttPolicy = globalThis.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });","globalThis.workerttPolicy = ttPolicy;",`await import(ttPolicy?.createScriptURL('${t}') ?? '${t}');`,"globalThis.postMessage({ type: 'vscode-worker-ready' });",`/*${e}*/`]).join("")],{type:"application/javascript"});return URL.createObjectURL(n)}(t,e.toString(!0)),s=new Worker(S?S.createScriptURL(i):i,{name:t,type:"module"});return function(e){return new Promise(((t,i)=>{e.onmessage=function(i){"vscode-worker-ready"===i.data.type&&(e.onmessage=null,t(e))},e.onerror=i}))}(s)}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}S="object"===typeof self&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name&&void 0!==globalThis.workerttPolicy?globalThis.workerttPolicy:(0,_.H)("defaultWorkerFactory",{createScriptURL:e=>e});class w extends l.jG{constructor(e,t,i,s,n,r){super(),this.id=i,this.label=s;const o=y(e,s);"function"===typeof o.then?this.worker=o:this.worker=Promise.resolve(o),this.postMessage(t,[]),this.worker.then((e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=r,"function"===typeof e.addEventListener&&e.addEventListener("error",r)})),this._register((0,l.s)((()=>{this.worker?.then((e=>{e.onmessage=null,e.onmessageerror=null,e.removeEventListener("error",r),e.terminate()})),this.worker=null})))}getId(){return this.id}postMessage(e,t){this.worker?.then((i=>{try{i.postMessage(e,t)}catch(s){(0,v.dz)(s),(0,v.dz)(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:s}))}}))}}class L{constructor(e,t){this.amdModuleId=e,this.label=t,this.esmModuleLocation=C.zl.asBrowserUri(`${e}.esm.js`)}}class R{static{this.LAST_WORKER_ID=0}constructor(){this._webWorkerFailedBeforeError=!1}create(e,t,i){const s=++R.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new w(e.esmModuleLocation,e.amdModuleId,s,e.label||"anonymous"+s,t,(e=>{(0,f.logOnceWebWorkerWarning)(e),this._webWorkerFailedBeforeError=e,i(e)}))}}var T=i(36677),x=i(17469),k=i(16545),A=i(23750),N=i(90360),I=i(18801),O=i(78381),D=i(56942),M=i(41845),P=i(87723),F=i(86571),U=i(8597),H=i(47443),B=i(80718),W=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},V=function(e,t){return function(i,s){t(i,s,e)}};const z=3e5;function G(e,t){const i=e.getModel(t);return!!i&&!i.isTooLargeForSyncing()}let j=class extends l.jG{constructor(e,t,i,s,n,r){super(),this._languageConfigurationService=n,this._modelService=t,this._workerManager=this._register(new Y(e,this._modelService)),this._logService=s,this._register(r.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:async(e,t)=>{if(!G(this._modelService,e.uri))return Promise.resolve({links:[]});const i=await this._workerWithResources([e.uri]),s=await i.$computeLinks(e.uri.toString());return s&&{links:s}}})),this._register(r.completionProvider.register("*",new K(this._workerManager,i,this._modelService,this._languageConfigurationService)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return G(this._modelService,e)}async computedUnicodeHighlights(e,t,i){return(await this._workerWithResources([e])).$computeUnicodeHighlights(e.toString(),t,i)}async computeDiff(e,t,i,s){const n=await this._workerWithResources([e,t],!0),r=await n.$computeDiff(e.toString(),t.toString(),i,s);if(!r)return null;return{identical:r.identical,quitEarly:r.quitEarly,changes:o(r.changes),moves:r.moves.map((e=>new M.t(new P.WL(new F.M(e[0],e[1]),new F.M(e[2],e[3])),o(e[4]))))};function o(e){return e.map((e=>new P.wm(new F.M(e[0],e[1]),new F.M(e[2],e[3]),e[4]?.map((e=>new P.q6(new T.Q(e[0],e[1],e[2],e[3]),new T.Q(e[4],e[5],e[6],e[7])))))))}}async computeMoreMinimalEdits(e,t,i=!1){if((0,b.EI)(t)){if(!G(this._modelService,e))return Promise.resolve(t);const s=O.W.create(),n=this._workerWithResources([e]).then((s=>s.$computeMoreMinimalEdits(e.toString(),t,i)));return n.finally((()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),s.elapsed()))),Promise.race([n,(0,m.wR)(1e3).then((()=>t))])}return Promise.resolve(void 0)}canNavigateValueSet(e){return G(this._modelService,e)}async navigateValueSet(e,t,i){const s=this._modelService.getModel(e);if(!s)return null;const n=this._languageConfigurationService.getLanguageConfiguration(s.getLanguageId()).getWordDefinition(),r=n.source,o=n.flags;return(await this._workerWithResources([e])).$navigateValueSet(e.toString(),t,i,r,o)}canComputeWordRanges(e){return G(this._modelService,e)}async computeWordRanges(e,t){const i=this._modelService.getModel(e);if(!i)return Promise.resolve(null);const s=this._languageConfigurationService.getLanguageConfiguration(i.getLanguageId()).getWordDefinition(),n=s.source,r=s.flags;return(await this._workerWithResources([e])).$computeWordRanges(e.toString(),t,n,r)}async findSectionHeaders(e,t){return(await this._workerWithResources([e])).$findSectionHeaders(e.toString(),t)}async computeDefaultDocumentColors(e){return(await this._workerWithResources([e])).$computeDefaultDocumentColors(e.toString())}async _workerWithResources(e,t=!1){const i=await this._workerManager.withWorker();return await i.workerWithSyncedResources(e,t)}};j=W([V(1,A.IModelService),V(2,N.ITextResourceConfigurationService),V(3,I.rr),V(4,x.JZ),V(5,D.ILanguageFeaturesService)],j);class K{constructor(e,t,i,s){this.languageConfigurationService=s,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}async provideCompletionItems(e,t){const i=this._configurationService.getValue(e.uri,t,"editor");if("off"===i.wordBasedSuggestions)return;const s=[];if("currentDocument"===i.wordBasedSuggestions)G(this._modelService,e.uri)&&s.push(e.uri);else for(const h of this._modelService.getModels())G(this._modelService,h.uri)&&(h===e?s.unshift(h.uri):"allDocuments"!==i.wordBasedSuggestions&&h.getLanguageId()!==e.getLanguageId()||s.push(h.uri));if(0===s.length)return;const n=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),r=e.getWordAtPosition(t),o=r?new T.Q(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):T.Q.fromPositions(t),a=o.setEndPosition(t.lineNumber,t.column),l=await this._workerManager.withWorker(),c=await l.textualSuggest(s,r?.word,n);return c?{duration:c.duration,suggestions:c.words.map((e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:o}})))}:void 0}}let Y=class extends l.jG{constructor(e,t){super(),this._workerDescriptor=e,this._modelService=t,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime();this._register(new U.Be).cancelAndSet((()=>this._checkStopIdleWorker()),Math.round(15e4),a.G),this._register(this._modelService.onModelRemoved((e=>this._checkStopEmptyWorker())))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;(new Date).getTime()-this._lastWorkerUsedTime>z&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new $(this._workerDescriptor,!1,this._modelService)),Promise.resolve(this._editorWorkerClient)}};Y=W([V(1,A.IModelService)],Y);class q{constructor(e){this._instance=e,this.proxy=this._instance}dispose(){this._instance.dispose()}setChannel(e,t){throw new Error("Not supported")}}let $=class extends l.jG{constructor(e,t,i){super(),this._workerDescriptor=e,this._disposed=!1,this._modelService=i,this._keepIdleModels=t,this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(function(e,t){const i="string"===typeof e?new L(e,t):e;return new f.SimpleWorkerClient(new R,i)}(this._workerDescriptor)),B.EditorWorkerHost.setChannel(this._worker,this._createEditorWorkerHost())}catch(e){(0,f.logOnceWebWorkerWarning)(e),this._worker=this._createFallbackLocalWorker()}return this._worker}async _getProxy(){try{const e=this._getOrCreateWorker().proxy;return await e.$ping(),e}catch(e){return(0,f.logOnceWebWorkerWarning)(e),this._worker=this._createFallbackLocalWorker(),this._worker.proxy}}_createFallbackLocalWorker(){return new q(new k.EditorSimpleWorker(this._createEditorWorkerHost(),null))}_createEditorWorkerHost(){return{$fhr:(e,t)=>this.fhr(e,t)}}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new H.WorkerTextModelSyncClient(e,this._modelService,this._keepIdleModels))),this._modelManager}async workerWithSyncedResources(e,t=!1){if(this._disposed)return Promise.reject((0,v.aD)());const i=await this._getProxy();return this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i}async textualSuggest(e,t,i){const s=await this.workerWithSyncedResources(e),n=i.source,r=i.flags;return s.$textualSuggest(e.map((e=>e.toString())),t,n,r)}dispose(){super.dispose(),this._disposed=!0}};$=W([V(2,A.IModelService)],$);var Q=i(41234),X=i(58925),Z=i(47612),J=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ee=function(e,t){return function(i,s){t(i,s,e)}};let te=class extends l.jG{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new Q.vl),this._onCodeEditorAdd=this._register(new Q.vl),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new Q.vl),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new Q.vl),this._onDiffEditorAdd=this._register(new Q.vl),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new Q.vl),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new X.w,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorationsByType(e)))))}setModelProperty(e,t,i){const s=e.toString();let n;this._modelProperties.has(s)?n=this._modelProperties.get(s):(n=new Map,this._modelProperties.set(s,n)),n.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i)){return this._modelProperties.get(i).get(t)}}async openCodeEditor(e,t,i){for(const s of this._codeEditorOpenHandlers){const n=await s(e,t,i);if(null!==n)return n}return null}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return(0,l.s)(t)}};te=J([ee(0,Z.Gy)],te);var ie=i(32848),se=i(14718),ne=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},re=function(e,t){return function(i,s){t(i,s,e)}};let oe=class extends te{constructor(e,t){super(t),this._register(this.onCodeEditorAdd((()=>this._checkContextKey()))),this._register(this.onCodeEditorRemove((()=>this._checkContextKey()))),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler((async(e,t,i)=>t?this.doOpenEditor(t,e):null)))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const i=t.resource.scheme;if(i===C.ny.http||i===C.ny.https)return(0,U.CE)(t.resource.toString()),e}return null}const i=t.options?t.options.selection:null;if(i)if("number"===typeof i.endLineNumber&&"number"===typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};oe=ne([re(0,ie.fN),re(1,Z.Gy)],oe),(0,se.v)(g.T,oe,0);var ae=i(63591);const le=(0,ae.u1)("layoutService");var ce=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},he=function(e,t){return function(i,s){t(i,s,e)}};let de=class{get mainContainer(){return(0,b.Fy)(this._codeEditorService.listCodeEditors())?.getContainerDomNode()??a.G.document.body}get activeContainer(){const e=this._codeEditorService.getFocusedCodeEditor()??this._codeEditorService.getActiveCodeEditor();return e?.getContainerDomNode()??this.mainContainer}get mainContainerDimension(){return U.tG(this.mainContainer)}get activeContainerDimension(){return U.tG(this.activeContainer)}get containers(){return(0,b.Yc)(this._codeEditorService.listCodeEditors().map((e=>e.getContainerDomNode())))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){this._codeEditorService.getFocusedCodeEditor()?.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=Q.Jh.None,this.onDidLayoutActiveContainer=Q.Jh.None,this.onDidLayoutContainer=Q.Jh.None,this.onDidChangeActiveContainer=Q.Jh.None,this.onDidAddContainer=Q.Jh.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};de=ce([he(0,g.T)],de);let ue=class extends de{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};ue=ce([he(1,g.T)],ue),(0,se.v)(le,de,1);var ge=i(42291),pe=i(59599),me=i(58591),fe=i(47579),_e=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ve=function(e,t){return function(i,s){t(i,s,e)}};const Ce=!1;function be(e){return e.scheme===C.ny.file?e.fsPath:e.path}let Ee=0;class Se{constructor(e,t,i,s,n,r,o){this.id=++Ee,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=s,this.groupOrder=n,this.sourceId=r,this.sourceOrder=o,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class ye{constructor(e,t){this.resourceLabel=e,this.reason=t}}class we{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,s]of this.elements){(0===s.reason?e:t).push(s.resourceLabel)}const i=[];return e.length>0&&i.push(E.kg({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(E.kg({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class Le{constructor(e,t,i,s,n,r,o){this.id=++Ee,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=s,this.groupOrder=n,this.sourceId=r,this.sourceOrder=o,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"===typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new we),this.removedResources.has(t)||this.removedResources.set(t,new ye(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new we),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new ye(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Re{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)1===t.type&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let i=0,s=this._past.length;i<s;i++)t.push(this._past[i].id);for(let i=this._future.length-1;i>=0;i--)t.push(this._future[i].id);return new fe.To(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,s=0,n=-1;for(let o=0,a=this._past.length;o<a;o++,s++){const r=this._past[o];i&&(s>=t||r.id!==e.elements[s])&&(i=!1,n=0),i||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let o=this._future.length-1;o>=0;o--,s++){const n=this._future[o];i&&(s>=t||n.id!==e.elements[s])&&(i=!1,r=o),i||1!==n.type||n.removeResource(this.resourceLabel,this.strResource,0)}-1!==n&&(this._past=this._past.slice(0,n)),-1!==r&&(this._future=this._future.slice(r+1)),this.versionId++}getElements(){const e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class Te{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;t<i;t++)this._versionIds[t]=this.editStacks[t].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}const xe=new Re("","");xe.locked=!0;let ke=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(const t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);const t=[];for(const i of this._editStacks)t.push(i[1].toString());console.log(t.join("\n"))}pushElement(e,t=fe.I_.None,i=fe.Ym.None){if(0===e.type){const s=be(e.resource),n=this.getUriComparisonKey(e.resource);this._pushElement(new Se(e,s,n,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{const s=new Set,n=[],r=[];for(const t of e.resources){const e=be(t),i=this.getUriComparisonKey(t);s.has(i)||(s.add(i),n.push(e),r.push(i))}1===n.length?this._pushElement(new Se(e,n[0],r[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new Le(e,n,r,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){const i=e.resourceLabels[t],s=e.strResources[t];let n;this._editStacks.has(s)?n=this._editStacks.get(s):(n=new Re(i,s),this._editStacks.set(s,n)),n.pushElement(e)}}getLastElement(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);if(e.hasFutureElements())return null;const i=e.getClosestPastElement();return i?i.actual:null}return null}_splitPastWorkspaceElement(e,t){const i=e.actual.split(),s=new Map;for(const n of i){const e=be(n.resource),t=this.getUriComparisonKey(n.resource),i=new Se(n,e,t,0,0,0,0);s.set(i.strResource,i)}for(const n of e.strResources){if(t&&t.has(n))continue;this._editStacks.get(n).splitPastWorkspaceElement(e,s)}}_splitFutureWorkspaceElement(e,t){const i=e.actual.split(),s=new Map;for(const n of i){const e=be(n.resource),t=this.getUriComparisonKey(n.resource),i=new Se(n,e,t,0,0,0,0);s.set(i.strResource,i)}for(const n of e.strResources){if(t&&t.has(n))continue;this._editStacks.get(n).splitFutureWorkspaceElement(e,s)}}removeElements(e){const t="string"===typeof e?e:this.getUriComparisonKey(e);if(this._editStacks.has(t)){this._editStacks.get(t).dispose(),this._editStacks.delete(t)}}setElementsValidFlag(e,t,i){const s=this.getUriComparisonKey(e);if(this._editStacks.has(s)){this._editStacks.get(s).setElementsValidFlag(t,i)}}createSnapshot(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).createSnapshot(e)}return new fe.To(e,[])}restoreSnapshot(e){const t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){const i=this._editStacks.get(t);i.restoreSnapshot(e),i.hasPastElements()||i.hasFutureElements()||(i.dispose(),this._editStacks.delete(t))}}getElements(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).getElements()}return{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestPastElement();r&&(r.sourceId===e&&(!t||r.sourceOrder>t.sourceOrder)&&(t=r,i=s))}return[t,i]}canUndo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasPastElements()}return!1}_onError(e,t){(0,v.dz)(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,s,n){const r=this._acquireLocks(i);let o;try{o=t()}catch(a){return r(),s.dispose(),this._onError(a,e)}return o?o.then((()=>(r(),s.dispose(),n())),(t=>(r(),s.dispose(),this._onError(t,e)))):(r(),s.dispose(),n())}async _invokeWorkspacePrepare(e){if("undefined"===typeof e.actual.prepareUndoRedo)return l.jG.None;const t=e.actual.prepareUndoRedo();return"undefined"===typeof t?l.jG.None:t}_invokeResourcePrepare(e,t){if(1!==e.actual.type||"undefined"===typeof e.actual.prepareUndoRedo)return t(l.jG.None);const i=e.actual.prepareUndoRedo();return i?(0,l.Xm)(i)?t(i):i.then((e=>t(e))):t(l.jG.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||xe);return new Te(t)}_tryToSplitAndUndo(e,t,i,s){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(s),new Ae(this._undo(e,0,!0));for(const n of t.strResources)this.removeElements(n);return this._notificationService.warn(s),new Ae}_checkWorkspaceUndo(e,t,i,s){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,E.kg({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(s&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,E.kg({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const n=[];for(const o of i.editStacks)o.getClosestPastElement()!==t&&n.push(o.resourceLabel);if(n.length>0)return this._tryToSplitAndUndo(e,t,null,E.kg({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));const r=[];for(const o of i.editStacks)o.locked&&r.push(o.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,E.kg({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,E.kg({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const s=this._getAffectedEditStacks(t),n=this._checkWorkspaceUndo(e,t,s,!1);return n?n.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,s,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,s){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let n;!function(e){e[e.All=0]="All",e[e.This=1]="This",e[e.Cancel=2]="Cancel"}(n||(n={}));const{result:r}=await this._dialogService.prompt({type:ge.A.Info,message:E.kg("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),buttons:[{label:E.kg({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",i.editStacks.length),run:()=>n.All},{label:E.kg({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>n.This}],cancelButton:{run:()=>n.Cancel}});if(r===n.Cancel)return;if(r===n.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const o=this._checkWorkspaceUndo(e,t,i,!1);if(o)return o.returnValue;s=!0}let n;try{n=await this._invokeWorkspacePrepare(t)}catch(o){return this._onError(o,t)}const r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return n.dispose(),r.returnValue;for(const a of i.editStacks)a.moveBackward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.undo()),i,n,(()=>this._continueUndoInGroup(t.groupId,s)))}_resourceUndo(e,t,i){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(s=>(e.moveBackward(t),this._safeInvokeWithLocks(t,(()=>t.actual.undo()),new Te([e]),s,(()=>this._continueUndoInGroup(t.groupId,i))))));{const e=E.kg({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestPastElement();r&&(r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=s))}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);return i?this._undo(i,0,t):void 0}undo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"===typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const s=this._editStacks.get(e),n=s.getClosestPastElement();if(!n)return;if(n.groupId){const[e,s]=this._findClosestUndoElementInGroup(n.groupId);if(n!==e&&s)return this._undo(s,t,i)}if((n.sourceId!==t||n.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,n);try{return 1===n.type?this._workspaceUndo(e,n,i):this._resourceUndo(s,n,i)}finally{Ce}}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:E.kg("confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:E.kg({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:E.kg("confirmDifferentSource.no","No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestFutureElement();r&&(r.sourceId===e&&(!t||r.sourceOrder<t.sourceOrder)&&(t=r,i=s))}return[t,i]}canRedo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasFutureElements()}return!1}_tryToSplitAndRedo(e,t,i,s){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(s),new Ae(this._redo(e));for(const n of t.strResources)this.removeElements(n);return this._notificationService.warn(s),new Ae}_checkWorkspaceRedo(e,t,i,s){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,E.kg({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(s&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,E.kg({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const n=[];for(const o of i.editStacks)o.getClosestFutureElement()!==t&&n.push(o.resourceLabel);if(n.length>0)return this._tryToSplitAndRedo(e,t,null,E.kg({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));const r=[];for(const o of i.editStacks)o.locked&&r.push(o.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,E.kg({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,E.kg({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),s=this._checkWorkspaceRedo(e,t,i,!1);return s?s.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let s;try{s=await this._invokeWorkspacePrepare(t)}catch(r){return this._onError(r,t)}const n=this._checkWorkspaceRedo(e,t,i,!0);if(n)return s.dispose(),n.returnValue;for(const o of i.editStacks)o.moveForward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.redo()),i,s,(()=>this._continueRedoInGroup(t.groupId)))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(i=>(e.moveForward(t),this._safeInvokeWithLocks(t,(()=>t.actual.redo()),new Te([e]),i,(()=>this._continueRedoInGroup(t.groupId))))));{const e=E.kg({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[s,n]of this._editStacks){const r=n.getClosestFutureElement();r&&(r.groupId===e&&(!t||r.groupOrder<t.groupOrder)&&(t=r,i=s))}return[t,i]}_continueRedoInGroup(e){if(!e)return;const[,t]=this._findClosestRedoElementInGroup(e);return t?this._redo(t):void 0}redo(e){if(e instanceof fe.Ym){const[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"===typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;const t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){const[e,t]=this._findClosestRedoElementInGroup(i.groupId);if(i!==e&&t)return this._redo(t)}try{return 1===i.type?this._workspaceRedo(e,i):this._resourceRedo(t,i)}finally{Ce}}}};ke=_e([ve(0,pe.X),ve(1,me.Ot)],ke);class Ae{constructor(e){this.returnValue=e}}(0,se.v)(fe.$D,ke,1);i(32500),i(27004),i(76007);var Ne=i(66261),Ie=i(67220),Oe=i(47508),De=i(98031),Me=i(84001),Pe=i(52776),Fe=i(17390),Ue=i(49099),He=i(20492),Be=i(16980),We=i(98067),Ve=i(253),ze=i(11007),Ge=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},je=function(e,t){return function(i,s){t(i,s,e)}};const Ke=U.$;let Ye=class extends Fe.x{get _targetWindow(){return U.zk(this._target.targetElements[0])}get _targetDocumentElement(){return U.zk(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return 2===this._hoverPosition?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(e,t,i,s,n,o){super(),this._keybindingService=t,this._configurationService=i,this._openerService=s,this._instantiationService=n,this._accessibilityService=o,this._messageListeners=new l.Cm,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._onDispose=this._register(new Q.vl),this._onRequestLayout=this._register(new Q.vl),this._linkHandler=e.linkHandler||(t=>(0,He.i)(this._openerService,t,(0,Be.VS)(e.content)?e.content.isTrusted:void 0)),this._target="targetElements"in e.target?e.target:new $e(e.target),this._hoverPointer=e.appearance?.showPointer?Ke("div.workbench-hover-pointer"):void 0,this._hover=this._register(new Pe.N4),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),e.appearance?.compact&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),e.appearance?.skipFadeInAnimation&&this._hover.containerDomNode.classList.add("skip-fade-in"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),e.position?.forcePosition&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=e.position?.hoverPosition??3,this.onmousedown(this._hover.containerDomNode,(e=>e.stopPropagation())),this.onkeydown(this._hover.containerDomNode,(e=>{e.equals(9)&&this.dispose()})),this._register(U.ko(this._targetWindow,"blur",(()=>this.dispose())));const a=Ke("div.hover-row.markdown-hover"),c=Ke("div.hover-contents");if("string"===typeof e.content)c.textContent=e.content,c.style.whiteSpace="pre-wrap";else if(U.sb(e.content))c.appendChild(e.content),c.classList.add("html-hover-contents");else{const t=e.content,i=this._instantiationService.createInstance(He.T,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||r.jU.fontFamily}),{element:s}=i.render(t,{actionHandler:{callback:e=>this._linkHandler(e),disposables:this._messageListeners},asyncRenderCallback:()=>{c.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});c.appendChild(s)}if(a.appendChild(c),this._hover.contentsDomNode.appendChild(a),e.actions&&e.actions.length>0){const t=Ke("div.hover-row.status-bar"),i=Ke("div.actions");e.actions.forEach((e=>{const t=this._keybindingService.lookupKeybinding(e.commandId),s=t?t.getLabel():null;Pe.jQ.render(i,{label:e.label,commandId:e.commandId,run:t=>{e.run(t),this.dispose()},iconClass:e.iconClass},s)})),t.appendChild(i),this._hover.containerDomNode.appendChild(t)}let h;if(this._hoverContainer=Ke("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode),h=!(e.actions&&e.actions.length>0)&&(void 0===e.persistence?.hideOnHover?"string"===typeof e.content||(0,Be.VS)(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes("</a>"):e.persistence.hideOnHover),e.appearance?.showHoverHint){const e=Ke("div.hover-row.status-bar"),t=Ke("div.info");t.textContent=(0,E.kg)("hoverhint","Hold {0} key to mouse over",We.zx?"Option":"Alt"),e.appendChild(t),this._hover.containerDomNode.appendChild(e)}const d=[...this._target.targetElements];h||d.push(this._hoverContainer);const u=this._register(new qe(d));if(this._register(u.onMouseOut((()=>{this._isLocked||this.dispose()}))),h){const e=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new qe(e)),this._register(this._lockMouseTracker.onMouseOut((()=>{this._isLocked||this.dispose()})))}else this._lockMouseTracker=u}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;const e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){const i=U.Hs(this._hoverContainer,Ke("div")),s=U.BC(this._hoverContainer,Ke("div"));i.tabIndex=0,s.tabIndex=0,this._register(U.ko(s,"focus",(t=>{e.focus(),t.preventDefault()}))),this._register(U.ko(i,"focus",(e=>{t.focus(),e.preventDefault()})))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t<e.childNodes.length;t++){const i=e.childNodes.item(e.childNodes.length-t-1);if(i.nodeType===i.ELEMENT_NODE){const e=i;if("number"===typeof e.tabIndex&&e.tabIndex>=0)return e}const s=this.findLastFocusableChild(i);if(s)return s}}render(e){e.appendChild(this._hoverContainer);const t=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&(0,Pe.vr)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding("editor.action.accessibleView")?.getAriaLabel());t&&(0,ze.h5)(t),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";const e=this._target.targetElements.map((e=>(e=>{const t=U.mU(e),i=e.getBoundingClientRect();return{top:i.top*t,bottom:i.bottom*t,right:i.right*t,left:i.left*t}})(e))),{top:t,right:i,bottom:s,left:n}=e[0],r=i-n,o=s-t,a={top:t,right:i,bottom:s,left:n,width:r,height:o,center:{x:n+r/2,y:t+o/2}};if(this.adjustHorizontalHoverPosition(a),this.adjustVerticalHoverPosition(a),this.adjustHoverMaxHeight(a),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:a.left+=3,a.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:a.left-=3,a.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:a.top+=3,a.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:a.top-=3,a.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px"}a.center.x=a.left+r/2,a.center.y=a.top+o/2}this.computeXCordinate(a),this.computeYCordinate(a),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(a)),this._hover.onContentsChanged()}computeXCordinate(e){const t=this._hover.containerDomNode.clientWidth+2;void 0!==this._target.x?this._x=this._target.x:1===this._hoverPosition?this._x=e.right:0===this._hoverPosition?this._x=e.left-t:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+t>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-t-2,this._targetDocumentElement.clientLeft))),this._x<this._targetDocumentElement.clientLeft&&(this._x=e.left+2)}computeYCordinate(e){void 0!==this._target.y?this._y=this._target.y:3===this._hoverPosition?this._y=e.top:2===this._hoverPosition?this._y=e.bottom-2:this._hoverPointer?this._y=e.center.y+this._hover.containerDomNode.clientHeight/2:this._y=e.bottom,this._y>this._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(void 0!==this._target.x)return;const t=this._hoverPointer?3:0;if(this._forcePosition){const i=t+2;1===this._hoverPosition?this._hover.containerDomNode.style.maxWidth=this._targetDocumentElement.clientWidth-e.right-i+"px":0===this._hoverPosition&&(this._hover.containerDomNode.style.maxWidth=e.left-i+"px")}else if(1===this._hoverPosition){if(this._targetDocumentElement.clientWidth-e.right<this._hover.containerDomNode.clientWidth+t){e.left>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=0:this._hoverPosition=2}}else if(0===this._hoverPosition){if(e.left<this._hover.containerDomNode.clientWidth+t){this._targetDocumentElement.clientWidth-e.right>=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=1:this._hoverPosition=2}e.left-this._hover.containerDomNode.clientWidth-t<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1)}}adjustVerticalHoverPosition(e){if(void 0!==this._target.y||this._forcePosition)return;const t=this._hoverPointer?3:0;3===this._hoverPosition?e.top-this._hover.containerDomNode.clientHeight-t<0&&(this._hoverPosition=2):2===this._hoverPosition&&e.bottom+this._hover.containerDomNode.clientHeight+t>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight/2;if(this._forcePosition){const i=2+(this._hoverPointer?3:0);3===this._hoverPosition?t=Math.min(t,e.top-i):2===this._hoverPosition&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.clientHeight<this._hover.contentsDomNode.scrollHeight){const e=`${this._hover.scrollbar.options.verticalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingRight!==e&&(this._hover.contentsDomNode.style.paddingRight=e)}}setHoverPointerPosition(e){if(this._hoverPointer)switch(this._hoverPosition){case 0:case 1:{this._hoverPointer.classList.add(0===this._hoverPosition?"right":"left");const t=this._hover.containerDomNode.clientHeight;t>e.height?this._hoverPointer.style.top=e.center.y-(this._y-t)-3+"px":this._hoverPointer.style.top=Math.round(t/2)-3+"px";break}case 3:case 2:{this._hoverPointer.classList.add(3===this._hoverPosition?"bottom":"top");const t=this._hover.containerDomNode.clientWidth;let i=Math.round(t/2)-3;const s=this._x+i;(s<e.left||s>e.right)&&(i=e.center.x-this._x-3),this._hoverPointer.style.left=`${i}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._hoverContainer.remove(),this._messageListeners.dispose(),this._target.dispose(),super.dispose()),this._isDisposed=!0}};Ye=Ge([je(1,De.b),je(2,Me.pG),je(3,Ue.C),je(4,ae._Y),je(5,Ve.j)],Ye);class qe extends Fe.x{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e){super(),this._elements=e,this._isMouseIn=!0,this._onMouseOut=this._register(new Q.vl),this._elements.forEach((e=>this.onmouseover(e,(()=>this._onTargetMouseOver(e))))),this._elements.forEach((e=>this.onmouseleave(e,(()=>this._onTargetMouseLeave(e)))))}_onTargetMouseOver(e){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(e)}_onTargetMouseLeave(e){this._isMouseIn=!1,this._evaluateMouseState(e)}_evaluateMouseState(e){this._clearEvaluateMouseStateTimeout(e),this._mouseTimeout=U.zk(e).setTimeout((()=>this._fireIfMouseOutside()),0)}_clearEvaluateMouseStateTimeout(e){this._mouseTimeout&&(U.zk(e).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}}class $e{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}var Qe,Xe=i(72962),Ze=i(55089),Je=i(92719);function et(e,t,i){const s=i.mode===Qe.ALIGN?i.offset:i.offset+i.size,n=i.mode===Qe.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-s?s:t<=n?n-t:Math.max(e-t,0):t<=n?n-t:t<=e-s?s:0}!function(e){e[e.AVOID=0]="AVOID",e[e.ALIGN=1]="ALIGN"}(Qe||(Qe={}));class tt extends l.jG{static{this.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"]}static{this.BUBBLE_DOWN_EVENTS=["click"]}constructor(e,t){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=l.jG.None,this.toDisposeOnSetContainer=l.jG.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=U.$(".context-view"),U.jD(this.view),this.setContainer(e,t),this._register((0,l.s)((()=>this.setContainer(null,1))))}setContainer(e,t){this.useFixedPosition=1!==t;const i=this.useShadowDOM;if(this.useShadowDOM=3===t,(e!==this.container||i!==this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.view.remove(),this.shadowRoot&&(this.shadowRoot=null,this.shadowRootHostElement?.remove(),this.shadowRootHostElement=null),this.container=null),e)){if(this.container=e,this.useShadowDOM){this.shadowRootHostElement=U.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=it,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(U.$("slot"))}else this.container.appendChild(this.view);const t=new l.Cm;tt.BUBBLE_UP_EVENTS.forEach((e=>{t.add(U.b2(this.container,e,(e=>{this.onDOMEvent(e,!1)})))})),tt.BUBBLE_DOWN_EVENTS.forEach((e=>{t.add(U.b2(this.container,e,(e=>{this.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=t}}show(e){this.isVisible()&&this.hide(),U.w_(this.view),this.view.className="context-view monaco-component",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+(e.layer??0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",U.WU(this.view),this.toDisposeOnClean=e.render(this.view)||l.jG.None,this.delegate=e,this.doLayout(),this.delegate.focus?.()}getViewElement(){return this.view}layout(){this.isVisible()&&(!1!==this.delegate.canRelayout||We.un&&Ze.e.pointerEvents?(this.delegate?.layout?.(),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(U.sb(e)){const i=U.BK(e),s=U.mU(e);t={top:i.top*s,left:i.left*s,width:i.width*s,height:i.height*s}}else t=function(e){const t=e;return!!t&&"number"===typeof t.x&&"number"===typeof t.y}(e)?{top:e.y,left:e.x,width:e.width||1,height:e.height||2}:{top:e.posy,left:e.posx,width:2,height:2};const i=U.Tr(this.view),s=U.OK(this.view),n=this.delegate.anchorPosition||0,r=this.delegate.anchorAlignment||0,o=this.delegate.anchorAxisAlignment||0;let a,l;const c=U.fz();if(0===o){const e={offset:t.top-c.pageYOffset,size:t.height,position:0===n?0:1},o={offset:t.left,size:t.width,position:0===r?0:1,mode:Qe.ALIGN};a=et(c.innerHeight,s,e)+c.pageYOffset,Je.Q.intersects({start:a,end:a+s},{start:e.offset,end:e.offset+e.size})&&(o.mode=Qe.AVOID),l=et(c.innerWidth,i,o)}else{const e={offset:t.left,size:t.width,position:0===r?0:1},o={offset:t.top,size:t.height,position:0===n?0:1,mode:Qe.ALIGN};l=et(c.innerWidth,i,e),Je.Q.intersects({start:l,end:l+i},{start:e.offset,end:e.offset+e.size})&&(o.mode=Qe.AVOID),a=et(c.innerHeight,s,o)+c.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===n?"bottom":"top"),this.view.classList.add(0===r?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const h=U.BK(this.container);this.view.style.top=a-(this.useFixedPosition?U.BK(this.view).top:h.top)+"px",this.view.style.left=l-(this.useFixedPosition?U.BK(this.view).left:h.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,t?.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),U.jD(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,U.zk(e).document.activeElement):t&&!U.QX(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}const it='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var st=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},nt=function(e,t){return function(i,s){t(i,s,e)}};let rt=class extends l.jG{constructor(e){super(),this.layoutService=e,this.contextView=this._register(new tt(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer((()=>this.layout())))}showContextView(e,t,i){let s;s=t?t===this.layoutService.getContainer((0,U.zk)(t))?1:i?3:2:1,this.contextView.setContainer(t??this.layoutService.activeContainer,s),this.contextView.show(e);const n={close:()=>{this.openContextView===n&&this.hideContextView()}};return this.openContextView=n,n}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e),this.openContextView=void 0}};rt=st([nt(0,le)],rt);class ot extends rt{getContextViewElement(){return this.contextView.getViewElement()}}var at=i(18447),lt=i(631);class ct{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(void 0===e||(0,lt.Kg)(e)||(0,U.sb)(e))s=e;else if((0,lt.Tn)(e.markdown)){this._hoverWidget||this.show((0,E.kg)("iconLabel.loading","Loading..."),t,i),this._cancellationTokenSource=new at.Qi;const n=this._cancellationTokenSource.token;if(s=await e.markdown(n),void 0===s&&(s=e.markdownNotSupportedFallback),this.isDisposed||n.isCancellationRequested)return}else s=e.markdown??e.markdownNotSupportedFallback;this.show(s,t,i)}show(e,t,i){const s=this._hoverWidget;if(this.hasContent(e)){const n={content:e,target:this.target,actions:i?.actions,linkHandler:i?.linkHandler,trapFocus:i?.trapFocus,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!s,showHoverHint:i?.appearance?.showHoverHint},position:{hoverPosition:2}};this._hoverWidget=this.hoverDelegate.showHover(n,t)}s?.dispose()}hasContent(e){return!!e&&(!(0,Be.VS)(e)||!!e.value)}get isDisposed(){return this._hoverWidget?.isDisposed}dispose(){this._hoverWidget?.dispose(),this._cancellationTokenSource?.dispose(!0),this._cancellationTokenSource=void 0}}var ht=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},dt=function(e,t){return function(i,s){t(i,s,e)}};let ut=class extends l.jG{constructor(e,t,i,s,n){super(),this._instantiationService=e,this._keybindingService=i,this._layoutService=s,this._accessibilityService=n,this._managedHovers=new Map,t.onDidShowContextMenu((()=>this.hideHover())),this._contextViewHandler=this._register(new rt(this._layoutService))}showHover(e,t,i){if(gt(this._currentHoverOptions)===gt(e))return;if(this._currentHover&&this._currentHoverOptions?.persistence?.sticky)return;this._currentHoverOptions=e,this._lastHoverOptions=e;const s=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),n=(0,U.bq)();i||(s&&n?n.classList.contains("monaco-hover")||(this._lastFocusedElementBeforeOpen=n):this._lastFocusedElementBeforeOpen=void 0);const r=new l.Cm,o=this._instantiationService.createInstance(Ye,e);if(e.persistence?.sticky&&(o.isLocked=!0),o.onDispose((()=>{this._currentHover?.domNode&&(0,U.nR)(this._currentHover.domNode)&&this._lastFocusedElementBeforeOpen?.focus(),this._currentHoverOptions===e&&(this._currentHoverOptions=void 0),r.dispose()}),void 0,r),!e.container){const t=(0,U.sb)(e.target)?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer((0,U.zk)(t))}if(this._contextViewHandler.showContextView(new pt(o,t),e.container),o.onRequestLayout((()=>this._contextViewHandler.layout()),void 0,r),e.persistence?.sticky)r.add((0,U.ko)((0,U.zk)(e.container).document,U.Bx.MOUSE_DOWN,(e=>{(0,U.QX)(e.target,o.domNode)||this.doHideHover()})));else{if("targetElements"in e.target)for(const i of e.target.targetElements)r.add((0,U.ko)(i,U.Bx.CLICK,(()=>this.hideHover())));else r.add((0,U.ko)(e.target,U.Bx.CLICK,(()=>this.hideHover())));const t=(0,U.bq)();if(t){const i=(0,U.zk)(t).document;r.add((0,U.ko)(t,U.Bx.KEY_DOWN,(t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown)))),r.add((0,U.ko)(i,U.Bx.KEY_DOWN,(t=>this._keyDown(t,o,!!e.persistence?.hideOnKeyDown)))),r.add((0,U.ko)(t,U.Bx.KEY_UP,(e=>this._keyUp(e,o)))),r.add((0,U.ko)(i,U.Bx.KEY_UP,(e=>this._keyUp(e,o))))}}if("IntersectionObserver"in a.G){const t=new IntersectionObserver((e=>this._intersectionChange(e,o)),{threshold:0}),i="targetElements"in e.target?e.target.targetElements[0]:e.target;t.observe(i),r.add((0,l.s)((()=>t.disconnect())))}return this._currentHover=o,o}hideHover(){!this._currentHover?.isLocked&&this._currentHoverOptions&&this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(e,t){e[e.length-1].isIntersecting||t.dispose()}showAndFocusLastHover(){this._lastHoverOptions&&this.showHover(this._lastHoverOptions,!0,!0)}_keyDown(e,t,i){if("Alt"===e.key)return void(t.isLocked=!0);const s=new Xe.Z(e);this._keybindingService.resolveKeyboardEvent(s).getSingleModifierDispatchChords().some((e=>!!e))||0!==this._keybindingService.softDispatch(s,s.target).kind||!i||this._currentHoverOptions?.trapFocus&&"Tab"===e.key||(this.hideHover(),this._lastFocusedElementBeforeOpen?.focus())}_keyUp(e,t){"Alt"===e.key&&(t.isLocked=!1,t.isMouseIn||(this.hideHover(),this._lastFocusedElementBeforeOpen?.focus()))}setupManagedHover(e,t,i,s){let n,r;t.setAttribute("custom-hover","true"),""!==t.title&&(console.warn("HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute."),console.trace("Stack trace:",t.title),t.title="");const o=(t,i)=>{const s=void 0!==r;t&&(r?.dispose(),r=void 0),i&&(n?.dispose(),n=void 0),s&&(e.onDidHideHover?.(),r=void 0)},a=(n,o,a,l)=>new m.pc((async()=>{r&&!r.isDisposed||(r=new ct(e,a||t,n>0),await r.update("function"===typeof i?i():i,o,{...s,trapFocus:l}))}),n);let c=!1;const h=(0,U.ko)(t,U.Bx.MOUSE_DOWN,(()=>{c=!0,o(!0,!0)}),!0),d=(0,U.ko)(t,U.Bx.MOUSE_UP,(()=>{c=!1}),!0),u=(0,U.ko)(t,U.Bx.MOUSE_LEAVE,(e=>{c=!1,o(!1,e.fromElement===t)}),!0),g=(0,U.ko)(t,U.Bx.MOUSE_OVER,(i=>{if(n)return;const s=new l.Cm,r={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>{r.x=e.x+10,(0,U.sb)(e.target)&&mt(e.target,t)!==t&&o(!0,!0)};s.add((0,U.ko)(t,U.Bx.MOUSE_MOVE,e,!0))}n=s,(0,U.sb)(i.target)&&mt(i.target,t)!==t||s.add(a(e.delay,!1,r))}),!0),p=()=>{if(c||n)return;const i={targetElements:[t],dispose:()=>{}},s=new l.Cm;s.add((0,U.ko)(t,U.Bx.BLUR,(()=>o(!0,!0)),!0)),s.add(a(e.delay,!1,i)),n=s};let f;const _=t.tagName.toLowerCase();"input"!==_&&"textarea"!==_&&(f=(0,U.ko)(t,U.Bx.FOCUS,p,!0));const v={show:e=>{o(!1,!0),a(0,e,void 0,e)},hide:()=>{o(!0,!0)},update:async(e,t)=>{i=e,await(r?.update(i,void 0,t))},dispose:()=>{this._managedHovers.delete(t),g.dispose(),u.dispose(),h.dispose(),d.dispose(),f?.dispose(),o(!0,!0)}};return this._managedHovers.set(t,v),v}showManagedHover(e){const t=this._managedHovers.get(e);t&&t.show(!0)}dispose(){this._managedHovers.forEach((e=>e.dispose())),super.dispose()}};function gt(e){if(void 0!==e)return e?.id??e}ut=ht([dt(0,ae._Y),dt(1,Oe.Z),dt(2,De.b),dt(3,le),dt(4,Ve.j)],ut);class pt{get anchorPosition(){return this._hover.anchor}constructor(e,t=!1){this._hover=e,this._focus=t,this.layer=1}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}function mt(e,t){for(t=t??(0,U.zk)(e).document.body;!e.hasAttribute("custom-hover")&&e!==t;)e=e.parentElement;return e}(0,se.v)(Ie.TN,ut,1),(0,Z.zy)(((e,t)=>{const i=e.getColor(Ne.oZ8);i&&(t.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`))}));var ft=i(42539),_t=i(80537),vt=i(94371),Ct=i(7085),bt=i(83069),Et=i(18938),St=i(50091),yt=i(74320),wt=i(1646),Lt=i(46359);function Rt(e){return Object.isFrozen(e)?e:p.ol(e)}class Tt{static createEmptyModel(e){return new Tt({},[],[],void 0,e)}constructor(e,t,i,s,n){this._contents=e,this._keys=t,this._overrides=i,this.raw=s,this.logService=n,this.overrideConfigurations=new Map}get rawConfiguration(){if(!this._rawConfiguration)if(this.raw?.length){const e=this.raw.map((e=>{if(e instanceof Tt)return e;const t=new xt("",this.logService);return t.parseRaw(e),t.configurationModel}));this._rawConfiguration=e.reduce(((e,t)=>t===e?t:e.merge(t)),e[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?(0,Me.gD)(this.contents,e):this.contents}inspect(e,t){const i=this;return{get value(){return Rt(i.rawConfiguration.getValue(e))},get override(){return t?Rt(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return Rt(t?i.rawConfiguration.override(t).getValue(e):i.rawConfiguration.getValue(e))},get overrides(){const t=[];for(const{contents:s,identifiers:n,keys:r}of i.rawConfiguration.overrides){const o=new Tt(s,r,[],void 0,i.logService).getValue(e);void 0!==o&&t.push({identifiers:n,value:o})}return t.length?Rt(t):void 0}}}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?(0,Me.gD)(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){const t=p.Go(this.contents),i=p.Go(this.overrides),s=[...this.keys],n=this.raw?.length?[...this.raw]:[this];for(const r of e)if(n.push(...r.raw?.length?r.raw:[r]),!r.isEmpty()){this.mergeContents(t,r.contents);for(const e of r.overrides){const[t]=i.filter((t=>b.aI(t.identifiers,e.identifiers)));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=b.dM(t.keys)):i.push(p.Go(e))}for(const e of r.keys)-1===s.indexOf(e)&&s.push(e)}return new Tt(t,s,i,n.every((e=>e instanceof Tt))?void 0:n,this.logService)}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!==typeof t||!Object.keys(t).length)return this;const i={};for(const s of b.dM([...Object.keys(this.contents),...Object.keys(t)])){let e=this.contents[s];const n=t[s];n&&("object"===typeof e&&"object"===typeof n?(e=p.Go(e),this.mergeContents(e,n)):e=n),i[s]=e}return new Tt(i,this.keys,this.overrides,void 0,this.logService)}mergeContents(e,t){for(const i of Object.keys(t))i in e&<.Gv(e[i])&<.Gv(t[i])?this.mergeContents(e[i],t[i]):e[i]=p.Go(t[i])}getContentsForOverrideIdentifer(e){let t=null,i=null;const s=e=>{e&&(i?this.mergeContents(i,e):i=p.Go(e))};for(const n of this.overrides)1===n.identifiers.length&&n.identifiers[0]===e?t=n.contents:n.identifiers.includes(e)&&s(n.contents);return s(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){const t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),(0,Me.iB)(this.contents,e),wt.rC.test(e)&&this.overrides.splice(this.overrides.findIndex((t=>b.aI(t.identifiers,(0,wt.Gv)(e)))),1))}updateValue(e,t,i){if((0,Me.kW)(this.contents,e,t,(e=>this.logService.error(e))),(i=i||-1===this.keys.indexOf(e))&&this.keys.push(e),wt.rC.test(e)){const t=(0,wt.Gv)(e),i={identifiers:t,keys:Object.keys(this.contents[e]),contents:(0,Me.ad)(this.contents[e],(e=>this.logService.error(e)))},s=this.overrides.findIndex((e=>b.aI(e.identifiers,t)));-1!==s?this.overrides[s]=i:this.overrides.push(i)}}}class xt{constructor(e,t){this._name=e,this.logService=t,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||Tt.createEmptyModel(this.logService)}parseRaw(e,t){this._raw=e;const{contents:i,keys:s,overrides:n,restricted:r,hasExcludedProperties:o}=this.doParseRaw(e,t);this._configurationModel=new Tt(i,s,n,o?[e]:void 0,this.logService),this._restrictedConfigurations=r||[]}doParseRaw(e,t){const i=Lt.O.as(wt.Fd.Configuration).getConfigurationProperties(),s=this.filter(e,i,!0,t);e=s.raw;return{contents:(0,Me.ad)(e,(e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`))),keys:Object.keys(e),overrides:this.toOverrides(e,(e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`))),restricted:s.restricted,hasExcludedProperties:s.hasExcludedProperties}}filter(e,t,i,s){let n=!1;if(!s?.scopes&&!s?.skipRestricted&&!s?.exclude?.length)return{raw:e,restricted:[],hasExcludedProperties:n};const r={},o=[];for(const a in e)if(wt.rC.test(a)&&i){const i=this.filter(e[a],t,!1,s);r[a]=i.raw,n=n||i.hasExcludedProperties,o.push(...i.restricted)}else{const i=t[a],l=i?"undefined"!==typeof i.scope?i.scope:3:void 0;i?.restricted&&o.push(a),s.exclude?.includes(a)||!s.include?.includes(a)&&(void 0!==l&&void 0!==s.scopes&&!s.scopes.includes(l)||s.skipRestricted&&i?.restricted)?n=!0:r[a]=e[a]}return{raw:r,restricted:o,hasExcludedProperties:n}}toOverrides(e,t){const i=[];for(const s of Object.keys(e))if(wt.rC.test(s)){const n={};for(const t in e[s])n[t]=e[s][t];i.push({identifiers:(0,wt.Gv)(s),keys:Object.keys(n),contents:(0,Me.ad)(n,t)})}return i}}class kt{constructor(e,t,i,s,n,r,o,a,l,c,h,d,u){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=s,this.defaultConfiguration=n,this.policyConfiguration=r,this.applicationConfiguration=o,this.userConfiguration=a,this.localUserConfiguration=l,this.remoteUserConfiguration=c,this.workspaceConfiguration=h,this.folderConfigurationModel=d,this.memoryConfigurationModel=u}toInspectValue(e){return void 0!==e?.value||void 0!==e?.override||void 0!==e?.overrides?e:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}}class At{constructor(e,t,i,s,n,r,o,a,l,c){this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=s,this._remoteUserConfiguration=n,this._workspaceConfiguration=r,this._folderConfigurations=o,this._memoryConfiguration=a,this._memoryConfigurationByResource=l,this.logService=c,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new yt.fT,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidatedConfigurationModel(e,t,i).getValue(e)}updateValue(e,t,i={}){let s;i.resource?(s=this._memoryConfigurationByResource.get(i.resource),s||(s=Tt.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(i.resource,s))):s=this._memoryConfiguration,void 0===t?s.removeValue(e):s.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const s=this.getConsolidatedConfigurationModel(e,t,i),n=this.getFolderConfigurationModelForResource(t.resource,i),r=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,o=new Set;for(const a of s.overrides)for(const t of a.identifiers)void 0!==s.getOverrideValue(e,t)&&o.add(t);return new kt(e,t,s.getValue(e),o.size?[...o]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,n||void 0,r)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let s=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(s=s.override(t.overrideIdentifier)),this._policyConfiguration.isEmpty()||void 0===this._policyConfiguration.getValue(e)||(s=s.merge(this._policyConfiguration)),s}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const s=t.getFolder(e);s&&(i=this.getFolderConsolidatedConfiguration(s.uri)||i);const n=this._memoryConfigurationByResource.get(e);n&&(i=i.merge(n))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),s=this._folderConfigurations.get(e);s?(t=i.merge(s),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce(((e,t)=>{const{contents:i,overrides:s,keys:n}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:s,keys:n}]),e}),[])}}static parse(e,t){const i=this.parseConfigurationModel(e.defaults,t),s=this.parseConfigurationModel(e.policy,t),n=this.parseConfigurationModel(e.application,t),r=this.parseConfigurationModel(e.user,t),o=this.parseConfigurationModel(e.workspace,t),a=e.folders.reduce(((e,i)=>(e.set(h.r.revive(i[0]),this.parseConfigurationModel(i[1],t)),e)),new yt.fT);return new At(i,s,n,r,Tt.createEmptyModel(t),o,a,Tt.createEmptyModel(t),new yt.fT,t)}static parseConfigurationModel(e,t){return new Tt(e.contents,e.keys,e.overrides,void 0,t)}}class Nt{constructor(e,t,i,s,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=s,this.logService=n,this._marker="\n",this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=".".charCodeAt(0),this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const r of e.keys)this.affectedKeys.add(r);for(const[,r]of e.overrides)for(const e of r)this.affectedKeys.add(e);this._affectsConfigStr=this._marker;for(const r of this.affectedKeys)this._affectsConfigStr+=r+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=At.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(e,t){const i=this._marker+e,s=this._affectsConfigStr.indexOf(i);if(s<0)return!1;const n=s+i.length;if(n>=this._affectsConfigStr.length)return!1;const r=this._affectsConfigStr.charCodeAt(n);if(r!==this._markerCode1&&r!==this._markerCode2)return!1;if(t){const i=this.previousConfiguration?this.previousConfiguration.getValue(e,t,this.previous?.workspace):void 0,s=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!p.aI(i,s)}return!0}}var It=i(2299);const Ot={kind:0},Dt={kind:1};class Mt{constructor(e,t,i){this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const s of e){const e=s.command;e&&"-"!==e.charAt(0)&&this._defaultBoundCommands.set(e,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=Mt.handleRemovals([].concat(e).concat(t));for(let s=0,n=this._keybindings.length;s<n;s++){const e=this._keybindings[s];if(0===e.chords.length)continue;const t=e.when?.substituteConstants();t&&0===t.type||this._addKeyPress(e.chords[0],e)}}static _isTargetedForRemoval(e,t,i){if(t)for(let s=0;s<t.length;s++)if(t[s]!==e.chords[s])return!1;if(i&&1!==i.type){if(!e.when)return!1;if(!(0,ie.jQ)(i,e.when))return!1}return!0}static handleRemovals(e){const t=new Map;for(let s=0,n=e.length;s<n;s++){const i=e[s];if(i.command&&"-"===i.command.charAt(0)){const e=i.command.substring(1);t.has(e)?t.get(e).push(i):t.set(e,[i])}}if(0===t.size)return e;const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];if(!n.command||0===n.command.length){i.push(n);continue}if("-"===n.command.charAt(0))continue;const r=t.get(n.command);if(!r||!n.isDefault){i.push(n);continue}let o=!1;for(const e of r){const t=e.when;if(this._isTargetedForRemoval(n,e.chords,t)){o=!0;break}}o||i.push(n)}return i}_addKeyPress(e,t){const i=this._map.get(e);if("undefined"===typeof i)return this._map.set(e,[t]),void this._addToLookupMap(t);for(let s=i.length-1;s>=0;s--){const e=i[s];if(e.command===t.command)continue;let n=!0;for(let i=1;i<e.chords.length&&i<t.chords.length;i++)if(e.chords[i]!==t.chords[i]){n=!1;break}n&&(Mt.whenIsEntirelyIncluded(e.when,t.when)&&this._removeFromLookupMap(e))}i.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);"undefined"===typeof t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;const t=this._lookupMap.get(e.command);if("undefined"!==typeof t)for(let i=0,s=t.length;i<s;i++)if(t[i]===e)return void t.splice(i,1)}static whenIsEntirelyIncluded(e,t){return!t||1===t.type||!(!e||1===e.type)&&(0,ie.M0)(e,t)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(e,t){const i=this._lookupMap.get(e);if("undefined"===typeof i||0===i.length)return null;if(1===i.length)return i[0];for(let s=i.length-1;s>=0;s--){const e=i[s];if(t.contextMatchesRules(e.when))return e}return i[i.length-1]}resolve(e,t,i){const s=[...t,i];this._log(`| Resolving ${s}`);const n=this._map.get(s[0]);if(void 0===n)return this._log("\\ No keybinding entries."),Ot;let r=null;if(s.length<2)r=n;else{r=[];for(let e=0,t=n.length;e<t;e++){const t=n[e];if(s.length>t.chords.length)continue;let i=!0;for(let e=1;e<s.length;e++)if(t.chords[e]!==s[e]){i=!1;break}i&&r.push(t)}}const o=this._findCommand(e,r);return o?s.length<o.chords.length?(this._log(`\\ From ${r.length} keybinding entries, awaiting ${o.chords.length-s.length} more chord(s), when: ${Pt(o.when)}, source: ${Ft(o)}.`),Dt):(this._log(`\\ From ${r.length} keybinding entries, matched ${o.command}, when: ${Pt(o.when)}, source: ${Ft(o)}.`),a=o.command,l=o.commandArgs,c=o.bubble,{kind:2,commandId:a,commandArgs:l,isBubble:c}):(this._log(`\\ From ${r.length} keybinding entries, no when clauses matched the context.`),Ot);var a,l,c}_findCommand(e,t){for(let i=t.length-1;i>=0;i--){const s=t[i];if(Mt._contextMatchesRules(e,s.when))return s}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}}function Pt(e){return e?`${e.serialize()}`:"no when condition"}function Ft(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}const Ut=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class Ht extends l.jG{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:Q.Jh.None}get inChordMode(){return this._currentChords.length>0}constructor(e,t,i,s,n){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=s,this._logService=n,this._onDidUpdateKeybindings=this._register(new Q.vl),this._currentChords=[],this._currentChordChecker=new m.vb,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=Bt.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new m.pc,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),Ot;const[s]=i.getDispatchChords();if(null===s)return this._log("\\ Keyboard event cannot be dispatched"),Ot;const n=this._contextKeyService.getContext(t),r=this._currentChords.map((({keypress:e})=>e));return this._getResolver().resolve(n,r,s)}_scheduleLeaveChordMode(){const e=Date.now();this._currentChordChecker.cancelAndSet((()=>{this._documentHasFocus()?Date.now()-e>5e3&&this._leaveChordMode():this._leaveChordMode()}),500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw(0,v.iH)("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(E.kg("first.chord","({0}) was pressed. Waiting for second key of chord...",t));break;default:{const e=this._currentChords.map((({label:e})=>e)).join(", ");this._currentChordStatusMessage=this._notificationService.status(E.kg("next.chord","({0}) was pressed. Waiting for next key of chord...",e))}}this._scheduleLeaveChordMode(),It.M.enabled&&It.M.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],It.M.enable()}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[s]=i.getSingleModifierDispatchChords();if(s)return this._ignoreSingleModifiers.has(s)?(this._log(`+ Ignoring single modifier ${s} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=Bt.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=Bt.EMPTY,null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${s}.`),this._currentSingleModifier=s,this._currentSingleModifierClearTimeout.cancelAndSet((()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null}),300),!1):s===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${s} ${s}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${s}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[n]=i.getChords();return this._ignoreSingleModifiers=new Bt(n),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){let s=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let n=null,r=null;if(i){const[t]=e.getSingleModifierDispatchChords();n=t,r=t?[t]:[]}else[n]=e.getDispatchChords(),r=this._currentChords.map((({keypress:e})=>e));if(null===n)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),s;const o=this._contextKeyService.getContext(t),a=e.getLabel(),l=this._getResolver().resolve(o,r,n);switch(l.kind){case 0:if(this._logService.trace("KeybindingService#dispatch",a,"[ No matching keybinding ]"),this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${a}".`),this._notificationService.status(E.kg("missing.chord","The key combination ({0}, {1}) is not a command.",e,a),{hideAfter:1e4}),this._leaveChordMode(),s=!0}return s;case 1:return this._logService.trace("KeybindingService#dispatch",a,"[ Several keybindings match - more chords needed ]"),s=!0,this._expectAnotherChord(n,a),this._log(1===this._currentChords.length?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),s;case 2:if(this._logService.trace("KeybindingService#dispatch",a,`[ Will dispatch command ${l.commandId} ]`),null===l.commandId||""===l.commandId){if(this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${a}".`),this._notificationService.status(E.kg("missing.chord","The key combination ({0}, {1}) is not a command.",e,a),{hideAfter:1e4}),this._leaveChordMode(),s=!0}}else{this.inChordMode&&this._leaveChordMode(),l.isBubble||(s=!0),this._log(`+ Invoking command ${l.commandId}.`),this._currentlyDispatchingCommandId=l.commandId;try{"undefined"===typeof l.commandArgs?this._commandService.executeCommand(l.commandId).then(void 0,(e=>this._notificationService.warn(e))):this._commandService.executeCommand(l.commandId,l.commandArgs).then(void 0,(e=>this._notificationService.warn(e)))}finally{this._currentlyDispatchingCommandId=null}Ut.test(l.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:l.commandId,from:"keybinding",detail:e.getUserSettingsLabel()??void 0})}return s}}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class Bt{static{this.EMPTY=new Bt(null)}constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}var Wt=i(59261);class Vt{constructor(e,t,i,s,n,r,o){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?zt(e.getDispatchChords()):[],e&&0===this.chords.length&&(this.chords=zt(e.getSingleModifierDispatchChords())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=s,this.isDefault=n,this.extensionId=r,this.isBuiltinExtension=o}}function zt(e){const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];if(!s)return[];t.push(s)}return t}var Gt=i(24939),jt=i(83619);class Kt extends ft.z5{constructor(e,t){if(super(),0===t.length)throw(0,v.Qg)("chords");this._os=e,this._chords=t}getLabel(){return jt.Of.toLabel(this._os,this._chords,(e=>this._getLabel(e)))}getAriaLabel(){return jt.r0.toLabel(this._os,this._chords,(e=>this._getAriaLabel(e)))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:jt.rr.toLabel(this._os,this._chords,(e=>this._getElectronAccelerator(e)))}getUserSettingsLabel(){return jt.G$.toLabel(this._os,this._chords,(e=>this._getUserSettingsLabel(e)))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map((e=>this._getChord(e)))}_getChord(e){return new ft.FW(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map((e=>this._getChordDispatch(e)))}getSingleModifierDispatchChords(){return this._chords.map((e=>this._getSingleModifierChordDispatch(e)))}}class Yt extends Kt{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return Gt.YM.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":Gt.YM.toString(e.keyCode)}_getElectronAccelerator(e){return Gt.YM.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";const t=Gt.YM.toUserSettingsUS(e.keyCode);return t?t.toLowerCase():t}_getChordDispatch(e){return Yt.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=Gt.YM.toString(e.keyCode),t}_getSingleModifierChordDispatch(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}static _scanCodeToKeyCode(e){const t=Gt.Fo[e];if(-1!==t)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(e){if(!e)return null;if(e instanceof ft.dG)return e;const t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new ft.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(e,t){const i=zt(e.chords.map((e=>this._toKeyCodeChord(e))));return i.length>0?[new Yt(i,t)]:[]}}var qt=i(67841),$t=i(73823),Qt=i(90651),Xt=i(37227),Zt=i(51861),Jt=i(89403),ei=i(51465),ti=i(17890),ii=i(36921),si=i(57629),ni=i(27195),ri=i(47358),oi=i(60413),ai=i(25154),li=i(11799),ci=i(5646),hi=i(31295),di=i(10350),ui=i(18956),gi=i(25689),pi=i(37882);const mi=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,fi=/(&)?(&)([^\s&])/g;var _i,vi;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(_i||(_i={})),function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}(vi||(vi={}));class Ci extends li.E{constructor(e,t,i,s){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const n=document.createElement("div");n.classList.add("monaco-menu"),n.setAttribute("role","presentation"),super(n,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,r),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...We.zx||We.j9?[10]:[]],keyDown:!0}}),this.menuStyles=s,this.menuElement=n,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,s),this._register(ai.q.addTarget(n)),this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{new Xe.Z(e).equals(2)&&e.preventDefault()}))),i.enableMnemonics&&this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){U.fs.stop(e,!0);const i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof Ei&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){const e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}}))),We.j9&&this._register((0,U.ko)(n,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),U.fs.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),U.fs.stop(e,!0))}))),this._register((0,U.ko)(this.domNode,U.Bx.MOUSE_OUT,(e=>{const t=e.relatedTarget;(0,U.QX)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())}))),this._register((0,U.ko)(this.actionsList,U.Bx.MOUSE_OVER,(e=>{let t=e.target;if(t&&(0,U.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}))),this._register(ai.q.addTarget(this.actionsList)),this._register((0,U.ko)(this.actionsList,ai.B.Tap,(e=>{let t=e.initialTarget;if(t&&(0,U.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})));const r={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new hi.MU(n,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const o=this.scrollableElement.getDomNode();o.style.position="",this.styleScrollElement(o,s),this._register((0,U.ko)(n,ai.B.Change,(e=>{U.fs.stop(e,!0);const t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})}))),this._register((0,U.ko)(o,U.Bx.MOUSE_UP,(e=>{e.preventDefault()})));const a=(0,U.zk)(e);n.style.maxHeight=`${Math.max(10,a.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(((e,s)=>{if(i.submenuIds?.has(e.id))return console.warn(`Found submenu cycle: ${e.id}`),!1;if(e instanceof ii.wv){if(s===t.length-1||0===s)return!1;if(t[s-1]instanceof ii.wv)return!1}return!0})),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter((e=>!(e instanceof Si))).forEach(((e,t,i)=>{e.updatePositionInSet(t+1,i.length)}))}initializeOrUpdateStyleSheet(e,t){this.styleSheet||((0,U.Cl)(e)?this.styleSheet=(0,U.li)(e):(Ci.globalStyleSheet||(Ci.globalStyleSheet=(0,U.li)()),this.styleSheet=Ci.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=`\n.monaco-menu {\n\tfont-size: 13px;\n\tborder-radius: 5px;\n\tmin-width: 160px;\n}\n\n${yi(di.W.menuSelection)}\n${yi(di.W.menuSubmenu)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid var(--vscode-menu-separatorBackground);\n\tpadding-top: 1px;\n\tpadding: 30px;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n\tmargin: 0 4px;\n\tborder-radius: 4px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {\n\topacity: unset;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\twidth: 100%;\n\theight: 0px !important;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.hc-black .context-view.monaco-menu-container,\n.hc-light .context-view.monaco-menu-container,\n:host-context(.hc-black) .context-view.monaco-menu-container,\n:host-context(.hc-light) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: 4px 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n\tmax-height: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tmargin: 5px 0 !important;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}`;if(t){i+="\n\t\t\t/* Arrows */\n\t\t\t.monaco-scrollable-element > .scrollbar > .scra {\n\t\t\t\tcursor: pointer;\n\t\t\t\tfont-size: 11px !important;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .visible {\n\t\t\t\topacity: 1;\n\n\t\t\t\t/* Background rule added for IE9 - to allow clicks on dom node */\n\t\t\t\tbackground:rgba(0,0,0,0);\n\n\t\t\t\ttransition: opacity 100ms linear;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible {\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible.fade {\n\t\t\t\ttransition: opacity 800ms linear;\n\t\t\t}\n\n\t\t\t/* Scrollable Content Inset Shadow */\n\t\t\t.monaco-scrollable-element > .shadow {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 3px;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top-left-corner {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t";const t=e.scrollbarShadow;t&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\t\tbox-shadow: ${t} 0 6px 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 0 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 6px 6px -6px inset;\n\t\t\t\t}\n\t\t\t`);const s=e.scrollbarSliderBackground;s&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\t\tbackground: ${s};\n\t\t\t\t}\n\t\t\t`);const n=e.scrollbarSliderHoverBackground;n&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\t\tbackground: ${n};\n\t\t\t\t}\n\t\t\t`);const r=e.scrollbarSliderActiveBackground;r&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\t\tbackground: ${r};\n\t\t\t\t}\n\t\t\t`)}return i}(t,(0,U.Cl)(e))}styleScrollElement(e,t){const i=t.foregroundColor??"",s=t.backgroundColor??"",n=t.borderColor?`1px solid ${t.borderColor}`:"",r=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=n,e.style.borderRadius="5px",e.style.color=i,e.style.backgroundColor=s,e.style.boxShadow=r}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t<this.actionsList.children.length;t++){if(e===this.actionsList.children[t]){this.focusedItem=t;break}}}updateFocus(e){super.updateFocus(e,!0,!0),"undefined"!==typeof this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(e,t,i){if(e instanceof ii.wv)return new Si(t.context,e,{icon:!0},this.menuStyles);if(e instanceof ii.YH){const s=new Ei(e,e.actions,i,{...t,submenuIds:new Set([...t.submenuIds||[],e.id])},this.menuStyles);if(t.enableMnemonics){const e=s.getMnemonic();if(e&&s.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(s),this.mnemonics.set(e,t)}}return s}{const i={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext};if(t.getKeyBinding){const s=t.getKeyBinding(e);if(s){const e=s.getLabel();e&&(i.keybinding=e)}}const s=new bi(t.context,e,i,this.menuStyles);if(t.enableMnemonics){const e=s.getMnemonic();if(e&&s.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(s),this.mnemonics.set(e,t)}}return s}}}class bi extends ci.EH{constructor(e,t,i,s){if(i.isMenu=!0,super(t,t,i),this.menuStyle=s,this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass="",this.options.label&&i.enableMnemonics){const e=this.action.label;if(e){const t=mi.exec(e);t&&(this.mnemonic=(t[1]?t[1]:t[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new m.uC((()=>{this.element&&(this._register((0,U.ko)(this.element,U.Bx.MOUSE_UP,(e=>{if(U.fs.stop(e,!0),oi.gm){if(new ri.P((0,U.zk)(this.element),e).rightButton)return;this.onClick(e)}else setTimeout((()=>{this.onClick(e)}),0)}))),this._register((0,U.ko)(this.element,U.Bx.CONTEXT_MENU,(e=>{U.fs.stop(e,!0)}))))}),100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=(0,U.BC)(this.element,(0,U.$)("a.action-menu-item")),this._action.id===ii.wv.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,U.BC)(this.item,(0,U.$)("span.menu-item-check"+gi.L.asCSSSelector(di.W.menuSelection))),this.check.setAttribute("role","none"),this.label=(0,U.BC)(this.item,(0,U.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,U.BC)(this.item,(0,U.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item?.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){if(this.label&&this.options.label){(0,U.w_)(this.label);let e=(0,pi.pS)(this.action.label);if(e){const t=function(e){const t=mi,i=t.exec(e);if(!i)return e;const s=!i[1];return e.replace(t,s?"$2$3":"").trim()}(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));const i=mi.exec(e);if(i){e=c.ih(e),fi.lastIndex=0;let t=fi.exec(e);for(;t&&t[1];)t=fi.exec(e);const s=e=>e.replace(/&&/g,"&");t?this.label.append(c.NB(s(e.substr(0,t.index))," "),(0,U.$)("u",{"aria-hidden":"true"},t[3]),c.BO(s(e.substr(t.index+t[0].length))," ")):this.label.innerText=s(e).trim(),this.item?.setAttribute("aria-keyshortcuts",(i[1]?i[1]:i[3]).toLocaleLowerCase())}else this.label.innerText=e.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.action.checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,s=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",n=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=t??"",this.item.style.backgroundColor=i??"",this.item.style.outline=s,this.item.style.outlineOffset=n),this.check&&(this.check.style.color=t??"")}}class Ei extends bi{constructor(e,t,i,s,n){super(e,e,s,n),this.submenuActions=t,this.parentData=i,this.submenuOptions=s,this.mysubmenu=null,this.submenuDisposables=this._register(new l.Cm),this.mouseOver=!1,this.expandDirection=s&&void 0!==s.expandDirection?s.expandDirection:{horizontal:_i.Right,vertical:vi.Below},this.showScheduler=new m.uC((()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))}),250),this.hideScheduler=new m.uC((()=>{this.element&&!(0,U.QX)((0,U.bq)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}),750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,U.BC)(this.item,(0,U.$)("span.submenu-indicator"+gi.L.asCSSSelector(di.W.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,U.ko)(this.element,U.Bx.KEY_UP,(e=>{const t=new Xe.Z(e);(t.equals(17)||t.equals(3))&&(U.fs.stop(e,!0),this.createSubmenu(!0))}))),this._register((0,U.ko)(this.element,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);(0,U.bq)()===this.item&&(t.equals(17)||t.equals(3))&&U.fs.stop(e,!0)}))),this._register((0,U.ko)(this.element,U.Bx.MOUSE_OVER,(e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())}))),this._register((0,U.ko)(this.element,U.Bx.MOUSE_LEAVE,(e=>{this.mouseOver=!1}))),this._register((0,U.ko)(this.element,U.Bx.FOCUS_OUT,(e=>{this.element&&!(0,U.QX)((0,U.bq)(),this.element)&&this.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}))))}updateEnabled(){}onClick(e){U.fs.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,s){const n={top:0,left:0};return n.left=et(e.width,t.width,{position:s.horizontal===_i.Right?0:1,offset:i.left,size:i.width}),n.left>=i.left&&n.left<i.left+i.width&&(i.left+10+t.width<=e.width&&(n.left=i.left+10),i.top+=10,i.height=0),n.top=et(e.height,t.height,{position:0,offset:i.top,size:0}),n.top+t.height===i.top&&n.top+i.height+t.height<=e.height&&(n.top+=i.height),n}createSubmenu(e=!0){if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=(0,U.BC)(this.element,(0,U.$)("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view");const t=(0,U.zk)(this.parentData.parent.domNode).getComputedStyle(this.parentData.parent.domNode),i=parseFloat(t.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new Ci(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new ii.HJ],this.submenuOptions,this.menuStyle);const s=this.element.getBoundingClientRect(),n={top:s.top-i,left:s.left,height:s.height+2*i,width:s.width},r=this.submenuContainer.getBoundingClientRect(),o=(0,U.zk)(this.element),{top:a,left:l}=this.calculateSubmenuMenuLayout(new U.fg(o.innerWidth,o.innerHeight),U.fg.lift(r),n,this.expandDirection);this.submenuContainer.style.left=l-r.left+"px",this.submenuContainer.style.top=a-r.top+"px",this.submenuDisposables.add((0,U.ko)(this.submenuContainer,U.Bx.KEY_UP,(e=>{new Xe.Z(e).equals(15)&&(U.fs.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add((0,U.ko)(this.submenuContainer,U.Bx.KEY_DOWN,(e=>{new Xe.Z(e).equals(15)&&U.fs.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){this.item&&this.item?.setAttribute("aria-expanded",e)}applyStyle(){super.applyStyle();const e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=e??"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class Si extends ci.Z4{constructor(e,t,i,s){super(e,t,i),this.menuStyles=s}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function yi(e){const t=(0,ui.J)()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}var wi=i(19070);class Li{constructor(e,t,i,s){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=s,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let i;this.focusToReturn=(0,U.bq)();const s=(0,U.sb)(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:s=>{this.lastContainer=s;const n=e.getMenuClassName?e.getMenuClassName():"";n&&(s.className+=" "+n),this.options.blockMouse&&(this.block=s.appendChild((0,U.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",this.blockDisposable?.dispose(),this.blockDisposable=(0,U.ko)(this.block,U.Bx.MOUSE_DOWN,(e=>e.stopPropagation())));const r=new l.Cm,o=e.actionRunner||new ii.LN;o.onWillRun((t=>this.onActionRun(t,!e.skipTelemetry)),this,r),o.onDidRun(this.onDidActionRun,this,r),i=new Ci(s,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:o,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)},wi.XS),i.onDidCancel((()=>this.contextViewService.hideContextView(!0)),null,r),i.onDidBlur((()=>this.contextViewService.hideContextView(!0)),null,r);const a=(0,U.zk)(s);return r.add((0,U.ko)(a,U.Bx.BLUR,(()=>this.contextViewService.hideContextView(!0)))),r.add((0,U.ko)(a,U.Bx.MOUSE_DOWN,(e=>{if(e.defaultPrevented)return;const t=new ri.P(a,e);let i=t.target;if(!t.rightButton){for(;i;){if(i===s)return;i=i.parentElement}this.contextViewService.hideContextView(!0)}}))),(0,l.qE)(r,i)},focus:()=>{i?.focus(!!e.autoSelectFirstItem)},onHide:t=>{e.onHide?.(!!t),this.block&&(this.block.remove(),this.block=null),this.blockDisposable?.dispose(),this.blockDisposable=null,this.lastContainer&&((0,U.bq)()===this.lastContainer||(0,U.QX)((0,U.bq)(),this.lastContainer))&&this.focusToReturn?.focus(),this.lastContainer=null}},s,!!s)}onActionRun(e,t){t&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!(0,v.MB)(e.error)&&this.notificationService.error(e.error)}}var Ri=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ti=function(e,t){return function(i,s){t(i,s,e)}};let xi=class extends l.jG{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new Li(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(e,t,i,s,n,r){super(),this.telemetryService=e,this.notificationService=t,this.contextViewService=i,this.keybindingService=s,this.menuService=n,this.contextKeyService=r,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new Q.vl),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new Q.vl)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){e=ki.transform(e,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...e,onHide:t=>{e.onHide?.(t),this._onDidHideContextMenu.fire()}}),U.Di.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};var ki;xi=Ri([Ti(0,Qt.k),Ti(1,me.Ot),Ti(2,Oe.l),Ti(3,De.b),Ti(4,ni.ez),Ti(5,ie.fN)],xi),function(e){e.transform=function(e,t,i){if(!((s=e)&&s.menuId instanceof ni.D8))return e;var s;const{menuId:n,menuActionOptions:r,contextKeyService:o}=e;return{...e,getActions:()=>{const s=[];if(n){const e=t.getMenuActions(n,o??i,r);(0,si.$u)(e,s)}return e.getActions?ii.wv.join(e.getActions(),s):s}}}}(ki||(ki={}));var Ai,Ni=i(908);!function(e){e[e.API=0]="API",e[e.USER=1]="USER"}(Ai||(Ai={}));var Ii=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Oi=function(e,t){return function(i,s){t(i,s,e)}};let Di=class{constructor(e){this._commandService=e}async open(e,t){if(!(0,C.v$)(e,C.ny.command))return!1;if(!t?.allowCommands)return!0;if("string"===typeof e&&(e=h.r.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path))return!0;let i=[];try{i=(0,Ni.qg)(decodeURIComponent(e.query))}catch{try{i=(0,Ni.qg)(e.query)}catch{}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(e.path,...i),!0}};Di=Ii([Oi(0,St.d)],Di);let Mi=class{constructor(e){this._editorService=e}async open(e,t){"string"===typeof e&&(e=h.r.parse(e));const{selection:i,uri:s}=(0,Ue.e)(e);return(e=s).scheme===C.ny.file&&(e=(0,Jt.Fd)(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:t?.fromUserGesture?Ai.USER:Ai.API,...t?.editorOptions}},this._editorService.getFocusedCodeEditor(),t?.openToSide),!0}};Mi=Ii([Oi(0,g.T)],Mi);let Pi=class{constructor(e,t){this._openers=new X.w,this._validators=new X.w,this._resolvers=new X.w,this._resolvedUriTargets=new yt.fT((e=>e.with({path:null,fragment:null,query:null}).toString())),this._externalOpeners=new X.w,this._defaultExternalOpener={openExternal:async e=>((0,C.fV)(e,C.ny.http,C.ny.https)?U.CE(e):a.G.location.href=e,!0)},this._openers.push({open:async(e,t)=>!(!t?.openExternal&&!(0,C.fV)(e,C.ny.mailto,C.ny.http,C.ny.https,C.ny.vsls))&&(await this._doOpenExternal(e,t),!0)}),this._openers.push(new Di(t)),this._openers.push(new Mi(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}async open(e,t){const i="string"===typeof e?h.r.parse(e):e,s=this._resolvedUriTargets.get(i)??e;for(const n of this._validators)if(!await n.shouldOpen(s,t))return!1;for(const n of this._openers){if(await n.open(e,t))return!0}return!1}async resolveExternalUri(e,t){for(const i of this._resolvers)try{const s=await i.resolveExternalUri(e,t);if(s)return this._resolvedUriTargets.has(s.resolved)||this._resolvedUriTargets.set(s.resolved,e),s}catch{}throw new Error("Could not resolve external URI: "+e.toString())}async _doOpenExternal(e,t){const i="string"===typeof e?h.r.parse(e):e;let s,n;try{s=(await this.resolveExternalUri(i,t)).resolved}catch{s=i}if(n="string"===typeof e&&i.toString()===s.toString()?e:encodeURI(s.toString(!0)),t?.allowContributedOpeners){const e="string"===typeof t?.allowContributedOpeners?t?.allowContributedOpeners:void 0;for(const t of this._externalOpeners){if(await t.openExternal(n,{sourceUri:i,preferredOpenerId:e},at.XO.None))return!0}}return this._defaultExternalOpener.openExternal(n,{sourceUri:i},at.XO.None)}dispose(){this._validators.clear()}};Pi=Ii([Oi(0,g.T),Oi(1,St.d)],Pi);var Fi=i(10920),Ui=i(10154),Hi=i(30707),Bi=i(37550),Wi=i(16363),Vi=i(71597),zi=i(51467),Gi=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ji=function(e,t){return function(i,s){t(i,s,e)}};let Ki=class extends l.jG{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Lt.O.as(Vi.Fd.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){const[s,n]=this.getOrInstantiateProvider(e,i?.enabledProviderPrefixes),r=this.visibleQuickAccess,o=r?.descriptor;if(r&&n&&o===n)return e===n.prefix||i?.preserveValue||(r.picker.value=e),void this.adjustValueSelection(r.picker,n,i);if(n&&!i?.preserveValue){let t;if(r&&o&&o!==n){const e=r.value.substr(o.prefix.length);e&&(t=`${n.prefix}${e}`)}if(!t){const e=s?.defaultFilterValue;e===Vi.aJ.LAST?t=this.lastAcceptedPickerValues.get(n):"string"===typeof e&&(t=`${n.prefix}${e}`)}"string"===typeof t&&(e=t)}const a=r?.picker?.valueSelection,c=r?.picker?.value,h=new l.Cm,d=h.add(this.quickInputService.createQuickPick({useSeparators:!0}));let u;d.value=e,this.adjustValueSelection(d,n,i),d.placeholder=i?.placeholder??n?.placeholder,d.quickNavigate=i?.quickNavigateConfiguration,d.hideInput=!!d.quickNavigate&&!r,("number"===typeof i?.itemActivation||i?.quickNavigateConfiguration)&&(d.itemActivation=i?.itemActivation??zi.C1.SECOND),d.contextKey=n?.contextKey,d.filterValue=e=>e.substring(n?n.prefix.length:0),t&&(u=new m.Zv,h.add(Q.Jh.once(d.onWillAccept)((e=>{e.veto(),d.hide()})))),h.add(this.registerPickerListeners(d,s,n,e,i));const g=h.add(new at.Qi);return s&&h.add(s.provide(d,g.token,i?.providerOptions)),Q.Jh.once(d.onDidHide)((()=>{0===d.selectedItems.length&&g.cancel(),h.dispose(),u?.complete(d.selectedItems.slice(0))})),d.show(),a&&c===e&&(d.valueSelection=a),t?u?.p:void 0}adjustValueSelection(e,t,i){let s;s=i?.preserveValue?[e.value.length,e.value.length]:[t?.prefix.length??0,e.value.length],e.valueSelection=s}registerPickerListeners(e,t,i,s,n){const r=new l.Cm,o=this.visibleQuickAccess={picker:e,descriptor:i,value:s};return r.add((0,l.s)((()=>{o===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)}))),r.add(e.onDidChangeValue((e=>{const[i]=this.getOrInstantiateProvider(e,n?.enabledProviderPrefixes);i!==t?this.show(e,{enabledProviderPrefixes:n?.enabledProviderPrefixes,preserveValue:!0,providerOptions:n?.providerOptions}):o.value=e}))),i&&r.add(e.onDidAccept((()=>{this.lastAcceptedPickerValues.set(i,e.value)}))),r}getOrInstantiateProvider(e,t){const i=this.registry.getQuickAccessProvider(e);if(!i||t&&!t?.includes(i.prefix))return[void 0,void 0];let s=this.mapProviderToDescriptor.get(i);return s||(s=this.instantiationService.createInstance(i.ctor),this.mapProviderToDescriptor.set(i,s)),[s,i]}};Ki=Gi([ji(0,zi.GK),ji(1,ae._Y)],Ki);var Yi=i(35315),qi=i(56245),$i=i(20370),Qi=i(96032),Xi=i(58694),Zi=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ji{constructor(e){this.nodes=e}toString(){return this.nodes.map((e=>"string"===typeof e?e:e.label)).join("")}}Zi([Xi.B],Ji.prototype,"toString",null);const es=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi;const ts={},is=new Qi.n("quick-input-button-icon-");function ss(e,t,i){let s=e.iconClass||function(e){if(!e)return;let t;const i=e.dark.toString();return ts[i]?t=ts[i]:(t=is.nextId(),U.Wt(`.${t}, .hc-light .${t}`,`background-image: ${U.Tf(e.light||e.dark)}`),U.Wt(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${U.Tf(e.dark)}`),ts[i]=t),t}(e.iconPath);return e.alwaysVisible&&(s=s?`${s} always-visible`:"always-visible"),{id:t,label:"",tooltip:e.tooltip||"",class:s,enabled:!0,run:i}}function ns(e,t,i){U.Ln(t);const s=function(e){const t=[];let i,s=0;for(;i=es.exec(e);){i.index-s>0&&t.push(e.substring(s,i.index));const[,n,r,,o]=i;o?t.push({label:n,href:r,title:o}):t.push({label:n,href:r}),s=i.index+i[0].length}return s<e.length&&t.push(e.substring(s)),new Ji(t)}(e);let n=0;for(const r of s.nodes)if("string"===typeof r)t.append(...(0,$i.n)(r));else{let e=r.title;!e&&r.href.startsWith("command:")?e=(0,E.kg)("executeCommand","Click to execute command '{0}'",r.href.substring(8)):e||(e=r.href);const s=U.$("a",{href:r.href,title:e,tabIndex:n++},r.label);s.style.textDecoration="underline";const o=e=>{U.sd(e)&&U.fs.stop(e,!0),i.callback(r.href)},a=i.disposables.add(new qi.f(s,U.Bx.CLICK)).event,l=i.disposables.add(new qi.f(s,U.Bx.KEY_DOWN)).event,c=Q.Jh.chain(l,(e=>e.filter((e=>{const t=new Xe.Z(e);return t.equals(10)||t.equals(3)}))));i.disposables.add(ai.q.addTarget(s));const h=i.disposables.add(new qi.f(s,ai.B.Tap)).event;Q.Jh.any(a,h,c)(o,null,i.disposables),t.appendChild(s)}}var rs=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},os=function(e,t){return function(i,s){t(i,s,e)}};const as="inQuickInput",ls=new ie.N1(as,!1,(0,E.kg)("inQuickInput","Whether keyboard focus is inside the quick input control")),cs=ie.M$.has(as),hs="quickInputType",ds=new ie.N1(hs,void 0,(0,E.kg)("quickInputType","The type of the currently visible quick input")),us="cursorAtEndOfQuickInputBox",gs=new ie.N1(us,!1,(0,E.kg)("cursorAtEndOfQuickInputBox","Whether the cursor in the quick input is at the end of the input box")),ps=ie.M$.has(us),ms={iconClass:gi.L.asClassName(di.W.quickInputBack),tooltip:(0,E.kg)("quickInput.back","Back"),handle:-1};class fs extends l.jG{static{this.noPromptMessage=(0,E.kg)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel")}constructor(e){super(),this.ui=e,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._leftButtons=[],this._rightButtons=[],this._inlineButtons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=fs.noPromptMessage,this._severity=ge.A.Ignore,this.onDidTriggerButtonEmitter=this._register(new Q.vl),this.onDidHideEmitter=this._register(new Q.vl),this.onWillHideEmitter=this._register(new Q.vl),this.onDisposeEmitter=this._register(new Q.vl),this.visibleDisposables=this._register(new l.Cm),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!We.un;this._ignoreFocusOut=e&&!We.un,t&&this.update()}get titleButtons(){return this._leftButtons.length?[...this._leftButtons,this._rightButtons]:this._rightButtons}get buttons(){return[...this._leftButtons,...this._rightButtons,...this._inlineButtons]}set buttons(e){this._leftButtons=e.filter((e=>e===ms)),this._rightButtons=e.filter((e=>e!==ms&&e.location!==zi.dH.Inline)),this._inlineButtons=e.filter((e=>e.location===zi.dH.Inline)),this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(e){this._toggles=e??[],this.togglesUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton((e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)}))),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=zi.kF.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}willHide(e=zi.kF.Other){this.onWillHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:e||" "===this.ui.title.innerHTML||(this.ui.title.innerText="\xa0");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?U.Ln(this.ui.widget,this._widget):U.Ln(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new m.pc,this.busyDelay.setIfNotSet((()=>{this.visible&&this.ui.progressBar.infinite()}),800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this._leftButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.leftActionBar.push(e,{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this._rightButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.rightActionBar.push(t,{icon:!0,label:!1}),this.ui.inlineActionBar.clear();const i=this._inlineButtons.map(((e,t)=>ss(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.inlineActionBar.push(i,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const e=this.toggles?.filter((e=>e instanceof Yi.l))??[];this.ui.inputBox.toggles=e}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,U.Ln(this.ui.message),ns(i,this.ui.message,{callback:e=>{this.ui.linkOpenerDelegate(e)},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,E.kg)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==ge.A.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}class _s extends fs{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new Q.vl),this.onWillAcceptEmitter=this._register(new Q.vl),this.onDidAcceptEmitter=this._register(new Q.vl),this.onDidCustomEmitter=this._register(new Q.vl),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._keepScrollPosition=!1,this._itemActivation=zi.C1.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new Q.vl),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new Q.vl),this.onDidTriggerItemButtonEmitter=this._register(new Q.vl),this.onDidTriggerSeparatorButtonEmitter=this._register(new Q.vl),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this._focusEventBufferer=new Q.at,this.type="quickPick",this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event}static{this.DEFAULT_ARIA_LABEL=(0,E.kg)("quickInputBox.ariaLabel","Type to narrow down results.")}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){if(this._value!==e){if(this._value=e,t||this.update(),this.visible){this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst()}this.onDidChangeValueEmitter.fire(this._value)}}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?zi.Ym:this.ui.keyMods}get valueSelection(){const e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end]}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(zi.Fp.First)}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{this.doSetValue(e,!0)}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)}))),this.visibleDisposables.add(this.ui.onDidCustom((()=>{this.onDidCustomEmitter.fire()}))),this.visibleDisposables.add(this._focusEventBufferer.wrapEvent(this.ui.list.onDidChangeFocus,((e,t)=>t))((e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&(0,b.aI)(e,this._activeItems,((e,t)=>e===t))||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.list.onDidChangeSelection((({items:e,event:t})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&(0,b.aI)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(U.Er(t)&&1===t.button))}))),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements((e=>{this.canSelectMany&&this.visible&&(this.selectedItemsToConfirm!==this._selectedItems&&(0,b.aI)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))}))),this.visibleDisposables.add(this.ui.list.onButtonTriggered((e=>this.onDidTriggerItemButtonEmitter.fire(e)))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered((e=>this.onDidTriggerSeparatorButtonEmitter.fire(e)))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return U.ko(this.ui.container,U.Bx.KEY_UP,(e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Xe.Z(e),i=t.keyCode;this._quickNavigate.keybindings.some((e=>{const s=e.getChords();return!(s.length>1)&&(s[0].shiftKey&&4===i?!(t.ctrlKey||t.altKey||t.metaKey):!(!s[0].altKey||6!==i)||(!(!s[0].ctrlKey||5!==i)||!(!s[0].metaKey||57!==i)))}))&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)}))}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this.description,i={title:!!this.title||!!this.step||!!this.titleButtons.length,description:t,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||t,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let s=this.ariaLabel;!s&&i.inputBox&&(s=this.placeholder||_s.DEFAULT_ARIA_LABEL,this.title&&(s+=` - ${this.title}`)),this.ui.list.ariaLabel!==s&&(this.ui.list.ariaLabel=s??null),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated&&(this.itemsUpdated=!1,this._focusEventBufferer.bufferEvents((()=>{switch(this.ui.list.setElements(this.items),this.ui.list.shouldLoop=!this.canSelectMany,this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this._itemActivation){case zi.C1.NONE:this._itemActivation=zi.C1.FIRST;break;case zi.C1.SECOND:this.ui.list.focus(zi.Fp.Second),this._itemActivation=zi.C1.FIRST;break;case zi.C1.LAST:this.ui.list.focus(zi.Fp.Last),this._itemActivation=zi.C1.FIRST;break;default:this.trySelectFirst()}}))),this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(zi.Fp.First)),this.keepScrollPosition&&(this.scrollTop=e)}focus(e){this.ui.list.focus(e),this.canSelectMany&&this.ui.list.domFocus()}accept(e){e&&!this._canAcceptInBackground||this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(e??!1))}}class vs extends fs{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new Q.vl),this.onDidAcceptEmitter=this._register(new Q.vl),this.type="inputBox",this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(e){this._value=e||"",this.update()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>this.onDidAcceptEmitter.fire()))),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");const e={title:!!this.title||!!this.step||!!this.titleButtons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(e),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password)}}let Cs=class extends Ie.fO{constructor(e,t){super("element",!1,(e=>this.getOverrideOptions(e)),e,t)}getOverrideOptions(e){return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:(U.sb(e.content)?e.content.textContent??"":"string"===typeof e.content?e.content:e.content.value).includes("\n"),skipFadeInAnimation:!0}}}};Cs=rs([os(0,Me.pG),os(1,Ie.TN)],Cs);var bs=i(62890),Es=i(3828);const Ss="done",ys="active",ws="infinite",Ls="infinite-long-running",Rs="discrete";class Ts extends l.jG{static{this.LONG_RUNNING_INFINITE_THRESHOLD=1e4}constructor(e,t){super(),this.progressSignal=this._register(new l.HE),this.workedVal=0,this.showDelayedScheduler=this._register(new m.uC((()=>(0,U.WU)(this.element)),0)),this.longRunningScheduler=this._register(new m.uC((()=>this.infiniteLongRunning()),Ts.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e,t)}create(e,t){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=t?.progressBarBackground||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(ys,ws,Ls,Rs),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel(),this.progressSignal.clear()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(Ss),this.element.classList.contains(ws)?(this.bit.style.opacity="0",e?setTimeout((()=>this.off()),200):this.off()):(this.bit.style.width="inherit",e?setTimeout((()=>this.off()),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(Rs,Ss,Ls),this.element.classList.add(ys,ws),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Ls)}getContainer(){return this.element}}var xs=i(88443);const ks=U.$;class As extends l.jG{constructor(e,t,i){super(),this.parent=e,this.onKeyDown=e=>U.b2(this.findInput.inputBox.inputElement,U.Bx.KEY_DOWN,e),this.onDidChange=e=>this.findInput.onDidChange(e),this.container=U.BC(this.parent,ks(".quick-input-box")),this.findInput=this._register(new xs.c(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i}));const s=this.findInput.inputBox.inputElement;s.role="combobox",s.ariaHasPopup="menu",s.ariaAutoComplete="list",s.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(e){this.findInput.setValue(e)}select(e=null){this.findInput.inputBox.select(e)}getSelection(){return this.findInput.inputBox.getSelection()}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.findInput.inputBox.setPlaceHolder(e)}get password(){return"password"===this.findInput.inputBox.inputElement.type}set password(e){this.findInput.inputBox.inputElement.type=e?"password":"text"}set enabled(e){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!e)}set toggles(e){this.findInput.setAdditionalToggles(e)}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t)}showDecoration(e){e===ge.A.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===ge.A.Info?1:e===ge.A.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===ge.A.Info?1:e===ge.A.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}var Ns=i(36584),Is=i(21852),Os=i(47625),Ds=i(86723),Ms=i(91090);const Ps=new Ms.d((()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));new Ms.d((()=>({collator:new Intl.Collator(void 0,{numeric:!0})}))),new Ms.d((()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})})));function Fs(e,t,i){const s=e.toLowerCase(),n=t.toLowerCase(),r=function(e,t,i){const s=e.toLowerCase(),n=t.toLowerCase(),r=s.startsWith(i),o=n.startsWith(i);if(r!==o)return r?-1:1;if(r&&o){if(s.length<n.length)return-1;if(s.length>n.length)return 1}return 0}(e,t,i);if(r)return r;const o=s.endsWith(i);if(o!==n.endsWith(i))return o?-1:1;const a=function(e,t){const i=e||"",s=t||"",n=Ps.value.collator.compare(i,s);return Ps.value.collatorIsNumeric&&0===n&&i!==s?i<s?-1:1:n}(s,n);return 0!==a?a:s.localeCompare(n)}var Us,Hs=i(19466),Bs=i(31308),Ws=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Vs=function(e,t){return function(i,s){t(i,s,e)}};const zs=U.$;class Gs{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new Ms.d((()=>{const e=i.label??"",t=(0,pi._k)(e).text.trim(),s=i.ariaLabel||[e,this.saneDescription,this.saneDetail].map((e=>(0,pi.R$)(e))).filter((e=>!!e)).join(", ");return{saneLabel:e,saneSortLabel:t,saneAriaLabel:s}})),this._saneDescription=i.description,this._saneTooltip=i.tooltip}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(e){this._element=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}get saneDescription(){return this._saneDescription}set saneDescription(e){this._saneDescription=e}get saneDetail(){return this._saneDetail}set saneDetail(e){this._saneDetail=e}get saneTooltip(){return this._saneTooltip}set saneTooltip(e){this._saneTooltip=e}get labelHighlights(){return this._labelHighlights}set labelHighlights(e){this._labelHighlights=e}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(e){this._descriptionHighlights=e}get detailHighlights(){return this._detailHighlights}set detailHighlights(e){this._detailHighlights=e}}class js extends Gs{constructor(e,t,i,s,n,r){super(e,t,n),this.fireButtonTriggered=i,this._onChecked=s,this.item=n,this._separator=r,this._checked=!1,this.onChecked=t?Q.Jh.map(Q.Jh.filter(this._onChecked.event,(e=>e.element===this)),(e=>e.checked)):Q.Jh.None,this._saneDetail=n.detail,this._labelHighlights=n.highlights?.label,this._descriptionHighlights=n.highlights?.description,this._detailHighlights=n.highlights?.detail}get separator(){return this._separator}set separator(e){this._separator=e}get checked(){return this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({element:this,checked:e}))}get checkboxDisabled(){return!!this.item.disabled}}var Ks;!function(e){e[e.NONE=0]="NONE",e[e.MOUSE_HOVER=1]="MOUSE_HOVER",e[e.ACTIVE_ITEM=2]="ACTIVE_ITEM"}(Ks||(Ks={}));class Ys extends Gs{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=new Array,this.focusInsideSeparator=Ks.NONE}}class qs{getHeight(e){return e instanceof Ys?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof js?Xs.ID:Zs.ID}}class $s{getWidgetAriaLabel(){return(0,E.kg)("quickInput","Quick Input")}getAriaLabel(e){return e.separator?.label?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox&&e instanceof js)return{get value(){return e.checked},onDidChange:t=>e.onChecked((()=>t()))}}}class Qs{constructor(e){this.hoverDelegate=e}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=new l.Cm,t.toDisposeTemplate=new l.Cm,t.entry=U.BC(e,zs(".quick-input-list-entry"));const i=U.BC(t.entry,zs("label.quick-input-list-label"));t.toDisposeTemplate.add(U.b2(i,U.Bx.CLICK,(e=>{t.checkbox.offsetParent||e.preventDefault()}))),t.checkbox=U.BC(i,zs("input.quick-input-list-checkbox")),t.checkbox.type="checkbox";const s=U.BC(i,zs(".quick-input-list-rows")),n=U.BC(s,zs(".quick-input-list-row")),r=U.BC(s,zs(".quick-input-list-row"));t.label=new Is.s(n,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=U.Hs(t.label.element,zs(".quick-input-list-icon"));const o=U.BC(n,zs(".quick-input-list-entry-keybinding"));t.keybinding=new Os.x(o,We.OS),t.toDisposeTemplate.add(t.keybinding);const a=U.BC(r,zs(".quick-input-list-label-meta"));return t.detail=new Is.s(a,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=U.BC(t.entry,zs(".quick-input-list-separator")),t.actionBar=new li.E(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.actionBar),t}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,t,i){i.toDisposeElement.clear(),i.actionBar.clear()}}let Xs=class extends Qs{static{Us=this}static{this.ID="quickpickitem"}constructor(e,t){super(e),this.themeService=t,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return Us.ID}renderTemplate(e){const t=super.renderTemplate(e);return t.toDisposeTemplate.add(U.b2(t.checkbox,U.Bx.CHANGE,(e=>{t.element.checked=t.checkbox.checked}))),t}renderElement(e,t,i){const s=e.element;i.element=s,s.element=i.entry??void 0;const n=s.item;i.checkbox.checked=s.checked,i.toDisposeElement.add(s.onChecked((e=>i.checkbox.checked=e))),i.checkbox.disabled=s.checkboxDisabled;const{labelHighlights:r,descriptionHighlights:o,detailHighlights:a}=s;if(n.iconPath){const e=(0,Ds.HD)(this.themeService.getColorTheme().type)?n.iconPath.dark:n.iconPath.light??n.iconPath.dark,t=h.r.revive(e);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=U.Tf(t)}else i.icon.style.backgroundImage="",i.icon.className=n.iconClass?`quick-input-list-icon ${n.iconClass}`:"";let l;!s.saneTooltip&&s.saneDescription&&(l={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const c={matches:r||[],descriptionTitle:l,descriptionMatches:o||[],labelEscapeNewLines:!0};if(c.extraClasses=n.iconClasses,c.italic=n.italic,c.strikethrough=n.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,c),i.keybinding.set(n.keybinding),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:a,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";s.separator?.label?(i.separator.textContent=s.separator.label,i.separator.style.display="",this.addItemWithSeparator(s)):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!s.separator);const d=n.buttons;d&&d.length?(i.actionBar.push(d.map(((e,t)=>ss(e,`id-${t}`,(()=>s.fireButtonTriggered({button:e,item:s.item}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){this.removeItemWithSeparator(e.element),super.disposeElement(e,t,i)}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e)}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1)}removeItemWithSeparator(e){const t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e)}};Xs=Us=Ws([Vs(1,Z.Gy)],Xs);class Zs extends Qs{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}static{this.ID="quickpickseparator"}get templateId(){return Zs.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderTemplate(e){const t=super.renderTemplate(e);return t.checkbox.style.display="none",t}renderElement(e,t,i){const s=e.element;i.element=s,s.element=i.entry??void 0,s.element.classList.toggle("focus-inside",!!s.focusInsideSeparator);const n=s.separator,{labelHighlights:r,descriptionHighlights:o,detailHighlights:a}=s;let l;i.icon.style.backgroundImage="",i.icon.className="",!s.saneTooltip&&s.saneDescription&&(l={markdown:{value:s.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDescription});const c={matches:r||[],descriptionTitle:l,descriptionMatches:o||[],labelEscapeNewLines:!0};if(i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(s.saneLabel,s.saneDescription,c),s.saneDetail){let e;s.saneTooltip||(e={markdown:{value:s.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:s.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(s.saneDetail,void 0,{matches:a,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");const h=n.buttons;h&&h.length?(i.actionBar.push(h.map(((e,t)=>ss(e,`id-${t}`,(()=>s.fireSeparatorButtonTriggered({button:e,separator:s.separator}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions"),this.addSeparator(s)}disposeElement(e,t,i){this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||e.element.element?.classList.remove("focus-inside"),super.disposeElement(e,t,i)}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1)}removeSeparator(e){const t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e)}}let Js=class extends l.jG{constructor(e,t,i,s,n,r){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this.accessibilityService=r,this._onKeyDown=new Q.vl,this._onLeave=new Q.vl,this.onLeave=this._onLeave.event,this._visibleCountObservable=(0,Bs.FY)("VisibleCount",0),this.onChangedVisibleCount=Q.Jh.fromObservable(this._visibleCountObservable,this._store),this._allVisibleCheckedObservable=(0,Bs.FY)("AllVisibleChecked",!1),this.onChangedAllVisibleChecked=Q.Jh.fromObservable(this._allVisibleCheckedObservable,this._store),this._checkedCountObservable=(0,Bs.FY)("CheckedCount",0),this.onChangedCheckedCount=Q.Jh.fromObservable(this._checkedCountObservable,this._store),this._checkedElementsObservable=(0,Bs.Zh)({equalsFn:b.aI},new Array),this.onChangedCheckedElements=Q.Jh.fromObservable(this._checkedElementsObservable,this._store),this._onButtonTriggered=new Q.vl,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new Q.vl,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._elementChecked=new Q.vl,this._elementCheckedEventBufferer=new Q.at,this._hasCheckboxes=!1,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new l.Cm),this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._shouldLoop=!0,this._container=U.BC(this.parent,zs(".quick-input-list")),this._separatorRenderer=new Zs(t),this._itemRenderer=n.createInstance(Xs,t),this._tree=this._register(n.createInstance(Ns.zL,"QuickInput",this._container,new qs,[this._itemRenderer,this._separatorRenderer],{filter:{filter:e=>e.hidden?0:e instanceof Ys?2:1},sorter:{compare:(e,t)=>{if(!this.sortByLabel||!this._lastQueryString)return 0;return function(e,t,i){const s=e.labelHighlights||[],n=t.labelHighlights||[];if(s.length&&!n.length)return-1;if(!s.length&&n.length)return 1;if(0===s.length&&0===n.length)return 0;return Fs(e.saneSortLabel,t.saneSortLabel,i)}(e,t,this._lastQueryString.toLowerCase())}},accessibilityProvider:new $s,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:Hs.KP.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=s,this._registerListeners()}get onDidChangeFocus(){return Q.Jh.map(this._tree.onDidChangeFocus,(e=>e.elements.filter((e=>e instanceof js)).map((e=>e.item))),this._store)}get onDidChangeSelection(){return Q.Jh.map(this._tree.onDidChangeSelection,(e=>({items:e.elements.filter((e=>e instanceof js)).map((e=>e.item)),event:e.browserEvent})),this._store)}get displayed(){return"none"!==this._container.style.display}set displayed(e){this._container.style.display=e?"":"none"}get scrollTop(){return this._tree.scrollTop}set scrollTop(e){this._tree.scrollTop=e}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(e){this._tree.ariaLabel=e??""}set enabled(e){this._tree.getHTMLElement().style.pointerEvents=e?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e}get shouldLoop(){return this._shouldLoop}set shouldLoop(e){this._shouldLoop=e}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnTreeModelChanged(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown((e=>{const t=new Xe.Z(e);if(10===t.keyCode)this.toggleCheckbox();this._onKeyDown.fire(t)})))}_registerOnContainerClick(){this._register(U.ko(this._container,U.Bx.CLICK,(e=>{(e.x||e.y)&&this._onLeave.fire()})))}_registerOnMouseMiddleClick(){this._register(U.ko(this._container,U.Bx.AUXCLICK,(e=>{1===e.button&&this._onLeave.fire()})))}_registerOnTreeModelChanged(){this._register(this._tree.onDidChangeModel((()=>{const e=this._itemElements.filter((e=>!e.hidden)).length;this._visibleCountObservable.set(e,void 0),this._hasCheckboxes&&this._updateCheckedObservables()})))}_registerOnElementChecked(){this._register(this._elementCheckedEventBufferer.wrapEvent(this._elementChecked.event,((e,t)=>t))((e=>this._updateCheckedObservables())))}_registerOnContextMenu(){this._register(this._tree.onContextMenu((e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]))})))}_registerHoverListeners(){const e=this._register(new m.Th(this.hoverDelegate.delay));this._register(this._tree.onMouseOver((async t=>{if(U.nY(t.browserEvent.target))e.cancel();else if(U.nY(t.browserEvent.relatedTarget)||!U.QX(t.browserEvent.relatedTarget,t.element?.element))try{await e.trigger((async()=>{t.element instanceof js&&this.showHover(t.element)}))}catch(t){if(!(0,v.MB)(t))throw t}}))),this._register(this._tree.onMouseOut((t=>{U.QX(t.browserEvent.relatedTarget,t.element?.element)||e.cancel()})))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus((e=>{const t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(const i of this._separatorRenderer.visibleSeparators){const e=i===t;!!(i.focusInsideSeparator&Ks.ACTIVE_ITEM)!==e&&(e?i.focusInsideSeparator|=Ks.ACTIVE_ITEM:i.focusInsideSeparator&=~Ks.ACTIVE_ITEM,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOver((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&Ks.MOUSE_HOVER)||(i.focusInsideSeparator|=Ks.MOUSE_HOVER,this._tree.rerender(i))}}))),this._register(this._tree.onMouseOut((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const i of this._separatorRenderer.visibleSeparators){if(i!==t)continue;!!(i.focusInsideSeparator&Ks.MOUSE_HOVER)&&(i.focusInsideSeparator&=~Ks.MOUSE_HOVER,this._tree.rerender(i))}})))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection((e=>{const t=e.elements.filter((e=>e instanceof js));t.length!==e.elements.length&&(1===e.elements.length&&e.elements[0]instanceof Ys&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(t))})))}setAllVisibleChecked(e){this._elementCheckedEventBufferer.bufferEvents((()=>{this._itemElements.forEach((t=>{t.hidden||t.checkboxDisabled||(t.checked=e)}))}))}setElements(e){let t;this._elementDisposable.clear(),this._lastQueryString=void 0,this._inputElements=e,this._hasCheckboxes=this.parent.classList.contains("show-checkboxes"),this._itemElements=new Array,this._elementTree=e.reduce(((i,s,n)=>{let r;if("separator"===s.type){if(!s.buttons)return i;t=new Ys(n,(e=>this._onSeparatorButtonTriggered.fire(e)),s),r=t}else{const o=n>0?e[n-1]:void 0;let a;o&&"separator"===o.type&&!o.buttons&&(t=void 0,a=o);const l=new js(n,this._hasCheckboxes,(e=>this._onButtonTriggered.fire(e)),this._elementChecked,s,a);if(this._itemElements.push(l),t)return t.children.push(l),i;r=l}return i.push(r),i}),new Array),this._setElementsToTree(this._elementTree),this.accessibilityService.isScreenReaderOptimized()&&setTimeout((()=>{const e=this._tree.getHTMLElement().querySelector(".monaco-list-row.focused"),t=e?.parentNode;if(e&&t){const i=e.nextSibling;e.remove(),t.insertBefore(e,i)}}),0)}setFocusedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e)).filter((e=>!e.hidden));if(this._tree.setFocus(t),e.length>0){const e=this._tree.getFocus()[0];e&&this._tree.reveal(e)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e));this._tree.setSelection(t)}getCheckedElements(){return this._itemElements.filter((e=>e.checked)).map((e=>e.item))}setCheckedElements(e){this._elementCheckedEventBufferer.bufferEvents((()=>{const t=new Set;for(const i of e)t.add(i);for(const e of this._itemElements)e.checked=t.has(e.item)}))}focus(e){if(this._itemElements.length)switch(e===zi.Fp.Second&&this._itemElements.length<2&&(e=zi.Fp.First),e){case zi.Fp.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,(e=>e.element instanceof js));break;case zi.Fp.Second:{this._tree.scrollTop=0;let e=!1;this._tree.focusFirst(void 0,(t=>t.element instanceof js&&(!!e||(e=!e,!1))));break}case zi.Fp.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,(e=>e.element instanceof js));break;case zi.Fp.Next:{const e=this._tree.getFocus();this._tree.focusNext(void 0,this._shouldLoop,void 0,(e=>e.element instanceof js&&(this._tree.reveal(e.element),!0)));const t=this._tree.getFocus();e.length&&e[0]===t[0]&&e[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}case zi.Fp.Previous:{const e=this._tree.getFocus();this._tree.focusPrevious(void 0,this._shouldLoop,void 0,(e=>{if(!(e.element instanceof js))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));const t=this._tree.getFocus();e.length&&e[0]===t[0]&&e[0]===this._itemElements[0]&&this._onLeave.fire();break}case zi.Fp.NextPage:this._tree.focusNextPage(void 0,(e=>e.element instanceof js&&(this._tree.reveal(e.element),!0)));break;case zi.Fp.PreviousPage:this._tree.focusPreviousPage(void 0,(e=>{if(!(e.element instanceof js))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));break;case zi.Fp.NextSeparator:{let e=!1;const t=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,(t=>{if(e)return!0;if(t.element instanceof Ys)e=!0,this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element.children[0]):this._tree.reveal(t.element,0);else if(t.element instanceof js){if(t.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),!0;if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0}return!1}));t===this._tree.getFocus()[0]&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,(e=>e.element instanceof js)));break}case zi.Fp.PreviousSeparator:{let e,t=!!this._tree.getFocus()[0]?.separator;this._tree.focusPrevious(void 0,!0,void 0,(i=>{if(i.element instanceof Ys)t?e||(this._separatorRenderer.isSeparatorVisible(i.element)?this._tree.reveal(i.element):this._tree.reveal(i.element,0),e=i.element.children[0]):t=!0;else if(i.element instanceof js&&!e)if(i.element.separator)this._itemRenderer.isItemWithSeparatorVisible(i.element)?this._tree.reveal(i.element):this._tree.reveal(i.element,0),e=i.element;else if(i.element===this._elementTree[0])return this._tree.reveal(i.element,0),!0;return!1})),e&&this._tree.setFocus([e]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?44*Math.floor(e/44)+6+"px":"",this._tree.layout()}filter(e){if(this._lastQueryString=e,!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;const t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this._itemElements.forEach((s=>{let n;n="fuzzy"===this.matchOnLabelMode?this.matchOnLabel?(0,pi.pz)(e,(0,pi._k)(s.saneLabel))??void 0:void 0:this.matchOnLabel?function(e,t){const{text:i,iconOffsets:s}=t;if(!s||0===s.length)return en(e,i);const n=(0,c.NB)(i," "),r=i.length-n.length,o=en(e,n);if(o)for(const a of o){const e=s[a.start+r]+r;a.start+=e,a.end+=e}return o}(t,(0,pi._k)(s.saneLabel))??void 0:void 0;const r=this.matchOnDescription?(0,pi.pz)(e,(0,pi._k)(s.saneDescription||""))??void 0:void 0,o=this.matchOnDetail?(0,pi.pz)(e,(0,pi._k)(s.saneDetail||""))??void 0:void 0;if(n||r||o?(s.labelHighlights=n,s.descriptionHighlights=r,s.detailHighlights=o,s.hidden=!1):(s.labelHighlights=void 0,s.descriptionHighlights=void 0,s.detailHighlights=void 0,s.hidden=!s.item||!s.item.alwaysShow),s.item?s.separator=void 0:s.separator&&(s.hidden=!0),!this.sortByLabel){const e=s.index&&this._inputElements[s.index-1]||void 0;"separator"!==e?.type||e.buttons||(i=e),i&&!s.hidden&&(s.separator=i,i=void 0)}}))}else this._itemElements.forEach((e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this._inputElements[e.index-1];e.item&&(e.separator=t&&"separator"===t.type&&!t.buttons?t:void 0)}));return this._setElementsToTree(this._sortByLabel&&e?this._itemElements:this._elementTree),this._tree.layout(),!0}toggleCheckbox(){this._elementCheckedEventBufferer.bufferEvents((()=>{const e=this._tree.getFocus().filter((e=>e instanceof js)),t=this._allVisibleChecked(e);for(const i of e)i.checkboxDisabled||(i.checked=!t)}))}style(e){this._tree.style(e)}toggleHover(){const e=this._tree.getFocus()[0];if(!e?.saneTooltip||!(e instanceof js))return;if(this._lastHover&&!this._lastHover.isDisposed)return void this._lastHover.dispose();this.showHover(e);const t=new l.Cm;t.add(this._tree.onDidChangeFocus((e=>{e.elements[0]instanceof js&&this.showHover(e.elements[0])}))),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t)}_setElementsToTree(e){const t=new Array;for(const i of e)i instanceof Ys?t.push({element:i,collapsible:!1,collapsed:!1,children:i.children.map((e=>({element:e,collapsible:!1,collapsed:!1})))}):t.push({element:i,collapsible:!1,collapsed:!1});this._tree.setChildren(null,t)}_allVisibleChecked(e,t=!0){for(let i=0,s=e.length;i<s;i++){const s=e[i];if(!s.hidden){if(!s.checked)return!1;t=!0}}return t}_updateCheckedObservables(){(0,Bs.Rn)((e=>{this._allVisibleCheckedObservable.set(this._allVisibleChecked(this._itemElements,!1),e);const t=this._itemElements.filter((e=>e.checked)).length;this._checkedCountObservable.set(t,e),this._checkedElementsObservable.set(this.getCheckedElements(),e)}))}showHover(e){this._lastHover&&!this._lastHover.isDisposed&&(this.hoverDelegate.onDidHideHover?.(),this._lastHover?.dispose()),e.element&&e.saneTooltip&&(this._lastHover=this.hoverDelegate.showHover({content:e.saneTooltip,target:e.element,linkHandler:e=>{this.linkOpenerDelegate(e)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};function en(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1!==i?[{start:i,end:i+e.length}]:null}Ws([Xi.B],Js.prototype,"onDidChangeFocus",null),Ws([Xi.B],Js.prototype,"onDidChangeSelection",null),Js=Ws([Vs(4,ae._Y),Vs(5,Ve.j)],Js);var tn=i(28290);const sn={weight:200,when:ie.M$.and(ie.M$.equals(hs,"quickPick"),cs),metadata:{description:(0,E.kg)("quickPick","Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")}};function nn(e,t={}){Wt.f.registerCommandAndKeybindingRule({...sn,...e,secondary:on(e.primary,e.secondary??[],t)})}const rn=We.zx?256:2048;function on(e,t,i={}){return i.withAltMod&&t.push(512+e),i.withCtrlMod&&(t.push(rn+e),i.withAltMod&&t.push(512+rn+e)),i.withCmdMod&&We.zx&&(t.push(2048+e),i.withCtrlMod&&t.push(2304+e),i.withAltMod&&(t.push(2560+e),i.withCtrlMod&&t.push(2816+e))),t}function an(e,t){return i=>{const s=i.get(zi.GK).currentQuickInput;if(s)return t&&s.quickNavigate?s.focus(t):s.focus(e)}}nn({id:"quickInput.pageNext",primary:12,handler:an(zi.Fp.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),nn({id:"quickInput.pagePrevious",primary:11,handler:an(zi.Fp.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),nn({id:"quickInput.first",primary:rn+14,handler:an(zi.Fp.First)},{withAltMod:!0,withCmdMod:!0}),nn({id:"quickInput.last",primary:rn+13,handler:an(zi.Fp.Last)},{withAltMod:!0,withCmdMod:!0}),nn({id:"quickInput.next",primary:18,handler:an(zi.Fp.Next)},{withCtrlMod:!0}),nn({id:"quickInput.previous",primary:16,handler:an(zi.Fp.Previous)},{withCtrlMod:!0});const ln=(0,E.kg)("quickInput.nextSeparatorWithQuickAccessFallback","If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator."),cn=(0,E.kg)("quickInput.previousSeparatorWithQuickAccessFallback","If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator.");We.zx?(nn({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:an(zi.Fp.NextSeparator,zi.Fp.Next),metadata:{description:ln}}),nn({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:an(zi.Fp.NextSeparator)},{withCtrlMod:!0}),nn({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:an(zi.Fp.PreviousSeparator,zi.Fp.Previous),metadata:{description:cn}}),nn({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:an(zi.Fp.PreviousSeparator)},{withCtrlMod:!0})):(nn({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:an(zi.Fp.NextSeparator,zi.Fp.Next),metadata:{description:ln}}),nn({id:"quickInput.nextSeparator",primary:2578,handler:an(zi.Fp.NextSeparator)}),nn({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:an(zi.Fp.PreviousSeparator,zi.Fp.Previous),metadata:{description:cn}}),nn({id:"quickInput.previousSeparator",primary:2576,handler:an(zi.Fp.PreviousSeparator)})),nn({id:"quickInput.acceptInBackground",when:ie.M$.and(sn.when,ie.M$.or(tn.J7.negate(),ps)),primary:17,weight:250,handler:e=>{const t=e.get(zi.GK).currentQuickInput;t?.accept(!0)}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});var hn,dn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},un=function(e,t){return function(i,s){t(i,s,e)}};const gn=U.$;let pn=class extends l.jG{static{hn=this}static{this.MAX_WIDTH=600}get currentQuickInput(){return this.controller??void 0}get container(){return this._container}constructor(e,t,i,s){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.contextKeyService=s,this.enabled=!0,this.onDidAcceptEmitter=this._register(new Q.vl),this.onDidCustomEmitter=this._register(new Q.vl),this.onDidTriggerButtonEmitter=this._register(new Q.vl),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new Q.vl),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new Q.vl),this.onHide=this.onHideEmitter.event,this.inQuickInputContext=ls.bindTo(this.contextKeyService),this.quickInputTypeContext=ds.bindTo(this.contextKeyService),this.endOfQuickInputBoxContext=gs.bindTo(this.contextKeyService),this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(Q.Jh.runAndSubscribe(U.Iv,(({window:e,disposables:t})=>this.registerKeyModsListeners(e,t)),{window:a.G,disposables:this._store})),this._register(U.q3((e=>{this.ui&&U.zk(this.ui.container)===e&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))})))}registerKeyModsListeners(e,t){const i=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};for(const s of[U.Bx.KEY_DOWN,U.Bx.KEY_UP,U.Bx.MOUSE_DOWN])t.add(U.ko(e,s,i,!0))}getUI(e){if(this.ui)return e&&U.zk(this._container)!==U.zk(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const t=U.BC(this._container,gn(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";const i=U.li(t),s=U.BC(t,gn(".quick-input-titlebar")),n=this._register(new li.E(s,{hoverDelegate:this.options.hoverDelegate}));n.domNode.classList.add("quick-input-left-action-bar");const r=U.BC(s,gn(".quick-input-title")),o=this._register(new li.E(s,{hoverDelegate:this.options.hoverDelegate}));o.domNode.classList.add("quick-input-right-action-bar");const a=U.BC(t,gn(".quick-input-header")),l=U.BC(a,gn("input.quick-input-check-all"));l.type="checkbox",l.setAttribute("aria-label",(0,E.kg)("quickInput.checkAll","Toggle all checkboxes")),this._register(U.b2(l,U.Bx.CHANGE,(e=>{const t=l.checked;x.setAllVisibleChecked(t)}))),this._register(U.ko(l,U.Bx.CLICK,(e=>{(e.x||e.y)&&u.setFocus()})));const c=U.BC(a,gn(".quick-input-description")),h=U.BC(a,gn(".quick-input-and-message")),d=U.BC(h,gn(".quick-input-filter")),u=this._register(new As(d,this.styles.inputBox,this.styles.toggle));u.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=U.BC(d,gn(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const p=new Es.x(g,{countFormat:(0,E.kg)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),m=U.BC(d,gn(".quick-input-count"));m.setAttribute("aria-live","polite");const f=new Es.x(m,{countFormat:(0,E.kg)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),_=this._register(new li.E(a,{hoverDelegate:this.options.hoverDelegate}));_.domNode.classList.add("quick-input-inline-action-bar");const v=U.BC(a,gn(".quick-input-action")),C=this._register(new bs.$(v,this.styles.button));C.label=(0,E.kg)("ok","OK"),this._register(C.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const b=U.BC(a,gn(".quick-input-action")),S=this._register(new bs.$(b,{...this.styles.button,supportIcons:!0}));S.label=(0,E.kg)("custom","Custom"),this._register(S.onDidClick((e=>{this.onDidCustomEmitter.fire()})));const y=U.BC(h,gn(`#${this.idPrefix}message.quick-input-message`)),w=this._register(new Ts(t,this.styles.progressBar));w.getContainer().classList.add("quick-input-progress");const L=U.BC(t,gn(".quick-input-html-widget"));L.tabIndex=-1;const R=U.BC(t,gn(".quick-input-description")),T=this.idPrefix+"list",x=this._register(this.instantiationService.createInstance(Js,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,T));u.setAttribute("aria-controls",T),this._register(x.onDidChangeFocus((()=>{u.setAttribute("aria-activedescendant",x.getActiveDescendant()??"")}))),this._register(x.onChangedAllVisibleChecked((e=>{l.checked=e}))),this._register(x.onChangedVisibleCount((e=>{p.setCount(e)}))),this._register(x.onChangedCheckedCount((e=>{f.setCount(e)}))),this._register(x.onLeave((()=>{setTimeout((()=>{this.controller&&(u.setFocus(),this.controller instanceof _s&&this.controller.canSelectMany&&x.clearFocus())}),0)})));const k=U.w5(t);return this._register(k),this._register(U.ko(t,U.Bx.FOCUS,(e=>{const t=this.getUI();if(U.QX(e.relatedTarget,t.inputContainer)){const e=t.inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==e&&this.endOfQuickInputBoxContext.set(e)}U.QX(e.relatedTarget,t.container)||(this.inQuickInputContext.set(!0),this.previousFocusElement=U.sb(e.relatedTarget)?e.relatedTarget:void 0)}),!0)),this._register(k.onDidBlur((()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(zi.kF.Blur),this.inQuickInputContext.set(!1),this.endOfQuickInputBoxContext.set(!1),this.previousFocusElement=void 0}))),this._register(u.onKeyDown((e=>{const t=this.getUI().inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==t&&this.endOfQuickInputBoxContext.set(t)}))),this._register(U.ko(t,U.Bx.FOCUS,(e=>{u.setFocus()}))),this._register(U.b2(t,U.Bx.KEY_DOWN,(e=>{if(!U.QX(e.target,L))switch(e.keyCode){case 3:U.fs.stop(e,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:U.fs.stop(e,!0),this.hide(zi.kF.Gesture);break;case 2:if(!e.altKey&&!e.ctrlKey&&!e.metaKey){const i=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(t.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.displayed&&i.push(".monaco-list"),this.getUI().message&&i.push(".quick-input-message a"),this.getUI().widget){if(U.QX(e.target,this.getUI().widget))break;i.push(".quick-input-html-widget")}const s=t.querySelectorAll(i.join(", "));e.shiftKey&&e.target===s[0]?(U.fs.stop(e,!0),x.clearFocus()):!e.shiftKey&&U.QX(e.target,s[s.length-1])&&(U.fs.stop(e,!0),s[0].focus())}break;case 10:e.ctrlKey&&(U.fs.stop(e,!0),this.getUI().list.toggleHover())}}))),this.ui={container:t,styleSheet:i,leftActionBar:n,titleBar:s,title:r,description1:R,description2:c,widget:L,rightActionBar:o,inlineActionBar:_,checkAll:l,inputContainer:h,filterContainer:d,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:m,count:f,okContainer:v,ok:C,message:y,customButtonContainer:b,customButton:S,list:x,progressBar:w,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e),linkOpenerDelegate:e=>this.options.linkOpenerDelegate(e)},this.updateStyles(),this.ui}reparentUI(e){this.ui&&(this._container=e,U.BC(this._container,this.ui.container))}pick(e,t={},i=at.XO.None){return new Promise(((s,n)=>{let r=e=>{r=s,t.onKeyMods?.(o.keyMods),s(e)};if(i.isCancellationRequested)return void r(void 0);const o=this.createQuickPick({useSeparators:!0});let a;const c=[o,o.onDidAccept((()=>{if(o.canSelectMany)r(o.selectedItems.slice()),o.hide();else{const e=o.activeItems[0];e&&(r(e),o.hide())}})),o.onDidChangeActive((e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)})),o.onDidChangeSelection((e=>{if(!o.canSelectMany){const t=e[0];t&&(r(t),o.hide())}})),o.onDidTriggerItemButton((e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{const t=o.items.indexOf(e.item);if(-1!==t){const e=o.items.slice(),i=e.splice(t,1),s=o.activeItems.filter((e=>e!==i[0])),n=o.keepScrollPosition;o.keepScrollPosition=!0,o.items=e,s&&(o.activeItems=s),o.keepScrollPosition=n}}}))),o.onDidTriggerSeparatorButton((e=>t.onDidTriggerSeparatorButton?.(e))),o.onDidChangeValue((e=>{!a||e||1===o.activeItems.length&&o.activeItems[0]===a||(o.activeItems=[a])})),i.onCancellationRequested((()=>{o.hide()})),o.onDidHide((()=>{(0,l.AS)(c),r(void 0)}))];o.title=t.title,t.value&&(o.value=t.value),o.canSelectMany=!!t.canPickMany,o.placeholder=t.placeHolder,o.ignoreFocusOut=!!t.ignoreFocusLost,o.matchOnDescription=!!t.matchOnDescription,o.matchOnDetail=!!t.matchOnDetail,o.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,o.quickNavigate=t.quickNavigate,o.hideInput=!!t.hideInput,o.contextKey=t.contextKey,o.busy=!0,Promise.all([e,t.activeItem]).then((([e,t])=>{a=t,o.busy=!1,o.items=e,o.canSelectMany&&(o.selectedItems=e.filter((e=>"separator"!==e.type&&e.picked))),a&&(o.activeItems=[a])})),o.show(),Promise.resolve(e).then(void 0,(e=>{n(e),o.hide()}))}))}createQuickPick(e={useSeparators:!1}){const t=this.getUI(!0);return new _s(t)}createInputBox(){const e=this.getUI(!0);return new vs(e)}show(e){const t=this.getUI(!0);this.onShowEmitter.fire();const i=this.controller;this.controller=e,i?.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",U.Ln(t.widget),t.rightActionBar.clear(),t.inlineActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(ge.A.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),U.Ln(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;const s=this.options.backKeybindingLabel();ms.tooltip=s?(0,E.kg)("quickInput.backWithKeybinding","Back ({0})",s):(0,E.kg)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus(),this.quickInputTypeContext.set(e.type)}isVisible(){return!!this.ui&&"none"!==this.ui.container.style.display}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.displayed=!!e.list,t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.action.enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.action.enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().inputBox.enabled=e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){const t=this.controller;if(!t)return;t.willHide(e);const i=this.ui?.container,s=i&&!U.nR(i);if(this.controller=null,this.onHideEmitter.fire(),i&&(i.style.display="none"),!s){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=e.parentElement??void 0;e?.offsetParent?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}t.didHide(e)}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,hn.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:s,widgetShadow:n}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e??"",this.ui.container.style.backgroundColor=t??"",this.ui.container.style.color=i??"",this.ui.container.style.border=s?`1px solid ${s}`:"",this.ui.container.style.boxShadow=n?`0 0 8px 2px ${n}`:"",this.ui.list.style(this.styles.list);const r=[];this.styles.pickerGroup.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));const o=r.join("\n");o!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=o)}}};pn=hn=dn([un(1,le),un(2,ae._Y),un(3,ie.fN)],pn);var mn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},fn=function(e,t){return function(i,s){t(i,s,e)}};let _n=class extends Z.lR{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get currentQuickInput(){return this.controller.currentQuickInput}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(Ki))),this._quickAccess}constructor(e,t,i,s,n){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=s,this.configurationService=n,this._onShow=this._register(new Q.vl),this._onHide=this._register(new Q.vl),this.contexts=new Map}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),linkOpenerDelegate:e=>{this.instantiationService.invokeFunction((t=>{t.get(Ue.C).open(e,{allowCommands:!0,fromUserGesture:!0})}))},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(Cs))},s=this._register(this.instantiationService.createInstance(pn,{...i,...t}));return s.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer((t=>{(0,U.zk)(e.activeContainer)===(0,U.zk)(s.container)&&s.layout(t,e.activeContainerOffset.quickPickTop)}))),this._register(e.onDidChangeActiveContainer((()=>{s.isVisible()||s.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop)}))),this._register(s.onShow((()=>{this.resetContextKeys(),this._onShow.fire()}))),this._register(s.onHide((()=>{this.resetContextKeys(),this._onHide.fire()}))),s}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new ie.N1(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),t?.set(!0))}resetContextKeys(){this.contexts.forEach((e=>{e.get()&&e.reset()}))}pick(e,t,i=at.XO.None){return this.controller.pick(e,t,i)}createQuickPick(e={useSeparators:!1}){return this.controller.createQuickPick(e)}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:(0,Ne.GuP)(Ne.ELA),quickInputForeground:(0,Ne.GuP)(Ne.HJZ),quickInputTitleBackground:(0,Ne.GuP)(Ne.er1),widgetBorder:(0,Ne.GuP)(Ne.DSL),widgetShadow:(0,Ne.GuP)(Ne.f9l)},inputBox:wi.ho,toggle:wi.mk,countBadge:wi.m$,button:wi.cv,progressBar:wi.oJ,keybindingLabel:wi.ir,list:(0,wi.t8)({listBackground:Ne.ELA,listFocusBackground:Ne.AlL,listFocusForeground:Ne.nH,listInactiveFocusForeground:Ne.nH,listInactiveSelectionIconForeground:Ne.c7i,listInactiveFocusBackground:Ne.AlL,listFocusOutline:Ne.buw,listInactiveFocusOutline:Ne.buw}),pickerGroup:{pickerGroupBorder:(0,Ne.GuP)(Ne.iwL),pickerGroupForeground:(0,Ne.GuP)(Ne.NBf)}}}};_n=mn([fn(0,ae._Y),fn(1,ie.fN),fn(2,Z.Gy),fn(3,le),fn(4,Me.pG)],_n);var vn=i(6921),Cn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},bn=function(e,t){return function(i,s){t(i,s,e)}};let En=class extends _n{constructor(e,t,i,s,n,r){super(t,i,s,new ue(e.getContainerDomNode(),n),r),this.host=void 0;const o=yn.get(e);if(o){const t=o.widget;this.host={_serviceBrand:void 0,get mainContainer(){return t.getDomNode()},getContainer:()=>t.getDomNode(),whenContainerStylesLoaded(){},get containers(){return[t.getDomNode()]},get activeContainer(){return t.getDomNode()},get mainContainerDimension(){return e.getLayoutInfo()},get activeContainerDimension(){return e.getLayoutInfo()},get onDidLayoutMainContainer(){return e.onDidLayoutChange},get onDidLayoutActiveContainer(){return e.onDidLayoutChange},get onDidLayoutContainer(){return Q.Jh.map(e.onDidLayoutChange,(e=>({container:t.getDomNode(),dimension:e})))},get onDidChangeActiveContainer(){return Q.Jh.None},get onDidAddContainer(){return Q.Jh.None},get mainContainerOffset(){return{top:0,quickPickTop:0}},get activeContainerOffset(){return{top:0,quickPickTop:0}},focus:()=>e.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};En=Cn([bn(1,ae._Y),bn(2,ie.fN),bn(3,Z.Gy),bn(4,g.T),bn(5,Me.pG)],En);let Sn=class{get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(En,e);this.mapEditorToService.set(e,t),(0,vn.P)(e.onDidDispose)((()=>{i.dispose(),this.mapEditorToService.delete(e)}))}return t}get currentQuickInput(){return this.activeService.currentQuickInput}get quickAccess(){return this.activeService.quickAccess}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}pick(e,t,i=at.XO.None){return this.activeService.pick(e,t,i)}createQuickPick(e={useSeparators:!1}){return this.activeService.createQuickPick(e)}createInputBox(){return this.activeService.createInputBox()}};Sn=Cn([bn(0,ae._Y),bn(1,g.T)],Sn);class yn{static{this.ID="editor.controller.quickInput"}static get(e){return e.getContribution(yn.ID)}constructor(e){this.editor=e,this.widget=new wn(this.editor)}dispose(){this.widget.dispose()}}class wn{static{this.ID="editor.contrib.quickInputWidget"}constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return wn.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}(0,u.HW)(yn.ID,yn,4);var Ln=i(10424),Rn=i(24520),Tn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xn=function(e,t){return function(i,s){t(i,s,e)}};let kn=class extends l.jG{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new Q.vl,this._onDidChangeReducedMotion=new Q.vl,this._onDidChangeLinkUnderline=new Q.vl,this._accessibilityModeEnabledContext=Ve.f.bindTo(this._contextKeyService);const s=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(s(),this._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())}))),s(),this._register(this.onDidChangeScreenReaderOptimized((()=>s())));const n=a.G.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=n.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._linkUnderlinesEnabled=this._configurationService.getValue("accessibility.underlineLinks"),this.initReducedMotionListeners(n),this.initLinkUnderlineListeners()}initReducedMotionListeners(e){this._register((0,U.ko)(e,"change",(()=>{this._systemMotionReduced=e.matches,"auto"===this._configMotionReduced&&this._onDidChangeReducedMotion.fire()})));const t=()=>{const e=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",e),this._layoutService.mainContainer.classList.toggle("enable-motion",!e)};t(),this._register(this.onDidChangeReducedMotion((()=>t())))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration((e=>{if(e.affectsConfiguration("accessibility.underlineLinks")){const e=this._configurationService.getValue("accessibility.underlineLinks");this._linkUnderlinesEnabled=e,this._onDidChangeLinkUnderline.fire()}})));const e=()=>{const e=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle("underline-links",e)};e(),this._register(this.onDidChangeLinkUnderlines((()=>e())))}onDidChangeLinkUnderlines(e){return this._onDidChangeLinkUnderline.event(e)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};kn=Tn([xn(0,ie.fN),xn(1,le),xn(2,Me.pG)],kn);var An,Nn=i(60858),In=i(85600),On=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Dn=function(e,t){return function(i,s){t(i,s,e)}};const Mn="application/vnd.code.resources";let Pn=class extends l.jG{static{An=this}constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(oi.nr||oi.c8)&&this.installWebKitWriteTextWorkaround(),this._register(Q.Jh.runAndSubscribe(U.Iv,(({window:e,disposables:t})=>{t.add((0,U.ko)(e.document,"copy",(()=>this.clearResourcesState())))}),{window:a.G,disposables:this._store}))}installWebKitWriteTextWorkaround(){const e=()=>{const e=new m.Zv;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,(0,U.fz)().navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch((async t=>{t instanceof Error&&"NotAllowedError"===t.name&&e.isRejected||this.logService.error(t)}))};this._register(Q.Jh.runAndSubscribe(this.layoutService.onDidAddContainer,(({container:t,disposables:i})=>{i.add((0,U.ko)(t,"click",e)),i.add((0,U.ko)(t,"keydown",e))}),{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.clearResourcesState(),t)this.mapTextToType.set(t,e);else{if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return await(0,U.fz)().navigator.clipboard.writeText(e)}catch(i){console.error(i)}this.fallbackWriteText(e)}}fallbackWriteText(e){const t=(0,U.a)(),i=t.activeElement,s=t.body.appendChild((0,U.$)("textarea",{"aria-hidden":!0}));s.style.height="1px",s.style.width="1px",s.style.position="absolute",s.value=e,s.focus(),s.select(),t.execCommand("copy"),(0,U.sb)(i)&&i.focus(),s.remove()}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await(0,U.fz)().navigator.clipboard.readText()}catch(t){console.error(t)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}static{this.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3}async readResources(){try{const e=await(0,U.fz)().navigator.clipboard.read();for(const t of e)if(t.types.includes(`web ${Mn}`)){const e=await t.getType(`web ${Mn}`);return JSON.parse(await e.text()).map((e=>h.r.from(e)))}}catch(t){}const e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResourcesState(),this.resources}async computeResourcesStateHash(){if(0===this.resources.length)return;const e=await this.readText();return(0,In.tW)(e.substring(0,An.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearInternalState(){this.clearResourcesState()}clearResourcesState(){this.resources=[],this.resourcesStateHash=void 0}};Pn=An=On([Dn(0,le),Dn(1,I.rr)],Pn);var Fn=i(54770),Un=i(42522),Hn=i(4853),Bn=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Wn=function(e,t){return function(i,s){t(i,s,e)}};const Vn="data-keybinding-context";class zn{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t}}class Gn extends zn{static{this.INSTANCE=new Gn}constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}class jn extends zn{static{this._keyPrefix="config."}constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Hn.cB.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration((e=>{if(7===e.source){const e=Array.from(this._values,(([e])=>e));this._values.clear(),i.fire(new qn(e))}else{const t=[];for(const i of e.affectedKeys){const e=`config.${i}`,s=this._values.findSuperstr(e);void 0!==s&&(t.push(...Un.f.map(s,(([e])=>e))),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new qn(t))}}))}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(jn._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(jn._keyPrefix.length),i=this._configurationService.getValue(t);let s;switch(typeof i){case"number":case"boolean":case"string":s=i;break;default:s=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,s),s}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}class Kn{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class Yn{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class qn{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every((t=>e.has(t)))}}class $n{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every((t=>t.allKeysContainedIn(e)))}}class Qn extends l.jG{constructor(e){super(),this._onDidChangeContext=this._register(new Q.fV({merge:e=>new $n(e)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Kn(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Zn(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new Yn(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Yn(e))}getContext(e){return this._isDisposed?Gn.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(Vn)){const t=e.getAttribute(Vn);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))}dispose(){super.dispose(),this._isDisposed=!0}}let Xn=class extends Qn{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0;const t=this._register(new jn(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t)}getContextValuesContainer(e){return this._isDisposed?Gn.INSTANCE:this._contexts.get(e)||Gn.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const t=++this._lastContextId;return this._contexts.set(t,new zn(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};Xn=Bn([Wn(0,Me.pG)],Xn);class Zn extends Qn{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=this._register(new l.HE),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(Vn)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error("Element already has context attribute"+(e?": "+e:""))}this._domNode.setAttribute(Vn,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext((e=>{const t=this._parent.getContextValuesContainer(this._myContextId).value;var i;i=t,e.allKeysContainedIn(new Set(Object.keys(i)))||this._onDidChangeContext.fire(e)}))}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(Vn),super.dispose())}getContextValuesContainer(e){return this._isDisposed?Gn.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}St.w.registerCommand("_setContext",(function(e,t,i){e.get(ie.fN).createKey(String(t),function(e){return(0,p.PI)(e,(e=>"object"===typeof e&&1===e.$mid?h.r.revive(e).toString():e instanceof h.r?e.toString():void 0))}(i))})),St.w.registerCommand({id:"getContextKeyInfo",handler:()=>[...ie.N1.all()].sort(((e,t)=>e.key.localeCompare(t.key))),metadata:{description:(0,E.kg)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),St.w.registerCommand("_generateContextKeyInfo",(function(){const e=[],t=new Set;for(const i of ie.N1.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort(((e,t)=>e.key.localeCompare(t.key))),console.log(JSON.stringify(e,void 0,2))}));var Jn=i(84040);class er{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}}class tr{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),s=this.lookupOrInsertNode(t);i.outgoing.set(s.key,s),s.incoming.set(i.key,i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new er(t,e),this._nodes.set(t,i)),i}isEmpty(){return 0===this._nodes.size}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}\n\t(-> incoming)[${[...i.incoming.keys()].join(", ")}]\n\t(outgoing ->)[${[...i.outgoing.keys()].join(",")}]\n`);return e.join("\n")}findCycleSlow(){for(const[e,t]of this._nodes){const i=new Set([e]),s=this._findCycle(t,i);if(s)return s}}_findCycle(e,t){for(const[i,s]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const e=this._findCycle(s,t);if(e)return e;t.delete(i)}}}var ir=i(58345);class sr extends Error{constructor(e){super("cyclic dependency between services"),this.message=e.findCycleSlow()??`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}}class nr{constructor(e=new ir.a,t=!1,i,s=false){this._services=e,this._strict=t,this._parent=i,this._enableTracing=s,this._isDisposed=!1,this._servicesToMaybeDispose=new Set,this._children=new Set,this._activeInstantiations=new Set,this._services.set(ae._Y,this),this._globalGraph=s?i?._globalGraph??new tr((e=>e)):void 0}dispose(){if(!this._isDisposed){this._isDisposed=!0,(0,l.AS)(this._children),this._children.clear();for(const e of this._servicesToMaybeDispose)(0,l.Xm)(e)&&e.dispose();this._servicesToMaybeDispose.clear()}}_throwIfDisposed(){if(this._isDisposed)throw new Error("InstantiationService has been disposed")}createChild(e,t){this._throwIfDisposed();const i=this,s=new class extends nr{dispose(){i._children.delete(s),super.dispose()}}(e,this._strict,this,this._enableTracing);return this._children.add(s),t?.add(s),s}invokeFunction(e,...t){this._throwIfDisposed();const i=rr.traceInvocation(this._enableTracing,e);let s=!1;try{return e({get:e=>{if(s)throw(0,v.iH)("service accessor is only valid during the invocation of its target method");const t=this._getOrCreateServiceInstance(e,i);if(!t)throw new Error(`[invokeFunction] unknown service '${e}'`);return t}},...t)}finally{s=!0,i.stop()}}createInstance(e,...t){let i,s;return this._throwIfDisposed(),e instanceof Jn.d?(i=rr.traceCreation(this._enableTracing,e.ctor),s=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=rr.traceCreation(this._enableTracing,e),s=this._createInstance(e,t,i)),i.stop(),s}_createInstance(e,t=[],i){const s=ae._$.getServiceDependencies(e).sort(((e,t)=>e.index-t.index)),n=[];for(const o of s){const t=this._getOrCreateServiceInstance(o.id,i);t||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${o.id}.`,!1),n.push(t)}const r=s.length>0?s[0].index:t.length;if(t.length!==r){console.trace(`[createInstance] First service dependency of ${e.name} at position ${r+1} conflicts with ${t.length} static arguments`);const i=r-t.length;t=i>0?t.concat(new Array(i)):t.slice(0,r)}return Reflect.construct(e,t.concat(n))}_setCreatedServiceInstance(e,t){if(this._services.get(e)instanceof Jn.d)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setCreatedServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){const t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));const i=this._getServiceInstanceOrDescriptor(e);return i instanceof Jn.d?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){const s=new tr((e=>e.id.toString()));let n=0;const r=[{id:e,desc:t,_trace:i}],o=new Set;for(;r.length;){const t=r.pop();if(!o.has(String(t.id))){if(o.add(String(t.id)),s.lookupOrInsertNode(t),n++>1e3)throw new sr(s);for(const i of ae._$.getServiceDependencies(t.desc.ctor)){const n=this._getServiceInstanceOrDescriptor(i.id);if(n||this._throwIfStrict(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`,!0),this._globalGraph?.insertEdge(String(t.id),String(i.id)),n instanceof Jn.d){const e={id:i.id,desc:n,_trace:t._trace.branch(i.id,!0)};s.insertEdge(t,e),r.push(e)}}}}for(;;){const e=s.roots();if(0===e.length){if(!s.isEmpty())throw new sr(s);break}for(const{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof Jn.d){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setCreatedServiceInstance(t.id,e)}s.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],s,n){if(this._services.get(e)instanceof Jn.d)return this._createServiceInstance(e,t,i,s,n,this._servicesToMaybeDispose);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,s,n);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t,i=[],s,n,r){if(s){const s=new nr(void 0,this._strict,this,this._enableTracing);s._globalGraphImplicitDependency=String(e);const o=new Map,a=new m.F6((()=>{const e=s._createInstance(t,i,n);for(const[t,i]of o){const s=e[t];if("function"===typeof s)for(const t of i)t.disposable=s.apply(e,t.listener)}return o.clear(),r.add(e),e}));return new Proxy(Object.create(null),{get(e,t){if(!a.isInitialized&&"string"===typeof t&&(t.startsWith("onDid")||t.startsWith("onWill"))){let e=o.get(t);e||(e=new X.w,o.set(t,e));return(i,s,n)=>{if(a.isInitialized)return a.value[t](i,s,n);{const t={listener:[i,s,n],disposable:void 0},r=e.push(t);return(0,l.s)((()=>{r(),t.disposable?.dispose()}))}}}if(t in e)return e[t];const i=a.value;let s=i[t];return"function"!==typeof s||(s=s.bind(i),e[t]=s),s},set:(e,t,i)=>(a.value[t]=i,!0),getPrototypeOf:e=>t.prototype})}{const e=this._createInstance(t,i,n);return r.add(e),e}}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw new Error(e)}}class rr{static{this.all=new Set}static{this._None=new class extends rr{constructor(){super(0,null)}stop(){}branch(){return this}}}static traceInvocation(e,t){return e?new rr(2,t.name||(new Error).stack.split("\n").slice(3,4).join("\n")):rr._None}static traceCreation(e,t){return e?new rr(1,t.name):rr._None}static{this._totals=0}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}branch(e,t){const i=new rr(3,e.toString());return this._dep.push([e,t,i]),i}stop(){const e=Date.now()-this._start;rr._totals+=e;let t=!1;const i=[`${1===this.type?"CREATE":"CALL"} ${this.name}`,`${function e(i,s){const n=[],r=new Array(i+1).join("\t");for(const[o,a,l]of s._dep)if(a&&l){t=!0,n.push(`${r}CREATES -> ${o}`);const s=e(i+1,l);s&&n.push(s)}else n.push(`${r}uses -> ${o}`);return n.join("\n")}(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${rr._totals.toFixed(2)}ms)`];(e>2||t)&&rr.all.add(i.join("\n"))}}var or=i(75147);const ar=new Set([C.ny.inMemory,C.ny.vscodeSourceControl,C.ny.walkThrough,C.ny.walkThroughSnippet,C.ny.vscodeChatCodeBlock]);class lr{constructor(){this._byResource=new yt.fT,this._byOwner=new Map}set(e,t,i){let s=this._byResource.get(e);s||(s=new Map,this._byResource.set(e,s)),s.set(t,i);let n=this._byOwner.get(t);n||(n=new yt.fT,this._byOwner.set(t,n)),n.set(e,i)}get(e,t){const i=this._byResource.get(e);return i?.get(t)}delete(e,t){let i=!1,s=!1;const n=this._byResource.get(e);n&&(i=n.delete(t));const r=this._byOwner.get(t);if(r&&(s=r.delete(e)),i!==s)throw new Error("illegal state");return i&&s}values(e){return"string"===typeof e?this._byOwner.get(e)?.values()??Un.f.empty():h.r.isUri(e)?this._byResource.get(e)?.values()??Un.f.empty():Un.f.map(Un.f.concat(...this._byOwner.values()),(e=>e[1]))}}class cr{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new yt.fT,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const i=this._resourceStats(t);this._add(i),this._data.set(t,i)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(ar.has(e.scheme))return t;for(const{severity:i}of this._service.read({resource:e}))i===or.cj.Error?t.errors+=1:i===or.cj.Warning?t.warnings+=1:i===or.cj.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class hr{constructor(){this._onMarkerChanged=new Q.uI({delay:0,merge:hr._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new lr,this._stats=new cr(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if((0,b.Ct)(i)){this._data.delete(t,e)&&this._onMarkerChanged.fire([t])}else{const s=[];for(const n of i){const i=hr._toMarker(e,t,n);i&&s.push(i)}this._data.set(t,e,s),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:s,severity:n,message:r,source:o,startLineNumber:a,startColumn:l,endLineNumber:c,endColumn:h,relatedInformation:d,tags:u}=i;if(r)return a=a>0?a:1,l=l>0?l:1,c=c>=a?c:a,h=h>0?h:l,{resource:t,owner:e,code:s,severity:n,message:r,source:o,startLineNumber:a,startColumn:l,endLineNumber:c,endColumn:h,relatedInformation:d,tags:u}}changeAll(e,t){const i=[],s=this._data.values(e);if(s)for(const n of s){const t=Un.f.first(n);t&&(i.push(t.resource),this._data.delete(t.resource,e))}if((0,b.EI)(t)){const s=new yt.fT;for(const{resource:n,marker:r}of t){const t=hr._toMarker(e,n,r);if(!t)continue;const o=s.get(n);o?o.push(t):(s.set(n,[t]),i.push(n))}for(const[t,i]of s)this._data.set(t,e,i)}i.length>0&&this._onMarkerChanged.fire(i)}read(e=Object.create(null)){let{owner:t,resource:i,severities:s,take:n}=e;if((!n||n<0)&&(n=-1),t&&i){const e=this._data.get(i,t);if(e){const t=[];for(const i of e)if(hr._accept(i,s)){const e=t.push(i);if(n>0&&e===n)break}return t}return[]}if(t||i){const e=this._data.values(i??t),r=[];for(const t of e)for(const e of t)if(hr._accept(e,s)){const t=r.push(e);if(n>0&&t===n)return r}return r}{const e=[];for(const t of this._data.values())for(const i of t)if(hr._accept(i,s)){const t=e.push(i);if(n>0&&t===n)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){const t=new yt.fT;for(const i of e)for(const e of i)t.set(e,!0);return Array.from(t.keys())}}var dr=i(9711);class ur extends l.jG{get configurationModel(){return this._configurationModel}constructor(e){super(),this.logService=e,this._configurationModel=Tt.createEmptyModel(this.logService)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=Tt.createEmptyModel(this.logService);const e=Lt.O.as(wt.Fd.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const i=this.getConfigurationDefaultOverrides();for(const s of e){const e=i[s],n=t[s];void 0!==e?this._configurationModel.setValue(s,e):n?this._configurationModel.setValue(s,n.default):this._configurationModel.removeValue(s)}}}var gr=i(87213);class pr extends l.jG{constructor(e,t=[]){super(),this.logger=new I.Dk([e,...t]),this._register(e.onDidChangeLogLevel((e=>this.setLevel(e))))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}warn(e,...t){this.logger.warn(e,...t)}error(e,...t){this.logger.error(e,...t)}}var mr=i(72466),fr=i(97035),_r=i(44432);var vr=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Cr=function(e,t){return function(i,s){t(i,s,e)}};class br{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new Q.vl}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let Er=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new l.BO(new br(t))):Promise.reject(new Error("Model not found"))}};Er=vr([Cr(0,A.IModelService)],Er);class Sr{static{this.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}}}show(){return Sr.NULL_PROGRESS_RUNNER}async showWhile(e,t){await e}}class yr{static{this.NO_OP=new me.Kz}info(e){return this.notify({severity:ge.A.Info,message:e})}warn(e){return this.notify({severity:ge.A.Warning,message:e})}error(e){return this.notify({severity:ge.A.Error,message:e})}notify(e){switch(e.severity){case ge.A.Error:console.error(e.message);break;case ge.A.Warning:console.warn(e.message);break;default:console.log(e.message)}return yr.NO_OP}prompt(e,t,i,s){return yr.NO_OP}status(e,t){return l.jG.None}}let wr=class{constructor(e){this._onWillExecuteCommand=new Q.vl,this._onDidExecuteCommand=new Q.vl,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=St.w.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const s=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(s)}catch(s){return Promise.reject(s)}}};wr=vr([Cr(0,ae._Y)],wr);let Lr=class extends Ht{constructor(e,t,i,s,n,r){super(e,t,i,s,n),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const o=e=>{const t=new l.Cm;t.add(U.ko(e,U.Bx.KEY_DOWN,(e=>{const t=new Xe.Z(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(U.ko(e,U.Bx.KEY_UP,(e=>{const t=new Xe.Z(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new Rr(e,t))},a=e=>{for(let t=0;t<this._domNodeListeners.length;t++){const i=this._domNodeListeners[t];i.domNode===e&&(this._domNodeListeners.splice(t,1),i.dispose())}},c=e=>{e.getOption(61)||o(e.getContainerDomNode())};this._register(r.onCodeEditorAdd(c)),this._register(r.onCodeEditorRemove((e=>{e.getOption(61)||a(e.getContainerDomNode())}))),r.listCodeEditors().forEach(c);const h=e=>{o(e.getContainerDomNode())};this._register(r.onDiffEditorAdd(h)),this._register(r.onDiffEditorRemove((e=>{a(e.getContainerDomNode())}))),r.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,i,s){return(0,l.qE)(St.w.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:s}]))}addDynamicKeybindings(e){const t=e.map((e=>({keybinding:(0,ft.Zv)(e.keybinding,We.OS),command:e.command??null,commandArgs:e.commandArgs,when:e.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1})));return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),(0,l.s)((()=>{for(let e=0;e<this._dynamicKeybindings.length;e++)if(this._dynamicKeybindings[e]===t[0])return this._dynamicKeybindings.splice(e,t.length),void this.updateResolver()}))}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(Wt.f.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Mt(e,t,(e=>this._log(e)))}return this._cachedResolver}_documentHasFocus(){return a.G.document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let s=0;for(const n of e){const e=n.when||void 0,r=n.keybinding;if(r){const o=Yt.resolveKeybinding(r,We.OS);for(const r of o)i[s++]=new Vt(r,n.command,n.commandArgs,e,t,null,!1)}else i[s++]=new Vt(void 0,n.command,n.commandArgs,e,t,null,!1)}return i}resolveKeyboardEvent(e){const t=new ft.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new Yt([t],We.OS)}};Lr=vr([Cr(0,ie.fN),Cr(1,St.d),Cr(2,Qt.k),Cr(3,me.Ot),Cr(4,I.rr),Cr(5,g.T)],Lr);class Rr extends l.jG{constructor(e,t){super(),this.domNode=e,this._register(t)}}function Tr(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof h.r)}let xr=class{constructor(e){this.logService=e,this._onDidChangeConfiguration=new Q.vl,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const t=new ur(e);this._configuration=new At(t.reload(),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),Tt.createEmptyModel(e),new yt.fT,Tt.createEmptyModel(e),new yt.fT,e),t.dispose()}getValue(e,t){const i="string"===typeof e?e:void 0,s=Tr(e)?e:Tr(t)?t:{};return this._configuration.getValue(i,s,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const s of e){const[e,t]=s;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),i.push(e))}if(i.length>0){const e=new Nt({keys:i,overrides:[]},t,this._configuration,void 0,this.logService);e.source=8,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,i,s){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}};xr=vr([Cr(0,I.rr)],xr);let kr=class{constructor(e,t,i){this.configurationService=e,this.modelService=t,this.languageService=i,this._onDidChangeConfiguration=new Q.vl,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)})}))}getValue(e,t,i){const s=bt.y.isIPosition(t)?t:null,n=s?"string"===typeof i?i:void 0:"string"===typeof t?t:void 0,r=e?this.getLanguage(e,s):void 0;return"undefined"===typeof n?this.configurationService.getValue({resource:e,overrideIdentifier:r}):this.configurationService.getValue(n,{resource:e,overrideIdentifier:r})}getLanguage(e,t){const i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};kr=vr([Cr(0,Me.pG),Cr(1,A.IModelService),Cr(2,Ui.L)],kr);let Ar=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&"string"===typeof i&&"auto"!==i?i:We.j9||We.zx?"\n":"\r\n"}};Ar=vr([Cr(0,Me.pG)],Ar);class Nr{static{this.SCHEME="inmemory"}constructor(){const e=h.r.from({scheme:Nr.SCHEME,authority:"model",path:"/"});this.workspace={id:Xt.cn,folders:[new Xt.mX({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Nr.SCHEME?this.workspace.folders[0]:null}}function Ir(e,t,i){if(!t)return;if(!(e instanceof xr))return;const s=[];Object.keys(t).forEach((e=>{(0,vt.vf)(e)&&s.push([`editor.${e}`,t[e]]),i&&(0,vt.Gn)(e)&&s.push([`diffEditor.${e}`,t[e]])})),s.length>0&&e.updateValues(s)}let Or=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,t){const i=Array.isArray(e)?e:_t.jN.convert(e),s=new Map;for(const o of i){if(!(o instanceof _t.cw))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(o.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof o.versionId&&e.getVersionId()!==o.versionId)throw new Error("bad state - model changed in the meantime");let t=s.get(e);t||(t=[],s.set(e,t)),t.push(Ct.k.replaceMove(T.Q.lift(o.textEdit.range),o.textEdit.text))}let n=0,r=0;for(const[o,a]of s)o.pushStackElement(),o.pushEditOperations([],a,(()=>[])),o.pushStackElement(),r+=1,n+=a.length;return{ariaSummary:c.GP(Zt.tu.bulkEditServiceSummary,n,r),isApplied:n>0}}};Or=vr([Cr(0,A.IModelService)],Or);let Dr=class extends ot{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,i)}};Dr=vr([Cr(0,le),Cr(1,g.T)],Dr);class Mr extends ti.LanguageService{constructor(){super()}}let Pr=class extends xi{constructor(e,t,i,s,n,r){super(e,t,i,s,n,r),this.configure({blockMouse:!1})}};Pr=vr([Cr(0,Qt.k),Cr(1,me.Ot),Cr(2,Oe.l),Cr(3,De.b),Cr(4,ni.ez),Cr(5,ie.fN)],Pr);const Fr={amdModuleId:"vs/editor/common/services/editorSimpleWorker",esmModuleLocation:void 0,label:"editorWorkerService"};let Ur=class extends j{constructor(e,t,i,s,n){super(Fr,e,t,i,s,n)}};Ur=vr([Cr(0,A.IModelService),Cr(1,N.ITextResourceConfigurationService),Cr(2,I.rr),Cr(3,x.JZ),Cr(4,D.ILanguageFeaturesService)],Ur);var Hr;(0,se.v)(I.rr,class extends pr{constructor(){super(new I.Cr)}},0),(0,se.v)(Me.pG,xr,0),(0,se.v)(N.ITextResourceConfigurationService,kr,0),(0,se.v)(N.ITextResourcePropertiesService,Ar,0),(0,se.v)(Xt.VR,Nr,0),(0,se.v)(qt.L,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,Jt.P8)(e)}},0),(0,se.v)(Qt.k,class{publicLog2(){}},0),(0,se.v)(pe.X,class{async confirm(e){return{confirmed:this.doConfirm(e.message,e.detail),checkboxChecked:!1}}doConfirm(e,t){let i=e;return t&&(i=i+"\n\n"+t),a.G.confirm(i)}async prompt(e){let t;if(this.doConfirm(e.message,e.detail)){const i=[...e.buttons??[]];e.cancelButton&&"string"!==typeof e.cancelButton&&"boolean"!==typeof e.cancelButton&&i.push(e.cancelButton),t=await(i[0]?.run({checkboxChecked:!1}))}return{result:t}}async error(e,t){await this.prompt({type:ge.A.Error,message:e,detail:t})}},0),(0,se.v)(fr.k,class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}},0),(0,se.v)(me.Ot,yr,0),(0,se.v)(or.DR,hr,0),(0,se.v)(Ui.L,Mr,0),(0,se.v)(Rn.L,Ln.Sx,0),(0,se.v)(A.IModelService,Wi.ModelService,0),(0,se.v)(Bi.IMarkerDecorationsService,Hi.MarkerDecorationsService,0),(0,se.v)(ie.fN,Xn,0),(0,se.v)($t.G5,class{withProgress(e,t,i){return t({report:()=>{}})}},0),(0,se.v)($t.N8,Sr,0),(0,se.v)(dr.CS,dr.pc,0),(0,se.v)(Fi.IEditorWorkerService,Ur,0),(0,se.v)(_t.nu,Or,0),(0,se.v)(ei.L,class{constructor(){this._neverEmitter=new Q.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},0),(0,se.v)(Et.ITextModelService,Er,0),(0,se.v)(Ve.j,kn,0),(0,se.v)(Ns.PE,Ns.aG,0),(0,se.v)(St.d,wr,0),(0,se.v)(De.b,Lr,0),(0,se.v)(zi.GK,Sn,0),(0,se.v)(Oe.l,Dr,0),(0,se.v)(Ue.C,Pi,0),(0,se.v)(Fn.h,Pn,0),(0,se.v)(Oe.Z,Pr,0),(0,se.v)(ni.ez,Nn.$,0),(0,se.v)(gr.Nt,class{async playSignal(e,t){}},0),(0,se.v)(_r.ITreeSitterParserService,class{getParseResult(e){}},0),function(e){const t=new ir.a;for(const[o,a]of(0,se.N)())t.set(o,a);const i=new nr(t,!0);t.set(ae._Y,i),e.get=function(e){s||r({});const n=t.get(e);if(!n)throw new Error("Missing service "+e);return n instanceof Jn.d?i.invokeFunction((t=>t.get(e))):n};let s=!1;const n=new Q.vl;function r(e){if(s)return i;s=!0;for(const[i,s]of(0,se.N)())t.get(i)||t.set(i,s);for(const i in e)if(e.hasOwnProperty(i)){const s=(0,ae.u1)(i);t.get(s)instanceof Jn.d&&t.set(s,e[i])}const r=(0,mr.T)();for(const t of r)try{i.createInstance(t)}catch(o){(0,v.dz)(o)}return n.fire(),i}e.initialize=r,e.withServices=function(e){if(s)return e();const t=new l.Cm,i=t.add(n.event((()=>{i.dispose(),t.add(e())})));return t}}(Hr||(Hr={}));class Br extends ${constructor(e,t){super({amdModuleId:Fr.amdModuleId,esmModuleLocation:Fr.esmModuleLocation,label:t.label},t.keepIdleModels||!1,e),this._foreignModuleId=t.moduleId,this._foreignModuleCreateData=t.createData||null,this._foreignModuleHost=t.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?(0,p.V0)(this._foreignModuleHost):[];return e.$loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.$fmr(t,i),s=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(const e of t)n[e]=s(e,i);return n}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this.workerWithSyncedResources(e).then((e=>this.getProxy()))}}var Wr=i(79027),Vr=i(74196),zr=i(23452),Gr=i(62083),jr=i(83941),Kr=i(20788),Yr=i(16223),qr=i(35015),$r=i(87469),Qr=i(35600),Xr=i(92896);function Zr(e){return!function(e){return Array.isArray(e)}(e)}function Jr(e){return"string"===typeof e}function eo(e){return!Jr(e)}function to(e){return!e}function io(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function so(e){return e.replace(/[&<>'"_]/g,"-")}function no(e,t){return new Error(`${e.languageId}: ${t}`)}function ro(e,t,i,s,n){let r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,o,a,l,c,h,d,u,g){return to(a)?to(l)?!to(c)&&c<s.length?io(e,s[c]):!to(d)&&e&&"string"===typeof e[d]?e[d]:(null===r&&(r=n.split("."),r.unshift(n)),!to(h)&&h<r.length?io(e,r[h]):""):io(e,i):"$"}))}function oo(e,t){let i=t;for(;i&&i.length>0;){const t=e.tokenizer[i];if(t)return t;const s=i.lastIndexOf(".");i=s<0?null:i.substr(0,s)}return null}var ao,lo=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},co=function(e,t){return function(i,s){t(i,s,e)}};class ho{static{this._INSTANCE=new ho(5)}static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new uo(e,t);let i=uo.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let s=this._entries[i];return s||(s=new uo(e,t),this._entries[i]=s,s)}}class uo{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return uo._equals(this,e)}push(e){return ho.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return ho.create(this.parent,e)}}class go{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new go(this.languageId,this.state)}}class po{static{this._INSTANCE=new po(5)}static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t)return new mo(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new mo(e,t);const i=uo.getStackElementId(e);let s=this._entries[i];return s||(s=new mo(e,null),this._entries[i]=s,s)}}class mo{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:po.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof mo&&(!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData)))}}class fo{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new Gr.ou(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,s){const n=i.languageId,r=i.state,o=Gr.dG.get(n);if(!o)return this.enterLanguage(n),this.emit(s,""),r;const a=o.tokenize(e,t,r);if(0!==s)for(const l of a.tokens)this._tokens.push(new Gr.ou(l.offset+s,l.type,l.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new Gr.$M(this._tokens,e)}}class _o{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const s=null!==e?e.length:0,n=t.length,r=null!==i?i.length:0;if(0===s&&0===n&&0===r)return new Uint32Array(0);if(0===s&&0===n)return i;if(0===n&&0===r)return e;const o=new Uint32Array(s+n+r);null!==e&&o.set(e);for(let a=0;a<n;a++)o[s+a]=t[a];return null!==i&&o.set(i,s+n),o}nestedLanguageTokenize(e,t,i,s){const n=i.languageId,r=i.state,o=Gr.dG.get(n);if(!o)return this.enterLanguage(n),this.emit(s,""),r;const a=o.tokenizeEncoded(e,t,r);if(0!==s)for(let l=0,c=a.tokens.length;l<c;l+=2)a.tokens[l]+=s;return this._prependTokens=_o._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState}finalize(e){return new Gr.rY(_o._merge(this._prependTokens,this._tokens,null),e)}}let vo=ao=class extends l.jG{constructor(e,t,i,s,n){super(),this._configurationService=n,this._languageService=e,this._standaloneThemeService=t,this._languageId=i,this._lexer=s,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let r=!1;this._register(Gr.dG.onDidChange((e=>{if(r)return;let t=!1;for(let i=0,s=e.changedLanguages.length;i<s;i++){const s=e.changedLanguages[i];if(this._embeddedLanguages[s]){t=!0;break}}t&&(r=!0,Gr.dG.handleChange([this._languageId]),r=!1)}))),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})))}getLoadStatus(){const e=[];for(const t in this._embeddedLanguages){const i=Gr.dG.get(t);if(i){if(i instanceof ao){const t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise)}}else Gr.dG.isResolved(t)||e.push(Gr.dG.getOrCreate(t))}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((e=>{}))}}getInitialState(){const e=ho.create(null,this._lexer.start);return po.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,Kr.$H)(this._languageId,i);const s=new fo,n=this._tokenize(e,t,i,s);return s.finalize(n)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,Kr.Lh)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const s=new _o(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),n=this._tokenize(e,t,i,s);return s.finalize(n)}_tokenize(e,t,i,s){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,s):this._myTokenize(e,t,i,0,s)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=oo(this._lexer,t.stack.state),!i))throw no(this._lexer,"tokenizer state is not defined: "+t.stack.state);let s=-1,n=!1;for(const r of i){if(!eo(r.action)||"@pop"!==r.action.nextEmbedded)continue;n=!0;let i=r.resolveRegex(t.stack.state);const o=i.source;if("^(?:"===o.substr(0,4)&&")"===o.substr(o.length-1,1)){const e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(o.substr(4,o.length-5),e)}const a=e.search(i);-1===a||0!==a&&r.matchOnlyAtLineStart||(-1===s||a<s)&&(s=a)}if(!n)throw no(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return s}_nestedTokenize(e,t,i,s,n){const r=this._findLeavingNestedLanguageOffset(e,i);if(-1===r){const r=n.nestedLanguageTokenize(e,t,i.embeddedLanguageData,s);return po.create(i.stack,new go(i.embeddedLanguageData.languageId,r))}const o=e.substring(0,r);o.length>0&&n.nestedLanguageTokenize(o,!1,i.embeddedLanguageData,s);const a=e.substring(r);return this._myTokenize(a,t,i,s+r,n)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,s,n){n.enterLanguage(this._languageId);const r=e.length,o=t&&this._lexer.includeLF?e+"\n":e,a=o.length;let l=i.embeddedLanguageData,c=i.stack,h=0,d=null,u=!0;for(;u||h<a;){const i=h,m=c.depth,f=d?d.groups.length:0,_=c.state;let v=null,C=null,b=null,E=null,S=null;if(d){v=d.matches;const e=d.groups.shift();C=e.matched,b=e.action,E=d.rule,0===d.groups.length&&(d=null)}else{if(!u&&h>=a)break;u=!1;let e=this._lexer.tokenizer[_];if(!e&&(e=oo(this._lexer,_),!e))throw no(this._lexer,"tokenizer state is not defined: "+_);const t=o.substr(h);for(const i of e)if((0===h||!i.matchOnlyAtLineStart)&&(v=t.match(i.resolveRegex(_)),v)){C=v[0],b=i.action;break}}if(v||(v=[""],C=""),b||(h<a&&(v=[o.charAt(h)],C=v[0]),b=this._lexer.defaultToken),null===C)break;for(h+=C.length;Zr(b)&&eo(b)&&b.test;)b=b.test(C,v,_,h===a);let y=null;if("string"===typeof b||Array.isArray(b))y=b;else if(b.group)y=b.group;else if(null!==b.token&&void 0!==b.token){if(y=b.tokenSubst?ro(this._lexer,b.token,C,v,_):b.token,b.nextEmbedded)if("@pop"===b.nextEmbedded){if(!l)throw no(this._lexer,"cannot pop embedded language if not inside one");l=null}else{if(l)throw no(this._lexer,"cannot enter embedded language from within an embedded language");S=ro(this._lexer,b.nextEmbedded,C,v,_)}if(b.goBack&&(h=Math.max(0,h-b.goBack)),b.switchTo&&"string"===typeof b.switchTo){let e=ro(this._lexer,b.switchTo,C,v,_);if("@"===e[0]&&(e=e.substr(1)),!oo(this._lexer,e))throw no(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(E));c=c.switchTo(e)}else{if(b.transform&&"function"===typeof b.transform)throw no(this._lexer,"action.transform not supported");if(b.next)if("@push"===b.next){if(c.depth>=this._lexer.maxStack)throw no(this._lexer,"maximum tokenizer stack size reached: ["+c.state+","+c.parent.state+",...]");c=c.push(_)}else if("@pop"===b.next){if(c.depth<=1)throw no(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(E));c=c.pop()}else if("@popall"===b.next)c=c.popall();else{let e=ro(this._lexer,b.next,C,v,_);if("@"===e[0]&&(e=e.substr(1)),!oo(this._lexer,e))throw no(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(E));c=c.push(e)}}b.log&&"string"===typeof b.log&&(g=this._lexer,p=this._lexer.languageId+": "+ro(this._lexer,b.log,C,v,_),console.log(`${g.languageId}: ${p}`))}if(null===y)throw no(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(E));const w=i=>{const r=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,o=this._getNestedEmbeddedLanguageData(r);if(h<a){const i=e.substr(h);return this._nestedTokenize(i,t,po.create(c,o),s+h,n)}return po.create(c,o)};if(Array.isArray(y)){if(d&&d.groups.length>0)throw no(this._lexer,"groups cannot be nested: "+this._safeRuleName(E));if(v.length!==y.length+1)throw no(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(E));let e=0;for(let t=1;t<v.length;t++)e+=v[t].length;if(e!==C.length)throw no(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(E));d={rule:E,matches:v,groups:[]};for(let t=0;t<y.length;t++)d.groups[t]={action:y[t],matched:v[t+1]};h-=C.length}else{{if("@rematch"===y&&(h-=C.length,C="",v=null,y="",null!==S))return w(S);if(0===C.length){if(0===a||m!==c.depth||_!==c.state||(d?d.groups.length:0)!==f)continue;throw no(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(E))}let e=null;if(Jr(y)&&0===y.indexOf("@brackets")){const t=y.substr(9),i=Co(this._lexer,C);if(!i)throw no(this._lexer,"@brackets token returned but no bracket defined as: "+C);e=so(i.token+t)}else{e=so(""===y?"":y+this._lexer.tokenPostfix)}i<r&&n.emit(i+s,e)}if(null!==S)return w(S)}}var g,p;return po.create(c,l)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new go(e,Kr.r3);e!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(e),Gr.dG.getOrCreate(e),this._embeddedLanguages[e]=!0);const t=Gr.dG.get(e);return new go(e,t?t.getInitialState():Kr.r3)}};function Co(e,t){if(!t)return null;t=io(e,t);const i=e.brackets;for(const s of i){if(s.open===t)return{token:s.token,bracketType:1};if(s.close===t)return{token:s.token,bracketType:-1}}return null}vo=ao=lo([co(4,Me.pG)],vo);const bo=(0,_.H)("standaloneColorizer",{createHTML:e=>e});class Eo{static colorizeElement(e,t,i,s){const n=(s=s||{}).theme||"vs",r=s.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();const o=t.getLanguageIdByMimeType(r)||r;e.setTheme(n);const a=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+n;return this.colorize(t,a||"",o,s).then((e=>{const t=bo?.createHTML(e)??e;i.innerHTML=t}),(e=>console.error(e)))}static async colorize(e,t,i,s){const n=e.languageIdCodec;let r=4;s&&"number"===typeof s.tabSize&&(r=s.tabSize),c.LU(t)&&(t=t.substr(1));const o=c.uz(t);if(!e.isRegisteredLanguageId(i))return So(o,r,n);const a=await Gr.dG.getOrCreate(i);return a?function(e,t,i,s){return new Promise(((n,r)=>{const o=()=>{const a=function(e,t,i,s){let n=[],r=i.getInitialState();for(let o=0,a=e.length;o<a;o++){const a=e[o],l=i.tokenizeEncoded(a,!0,r);$r.f.convertToEndOffset(l.tokens,a.length);const c=new $r.f(l.tokens,a,s),h=Xr.qL.isBasicASCII(a,!0),d=Xr.qL.containsRTL(a,h,!0),u=(0,Qr.Md)(new Qr.zL(!1,!0,a,!1,h,d,0,c.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));n=n.concat(u.html),n.push("<br/>"),r=l.endState}return n.join("")}(e,t,i,s);if(i instanceof vo){const e=i.getLoadStatus();if(!1===e.loaded)return void e.promise.then(o,r)}n(a)};o()}))}(o,r,a,n):So(o,r,n)}static colorizeLine(e,t,i,s,n=4){const r=Xr.qL.isBasicASCII(e,t),o=Xr.qL.containsRTL(e,r,i);return(0,Qr.Md)(new Qr.zL(!1,!0,e,!1,r,o,0,s,[],n,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const s=e.getLineContent(t);e.tokenization.forceTokenization(t);const n=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(s,e.mightContainNonBasicASCII(),e.mightContainRTL(),n,i)}}function So(e,t,i){let s=[];const n=new Uint32Array(2);n[0]=0,n[1]=33587200;for(let r=0,o=e.length;r<o;r++){const o=e[r];n[0]=o.length;const a=new $r.f(n,o,i),l=Xr.qL.isBasicASCII(o,!0),c=Xr.qL.containsRTL(o,l,!0),h=(0,Qr.Md)(new Qr.zL(!1,!0,o,!1,l,c,0,a,[],t,0,0,0,0,-1,"none",!1,!1,null));s=s.concat(h.html),s.push("<br/>")}return s.join("")}var yo=i(29611),wo=i(4360),Lo=i(42904),Ro=i(48196),To=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xo=function(e,t){return function(i,s){t(i,s,e)}};let ko=0,Ao=!1;let No=class extends n.x{constructor(e,t,i,s,n,r,o,l,c,h,d,u,g){const p={...t};p.ariaLabel=p.ariaLabel||Zt.vp.editorViewAccessibleLabel,super(e,p,{},i,s,n,r,c,h,d,u,g),this._standaloneKeybindingService=l instanceof Lr?l:null,function(e){if(!e){if(Ao)return;Ao=!0}ze.vr(e||a.G.document.body)}(p.ariaContainerElement),(0,Lo.MW)(((e,t)=>i.createInstance(Ie.fO,e,t,{}))),(0,Ro.e)(o)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const s="DYNAMIC_"+ ++ko,n=ie.M$.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(s,e,t,n),s}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),l.jG.None;const t=e.id,i=e.label,s=ie.M$.and(ie.M$.equals("editorId",this.getId()),ie.M$.deserialize(e.precondition)),n=e.keybindings,r=ie.M$.and(s,ie.M$.deserialize(e.keybindingContext)),o=e.contextMenuGroupId||null,a=e.contextMenuOrder||0,c=(t,...i)=>Promise.resolve(e.run(this,...i)),h=new l.Cm,d=this.getId()+":"+t;if(h.add(St.w.registerCommand(d,c)),o){const e={command:{id:d,title:i},when:s,group:o,order:a};h.add(ni.ZG.appendMenuItem(ni.D8.EditorContext,e))}if(Array.isArray(n))for(const l of n)h.add(this._standaloneKeybindingService.addDynamicKeybinding(d,l,c,r));const u=new yo.f(d,i,i,void 0,s,((...t)=>Promise.resolve(e.run(this,...t))),this._contextKeyService);return this._actions.set(t,u),h.add((0,l.s)((()=>{this._actions.delete(t)}))),h}_triggerCommand(e,t){if(this._codeEditorService instanceof oe)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};No=To([xo(2,ae._Y),xo(3,g.T),xo(4,St.d),xo(5,ie.fN),xo(6,Ie.TN),xo(7,De.b),xo(8,Z.Gy),xo(9,me.Ot),xo(10,Ve.j),xo(11,x.JZ),xo(12,D.ILanguageFeaturesService)],No);let Io=class extends No{constructor(e,t,i,s,n,r,o,a,l,c,h,d,u,g,p,m){const f={...t};Ir(h,f,!1);const _=l.registerEditorContainer(e);"string"===typeof f.theme&&l.setTheme(f.theme),"undefined"!==typeof f.autoDetectHighContrast&&l.setAutoDetectHighContrast(Boolean(f.autoDetectHighContrast));const v=f.model;let C;if(delete f.model,super(e,f,i,s,n,r,o,a,l,c,d,p,m),this._configurationService=h,this._standaloneThemeService=l,this._register(_),"undefined"===typeof v){const e=g.getLanguageIdByMimeType(f.language)||f.language||jr.vH;C=Do(u,g,f.value||"",e,void 0),this._ownsModel=!0}else C=v,this._ownsModel=!1;if(this._attachModel(C),C){const e={oldModelUrl:null,newModelUrl:C.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){Ir(this._configurationService,e,!1),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Io=To([xo(2,ae._Y),xo(3,g.T),xo(4,St.d),xo(5,ie.fN),xo(6,Ie.TN),xo(7,De.b),xo(8,Rn.L),xo(9,me.Ot),xo(10,Me.pG),xo(11,Ve.j),xo(12,A.IModelService),xo(13,Ui.L),xo(14,x.JZ),xo(15,D.ILanguageFeaturesService)],Io);let Oo=class extends wo.T{constructor(e,t,i,s,n,r,o,a,l,c,h,d){const u={...t};Ir(a,u,!0);const g=r.registerEditorContainer(e);"string"===typeof u.theme&&r.setTheme(u.theme),"undefined"!==typeof u.autoDetectHighContrast&&r.setAutoDetectHighContrast(Boolean(u.autoDetectHighContrast)),super(e,u,{},s,i,n,d,c),this._configurationService=a,this._standaloneThemeService=r,this._register(g)}dispose(){super.dispose()}updateOptions(e){Ir(this._configurationService,e,!0),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(No,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function Do(e,t,i,s,n){if(i=i||"",!s){const s=i.indexOf("\n");let r=i;return-1!==s&&(r=i.substring(0,s)),Mo(e,i,t.createByFilepathOrFirstLine(n||null,r),n)}return Mo(e,i,t.createById(s),n)}function Mo(e,t,i,s){return e.createModel(t,i,s)}Oo=To([xo(2,ae._Y),xo(3,ie.fN),xo(4,g.T),xo(5,Rn.L),xo(6,me.Ot),xo(7,Me.pG),xo(8,Oe.Z),xo(9,$t.N8),xo(10,Fn.h),xo(11,gr.Nt)],Oo);var Po=i(41127),Fo=i(46041),Uo=i(49154),Ho=i(49353),Bo=i(92368),Wo=i(74444),Vo=i(75326),zo=i(60002),Go=i(38844),jo=i(65644),Ko=i(25791),Yo=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},qo=function(e,t){return function(i,s){t(i,s,e)}};class $o{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let Qo=class extends l.jG{constructor(e,t,i,s,n){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=s,this._viewModel=(0,Uo.FY)(this,void 0),this._collapsed=(0,Bs.un)(this,(e=>this._viewModel.read(e)?.collapsed.read(e))),this._editorContentHeight=(0,Uo.FY)(this,500),this.contentHeight=(0,Bs.un)(this,(e=>(this._collapsed.read(e)?0:this._editorContentHeight.read(e))+this._outerEditorHeight)),this._modifiedContentWidth=(0,Uo.FY)(this,0),this._modifiedWidth=(0,Uo.FY)(this,0),this._originalContentWidth=(0,Uo.FY)(this,0),this._originalWidth=(0,Uo.FY)(this,0),this.maxScroll=(0,Bs.un)(this,(e=>{const t=this._modifiedContentWidth.read(e)-this._modifiedWidth.read(e),i=this._originalContentWidth.read(e)-this._originalWidth.read(e);return t>i?{maxScroll:t,width:this._modifiedWidth.read(e)}:{maxScroll:i,width:this._originalWidth.read(e)}})),this._elements=(0,U.h)("div.multiDiffEntry",[(0,U.h)("div.header@header",[(0,U.h)("div.header-content",[(0,U.h)("div.collapse-button@collapseButton"),(0,U.h)("div.file-path",[(0,U.h)("div.title.modified.show-file-icons@primaryPath",[]),(0,U.h)("div.status.deleted@status",["R"]),(0,U.h)("div.title.original.show-file-icons@secondaryPath",[])]),(0,U.h)("div.actions@actions")])]),(0,U.h)("div.editorParent",[(0,U.h)("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(wo.T,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=(0,Go.Ud)(this.editor.getModifiedEditor()).isFocused,this.isOriginalFocused=(0,Go.Ud)(this.editor.getOriginalEditor()).isFocused,this.isFocused=(0,Bs.un)(this,(e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e))),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=this._register(new l.Cm),this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const r=new bs.$(this._elements.collapseButton,{});this._register((0,Bs.fm)((e=>{r.element.className="",r.icon=this._collapsed.read(e)?di.W.chevronRight:di.W.chevronDown}))),this._register(r.onDidClick((()=>{this._viewModel.get()?.collapsed.set(!this._collapsed.get(),void 0)}))),this._register((0,Bs.fm)((e=>{this._elements.editor.style.display=this._collapsed.read(e)?"none":"block"}))),this._register(this.editor.getModifiedEditor().onDidLayoutChange((e=>{const t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0)}))),this._register(this.editor.getOriginalEditor().onDidLayoutChange((e=>{const t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0)}))),this._register(this.editor.onDidContentSizeChange((e=>{(0,Uo.YY)((t=>{this._editorContentHeight.set(e.contentHeight,t),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),t),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),t)}))}))),this._register(this.editor.getOriginalEditor().onDidScrollChange((e=>{if(this._isSettingScrollTop)return;if(!e.scrollTopChanged||!this._data)return;const t=e.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(t)}))),this._register((0,Bs.fm)((e=>{const t=this._viewModel.read(e)?.isActive.read(e);this._elements.root.classList.toggle("active",t)}))),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._contextKeyService=this._register(n.createScoped(this._elements.actions));const o=this._register(this._instantiationService.createChild(new ir.a([ie.fN,this._contextKeyService])));this._register(o.createInstance(jo.m,this._elements.actions,ni.D8.MultiDiffEditorFileToolbar,{actionRunner:this._register(new Ko.I((()=>this._viewModel.get()?.modifiedUri))),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("navigation")},actionViewItemProvider:(e,t)=>(0,si.rN)(o,e,t)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){function t(e){return{...e,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}if(this._data=e,!e)return void(0,Uo.YY)((e=>{this._viewModel.set(void 0,e),this.editor.setDiffModel(null,e),this._dataStore.clear()}));const i=e.viewModel.documentDiffItem;if((0,Uo.YY)((s=>{this._resourceLabel?.setUri(e.viewModel.modifiedUri??e.viewModel.originalUri,{strikethrough:void 0===e.viewModel.modifiedUri});let n=!1,r=!1,o=!1,a="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(a="R",n=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(a="A",o=!0):(a="D",r=!0),this._elements.status.classList.toggle("renamed",n),this._elements.status.classList.toggle("deleted",r),this._elements.status.classList.toggle("added",o),this._elements.status.innerText=a,this._resourceLabel2?.setUri(n?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,s),this.editor.setDiffModel(e.viewModel.diffEditorViewModelRef,s),this.editor.updateOptions(t(i.options??{}))})),i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange((()=>{this.editor.updateOptions(t(i.options??{}))}))),e.viewModel.isAlive.recomputeInitiallyAndOnChange(this._dataStore,(e=>{e||this.setData(void 0)})),e.viewModel.documentDiffItem.contextKeys)for(const[s,n]of Object.entries(e.viewModel.documentDiffItem.contextKeys))this._contextKeyService.createKey(s,n)}render(e,t,i,s){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";const n=e.length-this._headerHeight,r=Math.max(0,Math.min(s.start-e.start,n));this._elements.header.style.transform=`translateY(${r}px)`,(0,Uo.YY)((i=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})}));try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",r>0||i>0),this._elements.header.classList.toggle("collapsed",r===n)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};Qo=Yo([qo(3,ae._Y),qo(4,ie.fN)],Qo);class Xo{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){let t;if(0===this._unused.size)t=this._create(e),this._itemData.set(t,e);else{const i=[...this._unused.values()];t=i.find((t=>this._itemData.get(t).getId()===e.getId()))??i[0],this._unused.delete(t),this._itemData.set(t,e),t.setData(e)}return this._used.add(t),{object:t,dispose:()=>{this._used.delete(t),this._unused.size>5?t.dispose():this._unused.add(t)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var Zo=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Jo=function(e,t){return function(i,s){t(i,s,e)}};let ea=class extends l.jG{constructor(e,t,i,s,n,r){super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=s,this._parentContextKeyService=n,this._parentInstantiationService=r,this._scrollableElements=(0,U.h)("div.scrollContent",[(0,U.h)("div@content",{style:{overflow:"hidden"}}),(0,U.h)("div.monaco-editor@overflowWidgetsDomNode",{})]),this._scrollable=this._register(new Ho.yE({forceIntegerValues:!1,scheduleAtNextAnimationFrame:e=>(0,U.PG)((0,U.zk)(this._element),e),smoothScrollDuration:100})),this._scrollableElement=this._register(new hi.oO(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this._elements=(0,U.h)("div.monaco-component.multiDiffEditor",{},[(0,U.h)("div",{},[this._scrollableElement.getDomNode()]),(0,U.h)("div.placeholder@placeholder",{},[(0,U.h)("div",[(0,E.kg)("noChangedFiles","No Changed Files")])])]),this._sizeObserver=this._register(new Bo.pN(this._element,void 0)),this._objectPool=this._register(new Xo((e=>{const t=this._instantiationService.createInstance(Qo,this._scrollableElements.content,this._scrollableElements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return t.setData(e),t}))),this.scrollTop=(0,Bs.y0)(this,this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollTop)),this.scrollLeft=(0,Bs.y0)(this,this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollLeft)),this._viewItemsInfo=(0,Bs.rm)(this,((e,t)=>{const i=this._viewModel.read(e);if(!i)return{items:[],getItem:e=>{throw new v.D7}};const s=i.items.read(e),n=new Map;return{items:s.map((e=>{const i=t.add(new ta(e,this._objectPool,this.scrollLeft,(e=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+e})}))),s=this._lastDocStates?.[i.getKey()];return s&&(0,Uo.Rn)((e=>{i.setViewState(s,e)})),n.set(e,i),i})),getItem:e=>n.get(e)}})),this._viewItems=this._viewItemsInfo.map(this,(e=>e.items)),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,((e,t)=>e.reduce(((e,i)=>e+i.contentHeight.read(t)+this._spaceBetweenPx),0))),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new ir.a([ie.fN,this._contextKeyService]))),this._lastDocStates={},this._contextKeyService.createKey(zo.R.inMultiDiffEditor.key,!0),this._register((0,Bs.yC)(((e,t)=>{const i=this._viewModel.read(e);if(i&&i.contextKeys)for(const[s,n]of Object.entries(i.contextKeys)){const e=this._contextKeyService.createKey(s,void 0);e.set(n),t.add((0,l.s)((()=>e.reset())))}})));const o=this._parentContextKeyService.createKey(zo.R.multiDiffEditorAllCollapsed.key,!1);this._register((0,Bs.fm)((e=>{const t=this._viewModel.read(e);if(t){const i=t.items.read(e).every((t=>t.collapsed.read(e)));o.set(i)}}))),this._register((0,Bs.fm)((e=>{const t=this._dimension.read(e);this._sizeObserver.observe(t)}))),this._register((0,Bs.fm)((e=>{const t=this._viewItems.read(e);this._elements.placeholder.classList.toggle("visible",0===t.length)}))),this._scrollableElements.content.style.position="relative",this._register((0,Bs.fm)((e=>{const t=this._sizeObserver.height.read(e);this._scrollableElements.root.style.height=`${t}px`;const i=this._totalHeight.read(e);this._scrollableElements.content.style.height=`${i}px`;const s=this._sizeObserver.width.read(e);let n=s;const r=this._viewItems.read(e),o=(0,Fo.Cn)(r,(0,b.VE)((t=>t.maxScroll.read(e).maxScroll),b.U9));if(o){n=s+o.maxScroll.read(e).maxScroll}this._scrollableElement.setScrollDimensions({width:s,height:t,scrollHeight:i,scrollWidth:n})}))),e.replaceChildren(this._elements.root),this._register((0,l.s)((()=>{e.replaceChildren()}))),this._register(this._register((0,Bs.fm)((e=>{(0,Uo.YY)((t=>{this.render(e)}))}))))}render(e){const t=this.scrollTop.read(e);let i=0,s=0,n=0;const r=this._sizeObserver.height.read(e),o=Wo.L.ofStartAndLength(t,r),a=this._sizeObserver.width.read(e);for(const l of this._viewItems.read(e)){const c=l.contentHeight.read(e),h=Math.min(c,r),d=Wo.L.ofStartAndLength(s,h),u=Wo.L.ofStartAndLength(n,c);if(u.isBefore(o))i-=c-h,l.hide();else if(u.isAfter(o))l.hide();else{const e=Math.max(0,Math.min(o.start-u.start,c-h));i-=e;const s=Wo.L.ofStartAndLength(t+i,r);l.render(d,e,a,s)}s+=h+this._spaceBetweenPx,n+=c+this._spaceBetweenPx}this._scrollableElements.content.style.transform=`translateY(${-(t+i)}px)`}};ea=Zo([Jo(4,ie.fN),Jo(5,ae._Y)],ea);class ta extends l.jG{constructor(e,t,i,s){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=i,this._deltaScrollVertical=s,this._templateRef=this._register((0,Uo.X2)(this,void 0)),this.contentHeight=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object.contentHeight?.read(e)??this.viewModel.lastTemplateData.read(e).contentHeight)),this.maxScroll=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object.maxScroll.read(e)??{maxScroll:0,scrollWidth:0})),this.template=(0,Bs.un)(this,(e=>this._templateRef.read(e)?.object)),this._isHidden=(0,Bs.FY)(this,!1),this._isFocused=(0,Bs.un)(this,(e=>this.template.read(e)?.isFocused.read(e)??!1)),this.viewModel.setIsFocused(this._isFocused,void 0),this._register((0,Bs.fm)((e=>{const t=this._scrollLeft.read(e);this._templateRef.read(e)?.object.setScrollLeft(t)}))),this._register((0,Bs.fm)((e=>{const t=this._templateRef.read(e);if(!t)return;if(!this._isHidden.read(e))return;t.object.isFocused.read(e)||this._clear()})))}dispose(){this._clear(),super.dispose()}toString(){return`VirtualViewItem(${this.viewModel.documentDiffItem.modified?.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const i=this.viewModel.lastTemplateData.get(),s=e.selections?.map(Vo.L.liftSelection);this.viewModel.lastTemplateData.set({...i,selections:s},t);const n=this._templateRef.get();n&&s&&n.object.editor.setSelections(s)}_updateTemplateData(e){const t=this._templateRef.get();t&&this.viewModel.lastTemplateData.set({contentHeight:t.object.contentHeight.get(),selections:t.object.editor.getSelections()??void 0},e)}_clear(){const e=this._templateRef.get();e&&(0,Uo.Rn)((t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)}))}hide(){this._isHidden.set(!0,void 0)}render(e,t,i,s){this._isHidden.set(!1,void 0);let n=this._templateRef.get();if(!n){n=this._objectPool.getUnusedObj(new $o(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(n,void 0);const e=this.viewModel.lastTemplateData.get().selections;e&&n.object.editor.setSelections(e)}n.object.render(e,i,t,s)}}(0,Ne.x1A)("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},(0,E.kg)("multiDiffEditor.headerBackground","The background color of the diff editor's header")),(0,Ne.x1A)("multiDiffEditor.background",Ne.YtV,(0,E.kg)("multiDiffEditor.background","The background color of the multi file diff editor")),(0,Ne.x1A)("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},(0,E.kg)("multiDiffEditor.border","The border color of the multi file diff editor"));var ia=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},sa=function(e,t){return function(i,s){t(i,s,e)}};let na=class extends l.jG{constructor(e,t,i){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=i,this._dimension=(0,Bs.FY)(this,void 0),this._viewModel=(0,Bs.FY)(this,void 0),this._widgetImpl=(0,Bs.rm)(this,((e,t)=>((0,Po.b)(Qo,e),t.add(this._instantiationService.createInstance((0,Po.b)(ea,e),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory))))),this._register((0,Bs.OI)(this._widgetImpl))}};function ra(e,t,i){return Hr.initialize(i||{}).createInstance(Io,e,t)}function oa(e){return Hr.get(g.T).onCodeEditorAdd((t=>{e(t)}))}function aa(e){return Hr.get(g.T).onDiffEditorAdd((t=>{e(t)}))}function la(){return Hr.get(g.T).listCodeEditors()}function ca(){return Hr.get(g.T).listDiffEditors()}function ha(e,t,i){return Hr.initialize(i||{}).createInstance(Oo,e,t)}function da(e,t){const i=Hr.initialize(t||{});return new na(e,{},i)}function ua(e){if("string"!==typeof e.id||"function"!==typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return St.w.registerCommand(e.id,e.run)}function ga(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=ie.M$.deserialize(e.precondition),i=new l.Cm;if(i.add(St.w.registerCommand(e.id,((i,...s)=>u.DX.runEditorCommand(i,s,t,((t,i,s)=>Promise.resolve(e.run(i,...s))))))),e.contextMenuGroupId){const s={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add(ni.ZG.appendMenuItem(ni.D8.EditorContext,s))}if(Array.isArray(e.keybindings)){const s=Hr.get(De.b);if(s instanceof Lr){const n=ie.M$.and(t,ie.M$.deserialize(e.keybindingContext));i.add(s.addDynamicKeybindings(e.keybindings.map((t=>({keybinding:t,command:e.id,when:n})))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return i}function pa(e){return ma([e])}function ma(e){const t=Hr.get(De.b);return t instanceof Lr?t.addDynamicKeybindings(e.map((e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:ie.M$.deserialize(e.when)})))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),l.jG.None)}function fa(e,t,i){const s=Hr.get(Ui.L),n=s.getLanguageIdByMimeType(t)||t;return Do(Hr.get(A.IModelService),s,e,n,i)}function _a(e,t){const i=Hr.get(Ui.L),s=i.getLanguageIdByMimeType(t)||t||jr.vH;e.setLanguage(i.createById(s))}function va(e,t,i){if(e){Hr.get(or.DR).changeOne(t,e.uri,i)}}function Ca(e){Hr.get(or.DR).changeAll(e,[])}function ba(e){return Hr.get(or.DR).read(e)}function Ea(e){return Hr.get(or.DR).onMarkerChanged(e)}function Sa(e){return Hr.get(A.IModelService).getModel(e)}function ya(){return Hr.get(A.IModelService).getModels()}function wa(e){return Hr.get(A.IModelService).onModelAdded(e)}function La(e){return Hr.get(A.IModelService).onModelRemoved(e)}function Ra(e){return Hr.get(A.IModelService).onModelLanguageChanged((t=>{e({model:t.model,oldLanguage:t.oldLanguageId})}))}function Ta(e){return function(e,t){return new Br(e,t)}(Hr.get(A.IModelService),e)}function xa(e,t){const i=Hr.get(Ui.L),s=Hr.get(Rn.L);return Eo.colorizeElement(s,i,e,t).then((()=>{s.registerEditorContainer(e)}))}function ka(e,t,i){const s=Hr.get(Ui.L);return Hr.get(Rn.L).registerEditorContainer(a.G.document.body),Eo.colorize(s,e,t,i)}function Aa(e,t,i=4){return Hr.get(Rn.L).registerEditorContainer(a.G.document.body),Eo.colorizeModelLine(e,t,i)}function Na(e,t){Gr.dG.getOrCreate(t);const i=function(e){const t=Gr.dG.get(e);return t||{getInitialState:()=>Kr.r3,tokenize:(t,i,s)=>(0,Kr.$H)(e,s)}}(t),s=(0,c.uz)(e),n=[];let r=i.getInitialState();for(let o=0,a=s.length;o<a;o++){const e=s[o],t=i.tokenize(e,!0,r);n[o]=t.tokens,r=t.endState}return n}function Ia(e,t){Hr.get(Rn.L).defineTheme(e,t)}function Oa(e){Hr.get(Rn.L).setTheme(e)}function Da(){d.T.clearAllFontInfos()}function Ma(e,t){return St.w.registerCommand({id:e,handler:t})}function Pa(e){return Hr.get(Ue.C).registerOpener({open:async t=>("string"===typeof t&&(t=h.r.parse(t)),e.open(t))})}function Fa(e){return Hr.get(g.T).registerCodeEditorOpenHandler((async(t,i,s)=>{if(!i)return null;const n=t.options?.selection;let r;return n&&"number"===typeof n.endLineNumber&&"number"===typeof n.endColumn?r=n:n&&(r={lineNumber:n.startLineNumber,column:n.startColumn}),await e.openCodeEditor(i,t.resource,r)?i:null}))}na=ia([sa(2,ae._Y)],na);var Ua=i(47661);function Ha(e,t){return"boolean"===typeof e?e:t}function Ba(e,t){return"string"===typeof e?e:t}function Wa(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const i=function(e){const t={};for(const i of e)t[i]=!0;return t}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function Va(e,t,i){t=t.replace(/@@/g,"\x01");let s,n=0;do{s=!1,t=t.replace(/@(\w+)/g,(function(i,n){s=!0;let r="";if("string"===typeof e[n])r=e[n];else{if(!(e[n]&&e[n]instanceof RegExp))throw void 0===e[n]?no(e,"language definition does not contain attribute '"+n+"', used at: "+t):no(e,"attribute reference '"+n+"' must be a string, used at: "+t);r=e[n].source}return to(r)?"":"(?:"+r+")"})),n++}while(s&&n<5);t=t.replace(/\x01/g,"@");const r=(e.ignoreCase?"i":"")+(e.unicode?"u":"");if(i){if(t.match(/\$[sS](\d\d?)/g)){let i=null,s=null;return n=>(s&&i===n||(i=n,s=new RegExp(function(e,t,i){let s=null;return t.replace(/\$[sS](\d\d?)/g,(function(t,n){return null===s&&(s=i.split("."),s.unshift(i)),!to(n)&&n<s.length?io(e,s[n]):""}))}(e,t,n),r)),s)}}return new RegExp(t,r)}function za(e,t,i,s){let n=-1,r=i,o=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);o&&(o[3]&&(n=parseInt(o[3]),o[2]&&(n+=100)),r=o[4]);let a,l="~",c=r;if(r&&0!==r.length?/^\w*$/.test(c)?l="==":(o=r.match(/^(@|!@|~|!~|==|!=)(.*)$/),o&&(l=o[1],c=o[2])):(l="!=",c=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(c))if("@"===l||"!@"===l){const i=e[c];if(!i)throw no(e,"the @ match target '"+c+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const i of t)if(!e(i))return!1;return!0}((function(e){return"string"===typeof e}),i))throw no(e,"the @ match target '"+c+"' must be an array of strings, in rule: "+t);const s=Wa(i,e.ignoreCase);a=function(e){return"@"===l?s(e):!s(e)}}else if("~"===l||"!~"===l)if(c.indexOf("$")<0){const t=Va(e,"^"+c+"$",!1);a=function(e){return"~"===l?t.test(e):!t.test(e)}}else a=function(t,i,s,n){return Va(e,"^"+ro(e,c,i,s,n)+"$",!1).test(t)};else if(c.indexOf("$")<0){const t=io(e,c);a=function(e){return"=="===l?e===t:e!==t}}else{const t=io(e,c);a=function(i,s,n,r,o){const a=ro(e,t,s,n,r);return"=="===l?i===a:i!==a}}else{const t=Wa(c.split("|"),e.ignoreCase);a=function(e){return"~"===l?t(e):!t(e)}}return-1===n?{name:i,value:s,test:function(e,t,i,s){return a(e,e,t,i,s)}}:{name:i,value:s,test:function(e,t,i,s){const r=function(e,t,i,s){if(s<0)return e;if(s<t.length)return t[s];if(s>=100){s-=100;const e=i.split(".");if(e.unshift(i),s<e.length)return e[s]}return null}(e,t,i,n);return a(r||"",e,t,i,s)}}}function Ga(e,t,i){if(i){if("string"===typeof i)return i;if(i.token||""===i.token){if("string"!==typeof i.token)throw no(e,"a 'token' attribute must be of type string, in rule: "+t);{const s={token:i.token};if(i.token.indexOf("$")>=0&&(s.tokenSubst=!0),"string"===typeof i.bracket)if("@open"===i.bracket)s.bracket=1;else{if("@close"!==i.bracket)throw no(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);s.bracket=-1}if(i.next){if("string"!==typeof i.next)throw no(e,"the next state must be a string value in rule: "+t);{let n=i.next;if(!/^(@pop|@push|@popall)$/.test(n)&&("@"===n[0]&&(n=n.substr(1)),n.indexOf("$")<0&&!function(e,t){let i=t;for(;i&&i.length>0;){if(e.stateNames[i])return!0;const t=i.lastIndexOf(".");i=t<0?null:i.substr(0,t)}return!1}(e,ro(e,n,"",[],""))))throw no(e,"the next state '"+i.next+"' is not defined in rule: "+t);s.next=n}}return"number"===typeof i.goBack&&(s.goBack=i.goBack),"string"===typeof i.switchTo&&(s.switchTo=i.switchTo),"string"===typeof i.log&&(s.log=i.log),"string"===typeof i.nextEmbedded&&(s.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),s}}if(Array.isArray(i)){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=Ga(e,t,i[n]);return{group:s}}if(i.cases){const s=[];for(const r in i.cases)if(i.cases.hasOwnProperty(r)){const n=Ga(e,t,i.cases[r]);"@default"===r||"@"===r||""===r?s.push({test:void 0,value:n,name:r}):"@eos"===r?s.push({test:function(e,t,i,s){return s},value:n,name:r}):s.push(za(e,t,r,n))}const n=e.defaultToken;return{test:function(e,t,i,r){for(const n of s){if(!n.test||n.test(e,t,i,r))return n.value}return n}}}throw no(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}class ja{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let i;if("string"===typeof t)i=t;else{if(!(t instanceof RegExp))throw no(e,"rules must start with a match string or regular expression: "+this.name);i=t.source}this.matchOnlyAtLineStart=i.length>0&&"^"===i[0],this.name=this.name+": "+i,this.regex=Va(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")",!0)}setAction(e,t){this.action=Ga(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}function Ka(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");const i={languageId:e,includeLF:Ha(t.includeLF,!1),noThrow:!1,maxStack:100,start:"string"===typeof t.start?t.start:null,ignoreCase:Ha(t.ignoreCase,!1),unicode:Ha(t.unicode,!1),tokenPostfix:Ba(t.tokenPostfix,"."+e),defaultToken:Ba(t.defaultToken,"source"),usesEmbedded:!1,stateNames:{},tokenizer:{},brackets:[]},s=t;function n(e,r,o){for(const a of o){let o=a.include;if(o){if("string"!==typeof o)throw no(i,"an 'include' attribute must be a string at: "+e);if("@"===o[0]&&(o=o.substr(1)),!t.tokenizer[o])throw no(i,"include target '"+o+"' is not defined at: "+e);n(e+"."+o,r,t.tokenizer[o])}else{const t=new ja(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(s,a[0]),a.length>=3)if("string"===typeof a[1])t.setAction(s,{token:a[1],next:a[2]});else{if("object"!==typeof a[1])throw no(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=a[1];e.next=a[2],t.setAction(s,e)}}else t.setAction(s,a[1]);else{if(!a.regex)throw no(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"===typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=Ha(a.matchOnlyAtLineStart,!1)),t.setRegex(s,a.regex),t.setAction(s,a.action)}r.push(t)}}}if(s.languageId=e,s.includeLF=i.includeLF,s.ignoreCase=i.ignoreCase,s.unicode=i.unicode,s.noThrow=i.noThrow,s.usesEmbedded=i.usesEmbedded,s.stateNames=t.tokenizer,s.defaultToken=i.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw no(i,"a language definition must define the 'tokenizer' attribute as an object");i.tokenizer=[];for(const o in t.tokenizer)if(t.tokenizer.hasOwnProperty(o)){i.start||(i.start=o);const e=t.tokenizer[o];i.tokenizer[o]=new Array,n("tokenizer."+o,i.tokenizer[o],e)}if(i.usesEmbedded=s.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw no(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const r=[];for(const o of t.brackets){let e=o;if(e&&Array.isArray(e)&&3===e.length&&(e={token:e[2],open:e[0],close:e[1]}),e.open===e.close)throw no(i,"open and close brackets in a 'brackets' attribute must be different: "+e.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof e.open||"string"!==typeof e.token||"string"!==typeof e.close)throw no(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");r.push({token:e.token+i.tokenPostfix,open:io(i,e.open),close:io(i,e.close)})}return i.brackets=r,i.noThrow=!0,i}function Ya(e){jr.W6.registerLanguage(e)}function qa(){let e=[];return e=e.concat(jr.W6.getLanguages()),e}function $a(e){return Hr.get(Ui.L).languageIdCodec.encodeLanguageId(e)}function Qa(e,t){return Hr.withServices((()=>{const i=Hr.get(Ui.L).onDidRequestRichLanguageFeatures((s=>{s===e&&(i.dispose(),t())}));return i}))}function Xa(e,t){return Hr.withServices((()=>{const i=Hr.get(Ui.L).onDidRequestBasicLanguageFeatures((s=>{s===e&&(i.dispose(),t())}));return i}))}function Za(e,t){if(!Hr.get(Ui.L).isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);return Hr.get(x.JZ).register(e,t,100)}class Ja{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if("function"===typeof this._actual.tokenize)return el.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const s=this._actual.tokenizeEncoded(e,i);return new Gr.rY(s.tokens,s.endState)}}class el{constructor(e,t,i,s){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=s}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let s=0;for(let n=0,r=e.length;n<r;n++){const r=e[n];let o=r.startIndex;0===n?o=0:o<s&&(o=s),i[n]=new Gr.ou(o,r.scopes,t),s=o}return i}static adaptTokenize(e,t,i,s){const n=t.tokenize(i,s),r=el._toClassicTokens(n.tokens,e);let o;return o=n.endState.equals(s)?s:n.endState,new Gr.$M(r,o)}tokenize(e,t,i){return el.adaptTokenize(this._languageId,this._actual,e,i)}_toBinaryTokens(e,t){const i=e.encodeLanguageId(this._languageId),s=this._standaloneThemeService.getColorTheme().tokenTheme,n=[];let r=0,o=0;for(let l=0,c=t.length;l<c;l++){const e=t[l],a=1024|s.match(i,e.scopes);if(r>0&&n[r-1]===a)continue;let c=e.startIndex;0===l?c=0:c<o&&(c=o),n[r++]=c,n[r++]=a,o=c}const a=new Uint32Array(r);for(let l=0;l<r;l++)a[l]=n[l];return a}tokenizeEncoded(e,t,i){const s=this._actual.tokenize(e,i),n=this._toBinaryTokens(this._languageService.languageIdCodec,s.tokens);let r;return r=s.endState.equals(i)?i:s.endState,new Gr.rY(n,r)}}function tl(e){return e&&"function"===typeof e.then}function il(e){const t=Hr.get(Rn.L);if(e){const i=[null];for(let t=1,s=e.length;t<s;t++)i[t]=Ua.Q1.fromHex(e[t]);t.setColorMapOverride(i)}else t.setColorMapOverride(null)}function sl(e,t){return function(e){return"tokenizeEncoded"in e}(t)?new Ja(e,t):new el(e,t,Hr.get(Ui.L),Hr.get(Rn.L))}function nl(e,t){const i=new Gr.v_((async()=>{const i=await Promise.resolve(t.create());return i?"function"===typeof i.getInitialState?sl(e,i):new vo(Hr.get(Ui.L),Hr.get(Rn.L),e,Ka(e,i),Hr.get(Me.pG)):null}));return Gr.dG.registerFactory(e,i)}function rl(e,t){if(!Hr.get(Ui.L).isRegisteredLanguageId(e))throw new Error(`Cannot set tokens provider for unknown language ${e}`);return tl(t)?nl(e,{create:()=>t}):Gr.dG.register(e,sl(e,t))}function ol(e,t){return tl(t)?nl(e,{create:()=>t}):Gr.dG.register(e,(t=>new vo(Hr.get(Ui.L),Hr.get(Rn.L),e,Ka(e,t),Hr.get(Me.pG)))(t))}function al(e,t){return Hr.get(D.ILanguageFeaturesService).referenceProvider.register(e,t)}function ll(e,t){return Hr.get(D.ILanguageFeaturesService).renameProvider.register(e,t)}function cl(e,t){return Hr.get(D.ILanguageFeaturesService).newSymbolNamesProvider.register(e,t)}function hl(e,t){return Hr.get(D.ILanguageFeaturesService).signatureHelpProvider.register(e,t)}function dl(e,t){return Hr.get(D.ILanguageFeaturesService).hoverProvider.register(e,{provideHover:async(e,i,s,n)=>{const r=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,s,n)).then((e=>{if(e)return!e.range&&r&&(e.range=new T.Q(i.lineNumber,r.startColumn,i.lineNumber,r.endColumn)),e.range||(e.range=new T.Q(i.lineNumber,i.column,i.lineNumber,i.column)),e}))}})}function ul(e,t){return Hr.get(D.ILanguageFeaturesService).documentSymbolProvider.register(e,t)}function gl(e,t){return Hr.get(D.ILanguageFeaturesService).documentHighlightProvider.register(e,t)}function pl(e,t){return Hr.get(D.ILanguageFeaturesService).linkedEditingRangeProvider.register(e,t)}function ml(e,t){return Hr.get(D.ILanguageFeaturesService).definitionProvider.register(e,t)}function fl(e,t){return Hr.get(D.ILanguageFeaturesService).implementationProvider.register(e,t)}function _l(e,t){return Hr.get(D.ILanguageFeaturesService).typeDefinitionProvider.register(e,t)}function vl(e,t){return Hr.get(D.ILanguageFeaturesService).codeLensProvider.register(e,t)}function Cl(e,t,i){return Hr.get(D.ILanguageFeaturesService).codeActionProvider.register(e,{providedCodeActionKinds:i?.providedCodeActionKinds,documentation:i?.documentation,provideCodeActions:(e,i,s,n)=>{const r=Hr.get(or.DR).read({resource:e.uri}).filter((e=>T.Q.areIntersectingOrTouching(e,i)));return t.provideCodeActions(e,i,{markers:r,only:s.only,trigger:s.trigger},n)},resolveCodeAction:t.resolveCodeAction})}function bl(e,t){return Hr.get(D.ILanguageFeaturesService).documentFormattingEditProvider.register(e,t)}function El(e,t){return Hr.get(D.ILanguageFeaturesService).documentRangeFormattingEditProvider.register(e,t)}function Sl(e,t){return Hr.get(D.ILanguageFeaturesService).onTypeFormattingEditProvider.register(e,t)}function yl(e,t){return Hr.get(D.ILanguageFeaturesService).linkProvider.register(e,t)}function wl(e,t){return Hr.get(D.ILanguageFeaturesService).completionProvider.register(e,t)}function Ll(e,t){return Hr.get(D.ILanguageFeaturesService).colorProvider.register(e,t)}function Rl(e,t){return Hr.get(D.ILanguageFeaturesService).foldingRangeProvider.register(e,t)}function Tl(e,t){return Hr.get(D.ILanguageFeaturesService).declarationProvider.register(e,t)}function xl(e,t){return Hr.get(D.ILanguageFeaturesService).selectionRangeProvider.register(e,t)}function kl(e,t){return Hr.get(D.ILanguageFeaturesService).documentSemanticTokensProvider.register(e,t)}function Al(e,t){return Hr.get(D.ILanguageFeaturesService).documentRangeSemanticTokensProvider.register(e,t)}function Nl(e,t){return Hr.get(D.ILanguageFeaturesService).inlineCompletionsProvider.register(e,t)}function Il(e,t){return Hr.get(D.ILanguageFeaturesService).inlineEditProvider.register(e,t)}function Ol(e,t){return Hr.get(D.ILanguageFeaturesService).inlayHintsProvider.register(e,t)}var Dl=i(49079);r.qB.wrappingIndent.defaultValue=0,r.qB.glyphMargin.defaultValue=!1,r.qB.autoIndent.defaultValue=3,r.qB.overviewRulerLanes.defaultValue=2,Dl.Pj.setFormatterSelector(((e,t,i)=>Promise.resolve(e[0])));const Ml=(0,o.createMonacoBaseAPI)();Ml.editor={create:ra,getEditors:la,getDiffEditors:ca,onDidCreateEditor:oa,onDidCreateDiffEditor:aa,createDiffEditor:ha,addCommand:ua,addEditorAction:ga,addKeybindingRule:pa,addKeybindingRules:ma,createModel:fa,setModelLanguage:_a,setModelMarkers:va,getModelMarkers:ba,removeAllMarkers:Ca,onDidChangeMarkers:Ea,getModels:ya,getModel:Sa,onDidCreateModel:wa,onWillDisposeModel:La,onDidChangeModelLanguage:Ra,createWebWorker:Ta,colorizeElement:xa,colorize:ka,colorizeModelLine:Aa,tokenize:Na,defineTheme:Ia,setTheme:Oa,remeasureFonts:Da,registerCommand:Ma,registerLinkOpener:Pa,registerEditorOpener:Fa,AccessibilitySupport:qr.Gn,ContentWidgetPositionPreference:qr.Qj,CursorChangeReason:qr.h5,DefaultEndOfLine:qr.of,EditorAutoIndentStrategy:qr.e0,EditorOption:qr.p2,EndOfLinePreference:qr.kf,EndOfLineSequence:qr.WU,MinimapPosition:qr.R3,MinimapSectionHeaderStyle:qr.VX,MouseTargetType:qr.hS,OverlayWidgetPositionPreference:qr.dE,OverviewRulerLane:qr.A5,GlyphMarginLane:qr.ZS,RenderLineNumbersType:qr.DO,RenderMinimap:qr.hW,ScrollbarVisibility:qr.XR,ScrollType:qr.ov,TextEditorCursorBlinkingStyle:qr.U7,TextEditorCursorStyle:qr.m9,TrackedRangeStickiness:qr.kK,WrappingIndent:qr.tJ,InjectedTextCursorStops:qr.VW,PositionAffinity:qr.Ic,ShowLightbulbIconMode:qr.jT,ConfigurationChangedEvent:r.lw,BareFontInfo:Vr._8,FontInfo:Vr.YJ,TextModelResolvedOptions:Yr.X2,FindMatch:Yr.Dg,ApplyUpdateResult:r.hZ,EditorZoom:Wr.D,createMultiFileDiffEditor:da,EditorType:zr._,EditorOptions:r.qB},Ml.languages={register:Ya,getLanguages:qa,onLanguage:Qa,onLanguageEncountered:Xa,getEncodedLanguageId:$a,setLanguageConfiguration:Za,setColorMap:il,registerTokensProviderFactory:nl,setTokensProvider:rl,setMonarchTokensProvider:ol,registerReferenceProvider:al,registerRenameProvider:ll,registerNewSymbolNameProvider:cl,registerCompletionItemProvider:wl,registerSignatureHelpProvider:hl,registerHoverProvider:dl,registerDocumentSymbolProvider:ul,registerDocumentHighlightProvider:gl,registerLinkedEditingRangeProvider:pl,registerDefinitionProvider:ml,registerImplementationProvider:fl,registerTypeDefinitionProvider:_l,registerCodeLensProvider:vl,registerCodeActionProvider:Cl,registerDocumentFormattingEditProvider:bl,registerDocumentRangeFormattingEditProvider:El,registerOnTypeFormattingEditProvider:Sl,registerLinkProvider:yl,registerColorProvider:Ll,registerFoldingRangeProvider:Rl,registerDeclarationProvider:Tl,registerSelectionRangeProvider:xl,registerDocumentSemanticTokensProvider:kl,registerDocumentRangeSemanticTokensProvider:Al,registerInlineCompletionsProvider:Nl,registerInlineEditProvider:Il,registerInlayHintsProvider:Ol,DocumentHighlightKind:qr.Kb,CompletionItemKind:qr.Io,CompletionItemTag:qr.QP,CompletionItemInsertTextRule:qr._E,SymbolKind:qr.v0,SymbolTag:qr.H_,IndentAction:qr.l,CompletionTriggerKind:qr.t7,SignatureHelpTriggerKind:qr.WA,InlayHintKind:qr.r4,InlineCompletionTriggerKind:qr.qw,InlineEditTriggerKind:qr.sm,CodeActionTriggerType:qr.ok,NewSymbolNameTag:qr.OV,NewSymbolNameTriggerKind:qr.YT,PartialAcceptTriggerKind:qr.Ah,HoverVerbosityAction:qr.M$,FoldingRangeKind:Gr.lO,SelectedSuggestionInfo:Gr.GE};const Pl=Ml.CancellationTokenSource,Fl=Ml.Emitter,Ul=Ml.KeyCode,Hl=Ml.KeyMod,Bl=Ml.Position,Wl=Ml.Range,Vl=Ml.Selection,zl=Ml.SelectionDirection,Gl=Ml.MarkerSeverity,jl=Ml.MarkerTag,Kl=Ml.Uri,Yl=Ml.Token,ql=Ml.editor,$l=Ml.languages,Ql=globalThis.MonacoEnvironment;(Ql?.globalAPI||"function"===typeof define&&i.amdO)&&(globalThis.monaco=Ml),"undefined"!==typeof globalThis.require&&"function"===typeof globalThis.require.config&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var Xl;i(61562),i(94318),i(23304),i(59896),i(75208),i(51232),i(77888),i(46686),i(27020),i(15600),i(80200),i(87152),i(11272),i(60352),i(66235),i(31474),i(84840),i(17184),i(74304),i(74800),i(37954),i(25922),i(46648),i(61082),i(19856),i(97884),i(89518),i(83488),i(3254),i(57680),i(99669),i(796),i(89336),i(19436),i(40340),i(52894),i(86492),i(73374),i(38320),i(92080),i(57664),i(8868),i(31396),i(18544),i(538),i(25064),i(64256),i(32624),i(97360),i(42776),i(97144),i(46304),i(58820),i(82560),i(74276),i(39866),i(73020),i(71316),i(70492),i(50848),i(59520),i(46576),i(49150),i(33358),i(96716),i(28304),i(14720),i(27734),i(2068),i(71468),i(15482),i(42572),i(77668),i(36e3),i(10072),i(48448),i(51376),i(61764),i(85872),i(24152),i(42144),i(22362),i(98408),i(61472),i(50576),i(23934);self.MonacoEnvironment=(Xl={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var s=i.p,n=(s?s.replace(/\/$/,"")+"/":"")+Xl[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(n)){var r=String(window.location),o=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(n.substring(0,o.length)!==o){/^(\/\/)/.test(n)&&(n=window.location.protocol+n);var a=new Blob(["/*"+t+'*/importScripts("'+n+'");'],{type:"application/javascript"});return URL.createObjectURL(a)}}return n}});const Zl=s},67913:(e,t,i)=>{"use strict";i.d(t,{cj:()=>n.MarkerSeverity,EN:()=>n.editor,eo:()=>n.languages});i(44915),i(88952),i(36999),i(58590),i(6438),i(94908),i(4836),i(52555),i(64215),i(31659),i(99822),i(40142),i(18864),i(32516),i(20961),i(40800),i(2183),i(58568),i(63867),i(61731),i(34175),i(44588),i(70552),i(48279),i(65877),i(81091),i(99312),i(62427),i(58466),i(56800),i(28449),i(57244),i(76440),i(80409),i(58145),i(40677),i(9948),i(84325),i(15040),i(75639),i(85117),i(14614),i(95200),i(50352),i(4519),i(85646),i(77047),i(6429),i(28211),i(59731),i(57377),i(50071),i(18278),i(98745),i(44798),i(10617),i(30936),i(57197),i(90870),i(10846),i(22890),i(98472),i(50166),i(68887),i(47210),i(79907),i(38728),i(46606);var s,n=i(80781);i(61562),i(94318),i(23304),i(59896),i(75208),i(51232),i(77888),i(46686),i(27020),i(15600),i(80200),i(87152),i(60352),i(66235),i(31474),i(84840),i(17184),i(74304),i(37954),i(74800),i(25922),i(46648),i(61082),i(19856),i(97884),i(83488),i(3254),i(57680),i(796),i(89336),i(19436),i(40340),i(86492),i(52894),i(73374),i(38320),i(92080),i(57664),i(8868),i(31396),i(18544),i(538),i(25064),i(64256),i(32624),i(97360),i(42776),i(97144),i(46304),i(58820),i(82560),i(74276),i(39866),i(73020),i(71316),i(70492),i(50848),i(59520),i(46576),i(49150),i(33358),i(96716),i(28304),i(14720),i(27734),i(2068),i(71468),i(15482),i(42572),i(77668),i(36e3),i(10072),i(48448),i(51376),i(61764),i(85872),i(42144),i(22362),i(98408),i(61472),i(50576),i(11272),i(89518),i(99669),i(24152),i(51861),i(97791),i(23934);self.MonacoEnvironment=(s={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var n=i.p,r=(n?n.replace(/\/$/,"")+"/":"")+s[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(r)){var o=String(window.location),a=o.substr(0,o.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,a.length)!==a){/^(\/\/)/.test(r)&&(r=window.location.protocol+r);var l=new Blob(["/*"+t+'*/importScripts("'+r+'");'],{type:"application/javascript"});return URL.createObjectURL(l)}}return r}})},60413:(e,t,i)=>{"use strict";i.d(t,{Dy:()=>r,H8:()=>h,Qu:()=>m,Tc:()=>c,c8:()=>u,gm:()=>l,m0:()=>g,nr:()=>d,pR:()=>o});var s=i(25893);class n{constructor(){this.mapWindowIdToZoomFactor=new Map}static{this.INSTANCE=new n}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}}function r(e,t,i){"string"===typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i)}function o(e){return n.INSTANCE.getZoomFactor(e)}const a=navigator.userAgent,l=a.indexOf("Firefox")>=0,c=a.indexOf("AppleWebKit")>=0,h=a.indexOf("Chrome")>=0,d=!h&&a.indexOf("Safari")>=0,u=!h&&!d&&c,g=(a.indexOf("Electron/"),a.indexOf("Android")>=0);let p=!1;if("function"===typeof s.G.matchMedia){const e=s.G.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=s.G.matchMedia("(display-mode: fullscreen)");p=e.matches,r(s.G,e,(({matches:e})=>{p&&t.matches||(p=e)}))}function m(){return p}},55089:(e,t,i)=>{"use strict";i.d(t,{e:()=>o});var s=i(60413),n=i(25893),r=i(98067);const o={clipboard:{writeText:r.ib||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:r.ib||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:r.ib||s.Qu()?0:navigator.keyboard||s.nr?1:2,touch:"ontouchstart"in n.G||navigator.maxTouchPoints>0,pointerEvents:n.G.PointerEvent&&("ontouchstart"in n.G||navigator.maxTouchPoints>0)}},42731:(e,t,i)=>{"use strict";i.d(t,{t:()=>s});const s={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:i(44320).K.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},8597:(e,t,i)=>{"use strict";i.d(t,{$:()=>Ue,BC:()=>Ie,BK:()=>j,Be:()=>F,Bx:()=>we,CE:()=>ze,Cl:()=>ee,Di:()=>Qe,Ej:()=>G,Er:()=>Se,Fv:()=>R,H4:()=>$,Hs:()=>Oe,Ij:()=>D,Iv:()=>w,L9:()=>H,Ln:()=>De,Mc:()=>et,OK:()=>Q,Oq:()=>M,PG:()=>P,Pl:()=>Ne,Q2:()=>E,QX:()=>X,TT:()=>$e,Tf:()=>je,Tr:()=>Y,U2:()=>_e,U3:()=>O,WU:()=>Be,Wt:()=>fe,X7:()=>se,XD:()=>Z,Xc:()=>I,ZF:()=>S,a:()=>re,a4:()=>qe,b2:()=>N,bo:()=>He,bq:()=>ie,cL:()=>z,fg:()=>V,fs:()=>Re,fz:()=>oe,gI:()=>Ye,h:()=>Je,i0:()=>Ge,jD:()=>We,jG:()=>te,jh:()=>le,ko:()=>k,kx:()=>ye,li:()=>he,mU:()=>K,nR:()=>ne,nY:()=>be,pN:()=>Xe,q3:()=>L,sb:()=>Ce,sd:()=>Le,tG:()=>B,vT:()=>Ve,w5:()=>Ae,w_:()=>T,wk:()=>xe,xZ:()=>Ee,y6:()=>q,yt:()=>Ke,zK:()=>Te,zk:()=>_});var s=i(60413),n=i(55089),r=i(72962),o=i(47358),a=i(90766),l=i(64383),c=i(41234),h=i(83750),d=i(5662),u=i(36456),g=i(98067),p=i(85600),m=i(25893);const{registerWindow:f,getWindow:_,getDocument:v,getWindows:C,getWindowsCount:b,getWindowId:E,getWindowById:S,hasWindow:y,onDidRegisterWindow:w,onWillUnregisterWindow:L,onDidUnregisterWindow:R}=function(){const e=new Map;(0,m.y)(m.G,1);const t={window:m.G,disposables:new d.Cm};e.set(m.G.vscodeWindowId,t);const i=new c.vl,s=new c.vl,n=new c.vl;return{onDidRegisterWindow:i.event,onWillUnregisterWindow:n.event,onDidUnregisterWindow:s.event,registerWindow(t){if(e.has(t.vscodeWindowId))return d.jG.None;const r=new d.Cm,o={window:t,disposables:r.add(new d.Cm)};return e.set(t.vscodeWindowId,o),r.add((0,d.s)((()=>{e.delete(t.vscodeWindowId),s.fire(t)}))),r.add(k(t,we.BEFORE_UNLOAD,(()=>{n.fire(t)}))),i.fire(o),r},getWindows:()=>e.values(),getWindowsCount:()=>e.size,getWindowId:e=>e.vscodeWindowId,hasWindow:t=>e.has(t),getWindowById:function(i,s){return("number"===typeof i?e.get(i):void 0)??(s?t:void 0)},getWindow(e){const t=e;if(t?.ownerDocument?.defaultView)return t.ownerDocument.defaultView.window;const i=e;return i?.view?i.view.window:m.G},getDocument:e=>_(e).document}}();function T(e){for(;e.firstChild;)e.firstChild.remove()}class x{constructor(e,t,i,s){this._node=e,this._type=t,this._handler=i,this._options=s||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function k(e,t,i,s){return new x(e,t,i,s)}function A(e,t){return function(i){return t(new o.P(e,i))}}const N=function(e,t,i,s){let n=i;return"click"===t||"mousedown"===t||"contextmenu"===t?n=A(_(e),i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(n=function(e){return function(t){return e(new r.Z(t))}}(i)),k(e,t,n,s)},I=function(e,t,i){return function(e,t,i){return k(e,g.un&&n.e.pointerEvents?we.POINTER_DOWN:we.MOUSE_DOWN,t,i)}(e,A(_(e),t),i)};function O(e,t,i){return(0,a.b7)(e,t,i)}class D extends a.A0{constructor(e,t){super(e,t)}}let M,P;class F extends a.vb{constructor(e){super(),this.defaultTarget=e&&_(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}}class U{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,l.dz)(e)}}static sort(e,t){return t.priority-e.priority}}function H(e){return _(e).getComputedStyle(e,null)}function B(e,t){const i=_(e),s=i.document;if(e!==s.body)return new V(e.clientWidth,e.clientHeight);if(g.un&&i?.visualViewport)return new V(i.visualViewport.width,i.visualViewport.height);if(i?.innerWidth&&i.innerHeight)return new V(i.innerWidth,i.innerHeight);if(s.body&&s.body.clientWidth&&s.body.clientHeight)return new V(s.body.clientWidth,s.body.clientHeight);if(s.documentElement&&s.documentElement.clientWidth&&s.documentElement.clientHeight)return new V(s.documentElement.clientWidth,s.documentElement.clientHeight);if(t)return B(t);throw new Error("Unable to figure out browser width and height")}!function(){const e=new Map,t=new Map,i=new Map,s=new Map;P=(n,r,o=0)=>{const a=E(n),l=new U(r,o);let c=e.get(a);return c||(c=[],e.set(a,c)),c.push(l),i.get(a)||(i.set(a,!0),n.requestAnimationFrame((()=>(n=>{i.set(n,!1);const r=e.get(n)??[];for(t.set(n,r),e.set(n,[]),s.set(n,!0);r.length>0;)r.sort(U.sort),r.shift().execute();s.set(n,!1)})(a)))),l},M=(e,i,n)=>{const r=E(e);if(s.get(r)){const e=new U(i,n);let s=t.get(r);return s||(s=[],t.set(r,s)),s.push(e),e}return P(e,i,n)}}();class W{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const s=H(e),n=s?s.getPropertyValue(t):"0";return W.convertToPixels(e,n)}static getBorderLeftWidth(e){return W.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return W.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return W.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return W.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return W.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return W.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return W.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return W.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return W.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return W.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return W.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return W.getDimension(e,"margin-bottom","marginBottom")}}class V{static{this.None=new V(0,0)}constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new V(e,t):this}static is(e){return"object"===typeof e&&"number"===typeof e.height&&"number"===typeof e.width}static lift(e){return e instanceof V?e:new V(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function z(e){let t=e.offsetParent,i=e.offsetTop,s=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;const n=J(e)?null:H(e);n&&(s-="rtl"!==n.direction?e.scrollLeft:-e.scrollLeft),e===t&&(s+=W.getBorderLeftWidth(e),i+=W.getBorderTopWidth(e),i+=e.offsetTop,s+=e.offsetLeft,t=e.offsetParent)}return{left:s,top:i}}function G(e,t,i){"number"===typeof t&&(e.style.width=`${t}px`),"number"===typeof i&&(e.style.height=`${i}px`)}function j(e){const t=e.getBoundingClientRect(),i=_(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function K(e){let t=e,i=1;do{const e=H(t).zoom;null!==e&&void 0!==e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function Y(e){const t=W.getMarginLeft(e)+W.getMarginRight(e);return e.offsetWidth+t}function q(e){const t=W.getBorderLeftWidth(e)+W.getBorderRightWidth(e),i=W.getPaddingLeft(e)+W.getPaddingRight(e);return e.offsetWidth-t-i}function $(e){const t=W.getBorderTopWidth(e)+W.getBorderBottomWidth(e),i=W.getPaddingTop(e)+W.getPaddingBottom(e);return e.offsetHeight-t-i}function Q(e){const t=W.getMarginTop(e)+W.getMarginBottom(e);return e.offsetHeight+t}function X(e,t){return Boolean(t?.contains(e))}function Z(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"===typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}(e,t,i)}function J(e){return e&&!!e.host&&!!e.mode}function ee(e){return!!te(e)}function te(e){for(;e.parentNode;){if(e===e.ownerDocument?.body)return null;e=e.parentNode}return J(e)?e:null}function ie(){let e=re().activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e}function se(e){return ie()===e}function ne(e){return X(ie(),e)}function re(){if(b()<=1)return m.G.document;return Array.from(C()).map((({window:e})=>e.document)).find((e=>e.hasFocus()))??m.G.document}function oe(){const e=re();return e.defaultView?.window??m.G}const ae=new Map;function le(){return new ce}class ce{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=he(m.G.document.head,(t=>t.innerText=e)))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function he(e=m.G.document.head,t,i){const s=document.createElement("style");if(s.type="text/css",s.media="screen",t?.(s),e.appendChild(s),i&&i.add((0,d.s)((()=>s.remove()))),e===m.G.document.head){const e=new Set;ae.set(s,e);for(const{window:t,disposables:n}of C()){if(t===m.G)continue;const r=n.add(de(s,e,t));i?.add(r)}}return s}function de(e,t,i){const s=new d.Cm,n=e.cloneNode(!0);i.document.head.appendChild(n),s.add((0,d.s)((()=>n.remove())));for(const r of me(e))n.sheet?.insertRule(r.cssText,n.sheet?.cssRules.length);return s.add(ue.observe(e,s,{childList:!0})((()=>{n.textContent=e.textContent}))),t.add(n),s.add((0,d.s)((()=>t.delete(n)))),s}const ue=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let s=this.mutationObservers.get(e);s||(s=new Map,this.mutationObservers.set(e,s));const n=(0,p.tW)(i);let r=s.get(n);if(r)r.users+=1;else{const o=new c.vl,a=new MutationObserver((e=>o.fire(e)));a.observe(e,i);const l=r={users:1,observer:a,onDidMutate:o.event};t.add((0,d.s)((()=>{l.users-=1,0===l.users&&(o.dispose(),a.disconnect(),s?.delete(n),0===s?.size&&this.mutationObservers.delete(e))}))),s.set(n,r)}return r.onDidMutate}};let ge=null;function pe(){return ge||(ge=he()),ge}function me(e){return e?.sheet?.rules?e.sheet.rules:e?.sheet?.cssRules?e.sheet.cssRules:[]}function fe(e,t,i=pe()){if(i&&t){i.sheet?.insertRule(`${e} {${t}}`,0);for(const s of ae.get(i)??[])fe(e,t,s)}}function _e(e,t=pe()){if(!t)return;const i=me(t),s=[];for(let n=0;n<i.length;n++){const t=i[n];ve(t)&&-1!==t.selectorText.indexOf(e)&&s.push(n)}for(let n=s.length-1;n>=0;n--)t.sheet?.deleteRule(s[n]);for(const n of ae.get(t)??[])_e(e,n)}function ve(e){return"string"===typeof e.selectorText}function Ce(e){return e instanceof HTMLElement||e instanceof _(e).HTMLElement}function be(e){return e instanceof HTMLAnchorElement||e instanceof _(e).HTMLAnchorElement}function Ee(e){return e instanceof SVGElement||e instanceof _(e).SVGElement}function Se(e){return e instanceof MouseEvent||e instanceof _(e).MouseEvent}function ye(e){return e instanceof KeyboardEvent||e instanceof _(e).KeyboardEvent}const we={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:s.Tc?"webkitAnimationStart":"animationstart",ANIMATION_END:s.Tc?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:s.Tc?"webkitAnimationIteration":"animationiteration"};function Le(e){const t=e;return!(!t||"function"!==typeof t.preventDefault||"function"!==typeof t.stopPropagation)}const Re={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function Te(e){const t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function xe(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class ke extends d.jG{static hasFocusWithin(e){if(Ce(e)){const t=te(e);return X(t?t.activeElement:e.ownerDocument.activeElement,e)}{const t=e;return X(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new c.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new c.vl),this.onDidBlur=this._onDidBlur.event;let t=ke.hasFocusWithin(e),i=!1;const s=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},n=()=>{t&&(i=!0,(Ce(e)?_(e):e).setTimeout((()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{ke.hasFocusWithin(e)!==t&&(t?n():s())},this._register(k(e,we.FOCUS,s,!0)),this._register(k(e,we.BLUR,n,!0)),Ce(e)&&(this._register(k(e,we.FOCUS_IN,(()=>this._refreshStateHandler()))),this._register(k(e,we.FOCUS_OUT,(()=>this._refreshStateHandler()))))}}function Ae(e){return new ke(e)}function Ne(e,t){return e.after(t),t}function Ie(e,...t){if(e.append(...t),1===t.length&&"string"!==typeof t[0])return t[0]}function Oe(e,t){return e.insertBefore(t,e.firstChild),t}function De(e,...t){e.innerText="",Ie(e,...t)}const Me=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Pe;function Fe(e,t,i,...s){const n=Me.exec(t);if(!n)throw new Error("Bad use of emmet");const r=n[1]||"div";let o;return o=e!==Pe.HTML?document.createElementNS(e,r):document.createElement(r),n[3]&&(o.id=n[3]),n[4]&&(o.className=n[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach((([e,t])=>{"undefined"!==typeof t&&(/^on\w+$/.test(e)?o[e]=t:"selected"===e?t&&o.setAttribute(e,"true"):o.setAttribute(e,t))})),o.append(...s),o}function Ue(e,t,...i){return Fe(Pe.HTML,e,t,...i)}function He(e,...t){e?Be(...t):We(...t)}function Be(...e){for(const t of e)t.style.display="",t.removeAttribute("aria-hidden")}function We(...e){for(const t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function Ve(e,t){const i=e.devicePixelRatio*t;return Math.max(1,Math.floor(i))/e.devicePixelRatio}function ze(e){m.G.open(e,"_blank","noopener")}function Ge(e,t){const i=()=>{t(),s=P(e,i)};let s=P(e,i);return(0,d.s)((()=>s.dispose()))}function je(e){return e?`url('${u.zl.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function Ke(e){return`'${e.replace(/'/g,"%27")}'`}function Ye(e,t){if(void 0!==e){const i=e.match(/^\s*var\((.+)\)$/);if(i){const e=i[1].split(",",2);return 2===e.length&&(t=Ye(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}function qe(e,t=!1){const i=document.createElement("a");return h.$w("afterSanitizeAttributes",(s=>{for(const n of["href","src"])if(s.hasAttribute(n)){const r=s.getAttribute(n);if("href"===n&&r.startsWith("#"))continue;if(i.href=r,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===n&&i.href.startsWith("data:"))continue;s.removeAttribute(n)}}})),(0,d.s)((()=>{h.SV("afterSanitizeAttributes")}))}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(Pe||(Pe={})),Ue.SVG=function(e,t,...i){return Fe(Pe.SVG,e,t,...i)},u.Ez.setPreferredWebSchema(/^https:/.test(m.G.location.href)?"https":"http");const $e=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class Qe extends c.vl{constructor(){super(),this._subscriptions=new d.Cm,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(c.Jh.runAndSubscribe(w,(({window:e,disposables:t})=>this.registerListeners(e,t)),{window:m.G,disposables:this._subscriptions}))}registerListeners(e,t){t.add(k(e,"keydown",(e=>{if(e.defaultPrevented)return;const t=new r.Z(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}}),!0)),t.add(k(e,"keyup",(e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))}),!0)),t.add(k(e.document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(k(e.document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(k(e.document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),t.add(k(e,"blur",(()=>{this.resetKeyStatus()})))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Qe.instance||(Qe.instance=new Qe),Qe.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class Xe extends d.jG{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(k(this.element,we.DRAG_START,(e=>{this.callbacks.onDragStart?.(e)}))),this.callbacks.onDrag&&this._register(k(this.element,we.DRAG,(e=>{this.callbacks.onDrag?.(e)}))),this._register(k(this.element,we.DRAG_ENTER,(e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter?.(e)}))),this._register(k(this.element,we.DRAG_OVER,(e=>{e.preventDefault(),this.callbacks.onDragOver?.(e,e.timeStamp-this.dragStartTime)}))),this._register(k(this.element,we.DRAG_LEAVE,(e=>{this.counter--,0===this.counter&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(e))}))),this._register(k(this.element,we.DRAG_END,(e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(e)}))),this._register(k(this.element,we.DROP,(e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(e)})))}}const Ze=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function Je(e,...t){let i,s;Array.isArray(t[0])?(i={},s=t[0]):(i=t[0]||{},s=t[1]);const n=Ze.exec(e);if(!n||!n.groups)throw new Error("Bad use of h");const r=n.groups.tag||"div",o=document.createElement(r);n.groups.id&&(o.id=n.groups.id);const a=[];if(n.groups.class)for(const c of n.groups.class.split("."))""!==c&&a.push(c);if(void 0!==i.className)for(const c of i.className.split("."))""!==c&&a.push(c);a.length>0&&(o.className=a.join(" "));const l={};if(n.groups.name&&(l[n.groups.name]=o),s)for(const c of s)Ce(c)?o.appendChild(c):"string"===typeof c?o.append(c):"root"in c&&(Object.assign(l,c),o.appendChild(c.root));for(const[c,h]of Object.entries(i))if("className"!==c)if("style"===c)for(const[e,t]of Object.entries(h))o.style.setProperty(tt(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===c?o.tabIndex=h:o.setAttribute(tt(c),h.toString());return l.root=o,l}function et(e,...t){let i,s;Array.isArray(t[0])?(i={},s=t[0]):(i=t[0]||{},s=t[1]);const n=Ze.exec(e);if(!n||!n.groups)throw new Error("Bad use of h");const r=n.groups.tag||"div",o=document.createElementNS("http://www.w3.org/2000/svg",r);n.groups.id&&(o.id=n.groups.id);const a=[];if(n.groups.class)for(const c of n.groups.class.split("."))""!==c&&a.push(c);if(void 0!==i.className)for(const c of i.className.split("."))""!==c&&a.push(c);a.length>0&&(o.className=a.join(" "));const l={};if(n.groups.name&&(l[n.groups.name]=o),s)for(const c of s)Ce(c)?o.appendChild(c):"string"===typeof c?o.append(c):"root"in c&&(Object.assign(l,c),o.appendChild(c.root));for(const[c,h]of Object.entries(i))if("className"!==c)if("style"===c)for(const[e,t]of Object.entries(h))o.style.setProperty(tt(e),"number"===typeof t?t+"px":""+t);else"tabIndex"===c?o.tabIndex=h:o.setAttribute(tt(c),h.toString());return l.root=o,l}function tt(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},83750:(e,t,i)=>{"use strict";i.d(t,{$w:()=>ae,SV:()=>le,aj:()=>oe});const{entries:s,setPrototypeOf:n,isFrozen:r,getPrototypeOf:o,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:c,create:h}=Object,{apply:d,construct:u}="undefined"!==typeof Reflect&&Reflect;l||(l=function(e){return e}),c||(c=function(e){return e}),d||(d=function(e,t,i){return e.apply(t,i)}),u||(u=function(e,t){return new e(...t)});const g=R(Array.prototype.forEach),p=R(Array.prototype.pop),m=R(Array.prototype.push),f=R(String.prototype.toLowerCase),_=R(String.prototype.toString),v=R(String.prototype.match),C=R(String.prototype.replace),b=R(String.prototype.indexOf),E=R(String.prototype.trim),S=R(Object.prototype.hasOwnProperty),y=R(RegExp.prototype.test),w=(L=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(L,t)});var L;function R(e){return function(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];return d(e,t,s)}}function T(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;n&&n(e,null);let s=t.length;for(;s--;){let n=t[s];if("string"===typeof n){const e=i(n);e!==n&&(r(t)||(t[s]=e),n=e)}e[n]=!0}return e}function x(e){for(let t=0;t<e.length;t++){S(e,t)||(e[t]=null)}return e}function k(e){const t=h(null);for(const[i,n]of s(e)){S(e,i)&&(Array.isArray(n)?t[i]=x(n):n&&"object"===typeof n&&n.constructor===Object?t[i]=k(n):t[i]=n)}return t}function A(e,t){for(;null!==e;){const i=a(e,t);if(i){if(i.get)return R(i.get);if("function"===typeof i.value)return R(i.value)}e=o(e)}return function(){return null}}const N=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),O=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),M=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),P=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=l(["#text"]),U=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),H=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=c(/<%[\w\W]*|[\w\W]*%>/gm),G=c(/\${[\w\W]*}/gm),j=c(/^data-[\-\w.\u00B7-\uFFFF]/),K=c(/^aria-[\-\w]+$/),Y=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=c(/^(?:\w+script|data):/i),$=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=c(/^html$/i),X=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,MUSTACHE_EXPR:V,ERB_EXPR:z,TMPLIT_EXPR:G,DATA_ATTR:j,ARIA_ATTR:K,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:$,DOCTYPE_NAME:Q,CUSTOM_ELEMENT:X});const J=1,ee=3,te=7,ie=8,se=9,ne=function(){return"undefined"===typeof window?null:window};var re=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne();const i=t=>e(t);if(i.version="3.1.7",i.removed=[],!t||!t.document||t.document.nodeType!==se)return i.isSupported=!1,i;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:c,Node:d,Element:u,NodeFilter:L,NamedNodeMap:R=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:x,DOMParser:V,trustedTypes:z}=t,G=u.prototype,j=A(G,"cloneNode"),K=A(G,"remove"),q=A(G,"nextSibling"),$=A(G,"childNodes"),X=A(G,"parentNode");if("function"===typeof c){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let re,oe="";const{implementation:ae,createNodeIterator:le,createDocumentFragment:ce,getElementsByTagName:he}=n,{importNode:de}=r;let ue={};i.isSupported="function"===typeof s&&"function"===typeof X&&ae&&void 0!==ae.createHTMLDocument;const{MUSTACHE_EXPR:ge,ERB_EXPR:pe,TMPLIT_EXPR:me,DATA_ATTR:fe,ARIA_ATTR:_e,IS_SCRIPT_OR_DATA:ve,ATTR_WHITESPACE:Ce,CUSTOM_ELEMENT:be}=Z;let{IS_ALLOWED_URI:Ee}=Z,Se=null;const ye=T({},[...N,...I,...O,...M,...F]);let we=null;const Le=T({},[...U,...H,...B,...W]);let Re=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,xe=null,ke=!0,Ae=!0,Ne=!1,Ie=!0,Oe=!1,De=!0,Me=!1,Pe=!1,Fe=!1,Ue=!1,He=!1,Be=!1,We=!0,Ve=!1,ze=!0,Ge=!1,je={},Ke=null;const Ye=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const $e=T({},["audio","video","img","source","image","track"]);let Qe=null;const Xe=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,it=!1,st=null;const nt=T({},[Ze,Je,et],_);let rt=null;const ot=["application/xhtml+xml","text/html"];let at=null,lt=null;const ct=n.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},dt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"===typeof e||(e={}),e=k(e),rt=-1===ot.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===rt?_:f,Se=S(e,"ALLOWED_TAGS")?T({},e.ALLOWED_TAGS,at):ye,we=S(e,"ALLOWED_ATTR")?T({},e.ALLOWED_ATTR,at):Le,st=S(e,"ALLOWED_NAMESPACES")?T({},e.ALLOWED_NAMESPACES,_):nt,Qe=S(e,"ADD_URI_SAFE_ATTR")?T(k(Xe),e.ADD_URI_SAFE_ATTR,at):Xe,qe=S(e,"ADD_DATA_URI_TAGS")?T(k($e),e.ADD_DATA_URI_TAGS,at):$e,Ke=S(e,"FORBID_CONTENTS")?T({},e.FORBID_CONTENTS,at):Ye,Te=S(e,"FORBID_TAGS")?T({},e.FORBID_TAGS,at):{},xe=S(e,"FORBID_ATTR")?T({},e.FORBID_ATTR,at):{},je=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,Ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Oe=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,Ve=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,Ee=e.ALLOWED_URI_REGEXP||Y,tt=e.NAMESPACE||et,Re=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Re.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Re.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Re.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Oe&&(Ae=!1),He&&(Ue=!0),je&&(Se=T({},F),we=[],!0===je.html&&(T(Se,N),T(we,U)),!0===je.svg&&(T(Se,I),T(we,H),T(we,W)),!0===je.svgFilters&&(T(Se,O),T(we,H),T(we,W)),!0===je.mathMl&&(T(Se,M),T(we,B),T(we,W))),e.ADD_TAGS&&(Se===ye&&(Se=k(Se)),T(Se,e.ADD_TAGS,at)),e.ADD_ATTR&&(we===Le&&(we=k(we)),T(we,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&T(Qe,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(Ke===Ye&&(Ke=k(Ke)),T(Ke,e.FORBID_CONTENTS,at)),ze&&(Se["#text"]=!0),Me&&T(Se,["html","head","body"]),Se.table&&(T(Se,["tbody"]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');re=e.TRUSTED_TYPES_POLICY,oe=re.createHTML("")}else void 0===re&&(re=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let i=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(i=t.getAttribute(s));const n="dompurify"+(i?"#"+i:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(r){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(z,o)),null!==re&&"string"===typeof oe&&(oe=re.createHTML(""));l&&l(e),lt=e}},ut=T({},["mi","mo","mn","ms","mtext"]),gt=T({},["annotation-xml"]),pt=T({},["title","style","font","a","script"]),mt=T({},[...I,...O,...D]),ft=T({},[...M,...P]),_t=function(e){m(i.removed,{element:e});try{X(e).removeChild(e)}catch(t){K(e)}},vt=function(e,t){try{m(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(s){m(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!we[e])if(Ue||He)try{_t(t)}catch(s){}else try{t.setAttribute(e,"")}catch(s){}},Ct=function(e){let t=null,i=null;if(Fe)e="<remove></remove>"+e;else{const t=v(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===rt&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=re?re.createHTML(e):e;if(tt===et)try{t=(new V).parseFromString(s,rt)}catch(o){}if(!t||!t.documentElement){t=ae.createDocument(tt,"template",null);try{t.documentElement.innerHTML=it?oe:s}catch(o){}}const r=t.body||t.documentElement;return e&&i&&r.insertBefore(n.createTextNode(i),r.childNodes[0]||null),tt===et?he.call(t,Me?"html":"body")[0]:Me?t.documentElement:r},bt=function(e){return le.call(e.ownerDocument||e,e,L.SHOW_ELEMENT|L.SHOW_COMMENT|L.SHOW_TEXT|L.SHOW_PROCESSING_INSTRUCTION|L.SHOW_CDATA_SECTION,null)},Et=function(e){return e instanceof x&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof R)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},St=function(e){return"function"===typeof d&&e instanceof d},yt=function(e,t,s){ue[e]&&g(ue[e],(e=>{e.call(i,t,s,lt)}))},wt=function(e){let t=null;if(yt("beforeSanitizeElements",e,null),Et(e))return _t(e),!0;const s=at(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:s,allowedTags:Se}),e.hasChildNodes()&&!St(e.firstElementChild)&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return _t(e),!0;if(e.nodeType===te)return _t(e),!0;if(De&&e.nodeType===ie&&y(/<[/\w]/g,e.data))return _t(e),!0;if(!Se[s]||Te[s]){if(!Te[s]&&Rt(s)){if(Re.tagNameCheck instanceof RegExp&&y(Re.tagNameCheck,s))return!1;if(Re.tagNameCheck instanceof Function&&Re.tagNameCheck(s))return!1}if(ze&&!Ke[s]){const t=X(e)||e.parentNode,i=$(e)||e.childNodes;if(i&&t){for(let s=i.length-1;s>=0;--s){const n=j(i[s],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,q(e))}}}return _t(e),!0}return e instanceof u&&!function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const i=f(e.tagName),s=f(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===et?"svg"===i:t.namespaceURI===Ze?"svg"===i&&("annotation-xml"===s||ut[s]):Boolean(mt[i]):e.namespaceURI===Ze?t.namespaceURI===et?"math"===i:t.namespaceURI===Je?"math"===i&>[s]:Boolean(ft[i]):e.namespaceURI===et?!(t.namespaceURI===Je&&!gt[s])&&!(t.namespaceURI===Ze&&!ut[s])&&!ft[i]&&(pt[i]||!mt[i]):!("application/xhtml+xml"!==rt||!st[e.namespaceURI]))}(e)?(_t(e),!0):"noscript"!==s&&"noembed"!==s&&"noframes"!==s||!y(/<\/no(script|embed|frames)/i,e.innerHTML)?(Oe&&e.nodeType===ee&&(t=e.textContent,g([ge,pe,me],(e=>{t=C(t,e," ")})),e.textContent!==t&&(m(i.removed,{element:e.cloneNode()}),e.textContent=t)),yt("afterSanitizeElements",e,null),!1):(_t(e),!0)},Lt=function(e,t,i){if(We&&("id"===t||"name"===t)&&(i in n||i in ct))return!1;if(Ae&&!xe[t]&&y(fe,t));else if(ke&&y(_e,t));else if(!we[t]||xe[t]){if(!(Rt(e)&&(Re.tagNameCheck instanceof RegExp&&y(Re.tagNameCheck,e)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(e))&&(Re.attributeNameCheck instanceof RegExp&&y(Re.attributeNameCheck,t)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(t))||"is"===t&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&y(Re.tagNameCheck,i)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(i))))return!1}else if(Qe[t]);else if(y(Ee,C(i,Ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(i,"data:")||!qe[e]){if(Ne&&!y(ve,C(i,Ce,"")));else if(i)return!1}else;return!0},Rt=function(e){return"annotation-xml"!==e&&v(e,be)},Tt=function(e){yt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we};let n=t.length;for(;n--;){const o=t[n],{name:a,namespaceURI:l,value:c}=o,h=at(a);let d="value"===a?c:E(c);if(s.attrName=h,s.attrValue=d,s.keepAttr=!0,s.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,s),d=s.attrValue,s.forceKeepAttr)continue;if(vt(a,e),!s.keepAttr)continue;if(!Ie&&y(/\/>/i,d)){vt(a,e);continue}Oe&&g([ge,pe,me],(e=>{d=C(d,e," ")}));const u=at(e.nodeName);if(Lt(u,h,d))if(!Ve||"id"!==h&&"name"!==h||(vt(a,e),d="user-content-"+d),De&&y(/((--!?|])>)|<\/(style|title)/i,d))vt(a,e);else{if(re&&"object"===typeof z&&"function"===typeof z.getAttributeType)if(l);else switch(z.getAttributeType(u,h)){case"TrustedHTML":d=re.createHTML(d);break;case"TrustedScriptURL":d=re.createScriptURL(d)}try{l?e.setAttributeNS(l,a,d):e.setAttribute(a,d),Et(e)?_t(e):p(i.removed)}catch(r){}}}yt("afterSanitizeAttributes",e,null)},xt=function e(t){let i=null;const s=bt(t);for(yt("beforeSanitizeShadowDOM",t,null);i=s.nextNode();)yt("uponSanitizeShadowNode",i,null),wt(i)||(i.content instanceof a&&e(i.content),Tt(i));yt("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=null,n=null,o=null,l=null;if(it=!e,it&&(e="\x3c!--\x3e"),"string"!==typeof e&&!St(e)){if("function"!==typeof e.toString)throw w("toString is not a function");if("string"!==typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Pe||dt(t),i.removed=[],"string"===typeof e&&(Ge=!1),Ge){if(e.nodeName){const t=at(e.nodeName);if(!Se[t]||Te[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)s=Ct("\x3c!----\x3e"),n=s.ownerDocument.importNode(e,!0),n.nodeType===J&&"BODY"===n.nodeName||"HTML"===n.nodeName?s=n:s.appendChild(n);else{if(!Ue&&!Oe&&!Me&&-1===e.indexOf("<"))return re&&Be?re.createHTML(e):e;if(s=Ct(e),!s)return Ue?null:Be?oe:""}s&&Fe&&_t(s.firstChild);const c=bt(Ge?e:s);for(;o=c.nextNode();)wt(o)||(o.content instanceof a&&xt(o.content),Tt(o));if(Ge)return e;if(Ue){if(He)for(l=ce.call(s.ownerDocument);s.firstChild;)l.appendChild(s.firstChild);else l=s;return(we.shadowroot||we.shadowrootmode)&&(l=de.call(r,l,!0)),l}let h=Me?s.outerHTML:s.innerHTML;return Me&&Se["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&y(Q,s.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+s.ownerDocument.doctype.name+">\n"+h),Oe&&g([ge,pe,me],(e=>{h=C(h,e," ")})),re&&Be?re.createHTML(h):h},i.setConfig=function(){dt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Pe=!0},i.clearConfig=function(){lt=null,Pe=!1},i.isValidAttribute=function(e,t,i){lt||dt({});const s=at(e),n=at(t);return Lt(s,n,i)},i.addHook=function(e,t){"function"===typeof t&&(ue[e]=ue[e]||[],m(ue[e],t))},i.removeHook=function(e){if(ue[e])return p(ue[e])},i.removeHooks=function(e){ue[e]&&(ue[e]=[])},i.removeAllHooks=function(){ue={}},i}();re.version,re.isSupported;const oe=re.sanitize,ae=(re.setConfig,re.clearConfig,re.isValidAttribute,re.addHook),le=re.removeHook;re.removeHooks,re.removeAllHooks},56245:(e,t,i)=>{"use strict";i.d(t,{f:()=>n});var s=i(41234);class n{get event(){return this.emitter.event}constructor(e,t,i){const n=e=>this.emitter.fire(e);this.emitter=new s.vl({onWillAddFirstListener:()=>e.addEventListener(t,n,i),onDidRemoveLastListener:()=>e.removeEventListener(t,n,i)})}dispose(){this.emitter.dispose()}}},55275:(e,t,i)=>{"use strict";i.d(t,{D:()=>s,Z:()=>r});class s{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=n(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=n(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=n(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=n(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=n(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=n(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=n(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=n(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=n(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=n(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=n(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function n(e){return"number"===typeof e?`${e}px`:e}function r(e){return new s(e)}},49435:(e,t,i)=>{"use strict";i.d(t,{z:()=>n});var s=i(98067);const n=s.uF?'"Segoe WPC", "Segoe UI", sans-serif':s.zx?"-apple-system, BlinkMacSystemFont, sans-serif":'system-ui, "Ubuntu", "Droid Sans", sans-serif'},27661:(e,t,i)=>{"use strict";i.d(t,{S5:()=>n,n:()=>o,yk:()=>r});var s=i(8597);function n(e,t={}){const i=o(t);return i.textContent=e,i}function r(e,t={}){const i=o(t);return l(i,function(e,t){const i={type:1,children:[]};let s=0,n=i;const r=[],o=new a(e);for(;!o.eos();){let e=o.next();const i="\\"===e&&0!==h(o.peek(),t);if(i&&(e=o.next()),!i&&c(e,t)&&e===o.peek()){o.advance(),2===n.type&&(n=r.pop());const i=h(e,t);if(n.type===i||5===n.type&&6===i)n=r.pop();else{const e={type:i,children:[]};5===i&&(e.index=s,s++),n.children.push(e),r.push(n),n=e}}else if("\n"===e)2===n.type&&(n=r.pop()),n.children.push({type:8});else if(2!==n.type){const t={type:2,content:e};n.children.push(t),r.push(n),n=t}else n.content+=e}2===n.type&&(n=r.pop());r.length;return i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function o(e){const t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function l(e,t,i,n){let r;if(2===t.type)r=document.createTextNode(t.content||"");else if(3===t.type)r=document.createElement("b");else if(4===t.type)r=document.createElement("i");else if(7===t.type&&n)r=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");i.disposables.add(s.b2(e,"click",(e=>{i.callback(String(t.index),e)}))),r=e}else 8===t.type?r=document.createElement("br"):1===t.type&&(r=e);r&&e!==r&&e.appendChild(r),r&&Array.isArray(t.children)&&t.children.forEach((e=>{l(r,e,i,n)}))}function c(e,t){return 0!==h(e,t)}function h(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},34072:(e,t,i)=>{"use strict";i.d(t,{_:()=>r});var s=i(8597),n=i(5662);class r{constructor(){this._hooks=new n.Cm,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,r,o){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=o;let a=e;try{e.setPointerCapture(t),this._hooks.add((0,n.s)((()=>{try{e.releasePointerCapture(t)}catch(i){}})))}catch(l){a=s.zk(e)}this._hooks.add(s.ko(a,s.Bx.POINTER_MOVE,(e=>{e.buttons===i?(e.preventDefault(),this._pointerMoveCallback(e)):this.stopMonitoring(!0)}))),this._hooks.add(s.ko(a,s.Bx.POINTER_UP,(e=>this.stopMonitoring(!0))))}}},72962:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var s=i(60413),n=i(24939),r=i(42539),o=i(98067);const a=o.zx?256:2048,l=o.zx?2048:256;class c{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.("AltGraph"),this.keyCode=function(e){if(e.charCode){const t=String.fromCharCode(e.charCode).toUpperCase();return n.YM.fromString(t)}const t=e.keyCode;if(3===t)return 7;if(s.gm)switch(t){case 59:return 85;case 60:if(o.j9)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(o.zx)return 57}else if(s.Tc){if(o.zx&&93===t)return 57;if(!o.zx&&92===t)return 57}return n.uw[t]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=l),t|=e,t}_computeKeyCodeChord(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new r.dG(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},68214:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>A,R9:()=>P});var s=i(8597),n=i(83750),r=i(56245),o=i(27661),a=i(72962),l=i(47358),c=i(20370),h=i(64383),d=i(41234),u=i(16980),g=i(37882),p=i(96032),m=i(91090),f=i(5662);let _={};!function(){function e(e,t){t(_)}var t,i;e.amd=!0,t=this,i=function(e){function t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function i(t){e.defaults=t}e.defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};const s=/[&<>"']/,n=new RegExp(s.source,"g"),r=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,o=new RegExp(r.source,"g"),a={"&":"&","<":"<",">":">",'"':""","'":"'"},l=e=>a[e];function c(e,t){if(t){if(s.test(e))return e.replace(n,l)}else if(r.test(e))return e.replace(o,l);return e}const h=/(^|[^\[])\^/g;function d(e,t){let i="string"===typeof e?e:e.source;t=t||"";const s={replace:(e,t)=>{let n="string"===typeof t?t:t.source;return n=n.replace(h,"$1"),i=i.replace(e,n),s},getRegex:()=>new RegExp(i,t)};return s}function u(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const g={exec:()=>null};function p(e,t){const i=e.replace(/\|/g,((e,t,i)=>{let s=!1,n=t;for(;--n>=0&&"\\"===i[n];)s=!s;return s?"|":" |"})).split(/ \|/);let s=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(/\\\|/g,"|");return i}function m(e,t,i){const s=e.length;if(0===s)return"";let n=0;for(;n<s;){const r=e.charAt(s-n-1);if(r!==t||i){if(r===t||!i)break;n++}else n++}return e.slice(0,s-n)}function f(e,t,i,s){const n=t.href,r=t.title?c(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){s.state.inLink=!0;const e={type:"link",raw:i,href:n,title:r,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,e}return{type:"image",raw:i,href:n,title:r,text:c(o)}}class _{options;rules;lexer;constructor(t){this.options=t||e.defaults}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:m(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],i=function(e,t){const i=e.match(/^(\s+)(?:```)/);if(null===i)return t;const s=i[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[i]=t;return i.length>=s.length?e.slice(s.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=m(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:m(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=m(t[0],"\n").split("\n"),i="",s="";const n=[];for(;e.length>0;){let t=!1;const r=[];let o;for(o=0;o<e.length;o++)if(/^ {0,3}>/.test(e[o]))r.push(e[o]),t=!0;else{if(t)break;r.push(e[o])}e=e.slice(o);const a=r.join("\n"),l=a.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1").replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i}\n${a}`:a,s=s?`${s}\n${l}`:l;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,n,!0),this.lexer.state.top=c,0===e.length)break;const h=n[n.length-1];if("code"===h?.type)break;if("blockquote"===h?.type){const t=h,r=t.raw+"\n"+e.join("\n"),o=this.blockquote(r);n[n.length-1]=o,i=i.substring(0,i.length-t.raw.length)+o.raw,s=s.substring(0,s.length-t.text.length)+o.text;break}if("list"!==h?.type);else{const t=h,r=t.raw+"\n"+e.join("\n"),o=this.list(r);n[n.length-1]=o,i=i.substring(0,i.length-h.raw.length)+o.raw,s=s.substring(0,s.length-t.raw.length)+o.raw,e=r.substring(n[n.length-1].raw.length).split("\n")}}return{type:"blockquote",raw:i,tokens:n,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim();const s=i.length>1,n={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");const r=new RegExp(`^( {0,3}${i})((?:[\t ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;e;){let i=!1,s="",a="";if(!(t=r.exec(e)))break;if(this.rules.block.hr.test(e))break;s=t[0],e=e.substring(s.length);let l=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),c=e.split("\n",1)[0],h=!l.trim(),d=0;if(this.options.pedantic?(d=2,a=l.trimStart()):h?d=t[1].length+1:(d=t[2].search(/[^ ]/),d=d>4?1:d,a=l.slice(d),d+=t[1].length),h&&/^ *$/.test(c)&&(s+=c+"\n",e=e.substring(c.length+1),i=!0),!i){const t=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),i=new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),n=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),r=new RegExp(`^ {0,${Math.min(3,d-1)}}#`);for(;e;){const o=e.split("\n",1)[0];if(c=o,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),n.test(c))break;if(r.test(c))break;if(t.test(c))break;if(i.test(e))break;if(c.search(/[^ ]/)>=d||!c.trim())a+="\n"+c.slice(d);else{if(h)break;if(l.search(/[^ ]/)>=4)break;if(n.test(l))break;if(r.test(l))break;if(i.test(l))break;a+="\n"+c}h||c.trim()||(h=!0),s+=o+"\n",e=e.substring(o.length+1),l=c.slice(d)}}n.loose||(o?n.loose=!0:/\n *\n *$/.test(s)&&(o=!0));let u,g=null;this.options.gfm&&(g=/^\[[ xX]\] /.exec(a),g&&(u="[ ] "!==g[0],a=a.replace(/^\[[ xX]\] +/,""))),n.items.push({type:"list_item",raw:s,task:!!g,checked:u,loose:!1,text:a,tokens:[]}),n.raw+=s}n.items[n.items.length-1].raw=n.items[n.items.length-1].raw.trimEnd(),n.items[n.items.length-1].text=n.items[n.items.length-1].text.trimEnd(),n.raw=n.raw.trimEnd();for(let e=0;e<n.items.length;e++)if(this.lexer.state.top=!1,n.items[e].tokens=this.lexer.blockTokens(n.items[e].text,[]),!n.loose){const t=n.items[e].tokens.filter((e=>"space"===e.type)),i=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));n.loose=i}if(n.loose)for(let e=0;e<n.items.length;e++)n.items[e].loose=!0;return n}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:i,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const i=p(t[1]),s=t[2].replace(/^\||\| *$/g,"").split("|"),n=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===s.length){for(const e of s)/^ *-+: *$/.test(e)?r.align.push("right"):/^ *:-+: *$/.test(e)?r.align.push("center"):/^ *:-+ *$/.test(e)?r.align.push("left"):r.align.push(null);for(let e=0;e<i.length;e++)r.header.push({text:i[e],tokens:this.lexer.inline(i[e]),header:!0,align:r.align[e]});for(const e of n)r.rows.push(p(e,r.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:r.align[t]}))));return r}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:c(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=m(e.slice(0,-1),"\\");if((e.length-t.length)%2===0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let i=0;for(let s=0;s<e.length;s++)if("\\"===e[s])s++;else if(e[s]===t[0])i++;else if(e[s]===t[1]&&(i--,i<0))return s;return-1}(t[2],"()");if(e>-1){const i=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let i=t[2],s="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);e&&(i=e[1],s=e[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(i=this.options.pedantic&&!/>$/.test(e)?i.slice(1):i.slice(1,-1)),f(t,{href:i?i.replace(this.rules.inline.anyPunctuation,"$1"):i,title:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){const e=t[(i[2]||i[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=i[0].charAt(0);return{type:"text",raw:e,text:e}}return f(i,e,i[0],this.lexer)}}emStrong(e,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(s&&(!s[3]||!i.match(/[\p{L}\p{N}]/u))&&(!s[1]&&!s[2]||!i||this.rules.inline.punctuation.exec(i))){const i=[...s[0]].length-1;let n,r,o=i,a=0;const l="*"===s[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);null!=(s=l.exec(t));){if(n=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!n)continue;if(r=[...n].length,s[3]||s[4]){o+=r;continue}if((s[5]||s[6])&&i%3&&!((i+r)%3)){a+=r;continue}if(o-=r,o>0)continue;r=Math.min(r,r+o+a);const t=[...s[0]][0].length,l=e.slice(0,i+s.index+t+r);if(Math.min(i,r)%2){const e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}const c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const i=/[^ ]/.test(e),s=/^ /.test(e)&&/ $/.test(e);return i&&s&&(e=e.substring(1,e.length-1)),e=c(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,i;return"@"===t[2]?(e=c(t[1]),i="mailto:"+e):(e=c(t[1]),i=e),{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,i;if("@"===t[2])e=c(t[0]),i="mailto:"+e;else{let s;do{s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(s!==t[0]);e=c(t[0]),i="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:c(t[0]),{type:"text",raw:t[0],text:e}}}}const v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,C=/(?:[*+-]|\d{1,9}[.)])/,b=d(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,C).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),E=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,S=/(?!\s*\])(?:\\.|[^\[\]\\])+/,y=d(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",S).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),w=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,C).getRegex(),L="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",R=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,T=d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",R).replace("tag",L).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),x=d(E).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L).getRegex(),k={blockquote:d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",x).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:y,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:v,html:T,lheading:b,list:w,newline:/^(?: *(?:\n|$))+/,paragraph:x,table:g,text:/^[^\n]+/},A=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L).getRegex(),N={...k,table:A,paragraph:d(E).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",A).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L).getRegex()},I={...k,html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",R).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:g,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(E).replace("hr",v).replace("heading"," *#{1,6} *[^\n]").replace("lheading",b).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},O=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,D=/^( {2,}|\\)\n(?!\s*$)/,M="\\p{P}\\p{S}",P=d(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,M).getRegex(),F=d(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,M).getRegex(),U=d("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,M).getRegex(),H=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,M).getRegex(),B=d(/\\([punct])/,"gu").replace(/punct/g,M).getRegex(),W=d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),V=d(R).replace("(?:--\x3e|$)","--\x3e").getRegex(),z=d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,j=d(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",G).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),K=d(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",S).getRegex(),Y=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",S).getRegex(),q={_backpedal:g,anyPunctuation:B,autolink:W,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:D,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:g,emStrongLDelim:F,emStrongRDelimAst:U,emStrongRDelimUnd:H,escape:O,link:j,nolink:Y,punctuation:P,reflink:K,reflinkSearch:d("reflink|nolink(?!\\()","g").replace("reflink",K).replace("nolink",Y).getRegex(),tag:z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:g},$={...q,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",G).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G).getRegex()},Q={...q,escape:d(O).replace("])","~|])").getRegex(),url:d(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},X={...Q,br:d(D).replace("{2,}","*").getRegex(),text:d(Q.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Z={normal:k,gfm:N,pedantic:I},J={normal:q,gfm:Q,breaks:X,pedantic:$};class ee{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new _,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const i={block:Z.normal,inline:J.normal};this.options.pedantic?(i.block=Z.pedantic,i.inline=J.pedantic):this.options.gfm&&(i.block=Z.gfm,this.options.breaks?i.inline=J.breaks:i.inline=J.gfm),this.tokenizer.rules=i}static get rules(){return{block:Z,inline:J}}static lex(e,t){return new ee(t).lex(e)}static lexInline(e,t){return new ee(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],i=!1){let s,n,r;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,i)=>t+" ".repeat(i.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((i=>!!(s=i.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))))if(s=this.tokenizer.space(e))e=e.substring(s.raw.length),1===s.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(s);else if(s=this.tokenizer.code(e))e=e.substring(s.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(s):(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(s=this.tokenizer.fences(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.heading(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.hr(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.blockquote(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.list(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.html(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.def(e))e=e.substring(s.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title}):(n.raw+="\n"+s.raw,n.text+="\n"+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(s=this.tokenizer.table(e))e=e.substring(s.raw.length),t.push(s);else if(s=this.tokenizer.lheading(e))e=e.substring(s.raw.length),t.push(s);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const i=e.slice(1);let s;this.options.extensions.startBlock.forEach((e=>{s=e.call({lexer:this},i),"number"===typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(s=this.tokenizer.paragraph(r)))n=t[t.length-1],i&&"paragraph"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(s),i=r.length!==e.length,e=e.substring(s.raw.length);else if(s=this.tokenizer.text(e))e=e.substring(s.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(s);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let i,s,n,r,o,a,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,r.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(o||(a=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((s=>!!(i=s.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),s=t[t.length-1],s&&"text"===i.type&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),s=t[t.length-1],s&&"text"===i.type&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,l,a))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e))){if(n=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const i=e.slice(1);let s;this.options.extensions.startInline.forEach((e=>{s=e.call({lexer:this},i),"number"===typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(n=e.substring(0,t+1))}if(i=this.tokenizer.inlineText(n))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(a=i.raw.slice(-1)),o=!0,s=t[t.length-1],s&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(i.raw.length),t.push(i);return t}}class te{options;parser;constructor(t){this.options=t||e.defaults}space(e){return""}code({text:e,lang:t,escaped:i}){const s=(t||"").match(/^\S*/)?.[0],n=e.replace(/\n$/,"")+"\n";return s?'<pre><code class="language-'+c(s)+'">'+(i?n:c(n,!0))+"</code></pre>\n":"<pre><code>"+(i?n:c(n,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,i=e.start;let s="";for(let r=0;r<e.items.length;r++){const t=e.items[r];s+=this.listitem(t)}const n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+s+"</"+n+">\n"}listitem(e){let t="";if(e.task){const i=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&"paragraph"===e.tokens[0].type?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=i+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" "}):t+=i+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",i="";for(let n=0;n<e.header.length;n++)i+=this.tablecell(e.header[n]);t+=this.tablerow({text:i});let s="";for(let n=0;n<e.rows.length;n++){const t=e.rows[n];i="";for(let e=0;e<t.length;e++)i+=this.tablecell(t[e]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+s+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){const s=this.parser.parseInline(i),n=u(e);if(null===n)return s;let r='<a href="'+(e=n)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+s+"</a>",r}image({href:e,title:t,text:i}){const s=u(e);if(null===s)return i;let n=`<img src="${e=s}" alt="${i}"`;return t&&(n+=` title="${t}"`),n+=">",n}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class ie{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class se{options;renderer;textRenderer;constructor(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ie}static parse(e,t){return new se(t).parse(e)}static parseInline(e,t){return new se(t).parseInline(e)}parse(e,t=!0){let i="";for(let s=0;s<e.length;s++){const n=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){const e=n,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){i+=t||"";continue}}const r=n;switch(r.type){case"space":i+=this.renderer.space(r);continue;case"hr":i+=this.renderer.hr(r);continue;case"heading":i+=this.renderer.heading(r);continue;case"code":i+=this.renderer.code(r);continue;case"table":i+=this.renderer.table(r);continue;case"blockquote":i+=this.renderer.blockquote(r);continue;case"list":i+=this.renderer.list(r);continue;case"html":i+=this.renderer.html(r);continue;case"paragraph":i+=this.renderer.paragraph(r);continue;case"text":{let n=r,o=this.renderer.text(n);for(;s+1<e.length&&"text"===e[s+1].type;)n=e[++s],o+="\n"+this.renderer.text(n);i+=t?this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o}]}):o;continue}default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}parseInline(e,t){t=t||this.renderer;let i="";for(let s=0;s<e.length;s++){const n=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){const e=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){i+=e||"";continue}}const r=n;switch(r.type){case"escape":case"text":i+=t.text(r);break;case"html":i+=t.html(r);break;case"link":i+=t.link(r);break;case"image":i+=t.image(r);break;case"strong":i+=t.strong(r);break;case"em":i+=t.em(r);break;case"codespan":i+=t.codespan(r);break;case"br":i+=t.br(r);break;case"del":i+=t.del(r);break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}}class ne{options;constructor(t){this.options=t||e.defaults}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}class re{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(ee.lex,se.parse);parseInline=this.parseMarkdown(ee.lexInline,se.parseInline);Parser=se;Renderer=te;TextRenderer=ie;Lexer=ee;Tokenizer=_;Hooks=ne;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(const s of e)switch(i=i.concat(t.call(this,s)),s.type){case"table":{const e=s;for(const s of e.header)i=i.concat(this.walkTokens(s.tokens,t));for(const s of e.rows)for(const e of s)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=s;i=i.concat(this.walkTokens(e.items,t));break}default:{const e=s;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((s=>{const n=e[s].flat(1/0);i=i.concat(this.walkTokens(n,t))})):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const i={...e};if(i.async=this.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const i=t.renderers[e.name];t.renderers[e.name]=i?function(...t){let s=e.renderer.apply(this,t);return!1===s&&(s=i.apply(this,t)),s}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const i=t[e.level];i?i.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),i.extensions=t),e.renderer){const t=this.defaults.renderer||new te(this.defaults);for(const i in e.renderer){if(!(i in t))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;const s=i,n=e.renderer[s],r=t[s];t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i||""}}i.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new _(this.defaults);for(const i in e.tokenizer){if(!(i in t))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const s=i,n=e.tokenizer[s],r=t[s];t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i}}i.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new ne;for(const i in e.hooks){if(!(i in t))throw new Error(`hook '${i}' does not exist`);if("options"===i)continue;const s=i,n=e.hooks[s],r=t[s];ne.passThroughHooks.has(i)?t[s]=e=>{if(this.defaults.async)return Promise.resolve(n.call(t,e)).then((e=>r.call(t,e)));const i=n.call(t,e);return r.call(t,i)}:t[s]=(...e)=>{let i=n.apply(t,e);return!1===i&&(i=r.apply(t,e)),i}}i.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,s=e.walkTokens;i.walkTokens=function(e){let i=[];return i.push(s.call(this,e)),t&&(i=i.concat(t.call(this,e))),i}}this.defaults={...this.defaults,...i}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ee.lex(e,t??this.defaults)}parser(e,t){return se.parse(e,t??this.defaults)}parseMarkdown(e,t){return(i,s)=>{const n={...s},r={...this.defaults,...n},o=this.onError(!!r.silent,!!r.async);if(!0===this.defaults.async&&!1===n.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if("undefined"===typeof i||null===i)return o(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof i)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(r.hooks&&(r.hooks.options=r),r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(i):i).then((t=>e(t,r))).then((e=>r.hooks?r.hooks.processAllTokens(e):e)).then((e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then((()=>e)):e)).then((e=>t(e,r))).then((e=>r.hooks?r.hooks.postprocess(e):e)).catch(o);try{r.hooks&&(i=r.hooks.preprocess(i));let s=e(i,r);r.hooks&&(s=r.hooks.processAllTokens(s)),r.walkTokens&&this.walkTokens(s,r.walkTokens);let n=t(s,r);return r.hooks&&(n=r.hooks.postprocess(n)),n}catch(a){return o(a)}}}onError(e,t){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+c(i.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(i);throw i}}}const oe=new re;function ae(e,t){return oe.parse(e,t)}ae.options=ae.setOptions=function(e){return oe.setOptions(e),ae.defaults=oe.defaults,i(ae.defaults),ae},ae.getDefaults=t,ae.defaults=e.defaults,ae.use=function(...e){return oe.use(...e),ae.defaults=oe.defaults,i(ae.defaults),ae},ae.walkTokens=function(e,t){return oe.walkTokens(e,t)},ae.parseInline=oe.parseInline,ae.Parser=se,ae.parser=se.parse,ae.Renderer=te,ae.TextRenderer=ie,ae.Lexer=ee,ae.lexer=ee.lex,ae.Tokenizer=_,ae.Hooks=ne,ae.parse=ae;const le=ae.options,ce=ae.setOptions,he=ae.use,de=ae.walkTokens,ue=ae.parseInline,ge=ae,pe=se.parse,me=ee.lex;e.Hooks=ne,e.Lexer=ee,e.Marked=re,e.Parser=se,e.Renderer=te,e.TextRenderer=ie,e.Tokenizer=_,e.getDefaults=t,e.lexer=me,e.marked=ae,e.options=le,e.parse=ge,e.parseInline=ue,e.parser=pe,e.setOptions=ce,e.use=he,e.walkTokens=de},e.amd?e(0,i):"object"===typeof exports?i(exports):i((t="undefined"!==typeof globalThis?globalThis:t||self).marked={})}();_.Hooks||exports.Hooks,_.Lexer||exports.Lexer,_.Marked||exports.Marked,_.Parser||exports.Parser;var v=_.Renderer||exports.Renderer,C=(_.TextRenderer||exports.TextRenderer,_.Tokenizer||exports.Tokenizer,_.defaults||exports.defaults),b=(_.getDefaults||exports.getDefaults,_.lexer||exports.lexer),E=(_.marked||exports.marked,_.options||exports.options,_.parse||exports.parse),S=(_.parseInline||exports.parseInline,_.parser||exports.parser),y=(_.setOptions||exports.setOptions,_.use||exports.use,_.walkTokens||exports.walkTokens,i(908)),w=i(36456),L=i(10146),R=i(89403),T=i(91508),x=i(79400);const k=Object.freeze({image:({href:e,title:t,text:i})=>{let s=[],n=[];return e&&(({href:e,dimensions:s}=(0,u.nI)(e)),n.push(`src="${(0,u.oO)(e)}"`)),i&&n.push(`alt="${(0,u.oO)(i)}"`),t&&n.push(`title="${(0,u.oO)(t)}"`),s.length&&(n=n.concat(s)),"<img "+n.join(" ")+">"},paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>`},link({href:e,title:t,tokens:i}){let s=this.parser.parseInline(i);return"string"!==typeof e?"":(e===s&&(s=(0,u._W)(s)),t="string"===typeof t?(0,u.oO)((0,u._W)(t)):"",`<a href="${e=(e=(0,u._W)(e)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${t||e}" draggable="false">${s}</a>`)}});function A(e,t={},i={}){const n=new f.Cm;let u=!1;const m=(0,o.n)(t),_=function(t){let i;try{i=(0,y.qg)(decodeURIComponent(t))}catch(s){}return i?(i=(0,L.PI)(i,(t=>e.uris&&e.uris[t]?x.r.revive(e.uris[t]):void 0)),encodeURIComponent(JSON.stringify(i))):t},R=function(t,i){const s=e.uris&&e.uris[t];let n=x.r.revive(s);return i?t.startsWith(w.ny.data+":")?t:(n||(n=x.r.parse(t)),w.zl.uriToBrowserUri(n).toString(!0)):n?x.r.parse(t).toString()===n.toString()?t:(n.query&&(n=n.with({query:_(n.query)})),n.toString()):t},A=new v;A.image=k.image,A.link=k.link,A.paragraph=k.paragraph;const O=[],M=[];if(t.codeBlockRendererSync?A.code=({text:e,lang:i})=>{const s=p.r.nextId(),n=t.codeBlockRendererSync(N(i),e);return M.push([s,n]),`<div class="code" data-code="${s}">${(0,T.ih)(e)}</div>`}:t.codeBlockRenderer&&(A.code=({text:e,lang:i})=>{const s=p.r.nextId(),n=t.codeBlockRenderer(N(i),e);return O.push(n.then((e=>[s,e]))),`<div class="code" data-code="${s}">${(0,T.ih)(e)}</div>`}),t.actionHandler){const i=function(i){let s=i.target;if("A"===s.tagName||(s=s.parentElement,s&&"A"===s.tagName))try{let n=s.dataset.href;n&&(e.baseUri&&(n=I(x.r.from(e.baseUri),n)),t.actionHandler.callback(n,i))}catch(n){(0,h.dz)(n)}finally{i.preventDefault()}},n=t.actionHandler.disposables.add(new r.f(m,"click")),o=t.actionHandler.disposables.add(new r.f(m,"auxclick"));t.actionHandler.disposables.add(d.Jh.any(n.event,o.event)((e=>{const t=new l.P(s.zk(m),e);(t.leftButton||t.middleButton)&&i(t)}))),t.actionHandler.disposables.add(s.ko(m,"keydown",(e=>{const t=new a.Z(e);(t.equals(10)||t.equals(3))&&i(t)})))}e.supportHtml||(A.html=({text:i})=>{if(t.sanitizerOptions?.replaceWithPlaintext)return(0,T.ih)(i);return(e.isTrusted?i.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?i:""}),i.renderer=A;let P,F=e.value??"";if(F.length>1e5&&(F=`${F.substr(0,1e5)}\u2026`),e.supportThemeIcons&&(F=(0,g.sA)(F)),t.fillInIncompleteTokens){const e={...C,...i},t=function(e){for(let t=0;t<j;t++){const t=K(e);if(!t)break;e=t}return e}(b(F,e));P=S(t,e)}else P=E(F,{...i,async:!1});if(e.supportThemeIcons){P=(0,c.n)(P).map((e=>"string"===typeof e?e:e.outerHTML)).join("")}const U=(new DOMParser).parseFromString(D({isTrusted:e.isTrusted,...t.sanitizerOptions},P),"text/html");if(U.body.querySelectorAll("img, audio, video, source").forEach((i=>{const n=i.getAttribute("src");if(n){let o=n;try{e.baseUri&&(o=I(x.r.from(e.baseUri),o))}catch(r){}if(i.setAttribute("src",R(o,!0)),t.remoteImageIsAllowed){const e=x.r.parse(o);e.scheme===w.ny.file||e.scheme===w.ny.data||t.remoteImageIsAllowed(e)||i.replaceWith(s.$("",void 0,i.outerHTML))}}})),U.body.querySelectorAll("a").forEach((t=>{const i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let s=R(i,!1);e.baseUri&&(s=I(x.r.from(e.baseUri),i)),t.dataset.href=s}})),m.innerHTML=D({isTrusted:e.isTrusted,...t.sanitizerOptions},U.body.innerHTML),O.length>0)Promise.all(O).then((e=>{if(u)return;const i=new Map(e),n=m.querySelectorAll("div[data-code]");for(const t of n){const e=i.get(t.dataset.code??"");e&&s.Ln(t,e)}t.asyncRenderCallback?.()}));else if(M.length>0){const e=new Map(M),t=m.querySelectorAll("div[data-code]");for(const i of t){const t=e.get(i.dataset.code??"");t&&s.Ln(i,t)}}if(t.asyncRenderCallback)for(const r of m.getElementsByTagName("img")){const e=n.add(s.ko(r,"load",(()=>{e.dispose(),t.asyncRenderCallback()})))}return{element:m,dispose:()=>{u=!0,n.dispose()}}}function N(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function I(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,R.o1)(e,t).toString():(0,R.o1)((0,R.pD)(e),t).toString()}const O=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function D(e,t){const{config:i,allowedSchemes:r}=function(e){const t=[w.ny.http,w.ny.https,w.ny.mailto,w.ny.data,w.ny.file,w.ny.vscodeFileResource,w.ny.vscodeRemote,w.ny.vscodeRemoteResource];e.isTrusted&&t.push(w.ny.command);return{config:{ALLOWED_TAGS:e.allowedTags??[...s.TT],ALLOWED_ATTR:M,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e),o=new f.Cm;o.add(ie("uponSanitizeAttribute",((e,t)=>{if("style"!==t.attrName&&"class"!==t.attrName){if("INPUT"===e.tagName&&"checkbox"===e.attributes.getNamedItem("type")?.value){if("type"===t.attrName&&"checkbox"===t.attrValue||"disabled"===t.attrName||"checked"===t.attrName)return void(t.keepAttr=!0);t.keepAttr=!1}}else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(border-radius:[0-9]+px;)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}}))),o.add(ie("uponSanitizeElement",((t,i)=>{if("input"===i.tagName&&("checkbox"===t.attributes.getNamedItem("type")?.value?t.setAttribute("disabled",""):e.replaceWithPlaintext||t.remove()),e.replaceWithPlaintext&&!i.allowedTags[i.tagName]&&"body"!==i.tagName&&t.parentElement){let e,s;if("#comment"===i.tagName)e=`\x3c!--${t.textContent}--\x3e`;else{const n=O.includes(i.tagName),r=t.attributes.length?" "+Array.from(t.attributes).map((e=>`${e.name}="${e.value}"`)).join(" "):"";e=`<${i.tagName}${r}>`,n||(s=`</${i.tagName}>`)}const n=document.createDocumentFragment(),r=t.parentElement.ownerDocument.createTextNode(e);n.appendChild(r);const o=s?t.parentElement.ownerDocument.createTextNode(s):void 0;for(;t.firstChild;)n.appendChild(t.firstChild);o&&n.appendChild(o),t.nodeType===Node.COMMENT_NODE?t.parentElement.insertBefore(n,t):t.parentElement.replaceChild(n,t)}}))),o.add(s.a4(r));try{return n.aj(t,{...i,RETURN_TRUSTED_TYPE:!0})}finally{o.dispose()}}const M=["align","autoplay","alt","checked","class","colspan","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","rowspan","src","style","target","title","type","width","start"];function P(e){return"string"===typeof e?e:function(e,t){let i=e.value??"";i.length>1e5&&(i=`${i.substr(0,1e5)}\u2026`);return D({isTrusted:!1},E(i,{async:!1,renderer:t?B.value:H.value}).replace(/&(#\d+|[a-zA-Z]+);/g,(e=>F.get(e)??e))).toString()}(e)}const F=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]);function U(){const e=new v;return e.code=({text:e})=>e,e.blockquote=({text:e})=>e+"\n",e.html=e=>"",e.heading=function({tokens:e}){return this.parser.parseInline(e)+"\n"},e.hr=()=>"",e.list=function({items:e}){return e.map((e=>this.listitem(e))).join("\n")+"\n"},e.listitem=({text:e})=>e+"\n",e.paragraph=function({tokens:e}){return this.parser.parseInline(e)+"\n"},e.table=function({header:e,rows:t}){return e.map((e=>this.tablecell(e))).join(" ")+"\n"+t.map((e=>e.map((e=>this.tablecell(e))).join(" "))).join("\n")+"\n"},e.tablerow=({text:e})=>e,e.tablecell=function({tokens:e}){return this.parser.parseInline(e)},e.strong=({text:e})=>e,e.em=({text:e})=>e,e.codespan=({text:e})=>e,e.br=e=>"\n",e.del=({text:e})=>e,e.image=e=>"",e.text=({text:e})=>e,e.link=({text:e})=>e,e}const H=new m.d((e=>U())),B=new m.d((()=>{const e=U();return e.code=({text:e})=>`\n\`\`\`\n${e}\n\`\`\`\n`,e}));function W(e){let t="";return e.forEach((e=>{t+=e.raw})),t}function V(e){if(e.tokens)for(let t=e.tokens.length-1;t>=0;t--){const i=e.tokens[t];if("text"===i.type){const s=i.raw.split("\n"),n=s[s.length-1];if(n.includes("`"))return Y(e);if(n.includes("**"))return ee(e,"**");if(n.match(/\*\w/))return q(e);if(n.match(/(^|\s)__\w/))return J(e);if(n.match(/(^|\s)_\w/))return $(e);if(n.match(/(^|\s)\[.*\]\(\w*/)||z(n)&&e.tokens.slice(0,t).some((e=>"text"===e.type&&e.raw.match(/\[[^\]]*$/)))){const i=e.tokens.slice(t+1);return"link"===i[0]?.type&&"text"===i[1]?.type&&i[1].raw.match(/^ *"[^"]*$/)||n.match(/^[^"]* +"[^"]*$/)?X(e):Q(e)}if(n.match(/(^|\s)\[\w*/))return Z(e)}}}function z(e){return!!e.match(/^[^\[]*\]\([^\)]*$/)}function G(e){const t=e.items[e.items.length-1],i=t.tokens?t.tokens[t.tokens.length-1]:void 0;let s;if("text"!==i?.type||"inRawBlock"in t||(s=V(i)),!s||"paragraph"!==s.type)return;const n=W(e.items.slice(0,-1)),r=t.raw.match(/^(\s*(-|\d+\.|\*) +)/)?.[0];if(!r)return;const o=r+W(t.tokens.slice(0,-1))+s.raw,a=b(n+o)[0];return"list"===a.type?a:void 0}const j=3;function K(e){let t,i;for(t=0;t<e.length;t++){const s=e[t];if("paragraph"===s.type&&s.raw.match(/(\n|^)\|/)){i=te(e.slice(t));break}if(t===e.length-1&&"list"===s.type){const e=G(s);if(e){i=[e];break}}if(t===e.length-1&&"paragraph"===s.type){const e=V(s);if(e){i=[e];break}}}if(i){const s=[...e.slice(0,t),...i];return s.links=e.links,s}return null}function Y(e){return ee(e,"`")}function q(e){return ee(e,"*")}function $(e){return ee(e,"_")}function Q(e){return ee(e,")")}function X(e){return ee(e,'")')}function Z(e){return ee(e,"](https://microsoft.com)")}function J(e){return ee(e,"__")}function ee(e,t){const i=W(Array.isArray(e)?e:[e]);return b(i+t)[0]}function te(e){const t=W(e),i=t.split("\n");let s,n=!1;for(let r=0;r<i.length;r++){const e=i[r].trim();if("undefined"===typeof s&&e.match(/^\s*\|/)){const t=e.match(/(\|[^\|]+)(?=\||$)/g);t&&(s=t.length)}else if("number"===typeof s){if(!e.match(/^\s*\|/))return;if(r!==i.length-1)return;n=!0}}if("number"===typeof s&&s>0){const e=n?i.slice(0,-1).join("\n"):t,r=!!e.match(/\|\s*$/),o=e+(r?"":"|")+`\n|${" --- |".repeat(s)}`;return b(o)}}function ie(e,t){return n.$w(e,t),(0,f.s)((()=>n.SV(e)))}},47358:(e,t,i)=>{"use strict";i.d(t,{P:()=>l,$:()=>c});var s=i(60413);const n=new WeakMap;function r(e){if(!e.parent||e.parent===e)return null;try{const t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return null}catch(t){return null}return e.parent}class o{static getSameOriginWindowChain(e){let t=n.get(e);if(!t){t=[],n.set(e,t);let i,s=e;do{i=r(s),i?t.push({window:new WeakRef(s),iframeElement:s.frameElement||null}):t.push({window:new WeakRef(s),iframeElement:null}),s=i}while(s)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,s=0;const n=this.getSameOriginWindowChain(e);for(const r of n){const e=r.window.deref();if(i+=e?.scrollY??0,s+=e?.scrollX??0,e===t)break;if(!r.iframeElement)break;const n=r.iframeElement.getBoundingClientRect();i+=n.top,s+=n.left}return{top:i,left:s}}}var a=i(98067);class l{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=0===t.button,this.middleButton=1===t.button,this.rightButton=2===t.button,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,"dblclick"===t.type&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,"number"===typeof t.pageX?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=o.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class c{constructor(e,t=0,i=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let n=!1;if(s.H8){const e=navigator.userAgent.match(/Chrome\/(\d+)/);n=(e?parseInt(e[1]):123)<=122}if(e){const t=e,i=e,r=e.view?.devicePixelRatio||1;if("undefined"!==typeof t.wheelDeltaY)this.deltaY=n?t.wheelDeltaY/(120*r):t.wheelDeltaY/120;else if("undefined"!==typeof i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?s.gm&&!a.zx?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if("undefined"!==typeof t.wheelDeltaX)s.nr&&a.uF?this.deltaX=-t.wheelDeltaX/120:this.deltaX=n?t.wheelDeltaX/(120*r):t.wheelDeltaX/120;else if("undefined"!==typeof i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?s.gm&&!a.zx?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=n?e.wheelDelta/(120*r):e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}}},5239:(e,t,i)=>{"use strict";var s;i.d(t,{p:()=>s}),function(e){const t={total:0,min:Number.MAX_VALUE,max:0},i={...t},s={...t},n={...t};let r=0;const o={keydown:0,input:0,render:0};function a(){1===o.keydown&&(performance.mark("keydown/end"),o.keydown=2)}function l(){performance.mark("input/start"),o.input=1,d()}function c(){1===o.input&&(performance.mark("input/end"),o.input=2)}function h(){1===o.render&&(performance.mark("render/end"),o.render=2)}function d(){setTimeout(u)}function u(){2===o.keydown&&2===o.input&&2===o.render&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),g("keydown",t),g("input",i),g("render",s),g("inputlatency",n),r++,performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),o.keydown=0,o.input=0,o.render=0)}function g(e,t){const i=performance.getEntriesByName(e)[0].duration;t.total+=i,t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}function p(e){return{average:e.total/r,max:e.max,min:e.min}}function m(e){e.total=0,e.min=Number.MAX_VALUE,e.max=0}e.onKeyDown=function(){u(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),o.keydown=1,queueMicrotask(a)},e.onBeforeInput=l,e.onInput=function(){0===o.input&&l(),queueMicrotask(c)},e.onKeyUp=function(){u()},e.onSelectionChange=function(){u()},e.onRenderStart=function(){2===o.keydown&&2===o.input&&0===o.render&&(performance.mark("render/start"),o.render=1,queueMicrotask(h),d())},e.getAndClearMeasurements=function(){if(0===r)return;const e={keydown:p(t),input:p(i),render:p(s),total:p(n),sampleCount:r};return m(t),m(i),m(s),m(n),r=0,e}}(s||(s={}))},94106:(e,t,i)=>{"use strict";i.d(t,{c:()=>l});var s=i(8597),n=i(41234),r=i(5662);class o extends r.jG{constructor(e){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){this._mediaQueryList?.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class a extends r.jG{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new o(e));this._register(t.onDidChange((()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)})))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}}const l=new class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=(0,s.Q2)(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,r.lC)(new a(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,r.lC)(n.Jh.once(s.Fv)((({vscodeWindowId:e})=>{e===t&&(i?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}},25154:(e,t,i)=>{"use strict";i.d(t,{B:()=>s,q:()=>u});var s,n=i(8597),r=i(25893),o=i(25890),a=i(58694),l=i(41234),c=i(5662),h=i(58925),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(s||(s={}));class u extends c.jG{static{this.SCROLL_FRICTION=-.005}static{this.HOLD_DELAY=700}static{this.CLEAR_TAP_COUNT_TIME=400}constructor(){super(),this.dispatched=!1,this.targets=new h.w,this.ignoreTargets=new h.w,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(l.Jh.runAndSubscribe(n.Iv,(({window:e,disposables:t})=>{t.add(n.ko(e.document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),t.add(n.ko(e.document,"touchend",(t=>this.onTouchEnd(e,t)))),t.add(n.ko(e.document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}),{window:r.G,disposables:this._store}))}static addTarget(e){if(!u.isTouchDevice())return c.jG.None;u.INSTANCE||(u.INSTANCE=(0,c.lC)(new u));const t=u.INSTANCE.targets.push(e);return(0,c.s)(t)}static ignoreTarget(e){if(!u.isTouchDevice())return c.jG.None;u.INSTANCE||(u.INSTANCE=(0,c.lC)(new u));const t=u.INSTANCE.ignoreTargets.push(e);return(0,c.s)(t)}static isTouchDevice(){return"ontouchstart"in r.G||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,n=e.targetTouches.length;i<n;i++){const n=e.targetTouches.item(i);this.activeTouches[n.identifier]={id:n.identifier,initialTarget:n.target,initialTimeStamp:t,initialPageX:n.pageX,initialPageY:n.pageY,rollingTimestamps:[t],rollingPageX:[n.pageX],rollingPageY:[n.pageY]};const r=this.newGestureEvent(s.Start,n.target);r.pageX=n.pageX,r.pageY=n.pageY,this.dispatchEvent(r)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e,t){const i=Date.now(),n=Object.keys(this.activeTouches).length;for(let r=0,a=t.changedTouches.length;r<a;r++){const a=t.changedTouches.item(r);if(!this.activeTouches.hasOwnProperty(String(a.identifier))){console.warn("move of an UNKNOWN touch",a);continue}const l=this.activeTouches[a.identifier],c=Date.now()-l.initialTimeStamp;if(c<u.HOLD_DELAY&&Math.abs(l.initialPageX-o.RT(l.rollingPageX))<30&&Math.abs(l.initialPageY-o.RT(l.rollingPageY))<30){const e=this.newGestureEvent(s.Tap,l.initialTarget);e.pageX=o.RT(l.rollingPageX),e.pageY=o.RT(l.rollingPageY),this.dispatchEvent(e)}else if(c>=u.HOLD_DELAY&&Math.abs(l.initialPageX-o.RT(l.rollingPageX))<30&&Math.abs(l.initialPageY-o.RT(l.rollingPageY))<30){const e=this.newGestureEvent(s.Contextmenu,l.initialTarget);e.pageX=o.RT(l.rollingPageX),e.pageY=o.RT(l.rollingPageY),this.dispatchEvent(e)}else if(1===n){const t=o.RT(l.rollingPageX),s=o.RT(l.rollingPageY),n=o.RT(l.rollingTimestamps)-l.rollingTimestamps[0],r=t-l.rollingPageX[0],a=s-l.rollingPageY[0],c=[...this.targets].filter((e=>l.initialTarget instanceof Node&&e.contains(l.initialTarget)));this.inertia(e,c,i,Math.abs(r)/n,r>0?1:-1,t,Math.abs(a)/n,a>0?1:-1,s)}this.dispatchEvent(this.newGestureEvent(s.End,l.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===s.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>u.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==s.Change&&e.type!==s.Contextmenu||(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const i of this.ignoreTargets)if(i.contains(e.initialTarget))return;const t=[];for(const i of this.targets)if(i.contains(e.initialTarget)){let s=0,n=e.initialTarget;for(;n&&n!==i;)s++,n=n.parentElement;t.push([s,i])}t.sort(((e,t)=>e[0]-t[0]));for(const[i,s]of t)s.dispatchEvent(e),this.dispatched=!0}}inertia(e,t,i,r,o,a,l,c,h){this.handle=n.PG(e,(()=>{const n=Date.now(),d=n-i;let g=0,p=0,m=!0;r+=u.SCROLL_FRICTION*d,l+=u.SCROLL_FRICTION*d,r>0&&(m=!1,g=o*r*d),l>0&&(m=!1,p=c*l*d);const f=this.newGestureEvent(s.Change);f.translationX=g,f.translationY=p,t.forEach((e=>e.dispatchEvent(f))),m||this.inertia(e,t,n,r,o,a+g,l,c,h+p)}))}onTouchMove(e){const t=Date.now();for(let i=0,n=e.changedTouches.length;i<n;i++){const n=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(n.identifier))){console.warn("end of an UNKNOWN touch",n);continue}const r=this.activeTouches[n.identifier],a=this.newGestureEvent(s.Change,r.initialTarget);a.translationX=n.pageX-o.RT(r.rollingPageX),a.translationY=n.pageY-o.RT(r.rollingPageY),a.pageX=n.pageX,a.pageY=n.pageY,this.dispatchEvent(a),r.rollingPageX.length>3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(n.pageX),r.rollingPageY.push(n.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}d([a.B],u,"isTouchDevice",null)},80789:(e,t,i)=>{"use strict";i.d(t,{H:()=>n});var s=i(64383);function n(e,t){const i=globalThis.MonacoEnvironment;if(i?.createTrustedTypesPolicy)try{return i.createTrustedTypesPolicy(e,t)}catch(n){return void(0,s.dz)(n)}try{return globalThis.trustedTypes?.createPolicy(e,t)}catch(n){return void(0,s.dz)(n)}}},5646:(e,t,i)=>{"use strict";i.d(t,{Z4:()=>k,EH:()=>x,XF:()=>A});var s=i(60413),n=i(42731),r=i(8597),o=i(25154),a=i(42904),l=i(56245),c=i(72962),h=i(68214),d=i(48196),u=i(93090),g=i(25890),p=i(41234),m=i(24939),f=i(5662),_=i(98067),v=i(78209);const C=r.$,b="selectOption.entry.template";class E{get templateId(){return b}renderTemplate(e){const t=Object.create(null);return t.root=e,t.text=r.BC(e,C(".option-text")),t.detail=r.BC(e,C(".option-detail")),t.decoratorRight=r.BC(e,C(".option-decorator-right")),t}renderElement(e,t,i){const s=i,n=e.text,r=e.detail,o=e.decoratorRight,a=e.isDisabled;s.text.textContent=n,s.detail.textContent=r||"",s.decoratorRight.innerText=o||"",a?s.root.classList.add("option-disabled"):s.root.classList.remove("option-disabled")}disposeTemplate(e){}}class S extends f.jG{static{this.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN=32}static{this.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN=2}static{this.DEFAULT_MINIMUM_VISIBLE_OPTIONS=3}constructor(e,t,i,s,n){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=s,this.selectBoxOptions=n||Object.create(null),"number"!==typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=S.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new p.vl,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}setTitle(e){!this._hover&&e?this._hover=this._register((0,d.i)().setupManagedHover((0,a.nZ)("mouse"),this.selectElement,e)):this._hover&&this._hover.update(e)}getHeight(){return 22}getTemplateId(){return b}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=r.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=r.BC(this.selectDropDownContainer,C(".select-box-details-pane"));const t=r.BC(this.selectDropDownContainer,C(".select-box-dropdown-container-width-control")),i=r.BC(t,C(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",r.BC(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=r.li(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(r.ko(this.selectDropDownContainer,r.Bx.DRAG_START,(e=>{r.fs.stop(e,!0)})))}registerListeners(){let e;this._register(r.b2(this.selectElement,"change",(e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}))),this._register(r.ko(this.selectElement,r.Bx.CLICK,(e=>{r.fs.stop(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(r.ko(this.selectElement,r.Bx.MOUSE_DOWN,(e=>{r.fs.stop(e)}))),this._register(r.ko(this.selectElement,"touchstart",(t=>{e=this._isVisible}))),this._register(r.ko(this.selectElement,"touchend",(t=>{r.fs.stop(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(r.ko(this.selectElement,r.Bx.KEY_DOWN,(e=>{const t=new c.Z(e);let i=!1;_.zx?18!==t.keyCode&&16!==t.keyCode&&10!==t.keyCode&&3!==t.keyCode||(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),r.fs.stop(e,!0))})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){g.aI(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"===typeof e.description&&(this._hasDetails=!0)}))),void 0!==t&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){this.selectList?.splice(0,this.selectList.length,this.options)}select(e){e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const e=[];this.styles.listFocusBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=e.join("\n")}styleSelectElement(){const e=this.styles.selectBackground??"",t=this.styles.selectForeground??"",i=this.styles.selectBorder??"";this.selectElement.style.backgroundColor=e,this.selectElement.style.color=t,this.selectElement.style.borderColor=i}styleList(){const e=this.styles.selectBackground??"",t=r.gI(this.styles.selectListBackground,e);this.selectDropDownListContainer.style.backgroundColor=t,this.selectionDetailsPane.style.backgroundColor=t;const i=this.styles.focusBorder??"";this.selectDropDownContainer.style.outlineColor=i,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){const s=document.createElement("option");return s.value=e,s.text=e,s.disabled=!!i,s}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{this.selectDropDownContainer.remove()}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach(((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)})),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=r.zk(this.selectElement),i=r.BK(this.selectElement),s=r.zk(this.selectElement).getComputedStyle(this.selectElement),n=parseFloat(s.getPropertyValue("--dropdown-padding-top"))+parseFloat(s.getPropertyValue("--dropdown-padding-bottom")),o=t.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),a=i.top-S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,l=this.selectElement.offsetWidth,c=this.setWidthControlElement(this.widthControlElement),h=Math.max(c,Math.round(l)).toString()+"px";this.selectDropDownContainer.style.width=h,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let d=this.selectList.contentHeight;this._hasDetails&&void 0===this._cachedMaxDetailsHeight&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const u=this._hasDetails?this._cachedMaxDetailsHeight:0,g=d+n+u,p=Math.floor((o-n-u)/this.getHeight()),m=Math.floor((a-n-u)/this.getHeight());if(e)return!(i.top+i.height>t.innerHeight-22||i.top<S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||p<1&&m<1)&&(p<S.DEFAULT_MINIMUM_VISIBLE_OPTIONS&&m>p&&this.options.length>p?(this._dropDownPosition=1,this.selectDropDownListContainer.remove(),this.selectionDetailsPane.remove(),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownListContainer.remove(),this.selectionDetailsPane.remove(),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(i.top+i.height>t.innerHeight-22||i.top<S.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||0===this._dropDownPosition&&p<1||1===this._dropDownPosition&&m<1)return this.hideSelectDropDown(!0),!1;if(0===this._dropDownPosition){if(this._isVisible&&p+m<1)return this.hideSelectDropDown(!0),!1;g>o&&(d=p*this.getHeight())}else g>a&&(d=m*this.getHeight());return this.selectList.layout(d),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=d+n+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=d+n+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=h,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}return!1}setWidthControlElement(e){let t=0;if(e){let i=0,s=0;this.options.forEach(((e,t)=>{const n=e.detail?e.detail.length:0,r=e.decoratorRight?e.decoratorRight.length:0,o=e.text.length+n+r;o>s&&(i=t,s=o)})),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=r.Tr(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=r.BC(e,C(".select-box-dropdown-list-container")),this.listRenderer=new E,this.selectList=this._register(new u.B8("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.detail&&(t+=`. ${e.detail}`),e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>(0,v.kg)({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>_.zx?"":"option",getWidgetRole:()=>"listbox"}})),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=this._register(new l.f(this.selectDropDownListContainer,"keydown")),i=p.Jh.chain(t.event,(e=>e.filter((()=>this.selectList.length>0)).map((e=>new c.Z(e)))));this._register(p.Jh.chain(i,(e=>e.filter((e=>3===e.keyCode))))(this.onEnter,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>2===e.keyCode))))(this.onEnter,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>9===e.keyCode))))(this.onEscape,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>16===e.keyCode))))(this.onUpArrow,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>18===e.keyCode))))(this.onDownArrow,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>12===e.keyCode))))(this.onPageDown,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>11===e.keyCode))))(this.onPageUp,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>14===e.keyCode))))(this.onHome,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>13===e.keyCode))))(this.onEnd,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=85&&e.keyCode<=113))))(this.onCharacter,this)),this._register(r.ko(this.selectList.getHTMLElement(),r.Bx.POINTER_UP,(e=>this.onPointerUp(e)))),this._register(this.selectList.onMouseOver((e=>"undefined"!==typeof e.index&&this.selectList.setFocus([e.index])))),this._register(this.selectList.onDidChangeFocus((e=>this.onListFocus(e)))),this._register(r.ko(this.selectDropDownContainer,r.Bx.FOCUS_OUT,(e=>{this._isVisible&&!r.QX(e.relatedTarget,this.selectDropDownContainer)&&this.onListBlur()}))),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;r.fs.stop(e);const t=e.target;if(!t)return;if(t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const s=Number(i.getAttribute("data-index")),n=i.classList.contains("option-disabled");s>=0&&s<this.options.length&&!n&&(this.selected=s,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0))}onListBlur(){this._sticky||(this.selected!==this._currentSelection&&this.select(this._currentSelection),this.hideSelectDropDown(!1))}renderDescriptionMarkdown(e,t){const i=e=>{for(let t=0;t<e.childNodes.length;t++){const s=e.childNodes.item(t);"img"===(s.tagName&&s.tagName.toLowerCase())?s.remove():i(s)}},s=(0,h.Gc)({value:e,supportThemeIcons:!0},{actionHandler:t});return s.element.classList.add("select-box-description-markdown"),i(s.element),s.element}onListFocus(e){this._isVisible&&this._hasDetails&&this.updateDetail(e.indexes[0])}updateDetail(e){this.selectionDetailsPane.innerText="";const t=this.options[e],i=t?.description??"";if(i){if(t?.descriptionIsMarkdown??!1){const e=t.descriptionMarkdownActionHandler;this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(i,e))}else this.selectionDetailsPane.innerText=i;this.selectionDetailsPane.style.display="block"}else this.selectionDetailsPane.style.display="none";this._skipLayout=!0,this.contextViewProvider.layout(),this._skipLayout=!1}onEscape(e){r.fs.stop(e),this.select(this._currentSelection),this.hideSelectDropDown(!0)}onEnter(e){r.fs.stop(e),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0)}onDownArrow(e){if(this.selected<this.options.length-1){r.fs.stop(e,!0);const t=this.options[this.selected+1].isDisabled;if(t&&this.options.length>this.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){if(this.selected>0){r.fs.stop(e,!0);this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onPageUp(e){r.fs.stop(e),this.selectList.focusPreviousPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected<this.options.length-1&&(this.selected++,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onPageDown(e){r.fs.stop(e),this.selectList.focusNextPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onHome(e){r.fs.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){r.fs.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){const t=m.YM.toString(e.keyCode);let i=-1;for(let s=0;s<this.options.length-1;s++)if(i=(s+this.selected+1)%this.options.length,this.options[i].text.charAt(0).toUpperCase()===t&&!this.options[i].isDisabled){this.select(i),this.selectList.setFocus([i]),this.selectList.reveal(this.selectList.getFocus()[0]),r.fs.stop(e);break}}dispose(){this.hideSelectDropDown(!1),super.dispose()}}class y extends f.jG{constructor(e,t,i,s){super(),this.selected=0,this.selectBoxOptions=s||Object.create(null),this.options=[],this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box","string"===typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"===typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=this._register(new p.vl),this.styles=i,this.registerListeners(),this.setOptions(e,t)}registerListeners(){this._register(o.q.addTarget(this.selectElement)),[o.B.Tap].forEach((e=>{this._register(r.ko(this.selectElement,e,(e=>{this.selectElement.focus()})))})),this._register(r.b2(this.selectElement,"click",(e=>{r.fs.stop(e,!0)}))),this._register(r.b2(this.selectElement,"change",(e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})}))),this._register(r.b2(this.selectElement,"keydown",(e=>{let t=!1;_.zx?18!==e.keyCode&&16!==e.keyCode&&10!==e.keyCode||(t=!0):(18===e.keyCode&&e.altKey||10===e.keyCode||3===e.keyCode)&&(t=!0),t&&e.stopPropagation()})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){this.options&&g.aI(this.options,e)||(this.options=e,this.selectElement.options.length=0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled))}))),void 0!==t&&this.select(t)}select(e){0===this.options.length?this.selected=0:e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected<this.options.length&&"string"===typeof this.options[this.selected].text?this.selectElement.title=this.options[this.selected].text:this.selectElement.title=""}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){e.classList.add("select-container"),e.appendChild(this.selectElement),this.setOptions(this.options,this.selected),this.applyStyles()}applyStyles(){this.selectElement&&(this.selectElement.style.backgroundColor=this.styles.selectBackground??"",this.selectElement.style.color=this.styles.selectForeground??"",this.selectElement.style.borderColor=this.styles.selectBorder??"")}createOption(e,t,i){const s=document.createElement("option");return s.value=e,s.text=e,s.disabled=!!i,s}}var w=i(17390);class L extends w.x{constructor(e,t,i,s,n){super(),_.zx&&!n?.useCustomDrawn?this.selectBoxDelegate=new y(e,t,s,n):this.selectBoxDelegate=new S(e,t,i,s,n),this._register(this.selectBoxDelegate)}get onDidSelect(){return this.selectBoxDelegate.onDidSelect}setOptions(e,t){this.selectBoxDelegate.setOptions(e,t)}select(e){this.selectBoxDelegate.select(e)}focus(){this.selectBoxDelegate.focus()}blur(){this.selectBoxDelegate.blur()}setFocusable(e){this.selectBoxDelegate.setFocusable(e)}render(e){this.selectBoxDelegate.render(e)}}var R=i(36921),T=i(631);i(62469);class x extends f.jG{get action(){return this._action}constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof R.rc&&this._register(t.onDidChange((e=>{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new R.LN)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(o.q.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,s.gm&&this._register((0,r.ko)(e,r.Bx.DRAG_START,(e=>e.dataTransfer?.setData(n.t.TEXT,this._action.label))))),this._register((0,r.ko)(t,o.B.Tap,(e=>this.onClick(e,!0)))),this._register((0,r.ko)(t,r.Bx.MOUSE_DOWN,(e=>{i||r.fs.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),_.zx&&this._register((0,r.ko)(t,r.Bx.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register((0,r.ko)(t,r.Bx.CLICK,(e=>{r.fs.stop(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register((0,r.ko)(t,r.Bx.DBLCLICK,(e=>{r.fs.stop(e,!0)}))),[r.Bx.MOUSE_UP,r.Bx.MOUSE_OUT].forEach((e=>{this._register((0,r.ko)(t,e,(e=>{r.fs.stop(e),t.classList.remove("active")})))}))}onClick(e,t=!1){r.fs.stop(e,!0);const i=T.z(this._context)?this.options?.useEventAsContext?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,i)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){if(!this.element)return;const e=this.getTooltip()??"";if(this.updateAriaLabel(),this.options.hoverDelegate?.showNativeHover)this.element.title=e;else if(this.customHover||""===e)this.customHover&&this.customHover.update(e);else{const t=this.options.hoverDelegate??(0,a.nZ)("element");this.customHover=this._store.add((0,d.i)().setupManagedHover(t,this.element,e))}}updateAriaLabel(){if(this.element){const e=this.getTooltip()??"";this.element.setAttribute("aria-label",e)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class k extends x{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),T.j(this.element);const t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){const e=document.createElement("span");e.classList.add("keybinding"),e.textContent=this.options.keybinding,this.element.appendChild(e)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===R.wv.ID?"presentation":this.options.isMenu?"menuitem":this.options.isTabList?"tab":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=v.kg({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e??void 0}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label?.classList.remove("codicon")}updateEnabled(){this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element?.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element?.classList.add("disabled"))}updateAriaLabel(){if(this.label){const e=this.getTooltip()??"";this.label.setAttribute("aria-label",e)}}updateChecked(){this.label&&(void 0!==this.action.checked?(this.label.classList.toggle("checked",this.action.checked),this.options.isTabList?this.label.setAttribute("aria-selected",this.action.checked?"true":"false"):(this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox"))):(this.label.classList.remove("checked"),this.label.removeAttribute(this.options.isTabList?"aria-selected":"aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}}class A extends x{constructor(e,t,i,s,n,r,o){super(e,t),this.selectBox=new L(i,s,n,r,o),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect((e=>this.runAction(e.selected,e.index))))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){this.selectBox?.focus()}blur(){this.selectBox?.blur()}render(e){this.selectBox.render(e)}}},11799:(e,t,i)=>{"use strict";i.d(t,{E:()=>d});var s=i(8597),n=i(72962),r=i(5646),o=i(42904),a=i(36921),l=i(41234),c=i(5662),h=i(631);i(62469);class d extends c.jG{constructor(e,t={}){let i,h;switch(super(),this._actionRunnerDisposables=this._register(new c.Cm),this.viewItemDisposables=this._register(new c.$w),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new l.vl),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new l.vl({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new l.vl),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new l.vl),this.onWillRun=this._onWillRun.event,this.options=t,this._context=t.context??null,this._orientation=this.options.orientation??0,this._triggerKeys={keyDown:this.options.triggerKeys?.keyDown??!1,keys:this.options.triggerKeys?.keys??[3,10]},this._hoverDelegate=t.hoverDelegate??this._register((0,o.bW)()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new a.LN,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",this._orientation){case 0:i=[15],h=[17];break;case 1:i=[16],h=[18],this.domNode.className+=" vertical"}this._register(s.ko(this.domNode,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);let s=!0;const o="number"===typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;i&&(t.equals(i[0])||t.equals(i[1]))?s=this.focusPrevious():h&&(t.equals(h[0])||t.equals(h[1]))?s=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?s=this.focusFirst():t.equals(13)?s=this.focusLast():t.equals(2)&&o instanceof r.EH&&o.trapsArrowNavigation?s=this.focusNext(void 0,!0):this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:s=!1,s&&(t.preventDefault(),t.stopPropagation())}))),this._register(s.ko(this.domNode,s.Bx.KEY_UP,(e=>{const t=new n.Z(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026)||t.equals(16)||t.equals(18)||t.equals(15)||t.equals(17))&&this.updateFocusedItem()}))),this.focusTracker=this._register(s.w5(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{s.bq()!==this.domNode&&s.QX(s.bq(),this.domNode)||(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const e=this.viewItems.find((e=>e instanceof r.EH&&e.isEnabled()));e instanceof r.EH&&e.setFocusable(!0)}else this.viewItems.forEach((e=>{e instanceof r.EH&&e.setFocusable(!1)}))}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){for(let e=0;e<this.actionsList.children.length;e++){const t=this.actionsList.children[e];if(s.QX(s.bq(),t)){this.focusedItem=e,this.viewItems[this.focusedItem]?.showHover?.();break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach((t=>t.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems.forEach((t=>t.actionRunner=e))}getContainer(){return this.domNode}getAction(e){if("number"===typeof e)return this.viewItems[e]?.action;if(s.sb(e)){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t<this.actionsList.childNodes.length;t++)if(this.actionsList.childNodes[t]===e)return this.viewItems[t].action}}push(e,t={}){const i=Array.isArray(e)?e:[e];let n=h.Et(t.index)?t.index:null;i.forEach((e=>{const i=document.createElement("li");let o;i.className="action-item",i.setAttribute("role","presentation");const a={hoverDelegate:this._hoverDelegate,...t,isTabList:"tablist"===this.options.ariaRole};this.options.actionViewItemProvider&&(o=this.options.actionViewItemProvider(e,a)),o||(o=new r.Z4(this.context,e,a)),this.options.allowContextMenu||this.viewItemDisposables.set(o,s.ko(i,s.Bx.CONTEXT_MENU,(e=>{s.fs.stop(e,!0)}))),o.actionRunner=this._actionRunner,o.setActionContext(this.context),o.render(i),this.focusable&&o instanceof r.EH&&0===this.viewItems.length&&o.setFocusable(!0),null===n||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(o)):(this.actionsList.insertBefore(i,this.actionsList.children[n]),this.viewItems.splice(n,0,o),n++)})),"number"===typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=(0,c.AS)(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),s.w_(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return 0===this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"===typeof e?t=e:"boolean"===typeof e&&(i=e),i&&"undefined"===typeof this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e,t){if("undefined"===typeof this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const i=this.focusedItem;let s;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=i,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,s=this.viewItems[this.focusedItem]}while(this.focusedItem!==i&&(this.options.focusOnlyEnabledItems&&!s.isEnabled()||s.action.id===a.wv.ID));return this.updateFocus(void 0,void 0,t),!0}focusPrevious(e){if("undefined"===typeof this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.wv.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&this.viewItems[this.previouslyFocusedItem]?.blur();const s=void 0!==this.focusedItem?this.viewItems[this.focusedItem]:void 0;if(s){let n=!0;h.Tn(s.focus)||(n=!1),this.options.focusOnlyEnabledItems&&h.Tn(s.isEnabled)&&!s.isEnabled()&&(n=!1),s.action.id===a.wv.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(s.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),n&&s.showHover?.()}}doTrigger(e){if("undefined"===typeof this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof r.EH){const i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this.viewItems=(0,c.AS)(this.viewItems),this.getContainer().remove(),super.dispose()}}},11007:(e,t,i)=>{"use strict";i.d(t,{xE:()=>d,vr:()=>h,h5:()=>u});var s=i(8597);const n=2e4;let r,o,a,l,c;function h(e){r=document.createElement("div"),r.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),r.appendChild(e),e};o=t(),a=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),r.appendChild(e),e};l=i(),c=i(),e.appendChild(r)}function d(e){r&&(o.textContent!==e?(s.w_(a),g(o,e)):(s.w_(o),g(a,e)))}function u(e){r&&(l.textContent!==e?(s.w_(c),g(l,e)):(s.w_(l),g(c,e)))}function g(e,t){s.w_(e),t.length>n&&(t=t.substr(0,n)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},62890:(e,t,i)=>{"use strict";i.d(t,{$:()=>f});var s=i(8597),n=i(83750),r=i(72962),o=i(68214),a=i(25154),l=i(42904),c=i(20370),h=i(47661),d=i(41234),u=i(16980),g=i(5662),p=i(25689),m=i(48196);h.Q1.white.toString(),h.Q1.white.toString();class f extends g.jG{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new d.vl),this._onDidEscape=this._register(new d.vl),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!t.secondary);const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,n=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=n||"",this._element.style.backgroundColor=i||"",t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),"string"===typeof t.title&&this.setTitle(t.title),"string"===typeof t.ariaLabel&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this._register(a.q.addTarget(this._element)),[s.Bx.CLICK,a.B.Tap].forEach((e=>{this._register((0,s.ko)(this._element,e,(e=>{this.enabled?this._onDidClick.fire(e):s.fs.stop(e)})))})),this._register((0,s.ko)(this._element,s.Bx.KEY_DOWN,(e=>{const t=new r.Z(e);let i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._onDidEscape.fire(e),this._element.blur(),i=!0),i&&s.fs.stop(t,!0)}))),this._register((0,s.ko)(this._element,s.Bx.MOUSE_OVER,(e=>{this._element.classList.contains("disabled")||this.updateBackground(!0)}))),this._register((0,s.ko)(this._element,s.Bx.MOUSE_OUT,(e=>{this.updateBackground(!1)}))),this.focusTracker=this._register((0,s.w5)(this._element)),this._register(this.focusTracker.onDidFocus((()=>{this.enabled&&this.updateBackground(!0)}))),this._register(this.focusTracker.onDidBlur((()=>{this.enabled&&this.updateBackground(!1)})))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){const t=[];for(let i of(0,c.n)(e))if("string"===typeof i){if(i=i.trim(),""===i)continue;const e=document.createElement("span");e.textContent=i,t.push(e)}else t.push(i);return t}updateBackground(e){let t;t=this.options.secondary?e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){if(this._label===e)return;if((0,u.VS)(this._label)&&(0,u.VS)(e)&&(0,u.nK)(this._label,e))return;this._element.classList.add("monaco-text-button");const t=this.options.supportShortLabel?this._labelElement:this._element;if((0,u.VS)(e)){const i=(0,o.Gc)(e,{inline:!0});i.dispose();const r=i.element.querySelector("p")?.innerHTML;if(r){const e=(0,n.aj)(r,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});t.innerHTML=e}else(0,s.Ln)(t)}else this.options.supportIcons?(0,s.Ln)(t,...this.getContentElements(e)):t.textContent=e;let i="";"string"===typeof this.options.title?i=this.options.title:this.options.title&&(i=(0,o.R9)(e)),this.setTitle(i),"string"===typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",i),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...p.L.asClassNameArray(e))}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}setTitle(e){this._hover||""===e?this._hover&&this._hover.update(e):this._hover=this._register((0,m.i)().setupManagedHover(this.options.hoverDelegate??(0,l.nZ)("mouse"),this._element,e))}}},97791:()=>{},3828:(e,t,i)=>{"use strict";i.d(t,{x:()=>r});var s=i(8597),n=i(91508);class r{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=(0,s.BC)(e,(0,s.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=(0,n.GP)(this.countFormat,this.count),this.element.title=(0,n.GP)(this.titleFormat,this.count),this.element.style.backgroundColor=this.styles.badgeBackground??"",this.element.style.color=this.styles.badgeForeground??"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}},89506:(e,t,i)=>{"use strict";i.d(t,{d:()=>g});var s=i(8597),n=i(5646),r=i(72962),o=i(25154),a=i(36921),l=i(41234);class c extends a.LN{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new l.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,s.BC)(e,(0,s.$)(".monaco-dropdown")),this._label=(0,s.BC)(this._element,(0,s.$)(".dropdown-label"));let i=t.labelRenderer;i||(i=e=>(e.textContent=t.label||"",null));for(const r of[s.Bx.CLICK,s.Bx.MOUSE_DOWN,o.B.Tap])this._register((0,s.ko)(this.element,r,(e=>s.fs.stop(e,!0))));for(const r of[s.Bx.MOUSE_DOWN,o.B.Tap])this._register((0,s.ko)(this._label,r,(e=>{(0,s.Er)(e)&&(e.detail>1||0!==e.button)||(this.visible?this.hide():this.show())})));this._register((0,s.ko)(this._label,s.Bx.KEY_UP,(e=>{const t=new r.Z(e);(t.equals(3)||t.equals(10))&&(s.fs.stop(e,!0),this.visible?this.hide():this.show())})));const n=i(this._label);n&&this._register(n),this._register(o.q.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class h extends c{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}var d=i(42904),u=i(48196);class g extends n.EH{constructor(e,t,i,s=Object.create(null)){super(null,e,s),this.actionItem=null,this._onDidChangeVisibility=this._register(new l.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=s,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{this.element=(0,s.BC)(e,(0,s.$)("a.action-label"));let t=[];return"string"===typeof this.options.classNames?t=this.options.classNames.split(/\s+/g).filter((e=>!!e)):this.options.classNames&&(t=this.options.classNames),t.find((e=>"icon"===e))||t.push("codicon"),this.element.classList.add(...t),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register((0,u.i)().setupManagedHover(this.options.hoverDelegate??(0,d.nZ)("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new h(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility((e=>{this.element?.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return e.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),e??void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){this.dropdownMenu?.show()}updateEnabled(){const e=!this.action.enabled;this.actionItem?.classList.toggle("disabled",e),this.element?.classList.toggle("disabled",e)}}},88443:(e,t,i)=>{"use strict";i.d(t,{c:()=>u});var s=i(8597),n=i(23034),r=i(91581),o=i(17390),a=i(41234),l=(i(10713),i(78209)),c=i(5662),h=i(42904);const d=l.kg("defaultLabel","input");class u extends o.x{constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new c.HE),this.additionalToggles=[],this._onDidOptionChange=this._register(new a.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new a.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new a.vl),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new a.vl),this._onKeyUp=this._register(new a.vl),this._onCaseSensitiveKeyDown=this._register(new a.vl),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new a.vl),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||d,this.showCommonFindToggles=!!i.showCommonFindToggles;const o=i.appendCaseSensitiveLabel||"",l=i.appendWholeWordsLabel||"",u=i.appendRegexLabel||"",g=i.history||[],p=!!i.flexibleHeight,m=!!i.flexibleWidth,f=i.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new r.mJ(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:g,showHistoryHint:i.showHistoryHint,flexibleHeight:p,flexibleWidth:m,flexibleMaxHeight:f,inputBoxStyles:i.inputBoxStyles}));const _=this._register((0,h.bW)());if(this.showCommonFindToggles){this.regex=this._register(new n.Ix({appendTitle:u,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.regex.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.regex.onKeyDown((e=>{this._onRegexKeyDown.fire(e)}))),this.wholeWords=this._register(new n.nV({appendTitle:l,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.wholeWords.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this.caseSensitive=this._register(new n.bc({appendTitle:o,isChecked:!1,hoverDelegate:_,...i.toggleStyles})),this._register(this.caseSensitive.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.caseSensitive.onKeyDown((e=>{this._onCaseSensitiveKeyDown.fire(e)})));const e=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,(t=>{if(t.equals(15)||t.equals(17)||t.equals(9)){const i=e.indexOf(this.domNode.ownerDocument.activeElement);if(i>=0){let n=-1;t.equals(17)?n=(i+1)%e.length:t.equals(15)&&(n=0===i?e.length-1:i-1),t.equals(9)?(e[i].blur(),this.inputBox.focus()):n>=0&&e[n].focus(),s.fs.stop(t,!0)}}}))}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(i?.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),e?.appendChild(this.domNode),this._register(s.ko(this.inputBox.inputElement,"compositionstart",(e=>{this.imeSessionInProgress=!0}))),this._register(s.ko(this.inputBox.inputElement,"compositionend",(e=>{this.imeSessionInProgress=!1,this._onInput.fire()}))),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}get onDidChange(){return this.inputBox.onDidChange}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget)}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex?.enable(),this.wholeWords?.enable(),this.caseSensitive?.enable();for(const e of this.additionalToggles)e.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex?.disable(),this.wholeWords?.disable(),this.caseSensitive?.disable();for(const e of this.additionalToggles)e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const t of this.additionalToggles)t.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new c.Cm;for(const t of e??[])this.additionalTogglesDisposables.value.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.value.add(t.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()}))),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(e=!1){this.inputBox.paddingRight=e?0:(this.caseSensitive?.width()??0)+(this.wholeWords?.width()??0)+(this.regex?.width()??0)+this.additionalToggles.reduce(((e,t)=>e+t.width()),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive?.checked??!1}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){return this.wholeWords?.checked??!1}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){return this.regex?.checked??!1}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){this.caseSensitive?.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}},23034:(e,t,i)=>{"use strict";i.d(t,{Ix:()=>u,bc:()=>h,nV:()=>d});var s=i(42904),n=i(35315),r=i(10350),o=i(78209);const a=o.kg("caseDescription","Match Case"),l=o.kg("wordsDescription","Match Whole Word"),c=o.kg("regexDescription","Use Regular Expression");class h extends n.l{constructor(e){super({icon:r.W.caseSensitive,title:a+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class d extends n.l{constructor(e){super({icon:r.W.wholeWord,title:l+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class u extends n.l{constructor(e){super({icon:r.W.regex,title:c+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,s.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}},37479:(e,t,i)=>{"use strict";i.d(t,{_:()=>c});var s=i(8597),n=i(48196),r=i(42904),o=i(20370),a=i(5662),l=i(10146);class c extends a.jG{constructor(e,t){super(),this.options=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=t?.supportIcons??!1,this.domNode=s.BC(e,s.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",s){e||(e=""),s&&(e=c.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&l.aI(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t<i.start){const s=this.text.substring(t,i.start);this.supportIcons?e.push(...(0,o.n)(s)):e.push(s),t=i.start}const n=this.text.substring(t,i.end),r=s.$("span.highlight",void 0,...this.supportIcons?(0,o.n)(n):[n]);i.extraClasses&&r.classList.add(...i.extraClasses),e.push(r),t=i.end}if(t<this.text.length){const i=this.text.substring(t);this.supportIcons?e.push(...(0,o.n)(i)):e.push(i)}if(s.Ln(this.domNode,...e),this.options?.hoverDelegate?.showNativeHover)this.domNode.title=this.title;else if(this.customHover||""===this.title)this.customHover&&this.customHover.update(this.title);else{const e=this.options?.hoverDelegate??(0,r.nZ)("mouse");this.customHover=this._register((0,n.i)().setupManagedHover(e,this.domNode,this.title))}this.didEverRender=!0}static escapeNewLines(e,t){let i=0,s=0;return e.replace(/\r\n|\r|\n/g,((e,n)=>{s="\r\n"===e?-1:0,n+=i;for(const i of t)i.end<=n||(i.start>=n&&(i.start+=s),i.end>=n&&(i.end+=s));return i+=s,"\u23ce"}))}}},48196:(e,t,i)=>{"use strict";i.d(t,{e:()=>n,i:()=>r});let s={showHover:()=>{},hideHover:()=>{},showAndFocusLastHover:()=>{},setupManagedHover:()=>null,showManagedHover:()=>{}};function n(e){s=e}function r(){return s}},42904:(e,t,i)=>{"use strict";i.d(t,{MW:()=>a,bW:()=>c,nZ:()=>l});var s=i(91090);let n=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});const r=new s.d((()=>n("mouse",!1))),o=new s.d((()=>n("element",!1)));function a(e){n=e}function l(e){return"element"===e?o.value:r.value}function c(){return n("element",!0)}},52776:(e,t,i)=>{"use strict";i.d(t,{vV:()=>u,jQ:()=>h,N4:()=>c,M4:()=>g,vr:()=>d});var s=i(8597),n=i(72962),r=i(31295),o=i(5662),a=i(78209);const l=s.$;class c extends o.jG{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new r.MU(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class h extends o.jG{static render(e,t,i){return new h(e,t,i)}constructor(e,t,i){super(),this.actionLabel=t.label,this.actionKeybindingLabel=i,this.actionContainer=s.BC(e,l("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=s.BC(this.actionContainer,l("a.action")),this.action.setAttribute("role","button"),t.iconClass&&s.BC(this.action,l(`span.icon.${t.iconClass}`));s.BC(this.action,l("span")).textContent=i?`${t.label} (${i})`:t.label,this._store.add(new u(this.actionContainer,t.run)),this._store.add(new g(this.actionContainer,t.run,[3,10])),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}function d(e,t){return e&&t?(0,a.kg)("acessibleViewHint","Inspect this in the accessible view with {0}.",t):e?(0,a.kg)("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}class u extends o.jG{constructor(e,t){super(),this._register(s.ko(e,s.Bx.CLICK,(i=>{i.stopPropagation(),i.preventDefault(),t(e)})))}}class g extends o.jG{constructor(e,t,i){super(),this._register(s.ko(e,s.Bx.KEY_DOWN,(s=>{const r=new n.Z(s);i.some((e=>r.equals(e)))&&(s.stopPropagation(),s.preventDefault(),t(e))})))}}},21852:(e,t,i)=>{"use strict";i.d(t,{s:()=>g});var s=i(8597),n=i(37479),r=i(5662),o=i(10146),a=i(92719),l=i(42904),c=i(48196),h=i(631),d=i(37882);class u{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set classNames(e){this.disposed||(0,o.aI)(e,this._classNames)||(this._classNames=e,this._element.classList.value="",this._element.classList.add(...e))}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class g extends r.jG{constructor(e,t){super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new u(s.BC(e,s.$(".monaco-icon-label")))),this.labelContainer=s.BC(this.domNode.element,s.$(".monaco-icon-label-container")),this.nameContainer=s.BC(this.labelContainer,s.$("span.monaco-icon-name-container")),this.nameNode=t?.supportHighlights||t?.supportIcons?this._register(new m(this.nameContainer,!!t.supportIcons)):new p(this.nameContainer),this.hoverDelegate=t?.hoverDelegate??(0,l.nZ)("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){const r=["monaco-icon-label"],o=["monaco-icon-label-container"];let a="";i&&(i.extraClasses&&r.push(...i.extraClasses),i.italic&&r.push("italic"),i.strikethrough&&r.push("strikethrough"),i.disabledCommand&&o.push("disabled"),i.title&&("string"===typeof i.title?a+=i.title:a+=e));const l=this.domNode.element.querySelector(".monaco-icon-label-iconpath");if(i?.iconPath){let e;l&&s.sb(l)?e=l:(e=s.$(".monaco-icon-label-iconpath"),this.domNode.element.prepend(e)),e.style.backgroundImage=s.Tf(i?.iconPath)}else l&&l.remove();if(this.domNode.classNames=r,this.domNode.element.setAttribute("aria-label",a),this.labelContainer.classList.value="",this.labelContainer.classList.add(...o),this.setupHover(i?.descriptionTitle?this.labelContainer:this.element,i?.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){const e=this.getOrCreateDescriptionNode();e instanceof n._?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,i?.labelEscapeNewLines),this.setupHover(e.element,i?.descriptionTitle)):(e.textContent=t&&i?.labelEscapeNewLines?n._.escapeNewLines(t,[]):t||"",this.setupHover(e.element,i?.descriptionTitle||""),e.empty=!t)}if(i?.suffix||this.suffixNode){this.getOrCreateSuffixNode().textContent=i?.suffix??""}}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate.showNativeHover){function s(e,t){(0,h.Kg)(t)?e.title=(0,d.pS)(t):t?.markdownNotSupportedFallback?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}s(e,t)}else{const n=(0,c.i)().setupManagedHover(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const e=this._register(new u(s.Pl(this.nameContainer,s.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new u(s.BC(e.element,s.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){if(!this.descriptionNode){const e=this._register(new u(s.BC(this.labelContainer,s.$("span.monaco-icon-description-container"))));this.creationOptions?.supportDescriptionHighlights?this.descriptionNode=this._register(new n._(s.BC(e.element,s.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new u(s.BC(e.element,s.$("span.label-description"))))}return this.descriptionNode}}class p{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,o.aI)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=s.BC(this.container,s.$("a.label-name",{id:t?.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i<e.length;i++){const n=e[i],r=t?.domId&&`${t?.domId}_${i}`;s.BC(this.container,s.$("a.label-name",{id:r,"data-icon-label-count":e.length,"data-icon-label-index":i,role:"treeitem"},n)),i<e.length-1&&s.BC(this.container,s.$("span.label-separator",void 0,t?.separator||"/"))}}}}class m extends r.jG{constructor(e,t){super(),this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,o.aI)(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=this._register(new n._(s.BC(this.container,s.$("a.label-name",{id:t?.domId})),{supportIcons:this.supportIcons}))),this.singleLabel.set(e,t?.matches,void 0,t?.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const i=t?.separator||"/",r=function(e,t,i){if(!i)return;let s=0;return e.map((e=>{const n={start:s,end:s+e.length},r=i.map((e=>a.Q.intersect(n,e))).filter((e=>!a.Q.isEmpty(e))).map((({start:e,end:t})=>({start:e-s,end:t-s})));return s=n.end+t.length,r}))}(e,i,t?.matches);for(let o=0;o<e.length;o++){const a=e[o],l=r?r[o]:void 0,c=t?.domId&&`${t?.domId}_${o}`,h=s.$("a.label-name",{id:c,"data-icon-label-count":e.length,"data-icon-label-index":o,role:"treeitem"});this._register(new n._(s.BC(this.container,h),{supportIcons:this.supportIcons})).set(a,l,void 0,t?.labelEscapeNewLines),o<e.length-1&&s.BC(h,s.$("span.label-separator",void 0,i))}}}}},20370:(e,t,i)=>{"use strict";i.d(t,{n:()=>o,s:()=>a});var s=i(8597),n=i(25689);const r=new RegExp(`(\\\\)?\\$\\((${n.L.iconNameExpression}(?:${n.L.iconModifierExpression})?)\\)`,"g");function o(e){const t=new Array;let i,s=0,n=0;for(;null!==(i=r.exec(e));){n=i.index||0,s<n&&t.push(e.substring(s,n)),s=(i.index||0)+i[0].length;const[,r,o]=i;t.push(r?`$(${o})`:a({id:o}))}return s<e.length&&t.push(e.substring(s)),t}function a(e){const t=s.$("span");return t.classList.add(...n.L.asClassNameArray(e)),t}},91581:(e,t,i)=>{"use strict";i.d(t,{mJ:()=>b,x8:()=>v});var s=i(8597),n=i(56245),r=i(27661),o=i(11799),a=i(11007),l=i(48196),c=i(42904),h=i(31295),d=i(17390),u=i(41234);class g{constructor(e,t=0,i=e.length,s=t-1){this.items=e,this.start=t,this.end=i,this.index=s}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class p{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._navigator.next()}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return null===this._navigator.current()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new g(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}var m=i(10146),f=i(78209);const _=s.$,v={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class C extends d.x{constructor(e,t,i){super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new u.vl),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new u.vl),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=this.options.tooltip??(this.placeholder||""),this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=s.BC(e,_(".monaco-inputbox.idle"));const r=this.options.flexibleHeight?"textarea":"input",a=s.BC(this.element,_(".ibwrapper"));if(this.input=s.BC(a,_(r+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,(()=>this.element.classList.add("synthetic-focus"))),this.onblur(this.input,(()=>this.element.classList.remove("synthetic-focus"))),this.options.flexibleHeight){this.maxHeight="number"===typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=s.BC(a,_("div.mirror")),this.mirror.innerText="\xa0",this.scrollableElement=new h.Se(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),s.BC(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new n.f(e.ownerDocument,"selectionchange")),i=u.Jh.filter(t.event,(()=>{const t=e.ownerDocument.getSelection();return t?.anchorNode===a}));this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,(()=>this.onValueChange())),this.onblur(this.input,(()=>this.onBlur())),this.onfocus(this.input,(()=>this.onFocus())),this._register(this.ignoreGesture(this.input)),setTimeout((()=>this.updateMirror()),0),this.options.actions&&(this.actionbar=this._register(new o.E(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.hover?this.hover.update(e):this.hover=this._register((0,l.i)().setupManagedHover((0,c.nZ)("mouse"),this.input,e))}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"===typeof this.cachedHeight?this.cachedHeight:s.OK(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return s.X7(this.input)}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}getSelection(){const e=this.input.selectionStart;if(null===e)return null;return{start:e,end:this.input.selectionEnd??e}}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!==typeof this.cachedContentHeight||"number"!==typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){if("open"===this.state&&(0,m.aI)(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${s.gI(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),e?.type}stylesForType(e){const t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=s.Tr(this.element)+"px";let i;this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{if(!this.message)return null;e=s.BC(i,_(".monaco-inputbox-container")),t();const n={inline:!0,className:"monaco-inputbox-message"},o=this.message.formatContent?(0,r.yk)(this.message.content,n):(0,r.S5)(this.message.content,n);o.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return o.style.backgroundColor=a.background??"",o.style.color=a.foreground??"",o.style.border=a.border?`1px solid ${a.border}`:"",s.BC(e,o),null},onHide:()=>{this.state="closed"},layout:t}),i=3===this.message.type?f.kg("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?f.kg("alertWarningMessage","Warning: {0}",this.message.content):f.kg("alertInfoMessage","Info: {0}",this.message.content),a.xE(i),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText="\xa0",this.layout()}applyStyles(){const e=this.options.inputBoxStyles,t=e.inputBackground??"",i=e.inputForeground??"",n=e.inputBorder??"";this.element.style.backgroundColor=t,this.element.style.color=i,this.input.style.backgroundColor="inherit",this.input.style.color=i,this.element.style.border=`1px solid ${s.gI(n,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=s.OK(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,s=t.selectionEnd,n=t.value;null!==i&&null!==s&&(this.value=n.substr(0,i)+e+n.substr(s),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar?.dispose(),super.dispose()}}class b extends C{constructor(e,t,i){const n=f.kg({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," or {0} for history","\u21c5"),r=f.kg({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is \u21c5 to represent the up and down arrow keys.']}," ({0} for history)","\u21c5");super(e,t,i),this._onDidFocus=this._register(new u.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new u.vl),this.onDidBlur=this._onDidBlur.event,this.history=new p(i.history,100);const o=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(n)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?n:r,t=this.placeholder+e;i.showPlaceholderOnFocus&&!s.X7(this.input)?this.placeholder=t:this.setPlaceHolder(t)}};this.observer=new MutationObserver(((e,t)=>{e.forEach((e=>{e.target.textContent||o()}))})),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,(()=>o())),this.onblur(this.input,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(r)||e(n)}))}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=e??"",a.h5(this.value?this.value:f.kg("clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,a.h5(this.value))}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}},47625:(e,t,i)=>{"use strict";i.d(t,{x:()=>u,l:()=>d});var s=i(8597),n=i(48196),r=i(42904),o=i(83619),a=i(5662),l=i(10146),c=i(78209);const h=s.$,d={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0};class u extends a.jG{constructor(e,t,i){super(),this.os=t,this.keyElements=new Set,this.options=i||Object.create(null);const o=this.options.keybindingLabelForeground;this.domNode=s.BC(e,h(".monaco-keybinding")),o&&(this.domNode.style.color=o),this.hover=this._register((0,n.i)().setupManagedHover((0,r.nZ)("mouse"),this.domNode,"")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&u.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){if(this.clear(),this.keybinding){const e=this.keybinding.getChords();e[0]&&this.renderChord(this.domNode,e[0],this.matches?this.matches.firstPart:null);for(let i=1;i<e.length;i++)s.BC(this.domNode,h("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderChord(this.domNode,e[i],this.matches?this.matches.chordPart:null);const t=this.options.disableTitle?void 0:this.keybinding.getAriaLabel()||void 0;this.hover.update(t),this.domNode.setAttribute("aria-label",t||"")}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0}clear(){s.w_(this.domNode),this.keyElements.clear()}renderChord(e,t,i){const s=o.Of.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,s.ctrlKey,Boolean(i?.ctrlKey),s.separator),t.shiftKey&&this.renderKey(e,s.shiftKey,Boolean(i?.shiftKey),s.separator),t.altKey&&this.renderKey(e,s.altKey,Boolean(i?.altKey),s.separator),t.metaKey&&this.renderKey(e,s.metaKey,Boolean(i?.metaKey),s.separator);const n=t.keyLabel;n&&this.renderKey(e,n,Boolean(i?.keyCode),"")}renderKey(e,t,i,n){s.BC(e,this.createKeyElement(t,i?".highlight":"")),n&&s.BC(e,h("span.monaco-keybinding-key-separator",void 0,n))}renderUnbound(e){s.BC(e,this.createKeyElement((0,c.kg)("unbound","Unbound")))}createKeyElement(e,t=""){const i=h("span.monaco-keybinding-key"+t,void 0,e);return this.keyElements.add(i),this.options.keybindingLabelBackground&&(i.style.backgroundColor=this.options.keybindingLabelBackground),this.options.keybindingLabelBorder&&(i.style.borderColor=this.options.keybindingLabelBorder),this.options.keybindingLabelBottomBorder&&(i.style.borderBottomColor=this.options.keybindingLabelBottomBorder),this.options.keybindingLabelShadow&&(i.style.boxShadow=`inset 0 -1px 0 ${this.options.keybindingLabelShadow}`),i}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,l.aI)(e.firstPart,t.firstPart)&&(0,l.aI)(e.chordPart,t.chordPart)}}},66700:(e,t,i)=>{"use strict";i.d(t,{ur:()=>w,uO:()=>x});var s=i(42731),n=i(8597),r=i(56245),o=i(25154),a=i(31295),l=i(25890),c=i(90766),h=i(58694),d=i(41234),u=i(5662),g=i(92719),p=i(49353);function m(e,t){const i=[];for(const s of t){if(e.start>=s.range.end)continue;if(e.end<s.range.start)break;const t=g.Q.intersect(e,s.range);g.Q.isEmpty(t)||i.push({range:t,size:s.size})}return i}function f({start:e,end:t},i){return{start:e+i,end:t+i}}class _{get paddingTop(){return this._paddingTop}set paddingTop(e){this._size=this._size+e-this._paddingTop,this._paddingTop=e}constructor(e){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=e??0,this._size=this._paddingTop}splice(e,t,i=[]){const s=i.length-t,n=m({start:0,end:e},this.groups),r=m({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((e=>({range:f(e.range,s),size:e.size}))),o=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=function(...e){return function(e){const t=[];let i=null;for(const s of e){const e=s.range.start,n=s.range.end,r=s.size;i&&r===i.size?i.range.end=n:(i={range:{start:e,end:n},size:r},t.push(i))}return t}(e.reduce(((e,t)=>e.concat(t)),[]))}(n,o,r),this._size=this._paddingTop+this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;if(e<this._paddingTop)return 0;let t=0,i=this._paddingTop;for(const s of this.groups){const n=s.range.end-s.range.start,r=i+n*s.size;if(e<r)return t+Math.floor((e-i)/s.size);t+=n,i=r}return t}indexAfter(e){return Math.min(this.indexAt(e)+1,this.count)}positionAt(e){if(e<0)return-1;let t=0,i=0;for(const s of this.groups){const n=s.range.end-s.range.start,r=i+n;if(e<r)return this._paddingTop+t+(e-i)*s.size;t+=n*s.size,i=r}return-1}}class v{constructor(e){this.renderers=e,this.cache=new Map,this.transactionNodesPendingRemoval=new Set,this.inTransaction=!1}alloc(e){let t=this.getTemplateCache(e).pop(),i=!1;if(t)i=this.transactionNodesPendingRemoval.has(t.domNode),i&&this.transactionNodesPendingRemoval.delete(t.domNode);else{const i=(0,n.$)(".monaco-list-row");t={domNode:i,templateId:e,templateData:this.getRenderer(e).renderTemplate(i)}}return{row:t,isReusingConnectedDomNode:i}}release(e){e&&this.releaseRow(e)}transact(e){if(this.inTransaction)throw new Error("Already in transaction");this.inTransaction=!0;try{e()}finally{for(const e of this.transactionNodesPendingRemoval)this.doRemoveNode(e);this.transactionNodesPendingRemoval.clear(),this.inTransaction=!1}}releaseRow(e){const{domNode:t,templateId:i}=e;t&&(this.inTransaction?this.transactionNodesPendingRemoval.add(t):this.doRemoveNode(t));this.getTemplateCache(i).push(e)}doRemoveNode(e){e.classList.remove("scrolling"),e.remove()}getTemplateCache(e){let t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t}dispose(){this.cache.forEach(((e,t)=>{for(const i of e){this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}})),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var C=i(64383),b=i(1592),E=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const S={CurrentDragAndDropData:void 0},y={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class w{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class L{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class R{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;t<e.files.length;t++){const i=e.files.item(t);i&&(i.size||i.type)&&this.files.push(i)}}}getData(){return{types:this.types,files:this.files}}}class T{constructor(e){this.getSetSize=e?.getSetSize?e.getSetSize.bind(e):(e,t,i)=>i,this.getPosInSet=e?.getPosInSet?e.getPosInSet.bind(e):(e,t)=>t+1,this.getRole=e?.getRole?e.getRole.bind(e):e=>"listitem",this.isChecked=e?.isChecked?e.isChecked.bind(e):e=>{}}}class x{static{this.InstanceCount=0}get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,n.y6)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i,s=y){if(this.virtualDelegate=t,this.domId="list_id_"+ ++x.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new c.ve(50),this.splicing=!1,this.dragOverAnimationStopDisposable=u.jG.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=u.jG.None,this.onDragLeaveTimeout=u.jG.None,this.disposables=new u.Cm,this._onDidChangeContentHeight=new d.vl,this._onDidChangeContentWidth=new d.vl,this.onDidChangeContentHeight=d.Jh.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,s.horizontalScrolling&&s.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(s.paddingTop??0);for(const n of i)this.renderers.set(n.templateId,n);this.cache=this.disposables.add(new v(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!==typeof s.mouseSupport||s.mouseSupport),this._horizontalScrolling=s.horizontalScrolling??y.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom="undefined"===typeof s.paddingBottom?0:s.paddingBottom,this.accessibilityProvider=new T(s.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";(s.transformOptimization??y.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(o.q.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new p.yE({forceIntegerValues:!0,smoothScrollDuration:s.smoothScrolling?125:0,scheduleAtNextAnimationFrame:e=>(0,n.PG)((0,n.zk)(this.domNode),e)})),this.scrollableElement=this.disposables.add(new a.oO(this.rowsContainer,{alwaysConsumeMouseWheel:s.alwaysConsumeMouseWheel??y.alwaysConsumeMouseWheel,horizontal:1,vertical:s.verticalScrollMode??y.verticalScrollMode,useShadows:s.useShadows??y.useShadows,mouseWheelScrollSensitivity:s.mouseWheelScrollSensitivity,fastScrollSensitivity:s.fastScrollSensitivity,scrollByPage:s.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,n.ko)(this.rowsContainer,o.B.Change,(e=>this.onTouchChange(e)))),this.disposables.add((0,n.ko)(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add((0,n.ko)(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add((0,n.ko)(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=s.setRowLineHeight??y.setRowLineHeight,this.setRowHeight=s.setRowHeight??y.setRowHeight,this.supportDynamicHeights=s.supportDynamicHeights??y.supportDynamicHeights,this.dnd=s.dnd??this.disposables.add(y.dnd),this.layout(s.initialSize?.height,s.initialSize?.width)}updateOptions(e){let t;if(void 0!==e.paddingBottom&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t={...t??{},scrollByPage:e.scrollByPage}),void 0!==e.mouseWheelScrollSensitivity&&(t={...t??{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&(t={...t??{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),void 0!==e.paddingTop&&e.paddingTop!==this.rangeMap.paddingTop){const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(t,Math.max(0,this.lastRenderTop+i),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new _(e)}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const s=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),n={start:e,end:e+t},r=g.Q.intersect(s,n),o=new Map;for(let u=r.end-1;u>=r.start;u--){const e=this.items[u];if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){let t=o.get(e.templateId);t||(t=[],o.set(e.templateId,t));const i=this.renderers.get(e.templateId);i&&i.disposeElement&&i.disposeElement(e.element,u,e.row.templateData,e.size),t.unshift(e.row)}e.row=null,e.stale=!0}const a={start:e+t,end:this.items.length},l=g.Q.intersect(a,s),c=g.Q.relativeComplement(a,s),h=i.map((e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:u.jG.None,checkedDisposable:u.jG.None,stale:!1})));let d;0===e&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,h),d=this.items,this.items=h):(this.rangeMap.splice(e,t,h),d=this.items.splice(e,t,...h));const p=i.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=f(l,p),v=g.Q.intersect(m,_);for(let u=v.start;u<v.end;u++)this.updateItemInDOM(this.items[u],u);const C=g.Q.relativeComplement(_,m);for(const u of C)for(let e=u.start;e<u.end;e++)this.removeItemFromDOM(e);const b=c.map((e=>f(e,p))),E=[{start:e,end:e+i.length},...b].map((e=>g.Q.intersect(m,e))).reverse();for(const u of E)for(let e=u.end-1;e>=u.start;e--){const t=this.items[e],i=o.get(t.templateId),s=i?.pop();this.insertItemInDOM(e,s)}for(const u of o.values())for(const e of u)this.cache.release(e);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),d.map((e=>e.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,n.PG)((0,n.zk)(this.domNode),(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)"undefined"!==typeof t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(e){return this.items[e].element}indexOf(e){return this.items.findIndex((t=>t.element===e))}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:"number"===typeof e?e:(0,n.H4)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:(0,n.y6)(this.domNode)})}render(e,t,i,s,n,r=!1){const o=this.getRenderRange(t,i),a=g.Q.relativeComplement(o,e).reverse(),l=g.Q.relativeComplement(e,o);if(r){const t=g.Q.intersect(e,o);for(let e=t.start;e<t.end;e++)this.updateItemInDOM(this.items[e],e)}this.cache.transact((()=>{for(const e of l)for(let t=e.start;t<e.end;t++)this.removeItemFromDOM(t);for(const e of a)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t)})),void 0!==s&&(this.rowsContainer.style.left=`-${s}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==n&&(this.rowsContainer.style.width=`${Math.max(n,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){const i=this.items[e];if(!i.row)if(t)i.row=t,i.stale=!0;else{const e=this.cache.alloc(i.templateId);i.row=e.row,i.stale||=e.isReusingConnectedDomNode}const s=this.accessibilityProvider.getRole(i.element)||"listitem";i.row.domNode.setAttribute("role",s);const r=this.accessibilityProvider.isChecked(i.element);if("boolean"===typeof r)i.row.domNode.setAttribute("aria-checked",String(!!r));else if(r){const e=e=>i.row.domNode.setAttribute("aria-checked",String(!!e));e(r.value),i.checkedDisposable=r.onDidChange((()=>e(r.value)))}if(i.stale||!i.row.domNode.parentElement){const t=this.items.at(e+1)?.row?.domNode??null;i.row.domNode.parentElement===this.rowsContainer&&i.row.domNode.nextElementSibling===t||this.rowsContainer.insertBefore(i.row.domNode,t),i.stale=!1}this.updateItemInDOM(i,e);const o=this.renderers.get(i.templateId);if(!o)throw new Error(`No renderer found for template id ${i.templateId}`);o?.renderElement(i.element,e,i.row.templateData,i.size);const a=this.dnd.getDragURI(i.element);i.dragStartDisposable.dispose(),i.row.domNode.draggable=!!a,a&&(i.dragStartDisposable=(0,n.ko)(i.row.domNode,"dragstart",(e=>this.onDragStart(i.element,a,e)))),this.horizontalScrolling&&(this.measureItemWidth(i),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=(0,n.y6)(e.row.domNode);const t=(0,n.zk)(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2===0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"click")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseDblClick(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseMiddleClick(){return d.Jh.filter(d.Jh.map(this.disposables.add(new r.f(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e)),this.disposables),(e=>1===e.browserEvent.button),this.disposables)}get onMouseDown(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOver(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mouseover")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOut(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"mouseout")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onContextMenu(){return d.Jh.any(d.Jh.map(this.disposables.add(new r.f(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e)),this.disposables),d.Jh.map(this.disposables.add(new r.f(this.domNode,o.B.Contextmenu)).event,(e=>this.toGestureEvent(e)),this.disposables))}get onTouchStart(){return d.Jh.map(this.disposables.add(new r.f(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)),this.disposables)}get onTap(){return d.Jh.map(this.disposables.add(new r.f(this.rowsContainer,o.B.Tap)).event,(e=>this.toGestureEvent(e)),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i="undefined"===typeof t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element,sector:this.getTargetSector(e,t)}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){if(!i.dataTransfer)return;const r=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(s.t.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(r,i)),"undefined"===typeof e&&(e=String(r.length));const t=(0,n.$)(".monaco-drag-image");t.textContent=e;(e=>{for(;e&&!e.classList.contains("monaco-workbench");)e=e.parentElement;return e||this.domNode.ownerDocument})(this.domNode).appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>t.remove()),0)}this.domNode.classList.add("dragging"),this.currentDragData=new w(r),S.CurrentDragAndDropData=new L(r),this.dnd.onDragStart?.(this.currentDragData,i)}onDragOver(e){if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),S.CurrentDragAndDropData&&"vscode-ui"===S.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(S.CurrentDragAndDropData)this.currentDragData=S.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new R}const t=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop="boolean"===typeof t?t:t.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let i;e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof t&&0===t.effect?.type?"copy":"move",i="boolean"!==typeof t&&t.feedback?t.feedback:"undefined"===typeof e.index?[-1]:[e.index],i=(0,l.dM)(i).filter((e=>e>=-1&&e<this.length)).sort(((e,t)=>e-t)),i=-1===i[0]?[-1]:i;let s="boolean"!==typeof t&&t.effect&&t.effect.position?t.effect.position:"drop-target";if(n=this.currentDragFeedback,r=i,(Array.isArray(n)&&Array.isArray(r)?(0,l.aI)(n,r):n===r)&&this.currentDragFeedbackPosition===s)return!0;var n,r;if(this.currentDragFeedback=i,this.currentDragFeedbackPosition=s,this.currentDragFeedbackDisposable.dispose(),-1===i[0])this.domNode.classList.add(s),this.rowsContainer.classList.add(s),this.currentDragFeedbackDisposable=(0,u.s)((()=>{this.domNode.classList.remove(s),this.rowsContainer.classList.remove(s)}));else{if(i.length>1&&"drop-target"!==s)throw new Error("Can't use multiple feedbacks with position different than 'over'");"drop-target-after"===s&&i[0]<this.length-1&&(i[0]+=1,s="drop-target-before");for(const e of i){const t=this.items[e];t.dropTarget=!0,t.row?.domNode.classList.add(s)}this.currentDragFeedbackDisposable=(0,u.s)((()=>{for(const e of i){const t=this.items[e];t.dropTarget=!1,t.row?.domNode.classList.remove(s)}}))}return!0}onDragLeave(e){this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,c.EQ)((()=>this.clearDragOverFeedback()),100,this.disposables),this.currentDragData&&this.dnd.onDragLeave?.(this.currentDragData,e.element,e.index,e.browserEvent)}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,S.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,S.CurrentDragAndDropData=void 0,this.dnd.onDragEnd?.(e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=u.jG.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=(0,n.cL)(this.domNode).top;this.dragOverAnimationDisposable=(0,n.i0)((0,n.zk)(this.domNode),this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,c.EQ)((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(void 0===t)return;const i=e.offsetY/this.items[t].size,s=Math.floor(i/.25);return(0,b.qE)(s,0,3)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;((0,n.sb)(i)||(0,n.xZ)(i))&&i!==this.rowsContainer&&t.contains(i);){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const s=this.getRenderRange(e,t);let n,r;e===this.elementTop(s.start)?(n=s.start,r=0):s.end-s.start>1&&(n=s.start+1,r=this.elementTop(n)-e);let o=0;for(;;){const a=this.getRenderRange(e,t);let l=!1;for(let e=a.start;e<a.end;e++){const t=this.probeDynamicHeight(e);0!==t&&this.rangeMap.splice(e,1,[this.items[e]]),o+=t,l=l||0!==t}if(!l){0!==o&&this.eventuallyUpdateScrollDimensions();const t=g.Q.relativeComplement(s,a);for(const e of t)for(let t=e.start;t<e.end;t++)this.items[t].row&&this.removeItemFromDOM(t);const l=g.Q.relativeComplement(a,s).reverse();for(const e of l)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t);for(let e=a.start;e<a.end;e++)this.items[e].row&&this.updateItemInDOM(this.items[e],e);if("number"===typeof n){const t=this.scrollable.getFutureScrollPosition().scrollTop-e,s=this.elementTop(n)-r+t;this.setScrollTop(s,i)}return void this._onDidChangeContentHeight.fire(this.contentHeight)}}}probeDynamicHeight(e){const t=this.items[e];if(this.virtualDelegate.getDynamicHeight){const e=this.virtualDelegate.getDynamicHeight(t.element);if(null!==e){const i=t.size;return t.size=e,t.lastDynamicHeightWidth=this.renderWidth,e-i}}if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;if(this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(t.element))return 0;const i=t.size;if(t.row)return t.row.domNode.style.height="",t.size=t.row.domNode.offsetHeight,0!==t.size||(0,n.QX)(t.row.domNode,(0,n.zk)(t.row.domNode).document.body)||console.warn("Measuring item node that is not in DOM! Add ListView to the DOM before measuring row height!",(new Error).stack),t.lastDynamicHeightWidth=this.renderWidth,t.size-i;const{row:s}=this.cache.alloc(t.templateId);s.domNode.style.height="",this.rowsContainer.appendChild(s.domNode);const r=this.renderers.get(t.templateId);if(!r)throw new C.D7("Missing renderer for templateId: "+t.templateId);return r.renderElement(t.element,e,s.templateData,void 0),t.size=s.domNode.offsetHeight,r.disposeElement?.(t.element,e,s.templateData,void 0),this.virtualDelegate.setDynamicHeight?.(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,s.domNode.remove(),this.cache.release(s),t.size-i}getElementDomId(e){return`${this.domId}_${e}`}dispose(){for(const e of this.items)if(e.dragStartDisposable.dispose(),e.checkedDisposable.dispose(),e.row){const t=this.renderers.get(e.row.templateId);t&&(t.disposeElement?.(e.element,-1,e.row.templateData,void 0),t.disposeTemplate(e.row.templateData))}this.items=[],this.domNode?.remove(),this.dragOverAnimationDisposable?.dispose(),this.disposables.dispose()}}E([h.B],x.prototype,"onMouseClick",null),E([h.B],x.prototype,"onMouseDblClick",null),E([h.B],x.prototype,"onMouseMiddleClick",null),E([h.B],x.prototype,"onMouseDown",null),E([h.B],x.prototype,"onMouseOver",null),E([h.B],x.prototype,"onMouseOut",null),E([h.B],x.prototype,"onContextMenu",null),E([h.B],x.prototype,"onTouchStart",null),E([h.B],x.prototype,"onTap",null)},93090:(e,t,i)=>{"use strict";i.d(t,{hb:()=>K,B8:()=>ee,MH:()=>j,_C:()=>b,W0:()=>D,Bm:()=>F,B6:()=>A,b$:()=>O,bm:()=>I,mh:()=>z,tX:()=>V,Es:()=>P,xu:()=>M,bG:()=>Y});var s=i(8597),n=i(56245),r=i(72962),o=i(25154),a=i(11007);class l{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach((s=>s.splice(e,t,i)))}}var c=i(25890),h=i(90766),d=i(47661),u=i(58694),g=i(41234),p=i(26690),m=i(5662),f=i(1592),_=i(98067),v=i(631);i(48215);class C extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var b,E,S=i(66700),y=i(47358),w=i(31308),L=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class R{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const s=this.renderedElements.findIndex((e=>e.templateData===i));if(s>=0){const e=this.renderedElements[s];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const s=[];for(const n of this.renderedElements)n.index<e?s.push(n):n.index>=e+t&&s.push({index:n.index+i-t,templateData:n.templateData});this.renderedElements=s}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}class T{get name(){return this._trait}get renderer(){return new R(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.vl,this.onChange=this._onChange.event}splice(e,t,i){const s=i.length-t,n=e+t,r=[];let o=0;for(;o<this.sortedIndexes.length&&this.sortedIndexes[o]<e;)r.push(this.sortedIndexes[o++]);for(let a=0;a<i.length;a++)i[a]&&r.push(a+e);for(;o<this.sortedIndexes.length&&this.sortedIndexes[o]>=n;)r.push(this.sortedIndexes[o++]+s);this.renderer.splice(e,t,i.length),this._set(r,r)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(Q),t)}_set(e,t,i){const s=this.indexes,n=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const r=$(n,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:i}),s}get(){return this.indexes}contains(e){return(0,c.El)(this.sortedIndexes,e,Q)>=0}dispose(){(0,m.AS)(this._onChange)}}L([u.B],T.prototype,"renderer",null);class x extends T{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class k{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,new Array(i.length).fill(!1));const s=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString()));if(0===s.length)return this.trait.splice(e,t,new Array(i.length).fill(!1));const n=new Set(s),r=i.map((e=>n.has(this.identityProvider.getId(e).toString())));this.trait.splice(e,t,r)}}function A(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function N(e,t){return!!e.classList.contains(t)||!e.classList.contains("monaco-list")&&(!!e.parentElement&&N(e.parentElement,t))}function I(e){return N(e,"monaco-editor")}function O(e){return N(e,"monaco-custom-toggle")}function D(e){return N(e,"action-item")}function M(e){return N(e,"monaco-tree-sticky-row")}function P(e){return e.classList.contains("monaco-tree-sticky-container")}function F(e){return!!("A"===e.tagName&&e.classList.contains("monaco-button")||"DIV"===e.tagName&&e.classList.contains("monaco-button-dropdown"))||!e.classList.contains("monaco-list")&&(!!e.parentElement&&F(e.parentElement))}class U{get onKeyDown(){return g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keydown")).event,(e=>e.filter((e=>!A(e.target))).map((e=>new r.Z(e)))))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new m.Cm,this.multipleSelectionDisposables=new m.Cm,this.multipleSelectionSupport=i.multipleSelectionSupport,this.disposables.add(this.onKeyDown((e=>{switch(e.keyCode){case 3:return this.onEnter(e);case 16:return this.onUpArrow(e);case 18:return this.onDownArrow(e);case 11:return this.onPageUpArrow(e);case 12:return this.onPageDownArrow(e);case 9:return this.onEscape(e);case 31:this.multipleSelectionSupport&&(_.zx?e.metaKey:e.ctrlKey)&&this.onCtrlA(e)}})))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,c.y1)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}L([u.B],U.prototype,"onKeyDown",null),function(e){e[e.Automatic=0]="Automatic",e[e.Trigger=1]="Trigger"}(b||(b={})),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(E||(E={}));const H=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95)}};class B{constructor(e,t,i,s,n){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=s,this.delegate=n,this.enabled=!1,this.state=E.Idle,this.mode=b.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new m.Cm,this.disposables=new m.Cm,this.updateOptions(e.options)}updateOptions(e){e.typeNavigationEnabled??1?this.enable():this.disable(),this.mode=e.typeNavigationMode??b.Automatic}enable(){if(this.enabled)return;let e=!1;const t=g.Jh.chain(this.enabledDisposables.add(new n.f(this.view.domNode,"keydown")).event,(t=>t.filter((e=>!A(e.target))).filter((()=>this.mode===b.Automatic||this.triggered)).map((e=>new r.Z(e))).filter((t=>e||this.keyboardNavigationEventFilter(t))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>s.fs.stop(e,!0))).map((e=>e.browserEvent.key)))),i=g.Jh.debounce(t,(()=>null),800,void 0,void 0,void 0,this.enabledDisposables);g.Jh.reduce(g.Jh.any(t,i),((e,t)=>null===t?null:(e||"")+t),void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t((()=>e=!0),void 0,this.enabledDisposables),i((()=>e=!1),void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){const e=this.list.getFocus();if(e.length>0&&e[0]===this.previouslyFocused){const t=this.list.options.accessibilityProvider?.getAriaLabel(this.list.element(e[0]));"string"===typeof t?(0,a.xE)(t):t&&(0,a.xE)(t.get())}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=E.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,s=this.state===E.Idle?1:0;this.state=E.Typing;for(let n=0;n<this.list.length;n++){const t=(i+n+s)%this.list.length,r=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(t)),o=r&&r.toString();if(this.list.options.typeNavigationEnabled){if("undefined"!==typeof o){if((0,p.WP)(e,o))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t);const s=(0,p.O)(e,o);if(s){if(s[0].end-s[0].start>1&&1===s.length)return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}}else if("undefined"===typeof o||(0,p.WP)(e,o))return this.previouslyFocused=i,this.list.setFocus([t]),void this.list.reveal(t)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class W{constructor(e,t){this.list=e,this.view=t,this.disposables=new m.Cm;const i=g.Jh.chain(this.disposables.add(new n.f(t.domNode,"keydown")).event,(e=>e.filter((e=>!A(e.target))).map((e=>new r.Z(e)))));g.Jh.chain(i,(e=>e.filter((e=>2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey))))(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!n||!(0,s.sb)(n)||-1===n.tabIndex)return;const r=(0,s.zk)(n).getComputedStyle(n);"hidden"!==r.visibility&&"none"!==r.display&&(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function V(e){return _.zx?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function z(e){return e.browserEvent.shiftKey}const G={isSelectionSingleChangeEvent:V,isSelectionRangeChangeEvent:z};class j{constructor(e){this.list=e,this.disposables=new m.Cm,this._onPointer=new g.vl,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||G),this.mouseSupport="undefined"===typeof e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(o.q.addTarget(e.getHTMLElement()))),g.Jh.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||G))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){I(e.browserEvent.target)||(0,s.bq)()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(A(e.browserEvent.target)||I(e.browserEvent.target))return;const t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(A(e.browserEvent.target)||I(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=e.index;return"undefined"===typeof t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),i=e.browserEvent,(0,s.Er)(i)&&2===i.button||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e));var i}onDoubleClick(e){if(A(e.browserEvent.target)||I(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if("undefined"===typeof i){i=this.list.getFocus()[0]??t,this.list.setAnchor(i)}const s=Math.min(i,t),n=Math.max(i,t),r=(0,c.y1)(s,n+1),o=this.list.getSelection(),a=function(e,t){const i=e.indexOf(t);if(-1===i)return[];const s=[];let n=i-1;for(;n>=0&&e[n]===t-(i-n);)s.push(e[n--]);s.reverse(),n=i;for(;n<e.length&&e[n]===t+(n-i);)s.push(e[n++]);return s}($(o,[i]),i);if(0===a.length)return;const l=$(r,function(e,t){const i=[];let s=0,n=0;for(;s<e.length||n<t.length;)if(s>=e.length)i.push(t[n++]);else if(n>=t.length)i.push(e[s++]);else{if(e[s]===t[n]){s++,n++;continue}e[s]<t[n]?i.push(e[s++]):n++}return i}(o,a));this.list.setSelection(l,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const i=this.list.getSelection(),s=i.filter((e=>e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===s.length?this.list.setSelection([...s,t],e.browserEvent):this.list.setSelection(s,e.browserEvent)}}dispose(){this.disposables.dispose()}}class K{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,i=[];e.listBackground&&i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&i.push(`.monaco-list${t} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(i.push(`.monaco-list${t} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&i.push(`.monaco-list${t} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&i.push(`.monaco-list${t}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&i.push(`.monaco-list${t}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);const n=(0,s.gI)(e.listFocusAndSelectionOutline,(0,s.gI)(e.listSelectionOutline,e.listFocusOutline??""));n&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused.selected { outline: 1px solid ${n}; outline-offset: -1px;}`),e.listFocusOutline&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t\t.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`);const r=(0,s.gI)(e.listSelectionOutline,e.listInactiveFocusOutline??"");r&&i.push(`.monaco-list${t} .monaco-list-row.focused.selected { outline: 1px dotted ${r}; outline-offset: -1px; }`),e.listSelectionOutline&&i.push(`.monaco-list${t} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&i.push(`.monaco-list${t} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&i.push(`.monaco-list${t} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&i.push(`\n\t\t\t\t.monaco-list${t}.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; }\n\t\t\t`),e.listDropBetweenBackground&&(i.push(`\n\t\t\t.monaco-list${t} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,\n\t\t\t.monaco-list${t} .monaco-list-row.drop-target-before::before {\n\t\t\t\tcontent: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`),i.push(`\n\t\t\t.monaco-list${t} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,\n\t\t\t.monaco-list${t} .monaco-list-row.drop-target-after::after {\n\t\t\t\tcontent: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`)),e.tableColumnsBorder&&i.push(`\n\t\t\t\t.monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: transparent;\n\t\t\t\t}\n\t\t\t`),e.tableOddRowsBackgroundColor&&i.push(`\n\t\t\t\t.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {\n\t\t\t\t\tbackground-color: ${e.tableOddRowsBackgroundColor};\n\t\t\t\t}\n\t\t\t`),this.styleElement.textContent=i.join("\n")}}const Y={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:d.Q1.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:d.Q1.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:d.Q1.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},q={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}}};function $(e,t){const i=[];let s=0,n=0;for(;s<e.length||n<t.length;)if(s>=e.length)i.push(t[n++]);else if(n>=t.length)i.push(e[s++]);else{if(e[s]===t[n]){i.push(e[s]),s++,n++;continue}e[s]<t[n]?i.push(e[s++]):i.push(t[n++])}return i}const Q=(e,t)=>e-t;class X{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,s){let n=0;for(const r of this.renderers)r.renderElement(e,t,i[n++],s)}disposeElement(e,t,i,s){let n=0;for(const r of this.renderers)r.disposeElement?.(e,t,i[n],s),n+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class Z{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return{container:e,disposables:new m.Cm}}renderElement(e,t,i){const s=this.accessibilityProvider.getAriaLabel(e),n=s&&"string"!==typeof s?s:(0,w.lk)(s);i.disposables.add((0,w.fm)((e=>{this.setAriaLabel(e.readObservable(n),i.container)})));const r=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof r?i.container.setAttribute("aria-level",`${r}`):i.container.removeAttribute("aria-level")}setAriaLabel(e,t){e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")}disposeElement(e,t,i,s){i.disposables.clear()}disposeTemplate(e){e.disposables.dispose()}}class J{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart?.(e,t)}onDragOver(e,t,i,s,n){return this.dnd.onDragOver(e,t,i,s,n)}onDragLeave(e,t,i,s){this.dnd.onDragLeave?.(e,t,i,s)}onDragEnd(e){this.dnd.onDragEnd?.(e)}drop(e,t,i,s,n){this.dnd.drop(e,t,i,s,n)}dispose(){this.dnd.dispose()}}class ee{get onDidChangeFocus(){return g.Jh.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)),this.disposables)}get onDidChangeSelection(){return g.Jh.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keydown")).event,(t=>t.map((e=>new r.Z(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map((e=>s.fs.stop(e,!0))).filter((()=>!1)))),i=g.Jh.chain(this.disposables.add(new n.f(this.view.domNode,"keyup")).event,(t=>t.forEach((()=>e=!1)).map((e=>new r.Z(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map((e=>s.fs.stop(e,!0))).map((({browserEvent:e})=>{const t=this.getFocus(),i=t.length?t[0]:void 0;return{index:i,element:"undefined"!==typeof i?this.view.element(i):void 0,anchor:"undefined"!==typeof i?this.view.domElement(i):this.view.domNode,browserEvent:e}})))),o=g.Jh.chain(this.view.onContextMenu,(t=>t.filter((t=>!e)).map((({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:new y.P((0,s.zk)(this.view.domNode),i),browserEvent:i})))));return g.Jh.any(t,i,o)}get onKeyDown(){return this.disposables.add(new n.f(this.view.domNode,"keydown")).event}get onDidFocus(){return g.Jh.signal(this.disposables.add(new n.f(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return g.Jh.signal(this.disposables.add(new n.f(this.view.domNode,"blur",!0)).event)}constructor(e,t,i,n,r=q){this.user=e,this._options=r,this.focus=new T("focused"),this.anchor=new T("anchor"),this.eventBufferer=new g.at,this._ariaLabel="",this.disposables=new m.Cm,this._onDidDispose=new g.vl,this.onDidDispose=this._onDidDispose.event;const o=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?this._options.accessibilityProvider?.getWidgetRole():"list";this.selection=new x("listbox"!==o);const a=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=r.accessibilityProvider,this.accessibilityProvider&&(a.push(new Z(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant?.(this.onDidChangeActiveDescendant,this,this.disposables)),n=n.map((e=>new X(e.templateId,[...a,e])));const c={...r,dnd:r.dnd&&new J(this,r.dnd)};if(this.view=this.createListView(t,i,n,c),this.view.domNode.setAttribute("role",o),r.styleController)this.styleController=r.styleController(this.view.domId);else{const e=(0,s.li)(this.view.domNode);this.styleController=new K(e,this.view.domId)}if(this.spliceable=new l([new k(this.focus,this.view,r.identityProvider),new k(this.selection,this.view,r.identityProvider),new k(this.anchor,this.view,r.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new W(this,this.view)),("boolean"!==typeof r.keyboardSupport||r.keyboardSupport)&&(this.keyboardController=new U(this,this.view,r),this.disposables.add(this.keyboardController)),r.keyboardNavigationLabelProvider){const e=r.keyboardNavigationDelegate||H;this.typeNavigationController=new B(this,this.view,r.keyboardNavigationLabelProvider,r.keyboardNavigationEventFilter??(()=>!0),e),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(r),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,i,s){return new S.uO(e,t,i,s)}createMouseController(e){return new j(this)}updateOptions(e={}){this._options={...this._options,...e},this.typeNavigationController?.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),this.keyboardController?.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new C(this.user,`Invalid start index: ${e}`);if(t<0)throw new C(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new C(this.user,`Invalid index ${i}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if("undefined"!==typeof e){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return(0,c.Fy)(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return"undefined"===typeof e?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new C(this.user,`Invalid index ${i}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,s){if(0===this.length)return;const n=this.focus.get(),r=this.findNextIndex(n.length>0?n[0]+e:0,t,s);r>-1&&this.setFocus([r],i)}focusPrevious(e=1,t=!1,i,s){if(0===this.length)return;const n=this.focus.get(),r=this.findPreviousIndex(n.length>0?n[0]-e:0,t,s);r>-1&&this.setFocus([r],i)}async focusNextPage(e,t){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const s=this.getFocus()[0];if(s!==i&&(void 0===s||i>s)){const n=this.findPreviousIndex(i,!1,t);n>-1&&s!==n?this.setFocus([n],e):this.setFocus([i],e)}else{const n=this.view.getScrollTop();let r=n+this.view.renderHeight;i>s&&(r-=this.view.elementHeight(i)),this.view.setScrollTop(r),this.view.getScrollTop()!==n&&(this.setFocus([]),await(0,h.wR)(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t,i=()=>0){let s;const n=i(),r=this.view.getScrollTop()+n;s=0===r?this.view.indexAt(r):this.view.indexAfter(r-1);const o=this.getFocus()[0];if(o!==s&&(void 0===o||o>=s)){const i=this.findNextIndex(s,!1,t);i>-1&&o!==i?this.setFocus([i],e):this.setFocus([s],e)}else{const s=r;this.view.setScrollTop(r-this.view.renderHeight-n),this.view.getScrollTop()+i()!==s&&(this.setFocus([]),await(0,h.wR)(0),await this.focusPreviousPage(e,t,i))}}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const s=this.findNextIndex(e,!1,i);s>-1&&this.setFocus([s],t)}findNextIndex(e,t=!1,i){for(let s=0;s<this.length;s++){if(e>=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let s=0;s<this.length;s++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!i||i(this.element(e)))return e;e--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map((e=>this.view.element(e)))}reveal(e,t,i=0){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);const s=this.view.getScrollTop(),n=this.view.elementTop(e),r=this.view.elementHeight(e);if((0,v.Et)(t)){const e=r-this.view.renderHeight+i;this.view.setScrollTop(e*(0,f.qE)(t,0,1)+n-i)}else{const e=n+r,t=s+this.view.renderHeight;n<s+i&&e>=t||(n<s+i||e>=t&&r>=this.view.renderHeight?this.view.setScrollTop(n-i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e,t=0){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),s=this.view.elementTop(e),n=this.view.elementHeight(e);if(s<i+t||s+n>i+this.view.renderHeight)return null;const r=n-this.view.renderHeight+t;return Math.abs((i+t-s)/r)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map((e=>this.view.element(e))),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){const e=this.focus.get();if(e.length>0){let t;this.accessibilityProvider?.getActiveDescendantId&&(t=this.accessibilityProvider.getActiveDescendantId(this.view.element(e[0]))),this.view.domNode.setAttribute("aria-activedescendant",t||this.view.getElementDomId(e[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}L([u.B],ee.prototype,"onDidChangeFocus",null),L([u.B],ee.prototype,"onDidChangeSelection",null),L([u.B],ee.prototype,"onContextMenu",null),L([u.B],ee.prototype,"onKeyDown",null),L([u.B],ee.prototype,"onDidFocus",null),L([u.B],ee.prototype,"onDidBlur",null)},88807:(e,t,i)=>{"use strict";i.d(t,{v:()=>a});var s=i(8597),n=i(92403),r=i(41234),o=i(5662);class a{constructor(){let e;this._onDidWillResize=new r.vl,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new r.vl,this.onDidResize=this._onDidResize.event,this._sashListener=new o.Cm,this._size=new s.fg(0,0),this._minSize=new s.fg(0,0),this._maxSize=new s.fg(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new n.m(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new n.m(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new n.m(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:n.B.North}),this._southSash=new n.m(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:n.B.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(r.Jh.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)((()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)}))),this._sashListener.add(r.Jh.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)((()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(this._eastSash.onDidChange((s=>{e&&(i=s.currentX-s.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))}))),this._sashListener.add(this._westSash.onDidChange((s=>{e&&(i=-(s.currentX-s.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))}))),this._sashListener.add(this._northSash.onDidChange((s=>{e&&(t=-(s.currentY-s.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))}))),this._sashListener.add(this._southSash.onDidChange((s=>{e&&(t=s.currentY-s.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))}))),this._sashListener.add(r.Jh.any(this._eastSash.onDidReset,this._westSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(r.Jh.any(this._northSash.onDidReset,this._southSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))})))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,s){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=s?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:n}=this._minSize,{height:r,width:o}=this._maxSize;e=Math.max(i,Math.min(r,e)),t=Math.max(n,Math.min(o,t));const a=new s.fg(t,e);s.fg.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}},92403:(e,t,i)=>{"use strict";i.d(t,{B:()=>u,m:()=>C});var s=i(8597),n=i(56245),r=i(25154),o=i(90766),a=i(58694),l=i(41234),c=i(5662),h=i(98067),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};var u;!function(e){e.North="north",e.South="south",e.East="east",e.West="west"}(u||(u={}));const g=new l.vl;const p=new l.vl;class m{constructor(e){this.el=e,this.disposables=new c.Cm}get onPointerMove(){return this.disposables.add(new n.f((0,s.zk)(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new n.f((0,s.zk)(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}d([a.B],m.prototype,"onPointerMove",null),d([a.B],m.prototype,"onPointerUp",null);class f{get onPointerMove(){return this.disposables.add(new n.f(this.el,r.B.Change)).event}get onPointerUp(){return this.disposables.add(new n.f(this.el,r.B.End)).event}constructor(e){this.el=e,this.disposables=new c.Cm}dispose(){this.disposables.dispose()}}d([a.B],f.prototype,"onPointerMove",null),d([a.B],f.prototype,"onPointerUp",null);class _{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}d([a.B],_.prototype,"onPointerMove",null),d([a.B],_.prototype,"onPointerUp",null);const v="pointer-events-disabled";class C extends c.jG{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,s.BC)(this.el,(0,s.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,c.s)((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new n.f(this._orthogonalStartDragHandle,"mouseenter")).event((()=>C.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new n.f(this._orthogonalStartDragHandle,"mouseleave")).event((()=>C.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}}set orthogonalEndSash(e){if(this._orthogonalEndSash!==e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,s.BC)(this.el,(0,s.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,c.s)((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new n.f(this._orthogonalEndDragHandle,"mouseenter")).event((()=>C.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new n.f(this._orthogonalEndDragHandle,"mouseleave")).event((()=>C.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}}constructor(e,t,i){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new o.ve(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new l.vl),this._onDidStart=this._register(new l.vl),this._onDidChange=this._register(new l.vl),this._onDidReset=this._register(new l.vl),this._onDidEnd=this._register(new l.vl),this.orthogonalStartSashDisposables=this._register(new c.Cm),this.orthogonalStartDragHandleDisposables=this._register(new c.Cm),this.orthogonalEndSashDisposables=this._register(new c.Cm),this.orthogonalEndDragHandleDisposables=this._register(new c.Cm),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,s.BC)(e,(0,s.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),h.zx&&this.el.classList.add("mac");const a=this._register(new n.f(this.el,"mousedown")).event;this._register(a((t=>this.onPointerStart(t,new m(e))),this));const d=this._register(new n.f(this.el,"dblclick")).event;this._register(d(this.onPointerDoublePress,this));const u=this._register(new n.f(this.el,"mouseenter")).event;this._register(u((()=>C.onMouseEnter(this))));const _=this._register(new n.f(this.el,"mouseleave")).event;this._register(_((()=>C.onMouseLeave(this)))),this._register(r.q.addTarget(this.el));const v=this._register(new n.f(this.el,r.B.Start)).event;this._register(v((e=>this.onPointerStart(e,new f(this.el))),this));const b=this._register(new n.f(this.el,r.B.Tap)).event;let E;this._register(b((e=>{if(E)return clearTimeout(E),E=void 0,void this.onPointerDoublePress(e);clearTimeout(E),E=setTimeout((()=>E=void 0),250)}),this)),"number"===typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=4,this._register(g.event((e=>{this.size=e,this.layout()})))),this._register(p.event((e=>this.hoverDelay=e))),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",false),this.layout()}onPointerStart(e,t){s.fs.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const s=this.getOrthogonalSash(e);s&&(i=!0,e.__orthogonalSashEvent=!0,s.onPointerStart(e,new _(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new _(t))),!this.state)return;const n=this.el.ownerDocument.getElementsByTagName("iframe");for(const s of n)s.classList.add(v);const r=e.pageX,o=e.pageY,a=e.altKey,l={startX:r,currentX:r,startY:o,currentY:o,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const d=(0,s.li)(this.el),u=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":h.zx?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":h.zx?"col-resize":"ew-resize",d.textContent=`* { cursor: ${e} !important; }`},g=new c.Cm;u(),i||this.onDidEnablementChange.event(u,null,g);t.onPointerMove((e=>{s.fs.stop(e,!1);const t={startX:r,currentX:e.pageX,startY:o,currentY:e.pageY,altKey:a};this._onDidChange.fire(t)}),null,g),t.onPointerUp((e=>{s.fs.stop(e,!1),d.remove(),this.el.classList.remove("active"),this._onDidEnd.fire(),g.dispose();for(const t of n)t.classList.remove(v)}),null,g),g.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger((()=>e.el.classList.add("hover")),e.hoverDelay).then(void 0,(()=>{})),!t&&e.linkedSash&&C.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&C.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){C.onMouseLeave(this)}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){const t=e.initialTarget??e.target;if(t&&(0,s.sb)(t))return t.classList.contains("orthogonal-drag-handle")?t.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},31295:(e,t,i)=>{"use strict";i.d(t,{MU:()=>x,QC:()=>w,Se:()=>R,oO:()=>T});var s=i(60413),n=i(8597),r=i(55275),o=i(47358),a=i(34072),l=i(17390),c=i(90766),h=i(25689);const d=11;class u extends l.x{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px","undefined"!==typeof e.top&&(this.bgDomNode.style.top="0px"),"undefined"!==typeof e.left&&(this.bgDomNode.style.left="0px"),"undefined"!==typeof e.bottom&&(this.bgDomNode.style.bottom="0px"),"undefined"!==typeof e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...h.L.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px","undefined"!==typeof e.top&&(this.domNode.style.top=e.top+"px"),"undefined"!==typeof e.left&&(this.domNode.style.left=e.left+"px"),"undefined"!==typeof e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),"undefined"!==typeof e.right&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new a._),this._register(n.b2(this.bgDomNode,n.Bx.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._register(n.b2(this.domNode,n.Bx.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._pointerdownRepeatTimer=this._register(new n.Be),this._pointerdownScheduleRepeatTimer=this._register(new c.pc)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet((()=>{this._pointerdownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24,n.zk(e))}),200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{}),(()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()})),e.preventDefault()}}var g=i(5662);class p extends g.jG{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new c.pc)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{this._domNode?.setClassName(this._visibleClassName)}),0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode?.setClassName(this._invisibleClassName+(e?" fade":"")))}}var m=i(98067);class f extends l.x{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new p(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new a._),this._shouldRender=!0,this.domNode=(0,r.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(n.ko(this.domNode.domNode,n.Bx.POINTER_DOWN,(e=>this._domNodePointerDown(e))))}_createArrow(e){const t=this._register(new u(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,s){this.slider=(0,r.Z)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof i&&this.slider.setWidth(i),"number"===typeof s&&this.slider.setHeight(s),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(n.ko(this.slider.domNode,n.Bx.POINTER_DOWN,(e=>{0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}))),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),s=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),n=this._sliderPointerPosition(e);i<=n&&n<=s?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"===typeof e.offsetX&&"number"===typeof e.offsetY)t=e.offsetX,i=e.offsetY;else{const s=n.BK(this.domNode.domNode);t=e.pageX-s.left,i=e.pageY-s.top}const s=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(s):this._scrollbarState.getDesiredScrollPositionFromOffset(s)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),s=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{const n=this._sliderOrthogonalPointerPosition(e),r=Math.abs(n-i);if(m.uF&&r>140)return void this._setDesiredScrollPositionNow(s.getScrollPosition());const o=this._sliderPointerPosition(e)-t;this._setDesiredScrollPositionNow(s.getDesiredScrollPositionFromDelta(o))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}var _=i(74850),v=i(10350);class C extends f{constructor(e,t,i){const s=e.getScrollDimensions(),n=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.m(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,s.width,s.scrollWidth,n.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){const e=(t.arrowSize-d)/2,i=(t.horizontalScrollbarSize-d)/2;this._createArrow({className:"scra",icon:v.W.scrollbarButtonLeft,top:i,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,1,0))}),this._createArrow({className:"scra",icon:v.W.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class b extends f{constructor(e,t,i){const s=e.getScrollDimensions(),n=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new _.m(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,s.height,s.scrollHeight,n.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-d)/2,i=(t.verticalScrollbarSize-d)/2;this._createArrow({className:"scra",icon:v.W.scrollbarButtonUp,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,0,1))}),this._createArrow({className:"scra",icon:v.W.scrollbarButtonDown,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o.$(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var E=i(41234),S=i(49353);class y{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class w{static{this.INSTANCE=new w}constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,s=this._rear;for(;;){const n=s===this._front?e:Math.pow(2,-i);if(e-=n,t+=this._memory[s].score*n,s===this._front)break;s=(this._capacity+s-1)%this._capacity,i++}return t<=.5}acceptStandardWheelEvent(e){if(s.H8){const t=n.zk(e.browserEvent),i=(0,s.pR)(t);this.accept(Date.now(),e.deltaX*i,e.deltaY*i)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){let s=null;const n=new y(e,t,i);-1===this._front&&-1===this._rear?(this._memory[0]=n,this._front=0,this._rear=0):(s=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=n),n.score=this._computeScore(n,s)}_computeScore(e,t){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let i=.5;if(this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(i+=.25),t){const s=Math.abs(e.deltaX),n=Math.abs(e.deltaY),r=Math.abs(t.deltaX),o=Math.abs(t.deltaY),a=Math.max(Math.min(s,r),1),l=Math.max(Math.min(n,o),1),c=Math.max(s,r),h=Math.max(n,o);c%a===0&&h%l===0&&(i-=.5)}return Math.min(Math.max(i,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}class L extends l.x{get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new E.vl),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new E.vl),e.style.overflow="hidden",this._options=function(e){const t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:"undefined"!==typeof e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:"undefined"!==typeof e.scrollByPage&&e.scrollByPage};t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,m.zx&&(t.className+=" mac");return t}(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const s={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new b(this._scrollable,this._options,s)),this._horizontalScrollbar=this._register(new C(this._scrollable,this._options,s)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,r.Z)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,r.Z)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,r.Z)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onmouseleave(this._listenOnDomNode,(e=>this._onMouseLeave(e))),this._hideTimeout=this._register(new c.pc),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,g.AS)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,m.zx&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontal&&(this._options.horizontal=e.horizontal),"undefined"!==typeof e.vertical&&(this._options.vertical=e.vertical),"undefined"!==typeof e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),"undefined"!==typeof e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),"undefined"!==typeof e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new o.$(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,g.AS)(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new o.$(e))};this._mouseWheelToDispose.push(n.ko(this._listenOnDomNode,n.Bx.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){if(e.browserEvent?.defaultPrevented)return;const t=w.INSTANCE;t.acceptStandardWheelEvent(e);let i=!1;if(e.deltaY||e.deltaX){let s=e.deltaY*this._options.mouseWheelScrollSensitivity,n=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&n+s===0?n=s=0:Math.abs(s)>=Math.abs(n)?n=0:s=0),this._options.flipAxes&&([s,n]=[n,s]);const r=!m.zx&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||n||(n=s,s=0),e.browserEvent&&e.browserEvent.altKey&&(n*=this._options.fastScrollSensitivity,s*=this._options.fastScrollSensitivity);const o=this._scrollable.getFutureScrollPosition();let a={};if(s){const e=50*s,t=o.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,t)}if(n){const e=50*n,t=o.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}if(a=this._scrollable.validateScrollPosition(a),o.scrollLeft!==a.scrollLeft||o.scrollTop!==a.scrollTop){this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),i=!0}}let s=i;!s&&this._options.alwaysConsumeMouseWheel&&(s=!0),!s&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(s=!0),s&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,s=i?" left":"",n=t?" top":"",r=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${s}`),this._topShadowDomNode.setClassName(`shadow${n}`),this._topLeftShadowDomNode.setClassName(`shadow${r}${n}${s}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),500)}}class R extends L{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new S.yE({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>n.PG(n.zk(e),t)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class T extends L{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class x extends L{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new S.yE({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>n.PG(n.zk(e),t)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}))),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},74850:(e,t,i)=>{"use strict";i.d(t,{m:()=>s});class s{constructor(e,t,i,s,n,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=s,this._scrollSize=n,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new s(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,s,n){const r=Math.max(0,i-e),o=Math.max(0,r-2*t),a=s>0&&s>i;if(!a)return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(o),computedSliderRatio:0,computedSliderPosition:0};const l=Math.round(Math.max(20,Math.floor(i*o/s))),c=(o-l)/(s-i),h=n*c;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:c,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){const e=s._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return t<this._computedSliderPosition?i-=this._visibleSize:i+=this._visibleSize,i}getDesiredScrollPositionFromDelta(e){if(!this._computedIsNeeded)return 0;const t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)}}},35151:(e,t,i)=>{"use strict";i.d(t,{X:()=>C,U:()=>b});var s=i(8597),n=i(56245),r=i(92403),o=i(31295),a=i(25890),l=i(47661),c=i(41234),h=i(5662),d=i(1592),u=i(49353),g=i(631);const p={separatorBorder:l.Q1.transparent};class m{set size(e){this._size=e}get size(){return this._size}get visible(){return"undefined"===typeof this._cachedVisibleSize}setVisible(e,t){if(e!==this.visible){e?(this.size=(0,d.qE)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"===typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e);try{this.view.setVisible?.(e)}catch(i){console.error("Splitview: Failed to set visible view"),console.error(i)}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){return this.view.proportionalLayout??!0}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,s){this.container=e,this.view=t,this.disposable=s,this._cachedVisibleSize=void 0,"number"===typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}layout(e,t){this.layoutContainer(e);try{this.view.layout(this.size,e,t)}catch(i){console.error("Splitview: Failed to layout view"),console.error(i)}}dispose(){this.disposable.dispose()}}class f extends m{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class _ extends m{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var v,C;!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(v||(v={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Auto=function(e){return{type:"auto",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(C||(C={}));class b extends h.jG{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t={}){super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=v.Idle,this._onDidSashChange=this._register(new c.vl),this._onDidSashReset=this._register(new c.vl),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=t.orientation??0,this.inverseAltBehavior=t.inverseAltBehavior??!1,this.proportionalLayout=t.proportionalLayout??!0,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=(0,s.BC)(this.el,(0,s.$)(".sash-container")),this.viewContainer=(0,s.$)(".split-view-container"),this.scrollable=this._register(new u.yE({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:e=>(0,s.PG)((0,s.zk)(this.el),e)})),this.scrollableElement=this._register(new o.oO(this.viewContainer,{vertical:0===this.orientation?t.scrollbarVisibility??1:2,horizontal:1===this.orientation?t.scrollbarVisibility??1:2},this.scrollable));const i=this._register(new n.f(this.viewContainer,"scroll")).event;this._register(i((e=>{const t=this.scrollableElement.getScrollPosition(),i=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,s=Math.abs(this.viewContainer.scrollTop-t.scrollTop)<=1?void 0:this.viewContainer.scrollTop;void 0===i&&void 0===s||this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:s})}))),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft)}))),(0,s.BC)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||p),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=g.b0(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},s=e.view;this.doAddView(s,i,t,!0)})),this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,s){this.doAddView(e,t,i,s)}layout(e,t){const i=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let t=0;for(let i=0;i<this.viewItems.length;i++){const s=this.viewItems[i],n=this.proportions[i];"number"===typeof n?t+=n:e-=s.size}for(let i=0;i<this.viewItems.length;i++){const s=this.viewItems[i],n=this.proportions[i];"number"===typeof n&&t>0&&(s.size=(0,d.qE)(Math.round(n*e/t),s.minimumSize,s.maximumSize))}}else{const t=(0,a.y1)(this.viewItems.length),s=t.filter((e=>1===this.viewItems[e].priority)),n=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,s,n)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map((e=>e.proportionalLayout&&e.visible?e.size/this._contentSize:void 0)))}onSashStart({sash:e,start:t,alt:i}){for(const s of this.viewItems)s.enabled=!1;const n=this.sashItems.findIndex((t=>t.sash===e)),r=(0,h.qE)((0,s.ko)(this.el.ownerDocument.body,"keydown",(e=>o(this.sashDragState.current,e.altKey))),(0,s.ko)(this.el.ownerDocument.body,"keyup",(()=>o(this.sashDragState.current,!1)))),o=(e,t)=>{const i=this.viewItems.map((e=>e.size));let s,o,l=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){if(n===this.sashItems.length-1){const e=this.viewItems[n];l=(e.minimumSize-e.size)/2,c=(e.maximumSize-e.size)/2}else{const e=this.viewItems[n+1];l=(e.size-e.maximumSize)/2,c=(e.size-e.minimumSize)/2}}if(!t){const e=(0,a.y1)(n,-1),t=(0,a.y1)(n+1,this.viewItems.length),r=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),l=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),c=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),h=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),d=Math.max(r,h),u=Math.min(c,l),g=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"===typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);s={index:g,limitDelta:e.visible?d-t:d+t,size:e.size}}if("number"===typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);o={index:p,limitDelta:e.visible?u+t:u-t,size:e.size}}}this.sashDragState={start:e,current:e,index:n,sizes:i,minDelta:l,maxDelta:c,alt:t,snapBefore:s,snapAfter:o,disposable:r}};o(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:s,alt:n,minDelta:r,maxDelta:o,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e;const c=e-i,h=this.resize(t,c,s,void 0,void 0,r,o,a,l);if(n){const e=t===this.sashItems.length-1,i=this.viewItems.map((e=>e.size)),s=e?t:t+1,n=this.viewItems[s],r=n.size-n.maximumSize,o=n.size-n.minimumSize,a=e?t-1:t+1;this.resize(a,-h,i,void 0,void 0,r,o)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=(0,d.qE)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const i=(0,a.y1)(this.viewItems.length).filter((t=>t!==e)),s=[...i.filter((e=>1===this.viewItems[e].priority)),e],n=i.filter((e=>2===this.viewItems[e].priority)),r=this.viewItems[e];t=Math.round(t),t=(0,d.qE)(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(s,n)}finally{this.state=v.Idle}}}distributeViewSizes(){const e=[];let t=0;for(const o of this.viewItems)o.maximumSize-o.minimumSize>0&&(e.push(o),t+=o.size);const i=Math.floor(t/e.length);for(const o of e)o.size=(0,d.qE)(i,o.minimumSize,o.maximumSize);const s=(0,a.y1)(this.viewItems.length),n=s.filter((e=>1===this.viewItems[e].priority)),r=s.filter((e=>2===this.viewItems[e].priority));this.relayout(n,r)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,n){if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;try{const o=(0,s.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(o):this.viewContainer.insertBefore(o,this.viewContainer.children.item(i));const l=e.onDidChange((e=>this.onViewChange(p,e))),d=(0,h.s)((()=>o.remove())),u=(0,h.qE)(l,d);let g;"number"===typeof t?g=t:("auto"===t.type&&(t=this.areViewsDistributed()?{type:"distribute"}:{type:"split",index:t.index}),g="split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize);const p=0===this.orientation?new f(o,e,g,u):new _(o,e,g,u);if(this.viewItems.splice(i,0,p),this.viewItems.length>1){const e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new r.m(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{...e,orientation:1}):new r.m(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{...e,orientation:0}),s=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),n=c.Jh.map(t.onDidStart,s)(this.onSashStart,this),o=c.Jh.map(t.onDidChange,s)(this.onSashChange,this),l=c.Jh.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),d=l(this.onSashEnd,this),u=t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=(0,a.y1)(e,-1),s=(0,a.y1)(e+1,this.viewItems.length),n=this.findFirstSnapIndex(i),r=this.findFirstSnapIndex(s);("number"!==typeof n||this.viewItems[n].visible)&&("number"!==typeof r||this.viewItems[r].visible)&&this._onDidSashReset.fire(e)})),g=(0,h.qE)(n,o,d,u,t),p={sash:t,disposable:g};this.sashItems.splice(i-1,0,p)}let m;o.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(m=[t.index]),n||this.relayout([i],m),n||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()}finally{this.state=v.Idle}}relayout(e,t){const i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map((e=>e.size)),s,n,r=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY,l,c){if(e<0||e>=this.viewItems.length)return 0;const h=(0,a.y1)(e,-1),u=(0,a.y1)(e+1,this.viewItems.length);if(n)for(const d of n)(0,a._A)(h,d),(0,a._A)(u,d);if(s)for(const d of s)(0,a.r7)(h,d),(0,a.r7)(u,d);const g=h.map((e=>this.viewItems[e])),p=h.map((e=>i[e])),m=u.map((e=>this.viewItems[e])),f=u.map((e=>i[e])),_=h.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),v=h.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),C=0===u.length?Number.POSITIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),b=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),E=Math.max(_,b,r),S=Math.min(C,v,o);let y=!1;if(l){const e=this.viewItems[l.index],i=t>=l.limitDelta;y=i!==e.visible,e.setVisible(i,l.size)}if(!y&&c){const e=this.viewItems[c.index],i=t<c.limitDelta;y=i!==e.visible,e.setVisible(i,c.size)}if(y)return this.resize(e,t,i,s,n,r,o);for(let a=0,w=t=(0,d.qE)(t,E,S);a<g.length;a++){const e=g[a],t=(0,d.qE)(p[a]+w,e.minimumSize,e.maximumSize);w-=t-p[a],e.size=t}for(let a=0,w=t;a<m.length;a++){const e=m[a],t=(0,d.qE)(f[a]-w,e.minimumSize,e.maximumSize);w+=t-f[a],e.size=t}return t}distributeEmptySpace(e){const t=this.viewItems.reduce(((e,t)=>e+t.size),0);let i=this.size-t;const s=(0,a.y1)(this.viewItems.length-1,-1),n=s.filter((e=>1===this.viewItems[e].priority)),r=s.filter((e=>2===this.viewItems[e].priority));for(const o of r)(0,a._A)(s,o);for(const o of n)(0,a.r7)(s,o);"number"===typeof e&&(0,a.r7)(s,e);for(let o=0;0!==i&&o<s.length;o++){const e=this.viewItems[s[o]],t=(0,d.qE)(e.size+i,e.minimumSize,e.maximumSize);i-=t-e.size,e.size=t}}layoutViews(){this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),s=[...this.viewItems].reverse();e=!1;const n=s.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const r=s.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let o=0;for(let l=0;l<this.sashItems.length;l++){const{sash:e}=this.sashItems[l];o+=this.viewItems[l].size;const s=!(t[l]&&r[l+1]),c=!(i[l]&&n[l+1]);if(s&&c){const i=(0,a.y1)(l,-1),s=(0,a.y1)(l+1,this.viewItems.length),r=this.findFirstSnapIndex(i),c=this.findFirstSnapIndex(s),h="number"===typeof r&&!this.viewItems[r].visible,d="number"===typeof c&&!this.viewItems[c].visible;h&&n[l]&&(o>0||this.startSnappingEnabled)?e.state=1:d&&t[l]&&(o<this._contentSize||this.endSnappingEnabled)?e.state=2:e.state=0}else e.state=s&&!c?1:!s&&c?2:3}}getSashPosition(e){let t=0;for(let i=0;i<this.sashItems.length;i++)if(t+=this.viewItems[i].size,this.sashItems[i].sash===e)return t;return 0}findFirstSnapIndex(e){for(const t of e){const e=this.viewItems[t];if(e.visible&&e.snap)return t}for(const t of e){const e=this.viewItems[t];if(e.visible&&e.maximumSize-e.minimumSize>0)return;if(!e.visible&&e.snap)return t}}areViewsDistributed(){let e,t;for(const i of this.viewItems)if(e=void 0===e?i.size:Math.min(e,i.size),t=void 0===t?i.size:Math.max(t,i.size),t-e>2)return!1;return!0}dispose(){this.sashDragState?.disposable.dispose(),(0,h.AS)(this.viewItems),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[],super.dispose()}}},35315:(e,t,i)=>{"use strict";i.d(t,{l:()=>c,F:()=>l});var s=i(17390),n=i(25689),r=i(41234),o=i(42904),a=i(48196);const l={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class c extends s.x{constructor(e){super(),this._onChange=this._register(new r.vl),this.onChange=this._onChange.event,this._onKeyDown=this._register(new r.vl),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...n.L.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register((0,a.i)().setupManagedHover(e.hoverDelegate??(0,o.nZ)("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...t),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,(e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())})),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,(e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),void e.stopPropagation();this._onKeyDown.fire(e)}))}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},19466:(e,t,i)=>{"use strict";i.d(t,{DO:()=>q,w0:()=>x,KP:()=>s,RD:()=>O,vD:()=>I});var s,n=i(8597),r=(i(56245),i(72962)),o=(i(11799),i(88443),i(91581)),a=i(66700),l=i(93090),c=i(35315),h=i(37472),d=i(84565),u=(i(36921),i(25890)),g=i(90766),p=i(10350),m=i(25689),f=i(74320),_=i(41234),v=i(26690),C=i(5662),b=i(1592),E=i(631),S=i(78209),y=(i(42904),i(31308)),w=i(11007);class L extends a.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function R(e){return e instanceof a.ur?new L(e):e}class T{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=C.jG.None,this.disposables=new C.Cm}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){this.dnd.onDragStart?.(R(e),t)}onDragOver(e,t,i,s,n,r=!0){const o=this.dnd.onDragOver(R(e),t&&t.element,i,s,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return o;if(a&&"boolean"!==typeof o&&o.autoExpand&&(this.autoExpandDisposable=(0,g.EQ)((()=>{const e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0}),500,this.disposables)),"boolean"===typeof o||!o.accept||"undefined"===typeof o.bubble||o.feedback){if(!r){return{accept:"boolean"===typeof o?o:o.accept,effect:"boolean"===typeof o?void 0:o.effect,feedback:[i]}}return o}if(1===o.bubble){const i=this.modelProvider(),r=i.getNodeLocation(t),o=i.getParentNodeLocation(r),a=i.getNode(o),l=o&&i.getListIndex(o);return this.onDragOver(e,a,l,s,n,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),h=l.getListIndex(c),d=l.getListRenderCount(c);return{...o,feedback:(0,u.y1)(h,h+d)}}drop(e,t,i,s,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(R(e),t&&t.element,i,s,n)}onDragEnd(e){this.dnd.onDragEnd?.(e)}dispose(){this.disposables.dispose(),this.dnd.dispose()}}class x{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){this.delegate.setDynamicHeight?.(e.element,t)}}!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(s||(s={}));class k{get elements(){return this._elements}constructor(e,t=[]){this._elements=t,this.disposables=new C.Cm,this.onDidChange=_.Jh.forEach(e,(e=>this._elements=e),this.disposables)}dispose(){this.disposables.dispose()}}class A{static{this.DefaultIndent=8}constructor(e,t,i,s,n,r={}){this.renderer=e,this.modelProvider=t,this.activeNodes=s,this.renderedIndentGuides=n,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=A.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=C.jG.None,this.disposables=new C.Cm,this.templateId=e.templateId,this.updateOptions(r),_.Jh.map(i,(e=>e.node))(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState?.(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if("undefined"!==typeof e.indent){const t=(0,b.qE)(e.indent,0,40);if(t!==this.indent){this.indent=t;for(const[e,t]of this.renderedNodes)this.renderTreeElement(e,t)}}if("undefined"!==typeof e.renderIndentGuides){const t=e.renderIndentGuides!==s.None;if(t!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=t;for(const[e,t]of this.renderedNodes)this._renderIndentGuides(e,t);if(this.indentGuidesDisposable.dispose(),t){const e=new C.Cm;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=(0,n.BC)(e,(0,n.$)(".monaco-tl-row")),i=(0,n.BC)(t,(0,n.$)(".monaco-tl-indent")),s=(0,n.BC)(t,(0,n.$)(".monaco-tl-twistie")),r=(0,n.BC)(t,(0,n.$)(".monaco-tl-contents")),o=this.renderer.renderTemplate(r);return{container:e,indent:i,twistie:s,indentGuidesDisposable:C.jG.None,templateData:o}}renderElement(e,t,i,s){this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,s)}disposeElement(e,t,i,s){i.indentGuidesDisposable.dispose(),this.renderer.disposeElement?.(e,t,i.templateData,s),"number"===typeof s&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t))}renderTreeElement(e,t){const i=A.DefaultIndent+(e.depth-1)*this.indent;t.twistie.style.paddingLeft=`${i}px`,t.indent.style.width=i+this.indent-16+"px",e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...m.L.asClassNameArray(p.W.treeItemExpanded));let s=!1;this.renderer.renderTwistie&&(s=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(s||t.twistie.classList.add(...m.L.asClassNameArray(p.W.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,t)}_renderIndentGuides(e,t){if((0,n.w_)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new C.Cm,s=this.modelProvider();for(;;){const r=s.getNodeLocation(e),o=s.getParentNodeLocation(r);if(!o)break;const a=s.getNode(o),l=(0,n.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(a)&&l.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(l):t.indent.insertBefore(l,t.indent.firstElementChild),this.renderedIndentGuides.add(a,l),i.add((0,C.s)((()=>this.renderedIndentGuides.delete(a,l)))),e=a}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach((e=>{const s=i.getNodeLocation(e);try{const n=i.getParentNodeLocation(s);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):n&&t.add(i.getNode(n))}catch{}})),this.activeIndentNodes.forEach((e=>{t.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.remove("active")))})),t.forEach((e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.add("active")))})),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,C.AS)(this.disposables)}}class N{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new C.Cm,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,t){let i=1;if(this._filter){const s=this._filter.filter(e,t);if(i="boolean"===typeof s?s?1:0:(0,h.iZ)(s)?(0,h.Mn)(s.visibility):s,0===i)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:v.ne.Default,visibility:i};const s=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),n=Array.isArray(s)?s:[s];for(const r of n){const e=r&&r.toString();if("undefined"===typeof e)return{data:v.ne.Default,visibility:i};let t;if(this.tree.findMatchType===O.Contiguous){const i=e.toLowerCase().indexOf(this._lowercasePattern);if(i>-1){t=[Number.MAX_SAFE_INTEGER,0];for(let e=this._lowercasePattern.length;e>0;e--)t.push(i+e-1)}}else t=(0,v.dt)(this._pattern,this._lowercasePattern,0,e,e.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(t)return this._matchCount++,1===n.length?{data:t,visibility:i}:{data:{label:e,score:t},visibility:i}}return this.tree.findMode===I.Filter?"number"===typeof this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:v.ne.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,C.AS)(this.disposables)}}c.l;c.l;o.x8,c.F;var I,O;!function(e){e[e.Highlight=0]="Highlight",e[e.Filter=1]="Filter"}(I||(I={})),function(e){e[e.Fuzzy=0]="Fuzzy",e[e.Contiguous=1]="Contiguous"}(O||(O={}));C.jG;class D{get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}get matchType(){return this._matchType}set matchType(e){e!==this._matchType&&(this._matchType=e,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e))}constructor(e,t,i,s,n,r={}){this.tree=e,this.view=i,this.filter=s,this.contextViewProvider=n,this.options=r,this._pattern="",this.width=0,this._onDidChangeMode=new _.vl,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new _.vl,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new _.vl,this._onDidChangeOpenState=new _.vl,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new C.Cm,this.disposables=new C.Cm,this._mode=e.options.defaultFindMode??I.Highlight,this._matchType=e.options.defaultFindMatchType??O.Fuzzy,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(e={}){void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}render(){const e=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&e?((0,w.xE)((0,S.kg)("replFindNoResults","No results")),this.tree.options.showNotFoundMessage??1?this.widget?.showMessage({type:2,content:(0,S.kg)("not found","No elements found.")}):this.widget?.showMessage({type:2})):(this.widget?.clearMessage(),this.pattern&&(0,w.xE)((0,S.kg)("replFindResults","{0} results",this.filter.matchCount)))}shouldAllowFocus(e){return!this.widget||!this.pattern||(this.filter.totalCount>0&&this.filter.matchCount<=1||!v.ne.isDefault(e.filterData))}layout(e){this.width=e,this.widget?.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function M(e,t){return e.position===t.position&&P(e,t)}function P(e,t){return e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex}class F{constructor(e=[]){this.stickyNodes=e}get count(){return this.stickyNodes.length}equal(e){return(0,u.aI)(this.stickyNodes,e.stickyNodes,M)}lastNodePartiallyVisible(){if(0===this.count)return!1;const e=this.stickyNodes[this.count-1];if(1===this.count)return 0!==e.position;const t=this.stickyNodes[this.count-2];return t.position+t.height!==e.position}animationStateChanged(e){if(!(0,u.aI)(this.stickyNodes,e.stickyNodes,P))return!1;if(0===this.count)return!1;const t=this.stickyNodes[this.count-1],i=e.stickyNodes[e.count-1];return t.position!==i.position}}class U{constrainStickyScrollNodes(e,t,i){for(let s=0;s<e.length;s++){const n=e[s];if(n.position+n.height>i||s>=t)return e.slice(0,s)}return e}}class H extends C.jG{constructor(e,t,i,s,n,r={}){super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=n,this.maxWidgetViewRatio=.4;const o=this.validateStickySettings(r);this.stickyScrollMaxItemCount=o.stickyScrollMaxItemCount,this.stickyScrollDelegate=r.stickyScrollDelegate??new U,this._widget=this._register(new B(i.getScrollableElement(),i,e,s,n,r.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(i.onDidScroll((()=>this.update()))),this._register(i.onDidChangeContentHeight((()=>this.update()))),this._register(e.onDidChangeCollapseState((()=>this.update()))),this.update()}get height(){return this._widget.height}getNodeAtHeight(e){let t;if(t=0===e?this.view.firstVisibleIndex:this.view.indexAt(e+this.view.scrollTop),!(t<0||t>=this.view.length))return this.view.element(t)}update(){const e=this.getNodeAtHeight(0);if(!e||0===this.tree.scrollTop)return void this._widget.setState(void 0);const t=this.findStickyState(e);this._widget.setState(t)}findStickyState(e){const t=[];let i=e,s=0,n=this.getNextStickyNode(i,void 0,s);for(;n&&(t.push(n),s+=n.height,!(t.length<=this.stickyScrollMaxItemCount)||(i=this.getNextVisibleNode(n),i));)n=this.getNextStickyNode(i,n.node,s);const r=this.constrainStickyNodes(t);return r.length?new F(r):void 0}getNextVisibleNode(e){return this.getNodeAtHeight(e.position+e.height)}getNextStickyNode(e,t,i){const s=this.getAncestorUnderPrevious(e,t);if(s){if(s===e){if(!this.nodeIsUncollapsedParent(e))return;if(this.nodeTopAlignsWithStickyNodesBottom(e,i))return}return this.createStickyScrollNode(s,i)}}nodeTopAlignsWithStickyNodesBottom(e,t){const i=this.getNodeIndex(e),s=this.view.getElementTop(i),n=t;return this.view.scrollTop===s-n}createStickyScrollNode(e,t){const i=this.treeDelegate.getHeight(e),{startIndex:s,endIndex:n}=this.getNodeRange(e);return{node:e,position:this.calculateStickyNodePosition(n,t,i),height:i,startIndex:s,endIndex:n}}getAncestorUnderPrevious(e,t=void 0){let i=e,s=this.getParentNode(i);for(;s;){if(s===t)return i;i=s,s=this.getParentNode(i)}if(void 0===t)return i}calculateStickyNodePosition(e,t,i){let s=this.view.getRelativeTop(e);if(null===s&&this.view.firstVisibleIndex===e&&e+1<this.view.length){const t=this.treeDelegate.getHeight(this.view.element(e)),i=this.view.getRelativeTop(e+1);s=i?i-t/this.view.renderHeight:null}if(null===s)return t;const n=this.view.element(e),r=this.treeDelegate.getHeight(n),o=s*this.view.renderHeight+r;return t+i>o&&t<=o?o-i:t}constrainStickyNodes(e){if(0===e.length)return[];const t=this.view.renderHeight*this.maxWidgetViewRatio,i=e[e.length-1];if(e.length<=this.stickyScrollMaxItemCount&&i.position+i.height<=t)return e;const s=this.stickyScrollDelegate.constrainStickyScrollNodes(e,this.stickyScrollMaxItemCount,t);if(!s.length)return[];const n=s[s.length-1];if(s.length>this.stickyScrollMaxItemCount||n.position+n.height>t)throw new Error("stickyScrollDelegate violates constraints");return s}getParentNode(e){const t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0}nodeIsUncollapsedParent(e){const t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1}getNodeIndex(e){const t=this.model.getNodeLocation(e);return this.model.getListIndex(t)}getNodeRange(e){const t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw new Error("Node not found in tree");return{startIndex:i,endIndex:i+this.model.getListRenderCount(t)-1}}nodePositionTopBelowWidget(e){const t=[];let i=this.getParentNode(e);for(;i;)t.push(i),i=this.getParentNode(i);let s=0;for(let n=0;n<t.length&&n<this.stickyScrollMaxItemCount;n++)s+=this.treeDelegate.getHeight(t[n]);return s}domFocus(){this._widget.domFocus()}focusedLast(){return this._widget.focusedLast()}updateOptions(e={}){if(!e.stickyScrollMaxItemCount)return;const t=this.validateStickySettings(e);this.stickyScrollMaxItemCount!==t.stickyScrollMaxItemCount&&(this.stickyScrollMaxItemCount=t.stickyScrollMaxItemCount,this.update())}validateStickySettings(e){let t=7;return"number"===typeof e.stickyScrollMaxItemCount&&(t=Math.max(e.stickyScrollMaxItemCount,1)),{stickyScrollMaxItemCount:t}}}class B{constructor(e,t,i,s,r,o){this.view=t,this.tree=i,this.treeRenderers=s,this.treeDelegate=r,this.accessibilityProvider=o,this._previousElements=[],this._previousStateDisposables=new C.Cm,this._rootDomNode=(0,n.$)(".monaco-tree-sticky-container.empty"),e.appendChild(this._rootDomNode);const a=(0,n.$)(".monaco-tree-sticky-container-shadow");this._rootDomNode.appendChild(a),this.stickyScrollFocus=new W(this._rootDomNode,t),this.onDidChangeHasFocus=this.stickyScrollFocus.onDidChangeHasFocus,this.onContextMenu=this.stickyScrollFocus.onContextMenu}get height(){if(!this._previousState)return 0;const e=this._previousState.stickyNodes[this._previousState.count-1];return e.position+e.height}setState(e){const t=!!this._previousState&&this._previousState.count>0,i=!!e&&e.count>0;if(!t&&!i||t&&i&&this._previousState.equal(e))return;if(t!==i&&this.setVisible(i),!i)return this._previousState=void 0,this._previousElements=[],void this._previousStateDisposables.clear();const s=e.stickyNodes[e.count-1];if(this._previousState&&e.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${s.position}px`;else{this._previousStateDisposables.clear();const t=Array(e.count);for(let i=e.count-1;i>=0;i--){const s=e.stickyNodes[i],{element:n,disposable:r}=this.createElement(s,i,e.count);t[i]=n,this._rootDomNode.appendChild(n),this._previousStateDisposables.add(r)}this.stickyScrollFocus.updateElements(t,e),this._previousElements=t}this._previousState=e,this._rootDomNode.style.height=`${s.position+s.height}px`}createElement(e,t,i){const s=e.startIndex,n=document.createElement("div");n.style.top=`${e.position}px`,!1!==this.tree.options.setRowHeight&&(n.style.height=`${e.height}px`),!1!==this.tree.options.setRowLineHeight&&(n.style.lineHeight=`${e.height}px`),n.classList.add("monaco-tree-sticky-row"),n.classList.add("monaco-list-row"),n.setAttribute("data-index",`${s}`),n.setAttribute("data-parity",s%2===0?"even":"odd"),n.setAttribute("id",this.view.getElementID(s));const r=this.setAccessibilityAttributes(n,e.node.element,t,i),o=this.treeDelegate.getTemplateId(e.node),a=this.treeRenderers.find((e=>e.templateId===o));if(!a)throw new Error(`No renderer found for template id ${o}`);let l=e.node;l===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(l=new Proxy(e.node,{}));const c=a.renderTemplate(n);a.renderElement(l,e.startIndex,c,e.height);const h=(0,C.s)((()=>{r.dispose(),a.disposeElement(l,e.startIndex,c,e.height),a.disposeTemplate(c),n.remove()}));return{element:n,disposable:h}}setAccessibilityAttributes(e,t,i,s){if(!this.accessibilityProvider)return C.jG.None;this.accessibilityProvider.getSetSize&&e.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(t,i,s))),this.accessibilityProvider.getPosInSet&&e.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(t,i))),this.accessibilityProvider.getRole&&e.setAttribute("role",this.accessibilityProvider.getRole(t)??"treeitem");const n=this.accessibilityProvider.getAriaLabel(t),r=n&&"string"!==typeof n?n:(0,y.lk)(n),o=(0,y.fm)((t=>{const i=t.readObservable(r);i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label")}));"string"===typeof n||n&&e.setAttribute("aria-label",n.get());const a=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(t);return"number"===typeof a&&e.setAttribute("aria-level",`${a}`),e.setAttribute("aria-selected",String(!1)),o}setVisible(e){this._rootDomNode.classList.toggle("empty",!e),e||this.stickyScrollFocus.updateElements([],void 0)}domFocus(){this.stickyScrollFocus.domFocus()}focusedLast(){return this.stickyScrollFocus.focusedLast()}dispose(){this.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove()}}class W extends C.jG{get domHasFocus(){return this._domHasFocus}set domHasFocus(e){e!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(e),this._domHasFocus=e)}constructor(e,t){super(),this.container=e,this.view=t,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=new _.vl,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new _.vl,this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this._register((0,n.ko)(this.container,"focus",(()=>this.onFocus()))),this._register((0,n.ko)(this.container,"blur",(()=>this.onBlur()))),this._register(this.view.onDidFocus((()=>this.toggleStickyScrollFocused(!1)))),this._register(this.view.onKeyDown((e=>this.onKeyDown(e)))),this._register(this.view.onMouseDown((e=>this.onMouseDown(e)))),this._register(this.view.onContextMenu((e=>this.handleContextMenu(e))))}handleContextMenu(e){const t=e.browserEvent.target;if(!(0,l.Es)(t)&&!(0,l.xu)(t))return void(this.focusedLast()&&this.view.domFocus());if(!(0,n.kx)(e.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");const t=this.state.stickyNodes.findIndex((t=>t.node.element===e.element?.element));if(-1===t)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");return this.container.focus(),void this.setFocus(t)}if(!this.state||this.focusedIndex<0)throw new Error("Context menu key should not be triggered when focus is not in sticky scroll widget");const i=this.state.stickyNodes[this.focusedIndex].node.element,s=this.elements[this.focusedIndex];this._onContextMenu.fire({element:i,anchor:s,browserEvent:e.browserEvent,isStickyScroll:!0})}onKeyDown(e){if(this.domHasFocus&&this.state)if("ArrowUp"===e.key)this.setFocusedElement(Math.max(0,this.focusedIndex-1)),e.preventDefault(),e.stopPropagation();else if("ArrowDown"===e.key||"ArrowRight"===e.key){if(this.focusedIndex>=this.state.count-1){const e=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([e]),this.scrollNodeUnderWidget(e,this.state)}else this.setFocusedElement(this.focusedIndex+1);e.preventDefault(),e.stopPropagation()}}onMouseDown(e){const t=e.browserEvent.target;((0,l.Es)(t)||(0,l.xu)(t))&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation())}updateElements(e,t){if(t&&0===t.count)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(t&&t.count!==e.length)throw new Error("Sticky scroll focus received illigel state");const i=this.focusedIndex;if(this.removeFocus(),this.elements=e,this.state=t,t){const e=(0,b.qE)(i,0,t.count-1);this.setFocus(e)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=t?0:-1}setFocusedElement(e){const t=this.state;if(!t)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(e),!(e<t.count-1)&&t.lastNodePartiallyVisible()){const i=t.stickyNodes[e];this.scrollNodeUnderWidget(i.endIndex+1,t)}}scrollNodeUnderWidget(e,t){const i=t.stickyNodes[t.count-1],s=t.count>1?t.stickyNodes[t.count-2]:void 0,n=this.view.getElementTop(e),r=s?s.position+s.height+i.height:i.height;this.view.scrollTop=n-r}domFocus(){if(!this.state)throw new Error("Cannot focus when state is undefined");this.container.focus()}focusedLast(){return!!this.state&&this.view.getHTMLElement().classList.contains("sticky-scroll-focused")}removeFocus(){-1!==this.focusedIndex&&(this.toggleElementFocus(this.elements[this.focusedIndex],!1),this.focusedIndex=-1)}setFocus(e){if(0>e)throw new Error("addFocus() can not remove focus");if(!this.state&&e>=0)throw new Error("Cannot set focus index when state is undefined");if(this.state&&e>=this.state.count)throw new Error("Cannot set focus index to an index that does not exist");const t=this.focusedIndex;t>=0&&this.toggleElementFocus(this.elements[t],!1),e>=0&&this.toggleElementFocus(this.elements[e],!0),this.focusedIndex=e}toggleElementFocus(e,t){this.toggleElementActiveFocus(e,t&&this.domHasFocus),this.toggleElementPassiveFocus(e,t)}toggleCurrentElementActiveFocus(e){-1!==this.focusedIndex&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],e)}toggleElementActiveFocus(e,t){e.classList.toggle("focused",t)}toggleElementPassiveFocus(e,t){e.classList.toggle("passive-focused",t)}toggleStickyScrollFocused(e){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",e)}onFocus(){if(!this.state||0===this.elements.length)throw new Error("Cannot focus when state is undefined or elements are empty");this.domHasFocus=!0,this.toggleStickyScrollFocused(!0),this.toggleCurrentElementActiveFocus(!0),-1===this.focusedIndex&&this.setFocus(0)}onBlur(){this.domHasFocus=!1,this.toggleCurrentElementActiveFocus(!1)}dispose(){this.toggleStickyScrollFocused(!1),this._onDidChangeHasFocus.fire(!1),super.dispose()}}function V(e){let t=d.Lx.Unknown;return(0,n.XD)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=d.Lx.Twistie:(0,n.XD)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=d.Lx.Element:(0,n.XD)(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=d.Lx.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function z(e){const t=(0,l.Es)(e.browserEvent.target);return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor,isStickyScroll:t}}function G(e,t){t(e),e.children.forEach((e=>G(e,t)))}class j{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new _.vl,this.onDidChange=this._onDidChange.event}set(e,t){!t?.__forceEvent&&(0,u.aI)(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map((e=>e.element))),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const e=this.createNodeSet(),i=t=>e.delete(t);return t.forEach((e=>G(e,i))),void this.set([...e.values()])}const i=new Set,s=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach((e=>G(e,s)));const n=new Map,r=e=>n.set(this.identityProvider.getId(e.element).toString(),e);e.forEach((e=>G(e,r)));const o=[];for(const a of this.nodes){const e=this.identityProvider.getId(a.element).toString();if(i.has(e)){const t=n.get(e);t&&t.visible&&o.push(t)}else o.push(a)}if(this.nodes.length>0&&0===o.length){const e=this.getFirstViewElementWithTrait();e&&o.push(e)}this._set(o,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class K extends l.MH{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i}onViewPointer(e){if((0,l.Bm)(e.browserEvent.target)||(0,l.B6)(e.browserEvent.target)||(0,l.bm)(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,s=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,n=(0,l.xu)(e.browserEvent.target);let r=!1;if(r=!!n||("function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick),n)this.handleStickyScrollMouseEvent(e,t);else{if(r&&!s&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e)}if(t.collapsible&&(!n||s)){const i=this.tree.getNodeLocation(t),n=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,n),s)return void(e.browserEvent.isHandledByList=!0)}n||super.onViewPointer(e)}handleStickyScrollMouseEvent(e,t){if((0,l.b$)(e.browserEvent.target)||(0,l.W0)(e.browserEvent.target))return;const i=this.stickyScrollProvider();if(!i)throw new Error("Sticky scroll controller not found");const s=this.list.indexOf(t),n=this.list.getElementTop(s),r=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=n-r,this.list.domFocus(),this.list.setFocus([s]),this.list.setSelection([s])}onDoubleClick(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&(e.browserEvent.isHandledByList||super.onDoubleClick(e))}onMouseDown(e){const t=e.browserEvent.target;(0,l.Es)(t)||(0,l.xu)(t)||super.onMouseDown(e)}onContextMenu(e){const t=e.browserEvent.target;(0,l.Es)(t)||(0,l.xu)(t)||super.onContextMenu(e)}}class Y extends l.B8{constructor(e,t,i,s,n,r,o,a){super(e,t,i,s,a),this.focusTrait=n,this.selectionTrait=r,this.anchorTrait=o}createMouseController(e){return new K(this,e.tree,e.stickyScrollProvider)}splice(e,t,i=[]){if(super.splice(e,t,i),0===i.length)return;const s=[],n=[];let r;i.forEach(((t,i)=>{this.focusTrait.has(t)&&s.push(e+i),this.selectionTrait.has(t)&&n.push(e+i),this.anchorTrait.has(t)&&(r=e+i)})),s.length>0&&super.setFocus((0,u.dM)([...super.getFocus(),...s])),n.length>0&&super.setSelection((0,u.dM)([...super.getSelection(),...n])),"number"===typeof r&&super.setAnchor(r)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map((e=>this.element(e))),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map((e=>this.element(e))),t)}setAnchor(e,t=!1){super.setAnchor(e),t||("undefined"===typeof e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class q{get onDidScroll(){return this.view.onDidScroll}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return _.Jh.filter(_.Jh.map(this.view.onMouseDblClick,V),(e=>e.target!==d.Lx.Filter))}get onMouseOver(){return _.Jh.map(this.view.onMouseOver,V)}get onMouseOut(){return _.Jh.map(this.view.onMouseOut,V)}get onContextMenu(){return _.Jh.any(_.Jh.filter(_.Jh.map(this.view.onContextMenu,z),(e=>!e.isStickyScroll)),this.stickyScrollController?.onContextMenu??_.Jh.None)}get onPointer(){return _.Jh.map(this.view.onPointer,V)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return _.Jh.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){return this.findController?.mode??I.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){return this.findController?.matchType??O.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}get expandOnDoubleClick(){return"undefined"===typeof this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return"undefined"===typeof this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(e,t,i,o,a={}){this._user=e,this._options=a,this.eventBufferer=new _.at,this.onDidChangeFindOpenState=_.Jh.None,this.onDidChangeStickyScrollFocused=_.Jh.None,this.disposables=new C.Cm,this._onWillRefilter=new _.vl,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new _.vl,this.treeDelegate=new x(i);const c=new _.Wj,h=new _.Wj,d=this.disposables.add(new k(h.event)),u=new f.db;this.renderers=o.map((e=>new A(e,(()=>this.model),c.event,d,u,a)));for(const s of this.renderers)this.disposables.add(s);let p;var m,v;a.keyboardNavigationLabelProvider&&(p=new N(this,a.keyboardNavigationLabelProvider,a.filter),a={...a,filter:p},this.disposables.add(p)),this.focus=new j((()=>this.view.getFocusedElements()[0]),a.identityProvider),this.selection=new j((()=>this.view.getSelectedElements()[0]),a.identityProvider),this.anchor=new j((()=>this.view.getAnchorElement()),a.identityProvider),this.view=new Y(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...(m=()=>this.model,v=a,v&&{...v,identityProvider:v.identityProvider&&{getId:e=>v.identityProvider.getId(e.element)},dnd:v.dnd&&new T(m,v.dnd),multipleSelectionController:v.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>v.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element}),isSelectionRangeChangeEvent:e=>v.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})},accessibilityProvider:v.accessibilityProvider&&{...v.accessibilityProvider,getSetSize(e){const t=m(),i=t.getNodeLocation(e),s=t.getParentNodeLocation(i);return t.getNode(s).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:v.accessibilityProvider&&v.accessibilityProvider.isChecked?e=>v.accessibilityProvider.isChecked(e.element):void 0,getRole:v.accessibilityProvider&&v.accessibilityProvider.getRole?e=>v.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>v.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>v.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:v.accessibilityProvider&&v.accessibilityProvider.getWidgetRole?()=>v.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:v.accessibilityProvider&&v.accessibilityProvider.getAriaLevel?e=>v.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:v.accessibilityProvider.getActiveDescendantId&&(e=>v.accessibilityProvider.getActiveDescendantId(e.element))},keyboardNavigationLabelProvider:v.keyboardNavigationLabelProvider&&{...v.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:e=>v.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(e,this.view,a),c.input=this.model.onDidChangeCollapseState;const b=_.Jh.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}),this.disposables);b((()=>null),null,this.disposables);const E=this.disposables.add(new _.vl),S=this.disposables.add(new g.ve(0));if(this.disposables.add(_.Jh.any(b,this.focus.onDidChange,this.selection.onDidChange)((()=>{S.trigger((()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);E.fire([...e.values()])}))}))),h.input=E.event,!1!==a.keyboardSupport){const e=_.Jh.chain(this.view.onKeyDown,(e=>e.filter((e=>!(0,l.B6)(e.target))).map((e=>new r.Z(e)))));_.Jh.chain(e,(e=>e.filter((e=>15===e.keyCode))))(this.onLeftArrow,this,this.disposables),_.Jh.chain(e,(e=>e.filter((e=>17===e.keyCode))))(this.onRightArrow,this,this.disposables),_.Jh.chain(e,(e=>e.filter((e=>10===e.keyCode))))(this.onSpace,this,this.disposables)}if((a.findWidgetEnabled??1)&&a.keyboardNavigationLabelProvider&&a.contextViewProvider){const e=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new D(this,this.model,this.view,p,a.contextViewProvider,e),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=_.Jh.None,this.onDidChangeFindMatchType=_.Jh.None;a.enableStickyScroll&&(this.stickyScrollController=new H(this,this.model,this.view,this.renderers,this.treeDelegate,a),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=(0,n.li)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===s.Always)}updateOptions(e={}){this._options={...this._options,...e};for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(this._options),this.findController?.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===s.Always)}get options(){return this._options}updateStickyScroll(e){!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new H(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=_.Jh.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),this.stickyScrollController?.updateOptions(e)}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get ariaLabel(){return this.view.ariaLabel}set ariaLabel(e){this.view.ariaLabel=e}domFocus(){this.stickyScrollController?.focusedLast()?this.stickyScrollController.domFocus():this.view.domFocus()}layout(e,t){this.view.layout(e,t),(0,E.Et)(t)&&this.findController?.layout(t)}style(e){const t=`.${this.view.domId}`,i=[];e.treeIndentGuidesStroke&&(i.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`));const s=e.treeStickyScrollBackground??e.listBackground;s&&(i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${s}; }`),i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${s}; }`)),e.treeStickyScrollBorder&&i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container { border-bottom: 1px solid ${e.treeStickyScrollBorder}; }`),e.treeStickyScrollShadow&&i.push(`.monaco-list${t} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow { box-shadow: ${e.treeStickyScrollShadow} 0 6px 6px -6px inset; height: 3px; }`),e.listFocusForeground&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));const r=(0,n.gI)(e.listFocusAndSelectionOutline,(0,n.gI)(e.listSelectionOutline,e.listFocusOutline??""));r&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${r}; outline-offset: -1px;}`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),e.listFocusOutline&&(i.push(`.monaco-list${t}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),i.push(`.monaco-list${t}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),i.push(`.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),i.push(`.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),i.push(`.monaco-workbench.context-menu-visible .monaco-list${t}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=i.join("\n"),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}getNodeLocation(e){return this.model.getNodeLocation(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}toggleCollapsed(e,t=!1){return this.model.setCollapsed(e,void 0,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.selection.set(i,t);const s=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setSelection(s,t,!0)}))}getSelection(){return this.selection.get()}setFocus(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.focus.set(i,t);const s=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setFocus(s,t,!0)}))}focusNext(e=1,t=!1,i,s=((0,n.kx)(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusNext(e,t,i,s)}focusPrevious(e=1,t=!1,i,s=((0,n.kx)(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusPrevious(e,t,i,s)}focusNextPage(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusNextPage(e,t)}focusPreviousPage(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusPreviousPage(e,t,(()=>this.stickyScrollController?.height??0))}focusLast(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){this.view.focusLast(e,t)}focusFirst(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){this.view.focusFirst(e,t)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);if(-1!==i)if(this.stickyScrollController){const s=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,s)}else this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i);if(!this.model.setCollapsed(s,!0)){const e=this.model.getParentNodeLocation(s);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i);if(!this.model.setCollapsed(s,!1)){if(!i.children.some((e=>e.visible)))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],s=this.model.getNodeLocation(i),n=e.browserEvent.altKey;this.model.setCollapsed(s,void 0,n)}dispose(){(0,C.AS)(this.disposables),this.stickyScrollController?.dispose(),this.view.dispose()}}},37472:(e,t,i)=>{"use strict";i.d(t,{G6:()=>g,Mn:()=>d,iZ:()=>h});var s=i(84565),n=i(25890),r=i(90766),o=i(44759),a=i(83993),l=i(41234),c=i(42522);function h(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function d(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function u(e){return"boolean"===typeof e.collapsible}class g{constructor(e,t,i,s={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new l.at,this._onDidChangeCollapseState=new l.vl,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new l.vl,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new l.vl,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new r.ve(o.h),this.collapseByDefault="undefined"!==typeof s.collapseByDefault&&s.collapseByDefault,this.allowNonCollapsibleParents=s.allowNonCollapsibleParents??!1,this.filter=s.filter,this.autoExpandSingleChildren="undefined"!==typeof s.autoExpandSingleChildren&&s.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=c.f.empty(),n={}){if(0===e.length)throw new s.jh(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,s=c.f.empty(),n,r=n.diffDepth??0){const{parentNode:o}=this.getParentNodeWithListIndex(t);if(!o.lastDiffIds)return this.spliceSimple(t,i,s,n);const l=[...s],h=t[t.length-1],d=new a.uP({getElements:()=>o.lastDiffIds},{getElements:()=>[...o.children.slice(0,h),...l,...o.children.slice(h+i)].map((t=>e.getId(t.element).toString()))}).ComputeDiff(!1);if(d.quitEarly)return o.lastDiffIds=void 0,this.spliceSimple(t,i,l,n);const u=t.slice(0,-1),g=(t,i,s)=>{if(r>0)for(let o=0;o<s;o++)t--,i--,this.spliceSmart(e,[...u,t,0],Number.MAX_SAFE_INTEGER,l[i].children,n,r-1)};let p=Math.min(o.children.length,h+i),m=l.length;for(const a of d.changes.sort(((e,t)=>t.originalStart-e.originalStart)))g(p,m,p-(a.originalStart+a.originalLength)),p=a.originalStart,m=a.modifiedStart-h,this.spliceSimple([...u,p],a.originalLength,c.f.slice(l,m,m+a.modifiedLength),n);g(p,m,p)}spliceSimple(e,t,i=c.f.empty(),{onDidCreateNode:s,onDidDeleteNode:r,diffIdentityProvider:o}){const{parentNode:a,listIndex:l,revealed:h,visible:d}=this.getParentNodeWithListIndex(e),u=[],g=c.f.map(i,(e=>this.createTreeNode(e,a,a.visible?1:0,h,u,s))),p=e[e.length-1];let m=0;for(let n=p;n>=0&&n<a.children.length;n--){const e=a.children[n];if(e.visible){m=e.visibleChildIndex;break}}const f=[];let _=0,v=0;for(const n of g)f.push(n),v+=n.renderNodeCount,n.visible&&(n.visibleChildIndex=m+_++);const C=(0,n.V4)(a.children,p,t,f);o?a.lastDiffIds?(0,n.V4)(a.lastDiffIds,p,t,f.map((e=>o.getId(e.element).toString()))):a.lastDiffIds=a.children.map((e=>o.getId(e.element).toString())):a.lastDiffIds=void 0;let b=0;for(const n of C)n.visible&&b++;if(0!==b)for(let n=p+f.length;n<a.children.length;n++){const e=a.children[n];e.visible&&(e.visibleChildIndex-=b)}if(a.visibleChildrenCount+=_-b,h&&d){const e=C.reduce(((e,t)=>e+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(a,v-e),this.list.splice(l,e,u)}if(C.length>0&&r){const e=t=>{r(t),t.children.forEach(e)};C.forEach(e)}this._onDidSplice.fire({insertedNodes:f,deletedNodes:C});let E=a;for(;E;){if(2===E.visibility){this.refilterDelayer.trigger((()=>this.refilter()));break}E=E.parent}}rerender(e){if(0===e.length)throw new s.jh(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:s}=this.getTreeNodeWithListIndex(e);return i&&s?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsible);const s={collapsible:t};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,s)))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const s=this.getTreeNode(e);"undefined"===typeof t&&(t=!s.collapsed);const n={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,n)))}_setCollapseState(e,t){const{node:i,listIndex:s,revealed:n}=this.getTreeNodeWithListIndex(e),r=this._setListNodeCollapseState(i,s,n,t);if(i!==this.root&&this.autoExpandSingleChildren&&r&&!u(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let s=-1;for(let e=0;e<i.children.length;e++){if(i.children[e].visible){if(s>-1){s=-1;break}s=e}}s>-1&&this._setCollapseState([...e,s],t)}return r}_setListNodeCollapseState(e,t,i,s){const n=this._setNodeCollapseState(e,s,!1);if(!i||!e.visible||!n)return n;const r=e.renderNodeCount,o=this.updateNodeAfterCollapseChange(e),a=r-(-1===t?0:1);return this.list.splice(t+1,a,o.slice(1)),n}_setNodeCollapseState(e,t,i){let s;if(e===this.root?s=!1:(u(t)?(s=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(s=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):s=!1,s&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!u(t)&&t.recursive)for(const n of e.children)s=this._setNodeCollapseState(n,t,!0)||s;return s}expandTo(e){this.eventBufferer.bufferEvents((()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})}))}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,s,n,r){const o={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(o,i);o.visibility=a,s&&n.push(o);const l=e.children||c.f.empty(),h=s&&0!==a&&!o.collapsed;let d=0,u=1;for(const c of l){const e=this.createTreeNode(c,o,a,h,n,r);o.children.push(e),u+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=d++)}return this.allowNonCollapsibleParents||(o.collapsible=o.collapsible||o.children.length>0),o.visibleChildrenCount=d,o.visible=2===a?d>0:1===a,o.visible?o.collapsed||(o.renderNodeCount=u):(o.renderNodeCount=0,s&&n.pop()),r?.(o),o}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,s=!0){let n;if(e!==this.root){if(n=this._filterNode(e,t),0===n)return e.visible=!1,e.renderNodeCount=0,!1;s&&i.push(e)}const r=i.length;e.renderNodeCount=e===this.root?0:1;let o=!1;if(e.collapsed&&0===n)e.visibleChildrenCount=0;else{let t=0;for(const r of e.children)o=this._updateNodeAfterFilterChange(r,n,i,s&&!e.collapsed)||o,r.visible&&(r.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===n?o:1===n,e.visibility=n),e.visible?e.collapsed||(e.renderNodeCount+=i.length-r):(e.renderNodeCount=0,s&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof i?(e.filterData=void 0,i?1:0):h(i)?(e.filterData=i.data,d(i.visibility)):(e.filterData=void 0,d(i))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[i,...s]=e;return!(i<0||i>t.children.length)&&this.hasTreeNode(s,t.children[i])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new s.jh(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:r}=this.getParentNodeWithListIndex(e),o=e[e.length-1];if(o<0||o>t.children.length)throw new s.jh(this.user,"Invalid tree location");const a=t.children[o];return{node:a,listIndex:i,revealed:n,visible:r&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,r=!0){const[o,...a]=e;if(o<0||o>t.children.length)throw new s.jh(this.user,"Invalid tree location");for(let s=0;s<o;s++)i+=t.children[s].renderNodeCount;return n=n&&!t.collapsed,r=r&&t.visible,0===a.length?{parentNode:t,listIndex:i,revealed:n,visible:r}:this.getParentNodeWithListIndex(a,t.children[o],i+1,n,r)}getNode(e=[]){return this.getTreeNode(e)}getNodeLocation(e){const t=[];let i=e;for(;i.parent;)t.push(i.parent.children.indexOf(i)),i=i.parent;return t.reverse()}getParentNodeLocation(e){return 0===e.length?void 0:1===e.length?[]:(0,n.bS)(e)[0]}getFirstElementChild(e){const t=this.getTreeNode(e);if(0!==t.children.length)return t.children[0].element}}},84565:(e,t,i)=>{"use strict";var s,n;i.d(t,{Lx:()=>n,Yo:()=>s,jh:()=>r,y2:()=>o}),function(e){e[e.Expanded=0]="Expanded",e[e.Collapsed=1]="Collapsed",e[e.PreserveOrExpanded=2]="PreserveOrExpanded",e[e.PreserveOrCollapsed=3]="PreserveOrCollapsed"}(s||(s={})),function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element",e[e.Filter=3]="Filter"}(n||(n={}));class r extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class o{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}},17390:(e,t,i)=>{"use strict";i.d(t,{x:()=>l});var s=i(8597),n=i(72962),r=i(47358),o=i(25154),a=i(5662);class l extends a.jG{onclick(e,t){this._register(s.ko(e,s.Bx.CLICK,(i=>t(new r.P(s.zk(e),i)))))}onmousedown(e,t){this._register(s.ko(e,s.Bx.MOUSE_DOWN,(i=>t(new r.P(s.zk(e),i)))))}onmouseover(e,t){this._register(s.ko(e,s.Bx.MOUSE_OVER,(i=>t(new r.P(s.zk(e),i)))))}onmouseleave(e,t){this._register(s.ko(e,s.Bx.MOUSE_LEAVE,(i=>t(new r.P(s.zk(e),i)))))}onkeydown(e,t){this._register(s.ko(e,s.Bx.KEY_DOWN,(e=>t(new n.Z(e)))))}onkeyup(e,t){this._register(s.ko(e,s.Bx.KEY_UP,(e=>t(new n.Z(e)))))}oninput(e,t){this._register(s.ko(e,s.Bx.INPUT,t))}onblur(e,t){this._register(s.ko(e,s.Bx.BLUR,t))}onfocus(e,t){this._register(s.ko(e,s.Bx.FOCUS,t))}ignoreGesture(e){return o.q.ignoreTarget(e)}}},25893:(e,t,i)=>{"use strict";function s(e,t){const i=e;"number"!==typeof i.vscodeWindowId&&Object.defineProperty(i,"vscodeWindowId",{get:()=>t})}i.d(t,{G:()=>n,y:()=>s});const n=window},36921:(e,t,i)=>{"use strict";i.d(t,{HJ:()=>h,LN:()=>a,YH:()=>c,ih:()=>d,rc:()=>o,wv:()=>l});var s=i(41234),n=i(5662),r=i(78209);class o extends n.jG{constructor(e,t="",i="",n=!0,r){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class a extends n.jG{constructor(){super(...arguments),this._onWillRun=this._register(new s.vl),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new s.vl),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;let i;this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(s){i=s}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class l{constructor(){this.id=l.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t=t.length?[...t,new l,...i]:i);return t}static{this.ID="vs.actions.separator"}async run(){}}class c{get actions(){return this._actions}constructor(e,t,i,s){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=s,this._actions=i}async run(){}}class h extends o{static{this.ID="vs.actions.empty"}constructor(){super(h.ID,r.kg("submenu.empty","(empty)"),void 0,!1)}}function d(e){return{id:e.id,label:e.label,tooltip:e.tooltip??e.label,class:e.class,enabled:e.enabled??!0,checked:e.checked,run:async(...t)=>e.run(...t)}}},25890:(e,t,i)=>{"use strict";function s(e,t=0){return e[e.length-(1+t)]}function n(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function r(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let s=0,n=e.length;s<n;s++)if(!i(e[s],t[s]))return!1;return!0}function o(e,t){const i=e.length-1;t<i&&(e[t]=e[i]),e.pop()}function a(e,t,i){return function(e,t){let i=0,s=e-1;for(;i<=s;){const e=(i+s)/2|0,n=t(e);if(n<0)i=e+1;else{if(!(n>0))return e;s=e-1}}return-(i+1)}(e.length,(s=>i(e[s],t)))}function l(e,t,i){if((e|=0)>=t.length)throw new TypeError("invalid index");const s=t[Math.floor(t.length*Math.random())],n=[],r=[],o=[];for(const a of t){const e=i(a,s);e<0?n.push(a):e>0?r.push(a):o.push(a)}return e<n.length?l(e,n,i):e<n.length+o.length?o[0]:l(e-(n.length+o.length),r,i)}function c(e,t){const i=[];let s;for(const n of e.slice(0).sort(t))s&&0===t(s[0],n)?s.push(n):(s=[n],i.push(s));return i}function*h(e,t){let i,s;for(const n of e)void 0!==s&&t(s,n)?i.push(n):(i&&(yield i),i=[n]),s=n;i&&(yield i)}function d(e,t){for(let i=0;i<=e.length;i++)t(0===i?void 0:e[i-1],i===e.length?void 0:e[i])}function u(e,t){for(let i=0;i<e.length;i++)t(0===i?void 0:e[i-1],e[i],i+1===e.length?void 0:e[i+1])}function g(e){return e.filter((e=>!!e))}function p(e){let t=0;for(let i=0;i<e.length;i++)e[i]&&(e[t]=e[i],t+=1);e.length=t}function m(e){return!Array.isArray(e)||0===e.length}function f(e){return Array.isArray(e)&&e.length>0}function _(e,t=e=>e){const i=new Set;return e.filter((e=>{const s=t(e);return!i.has(s)&&(i.add(s),!0)}))}function v(e,t){return e.length>0?e[0]:t}function C(e,t){let i="number"===typeof t?e:0;"number"===typeof t?i=e:(i=0,t=e);const s=[];if(i<=t)for(let n=i;n<t;n++)s.push(n);else for(let n=i;n>t;n--)s.push(n);return s}function b(e,t,i){const s=e.slice(0,t),n=e.slice(t);return s.concat(i,n)}function E(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function S(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function y(e,t){for(const i of t)e.push(i)}function w(e){return Array.isArray(e)?e:[e]}function L(e,t,i,s){const n=R(e,t);let r=e.splice(n,i);return void 0===r&&(r=[]),function(e,t,i){const s=R(e,t),n=e.length,r=i.length;e.length=n+r;for(let o=n-1;o>=s;o--)e[o+r]=e[o];for(let o=0;o<r;o++)e[o+s]=i[o]}(e,n,s),r}function R(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}var T;function x(e,t){return(i,s)=>t(e(i),e(s))}function k(...e){return(t,i)=>{for(const s of e){const e=s(t,i);if(!T.isNeitherLessOrGreaterThan(e))return e}return T.neitherLessOrGreaterThan}}i.d(t,{$z:()=>c,Ct:()=>m,E4:()=>y,EI:()=>f,El:()=>a,Fy:()=>v,Hw:()=>I,RT:()=>s,SK:()=>p,SO:()=>l,TS:()=>N,U9:()=>A,UH:()=>o,V4:()=>L,VE:()=>x,Yc:()=>g,_A:()=>E,_j:()=>w,aI:()=>r,bS:()=>n,c1:()=>D,dM:()=>_,j3:()=>O,kj:()=>u,n:()=>h,nH:()=>k,nK:()=>b,pN:()=>d,r7:()=>S,t9:()=>M,y1:()=>C}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(T||(T={}));const A=(e,t)=>e-t,N=(e,t)=>A(e?1:0,t?1:0);function I(e){return(t,i)=>-e(t,i)}class O{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class D{static{this.empty=new D((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new D((t=>this.iterate((i=>!e(i)||t(i)))))}map(e){return new D((t=>this.iterate((i=>t(e(i))))))}findLast(e){let t;return this.iterate((i=>(e(i)&&(t=i),!0))),t}findLastMaxBy(e){let t,i=!0;return this.iterate((s=>((i||T.isGreaterThan(e(s,t)))&&(i=!1,t=s),!0))),t}}class M{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort(((i,s)=>t(e[i],e[s])));return new M(i)}apply(e){return e.map(((t,i)=>e[this._indexMap[i]]))}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new M(e)}}},46041:(e,t,i)=>{"use strict";function s(e,t){const i=function(e,t,i=e.length-1){for(let s=i;s>=0;s--){if(t(e[s]))return s}return-1}(e,t);if(-1!==i)return e[i]}function n(e,t){const i=r(e,t);return-1===i?void 0:e[i]}function r(e,t,i=0,s=e.length){let n=i,r=s;for(;n<r;){const i=Math.floor((n+r)/2);t(e[i])?n=i+1:r=i}return n-1}function o(e,t){const i=a(e,t);return i===e.length?void 0:e[i]}function a(e,t,i=0,s=e.length){let n=i,r=s;for(;n<r;){const i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}i.d(t,{Cn:()=>c,TM:()=>u,Uk:()=>s,XP:()=>o,hw:()=>a,iM:()=>r,kh:()=>d,lx:()=>n,oH:()=>g,ot:()=>h,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=r(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function c(e,t){if(0===e.length)return;let i=e[0];for(let s=1;s<e.length;s++){const n=e[s];t(n,i)>0&&(i=n)}return i}function h(e,t){if(0===e.length)return;let i=e[0];for(let s=1;s<e.length;s++){const n=e[s];t(n,i)>=0&&(i=n)}return i}function d(e,t){return c(e,((e,i)=>-t(e,i)))}function u(e,t){if(0===e.length)return-1;let i=0;for(let s=1;s<e.length;s++){t(e[s],e[i])>0&&(i=s)}return i}function g(e,t){for(const i of e){const e=t(i);if(void 0!==e)return e}}},66782:(e,t,i)=>{"use strict";i.d(t,{Ft:()=>a,V7:()=>o,Xo:()=>l,ok:()=>n,xb:()=>r});var s=i(64383);function n(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function r(e,t="Unreachable"){throw new Error(t)}function o(e){e||(0,s.dz)(new s.D7("Soft Assertion Failed"))}function a(e){e()||(e(),(0,s.dz)(new s.D7("Assertion Failed")))}function l(e,t){let i=0;for(;i<e.length-1;){if(!t(e[i],e[i+1]))return!1;i++}return!0}},90766:(e,t,i)=>{"use strict";i.d(t,{$1:()=>_,$6:()=>E,A0:()=>y,AE:()=>T,EQ:()=>f,F6:()=>w,HC:()=>R,PK:()=>d,Qg:()=>c,SS:()=>h,Th:()=>p,Zv:()=>L,b7:()=>S,bI:()=>k,pc:()=>v,uC:()=>b,vb:()=>C,ve:()=>g,wR:()=>m});var s=i(18447),n=i(64383),r=i(41234),o=i(5662),a=i(98067),l=i(44759);function c(e){return!!e&&"function"===typeof e.then}function h(e){const t=new s.Qi,i=e(t.token),r=new Promise(((e,s)=>{const r=t.token.onCancellationRequested((()=>{r.dispose(),s(new n.AL)}));Promise.resolve(i).then((i=>{r.dispose(),t.dispose(),e(i)}),(e=>{r.dispose(),t.dispose(),s(e)}))}));return new class{cancel(){t.cancel(),t.dispose()}then(e,t){return r.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return r.finally(e)}}}function d(e,t,i){return new Promise(((s,n)=>{const r=t.onCancellationRequested((()=>{r.dispose(),s(i)}));e.then(s,n).finally((()=>r.dispose()))}))}class u{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{if(this.queuedPromise=null,this.isDisposed)return;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}dispose(){this.isDisposed=!0}}class g{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})));const i=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=t===l.h?(e=>{let t=!0;return queueMicrotask((()=>{t&&(t=!1,e())})),{isTriggered:()=>t,dispose:()=>{t=!1}}})(i):((e,t)=>{let i=!0;const s=setTimeout((()=>{i=!1,t()}),e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(s),i=!1}}})(t,i),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new n.AL),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}class p{constructor(e){this.delayer=new g(e),this.throttler=new u}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function m(e,t){return t?new Promise(((i,s)=>{const r=setTimeout((()=>{o.dispose(),i()}),e),o=t.onCancellationRequested((()=>{clearTimeout(r),o.dispose(),s(new n.AL)}))})):h((t=>m(e,t)))}function f(e,t=0,i){const s=setTimeout((()=>{e(),i&&n.dispose()}),t),n=(0,o.s)((()=>{clearTimeout(s),i?.deleteAndLeak(n)}));return i?.add(n),n}function _(e,t=e=>!!e,i=null){let s=0;const n=e.length,r=()=>{if(s>=n)return Promise.resolve(i);const o=e[s++];return Promise.resolve(o()).then((e=>t(e)?Promise.resolve(e):r()))};return r()}class v{constructor(e,t){this._isDisposed=!1,this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new n.D7("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){if(this._isDisposed)throw new n.D7("Calling 'setIfNotSet' on a disposed TimeoutTimer");-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class C{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){if(this.isDisposed)throw new n.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const s=i.setInterval((()=>{e()}),t);this.disposable=(0,o.s)((()=>{i.clearInterval(s),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class b{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let E,S;S="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,a._p)((()=>{if(i)return;const e=Date.now()+15,s={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(s))}));let i=!1;return{dispose(){i||(i=!0)}}}:(e,t,i)=>{const s=e.requestIdleCallback(t,"number"===typeof i?{timeout:i}:void 0);let n=!1;return{dispose(){n||(n=!0,e.cancelIdleCallback(s))}}},E=e=>S(globalThis,e);class y{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=S(e,(()=>this._executor()))}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class w extends y{constructor(e){super(globalThis,e)}}class L{get isRejected(){return 1===this.outcome?.outcome}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise(((e,t)=>{this.completeCallback=e,this.errorCallback=t}))}complete(e){return new Promise((t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()}))}error(e){return new Promise((t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()}))}cancel(){return this.error(new n.AL)}}var R;!function(e){e.settled=async function(e){let t;const i=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return i},e.withAsyncBody=function(e){return new Promise((async(t,i)=>{try{await e(t,i)}catch(s){i(s)}}))}}(R||(R={}));class T{static fromArray(e){return new T((t=>{t.emitMany(e)}))}static fromPromise(e){return new T((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new T((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new T((async t=>{await Promise.all(e.map((async e=>{for await(const i of e)t.emitOne(i)})))}))}static{this.EMPTY=T.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new r.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await r.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new T((async i=>{for await(const s of e)i.emitOne(t(s))}))}map(e){return T.map(this,e)}static filter(e,t){return new T((async i=>{for await(const s of e)t(s)&&i.emitOne(s)}))}filter(e){return T.filter(this,e)}static coalesce(e){return T.filter(e,(e=>!!e))}coalesce(){return T.coalesce(this)}static async toPromise(e){const t=[];for await(const i of e)t.push(i);return t}toPromise(){return T.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}class x extends T{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function k(e){const t=new s.Qi,i=e(t.token);return new x(t,(async e=>{const s=t.token.onCancellationRequested((()=>{s.dispose(),t.dispose(),e.reject(new n.AL)}));try{for await(const s of i){if(t.token.isCancellationRequested)return;e.emitOne(s)}s.dispose(),t.dispose()}catch(r){s.dispose(),t.dispose(),e.reject(r)}}))}},81674:(e,t,i)=>{"use strict";i.d(t,{$l:()=>a,Gs:()=>u,MB:()=>o,Sw:()=>h,bb:()=>c,gN:()=>l,pJ:()=>d});var s=i(91090);const n="undefined"!==typeof Buffer;new s.d((()=>new Uint8Array(256)));let r;class o{static wrap(e){return n&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return n?this.buffer.toString():(r||(r=new TextDecoder),r.decode(this.buffer))}}function a(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function c(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function d(e,t){return e[t]}function u(e,t,i){e[i]=t}},81788:(e,t,i)=>{"use strict";function s(e){return e}i.d(t,{VV:()=>r,o5:()=>n});class n{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=s):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class r{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=s):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const i=this._fn(e);return this._map.set(e,i),this._map2.set(t,i),i}}},18447:(e,t,i)=>{"use strict";i.d(t,{Qi:()=>a,XO:()=>r,bs:()=>l});var s=i(41234);const n=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var r;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof o||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:s.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n})}(r||(r={}));class o{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?n:(this._emitter||(this._emitter=new s.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=r.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=r.None}}function l(e){const t=new a;return e.add({dispose(){t.cancel()}}),t.token}},10350:(e,t,i)=>{"use strict";i.d(t,{W:()=>n});var s=i(18956);const n={...{add:(0,s.k)("add",6e4),plus:(0,s.k)("plus",6e4),gistNew:(0,s.k)("gist-new",6e4),repoCreate:(0,s.k)("repo-create",6e4),lightbulb:(0,s.k)("lightbulb",60001),lightBulb:(0,s.k)("light-bulb",60001),repo:(0,s.k)("repo",60002),repoDelete:(0,s.k)("repo-delete",60002),gistFork:(0,s.k)("gist-fork",60003),repoForked:(0,s.k)("repo-forked",60003),gitPullRequest:(0,s.k)("git-pull-request",60004),gitPullRequestAbandoned:(0,s.k)("git-pull-request-abandoned",60004),recordKeys:(0,s.k)("record-keys",60005),keyboard:(0,s.k)("keyboard",60005),tag:(0,s.k)("tag",60006),gitPullRequestLabel:(0,s.k)("git-pull-request-label",60006),tagAdd:(0,s.k)("tag-add",60006),tagRemove:(0,s.k)("tag-remove",60006),person:(0,s.k)("person",60007),personFollow:(0,s.k)("person-follow",60007),personOutline:(0,s.k)("person-outline",60007),personFilled:(0,s.k)("person-filled",60007),gitBranch:(0,s.k)("git-branch",60008),gitBranchCreate:(0,s.k)("git-branch-create",60008),gitBranchDelete:(0,s.k)("git-branch-delete",60008),sourceControl:(0,s.k)("source-control",60008),mirror:(0,s.k)("mirror",60009),mirrorPublic:(0,s.k)("mirror-public",60009),star:(0,s.k)("star",60010),starAdd:(0,s.k)("star-add",60010),starDelete:(0,s.k)("star-delete",60010),starEmpty:(0,s.k)("star-empty",60010),comment:(0,s.k)("comment",60011),commentAdd:(0,s.k)("comment-add",60011),alert:(0,s.k)("alert",60012),warning:(0,s.k)("warning",60012),search:(0,s.k)("search",60013),searchSave:(0,s.k)("search-save",60013),logOut:(0,s.k)("log-out",60014),signOut:(0,s.k)("sign-out",60014),logIn:(0,s.k)("log-in",60015),signIn:(0,s.k)("sign-in",60015),eye:(0,s.k)("eye",60016),eyeUnwatch:(0,s.k)("eye-unwatch",60016),eyeWatch:(0,s.k)("eye-watch",60016),circleFilled:(0,s.k)("circle-filled",60017),primitiveDot:(0,s.k)("primitive-dot",60017),closeDirty:(0,s.k)("close-dirty",60017),debugBreakpoint:(0,s.k)("debug-breakpoint",60017),debugBreakpointDisabled:(0,s.k)("debug-breakpoint-disabled",60017),debugHint:(0,s.k)("debug-hint",60017),terminalDecorationSuccess:(0,s.k)("terminal-decoration-success",60017),primitiveSquare:(0,s.k)("primitive-square",60018),edit:(0,s.k)("edit",60019),pencil:(0,s.k)("pencil",60019),info:(0,s.k)("info",60020),issueOpened:(0,s.k)("issue-opened",60020),gistPrivate:(0,s.k)("gist-private",60021),gitForkPrivate:(0,s.k)("git-fork-private",60021),lock:(0,s.k)("lock",60021),mirrorPrivate:(0,s.k)("mirror-private",60021),close:(0,s.k)("close",60022),removeClose:(0,s.k)("remove-close",60022),x:(0,s.k)("x",60022),repoSync:(0,s.k)("repo-sync",60023),sync:(0,s.k)("sync",60023),clone:(0,s.k)("clone",60024),desktopDownload:(0,s.k)("desktop-download",60024),beaker:(0,s.k)("beaker",60025),microscope:(0,s.k)("microscope",60025),vm:(0,s.k)("vm",60026),deviceDesktop:(0,s.k)("device-desktop",60026),file:(0,s.k)("file",60027),fileText:(0,s.k)("file-text",60027),more:(0,s.k)("more",60028),ellipsis:(0,s.k)("ellipsis",60028),kebabHorizontal:(0,s.k)("kebab-horizontal",60028),mailReply:(0,s.k)("mail-reply",60029),reply:(0,s.k)("reply",60029),organization:(0,s.k)("organization",60030),organizationFilled:(0,s.k)("organization-filled",60030),organizationOutline:(0,s.k)("organization-outline",60030),newFile:(0,s.k)("new-file",60031),fileAdd:(0,s.k)("file-add",60031),newFolder:(0,s.k)("new-folder",60032),fileDirectoryCreate:(0,s.k)("file-directory-create",60032),trash:(0,s.k)("trash",60033),trashcan:(0,s.k)("trashcan",60033),history:(0,s.k)("history",60034),clock:(0,s.k)("clock",60034),folder:(0,s.k)("folder",60035),fileDirectory:(0,s.k)("file-directory",60035),symbolFolder:(0,s.k)("symbol-folder",60035),logoGithub:(0,s.k)("logo-github",60036),markGithub:(0,s.k)("mark-github",60036),github:(0,s.k)("github",60036),terminal:(0,s.k)("terminal",60037),console:(0,s.k)("console",60037),repl:(0,s.k)("repl",60037),zap:(0,s.k)("zap",60038),symbolEvent:(0,s.k)("symbol-event",60038),error:(0,s.k)("error",60039),stop:(0,s.k)("stop",60039),variable:(0,s.k)("variable",60040),symbolVariable:(0,s.k)("symbol-variable",60040),array:(0,s.k)("array",60042),symbolArray:(0,s.k)("symbol-array",60042),symbolModule:(0,s.k)("symbol-module",60043),symbolPackage:(0,s.k)("symbol-package",60043),symbolNamespace:(0,s.k)("symbol-namespace",60043),symbolObject:(0,s.k)("symbol-object",60043),symbolMethod:(0,s.k)("symbol-method",60044),symbolFunction:(0,s.k)("symbol-function",60044),symbolConstructor:(0,s.k)("symbol-constructor",60044),symbolBoolean:(0,s.k)("symbol-boolean",60047),symbolNull:(0,s.k)("symbol-null",60047),symbolNumeric:(0,s.k)("symbol-numeric",60048),symbolNumber:(0,s.k)("symbol-number",60048),symbolStructure:(0,s.k)("symbol-structure",60049),symbolStruct:(0,s.k)("symbol-struct",60049),symbolParameter:(0,s.k)("symbol-parameter",60050),symbolTypeParameter:(0,s.k)("symbol-type-parameter",60050),symbolKey:(0,s.k)("symbol-key",60051),symbolText:(0,s.k)("symbol-text",60051),symbolReference:(0,s.k)("symbol-reference",60052),goToFile:(0,s.k)("go-to-file",60052),symbolEnum:(0,s.k)("symbol-enum",60053),symbolValue:(0,s.k)("symbol-value",60053),symbolRuler:(0,s.k)("symbol-ruler",60054),symbolUnit:(0,s.k)("symbol-unit",60054),activateBreakpoints:(0,s.k)("activate-breakpoints",60055),archive:(0,s.k)("archive",60056),arrowBoth:(0,s.k)("arrow-both",60057),arrowDown:(0,s.k)("arrow-down",60058),arrowLeft:(0,s.k)("arrow-left",60059),arrowRight:(0,s.k)("arrow-right",60060),arrowSmallDown:(0,s.k)("arrow-small-down",60061),arrowSmallLeft:(0,s.k)("arrow-small-left",60062),arrowSmallRight:(0,s.k)("arrow-small-right",60063),arrowSmallUp:(0,s.k)("arrow-small-up",60064),arrowUp:(0,s.k)("arrow-up",60065),bell:(0,s.k)("bell",60066),bold:(0,s.k)("bold",60067),book:(0,s.k)("book",60068),bookmark:(0,s.k)("bookmark",60069),debugBreakpointConditionalUnverified:(0,s.k)("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:(0,s.k)("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:(0,s.k)("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:(0,s.k)("debug-breakpoint-data-unverified",60072),debugBreakpointData:(0,s.k)("debug-breakpoint-data",60073),debugBreakpointDataDisabled:(0,s.k)("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:(0,s.k)("debug-breakpoint-log-unverified",60074),debugBreakpointLog:(0,s.k)("debug-breakpoint-log",60075),debugBreakpointLogDisabled:(0,s.k)("debug-breakpoint-log-disabled",60075),briefcase:(0,s.k)("briefcase",60076),broadcast:(0,s.k)("broadcast",60077),browser:(0,s.k)("browser",60078),bug:(0,s.k)("bug",60079),calendar:(0,s.k)("calendar",60080),caseSensitive:(0,s.k)("case-sensitive",60081),check:(0,s.k)("check",60082),checklist:(0,s.k)("checklist",60083),chevronDown:(0,s.k)("chevron-down",60084),chevronLeft:(0,s.k)("chevron-left",60085),chevronRight:(0,s.k)("chevron-right",60086),chevronUp:(0,s.k)("chevron-up",60087),chromeClose:(0,s.k)("chrome-close",60088),chromeMaximize:(0,s.k)("chrome-maximize",60089),chromeMinimize:(0,s.k)("chrome-minimize",60090),chromeRestore:(0,s.k)("chrome-restore",60091),circleOutline:(0,s.k)("circle-outline",60092),circle:(0,s.k)("circle",60092),debugBreakpointUnverified:(0,s.k)("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:(0,s.k)("terminal-decoration-incomplete",60092),circleSlash:(0,s.k)("circle-slash",60093),circuitBoard:(0,s.k)("circuit-board",60094),clearAll:(0,s.k)("clear-all",60095),clippy:(0,s.k)("clippy",60096),closeAll:(0,s.k)("close-all",60097),cloudDownload:(0,s.k)("cloud-download",60098),cloudUpload:(0,s.k)("cloud-upload",60099),code:(0,s.k)("code",60100),collapseAll:(0,s.k)("collapse-all",60101),colorMode:(0,s.k)("color-mode",60102),commentDiscussion:(0,s.k)("comment-discussion",60103),creditCard:(0,s.k)("credit-card",60105),dash:(0,s.k)("dash",60108),dashboard:(0,s.k)("dashboard",60109),database:(0,s.k)("database",60110),debugContinue:(0,s.k)("debug-continue",60111),debugDisconnect:(0,s.k)("debug-disconnect",60112),debugPause:(0,s.k)("debug-pause",60113),debugRestart:(0,s.k)("debug-restart",60114),debugStart:(0,s.k)("debug-start",60115),debugStepInto:(0,s.k)("debug-step-into",60116),debugStepOut:(0,s.k)("debug-step-out",60117),debugStepOver:(0,s.k)("debug-step-over",60118),debugStop:(0,s.k)("debug-stop",60119),debug:(0,s.k)("debug",60120),deviceCameraVideo:(0,s.k)("device-camera-video",60121),deviceCamera:(0,s.k)("device-camera",60122),deviceMobile:(0,s.k)("device-mobile",60123),diffAdded:(0,s.k)("diff-added",60124),diffIgnored:(0,s.k)("diff-ignored",60125),diffModified:(0,s.k)("diff-modified",60126),diffRemoved:(0,s.k)("diff-removed",60127),diffRenamed:(0,s.k)("diff-renamed",60128),diff:(0,s.k)("diff",60129),diffSidebyside:(0,s.k)("diff-sidebyside",60129),discard:(0,s.k)("discard",60130),editorLayout:(0,s.k)("editor-layout",60131),emptyWindow:(0,s.k)("empty-window",60132),exclude:(0,s.k)("exclude",60133),extensions:(0,s.k)("extensions",60134),eyeClosed:(0,s.k)("eye-closed",60135),fileBinary:(0,s.k)("file-binary",60136),fileCode:(0,s.k)("file-code",60137),fileMedia:(0,s.k)("file-media",60138),filePdf:(0,s.k)("file-pdf",60139),fileSubmodule:(0,s.k)("file-submodule",60140),fileSymlinkDirectory:(0,s.k)("file-symlink-directory",60141),fileSymlinkFile:(0,s.k)("file-symlink-file",60142),fileZip:(0,s.k)("file-zip",60143),files:(0,s.k)("files",60144),filter:(0,s.k)("filter",60145),flame:(0,s.k)("flame",60146),foldDown:(0,s.k)("fold-down",60147),foldUp:(0,s.k)("fold-up",60148),fold:(0,s.k)("fold",60149),folderActive:(0,s.k)("folder-active",60150),folderOpened:(0,s.k)("folder-opened",60151),gear:(0,s.k)("gear",60152),gift:(0,s.k)("gift",60153),gistSecret:(0,s.k)("gist-secret",60154),gist:(0,s.k)("gist",60155),gitCommit:(0,s.k)("git-commit",60156),gitCompare:(0,s.k)("git-compare",60157),compareChanges:(0,s.k)("compare-changes",60157),gitMerge:(0,s.k)("git-merge",60158),githubAction:(0,s.k)("github-action",60159),githubAlt:(0,s.k)("github-alt",60160),globe:(0,s.k)("globe",60161),grabber:(0,s.k)("grabber",60162),graph:(0,s.k)("graph",60163),gripper:(0,s.k)("gripper",60164),heart:(0,s.k)("heart",60165),home:(0,s.k)("home",60166),horizontalRule:(0,s.k)("horizontal-rule",60167),hubot:(0,s.k)("hubot",60168),inbox:(0,s.k)("inbox",60169),issueReopened:(0,s.k)("issue-reopened",60171),issues:(0,s.k)("issues",60172),italic:(0,s.k)("italic",60173),jersey:(0,s.k)("jersey",60174),json:(0,s.k)("json",60175),kebabVertical:(0,s.k)("kebab-vertical",60176),key:(0,s.k)("key",60177),law:(0,s.k)("law",60178),lightbulbAutofix:(0,s.k)("lightbulb-autofix",60179),linkExternal:(0,s.k)("link-external",60180),link:(0,s.k)("link",60181),listOrdered:(0,s.k)("list-ordered",60182),listUnordered:(0,s.k)("list-unordered",60183),liveShare:(0,s.k)("live-share",60184),loading:(0,s.k)("loading",60185),location:(0,s.k)("location",60186),mailRead:(0,s.k)("mail-read",60187),mail:(0,s.k)("mail",60188),markdown:(0,s.k)("markdown",60189),megaphone:(0,s.k)("megaphone",60190),mention:(0,s.k)("mention",60191),milestone:(0,s.k)("milestone",60192),gitPullRequestMilestone:(0,s.k)("git-pull-request-milestone",60192),mortarBoard:(0,s.k)("mortar-board",60193),move:(0,s.k)("move",60194),multipleWindows:(0,s.k)("multiple-windows",60195),mute:(0,s.k)("mute",60196),noNewline:(0,s.k)("no-newline",60197),note:(0,s.k)("note",60198),octoface:(0,s.k)("octoface",60199),openPreview:(0,s.k)("open-preview",60200),package:(0,s.k)("package",60201),paintcan:(0,s.k)("paintcan",60202),pin:(0,s.k)("pin",60203),play:(0,s.k)("play",60204),run:(0,s.k)("run",60204),plug:(0,s.k)("plug",60205),preserveCase:(0,s.k)("preserve-case",60206),preview:(0,s.k)("preview",60207),project:(0,s.k)("project",60208),pulse:(0,s.k)("pulse",60209),question:(0,s.k)("question",60210),quote:(0,s.k)("quote",60211),radioTower:(0,s.k)("radio-tower",60212),reactions:(0,s.k)("reactions",60213),references:(0,s.k)("references",60214),refresh:(0,s.k)("refresh",60215),regex:(0,s.k)("regex",60216),remoteExplorer:(0,s.k)("remote-explorer",60217),remote:(0,s.k)("remote",60218),remove:(0,s.k)("remove",60219),replaceAll:(0,s.k)("replace-all",60220),replace:(0,s.k)("replace",60221),repoClone:(0,s.k)("repo-clone",60222),repoForcePush:(0,s.k)("repo-force-push",60223),repoPull:(0,s.k)("repo-pull",60224),repoPush:(0,s.k)("repo-push",60225),report:(0,s.k)("report",60226),requestChanges:(0,s.k)("request-changes",60227),rocket:(0,s.k)("rocket",60228),rootFolderOpened:(0,s.k)("root-folder-opened",60229),rootFolder:(0,s.k)("root-folder",60230),rss:(0,s.k)("rss",60231),ruby:(0,s.k)("ruby",60232),saveAll:(0,s.k)("save-all",60233),saveAs:(0,s.k)("save-as",60234),save:(0,s.k)("save",60235),screenFull:(0,s.k)("screen-full",60236),screenNormal:(0,s.k)("screen-normal",60237),searchStop:(0,s.k)("search-stop",60238),server:(0,s.k)("server",60240),settingsGear:(0,s.k)("settings-gear",60241),settings:(0,s.k)("settings",60242),shield:(0,s.k)("shield",60243),smiley:(0,s.k)("smiley",60244),sortPrecedence:(0,s.k)("sort-precedence",60245),splitHorizontal:(0,s.k)("split-horizontal",60246),splitVertical:(0,s.k)("split-vertical",60247),squirrel:(0,s.k)("squirrel",60248),starFull:(0,s.k)("star-full",60249),starHalf:(0,s.k)("star-half",60250),symbolClass:(0,s.k)("symbol-class",60251),symbolColor:(0,s.k)("symbol-color",60252),symbolConstant:(0,s.k)("symbol-constant",60253),symbolEnumMember:(0,s.k)("symbol-enum-member",60254),symbolField:(0,s.k)("symbol-field",60255),symbolFile:(0,s.k)("symbol-file",60256),symbolInterface:(0,s.k)("symbol-interface",60257),symbolKeyword:(0,s.k)("symbol-keyword",60258),symbolMisc:(0,s.k)("symbol-misc",60259),symbolOperator:(0,s.k)("symbol-operator",60260),symbolProperty:(0,s.k)("symbol-property",60261),wrench:(0,s.k)("wrench",60261),wrenchSubaction:(0,s.k)("wrench-subaction",60261),symbolSnippet:(0,s.k)("symbol-snippet",60262),tasklist:(0,s.k)("tasklist",60263),telescope:(0,s.k)("telescope",60264),textSize:(0,s.k)("text-size",60265),threeBars:(0,s.k)("three-bars",60266),thumbsdown:(0,s.k)("thumbsdown",60267),thumbsup:(0,s.k)("thumbsup",60268),tools:(0,s.k)("tools",60269),triangleDown:(0,s.k)("triangle-down",60270),triangleLeft:(0,s.k)("triangle-left",60271),triangleRight:(0,s.k)("triangle-right",60272),triangleUp:(0,s.k)("triangle-up",60273),twitter:(0,s.k)("twitter",60274),unfold:(0,s.k)("unfold",60275),unlock:(0,s.k)("unlock",60276),unmute:(0,s.k)("unmute",60277),unverified:(0,s.k)("unverified",60278),verified:(0,s.k)("verified",60279),versions:(0,s.k)("versions",60280),vmActive:(0,s.k)("vm-active",60281),vmOutline:(0,s.k)("vm-outline",60282),vmRunning:(0,s.k)("vm-running",60283),watch:(0,s.k)("watch",60284),whitespace:(0,s.k)("whitespace",60285),wholeWord:(0,s.k)("whole-word",60286),window:(0,s.k)("window",60287),wordWrap:(0,s.k)("word-wrap",60288),zoomIn:(0,s.k)("zoom-in",60289),zoomOut:(0,s.k)("zoom-out",60290),listFilter:(0,s.k)("list-filter",60291),listFlat:(0,s.k)("list-flat",60292),listSelection:(0,s.k)("list-selection",60293),selection:(0,s.k)("selection",60293),listTree:(0,s.k)("list-tree",60294),debugBreakpointFunctionUnverified:(0,s.k)("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:(0,s.k)("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:(0,s.k)("debug-breakpoint-function-disabled",60296),debugStackframeActive:(0,s.k)("debug-stackframe-active",60297),circleSmallFilled:(0,s.k)("circle-small-filled",60298),debugStackframeDot:(0,s.k)("debug-stackframe-dot",60298),terminalDecorationMark:(0,s.k)("terminal-decoration-mark",60298),debugStackframe:(0,s.k)("debug-stackframe",60299),debugStackframeFocused:(0,s.k)("debug-stackframe-focused",60299),debugBreakpointUnsupported:(0,s.k)("debug-breakpoint-unsupported",60300),symbolString:(0,s.k)("symbol-string",60301),debugReverseContinue:(0,s.k)("debug-reverse-continue",60302),debugStepBack:(0,s.k)("debug-step-back",60303),debugRestartFrame:(0,s.k)("debug-restart-frame",60304),debugAlt:(0,s.k)("debug-alt",60305),callIncoming:(0,s.k)("call-incoming",60306),callOutgoing:(0,s.k)("call-outgoing",60307),menu:(0,s.k)("menu",60308),expandAll:(0,s.k)("expand-all",60309),feedback:(0,s.k)("feedback",60310),gitPullRequestReviewer:(0,s.k)("git-pull-request-reviewer",60310),groupByRefType:(0,s.k)("group-by-ref-type",60311),ungroupByRefType:(0,s.k)("ungroup-by-ref-type",60312),account:(0,s.k)("account",60313),gitPullRequestAssignee:(0,s.k)("git-pull-request-assignee",60313),bellDot:(0,s.k)("bell-dot",60314),debugConsole:(0,s.k)("debug-console",60315),library:(0,s.k)("library",60316),output:(0,s.k)("output",60317),runAll:(0,s.k)("run-all",60318),syncIgnored:(0,s.k)("sync-ignored",60319),pinned:(0,s.k)("pinned",60320),githubInverted:(0,s.k)("github-inverted",60321),serverProcess:(0,s.k)("server-process",60322),serverEnvironment:(0,s.k)("server-environment",60323),pass:(0,s.k)("pass",60324),issueClosed:(0,s.k)("issue-closed",60324),stopCircle:(0,s.k)("stop-circle",60325),playCircle:(0,s.k)("play-circle",60326),record:(0,s.k)("record",60327),debugAltSmall:(0,s.k)("debug-alt-small",60328),vmConnect:(0,s.k)("vm-connect",60329),cloud:(0,s.k)("cloud",60330),merge:(0,s.k)("merge",60331),export:(0,s.k)("export",60332),graphLeft:(0,s.k)("graph-left",60333),magnet:(0,s.k)("magnet",60334),notebook:(0,s.k)("notebook",60335),redo:(0,s.k)("redo",60336),checkAll:(0,s.k)("check-all",60337),pinnedDirty:(0,s.k)("pinned-dirty",60338),passFilled:(0,s.k)("pass-filled",60339),circleLargeFilled:(0,s.k)("circle-large-filled",60340),circleLarge:(0,s.k)("circle-large",60341),circleLargeOutline:(0,s.k)("circle-large-outline",60341),combine:(0,s.k)("combine",60342),gather:(0,s.k)("gather",60342),table:(0,s.k)("table",60343),variableGroup:(0,s.k)("variable-group",60344),typeHierarchy:(0,s.k)("type-hierarchy",60345),typeHierarchySub:(0,s.k)("type-hierarchy-sub",60346),typeHierarchySuper:(0,s.k)("type-hierarchy-super",60347),gitPullRequestCreate:(0,s.k)("git-pull-request-create",60348),runAbove:(0,s.k)("run-above",60349),runBelow:(0,s.k)("run-below",60350),notebookTemplate:(0,s.k)("notebook-template",60351),debugRerun:(0,s.k)("debug-rerun",60352),workspaceTrusted:(0,s.k)("workspace-trusted",60353),workspaceUntrusted:(0,s.k)("workspace-untrusted",60354),workspaceUnknown:(0,s.k)("workspace-unknown",60355),terminalCmd:(0,s.k)("terminal-cmd",60356),terminalDebian:(0,s.k)("terminal-debian",60357),terminalLinux:(0,s.k)("terminal-linux",60358),terminalPowershell:(0,s.k)("terminal-powershell",60359),terminalTmux:(0,s.k)("terminal-tmux",60360),terminalUbuntu:(0,s.k)("terminal-ubuntu",60361),terminalBash:(0,s.k)("terminal-bash",60362),arrowSwap:(0,s.k)("arrow-swap",60363),copy:(0,s.k)("copy",60364),personAdd:(0,s.k)("person-add",60365),filterFilled:(0,s.k)("filter-filled",60366),wand:(0,s.k)("wand",60367),debugLineByLine:(0,s.k)("debug-line-by-line",60368),inspect:(0,s.k)("inspect",60369),layers:(0,s.k)("layers",60370),layersDot:(0,s.k)("layers-dot",60371),layersActive:(0,s.k)("layers-active",60372),compass:(0,s.k)("compass",60373),compassDot:(0,s.k)("compass-dot",60374),compassActive:(0,s.k)("compass-active",60375),azure:(0,s.k)("azure",60376),issueDraft:(0,s.k)("issue-draft",60377),gitPullRequestClosed:(0,s.k)("git-pull-request-closed",60378),gitPullRequestDraft:(0,s.k)("git-pull-request-draft",60379),debugAll:(0,s.k)("debug-all",60380),debugCoverage:(0,s.k)("debug-coverage",60381),runErrors:(0,s.k)("run-errors",60382),folderLibrary:(0,s.k)("folder-library",60383),debugContinueSmall:(0,s.k)("debug-continue-small",60384),beakerStop:(0,s.k)("beaker-stop",60385),graphLine:(0,s.k)("graph-line",60386),graphScatter:(0,s.k)("graph-scatter",60387),pieChart:(0,s.k)("pie-chart",60388),bracket:(0,s.k)("bracket",60175),bracketDot:(0,s.k)("bracket-dot",60389),bracketError:(0,s.k)("bracket-error",60390),lockSmall:(0,s.k)("lock-small",60391),azureDevops:(0,s.k)("azure-devops",60392),verifiedFilled:(0,s.k)("verified-filled",60393),newline:(0,s.k)("newline",60394),layout:(0,s.k)("layout",60395),layoutActivitybarLeft:(0,s.k)("layout-activitybar-left",60396),layoutActivitybarRight:(0,s.k)("layout-activitybar-right",60397),layoutPanelLeft:(0,s.k)("layout-panel-left",60398),layoutPanelCenter:(0,s.k)("layout-panel-center",60399),layoutPanelJustify:(0,s.k)("layout-panel-justify",60400),layoutPanelRight:(0,s.k)("layout-panel-right",60401),layoutPanel:(0,s.k)("layout-panel",60402),layoutSidebarLeft:(0,s.k)("layout-sidebar-left",60403),layoutSidebarRight:(0,s.k)("layout-sidebar-right",60404),layoutStatusbar:(0,s.k)("layout-statusbar",60405),layoutMenubar:(0,s.k)("layout-menubar",60406),layoutCentered:(0,s.k)("layout-centered",60407),target:(0,s.k)("target",60408),indent:(0,s.k)("indent",60409),recordSmall:(0,s.k)("record-small",60410),errorSmall:(0,s.k)("error-small",60411),terminalDecorationError:(0,s.k)("terminal-decoration-error",60411),arrowCircleDown:(0,s.k)("arrow-circle-down",60412),arrowCircleLeft:(0,s.k)("arrow-circle-left",60413),arrowCircleRight:(0,s.k)("arrow-circle-right",60414),arrowCircleUp:(0,s.k)("arrow-circle-up",60415),layoutSidebarRightOff:(0,s.k)("layout-sidebar-right-off",60416),layoutPanelOff:(0,s.k)("layout-panel-off",60417),layoutSidebarLeftOff:(0,s.k)("layout-sidebar-left-off",60418),blank:(0,s.k)("blank",60419),heartFilled:(0,s.k)("heart-filled",60420),map:(0,s.k)("map",60421),mapHorizontal:(0,s.k)("map-horizontal",60421),foldHorizontal:(0,s.k)("fold-horizontal",60421),mapFilled:(0,s.k)("map-filled",60422),mapHorizontalFilled:(0,s.k)("map-horizontal-filled",60422),foldHorizontalFilled:(0,s.k)("fold-horizontal-filled",60422),circleSmall:(0,s.k)("circle-small",60423),bellSlash:(0,s.k)("bell-slash",60424),bellSlashDot:(0,s.k)("bell-slash-dot",60425),commentUnresolved:(0,s.k)("comment-unresolved",60426),gitPullRequestGoToChanges:(0,s.k)("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:(0,s.k)("git-pull-request-new-changes",60428),searchFuzzy:(0,s.k)("search-fuzzy",60429),commentDraft:(0,s.k)("comment-draft",60430),send:(0,s.k)("send",60431),sparkle:(0,s.k)("sparkle",60432),insert:(0,s.k)("insert",60433),mic:(0,s.k)("mic",60434),thumbsdownFilled:(0,s.k)("thumbsdown-filled",60435),thumbsupFilled:(0,s.k)("thumbsup-filled",60436),coffee:(0,s.k)("coffee",60437),snake:(0,s.k)("snake",60438),game:(0,s.k)("game",60439),vr:(0,s.k)("vr",60440),chip:(0,s.k)("chip",60441),piano:(0,s.k)("piano",60442),music:(0,s.k)("music",60443),micFilled:(0,s.k)("mic-filled",60444),repoFetch:(0,s.k)("repo-fetch",60445),copilot:(0,s.k)("copilot",60446),lightbulbSparkle:(0,s.k)("lightbulb-sparkle",60447),robot:(0,s.k)("robot",60448),sparkleFilled:(0,s.k)("sparkle-filled",60449),diffSingle:(0,s.k)("diff-single",60450),diffMultiple:(0,s.k)("diff-multiple",60451),surroundWith:(0,s.k)("surround-with",60452),share:(0,s.k)("share",60453),gitStash:(0,s.k)("git-stash",60454),gitStashApply:(0,s.k)("git-stash-apply",60455),gitStashPop:(0,s.k)("git-stash-pop",60456),vscode:(0,s.k)("vscode",60457),vscodeInsiders:(0,s.k)("vscode-insiders",60458),codeOss:(0,s.k)("code-oss",60459),runCoverage:(0,s.k)("run-coverage",60460),runAllCoverage:(0,s.k)("run-all-coverage",60461),coverage:(0,s.k)("coverage",60462),githubProject:(0,s.k)("github-project",60463),mapVertical:(0,s.k)("map-vertical",60464),foldVertical:(0,s.k)("fold-vertical",60464),mapVerticalFilled:(0,s.k)("map-vertical-filled",60465),foldVerticalFilled:(0,s.k)("fold-vertical-filled",60465),goToSearch:(0,s.k)("go-to-search",60466),percentage:(0,s.k)("percentage",60467),sortPercentage:(0,s.k)("sort-percentage",60467),attach:(0,s.k)("attach",60468)},...{dialogError:(0,s.k)("dialog-error","error"),dialogWarning:(0,s.k)("dialog-warning","warning"),dialogInfo:(0,s.k)("dialog-info","info"),dialogClose:(0,s.k)("dialog-close","close"),treeItemExpanded:(0,s.k)("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:(0,s.k)("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:(0,s.k)("tree-filter-on-type-off","list-selection"),treeFilterClear:(0,s.k)("tree-filter-clear","close"),treeItemLoading:(0,s.k)("tree-item-loading","loading"),menuSelection:(0,s.k)("menu-selection","check"),menuSubmenu:(0,s.k)("menu-submenu","chevron-right"),menuBarMore:(0,s.k)("menubar-more","more"),scrollbarButtonLeft:(0,s.k)("scrollbar-button-left","triangle-left"),scrollbarButtonRight:(0,s.k)("scrollbar-button-right","triangle-right"),scrollbarButtonUp:(0,s.k)("scrollbar-button-up","triangle-up"),scrollbarButtonDown:(0,s.k)("scrollbar-button-down","triangle-down"),toolBarMore:(0,s.k)("toolbar-more","more"),quickInputBack:(0,s.k)("quick-input-back","arrow-left"),dropDownButton:(0,s.k)("drop-down-button",60084),symbolCustomColor:(0,s.k)("symbol-customcolor",60252),exportIcon:(0,s.k)("export",60332),workspaceUnspecified:(0,s.k)("workspace-unspecified",60355),newLine:(0,s.k)("newline",60394),thumbsDownFilled:(0,s.k)("thumbsdown-filled",60435),thumbsUpFilled:(0,s.k)("thumbsup-filled",60436),gitFetch:(0,s.k)("git-fetch",60445),lightbulbSparkleAutofix:(0,s.k)("lightbulb-sparkle-autofix",60447),debugBreakpointPending:(0,s.k)("debug-breakpoint-pending",60377)}}},18956:(e,t,i)=>{"use strict";i.d(t,{J:()=>o,k:()=>r});var s=i(631);const n=Object.create(null);function r(e,t){if((0,s.Kg)(t)){const i=n[t];if(void 0===i)throw new Error(`${e} references an unknown codicon: ${t}`);t=i}return n[e]=t,{id:e}}function o(){return n}},48495:(e,t,i)=>{"use strict";function s(e,t){const i=[],s=[];for(const n of e)t.has(n)||i.push(n);for(const n of t)e.has(n)||s.push(n);return{removed:i,added:s}}function n(e,t){const i=new Set;for(const s of t)e.has(s)&&i.add(s);return i}i.d(t,{E:()=>n,Z:()=>s})},47661:(e,t,i)=>{"use strict";function s(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{$J:()=>o,Q1:()=>a,bU:()=>n,hB:()=>r});class n{constructor(e,t,i,n=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=s(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class r{constructor(e,t,i,n){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=s(Math.max(Math.min(1,t),0),3),this.l=s(Math.max(Math.min(1,i),0),3),this.a=s(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,s=e.b/255,n=e.a,o=Math.max(t,i,s),a=Math.min(t,i,s);let l=0,c=0;const h=(a+o)/2,d=o-a;if(d>0){switch(c=Math.min(h<=.5?d/(2*h):d/(2-2*h),1),o){case t:l=(i-s)/d+(i<s?6:0);break;case i:l=(s-t)/d+2;break;case s:l=(t-i)/d+4}l*=60,l=Math.round(l)}return new r(l,c,h,n)}static _hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:s,a:o}=e;let a,l,c;if(0===i)a=l=c=s;else{const e=s<.5?s*(1+i):s+i-s*i,n=2*s-e;a=r._hue2rgb(n,e,t+1/3),l=r._hue2rgb(n,e,t),c=r._hue2rgb(n,e,t-1/3)}return new n(Math.round(255*a),Math.round(255*l),Math.round(255*c),o)}}class o{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=s(Math.max(Math.min(1,t),0),3),this.v=s(Math.max(Math.min(1,i),0),3),this.a=s(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,s=e.b/255,n=Math.max(t,i,s),r=n-Math.min(t,i,s),a=0===n?0:r/n;let l;return l=0===r?0:n===t?((i-s)/r%6+6)%6:n===i?(s-t)/r+2:(t-i)/r+4,new o(Math.round(60*l),a,n,e.a)}static toRGBA(e){const{h:t,s:i,v:s,a:r}=e,o=s*i,a=o*(1-Math.abs(t/60%2-1)),l=s-o;let[c,h,d]=[0,0,0];return t<60?(c=o,h=a):t<120?(c=a,h=o):t<180?(h=o,d=a):t<240?(h=a,d=o):t<300?(c=a,d=o):t<=360&&(c=o,d=a),c=Math.round(255*(c+l)),h=Math.round(255*(h+l)),d=Math.round(255*(d+l)),new n(c,h,d,r)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:r.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof n)this.rgba=e;else if(e instanceof r)this._hsla=e,this.rgba=r.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&n.equals(this.rgba,e.rgba)&&r.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return s(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new r(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new r(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:i,b:s,a:r}=this.rgba;return new a(new n(t,i,s,r*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new n(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:i,b:s,a:r}=this.rgba;return new a(new n(e.rgba.r-r*(e.rgba.r-t),e.rgba.g-r*(e.rgba.g-i),e.rgba.b-r*(e.rgba.b-s),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,i){if(e.isLighterThan(t))return e;i=i||.5;const s=e.getRelativeLuminance(),n=t.getRelativeLuminance();return i=i*(n-s)/n,e.lighten(i)}static getDarkerColor(e,t,i){if(e.isDarkerThan(t))return e;i=i||.5;const s=e.getRelativeLuminance();return i=i*(s-t.getRelativeLuminance())/s,e.darken(i)}static{this.white=new a(new n(255,255,255,1))}static{this.black=new a(new n(0,0,0,1))}static{this.red=new a(new n(255,0,0,1))}static{this.blue=new a(new n(0,0,255,1))}static{this.green=new a(new n(0,255,0,1))}static{this.cyan=new a(new n(0,255,255,1))}static{this.lightgrey=new a(new n(211,211,211,1))}static{this.transparent=new a(new n(0,0,0,0))}}!function(e){let t;!function(t){let i;!function(t){function i(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function s(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${i(e.rgba.r)}${i(e.rgba.g)}${i(e.rgba.b)}`},t.formatHexA=function(t,s=!1){return s&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${i(t.rgba.r)}${i(t.rgba.g)}${i(t.rgba.b)}${i(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const i=t.length;if(0===i)return null;if(35!==t.charCodeAt(0))return null;if(7===i){const i=16*s(t.charCodeAt(1))+s(t.charCodeAt(2)),r=16*s(t.charCodeAt(3))+s(t.charCodeAt(4)),o=16*s(t.charCodeAt(5))+s(t.charCodeAt(6));return new e(new n(i,r,o,1))}if(9===i){const i=16*s(t.charCodeAt(1))+s(t.charCodeAt(2)),r=16*s(t.charCodeAt(3))+s(t.charCodeAt(4)),o=16*s(t.charCodeAt(5))+s(t.charCodeAt(6)),a=16*s(t.charCodeAt(7))+s(t.charCodeAt(8));return new e(new n(i,r,o,a/255))}if(4===i){const i=s(t.charCodeAt(1)),r=s(t.charCodeAt(2)),o=s(t.charCodeAt(3));return new e(new n(16*i+i,16*r+r,16*o+o))}if(5===i){const i=s(t.charCodeAt(1)),r=s(t.charCodeAt(2)),o=s(t.charCodeAt(3)),a=s(t.charCodeAt(4));return new e(new n(16*i+i,16*r+r,16*o+o,(16*a+a)/255))}return null}}(i=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},17799:(e,t,i)=>{"use strict";i.d(t,{VX:()=>a,Vq:()=>l,Y:()=>h,gf:()=>o,jt:()=>u});var s=i(25890),n=i(42522),r=i(58255);function o(e){return{asString:async()=>e,asFile:()=>{},value:"string"===typeof e?e:void 0}}function a(e,t,i){const s={id:(0,r.b)(),name:e,uri:t,data:i};return{asString:async()=>"",asFile:()=>s,value:void 0}}class l{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return n.f.some(this,(([e,t])=>t.asFile()))&&t.push("files"),d(c(e),t)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return c(e)}}function c(e){return e.toLowerCase()}function h(e,t){return d(c(e),t.map(c))}function d(e,t){if("*/*"===e)return t.length>0;if(t.includes(e))return!0;const i=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!i)return!1;const[s,n,r]=i;return"*"===r&&t.some((e=>e.startsWith(n+"/")))}const u=Object.freeze({create:e=>(0,s.dM)(e.map((e=>e.toString()))).join("\r\n"),split:e=>e.split("\r\n"),parse:e=>u.split(e).filter((e=>!e.startsWith("#")))})},58694:(e,t,i)=>{"use strict";function s(e,t,i){let s=null,n=null;if("function"===typeof i.value?(s="value",n=i.value,0!==n.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof i.get&&(s="get",n=i.get),!n)throw new Error("not supported");const r=`$memoize$${t}`;i[s]=function(...e){return this.hasOwnProperty(r)||Object.defineProperty(this,r,{configurable:!1,enumerable:!1,writable:!1,value:n.apply(this,e)}),this[r]}}i.d(t,{B:()=>s})},83993:(e,t,i)=>{"use strict";i.d(t,{uP:()=>h,F1:()=>o});class s{constructor(e,t,i,s){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=s}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var n=i(85600);class r{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,s=e.length;i<s;i++)t[i]=e.charCodeAt(i);return t}}function o(e,t,i){return new h(new r(e),new r(t)).ComputeDiff(i).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,i,s,n){for(let r=0;r<n;r++)i[s+r]=e[t+r]}static Copy2(e,t,i,s,n){for(let r=0;r<n;r++)i[s+r]=e[t+r]}}class c{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new s(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class h{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[s,n,r]=h._getElements(e),[o,a,l]=h._getElements(t);this._hasStrings=r&&l,this._originalStringElements=s,this._originalElementsOrHash=n,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,s=t.length;i<s;i++)e[i]=(0,n.e2)(t[i],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,i,s,n){const r=[!1];let o=this.ComputeDiffRecursive(e,t,i,s,r);return n&&(o=this.PrettifyChanges(o)),{quitEarly:r[0],changes:o}}ComputeDiffRecursive(e,t,i,n,r){for(r[0]=!1;e<=t&&i<=n&&this.ElementsAreEqual(e,i);)e++,i++;for(;t>=e&&n>=i&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||i>n){let r;return i<=n?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new s(e,0,i,n-i+1)]):e<=t?(a.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[new s(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}const o=[0],l=[0],c=this.ComputeRecursionPoint(e,t,i,n,o,l,r),h=o[0],d=l[0];if(null!==c)return c;if(!r[0]){const o=this.ComputeDiffRecursive(e,h,i,d,r);let a=[];return a=r[0]?[new s(h+1,t-(h+1)+1,d+1,n-(d+1)+1)]:this.ComputeDiffRecursive(h+1,t,d+1,n,r),this.ConcatenateChanges(o,a)}return[new s(e,t-e+1,i,n-i+1)]}WALKTRACE(e,t,i,n,r,o,a,l,h,d,u,g,p,m,f,_,v,C){let b=null,E=null,S=new c,y=t,w=i,L=p[0]-_[0]-n,R=-1073741824,T=this.m_forwardHistory.length-1;do{const t=L+e;t===y||t<w&&h[t-1]<h[t+1]?(m=(u=h[t+1])-L-n,u<R&&S.MarkNextChange(),R=u,S.AddModifiedElement(u+1,m),L=t+1-e):(m=(u=h[t-1]+1)-L-n,u<R&&S.MarkNextChange(),R=u-1,S.AddOriginalElement(u,m+1),L=t-1-e),T>=0&&(e=(h=this.m_forwardHistory[T])[0],y=1,w=h.length-1)}while(--T>=-1);if(b=S.getReverseChanges(),C[0]){let e=p[0]+1,t=_[0]+1;if(null!==b&&b.length>0){const i=b[b.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}E=[new s(e,g-e+1,t,f-t+1)]}else{S=new c,y=o,w=a,L=p[0]-_[0]-l,R=1073741824,T=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=L+r;e===y||e<w&&d[e-1]>=d[e+1]?(m=(u=d[e+1]-1)-L-l,u>R&&S.MarkNextChange(),R=u+1,S.AddOriginalElement(u+1,m+1),L=e+1-r):(m=(u=d[e-1])-L-l,u>R&&S.MarkNextChange(),R=u,S.AddModifiedElement(u+1,m+1),L=e-1-r),T>=0&&(r=(d=this.m_reverseHistory[T])[0],y=1,w=d.length-1)}while(--T>=-1);E=S.getChanges()}return this.ConcatenateChanges(b,E)}ComputeRecursionPoint(e,t,i,n,r,o,a){let c=0,h=0,d=0,u=0,g=0,p=0;e--,i--,r[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(n-i),f=m+1,_=new Int32Array(f),v=new Int32Array(f),C=n-i,b=t-e,E=e-i,S=t-n,y=(b-C)%2===0;_[C]=e,v[b]=t,a[0]=!1;for(let w=1;w<=m/2+1;w++){let m=0,L=0;d=this.ClipDiagonalBound(C-w,w,C,f),u=this.ClipDiagonalBound(C+w,w,C,f);for(let e=d;e<=u;e+=2){c=e===d||e<u&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,h=c-(e-C)-E;const i=c;for(;c<t&&h<n&&this.ElementsAreEqual(c+1,h+1);)c++,h++;if(_[e]=c,c+h>m+L&&(m=c,L=h),!y&&Math.abs(e-b)<=w-1&&c>=v[e])return r[0]=c,o[0]=h,i<=v[e]&&w<=1448?this.WALKTRACE(C,d,u,E,b,g,p,S,_,v,c,t,r,h,n,o,y,a):null}const R=(m-e+(L-i)-w)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,R))return a[0]=!0,r[0]=m,o[0]=L,R>0&&w<=1448?this.WALKTRACE(C,d,u,E,b,g,p,S,_,v,c,t,r,h,n,o,y,a):(e++,i++,[new s(e,t-e+1,i,n-i+1)]);g=this.ClipDiagonalBound(b-w,w,b,f),p=this.ClipDiagonalBound(b+w,w,b,f);for(let s=g;s<=p;s+=2){c=s===g||s<p&&v[s-1]>=v[s+1]?v[s+1]-1:v[s-1],h=c-(s-b)-S;const l=c;for(;c>e&&h>i&&this.ElementsAreEqual(c,h);)c--,h--;if(v[s]=c,y&&Math.abs(s-C)<=w&&c<=_[s])return r[0]=c,o[0]=h,l>=_[s]&&w<=1448?this.WALKTRACE(C,d,u,E,b,g,p,S,_,v,c,t,r,h,n,o,y,a):null}if(w<=1447){let e=new Int32Array(u-d+2);e[0]=C-d+1,l.Copy2(_,d,e,1,u-d+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=b-g+1,l.Copy2(v,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(C,d,u,E,b,g,p,S,_,v,c,t,r,h,n,o,y,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const i=e[t],s=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,n=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,r=i.originalLength>0,o=i.modifiedLength>0;for(;i.originalStart+i.originalLength<s&&i.modifiedStart+i.modifiedLength<n&&(!r||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!o||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const e=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!e)break;i.originalStart++,i.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const i=e[t];let s=0,n=0;if(t>0){const i=e[t-1];s=i.originalStart+i.originalLength,n=i.modifiedStart+i.modifiedLength}const r=i.originalLength>0,o=i.modifiedLength>0;let a=0,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,c=i.modifiedStart-e;if(t<s||c<n)break;if(r&&!this.OriginalElementsAreEqual(t,t+i.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(c,c+i.modifiedLength))break;const h=(t===s&&c===n?5:0)+this._boundaryScore(t,i.originalLength,c,i.modifiedLength);h>l&&(l=h,a=e)}i.originalStart-=a,i.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,i=e.length;t<i;t++){const i=e[t-1],s=e[t],n=s.originalStart-i.originalStart-i.originalLength,r=i.originalStart,o=s.originalStart+s.originalLength,a=o-r,l=i.modifiedStart,c=s.modifiedStart+s.modifiedLength,h=c-l;if(n<5&&a<20&&h<20){const e=this._findBetterContiguousSequence(r,a,l,h,n);if(e){const[t,r]=e;t===i.originalStart+i.originalLength&&r===i.modifiedStart+i.modifiedLength||(i.originalLength=t-i.originalStart,i.modifiedLength=r-i.modifiedStart,s.originalStart=t+n,s.modifiedStart=r+n,s.originalLength=o-s.originalStart,s.modifiedLength=c-s.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,i,s,n){if(t<n||s<n)return null;const r=e+t-n+1,o=i+s-n+1;let a=0,l=0,c=0;for(let h=e;h<r;h++)for(let e=i;e<o;e++){const t=this._contiguousSequenceScore(h,e,n);t>0&&t>a&&(a=t,l=h,c=e)}return a>0?[l,c]:null}_contiguousSequenceScore(e,t,i){let s=0;for(let n=0;n<i;n++){if(!this.ElementsAreEqual(e+n,t+n))return 0;s+=this._originalStringElements[e+n].length}return s}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,s){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,s)?1:0)}ConcatenateChanges(e,t){const i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const s=new Array(e.length+t.length-1);return l.Copy(e,0,s,0,e.length-1),s[e.length-1]=i[0],l.Copy(t,1,s,e.length,t.length-1),s}{const i=new Array(e.length+t.length);return l.Copy(e,0,i,0,e.length),l.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const n=e.originalStart;let r=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new s(n,r,o,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,s){if(e>=0&&e<s)return e;const n=t%2===0;if(e<0){return n===(i%2===0)?0:1}return n===((s-i-1)%2===0)?s-1:s-2}}},51241:(e,t,i)=>{"use strict";i.d(t,{KC:()=>a,S3:()=>r,dB:()=>l,nx:()=>n,r:()=>o});var s=i(25890);const n=(e,t)=>e===t;function r(e=n){return(t,i)=>s.aI(t,i,e)}function o(){return(e,t)=>e.equals(t)}function a(e,t,i){if(void 0!==i){return void 0===e||null===e||void 0===t||null===t?t===e:i(e,t)}{const t=e;return(e,i)=>void 0===e||null===e||void 0===i||null===i?i===e:t(e,i)}}function l(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!l(e[i],t[i]))return!1;return!0}if(e&&"object"===typeof e&&t&&"object"===typeof t&&Object.getPrototypeOf(e)===Object.prototype&&Object.getPrototypeOf(t)===Object.prototype){const i=e,s=t,n=Object.keys(i),r=Object.keys(s),o=new Set(r);if(n.length!==r.length)return!1;for(const e of n){if(!o.has(e))return!1;if(!l(i[e],s[e]))return!1}return!0}return!1}new WeakMap},70125:(e,t,i)=>{"use strict";i.d(t,{r:()=>c});var s=i(25890),n=i(631),r=i(78209);function o(e,t){return t&&(e.stack||e.stacktrace)?r.kg("stackTrace.format","{0}: {1}",l(e),a(e.stack)||a(e.stacktrace)):l(e)}function a(e){return Array.isArray(e)?e.join("\n"):e}function l(e){return"ERR_UNC_HOST_NOT_ALLOWED"===e.code?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:"string"===typeof e.code&&"number"===typeof e.errno&&"string"===typeof e.syscall?r.kg("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function c(e=null,t=!1){if(!e)return r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const i=s.Yc(e),n=c(i[0],t);return i.length>1?r.kg("error.moreErrors","{0} ({1} errors in total)",n,i.length):n}if(n.Kg(e))return e;if(e.detail){const i=e.detail;if(i.error)return o(i.error,t);if(i.exception)return o(i.exception,t)}return e.stack?o(e,t):e.message?e.message:r.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}},64383:(e,t,i)=>{"use strict";i.d(t,{AL:()=>c,D7:()=>m,EM:()=>g,MB:()=>l,M_:()=>r,Qg:()=>d,aD:()=>h,cU:()=>o,dz:()=>n,iH:()=>u});const s=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function n(e){l(e)||s.onUnexpectedError(e)}function r(e){l(e)||s.onUnexpectedExternalError(e)}function o(e){if(e instanceof Error){const{name:t,message:i}=e;return{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const a="Canceled";function l(e){return e instanceof c||e instanceof Error&&e.name===a&&e.message===a}class c extends Error{constructor(){super(a),this.name=this.message}}function h(){const e=new Error(a);return e.name=e.message,e}function d(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function u(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class g extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},41234:(e,t,i)=>{"use strict";i.d(t,{Jh:()=>l,QT:()=>E,Qy:()=>_,Wj:()=>w,_B:()=>S,at:()=>y,fV:()=>C,uI:()=>b,vl:()=>f});var s=i(64383),n=i(6921),r=i(5662),o=i(58925),a=i(78381);var l;!function(e){function t(e){false}function i(e){return(t,i=null,s)=>{let n,r=!1;return n=e((e=>{if(!r)return n?n.dispose():r=!0,t.call(i,e)}),null,s),r&&n.dispose(),n}}function s(e,t,i){return o(((i,s=null,n)=>e((e=>i.call(s,t(e))),null,n)),i)}function n(e,t,i){return o(((i,s=null,n)=>e((e=>t(e)&&i.call(s,e)),null,n)),i)}function o(e,i){let s;const n={onWillAddFirstListener(){s=e(r.fire,r)},onDidRemoveLastListener(){s?.dispose()}};i||t();const r=new f(n);return i?.add(r),r.event}function a(e,i,s=100,n=!1,r=!1,o,a){let l,c,h,d,u=0;const g={leakWarningThreshold:o,onWillAddFirstListener(){l=e((e=>{u++,c=i(c,e),n&&!h&&(p.fire(c),c=void 0),d=()=>{const e=c;c=void 0,h=void 0,(!n||u>1)&&p.fire(e),u=0},"number"===typeof s?(clearTimeout(h),h=setTimeout(d,s)):void 0===h&&(h=0,queueMicrotask(d))}))},onWillRemoveListener(){r&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,l.dispose()}};a||t();const p=new f(g);return a?.add(p),p.event}e.None=()=>r.jG.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=i,e.onceIf=function(t,i){return e.once(e.filter(t,i))},e.map=s,e.forEach=function(e,t,i){return o(((i,s=null,n)=>e((e=>{t(e),i.call(s,e)}),null,n)),i)},e.filter=n,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,s)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,r.qE)(...e.map((e=>e((e=>t.call(i,e)))))),s)},e.reduce=function(e,t,i,n){let r=i;return s(e,(e=>(r=t(r,e),r)),n)},e.debounce=a,e.accumulate=function(t,i=0,s){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),i,void 0,!0,void 0,s)},e.latch=function(e,t=(e,t)=>e===t,i){let s,r=!0;return n(e,(e=>{const i=r||!t(e,s);return r=!1,s=e,i}),i)},e.split=function(t,i,s){return[e.filter(t,i,s),e.filter(t,(e=>!i(e)),s)]},e.buffer=function(e,t=!1,i=[],s){let n=i.slice(),r=e((e=>{n?n.push(e):a.fire(e)}));s&&s.add(r);const o=()=>{n?.forEach((e=>a.fire(e))),n=null},a=new f({onWillAddFirstListener(){r||(r=e((e=>a.fire(e))),s&&s.add(r))},onDidAddFirstListener(){n&&(t?setTimeout(o):o())},onDidRemoveLastListener(){r&&r.dispose(),r=null}});return s&&s.add(a),a.event},e.chain=function(e,t){return(i,s,n)=>{const r=t(new c);return e((function(e){const t=r.evaluate(e);t!==l&&i.call(s,t)}),void 0,n)}};const l=Symbol("HaltChainable");class c{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:l)),this}reduce(e,t){let i=t;return this.steps.push((t=>(i=e(i,t),i))),this}latch(e=(e,t)=>e===t){let t,i=!0;return this.steps.push((s=>{const n=i||!e(s,t);return i=!1,t=s,n?s:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,i=e=>e){const s=(...e)=>n.fire(i(...e)),n=new f({onWillAddFirstListener:()=>e.on(t,s),onDidRemoveLastListener:()=>e.removeListener(t,s)});return n.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){const s=(...e)=>n.fire(i(...e)),n=new f({onWillAddFirstListener:()=>e.addEventListener(t,s),onDidRemoveLastListener:()=>e.removeEventListener(t,s)});return n.event},e.toPromise=function(e){return new Promise((t=>i(e)(t)))},e.fromPromise=function(e){const t=new f;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,i){return t(i),e((e=>t(e)))};class h{constructor(e,i){this._observable=e,this._counter=0,this._hasChanged=!1;const s={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};i||t(),this.emitter=new f(s),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,i,s)=>{let n=0,o=!1;const a={beginUpdate(){n++},endUpdate(){n--,0===n&&(e.reportChanges(),o&&(o=!1,t.call(i)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return s instanceof r.Cm?s.add(l):Array.isArray(s)&&s.push(l),l}}}(l||(l={}));class c{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${c._idPool++}`,c.all.add(this)}start(e){this._stopWatch=new a.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class h{static{this._idPool=1}constructor(e,t,i=(h._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=i,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const i=this.threshold;if(i<=0||t<i)return;this._stacks||(this._stacks=new Map);const s=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*i;const[e,s]=this.getMostFrequentStack(),n=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${s}):`;console.warn(n),console.warn(e);const r=new u(n,e);this._errorHandler(r)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[i,s]of this._stacks)(!e||t<s)&&(e=[i,s],t=s);return e}}class d{static create(){const e=new Error;return new d(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class u extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class g extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class p{constructor(e){this.value=e}}let m;class f{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new h(e?.onListenerError??s.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new c(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],i=new g(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||s.dz)(i),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const n=new p(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(n.stack=d.create(),o=this._leakageMon.check(n.stack,this._size+1)),this._listeners?this._listeners instanceof p?(this._deliveryQueue??=new v,this._listeners=[this._listeners,n]):this._listeners.push(n):(this._options?.onWillAddFirstListener?.(this),this._listeners=n,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,r.s)((()=>{m?.unregister(a),o?.(),this._removeListener(n)}));if(i instanceof r.Cm?i.add(a):Array.isArray(i)&&i.push(a),m){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);m.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,i=t.indexOf(e);if(-1===i)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[i]=void 0;const s=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let i=0;i<t.length;i++)t[i]?t[e++]=t[i]:s&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const i=this._options?.onListenerError||s.dz;if(i)try{e.value(t)}catch(n){i(n)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof p)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}const _=()=>new v;class v{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class C extends f{constructor(e){super(e),this._isPaused=0,this._eventQueue=new o.w,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class b extends C{constructor(e){super(e),this._delay=e.delay??100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class E extends f{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask((()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach((e=>super.fire(e))),this._queuedEvents=[]})))}}class S{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new f({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return(0,r.s)((0,n.P)((()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)})))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach((e=>this.hook(e)))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach((e=>this.unhook(e)))}hook(e){e.listener=e.event((e=>this.emitter.fire(e)))}unhook(e){e.listener?.dispose(),e.listener=null}dispose(){this.emitter.dispose();for(const e of this.events)e.listener?.dispose();this.events=[]}}class y{constructor(){this.data=[]}wrapEvent(e,t,i){return(s,n,r)=>e((e=>{const r=this.data[this.data.length-1];if(!t)return void(r?r.buffers.push((()=>s.call(n,e))):s.call(n,e));const o=r;o?(o.items??=[],o.items.push(e),0===o.buffers.length&&r.buffers.push((()=>{o.reducedResult??=i?o.items.reduce(t,i):o.items.reduce(t),s.call(n,o.reducedResult)}))):s.call(n,t(i,e))}),void 0,r)}bufferEvents(e){const t={buffers:new Array};this.data.push(t);const i=e();return this.data.pop(),t.buffers.forEach((e=>e())),i}}class w{constructor(){this.listening=!1,this.inputEvent=l.None,this.inputEventListener=r.jG.None,this.emitter=new f({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},79326:(e,t,i)=>{"use strict";i.d(t,{No:()=>u,TH:()=>a,Zn:()=>c,_1:()=>h,kb:()=>l});var s=i(74027),n=i(98067),r=i(91508);function o(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,s.SA.sep)}function l(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function c(e,t=s.SA.sep){if(!e)return"";const i=e.length,n=e.charCodeAt(0);if(o(n)){if(o(e.charCodeAt(1))&&!o(e.charCodeAt(2))){let s=3;const n=s;for(;s<i&&!o(e.charCodeAt(s));s++);if(n!==s&&!o(e.charCodeAt(s+1)))for(s+=1;s<i;s++)if(o(e.charCodeAt(s)))return e.slice(0,s+1).replace(/[\\/]/g,t)}return t}if(d(n)&&58===e.charCodeAt(1))return o(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let r=e.indexOf("://");if(-1!==r)for(r+=3;r<i;r++)if(o(e.charCodeAt(r)))return e.slice(0,r+1);return""}function h(e,t,i,n=s.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(i){if(!(0,r.ns)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===n&&i--,e.charAt(i)===n}return t.charAt(t.length-1)!==n&&(t+=n),0===e.indexOf(t)}function d(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e,t=n.uF){return!!t&&(d(e.charCodeAt(0))&&58===e.charCodeAt(1))}},26690:(e,t,i)=>{"use strict";i.d(t,{ne:()=>ie,Nd:()=>se,Jo:()=>W,WJ:()=>V,dt:()=>ne,uU:()=>oe,Tt:()=>f,yr:()=>H,O:()=>B,WP:()=>p,dE:()=>_,J1:()=>O,or:()=>g});var s=i(74320);function n(e){const t=function(e){if(r=0,a(e,l,4352),r>0)return o.subarray(0,r);if(a(e,c,4449),r>0)return o.subarray(0,r);if(a(e,h,4520),r>0)return o.subarray(0,r);if(a(e,d,12593),r)return o.subarray(0,r);if(e>=44032&&e<=55203){const t=e-44032,i=t%588,s=Math.floor(t/588),n=Math.floor(i/28),u=i%28-1;if(s<l.length?a(s,l,0):4352+s-12593<d.length&&a(4352+s,d,12593),n<c.length?a(n,c,0):4449+n-12593<d.length&&a(4449+n-12593,d,12593),u>=0&&(u<h.length?a(u,h,0):4520+u-12593<d.length&&a(4520+u-12593,d,12593)),r>0)return o.subarray(0,r)}return}(e);if(t&&t.length>0)return new Uint32Array(t)}let r=0;const o=new Uint32Array(10);function a(e,t,i){e>=i&&e<i+t.length&&function(e){if(0===e)return;o[r++]=255&e,e>>8&&(o[r++]=e>>8&255);e>>16&&(o[r++]=e>>16&255)}(t[e-i])}const l=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),c=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),h=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),d=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);var u=i(91508);function g(...e){return function(t,i){for(let s=0,n=e.length;s<n;s++){const n=e[s](t,i);if(n)return n}return null}}m.bind(void 0,!1);const p=m.bind(void 0,!0);function m(e,t,i){if(!i||i.length<t.length)return null;let s;return s=e?u.ns(i,t):0===i.indexOf(t),s?t.length>0?[{start:0,end:t.length}]:[]:null}function f(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function _(e,t){return v(e.toLowerCase(),t.toLowerCase(),0,0)}function v(e,t,i,s){if(i===e.length)return[];if(s===t.length)return null;if(e[i]===t[s]){let n=null;return(n=v(e,t,i+1,s+1))?k({start:s,end:s+1},n):null}return v(e,t,i,s+1)}function C(e){return 97<=e&&e<=122}function b(e){return 65<=e&&e<=90}function E(e){return 48<=e&&e<=57}function S(e){return 32===e||9===e||10===e||13===e}const y=new Set;function w(e){return S(e)||y.has(e)}function L(e,t){return e===t||w(e)&&w(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach((e=>y.add(e.charCodeAt(0))));const R=new Map;function T(e){if(R.has(e))return R.get(e);let t;const i=n(e);return i&&(t=i),R.set(e,t),t}function x(e){return C(e)||b(e)||E(e)}function k(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function A(e,t){for(let i=t;i<e.length;i++){const t=e.charCodeAt(i);if(b(t)||E(t)||i>0&&!x(e.charCodeAt(i-1)))return i}return e.length}function N(e,t,i,s){if(i===e.length)return[];if(s===t.length)return null;if(e[i]!==t[s].toLowerCase())return null;{let n=null,r=s+1;for(n=N(e,t,i+1,s+1);!n&&(r=A(t,r))<t.length;)n=N(e,t,i+1,r),r++;return null===n?null:k({start:s,end:s+1},n)}}function I(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){let t=0,i=0,s=0,n=0;for(let r=0;r<e.length;r++)s=e.charCodeAt(r),b(s)&&t++,C(s)&&i++,S(s)&&n++;return 0!==t&&0!==i||0!==n?t<=5:e.length<=30}(e))return null;t.length>60&&(t=t.substring(0,60));const i=function(e){let t=0,i=0,s=0,n=0,r=0;for(let o=0;o<e.length;o++)r=e.charCodeAt(o),b(r)&&t++,C(r)&&i++,x(r)&&s++,E(r)&&n++;return{upperPercent:t/e.length,lowerPercent:i/e.length,alphaPercent:s/e.length,numericPercent:n/e.length}}(t);if(!function(e){const{upperPercent:t,lowerPercent:i,alphaPercent:s,numericPercent:n}=e;return i>.2&&t<.8&&s>.6&&n<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let s=null,n=0;for(e=e.toLowerCase();n<t.length&&null===(s=N(e,t,0,n));)n=A(t,n+1);return s}function O(e,t,i=!1){if(!t||0===t.length)return null;let s=null,n=0;for(e=e.toLowerCase(),t=t.toLowerCase();n<t.length&&(s=D(e,t,0,n,i),null===s);)n=M(t,n+1);return s}function D(e,t,i,s,n){let r=0;if(i===e.length)return[];if(s===t.length)return null;if(!L(e.charCodeAt(i),t.charCodeAt(s))){const n=T(e.charCodeAt(i));if(!n)return null;for(let e=0;e<n.length;e++)if(!L(n[e],t.charCodeAt(s+e)))return null;r+=n.length-1}let o=null,a=s+r+1;if(o=D(e,t,i+1,a,n),!n)for(;!o&&(a=M(t,a))<t.length;)o=D(e,t,i+1,a,n),a++;if(!o)return null;if(e.charCodeAt(i)!==t.charCodeAt(s)){const n=T(e.charCodeAt(i));if(!n)return o;for(let e=0;e<n.length;e++)if(n[e]!==t.charCodeAt(s+e))return o}return k({start:s,end:s+r+1},o)}function M(e,t){for(let i=t;i<e.length;i++)if(w(e.charCodeAt(i))||i>0&&w(e.charCodeAt(i-1)))return i;return e.length}const P=g(p,I,f),F=g(p,I,_),U=new s.qK(1e4);function H(e,t,i=!1){if("string"!==typeof e||"string"!==typeof t)return null;let s=U.get(e);s||(s=new RegExp(u.Bm(e),"i"),U.set(e,s));const n=s.exec(t);return n?[{start:n.index,end:n.index+n[0].length}]:i?F(e,t):P(e,t)}function B(e,t){const i=ne(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?V(i):null}function W(e,t,i,s,n,r){const o=Math.min(13,e.length);for(;i<o;i++){const o=ne(e,t,i,s,n,r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(o)return o}return[0,r]}function V(e){if("undefined"===typeof e)return[];const t=[],i=e[1];for(let s=e.length-1;s>1;s--){const n=e[s]+i,r=t[t.length-1];r&&r.end===n?r.end=n+1:t.push({start:n,end:n+1})}return t}const z=128;function G(){const e=[],t=[];for(let i=0;i<=z;i++)t[i]=0;for(let i=0;i<=z;i++)e.push(t.slice(0));return e}function j(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const K=j(2*z),Y=j(2*z),q=G(),$=G(),Q=G(),X=!1;function Z(e,t,i,s,n){function r(e,t,i=" "){for(;e.length<t;)e=i+e;return e}let o=` | |${s.split("").map((e=>r(e,3))).join("|")}\n`;for(let a=0;a<=i;a++)o+=0===a?" |":`${t[a-1]}|`,o+=e[a].slice(0,n+1).map((e=>r(e.toString(),3))).join("|")+"\n";return o}function J(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!u.Ss(i)}}function ee(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function te(e,t,i){return t[e]!==i[e]}var ie;!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(ie||(ie={}));class se{static{this.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}}constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}function ne(e,t,i,s,n,r,o=se.default){const a=e.length>z?z:e.length,l=s.length>z?z:s.length;if(i>=a||r>=l||a-i>l-r)return;if(!function(e,t,i,s,n,r,o=!1){for(;t<i&&n<r;)e[t]===s[n]&&(o&&(K[t]=n),t+=1),n+=1;return t===i}(t,i,a,n,r,l,!0))return;!function(e,t,i,s,n,r){let o=e-1,a=t-1;for(;o>=i&&a>=s;)n[o]===r[a]&&(Y[o]=a,o--),a--}(a,l,i,r,t,n);let c=1,h=1,d=i,u=r;const g=[!1];for(c=1,d=i;d<a;c++,d++){const o=K[d],p=Y[d],m=d+1<a?Y[d+1]:l;for(h=o-r+1,u=o;u<m;h++,u++){let a=Number.MIN_SAFE_INTEGER,m=!1;u<=p&&(a=re(e,t,d,i,s,n,u,l,r,0===q[c-1][h-1],g));let f=0;a!==Number.MAX_SAFE_INTEGER&&(m=!0,f=a+$[c-1][h-1]);const _=u>o,v=_?$[c][h-1]+(q[c][h-1]>0?-5:0):0,C=u>o+1&&q[c][h-1]>0,b=C?$[c][h-2]+(q[c][h-2]>0?-5:0):0;if(C&&(!_||b>=v)&&(!m||b>=f))$[c][h]=b,Q[c][h]=3,q[c][h]=0;else if(_&&(!m||v>=f))$[c][h]=v,Q[c][h]=2,q[c][h]=0;else{if(!m)throw new Error("not possible");$[c][h]=f,Q[c][h]=1,q[c][h]=q[c-1][h-1]+1}}}if(X&&function(e,t,i,s){e=e.substr(t),i=i.substr(s),console.log(Z($,e,e.length,i,i.length)),console.log(Z(Q,e,e.length,i,i.length)),console.log(Z(q,e,e.length,i,i.length))}(e,i,s,r),!g[0]&&!o.firstMatchCanBeWeak)return;c--,h--;const p=[$[c][h],r];let m=0,f=0;for(;c>=1;){let e=h;do{const t=Q[c][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);m>1&&t[i+c-1]===n[r+h-1]&&!te(e+r-1,s,n)&&m+1>q[c][e]&&(e=h),e===h?m++:m=1,f||(f=e),c--,h=e-1,p.push(h)}l-r===a&&o.boostFullMatch&&(p[0]+=2);const _=f-a;return p[0]-=_,p}function re(e,t,i,s,n,r,o,a,l,c,h){if(t[i]!==r[o])return Number.MIN_SAFE_INTEGER;let d=1,u=!1;return o===i-s?d=e[i]===n[o]?7:5:!te(o,n,r)||0!==o&&te(o-1,n,r)?!J(r,o)||0!==o&&J(r,o-1)?(J(r,o-1)||ee(r,o-1))&&(d=5,u=!0):d=5:(d=e[i]===n[o]?7:5,u=!0),d>1&&i===s&&(h[0]=!0),u||(u=te(o,n,r)||J(r,o-1)||ee(r,o-1)),i===s?o>l&&(d-=u?3:5):d+=c?u?2:0:u?0:1,o+1===a&&(d-=u?3:5),d}function oe(e,t,i,s,n,r,o){return function(e,t,i,s,n,r,o,a){let l=ne(e,t,i,s,n,r,a);if(l&&!o)return l;if(e.length>=3){const t=Math.min(7,e.length-1);for(let o=i+1;o<t;o++){const t=ae(e,o);if(t){const e=ne(t,t.toLowerCase(),i,s,n,r,a);e&&(e[0]-=3,(!l||e[0]>l[0])&&(l=e))}}}return l}(e,t,i,s,n,r,!0,o)}function ae(e,t){if(t+1>=e.length)return;const i=e[t],s=e[t+1];return i!==s?e.slice(0,t)+s+i+e.slice(t+2):void 0}},6921:(e,t,i)=>{"use strict";function s(e,t){const i=this;let s,n=!1;return function(){if(n)return s;if(n=!0,t)try{s=e.apply(i,arguments)}finally{t()}else s=e.apply(i,arguments);return s}}i.d(t,{P:()=>s})},46958:(e,t,i)=>{"use strict";i.d(t,{YW:()=>A,qg:()=>N});var s=i(90766),n=i(79326),r=i(74320),o=i(74027),a=i(98067),l=i(91508);const c="**",h="/",d="[/\\\\]",u="[^/\\\\]",g=/\//g;function p(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${d}|${u}+${d}${t?`|${d}${u}+`:""})*?`}}function m(e,t){if(!e)return[];const i=[];let s=!1,n=!1,r="";for(const o of e){switch(o){case t:if(!s&&!n){i.push(r),r="";continue}break;case"{":s=!0;break;case"}":s=!1;break;case"[":n=!0;break;case"]":n=!1}r+=o}return r&&i.push(r),i}function f(e){if(!e)return"";let t="";const i=m(e,h);if(i.every((e=>e===c)))t=".*";else{let e=!1;i.forEach(((s,n)=>{if(s===c){if(e)return;t+=p(2,n===i.length-1)}else{let e=!1,r="",o=!1,a="";for(const i of s)if("}"!==i&&e)r+=i;else if(!o||"]"===i&&a)switch(i){case"{":e=!0;continue;case"[":o=!0;continue;case"}":{const i=`(?:${m(r,",").map((e=>f(e))).join("|")})`;t+=i,e=!1,r="";break}case"]":t+="["+a+"]",o=!1,a="";break;case"?":t+=u;continue;case"*":t+=p(1);continue;default:t+=(0,l.bm)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||a?i===h?"":(0,l.bm)(i):"^",a+=e}n<i.length-1&&(i[n+1]!==c||n+2<i.length)&&(t+=d)}e=s===c}))}return t}const _=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,C=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,b=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,E=/^\*\*((\/[\w\.-]+)+)\/?$/,S=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,y=new r.qK(1e4),w=function(){return!1},L=function(){return null};function R(e,t){if(!e)return L;let i;i="string"!==typeof e?e.pattern:e,i=i.trim();const s=`${i}_${!!t.trimForExclusions}`;let n,r=y.get(s);return r||(r=_.test(i)?function(e,t){return function(i,s){return"string"===typeof i&&i.endsWith(e)?t:null}}(i.substr(4),i):(n=v.exec(x(i,t)))?function(e,t){const i=`/${e}`,s=`\\${e}`,n=function(n,r){return"string"!==typeof n?null:r?r===e?t:null:n===e||n.endsWith(i)||n.endsWith(s)?t:null},r=[e];return n.basenames=r,n.patterns=[t],n.allBasenames=r,n}(n[1],i):(t.trimForExclusions?b:C).test(i)?function(e,t){const i=I(e.slice(1,-1).split(",").map((e=>R(e,t))).filter((e=>e!==L)),e),s=i.length;if(!s)return L;if(1===s)return i[0];const n=function(t,s){for(let n=0,r=i.length;n<r;n++)if(i[n](t,s))return e;return null},r=i.find((e=>!!e.allBasenames));r&&(n.allBasenames=r.allBasenames);const o=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);o.length&&(n.allPaths=o);return n}(i,t):(n=E.exec(x(i,t)))?k(n[1].substr(1),i,!0):(n=S.exec(x(i,t)))?k(n[1],i,!1):function(e){try{const t=new RegExp(`^${f(e)}$`);return function(i){return t.lastIndex=0,"string"===typeof i&&t.test(i)?e:null}}catch(t){return L}}(i),y.set(s,r)),T(r,e)}function T(e,t){if("string"===typeof t)return e;const i=function(i,s){return(0,n._1)(i,t.base,!a.j9)?e((0,l.NB)(i.substr(t.base.length),o.Vn),s):null};return i.allBasenames=e.allBasenames,i.allPaths=e.allPaths,i.basenames=e.basenames,i.patterns=e.patterns,i}function x(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function k(e,t,i){const s=o.Vn===o.SA.sep,n=s?e:e.replace(g,o.Vn),r=o.Vn+n,a=o.SA.sep+e;let l;return l=i?function(i,o){return"string"!==typeof i||i!==n&&!i.endsWith(r)&&(s||i!==e&&!i.endsWith(a))?null:t}:function(i,r){return"string"!==typeof i||i!==n&&(s||i!==e)?null:t},l.allPaths=[(i?"*/":"./")+e],l}function A(e,t,i){return!(!e||"string"!==typeof t)&&N(e)(t,void 0,i)}function N(e,t={}){if(!e)return w;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const i=R(e,t);if(i===L)return w;const s=function(e,t){return!!i(e,t)};return i.allBasenames&&(s.allBasenames=i.allBasenames),i.allPaths&&(s.allPaths=i.allPaths),s}return function(e,t){const i=I(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return L;const n=R(e,i);if(n===L)return L;if("boolean"===typeof t)return n;if(t){const i=t.when;if("string"===typeof i){const t=(t,r,o,a)=>{if(!a||!n(t,r))return null;const l=a(i.replace("$(basename)",(()=>o)));return(0,s.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return n}(i,e[i],t))).filter((e=>e!==L))),n=i.length;if(!n)return L;if(!i.some((e=>!!e.requiresSiblings))){if(1===n)return i[0];const e=function(e,t){let n;for(let r=0,o=i.length;r<o;r++){const o=i[r](e,t);if("string"===typeof o)return o;(0,s.Qg)(o)&&(n||(n=[]),n.push(o))}return n?(async()=>{for(const e of n){const t=await e;if("string"===typeof t)return t}return null})():null},t=i.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return r.length&&(e.allPaths=r),e}const r=function(e,t,n){let r,a;for(let l=0,c=i.length;l<c;l++){const c=i[l];c.requiresSiblings&&n&&(t||(t=(0,o.P8)(e)),r||(r=t.substr(0,t.length-(0,o.LC)(e).length)));const h=c(e,t,r,n);if("string"===typeof h)return h;(0,s.Qg)(h)&&(a||(a=[]),a.push(h))}return a?(async()=>{for(const e of a){const t=await e;if("string"===typeof t)return t}return null})():null},a=i.find((e=>!!e.allBasenames));a&&(r.allBasenames=a.allBasenames);const l=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(r.allPaths=l);return r}(e,t)}function I(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const s=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let n;if(t){n=[];for(let e=0,i=s.length;e<i;e++)n.push(t)}else n=i.reduce(((e,t)=>{const i=t.patterns;return i?e.concat(i):e}),[]);const r=function(e,t){if("string"!==typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=s.indexOf(t);return-1!==i?n[i]:null};r.basenames=s,r.patterns=n,r.allBasenames=s;const o=e.filter((e=>!e.basenames));return o.push(r),o}},85600:(e,t,i)=>{"use strict";i.d(t,{e2:()=>a,sN:()=>r,tW:()=>n,v7:()=>d});var s=i(91508);function n(e){return r(e,0)}function r(e,t){switch(typeof e){case"object":return null===e?o(349,t):Array.isArray(e)?(i=e,s=o(104579,s=t),i.reduce(((e,t)=>r(t,e)),s)):function(e,t){return t=o(181387,t),Object.keys(e).sort().reduce(((t,i)=>(t=a(i,t),r(e[i],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return o(e?433:863,t)}(e,t);case"number":return o(e,t);case"undefined":return o(937,t);default:return o(617,t)}var i,s}function o(e,t){return(t<<5)-t+e|0}function a(e,t){t=o(149417,t);for(let i=0,s=e.length;i<s;i++)t=o(e.charCodeAt(i),t);return t}function l(e,t,i=32){const s=i-t;return(e<<t|(~((1<<s)-1)&e)>>>s)>>>0}function c(e,t=0,i=e.byteLength,s=0){for(let n=0;n<i;n++)e[t+n]=s}function h(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,i="0"){for(;e.length<t;)e=i+e;return e}((e>>>0).toString(16),t/4)}class d{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let n,r,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(n=a,r=-1,a=0):(n=e.charCodeAt(0),r=0);;){let l=n;if(s.pc(n)){if(!(r+1<t)){a=n;break}{const t=e.charCodeAt(r+1);s.LJ(t)?(r++,l=s.z_(n,t)):l=65533}}else s.LJ(n)&&(l=65533);if(o=this._push(i,o,l),r++,!(r<t))break;n=e.charCodeAt(r)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,i){return i<128?e[t++]=i:i<2048?(e[t++]=192|(1984&i)>>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,c(this._buff,this._buffLen),this._buffLen>56&&(this._step(),c(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=d._bigBlock32,t=this._buffDV;for(let l=0;l<64;l+=4)e.setUint32(l,t.getUint32(l,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,l(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let i,s,n,r=this._h0,o=this._h1,a=this._h2,c=this._h3,h=this._h4;for(let d=0;d<80;d++)d<20?(i=o&a|~o&c,s=1518500249):d<40?(i=o^a^c,s=1859775393):d<60?(i=o&a|o&c|a&c,s=2400959708):(i=o^a^c,s=3395469782),n=l(r,5)+i+h+s+e.getUint32(4*d,!1)&4294967295,h=c,c=a,a=l(o,30),o=r,r=n;this._h0=this._h0+r&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+h&4294967295}}},8995:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});class s{static{this.sep="."}static{this.None=new s("@@none@@")}static{this.Empty=new s("")}constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||e.value.startsWith(this.value+s.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new s((this.value?[this.value,...e]:e).join(s.sep))}}},30076:(e,t,i)=>{"use strict";i.d(t,{O:()=>r,e:()=>n});var s=i(59911);function n(){return s._K&&!!s._K.VSCODE_DEV}function r(e){if(n()){const t=function(){o||(o=new Set);const e=globalThis;e.$hotReload_applyNewExports||(e.$hotReload_applyNewExports=e=>{const t={config:{mode:void 0},...e},i=[];for(const s of o){const e=s(t);e&&i.push(e)}if(i.length>0)return e=>{let t=!1;for(const s of i)s(e)&&(t=!0);return t}});return o}();return t.add(e),{dispose(){t.delete(e)}}}return{dispose(){}}}let o;n()&&r((({oldExports:e,newSrc:t,config:i})=>{if("patch-prototype"===i.mode)return t=>{for(const i in t){const s=t[i];if(console.log(`[hot-reload] Patching prototype methods of '${i}'`,{exportedItem:s}),"function"===typeof s&&s.prototype){const n=e[i];if(n){for(const e of Object.getOwnPropertyNames(s.prototype)){const t=Object.getOwnPropertyDescriptor(s.prototype,e),r=Object.getOwnPropertyDescriptor(n.prototype,e);t?.value?.toString()!==r?.value?.toString()&&console.log(`[hot-reload] Patching prototype method '${i}.${e}'`),Object.defineProperty(n.prototype,e,t)}t[i]=n}}}return!0}}))},41127:(e,t,i)=>{"use strict";i.d(t,{b:()=>r});var s=i(30076),n=i(31308);function r(e,t){return function(e,t){if((0,s.e)()){(0,n.yQ)("reload",(t=>(0,s.O)((({oldExports:i})=>{if([...Object.values(i)].some((t=>e.includes(t))))return e=>(t(void 0),!0)})))).read(t)}}([e],t),e}},16980:(e,t,i)=>{"use strict";i.d(t,{Bc:()=>l,VS:()=>h,_W:()=>g,it:()=>c,nI:()=>p,nK:()=>d,oO:()=>u});var s=i(64383),n=i(37882),r=i(89403),o=i(91508),a=i(79400);class l{constructor(e="",t=!1){if(this.value=e,"string"!==typeof this.value)throw(0,s.Qg)("value");"boolean"===typeof t?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=t.isTrusted??void 0,this.supportThemeIcons=t.supportThemeIcons??!1,this.supportHtml=t.supportHtml??!1)}appendText(e,t=0){var i;return this.value+=(i=this.supportThemeIcons?(0,n.m2)(e):e,i.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=`\n${function(e,t){const i=e.match(/^`+/gm)?.reduce(((e,t)=>e.length>t.length?e:t)).length??0,s=i>=3?i+1:3;return[`${"`".repeat(s)}${t}`,e,`${"`".repeat(s)}`].join("\n")}(t,e)}\n`,this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp((0,o.bm)(t),"g");return e.replace(i,((t,i)=>"\\"!==e.charAt(i-1)?`\\${t}`:t))}}function c(e){return h(e)?!e.value:!Array.isArray(e)||e.every(c)}function h(e){return e instanceof l||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||"object"===typeof e.isTrusted||void 0===e.isTrusted)&&("boolean"===typeof e.supportThemeIcons||void 0===e.supportThemeIcons))}function d(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons&&e.supportHtml===t.supportHtml&&(e.baseUri===t.baseUri||!!e.baseUri&&!!t.baseUri&&(0,r.n4)(a.r.from(e.baseUri),a.r.from(t.baseUri))))}function u(e){return e.replace(/"/g,""")}function g(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1"):e}function p(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const s=i[1];if(s){const e=/height=(\d+)/.exec(s),i=/width=(\d+)/.exec(s),n=e?e[1]:"",r=i?i[1]:"",o=isFinite(parseInt(r)),a=isFinite(parseInt(n));o&&t.push(`width="${r}"`),a&&t.push(`height="${n}"`)}return{href:e,dimensions:t}}},37882:(e,t,i)=>{"use strict";i.d(t,{R$:()=>p,_k:()=>f,m2:()=>c,pS:()=>g,pz:()=>_,sA:()=>d});var s=i(26690),n=i(91508),r=i(25689);const o="$(",a=new RegExp(`\\$\\(${r.L.iconNameExpression}(?:${r.L.iconModifierExpression})?\\)`,"g"),l=new RegExp(`(\\\\)?${a.source}`,"g");function c(e){return e.replace(l,((e,t)=>t?e:`\\${e}`))}const h=new RegExp(`\\\\${a.source}`,"g");function d(e){return e.replace(h,(e=>`\\${e}`))}const u=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function g(e){return-1===e.indexOf(o)?e:e.replace(u,((e,t,i,s)=>i?e:t||s||""))}function p(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}const m=new RegExp(`\\$\\(${r.L.iconNameCharacter}+\\)`,"g");function f(e){m.lastIndex=0;let t="";const i=[];let s=0;for(;;){const n=m.lastIndex,r=m.exec(e),o=e.substring(n,r?.index);if(o.length>0){t+=o;for(let e=0;e<o.length;e++)i.push(s)}if(!r)break;s+=r[0].length}return{text:t,iconOffsets:i}}function _(e,t,i=!1){const{text:r,iconOffsets:o}=t;if(!o||0===o.length)return(0,s.yr)(e,r,i);const a=(0,n.NB)(r," "),l=r.length-a.length,c=(0,s.yr)(e,a,i);if(c)for(const s of c){const e=o[s.start+l]+l;s.start+=e,s.end+=e}return c}},96032:(e,t,i)=>{"use strict";i.d(t,{n:()=>s,r:()=>n});class s{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const n=new s("id#")},2299:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(41234);const n=new class{constructor(){this._onDidChange=new s.vl,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}},42522:(e,t,i)=>{"use strict";var s;i.d(t,{f:()=>s}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const i=Object.freeze([]);function*s(e){yield e}e.empty=function(){return i},e.single=s,e.wrap=function(e){return t(e)?e:s(e)},e.from=function(e){return e||i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let i=0;for(const s of e)if(t(s,i++))return!0;return!1},e.find=function(e,t){for(const i of e)if(t(i))return i},e.filter=function*(e,t){for(const i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(const s of e)yield t(s,i++)},e.flatMap=function*(e,t){let i=0;for(const s of e)yield*t(s,i++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,i){let s=i;for(const n of e)s=t(s,n);return s},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},e.consume=function(t,i=Number.POSITIVE_INFINITY){const s=[];if(0===i)return[s,t];const n=t[Symbol.iterator]();for(let r=0;r<i;r++){const t=n.next();if(t.done)return[s,e.empty()];s.push(t.value)}return[s,{[Symbol.iterator]:()=>n}]},e.asyncToArray=async function(e){const t=[];for await(const i of e)t.push(i);return Promise.resolve(t)}}(s||(s={}))},24939:(e,t,i)=>{"use strict";i.d(t,{Fo:()=>u,YM:()=>p,m5:()=>m,uw:()=>a});class s{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const n=new s,r=new s,o=new s,a=new Array(230),l={},c=[],h=Object.create(null),d=Object.create(null),u=[],g=[];for(let f=0;f<=193;f++)u[f]=-1;for(let f=0;f<=132;f++)g[f]=-1;var p;function m(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],s=[];for(const p of t){const[e,t,m,f,_,v,C,b,E]=p;if(s[t]||(s[t]=!0,c[t]=m,h[m]=t,d[m.toLowerCase()]=t,e&&(u[t]=f,0!==f&&3!==f&&5!==f&&4!==f&&6!==f&&57!==f&&(g[f]=t))),!i[f]){if(i[f]=!0,!_)throw new Error(`String representation missing for key code ${f} around scan code ${m}`);n.define(f,_),r.define(f,b||_),o.define(f,E||b||_)}v&&(a[v]=f),C&&(l[C]=f)}g[3]=46}(),function(e){e.toString=function(e){return n.keyCodeToStr(e)},e.fromString=function(e){return n.strToKeyCode(e)},e.toUserSettingsUS=function(e){return r.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return o.keyCodeToStr(e)},e.fromUserSettings=function(e){return r.strToKeyCode(e)||o.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return n.keyCodeToStr(e)}}(p||(p={}))},83619:(e,t,i)=>{"use strict";i.d(t,{G$:()=>l,Of:()=>r,r0:()=>o,rr:()=>a});var s=i(78209);class n{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=i(r);if(null===o)return null;s[n]=c(r,o,this.modifierLabels[e])}return s.join(" ")}}const r=new n({ctrlKey:"\u2303",shiftKey:"\u21e7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:s.kg({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:s.kg({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:s.kg({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),o=new n({ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"optKey.long",comment:["This is the long form for the Alt/Option key on the keyboard"]},"Option"),metaKey:s.kg({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:s.kg({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:s.kg({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:s.kg({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:s.kg({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"}),a=new n({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),l=new n({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"});function c(e,t,i){if(null===t)return"";const s=[];return e.ctrlKey&&s.push(i.ctrlKey),e.shiftKey&&s.push(i.shiftKey),e.altKey&&s.push(i.altKey),e.metaKey&&s.push(i.metaKey),""!==t&&s.push(t),s.join(i.separator)}},42539:(e,t,i)=>{"use strict";i.d(t,{FW:()=>l,Zv:()=>n,dG:()=>o,z5:()=>c});var s=i(64383);function n(e,t){if("number"===typeof e){if(0===e)return null;const i=(65535&e)>>>0,s=(4294901760&e)>>>16;return new a(0!==s?[r(i,t),r(s,t)]:[r(i,t)])}{const i=[];for(let s=0;s<e.length;s++)i.push(r(e[s],t));return new a(i)}}function r(e,t){const i=!!(2048&e),s=!!(256&e);return new o(2===t?s:i,!!(1024&e),!!(512&e),2===t?i:s,255&e)}class o{constructor(e,t,i,s,n){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=s,this.keyCode=n}equals(e){return e instanceof o&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class a{constructor(e){if(0===e.length)throw(0,s.Qg)("chords");this.chords=e}}class l{constructor(e,t,i,s,n,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=s,this.keyLabel=n,this.keyAriaLabel=r}}class c{}},91090:(e,t,i)=>{"use strict";i.d(t,{d:()=>s});class s{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},5662:(e,t,i)=>{"use strict";i.d(t,{$w:()=>C,AS:()=>d,Ay:()=>o,BO:()=>v,Cm:()=>p,HE:()=>f,VD:()=>a,Xm:()=>h,jG:()=>m,lC:()=>c,mp:()=>_,qE:()=>u,s:()=>g});var s=i(6921),n=i(42522);let r=null;function o(e){return r?.trackDisposable(e),e}function a(e){r?.markAsDisposed(e)}function l(e,t){r?.setParent(e,t)}function c(e){return r?.markAsSingleton(e),e}function h(e){return"object"===typeof e&&null!==e&&"function"===typeof e.dispose&&0===e.dispose.length}function d(e){if(n.f.is(e)){const i=[];for(const s of e)if(s)try{s.dispose()}catch(t){i.push(t)}if(1===i.length)throw i[0];if(i.length>1)throw new AggregateError(i,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function u(...e){const t=g((()=>d(e)));return function(e,t){if(r)for(const i of e)r.setParent(i,t)}(e,t),t}function g(e){const t=o({dispose:(0,s.P)((()=>{a(t),e()}))});return t}class p{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{d(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class m{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new p,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class f{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class _{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class v{constructor(e){this.object=e}dispose(){}}class C{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{d(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},58925:(e,t,i)=>{"use strict";i.d(t,{w:()=>n});class s{static{this.Undefined=new s(void 0)}constructor(e){this.element=e,this.next=s.Undefined,this.prev=s.Undefined}}class n{constructor(){this._first=s.Undefined,this._last=s.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===s.Undefined}clear(){let e=this._first;for(;e!==s.Undefined;){const t=e.next;e.prev=s.Undefined,e.next=s.Undefined,e=t}this._first=s.Undefined,this._last=s.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new s(e);if(this._first===s.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==s.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==s.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==s.Undefined&&e.next!==s.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===s.Undefined&&e.next===s.Undefined?(this._first=s.Undefined,this._last=s.Undefined):e.next===s.Undefined?(this._last=this._last.prev,this._last.next=s.Undefined):e.prev===s.Undefined&&(this._first=this._first.next,this._first.prev=s.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==s.Undefined;)yield e.element,e=e.next}}},74320:(e,t,i)=>{"use strict";var s,n;i.d(t,{cO:()=>h,db:()=>d,fT:()=>o,qK:()=>c});class r{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[s]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,i]of e)this.set(t,i)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new r(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[i,s]of this.map)e(s.value,s.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(s=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[n]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let s=this._map.get(e);if(s)s.value=t,0!==i&&this.touch(s,i);else{switch(s={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:default:this.addItemLast(s);break;case 1:this.addItemFirst(s)}this._map.set(e,s),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let s=this._head;for(;s;){if(t?e.bind(t)(s.value,s.key,this):e(s.value,s.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}values(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}entries(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator]:()=>s,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return s}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.previous,i--;this._tail=t,this._size=i,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class l extends a{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class c extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class h{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class d{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},908:(e,t,i)=>{"use strict";i.d(t,{As:()=>r,qg:()=>o});var s=i(81674),n=i(79400);function r(e){return JSON.stringify(e,a)}function o(e){let t=JSON.parse(e);return t=l(t),t}function a(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function l(e,t=0){if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return n.r.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof s.MB||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i<e.length;++i)e[i]=l(e[i],t+1);else for(const i in e)Object.hasOwnProperty.call(e,i)&&(e[i]=l(e[i],t+1))}return e}},44320:(e,t,i)=>{"use strict";i.d(t,{K:()=>s});const s=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},36456:(e,t,i)=>{"use strict";i.d(t,{Ez:()=>d,SJ:()=>p,fV:()=>h,ny:()=>s,v$:()=>c,zl:()=>g});var s,n=i(64383),r=i(98067),o=i(91508),a=i(79400),l=i(74027);function c(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}function h(e,...t){return t.some((t=>c(e,t)))}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(s||(s={}));const d=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,s.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(h){return n.dz(h),e}const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);const o=this._ports[t],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(c+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:r.HZ?this._preferredWebSchema:s.vscodeRemoteResource,authority:`${i}:${o}`,path:this._remoteResourcesPath,query:c})}};class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===s.vscodeRemote?d.rewrite(e):e.scheme!==s.file||!r.ib&&r.lg!==`${s.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:s.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const i=l.fj(t,e);return a.r.file(i)}return a.r.parse(t.toUrl(e))}}const g=new u;var p;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";e.getHeadersFromQuery=function(e){let s;"string"===typeof e?s=new URL(e).searchParams:e instanceof URL?s=e.searchParams:a.r.isUri(e)&&(s=new URL(e.toString(!0)).searchParams);const n=s?.get(i);if(n)return t.get(n)},e.addSearchParam=function(e,t,s){if(!globalThis.crossOriginIsolated)return;const n=t&&s?"3":s?"2":"1";e instanceof URLSearchParams?e.set(i,n):e[i]=n}}(p||(p={}))},1592:(e,t,i)=>{"use strict";function s(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{Uq:()=>n,mu:()=>r,qE:()=>s});class n{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class r{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}},10146:(e,t,i)=>{"use strict";i.d(t,{Go:()=>n,PI:()=>a,V0:()=>d,aI:()=>h,co:()=>c,kT:()=>u,ol:()=>r});var s=i(631);function n(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach((([e,i])=>{t[e]=i&&"object"===typeof i?n(i):i})),t}function r(e){if(!e||"object"!==typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(o.call(e,i)){const n=e[i];"object"!==typeof n||Object.isFrozen(n)||(0,s.iu)(n)||t.push(n)}}return e}const o=Object.prototype.hasOwnProperty;function a(e,t){return l(e,t,new Set)}function l(e,t,i){if((0,s.z)(e))return e;const n=t(e);if("undefined"!==typeof n)return n;if(Array.isArray(e)){const s=[];for(const n of e)s.push(l(n,t,i));return s}if((0,s.Gv)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const s={};for(const n in e)o.call(e,n)&&(s[n]=l(e[n],t,i));return i.delete(e),s}return e}function c(e,t,i=!0){return(0,s.Gv)(e)?((0,s.Gv)(t)&&Object.keys(t).forEach((n=>{n in e?i&&((0,s.Gv)(e[n])&&(0,s.Gv)(t[n])?c(e[n],t[n],i):e[n]=t[n]):e[n]=t[n]})),e):t}function h(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,s;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(!h(e[i],t[i]))return!1}else{const n=[];for(s in e)n.push(s);n.sort();const r=[];for(s in t)r.push(s);if(r.sort(),!h(n,r))return!1;for(i=0;i<n.length;i++)if(!h(e[n[i]],t[n[i]]))return!1}return!0}function d(e){const t=[];for(const i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[i]&&t.push(i);return t}function u(e,t){const i=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},s={};for(const n of e)s[n]=i(n);return s}},31308:(e,t,i)=>{"use strict";i.d(t,{BK:()=>_,fm:()=>c,Y:()=>d,zL:()=>h,yC:()=>g,ht:()=>u,lk:()=>m.lk,un:()=>n.un,nb:()=>n.nb,ZX:()=>m.ZX,C:()=>n.C,rm:()=>n.rm,X2:()=>s.X2,y0:()=>m.y0,Yd:()=>m.Yd,yQ:()=>m.yQ,FY:()=>s.FY,Zh:()=>S,OI:()=>m.OI,PO:()=>s.PO,Rn:()=>s.Rn,oJ:()=>C});var s=i(49154),n=i(87958),r=i(66782),o=i(5662),a=i(22311),l=i(94958);function c(e){return new p(new a.nA(void 0,void 0,e),e,void 0,void 0)}function h(e,t){return new p(new a.nA(e.owner,e.debugName,e.debugReferenceFn??t),t,void 0,void 0)}function d(e,t){return new p(new a.nA(e.owner,e.debugName,e.debugReferenceFn??t),t,e.createEmptyChangeSummary,e.handleChange)}function u(e,t){const i=new o.Cm,s=d({owner:e.owner,debugName:e.debugName,debugReferenceFn:e.debugReferenceFn??t,createEmptyChangeSummary:e.createEmptyChangeSummary,handleChange:e.handleChange},((e,s)=>{i.clear(),t(e,s,i)}));return(0,o.s)((()=>{s.dispose(),i.dispose()}))}function g(e){const t=new o.Cm,i=h({owner:void 0,debugName:void 0,debugReferenceFn:e},(i=>{t.clear(),e(i,t)}));return(0,o.s)((()=>{i.dispose(),t.dispose()}))}class p{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,s){this._debugNameData=e,this._runFn=t,this.createChangeSummary=i,this._handleChange=s,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),(0,l.tZ)()?.handleAutorunCreated(this),this._runIfNeeded(),(0,o.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,o.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){(0,l.tZ)()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||(0,l.tZ)()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,r.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=p}(c||(c={}));var m=i(13850),f=i(64383);class _{static fromFn(e){return new _(e())}constructor(e){this._value=(0,s.FY)(this,void 0),this.promiseResult=this._value,this.promise=e.then((e=>((0,s.Rn)((t=>{this._value.set(new v(e,void 0),t)})),e)),(e=>{throw(0,s.Rn)((t=>{this._value.set(new v(void 0,e),t)})),e}))}}class v{constructor(e,t){this.data=e,this.error=t}}function C(e,t,i,s){return t||(t=e=>null!==e&&void 0!==e),new Promise(((n,r)=>{let o=!0,a=!1;const l=e.map((e=>({isFinished:t(e),error:!!i&&i(e),state:e}))),h=c((e=>{const{isFinished:t,error:i,state:s}=l.read(e);(t||i)&&(o?a=!0:h.dispose(),i?r(!0===i?s:i):n(s))}));if(s){const e=s.onCancellationRequested((()=>{h.dispose(),e.dispose(),r(new f.AL)}));if(s.isCancellationRequested)return h.dispose(),e.dispose(),void r(new f.AL)}o=!1,a&&h.dispose()}))}var b=i(51241);class E extends s.ZK{get debugName(){return this._debugNameData.getDebugName(this)??"LazyObservableValue"}constructor(e,t,i){super(),this._debugNameData=e,this._equalityComparator=i,this._isUpToDate=!0,this._deltas=[],this._updateCounter=0,this._value=t}get(){return this._update(),this._value}_update(){if(!this._isUpToDate)if(this._isUpToDate=!0,this._deltas.length>0){for(const e of this.observers)for(const t of this._deltas)e.handleChange(this,t);this._deltas.length=0}else for(const e of this.observers)e.handleChange(this,void 0)}_beginUpdate(){if(this._updateCounter++,1===this._updateCounter)for(const e of this.observers)e.beginUpdate(this)}_endUpdate(){if(this._updateCounter--,0===this._updateCounter){this._update();const e=[...this.observers];for(const t of e)t.endUpdate(this)}}addObserver(e){const t=!this.observers.has(e)&&this._updateCounter>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this._updateCounter>0;super.removeObserver(e),t&&e.endUpdate(this)}set(e,t,i){if(void 0===i&&this._equalityComparator(this._value,e))return;let n;t||(t=n=new s.XL((()=>{}),(()=>`Setting ${this.debugName}`)));try{if(this._isUpToDate=!1,this._setValue(e),void 0!==i&&this._deltas.push(i),t.updateObserver({beginUpdate:()=>this._beginUpdate(),endUpdate:()=>this._endUpdate(),handleChange:(e,t)=>{},handlePossibleChange:e=>{}},this),this._updateCounter>1)for(const e of this.observers)e.handlePossibleChange(this)}finally{n&&n.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function S(e,t){return e.lazy?new E(new a.nA(e.owner,e.debugName,void 0),t,e.equalsFn??b.nx):new s.Lj(new a.nA(e.owner,e.debugName,void 0),t,e.equalsFn??b.nx)}},49154:(e,t,i)=>{"use strict";i.d(t,{Bm:()=>h,FB:()=>d,FY:()=>b,Lj:()=>E,N2:()=>u,PO:()=>v,Rn:()=>m,X2:()=>S,XL:()=>C,YY:()=>f,ZK:()=>p,fL:()=>_,zV:()=>g});var s=i(51241),n=i(22311),r=i(94958);let o,a,l,c;function h(e){o=e}function d(e){a=e}function u(e){l=e}class g{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const i=void 0===t?void 0:e,s=void 0===t?e:t;return l({owner:i,debugName:()=>{const e=(0,n.qQ)(s);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(s.toString());return t?`${this.debugName}.${t[2]}`:i?void 0:`${this.debugName} (mapped)`},debugReferenceFn:s},(e=>s(this.read(e),e)))}flatten(){return l({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(o(this,t)),this}keepObserved(e){return e.add(a(this)),this}}class p extends g{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function m(e,t){const i=new C(e,t);try{e(i)}finally{i.finish()}}function f(e){if(c)e(c);else{const t=new C(e,void 0);c=t;try{e(t)}finally{t.finish(),c=void 0}}}async function _(e,t){const i=new C(e,t);try{await e(i)}finally{i.finish()}}function v(e,t,i){e?t(e):m(t,i)}class C{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],(0,r.tZ)()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,n.qQ)(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:i,observable:s}=e[t];i.endUpdate(s)}this.updatingObservers=null,(0,r.tZ)()?.handleEndTransaction()}}function b(e,t){let i;return i="string"===typeof e?new n.nA(void 0,e,void 0):new n.nA(e,void 0,void 0),new E(i,t,s.nx)}class E extends p{get debugName(){return this._debugNameData.getDebugName(this)??"ObservableValue"}constructor(e,t,i){super(),this._debugNameData=e,this._equalityComparator=i,this._value=t}get(){return this._value}set(e,t,i){if(void 0===i&&this._equalityComparator(this._value,e))return;let s;t||(t=s=new C((()=>{}),(()=>`Setting ${this.debugName}`)));try{const s=this._value;this._setValue(e),(0,r.tZ)()?.handleObservableChanged(this,{oldValue:s,newValue:e,change:i,didChange:!0,hadValue:!0});for(const e of this.observers)t.updateObserver(e,this),e.handleChange(this,i)}finally{s&&s.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function S(e,t){let i;return i="string"===typeof e?new n.nA(void 0,e,void 0):new n.nA(e,void 0,void 0),new y(i,t,s.nx)}class y extends E{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){this._value?.dispose()}}},22311:(e,t,i)=>{"use strict";i.d(t,{nA:()=>s,qQ:()=>l});class s{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return function(e,t){const i=r.get(e);if(i)return i;const s=function(e,t){const i=r.get(e);if(i)return i;const s=t.owner?function(e){const t=a.get(e);if(t)return t;const i=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let s=o.get(i)??0;s++,o.set(i,s);const n=1===s?i:`${i}#${s}`;return a.set(e,n),n}(t.owner)+".":"";let n;const c=t.debugNameSource;if(void 0!==c){if("function"!==typeof c)return s+c;if(n=c(),void 0!==n)return s+n}const h=t.referenceFn;if(void 0!==h&&(n=l(h),void 0!==n))return s+n;if(void 0!==t.owner){const i=function(e,t){for(const i in e)if(e[i]===t)return i;return}(t.owner,e);if(void 0!==i)return s+i}return}(e,t);if(s){let t=n.get(s)??0;t++,n.set(s,t);const i=1===t?s:`${s}#${t}`;return r.set(e,i),i}return}(e,this)}}const n=new Map,r=new WeakMap;const o=new Map,a=new WeakMap;function l(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),s=i?i[1]:void 0;return s?.trim()}},87958:(e,t,i)=>{"use strict";i.d(t,{C:()=>d,a0:()=>p,dQ:()=>h,nb:()=>u,rm:()=>g,un:()=>c});var s=i(66782),n=i(51241),r=i(5662),o=i(49154),a=i(22311),l=i(94958);function c(e,t){return void 0!==t?new m(new a.nA(e,void 0,t),t,void 0,void 0,void 0,n.nx):new m(new a.nA(void 0,void 0,e),e,void 0,void 0,void 0,n.nx)}function h(e,t,i){return new f(new a.nA(e,void 0,t),t,void 0,void 0,void 0,n.nx,i)}function d(e,t){return new m(new a.nA(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??n.nx)}function u(e,t){return new m(new a.nA(e.owner,e.debugName,void 0),t,e.createEmptyChangeSummary,e.handleChange,void 0,e.equalityComparer??n.nx)}function g(e,t){let i,s;void 0===t?(i=e,s=void 0):(s=e,i=t);const o=new r.Cm;return new m(new a.nA(s,void 0,i),(e=>(o.clear(),i(e,o))),void 0,void 0,(()=>o.dispose()),n.nx)}function p(e,t){let i,s,o;return void 0===t?(i=e,s=void 0):(s=e,i=t),new m(new a.nA(s,void 0,i),(e=>{o?o.clear():o=new r.Cm;const t=i(e);return t&&o.add(t),t}),void 0,void 0,(()=>{o&&(o.dispose(),o=void 0)}),n.nx)}(0,o.N2)(d);class m extends o.ZK{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,i,s,n=void 0,r){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=i,this._handleChange=s,this._handleLastObserverRemoved=n,this._equalityComparator=r,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),(0,l.tZ)()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,i=this.value;this.state=3;const s=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,s)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const n=t&&!this._equalityComparator(i,this.value);if((0,l.tZ)()?.handleDerivedRecomputed(this,{oldValue:i,newValue:this.value,change:void 0,didChange:n,hadValue:t}),n)for(const r of this.observers)r.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const i of this.observers)i.handlePossibleChange(this);if(t)for(const i of this.observers)i.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,s.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),s=3===this.state;if(i&&(1===this.state||s)&&(this.state=2,s))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}class f extends m{constructor(e,t,i,s,n=void 0,r,o){super(e,t,i,s,n,r),this.set=o}}},94958:(e,t,i)=>{"use strict";let s;function n(e){s=e}function r(){return s}i.d(t,{Br:()=>n,jm:()=>o,tZ:()=>r});class o{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return function(e){const t=new Array,i=[];let s="";function n(e){if("length"in e)for(const t of e)t&&n(t);else"text"in e?(s+=`%c${e.text}`,t.push(e.style),e.data&&i.push(...e.data)):"data"in e&&i.push(...e.data)}n(e);const r=[s,...t];return r.push(...i),r}([a(d("| ",this.indentation)),e])}formatInfo(e){return e.hadValue?e.didChange?[a(" "),c(h(e.oldValue,70),{color:"red",strikeThrough:!0}),a(" "),c(h(e.newValue,60),{color:"green"})]:[a(" (unchanged)")]:[a(" "),c(h(e.newValue,60),{color:"green"}),a(" (initial)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([l("observable value changed"),c(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(0!==e.size)return c(" (changed deps: "+[...e].map((e=>e.debugName)).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,s)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,s]))}handleDerivedRecomputed(e,t){const i=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([l("derived recomputed"),c(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(i),{data:[{fn:e._debugNameData.referenceFn??e._computeFn}]}])),i.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([l("observable from event triggered"),c(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,s)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,s]))}handleAutorunTriggered(e){const t=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([l("autorun"),c(e.debugName,{color:"BlueViolet"}),this.formatChanges(t),{data:[{fn:e._debugNameData.referenceFn??e._runFn}]}])),t.clear(),this.indentation++}handleAutorunFinished(e){this.indentation--}handleBeginTransaction(e){let t=e.getDebugName();void 0===t&&(t=""),console.log(...this.textToConsoleArgs([l("transaction"),c(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}function a(e){return c(e,{color:"black"})}function l(e){return c(function(e,t){for(;e.length<t;)e+=" ";return e}(`${e}: `,10),{color:"black",bold:!0})}function c(e,t={color:"black"}){const i={color:t.color};return t.strikeThrough&&(i["text-decoration"]="line-through"),t.bold&&(i["font-weight"]="bold"),{text:e,style:(s=i,Object.entries(s).reduce(((e,[t,i])=>`${e}${t}:${i};`),""))};var s}function h(e,t){switch(typeof e){case"number":default:return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return null===e?"null":Array.isArray(e)?function(e,t){let i="[ ",s=!0;for(const n of e){if(s||(i+=", "),i.length-5>t){i+="...";break}s=!1,i+=`${h(n,t-i.length)}`}return i+=" ]",i}(e,t):function(e,t){let i="{ ",s=!0;for(const[n,r]of Object.entries(e)){if(s||(i+=", "),i.length-5>t){i+="...";break}s=!1,i+=`${n}: ${h(r,t-i.length)}`}return i+=" }",i}(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`}}function d(e,t){let i="";for(let s=1;s<=t;s++)i+=e;return i}},13850:(e,t,i)=>{"use strict";i.d(t,{OI:()=>v,Rl:()=>E,Yd:()=>f,ZX:()=>b,eP:()=>u,lk:()=>c,t:()=>y,y0:()=>d,yQ:()=>p});i(41234);var s=i(5662),n=i(49154),r=i(22311),o=i(87958),a=i(94958),l=i(51241);function c(e){return new h(e)}class h extends n.zV{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function d(...e){let t,i,s;return 3===e.length?[t,i,s]=e:[i,s]=e,new g(new r.nA(t,void 0,s),i,s,(()=>g.globalTransaction),l.nx)}function u(e,t,i){return new g(new r.nA(e.owner,e.debugName,e.debugReferenceFn??i),t,i,(()=>g.globalTransaction),e.equalsFn??l.nx)}class g extends n.ZK{constructor(e,t,i,s,r){super(),this._debugNameData=e,this.event=t,this._getValue=i,this._getTransaction=s,this._equalityComparator=r,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),i=this.value,s=!this.hasValue||!this._equalityComparator(i,t);let r=!1;s&&(this.value=t,this.hasValue&&(r=!0,(0,n.PO)(this._getTransaction(),(e=>{(0,a.tZ)()?.handleFromEventObservableTriggered(this,{oldValue:i,newValue:t,change:void 0,didChange:s,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||(0,a.tZ)()?.handleFromEventObservableTriggered(this,{oldValue:i,newValue:t,change:void 0,didChange:s,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}function p(e,t){return new m(e,t)}!function(e){e.Observer=g,e.batchEventsGlobally=function(e,t){let i=!1;void 0===g.globalTransaction&&(g.globalTransaction=e,i=!0);try{t()}finally{i&&(g.globalTransaction=void 0)}}}(d||(d={}));class m extends n.ZK{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{(0,n.Rn)((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>this.debugName))}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function f(e){return"string"===typeof e?new _(e):new _(void 0,e)}class _ extends n.ZK{get debugName(){return new r.nA(this._owner,this._debugName,void 0).getDebugName(this)??"Observable Signal"}toString(){return this.debugName}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(e)for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,t);else(0,n.Rn)((e=>{this.trigger(e,t)}),(()=>`Trigger signal ${this.debugName}`))}get(){}}function v(e,t){const i=new C(!0,t);return e.addObserver(i),t?t(e.get()):e.reportChanges(),(0,s.s)((()=>{e.removeObserver(i)}))}(0,n.FB)((function(e){const t=new C(!1,void 0);return e.addObserver(t),(0,s.s)((()=>{e.removeObserver(t)}))})),(0,n.Bm)(v);class C{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}function b(e,t){let i;return(0,o.C)({owner:e,debugReferenceFn:t},(e=>(i=t(e,i),i)))}function E(e,t,i,s){let n=new S(i,s);return(0,o.C)({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{n.dispose(),n=new S(i)}},(e=>(n.setItems(t.read(e)),n.getItems())))}class S{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach((e=>e.store.dispose())),this._cache.clear()}setItems(e){const t=[],i=new Set(this._cache.keys());for(const n of e){const e=this._keySelector?this._keySelector(n):n;let r=this._cache.get(e);if(r)i.delete(e);else{const t=new s.Cm;r={out:this._map(n,t),store:t},this._cache.set(e,r)}t.push(r.out)}for(const s of i){this._cache.get(s).store.dispose(),this._cache.delete(s)}this._items=t}getItems(){return this._items}}function y(e,t){return b(e,((e,i)=>i??t(e)))}},74027:(e,t,i)=>{"use strict";i.d(t,{IN:()=>f,LC:()=>L,P8:()=>w,S8:()=>C,SA:()=>v,V8:()=>S,Vn:()=>R,fj:()=>b,hd:()=>E,pD:()=>y});var s=i(59911);const n=46,r=47,o=92,a=58;class l extends Error{constructor(e,t,i){let s;"string"===typeof t&&0===t.indexOf("not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be";const n=-1!==e.indexOf(".")?"property":"argument";let r=`The "${e}" ${n} ${s} of type ${t}`;r+=". Received type "+typeof i,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function c(e,t){if("string"!==typeof e)throw new l(t,"string",e)}const h="win32"===s.iD;function d(e){return e===r||e===o}function u(e){return e===r}function g(e){return e>=65&&e<=90||e>=97&&e<=122}function p(e,t,i,s){let o="",a=0,l=-1,c=0,h=0;for(let d=0;d<=e.length;++d){if(d<e.length)h=e.charCodeAt(d);else{if(s(h))break;h=r}if(s(h)){if(l===d-1||1===c);else if(2===c){if(o.length<2||2!==a||o.charCodeAt(o.length-1)!==n||o.charCodeAt(o.length-2)!==n){if(o.length>2){const e=o.lastIndexOf(i);-1===e?(o="",a=0):(o=o.slice(0,e),a=o.length-1-o.lastIndexOf(i)),l=d,c=0;continue}if(0!==o.length){o="",a=0,l=d,c=0;continue}}t&&(o+=o.length>0?`${i}..`:"..",a=2)}else o.length>0?o+=`${i}${e.slice(l+1,d)}`:o=e.slice(l+1,d),a=d-l-1;l=d,c=0}else h===n&&-1!==c?++c:c=-1}return o}function m(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new l(t,"Object",e)}(t,"pathObject");const i=t.dir||t.root,s=t.base||`${t.name||""}${n=t.ext,n?`${"."===n[0]?"":"."}${n}`:""}`;var n;return i?i===t.root?`${i}${s}`:`${i}${e}${s}`:s}const f={resolve(...e){let t="",i="",n=!1;for(let r=e.length-1;r>=-1;r--){let l;if(r>=0){if(l=e[r],c(l,`paths[${r}]`),0===l.length)continue}else 0===t.length?l=s.bJ():(l={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||s.bJ(),(void 0===l||l.slice(0,2).toLowerCase()!==t.toLowerCase()&&l.charCodeAt(2)===o)&&(l=`${t}\\`));const h=l.length;let u=0,p="",m=!1;const f=l.charCodeAt(0);if(1===h)d(f)&&(u=1,m=!0);else if(d(f))if(m=!0,d(l.charCodeAt(1))){let e=2,t=e;for(;e<h&&!d(l.charCodeAt(e));)e++;if(e<h&&e!==t){const i=l.slice(t,e);for(t=e;e<h&&d(l.charCodeAt(e));)e++;if(e<h&&e!==t){for(t=e;e<h&&!d(l.charCodeAt(e));)e++;e!==h&&e===t||(p=`\\\\${i}\\${l.slice(t,e)}`,u=e)}}}else u=1;else g(f)&&l.charCodeAt(1)===a&&(p=l.slice(0,2),u=2,h>2&&d(l.charCodeAt(2))&&(m=!0,u=3));if(p.length>0)if(t.length>0){if(p.toLowerCase()!==t.toLowerCase())continue}else t=p;if(n){if(t.length>0)break}else if(i=`${l.slice(u)}\\${i}`,n=m,m&&t.length>0)break}return i=p(i,!n,"\\",d),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){c(e,"path");const t=e.length;if(0===t)return".";let i,s=0,n=!1;const r=e.charCodeAt(0);if(1===t)return u(r)?"\\":e;if(d(r))if(n=!0,d(e.charCodeAt(1))){let n=2,r=n;for(;n<t&&!d(e.charCodeAt(n));)n++;if(n<t&&n!==r){const o=e.slice(r,n);for(r=n;n<t&&d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&!d(e.charCodeAt(n));)n++;if(n===t)return`\\\\${o}\\${e.slice(r)}\\`;n!==r&&(i=`\\\\${o}\\${e.slice(r,n)}`,s=n)}}}else s=1;else g(r)&&e.charCodeAt(1)===a&&(i=e.slice(0,2),s=2,t>2&&d(e.charCodeAt(2))&&(n=!0,s=3));let o=s<t?p(e.slice(s),!n,"\\",d):"";return 0!==o.length||n||(o="."),o.length>0&&d(e.charCodeAt(t-1))&&(o+="\\"),void 0===i?n?`\\${o}`:o:n?`${i}\\${o}`:`${i}${o}`},isAbsolute(e){c(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return d(i)||t>2&&g(i)&&e.charCodeAt(1)===a&&d(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let r=0;r<e.length;++r){const s=e[r];c(s,"path"),s.length>0&&(void 0===t?t=i=s:t+=`\\${s}`)}if(void 0===t)return".";let s=!0,n=0;if("string"===typeof i&&d(i.charCodeAt(0))){++n;const e=i.length;e>1&&d(i.charCodeAt(1))&&(++n,e>2&&(d(i.charCodeAt(2))?++n:s=!1))}if(s){for(;n<t.length&&d(t.charCodeAt(n));)n++;n>=2&&(t=`\\${t.slice(n)}`)}return f.normalize(t)},relative(e,t){if(c(e,"from"),c(t,"to"),e===t)return"";const i=f.resolve(e),s=f.resolve(t);if(i===s)return"";if((e=i.toLowerCase())===(t=s.toLowerCase()))return"";let n=0;for(;n<e.length&&e.charCodeAt(n)===o;)n++;let r=e.length;for(;r-1>n&&e.charCodeAt(r-1)===o;)r--;const a=r-n;let l=0;for(;l<t.length&&t.charCodeAt(l)===o;)l++;let h=t.length;for(;h-1>l&&t.charCodeAt(h-1)===o;)h--;const d=h-l,u=a<d?a:d;let g=-1,p=0;for(;p<u;p++){const i=e.charCodeAt(n+p);if(i!==t.charCodeAt(l+p))break;i===o&&(g=p)}if(p!==u){if(-1===g)return s}else{if(d>u){if(t.charCodeAt(l+p)===o)return s.slice(l+p+1);if(2===p)return s.slice(l+p)}a>u&&(e.charCodeAt(n+p)===o?g=p:2===p&&(g=3)),-1===g&&(g=0)}let m="";for(p=n+g+1;p<=r;++p)p!==r&&e.charCodeAt(p)!==o||(m+=0===m.length?"..":"\\..");return l+=g,m.length>0?`${m}${s.slice(l,h)}`:(s.charCodeAt(l)===o&&++l,s.slice(l,h))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=f.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===o){if(t.charCodeAt(1)===o){const e=t.charCodeAt(2);if(63!==e&&e!==n)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(g(t.charCodeAt(0))&&t.charCodeAt(1)===a&&t.charCodeAt(2)===o)return`\\\\?\\${t}`;return e},dirname(e){c(e,"path");const t=e.length;if(0===t)return".";let i=-1,s=0;const n=e.charCodeAt(0);if(1===t)return d(n)?e:".";if(d(n)){if(i=s=1,d(e.charCodeAt(1))){let n=2,r=n;for(;n<t&&!d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&d(e.charCodeAt(n));)n++;if(n<t&&n!==r){for(r=n;n<t&&!d(e.charCodeAt(n));)n++;if(n===t)return e;n!==r&&(i=s=n+1)}}}}else g(n)&&e.charCodeAt(1)===a&&(i=t>2&&d(e.charCodeAt(2))?3:2,s=i);let r=-1,o=!0;for(let a=t-1;a>=s;--a)if(d(e.charCodeAt(a))){if(!o){r=a;break}}else o=!1;if(-1===r){if(-1===i)return".";r=i}return e.slice(0,r)},basename(e,t){void 0!==t&&c(t,"suffix"),c(e,"path");let i,s=0,n=-1,r=!0;if(e.length>=2&&g(e.charCodeAt(0))&&e.charCodeAt(1)===a&&(s=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(i=e.length-1;i>=s;--i){const l=e.charCodeAt(i);if(d(l)){if(!r){s=i+1;break}}else-1===a&&(r=!1,a=i+1),o>=0&&(l===t.charCodeAt(o)?-1===--o&&(n=i):(o=-1,n=a))}return s===n?n=a:-1===n&&(n=e.length),e.slice(s,n)}for(i=e.length-1;i>=s;--i)if(d(e.charCodeAt(i))){if(!r){s=i+1;break}}else-1===n&&(r=!1,n=i+1);return-1===n?"":e.slice(s,n)},extname(e){c(e,"path");let t=0,i=-1,s=0,r=-1,o=!0,l=0;e.length>=2&&e.charCodeAt(1)===a&&g(e.charCodeAt(0))&&(t=s=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(d(t)){if(!o){s=a+1;break}}else-1===r&&(o=!1,r=a+1),t===n?-1===i?i=a:1!==l&&(l=1):-1!==i&&(l=-1)}return-1===i||-1===r||0===l||1===l&&i===r-1&&i===s+1?"":e.slice(i,r)},format:m.bind(null,"\\"),parse(e){c(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let s=0,r=e.charCodeAt(0);if(1===i)return d(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(d(r)){if(s=1,d(e.charCodeAt(1))){let t=2,n=t;for(;t<i&&!d(e.charCodeAt(t));)t++;if(t<i&&t!==n){for(n=t;t<i&&d(e.charCodeAt(t));)t++;if(t<i&&t!==n){for(n=t;t<i&&!d(e.charCodeAt(t));)t++;t===i?s=t:t!==n&&(s=t+1)}}}}else if(g(r)&&e.charCodeAt(1)===a){if(i<=2)return t.root=t.dir=e,t;if(s=2,d(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;s=3}}s>0&&(t.root=e.slice(0,s));let o=-1,l=s,h=-1,u=!0,p=e.length-1,m=0;for(;p>=s;--p)if(r=e.charCodeAt(p),d(r)){if(!u){l=p+1;break}}else-1===h&&(u=!1,h=p+1),r===n?-1===o?o=p:1!==m&&(m=1):-1!==o&&(m=-1);return-1!==h&&(-1===o||0===m||1===m&&o===h-1&&o===l+1?t.base=t.name=e.slice(l,h):(t.name=e.slice(l,o),t.base=e.slice(l,h),t.ext=e.slice(o,h))),t.dir=l>0&&l!==s?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},_=(()=>{if(h){const e=/\\/g;return()=>{const t=s.bJ().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>s.bJ()})(),v={resolve(...e){let t="",i=!1;for(let s=e.length-1;s>=-1&&!i;s--){const n=s>=0?e[s]:_();c(n,`paths[${s}]`),0!==n.length&&(t=`${n}/${t}`,i=n.charCodeAt(0)===r)}return t=p(t,!i,"/",u),i?`/${t}`:t.length>0?t:"."},normalize(e){if(c(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===r,i=e.charCodeAt(e.length-1)===r;return 0===(e=p(e,!t,"/",u)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(c(e,"path"),e.length>0&&e.charCodeAt(0)===r),join(...e){if(0===e.length)return".";let t;for(let i=0;i<e.length;++i){const s=e[i];c(s,"path"),s.length>0&&(void 0===t?t=s:t+=`/${s}`)}return void 0===t?".":v.normalize(t)},relative(e,t){if(c(e,"from"),c(t,"to"),e===t)return"";if((e=v.resolve(e))===(t=v.resolve(t)))return"";const i=e.length,s=i-1,n=t.length-1,o=s<n?s:n;let a=-1,l=0;for(;l<o;l++){const i=e.charCodeAt(1+l);if(i!==t.charCodeAt(1+l))break;i===r&&(a=l)}if(l===o)if(n>o){if(t.charCodeAt(1+l)===r)return t.slice(1+l+1);if(0===l)return t.slice(1+l)}else s>o&&(e.charCodeAt(1+l)===r?a=l:0===l&&(a=0));let h="";for(l=1+a+1;l<=i;++l)l!==i&&e.charCodeAt(l)!==r||(h+=0===h.length?"..":"/..");return`${h}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(c(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===r;let i=-1,s=!0;for(let n=e.length-1;n>=1;--n)if(e.charCodeAt(n)===r){if(!s){i=n;break}}else s=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&c(t,"ext"),c(e,"path");let i,s=0,n=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(i=e.length-1;i>=0;--i){const c=e.charCodeAt(i);if(c===r){if(!o){s=i+1;break}}else-1===l&&(o=!1,l=i+1),a>=0&&(c===t.charCodeAt(a)?-1===--a&&(n=i):(a=-1,n=l))}return s===n?n=l:-1===n&&(n=e.length),e.slice(s,n)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===r){if(!o){s=i+1;break}}else-1===n&&(o=!1,n=i+1);return-1===n?"":e.slice(s,n)},extname(e){c(e,"path");let t=-1,i=0,s=-1,o=!0,a=0;for(let l=e.length-1;l>=0;--l){const c=e.charCodeAt(l);if(c!==r)-1===s&&(o=!1,s=l+1),c===n?-1===t?t=l:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){i=l+1;break}}return-1===t||-1===s||0===a||1===a&&t===s-1&&t===i+1?"":e.slice(t,s)},format:m.bind(null,"/"),parse(e){c(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===r;let s;i?(t.root="/",s=1):s=0;let o=-1,a=0,l=-1,h=!0,d=e.length-1,u=0;for(;d>=s;--d){const t=e.charCodeAt(d);if(t!==r)-1===l&&(h=!1,l=d+1),t===n?-1===o?o=d:1!==u&&(u=1):-1!==o&&(u=-1);else if(!h){a=d+1;break}}if(-1!==l){const s=0===a&&i?1:a;-1===o||0===u||1===u&&o===l-1&&o===a+1?t.base=t.name=e.slice(s,l):(t.name=e.slice(s,o),t.base=e.slice(s,l),t.ext=e.slice(o,l))}return a>0?t.dir=e.slice(0,a-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};v.win32=f.win32=f,v.posix=f.posix=v;const C=h?f.normalize:v.normalize,b=h?f.join:v.join,E=h?f.resolve:v.resolve,S=h?f.relative:v.relative,y=h?f.dirname:v.dirname,w=h?f.basename:v.basename,L=h?f.extname:v.extname,R=h?f.sep:v.sep},98067:(e,t,i)=>{"use strict";i.d(t,{BH:()=>D,Fr:()=>I,H8:()=>W,HZ:()=>k,OS:()=>F,UP:()=>G,_p:()=>P,cm:()=>B,gm:()=>V,ib:()=>x,j9:()=>T,lg:()=>A,m0:()=>j,nr:()=>z,uF:()=>L,un:()=>N,zx:()=>R});var s=i(78209);const n="en";let r,o,a=!1,l=!1,c=!1,h=!1,d=!1,u=!1,g=!1,p=!1,m=!1,f=!1,_=n,v=null,C=null;const b=globalThis;let E;"undefined"!==typeof b.vscode&&"undefined"!==typeof b.vscode.process?E=b.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(E=process);const S="string"===typeof E?.versions?.electron,y=S&&"renderer"===E?.type;if("object"===typeof E){a="win32"===E.platform,l="darwin"===E.platform,c="linux"===E.platform,h=c&&!!E.env.SNAP&&!!E.env.SNAP_REVISION,g=S,m=!!E.env.CI||!!E.env.BUILD_ARTIFACTSTAGINGDIRECTORY,r=n,_=n;const e=E.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);r=t.userLocale,v=t.osLocale,_=t.resolvedLanguage||n,C=t.languagePack?.translationsConfigFile}catch(K){}d=!0}else"object"!==typeof navigator||y?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,p=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=o.indexOf("Linux")>=0,f=o?.indexOf("Mobi")>=0,u=!0,_=s.i8()||n,r=navigator.language.toLowerCase(),v=r);let w=0;l?w=1:a?w=3:c&&(w=2);const L=a,R=l,T=c,x=d,k=u,A=u&&"function"===typeof b.importScripts?b.origin:void 0,N=p,I=f,O=o,D=_,M="function"===typeof b.postMessage&&!b.importScripts,P=(()=>{if(M){const e=[];b.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,s=e.length;i<s;i++){const s=e[i];if(s.id===t.data.vscodeScheduleAsyncWork)return e.splice(i,1),void s.callback()}}));let t=0;return i=>{const s=++t;e.push({id:s,callback:i}),b.postMessage({vscodeScheduleAsyncWork:s},"*")}}return e=>setTimeout(e)})(),F=l||p?2:a?1:3;let U=!0,H=!1;function B(){if(!H){H=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);U=513===t[0]}return U}const W=!!(O&&O.indexOf("Chrome")>=0),V=!!(O&&O.indexOf("Firefox")>=0),z=!!(!W&&O&&O.indexOf("Safari")>=0),G=!!(O&&O.indexOf("Edg/")>=0),j=!!(O&&O.indexOf("Android")>=0)},59911:(e,t,i)=>{"use strict";i.d(t,{_K:()=>a,bJ:()=>o,iD:()=>l});var s=i(98067);let n;const r=globalThis.vscode;if("undefined"!==typeof r&&"undefined"!==typeof r.process){const e=r.process;n={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else n="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return s.uF?"win32":s.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=n.cwd,a=n.env,l=n.platform},92719:(e,t,i)=>{"use strict";var s;i.d(t,{Q:()=>s}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),s=Math.min(e.end,t.end);return s-i<=0?{start:0,end:0}:{start:i,end:s}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,s){return!i(t(e,s))},e.relativeComplement=function(e,t){const s=[],n={start:e.start,end:Math.min(t.start,e.end)},r={start:Math.max(t.end,e.start),end:e.end};return i(n)||s.push(n),i(r)||s.push(r),s}}(s||(s={}))},89403:(e,t,i)=>{"use strict";i.d(t,{B6:()=>y,Fd:()=>v,LC:()=>m,P8:()=>p,Pi:()=>g,er:()=>d,iZ:()=>C,n4:()=>u,o1:()=>b,pD:()=>f,su:()=>c,uJ:()=>_});var s=i(79326),n=i(36456),r=i(74027),o=i(98067),a=i(91508),l=i(79400);function c(e){return(0,l.I)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===n.ny.file)return s._1(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(E(e.authority,t.authority))return s._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return r.SA.basename(e.path)}extname(e){return r.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===n.ny.file?t=l.r.file(r.pD(c(e))).path:(t=r.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===n.ny.file?l.r.file(r.S8(c(e))).path:r.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!E(e.authority,t.authority))return;if(e.scheme===n.ny.file){const i=r.V8(c(e),c(t));return o.uF?s.TH(i):i}let i=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,a.length);e<t&&(i.charCodeAt(e)===a.charCodeAt(e)||i.charAt(e).toLowerCase()===a.charAt(e).toLowerCase());e++);i=a.substr(0,e)+i.substr(e)}return r.SA.relative(i,a)}resolvePath(e,t){if(e.scheme===n.ny.file){const i=l.r.file(r.hd(c(e),t));return e.with({authority:i.authority,path:i.path})}return t=s.kb(t),e.with({path:r.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,a.Q_)(e,t)}hasTrailingPathSeparator(e,t=r.Vn){if(e.scheme===n.ny.file){const i=c(e);return i.length>s.Zn(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=r.Vn){return S(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=r.Vn){let i=!1;if(e.scheme===n.ny.file){const n=c(e);i=void 0!==n&&n.length===s.Zn(n).length&&n[n.length-1]===t}else{t="/";const s=e.path;i=1===s.length&&47===s.charCodeAt(s.length-1)}return i||S(e,t)?e:e.with({path:e.path+"/"})}}const d=new h((()=>!1)),u=(new h((e=>e.scheme!==n.ny.file||!o.j9)),new h((e=>!0)),d.isEqual.bind(d)),g=(d.isEqualOrParent.bind(d),d.getComparisonKey.bind(d),d.basenameOrAuthority.bind(d)),p=d.basename.bind(d),m=d.extname.bind(d),f=d.dirname.bind(d),_=d.joinPath.bind(d),v=d.normalizePath.bind(d),C=d.relativePath.bind(d),b=d.resolvePath.bind(d),E=(d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),S=d.hasTrailingPathSeparator.bind(d);d.removeTrailingPathSeparator.bind(d),d.addTrailingPathSeparator.bind(d);var y;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,s]=e.split(":");t&&s&&i.set(t,s)}));const s=t.path.substring(0,t.path.indexOf(";"));return s&&i.set(e.META_DATA_MIME,s),i}}(y||(y={}))},49353:(e,t,i)=>{"use strict";i.d(t,{yE:()=>o});var s=i(41234),n=i(5662);class r{constructor(e,t,i,s,n,r,o){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,i|=0,s|=0,n|=0,r|=0,o|=0),this.rawScrollLeft=s,this.rawScrollTop=o,t<0&&(t=0),s+t>i&&(s=i-t),s<0&&(s=0),n<0&&(n=0),o+n>r&&(o=r-n),o<0&&(o=0),this.width=t,this.scrollWidth=i,this.scrollLeft=s,this.height=n,this.scrollHeight=r,this.scrollTop=o}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new r(this._forceIntegerValues,"undefined"!==typeof e.width?e.width:this.width,"undefined"!==typeof e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,"undefined"!==typeof e.height?e.height:this.height,"undefined"!==typeof e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new r(this._forceIntegerValues,this.width,this.scrollWidth,"undefined"!==typeof e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,"undefined"!==typeof e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,s=this.scrollWidth!==e.scrollWidth,n=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:s,scrollLeftChanged:n,heightChanged:r,scrollHeightChanged:o,scrollTopChanged:a}}}class o extends n.jG{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new s.vl),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new r(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const i=this._state.withScrollDimensions(e,t);this._setState(i,Boolean(this._smoothScrolling)),this._smoothScrolling?.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let s;s=t?new c(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=s}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=c.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}hasPendingScrollAnimation(){return Boolean(this._smoothScrolling)}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function l(e,t){const i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}class c{constructor(e,t,i,s){this.from=e,this.to=t,this.duration=s,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let o,a;return e<t?(o=e+.75*i,a=t-.75*i):(o=e-.75*i,a=t+.75*i),s=l(e,o),n=l(a,t),r=.33,function(e){return e<r?s(e/r):n((e-r)/(1-r))}}var s,n,r;return l(e,t)}dispose(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){const t=(e-this.startTime)/this.duration;if(t<1){const e=this.scrollLeft(t),i=this.scrollTop(t);return new a(e,i,!1)}return new a(this.to.scrollLeft,this.to.scrollTop,!0)}combine(e,t,i){return c.start(e,t,i)}static start(e,t,i){i+=10;const s=Date.now()-10;return new c(e,t,s,i)}}},42291:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var s,n=i(91508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(s||(s={})),function(e){const t="error",i="warning",s="info";e.fromValue=function(r){return r?n.Q_(t,r)?e.Error:n.Q_(i,r)||n.Q_("warn",r)?e.Warning:n.Q_(s,r)?e.Info:e.Ignore:e.Ignore},e.toString=function(n){switch(n){case e.Error:return t;case e.Warning:return i;case e.Info:return s;default:return"ignore"}}}(s||(s={}));const r=s},78381:(e,t,i)=>{"use strict";i.d(t,{W:()=>n});const s=globalThis.performance&&"function"===typeof globalThis.performance.now;class n{static create(e){return new n(e)}constructor(e){this._now=s&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},91508:(e,t,i)=>{"use strict";i.d(t,{$X:()=>q,AV:()=>r,BO:()=>g,Bm:()=>p,Bq:()=>d,DB:()=>T,E_:()=>G,GP:()=>a,HG:()=>b,LJ:()=>M,LU:()=>Z,Lv:()=>x,MV:()=>W,NB:()=>u,OS:()=>f,Q_:()=>A,Qp:()=>I,S8:()=>re,Ss:()=>Q,UD:()=>y,UU:()=>E,Vi:()=>O,W1:()=>L,Wd:()=>se,Wv:()=>k,Z5:()=>F,_J:()=>Y,aC:()=>K,bm:()=>h,eY:()=>_,en:()=>C,ih:()=>c,iy:()=>B,jy:()=>l,km:()=>H,lF:()=>w,lT:()=>S,m:()=>V,ne:()=>$,ns:()=>N,pc:()=>D,r_:()=>X,tk:()=>ee,tl:()=>oe,uz:()=>v,wB:()=>m,y_:()=>ae,zY:()=>J,z_:()=>P,zd:()=>R});var s=i(81788),n=i(91090);function r(e){return!e||"string"!==typeof e||0===e.trim().length}const o=/{(\d+)}/g;function a(e,...t){return 0===t.length?e:e.replace(o,(function(e,i){const s=parseInt(i,10);return isNaN(s)||s<0||s>=t.length?e:t[s]}))}function l(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function c(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function h(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d(e,t=" "){return g(u(e,t),t)}function u(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let s=0;for(;e.indexOf(t,s)===s;)s+=i;return e.substring(s)}function g(e,t){if(!e||!t)return e;const i=t.length,s=e.length;if(0===i||0===s)return e;let n=s,r=-1;for(;r=e.lastIndexOf(t,n-1),-1!==r&&r+i===n;){if(0===r)return"";n=r}return e.substring(0,n)}function p(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function m(e){return e.replace(/\*/g,"")}function f(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=h(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let s="";return i.global&&(s+="g"),i.matchCase||(s+="i"),i.multiline&&(s+="m"),i.unicode&&(s+="u"),new RegExp(e,s)}function _(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function v(e){return e.split(/\r\n|\r|\n/)}function C(e){const t=[],i=e.split(/(\r\n|\r|\n)/);for(let s=0;s<Math.ceil(i.length/2);s++)t.push(i[2*s]+(i[2*s+1]??""));return t}function b(e){for(let t=0,i=e.length;t<i;t++){const i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function E(e,t=0,i=e.length){for(let s=t;s<i;s++){const i=e.charCodeAt(s);if(32!==i&&9!==i)return e.substring(t,s)}return e.substring(t,i)}function S(e,t=e.length-1){for(let i=t;i>=0;i--){const t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1}function y(e,t){return e<t?-1:e>t?1:0}function w(e,t,i=0,s=e.length,n=0,r=t.length){for(;i<s&&n<r;i++,n++){const s=e.charCodeAt(i),r=t.charCodeAt(n);if(s<r)return-1;if(s>r)return 1}const o=s-i,a=r-n;return o<a?-1:o>a?1:0}function L(e,t){return R(e,t,0,e.length,0,t.length)}function R(e,t,i=0,s=e.length,n=0,r=t.length){for(;i<s&&n<r;i++,n++){let o=e.charCodeAt(i),a=t.charCodeAt(n);if(o===a)continue;if(o>=128||a>=128)return w(e.toLowerCase(),t.toLowerCase(),i,s,n,r);x(o)&&(o-=32),x(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=s-i,a=r-n;return o<a?-1:o>a?1:0}function T(e){return e>=48&&e<=57}function x(e){return e>=97&&e<=122}function k(e){return e>=65&&e<=90}function A(e,t){return e.length===t.length&&0===R(e,t)}function N(e,t){const i=t.length;return!(t.length>e.length)&&0===R(e,t,0,i)}function I(e,t){const i=Math.min(e.length,t.length);let s;for(s=0;s<i;s++)if(e.charCodeAt(s)!==t.charCodeAt(s))return s;return i}function O(e,t){const i=Math.min(e.length,t.length);let s;const n=e.length-1,r=t.length-1;for(s=0;s<i;s++)if(e.charCodeAt(n-s)!==t.charCodeAt(r-s))return s;return i}function D(e){return 55296<=e&&e<=56319}function M(e){return 56320<=e&&e<=57343}function P(e,t){return t-56320+(e-55296<<10)+65536}function F(e,t,i){const s=e.charCodeAt(i);if(D(s)&&i+1<t){const t=e.charCodeAt(i+1);if(M(t))return P(s,t)}return s}class U{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const i=e.charCodeAt(t-1);if(M(i)&&t>1){const s=e.charCodeAt(t-2);if(D(s))return P(s,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=F(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class H{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new U(e,t)}nextGraphemeLength(){const e=ie.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const i=t.offset,n=e.getGraphemeBreakType(t.nextCodePoint());if(te(s,n)){t.setOffset(i);break}s=n}return t.offset-i}prevGraphemeLength(){const e=ie.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const i=t.offset,n=e.getGraphemeBreakType(t.prevCodePoint());if(te(n,s)){t.setOffset(i);break}s=n}return i-t.offset}eol(){return this._iterator.eol()}}function B(e,t){return new H(e,t).nextGraphemeLength()}function W(e,t){return new H(e,t).prevGraphemeLength()}function V(e,t){t>0&&M(e.charCodeAt(t))&&t--;const i=t+B(e,t);return[i-W(e,i),i]}let z;function G(e){return z||(z=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),z.test(e)}const j=/^[\t\n\r\x20-\x7E]*$/;function K(e){return j.test(e)}const Y=/[\u2028\u2029]/;function q(e){return Y.test(e)}function $(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Q(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const X=String.fromCharCode(65279);function Z(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function J(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function ee(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function te(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class ie{static{this._INSTANCE=null}static getInstance(){return ie._INSTANCE||(ie._INSTANCE=new ie),ie._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let s=1;for(;s<=i;)if(e<t[3*s])s*=2;else{if(!(e>t[3*s+1]))return t[3*s+2];s=2*s+1}return 0}}function se(e,t){if(0===e)return 0;const i=function(e,t){const i=new U(t,e);let s=i.prevCodePoint();for(;ne(s)||65039===s||8419===s;){if(0===i.offset)return;s=i.prevCodePoint()}if(!Q(s))return;let n=i.offset;if(n>0){8205===i.prevCodePoint()&&(n=i.offset)}return n}(e,t);if(void 0!==i)return i;const s=new U(t,e);return s.prevCodePoint(),s.offset}function ne(e){return 127995<=e&&e<=127999}const re="\xa0";class oe{static{this.ambiguousCharacterData=new n.d((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')))}static{this.cache=new s.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let i=0;i<e.length;i+=2)t.set(e[i],e[i+1]);return t}function i(e,t){if(!e)return t;const i=new Map;for(const[s,n]of e)t.has(s)&&i.set(s,n);return i}const s=this.ambiguousCharacterData.value;let n,r=e.filter((e=>!e.startsWith("_")&&e in s));0===r.length&&(r=["_default"]);for(const a of r){n=i(n,t(s[a]))}const o=function(e,t){const i=new Map(e);for(const[s,n]of t)i.set(s,n);return i}(t(s._common),n);return new oe(o)}))}static getInstance(e){return oe.cache.get(Array.from(e))}static{this._locales=new n.d((()=>Object.keys(oe.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return oe._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}class ae{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(ae.getRawData())),this._data}static isInvisibleCharacter(e){return ae.getData().has(e)}static get codePoints(){return ae.getData()}}},44759:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});const s=Symbol("MicrotaskDelay")},4853:(e,t,i)=>{"use strict";i.d(t,{cB:()=>c});var s=i(91508);class n{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}class r{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){if(46===this._value.charCodeAt(this._to)){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,s.lF)(e,this._value,0,e.length,this._from,this._to):(0,s.zd)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class o{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let t=e.length-1;t>=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,s.lF)(e,this._value,0,e.length,this._from,this._to):(0,s.zd)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class a{constructor(e,t){this._ignorePathCasing=e,this._ignoreQueryAndFragment=t,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new o(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(1===this._states[this._stateIdx])return(0,s.W1)(e,this._value.scheme);if(2===this._states[this._stateIdx])return(0,s.W1)(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);if(4===this._states[this._stateIdx])return(0,s.UD)(e,this._value.query);if(5===this._states[this._stateIdx])return(0,s.UD)(e,this._value.fragment);throw new Error}value(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();if(4===this._states[this._stateIdx])return this._value.query;if(5===this._states[this._stateIdx])return this._value.fragment;throw new Error}}class l{constructor(){this.height=1}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}}class c{static forUris(e=()=>!1,t=()=>!1){return new c(new a(e,t))}static forStrings(){return new c(new n)}static forConfigKeys(){return new c(new r)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let s;this._root||(this._root=new l,this._root.segment=i.value());const n=[];for(s=this._root;;){const e=i.cmp(s.segment);if(e>0)s.left||(s.left=new l,s.left.segment=i.value()),n.push([-1,s]),s=s.left;else if(e<0)s.right||(s.right=new l,s.right.segment=i.value()),n.push([1,s]),s=s.right;else{if(!i.hasNext())break;i.next(),s.mid||(s.mid=new l,s.mid.segment=i.value()),n.push([0,s]),s=s.mid}}const r=s.value;s.value=t,s.key=e;for(let o=n.length-1;o>=0;o--){const e=n[o][1];e.updateHeight();const t=e.balanceFactor();if(t<-1||t>1){const t=n[o][0],i=n[o+1][0];if(1===t&&1===i)n[o][1]=e.rotateLeft();else if(-1===t&&-1===i)n[o][1]=e.rotateRight();else if(1===t&&-1===i)e.right=n[o+1][1]=n[o+1][1].rotateRight(),n[o][1]=e.rotateLeft();else{if(-1!==t||1!==i)throw new Error;e.left=n[o+1][1]=n[o+1][1].rotateLeft(),n[o][1]=e.rotateRight()}if(o>0)switch(n[o-1][0]){case-1:n[o-1][1].left=n[o][1];break;case 1:n[o-1][1].right=n[o][1];break;case 0:n[o-1][1].mid=n[o][1]}else this._root=n[0][1]}}return r}get(e){return this._getNode(e)?.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===t?.value&&void 0===t?.mid)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){const i=this._iter.reset(e),s=[];let n=this._root;for(;n;){const e=i.cmp(n.segment);if(e>0)s.push([-1,n]),n=n.left;else if(e<0)s.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),s.push([0,n]),n=n.mid}}if(n){if(t?(n.left=void 0,n.mid=void 0,n.right=void 0,n.height=1):(n.key=void 0,n.value=void 0),!n.mid&&!n.value)if(n.left&&n.right){const e=this._min(n.right);if(e.key){const{key:t,value:i,segment:s}=e;this._delete(e.key,!1),n.key=t,n.value=i,n.segment=s}}else{const e=n.left??n.right;if(s.length>0){const[t,i]=s[s.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e}}else this._root=e}for(let e=s.length-1;e>=0;e--){const t=s[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),s[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),s[e][1]=t.rotateRight()),e>0)switch(s[e-1][0]){case-1:s[e-1][1].left=s[e][1];break;case 1:s[e-1][1].right=s[e][1];break;case 0:s[e-1][1].mid=s[e][1]}else this._root=s[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,s=this._root;for(;s;){const e=t.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!t.hasNext())break;t.next(),i=s.value||i,s=s.mid}}return s&&s.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){const i=this._iter.reset(e);let s=this._root;for(;s;){const e=i.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!i.hasNext())return s.mid?this._entries(s.mid):t?s.value:void 0;i.next(),s=s.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}},25689:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});var s,n,r=i(10350);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(s||(s={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){const s=t.exec(e.id);if(!s)return i(r.W.error);const[,n,o]=s,a=["codicon","codicon-"+n];return o&&a.push("codicon-modifier-"+o.substring(1)),a}e.asClassNameArray=i,e.asClassName=function(e){return i(e).join(" ")},e.asCSSSelector=function(e){return"."+i(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||s.isThemeColor(e.color))};const n=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=n.exec(e);if(!t)return;const[,i]=t;return{id:i}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let i=e.id;const s=i.lastIndexOf("~");return-1!==s&&(i=i.substring(0,s)),t&&(i=`${i}~${t}`),{id:i}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(n||(n={}))},631:(e,t,i)=>{"use strict";function s(e){return"string"===typeof e}function n(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function r(e){const t=Object.getPrototypeOf(Uint8Array);return"object"===typeof e&&e instanceof t}function o(e){return"number"===typeof e&&!isNaN(e)}function a(e){return!!e&&"function"===typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function c(e){return"undefined"===typeof e}function h(e){return!d(e)}function d(e){return c(e)||null===e}function u(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(d(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"===typeof e}function m(e,t){const i=Math.min(e.length,t.length);for(let s=0;s<i;s++)f(e[s],t[s])}function f(e,t){if(s(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(p(t)){try{if(e instanceof t)return}catch{}if(!d(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}i.d(t,{Et:()=>o,Gv:()=>n,Kg:()=>s,Lm:()=>l,O9:()=>h,Tn:()=>p,b0:()=>c,eU:()=>g,iu:()=>r,j:()=>u,jx:()=>m,xZ:()=>a,z:()=>d})},85152:(e,t,i)=>{"use strict";function s(e){return e<0?0:e>255?255:0|e}function n(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{W:()=>s,j:()=>n})},79400:(e,t,i)=>{"use strict";i.d(t,{I:()=>_,r:()=>d});var s=i(74027),n=i(98067);const r=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;const l="",c="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,i,s,n,h=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,h),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,i||l),this.query=s||l,this.fragment=n||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!r.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,h))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:s,query:n,fragment:r}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===i?i=this.authority:null===i&&(i=l),void 0===s?s=this.path:null===s&&(s=l),void 0===n?n=this.query:null===n&&(n=l),void 0===r?r=this.fragment:null===r&&(r=l),t===this.scheme&&i===this.authority&&s===this.path&&n===this.query&&r===this.fragment?this:new g(t,i,s,n,r)}static parse(e,t=!1){const i=h.exec(e);return i?new g(i[2]||l,E(i[4]||l),E(i[5]||l),E(i[7]||l),E(i[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(n.uF&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){const i=e.indexOf(c,2);-1===i?(t=e.substring(2),e=c):(t=e.substring(2,i),e=e.substring(i)||c)}return new g("file",t,e,l,l)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=n.uF&&"file"===e.scheme?d.file(s.IN.join(_(e,!0),...t)).path:s.SA.join(e.path,...t),e.with({path:i})}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new g(e);return t._formatted=e.external??null,t._fsPath=e._sep===u?e.fsPath??null:null,t}}return e}}const u=n.uF?1:void 0;class g extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,i){let s,n=-1;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||i&&91===o||i&&93===o||i&&58===o)-1!==n&&(s+=encodeURIComponent(e.substring(n,r)),n=-1),void 0!==s&&(s+=e.charAt(r));else{void 0===s&&(s=e.substr(0,r));const t=p[o];void 0!==t?(-1!==n&&(s+=encodeURIComponent(e.substring(n,r)),n=-1),s+=t):-1===n&&(n=r)}}return-1!==n&&(s+=encodeURIComponent(e.substring(n))),void 0!==s?s:e}function f(e){let t;for(let i=0;i<e.length;i++){const s=e.charCodeAt(i);35===s||63===s?(void 0===t&&(t=e.substr(0,i)),t+=p[s]):void 0!==t&&(t+=e[i])}return void 0!==t?t:e}function _(e,t){let i;return i=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,n.uF&&(i=i.replace(/\//g,"\\")),i}function v(e,t){const i=t?f:m;let s="",{scheme:n,authority:r,path:o,query:a,fragment:l}=e;if(n&&(s+=n,s+=":"),(r||"file"===n)&&(s+=c,s+=c),r){let e=r.indexOf("@");if(-1!==e){const t=r.substr(0,e);r=r.substr(e+1),e=t.lastIndexOf(":"),-1===e?s+=i(t,!1,!1):(s+=i(t.substr(0,e),!1,!1),s+=":",s+=i(t.substr(e+1),!1,!0)),s+="@"}r=r.toLowerCase(),e=r.lastIndexOf(":"),-1===e?s+=i(r,!1,!0):(s+=i(r.substr(0,e),!1,!0),s+=r.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}s+=i(o,!0,!1)}return a&&(s+="?",s+=i(a,!1,!1)),l&&(s+="#",s+=t?l:m(l,!1,!1)),s}function C(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}const b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(e){return e.match(b)?e.replace(b,(e=>C(e))):e}},58255:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});const s=function(){if("object"===typeof crypto&&"function"===typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);let e;e="object"===typeof crypto&&"function"===typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e};const t=new Uint8Array(16),i=[];for(let s=0;s<256;s++)i.push(s.toString(16).padStart(2,"0"));return function(){e(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;let s=0,n="";return n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+="-",n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n+=i[t[s++]],n}}()},51929:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SimpleWorkerClient:()=>C,SimpleWorkerServer:()=>S,create:()=>y,logOnceWebWorkerWarning:()=>u});var s=i(64383),n=i(41234),r=i(5662),o=i(36456),a=i(98067),l=i(91508);const c="default",h="$initialize";let d=!1;function u(e){a.HZ&&(d||(d=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class g{constructor(e,t,i,s,n){this.vsWorker=e,this.req=t,this.channel=i,this.method=s,this.args=n,this.type=0}}class p{constructor(e,t,i,s){this.vsWorker=e,this.seq=t,this.res=i,this.err=s,this.type=1}}class m{constructor(e,t,i,s,n){this.vsWorker=e,this.req=t,this.channel=i,this.eventName=s,this.arg=n,this.type=2}}class f{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class _{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class v{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,i){const s=String(++this._lastSentReq);return new Promise(((n,r)=>{this._pendingReplies[s]={resolve:n,reject:r},this._send(new g(this._workerId,s,e,t,i))}))}listen(e,t,i){let s=null;const r=new n.vl({onWillAddFirstListener:()=>{s=String(++this._lastSentReq),this._pendingEmitters.set(s,r),this._send(new m(this._workerId,s,e,t,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(s),this._send(new _(this._workerId,s)),s=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const i={get:(i,s)=>("string"!==typeof s||i[s]||(E(s)?i[s]=t=>this.listen(e,s,t):b(s)?i[s]=this.listen(e,s,void 0):36===s.charCodeAt(0)&&(i[s]=async(...i)=>(await(t?.()),this.sendMessage(e,s,i)))),i[s])};return new Proxy(Object.create(null),i)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;return e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),void t.reject(i)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new p(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,s.cU)(e.detail)),this._send(new p(this._workerId,t,void 0,(0,s.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new f(this._workerId,t,e))}));this._pendingEvents.set(t,i)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let i=0;i<e.args.length;i++)e.args[i]instanceof ArrayBuffer&&t.push(e.args[i]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class C extends r.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,s.dz)(e)}))),this._protocol=new v({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,i)=>this._handleMessage(e,t,i),handleEvent:(e,t,i)=>this._handleEvent(e,t,i)}),this._protocol.setWorkerId(this._worker.getId());let i=null;const n=globalThis.require;"undefined"!==typeof n&&"function"===typeof n.getConfig?i=n.getConfig():"undefined"!==typeof globalThis.requirejs&&(i=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(c,h,[this._worker.getId(),JSON.parse(JSON.stringify(i)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(c,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,i){const s=this._localChannels.get(e);if(!s)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof s[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(s[t].apply(s,i))}catch(n){return Promise.reject(n)}}_handleEvent(e,t,i){const s=this._localChannels.get(e);if(!s)throw new Error(`Missing channel ${e} on main thread`);if(E(t)){const n=s[t].call(s,i);if("function"!==typeof n)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return n}if(b(t)){const i=s[t];if("function"!==typeof i)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return i}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function b(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function E(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class S{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new v({sendMessage:(t,i)=>{e(t,i)},handleMessage:(e,t,i)=>this._handleMessage(e,t,i),handleEvent:(e,t,i)=>this._handleEvent(e,t,i)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,i){if(e===c&&t===h)return this.initialize(i[0],i[1],i[2]);const s=e===c?this._requestHandler:this._localChannels.get(e);if(!s)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof s[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(s[t].apply(s,i))}catch(n){return Promise.reject(n)}}_handleEvent(e,t,i){const s=e===c?this._requestHandler:this._localChannels.get(e);if(!s)throw new Error(`Missing channel ${e} on worker thread`);if(E(t)){const e=s[t].call(s,i);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(b(t)){const e=s[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,s){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${s}.js`).toString(!0);return i(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function y(e){return new S(e,null)}},34918:(e,t,i)=>{"use strict";i.d(t,{K:()=>m});var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of l(t))c.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u={},g={},p=class e{static getOrCreate(t){return g[t]||(g[t]=new e(t)),g[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}load(){return this._loadingTriggered||(this._loadingTriggered=!0,u[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}};function m(e){const t=e.id;u[t]=e,d.languages.register(e);const i=p.getOrCreate(t);d.languages.registerTokensProviderFactory(t,{create:async()=>(await i.load()).language}),d.languages.onLanguageEncountered(t,(async()=>{const e=await i.load();d.languages.setLanguageConfiguration(t,e.conf)}))}},61562:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>i.e(5636).then(i.bind(i,25636))})},94318:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>i.e(9872).then(i.bind(i,99872))})},23304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>i.e(3534).then(i.bind(i,73534))})},59896:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>i.e(654).then(i.bind(i,20654))})},75208:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>i.e(8014).then(i.bind(i,98014))})},51232:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>i.e(6374).then(i.bind(i,36374))})},77888:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>i.e(7206).then(i.bind(i,57206))})},46686:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>i.e(5888).then(i.bind(i,35888))})},27020:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>i.e(2042).then(i.bind(i,62042))}),(0,s.K)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>i.e(2042).then(i.bind(i,62042))})},15600:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>i.e(2518).then(i.bind(i,52518))})},80200:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>i.e(5454).then(i.bind(i,55454))})},87152:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>i.e(2742).then(i.bind(i,32742))})},60352:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>i.e(4534).then(i.bind(i,24534))})},66235:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>i.e(30).then(i.bind(i,80030))})},31474:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>i.e(6012).then(i.bind(i,46012))})},84840:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>i.e(734).then(i.bind(i,734))})},17184:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>i.e(5382).then(i.bind(i,35382))})},74304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>i.e(2854).then(i.bind(i,32854))})},74800:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAngleInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagBracketInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAngleInterpolationBracket))}),(0,s.K)({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagBracketInterpolationBracket))}),(0,s.K)({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationDollar))}),(0,s.K)({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>i.e(118).then(i.bind(i,90118)).then((e=>e.TagAutoInterpolationBracket))})},37954:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>i.e(7692).then(i.bind(i,47692))})},25922:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>i.e(7148).then(i.bind(i,27148))})},46648:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>i.e(110).then(i.bind(i,60110))})},61082:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>i.e(5252).then(i.bind(i,65252))})},19856:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>i.e(3638).then(i.bind(i,13638))})},97884:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>i.e(6554).then(i.bind(i,96554))})},83488:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>i.e(4678).then(i.bind(i,54678))})},3254:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>i.e(9176).then(i.bind(i,99176))})},57680:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>i.e(2726).then(i.bind(i,2726))})},796:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>i.e(7642).then(i.bind(i,77642))})},89336:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>i.e(2350).then(i.bind(i,62350))})},19436:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>i.e(3338).then(i.bind(i,33338))})},40340:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>i.e(9010).then(i.bind(i,99010))})},52894:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>i.e(9728).then(i.bind(i,19728))})},86492:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>i.e(5050).then(i.bind(i,95050))})},73374:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>i.e(9312).then(i.bind(i,79312))})},38320:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>i.e(3478).then(i.bind(i,73478))})},92080:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>i.e(6214).then(i.bind(i,26214))})},57664:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>i.e(1414).then(i.bind(i,51414))})},8868:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>i.e(2994).then(i.bind(i,2994))})},31396:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>i.e(6210).then(i.bind(i,16210))})},18544:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>i.e(7638).then(i.bind(i,97638))})},538:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>i.e(132).then(i.bind(i,40132))})},25064:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>i.e(7118).then(i.bind(i,57118))})},64256:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>i.e(3158).then(i.bind(i,23158))})},32624:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>i.e(4582).then(i.bind(i,84582))})},97360:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>i.e(6342).then(i.bind(i,86342))})},42776:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pla",extensions:[".pla"],loader:()=>i.e(4542).then(i.bind(i,14542))})},97144:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>i.e(9582).then(i.bind(i,49582))})},46304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>i.e(5542).then(i.bind(i,15542))})},58820:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>i.e(4818).then(i.bind(i,4818))})},82560:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>i.e(902).then(i.bind(i,10902))})},74276:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>i.e(9394).then(i.bind(i,29394))})},39866:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>i.e(2372).then(i.bind(i,22372))})},73020:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>i.e(5866).then(i.bind(i,5866))})},71316:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>i.e(6658).then(i.bind(i,86658))})},70492:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>i.e(8986).then(i.bind(i,58986))})},50848:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>i.e(4662).then(i.bind(i,24662))})},59520:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>i.e(3702).then(i.bind(i,23702))})},46576:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>i.e(2182).then(i.bind(i,42182))})},49150:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>i.e(2016).then(i.bind(i,92016))})},33358:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>i.e(3648).then(i.bind(i,3648))})},96716:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>i.e(7946).then(i.bind(i,57946))})},28304:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>i.e(3977).then(i.bind(i,56358))})},14720:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>i.e(7574).then(i.bind(i,67574))})},27734:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>i.e(3048).then(i.bind(i,3048))})},2068:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>i.e(9842).then(i.bind(i,79842))})},71468:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>i.e(8234).then(i.bind(i,98234))})},15482:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>i.e(5988).then(i.bind(i,65988))})},42572:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>i.e(957).then(i.bind(i,53338))})},77668:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>i.e(9778).then(i.bind(i,49778))})},36e3:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>i.e(1321).then(i.bind(i,43702))})},10072:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>i.e(1278).then(i.bind(i,11278))})},48448:(e,t,i)=>{"use strict";var s=i(34918);(0,s.K)({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>i.e(6262).then(i.bind(i,66262))}),(0,s.K)({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>i.e(6262).then(i.bind(i,66262))})},51376:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>i.e(246).then(i.bind(i,10246))})},61764:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>i.e(2162).then(i.bind(i,2162))})},85872:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>i.e(1606).then(i.bind(i,1606))})},42144:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>i.e(1094).then(i.bind(i,51094))})},22362:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>i.e(9748).then(i.bind(i,59748))})},98408:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>i.e(3822).then(i.bind(i,33822))})},61472:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>i.e(7718).then(i.bind(i,77718))})},50576:(e,t,i)=>{"use strict";(0,i(34918).K)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>i.e(4870).then(i.bind(i,84870))})},73157:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(55275);function n(e,t){e instanceof s.D?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}},4983:(e,t,i)=>{"use strict";i.d(t,{u:()=>o});var s=i(5662),n=i(41234),r=i(8597);class o extends s.jG{constructor(e,t){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null;const t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()};let i=!1,s=!1;const n=()=>{if(i&&!s)try{i=!1,s=!0,t()}finally{(0,r.PG)((0,r.zk)(this._referenceDomElement),(()=>{s=!1,n()}))}};this._resizeObserver=new ResizeObserver((t=>{e=t&&t[0]&&t[0].contentRect?{width:t[0].contentRect.width,height:t[0].contentRect.height}:null,i=!0,n()})),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,s=0;t?(i=t.width,s=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,s=this._referenceDomElement.clientHeight),i=Math.max(5,i),s=Math.max(5,s),this._width===i&&this._height===s||(this._width=i,this._height=s,e&&this._onDidChange.fire())}}},28433:(e,t,i)=>{"use strict";i.d(t,{T:()=>p});var s=i(8597),n=i(94106),r=i(41234),o=i(5662),a=i(73157);class l{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class c{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),this._container?.remove(),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");(0,a.M)(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");(0,a.M)(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const s=document.createElement("div");(0,a.M)(s,this._bareFontInfo),s.style.fontStyle="italic",e.appendChild(s);const n=[];for(const r of this._requests){let e;0===r.type&&(e=t),2===r.type&&(e=i),1===r.type&&(e=s),e.appendChild(document.createElement("br"));const o=document.createElement("span");c._render(o,r),e.appendChild(o),n.push(o)}this._container=e,this._testElements=n}static _render(e,t){if(" "===t.chr){let t="\xa0";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){const t=this._requests[e],i=this._testElements[e];t.fulfill(i.offsetWidth/256)}}}var h=i(87908),d=i(74196);class u extends o.jG{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire()}_ensureCache(e){const t=(0,s.Q2)(e);let i=this._cache.get(t);return i||(i=new g,this._cache.set(t,i)),i}_writeToCache(e,t,i){this._ensureCache(e).put(t,i),i.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=e.setTimeout((()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)}),5e3))}_evictUntrustedReadings(e){const t=this._ensureCache(e),i=t.getValues();let s=!1;for(const n of i)n.isTrusted||(s=!0,t.remove(n));s&&this._onDidChange.fire()}readFontInfo(e,t){const i=this._ensureCache(e);if(!i.has(t)){let i=this._actualReadFontInfo(e,t);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new d.YJ({pixelRatio:n.c.getInstance(e).value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,t,i)}return i.get(t)}_createRequest(e,t,i,s){const n=new l(e,t);return i.push(n),s?.push(n),n}_actualReadFontInfo(e,t){const i=[],s=[],r=this._createRequest("n",0,i,s),o=this._createRequest("\uff4d",0,i,null),a=this._createRequest(" ",0,i,s),l=this._createRequest("0",0,i,s),u=this._createRequest("1",0,i,s),g=this._createRequest("2",0,i,s),p=this._createRequest("3",0,i,s),m=this._createRequest("4",0,i,s),f=this._createRequest("5",0,i,s),_=this._createRequest("6",0,i,s),v=this._createRequest("7",0,i,s),C=this._createRequest("8",0,i,s),b=this._createRequest("9",0,i,s),E=this._createRequest("\u2192",0,i,s),S=this._createRequest("\uffeb",0,i,null),y=this._createRequest("\xb7",0,i,s),w=this._createRequest(String.fromCharCode(11825),0,i,null),L="|/-_ilm%";for(let n=0,c=8;n<c;n++)this._createRequest(L.charAt(n),0,i,s),this._createRequest(L.charAt(n),1,i,s),this._createRequest(L.charAt(n),2,i,s);!function(e,t,i){new c(t,i).read(e)}(e,t,i);const R=Math.max(l.width,u.width,g.width,p.width,m.width,f.width,_.width,v.width,C.width,b.width);let T=t.fontFeatureSettings===h.Bc.OFF;const x=s[0].width;for(let n=1,c=s.length;T&&n<c;n++){const e=x-s[n].width;if(e<-.001||e>.001){T=!1;break}}let k=!0;return T&&S.width!==x&&(k=!1),S.width>E.width&&(k=!1),new d.YJ({pixelRatio:n.c.getInstance(e).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:T,typicalHalfwidthCharacterWidth:r.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:k,spaceWidth:a.width,middotWidth:y.width,wsmiddotWidth:w.width,maxDigitWidth:R},!0)}}class g{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map((e=>this._values[e]))}}const p=new u},77163:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});var s=i(41234);const n=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new s.vl,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}}},68792:(e,t,i)=>{"use strict";i.d(t,{$D:()=>s,Eq:()=>b,M0:()=>L,Mz:()=>w,No:()=>y,bs:()=>E});var s,n=i(60413),r=i(8597),o=i(56245),a=i(72962),l=i(5239),c=i(90766),h=i(41234),d=i(5662),u=i(44320),g=i(91508),p=i(69785),m=i(75326),f=i(253),_=i(18801),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};!function(e){e.Tap="-monaco-textarea-synthetic-tap"}(s||(s={}));const b={forceCopyWithSyntaxHighlighting:!1};class E{static{this.INSTANCE=new E}constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}class S{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){const t={text:e=e||"",replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}let y=class extends d.jG{get textAreaState(){return this._textAreaState}constructor(e,t,i,s,n,r){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=s,this._accessibilityService=n,this._logService=r,this._onFocus=this._register(new h.vl),this.onFocus=this._onFocus.event,this._onBlur=this._register(new h.vl),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new h.vl),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new h.vl),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new h.vl),this.onCut=this._onCut.event,this._onPaste=this._register(new h.vl),this.onPaste=this._onPaste.event,this._onType=this._register(new h.vl),this.onType=this._onType.event,this._onCompositionStart=this._register(new h.vl),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new h.vl),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new h.vl),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new h.vl),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new d.HE),this._asyncTriggerCut=this._register(new c.uC((()=>this._onCut.fire()),0)),this._textAreaState=p._O.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(h.Jh.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new c.uC((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)):this._asyncFocusGainWriteScreenReaderContent.clear()}))),this._hasFocus=!1,this._currentComposition=null;let o=null;this._register(this._textArea.onKeyDown((e=>{const t=new a.Z(e);(114===t.keyCode||this._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),o=t,this._onKeyDown.fire(t)}))),this._register(this._textArea.onKeyUp((e=>{const t=new a.Z(e);this._onKeyUp.fire(t)}))),this._register(this._textArea.onCompositionStart((e=>{p.Hf&&console.log("[compositionstart]",e);const t=new S;if(this._currentComposition)this._currentComposition=t;else{if(this._currentComposition=t,2===this._OS&&o&&o.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"===o.code||"ArrowLeft"===o.code))return p.Hf&&console.log("[compositionstart] Handling long press case on macOS + arrow key",e),t.handleCompositionUpdate("x"),void this._onCompositionStart.fire({data:e.data});this._browser.isAndroid,this._onCompositionStart.fire({data:e.data})}}))),this._register(this._textArea.onCompositionUpdate((e=>{p.Hf&&console.log("[compositionupdate]",e);const t=this._currentComposition;if(!t)return;if(this._browser.isAndroid){const t=p._O.readFromTextArea(this._textArea,this._textAreaState),i=p._O.deduceAndroidCompositionInput(this._textAreaState,t);return this._textAreaState=t,this._onType.fire(i),void this._onCompositionUpdate.fire(e)}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionUpdate.fire(e)}))),this._register(this._textArea.onCompositionEnd((e=>{p.Hf&&console.log("[compositionend]",e);const t=this._currentComposition;if(!t)return;if(this._currentComposition=null,this._browser.isAndroid){const e=p._O.readFromTextArea(this._textArea,this._textAreaState),t=p._O.deduceAndroidCompositionInput(this._textAreaState,e);return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionEnd.fire()}))),this._register(this._textArea.onInput((e=>{if(p.Hf&&console.log("[input]",e),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const t=p._O.readFromTextArea(this._textArea,this._textAreaState),i=p._O.deduceInput(this._textAreaState,t,2===this._OS);(0!==i.replacePrevCharCnt||1!==i.text.length||!g.pc(i.text.charCodeAt(0))&&127!==i.text.charCodeAt(0))&&(this._textAreaState=t,""===i.text&&0===i.replacePrevCharCnt&&0===i.replaceNextCharCnt&&0===i.positionDelta||this._onType.fire(i))}))),this._register(this._textArea.onCut((e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()}))),this._register(this._textArea.onCopy((e=>{this._ensureClipboardGetsEditorSelection(e)}))),this._register(this._textArea.onPaste((e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),e.preventDefault(),!e.clipboardData)return;let[t,i]=w.getTextData(e.clipboardData);t&&(i=i||E.INSTANCE.get(t),this._onPaste.fire({text:t,metadata:i}))}))),this._register(this._textArea.onFocus((()=>{const e=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!e&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new c.uC((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())}))),this._register(this._textArea.onBlur((()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)}))),this._register(this._textArea.onSyntheticTap((()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())})))}_installSelectionChangeListener(){let e=0;return r.ko(this._textArea.ownerDocument,"selectionchange",(t=>{if(l.p.onSelectionChange(),!this._hasFocus)return;if(this._currentComposition)return;if(!this._browser.isChrome)return;const i=Date.now(),s=i-e;if(e=i,s<5)return;const n=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),n<100)return;if(!this._textAreaState.selection)return;const r=this._textArea.getValue();if(this._textAreaState.value!==r)return;const o=this._textArea.getSelectionStart(),a=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===o&&this._textAreaState.selectionEnd===a)return;const c=this._textAreaState.deduceEditorPosition(o),h=this._host.deduceModelPosition(c[0],c[1],c[2]),d=this._textAreaState.deduceEditorPosition(a),u=this._host.deduceModelPosition(d[0],d[1],d[2]),g=new m.L(h.lineNumber,h.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(g)}))}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeNativeTextAreaContent(e){!this._accessibilityService.isScreenReaderOptimized()&&"render"===e||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${e})`),this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};E.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,i),e.preventDefault(),e.clipboardData&&w.setTextData(e.clipboardData,t.text,t.html,i)}};y=v([C(4,f.j),C(5,_.rr)],y);const w={getTextData(e){const t=e.getData(u.K.text);let i=null;const s=e.getData("vscode-editor-data");if("string"===typeof s)try{i=JSON.parse(s),1!==i.version&&(i=null)}catch(n){}if(0===t.length&&null===i&&e.files.length>0){return[Array.prototype.slice.call(e.files,0).map((e=>e.name)).join("\n"),null]}return[t,i]},setTextData(e,t,i,s){e.setData(u.K.text,t),"string"===typeof i&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(s))}};class L extends d.jG{get ownerDocument(){return this._actual.ownerDocument}constructor(e){super(),this._actual=e,this.onKeyDown=this._register(new o.f(this._actual,"keydown")).event,this.onKeyUp=this._register(new o.f(this._actual,"keyup")).event,this.onCompositionStart=this._register(new o.f(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new o.f(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new o.f(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new o.f(this._actual,"beforeinput")).event,this.onInput=this._register(new o.f(this._actual,"input")).event,this.onCut=this._register(new o.f(this._actual,"cut")).event,this.onCopy=this._register(new o.f(this._actual,"copy")).event,this.onPaste=this._register(new o.f(this._actual,"paste")).event,this.onFocus=this._register(new o.f(this._actual,"focus")).event,this.onBlur=this._register(new o.f(this._actual,"blur")).event,this._onSyntheticTap=this._register(new h.vl),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown((()=>l.p.onKeyDown()))),this._register(this.onBeforeInput((()=>l.p.onBeforeInput()))),this._register(this.onInput((()=>l.p.onInput()))),this._register(this.onKeyUp((()=>l.p.onKeyUp()))),this._register(r.ko(this._actual,s.Tap,(()=>this._onSyntheticTap.fire())))}hasFocus(){const e=r.jG(this._actual);return e?e.activeElement===this._actual:!!this._actual.isConnected&&r.bq()===this._actual}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const s=this._actual;let o=null;const a=r.jG(s);o=a?a.activeElement:r.bq();const l=r.zk(o),c=o===s,h=s.selectionStart,d=s.selectionEnd;if(c&&h===t&&d===i)n.gm&&l.parent!==l&&s.focus();else{if(c)return this.setIgnoreSelectionChangeTime("setSelectionRange"),s.setSelectionRange(t,i),void(n.gm&&l.parent!==l&&s.focus());try{const e=r.zK(s);this.setIgnoreSelectionChangeTime("setSelectionRange"),s.focus(),s.setSelectionRange(t,i),r.wk(s,e)}catch(u){}}}}},69785:(e,t,i)=>{"use strict";i.d(t,{Al:()=>a,Hf:()=>r,_O:()=>o});var s=i(91508),n=i(36677);const r=!1;class o{static{this.EMPTY=new o("",0,0,null,void 0)}constructor(e,t,i,s,n){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selection=s,this.newlineCountBeforeSelection=n}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e,t){const i=e.getValue(),s=e.getSelectionStart(),n=e.getSelectionEnd();let r;if(t){i.substring(0,s)===t.value.substring(0,t.selectionStart)&&(r=t.newlineCountBeforeSelection)}return new o(i,s,n,null,r)}collapseSelection(){return this.selectionStart===this.value.length?this:new o(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(e,t,i){r&&console.log(`writeToTextArea ${e}: ${this.toString()}`),t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selection?.getStartPosition()??null,t,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selection?.getEndPosition()??null,t,1)}const t=this.value.substring(this.selectionStart,e);if(-1===t.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selection?.getStartPosition()??null,t,1);const i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selection?.getEndPosition()??null,i,-1)}_finishDeduceEditorPosition(e,t,i){let s=0,n=-1;for(;-1!==(n=t.indexOf("\n",n+1));)s++;return[e,i*t.length,s]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};r&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`));const n=Math.min(s.Qp(e.value,t.value),e.selectionStart,t.selectionStart),o=Math.min(s.Vi(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd),a=e.value.substring(n,e.value.length-o),l=t.value.substring(n,t.value.length-o),c=e.selectionStart-n,h=e.selectionEnd-n,d=t.selectionStart-n,u=t.selectionEnd-n;if(r&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${c}, selectionEnd: ${h}`),console.log(`AFTER DIFFING CURRENT STATE: <${l}>, selectionStart: ${d}, selectionEnd: ${u}`)),d===u){const t=e.selectionStart-n;return r&&console.log(`REMOVE PREVIOUS: ${t} chars`),{text:l,replacePrevCharCnt:t,replaceNextCharCnt:0,positionDelta:0}}return{text:l,replacePrevCharCnt:h-c,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(r&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`)),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(s.Qp(e.value,t.value),e.selectionEnd),n=Math.min(s.Vi(e.value,t.value),e.value.length-e.selectionEnd),o=e.value.substring(i,e.value.length-n),a=t.value.substring(i,t.value.length-n),l=e.selectionStart-i,c=e.selectionEnd-i,h=t.selectionStart-i,d=t.selectionEnd-i;return r&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${o}>, selectionStart: ${l}, selectionEnd: ${c}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${h}, selectionEnd: ${d}`)),{text:a,replacePrevCharCnt:c,replaceNextCharCnt:o.length-c,positionDelta:d-a.length}}}class a{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,s=i+1,r=i+t;return new n.Q(s,1,r+1,1)}static fromEditorSelection(e,t,i,s){const r=500,l=a._getPageOfLine(t.startLineNumber,i),c=a._getRangeForPage(l,i),h=a._getPageOfLine(t.endLineNumber,i),d=a._getRangeForPage(h,i);let u=c.intersectRanges(new n.Q(1,1,t.startLineNumber,t.startColumn));if(s&&e.getValueLengthInRange(u,1)>r){const t=e.modifyPosition(u.getEndPosition(),-500);u=n.Q.fromPositions(t,u.getEndPosition())}const g=e.getValueInRange(u,1),p=e.getLineCount(),m=e.getLineMaxColumn(p);let f=d.intersectRanges(new n.Q(t.endLineNumber,t.endColumn,p,m));if(s&&e.getValueLengthInRange(f,1)>r){const t=e.modifyPosition(f.getStartPosition(),r);f=n.Q.fromPositions(f.getStartPosition(),t)}const _=e.getValueInRange(f,1);let v;if(l===h||l+1===h)v=e.getValueInRange(t,1);else{const i=c.intersectRanges(t),s=d.intersectRanges(t);v=e.getValueInRange(i,1)+String.fromCharCode(8230)+e.getValueInRange(s,1)}return s&&v.length>1e3&&(v=v.substring(0,r)+String.fromCharCode(8230)+v.substring(v.length-r,v.length)),new o(g+v+_,g.length,g.length+v.length,t,u.endLineNumber-u.startLineNumber)}}},36999:(e,t,i)=>{"use strict";i.d(t,{Yh:()=>k,QM:()=>w});var s=i(78209),n=i(60413),r=i(631),o=i(11007),a=i(31450),l=i(80301),c=i(32799),h=i(83069),d=i(36677);class u{static columnSelect(e,t,i,s,n,r){const o=Math.abs(n-i)+1,a=i>n,l=s>r,u=s<r,g=[];for(let p=0;p<o;p++){const n=i+(a?-p:p),o=e.columnFromVisibleColumn(t,n,s),m=e.columnFromVisibleColumn(t,n,r),f=e.visibleColumnFromColumn(t,new h.y(n,o)),_=e.visibleColumnFromColumn(t,new h.y(n,m));if(u){if(f>r)continue;if(_<s)continue}if(l){if(_>s)continue;if(f<r)continue}g.push(new c.mG(new d.Q(n,o,n,o),0,0,new h.y(n,m),0))}if(0===g.length)for(let p=0;p<o;p++){const e=i+(a?-p:p),s=t.getLineMaxColumn(e);g.push(new c.mG(new d.Q(e,s,e,s),0,0,new h.y(e,s),0))}return{viewStates:g,reversed:a,fromLineNumber:i,fromVisualColumn:s,toLineNumber:n,toVisualColumn:r}}static columnSelectLeft(e,t,i){let s=i.toViewVisualColumn;return s>0&&s--,u.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,s)}static columnSelectRight(e,t,i){let s=0;const n=Math.min(i.fromViewLineNumber,i.toViewLineNumber),r=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let a=n;a<=r;a++){const i=t.getLineMaxColumn(a),n=e.visibleColumnFromColumn(t,new h.y(a,i));s=Math.max(s,n)}let o=i.toViewVisualColumn;return o<s&&o++,this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,o)}static columnSelectUp(e,t,i,s){const n=s?e.pageSize:1,r=Math.max(1,i.toViewLineNumber-n);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,r,i.toViewVisualColumn)}static columnSelectDown(e,t,i,s){const n=s?e.pageSize:1,r=Math.min(t.getLineCount(),i.toViewLineNumber+n);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,r,i.toViewVisualColumn)}}var g=i(1226),p=i(50672),m=i(49265),f=i(60002),_=i(32848),v=i(59261),C=i(8597),b=i(26685);class E extends a.DX{runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditorCommand(s,i||{})}}var S,y,w;!function(e){e.metadata={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage', 'editor'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!r.Gv(e))return!1;const t=e;return!!r.Kg(t.to)&&(!(!r.b0(t.by)&&!r.Kg(t.by))&&(!(!r.b0(t.value)&&!r.Et(t.value))&&!(!r.b0(t.revealCursor)&&!r.Lm(t.revealCursor))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"},e.parse=function(t){let i,s;switch(t.to){case e.RawDirection.Up:i=1;break;case e.RawDirection.Right:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.Left:i=4;break;default:return null}switch(t.by){case e.RawUnit.Line:s=1;break;case e.RawUnit.WrappedLine:s=2;break;case e.RawUnit.Page:s=3;break;case e.RawUnit.HalfPage:s=4;break;case e.RawUnit.Editor:s=5;break;case e.RawUnit.Column:s=6;break;default:s=2}return{direction:i,unit:s,value:Math.floor(t.value||1),revealCursor:!!t.revealCursor,select:!!t.select}}}(S||(S={})),function(e){e.metadata={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!r.Gv(e))return!1;const t=e;return!(!r.Et(t.lineNumber)&&!r.Kg(t.lineNumber))&&!(!r.b0(t.at)&&!r.Kg(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(y||(y={}));class L{constructor(e){e.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(l.T).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)})),e.addImplementation(1e3,"generic-dom-input-textarea",((e,t)=>{const i=(0,C.bq)();return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(i),!0)})),e.addImplementation(0,"generic-dom",((e,t)=>{const i=e.get(l.T).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))}))}_runEditorCommand(e,t,i){const s=this.runEditorCommand(e,t,i);return s||!0}}!function(e){class t extends E{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;e.model.pushStackElement();e.setCursorStates(t.source,3,[p.c.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&2!==t.revealType&&e.revealAllCursors(t.source,!0,!0)}}e.MoveTo=(0,a.E_)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,a.E_)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends E{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);null!==i&&(e.setCursorStates(t.source,3,i.viewStates.map((e=>c.MF.fromViewState(e)))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source))}}e.ColumnSelect=(0,a.E_)(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,s){if("undefined"===typeof s.position||"undefined"===typeof s.viewPosition||"undefined"===typeof s.mouseColumn)return null;const n=e.model.validatePosition(s.position),r=e.coordinatesConverter.validateViewPosition(new h.y(s.viewPosition.lineNumber,s.viewPosition.column),n),o=s.doColumnSelect?i.fromViewLineNumber:r.lineNumber,a=s.doColumnSelect?i.fromViewVisualColumn:s.mouseColumn-1;return u.columnSelect(e.cursorConfig,e,o,a,r.lineNumber,s.mouseColumn-1)}}),e.CursorColumnSelectLeft=(0,a.E_)(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,s){return u.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=(0,a.E_)(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,s){return u.columnSelectRight(e.cursorConfig,e,i)}});class r extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,s){return u.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=(0,a.E_)(new r({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,a.E_)(new r({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3595,linux:{primary:0}}}));class l extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,s){return u.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=(0,a.E_)(new l({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,a.E_)(new l({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3596,linux:{primary:0}}}));class g extends E{constructor(){super({id:"cursorMove",precondition:void 0,metadata:p.S.metadata})}runCoreEditorCommand(e,t){const i=p.S.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,g._move(e,e.getCursorStates(),i)),e.revealAllCursors(t,!0)}static _move(e,t,i){const s=i.select,n=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return p.c.simpleMove(e,t,i.direction,s,n,i.unit);case 11:case 13:case 12:case 14:return p.c.viewportMove(e,t,i.direction,s,n);default:return null}}}e.CursorMoveImpl=g,e.CursorMove=(0,a.E_)(new g);class m extends E{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealAllCursors(t.source,!0)}}e.CursorLeft=(0,a.E_)(new m({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,a.E_)(new m({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1039}})),e.CursorRight=(0,a.E_)(new m({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,a.E_)(new m({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1041}})),e.CursorUp=(0,a.E_)(new m({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,a.E_)(new m({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,a.E_)(new m({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,a.E_)(new m({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1035}})),e.CursorDown=(0,a.E_)(new m({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,a.E_)(new m({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,a.E_)(new m({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,a.E_)(new m({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1036}})),e.CreateCursor=(0,a.E_)(new class extends E{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let i;i=t.wholeLine?p.c.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):p.c.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const s=e.getCursorStates();if(s.length>1){const n=i.modelState?i.modelState.position:null,r=i.viewState?i.viewState.position:null;for(let i=0,o=s.length;i<o;i++){const o=s[i];if((!n||o.modelState.selection.containsPosition(n))&&(!r||o.viewState.selection.containsPosition(r)))return s.splice(i,1),e.model.pushStackElement(),void e.setCursorStates(t.source,3,s)}}s.push(i),e.model.pushStackElement(),e.setCursorStates(t.source,3,s)}}),e.LastCursorMoveToSelect=(0,a.E_)(new class extends E{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0);n[i]=p.c.moveTo(e,s[i],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}});class _ extends E{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorHome=(0,a.E_)(new _({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=(0,a.E_)(new _({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class v extends E{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e){const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i],n=s.modelState.position.lineNumber;t[i]=c.MF.fromModelState(s.modelState.move(this._inSelectionMode,n,1,0))}return t}}e.CursorLineStart=(0,a.E_)(new v({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=(0,a.E_)(new v({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:1311}}}));class C extends E{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealAllCursors(t.source,!0)}}e.CursorEnd=(0,a.E_)(new C({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:f.R.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},metadata:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:s.kg("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=(0,a.E_)(new C({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:f.R.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},metadata:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:s.kg("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class b extends E{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const n=t[s],r=n.modelState.position.lineNumber,o=e.model.getLineMaxColumn(r);i[s]=c.MF.fromModelState(n.modelState.move(this._inSelectionMode,r,o,0))}return i}}e.CursorLineEnd=(0,a.E_)(new b({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=(0,a.E_)(new b({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:1315}}}));class w extends E{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorTop=(0,a.E_)(new w({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=(0,a.E_)(new w({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3086,mac:{primary:3088}}}));class R extends E{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p.c.moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorBottom=(0,a.E_)(new R({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=(0,a.E_)(new R({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:3085,mac:{primary:3090}}}));class T extends E{constructor(){super({id:"editorScroll",precondition:void 0,metadata:S.metadata})}determineScrollMethod(e){return[6].includes(e.unit)&&[4,2].includes(e.direction)?this._runHorizontalEditorScroll.bind(this):[1,2,3,4,5,6].includes(e.unit)&&[1,3].includes(e.direction)?this._runVerticalEditorScroll.bind(this):null}runCoreEditorCommand(e,t){const i=S.parse(t);if(!i)return;const s=this.determineScrollMethod(i);s&&s(e,t.source,i)}_runVerticalEditorScroll(e,t,i){const s=this._computeDesiredScrollTop(e,i);if(i.revealCursor){const n=e.getCompletelyVisibleViewRangeAtScrollTop(s);e.setCursorStates(t,3,[p.c.findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),n,i.select)])}e.viewLayout.setScrollPosition({scrollTop:s},0)}_computeDesiredScrollTop(e,t){if(1===t.unit){const i=e.viewLayout.getFutureViewport(),s=e.getCompletelyVisibleViewRangeAtScrollTop(i.top),n=e.coordinatesConverter.convertViewRangeToModelRange(s);let r;r=1===t.direction?Math.max(1,n.startLineNumber-t.value):Math.min(e.model.getLineCount(),n.startLineNumber+t.value);const o=e.coordinatesConverter.convertModelPositionToViewPosition(new h.y(r,1));return e.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber)}if(5===t.unit){let i=0;return 3===t.direction&&(i=e.model.getLineCount()-e.cursorConfig.pageSize),e.viewLayout.getVerticalOffsetForLineNumber(i)}let i;i=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;const s=(1===t.direction?-1:1)*i;return e.viewLayout.getCurrentScrollTop()+s*e.cursorConfig.lineHeight}_runHorizontalEditorScroll(e,t,i){const s=this._computeDesiredScrollLeft(e,i);e.viewLayout.setScrollPosition({scrollLeft:s},0)}_computeDesiredScrollLeft(e,t){const i=(4===t.direction?-1:1)*t.value;return e.viewLayout.getCurrentScrollLeft()+i*e.cursorConfig.typicalHalfwidthCharacterWidth}}e.EditorScrollImpl=T,e.EditorScroll=(0,a.E_)(new T),e.ScrollLineUp=(0,a.E_)(new class extends E{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageUp=(0,a.E_)(new class extends E{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorTop=(0,a.E_)(new class extends E{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Up,by:S.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLineDown=(0,a.E_)(new class extends E{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageDown=(0,a.E_)(new class extends E{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorBottom=(0,a.E_)(new class extends E{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Down,by:S.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLeft=(0,a.E_)(new class extends E{constructor(){super({id:"scrollLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Left,by:S.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollRight=(0,a.E_)(new class extends E{constructor(){super({id:"scrollRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:S.RawDirection.Right,by:S.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}});class x extends E{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),2!==t.revealType&&e.revealAllCursors(t.source,!0,!0))}}e.WordSelect=(0,a.E_)(new x({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=(0,a.E_)(new x({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=(0,a.E_)(new class extends E{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0),r=s[i];n[i]=p.c.word(e,r,r.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}});class k extends E{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),2!==t.revealType&&e.revealAllCursors(t.source,!1,!0))}}e.LineSelect=(0,a.E_)(new k({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=(0,a.E_)(new k({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class A extends E{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;const i=e.getLastAddedCursorIndex(),s=e.getCursorStates(),n=s.slice(0);n[i]=p.c.line(e,s[i],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}}e.LastCursorLineSelect=(0,a.E_)(new A({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=(0,a.E_)(new A({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.CancelSelection=(0,a.E_)(new class extends E{constructor(){super({id:"cancelSelection",precondition:f.R.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.c.cancelSelection(e,e.getPrimaryCursorState())]),e.revealAllCursors(t.source,!0)}}),e.RemoveSecondaryCursors=(0,a.E_)(new class extends E{constructor(){super({id:"removeSecondaryCursors",precondition:f.R.hasMultipleSelections,kbOpts:{weight:1,kbExpr:f.R.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealAllCursors(t.source,!0),(0,o.h5)(s.kg("removedCursor","Removed secondary cursors"))}}),e.RevealLine=(0,a.E_)(new class extends E{constructor(){super({id:"revealLine",precondition:void 0,metadata:y.metadata})}runCoreEditorCommand(e,t){const i=t,s=i.lineNumber||0;let n="number"===typeof s?s+1:parseInt(s)+1;n<1&&(n=1);const r=e.model.getLineCount();n>r&&(n=r);const o=new d.Q(n,1,n,e.model.getLineMaxColumn(n));let a=0;if(i.at)switch(i.at){case y.RawAtArgument.Top:a=3;break;case y.RawAtArgument.Center:a=1;break;case y.RawAtArgument.Bottom:a=4}const l=e.coordinatesConverter.convertModelRangeToViewRange(o);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends L{constructor(){super(a.tc)}runDOMCommand(e){n.gm&&(e.focus(),e.select()),e.ownerDocument.execCommand("selectAll")}runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditorCommand(s,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[p.c.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=(0,a.E_)(new class extends E{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[c.MF.fromModelSelection(t.selection)]))}})}(w||(w={}));const R=_.M$.and(f.R.textInputFocus,f.R.columnSelection);function T(e,t){v.f.registerKeybindingRule({id:e,primary:t,when:R,weight:1})}function x(e){return e.register(),e}var k;T(w.CursorColumnSelectLeft.id,1039),T(w.CursorColumnSelectRight.id,1041),T(w.CursorColumnSelectUp.id,1040),T(w.CursorColumnSelectPageUp.id,1035),T(w.CursorColumnSelectDown.id,1042),T(w.CursorColumnSelectPageDown.id,1036),function(e){class t extends a.DX{runEditorCommand(e,t,i){const s=t._getViewModel();s&&this.runCoreEditingCommand(t,s,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=(0,a.E_)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,b.AO.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection))))}}),e.Outdent=(0,a.E_)(new class extends t{constructor(){super({id:"outdent",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:_.M$.and(f.R.editorTextFocus,f.R.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.T.outdent(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.Tab=(0,a.E_)(new class extends t{constructor(){super({id:"tab",precondition:f.R.writable,kbOpts:{weight:0,kbExpr:_.M$.and(f.R.editorTextFocus,f.R.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,m.T.tab(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.DeleteLeft=(0,a.E_)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[s,n]=g.g.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)),t.getCursorAutoClosedCharacters());s&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(2)}}),e.DeleteRight=(0,a.E_)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:f.R.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[s,n]=g.g.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)));s&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(3)}}),e.Undo=new class extends L{constructor(){super(a.aU)}runDOMCommand(e){e.ownerDocument.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(92))return t.getModel().undo()}},e.Redo=new class extends L{constructor(){super(a.ih)}runDOMCommand(e){e.ownerDocument.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(92))return t.getModel().redo()}}}(k||(k={}));class A extends a.uB{constructor(e,t,i){super({id:e,precondition:void 0,metadata:i}),this._handlerId=t}runCommand(e,t){const i=e.get(l.T).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function N(e,t){x(new A("default:"+e,e)),x(new A(e,e,t))}N("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),N("replacePreviousChar"),N("compositionType"),N("compositionStart"),N("compositionEnd"),N("paste"),N("cut")},85411:(e,t,i)=>{"use strict";i.d(t,{l:()=>d,q:()=>l});var s=i(42731),n=i(17799),r=i(44320),o=i(79400),a=i(61292);function l(e){const t=new n.Vq;for(const i of e.items){const e=i.type;if("string"===i.kind){const s=new Promise((e=>i.getAsString(e)));t.append(e,(0,n.gf)(s))}else if("file"===i.kind){const s=i.getAsFile();s&&t.append(e,c(s))}}return t}function c(e){const t=e.path?o.r.parse(e.path):void 0;return(0,n.VX)(e.name,t,(async()=>new Uint8Array(await e.arrayBuffer())))}const h=Object.freeze([a.sV.EDITORS,a.sV.FILES,s.t.RESOURCES,s.t.INTERNAL_URI_LIST]);function d(e,t=!1){const i=l(e),a=i.get(s.t.INTERNAL_URI_LIST);if(a)i.replace(r.K.uriList,a);else if(t||!i.has(r.K.uriList)){const t=[];for(const i of e.items){const e=i.getAsFile();if(e){const i=e.path;try{i?t.push(o.r.file(i).toString()):t.push(o.r.parse(e.name,!0).toString())}catch{}}}t.length&&i.replace(r.K.uriList,(0,n.gf)(n.jt.create(t)))}for(const s of h)i.delete(s);return i}},34326:(e,t,i)=>{"use strict";i.d(t,{Np:()=>r,jA:()=>o,z9:()=>n});var s=i(23452);function n(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===s._.ICodeEditor}function r(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===s._.IDiffEditor}function o(e){return n(e)?e:r(e)?e.getModifiedEditor():function(e){return!!e&&"object"===typeof e&&"function"===typeof e.onDidChangeActiveEditor}(e)&&n(e.activeCodeEditor)?e.activeCodeEditor:null}},37734:(e,t,i)=>{"use strict";i.d(t,{$z:()=>f,BA:()=>v,DW:()=>_,Hh:()=>h,Qn:()=>C,dO:()=>m,i_:()=>p,nz:()=>c,wt:()=>g});var s=i(8597),n=i(34072),r=i(47358),o=i(90766),a=i(5662),l=i(66261);class c{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(e){return new h(this.x-e.scrollX,this.y-e.scrollY)}}class h{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(e){return new c(this.clientX+e.scrollX,this.clientY+e.scrollY)}}class d{constructor(e,t,i,s){this.x=e,this.y=t,this.width=i,this.height=s,this._editorPagePositionBrand=void 0}}class u{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function g(e){const t=s.BK(e);return new d(t.left,t.top,t.width,t.height)}function p(e,t,i){const s=t.width/e.offsetWidth,n=t.height/e.offsetHeight,r=(i.x-t.x)/s,o=(i.y-t.y)/n;return new u(r,o)}class m extends r.P{constructor(e,t,i){super(s.zk(i),e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new c(this.posx,this.posy),this.editorPos=g(i),this.relativePos=p(i,this.editorPos,this.pos)}}class f{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return s.ko(e,"contextmenu",(e=>{t(this._create(e))}))}onMouseUp(e,t){return s.ko(e,"mouseup",(e=>{t(this._create(e))}))}onMouseDown(e,t){return s.ko(e,s.Bx.MOUSE_DOWN,(e=>{t(this._create(e))}))}onPointerDown(e,t){return s.ko(e,s.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onMouseLeave(e,t){return s.ko(e,s.Bx.MOUSE_LEAVE,(e=>{t(this._create(e))}))}onMouseMove(e,t){return s.ko(e,"mousemove",(e=>t(this._create(e))))}}class _{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return s.ko(e,"pointerup",(e=>{t(this._create(e))}))}onPointerDown(e,t){return s.ko(e,s.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onPointerLeave(e,t){return s.ko(e,s.Bx.POINTER_LEAVE,(e=>{t(this._create(e))}))}onPointerMove(e,t){return s.ko(e,"pointermove",(e=>t(this._create(e))))}}class v extends a.jG{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new n._),this._keydownListener=null}startMonitoring(e,t,i,n,r){this._keydownListener=s.b2(e.ownerDocument,"keydown",(e=>{e.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,(e=>{n(new m(e,!0,this._editorViewDomNode))}),(e=>{this._keydownListener.dispose(),r(e)}))}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class C{static{this._idPool=0}constructor(e){this._editor=e,this._instanceId=++C._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new o.uC((()=>this.garbageCollect()),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let i=this._rules.get(t);if(!i){const n=this._counter++;i=new b(t,`dyn-rule-${this._instanceId}-${n}`,s.Cl(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}}class b{constructor(e,t,i,n){this.key=e,this.className=t,this.properties=n,this._referenceCount=0,this._styleElementDisposables=new a.Cm,this._styleElement=s.li(i,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(const s in t){const e=t[s];let n;n="object"===typeof e?(0,l.GuP)(e.id):e;i+=`\n\t${E(s)}: ${n};`}return i+="\n}",i}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function E(e){return e.replace(/(^[A-Z])/,(([e])=>e.toLowerCase())).replace(/([A-Z])/g,(([e])=>`-${e.toLowerCase()}`))}},31450:(e,t,i)=>{"use strict";i.d(t,{DX:()=>y,E_:()=>x,Fl:()=>k,HW:()=>I,PF:()=>L,aU:()=>M,dS:()=>s,fE:()=>E,gW:()=>A,ih:()=>P,ke:()=>T,ks:()=>w,qO:()=>R,tc:()=>F,uB:()=>b,xX:()=>N});var s,n=i(78209),r=i(79400),o=i(80301),a=i(83069),l=i(23750),c=i(18938),h=i(27195),d=i(50091),u=i(32848),g=i(63591),p=i(59261),m=i(46359),f=i(90651),_=i(631),v=i(18801),C=i(8597);class b{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?u.M$.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};p.f.registerKeybindingRule(i)}}d.w.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){h.ZG.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class E extends b{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,s){return this._implementations.push({priority:e,name:t,implementation:i,when:s}),this._implementations.sort(((e,t)=>t.priority-e.priority)),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e].implementation===i)return void this._implementations.splice(e,1)}}}runCommand(e,t){const i=e.get(v.rr),s=e.get(u.fN);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const n of this._implementations){if(n.when){const e=s.getContext((0,C.bq)());if(!n.when.evaluate(e))continue}const r=n.implementation(e,t);if(r){if(i.trace(`Command '${this.id}' was handled by '${n.name}'.`),"boolean"===typeof r)return;return r}}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class S extends b{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class y extends b{static bindToContribution(e){return class extends y{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,i,s){const n=e(i);n&&this._callback(n,s)}}}static runEditorCommand(e,t,i,s){const n=e.get(o.T),r=n.getFocusedCodeEditor()||n.getActiveCodeEditor();if(r)return r.invokeWithinContext((e=>{if(e.get(u.fN).contextMatchesRules(i??void 0))return s(e,r,t)}))}runCommand(e,t){return y.runEditorCommand(e,t,this.precondition,((e,t,i)=>this.runEditorCommand(e,t,i)))}}class w extends y{static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=h.D8.EditorContext),t.title||(t.title=e.label),t.when=u.M$.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}constructor(e){super(w.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(f.k).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class L extends w{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort(((e,t)=>t[0]-e[0])),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e][1]===t)return void this._implementations.splice(e,1)}}}run(e,t,i){for(const s of this._implementations){const n=s[1](e,t,i);if(n){if("boolean"===typeof n)return;return n}}}}class R extends h.L{run(e,...t){const i=e.get(o.T),s=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(s)return s.invokeWithinContext((e=>{const i=e.get(u.fN),n=e.get(v.rr);if(i.contextMatchesRules(this.desc.precondition??void 0))return this.runEditorCommand(e,s,...t);n.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,this.desc.precondition?.serialize())}))}}function T(e,t){d.w.registerCommand(e,(function(e,...i){const s=e.get(g._Y),[n,o]=i;(0,_.j)(r.r.isUri(n)),(0,_.j)(a.y.isIPosition(o));const h=e.get(l.IModelService).getModel(n);if(h){const e=a.y.lift(o);return s.invokeFunction(t,h,e,...i.slice(2))}return e.get(c.ITextModelService).createModelReference(n).then((e=>new Promise(((n,r)=>{try{n(s.invokeFunction(t,e.object.textEditorModel,a.y.lift(o),i.slice(2)))}catch(l){r(l)}})).finally((()=>{e.dispose()}))))}))}function x(e){return O.INSTANCE.registerEditorCommand(e),e}function k(e){const t=new e;return O.INSTANCE.registerEditorAction(t),t}function A(e){return O.INSTANCE.registerEditorAction(e),e}function N(e){O.INSTANCE.registerEditorAction(e)}function I(e,t,i){O.INSTANCE.registerEditorContribution(e,t,i)}!function(e){e.getEditorCommand=function(e){return O.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return O.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return O.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return O.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return O.INSTANCE.getDiffEditorContributions()}}(s||(s={}));class O{static{this.INSTANCE=new O}constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function D(e){return e.register(),e}m.O.add("editor.contributions",O.INSTANCE);const M=D(new E({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:h.D8.MenubarEditMenu,group:"1_do",title:n.kg({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:h.D8.CommandPalette,group:"",title:n.kg("undo","Undo"),order:1}]}));D(new S(M,{id:"default:undo",precondition:void 0}));const P=D(new E({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:h.D8.MenubarEditMenu,group:"1_do",title:n.kg({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:h.D8.CommandPalette,group:"",title:n.kg("redo","Redo"),order:1}]}));D(new S(P,{id:"default:redo",precondition:void 0}));const F=D(new E({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:h.D8.MenubarSelectionMenu,group:"1_basic",title:n.kg({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:h.D8.CommandPalette,group:"",title:n.kg("selectAll","Select All"),order:1}]}))},38844:(e,t,i)=>{"use strict";i.d(t,{Qg:()=>u,Ud:()=>c,jD:()=>d});var s=i(51241),n=i(5662),r=i(31308),o=i(49154),a=i(87958),l=i(75326);function c(e){return h.get(e)}class h extends n.jG{static{this._map=new Map}static get(e){let t=h._map.get(e);if(!t){t=new h(e),h._map.set(e,t);const i=e.onDidDispose((()=>{const t=h._map.get(e);t&&(h._map.delete(e),t.dispose(),i.dispose())}))}return t}_beginUpdate(){this._updateCounter++,1===this._updateCounter&&(this._currentTransaction=new o.XL((()=>{})))}_endUpdate(){if(this._updateCounter--,0===this._updateCounter){const e=this._currentTransaction;this._currentTransaction=void 0,e.finish()}}constructor(e){super(),this.editor=e,this._updateCounter=0,this._currentTransaction=void 0,this._model=(0,r.FY)(this,this.editor.getModel()),this.model=this._model,this.isReadonly=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(92))),this._versionId=(0,r.Zh)({owner:this,lazy:!0},this.editor.getModel()?.getVersionId()??null),this.versionId=this._versionId,this._selections=(0,r.Zh)({owner:this,equalsFn:(0,s.KC)((0,s.S3)(l.L.selectionsEqual)),lazy:!0},this.editor.getSelections()??null),this.selections=this._selections,this.isFocused=(0,r.y0)(this,(e=>{const t=this.editor.onDidFocusEditorWidget(e),i=this.editor.onDidBlurEditorWidget(e);return{dispose(){t.dispose(),i.dispose()}}}),(()=>this.editor.hasWidgetFocus())),this.value=(0,a.dQ)(this,(e=>(this.versionId.read(e),this.model.read(e)?.getValue()??"")),((e,t)=>{const i=this.model.get();null!==i&&e!==i.getValue()&&i.setValue(e)})),this.valueIsEmpty=(0,r.un)(this,(e=>(this.versionId.read(e),0===this.editor.getModel()?.getValueLength()))),this.cursorSelection=(0,r.C)({owner:this,equalsFn:(0,s.KC)(l.L.selectionsEqual)},(e=>this.selections.read(e)?.[0]??null)),this.onDidType=(0,r.Yd)(this),this.scrollTop=(0,r.y0)(this.editor.onDidScrollChange,(()=>this.editor.getScrollTop())),this.scrollLeft=(0,r.y0)(this.editor.onDidScrollChange,(()=>this.editor.getScrollLeft())),this.layoutInfo=(0,r.y0)(this.editor.onDidLayoutChange,(()=>this.editor.getLayoutInfo())),this.layoutInfoContentLeft=this.layoutInfo.map((e=>e.contentLeft)),this.layoutInfoDecorationsLeft=this.layoutInfo.map((e=>e.decorationsLeft)),this.contentWidth=(0,r.y0)(this.editor.onDidContentSizeChange,(()=>this.editor.getContentWidth())),this._overlayWidgetCounter=0,this._register(this.editor.onBeginUpdate((()=>this._beginUpdate()))),this._register(this.editor.onEndUpdate((()=>this._endUpdate()))),this._register(this.editor.onDidChangeModel((()=>{this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._forceUpdate()}finally{this._endUpdate()}}))),this._register(this.editor.onDidType((e=>{this._beginUpdate();try{this._forceUpdate(),this.onDidType.trigger(this._currentTransaction,e)}finally{this._endUpdate()}}))),this._register(this.editor.onDidChangeModelContent((e=>{this._beginUpdate();try{this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,e),this._forceUpdate()}finally{this._endUpdate()}}))),this._register(this.editor.onDidChangeCursorSelection((e=>{this._beginUpdate();try{this._selections.set(this.editor.getSelections(),this._currentTransaction,e),this._forceUpdate()}finally{this._endUpdate()}})))}forceUpdate(e){this._beginUpdate();try{if(this._forceUpdate(),!e)return;return e(this._currentTransaction)}finally{this._endUpdate()}}_forceUpdate(){this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,void 0),this._selections.set(this.editor.getSelections(),this._currentTransaction,void 0)}finally{this._endUpdate()}}getOption(e){return(0,r.y0)(this,(t=>this.editor.onDidChangeConfiguration((i=>{i.hasChanged(e)&&t(void 0)}))),(()=>this.editor.getOption(e)))}setDecorations(e){const t=new n.Cm,i=this.editor.createDecorationsCollection();return t.add((0,r.zL)({owner:this,debugName:()=>`Apply decorations from ${e.debugName}`},(t=>{const s=e.read(t);i.set(s)}))),t.add({dispose:()=>{i.clear()}}),t}createOverlayWidget(e){const t="observableOverlayWidget"+this._overlayWidgetCounter++,i={getDomNode:()=>e.domNode,getPosition:()=>e.position.get(),getId:()=>t,allowEditorOverflow:e.allowEditorOverflow,getMinContentWidthInPx:()=>e.minContentWidthInPx.get()};this.editor.addOverlayWidget(i);const s=(0,r.fm)((t=>{e.position.read(t),e.minContentWidthInPx.read(t),this.editor.layoutOverlayWidget(i)}));return(0,n.s)((()=>{s.dispose(),this.editor.removeOverlayWidget(i)}))}}function d(e,t){return(0,r.ht)({createEmptyChangeSummary:()=>({deltas:[],didChange:!1}),handleChange:(t,i)=>{if(t.didChange(e)){const e=t.change;void 0!==e&&i.deltas.push(e),i.didChange=!0}return!0}},((i,s)=>{const n=e.read(i);s.didChange&&t(n,s.deltas)}))}function u(e,t){const i=new n.Cm,s=d(e,((e,s)=>{i.clear(),t(e,s,i)}));return{dispose(){s.dispose(),i.dispose()}}}},80537:(e,t,i)=>{"use strict";i.d(t,{cw:()=>l,jN:()=>a,nu:()=>o});var s=i(63591),n=i(79400),r=i(631);const o=(0,s.u1)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map((e=>{if(l.is(e))return l.lift(e);if(c.is(e))return c.lift(e);throw new Error("Unsupported edit")}))}}class l extends a{static is(e){return e instanceof l||(0,r.Gv)(e)&&n.r.isUri(e.resource)&&(0,r.Gv)(e.textEdit)}static lift(e){return e instanceof l?e:new l(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,t,i=void 0,s){super(s),this.resource=e,this.textEdit=t,this.versionId=i}}class c extends a{static is(e){return e instanceof c||(0,r.Gv)(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof c?e:new c(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t,i={},s){super(s),this.oldResource=e,this.newResource=t,this.options=i}}},80301:(e,t,i)=>{"use strict";i.d(t,{T:()=>s});const s=(0,i(63591).u1)("codeEditorService")},55190:(e,t,i)=>{"use strict";i.d(t,{D:()=>s});class s{static capture(e){if(0===e.getScrollTop()||e.hasPendingScrollAnimation())return new s(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0;const n=e.getVisibleRanges();if(n.length>0){t=n[0].getStartPosition();const s=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-s}return new s(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition())}constructor(e,t,i,s,n){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=s,this._cursorPosition=n}restore(e){if((this._initialContentHeight!==e.getContentHeight()||this._initialScrollTop!==e.getScrollTop())&&this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){if(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())return;const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i,1)}}},80624:(e,t,i)=>{"use strict";i.d(t,{BG:()=>r,IO:()=>a,Y:()=>o,eh:()=>n,pj:()=>c,qN:()=>l});class s{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,t){return this._viewLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,t)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class n extends s{constructor(e,t,i){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class r{constructor(e,t,i,s){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i,this.continuesOnNextLine=s}}class o{static from(e){const t=new Array(e.length);for(let i=0,s=e.length;i<s;i++){const s=e[i];t[i]=new o(s.left,s.width)}return t}constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class a{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class l{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class c{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}},92473:(e,t,i)=>{"use strict";i.d(t,{Gb:()=>m,Ax:()=>p,rk:()=>S});var s=i(60413),n=i(55275),r=i(98067),o=i(80624);class a{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,s,n){const r=this._createRange();try{return r.setStart(e,t),r.setEnd(i,s),r.getClientRects()}catch(o){return null}finally{this._detachRange(r,n)}}static _mergeAdjacentRanges(e){if(1===e.length)return e;e.sort(o.IO.compare);const t=[];let i=0,s=e[0];for(let n=1,r=e.length;n<r;n++){const r=e[n];s.left+s.width+.9>=r.left?s.width=Math.max(s.width,r.left+r.width-s.left):(t[i++]=s,s=r)}return t[i++]=s,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;const s=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];s[n]=new o.IO(Math.max(0,(r.left-t)/i),r.width/i)}return this._mergeAdjacentRanges(s)}static readHorizontalRanges(e,t,i,s,n,r){const o=e.children.length-1;if(0>o)return null;if((t=Math.min(o,Math.max(0,t)))===(s=Math.min(o,Math.max(0,s)))&&i===n&&0===i&&!e.children[t].firstChild){const i=e.children[t].getClientRects();return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(i,r.clientRectDeltaLeft,r.clientRectScale)}t!==s&&s>0&&0===n&&(s--,n=1073741824);let a=e.children[t].firstChild,l=e.children[s].firstChild;if(a&&l||(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=1073741824),!l&&0===n&&s>0&&(l=e.children[s-1].firstChild,n=1073741824)),!a||!l)return null;i=Math.min(a.textContent.length,Math.max(0,i)),n=Math.min(l.textContent.length,Math.max(0,n));const c=this._readClientRects(a,i,l,n,r.endNode);return r.markDidDomLayout(),this._createHorizontalRangesFromClientRects(c,r.clientRectDeltaLeft,r.clientRectScale)}}var l=i(25521),c=i(35600),h=i(86723),d=i(87908);const u=!!r.ib||!(r.j9||s.gm||s.nr);let g=!0;class p{constructor(e,t){this.themeType=t;const i=e.options,s=i.get(50),n=i.get(38);this.renderWhitespace="off"===n?i.get(100):"none",this.renderControlCharacters=i.get(95),this.spaceWidth=s.spaceWidth,this.middotWidth=s.middotWidth,this.wsmiddotWidth=s.wsmiddotWidth,this.useMonospaceOptimizations=s.isMonospace&&!i.get(33),this.canUseHalfwidthRightwardsArrow=s.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(67),this.stopRenderingLineAfter=i.get(118),this.fontLigatures=i.get(51)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class m{static{this.CLASS_NAME="view-line"}constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=(0,n.Z)(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return!(!(0,h.Bb)(this._options.themeType)&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,i,s,n){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const r=s.getViewLineRenderingData(e),o=this._options,a=l.d.filter(r.inlineDecorations,e,r.minColumn,r.maxColumn);let p=null;if((0,h.Bb)(o.themeType)||"selection"===this._options.renderWhitespace){const t=s.selections;for(const i of t){if(i.endLineNumber<e||i.startLineNumber>e)continue;const t=i.startLineNumber===e?i.startColumn:r.minColumn,s=i.endLineNumber===e?i.endColumn:r.maxColumn;t<s&&((0,h.Bb)(o.themeType)&&a.push(new l.d(t,s,"inline-selected-text",0)),"selection"===this._options.renderWhitespace&&(p||(p=[]),p.push(new c.MT(t-1,s-1))))}}const _=new c.zL(o.useMonospaceOptimizations,o.canUseHalfwidthRightwardsArrow,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,r.minColumn-1,r.tokens,a,r.tabSize,r.startVisibleColumn,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==d.Bc.OFF,p);if(this._renderedViewLine&&this._renderedViewLine.input.equals(_))return!1;n.appendString('<div style="top:'),n.appendString(String(t)),n.appendString("px;height:"),n.appendString(String(i)),n.appendString('px;" class="'),n.appendString(m.CLASS_NAME),n.appendString('">');const v=(0,c.UW)(_,n);n.appendString("</div>");let b=null;return g&&u&&r.isBasicASCII&&o.useMonospaceOptimizations&&0===v.containsForeignElements&&(b=new f(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping)),b||(b=C(this._renderedViewLine?this._renderedViewLine.domNode:null,_,v.characterMapping,v.containsRTL,v.containsForeignElements)),this._renderedViewLine=b,!0}layoutLine(e,t,i){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(i))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof f}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof f?this._renderedViewLine.monospaceAssumptionsAreValid():g}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof f&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,s){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const n=this._renderedViewLine.input.stopRenderingLineAfter;if(-1!==n&&t>n+1&&i>n+1)return new o.pj(!0,[new o.IO(this.getWidth(s),0)]);-1!==n&&t>n+1&&(t=n+1),-1!==n&&i>n+1&&(i=n+1);const r=this._renderedViewLine.getVisibleRangesForRange(e,t,i,s);return r&&r.length>0?new o.pj(!1,r):null}getColumnOfNodeOffset(e,t){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t):1}}class f{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const s=Math.floor(t.lineContent.length/300);if(s>0){this._keyColumnPixelOffsetCache=new Float32Array(s);for(let e=0;e<s;e++)this._keyColumnPixelOffsetCache[e]=-1}else this._keyColumnPixelOffsetCache=null;this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(e){if(!this.domNode||this.input.lineContent.length<300){const e=this._characterMapping.getHorizontalOffset(this._characterMapping.length);return Math.round(this._charWidth*e)}return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth}getWidthIsFast(){return this.input.lineContent.length<300||-1!==this._cachedWidth}monospaceAssumptionsAreValid(){if(!this.domNode)return g;if(this.input.lineContent.length<300){const e=this.getWidth(null),t=this.domNode.domNode.firstChild.offsetWidth;Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),g=!1)}return g}toSlowRenderedLine(){return C(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,s){const n=this._getColumnPixelOffset(e,t,s),r=this._getColumnPixelOffset(e,i,s);return[new o.IO(n,r-n)]}_getColumnPixelOffset(e,t,i){if(t<=300){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const s=Math.floor((t-1)/300)-1,n=300*(s+1)+1;let r=-1;if(this._keyColumnPixelOffsetCache&&(r=this._keyColumnPixelOffsetCache[s],-1===r&&(r=this._actualReadPixelOffset(e,n,i),this._keyColumnPixelOffsetCache[s]=r)),-1===r){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const o=this._characterMapping.getHorizontalOffset(n),a=this._characterMapping.getHorizontalOffset(t);return r+this._charWidth*(a-o)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return-1;const s=this._characterMapping.getDomPosition(t),n=a.readHorizontalRanges(this._getReadingTarget(this.domNode),s.partIndex,s.charIndex,s.partIndex,s.charIndex,i);return n&&0!==n.length?n[0].left:-1}getColumnOfNodeOffset(e,t){return S(this._characterMapping,e,t)}}class _{constructor(e,t,i,s,n){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=n,this._cachedWidth=-1,this._pixelOffsetCache=null,!s||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,e?.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,i,s){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const n=this._readPixelOffset(this.domNode,e,t,s);if(-1===n)return null;const r=this._readPixelOffset(this.domNode,e,i,s);return-1===r?null:[new o.IO(n,r-n)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,s)}_readVisibleRangesForRange(e,t,i,s,n){if(i===s){const s=this._readPixelOffset(e,t,i,n);return-1===s?null:[new o.IO(s,0)]}return this._readRawVisibleRangesForRange(e,i,s,n)}_readPixelOffset(e,t,i,s){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth(s);const t=this._getReadingTarget(e);return t.firstChild?(s.markDidDomLayout(),t.firstChild.offsetWidth):0}if(null!==this._pixelOffsetCache){const n=this._pixelOffsetCache[i];if(-1!==n)return n;const r=this._actualReadPixelOffset(e,t,i,s);return this._pixelOffsetCache[i]=r,r}return this._actualReadPixelOffset(e,t,i,s)}_actualReadPixelOffset(e,t,i,s){if(0===this._characterMapping.length){const t=a.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,s);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth(s);const n=this._characterMapping.getDomPosition(i),r=a.readHorizontalRanges(this._getReadingTarget(e),n.partIndex,n.charIndex,n.partIndex,n.charIndex,s);if(!r||0===r.length)return-1;const o=r[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getHorizontalOffset(i),t=Math.round(this.input.spaceWidth*e);if(Math.abs(t-o)<=1)return t}return o}_readRawVisibleRangesForRange(e,t,i,s){if(1===t&&i===this._characterMapping.length)return[new o.IO(0,this.getWidth(s))];const n=this._characterMapping.getDomPosition(t),r=this._characterMapping.getDomPosition(i);return a.readHorizontalRanges(this._getReadingTarget(e),n.partIndex,n.charIndex,r.partIndex,r.charIndex,s)}getColumnOfNodeOffset(e,t){return S(this._characterMapping,e,t)}}class v extends _{_readVisibleRangesForRange(e,t,i,s,n){const r=super._readVisibleRangesForRange(e,t,i,s,n);if(!r||0===r.length||i===s||1===i&&s===this._characterMapping.length)return r;if(!this.input.containsRTL){const i=this._readPixelOffset(e,t,s,n);if(-1!==i){const e=r[r.length-1];e.left<i&&(e.width=i-e.left)}}return r}}const C=s.Tc?b:E;function b(e,t,i,s,n){return new v(e,t,i,s,n)}function E(e,t,i,s,n){return new _(e,t,i,s,n)}function S(e,t,i){const s=t.textContent.length;let n=-1;for(;t;)t=t.previousSibling,n++;return e.getColumn(new c.wZ(n,i),s)}},52555:(e,t,i)=>{"use strict";i.d(t,{x:()=>Xn});var s=i(37550),n=i(31450),r=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},o=function(e,t){return function(i,s){t(i,s,e)}};let a=class{static{this.ID="editor.contrib.markerDecorations"}constructor(e,t){}dispose(){}};a=r([o(1,s.IMarkerDecorationsService)],a),(0,n.HW)(a.ID,a,0);var l=i(8597),c=i(64383),h=i(41234),d=i(5662),u=i(36456),g=i(73157),p=i(60413),m=i(25890),f=i(10146),_=i(98067),v=i(4983),C=i(28433);class b{static{this.items=[]}constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=b._read(e,this.key);this.migrate(t,(t=>b._read(e,t)),((t,i)=>b._write(e,t,i)))}static _read(e,t){if("undefined"===typeof e)return;const i=t.indexOf(".");if(i>=0){const s=t.substring(0,i);return this._read(e[s],t.substring(i+1))}return e[t]}static _write(e,t,i){const s=t.indexOf(".");if(s>=0){const n=t.substring(0,s);return e[n]=e[n]||{},void this._write(e[n],t.substring(s+1),i)}e[t]=i}}function E(e,t){b.items.push(new b(e,t))}function S(e,t){E(e,((i,s,n)=>{if("undefined"!==typeof i)for(const[r,o]of t)if(i===r)return void n(e,o)}))}S("wordWrap",[[!0,"on"],[!1,"off"]]),S("lineNumbers",[[!0,"on"],[!1,"off"]]),S("cursorBlinking",[["visible","solid"]]),S("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),S("renderLineHighlight",[[!0,"line"],[!1,"none"]]),S("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),S("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),S("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),S("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),S("autoIndent",[[!1,"advanced"],[!0,"full"]]),S("matchBrackets",[[!0,"always"],[!1,"never"]]),S("renderFinalNewline",[[!0,"on"],[!1,"off"]]),S("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),S("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),S("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),E("autoClosingBrackets",((e,t,i)=>{!1===e&&(i("autoClosingBrackets","never"),"undefined"===typeof t("autoClosingQuotes")&&i("autoClosingQuotes","never"),"undefined"===typeof t("autoSurround")&&i("autoSurround","never"))})),E("renderIndentGuides",((e,t,i)=>{"undefined"!==typeof e&&(i("renderIndentGuides",void 0),"undefined"===typeof t("guides.indentation")&&i("guides.indentation",!!e))})),E("highlightActiveIndentGuide",((e,t,i)=>{"undefined"!==typeof e&&(i("highlightActiveIndentGuide",void 0),"undefined"===typeof t("guides.highlightActiveIndentation")&&i("guides.highlightActiveIndentation",!!e))}));const y={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};E("suggest.filteredTypes",((e,t,i)=>{if(e&&"object"===typeof e){for(const s of Object.entries(y)){!1===e[s[0]]&&"undefined"===typeof t(`suggest.${s[1]}`)&&i(`suggest.${s[1]}`,!1)}i("suggest.filteredTypes",void 0)}})),E("quickSuggestions",((e,t,i)=>{if("boolean"===typeof e){const t=e?"on":"off";i("quickSuggestions",{comments:t,strings:t,other:t})}})),E("experimental.stickyScroll.enabled",((e,t,i)=>{"boolean"===typeof e&&(i("experimental.stickyScroll.enabled",void 0),"undefined"===typeof t("stickyScroll.enabled")&&i("stickyScroll.enabled",e))})),E("experimental.stickyScroll.maxLineCount",((e,t,i)=>{"number"===typeof e&&(i("experimental.stickyScroll.maxLineCount",void 0),"undefined"===typeof t("stickyScroll.maxLineCount")&&i("stickyScroll.maxLineCount",e))})),E("codeActionsOnSave",((e,t,i)=>{if(e&&"object"===typeof e){let t=!1;const s={};for(const i of Object.entries(e))"boolean"===typeof i[1]?(t=!0,s[i[0]]=i[1]?"explicit":"never"):s[i[0]]=i[1];t&&i("codeActionsOnSave",s)}})),E("codeActionWidget.includeNearbyQuickfixes",((e,t,i)=>{"boolean"===typeof e&&(i("codeActionWidget.includeNearbyQuickfixes",void 0),"undefined"===typeof t("codeActionWidget.includeNearbyQuickFixes")&&i("codeActionWidget.includeNearbyQuickFixes",e))})),E("lightbulb.enabled",((e,t,i)=>{"boolean"===typeof e&&i("lightbulb.enabled",e?void 0:"off")}));var w=i(77163),L=i(87908),R=i(79027),T=i(74196),x=i(253),k=i(94106),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends d.jG{constructor(e,t,i,s,n){super(),this._accessibilityService=n,this._onDidChange=this._register(new h.vl),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new h.vl),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new L.n0,this.isSimpleWidget=e,this.contextMenuId=t,this._containerObserver=this._register(new v.u(s,i.dimension)),this._targetWindowId=(0,l.zk)(s).vscodeWindowId,this._rawOptions=F(i),this._validatedOptions=P.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(R.D.onDidChangeZoomLevel((()=>this._recomputeOptions()))),this._register(w.M.onDidChangeTabFocus((()=>this._recomputeOptions()))),this._register(this._containerObserver.onDidChange((()=>this._recomputeOptions()))),this._register(C.T.onDidChange((()=>this._recomputeOptions()))),this._register(k.c.getInstance((0,l.zk)(s)).onDidChange((()=>this._recomputeOptions()))),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized((()=>this._recomputeOptions())))}_recomputeOptions(){const e=this._computeOptions(),t=P.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=T._8.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),s={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:w.M.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return P.computeOptions(this._validatedOptions,s)}_readEnvConfiguration(){return{extraEditorClassName:O(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:p.Tc||p.gm,pixelRatio:k.c.getInstance((0,l.ZF)(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return C.T.readFontInfo((0,l.ZF)(this._targetWindowId,!0).window,e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=F(e);P.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=P.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=function(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(e){this._glyphMarginDecorationLaneCount!==e&&(this._glyphMarginDecorationLaneCount=e,this._recomputeOptions())}};function O(){let e="";return p.nr||p.c8||(e+="no-user-select "),p.nr&&(e+="no-minimap-shadow ",e+="enable-user-select "),_.zx&&(e+="mac "),e}I=A([N(4,x.j)],I);class D{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class M{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class P{static validateOptions(e){const t=new D;for(const i of L.BE){const s="_never_"===i.name?void 0:e[i.name];t._write(i.id,i.validate(s))}return t}static computeOptions(e,t){const i=new M;for(const s of L.BE)i._write(s.id,s.compute(t,i,e._read(s.id)));return i}static _deepEquals(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&m.aI(e,t);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!P._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let s=!1;for(const n of L.BE){const r=!P._deepEquals(e._read(n.id),t._read(n.id));i[n.id]=r,r&&(s=!0)}return s?new L.lw(i):null}static applyUpdate(e,t){let i=!1;for(const s of L.BE)if(t.hasOwnProperty(s.name)){const n=s.applyUpdate(e[s.name],t[s.name]);e[s.name]=n.newValue,i=i||n.didChange}return i}}function F(e){const t=f.Go(e);return function(e){b.items.forEach((t=>t.apply(e)))}(t),t}var U=i(80301),H=i(55275),B=i(5239),W=i(37734);class V extends d.jG{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,s=e.length;i<s;i++){const s=e[i];switch(s.type){case 0:this.onCompositionStart(s)&&(t=!0);break;case 1:this.onCompositionEnd(s)&&(t=!0);break;case 2:this.onConfigurationChanged(s)&&(t=!0);break;case 3:this.onCursorStateChanged(s)&&(t=!0);break;case 4:this.onDecorationsChanged(s)&&(t=!0);break;case 5:this.onFlushed(s)&&(t=!0);break;case 6:this.onFocusChanged(s)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(s)&&(t=!0);break;case 8:this.onLineMappingChanged(s)&&(t=!0);break;case 9:this.onLinesChanged(s)&&(t=!0);break;case 10:this.onLinesDeleted(s)&&(t=!0);break;case 11:this.onLinesInserted(s)&&(t=!0);break;case 12:this.onRevealRangeRequest(s)&&(t=!0);break;case 13:this.onScrollChanged(s)&&(t=!0);break;case 15:this.onTokensChanged(s)&&(t=!0);break;case 14:this.onThemeChanged(s)&&(t=!0);break;case 16:this.onTokensColorsChanged(s)&&(t=!0);break;case 17:this.onZonesChanged(s)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(s)}}t&&(this._shouldRender=!0)}}class z extends V{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class G{static write(e,t){e.setAttribute("data-mprt",String(t))}static read(e){const t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)}static collect(e,t){const i=[];let s=0;for(;e&&e!==e.ownerDocument.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(i[s++]=this.read(e)),e=e.parentElement;const n=new Uint8Array(s);for(let r=0;r<s;r++)n[r]=i[s-r-1];return n}}var j,K=i(92473),Y=i(83069),q=i(36677),$=i(1245),Q=i(35817),X=i(91090);class Z{constructor(e=null){this.hitTarget=e,this.type=0}}class J{get hitTarget(){return this.spanNode}constructor(e,t,i){this.position=e,this.spanNode=t,this.injectedText=i,this.type=1}}!function(e){e.createFromDOMInfo=function(e,t,i){const s=e.getPositionFromDOMInfo(t,i);return s?new J(s,t,null):new Z(t)}}(j||(j={}));class ee{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class te{static _deduceRage(e,t=null){return!t&&e?new q.Q(e.lineNumber,e.column,e.lineNumber,e.column):t??null}static createUnknown(e,t,i){return{type:0,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createTextarea(e,t){return{type:1,element:e,mouseColumn:t,position:null,range:null}}static createMargin(e,t,i,s,n,r){return{type:e,element:t,mouseColumn:i,position:s,range:n,detail:r}}static createViewZone(e,t,i,s,n){return{type:e,element:t,mouseColumn:i,position:s,range:this._deduceRage(s),detail:n}}static createContentText(e,t,i,s,n){return{type:6,element:e,mouseColumn:t,position:i,range:this._deduceRage(i,s),detail:n}}static createContentEmpty(e,t,i,s){return{type:7,element:e,mouseColumn:t,position:i,range:this._deduceRage(i),detail:s}}static createContentWidget(e,t,i){return{type:9,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createScrollbar(e,t,i){return{type:11,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createOverlayWidget(e,t,i){return{type:12,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createOutsideEditor(e,t,i,s){return{type:13,element:null,mouseColumn:e,position:t,range:this._deduceRage(t),outsidePosition:i,outsideDistance:s}}static _typeToString(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+JSON.stringify(e.detail)}}class ie{static isTextArea(e){return 2===e.length&&3===e[0]&&7===e[1]}static isChildOfViewLines(e){return e.length>=4&&3===e[0]&&8===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&8===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&6===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&9===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowGuard(e){return e.length>=1&&3===e[0]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}static isChildOfOverflowingOverlayWidgets(e){return e.length>=1&&5===e[0]}}class se{constructor(e,t,i){this.viewModel=e.viewModel;const s=e.configuration.options;this.layoutInfo=s.get(146),this.viewDomNode=t.viewDomNode,this.lineHeight=s.get(67),this.stickyTabStops=s.get(117),this.typicalHalfwidthCharacterWidth=s.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return se.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const s=i.verticalOffset+i.height/2,n=e.viewModel.getLineCount();let r,o=null,a=null;return i.afterLineNumber!==n&&(a=new Y.y(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(o=new Y.y(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),r=null===a?o:null===o?a:t<s?o:a,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:o,positionAfter:a,position:r}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){const e=this._context.viewModel.getLineCount(),t=this._context.viewModel.getLineMaxColumn(e);return{range:new q.Q(e,t,e,t),isAfterLines:!0}}const t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),i=this._context.viewModel.getLineMaxColumn(t);return{range:new q.Q(t,1,t,i),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}isInTopPadding(e){return this._context.viewLayout.isInTopPadding(e)}isInBottomPadding(e){return this._context.viewLayout.isInBottomPadding(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return se._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,i){for(;e&&e!==e.ownerDocument.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===i)return null;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class ne{constructor(e,t,i,s){this.editorPos=t,this.pos=i,this.relativePos=s,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+this.relativePos.x-e.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<e.layoutInfo.contentLeft&&this.relativePos.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,le._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class re extends ne{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=G.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(e,t,i,s,n){super(e,t,i,s),this.hitTestResult=new X.d((()=>le.doHitTest(this._ctx,this))),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=e,this._eventTarget=n;const r=Boolean(this._eventTarget);this._useHitTestTarget=!r}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&null!==this.hitTestResult.value.hitTarget&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(e=null){return e&&e.column<this._ctx.viewModel.getLineMaxColumn(e.lineNumber)?$.A.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(e.lineNumber),e.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(e=null){return te.createUnknown(this.target,this._getMouseColumn(e),e)}fulfillTextarea(){return te.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(e,t,i,s){return te.createMargin(e,this.target,this._getMouseColumn(t),t,i,s)}fulfillViewZone(e,t,i){return te.createViewZone(e,this.target,this._getMouseColumn(t),t,i)}fulfillContentText(e,t,i){return te.createContentText(this.target,this._getMouseColumn(e),e,t,i)}fulfillContentEmpty(e,t){return te.createContentEmpty(this.target,this._getMouseColumn(e),e,t)}fulfillContentWidget(e){return te.createContentWidget(this.target,this._getMouseColumn(),e)}fulfillScrollbar(e){return te.createScrollbar(this.target,this._getMouseColumn(e),e)}fulfillOverlayWidget(e){return te.createOverlayWidget(this.target,this._getMouseColumn(),e)}}const oe={isAfterLines:!0};function ae(e){return{isAfterLines:!1,horizontalDistanceToText:e}}class le{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){const t=e.target,i=G.collect(t,this._viewHelper.viewDomNode);return!(!ie.isChildOfContentWidgets(i)&&!ie.isChildOfOverflowingContentWidgets(i))||!(!ie.isChildOfOverlayWidgets(i)&&!ie.isChildOfOverflowingOverlayWidgets(i))}createMouseTarget(e,t,i,s,n){const r=new se(this._context,this._viewHelper,e),o=new re(r,t,i,s,n);try{const e=le._createMouseTarget(r,o);if(6===e.type&&r.stickyTabStops&&null!==e.position){const t=le._snapToSoftTabBoundary(e.position,r.viewModel),i=q.Q.fromPositions(t,t).plusRange(e.range);return o.fulfillContentText(t,i,e.detail)}return e}catch(a){return o.fulfillUnknown()}}static _createMouseTarget(e,t){if(null===t.target)return t.fulfillUnknown();const i=t;let s=null;return ie.isChildOfOverflowGuard(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)||(s=s||t.fulfillUnknown()),s=s||le._hitTestContentWidget(e,i),s=s||le._hitTestOverlayWidget(e,i),s=s||le._hitTestMinimap(e,i),s=s||le._hitTestScrollbarSlider(e,i),s=s||le._hitTestViewZone(e,i),s=s||le._hitTestMargin(e,i),s=s||le._hitTestViewCursor(e,i),s=s||le._hitTestTextArea(e,i),s=s||le._hitTestViewLines(e,i),s=s||le._hitTestScrollbar(e,i),s||t.fulfillUnknown()}static _hitTestContentWidget(e,t){if(ie.isChildOfContentWidgets(t.targetPath)||ie.isChildOfOverflowingContentWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillContentWidget(i):t.fulfillUnknown()}return null}static _hitTestOverlayWidget(e,t){if(ie.isChildOfOverlayWidgets(t.targetPath)||ie.isChildOfOverflowingOverlayWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillOverlayWidget(i):t.fulfillUnknown()}return null}static _hitTestViewCursor(e,t){if(t.target){const i=e.lastRenderData.lastViewCursorsRenderData;for(const e of i)if(t.target===e.domNode)return t.fulfillContentText(e.position,null,{mightBeForeignElement:!1,injectedText:null})}if(t.isInContentArea){const i=e.lastRenderData.lastViewCursorsRenderData,s=t.mouseContentHorizontalOffset,n=t.mouseVerticalOffset;for(const r of i){if(s<r.contentLeft)continue;if(s>r.contentLeft+r.width)continue;const i=e.getVerticalOffsetForLineNumber(r.position.lineNumber);if(i<=n&&n<=i+r.height)return t.fulfillContentText(r.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const e=t.isInContentArea?8:5;return t.fulfillViewZone(e,i.position,i)}return null}static _hitTestTextArea(e,t){return ie.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),s=i.range.getStartPosition();let n=Math.abs(t.relativePos.x);const r={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:n};if(n-=e.layoutInfo.glyphMarginLeft,n<=e.layoutInfo.glyphMarginWidth){const o=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i.range.getStartPosition()),a=e.viewModel.glyphLanes.getLanesAtLine(o.lineNumber);return r.glyphMarginLane=a[Math.floor(n/e.lineHeight)],t.fulfillMargin(2,s,i.range,r)}return n-=e.layoutInfo.glyphMarginWidth,n<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,s,i.range,r):(n-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,s,i.range,r))}return null}static _hitTestViewLines(e,t){if(!ie.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new Y.y(1,1),oe);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const i=e.viewModel.getLineCount(),s=e.viewModel.getLineMaxColumn(i);return t.fulfillContentEmpty(new Y.y(i,s),oe)}if(ie.isStrictChildOfViewLines(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.viewModel.getLineLength(i)){const s=e.getLineWidth(i),n=ae(t.mouseContentHorizontalOffset-s);return t.fulfillContentEmpty(new Y.y(i,1),n)}const s=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=s){const n=ae(t.mouseContentHorizontalOffset-s),r=new Y.y(i,e.viewModel.getLineMaxColumn(i));return t.fulfillContentEmpty(r,n)}}const i=t.hitTestResult.value;return 1===i.type?le.createMouseTargetFromHitTestPosition(e,t,i.spanNode,i.position,i.injectedText):t.wouldBenefitFromHitTestTargetSwitch?(t.switchToHitTestTarget(),this._createMouseTarget(e,t)):t.fulfillUnknown()}static _hitTestMinimap(e,t){if(ie.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}return null}static _hitTestScrollbarSlider(e,t){if(ie.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}}return null}static _hitTestScrollbar(e,t){if(ie.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new Y.y(i,s))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(146),s=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return le._getMouseColumn(s,t.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){if(e<0)return 1;return Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,s,n){const r=s.lineNumber,o=s.column,a=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>a){const e=ae(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(s,e)}const c=e.visibleRangeForPosition(r,o);if(!c)return t.fulfillUnknown(s);const h=c.left;if(Math.abs(t.mouseContentHorizontalOffset-h)<1)return t.fulfillContentText(s,null,{mightBeForeignElement:!!n,injectedText:n});const d=[];if(d.push({offset:c.left,column:o}),o>1){const t=e.visibleRangeForPosition(r,o-1);t&&d.push({offset:t.left,column:o-1})}if(o<e.viewModel.getLineMaxColumn(r)){const t=e.visibleRangeForPosition(r,o+1);t&&d.push({offset:t.left,column:o+1})}d.sort(((e,t)=>e.offset-t.offset));const u=t.pos.toClientCoordinates(l.zk(e.viewDomNode)),g=i.getBoundingClientRect(),p=g.left<=u.clientX&&u.clientX<=g.right;let m=null;for(let l=1;l<d.length;l++){const e=d[l-1],i=d[l];if(e.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=i.offset){m=new q.Q(r,e.column,r,i.column);s=Math.abs(e.offset-t.mouseContentHorizontalOffset)<Math.abs(i.offset-t.mouseContentHorizontalOffset)?new Y.y(r,e.column):new Y.y(r,i.column);break}}return t.fulfillContentText(s,m,{mightBeForeignElement:!p||!!n,injectedText:n})}static _doHitTestWithCaretRangeFromPoint(e,t){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),s=e.getVerticalOffsetForLineNumber(i),n=s+e.lineHeight;if(!(i===e.viewModel.getLineCount()&&t.mouseVerticalOffset>n)){const i=Math.floor((s+n)/2);let r=t.pos.y+(i-t.mouseVerticalOffset);r<=t.editorPos.y&&(r=t.editorPos.y+1),r>=t.editorPos.y+t.editorPos.height&&(r=t.editorPos.y+t.editorPos.height-1);const o=new W.nz(t.pos.x,r),a=this._actualDoHitTestWithCaretRangeFromPoint(e,o.toClientCoordinates(l.zk(e.viewDomNode)));if(1===a.type)return a}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates(l.zk(e.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=l.jG(e.viewDomNode);let s;if(s=i?"undefined"===typeof i.caretRangeFromPoint?function(e,t,i){const s=document.createRange();let n=e.elementFromPoint(t,i);if(null!==n){for(;n&&n.firstChild&&n.firstChild.nodeType!==n.firstChild.TEXT_NODE&&n.lastChild&&n.lastChild.firstChild;)n=n.lastChild;const e=n.getBoundingClientRect(),i=l.zk(n),r=`${i.getComputedStyle(n,null).getPropertyValue("font-style")} ${i.getComputedStyle(n,null).getPropertyValue("font-variant")} ${i.getComputedStyle(n,null).getPropertyValue("font-weight")} ${i.getComputedStyle(n,null).getPropertyValue("font-size")}/${i.getComputedStyle(n,null).getPropertyValue("line-height")} ${i.getComputedStyle(n,null).getPropertyValue("font-family")}`,o=n.innerText;let a,c=e.left,h=0;if(t>e.left+e.width)h=o.length;else{const e=ce.getInstance();for(let i=0;i<o.length+1;i++){if(a=e.getCharWidth(o.charAt(i),r)/2,c+=a,t<c){h=i;break}c+=a}}s.setStart(n.firstChild,h),s.setEnd(n.firstChild,h)}return s}(i,t.clientX,t.clientY):i.caretRangeFromPoint(t.clientX,t.clientY):e.viewDomNode.ownerDocument.caretRangeFromPoint(t.clientX,t.clientY),!s||!s.startContainer)return new Z;const n=s.startContainer;if(n.nodeType===n.TEXT_NODE){const t=n.parentNode,i=t?t.parentNode:null,r=i?i.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,t,s.startOffset):new Z(n.parentNode)}if(n.nodeType===n.ELEMENT_NODE){const t=n.parentNode,i=t?t.parentNode:null;return(i&&i.nodeType===i.ELEMENT_NODE?i.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,n,n.textContent.length):new Z(n)}return new Z}static _doHitTestWithCaretPositionFromPoint(e,t){const i=e.viewDomNode.ownerDocument.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){const t=i.offsetNode.parentNode,s=t?t.parentNode:null,n=s?s.parentNode:null;return(n&&n.nodeType===n.ELEMENT_NODE?n.className:null)===K.Gb.CLASS_NAME?j.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new Z(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){const t=i.offsetNode.parentNode,s=t&&t.nodeType===t.ELEMENT_NODE?t.className:null,n=t?t.parentNode:null,r=n&&n.nodeType===n.ELEMENT_NODE?n.className:null;if(s===K.Gb.CLASS_NAME){const t=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(t)return j.createFromDOMInfo(e,t,0)}else if(r===K.Gb.CLASS_NAME)return j.createFromDOMInfo(e,i.offsetNode,0)}return new Z(i.offsetNode)}static _snapToSoftTabBoundary(e,t){const i=t.getLineContent(e.lineNumber),{tabSize:s}=t.model.getOptions(),n=Q.s.atomicPosition(i,e.column-1,s,2);return-1!==n?new Y.y(e.lineNumber,n+1):e}static doHitTest(e,t){let i=new Z;if("function"===typeof e.viewDomNode.ownerDocument.caretRangeFromPoint?i=this._doHitTestWithCaretRangeFromPoint(e,t):e.viewDomNode.ownerDocument.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates(l.zk(e.viewDomNode)))),1===i.type){const t=e.viewModel.getInjectedTextAt(i.position),s=e.viewModel.normalizePosition(i.position,2);!t&&s.equals(i.position)||(i=new J(s,i.spanNode,t))}return i}}class ce{static{this._INSTANCE=null}static getInstance(){return ce._INSTANCE||(ce._INSTANCE=new ce),ce._INSTANCE}constructor(){this._cache={},this._canvas=document.createElement("canvas")}getCharWidth(e,t){const i=e+t;if(this._cache[i])return this._cache[i];const s=this._canvas.getContext("2d");s.font=t;const n=s.measureText(e).width;return this._cache[i]=n,n}}var he=i(55089),de=i(25154),ue=i(25893),ge=i(47358),pe=i(75326),me=i(31295);class fe extends V{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new le(this._context,i),this._mouseDownOperation=this._register(new _e(this._context,this.viewController,this.viewHelper,this.mouseTargetFactory,((e,t)=>this._createMouseTarget(e,t)),(e=>this._getMouseColumn(e)))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(146).height;const s=new W.$z(this.viewHelper.viewDomNode);this._register(s.onContextMenu(this.viewHelper.viewDomNode,(e=>this._onContextMenu(e,!0)))),this._register(s.onMouseMove(this.viewHelper.viewDomNode,(e=>{this._onMouseMove(e),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=l.ko(this.viewHelper.viewDomNode.ownerDocument,"mousemove",(e=>{this.viewHelper.viewDomNode.contains(e.target)||this._onMouseLeave(new W.dO(e,!1,this.viewHelper.viewDomNode))})))}))),this._register(s.onMouseUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(s.onMouseLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e))));let n=0;this._register(s.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>{n=t}))),this._register(l.ko(this.viewHelper.viewDomNode,l.Bx.POINTER_UP,(e=>{this._mouseDownOperation.onPointerUp()}))),this._register(s.onMouseDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e,n)))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const e=me.QC.INSTANCE;let t=0,i=R.D.getZoomLevel(),s=!1,n=0;function r(e){return _.zx?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey}this._register(l.ko(this.viewHelper.viewDomNode,l.Bx.MOUSE_WHEEL,(o=>{if(this.viewController.emitMouseWheel(o),!this._context.configuration.options.get(76))return;const a=new ge.$(o);if(e.acceptStandardWheelEvent(a),e.isPhysicalMouseWheel()){if(r(o)){const e=R.D.getZoomLevel(),t=a.deltaY>0?1:-1;R.D.setZoomLevel(e+t),a.preventDefault(),a.stopPropagation()}}else Date.now()-t>50&&(i=R.D.getZoomLevel(),s=r(o),n=0),t=Date.now(),n+=a.deltaY,s&&(R.D.setZoomLevel(i+n/5),a.preventDefault(),a.stopPropagation())}),{capture:!0,passive:!1}))}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(146)){const e=this._context.configuration.options.get(146).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}getTargetAtClientPoint(e,t){const i=new W.Hh(e,t).toPageCoordinates(l.zk(this.viewHelper.viewDomNode)),s=(0,W.wt)(this.viewHelper.viewDomNode);if(i.y<s.y||i.y>s.y+s.height||i.x<s.x||i.x>s.x+s.width)return null;const n=(0,W.i_)(this.viewHelper.viewDomNode,s,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),s,i,n,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const t=l.jG(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find((e=>this.viewHelper.viewDomNode.contains(e))))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),this._mouseDownOperation.isActive())return;e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e,t){const i=this._createMouseTarget(e,!0),s=6===i.type||7===i.type,n=2===i.type||3===i.type||4===i.type,r=3===i.type,o=this._context.configuration.options.get(110),a=8===i.type||5===i.type,l=9===i.type;let c=e.leftButton||e.middleButton;_.zx&&e.leftButton&&e.ctrlKey&&(c=!1);const h=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(c&&(s||r&&o))h(),this._mouseDownOperation.start(i.type,e,t);else if(n)e.preventDefault();else if(a){const s=i.detail;c&&this.viewHelper.shouldSuppressMouseDownOnViewZone(s.viewZoneId)&&(h(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class _e extends d.jG{constructor(e,t,i,s,n,r){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._mouseTargetFactory=s,this._createMouseTarget=n,this._getMouseColumn=r,this._mouseMoveMonitor=this._register(new W.BA(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new ve(this._context,this._viewHelper,this._mouseTargetFactory,((e,t,i)=>this._dispatchMouse(e,t,i)))),this._mouseState=new be,this._currentSelection=new pe.L(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):13!==t.type||"above"!==t.outsidePosition&&"below"!==t.outsidePosition?(this._topBottomDragScrolling.stop(),this._dispatchMouse(t,!0,1)):this._topBottomDragScrolling.start(t,e))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const s=this._findMousePosition(t,!0);if(!s||!s.position)return;this._mouseState.trySetCount(t.detail,s.position),t.detail=this._mouseState.count;const n=this._context.configuration.options;if(!n.get(92)&&n.get(35)&&!n.get(22)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===s.type&&s.position&&this._currentSelection.containsPosition(s.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(e=>{const t=this._findMousePosition(this._lastMouseEvent,!1);l.kx(e)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(s,t.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(()=>this._stop())))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,s=this._context.viewLayout,n=this._getMouseColumn(e);if(e.posy<t.y){const i=t.y-e.posy,r=Math.max(s.getCurrentScrollTop()-i,0),o=se.getZoneAtCoord(this._context,r);if(o){const e=this._helpPositionJumpOverViewZone(o);if(e)return te.createOutsideEditor(n,e,"above",i)}const a=s.getLineNumberAtVerticalOffset(r);return te.createOutsideEditor(n,new Y.y(a,1),"above",i)}if(e.posy>t.y+t.height){const r=e.posy-t.y-t.height,o=s.getCurrentScrollTop()+e.relativePos.y,a=se.getZoneAtCoord(this._context,o);if(a){const e=this._helpPositionJumpOverViewZone(a);if(e)return te.createOutsideEditor(n,e,"below",r)}const l=s.getLineNumberAtVerticalOffset(o);return te.createOutsideEditor(n,new Y.y(l,i.getLineMaxColumn(l)),"below",r)}const r=s.getLineNumberAtVerticalOffset(s.getCurrentScrollTop()+e.relativePos.y);if(e.posx<t.x){const i=t.x-e.posx;return te.createOutsideEditor(n,new Y.y(r,1),"left",i)}if(e.posx>t.x+t.width){const s=e.posx-t.x-t.width;return te.createOutsideEditor(n,new Y.y(r,i.getLineMaxColumn(r)),"right",s)}return null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const s=this._createMouseTarget(e,t);if(!s.position)return null;if(8===s.type||5===s.type){const e=this._helpPositionJumpOverViewZone(s.detail);if(e)return te.createViewZone(s.type,s.element,s.mouseColumn,e,s.detail)}return s}_helpPositionJumpOverViewZone(e){const t=new Y.y(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,s=e.positionAfter;return i&&s?i.isBefore(t)?i:s:null}_dispatchMouse(e,t,i){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:i,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class ve extends d.jG{constructor(e,t,i,s){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=s,this._operation=null}dispose(){super.dispose(),this.stop()}start(e,t){this._operation?this._operation.setPosition(e,t):this._operation=new Ce(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,e,t)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}}class Ce extends d.jG{constructor(e,t,i,s,n,r){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=s,this._position=n,this._mouseEvent=r,this._lastTime=Date.now(),this._animationFrameDisposable=l.PG(l.zk(r.browserEvent),(()=>this._execute()))}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(e,t){this._position=e,this._mouseEvent=t}_tick(){const e=Date.now(),t=e-this._lastTime;return this._lastTime=e,t}_getScrollSpeed(){const e=this._context.configuration.options.get(67),t=this._context.configuration.options.get(146).height/e,i=this._position.outsideDistance/e;return i<=1.5?Math.max(30,t*(1+i)):i<=3?Math.max(60,t*(2+i)):Math.max(200,t*(7+i))}_execute(){const e=this._context.configuration.options.get(67),t=this._getScrollSpeed()*(this._tick()/1e3)*e,i="above"===this._position.outsidePosition?-t:t;this._context.viewModel.viewLayout.deltaScrollNow(0,i),this._viewHelper.renderNow();const s=this._context.viewLayout.getLinesViewportData(),n="above"===this._position.outsidePosition?s.startLineNumber:s.endLineNumber;let r;{const e=(0,W.wt)(this._viewHelper.viewDomNode),t=this._context.configuration.options.get(146).horizontalScrollbarHeight,i=new W.nz(this._mouseEvent.pos.x,e.y+e.height-t-.1),s=(0,W.i_)(this._viewHelper.viewDomNode,e,i);r=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),e,i,s,null)}r.position&&r.position.lineNumber===n||(r="above"===this._position.outsidePosition?te.createOutsideEditor(this._position.mouseColumn,new Y.y(n,1),"above",this._position.outsideDistance):te.createOutsideEditor(this._position.mouseColumn,new Y.y(n,this._context.viewModel.getLineMaxColumn(n)),"below",this._position.outsideDistance)),this._dispatchMouse(r,!0,2),this._animationFrameDisposable=l.PG(l.zk(r.element),(()=>this._execute()))}}class be{static{this.CLEAR_MOUSE_DOWN_COUNT_TIME=400}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=(new Date).getTime();i-this._lastSetMouseDownCountTime>be.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}var Ee=i(68792);class Se extends fe{constructor(e,t,i){super(e,t,i),this._register(de.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(l.ko(this.viewHelper.linesContentDomNode,de.B.Tap,(e=>this.onTap(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,de.B.Change,(e=>this.onChange(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,de.B.Contextmenu,(e=>this._onContextMenu(new W.dO(e,!1,this.viewHelper.viewDomNode),!1)))),this._lastPointerType="mouse",this._register(l.ko(this.viewHelper.linesContentDomNode,"pointerdown",(e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));const s=new W.DW(this.viewHelper.viewDomNode);this._register(s.onPointerMove(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)))),this._register(s.onPointerUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(s.onPointerLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(s.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>this._onMouseDown(e,t))))}onTap(e){e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)&&(e.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(e,!1))}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY),"pen"===this._lastPointerType&&this._dispatchGesture(e,!0)}_dispatchGesture(e,t){const i=this._createMouseTarget(new W.dO(e,!1,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:e.tapCount,inSelectionMode:t,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===i.type&&null!==i.detail.injectedText})}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class ye extends fe{constructor(e,t,i){super(e,t,i),this._register(de.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(l.ko(this.viewHelper.linesContentDomNode,de.B.Tap,(e=>this.onTap(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,de.B.Change,(e=>this.onChange(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,de.B.Contextmenu,(e=>this._onContextMenu(new W.dO(e,!1,this.viewHelper.viewDomNode),!1))))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new W.dO(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(Ee.$D.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position,1)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class we extends d.jG{constructor(e,t,i){super();(_.un||_.m0&&_.Fr)&&he.e.pointerEvents?this.handler=this._register(new Se(e,t,i)):ue.G.TouchEvent?this.handler=this._register(new ye(e,t,i)):this.handler=this._register(new fe(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}var Le=i(78209),Re=i(91508),Te=i(69785);class xe extends V{}var ke=i(47612),Ae=i(87119);class Ne extends xe{static{this.CLASS_NAME="line-numbers"}constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new Y.y(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(67);const t=e.get(68);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(96);const i=e.get(146);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onDecorationsChanged(e){return e.affectsLineNumber}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(e,1));if(1!==t.column)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?'<span class="relative-current-line-number">'+i+"</span>":String(e)}if(3===this._renderLineNumbers){if(this._lastCursorModelPosition.lineNumber===i)return String(i);if(i%10===0)return String(i);return i===this._context.viewModel.getLineCount()?String(i):""}return String(i)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=_.j9?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,n=this._context.viewModel.getDecorationsInViewport(e.visibleRange).filter((e=>!!e.options.lineNumberClassName));n.sort(((e,t)=>q.Q.compareRangesUsingEnds(e.range,t.range)));let r=0;const o=this._context.viewModel.getLineCount(),a=[];for(let l=i;l<=s;l++){const e=l-i;let s=this._getLineRenderLineNumber(l),c="";for(;r<n.length&&n[r].range.endLineNumber<l;)r++;for(let t=r;t<n.length;t++){const{range:e,options:i}=n[t];e.startLineNumber<=l&&(c+=" "+i.lineNumberClassName)}s||c?(l===o&&0===this._context.viewModel.getLineLength(l)&&("off"===this._renderFinalNewline&&(s=""),"dimmed"===this._renderFinalNewline&&(c+=" dimmed-line-number")),l===this._activeLineNumber&&(c+=" active-line-number"),a[e]=`<div class="${Ne.CLASS_NAME}${t}${c}" style="left:${this._lineNumbersLeft}px;width:${this._lineNumbersWidth}px;">${s}</div>`):a[e]=""}this._renderResult=a}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}(0,ke.zy)(((e,t)=>{const i=e.getColor(Ae.Qt),s=e.getColor(Ae.JB);s?t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${s}; }`):i&&t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i.transparent(.4)}; }`)}));class Ie extends z{static{this.CLASS_NAME="glyph-margin"}static{this.OUTER_CLASS_NAME="margin"}constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setClassName(Ie.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=(0,H.Z)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Ie.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}var Oe=i(81782);const De="monaco-mouse-cursor-text";var Me=i(62083),Pe=i(47661),Fe=i(2299),Ue=i(98031),He=i(63591),Be=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},We=function(e,t){return function(i,s){t(i,s,e)}};class Ve{constructor(e,t,i,s,n){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=s,this.distanceToModelLineEnd=n,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new Y.y(this.modelLineNumber,this.distanceToModelLineStart+1),i=new Y.y(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(this._previousPresentation=e||{foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const ze=p.gm;let Ge=class extends z{constructor(e,t,i,s,n){super(e),this._keybindingService=s,this._instantiationService=n,this._primaryCursorPosition=new Y.y(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const r=this._context.configuration.options,o=r.get(146);this._setAccessibilityOptions(r),this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._contentHeight=o.height,this._fontInfo=r.get(50),this._lineHeight=r.get(67),this._emptySelectionClipboard=r.get(37),this._copyWithSyntaxHighlighting=r.get(25),this._visibleTextArea=null,this._selections=[new pe.L(1,1,1,1)],this._modelSelections=[new pe.L(1,1,1,1)],this._lastRenderPosition=null,this.textArea=(0,H.Z)(document.createElement("textarea")),G.write(this.textArea,7),this.textArea.setClassName(`inputarea ${De}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:a}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=a*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(r)),this.textArea.setAttribute("aria-required",r.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(r.get(125))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",Le.kg("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",r.get(92)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=(0,H.Z)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const l={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:e=>this._context.viewModel.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.viewModel.getValueInRange(e,t),getValueLengthInRange:(e,t)=>this._context.viewModel.getValueLengthInRange(e,t),modifyPosition:(e,t)=>this._context.viewModel.modifyPosition(e,t)},c={getDataToCopy:()=>{const e=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,_.uF),t=this._context.viewModel.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),s=Array.isArray(e)?e:null,n=Array.isArray(e)?e.join(t):e;let r,o=null;if(Ee.Eq.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&n.length<65536){const e=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(r=e.html,o=e.mode)}return{isFromEmptySelection:i,multicursorText:s,text:n,html:r,mode:o}},getScreenReaderContent:()=>{if(1===this._accessibilitySupport){const e=this._selections[0];if(_.zx&&e.isEmpty()){const t=e.getStartPosition();let i=this._getWordBeforePosition(t);if(0===i.length&&(i=this._getCharacterBeforePosition(t)),i.length>0)return new Te._O(i,i.length,i.length,q.Q.fromPositions(t),0)}const t=500;if(_.zx&&!e.isEmpty()&&l.getValueLengthInRange(e,0)<t){const t=l.getValueInRange(e,0);return new Te._O(t,0,t.length,e,0)}if(p.nr&&!e.isEmpty()){const e="vscode-placeholder";return new Te._O(e,0,e.length,null,void 0)}return Te._O.EMPTY}if(p.m0){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition(),[i,s]=this._getAndroidWordAtPosition(t);if(i.length>0)return new Te._O(i,s,s,q.Q.fromPositions(t),0)}return Te._O.EMPTY}return Te.Al.fromEditorSelection(l,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,i)},h=this._register(new Ee.M0(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(Ee.No,c,h,_.OS,{isAndroid:p.m0,isChrome:p.H8,isFirefox:p.gm,isSafari:p.nr})),this._register(this._textAreaInput.onKeyDown((e=>{this._viewController.emitKeyDown(e)}))),this._register(this._textAreaInput.onKeyUp((e=>{this._viewController.emitKeyUp(e)}))),this._register(this._textAreaInput.onPaste((e=>{let t=!1,i=null,s=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null,s=e.metadata.mode),this._viewController.paste(e.text,t,i,s)}))),this._register(this._textAreaInput.onCut((()=>{this._viewController.cut()}))),this._register(this._textAreaInput.onType((e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(Te.Hf&&console.log(` => compositionType: <<${e.text}>>, ${e.replacePrevCharCnt}, ${e.replaceNextCharCnt}, ${e.positionDelta}`),this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(Te.Hf&&console.log(` => type: <<${e.text}>>`),this._viewController.type(e.text))}))),this._register(this._textAreaInput.onSelectionChangeRequest((e=>{this._viewController.setSelection(e)}))),this._register(this._textAreaInput.onCompositionStart((e=>{const t=this.textArea.domNode,i=this._modelSelections[0],{distanceToModelLineStart:s,widthOfHiddenTextBefore:n}=(()=>{const e=t.value.substring(0,Math.min(t.selectionStart,t.selectionEnd)),s=e.lastIndexOf("\n"),n=e.substring(s+1),r=n.lastIndexOf("\t"),o=n.length-r-1,a=i.getStartPosition(),l=Math.min(a.column-1,o),c=a.column-1-l,h=n.substring(0,n.length-l),{tabSize:d}=this._context.viewModel.model.getOptions(),u=function(e,t,i,s){if(0===t.length)return 0;const n=e.createElement("div");n.style.position="absolute",n.style.top="-50000px",n.style.width="50000px";const r=e.createElement("span");(0,g.M)(r,i),r.style.whiteSpace="pre",r.style.tabSize=s*i.spaceWidth+"px",r.append(t),n.appendChild(r),e.body.appendChild(n);const o=r.offsetWidth;return n.remove(),o}(this.textArea.domNode.ownerDocument,h,this._fontInfo,d);return{distanceToModelLineStart:c,widthOfHiddenTextBefore:u}})(),{distanceToModelLineEnd:r}=(()=>{const e=t.value.substring(Math.max(t.selectionStart,t.selectionEnd)),s=e.indexOf("\n"),n=-1===s?e:e.substring(0,s),r=n.indexOf("\t"),o=-1===r?n.length:n.length-r-1,a=i.getEndPosition(),l=Math.min(this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column,o);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column-l}})();this._context.viewModel.revealRange("keyboard",!0,q.Q.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new Ve(this._context,i.startLineNumber,s,n,r),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${De} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()}))),this._register(this._textAreaInput.onCompositionUpdate((e=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())}))),this._register(this._textAreaInput.onCompositionEnd((()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${De}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()}))),this._register(this._textAreaInput.onFocus((()=>{this._context.viewModel.setHasFocus(!0)}))),this._register(this._textAreaInput.onBlur((()=>{this._context.viewModel.setHasFocus(!1)}))),this._register(Fe.M.onDidChange((()=>{this._ensureReadOnlyAttribute()})))}writeScreenReaderContent(e){this._textAreaInput.writeNativeTextAreaContent(e)}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Oe.i)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',[]);let s=!0,n=e.column,r=!0,o=e.column,a=0;for(;a<50&&(s||r);){if(s&&n<=1&&(s=!1),s){const e=t.charCodeAt(n-2);0!==i.get(e)?s=!1:n--}if(r&&o>t.length&&(r=!1),r){const e=t.charCodeAt(o-1);0!==i.get(e)?r=!1:o++}a++}return[t.substring(n-1,o-1),e.column-n]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Oe.i)(this._context.configuration.options.get(132),[]);let s=e.column,n=0;for(;s>1;){const r=t.charCodeAt(s-2);if(0!==i.get(r)||n>50)return t.substring(s-1,e.column-1);n++,s--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!Re.pc(t.charCodeAt(0)))return t}return""}_getAriaLabel(e){if(1===e.get(2)){const e=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode")?.getAriaLabel(),t=this._keybindingService.lookupKeybinding("workbench.action.showCommands")?.getAriaLabel(),i=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings")?.getAriaLabel(),s=Le.kg("accessibilityModeOff","The editor is not accessible at this time.");return e?Le.kg("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",s,e):t?Le.kg("accessibilityOffAriaLabelNoKb","{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",s,t):i?Le.kg("accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",s,i):s}return e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===L.qB.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t;const i=e.get(146).wrappingColumn;if(-1!==i&&1!==this._accessibilitySupport){const t=e.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(i*t.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=ze?0:1}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(50),this._lineHeight=t.get(67),this._emptySelectionClipboard=t.get(37),this._copyWithSyntaxHighlighting=t.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:s}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=s*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("aria-required",t.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(t.get(125))),(e.hasChanged(34)||e.hasChanged(92))&&this._ensureReadOnlyAttribute(),e.hasChanged(2)&&this._textAreaInput.writeNativeTextAreaContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeNativeTextAreaContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}_ensureReadOnlyAttribute(){const e=this._context.configuration.options;!Fe.M.enabled||e.get(34)&&e.get(92)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(e){this._primaryCursorPosition=new Y.y(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),this._visibleTextArea?.prepareRender(e)}render(e){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){if(this._visibleTextArea){const e=this._visibleTextArea.visibleTextareaStart,t=this._visibleTextArea.visibleTextareaEnd,i=this._visibleTextArea.startPosition,s=this._visibleTextArea.endPosition;if(i&&s&&e&&t&&t.left>=this._scrollLeft&&e.left<=this._scrollLeft+this._contentWidth){const n=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,r=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let o=this._visibleTextArea.widthOfHiddenLineTextBefore,a=this._contentLeft+e.left-this._scrollLeft,l=t.left-e.left+1;if(a<this._contentLeft){const e=this._contentLeft-a;a+=e,o+=e,l-=e}l>this._contentWidth&&(l=this._contentWidth);const c=this._context.viewModel.getViewLineData(i.lineNumber),h=c.tokens.findTokenIndexAtOffset(i.column-1),d=h===c.tokens.findTokenIndexAtOffset(s.column-1),u=this._visibleTextArea.definePresentation(d?c.tokens.getPresentation(h):null);this.textArea.domNode.scrollTop=r*this._lineHeight,this.textArea.domNode.scrollLeft=o,this._doRender({lastRenderPosition:null,top:n,left:a,width:l,height:this._lineHeight,useCover:!1,color:(Me.dG.getColorMap()||[])[u.foreground],italic:u.italic,bold:u.bold,underline:u.underline,strikethrough:u.strikethrough})}return}if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(t<0||t>this._contentHeight)this._renderAtTopLeft();else if(_.zx||2===this._accessibilitySupport){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:this._textAreaWrapping?this._contentLeft:e,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const i=this._textAreaInput.textAreaState.newlineCountBeforeSelection??this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=i*this._lineHeight}else this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:this._textAreaWrapping?this._contentLeft:e,width:this._textAreaWidth,height:ze?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;for(;;){if(i=e.indexOf("\n",i+1),-1===i)break;t++}return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:ze?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;(0,g.M)(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?Pe.Q1.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const s=this._context.configuration.options;s.get(57)?i.setClassName("monaco-editor-background textAreaCover "+Ie.OUTER_CLASS_NAME):0!==s.get(68).renderType?i.setClassName("monaco-editor-background textAreaCover "+Ne.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}};Ge=Be([We(3,Ue.b),We(4,He._Y)],Ge);var je=i(80624),Ke=i(36999);class Ye{constructor(e,t,i,s){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=s}paste(e,t,i,s){this.commandDelegate.paste(e,t,i,s)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,s){this.commandDelegate.compositionType(e,t,i,s)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Ke.QM.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new Y.y(e.lineNumber,t):e}_hasMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;default:return!1}}_hasNonMulticursorModifier(e){switch(this.configuration.options.get(78)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;default:return!1}}dispatchMouse(e){const t=this.configuration.options,i=_.j9&&t.get(108),s=t.get(22);e.middleButton&&!i?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position,e.revealType):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position,e.revealType):this._lastCursorLineSelect(e.position,e.revealType):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):2===e.mouseDownCount?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position,e.revealType):e.inSelectionMode?this._wordSelectDrag(e.position,e.revealType):this._wordSelect(e.position,e.revealType)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position,e.revealType):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||s?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position,e.revealType):this.moveTo(e.position,e.revealType)}_usualArgs(e,t){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,revealType:t}}moveTo(e,t){Ke.QM.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_moveToSelect(e,t){Ke.QM.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_columnSelect(e,t,i){e=this._validateViewColumn(e),Ke.QM.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),Ke.QM.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e,t){Ke.QM.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelect(e,t){Ke.QM.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelectDrag(e,t){Ke.QM.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorWordSelect(e,t){Ke.QM.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelect(e,t){Ke.QM.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelectDrag(e,t){Ke.QM.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelect(e,t){Ke.QM.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelectDrag(e,t){Ke.QM.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_selectAll(){Ke.QM.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}var qe=i(80789),$e=i(99020);class Qe{constructor(e){this._lineFactory=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new c.D7("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const i=this.getStartLineNumber(),s=this.getEndLineNumber();if(t<i){const i=t-e+1;return this._rendLineNumberStart-=i,null}if(e>s)return null;let n=0,r=0;for(let o=i;o<=s;o++){const i=o-this._rendLineNumberStart;e<=o&&o<=t&&(0===r?(n=i,r=1):r++)}if(e<i){let s=0;s=t<i?t-e+1:i-e,this._rendLineNumberStart-=s}return this._lines.splice(n,r)}onLinesChanged(e,t){const i=e+t-1;if(0===this.getCount())return!1;const s=this.getStartLineNumber(),n=this.getEndLineNumber();let r=!1;for(let o=e;o<=i;o++)o>=s&&o<=n&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(0===this.getCount())return null;const i=t-e+1,s=this.getStartLineNumber(),n=this.getEndLineNumber();if(e<=s)return this._rendLineNumberStart+=i,null;if(e>n)return null;if(i+e>n){return this._lines.splice(e-this._rendLineNumberStart,n-e+1)}const r=[];for(let h=0;h<i;h++)r[h]=this._lineFactory.createLine();const o=e-this._rendLineNumberStart,a=this._lines.slice(0,o),l=this._lines.slice(o,this._lines.length-i),c=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=a.concat(r).concat(l),c}onTokensChanged(e){if(0===this.getCount())return!1;const t=this.getStartLineNumber(),i=this.getEndLineNumber();let s=!1;for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.toLineNumber<t||r.fromLineNumber>i)continue;const o=Math.max(t,r.fromLineNumber),a=Math.min(i,r.toLineNumber);for(let e=o;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),s=!0}}return s}}class Xe{constructor(e){this._lineFactory=e,this.domNode=this._createDomNode(),this._linesCollection=new Qe(this._lineFactory)}_createDomNode(){const e=(0,H.Z)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(146)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,s=t.length;i<s;i++){const e=t[i].getDomNode();e?.remove()}return!0}onLinesInserted(e){const t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(let i=0,s=t.length;i<s;i++){const e=t[i].getDomNode();e?.remove()}return!0}onScrollChanged(e){return e.scrollTopChanged}onTokensChanged(e){return this._linesCollection.onTokensChanged(e.ranges)}onZonesChanged(e){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(e){return this._linesCollection.getLine(e)}renderLines(e){const t=this._linesCollection._get(),i=new Ze(this.domNode.domNode,this._lineFactory,e),s={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},n=i.render(s,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(n.rendLineNumberStart,n.lines)}}class Ze{static{this._ttPolicy=(0,qe.H)("editorViewLayer",{createHTML:e=>e})}constructor(e,t,i){this._domNode=e,this._lineFactory=t,this._viewportData=i}render(e,t,i,s){const n={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(n.rendLineNumberStart+n.linesLength-1<t||i<n.rendLineNumberStart){n.rendLineNumberStart=t,n.linesLength=i-t+1,n.lines=[];for(let e=t;e<=i;e++)n.lines[e-t]=this._lineFactory.createLine();return this._finishRendering(n,!0,s),n}if(this._renderUntouchedLines(n,Math.max(t-n.rendLineNumberStart,0),Math.min(i-n.rendLineNumberStart,n.linesLength-1),s,t),n.rendLineNumberStart>t){const e=t,r=Math.min(i,n.rendLineNumberStart-1);e<=r&&(this._insertLinesBefore(n,e,r,s,t),n.linesLength+=r-e+1)}else if(n.rendLineNumberStart<t){const e=Math.min(n.linesLength,t-n.rendLineNumberStart);e>0&&(this._removeLinesBefore(n,e),n.linesLength-=e)}if(n.rendLineNumberStart=t,n.rendLineNumberStart+n.linesLength-1<i){const e=n.rendLineNumberStart+n.linesLength,r=i;e<=r&&(this._insertLinesAfter(n,e,r,s,t),n.linesLength+=r-e+1)}else if(n.rendLineNumberStart+n.linesLength-1>i){const e=Math.max(0,i-n.rendLineNumberStart+1),t=n.linesLength-1-e+1;t>0&&(this._removeLinesAfter(n,t),n.linesLength-=t)}return this._finishRendering(n,!1,s),n}_renderUntouchedLines(e,t,i,s,n){const r=e.rendLineNumberStart,o=e.lines;for(let a=t;a<=i;a++){const e=r+a;o[a].layoutLine(e,s[e-n],this._viewportData.lineHeight)}}_insertLinesBefore(e,t,i,s,n){const r=[];let o=0;for(let a=t;a<=i;a++)r[o++]=this._lineFactory.createLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i<t;i++){const t=e.lines[i].getDomNode();t?.remove()}e.lines.splice(0,t)}_insertLinesAfter(e,t,i,s,n){const r=[];let o=0;for(let a=t;a<=i;a++)r[o++]=this._lineFactory.createLine();e.lines=e.lines.concat(r)}_removeLinesAfter(e,t){const i=e.linesLength-t;for(let s=0;s<t;s++){const t=e.lines[i+s].getDomNode();t?.remove()}e.lines.splice(i,t)}_finishRenderingNewLines(e,t,i,s){Ze._ttPolicy&&(i=Ze._ttPolicy.createHTML(i));const n=this._domNode.lastChild;t||!n?this._domNode.innerHTML=i:n.insertAdjacentHTML("afterend",i);let r=this._domNode.lastChild;for(let o=e.linesLength-1;o>=0;o--){const t=e.lines[o];s[o]&&(t.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const s=document.createElement("div");Ze._ttPolicy&&(t=Ze._ttPolicy.createHTML(t)),s.innerHTML=t;for(let n=0;n<e.linesLength;n++){const t=e.lines[n];if(i[n]){const e=s.firstChild,i=t.getDomNode();i.parentNode.replaceChild(e,i),t.setDomNode(e)}}}static{this._sb=new $e.fe(1e5)}_finishRendering(e,t,i){const s=Ze._sb,n=e.linesLength,r=e.lines,o=e.rendLineNumberStart,a=[];{s.reset();let l=!1;for(let e=0;e<n;e++){const t=r[e];a[e]=!1;if(t.getDomNode())continue;t.renderLine(e+o,i[e],this._viewportData.lineHeight,this._viewportData,s)&&(a[e]=!0,l=!0)}l&&this._finishRenderingNewLines(e,t,s.build(),a)}{s.reset();let t=!1;const l=[];for(let e=0;e<n;e++){const n=r[e];if(l[e]=!1,a[e])continue;n.renderLine(e+o,i[e],this._viewportData.lineHeight,this._viewportData,s)&&(l[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,s.build(),l)}}}class Je extends z{constructor(e){super(e),this._dynamicOverlays=[],this._isFocused=!1,this._visibleLines=new Xe({createLine:()=>new et(this._dynamicOverlays)}),this.domNode=this._visibleLines.domNode;const t=this._context.configuration.options.get(50);(0,g.M)(this.domNode,t),this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;e<t;e++){if(this._dynamicOverlays[e].shouldRender())return!0}return!1}dispose(){super.dispose();for(let e=0,t=this._dynamicOverlays.length;e<t;e++){this._dynamicOverlays[e].dispose()}this._dynamicOverlays=[]}getDomNode(){return this.domNode}addDynamicOverlay(e){this._dynamicOverlays.push(e)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e);const t=this._context.configuration.options.get(50);return(0,g.M)(this.domNode,t),!0}onFlushed(e){return this._visibleLines.onFlushed(e)}onFocusChanged(e){return this._isFocused=e.isFocused,!0}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onScrollChanged(e){return this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._visibleLines.onZonesChanged(e)}prepareRender(e){const t=this._dynamicOverlays.filter((e=>e.shouldRender()));for(let i=0,s=t.length;i<s;i++){const s=t[i];s.prepareRender(e),s.onDidRender()}}render(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(e){this._visibleLines.renderLines(e.viewportData)}}class et{constructor(e){this._dynamicOverlays=e,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(e){this._domNode=(0,H.Z)(e)}onContentChanged(){}onTokensChanged(){}renderLine(e,t,i,s,n){let r="";for(let o=0,a=this._dynamicOverlays.length;o<a;o++){r+=this._dynamicOverlays[o].render(s.startLineNumber,e)}return this._renderedContent!==r&&(this._renderedContent=r,n.appendString('<div style="top:'),n.appendString(String(t)),n.appendString("px;height:"),n.appendString(String(i)),n.appendString('px;">'),n.appendString(r),n.appendString("</div>"),!0)}layoutLine(e,t,i){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(i))}}class tt extends Je{constructor(e){super(e);const t=this._context.configuration.options.get(146);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class it extends Je{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,g.M)(this.domNode,t.get(50))}onConfigurationChanged(e){const t=this._context.configuration.options;(0,g.M)(this.domNode,t.get(50));const i=t.get(146);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class st{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){this.onKeyDown?.(e)}emitKeyUp(e){this.onKeyUp?.(e)}emitContextMenu(e){this.onContextMenu?.(this._convertViewToModelMouseEvent(e))}emitMouseMove(e){this.onMouseMove?.(this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){this.onMouseLeave?.(this._convertViewToModelMouseEvent(e))}emitMouseDown(e){this.onMouseDown?.(this._convertViewToModelMouseEvent(e))}emitMouseUp(e){this.onMouseUp?.(this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){this.onMouseDrag?.(this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){this.onMouseDrop?.(this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){this.onMouseDropCanceled?.()}emitMouseWheel(e){this.onMouseWheel?.(e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return st.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i={...e};return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),5!==i.type&&8!==i.type||(i.detail=this.convertViewToModelViewZoneData(i.detail,t)),i}static convertViewToModelViewZoneData(e,t){return{viewZoneId:e.viewZoneId,positionBefore:e.positionBefore?t.convertViewPositionToModelPosition(e.positionBefore):e.positionBefore,positionAfter:e.positionAfter?t.convertViewPositionToModelPosition(e.positionAfter):e.positionAfter,position:t.convertViewPositionToModelPosition(e.position),afterLineNumber:t.convertViewPositionToModelPosition(new Y.y(e.afterLineNumber,1)).lineNumber}}}class nt extends z{constructor(e){super(e),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let e=!1;const t=this._context.configuration.options.get(146),i=t.contentWidth-t.verticalScrollbarWidth;this.contentWidth!==i&&(this.contentWidth=i,e=!0);const s=t.contentLeft;return this.contentLeft!==s&&(this.contentLeft=s,e=!0),e}dispose(){super.dispose()}onConfigurationChanged(e){return this.update()}onScrollChanged(e){return e.scrollTopChanged||e.scrollLeftChanged}onDecorationsChanged(e){return!0}onZonesChanged(e){return!0}prepareRender(e){}render(e){let t=0;const i=e.getDecorationsInViewport();for(const s of i){if(!s.options.blockClassName)continue;let i,n,r=this.blocks[t];r||(r=this.blocks[t]=(0,H.Z)(document.createElement("div")),this.domNode.appendChild(r)),s.options.blockIsAfterEnd?(i=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!1),n=e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0)):(i=e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!0),n=s.range.isEmpty()&&!s.options.blockDoesNotCollapse?e.getVerticalOffsetForLineNumber(s.range.startLineNumber,!1):e.getVerticalOffsetAfterLineNumber(s.range.endLineNumber,!0));const[o,a,l,c]=s.options.blockPadding??[0,0,0,0];r.setClassName("blockDecorations-block "+s.options.blockClassName),r.setLeft(this.contentLeft-c),r.setWidth(this.contentWidth+c+a),r.setTop(i-e.scrollTop-o),r.setHeight(n-i+o+l),t++}for(let s=t;s<this.blocks.length;s++)this.blocks[s].domNode.remove();this.blocks.length=t}}class rt extends z{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=(0,H.Z)(document.createElement("div")),G.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=(0,H.Z)(document.createElement("div")),G.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesDeleted(e){return this._updateAnchorsViewPositions(),!0}onLinesInserted(e){return this._updateAnchorsViewPositions(),!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}_updateAnchorsViewPositions(){const e=Object.keys(this._widgets);for(const t of e)this._widgets[t].updateAnchorViewPosition()}addWidget(e){const t=new ot(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i,s,n){this._widgets[e.getId()].setPosition(t,i,s,n),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t];delete this._widgets[t];const i=e.domNode.domNode;i.remove(),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class ot{constructor(e,t,i){this._primaryAnchor=new at(null,null),this._secondaryAnchor=new at(null,null),this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=(0,H.Z)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const s=this._context.configuration.options,n=s.get(146);this._fixedOverflowWidgets=s.get(42),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,this._lineHeight=s.get(67),this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(67),e.hasChanged(146)){const e=t.get(146);this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth()}}updateAnchorViewPosition(){this._setPosition(this._affinity,this._primaryAnchor.modelPosition,this._secondaryAnchor.modelPosition)}_setPosition(e,t,i){function s(e,t,i){if(!e)return new at(null,null);const s=t.model.validatePosition(e);if(t.coordinatesConverter.modelPositionIsVisible(s)){const n=t.coordinatesConverter.convertModelPositionToViewPosition(s,i??void 0);return new at(e,n)}return new at(e,null)}this._affinity=e,this._primaryAnchor=s(t,this._context.viewModel,this._affinity),this._secondaryAnchor=s(i,this._context.viewModel,this._affinity)}_getMaxWidth(){const e=this.domNode.domNode.ownerDocument,t=e.defaultView;return this.allowEditorOverflow?t?.innerWidth||e.documentElement.offsetWidth||e.body.offsetWidth:this._contentWidth}setPosition(e,t,i,s){this._setPosition(s,e,t),this._preference=i,this._primaryAnchor.viewPosition&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,s){const n=e.top,r=n,o=e.top+e.height,a=n-i,l=r>=i,c=o,h=s.viewportHeight-o>=i;let d=e.left;return d+t>s.scrollLeft+s.viewportWidth&&(d=s.scrollLeft+s.viewportWidth-t),d<s.scrollLeft&&(d=s.scrollLeft),{fitsAbove:l,aboveTop:a,fitsBelow:h,belowTop:c,left:d}}_layoutHorizontalSegmentInPage(e,t,i,s){const n=Math.max(15,t.left-s),r=Math.min(t.left+t.width+s,e.width-15),o=this._viewDomNode.domNode.ownerDocument.defaultView;let a=t.left+i-(o?.scrollX??0);if(a+s>r){const e=a-(r-s);a-=e,i-=e}if(a<n){const e=a-n;a-=e,i-=e}return[i,a]}_layoutBoxInPage(e,t,i,s){const n=e.top-i,r=e.top+e.height,o=l.BK(this._viewDomNode.domNode),a=this._viewDomNode.domNode.ownerDocument,c=a.defaultView,h=o.top+n-(c?.scrollY??0),d=o.top+r-(c?.scrollY??0),u=l.tG(a.body),[g,p]=this._layoutHorizontalSegmentInPage(u,o,e.left-s.scrollLeft+this._contentLeft,t),m=h>=22,f=d+i<=u.height-22;return this._fixedOverflowWidgets?{fitsAbove:m,aboveTop:Math.max(h,22),fitsBelow:f,belowTop:d,left:p}:{fitsAbove:m,aboveTop:n,fitsBelow:f,belowTop:r,left:g}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new lt(e.top,e.left+this._contentLeft)}_getAnchorsCoordinates(e){return{primary:t(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),secondary:t(this._secondaryAnchor.viewPosition?.lineNumber===this._primaryAnchor.viewPosition?.lineNumber?this._secondaryAnchor.viewPosition:null,this._affinity,this._lineHeight)};function t(t,i,s){if(!t)return null;const n=e.visibleRangeForPosition(t);if(!n)return null;const r=1===t.column&&3===i?0:n.left,o=e.getVerticalOffsetForLineNumber(t.lineNumber)-e.scrollTop;return new ct(o,r,s)}}_reduceAnchorCoordinates(e,t,i){if(!t)return e;const s=this._context.configuration.options.get(50);let n=t.left;return n=n<e.left?Math.max(n,e.left-i+s.typicalFullwidthCharacterWidth):Math.min(n,e.left+i-s.typicalFullwidthCharacterWidth),new ct(e.top,n,e.height)}_prepareRenderWidget(e){if(!this._preference||0===this._preference.length)return null;const{primary:t,secondary:i}=this._getAnchorsCoordinates(e);if(!t)return{kind:"offViewport",preserveFocus:this.domNode.domNode.contains(this.domNode.domNode.ownerDocument.activeElement)};if(-1===this._cachedDomNodeOffsetWidth||-1===this._cachedDomNodeOffsetHeight){let e=null;if("function"===typeof this._actual.beforeRender&&(e=ht(this._actual.beforeRender,this._actual)),e)this._cachedDomNodeOffsetWidth=e.width,this._cachedDomNodeOffsetHeight=e.height;else{const e=this.domNode.domNode.getBoundingClientRect();this._cachedDomNodeOffsetWidth=Math.round(e.width),this._cachedDomNodeOffsetHeight=Math.round(e.height)}}const s=this._reduceAnchorCoordinates(t,i,this._cachedDomNodeOffsetWidth);let n;n=this.allowEditorOverflow?this._layoutBoxInPage(s,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e):this._layoutBoxInViewport(s,this._cachedDomNodeOffsetWidth,this._cachedDomNodeOffsetHeight,e);for(let r=1;r<=2;r++)for(const e of this._preference)if(1===e){if(!n)return null;if(2===r||n.fitsAbove)return{kind:"inViewport",coordinate:new lt(n.aboveTop,n.left),position:1}}else{if(2!==e)return this.allowEditorOverflow?{kind:"inViewport",coordinate:this._prepareRenderWidgetAtExactPositionOverflowing(new lt(s.top,s.left)),position:0}:{kind:"inViewport",coordinate:new lt(s.top,s.left),position:0};if(!n)return null;if(2===r||n.fitsBelow)return{kind:"inViewport",coordinate:new lt(n.belowTop,n.left),position:2}}return null}onBeforeRender(e){this._primaryAnchor.viewPosition&&this._preference&&(this._primaryAnchor.viewPosition.lineNumber<e.startLineNumber||this._primaryAnchor.viewPosition.lineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData||"offViewport"===this._renderData.kind)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,"offViewport"===this._renderData?.kind&&this._renderData.preserveFocus?this.domNode.setTop(-1e3):this.domNode.setVisibility("hidden")),void("function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"===typeof this._actual.afterRender&&ht(this._actual.afterRender,this._actual,this._renderData.position)}}class at{constructor(e,t){this.modelPosition=e,this.viewPosition=t}}class lt{constructor(e,t){this.top=e,this.left=t,this._coordinateBrand=void 0}}class ct{constructor(e,t,i){this.top=e,this.left=t,this.height=i,this._anchorCoordinateBrand=void 0}}function ht(e,t,...i){try{return e.call(t,...i)}catch{return null}}var dt=i(86723);class ut extends xe{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(146);this._renderLineHighlight=t.get(97),this._renderLineHighlightOnlyWhenFocus=t.get(98),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new pe.L(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=new Set;for(const n of this._selections)t.add(n.positionLineNumber);const i=Array.from(t);i.sort(((e,t)=>e-t)),m.aI(this._cursorLineNumbers,i)||(this._cursorLineNumbers=i,e=!0);const s=this._selections.every((e=>e.isEmpty()));return this._selectionIsEmpty!==s&&(this._selectionIsEmpty=s,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._renderLineHighlight=t.get(97),this._renderLineHighlightOnlyWhenFocus=t.get(98),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=[];for(let r=t;r<=i;r++){s[r-t]=""}if(this._wordWrap){const n=this._renderOne(e,!1);for(const e of this._cursorLineNumbers){const r=this._context.viewModel.coordinatesConverter,o=r.convertViewPositionToModelPosition(new Y.y(e,1)).lineNumber,a=r.convertModelPositionToViewPosition(new Y.y(o,1)).lineNumber,l=r.convertModelPositionToViewPosition(new Y.y(o,this._context.viewModel.model.getLineMaxColumn(o))).lineNumber,c=Math.max(a,t),h=Math.min(l,i);for(let e=c;e<=h;e++){s[e-t]=n}}}const n=this._renderOne(e,!0);for(const r of this._cursorLineNumbers){if(r<t||r>i)continue;s[r-t]=n}this._renderData=s}render(e,t){if(!this._renderData)return"";const i=t-e;return i>=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class gt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-both":"")+(t?" current-line-exact":"")}" style="width:${Math.max(e.scrollWidth,this._contentWidth)}px;"></div>`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class pt extends ut{_renderOne(e,t){return`<div class="${"current-line"+(this._shouldRenderInMargin()?" current-line-margin":"")+(this._shouldRenderOther()?" current-line-margin-both":"")+(this._shouldRenderInMargin()&&t?" current-line-exact-margin":"")}" style="width:${this._contentLeft}px"></div>`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}(0,ke.zy)(((e,t)=>{const i=e.getColor(Ae.kG);if(i&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${i}; border: none; }`)),!i||i.isTransparent()||e.defines(Ae.Mf)){const i=e.getColor(Ae.Mf);i&&(t.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${i}; }`),(0,dt.Bb)(e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}}));class mt extends xe{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],s=0;for(let a=0,l=t.length;a<l;a++){const e=t[a];e.options.className&&(i[s++]=e)}i=i.sort(((e,t)=>{if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;const i=e.options.className,s=t.options.className;return i<s?-1:i>s?1:q.Q.compareRangesUsingStarts(e.range,t.range)}));const n=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,o=[];for(let a=n;a<=r;a++){o[a-n]=""}this._renderWholeLineDecorations(e,i,o),this._renderNormalDecorations(e,i,o),this._renderResult=o}_renderWholeLineDecorations(e,t,i){const s=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;for(let r=0,o=t.length;r<o;r++){const e=t[r];if(!e.options.isWholeLine)continue;const o='<div class="cdr '+e.options.className+'" style="left:0;width:100%;"></div>',a=Math.max(e.range.startLineNumber,s),l=Math.min(e.range.endLineNumber,n);for(let t=a;t<=l;t++){i[t-s]+=o}}}_renderNormalDecorations(e,t,i){const s=e.visibleRange.startLineNumber;let n=null,r=!1,o=null,a=!1;for(let l=0,c=t.length;l<c;l++){const c=t[l];if(c.options.isWholeLine)continue;const h=c.options.className,d=Boolean(c.options.showIfCollapsed);let u=c.range;d&&1===u.endColumn&&u.endLineNumber!==u.startLineNumber&&(u=new q.Q(u.startLineNumber,u.startColumn,u.endLineNumber-1,this._context.viewModel.getLineMaxColumn(u.endLineNumber-1))),n===h&&r===d&&q.Q.areIntersectingOrTouching(o,u)?o=q.Q.plusRange(o,u):(null!==n&&this._renderNormalDecoration(e,o,n,a,r,s,i),n=h,r=d,o=u,a=c.options.shouldFillLineOnLineBreak??!1)}null!==n&&this._renderNormalDecoration(e,o,n,a,r,s,i)}_renderNormalDecoration(e,t,i,s,n,r,o){const a=e.linesVisibleRangesForRange(t,"findMatch"===i);if(a)for(let l=0,c=a.length;l<c;l++){const e=a[l];if(e.outsideRenderedLine)continue;const t=e.lineNumber-r;if(n&&1===e.ranges.length){const t=e.ranges[0];if(t.width<this._typicalHalfwidthCharacterWidth){const i=Math.round(t.left+t.width/2),s=Math.max(0,Math.round(i-this._typicalHalfwidthCharacterWidth/2));e.ranges[0]=new je.Y(s,this._typicalHalfwidthCharacterWidth)}}for(let n=0,r=e.ranges.length;n<r;n++){const a=s&&e.continuesOnNextLine&&1===r,l=e.ranges[n],c='<div class="cdr '+i+'" style="left:'+String(l.left)+"px;width:"+(a?"100%;":String(l.width)+"px;")+'"></div>';o[t]+=c}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class ft extends z{constructor(e,t,i,s){super(e);const n=this._context.configuration.options,r=n.get(104),o=n.get(75),a=n.get(40),c=n.get(107),h={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,ke.Pz)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:r.vertical,horizontal:r.horizontal,verticalHasArrows:r.verticalHasArrows,horizontalHasArrows:r.horizontalHasArrows,verticalScrollbarSize:r.verticalScrollbarSize,verticalSliderSize:r.verticalSliderSize,horizontalScrollbarSize:r.horizontalScrollbarSize,horizontalSliderSize:r.horizontalSliderSize,handleMouseWheel:r.handleMouseWheel,alwaysConsumeMouseWheel:r.alwaysConsumeMouseWheel,arrowSize:r.arrowSize,mouseWheelScrollSensitivity:o,fastScrollSensitivity:a,scrollPredominantAxis:c,scrollByPage:r.scrollByPage};this.scrollbar=this._register(new me.oO(t.domNode,h,this._context.viewLayout.getScrollable())),G.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=(0,H.Z)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const d=(e,t,i)=>{const s={};if(t){const t=e.scrollTop;t&&(s.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){const t=e.scrollLeft;t&&(s.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(s,1)};this._register(l.ko(i.domNode,"scroll",(e=>d(i.domNode,!0,!0)))),this._register(l.ko(t.domNode,"scroll",(e=>d(t.domNode,!0,!1)))),this._register(l.ko(s.domNode,"scroll",(e=>d(s.domNode,!0,!1)))),this._register(l.ko(this.scrollbarDomNode.domNode,"scroll",(e=>d(this.scrollbarDomNode.domNode,!0,!1))))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(146);this.scrollbarDomNode.setLeft(t.contentLeft);"right"===e.get(73).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this.scrollbar.delegateScrollFromMouseWheelEvent(e)}onConfigurationChanged(e){if(e.hasChanged(104)||e.hasChanged(75)||e.hasChanged(40)){const e=this._context.configuration.options,t=e.get(104),i=e.get(75),s=e.get(40),n=e.get(107),r={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:s,scrollPredominantAxis:n};this.scrollbar.updateOptions(r)}return e.hasChanged(146)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,ke.Pz)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}var _t=i(16223);class vt{constructor(e,t,i,s,n){this.startLineNumber=e,this.endLineNumber=t,this.className=i,this.tooltip=s,this._decorationToRenderBrand=void 0,this.zIndex=n??0}}class Ct{constructor(e,t,i){this.className=e,this.zIndex=t,this.tooltip=i}}class bt{constructor(){this.decorations=[]}add(e){this.decorations.push(e)}getDecorations(){return this.decorations}}class Et extends xe{_render(e,t,i){const s=[];for(let o=e;o<=t;o++){s[o-e]=new bt}if(0===i.length)return s;i.sort(((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1));let n=null,r=0;for(let o=0,a=i.length;o<a;o++){const a=i[o],l=a.className,c=a.zIndex;let h=Math.max(a.startLineNumber,e)-e;const d=Math.min(a.endLineNumber,t)-e;n===l?(h=Math.max(r+1,h),r=Math.max(r,d)):(n=l,r=d);for(let e=h;e<=r;e++)s[e].add(new Ct(l,c,a.tooltip))}return s}}class St extends z{constructor(e){super(e),this._widgets={},this._context=e;const t=this._context.configuration.options,i=t.get(146);this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName("glyph-margin-widgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,this._managedDomNodes=[],this._decorationGlyphsToRender=[]}dispose(){this._managedDomNodes=[],this._decorationGlyphsToRender=[],this._widgets={},super.dispose()}getWidgets(){return Object.values(this._widgets)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._lineHeight=t.get(67),this._glyphMargin=t.get(57),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._glyphMarginDecorationLaneCount=i.glyphMarginDecorationLaneCount,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}addWidget(e){const t=(0,H.Z)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:e.getPosition(),domNode:t,renderInfo:null},t.setPosition("absolute"),t.setDisplay("none"),t.setAttribute("widgetId",e.getId()),this.domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return(i.preference.lane!==t.lane||i.preference.zIndex!==t.zIndex||!q.Q.equalsRange(i.preference.range,t.range))&&(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets[t]){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender()}}_collectDecorationBasedGlyphRenderRequest(e,t){const i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,n=e.getDecorationsInViewport();for(const r of n){const e=r.options.glyphMarginClassName;if(!e)continue;const n=Math.max(r.range.startLineNumber,i),o=Math.min(r.range.endLineNumber,s),a=r.options.glyphMargin?.position??_t.ZS.Center,l=r.options.zIndex??0;for(let i=n;i<=o;i++){const s=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(i,0)),n=this._context.viewModel.glyphLanes.getLanesAtLine(s.lineNumber).indexOf(a);t.push(new yt(i,n,l,e))}}}_collectWidgetBasedGlyphRenderRequest(e,t){const i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(const n of Object.values(this._widgets)){const e=n.preference.range,{startLineNumber:r,endLineNumber:o}=this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(q.Q.lift(e));if(!r||!o||o<i||r>s)continue;const a=Math.max(r,i),l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(a,0)),c=this._context.viewModel.glyphLanes.getLanesAtLine(l.lineNumber).indexOf(n.preference.lane);t.push(new wt(a,c,n.preference.zIndex,n))}}_collectSortedGlyphRenderRequests(e){const t=[];return this._collectDecorationBasedGlyphRenderRequest(e,t),this._collectWidgetBasedGlyphRenderRequest(e,t),t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.laneIndex===t.laneIndex?e.zIndex===t.zIndex?t.type===e.type?0===e.type&&0===t.type?e.className<t.className?-1:1:0:t.type-e.type:t.zIndex-e.zIndex:e.laneIndex-t.laneIndex:e.lineNumber-t.lineNumber)),t}prepareRender(e){if(!this._glyphMargin)return void(this._decorationGlyphsToRender=[]);for(const s of Object.values(this._widgets))s.renderInfo=null;const t=new m.j3(this._collectSortedGlyphRenderRequests(e)),i=[];for(;t.length>0;){const e=t.peek();if(!e)break;const s=t.takeWhile((t=>t.lineNumber===e.lineNumber&&t.laneIndex===e.laneIndex));if(!s||0===s.length)break;const n=s[0];if(0===n.type){const e=[];for(const t of s){if(t.zIndex!==n.zIndex||t.type!==n.type)break;0!==e.length&&e[e.length-1]===t.className||e.push(t.className)}i.push(n.accept(e.join(" ")))}else n.widget.renderInfo={lineNumber:n.lineNumber,laneIndex:n.laneIndex}}this._decorationGlyphsToRender=i}render(e){if(!this._glyphMargin){for(const e of Object.values(this._widgets))e.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;){const e=this._managedDomNodes.pop();e?.domNode.remove()}return}const t=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(const i of Object.values(this._widgets))if(i.renderInfo){const s=e.viewportData.relativeVerticalOffset[i.renderInfo.lineNumber-e.viewportData.startLineNumber],n=this._glyphMarginLeft+i.renderInfo.laneIndex*this._lineHeight;i.domNode.setDisplay("block"),i.domNode.setTop(s),i.domNode.setLeft(n),i.domNode.setWidth(t),i.domNode.setHeight(this._lineHeight)}else i.domNode.setDisplay("none");for(let i=0;i<this._decorationGlyphsToRender.length;i++){const s=this._decorationGlyphsToRender[i],n=e.viewportData.relativeVerticalOffset[s.lineNumber-e.viewportData.startLineNumber],r=this._glyphMarginLeft+s.laneIndex*this._lineHeight;let o;i<this._managedDomNodes.length?o=this._managedDomNodes[i]:(o=(0,H.Z)(document.createElement("div")),this._managedDomNodes.push(o),this.domNode.appendChild(o)),o.setClassName("cgmr codicon "+s.combinedClassName),o.setPosition("absolute"),o.setTop(n),o.setLeft(r),o.setWidth(t),o.setHeight(this._lineHeight)}for(;this._managedDomNodes.length>this._decorationGlyphsToRender.length;){const e=this._managedDomNodes.pop();e?.domNode.remove()}}}class yt{constructor(e,t,i,s){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.className=s,this.type=0}accept(e){return new Lt(this.lineNumber,this.laneIndex,e)}}class wt{constructor(e,t,i,s){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.widget=s,this.type=1}}class Lt{constructor(e,t,i){this.lineNumber=e,this.laneIndex=t,this.combinedClassName=i}}var Rt=i(631),Tt=i(53450),xt=i(84739);class kt extends xe{constructor(e){super(),this._context=e,this._primaryPosition=null;const t=this._context.configuration.options,i=t.get(147),s=t.get(50);this._spaceWidth=s.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*s.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(147),s=t.get(50);return this._spaceWidth=s.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*s.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();return!this._primaryPosition?.equals(t)&&(this._primaryPosition=t,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){if(!this._bracketPairGuideOptions.indentation&&!1===this._bracketPairGuideOptions.bracketPairs)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=e.scrollWidth,n=this._primaryPosition,r=this.getGuidesByLine(t,Math.min(i+1,this._context.viewModel.getLineCount()),n),o=[];for(let a=t;a<=i;a++){const i=a-t,n=r[i];let l="";const c=e.visibleRangeForPosition(new Y.y(a,1))?.left??0;for(const t of n){const i=-1===t.column?c+(t.visibleColumn-1)*this._spaceWidth:e.visibleRangeForPosition(new Y.y(a,t.column)).left;if(i>s||this._maxIndentLeft>0&&i>this._maxIndentLeft)break;const n=t.horizontalLine?t.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",r=t.horizontalLine?(e.visibleRangeForPosition(new Y.y(a,t.horizontalLine.endColumn))?.left??i+this._spaceWidth)-i:this._spaceWidth;l+=`<div class="core-guide ${t.className} ${n}" style="left:${i}px;width:${r}px"></div>`}o[i]=l}this._renderResult=o}getGuidesByLine(e,t,i){const s=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?xt.N6.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?xt.N6.EnabledForActive:xt.N6.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,n=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let r=0,o=0,a=0;if(!1!==this._bracketPairGuideOptions.highlightActiveIndentation&&i){const s=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);r=s.startLineNumber,o=s.endLineNumber,a=s.indent}const{indentSize:l}=this._context.viewModel.model.getOptions(),c=[];for(let h=e;h<=t;h++){const t=new Array;c.push(t);const i=s?s[h-e]:[],d=new m.j3(i),u=n?n[h-e]:0;for(let e=1;e<=u;e++){const s=(e-1)*l+1,n=("always"===this._bracketPairGuideOptions.highlightActiveIndentation||0===i.length)&&r<=h&&h<=o&&e===a;t.push(...d.takeWhile((e=>e.visibleColumn<s))||[]);const c=d.peek();c&&c.visibleColumn===s&&!c.horizontalLine||t.push(new xt.TH(s,-1,"core-guide-indent lvl-"+(e-1)%30+(n?" indent-active":""),null,-1,-1))}t.push(...d.takeWhile((e=>!0))||[])}return c}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function At(e){if(!e||!e.isTransparent())return e}(0,ke.zy)(((e,t)=>{const i=[{bracketColor:Ae.sN,guideColor:Ae.n4,guideColorActive:Ae.bB},{bracketColor:Ae.lQ,guideColor:Ae.I2,guideColorActive:Ae.WS},{bracketColor:Ae.ss,guideColor:Ae.Bo,guideColorActive:Ae.Pe},{bracketColor:Ae.l5,guideColor:Ae.If,guideColorActive:Ae.WD},{bracketColor:Ae.sH,guideColor:Ae.BD,guideColorActive:Ae.P1},{bracketColor:Ae.zp,guideColor:Ae.IW,guideColorActive:Ae.WY}],s=new Tt.k,n=[{indentColor:Ae.vV,indentColorActive:Ae.H0},{indentColor:Ae.ob,indentColorActive:Ae.Am},{indentColor:Ae.hz,indentColorActive:Ae.tK},{indentColor:Ae.ow,indentColorActive:Ae.A3},{indentColor:Ae.vP,indentColorActive:Ae.tp},{indentColor:Ae.CM,indentColorActive:Ae.As}],r=i.map((t=>{const i=e.getColor(t.bracketColor),s=e.getColor(t.guideColor),n=e.getColor(t.guideColorActive),r=At(At(s)??i?.transparent(.3)),o=At(At(n)??i);if(r&&o)return{guideColor:r,guideColorActive:o}})).filter(Rt.O9),o=n.map((t=>{const i=e.getColor(t.indentColor),s=e.getColor(t.indentColorActive),n=At(i),r=At(s);if(n&&r)return{indentColor:n,indentColorActive:r}})).filter(Rt.O9);if(r.length>0){for(let e=0;e<30;e++){const i=r[e%r.length];t.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(e).replace(/ /g,".")} { --guide-color: ${i.guideColor}; --guide-color-active: ${i.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${s.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${s.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${s.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(o.length>0){for(let e=0;e<30;e++){const i=o[e%o.length];t.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${e} { --indent-color: ${i.indentColor}; --indent-color-active: ${i.indentColorActive}; }`)}t.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),t.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}}));var Nt=i(90766);class It{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(e,t){this._domNode=e,this.endNode=t,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}class Ot{constructor(){this._currentVisibleRange=new q.Q(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Dt{constructor(e,t,i,s,n,r,o){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=s,this.startScrollTop=n,this.stopScrollTop=r,this.scrollType=o,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Mt{constructor(e,t,i,s,n){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=s,this.scrollType=n,this.type="selections";let r=t[0].startLineNumber,o=t[0].endLineNumber;for(let a=1,l=t.length;a<l;a++){const e=t[a];r=Math.min(r,e.startLineNumber),o=Math.max(o,e.endLineNumber)}this.minLineNumber=r,this.maxLineNumber=o}}class Pt extends z{static{this.HORIZONTAL_EXTRA_PX=30}constructor(e,t){super(e);const i=this._context.configuration,s=this._context.configuration.options,n=s.get(50),r=s.get(147);this._lineHeight=s.get(67),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=r.isViewportWrapping,this._revealHorizontalRightPadding=s.get(101),this._cursorSurroundingLines=s.get(29),this._cursorSurroundingLinesStyle=s.get(30),this._canUseLayerHinting=!s.get(32),this._viewLineOptions=new K.Ax(i,this._context.theme.type),this._linesContent=t,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new Xe({createLine:()=>new K.Gb(this._viewLineOptions)}),this.domNode=this._visibleLines.domNode,G.write(this.domNode,8),this.domNode.setClassName(`view-lines ${De}`),(0,g.M)(this.domNode,n),this._maxLineWidth=0,this._asyncUpdateLineWidths=new Nt.uC((()=>{this._updateLineWidthsSlow()}),200),this._asyncCheckMonospaceFontAssumptions=new Nt.uC((()=>{this._checkMonospaceFontAssumptions()}),2e3),this._lastRenderedData=new Ot,this._horizontalRevealRequest=null,this._stickyScrollEnabled=s.get(116).enabled,this._maxNumberStickyLines=s.get(116).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(147)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(50),s=t.get(147);return this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=s.isViewportWrapping,this._revealHorizontalRightPadding=t.get(101),this._cursorSurroundingLines=t.get(29),this._cursorSurroundingLinesStyle=t.get(30),this._canUseLayerHinting=!t.get(32),this._stickyScrollEnabled=t.get(116).enabled,this._maxNumberStickyLines=t.get(116).maxLineCount,(0,g.M)(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(146)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new K.Ax(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let t=e;t<=i;t++){this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions)}return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let s=!1;for(let n=t;n<=i;n++)s=this._visibleLines.getVisibleLine(n).onSelectionChanged()||s;return s}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Dt(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Mt(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const s=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,s),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>i)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(null===i)return null;const s=this._getLineNumberFor(i);if(-1===s)return null;if(s<1||s>this._context.viewModel.getLineCount())return null;if(1===this._context.viewModel.getLineMaxColumn(s))return new Y.y(s,1);const n=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(s<n||s>r)return null;let o=this._visibleLines.getVisibleLine(s).getColumnOfNodeOffset(e,t);const a=this._context.viewModel.getLineMinColumn(s);return o<a&&(o=a),new Y.y(s,o)}_getViewLineDomNode(e){for(;e&&1===e.nodeType;){if(e.className===K.Gb.CLASS_NAME)return e;e=e.parentElement}return null}_getLineNumberFor(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let s=t;s<=i;s++){if(e===this._visibleLines.getVisibleLine(s).getDomNode())return s}return-1}getLineWidth(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();if(e<t||e>i)return-1;const s=new It(this.domNode.domNode,this._textRangeRestingSpot),n=this._visibleLines.getVisibleLine(e).getWidth(s);return this._updateLineWidthsSlowIfDomDidLayout(s),n}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,s=q.Q.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!s)return null;const n=[];let r=0;const o=new It(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(s.startLineNumber,1)).lineNumber);const l=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let h=s.startLineNumber;h<=s.endLineNumber;h++){if(h<l||h>c)continue;const e=h===s.startLineNumber?s.startColumn:1,d=h!==s.endLineNumber,u=d?this._context.viewModel.getLineMaxColumn(h):s.endColumn,g=this._visibleLines.getVisibleLine(h).getVisibleRangesForRange(h,e,u,o);if(g){if(t&&h<i){const e=a;a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(h+1,1)).lineNumber,e!==a&&(g.ranges[g.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}n[r++]=new je.BG(g.outsideRenderedLine,h,je.Y.from(g.ranges),d)}}return this._updateLineWidthsSlowIfDomDidLayout(o),0===r?null:n}_visibleRangesForLineRange(e,t,i){if(this.shouldRender())return null;if(e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber())return null;const s=new It(this.domNode.domNode,this._textRangeRestingSpot),n=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,s);return this._updateLineWidthsSlowIfDomDidLayout(s),n}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new je.qN(t.outsideRenderedLine,t.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(e){e.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let s=1,n=!0;for(let r=t;r<=i;r++){const t=this._visibleLines.getVisibleLine(r);!e||t.getWidthIsFast()?s=Math.max(s,t.getWidth(null)):n=!1}return n&&1===t&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(s),n}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();for(let n=i;n<=s;n++){const i=this._visibleLines.getVisibleLine(n);if(i.needsMonospaceFontCheck()){const s=i.getWidth(null);s>t&&(t=s,e=n)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let n=i;n<=s;n++){this._visibleLines.getVisibleLine(n).onMonospaceAssumptionsInvalidated()}}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),_.j9&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++){if(this._visibleLines.getVisibleLine(i).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(e,t,i,s,n,r){const o=e.top,a=e.height,l=o+a;let c,h,d;if(n&&n.length>0){let e=n[0].startLineNumber,t=n[0].endLineNumber;for(let i=1,s=n.length;i<s;i++){const s=n[i];e=Math.min(e,s.startLineNumber),t=Math.max(t,s.endLineNumber)}c=!1,h=this._context.viewLayout.getVerticalOffsetForLineNumber(e),d=this._context.viewLayout.getVerticalOffsetForLineNumber(t)+this._lineHeight}else{if(!s)return-1;c=!0,h=this._context.viewLayout.getVerticalOffsetForLineNumber(s.startLineNumber),d=this._context.viewLayout.getVerticalOffsetForLineNumber(s.endLineNumber)+this._lineHeight}let u,g=0,p=0;if(("mouse"===t||i)&&"default"===this._cursorSurroundingLinesStyle)i||(g=this._lineHeight);else{const e=a/this._lineHeight,t=Math.max(this._cursorSurroundingLines,this._stickyScrollEnabled?this._maxNumberStickyLines:0),i=Math.min(e/2,t);g=i*this._lineHeight,p=Math.max(0,i-1)*this._lineHeight}if(i||0!==r&&4!==r||(p+=this._lineHeight),h-=g,d+=p,d-h>a){if(!c)return-1;u=h}else if(5===r||6===r)if(6===r&&o<=h&&d<=l)u=o;else{const e=h-Math.max(5*this._lineHeight,.2*a),t=d-a;u=Math.max(t,e)}else if(1===r||2===r)if(2===r&&o<=h&&d<=l)u=o;else{const e=(h+d)/2;u=Math.max(0,e-a/2)}else u=this._computeMinimumScrolling(o,l,h,d,3===r,4===r);return u}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=this._context.configuration.options.get(146),s=t.left,n=s+t.width-i.verticalScrollbarWidth;let r=1073741824,o=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)r=Math.min(r,Math.round(e.left)),o=Math.max(o,Math.round(e.left+e.width))}else for(const a of e.selections){if(a.startLineNumber!==a.endLineNumber)return null;const e=this._visibleRangesForLineRange(a.startLineNumber,a.startColumn,a.endColumn);if(!e)return null;for(const t of e.ranges)r=Math.min(r,Math.round(t.left)),o=Math.max(o,Math.round(t.left+t.width))}if(e.minimalReveal||(r=Math.max(0,r-Pt.HORIZONTAL_EXTRA_PX),o+=this._revealHorizontalRightPadding),"selections"===e.type&&o-r>t.width)return null;return{scrollLeft:this._computeMinimumScrolling(s,n,r,o),maxHorizontalOffset:o}}_computeMinimumScrolling(e,t,i,s,n,r){n=!!n,r=!!r;const o=(t|=0)-(e|=0);return(s|=0)-(i|=0)<o?n?i:r?Math.max(0,s-o):i<e?i:s>t?Math.max(0,s-o):e:i}}class Ft extends Et{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(146);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let s=0;for(let n=0,r=t.length;n<r;n++){const e=t[n],r=e.options.linesDecorationsClassName,o=e.options.zIndex;r&&(i[s++]=new vt(e.range.startLineNumber,e.range.endLineNumber,r,e.options.linesDecorationsTooltip??null,o));const a=e.options.firstLineDecorationClassName;a&&(i[s++]=new vt(e.range.startLineNumber,e.range.startLineNumber,a,e.options.linesDecorationsTooltip??null,o))}return i}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=this._render(t,i,this._getDecorations(e)),n='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',r=[];for(let o=t;o<=i;o++){const e=o-t,i=s[e].getDecorations();let a="";for(const t of i){let e='<div class="cldr '+t.className;null!==t.tooltip&&(e+='" title="'+t.tooltip),e+=n,a+=e}r[e]=a}this._renderResult=r}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Ut extends Et{constructor(e){super(),this._context=e,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let s=0;for(let n=0,r=t.length;n<r;n++){const e=t[n],r=e.options.marginClassName,o=e.options.zIndex;r&&(i[s++]=new vt(e.range.startLineNumber,e.range.endLineNumber,r,null,o))}return i}prepareRender(e){const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,s=this._render(t,i,this._getDecorations(e)),n=[];for(let r=t;r<=i;r++){const e=r-t,i=s[e].getDecorations();let o="";for(const t of i)o+='<div class="cmdr '+t.className+'" style=""></div>';n[e]=o}this._renderResult=n}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}var Ht=i(34072);class Bt{static{this.Empty=new Bt(0,0,0,0)}constructor(e,t,i,s){this._rgba8Brand=void 0,this.r=Bt._clamp(e),this.g=Bt._clamp(t),this.b=Bt._clamp(i),this.a=Bt._clamp(s)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}class Wt extends d.jG{static{this._INSTANCE=null}static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,d.lC)(new Wt)),this._INSTANCE}constructor(){super(),this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Me.dG.onDidChange((e=>{e.changedColorMap&&this._updateColorMap()})))}_updateColorMap(){const e=Me.dG.getColorMap();if(!e)return this._colors=[Bt.Empty],void(this._backgroundIsLight=!0);this._colors=[Bt.Empty];for(let i=1;i<e.length;i++){const t=e[i].rgba;this._colors[i]=new Bt(t.r,t.g,t.b,Math.round(255*t.a))}const t=e[2].getRelativeLuminance();this._backgroundIsLight=t>=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}var Vt=i(92896),zt=i(66261);const Gt=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})();var jt=i(85152);class Kt{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=Kt.soften(e,.8),this.charDataLight=Kt.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let s=0,n=e.length;s<n;s++)i[s]=(0,jt.W)(e[s]*t);return i}renderChar(e,t,i,s,n,r,o,a,l,c,h){const d=1*this.scale,u=2*this.scale,g=h?1:u;if(t+d>e.width||i+g>e.height)return void console.warn("bad render request outside image data");const p=c?this.charDataLight:this.charDataNormal,m=((e,t)=>(e-=32)<0||e>96?t<=2?(e+96)%96:95:e)(s,l),f=4*e.width,_=o.r,v=o.g,C=o.b,b=n.r-_,E=n.g-v,S=n.b-C,y=Math.max(r,a),w=e.data;let L=m*d*u,R=i*f+4*t;for(let T=0;T<g;T++){let e=R;for(let t=0;t<d;t++){const t=p[L++]/255*(r/255);w[e++]=_+b*t,w[e++]=v+E*t,w[e++]=C+S*t,w[e++]=y}R+=f}}blockRenderChar(e,t,i,s,n,r,o,a){const l=1*this.scale,c=2*this.scale,h=a?1:c;if(t+l>e.width||i+h>e.height)return void console.warn("bad render request outside image data");const d=4*e.width,u=n/255*.5,g=r.r,p=r.g,m=r.b,f=g+(s.r-g)*u,_=p+(s.g-p)*u,v=m+(s.b-m)*u,C=Math.max(n,o),b=e.data;let E=i*d+4*t;for(let S=0;S<h;S++){let e=E;for(let t=0;t<l;t++)b[e++]=f,b[e++]=_,b[e++]=v,b[e++]=C;E+=d}}}var Yt=i(6921);const qt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},$t=e=>{const t=new Uint8ClampedArray(e.length/2);for(let i=0;i<e.length;i+=2)t[i>>1]=qt[e[i]]<<4|15&qt[e[i+1]];return t},Qt={1:(0,Yt.P)((()=>$t("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792"))),2:(0,Yt.P)((()=>$t("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")))};class Xt{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return i=Qt[e]?new Kt(Qt[e](),e):Xt.createFromSampleData(Xt.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let s=0;for(const n of Gt)i.fillText(String.fromCharCode(n),s,8),s+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");const i=Xt._downsample(e,t);return new Kt(i,t)}static _downsampleChar(e,t,i,s,n){const r=1*n,o=2*n;let a=s,l=0;for(let c=0;c<o;c++){const s=c/o*16,n=(c+1)/o*16;for(let o=0;o<r;o++){const c=o/r*10,h=(o+1)/r*10;let d=0,u=0;for(let i=s;i<n;i++){const s=t+3840*Math.floor(i),n=1-(i-Math.floor(i));for(let t=c;t<h;t++){const i=1-(t-Math.floor(t)),r=s+4*Math.floor(t),o=i*n;u+=o,d+=e[r]*e[r+3]/255*o}}const g=d/u;l=Math.max(l,g),i[a++]=(0,jt.W)(g)}}return l}static _downsample(e,t){const i=2*t*1*t,s=96*i,n=new Uint8ClampedArray(s);let r=0,o=0,a=0;for(let l=0;l<96;l++)a=Math.max(a,this._downsampleChar(e,o,n,r,t)),r+=i,o+=40;if(a>0){const e=255/a;for(let t=0;t<s;t++)n[t]*=e}return n}}var Zt=i(74320),Jt=i(49435);class ei{constructor(e,t,i){const s=e.options,n=s.get(144),r=s.get(146),o=r.minimap,a=s.get(50),l=s.get(73);this.renderMinimap=o.renderMinimap,this.size=l.size,this.minimapHeightIsEditorHeight=o.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=s.get(106),this.paddingTop=s.get(84).top,this.paddingBottom=s.get(84).bottom,this.showSlider=l.showSlider,this.autohide=l.autohide,this.pixelRatio=n,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.lineHeight=s.get(67),this.minimapLeft=o.minimapLeft,this.minimapWidth=o.minimapWidth,this.minimapHeight=r.height,this.canvasInnerWidth=o.minimapCanvasInnerWidth,this.canvasInnerHeight=o.minimapCanvasInnerHeight,this.canvasOuterWidth=o.minimapCanvasOuterWidth,this.canvasOuterHeight=o.minimapCanvasOuterHeight,this.isSampling=o.minimapIsSampling,this.editorHeight=r.height,this.fontScale=o.minimapScale,this.minimapLineHeight=o.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.sectionHeaderFontFamily=Jt.z,this.sectionHeaderFontSize=l.sectionHeaderFontSize*n,this.sectionHeaderLetterSpacing=l.sectionHeaderLetterSpacing,this.sectionHeaderFontColor=ei._getSectionHeaderColor(t,i.getColor(1)),this.charRenderer=(0,Yt.P)((()=>Xt.create(this.fontScale,a.fontFamily))),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=ei._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=ei._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(zt.ILr);return i?new Bt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(zt.K1Z);return t?Bt._clamp(Math.round(255*t.rgba.a)):255}static _getSectionHeaderColor(e,t){const i=e.getColor(zt.By2);return i?new Bt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.paddingTop===e.paddingTop&&this.paddingBottom===e.paddingBottom&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.sectionHeaderFontSize===e.sectionHeaderFontSize&&this.sectionHeaderLetterSpacing===e.sectionHeaderLetterSpacing&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class ti{constructor(e,t,i,s,n,r,o,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=s,this.sliderTop=n,this.sliderHeight=r,this.topPaddingLineCount=o,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumber,e.endLineNumber);return t>i?null:[t,i]}getYForLineNumber(e,t){return+(e-this.startLineNumber+this.topPaddingLineCount)*t}static create(e,t,i,s,n,r,o,a,l,c,h){const d=e.pixelRatio,u=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/u),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){let t=a*e.lineHeight+e.paddingTop+e.paddingBottom;e.scrollBeyondLastLine&&(t+=Math.max(0,n-e.lineHeight-e.paddingBottom));const i=Math.max(1,Math.floor(n*n/t)),s=Math.max(0,e.minimapHeight-i),r=s/(c-n),h=l*r,d=s>0,u=Math.floor(e.canvasInnerHeight/e.minimapLineHeight),g=Math.floor(e.paddingTop/e.lineHeight);return new ti(l,c,d,r,h,i,g,1,Math.min(o,u))}let m;if(r&&i!==o){const e=i-t+1;m=Math.floor(e*u/d)}else{const e=n/p;m=Math.floor(e*u/d)}const f=Math.floor(e.paddingTop/p);let _,v=Math.floor(e.paddingBottom/p);if(e.scrollBeyondLastLine){const e=n/p;v=Math.max(v,e-1)}if(v>0){_=(f+o+v-n/p-1)*u/d}else _=Math.max(0,(f+o)*u/d-m);_=Math.min(e.minimapHeight-m,_);const C=_/(c-n),b=l*C;if(g>=f+o+v){return new ti(l,c,_>0,C,b,m,f,1,o)}{let i,n;i=t>1?t+f:Math.max(1,l/p);let r=Math.max(1,Math.floor(i-b*d/u));r<f?(n=f-r+1,r=1):(n=0,r=Math.max(1,r-f)),h&&h.scrollHeight===c&&(h.scrollTop>l&&(r=Math.min(r,h.startLineNumber),n=Math.max(n,h.topPaddingLineCount)),h.scrollTop<l&&(r=Math.max(r,h.startLineNumber),n=Math.min(n,h.topPaddingLineCount)));const a=Math.min(o,r-n+g-1),_=(l-s)/p;let v;return v=l>=e.paddingTop?(t-r+n+_)*u/d:l/e.paddingTop*(n+_)*u/d,new ti(l,c,!0,C,v,m,n,r,a)}}}class ii{static{this.INVALID=new ii(-1)}constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}class si{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Qe({createLine:()=>ii.INVALID}),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get().lines;for(let i=0,s=t.length;i<s;i++)if(-1===t[i].dy)return!1;return!0}scrollEquals(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber}_get(){const e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}}onLinesChanged(e,t){return this._renderedLines.onLinesChanged(e,t)}onLinesDeleted(e,t){this._renderedLines.onLinesDeleted(e,t)}onLinesInserted(e,t){this._renderedLines.onLinesInserted(e,t)}onTokensChanged(e){return this._renderedLines.onTokensChanged(e)}}class ni{constructor(e,t,i,s){this._backgroundFillData=ni._createBackgroundFillData(t,i,s),this._buffers=[e.createImageData(t,i),e.createImageData(t,i)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;const e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e}static _createBackgroundFillData(e,t,i){const s=i.r,n=i.g,r=i.b,o=i.a,a=new Uint8ClampedArray(e*t*4);let l=0;for(let c=0;c<t;c++)for(let t=0;t<e;t++)a[l]=s,a[l+1]=n,a[l+2]=r,a[l+3]=o,l+=4;return a}}class ri{static compute(e,t,i){if(0===e.renderMinimap||!e.isSampling)return[null,[]];const{minimapLineCount:s}=L.xZ.computeContainedMinimapLineCount({viewLineCount:t,scrollBeyondLastLine:e.scrollBeyondLastLine,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:e.editorHeight,lineHeight:e.lineHeight,pixelRatio:e.pixelRatio}),n=t/s,r=n/2;if(!i||0===i.minimapLines.length){const e=[];if(e[0]=1,s>1){for(let t=0,i=s-1;t<i;t++)e[t]=Math.round(t*n+r);e[s-1]=t}return[new ri(n,e),[]]}const o=i.minimapLines,a=o.length,l=[];let c=0,h=0,d=1;let u=[],g=null;for(let p=0;p<s;p++){const e=Math.max(d,Math.round(p*n)),i=Math.max(e,Math.round((p+1)*n));for(;c<a&&o[c]<e;){if(u.length<10){const e=c+1+h;g&&"deleted"===g.type&&g._oldIndex===c-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:c,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--}c++}let m;if(c<a&&o[c]<=i)m=o[c],c++;else if(m=0===p?1:p+1===s?t:Math.round(p*n+r),u.length<10){const e=c+1+h;g&&"inserted"===g.type&&g._i===p-1?g.insertToLineNumber++:(g={type:"inserted",_i:p,insertFromLineNumber:e,insertToLineNumber:e},u.push(g)),h++}l[p]=m,d=m}if(u.length<10)for(;c<a;){const e=c+1+h;g&&"deleted"===g.type&&g._oldIndex===c-1?g.deleteToLineNumber++:(g={type:"deleted",_oldIndex:c,deleteFromLineNumber:e,deleteToLineNumber:e},u.push(g)),h--,c++}else u=[{type:"flush"}];return[new ri(n,l),u]}constructor(e,t){this.samplingRatio=e,this.minimapLines=t}modelLineToMinimapLine(e){return Math.min(this.minimapLines.length,Math.max(1,Math.round(e/this.samplingRatio)))}modelLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e)-1;for(;i>0&&this.minimapLines[i-1]>=e;)i--;let s=this.modelLineToMinimapLine(t)-1;for(;s+1<this.minimapLines.length&&this.minimapLines[s+1]<=t;)s++;if(i===s){const s=this.minimapLines[i];if(s<e||s>t)return null}return[i+1,s+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),s=this.modelLineToMinimapLine(t);return e!==t&&s===i&&(s===this.minimapLines.length?i>1&&i--:s++),[i,s]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,s=0;for(let n=this.minimapLines.length-1;n>=0&&!(this.minimapLines[n]<e.fromLineNumber);n--)this.minimapLines[n]<=e.toLineNumber?(this.minimapLines[n]=Math.max(1,e.fromLineNumber-1),i=Math.min(i,n),s=Math.max(s,n)):this.minimapLines[n]-=t;return[i,s]}onLinesInserted(e){const t=e.toLineNumber-e.fromLineNumber+1;for(let i=this.minimapLines.length-1;i>=0&&!(this.minimapLines[i]<e.fromLineNumber);i--)this.minimapLines[i]+=t}}class oi extends z{constructor(e){super(e),this._sectionHeaderCache=new Zt.qK(10,1.5),this.tokensColorTracker=Wt.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);const[t]=ri.compute(this.options,this._context.viewModel.getLineCount(),null);this._samplingState=t,this._shouldCheckSampling=!1,this._actual=new ai(e.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){const e=new ei(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(e)&&(this.options=e,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(e){return this._onOptionsMaybeChanged()}onCursorStateChanged(e){return this._selections=e.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(e){return!!e.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(e){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(e){if(this._samplingState){const t=this._samplingState.modelLineRangeToMinimapLineRange(e.fromLineNumber,e.fromLineNumber+e.count-1);return!!t&&this._actual.onLinesChanged(t[0],t[1]-t[0]+1)}return this._actual.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){if(this._samplingState){const[t,i]=this._samplingState.onLinesDeleted(e);return t<=i&&this._actual.onLinesChanged(t+1,i-t+1),this._shouldCheckSampling=!0,!0}return this._actual.onLinesDeleted(e.fromLineNumber,e.toLineNumber)}onLinesInserted(e){return this._samplingState?(this._samplingState.onLinesInserted(e),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(e.fromLineNumber,e.toLineNumber)}onScrollChanged(e){return this._actual.onScrollChanged()}onThemeChanged(e){return this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(e){if(this._samplingState){const t=[];for(const i of e.ranges){const e=this._samplingState.modelLineRangeToMinimapLineRange(i.fromLineNumber,i.toLineNumber);e&&t.push({fromLineNumber:e[0],toLineNumber:e[1]})}return!!t.length&&this._actual.onTokensChanged(t)}return this._actual.onTokensChanged(e.ranges)}onTokensColorsChanged(e){return this._onOptionsMaybeChanged(),this._actual.onTokensColorsChanged()}onZonesChanged(e){return this._actual.onZonesChanged()}prepareRender(e){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(e){let t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber;this._samplingState&&(t=this._samplingState.modelLineToMinimapLine(t),i=this._samplingState.modelLineToMinimapLine(i));const s={viewportContainsWhitespaceGaps:e.viewportData.whitespaceViewportData.length>0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(s)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=ri.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const s of i)switch(s.type){case"deleted":this._actual.onLinesDeleted(s.deleteFromLineNumber,s.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(s.insertFromLineNumber,s.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const s=[];for(let n=0,r=t-e+1;n<r;n++)i[n]?s[n]=this._context.viewModel.getViewLineData(this._samplingState.minimapLines[e+n-1]):s[n]=null;return s}return this._context.viewModel.getMinimapLinesRenderingData(e,t,i).data}getSelections(){if(null===this._minimapSelections)if(this._samplingState){this._minimapSelections=[];for(const e of this._selections){const[t,i]=this._samplingState.decorationLineRangeToMinimapLineRange(e.startLineNumber,e.endLineNumber);this._minimapSelections.push(new pe.L(t,e.startColumn,i,e.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(e,t){const i=this._getMinimapDecorationsInViewport(e,t).filter((e=>!e.options.minimap?.sectionHeaderStyle));if(this._samplingState){const e=[];for(const t of i){if(!t.options.minimap)continue;const i=t.range,s=this._samplingState.modelLineToMinimapLine(i.startLineNumber),n=this._samplingState.modelLineToMinimapLine(i.endLineNumber);e.push(new Vt.vo(new q.Q(s,i.startColumn,n,i.endColumn),t.options))}return e}return i}getSectionHeaderDecorationsInViewport(e,t){const i=this.options.minimapLineHeight,s=this.options.sectionHeaderFontSize/i;return e=Math.floor(Math.max(1,e-s)),this._getMinimapDecorationsInViewport(e,t).filter((e=>!!e.options.minimap?.sectionHeaderStyle))}_getMinimapDecorationsInViewport(e,t){let i;if(this._samplingState){const s=this._samplingState.minimapLines[e-1],n=this._samplingState.minimapLines[t-1];i=new q.Q(s,1,n,this._context.viewModel.getLineMaxColumn(n))}else i=new q.Q(e,1,t,this._context.viewModel.getLineMaxColumn(t));return this._context.viewModel.getMinimapDecorationsInRange(i)}getSectionHeaderText(e,t){const i=e.options.minimap?.sectionHeaderText;if(!i)return null;const s=this._sectionHeaderCache.get(i);if(s)return s;const n=t(i);return this._sectionHeaderCache.set(i,n),n}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new q.Q(e,1,e,1),1,0)}setScrollTop(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}}class ai extends d.jG{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(zt.yr0),this._domNode=(0,H.Z)(document.createElement("div")),G.write(this._domNode,9),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=(0,H.Z)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=(0,H.Z)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=(0,H.Z)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=(0,H.Z)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=(0,H.Z)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=l.b2(this._domNode.domNode,l.Bx.POINTER_DOWN,(e=>{e.preventDefault();if(0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(0===e.button&&this._lastRenderData){const t=l.BK(this._slider.domNode),i=t.top+t.height/2;this._startSliderDragging(e,i,this._lastRenderData.renderedLayout)}return}const t=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.offsetY;let s=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;s=Math.min(s,this._model.getLineCount()),this._model.revealLineNumber(s)})),this._sliderPointerMoveMonitor=new Ht._,this._sliderPointerDownListener=l.b2(this._slider.domNode,l.Bx.POINTER_DOWN,(e=>{e.preventDefault(),e.stopPropagation(),0===e.button&&this._lastRenderData&&this._startSliderDragging(e,e.pageY,this._lastRenderData.renderedLayout)})),this._gestureDisposable=de.q.addTarget(this._domNode.domNode),this._sliderTouchStartListener=l.ko(this._domNode.domNode,de.B.Start,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))}),{passive:!1}),this._sliderTouchMoveListener=l.ko(this._domNode.domNode,de.B.Change,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)}),{passive:!1}),this._sliderTouchEndListener=l.b2(this._domNode.domNode,de.B.End,(e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)}))}_startSliderDragging(e,t,i){if(!e.target||!(e.target instanceof Element))return;const s=e.pageX;this._slider.toggleClassName("active",!0);const n=(e,n)=>{const r=l.BK(this._domNode.domNode),o=Math.min(Math.abs(n-s),Math.abs(n-r.left),Math.abs(n-r.left-r.width));if(_.uF&&o>140)return void this._model.setScrollTop(i.scrollTop);const a=e-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(a))};e.pageY!==t&&n(e.pageY,s),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>n(e.pageY,e.pageX)),(()=>{this._slider.toggleClassName("active",!1)}))}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return"always"===this._model.options.showSlider?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new ni(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){return this._lastRenderData?.onLinesDeleted(e,t),!0}onLinesInserted(e,t){return this._lastRenderData?.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(zt.yr0),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const t=ti.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(q.Q.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort(((e,t)=>(e.options.zIndex||0)-(t.options.zIndex||0)));const{canvasInnerWidth:s,canvasInnerHeight:n}=this._model.options,r=this._model.options.minimapLineHeight,o=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,s,n);const c=new li(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(l,t,c,e,r),this._renderDecorationsLineHighlights(l,i,c,e,r);const h=new li(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(l,t,h,e,r,a,o,s),this._renderDecorationsHighlights(l,i,h,e,r,a,o,s),this._renderSectionHeaders(e)}}_renderSelectionLineHighlights(e,t,i,s,n){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let r=0,o=0;for(const a of t){const t=s.intersectWithViewport(a);if(!t)continue;const[l,c]=t;for(let e=l;e<=c;e++)i.set(e,!0);const h=s.getYForLineNumber(l,n),d=s.getYForLineNumber(c,n);o>=h||(o>r&&e.fillRect(L.xq,r,e.canvas.width,o-r),r=h),o=d}o>r&&e.fillRect(L.xq,r,e.canvas.width,o-r)}_renderDecorationsLineHighlights(e,t,i,s,n){const r=new Map;for(let o=t.length-1;o>=0;o--){const a=t[o],l=a.options.minimap;if(!l||1!==l.position)continue;const c=s.intersectWithViewport(a.range);if(!c)continue;const[h,d]=c,u=l.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=r.get(u.toString());g||(g=u.transparent(.5).toString(),r.set(u.toString(),g)),e.fillStyle=g;for(let t=h;t<=d;t++){if(i.has(t))continue;i.set(t,!0);const r=s.getYForLineNumber(h,n);e.fillRect(L.xq,r,e.canvas.width,n)}}}_renderSelectionsHighlights(e,t,i,s,n,r,o,a){if(this._selectionColor&&!this._selectionColor.isTransparent())for(const l of t){const t=s.intersectWithViewport(l);if(!t)continue;const[c,h]=t;for(let d=c;d<=h;d++)this.renderDecorationOnLine(e,i,l,this._selectionColor,s,d,n,n,r,o,a)}}_renderDecorationsHighlights(e,t,i,s,n,r,o,a){for(const l of t){const t=l.options.minimap;if(!t)continue;const c=s.intersectWithViewport(l.range);if(!c)continue;const[h,d]=c,u=t.getColor(this._theme.value);if(u&&!u.isTransparent())for(let g=h;g<=d;g++)switch(t.position){case 1:this.renderDecorationOnLine(e,i,l.range,u,s,g,n,n,r,o,a);continue;case 2:{const t=s.getYForLineNumber(g,n),i=2;this.renderDecoration(e,u,i,t,2,n);continue}}}}renderDecorationOnLine(e,t,i,s,n,r,o,a,l,c,h){const d=n.getYForLineNumber(r,a);if(d+o<0||d>this._model.options.canvasInnerHeight)return;const{startLineNumber:u,endLineNumber:g}=i,p=u===r?i.startColumn:1,m=g===r?i.endColumn:this._model.getLineMaxColumn(r),f=this.getXOffsetForPosition(t,r,p,l,c,h),_=this.getXOffsetForPosition(t,r,m,l,c,h);this.renderDecoration(e,s,f,d,_-f,o)}getXOffsetForPosition(e,t,i,s,n,r){if(1===i)return L.xq;if((i-1)*n>=r)return r;let o=e.get(t);if(!o){const i=this._model.getLineContent(t);o=[L.xq];let a=L.xq;for(let e=1;e<i.length+1;e++){const t=i.charCodeAt(e-1),l=a+(9===t?s*n:Re.ne(t)?2*n:n);if(l>=r){o[e]=r;break}o[e]=l,a=l}e.set(t,o)}return i-1<o.length?o[i-1]:r}renderDecoration(e,t,i,s,n,r){e.fillStyle=t&&t.toString()||"",e.fillRect(i,s,n,r)}_renderSectionHeaders(e){const t=this._model.options.minimapLineHeight,i=this._model.options.sectionHeaderFontSize,s=this._model.options.sectionHeaderLetterSpacing,n=1.5*i,{canvasInnerWidth:r}=this._model.options,o=this._model.options.backgroundColor,a=`rgb(${o.r} ${o.g} ${o.b} / .7)`,l=this._model.options.sectionHeaderFontColor,c=`rgb(${l.r} ${l.g} ${l.b})`,h=c,d=this._decorationsCanvas.domNode.getContext("2d");d.letterSpacing=s+"px",d.font="500 "+i+"px "+this._model.options.sectionHeaderFontFamily,d.strokeStyle=h,d.lineWidth=.2;const u=this._model.getSectionHeaderDecorationsInViewport(e.startLineNumber,e.endLineNumber);u.sort(((e,t)=>e.range.startLineNumber-t.range.startLineNumber));const g=ai._fitSectionHeader.bind(null,d,r-L.xq);for(const p of u){const s=e.getYForLineNumber(p.range.startLineNumber,t)+i,o=s-i,l=o+2,h=this._model.getSectionHeaderText(p,g);ai._renderSectionLabel(d,h,2===p.options.minimap?.sectionHeaderStyle,a,c,r,o,n,s,l)}}static _fitSectionHeader(e,t,i){if(!i)return i;const s=e.measureText(i).width,n=e.measureText("\u2026").width;if(s<=t||s<=n)return i;const r=i.length,o=s/i.length,a=Math.floor((t-n)/o)-1;let l=Math.ceil(a/2);for(;l>0&&/\s/.test(i[l-1]);)--l;return i.substring(0,l)+"\u2026"+i.substring(r-(a-l))}static _renderSectionLabel(e,t,i,s,n,r,o,a,l,c){t&&(e.fillStyle=s,e.fillRect(0,o,r,a),e.fillStyle=n,e.fillText(t,L.xq,l)),i&&(e.beginPath(),e.moveTo(0,c),e.lineTo(r,c),e.closePath(),e.stroke())}renderLines(e){const t=e.startLineNumber,i=e.endLineNumber,s=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){const t=this._lastRenderData._get();return new si(e,t.imageData,t.lines)}const n=this._getBuffer();if(!n)return null;const[r,o,a]=ai._renderUntouchedLines(n,e.topPaddingLineCount,t,i,s,this._lastRenderData),l=this._model.getMinimapLinesRenderingData(t,i,a),c=this._model.getOptions().tabSize,h=this._model.options.defaultBackgroundColor,d=this._model.options.backgroundColor,u=this._model.options.foregroundAlpha,g=this._model.tokensColorTracker,p=g.backgroundIsLight(),m=this._model.options.renderMinimap,f=this._model.options.charRenderer(),_=this._model.options.fontScale,v=this._model.options.minimapCharWidth,C=(1===m?2:3)*_,b=s>C?Math.floor((s-C)/2):0,E=d.a/255,S=new Bt(Math.round((d.r-h.r)*E+h.r),Math.round((d.g-h.g)*E+h.g),Math.round((d.b-h.b)*E+h.b),255);let y=e.topPaddingLineCount*s;const w=[];for(let T=0,x=i-t+1;T<x;T++)a[T]&&ai._renderLine(n,S,d.a,p,m,v,g,u,f,y,b,c,l[T],_,s),w[T]=new ii(y),y+=s;const L=-1===r?0:r,R=(-1===o?n.height:o)-L;return this._canvas.domNode.getContext("2d").putImageData(n,0,0,0,L,n.width,R),new si(e,n,w)}static _renderUntouchedLines(e,t,i,s,n,r){const o=[];if(!r){for(let e=0,t=s-i+1;e<t;e++)o[e]=!0;return[-1,-1,o]}const a=r._get(),l=a.imageData.data,c=a.rendLineNumberStart,h=a.lines,d=h.length,u=e.width,g=e.data,p=(s-i+1)*n*u*4;let m=-1,f=-1,_=-1,v=-1,C=-1,b=-1,E=t*n;for(let S=i;S<=s;S++){const e=S-i,t=S-c,s=t>=0&&t<d?h[t].dy:-1;if(-1===s){o[e]=!0,E+=n;continue}const r=s*u*4,a=(s+n)*u*4,y=E*u*4,w=(E+n)*u*4;v===r&&b===y?(v=a,b=w):(-1!==_&&(g.set(l.subarray(_,v),C),-1===m&&0===_&&_===C&&(m=v),-1===f&&v===p&&_===C&&(f=_)),_=r,v=a,C=y,b=w),o[e]=!1,E+=n}-1!==_&&(g.set(l.subarray(_,v),C),-1===m&&0===_&&_===C&&(m=v),-1===f&&v===p&&_===C&&(f=_));return[-1===m?-1:m/(4*u),-1===f?-1:f/(4*u),o]}static _renderLine(e,t,i,s,n,r,o,a,l,c,h,d,u,g,p){const m=u.content,f=u.tokens,_=e.width-r,v=1===p;let C=L.xq,b=0,E=0;for(let S=0,y=f.getCount();S<y;S++){const u=f.getEndOffset(S),p=f.getForeground(S),y=o.getColor(p);for(;b<u;b++){if(C>_)return;const o=m.charCodeAt(b);if(9===o){const e=d-(b+E)%d;E+=e-1,C+=e*r}else if(32===o)C+=r;else{const d=Re.ne(o)?2:1;for(let u=0;u<d;u++)if(2===n?l.blockRenderChar(e,C,c+h,y,a,t,i,v):l.renderChar(e,C,c+h,o,y,a,t,i,g,s,v),C+=r,C>_)return}}}}}class li{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let s=0,n=this._endLineNumber-this._startLineNumber+1;s<n;s++)this._values[s]=i}has(e){return this.get(e)!==this._defaultValue}set(e,t){e<this._startLineNumber||e>this._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return e<this._startLineNumber||e>this._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}class ci extends z{constructor(e,t){super(e),this._viewDomNode=t;const i=this._context.configuration.options.get(146);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=(0,H.Z)(document.createElement("div")),G.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=(0,H.Z)(document.createElement("div")),G.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=(0,H.Z)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),e.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(t):this._domNode.appendChild(t),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(e,t){const i=this._widgets[e.getId()],s=t?t.preference:null,n=t?.stackOridinal;return i.preference===s&&i.stack===n?(this._updateMaxMinWidth(),!1):(i.preference=s,i.stack=n,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){let e=0;const t=Object.keys(this._widgets);for(let i=0,s=t.length;i<s;i++){const s=t[i],n=this._widgets[s],r=n.widget.getMinContentWidthInPx?.();"undefined"!==typeof r&&(e=Math.max(e,r))}this._context.viewLayout.setOverlayWidgetsMinWidth(e)}_renderWidget(e,t){const i=e.domNode;if(null===e.preference)return void i.setTop("");const s=2*this._verticalScrollbarWidth+this._minimapWidth;if(0===e.preference||1===e.preference){if(1===e.preference){const e=i.domNode.clientHeight;i.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight)}else i.setTop(0);void 0!==e.stack?(i.setTop(t[e.preference]),t[e.preference]+=i.domNode.clientWidth):i.setRight(s)}else if(2===e.preference)i.domNode.style.right="50%",void 0!==e.stack?(i.setTop(t[2]),t[2]+=i.domNode.clientHeight):i.setTop(0);else{const{top:t,left:s}=e.preference;if(this._context.configuration.options.get(42)&&e.widget.allowEditorOverflow){const e=this._viewDomNodeRect;i.setTop(t+e.top),i.setLeft(s+e.left),i.setPosition("fixed")}else i.setTop(t),i.setLeft(s),i.setPosition("absolute")}}prepareRender(e){this._viewDomNodeRect=l.BK(this._viewDomNode.domNode)}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets),i=Array.from({length:3},(()=>0));t.sort(((e,t)=>(this._widgets[e].stack||0)-(this._widgets[t].stack||0)));for(let s=0,n=t.length;s<n;s++){const e=t[s];this._renderWidget(this._widgets[e],i)}}}class hi{constructor(e,t){const i=e.options;this.lineHeight=i.get(67),this.pixelRatio=i.get(144),this.overviewRulerLanes=i.get(83),this.renderBorder=i.get(82);const s=t.getColor(Ae.x9);this.borderColor=s?s.toString():null,this.hideCursor=i.get(59);const n=t.getColor(Ae.D0);this.cursorColorSingle=n?n.transparent(.7).toString():null;const r=t.getColor(Ae.sC);this.cursorColorPrimary=r?r.transparent(.7).toString():null;const o=t.getColor(Ae.we);this.cursorColorSecondary=o?o.transparent(.7).toString():null,this.themeType=t.type;const a=i.get(73),l=a.enabled,c=a.side,h=t.getColor(Ae.Xr),d=Me.dG.getDefaultBackground();this.backgroundColor=h||(l&&"right"===c?d:null);const u=i.get(146).overviewRuler;this.top=u.top,this.right=u.right,this.domWidth=u.width,this.domHeight=u.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[g,p]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=g,this.w=p}_initLanes(e,t,i){const s=t-e;if(i>=3){const t=Math.floor(s/3),i=Math.floor(s/3),n=s-t-i,r=e+t;return[[0,e,r,e,e+t+n,e,r,e],[0,t,n,t+n,i,t+n+i,n+i,t+n+i]]}if(2===i){const t=Math.floor(s/2),i=s-t;return[[0,e,e,e,e+t,e,e,e],[0,t,t,t,i,t+i,t+i,t+i]]}return[[0,e,e,e,e,e,e,e],[0,s,s,s,s,s,s,s]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColorSingle===e.cursorColorSingle&&this.cursorColorPrimary===e.cursorColorPrimary&&this.cursorColorSecondary===e.cursorColorSecondary&&this.themeType===e.themeType&&Pe.Q1.equals(this.backgroundColor,e.backgroundColor)&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class di extends z{constructor(e){super(e),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=(0,H.Z)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Me.dG.onDidChange((e=>{e.changedColorMap&&this._updateSettings(!0)})),this._cursorPositions=[{position:new Y.y(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new hi(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}_markRenderingIsNeeded(){return this._actualShouldRender=2,!0}_markRenderingIsMaybeNeeded(){return this._actualShouldRender=1,!0}onConfigurationChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;t<i;t++){let s=this._settings.cursorColorSingle;i>1&&(s=0===t?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:e.selections[t].getPosition(),color:s})}return this._cursorPositions.sort(((e,t)=>Y.y.compare(e.position,t.position))),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(e){return!!e.affectsOverviewRuler&&this._markRenderingIsMaybeNeeded()}onFlushed(e){return this._markRenderingIsNeeded()}onScrollChanged(e){return!!e.scrollHeightChanged&&this._markRenderingIsNeeded()}onZonesChanged(e){return this._markRenderingIsNeeded()}onThemeChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render(),this._actualShouldRender=0}_render(){const e=this._settings.backgroundColor;if(0===this._settings.overviewRulerLanes)return this._domNode.setBackgroundColor(e?Pe.Q1.Format.CSS.formatHexA(e):""),void this._domNode.setDisplay("none");const t=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(t.sort(Vt.Uv.compareByRenderingProps),1!==this._actualShouldRender||Vt.Uv.equalsArr(this._renderedDecorations,t)||(this._actualShouldRender=2),1!==this._actualShouldRender||(0,m.aI)(this._renderedCursorPositions,this._cursorPositions,((e,t)=>e.position.lineNumber===t.position.lineNumber&&e.color===t.color))||(this._actualShouldRender=2),1===this._actualShouldRender)return;this._renderedDecorations=t,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");const i=this._settings.canvasWidth,s=this._settings.canvasHeight,n=this._settings.lineHeight,r=this._context.viewLayout,o=s/this._context.viewLayout.getScrollHeight(),a=6*this._settings.pixelRatio|0,l=a/2|0,c=this._domNode.domNode.getContext("2d");e?e.isOpaque()?(c.fillStyle=Pe.Q1.Format.CSS.formatHexA(e),c.fillRect(0,0,i,s)):(c.clearRect(0,0,i,s),c.fillStyle=Pe.Q1.Format.CSS.formatHexA(e),c.fillRect(0,0,i,s)):c.clearRect(0,0,i,s);const h=this._settings.x,d=this._settings.w;for(const u of t){const e=u.color,t=u.data;c.fillStyle=e;let i=0,g=0,p=0;for(let u=0,m=t.length/3;u<m;u++){const e=t[3*u],m=t[3*u+1],f=t[3*u+2];let _=r.getVerticalOffsetForLineNumber(m)*o|0,v=(r.getVerticalOffsetForLineNumber(f)+n)*o|0;if(v-_<a){let e=(_+v)/2|0;e<l?e=l:e+l>s&&(e=s-l),_=e-l,v=e+l}_>p+1||e!==i?(0!==u&&c.fillRect(h[i],g,d[i],p-g),i=e,g=_,p=v):v>p&&(p=v)}c.fillRect(h[i],g,d[i],p-g)}if(!this._settings.hideCursor){const e=2*this._settings.pixelRatio|0,t=e/2|0,i=this._settings.x[7],n=this._settings.w[7];let a=-100,l=-100,h=null;for(let d=0,u=this._cursorPositions.length;d<u;d++){const u=this._cursorPositions[d].color;if(!u)continue;const g=this._cursorPositions[d].position;let p=r.getVerticalOffsetForLineNumber(g.lineNumber)*o|0;p<t?p=t:p+t>s&&(p=s-t);const m=p-t,f=m+e;m>l+1||u!==h?(0!==d&&h&&c.fillRect(i,a,n,l-a),a=m,l=f):f>l&&(l=f),h=u,c.fillStyle=u}h&&c.fillRect(i,a,n,l-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(c.beginPath(),c.lineWidth=1,c.strokeStyle=this._settings.borderColor,c.moveTo(0,0),c.lineTo(0,s),c.moveTo(1,0),c.lineTo(i,0),c.stroke())}}var ui,gi=i(19531);class pi extends V{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=(0,H.Z)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new gi.rW((e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e))),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(67)),this._zoneManager.setPixelRatio(i.get(144)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(67)&&(this._zoneManager.setLineHeight(t.get(67)),this._render()),e.hasChanged(144)&&(this._zoneManager.setPixelRatio(t.get(144)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),s=this._zoneManager.getId2Color(),n=this._domNode.domNode.getContext("2d");return n.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(n,i,s,e),!0}_renderOneLane(e,t,i,s){let n=0,r=0,o=0;for(const a of t){const t=a.colorId,l=a.from,c=a.to;t!==n?(e.fillRect(0,r,s,o-r),n=t,e.fillStyle=i[n],r=l,o=c):o>=l?o=Math.max(o,c):(e.fillRect(0,r,s,o-r),r=l,o=c)}e.fillRect(0,r,s,o-r)}}class mi extends z{constructor(e){super(e),this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(103),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(103),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e<t){const{tabSize:i}=this._context.viewModel.model.getOptions(),s=i;let n=t-e;for(;n>0;){const e=(0,H.Z)(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(s),this.domNode.appendChild(e),this._renderedRulers.push(e),n--}return}let i=e-t;for(;i>0;){const e=this._renderedRulers.pop();this.domNode.removeChild(e),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t<i;t++){const i=this._renderedRulers[t],s=this._rulers[t];i.setBoxShadow(s.color?`1px 0 0 0 ${s.color} inset`:""),i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(s.column*this._typicalHalfwidthCharacterWidth)}}}class fi extends z{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const t=this._context.configuration.options.get(104);this._useShadows=t.useShadows,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options.get(146);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options.get(104);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}class _i{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class vi{constructor(e,t){this.lineNumber=e,this.ranges=t}}function Ci(e){return new _i(e)}function bi(e){return new vi(e.lineNumber,e.ranges.map(Ci))}class Ei extends xe{static{this.SELECTION_CLASS_NAME="selected-text"}static{this.SELECTION_TOP_LEFT="top-left-radius"}static{this.SELECTION_BOTTOM_LEFT="bottom-left-radius"}static{this.SELECTION_TOP_RIGHT="top-right-radius"}static{this.SELECTION_BOTTOM_RIGHT="bottom-right-radius"}static{this.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background"}static{this.ROUNDED_PIECE_WIDTH=10}constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._roundedSelection=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._roundedSelection=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t<i;t++){if(e[t].ranges.length>1)return!0}return!1}_enrichVisibleRangesWithStyle(e,t,i){const s=this._typicalHalfwidthCharacterWidth/4;let n=null,r=null;if(i&&i.length>0&&t.length>0){const s=t[0].lineNumber;if(s===e.startLineNumber)for(let e=0;!n&&e<i.length;e++)i[e].lineNumber===s&&(n=i[e].ranges[0]);const o=t[t.length-1].lineNumber;if(o===e.endLineNumber)for(let e=i.length-1;!r&&e>=0;e--)i[e].lineNumber===o&&(r=i[e].ranges[0]);n&&!n.startStyle&&(n=null),r&&!r.startStyle&&(r=null)}for(let o=0,a=t.length;o<a;o++){const e=t[o].ranges[0],i=e.left,l=e.left+e.width,c={top:0,bottom:0},h={top:0,bottom:0};if(o>0){const e=t[o-1].ranges[0].left,n=t[o-1].ranges[0].left+t[o-1].ranges[0].width;Si(i-e)<s?c.top=2:i>e&&(c.top=1),Si(l-n)<s?h.top=2:e<l&&l<n&&(h.top=1)}else n&&(c.top=n.startStyle.top,h.top=n.endStyle.top);if(o+1<a){const e=t[o+1].ranges[0].left,n=t[o+1].ranges[0].left+t[o+1].ranges[0].width;Si(i-e)<s?c.bottom=2:e<i&&i<n&&(c.bottom=1),Si(l-n)<s?h.bottom=2:l<n&&(h.bottom=1)}else r&&(c.bottom=r.startStyle.bottom,h.bottom=r.endStyle.bottom);e.startStyle=c,e.endStyle=h}}_getVisibleRangesWithStyle(e,t,i){const s=(t.linesVisibleRangesForRange(e,!0)||[]).map(bi);return!this._visibleRangesHaveGaps(s)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,s,i),s}_createSelectionPiece(e,t,i,s,n){return'<div class="cslr '+i+'" style="top:'+e.toString()+"px;bottom:"+t.toString()+"px;left:"+s.toString()+"px;width:"+n.toString()+'px;"></div>'}_actualRenderOneSelection(e,t,i,s){if(0===s.length)return;const n=!!s[0].ranges[0].startStyle,r=s[0].lineNumber,o=s[s.length-1].lineNumber;for(let a=0,l=s.length;a<l;a++){const l=s[a],c=l.lineNumber,h=c-t,d=i&&c===r?1:0,u=i&&c!==r&&c===o?1:0;let g="",p="";for(let e=0,t=l.ranges.length;e<t;e++){const t=l.ranges[e];if(n){const e=t.startStyle,i=t.endStyle;if(1===e.top||1===e.bottom){g+=this._createSelectionPiece(d,u,Ei.SELECTION_CLASS_NAME,t.left-Ei.ROUNDED_PIECE_WIDTH,Ei.ROUNDED_PIECE_WIDTH);let i=Ei.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(i+=" "+Ei.SELECTION_TOP_RIGHT),1===e.bottom&&(i+=" "+Ei.SELECTION_BOTTOM_RIGHT),g+=this._createSelectionPiece(d,u,i,t.left-Ei.ROUNDED_PIECE_WIDTH,Ei.ROUNDED_PIECE_WIDTH)}if(1===i.top||1===i.bottom){g+=this._createSelectionPiece(d,u,Ei.SELECTION_CLASS_NAME,t.left+t.width,Ei.ROUNDED_PIECE_WIDTH);let e=Ei.EDITOR_BACKGROUND_CLASS_NAME;1===i.top&&(e+=" "+Ei.SELECTION_TOP_LEFT),1===i.bottom&&(e+=" "+Ei.SELECTION_BOTTOM_LEFT),g+=this._createSelectionPiece(d,u,e,t.left+t.width,Ei.ROUNDED_PIECE_WIDTH)}}let i=Ei.SELECTION_CLASS_NAME;if(n){const e=t.startStyle,s=t.endStyle;0===e.top&&(i+=" "+Ei.SELECTION_TOP_LEFT),0===e.bottom&&(i+=" "+Ei.SELECTION_BOTTOM_LEFT),0===s.top&&(i+=" "+Ei.SELECTION_TOP_RIGHT),0===s.bottom&&(i+=" "+Ei.SELECTION_BOTTOM_RIGHT)}p+=this._createSelectionPiece(d,u,i,t.left,t.width)}e[h][0]+=g,e[h][1]+=p}}prepareRender(e){const t=[],i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(let r=i;r<=s;r++){t[r-i]=["",""]}const n=[];for(let r=0,o=this._selections.length;r<o;r++){const s=this._selections[r];if(s.isEmpty()){n[r]=null;continue}const o=this._getVisibleRangesWithStyle(s,e,this._previousFrameVisibleRangesWithStyle[r]);n[r]=o,this._actualRenderOneSelection(t,i,this._selections.length>1,o)}this._previousFrameVisibleRangesWithStyle=n,this._renderResult=t.map((([e,t])=>e+t))}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function Si(e){return e<0?-e:e}(0,ke.zy)(((e,t)=>{const i=e.getColor(zt.rm4);i&&!i.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${i}; }`)}));class yi{constructor(e,t,i,s,n,r,o){this.top=e,this.left=t,this.paddingLeft=i,this.width=s,this.height=n,this.textContent=r,this.textContentClassName=o}}!function(e){e[e.Single=0]="Single",e[e.MultiPrimary=1]="MultiPrimary",e[e.MultiSecondary=2]="MultiSecondary"}(ui||(ui={}));class wi{constructor(e,t){this._context=e;const i=this._context.configuration.options,s=i.get(50);this._cursorStyle=i.get(28),this._lineHeight=i.get(67),this._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(i.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setClassName(`cursor ${De}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,g.M)(this._domNode,s),this._domNode.setDisplay("none"),this._position=new Y.y(1,1),this._pluralityClass="",this.setPlurality(t),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(e){switch(e){default:case ui.Single:this._pluralityClass="";break;case ui.MultiPrimary:this._pluralityClass="cursor-primary";break;case ui.MultiSecondary:this._pluralityClass="cursor-secondary"}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(50);return this._cursorStyle=t.get(28),this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(31),this._typicalHalfwidthCharacterWidth),(0,g.M)(this._domNode,i),!0}onCursorPositionChanged(e,t){return this._domNode.domNode.style.transitionProperty=t?"none":"",this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[s,n]=Re.m(i,t-1);return[new Y.y(e,s+1),i.substring(s,n)]}_prepareRender(e){let t="",i="";const[s,n]=this._getGraphemeAwarePosition();if(this._cursorStyle===L.m9.Line||this._cursorStyle===L.m9.LineThin){const r=e.visibleRangeForPosition(s);if(!r||r.outsideRenderedLine)return null;const o=l.zk(this._domNode.domNode);let a;this._cursorStyle===L.m9.Line?(a=l.vT(o,this._lineCursorWidth>0?this._lineCursorWidth:2),a>2&&(t=n,i=this._getTokenClassName(s))):a=l.vT(o,1);let c=r.left,h=0;a>=2&&c>=1&&(h=1,c-=h);const d=e.getVerticalOffsetForLineNumber(s.lineNumber)-e.bigNumbersDelta;return new yi(d,c,h,a,this._lineHeight,t,i)}const r=e.linesVisibleRangesForRange(new q.Q(s.lineNumber,s.column,s.lineNumber,s.column+n.length),!1);if(!r||0===r.length)return null;const o=r[0];if(o.outsideRenderedLine||0===o.ranges.length)return null;const a=o.ranges[0],c="\t"===n||a.width<1?this._typicalHalfwidthCharacterWidth:a.width;this._cursorStyle===L.m9.Block&&(t=n,i=this._getTokenClassName(s));let h=e.getVerticalOffsetForLineNumber(s.lineNumber)-e.bigNumbersDelta,d=this._lineHeight;return this._cursorStyle!==L.m9.Underline&&this._cursorStyle!==L.m9.UnderlineThin||(h+=this._lineHeight-2,d=2),new yi(h,a.left,0,c,d,t,i)}_getTokenClassName(e){const t=this._context.viewModel.getViewLineData(e.lineNumber),i=t.tokens.findTokenIndexAtOffset(e.column-1);return t.tokens.getClassName(i)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${De} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class Li extends z{static{this.BLINK_INTERVAL=500}constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(92),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new wi(this._context,ui.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,H.Z)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new Nt.pc,this._cursorFlatBlinkInterval=new l.Be,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(92),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,s=this._secondaryCursors.length;i<s;i++)this._secondaryCursors[i].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t,i){const s=this._secondaryCursors.length!==t.length||"explicit"===this._cursorSmoothCaretAnimation&&3!==i;if(this._primaryCursor.setPlurality(t.length?ui.MultiPrimary:ui.Single),this._primaryCursor.onCursorPositionChanged(e,s),this._updateBlinking(),this._secondaryCursors.length<t.length){const e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){const e=new wi(this._context,ui.MultiSecondary);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let n=0;n<t.length;n++)this._secondaryCursors[n].onCursorPositionChanged(t[n],s)}onCursorStateChanged(e){const t=[];for(let s=0,n=e.selections.length;s<n;s++)t[s]=e.selections[s].getPosition();this._onCursorPositionChanged(t[0],t.slice(1),e.reason);const i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){const t=t=>{for(let i=0,s=e.ranges.length;i<s;i++)if(e.ranges[i].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[i].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(const i of this._secondaryCursors)if(t(i.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._isComposingInput?0:this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();const e=this._getCursorBlinking(),t=0===e,i=5===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),t||i||(1===e?this._cursorFlatBlinkInterval.cancelAndSet((()=>{this._isVisible?this._hide():this._show()}),Li.BLINK_INTERVAL,(0,l.zk)(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet((()=>{this._blinkingEnabled=!0,this._updateDomClassName()}),Li.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case L.m9.Line:e+=" cursor-line-style";break;case L.m9.Block:e+=" cursor-block-style";break;case L.m9.Underline:e+=" cursor-underline-style";break;case L.m9.LineThin:e+=" cursor-line-thin-style";break;case L.m9.BlockOutline:e+=" cursor-block-outline-style";break;case L.m9.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return"on"!==this._cursorSmoothCaretAnimation&&"explicit"!==this._cursorSmoothCaretAnimation||(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].prepareRender(e)}render(e){const t=[];let i=0;const s=this._primaryCursor.render(e);s&&(t[i++]=s);for(let n=0,r=this._secondaryCursors.length;n<r;n++){const s=this._secondaryCursors[n].render(e);s&&(t[i++]=s)}this._renderData=t}getLastRenderData(){return this._renderData}}(0,ke.zy)(((e,t)=>{const i=[{class:".cursor",foreground:Ae.D0,background:Ae.kM},{class:".cursor-primary",foreground:Ae.sC,background:Ae.je},{class:".cursor-secondary",foreground:Ae.we,background:Ae.L0}];for(const s of i){const i=e.getColor(s.foreground);if(i){let n=e.getColor(s.background);n||(n=i.opposite()),t.addRule(`.monaco-editor .cursors-layer ${s.class} { background-color: ${i}; border-color: ${i}; color: ${n}; }`),(0,dt.Bb)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection ${s.class} { border-left: 1px solid ${n}; border-right: 1px solid ${n}; }`)}}}));const Ri=()=>{throw new Error("Invalid change accessor")};class Ti extends z{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=(0,H.Z)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const s of e)t.set(s.id,s);let i=!1;return this._context.viewModel.changeWhitespace((e=>{const s=Object.keys(this._zones);for(let n=0,r=s.length;n<r;n++){const r=s[n],o=this._zones[r],a=this._computeWhitespaceProps(o.delegate);o.isInHiddenArea=a.isInHiddenArea;const l=t.get(r);!l||l.afterLineNumber===a.afterViewLineNumber&&l.height===a.heightInPx||(e.changeOneWhitespace(r,a.afterViewLineNumber,a.heightInPx),this._safeCallOnComputedHeight(o.delegate,a.heightInPx),i=!0)}})),i}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,e.hasChanged(67)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(e){return this._recomputeWhitespacesProps()}onLinesDeleted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}onLinesInserted(e){return!0}_getZoneOrdinal(e){return e.ordinal??e.afterColumn??1e4}_computeWhitespaceProps(e){if(0===e.afterLineNumber)return{isInHiddenArea:!1,afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};let t,i;if("undefined"!==typeof e.afterColumn)t=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{const i=this._context.viewModel.model.validatePosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new Y.y(i,this._context.viewModel.model.getLineMaxColumn(i))}i=t.column===this._context.viewModel.model.getLineMaxColumn(t.lineNumber)?this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber+1,column:1}):this._context.viewModel.model.validatePosition({lineNumber:t.lineNumber,column:t.column+1});const s=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t,e.afterColumnAffinity,!0),n=e.showInHiddenAreas||this._context.viewModel.coordinatesConverter.modelPositionIsVisible(i);return{isInHiddenArea:!n,afterViewLineNumber:s.lineNumber,heightInPx:n?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}}changeViewZones(e){let t=!1;return this._context.viewModel.changeWhitespace((i=>{const s={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}};!function(e,t){try{return e(t)}catch(i){(0,c.dz)(i)}}(e,s),s.addZone=Ri,s.removeZone=Ri,s.layoutZone=Ri})),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),s={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:(0,H.Z)(t.domNode),marginDomNode:t.marginDomNode?(0,H.Z)(t.marginDomNode):null};return this._safeCallOnComputedHeight(s.delegate,i.heightInPx),s.domNode.setPosition("absolute"),s.domNode.domNode.style.width="100%",s.domNode.setDisplay("none"),s.domNode.setAttribute("monaco-view-zone",s.whitespaceId),this.domNode.appendChild(s.domNode),s.marginDomNode&&(s.marginDomNode.setPosition("absolute"),s.marginDomNode.domNode.style.width="100%",s.marginDomNode.setDisplay("none"),s.marginDomNode.setAttribute("monaco-view-zone",s.whitespaceId),this.marginDomNode.appendChild(s.marginDomNode)),this._zones[s.whitespaceId]=s,this.setShouldRender(),s.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.remove(),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.remove()),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],s=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=s.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,s.afterViewLineNumber,s.heightInPx),this._safeCallOnComputedHeight(i.delegate,s.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"===typeof e.heightInPx?e.heightInPx:"number"===typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"===typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"===typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(i){(0,c.dz)(i)}}_safeCallOnDomNodeTop(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(i){(0,c.dz)(i)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let s=!1;for(const r of t)this._zones[r.id].isInHiddenArea||(i[r.id]=r,s=!0);const n=Object.keys(this._zones);for(let r=0,o=n.length;r<o;r++){const t=n[r],s=this._zones[t];let o=0,a=0,l="none";i.hasOwnProperty(t)?(o=i[t].verticalOffset-e.bigNumbersDelta,a=i[t].height,l="block",s.isVisible||(s.domNode.setAttribute("monaco-visible-view-zone","true"),s.isVisible=!0),this._safeCallOnDomNodeTop(s.delegate,e.getScrolledTopFromAbsoluteTop(i[t].verticalOffset))):(s.isVisible&&(s.domNode.removeAttribute("monaco-visible-view-zone"),s.isVisible=!1),this._safeCallOnDomNodeTop(s.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),s.domNode.setTop(o),s.domNode.setHeight(a),s.domNode.setDisplay(l),s.marginDomNode&&(s.marginDomNode.setTop(o),s.marginDomNode.setHeight(a),s.marginDomNode.setDisplay(l))}s&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}var xi=i(35600);class ki extends xe{constructor(e){super(),this._context=e,this._options=new Ai(this._context.configuration),this._selection=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=new Ai(this._context.configuration);return this._options.equals(t)?e.hasChanged(146):(this._options=t,!0)}onCursorStateChanged(e){return this._selection=e.selections,"selection"===this._options.renderWhitespace}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}prepareRender(e){if("none"===this._options.renderWhitespace)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber-t+1,s=new Array(i);for(let r=0;r<i;r++)s[r]=!0;const n=this._context.viewModel.getMinimapLinesRenderingData(e.viewportData.startLineNumber,e.viewportData.endLineNumber,s);this._renderResult=[];for(let r=e.viewportData.startLineNumber;r<=e.viewportData.endLineNumber;r++){const t=r-e.viewportData.startLineNumber,i=n.data[t];let s=null;if("selection"===this._options.renderWhitespace){const e=this._selection;for(const t of e){if(t.endLineNumber<r||t.startLineNumber>r)continue;const e=t.startLineNumber===r?t.startColumn:i.minColumn,n=t.endLineNumber===r?t.endColumn:i.maxColumn;e<n&&(s||(s=[]),s.push(new xi.MT(e-1,n-1)))}}this._renderResult[t]=this._applyRenderWhitespace(e,r,s,i)}}_applyRenderWhitespace(e,t,i,s){if("selection"===this._options.renderWhitespace&&!i)return"";if("trailing"===this._options.renderWhitespace&&s.continuesWithWrappedLine)return"";const n=this._context.theme.getColor(Ae.w4),r=this._options.renderWithSVG,o=s.content,a=-1===this._options.stopRenderingLineAfter?o.length:Math.min(this._options.stopRenderingLineAfter,o.length),l=s.continuesWithWrappedLine,c=s.minColumn-1,h="boundary"===this._options.renderWhitespace,d="trailing"===this._options.renderWhitespace,u=this._options.lineHeight,g=this._options.middotWidth,p=this._options.wsmiddotWidth,m=this._options.spaceWidth,f=Math.abs(p-m)<Math.abs(g-m)?11825:183,_=this._options.canUseHalfwidthRightwardsArrow;let v,C="",b=!1,E=Re.HG(o);-1===E?(b=!0,E=a,v=a):v=Re.lT(o);let S=0,y=i&&i[S],w=0;for(let L=c;L<a;L++){const s=o.charCodeAt(L);if(y&&L>=y.endOffset&&(S++,y=i&&i[S]),9!==s&&32!==s)continue;if(d&&!b&&L<=v)continue;if(h&&L>=E&&L<=v&&32===s){const e=L-1>=0?o.charCodeAt(L-1):0,t=L+1<a?o.charCodeAt(L+1):0;if(32!==e&&32!==t)continue}if(h&&l&&L===a-1){const e=L-1>=0?o.charCodeAt(L-1):0;if(32===s&&32!==e&&9!==e)continue}if(i&&(!y||y.startOffset>L||y.endOffset<=L))continue;const n=e.visibleRangeForPosition(new Y.y(t,L+1));n&&(r?(w=Math.max(w,n.left),C+=9===s?this._renderArrow(u,m,n.left):`<circle cx="${(n.left+m/2).toFixed(2)}" cy="${(u/2).toFixed(2)}" r="${(m/7).toFixed(2)}" />`):C+=9===s?`<div class="mwh" style="left:${n.left}px;height:${u}px;">${_?String.fromCharCode(65515):String.fromCharCode(8594)}</div>`:`<div class="mwh" style="left:${n.left}px;height:${u}px;">${String.fromCharCode(f)}</div>`)}return r?(w=Math.round(w+m),`<svg style="bottom:0;position:absolute;width:${w}px;height:${u}px" viewBox="0 0 ${w} ${u}" xmlns="http://www.w3.org/2000/svg" fill="${n}">`+C+"</svg>"):C}_renderArrow(e,t,i){const s=e/2,n=i,r={x:0,y:t/7/2},o={x:.8*t,y:r.y},a={x:o.x-.2*o.x,y:o.y+.2*o.x},l={x:a.x+.1*o.x,y:a.y+.1*o.x},c={x:l.x+.35*o.x,y:l.y-.35*o.x};return`<path d="M ${[r,o,a,l,c,{x:c.x,y:-c.y},{x:l.x,y:-l.y},{x:a.x,y:-a.y},{x:o.x,y:-o.y},{x:r.x,y:-r.y}].map((e=>`${(n+e.x).toFixed(2)} ${(s+e.y).toFixed(2)}`)).join(" L ")}" />`}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class Ai{constructor(e){const t=e.options,i=t.get(50),s=t.get(38);"off"===s?(this.renderWhitespace="none",this.renderWithSVG=!1):"svg"===s?(this.renderWhitespace=t.get(100),this.renderWithSVG=!0):(this.renderWhitespace=t.get(100),this.renderWithSVG=!1),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=t.get(67),this.stopRenderingLineAfter=t.get(118)}equals(e){return this.renderWhitespace===e.renderWhitespace&&this.renderWithSVG===e.renderWithSVG&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter}}class Ni{constructor(e,t,i,s){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.lineHeight=0|t.lineHeight,this.whitespaceViewportData=i,this._model=s,this.visibleRange=new q.Q(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class Ii{get type(){return this._theme.type}get value(){return this._theme}constructor(e){this._theme=e}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class Oi{constructor(e,t,i){this.configuration=e,this.theme=new Ii(t),this.viewModel=i,this.viewLayout=i.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}var Di=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Mi=function(e,t){return function(i,s){t(i,s,e)}};let Pi=class extends V{constructor(e,t,i,s,n,r,o){super(),this._instantiationService=o,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new pe.L(1,1,1,1)],this._renderAnimationFrame=null;const a=new Ye(t,s,n,e);this._context=new Oi(t,i,s),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance(Ge,this._context,a,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=(0,H.Z)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=(0,H.Z)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=(0,H.Z)(document.createElement("div")),G.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new ft(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Pt(this._context,this._linesContent),this._viewZones=new Ti(this._context),this._viewParts.push(this._viewZones);const l=new di(this._context);this._viewParts.push(l);const c=new fi(this._context);this._viewParts.push(c);const h=new tt(this._context);this._viewParts.push(h),h.addDynamicOverlay(new gt(this._context)),h.addDynamicOverlay(new Ei(this._context)),h.addDynamicOverlay(new kt(this._context)),h.addDynamicOverlay(new mt(this._context)),h.addDynamicOverlay(new ki(this._context));const d=new it(this._context);this._viewParts.push(d),d.addDynamicOverlay(new pt(this._context)),d.addDynamicOverlay(new Ut(this._context)),d.addDynamicOverlay(new Ft(this._context)),d.addDynamicOverlay(new Ne(this._context)),this._glyphMarginWidgets=new St(this._context),this._viewParts.push(this._glyphMarginWidgets);const u=new Ie(this._context);u.getDomNode().appendChild(this._viewZones.marginDomNode),u.getDomNode().appendChild(d.getDomNode()),u.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(u),this._contentWidgets=new rt(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new Li(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new ci(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);const g=new mi(this._context);this._viewParts.push(g);const p=new nt(this._context);this._viewParts.push(p);const m=new oi(this._context);if(this._viewParts.push(m),l){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(l.getDomNode(),e.insertBefore)}this._linesContent.appendChild(h.getDomNode()),this._linesContent.appendChild(g.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(u.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(c.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(m.getDomNode()),this._overflowGuardContainer.appendChild(p.domNode),this.domNode.appendChild(this._overflowGuardContainer),r?(r.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),r.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new we(this._context,a,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){const e=this._context.viewModel.model,t=this._context.viewModel.glyphLanes;let i=[],s=0;i=i.concat(e.getAllMarginDecorations().map((e=>{const t=e.options.glyphMargin?.position??_t.ZS.Center;return s=Math.max(s,e.range.endLineNumber),{range:e.range,lane:t,persist:e.options.glyphMargin?.persistLane}}))),i=i.concat(this._glyphMarginWidgets.getWidgets().map((t=>{const i=e.validateRange(t.preference.range);return s=Math.max(s,i.endLineNumber),{range:i,lane:t.preference.lane}}))),i.sort(((e,t)=>q.Q.compareRangesUsingStarts(e.range,t.range))),t.reset(s);for(const n of i)t.push(n.lane,n.range,n.persist);return t}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new ee(e,t)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new Y.y(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const e=this._context.configuration.options.get(146);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(143)+" "+(0,ke.Pz)(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onDecorationsChanged(e){return e.affectsGlyphMargin&&(this._shouldRecomputeGlyphMarginLanes=!0),!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new c.D7;if(null===this._renderAnimationFrame){const e=this._createCoordinatedRendering();this._renderAnimationFrame=Ui.INSTANCE.scheduleCoordinatedRendering({window:l.zk(this.domNode?.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new c.D7;try{return e.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new c.D7;return e.renderText()},prepareRender:(t,i)=>{if(this._store.isDisposed)throw new c.D7;return e.prepareRender(t,i)},render:(t,i)=>{if(this._store.isDisposed)throw new c.D7;return e.render(t,i)}})}}_flushAccumulatedAndRenderNow(){const e=this._createCoordinatedRendering();Fi((()=>e.prepareRenderText()));const t=Fi((()=>e.renderText()));if(t){const[i,s]=t;Fi((()=>e.prepareRender(i,s))),Fi((()=>e.render(i,s)))}}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;const e=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(e.requiredLanes)}B.p.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return null;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new Ni(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender()),[e,new je.eh(this._context.viewLayout,i,this._viewLines)]},prepareRender:(e,t)=>{for(const i of e)i.prepareRender(t)},render:(e,t)=>{for(const i of e)i.render(t),i.onDidRender()}}}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._scrollbar.delegateScrollFromMouseWheelEvent(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),s=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const n=this._viewLines.visibleRangeForPosition(new Y.y(s.lineNumber,s.column));return n?n.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?st.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new pi(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(e){this._textAreaHandler.writeScreenReaderContent(e)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){this._contentWidgets.setWidgetPosition(e.widget,e.position?.position??null,e.position?.secondaryPosition??null,e.position?.preference??null,e.position?.positionAffinity??null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){this._overlayWidgets.setWidgetPosition(e.widget,e.position)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}addGlyphMarginWidget(e){this._glyphMarginWidgets.addWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}layoutGlyphMarginWidget(e){const t=e.position;this._glyphMarginWidgets.setWidgetPosition(e.widget,t)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(e){this._glyphMarginWidgets.removeWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}};function Fi(e){try{return e()}catch(t){return(0,c.dz)(t),null}}Pi=Di([Mi(6,He._Y)],Pi);class Ui{static{this.INSTANCE=new Ui}constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(e){return this._coordinatedRenderings.push(e),this._scheduleRender(e.window),{dispose:()=>{const t=this._coordinatedRenderings.indexOf(e);if(-1!==t&&(this._coordinatedRenderings.splice(t,1),0===this._coordinatedRenderings.length)){for(const[e,t]of this._animationFrameRunners)t.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(e){if(!this._animationFrameRunners.has(e)){const t=()=>{this._animationFrameRunners.delete(e),this._onRenderScheduled()};this._animationFrameRunners.set(e,l.Oq(e,t,100))}}_onRenderScheduled(){const e=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(const i of e)Fi((()=>i.prepareRenderText()));const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];t[i]=Fi((()=>s.renderText()))}for(let i=0,s=e.length;i<s;i++){const s=e[i],n=t[i];if(!n)continue;const[r,o]=n;Fi((()=>s.prepareRender(r,o)))}for(let i=0,s=e.length;i<s;i++){const s=e[i],n=t[i];if(!n)continue;const[r,o]=n;Fi((()=>s.render(r,o)))}}}var Hi=i(66782);class Bi{constructor(e,t,i,s,n){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=s,this.wrappedTextIndentLength=n}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let i=this.breakOffsets[e]-t;return e>0&&(i+=this.wrappedTextIndentLength),i}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let i=0===e?t:this.breakOffsets[e-1]+t;if(null!==this.injectionOffsets)for(let s=0;s<this.injectionOffsets.length&&i>this.injectionOffsets[s];s++)i<this.injectionOffsets[s]+this.injectionOptions[s].content.length?i=this.injectionOffsets[s]:i-=this.injectionOptions[s].content.length;return i}translateToOutputPosition(e,t=2){let i=e;if(null!==this.injectionOffsets)for(let s=0;s<this.injectionOffsets.length&&!(e<this.injectionOffsets[s])&&(1===t||e!==this.injectionOffsets[s]);s++)i+=this.injectionOptions[s].content.length;return this.offsetInInputWithInjectionsToOutputPosition(i,t)}offsetInInputWithInjectionsToOutputPosition(e,t=2){let i=0,s=this.breakOffsets.length-1,n=0,r=0;for(;i<=s;){n=i+(s-i)/2|0;const o=this.breakOffsets[n];if(r=n>0?this.breakOffsets[n-1]:0,0===t)if(e<=r)s=n-1;else{if(!(e>o))break;i=n+1}else if(e<r)s=n-1;else{if(!(e>=o))break;i=n+1}}let o=e-r;return n>0&&(o+=this.wrappedTextIndentLength),new zi(n,o)}normalizeOutputPosition(e,t,i){if(null!==this.injectionOffsets){const s=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.normalizeOffsetInInputWithInjectionsAroundInjections(s,i);if(n!==s)return this.offsetInInputWithInjectionsToOutputPosition(n,i)}if(0===i){if(e>0&&t===this.getMinOutputOffset(e))return new zi(e-1,this.getMaxOutputOffset(e-1))}else if(1===i){if(e<this.getOutputLineCount()-1&&t===this.getMaxOutputOffset(e))return new zi(e+1,this.getMinOutputOffset(e+1))}return new zi(e,t)}outputPositionToOffsetInInputWithInjections(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));return(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(2===t){if(e===i.offsetInInputWithInjections+i.length&&Wi(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let e=i.offsetInInputWithInjections;if(Vi(this.injectionOptions[i.injectedTextIndex].cursorStops))return e;let t=i.injectedTextIndex-1;for(;t>=0&&this.injectionOffsets[t]===this.injectionOffsets[i.injectedTextIndex]&&!Wi(this.injectionOptions[t].cursorStops)&&(e-=this.injectionOptions[t].content.length,!Vi(this.injectionOptions[t].cursorStops));)t--;return e}}if(1===t||4===t){let e=i.offsetInInputWithInjections+i.length,t=i.injectedTextIndex;for(;t+1<this.injectionOffsets.length&&this.injectionOffsets[t+1]===this.injectionOffsets[t];)e+=this.injectionOptions[t+1].content.length,t++;return e}if(0===t||3===t){let e=i.offsetInInputWithInjections,t=i.injectedTextIndex;for(;t-1>=0&&this.injectionOffsets[t-1]===this.injectionOffsets[t];)e-=this.injectionOptions[t-1].content.length,t--;return e}(0,Hi.xb)(t)}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),s=this.getInjectedTextAtOffset(i);return s?{options:this.injectionOptions[s.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(null!==t){let s=0;for(let n=0;n<t.length;n++){const r=i[n].content.length,o=t[n]+s,a=t[n]+s+r;if(o>e)break;if(e<=a)return{injectedTextIndex:n,offsetInInputWithInjections:o,length:r};s+=r}}}}function Wi(e){return null===e||void 0===e||(e===_t.VW.Right||e===_t.VW.Both)}function Vi(e){return null===e||void 0===e||(e===_t.VW.Left||e===_t.VW.Both)}class zi{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new Y.y(e+this.outputLineIndex,this.outputOffset+1)}}var Gi=i(64727);const ji=(0,qe.H)("domLineBreaksComputer",{createHTML:e=>e});class Ki{static create(e){return new Ki(new WeakRef(e))}constructor(e){this.targetWindow=e}createLineBreaksComputer(e,t,i,s,n){const r=[],o=[];return{addRequest:(e,t,i)=>{r.push(e),o.push(t)},finalize:()=>function(e,t,i,s,n,r,o,a){function l(e){const i=a[e];if(i){const s=Gi.uK.applyInjectedText(t[e],i),n=i.map((e=>e.options)),r=i.map((e=>e.column-1));return new Bi(r,n,[s.length],[],0)}return null}if(-1===n){const e=[];for(let i=0,s=t.length;i<s;i++)e[i]=l(i);return e}const c=Math.round(n*i.typicalHalfwidthCharacterWidth),h=3===r?2:2===r?1:0,d=Math.round(s*h),u=Math.ceil(i.spaceWidth*d),p=document.createElement("div");(0,g.M)(p,i);const m=new $e.fe(1e4),f=[],_=[],v=[],C=[],b=[];for(let g=0;g<t.length;g++){const e=Gi.uK.applyInjectedText(t[g],a[g]);let n=0,o=0,l=c;if(0!==r)if(n=Re.HG(e),-1===n)n=0;else{for(let i=0;i<n;i++){o+=9===e.charCodeAt(i)?s-o%s:1}const t=Math.ceil(i.spaceWidth*o);t+i.typicalFullwidthCharacterWidth>c?(n=0,o=0):l=c-t}const h=e.substr(n),d=Yi(h,o,s,l,m,u);f[g]=n,_[g]=o,v[g]=h,C[g]=d[0],b[g]=d[1]}const E=m.build(),S=ji?.createHTML(E)??E;p.innerHTML=S,p.style.position="absolute",p.style.top="10000","keepAll"===o?(p.style.wordBreak="keep-all",p.style.overflowWrap="anywhere"):(p.style.wordBreak="inherit",p.style.overflowWrap="break-word");e.document.body.appendChild(p);const y=document.createRange(),w=Array.prototype.slice.call(p.children,0),L=[];for(let g=0;g<t.length;g++){const e=qi(y,w[g],v[g],C[g]);if(null===e){L[g]=l(g);continue}const t=f[g],i=_[g]+d,s=b[g],n=[];for(let a=0,l=e.length;a<l;a++)n[a]=s[e[a]];if(0!==t)for(let a=0,l=e.length;a<l;a++)e[a]+=t;let r,o;const c=a[g];c?(r=c.map((e=>e.options)),o=c.map((e=>e.column-1))):(r=null,o=null),L[g]=new Bi(o,r,e,n,i)}return p.remove(),L}((0,Rt.eU)(this.targetWindow.deref()),r,e,t,i,s,n,o)}}}function Yi(e,t,i,s,n,r){if(0!==r){const e=String(r);n.appendString('<div style="text-indent: -'),n.appendString(e),n.appendString("px; padding-left: "),n.appendString(e),n.appendString("px; box-sizing: border-box; width:")}else n.appendString('<div style="width:');n.appendString(String(s)),n.appendString('px;">');const o=e.length;let a=t,l=0;const c=[],h=[];let d=0<o?e.charCodeAt(0):0;n.appendString("<span>");for(let u=0;u<o;u++){0!==u&&u%16384===0&&n.appendString("</span><span>"),c[u]=l,h[u]=a;const t=d;d=u+1<o?e.charCodeAt(u+1):0;let s=1,r=1;switch(t){case 9:s=i-a%i,r=s;for(let e=1;e<=s;e++)e<s?n.appendCharCode(160):n.appendASCIICharCode(32);break;case 32:32===d?n.appendCharCode(160):n.appendASCIICharCode(32);break;case 60:n.appendString("<");break;case 62:n.appendString(">");break;case 38:n.appendString("&");break;case 0:n.appendString("�");break;case 65279:case 8232:case 8233:case 133:n.appendCharCode(65533);break;default:Re.ne(t)&&r++,t<32?n.appendCharCode(9216+t):n.appendCharCode(t)}l+=s,a+=r}return n.appendString("</span>"),c[e.length]=l,h[e.length]=a,n.appendString("</div>"),[c,h]}function qi(e,t,i,s){if(i.length<=1)return null;const n=Array.prototype.slice.call(t.children,0),r=[];try{$i(e,n,s,0,null,i.length-1,null,r)}catch(o){return console.log(o),null}return 0===r.length?null:(r.push(i.length),r)}function $i(e,t,i,s,n,r,o,a){if(s===r)return;if(n=n||Qi(e,t,i[s],i[s+1]),o=o||Qi(e,t,i[r],i[r+1]),Math.abs(n[0].top-o[0].top)<=.1)return;if(s+1===r)return void a.push(r);const l=s+(r-s)/2|0,c=Qi(e,t,i[l],i[l+1]);$i(e,t,i,s,n,l,c,a),$i(e,t,i,l,c,r,o,a)}function Qi(e,t,i,s){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[s/16384|0].firstChild,s%16384),e.getClientRects()}class Xi extends d.jG{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new d.$w),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,i){this._editor=e,this._instantiationService=i;for(const s of t)this._pending.has(s.id)?(0,c.dz)(new Error(`Cannot have two contributions with the same id ${s.id}`)):this._pending.set(s.id,s);this._instantiateSome(0),this._register((0,l.U3)((0,l.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(1)}))),this._register((0,l.U3)((0,l.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(2)}))),this._register((0,l.U3)((0,l.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(3)}),5e3))}saveViewState(){const e={};for(const[t,i]of this._instances)"function"===typeof i.saveViewState&&(e[t]=i.saveViewState());return e}restoreViewState(e){for(const[t,i]of this._instances)"function"===typeof i.restoreViewState&&i.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){return(0,l.U3)((0,l.zk)(this._editor?.getDomNode()),(()=>{this._instantiateSome(1)}),50)}_instantiateSome(e){if(this._finishedInstantiation[e])return;this._finishedInstantiation[e]=!0;const t=this._findPendingContributionsByInstantiation(e);for(const i of t)this._instantiateById(i.id)}_findPendingContributionsByInstantiation(e){const t=[];for(const[,i]of this._pending)i.instantiation===e&&t.push(i);return t}_instantiateById(e){const t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{const e=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,e),"function"===typeof e.restoreViewState&&0!==t.instantiation&&console.warn(`Editor contribution '${t.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(i){(0,c.dz)(i)}}}}var Zi=i(97681),Ji=i(29611),es=i(23452),ts=i(60002),is=i(17469),ss=i(87289),ns=i(56942),rs=i(60534);class os{static create(e){return new os(e.get(135),e.get(134))}constructor(e,t){this.classifier=new as(e,t)}createLineBreaksComputer(e,t,i,s,n){const r=[],o=[],a=[];return{addRequest:(e,t,i)=>{r.push(e),o.push(t),a.push(i)},finalize:()=>{const l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,c=[];for(let e=0,h=r.length;e<h;e++){const h=o[e],d=a[e];!d||d.injectionOptions||h?c[e]=ds(this.classifier,r[e],h,t,i,l,s,n):c[e]=hs(this.classifier,d,r[e],t,i,l,s,n)}return ls.length=0,cs.length=0,c}}}}class as extends rs.V{constructor(e,t){super(0);for(let i=0;i<e.length;i++)this.set(e.charCodeAt(i),1);for(let i=0;i<t.length;i++)this.set(t.charCodeAt(i),2)}get(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let ls=[],cs=[];function hs(e,t,i,s,n,r,o,a){if(-1===n)return null;const l=i.length;if(l<=1)return null;const c="keepAll"===a,h=t.breakOffsets,d=t.breakOffsetsVisibleColumn,u=ms(i,s,n,r,o),g=n-u,p=ls,m=cs;let f=0,_=0,v=0,C=n;const b=h.length;let E=0;if(E>=0){let e=Math.abs(d[E]-C);for(;E+1<b;){const t=Math.abs(d[E+1]-C);if(t>=e)break;e=t,E++}}for(;E<b;){let t=E<0?0:h[E],n=E<0?0:d[E];_>t&&(t=_,n=v);let o=0,a=0,u=0,S=0;if(n<=C){let v=n,b=0===t?0:i.charCodeAt(t-1),E=0===t?0:e.get(b),y=!0;for(let n=t;n<l;n++){const t=n,l=i.charCodeAt(n);let h,d;if(Re.pc(l)?(n++,h=0,d=2):(h=e.get(l),d=us(l,v,s,r)),t>_&&ps(b,E,l,h,c)&&(o=t,a=v),v+=d,v>C){t>_?(u=t,S=v-d):(u=n+1,S=v),v-a>g&&(o=0),y=!1;break}b=l,E=h}if(y){f>0&&(p[f]=h[h.length-1],m[f]=d[h.length-1],f++);break}}if(0===o){let l=n,h=i.charCodeAt(t),d=e.get(h),p=!1;for(let s=t-1;s>=_;s--){const t=s+1,n=i.charCodeAt(s);if(9===n){p=!0;break}let m,f;if(Re.LJ(n)?(s--,m=0,f=2):(m=e.get(n),f=Re.ne(n)?r:1),l<=C){if(0===u&&(u=t,S=l),l<=C-g)break;if(ps(n,m,h,d,c)){o=t,a=l;break}}l-=f,h=n,d=m}if(0!==o){const e=g-(S-a);if(e<=s){const t=i.charCodeAt(u);let n;n=Re.pc(t)?2:us(t,S,s,r),e-n<0&&(o=0)}}if(p){E--;continue}}if(0===o&&(o=u,a=S),o<=_){const e=i.charCodeAt(_);Re.pc(e)?(o=_+2,a=v+2):(o=_+1,a=v+us(e,v,s,r))}for(_=o,p[f]=o,v=a,m[f]=a,f++,C=a+g;E<0||E<b&&d[E]<a;)E++;let y=Math.abs(d[E]-C);for(;E+1<b;){const e=Math.abs(d[E+1]-C);if(e>=y)break;y=e,E++}}return 0===f?null:(p.length=f,m.length=f,ls=t.breakOffsets,cs=t.breakOffsetsVisibleColumn,t.breakOffsets=p,t.breakOffsetsVisibleColumn=m,t.wrappedTextIndentLength=u,t)}function ds(e,t,i,s,n,r,o,a){const l=Gi.uK.applyInjectedText(t,i);let c,h;if(i&&i.length>0?(c=i.map((e=>e.options)),h=i.map((e=>e.column-1))):(c=null,h=null),-1===n)return c?new Bi(h,c,[l.length],[],0):null;const d=l.length;if(d<=1)return c?new Bi(h,c,[l.length],[],0):null;const u="keepAll"===a,g=ms(l,s,n,r,o),p=n-g,m=[],f=[];let _=0,v=0,C=0,b=n,E=l.charCodeAt(0),S=e.get(E),y=us(E,0,s,r),w=1;Re.pc(E)&&(y+=1,E=l.charCodeAt(1),S=e.get(E),w++);for(let L=w;L<d;L++){const t=L,i=l.charCodeAt(L);let n,o;Re.pc(i)?(L++,n=0,o=2):(n=e.get(i),o=us(i,y,s,r)),ps(E,S,i,n,u)&&(v=t,C=y),y+=o,y>b&&((0===v||y-C>p)&&(v=t,C=y-o),m[_]=v,f[_]=C,_++,b=C+p,v=0),E=i,S=n}return 0!==_||i&&0!==i.length?(m[_]=d,f[_]=y,new Bi(h,c,m,f,g)):null}function us(e,t,i,s){return 9===e?i-t%i:Re.ne(e)||e<32?s:1}function gs(e,t){return t-e%t}function ps(e,t,i,s,n){return 32!==i&&(2===t&&2!==s||1!==t&&1===s||!n&&3===t&&2!==s||!n&&3===s&&1!==t)}function ms(e,t,i,s,n){let r=0;if(0!==n){const o=Re.HG(e);if(-1!==o){for(let i=0;i<o;i++){r+=9===e.charCodeAt(i)?gs(r,t):1}const a=3===n?2:2===n?1:0;for(let e=0;e<a;e++){r+=gs(r,t)}r+s>i&&(r=0)}}return r}var fs=i(46041),_s=i(32799);class vs{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new _s.mG(new q.Q(1,1,1,1),0,0,new Y.y(1,1),0),new _s.mG(new q.Q(1,1,1,1),0,0,new Y.y(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new _s.MF(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!t.isEmpty()?pe.L.fromRange(t.collapseToEnd(),this.modelState.selection.getDirection()):pe.L.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,s){return t.equals(i)?s:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,s=t.selectionStart.getStartPosition(),n=t.selectionStart.getEndPosition(),r=e.normalizePosition(i,2),o=this._validatePositionWithCache(e,s,i,r),a=this._validatePositionWithCache(e,n,s,o);return i.equals(r)&&s.equals(o)&&n.equals(a)?t:new _s.mG(q.Q.fromPositions(o,a),t.selectionStartKind,t.selectionStartLeftoverVisibleColumns+s.column-o.column,r,t.leftoverVisibleColumns+i.column-r.column)}_setState(e,t,i){if(i&&(i=vs._validateViewState(e.viewModel,i)),t){const i=e.model.validateRange(t.selectionStart),s=t.selectionStart.equalsRange(i)?t.selectionStartLeftoverVisibleColumns:0,n=e.model.validatePosition(t.position),r=t.position.equals(n)?t.leftoverVisibleColumns:0;t=new _s.mG(i,t.selectionStartKind,s,n,r)}else{if(!i)return;const s=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),n=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new _s.mG(s,i.selectionStartKind,i.selectionStartLeftoverVisibleColumns,n,i.leftoverVisibleColumns)}if(i){const s=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),n=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new _s.mG(s,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,n,t.leftoverVisibleColumns)}else{const s=e.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),n=e.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),r=new q.Q(s.lineNumber,s.column,n.lineNumber,n.column),o=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new _s.mG(r,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,o,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class Cs{constructor(e){this.context=e,this.cursors=[new vs(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map((e=>e.readSelectionFromMarkers(this.context)))}getAll(){return this.cursors.map((e=>e.asCursorState()))}getViewPositions(){return this.cursors.map((e=>e.viewState.position))}getTopMostViewPosition(){return(0,fs.kh)(this.cursors,(0,m.VE)((e=>e.viewState.position),Y.y.compare)).viewState.position}getBottomMostViewPosition(){return(0,fs.ot)(this.cursors,(0,m.VE)((e=>e.viewState.position),Y.y.compare)).viewState.position}getSelections(){return this.cursors.map((e=>e.modelState.selection))}getViewSelections(){return this.cursors.map((e=>e.viewState.selection))}setSelections(e){this.setStates(_s.MF.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){null!==e&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(t<i){const e=i-t;for(let t=0;t<e;t++)this._addSecondaryCursor()}else if(t>i){const e=t-i;for(let t=0;t<e;t++)this._removeSecondaryCursor(this.cursors.length-2)}for(let s=0;s<i;s++)this.cursors[s+1].setState(this.context,e[s].modelState,e[s].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.cursors.push(new vs(this.context)),this.lastAddedCursorIndex=this.cursors.length-1}getLastAddedCursorIndex(){return 1===this.cursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex}_removeSecondaryCursor(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(1===this.cursors.length)return;const e=this.cursors.slice(0),t=[];for(let i=0,s=e.length;i<s;i++)t.push({index:i,selection:e[i].modelState.selection});t.sort((0,m.VE)((e=>e.selection),q.Q.compareRangesUsingStarts));for(let i=0;i<t.length-1;i++){const s=t[i],n=t[i+1],r=s.selection,o=n.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let a;if(a=o.isEmpty()||r.isEmpty()?o.getStartPosition().isBeforeOrEqual(r.getEndPosition()):o.getStartPosition().isBefore(r.getEndPosition()),a){const r=s.index<n.index?i:i+1,o=s.index<n.index?i+1:i,a=t[o].index,l=t[r].index,c=t[o].selection,h=t[r].selection;if(!c.equalsSelection(h)){const i=c.plusRange(h),s=c.selectionStartLineNumber===c.startLineNumber&&c.selectionStartColumn===c.startColumn,n=h.selectionStartLineNumber===h.startLineNumber&&h.selectionStartColumn===h.startColumn;let o,d;a===this.lastAddedCursorIndex?(o=s,this.lastAddedCursorIndex=l):o=n,d=o?new pe.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new pe.L(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn),t[r].selection=d;const u=_s.MF.fromModelSelection(d);e[l].setState(this.context,u.modelState,u.viewState)}for(const e of t)e.index>a&&e.index--;e.splice(a,1),t.splice(o,1),this._removeSecondaryCursor(a-1),i--}}}}class bs{constructor(e,t,i,s){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=s}}var Es=i(1226),Ss=i(49265),ys=i(26685);class ws{constructor(){this.type=0}}class Ls{constructor(){this.type=1}}class Rs{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class Ts{constructor(e,t,i){this.selections=e,this.modelSelections=t,this.reason=i,this.type=3}}class xs{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler,this.affectsGlyphMargin=e.affectsGlyphMargin,this.affectsLineNumber=e.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}}class ks{constructor(){this.type=5}}class As{constructor(e){this.type=6,this.isFocused=e}}class Ns{constructor(){this.type=7}}class Is{constructor(){this.type=8}}class Os{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}}class Ds{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class Ms{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class Ps{constructor(e,t,i,s,n,r,o){this.source=e,this.minimalReveal=t,this.range=i,this.selections=s,this.verticalType=n,this.revealHorizontal=r,this.scrollType=o,this.type=12}}class Fs{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class Us{constructor(e){this.theme=e,this.type=14}}class Hs{constructor(e){this.type=15,this.ranges=e}}class Bs{constructor(){this.type=16}}class Ws{constructor(){this.type=17}}class Vs extends d.jG{constructor(){super(),this._onEvent=this._register(new h.vl),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t<i;t++){const i=this._outgoingEvents[t].kind===e.kind?this._outgoingEvents[t].attemptToMerge(e):null;if(i)return void(this._outgoingEvents[t]=i)}this._outgoingEvents.push(e)}_emitOutgoingEvents(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t<i;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)}removeViewEventHandler(e){for(let t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}beginEmitViewEvents(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new zs),this._collector}endEmitViewEvents(){if(this._collectorCnt--,0===this._collectorCnt){const e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;for(const i of e)this._addOutgoingEvent(i);t.length>0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class zs{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class Gs{constructor(e,t,i,s){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=s,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Gs(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class js{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new js(this.oldHasFocus,e.hasFocus)}}class Ks{constructor(e,t,i,s,n,r,o,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=s,this.scrollWidth=n,this.scrollLeft=r,this.scrollHeight=o,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Ks(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class Ys{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class qs{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class $s{constructor(e,t,i,s,n,r,o){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=s,this.source=n,this.reason=r,this.reachedMaxCursorCount=o}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(!e[s].equalsSelection(t[s]))return!1;return!0}isNoOp(){return $s._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}attemptToMerge(e){return e.kind!==this.kind?null:new $s(this.oldSelections,e.selections,this.oldModelVersionId,e.modelVersionId,e.source,e.reason,this.reachedMaxCursorCount||e.reachedMaxCursorCount)}}class Qs{constructor(){this.kind=5}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Xs{constructor(e){this.event=e,this.kind=7}isNoOp(){return!1}attemptToMerge(e){return null}}class Zs{constructor(e){this.event=e,this.kind=8}isNoOp(){return!1}attemptToMerge(e){return null}}class Js{constructor(e){this.event=e,this.kind=9}isNoOp(){return!1}attemptToMerge(e){return null}}class en{constructor(e){this.event=e,this.kind=10}isNoOp(){return!1}attemptToMerge(e){return null}}class tn{constructor(e){this.event=e,this.kind=11}isNoOp(){return!1}attemptToMerge(e){return null}}class sn{constructor(e){this.event=e,this.kind=12}isNoOp(){return!1}attemptToMerge(e){return null}}class nn extends d.jG{constructor(e,t,i,s){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=i,this.context=new bs(this._model,this._viewModel,this._coordinatesConverter,s),this._cursors=new Cs(this.context),this._hasFocus=!1,this._isHandling=!1,this._compositionState=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=(0,d.AS)(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new bs(this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){const e=this._cursors.getSelections();for(let t=0;t<this._autoClosedActions.length;t++){const i=this._autoClosedActions[t];i.isValid(e)||(i.dispose(),this._autoClosedActions.splice(t,1),t--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(e,t,i,s){let n=!1;const r=this.context.cursorConfig.multiCursorLimit;null!==s&&s.length>r&&(s=s.slice(0,r),n=!0);const o=rn.from(this._model,this);return this._cursors.setStates(s),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,o,n)}setCursorColumnSelectData(e){this._columnSelectData=e}revealAll(e,t,i,s,n,r){const o=this._cursors.getViewPositions();let a=null,l=null;o.length>1?l=this._cursors.getViewSelections():a=q.Q.fromPositions(o[0],o[0]),e.emitViewEvent(new Ps(t,i,a,l,s,n,r))}revealPrimary(e,t,i,s,n,r){const o=[this._cursors.getPrimaryCursor().viewState.selection];e.emitViewEvent(new Ps(t,i,null,o,s,n,r))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,s=t.length;i<s;i++){const s=t[i];e.push({inSelectionMode:!s.isEmpty(),selectionStart:{lineNumber:s.selectionStartLineNumber,column:s.selectionStartColumn},position:{lineNumber:s.positionLineNumber,column:s.positionColumn}})}return e}restoreState(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const e=t[s];let n=1,r=1;e.position&&e.position.lineNumber&&(n=e.position.lineNumber),e.position&&e.position.column&&(r=e.position.column);let o=n,a=r;e.selectionStart&&e.selectionStart.lineNumber&&(o=e.selectionStart.lineNumber),e.selectionStart&&e.selectionStart.column&&(a=e.selectionStart.column),i.push({selectionStartLineNumber:o,selectionStartColumn:a,positionLineNumber:n,positionColumn:r})}this.setStates(e,"restoreState",0,_s.MF.fromModelSelections(i)),this.revealAll(e,"restoreState",!1,0,!0,1)}onModelContentChanged(e,t){if(t instanceof Gi.vn){if(this._isHandling)return;this._isHandling=!0;try{this.setStates(e,"modelChange",0,this.getCursorStates())}finally{this._isHandling=!1}}else{const i=t.rawContentChangedEvent;if(this._knownModelVersionId=i.versionId,this._isHandling)return;const s=i.containsEvent(1);if(this._prevEditOperationType=0,s)this._cursors.dispose(),this._cursors=new Cs(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1);else if(this._hasFocus&&i.resultingSelection&&i.resultingSelection.length>0){const t=_s.MF.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,t)&&this.revealAll(e,"modelChange",!1,0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,_s.MF.fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,s){this.setStates(e,t,s,_s.MF.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],s=[];for(let o=0,a=e.length;o<a;o++)i.push({range:e[o],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),s.push({range:t[o],options:{description:"auto-closed-enclosing",stickiness:1}});const n=this._model.deltaDecorations([],i),r=this._model.deltaDecorations([],s);this._autoClosedActions.push(new on(this._model,n,r))}_executeEditOperation(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();const t=an.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);const i=[],s=[];for(let t=0;t<e.commands.length;t++){const n=e.commands[t];n instanceof ys.Hs&&n.enclosingRange&&n.closeCharacterRange&&(i.push(n.closeCharacterRange),s.push(n.enclosingRange))}i.length>0&&this._pushAutoClosedAction(i,s),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,s,n){const r=rn.from(this._model,this);if(r.equals(s))return!1;const o=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new Ts(a,o,i)),!s||s.cursorState.length!==r.cursorState.length||r.cursorState.some(((e,t)=>!e.modelState.equals(s.cursorState[t].modelState)))){const a=s?s.cursorState.map((e=>e.modelState.selection)):null,l=s?s.modelVersionId:0;e.emitOutgoingEvent(new $s(a,o,l,r.modelVersionId,t||"keyboard",i,n))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,s=e.length;i<s;i++){const s=e[i];if(!s.text||s.text.indexOf("\n")>=0)return null;const n=s.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!n)return null;const r=n[1],o=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(r);if(!o||1!==o.length)return null;const a=o[0].open,l=s.text.length-n[2].length-1,c=s.text.lastIndexOf(a,l-1);if(-1===c)return null;t.push([c,l])}return t}executeEdits(e,t,i,s){let n=null;"snippet"===t&&(n=this._findAutoClosingPairs(i)),n&&(i[0]._isTracked=!0);const r=[],o=[],a=this._model.pushEditOperations(this.getSelections(),i,(e=>{if(n)for(let i=0,s=n.length;i<s;i++){const[t,s]=n[i],a=e[i],l=a.range.startLineNumber,c=a.range.startColumn-1+t,h=a.range.startColumn-1+s;r.push(new q.Q(l,h+1,l,h+2)),o.push(new q.Q(l,c+1,l,h+2))}const t=s(e);return t&&(this._isHandling=!0),t}));a&&(this._isHandling=!1,this.setSelections(e,t,a,0)),r.length>0&&this._pushAutoClosedAction(r,o)}_executeEdit(e,t,i,s=0){if(this.context.cursorConfig.readOnly)return;const n=rn.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(r){(0,c.dz)(r)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,s,n,!1)&&this.revealAll(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return on.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new cn(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit((()=>{"keyboard"===t&&this._executeEditOperation(Ss.T.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))}),e,t)}type(e,t,i){this._executeEdit((()=>{if("keyboard"===i){const e=t.length;let i=0;for(;i<e;){const e=Re.iy(t,i),s=t.substr(i,e);this._executeEditOperation(Ss.T.typeWithInterceptors(!!this._compositionState,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),s)),i+=e}}else this._executeEditOperation(Ss.T.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t))}),e,i)}compositionType(e,t,i,s,n,r){if(0!==t.length||0!==i||0!==s)this._executeEdit((()=>{this._executeEditOperation(Ss.T.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,s,n))}),e,r);else if(0!==n){const t=this.getSelections().map((e=>{const t=e.getPosition();return new pe.L(t.lineNumber,t.column+n,t.lineNumber,t.column+n)}));this.setSelections(e,r,t,0)}}paste(e,t,i,s,n){this._executeEdit((()=>{this._executeEditOperation(Ss.T.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,s||[]))}),e,n,4)}cut(e,t){this._executeEdit((()=>{this._executeEditOperation(Es.g.cut(this.context.cursorConfig,this._model,this.getSelections()))}),e,t)}executeCommand(e,t,i){this._executeEdit((()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new _s.vY(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}executeCommands(e,t,i){this._executeEdit((()=>{this._executeEditOperation(new _s.vY(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}}class rn{static from(e,t){return new rn(e.getVersionId(),t.getCursorStates())}constructor(e,t){this.modelVersionId=e,this.cursorState=t}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t<i;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0}}class on{static getAllAutoClosedCharacters(e){let t=[];for(const i of e)t=t.concat(i.getAutoClosedCharactersRanges());return t}constructor(e,t,i){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=i}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){const e=[];for(let t=0;t<this._autoClosedCharactersDecorations.length;t++){const i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);i&&e.push(i)}return e}isValid(e){const t=[];for(let i=0;i<this._autoClosedEnclosingDecorations.length;i++){const e=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(e&&(t.push(e),e.startLineNumber!==e.endLineNumber))return!1}t.sort(q.Q.compareRangesUsingStarts),e.sort(q.Q.compareRangesUsingStarts);for(let i=0;i<e.length;i++){if(i>=t.length)return!1;if(!t[i].strictContainsRange(e[i]))return!1}return!0}}class an{static executeCommands(e,t,i){const s={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},n=this._innerExecuteCommands(s,i);for(let r=0,o=s.trackedRanges.length;r<o;r++)s.model._setTrackedRange(s.trackedRanges[r],null,0);return n}static _innerExecuteCommands(e,t){if(this._arrayIsEmpty(t))return null;const i=this._getEditOperations(e,t);if(0===i.operations.length)return null;const s=i.operations,n=this._getLoserCursorMap(s);if(n.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;const r=[];for(let l=0,c=s.length;l<c;l++)n.hasOwnProperty(s[l].identifier.major.toString())||r.push(s[l]);i.hadTrackedEditOperation&&r.length>0&&(r[0]._isTracked=!0);let o=e.model.pushEditOperations(e.selectionsBefore,r,(i=>{const s=[];for(let t=0;t<e.selectionsBefore.length;t++)s[t]=[];for(const e of i)e.identifier&&s[e.identifier.major].push(e);const n=(e,t)=>e.identifier.minor-t.identifier.minor,r=[];for(let o=0;o<e.selectionsBefore.length;o++)s[o].length>0?(s[o].sort(n),r[o]=t[o].computeCursorState(e.model,{getInverseEditOperations:()=>s[o],getTrackedSelection:t=>{const i=parseInt(t,10),s=e.model._getTrackedRange(e.trackedRanges[i]);return 0===e.trackedRangesDirection[i]?new pe.L(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn):new pe.L(s.endLineNumber,s.endColumn,s.startLineNumber,s.startColumn)}})):r[o]=e.selectionsBefore[o];return r}));o||(o=e.selectionsBefore);const a=[];for(const l in n)n.hasOwnProperty(l)&&a.push(parseInt(l,10));a.sort(((e,t)=>t-e));for(const l of a)o.splice(l,1);return o}static _arrayIsEmpty(e){for(let t=0,i=e.length;t<i;t++)if(e[t])return!1;return!0}static _getEditOperations(e,t){let i=[],s=!1;for(let n=0,r=t.length;n<r;n++){const r=t[n];if(r){const t=this._getEditOperationsFromCommand(e,n,r);i=i.concat(t.operations),s=s||t.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:s}}static _getEditOperationsFromCommand(e,t,i){const s=[];let n=0;const r=(e,r,o=!1)=>{q.Q.isEmpty(e)&&""===r||s.push({identifier:{major:t,minor:n++},range:e,text:r,forceMoveMarkers:o,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let o=!1;const a={addEditOperation:r,addTrackedEditOperation:(e,t,i)=>{o=!0,r(e,t,i)},trackSelection:(t,i)=>{const s=pe.L.liftSelection(t);let n;if(s.isEmpty())if("boolean"===typeof i)n=i?2:3;else{const t=e.model.getLineMaxColumn(s.startLineNumber);n=s.startColumn===t?2:3}else n=1;const r=e.trackedRanges.length,o=e.model._setTrackedRange(null,s,n);return e.trackedRanges[r]=o,e.trackedRangesDirection[r]=s.getDirection(),r.toString()}};try{i.getEditOperations(e.model,a)}catch(l){return(0,c.dz)(l),{operations:[],hadTrackedEditOperation:!1}}return{operations:s,hadTrackedEditOperation:o}}static _getLoserCursorMap(e){(e=e.slice(0)).sort(((e,t)=>-q.Q.compareRangesUsingEnds(e.range,t.range)));const t={};for(let i=1;i<e.length;i++){const s=e[i-1],n=e[i];if(q.Q.getStartPosition(s.range).isBefore(q.Q.getEndPosition(n.range))){let r;r=s.identifier.major>n.identifier.major?s.identifier.major:n.identifier.major,t[r.toString()]=!0;for(let t=0;t<e.length;t++)e[t].identifier.major===r&&(e.splice(t,1),t<i&&i--,t--);i>0&&i--}}return t}}class ln{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class cn{static _capture(e,t){const i=[];for(const s of t){if(s.startLineNumber!==s.endLineNumber)return null;i.push(new ln(e.getLineContent(s.startLineNumber),s.startColumn-1,s.endColumn-1))}return i}constructor(e,t){this._original=cn._capture(e,t)}deduceOutcome(e,t){if(!this._original)return null;const i=cn._capture(e,t);if(!i)return null;if(this._original.length!==i.length)return null;const s=[];for(let n=0,r=this._original.length;n<r;n++)s.push(cn._deduceOutcome(this._original[n],i[n]));return s}static _deduceOutcome(e,t){const i=Math.min(e.startSelection,t.startSelection,Re.Qp(e.text,t.text)),s=Math.min(e.text.length-e.endSelection,t.text.length-t.endSelection,Re.Vi(e.text,t.text)),n=e.text.substring(i,e.text.length-s),r=t.text.substring(i,t.text.length-s);return new Ss.v(n,e.startSelection-i,e.endSelection-i,r,t.startSelection-i,t.endSelection-i)}}var hn=i(83941),dn=i(58314),un=i(49353);class gn{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,s=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,s)}}class pn{constructor(e,t,i,s,n){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=s,this.minWidth=n,this.prefixSum=0}}class mn{static{this.INSTANCE_COUNT=0}constructor(e,t,i,s){this._instanceId=Re.tk(++mn.INSTANCE_COUNT),this._pendingChanges=new gn,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=s}static findInsertionIndex(e,t,i){let s=0,n=e.length;for(;s<n;){const r=s+n>>>1;t===e[r].afterLineNumber?i<e[r].ordinal?n=r:s=r+1:t<e[r].afterLineNumber?n=r:s=r+1}return s}setLineHeight(e){this._checkPendingChanges(),this._lineHeight=e}setPadding(e,t){this._paddingTop=e,this._paddingBottom=t}onFlushed(e){this._checkPendingChanges(),this._lineCount=e}changeWhitespace(e){let t=!1;try{e({insertWhitespace:(e,i,s,n)=>{t=!0,e|=0,i|=0,s|=0,n|=0;const r=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new pn(r,e,i,s,n)),r},changeOneWhitespace:(e,i,s)=>{t=!0,i|=0,s|=0,this._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:s})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of i){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const s=new Set;for(const a of i)s.add(a.id);const n=new Map;for(const a of t)n.set(a.id,a);const r=e=>{const t=[];for(const i of e)if(!s.has(i.id)){if(n.has(i.id)){const e=n.get(i.id);i.afterLineNumber=e.newAfterLineNumber,i.height=e.newHeight}t.push(i)}return t},o=r(this._arr).concat(r(e));o.sort(((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber)),this._arr=o,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=mn.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,s=t.length;i<s;i++)if(t[i].id===e)return i;return-1}_changeOneWhitespace(e,t,i){const s=this._findWhitespaceIndex(e);if(-1!==s&&(this._arr[s].height!==i&&(this._arr[s].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,s-1)),this._arr[s].afterLineNumber!==t)){const e=this._arr[s];this._removeWhitespace(s),e.afterLineNumber=t,this._insertWhitespace(e)}}_removeWhitespace(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}onLinesDeleted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(let i=0,s=this._arr.length;i<s;i++){const s=this._arr[i].afterLineNumber;e<=s&&s<=t?this._arr[i].afterLineNumber=e-1:s>t&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let i=0,s=this._arr.length;i<s;i++){e<=this._arr[i].afterLineNumber&&(this._arr[i].afterLineNumber+=t-e+1)}}getWhitespacesTotalHeight(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(e){this._checkPendingChanges(),e|=0;let t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(let i=t;i<=e;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum}getLinesTotalHeight(){this._checkPendingChanges();return this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(e){this._checkPendingChanges(),e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)}_findLastWhitespaceBeforeLineNumber(e){e|=0;const t=this._arr;let i=0,s=t.length-1;for(;i<=s;){const n=i+((s-i|0)/2|0)|0;if(t[n].afterLineNumber<e){if(n+1>=t.length||t[n+1].afterLineNumber>=e)return n;i=n+1|0}else s=n-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1}getFirstWhitespaceIndexAfterLineNumber(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)}getVerticalOffsetForLineNumber(e,t=!1){let i;this._checkPendingChanges(),i=(e|=0)>1?this._lineHeight*(e-1):0;return i+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0))+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){this._checkPendingChanges(),e|=0;return this._lineHeight*e+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0))+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;t<i;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}isAfterLines(e){this._checkPendingChanges();return e>this.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e<this._paddingTop)}isInBottomPadding(e){if(0===this._paddingBottom)return!1;this._checkPendingChanges();return e>=this.getLinesTotalHeight()-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,i=this._lineHeight;let s=1,n=t;for(;s<n;){const t=(s+n)/2|0,r=0|this.getVerticalOffsetForLineNumber(t);if(e>=r+i)s=t+1;else{if(e>=r)return t;n=t}}return s>t?t:s}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this._lineHeight,s=0|this.getLineNumberAtOrAfterVerticalOffset(e),n=0|this.getVerticalOffsetForLineNumber(s);let r=0|this._lineCount,o=0|this.getFirstWhitespaceIndexAfterLineNumber(s);const a=0|this.getWhitespacesCount();let l,c;-1===o?(o=a,c=r+1,l=0):(c=0|this.getAfterLineNumberForWhitespaceIndex(o),l=0|this.getHeightForWhitespaceIndex(o));let h=n,d=h;const u=5e5;let g=0;n>=u&&(g=Math.floor(n/u)*u,g=Math.floor(g/i)*i,d-=g);const p=[],m=e+(t-e)/2;let f=-1;for(let b=s;b<=r;b++){if(-1===f){(h<=m&&m<h+i||h>m)&&(f=b)}for(h+=i,p[b-s]=d,d+=i;c===b;)d+=l,h+=l,o++,o>=a?c=r+1:(c=0|this.getAfterLineNumberForWhitespaceIndex(o),l=0|this.getHeightForWhitespaceIndex(o));if(h>=t){r=b;break}}-1===f&&(f=r);const _=0|this.getVerticalOffsetForLineNumber(r);let v=s,C=r;return v<C&&n<e&&v++,v<C&&_+i>t&&C--,{bigNumbersDelta:g,startLineNumber:s,endLineNumber:r,relativeVerticalOffset:p,centeredLineNumber:f,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:C,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i,s;return i=t>=1?this._lineHeight*t:0,s=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,i+s+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this.getHeightForWhitespaceIndex(i))return-1;for(;t<i;){const s=Math.floor((t+i)/2),n=this.getVerticalOffsetForWhitespaceIndex(s);if(e>=n+this.getHeightForWhitespaceIndex(s))t=s+1;else{if(e>=n)return s;i=s}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const s=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:s}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),s=this.getWhitespacesCount()-1;if(i<0)return[];const n=[];for(let r=i;r<=s;r++){const e=this.getVerticalOffsetForWhitespaceIndex(r),i=this.getHeightForWhitespaceIndex(r);if(e>=t)break;n.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:e,height:i})}return n}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}class fn{constructor(e,t,i,s){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(s|=0)<0&&(s=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=s,this.scrollHeight=Math.max(i,s)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class _n extends d.jG{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new h.vl),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new fn(0,0,0,0),this._scrollable=this._register(new un.yE({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,s=t.contentHeight!==e.contentHeight;(i||s)&&this._onDidContentSizeChange.fire(new Gs(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class vn extends d.jG{constructor(e,t,i){super(),this._configuration=e;const s=this._configuration.options,n=s.get(146),r=s.get(84);this._linesLayout=new mn(t,s.get(67),r.top,r.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new _n(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new fn(n.contentWidth,0,n.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(115)?125:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(t.get(67)),e.hasChanged(84)){const e=t.get(84);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(146)){const e=t.get(146),i=e.contentWidth,s=e.height,n=this._scrollable.getScrollDimensions(),r=n.contentWidth;this._scrollable.setScrollDimensions(new fn(i,n.contentWidth,s,this._getContentHeight(i,s,r)))}else this._updateHeight();e.hasChanged(115)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const i=this._configuration.options.get(104);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){const s=this._configuration.options;let n=this._linesLayout.getLinesTotalHeight();return s.get(106)?n+=Math.max(0,t-s.get(67)-s.get(84).bottom):s.get(104).ignoreHorizontalScrollbarInContentHeight||(n+=this._getHorizontalScrollbarHeight(e,i)),n}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,s=e.contentWidth;this._scrollable.setScrollDimensions(new fn(t,e.contentWidth,i,this._getContentHeight(t,i,s)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new Vt.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new Vt.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(){const e=this._configuration.options,t=this._maxLineWidth,i=e.get(147),s=e.get(50),n=e.get(146);if(i.isViewportWrapping){const i=e.get(73);return t>n.contentWidth+s.typicalHalfwidthCharacterWidth&&i.enabled&&"right"===i.side?t+n.verticalScrollbarWidth:t}{const i=e.get(105)*s.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+i+n.verticalScrollbarWidth,r,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){const e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new fn(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}var Cn=i(32398),bn=i(87469);function En(e,t){return null===e?t?yn.INSTANCE:wn.INSTANCE:new Sn(e,t)}class Sn{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const s=i>0?this._projectionData.breakOffsets[i-1]:0,n=this._projectionData.breakOffsets[i];let r;if(null!==this._projectionData.injectionOffsets){const i=this._projectionData.injectionOffsets.map(((e,t)=>new Gi.uK(0,0,e+1,this._projectionData.injectionOptions[t],0)));r=Gi.uK.applyInjectedText(e.getLineContent(t),i).substring(s,n)}else r=e.getValueInRange({startLineNumber:t,startColumn:s+1,endLineNumber:t,endColumn:n+1});return i>0&&(r=Rn(this._projectionData.wrappedTextIndentLength)+r),r}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const s=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],s),s[0]}getViewLinesData(e,t,i,s,n,r,o){this._assertVisible();const a=this._projectionData,l=a.injectionOffsets,c=a.injectionOptions;let h,d=null;if(l){d=[];let e=0,t=0;for(let i=0;i<a.getOutputLineCount();i++){const s=new Array;d[i]=s;const n=i>0?a.breakOffsets[i-1]:0,r=a.breakOffsets[i];for(;t<l.length;){const o=c[t].content.length,h=l[t]+e,d=h+o;if(h>r)break;if(n<d){const e=c[t];if(e.inlineClassName){const t=i>0?a.wrappedTextIndentLength:0,o=t+Math.max(h-n,0),l=t+Math.min(d-n,r-n);o!==l&&s.push(new Vt.or(o,l,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(!(d<=r))break;e+=o,t++}}}h=l?e.tokenization.getLineTokens(t).withInserted(l.map(((e,t)=>({offset:e,text:c[t].content,tokenMetadata:bn.f.defaultTokenMetadata})))):e.tokenization.getLineTokens(t);for(let u=i;u<i+s;u++){const e=n+u-i;r[e]?o[e]=this._getViewLineData(h,d?d[u]:null,u):o[e]=null}}_getViewLineData(e,t,i){this._assertVisible();const s=this._projectionData,n=i>0?s.wrappedTextIndentLength:0,r=i>0?s.breakOffsets[i-1]:0,o=s.breakOffsets[i],a=e.sliceAndInflate(r,o,n);let l=a.getLineContent();i>0&&(l=Rn(s.wrappedTextIndentLength)+l);const c=this._projectionData.getMinOutputOffset(i)+1,h=l.length+1,d=i+1<this.getViewLineCount(),u=0===i?0:s.breakOffsetsVisibleColumn[i-1];return new Vt.GP(l,d,c,h,u,a,t)}getModelColumnOfViewPosition(e,t){return this._assertVisible(),this._projectionData.translateToInputOffset(e,t-1)+1}getViewPositionOfModelPosition(e,t,i=2){this._assertVisible();return this._projectionData.translateToOutputPosition(t-1,i).toPosition(e)}getViewLineNumberOfModelPosition(e,t){this._assertVisible();return e+this._projectionData.translateToOutputPosition(t-1).outputLineIndex}normalizePosition(e,t,i){const s=t.lineNumber-e;return this._projectionData.normalizeOutputPosition(e,t.column-1,i).toPosition(s)}getInjectedTextAt(e,t){return this._projectionData.getInjectedText(e,t-1)}_assertVisible(){if(!this._isVisible)throw new Error("Not supported")}}class yn{static{this.INSTANCE=new yn}constructor(){}isVisible(){return!0}setVisible(e){return e?this:wn.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){const s=e.tokenization.getLineTokens(t),n=s.getLineContent();return new Vt.GP(n,!1,1,n.length+1,0,s.inflate(),null)}getViewLinesData(e,t,i,s,n,r,o){r[n]?o[n]=this.getViewLineData(e,t,0):o[n]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new Y.y(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i){return t}getInjectedTextAt(e,t){return null}}class wn{static{this.INSTANCE=new wn}constructor(){}isVisible(){return!1}setVisible(e){return e?yn.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw new Error("Not supported")}getViewLineLength(e,t,i){throw new Error("Not supported")}getViewLineMinColumn(e,t,i){throw new Error("Not supported")}getViewLineMaxColumn(e,t,i){throw new Error("Not supported")}getViewLineData(e,t,i){throw new Error("Not supported")}getViewLinesData(e,t,i,s,n,r,o){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}normalizePosition(e,t,i){throw new Error("Not supported")}getInjectedTextAt(e,t){throw new Error("Not supported")}}const Ln=[""];function Rn(e){if(e>=Ln.length)for(let t=1;t<=e;t++)Ln[t]=Tn(t);return Ln[e]}function Tn(e){return new Array(e+1).join(" ")}var xn=i(27414);class kn{constructor(e,t,i,s,n,r,o,a,l,c){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=s,this.fontInfo=n,this.tabSize=r,this.wrappingStrategy=o,this.wrappingColumn=a,this.wrappingIndent=l,this.wordBreak=c,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new In(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),s=this.model.getInjectedTextDecorations(this._editorId),n=i.length,r=this.createLineBreaksComputer(),o=new m.j3(Gi.uK.fromDecorations(s));for(let p=0;p<n;p++){const e=o.takeWhile((e=>e.lineNumber===p+1));r.addRequest(i[p],e,t?t[p]:null)}const a=r.finalize(),l=[],c=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(q.Q.compareRangesUsingStarts);let h=1,d=0,u=-1,g=u+1<c.length?d+1:n+2;for(let p=0;p<n;p++){const e=p+1;e===g&&(u++,h=c[u].startLineNumber,d=c[u].endLineNumber,g=u+1<c.length?d+1:n+2);const t=e>=h&&e<=d,i=En(a[p],!t);l[p]=i.getViewLineCount(),this.modelLineProjections[p]=i}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new xn.c2(l)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e)))}setHiddenAreas(e){const t=function(e){if(0===e.length)return[];const t=e.slice();t.sort(q.Q.compareRangesUsingStarts);const i=[];let s=t[0].startLineNumber,n=t[0].endLineNumber;for(let r=1,o=t.length;r<o;r++){const e=t[r];e.startLineNumber>n+1?(i.push(new q.Q(s,1,n,1)),s=e.startLineNumber,n=e.endLineNumber):e.endLineNumber>n&&(n=e.endLineNumber)}return i.push(new q.Q(s,1,n,1)),i}(e.map((e=>this.model.validateRange(e)))),i=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(q.Q.compareRangesUsingStarts);if(t.length===i.length){let e=!1;for(let s=0;s<t.length;s++)if(!t[s].equalsRange(i[s])){e=!0;break}if(!e)return!1}const s=t.map((e=>({range:e,options:ss.kI.EMPTY})));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,s);const n=t;let r=1,o=0,a=-1,l=a+1<n.length?o+1:this.modelLineProjections.length+2,c=!1;for(let h=0;h<this.modelLineProjections.length;h++){const e=h+1;e===l&&(a++,r=n[a].startLineNumber,o=n[a].endLineNumber,l=a+1<n.length?o+1:this.modelLineProjections.length+2);let t=!1;if(e>=r&&e<=o?this.modelLineProjections[h].isVisible()&&(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!1),t=!0):(c=!0,this.modelLineProjections[h].isVisible()||(this.modelLineProjections[h]=this.modelLineProjections[h].setVisible(!0),t=!0)),t){const e=this.modelLineProjections[h].getViewLineCount();this.projectedModelLineLineCounts.setValue(h,e)}}return c||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.modelLineProjections.length)&&this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,s,n){const r=this.fontInfo.equals(e),o=this.wrappingStrategy===t,a=this.wrappingColumn===i,l=this.wrappingIndent===s,c=this.wordBreak===n;if(r&&o&&a&&l&&c)return!1;const h=r&&o&&!a&&l&&c;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=s,this.wordBreak=n;let d=null;if(h){d=[];for(let e=0,t=this.modelLineProjections.length;e<t;e++)d[e]=this.modelLineProjections[e].getProjectionData()}return this._constructLines(!1,d),!0}createLineBreaksComputer(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent,this.wordBreak)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(e,t,i){if(!e||e<=this._validModelVersionId)return null;const s=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,n=this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections.splice(t-1,i-t+1),this.projectedModelLineLineCounts.removeValues(t-1,i-t+1),new Ds(s,n)}onModelLinesInserted(e,t,i,s){if(!e||e<=this._validModelVersionId)return null;const n=t>2&&!this.modelLineProjections[t-2].isVisible(),r=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let o=0;const a=[],l=[];for(let c=0,h=s.length;c<h;c++){const e=En(s[c],!n);a.push(e);const t=e.getViewLineCount();o+=t,l[c]=t}return this.modelLineProjections=this.modelLineProjections.slice(0,t-1).concat(a).concat(this.modelLineProjections.slice(t-1)),this.projectedModelLineLineCounts.insertValues(t-1,l),new Ms(r,r+o-1)}onModelLineChanged(e,t,i){if(null!==e&&e<=this._validModelVersionId)return[!1,null,null,null];const s=t-1,n=this.modelLineProjections[s].getViewLineCount(),r=En(i,this.modelLineProjections[s].isVisible());this.modelLineProjections[s]=r;const o=this.modelLineProjections[s].getViewLineCount();let a=!1,l=0,c=-1,h=0,d=-1,u=0,g=-1;n>o?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,c=l+o-1,u=c+1,g=u+(n-o)-1,a=!0):n<o?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,c=l+n-1,h=c+1,d=h+(o-n)-1,a=!0):(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,c=l+o-1),this.projectedModelLineLineCounts.setValue(s,o);return[a,l<=c?new Os(l,c-l+1):null,h<=d?new Ms(h,d):null,u<=g?new Ds(u,g):null]}acceptVersionId(e){this._validModelVersionId=e,1!==this.modelLineProjections.length||this.modelLineProjections[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.projectedModelLineLineCounts.getTotalSum()}_toValidViewLineNumber(e){if(e<1)return 1;const t=this.getViewLineCount();return e>t?t:0|e}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const s=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),o=this.model.guides.getActiveIndentGuide(s.lineNumber,n.lineNumber,r.lineNumber),a=this.convertModelPositionToViewPosition(o.startLineNumber,1),l=this.convertModelPositionToViewPosition(o.endLineNumber,this.model.getLineMaxColumn(o.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:o.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,s=t.remainder;return new An(i+1,s)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),s=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new Y.y(e.modelLineNumber,s)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),s=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new Y.y(e.modelLineNumber,s)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),s=this.getViewLineInfo(t),n=new Array;let r=this.getModelStartPositionOfViewLine(i),o=new Array;for(let a=i.modelLineNumber;a<=s.modelLineNumber;a++){const e=this.modelLineProjections[a-1];if(e.isVisible()){const t=a===i.modelLineNumber?i.modelLineWrappedLineIdx:0,n=a===s.modelLineNumber?s.modelLineWrappedLineIdx+1:e.getViewLineCount();for(let e=t;e<n;e++)o.push(new An(a,e))}if(!e.isVisible()&&r){const e=new Y.y(a-1,this.model.getLineMaxColumn(a-1)+1),t=q.Q.fromPositions(r,e);n.push(new Nn(t,o)),o=[],r=null}else e.isVisible()&&!r&&(r=new Y.y(a,1))}if(r){const e=q.Q.fromPositions(r,this.getModelEndPositionOfViewLine(s));n.push(new Nn(e,o))}return n}getViewLinesBracketGuides(e,t,i,s){const n=i?this.convertViewPositionToModelPosition(i.lineNumber,i.column):null,r=[];for(const o of this.getViewLineInfosGroupedByModelRanges(e,t)){const e=o.modelRange.startLineNumber,t=this.model.guides.getLinesBracketGuides(e,o.modelRange.endLineNumber,n,s);for(const i of o.viewLines){const s=t[i.modelLineNumber-e].map((e=>{if(-1!==e.forWrappedLinesAfterColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesAfterColumn).lineNumber>=i.modelLineWrappedLineIdx)return}if(-1!==e.forWrappedLinesBeforeOrAtColumn){if(this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesBeforeOrAtColumn).lineNumber<i.modelLineWrappedLineIdx)return}if(!e.horizontalLine)return e;let t=-1;if(-1!==e.column){const s=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.column);if(s.lineNumber===i.modelLineWrappedLineIdx)t=s.column;else if(s.lineNumber<i.modelLineWrappedLineIdx)t=this.getMinColumnOfViewLine(i);else if(s.lineNumber>i.modelLineWrappedLineIdx)return}const s=this.convertModelPositionToViewPosition(i.modelLineNumber,e.horizontalLine.endColumn),n=this.modelLineProjections[i.modelLineNumber-1].getViewPositionOfModelPosition(0,e.horizontalLine.endColumn);return n.lineNumber===i.modelLineWrappedLineIdx?new xt.TH(e.visibleColumn,t,e.className,new xt.pv(e.horizontalLine.top,s.column),-1,-1):n.lineNumber<i.modelLineWrappedLineIdx||-1!==e.visibleColumn?void 0:new xt.TH(e.visibleColumn,t,e.className,new xt.pv(e.horizontalLine.top,this.getMaxColumnOfViewLine(i)),-1,-1)}));r.push(s.filter((e=>!!e)))}}return r}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),s=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let n=[];const r=[],o=[],a=i.lineNumber-1,l=s.lineNumber-1;let c=null;for(let g=a;g<=l;g++){const e=this.modelLineProjections[g];if(e.isVisible()){const t=e.getViewLineNumberOfModelPosition(0,g===a?i.column:1),s=e.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(g+1)),n=s-t+1;let l=0;n>1&&1===e.getViewLineMinColumn(this.model,g+1,s)&&(l=0===t?1:2),r.push(n),o.push(l),null===c&&(c=new Y.y(g+1,0))}else null!==c&&(n=n.concat(this.model.guides.getLinesIndentGuides(c.lineNumber,g)),c=null)}null!==c&&(n=n.concat(this.model.guides.getLinesIndentGuides(c.lineNumber,s.lineNumber)),c=null);const h=t-e+1,d=new Array(h);let u=0;for(let g=0,p=n.length;g<p;g++){let e=n[g];const t=Math.min(h-u,r[g]),i=o[g];let s;s=2===i?0:1===i?1:t;for(let n=0;n<t;n++)n===s&&(e=0),d[u++]=e}return d}getViewLineContent(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineContent(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineLength(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineLength(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMinColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMinColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineMaxColumn(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineMaxColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLineData(e){const t=this.getViewLineInfo(e);return this.modelLineProjections[t.modelLineNumber-1].getViewLineData(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getViewLinesData(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const s=this.projectedModelLineLineCounts.getIndexOf(e-1);let n=e;const r=s.index,o=s.remainder,a=[];for(let l=r,c=this.model.getLineCount();l<c;l++){const s=this.modelLineProjections[l];if(!s.isVisible())continue;const c=l===r?o:0;let h=s.getViewLineCount()-c,d=!1;if(n+h>t&&(d=!0,h=t-n+1),s.getViewLinesData(this.model,l+1,c,h,n-e,i,a),n+=h,d)break}return a}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const s=this.projectedModelLineLineCounts.getIndexOf(e-1),n=s.index,r=s.remainder,o=this.modelLineProjections[n],a=o.getViewLineMinColumn(this.model,n+1,r),l=o.getViewLineMaxColumn(this.model,n+1,r);t<a&&(t=a),t>l&&(t=l);const c=o.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new Y.y(n+1,c)).equals(i)?new Y.y(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),s=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new q.Q(i.lineNumber,i.column,s.lineNumber,s.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),s=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new Y.y(i.modelLineNumber,s))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new q.Q(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2,s=!1,n=!1){const r=this.model.validatePosition(new Y.y(e,t)),o=r.lineNumber,a=r.column;let l=o-1,c=!1;if(n)for(;l<this.modelLineProjections.length&&!this.modelLineProjections[l].isVisible();)l++,c=!0;else for(;l>0&&!this.modelLineProjections[l].isVisible();)l--,c=!0;if(0===l&&!this.modelLineProjections[l].isVisible())return new Y.y(s?0:1,1);const h=1+this.projectedModelLineLineCounts.getPrefixSum(l);let d;return d=c?n?this.modelLineProjections[l].getViewPositionOfModelPosition(h,1,i):this.modelLineProjections[l].getViewPositionOfModelPosition(h,this.model.getLineMaxColumn(l+1),i):this.modelLineProjections[o-1].getViewPositionOfModelPosition(h,a,i),d}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return q.Q.fromPositions(i)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new q.Q(t.lineNumber,t.column,i.lineNumber,i.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const e=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(e,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(0===i&&!this.modelLineProjections[i].isVisible())return 1;const s=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(s,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i,s,n){const r=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-r.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new q.Q(r.lineNumber,1,o.lineNumber,o.column),t,i,s,n);let a=[];const l=r.lineNumber-1,c=o.lineNumber-1;let h=null;for(let p=l;p<=c;p++){if(this.modelLineProjections[p].isVisible())null===h&&(h=new Y.y(p+1,p===l?r.column:1));else if(null!==h){const e=this.model.getLineMaxColumn(p);a=a.concat(this.model.getDecorationsInRange(new q.Q(h.lineNumber,h.column,p,e),t,i,s)),h=null}}null!==h&&(a=a.concat(this.model.getDecorationsInRange(new q.Q(h.lineNumber,h.column,o.lineNumber,o.column),t,i,s)),h=null),a.sort(((e,t)=>{const i=q.Q.compareRangesUsingStarts(e.range,t.range);return 0===i?e.id<t.id?-1:e.id>t.id?1:0:i}));const d=[];let u=0,g=null;for(const p of a){const e=p.id;g!==e&&(g=e,d[u++]=p)}return d}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return 0===t.modelLineWrappedLineIdx?this.model.getLineIndentColumn(t.modelLineNumber):0}}class An{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class Nn{constructor(e,t){this.modelRange=e,this.viewLines=t}}class In{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t,i,s){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t,i,s)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class On{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new Dn(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,s){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,s)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new Ds(t,i)}onModelLinesInserted(e,t,i,s){return new Ms(t,i)}onModelLineChanged(e,t,i){return[!1,new Os(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,s=new Array(i);for(let n=0;n<i;n++)s[n]=0;return s}getViewLineContent(e){return this.model.getLineContent(e)}getViewLineLength(e){return this.model.getLineLength(e)}getViewLineMinColumn(e){return this.model.getLineMinColumn(e)}getViewLineMaxColumn(e){return this.model.getLineMaxColumn(e)}getViewLineData(e){const t=this.model.tokenization.getLineTokens(e),i=t.getLineContent();return new Vt.GP(i,!1,1,i.length+1,0,t.inflate(),null)}getViewLinesData(e,t,i){const s=this.model.getLineCount();e=Math.min(Math.max(1,e),s),t=Math.min(Math.max(1,t),s);const n=[];for(let r=e;r<=t;r++){const t=r-e;n[t]=i[t]?this.getViewLineData(r):null}return n}getDecorationsInRange(e,t,i,s,n){return this.model.getDecorationsInRange(e,t,i,s,n)}normalizePosition(e,t){return this.model.normalizePosition(e,t)}getLineIndentColumn(e){return this.model.getLineIndentColumn(e)}getInjectedTextAt(e){return null}}class Dn{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}const Mn=_t.ZS.Right;class Pn{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*Mn/8))}reset(e){const t=Math.ceil((e+1)*Mn/8);this.lanes.length<t?this.lanes=new Uint8Array(t):this.lanes.fill(0),this._requiredLanes=1}get requiredLanes(){return this._requiredLanes}push(e,t,i){i&&(this.persist|=1<<e-1);for(let s=t.startLineNumber;s<=t.endLineNumber;s++){const t=Mn*s+(e-1);this.lanes[t>>>3]|=1<<t%8,this._requiredLanes=Math.max(this._requiredLanes,this.countAtLine(s))}}getLanesAtLine(e){const t=[];let i=Mn*e;for(let s=0;s<Mn;s++)(this.persist&1<<s||this.lanes[i>>>3]&1<<i%8)&&t.push(s+1),i++;return t.length?t:[_t.ZS.Center]}countAtLine(e){let t=Mn*e,i=0;for(let s=0;s<Mn;s++)(this.persist&1<<s||this.lanes[t>>>3]&1<<t%8)&&i++,t++;return i}}class Fn extends d.jG{constructor(e,t,i,s,n,r,o,a,l,c){if(super(),this.languageConfigurationService=o,this._themeService=a,this._attachedView=l,this._transactionalTarget=c,this.hiddenAreasModel=new Bn,this.previousHiddenAreas=[],this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new Vs,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._updateConfigurationViewLineCount=this._register(new Nt.uC((()=>this._updateConfigurationViewLineCountNow()),0)),this._hasFocus=!1,this._viewportStart=Un.create(this.model),this.glyphLanes=new Pn(0),this.model.isTooLargeForTokenization())this._lines=new On(this.model);else{const e=this._configuration.options,t=e.get(50),i=e.get(140),r=e.get(147),o=e.get(139),a=e.get(130);this._lines=new kn(this._editorId,this.model,s,n,t,this.model.getOptions().tabSize,i,r.wrappingColumn,o,a)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new nn(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new vn(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll((e=>{e.scrollTopChanged&&this._handleVisibleLinesChanged(),e.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new Fs(e)),this._eventDispatcher.emitOutgoingEvent(new Ks(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),this._register(this.viewLayout.onDidContentSizeChange((e=>{this._eventDispatcher.emitOutgoingEvent(e)}))),this._decorations=new Cn.UB(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(Wt.getInstance().onDidChange((()=>{this._eventDispatcher.emitSingleViewEvent(new Bs)}))),this._register(this._themeService.onDidColorThemeChange((e=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new Us(e))}))),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){const e=this.viewLayout.getLinesViewportData(),t=new q.Q(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber));return this._toModelVisibleRanges(t)}visibleLinesStabilized(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!0)}_handleVisibleLinesChanged(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!1)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new As(e)),this._eventDispatcher.emitOutgoingEvent(new js(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new ws)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new Ls)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){const e=new Y.y(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),t=this.coordinatesConverter.convertViewPositionToModelPosition(e);return new Vn(t,this._viewportStart.startLineDelta)}return new Vn(null,0)}_onConfigurationChanged(e,t){const i=this._captureStableViewport(),s=this._configuration.options,n=s.get(50),r=s.get(140),o=s.get(147),a=s.get(139),l=s.get(130);this._lines.setWrappingSettings(n,r,o.wrappingColumn,a,l)&&(e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(92)&&(this._decorations.reset(),e.emitViewEvent(new xs(null))),t.hasChanged(99)&&(this._decorations.reset(),e.emitViewEvent(new xs(null))),e.emitViewEvent(new Rs(t)),this.viewLayout.onConfigurationChanged(t),i.recoverViewportStart(this.coordinatesConverter,this.viewLayout),_s.d$.shouldRecreate(t)&&(this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,s=!1;const n=e instanceof Gi.Ic?e.rawContentChangedEvent.changes:e.changes,r=e instanceof Gi.Ic?e.rawContentChangedEvent.versionId:null,o=this._lines.createLineBreaksComputer();for(const e of n)switch(e.changeType){case 4:for(let t=0;t<e.detail.length;t++){const i=e.detail[t];let s=e.injectedTexts[t];s&&(s=s.filter((e=>!e.ownerId||e.ownerId===this._editorId))),o.addRequest(i,s,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter((e=>!e.ownerId||e.ownerId===this._editorId))),o.addRequest(e.detail,t,null);break}}const a=o.finalize(),l=new m.j3(a);for(const e of n)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new ks),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break;case 3:{const s=this._lines.onModelLinesDeleted(r,e.fromLineNumber,e.toLineNumber);null!==s&&(t.emitViewEvent(s),this.viewLayout.onLinesDeleted(s.fromLineNumber,s.toLineNumber)),i=!0;break}case 4:{const s=l.takeCount(e.detail.length),n=this._lines.onModelLinesInserted(r,e.fromLineNumber,e.toLineNumber,s);null!==n&&(t.emitViewEvent(n),this.viewLayout.onLinesInserted(n.fromLineNumber,n.toLineNumber)),i=!0;break}case 2:{const i=l.dequeue(),[n,o,a,c]=this._lines.onModelLineChanged(r,e.lineNumber,i);s=n,o&&t.emitViewEvent(o),a&&(t.emitViewEvent(a),this.viewLayout.onLinesInserted(a.fromLineNumber,a.toLineNumber)),c&&(t.emitViewEvent(c),this.viewLayout.onLinesDeleted(c.fromLineNumber,c.toLineNumber));break}}null!==r&&this._lines.acceptVersionId(r),this.viewLayout.onHeightMaybeChanged(),!i&&s&&(t.emitViewEvent(new Is),t.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const e=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),i=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:i+this._viewportStart.startLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();e instanceof Gi.Ic&&t.emitOutgoingEvent(new en(e.contentChangedEvent)),this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()}))),this._register(this.model.onDidChangeTokens((e=>{const t=[];for(let i=0,s=e.ranges.length;i<s;i++){const s=e.ranges[i],n=this.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(s.fromLineNumber,1)).lineNumber,r=this.coordinatesConverter.convertModelPositionToViewPosition(new Y.y(s.toLineNumber,this.model.getLineMaxColumn(s.toLineNumber))).lineNumber;t[i]={fromLineNumber:n,toLineNumber:r}}this._eventDispatcher.emitSingleViewEvent(new Hs(t)),this._eventDispatcher.emitOutgoingEvent(new sn(e))}))),this._register(this.model.onDidChangeLanguageConfiguration((e=>{this._eventDispatcher.emitSingleViewEvent(new Ns),this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Js(e))}))),this._register(this.model.onDidChangeLanguage((e=>{this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Zs(e))}))),this._register(this.model.onDidChangeOptions((e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new _s.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new tn(e))}))),this._register(this.model.onDidChangeDecorations((e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new xs(e)),this._eventDispatcher.emitOutgoingEvent(new Xs(e))})))}setHiddenAreas(e,t){this.hiddenAreasModel.setHiddenAreas(t,e);const i=this.hiddenAreasModel.getMergedRanges();if(i===this.previousHiddenAreas)return;this.previousHiddenAreas=i;const s=this._captureStableViewport();let n=!1;try{const e=this._eventDispatcher.beginEmitViewEvents();n=this._lines.setHiddenAreas(i),n&&(e.emitViewEvent(new ks),e.emitViewEvent(new Is),e.emitViewEvent(new xs(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());const t=s.viewportStartModelPosition?.lineNumber;t&&i.some((e=>e.startLineNumber<=t&&t<=e.endLineNumber))||s.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),n&&this._eventDispatcher.emitOutgoingEvent(new qs)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(146),t=this._configuration.options.get(67),i=Math.max(20,Math.round(e.height/t)),s=this.viewLayout.getLinesViewportData(),n=Math.max(1,s.completelyVisibleStartLineNumber-i),r=Math.min(this.getLineCount(),s.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new q.Q(n,this.getLineMinColumn(n),r,this.getLineMaxColumn(r)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(0===i.length)return[t];const s=[];let n=0,r=t.startLineNumber,o=t.startColumn;const a=t.endLineNumber,l=t.endColumn;for(let c=0,h=i.length;c<h;c++){const e=i[c].startLineNumber,t=i[c].endLineNumber;t<r||(e>a||(r<e&&(s[n++]=new q.Q(r,o,e-1,this.model.getLineMaxColumn(e-1))),r=t+1,o=1))}return(r<a||r===a&&o<l)&&(s[n++]=new q.Q(r,o,a,l)),s}getCompletelyVisibleViewRange(){const e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,i=e.completelyVisibleEndLineNumber;return new q.Q(t,this.getLineMinColumn(t),i,this.getLineMaxColumn(i))}getCompletelyVisibleViewRangeAtScrollTop(e){const t=this.viewLayout.getLinesViewportDataAtScrollTop(e),i=t.completelyVisibleStartLineNumber,s=t.completelyVisibleEndLineNumber;return new q.Q(i,this.getLineMinColumn(i),s,this.getLineMaxColumn(s))}saveState(){const e=this.viewLayout.saveState(),t=e.scrollTop,i=this.viewLayout.getLineNumberAtVerticalOffset(t),s=this.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(i,this.getLineMinColumn(i))),n=this.viewLayout.getVerticalOffsetForLineNumber(i)-t;return{scrollLeft:e.scrollLeft,firstPosition:s,firstPositionDeltaTop:n}}reduceRestoreState(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(t),s=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:s}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStart.update(this,e)}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getBracketGuidesInRangeByLine(e,t,i,s){return this._lines.getViewLinesBracketGuides(e,t,i,s)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=Re.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=Re.lT(this.getLineContent(e));return-1===t?0:t+2}getMinimapDecorationsInRange(e){return this._decorations.getMinimapDecorationsInRange(e)}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewportViewLineRenderingData(e,t){const i=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return this._getViewLineRenderingData(t,i)}getViewLineRenderingData(e){const t=this._decorations.getInlineDecorationsOnLine(e);return this._getViewLineRenderingData(e,t)}_getViewLineRenderingData(e,t){const i=this.model.mightContainRTL(),s=this.model.mightContainNonBasicASCII(),n=this.getTabSize(),r=this._lines.getViewLineData(e);return r.inlineDecorations&&(t=[...t,...r.inlineDecorations.map((t=>t.toInlineDecoration(e)))]),new Vt.qL(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,s,r.tokens,t,n,r.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const s=this._lines.getViewLinesData(e,t,i);return new Vt.nt(this.getTabSize(),s)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,(0,L.$C)(this._configuration.options)),i=new Hn;for(const s of t){const t=s.options,n=t.overviewRuler;if(!n)continue;const r=n.position;if(0===r)continue;const o=n.getColor(e.value),a=this.coordinatesConverter.getViewLineNumberOfModelPosition(s.range.startLineNumber,s.range.startColumn),l=this.coordinatesConverter.getViewLineNumberOfModelPosition(s.range.endLineNumber,s.range.endColumn);i.accept(o,t.zIndex,a,l,r)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;e?.invalidateCachedColor();const i=t.options.minimap;i?.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}getValueLengthInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueLengthInRange(i,t)}modifyPosition(e,t){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e),s=this.model.modifyPosition(i,t);return this.coordinatesConverter.convertModelPositionToViewPosition(s)}deduceModelPositionRelativeToViewPosition(e,t,i){const s=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=i:t+=i);const n=this.model.getOffsetAt(s)+t;return this.model.getPositionAt(n)}getPlainTextToCopy(e,t,i){const s=i?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(q.Q.compareRangesUsingStarts);let n=!1,r=!1;for(const a of e)a.isEmpty()?n=!0:r=!0;if(!r){if(!t)return"";const i=e.map((e=>e.startLineNumber));let n="";for(let e=0;e<i.length;e++)e>0&&i[e-1]===i[e]||(n+=this.model.getLineContent(i[e])+s);return n}if(n&&t){const t=[];let s=0;for(const n of e){const e=n.startLineNumber;n.isEmpty()?e!==s&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(n,i?2:0)),s=e}return 1===t.length?t[0]:t}const o=[];for(const a of e)a.isEmpty()||o.push(this.model.getValueInRange(a,i?2:0));return 1===o.length?o[0]:o}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===hn.vH)return null;if(1!==e.length)return null;let s=e[0];if(s.isEmpty()){if(!t)return null;const e=s.startLineNumber;s=new q.Q(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const n=this._configuration.options.get(50),r=this._getColorMap();let o;if(/[:;\\\/<>]/.test(n.fontFamily)||n.fontFamily===L.jU.fontFamily)o=L.jU.fontFamily;else{o=n.fontFamily,o=o.replace(/"/g,"'");if(!/[,']/.test(o)){/[+ ]/.test(o)&&(o=`'${o}'`)}o=`${o}, ${L.jU.fontFamily}`}return{mode:i,html:`<div style="color: ${r[1]};background-color: ${r[2]};font-family: ${o};font-weight: ${n.fontWeight};font-size: ${n.fontSize}px;line-height: ${n.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(s,r)+"</div>"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,s=e.startColumn,n=e.endLineNumber,r=e.endColumn,o=this.getTabSize();let a="";for(let l=i;l<=n;l++){const e=this.model.tokenization.getLineTokens(l),c=e.getLineContent(),h=l===i?s-1:0,d=l===n?r-1:c.length;a+=""===c?"<br>":(0,dn.s0)(c,e.inflate(),t,h,d,o,_.uF)}return a}_getColorMap(){const e=Me.dG.getColorMap(),t=["#000000"];if(e)for(let i=1,s=e.length;i<s;i++)t[i]=Pe.Q1.Format.CSS.formatHex(e[i]);return t}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(e,t,i){return this._withViewEventsCollector((s=>this._cursor.setStates(s,e,t,i)))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector((s=>this._cursor.setSelections(s,e,t,i)))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector((t=>this._cursor.restoreState(t,e)))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new Qs):this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit((s=>this._cursor.executeEdits(s,e,t,i)))}startComposition(){this._executeCursorEdit((e=>this._cursor.startComposition(e)))}endComposition(e){this._executeCursorEdit((t=>this._cursor.endComposition(t,e)))}type(e,t){this._executeCursorEdit((i=>this._cursor.type(i,e,t)))}compositionType(e,t,i,s,n){this._executeCursorEdit((r=>this._cursor.compositionType(r,e,t,i,s,n)))}paste(e,t,i,s){this._executeCursorEdit((n=>this._cursor.paste(n,e,t,i,s)))}cut(e){this._executeCursorEdit((t=>this._cursor.cut(t,e)))}executeCommand(e,t){this._executeCursorEdit((i=>this._cursor.executeCommand(i,e,t)))}executeCommands(e,t){this._executeCursorEdit((i=>this._cursor.executeCommands(i,e,t)))}revealAllCursors(e,t,i=!1){this._withViewEventsCollector((s=>this._cursor.revealAll(s,e,i,0,t,0)))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector((s=>this._cursor.revealPrimary(s,e,i,0,t,0)))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new q.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Ps(e,!1,i,null,0,!0,0))))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new q.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Ps(e,!1,i,null,0,!0,0))))}revealRange(e,t,i,s,n){this._withViewEventsCollector((r=>r.emitViewEvent(new Ps(e,!1,i,null,s,t,n))))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new Ws),this._eventDispatcher.emitOutgoingEvent(new Ys))}_withViewEventsCollector(e){return this._transactionalTarget.batchChanges((()=>{try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}))}batchEvents(e){this._withViewEventsCollector((()=>{e()}))}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class Un{static create(e){const t=e._setTrackedRange(null,new q.Q(1,1,1,1),1);return new Un(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(e,t,i,s,n){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=s,this._startLineDelta=n}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new Y.y(t,e.getLineMinColumn(t))),s=e.model._setTrackedRange(this._modelTrackedRange,new q.Q(i.lineNumber,i.column,i.lineNumber,i.column),1),n=e.viewLayout.getVerticalOffsetForLineNumber(t),r=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=s,this._startLineDelta=r-n}invalidate(){this._isValid=!1}}class Hn{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,s,n){const r=this._asMap[e];if(r){const e=r.data,t=e[e.length-3],o=e[e.length-1];if(t===n&&o+1>=i)return void(s>o&&(e[e.length-1]=s));e.push(n,i,s)}else{const r=new Vt.Uv(e,t,[n,i,s]);this._asMap[e]=r,this.asArray.push(r)}}}class Bn{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(e,t){const i=this.hiddenAreas.get(e);i&&Wn(i,t)||(this.hiddenAreas.set(e,t),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;const e=Array.from(this.hiddenAreas.values()).reduce(((e,t)=>function(e,t){const i=[];let s=0,n=0;for(;s<e.length&&n<t.length;){const r=e[s],o=t[n];if(r.endLineNumber<o.startLineNumber-1)i.push(e[s++]);else if(o.endLineNumber<r.startLineNumber-1)i.push(t[n++]);else{const e=Math.min(r.startLineNumber,o.startLineNumber),t=Math.max(r.endLineNumber,o.endLineNumber);i.push(new q.Q(e,1,t,1)),s++,n++}}for(;s<e.length;)i.push(e[s++]);for(;n<t.length;)i.push(t[n++]);return i}(e,t)),[]);return Wn(this.ranges,e)||(this.ranges=e),this.ranges}}function Wn(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].equalsRange(t[i]))return!1;return!0}class Vn{constructor(e,t){this.viewportStartModelPosition=e,this.startLineDelta=t}recoverViewportStart(e,t){if(!this.viewportStartModelPosition)return;const i=e.convertModelPositionToViewPosition(this.viewportStartModelPosition),s=t.getVerticalOffsetForLineNumber(i.lineNumber);t.setScrollPosition({scrollTop:s+this.startLineDelta},1)}}var zn,Gn=i(50091),jn=i(32848),Kn=i(58345),Yn=i(58591),qn=i(27195),$n=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Qn=function(e,t){return function(i,s){t(i,s,e)}};let Xn=class extends d.jG{static{zn=this}static{this.dropIntoEditorDecorationOptions=ss.kI.register({description:"workbench-dnd-target",className:"dnd-target"})}get isSimpleWidget(){return this._configuration.isSimpleWidget}get contextMenuId(){return this._configuration.contextMenuId}constructor(e,t,i,s,r,o,a,d,u,g,p,m){super(),this.languageConfigurationService=p,this._deliveryQueue=(0,h.Qy)(),this._contributions=this._register(new Xi),this._onDidDispose=this._register(new h.vl),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onWillChangeModel=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onWillChangeModel=this._onWillChangeModel.event,this._onDidChangeModel=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new er({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new er({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new tr(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new tr(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new tr(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new tr(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new tr(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new tr(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new h.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._updateCounter=0,this._onBeginUpdate=this._register(new h.vl),this.onBeginUpdate=this._onBeginUpdate.event,this._onEndUpdate=this._register(new h.vl),this.onEndUpdate=this._onEndUpdate.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),r.willCreateCodeEditor();const f={...t};let _;this._domElement=e,this._overflowWidgetsDomNode=f.overflowWidgetsDomNode,delete f.overflowWidgetsDomNode,this._id=++Zn,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,i.contextMenuId??(i.isSimpleWidget?qn.D8.SimpleEditorContext:qn.D8.EditorContext),f,g)),this._register(this._configuration.onDidChange((e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(146)){const e=t.get(146);this._onDidLayoutChange.fire(e)}}))),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=u,this._codeEditorService=r,this._commandService=o,this._themeService=d,this._register(new ir(this,this._contextKeyService)),this._register(new sr(this,this._contextKeyService,m)),this._instantiationService=this._register(s.createChild(new Kn.a([jn.fN,this._contextKeyService]))),this._modelData=null,this._focusTracker=new nr(e,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange((()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}))),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={},_=Array.isArray(i.contributions)?i.contributions:n.dS.getEditorContributions(),this._contributions.initialize(this,_,this._instantiationService);for(const l of n.dS.getEditorActions()){if(this._actions.has(l.id)){(0,c.dz)(new Error(`Cannot have two actions with the same id ${l.id}`));continue}const e=new Ji.f(l.id,l.label,l.alias,l.metadata,l.precondition??void 0,(e=>this._instantiationService.invokeFunction((t=>Promise.resolve(l.runEditorCommand(t,this,e))))),this._contextKeyService);this._actions.set(e.id,e)}const v=()=>!this._configuration.options.get(92)&&this._configuration.options.get(36).enabled;this._register(new l.pN(this._domElement,{onDragOver:e=>{if(!v())return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);t?.position&&this.showDropIndicatorAt(t.position)},onDrop:async e=>{if(!v())return;if(this.removeDropIndicator(),!e.dataTransfer)return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);t?.position&&this._onDropIntoEditor.fire({position:t.position,event:e})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(e){this._modelData?.view.writeScreenReaderContent(e)}_createConfiguration(e,t,i,s){return new I(e,t,i,this._domElement,s)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return es._.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose(),this._actions.clear(),this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e||{})}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?Zi.z.getWordAtPosition(this._modelData.model,this._configuration.options.get(132),this._configuration.options.get(131),e):null}getValue(e=null){if(!this._modelData)return"";const t=!(!e||!e.preserveBOM);let i=0;return e&&e.lineEnding&&"\n"===e.lineEnding?i=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){try{if(this._beginUpdate(),!this._modelData)return;this._modelData.model.setValue(e)}finally{this._endUpdate()}}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){try{this._beginUpdate();const t=e;if(null===this._modelData&&null===t)return;if(this._modelData&&this._modelData.model===t)return;const i={oldModelUrl:this._modelData?.model.uri||null,newModelUrl:t?.uri||null};this._onWillChangeModel.fire(i);const s=this.hasTextFocus(),n=this._detachModel();this._attachModel(t),s&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(i),this._postDetachModelCleanup(n),this._contributionsDisposable=this._contributions.onAfterModelAttached()}finally{this._endUpdate()}}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(const i in t)this._removeDecorationType(e+"-"+i)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(e,t,i,s){const n=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(r.lineNumber,s)}getTopForLineNumber(e,t=!1){return this._modelData?zn._getVerticalOffsetForPosition(this._modelData,e,1,t):-1}getTopForPosition(e,t){return this._modelData?zn._getVerticalOffsetForPosition(this._modelData,e,t,!1):-1}static _getVerticalOffsetForPosition(e,t,i,s=!1){const n=e.model.validatePosition({lineNumber:t,column:i}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(n);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber,s)}getBottomForLineNumber(e,t=!1){if(!this._modelData)return-1;const i=this._modelData.model.getLineMaxColumn(e);return zn._getVerticalOffsetAfterPosition(this._modelData,e,i,t)}setHiddenAreas(e,t){this._modelData?.viewModel.setHiddenAreas(e.map((e=>q.Q.lift(e))),t)}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return $.A.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(this._modelData){if(!Y.y.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,s){if(!this._modelData)return;if(!q.Q.isIRange(e))throw new Error("Invalid arguments");const n=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(n);this._modelData.viewModel.revealRange("api",i,r,t,s)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if("number"!==typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,s){if(!Y.y.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e.lineNumber,e.column,e.lineNumber,e.column),t,i,s)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=pe.L.isISelection(e),s=q.Q.isIRange(e);if(!i&&!s)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(s){const i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new pe.L(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,s){if("number"!==typeof e||"number"!==typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new q.Q(e,1,t,1),i,!1,s)}revealRange(e,t=0,i=!1,s=!0){this._revealRange(e,i?1:0,s,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,s){if(!q.Q.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(q.Q.lift(e),t,i,s)}setSelections(e,t="api",i=0){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,i=e.length;t<i;t++)if(!pe.L.isISelection(e[t]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,e,i)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollLeft:e},t)}}setScrollTop(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollTop:e},t)}}setScrollPosition(e,t=1){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPosition(e,t)}hasPendingScrollAnimation(){return!!this._modelData&&this._modelData.viewModel.viewLayout.hasPendingScrollAnimation()}saveViewState(){if(!this._modelData)return null;const e=this._contributions.saveViewState();return{cursorState:this._modelData.viewModel.saveCursorState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}}restoreViewState(e){if(!this._modelData||!this._modelData.hasRealView)return;const t=e;if(t&&t.cursorState&&t.viewState){const e=t.cursorState;Array.isArray(e)?e.length>0&&this._modelData.viewModel.restoreCursorState(e):this._modelData.viewModel.restoreCursorState([e]),this._contributions.restoreViewState(t.contributionsState||{});const i=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(i)}}handleInitialized(){this._getViewModel()?.visibleLinesStabilized()}getContribution(e){return this._contributions.get(e)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let e=this.getActions();return e=e.filter((e=>e.isSupported())),e}getAction(e){return this._actions.get(e)||null}trigger(e,t,i){i=i||{};try{switch(this._beginUpdate(),t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=i;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=i;return void this._compositionType(e,t.text||"",t.replaceCharCnt||0,0,0)}case"compositionType":{const t=i;return void this._compositionType(e,t.text||"",t.replacePrevCharCnt||0,t.replaceNextCharCnt||0,t.positionDelta||0)}case"paste":{const t=i;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null,t.clipboardEvent)}case"cut":return void this._cut(e)}const s=this.getAction(t);if(s)return void Promise.resolve(s.run(i)).then(void 0,c.dz);if(!this._modelData)return;if(this._triggerEditorCommand(e,t,i))return;this._triggerCommand(t,i)}finally{this._endUpdate()}}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_compositionType(e,t,i,s,n){this._modelData&&this._modelData.viewModel.compositionType(t,i,s,n,e)}_paste(e,t,i,s,n,r){if(!this._modelData)return;const o=this._modelData.viewModel,a=o.getSelection().getStartPosition();o.paste(t,i,s,e);const l=o.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({clipboardEvent:r,range:new q.Q(a.lineNumber,a.column,l.lineNumber,l.column),languageId:n})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const s=n.dS.getEditorCommand(t);return!!s&&((i=i||{}).source=e,this._instantiationService.invokeFunction((e=>{Promise.resolve(s.runEditorCommand(e,this,i)).then(void 0,c.dz)})),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&(!this._configuration.options.get(92)&&(this._modelData.model.pushStackElement(),!0))}popUndoStop(){return!!this._modelData&&(!this._configuration.options.get(92)&&(this._modelData.model.popStackElement(),!0))}executeEdits(e,t,i){if(!this._modelData)return!1;if(this._configuration.options.get(92))return!1;let s;return s=i?Array.isArray(i)?()=>i:i:()=>null,this._modelData.viewModel.executeEdits(e,t,s),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new rr(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,(0,L.$C)(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,(0,L.$C)(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){this._modelData&&0!==e.length&&this._modelData.model.changeDecorations((t=>{t.deltaDecorations(e,[])}))}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.changeDecorations((e=>e.deltaDecorations(t,[]))),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(146)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarPointerDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateScrollFromMouseWheelEvent(e)}layout(e,t=!1){this._configuration.observeContainer(e),t||this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id:"+e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}addGlyphMarginWidget(e){const t={widget:e,position:e.getPosition()};this._glyphMarginWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a glyph margin widget with the same id."),this._glyphMarginWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(t)}layoutGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const i=this._glyphMarginWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(i)}}removeGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const e=this._glyphMarginWidgets[t];delete this._glyphMarginWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,s=i.get(146);return{top:zn._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+s.glyphMarginWidth+s.lineNumbersWidth+s.decorationsWidth-this.getScrollLeft(),height:i.get(67)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.viewModel.batchEvents((()=>{this._modelData.view.render(!0,e)}))}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){(0,g.M)(e,this._configuration.options.get(50))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._bannerDomNode.remove(),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount());const i=e.onBeforeAttached(),s=new Fn(this._id,this._configuration,e,Ki.create(l.zk(this._domElement)),os.create(this._configuration.options),(e=>l.PG(l.zk(this._domElement),e)),this.languageConfigurationService,this._themeService,i,{batchChanges:e=>{try{return this._beginUpdate(),e()}finally{this._endUpdate()}}});t.push(e.onWillDispose((()=>this.setModel(null)))),t.push(s.onEvent((t=>{switch(t.kind){case 0:this._onDidContentSizeChange.fire(t);break;case 1:this._editorTextFocus.setValue(t.hasFocus);break;case 2:this._onDidScrollChange.fire(t);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(t.reachedMaxCursorCount){const e=this.getOption(80),t=Le.kg("cursors.maximum","The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",e);this._notificationService.prompt(Yn.AI.Warning,t,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:Le.kg("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const e=[];for(let n=0,r=t.selections.length;n<r;n++)e[n]=t.selections[n].getPosition();const i={position:e[0],secondaryPositions:e.slice(1),reason:t.reason,source:t.source};this._onDidChangeCursorPosition.fire(i);const s={selection:t.selections[0],secondarySelections:t.selections.slice(1),modelVersionId:t.modelVersionId,oldSelections:t.oldSelections,oldModelVersionId:t.oldModelVersionId,source:t.source,reason:t.reason};this._onDidChangeCursorSelection.fire(s);break}case 7:this._onDidChangeModelDecorations.fire(t.event);break;case 8:this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._onDidChangeModelLanguage.fire(t.event);break;case 9:this._onDidChangeModelLanguageConfiguration.fire(t.event);break;case 10:this._onDidChangeModelContent.fire(t.event);break;case 11:this._onDidChangeModelOptions.fire(t.event);break;case 12:this._onDidChangeModelTokens.fire(t.event)}})));const[n,r]=this._createView(s);if(r){this._domElement.appendChild(n.domNode.domNode);let t=Object.keys(this._contentWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addContentWidget(this._contentWidgets[i])}t=Object.keys(this._overlayWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addOverlayWidget(this._overlayWidgets[i])}t=Object.keys(this._glyphMarginWidgets);for(let e=0,i=t.length;e<i;e++){const i=t[e];n.addGlyphMarginWidget(this._glyphMarginWidgets[i])}n.render(!1,!0),n.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Jn(e,s,n,r,t,i)}_createView(e){let t;t=this.isSimpleWidget?{paste:(e,t,i,s)=>{this._paste("keyboard",e,t,i,s)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,i,s)=>{this._compositionType("keyboard",e,t,i,s)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,i,s)=>{const n={text:e,pasteOnNewLine:t,multicursorText:i,mode:s};this._commandService.executeCommand("paste",n)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},compositionType:(e,t,i,s)=>{if(i||s){const n={text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:s};this._commandService.executeCommand("compositionType",n)}else{const i={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",i)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new st(e.coordinatesConverter);i.onKeyDown=e=>this._onKeyDown.fire(e),i.onKeyUp=e=>this._onKeyUp.fire(e),i.onContextMenu=e=>this._onContextMenu.fire(e),i.onMouseMove=e=>this._onMouseMove.fire(e),i.onMouseLeave=e=>this._onMouseLeave.fire(e),i.onMouseDown=e=>this._onMouseDown.fire(e),i.onMouseUp=e=>this._onMouseUp.fire(e),i.onMouseDrag=e=>this._onMouseDrag.fire(e),i.onMouseDrop=e=>this._onMouseDrop.fire(e),i.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),i.onMouseWheel=e=>this._onMouseWheel.fire(e);return[new Pi(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(e){e?.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(this._contributionsDisposable?.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&t.remove(),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._bannerDomNode.remove(),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}showDropIndicatorAt(e){const t=[{range:new q.Q(e.lineNumber,e.column,e.lineNumber,e.column),options:zn.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(e,t){this._contextKeyService.createKey(e,t)}_beginUpdate(){this._updateCounter++,1===this._updateCounter&&this._onBeginUpdate.fire()}_endUpdate(){this._updateCounter--,0===this._updateCounter&&this._onEndUpdate.fire()}};Xn=zn=$n([Qn(3,He._Y),Qn(4,U.T),Qn(5,Gn.d),Qn(6,jn.fN),Qn(7,ke.Gy),Qn(8,Yn.Ot),Qn(9,x.j),Qn(10,is.JZ),Qn(11,ns.ILanguageFeaturesService)],Xn);let Zn=0;class Jn{constructor(e,t,i,s,n,r){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=s,this.listenersToRemove=n,this.attachedView=r}dispose(){(0,d.AS)(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}class er extends d.jG{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new h.vl(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new h.vl(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class tr extends h.vl{constructor(e,t){super({deliveryQueue:t}),this._contributions=e}fire(e){this._contributions.onBeforeInteractionEvent(),super.fire(e)}}class ir extends d.jG{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=ts.R.editorSimpleInput.bindTo(t),this._editorFocus=ts.R.focus.bindTo(t),this._textInputFocus=ts.R.textInputFocus.bindTo(t),this._editorTextFocus=ts.R.editorTextFocus.bindTo(t),this._tabMovesFocus=ts.R.tabMovesFocus.bindTo(t),this._editorReadonly=ts.R.readOnly.bindTo(t),this._inDiffEditor=ts.R.inDiffEditor.bindTo(t),this._editorColumnSelection=ts.R.columnSelection.bindTo(t),this._hasMultipleSelections=ts.R.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=ts.R.hasNonEmptySelection.bindTo(t),this._canUndo=ts.R.canUndo.bindTo(t),this._canRedo=ts.R.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromConfig()))),this._register(this._editor.onDidChangeCursorSelection((()=>this._updateFromSelection()))),this._register(this._editor.onDidFocusEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidFocusEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidChangeModel((()=>this._updateFromModel()))),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromModel()))),this._register(w.M.onDidChangeTabFocus((e=>this._tabMovesFocus.set(e)))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._tabMovesFocus.set(w.M.getTabFocusMode()),this._editorReadonly.set(e.get(92)),this._inDiffEditor.set(e.get(61)),this._editorColumnSelection.set(e.get(22))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((e=>!e.isEmpty())))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class sr extends d.jG{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=ts.R.languageId.bindTo(t),this._hasCompletionItemProvider=ts.R.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=ts.R.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=ts.R.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=ts.R.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=ts.R.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=ts.R.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=ts.R.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=ts.R.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=ts.R.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=ts.R.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=ts.R.hasReferenceProvider.bindTo(t),this._hasRenameProvider=ts.R.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=ts.R.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=ts.R.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=ts.R.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=ts.R.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=ts.R.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=ts.R.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInEmbeddedEditor=ts.R.isInEmbeddedEditor.bindTo(t);const s=()=>this._update();this._register(e.onDidChangeModel(s)),this._register(e.onDidChangeModelLanguage(s)),this._register(i.completionProvider.onDidChange(s)),this._register(i.codeActionProvider.onDidChange(s)),this._register(i.codeLensProvider.onDidChange(s)),this._register(i.definitionProvider.onDidChange(s)),this._register(i.declarationProvider.onDidChange(s)),this._register(i.implementationProvider.onDidChange(s)),this._register(i.typeDefinitionProvider.onDidChange(s)),this._register(i.hoverProvider.onDidChange(s)),this._register(i.documentHighlightProvider.onDidChange(s)),this._register(i.documentSymbolProvider.onDidChange(s)),this._register(i.referenceProvider.onDidChange(s)),this._register(i.renameProvider.onDidChange(s)),this._register(i.documentFormattingEditProvider.onDidChange(s)),this._register(i.documentRangeFormattingEditProvider.onDidChange(s)),this._register(i.signatureHelpProvider.onDidChange(s)),this._register(i.inlayHintsProvider.onDidChange(s)),s()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents((()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInEmbeddedEditor.reset()}))}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents((()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInEmbeddedEditor.set(e.uri.scheme===u.ny.walkThroughSnippet||e.uri.scheme===u.ny.vscodeChatCodeBlock)})):this.reset()}}class nr extends d.jG{constructor(e,t){super(),this._onChange=this._register(new h.vl),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(l.w5(e)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus((()=>{this._hasDomElementFocus=!0,this._update()}))),this._register(this._domFocusTracker.onDidBlur((()=>{this._hasDomElementFocus=!1,this._update()}))),t&&(this._overflowWidgetsDomNode=this._register(l.w5(t)),this._register(this._overflowWidgetsDomNode.onDidFocus((()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()}))),this._register(this._overflowWidgetsDomNode.onDidBlur((()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()}))))}_update(){const e=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==e&&(this._hadFocus=e,this._onChange.fire(void 0))}hasFocus(){return this._hadFocus??!1}}class rr{get length(){return this._decorationIds.length}constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations((i=>{this._isChangingDecorations||e.call(t,i)}),i)}getRange(e){return this._editor.hasModel()?e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e]):null}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const s=e.getDecorationRange(i);s&&t.push(s)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){0!==this._decorationIds.length&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations((t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)}))}finally{this._isChangingDecorations=!1}return this._decorationIds}append(e){let t=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations((i=>{t=i.deltaDecorations([],e),this._decorationIds=this._decorationIds.concat(t)}))}finally{this._isChangingDecorations=!1}return t}}const or=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),ar=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function lr(e){return or+encodeURIComponent(e.toString())+ar}const cr=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),hr=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');(0,ke.zy)(((e,t)=>{const i=e.getColor(zt.Rbi);i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${lr(i)}") repeat-x bottom left; }`);const s=e.getColor(zt.Hng);s&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${lr(s)}") repeat-x bottom left; }`);const n=e.getColor(zt.pOz);n&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${lr(n)}") repeat-x bottom left; }`);const r=e.getColor(zt.i61);r&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${function(e){return cr+encodeURIComponent(e.toString())+hr}(r)}") no-repeat bottom left; }`);const o=e.getColor(Ae.yw);o&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${o.rgba.a}; }`)}))},29163:(e,t,i)=>{"use strict";i.d(t,{t:()=>f});var s=i(10146),n=i(80301),r=i(52555),o=i(17469),a=i(56942),l=i(253),c=i(50091),h=i(32848),d=i(63591),u=i(58591),g=i(47612),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class extends r.x{constructor(e,t,i,s,n,r,o,a,l,c,h,d,u){super(e,{...s.getRawOptions(),overflowWidgetsDomNode:s.getOverflowWidgetsDomNode()},i,n,r,o,a,l,c,h,d,u),this._parentEditor=s,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(s.onDidChangeConfiguration((e=>this._onParentConfigurationChanged(e))))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){s.co(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};f=p([m(4,d._Y),m(5,n.T),m(6,c.d),m(7,h.fN),m(8,g.Gy),m(9,u.Ot),m(10,l.j),m(11,o.JZ),m(12,a.ILanguageFeaturesService)],f)},20961:(e,t,i)=>{"use strict";var s=i(10350),n=i(8597),r=i(31450),o=i(80301),a=i(4360),l=i(60002),c=i(78209),h=i(27195),d=i(84001),u=i(32848);i(10691);class g extends h.L{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:(0,c.aS)("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:s.W.map,toggled:u.M$.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:u.M$.has("isInDiffEditor"),menu:{when:u.M$.has("isInDiffEditor"),id:h.D8.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",s)}}class p extends h.L{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:(0,c.aS)("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:u.M$.has("isInDiffEditor")})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",s)}}class m extends h.L{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:(0,c.aS)("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:u.M$.has("isInDiffEditor")})}run(e,...t){const i=e.get(d.pG),s=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",s)}}const f=(0,c.aS)("diffEditor","Diff Editor");class _ extends r.qO{constructor(){super({id:"diffEditor.switchSide",title:(0,c.aS)("switchSide","Switch Side"),icon:s.W.arrowSwap,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,i){const s=L(e);if(s instanceof a.T){if(i&&i.dryRun)return{destinationSelection:s.mapToOtherSide().destinationSelection};s.switchSide()}}}class v extends r.qO{constructor(){super({id:"diffEditor.exitCompareMove",title:(0,c.aS)("exitCompareMove","Exit Compare Move"),icon:s.W.close,precondition:l.R.comparingMovedCode,f1:!1,category:f,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const s=L(e);s instanceof a.T&&s.exitCompareMove()}}class C extends r.qO{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:(0,c.aS)("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:s.W.fold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,...i){const s=L(e);s instanceof a.T&&s.collapseAllUnchangedRegions()}}class b extends r.qO{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:(0,c.aS)("showAllUnchangedRegions","Show All Unchanged Regions"),icon:s.W.unfold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,...i){const s=L(e);s instanceof a.T&&s.showAllUnchangedRegions()}}class E extends h.L{constructor(){super({id:"diffEditor.revert",title:(0,c.aS)("revert","Revert"),f1:!1,category:f})}run(e,t){const i=function(e,t,i){const s=e.get(o.T);return s.listDiffEditors().find((e=>{const s=e.getModifiedEditor(),n=e.getOriginalEditor();return s&&s.getModel()?.uri.toString()===i.toString()&&n&&n.getModel()?.uri.toString()===t.toString()}))||null}(e,t.originalUri,t.modifiedUri);i instanceof a.T&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const S=(0,c.aS)("accessibleDiffViewer","Accessible Diff Viewer");class y extends h.L{static{this.id="editor.action.accessibleDiffViewer.next"}constructor(){super({id:y.id,title:(0,c.aS)("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:S,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=L(e);t?.accessibleDiffViewerNext()}}class w extends h.L{static{this.id="editor.action.accessibleDiffViewer.prev"}constructor(){super({id:w.id,title:(0,c.aS)("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:S,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=L(e);t?.accessibleDiffViewerPrev()}}function L(e){const t=e.get(o.T).listDiffEditors(),i=(0,n.bq)();if(i)for(const s of t){if(R(s.getContainerDomNode(),i))return s}return null}function R(e,t){let i=t;for(;i;){if(i===e)return!0;i=i.parentElement}return!1}var T=i(50091);(0,h.ug)(g),(0,h.ug)(p),(0,h.ug)(m),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:(new m).desc.id,title:(0,c.kg)("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:u.M$.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:u.M$.has("isInDiffEditor")},order:11,group:"1_diff",when:u.M$.and(l.R.diffEditorRenderSideBySideInlineBreakpointReached,u.M$.has("isInDiffEditor"))}),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:(new p).desc.id,title:(0,c.kg)("showMoves","Show Moved Code Blocks"),icon:s.W.move,toggled:u.f1.create("config.diffEditor.experimental.showMoves",!0),precondition:u.M$.has("isInDiffEditor")},order:10,group:"1_diff",when:u.M$.has("isInDiffEditor")}),(0,h.ug)(E);for(const x of[{icon:s.W.arrowRight,key:l.R.diffEditorInlineMode.toNegated()},{icon:s.W.discard,key:l.R.diffEditorInlineMode}])h.ZG.appendMenuItem(h.D8.DiffEditorHunkToolbar,{command:{id:(new E).desc.id,title:(0,c.kg)("revertHunk","Revert Block"),icon:x.icon},when:u.M$.and(l.R.diffEditorModifiedWritable,x.key),order:5,group:"primary"}),h.ZG.appendMenuItem(h.D8.DiffEditorSelectionToolbar,{command:{id:(new E).desc.id,title:(0,c.kg)("revertSelection","Revert Selection"),icon:x.icon},when:u.M$.and(l.R.diffEditorModifiedWritable,x.key),order:5,group:"primary"});(0,h.ug)(_),(0,h.ug)(v),(0,h.ug)(C),(0,h.ug)(b),h.ZG.appendMenuItem(h.D8.EditorTitle,{command:{id:y.id,title:(0,c.kg)("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:u.M$.has("isInDiffEditor")},order:10,group:"2_diff",when:u.M$.and(l.R.accessibleDiffViewerVisible.negate(),u.M$.has("isInDiffEditor"))}),T.w.registerCommandAlias("editor.action.diffReview.next",y.id),(0,h.ug)(y),T.w.registerCommandAlias("editor.action.diffReview.prev",w.id),(0,h.ug)(w)},4360:(e,t,i)=>{"use strict";i.d(t,{T:()=>Bt});var s=i(8597),n=i(46041),r=i(64383),o=i(41234),a=i(5662),l=i(31308),c=i(87958),h=i(31450),d=i(80301),u=i(55190),g=i(52555),p=i(80789),m=i(11799),f=i(31295),_=i(36921),v=i(25890),C=i(10350),b=i(25689),E=i(73157),S=i(92368),y=i(87908),w=i(86571),L=i(74444),R=i(83069),T=i(36677),x=i(87723),k=i(10154),A=i(87469),N=i(35600),I=i(92896),O=i(78209),D=i(87213),M=i(63591),P=i(61394),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H=(0,P.pU)("diff-review-insert",C.W.add,(0,O.kg)("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),B=(0,P.pU)("diff-review-remove",C.W.remove,(0,O.kg)("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),W=(0,P.pU)("diff-review-close",C.W.close,(0,O.kg)("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer."));let V=class extends a.jG{static{this._ttPolicy=(0,p.H)("diffReview",{createHTML:e=>e})}constructor(e,t,i,s,n,r,o,a,c){super(),this._parentNode=e,this._visible=t,this._setVisible=i,this._canClose=s,this._width=n,this._height=r,this._diffs=o,this._models=a,this._instantiationService=c,this._state=(0,l.rm)(this,((e,t)=>{const i=this._visible.read(e);if(this._parentNode.style.visibility=i?"visible":"hidden",!i)return null;const s=t.add(this._instantiationService.createInstance(z,this._diffs,this._models,this._setVisible,this._canClose));return{model:s,view:t.add(this._instantiationService.createInstance(X,this._parentNode,s,this._width,this._height,this._models))}})).recomputeInitiallyAndOnChange(this._store)}next(){(0,l.Rn)((e=>{const t=this._visible.get();this._setVisible(!0,e),t&&this._state.get().model.nextGroup(e)}))}prev(){(0,l.Rn)((e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e)}))}close(){(0,l.Rn)((e=>{this._setVisible(!1,e)}))}};V=F([U(8,M._Y)],V);let z=class extends a.jG{constructor(e,t,i,s,n){super(),this._diffs=e,this._models=t,this._setVisible=i,this.canClose=s,this._accessibilitySignalService=n,this._groups=(0,l.FY)(this,[]),this._currentGroupIdx=(0,l.FY)(this,0),this._currentElementIdx=(0,l.FY)(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map(((e,t)=>this._groups.read(t)[e])),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map(((e,t)=>this.currentGroup.read(t)?.lines[e])),this._register((0,l.fm)((e=>{const t=this._diffs.read(e);if(!t)return void this._groups.set([],void 0);const i=function(e,t,i){const s=[];for(const n of(0,v.n)(e,((e,t)=>t.modified.startLineNumber-e.modified.endLineNumberExclusive<2*G))){const e=[];e.push(new Y);const r=new w.M(Math.max(1,n[0].original.startLineNumber-G),Math.min(n[n.length-1].original.endLineNumberExclusive+G,t+1)),o=new w.M(Math.max(1,n[0].modified.startLineNumber-G),Math.min(n[n.length-1].modified.endLineNumberExclusive+G,i+1));(0,v.pN)(n,((t,i)=>{const s=new w.M(t?t.original.endLineNumberExclusive:r.startLineNumber,i?i.original.startLineNumber:r.endLineNumberExclusive),n=new w.M(t?t.modified.endLineNumberExclusive:o.startLineNumber,i?i.modified.startLineNumber:o.endLineNumberExclusive);s.forEach((t=>{e.push(new Q(t,n.startLineNumber+(t-s.startLineNumber)))})),i&&(i.original.forEach((t=>{e.push(new q(i,t))})),i.modified.forEach((t=>{e.push(new $(i,t))})))}));const a=n[0].modified.join(n[n.length-1].modified),l=n[0].original.join(n[n.length-1].original);s.push(new K(new x.WL(a,l),e))}return s}(t,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());(0,l.Rn)((e=>{const t=this._models.getModifiedPosition();if(t){const s=i.findIndex((e=>t?.lineNumber<e.range.modified.endLineNumberExclusive));-1!==s&&this._currentGroupIdx.set(s,e)}this._groups.set(i,e)}))}))),this._register((0,l.fm)((e=>{const t=this.currentElement.read(e);t?.type===j.Deleted?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):t?.type===j.Added&&this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})}))),this._register((0,l.fm)((e=>{const t=this.currentElement.read(e);if(t&&t.type!==j.Header){const e=t.modifiedLineNumber??t.diff.modified.startLineNumber;this._models.modifiedSetSelection(T.Q.fromPositions(new R.y(e,1)))}})))}_goToGroupDelta(e,t){const i=this.groups.get();!i||i.length<=1||(0,l.PO)(t,(t=>{this._currentGroupIdx.set(L.L.ofLength(i.length).clipCyclic(this._currentGroupIdx.get()+e),t),this._currentElementIdx.set(0,t)}))}nextGroup(e){this._goToGroupDelta(1,e)}previousGroup(e){this._goToGroupDelta(-1,e)}_goToLineDelta(e){const t=this.currentGroup.get();!t||t.lines.length<=1||(0,l.Rn)((i=>{this._currentElementIdx.set(L.L.ofLength(t.lines.length).clip(this._currentElementIdx.get()+e),i)}))}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(e){const t=this.currentGroup.get();if(!t)return;const i=t.lines.indexOf(e);-1!==i&&(0,l.Rn)((e=>{this._currentElementIdx.set(i,e)}))}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);const e=this.currentElement.get();e&&(e.type===j.Deleted?this._models.originalReveal(T.Q.fromPositions(new R.y(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==j.Header?T.Q.fromPositions(new R.y(e.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};z=F([U(4,D.Nt)],z);const G=3;var j;!function(e){e[e.Header=0]="Header",e[e.Unchanged=1]="Unchanged",e[e.Deleted=2]="Deleted",e[e.Added=3]="Added"}(j||(j={}));class K{constructor(e,t){this.range=e,this.lines=t}}class Y{constructor(){this.type=j.Header}}class q{constructor(e,t){this.diff=e,this.originalLineNumber=t,this.type=j.Deleted,this.modifiedLineNumber=void 0}}class ${constructor(e,t){this.diff=e,this.modifiedLineNumber=t,this.type=j.Added,this.originalLineNumber=void 0}}class Q{constructor(e,t){this.originalLineNumber=e,this.modifiedLineNumber=t,this.type=j.Unchanged}}let X=class extends a.jG{constructor(e,t,i,n,r,o){super(),this._element=e,this._model=t,this._width=i,this._height=n,this._models=r,this._languageService=o,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";const c=document.createElement("div");c.className="diff-review-actions",this._actionBar=this._register(new m.E(c)),this._register((0,l.fm)((e=>{this._actionBar.clear(),this._model.canClose.read(e)&&this._actionBar.push(new _.rc("diffreview.close",(0,O.kg)("label.close","Close"),"close-diff-review "+b.L.asClassName(W),!0,(async()=>t.close())),{label:!1,icon:!0})}))),this._content=document.createElement("div"),this._content.className="diff-review-content",this._content.setAttribute("role","code"),this._scrollbar=this._register(new f.MU(this._content,{})),(0,s.Ln)(this.domNode,this._scrollbar.getDomNode(),c),this._register((0,l.fm)((e=>{this._height.read(e),this._width.read(e),this._scrollbar.scanDomNode()}))),this._register((0,a.s)((()=>{(0,s.Ln)(this.domNode)}))),this._register((0,S.AV)(this.domNode,{width:this._width,height:this._height})),this._register((0,S.AV)(this._content,{width:this._width,height:this._height})),this._register((0,l.yC)(((e,t)=>{this._model.currentGroup.read(e),this._render(t)}))),this._register((0,s.b2)(this.domNode,"keydown",(e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._model.goToNextLine()),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._model.goToPreviousLine()),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this._model.close()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this._model.revealCurrentElementInEditor())})))}_render(e){const t=this._models.getOriginalOptions(),i=this._models.getModifiedOptions(),n=document.createElement("div");n.className="diff-review-table",n.setAttribute("role","list"),n.setAttribute("aria-label",(0,O.kg)("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),(0,E.M)(n,i.get(50)),(0,s.Ln)(this._content,n);const r=this._models.getOriginalModel(),o=this._models.getModifiedModel();if(!r||!o)return;const a=r.getOptions(),c=o.getOptions(),h=i.get(67),d=this._model.currentGroup.get();for(const u of d?.lines||[]){if(!d)break;let g;if(u.type===j.Header){const e=document.createElement("div");e.className="diff-review-row",e.setAttribute("role","listitem");const t=d.range,i=this._model.currentGroupIndex.get(),s=this._model.groups.get().length,n=e=>0===e?(0,O.kg)("no_lines_changed","no lines changed"):1===e?(0,O.kg)("one_line_changed","1 line changed"):(0,O.kg)("more_lines_changed","{0} lines changed",e),r=n(t.original.length),o=n(t.modified.length);e.setAttribute("aria-label",(0,O.kg)({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",i+1,s,t.original.startLineNumber,r,t.modified.startLineNumber,o));const a=document.createElement("div");a.className="diff-review-cell diff-review-summary",a.appendChild(document.createTextNode(`${i+1}/${s}: @@ -${t.original.startLineNumber},${t.original.length} +${t.modified.startLineNumber},${t.modified.length} @@`)),e.appendChild(a),g=e}else g=this._createRow(u,h,this._width.get(),t,r,a,i,o,c);n.appendChild(g);const p=(0,l.un)((e=>this._model.currentElement.read(e)===u));e.add((0,l.fm)((e=>{const t=p.read(e);g.tabIndex=t?0:-1,t&&g.focus()}))),e.add((0,s.ko)(g,"focus",(()=>{this._model.goToLine(u)})))}this._scrollbar.scanDomNode()}_createRow(e,t,i,s,n,r,o,a,l){const c=s.get(146),h=c.glyphMarginWidth+c.lineNumbersWidth,d=o.get(146),u=10+d.glyphMarginWidth+d.lineNumbersWidth;let g="diff-review-row",p="";let m=null;switch(e.type){case j.Added:g="diff-review-row line-insert",p=" char-insert",m=H;break;case j.Deleted:g="diff-review-row line-delete",p=" char-delete",m=B}const f=document.createElement("div");f.style.minWidth=i+"px",f.className=g,f.setAttribute("role","listitem"),f.ariaLevel="";const _=document.createElement("div");_.className="diff-review-cell",_.style.height=`${t}px`,f.appendChild(_);const v=document.createElement("span");v.style.width=h+"px",v.style.minWidth=h+"px",v.className="diff-review-line-number"+p,void 0!==e.originalLineNumber?v.appendChild(document.createTextNode(String(e.originalLineNumber))):v.innerText="\xa0",_.appendChild(v);const C=document.createElement("span");C.style.width=u+"px",C.style.minWidth=u+"px",C.style.paddingRight="10px",C.className="diff-review-line-number"+p,void 0!==e.modifiedLineNumber?C.appendChild(document.createTextNode(String(e.modifiedLineNumber))):C.innerText="\xa0",_.appendChild(C);const E=document.createElement("span");if(E.className="diff-review-spacer",m){const e=document.createElement("span");e.className=b.L.asClassName(m),e.innerText="\xa0\xa0",E.appendChild(e)}else E.innerText="\xa0\xa0";let S;if(_.appendChild(E),void 0!==e.modifiedLineNumber){let t=this._getLineHtml(a,o,l.tabSize,e.modifiedLineNumber,this._languageService.languageIdCodec);V._ttPolicy&&(t=V._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),S=a.getLineContent(e.modifiedLineNumber)}else{let t=this._getLineHtml(n,s,r.tabSize,e.originalLineNumber,this._languageService.languageIdCodec);V._ttPolicy&&(t=V._ttPolicy.createHTML(t)),_.insertAdjacentHTML("beforeend",t),S=n.getLineContent(e.originalLineNumber)}0===S.length&&(S=(0,O.kg)("blankLine","blank"));let y="";switch(e.type){case j.Unchanged:y=e.originalLineNumber===e.modifiedLineNumber?(0,O.kg)({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",S,e.originalLineNumber):(0,O.kg)("equalLine","{0} original line {1} modified line {2}",S,e.originalLineNumber,e.modifiedLineNumber);break;case j.Added:y=(0,O.kg)("insertLine","+ {0} modified line {1}",S,e.modifiedLineNumber);break;case j.Deleted:y=(0,O.kg)("deleteLine","- {0} original line {1}",S,e.originalLineNumber)}return f.setAttribute("aria-label",y),f}_getLineHtml(e,t,i,s,n){const r=e.getLineContent(s),o=t.get(50),a=A.f.createEmpty(r,n),l=I.qL.isBasicASCII(r,e.mightContainNonBasicASCII()),c=I.qL.containsRTL(r,l,e.mightContainRTL());return(0,N.Md)(new N.zL(o.isMonospace&&!t.get(33),o.canUseHalfwidthRightwardsArrow,r,!1,l,c,0,a,[],i,0,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,t.get(118),t.get(100),t.get(95),t.get(51)!==y.Bc.OFF,null)).html}};X=F([U(5,k.L)],X);class Z{constructor(e){this.editors=e}getOriginalModel(){return this.editors.original.getModel()}getOriginalOptions(){return this.editors.original.getOptions()}originalReveal(e){this.editors.original.revealRange(e),this.editors.original.setSelection(e),this.editors.original.focus()}getModifiedModel(){return this.editors.modified.getModel()}getModifiedOptions(){return this.editors.modified.getOptions()}modifiedReveal(e){e&&(this.editors.modified.revealRange(e),this.editors.modified.setSelection(e)),this.editors.modified.focus()}modifiedSetSelection(e){this.editors.modified.setSelection(e)}modifiedFocus(){this.editors.modified.focus()}getModifiedPosition(){return this.editors.modified.getPosition()??void 0}}var J=i(90766),ee=i(631),te=i(10691),ie=i(18447),se=i(94746),ne=i(41127),re=i(26746),oe=i(94650),ae=i(84084),le=i(82518),ce=i(66782),he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends a.jG{setActiveMovedText(e){this._activeMovedText.set(e,void 0)}constructor(e,t,i){super(),this.model=e,this._options=t,this._diffProviderFactoryService=i,this._isDiffUpToDate=(0,l.FY)(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=(0,l.FY)(this,void 0),this.diff=this._diff,this._unchangedRegions=(0,l.FY)(this,void 0),this.unchangedRegions=(0,l.un)(this,(e=>this._options.hideUnchangedRegions.read(e)?this._unchangedRegions.read(e)?.regions??[]:((0,l.Rn)((e=>{for(const t of this._unchangedRegions.get()?.regions||[])t.collapseAll(e)})),[]))),this.movedTextToCompare=(0,l.FY)(this,void 0),this._activeMovedText=(0,l.FY)(this,void 0),this._hoveredMovedText=(0,l.FY)(this,void 0),this.activeMovedText=(0,l.un)(this,(e=>this.movedTextToCompare.read(e)??this._hoveredMovedText.read(e)??this._activeMovedText.read(e))),this._cancellationTokenSource=new ie.Qi,this._diffProvider=(0,l.un)(this,(e=>{const t=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(e)});return{diffProvider:t,onChangeSignal:(0,l.yQ)("onDidChange",t.onDidChange)}})),this._register((0,a.s)((()=>this._cancellationTokenSource.cancel())));const s=(0,l.Yd)("contentChangedSignal"),n=this._register(new J.uC((()=>s.trigger(void 0)),200));this._register((0,l.fm)((t=>{const i=this._unchangedRegions.read(t);if(!i||i.regions.some((e=>e.isDragged.read(t))))return;const s=i.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),n=i.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),r=i.regions.map(((e,i)=>s[i]&&n[i]?new me(s[i].startLineNumber,n[i].startLineNumber,s[i].length,e.visibleLineCountTop.read(t),e.visibleLineCountBottom.read(t)):void 0)).filter(ee.O9),o=[];let a=!1;for(const e of(0,v.n)(r,((e,i)=>e.getHiddenModifiedRange(t).endLineNumberExclusive===i.getHiddenModifiedRange(t).startLineNumber)))if(e.length>1){a=!0;const t=e.reduce(((e,t)=>e+t.lineCount),0),i=new me(e[0].originalLineNumber,e[0].modifiedLineNumber,t,e[0].visibleLineCountTop.get(),e[e.length-1].visibleLineCountBottom.get());o.push(i)}else o.push(e[0]);if(a){const t=e.original.deltaDecorations(i.originalDecorationIds,o.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),s=e.modified.deltaDecorations(i.modifiedDecorationIds,o.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));(0,l.Rn)((e=>{this._unchangedRegions.set({regions:o,originalDecorationIds:t,modifiedDecorationIds:s},e)}))}})));const r=(t,i,s)=>{const n=me.fromDiffs(t.changes,e.original.getLineCount(),e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(s),this._options.hideUnchangedRegionsContextLineCount.read(s));let r;const o=this._unchangedRegions.get();if(o){const t=o.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0)),i=o.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?w.M.fromRangeInclusive(e):void 0));let n=(0,S.EK)(o.regions.map(((e,s)=>{if(!t[s]||!i[s])return;const n=t[s].length;return new me(t[s].startLineNumber,i[s].startLineNumber,n,Math.min(e.visibleLineCountTop.get(),n),Math.min(e.visibleLineCountBottom.get(),n-e.visibleLineCountTop.get()))})).filter(ee.O9),((e,t)=>!t||e.modifiedLineNumber>=t.modifiedLineNumber+t.lineCount&&e.originalLineNumber>=t.originalLineNumber+t.lineCount)).map((e=>new x.WL(e.getHiddenOriginalRange(s),e.getHiddenModifiedRange(s))));n=x.WL.clip(n,w.M.ofLength(1,e.original.getLineCount()),w.M.ofLength(1,e.modified.getLineCount())),r=x.WL.inverse(n,e.original.getLineCount(),e.modified.getLineCount())}const a=[];if(r)for(const e of n){const t=r.filter((t=>t.original.intersectsStrict(e.originalUnchangedRange)&&t.modified.intersectsStrict(e.modifiedUnchangedRange)));a.push(...e.setVisibleRanges(t,i))}else a.push(...n);const l=e.original.deltaDecorations(o?.originalDecorationIds||[],a.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),c=e.modified.deltaDecorations(o?.modifiedDecorationIds||[],a.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));this._unchangedRegions.set({regions:a,originalDecorationIds:l,modifiedDecorationIds:c},i)};this._register(e.modified.onDidChangeContent((t=>{if(this._diff.get()){const i=oe.c.fromModelContentChanges(t.changes),s=_e(this._lastDiff,i,e.original,e.modified);s&&(this._lastDiff=s,(0,l.Rn)((e=>{this._diff.set(ge.fromDiffResult(this._lastDiff),e),r(s,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),n.schedule()}))),this._register(e.original.onDidChangeContent((t=>{if(this._diff.get()){const i=oe.c.fromModelContentChanges(t.changes),s=fe(this._lastDiff,i,e.original,e.modified);s&&(this._lastDiff=s,(0,l.Rn)((e=>{this._diff.set(ge.fromDiffResult(this._lastDiff),e),r(s,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),n.schedule()}))),this._register((0,l.yC)((async(t,i)=>{this._options.hideUnchangedRegionsMinimumLineCount.read(t),this._options.hideUnchangedRegionsContextLineCount.read(t),n.cancel(),s.read(t);const o=this._diffProvider.read(t);o.onChangeSignal.read(t),(0,ne.b)(re.D8,t),(0,ne.b)(le.NC,t),this._isDiffUpToDate.set(!1,void 0);let a=[];i.add(e.original.onDidChangeContent((e=>{const t=oe.c.fromModelContentChanges(e.changes);a=(0,ae.M)(a,t)})));let c=[];i.add(e.modified.onDidChangeContent((e=>{const t=oe.c.fromModelContentChanges(e.changes);c=(0,ae.M)(c,t)})));let h=await o.diffProvider.computeDiff(e.original,e.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(t),maxComputationTimeMs:this._options.maxComputationTimeMs.read(t),computeMoves:this._options.showMoves.read(t)},this._cancellationTokenSource.token);var d,u,g;this._cancellationTokenSource.token.isCancellationRequested||(e.original.isDisposed()||e.modified.isDisposed()||(d=h,u=e.original,g=e.modified,h={changes:d.changes.map((e=>new x.wm(e.original,e.modified,e.innerChanges?e.innerChanges.map((e=>function(e,t,i){let s=e.originalRange,n=e.modifiedRange;return 1===s.startColumn&&1===n.startColumn&&(1!==s.endColumn||1!==n.endColumn)&&s.endColumn===t.getLineMaxColumn(s.endLineNumber)&&n.endColumn===i.getLineMaxColumn(n.endLineNumber)&&s.endLineNumber<t.getLineCount()&&n.endLineNumber<i.getLineCount()&&(s=s.setEndPosition(s.endLineNumber+1,1),n=n.setEndPosition(n.endLineNumber+1,1)),new x.q6(s,n)}(e,u,g))):void 0))),moves:d.moves,identical:d.identical,quitEarly:d.quitEarly},h=fe(h,a,e.original,e.modified)??h,h=_e(h,c,e.original,e.modified)??h,(0,l.Rn)((e=>{r(h,e),this._lastDiff=h;const t=ge.fromDiffResult(h);this._diff.set(t,e),this._isDiffUpToDate.set(!0,e);const i=this.movedTextToCompare.get();this.movedTextToCompare.set(i?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(i.lineRangeMapping.modified))):void 0,e)}))))})))}ensureModifiedLineIsVisible(e,t,i){if(0===this.diff.get()?.mappings.length)return;const s=this._unchangedRegions.get()?.regions||[];for(const n of s)if(n.getHiddenModifiedRange(void 0).contains(e))return void n.showModifiedLine(e,t,i)}ensureOriginalLineIsVisible(e,t,i){if(0===this.diff.get()?.mappings.length)return;const s=this._unchangedRegions.get()?.regions||[];for(const n of s)if(n.getHiddenOriginalRange(void 0).contains(e))return void n.showOriginalLine(e,t,i)}async waitForDiff(){await(0,l.oJ)(this.isDiffUpToDate,(e=>e))}serializeState(){const e=this._unchangedRegions.get();return{collapsedRegions:e?.regions.map((e=>({range:e.getHiddenModifiedRange(void 0).serialize()})))}}restoreSerializedState(e){const t=e.collapsedRegions?.map((e=>w.M.deserialize(e.range))),i=this._unchangedRegions.get();i&&t&&(0,l.Rn)((e=>{for(const s of i.regions)for(const i of t)if(s.modifiedUnchangedRange.intersect(i)){s.setHiddenModifiedRange(i,e);break}}))}};ue=he([de(2,se.Hg)],ue);class ge{static fromDiffResult(e){return new ge(e.changes.map((e=>new pe(e))),e.moves||[],e.identical,e.quitEarly)}constructor(e,t,i,s){this.mappings=e,this.movedTexts=t,this.identical=i,this.quitEarly=s}}class pe{constructor(e){this.lineRangeMapping=e}}class me{static fromDiffs(e,t,i,s,n){const r=x.wm.inverse(e,t,i),o=[];for(const a of r){let e=a.original.startLineNumber,r=a.modified.startLineNumber,l=a.original.length;const c=1===e&&1===r,h=e+l===t+1&&r+l===i+1;(c||h)&&l>=n+s?(c&&!h&&(l-=n),h&&!c&&(e+=n,r+=n,l-=n),o.push(new me(e,r,l,0,0))):l>=2*n+s&&(e+=n,r+=n,l-=2*n,o.push(new me(e,r,l,0,0)))}return o}get originalUnchangedRange(){return w.M.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return w.M.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(e,t,i,s,n){this.originalLineNumber=e,this.modifiedLineNumber=t,this.lineCount=i,this._visibleLineCountTop=(0,l.FY)(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=(0,l.FY)(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=(0,l.un)(this,(e=>this.visibleLineCountTop.read(e)+this.visibleLineCountBottom.read(e)===this.lineCount&&!this.isDragged.read(e))),this.isDragged=(0,l.FY)(this,void 0);const r=Math.max(Math.min(s,this.lineCount),0),o=Math.max(Math.min(n,this.lineCount-s),0);(0,ce.V7)(s===r),(0,ce.V7)(n===o),this._visibleLineCountTop.set(r,void 0),this._visibleLineCountBottom.set(o,void 0)}setVisibleRanges(e,t){const i=[],s=new w.S(e.map((e=>e.modified))).subtractFrom(this.modifiedUnchangedRange);let n=this.originalLineNumber,r=this.modifiedLineNumber;const o=this.modifiedLineNumber+this.lineCount;if(0===s.ranges.length)this.showAll(t),i.push(this);else{let e=0;for(const a of s.ranges){const l=e===s.ranges.length-1;e++;const c=(l?o:a.endLineNumberExclusive)-r,h=new me(n,r,c,0,0);h.setHiddenModifiedRange(a,t),i.push(h),n=h.originalUnchangedRange.endLineNumberExclusive,r=h.modifiedUnchangedRange.endLineNumberExclusive}}return i}shouldHideControls(e){return this._shouldHideControls.read(e)}getHiddenOriginalRange(e){return w.M.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}getHiddenModifiedRange(e){return w.M.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}setHiddenModifiedRange(e,t){const i=e.startLineNumber-this.modifiedLineNumber,s=this.modifiedLineNumber+this.lineCount-e.endLineNumberExclusive;this.setState(i,s,t)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(e=10,t){const i=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+e,i),t)}showMoreBelow(e=10,t){const i=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+e,i),t)}showAll(e){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),e)}showModifiedLine(e,t,i){const s=e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),n=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-e;0===t&&s<n||1===t?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+s,i):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+n,i)}showOriginalLine(e,t,i){const s=e-this.originalLineNumber,n=this.originalLineNumber+this.lineCount-e;0===t&&s<n||1===t?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+n-s,this.getMaxVisibleLineCountTop()),i):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+s-n,this.getMaxVisibleLineCountBottom()),i)}collapseAll(e){this._visibleLineCountTop.set(0,e),this._visibleLineCountBottom.set(0,e)}setState(e,t,i){e=Math.max(Math.min(e,this.lineCount),0),t=Math.max(Math.min(t,this.lineCount-e),0),this._visibleLineCountTop.set(e,i),this._visibleLineCountBottom.set(t,i)}}function fe(e,t,i,s){}function _e(e,t,i,s){}var ve=i(98067);class Ce extends a.jG{get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}constructor(e,t,i,n,r,o,a,l,c){super(),this._getViewZoneId=e,this._marginDomNode=t,this._modifiedEditor=i,this._diff=n,this._editor=r,this._viewLineCounts=o,this._originalTextModel=a,this._contextMenuService=l,this._clipboardService=c,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=b.L.asClassName(C.W.lightBulb)+" lightbulb-glyph",this._diffActions.style.position="absolute";const h=this._modifiedEditor.getOption(67);this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${h}px`,this._diffActions.style.lineHeight=`${h}px`,this._marginDomNode.appendChild(this._diffActions);let d=0;const u=i.getOption(128)&&!ve.un,g=(e,t)=>{this._contextMenuService.showContextMenu({domForShadowRoot:u?i.getDomNode()??void 0:void 0,getAnchor:()=>({x:e,y:t}),getActions:()=>{const e=[],t=n.modified.isEmpty;e.push(new _.rc("diff.clipboard.copyDeletedContent",t?n.original.length>1?(0,O.kg)("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):(0,O.kg)("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.original.length>1?(0,O.kg)("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):(0,O.kg)("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,(async()=>{const e=this._originalTextModel.getValueInRange(n.original.toExclusiveRange());await this._clipboardService.writeText(e)}))),n.original.length>1&&e.push(new _.rc("diff.clipboard.copyDeletedLineContent",t?(0,O.kg)("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.original.startLineNumber+d):(0,O.kg)("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.original.startLineNumber+d),void 0,!0,(async()=>{let e=this._originalTextModel.getLineContent(n.original.startLineNumber+d);if(""===e){e=0===this._originalTextModel.getEndOfLineSequence()?"\n":"\r\n"}await this._clipboardService.writeText(e)})));return i.getOption(92)||e.push(new _.rc("diff.inline.revertChange",(0,O.kg)("diff.inline.revertChange.label","Revert this change"),void 0,!0,(async()=>{this._editor.revert(this._diff)}))),e},autoSelectFirstItem:!0})};this._register((0,s.b2)(this._diffActions,"mousedown",(e=>{if(!e.leftButton)return;const{top:t,height:i}=(0,s.BK)(this._diffActions),n=Math.floor(h/3);e.preventDefault(),g(e.posx,t+i+n)}))),this._register(i.onMouseMove((e=>{8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId!==this._getViewZoneId()?this.visibility=!1:(d=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),this.visibility=!0)}))),this._register(i.onMouseDown((e=>{if(e.event.leftButton&&(8===e.target.type||5===e.target.type)){e.target.detail.viewZoneId===this._getViewZoneId()&&(e.event.preventDefault(),d=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),g(e.event.posx,e.event.posy+h))}})))}_updateLightBulbPosition(e,t,i){const{top:n}=(0,s.BK)(e),r=t-n,o=Math.floor(r/i),a=o*i;if(this._diffActions.style.top=`${a}px`,this._viewLineCounts){let e=0;for(let t=0;t<this._viewLineCounts.length;t++)if(e+=this._viewLineCounts[t],o<e)return t}return o}}var be=i(99020),Ee=i(25521);const Se=(0,p.H)("diffEditorWidget",{createHTML:e=>e});function ye(e,t,i,s){(0,E.M)(s,t.fontInfo);const n=i.length>0,r=new be.fe(1e4);let o=0,a=0;const l=[];for(let d=0;d<e.lineTokens.length;d++){const s=d+1,c=e.lineTokens[d],h=e.lineBreakData[d],u=Ee.d.filter(i,s,1,Number.MAX_SAFE_INTEGER);if(h){let i=0;for(const s of h.breakOffsets){const l=c.sliceAndInflate(i,s,0);o=Math.max(o,Re(a,l,Ee.d.extractWrapped(u,i,s),n,e.mightContainNonBasicASCII,e.mightContainRTL,t,r)),a++,i=s}l.push(h.breakOffsets.length)}else l.push(1),o=Math.max(o,Re(a,c,u,n,e.mightContainNonBasicASCII,e.mightContainRTL,t,r)),a++}o+=t.scrollBeyondLastColumn;const c=r.build(),h=Se?Se.createHTML(c):c;s.innerHTML=h;return{heightInLines:a,minWidthInPx:o*t.typicalHalfwidthCharacterWidth,viewLineCounts:l}}class we{constructor(e,t,i,s){this.lineTokens=e,this.lineBreakData=t,this.mightContainNonBasicASCII=i,this.mightContainRTL=s}}class Le{static fromEditor(e){const t=e.getOptions(),i=t.get(50),s=t.get(146);return new Le(e.getModel()?.getOptions().tabSize||0,i,t.get(33),i.typicalHalfwidthCharacterWidth,t.get(105),t.get(67),s.decorationsWidth,t.get(118),t.get(100),t.get(95),t.get(51))}constructor(e,t,i,s,n,r,o,a,l,c,h){this.tabSize=e,this.fontInfo=t,this.disableMonospaceOptimizations=i,this.typicalHalfwidthCharacterWidth=s,this.scrollBeyondLastColumn=n,this.lineHeight=r,this.lineDecorationsWidth=o,this.stopRenderingLineAfter=a,this.renderWhitespace=l,this.renderControlCharacters=c,this.fontLigatures=h}}function Re(e,t,i,s,n,r,o,a){a.appendString('<div class="view-line'),s||a.appendString(" char-delete"),a.appendString('" style="top:'),a.appendString(String(e*o.lineHeight)),a.appendString('px;width:1000000px;">');const l=t.getLineContent(),c=I.qL.isBasicASCII(l,n),h=I.qL.containsRTL(l,c,r),d=(0,N.UW)(new N.zL(o.fontInfo.isMonospace&&!o.disableMonospaceOptimizations,o.fontInfo.canUseHalfwidthRightwardsArrow,l,!1,c,h,0,t,i,o.tabSize,0,o.fontInfo.spaceWidth,o.fontInfo.middotWidth,o.fontInfo.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==y.Bc.OFF,null),a);return a.appendString("</div>"),d.characterMapping.getHorizontalOffset(d.characterMapping.length)}var Te=i(54770),xe=i(47508),ke=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ae=function(e,t){return function(i,s){t(i,s,e)}};let Ne=class extends a.jG{constructor(e,t,i,n,r,o,c,h,d,u){super(),this._targetWindow=e,this._editors=t,this._diffModel=i,this._options=n,this._diffEditorWidget=r,this._canIgnoreViewZoneUpdateEvent=o,this._origViewZonesToIgnore=c,this._modViewZonesToIgnore=h,this._clipboardService=d,this._contextMenuService=u,this._originalTopPadding=(0,l.FY)(this,0),this._originalScrollOffset=(0,l.FY)(this,0),this._originalScrollOffsetAnimated=(0,S.Nu)(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=(0,l.FY)(this,0),this._modifiedScrollOffset=(0,l.FY)(this,0),this._modifiedScrollOffsetAnimated=(0,S.Nu)(this._targetWindow,this._modifiedScrollOffset,this._store);const g=(0,l.FY)("invalidateAlignmentsState",0),p=this._register(new J.uC((()=>{g.set(g.get()+1,void 0)}),0));this._register(this._editors.original.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.modified.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.original.onDidChangeConfiguration((e=>{(e.hasChanged(147)||e.hasChanged(67))&&p.schedule()}))),this._register(this._editors.modified.onDidChangeConfiguration((e=>{(e.hasChanged(147)||e.hasChanged(67))&&p.schedule()})));const m=this._diffModel.map((e=>e?(0,l.y0)(this,e.model.original.onDidChangeTokens,(()=>2===e.model.original.tokenization.backgroundTokenizationState)):void 0)).map(((e,t)=>e?.read(t))),f=(0,l.un)((e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!t||!i)return null;g.read(e);const s=this._options.renderSideBySide.read(e);return Ie(this._editors.original,this._editors.modified,i.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,s)})),_=(0,l.un)((e=>{const t=this._diffModel.read(e)?.movedTextToCompare.read(e);if(!t)return null;g.read(e);const i=t.changes.map((e=>new pe(e)));return Ie(this._editors.original,this._editors.modified,i,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)}));function v(){const e=document.createElement("div");return e.className="diagonal-fill",e}const y=this._register(new a.Cm);this.viewZones=(0,l.rm)(this,((e,t)=>{y.clear();const i=f.read(e)||[],n=[],o=[],a=this._modifiedTopPadding.read(e);a>0&&o.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:a,showInHiddenAreas:!0,suppressMouseDown:!0});const l=this._originalTopPadding.read(e);l>0&&n.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:l,showInHiddenAreas:!0,suppressMouseDown:!0});const c=this._options.renderSideBySide.read(e),h=c?void 0:this._editors.modified._getViewModel()?.createLineBreaksComputer();if(h){const R=this._editors.original.getModel();for(const T of i)if(T.diff)for(let x=T.originalRange.startLineNumber;x<T.originalRange.endLineNumberExclusive;x++){if(x>R.getLineCount())return{orig:n,mod:o};h?.addRequest(R.getLineContent(x),null,null)}}const d=h?.finalize()??[];let u=0;const g=this._editors.modified.getOption(67),p=this._diffModel.read(e)?.movedTextToCompare.read(e),S=this._editors.original.getModel()?.mightContainNonBasicASCII()??!1,w=this._editors.original.getModel()?.mightContainRTL()??!1,L=Le.fromEditor(this._editors.modified);for(const k of i)if(!k.diff||c||this._options.useTrueInlineDiffRendering.read(e)&&De(k.diff)){const A=k.modifiedHeightInPx-k.originalHeightInPx;if(A>0){if(p?.lineRangeMapping.original.delta(-1).deltaLength(2).contains(k.originalRange.endLineNumberExclusive-1))continue;n.push({afterLineNumber:k.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:A,showInHiddenAreas:!0,suppressMouseDown:!0})}else{if(p?.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(k.modifiedRange.endLineNumberExclusive-1))continue;function N(){const e=document.createElement("div");return e.className="arrow-revert-change "+b.L.asClassName(C.W.arrowRight),t.add((0,s.ko)(e,"mousedown",(e=>e.stopPropagation()))),t.add((0,s.ko)(e,"click",(e=>{e.stopPropagation(),r.revert(k.diff)}))),(0,s.$)("div",{},e)}let O;k.diff&&k.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(e)&&(O=N()),o.push({afterLineNumber:k.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-A,marginDomNode:O,showInHiddenAreas:!0,suppressMouseDown:!0})}}else{if(!k.originalRange.isEmpty){m.read(e);const M=document.createElement("div");M.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const P=this._editors.original.getModel();if(k.originalRange.endLineNumberExclusive-1>P.getLineCount())return{orig:n,mod:o};const F=new we(k.originalRange.mapToLineArray((e=>P.tokenization.getLineTokens(e))),k.originalRange.mapToLineArray((e=>d[u++])),S,w),U=[];for(const V of k.diff.innerChanges||[])U.push(new I.kI(V.originalRange.delta(-(k.diff.original.startLineNumber-1)),te.Zb.className,0));const H=ye(F,L,U,M),B=document.createElement("div");if(B.className="inline-deleted-margin-view-zone",(0,E.M)(B,L.fontInfo),this._options.renderIndicators.read(e))for(let z=0;z<H.heightInLines;z++){const G=document.createElement("div");G.className=`delete-sign ${b.L.asClassName(te.dv)}`,G.setAttribute("style",`position:absolute;top:${z*g}px;width:${L.lineDecorationsWidth}px;height:${g}px;right:0;`),B.appendChild(G)}let W;y.add(new Ce((()=>(0,ee.eU)(W)),B,this._editors.modified,k.diff,this._diffEditorWidget,H.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let j=0;j<H.viewLineCounts.length;j++){const K=H.viewLineCounts[j];K>1&&n.push({afterLineNumber:k.originalRange.startLineNumber+j,domNode:v(),heightInPx:(K-1)*g,showInHiddenAreas:!0,suppressMouseDown:!0})}o.push({afterLineNumber:k.modifiedRange.startLineNumber-1,domNode:M,heightInPx:H.heightInLines*g,minWidthInPx:H.minWidthInPx,marginDomNode:B,setZoneId(e){W=e},showInHiddenAreas:!0,suppressMouseDown:!0})}const D=document.createElement("div");D.className="gutter-delete",n.push({afterLineNumber:k.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:k.modifiedHeightInPx,marginDomNode:D,showInHiddenAreas:!0,suppressMouseDown:!0})}for(const Y of _.read(e)??[]){if(!p?.lineRangeMapping.original.intersect(Y.originalRange)||!p?.lineRangeMapping.modified.intersect(Y.modifiedRange))continue;const q=Y.modifiedHeightInPx-Y.originalHeightInPx;q>0?n.push({afterLineNumber:Y.originalRange.endLineNumberExclusive-1,domNode:v(),heightInPx:q,showInHiddenAreas:!0,suppressMouseDown:!0}):o.push({afterLineNumber:Y.modifiedRange.endLineNumberExclusive-1,domNode:v(),heightInPx:-q,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:n,mod:o}}));let w=!1;this._register(this._editors.original.onDidScrollChange((e=>{e.scrollLeftChanged&&!w&&(w=!0,this._editors.modified.setScrollLeft(e.scrollLeft),w=!1)}))),this._register(this._editors.modified.onDidScrollChange((e=>{e.scrollLeftChanged&&!w&&(w=!0,this._editors.original.setScrollLeft(e.scrollLeft),w=!1)}))),this._originalScrollTop=(0,l.y0)(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,l.y0)(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._register((0,l.fm)((e=>{const t=this._originalScrollTop.read(e)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(e))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(e));t!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(t,1)}))),this._register((0,l.fm)((e=>{const t=this._modifiedScrollTop.read(e)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(e))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(e));t!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(t,1)}))),this._register((0,l.fm)((e=>{const t=this._diffModel.read(e)?.movedTextToCompare.read(e);let i=0;if(t){const e=this._editors.original.getTopForLineNumber(t.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();i=this._editors.modified.getTopForLineNumber(t.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-e}i>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(i,void 0)):i<0?(this._modifiedTopPadding.set(-i,void 0),this._originalTopPadding.set(0,void 0)):setTimeout((()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0)}),400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.get()-i,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+i,void 0,!0)})))}};function Ie(e,t,i,s,n,r){const o=new v.j3(Oe(e,s)),a=new v.j3(Oe(t,n)),l=e.getOption(67),c=t.getOption(67),h=[];let d=0,u=0;function g(e,t){for(;;){let i=o.peek(),s=a.peek();if(i&&i.lineNumber>=e&&(i=void 0),s&&s.lineNumber>=t&&(s=void 0),!i&&!s)break;const n=i?i.lineNumber-d:Number.MAX_VALUE,r=s?s.lineNumber-u:Number.MAX_VALUE;n<r?(o.dequeue(),s={lineNumber:i.lineNumber-d+u,heightInPx:0}):n>r?(a.dequeue(),i={lineNumber:s.lineNumber-u+d,heightInPx:0}):(o.dequeue(),a.dequeue()),h.push({originalRange:w.M.ofLength(i.lineNumber,1),modifiedRange:w.M.ofLength(s.lineNumber,1),originalHeightInPx:l+i.heightInPx,modifiedHeightInPx:c+s.heightInPx,diff:void 0})}}for(const p of i){const m=p.lineRangeMapping;g(m.original.startLineNumber,m.modified.startLineNumber);let f=!0,_=m.modified.startLineNumber,C=m.original.startLineNumber;function b(e,t,i=!1){if(e<C||t<_)return;if(f)f=!1;else if(!i&&(e===C||t===_))return;const s=new w.M(C,e),n=new w.M(_,t);if(s.isEmpty&&n.isEmpty)return;const r=o.takeWhile((t=>t.lineNumber<e))?.reduce(((e,t)=>e+t.heightInPx),0)??0,d=a.takeWhile((e=>e.lineNumber<t))?.reduce(((e,t)=>e+t.heightInPx),0)??0;h.push({originalRange:s,modifiedRange:n,originalHeightInPx:s.length*l+r,modifiedHeightInPx:n.length*c+d,diff:p.lineRangeMapping}),C=e,_=t}if(r)for(const E of m.innerChanges||[]){E.originalRange.startColumn>1&&E.modifiedRange.startColumn>1&&b(E.originalRange.startLineNumber,E.modifiedRange.startLineNumber);const S=e.getModel(),y=E.originalRange.endLineNumber<=S.getLineCount()?S.getLineMaxColumn(E.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;E.originalRange.endColumn<y&&b(E.originalRange.endLineNumber,E.modifiedRange.endLineNumber)}b(m.original.endLineNumberExclusive,m.modified.endLineNumberExclusive,!0),d=m.original.endLineNumberExclusive,u=m.modified.endLineNumberExclusive}return g(Number.MAX_VALUE,Number.MAX_VALUE),h}function Oe(e,t){const i=[],s=[],n=-1!==e.getOption(147).wrappingColumn,r=e._getViewModel().coordinatesConverter,o=e.getOption(67);if(n)for(let a=1;a<=e.getModel().getLineCount();a++){const e=r.getModelLineViewLineCount(a);e>1&&s.push({lineNumber:a,heightInPx:o*(e-1)})}for(const a of e.getWhitespaces()){if(t.has(a.id))continue;const e=0===a.afterLineNumber?0:r.convertViewPositionToModelPosition(new R.y(a.afterLineNumber,1)).lineNumber;i.push({lineNumber:e,heightInPx:a.height})}return(0,S.Am)(i,s,(e=>e.lineNumber),((e,t)=>({lineNumber:e.lineNumber,heightInPx:e.heightInPx+t.heightInPx})))}function De(e){return!!e.innerChanges&&e.innerChanges.every((e=>Me(e.modifiedRange)&&Me(e.originalRange)||e.originalRange.equalsRange(new T.Q(1,1,1,1))))}function Me(e){return e.startLineNumber===e.endLineNumber}Ne=ke([Ae(8,Te.h),Ae(9,xe.Z)],Ne);class Pe extends a.jG{static{this.movedCodeBlockPadding=4}constructor(e,t,i,s,n){super(),this._rootElement=e,this._diffModel=t,this._originalEditorLayoutInfo=i,this._modifiedEditorLayoutInfo=s,this._editors=n,this._originalScrollTop=(0,l.y0)(this,this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,l.y0)(this,this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._viewZonesChanged=(0,l.yQ)("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=(0,l.FY)(this,0),this._modifiedViewZonesChangedSignal=(0,l.yQ)("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=(0,l.yQ)("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=(0,l.rm)(this,((e,t)=>{this._element.replaceChildren();const i=this._diffModel.read(e),s=i?.diff.read(e)?.movedTexts;if(!s||0===s.length)return void this.width.set(0,void 0);this._viewZonesChanged.read(e);const n=this._originalEditorLayoutInfo.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(!n||!r)return void this.width.set(0,void 0);this._modifiedViewZonesChangedSignal.read(e),this._originalViewZonesChangedSignal.read(e);const o=s.map((t=>{function i(e,t){return(t.getTopForLineNumber(e.startLineNumber,!0)+t.getTopForLineNumber(e.endLineNumberExclusive,!0))/2}const s=i(t.lineRangeMapping.original,this._editors.original),n=this._originalScrollTop.read(e),r=i(t.lineRangeMapping.modified,this._editors.modified),o=s-n,a=r-this._modifiedScrollTop.read(e),l=Math.min(s,r),c=Math.max(s,r);return{range:new L.L(l,c),from:o,to:a,fromWithoutScroll:s,toWithoutScroll:r,move:t}}));o.sort((0,v.nH)((0,v.VE)((e=>e.fromWithoutScroll>e.toWithoutScroll),v.TS),(0,v.VE)((e=>e.fromWithoutScroll>e.toWithoutScroll?e.fromWithoutScroll:-e.toWithoutScroll),v.U9)));const a=Fe.compute(o.map((e=>e.range))),c=n.verticalScrollbarWidth,h=10*(a.getTrackCount()-1)+20,d=c+h+(r.contentLeft-Pe.movedCodeBlockPadding);let u=0;for(const g of o){const e=c+10+10*a.getTrack(u),s=15,n=15,o=d,h=r.glyphMarginWidth+r.lineNumbersWidth,p=18,m=document.createElementNS("http://www.w3.org/2000/svg","rect");m.classList.add("arrow-rectangle"),m.setAttribute("x",""+(o-h)),m.setAttribute("y",""+(g.to-p/2)),m.setAttribute("width",`${h}`),m.setAttribute("height",`${p}`),this._element.appendChild(m);const f=document.createElementNS("http://www.w3.org/2000/svg","g"),_=document.createElementNS("http://www.w3.org/2000/svg","path");_.setAttribute("d",`M 0 ${g.from} L ${e} ${g.from} L ${e} ${g.to} L ${o-n} ${g.to}`),_.setAttribute("fill","none"),f.appendChild(_);const v=document.createElementNS("http://www.w3.org/2000/svg","polygon");v.classList.add("arrow"),t.add((0,l.fm)((e=>{_.classList.toggle("currentMove",g.move===i.activeMovedText.read(e)),v.classList.toggle("currentMove",g.move===i.activeMovedText.read(e))}))),v.setAttribute("points",`${o-n},${g.to-s/2} ${o},${g.to} ${o-n},${g.to+s/2}`),f.appendChild(v),this._element.appendChild(f),u++}this.width.set(h,void 0)})),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register((0,a.s)((()=>this._element.remove()))),this._register((0,l.fm)((e=>{const t=this._originalEditorLayoutInfo.read(e),i=this._modifiedEditorLayoutInfo.read(e);t&&i&&(this._element.style.left=t.width-t.verticalScrollbarWidth+"px",this._element.style.height=`${t.height}px`,this._element.style.width=`${t.verticalScrollbarWidth+t.contentLeft-Pe.movedCodeBlockPadding+this.width.read(e)}px`)}))),this._register((0,l.OI)(this._state));const r=(0,l.un)((e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);return i?i.movedTexts.map((e=>({move:e,original:new S.D1((0,l.lk)(e.lineRangeMapping.original.startLineNumber-1),18),modified:new S.D1((0,l.lk)(e.lineRangeMapping.modified.startLineNumber-1),18)}))):[]}));this._register((0,S.Vs)(this._editors.original,r.map((e=>e.map((e=>e.original)))))),this._register((0,S.Vs)(this._editors.modified,r.map((e=>e.map((e=>e.modified)))))),this._register((0,l.yC)(((e,t)=>{const i=r.read(e);for(const s of i)t.add(new Ue(this._editors.original,s.original,s.move,"original",this._diffModel.get())),t.add(new Ue(this._editors.modified,s.modified,s.move,"modified",this._diffModel.get()))})));const o=(0,l.yQ)("original.onDidFocusEditorWidget",(e=>this._editors.original.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0))))),c=(0,l.yQ)("modified.onDidFocusEditorWidget",(e=>this._editors.modified.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0)))));let h="modified";this._register((0,l.Y)({createEmptyChangeSummary:()=>{},handleChange:(e,t)=>(e.didChange(o)&&(h="original"),e.didChange(c)&&(h="modified"),!0)},(e=>{o.read(e),c.read(e);const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e);let s;if(i&&"original"===h){const t=this._editors.originalCursor.read(e);t&&(s=i.movedTexts.find((e=>e.lineRangeMapping.original.contains(t.lineNumber))))}if(i&&"modified"===h){const t=this._editors.modifiedCursor.read(e);t&&(s=i.movedTexts.find((e=>e.lineRangeMapping.modified.contains(t.lineNumber))))}s!==t.movedTextToCompare.get()&&t.movedTextToCompare.set(void 0,void 0),t.setActiveMovedText(s)})))}}class Fe{static compute(e){const t=[],i=[];for(const s of e){let e=t.findIndex((e=>!e.intersectsStrict(s)));if(-1===e){const i=6;t.length>=i?e=(0,n.TM)(t,(0,v.VE)((e=>e.intersectWithRangeLength(s)),v.U9)):(e=t.length,t.push(new L.h))}t[e].addRange(s),i.push(e)}return new Fe(t.length,i)}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}}class Ue extends S.uN{constructor(e,t,i,n,r){const o=(0,s.h)("div.diff-hidden-lines-widget");super(e,t,o.root),this._editor=e,this._move=i,this._kind=n,this._diffModel=r,this._nodes=(0,s.h)("div.diff-moved-code-block",{style:{marginRight:"4px"}},[(0,s.h)("div.text-content@textContent"),(0,s.h)("div.action-bar@actionBar")]),o.root.appendChild(this._nodes.root);const a=(0,l.y0)(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));let c;this._register((0,S.AV)(this._nodes.root,{paddingRight:a.map((e=>e.verticalScrollbarWidth))})),c=i.changes.length>0?"original"===this._kind?(0,O.kg)("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,O.kg)("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):"original"===this._kind?(0,O.kg)("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,O.kg)("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const h=this._register(new m.E(this._nodes.actionBar,{highlightToggledItems:!0})),d=new _.rc("",c,"",!1);h.push(d,{icon:!1,label:!0});const u=new _.rc("","Compare",b.L.asClassName(C.W.compareChanges),!0,(()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0)}));this._register((0,l.fm)((e=>{const t=this._diffModel.movedTextToCompare.read(e)===i;u.checked=t}))),h.push(u,{icon:!1,label:!0})}}class He extends a.jG{constructor(e,t,i,s){super(),this._editors=e,this._diffModel=t,this._options=i,this._decorations=(0,l.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return null;const s=this._diffModel.read(e).movedTextToCompare.read(e),n=this._options.renderIndicators.read(e),r=this._options.showEmptyDecorations.read(e),o=[],a=[];if(!s)for(const c of i.mappings)if(c.lineRangeMapping.original.isEmpty||o.push({range:c.lineRangeMapping.original.toInclusiveRange(),options:n?te.Ob:te.XT}),c.lineRangeMapping.modified.isEmpty||a.push({range:c.lineRangeMapping.modified.toInclusiveRange(),options:n?te.Kl:te.Zw}),c.lineRangeMapping.modified.isEmpty||c.lineRangeMapping.original.isEmpty)c.lineRangeMapping.original.isEmpty||o.push({range:c.lineRangeMapping.original.toInclusiveRange(),options:te.KL}),c.lineRangeMapping.modified.isEmpty||a.push({range:c.lineRangeMapping.modified.toInclusiveRange(),options:te.Ou});else{const i=this._options.useTrueInlineDiffRendering.read(e)&&De(c.lineRangeMapping);for(const e of c.lineRangeMapping.innerChanges||[])if(c.lineRangeMapping.original.contains(e.originalRange.startLineNumber)&&o.push({range:e.originalRange,options:e.originalRange.isEmpty()&&r?te.wp:te.Zb}),c.lineRangeMapping.modified.contains(e.modifiedRange.startLineNumber)&&a.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()&&r&&!i?te.GM:te.bk}),i){const i=t.model.original.getValueInRange(e.originalRange);a.push({range:e.modifiedRange,options:{description:"deleted-text",before:{content:i,inlineClassName:"inline-deleted-text"},zIndex:1e5,showIfCollapsed:!0}})}}if(s)for(const c of s.changes){const e=c.original.toInclusiveRange();e&&o.push({range:e,options:n?te.Ob:te.XT});const t=c.modified.toInclusiveRange();t&&a.push({range:t,options:n?te.Kl:te.Zw});for(const i of c.innerChanges||[])o.push({range:i.originalRange,options:te.Zb}),a.push({range:i.modifiedRange,options:te.bk})}const l=this._diffModel.read(e).activeMovedText.read(e);for(const c of i.movedTexts)o.push({range:c.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(c===l?" currentMove":""),blockPadding:[Pe.movedCodeBlockPadding,0,Pe.movedCodeBlockPadding,Pe.movedCodeBlockPadding]}}),a.push({range:c.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(c===l?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:o,modifiedDecorations:a}})),this._register((0,S.pY)(this._editors.original,this._decorations.map((e=>e?.originalDecorations||[])))),this._register((0,S.pY)(this._editors.modified,this._decorations.map((e=>e?.modifiedDecorations||[]))))}}var Be=i(92403);class We{resetSash(){this._sashRatio.set(void 0,void 0)}constructor(e,t){this._options=e,this.dimensions=t,this.sashLeft=(0,c.dQ)(this,(e=>{const t=this._sashRatio.read(e)??this._options.splitViewDefaultRatio.read(e);return this._computeSashLeft(t,e)}),((e,t)=>{const i=this.dimensions.width.get();this._sashRatio.set(e/i,t)})),this._sashRatio=(0,l.FY)(this,void 0)}_computeSashLeft(e,t){const i=this.dimensions.width.read(t),s=Math.floor(this._options.splitViewDefaultRatio.read(t)*i),n=this._options.enableSplitViewResizing.read(t)?Math.floor(e*i):s,r=100;return i<=200?s:n<r?r:n>i-r?i-r:n}}class Ve extends a.jG{constructor(e,t,i,s,n,r){super(),this._domNode=e,this._dimensions=t,this._enabled=i,this._boundarySashes=s,this.sashLeft=n,this._resetSash=r,this._sash=this._register(new Be.m(this._domNode,{getVerticalSashTop:e=>0,getVerticalSashLeft:e=>this.sashLeft.get(),getVerticalSashHeight:e=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart((()=>{this._startSashPosition=this.sashLeft.get()}))),this._register(this._sash.onDidChange((e=>{this.sashLeft.set(this._startSashPosition+(e.currentX-e.startX),void 0)}))),this._register(this._sash.onDidEnd((()=>this._sash.layout()))),this._register(this._sash.onDidReset((()=>this._resetSash()))),this._register((0,l.fm)((e=>{const t=this._boundarySashes.read(e);t&&(this._sash.orthogonalEndSash=t.bottom)}))),this._register((0,l.fm)((e=>{const t=this._enabled.read(e);this._sash.state=t?3:0,this.sashLeft.read(e),this._dimensions.height.read(e),this._sash.layout()})))}}class ze extends a.jG{constructor(e,t,i){super(),this._editor=e,this._domNode=t,this.itemProvider=i,this.scrollTop=(0,l.y0)(this,this._editor.onDidScrollChange,(e=>this._editor.getScrollTop())),this.isScrollTopZero=this.scrollTop.map((e=>0===e)),this.modelAttached=(0,l.y0)(this,this._editor.onDidChangeModel,(e=>this._editor.hasModel())),this.editorOnDidChangeViewZones=(0,l.yQ)("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=(0,l.yQ)("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=(0,l.Yd)("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const n=this._domNode.appendChild((0,s.h)("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),r=new ResizeObserver((()=>{(0,l.Rn)((e=>{this.domNodeSizeChanged.trigger(e)}))}));r.observe(this._domNode),this._register((0,a.s)((()=>r.disconnect()))),this._register((0,l.fm)((e=>{n.className=this.isScrollTopZero.read(e)?"":"scroll-decoration"}))),this._register((0,l.fm)((e=>this.render(e))))}dispose(){super.dispose(),(0,s.Ln)(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);const t=this.scrollTop.read(e),i=this._editor.getVisibleRanges(),s=new Set(this.views.keys()),n=L.L.ofStartAndLength(0,this._domNode.clientHeight);if(!n.isEmpty)for(const r of i){const i=new w.M(r.startLineNumber,r.endLineNumber+1),o=this.itemProvider.getIntersectingGutterItems(i,e);(0,l.Rn)((e=>{for(const r of o){if(!r.range.intersect(i))continue;s.delete(r.id);let o=this.views.get(r.id);if(o)o.item.set(r,e);else{const e=document.createElement("div");this._domNode.appendChild(e);const t=(0,l.FY)("item",r),i=this.itemProvider.createView(t,e);o=new Ge(t,i,e),this.views.set(r.id,o)}const a=r.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(r.range.startLineNumber,!0)-t:this._editor.getBottomForLineNumber(r.range.startLineNumber-1,!1)-t,c=(1===r.range.endLineNumberExclusive?Math.max(a,this._editor.getTopForLineNumber(r.range.startLineNumber,!1)-t):Math.max(a,this._editor.getBottomForLineNumber(r.range.endLineNumberExclusive-1,!0)-t))-a;o.domNode.style.top=`${a}px`,o.domNode.style.height=`${c}px`,o.gutterItemView.layout(L.L.ofStartAndLength(a,c),n)}}))}for(const r of s){const e=this.views.get(r);e.gutterItemView.dispose(),e.domNode.remove(),this.views.delete(r)}}}class Ge{constructor(e,t,i){this.item=e,this.gutterItemView=t,this.domNode=i}}var je=i(25791),Ke=i(75295),Ye=i(50973);class qe extends Ke.CO{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){const e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new Ye.W(e-1,t)}}var $e=i(65644),Qe=i(27195),Xe=i(32848),Ze=i(67220),Je=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},et=function(e,t){return function(i,s){t(i,s,e)}};const tt=[];let it=class extends a.jG{constructor(e,t,i,n,r,o,a,h,d){super(),this._diffModel=t,this._editors=i,this._options=n,this._sashLayout=r,this._boundarySashes=o,this._instantiationService=a,this._contextKeyService=h,this._menuService=d,this._menu=this._register(this._menuService.createMenu(Qe.D8.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=(0,l.y0)(this,this._menu.onDidChange,(()=>this._menu.getActions())),this._hasActions=this._actions.map((e=>e.length>0)),this._showSash=(0,l.un)(this,(e=>this._options.renderSideBySide.read(e)&&this._hasActions.read(e))),this.width=(0,l.un)(this,(e=>this._hasActions.read(e)?35:0)),this.elements=(0,s.h)("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:"35px"}},[]),this._currentDiff=(0,l.un)(this,(e=>{const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e)?.mappings,s=this._editors.modifiedCursor.read(e);return s?i?.find((e=>e.lineRangeMapping.modified.contains(s.lineNumber))):void 0})),this._selectedDiffs=(0,l.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return tt;const s=this._editors.modifiedSelections.read(e);if(s.every((e=>e.isEmpty())))return tt;const n=new w.S(s.map((e=>w.M.fromRangeInclusive(e)))),r=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&n.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>s.some((t=>T.Q.areIntersecting(e.modifiedRange,t)))))})));return 0===r.length||r.every((e=>0===e.rangeMappings.length))?tt:r})),this._register((0,S.$y)(e,this.elements.root)),this._register((0,s.ko)(this.elements.root,"click",(()=>{this._editors.modified.focus()}))),this._register((0,S.AV)(this.elements.root,{display:this._hasActions.map((e=>e?"block":"none"))})),(0,c.a0)(this,(t=>this._showSash.read(t)?new Ve(e,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,(0,c.dQ)(this,(e=>this._sashLayout.sashLeft.read(e)-35),((e,t)=>this._sashLayout.sashLeft.set(e+35,t))),(()=>this._sashLayout.resetSash())):void 0)).recomputeInitiallyAndOnChange(this._store),this._register(new ze(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(e,t)=>{const i=this._diffModel.read(t);if(!i)return[];const s=i.diff.read(t);if(!s)return[];const n=this._selectedDiffs.read(t);if(n.length>0){const e=x.wm.fromRangeMappings(n.flatMap((e=>e.rangeMappings)));return[new st(e,!0,Qe.D8.DiffEditorSelectionToolbar,void 0,i.model.original.uri,i.model.modified.uri)]}const r=this._currentDiff.read(t);return s.mappings.map((e=>new st(e.lineRangeMapping.withInnerChangesFromLineRanges(),e.lineRangeMapping===r?.lineRangeMapping,Qe.D8.DiffEditorHunkToolbar,void 0,i.model.original.uri,i.model.modified.uri)))},createView:(e,t)=>this._instantiationService.createInstance(nt,e,t,this)})),this._register((0,s.ko)(this.elements.gutter,s.Bx.MOUSE_WHEEL,(e=>{this._editors.modified.getOption(104).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1}))}computeStagedValue(e){const t=e.innerChanges??[],i=new qe(this._editors.modifiedModel.get()),s=new qe(this._editors.original.getModel()),n=new Ke.mF(t.map((e=>e.toTextEdit(i))));return n.apply(s)}layout(e){this.elements.gutter.style.left=e+"px"}};it=Je([et(6,M._Y),et(7,Xe.fN),et(8,Qe.ez)],it);class st{constructor(e,t,i,s,n,r){this.mapping=e,this.showAlways=t,this.menuId=i,this.rangeOverride=s,this.originalUri=n,this.modifiedUri=r}get id(){return this.mapping.modified.toString()}get range(){return this.rangeOverride??this.mapping.modified}}let nt=class extends a.jG{constructor(e,t,i,n){super(),this._item=e,this._elements=(0,s.h)("div.gutterItem",{style:{height:"20px",width:"34px"}},[(0,s.h)("div.background@background",{},[]),(0,s.h)("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,(e=>e.showAlways)),this._menuId=this._item.map(this,(e=>e.menuId)),this._isSmall=(0,l.FY)(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const r=this._register(n.createInstance(Ze.fO,"element",!0,{position:{hoverPosition:1}}));this._register((0,S.rX)(t,this._elements.root)),this._register((0,l.fm)((e=>{const t=this._showAlways.read(e);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",t),setTimeout((()=>{this._elements.root.classList.toggle("noTransition",!1)}),0)}))),this._register((0,l.yC)(((e,t)=>{this._elements.buttons.replaceChildren();const s=t.add(n.createInstance($e.m,this._elements.buttons,this._menuId.read(e),{orientation:1,hoverDelegate:r,toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(e)?1:3},hiddenItemStrategy:0,actionRunner:new je.I((()=>{const e=this._item.get(),t=e.mapping;return{mapping:t,originalWithModifiedChanges:i.computeStagedValue(t),originalUri:e.originalUri,modifiedUri:e.modifiedUri}})),menuOptions:{shouldForwardArgs:!0}}));t.add(s.onDidChangeMenuItems((()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)})))})))}layout(e,t){this._lastItemRange=e,this._lastViewRange=t;let i=this._elements.buttons.clientHeight;this._isSmall.set(1===this._item.get().mapping.original.startLineNumber&&e.length<30,void 0),i=this._elements.buttons.clientHeight;const s=e.length/2-i/2,n=i;let r=e.start+s;const o=L.L.tryCreate(n,t.endExclusive-n-i),a=L.L.tryCreate(e.start+n,e.endExclusive-i-n);a&&o&&a.start<a.endExclusive&&(r=o.clip(r),r=a.clip(r)),this._elements.buttons.style.top=r-e.start+"px"}};nt=Je([et(3,M._Y)],nt);var rt,ot=i(34309),at=i(55275),lt=i(74850),ct=i(19531),ht=i(66261),dt=i(47612),ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},gt=function(e,t){return function(i,s){t(i,s,e)}};let pt=class extends a.jG{static{rt=this}static{this.ONE_OVERVIEW_WIDTH=15}static{this.ENTIRE_DIFF_OVERVIEW_WIDTH=2*this.ONE_OVERVIEW_WIDTH}constructor(e,t,i,n,r,o,a){super(),this._editors=e,this._rootElement=t,this._diffModel=i,this._rootWidth=n,this._rootHeight=r,this._modifiedEditorLayoutInfo=o,this._themeService=a,this.width=rt.ENTIRE_DIFF_OVERVIEW_WIDTH;const c=(0,l.y0)(this._themeService.onDidColorThemeChange,(()=>this._themeService.getColorTheme())),h=(0,l.un)((e=>{const t=c.read(e);return{insertColor:t.getColor(ht.ld8)||(t.getColor(ht.Gj6)||ht.EY1).transparent(2),removeColor:t.getColor(ht.$BZ)||(t.getColor(ht.GNm)||ht.ZEf).transparent(2)}})),d=(0,at.Z)(document.createElement("div"));d.setClassName("diffViewport"),d.setPosition("absolute");const u=(0,s.h)("div.diffOverview",{style:{position:"absolute",top:"0px",width:rt.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register((0,S.rX)(u,d.domNode)),this._register((0,s.b2)(u,s.Bx.POINTER_DOWN,(e=>{this._editors.modified.delegateVerticalScrollbarPointerDown(e)}))),this._register((0,s.ko)(u,s.Bx.MOUSE_WHEEL,(e=>{this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1})),this._register((0,S.rX)(this._rootElement,u)),this._register((0,l.yC)(((e,t)=>{const i=this._diffModel.read(e),s=this._editors.original.createOverviewRuler("original diffOverviewRuler");s&&(t.add(s),t.add((0,S.rX)(u,s.getDomNode())));const n=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(n&&(t.add(n),t.add((0,S.rX)(u,n.getDomNode()))),!s||!n)return;const r=(0,l.yQ)("viewZoneChanged",this._editors.original.onDidChangeViewZones),o=(0,l.yQ)("viewZoneChanged",this._editors.modified.onDidChangeViewZones),a=(0,l.yQ)("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),c=(0,l.yQ)("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);t.add((0,l.fm)((e=>{r.read(e),o.read(e),a.read(e),c.read(e);const t=h.read(e),l=i?.diff.read(e)?.mappings;function d(e,t,i){const s=i._getViewModel();return s?e.filter((e=>e.length>0)).map((e=>{const i=s.coordinatesConverter.convertModelPositionToViewPosition(new R.y(e.startLineNumber,1)),n=s.coordinatesConverter.convertModelPositionToViewPosition(new R.y(e.endLineNumberExclusive,1)),r=n.lineNumber-i.lineNumber;return new ct.iE(i.lineNumber,n.lineNumber,r,t.toString())})):[]}const u=d((l||[]).map((e=>e.lineRangeMapping.original)),t.removeColor,this._editors.original),g=d((l||[]).map((e=>e.lineRangeMapping.modified)),t.insertColor,this._editors.modified);s?.setZones(u),n?.setZones(g)}))),t.add((0,l.fm)((e=>{const t=this._rootHeight.read(e),i=this._rootWidth.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(r){const i=rt.ENTIRE_DIFF_OVERVIEW_WIDTH-2*rt.ONE_OVERVIEW_WIDTH;s.setLayout({top:0,height:t,right:i+rt.ONE_OVERVIEW_WIDTH,width:rt.ONE_OVERVIEW_WIDTH}),n.setLayout({top:0,height:t,right:0,width:rt.ONE_OVERVIEW_WIDTH});const o=this._editors.modifiedScrollTop.read(e),a=this._editors.modifiedScrollHeight.read(e),l=this._editors.modified.getOption(104),c=new lt.m(l.verticalHasArrows?l.arrowSize:0,l.verticalScrollbarSize,0,r.height,a,o);d.setTop(c.getSliderPosition()),d.setHeight(c.getSliderSize())}else d.setTop(0),d.setHeight(0);u.style.height=t+"px",u.style.left=i-rt.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",d.setWidth(rt.ENTIRE_DIFF_OVERVIEW_WIDTH)})))})))}};pt=rt=ut([gt(6,dt.Gy)],pt);var mt=i(20370),ft=i(16223);const _t=[];class vt extends a.jG{constructor(e,t,i,s){super(),this._editors=e,this._diffModel=t,this._options=i,this._widget=s,this._selectedDiffs=(0,l.un)(this,(e=>{const t=this._diffModel.read(e),i=t?.diff.read(e);if(!i)return _t;const s=this._editors.modifiedSelections.read(e);if(s.every((e=>e.isEmpty())))return _t;const n=new w.S(s.map((e=>w.M.fromRangeInclusive(e)))),r=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&n.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>s.some((t=>T.Q.areIntersecting(e.modifiedRange,t)))))})));return 0===r.length||r.every((e=>0===e.rangeMappings.length))?_t:r})),this._register((0,l.yC)(((e,t)=>{if(!this._options.shouldRenderOldRevertArrows.read(e))return;const i=this._diffModel.read(e),s=i?.diff.read(e);if(!i||!s)return;if(i.movedTextToCompare.read(e))return;const n=[],r=this._selectedDiffs.read(e),o=new Set(r.map((e=>e.mapping)));if(r.length>0){const i=this._editors.modifiedSelections.read(e),s=t.add(new Ct(i[i.length-1].positionLineNumber,this._widget,r.flatMap((e=>e.rangeMappings)),!0));this._editors.modified.addGlyphMarginWidget(s),n.push(s)}for(const a of s.mappings)if(!o.has(a)&&!a.lineRangeMapping.modified.isEmpty&&a.lineRangeMapping.innerChanges){const e=t.add(new Ct(a.lineRangeMapping.modified.startLineNumber,this._widget,a.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(e),n.push(e)}t.add((0,a.s)((()=>{for(const e of n)this._editors.modified.removeGlyphMarginWidget(e)})))})))}}class Ct extends a.jG{static{this.counter=0}getId(){return this._id}constructor(e,t,i,n){super(),this._lineNumber=e,this._widget=t,this._diffs=i,this._revertSelection=n,this._id="revertButton"+Ct.counter++,this._domNode=(0,s.h)("div.revertButton",{title:this._revertSelection?(0,O.kg)("revertSelectedChanges","Revert Selected Changes"):(0,O.kg)("revertChange","Revert Change")},[(0,mt.s)(C.W.arrowRight)]).root,this._register((0,s.ko)(this._domNode,s.Bx.MOUSE_DOWN,(e=>{2!==e.button&&(e.stopPropagation(),e.preventDefault())}))),this._register((0,s.ko)(this._domNode,s.Bx.MOUSE_UP,(e=>{e.stopPropagation(),e.preventDefault()}))),this._register((0,s.ko)(this._domNode,s.Bx.CLICK,(e=>{this._diffs instanceof x.WL?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),e.stopPropagation(),e.preventDefault()})))}getDomNode(){return this._domNode}getPosition(){return{lane:ft.ZS.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}}var bt=i(71319),Et=i(23452),St=i(60002),yt=i(58345),wt=i(73823),Lt=i(38844),Rt=i(98031),Tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xt=function(e,t){return function(i,s){t(i,s,e)}};let kt=class extends a.jG{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,t,i,s,n,r,a){super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=i,this._argCodeEditorWidgetOptions=s,this._createInnerEditor=n,this._instantiationService=r,this._keybindingService=a,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new o.vl),this.modifiedScrollTop=(0,l.y0)(this,this.modified.onDidScrollChange,(()=>this.modified.getScrollTop())),this.modifiedScrollHeight=(0,l.y0)(this,this.modified.onDidScrollChange,(()=>this.modified.getScrollHeight())),this.modifiedObs=(0,Lt.Ud)(this.modified),this.originalObs=(0,Lt.Ud)(this.original),this.modifiedModel=this.modifiedObs.model,this.modifiedSelections=(0,l.y0)(this,this.modified.onDidChangeCursorSelection,(()=>this.modified.getSelections()??[])),this.modifiedCursor=(0,l.C)({owner:this,equalsFn:R.y.equals},(e=>this.modifiedSelections.read(e)[0]?.getPosition()??new R.y(1,1))),this.originalCursor=(0,l.y0)(this,this.original.onDidChangeCursorPosition,(()=>this.original.getPosition()??new R.y(1,1))),this._argCodeEditorWidgetOptions=null,this._register((0,l.Y)({createEmptyChangeSummary:()=>({}),handleChange:(e,t)=>(e.didChange(i.editorOptions)&&Object.assign(t,e.change.changedOptions),!0)},((e,t)=>{i.editorOptions.read(e),this._options.renderSideBySide.read(e),this.modified.updateOptions(this._adjustOptionsForRightHandSide(e,t)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(e,t))})))}_createLeftHandSideEditor(e,t){const i=this._adjustOptionsForLeftHandSide(void 0,e),s=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,t);return s.setContextValue("isInDiffLeftEditor",!0),s}_createRightHandSideEditor(e,t){const i=this._adjustOptionsForRightHandSide(void 0,e),s=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,t);return s.setContextValue("isInDiffRightEditor",!0),s}_constructInnerEditor(e,t,i,s){const n=this._createInnerEditor(e,t,i,s);return this._register(n.onDidContentSizeChange((e=>{const t=this.original.getContentWidth()+this.modified.getContentWidth()+pt.ENTIRE_DIFF_OVERVIEW_WIDTH,i=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged})}))),n}_adjustOptionsForLeftHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return this._options.renderSideBySide.get()?(i.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},i.wordWrapOverride1=this._options.diffWordWrap.get()):(i.wordWrapOverride1="off",i.wordWrapOverride2="off",i.stickyScroll={enabled:!1},i.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),i.glyphMargin=this._options.renderSideBySide.get(),t.originalAriaLabel&&(i.ariaLabel=t.originalAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.readOnly=!this._options.originalEditable.get(),i.dropIntoEditor={enabled:!i.readOnly},i.extraEditorClassName="original-in-monaco-diff-editor",i}_adjustOptionsForRightHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.wordWrapOverride1=this._options.diffWordWrap.get(),i.revealHorizontalRightPadding=y.qB.revealHorizontalRightPadding.defaultValue+pt.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}_adjustOptionsForSubEditor(e){const t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar={...t.scrollbar||{}},t.folding=!1,t.codeLens=this._options.diffCodeLens.get(),t.fixedOverflowWidgets=!0,t.minimap={...t.minimap||{}},t.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?t.stickyScroll={enabled:!1}:t.stickyScroll=this._options.editorOptions.get().stickyScroll,t}_updateAriaLabel(e){e||(e="");const t=(0,O.kg)("diff-aria-navigation-tip"," use {0} to open the accessibility help.",this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp")?.getAriaLabel());return this._options.accessibilityVerbose.get()?e+t:e?e.replaceAll(t,""):""}};kt=Tt([xt(5,M._Y),xt(6,Rt.b)],kt);class At extends a.jG{constructor(){super(...arguments),this._id=++At.idCounter,this._onDidDispose=this._register(new o.vl),this.onDidDispose=this._onDidDispose.event}static{this.idCounter=0}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition(e){return this._targetEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._targetEditor.getPosition()}setPosition(e,t="api"){this._targetEditor.setPosition(e,t)}revealLine(e,t=0){this._targetEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._targetEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._targetEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._targetEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._targetEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._targetEditor.revealPositionNearTop(e,t)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(e,t="api"){this._targetEditor.setSelection(e,t)}setSelections(e,t="api"){this._targetEditor.setSelections(e,t)}revealLines(e,t,i=0){this._targetEditor.revealLines(e,t,i)}revealLinesInCenter(e,t,i=0){this._targetEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._targetEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t,i=0){this._targetEditor.revealLinesNearTop(e,t,i)}revealRange(e,t=0,i=!1,s=!0){this._targetEditor.revealRange(e,t,i,s)}revealRangeInCenter(e,t=0){this._targetEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._targetEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._targetEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._targetEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(e,t,i){this._targetEditor.trigger(e,t,i)}createDecorationsCollection(e){return this._targetEditor.createDecorationsCollection(e)}changeDecorations(e){return this._targetEditor.changeDecorations(e)}}var Nt=i(13850),It=i(61059),Ot=i(253),Dt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Mt=function(e,t){return function(i,s){t(i,s,e)}};let Pt=class{get editorOptions(){return this._options}constructor(e,t){this._accessibilityService=t,this._diffEditorWidth=(0,l.FY)(this,0),this._screenReaderMode=(0,l.y0)(this,this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this.couldShowInlineViewBecauseOfSize=(0,l.un)(this,(e=>this._options.read(e).renderSideBySide&&this._diffEditorWidth.read(e)<=this._options.read(e).renderSideBySideInlineBreakpoint)),this.renderOverviewRuler=(0,l.un)(this,(e=>this._options.read(e).renderOverviewRuler)),this.renderSideBySide=(0,l.un)(this,(e=>(!this.compactMode.read(e)||!this.shouldRenderInlineViewInSmartMode.read(e))&&(this._options.read(e).renderSideBySide&&!(this._options.read(e).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(e)&&!this._screenReaderMode.read(e))))),this.readOnly=(0,l.un)(this,(e=>this._options.read(e).readOnly)),this.shouldRenderOldRevertArrows=(0,l.un)(this,(e=>!!this._options.read(e).renderMarginRevertIcon&&(!!this.renderSideBySide.read(e)&&(!this.readOnly.read(e)&&!this.shouldRenderGutterMenu.read(e))))),this.shouldRenderGutterMenu=(0,l.un)(this,(e=>this._options.read(e).renderGutterMenu)),this.renderIndicators=(0,l.un)(this,(e=>this._options.read(e).renderIndicators)),this.enableSplitViewResizing=(0,l.un)(this,(e=>this._options.read(e).enableSplitViewResizing)),this.splitViewDefaultRatio=(0,l.un)(this,(e=>this._options.read(e).splitViewDefaultRatio)),this.ignoreTrimWhitespace=(0,l.un)(this,(e=>this._options.read(e).ignoreTrimWhitespace)),this.maxComputationTimeMs=(0,l.un)(this,(e=>this._options.read(e).maxComputationTime)),this.showMoves=(0,l.un)(this,(e=>this._options.read(e).experimental.showMoves&&this.renderSideBySide.read(e))),this.isInEmbeddedEditor=(0,l.un)(this,(e=>this._options.read(e).isInEmbeddedEditor)),this.diffWordWrap=(0,l.un)(this,(e=>this._options.read(e).diffWordWrap)),this.originalEditable=(0,l.un)(this,(e=>this._options.read(e).originalEditable)),this.diffCodeLens=(0,l.un)(this,(e=>this._options.read(e).diffCodeLens)),this.accessibilityVerbose=(0,l.un)(this,(e=>this._options.read(e).accessibilityVerbose)),this.diffAlgorithm=(0,l.un)(this,(e=>this._options.read(e).diffAlgorithm)),this.showEmptyDecorations=(0,l.un)(this,(e=>this._options.read(e).experimental.showEmptyDecorations)),this.onlyShowAccessibleDiffViewer=(0,l.un)(this,(e=>this._options.read(e).onlyShowAccessibleDiffViewer)),this.compactMode=(0,l.un)(this,(e=>this._options.read(e).compactMode)),this.trueInlineDiffRenderingEnabled=(0,l.un)(this,(e=>this._options.read(e).experimental.useTrueInlineView)),this.useTrueInlineDiffRendering=(0,l.un)(this,(e=>!this.renderSideBySide.read(e)&&this.trueInlineDiffRenderingEnabled.read(e))),this.hideUnchangedRegions=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.enabled)),this.hideUnchangedRegionsRevealLineCount=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.revealLineCount)),this.hideUnchangedRegionsContextLineCount=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.contextLineCount)),this.hideUnchangedRegionsMinimumLineCount=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.minimumLineCount)),this._model=(0,l.FY)(this,void 0),this.shouldRenderInlineViewInSmartMode=this._model.map(this,(e=>(0,Nt.t)(this,(t=>{const i=e?.diff.read(t);return i?(s=i,n=this.trueInlineDiffRenderingEnabled.read(t),s.mappings.every((e=>0===e.lineRangeMapping.original.length||function(e){return 0===e.modified.length}(e.lineRangeMapping)||n&&De(e.lineRangeMapping)))):void 0;var s,n})))).flatten().map(this,(e=>!!e)),this.inlineViewHideOriginalLineNumbers=this.compactMode;const i={...e,...Ft(e,It.q)};this._options=(0,l.FY)(this,i)}updateOptions(e){const t=Ft(e,this._options.get()),i={...this._options.get(),...e,...t};this._options.set(i,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}setModel(e){this._model.set(e,void 0)}};function Ft(e,t){return{enableSplitViewResizing:(0,y.zM)(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:(0,y.ls)(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:(0,y.zM)(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:(0,y.zM)(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:(0,y.wA)(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:(0,y.wA)(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,y.zM)(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:(0,y.zM)(e.renderIndicators,t.renderIndicators),originalEditable:(0,y.zM)(e.originalEditable,t.originalEditable),diffCodeLens:(0,y.zM)(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:(0,y.zM)(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:(0,y.O4)(e.diffWordWrap,t.diffWordWrap,["off","on","inherit"]),diffAlgorithm:(0,y.O4)(e.diffAlgorithm,t.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:(0,y.zM)(e.accessibilityVerbose,t.accessibilityVerbose),experimental:{showMoves:(0,y.zM)(e.experimental?.showMoves,t.experimental.showMoves),showEmptyDecorations:(0,y.zM)(e.experimental?.showEmptyDecorations,t.experimental.showEmptyDecorations),useTrueInlineView:(0,y.zM)(e.experimental?.useTrueInlineView,t.experimental.useTrueInlineView)},hideUnchangedRegions:{enabled:(0,y.zM)(e.hideUnchangedRegions?.enabled??e.experimental?.collapseUnchangedRegions,t.hideUnchangedRegions.enabled),contextLineCount:(0,y.wA)(e.hideUnchangedRegions?.contextLineCount,t.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:(0,y.wA)(e.hideUnchangedRegions?.minimumLineCount,t.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:(0,y.wA)(e.hideUnchangedRegions?.revealLineCount,t.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:(0,y.zM)(e.isInEmbeddedEditor,t.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:(0,y.zM)(e.onlyShowAccessibleDiffViewer,t.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:(0,y.wA)(e.renderSideBySideInlineBreakpoint,t.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:(0,y.zM)(e.useInlineViewWhenSpaceIsLimited,t.useInlineViewWhenSpaceIsLimited),renderGutterMenu:(0,y.zM)(e.renderGutterMenu,t.renderGutterMenu),compactMode:(0,y.zM)(e.compactMode,t.compactMode)}}Pt=Dt([Mt(1,Ot.j)],Pt);var Ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ht=function(e,t){return function(i,s){t(i,s,e)}};let Bt=class extends At{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,t,i,n,h,d,g,p){super(),this._domElement=e,this._parentContextKeyService=n,this._parentInstantiationService=h,this._accessibilitySignalService=g,this._editorProgressService=p,this.elements=(0,s.h)("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[(0,s.h)("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),(0,s.h)("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),(0,s.h)("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModelSrc=this._register((0,l.X2)(this,void 0)),this._diffModel=(0,l.un)(this,(e=>this._diffModelSrc.read(e)?.object)),this.onDidChangeModel=o.Jh.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new yt.a([Xe.fN,this._contextKeyService]))),this._boundarySashes=(0,l.FY)(this,void 0),this._accessibleDiffViewerShouldBeVisible=(0,l.FY)(this,!1),this._accessibleDiffViewerVisible=(0,l.un)(this,(e=>!!this._options.onlyShowAccessibleDiffViewer.read(e)||this._accessibleDiffViewerShouldBeVisible.read(e))),this._movedBlocksLinesPart=(0,l.FY)(this,void 0),this._layoutInfo=(0,l.un)(this,(e=>{const t=this._rootSizeObserver.width.read(e),i=this._rootSizeObserver.height.read(e);this._rootSizeObserver.automaticLayout?this.elements.root.style.height="100%":this.elements.root.style.height=i+"px";const s=this._sash.read(e),n=this._gutter.read(e),r=n?.width.read(e)??0,o=this._overviewRulerPart.read(e)?.width??0;let a,l,c,h,d;if(!!s){const i=s.sashLeft.read(e);a=0,l=i-r-(this._movedBlocksLinesPart.read(e)?.width.read(e)??0),d=i-r,c=i,h=t-c-o}else{d=0;a=r,l=this._options.inlineViewHideOriginalLineNumbers.read(e)?0:Math.max(5,this._editors.originalObs.layoutInfoDecorationsLeft.read(e)),c=r+l,h=t-c-o}return this.elements.original.style.left=a+"px",this.elements.original.style.width=l+"px",this._editors.original.layout({width:l,height:i},!0),n?.layout(d),this.elements.modified.style.left=c+"px",this.elements.modified.style.width=h+"px",this._editors.modified.layout({width:h,height:i},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}})),this._diffValue=this._diffModel.map(((e,t)=>e?.diff.read(t))),this.onDidUpdateDiff=o.Jh.fromObservableLight(this._diffValue),d.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register((0,a.s)((()=>this.elements.root.remove()))),this._rootSizeObserver=this._register(new S.pN(this.elements.root,t.dimension)),this._rootSizeObserver.setAutomaticLayout(t.automaticLayout??!1),this._options=this._instantiationService.createInstance(Pt,t),this._register((0,l.fm)((e=>{this._options.setWidth(this._rootSizeObserver.width.read(e))}))),this._contextKeyService.createKey(St.R.isEmbeddedDiffEditor.key,!1),this._register((0,bt.w)(St.R.isEmbeddedDiffEditor,this._contextKeyService,(e=>this._options.isInEmbeddedEditor.read(e)))),this._register((0,bt.w)(St.R.comparingMovedCode,this._contextKeyService,(e=>!!this._diffModel.read(e)?.movedTextToCompare.read(e)))),this._register((0,bt.w)(St.R.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,(e=>this._options.couldShowInlineViewBecauseOfSize.read(e)))),this._register((0,bt.w)(St.R.diffEditorInlineMode,this._contextKeyService,(e=>!this._options.renderSideBySide.read(e)))),this._register((0,bt.w)(St.R.hasChanges,this._contextKeyService,(e=>(this._diffModel.read(e)?.diff.read(e)?.mappings.length??0)>0))),this._editors=this._register(this._instantiationService.createInstance(kt,this.elements.original,this.elements.modified,this._options,i,((e,t,i,s)=>this._createInnerEditor(e,t,i,s)))),this._register((0,bt.w)(St.R.diffEditorOriginalWritable,this._contextKeyService,(e=>this._options.originalEditable.read(e)))),this._register((0,bt.w)(St.R.diffEditorModifiedWritable,this._contextKeyService,(e=>!this._options.readOnly.read(e)))),this._register((0,bt.w)(St.R.diffEditorOriginalUri,this._contextKeyService,(e=>this._diffModel.read(e)?.model.original.uri.toString()??""))),this._register((0,bt.w)(St.R.diffEditorModifiedUri,this._contextKeyService,(e=>this._diffModel.read(e)?.model.modified.uri.toString()??""))),this._overviewRulerPart=(0,c.a0)(this,(e=>this._options.renderOverviewRuler.read(e)?this._instantiationService.createInstance((0,ne.b)(pt,e),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map((e=>e.modifiedEditor))):void 0)).recomputeInitiallyAndOnChange(this._store);const m={height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map(((e,t)=>e-(this._overviewRulerPart.read(t)?.width??0)))};this._sashLayout=new We(this._options,m),this._sash=(0,c.a0)(this,(e=>{const t=this._options.renderSideBySide.read(e);return this.elements.root.classList.toggle("side-by-side",t),t?new Ve(this.elements.root,m,this._options.enableSplitViewResizing,this._boundarySashes,this._sashLayout.sashLeft,(()=>this._sashLayout.resetSash())):void 0})).recomputeInitiallyAndOnChange(this._store);const f=(0,c.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(ot.N,e),this._editors,this._diffModel,this._options))).recomputeInitiallyAndOnChange(this._store);(0,c.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(He,e),this._editors,this._diffModel,this._options,this))).recomputeInitiallyAndOnChange(this._store);const _=new Set,v=new Set;let C=!1;const b=(0,c.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(Ne,e),(0,s.zk)(this._domElement),this._editors,this._diffModel,this._options,this,(()=>C||f.get().isUpdatingHiddenAreas),_,v))).recomputeInitiallyAndOnChange(this._store),E=(0,l.un)(this,(e=>{const t=b.read(e).viewZones.read(e).orig,i=f.read(e).viewZones.read(e).origViewZones;return t.concat(i)})),y=(0,l.un)(this,(e=>{const t=b.read(e).viewZones.read(e).mod,i=f.read(e).viewZones.read(e).modViewZones;return t.concat(i)}));let w;this._register((0,S.Vs)(this._editors.original,E,(e=>{C=e}),_)),this._register((0,S.Vs)(this._editors.modified,y,(e=>{C=e,C?w=u.D.capture(this._editors.modified):(w?.restore(this._editors.modified),w=void 0)}),v)),this._accessibleDiffViewer=(0,c.a0)(this,(e=>this._instantiationService.createInstance((0,ne.b)(V,e),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,((e,t)=>this._accessibleDiffViewerShouldBeVisible.set(e,t)),this._options.onlyShowAccessibleDiffViewer.map((e=>!e)),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map(((e,t)=>e?.diff.read(t)?.mappings.map((e=>e.lineRangeMapping)))),new Z(this._editors)))).recomputeInitiallyAndOnChange(this._store);const L=this._accessibleDiffViewerVisible.map((e=>e?"hidden":"visible"));this._register((0,S.AV)(this.elements.modified,{visibility:L})),this._register((0,S.AV)(this.elements.original,{visibility:L})),this._createDiffEditorContributions(),d.addDiffEditor(this),this._gutter=(0,c.a0)(this,(e=>this._options.shouldRenderGutterMenu.read(e)?this._instantiationService.createInstance((0,ne.b)(it,e),this.elements.root,this._diffModel,this._editors,this._options,this._sashLayout,this._boundarySashes):void 0)),this._register((0,l.OI)(this._layoutInfo)),(0,c.a0)(this,(e=>new((0,ne.b)(Pe,e))(this.elements.root,this._diffModel,this._layoutInfo.map((e=>e.originalEditor)),this._layoutInfo.map((e=>e.modifiedEditor)),this._editors))).recomputeInitiallyAndOnChange(this._store,(e=>{this._movedBlocksLinesPart.set(e,void 0)})),this._register(o.Jh.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!0)))),this._register(o.Jh.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!1))));const R=this._diffModel.map(this,((e,t)=>{if(e)return void 0===e.diff.read(t)&&!e.isDiffUpToDate.read(t)}));this._register((0,l.yC)(((e,t)=>{if(!0===R.read(e)){const e=this._editorProgressService.show(!0,1e3);t.add((0,a.s)((()=>e.done())))}}))),this._register((0,l.yC)(((e,t)=>{t.add(new((0,ne.b)(vt,e))(this._editors,this._diffModel,this._options,this))}))),this._register((0,l.yC)(((e,t)=>{const i=this._diffModel.read(e);if(i)for(const s of[i.model.original,i.model.modified])t.add(s.onWillDispose((e=>{(0,r.dz)(new r.D7("TextModel got disposed before DiffEditorWidget model got reset")),this.setModel(null)})))}))),this._register((0,l.fm)((e=>{this._options.setModel(this._diffModel.read(e))})))}_createInnerEditor(e,t,i,s){return e.createInstance(g.x,t,i,s)}_createDiffEditorContributions(){const e=h.dS.getDiffEditorContributions();for(const i of e)try{this._register(this._instantiationService.createInstance(i.ctor,this))}catch(t){(0,r.dz)(t)}}get _targetEditor(){return this._editors.modified}getEditorType(){return Et._.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){return{original:this._editors.original.saveViewState(),modified:this._editors.modified.saveViewState(),modelState:this._diffModel.get()?.serializeState()}}restoreViewState(e){if(e&&e.original&&e.modified){const t=e;this._editors.original.restoreViewState(t.original),this._editors.modified.restoreViewState(t.modified),t.modelState&&this._diffModel.get()?.restoreSerializedState(t.modelState)}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(ue,e,this._options)}getModel(){return this._diffModel.get()?.model??null}setModel(e){const t=e?"model"in e?S.O8.create(e).createNewRef(this):S.O8.create(this.createViewModel(e),this):null;this.setDiffModel(t)}setDiffModel(e,t){const i=this._diffModel.get();!e&&i&&this._accessibleDiffViewer.get().close(),this._diffModel.get()!==e?.object&&(0,l.PO)(t,(t=>{const i=e?.object;l.y0.batchEventsGlobally(t,(()=>{this._editors.original.setModel(i?i.model.original:null),this._editors.modified.setModel(i?i.model.modified:null)}));const s=this._diffModelSrc.get()?.createNewRef(this);this._diffModelSrc.set(e?.createNewRef(this),t),setTimeout((()=>{s?.dispose()}),0)}))}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){const e=this._diffModel.get()?.diff.get();return e?e.mappings.map((e=>{const t=e.lineRangeMapping;let i,s,n,r,o=t.innerChanges;return t.original.isEmpty?(i=t.original.startLineNumber-1,s=0,o=void 0):(i=t.original.startLineNumber,s=t.original.endLineNumberExclusive-1),t.modified.isEmpty?(n=t.modified.startLineNumber-1,r=0,o=void 0):(n=t.modified.startLineNumber,r=t.modified.endLineNumberExclusive-1),{originalStartLineNumber:i,originalEndLineNumber:s,modifiedStartLineNumber:n,modifiedEndLineNumber:r,charChanges:o?.map((e=>({originalStartLineNumber:e.originalRange.startLineNumber,originalStartColumn:e.originalRange.startColumn,originalEndLineNumber:e.originalRange.endLineNumber,originalEndColumn:e.originalRange.endColumn,modifiedStartLineNumber:e.modifiedRange.startLineNumber,modifiedStartColumn:e.modifiedRange.startColumn,modifiedEndLineNumber:e.modifiedRange.endLineNumber,modifiedEndColumn:e.modifiedRange.endColumn})))}})):null}revert(e){const t=this._diffModel.get();t&&t.isDiffUpToDate.get()&&this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:t.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){const t=this._diffModel.get();if(!t||!t.isDiffUpToDate.get())return;const i=e.map((e=>({range:e.modifiedRange,text:t.model.original.getValueInRange(e.originalRange)})));this._editors.modified.executeEdits("diffEditor",i)}_goTo(e){this._editors.modified.setPosition(new R.y(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){const t=this._diffModel.get()?.diff.get()?.mappings;if(!t||0===t.length)return;const i=this._editors.modified.getPosition().lineNumber;let s;s="next"===e?t.find((e=>e.lineRangeMapping.modified.startLineNumber>i))??t[0]:(0,n.Uk)(t,(e=>e.lineRangeMapping.modified.startLineNumber<i))??t[t.length-1],this._goTo(s),s.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"diffEditor.goToDiff"}):s.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"diffEditor.goToDiff"}):s&&this._accessibilitySignalService.playSignal(D.Rh.diffLineModified,{source:"diffEditor.goToDiff"})}revealFirstDiff(){const e=this._diffModel.get();e&&this.waitForDiff().then((()=>{const t=e.diff.get()?.mappings;t&&0!==t.length&&this._goTo(t[0])}))}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){const e=this._editors.modified.hasWidgetFocus(),t=e?this._editors.modified:this._editors.original,i=e?this._editors.original:this._editors.modified;let s;const n=t.getSelection();if(n){const t=this._diffModel.get()?.diff.get()?.mappings.map((t=>e?t.lineRangeMapping.flip():t.lineRangeMapping));if(t){const e=(0,S.Mu)(n.getStartPosition(),t),i=(0,S.Mu)(n.getEndPosition(),t);s=T.Q.plusRange(e,i)}}return{destination:i,destinationSelection:s}}switchSide(){const{destination:e,destinationSelection:t}=this.mapToOtherSide();e.focus(),t&&e.setSelection(t)}exitCompareMove(){const e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&(0,l.Rn)((t=>{for(const i of e)i.collapseAll(t)}))}showAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&(0,l.Rn)((t=>{for(const i of e)i.showAll(t)}))}_handleCursorPositionChange(e,t){if(3===e?.reason){const i=this._diffModel.get()?.diff.get()?.mappings.find((i=>t?i.lineRangeMapping.modified.contains(e.position.lineNumber):i.lineRangeMapping.original.contains(e.position.lineNumber)));i?.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):i?.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(D.Rh.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):i&&this._accessibilitySignalService.playSignal(D.Rh.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};Bt=Ut([Ht(3,Xe.fN),Ht(4,M._Y),Ht(5,d.T),Ht(6,D.Nt),Ht(7,wt.N8)],Bt)},94746:(e,t,i)=>{"use strict";i.d(t,{Hg:()=>p});var s,n=i(14718),r=i(63591),o=i(41234),a=i(78381),l=i(86571),c=i(87723),h=i(10920),d=i(90651),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=(0,r.u1)("diffProviderFactoryService");let m=class{constructor(e){this.instantiationService=e}createDiffProvider(e){return this.instantiationService.createInstance(f,e)}};m=u([g(0,r._Y)],m),(0,n.v)(p,m,1);let f=class{static{s=this}static{this.diffCache=new Map}constructor(e,t,i){this.editorWorkerService=t,this.telemetryService=i,this.onDidChangeEventEmitter=new o.vl,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(e)}dispose(){this.diffAlgorithmOnDidChangeSubscription?.dispose()}async computeDiff(e,t,i,n){if("string"!==typeof this.diffAlgorithm)return this.diffAlgorithm.computeDiff(e,t,i,n);if(e.isDisposed()||t.isDisposed())return{changes:[],identical:!0,quitEarly:!1,moves:[]};if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return 1===t.getLineCount()&&1===t.getLineMaxColumn(1)?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new c.wm(new l.M(1,2),new l.M(1,t.getLineCount()+1),[new c.q6(e.getFullModelRange(),t.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const r=JSON.stringify([e.uri.toString(),t.uri.toString()]),o=JSON.stringify([e.id,t.id,e.getAlternativeVersionId(),t.getAlternativeVersionId(),JSON.stringify(i)]),h=s.diffCache.get(r);if(h&&h.context===o)return h.result;const d=a.W.create(),u=await this.editorWorkerService.computeDiff(e.uri,t.uri,i,this.diffAlgorithm),g=d.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:g,timedOut:u?.quitEarly??!0,detectedMoves:i.computeMoves?u?.moves.length??0:-1}),n.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!u)throw new Error("no diff result available");return s.diffCache.size>10&&s.diffCache.delete(s.diffCache.keys().next().value),s.diffCache.set(r,{result:u,context:o}),u}setOptions(e){let t=!1;e.diffAlgorithm&&this.diffAlgorithm!==e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription?.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=e.diffAlgorithm,"string"!==typeof e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription=e.diffAlgorithm.onDidChange((()=>this.onDidChangeEventEmitter.fire()))),t=!0),t&&this.onDidChangeEventEmitter.fire()}};f=s=u([g(1,h.IEditorWorkerService),g(2,d.k)],f)},34309:(e,t,i)=>{"use strict";i.d(t,{N:()=>y});var s,n=i(8597),r=i(20370),o=i(10350),a=i(16980),l=i(5662),c=i(31308),h=i(87958),d=i(25689),u=i(631),g=i(38844),p=i(92368),m=i(86571),f=i(83069),_=i(36677),v=i(62083),C=i(78209),b=i(63591),E=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};let y=class extends l.jG{static{s=this}static{this._breadcrumbsSourceFactory=(0,c.FY)(s,(()=>({dispose(){},getBreadcrumbItems:(e,t)=>[]})))}static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._instantiationService=n,this._modifiedOutlineSource=(0,h.a0)(this,(e=>{const t=this._editors.modifiedModel.read(e),i=s._breadcrumbsSourceFactory.read(e);return t&&i?i(t,this._instantiationService):void 0})),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,c.Rn)((e=>{for(const i of this._editors.original.getSelections()||[])t?.ensureOriginalLineIsVisible(i.getStartPosition().lineNumber,0,e),t?.ensureOriginalLineIsVisible(i.getEndPosition().lineNumber,0,e)}))}))),this._register(this._editors.modified.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,c.Rn)((e=>{for(const i of this._editors.modified.getSelections()||[])t?.ensureModifiedLineIsVisible(i.getStartPosition().lineNumber,0,e),t?.ensureModifiedLineIsVisible(i.getEndPosition().lineNumber,0,e)}))})));const r=this._diffModel.map(((e,t)=>{const i=e?.unchangedRegions.read(t)??[];return 1===i.length&&1===i[0].modifiedLineNumber&&i[0].lineCount===this._editors.modifiedModel.read(t)?.getLineCount()?[]:i}));this.viewZones=(0,c.rm)(this,((e,t)=>{const i=this._modifiedOutlineSource.read(e);if(!i)return{origViewZones:[],modViewZones:[]};const s=[],n=[],o=this._options.renderSideBySide.read(e),a=this._options.compactMode.read(e),l=r.read(e);for(let r=0;r<l.length;r++){const h=l[r];if(!h.shouldHideControls(e)&&(!a||0!==r&&r!==l.length-1))if(a){{const e=(0,c.un)(this,(e=>h.getHiddenOriginalRange(e).startLineNumber-1)),i=new p.D1(e,12);s.push(i),t.add(new w(this._editors.original,i,h,!o))}{const e=(0,c.un)(this,(e=>h.getHiddenModifiedRange(e).startLineNumber-1)),i=new p.D1(e,12);n.push(i),t.add(new w(this._editors.modified,i,h))}}else{{const e=(0,c.un)(this,(e=>h.getHiddenOriginalRange(e).startLineNumber-1)),n=new p.D1(e,24);s.push(n),t.add(new L(this._editors.original,n,h,h.originalUnchangedRange,!o,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}{const e=(0,c.un)(this,(e=>h.getHiddenModifiedRange(e).startLineNumber-1)),s=new p.D1(e,24);n.push(s),t.add(new L(this._editors.modified,s,h,h.modifiedUnchangedRange,!1,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}}}return{origViewZones:s,modViewZones:n}}));const l={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},g={description:"Fold Unchanged",glyphMarginHoverMessage:new a.Bc(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown((0,C.kg)("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+d.L.asClassName(o.W.fold),zIndex:10001};this._register((0,p.pY)(this._editors.original,(0,c.un)(this,(e=>{const t=r.read(e),i=t.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:l})));for(const s of t)s.shouldHideControls(e)&&i.push({range:_.Q.fromPositions(new f.y(s.originalLineNumber,1)),options:g});return i})))),this._register((0,p.pY)(this._editors.modified,(0,c.un)(this,(e=>{const t=r.read(e),i=t.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:l})));for(const s of t)s.shouldHideControls(e)&&i.push({range:m.M.ofLength(s.modifiedLineNumber,1).toInclusiveRange(),options:g});return i})))),this._register((0,c.fm)((e=>{const t=r.read(e);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(t.map((t=>t.getHiddenOriginalRange(e).toInclusiveRange())).filter(u.O9)),this._editors.modified.setHiddenAreas(t.map((t=>t.getHiddenModifiedRange(e).toInclusiveRange())).filter(u.O9))}finally{this._isUpdatingHiddenAreas=!1}}))),this._register(this._editors.modified.onMouseUp((e=>{if(!e.event.rightButton&&e.target.position&&e.target.element?.className.includes("fold-unchanged")){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const s=i.unchangedRegions.get().find((e=>e.modifiedUnchangedRange.includes(t)));if(!s)return;s.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}}))),this._register(this._editors.original.onMouseUp((e=>{if(!e.event.rightButton&&e.target.position&&e.target.element?.className.includes("fold-unchanged")){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const s=i.unchangedRegions.get().find((e=>e.originalUnchangedRange.includes(t)));if(!s)return;s.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}})))}};y=s=E([S(3,b._Y)],y);class w extends p.uN{constructor(e,t,i,s=!1){const r=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,r.root),this._unchangedRegion=i,this._hide=s,this._nodes=(0,n.h)("div.diff-hidden-lines-compact",[(0,n.h)("div.line-left",[]),(0,n.h)("div.text@text",[]),(0,n.h)("div.line-right",[])]),r.root.appendChild(this._nodes.root),this._hide&&this._nodes.root.replaceChildren(),this._register((0,c.fm)((e=>{if(!this._hide){const t=this._unchangedRegion.getHiddenModifiedRange(e).length,i=(0,C.kg)("hiddenLines","{0} hidden lines",t);this._nodes.text.innerText=i}})))}}class L extends p.uN{constructor(e,t,i,s,a,l,h,d){const u=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,u.root),this._editor=e,this._unchangedRegion=i,this._unchangedRegionRange=s,this._hide=a,this._modifiedOutlineSource=l,this._revealModifiedHiddenLine=h,this._options=d,this._nodes=(0,n.h)("div.diff-hidden-lines",[(0,n.h)("div.top@top",{title:(0,C.kg)("diff.hiddenLines.top","Click or drag to show more above")}),(0,n.h)("div.center@content",{style:{display:"flex"}},[(0,n.h)("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[(0,n.$)("a",{title:(0,C.kg)("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...(0,r.n)("$(unfold)"))]),(0,n.h)("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),(0,n.h)("div.bottom@bottom",{title:(0,C.kg)("diff.bottom","Click or drag to show more below"),role:"button"})]),u.root.appendChild(this._nodes.root),this._hide?(0,n.Ln)(this._nodes.first):this._register((0,p.AV)(this._nodes.first,{width:(0,g.Ud)(this._editor).layoutInfoContentLeft})),this._register((0,c.fm)((e=>{const t=this._unchangedRegion.visibleLineCountTop.read(e)+this._unchangedRegion.visibleLineCountBottom.read(e)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!t),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),this._nodes.top.classList.toggle("canMoveBottom",!t);const i=this._unchangedRegion.isDragged.read(e),s=this._editor.getDomNode();s&&(s.classList.toggle("draggingUnchangedRegion",!!i),"top"===i?(s.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),s.classList.toggle("canMoveBottom",!t)):"bottom"===i?(s.classList.toggle("canMoveTop",!t),s.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0)):(s.classList.toggle("canMoveTop",!1),s.classList.toggle("canMoveBottom",!1)))})));const m=this._editor;this._register((0,n.ko)(this._nodes.top,"mousedown",(e=>{if(0!==e.button)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const s=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const r=(0,n.zk)(this._nodes.top),o=(0,n.ko)(r,"mousemove",(e=>{const n=e.clientY-t;i=i||Math.abs(n)>2;const r=Math.round(n/m.getOption(67)),o=Math.max(0,Math.min(s+r,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(o,void 0)})),a=(0,n.ko)(r,"mouseup",(e=>{i||this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0),this._nodes.top.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),this._unchangedRegion.isDragged.set(void 0,void 0),o.dispose(),a.dispose()}))}))),this._register((0,n.ko)(this._nodes.bottom,"mousedown",(e=>{if(0!==e.button)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const s=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const r=(0,n.zk)(this._nodes.bottom),o=(0,n.ko)(r,"mousemove",(e=>{const n=e.clientY-t;i=i||Math.abs(n)>2;const r=Math.round(n/m.getOption(67)),o=Math.max(0,Math.min(s-r,this._unchangedRegion.getMaxVisibleLineCountBottom())),a=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(o,void 0);const l=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(l-a))})),a=(0,n.ko)(r,"mouseup",(e=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!i){const e=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const t=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(t-e))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),o.dispose(),a.dispose()}))}))),this._register((0,c.fm)((e=>{const t=[];if(!this._hide){const s=i.getHiddenModifiedRange(e).length,a=(0,C.kg)("hiddenLines","{0} hidden lines",s),l=(0,n.$)("span",{title:(0,C.kg)("diff.hiddenLines.expandAll","Double click to unfold")},a);l.addEventListener("dblclick",(e=>{0===e.button&&(e.preventDefault(),this._unchangedRegion.showAll(void 0))})),t.push(l);const c=this._unchangedRegion.getHiddenModifiedRange(e),h=this._modifiedOutlineSource.getBreadcrumbItems(c,e);if(h.length>0){t.push((0,n.$)("span",void 0,"\xa0\xa0|\xa0\xa0"));for(let e=0;e<h.length;e++){const i=h[e],s=v.gP.toIcon(i.kind),a=(0,n.h)("div.breadcrumb-item",{style:{display:"flex",alignItems:"center"}},[(0,r.s)(s),"\xa0",i.name,...e===h.length-1?[]:[(0,r.s)(o.W.chevronRight)]]).root;t.push(a),a.onclick=()=>{this._revealModifiedHiddenLine(i.startLineNumber)}}}}(0,n.Ln)(this._nodes.others,...t)})))}}},10691:(e,t,i)=>{"use strict";i.d(t,{GM:()=>_,KL:()=>C,Kl:()=>d,Ob:()=>u,Ou:()=>f,XT:()=>p,Zb:()=>v,Zw:()=>g,bk:()=>m,dv:()=>h,wp:()=>b});var s=i(10350),n=i(25689),r=i(87289),o=i(78209),a=i(66261),l=i(61394);(0,a.x1A)("diffEditor.move.border","#8b8b8b9c",(0,o.kg)("diffEditor.move.border","The border color for text that got moved in the diff editor.")),(0,a.x1A)("diffEditor.moveActive.border","#FFA500",(0,o.kg)("diffEditor.moveActive.border","The active border color for text that got moved in the diff editor.")),(0,a.x1A)("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},(0,o.kg)("diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets."));const c=(0,l.pU)("diff-insert",s.W.add,(0,o.kg)("diffInsertIcon","Line decoration for inserts in the diff editor.")),h=(0,l.pU)("diff-remove",s.W.remove,(0,o.kg)("diffRemoveIcon","Line decoration for removals in the diff editor.")),d=r.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+n.L.asClassName(c),marginClassName:"gutter-insert"}),u=r.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+n.L.asClassName(h),marginClassName:"gutter-delete"}),g=r.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),p=r.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),m=r.kI.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),f=r.kI.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),_=r.kI.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),v=r.kI.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),C=r.kI.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),b=r.kI.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})},92368:(e,t,i)=>{"use strict";i.d(t,{$y:()=>p,AV:()=>b,Am:()=>d,D1:()=>v,EK:()=>w,MZ:()=>S,Mu:()=>y,Nu:()=>f,O8:()=>L,Vs:()=>E,pN:()=>m,pY:()=>u,rX:()=>g,uN:()=>_});var s=i(46041),n=i(18447),r=i(5662),o=i(31308),a=i(4983),l=i(83069),c=i(36677),h=i(50973);function d(e,t,i,s){if(0===e.length)return t;if(0===t.length)return e;const n=[];let r=0,o=0;for(;r<e.length&&o<t.length;){const a=e[r],l=t[o],c=i(a),h=i(l);c<h?(n.push(a),r++):c>h?(n.push(l),o++):(n.push(s(a,l)),r++,o++)}for(;r<e.length;)n.push(e[r]),r++;for(;o<t.length;)n.push(t[o]),o++;return n}function u(e,t){const i=new r.Cm,s=e.createDecorationsCollection();return i.add((0,o.zL)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);s.set(i)}))),i.add({dispose:()=>{s.clear()}}),i}function g(e,t){return e.appendChild(t),(0,r.s)((()=>{t.remove()}))}function p(e,t){return e.prepend(t),(0,r.s)((()=>{t.remove()}))}class m extends r.jG{get width(){return this._width}get height(){return this._height}get automaticLayout(){return this._automaticLayout}constructor(e,t){super(),this._automaticLayout=!1,this.elementSizeObserver=this._register(new a.u(e,t)),this._width=(0,o.FY)(this,this.elementSizeObserver.getWidth()),this._height=(0,o.FY)(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange((e=>(0,o.Rn)((e=>{this._width.set(this.elementSizeObserver.getWidth(),e),this._height.set(this.elementSizeObserver.getHeight(),e)})))))}observe(e){this.elementSizeObserver.observe(e)}setAutomaticLayout(e){this._automaticLayout=e,e?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}}function f(e,t,i){let s=t.get(),n=s,r=s;const a=(0,o.FY)("animatedValue",s);let l=-1;let c;function h(){const t=Date.now()-l;var i,o,d,u;r=Math.floor((o=n,d=s-n,(i=t)===(u=300)?o+d:d*(1-Math.pow(2,-10*i/u))+o)),t<300?c=e.requestAnimationFrame(h):r=s,a.set(r,void 0)}return i.add((0,o.Y)({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(e,i)=>(e.didChange(t)&&(i.animate=i.animate||e.change),!0)},((i,o)=>{void 0!==c&&(e.cancelAnimationFrame(c),c=void 0),n=r,s=t.read(i),l=Date.now()-(o.animate?0:300),h()}))),a}class _ extends r.jG{constructor(e,t,i){super(),this._register(new C(e,i)),this._register(b(i,{height:t.actualHeight,top:t.actualTop}))}}class v{get afterLineNumber(){return this._afterLineNumber.get()}constructor(e,t){this._afterLineNumber=e,this.heightInPx=t,this.domNode=document.createElement("div"),this._actualTop=(0,o.FY)(this,void 0),this._actualHeight=(0,o.FY)(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=e=>{this._actualTop.set(e,void 0)},this.onComputedHeight=e=>{this._actualHeight.set(e,void 0)}}}class C{static{this._counter=0}constructor(e,t){this._editor=e,this._domElement=t,this._overlayWidgetId="managedOverlayWidget-"+C._counter++,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}}function b(e,t){return(0,o.fm)((i=>{for(let[s,n]of Object.entries(t))n&&"object"===typeof n&&"read"in n&&(n=n.read(i)),"number"===typeof n&&(n=`${n}px`),s=s.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),e.style[s]=n}))}function E(e,t,i,s){const n=new r.Cm,a=[];return n.add((0,o.yC)(((n,r)=>{const l=t.read(n),c=new Map,h=new Map;i&&i(!0),e.changeViewZones((e=>{for(const t of a)e.removeZone(t),s?.delete(t);a.length=0;for(const t of l){const i=e.addZone(t);t.setZoneId&&t.setZoneId(i),a.push(i),s?.add(i),c.set(t,i)}})),i&&i(!1),r.add((0,o.Y)({createEmptyChangeSummary:()=>({zoneIds:[]}),handleChange(e,t){const i=h.get(e.changedObservable);return void 0!==i&&t.zoneIds.push(i),!0}},((t,s)=>{for(const e of l)e.onChange&&(h.set(e.onChange,c.get(e)),e.onChange.read(t));i&&i(!0),e.changeViewZones((e=>{for(const t of s.zoneIds)e.layoutZone(t)})),i&&i(!1)})))}))),n.add({dispose(){i&&i(!0),e.changeViewZones((e=>{for(const t of a)e.removeZone(t)})),s?.clear(),i&&i(!1)}}),n}class S extends n.Qi{dispose(){super.dispose(!0)}}function y(e,t){const i=(0,s.Uk)(t,(t=>t.original.startLineNumber<=e.lineNumber));if(!i)return c.Q.fromPositions(e);if(i.original.endLineNumberExclusive<=e.lineNumber){const t=e.lineNumber-i.original.endLineNumberExclusive+i.modified.endLineNumberExclusive;return c.Q.fromPositions(new l.y(t,e.column))}if(!i.innerChanges)return c.Q.fromPositions(new l.y(i.modified.startLineNumber,1));const n=(0,s.Uk)(i.innerChanges,(t=>t.originalRange.getStartPosition().isBeforeOrEqual(e)));if(!n){const t=e.lineNumber-i.original.startLineNumber+i.modified.startLineNumber;return c.Q.fromPositions(new l.y(t,e.column))}if(n.originalRange.containsPosition(e))return n.modifiedRange;{const t=(r=n.originalRange.getEndPosition(),o=e,r.lineNumber===o.lineNumber?new h.W(0,o.column-r.column):new h.W(o.lineNumber-r.lineNumber,o.column-1));return c.Q.fromPositions(t.addToPosition(n.modifiedRange.getEndPosition()))}var r,o}function w(e,t){let i;return e.filter((e=>{const s=t(e,i);return i=e,s}))}class L{static create(e,t=void 0){return new R(e,e,t)}static createWithDisposable(e,t,i=void 0){const s=new r.Cm;return s.add(t),s.add(e),new R(e,s,i)}}class R extends L{constructor(e,t,i){super(),this.object=e,this._disposable=t,this._debugOwner=i,this._refCount=1,this._isDisposed=!1,this._owners=[],i&&this._addOwner(i)}_addOwner(e){e&&this._owners.push(e)}createNewRef(e){return this._refCount++,e&&this._addOwner(e),new T(this,e)}dispose(){this._isDisposed||(this._isDisposed=!0,this._decreaseRefCount(this._debugOwner))}_decreaseRefCount(e){if(this._refCount--,0===this._refCount&&this._disposable.dispose(),e){const t=this._owners.indexOf(e);-1!==t&&this._owners.splice(t,1)}}}class T extends L{constructor(e,t){super(),this._base=e,this._debugOwner=t,this._isDisposed=!1}get object(){return this._base.object}createNewRef(e){return this._base.createNewRef(e)}dispose(){this._isDisposed||(this._isDisposed=!0,this._base._decreaseRefCount(this._debugOwner))}}},20492:(e,t,i)=>{"use strict";i.d(t,{T:()=>f,i:()=>_});var s,n=i(68214),r=i(80789),o=i(64383),a=i(41234),l=i(5662),c=i(73157),h=i(10154),d=i(83941),u=i(58314),g=i(49099),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class{static{s=this}static{this._ttpTokenizer=(0,r.H)("tokenizeToString",{createHTML:e=>e})}constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new a.vl,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e){return{element:document.createElement("span"),dispose:()=>{}}}const s=new l.Cm,r=s.add((0,n.Gc)(e,{...this._getRenderOptions(e,s),...t},i));return r.element.classList.add("rendered-markdown"),{element:r.element,dispose:()=>s.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:async(e,t)=>{let i;e?i=this._languageService.getLanguageIdByLanguageName(e):this._options.editor&&(i=this._options.editor.getModel()?.getLanguageId()),i||(i=d.vH);const n=await(0,u.Yj)(this._languageService,t,i),r=document.createElement("span");if(r.innerHTML=s._ttpTokenizer?.createHTML(n)??n,this._options.editor){const e=this._options.editor.getOption(50);(0,c.M)(r,e)}else this._options.codeBlockFontFamily&&(r.style.fontFamily=this._options.codeBlockFontFamily);return void 0!==this._options.codeBlockFontSize&&(r.style.fontSize=this._options.codeBlockFontSize),r},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:t=>_(this._openerService,t,e.isTrusted),disposables:t}}}};async function _(e,t,i){try{return await e.open(t,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:v(i)})}catch(s){return(0,o.dz)(s),!1}}function v(e){return!0===e||!(!e||!Array.isArray(e.enabledCommands))&&e.enabledCommands}f=s=p([m(1,h.L),m(2,g.C)],f)},25791:(e,t,i)=>{"use strict";i.d(t,{I:()=>n});var s=i(36921);class n extends s.LN{constructor(e){super(),this._getContext=e}runAction(e,t){const i=this._getContext();return super.runAction(e,i)}}},15092:(e,t,i)=>{"use strict";i.d(t,{iP:()=>a,iu:()=>n,q2:()=>o,tA:()=>r,ui:()=>l});var s=i(75326);class n{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getEndPosition())}}class r{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromRange(i,0)}}class o{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getStartPosition())}}class a{constructor(e,t,i,s,n=!1){this._range=e,this._text=t,this._columnDeltaOffset=s,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=n}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return s.L.fromPositions(i.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}class l{constructor(e,t,i,s=!1){this._range=e,this._text=t,this._initialSelection=i,this._forceMoveMarkers=s,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},7936:(e,t,i)=>{"use strict";i.d(t,{Y:()=>p});var s,n=i(91508),r=i(1245),o=i(36677),a=i(75326),l=i(63346),c=i(17469),h=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},d=function(e,t){return function(i,s){t(i,s,e)}};const u=Object.create(null);function g(e,t){if(t<=0)return"";u[e]||(u[e]=["",e]);const i=u[e];for(let s=i.length;s<=t;s++)i[s]=i[s-1]+e;return i[t]}let p=s=class{static unshiftIndent(e,t,i,s,n){const o=r.A.visibleColumnFromColumn(e,t,i);if(n){const e=g(" ",s);return g(e,r.A.prevIndentTabStop(o,s)/s)}return g("\t",r.A.prevRenderTabStop(o,i)/i)}static shiftIndent(e,t,i,s,n){const o=r.A.visibleColumnFromColumn(e,t,i);if(n){const e=g(" ",s);return g(e,r.A.nextIndentTabStop(o,s)/s)}return g("\t",r.A.nextRenderTabStop(o,i)/i)}constructor(e,t,i){this._languageConfigurationService=i,this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let a=this._selection.endLineNumber;1===this._selection.endColumn&&i!==a&&(a-=1);const{tabSize:c,indentSize:h,insertSpaces:d}=this._opts,u=i===a;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let g=0,p=0;for(let m=i;m<=a;m++,g=p){p=0;const a=e.getLineContent(m);let f,_=n.HG(a);if((!this._opts.isUnshift||0!==a.length&&0!==_)&&(u||this._opts.isUnshift||0!==a.length)){if(-1===_&&(_=a.length),m>1){if(r.A.visibleColumnFromColumn(a,_+1,c)%h!==0&&e.tokenization.isCheapToTokenize(m-1)){const t=(0,l.h)(this._opts.autoIndent,e,new o.Q(m-1,e.getLineMaxColumn(m-1),m-1,e.getLineMaxColumn(m-1)),this._languageConfigurationService);if(t){if(p=g,t.appendText)for(let e=0,i=t.appendText.length;e<i&&p<h&&32===t.appendText.charCodeAt(e);e++)p++;t.removeText&&(p=Math.max(0,p-t.removeText));for(let e=0;e<p&&(0!==_&&32===a.charCodeAt(_-1));e++)_--}}}this._opts.isUnshift&&0===_||(f=this._opts.isUnshift?s.unshiftIndent(a,_+1,c,h,d):s.shiftIndent(a,_+1,c,h,d),this._addEditOperation(t,new o.Q(m,1,m,_+1),f),m!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=_+1))}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&0===e.getLineLength(i)&&(this._useLastEditRangeForCursorEndPosition=!0);const s=d?g(" ",h):"\t";for(let r=i;r<=a;r++){const a=e.getLineContent(r);let l=n.HG(a);if((!this._opts.isUnshift||0!==a.length&&0!==l)&&((u||this._opts.isUnshift||0!==a.length)&&(-1===l&&(l=a.length),!this._opts.isUnshift||0!==l)))if(this._opts.isUnshift){l=Math.min(l,h);for(let e=0;e<l;e++){if(9===a.charCodeAt(e)){l=e+1;break}}this._addEditOperation(t,new o.Q(r,1,r,l+1),"")}else this._addEditOperation(t,new o.Q(r,1,r,1),s),r!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){if(this._useLastEditRangeForCursorEndPosition){const e=t.getInverseEditOperations()[0];return new a.L(e.range.endLineNumber,e.range.endColumn,e.range.endLineNumber,e.range.endColumn)}const i=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){const e=this._selection.startColumn;return i.startColumn<=e?i:0===i.getDirection()?new a.L(i.startLineNumber,e,i.endLineNumber,i.endColumn):new a.L(i.endLineNumber,i.endColumn,i.startLineNumber,e)}return i}};p=s=h([d(2,c.JZ)],p)},71964:(e,t,i)=>{"use strict";i.d(t,{i:()=>r,y:()=>o});var s=i(36677),n=i(75326);class r{constructor(e,t,i){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=i}getEditOperations(e,t){t.addTrackedEditOperation(new s.Q(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new s.Q(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){const i=t.getInverseEditOperations(),s=i[0].range,r=i[1].range;return new n.L(s.endLineNumber,s.endColumn,r.endLineNumber,r.endColumn-this._charAfterSelection.length)}}class o{constructor(e,t,i){this._position=e,this._text=t,this._charAfter=i}getEditOperations(e,t){t.addTrackedEditOperation(new s.Q(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return new n.L(i.endLineNumber,i.startColumn,i.endLineNumber,i.endColumn-this._charAfter.length)}}},61059:(e,t,i)=>{"use strict";i.d(t,{q:()=>s});const s={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0,useTrueInlineView:!1},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0,compactMode:!1}},94371:(e,t,i)=>{"use strict";i.d(t,{Gn:()=>m,JJ:()=>c,vf:()=>p});var s=i(61059),n=i(87908),r=i(24329),o=i(78209),a=i(1646),l=i(46359);const c=Object.freeze({id:"editor",order:5,type:"object",title:o.kg("editorConfigurationTitle","Editor"),scope:5}),h={...c,properties:{"editor.tabSize":{type:"number",default:r.R.tabSize,minimum:1,markdownDescription:o.kg("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:o.kg("indentSize",'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:r.R.insertSpaces,markdownDescription:o.kg("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:r.R.detectIndentation,markdownDescription:o.kg("detectIndentation","Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:r.R.trimAutoWhitespace,description:o.kg("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:r.R.largeFileOptimizations,description:o.kg("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[o.kg("wordBasedSuggestions.off","Turn off Word Based Suggestions."),o.kg("wordBasedSuggestions.currentDocument","Only suggest words from the active document."),o.kg("wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),o.kg("wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:o.kg("wordBasedSuggestions","Controls whether completions should be computed based on words in the document and from which documents they are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[o.kg("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),o.kg("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),o.kg("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:o.kg("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:o.kg("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:o.kg("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!0,description:o.kg("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:o.kg("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:o.kg("editor.experimental.asyncTokenizationVerification","Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.experimental.treeSitterTelemetry":{type:"boolean",default:!1,markdownDescription:o.kg("editor.experimental.treeSitterTelemetry","Controls whether tree sitter parsing should be turned on and telemetry collected. Setting `editor.experimental.preferTreeSitter` for specific languages will take precedence."),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:o.kg("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:o.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:o.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:o.kg("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:o.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:o.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:s.q.maxComputationTime,description:o.kg("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:s.q.maxFileSize,description:o.kg("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:s.q.renderSideBySide,description:o.kg("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:s.q.renderSideBySideInlineBreakpoint,description:o.kg("renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:s.q.useInlineViewWhenSpaceIsLimited,description:o.kg("useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:s.q.renderMarginRevertIcon,description:o.kg("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:s.q.renderGutterMenu,description:o.kg("renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:s.q.ignoreTrimWhitespace,description:o.kg("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:s.q.renderIndicators,description:o.kg("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:s.q.diffCodeLens,description:o.kg("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:s.q.diffWordWrap,markdownEnumDescriptions:[o.kg("wordWrap.off","Lines will never wrap."),o.kg("wordWrap.on","Lines will wrap at the viewport width."),o.kg("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:s.q.diffAlgorithm,markdownEnumDescriptions:[o.kg("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),o.kg("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:s.q.hideUnchangedRegions.enabled,markdownDescription:o.kg("hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:s.q.hideUnchangedRegions.revealLineCount,markdownDescription:o.kg("hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:s.q.hideUnchangedRegions.minimumLineCount,markdownDescription:o.kg("hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:s.q.hideUnchangedRegions.contextLineCount,markdownDescription:o.kg("hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:s.q.experimental.showMoves,markdownDescription:o.kg("showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:s.q.experimental.showEmptyDecorations,description:o.kg("showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")},"diffEditor.experimental.useTrueInlineView":{type:"boolean",default:s.q.experimental.useTrueInlineView,description:o.kg("useTrueInlineView","If enabled and the editor uses the inline view, word changes are rendered inline.")}}};for(const f of n.BE){const e=f.schema;if("undefined"!==typeof e)if("undefined"!==typeof(d=e).type||"undefined"!==typeof d.anyOf)h.properties[`editor.${f.name}`]=e;else for(const t in e)Object.hasOwnProperty.call(e,t)&&(h.properties[t]=e[t])}var d;let u=null;function g(){return null===u&&(u=Object.create(null),Object.keys(h.properties).forEach((e=>{u[e]=!0}))),u}function p(e){return g()[`editor.${e}`]||!1}function m(e){return g()[`diffEditor.${e}`]||!1}l.O.as(a.Fd.Configuration).registerConfiguration(h)},87908:(e,t,i)=>{"use strict";i.d(t,{$C:()=>O,BE:()=>H,Bc:()=>k,O4:()=>w,Of:()=>P,XR:()=>M,hZ:()=>g,jT:()=>x,jU:()=>U,ls:()=>E,lw:()=>h,m9:()=>T,n0:()=>d,qB:()=>W,r_:()=>A,wA:()=>C,xZ:()=>I,xq:()=>c,zM:()=>_});var s=i(25890),n=i(10146),r=i(98067),o=i(24329),a=i(26486),l=i(78209);const c=8;class h{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class d{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class u{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return p(e,t)}compute(e,t,i){return i}}class g{constructor(e,t){this.newValue=e,this.didChange=t}}function p(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return new g(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const i=Array.isArray(e)&&Array.isArray(t)&&s.aI(e,t);return new g(t,!i)}let i=!1;for(const s in t)if(t.hasOwnProperty(s)){const n=p(e[s],t[s]);n.didChange&&(e[s]=n.newValue,i=!0)}return new g(e,i)}class m{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return p(e,t)}validate(e){return this.defaultValue}}class f{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return p(e,t)}validate(e){return"undefined"===typeof e?this.defaultValue:e}compute(e,t,i){return i}}function _(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)}class v extends f{constructor(e,t,i,s=void 0){"undefined"!==typeof s&&(s.type="boolean",s.default=i),super(e,t,i,s)}validate(e){return _(e,this.defaultValue)}}function C(e,t,i,s){if("undefined"===typeof e)return t;let n=parseInt(e,10);return isNaN(n)?t:(n=Math.max(i,n),n=Math.min(s,n),0|n)}class b extends f{static clampedInt(e,t,i,s){return C(e,t,i,s)}constructor(e,t,i,s,n,r=void 0){"undefined"!==typeof r&&(r.type="integer",r.default=i,r.minimum=s,r.maximum=n),super(e,t,i,r),this.minimum=s,this.maximum=n}validate(e){return b.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function E(e,t,i,s){if("undefined"===typeof e)return t;const n=S.float(e,t);return S.clamp(n,i,s)}class S extends f{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,s,n){"undefined"!==typeof n&&(n.type="number",n.default=i),super(e,t,i,n),this.validationFn=s}validate(e){return this.validationFn(S.float(e,this.defaultValue))}}class y extends f{static string(e,t){return"string"!==typeof e?t:e}constructor(e,t,i,s=void 0){"undefined"!==typeof s&&(s.type="string",s.default=i),super(e,t,i,s)}validate(e){return y.string(e,this.defaultValue)}}function w(e,t,i,s){return"string"!==typeof e?t:s&&e in s?s[e]:-1===i.indexOf(e)?t:e}class L extends f{constructor(e,t,i,s,n=void 0){"undefined"!==typeof n&&(n.type="string",n.enum=s,n.default=i),super(e,t,i,n),this._allowedValues=s}validate(e){return w(e,this.defaultValue,this._allowedValues)}}class R extends u{constructor(e,t,i,s,n,r,o=void 0){"undefined"!==typeof o&&(o.type="string",o.enum=n,o.default=s),super(e,t,i,o),this._allowedValues=n,this._convert=r}validate(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var T,x;!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(T||(T={}));class k extends u{static{this.OFF='"liga" off, "calt" off'}static{this.ON='"liga" on, "calt" on'}constructor(){super(51,"fontLigatures",k.OFF,{anyOf:[{type:"boolean",description:l.kg("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:l.kg("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:l.kg("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e||0===e.length?k.OFF:"true"===e?k.ON:e:Boolean(e)?k.ON:k.OFF}}class A extends u{static{this.OFF="normal"}static{this.TRANSLATE="translate"}constructor(){super(54,"fontVariations",A.OFF,{anyOf:[{type:"boolean",description:l.kg("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:l.kg("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:l.kg("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?A.OFF:"true"===e?A.TRANSLATE:e:Boolean(e)?A.TRANSLATE:A.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}class N extends u{static{this.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"]}static{this.MINIMUM_VALUE=1}static{this.MAXIMUM_VALUE=1e3}constructor(){super(53,"fontWeight",U.fontWeight,{anyOf:[{type:"number",minimum:N.MINIMUM_VALUE,maximum:N.MAXIMUM_VALUE,errorMessage:l.kg("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:N.SUGGESTION_VALUES}],default:U.fontWeight,description:l.kg("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(b.clampedInt(e,U.fontWeight,N.MINIMUM_VALUE,N.MAXIMUM_VALUE))}}class I extends m{constructor(){super(146)}compute(e,t,i){return I.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let s=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(s=Math.max(s,t-1));const n=(i+e.viewLineCount+s)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:s,desiredRatio:n,minimapLineCount:Math.floor(e.viewLineCount/n)}}static _computeMinimapLayout(e,t){const i=e.outerWidth,s=e.outerHeight,n=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(n*s),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:s};const r=t.stableMinimapLayoutInput,o=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,a=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let u=n>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,_=e.viewLineCount,v=e.remainingWidth,C=e.isViewportWrapping,b=d?2:3;let E=Math.floor(n*s);const S=E/n;let y=!1,w=!1,L=b*u,R=u/n,T=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:i,extraLinesBeforeFirstLine:r,extraLinesBeyondLastLine:l,desiredRatio:c,minimapLineCount:d}=I.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:h,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:s,lineHeight:a,pixelRatio:n});if(_/d>1)y=!0,w=!0,u=1,L=1,R=u/n;else{let s=!1,h=u+1;if("fit"===p){const e=Math.ceil((r+_+l)*L);C&&o&&v<=t.stableFitRemainingWidth?(s=!0,h=t.stableFitMaxMinimapScale):s=e>E}if("fill"===p||s){y=!0;const s=u;L=Math.min(a*n,Math.max(1,Math.floor(1/c))),C&&o&&v<=t.stableFitRemainingWidth&&(h=t.stableFitMaxMinimapScale),u=Math.min(h,Math.max(1,Math.floor(L/b))),u>s&&(T=Math.min(2,u/s)),R=u/n/T,E=Math.ceil(Math.max(i,r+_+l)*L),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const x=Math.floor(g*R),k=Math.min(x,Math.max(0,Math.floor((v-f-2)*R/(l+R)))+c);let A=Math.floor(n*k);const N=A/n;A=Math.floor(A*T);return{renderMinimap:d?1:2,minimapLeft:"left"===m?0:i-k-f,minimapWidth:k,minimapHeightIsEditorHeight:y,minimapIsSampling:w,minimapScale:u,minimapLineHeight:L,minimapCanvasInnerWidth:A,minimapCanvasInnerHeight:E,minimapCanvasOuterWidth:N,minimapCanvasOuterHeight:S}}static computeLayout(e,t){const i=0|t.outerWidth,s=0|t.outerHeight,n=0|t.lineHeight,r=0|t.lineNumbersDigitCount,o=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,c=t.viewLineCount,h=e.get(138),u="inherit"===h?e.get(137):h,g="inherit"===u?e.get(133):u,p=e.get(136),m=t.isDominatedByLongLines,f=e.get(57),_=0!==e.get(68).renderType,v=e.get(69),C=e.get(106),b=e.get(84),E=e.get(73),S=e.get(104),y=S.verticalScrollbarSize,w=S.verticalHasArrows,L=S.arrowSize,R=S.horizontalScrollbarSize,T=e.get(43),x="never"!==e.get(111);let k=e.get(66);T&&x&&(k+=16);let A=0;if(_){const e=Math.max(r,v);A=Math.round(e*a)}let N=0;f&&(N=n*t.glyphMarginDecorationLaneCount);let O=0,D=O+N,M=D+A,P=M+k;const F=i-N-A-k;let U=!1,H=!1,B=-1;"inherit"===u&&m?(U=!0,H=!0):"on"===g||"bounded"===g?H=!0:"wordWrapColumn"===g&&(B=p);const W=I._computeMinimapLayout({outerWidth:i,outerHeight:s,lineHeight:n,typicalHalfwidthCharacterWidth:o,pixelRatio:l,scrollBeyondLastLine:C,paddingTop:b.top,paddingBottom:b.bottom,minimap:E,verticalScrollbarWidth:y,viewLineCount:c,remainingWidth:F,isViewportWrapping:H},t.memory||new d);0!==W.renderMinimap&&0===W.minimapLeft&&(O+=W.minimapWidth,D+=W.minimapWidth,M+=W.minimapWidth,P+=W.minimapWidth);const V=F-W.minimapWidth,z=Math.max(1,Math.floor((V-y-2)/o)),G=w?L:0;return H&&(B=Math.max(1,z),"bounded"===g&&(B=Math.min(B,p))),{width:i,height:s,glyphMarginLeft:O,glyphMarginWidth:N,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:D,lineNumbersWidth:A,decorationsLeft:M,decorationsWidth:k,contentLeft:P,contentWidth:V,minimap:W,viewportColumn:z,isWordWrapMinified:U,isViewportWrapping:H,wrappingColumn:B,verticalScrollbarWidth:y,horizontalScrollbarHeight:R,overviewRuler:{top:G,width:y,height:s-2*G,right:0}}}}!function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(x||(x={}));function O(e){const t=e.get(99);return"editable"===t?e.get(92):"on"!==t}function D(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}const M="inUntrustedWorkspace",P={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function F(e,t,i){const s=i.indexOf(e);return-1===s?t:i[s]}const U={fontFamily:r.zx?"Menlo, Monaco, 'Courier New', monospace":r.j9?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:r.zx?12:14,lineHeight:0,letterSpacing:0},H=[];function B(e){return H[e.id]=e,e}const W={acceptSuggestionOnCommitCharacter:B(new v(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:l.kg("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:B(new L(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",l.kg("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:l.kg("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:B(new class extends u{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[l.kg("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),l.kg("accessibilitySupport.on","Optimize for usage with a Screen Reader."),l.kg("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:l.kg("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:B(new b(3,"accessibilityPageSize",10,1,1073741824,{description:l.kg("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:B(new y(4,"ariaLabel",l.kg("editorViewAccessibleLabel","Editor content"))),ariaRequired:B(new v(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:B(new v(8,"screenReaderAnnounceInlineSuggestion",!0,{description:l.kg("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:B(new L(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.kg("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),l.kg("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:l.kg("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:B(new L(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.kg("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),l.kg("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:l.kg("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:B(new L(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",l.kg("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:l.kg("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:B(new L(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",l.kg("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:l.kg("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:B(new L(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.kg("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),l.kg("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:l.kg("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:B(new R(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[l.kg("editor.autoIndent.none","The editor will not insert indentation automatically."),l.kg("editor.autoIndent.keep","The editor will keep the current line's indentation."),l.kg("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),l.kg("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),l.kg("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:l.kg("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:B(new v(13,"automaticLayout",!1)),autoSurround:B(new L(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[l.kg("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),l.kg("editor.autoSurround.quotes","Surround with quotes but not brackets."),l.kg("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:l.kg("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:B(new class extends u{constructor(){const e={enabled:o.R.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:o.R.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.kg("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:l.kg("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:_(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}),bracketPairGuides:B(new class extends u{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[l.kg("editor.guides.bracketPairs.true","Enables bracket pair guides."),l.kg("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),l.kg("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:l.kg("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[l.kg("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),l.kg("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),l.kg("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:l.kg("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:l.kg("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:l.kg("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[l.kg("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),l.kg("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),l.kg("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:l.kg("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{bracketPairs:F(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:F(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:_(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:_(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:F(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}),stickyTabStops:B(new v(117,"stickyTabStops",!1,{description:l.kg("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:B(new v(17,"codeLens",!0,{description:l.kg("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:B(new y(18,"codeLensFontFamily","",{description:l.kg("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:B(new b(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:l.kg("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:B(new v(20,"colorDecorators",!0,{description:l.kg("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:B(new L(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[l.kg("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),l.kg("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),l.kg("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:l.kg("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:B(new b(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:l.kg("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:B(new v(22,"columnSelection",!1,{description:l.kg("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:B(new class extends u{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:l.kg("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:l.kg("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertSpace:_(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:_(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:B(new v(24,"contextmenu",!0)),copyWithSyntaxHighlighting:B(new v(25,"copyWithSyntaxHighlighting",!0,{description:l.kg("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:B(new R(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:l.kg("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:B(new L(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[l.kg("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),l.kg("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),l.kg("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:l.kg("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:B(new R(28,"cursorStyle",T.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return T.Line;case"block":return T.Block;case"underline":return T.Underline;case"line-thin":return T.LineThin;case"block-outline":return T.BlockOutline;case"underline-thin":return T.UnderlineThin}}),{description:l.kg("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:B(new b(29,"cursorSurroundingLines",0,0,1073741824,{description:l.kg("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:B(new L(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[l.kg("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),l.kg("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:l.kg("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:B(new b(31,"cursorWidth",0,0,1073741824,{markdownDescription:l.kg("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:B(new v(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:B(new v(33,"disableMonospaceOptimizations",!1)),domReadOnly:B(new v(34,"domReadOnly",!1)),dragAndDrop:B(new v(35,"dragAndDrop",!0,{description:l.kg("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:B(new class extends v{constructor(){super(37,"emptySelectionClipboard",!0,{description:l.kg("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),dropIntoEditor:B(new class extends u{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.kg("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:l.kg("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[l.kg("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),l.kg("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showDropSelector:w(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}),stickyScroll:B(new class extends u{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:l.kg("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:l.kg("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:l.kg("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:l.kg("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),maxLineCount:b.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:w(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:_(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}),experimentalWhitespaceRendering:B(new L(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[l.kg("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),l.kg("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),l.kg("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:l.kg("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:B(new y(39,"extraEditorClassName","")),fastScrollSensitivity:B(new S(40,"fastScrollSensitivity",5,(e=>e<=0?5:e),{markdownDescription:l.kg("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:B(new class extends u{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:l.kg("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[l.kg("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),l.kg("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),l.kg("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:l.kg("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[l.kg("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),l.kg("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),l.kg("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:l.kg("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:l.kg("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:r.zx},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:l.kg("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:l.kg("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:_(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"===typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":w(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":w(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:_(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:_(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:_(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:B(new v(42,"fixedOverflowWidgets",!1)),folding:B(new v(43,"folding",!0,{description:l.kg("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:B(new L(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[l.kg("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),l.kg("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:l.kg("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:B(new v(45,"foldingHighlight",!0,{description:l.kg("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:B(new v(46,"foldingImportsByDefault",!1,{description:l.kg("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:B(new b(47,"foldingMaximumRegions",5e3,10,65e3,{description:l.kg("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:B(new v(48,"unfoldOnClickAfterEndOfLine",!1,{description:l.kg("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:B(new y(49,"fontFamily",U.fontFamily,{description:l.kg("fontFamily","Controls the font family.")})),fontInfo:B(new class extends m{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:B(new k),fontSize:B(new class extends f{constructor(){super(52,"fontSize",U.fontSize,{type:"number",minimum:6,maximum:100,default:U.fontSize,description:l.kg("fontSize","Controls the font size in pixels.")})}validate(e){const t=S.float(e,this.defaultValue);return 0===t?U.fontSize:S.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:B(new N),fontVariations:B(new A),formatOnPaste:B(new v(55,"formatOnPaste",!1,{description:l.kg("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:B(new v(56,"formatOnType",!1,{description:l.kg("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:B(new v(57,"glyphMargin",!0,{description:l.kg("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:B(new class extends u{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[l.kg("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),l.kg("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),l.kg("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:l.kg("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:l.kg("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:l.kg("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:l.kg("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:l.kg("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:l.kg("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:l.kg("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:l.kg("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:l.kg("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:l.kg("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:l.kg("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{multiple:w(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??w(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??w(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??w(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??w(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??w(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??w(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:y.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:y.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:y.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:y.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:y.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:y.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}),hideCursorInOverviewRuler:B(new v(59,"hideCursorInOverviewRuler",!1,{description:l.kg("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:B(new class extends u{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:l.kg("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:l.kg("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:l.kg("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:l.kg("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:l.kg("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),delay:b.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:_(t.sticky,this.defaultValue.sticky),hidingDelay:b.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:_(t.above,this.defaultValue.above)}}}),inDiffEditor:B(new v(61,"inDiffEditor",!1)),letterSpacing:B(new S(64,"letterSpacing",U.letterSpacing,(e=>S.clamp(e,-5,20)),{description:l.kg("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:B(new class extends u{constructor(){const e={enabled:x.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[x.Off,x.OnCode,x.On],default:e.enabled,enumDescriptions:[l.kg("editor.lightbulb.enabled.off","Disable the code action menu."),l.kg("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),l.kg("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:l.kg("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;return{enabled:w(e.enabled,this.defaultValue.enabled,[x.Off,x.OnCode,x.On])}}}),lineDecorationsWidth:B(new class extends u{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){if("string"===typeof e&&/^\d+(\.\d+)?ch$/.test(e)){return-parseFloat(e.substring(0,e.length-2))}return b.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?b.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}),lineHeight:B(new class extends S{constructor(){super(67,"lineHeight",U.lineHeight,(e=>S.clamp(e,0,150)),{markdownDescription:l.kg("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:B(new class extends u{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[l.kg("lineNumbers.off","Line numbers are not rendered."),l.kg("lineNumbers.on","Line numbers are rendered as absolute number."),l.kg("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),l.kg("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:l.kg("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:B(new b(69,"lineNumbersMinChars",5,1,300)),linkedEditing:B(new v(70,"linkedEditing",!1,{description:l.kg("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:B(new v(71,"links",!0,{description:l.kg("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:B(new L(72,"matchBrackets","always",["always","near","never"],{description:l.kg("matchBrackets","Highlight matching brackets.")})),minimap:B(new class extends u{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:l.kg("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:l.kg("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[l.kg("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),l.kg("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),l.kg("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:l.kg("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:l.kg("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:l.kg("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:l.kg("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:l.kg("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:l.kg("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:l.kg("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:l.kg("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:l.kg("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:l.kg("minimap.sectionHeaderLetterSpacing","Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),autohide:_(t.autohide,this.defaultValue.autohide),size:w(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:w(t.side,this.defaultValue.side,["right","left"]),showSlider:w(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:_(t.renderCharacters,this.defaultValue.renderCharacters),scale:b.clampedInt(t.scale,1,1,3),maxColumn:b.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:_(t.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:_(t.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:S.clamp(t.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:S.clamp(t.sectionHeaderLetterSpacing??this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}),mouseStyle:B(new L(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:B(new S(75,"mouseWheelScrollSensitivity",1,(e=>0===e?1:e),{markdownDescription:l.kg("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:B(new v(76,"mouseWheelZoom",!1,{markdownDescription:r.zx?l.kg("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):l.kg("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:B(new v(77,"multiCursorMergeOverlapping",!0,{description:l.kg("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:B(new R(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?r.zx?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[l.kg("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),l.kg("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:l.kg({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:B(new L(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[l.kg("multiCursorPaste.spread","Each cursor pastes a single line of the text."),l.kg("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:l.kg("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:B(new b(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:l.kg("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:B(new L(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[l.kg("occurrencesHighlight.off","Does not highlight occurrences."),l.kg("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),l.kg("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:l.kg("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:B(new v(82,"overviewRulerBorder",!0,{description:l.kg("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:B(new b(83,"overviewRulerLanes",3,0,3)),padding:B(new class extends u{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:l.kg("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:l.kg("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{top:b.clampedInt(t.top,0,0,1e3),bottom:b.clampedInt(t.bottom,0,0,1e3)}}}),pasteAs:B(new class extends u{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.kg("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:l.kg("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[l.kg("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),l.kg("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showPasteSelector:w(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}),parameterHints:B(new class extends u{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:l.kg("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:l.kg("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),cycle:_(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:B(new L(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[l.kg("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),l.kg("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:l.kg("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:B(new class extends u{constructor(){super(88,"placeholder",void 0)}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?e:this.defaultValue}}),definitionLinkOpensInPeek:B(new v(89,"definitionLinkOpensInPeek",!1,{description:l.kg("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:B(new class extends u{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[l.kg("on","Quick suggestions show inside the suggest widget"),l.kg("inline","Quick suggestions show as ghost text"),l.kg("off","Quick suggestions are disabled")]}];super(90,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:l.kg("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:l.kg("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:l.kg("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:l.kg("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`")}),this.defaultValue=e}validate(e){if("boolean"===typeof e){const t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!==typeof e)return this.defaultValue;const{other:t,comments:i,strings:s}=e,n=["on","inline","off"];let r,o,a;return r="boolean"===typeof t?t?"on":"off":w(t,this.defaultValue.other,n),o="boolean"===typeof i?i?"on":"off":w(i,this.defaultValue.comments,n),a="boolean"===typeof s?s?"on":"off":w(s,this.defaultValue.strings,n),{other:r,comments:o,strings:a}}}),quickSuggestionsDelay:B(new b(91,"quickSuggestionsDelay",10,0,1073741824,{description:l.kg("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:B(new v(92,"readOnly",!1)),readOnlyMessage:B(new class extends u{constructor(){super(93,"readOnlyMessage",undefined)}validate(e){return e&&"object"===typeof e?e:this.defaultValue}}),renameOnType:B(new v(94,"renameOnType",!1,{description:l.kg("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:l.kg("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:B(new v(95,"renderControlCharacters",!0,{description:l.kg("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:B(new L(96,"renderFinalNewline",r.j9?"dimmed":"on",["off","on","dimmed"],{description:l.kg("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:B(new L(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",l.kg("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:l.kg("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:B(new v(98,"renderLineHighlightOnlyWhenFocus",!1,{description:l.kg("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:B(new L(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:B(new L(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",l.kg("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),l.kg("renderWhitespace.selection","Render whitespace characters only on selected text."),l.kg("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:l.kg("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:B(new b(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:B(new v(102,"roundedSelection",!0,{description:l.kg("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:B(new class extends u{constructor(){const e=[],t={type:"number",description:l.kg("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:l.kg("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:l.kg("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if("number"===typeof i)t.push({column:b.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"===typeof i){const e=i;t.push({column:b.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort(((e,t)=>e.column-t.column)),t}return this.defaultValue}}),scrollbar:B(new class extends u{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(104,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[l.kg("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),l.kg("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),l.kg("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:l.kg("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[l.kg("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),l.kg("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),l.kg("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:l.kg("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:l.kg("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:l.kg("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:l.kg("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:l.kg("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e,i=b.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),s=b.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:b.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:D(t.vertical,this.defaultValue.vertical),horizontal:D(t.horizontal,this.defaultValue.horizontal),useShadows:_(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:_(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:_(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:_(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:_(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:b.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:s,verticalSliderSize:b.clampedInt(t.verticalSliderSize,s,0,1e3),scrollByPage:_(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:_(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}),scrollBeyondLastColumn:B(new b(105,"scrollBeyondLastColumn",4,0,1073741824,{description:l.kg("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:B(new v(106,"scrollBeyondLastLine",!0,{description:l.kg("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:B(new v(107,"scrollPredominantAxis",!0,{description:l.kg("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:B(new v(108,"selectionClipboard",!0,{description:l.kg("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:r.j9})),selectionHighlight:B(new v(109,"selectionHighlight",!0,{description:l.kg("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:B(new v(110,"selectOnLineNumbers",!0)),showFoldingControls:B(new L(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[l.kg("showFoldingControls.always","Always show the folding controls."),l.kg("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),l.kg("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:l.kg("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:B(new v(112,"showUnused",!0,{description:l.kg("showUnused","Controls fading out of unused code.")})),showDeprecated:B(new v(141,"showDeprecated",!0,{description:l.kg("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:B(new class extends u{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:l.kg("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[l.kg("editor.inlayHints.on","Inlay hints are enabled"),l.kg("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",r.zx?"Ctrl+Option":"Ctrl+Alt"),l.kg("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",r.zx?"Ctrl+Option":"Ctrl+Alt"),l.kg("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:l.kg("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:l.kg("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:l.kg("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return"boolean"===typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:w(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:b.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily),padding:_(t.padding,this.defaultValue.padding)}}}),snippetSuggestions:B(new L(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[l.kg("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),l.kg("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),l.kg("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),l.kg("snippetSuggestions.none","Do not show snippet suggestions.")],description:l.kg("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:B(new class extends u{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:l.kg("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:l.kg("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"===typeof e?{selectLeadingAndTrailingWhitespace:_(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:_(e.selectSubwords,this.defaultValue.selectSubwords)}:this.defaultValue}}),smoothScrolling:B(new v(115,"smoothScrolling",!1,{description:l.kg("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:B(new b(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:B(new class extends u{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(119,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[l.kg("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),l.kg("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:l.kg("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:l.kg("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:l.kg("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:l.kg("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[l.kg("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),l.kg("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),l.kg("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),l.kg("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:l.kg("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:l.kg("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:l.kg("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:l.kg("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:l.kg("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:l.kg("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:l.kg("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:l.kg("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:l.kg("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertMode:w(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:_(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:_(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:_(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:_(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:w(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:_(t.showIcons,this.defaultValue.showIcons),showStatusBar:_(t.showStatusBar,this.defaultValue.showStatusBar),preview:_(t.preview,this.defaultValue.preview),previewMode:w(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:_(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:_(t.showMethods,this.defaultValue.showMethods),showFunctions:_(t.showFunctions,this.defaultValue.showFunctions),showConstructors:_(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:_(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:_(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:_(t.showFields,this.defaultValue.showFields),showVariables:_(t.showVariables,this.defaultValue.showVariables),showClasses:_(t.showClasses,this.defaultValue.showClasses),showStructs:_(t.showStructs,this.defaultValue.showStructs),showInterfaces:_(t.showInterfaces,this.defaultValue.showInterfaces),showModules:_(t.showModules,this.defaultValue.showModules),showProperties:_(t.showProperties,this.defaultValue.showProperties),showEvents:_(t.showEvents,this.defaultValue.showEvents),showOperators:_(t.showOperators,this.defaultValue.showOperators),showUnits:_(t.showUnits,this.defaultValue.showUnits),showValues:_(t.showValues,this.defaultValue.showValues),showConstants:_(t.showConstants,this.defaultValue.showConstants),showEnums:_(t.showEnums,this.defaultValue.showEnums),showEnumMembers:_(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:_(t.showKeywords,this.defaultValue.showKeywords),showWords:_(t.showWords,this.defaultValue.showWords),showColors:_(t.showColors,this.defaultValue.showColors),showFiles:_(t.showFiles,this.defaultValue.showFiles),showReferences:_(t.showReferences,this.defaultValue.showReferences),showFolders:_(t.showFolders,this.defaultValue.showFolders),showTypeParameters:_(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:_(t.showSnippets,this.defaultValue.showSnippets),showUsers:_(t.showUsers,this.defaultValue.showUsers),showIssues:_(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:B(new class extends u{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:l.kg("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[l.kg("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),l.kg("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),l.kg("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:l.kg("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:l.kg("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:l.kg("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),mode:w(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:w(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:_(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily)}}}),inlineEdit:B(new class extends u{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:l.kg("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[l.kg("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),l.kg("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),l.kg("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:l.kg("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:l.kg("inlineEdit.fontFamily","Controls the font family of the inline edit.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showToolbar:w(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:y.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur)}}}),inlineCompletionsAccessibilityVerbose:B(new v(150,"inlineCompletionsAccessibilityVerbose",!1,{description:l.kg("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:B(new b(120,"suggestFontSize",0,0,1e3,{markdownDescription:l.kg("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:B(new b(121,"suggestLineHeight",0,0,1e3,{markdownDescription:l.kg("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:B(new v(122,"suggestOnTriggerCharacters",!0,{description:l.kg("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:B(new L(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[l.kg("suggestSelection.first","Always select the first suggestion."),l.kg("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),l.kg("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:l.kg("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:B(new L(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[l.kg("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),l.kg("tabCompletion.off","Disable tab completions."),l.kg("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:l.kg("tabCompletion","Enables tab completions.")})),tabIndex:B(new b(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:B(new class extends u{constructor(){const e={nonBasicASCII:M,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:M,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",e,{[P.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.nonBasicASCII,description:l.kg("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[P.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:l.kg("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[P.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:l.kg("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[P.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.includeComments,description:l.kg("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[P.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,M],default:e.includeStrings,description:l.kg("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[P.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:l.kg("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[P.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:l.kg("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(n.aI(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(n.aI(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const s=super.applyUpdate(e,t);return i?new g(s.newValue,!0):s}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{nonBasicASCII:F(t.nonBasicASCII,M,[!0,!1,M]),invisibleCharacters:_(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:_(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:F(t.includeComments,M,[!0,!1,M]),includeStrings:F(t.includeStrings,M,[!0,!1,M]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if("object"!==typeof e||!e)return t;const i={};for(const[s,n]of Object.entries(e))!0===n&&(i[s]=!0);return i}}),unusualLineTerminators:B(new L(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[l.kg("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),l.kg("unusualLineTerminators.off","Unusual line terminators are ignored."),l.kg("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:l.kg("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:B(new v(128,"useShadowDOM",!0)),useTabStops:B(new v(129,"useTabStops",!0,{description:l.kg("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:B(new L(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[l.kg("wordBreak.normal","Use the default line break rule."),l.kg("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:l.kg("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:B(new class extends u{constructor(){super(131,"wordSegmenterLocales",[],{anyOf:[{description:l.kg("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:l.kg("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if("string"===typeof e&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if("string"===typeof i)try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch{}return t}return this.defaultValue}}),wordSeparators:B(new y(132,"wordSeparators",a.J3,{description:l.kg("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:B(new L(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[l.kg("wordWrap.off","Lines will never wrap."),l.kg("wordWrap.on","Lines will wrap at the viewport width."),l.kg({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),l.kg({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:l.kg({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:B(new y(134,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63")),wordWrapBreakBeforeCharacters:B(new y(135,"wordWrapBreakBeforeCharacters","([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b")),wordWrapColumn:B(new b(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:l.kg({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:B(new L(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:B(new L(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:B(new class extends m{constructor(){super(143)}compute(e,t,i){const s=["monaco-editor"];return t.get(39)&&s.push(t.get(39)),e.extraEditorClassName&&s.push(e.extraEditorClassName),"default"===t.get(74)?s.push("mouse-default"):"copy"===t.get(74)&&s.push("mouse-copy"),t.get(112)&&s.push("showUnused"),t.get(141)&&s.push("showDeprecated"),s.join(" ")}}),defaultColorDecorators:B(new v(148,"defaultColorDecorators",!1,{markdownDescription:l.kg("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:B(new class extends m{constructor(){super(144)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:B(new v(145,"tabFocusMode",!1,{markdownDescription:l.kg("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:B(new I),wrappingInfo:B(new class extends m{constructor(){super(147)}compute(e,t,i){const s=t.get(146);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn}}}),wrappingIndent:B(new class extends u{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[l.kg("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),l.kg("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),l.kg("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),l.kg("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:l.kg("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return 2===t.get(2)?0:i}}),wrappingStrategy:B(new class extends u{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[l.kg("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),l.kg("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:l.kg("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return w(e,"simple",["simple","advanced"])}compute(e,t,i){return 2===t.get(2)?"advanced":i}})}},79027:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});var s=i(41234);const n=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new s.vl,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},74196:(e,t,i)=>{"use strict";i.d(t,{YJ:()=>l,_8:()=>a});var s=i(98067),n=i(87908),r=i(79027);const o=s.zx?1.5:1.35;class a{static createFromValidatedSettings(e,t,i){const s=e.get(49),n=e.get(53),r=e.get(52),o=e.get(51),l=e.get(54),c=e.get(67),h=e.get(64);return a._create(s,n,r,o,l,c,h,t,i)}static _create(e,t,i,s,l,c,h,d,u){0===c?c=o*i:c<8&&(c*=i),(c=Math.round(c))<8&&(c=8);const g=1+(u?0:.1*r.D.getZoomLevel());if(i*=g,c*=g,l===n.r_.TRANSLATE)if("normal"===t||"bold"===t)l=n.r_.OFF;else{l=`'wght' ${parseInt(t,10)}`,t="normal"}return new a({pixelRatio:d,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:s,fontVariationSettings:l,lineHeight:c,letterSpacing:h})}constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.fontVariationSettings=e.fontVariationSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const e=n.jU.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class l extends a{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=2,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.fontVariationSettings===e.fontVariationSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},60534:(e,t,i)=>{"use strict";i.d(t,{V:()=>n,y:()=>r});var s=i(85152);class n{constructor(e){const t=(0,s.W)(e);this._defaultValue=t,this._asciiMap=n._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const i=(0,s.W)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class r{constructor(){this._actual=new n(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}clear(){return this._actual.clear()}}},1245:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(91508);class n{static _nextVisibleColumn(e,t,i){return 9===e?n.nextRenderTabStop(t,i):s.ne(e)||s.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,i){const n=Math.min(t-1,e.length),r=e.substring(0,n),o=new s.km(r);let a=0;for(;!o.eol();){const e=s.Z5(r,n,o.offset);o.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,i)}return a}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;const n=e.length,r=new s.km(e);let o=0,a=1;for(;!r.eol();){const l=s.Z5(e,n,r.offset);r.nextGraphemeLength();const c=this._nextVisibleColumn(l,o,i),h=r.offset+1;if(c>=t){return c-t<t-o?h:a}o=c,a=h}return n+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}},7085:(e,t,i)=>{"use strict";i.d(t,{k:()=>n});var s=i(36677);class n{static insert(e,t){return{range:new s.Q(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}},87119:(e,t,i)=>{"use strict";i.d(t,{A3:()=>x,AQ:()=>W,Am:()=>R,As:()=>A,BD:()=>J,Bo:()=>X,CM:()=>w,D0:()=>c,Ek:()=>P,H0:()=>L,I2:()=>Q,IW:()=>ee,If:()=>Z,JB:()=>I,L0:()=>p,Mf:()=>l,P1:()=>re,Pe:()=>se,Qt:()=>f,WD:()=>ne,WS:()=>ie,WY:()=>oe,Xr:()=>D,aZ:()=>B,bB:()=>te,hz:()=>E,je:()=>u,kG:()=>a,kM:()=>h,l5:()=>j,lQ:()=>z,n4:()=>$,ob:()=>b,ow:()=>S,s7:()=>q,sC:()=>d,sH:()=>K,sN:()=>V,ss:()=>G,tK:()=>T,tp:()=>k,vP:()=>y,vV:()=>C,vp:()=>U,w4:()=>m,we:()=>g,x9:()=>O,yI:()=>H,yw:()=>M,zp:()=>Y});var s=i(78209),n=i(47661),r=i(66261),o=i(47612);const a=(0,r.x1A)("editor.lineHighlightBackground",null,s.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=(0,r.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:r.b1q},s.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),c=((0,r.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},s.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:r.buw,hcLight:r.buw},s.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,r.x1A)("editor.symbolHighlightBackground",{dark:r.Ubg,light:r.Ubg,hcDark:null,hcLight:null},s.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:r.buw,hcLight:r.buw},s.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,r.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:n.Q1.black,hcDark:n.Q1.white,hcLight:"#0F4A85"},s.kg("caret","Color of the editor cursor."))),h=(0,r.x1A)("editorCursor.background",null,s.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),d=(0,r.x1A)("editorMultiCursor.primary.foreground",c,s.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),u=(0,r.x1A)("editorMultiCursor.primary.background",h,s.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),g=(0,r.x1A)("editorMultiCursor.secondary.foreground",c,s.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),p=(0,r.x1A)("editorMultiCursor.secondary.background",h,s.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,r.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},s.kg("editorWhitespaces","Color of whitespace characters in the editor.")),f=(0,r.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:n.Q1.white,hcLight:"#292929"},s.kg("editorLineNumbers","Color of editor line numbers.")),_=(0,r.x1A)("editorIndentGuide.background",m,s.kg("editorIndentGuides","Color of the editor indentation guides."),!1,s.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),v=(0,r.x1A)("editorIndentGuide.activeBackground",m,s.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,s.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),C=(0,r.x1A)("editorIndentGuide.background1",_,s.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),b=(0,r.x1A)("editorIndentGuide.background2","#00000000",s.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),E=(0,r.x1A)("editorIndentGuide.background3","#00000000",s.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),S=(0,r.x1A)("editorIndentGuide.background4","#00000000",s.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),y=(0,r.x1A)("editorIndentGuide.background5","#00000000",s.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),w=(0,r.x1A)("editorIndentGuide.background6","#00000000",s.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),L=(0,r.x1A)("editorIndentGuide.activeBackground1",v,s.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),R=(0,r.x1A)("editorIndentGuide.activeBackground2","#00000000",s.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),T=(0,r.x1A)("editorIndentGuide.activeBackground3","#00000000",s.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),x=(0,r.x1A)("editorIndentGuide.activeBackground4","#00000000",s.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),k=(0,r.x1A)("editorIndentGuide.activeBackground5","#00000000",s.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),A=(0,r.x1A)("editorIndentGuide.activeBackground6","#00000000",s.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),N=(0,r.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:r.buw,hcLight:r.buw},s.kg("editorActiveLineNumber","Color of editor active line number"),!1,s.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),I=((0,r.x1A)("editorLineNumber.activeForeground",N,s.kg("editorActiveLineNumber","Color of editor active line number")),(0,r.x1A)("editorLineNumber.dimmedForeground",null,s.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed."))),O=((0,r.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:n.Q1.lightgrey,hcDark:n.Q1.white,hcLight:"#292929"},s.kg("editorRuler","Color of the editor rulers.")),(0,r.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},s.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,r.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},s.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,r.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:r.b1q,hcLight:r.b1q},s.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,r.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},s.kg("editorOverviewRulerBorder","Color of the overview ruler border."))),D=(0,r.x1A)("editorOverviewRuler.background",null,s.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),M=((0,r.x1A)("editorGutter.background",r.YtV,s.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,r.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:n.Q1.fromHex("#fff").transparent(.8),hcLight:r.b1q},s.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,r.x1A)("editorUnnecessaryCode.opacity",{dark:n.Q1.fromHex("#000a"),light:n.Q1.fromHex("#0007"),hcDark:null,hcLight:null},s.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out."))),P=((0,r.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:n.Q1.fromHex("#fff").transparent(.8),hcLight:n.Q1.fromHex("#292929").transparent(.8)},s.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,r.x1A)("editorGhostText.foreground",{dark:n.Q1.fromHex("#ffffff56"),light:n.Q1.fromHex("#0007"),hcDark:null,hcLight:null},s.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor."))),F=((0,r.x1A)("editorGhostText.background",null,s.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new n.Q1(new n.bU(0,122,204,.6))),U=(0,r.x1A)("editorOverviewRuler.rangeHighlightForeground",F,s.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),H=(0,r.x1A)("editorOverviewRuler.errorForeground",{dark:new n.Q1(new n.bU(255,18,18,.7)),light:new n.Q1(new n.bU(255,18,18,.7)),hcDark:new n.Q1(new n.bU(255,50,50,1)),hcLight:"#B5200D"},s.kg("overviewRuleError","Overview ruler marker color for errors.")),B=(0,r.x1A)("editorOverviewRuler.warningForeground",{dark:r.Hng,light:r.Hng,hcDark:r.Stt,hcLight:r.Stt},s.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),W=(0,r.x1A)("editorOverviewRuler.infoForeground",{dark:r.pOz,light:r.pOz,hcDark:r.IIb,hcLight:r.IIb},s.kg("overviewRuleInfo","Overview ruler marker color for infos.")),V=(0,r.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},s.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),z=(0,r.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},s.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),G=(0,r.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},s.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),j=(0,r.x1A)("editorBracketHighlight.foreground4","#00000000",s.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),K=(0,r.x1A)("editorBracketHighlight.foreground5","#00000000",s.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),Y=(0,r.x1A)("editorBracketHighlight.foreground6","#00000000",s.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),q=(0,r.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new n.Q1(new n.bU(255,18,18,.8)),light:new n.Q1(new n.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},s.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),$=(0,r.x1A)("editorBracketPairGuide.background1","#00000000",s.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),Q=(0,r.x1A)("editorBracketPairGuide.background2","#00000000",s.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),X=(0,r.x1A)("editorBracketPairGuide.background3","#00000000",s.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),Z=(0,r.x1A)("editorBracketPairGuide.background4","#00000000",s.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),J=(0,r.x1A)("editorBracketPairGuide.background5","#00000000",s.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),ee=(0,r.x1A)("editorBracketPairGuide.background6","#00000000",s.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),te=(0,r.x1A)("editorBracketPairGuide.activeBackground1","#00000000",s.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),ie=(0,r.x1A)("editorBracketPairGuide.activeBackground2","#00000000",s.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),se=(0,r.x1A)("editorBracketPairGuide.activeBackground3","#00000000",s.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),ne=(0,r.x1A)("editorBracketPairGuide.activeBackground4","#00000000",s.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),re=(0,r.x1A)("editorBracketPairGuide.activeBackground5","#00000000",s.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),oe=(0,r.x1A)("editorBracketPairGuide.activeBackground6","#00000000",s.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,r.x1A)("editorUnicodeHighlight.border",r.Hng,s.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,r.x1A)("editorUnicodeHighlight.background",r.whs,s.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.zy)(((e,t)=>{const i=e.getColor(r.YtV),s=e.getColor(a),n=s&&!s.isTransparent()?s:i;n&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${n}; }`)}))},64454:(e,t,i)=>{"use strict";function s(e){let t=0,i=0,s=0,n=0;for(let r=0,o=e.length;r<o;r++){const a=e.charCodeAt(r);13===a?(0===t&&(i=r),t++,r+1<o&&10===e.charCodeAt(r+1)?(n|=2,r++):n|=3,s=r+1):10===a&&(n|=1,0===t&&(i=r),t++,s=r+1)}return 0===t&&(i=e.length),[t,i,e.length-s,n]}i.d(t,{W:()=>s})},93895:(e,t,i)=>{"use strict";i.d(t,{P:()=>r});var s=i(91508),n=i(1245);function r(e,t,i){let r=s.HG(e);return-1===r&&(r=e.length),function(e,t,i){let s=0;for(let o=0;o<e.length;o++)"\t"===e.charAt(o)?s=n.A.nextIndentTabStop(s,t):s++;let r="";if(!i){const e=Math.floor(s/t);s%=t;for(let t=0;t<e;t++)r+="\t"}for(let n=0;n<s;n++)r+=" ";return r}(e.substring(0,r),t,i)+e.substring(r)}},86571:(e,t,i)=>{"use strict";i.d(t,{M:()=>a,S:()=>l});var s=i(64383),n=i(74444),r=i(36677),o=i(46041);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let i=1;i<e.length;i++)t=t.getUnion(new l(e[i].slice()));return t.ranges}static join(e){if(0===e.length)throw new s.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,i=e[0].endLineNumberExclusive;for(let s=1;s<e.length;s++)t=Math.min(t,e[s].startLineNumber),i=Math.max(i,e[s].endLineNumberExclusive);return new a(t,i)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new s.D7(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=i)return new a(t,i)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new r.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new r.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let i=this.startLineNumber;i<this.endLineNumberExclusive;i++)t.push(e(i));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new n.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)this._normalizedRanges.splice(t,0,e);else if(t===i-1){const i=this._normalizedRanges[t];this._normalizedRanges[t]=i.join(e)}else{const s=this._normalizedRanges[t].join(this._normalizedRanges[i-1]).join(e);this._normalizedRanges.splice(t,i-t,s)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let i=0,s=0,n=null;for(;i<this._normalizedRanges.length||s<e._normalizedRanges.length;){let r=null;if(i<this._normalizedRanges.length&&s<e._normalizedRanges.length){const t=this._normalizedRanges[i],n=e._normalizedRanges[s];t.startLineNumber<n.startLineNumber?(r=t,i++):(r=n,s++)}else i<this._normalizedRanges.length?(r=this._normalizedRanges[i],i++):(r=e._normalizedRanges[s],s++);null===n?n=r:n.endLineNumberExclusive>=r.startLineNumber?n=new a(n.startLineNumber,Math.max(n.endLineNumberExclusive,r.endLineNumberExclusive)):(t.push(n),n=r)}return null!==n&&t.push(n),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)return new l([e]);const s=[];let n=e.startLineNumber;for(let r=t;r<i;r++){const e=this._normalizedRanges[r];e.startLineNumber>n&&s.push(new a(n,e.startLineNumber)),n=e.endLineNumberExclusive}return n<e.endLineNumberExclusive&&s.push(new a(n,e.endLineNumberExclusive)),new l(s)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let i=0,s=0;for(;i<this._normalizedRanges.length&&s<e._normalizedRanges.length;){const n=this._normalizedRanges[i],r=e._normalizedRanges[s],o=n.intersect(r);o&&!o.isEmpty&&t.push(o),n.endLineNumberExclusive<r.endLineNumberExclusive?i++:s++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},74444:(e,t,i)=>{"use strict";i.d(t,{L:()=>n,h:()=>r});var s=i(64383);class n{static addRange(e,t){let i=0;for(;i<t.length&&t[i].endExclusive<e.start;)i++;let s=i;for(;s<t.length&&t[s].start<=e.endExclusive;)s++;if(i===s)t.splice(i,0,e);else{const r=Math.min(e.start,t[i].start),o=Math.max(e.endExclusive,t[s-1].endExclusive);t.splice(i,s-i,new n(r,o))}}static tryCreate(e,t){if(!(e>t))return new n(e,t)}static ofLength(e){return new n(0,e)}static ofStartAndLength(e,t){return new n(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new s.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new n(this.start+e,this.endExclusive+e)}deltaStart(e){return new n(this.start+e,this.endExclusive)}deltaEnd(e){return new n(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new n(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);if(t<=i)return new n(t,i)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new s.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new s.D7(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}class r{constructor(){this._sortedRanges=[]}addRange(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<e.start;)t++;let i=t;for(;i<this._sortedRanges.length&&this._sortedRanges[i].start<=e.endExclusive;)i++;if(t===i)this._sortedRanges.splice(t,0,e);else{const s=Math.min(e.start,this._sortedRanges[t].start),r=Math.max(e.endExclusive,this._sortedRanges[i-1].endExclusive);this._sortedRanges.splice(t,i-t,new n(s,r))}}toString(){return this._sortedRanges.map((e=>e.toString())).join(", ")}intersectsStrict(e){let t=0;for(;t<this._sortedRanges.length&&this._sortedRanges[t].endExclusive<=e.start;)t++;return t<this._sortedRanges.length&&this._sortedRanges[t].start<e.endExclusive}intersectWithRange(e){const t=new r;for(const i of this._sortedRanges){const s=i.intersect(e);s&&t.addRange(s)}return t}intersectWithRangeLength(e){return this.intersectWithRange(e).length}get length(){return this._sortedRanges.reduce(((e,t)=>e+t.length),0)}}},83069:(e,t,i)=>{"use strict";i.d(t,{y:()=>s});class s{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new s(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return s.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return s.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return s.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const i=0|e.lineNumber,s=0|t.lineNumber;if(i===s){return(0|e.column)-(0|t.column)}return i-s}clone(){return new s(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new s(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},36677:(e,t,i)=>{"use strict";i.d(t,{Q:()=>n});var s=i(83069);class n{constructor(e,t,i,s){e>i||e===i&&t>s?(this.startLineNumber=i,this.startColumn=s,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=s)}isEmpty(){return n.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return n.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return n.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return n.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return n.plusRange(this,e)}static plusRange(e,t){let i,s,r,o;return t.startLineNumber<e.startLineNumber?(i=t.startLineNumber,s=t.startColumn):t.startLineNumber===e.startLineNumber?(i=t.startLineNumber,s=Math.min(t.startColumn,e.startColumn)):(i=e.startLineNumber,s=e.startColumn),t.endLineNumber>e.endLineNumber?(r=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,o=e.endColumn),new n(i,s,r,o)}intersectRanges(e){return n.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,s=e.startColumn,r=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,h=t.endColumn;return i<a?(i=a,s=l):i===a&&(s=Math.max(s,l)),r>c?(r=c,o=h):r===c&&(o=Math.min(o,h)),i>r||i===r&&s>o?null:new n(i,s,r,o)}equalsRange(e){return n.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return n.getEndPosition(this)}static getEndPosition(e){return new s.y(e.endLineNumber,e.endColumn)}getStartPosition(){return n.getStartPosition(this)}static getStartPosition(e){return new s.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new n(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new n(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return n.collapseToStart(this)}static collapseToStart(e){return new n(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return n.collapseToEnd(this)}static collapseToEnd(e){return new n(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new n(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new n(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new n(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const i=0|e.startLineNumber,s=0|t.startLineNumber;if(i===s){const i=0|e.startColumn,s=0|t.startColumn;if(i===s){const i=0|e.endLineNumber,s=0|t.endLineNumber;if(i===s){return(0|e.endColumn)-(0|t.endColumn)}return i-s}return i-s}return i-s}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}},75326:(e,t,i)=>{"use strict";i.d(t,{L:()=>r});var s=i(83069),n=i(36677);class r extends n.Q{constructor(e,t,i,s){super(e,t,i,s),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=s}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return r.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new r(this.startLineNumber,this.startColumn,e,t):new r(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new s.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new s.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new r(e,t,this.endLineNumber,this.endColumn):new r(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new r(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new r(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,s=e.length;i<s;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,i,s,n){return 0===n?new r(e,t,i,s):new r(i,s,e,t)}}},99020:(e,t,i)=>{"use strict";i.d(t,{Su:()=>d,b7:()=>h,fe:()=>u});var s=i(91508),n=i(98067),r=i(81674);let o,a,l;function c(){return o||(o=new TextDecoder("UTF-16LE")),o}function h(){return l||(l=n.cm()?c():(a||(a=new TextDecoder("UTF-16BE")),a)),l}function d(e,t,i){const s=new Uint16Array(e.buffer,t,i);return i>0&&(65279===s[0]||65534===s[0])?function(e,t,i){const s=[];let n=0;for(let o=0;o<i;o++){const i=r.$l(e,t);t+=2,s[n++]=String.fromCharCode(i)}return s.join("")}(e,t,i):c().decode(s)}class u{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return h().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||s.pc(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let i=0;i<t;i++)this._buffer[this._bufferLength++]=e.charCodeAt(i)}}},64829:(e,t,i)=>{"use strict";i.d(t,{k:()=>o,x:()=>a});var s=i(81674),n=i(99020);function r(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class o{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,i,s){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=s}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${r(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${r(this.oldText)}")`:`(replace@${this.oldPosition} "${r(this.oldText)}" with "${r(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const n=t.length;s.Sw(e,n,i),i+=4;for(let r=0;r<n;r++)s.gN(e,t.charCodeAt(r),i),i+=2;return i}static _readString(e,t){const i=s.bb(e,t);return t+=4,(0,n.Su)(e,t,i)}writeSize(){return 8+o._writeStringSize(this.oldText)+o._writeStringSize(this.newText)}write(e,t){return s.Sw(e,this.oldPosition,t),t+=4,s.Sw(e,this.newPosition,t),t+=4,t=o._writeString(e,this.oldText,t),t=o._writeString(e,this.newText,t)}static read(e,t,i){const n=s.bb(e,t);t+=4;const r=s.bb(e,t);t+=4;const a=o._readString(e,t);t+=o._writeStringSize(a);const l=o._readString(e,t);return t+=o._writeStringSize(l),i.push(new o(n,a,r,l)),t}}function a(e,t){if(null===e||0===e.length)return t;return new l(e,t).compress()}class l{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,i=this._getPrev(e),s=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===i){this._acceptCurr(s),s=this._getCurr(++t);continue}if(null===s){this._acceptPrev(i),i=this._getPrev(++e);continue}if(s.oldEnd<=i.newPosition){this._acceptCurr(s),s=this._getCurr(++t);continue}if(i.newEnd<=s.oldPosition){this._acceptPrev(i),i=this._getPrev(++e);continue}if(s.oldPosition<i.newPosition){const[e,t]=l._splitCurr(s,i.newPosition-s.oldPosition);this._acceptCurr(e),s=t;continue}if(i.newPosition<s.oldPosition){const[e,t]=l._splitPrev(i,s.oldPosition-i.newPosition);this._acceptPrev(e),i=t;continue}let n,r;if(s.oldEnd===i.newEnd)n=i,r=s,i=this._getPrev(++e),s=this._getCurr(++t);else if(s.oldEnd<i.newEnd){const[e,o]=l._splitPrev(i,s.oldLength);n=e,r=s,i=o,s=this._getCurr(++t)}else{const[t,o]=l._splitCurr(s,i.newLength);n=i,r=t,i=this._getPrev(++e),s=o}this._result[this._resultLen++]=new o(n.oldPosition,n.oldText,r.newPosition,r.newText),this._prevDeltaOffset+=n.newLength-n.oldLength,this._currDeltaOffset+=r.newLength-r.oldLength}const n=l._merge(this._result);return l._removeNoOps(n)}_acceptCurr(e){this._result[this._resultLen++]=l._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=l._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new o(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new o(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const i=e.newText.substr(0,t),s=e.newText.substr(t);return[new o(e.oldPosition,e.oldText,e.newPosition,i),new o(e.oldEnd,"",e.newPosition+t,s)]}static _splitCurr(e,t){const i=e.oldText.substr(0,t),s=e.oldText.substr(t);return[new o(e.oldPosition,i,e.newPosition,e.newText),new o(e.oldPosition+t,s,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let i=0,s=e[0];for(let n=1;n<e.length;n++){const r=e[n];s.oldEnd===r.oldPosition?s=new o(s.oldPosition,s.oldText+r.oldText,s.newPosition,s.newText+r.newText):(t[i++]=s,s=r)}return t[i++]=s,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let i=0;for(let s=0;s<e.length;s++){const n=e[s];n.oldText!==n.newText&&(t[i++]=n)}return t}}},75295:(e,t,i)=>{"use strict";i.d(t,{CO:()=>g,WR:()=>d,mF:()=>h});var s=i(66782),n=i(64383),r=i(83069),o=i(74444),a=i(50973);class l{constructor(e){this.text=e,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t<e.length;t++)"\n"===e.charAt(t)&&this.lineStartOffsetByLineIdx.push(t+1)}getOffset(e){return this.lineStartOffsetByLineIdx[e.lineNumber-1]+e.column-1}getOffsetRange(e){return new o.L(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new a.W(e,this.text.length-this.lineStartOffsetByLineIdx[e])}}var c=i(36677);class h{constructor(e){this.edits=e,(0,s.Ft)((()=>(0,s.Xo)(e,((e,t)=>e.range.getEndPosition().isBeforeOrEqual(t.range.getStartPosition())))))}apply(e){let t="",i=new r.y(1,1);for(const n of this.edits){const s=n.range,r=s.getStartPosition(),o=s.getEndPosition(),a=u(i,r);a.isEmpty()||(t+=e.getValueOfRange(a)),t+=n.text,i=o}const s=u(i,e.endPositionExclusive);return s.isEmpty()||(t+=e.getValueOfRange(s)),t}applyToString(e){const t=new p(e);return this.apply(t)}getNewRanges(){const e=[];let t=0,i=0,s=0;for(const n of this.edits){const o=a.W.ofText(n.text),l=r.y.lift({lineNumber:n.range.startLineNumber+i,column:n.range.startColumn+(n.range.startLineNumber===t?s:0)}),c=o.createRange(l);e.push(c),i=c.endLineNumber-n.range.endLineNumber,s=c.endColumn-n.range.endColumn,t=n.range.endLineNumber}return e}}class d{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}function u(e,t){if(e.lineNumber===t.lineNumber&&e.column===Number.MAX_SAFE_INTEGER)return c.Q.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new n.D7("start must be before end");return new c.Q(e.lineNumber,e.column,t.lineNumber,t.column)}class g{get endPositionExclusive(){return this.length.addToPosition(new r.y(1,1))}}class p extends g{constructor(e){super(),this.value=e,this._t=new l(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}},50973:(e,t,i)=>{"use strict";i.d(t,{W:()=>r});var s=i(83069),n=i(36677);class r{static{this.zero=new r(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new r(0,t.column-e.column):new r(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return r.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,i=0;for(const s of e)"\n"===s?(t++,i=0):i++;return new r(t,i)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new n.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new n.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new s.y(e.lineNumber,e.column+this.columnCount):new s.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},24329:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});const s={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},81782:(e,t,i)=>{"use strict";i.d(t,{i:()=>a});var s=i(74320),n=i(60534);class r extends n.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let i=0,s=e.length;i<s;i++)this.set(e.charCodeAt(i),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let i=null;for(const s of this._getIntlSegmenterWordsOnLine(e)){if(s.index>t)break;i=s}return i}findNextIntlWordAtOrAfterOffset(e,t){for(const i of this._getIntlSegmenterWordsOnLine(e))if(!(i.index<t))return i;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const i of e)this._isWordLike(i)&&t.push(i);return t}_isWordLike(e){return!!e.isWordLike}}const o=new s.qK(10);function a(e,t){const i=`${e}/${t.join(",")}`;let s=o.get(i);return s||(s=new r(e,t),o.set(i,s)),s}},26486:(e,t,i)=>{"use strict";i.d(t,{Io:()=>a,J3:()=>r,Ld:()=>o,Th:()=>c});var s=i(42522),n=i(58925);const r="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";const o=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const i of r)e.indexOf(i)>=0||(t+="\\"+i);return t+="\\s]+)",new RegExp(t,"g")}();function a(e){let t=o;if(e&&e instanceof RegExp)if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}return t.lastIndex=0,t}const l=new n.w;function c(e,t,i,n,r){if(t=a(t),r||(r=s.f.first(l)),i.length>r.maxLen){let s=e-r.maxLen/2;return s<0?s=0:n+=s,c(e,t,i=i.substring(s,e+r.maxLen/2),n,r)}const o=Date.now(),d=e-1-n;let u=-1,g=null;for(let s=1;!(Date.now()-o>=r.timeBudget);s++){const e=d-r.windowSize*s;t.lastIndex=Math.max(0,e);const n=h(t,i,d,u);if(!n&&g)break;if(g=n,e<=0)break;u=e}if(g){const e={word:g[0],startColumn:n+1+g.index,endColumn:n+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function h(e,t,i,s){let n;for(;n=e.exec(t);){const t=n.index||0;if(t<=i&&e.lastIndex>=i)return n;if(s>0&&t>s)return null}return null}l.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},35817:(e,t,i)=>{"use strict";i.d(t,{s:()=>n});var s=i(1245);class n{static whitespaceVisibleColumn(e,t,i){const n=e.length;let r=0,o=-1,a=-1;for(let l=0;l<n;l++){if(l===t)return[o,a,r];r%i===0&&(o=l,a=r);switch(e.charCodeAt(l)){case 32:r+=1;break;case 9:r=s.A.nextRenderTabStop(r,i);break;default:return[-1,-1,-1]}}return t===n?[o,a,r]:[-1,-1,-1]}static atomicPosition(e,t,i,r){const o=e.length,[a,l,c]=n.whitespaceVisibleColumn(e,t,i);if(-1===c)return-1;let h;switch(r){case 0:h=!0;break;case 1:h=!1;break;case 2:if(c%i===0)return t;h=c%i<=i/2}if(h){if(-1===a)return-1;let t=l;for(let n=a;n<o;++n){if(t===l+i)return a;switch(e.charCodeAt(n)){case 32:t+=1;break;case 9:t=s.A.nextRenderTabStop(t,i);break;default:return-1}}return t===l+i?a:-1}const d=s.A.nextRenderTabStop(c,i);let u=c;for(let n=t;n<o;n++){if(u===d)return n;switch(e.charCodeAt(n)){case 32:u+=1;break;case 9:u=s.A.nextRenderTabStop(u,i);break;default:return-1}}return u===d?o:-1}}},1226:(e,t,i)=>{"use strict";i.d(t,{g:()=>h});var s=i(91508),n=i(15092),r=i(32799),o=i(1245),a=i(94564),l=i(36677),c=i(83069);class h{static deleteRight(e,t,i,s){const r=[];let o=3!==e;for(let c=0,h=s.length;c<h;c++){const e=s[c];let h=e;if(h.isEmpty()){const s=e.getPosition(),n=a.I.right(t,i,s);h=new l.Q(n.lineNumber,n.column,s.lineNumber,s.column)}h.isEmpty()?r[c]=null:(h.startLineNumber!==h.endLineNumber&&(o=!0),r[c]=new n.iu(h,""))}return[o,r]}static isAutoClosingPairDelete(e,t,i,s,n,o,a){if("never"===t&&"never"===i)return!1;if("never"===e)return!1;for(let l=0,c=o.length;l<c;l++){const c=o[l],h=c.getPosition();if(!c.isEmpty())return!1;const d=n.getLineContent(h.lineNumber);if(h.column<2||h.column>=d.length+1)return!1;const u=d.charAt(h.column-2),g=s.get(u);if(!g)return!1;if((0,r.vG)(u)){if("never"===i)return!1}else if("never"===t)return!1;const p=d.charAt(h.column-1);let m=!1;for(const e of g)e.open===u&&e.close===p&&(m=!0);if(!m)return!1;if("auto"===e){let e=!1;for(let t=0,i=a.length;t<i;t++){const i=a[t];if(h.lineNumber===i.startLineNumber&&h.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingPairDelete(e,t,i){const s=[];for(let r=0,o=i.length;r<o;r++){const e=i[r].getPosition(),t=new l.Q(e.lineNumber,e.column-1,e.lineNumber,e.column+1);s[r]=new n.iu(t,"")}return[!0,s]}static deleteLeft(e,t,i,s,r){if(this.isAutoClosingPairDelete(t.autoClosingDelete,t.autoClosingBrackets,t.autoClosingQuotes,t.autoClosingPairs.autoClosingPairsOpenByEnd,i,s,r))return this._runAutoClosingPairDelete(t,i,s);const o=[];let a=2!==e;for(let l=0,c=s.length;l<c;l++){const e=h.getDeleteRange(s[l],i,t);e.isEmpty()?o[l]=null:(e.startLineNumber!==e.endLineNumber&&(a=!0),o[l]=new n.iu(e,""))}return[a,o]}static getDeleteRange(e,t,i){if(!e.isEmpty())return e;const n=e.getPosition();if(i.useTabStops&&n.column>1){const e=t.getLineContent(n.lineNumber),r=s.HG(e),a=-1===r?e.length+1:r+1;if(n.column<=a){const e=i.visibleColumnFromColumn(t,n),s=o.A.prevIndentTabStop(e,i.indentSize),r=i.columnFromVisibleColumn(t,n.lineNumber,s);return new l.Q(n.lineNumber,r,n.lineNumber,n.column)}}return l.Q.fromPositions(h.getPositionAfterDeleteLeft(n,t),n)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=s.Wd(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}if(e.lineNumber>1){const i=e.lineNumber-1;return new c.y(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){const s=[];let o=null;i.sort(((e,t)=>c.y.compare(e.getStartPosition(),t.getEndPosition())));for(let r=0,a=i.length;r<a;r++){const a=i[r];if(a.isEmpty())if(e.emptySelectionClipboard){const e=a.getPosition();let i,c,h,d;e.lineNumber<t.getLineCount()?(i=e.lineNumber,c=1,h=e.lineNumber+1,d=1):e.lineNumber>1&&o?.endLineNumber!==e.lineNumber?(i=e.lineNumber-1,c=t.getLineMaxColumn(e.lineNumber-1),h=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber)):(i=e.lineNumber,c=1,h=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber));const u=new l.Q(i,c,h,d);o=u,u.isEmpty()?s[r]=null:s[r]=new n.iu(u,"")}else s[r]=null;else s[r]=new n.iu(a,"")}return new r.vY(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},50672:(e,t,i)=>{"use strict";i.d(t,{S:()=>s,c:()=>h});var s,n=i(631),r=i(32799),o=i(94564),a=i(97681),l=i(83069),c=i(36677);class h{static addCursorDown(e,t,i){const s=[];let n=0;for(let a=0,l=t.length;a<l;a++){const l=t[a];s[n++]=new r.MF(l.modelState,l.viewState),s[n++]=i?r.MF.fromModelState(o.I.translateDown(e.cursorConfig,e.model,l.modelState)):r.MF.fromViewState(o.I.translateDown(e.cursorConfig,e,l.viewState))}return s}static addCursorUp(e,t,i){const s=[];let n=0;for(let a=0,l=t.length;a<l;a++){const l=t[a];s[n++]=new r.MF(l.modelState,l.viewState),s[n++]=i?r.MF.fromModelState(o.I.translateUp(e.cursorConfig,e.model,l.modelState)):r.MF.fromViewState(o.I.translateUp(e.cursorConfig,e,l.viewState))}return s}static moveToBeginningOfLine(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n];s[n]=this._moveToLineStart(e,r,i)}return s}static _moveToLineStart(e,t,i){const s=t.viewState.position.column,n=s===t.modelState.position.column,r=t.viewState.position.lineNumber,o=e.getLineFirstNonWhitespaceColumn(r);return n||s===o?this._moveToLineStartByModel(e,t,i):this._moveToLineStartByView(e,t,i)}static _moveToLineStartByView(e,t,i){return r.MF.fromViewState(o.I.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,i))}static _moveToLineStartByModel(e,t,i){return r.MF.fromModelState(o.I.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,i))}static moveToEndOfLine(e,t,i,s){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t[r];n[r]=this._moveToLineEnd(e,o,i,s)}return n}static _moveToLineEnd(e,t,i,s){const n=t.viewState.position,r=e.getLineMaxColumn(n.lineNumber),o=n.column===r,a=t.modelState.position,l=e.model.getLineMaxColumn(a.lineNumber),c=r-n.column===l-a.column;return o||c?this._moveToLineEndByModel(e,t,i,s):this._moveToLineEndByView(e,t,i,s)}static _moveToLineEndByView(e,t,i,s){return r.MF.fromViewState(o.I.moveToEndOfLine(e.cursorConfig,e,t.viewState,i,s))}static _moveToLineEndByModel(e,t,i,s){return r.MF.fromModelState(o.I.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,i,s))}static expandLineSelection(e,t){const i=[];for(let s=0,n=t.length;s<n;s++){const n=t[s],o=n.modelState.selection.startLineNumber,a=e.model.getLineCount();let h,d=n.modelState.selection.endLineNumber;d===a?h=e.model.getLineMaxColumn(a):(d++,h=1),i[s]=r.MF.fromModelState(new r.mG(new c.Q(o,1,o,1),0,0,new l.y(d,h),0))}return i}static moveToBeginningOfBuffer(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n];s[n]=r.MF.fromModelState(o.I.moveToBeginningOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return s}static moveToEndOfBuffer(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n];s[n]=r.MF.fromModelState(o.I.moveToEndOfBuffer(e.cursorConfig,e.model,a.modelState,i))}return s}static selectAll(e,t){const i=e.model.getLineCount(),s=e.model.getLineMaxColumn(i);return r.MF.fromModelState(new r.mG(new c.Q(1,1,1,1),0,0,new l.y(i,s),0))}static line(e,t,i,s,n){const o=e.model.validatePosition(s),a=n?e.coordinatesConverter.validateViewPosition(new l.y(n.lineNumber,n.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);if(!i){const t=e.model.getLineCount();let i=o.lineNumber+1,s=1;return i>t&&(i=t,s=e.model.getLineMaxColumn(i)),r.MF.fromModelState(new r.mG(new c.Q(o.lineNumber,1,i,s),2,0,new l.y(i,s),0))}const h=t.modelState.selectionStart.getStartPosition().lineNumber;if(o.lineNumber<h)return r.MF.fromViewState(t.viewState.move(!0,a.lineNumber,1,0));if(o.lineNumber>h){const i=e.getLineCount();let s=a.lineNumber+1,n=1;return s>i&&(s=i,n=e.getLineMaxColumn(s)),r.MF.fromViewState(t.viewState.move(!0,s,n,0))}{const e=t.modelState.selectionStart.getEndPosition();return r.MF.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,i,s){const n=e.model.validatePosition(s);return r.MF.fromModelState(a.z.word(e.cursorConfig,e.model,t.modelState,i,n))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new r.MF(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,s=t.viewState.position.column;return r.MF.fromViewState(new r.mG(new c.Q(i,s,i,s),0,0,new l.y(i,s),0))}static moveTo(e,t,i,s,n){if(i){if(1===t.modelState.selectionStartKind)return this.word(e,t,i,s);if(2===t.modelState.selectionStartKind)return this.line(e,t,i,s,n)}const o=e.model.validatePosition(s),a=n?e.coordinatesConverter.validateViewPosition(new l.y(n.lineNumber,n.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);return r.MF.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,s,n,a){switch(i){case 0:return 4===a?this._moveHalfLineLeft(e,t,s):this._moveLeft(e,t,s,n);case 1:return 4===a?this._moveHalfLineRight(e,t,s):this._moveRight(e,t,s,n);case 2:return 2===a?this._moveUpByViewLines(e,t,s,n):this._moveUpByModelLines(e,t,s,n);case 3:return 2===a?this._moveDownByViewLines(e,t,s,n):this._moveDownByModelLines(e,t,s,n);case 4:return 2===a?t.map((t=>r.MF.fromViewState(o.I.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,s)))):t.map((t=>r.MF.fromModelState(o.I.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,s))));case 5:return 2===a?t.map((t=>r.MF.fromViewState(o.I.moveToNextBlankLine(e.cursorConfig,e,t.viewState,s)))):t.map((t=>r.MF.fromModelState(o.I.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,s))));case 6:return this._moveToViewMinColumn(e,t,s);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,s);case 8:return this._moveToViewCenterColumn(e,t,s);case 9:return this._moveToViewMaxColumn(e,t,s);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,s);default:return null}}static viewportMove(e,t,i,s,n){const r=e.getCompletelyVisibleViewRange(),o=e.coordinatesConverter.convertViewRangeToModelRange(r);switch(i){case 11:{const i=this._firstLineNumberInRange(e.model,o,n),r=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,r)]}case 13:{const i=this._lastLineNumberInRange(e.model,o,n),r=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,r)]}case 12:{const i=Math.round((o.startLineNumber+o.endLineNumber)/2),n=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],s,i,n)]}case 14:{const i=[];for(let n=0,o=t.length;n<o;n++){const o=t[n];i[n]=this.findPositionInViewportIfOutside(e,o,r,s)}return i}default:return null}}static findPositionInViewportIfOutside(e,t,i,s){const n=t.viewState.position.lineNumber;if(i.startLineNumber<=n&&n<=i.endLineNumber-1)return new r.MF(t.modelState,t.viewState);{let a;a=n>i.endLineNumber-1?i.endLineNumber-1:n<i.startLineNumber?i.startLineNumber:n;const l=o.I.vertical(e.cursorConfig,e,n,t.viewState.position.column,t.viewState.leftoverVisibleColumns,a,!1);return r.MF.fromViewState(t.viewState.move(s,l.lineNumber,l.column,l.leftoverVisibleColumns))}}static _firstLineNumberInRange(e,t,i){let s=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(s)&&s++,Math.min(t.endLineNumber,s+i-1)}static _lastLineNumberInRange(e,t,i){let s=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(s)&&s++,Math.max(s,t.endLineNumber-i+1)}static _moveLeft(e,t,i,s){return t.map((t=>r.MF.fromViewState(o.I.moveLeft(e.cursorConfig,e,t.viewState,i,s))))}static _moveHalfLineLeft(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n],l=a.viewState.position.lineNumber,c=Math.round(e.getLineLength(l)/2);s[n]=r.MF.fromViewState(o.I.moveLeft(e.cursorConfig,e,a.viewState,i,c))}return s}static _moveRight(e,t,i,s){return t.map((t=>r.MF.fromViewState(o.I.moveRight(e.cursorConfig,e,t.viewState,i,s))))}static _moveHalfLineRight(e,t,i){const s=[];for(let n=0,a=t.length;n<a;n++){const a=t[n],l=a.viewState.position.lineNumber,c=Math.round(e.getLineLength(l)/2);s[n]=r.MF.fromViewState(o.I.moveRight(e.cursorConfig,e,a.viewState,i,c))}return s}static _moveDownByViewLines(e,t,i,s){const n=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];n[a]=r.MF.fromViewState(o.I.moveDown(e.cursorConfig,e,l.viewState,i,s))}return n}static _moveDownByModelLines(e,t,i,s){const n=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];n[a]=r.MF.fromModelState(o.I.moveDown(e.cursorConfig,e.model,l.modelState,i,s))}return n}static _moveUpByViewLines(e,t,i,s){const n=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];n[a]=r.MF.fromViewState(o.I.moveUp(e.cursorConfig,e,l.viewState,i,s))}return n}static _moveUpByModelLines(e,t,i,s){const n=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];n[a]=r.MF.fromModelState(o.I.moveUp(e.cursorConfig,e.model,l.modelState,i,s))}return n}static _moveToViewPosition(e,t,i,s,n){return r.MF.fromViewState(t.viewState.move(i,s,n,0))}static _moveToModelPosition(e,t,i,s,n){return r.MF.fromModelState(t.modelState.move(i,s,n,0))}static _moveToViewMinColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineMinColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewFirstNonWhitespaceColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineFirstNonWhitespaceColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewCenterColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=Math.round((e.getLineMaxColumn(o)+e.getLineMinColumn(o))/2);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewMaxColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineMaxColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}static _moveToViewLastNonWhitespaceColumn(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.viewState.position.lineNumber,a=e.getLineLastNonWhitespaceColumn(o);s[n]=this._moveToViewPosition(e,r,i,o,a)}return s}}!function(e){e.metadata={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){if(!n.Gv(e))return!1;const t=e;return!!n.Kg(t.to)&&(!(!n.b0(t.select)&&!n.Lm(t.select))&&(!(!n.b0(t.by)&&!n.Kg(t.by))&&!(!n.b0(t.value)&&!n.Et(t.value))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=function(t){if(!t.to)return null;let i;switch(t.to){case e.RawDirection.Left:i=0;break;case e.RawDirection.Right:i=1;break;case e.RawDirection.Up:i=2;break;case e.RawDirection.Down:i=3;break;case e.RawDirection.PrevBlankLine:i=4;break;case e.RawDirection.NextBlankLine:i=5;break;case e.RawDirection.WrappedLineStart:i=6;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:i=7;break;case e.RawDirection.WrappedLineColumnCenter:i=8;break;case e.RawDirection.WrappedLineEnd:i=9;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:i=10;break;case e.RawDirection.ViewPortTop:i=11;break;case e.RawDirection.ViewPortBottom:i=13;break;case e.RawDirection.ViewPortCenter:i=12;break;case e.RawDirection.ViewPortIfOutside:i=14;break;default:return null}let s=0;switch(t.by){case e.RawUnit.Line:s=1;break;case e.RawUnit.WrappedLine:s=2;break;case e.RawUnit.Character:s=3;break;case e.RawUnit.HalfLine:s=4}return{direction:i,unit:s,select:!!t.select,value:t.value||1}}}(s||(s={}))},94564:(e,t,i)=>{"use strict";i.d(t,{I:()=>h});var s=i(91508),n=i(1245),r=i(83069),o=i(36677),a=i(35817),l=i(32799);class c{constructor(e,t,i){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=i}}class h{static leftPosition(e,t){if(t.column>e.getLineMinColumn(t.lineNumber))return t.delta(void 0,-s.MV(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new r.y(i,e.getLineMaxColumn(i))}return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const s=e.getLineMinColumn(t.lineNumber),n=e.getLineContent(t.lineNumber),o=a.s.atomicPosition(n,t.column-1,i,0);if(-1!==o&&o+1>=s)return new r.y(t.lineNumber,o+1)}return this.leftPosition(e,t)}static left(e,t,i){const s=e.stickyTabStops?h.leftPositionAtomicSoftTabs(t,i,e.tabSize):h.leftPosition(t,i);return new c(s.lineNumber,s.column,0)}static moveLeft(e,t,i,s,n){let r,o;if(i.hasSelection()&&!s)r=i.selection.startLineNumber,o=i.selection.startColumn;else{const s=i.position.delta(void 0,-(n-1)),a=t.normalizePosition(h.clipPositionColumn(s,t),0),l=h.left(e,t,a);r=l.lineNumber,o=l.column}return i.move(s,r,o,0)}static clipPositionColumn(e,t){return new r.y(e.lineNumber,h.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return e<t?t:e>i?i:e}static rightPosition(e,t,i){return i<e.getLineMaxColumn(t)?i+=s.iy(e.getLineContent(t),i-1):t<e.getLineCount()&&(t+=1,i=e.getLineMinColumn(t)),new r.y(t,i)}static rightPositionAtomicSoftTabs(e,t,i,s,n){if(i<e.getLineIndentColumn(t)){const n=e.getLineContent(t),o=a.s.atomicPosition(n,i-1,s,1);if(-1!==o)return new r.y(t,o+1)}return this.rightPosition(e,t,i)}static right(e,t,i){const s=e.stickyTabStops?h.rightPositionAtomicSoftTabs(t,i.lineNumber,i.column,e.tabSize,e.indentSize):h.rightPosition(t,i.lineNumber,i.column);return new c(s.lineNumber,s.column,0)}static moveRight(e,t,i,s,n){let r,o;if(i.hasSelection()&&!s)r=i.selection.endLineNumber,o=i.selection.endColumn;else{const s=i.position.delta(void 0,n-1),a=t.normalizePosition(h.clipPositionColumn(s,t),1),l=h.right(e,t,a);r=l.lineNumber,o=l.column}return i.move(s,r,o,0)}static vertical(e,t,i,s,o,a,l,h){const d=n.A.visibleColumnFromColumn(t.getLineContent(i),s,e.tabSize)+o,u=t.getLineCount(),g=1===i&&1===s,p=i===u&&s===t.getLineMaxColumn(i),m=a<i?g:p;if((i=a)<1?(i=1,s=l?t.getLineMinColumn(i):Math.min(t.getLineMaxColumn(i),s)):i>u?(i=u,s=l?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),s)):s=e.columnFromVisibleColumn(t,i,d),o=m?0:d-n.A.visibleColumnFromColumn(t.getLineContent(i),s,e.tabSize),void 0!==h){const e=new r.y(i,s),n=t.normalizePosition(e,h);o+=s-n.column,i=n.lineNumber,s=n.column}return new c(i,s,o)}static down(e,t,i,s,n,r,o){return this.vertical(e,t,i,s,n,i+r,o,4)}static moveDown(e,t,i,s,n){let o,a;i.hasSelection()&&!s?(o=i.selection.endLineNumber,a=i.selection.endColumn):(o=i.position.lineNumber,a=i.position.column);let l,c=0;do{l=h.down(e,t,o+c,a,i.leftoverVisibleColumns,n,!0);if(t.normalizePosition(new r.y(l.lineNumber,l.column),2).lineNumber>o)break}while(c++<10&&o+c<t.getLineCount());return i.move(s,l.lineNumber,l.column,l.leftoverVisibleColumns)}static translateDown(e,t,i){const s=i.selection,n=h.down(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.down(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new l.mG(new o.Q(n.lineNumber,n.column,n.lineNumber,n.column),0,n.leftoverVisibleColumns,new r.y(a.lineNumber,a.column),a.leftoverVisibleColumns)}static up(e,t,i,s,n,r,o){return this.vertical(e,t,i,s,n,i-r,o,3)}static moveUp(e,t,i,s,n){let r,o;i.hasSelection()&&!s?(r=i.selection.startLineNumber,o=i.selection.startColumn):(r=i.position.lineNumber,o=i.position.column);const a=h.up(e,t,r,o,i.leftoverVisibleColumns,n,!0);return i.move(s,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(e,t,i){const s=i.selection,n=h.up(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),a=h.up(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new l.mG(new o.Q(n.lineNumber,n.column,n.lineNumber,n.column),0,n.leftoverVisibleColumns,new r.y(a.lineNumber,a.column),a.leftoverVisibleColumns)}static _isBlankLine(e,t){return 0===e.getLineFirstNonWhitespaceColumn(t)}static moveToPrevBlankLine(e,t,i,s){let n=i.position.lineNumber;for(;n>1&&this._isBlankLine(t,n);)n--;for(;n>1&&!this._isBlankLine(t,n);)n--;return i.move(s,n,t.getLineMinColumn(n),0)}static moveToNextBlankLine(e,t,i,s){const n=t.getLineCount();let r=i.position.lineNumber;for(;r<n&&this._isBlankLine(t,r);)r++;for(;r<n&&!this._isBlankLine(t,r);)r++;return i.move(s,r,t.getLineMinColumn(r),0)}static moveToBeginningOfLine(e,t,i,s){const n=i.position.lineNumber,r=t.getLineMinColumn(n),o=t.getLineFirstNonWhitespaceColumn(n)||r;let a;return a=i.position.column===o?r:o,i.move(s,n,a,0)}static moveToEndOfLine(e,t,i,s,n){const r=i.position.lineNumber,o=t.getLineMaxColumn(r);return i.move(s,r,o,n?1073741824-o:0)}static moveToBeginningOfBuffer(e,t,i,s){return i.move(s,1,1,0)}static moveToEndOfBuffer(e,t,i,s){const n=t.getLineCount(),r=t.getLineMaxColumn(n);return i.move(s,n,r,0)}}},26685:(e,t,i)=>{"use strict";i.d(t,{AO:()=>w,Dr:()=>L,Hs:()=>k,K4:()=>C,Ls:()=>y,UN:()=>T,YA:()=>R,dU:()=>_,ey:()=>B,h0:()=>x,is:()=>E,kr:()=>S,oi:()=>b,sx:()=>v});var s=i(64383),n=i(91508),r=i(15092),o=i(7936),a=i(71964),l=i(32799),c=i(81782),h=i(36677),d=i(83069),u=i(38566),g=i(17469),p=i(12296),m=i(82365),f=i(63346);class _{static getEdits(e,t,i,s,n){if(!n&&this._isAutoIndentType(e,t,i)){const n=[];for(const o of i){const i=this._findActualIndentationForSelection(e,t,o,s);if(null===i)return;n.push({selection:o,indentation:i})}const r=b.getAutoClosingPairClose(e,t,i,s,!1);return this._getIndentationAndAutoClosingPairEdits(e,t,n,s,r)}}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let s=0,n=i.length;s<n;s++)if(!t.tokenization.isCheapToTokenize(i[s].getEndPosition().lineNumber))return!1;return!0}static _findActualIndentationForSelection(e,t,i,s){const n=(0,m._t)(e,t,i,s,{shiftIndent:t=>U(e,t),unshiftIndent:t=>H(e,t)},e.languageConfigurationService);if(null===n)return null;const r=(0,g.Cw)(t,i.startLineNumber,i.startColumn);return n===e.normalizeIndentation(r)?null:n}static _getIndentationAndAutoClosingPairEdits(e,t,i,s,n){const r=i.map((({selection:i,indentation:r})=>{if(null!==n){const o=this._getEditFromIndentationAndSelection(e,t,r,i,s,!1);return new N(o,i,s,n)}{const n=this._getEditFromIndentationAndSelection(e,t,r,i,s,!0);return F(n.range,n.text,!1)}}));return new l.vY(4,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _getEditFromIndentationAndSelection(e,t,i,s,n,r=!0){const o=s.startLineNumber,a=t.getLineFirstNonWhitespaceColumn(o);let l=e.normalizeIndentation(i);if(0!==a){l+=t.getLineContent(o).substring(a-1,s.startColumn-1)}l+=r?n:"";return{range:new h.Q(o,1,s.endLineNumber,s.endColumn),text:l}}}class v{static getEdits(e,t,i,s,n,r){if(P(t,i,s,n,r))return this._runAutoClosingOvertype(e,s,r)}static _runAutoClosingOvertype(e,t,i){const s=[];for(let n=0,o=t.length;n<o;n++){const e=t[n].getPosition(),o=new h.Q(e.lineNumber,e.column,e.lineNumber,e.column+1);s[n]=new r.iu(o,i)}return new l.vY(4,s,{shouldPushStackElementBefore:O(e,4),shouldPushStackElementAfter:!1})}}class C{static getEdits(e,t,i,s,n){if(P(e,t,i,s,n)){const e=i.map((e=>new r.iu(new h.Q(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)));return new l.vY(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}}}class b{static getEdits(e,t,i,s,n,r){if(!r){const r=this.getAutoClosingPairClose(e,t,i,s,n);if(null!==r)return this._runAutoClosingOpenCharType(i,s,n,r)}}static _runAutoClosingOpenCharType(e,t,i,s){const n=[];for(let r=0,o=e.length;r<o;r++){const o=e[r];n[r]=new A(o,t,!i,s)}return new l.vY(4,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static getAutoClosingPairClose(e,t,i,s,n){for(const l of i)if(!l.isEmpty())return null;const r=i.map((e=>{const t=e.getPosition();return n?{lineNumber:t.lineNumber,beforeColumn:t.column-s.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}})),o=this._findAutoClosingPairOpen(e,t,r.map((e=>new d.y(e.lineNumber,e.beforeColumn))),s);if(!o)return null;let a,h;if((0,l.vG)(s))a=e.autoClosingQuotes,h=e.shouldAutoCloseBefore.quote;else{!!e.blockCommentStartToken&&o.open.includes(e.blockCommentStartToken)?(a=e.autoClosingComments,h=e.shouldAutoCloseBefore.comment):(a=e.autoClosingBrackets,h=e.shouldAutoCloseBefore.bracket)}if("never"===a)return null;const u=this._findContainedAutoClosingPair(e,o),g=u?u.close:"";let m=!0;for(const l of r){const{lineNumber:i,beforeColumn:n,afterColumn:r}=l,d=t.getLineContent(i),u=d.substring(0,n-1),f=d.substring(r-1);if(f.startsWith(g)||(m=!1),f.length>0){const t=f.charAt(0);if(!this._isBeforeClosingBrace(e,f)&&!h(t))return null}if(1===o.open.length&&("'"===s||'"'===s)&&"always"!==a){const t=(0,c.i)(e.wordSeparators,[]);if(u.length>0){const e=u.charCodeAt(u.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(i))return null;t.tokenization.forceTokenization(i);const _=t.tokenization.getLineTokens(i),v=(0,p.BQ)(_,n-1);if(!o.shouldAutoClose(v,n-v.firstCharOffset))return null;const C=o.findNeutralCharacter();if(C){const e=t.tokenization.getTokenTypeIfInsertingCharacter(i,n,C);if(!o.isOK(e))return null}}return m?o.close.substring(0,o.close.length-g.length):o.close}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),s=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let n=null;for(const r of s)r.open!==t.open&&t.open.includes(r.open)&&t.close.endsWith(r.close)&&(!n||r.open.length>n.open.length)&&(n=r);return n}static _findAutoClosingPairOpen(e,t,i,s){const n=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(s);if(!n)return null;let r=null;for(const o of n)if(null===r||o.open.length>r.open.length){let e=!0;for(const n of i){if(t.getValueInRange(new h.Q(n.lineNumber,n.column-o.open.length+1,n.lineNumber,n.column))+s!==o.open){e=!1;break}}e&&(r=o)}return r}static _isBeforeClosingBrace(e,t){const i=t.charAt(0),s=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[],n=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],r=s.some((e=>t.startsWith(e.open))),o=n.some((e=>t.startsWith(e.close)));return!r&&o}}class E{static getEdits(e,t,i,s,n){if(!n&&this._isSurroundSelectionType(e,t,i,s))return this._runSurroundSelectionType(e,i,s)}static _runSurroundSelectionType(e,t,i){const s=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],o=e.surroundingPairs[i];s[n]=new a.i(r,i,o)}return new l.vY(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isSurroundSelectionType(e,t,i,s){if(!B(e,s)||!e.surroundingPairs.hasOwnProperty(s))return!1;const n=(0,l.vG)(s);for(const r of i){if(r.isEmpty())return!1;let e=!0;for(let i=r.startLineNumber;i<=r.endLineNumber;i++){const s=t.getLineContent(i),n=i===r.startLineNumber?r.startColumn-1:0,o=i===r.endLineNumber?r.endColumn-1:s.length,a=s.substring(n,o);if(/[^ \t]/.test(a)){e=!1;break}}if(e)return!1;if(n&&r.startLineNumber===r.endLineNumber&&r.startColumn+1===r.endColumn){const e=t.getValueInRange(r);if((0,l.vG)(e))return!1}}return!0}}class S{static getEdits(e,t,i,s,n,r){if(!r&&this._isTypeInterceptorElectricChar(t,i,s)){const r=this._typeInterceptorElectricChar(e,t,i,s[0],n);if(r)return r}}static _isTypeInterceptorElectricChar(e,t,i){return!(1!==i.length||!t.tokenization.isCheapToTokenize(i[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(e,t,i,o,a){if(!t.electricChars.hasOwnProperty(a)||!o.isEmpty())return null;const c=o.getPosition();i.tokenization.forceTokenization(c.lineNumber);const d=i.tokenization.getLineTokens(c.lineNumber);let u;try{u=t.onElectricCharacter(a,d,c.column)}catch(g){return(0,s.dz)(g),null}if(!u)return null;if(u.matchOpenBracket){const s=(d.getLineContent()+a).lastIndexOf(u.matchOpenBracket)+1,o=i.bracketPairs.findMatchingBracketUp(u.matchOpenBracket,{lineNumber:c.lineNumber,column:s},500);if(o){if(o.startLineNumber===c.lineNumber)return null;const s=i.getLineContent(o.startLineNumber),d=n.UU(s),u=t.normalizeIndentation(d),g=i.getLineContent(c.lineNumber),p=i.getLineFirstNonWhitespaceColumn(c.lineNumber)||c.column,m=u+g.substring(p-1,c.column-1)+a,f=new h.Q(c.lineNumber,1,c.lineNumber,c.column),_=new r.iu(f,m);return new l.vY(I(m,e),[_],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}}class y{static getEdits(e,t,i){const s=[];for(let o=0,a=t.length;o<a;o++)s[o]=new r.iu(t[o],i);const n=I(i,e);return new l.vY(n,s,{shouldPushStackElementBefore:O(e,n),shouldPushStackElementAfter:!1})}}class w{static getEdits(e,t,i,s,n){if(!n&&"\n"===s){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=this._enter(e,t,!1,i[n]);return new l.vY(4,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}}static _enter(e,t,i,s){if(0===e.autoIndent)return F(s,"\n",i);if(!t.tokenization.isCheapToTokenize(s.getStartPosition().lineNumber)||1===e.autoIndent){const r=t.getLineContent(s.startLineNumber),o=n.UU(r).substring(0,s.startColumn-1);return F(s,"\n"+e.normalizeIndentation(o),i)}const o=(0,f.h)(e.autoIndent,t,s,e.languageConfigurationService);if(o){if(o.indentAction===u.l.None)return F(s,"\n"+e.normalizeIndentation(o.indentation+o.appendText),i);if(o.indentAction===u.l.Indent)return F(s,"\n"+e.normalizeIndentation(o.indentation+o.appendText),i);if(o.indentAction===u.l.IndentOutdent){const t=e.normalizeIndentation(o.indentation),n=e.normalizeIndentation(o.indentation+o.appendText),a="\n"+n+"\n"+t;return i?new r.q2(s,a,!0):new r.iP(s,a,-1,n.length-t.length,!0)}if(o.indentAction===u.l.Outdent){const t=H(e,o.indentation);return F(s,"\n"+e.normalizeIndentation(t+o.appendText),i)}}const a=t.getLineContent(s.startLineNumber),l=n.UU(a).substring(0,s.startColumn-1);if(e.autoIndent>=4){const o=(0,m.MU)(e.autoIndent,t,s,{unshiftIndent:t=>H(e,t),shiftIndent:t=>U(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(o){let a=e.visibleColumnFromColumn(t,s.getEndPosition());const l=s.endColumn,c=t.getLineContent(s.endLineNumber),h=n.HG(c);if(s=h>=0?s.setEndPosition(s.endLineNumber,Math.max(s.endColumn,h+1)):s.setEndPosition(s.endLineNumber,t.getLineMaxColumn(s.endLineNumber)),i)return new r.q2(s,"\n"+e.normalizeIndentation(o.afterEnter),!0);{let t=0;return l<=h+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(o.afterEnter).length-1,0)),new r.iP(s,"\n"+e.normalizeIndentation(o.afterEnter),0,t,!0)}}}return F(s,"\n"+e.normalizeIndentation(l),i)}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];const s=[];for(let n=0,o=i.length;n<o;n++){let o=i[n].positionLineNumber;if(1===o)s[n]=new r.q2(new h.Q(1,1,1,1),"\n");else{o--;const i=t.getLineMaxColumn(o);s[n]=this._enter(e,t,!1,new h.Q(o,i,o,i))}}return s}static lineInsertAfter(e,t,i){if(null===t||null===i)return[];const s=[];for(let n=0,r=i.length;n<r;n++){const r=i[n].positionLineNumber,o=t.getLineMaxColumn(r);s[n]=this._enter(e,t,!1,new h.Q(r,o,r,o))}return s}static lineBreakInsert(e,t,i){const s=[];for(let n=0,r=i.length;n<r;n++)s[n]=this._enter(e,t,!0,i[n]);return s}}class L{static getEdits(e,t,i,s,n,r){const o=this._distributePasteToCursors(e,i,s,n,r);return o?(i=i.sort(h.Q.compareRangesUsingStarts),this._distributedPaste(e,t,i,o)):this._simplePaste(e,t,i,s,n)}static _distributePasteToCursors(e,t,i,s,r){if(s)return null;if(1===t.length)return null;if(r&&r.length===t.length)return r;if("spread"===e.multiCursorPaste){10===i.charCodeAt(i.length-1)&&(i=i.substring(0,i.length-1)),13===i.charCodeAt(i.length-1)&&(i=i.substring(0,i.length-1));const e=n.uz(i);if(e.length===t.length)return e}return null}static _distributedPaste(e,t,i,s){const n=[];for(let o=0,a=i.length;o<a;o++)n[o]=new r.iu(i[o],s[o]);return new l.vY(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,i,s,n){const o=[];for(let a=0,l=i.length;a<l;a++){const e=i[a],t=e.getPosition();if(n&&!e.isEmpty()&&(n=!1),n&&s.indexOf("\n")!==s.length-1&&(n=!1),n){const i=new h.Q(t.lineNumber,1,t.lineNumber,1);o[a]=new r.ui(i,s,e,!0)}else o[a]=new r.iu(e,s)}return new l.vY(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}class R{static getEdits(e,t,i,s,n,r,o,a){const c=s.map((e=>this._compositionType(i,e,n,r,o,a)));return new l.vY(4,c,{shouldPushStackElementBefore:O(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,s,n,o){if(!t.isEmpty())return null;const a=t.getPosition(),l=Math.max(1,a.column-s),c=Math.min(e.getLineMaxColumn(a.lineNumber),a.column+n),d=new h.Q(a.lineNumber,l,a.lineNumber,c);return e.getValueInRange(d)===i&&0===o?null:new r.iP(d,i,0,o)}}class T{static getEdits(e,t,i){const s=[];for(let o=0,a=t.length;o<a;o++)s[o]=new r.iu(t[o],i);const n=I(i,e);return new l.vY(n,s,{shouldPushStackElementBefore:O(e,n),shouldPushStackElementAfter:!1})}}class x{static getCommands(e,t,i){const s=[];for(let n=0,a=i.length;n<a;n++){const a=i[n];if(a.isEmpty()){const i=t.getLineContent(a.startLineNumber);if(/^\s*$/.test(i)&&t.tokenization.isCheapToTokenize(a.startLineNumber)){let o=this._goodIndentForLine(e,t,a.startLineNumber);o=o||"\t";const l=e.normalizeIndentation(o);if(!i.startsWith(l)){s[n]=new r.iu(new h.Q(a.startLineNumber,1,a.startLineNumber,i.length+1),l,!0);continue}}s[n]=this._replaceJumpToNextIndent(e,t,a,!0)}else{if(a.startLineNumber===a.endLineNumber){const i=t.getLineMaxColumn(a.startLineNumber);if(1!==a.startColumn||a.endColumn!==i){s[n]=this._replaceJumpToNextIndent(e,t,a,!1);continue}}s[n]=new o.Y(a,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService)}}return s}static _goodIndentForLine(e,t,i){let s=null,r="";const o=(0,m.vn)(e.autoIndent,t,i,!1,e.languageConfigurationService);if(o)s=o.action,r=o.indentation;else if(i>1){let s;for(s=i-1;s>=1;s--){const e=t.getLineContent(s);if(n.lT(e)>=0)break}if(s<1)return null;const o=t.getLineMaxColumn(s),a=(0,f.h)(e.autoIndent,t,new h.Q(s,o,s,o),e.languageConfigurationService);a&&(r=a.indentation+a.appendText)}return s&&(s===u.l.Indent&&(r=U(e,r)),s===u.l.Outdent&&(r=H(e,r)),r=e.normalizeIndentation(r)),r||null}static _replaceJumpToNextIndent(e,t,i,s){let n="";const o=i.getStartPosition();if(e.insertSpaces){const i=e.visibleColumnFromColumn(t,o),s=e.indentSize,r=s-i%s;for(let e=0;e<r;e++)n+=" "}else n="\t";return new r.iu(i,n,s)}}class k extends r.iP{constructor(e,t,i,s,n,r){super(e,t,i,s),this._openCharacter=n,this._closeCharacter=r,this.closeCharacterRange=null,this.enclosingRange=null}_computeCursorStateWithRange(e,t,i){return this.closeCharacterRange=new h.Q(t.startLineNumber,t.endColumn-this._closeCharacter.length,t.endLineNumber,t.endColumn),this.enclosingRange=new h.Q(t.startLineNumber,t.endColumn-this._openCharacter.length-this._closeCharacter.length,t.endLineNumber,t.endColumn),super.computeCursorState(e,i)}}class A extends k{constructor(e,t,i,s){super(e,(i?t:"")+s,0,-s.length,t,s)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._computeCursorStateWithRange(e,i,t)}}class N extends k{constructor(e,t,i,s){const n=i+s;super(t,n,0,i.length,i,s),this._autoIndentationEdit=e,this._autoClosingEdit={range:t,text:n}}getEditOperations(e,t){t.addTrackedEditOperation(this._autoIndentationEdit.range,this._autoIndentationEdit.text),t.addTrackedEditOperation(this._autoClosingEdit.range,this._autoClosingEdit.text)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2!==i.length)throw new Error("There should be two inverse edit operations!");const s=i[0].range,n=i[1].range,r=s.plusRange(n);return this._computeCursorStateWithRange(e,r,t)}}function I(e,t){return" "===e?5===t||6===t?6:5:4}function O(e,t){return!(!M(e)||M(t))||5!==e&&D(e)!==D(t)}function D(e){return 6===e||5===e?"space":e}function M(e){return 4===e||5===e||6===e}function P(e,t,i,s,n){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(n))return!1;for(let r=0,o=i.length;r<o;r++){const o=i[r];if(!o.isEmpty())return!1;const a=o.getPosition(),c=t.getLineContent(a.lineNumber);if(c.charAt(a.column-1)!==n)return!1;const h=(0,l.vG)(n);if(92===(a.column>2?c.charCodeAt(a.column-2):0)&&h)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=s.length;t<i;t++){const i=s[t];if(a.lineNumber===i.startLineNumber&&a.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}function F(e,t,i){return i?new r.q2(e,t,!0):new r.iu(e,t,!0)}function U(e,t,i){return i=i||1,o.Y.shiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}function H(e,t,i){return i=i||1,o.Y.unshiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}function B(e,t){return(0,l.vG)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}},49265:(e,t,i)=>{"use strict";i.d(t,{T:()=>a,v:()=>l});var s=i(7936),n=i(71964),r=i(32799),o=i(26685);class a{static indent(e,t,i){if(null===t||null===i)return[];const n=[];for(let r=0,o=i.length;r<o;r++)n[r]=new s.Y(i[r],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static outdent(e,t,i){const n=[];for(let r=0,o=i.length;r<o;r++)n[r]=new s.Y(i[r],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static paste(e,t,i,s,n,r){return o.Dr.getEdits(e,t,i,s,n,r)}static tab(e,t,i){return o.h0.getCommands(e,t,i)}static compositionType(e,t,i,s,n,r,a,l){return o.YA.getEdits(e,t,i,s,n,r,a,l)}static compositionEndWithInterceptors(e,t,i,s,a,l){if(!s)return null;let c=null;for(const n of s)if(null===c)c=n.insertedText;else if(c!==n.insertedText)return null;if(!c||1!==c.length)return null;const h=c;let d=!1;for(const n of s)if(0!==n.deletedText.length){d=!0;break}if(d){if(!(0,o.ey)(t,h)||!t.surroundingPairs.hasOwnProperty(h))return null;const e=(0,r.vG)(h);for(const t of s){if(0!==t.deletedSelectionStart||t.deletedSelectionEnd!==t.deletedText.length)return null;if(/^[ \t]+$/.test(t.deletedText))return null;if(e&&(0,r.vG)(t.deletedText))return null}const i=[];for(const t of a){if(!t.isEmpty())return null;i.push(t.getPosition())}if(i.length!==s.length)return null;const l=[];for(let r=0,o=i.length;r<o;r++)l.push(new n.y(i[r],s[r].deletedText,t.surroundingPairs[h]));return new r.vY(4,l,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const u=o.K4.getEdits(t,i,a,l,h);if(void 0!==u)return u;const g=o.oi.getEdits(t,i,a,h,!0,!1);return void 0!==g?g:null}static typeWithInterceptors(e,t,i,s,n,r,a){const l=o.AO.getEdits(i,s,n,a,e);if(void 0!==l)return l;const c=o.dU.getEdits(i,s,n,a,e);if(void 0!==c)return c;const h=o.sx.getEdits(t,i,s,n,r,a);if(void 0!==h)return h;const d=o.oi.getEdits(i,s,n,a,!1,e);if(void 0!==d)return d;const u=o.is.getEdits(i,s,n,a,e);if(void 0!==u)return u;const g=o.kr.getEdits(t,i,s,n,a,e);return void 0!==g?g:o.Ls.getEdits(t,n,a)}static typeWithoutInterceptors(e,t,i,s,n){return o.UN.getEdits(e,s,n)}}class l{constructor(e,t,i,s,n,r){this.deletedText=e,this.deletedSelectionStart=t,this.deletedSelectionEnd=i,this.insertedText=s,this.insertedSelectionStart=n,this.insertedSelectionEnd=r}}},97681:(e,t,i)=>{"use strict";i.d(t,{c:()=>h,z:()=>c});var s=i(91508),n=i(32799),r=i(1226),o=i(81782),a=i(83069),l=i(36677);class c{static _createWord(e,t,i,s,n){return{start:s,end:n,wordType:t,nextCharClass:i}}static _createIntlWord(e,t){return{start:e.index,end:e.index+e.segment.length,wordType:1,nextCharClass:t}}static _findPreviousWordOnLine(e,t,i){const s=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(s,e,i)}static _doFindPreviousWordOnLine(e,t,i){let s=0;const n=t.findPrevIntlWordBeforeOrAtOffset(e,i.column-2);for(let r=i.column-2;r>=0;r--){const i=e.charCodeAt(r),o=t.get(i);if(n&&r===n.index)return this._createIntlWord(n,o);if(0===o){if(2===s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1));s=1}else if(2===o){if(1===s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1));s=2}else if(1===o&&0!==s)return this._createWord(e,s,o,r+1,this._findEndOfWord(e,t,s,r+1))}return 0!==s?this._createWord(e,s,1,0,this._findEndOfWord(e,t,s,0)):null}static _findEndOfWord(e,t,i,s){const n=t.findNextIntlWordAtOrAfterOffset(e,s),r=e.length;for(let o=s;o<r;o++){const s=e.charCodeAt(o),r=t.get(s);if(n&&o===n.index+n.segment.length)return o;if(1===r)return o;if(1===i&&2===r)return o;if(2===i&&0===r)return o}return r}static _findNextWordOnLine(e,t,i){const s=t.getLineContent(i.lineNumber);return this._doFindNextWordOnLine(s,e,i)}static _doFindNextWordOnLine(e,t,i){let s=0;const n=e.length,r=t.findNextIntlWordAtOrAfterOffset(e,i.column-1);for(let o=i.column-1;o<n;o++){const i=e.charCodeAt(o),n=t.get(i);if(r&&o===r.index)return this._createIntlWord(r,n);if(0===n){if(2===s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o);s=1}else if(2===n){if(1===s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o);s=2}else if(1===n&&0!==s)return this._createWord(e,s,n,this._findStartOfWord(e,t,s,o-1),o)}return 0!==s?this._createWord(e,s,1,this._findStartOfWord(e,t,s,n-1),n):null}static _findStartOfWord(e,t,i,s){const n=t.findPrevIntlWordBeforeOrAtOffset(e,s);for(let r=s;r>=0;r--){const s=e.charCodeAt(r),o=t.get(s);if(n&&r===n.index)return r;if(1===o)return r+1;if(1===i&&2===o)return r+1;if(2===i&&0===o)return r+1}return 0}static moveWordLeft(e,t,i,s,n){let r=i.lineNumber,o=i.column;1===o&&r>1&&(r-=1,o=t.getLineMaxColumn(r));let l=c._findPreviousWordOnLine(e,t,new a.y(r,o));if(0===s)return new a.y(r,l?l.start+1:1);if(1===s)return!n&&l&&2===l.wordType&&l.end-l.start===1&&0===l.nextCharClass&&(l=c._findPreviousWordOnLine(e,t,new a.y(r,l.start+1))),new a.y(r,l?l.start+1:1);if(3===s){for(;l&&2===l.wordType;)l=c._findPreviousWordOnLine(e,t,new a.y(r,l.start+1));return new a.y(r,l?l.start+1:1)}return l&&o<=l.end+1&&(l=c._findPreviousWordOnLine(e,t,new a.y(r,l.start+1))),new a.y(r,l?l.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.y(i-1,e.getLineMaxColumn(i-1)):t;const r=e.getLineContent(i);for(let o=t.column-1;o>1;o--){const e=r.charCodeAt(o-2),t=r.charCodeAt(o-1);if(95===e&&95!==t)return new a.y(i,o);if(45===e&&45!==t)return new a.y(i,o);if((s.Lv(e)||s.DB(e))&&s.Wv(t))return new a.y(i,o);if(s.Wv(e)&&s.Wv(t)&&o+1<n){const e=r.charCodeAt(o);if(s.Lv(e)||s.DB(e))return new a.y(i,o)}}return new a.y(i,1)}static moveWordRight(e,t,i,s){let n=i.lineNumber,r=i.column,o=!1;r===t.getLineMaxColumn(n)&&n<t.getLineCount()&&(o=!0,n+=1,r=1);let l=c._findNextWordOnLine(e,t,new a.y(n,r));if(2===s)l&&2===l.wordType&&l.end-l.start===1&&0===l.nextCharClass&&(l=c._findNextWordOnLine(e,t,new a.y(n,l.end+1))),r=l?l.end+1:t.getLineMaxColumn(n);else if(3===s){for(o&&(r=0);l&&(2===l.wordType||l.start+1<=r);)l=c._findNextWordOnLine(e,t,new a.y(n,l.end+1));r=l?l.start+1:t.getLineMaxColumn(n)}else l&&!o&&r>=l.start+1&&(l=c._findNextWordOnLine(e,t,new a.y(n,l.end+1))),r=l?l.start+1:t.getLineMaxColumn(n);return new a.y(n,r)}static _moveWordPartRight(e,t){const i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===n)return i<e.getLineCount()?new a.y(i+1,1):t;const r=e.getLineContent(i);for(let o=t.column+1;o<n;o++){const e=r.charCodeAt(o-2),t=r.charCodeAt(o-1);if(95!==e&&95===t)return new a.y(i,o);if(45!==e&&45===t)return new a.y(i,o);if((s.Lv(e)||s.DB(e))&&s.Wv(t))return new a.y(i,o);if(s.Wv(e)&&s.Wv(t)&&o+1<n){const e=r.charCodeAt(o);if(s.Lv(e)||s.DB(e))return new a.y(i,o)}}return new a.y(i,n)}static _deleteWordLeftWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=t.column-2,r=s.lT(i,n);return r+1<n?new l.Q(t.lineNumber,r+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){const i=e.wordSeparators,s=e.model,n=e.selection,o=e.whitespaceHeuristics;if(!n.isEmpty())return n;if(r.g.isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){const t=e.selection.getPosition();return new l.Q(t.lineNumber,t.column-1,t.lineNumber,t.column+1)}const h=new a.y(n.positionLineNumber,n.positionColumn);let d=h.lineNumber,u=h.column;if(1===d&&1===u)return null;if(o){const e=this._deleteWordLeftWhitespace(s,h);if(e)return e}let g=c._findPreviousWordOnLine(i,s,h);return 0===t?g?u=g.start+1:u>1?u=1:(d--,u=s.getLineMaxColumn(d)):(g&&u<=g.end+1&&(g=c._findPreviousWordOnLine(i,s,new a.y(d,g.start+1))),g?u=g.end+1:u>1?u=1:(d--,u=s.getLineMaxColumn(d))),new l.Q(d,u,h.lineNumber,h.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const s=new a.y(i.positionLineNumber,i.positionColumn),n=this._deleteInsideWordWhitespace(t,s);return n||this._deleteInsideWordDetermineDeleteRange(e,t,s)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),s=i.length;if(0===s)return null;let n=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,n))return null;let r=Math.min(t.column-1,s-1);if(!this._charAtIsWhitespace(i,r))return null;for(;n>0&&this._charAtIsWhitespace(i,n-1);)n--;for(;r+1<s&&this._charAtIsWhitespace(i,r+1);)r++;return new l.Q(t.lineNumber,n+1,t.lineNumber,r+2)}static _deleteInsideWordDetermineDeleteRange(e,t,i){const s=t.getLineContent(i.lineNumber),n=s.length;if(0===n)return i.lineNumber>1?new l.Q(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<t.getLineCount()?new l.Q(i.lineNumber,1,i.lineNumber+1,1):new l.Q(i.lineNumber,1,i.lineNumber,1);const r=e=>e.start+1<=i.column&&i.column<=e.end+1,o=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new l.Q(i.lineNumber,e,i.lineNumber,t)),a=e=>{let t=e.start+1,i=e.end+1,r=!1;for(;i-1<n&&this._charAtIsWhitespace(s,i-1);)r=!0,i++;if(!r)for(;t>1&&this._charAtIsWhitespace(s,t-2);)t--;return o(t,i)},h=c._findPreviousWordOnLine(e,t,i);if(h&&r(h))return a(h);const d=c._findNextWordOnLine(e,t,i);return d&&r(d)?a(d):h&&d?o(h.end+1,d.start+1):h?o(h.start+1,h.end+1):d?o(d.start+1,d.end+1):o(1,n+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),s=c._moveWordPartLeft(e,i);return new l.Q(i.lineNumber,i.column,s.lineNumber,s.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let s=t;s<i;s++){const t=e.charAt(s);if(" "!==t&&"\t"!==t)return s}return i}static _deleteWordRightWhitespace(e,t){const i=e.getLineContent(t.lineNumber),s=t.column-1,n=this._findFirstNonWhitespaceChar(i,s);return s+1<n?new l.Q(t.lineNumber,t.column,t.lineNumber,n+1):null}static deleteWordRight(e,t){const i=e.wordSeparators,s=e.model,n=e.selection,r=e.whitespaceHeuristics;if(!n.isEmpty())return n;const o=new a.y(n.positionLineNumber,n.positionColumn);let h=o.lineNumber,d=o.column;const u=s.getLineCount(),g=s.getLineMaxColumn(h);if(h===u&&d===g)return null;if(r){const e=this._deleteWordRightWhitespace(s,o);if(e)return e}let p=c._findNextWordOnLine(i,s,o);return 2===t?p?d=p.end+1:d<g||h===u?d=g:(h++,p=c._findNextWordOnLine(i,s,new a.y(h,1)),d=p?p.start+1:s.getLineMaxColumn(h)):(p&&d>=p.start+1&&(p=c._findNextWordOnLine(i,s,new a.y(h,p.end+1))),p?d=p.start+1:d<g||h===u?d=g:(h++,p=c._findNextWordOnLine(i,s,new a.y(h,1)),d=p?p.start+1:s.getLineMaxColumn(h))),new l.Q(h,d,o.lineNumber,o.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),s=c._moveWordPartRight(e,i);return new l.Q(i.lineNumber,i.column,s.lineNumber,s.column)}static _createWordAtPosition(e,t,i){const s=new l.Q(t,i.start+1,t,i.end+1);return{word:e.getValueInRange(s),startColumn:s.startColumn,endColumn:s.endColumn}}static getWordAtPosition(e,t,i,s){const n=(0,o.i)(t,i),r=c._findPreviousWordOnLine(n,e,s);if(r&&1===r.wordType&&r.start<=s.column-1&&s.column-1<=r.end)return c._createWordAtPosition(e,s.lineNumber,r);const a=c._findNextWordOnLine(n,e,s);return a&&1===a.wordType&&a.start<=s.column-1&&s.column-1<=a.end?c._createWordAtPosition(e,s.lineNumber,a):null}static word(e,t,i,s,r){const h=(0,o.i)(e.wordSeparators,e.wordSegmenterLocales),d=c._findPreviousWordOnLine(h,t,r),u=c._findNextWordOnLine(h,t,r);if(!s){let e,i;return d&&1===d.wordType&&d.start<=r.column-1&&r.column-1<=d.end?(e=d.start+1,i=d.end+1):u&&1===u.wordType&&u.start<=r.column-1&&r.column-1<=u.end?(e=u.start+1,i=u.end+1):(e=d?d.end+1:1,i=u?u.start+1:t.getLineMaxColumn(r.lineNumber)),new n.mG(new l.Q(r.lineNumber,e,r.lineNumber,i),1,0,new a.y(r.lineNumber,i),0)}let g,p;d&&1===d.wordType&&d.start<r.column-1&&r.column-1<d.end?(g=d.start+1,p=d.end+1):u&&1===u.wordType&&u.start<r.column-1&&r.column-1<u.end?(g=u.start+1,p=u.end+1):(g=r.column,p=r.column);const m=r.lineNumber;let f;if(i.selectionStart.containsPosition(r))f=i.selectionStart.endColumn;else if(r.isBeforeOrEqual(i.selectionStart.getStartPosition())){f=g;const e=new a.y(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.endColumn)}else{f=p;const e=new a.y(m,f);i.selectionStart.containsPosition(e)&&(f=i.selectionStart.startColumn)}return i.move(!0,m,f,0)}}class h extends c{static deleteWordPartLeft(e){const t=d([c.deleteWordLeft(e,0),c.deleteWordLeft(e,2),c._deleteWordPartLeft(e.model,e.selection)]);return t.sort(l.Q.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){const t=d([c.deleteWordRight(e,0),c.deleteWordRight(e,2),c._deleteWordPartRight(e.model,e.selection)]);return t.sort(l.Q.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,i,s){const n=d([c.moveWordLeft(e,t,i,0,s),c.moveWordLeft(e,t,i,2,s),c._moveWordPartLeft(t,i)]);return n.sort(a.y.compare),n[2]}static moveWordPartRight(e,t,i){const s=d([c.moveWordRight(e,t,i,0),c.moveWordRight(e,t,i,2),c._moveWordPartRight(t,i)]);return s.sort(a.y.compare),s[0]}}function d(e){return e.filter((e=>Boolean(e)))}},32799:(e,t,i)=>{"use strict";i.d(t,{MF:()=>g,d$:()=>u,mG:()=>f,vG:()=>v,vY:()=>_});var s=i(83069),n=i(36677),r=i(75326),o=i(12296),a=i(1245),l=i(93895);const c=()=>!0,h=()=>!1,d=e=>" "===e||"\t"===e;class u{static shouldRecreate(e){return e.hasChanged(146)||e.hasChanged(132)||e.hasChanged(37)||e.hasChanged(77)||e.hasChanged(79)||e.hasChanged(80)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(9)||e.hasChanged(10)||e.hasChanged(14)||e.hasChanged(129)||e.hasChanged(50)||e.hasChanged(92)||e.hasChanged(131)}constructor(e,t,i,s){this.languageConfigurationService=s,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const n=i.options,r=n.get(146),o=n.get(50);this.readOnly=n.get(92),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=n.get(117),this.lineHeight=o.lineHeight,this.typicalHalfwidthCharacterWidth=o.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=n.get(129),this.wordSeparators=n.get(132),this.emptySelectionClipboard=n.get(37),this.copyWithSyntaxHighlighting=n.get(25),this.multiCursorMergeOverlapping=n.get(77),this.multiCursorPaste=n.get(79),this.multiCursorLimit=n.get(80),this.autoClosingBrackets=n.get(6),this.autoClosingComments=n.get(7),this.autoClosingQuotes=n.get(11),this.autoClosingDelete=n.get(9),this.autoClosingOvertype=n.get(10),this.autoSurround=n.get(14),this.autoIndent=n.get(12),this.wordSegmenterLocales=n.get(131),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(e,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const a=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(a)for(const c of a)this.surroundingPairs[c.open]=c.close;const l=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=l?.blockCommentStartToken??null}get electricChars(){if(!this._electricChars){this._electricChars={};const e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter?.getElectricCharacters();if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}onElectricCharacter(e,t,i){const s=(0,o.BQ)(t,i-1),n=this.languageConfigurationService.getLanguageConfiguration(s.languageId).electricCharacter;return n?n.onElectricCharacter(e,s,i-s.firstCharOffset):null}normalizeIndentation(e){return(0,l.P)(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,i){switch(t){case"beforeWhitespace":return d;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,i);case"always":return c;case"never":return h}}_getLanguageDefinedShouldAutoClose(e,t){const i=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return e=>-1!==i.indexOf(e)}visibleColumnFromColumn(e,t){return a.A.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const s=a.A.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),n=e.getLineMinColumn(t);if(s<n)return n;const r=e.getLineMaxColumn(t);return s>r?r:s}}class g{static fromModelState(e){return new p(e)}static fromViewState(e){return new m(e)}static fromModelSelection(e){const t=r.L.liftSelection(e),i=new f(n.Q.fromPositions(t.getSelectionStart()),0,0,t.getPosition(),0);return g.fromModelState(i)}static fromModelSelections(e){const t=[];for(let i=0,s=e.length;i<s;i++)t[i]=this.fromModelSelection(e[i]);return t}constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}equals(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)}}class p{constructor(e){this.modelState=e,this.viewState=null}}class m{constructor(e){this.modelState=null,this.viewState=e}}class f{constructor(e,t,i,s,n){this.selectionStart=e,this.selectionStartKind=t,this.selectionStartLeftoverVisibleColumns=i,this.position=s,this.leftoverVisibleColumns=n,this._singleCursorStateBrand=void 0,this.selection=f._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.selectionStartKind===e.selectionStartKind&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,i,r){return e?new f(this.selectionStart,this.selectionStartKind,this.selectionStartLeftoverVisibleColumns,new s.y(t,i),r):new f(new n.Q(t,i,t,i),0,r,new s.y(t,i),r)}static _computeSelection(e,t){return e.isEmpty()||!t.isBeforeOrEqual(e.getStartPosition())?r.L.fromPositions(e.getStartPosition(),t):r.L.fromPositions(e.getEndPosition(),t)}}class _{constructor(e,t,i){this._editOperationResultBrand=void 0,this.type=e,this.commands=t,this.shouldPushStackElementBefore=i.shouldPushStackElementBefore,this.shouldPushStackElementAfter=i.shouldPushStackElementAfter}}function v(e){return"'"===e||'"'===e||"`"===e}},68938:(e,t,i)=>{"use strict";i.d(t,{$8:()=>a,SL:()=>o,_3:()=>l,aY:()=>h,uY:()=>c});var s=i(25890),n=i(64383),r=i(74444);class o{static trivial(e,t){return new o([new a(r.L.ofLength(e.length),r.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new o([new a(r.L.ofLength(e.length),r.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class a{static invert(e,t){const i=[];return(0,s.pN)(e,((e,s)=>{i.push(a.fromOffsetPairs(e?e.getEndExclusives():l.zero,s?s.getStarts():new l(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),i}static fromOffsetPairs(e,t){return new a(new r.L(e.offset1,t.offset1),new r.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const i of e){if(t&&!(t.seq1Range.endExclusive<=i.seq1Range.start&&t.seq2Range.endExclusive<=i.seq2Range.start))throw new n.D7("Sequence diffs must be sorted");t=i}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new a(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new a(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new a(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new a(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new a(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),i=this.seq2Range.intersect(e.seq2Range);if(t&&i)return new a(t,i)}getStarts(){return new l(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new l(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class l{static{this.zero=new l(0,0)}static{this.max=new l(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new l(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class c{static{this.instance=new c}isValid(){return!0}}class h{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new n.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}},26746:(e,t,i)=>{"use strict";i.d(t,{D8:()=>I});var s=i(25890),n=i(66782),r=i(86571),o=i(74444),a=i(36677),l=i(68938);class c{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,i){this.array[e+t*this.width]=i}}function h(e){return 32===e||9===e}class d{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,i){this.range=e,this.lines=t,this.source=i,this.histogram=[];let s=0;for(let n=e.startLineNumber-1;n<e.endLineNumberExclusive-1;n++){const e=t[n];for(let t=0;t<e.length;t++){s++;const i=e[t],n=d.getKey(i);this.histogram[n]=(this.histogram[n]||0)+1}s++;const i=d.getKey("\n");this.histogram[i]=(this.histogram[i]||0)+1}this.totalCount=s}computeSimilarity(e){let t=0;const i=Math.max(this.histogram.length,e.histogram.length);for(let s=0;s<i;s++)t+=Math.abs((this.histogram[s]??0)-(e.histogram[s]??0));return 1-t/(this.totalCount+e.totalCount)}}class u{compute(e,t,i=l.uY.instance,s){if(0===e.length||0===t.length)return l.SL.trivial(e,t);const n=new c(e.length,t.length),r=new c(e.length,t.length),a=new c(e.length,t.length);for(let o=0;o<e.length;o++)for(let c=0;c<t.length;c++){if(!i.isValid())return l.SL.trivialTimedOut(e,t);const h=0===o?0:n.get(o-1,c),d=0===c?0:n.get(o,c-1);let u;e.getElement(o)===t.getElement(c)?(u=0===o||0===c?0:n.get(o-1,c-1),o>0&&c>0&&3===r.get(o-1,c-1)&&(u+=a.get(o-1,c-1)),u+=s?s(o,c):1):u=-1;const g=Math.max(h,d,u);if(g===u){const e=o>0&&c>0?a.get(o-1,c-1):0;a.set(o,c,e+1),r.set(o,c,3)}else g===h?(a.set(o,c,0),r.set(o,c,1)):g===d&&(a.set(o,c,0),r.set(o,c,2));n.set(o,c,g)}const h=[];let d=e.length,u=t.length;function g(e,t){e+1===d&&t+1===u||h.push(new l.$8(new o.L(e+1,d),new o.L(t+1,u))),d=e,u=t}let p=e.length-1,m=t.length-1;for(;p>=0&&m>=0;)3===r.get(p,m)?(g(p,m),p--,m--):1===r.get(p,m)?p--:m--;return g(-1,-1),h.reverse(),new l.SL(h,!1)}}class g{compute(e,t,i=l.uY.instance){if(0===e.length||0===t.length)return l.SL.trivial(e,t);const s=e,n=t;function r(e,t){for(;e<s.length&&t<n.length&&s.getElement(e)===n.getElement(t);)e++,t++;return e}let a=0;const c=new m;c.set(0,r(0,0));const h=new f;h.set(0,0===c.get(0)?null:new p(null,0,0,c.get(0)));let d=0;e:for(;;){if(a++,!i.isValid())return l.SL.trivialTimedOut(s,n);const e=-Math.min(a,n.length+a%2),t=Math.min(a,s.length+a%2);for(d=e;d<=t;d+=2){let i=0;const o=d===t?-1:c.get(d+1),a=d===e?-1:c.get(d-1)+1;i++;const l=Math.min(Math.max(o,a),s.length),u=l-d;if(i++,l>s.length||u>n.length)continue;const g=r(l,u);c.set(d,g);const m=l===o?h.get(d+1):h.get(d-1);if(h.set(d,g!==l?new p(m,l,u,g-l):m),c.get(d)===s.length&&c.get(d)-d===n.length)break e}}let u=h.get(d);const g=[];let _=s.length,v=n.length;for(;;){const e=u?u.x+u.length:0,t=u?u.y+u.length:0;if(e===_&&t===v||g.push(new l.$8(new o.L(e,_),new o.L(t,v))),!u)break;_=u.x,v=u.y,u=u.prev}return g.reverse(),new l.SL(g,!1)}}class p{constructor(e,t,i,s){this.prev=e,this.x=t,this.y=i,this.length=s}}class m{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class f{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}var _=i(87723),v=i(46041),C=i(74320),b=i(83069);class E{constructor(e,t,i){this.lines=e,this.range=t,this.considerWhitespaceChanges=i,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let s=this.range.startLineNumber;s<=this.range.endLineNumber;s++){let t=e[s-1],n=0;s===this.range.startLineNumber&&this.range.startColumn>1&&(n=this.range.startColumn-1,t=t.substring(n)),this.lineStartOffsets.push(n);let r=0;if(!i){const e=t.trimStart();r=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(r);const o=s===this.range.endLineNumber?Math.min(this.range.endColumn-1-n-r,t.length):t.length;for(let e=0;e<o;e++)this.elements.push(t.charCodeAt(e));s<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new o.L(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=L(e>0?this.elements[e-1]:-1),i=L(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===i)return 0;if(8===t)return 150;let s=0;return t!==i&&(s+=10,0===t&&1===i&&(s+=1)),s+=w(t),s+=w(i),s}translateOffset(e,t="right"){const i=(0,v.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),s=e-this.firstElementOffsetByLineIdx[i];return new b.y(this.range.startLineNumber+i,1+this.lineStartOffsets[i]+s+(0===s&&"left"===t?0:this.trimmedWsLengthsByLineIdx[i]))}translateRange(e){const t=this.translateOffset(e.start,"right"),i=this.translateOffset(e.endExclusive,"left");return i.isBefore(t)?a.Q.fromPositions(i,i):a.Q.fromPositions(t,i)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!S(this.elements[e]))return;let t=e;for(;t>0&&S(this.elements[t-1]);)t--;let i=e;for(;i<this.elements.length&&S(this.elements[i]);)i++;return new o.L(t,i)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){const t=(0,v.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,i=(0,v.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new o.L(t,i)}}function S(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const y={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function w(e){return y[e]}function L(e){return 10===e?8:13===e?7:h(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function R(e,t,i,n,o,a){let{moves:l,excludedChanges:c}=function(e,t,i,s){const n=[],r=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new d(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new d(e.modified,i,e)))),a=new Set;for(const l of r){let e,t=-1;for(const i of o){const s=l.computeSimilarity(i);s>t&&(t=s,e=i)}if(t>.9&&e&&(o.delete(e),n.push(new _.WL(l.range,e.range)),a.add(l.source),a.add(e.source)),!s.isValid())return{moves:n,excludedChanges:a}}return{moves:n,excludedChanges:a}}(e,t,i,a);if(!a.isValid())return[];const h=function(e,t,i,n,o,a){const l=[],c=new C.db;for(const s of e)for(let e=s.original.startLineNumber;e<s.original.endLineNumberExclusive-2;e++){const i=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;c.add(i,{range:new r.M(e,e+3)})}const h=[];e.sort((0,s.VE)((e=>e.modified.startLineNumber),s.U9));for(const s of e){let e=[];for(let t=s.modified.startLineNumber;t<s.modified.endLineNumberExclusive-2;t++){const s=`${i[t-1]}:${i[t+1-1]}:${i[t+2-1]}`,n=new r.M(t,t+3),o=[];c.forEach(s,(({range:t})=>{for(const s of e)if(s.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&s.modifiedLineRange.endLineNumberExclusive+1===n.endLineNumberExclusive)return s.originalLineRange=new r.M(s.originalLineRange.startLineNumber,t.endLineNumberExclusive),s.modifiedLineRange=new r.M(s.modifiedLineRange.startLineNumber,n.endLineNumberExclusive),void o.push(s);const i={modifiedLineRange:n,originalLineRange:t};h.push(i),o.push(i)})),e=o}if(!a.isValid())return[]}h.sort((0,s.Hw)((0,s.VE)((e=>e.modifiedLineRange.length),s.U9)));const d=new r.S,u=new r.S;for(const s of h){const e=s.modifiedLineRange.startLineNumber-s.originalLineRange.startLineNumber,t=d.subtractFrom(s.modifiedLineRange),i=u.subtractFrom(s.originalLineRange).getWithDelta(e),n=t.getIntersection(i);for(const s of n.ranges){if(s.length<3)continue;const t=s,i=s.delta(-e);l.push(new _.WL(i,t)),d.addRange(t),u.addRange(i)}}l.sort((0,s.VE)((e=>e.original.startLineNumber),s.U9));const g=new v.vJ(e);for(let s=0;s<l.length;s++){const t=l[s],i=g.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),c=(0,v.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),h=Math.max(t.original.startLineNumber-i.original.startLineNumber,t.modified.startLineNumber-c.modified.startLineNumber),p=g.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=(0,v.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),f=Math.max(p.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let C,b;for(C=0;C<h;C++){const e=t.original.startLineNumber-C-1,i=t.modified.startLineNumber-C-1;if(e>n.length||i>o.length)break;if(d.contains(i)||u.contains(e))break;if(!T(n[e-1],o[i-1],a))break}for(C>0&&(u.addRange(new r.M(t.original.startLineNumber-C,t.original.startLineNumber)),d.addRange(new r.M(t.modified.startLineNumber-C,t.modified.startLineNumber))),b=0;b<f;b++){const e=t.original.endLineNumberExclusive+b,i=t.modified.endLineNumberExclusive+b;if(e>n.length||i>o.length)break;if(d.contains(i)||u.contains(e))break;if(!T(n[e-1],o[i-1],a))break}b>0&&(u.addRange(new r.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+b)),d.addRange(new r.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+b))),(C>0||b>0)&&(l[s]=new _.WL(new r.M(t.original.startLineNumber-C,t.original.endLineNumberExclusive+b),new r.M(t.modified.startLineNumber-C,t.modified.endLineNumberExclusive+b)))}return l}(e.filter((e=>!c.has(e))),n,o,t,i,a);return(0,s.E4)(l,h),l=function(e){if(0===e.length)return e;e.sort((0,s.VE)((e=>e.original.startLineNumber),s.U9));const t=[e[0]];for(let i=1;i<e.length;i++){const s=t[t.length-1],n=e[i],r=n.original.startLineNumber-s.original.endLineNumberExclusive,o=n.modified.startLineNumber-s.modified.endLineNumberExclusive;r>=0&&o>=0&&r+o<=2?t[t.length-1]=s.join(n):t.push(n)}return t}(l),l=l.filter((e=>{const i=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return i.join("\n").length>=15&&function(e,t){let i=0;for(const s of e)t(s)&&i++;return i}(i,(e=>e.length>=2))>=2})),l=function(e,t){const i=new v.vJ(e);return t=t.filter((t=>(i.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new _.WL(new r.M(1,1),new r.M(1,1)))!==(0,v.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,l),l}function T(e,t,i){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const s=(new g).compute(new E([e],new a.Q(1,1,1,e.length),!1),new E([t],new a.Q(1,1,1,t.length),!1),i);let n=0;const r=l.$8.invert(s.diffs,e.length);for(const a of r)a.seq1Range.forEach((t=>{h(e.charCodeAt(t))||n++}));const o=function(t){let i=0;for(let s=0;s<e.length;s++)h(t.charCodeAt(s))||i++;return i}(e.length>t.length?e:t);return n/o>.6&&o>10}var x=i(82518);class k{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:A(this.lines[e-1]))+(e===this.lines.length?0:A(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function A(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}var N=i(41845);class I{constructor(){this.dynamicProgrammingDiffing=new u,this.myersDiffingAlgorithm=new g}computeDiff(e,t,i){if(e.length<=1&&(0,s.aI)(e,t,((e,t)=>e===t)))return new N.p([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new N.p([new _.wm(new r.M(1,e.length+1),new r.M(1,t.length+1),[new _.q6(new a.Q(1,1,e.length,e[e.length-1].length+1),new a.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const c=0===i.maxComputationTimeMs?l.uY.instance:new l.aY(i.maxComputationTimeMs),h=!i.ignoreTrimWhitespace,d=new Map;function u(e){let t=d.get(e);return void 0===t&&(t=d.size,d.set(e,t)),t}const g=e.map((e=>u(e.trim()))),p=t.map((e=>u(e.trim()))),m=new k(g,e),f=new k(p,t),v=(()=>m.length+f.length<1700?this.dynamicProgrammingDiffing.compute(m,f,c,((i,s)=>e[i]===t[s]?0===t[s].length?.1:1+Math.log(1+t[s].length):.99)):this.myersDiffingAlgorithm.compute(m,f,c))();let C=v.diffs,b=v.hitTimeout;C=(0,x.NC)(m,f,C),C=(0,x.X5)(m,f,C);const E=[],S=i=>{if(h)for(let s=0;s<i;s++){const i=y+s,n=w+s;if(e[i]!==t[n]){const s=this.refineDiff(e,t,new l.$8(new o.L(i,i+1),new o.L(n,n+1)),c,h);for(const e of s.mappings)E.push(e);s.hitTimeout&&(b=!0)}}};let y=0,w=0;for(const s of C){(0,n.Ft)((()=>s.seq1Range.start-y===s.seq2Range.start-w));S(s.seq1Range.start-y),y=s.seq1Range.endExclusive,w=s.seq2Range.endExclusive;const i=this.refineDiff(e,t,s,c,h);i.hitTimeout&&(b=!0);for(const e of i.mappings)E.push(e)}S(e.length-y);const L=O(E,e,t);let R=[];return i.computeMoves&&(R=this.computeMoves(L,e,t,g,p,c,h)),(0,n.Ft)((()=>{function i(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const i=t[e.lineNumber-1];return!(e.column<1||e.column>i.length+1)}function s(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const n of L){if(!n.innerChanges)return!1;for(const s of n.innerChanges){if(!(i(s.modifiedRange.getStartPosition(),t)&&i(s.modifiedRange.getEndPosition(),t)&&i(s.originalRange.getStartPosition(),e)&&i(s.originalRange.getEndPosition(),e)))return!1}if(!s(n.modified,t)||!s(n.original,e))return!1}return!0})),new N.p(L,R,b)}computeMoves(e,t,i,s,n,r,o){return R(e,t,i,s,n,r).map((e=>{const s=O(this.refineDiff(t,i,new l.$8(e.original.toOffsetRange(),e.modified.toOffsetRange()),r,o).mappings,t,i,!0);return new N.t(e,s)}))}refineDiff(e,t,i,s,n){var o;const a=(o=i,new _.WL(new r.M(o.seq1Range.start+1,o.seq1Range.endExclusive+1),new r.M(o.seq2Range.start+1,o.seq2Range.endExclusive+1))).toRangeMapping2(e,t),l=new E(e,a.originalRange,n),c=new E(t,a.modifiedRange,n),h=l.length+c.length<500?this.dynamicProgrammingDiffing.compute(l,c,s):this.myersDiffingAlgorithm.compute(l,c,s),d=!1;let u=h.diffs;u=(0,x.NC)(l,c,u),u=(0,x.Lk)(l,c,u),u=(0,x.sq)(l,c,u),u=(0,x.Rl)(l,c,u);const g=u.map((e=>new _.q6(l.translateRange(e.seq1Range),c.translateRange(e.seq2Range))));return{mappings:g,hitTimeout:h.hitTimeout}}}function O(e,t,i,o=!1){const a=[];for(const n of(0,s.n)(e.map((e=>function(e,t,i){let s=0,n=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+s<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+s<=e.modifiedRange.endLineNumber&&(n=-1);e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+n&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+n&&(s=1);const o=new r.M(e.originalRange.startLineNumber+s,e.originalRange.endLineNumber+1+n),a=new r.M(e.modifiedRange.startLineNumber+s,e.modifiedRange.endLineNumber+1+n);return new _.wm(o,a,[e])}(e,t,i))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=n[0],t=n[n.length-1];a.push(new _.wm(e.original.join(t.original),e.modified.join(t.modified),n.map((e=>e.innerChanges[0]))))}return(0,n.Ft)((()=>{if(!o&&a.length>0){if(a[0].modified.startLineNumber!==a[0].original.startLineNumber)return!1;if(i.length-a[a.length-1].modified.endLineNumberExclusive!==t.length-a[a.length-1].original.endLineNumberExclusive)return!1}return(0,n.Xo)(a,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),a}},82518:(e,t,i)=>{"use strict";i.d(t,{Lk:()=>h,NC:()=>o,Rl:()=>u,X5:()=>d,sq:()=>c});var s=i(25890),n=i(74444),r=i(68938);function o(e,t,i){let s=i;return s=a(e,t,s),s=a(e,t,s),s=function(e,t,i){if(!e.getBoundaryScore||!t.getBoundaryScore)return i;for(let s=0;s<i.length;s++){const r=s>0?i[s-1]:void 0,o=i[s],a=s+1<i.length?i[s+1]:void 0,c=new n.L(r?r.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),h=new n.L(r?r.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);o.seq1Range.isEmpty?i[s]=l(o,e,t,c,h):o.seq2Range.isEmpty&&(i[s]=l(o.swap(),t,e,h,c).swap())}return i}(e,t,s),s}function a(e,t,i){if(0===i.length)return i;const s=[];s.push(i[0]);for(let a=1;a<i.length;a++){const o=s[s.length-1];let l=i[a];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const i=l.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=1;a<=i&&(e.getElement(l.seq1Range.start-a)===e.getElement(l.seq1Range.endExclusive-a)&&t.getElement(l.seq2Range.start-a)===t.getElement(l.seq2Range.endExclusive-a));a++);if(a--,a===i){s[s.length-1]=new r.$8(new n.L(o.seq1Range.start,l.seq1Range.endExclusive-i),new n.L(o.seq2Range.start,l.seq2Range.endExclusive-i));continue}l=l.delta(-a)}s.push(l)}const o=[];for(let a=0;a<s.length-1;a++){const i=s[a+1];let l=s[a];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=i.seq1Range.start-l.seq1Range.endExclusive;let c;for(c=0;c<o&&(e.isStronglyEqual(l.seq1Range.start+c,l.seq1Range.endExclusive+c)&&t.isStronglyEqual(l.seq2Range.start+c,l.seq2Range.endExclusive+c));c++);if(c===o){s[a+1]=new r.$8(new n.L(l.seq1Range.start+o,i.seq1Range.endExclusive),new n.L(l.seq2Range.start+o,i.seq2Range.endExclusive));continue}c>0&&(l=l.delta(c))}o.push(l)}return s.length>0&&o.push(s[s.length-1]),o}function l(e,t,i,s,n){let r=1;for(;e.seq1Range.start-r>=s.start&&e.seq2Range.start-r>=n.start&&i.isStronglyEqual(e.seq2Range.start-r,e.seq2Range.endExclusive-r)&&r<100;)r++;r--;let o=0;for(;e.seq1Range.start+o<s.endExclusive&&e.seq2Range.endExclusive+o<n.endExclusive&&i.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===r&&0===o)return e;let a=0,l=-1;for(let c=-r;c<=o;c++){const s=e.seq2Range.start+c,n=e.seq2Range.endExclusive+c,r=e.seq1Range.start+c,o=t.getBoundaryScore(r)+i.getBoundaryScore(s)+i.getBoundaryScore(n);o>l&&(l=o,a=c)}return e.delta(a)}function c(e,t,i){const s=[];for(const n of i){const e=s[s.length-1];e?n.seq1Range.start-e.seq1Range.endExclusive<=2||n.seq2Range.start-e.seq2Range.endExclusive<=2?s[s.length-1]=new r.$8(e.seq1Range.join(n.seq1Range),e.seq2Range.join(n.seq2Range)):s.push(n):s.push(n)}return s}function h(e,t,i){const s=r.$8.invert(i,e.length),n=[];let o=new r._3(0,0);function a(i,a){if(i.offset1<o.offset1||i.offset2<o.offset2)return;const l=e.findWordContaining(i.offset1),c=t.findWordContaining(i.offset2);if(!l||!c)return;let h=new r.$8(l,c);const d=h.intersect(a);let u=d.seq1Range.length,g=d.seq2Range.length;for(;s.length>0;){const i=s[0];if(!(i.seq1Range.intersects(h.seq1Range)||i.seq2Range.intersects(h.seq2Range)))break;const n=e.findWordContaining(i.seq1Range.start),o=t.findWordContaining(i.seq2Range.start),a=new r.$8(n,o),l=a.intersect(i);if(u+=l.seq1Range.length,g+=l.seq2Range.length,h=h.join(a),!(h.seq1Range.endExclusive>=i.seq1Range.endExclusive))break;s.shift()}u+g<2*(h.seq1Range.length+h.seq2Range.length)/3&&n.push(h),o=h.getEndExclusives()}for(;s.length>0;){const e=s.shift();e.seq1Range.isEmpty||(a(e.getStarts(),e),a(e.getEndExclusives().delta(-1),e))}return function(e,t){const i=[];for(;e.length>0||t.length>0;){const s=e[0],n=t[0];let r;r=s&&(!n||s.seq1Range.start<n.seq1Range.start)?e.shift():t.shift(),i.length>0&&i[i.length-1].seq1Range.endExclusive>=r.seq1Range.start?i[i.length-1]=i[i.length-1].join(r):i.push(r)}return i}(i,n)}function d(e,t,i){let s=i;if(0===s.length)return s;let r,o=0;do{r=!1;const a=[s[0]];for(let l=1;l<s.length;l++){const c=s[l],h=a[a.length-1];function d(t,i){const s=new n.L(h.seq1Range.endExclusive,c.seq1Range.start);return e.getText(s).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||i.seq1Range.length+i.seq2Range.length>5)}d(h,c)?(r=!0,a[a.length-1]=a[a.length-1].join(c)):a.push(c)}s=a}while(o++<10&&r);return s}function u(e,t,i){let o=i;if(0===o.length)return o;let a,l=0;do{a=!1;const h=[o[0]];for(let d=1;d<o.length;d++){const u=o[d],g=h[h.length-1];function p(i,s){const r=new n.L(g.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;const o=e.getText(r).trim();if(o.length>20||o.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(i.seq1Range),l=i.seq1Range.length,c=t.countLinesIn(i.seq2Range),h=i.seq2Range.length,d=e.countLinesIn(s.seq1Range),p=s.seq1Range.length,m=t.countLinesIn(s.seq2Range),f=s.seq2Range.length;function _(e){return Math.min(e,130)}return Math.pow(Math.pow(_(40*a+l),1.5)+Math.pow(_(40*c+h),1.5),1.5)+Math.pow(Math.pow(_(40*d+p),1.5)+Math.pow(_(40*m+f),1.5),1.5)>74184.96480721243}p(g,u)?(a=!0,h[h.length-1]=h[h.length-1].join(u)):h.push(u)}o=h}while(l++<10&&a);const c=[];return(0,s.kj)(o,((t,i,s)=>{let o=i;function a(e){return e.length>0&&e.trim().length<=3&&i.seq1Range.length+i.seq2Range.length>100}const l=e.extendToFullLines(i.seq1Range),h=e.getText(new n.L(l.start,i.seq1Range.start));a(h)&&(o=o.deltaStart(-h.length));const d=e.getText(new n.L(i.seq1Range.endExclusive,l.endExclusive));a(d)&&(o=o.deltaEnd(d.length));const u=r.$8.fromOffsetPairs(t?t.getEndExclusives():r._3.zero,s?s.getStarts():r._3.max),g=o.intersect(u);c.length>0&&g.getStarts().equals(c[c.length-1].getEndExclusives())?c[c.length-1]=c[c.length-1].join(g):c.push(g)})),c}},41845:(e,t,i)=>{"use strict";i.d(t,{p:()=>s,t:()=>n});class s{constructor(e,t,i){this.changes=e,this.moves=t,this.hitTimeout=i}}class n{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}},87723:(e,t,i)=>{"use strict";i.d(t,{WL:()=>l,q6:()=>u,wm:()=>d});var s=i(64383),n=i(86571),r=i(83069),o=i(36677),a=i(75295);class l{static inverse(e,t,i){const s=[];let r=1,o=1;for(const c of e){const e=new l(new n.M(r,c.original.startLineNumber),new n.M(o,c.modified.startLineNumber));e.modified.isEmpty||s.push(e),r=c.original.endLineNumberExclusive,o=c.modified.endLineNumberExclusive}const a=new l(new n.M(r,t+1),new n.M(o,i+1));return a.modified.isEmpty||s.push(a),s}static clip(e,t,i){const s=[];for(const n of e){const e=n.original.intersect(t),r=n.modified.intersect(i);e&&!e.isEmpty&&r&&!r.isEmpty&&s.push(new l(e,r))}return s}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new l(this.modified,this.original)}join(e){return new l(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new u(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new s.D7("not a valid diff");return new u(new o.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new o.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new u(new o.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new o.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(h(this.original.endLineNumberExclusive,e)&&h(this.modified.endLineNumberExclusive,t))return new u(new o.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new o.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new u(o.Q.fromPositions(new r.y(this.original.startLineNumber,1),c(new r.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),o.Q.fromPositions(new r.y(this.modified.startLineNumber,1),c(new r.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new u(o.Q.fromPositions(c(new r.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),c(new r.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),o.Q.fromPositions(c(new r.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),c(new r.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new s.D7}}function c(e,t){if(e.lineNumber<1)return new r.y(1,1);if(e.lineNumber>t.length)return new r.y(t.length,t[t.length-1].length+1);const i=t[e.lineNumber-1];return e.column>i.length+1?new r.y(e.lineNumber,i.length+1):e}function h(e,t){return e>=1&&e<=t.length}class d extends l{static fromRangeMappings(e){const t=n.M.join(e.map((e=>n.M.fromRangeInclusive(e.originalRange)))),i=n.M.join(e.map((e=>n.M.fromRangeInclusive(e.modifiedRange))));return new d(t,i,e)}constructor(e,t,i){super(e,t),this.innerChanges=i}flip(){return new d(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new d(this.original,this.modified,[this.toRangeMapping()])}}class u{static assertSorted(e){for(let t=1;t<e.length;t++){const i=e[t-1],n=e[t];if(!i.originalRange.getEndPosition().isBeforeOrEqual(n.originalRange.getStartPosition())||!i.modifiedRange.getEndPosition().isBeforeOrEqual(n.modifiedRange.getStartPosition()))throw new s.D7("Range mappings must be sorted")}}constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new u(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new a.WR(this.originalRange,t)}}},29611:(e,t,i)=>{"use strict";i.d(t,{f:()=>s});class s{constructor(e,t,i,s,n,r,o){this.id=e,this.label=t,this.alias=i,this.metadata=s,this._precondition=n,this._run=r,this._contextKeyService=o}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}},23452:(e,t,i)=>{"use strict";i.d(t,{_:()=>s});const s={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},60002:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});var s,n=i(78209),r=i(32848);!function(e){e.editorSimpleInput=new r.N1("editorSimpleInput",!1,!0),e.editorTextFocus=new r.N1("editorTextFocus",!1,n.kg("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),e.focus=new r.N1("editorFocus",!1,n.kg("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),e.textInputFocus=new r.N1("textInputFocus",!1,n.kg("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),e.readOnly=new r.N1("editorReadonly",!1,n.kg("editorReadonly","Whether the editor is read-only")),e.inDiffEditor=new r.N1("inDiffEditor",!1,n.kg("inDiffEditor","Whether the context is a diff editor")),e.isEmbeddedDiffEditor=new r.N1("isEmbeddedDiffEditor",!1,n.kg("isEmbeddedDiffEditor","Whether the context is an embedded diff editor")),e.inMultiDiffEditor=new r.N1("inMultiDiffEditor",!1,n.kg("inMultiDiffEditor","Whether the context is a multi diff editor")),e.multiDiffEditorAllCollapsed=new r.N1("multiDiffEditorAllCollapsed",void 0,n.kg("multiDiffEditorAllCollapsed","Whether all files in multi diff editor are collapsed")),e.hasChanges=new r.N1("diffEditorHasChanges",!1,n.kg("diffEditorHasChanges","Whether the diff editor has changes")),e.comparingMovedCode=new r.N1("comparingMovedCode",!1,n.kg("comparingMovedCode","Whether a moved code block is selected for comparison")),e.accessibleDiffViewerVisible=new r.N1("accessibleDiffViewerVisible",!1,n.kg("accessibleDiffViewerVisible","Whether the accessible diff viewer is visible")),e.diffEditorRenderSideBySideInlineBreakpointReached=new r.N1("diffEditorRenderSideBySideInlineBreakpointReached",!1,n.kg("diffEditorRenderSideBySideInlineBreakpointReached","Whether the diff editor render side by side inline breakpoint is reached")),e.diffEditorInlineMode=new r.N1("diffEditorInlineMode",!1,n.kg("diffEditorInlineMode","Whether inline mode is active")),e.diffEditorOriginalWritable=new r.N1("diffEditorOriginalWritable",!1,n.kg("diffEditorOriginalWritable","Whether modified is writable in the diff editor")),e.diffEditorModifiedWritable=new r.N1("diffEditorModifiedWritable",!1,n.kg("diffEditorModifiedWritable","Whether modified is writable in the diff editor")),e.diffEditorOriginalUri=new r.N1("diffEditorOriginalUri","",n.kg("diffEditorOriginalUri","The uri of the original document")),e.diffEditorModifiedUri=new r.N1("diffEditorModifiedUri","",n.kg("diffEditorModifiedUri","The uri of the modified document")),e.columnSelection=new r.N1("editorColumnSelection",!1,n.kg("editorColumnSelection","Whether `editor.columnSelection` is enabled")),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new r.N1("editorHasSelection",!1,n.kg("editorHasSelection","Whether the editor has text selected")),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new r.N1("editorHasMultipleSelections",!1,n.kg("editorHasMultipleSelections","Whether the editor has multiple selections")),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new r.N1("editorTabMovesFocus",!1,n.kg("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new r.N1("isInEmbeddedEditor",!1,!0),e.canUndo=new r.N1("canUndo",!1,!0),e.canRedo=new r.N1("canRedo",!1,!0),e.hoverVisible=new r.N1("editorHoverVisible",!1,n.kg("editorHoverVisible","Whether the editor hover is visible")),e.hoverFocused=new r.N1("editorHoverFocused",!1,n.kg("editorHoverFocused","Whether the editor hover is focused")),e.stickyScrollFocused=new r.N1("stickyScrollFocused",!1,n.kg("stickyScrollFocused","Whether the sticky scroll is focused")),e.stickyScrollVisible=new r.N1("stickyScrollVisible",!1,n.kg("stickyScrollVisible","Whether the sticky scroll is visible")),e.standaloneColorPickerVisible=new r.N1("standaloneColorPickerVisible",!1,n.kg("standaloneColorPickerVisible","Whether the standalone color picker is visible")),e.standaloneColorPickerFocused=new r.N1("standaloneColorPickerFocused",!1,n.kg("standaloneColorPickerFocused","Whether the standalone color picker is focused")),e.inCompositeEditor=new r.N1("inCompositeEditor",void 0,n.kg("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new r.N1("editorLangId","",n.kg("editorLangId","The language identifier of the editor")),e.hasCompletionItemProvider=new r.N1("editorHasCompletionItemProvider",!1,n.kg("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),e.hasCodeActionsProvider=new r.N1("editorHasCodeActionsProvider",!1,n.kg("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),e.hasCodeLensProvider=new r.N1("editorHasCodeLensProvider",!1,n.kg("editorHasCodeLensProvider","Whether the editor has a code lens provider")),e.hasDefinitionProvider=new r.N1("editorHasDefinitionProvider",!1,n.kg("editorHasDefinitionProvider","Whether the editor has a definition provider")),e.hasDeclarationProvider=new r.N1("editorHasDeclarationProvider",!1,n.kg("editorHasDeclarationProvider","Whether the editor has a declaration provider")),e.hasImplementationProvider=new r.N1("editorHasImplementationProvider",!1,n.kg("editorHasImplementationProvider","Whether the editor has an implementation provider")),e.hasTypeDefinitionProvider=new r.N1("editorHasTypeDefinitionProvider",!1,n.kg("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),e.hasHoverProvider=new r.N1("editorHasHoverProvider",!1,n.kg("editorHasHoverProvider","Whether the editor has a hover provider")),e.hasDocumentHighlightProvider=new r.N1("editorHasDocumentHighlightProvider",!1,n.kg("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),e.hasDocumentSymbolProvider=new r.N1("editorHasDocumentSymbolProvider",!1,n.kg("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),e.hasReferenceProvider=new r.N1("editorHasReferenceProvider",!1,n.kg("editorHasReferenceProvider","Whether the editor has a reference provider")),e.hasRenameProvider=new r.N1("editorHasRenameProvider",!1,n.kg("editorHasRenameProvider","Whether the editor has a rename provider")),e.hasSignatureHelpProvider=new r.N1("editorHasSignatureHelpProvider",!1,n.kg("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),e.hasInlayHintsProvider=new r.N1("editorHasInlayHintsProvider",!1,n.kg("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),e.hasDocumentFormattingProvider=new r.N1("editorHasDocumentFormattingProvider",!1,n.kg("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),e.hasDocumentSelectionFormattingProvider=new r.N1("editorHasDocumentSelectionFormattingProvider",!1,n.kg("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),e.hasMultipleDocumentFormattingProvider=new r.N1("editorHasMultipleDocumentFormattingProvider",!1,n.kg("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),e.hasMultipleDocumentSelectionFormattingProvider=new r.N1("editorHasMultipleDocumentSelectionFormattingProvider",!1,n.kg("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))}(s||(s={}))},72466:(e,t,i)=>{"use strict";i.d(t,{T:()=>r,x:()=>n});const s=[];function n(e){s.push(e)}function r(){return s.slice(0)}},25982:(e,t,i)=>{"use strict";i.d(t,{x:()=>s});class s{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),8&i&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),s=this.getFontStyle(e);let n=`color: ${t[i]};`;1&s&&(n+="font-style: italic;"),2&s&&(n+="font-weight: bold;");let r="";return 4&s&&(r+=" underline"),8&s&&(r+=" line-through"),r&&(n+=`text-decoration:${r};`),n}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&i),bold:Boolean(2&i),underline:Boolean(4&i),strikethrough:Boolean(8&i)}}}},54459:(e,t,i)=>{"use strict";i.d(t,{f:()=>r});var s=i(46958),n=i(74027);function r(e,t,i,o,a,l){if(Array.isArray(e)){let s=0;for(const n of e){const e=r(n,t,i,o,a,l);if(10===e)return e;e>s&&(s=e)}return s}if("string"===typeof e)return o?"*"===e?5:e===i?10:0:0;if(e){const{language:r,pattern:c,scheme:h,hasAccessToAllModels:d,notebookType:u}=e;if(!o&&!d)return 0;u&&a&&(t=a);let g=0;if(h)if(h===t.scheme)g=10;else{if("*"!==h)return 0;g=5}if(r)if(r===i)g=10;else{if("*"!==r)return 0;g=Math.max(g,5)}if(u)if(u===l)g=10;else{if("*"!==u||void 0===l)return 0;g=Math.max(g,5)}if(c){let e;if(e="string"===typeof c?c:{...c,base:(0,n.S8)(c.base)},e!==t.fsPath&&!(0,s.YW)(e,t.fsPath))return 0;g=10}return g}return 0}},62083:(e,t,i)=>{"use strict";i.d(t,{uB:()=>T,HC:()=>d,Kb:()=>m,FX:()=>g,rY:()=>C,lO:()=>k,M$:()=>h,r4:()=>x,qw:()=>u,sm:()=>O,v_:()=>A,OV:()=>L,YT:()=>R,GE:()=>b,WA:()=>p,gP:()=>w,ou:()=>_,dG:()=>N,$M:()=>v,OB:()=>I,PK:()=>y,Iu:()=>E});var s=i(10350),n=i(79400),r=i(36677),o=i(41234),a=i(5662);class l{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new o.vl,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,a.s)((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();const i=new c(this,e,t);return this._factories.set(e,i),(0,a.s)((()=>{const t=this._factories.get(e);t&&t===i&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class c extends a.jG{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var h,d,u,g,p,m,f=i(78209);class _{constructor(e,t,i){this.offset=e,this.type=t,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class v{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class C{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(h||(h={})),function(e){const t=new Map;t.set(0,s.W.symbolMethod),t.set(1,s.W.symbolFunction),t.set(2,s.W.symbolConstructor),t.set(3,s.W.symbolField),t.set(4,s.W.symbolVariable),t.set(5,s.W.symbolClass),t.set(6,s.W.symbolStruct),t.set(7,s.W.symbolInterface),t.set(8,s.W.symbolModule),t.set(9,s.W.symbolProperty),t.set(10,s.W.symbolEvent),t.set(11,s.W.symbolOperator),t.set(12,s.W.symbolUnit),t.set(13,s.W.symbolValue),t.set(15,s.W.symbolEnum),t.set(14,s.W.symbolConstant),t.set(15,s.W.symbolEnum),t.set(16,s.W.symbolEnumMember),t.set(17,s.W.symbolKeyword),t.set(27,s.W.symbolSnippet),t.set(18,s.W.symbolText),t.set(19,s.W.symbolColor),t.set(20,s.W.symbolFile),t.set(21,s.W.symbolReference),t.set(22,s.W.symbolCustomColor),t.set(23,s.W.symbolFolder),t.set(24,s.W.symbolTypeParameter),t.set(25,s.W.account),t.set(26,s.W.issues),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for CompletionItemKind "+e),i=s.W.symbolProperty),i};const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26),e.fromString=function(e,t){let s=i.get(e);return"undefined"!==typeof s||t||(s=9),s}}(d||(d={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(u||(u={}));class b{constructor(e,t,i,s){this.range=e,this.text=t,this.completionKind=i,this.isSnippetText=s}equals(e){return r.Q.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}function E(e){return e&&n.r.isUri(e.uri)&&r.Q.isIRange(e.range)&&(r.Q.isIRange(e.originSelectionRange)||r.Q.isIRange(e.targetSelectionRange))}!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(g||(g={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(p||(p={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(m||(m={}));const S={17:(0,f.kg)("Array","array"),16:(0,f.kg)("Boolean","boolean"),4:(0,f.kg)("Class","class"),13:(0,f.kg)("Constant","constant"),8:(0,f.kg)("Constructor","constructor"),9:(0,f.kg)("Enum","enumeration"),21:(0,f.kg)("EnumMember","enumeration member"),23:(0,f.kg)("Event","event"),7:(0,f.kg)("Field","field"),0:(0,f.kg)("File","file"),11:(0,f.kg)("Function","function"),10:(0,f.kg)("Interface","interface"),19:(0,f.kg)("Key","key"),5:(0,f.kg)("Method","method"),1:(0,f.kg)("Module","module"),2:(0,f.kg)("Namespace","namespace"),20:(0,f.kg)("Null","null"),15:(0,f.kg)("Number","number"),18:(0,f.kg)("Object","object"),24:(0,f.kg)("Operator","operator"),3:(0,f.kg)("Package","package"),6:(0,f.kg)("Property","property"),14:(0,f.kg)("String","string"),22:(0,f.kg)("Struct","struct"),25:(0,f.kg)("TypeParameter","type parameter"),12:(0,f.kg)("Variable","variable")};function y(e,t){return(0,f.kg)("symbolAriaLabel","{0} ({1})",e,S[t])}var w,L,R,T,x;!function(e){const t=new Map;t.set(0,s.W.symbolFile),t.set(1,s.W.symbolModule),t.set(2,s.W.symbolNamespace),t.set(3,s.W.symbolPackage),t.set(4,s.W.symbolClass),t.set(5,s.W.symbolMethod),t.set(6,s.W.symbolProperty),t.set(7,s.W.symbolField),t.set(8,s.W.symbolConstructor),t.set(9,s.W.symbolEnum),t.set(10,s.W.symbolInterface),t.set(11,s.W.symbolFunction),t.set(12,s.W.symbolVariable),t.set(13,s.W.symbolConstant),t.set(14,s.W.symbolString),t.set(15,s.W.symbolNumber),t.set(16,s.W.symbolBoolean),t.set(17,s.W.symbolArray),t.set(18,s.W.symbolObject),t.set(19,s.W.symbolKey),t.set(20,s.W.symbolNull),t.set(21,s.W.symbolEnumMember),t.set(22,s.W.symbolStruct),t.set(23,s.W.symbolEvent),t.set(24,s.W.symbolOperator),t.set(25,s.W.symbolTypeParameter),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for SymbolKind "+e),i=s.W.symbolProperty),i}}(w||(w={}));class k{static{this.Comment=new k("comment")}static{this.Imports=new k("imports")}static{this.Region=new k("region")}static fromValue(e){switch(e){case"comment":return k.Comment;case"imports":return k.Imports;case"region":return k.Region}return new k(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(L||(L={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(R||(R={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(T||(T={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(x||(x={}));class A{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then((e=>{e&&e.dispose()}))}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const N=new l,I=new l;var O;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(O||(O={}))},82365:(e,t,i)=>{"use strict";i.d(t,{$f:()=>a,MU:()=>l,Yb:()=>h,_t:()=>c,vn:()=>o});var s=i(91508),n=i(38566),r=i(27760);function o(e,t,i,o=!0,a){if(e<4)return null;const l=a.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!l)return null;const c=new r.no(t,l,a);if(i<=1)return{indentation:"",action:null};for(let s=i-1;s>0&&""===t.getLineContent(s);s--)if(1===s)return{indentation:"",action:null};const h=function(e,t,i){const s=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let n,r=-1;for(n=t-1;n>=1;n--){if(e.tokenization.getLanguageIdAtPosition(n,0)!==s)return r;const t=e.getLineContent(n);if(!i.shouldIgnore(n)&&!/^\s+$/.test(t)&&""!==t)return n;r=n}}return-1}(t,i,c);if(h<0)return null;if(h<1)return{indentation:"",action:null};if(c.shouldIncrease(h)||c.shouldIndentNextLine(h)){const e=t.getLineContent(h);return{indentation:s.UU(e),action:n.l.Indent,line:h}}if(c.shouldDecrease(h)){const e=t.getLineContent(h);return{indentation:s.UU(e),action:null,line:h}}{if(1===h)return{indentation:s.UU(t.getLineContent(h)),action:null,line:h};const e=h-1,i=l.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let t=e-1;t>0;t--)if(!c.shouldIndentNextLine(t)){i=t;break}return{indentation:s.UU(t.getLineContent(i+1)),action:null,line:i+1}}if(o)return{indentation:s.UU(t.getLineContent(h)),action:null,line:h};for(let r=h;r>0;r--){if(c.shouldIncrease(r))return{indentation:s.UU(t.getLineContent(r)),action:n.l.Indent,line:r};if(c.shouldIndentNextLine(r)){let e=0;for(let t=r-1;t>0;t--)if(!c.shouldIndentNextLine(r)){e=t;break}return{indentation:s.UU(t.getLineContent(e+1)),action:null,line:e+1}}if(c.shouldDecrease(r))return{indentation:s.UU(t.getLineContent(r)),action:null,line:r}}return{indentation:s.UU(t.getLineContent(1)),action:null,line:1}}}function a(e,t,i,a,l,c){if(e<4)return null;const h=c.getLanguageConfiguration(i);if(!h)return null;const d=c.getLanguageConfiguration(i).indentRulesSupport;if(!d)return null;const u=new r.no(t,d,c),g=o(e,t,a,void 0,c);if(g){const i=g.line;if(void 0!==i){let r=!0;for(let e=i;e<a-1;e++)if(!/^\s*$/.test(t.getLineContent(e))){r=!1;break}if(r){const r=h.onEnter(e,"",t.getLineContent(i),"");if(r){let e=s.UU(t.getLineContent(i));return r.removeText&&(e=e.substring(0,e.length-r.removeText)),r.indentAction===n.l.Indent||r.indentAction===n.l.IndentOutdent?e=l.shiftIndent(e):r.indentAction===n.l.Outdent&&(e=l.unshiftIndent(e)),u.shouldDecrease(a)&&(e=l.unshiftIndent(e)),r.appendText&&(e+=r.appendText),s.UU(e)}}}return u.shouldDecrease(a)?g.action===n.l.Indent?g.indentation:l.unshiftIndent(g.indentation):g.action===n.l.Indent?l.shiftIndent(g.indentation):g.indentation}return null}function l(e,t,i,a,l){if(e<4)return null;const c=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),h=l.getLanguageConfiguration(c).indentRulesSupport;if(!h)return null;t.tokenization.forceTokenization(i.startLineNumber);const d=new r.V(t,l).getProcessedTokenContextAroundRange(i),u=d.afterRangeProcessedTokens,g=d.beforeRangeProcessedTokens,p=s.UU(g.getLineContent()),m=function(e,t,i){const s={tokenization:{getLineTokens:s=>s===t?i:e.tokenization.getLineTokens(s),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:s=>s===t?i.getLineContent():e.getLineContent(s)};return s}(t,i.startLineNumber,g),f=(0,r.WR)(t,i.getStartPosition()),_=t.getLineContent(i.startLineNumber),v=s.UU(_),C=o(e,m,i.startLineNumber+1,void 0,l);if(!C){const e=f?v:p;return{beforeEnter:e,afterEnter:e}}let b=f?v:C.indentation;return C.action===n.l.Indent&&(b=a.shiftIndent(b)),h.shouldDecrease(u.getLineContent())&&(b=a.unshiftIndent(b)),{beforeEnter:f?v:p,afterEnter:b}}function c(e,t,i,a,l,c){const h=e.autoIndent;if(h<4)return null;if((0,r.WR)(t,i.getStartPosition()))return null;const d=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),u=c.getLanguageConfiguration(d).indentRulesSupport;if(!u)return null;const g=new r.V(t,c).getProcessedTokenContextAroundRange(i),p=g.beforeRangeProcessedTokens.getLineContent(),m=g.afterRangeProcessedTokens.getLineContent(),f=p+m,_=p+a+m;if(!u.shouldDecrease(f)&&u.shouldDecrease(_)){const e=o(h,t,i.startLineNumber,!1,c);if(!e)return null;let s=e.indentation;return e.action!==n.l.Indent&&(s=l.unshiftIndent(s)),s}const v=i.startLineNumber-1;if(v>0){const n=t.getLineContent(v);if(u.shouldIndentNextLine(n)&&u.shouldIncrease(_)){const n=o(h,t,i.startLineNumber,!1,c),r=n?.indentation;if(void 0!==r){const n=t.getLineContent(i.startLineNumber),o=s.UU(n),c=l.shiftIndent(r)===o,h=/^\s*$/.test(f),d=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(a),u=d&&d.length>0;if(c&&(u&&h))return r}}}return null}function h(e,t,i){const s=i.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;return s?t<1||t>e.getLineCount()?null:s.getIndentMetadata(e.getLineContent(t)):null}},63346:(e,t,i)=>{"use strict";i.d(t,{h:()=>o});var s=i(38566),n=i(17469),r=i(27760);function o(e,t,i,o){t.tokenization.forceTokenization(i.startLineNumber);const a=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),l=o.getLanguageConfiguration(a);if(!l)return null;const c=new r.V(t,o).getProcessedTokenContextAroundRange(i),h=c.previousLineProcessedTokens.getLineContent(),d=c.beforeRangeProcessedTokens.getLineContent(),u=c.afterRangeProcessedTokens.getLineContent(),g=l.onEnter(e,h,d,u);if(!g)return null;const p=g.indentAction;let m=g.appendText;const f=g.removeText||0;m?p===s.l.Indent&&(m="\t"+m):m=p===s.l.Indent||p===s.l.IndentOutdent?"\t":"";let _=(0,n.Cw)(t,i.startLineNumber,i.startColumn);return f&&(_=_.substring(0,_.length-f)),{indentAction:p,appendText:m,removeText:f,indentation:_}}},10154:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("languageService")},38566:(e,t,i)=>{"use strict";var s;i.d(t,{GB:()=>r,i3:()=>n,l:()=>s}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(s||(s={}));class n{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const i=e.findTokenIndexAtOffset(t-2),s=e.getStandardTokenType(i);return this.isOK(s)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){const e=String.fromCharCode(i);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class r{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)o(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),o(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),o(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),o(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&o(this.autoClosingPairsCloseSingleChar,t.close,t)}}function o(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}},17469:(e,t,i)=>{"use strict";i.d(t,{JZ:()=>N,Cw:()=>M});var s=i(41234),n=i(5662),r=i(91508),o=i(26486),a=i(38566);class l{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new a.i3(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new a.i3({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.i3({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:l.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:l.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}var c=i(25890),h=i(12296),d=i(56772);class u{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const t=i.charAt(i.length-1);e.push(t)}return(0,c.dM)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const s=t.findTokenIndexAtOffset(i-1);if((0,h.Yo)(t.getStandardTokenType(s)))return null;const n=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,i-1)+e,o=d.Fu.findPrevBracketInRange(n,1,r,0,r.length);if(!o)return null;const a=r.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function g(e){return e.global&&(e.lastIndex=0),!0}class p{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&g(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&g(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&g(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&g(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}var m=i(64383);class f{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=f._createOpenBracketRegExp(e[0]),i=f._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,s){if(e>=3)for(let n=0,r=this._regExpRules.length;n<r;n++){const e=this._regExpRules[n];if([{reg:e.beforeText,text:i},{reg:e.afterText,text:s},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&i.length>0&&s.length>0)for(let n=0,r=this._brackets.length;n<r;n++){const e=this._brackets[n];if(e.openRegExp.test(i)&&e.closeRegExp.test(s))return{indentAction:a.l.IndentOutdent}}if(e>=2&&i.length>0)for(let n=0,r=this._brackets.length;n<r;n++){if(this._brackets[n].openRegExp.test(i))return{indentAction:a.l.Indent}}return null}static _createOpenBracketRegExp(e){let t=r.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",f._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=r.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,f._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,m.dz)(t),null}}}var _=i(63591),v=i(84001),C=i(10154),b=i(14718),E=i(83941),S=i(81788);class y{constructor(e,t){this.languageId=e;const i=t.brackets?w(t.brackets):[],s=new S.VV((e=>{const t=new Set;return{info:new R(this,e,t),closing:t}})),n=new S.VV((e=>{const t=new Set,i=new Set;return{info:new T(this,e,t,i),opening:t,openingColorized:i}}));for(const[o,a]of i){const e=s.get(o),t=n.get(a);e.closing.add(t.info),t.opening.add(e.info)}const r=t.colorizedBracketPairs?w(t.colorizedBracketPairs):i.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[o,a]of r){const e=s.get(o),t=n.get(a);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...s.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...n.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){const t=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return(0,d.xb)(t,e)}}function w(e){return e.filter((([e,t])=>""!==e&&""!==t))}class L{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class R extends L{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class T extends L{constructor(e,t,i,s){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=s,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};class A{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const N=(0,_.u1)("languageConfigurationService");let I=class extends n.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new B),this.onDidChangeEmitter=this._register(new s.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(O));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>i.has(e))),s=e.change.overrides.filter((([e,t])=>t.some((e=>i.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new A(void 0));else for(const i of s)this.languageService.isRegisteredLanguageId(i)&&(this.configurations.delete(i),this.onDidChangeEmitter.fire(new A(i)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new A(e.languageId))})))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,i,s){let n=t.getLanguageConfiguration(e);if(!n){if(!s.isRegisteredLanguageId(e))return new W(e,{});n=new W(e,{})}const r=function(e,t){const i=t.getValue(O.brackets,{overrideIdentifier:e}),s=t.getValue(O.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:D(i),colorizedBracketPairs:D(s)}}(n.languageId,i),o=F([n.underlyingConfig,r]);return new W(n.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};I=x([k(0,v.pG),k(1,C.L)],I);const O={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function D(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}function M(e,t,i){const s=e.getLineContent(t);let n=r.UU(s);return n.length>i-1&&(n=n.substring(0,i-1)),n}class P{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new U(e,t,++this._order);return this._entries.push(i),this._resolved=null,(0,n.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===i){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new W(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(U.cmp),F(this._entries.map((e=>e.configuration))))}}function F(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const i of e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t}class U{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class H{constructor(e){this.languageId=e}}class B extends n.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(E.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let s=this._entries.get(e);s||(s=new P(e),this._entries.set(e,s));const r=s.register(t,i);return this._onDidChange.fire(new H(e)),(0,n.s)((()=>{r.dispose(),this._onDidChange.fire(new H(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class W{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new f(this.underlyingConfig):null,this.comments=W._handleComments(this.underlyingConfig),this.characterPair=new l(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||o.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new p(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new y(e,this.underlyingConfig)}getWordDefinition(){return(0,o.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new d.az(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new u(this.brackets)),this._electricCharacter}onEnter(e,t,i,s){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,s):null}getAutoClosingPairs(){return new a.GB(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[e,s]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=s}return i}}(0,b.v)(N,I,1)},83941:(e,t,i)=>{"use strict";i.d(t,{W6:()=>l,vH:()=>c});var s=i(78209),n=i(41234),r=i(46359),o=i(44320),a=i(1646);const l=new class{constructor(){this._onDidChangeLanguages=new n.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t<i;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};r.O.add("editor.modesRegistry",l);const c="plaintext";l.registerLanguage({id:c,extensions:[".txt"],aliases:[s.kg("plainText.alias","Plain Text"),"text"],mimetypes:[o.K.text]}),r.O.as(a.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},20788:(e,t,i)=>{"use strict";i.d(t,{$H:()=>r,Lh:()=>o,r3:()=>n});var s=i(62083);const n=new class{clone(){return this}equals(e){return this===e}};function r(e,t){return new s.$M([new s.ou(0,"",e)],t)}function o(e,t){const i=new Uint32Array(2);return i[0]=0,i[1]=(32768|e|2<<24)>>>0,new s.rY(i,null===t?n:t)}},12296:(e,t,i)=>{"use strict";function s(e,t){const i=e.getCount(),s=e.findTokenIndexAtOffset(t),r=e.getLanguageId(s);let o=s;for(;o+1<i&&e.getLanguageId(o+1)===r;)o++;let a=s;for(;a>0&&e.getLanguageId(a-1)===r;)a--;return new n(e,r,a,o+1,e.getStartOffset(a),e.getEndOffset(o))}i.d(t,{BQ:()=>s,Yo:()=>r});class n{constructor(e,t,i,s,n,r){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=s,this.firstCharOffset=n,this._lastCharOffset=r,this.languageIdCodec=e.languageIdCodec}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getLineLength(){return this._lastCharOffset-this.firstCharOffset}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}toIViewLineTokens(){return this._actual.sliceAndInflate(this.firstCharOffset,this._lastCharOffset,0)}}function r(e){return 0!==(3&e)}},27760:(e,t,i)=>{"use strict";i.d(t,{V:()=>a,WR:()=>c,no:()=>o});var s=i(91508),n=i(12296),r=i(87469);class o{constructor(e,t,i){this._indentRulesSupport=t,this._indentationLineProcessor=new l(e,i)}shouldIncrease(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIncrease(i)}shouldDecrease(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldDecrease(i)}shouldIgnore(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIgnore(i)}shouldIndentNextLine(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIndentNextLine(i)}}class a{constructor(e,t){this.model=e,this.indentationLineProcessor=new l(e,t)}getProcessedTokenContextAroundRange(e){return{beforeRangeProcessedTokens:this._getProcessedTokensBeforeRange(e),afterRangeProcessedTokens:this._getProcessedTokensAfterRange(e),previousLineProcessedTokens:this._getProcessedPreviousLineTokens(e)}}_getProcessedTokensBeforeRange(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=this.model.tokenization.getLineTokens(e.startLineNumber),i=(0,n.BQ)(t,e.startColumn-1);let s;if(c(this.model,e.getStartPosition())){const n=e.startColumn-1-i.firstCharOffset,r=i.firstCharOffset,o=r+n;s=t.sliceAndInflate(r,o,0)}else{const i=e.startColumn-1;s=t.sliceAndInflate(0,i,0)}return this.indentationLineProcessor.getProcessedTokens(s)}_getProcessedTokensAfterRange(e){const t=e.isEmpty()?e.getStartPosition():e.getEndPosition();this.model.tokenization.forceTokenization(t.lineNumber);const i=this.model.tokenization.getLineTokens(t.lineNumber),s=(0,n.BQ)(i,t.column-1),r=t.column-1-s.firstCharOffset,o=s.firstCharOffset+r,a=s.firstCharOffset+s.getLineLength(),l=i.sliceAndInflate(o,a,0);return this.indentationLineProcessor.getProcessedTokens(l)}_getProcessedPreviousLineTokens(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=this.model.tokenization.getLineTokens(e.startLineNumber),i=(0,n.BQ)(t,e.startColumn-1),s=r.f.createEmpty("",i.languageIdCodec),o=e.startLineNumber-1;if(0===o)return s;if(!(0===i.firstCharOffset))return s;const a=(e=>{this.model.tokenization.forceTokenization(e);const t=this.model.tokenization.getLineTokens(e),i=this.model.getLineMaxColumn(e)-1;return(0,n.BQ)(t,i)})(o);if(!(i.languageId===a.languageId))return s;const l=a.toIViewLineTokens();return this.indentationLineProcessor.getProcessedTokens(l)}}class l{constructor(e,t){this.model=e,this.languageConfigurationService=t}getProcessedLine(e,t){this.model.tokenization.forceTokenization?.(e);const i=this.model.tokenization.getLineTokens(e);let n=this.getProcessedTokens(i).getLineContent();return void 0!==t&&(n=((e,t)=>{const i=s.UU(e);return t+e.substring(i.length)})(n,t)),n}getProcessedTokens(e){const t=e.getLanguageId(0),i=this.languageConfigurationService.getLanguageConfiguration(t).bracketsNew.getBracketRegExp({global:!0}),s=[];e.forEach((t=>{const n=e.getStandardTokenType(t);let r=e.getTokenText(t);(e=>2===e||3===e||1===e)(n)&&(r=r.replace(i,""));const o=e.getMetadata(t);s.push({text:r,metadata:o})}));return r.f.createFromTextAndMetadata(s,e.languageIdCodec)}}function c(e,t){e.tokenization.forceTokenization(t.lineNumber);const i=e.tokenization.getLineTokens(t.lineNumber),s=(0,n.BQ)(i,t.column-1),r=0===s.firstCharOffset,o=i.getLanguageId(0)===s.languageId;return!r&&!o}},56772:(e,t,i)=>{"use strict";i.d(t,{Fu:()=>p,az:()=>a,xb:()=>u});var s=i(91508),n=i(99020),r=i(36677);class o{constructor(e,t,i,s,n,r){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=i,this.close=s,this.forwardRegex=n,this.reversedRegex=r,this._openSet=o._toSet(this.open),this._closeSet=o._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const i of e)t.add(i);return t}}class a{constructor(e,t){this._richEditBracketsBrand=void 0;const i=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const i=[];for(let o=0;o<t;o++)i[o]=o;const s=(e,t)=>{const[i,s]=e,[n,r]=t;return i===n||i===r||s===n||s===r},n=(e,s)=>{const n=Math.min(e,s),r=Math.max(e,s);for(let o=0;o<t;o++)i[o]===r&&(i[o]=n)};for(let o=0;o<t;o++){const r=e[o];for(let a=o+1;a<t;a++)s(r,e[a])&&n(i[o],i[a])}const r=[];for(let o=0;o<t;o++){const s=[],n=[];for(let r=0;r<t;r++)if(i[r]===o){const[t,i]=e[r];s.push(t),n.push(i)}s.length>0&&r.push({open:s,close:n})}return r}(t);this.brackets=i.map(((t,s)=>new o(e,s,t.open,t.close,function(e,t,i,s){let n=[];n=n.concat(e),n=n.concat(t);for(let r=0,o=n.length;r<o;r++)l(n[r],i,s,n);return n=h(n),n.sort(c),n.reverse(),u(n)}(t.open,t.close,i,s),function(e,t,i,s){let n=[];n=n.concat(e),n=n.concat(t);for(let r=0,o=n.length;r<o;r++)l(n[r],i,s,n);return n=h(n),n.sort(c),n.reverse(),u(n.map(g))}(t.open,t.close,i,s)))),this.forwardRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return t=h(t),u(t.map(g))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const s of this.brackets){for(const e of s.open)this.textIsBracket[e]=s,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of s.close)this.textIsBracket[e]=s,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function l(e,t,i,s){for(let n=0,r=t.length;n<r;n++){if(n===i)continue;const r=t[n];for(const t of r.open)t.indexOf(e)>=0&&s.push(t);for(const t of r.close)t.indexOf(e)>=0&&s.push(t)}}function c(e,t){return e.length-t.length}function h(e){if(e.length<=1)return e;const t=[],i=new Set;for(const s of e)i.has(s)||(t.push(s),i.add(s));return t}function d(e){const t=/^[\w ]+$/.test(e);return e=s.bm(e),t?`\\b${e}\\b`:e}function u(e,t){const i=`(${e.map(d).join(")|(")})`;return s.OS(i,!0,t)}const g=function(){let e=null,t=null;return function(i){return e!==i&&(e=i,t=function(e){const t=new Uint16Array(e.length);let i=0;for(let s=e.length-1;s>=0;s--)t[i++]=e.charCodeAt(s);return n.b7().decode(t)}(e)),t}}();class p{static _findPrevBracketInText(e,t,i,s){const n=i.match(e);if(!n)return null;const o=i.length-(n.index||0),a=n[0].length,l=s+o;return new r.Q(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,s,n){const r=g(i).substring(i.length-n,i.length-s);return this._findPrevBracketInText(e,t,r,s)}static findNextBracketInText(e,t,i,s){const n=i.match(e);if(!n)return null;const o=n.index||0,a=n[0].length;if(0===a)return null;const l=s+o;return new r.Q(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,s,n){const r=i.substring(s,n);return this.findNextBracketInText(e,t,r,s)}}},58314:(e,t,i)=>{"use strict";i.d(t,{Yj:()=>l,s0:()=>c});var s=i(91508),n=i(87469),r=i(62083),o=i(20788);const a={getInitialState:()=>o.r3,tokenizeEncoded:(e,t,i)=>(0,o.Lh)(0,i)};async function l(e,t,i){if(!i)return h(t,e.languageIdCodec,a);const s=await r.dG.getOrCreate(i);return h(t,e.languageIdCodec,s||a)}function c(e,t,i,s,n,r,o){let a="<div>",l=s,c=0,h=!0;for(let d=0,u=t.getCount();d<u;d++){const u=t.getEndOffset(d);if(u<=s)continue;let g="";for(;l<u&&l<n;l++){const t=e.charCodeAt(l);switch(t){case 9:{let e=r-(l+c)%r;for(c+=e-1;e>0;)o&&h?(g+=" ",h=!1):(g+=" ",h=!0),e--;break}case 60:g+="<",h=!1;break;case 62:g+=">",h=!1;break;case 38:g+="&",h=!1;break;case 0:g+="�",h=!1;break;case 65279:case 8232:case 8233:case 133:g+="\ufffd",h=!1;break;case 13:g+="​",h=!1;break;case 32:o&&h?(g+=" ",h=!1):(g+=" ",h=!0);break;default:g+=String.fromCharCode(t),h=!1}}if(a+=`<span style="${t.getInlineStyle(d,i)}">${g}</span>`,u>n||l>=n)break}return a+="</div>",a}function h(e,t,i){let r='<div class="monaco-tokenized-source">';const o=s.uz(e);let a=i.getInitialState();for(let l=0,c=o.length;l<c;l++){const e=o[l];l>0&&(r+="<br/>");const c=i.tokenizeEncoded(e,!0,a);n.f.convertToEndOffset(c.tokens,e.length);const h=new n.f(c.tokens,e,t).inflate();let d=0;for(let t=0,i=h.getCount();t<i;t++){const i=h.getClassName(t),n=h.getEndOffset(t);r+=`<span class="${i}">${s.ih(e.substring(d,n))}</span>`,d=n}a=c.endState}return r+="</div>",r}},16223:(e,t,i)=>{"use strict";i.d(t,{A5:()=>s,Dg:()=>l,F4:()=>u,L5:()=>d,VW:()=>r,Wo:()=>h,X2:()=>a,ZS:()=>n,nk:()=>c,vd:()=>g});var s,n,r,o=i(10146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(s||(s={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(n||(n={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(r||(r={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function c(e){return e&&"function"===typeof e.read}class h{constructor(e,t,i,s,n,r){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=s,this.isAutoWhitespaceEdit=n,this._isTracked=r}}class d{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class u{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},40579:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>v,Nn:()=>l,Xw:()=>c,rh:()=>_,yF:()=>f});var s=i(64383),n=i(1245),r=i(19131),o=i(32956);class a{get length(){return this._length}constructor(e){this._length=e}}class l extends a{static create(e,t,i){let s=e.length;return t&&(s=(0,r.QB)(s,t.length)),i&&(s=(0,r.QB)(s,i.length)),new l(s,e,t,i,t?t.missingOpeningBracketIds:o.gV.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,i,s,n){super(e),this.openingBracket=t,this.child=i,this.closingBracket=s,this.missingOpeningBracketIds=n}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new l(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation((0,r.QB)(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class c extends a{static create23(e,t,i,s=!1){let n=e.length,o=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(n=(0,r.QB)(n,t.length),o=o.merge(t.missingOpeningBracketIds),i){if(e.listHeight!==i.listHeight)throw new Error("Invalid list heights");n=(0,r.QB)(n,i.length),o=o.merge(i.missingOpeningBracketIds)}return s?new d(n,e.listHeight+1,e,t,i,o):new h(n,e.listHeight+1,e,t,i,o)}static getEmpty(){return new g(r.Vp,0,[],o.gV.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,i){super(e),this.listHeight=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),i=4===t.kind?t.toMutable():t;return t!==i&&this.setChild(e-1,i),i}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new s.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let s=1;s<e;s++){const e=this.getChild(s);t=(0,r.QB)(t,e.length),i=i.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let i=Number.MAX_SAFE_INTEGER,s=e;for(let n=0;n<this.childrenLength;n++){const e=this.getChild(n);e&&(i=Math.min(i,e.computeMinIndentation(s,t)),s=(0,r.QB)(s,e.length))}return this.cachedMinIndentation=i,i}}class h extends c{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,i,s,n,r){super(e,t,r),this._item1=i,this._item2=s,this._item3=n}deepClone(){return new h(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class d extends h{toMutable(){return new h(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class u extends c{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,i,s){super(e,t,s),this._children=i}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new u(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class g extends u{toMutable(){return new u(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const p=[];class m extends a{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return p}deepClone(){return this}}class f extends m{get kind(){return 0}get missingOpeningBracketIds(){return o.gV.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const i=(0,r.l4)(e),s=(0===i.columnCount?i.lineCount:i.lineCount+1)+1,o=(0,r.eu)((0,r.QB)(e,this.length))+1;let a=Number.MAX_SAFE_INTEGER;for(let r=s;r<=o;r++){const e=t.getLineFirstNonWhitespaceColumn(r),i=t.getLineContent(r);if(0===e)continue;const s=n.A.visibleColumnFromColumn(i,e,t.getOptions().tabSize);a=Math.min(a,s)}return a}}class _ extends m{static create(e,t,i){return new _(e,t,i)}get kind(){return 1}get missingOpeningBracketIds(){return o.gV.getEmpty()}constructor(e,t,i){super(e),this.bracketInfo=t,this.bracketIds=i}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class v extends m{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}},94650:(e,t,i)=>{"use strict";i.d(t,{W:()=>o,c:()=>r});var s=i(36677),n=i(19131);class r{static fromModelContentChanges(e){return e.map((e=>{const t=s.Q.lift(e.range);return new r((0,n.VL)(t.getStartPosition()),(0,n.VL)(t.getEndPosition()),(0,n.rR)(e.text))})).reverse()}constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}toString(){return`[${(0,n.l4)(this.startOffset)}...${(0,n.l4)(this.endOffset)}) -> ${(0,n.l4)(this.newLength)}`}}class o{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>a.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):null;return null===i?null:(0,n.MS)(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?(0,n.qe)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):(0,n.qe)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=(0,n.l4)(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,n.qe)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):(0,n.qe)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],i=this.translateOldToCur(t.endOffsetAfterObj);if(!(0,n.vr)(i,e))break;{this.nextEditIdx++;const e=(0,n.l4)(i),s=(0,n.l4)(this.translateOldToCur(t.endOffsetBeforeObj)),r=e.lineCount-s.lineCount;this.deltaOldToNewLineCount+=r;const o=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,a=e.columnCount-s.columnCount;this.deltaOldToNewColumnCount=o+a,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class a{static from(e){return new a(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,i){this.endOffsetBeforeObj=(0,n.l4)(t),this.endOffsetAfterObj=(0,n.l4)((0,n.QB)(e,i)),this.offsetObj=(0,n.l4)(e)}}},93630:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var s=i(91508),n=i(40579),r=i(19131),o=i(32956),a=i(51934);class l{static createFromLanguage(e,t){function i(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const s=new Map;for(const l of e.bracketsNew.openingBrackets){const e=(0,r.qe)(0,l.bracketText.length),t=i(l),c=o.gV.getEmpty().add(t,o.FD);s.set(l.bracketText,new a.ou(e,1,t,c,n.rh.create(e,l,c)))}for(const l of e.bracketsNew.closingBrackets){const e=(0,r.qe)(0,l.bracketText.length);let t=o.gV.getEmpty();const c=l.getOpeningBrackets();for(const s of c)t=t.add(i(s),o.FD);s.set(l.bracketText,new a.ou(e,2,i(c[0]),t,n.rh.create(e,l,t)))}return new l(s)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,s.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(2===i.kind&&i.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class c{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=l.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}},84084:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});var s=i(25890),n=i(94650),r=i(19131);function o(e,t){if(0===e.length)return t;if(0===t.length)return e;const i=new s.j3(l(e)),o=l(t);o.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let c=i.dequeue();function h(e){if(void 0===e){const e=i.takeWhile((e=>!0))||[];return c&&e.unshift(c),e}const t=[];for(;c&&!(0,r.Vh)(e);){const[s,n]=c.splitAt(e);t.push(s),e=(0,r.MS)(s.lengthAfter,e),c=n??i.dequeue()}return(0,r.Vh)(e)||t.push(new a(!1,e,e)),t}const d=[];function u(e,t,i){if(d.length>0&&(0,r.wP)(d[d.length-1].endOffset,e)){const e=d[d.length-1];d[d.length-1]=new n.c(e.startOffset,t,(0,r.QB)(e.newLength,i))}else d.push({startOffset:e,endOffset:t,newLength:i})}let g=r.Vp;for(const s of o){const e=h(s.lengthBefore);if(s.modified){const t=(0,r.pW)(e,(e=>e.lengthBefore)),i=(0,r.QB)(g,t);u(g,i,s.lengthAfter),g=i}else for(const t of e){const e=g;g=(0,r.QB)(g,t.lengthBefore),t.modified&&u(e,g,t.lengthAfter)}}return d}class a{constructor(e,t,i){this.modified=e,this.lengthBefore=t,this.lengthAfter=i}splitAt(e){const t=(0,r.MS)(e,this.lengthAfter);return(0,r.wP)(t,r.Vp)?[this,void 0]:this.modified?[new a(this.modified,this.lengthBefore,e),new a(this.modified,r.Vp,t)]:[new a(this.modified,e,e),new a(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${(0,r.l4)(this.lengthBefore)} -> ${(0,r.l4)(this.lengthAfter)}`}}function l(e){const t=[];let i=r.Vp;for(const s of e){const e=(0,r.MS)(i,s.startOffset);(0,r.Vh)(e)||t.push(new a(!1,e,e));const n=(0,r.MS)(s.startOffset,s.endOffset);t.push(new a(!0,n,s.newLength)),i=s.endOffset}return t}},19131:(e,t,i)=>{"use strict";i.d(t,{C7:()=>o,MS:()=>_,QB:()=>p,Qx:()=>S,VL:()=>E,Vh:()=>l,Vp:()=>a,eu:()=>u,l4:()=>d,o0:()=>b,pW:()=>m,qe:()=>h,rR:()=>y,sS:()=>g,vr:()=>C,wP:()=>f,zG:()=>v});var s=i(91508),n=i(36677),r=i(50973);function o(e,t,i,s){return e!==i?h(i-e,s):h(0,s-t)}const a=0;function l(e){return 0===e}const c=2**26;function h(e,t){return e*c+t}function d(e){const t=e,i=Math.floor(t/c),s=t-i*c;return new r.W(i,s)}function u(e){return Math.floor(e/c)}function g(e){return e}function p(e,t){let i=e+t;return t>=c&&(i-=e%c),i}function m(e,t){return e.reduce(((e,i)=>p(e,t(i))),a)}function f(e,t){return e===t}function _(e,t){const i=e,s=t;if(s-i<=0)return a;const n=Math.floor(i/c),r=Math.floor(s/c),o=s-r*c;if(n===r){return h(0,o-(i-n*c))}return h(r-n,o)}function v(e,t){return e<t}function C(e,t){return e<=t}function b(e,t){return e>=t}function E(e){return h(e.lineNumber-1,e.column-1)}function S(e,t){const i=e,s=Math.floor(i/c),r=i-s*c,o=t,a=Math.floor(o/c),l=o-a*c;return new n.Q(s+1,r+1,a+1,l+1)}function y(e){const t=(0,s.uz)(e);return h(t.length-1,t[t.length-1].length)}},19562:(e,t,i)=>{"use strict";i.d(t,{T:()=>g});var s=i(40579),n=i(94650),r=i(32956),o=i(19131);function a(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){const n=i>>1;for(let r=0;r<n;r++){const n=r<<1;e[r]=s.Xw.create23(e[n],e[n+1],n+3===i?e[n+2]:null,t)}i=n}return s.Xw.create23(e[0],e[1],i>=3?e[2]:null,t)}function l(e,t){return Math.abs(e.listHeight-t.listHeight)}function c(e,t){return e.listHeight===t.listHeight?s.Xw.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i=e=e.toMutable();const n=[];let r;for(;;){if(t.listHeight===i.listHeight){r=t;break}if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeLastElementMutable()}for(let o=n.length-1;o>=0;o--){const e=n[o];r?e.childrenLength>=3?r=s.Xw.create23(e.unappendChild(),r,null,!1):(e.appendChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?s.Xw.create23(e,r,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable();const n=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw new Error("unexpected");n.push(i),i=i.makeFirstElementMutable()}let r=t;for(let o=n.length-1;o>=0;o--){const e=n[o];r?e.childrenLength>=3?r=s.Xw.create23(r,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(r),r=void 0):e.handleChildrenChanged()}return r?s.Xw.create23(r,e,null,!1):e}(t,e)}class h{constructor(e){this.lastOffset=o.Vp,this.nextNodes=[e],this.offsets=[o.Vp],this.idxs=[]}readLongestNodeAt(e,t){if((0,o.zG)(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=u(this.nextNodes);if(!i)return;const s=u(this.offsets);if((0,o.zG)(e,s))return;if((0,o.zG)(s,e))if((0,o.QB)(s,i.length)<=e)this.nextNodeAfterCurrent();else{const e=d(i);-1!==e?(this.nextNodes.push(i.getChild(e)),this.offsets.push(s),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const e=d(i);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(i.getChild(e)),this.offsets.push(s),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=u(this.offsets),t=u(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const i=u(this.nextNodes),s=d(i,this.idxs[this.idxs.length-1]);if(-1!==s){this.nextNodes.push(i.getChild(s)),this.offsets.push((0,o.QB)(e,t.length)),this.idxs[this.idxs.length-1]=s;break}this.idxs.pop()}}}function d(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function u(e){return e.length>0?e[e.length-1]:void 0}function g(e,t,i,s){return new p(e,t,i,s).parseDocument()}class p{constructor(e,t,i,s){if(this.tokenizer=e,this.createImmutableLists=s,this._itemsConstructed=0,this._itemsFromCache=0,i&&s)throw new Error("Not supported");this.oldNodeReader=i?new h(i):void 0,this.positionMapper=new n.W(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(r.gV.getEmpty(),0);return e||(e=s.Xw.getEmpty()),e}parseList(e,t){const i=[];for(;;){let s=this.tryReadChildFromCache(e);if(!s){const i=this.tokenizer.peek();if(!i||2===i.kind&&i.bracketIds.intersects(e))break;s=this.parseChild(e,t+1)}4===s.kind&&0===s.childrenLength||i.push(s)}const s=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;const i=t,s=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===s;)t++;return t-i>=2?a(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let s=i(),n=i();if(!n)return s;for(let r=i();r;r=i())l(s,n)<=l(n,r)?(s=c(s,n),n=r):n=c(n,r);return c(s,n)}(i):a(i,this.createImmutableLists);return s}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!(0,o.Vh)(t)){const i=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(i=>{if(null!==t&&!(0,o.zG)(i.length,t))return!1;return i.canBeReused(e)}));if(i)return this._itemsFromCache++,this.tokenizer.skip(i.length),i}}}parseChild(e,t){this._itemsConstructed++;const i=this.tokenizer.read();switch(i.kind){case 2:return new s.Gc(i.bracketIds,i.length);case 0:return i.astNode;case 1:{if(t>300)return new s.yF(i.length);const n=e.merge(i.bracketIds),r=this.parseList(n,t+1),o=this.tokenizer.peek();return o&&2===o.kind&&(o.bracketId===i.bracketId||o.bracketIds.intersects(i.bracketIds))?(this.tokenizer.read(),s.Nn.create(i.astNode,r,o.astNode)):s.Nn.create(i.astNode,r,null)}default:throw new Error("unexpected")}}}},32956:(e,t,i)=>{"use strict";i.d(t,{FD:()=>r,Mg:()=>o,gV:()=>n});const s=[];class n{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let i=n.cache[e];return i||(i=new n(e,t),n.cache[e]=i),i}return new n(e,t)}static{this.empty=n.create(0,s)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const i=t.getKey(e);let s=i>>5;if(0===s){const e=1<<i|this.items;return e===this.items?this:n.create(e,this.additionalItems)}s--;const r=this.additionalItems.slice(0);for(;r.length<s;)r.push(0);return r[s]|=1<<(31&i),n.create(this.items,r)}merge(e){const t=this.items|e.items;if(this.additionalItems===s&&e.additionalItems===s)return t===this.items?this:t===e.items?e:n.create(t,s);const i=[];for(let s=0;s<Math.max(this.additionalItems.length,e.additionalItems.length);s++){const t=this.additionalItems[s]||0,n=e.additionalItems[s]||0;i.push(t|n)}return n.create(t,i)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const r={getKey:e=>e};class o{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}},51934:(e,t,i)=>{"use strict";i.d(t,{_:()=>d,ou:()=>l,tk:()=>c});var s=i(64383),n=i(25982),r=i(40579),o=i(19131),a=i(32956);class l{constructor(e,t,i,s,n){this.length=e,this.kind=t,this.bracketId=i,this.bracketIds=s,this.astNode=n}}class c{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new h(this.textModel,this.bracketTokens),this._offset=o.Vp,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return(0,o.qe)(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=(0,o.QB)(this._offset,e);const t=(0,o.l4)(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=(0,o.QB)(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class h{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=(0,o.sS)(e.length),e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const s=this.lineTokens,r=s.getCount();let a=null;if(this.lineTokenOffset<r){const l=s.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<r&&l===s.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const c=0===n.x.getTokenType(l),h=n.x.containsBalancedBrackets(l),d=s.getEndOffset(this.lineTokenOffset);if(h&&c&&this.lineCharOffset<d){const e=s.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,d),i=this.bracketTokens.getSingleLanguageBracketTokens(e),n=i.regExpGlobal;if(n){n.lastIndex=0;const e=n.exec(t);e&&(a=i.getToken(e[0]),a&&(this.lineCharOffset+=e.index))}}if(i+=d-this.lineCharOffset,a){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=a;break}return this.lineCharOffset+=(0,o.sS)(a.length),a}this.lineTokenOffset++,this.lineCharOffset=d}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,i+=33,i>1e3)break}if(i>1500)break}const s=(0,o.C7)(e,t,this.lineIdx,this.lineCharOffset);return new l(s,0,-1,a.gV.getEmpty(),new r.yF(s))}}class d{constructor(e,t){this.text=e,this._offset=o.Vp,this.idx=0;const i=t.getRegExpStr(),s=i?new RegExp(i+"|\n","gi"):null,n=[];let c,h=0,d=0,u=0,g=0;const p=[];for(let _=0;_<60;_++)p.push(new l((0,o.qe)(0,_),0,-1,a.gV.getEmpty(),new r.yF((0,o.qe)(0,_))));const m=[];for(let _=0;_<60;_++)m.push(new l((0,o.qe)(1,_),0,-1,a.gV.getEmpty(),new r.yF((0,o.qe)(1,_))));if(s)for(s.lastIndex=0;null!==(c=s.exec(e));){const e=c.index,i=c[0];if("\n"===i)h++,d=e+1;else{if(u!==e){let t;if(g===h){const i=e-u;if(i<p.length)t=p[i];else{const e=(0,o.qe)(0,i);t=new l(e,0,-1,a.gV.getEmpty(),new r.yF(e))}}else{const i=h-g,s=e-d;if(1===i&&s<m.length)t=m[s];else{const e=(0,o.qe)(i,s);t=new l(e,0,-1,a.gV.getEmpty(),new r.yF(e))}}n.push(t)}n.push(t.getToken(i)),u=e+i.length,g=h}}const f=e.length;if(u!==f){const e=g===h?(0,o.qe)(0,f-u):(0,o.qe)(h-g,f-d);n.push(new l(e,0,-1,a.gV.getEmpty(),new r.yF(e)))}this.length=(0,o.qe)(h,f-d),this.tokens=n}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new s.EM}}},26656:(e,t,i)=>{"use strict";i.d(t,{Th:()=>m,z8:()=>f});var s=i(78209),n=i(64383),r=i(75326),o=i(79400),a=i(64829),l=i(81674),c=i(89403);function h(e){return e.toString()}class d{static create(e,t){const i=e.getAlternativeVersionId(),s=p(e);return new d(i,i,s,s,t,t,[])}constructor(e,t,i,s,n,r,o){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=s,this.beforeCursorState=n,this.afterCursorState=r,this.changes=o}append(e,t,i,s,n){t.length>0&&(this.changes=(0,a.x)(this.changes,t)),this.afterEOL=i,this.afterVersionId=s,this.afterCursorState=n}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(l.Sw(e,t?t.length:0,i),i+=4,t)for(const s of t)l.Sw(e,s.selectionStartLineNumber,i),i+=4,l.Sw(e,s.selectionStartColumn,i),i+=4,l.Sw(e,s.positionLineNumber,i),i+=4,l.Sw(e,s.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const s=l.bb(e,t);t+=4;for(let n=0;n<s;n++){const s=l.bb(e,t);t+=4;const n=l.bb(e,t);t+=4;const o=l.bb(e,t);t+=4;const a=l.bb(e,t);t+=4,i.push(new r.L(s,n,o,a))}return t}serialize(){let e=10+d._writeSelectionsSize(this.beforeCursorState)+d._writeSelectionsSize(this.afterCursorState)+4;for(const s of this.changes)e+=s.writeSize();const t=new Uint8Array(e);let i=0;l.Sw(t,this.beforeVersionId,i),i+=4,l.Sw(t,this.afterVersionId,i),i+=4,l.Gs(t,this.beforeEOL,i),i+=1,l.Gs(t,this.afterEOL,i),i+=1,i=d._writeSelections(t,this.beforeCursorState,i),i=d._writeSelections(t,this.afterCursorState,i),l.Sw(t,this.changes.length,i),i+=4;for(const s of this.changes)i=s.write(t,i);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let i=0;const s=l.bb(t,i);i+=4;const n=l.bb(t,i);i+=4;const r=l.pJ(t,i);i+=1;const o=l.pJ(t,i);i+=1;const c=[];i=d._readSelections(t,i,c);const h=[];i=d._readSelections(t,i,h);const u=l.bb(t,i);i+=4;const g=[];for(let l=0;l<u;l++)i=a.k.read(t,i,g);return new d(s,n,r,o,c,h,g)}}class u{get type(){return 0}get resource(){return o.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,i,s){this.label=e,this.code=t,this.model=i,this._data=d.create(i,s)}toString(){return(this._data instanceof d?this._data:d.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(o.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof d}append(e,t,i,s,n){this._data instanceof d&&this._data.append(e,t,i,s,n)}close(){this._data instanceof d&&(this._data=this._data.serialize())}open(){this._data instanceof d||(this._data=d.deserialize(this._data))}undo(){if(o.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(o.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof d&&(this._data=this._data.serialize()),this._data.byteLength+168}}class g{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const s of this._editStackElementsArr){const e=h(s.resource);this._editStackElementsMap.set(e,s)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=h(e);return this._editStackElementsMap.has(t)}setModel(e){const t=h(o.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=h(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,i,s,n){const r=h(e.uri);this._editStackElementsMap.get(r).append(e,t,i,s,n)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=h(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,c.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function p(e){return"\n"===e.getEOL()?0:1}function m(e){return!!e&&(e instanceof u||e instanceof g)}class f{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const i=this._undoRedoService.getLastElement(this._model.uri);if(m(i)&&i.canAppend(this._model))return i;const n=new u(s.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(n,t),n}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],p(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i,s){const n=this._getOrCreateEditStackElement(e,s),r=this._model.applyEdits(t,!0),o=f._computeCursorState(i,r),a=r.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),n.append(this._model,a.map((e=>e.textChange)),p(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(i){return(0,n.dz)(i),null}}}},53450:(e,t,i)=>{"use strict";i.d(t,{P:()=>d,k:()=>u});var s=i(46041),n=i(91508),r=i(1245),o=i(36677),a=i(20761),l=i(78049),c=i(84739),h=i(64383);class d extends a._{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return(0,l.G)(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,i){this.assertNotDisposed();const s=this.textModel.getLineCount();if(e<1||e>s)throw new h.D7("Illegal value for lineNumber");const n=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(n&&n.offSide);let o=-2,a=-1,l=-2,c=-1;const d=e=>{if(-1!==o&&(-2===o||o>e-1)){o=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){o=t,a=e;break}}}if(-2===l){l=-1,c=-1;for(let t=e;t<s;t++){const e=this._computeIndentLevel(t);if(e>=0){l=t,c=e;break}}}};let u=-2,g=-1,p=-2,m=-1;const f=e=>{if(-2===u){u=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,g=e;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1,m=-1;for(let t=e;t<s;t++){const e=this._computeIndentLevel(t);if(e>=0){p=t,m=e;break}}}};let _=0,v=!0,C=0,b=!0,E=0,S=0;for(let h=0;v||b;h++){const n=e-h,o=e+h;h>1&&(n<1||n<t)&&(v=!1),h>1&&(o>s||o>i)&&(b=!1),h>5e4&&(v=!1,b=!1);let p=-1;if(v&&n>=1){const e=this._computeIndentLevel(n-1);e>=0?(l=n-1,c=e,p=Math.ceil(e/this.textModel.getOptions().indentSize)):(d(n),p=this._getIndentLevelForWhitespaceLine(r,a,c))}let y=-1;if(b&&o<=s){const e=this._computeIndentLevel(o-1);e>=0?(u=o-1,g=e,y=Math.ceil(e/this.textModel.getOptions().indentSize)):(f(o),y=this._getIndentLevelForWhitespaceLine(r,g,m))}if(0!==h){if(1===h){if(o<=s&&y>=0&&S+1===y){v=!1,_=o,C=o,E=y;continue}if(n>=1&&p>=0&&p-1===S){b=!1,_=n,C=n,E=p;continue}if(_=e,C=e,E=S,0===E)return{startLineNumber:_,endLineNumber:C,indent:E}}v&&(p>=E?_=n:v=!1),b&&(y>=E?C=o:b=!1)}else S=p}return{startLineNumber:_,endLineNumber:C,indent:E}}getLinesBracketGuides(e,t,i,r){const a=[];for(let s=e;s<=t;s++)a.push([]);const l=!0,h=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new o.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let d;if(i&&h.length>0){const n=(e<=i.lineNumber&&i.lineNumber<=t?h:this.textModel.bracketPairs.getBracketPairsInRange(o.Q.fromPositions(i)).toArray()).filter((e=>o.Q.strictContainsPosition(e.range,i)));d=(0,s.Uk)(n,(e=>l))?.range}const g=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,p=new u;for(const s of h){if(!s.closingBracketRange)continue;const i=d&&s.range.equalsRange(d);if(!i&&!r.includeInactive)continue;const o=p.getInlineClassName(s.nestingLevel,s.nestingLevelOfEqualBracketType,g)+(r.highlightActive&&i?" "+p.activeClassName:""),l=s.openingBracketRange.getStartPosition(),h=s.closingBracketRange.getStartPosition(),u=r.horizontalGuides===c.N6.Enabled||r.horizontalGuides===c.N6.EnabledForActive&&i;if(s.range.startLineNumber===s.range.endLineNumber){u&&a[s.range.startLineNumber-e].push(new c.TH(-1,s.openingBracketRange.getEndPosition().column,o,new c.pv(!1,h.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(h),f=this.getVisibleColumnFromPosition(s.openingBracketRange.getStartPosition()),_=Math.min(f,m,s.minVisibleColumnIndentation+1);let v=!1;n.HG(this.textModel.getLineContent(s.closingBracketRange.startLineNumber))<s.closingBracketRange.startColumn-1&&(v=!0);const C=Math.max(l.lineNumber,e),b=Math.min(h.lineNumber,t),E=v?1:0;for(let t=C;t<b+E;t++)a[t-e].push(new c.TH(_,-1,o,null,t===l.lineNumber?l.column:-1,t===h.lineNumber?h.column:-1));u&&(l.lineNumber>=e&&f>_&&a[l.lineNumber-e].push(new c.TH(_,-1,o,new c.pv(!1,l.column),-1,-1)),h.lineNumber<=t&&m>_&&a[h.lineNumber-e].push(new c.TH(_,-1,o,new c.pv(!v,h.column),-1,-1)))}for(const s of a)s.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return a}getVisibleColumnFromPosition(e){return r.A.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const s=this.textModel.getOptions(),n=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=Boolean(n&&n.offSide),o=new Array(t-e+1);let a=-2,l=-1,c=-2,h=-1;for(let d=e;d<=t;d++){const t=d-e,n=this._computeIndentLevel(d-1);if(n>=0)a=d-1,l=n,o[t]=Math.ceil(n/s.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=d-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==c&&(-2===c||c<d-1)){c=-1,h=-1;for(let e=d;e<i;e++){const t=this._computeIndentLevel(e);if(t>=0){c=e,h=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(r,l,h)}}return o}_getIndentLevelForWhitespaceLine(e,t,i){const s=this.textModel.getOptions();return-1===t||-1===i?0:t<i?1+Math.floor(t/s.indentSize):t===i||e?Math.ceil(i/s.indentSize):1+Math.floor(i/s.indentSize)}}class u{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,i){return this.getInlineClassNameOfLevel(i?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}},27414:(e,t,i)=>{"use strict";i.d(t,{N:()=>r,c2:()=>o});var s=i(25890),n=i(85152);class r{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,n.j)(e);const i=this.values,s=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(i.length+r),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,n.j)(e),t=(0,n.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,n.j)(e),t=(0,n.j)(t);const i=this.values,s=this.prefixSum;if(e>=i.length)return!1;const r=i.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,n.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,s=0,n=0,r=0;for(;t<=i;)if(s=t+(i-t)/2|0,n=this.prefixSum[s],r=n-this.values[s],e<r)i=s-1;else{if(!(e>=n))break;t=s+1}return new a(s,e-r)}}class o{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),0===e?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new a(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=(0,s.nK)(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e<t;e++){const t=this._values[e],i=e>0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let s=0;s<t;s++)this._indexBySum[i+s]=e}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(e,t){this._values[e]!==t&&(this._values[e]=t,this._invalidate(e))}}class a{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}},87289:(e,t,i)=>{"use strict";i.d(t,{Ho:()=>Qt,kI:()=>Xt,Bz:()=>Wt});var s=i(25890),n=i(47661),r=i(64383),o=i(41234),a=i(5662),l=i(91508),c=i(79400),h=i(64454),d=i(93895),u=i(83069),g=i(36677),p=i(75326),m=i(24329),f=i(10154),_=i(17469),v=i(16223),C=i(12296),b=i(56772);class E{constructor(e,t,i,s){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=i,this.isInvalid=s}}class S{constructor(e,t,i,s,n,r){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=s,this.nestingLevelOfEqualBracketType=n,this.bracketPairNode=r}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class y extends S{constructor(e,t,i,s,n,r,o){super(e,t,i,s,n,r),this.minVisibleColumnIndentation=o}}var w=i(94650),L=i(93630),R=i(19131),T=i(19562),x=i(32956),k=i(51934),A=i(84084);class N extends a.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new o.vl,this.denseKeyProvider=new x.Mg,this.brackets=new L.Z(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new k._(this.textModel.getValue(),e);this.initialAstWithoutTokens=(0,T.T)(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new w.c((0,R.qe)(e.fromLineNumber-1,0),(0,R.qe)(e.toLineNumber,0),(0,R.qe)(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=w.c.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const i=(0,A.M)(this.queuedTextEdits,e);this.queuedTextEdits=i,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=(0,A.M)(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,i){const s=t,n=new k.tk(this.textModel,this.brackets);return(0,T.T)(n,e,s,i)}getBracketsInRange(e,t){this.flushQueue();const i=(0,R.qe)(e.startLineNumber-1,e.startColumn-1),n=(0,R.qe)(e.endLineNumber-1,e.endColumn-1);return new s.c1((e=>{const s=this.initialAstWithoutTokens||this.astWithTokens;D(s,R.Vp,s.length,i,n,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const i=(0,R.VL)(e.getStartPosition()),n=(0,R.VL)(e.getEndPosition());return new s.c1((e=>{const s=this.initialAstWithoutTokens||this.astWithTokens,r=new M(e,t,this.textModel);P(s,R.Vp,s.length,i,n,r,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return O(t,R.Vp,t.length,(0,R.VL)(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return I(t,R.Vp,t.length,(0,R.VL)(e))}}function I(e,t,i,s){if(4===e.kind||2===e.kind){const n=[];for(const s of e.children)i=(0,R.QB)(t,s.length),n.push({nodeOffsetStart:t,nodeOffsetEnd:i}),t=i;for(let t=n.length-1;t>=0;t--){const{nodeOffsetStart:i,nodeOffsetEnd:r}=n[t];if((0,R.zG)(i,s)){const n=I(e.children[t],i,r,s);if(n)return n}}return null}if(3===e.kind)return null;if(1===e.kind){const s=(0,R.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:s}}return null}function O(e,t,i,s){if(4===e.kind||2===e.kind){for(const n of e.children){if(i=(0,R.QB)(t,n.length),(0,R.zG)(s,i)){const e=O(n,t,i,s);if(e)return e}t=i}return null}if(3===e.kind)return null;if(1===e.kind){const s=(0,R.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:s}}return null}function D(e,t,i,s,n,r,o,a,l,c,h=!1){if(o>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h<a;h++){const a=e.getChild(h);if(a){if(i=(0,R.QB)(t,a.length),(0,R.vr)(t,n)&&(0,R.o0)(i,s)){if((0,R.o0)(i,n)){e=a;continue e}if(!D(a,t,i,s,n,r,o,0,l,c))return!1}t=i}}return!0}case 2:{const h=!c||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let d=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),d=t,h&&(t++,l.set(e.openingBracket.text,t))}const u=e.childrenLength;for(let g=0;g<u;g++){const u=e.getChild(g);if(u){if(i=(0,R.QB)(t,u.length),(0,R.vr)(t,n)&&(0,R.o0)(i,s)){if((0,R.o0)(i,n)&&1!==u.kind){e=u,h?(o++,a=d+1):a=d;continue e}if(h||1!==u.kind||!e.closingBracket){if(!D(u,t,i,s,n,r,h?o+1:o,h?d+1:d,l,c,!e.closingBracket))return!1}}t=i}}return l?.set(e.openingBracket.text,d),!0}case 3:{const e=(0,R.Qx)(t,i);return r(new E(e,o-1,0,!0))}case 1:{const e=(0,R.Qx)(t,i);return r(new E(e,o-1,a-1,h))}case 0:return!0}}class M{constructor(e,t,i){this.push=e,this.includeMinIndentation=t,this.textModel=i}}function P(e,t,i,s,n,r,o,a){if(o>200)return!0;let l=!0;if(2===e.kind){let c=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),c=t,t++,a.set(e.openingBracket.text,t)}const h=(0,R.QB)(t,e.openingBracket.length);let d=-1;if(r.includeMinIndentation&&(d=e.computeMinIndentation(t,r.textModel)),l=r.push(new y((0,R.Qx)(t,i),(0,R.Qx)(t,h),e.closingBracket?(0,R.Qx)((0,R.QB)(h,e.child?.length||R.Vp),i):void 0,o,c,e,d)),t=h,l&&e.child){const c=e.child;if(i=(0,R.QB)(t,c.length),(0,R.vr)(t,n)&&(0,R.o0)(i,s)&&(l=P(c,t,i,s,n,r,o+1,a),!l))return!1}a?.set(e.openingBracket.text,c)}else{let i=t;for(const t of e.children){const e=i;if(i=(0,R.QB)(i,t.length),(0,R.vr)(e,n)&&(0,R.vr)(s,i)&&(l=P(t,e,i,s,n,r,o,a),!l))return!1}}return l}class F extends a.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new a.HE),this.onDidChangeEmitter=new o.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const i=new a.Cm;this.bracketPairsTree.value=(e=i.add(new N(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=i,{object:e,dispose:()=>t?.dispose()}),i.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||s.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||s.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||s.c1.empty}findMatchingBracketUp(e,t,i){const s=this.textModel.validatePosition(t),n=this.textModel.getLanguageIdAtPosition(s.lineNumber,s.column);if(this.canBuildAST){const i=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew.getClosingBracketInfo(e);if(!i)return null;const s=this.getBracketPairsInRange(g.Q.fromPositions(t,t)).findLast((e=>i.closes(e.openingBracketInfo)));return s?s.openingBracketRange:null}{const t=e.toLowerCase(),r=this.languageConfigurationService.getLanguageConfiguration(n).brackets;if(!r)return null;const o=r.textIsBracket[t];return o?B(this._findMatchingBracketUp(o,s,U(i))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(g.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,s.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),g.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const i=U(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,s){const n=t.getCount(),r=t.getLanguageId(s);let o=Math.max(0,e.column-1-i.maxBracketLength);for(let l=s-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=o)break;if((0,C.Yo)(t.getStandardTokenType(l))||t.getLanguageId(l)!==r){o=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let l=s+1;l<n;l++){const e=t.getStartOffset(l);if(e>=a)break;if((0,C.Yo)(t.getStandardTokenType(l))||t.getLanguageId(l)!==r){a=e;break}}return{searchStartOffset:o,searchEndOffset:a}}_matchBracket(e,t){const i=e.lineNumber,s=this.textModel.tokenization.getLineTokens(i),n=this.textModel.getLineContent(i),r=s.findTokenIndexAtOffset(e.column-1);if(r<0)return null;const o=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId(r)).brackets;if(o&&!(0,C.Yo)(s.getStandardTokenType(r))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,s,o,r),c=null;for(;;){const s=b.Fu.findNextBracketInRange(o.forwardRegex,i,n,a,l);if(!s)break;if(s.startColumn<=e.column&&e.column<=s.endColumn){const e=n.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),i=this._matchFoundBracket(s,o.textIsBracket[e],o.textIsOpenBracket[e],t);if(i){if(i instanceof H)return null;c=i}}a=s.endColumn-1}if(c)return c}if(r>0&&s.getStartOffset(r)===e.column-1){const o=r-1,a=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId(o)).brackets;if(a&&!(0,C.Yo)(s.getStandardTokenType(o))){const{searchStartOffset:r,searchEndOffset:l}=this._establishBracketSearchOffsets(e,s,a,o),c=b.Fu.findPrevBracketInRange(a.reversedRegex,i,n,r,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=n.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),i=this._matchFoundBracket(c,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(i)return i instanceof H?null:i}}}return null}_matchFoundBracket(e,t,i,s){if(!t)return null;const n=i?this._findMatchingBracketDown(t,e.getEndPosition(),s):this._findMatchingBracketUp(t,e.getStartPosition(),s);return n?n instanceof H?n:[e,n]:null}_findMatchingBracketUp(e,t,i){const s=e.languageId,n=e.reversedRegex;let r=-1,o=0;const a=(t,s,a,l)=>{for(;;){if(i&&++o%100===0&&!i())return H.INSTANCE;const c=b.Fu.findPrevBracketInRange(n,t,s,a,l);if(!c)break;const h=s.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?r++:e.isClose(h)&&r--,0===r)return c;l=c.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),i=e.getCount(),n=this.textModel.getLineContent(l);let r=i-1,o=n.length,c=n.length;l===t.lineNumber&&(r=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,c=t.column-1);let h=!0;for(;r>=0;r--){const t=e.getLanguageId(r)===s&&!(0,C.Yo)(e.getStandardTokenType(r));if(t)h?o=e.getStartOffset(r):(o=e.getStartOffset(r),c=e.getEndOffset(r));else if(h&&o!==c){const e=a(l,n,o,c);if(e)return e}h=t}if(h&&o!==c){const e=a(l,n,o,c);if(e)return e}}return null}_findMatchingBracketDown(e,t,i){const s=e.languageId,n=e.forwardRegex;let r=1,o=0;const a=(t,s,a,l)=>{for(;;){if(i&&++o%100===0&&!i())return H.INSTANCE;const c=b.Fu.findNextBracketInRange(n,t,s,a,l);if(!c)break;const h=s.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?r++:e.isClose(h)&&r--,0===r)return c;a=c.endColumn-1}return null},l=this.textModel.getLineCount();for(let c=t.lineNumber;c<=l;c++){const e=this.textModel.tokenization.getLineTokens(c),i=e.getCount(),n=this.textModel.getLineContent(c);let r=0,o=0,l=0;c===t.lineNumber&&(r=e.findTokenIndexAtOffset(t.column-1),o=t.column-1,l=t.column-1);let h=!0;for(;r<i;r++){const t=e.getLanguageId(r)===s&&!(0,C.Yo)(e.getStandardTokenType(r));if(t)h||(o=e.getStartOffset(r)),l=e.getEndOffset(r);else if(h&&o!==l){const e=a(c,n,o,l);if(e)return e}h=t}if(h&&o!==l){const e=a(c,n,o,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let i=null,s=null,n=null;for(let r=t.lineNumber;r>=1;r--){const e=this.textModel.tokenization.getLineTokens(r),o=e.getCount(),a=this.textModel.getLineContent(r);let l=o-1,c=a.length,h=a.length;if(r===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const r=e.getLanguageId(l);i!==r&&(i=r,s=this.languageConfigurationService.getLanguageConfiguration(i).brackets,n=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew)}let d=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(i!==t){if(s&&n&&d&&c!==h){const e=b.Fu.findPrevBracketInRange(s.reversedRegex,r,a,c,h);if(e)return this._toFoundBracket(n,e);d=!1}i=t,s=this.languageConfigurationService.getLanguageConfiguration(i).brackets,n=this.languageConfigurationService.getLanguageConfiguration(i).bracketsNew}const o=!!s&&!(0,C.Yo)(e.getStandardTokenType(l));if(o)d?c=e.getStartOffset(l):(c=e.getStartOffset(l),h=e.getEndOffset(l));else if(n&&s&&d&&c!==h){const e=b.Fu.findPrevBracketInRange(s.reversedRegex,r,a,c,h);if(e)return this._toFoundBracket(n,e)}d=o}if(n&&s&&d&&c!==h){const e=b.Fu.findPrevBracketInRange(s.reversedRegex,r,a,c,h);if(e)return this._toFoundBracket(n,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const i=this.textModel.getLineCount();let s=null,n=null,r=null;for(let o=t.lineNumber;o<=i;o++){const e=this.textModel.tokenization.getLineTokens(o),i=e.getCount(),a=this.textModel.getLineContent(o);let l=0,c=0,h=0;if(o===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,h=t.column-1;const i=e.getLanguageId(l);s!==i&&(s=i,n=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew)}let d=!0;for(;l<i;l++){const t=e.getLanguageId(l);if(s!==t){if(r&&n&&d&&c!==h){const e=b.Fu.findNextBracketInRange(n.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(r,e);d=!1}s=t,n=this.languageConfigurationService.getLanguageConfiguration(s).brackets,r=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew}const i=!!n&&!(0,C.Yo)(e.getStandardTokenType(l));if(i)d||(c=e.getStartOffset(l)),h=e.getEndOffset(l);else if(r&&n&&d&&c!==h){const e=b.Fu.findNextBracketInRange(n.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(r,e)}d=i}if(r&&n&&d&&c!==h){const e=b.Fu.findNextBracketInRange(n.forwardRegex,o,a,c,h);if(e)return this._toFoundBracket(r,e)}}return null}findEnclosingBrackets(e,t){const i=this.textModel.validatePosition(e);if(this.canBuildAST){const e=g.Q.fromPositions(i),t=this.getBracketPairsInRange(g.Q.fromPositions(i,i)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const s=U(t),n=this.textModel.getLineCount(),r=new Map;let o=[];const a=(e,t)=>{if(!r.has(e)){const i=[];for(let e=0,s=t?t.brackets.length:0;e<s;e++)i[e]=0;r.set(e,i)}o=r.get(e)};let l=0;const c=(e,t,i,n,r)=>{for(;;){if(s&&++l%100===0&&!s())return H.INSTANCE;const a=b.Fu.findNextBracketInRange(e.forwardRegex,t,i,n,r);if(!a)break;const c=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[c];if(h&&(h.isOpen(c)?o[h.index]++:h.isClose(c)&&o[h.index]--,-1===o[h.index]))return this._matchFoundBracket(a,h,!1,s);n=a.endColumn-1}return null};let h=null,d=null;for(let u=i.lineNumber;u<=n;u++){const e=this.textModel.tokenization.getLineTokens(u),t=e.getCount(),s=this.textModel.getLineContent(u);let n=0,r=0,o=0;if(u===i.lineNumber){n=e.findTokenIndexAtOffset(i.column-1),r=i.column-1,o=i.column-1;const t=e.getLanguageId(n);h!==t&&(h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d))}let l=!0;for(;n<t;n++){const t=e.getLanguageId(n);if(h!==t){if(d&&l&&r!==o){const e=c(d,u,s,r,o);if(e)return B(e);l=!1}h=t,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d)}const i=!!d&&!(0,C.Yo)(e.getStandardTokenType(n));if(i)l||(r=e.getStartOffset(n)),o=e.getEndOffset(n);else if(d&&l&&r!==o){const e=c(d,u,s,r,o);if(e)return B(e)}l=i}if(d&&l&&r!==o){const e=c(d,u,s,r,o);if(e)return B(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.textModel.getValueInRange(t);i=i.toLowerCase();const s=e.getBracketInfo(i);return s?{range:t,bracketInfo:s}:null}}function U(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class H{static{this.INSTANCE=new H}constructor(){this._searchCanceledBrand=void 0}}function B(e){return e instanceof H?null:e}var W=i(87119),V=i(47612);class z extends a.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new G,this.onDidChangeEmitter=new o.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i,s){if(s)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new g.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class G{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,V.zy)(((e,t)=>{const i=[W.sN,W.lQ,W.ss,W.l5,W.sH,W.zp],s=new G;t.addRule(`.monaco-editor .${s.unexpectedClosingBracketClassName} { color: ${e.getColor(W.s7)}; }`);const n=i.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let r=0;r<30;r++){const e=n[r%n.length];t.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(r)} { color: ${e}; }`)}}));var j=i(26656),K=i(53450);class Y{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function q(e,t,i,s,n){let r;for(n.spacesDiff=0,n.looksLikeAlignment=!1,r=0;r<t&&r<s;r++){if(e.charCodeAt(r)!==i.charCodeAt(r))break}let o=0,a=0;for(let u=r;u<t;u++){32===e.charCodeAt(u)?o++:a++}let l=0,c=0;for(let u=r;u<s;u++){32===i.charCodeAt(u)?l++:c++}if(o>0&&a>0)return;if(l>0&&c>0)return;const h=Math.abs(a-c),d=Math.abs(o-l);if(0===h)return n.spacesDiff=d,void(d>0&&0<=l-1&&l-1<e.length&&l<i.length&&32!==i.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(n.looksLikeAlignment=!0));d%h!==0||(n.spacesDiff=d/h)}function $(e,t,i){const s=Math.min(e.getLineCount(),1e4);let n=0,r=0,o="",a=0;const l=[2,4,6,8,3,5,7],c=[0,0,0,0,0,0,0,0,0],h=new Y;for(let g=1;g<=s;g++){const s=e.getLineLength(g),l=e.getLineContent(g),d=s<=65536;let u=!1,p=0,m=0,f=0;for(let t=0,i=s;t<i;t++){const i=d?l.charCodeAt(t):e.getLineCharCode(g,t);if(9===i)f++;else{if(32!==i){u=!0,p=t;break}m++}}if(!u)continue;if(f>0?n++:m>1&&r++,q(o,a,l,p,h),h.looksLikeAlignment&&(!i||t!==h.spacesDiff))continue;const _=h.spacesDiff;_<=8&&c[_]++,o=l,a=p}let d=i;n!==r&&(d=n<r);let u=t;if(d){let e=d?0:.1*s;l.forEach((t=>{const i=c[t];i>e&&(e=i,u=t)})),4===u&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(u=2)}return{insertSpaces:d,tabSize:u}}function Q(e){return(1&e.metadata)>>>0}function X(e,t){e.metadata=254&e.metadata|t}function Z(e){return(2&e.metadata)>>>1===1}function J(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function ee(e){return(4&e.metadata)>>>2===1}function te(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function ie(e){return(64&e.metadata)>>>6===1}function se(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function ne(e,t){e.metadata=231&e.metadata|t<<3}function re(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class oe{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,X(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,te(this,!1),se(this,!1),ne(this,1),re(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,J(this,!1)}reset(e,t,i,s){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=s}setOptions(e){this.options=e;const t=this.options.className;te(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),se(this,null!==this.options.glyphMarginClassName),ne(this,this.options.stickiness),re(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const ae=new oe(null,0,0);ae.parent=ae,ae.left=ae,ae.right=ae,X(ae,0);class le{constructor(){this.root=ae,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,s,n,r){return this.root===ae?[]:function(e,t,i,s,n,r,o){let a=e.root,l=0,c=0,h=0,d=0;const u=[];let g=0;for(;a!==ae;)if(Z(a))J(a.left,!1),J(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!Z(a.left)){if(c=l+a.maxEnd,c<t){J(a,!0);continue}if(a.left!==ae){a=a.left;continue}}if(h=l+a.start,h>i)J(a,!0);else{if(d=l+a.end,d>=t){a.setCachedOffsets(h,d,r);let e=!0;s&&a.ownerId&&a.ownerId!==s&&(e=!1),n&&ee(a)&&(e=!1),o&&!ie(a)&&(e=!1),e&&(u[g++]=a)}J(a,!0),a.right===ae||Z(a.right)||(l+=a.delta,a=a.right)}}return J(e.root,!1),u}(this,e,t,i,s,n,r)}search(e,t,i,s){return this.root===ae?[]:function(e,t,i,s,n){let r=e.root,o=0,a=0,l=0;const c=[];let h=0;for(;r!==ae;){if(Z(r)){J(r.left,!1),J(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),r=r.parent;continue}if(r.left!==ae&&!Z(r.left)){r=r.left;continue}a=o+r.start,l=o+r.end,r.setCachedOffsets(a,l,s);let e=!0;t&&r.ownerId&&r.ownerId!==t&&(e=!1),i&&ee(r)&&(e=!1),n&&!ie(r)&&(e=!1),e&&(c[h++]=r),J(r,!0),r.right===ae||Z(r.right)||(o+=r.delta,r=r.right)}return J(e.root,!1),c}(this,e,t,i,s)}collectNodesFromOwner(e){return function(e,t){let i=e.root;const s=[];let n=0;for(;i!==ae;)Z(i)?(J(i.left,!1),J(i.right,!1),i=i.parent):i.left===ae||Z(i.left)?(i.ownerId===t&&(s[n++]=i),J(i,!0),i.right===ae||Z(i.right)||(i=i.right)):i=i.left;return J(e.root,!1),s}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const i=[];let s=0;for(;t!==ae;)Z(t)?(J(t.left,!1),J(t.right,!1),t=t.parent):t.left===ae||Z(t.left)?t.right===ae||Z(t.right)?(i[s++]=t,J(t,!0)):t=t.right:t=t.left;return J(e.root,!1),i}(this)}insert(e){de(this,e),this._normalizeDeltaIfNecessary()}delete(e){ue(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let s=0;for(;e!==this.root;)e===e.parent.right&&(s+=e.parent.delta),e=e.parent;const n=i.start+s,r=i.end+s;i.setCachedOffsets(n,r,t)}acceptReplace(e,t,i,s){const n=function(e,t,i){let s=e.root,n=0,r=0,o=0,a=0;const l=[];let c=0;for(;s!==ae;)if(Z(s))J(s.left,!1),J(s.right,!1),s===s.parent.right&&(n-=s.parent.delta),s=s.parent;else{if(!Z(s.left)){if(r=n+s.maxEnd,r<t){J(s,!0);continue}if(s.left!==ae){s=s.left;continue}}o=n+s.start,o>i?J(s,!0):(a=n+s.end,a>=t&&(s.setCachedOffsets(o,a,0),l[c++]=s),J(s,!0),s.right===ae||Z(s.right)||(n+=s.delta,s=s.right))}return J(e.root,!1),l}(this,e,e+t);for(let r=0,o=n.length;r<o;r++){ue(this,n[r])}this._normalizeDeltaIfNecessary(),function(e,t,i,s){let n=e.root,r=0,o=0,a=0;const l=s-(i-t);for(;n!==ae;)if(Z(n))J(n.left,!1),J(n.right,!1),n===n.parent.right&&(r-=n.parent.delta),_e(n),n=n.parent;else{if(!Z(n.left)){if(o=r+n.maxEnd,o<t){J(n,!0);continue}if(n.left!==ae){n=n.left;continue}}a=r+n.start,a>i?(n.start+=l,n.end+=l,n.delta+=l,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),J(n,!0)):(J(n,!0),n.right===ae||Z(n.right)||(r+=n.delta,n=n.right))}J(e.root,!1)}(this,e,e+t,i),this._normalizeDeltaIfNecessary();for(let r=0,o=n.length;r<o;r++){const o=n[r];o.start=o.cachedAbsoluteStart,o.end=o.cachedAbsoluteEnd,he(o,e,e+t,i,s),o.maxEnd=o.end,de(this,o)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,i=0;for(;t!==ae;)t.left===ae||Z(t.left)?t.right===ae||Z(t.right)?(t.start=i+t.start,t.end=i+t.end,t.delta=0,_e(t),J(t,!0),J(t.left,!1),J(t.right,!1),t===t.parent.right&&(i-=t.parent.delta),t=t.parent):(i+=t.delta,t=t.right):t=t.left;J(e.root,!1)}(this))}}function ce(e,t,i,s){return e<i||!(e>i)&&(1!==s&&(2===s||t))}function he(e,t,i,s,n){const r=function(e){return(24&e.metadata)>>>3}(e),o=0===r||2===r,a=1===r||2===r,l=i-t,c=s,h=Math.min(l,c),d=e.start;let u=!1;const g=e.end;let p=!1;t<=d&&g<=i&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,u=!0,e.end=t,p=!0);{const e=n?1:l>0?2:0;!u&&ce(d,o,t,e)&&(u=!0),!p&&ce(g,a,t,e)&&(p=!0)}if(h>0&&!n){const e=l>c?2:0;!u&&ce(d,o,t+h,e)&&(u=!0),!p&&ce(g,a,t+h,e)&&(p=!0)}{const s=n?1:0;!u&&ce(d,o,i,s)&&(e.start=t+c,u=!0),!p&&ce(g,a,i,s)&&(e.end=t+c,p=!0)}const m=c-l;u||(e.start=Math.max(0,d+m)),p||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function de(e,t){if(e.root===ae)return t.parent=ae,t.left=ae,t.right=ae,X(t,0),e.root=t,e.root;!function(e,t){let i=0,s=e.root;const n=t.start,r=t.end;for(;;){if(Ce(n,r,s.start+i,s.end+i)<0){if(s.left===ae){t.start-=i,t.end-=i,t.maxEnd-=i,s.left=t;break}s=s.left}else{if(s.right===ae){t.start-=i+s.delta,t.end-=i+s.delta,t.maxEnd-=i+s.delta,s.right=t;break}i+=s.delta,s=s.right}}t.parent=s,t.left=ae,t.right=ae,X(t,1)}(e,t),ve(t.parent);let i=t;for(;i!==e.root&&1===Q(i.parent);)if(i.parent===i.parent.parent.left){const t=i.parent.parent.right;1===Q(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,pe(e,i)),X(i.parent,0),X(i.parent.parent,1),me(e,i.parent.parent))}else{const t=i.parent.parent.left;1===Q(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,me(e,i)),X(i.parent,0),X(i.parent.parent,1),pe(e,i.parent.parent))}return X(e.root,0),t}function ue(e,t){let i,s;if(t.left===ae?(i=t.right,s=t,i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===ae?(i=t.left,s=t):(s=function(e){for(;e.left!==ae;)e=e.left;return e}(t.right),i=s.right,i.start+=s.delta,i.end+=s.delta,i.delta+=s.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),s.start+=t.delta,s.end+=t.delta,s.delta=t.delta,(s.delta<-1073741824||s.delta>1073741824)&&(e.requestNormalizeDelta=!0)),s===e.root)return e.root=i,X(i,0),t.detach(),ge(),_e(i),void(e.root.parent=ae);const n=1===Q(s);if(s===s.parent.left?s.parent.left=i:s.parent.right=i,s===t?i.parent=s.parent:(s.parent===t?i.parent=s:i.parent=s.parent,s.left=t.left,s.right=t.right,s.parent=t.parent,X(s,Q(t)),t===e.root?e.root=s:t===t.parent.left?t.parent.left=s:t.parent.right=s,s.left!==ae&&(s.left.parent=s),s.right!==ae&&(s.right.parent=s)),t.detach(),n)return ve(i.parent),s!==t&&(ve(s),ve(s.parent)),void ge();let r;for(ve(i),ve(i.parent),s!==t&&(ve(s),ve(s.parent));i!==e.root&&0===Q(i);)i===i.parent.left?(r=i.parent.right,1===Q(r)&&(X(r,0),X(i.parent,1),pe(e,i.parent),r=i.parent.right),0===Q(r.left)&&0===Q(r.right)?(X(r,1),i=i.parent):(0===Q(r.right)&&(X(r.left,0),X(r,1),me(e,r),r=i.parent.right),X(r,Q(i.parent)),X(i.parent,0),X(r.right,0),pe(e,i.parent),i=e.root)):(r=i.parent.left,1===Q(r)&&(X(r,0),X(i.parent,1),me(e,i.parent),r=i.parent.left),0===Q(r.left)&&0===Q(r.right)?(X(r,1),i=i.parent):(0===Q(r.left)&&(X(r.right,0),X(r,1),pe(e,r),r=i.parent.left),X(r,Q(i.parent)),X(i.parent,0),X(r.left,0),me(e,i.parent),i=e.root));X(i,0),ge()}function ge(){ae.parent=ae,ae.delta=0,ae.start=0,ae.end=0}function pe(e,t){const i=t.right;i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==ae&&(i.left.parent=t),i.parent=t.parent,t.parent===ae?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i,_e(t),_e(i)}function me(e,t){const i=t.left;t.delta-=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==ae&&(i.right.parent=t),i.parent=t.parent,t.parent===ae?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i,_e(t),_e(i)}function fe(e){let t=e.end;if(e.left!==ae){const i=e.left.maxEnd;i>t&&(t=i)}if(e.right!==ae){const i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function _e(e){e.maxEnd=fe(e)}function ve(e){for(;e!==ae;){const t=fe(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Ce(e,t,i,s){return e===i?t-s:e-i}class be{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Ee)return Se(this.right);let e=this;for(;e.parent!==Ee&&e.parent.left!==e;)e=e.parent;return e.parent===Ee?Ee:e.parent}prev(){if(this.left!==Ee)return ye(this.left);let e=this;for(;e.parent!==Ee&&e.parent.right!==e;)e=e.parent;return e.parent===Ee?Ee:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Ee=new be(null,0);function Se(e){for(;e.left!==Ee;)e=e.left;return e}function ye(e){for(;e.right!==Ee;)e=e.right;return e}function we(e){return e===Ee?0:e.size_left+e.piece.length+we(e.right)}function Le(e){return e===Ee?0:e.lf_left+e.piece.lineFeedCnt+Le(e.right)}function Re(){Ee.parent=Ee}function Te(e,t){const i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==Ee&&(i.left.parent=t),i.parent=t.parent,t.parent===Ee?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i}function xe(e,t){const i=t.left;t.left=i.right,i.right!==Ee&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===Ee?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i}function ke(e,t){let i,s;if(t.left===Ee?(s=t,i=s.right):t.right===Ee?(s=t,i=s.left):(s=Se(t.right),i=s.right),s===e.root)return e.root=i,i.color=0,t.detach(),Re(),void(e.root.parent=Ee);const n=1===s.color;if(s===s.parent.left?s.parent.left=i:s.parent.right=i,s===t?(i.parent=s.parent,Ie(e,i)):(s.parent===t?i.parent=s:i.parent=s.parent,Ie(e,i),s.left=t.left,s.right=t.right,s.parent=t.parent,s.color=t.color,t===e.root?e.root=s:t===t.parent.left?t.parent.left=s:t.parent.right=s,s.left!==Ee&&(s.left.parent=s),s.right!==Ee&&(s.right.parent=s),s.size_left=t.size_left,s.lf_left=t.lf_left,Ie(e,s)),t.detach(),i.parent.left===i){const t=we(i),s=Le(i);if(t!==i.parent.size_left||s!==i.parent.lf_left){const n=t-i.parent.size_left,r=s-i.parent.lf_left;i.parent.size_left=t,i.parent.lf_left=s,Ne(e,i.parent,n,r)}}if(Ie(e,i.parent),n)return void Re();let r;for(;i!==e.root&&0===i.color;)i===i.parent.left?(r=i.parent.right,1===r.color&&(r.color=0,i.parent.color=1,Te(e,i.parent),r=i.parent.right),0===r.left.color&&0===r.right.color?(r.color=1,i=i.parent):(0===r.right.color&&(r.left.color=0,r.color=1,xe(e,r),r=i.parent.right),r.color=i.parent.color,i.parent.color=0,r.right.color=0,Te(e,i.parent),i=e.root)):(r=i.parent.left,1===r.color&&(r.color=0,i.parent.color=1,xe(e,i.parent),r=i.parent.left),0===r.left.color&&0===r.right.color?(r.color=1,i=i.parent):(0===r.left.color&&(r.right.color=0,r.color=1,Te(e,r),r=i.parent.left),r.color=i.parent.color,i.parent.color=0,r.left.color=0,xe(e,i.parent),i=e.root));i.color=0,Re()}function Ae(e,t){for(Ie(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Te(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,xe(e,t.parent.parent))}else{const i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&xe(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Te(e,t.parent.parent))}e.root.color=0}function Ne(e,t,i,s){for(;t!==e.root&&t!==Ee;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=s),t=t.parent}function Ie(e,t){let i=0,s=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(i=we((t=t.parent).left)-t.size_left,s=Le(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=s;t!==e.root&&(0!==i||0!==s);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=s),t=t.parent}}Ee.parent=Ee,Ee.left=Ee,Ee.right=Ee,Ee.color=0;var Oe=i(43264);const De=65535;function Me(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Pe{constructor(e,t,i,s,n){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=s,this.isBasicASCII=n}}function Fe(e,t=!0){const i=[0];let s=1;for(let n=0,r=e.length;n<r;n++){const t=e.charCodeAt(n);13===t?n+1<r&&10===e.charCodeAt(n+1)?(i[s++]=n+2,n++):i[s++]=n+1:10===t&&(i[s++]=n+1)}return t?Me(i):i}class Ue{constructor(e,t,i,s,n){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=s,this.length=n}}class He{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Be{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Ee&&e.iterate(e.root,(e=>(e!==Ee&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class We{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber<e&&i.nodeStartLineNumber+i.node.piece.lineFeedCnt>=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let s=0;s<i.length;s++){const n=i[s];(null===n.node.parent||n.nodeStartOffset>=e)&&(i[s]=null,t=!0)}if(t){const e=[];for(const t of i)null!==t&&e.push(t);this._cache=e}}}class Ve{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new He("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Ee,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let s=null;for(let n=0,r=e.length;n<r;n++)if(e[n].buffer.length>0){e[n].lineStarts||(e[n].lineStarts=Fe(e[n].buffer));const t=new Ue(n+1,{line:0,column:0},{line:e[n].lineStarts.length-1,column:e[n].buffer.length-e[n].lineStarts[e[n].lineStarts.length-1]},e[n].lineStarts.length-1,e[n].buffer.length);this._buffers.push(e[n]),s=this.rbInsertRight(s,t)}this._searchCache=new We(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=De,i=t-Math.floor(21845),s=2*i;let n="",r=0;const o=[];if(this.iterate(this.root,(t=>{const a=this.getNodeContent(t),l=a.length;if(r<=i||r+l<s)return n+=a,r+=l,!0;const c=n.replace(/\r\n|\r|\n/g,e);return o.push(new He(c,Fe(c))),n=a,r=l,!0})),r>0){const t=n.replace(/\r\n|\r|\n/g,e);o.push(new He(t,Fe(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Be(this,e)}getOffsetAt(e,t){let i=0,s=this.root;for(;s!==Ee;)if(s.left!==Ee&&s.lf_left+1>=e)s=s.left;else{if(s.lf_left+s.piece.lineFeedCnt+1>=e){i+=s.size_left;return i+(this.getAccumulatedValue(s,e-s.lf_left-2)+t-1)}e-=s.lf_left+s.piece.lineFeedCnt,i+=s.size_left+s.piece.length,s=s.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const s=e;for(;t!==Ee;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const n=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+n.index,0===n.index){const e=s-this.getOffsetAt(i+1,1);return new u.y(i+1,e+1)}return new u.y(i+1,n.remainder+1)}if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===Ee){const t=s-e-this.getOffsetAt(i+1,1);return new u.y(i+1,t+1)}t=t.right}return new u.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),s=this.nodeAt2(e.endLineNumber,e.endColumn),n=this.getValueInRange2(i,s);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?n:n.replace(/\r\n|\r|\n/g,t):n}getValueInRange2(e,t){if(e.node===t.node){const i=e.node,s=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s.substring(n+e.remainder,n+t.remainder)}let i=e.node;const s=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let r=s.substring(n+e.remainder,n+i.piece.length);for(i=i.next();i!==Ee;){const e=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){r+=e.substring(s,s+t.remainder);break}r+=e.substr(s,i.piece.length),i=i.next()}return r}getLinesContent(){const e=[];let t=0,i="",s=!1;return this.iterate(this.root,(n=>{if(n===Ee)return!0;const r=n.piece;let o=r.length;if(0===o)return!0;const a=this._buffers[r.bufferIndex].buffer,l=this._buffers[r.bufferIndex].lineStarts,c=r.start.line,h=r.end.line;let d=l[c]+r.start.column;if(s&&(10===a.charCodeAt(d)&&(d++,o--),e[t++]=i,i="",s=!1,0===o))return!0;if(c===h)return this._EOLNormalized||13!==a.charCodeAt(d+o-1)?i+=a.substr(d,o):(s=!0,i+=a.substr(d,o-1)),!0;i+=this._EOLNormalized?a.substring(d,Math.max(d,l[c+1]-this._EOLLength)):a.substring(d,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let s=c+1;s<h;s++)i=this._EOLNormalized?a.substring(l[s],l[s+1]-this._EOLLength):a.substring(l[s],l[s+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;return this._EOLNormalized||13!==a.charCodeAt(l[h]+r.end.column-1)?i=a.substr(l[h],r.end.column):(s=!0,0===r.end.column?t--:i=a.substr(l[h],r.end.column-1)),!0})),s&&(e[t++]=i,i=""),e[t++]=i,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const i=this._buffers[t.piece.bufferIndex],s=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return i.buffer.charCodeAt(s)}{const t=this._buffers[e.node.piece.bufferIndex],i=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){const i=this.nodeAt2(e,t+1);return this._getCharCode(i)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,i,s,n,r,o,a,l,c,h){const d=this._buffers[e.piece.bufferIndex],u=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),p=this.offsetInBuffer(e.piece.bufferIndex,n),m=this.offsetInBuffer(e.piece.bufferIndex,r);let f;const _={line:0,column:0};let v,C;t._wordSeparators?(v=d.buffer.substring(p,m),C=e=>e+p,t.reset(0)):(v=d.buffer,C=e=>e,t.reset(p));do{if(f=t.next(v),f){if(C(f.index)>=m)return c;this.positionInBuffer(e,C(f.index)-u,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,n,_),r=_.line===n.line?_.column-n.column+s:_.column+1,o=r+f[0].length;if(h[c++]=(0,Oe.dr)(new g.Q(i+t,r,i+t,o),f,a),C(f.index)+f[0].length>=m)return c;if(c>=l)return c}}while(f);return c}findMatchesLineByLine(e,t,i,s){const n=[];let r=0;const o=new Oe.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,o,e.startLineNumber,e.startColumn,c,h,t,i,s,r,n),n;let d=e.startLineNumber,u=a.node;for(;u!==l.node;){const l=this.getLineFeedCnt(u.piece.bufferIndex,c,u.piece.end);if(l>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[c.line+l],p=d===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(u,o,d,p,c,this.positionInBuffer(u,g-h),t,i,s,r,n),r>=s)return n;d+=l}const h=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const a=this.getLineContent(d).substring(h,e.endColumn-1);return r=this._findMatchesInLine(t,o,a,e.endLineNumber,h,r,n,i,s),n}if(r=this._findMatchesInLine(t,o,this.getLineContent(d).substr(h),d,h,r,n,i,s),r>=s)return n;d++,a=this.nodeAt2(d,1),u=a.node,c=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){const a=d===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(d).substring(a,e.endColumn-1);return r=this._findMatchesInLine(t,o,l,e.endLineNumber,a,r,n,i,s),n}const g=d===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(l.node,o,d,g,c,h,t,i,s,r,n),n}_findMatchesInLine(e,t,i,s,n,r,o,a,l){const c=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=i.length;let d=-a;for(;-1!==(d=i.indexOf(t,d+a));)if((!c||(0,Oe.wC)(c,i,h,d,a))&&(o[r++]=new v.Dg(new g.Q(s,d+1+n,s,d+1+a+n),null),r>=l))return r;return r}let h;t.reset(0);do{if(h=t.next(i),h&&(o[r++]=(0,Oe.dr)(new g.Q(s,h.index+1+n,s,h.index+1+h[0].length+n),h,a),r>=l))return r}while(h);return r}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Ee){const{node:i,remainder:s,nodeStartOffset:n}=this.nodeAt(e),r=i.piece,o=r.bufferIndex,a=this.positionInBuffer(i,s);if(0===i.piece.bufferIndex&&r.end.line===this._lastChangeBufferPos.line&&r.end.column===this._lastChangeBufferPos.column&&n+r.length===e&&t.length<De)return this.appendToNode(i,t),void this.computeBufferMetadata();if(n===e)this.insertContentToNodeLeft(t,i),this._searchCache.validate(e);else if(n+i.piece.length>e){const e=[];let n=new Ue(r.bufferIndex,a,r.end,this.getLineFeedCnt(r.bufferIndex,a,r.end),this.offsetInBuffer(o,r.end)-this.offsetInBuffer(o,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(i,s)){const e={line:n.start.line+1,column:0};n=new Ue(n.bufferIndex,e,n.end,this.getLineFeedCnt(n.bufferIndex,e,n.end),n.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(i,s-1)){const n=this.positionInBuffer(i,s-1);this.deleteNodeTail(i,n),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,a)}else this.deleteNodeTail(i,a);const l=this.createNewPieces(t);n.length>0&&this.rbInsertRight(i,n);let c=i;for(let t=0;t<l.length;t++)c=this.rbInsertRight(c,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,i)}else{const e=this.createNewPieces(t);let i=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)i=this.rbInsertRight(i,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===Ee)return;const i=this.nodeAt(e),s=this.nodeAt(e+t),n=i.node,r=s.node;if(n===r){const r=this.positionInBuffer(n,i.remainder),o=this.positionInBuffer(n,s.remainder);if(i.nodeStartOffset===e){if(t===n.piece.length){const e=n.next();return ke(this,n),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(n,o),this._searchCache.validate(e),this.validateCRLFWithPrevNode(n),void this.computeBufferMetadata()}return i.nodeStartOffset+n.piece.length===e+t?(this.deleteNodeTail(n,r),this.validateCRLFWithNextNode(n),void this.computeBufferMetadata()):(this.shrinkNode(n,r,o),void this.computeBufferMetadata())}const o=[],a=this.positionInBuffer(n,i.remainder);this.deleteNodeTail(n,a),this._searchCache.validate(e),0===n.piece.length&&o.push(n);const l=this.positionInBuffer(r,s.remainder);this.deleteNodeHead(r,l),0===r.piece.length&&o.push(r);for(let h=n.next();h!==Ee&&h!==r;h=h.next())o.push(h);const c=0===n.piece.length?n.prev():n;this.deleteNodes(o),this.validateCRLFWithNextNode(c),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const i=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const s=t.piece,n={line:s.start.line+1,column:0},r=new Ue(s.bufferIndex,n,s.end,this.getLineFeedCnt(s.bufferIndex,n,s.end),s.length-1);t.piece=r,e+="\n",Ne(this,t,-1,-1),0===t.piece.length&&i.push(t)}const s=this.createNewPieces(e);let n=this.rbInsertLeft(t,s[s.length-1]);for(let r=s.length-2;r>=0;r--)n=this.rbInsertLeft(n,s[r]);this.validateCRLFWithPrevNode(n),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const i=this.createNewPieces(e),s=this.rbInsertRight(t,i[0]);let n=s;for(let r=1;r<i.length;r++)n=this.rbInsertRight(n,i[r]);this.validateCRLFWithPrevNode(s)}positionInBuffer(e,t,i){const s=e.piece,n=e.piece.bufferIndex,r=this._buffers[n].lineStarts,o=r[s.start.line]+s.start.column+t;let a=s.start.line,l=s.end.line,c=0,h=0,d=0;for(;a<=l&&(c=a+(l-a)/2|0,d=r[c],c!==l);)if(h=r[c+1],o<d)l=c-1;else{if(!(o>=h))break;a=c+1}return i?(i.line=c,i.column=o-d,null):{line:c,column:o-d}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;const s=this._buffers[e].lineStarts;if(i.line===s.length-1)return i.line-t.line;const n=s[i.line+1],r=s[i.line]+i.column;if(n>r+1)return i.line-t.line;const o=r-1;return 13===this._buffers[e].buffer.charCodeAt(o)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)ke(this,e[t])}createNewPieces(e){if(e.length>De){const t=[];for(;e.length>De;){const i=e.charCodeAt(65534);let s;13===i||i>=55296&&i<=56319?(s=e.substring(0,65534),e=e.substring(65534)):(s=e.substring(0,De),e=e.substring(De));const n=Fe(s);t.push(new Ue(this._buffers.length,{line:0,column:0},{line:n.length-1,column:s.length-n[n.length-1]},n.length-1,s.length)),this._buffers.push(new He(s,n))}const i=Fe(e);return t.push(new Ue(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new He(e,i)),t}let t=this._buffers[0].buffer.length;const i=Fe(e,!1);let s=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},s=this._lastChangeBufferPos;for(let e=0;e<i.length;e++)i[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<i.length;e++)i[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+=e}const n=this._buffers[0].buffer.length,r=this._buffers[0].lineStarts.length-1,o={line:r,column:n-this._buffers[0].lineStarts[r]},a=new Ue(0,s,o,this.getLineFeedCnt(0,s,o),n-t);return this._lastChangeBufferPos=o,[a]}getLineRawContent(e,t=0){let i=this.root,s="";const n=this._searchCache.get2(e);if(n){i=n.node;const r=this.getAccumulatedValue(i,e-n.nodeStartLineNumber-1),o=this._buffers[i.piece.bufferIndex].buffer,a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(n.nodeStartLineNumber+i.piece.lineFeedCnt!==e){const s=this.getAccumulatedValue(i,e-n.nodeStartLineNumber);return o.substring(a+r,a+s-t)}s=o.substring(a+r,a+i.piece.length)}else{let n=0;const r=e;for(;i!==Ee;)if(i.left!==Ee&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const s=this.getAccumulatedValue(i,e-i.lf_left-2),o=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:n,nodeStartLineNumber:r-(e-1-i.lf_left)}),a.substring(l+s,l+o-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(i,e-i.lf_left-2),n=this._buffers[i.piece.bufferIndex].buffer,r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s=n.substring(r+t,r+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}}for(i=i.next();i!==Ee;){const e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const n=this.getAccumulatedValue(i,0),r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s+=e.substring(r,r+n-t),s}{const t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s+=e.substr(t,i.piece.length)}i=i.next()}return s}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==Ee;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,s=this.positionInBuffer(e,t),n=s.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,s);if(t!==n)return{index:t,remainder:0}}return{index:n,remainder:s.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,s=this._buffers[i.bufferIndex].lineStarts,n=i.start.line+t+1;return n>i.end.line?s[i.end.line]+i.end.column-s[i.start.line]-i.start.column:s[n]-s[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,s=i.lineFeedCnt,n=this.offsetInBuffer(i.bufferIndex,i.end),r=t,o=this.offsetInBuffer(i.bufferIndex,r),a=this.getLineFeedCnt(i.bufferIndex,i.start,r),l=a-s,c=o-n,h=i.length+c;e.piece=new Ue(i.bufferIndex,i.start,r,a,h),Ne(this,e,c,l)}deleteNodeHead(e,t){const i=e.piece,s=i.lineFeedCnt,n=this.offsetInBuffer(i.bufferIndex,i.start),r=t,o=this.getLineFeedCnt(i.bufferIndex,r,i.end),a=o-s,l=n-this.offsetInBuffer(i.bufferIndex,r),c=i.length+l;e.piece=new Ue(i.bufferIndex,r,i.end,o,c),Ne(this,e,l,a)}shrinkNode(e,t,i){const s=e.piece,n=s.start,r=s.end,o=s.length,a=s.lineFeedCnt,l=t,c=this.getLineFeedCnt(s.bufferIndex,s.start,l),h=this.offsetInBuffer(s.bufferIndex,t)-this.offsetInBuffer(s.bufferIndex,n);e.piece=new Ue(s.bufferIndex,s.start,l,c,h),Ne(this,e,h-o,c-a);const d=new Ue(s.bufferIndex,i,r,this.getLineFeedCnt(s.bufferIndex,i,r),this.offsetInBuffer(s.bufferIndex,r)-this.offsetInBuffer(s.bufferIndex,i)),u=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),s=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const n=Fe(t,!1);for(let d=0;d<n.length;d++)n[d]+=s;if(i){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:s-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1));const r=this._buffers[0].lineStarts.length-1,o={line:r,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[r]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,c=this.getLineFeedCnt(0,e.piece.start,o),h=c-l;e.piece=new Ue(e.piece.bufferIndex,e.piece.start,o,c,a),this._lastChangeBufferPos=o,Ne(this,e,t.length,h)}nodeAt(e){let t=this.root;const i=this._searchCache.get(e);if(i)return{node:i.node,nodeStartOffset:i.nodeStartOffset,remainder:e-i.nodeStartOffset};let s=0;for(;t!==Ee;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){s+=t.size_left;const i={node:t,remainder:e-t.size_left,nodeStartOffset:s};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,s+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let i=this.root,s=0;for(;i!==Ee;)if(i.left!==Ee&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1);return s+=i.size_left,{node:i,remainder:Math.min(n+t-1,r),nodeStartOffset:s}}if(i.lf_left+i.piece.lineFeedCnt===e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2);if(n+t-1<=i.piece.length)return{node:i,remainder:n+t-1,nodeStartOffset:s};t-=i.piece.length-n;break}e-=i.lf_left+i.piece.lineFeedCnt,s+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==Ee;){if(i.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(i,0),s=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:s}}if(i.piece.length>=t-1){return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)}}t-=i.piece.length,i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],s=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(s)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===Ee||0===e.piece.lineFeedCnt)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,s=t.start.line,n=i[s]+t.start.column;if(s===i.length-1)return!1;return!(i[s+1]>n+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(n)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==Ee&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],s=this._buffers[e.piece.bufferIndex].lineStarts;let n;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:s[e.piece.end.line]-s[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const r=e.piece.length-1,o=e.piece.lineFeedCnt-1;e.piece=new Ue(e.piece.bufferIndex,e.piece.start,n,o,r),Ne(this,e,-1,-1),0===e.piece.length&&i.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Ue(t.piece.bufferIndex,a,t.piece.end,c,l),Ne(this,t,-1,-1),0===t.piece.length&&i.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let d=0;d<i.length;d++)ke(this,i[d])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const i=t.next();if(this.startWithLF(i)){if(e+="\n",1===i.piece.length)ke(this,i);else{const e=i.piece,t={line:e.start.line+1,column:0},s=e.length-1,n=this.getLineFeedCnt(e.bufferIndex,t,e.end);i.piece=new Ue(e.bufferIndex,t,e.end,n,s),Ne(this,i,-1,-1)}return!0}}return!1}iterate(e,t){if(e===Ee)return t(Ee);const i=this.iterate(e.left,t);return i?t(e)&&this.iterate(e.right,t):i}getNodeContent(e){if(e===Ee)return"";const t=this._buffers[e.piece.bufferIndex],i=e.piece,s=this.offsetInBuffer(i.bufferIndex,i.start),n=this.offsetInBuffer(i.bufferIndex,i.end);return t.buffer.substring(s,n)}getPieceContent(e){const t=this._buffers[e.bufferIndex],i=this.offsetInBuffer(e.bufferIndex,e.start),s=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(i,s)}rbInsertRight(e,t){const i=new be(t,1);i.left=Ee,i.right=Ee,i.parent=Ee,i.size_left=0,i.lf_left=0;if(this.root===Ee)this.root=i,i.color=0;else if(e.right===Ee)e.right=i,i.parent=e;else{const t=Se(e.right);t.left=i,i.parent=t}return Ae(this,i),i}rbInsertLeft(e,t){const i=new be(t,1);if(i.left=Ee,i.right=Ee,i.parent=Ee,i.size_left=0,i.lf_left=0,this.root===Ee)this.root=i,i.color=0;else if(e.left===Ee)e.left=i,i.parent=e;else{const t=ye(e.left);t.right=i,i.parent=t}return Ae(this,i),i}}var ze=i(64829);class Ge extends a.jG{constructor(e,t,i,s,n,r,a){super(),this._onDidChangeContent=this._register(new o.vl),this._BOM=t,this._mightContainNonBasicASCII=!r,this._mightContainRTL=s,this._mightContainUnusualLineTerminators=n,this._pieceTree=new Ve(e,i,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const i=e+t,s=this.getPositionAt(e),n=this.getPositionAt(i);return new g.Q(s.lineNumber,s.column,n.lineNumber,n.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const i=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,i)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const i=this.getOffsetAt(e.startLineNumber,e.startColumn),s=this.getOffsetAt(e.endLineNumber,e.endColumn);let n=0;const r=this._getEndOfLine(t),o=this.getEOL();if(r.length!==o.length){n=(r.length-o.length)*(e.endLineNumber-e.startLineNumber)}return s-i+n}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let i=0;const s=e.startLineNumber,n=e.endLineNumber;for(let t=s;t<=n;t++){const r=this.getLineContent(t),o=t===s?e.startColumn-1:0,a=t===n?e.endColumn-1:r.length;for(let e=o;e<a;e++)l.pc(r.charCodeAt(e))?(i+=1,e+=1):i+=1}return i+=this._getEndOfLine(t).length*(n-s),i}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=l.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=l.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,i){let s=this._mightContainRTL,n=this._mightContainUnusualLineTerminators,r=this._mightContainNonBasicASCII,o=!0,a=[];for(let f=0;f<e.length;f++){const t=e[f];o&&t._isTracked&&(o=!1);const i=t.range;if(t.text){let e=!0;r||(e=!l.aC(t.text),r=e),!s&&e&&(s=l.E_(t.text)),!n&&e&&(n=l.$X(t.text))}let c="",d=0,u=0,g=0;if(t.text){let e;[d,u,g,e]=(0,h.W)(t.text);const i=this.getEOL();c=0===e||e===("\r\n"===i?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,i)}a[f]={sortIndex:f,identifier:t.identifier||null,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i),text:c,eolCount:d,firstLineLength:u,lastLineLength:g,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}a.sort(Ge._sortOpsAscending);let c=!1;for(let l=0,h=a.length-1;l<h;l++){const e=a[l].range.getEndPosition(),t=a[l+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");c=!0}}o&&(a=this._reduceOperations(a));const d=i||t?Ge._getInverseEditRanges(a):[],u=[];if(t)for(let h=0;h<a.length;h++){const e=a[h],t=d[h];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let i=t.startLineNumber;i<=t.endLineNumber;i++){let s="";i===t.startLineNumber&&(s=this.getLineContent(e.range.startLineNumber),-1!==l.HG(s))||u.push({lineNumber:i,oldContent:s})}}let g=null;if(i){let e=0;g=[];for(let t=0;t<a.length;t++){const i=a[t],s=d[t],n=this.getValueInRange(i.range),r=i.rangeOffset+e;e+=i.text.length-n.length,g[t]={sortIndex:i.sortIndex,identifier:i.identifier,range:s,text:n,textChange:new ze.k(i.rangeOffset,n,r,i.text)}}c||g.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=s,this._mightContainUnusualLineTerminators=n,this._mightContainNonBasicASCII=r;const p=this._doApplyEdits(a);let m=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=u.length;e<t;e++){const t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;const i=u[e].oldContent,s=this.getLineContent(t);0!==s.length&&s!==i&&-1===l.HG(s)&&m.push(t)}}return this._onDidChangeContent.fire(),new v.F4(g,p,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,s=e[e.length-1].range,n=new g.Q(i.startLineNumber,i.startColumn,s.endLineNumber,s.endColumn);let r=i.startLineNumber,o=i.startColumn;const a=[];for(let h=0,p=e.length;h<p;h++){const i=e[h],s=i.range;t=t||i.forceMoveMarkers,a.push(this.getValueInRange(new g.Q(r,o,s.startLineNumber,s.startColumn))),i.text.length>0&&a.push(i.text),r=s.endLineNumber,o=s.endColumn}const l=a.join(""),[c,d,u]=(0,h.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n,0),text:l,eolCount:c,firstLineLength:d,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Ge._sortOpsDescending);const t=[];for(let i=0;i<e.length;i++){const s=e[i],n=s.range.startLineNumber,r=s.range.startColumn,o=s.range.endLineNumber,a=s.range.endColumn;if(n===o&&r===a&&0===s.text.length)continue;s.text?(this._pieceTree.delete(s.rangeOffset,s.rangeLength),this._pieceTree.insert(s.rangeOffset,s.text,!0)):this._pieceTree.delete(s.rangeOffset,s.rangeLength);const l=new g.Q(n,r,o,a);t.push({range:l,rangeLength:s.rangeLength,text:s.text,rangeOffset:s.rangeOffset,forceMoveMarkers:s.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,i,s){return this._pieceTree.findMatchesLineByLine(e,t,i,s)}static _getInverseEditRanges(e){const t=[];let i=0,s=0,n=null;for(let r=0,o=e.length;r<o;r++){const o=e[r];let a,l,c;if(n?n.range.endLineNumber===o.range.startLineNumber?(a=i,l=s+(o.range.startColumn-n.range.endColumn)):(a=i+(o.range.startLineNumber-n.range.endLineNumber),l=o.range.startColumn):(a=o.range.startLineNumber,l=o.range.startColumn),o.text.length>0){const e=o.eolCount+1;c=1===e?new g.Q(a,l,a,l+o.firstLineLength):new g.Q(a,l,a+e-1,o.lastLineLength+1)}else c=new g.Q(a,l,a,l);i=c.endLineNumber,s=c.endColumn,t.push(c),n=o}return t}static _sortOpsAscending(e,t){const i=g.Q.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=g.Q.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}class je{constructor(e,t,i,s,n,r,o,a,l){this._chunks=e,this._bom=t,this._cr=i,this._lf=s,this._crlf=n,this._containsRTL=r,this._containsUnusualLineTerminators=o,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let n=0,r=i.length;n<r;n++){const e=i[n].buffer.replace(/\r\n|\r|\n/g,t),s=Fe(e);i[n]=new He(e,s)}const s=new Ge(i,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:s,disposable:s}}}class Ke{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&l.LU(e)&&(this.BOM=l.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let i=1,s=0,n=0,r=0,o=!0;for(let l=0,c=t.length;l<c;l++){const a=t.charCodeAt(l);13===a?l+1<c&&10===t.charCodeAt(l+1)?(r++,e[i++]=l+2,l++):(s++,e[i++]=l+1):10===a?(n++,e[i++]=l+1):o&&9!==a&&(a<32||a>126)&&(o=!1)}const a=new Pe(Me(e),s,n,r,o);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new He(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=l.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=l.$X(e)))}finish(e=!0){return this._finish(),new je(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Fe(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Ye=i(86571),qe=i(26486),$e=i(62083),Qe=i(20761),Xe=i(90766),Ze=i(98067),Je=i(78381),et=i(74444),tt=i(20788);class it{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,i){if(e>=this._store.length)return;if(0===t)return void this.insert(e,i);if(0===i)return void this.delete(e,t);const s=this._store.slice(0,e),n=this._store.slice(e+t),r=function(e,t){const i=[];for(let s=0;s<e;s++)i[s]=t;return i}(i,this._default);this._store=s.concat(r,n)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const i=[];for(let s=0;s<t;s++)i[s]=this._default;this._store=(0,s.nK)(this._store,e,i)}}class st{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class nt{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e)return void i.appendLineTokens(t)}this._tokens.push(new st(e,[t]))}finalize(){return this._tokens}}var rt=i(87469);class ot{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new lt(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class at extends ot{constructor(e,t,i,s){super(e,t),this._textModel=i,this._languageIdCodec=s}updateTokensUntilLine(e,t){const i=this._textModel.getLanguageId();for(;;){const s=this.getFirstInvalidLine();if(!s||s.lineNumber>t)break;const n=this._textModel.getLineContent(s.lineNumber),r=dt(this._languageIdCodec,i,this.tokenizationSupport,n,!0,s.startState);e.add(s.lineNumber,r.tokens),this.store.setEndState(s.lineNumber,r.endState)}}getTokenTypeIfInsertingCharacter(e,t){const i=this.getStartState(e.lineNumber);if(!i)return 0;const s=this._textModel.getLanguageId(),n=this._textModel.getLineContent(e.lineNumber),r=n.substring(0,e.column-1)+t+n.substring(e.column-1),o=dt(this._languageIdCodec,s,this.tokenizationSupport,r,!0,i),a=new rt.f(o.tokens,r,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,i){const s=e.lineNumber,n=e.column,r=this.getStartState(s);if(!r)return null;const o=this._textModel.getLineContent(s),a=o.substring(0,n-1)+i+o.substring(n-1+t),l=this._textModel.getLanguageIdAtPosition(s,0),c=dt(this._languageIdCodec,l,this.tokenizationSupport,a,!0,r);return new rt.f(c.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,i){if(i<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,i),{heuristicTokens:!1};let s=this.guessStartState(t);const n=this._textModel.getLanguageId();for(let r=t;r<=i;r++){const t=this._textModel.getLineContent(r),i=dt(this._languageIdCodec,n,this.tokenizationSupport,t,!0,s);e.add(r,i.tokens),s=i.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const i=[];let s=null;for(let o=e-1;t>1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&(e<t&&(i.push(this._textModel.getLineContent(o)),t=e,s=this.getStartState(o),s)))break}s||(s=this.tokenizationSupport.getInitialState()),i.reverse();const n=this._textModel.getLanguageId();let r=s;for(const o of i){r=dt(this._languageIdCodec,n,this.tokenizationSupport,o,!1,r).endState}return r}}class lt{constructor(e){this.lineCount=e,this._tokenizationStateStore=new ct,this._invalidEndStatesLineNumbers=new ht,this._invalidEndStatesLineNumbers.addRange(new et.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new r.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const i=this._tokenizationStateStore.setEndState(e,t);return i&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new et.L(e+1,e+2)),i}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new et.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,h.W)(t.text);this.acceptChange(new Ye.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new et.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const i=this.getStartState(t,e);if(!i)throw new r.D7("Start state must be defined");return{lineNumber:t,startState:i}}}class ct{constructor(){this._lineEndStates=new it(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const i=this._lineEndStates.get(e);return(!i||!i.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let i=e.length;t>0&&i>0&&(i--,t--),this._lineEndStates.replace(e.startLineNumber,i,t)}}class ht{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const i=this._ranges[t];i.start===e?i.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new et.L(e+1,i.endExclusive):i.endExclusive===e+1?this._ranges[t]=new et.L(i.start,e):this._ranges.splice(t,1,new et.L(i.start,e),new et.L(e+1,i.endExclusive))}}addRange(e){et.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let i=0;for(;!(i>=this._ranges.length||e.start<=this._ranges[i].endExclusive);)i++;let s=i;for(;!(s>=this._ranges.length||e.endExclusive<this._ranges[s].start);)s++;const n=t-e.length;for(let r=s;r<this._ranges.length;r++)this._ranges[r]=this._ranges[r].delta(n);if(i===s){const s=new et.L(e.start,e.start+t);s.isEmpty||this._ranges.splice(i,0,s)}else{const t=Math.min(e.start,this._ranges[i].start),r=Math.max(e.endExclusive,this._ranges[s-1].endExclusive),o=new et.L(t,r+n);o.isEmpty?this._ranges.splice(i,s-i):this._ranges.splice(i,s-i,o)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function dt(e,t,i,s,n,o){let a=null;if(i)try{a=i.tokenizeEncoded(s,n,o.clone())}catch(l){(0,r.dz)(l)}return a||(a=(0,tt.Lh)(e.encodeLanguageId(t),o)),rt.f.convertToEndOffset(a.tokens,s.length),a}class ut{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Xe.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,Ze._p)(i):this._beginBackgroundTokenization())};i()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new nt,i=Je.W.create(!1);do{if(i.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Ye.M(e,t))}}class gt{constructor(){this._onDidChangeVisibleRanges=new o.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new pt((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class pt{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const i=e.map((e=>new Ye.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:i,stabilized:t})}}class mt extends a.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Xe.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,s.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class ft extends a.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,i){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=i,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new o.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new o.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class _t extends ft{constructor(e,t,i,s){super(t,i,s),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=$e.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const i=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(i)return new rt.f(i,t,this._languageIdCodec)}return rt.f.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,i){return 0}tokenizeLineWithEdit(e,t,i){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var vt=i(44432);const Ct=new Uint32Array(0).buffer;class bt{static deleteBeginning(e,t){return null===e||e===Ct?e:bt.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===Ct)return e;const i=Et(e),s=i[i.length-2];return bt.delete(e,t,s)}static delete(e,t,i){if(null===e||e===Ct||t===i)return e;const s=Et(e),n=s.length>>>1;if(0===t&&s[s.length-2]===i)return Ct;const r=rt.f.findIndexInTokensArray(s,t),o=r>0?s[r-1<<1]:0;if(i<s[r<<1]){const o=i-t;for(let e=r;e<n;e++)s[e<<1]-=o;return e}let a,l;o!==t?(s[r<<1]=t,a=r+1<<1,l=t):(a=r<<1,l=o);const c=i-t;for(let d=r+1;d<n;d++){const e=s[d<<1]-c;e>l&&(s[a++]=e,s[a++]=s[1+(d<<1)],l=e)}if(a===s.length)return e;const h=new Uint32Array(a);return h.set(s.subarray(0,a),0),h.buffer}static append(e,t){if(t===Ct)return e;if(e===Ct)return t;if(null===e)return e;if(null===t)return null;const i=Et(e),s=Et(t),n=s.length>>>1,r=new Uint32Array(i.length+s.length);r.set(i,0);let o=i.length;const a=i[i.length-2];for(let l=0;l<n;l++)r[o++]=s[l<<1]+a,r[o++]=s[1+(l<<1)];return r.buffer}static insert(e,t,i){if(null===e||e===Ct)return e;const s=Et(e),n=s.length>>>1;let r=rt.f.findIndexInTokensArray(s,t);if(r>0){s[r-1<<1]===t&&r--}for(let o=r;o<n;o++)s[o<<1]+=i;return e}}function Et(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var St=i(25982);class yt{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,i){let s=null;if(t<this._len&&(s=this._lineTokens[t]),null!==s&&s!==Ct)return new rt.f(Et(s),i,this._languageIdCodec);const n=new Uint32Array(2);return n[0]=i.length,n[1]=wt(this._languageIdCodec.encodeLanguageId(e)),new rt.f(n,i,this._languageIdCodec)}static _massageTokens(e,t,i){const s=i?Et(i):null;if(0===t){let t=!1;if(s&&s.length>1&&(t=St.x.getLanguageId(s[1])!==e),!t)return Ct}if(!s||0===s.length){const i=new Uint32Array(2);return i[0]=t,i[1]=wt(e),i.buffer}return s[s.length-2]=t,0===s.byteOffset&&s.byteLength===s.buffer.byteLength?s.buffer:s}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const i=[];for(let s=0;s<t;s++)i[s]=null;this._lineTokens=s.nK(this._lineTokens,e,i),this._len+=t}setTokens(e,t,i,s,n){const r=yt._massageTokens(this._languageIdCodec.encodeLanguageId(e),i,s);this._ensureLine(t);const o=this._lineTokens[t];return this._lineTokens[t]=r,!!n&&!yt._equals(o,r)}static _equals(e,t){if(!e||!t)return!e&&!t;const i=Et(e),s=Et(t);if(i.length!==s.length)return!1;for(let n=0,r=i.length;n<r;n++)if(i[n]!==s[n])return!1;return!0}acceptEdit(e,t,i){this._acceptDeleteRange(e),this._acceptInsertText(new u.y(e.startLineNumber,e.startColumn),t,i)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=bt.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=bt.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let s=null;i<this._len&&(s=bt.deleteBeginning(this._lineTokens[i],e.endColumn-1)),this._lineTokens[t]=bt.append(this._lineTokens[t],s),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,i){if(0===t&&0===i)return;const s=e.lineNumber-1;s>=this._len||(0!==t?(this._lineTokens[s]=bt.deleteEnding(this._lineTokens[s],e.column-1),this._lineTokens[s]=bt.insert(this._lineTokens[s],e.column-1,i),this._insertLines(e.lineNumber,t)):this._lineTokens[s]=bt.insert(this._lineTokens[s],e.column-1,i))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];let r=0,o=0,a=!1;for(let e=n.startLineNumber;e<=n.endLineNumber;e++)if(a)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),n.getLineTokens(e),!1),o=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),n.getLineTokens(e),!0)&&(a=!0,r=e,o=e)}a&&i.push({fromLineNumber:r,toLineNumber:o})}return{changes:i}}}function wt(e){return(32768|e|2<<24|1024)>>>0}class Lt{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const s=t[0].getRange(),n=t[t.length-1].getRange();if(!s||!n)return e;i=e.plusRange(s).plusRange(n)}let n=null;for(let s=0,r=this._pieces.length;s<r;s++){const e=this._pieces[s];if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){n=n||{index:s};break}if(e.removeTokens(i),e.isEmpty()){this._pieces.splice(s,1),s--,r--;continue}if(e.endLineNumber<i.startLineNumber)continue;if(e.startLineNumber>i.endLineNumber){n=n||{index:s};continue}const[t,o]=e.split(i);t.isEmpty()?n=n||{index:s}:o.isEmpty()||(this._pieces.splice(s,1,t,o),s++,r++,n=n||{index:s})}return n=n||{index:this._pieces.length},t.length>0&&(this._pieces=s.nK(this._pieces,n.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const i=this._pieces;if(0===i.length)return t;const s=i[Lt._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!s)return t;const n=t.getCount(),r=s.getCount();let o=0;const a=[];let l=0,c=0;const h=(e,t)=>{e!==c&&(c=e,a[l++]=e,a[l++]=t)};for(let d=0;d<r;d++){const e=s.getStartCharacter(d),i=s.getEndCharacter(d),r=s.getMetadata(d),a=((1&r?2048:0)|(2&r?4096:0)|(4&r?8192:0)|(8&r?16384:0)|(16&r?16744448:0)|(32&r?4278190080:0))>>>0,l=~a>>>0;for(;o<n&&t.getEndOffset(o)<=e;)h(t.getEndOffset(o),t.getMetadata(o)),o++;for(o<n&&t.getStartOffset(o)<e&&h(e,t.getMetadata(o));o<n&&t.getEndOffset(o)<i;)h(t.getEndOffset(o),t.getMetadata(o)&l|r&a),o++;if(o<n)h(i,t.getMetadata(o)&l|r&a),t.getEndOffset(o)===i&&o++;else{const e=Math.min(Math.max(0,o-1),n-1);h(i,t.getMetadata(e)&l|r&a)}}for(;o<n;)h(t.getEndOffset(o),t.getMetadata(o)),o++;return new rt.f(new Uint32Array(a),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let i=0,s=e.length-1;for(;i<s;){let n=i+Math.floor((s-i)/2);if(e[n].endLineNumber<t)i=n+1;else{if(!(e[n].startLineNumber>t)){for(;n>i&&e[n-1].startLineNumber<=t&&t<=e[n-1].endLineNumber;)n--;return n}s=n-1}}return i}acceptEdit(e,t,i,s,n){for(const r of this._pieces)r.acceptEdit(e,t,i,s,n)}}var Rt,Tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},xt=function(e,t){return function(i,s){t(i,s,e)}};let kt=Rt=class extends Qe._{constructor(e,t,i,s,n,r,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=i,this._attachedViews=s,this._languageService=n,this._languageConfigurationService=r,this._treeSitterService=l,this._semanticTokens=new Lt(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new o.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new o.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new o.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new a.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(o.Jh.filter($e.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new At(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new _t(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){$e.OB.get(this._languageId)?this._tokens instanceof _t||this.createTokens(!0):this._tokens instanceof At||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,i,s]=(0,h.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,i,s,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new r.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,i){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,i)}tokenizeLineWithEdit(e,t,i){return this._tokens.tokenizeLineWithEdit(e,t,i)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),s=this.getLineTokens(t.lineNumber),n=s.findTokenIndexAtOffset(t.column-1),[r,o]=Rt._findLanguageBoundaries(s,n),a=(0,qe.Th)(t.column,this.getLanguageConfiguration(s.getLanguageId(n)).getWordDefinition(),i.substring(r,o),r);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(n>0&&r===t.column-1){const[r,o]=Rt._findLanguageBoundaries(s,n-1),a=(0,qe.Th)(t.column,this.getLanguageConfiguration(s.getLanguageId(n-1)).getWordDefinition(),i.substring(r,o),r);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let s=0;for(let r=t;r>=0&&e.getLanguageId(r)===i;r--)s=e.getStartOffset(r);let n=e.getLineContent().length;for(let r=t,o=e.getCount();r<o&&e.getLanguageId(r)===i;r++)n=e.getEndOffset(r);return[s,n]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const i=this._textModel.validatePosition(new u.y(e,t)),s=this.getLineTokens(i.lineNumber);return s.getLanguageId(s.findTokenIndexAtOffset(i.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const i={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(i),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(i),this._onDidChangeLanguageConfiguration.fire({})}};kt=Rt=Tt([xt(4,f.L),xt(5,_.JZ),xt(6,vt.ITreeSitterParserService)],kt);class At extends ft{constructor(e,t,i,s){super(e,t,i),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new a.HE),this._tokens=new yt(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new a.HE),this._attachedViewStates=this._register(new a.$w),this._register($e.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(s.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let i=this._attachedViewStates.get(e);i||(i=new mt((()=>this.refreshRanges(i.lineRanges))),this._attachedViewStates.set(e,i)),i.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new lt(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,i]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=$e.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(i){return(0,r.dz)(i),[null,null]}return[e,t]})();if(this._tokenizer=t&&i?new at(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const i=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==i&&e>=i&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ut(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new yt(this._languageIdCodec),this._debugBackgroundStates=new lt(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,i]=(0,h.W)(t.text);this._tokens.acceptEdit(t.range,e,i),this._debugBackgroundTokens?.acceptEdit(t.range,e,i)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Ye.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const i=new nt,{heuristicTokens:s}=this._tokenizer.tokenizeHeuristically(i,e,t),n=this.setTokens(i.finalize());if(s)for(const r of n.changes)this._backgroundTokenizer.value?.requestTokens(r.fromLineNumber,r.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new nt;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),i=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const s=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!i.equals(s)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return i}getTokenTypeIfInsertingCharacter(e,t,i){if(!this._tokenizer)return 0;const s=this._textModel.validatePosition(new u.y(e,t));return this.forceTokenization(s.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(s,i)}tokenizeLineWithEdit(e,t,i){if(!this._tokenizer)return null;const s=this._textModel.validatePosition(e);return this.forceTokenization(s.lineNumber),this._tokenizer.tokenizeLineWithEdit(s,t,i)}get hasTokens(){return this._tokens.hasTokens}}var Nt,It=i(64727),Ot=i(63591),Dt=i(47579),Mt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Pt=function(e,t){return function(i,s){t(i,s,e)}};function Ft(e,t){let i;return i="string"===typeof e?function(e){const t=new Ke;return t.acceptChunk(e),t.finish()}(e):v.nk(e)?function(e){const t=new Ke;let i;for(;"string"===typeof(i=e.read());)t.acceptChunk(i);return t.finish()}(e):e,i.create(t)}let Ut=0;class Ht{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;for(;;){const s=this._source.read();if(null===s)return this._eos=!0,0===t?null:e.join("");if(s.length>0&&(e[t++]=s,i+=s.length),i>=65536)return e.join("")}}}const Bt=()=>{throw new Error("Invalid change accessor")};let Wt=class extends a.jG{static{Nt=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:m.R.tabSize,indentSize:m.R.indentSize,insertSpaces:m.R.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:m.R.trimAutoWhitespace,largeFileOptimizations:m.R.largeFileOptimizations,bracketPairColorizationOptions:m.R.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const i=$(e,t.tabSize,t.insertSpaces);return new v.X2({tabSize:i.tabSize,indentSize:"tabSize",insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new v.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,a.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,i,s=null,n,r,h,d){super(),this._undoRedoService=n,this._languageService=r,this._languageConfigurationService=h,this.instantiationService=d,this._onWillDispose=this._register(new o.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new ei((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new o.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new o.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new o.vl),this._eventEmitter=this._register(new ti),this._languageSelectionListener=this._register(new a.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new gt,Ut++,this.id="$model"+Ut,this.isForSimpleWidget=i.isForSimpleWidget,this._associatedResource="undefined"===typeof s||null===s?c.r.parse("inmemory://model/"+Ut):s,this._attachedEditorCount=0;const{textBuffer:u,disposable:p}=Ft(e,i.defaultEOL);this._buffer=u,this._bufferDisposable=p,this._options=Nt.resolveOptions(this._buffer,i);const m="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new F(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new K.P(this,this._languageConfigurationService)),this._decorationProvider=this._register(new z(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(kt,this,this._bracketPairs,m,this._attachedViews);const f=this._buffer.getLineCount(),_=this._buffer.getValueLengthInRange(new g.Q(1,1,f,this._buffer.getLineLength(f)+1),0);i.largeFileOptimizations?(this._isTooLargeForTokenization=_>Nt.LARGE_FILE_SIZE_THRESHOLD||f>Nt.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=_>Nt.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=_>Nt._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=l.tk(Ut),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Gt,this._commandManager=new j.z8(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(m),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Ge([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=a.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new r.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new It.Ic(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,r.Qg)();const{textBuffer:t,disposable:i}=Ft(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,s,n,r,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:s}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:n,isRedoing:r,isFlush:o}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),s=this.getValueLengthInRange(i),n=this.getLineCount(),r=this.getLineMaxColumn(n);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Gt,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new It.HP([new It.Wn],this._versionId,!1,!1),this._createContentChanged2(new g.Q(1,1,n,r),0,s,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),s=this.getValueLengthInRange(i),n=this.getLineCount(),r=this.getLineMaxColumn(n);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new It.HP([new It.mS],this._versionId,!1,!1),this._createContentChanged2(new g.Q(1,1,n,r),0,s,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,s=t.length;i<s;i++){const s=t[i],n=s.range,r=s.cachedAbsoluteStart-s.start,o=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),a=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);s.cachedAbsoluteStart=o,s.cachedAbsoluteEnd=a,s.cachedVersionId=e,s.start=o-r,s.end=a-r,_e(s)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let s=1;s<=i;s++){const i=this._buffer.getLineLength(s);i>=1e4?t+=i:e+=i}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,i="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,s="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,n="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,o=new v.X2({tabSize:t,indentSize:i,insertSpaces:s,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:n,bracketPairColorizationOptions:r});if(this._options.equals(o))return;const a=this._options.createChangeEvent(o);this._options=o,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const i=$(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),(0,d.P)(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(l._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new r.D7("Operation would exceed heap memory limits");const i=this.getFullModelRange(),s=this.getValueInRange(i,e);return t?this._buffer.getBOM()+s:s}createSnapshot(e=!1){return new Ht(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),s=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+s:s}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new r.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new r.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,s=e.startColumn;let n=Math.floor("number"!==typeof i||isNaN(i)?1:i),r=Math.floor("number"!==typeof s||isNaN(s)?1:s);if(n<1)n=1,r=1;else if(n>t)n=t,r=this.getLineMaxColumn(n);else if(r<=1)r=1;else{const e=this.getLineMaxColumn(n);r>=e&&(r=e)}const o=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof o||isNaN(o)?1:o),c=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{const e=this.getLineMaxColumn(l);c>=e&&(c=e)}return i===n&&s===r&&o===l&&a===c&&e instanceof g.Q&&!(e instanceof p.L)?e:new g.Q(n,r,l,c)}_isValidPosition(e,t,i){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===i){const i=this._buffer.getLineCharCode(e,t-2);if(l.pc(i))return!1}return!0}_validatePosition(e,t,i){const s=Math.floor("number"!==typeof e||isNaN(e)?1:e),n=Math.floor("number"!==typeof t||isNaN(t)?1:t),r=this._buffer.getLineCount();if(s<1)return new u.y(1,1);if(s>r)return new u.y(r,this.getLineMaxColumn(r));if(n<=1)return new u.y(s,1);const o=this.getLineMaxColumn(s);if(n>=o)return new u.y(s,o);if(1===i){const e=this._buffer.getLineCharCode(s,n-2);if(l.pc(e))return new u.y(s,n-1)}return new u.y(s,n)}validatePosition(e){return this._assertNotDisposed(),e instanceof u.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,s=e.startColumn,n=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(i,s,0))return!1;if(!this._isValidPosition(n,r,0))return!1;if(1===t){const e=s>1?this._buffer.getLineCharCode(i,s-2):0,t=r>1&&r<=this._buffer.getLineLength(n)?this._buffer.getLineCharCode(n,r-2):0,o=l.pc(e),a=l.pc(t);return!o&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof g.Q&&!(e instanceof p.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),s=t.lineNumber,n=t.column,r=i.lineNumber,o=i.column;{const e=n>1?this._buffer.getLineCharCode(s,n-2):0,t=o>1&&o<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,o-2):0,i=l.pc(e),a=l.pc(t);return i||a?s===r&&n===o?new g.Q(s,n-1,r,o-1):i&&a?new g.Q(s,n-1,r,o+1):i?new g.Q(s,n-1,r,o):new g.Q(s,n,r,o+1):new g.Q(s,n,r,o)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new g.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,s){return this._buffer.findMatchesLineByLine(e,t,i,s)}findMatches(e,t,i,s,n,r,o=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>g.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let c;if(l.push(a.reduce(((e,t)=>g.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!i&&e.indexOf("\n")<0){const t=new Oe.lt(e,i,s,n).parseSearchRequest();if(!t)return[];c=e=>this.findMatchesLineByLine(e,t,r,o)}else c=t=>Oe.hB.findMatches(this,new Oe.lt(e,i,s,n),t,r,o);return l.map(c).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,i,s,n,r){this._assertNotDisposed();const o=this.validatePosition(t);if(!i&&e.indexOf("\n")<0){const t=new Oe.lt(e,i,s,n).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new g.Q(o.lineNumber,o.column,a,this.getLineMaxColumn(a)),c=this.findMatchesLineByLine(l,t,r,1);return Oe.hB.findNextMatch(this,new Oe.lt(e,i,s,n),o,r),c.length>0?c[0]:(l=new g.Q(1,1,o.lineNumber,this.getLineMaxColumn(o.lineNumber)),c=this.findMatchesLineByLine(l,t,r,1),c.length>0?c[0]:null)}return Oe.hB.findNextMatch(this,new Oe.lt(e,i,s,n),o,r)}findPreviousMatch(e,t,i,s,n,r){this._assertNotDisposed();const o=this.validatePosition(t);return Oe.hB.findPreviousMatch(this,new Oe.lt(e,i,s,n),o,r)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof v.Wo?e:new v.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,s=e.length;i<s;i++)t[i]=this._validateEditOperation(e[i]);return t}pushEditOperations(e,t,i,s){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),i,s)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,i,s){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const i=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let s=!0;if(e)for(let t=0,n=e.length;t<n;t++){const n=e[t];let r=!1;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,s=t.startLineNumber>n.endLineNumber,o=n.startLineNumber>t.endLineNumber;if(!s&&!o){r=!0;break}}if(!r){s=!1;break}}if(s)for(let e=0,n=this._trimAutoWhitespaceLines.length;e<n;e++){const s=this._trimAutoWhitespaceLines[e],n=this.getLineMaxColumn(s);let r=!0;for(let e=0,t=i.length;e<t;e++){const t=i[e].range,o=i[e].text;if(!(s<t.startLineNumber||s>t.endLineNumber)&&(!(s===t.startLineNumber&&t.startColumn===n&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(0))&&!(s===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&o&&o.length>0&&"\n"===o.charAt(o.length-1)))){r=!1;break}}if(r){const e=new g.Q(s,1,s,n);t.push(new v.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i,s)}_applyUndo(e,t,i,s){const n=e.map((e=>{const t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new g.Q(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}}));this._applyUndoRedoEdits(n,t,!0,!1,i,s)}_applyRedo(e,t,i,s){const n=e.map((e=>{const t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new g.Q(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}}));this._applyUndoRedoEdits(n,t,!1,!0,i,s)}_applyUndoRedoEdits(e,t,i,s,n,r){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=s,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(n)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(r),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),o=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,0!==o.length){for(let i=0,s=o.length;i<s;i++){const e=o[i];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=i;for(let i=0,n=o.length;i<n;i++){const n=o[i],[a]=(0,h.W)(n.text);this._onDidChangeDecorations.fire();const l=n.range.startLineNumber,c=n.range.endLineNumber,d=c-l,g=a,p=Math.min(d,g),m=g-d,f=r-t-m+l,_=f,v=f+g,C=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new u.y(_,1)),this.getOffsetAt(new u.y(v,this.getLineMaxColumn(v))),0),b=It.uK.fromDecorations(C),E=new s.j3(b);for(let t=p;t>=0;t--){const i=l+t,s=f+t;E.takeFromEndWhile((e=>e.lineNumber>s));const n=E.takeFromEndWhile((e=>e.lineNumber===s));e.push(new It.U0(i,this.getLineContent(s),n))}if(p<d){const t=l+p;e.push(new It.E$(t+1,c))}if(p<g){const i=new s.j3(b),n=l+p,o=g-p,a=r-t-o+n+1,c=[],h=[];for(let e=0;e<o;e++){const t=a+e;h[e]=this.getLineContent(t),i.takeWhile((e=>e.lineNumber<t)),c[e]=i.takeWhile((e=>e.lineNumber===t))}e.push(new It.bg(n+1,l+g,h,c))}t+=m}this._emitContentChangedEvent(new It.HP(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:o,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===n.reverseEdits?void 0:n.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new It.U0(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new It.vn(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,Jt(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)};let s=null;try{s=t(i)}catch(n){(0,r.dz)(n)}return i.addDecoration=Bt,i.changeDecoration=Bt,i.changeDecorationOptions=Bt,i.removeDecoration=Bt,i.deltaDecorations=Bt,s}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,r.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const s=e?this._decorations[e]:null;if(!s)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Zt[i]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(s),delete this._decorations[s.id],null;const n=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),o=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);return this._decorationsTree.delete(s),s.reset(this.getVersionId(),r,o,n),s.setOptions(Zt[i]),this._decorationsTree.insert(s),s.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let i=0,s=t.length;i<s;i++){const e=t[i];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,i=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1,r=!1){const o=this.getLineCount(),a=Math.min(o,Math.max(1,e)),l=Math.min(o,Math.max(1,t)),c=this.getLineMaxColumn(l),h=new g.Q(a,1,l,c),d=this._getDecorationsInRange(h,i,n,r);return(0,s.E4)(d,this._decorationProvider.getDecorationsInRange(h,i,n)),d}getDecorationsInRange(e,t=0,i=!1,n=!1,r=!1){const o=this.validateRange(e),a=this._getDecorationsInRange(o,t,i,r);return(0,s.E4)(a,this._decorationProvider.getDecorationsInRange(o,t,i,n)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),s=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return It.uK.fromDecorations(s).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,i,s){const n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),r=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,r,t,i,s)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(i.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const s=this._validateRangeRelaxedNoAllocations(t),n=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),r=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),n,r,s),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const s=!(!i.options.overviewRuler||!i.options.overviewRuler.color),n=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(i.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const r=s!==n,o=function(e){return!!e.after||!!e.before}(t)!==zt(i);r||o?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i,s=!1){const n=this.getVersionId(),r=t.length;let o=0;const a=i.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const c=new Array(a);for(;o<r||l<a;){let h=null;if(o<r){do{h=this._decorations[t[o++]]}while(!h&&o<r);if(h){if(h.options.after){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(h.options.before){const e=this._decorationsTree.getNodeRange(this,h);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(h),s||this._onDidChangeDecorations.checkAffectedAndFire(h.options)}}if(l<a){if(!h){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;h=new oe(t,0,0),this._decorations[t]=h}const t=i[l],r=this._validateRangeRelaxedNoAllocations(t.range),o=Jt(t.options),a=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),d=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);h.ownerId=e,h.reset(n,a,d,r),h.setOptions(o),h.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber),h.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber),s||this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(h),c[l]=h.id,l++}else h&&delete this._decorations[h.id]}return c}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const i of e){if(" "!==i&&"\t"!==i)break;t++}return t}(this.getLineContent(e))+1}};function Vt(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function zt(e){return!!e.options.after||!!e.options.before}Wt=Nt=Mt([Pt(4,Dt.$D),Pt(5,f.L),Pt(6,_.JZ),Pt(7,Ot._Y)],Wt);class Gt{constructor(){this._decorationsTree0=new le,this._decorationsTree1=new le,this._injectedTextDecorationsTree=new le}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,s,n,r){const o=e.getVersionId(),a=this._intervalSearch(t,i,s,n,o,r);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,i,s,n,r){const o=this._decorationsTree0.intervalSearch(e,t,i,s,n,r),a=this._decorationsTree1.intervalSearch(e,t,i,s,n,r),l=this._injectedTextDecorationsTree.intervalSearch(e,t,i,s,n,r);return o.concat(a).concat(l)}getInjectedTextInInterval(e,t,i,s){const n=e.getVersionId(),r=this._injectedTextDecorationsTree.intervalSearch(t,i,s,!1,n,!1);return this._ensureNodesHaveRanges(e,r).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const i=e.getVersionId(),s=this._injectedTextDecorationsTree.search(t,!1,i,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,i,s,n){const r=e.getVersionId(),o=this._search(t,i,s,r,n);return this._ensureNodesHaveRanges(e,o)}_search(e,t,i,s,n){if(i)return this._decorationsTree1.search(e,t,s,n);{const i=this._decorationsTree0.search(e,t,s,n),r=this._decorationsTree1.search(e,t,s,n),o=this._injectedTextDecorationsTree.search(e,t,s,n);return i.concat(r).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),s=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(s)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){zt(e)?this._injectedTextDecorationsTree.insert(e):Vt(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){zt(e)?this._injectedTextDecorationsTree.delete(e):Vt(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){zt(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Vt(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,s){this._decorationsTree0.acceptReplace(e,t,i,s),this._decorationsTree1.acceptReplace(e,t,i,s),this._injectedTextDecorationsTree.acceptReplace(e,t,i,s)}}function jt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class Kt{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Yt extends Kt{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:v.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class qt{constructor(e){this.position=e?.position??v.ZS.Center,this.persistLane=e?.persistLane}}class $t extends Kt{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?n.Q1.fromHex(e):t.getColor(e.id)}}class Qt{static from(e){return e instanceof Qt?e:new Qt(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class Xt{static register(e){return new Xt(e)}static createDynamic(e){return new Xt(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?jt(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?jt(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Yt(e.overviewRuler):null,this.minimap=e.minimap?new $t(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new qt(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?jt(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?jt(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?jt(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?l.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?jt(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?jt(e.marginClassName):null,this.inlineClassName=e.inlineClassName?jt(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?jt(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?jt(e.afterContentClassName):null,this.after=e.after?Qt.from(e.after):null,this.before=e.before?Qt.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}Xt.EMPTY=Xt.register({description:"empty"});const Zt=[Xt.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),Xt.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),Xt.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),Xt.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Jt(e){return e instanceof Xt?e:Xt.createDynamic(e)}class ei extends a.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new o.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class ti extends a.jG{constructor(){super(),this._fastEmitter=this._register(new o.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new o.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}},20761:(e,t,i)=>{"use strict";i.d(t,{_:()=>n});var s=i(5662);class n extends s.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}},43264:(e,t,i)=>{"use strict";i.d(t,{W5:()=>g,dr:()=>c,hB:()=>d,lt:()=>l,wC:()=>u});var s=i(91508),n=i(81782),r=i(83069),o=i(36677),a=i(16223);class l{constructor(e,t,i,s){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=s}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t<i;t++){const s=e.charCodeAt(t);if(10===s)return!0;if(92===s){if(t++,t>=i)break;const s=e.charCodeAt(t);if(110===s||114===s||87===s)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=s.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(r){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new a.L5(t,this.wordSeparators?(0,n.i)(this.wordSeparators,[]):null,i?this.searchString:null)}}function c(e,t,i){if(!i)return new a.Dg(e,null);const s=[];for(let n=0,r=t.length;n<r;n++)s[n]=t[n];return new a.Dg(e,s)}class h{constructor(e){const t=[];let i=0;for(let s=0,n=e.length;s<n;s++)10===e.charCodeAt(s)&&(t[i++]=s);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let i=0,s=t.length-1;if(-1===s)return 0;if(e<=t[0])return 0;for(;i<s;){const n=i+((s-i)/2|0);t[n]>=e?s=n-1:t[n+1]>=e?(i=n,s=n):i=n+1}return i+1}}class d{static findMatches(e,t,i,s,n){const r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,i,new g(r.wordSeparators,r.regex),s,n):this._doFindMatchesLineByLine(e,i,r,s,n):[]}static _getMultilineMatchRange(e,t,i,s,n,r){let a,l,c=0;if(s?(c=s.findLineFeedCountBeforeOffset(n),a=t+n+c):a=t+n,s){const e=s.findLineFeedCountBeforeOffset(n+r.length)-c;l=a+r.length+e}else l=a+r.length;const h=e.getPositionAt(a),d=e.getPositionAt(l);return new o.Q(h.lineNumber,h.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,i,s,n){const r=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new h(o):null,l=[];let d,u=0;for(i.reset(0);d=i.next(o);)if(l[u++]=c(this._getMultilineMatchRange(e,r,o,a,d.index,d[0]),d,s),u>=n)return l;return l}static _doFindMatchesLineByLine(e,t,i,s,n){const r=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,o,r,s,n),r}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,o,r,s,n);for(let l=t.startLineNumber+1;l<t.endLineNumber&&o<n;l++)o=this._findMatchesInLine(i,e.getLineContent(l),l,0,o,r,s,n);if(o<n){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(i,a,t.endLineNumber,0,o,r,s,n)}return r}static _findMatchesInLine(e,t,i,s,n,r,l,h){const d=e.wordSeparators;if(!l&&e.simpleSearch){const l=e.simpleSearch,c=l.length,g=t.length;let p=-c;for(;-1!==(p=t.indexOf(l,p+c));)if((!d||u(d,t,g,p,c))&&(r[n++]=new a.Dg(new o.Q(i,p+1+s,i,p+1+c+s),null),n>=h))return n;return n}const p=new g(e.wordSeparators,e.regex);let m;p.reset(0);do{if(m=p.next(t),m&&(r[n++]=c(new o.Q(i,m.index+1+s,i,m.index+1+m[0].length+s),m,l),n>=h))return n}while(m);return n}static findNextMatch(e,t,i,s){const n=t.parseSearchRequest();if(!n)return null;const r=new g(n.wordSeparators,n.regex);return n.regex.multiline?this._doFindNextMatchMultiline(e,i,r,s):this._doFindNextMatchLineByLine(e,i,r,s)}static _doFindNextMatchMultiline(e,t,i,s){const n=new r.y(t.lineNumber,1),a=e.getOffsetAt(n),l=e.getLineCount(),d=e.getValueInRange(new o.Q(n.lineNumber,n.column,l,e.getLineMaxColumn(l)),1),u="\r\n"===e.getEOL()?new h(d):null;i.reset(t.column-1);const g=i.next(d);return g?c(this._getMultilineMatchRange(e,a,d,u,g.index,g[0]),g,s):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new r.y(1,1),i,s):null}static _doFindNextMatchLineByLine(e,t,i,s){const n=e.getLineCount(),r=t.lineNumber,o=e.getLineContent(r),a=this._findFirstMatchInLine(i,o,r,t.column,s);if(a)return a;for(let l=1;l<=n;l++){const t=(r+l-1)%n,o=e.getLineContent(t+1),a=this._findFirstMatchInLine(i,o,t+1,1,s);if(a)return a}return null}static _findFirstMatchInLine(e,t,i,s,n){e.reset(s-1);const r=e.next(t);return r?c(new o.Q(i,r.index+1,i,r.index+1+r[0].length),r,n):null}static findPreviousMatch(e,t,i,s){const n=t.parseSearchRequest();if(!n)return null;const r=new g(n.wordSeparators,n.regex);return n.regex.multiline?this._doFindPreviousMatchMultiline(e,i,r,s):this._doFindPreviousMatchLineByLine(e,i,r,s)}static _doFindPreviousMatchMultiline(e,t,i,s){const n=this._doFindMatchesMultiline(e,new o.Q(1,1,t.lineNumber,t.column),i,s,9990);if(n.length>0)return n[n.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new r.y(a,e.getLineMaxColumn(a)),i,s):null}static _doFindPreviousMatchLineByLine(e,t,i,s){const n=e.getLineCount(),r=t.lineNumber,o=e.getLineContent(r).substring(0,t.column-1),a=this._findLastMatchInLine(i,o,r,s);if(a)return a;for(let l=1;l<=n;l++){const t=(n+r-l-1)%n,o=e.getLineContent(t+1),a=this._findLastMatchInLine(i,o,t+1,s);if(a)return a}return null}static _findLastMatchInLine(e,t,i,s){let n,r=null;for(e.reset(0);n=e.next(t);)r=c(new o.Q(i,n.index+1,i,n.index+1+n[0].length),n,s);return r}}function u(e,t,i,s,n){return function(e,t,i,s,n){if(0===s)return!0;const r=t.charCodeAt(s-1);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(n>0){const i=t.charCodeAt(s);if(0!==e.get(i))return!0}return!1}(e,t,0,s,n)&&function(e,t,i,s,n){if(s+n===i)return!0;const r=t.charCodeAt(s+n);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(n>0){const i=t.charCodeAt(s+n-1);if(0!==e.get(i))return!0}return!1}(e,t,i,s,n)}class g{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(i=this._searchRegex.exec(e),!i)return null;const n=i.index,r=i[0].length;if(n===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){s.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=n,this._prevMatchLength=r,!this._wordSeparators||u(this._wordSeparators,e,t,n,r))return i}while(i);return null}}},78049:(e,t,i)=>{"use strict";function s(e,t){let i=0,s=0;const n=e.length;for(;s<n;){const n=e.charCodeAt(s);if(32===n)i++;else{if(9!==n)break;i=i-i%t+t}s++}return s===n?-1:i}i.d(t,{G:()=>s})},73848:(e,t,i)=>{"use strict";i.r(t),i.d(t,{KeyMod:()=>u,createMonacoBaseAPI:()=>g});var s=i(18447),n=i(41234),r=i(24939),o=i(79400),a=i(83069),l=i(36677),c=i(75326),h=i(62083),d=i(35015);class u{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return(0,r.m5)(e,t)}}function g(){return{editor:void 0,languages:void 0,CancellationTokenSource:s.Qi,Emitter:n.vl,KeyCode:d.DD,KeyMod:u,Position:a.y,Range:l.Q,Selection:c.L,SelectionDirection:d.SB,MarkerSeverity:d.cj,MarkerTag:d.d_,Uri:o.r,Token:h.ou}}},16545:(e,t,i)=>{"use strict";i.r(t),i.d(t,{BaseEditorSimpleWorker:()=>Y,EditorSimpleWorker:()=>q,create:()=>$});var s=i(83993),n=i(36677),r=i(60534);class o{constructor(e,t,i){const s=new Uint8Array(e*t);for(let n=0,r=e*t;n<r;n++)s[n]=i;this._data=s,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,i){this._data[e*this.cols+t]=i}}class a{constructor(e){let t=0,i=0;for(let n=0,r=e.length;n<r;n++){const[s,r,o]=e[n];r>t&&(t=r),s>i&&(i=s),o>i&&(i=o)}t++,i++;const s=new o(i,t,0);for(let n=0,r=e.length;n<r;n++){const[t,i,r]=e[n];s.set(t,i,r)}this._states=s,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let l=null;let c=null;class h{static _createLink(e,t,i,s,n){let r=n-1;do{const i=t.charCodeAt(r);if(2!==e.get(i))break;r--}while(r>s);if(s>0){const e=t.charCodeAt(s-1),i=t.charCodeAt(r);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&r--}return{range:{startLineNumber:i,startColumn:s+1,endLineNumber:i,endColumn:r+2},url:t.substring(s,r+1)}}static computeLinks(e,t=function(){return null===l&&(l=new a([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),l}()){const i=function(){if(null===c){c=new r.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let i=0;i<e.length;i++)c.set(e.charCodeAt(i),1);const t=".,;:";for(let i=0;i<t.length;i++)c.set(t.charCodeAt(i),2)}return c}(),s=[];for(let n=1,r=e.getLineCount();n<=r;n++){const r=e.getLineContent(n),o=r.length;let a=0,l=0,c=0,d=1,u=!1,g=!1,p=!1,m=!1;for(;a<o;){let e=!1;const o=r.charCodeAt(a);if(13===d){let t;switch(o){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:p=!0,g=!0,t=0;break;case 93:p=!1,t=g?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=c===o?1:39===c||34===c||96===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=p?0:1;break;default:t=i.get(o)}1===t&&(s.push(h._createLink(i,r,n,l,a)),e=!0)}else if(12===d){let t;91===o?(g=!0,t=0):t=i.get(o),1===t?e=!0:d=13}else d=t.nextState(d,o),0===d&&(e=!0);e&&(d=1,u=!1,g=!1,m=!1,l=a+1,c=o),a++}13===d&&s.push(h._createLink(i,r,n,l,o))}return s}}class d{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new d}navigateValueSet(e,t,i,s,n){if(e&&t){const i=this.doNavigateValueSet(t,n);if(i)return{range:e,value:i}}if(i&&s){const e=this.doNavigateValueSet(s,n);if(e)return{range:i,value:e}}return null}doNavigateValueSet(e,t){const i=this.numberReplace(e,t);return null!==i?i:this.textReplace(e,t)}numberReplace(e,t){const i=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let s=Number(e);const n=parseFloat(e);return isNaN(s)||isNaN(n)||s!==n?null:0!==s||t?(s=Math.floor(s*i),s+=t?i:-i,String(s/i)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,i){let s=null;for(let n=0,r=e.length;null===s&&n<r;n++)s=this.valueSetReplace(e[n],t,i);return s}valueSetReplace(e,t,i){let s=e.indexOf(t);return s>=0?(s+=i?1:-1,s<0?s=e.length-1:s%=e.length,e[s]):null}}var u=i(73848),g=i(80718),p=i(78381),m=i(74855),f=i(41845),_=i(87723),v=i(91508),C=i(66782),b=i(86571);class E{computeDiff(e,t,i){const s=new T(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),r=[];let o=null;for(const a of s.changes){let e,t;e=0===a.originalEndLineNumber?new b.M(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new b.M(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new b.M(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new b.M(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let i=new _.wm(e,t,a.charChanges?.map((e=>new _.q6(new n.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new n.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));o&&(o.modified.endLineNumberExclusive!==i.modified.startLineNumber&&o.original.endLineNumberExclusive!==i.original.startLineNumber||(i=new _.wm(o.original.join(i.original),o.modified.join(i.modified),o.innerChanges&&i.innerChanges?o.innerChanges.concat(i.innerChanges):void 0),r.pop())),r.push(i),o=i}return(0,C.Ft)((()=>(0,C.Xo)(r,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new f.p(r,[],s.quitEarly)}}function S(e,t,i,n){return new s.uP(e,t,i).ComputeDiff(n)}class y{constructor(e){const t=[],i=[];for(let s=0,n=e.length;s<n;s++)t[s]=x(e[s],1),i[s]=k(e[s],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){const e=[];for(let t=0,i=this.lines.length;t<i;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,i){const s=[],n=[],r=[];let o=0;for(let a=t;a<=i;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:t.length+1;for(let e=l;e<c;e++)s[o]=t.charCodeAt(e-1),n[o]=a+1,r[o]=e,o++;!e&&a<i&&(s[o]=10,n[o]=a+1,r[o]=t.length+1,o++)}return new w(s,n,r)}}class w{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class L{constructor(e,t,i,s,n,r,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=s,this.modifiedStartLineNumber=n,this.modifiedStartColumn=r,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){const s=t.getStartLineNumber(e.originalStart),n=t.getStartColumn(e.originalStart),r=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),l=i.getStartColumn(e.modifiedStart),c=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new L(s,n,r,o,a,l,c,h)}}class R{constructor(e,t,i,s,n){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=s,this.charChanges=n}static createFromDiffResult(e,t,i,s,n,r,o){let a,l,c,h,d;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,l=0):(a=i.getStartLineNumber(t.originalStart),l=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=s.getStartLineNumber(t.modifiedStart)-1,h=0):(c=s.getStartLineNumber(t.modifiedStart),h=s.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),r&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&n()){const r=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=s.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(r.getElements().length>0&&a.getElements().length>0){let e=S(r,a,n,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let i=t[0];for(let s=1,n=e.length;s<n;s++){const n=e[s],r=n.originalStart-(i.originalStart+i.originalLength),o=n.modifiedStart-(i.modifiedStart+i.modifiedLength);Math.min(r,o)<3?(i.originalLength=n.originalStart+n.originalLength-i.originalStart,i.modifiedLength=n.modifiedStart+n.modifiedLength-i.modifiedStart):(t.push(n),i=n)}return t}(e)),d=[];for(let t=0,i=e.length;t<i;t++)d.push(L.createFromDiffChange(e[t],r,a))}}return new R(a,l,c,h,d)}}class T{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new y(e),this.modified=new y(t),this.continueLineDiff=A(i.maxComputationTime),this.continueCharDiff=A(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=S(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let i=0,s=t.length;i<s;i++)e.push(R.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[i],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:e}}const s=[];let n=0,r=0;for(let o=-1,a=t.length;o<a;o++){const e=o+1<a?t[o+1]:null,i=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;n<i&&r<l;){const e=this.originalLines[n],t=this.modifiedLines[r];if(e!==t){{let i=x(e,1),o=x(t,1);for(;i>1&&o>1;){if(e.charCodeAt(i-2)!==t.charCodeAt(o-2))break;i--,o--}(i>1||o>1)&&this._pushTrimWhitespaceCharChange(s,n+1,1,i,r+1,1,o)}{let i=k(e,1),o=k(t,1);const a=e.length+1,l=t.length+1;for(;i<a&&o<l;){if(e.charCodeAt(i-1)!==e.charCodeAt(o-1))break;i++,o++}(i<a||o<l)&&this._pushTrimWhitespaceCharChange(s,n+1,i,a,r+1,o,l)}}n++,r++}e&&(s.push(R.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),n+=e.originalLength,r+=e.modifiedLength)}return{quitEarly:i,changes:s}}_pushTrimWhitespaceCharChange(e,t,i,s,n,r,o){if(this._mergeTrimWhitespaceCharChange(e,t,i,s,n,r,o))return;let a;this.shouldComputeCharChanges&&(a=[new L(t,i,t,s,n,r,n,o)]),e.push(new R(t,t,n,n,a))}_mergeTrimWhitespaceCharChange(e,t,i,s,n,r,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===n?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new L(t,i,t,s,n,r,n,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===n&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=n,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new L(t,i,t,s,n,r,n,o)),!0))}}function x(e,t){const i=v.HG(e);return-1===i?t:i+1}function k(e,t){const i=v.lT(e);return-1===i?t:i+2}function A(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var N=i(26746);const I=()=>new E,O=()=>new N.D8;var D=i(10146),M=i(36456),P=i(47661);function F(e){const t=[];for(const i of e){const e=Number(i);(e||0===e&&""!==i.replace(/\s/g,""))&&t.push(e)}return t}function U(e,t,i,s){return{red:e/255,blue:i/255,green:t/255,alpha:s}}function H(e,t){const i=t.index,s=t[0].length;if(!i)return;const n=e.positionAt(i);return{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:n.lineNumber,endColumn:n.column+s}}function B(e,t){if(!e)return;const i=P.Q1.Format.CSS.parseHex(t);return i?{range:e,color:U(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}:void 0}function W(e,t,i){if(!e||1!==t.length)return;const s=F(t[0].values());return{range:e,color:U(s[0],s[1],s[2],i?s[3]:1)}}function V(e,t,i){if(!e||1!==t.length)return;const s=F(t[0].values()),n=new P.Q1(new P.hB(s[0],s[1]/100,s[2]/100,i?s[3]:1));return{range:e,color:U(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function z(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function G(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],i=z(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(const s of i){const i=s.filter((e=>void 0!==e)),n=i[1],r=i[2];if(!r)continue;let o;if("rgb"===n){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=W(H(e,s),z(r,t),!1)}else if("rgba"===n){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=W(H(e,s),z(r,t),!0)}else if("hsl"===n){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=V(H(e,s),z(r,t),!1)}else if("hsla"===n){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=V(H(e,s),z(r,t),!0)}else"#"===n&&(o=B(H(e,s),n+r));o&&t.push(o)}return t}(e):[]}var j=i(56691),K=i(47443);class Y{constructor(){this._workerTextModelSyncServer=new K.WorkerTextModelSyncServer}dispose(){}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,i){const s=this._getModel(e);return s?m.UnicodeTextModelHighlighter.computeUnicodeHighlights(s,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const i=this._getModel(e);return i?(0,j.findSectionHeaders)(i,t):[]}async $computeDiff(e,t,i,s){const n=this._getModel(e),r=this._getModel(t);if(!n||!r)return null;return q.computeDiff(n,r,i,s)}static computeDiff(e,t,i,s){const n="advanced"===s?O():I(),r=e.getLinesContent(),o=t.getLinesContent(),a=n.computeDiff(r,o,i);function l(e){return e.map((e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const i=e.getLineCount();if(i!==t.getLineCount())return!1;for(let s=1;s<=i;s++){if(e.getLineContent(s)!==t.getLineContent(s))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,i){const r=this._getModel(e);if(!r)return t;const o=[];let a;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return n.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let l=0;for(let s=1;s<t.length;s++)n.Q.getEndPosition(t[l].range).equals(n.Q.getStartPosition(t[s].range))?(t[l].range=n.Q.fromPositions(n.Q.getStartPosition(t[l].range),n.Q.getEndPosition(t[s].range)),t[l].text+=t[s].text):(l++,t[l]=t[s]);t.length=l+1;for(let{range:c,text:h,eol:d}of t){if("number"===typeof d&&(a=d),n.Q.isEmpty(c)&&!h)continue;const e=r.getValueInRange(c);if(h=h.replace(/\r\n|\n|\r/g,r.eol),e===h)continue;if(Math.max(h.length,e.length)>q._diffLimit){o.push({range:c,text:h});continue}const t=(0,s.F1)(e,h,i),l=r.offsetAt(n.Q.lift(c).getStartPosition());for(const i of t){const e=r.positionAt(l+i.originalStart),t=r.positionAt(l+i.originalStart+i.originalLength),s={text:h.substr(i.modifiedStart,i.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};r.getValueInRange(s.range)!==s.text&&o.push(s)}}return"number"===typeof a&&o.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?h.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?G(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,i,s){const n=new p.W,r=new RegExp(i,s),o=new Set;e:for(const a of e){const e=this._getModel(a);if(e)for(const i of e.words(r))if(i!==t&&isNaN(Number(i))&&(o.add(i),o.size>q._suggestionsLimit))break e}return{words:Array.from(o),duration:n.elapsed()}}async $computeWordRanges(e,t,i,s){const n=this._getModel(e);if(!n)return Object.create(null);const r=new RegExp(i,s),o=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){const e=n.getLineWords(a,r);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=o[t.word];e||(e=[],o[t.word]=e),e.push({startLineNumber:a,startColumn:t.startColumn,endLineNumber:a,endColumn:t.endColumn})}}return o}async $navigateValueSet(e,t,i,s,n){const r=this._getModel(e);if(!r)return null;const o=new RegExp(s,n);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=r.getValueInRange(t),l=r.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const c=r.getValueInRange(l);return d.INSTANCE.navigateValueSet(t,a,l,c,i)}}class q extends Y{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,s){const n={host:(0,D.kT)(s,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(n,t),Promise.resolve((0,D.V0)(this._foreignModule))):new Promise(((s,r)=>{const o=e=>{this._foreignModule=e.create(n,t),s((0,D.V0)(this._foreignModule))};{const t=M.zl.asBrowserUri(`${e}.js`).toString(!0);i(9204)(`${t}`).then(o).catch(r)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(i){return Promise.reject(i)}}}function $(e){return new q(g.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,u.createMonacoBaseAPI)())},10920:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IEditorWorkerService:()=>s});const s=(0,i(63591).u1)("editorWorkerService")},80718:(e,t,i)=>{"use strict";i.r(t),i.d(t,{EditorWorkerHost:()=>s});class s{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(s.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(s.CHANNEL_NAME,t)}}},56691:(e,t,i)=>{"use strict";i.r(t),i.d(t,{findSectionHeaders:()=>r});const s=new RegExp("\\bMARK:\\s*(.*)$","d"),n=/^-+|-+$/g;function r(e,t){let i=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const s=function(e,t){const i=[],s=e.getLineCount();for(let n=1;n<=s;n++){const s=e.getLineContent(n),r=s.match(t.foldingRules.markers.start);if(r){const e={startLineNumber:n,startColumn:r[0].length+1,endLineNumber:n,endColumn:s.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(s.substring(r[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&i.push(t)}}}return i}(e,t);i=i.concat(s)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],i=e.getLineCount();for(let s=1;s<=i;s++){o(e.getLineContent(s),s,t)}return t}(e);i=i.concat(t)}return i}function o(e,t,i){s.lastIndex=0;const n=s.exec(e);if(n){const e={startLineNumber:t,startColumn:n.indices[1][0]+1,endLineNumber:t,endColumn:n.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(n[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&i.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(n,""),hasSeparatorLine:t}}},53068:(e,t,i)=>{"use strict";i.r(t),i.d(t,{getIconClasses:()=>h});var s=i(36456),n=i(89403),r=i(79400),o=i(83941),a=i(7291),l=i(25689);const c=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function h(e,t,i,h,u){if(l.L.isThemeIcon(u))return[`codicon-${u.id}`,"predefined-file-icon"];if(r.r.isUri(u))return[];const g=h===a.p.ROOT_FOLDER?["rootfolder-icon"]:h===a.p.FOLDER?["folder-icon"]:["file-icon"];if(i){let r;if(i.scheme===s.ny.data){r=n.B6.parseMetaData(i).get(n.B6.META_DATA_LABEL)}else{const e=i.path.match(c);e?(r=d(e[2].toLowerCase()),e[1]&&g.push(`${d(e[1].toLowerCase())}-name-dir-icon`)):r=d(i.authority.toLowerCase())}if(h===a.p.ROOT_FOLDER)g.push(`${r}-root-name-folder-icon`);else if(h===a.p.FOLDER)g.push(`${r}-name-folder-icon`);else{if(r){if(g.push(`${r}-name-file-icon`),g.push("name-file-icon"),r.length<=255){const e=r.split(".");for(let t=1;t<e.length;t++)g.push(`${e.slice(t).join(".")}-ext-file-icon`)}g.push("ext-file-icon")}const a=function(e,t,i){if(!i)return null;let r=null;if(i.scheme===s.ny.data){const e=n.B6.parseMetaData(i).get(n.B6.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(i);t&&(r=t.getLanguageId())}if(r&&r!==o.vH)return r;return t.guessLanguageIdByFilepathOrFirstLine(i)}(e,t,i);a&&g.push(`${d(a)}-lang-file-icon`)}}return g}function d(e){return e.replace(/[\s]/g,"/")}},32500:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ILanguageFeatureDebounceService:()=>g,LanguageFeatureDebounceService:()=>_});var s=i(85600),n=i(74320),r=i(1592),o=i(97035),a=i(14718),l=i(63591),c=i(18801),h=i(36456),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};const g=(0,l.u1)("ILanguageFeatureDebounceService");var p;!function(e){const t=new WeakMap;let i=0;e.of=function(e){let s=t.get(e);return void 0===s&&(s=++i,t.set(e,s)),s}}(p||(p={}));class m{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class f{constructor(e,t,i,s,r,o){this._logService=e,this._name=t,this._registry=i,this._default=s,this._min=r,this._max=o,this._cache=new n.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,s.sN)(p.of(t),e)),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?(0,r.qE)(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let s=this._cache.get(i);s||(s=new r.mu(6),this._cache.set(i,s));const n=(0,r.qE)(s.update(t),this._min,this._max);return(0,h.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${n}ms`),n}_overall(){const e=new r.Uq;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=0|this._overall()||this._default;return(0,r.qE)(e,this._min,this._max)}}let _=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,i){const s=i?.min??50,n=i?.max??s**2,r=i?.key??void 0,o=`${p.of(e)},${s}${r?","+r:""}`;let a=this._data.get(o);return a||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),a=new m(1.5*s)):a=new f(this._logService,t,e,0|this._overallAverage()||1.5*s,s,n),this._data.set(o,a)),a}_overallAverage(){const e=new r.Uq;for(const t of this._data.values())e.update(t.default());return e.value}};_=d([u(0,c.rr),u(1,o.k)],_),(0,a.v)(g,_,1)},56942:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ILanguageFeaturesService:()=>s});const s=(0,i(63591).u1)("ILanguageFeaturesService")},76007:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageFeaturesService:()=>g});var s=i(41234),n=i(5662),r=i(16223),o=i(54459);function a(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(a):!!e.exclusive)}class l{constructor(e,t,i,s,n){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=s,this.recursive=n}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class c{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new s.vl,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,n.s)((()=>{if(i){const e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const i of this._entries)i._score>0&&t.push(i.provider);return t}ordered(e,t=!1){const i=[];return this._orderedForEach(e,t,(e=>i.push(e.provider))),i}orderedGroups(e){const t=[];let i,s;return this._orderedForEach(e,!1,(e=>{i&&s===e._score?i.push(e.provider):(s=e._score,i=[e.provider],t.push(i))})),t}_orderedForEach(e,t,i){this._updateScores(e,t);for(const s of this._entries)s._score>0&&i(s)}_updateScores(e,t){const i=this._notebookInfoResolver?.(e.uri),s=i?new l(e.uri,e.getLanguageId(),i.uri,i.type,t):new l(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(s)){this._lastCandidate=s;for(const i of this._entries)if(i._score=(0,o.f)(i.selector,s.uri,s.languageId,(0,r.vd)(e),s.notebookUri,s.notebookType),a(i.selector)&&i._score>0){if(!t){for(const e of this._entries)e._score=0;i._score=1e3;break}i._score=0}this._entries.sort(c._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:h(e.selector)&&!h(t.selector)?1:!h(e.selector)&&h(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function h(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(h):Boolean(e.isBuiltin))}var d=i(56942),u=i(14718);class g{constructor(){this.referenceProvider=new c(this._score.bind(this)),this.renameProvider=new c(this._score.bind(this)),this.newSymbolNamesProvider=new c(this._score.bind(this)),this.codeActionProvider=new c(this._score.bind(this)),this.definitionProvider=new c(this._score.bind(this)),this.typeDefinitionProvider=new c(this._score.bind(this)),this.declarationProvider=new c(this._score.bind(this)),this.implementationProvider=new c(this._score.bind(this)),this.documentSymbolProvider=new c(this._score.bind(this)),this.inlayHintsProvider=new c(this._score.bind(this)),this.colorProvider=new c(this._score.bind(this)),this.codeLensProvider=new c(this._score.bind(this)),this.documentFormattingEditProvider=new c(this._score.bind(this)),this.documentRangeFormattingEditProvider=new c(this._score.bind(this)),this.onTypeFormattingEditProvider=new c(this._score.bind(this)),this.signatureHelpProvider=new c(this._score.bind(this)),this.hoverProvider=new c(this._score.bind(this)),this.documentHighlightProvider=new c(this._score.bind(this)),this.multiDocumentHighlightProvider=new c(this._score.bind(this)),this.selectionRangeProvider=new c(this._score.bind(this)),this.foldingRangeProvider=new c(this._score.bind(this)),this.linkProvider=new c(this._score.bind(this)),this.inlineCompletionsProvider=new c(this._score.bind(this)),this.inlineEditProvider=new c(this._score.bind(this)),this.completionProvider=new c(this._score.bind(this)),this.linkedEditingRangeProvider=new c(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new c(this._score.bind(this)),this.documentSemanticTokensProvider=new c(this._score.bind(this)),this.documentDropEditProvider=new c(this._score.bind(this)),this.documentPasteEditProvider=new c(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,u.v)(d.ILanguageFeaturesService,g,1)},17890:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageService:()=>h});var s=i(41234),n=i(5662),r=i(69259),o=i(25890),a=i(62083),l=i(83941),c=i(31308);class h extends n.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new s.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new s.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new s.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,h.instanceCount++,this._registry=this._register(new r.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){h.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,o.Fy)(i,null)}createById(e){return new d(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new d(this.onDidChange,(()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),a.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class d{constructor(e,t){this._value=(0,c.y0)(this,e,(()=>t())),this.onDidChange=s.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},99908:(e,t,i)=>{"use strict";i.r(t),i.d(t,{clearPlatformLanguageAssociations:()=>p,getLanguageIds:()=>m,registerPlatformLanguageAssociation:()=>g});var s=i(46958),n=i(44320),r=i(36456),o=i(74027),a=i(89403),l=i(91508),c=i(83941);let h=[],d=[],u=[];function g(e,t=!1){!function(e,t,i){const n=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,s.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(o.SA.sep)>=0}}(e,t);h.push(n),n.userConfigured?u.push(n):d.push(n);i&&!n.userConfigured&&h.forEach((e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))}))}(e,!1,t)}function p(){h=h.filter((e=>e.userConfigured)),d=[]}function m(e,t){return function(e,t){let i;if(e)switch(e.scheme){case r.ny.file:i=e.fsPath;break;case r.ny.data:i=a.B6.parseMetaData(e).get(a.B6.META_DATA_LABEL);break;case r.ny.vscodeNotebookCell:i=void 0;break;default:i=e.path}if(!i)return[{id:"unknown",mime:n.K.unknown}];i=i.toLowerCase();const s=(0,o.P8)(i),g=f(i,s,u);if(g)return[g,{id:c.vH,mime:n.K.text}];const p=f(i,s,d);if(p)return[p,{id:c.vH,mime:n.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=h.length-1;t>=0;t--){const i=h[t];if(!i.firstline)continue;const s=e.match(i.firstline);if(s&&s.length>0)return i}return}(t);if(e)return[e,{id:c.vH,mime:n.K.text}]}return[{id:"unknown",mime:n.K.unknown}]}(e,t).map((e=>e.id))}function f(e,t,i){let s,n,r;for(let o=i.length-1;o>=0;o--){const a=i[o];if(t===a.filenameLowercase){s=a;break}if(a.filepattern&&(!n||a.filepattern.length>n.filepattern.length)){const i=a.filepatternOnPath?e:t;a.filepatternLowercase?.(i)&&(n=a)}a.extension&&(!r||a.extension.length>r.extension.length)&&t.endsWith(a.extensionLowercase)&&(r=a)}return s||(n||(r||void 0))}},69259:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LanguageIdCodec:()=>u,LanguagesRegistry:()=>g});var s=i(41234),n=i(5662),r=i(91508),o=i(99908),a=i(83941),l=i(1646),c=i(46359);const h=Object.prototype.hasOwnProperty,d="vs.editor.nullLanguage";class u{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(d,0),this._register(a.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||d}}class g extends n.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new s.vl),this.onDidChange=this._onDidChange.event,g.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new u,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(a.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){g.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,o.clearPlatformLanguageAssociations)();const e=[].concat(a.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),c.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;h.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let s=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),s=t.mimetypes[0]),s||(s=`text/x-${i}`,e.mimetypes.push(s)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const r of t.filenames)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,filename:r},this._warnOnOverwrite),e.filenames.push(r);if(Array.isArray(t.filenamePatterns))for(const r of t.filenamePatterns)(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,filepattern:r},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,r.eY)(t)||(0,o.registerPlatformLanguageAssociation)({id:i,mime:s,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(i);let n=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(n=0===t.aliases.length?[null]:t.aliases),null!==n)for(const r of n)r&&0!==r.length&&e.aliases.push(r);const a=null!==n&&n.length>0;if(a&&null===n[0]);else{const t=(a?n[0]:null)||i;!a&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&h.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return h.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&h.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,o.getLanguageIds)(e,t):[]}}},37550:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IMarkerDecorationsService:()=>s});const s=(0,i(63591).u1)("markerDecorationsService")},30707:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MarkerDecorationsService:()=>_});var s=i(75147),n=i(5662),r=i(16223),o=i(47612),a=i(87119),l=i(23750),c=i(36677),h=i(36456),d=i(41234),u=i(66261),g=i(74320),p=i(48495),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class extends n.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new d.vl),this._markerDecorations=new g.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new v(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==h.ny.inMemory&&e.uri.scheme!==h.ny.internal&&e.uri.scheme!==h.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};_=m([f(0,l.IModelService),f(1,s.DR)],_);class v extends n.jG{constructor(e){super(),this.model=e,this._map=new g.cO,this._register((0,n.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:i}=(0,p.Z)(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===i.length)return!1;const s=i.map((e=>this._map.get(e))),n=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),r=this.model.deltaDecorations(s,n);for(const o of i)this._map.delete(o);for(let o=0;o<r.length;o++)this._map.set(t[o],r[o]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let i=c.Q.lift(t);if(t.severity!==s.cj.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(1===t||i.endColumn>=t)return i;const s=e.getWordAtPosition(i.getStartPosition());s&&(i=new c.Q(i.startLineNumber,s.startColumn,i.endLineNumber,s.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){const s=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);s<i.endColumn&&(i=new c.Q(i.startLineNumber,s,i.endLineNumber,i.endColumn),t.startColumn=s)}return i}_createDecorationOption(e){let t,i,n,l,c;switch(e.severity){case s.cj.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case s.cj.Info:t="squiggly-info",i=(0,o.Yf)(a.AQ),n=10,c={color:(0,o.Yf)(u.KoI),position:1};break;case s.cj.Warning:t="squiggly-warning",i=(0,o.Yf)(a.aZ),n=20,c={color:(0,o.Yf)(u.uMG),position:1};break;case s.cj.Error:default:t="squiggly-error",i=(0,o.Yf)(a.yI),n=30,c={color:(0,o.Yf)(u.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(l="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(l="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:i,position:r.A5.Right},minimap:c,zIndex:n,inlineClassName:l}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},23750:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IModelService:()=>s});const s=(0,i(63591).u1)("modelService")},16363:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DefaultModelSHA1Computer:()=>L,ModelService:()=>w});var s,n=i(41234),r=i(5662),o=i(98067),a=i(87289),l=i(24329),c=i(83941),h=i(90360),d=i(84001),u=i(47579),g=i(85600),p=i(26656),m=i(36456),f=i(10146),_=i(63591),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};function b(e){return e.toString()}class E{constructor(e,t,i){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>i(e,t))))}dispose(){this._modelEventListeners.dispose()}}const S=o.j9||o.zx?1:2;class y{constructor(e,t,i,s,n,r,o,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=s,this.heapSize=n,this.sha1=r,this.versionId=o,this.alternativeVersionId=a}}let w=class extends r.jG{static{s=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,i,s){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._instantiationService=s,this._onModelAdded=this._register(new n.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new n.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new n.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let i=l.R.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(i=t),i<1&&(i=1)}let s="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(s=Math.max(t,1))}let n=l.R.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(n="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let r=S;const o=e.eol;"\r\n"===o?r=2:"\n"===o&&(r=1);let a=l.R.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(a="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let c=l.R.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=l.R.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let d=l.R.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(d={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:i,indentSize:s,insertSpaces:n,detectIndentation:c,defaultEOL:r,trimAutoWhitespace:a,largeFileOptimizations:h,bracketPairColorizationOptions:d}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"===typeof i&&"auto"!==i?i:3===o.OS||2===o.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,i){const n="string"===typeof e?e:e.languageId;let r=this._modelCreationOptionsByLanguageAndResource[n+t];if(!r){const e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),o=this._getEOL(t,n);r=s._readModelOptions({editor:e,eol:o},i),this._modelCreationOptionsByLanguageAndResource[n+t]=r}return r}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const i=Object.keys(this._models);for(let n=0,r=i.length;n<r;n++){const r=i[n],o=this._models[r],a=o.model.getLanguageId(),l=o.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:a,resource:l})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:a,resource:l}))continue;const c=t[a+l],h=this.getCreationOptions(a,l,o.model.isForSimpleWidget);s._setModelOptionsForModel(o.model,h,c)}}static _setModelOptionsForModel(e,t,i){i&&i.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),i&&i.detectIndentation===t.detectIndentation&&i.insertSpaces===t.insertSpaces&&i.tabSize===t.tabSize&&i.indentSize===t.indentSize&&i.trimAutoWhitespace===t.trimAutoWhitespace&&(0,f.aI)(i.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(b(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(b(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(b(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,s){const n=this.getCreationOptions(t,i,s),r=this._instantiationService.createInstance(a.Bz,e,t,n,i);if(i&&this._disposedModels.has(b(i))){const e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),s=this._getSHA1Computer(),n=!!s.canComputeSHA1(r)&&s.computeSHA1(r)===e.sha1;if(n||e.sharesUndoRedoStack){for(const e of t.past)(0,p.Th)(e)&&e.matchesResource(i)&&e.setModel(r);for(const e of t.future)(0,p.Th)(e)&&e.matchesResource(i)&&e.setModel(r);this._undoRedoService.setElementsValidFlag(i,!0,(e=>(0,p.Th)(e)&&e.matchesResource(i))),n&&(r._overwriteVersionId(e.versionId),r._overwriteAlternativeVersionId(e.alternativeVersionId),r._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const o=b(r.uri);if(this._models[o])throw new Error("ModelService: Cannot add model because it already exists!");const l=new E(r,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[o]=l,l}createModel(e,t,i,s=!1){let n;return n=t?this._createModelData(e,t,i,s):this._createModelData(e,c.vH,i,s),this._onModelAdded.fire(n.model),n.model}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,s=t.length;i<s;i++){const s=t[i];e.push(this._models[s].model)}return e}getModel(e){const t=b(e),i=this._models[t];return i?i.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===m.ny.file||e.scheme===m.ny.vscodeRemote||e.scheme===m.ny.vscodeUserData||e.scheme===m.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=b(e.uri),i=this._models[t],n=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let r=!1,o=0;if(n||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const i of t.past)(0,p.Th)(i)&&i.matchesResource(e.uri)&&(r=!0,o+=i.heapSize(e.uri),i.setModel(e.uri));for(const i of t.future)(0,p.Th)(i)&&i.matchesResource(e.uri)&&(r=!0,o+=i.heapSize(e.uri),i.setModel(e.uri))}}const a=s.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,l=this._getSHA1Computer();if(r)if(n||!(o>a)&&l.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(a-o),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>(0,p.Th)(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new y(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,o,l.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!n){const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,n=e.getLanguageId(),r=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);s._setModelOptionsForModel(e,o,r),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}_getSHA1Computer(){return new L}};w=s=v([C(0,d.pG),C(1,h.ITextResourcePropertiesService),C(2,u.$D),C(3,_._Y)],w);class L{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=L.MAX_MODEL_SIZE}computeSHA1(e){const t=new g.v7,i=e.createSnapshot();let s;for(;s=i.read();)t.update(s);return t.digest()}}},18938:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITextModelService:()=>s});const s=(0,i(63591).u1)("textModelService")},98232:(e,t,i)=>{"use strict";i.r(t),i.d(t,{encodeSemanticTokensDto:()=>r});var s=i(81674),n=i(98067);function r(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const i of e.deltas)i.data&&(t+=i.data.length)}return t}(e));let i=0;if(t[i++]=e.id,"full"===e.type)t[i++]=1,t[i++]=e.data.length,t.set(e.data,i),i+=e.data.length;else{t[i++]=2,t[i++]=e.deltas.length;for(const s of e.deltas)t[i++]=s.start,t[i++]=s.deleteCount,s.data?(t[i++]=s.data.length,t.set(s.data,i),i+=s.data.length):t[i++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return n.cm()||function(e){for(let t=0,i=e.length;t<i;t+=4){const i=e[t+0],s=e[t+1],n=e[t+2],r=e[t+3];e[t+0]=r,e[t+1]=n,e[t+2]=s,e[t+3]=i}}(t),s.MB.wrap(t)}(t)}},45538:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SemanticTokensProviderStyling:()=>m,toMultilineTokens2:()=>f});i(25982);var s=i(47612),n=i(18801),r=i(83069),o=i(36677),a=i(64454);class l{static create(e,t){return new l(e,new c(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new o.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[s,n,r]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new l(this._startLineNumber,s),new l(this._startLineNumber+r,n)]}applyEdit(e,t){const[i,s,n]=(0,a.W)(t);this.acceptEdit(e,i,s,n,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,s,n){this._acceptDeleteRange(e),this._acceptInsertText(new r.y(e.startLineNumber,e.startColumn),t,i,s,n),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const e=i-t;return void(this._startLineNumber-=e)}const s=this._tokens.getMaxDeltaLine();if(!(t>=s+1)){if(t<0&&i>=s+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const s=-t;this._startLineNumber-=s,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,s,n){if(0===t&&0===i)return;const r=e.lineNumber-this._startLineNumber;if(r<0)return void(this._startLineNumber+=t);r>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(r,e.column-1,t,i,s,n)}}class c{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;i<this._tokenCount;i++)t.push(`(${this._getDeltaLine(i)+e},${this._getStartCharacter(i)}-${this._getEndCharacter(i)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),i=this._getDeltaLine(e-1),s=this._getEndCharacter(e-1);return new o.Q(0,t+1,i,s+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,i=this._getTokenCount()-1;for(;t<i;){const s=t+Math.floor((i-t)/2),n=this._getDeltaLine(s);if(n<e)t=s+1;else{if(!(n>e)){let n=s;for(;n>t&&this._getDeltaLine(n-1)===e;)n--;let r=s;for(;r<i&&this._getDeltaLine(r+1)===e;)r++;return new h(this._tokens.subarray(4*n,4*r+4))}i=s-1}}return this._getDeltaLine(t)===e?new h(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,i,s){const n=this._tokens,r=this._tokenCount;let o=0,a=!1,l=0;for(let c=0;c<r;c++){const r=4*c,h=n[r],d=n[r+1],u=n[r+2],g=n[r+3];if((h>e||h===e&&u>=t)&&(h<i||h===i&&d<=s))a=!0;else{if(0===o&&(l=h),a){const e=4*o;n[e]=h-l,n[e+1]=d,n[e+2]=u,n[e+3]=g}o++}}return this._tokenCount=o,l}split(e,t,i,s){const n=this._tokens,r=this._tokenCount,o=[],a=[];let l=o,h=0,d=0;for(let c=0;c<r;c++){const r=4*c,o=n[r],u=n[r+1],g=n[r+2],p=n[r+3];if(o>e||o===e&&g>=t){if(o<i||o===i&&u<=s)continue;l!==a&&(l=a,h=0,d=o)}l[h++]=o-d,l[h++]=u,l[h++]=g,l[h++]=p}return[new c(new Uint32Array(o)),new c(new Uint32Array(a)),d]}acceptDeleteRange(e,t,i,s,n){const r=this._tokens,o=this._tokenCount,a=s-t;let l=0,c=!1;for(let h=0;h<o;h++){const d=4*h;let u=r[d],g=r[d+1],p=r[d+2];const m=r[d+3];if(u<t||u===t&&p<=i){l++;continue}if(u===t&&g<i)u===s&&p>n?p-=n-i:p=i;else if(u===t&&g===i){if(!(u===s&&p>n)){c=!0;continue}p-=n-i}else if(u<s||u===s&&g<n){if(!(u===s&&p>n)){c=!0;continue}u=t,g=i,p=g+(p-n)}else if(u>s){if(0===a&&!c){l=o;break}u-=a}else{if(!(u===s&&g>=n))throw new Error("Not possible!");e&&0===u&&(g+=e,p+=e),u-=a,g-=n-i,p-=n-i}const f=4*l;r[f]=u,r[f+1]=g,r[f+2]=p,r[f+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,i,s,n,r){const o=0===i&&1===s&&(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122),a=this._tokens,l=this._tokenCount;for(let c=0;c<l;c++){const r=4*c;let l=a[r],h=a[r+1],d=a[r+2];if(!(l<e||l===e&&d<t)){if(l===e&&d===t){if(!o)continue;d+=1}else if(l===e&&h<t&&t<d)0===i?d+=s:d=t;else{if(l===e&&h===t&&o)continue;if(l===e)if(l+=i,0===i)h+=s,d+=s;else{const e=d-h;h=n+(h-t),d=h+e}else l+=i}a[r]=l,a[r+1]=h,a[r+2]=d}}}}class h{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var d=i(10154),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=!1;let m=class{constructor(e,t,i,s){this._legend=e,this._themeService=t,this._languageService=i,this._logService=s,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new v}getMetadata(e,t,i){const s=this._languageService.languageIdCodec.encodeLanguageId(i),n=this._hashTable.get(e,t,s);let r;if(n)r=n.metadata;else{let n=this._legend.tokenTypes[e];const o=[];if(n){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;p;const s=this._themeService.getColorTheme().getTokenStyleMetadata(n,o,i);if("undefined"===typeof s)r=2147483647;else{if(r=0,"undefined"!==typeof s.italic){r|=1|(s.italic?1:0)<<11}if("undefined"!==typeof s.bold){r|=2|(s.bold?2:0)<<11}if("undefined"!==typeof s.underline){r|=4|(s.underline?4:0)<<11}if("undefined"!==typeof s.strikethrough){r|=8|(s.strikethrough?8:0)<<11}if(s.foreground){r|=16|s.foreground<<15}0===r&&(r=2147483647)}}else r=2147483647,n="not-in-legend";this._hashTable.add(e,t,s,r)}return r}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,s,n){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${s} is outside the previous data (length ${n}).`))}};function f(e,t,i){const s=e.data,n=e.data.length/5|0,r=Math.max(Math.ceil(n/1024),400),o=[];let a=0,c=1,h=0;for(;a<n;){const e=a;let d=Math.min(e+r,n);if(d<n){let t=d;for(;t-1>e&&0===s[5*t];)t--;if(t-1===e){let e=d;for(;e+1<n&&0===s[5*e];)e++;d=e}else d=t}let u=new Uint32Array(4*(d-e)),g=0,p=0,m=0,f=0;for(;a<d;){const e=5*a,n=s[e],r=s[e+1],o=c+n|0,l=0===n?h+r|0:r,d=l+s[e+2]|0,_=s[e+3],v=s[e+4];if(d<=l)t.warnInvalidLengthSemanticTokens(o,l+1);else if(m===o&&f>l)t.warnOverlappingSemanticTokens(o,l+1);else{const e=t.getMetadata(_,v,i);2147483647!==e&&(0===p&&(p=o),u[g]=o-p,u[g+1]=l,u[g+2]=d,u[g+3]=e,g+=4,m=o,f=d)}c=o,h=l,a++}g!==u.length&&(u=u.subarray(0,g));const _=l.create(p,u);o.push(_)}return o}m=u([g(1,s.Gy),g(2,d.L),g(3,n.rr)],m);class _{constructor(e,t,i,s){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=s,this.next=null}}class v{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let i=0;i<t;i++)e[i]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,i){return this._hash2(this._hash2(e,t),i)%this._currentLength}get(e,t,i){const s=this._hashFunc(e,t,i);let n=this._elements[s];for(;n;){if(n.tokenTypeIndex===e&&n.tokenModifierSet===t&&n.languageId===i)return n;n=n.next}return null}add(e,t,i,s){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=v._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<v._SIZES.length?2/3*this._currentLength:0),this._elements=[],v._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new _(e,t,i,s))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},74243:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ISemanticTokensStylingService:()=>s});const s=(0,i(63591).u1)("semanticTokensStylingService")},27004:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SemanticTokensStylingService:()=>u});var s=i(5662),n=i(10154),r=i(47612),o=i(18801),a=i(45538),l=i(74243),c=i(14718),h=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},d=function(e,t){return function(i,s){t(i,s,e)}};let u=class extends s.jG{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new a.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};u=h([d(0,r.Gy),d(1,o.rr),d(2,n.L)],u),(0,c.v)(l.ISemanticTokensStylingService,u,1)},47443:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MirrorModel:()=>m,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>u,WorkerTextModelSyncClient:()=>g,WorkerTextModelSyncServer:()=>p});var s=i(90766),n=i(5662),r=i(79400),o=i(83069),a=i(36677),l=i(26486),c=i(91508),h=i(27414);class d{constructor(e,t,i,s){this._uri=e,this._lines=t,this._eol=i,this._versionId=s,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const i of t)this._acceptDeleteRange(i.range),this._acceptInsertText(new o.y(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let s=0;s<t;s++)i[s]=this._lines[s].length+e;this._lineStarts=new h.N(i)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const i=(0,c.uz)(t);if(1===i.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));i[i.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]);const s=new Uint32Array(i.length-1);for(let n=1;n<i.length;n++)this._lines.splice(e.lineNumber+n-1,0,i[n]),s[n-1]=i[n].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,s)}}const u=6e4;class g extends n.jG{constructor(e,t,i=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const e=new s.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(u/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,n.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const i of e){const e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const i in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[i]>u&&t.push(i)}for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i)return;if(!t&&i.isTooLargeForSyncing())return;const s=e.toString();this._proxy.$acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const r=new n.Cm;r.add(i.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(s.toString(),e)}))),r.add(i.onWillDispose((()=>{this._stopModelSync(s)}))),r.add((0,n.s)((()=>{this._proxy.$acceptRemovedModel(s)}))),this._syncedModels[s]=r}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,n.AS)(t)}}class p{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new m(r.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class m extends d{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let i=0;i<this._lines.length;i++){const s=this._lines[i],n=this.offsetAt(new o.y(i+1,1)),r=s.matchAll(e);for(const e of r)(e.index||0===e.index)&&(e.index=e.index+n),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const i=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return i?new a.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const t=this._lines,i=this._wordenize.bind(this);let s=0,n="",r=0,o=[];return{*[Symbol.iterator](){for(;;)if(r<o.length){const e=n.substring(o[r].start,o[r].end);r+=1,yield e}else{if(!(s<t.length))break;n=t[s],o=i(n,e),r=0,s+=1}}}}getLineWords(e,t){const i=this._lines[e-1],s=this._wordenize(i,t),n=[];for(const r of s)n.push({word:i.substring(r.start,r.end),startColumn:r.start+1,endColumn:r.end+1});return n}_wordenize(e,t){const i=[];let s;for(t.lastIndex=0;(s=t.exec(e))&&0!==s[0].length;)i.push({start:s.index,end:s.index+s[0].length});return i}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,i=e.startLineNumber-1,s=e.endLineNumber-1,n=[];n.push(this._lines[i].substring(e.startColumn-1));for(let r=i+1;r<s;r++)n.push(this._lines[r]);return n.push(this._lines[s].substring(0,e.endColumn-1)),n.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),i=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,i)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),i=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||i.lineNumber!==e.endLineNumber||i.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}:e}_validatePosition(e){if(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:i}=e,s=!1;if(t<1)t=1,i=1,s=!0;else if(t>this._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,s=!0;else{const e=this._lines[t-1].length+1;i<1?(i=1,s=!0):i>e&&(i=e,s=!0)}return s?{lineNumber:t,column:i}:e}}},90360:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITextResourceConfigurationService:()=>n,ITextResourcePropertiesService:()=>r});var s=i(63591);const n=(0,s.u1)("textResourceConfigurationService"),r=(0,s.u1)("textResourcePropertiesService")},44432:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITreeSitterParserService:()=>s});const s=(0,i(63591).u1)("treeSitterParserService")},36723:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DraggedTreeItemsIdentifier:()=>n,TreeViewsDnDService:()=>s});class s{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class n{constructor(e){this.identifier=e}}},29100:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ITreeViewsDnDService:()=>o});var s=i(14718),n=i(63591),r=i(36723);const o=(0,n.u1)("treeViewsDndService");(0,s.v)(o,r.TreeViewsDnDService,1)},74855:(e,t,i)=>{"use strict";i.r(t),i.d(t,{UnicodeTextModelHighlighter:()=>l});var s=i(36677),n=i(43264),r=i(91508),o=i(66782),a=i(26486);class l{static computeUnicodeHighlights(e,t,i){const l=i?i.startLineNumber:1,h=i?i.endLineNumber:e.getLineCount(),d=new c(t),u=d.getCandidateCodePoints();let g;var p;g="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(p=Array.from(u),`[${r.bm(p.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new n.W5(null,g),f=[];let _,v=!1,C=0,b=0,E=0;e:for(let n=l,c=h;n<=c;n++){const t=e.getLineContent(n),i=t.length;m.reset(0);do{if(_=m.next(t),_){let e=_.index,l=_.index+_[0].length;if(e>0){const i=t.charCodeAt(e-1);r.pc(i)&&e--}if(l+1<i){const e=t.charCodeAt(l-1);r.pc(e)&&l++}const c=t.substring(e,l);let h=(0,a.Th)(e+1,a.Ld,t,0);h&&h.endColumn<=e+1&&(h=null);const u=d.shouldHighlightNonBasicASCII(c,h?h.word:null);if(0!==u){3===u?C++:2===u?b++:1===u?E++:(0,o.xb)(u);const t=1e3;if(f.length>=t){v=!0;break e}f.push(new s.Q(n,e+1,n,l+1))}}}while(_)}return{ranges:f,hasMore:v,ambiguousCharacterCount:C,invisibleCharacterCount:b,nonBasicAsciiCharacterCount:E}}static computeUnicodeHighlightReason(e,t){const i=new c(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),n=i.ambiguousCharacters.getPrimaryConfusable(s),o=r.tl.getLocales().filter((e=>!r.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(s)));return{kind:0,confusableWith:String.fromCodePoint(n),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class c{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=r.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of r.y_.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let s=!1,n=!1;if(t)for(const o of t){const e=o.codePointAt(0),t=r.aC(o);s=s||t,t||this.ambiguousCharacters.isAmbiguous(e)||r.y_.isInvisibleCharacter(e)||(n=!0)}return!s&&n?0:this.options.invisibleCharacters&&!h(e)&&r.y_.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},35015:(e,t,i)=>{"use strict";var s,n,r,o,a,l,c,h,d,u,g,p,m,f,_,v,C,b,E,S,y,w,L,R,T,x,k,A,N,I,O,D,M,P,F,U,H,B,W,V,z,G,j,K,Y,q;i.d(t,{A5:()=>O,Ah:()=>D,DD:()=>w,DO:()=>P,Gn:()=>s,H_:()=>G,Ic:()=>M,Io:()=>o,Kb:()=>u,M$:()=>v,OV:()=>A,QP:()=>a,Qj:()=>c,R3:()=>T,SB:()=>B,U7:()=>j,VW:()=>b,VX:()=>x,WA:()=>V,WU:()=>f,XR:()=>H,YT:()=>N,ZS:()=>_,_E:()=>r,cj:()=>L,dE:()=>I,d_:()=>R,e0:()=>g,h5:()=>h,hS:()=>k,hW:()=>F,jT:()=>W,kK:()=>Y,kf:()=>m,l:()=>C,m9:()=>K,of:()=>d,ok:()=>n,ov:()=>U,p2:()=>p,qw:()=>S,r4:()=>E,sm:()=>y,t7:()=>l,tJ:()=>q,v0:()=>z}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(s||(s={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(n||(n={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(r||(r={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(o||(o={})),function(e){e[e.Deprecated=1]="Deprecated"}(a||(a={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(l||(l={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(c||(c={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(h||(h={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(u||(u={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(g||(g={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(p||(p={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(m||(m={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(f||(f={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(_||(_={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(v||(v={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(C||(C={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(b||(b={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(E||(E={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(S||(S={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(y||(y={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(w||(w={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(L||(L={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(R||(R={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(T||(T={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(x||(x={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(k||(k={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(A||(A={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(N||(N={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(I||(I={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(O||(O={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(D||(D={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(M||(M={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(P||(P={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(F||(F={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(U||(U={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(H||(H={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(B||(B={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(W||(W={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(V||(V={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(z||(z={})),function(e){e[e.Deprecated=1]="Deprecated"}(G||(G={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(j||(j={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(K||(K={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(Y||(Y={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(q||(q={}))},51861:(e,t,i)=>{"use strict";i.d(t,{E6:()=>c,Hw:()=>n,YN:()=>s,gf:()=>o,n9:()=>a,oq:()=>r,tu:()=>h,vp:()=>l});var s,n,r,o,a,l,c,h,d=i(78209);!function(e){e.inspectTokensAction=d.kg("inspectTokens","Developer: Inspect Tokens")}(s||(s={})),function(e){e.gotoLineActionLabel=d.kg("gotoLineActionLabel","Go to Line/Column...")}(n||(n={})),function(e){e.helpQuickAccessActionLabel=d.kg("helpQuickAccess","Show all Quick Access Providers")}(r||(r={})),function(e){e.quickCommandActionLabel=d.kg("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=d.kg("quickCommandActionHelp","Show And Run Commands")}(o||(o={})),function(e){e.quickOutlineActionLabel=d.kg("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=d.kg("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(a||(a={})),function(e){e.editorViewAccessibleLabel=d.kg("editorViewAccessibleLabel","Editor content")}(l||(l={})),function(e){e.toggleHighContrast=d.kg("toggleHighContrast","Toggle High Contrast Theme")}(c||(c={})),function(e){e.bulkEditServiceSummary=d.kg("bulkEditServiceSummary","Made {0} edits in {1} files")}(h||(h={}))},64727:(e,t,i)=>{"use strict";i.d(t,{E$:()=>o,HP:()=>c,Ic:()=>d,U0:()=>r,Wn:()=>s,bg:()=>a,mS:()=>l,uK:()=>n,vn:()=>h});class s{constructor(){this.changeType=1}}class n{static applyInjectedText(e,t){if(!t||0===t.length)return e;let i="",s=0;for(const n of t)i+=e.substring(s,n.column-1),s=n.column-1,i+=n.options.content;return i+=e.substring(s),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new n(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new n(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,i,s,n){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=s,this.order=n}}class r{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class o{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,i,s){this.changeType=4,this.injectedTexts=s,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class l{constructor(){this.changeType=5}}class c{constructor(e,t,i,s){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=s,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t<i;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const i=[].concat(e.changes).concat(t.changes),s=t.versionId,n=e.isUndoing||t.isUndoing,r=e.isRedoing||t.isRedoing;return new c(i,s,n,r)}}class h{constructor(e){this.changes=e}}class d{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=c.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),i=d._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new d(t,i)}static _mergeChangeEvents(e,t){const i=[].concat(e.changes).concat(t.changes),s=t.eol,n=t.versionId,r=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:i,eol:s,isEolChange:e.isEolChange&&t.isEolChange,versionId:n,isUndoing:r,isRedoing:o,isFlush:a}}}},84739:(e,t,i)=>{"use strict";var s;i.d(t,{N6:()=>s,TH:()=>n,pv:()=>r}),function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(s||(s={}));class n{constructor(e,t,i,s,n,r){if(this.visibleColumn=e,this.column=t,this.className=i,this.horizontalLine=s,this.forWrappedLinesAfterColumn=n,this.forWrappedLinesBeforeOrAtColumn=r,-1!==e===(-1!==t))throw new Error}}class r{constructor(e,t){this.top=e,this.endColumn=t}}},87469:(e,t,i)=>{"use strict";i.d(t,{T:()=>o,f:()=>n});var s=i(25982);class n{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const i=n.defaultTokenMetadata,s=new Uint32Array(2);return s[0]=e.length,s[1]=i,new n(s,e,t)}static createFromTextAndMetadata(e,t){let i=0,s="";const r=new Array;for(const{text:n,metadata:o}of e)r.push(i+n.length,o),i+=n.length,s+=n;return new n(new Uint32Array(r),s,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=i}equals(e){return e instanceof n&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const s=t<<1,n=s+(i<<1);for(let r=s;r<n;r++)if(this._tokens[r]!==e._tokens[r])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],i=s.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return s.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return s.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return s.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[1+(e<<1)];return s.x.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return s.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return n.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new r(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let s=0;s<i;s++)e[s<<1]=e[s+1<<1];e[i<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let i=0,s=(e.length>>>1)-1;for(;i<s;){const n=i+Math.floor((s-i)/2),r=e[n<<1];if(r===t)return n+1;r<t?i=n+1:r>t&&(s=n)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,s="";const r=new Array;let o=0;for(;;){const n=t<this._tokensCount?this._tokens[t<<1]:-1,a=i<e.length?e[i]:null;if(-1!==n&&(null===a||n<=a.offset)){s+=this._text.substring(o,n);const e=this._tokens[1+(t<<1)];r.push(s.length,e),t++,o=n}else{if(!a)break;if(a.offset>o){s+=this._text.substring(o,a.offset);const e=this._tokens[1+(t<<1)];r.push(s.length,e),o=a.offset}s+=a.text,r.push(s.length,a.tokenMetadata),i++}}return new n(new Uint32Array(r),s,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),i=this.getEndOffset(e);return this._text.substring(t,i)}forEach(e){const t=this.getCount();for(let i=0;i<t;i++)e(i)}}class r{constructor(e,t,i,s){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=s,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let n=this._firstTokenIndex,r=e.getCount();n<r;n++){if(e.getStartOffset(n)>=i)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof r&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,i=this._source.getStartOffset(t),s=this._source.getEndOffset(t);let n=this._source.getTokenText(t);return i<this._startOffset&&(n=n.substring(this._startOffset-i)),s>this._endOffset&&(n=n.substring(0,n.length-(s-this._endOffset))),n}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}function o(e,t){const i=t.lineNumber;if(!e.tokenization.isCheapToTokenize(i))return;e.tokenization.forceTokenization(i);const s=e.tokenization.getLineTokens(i),n=s.findTokenIndexAtOffset(t.column-1);return s.getStandardTokenType(n)}},25521:(e,t,i)=>{"use strict";i.d(t,{Bs:()=>a,d:()=>n});var s=i(91508);class n{constructor(e,t,i,s){this.startColumn=e,this.endColumn=t,this.className=i,this.type=s,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(!n._equals(e[s],t[s]))return!1;return!0}static extractWrapped(e,t,i){if(0===e.length)return e;const s=t+1,r=i+1,o=i-t,a=[];let l=0;for(const c of e)c.endColumn<=s||c.startColumn>=r||(a[l++]=new n(Math.max(1,c.startColumn-s+1),Math.min(o+1,c.endColumn-s+1),c.className,c.type));return a}static filter(e,t,i,s){if(0===e.length)return[];const r=[];let o=0;for(let a=0,l=e.length;a<l;a++){const l=e[a],c=l.range;if(c.endLineNumber<t||c.startLineNumber>t)continue;if(c.isEmpty()&&(0===l.type||3===l.type))continue;const h=c.startLineNumber===t?c.startColumn:i,d=c.endLineNumber===t?c.endColumn:s;r[o++]=new n(h,d,l.inlineClassName,l.type)}return r}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=n._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className<t.className?-1:1:0}}class r{constructor(e,t,i,s){this.startOffset=e,this.endOffset=t,this.className=i,this.metadata=s}}class o{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(e){let t=0;for(let i=0,s=e.length;i<s;i++)t|=e[i];return t}consumeLowerThan(e,t,i){for(;this.count>0&&this.stopOffsets[0]<e;){let e=0;for(;e+1<this.count&&this.stopOffsets[e]===this.stopOffsets[e+1];)e++;i.push(new r(t,this.stopOffsets[e],this.classNames.join(" "),o._metadata(this.metadata))),t=this.stopOffsets[e]+1,this.stopOffsets.splice(0,e+1),this.classNames.splice(0,e+1),this.metadata.splice(0,e+1),this.count-=e+1}return this.count>0&&t<e&&(i.push(new r(t,e-1,this.classNames.join(" "),o._metadata(this.metadata))),t=e),t}insert(e,t,i){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t),this.metadata.push(i);else for(let s=0;s<this.count;s++)if(this.stopOffsets[s]>=e){this.stopOffsets.splice(s,0,e),this.classNames.splice(s,0,t),this.metadata.splice(s,0,i);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];const i=[],n=new o;let r=0;for(let o=0,a=t.length;o<a;o++){const a=t[o];let l=a.startColumn,c=a.endColumn;const h=a.className,d=1===a.type?2:2===a.type?4:0;if(l>1){const t=e.charCodeAt(l-2);s.pc(t)&&l--}if(c>1){const t=e.charCodeAt(c-2);s.pc(t)&&c--}const u=l-1,g=c-2;r=n.consumeLowerThan(u,r,i),0===n.count&&(r=u),n.insert(g,h,d)}return n.consumeLowerThan(1073741824,r,i),i}}},35600:(e,t,i)=>{"use strict";i.d(t,{wZ:()=>h,MT:()=>l,zL:()=>c,UW:()=>g,Md:()=>m});var s=i(78209),n=i(91508),r=i(99020),o=i(25521);class a{constructor(e,t,i,s){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=s,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class l{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class c{constructor(e,t,i,s,n,r,a,l,c,h,d,u,g,p,m,f,_,v,C){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=s,this.isBasicASCII=n,this.containsRTL=r,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=c.sort(o.d.compare),this.tabSize=h,this.startVisibleColumn=d,this.spaceWidth=u,this.stopRenderingLineAfter=m,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:"trailing"===f?3:0,this.renderControlCharacters=_,this.fontLigatures=v,this.selectionsOnLine=C&&C.sort(((e,t)=>e.startOffset<t.startOffset?-1:1));Math.abs(p-u)<Math.abs(g-u)?(this.renderSpaceWidth=p,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=g,this.renderSpaceCharCode=183)}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}equals(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&o.d.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class h{constructor(e,t){this.partIndex=e,this.charIndex=t}}class d{static getPartIndex(e){return(4294901760&e)>>>16}static getCharIndex(e){return(65535&e)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,s){const n=(t<<16|i)>>>0;this._data[e-1]=n,this._horizontalOffset[e-1]=s}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=d.getPartIndex(t),s=d.getCharIndex(t);return new h(i,s)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;const s=(e<<16|i)>>>0;let n=0,r=this.length-1;for(;n+1<r;){const e=n+r>>>1,t=this._data[e];if(t===s)return e;t>s?r=e:n=e}if(n===r)return n;const o=this._data[n],a=this._data[r];if(o===s)return n;if(a===s)return r;const l=d.getPartIndex(o),c=d.getCharIndex(o);let h;h=l!==d.getPartIndex(a)?t:d.getCharIndex(a);return i-c<=h-i?n:r}}class u{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function g(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("<span>");let i=0,s=0,n=0;for(const o of e.lineDecorations)1!==o.type&&2!==o.type||(t.appendString('<span class="'),t.appendString(o.className),t.appendString('"></span>'),1===o.type&&(n|=1,i++),2===o.type&&(n|=2,s++));t.appendString("</span>");const r=new d(1,i+s);return r.setColumnInfo(1,i,0,0),new u(r,!1,n)}return t.appendString("<span><span></span></span>"),new u(new d(0,0),!1,0)}return function(e,t){const i=e.fontIsMonospace,r=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,a=e.lineContent,l=e.len,c=e.isOverflowing,h=e.overflowingCharCount,g=e.parts,p=e.fauxIndentLength,m=e.tabSize,f=e.startVisibleColumn,C=e.containsRTL,b=e.spaceWidth,E=e.renderSpaceCharCode,S=e.renderWhitespace,y=e.renderControlCharacters,w=new d(l+1,g.length);let L=!1,R=0,T=f,x=0,k=0,A=0;C?t.appendString('<span dir="ltr">'):t.appendString("<span>");for(let s=0,d=g.length;s<d;s++){const e=g[s],c=e.endIndex,h=e.type,d=e.containsRTL,u=0!==S&&e.isWhitespace(),f=u&&!i&&("mtkw"===h||!o),C=R===c&&e.isPseudoAfter();if(x=0,t.appendString("<span "),d&&t.appendString('style="unicode-bidi:isolate" '),t.appendString('class="'),t.appendString(f?"mtkz":h),t.appendASCIICharCode(34),u){let e=0;{let t=R,i=T;for(;t<c;t++){const s=0|(9===a.charCodeAt(t)?m-i%m:1);e+=s,t>=p&&(i+=s)}}for(f&&(t.appendString(' style="width:'),t.appendString(String(b*e)),t.appendString('px"')),t.appendASCIICharCode(62);R<c;R++){w.setColumnInfo(R+1,s-A,x,k),A=0;let e,i;if(9===a.charCodeAt(R)){e=m-T%m|0,i=e,!r||i>1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=i;e++)t.appendCharCode(160)}else e=2,i=1,t.appendCharCode(E),t.appendCharCode(8204);x+=e,k+=i,R>=p&&(T+=i)}}else for(t.appendASCIICharCode(62);R<c;R++){w.setColumnInfo(R+1,s-A,x,k),A=0;const e=a.charCodeAt(R);let i=1,r=1;switch(e){case 9:i=m-T%m,r=i;for(let e=1;e<=i;e++)t.appendCharCode(160);break;case 32:t.appendCharCode(160);break;case 60:t.appendString("<");break;case 62:t.appendString(">");break;case 38:t.appendString("&");break;case 0:y?t.appendCharCode(9216):t.appendString("�");break;case 65279:case 8232:case 8233:case 133:t.appendCharCode(65533);break;default:n.ne(e)&&r++,y&&e<32?t.appendCharCode(9216+e):y&&127===e?t.appendCharCode(9249):y&&_(e)?(t.appendString("[U+"),t.appendString(v(e)),t.appendString("]"),i=8,r=i):t.appendCharCode(e)}x+=i,k+=r,R>=p&&(T+=r)}C?A++:A=0,R>=l&&!L&&e.isPseudoAfter()&&(L=!0,w.setColumnInfo(R+1,s,x,k)),t.appendString("</span>")}L||w.setColumnInfo(l+1,g.length-1,x,k);c&&(t.appendString('<span class="mtkoverflow">'),t.appendString(s.kg("showMore","Show more ({0})",function(e){if(e<1024)return s.kg("overflow.chars","{0} chars",e);if(e<1048576)return`${(e/1024).toFixed(1)} KB`;return`${(e/1024/1024).toFixed(1)} MB`}(h))),t.appendString("</span>"));return t.appendString("</span>"),new u(w,C,o)}(function(e){const t=e.lineContent;let i,s,r;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<t.length?(i=!0,s=t.length-e.stopRenderingLineAfter,r=e.stopRenderingLineAfter):(i=!1,s=0,r=t.length);let l=function(e,t,i,s,r){const o=[];let l=0;s>0&&(o[l++]=new a(s,"",0,!1));let c=s;for(let h=0,d=i.getCount();h<d;h++){const d=i.getEndOffset(h);if(d<=s)continue;const u=i.getClassName(h);if(d>=r){const i=!!t&&n.E_(e.substring(c,r));o[l++]=new a(r,u,0,i);break}const g=!!t&&n.E_(e.substring(c,d));o[l++]=new a(d,u,0,g),c=d}return o}(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,r);e.renderControlCharacters&&!e.isBasicASCII&&(l=function(e,t){const i=[];let s=new a(0,"",0,!1),n=0;for(const r of t){const t=r.endIndex;for(;n<t;n++){_(e.charCodeAt(n))&&(n>s.endIndex&&(s=new a(n,r.type,r.metadata,r.containsRTL),i.push(s)),s=new a(n+1,"mtkcontrol",r.metadata,!1),i.push(s))}n>s.endIndex&&(s=new a(t,r.type,r.metadata,r.containsRTL),i.push(s))}return i}(t,l));(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(l=function(e,t,i,s){const r=e.continuesWithWrappedLine,o=e.fauxIndentLength,l=e.tabSize,c=e.startVisibleColumn,h=e.useMonospaceOptimizations,d=e.selectionsOnLine,u=1===e.renderWhitespace,g=3===e.renderWhitespace,p=e.renderSpaceWidth!==e.spaceWidth,m=[];let f=0,_=0,v=s[_].type,C=s[_].containsRTL,b=s[_].endIndex;const E=s.length;let S,y=!1,w=n.HG(t);-1===w?(y=!0,w=i,S=i):S=n.lT(t);let L=!1,R=0,T=d&&d[R],x=c%l;for(let A=o;A<i;A++){const e=t.charCodeAt(A);let r;if(T&&A>=T.endOffset&&(R++,T=d&&d[R]),A<w||A>S)r=!0;else if(9===e)r=!0;else if(32===e)if(u)if(L)r=!0;else{const e=A+1<i?t.charCodeAt(A+1):0;r=32===e||9===e}else r=!0;else r=!1;if(r&&d&&(r=!!T&&T.startOffset<=A&&T.endOffset>A),r&&g&&(r=y||A>S),r&&C&&A>=w&&A<=S&&(r=!1),L){if(!r||!h&&x>=l){if(p){for(let e=(f>0?m[f-1].endIndex:o)+1;e<=A;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(A,"mtkw",1,!1);x%=l}}else(A===b||r&&A>o)&&(m[f++]=new a(A,v,0,C),x%=l);for(9===e?x=l:n.ne(e)?x+=2:x++,L=r;A===b&&(_++,_<E);)v=s[_].type,C=s[_].containsRTL,b=s[_].endIndex}let k=!1;if(L)if(r&&u){const e=i>0?t.charCodeAt(i-1):0,s=i>1?t.charCodeAt(i-2):0;32===e&&32!==s&&9!==s||(k=!0)}else k=!0;if(k)if(p){for(let e=(f>0?m[f-1].endIndex:o)+1;e<=i;e++)m[f++]=new a(e,"mtkw",1,!1)}else m[f++]=new a(i,"mtkw",1,!1);else m[f++]=new a(i,v,0,C);return m}(e,t,r,l));let c=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;t<i;t++){const i=e.lineDecorations[t];3===i.type||1===i.type?c|=1:2===i.type&&(c|=2)}l=function(e,t,i,s){s.sort(o.d.compare);const n=o.Bs.normalize(e,s),r=n.length;let l=0;const c=[];let h=0,d=0;for(let o=0,g=i.length;o<g;o++){const e=i[o],t=e.endIndex,s=e.type,u=e.metadata,g=e.containsRTL;for(;l<r&&n[l].startOffset<t;){const e=n[l];if(e.startOffset>d&&(d=e.startOffset,c[h++]=new a(d,s,u,g)),!(e.endOffset+1<=t)){d=t,c[h++]=new a(d,s+" "+e.className,u|e.metadata,g);break}d=e.endOffset+1,c[h++]=new a(d,s+" "+e.className,u|e.metadata,g),l++}t>d&&(d=t,c[h++]=new a(d,s,u,g))}const u=i[i.length-1].endIndex;if(l<r&&n[l].startOffset===u)for(;l<r&&n[l].startOffset===u;){const e=n[l];c[h++]=new a(d,e.className,e.metadata,!1),l++}return c}(t,0,l,e.lineDecorations)}e.containsRTL||(l=function(e,t,i){let s=0;const n=[];let r=0;if(i)for(let o=0,l=t.length;o<l;o++){const i=t[o],l=i.endIndex;if(s+50<l){const t=i.type,o=i.metadata,c=i.containsRTL;let h=-1,d=s;for(let i=s;i<l;i++)32===e.charCodeAt(i)&&(h=i),-1!==h&&i-d>=50&&(n[r++]=new a(h+1,t,o,c),d=h+1,h=-1);d!==l&&(n[r++]=new a(l,t,o,c))}else n[r++]=i;s=l}else for(let o=0,l=t.length;o<l;o++){const e=t[o],i=e.endIndex,l=i-s;if(l>50){const t=e.type,o=e.metadata,c=e.containsRTL,h=Math.ceil(l/50);for(let e=1;e<h;e++){const i=s+50*e;n[r++]=new a(i,t,o,c)}n[r++]=new a(i,t,o,c)}else n[r++]=e;s=i}return n}(t,l,!e.isBasicASCII||e.fontLigatures));return new f(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,r,i,s,l,c,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}(e),t)}class p{constructor(e,t,i,s){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=s}}function m(e){const t=new r.fe(1e4),i=g(e,t);return new p(i.characterMapping,t.build(),i.containsRTL,i.containsForeignElements)}class f{constructor(e,t,i,s,n,r,o,a,l,c,h,d,u,g,p,m){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=s,this.isOverflowing=n,this.overflowingCharCount=r,this.parts=o,this.containsForeignElements=a,this.fauxIndentLength=l,this.tabSize=c,this.startVisibleColumn=h,this.containsRTL=d,this.spaceWidth=u,this.renderSpaceCharCode=g,this.renderWhitespace=p,this.renderControlCharacters=m}}function _(e){return e<32?9!==e:127===e||(e>=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e)}function v(e){return e.toString(16).toUpperCase().padStart(4,"0")}},92896:(e,t,i)=>{"use strict";i.d(t,{GP:()=>l,LM:()=>o,Uv:()=>g,kI:()=>h,nt:()=>a,or:()=>d,qL:()=>c,vo:()=>u});var s=i(25890),n=i(91508),r=i(36677);class o{constructor(e,t,i,s){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|s}}class a{constructor(e,t){this.tabSize=e,this.data=t}}class l{constructor(e,t,i,s,n,r,o){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=s,this.startVisibleColumn=n,this.tokens=r,this.inlineDecorations=o}}class c{constructor(e,t,i,s,n,r,o,a,l,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=s,this.isBasicASCII=c.isBasicASCII(i,r),this.containsRTL=c.containsRTL(i,this.isBasicASCII,n),this.tokens=o,this.inlineDecorations=a,this.tabSize=l,this.startVisibleColumn=h}static isBasicASCII(e,t){return!t||n.aC(e)}static containsRTL(e,t,i){return!(t||!i)&&n.E_(e)}}class h{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class d{constructor(e,t,i,s){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=s}toInlineDecoration(e){return new h(new r.Q(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class u{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class g{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static compareByRenderingProps(e,t){return e.zIndex===t.zIndex?e.color<t.color?-1:e.color>t.color?1:0:e.zIndex-t.zIndex}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&s.aI(e.data,t.data)}static equalsArr(e,t){return s.aI(e,t,g.equals)}}},19531:(e,t,i)=>{"use strict";i.d(t,{iE:()=>n,rW:()=>r});class s{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class n{constructor(e,t,i,s){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=s,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class r{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(n.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),i=Math.floor(this.getCanvasHeight()),n=i/Math.floor(this._outerHeight),r=Math.floor(4*this._pixelRatio/2),o=[];for(let a=0,l=this._zones.length;a<l;a++){const l=this._zones[a];if(!e){const e=l.getColorZones();if(e){o.push(e);continue}}const c=this._getVerticalOffsetForLine(l.startLineNumber),h=0===l.heightInLines?this._getVerticalOffsetForLine(l.endLineNumber)+t:c+l.heightInLines*t,d=Math.floor(n*c),u=Math.floor(n*h);let g=Math.floor((d+u)/2),p=u-g;p<r&&(p=r),g-p<0&&(g=p),g+p>i&&(g=i-p);const m=l.color;let f=this._color2Id[m];f||(f=++this._lastAssignedId,this._color2Id[m]=f,this._id2Color[f]=m);const _=new s(g-p,g+p,f);l.setColorZone(_),o.push(_)}return this._colorZonesInvalid=!1,o.sort(s.compare),o}}},32398:(e,t,i)=>{"use strict";i.d(t,{GN:()=>l,UB:()=>a,a6:()=>c,wc:()=>h});var s=i(83069),n=i(36677),r=i(92896),o=i(87908);class a{constructor(e,t,i,s,n){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=s,this._coordinatesConverter=n,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const o=e.range,a=e.options;let l;if(a.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new s.y(o.startLineNumber,1),0,!1,!0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new s.y(o.endLineNumber,this.model.getLineMaxColumn(o.endLineNumber)),1);l=new n.Q(e.lineNumber,e.column,t.lineNumber,t.column)}else l=this._coordinatesConverter.convertModelRangeToViewRange(o,1);i=new r.vo(l,a),this._decorationsCache[t]=i}return i}getMinimapDecorationsInRange(e){return this._getDecorationsInRange(e,!0,!1).decorations}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e,!1,!1),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e,t=!1,i=!1){const s=new n.Q(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(s,t,i).inlineDecorations[0]}_getDecorationsInRange(e,t,i){const s=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,o.$C)(this.configuration.options),t,i),a=e.startLineNumber,c=e.endLineNumber,h=[];let d=0;const u=[];for(let n=a;n<=c;n++)u[n-a]=[];for(let o=0,g=s.length;o<g;o++){const e=s[o],t=e.options;if(!l(this.model,e))continue;const i=this._getOrCreateViewModelDecoration(e),g=i.range;if(h[d++]=i,t.inlineClassName){const e=new r.kI(g,t.inlineClassName,t.inlineClassNameAffectsLetterSpacing?3:0),i=Math.max(a,g.startLineNumber),s=Math.min(c,g.endLineNumber);for(let t=i;t<=s;t++)u[t-a].push(e)}if(t.beforeContentClassName&&a<=g.startLineNumber&&g.startLineNumber<=c){const e=new r.kI(new n.Q(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn),t.beforeContentClassName,1);u[g.startLineNumber-a].push(e)}if(t.afterContentClassName&&a<=g.endLineNumber&&g.endLineNumber<=c){const e=new r.kI(new n.Q(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn),t.afterContentClassName,2);u[g.endLineNumber-a].push(e)}}return{decorations:h,inlineDecorations:u}}}function l(e,t){return(!t.options.hideInCommentTokens||!c(e,t))&&(!t.options.hideInStringTokens||!h(e,t))}function c(e,t){return d(e,t.range,(e=>1===e))}function h(e,t){return d(e,t.range,(e=>2===e))}function d(e,t,i){for(let s=t.startLineNumber;s<=t.endLineNumber;s++){const n=e.tokenization.getLineTokens(s),r=s===t.startLineNumber,o=s===t.endLineNumber;let a=r?n.findTokenIndexAtOffset(t.startColumn-1):0;for(;a<n.getCount();){if(o){if(n.getStartOffset(a)>t.endColumn-1)break}if(!i(n.getStandardTokenType(a)))return!1;a++}}return!0}},44915:(e,t,i)=>{"use strict";var s,n=i(11007),r=i(16980),o=i(24939),a=i(31450),l=i(75326),c=i(60002),h=i(78209),d=i(32848),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=new d.N1("selectionAnchorSet",!1);let m=class{static{s=this}static{this.ID="editor.contrib.selectionAnchorController"}static get(e){return e.getContribution(s.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=p.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations((t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(l.L.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:(new r.Bc).appendText((0,h.kg)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})})),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,n.xE)((0,h.kg)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(l.L.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations((t=>{t.removeDecoration(e),this.decorationId=void 0})),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};m=s=u([g(1,d.fN)],m);class f extends a.ks{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,h.kg)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:c.R.editorTextFocus,primary:(0,o.m5)(2089,2080),weight:100}})}async run(e,t){m.get(t)?.setSelectionAnchor()}}class _ extends a.ks{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,h.kg)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:p})}async run(e,t){m.get(t)?.goToSelectionAnchor()}}class v extends a.ks{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,h.kg)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:p,kbOpts:{kbExpr:c.R.editorTextFocus,primary:(0,o.m5)(2089,2089),weight:100}})}async run(e,t){m.get(t)?.selectFromAnchorToCursor()}}class C extends a.ks{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,h.kg)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:p,kbOpts:{kbExpr:c.R.editorTextFocus,primary:9,weight:100}})}async run(e,t){m.get(t)?.cancelSelectionAnchor()}}(0,a.HW)(m.ID,m,4),(0,a.Fl)(f),(0,a.Fl)(_),(0,a.Fl)(v),(0,a.Fl)(C)},88952:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(83069),a=i(36677),l=i(75326),c=i(60002),h=i(16223),d=i(87289),u=i(78209),g=i(27195),p=i(66261),m=i(47612);const f=(0,p.x1A)("editorOverviewRuler.bracketMatchForeground","#A0A0A0",u.kg("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class _ extends r.ks{constructor(){super({id:"editor.action.jumpToBracket",label:u.kg("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:c.R.editorTextFocus,primary:3165,weight:100}})}run(e,t){E.get(t)?.jumpToBracket()}}class v extends r.ks{constructor(){super({id:"editor.action.selectToBracket",label:u.kg("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:u.aS("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){let s=!0;i&&!1===i.selectBrackets&&(s=!1),E.get(t)?.selectToBracket(s)}}class C extends r.ks{constructor(){super({id:"editor.action.removeBrackets",label:u.kg("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:c.R.editorTextFocus,primary:2561,weight:100}})}run(e,t){E.get(t)?.removeBrackets(this.id)}}class b{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class E extends n.jG{static{this.ID="editor.contrib.bracketMatchingController"}static get(e){return e.getContribution(E.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new s.uC((()=>this._updateBrackets()),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition((e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelContent((e=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModel((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelLanguageConfiguration((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))),this._register(e.onDidBlurEditorWidget((()=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidFocusEditorWidget((()=>{this._updateBracketsSoon.schedule()})))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map((t=>{const i=t.getStartPosition(),s=e.bracketPairs.matchBracket(i);let n=null;if(s)s[0].containsPosition(i)&&!s[1].containsPosition(i)?n=s[1].getStartPosition():s[1].containsPosition(i)&&(n=s[0].getStartPosition());else{const t=e.bracketPairs.findEnclosingBrackets(i);if(t)n=t[1].getStartPosition();else{const t=e.bracketPairs.findNextBracket(i);t&&t.range&&(n=t.range.getStartPosition())}}return n?new l.L(n.lineNumber,n.column,n.lineNumber,n.column):new l.L(i.lineNumber,i.column,i.lineNumber,i.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach((s=>{const n=s.getStartPosition();let r=t.bracketPairs.matchBracket(n);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(n),!r)){const e=t.bracketPairs.findNextBracket(n);e&&e.range&&(r=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let o=null,c=null;if(r){r.sort(a.Q.compareRangesUsingStarts);const[t,i]=r;if(o=e?t.getStartPosition():t.getEndPosition(),c=e?i.getEndPosition():i.getStartPosition(),i.containsPosition(n)){const e=o;o=c,c=e}}o&&c&&i.push(new l.L(o.lineNumber,o.column,c.lineNumber,c.column))})),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach((i=>{const s=i.getPosition();let n=t.bracketPairs.matchBracket(s);n||(n=t.bracketPairs.findEnclosingBrackets(s)),n&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:n[0],text:""},{range:n[1],text:""}]),this._editor.pushUndoStop())}))}static{this._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=d.kI.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:(0,m.Yf)(f),position:h.A5.Center}})}static{this._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=d.kI.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"})}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const s=i.brackets;s&&(e[t++]={range:s[0],options:i.options},e[t++]={range:s[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),i=t.getVersionId();let s=[];this._lastVersionId===i&&(s=this._lastBracketsData);const n=[];let r=0;for(let o=0,d=e.length;o<d;o++){const t=e[o];t.isEmpty()&&(n[r++]=t.getStartPosition())}n.length>1&&n.sort(o.y.compare);const a=[];let l=0,c=0;const h=s.length;for(let o=0,d=n.length;o<d;o++){const e=n[o];for(;c<h&&s[c].position.isBefore(e);)c++;if(c<h&&s[c].position.equals(e))a[l++]=s[c];else{let i=t.bracketPairs.matchBracket(e,20),s=E._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;i||"always"!==this._matchBrackets||(i=t.bracketPairs.findEnclosingBrackets(e,20),s=E._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new b(e,i,s)}}this._lastBracketsData=a,this._lastVersionId=i}}(0,r.HW)(E.ID,E,1),(0,r.Fl)(v),(0,r.Fl)(_),(0,r.Fl)(C),g.ZG.appendMenuItem(g.D8.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:u.kg({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},58590:(e,t,i)=>{"use strict";var s=i(31450),n=i(60002),r=i(36677),o=i(75326);class a{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,s=this._selection.startColumn,n=this._selection.endColumn;if((!this._isMovingLeft||1!==s)&&(this._isMovingLeft||n!==e.getLineMaxColumn(i)))if(this._isMovingLeft){const o=new r.Q(i,s-1,i,s),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new r.Q(i,n,i,n),a)}else{const o=new r.Q(i,n,i,n+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new r.Q(i,s,i,s),a)}}computeCursorState(e,t){return this._isMovingLeft?new o.L(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new o.L(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}var l=i(78209);class c extends s.ks{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],s=t.getSelections();for(const n of s)i.push(new a(n,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,s.Fl)(class extends c{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:l.kg("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:n.R.writable})}}),(0,s.Fl)(class extends c{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:l.kg("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:n.R.writable})}})},6438:(e,t,i)=>{"use strict";var s=i(31450),n=i(15092),r=i(94564),o=i(36677),a=i(60002),l=i(78209);class c extends s.ks{constructor(){super({id:"editor.action.transposeLetters",label:l.kg("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:a.R.writable,kbOpts:{kbExpr:a.R.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),s=[],a=t.getSelections();for(const l of a){if(!l.isEmpty())continue;const e=l.startLineNumber,t=l.startColumn,a=i.getLineMaxColumn(e);if(1===e&&(1===t||2===t&&2===a))continue;const c=t===a?l.getPosition():r.I.rightPosition(i,l.getPosition().lineNumber,l.getPosition().column),h=r.I.leftPosition(i,c),d=r.I.leftPosition(i,h),u=i.getValueInRange(o.Q.fromPositions(d,h)),g=i.getValueInRange(o.Q.fromPositions(h,c)),p=o.Q.fromPositions(d,c);s.push(new n.iu(p,g+u))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}(0,s.Fl)(c)},94908:(e,t,i)=>{"use strict";var s=i(60413),n=i(8597),r=i(98067),o=i(68792),a=i(31450),l=i(80301),c=i(60002),h=i(55433),d=i(78209),u=i(27195),g=i(54770),p=i(32848);const m="9_cutcopypaste",f=r.ib||document.queryCommandSupported("cut"),_=r.ib||document.queryCommandSupported("copy"),v="undefined"!==typeof navigator.clipboard&&!s.gm||document.queryCommandSupported("paste");function C(e){return e.register(),e}const b=f?C(new a.fE({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:r.ib?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.cutLabel","Cut"),when:c.R.writable,order:1},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.cutLabel","Cut"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.cutLabel","Cut"),when:c.R.writable,order:1}]})):void 0,E=_?C(new a.fE({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:r.ib?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.copyLabel","Copy"),order:2},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.copyLabel","Copy"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;u.ZG.appendMenuItem(u.D8.MenubarEditMenu,{submenu:u.D8.MenubarCopy,title:d.aS("copy as","Copy As"),group:"2_ccp",order:3}),u.ZG.appendMenuItem(u.D8.EditorContext,{submenu:u.D8.EditorContextCopy,title:d.aS("copy as","Copy As"),group:m,order:3}),u.ZG.appendMenuItem(u.D8.EditorContext,{submenu:u.D8.EditorContextShare,title:d.aS("share","Share"),group:"11_share",order:-1,when:p.M$.and(p.M$.notEquals("resourceScheme","output"),c.R.editorTextFocus)}),u.ZG.appendMenuItem(u.D8.ExplorerContext,{submenu:u.D8.ExplorerContextShare,title:d.aS("share","Share"),group:"11_share",order:-1});const S=v?C(new a.fE({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:r.ib?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:d.kg({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:u.D8.EditorContext,group:m,title:d.kg("actions.clipboard.pasteLabel","Paste"),when:c.R.writable,order:4},{menuId:u.D8.CommandPalette,group:"",title:d.kg("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:d.kg("actions.clipboard.pasteLabel","Paste"),when:c.R.writable,order:4}]})):void 0;class y extends a.ks{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:d.kg("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:c.R.textInputFocus,primary:0,weight:100}})}run(e,t){if(!t.hasModel())return;!t.getOption(37)&&t.getSelection().isEmpty()||(o.Eq.forceCopyWithSyntaxHighlighting=!0,t.focus(),t.getContainerDomNode().ownerDocument.execCommand("copy"),o.Eq.forceCopyWithSyntaxHighlighting=!1)}}function w(e,t){e&&(e.addImplementation(1e4,"code-editor",((e,i)=>{const s=e.get(l.T).getFocusedCodeEditor();if(s&&s.hasTextFocus()){const e=s.getOption(37),i=s.getSelection();return i&&i.isEmpty()&&!e||s.getContainerDomNode().ownerDocument.execCommand(t),!0}return!1})),e.addImplementation(0,"generic-dom",((e,i)=>((0,n.a)().execCommand(t),!0))))}w(b,"cut"),w(E,"copy"),S&&(S.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(l.T),s=e.get(g.h),n=i.getFocusedCodeEditor();if(n&&n.hasTextFocus()){return n.getContainerDomNode().ownerDocument.execCommand("paste")?h.Rj.get(n)?.finishedPaste()??Promise.resolve():!r.HZ||(async()=>{const e=await s.readText();if(""!==e){const t=o.bs.INSTANCE.get(e);let i=!1,s=null,r=null;t&&(i=n.getOption(37)&&!!t.isFromEmptySelection,s="undefined"!==typeof t.multicursorText?t.multicursorText:null,r=t.mode),n.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:s,mode:r})}})()}return!1})),S.addImplementation(0,"generic-dom",((e,t)=>((0,n.a)().execCommand("paste"),!0)))),_&&(0,a.Fl)(y)},55130:(e,t,i)=>{"use strict";i.d(t,{C9:()=>L,Qp:()=>I,Rw:()=>T,Uy:()=>R,W4:()=>O,Xj:()=>w,dU:()=>A,k_:()=>E,pQ:()=>S,pR:()=>y});var s=i(25890),n=i(18447),r=i(64383),o=i(5662),a=i(79400),l=i(80537),c=i(36677),h=i(75326),d=i(56942),u=i(23750),g=i(50868),p=i(78209),m=i(50091),f=i(58591),_=i(73823),v=i(90651),C=i(61407),b=i(8995);const E="editor.action.codeAction",S="editor.action.quickFix",y="editor.action.autoFix",w="editor.action.refactor",L="editor.action.sourceAction",R="editor.action.organizeImports",T="editor.action.fixAll";class x extends o.jG{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return e.isAI&&!t.isAI?1:!e.isAI&&t.isAI?-1:(0,s.EI)(e.diagnostics)?(0,s.EI)(t.diagnostics)?x.codeActionsPreferredComparator(e,t):-1:(0,s.EI)(t.diagnostics)?1:x.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(x.codeActionsComparator),this.validActions=this.allActions.filter((({action:e})=>!e.disabled))}get hasAutoFix(){return this.validActions.some((({action:e})=>!!e.kind&&C.gB.QuickFix.contains(new b.k(e.kind))&&!!e.isPreferred))}get hasAIFix(){return this.validActions.some((({action:e})=>!!e.isAI))}get allAIFixes(){return this.validActions.every((({action:e})=>!!e.isAI))}}const k={actions:[],documentation:void 0};async function A(e,t,i,n,a,l){const c=n.filter||{},h={...c,excludes:[...c.excludes||[],C.gB.Notebook]},d={only:c.include?.value,trigger:n.type},u=new g.ER(t,l),p=2===n.type,m=function(e,t,i){return e.all(t).filter((e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some((e=>(0,C.uJ)(i,new b.k(e))))))}(e,t,p?h:c),f=new o.Cm,_=m.map((async e=>{try{a.report(e);const s=await e.provideCodeActions(t,i,d,u.token);if(s&&f.add(s),u.token.isCancellationRequested)return k;const n=(s?.actions||[]).filter((e=>e&&(0,C.aF)(c,e))),r=function(e,t,i){if(!e.documentation)return;const s=e.documentation.map((e=>({kind:new b.k(e.kind),command:e.command})));if(i){let e;for(const t of s)t.kind.contains(i)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return e?.command}for(const n of t)if(n.kind)for(const e of s)if(e.kind.contains(new b.k(n.kind)))return e.command;return}(e,n,c.include);return{actions:n.map((t=>new C.Vi(t,e))),documentation:r}}catch(s){if((0,r.MB)(s))throw s;return(0,r.M_)(s),k}})),v=e.onDidChange((()=>{const i=e.all(t);(0,s.aI)(i,m)||u.cancel()}));try{const i=await Promise.all(_),r=i.map((e=>e.actions)).flat(),o=[...(0,s.Yc)(i.map((e=>e.documentation))),...N(e,t,n,r)];return new x(r,o,f)}finally{v.dispose(),u.dispose()}}function*N(e,t,i,s){if(t&&s.length)for(const n of e.all(t))n._getAdditionalMenuItems&&(yield*n._getAdditionalMenuItems?.({trigger:i.type,only:i.filter?.include?.value},s.map((e=>e.action))))}var I;async function O(e,t,i,s,r=n.XO.None){const o=e.get(l.nu),a=e.get(m.d),c=e.get(v.k),h=e.get(f.Ot);if(c.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:i}),await t.resolve(r),!r.isCancellationRequested){if(t.action.edit?.edits.length){if(!(await o.apply(t.action.edit,{editor:s?.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:i!==I.OnSave,showPreview:s?.preview})).isApplied)return}if(t.action.command)try{await a.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(d){const e=function(e){return"string"===typeof e?e:e instanceof Error&&"string"===typeof e.message?e.message:void 0}(d);h.error("string"===typeof e?e:p.kg("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}}!function(e){e.OnSave="onSave",e.FromProblemsView="fromProblemsView",e.FromCodeActions="fromCodeActions",e.FromAILightbulb="fromAILightbulb"}(I||(I={})),m.w.registerCommand("_executeCodeActionProvider",(async function(e,t,i,s,o){if(!(t instanceof a.r))throw(0,r.Qg)();const{codeActionProvider:l}=e.get(d.ILanguageFeaturesService),g=e.get(u.IModelService).getModel(t);if(!g)throw(0,r.Qg)();const p=h.L.isISelection(i)?h.L.liftSelection(i):c.Q.isIRange(i)?g.validateRange(i):void 0;if(!p)throw(0,r.Qg)();const m="string"===typeof s?new b.k(s):void 0,f=await A(l,g,p,{type:1,triggerAction:C.fo.Default,filter:{includeSourceActions:!0,include:m}},_.ke.None,n.XO.None),v=[],E=Math.min(f.validActions.length,"number"===typeof o?o:0);for(let r=0;r<E;r++)v.push(f.validActions[r].resolve(n.XO.None));try{return await Promise.all(v),f.validActions.map((e=>e.action))}finally{setTimeout((()=>f.dispose()),100)}}))},4836:(e,t,i)=>{"use strict";var s=i(31450),n=i(94371),r=i(8995),o=i(91508),a=i(60002),l=i(55130),c=i(78209),h=i(32848),d=i(61407),u=i(71933),g=i(59473);function p(e){return h.M$.regex(g.D_.keys()[0],new RegExp("(\\s|^)"+(0,o.bm)(e.value)+"\\b"))}const m={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:c.kg("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:c.kg("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[c.kg("args.schema.apply.first","Always apply the first returned code action."),c.kg("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),c.kg("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:c.kg("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function f(e,t,i,s,n=d.fo.Default){if(e.hasModel()){const r=u.C.get(e);r?.manualTriggerAtCurrentPosition(t,n,i,s)}}class _ extends s.ks{constructor(){super({id:l.pQ,label:c.kg("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),kbOpts:{kbExpr:a.R.textInputFocus,primary:2137,weight:100}})}run(e,t){return f(t,c.kg("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,d.fo.QuickFix)}}class v extends s.DX{constructor(){super({id:l.k_,precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:m}]}})}runEditorCommand(e,t,i){const s=d.QA.fromUser(i,{kind:r.k.Empty,apply:"ifSingle"});return f(t,"string"===typeof i?.kind?s.preferred?c.kg("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):c.kg("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):s.preferred?c.kg("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):c.kg("editor.action.codeAction.noneMessage","No code actions available"),{include:s.kind,includeSourceActions:!0,onlyIncludePreferredActions:s.preferred},s.apply)}}class C extends s.ks{constructor(){super({id:l.Xj,label:c.kg("refactor.label","Refactor..."),alias:"Refactor...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),kbOpts:{kbExpr:a.R.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:h.M$.and(a.R.writable,p(d.gB.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:m}]}})}run(e,t,i){const s=d.QA.fromUser(i,{kind:d.gB.Refactor,apply:"never"});return f(t,"string"===typeof i?.kind?s.preferred?c.kg("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):c.kg("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):s.preferred?c.kg("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):c.kg("editor.action.refactor.noneMessage","No refactorings available"),{include:d.gB.Refactor.contains(s.kind)?s.kind:r.k.None,onlyIncludePreferredActions:s.preferred},s.apply,d.fo.Refactor)}}class b extends s.ks{constructor(){super({id:l.C9,label:c.kg("source.label","Source Action..."),alias:"Source Action...",precondition:h.M$.and(a.R.writable,a.R.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:h.M$.and(a.R.writable,p(d.gB.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:m}]}})}run(e,t,i){const s=d.QA.fromUser(i,{kind:d.gB.Source,apply:"never"});return f(t,"string"===typeof i?.kind?s.preferred?c.kg("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):c.kg("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):s.preferred?c.kg("editor.action.source.noneMessage.preferred","No preferred source actions available"):c.kg("editor.action.source.noneMessage","No source actions available"),{include:d.gB.Source.contains(s.kind)?s.kind:r.k.None,includeSourceActions:!0,onlyIncludePreferredActions:s.preferred},s.apply,d.fo.SourceAction)}}class E extends s.ks{constructor(){super({id:l.Uy,label:c.kg("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:h.M$.and(a.R.writable,p(d.gB.SourceOrganizeImports)),kbOpts:{kbExpr:a.R.textInputFocus,primary:1581,weight:100}})}run(e,t){return f(t,c.kg("editor.action.organize.noneMessage","No organize imports action available"),{include:d.gB.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",d.fo.OrganizeImports)}}class S extends s.ks{constructor(){super({id:l.Rw,label:c.kg("fixAll.label","Fix All"),alias:"Fix All",precondition:h.M$.and(a.R.writable,p(d.gB.SourceFixAll))})}run(e,t){return f(t,c.kg("fixAll.noneMessage","No fix all action available"),{include:d.gB.SourceFixAll,includeSourceActions:!0},"ifSingle",d.fo.FixAll)}}class y extends s.ks{constructor(){super({id:l.pR,label:c.kg("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:h.M$.and(a.R.writable,p(d.gB.QuickFix)),kbOpts:{kbExpr:a.R.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return f(t,c.kg("editor.action.autoFix.noneMessage","No auto fixes available"),{include:d.gB.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",d.fo.AutoFix)}}var w=i(96758),L=i(1646),R=i(46359);(0,s.HW)(u.C.ID,u.C,3),(0,s.HW)(w.E.ID,w.E,4),(0,s.Fl)(_),(0,s.Fl)(C),(0,s.Fl)(b),(0,s.Fl)(E),(0,s.Fl)(y),(0,s.Fl)(S),(0,s.E_)(new v),R.O.as(L.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:c.kg("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}),R.O.as(L.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:c.kg("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}}),R.O.as(L.Fd.Configuration).registerConfiguration({...n.JJ,properties:{"editor.codeActions.triggerOnFocusChange":{type:"boolean",scope:5,markdownDescription:c.kg("triggerOnFocusChange","Enable triggering {0} when {1} is set to {2}. Code Actions must be set to {3} to be triggered for window and focus changes.","`#editor.codeActionsOnSave#`","`#files.autoSave#`","`afterDelay`","`always`"),default:!1}}})},71933:(e,t,i)=>{"use strict";i.d(t,{C:()=>ue});var s,n=i(8597),r=i(11007),o=i(64383),a=i(91090),l=i(5662),c=i(83069),h=i(87289),d=i(56942),u=i(55130),g=i(8995),p=i(61407),m=i(98031),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{static{s=this}static{this.codeActionCommands=[u.Xj,u.k_,u.C9,u.Uy,u.Rw]}constructor(e){this.keybindingService=e}getResolver(){const e=new a.d((()=>this.keybindingService.getKeybindings().filter((e=>s.codeActionCommands.indexOf(e.command)>=0)).filter((e=>e.resolvedKeybinding)).map((e=>{let t=e.commandArgs;return e.command===u.Uy?t={kind:p.gB.SourceOrganizeImports.value}:e.command===u.Rw&&(t={kind:p.gB.SourceFixAll.value}),{resolvedKeybinding:e.resolvedKeybinding,...p.QA.fromUser(t,{kind:g.k.None,apply:"never"})}}))));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i?.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new g.k(e.kind);return t.filter((e=>e.kind.contains(i))).filter((t=>!t.preferred||e.isPreferred)).reduceRight(((e,t)=>e?e.kind.contains(t.kind)?t:e:t),void 0)}};v=s=f([_(0,m.b)],v);i(97791);var C=i(10350),b=(i(93409),i(78209));const E=Object.freeze({kind:g.k.Empty,title:(0,b.kg)("codeAction.widget.id.more","More Actions...")}),S=Object.freeze([{kind:p.gB.QuickFix,title:(0,b.kg)("codeAction.widget.id.quickfix","Quick Fix")},{kind:p.gB.RefactorExtract,title:(0,b.kg)("codeAction.widget.id.extract","Extract"),icon:C.W.wrench},{kind:p.gB.RefactorInline,title:(0,b.kg)("codeAction.widget.id.inline","Inline"),icon:C.W.wrench},{kind:p.gB.RefactorRewrite,title:(0,b.kg)("codeAction.widget.id.convert","Rewrite"),icon:C.W.wrench},{kind:p.gB.RefactorMove,title:(0,b.kg)("codeAction.widget.id.move","Move"),icon:C.W.wrench},{kind:p.gB.SurroundWith,title:(0,b.kg)("codeAction.widget.id.surround","Surround With"),icon:C.W.surroundWith},{kind:p.gB.Source,title:(0,b.kg)("codeAction.widget.id.source","Source Action"),icon:C.W.symbolFile},E]);var y=i(96758),w=i(99645),L=i(11799),R=i(47625),T=i(93090),x=i(18447),k=i(98067),A=i(25689),N=i(47508),I=i(19070),O=i(66261),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},M=function(e,t){return function(i,s){t(i,s,e)}};const P="acceptSelectedCodeAction",F="previewSelectedCodeAction";class U{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){i.text.textContent=e.group?.title??""}disposeTemplate(e){}}let H=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);return{container:e,icon:t,text:i,keybinding:new R.x(e,k.OS)}}renderElement(e,t,i){if(e.group?.icon?(i.icon.className=A.L.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=(0,O.GuP)(e.group.icon.color.id))):(i.icon.className=A.L.asClassName(C.W.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=G(e.label),i.keybinding.set(e.keybinding),n.bo(!!e.keybinding,i.keybinding.element);const s=this._keybindingService.lookupKeybinding(P)?.getLabel(),r=this._keybindingService.lookupKeybinding(F)?.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:s&&r?this._supportsPreview&&e.canPreview?i.container.title=(0,b.kg)({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",s,r):i.container.title=(0,b.kg)({key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",s):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};H=D([M(1,m.b)],H);class B extends UIEvent{constructor(){super("acceptSelectedAction")}}class W extends UIEvent{constructor(){super("previewSelectedAction")}}function V(e){if("action"===e.kind)return e.label}let z=class extends l.jG{constructor(e,t,i,s,n,r){super(),this._delegate=s,this._contextViewService=n,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new x.Qi),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const o={getHeight:e=>"header"===e.kind?this._headerLineHeight:this._actionLineHeight,getTemplateId:e=>e.kind};this._list=this._register(new T.B8(e,this.domNode,o,[new H(t,this._keybindingService),new U],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:V},accessibilityProvider:{getAriaLabel:e=>{if("action"===e.kind){let t=e.label?G(e?.label):"";return e.disabled&&(t=(0,b.kg)({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",t,e.disabled)),t}return null},getWidgetAriaLabel:()=>(0,b.kg)({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:e=>"action"===e.kind?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(I.IN),this._register(this._list.onMouseClick((e=>this.onListClick(e)))),this._register(this._list.onMouseOver((e=>this.onListHover(e)))),this._register(this._list.onDidChangeFocus((()=>this.onFocus()))),this._register(this._list.onDidChangeSelection((e=>this.onListSelection(e)))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&"action"===e.kind}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter((e=>"header"===e.kind)).length,i=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(i);let s=e;if(this._allMenuItems.length>=50)s=380;else{const t=this._allMenuItems.map(((e,t)=>{const i=this.domNode.ownerDocument.getElementById(this._list.getElementID(t));if(i){i.style.width="auto";const e=i.getBoundingClientRect().width;return i.style.width="",e}return 0}));s=Math.max(...t,e)}const n=Math.min(i,.7*this.domNode.ownerDocument.body.clientHeight);return this._list.layout(n,s),this.domNode.style.height=`${n}px`,this._list.domFocus(),s}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(0===t.length)return;const i=t[0],s=this._list.element(i);if(!this.focusCondition(s))return;const n=e?new W:new B;this._list.setSelection([i],n)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof W):this._list.setSelection([])}onFocus(){const e=this._list.getFocus();if(0===e.length)return;const t=e[0],i=this._list.element(t);this._delegate.onFocus?.(i.item)}async onListHover(e){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&"action"===t.kind){const e=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=e?e.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus("number"===typeof e.index?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};function G(e){return e.replace(/\r\n|\r|\n/g," ")}z=D([M(4,N.l),M(5,m.b)],z);var j=i(27195),K=i(32848),Y=i(14718),q=i(63591),$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};(0,O.x1A)("actionBar.toggledBackground",O.c1f,(0,b.kg)("actionBar.toggledBackground","Background color for toggled action items in action bar."));const X={Visible:new K.N1("codeActionMenuVisible",!1,(0,b.kg)("codeActionMenuVisible","Whether the action widget list is visible"))},Z=(0,q.u1)("actionWidgetService");let J=class extends l.jG{get isVisible(){return X.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new l.HE)}show(e,t,i,s,n,r,o){const a=X.Visible.bindTo(this._contextKeyService),l=this._instantiationService.createInstance(z,e,t,i,s);this._contextViewService.showContextView({getAnchor:()=>n,render:e=>(a.set(!0),this._renderWidget(e,l,o??[])),onHide:e=>{a.reset(),this._onWidgetClosed(e)}},r,!1)}acceptSelected(e){this._list.value?.acceptSelected(e)}focusPrevious(){this._list?.value?.focusPrevious()}focusNext(){this._list?.value?.focusNext()}hide(e){this._list.value?.hide(e),this._list.clear()}_renderWidget(e,t,i){const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,!this._list.value)throw new Error("List has no value");s.appendChild(this._list.value.domNode);const r=new l.Cm,o=document.createElement("div"),a=e.appendChild(o);a.classList.add("context-view-block"),r.add(n.ko(a,n.Bx.MOUSE_DOWN,(e=>e.stopPropagation())));const c=document.createElement("div"),h=e.appendChild(c);h.classList.add("context-view-pointerBlock"),r.add(n.ko(h,n.Bx.POINTER_MOVE,(()=>h.remove()))),r.add(n.ko(h,n.Bx.MOUSE_DOWN,(()=>h.remove())));let d=0;if(i.length){const e=this._createActionBar(".action-widget-action-bar",i);e&&(s.appendChild(e.getContainer().parentElement),r.add(e),d=e.getContainer().offsetWidth)}const u=this._list.value?.layout(d);s.style.width=`${u}px`;const g=r.add(n.w5(e));return r.add(g.onDidBlur((()=>this.hide(!0)))),r}_createActionBar(e,t){if(!t.length)return;const i=n.$(e),s=new L.E(i);return s.push(t,{icon:!1,label:!0}),s}_onWidgetClosed(e){this._list.value?.hide(e)}};J=$([Q(0,N.l),Q(1,K.fN),Q(2,q._Y)],J),(0,Y.v)(Z,J,1);const ee=1100;(0,j.ug)(class extends j.L{constructor(){super({id:"hideCodeActionWidget",title:(0,b.aS)("hideCodeActionWidget.title","Hide action widget"),precondition:X.Visible,keybinding:{weight:ee,primary:9,secondary:[1033]}})}run(e){e.get(Z).hide(!0)}}),(0,j.ug)(class extends j.L{constructor(){super({id:"selectPrevCodeAction",title:(0,b.aS)("selectPrevCodeAction.title","Select previous action"),precondition:X.Visible,keybinding:{weight:ee,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(e){const t=e.get(Z);t instanceof J&&t.focusPrevious()}}),(0,j.ug)(class extends j.L{constructor(){super({id:"selectNextCodeAction",title:(0,b.aS)("selectNextCodeAction.title","Select next action"),precondition:X.Visible,keybinding:{weight:ee,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(e){const t=e.get(Z);t instanceof J&&t.focusNext()}}),(0,j.ug)(class extends j.L{constructor(){super({id:P,title:(0,b.aS)("acceptSelected.title","Accept selected action"),precondition:X.Visible,keybinding:{weight:ee,primary:3,secondary:[2137]}})}run(e){const t=e.get(Z);t instanceof J&&t.acceptSelected()}}),(0,j.ug)(class extends j.L{constructor(){super({id:F,title:(0,b.aS)("previewSelected.title","Preview selected action"),precondition:X.Visible,keybinding:{weight:ee,primary:2051}})}run(e){const t=e.get(Z);t instanceof J&&t.acceptSelected(!0)}});var te,ie=i(50091),se=i(84001),ne=i(75147),re=i(73823),oe=i(86723),ae=i(47612),le=i(59473),ce=i(90651),he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends l.jG{static{te=this}static{this.ID="editor.contrib.codeActionController"}static get(e){return e.getContribution(te.ID)}constructor(e,t,i,s,n,r,o,c,h,d,u){super(),this._commandService=o,this._configurationService=c,this._actionWidgetService=h,this._instantiationService=d,this._telemetryService=u,this._activeCodeActions=this._register(new l.HE),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new le.Dc(this._editor,n.codeActionProvider,t,i,r,c,this._telemetryService)),this._register(this._model.onDidChangeState((e=>this.update(e)))),this._lightBulbWidget=new a.d((()=>{const e=this._editor.getContribution(y.E.ID);return e&&this._register(e.onClick((e=>this.showCodeActionsFromLightbulb(e.actions,e)))),e})),this._resolver=s.createInstance(v),this._register(this._editor.onDidLayoutChange((()=>this._actionWidgetService.hide())))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(e,t){if(e.allAIFixes&&1===e.validActions.length){const t=e.validActions[0],i=t.action.command;return i&&"inlineChat.start"===i.id&&i.arguments&&i.arguments.length>=1&&(i.arguments[0]={...i.arguments[0],autoSend:!1}),void await this._applyCodeAction(t,!1,!1,u.Qp.FromAILightbulb)}await this.showCodeActionList(e,t,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(e,t,i){return this.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,s){if(!this._editor.hasModel())return;w.k.get(this._editor)?.closeMessage();const n=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:s,context:{notAvailableMessage:e,position:n}})}_trigger(e){return this._model.trigger(e)}async _applyCodeAction(e,t,i,s){try{await this._instantiationService.invokeFunction(u.W4,e,s,{preview:i,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:p.fo.QuickFix,filter:{}})}}hideLightBulbWidget(){this._lightBulbWidget.rawValue?.hide(),this._lightBulbWidget.rawValue?.gutterHide()}async update(e){if(1!==e.type)return void this.hideLightBulbWidget();let t;try{t=await e.actions}catch(s){return void(0,o.dz)(s)}if(this._disposed)return;const i=this._editor.getSelection();if(i?.startLineNumber===e.position.lineNumber)if(this._lightBulbWidget.value?.update(t,e.trigger,e.position),1===e.trigger.type){if(e.trigger.filter?.include){const i=this.tryGetValidActionToApply(e.trigger,t);if(i){try{this.hideLightBulbWidget(),await this._applyCodeAction(i,!1,!1,u.Qp.FromCodeActions)}finally{t.dispose()}return}if(e.trigger.context){const i=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,t);if(i&&i.action.disabled)return w.k.get(this._editor)?.showMessage(i.action.disabled,e.trigger.context.position),void t.dispose()}}const i=!!e.trigger.filter?.include;if(e.trigger.context&&(!t.allActions.length||!i&&!t.validActions.length))return w.k.get(this._editor)?.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=t,void t.dispose();this._activeCodeActions.value=t,this.showCodeActionList(t,this.toCoords(e.position),{includeDisabledActions:i,fromLightbulb:!1})}else this._actionWidgetService.isVisible?t.dispose():this._activeCodeActions.value=t}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find((({action:e})=>e.disabled)):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}static{this.DECORATION=h.kI.register({description:"quickfix-highlight",className:"quickfix-edit-highlight"})}async showCodeActionList(e,t,i){const s=this._editor.createDecorationsCollection(),n=this._editor.getDomNode();if(!n)return;const o=i.includeDisabledActions&&(this._showDisabled||0===e.validActions.length)?e.allActions:e.validActions;if(!o.length)return;const a=c.y.isIPosition(t)?this.toCoords(t):t,l={onSelect:async(e,t)=>{this._applyCodeAction(e,!0,!!t,i.fromLightbulb?u.Qp.FromAILightbulb:u.Qp.FromCodeActions),this._actionWidgetService.hide(!1),s.clear()},onHide:e=>{this._editor?.focus(),s.clear()},onHover:async(e,t)=>{if(t.isCancellationRequested)return;let i=!1;const s=e.action.kind;if(s){const e=new g.k(s);i=[p.gB.RefactorExtract,p.gB.RefactorInline,p.gB.RefactorRewrite,p.gB.RefactorMove,p.gB.Source].some((t=>t.contains(e)))}return{canPreview:i||!!e.action.edit?.edits.length}},onFocus:e=>{if(e&&e.action){const t=e.action.ranges,i=e.action.diagnostics;if(s.clear(),t&&t.length>0){const e=i&&i?.length>1?i.map((e=>({range:e,options:te.DECORATION}))):t.map((e=>({range:e,options:te.DECORATION})));s.set(e)}else if(i&&i.length>0){const e=i.map((e=>({range:e,options:te.DECORATION})));s.set(e);const t=i[0];if(t.startLineNumber&&t.startColumn){const e=this._editor.getModel()?.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn})?.word;r.h5((0,b.kg)("editingNewSelection","Context: {0} at line {1} and column {2}.",e,t.startLineNumber,t.startColumn))}}}else s.clear()}};this._actionWidgetService.show("codeActionWidget",!0,function(e,t,i){if(!t)return e.map((e=>({kind:"action",item:e,group:E,disabled:!!e.action.disabled,label:e.action.disabled||e.action.title,canPreview:!!e.action.edit?.edits.length})));const s=S.map((e=>({group:e,actions:[]})));for(const r of e){const e=r.action.kind?new g.k(r.action.kind):g.k.None;for(const t of s)if(t.group.kind.contains(e)){t.actions.push(r);break}}const n=[];for(const r of s)if(r.actions.length){n.push({kind:"header",group:r.group});for(const e of r.actions){const t=r.group;n.push({kind:"action",item:e,group:e.action.isAI?{title:t.title,kind:t.kind,icon:C.W.sparkle}:t,label:e.action.title,disabled:!!e.action.disabled,keybinding:i(e.action)})}}return n}(o,this._shouldShowHeaders(),this._resolver.getResolver()),l,a,n,this._getActionBarActions(e,t,i))}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=(0,n.BK)(this._editor.getDomNode());return{x:i.left+t.left,y:i.top+t.top+t.height}}_shouldShowHeaders(){const e=this._editor?.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:e?.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const s=e.documentation.map((e=>({id:e.id,label:e.title,tooltip:e.tooltip??"",class:void 0,enabled:!0,run:()=>this._commandService.executeCommand(e.id,...e.arguments??[])})));return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&s.push(this._showDisabled?{id:"hideMoreActions",label:(0,b.kg)("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:(0,b.kg)("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),s}};ue=te=he([de(1,ne.DR),de(2,K.fN),de(3,q._Y),de(4,d.ILanguageFeaturesService),de(5,re.N8),de(6,ie.d),de(7,se.pG),de(8,Z),de(9,q._Y),de(10,ce.k)],ue),(0,ae.zy)(((e,t)=>{var i,s;i=".quickfix-edit-highlight",(s=e.getColor(O.Ubg))&&t.addRule(`.monaco-editor ${i} { background-color: ${s}; }`);const n=e.getColor(O.ECk);n&&t.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${(0,oe.Bb)(e.type)?"dotted":"solid"} ${n}; box-sizing: border-box; }`)}))},59473:(e,t,i)=>{"use strict";i.d(t,{D_:()=>_,Dc:()=>S});var s=i(90766),n=i(64383),r=i(41234),o=i(5662),a=i(89403),l=i(87908),c=i(83069),h=i(75326),d=i(32848),u=i(73823),g=i(61407),p=i(55130),m=i(8995),f=i(78381);const _=new d.N1("supportedCodeAction",""),v="_typescript.applyFixAllCodeAction";class C extends o.jG{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new s.pc),this._register(this._markerService.onMarkerChanged((e=>this._onMarkerChanges(e)))),this._register(this._editor.onDidChangeCursorPosition((()=>this._tryAutoTrigger())))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some((e=>(0,a.n4)(e,t.uri)))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2,triggerAction:g.fo.Default})}),this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getSelection();if(1===e.type)return t;const i=this._editor.getOption(65).enabled;if(i!==l.jT.Off){if(i===l.jT.On)return t;if(i===l.jT.OnCode){if(!t.isEmpty())return t;const e=this._editor.getModel(),{lineNumber:i,column:s}=t.getPosition(),n=e.getLineContent(i);if(0===n.length)return;if(1===s){if(/\s/.test(n[0]))return}else if(s===e.getLineMaxColumn(i)){if(/\s/.test(n[n.length-1]))return}else if(/\s/.test(n[s-2])&&/\s/.test(n[s-1]))return}return t}}}var b;!function(e){e.Empty={type:0};e.Triggered=class{constructor(e,t,i){this.trigger=e,this.position=t,this._cancellablePromise=i,this.type=1,this.actions=i.catch((e=>{if((0,n.MB)(e))return E;throw e}))}cancel(){this._cancellablePromise.cancel()}}}(b||(b={}));const E=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class S extends o.jG{constructor(e,t,i,s,n,a,l){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=n,this._configurationService=a,this._telemetryService=l,this._codeActionOracle=this._register(new o.HE),this._state=b.Empty,this._onDidChangeState=this._register(new r.vl),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=_.bindTo(s),this._register(this._editor.onDidChangeModel((()=>this._update()))),this._register(this._editor.onDidChangeModelLanguage((()=>this._update()))),this._register(this._registry.onDidChange((()=>this._update()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(65)&&this._update()}))),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(b.Empty,!0))}_settingEnabledNearbyQuickfixes(){const e=this._editor?.getModel();return!!this._configurationService&&this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:e?.uri})}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(b.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(92)){const t=this._registry.all(e).flatMap((e=>e.providedCodeActionKinds??[]));this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new C(this._editor,this._markerService,(t=>{if(!t)return void this.setState(b.Empty);const i=t.selection.getStartPosition(),n=(0,s.SS)((async i=>{if(this._settingEnabledNearbyQuickfixes()&&1===t.trigger.type&&(t.trigger.triggerAction===g.fo.QuickFix||t.trigger.filter?.include?.contains(g.gB.QuickFix))){const s=await(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i),n=[...s.allActions];if(i.isCancellationRequested)return E;const r=s.validActions?.some((e=>!!e.action.kind&&g.gB.QuickFix.contains(new m.k(e.action.kind)))),o=this._markerService.read({resource:e.uri});if(r){for(const e of s.validActions)e.action.command?.arguments?.some((e=>"string"===typeof e&&e.includes(v)))&&(e.action.diagnostics=[...o.filter((e=>e.relatedInformation))]);return{validActions:s.validActions,allActions:n,documentation:s.documentation,hasAutoFix:s.hasAutoFix,hasAIFix:s.hasAIFix,allAIFixes:s.allAIFixes,dispose:()=>{s.dispose()}}}if(!r&&o.length>0){const r=t.selection.getPosition();let a=r,l=Number.MAX_VALUE;const d=[...s.validActions];for(const f of o){const m=f.endColumn,_=f.endLineNumber,C=f.startLineNumber;if(_===r.lineNumber||C===r.lineNumber){a=new c.y(_,m);const f={type:t.trigger.type,triggerAction:t.trigger.triggerAction,filter:{include:t.trigger.filter?.include?t.trigger.filter?.include:g.gB.QuickFix},autoApply:t.trigger.autoApply,context:{notAvailableMessage:t.trigger.context?.notAvailableMessage||"",position:a}},C=new h.L(a.lineNumber,a.column,a.lineNumber,a.column),b=await(0,p.dU)(this._registry,e,C,f,u.ke.None,i);if(0!==b.validActions.length){for(const e of b.validActions)e.action.command?.arguments?.some((e=>"string"===typeof e&&e.includes(v)))&&(e.action.diagnostics=[...o.filter((e=>e.relatedInformation))]);0===s.allActions.length&&n.push(...b.allActions),Math.abs(r.column-m)<l?d.unshift(...b.validActions):d.push(...b.validActions)}l=Math.abs(r.column-m)}}const m=d.filter(((e,t,i)=>i.findIndex((t=>t.action.title===e.action.title))===t));return m.sort(((e,t)=>e.action.isPreferred&&!t.action.isPreferred?-1:!e.action.isPreferred&&t.action.isPreferred||e.action.isAI&&!t.action.isAI?1:!e.action.isAI&&t.action.isAI?-1:0)),{validActions:m,allActions:n,documentation:s.documentation,hasAutoFix:s.hasAutoFix,hasAIFix:s.hasAIFix,allAIFixes:s.allAIFixes,dispose:()=>{s.dispose()}}}}if(1===t.trigger.type){const s=new f.W,n=await(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i);return this._telemetryService&&this._telemetryService.publicLog2("codeAction.invokedDurations",{codeActions:n.validActions.length,duration:s.elapsed()}),n}return(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i)}));1===t.trigger.type&&this._progressService?.showWhile(n,250);const r=new b.Triggered(t.trigger,i,n);let o=!1;1===this._state.type&&(o=1===this._state.trigger.type&&1===r.type&&2===r.trigger.type&&this._state.position!==r.position),o?setTimeout((()=>{this.setState(r)}),500):this.setState(r)}),void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:g.fo.Default})}else this._supportedCodeActions.reset()}trigger(e){this._codeActionOracle.value?.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||this._disposed||this._onDidChangeState.fire(e))}}},96758:(e,t,i)=>{"use strict";i.d(t,{E:()=>R});var s,n=i(8597),r=i(25154),o=i(10350),a=i(41234),l=i(5662),c=i(25689),h=i(16223),d=i(87289),u=i(78049),g=i(55130),p=i(78209),m=i(98031),f=i(61394),_=i(36677),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};const b=(0,f.pU)("gutter-lightbulb",o.W.lightBulb,p.kg("gutterLightbulbWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor.")),E=(0,f.pU)("gutter-lightbulb-auto-fix",o.W.lightbulbAutofix,p.kg("gutterLightbulbAutoFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and a quick fix is available.")),S=(0,f.pU)("gutter-lightbulb-sparkle",o.W.lightbulbSparkle,p.kg("gutterLightbulbAIFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix is available.")),y=(0,f.pU)("gutter-lightbulb-aifix-auto-fix",o.W.lightbulbSparkleAutofix,p.kg("gutterLightbulbAIFixAutoFixWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.")),w=(0,f.pU)("gutter-lightbulb-sparkle-filled",o.W.sparkleFilled,p.kg("gutterLightbulbSparkleFilledWidget","Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available."));var L;!function(e){e.Hidden={type:0};e.Showing=class{constructor(e,t,i,s){this.actions=e,this.trigger=t,this.editorPosition=i,this.widgetPosition=s,this.type=1}}}(L||(L={}));let R=class extends l.jG{static{s=this}static{this.GUTTER_DECORATION=d.kI.register({description:"codicon-gutter-lightbulb-decoration",glyphMarginClassName:c.L.asClassName(o.W.lightBulb),glyphMargin:{position:h.ZS.Left},stickiness:1})}static{this.ID="editor.contrib.lightbulbWidget"}static{this._posPref=[0]}constructor(e,t){super(),this._editor=e,this._keybindingService=t,this._onClick=this._register(new a.vl),this.onClick=this._onClick.event,this._state=L.Hidden,this._gutterState=L.Hidden,this._iconClasses=[],this.lightbulbClasses=["codicon-"+b.id,"codicon-"+y.id,"codicon-"+E.id,"codicon-"+S.id,"codicon-"+w.id],this.gutterDecoration=s.GUTTER_DECORATION,this._domNode=n.$("div.lightBulbWidget"),this._domNode.role="listbox",this._register(r.q.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent((e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide(),(1!==this.gutterState.type||!t||this.gutterState.editorPosition.lineNumber>=t.getLineCount())&&this.gutterHide()}))),this._register(n.Xc(this._domNode,(e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:i}=n.BK(this._domNode),s=this._editor.getOption(67);let r=Math.floor(s/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(r+=s),this._onClick.fire({x:e.posx,y:t+i+r,actions:this.state.actions,trigger:this.state.trigger})}))),this._register(n.ko(this._domNode,"mouseenter",(e=>{1===(1&e.buttons)&&this.hide()}))),this._register(a.Jh.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,(()=>{this._preferredKbLabel=this._keybindingService.lookupKeybinding(g.pR)?.getLabel()??void 0,this._quickFixKbLabel=this._keybindingService.lookupKeybinding(g.pQ)?.getLabel()??void 0,this._updateLightBulbTitleAndIcon()}))),this._register(this._editor.onMouseDown((async e=>{if(!e.target.element||!this.lightbulbClasses.some((t=>e.target.element&&e.target.element.classList.contains(t))))return;if(1!==this.gutterState.type)return;this._editor.focus();const{top:t,height:i}=n.BK(e.target.element),s=this._editor.getOption(67);let r=Math.floor(s/3);null!==this.gutterState.widgetPosition.position&&this.gutterState.widgetPosition.position.lineNumber<this.gutterState.editorPosition.lineNumber&&(r+=s),this._onClick.fire({x:e.event.posx,y:t+i+r,actions:this.gutterState.actions,trigger:this.gutterState.trigger})})))}dispose(){super.dispose(),this._editor.removeContentWidget(this),this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.gutterHide(),this.hide();if(!this._editor.hasTextFocus())return this.gutterHide(),this.hide();if(!this._editor.getOptions().get(65).enabled)return this.gutterHide(),this.hide();const n=this._editor.getModel();if(!n)return this.gutterHide(),this.hide();const{lineNumber:r,column:o}=n.validatePosition(i),a=n.getOptions().tabSize,l=this._editor.getOptions().get(50),c=n.getLineContent(r),h=(0,u.G)(c,a),d=l.spaceWidth*h>22,g=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1),p=this._editor.getLineDecorations(r);let m=!1;if(p)for(const s of p){const e=s.options.glyphMarginClassName;if(e&&!this.lightbulbClasses.some((t=>e.includes(t)))){m=!0;break}}let f=r,_=1;if(!d){const a=e=>{const t=n.getLineContent(e);return/^\s*$|^\s+/.test(t)||t.length<=_};if(r>1&&!g(r-1)){const o=r===n.getLineCount(),l=r>1&&a(r-1),c=!o&&a(r+1),h=a(r),d=!c&&!l;if(!(c||l||m))return this.gutterState=new L.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),this.renderGutterLightbub(),this.hide();l||o||l&&!h?f-=1:(c||d&&h)&&(f+=1)}else if(1!==r||r!==n.getLineCount()&&(a(r+1)||a(r))){if(r<n.getLineCount()&&!g(r+1))f+=1;else if(o*l.spaceWidth<22)return this.hide()}else{if(this.gutterState=new L.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),!m)return this.renderGutterLightbub(),this.hide();this.gutterHide()}_=/^\S\s*$/.test(n.getLineContent(f))?2:1}this.state=new L.Showing(e,t,i,{position:{lineNumber:f,column:_},preference:s._posPref}),this._gutterDecorationID&&(this._removeGutterDecoration(this._gutterDecorationID),this.gutterHide());const v=e.validActions,C=e.validActions[0].action.kind;v.length,this._editor.layoutContentWidget(this)}hide(){this.state!==L.Hidden&&(this.state=L.Hidden,this._editor.layoutContentWidget(this))}gutterHide(){this.gutterState!==L.Hidden&&(this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID),this.gutterState=L.Hidden)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}get gutterState(){return this._gutterState}set gutterState(e){this._gutterState=e,this._updateGutterLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this._domNode.classList.remove(...this._iconClasses),this._iconClasses=[],1!==this.state.type)return;let e,t=!1;this.state.actions.allAIFixes?(e=o.W.sparkleFilled,1===this.state.actions.validActions.length&&(t=!0)):e=this.state.actions.hasAutoFix?this.state.actions.hasAIFix?o.W.lightbulbSparkleAutofix:o.W.lightbulbAutofix:this.state.actions.hasAIFix?o.W.lightbulbSparkle:o.W.lightBulb,this._updateLightbulbTitle(this.state.actions.hasAutoFix,t),this._iconClasses=c.L.asClassNameArray(e),this._domNode.classList.add(...this._iconClasses)}_updateGutterLightBulbTitleAndIcon(){if(1!==this.gutterState.type)return;let e,t=!1;this.gutterState.actions.allAIFixes?(e=w,1===this.gutterState.actions.validActions.length&&(t=!0)):e=this.gutterState.actions.hasAutoFix?this.gutterState.actions.hasAIFix?y:E:this.gutterState.actions.hasAIFix?S:b,this._updateLightbulbTitle(this.gutterState.actions.hasAutoFix,t);const i=d.kI.register({description:"codicon-gutter-lightbulb-decoration",glyphMarginClassName:c.L.asClassName(e),glyphMargin:{position:h.ZS.Left},stickiness:1});this.gutterDecoration=i}renderGutterLightbub(){const e=this._editor.getSelection();e&&(void 0===this._gutterDecorationID?this._addGutterDecoration(e.startLineNumber):this._updateGutterDecoration(this._gutterDecorationID,e.startLineNumber))}_addGutterDecoration(e){this._editor.changeDecorations((t=>{this._gutterDecorationID=t.addDecoration(new _.Q(e,0,e,0),this.gutterDecoration)}))}_removeGutterDecoration(e){this._editor.changeDecorations((t=>{t.removeDecoration(e),this._gutterDecorationID=void 0}))}_updateGutterDecoration(e,t){this._editor.changeDecorations((i=>{i.changeDecoration(e,new _.Q(t,0,t,0)),i.changeDecorationOptions(e,this.gutterDecoration)}))}_updateLightbulbTitle(e,t){1===this.state.type&&(t?this.title=p.kg("codeActionAutoRun","Run: {0}",this.state.actions.validActions[0].action.title):e&&this._preferredKbLabel?this.title=p.kg("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel):!e&&this._quickFixKbLabel?this.title=p.kg("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):e||(this.title=p.kg("codeAction","Show Code Actions")))}set title(e){this._domNode.title=e}};R=s=v([C(1,m.b)],R)},61407:(e,t,i)=>{"use strict";i.d(t,{QA:()=>h,Vi:()=>d,aF:()=>l,fo:()=>o,gB:()=>r,uJ:()=>a});var s=i(64383),n=i(8995);const r=new class{constructor(){this.QuickFix=new n.k("quickfix"),this.Refactor=new n.k("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new n.k("notebook"),this.Source=new n.k("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}};var o;function a(e,t){return!(e.include&&!e.include.intersects(t))&&((!e.excludes||!e.excludes.some((i=>c(t,i,e.include))))&&!(!e.includeSourceActions&&r.Source.contains(t)))}function l(e,t){const i=t.kind?new n.k(t.kind):void 0;return!!(!e.include||i&&e.include.contains(i))&&(!(e.excludes&&i&&e.excludes.some((t=>c(i,t,e.include))))&&(!(!e.includeSourceActions&&i&&r.Source.contains(i))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}function c(e,t,i){return!!t.contains(e)&&(!i||!t.contains(i))}!function(e){e.Refactor="refactor",e.RefactorPreview="refactor preview",e.Lightbulb="lightbulb",e.Default="other (default)",e.SourceAction="source action",e.QuickFix="quick fix action",e.FixAll="fix all",e.OrganizeImports="organize imports",e.AutoFix="auto fix",e.QuickFixHover="quick fix hover window",e.OnSave="save participants",e.ProblemsView="problems view"}(o||(o={}));class h{static fromUser(e,t){return e&&"object"===typeof e?new h(h.getKindFromUser(e,t.kind),h.getApplyFromUser(e,t.apply),h.getPreferredUser(e)):new h(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"===typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"===typeof e.kind?new n.k(e.kind):t}static getPreferredUser(e){return"boolean"===typeof e.preferred&&e.preferred}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class d{constructor(e,t,i){this.action=e,this.provider=t,this.highlightRange=i}async resolve(e){if(this.provider?.resolveCodeAction&&!this.action.edit){let i;try{i=await this.provider.resolveCodeAction(this.action,e)}catch(t){(0,s.M_)(t)}i&&(this.action.edit=i.edit)}return this}}},64215:(e,t,i)=>{"use strict";var s=i(90766),n=i(64383),r=i(5662),o=i(55190),a=i(31450),l=i(87908),c=i(60002),h=i(18447),d=i(631),u=i(79400),g=i(23750),p=i(50091),m=i(56942);class f{constructor(){this.lenses=[],this._disposables=new r.Cm}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}async function _(e,t,i){const s=e.ordered(t),r=new Map,o=new f,a=s.map((async(e,s)=>{r.set(e,s);try{const s=await Promise.resolve(e.provideCodeLenses(t,i));s&&o.add(s,e)}catch(a){(0,n.M_)(a)}}));return await Promise.all(a),o.lenses=o.lenses.sort(((e,t)=>e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:r.get(e.provider)<r.get(t.provider)?-1:r.get(e.provider)>r.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0)),o}p.w.registerCommand("_executeCodeLensProvider",(function(e,...t){let[i,s]=t;(0,d.j)(u.r.isUri(i)),(0,d.j)("number"===typeof s||!s);const{codeLensProvider:o}=e.get(m.ILanguageFeaturesService),a=e.get(g.IModelService).getModel(i);if(!a)throw(0,n.Qg)();const l=[],c=new r.Cm;return _(o,a,h.XO.None).then((e=>{c.add(e);const t=[];for(const i of e.lenses)void 0===s||null===s||Boolean(i.symbol.command)?l.push(i.symbol):s-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(a,i.symbol,h.XO.None)).then((e=>l.push(e||i.symbol))));return Promise.all(t)})).then((()=>l)).finally((()=>{setTimeout((()=>c.dispose()),100)}))}));var v=i(41234),C=i(74320),b=i(36677),E=i(14718),S=i(63591),y=i(9711),w=i(25893),L=i(8597),R=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};const x=(0,S.u1)("ICodeLensCache");class k{constructor(e,t){this.lineCount=e,this.data=t}}let A=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new C.qK(20,.75);(0,L.U3)(w.G,(()=>e.remove("codelens/cache",1)));const t="codelens/cache2",i=e.get(t,1,"{}");this._deserialize(i);const s=v.Jh.filter(e.onWillSaveState,(e=>e.reason===y.LP.SHUTDOWN));v.Jh.once(s)((i=>{e.store(t,this._serialize(),1,1)}))}put(e,t){const i=t.lenses.map((e=>({range:e.symbol.range,command:e.symbol.command&&{id:"",title:e.symbol.command?.title}}))),s=new f;s.add({lenses:i,dispose:()=>{}},this._fakeProvider);const n=new k(e.getLineCount(),s);this._cache.set(e.uri.toString(),n)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const s=new Set;for(const e of i.data.lenses)s.add(e.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...s.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const i=t[e],s=[];for(const e of i.lines)s.push({range:new b.Q(e,1,e,11)});const n=new f;n.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(e,new k(i.lineCount,n))}}catch{}}};A=R([T(0,y.CS)],A),(0,E.v)(x,A,1);var N=i(20370),I=i(87289);class O{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class D{static{this._idPool=0}constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+D._idPool++,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let s=!1;for(let n=0;n<e.length;n++){const t=e[n];if(t&&(s=!0,t.command)){const s=(0,N.n)(t.command.title.trim());if(t.command.id){const e="c"+D._idPool++;i.push(L.$("a",{id:e,title:t.command.tooltip,role:"button"},...s)),this._commands.set(e,t.command)}else i.push(L.$("span",{title:t.command.tooltip},...s));n+1<e.length&&i.push(L.$("span",void 0,"\xa0|\xa0"))}}s?(L.Ln(this._domNode,...i),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):L.Ln(this._domNode,L.$("span",void 0,"no commands"))}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){const t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}class M{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){const t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let i=0,s=t.length;i<s;i++)this._addDecorationsCallbacks[i](t[i])}}const P=I.kI.register({collapseOnReplaceEdit:!0,description:"codelens"});class F{constructor(e,t,i,s,n,r){let o;this._isDisposed=!1,this._editor=t,this._data=e,this._decorationIds=[];const a=[];this._data.forEach(((e,t)=>{e.symbol.command&&a.push(e.symbol),i.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[t]=e)),o=o?b.Q.plusRange(o,e.symbol.range):b.Q.lift(e.symbol.range)})),this._viewZone=new O(o.startLineNumber-1,n,r),this._viewZoneId=s.addZone(this._viewZone),a.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(a,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new D(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t?.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some(((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),s=this._data[t].symbol;return!(!i||b.Q.isEmpty(s.range)!==i.isEmpty())}))}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach(((e,i)=>{t.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[i]=e))}))}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t<this._decorationIds.length;t++){const i=e.getDecorationRange(this._decorationIds[t]);i&&(this._data[t].symbol.range=i)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){const i=e[t];if(i){const{symbol:e}=this._data[t];e.command=i.command||e.command}}}getCommand(e){return this._contentWidget?.getCommand(e)}getLineNumber(){const e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){const t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}}var U=i(78209),H=i(58591),B=i(51467),W=i(32500),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class{static{this.ID="css.editor.codeLens"}constructor(e,t,i,n,o,a){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=o,this._codeLensCache=a,this._disposables=new r.Cm,this._localToDispose=new r.Cm,this._lenses=[],this._oldCodeLensModels=new r.Cm,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new s.uC((()=>this._resolveCodeLensesInViewport()),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(50)||e.hasChanged(19)||e.hasChanged(18))&&this._updateLensStyle(),e.hasChanged(17)&&this._onModelChange()}))),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),this._currentCodeLensModel?.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let t=this._editor.getOption(19);return(!t||t<5)&&(t=.9*this._editor.getOption(52)|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(18),s=this._editor.getOption(50),{style:n}=this._editor.getContainerDomNode();n.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),n.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),n.setProperty("--vscode-editorCodeLens-fontFeatureSettings",s.fontFeatureSettings),i&&(n.setProperty("--vscode-editorCodeLens-fontFamily",i),n.setProperty("--vscode-editorCodeLens-fontFamilyDefault",l.jU.fontFamily)),this._editor.changeViewZones((t=>{for(const i of this._lenses)i.updateHeight(e,t)}))}_localDispose(){this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=void 0,this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),this._currentCodeLensModel?.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(17)||e.isTooLargeForTokenization())return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e))return void(t&&(0,s.EQ)((()=>{const i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())}),3e4,this._localToDispose));for(const s of this._languageFeaturesService.codeLensProvider.all(e))if("function"===typeof s.onDidChange){const e=s.onDidChange((()=>i.schedule()));this._localToDispose.add(e)}const i=new s.uC((()=>{const t=Date.now();this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=(0,s.SS)((t=>_(this._languageFeaturesService.codeLensProvider,e,t))),this._getCodeLensModelPromise.then((s=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=s,this._codeLensCache.put(e,s);const n=this._provideCodeLensDebounce.update(e,Date.now()-t);i.delay=n,this._renderCodeLensSymbols(s),this._resolveCodeLensesInViewportSoon()}),n.dz)}),this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add((0,r.s)((()=>this._resolveCodeLensesScheduler.cancel()))),this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const i=[];let s=-1;this._lenses.forEach((e=>{e.isValid()&&s!==e.getLineNumber()?(e.update(t),s=e.getLineNumber()):i.push(e)}));const n=new M;i.forEach((e=>{e.dispose(n,t),this._lenses.splice(this._lenses.indexOf(e),1)})),n.commit(e)}))})),i.schedule(),this._resolveCodeLensesScheduler.cancel(),this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0}))),this._localToDispose.add(this._editor.onDidFocusEditorText((()=>{i.schedule()}))),this._localToDispose.add(this._editor.onDidBlurEditorText((()=>{i.cancel()}))),this._localToDispose.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(this._editor.onDidLayoutChange((()=>{this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add((0,r.s)((()=>{if(this._editor.getModel()){const e=o.D.capture(this._editor);this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{this._disposeAllLenses(e,t)}))})),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseDown((e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===t?.tagName&&(t=t.parentElement),"A"===t?.tagName)for(const i of this._lenses){const e=i.getCommand(t);if(e){this._commandService.executeCommand(e.id,...e.arguments||[]).catch((e=>this._notificationService.error(e)));break}}}))),i.schedule()}_disposeAllLenses(e,t){const i=new M;for(const s of this._lenses)s.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let s;for(const o of e.lenses){const e=o.symbol.range.startLineNumber;e<1||e>t||(s&&s[s.length-1].symbol.range.startLineNumber===e?s.push(o):(s=[o],i.push(s)))}if(!i.length&&!this._lenses.length)return;const n=o.D.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const s=new M;let n=0,o=0;for(;o<i.length&&n<this._lenses.length;){const e=i[o][0].symbol.range.startLineNumber,a=this._lenses[n].getLineNumber();a<e?(this._lenses[n].dispose(s,t),this._lenses.splice(n,1)):a===e?(this._lenses[n].updateCodeLensSymbols(i[o],s),o++,n++):(this._lenses.splice(n,0,new F(i[o],this._editor,s,t,r.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),n++,o++)}for(;n<this._lenses.length;)this._lenses[n].dispose(s,t),this._lenses.splice(n,1);for(;o<i.length;)this._lenses.push(new F(i[o],this._editor,s,t,r.codeLensHeight,(()=>this._resolveCodeLensesInViewportSoon()))),o++;s.commit(e)}))})),n.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0;const e=this._editor.getModel();if(!e)return;const t=[],i=[];if(this._lenses.forEach((s=>{const n=s.computeIfNecessary(e);n&&(t.push(n),i.push(s))})),0===t.length)return;const r=Date.now(),o=(0,s.SS)((s=>{const r=t.map(((t,r)=>{const o=new Array(t.length),a=t.map(((t,i)=>t.symbol.command||"function"!==typeof t.provider.resolveCodeLens?(o[i]=t.symbol,Promise.resolve(void 0)):Promise.resolve(t.provider.resolveCodeLens(e,t.symbol,s)).then((e=>{o[i]=e}),n.M_)));return Promise.all(a).then((()=>{s.isCancellationRequested||i[r].isDisposed()||i[r].updateCommands(o)}))}));return Promise.all(r)}));this._resolveCodeLensesPromise=o,this._resolveCodeLensesPromise.then((()=>{const t=this._resolveCodeLensesDebounce.update(e,Date.now()-r);this._resolveCodeLensesScheduler.delay=t,this._currentCodeLensModel&&this._codeLensCache.put(e,this._currentCodeLensModel),this._oldCodeLensModels.clear(),o===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}),(e=>{(0,n.dz)(e),o===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}))}async getModel(){return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,this._currentCodeLensModel?.isDisposed?void 0:this._currentCodeLensModel}};G=V([z(1,m.ILanguageFeaturesService),z(2,W.ILanguageFeatureDebounceService),z(3,p.d),z(4,H.Ot),z(5,x)],G),(0,a.HW)(G.ID,G,1),(0,a.Fl)(class extends a.ks{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:c.R.hasCodeLensProvider,label:(0,U.kg)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(e,t){if(!t.hasModel())return;const i=e.get(B.GK),s=e.get(p.d),n=e.get(H.Ot),r=t.getSelection().positionLineNumber,o=t.getContribution(G.ID);if(!o)return;const a=await o.getModel();if(!a)return;const l=[];for(const u of a.lenses)u.symbol.command&&u.symbol.range.startLineNumber===r&&l.push({label:u.symbol.command.title,command:u.symbol.command});if(0===l.length)return;const c=await i.pick(l,{canPickMany:!1,placeHolder:(0,U.kg)("placeHolder","Select a command")});if(!c)return;let h=c.command;if(a.isDisposed){const e=await o.getModel(),t=e?.lenses.find((e=>e.symbol.range.startLineNumber===r&&e.symbol.command?.title===h.title));if(!t||!t.symbol.command)return;h=t.symbol.command}try{await s.executeCommand(h.id,...h.arguments||[])}catch(d){n.error(d)}}})},68310:(e,t,i)=>{"use strict";i.d(t,{R:()=>g,j:()=>u});var s=i(18447),n=i(64383),r=i(79400),o=i(36677),a=i(23750),l=i(50091),c=i(56942),h=i(52363),d=i(84001);async function u(e,t,i,s=!0){return _(new p,e,t,i,s)}function g(e,t,i,s){return Promise.resolve(i.provideColorPresentations(e,t,s))}class p{constructor(){}async compute(e,t,i,s){const n=await e.provideDocumentColors(t,i);if(Array.isArray(n))for(const r of n)s.push({colorInfo:r,provider:e});return Array.isArray(n)}}class m{constructor(){}async compute(e,t,i,s){const n=await e.provideDocumentColors(t,i);if(Array.isArray(n))for(const r of n)s.push({range:r.range,color:[r.color.red,r.color.green,r.color.blue,r.color.alpha]});return Array.isArray(n)}}class f{constructor(e){this.colorInfo=e}async compute(e,t,i,n){const r=await e.provideColorPresentations(t,this.colorInfo,s.XO.None);return Array.isArray(r)&&n.push(...r),Array.isArray(r)}}async function _(e,t,i,s,r){let o,a=!1;const l=[],c=t.ordered(i);for(let u=c.length-1;u>=0;u--){const t=c[u];if(t instanceof h.L)o=t;else try{await e.compute(t,i,s,l)&&(a=!0)}catch(d){(0,n.M_)(d)}}return a?l:o&&r?(await e.compute(o,i,s,l),l):[]}function v(e,t){const{colorProvider:i}=e.get(c.ILanguageFeaturesService),s=e.get(a.IModelService).getModel(t);if(!s)throw(0,n.Qg)();return{model:s,colorProviderRegistry:i,isDefaultColorDecoratorsEnabled:e.get(d.pG).getValue("editor.defaultColorDecorators",{resource:t})}}l.w.registerCommand("_executeDocumentColorProvider",(function(e,...t){const[i]=t;if(!(i instanceof r.r))throw(0,n.Qg)();const{model:o,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:l}=v(e,i);return _(new m,a,o,s.XO.None,l)})),l.w.registerCommand("_executeColorPresentationProvider",(function(e,...t){const[i,a]=t,{uri:l,range:c}=a;if(!(l instanceof r.r)||!Array.isArray(i)||4!==i.length||!o.Q.isIRange(c))throw(0,n.Qg)();const{model:h,colorProviderRegistry:d,isDefaultColorDecoratorsEnabled:u}=v(e,l),[g,p,m,C]=i;return _(new f({range:c,color:{red:g,green:p,blue:m,alpha:C}}),d,h,s.XO.None,u)}))},31659:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450),r=i(36677),o=i(9772),a=i(28712),l=i(77011),c=i(57039);class h extends s.jG{static{this.ID="editor.contrib.colorContribution"}constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(149);if("click"!==t&&"clickAndHover"!==t)return;const i=e.target;if(6!==i.type)return;if(!i.detail.injectedText)return;if(i.detail.injectedText.options.attachedData!==o.nM)return;if(!i.range)return;const s=this._editor.getContribution(l.A.ID);if(s&&!s.isColorPickerVisible){const e=new r.Q(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);s.showContentHover(e,1,0,!1,!0)}}}(0,n.HW)(h.ID,h,2),c.B2.register(a.BJ)},9772:(e,t,i)=>{"use strict";i.d(t,{mn:()=>S,nM:()=>E});var s,n=i(90766),r=i(47661),o=i(64383),a=i(41234),l=i(5662),c=i(78381),h=i(91508),d=i(37734),u=i(31450),g=i(36677),p=i(87289),m=i(32500),f=i(56942),_=i(68310),v=i(84001),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},b=function(e,t){return function(i,s){t(i,s,e)}};const E=Object.create({});let S=class extends l.jG{static{s=this}static{this.ID="editor.contrib.colorDetector"}static{this.RECOMPUTE_TIME=1e3}constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new l.Cm),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new d.Qn(this._editor),this._decoratorLimitReporter=new y,this._colorDecorationClassRefs=this._register(new l.Cm),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:s.RECOMPUTE_TIME}),this._register(e.onDidChangeModel((()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()}))),this._register(e.onDidChangeModelLanguage((()=>this.updateColors()))),this._register(i.colorProvider.onDidChange((()=>this.updateColors()))),this._register(e.onDidChangeConfiguration((e=>{const t=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(148);const i=t!==this._isColorDecoratorsEnabled||e.hasChanged(21),s=e.hasChanged(148);(i||s)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())}))),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(148),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&"object"===typeof i){const e=i.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(20)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();e&&this._languageFeaturesService.colorProvider.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._timeoutTimer||(this._timeoutTimer=new n.pc,this._timeoutTimer.cancelAndSet((()=>{this._timeoutTimer=null,this.beginCompute()}),this._debounceInformation.get(e)))}))),this.beginCompute())}async beginCompute(){this._computePromise=(0,n.SS)((async e=>{const t=this._editor.getModel();if(!t)return[];const i=new c.W(!1),s=await(0,_.j)(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),s}));try{const e=await this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){(0,o.dz)(e)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map((e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:p.kI.EMPTY})));this._editor.changeDecorations((i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach(((t,i)=>this._colorDatas.set(t,e[i])))}))}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],i=this._editor.getOption(21);for(let n=0;n<e.length&&t.length<i;n++){const{red:i,green:s,blue:o,alpha:a}=e[n].colorInfo.color,l=new r.bU(Math.round(255*i),Math.round(255*s),Math.round(255*o),a),c=`rgba(${l.r}, ${l.g}, ${l.b}, ${l.a})`,d=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:c}));t.push({range:{startLineNumber:e[n].colorInfo.range.startLineNumber,startColumn:e[n].colorInfo.range.startColumn,endLineNumber:e[n].colorInfo.range.endLineNumber,endColumn:e[n].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:h.S8,inlineClassName:`${d.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:E}}})}const s=i<e.length&&i;this._decoratorLimitReporter.update(e.length,s),this._colorDecoratorIds.set(t)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(e){const t=this._editor.getModel();if(!t)return null;const i=t.getDecorationsInRange(g.Q.fromPositions(e,e)).filter((e=>this._colorDatas.has(e.id)));return 0===i.length?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};S=s=C([b(1,v.pG),b(2,f.ILanguageFeaturesService),b(3,m.ILanguageFeatureDebounceService)],S);class y{constructor(){this._onDidChange=new a.vl,this._computed=0,this._limited=!1}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}(0,u.HW)(S.ID,S,1)},28712:(e,t,i)=>{"use strict";i.d(t,{BJ:()=>P,WE:()=>U});var s=i(90766),n=i(18447),r=i(47661),o=i(5662),a=i(36677),l=i(68310),c=i(9772),h=i(41234);class d{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new h.vl,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new h.vl,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let s=0;s<this.colorPresentations.length;s++)if(t.toLowerCase()===this.colorPresentations[s].label){i=s;break}if(-1===i){const e=t.split("(")[0].toLowerCase();for(let t=0;t<this.colorPresentations.length;t++)if(this.colorPresentations[t].label.toLowerCase().startsWith(e)){i=t;break}}-1!==i&&i!==this.presentationIndex&&(this.presentationIndex=i,this._onDidChangePresentation.fire(this.presentation))}flushColor(){this._onColorFlushed.fire(this._color)}}var u=i(94106),g=i(8597),p=i(34072),m=i(17390),f=i(10350),_=i(25689),v=(i(53396),i(78209)),C=i(66261),b=i(61394);const E=g.$;class S extends o.jG{constructor(e,t,i,s=!1){super(),this.model=t,this.showingStandaloneColorPicker=s,this._closeButton=null,this._domNode=E(".colorpicker-header"),g.BC(e,this._domNode),this._pickedColorNode=g.BC(this._domNode,E(".picked-color")),g.BC(this._pickedColorNode,E("span.codicon.codicon-color-mode")),this._pickedColorPresentation=g.BC(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");const n=(0,v.kg)("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",n),this._originalColorNode=g.BC(this._domNode,E(".original-color")),this._originalColorNode.style.backgroundColor=r.Q1.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=i.getColorTheme().getColor(C.WfR)||r.Q1.white,this._register(i.onDidColorThemeChange((e=>{this.backgroundColor=e.getColor(C.WfR)||r.Q1.white}))),this._register(g.ko(this._pickedColorNode,g.Bx.CLICK,(()=>this.model.selectNextColorPresentation()))),this._register(g.ko(this._originalColorNode,g.Bx.CLICK,(()=>{this.model.color=this.model.originalColor,this.model.flushColor()}))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=r.Q1.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new y(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=r.Q1.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class y extends o.jG{constructor(e){super(),this._onClicked=this._register(new h.vl),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),g.BC(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),g.BC(this._button,t);g.BC(t,E(".button"+_.L.asCSSSelector((0,b.pU)("color-picker-close",f.W.close,(0,v.kg)("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(g.ko(this._button,g.Bx.CLICK,(()=>{this._onClicked.fire()})))}}class w extends o.jG{constructor(e,t,i,s=!1){super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=E(".colorpicker-body"),g.BC(e,this._domNode),this._saturationBox=new L(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new T(this._domNode,this.model,s),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new x(this._domNode,this.model,s),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),s&&(this._insertButton=this._register(new k(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new r.Q1(new r.$J(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new r.Q1(new r.$J(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=360*(1-e);this.model.color=new r.Q1(new r.$J(360===i?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class L extends o.jG{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,this._domNode=E(".saturation-wrap"),g.BC(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",g.BC(this._domNode,this._canvas),this.selection=E(".saturation-selection"),g.BC(this._domNode,this.selection),this.layout(),this._register(g.ko(this._domNode,g.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new p._);const t=g.BK(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangePosition(e.pageX-t.left,e.pageY-t.top)),(()=>null));const i=g.ko(e.target.ownerDocument,g.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)}),!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),s=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,s),this._onDidChange.fire({s:i,v:s})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new r.Q1(new r.$J(e.h,1,1,1)),i=this._canvas.getContext("2d"),s=i.createLinearGradient(0,0,this._canvas.width,0);s.addColorStop(0,"rgba(255, 255, 255, 1)"),s.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),s.addColorStop(1,"rgba(255, 255, 255, 0)");const n=i.createLinearGradient(0,0,0,this._canvas.height);n.addColorStop(0,"rgba(0, 0, 0, 0)"),n.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=r.Q1.Format.CSS.format(t),i.fill(),i.fillStyle=s,i.fill(),i.fillStyle=n,i.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const t=e.hsva;this.paintSelection(t.s,t.v)}}class R extends o.jG{constructor(e,t,i=!1){super(),this.model=t,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.vl,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=g.BC(e,E(".standalone-strip")),this.overlay=g.BC(this.domNode,E(".standalone-overlay"))):(this.domNode=g.BC(e,E(".strip")),this.overlay=g.BC(this.domNode,E(".overlay"))),this.slider=g.BC(this.domNode,E(".slider")),this.slider.style.top="0px",this._register(g.ko(this.domNode,g.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){const t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new p._),i=g.BK(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangeTop(e.pageY-i.top)),(()=>null));const s=g.ko(e.target.ownerDocument,g.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),s.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")}),!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class T extends R{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);const{r:t,g:i,b:s}=e.rgba,n=new r.Q1(new r.bU(t,i,s,1)),o=new r.Q1(new r.bU(t,i,s,0));this.overlay.style.background=`linear-gradient(to bottom, ${n} 0%, ${o} 100%)`}getValue(e){return e.hsva.a}}class x extends R{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class k extends o.jG{constructor(e){super(),this._onClicked=this._register(new h.vl),this.onClicked=this._onClicked.event,this._button=g.BC(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(g.ko(this._button,g.Bx.CLICK,(()=>{this._onClicked.fire()})))}get button(){return this._button}}class A extends m.x{constructor(e,t,i,s,n=!1){super(),this.model=t,this.pixelRatio=i,this._register(u.c.getInstance(g.zk(e)).onDidChange((()=>this.layout()))),this._domNode=E(".colorpicker-widget"),e.appendChild(this._domNode),this.header=this._register(new S(this._domNode,this.model,s,n)),this.body=this._register(new w(this._domNode,this.model,this.pixelRatio,n))}layout(){this.body.layout()}get domNode(){return this._domNode}}var N=i(57039),I=i(47612),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};class M{constructor(e,t,i,s){this.owner=e,this.range=t,this.model=i,this.provider=s,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let P=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,i){return s.AE.fromPromise(this._computeAsync(e,t,i))}async _computeAsync(e,t,i){if(!this._editor.hasModel())return[];const s=c.mn.get(this._editor);if(!s)return[];for(const n of t){if(!s.isColorDecoration(n))continue;const e=s.getColorData(n.range.getStartPosition());if(e){return[await H(this,this._editor.getModel(),e.colorInfo,e.provider)]}}return[]}renderHoverParts(e,t){const i=B(this,this._editor,this._themeService,t,e);if(!i)return new N.Ke([]);this._colorPicker=i.colorPicker;const s={hoverPart:i.hoverPart,hoverElement:this._colorPicker.domNode,dispose(){i.disposables.dispose()}};return new N.Ke([s])}handleResize(){this._colorPicker?.layout()}isColorPickerVisible(){return!!this._colorPicker}};P=O([D(1,I.Gy)],P);class F{constructor(e,t,i,s){this.owner=e,this.range=t,this.model=i,this.provider=s}}let U=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}async createColorHover(e,t,i){if(!this._editor.hasModel())return null;if(!c.mn.get(this._editor))return null;const s=await(0,l.j)(i,this._editor.getModel(),n.XO.None);let r=null,o=null;for(const n of s){const t=n.colorInfo;a.Q.containsRange(t.range,e.range)&&(r=t,o=n.provider)}const h=r??e,d=o??t,u=!!r;return{colorHover:await H(this,this._editor.getModel(),h,d),foundInEditor:u}}async updateEditorModel(e){if(!this._editor.hasModel())return;const t=e.model;let i=new a.Q(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(await V(this._editor.getModel(),t,this._color,i,e),i=W(this._editor,i,t))}renderHoverParts(e,t){return B(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};async function H(e,t,i,s){const o=t.getValueInRange(i.range),{red:c,green:h,blue:u,alpha:g}=i.color,p=new r.bU(Math.round(255*c),Math.round(255*h),Math.round(255*u),g),m=new r.Q1(p),f=await(0,l.R)(t,i,s,n.XO.None),_=new d(m,[],0);return _.colorPresentations=f||[],_.guessColorPresentation(m,o),e instanceof P?new M(e,a.Q.lift(i.range),_,s):new F(e,a.Q.lift(i.range),_,s)}function B(e,t,i,s,n){if(0===s.length||!t.hasModel())return;if(n.setMinimumDimensions){const e=t.getOption(67)+8;n.setMinimumDimensions(new g.fg(302,e))}const r=new o.Cm,l=s[0],c=t.getModel(),h=l.model,d=r.add(new A(n.fragment,h,t.getOption(144),i,e instanceof U));let u=!1,p=new a.Q(l.range.startLineNumber,l.range.startColumn,l.range.endLineNumber,l.range.endColumn);if(e instanceof U){const t=l.model.color;e.color=t,V(c,h,t,p,l),r.add(h.onColorFlushed((t=>{e.color=t})))}else r.add(h.onColorFlushed((async e=>{await V(c,h,e,p,l),u=!0,p=W(t,p,h)})));return r.add(h.onDidChangeColor((e=>{V(c,h,e,p,l)}))),r.add(t.onDidChangeModelContent((e=>{u?u=!1:(n.hide(),t.focus())}))),{hoverPart:l,colorPicker:d,disposables:r}}function W(e,t,i){const s=[],n=i.presentation.textEdit??{range:t,text:i.presentation.label,forceMoveMarkers:!1};s.push(n),i.presentation.additionalTextEdits&&s.push(...i.presentation.additionalTextEdits);const r=a.Q.lift(n.range),o=e.getModel()._setTrackedRange(null,r,3);return e.executeEdits("colorpicker",s),e.pushUndoStop(),e.getModel()._getTrackedRange(o)??r}async function V(e,t,i,s,r){const o=await(0,l.R)(e,{range:s,color:{red:i.rgba.r/255,green:i.rgba.g/255,blue:i.rgba.b/255,alpha:i.rgba.a}},r.provider,n.XO.None);t.colorPresentations=o||[]}U=O([D(1,I.Gy)],U)},52363:(e,t,i)=>{"use strict";i.d(t,{L:()=>h});var s=i(47661),n=i(5662),r=i(56942),o=i(72466),a=i(10920),l=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},c=function(e,t){return function(i,s){t(i,s,e)}};let h=class{constructor(e){this._editorWorkerService=e}async provideDocumentColors(e,t){return this._editorWorkerService.computeDefaultDocumentColors(e.uri)}provideColorPresentations(e,t,i){const n=t.range,r=t.color,o=r.alpha,a=new s.Q1(new s.bU(Math.round(255*r.red),Math.round(255*r.green),Math.round(255*r.blue),o)),l=o?s.Q1.Format.CSS.formatRGB(a):s.Q1.Format.CSS.formatRGBA(a),c=o?s.Q1.Format.CSS.formatHSL(a):s.Q1.Format.CSS.formatHSLA(a),h=o?s.Q1.Format.CSS.formatHex(a):s.Q1.Format.CSS.formatHexA(a),d=[];return d.push({label:l,textEdit:{range:n,text:l}}),d.push({label:c,textEdit:{range:n,text:c}}),d.push({label:h,textEdit:{range:n,text:h}}),d}};h=l([c(0,a.IEditorWorkerService)],h);let d=class extends n.jG{constructor(e,t){super(),this._register(e.colorProvider.register("*",new h(t)))}};d=l([c(0,r.ILanguageFeaturesService),c(1,a.IEditorWorkerService)],d),(0,o.x)(d)},99822:(e,t,i)=>{"use strict";var s,n,r=i(31450),o=i(78209),a=i(5662),l=i(28712),c=i(63591),h=i(9270),d=i(98031),u=i(41234),g=i(56942),p=i(60002),m=i(32848),f=i(52363),_=i(8597),v=(i(53396),i(10920)),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},b=function(e,t){return function(i,s){t(i,s,e)}};let E=class extends a.jG{static{s=this}static{this.ID="editor.contrib.standaloneColorPickerController"}constructor(e,t,i){super(),this._editor=e,this._instantiationService=i,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=p.R.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=p.R.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||this._standaloneColorPickerWidget?.focus():this._standaloneColorPickerWidget=this._instantiationService.createInstance(S,this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused))}hide(){this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerWidget?.hide(),this._editor.focus()}insertColor(){this._standaloneColorPickerWidget?.updateEditor(),this.hide()}static get(e){return e.getContribution(s.ID)}};E=s=C([b(1,m.fN),b(2,c._Y)],E),(0,r.HW)(E.ID,E,1);let S=class extends a.jG{static{n=this}static{this.ID="editor.contrib.standaloneColorPickerWidget"}constructor(e,t,i,s,n,r,o){super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._keybindingService=n,this._languageFeaturesService=r,this._editorWorkerService=o,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new u.vl),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=s.createInstance(l.WE,this._editor),this._position=this._editor._getViewModel()?.getPrimaryCursorState().modelState.position;const a=this._editor.getSelection(),c=a?{startLineNumber:a.startLineNumber,startColumn:a.startColumn,endLineNumber:a.endLineNumber,endColumn:a.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},h=this._register(_.w5(this._body));this._register(h.onDidBlur((e=>{this.hide()}))),this._register(h.onDidFocus((e=>{this.focus()}))),this._register(this._editor.onDidChangeCursorPosition((()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()}))),this._register(this._editor.onMouseMove((e=>{const t=e.target.element?.classList;t&&t.contains("colorpicker-color-decoration")&&this.hide()}))),this._register(this.onResult((e=>{this._render(e.value,e.foundInEditor)}))),this._start(c),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return n.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(e){const t=await this._computeAsync(e);t&&this._onResult.fire(new y(t.result,t.foundInEditor))}async _computeAsync(e){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},i=await this._standaloneColorPickerParticipant.createColorHover(t,new f.L(this._editorWorkerService),this._languageFeaturesService.colorProvider);return i?{result:i.colorHover,foundInEditor:i.foundInEditor}:null}_render(e,t){const i=document.createDocumentFragment(),s={fragment:i,statusBar:this._register(new h.L(this._keybindingService)),onContentsChanged:()=>{},hide:()=>this.hide()};this._colorHover=e;const n=this._standaloneColorPickerParticipant.renderHoverParts(s,[e]);if(!n)return;this._register(n.disposables);const r=n.colorPicker;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px",this._body.tabIndex=0,this._body.appendChild(i),r.layout();const o=r.body,a=o.saturationBox.domNode.clientWidth,l=o.domNode.clientWidth-a-22-8,c=r.body.enterButton;c?.onClicked((()=>{this.updateEditor(),this.hide()}));const d=r.header;d.pickedColorNode.style.width=a+8+"px";d.originalColorNode.style.width=l+"px";const u=r.header.closeButton;u?.onClicked((()=>{this.hide()})),t&&(c&&(c.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};S=n=C([b(3,c._Y),b(4,d.b),b(5,g.ILanguageFeaturesService),b(6,v.IEditorWorkerService)],S);class y{constructor(e,t){this.value=e,this.foundInEditor=t}}var w=i(27195);class L extends r.qO{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...(0,o.aS)("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:(0,o.kg)({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:w.D8.CommandPalette}],metadata:{description:(0,o.aS)("showOrFocusStandaloneColorPickerDescription","Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors.")}})}runEditorCommand(e,t){E.get(t)?.showOrFocus()}}class R extends r.ks{constructor(){super({id:"editor.action.hideColorPicker",label:(0,o.kg)({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:p.R.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100},metadata:{description:(0,o.aS)("hideColorPickerDescription","Hide the standalone color picker.")}})}run(e,t){E.get(t)?.hide()}}class T extends r.ks{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:(0,o.kg)({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:p.R.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100},metadata:{description:(0,o.aS)("insertColorWithStandaloneColorPickerDescription","Insert hex/rgb/hsl colors with the focused standalone color picker.")}})}run(e,t){E.get(t)?.insertColor()}}(0,r.Fl)(R),(0,r.Fl)(T),(0,w.ug)(L)},40142:(e,t,i)=>{"use strict";var s=i(24939),n=i(31450),r=i(36677),o=i(60002),a=i(17469),l=i(7085),c=i(83069),h=i(75326);class d{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const s=t.length;if(i+s>e.length)return!1;for(let n=0;n<s;n++){const s=e.charCodeAt(i+n),r=t.charCodeAt(n);if(s!==r&&(!(s>=65&&s<=90&&s+32===r)&&!(r>=65&&r<=90&&r+32===s)))return!1}return!0}_createOperationsForBlockComment(e,t,i,s,n,o){const a=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,h=e.endColumn,u=n.getLineContent(a),g=n.getLineContent(c);let p,m=u.lastIndexOf(t,l-1+t.length),f=g.indexOf(i,h-1-i.length);if(-1!==m&&-1!==f)if(a===c){u.substring(m+t.length,f).indexOf(i)>=0&&(m=-1,f=-1)}else{const e=u.substring(m+t.length),s=g.substring(0,f);(e.indexOf(i)>=0||s.indexOf(i)>=0)&&(m=-1,f=-1)}-1!==m&&-1!==f?(s&&m+t.length<u.length&&32===u.charCodeAt(m+t.length)&&(t+=" "),s&&f>0&&32===g.charCodeAt(f-1)&&(i=" "+i,f-=1),p=d._createRemoveBlockCommentOperations(new r.Q(a,m+t.length+1,c,f+1),t,i)):(p=d._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===p.length?i:null);for(const r of p)o.addTrackedEditOperation(r.range,r.text)}static _createRemoveBlockCommentOperations(e,t,i){const s=[];return r.Q.isEmpty(e)?s.push(l.k.delete(new r.Q(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(s.push(l.k.delete(new r.Q(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),s.push(l.k.delete(new r.Q(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),s}static _createAddBlockCommentOperations(e,t,i,s){const n=[];return r.Q.isEmpty(e)?n.push(l.k.replace(new r.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(n.push(l.k.insert(new c.y(e.startLineNumber,e.startColumn),t+(s?" ":""))),n.push(l.k.insert(new c.y(e.endLineNumber,e.endColumn),(s?" ":"")+i))),n}getEditOperations(e,t){const i=this._selection.startLineNumber,s=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const n=e.getLanguageIdAtPosition(i,s),r=this.languageConfigurationService.getLanguageConfiguration(n).comments;r&&r.blockCommentStartToken&&r.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2===i.length){const e=i[0],t=i[1];return new h.L(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=i[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new h.L(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}var u=i(91508);class g{constructor(e,t,i,s,n,r,o){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=s,this._insertSpace=n,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=o||!1}static _gatherPreflightCommentStrings(e,t,i,s){e.tokenization.tokenizeIfCheap(t);const n=e.getLanguageIdAtPosition(t,1),r=s.getLanguageConfiguration(n).comments,o=r?r.lineCommentToken:null;if(!o)return null;const a=[];for(let l=0,c=i-t+1;l<c;l++)a[l]={ignore:!1,commentStr:o,commentStrOffset:0,commentStrLength:o.length};return a}static _analyzeLines(e,t,i,s,n,r,o,a){let l,c=!0;l=0===e||1!==e;for(let h=0,g=s.length;h<g;h++){const a=s[h],g=n+h;if(g===n&&o){a.ignore=!0;continue}const p=i.getLineContent(g),m=u.HG(p);if(-1!==m){if(c=!1,a.ignore=!1,a.commentStrOffset=m,l&&!d._haystackHasNeedleAtOffset(p,a.commentStr,m)&&(0===e?l=!1:1===e||(a.ignore=!0)),l&&t){const e=m+a.commentStrLength;e<p.length&&32===p.charCodeAt(e)&&(a.commentStrLength+=1)}}else a.ignore=r,a.commentStrOffset=p.length}if(0===e&&c){l=!1;for(let e=0,t=s.length;e<t;e++)s[e].ignore=!1}return{supported:!0,shouldRemoveComments:l,lines:s}}static _gatherPreflightData(e,t,i,s,n,r,o,a){const l=g._gatherPreflightCommentStrings(i,s,n,a);return null===l?{supported:!1}:g._analyzeLines(e,t,i,l,s,r,o,a)}_executeLineComments(e,t,i,s){let n;i.shouldRemoveComments?n=g._createRemoveLineCommentsOperations(i.lines,s.startLineNumber):(g._normalizeInsertionPoint(e,i.lines,s.startLineNumber,this._indentSize),n=this._createAddLineCommentsOperations(i.lines,s.startLineNumber));const o=new c.y(s.positionLineNumber,s.positionColumn);for(let a=0,l=n.length;a<l;a++)if(t.addEditOperation(n[a].range,n[a].text),r.Q.isEmpty(n[a].range)&&r.Q.getStartPosition(n[a].range).equals(o)){e.getLineContent(o.lineNumber).length+1===o.column&&(this._deltaColumn=(n[a].text||"").length)}this._selectionId=t.trackSelection(s)}_attemptRemoveBlockComment(e,t,i,s){let n=t.startLineNumber,o=t.endLineNumber;const a=s.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn);let l=e.getLineContent(n).lastIndexOf(i,a-1),c=e.getLineContent(o).indexOf(s,t.endColumn-1-i.length);return-1!==l&&-1===c&&(c=e.getLineContent(n).indexOf(s,l+i.length),o=n),-1===l&&-1!==c&&(l=e.getLineContent(o).lastIndexOf(i,c),n=o),!t.isEmpty()||-1!==l&&-1!==c||(l=e.getLineContent(n).indexOf(i),-1!==l&&(c=e.getLineContent(n).indexOf(s,l+i.length))),-1!==l&&32===e.getLineContent(n).charCodeAt(l+i.length)&&(i+=" "),-1!==c&&32===e.getLineContent(o).charCodeAt(c-1)&&(s=" "+s,c-=1),-1!==l&&-1!==c?d._createRemoveBlockCommentOperations(new r.Q(n,l+i.length+1,o,c+1),i,s):null}_executeBlockComment(e,t,i){e.tokenization.tokenizeIfCheap(i.startLineNumber);const s=e.getLanguageIdAtPosition(i.startLineNumber,1),n=this.languageConfigurationService.getLanguageConfiguration(s).comments;if(!n||!n.blockCommentStartToken||!n.blockCommentEndToken)return;const o=n.blockCommentStartToken,a=n.blockCommentEndToken;let l=this._attemptRemoveBlockComment(e,i,o,a);if(!l){if(i.isEmpty()){const t=e.getLineContent(i.startLineNumber);let s=u.HG(t);-1===s&&(s=t.length),l=d._createAddBlockCommentOperations(new r.Q(i.startLineNumber,s+1,i.startLineNumber,t.length+1),o,a,this._insertSpace)}else l=d._createAddBlockCommentOperations(new r.Q(i.startLineNumber,e.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),o,a,this._insertSpace);1===l.length&&(this._deltaColumn=o.length+1)}this._selectionId=t.trackSelection(i);for(const r of l)t.addEditOperation(r.range,r.text)}getEditOperations(e,t){let i=this._selection;if(this._moveEndPositionDown=!1,i.startLineNumber===i.endLineNumber&&this._ignoreFirstLine)return t.addEditOperation(new r.Q(i.startLineNumber,e.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===e.getLineCount()?"":"\n"),void(this._selectionId=t.trackSelection(i));i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const s=g._gatherPreflightData(this._type,this._insertSpace,e,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return s.supported?this._executeLineComments(e,t,s,i):this._executeBlockComment(e,t,i)}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new h.L(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){const i=[];for(let s=0,n=e.length;s<n;s++){const n=e[s];n.ignore||i.push(l.k.delete(new r.Q(t+s,n.commentStrOffset+1,t+s,n.commentStrOffset+n.commentStrLength+1)))}return i}_createAddLineCommentsOperations(e,t){const i=[],s=this._insertSpace?" ":"";for(let n=0,r=e.length;n<r;n++){const r=e[n];r.ignore||i.push(l.k.insert(new c.y(t+n,r.commentStrOffset+1),r.commentStr+s))}return i}static nextVisibleColumn(e,t,i,s){return i?e+(t-e%t):e+s}static _normalizeInsertionPoint(e,t,i,s){let n,r,o=1073741824;for(let a=0,l=t.length;a<l;a++){if(t[a].ignore)continue;const n=e.getLineContent(i+a);let r=0;for(let e=0,i=t[a].commentStrOffset;r<o&&e<i;e++)r=g.nextVisibleColumn(r,s,9===n.charCodeAt(e),1);r<o&&(o=r)}o=Math.floor(o/s)*s;for(let a=0,l=t.length;a<l;a++){if(t[a].ignore)continue;const l=e.getLineContent(i+a);let c=0;for(n=0,r=t[a].commentStrOffset;c<o&&n<r;n++)c=g.nextVisibleColumn(c,s,9===l.charCodeAt(n),1);t[a].commentStrOffset=c>o?n-1:n}}}var p=i(78209),m=i(27195);class f extends n.ks{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(a.JZ);if(!t.hasModel())return;const s=[],n=t.getModel().getOptions(),o=t.getOption(23),l=t.getSelections().map(((e,t)=>({selection:e,index:t,ignoreFirstLine:!1})));l.sort(((e,t)=>r.Q.compareRangesUsingStarts(e.selection,t.selection)));let c=l[0];for(let r=1;r<l.length;r++){const e=l[r];c.selection.endLineNumber===e.selection.startLineNumber&&(c.index<e.index?e.ignoreFirstLine=!0:(c.ignoreFirstLine=!0,c=e))}for(const r of l)s.push(new g(i,r.selection,n.indentSize,this._type,o.insertSpace,o.ignoreEmptyLines,r.ignoreFirstLine));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class _ extends n.ks{constructor(){super({id:"editor.action.blockComment",label:p.kg("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:m.D8.MenubarEditMenu,group:"5_insert",title:p.kg({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){const i=e.get(a.JZ);if(!t.hasModel())return;const s=t.getOption(23),n=[],r=t.getSelections();for(const o of r)n.push(new d(o,s.insertSpace,i));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}(0,n.Fl)(class extends f{constructor(){super(0,{id:"editor.action.commentLine",label:p.kg("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:2138,weight:100},menuOpts:{menuId:m.D8.MenubarEditMenu,group:"5_insert",title:p.kg({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}),(0,n.Fl)(class extends f{constructor(){super(1,{id:"editor.action.addCommentLine",label:p.kg("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:(0,s.m5)(2089,2081),weight:100}})}}),(0,n.Fl)(class extends f{constructor(){super(2,{id:"editor.action.removeCommentLine",label:p.kg("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:o.R.writable,kbOpts:{kbExpr:o.R.editorTextFocus,primary:(0,s.m5)(2089,2099),weight:100}})}}),(0,n.Fl)(_)},18864:(e,t,i)=>{"use strict";i.d(t,{d:()=>b});var s,n=i(8597),r=i(5646),o=i(36921),a=i(5662),l=i(98067),c=i(31450),h=i(60002),d=i(78209),u=i(27195),g=i(32848),p=i(47508),m=i(98031),f=i(84001),_=i(37227),v=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},C=function(e,t){return function(i,s){t(i,s,e)}};let b=class{static{s=this}static{this.ID="editor.contrib.contextmenu"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,r,o,l,c){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=s,this._keybindingService=r,this._menuService=o,this._configurationService=l,this._workspaceContextService=c,this._toDispose=new a.Cm,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((e=>this._onContextMenu(e)))),this._toDispose.add(this._editor.onMouseWheel((e=>{if(this._contextMenuIsBeingShownCount>0){const t=this._contextViewService.getContextViewElement(),i=e.srcElement;i.shadowRoot&&n.jG(t)===i.shadowRoot||this._contextViewService.hideContextView()}}))),this._toDispose.add(this._editor.onKeyDown((e=>{this._editor.getOption(24)&&58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())})))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(24))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12===e.target.type)return;if(6===e.target.type&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),11===e.target.type)return this._showScrollbarContextMenu(e.event);if(6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(const i of this._editor.getSelections())if(i.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(24))return;if(!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.contextMenuId);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],s=this._menuService.getMenuActions(t,this._contextKeyService,{arg:e.uri});for(const n of s){const[,t]=n;let s=0;for(const n of t)if(n instanceof u.nI){const t=this._getMenuActions(e,n.item.submenu);t.length>0&&(i.push(new o.YH(n.id,n.label,t)),s++)}else i.push(n),s++;s&&i.push(new o.wv)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let s=t;if(!s){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),t=n.BK(this._editor.getDomNode()),i=t.left+e.left,r=t.top+e.top+e.height;s={x:i,y:r}}const o=this._editor.getOption(128)&&!l.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:o?this._editor.getOverflowWidgetsDomNode()??this._editor.getDomNode():void 0,getAnchor:()=>s,getActions:()=>e,getActionViewItem:e=>{const t=this._keybindingFor(e);if(t)return new r.Z4(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});const i=e;return"function"===typeof i.getActionViewItem?i.getActionViewItem():new r.Z4(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;if((0,_.ct)(this._workspaceContextService.getWorkspace()))return;const t=this._editor.getOption(73);let i=0;const s=e=>({id:"menu-action-"+ ++i,label:e.label,tooltip:"",class:void 0,enabled:"undefined"===typeof e.enabled||e.enabled,checked:e.checked,run:e.run}),n=(e,t,n,r,a)=>{if(!t)return s({label:e,enabled:t,run:()=>{}});const l=e=>()=>{this._configurationService.updateValue(n,e)},c=[];for(const i of a)c.push(s({label:i.label,checked:r===i.value,run:l(i.value)}));return((e,t)=>new o.YH("menu-action-"+ ++i,e,t,void 0))(e,c)},r=[];r.push(s({label:d.kg("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),r.push(new o.wv),r.push(s({label:d.kg("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),r.push(n(d.kg("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:d.kg("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:d.kg("context.minimap.size.fill","Fill"),value:"fill"},{label:d.kg("context.minimap.size.fit","Fit"),value:"fit"}])),r.push(n(d.kg("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:d.kg("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:d.kg("context.minimap.slider.always","Always"),value:"always"}]));const a=this._editor.getOption(128)&&!l.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:a?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>r,onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};b=s=v([C(1,p.Z),C(2,p.l),C(3,g.fN),C(4,m.b),C(5,u.ez),C(6,f.pG),C(7,_.VR)],b);class E extends c.ks{constructor(){super({id:"editor.action.showContextMenu",label:d.kg("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:h.R.textInputFocus,primary:1092,weight:100}})}run(e,t){b.get(t)?.showContextMenu()}}(0,c.HW)(b.ID,b,2),(0,c.Fl)(E)},32516:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450),r=i(60002),o=i(78209);class a{constructor(e){this.selections=e}equals(e){const t=this.selections.length;if(t!==e.selections.length)return!1;for(let i=0;i<t;i++)if(!this.selections[i].equalsSelection(e.selections[i]))return!1;return!0}}class l{constructor(e,t,i){this.cursorState=e,this.scrollTop=t,this.scrollLeft=i}}class c extends s.jG{static{this.ID="editor.contrib.cursorUndoRedoController"}static get(e){return e.getContribution(c.ID)}constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeModelContent((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeCursorSelection((t=>{if(this._isCursorUndoRedo)return;if(!t.oldSelections)return;if(t.oldModelVersionId!==t.modelVersionId)return;const i=new a(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new l(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())})))}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}class h extends n.ks{constructor(){super({id:"cursorUndo",label:o.kg("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:2099,weight:100}})}run(e,t,i){c.get(t)?.cursorUndo()}}class d extends n.ks{constructor(){super({id:"cursorRedo",label:o.kg("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){c.get(t)?.cursorRedo()}}(0,n.HW)(c.ID,c,0),(0,n.Fl)(h),(0,n.Fl)(d)},40800:(e,t,i)=>{"use strict";var s=i(25890),n=i(31308),r=i(34309),o=i(92368),a=i(56942),l=i(29999),c=i(5662),h=i(41234),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class extends c.jG{constructor(e,t,i){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=i,this._currentModel=(0,n.FY)(this,void 0);const s=(0,n.yQ)("documentSymbolProvider.onDidChange",this._languageFeaturesService.documentSymbolProvider.onDidChange),r=(0,n.yQ)("_textModel.onDidChangeContent",h.Jh.debounce((e=>this._textModel.onDidChangeContent(e)),(()=>{}),100));this._register((0,n.yC)((async(e,t)=>{s.read(e),r.read(e);const i=t.add(new o.MZ),n=await this._outlineModelService.getOrCreate(this._textModel,i.token);t.isDisposed||this._currentModel.set(n,void 0)})))}getBreadcrumbItems(e,t){const i=this._currentModel.read(t);if(!i)return[];const n=i.asListOfDocumentSymbols().filter((t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber)));return n.sort((0,s.Hw)((0,s.VE)((e=>e.range.endLineNumber-e.range.startLineNumber),s.U9))),n.map((e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber})))}};g=d([u(1,a.ILanguageFeaturesService),u(2,l.gW)],g),r.N.setBreadcrumbsSourceFactory(((e,t)=>t.createInstance(g,e)))},2183:(e,t,i)=>{"use strict";var s=i(5662),n=i(98067),r=i(31450),o=i(83069),a=i(36677),l=i(75326),c=i(87289);class h{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a.Q(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new l.L(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new l.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new l.L(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new l.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new l.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection}computeCursorState(e,t){return this.targetSelection}}function d(e){return n.zx?e.altKey:e.ctrlKey}class u extends s.jG{static{this.ID="editor.contrib.dragAndDrop"}static{this.TRIGGER_KEY_VALUE=n.zx?6:5}constructor(e){super(),this._editor=e,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(e)))),this._register(this._editor.onMouseDrag((e=>this._onEditorMouseDrag(e)))),this._register(this._editor.onMouseDrop((e=>this._onEditorMouseDrop(e)))),this._register(this._editor.onMouseDropCanceled((()=>this._onEditorMouseDropCanceled()))),this._register(this._editor.onKeyDown((e=>this.onEditorKeyDown(e)))),this._register(this._editor.onKeyUp((e=>this.onEditorKeyUp(e)))),this._register(this._editor.onDidBlurEditorWidget((()=>this.onEditorBlur()))),this._register(this._editor.onDidBlurEditorText((()=>this.onEditorBlur()))),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(d(e)&&(this._modifierPressed=!0),this._mouseDown&&d(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(d(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===u.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(null===this._dragSelection){const e=(this._editor.getSelections()||[]).filter((e=>t.position&&e.containsPosition(t.position)));if(1!==e.length)return;this._dragSelection=e[0]}d(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new o.y(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let i=null;if(e.event.shiftKey){const e=this._editor.getSelection();if(e){const{selectionStartLineNumber:s,selectionStartColumn:n}=e;i=[new l.L(s,n,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map((e=>e.containsPosition(t)?new l.L(t.lineNumber,t.column,t.lineNumber,t.column):e));this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(d(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(u.ID,new h(this._dragSelection,t,d(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}static{this._DECORATION_OPTIONS=c.kI.register({description:"dnd-target",className:"dnd-target"})}showAt(e){this._dndDecorationIds.set([{range:new a.Q(e.lineNumber,e.column,e.lineNumber,e.column),options:u._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}(0,r.HW)(u.ID,u,2)},58568:(e,t,i)=>{"use strict";var s=i(18447),n=i(631),r=i(79400),o=i(18938),a=i(29999);i(50091).w.registerCommand("_executeDocumentSymbolProvider",(async function(e,...t){const[i]=t;(0,n.j)(r.r.isUri(i));const l=e.get(a.gW),c=e.get(o.ITextModelService),h=await c.createModelReference(i);try{return(await l.getOrCreate(h.object.textEditorModel,s.XO.None)).getTopLevelSymbols()}finally{h.dispose()}}))},29999:(e,t,i)=>{"use strict";i.d(t,{LC:()=>C,e0:()=>b,gW:()=>S,i9:()=>E});var s=i(25890),n=i(18447),r=i(64383),o=i(42522),a=i(74320),l=i(83069),c=i(36677),h=i(32500),d=i(63591),u=i(14718),g=i(23750),p=i(5662),m=i(56942),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};class v{remove(){this.parent?.children.delete(this.id)}static findId(e,t){let i;"string"===typeof e?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,void 0!==t.children.get(i)&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let s=i;for(let n=0;void 0!==t.children.get(s);n++)s=`${i}_${n}`;return s}static empty(e){return 0===e.children.size}}class C extends v{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class b extends v{constructor(e,t,i,s){super(),this.id=e,this.parent=t,this.label=i,this.order=s,this.children=new Map}}class E extends v{static create(e,t,i){const o=new n.Qi(i),a=new E(t.uri),l=e.ordered(t),c=l.map(((e,i)=>{const s=v.findId(`provider_${i}`,a),n=new b(s,a,e.displayName??"Unknown Outline Provider",i);return Promise.resolve(e.provideDocumentSymbols(t,o.token)).then((e=>{for(const t of e||[])E._makeOutlineElement(t,n);return n}),(e=>((0,r.M_)(e),n))).then((e=>{v.empty(e)?e.remove():a._groups.set(s,e)}))})),h=e.onDidChange((()=>{const i=e.ordered(t);(0,s.aI)(i,l)||o.cancel()}));return Promise.all(c).then((()=>o.token.isCancellationRequested&&!i.isCancellationRequested?E.create(e,t,i):a._compact())).finally((()=>{o.dispose(),h.dispose(),o.dispose()}))}static _makeOutlineElement(e,t){const i=v.findId(e,t),s=new C(i,t,e);if(e.children)for(const n of e.children)E._makeOutlineElement(n,s);t.children.set(s.id,s)}constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let e=0;for(const[t,i]of this._groups)0===i.children.size?this._groups.delete(t):e+=1;if(1!==e)this.children=this._groups;else{const e=o.f.first(this._groups.values());for(const[,t]of e.children)t.parent=this,this.children.set(t.id,t)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof C?e.push(t.symbol):e.push(...o.f.map(t.children.values(),(e=>e.symbol)));return e.sort(((e,t)=>c.Q.compareRangesUsingStarts(e.range,t.range)))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return E._flattenDocumentSymbols(t,e,""),t.sort(((e,t)=>l.y.compare(c.Q.getStartPosition(e.range),c.Q.getStartPosition(t.range))||l.y.compare(c.Q.getEndPosition(t.range),c.Q.getEndPosition(e.range))))}static _flattenDocumentSymbols(e,t,i){for(const s of t)e.push({kind:s.kind,tags:s.tags,name:s.name,detail:s.detail,containerName:s.containerName||i,range:s.range,selectionRange:s.selectionRange,children:void 0}),s.children&&E._flattenDocumentSymbols(e,s.children,s.name)}}const S=(0,d.u1)("IOutlineModelService");let y=class{constructor(e,t,i){this._languageFeaturesService=e,this._disposables=new p.Cm,this._cache=new a.qK(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved((e=>{this._cache.delete(e.id)})))}dispose(){this._disposables.dispose()}async getOrCreate(e,t){const i=this._languageFeaturesService.documentSymbolProvider,r=i.ordered(e);let o=this._cache.get(e.id);if(!o||o.versionId!==e.getVersionId()||!(0,s.aI)(o.provider,r)){const t=new n.Qi;o={versionId:e.getVersionId(),provider:r,promiseCnt:0,source:t,promise:E.create(i,e,t.token),model:void 0},this._cache.set(e.id,o);const s=Date.now();o.promise.then((t=>{o.model=t,this._debounceInformation.update(e,Date.now()-s)})).catch((t=>{this._cache.delete(e.id)}))}if(o.model)return o.model;o.promiseCnt+=1;const a=t.onCancellationRequested((()=>{0===--o.promiseCnt&&(o.source.cancel(),this._cache.delete(e.id))}));try{return await o.promise}finally{a.dispose()}}};y=f([_(0,m.ILanguageFeaturesService),_(1,h.ILanguageFeatureDebounceService),_(2,g.IModelService)],y),(0,u.v)(S,y,1)},63867:(e,t,i)=>{"use strict";var s=i(8995),n=i(31450),r=i(60002),o=i(72466),a=i(55433),l=i(90208),c=i(78209);(0,n.HW)(a.Rj.ID,a.Rj,0),(0,o.x)(l.L9),(0,n.E_)(new class extends n.DX{constructor(){super({id:a.qs,precondition:a.lr,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t){return a.Rj.get(t)?.changePasteType()}}),(0,n.E_)(new class extends n.DX{constructor(){super({id:"editor.hidePasteWidget",precondition:a.lr,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t){a.Rj.get(t)?.clearWidgets()}}),(0,n.Fl)(class e extends n.ks{static{this.argsSchema={type:"object",properties:{kind:{type:"string",description:c.kg("pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}}}constructor(){super({id:"editor.action.pasteAs",label:c.kg("pasteAs","Paste As..."),alias:"Paste As...",precondition:r.R.writable,metadata:{description:"Paste as",args:[{name:"args",schema:e.argsSchema}]}})}run(e,t,i){let n="string"===typeof i?.kind?i.kind:void 0;return!n&&i&&(n="string"===typeof i.id?i.id:void 0),a.Rj.get(t)?.pasteAs(n?new s.k(n):void 0)}}),(0,n.Fl)(class extends n.ks{constructor(){super({id:"editor.action.pasteAsText",label:c.kg("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:r.R.writable})}run(e,t){return a.Rj.get(t)?.pasteAs({providerId:l.LR.id})}})},55433:(e,t,i)=>{"use strict";i.d(t,{Rj:()=>U,lr:()=>P,qs:()=>M});var s,n=i(8597),r=i(25890),o=i(90766),a=i(18447),l=i(17799),c=i(8995),h=i(5662),d=i(44320),u=i(98067),g=i(58255),p=i(68792),m=i(85411),f=i(80537),_=i(36677),v=i(62083),C=i(56942),b=i(90208),E=i(85541),S=i(50868),y=i(9948),w=i(99645),L=i(78209),R=i(54770),T=i(32848),x=i(63591),k=i(73823),A=i(51467),N=i(56687),I=i(64383),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};const M="editor.changePasteType",P=new T.N1("pasteWidgetVisible",!1,(0,L.kg)("pasteWidgetVisible","Whether the paste widget is showing")),F="application/vnd.code.copyMetadata";let U=class extends h.jG{static{s=this}static{this.ID="editor.contrib.copyPasteActionController"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,r,o,a){super(),this._bulkEditService=i,this._clipboardService=s,this._languageFeaturesService=r,this._quickInputService=o,this._progressService=a,this._editor=e;const l=e.getContainerDomNode();this._register((0,n.ko)(l,"copy",(e=>this.handleCopy(e)))),this._register((0,n.ko)(l,"cut",(e=>this.handleCopy(e)))),this._register((0,n.ko)(l,"paste",(e=>this.handlePaste(e)),!0)),this._pasteProgressManager=this._register(new y.I("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(N.G,"pasteIntoEditor",e,P,{id:M,label:(0,L.kg)("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferred:e},(0,n.a)().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled}async finishedPaste(){await this._currentPasteOperation}handleCopy(e){if(!this._editor.hasTextFocus())return;if(this._clipboardService.clearInternalState?.(),!e.clipboardData||!this.isPasteAsEnabled())return;const t=this._editor.getModel(),i=this._editor.getSelections();if(!t||!i?.length)return;const n=this._editor.getOption(37);let a=i;const l=1===i.length&&i[0].isEmpty();if(l){if(!n)return;a=[new _.Q(a[0].startLineNumber,1,a[0].startLineNumber,1+t.getLineLength(a[0].startLineNumber))]}const c=this._editor._getViewModel()?.getPlainTextToCopy(i,n,u.uF),h={multicursorText:Array.isArray(c)?c:null,pasteOnNewLine:l,mode:null},d=this._languageFeaturesService.documentPasteEditProvider.ordered(t).filter((e=>!!e.prepareDocumentPaste));if(!d.length)return void this.setCopyMetadata(e.clipboardData,{defaultPastePayload:h});const p=(0,m.q)(e.clipboardData),f=d.flatMap((e=>e.copyMimeTypes??[])),v=(0,g.b)();this.setCopyMetadata(e.clipboardData,{id:v,providerCopyMimeTypes:f,defaultPastePayload:h});const C=(0,o.SS)((async e=>{const i=(0,r.Yc)(await Promise.all(d.map((async i=>{try{return await i.prepareDocumentPaste(t,a,p,e)}catch(s){return void console.error(s)}}))));i.reverse();for(const t of i)for(const[e,i]of t)p.replace(e,i);return p}));s._currentCopyOperation?.dataTransferPromise.cancel(),s._currentCopyOperation={handle:v,dataTransferPromise:C}}async handlePaste(e){if(!e.clipboardData||!this._editor.hasTextFocus())return;w.k.get(this._editor)?.closeMessage(),this._currentPasteOperation?.cancel(),this._currentPasteOperation=void 0;const t=this._editor.getModel(),i=this._editor.getSelections();if(!i?.length||!t)return;if(this._editor.getOption(92)||!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const s=this.fetchCopyMetadata(e),n=(0,m.l)(e.clipboardData);n.delete(F);const r=[...e.clipboardData.types,...s?.providerCopyMimeTypes??[],d.K.uriList],o=this._languageFeaturesService.documentPasteEditProvider.ordered(t).filter((e=>{const t=this._pasteAsActionContext?.preferred;return!(t&&e.providedPasteEditKinds&&!this.providerMatchesPreference(e,t))&&e.pasteMimeTypes?.some((e=>(0,l.Y)(e,r)))}));o.length?(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,o,i,n,s):this.doPasteInline(o,i,n,s,e)):this._pasteAsActionContext?.preferred&&this.showPasteAsNoEditMessage(i,this._pasteAsActionContext.preferred)}showPasteAsNoEditMessage(e,t){w.k.get(this._editor)?.showMessage((0,L.kg)("pasteAsError","No paste edits for '{0}' found",t instanceof c.k?t.value:t.providerId),e[0].getStartPosition())}doPasteInline(e,t,i,s,n){const r=this._editor;if(!r.hasModel())return;const l=new S.gI(r,3,void 0),c=(0,o.SS)((async r=>{const d=this._editor;if(!d.hasModel())return;const u=d.getModel(),g=new h.Cm,p=g.add(new a.Qi(r));g.add(l.token.onCancellationRequested((()=>p.cancel())));const m=p.token;try{if(await this.mergeInDataFromCopy(i,s,m),m.isCancellationRequested)return;const r=e.filter((e=>this.isSupportedPasteProvider(e,i)));if(!r.length||1===r.length&&r[0]instanceof b.LR)return this.applyDefaultPasteHandler(i,s,m,n);const a={triggerKind:v.FX.Automatic},l=await this.getPasteEdits(r,i,u,t,a,m);if(g.add(l),m.isCancellationRequested)return;if(1===l.edits.length&&l.edits[0].provider instanceof b.LR)return this.applyDefaultPasteHandler(i,s,m,n);if(l.edits.length){const e="afterPaste"===d.getOption(85).showPasteSelector;return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:l.edits},e,((e,i)=>new Promise(((s,n)=>{(async()=>{try{const r=e.provider.resolveDocumentPasteEdit?.(e,i),a=new o.Zv,l=r&&await this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,L.kg)("resolveProcess","Resolving paste edit. Click to cancel"),Promise.race([a.p,r]),{cancel:()=>(a.cancel(),n(new I.AL))},0);return l&&(e.additionalEdit=l.additionalEdit),s(e)}catch(r){return n(r)}})()}))),m)}await this.applyDefaultPasteHandler(i,s,m,n)}finally{g.dispose(),this._currentPasteOperation===c&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,L.kg)("pasteIntoEditorProgress","Running paste handlers. Click to cancel and do basic paste"),c,{cancel:async()=>{try{if(c.cancel(),l.token.isCancellationRequested)return;await this.applyDefaultPasteHandler(i,s,l.token,n)}finally{l.dispose()}}}).then((()=>{l.dispose()})),this._currentPasteOperation=c}showPasteAsPick(e,t,i,s,n){const r=(0,o.SS)((async o=>{const a=this._editor;if(!a.hasModel())return;const l=a.getModel(),d=new h.Cm,u=d.add(new S.gI(a,3,void 0,o));try{if(await this.mergeInDataFromCopy(s,n,u.token),u.token.isCancellationRequested)return;let r=t.filter((t=>this.isSupportedPasteProvider(t,s,e)));e&&(r=r.filter((t=>this.providerMatchesPreference(t,e))));const o={triggerKind:v.FX.PasteAs,only:e&&e instanceof c.k?e:void 0};let a,h=d.add(await this.getPasteEdits(r,s,l,i,o,u.token));if(u.token.isCancellationRequested)return;if(e&&(h={edits:h.edits.filter((t=>e instanceof c.k?e.contains(t.kind):e.providerId===t.provider.id)),dispose:h.dispose}),!h.edits.length)return void(o.only&&this.showPasteAsNoEditMessage(i,o.only));if(e)a=h.edits.at(0);else{const e=await this._quickInputService.pick(h.edits.map((e=>({label:e.title,description:e.kind?.value,edit:e}))),{placeHolder:(0,L.kg)("pasteAsPickerPlaceholder","Select Paste Action")});a=e?.edit}if(!a)return;const g=(0,E.v)(l.uri,i,a);await this._bulkEditService.apply(g,{editor:this._editor})}finally{d.dispose(),this._currentPasteOperation===r&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:(0,L.kg)("pasteAsProgress","Running paste handlers")},(()=>r))}setCopyMetadata(e,t){e.setData(F,JSON.stringify(t))}fetchCopyMetadata(e){if(!e.clipboardData)return;const t=e.clipboardData.getData(F);if(t)try{return JSON.parse(t)}catch{return}const[i,s]=p.Mz.getTextData(e.clipboardData);return s?{defaultPastePayload:{mode:s.mode,multicursorText:s.multicursorText??null,pasteOnNewLine:!!s.isFromEmptySelection}}:void 0}async mergeInDataFromCopy(e,t,i){if(t?.id&&s._currentCopyOperation?.handle===t.id){const t=await s._currentCopyOperation.dataTransferPromise;if(i.isCancellationRequested)return;for(const[i,s]of t)e.replace(i,s)}if(!e.has(d.K.uriList)){const t=await this._clipboardService.readResources();if(i.isCancellationRequested)return;t.length&&e.append(d.K.uriList,(0,l.gf)(l.jt.create(t)))}}async getPasteEdits(e,t,i,s,n,a){const l=new h.Cm,c=await(0,o.PK)(Promise.all(e.map((async e=>{try{const r=await(e.provideDocumentPasteEdits?.(i,s,t,n,a));return r&&l.add(r),r?.edits?.map((t=>({...t,provider:e})))}catch(r){return void((0,I.MB)(r)||console.error(r))}}))),a),d=(0,r.Yc)(c??[]).flat().filter((e=>!n.only||n.only.contains(e.kind)));return{edits:(0,E.H)(d),dispose:()=>l.dispose()}}async applyDefaultPasteHandler(e,t,i,s){const n=e.get(d.K.text)??e.get("text"),r=await(n?.asString())??"";if(i.isCancellationRequested)return;const o={clipboardEvent:s,text:r,pasteOnNewLine:t?.defaultPastePayload.pasteOnNewLine??!1,multicursorText:t?.defaultPastePayload.multicursorText??null,mode:null};this._editor.trigger("keyboard","paste",o)}isSupportedPasteProvider(e,t,i){return!!e.pasteMimeTypes?.some((e=>t.matches(e)))&&(!i||this.providerMatchesPreference(e,i))}providerMatchesPreference(e,t){return t instanceof c.k?!e.providedPasteEditKinds||e.providedPasteEditKinds.some((e=>t.contains(e))):e.id===t.providerId}};U=s=O([D(1,x._Y),D(2,f.nu),D(3,R.h),D(4,C.ILanguageFeaturesService),D(5,A.GK),D(6,k.G5)],U)},90208:(e,t,i)=>{"use strict";i.d(t,{L9:()=>w,LR:()=>v,ZR:()=>y});var s=i(25890),n=i(17799),r=i(8995),o=i(5662),a=i(44320),l=i(36456),c=i(89403),h=i(79400),d=i(62083),u=i(56942),g=i(78209),p=i(37227),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};class _{async provideDocumentPasteEdits(e,t,i,s,n){const r=await this.getEdit(i,n);if(r)return{edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,i,s){const n=await this.getEdit(i,s);if(n)return{edits:[{insertText:n.insertText,title:n.title,kind:n.kind,handledMimeType:n.handledMimeType,yieldTo:n.yieldTo}],dispose(){}}}}class v extends _{constructor(){super(...arguments),this.kind=v.kind,this.dropMimeTypes=[a.K.text],this.pasteMimeTypes=[a.K.text]}static{this.id="text"}static{this.kind=new r.k("text.plain")}async getEdit(e,t){const i=e.get(a.K.text);if(!i)return;if(e.has(a.K.uriList))return;const s=await i.asString();return{handledMimeType:a.K.text,title:(0,g.kg)("text.label","Insert Plain Text"),insertText:s,kind:this.kind}}}class C extends _{constructor(){super(...arguments),this.kind=new r.k("uri.absolute"),this.dropMimeTypes=[a.K.uriList],this.pasteMimeTypes=[a.K.uriList]}async getEdit(e,t){const i=await S(e);if(!i.length||t.isCancellationRequested)return;let s=0;const n=i.map((({uri:e,originalText:t})=>e.scheme===l.ny.file?e.fsPath:(s++,t))).join(" ");let r;return r=s>0?i.length>1?(0,g.kg)("defaultDropProvider.uriList.uris","Insert Uris"):(0,g.kg)("defaultDropProvider.uriList.uri","Insert Uri"):i.length>1?(0,g.kg)("defaultDropProvider.uriList.paths","Insert Paths"):(0,g.kg)("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:a.K.uriList,insertText:n,title:r,kind:this.kind}}}let b=class extends _{constructor(e){super(),this._workspaceContextService=e,this.kind=new r.k("uri.relative"),this.dropMimeTypes=[a.K.uriList],this.pasteMimeTypes=[a.K.uriList]}async getEdit(e,t){const i=await S(e);if(!i.length||t.isCancellationRequested)return;const n=(0,s.Yc)(i.map((({uri:e})=>{const t=this._workspaceContextService.getWorkspaceFolder(e);return t?(0,c.iZ)(t.uri,e):void 0})));return n.length?{handledMimeType:a.K.uriList,insertText:n.join(" "),title:i.length>1?(0,g.kg)("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):(0,g.kg)("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}:void 0}};b=m([f(0,p.VR)],b);class E{constructor(){this.kind=new r.k("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:a.K.text}]}async provideDocumentPasteEdits(e,t,i,s,n){if(s.triggerKind!==d.FX.PasteAs&&!s.only?.contains(this.kind))return;const r=i.get("text/html"),o=await(r?.asString());return o&&!n.isCancellationRequested?{dispose(){},edits:[{insertText:o,yieldTo:this._yieldTo,title:(0,g.kg)("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}:void 0}}async function S(e){const t=e.get(a.K.uriList);if(!t)return[];const i=await t.asString(),s=[];for(const r of n.jt.parse(i))try{s.push({uri:h.r.parse(r),originalText:r})}catch{}return s}let y=class extends o.jG{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new v)),this._register(e.documentDropEditProvider.register("*",new C)),this._register(e.documentDropEditProvider.register("*",new b(t)))}};y=m([f(0,u.ILanguageFeaturesService),f(1,p.VR)],y);let w=class extends o.jG{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new v)),this._register(e.documentPasteEditProvider.register("*",new C)),this._register(e.documentPasteEditProvider.register("*",new b(t))),this._register(e.documentPasteEditProvider.register("*",new E))}};w=m([f(0,u.ILanguageFeaturesService),f(1,p.VR)],w)},61731:(e,t,i)=>{"use strict";var s,n=i(31450),r=i(94371),o=i(72466),a=i(90208),l=i(78209),c=i(1646),h=i(46359),d=i(25890),u=i(90766),g=i(17799),p=i(8995),m=i(5662),f=i(85411),_=i(36677),v=i(56942),C=i(36723),b=i(29100),E=i(50868),S=i(9948),y=i(84001),w=i(32848),L=i(61292),R=i(63591),T=i(85541),x=i(56687),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};const N="editor.experimental.dropIntoEditor.defaultProvider",I="editor.changeDropType",O=new w.N1("dropWidgetVisible",!1,(0,l.kg)("dropWidgetVisible","Whether the drop widget is showing"));let D=class extends m.jG{static{s=this}static{this.ID="editor.contrib.dropIntoEditorController"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,n){super(),this._configService=i,this._languageFeaturesService=s,this._treeViewsDragAndDropService=n,this.treeItemsTransfer=L.PD.getInstance(),this._dropProgressManager=this._register(t.createInstance(S.I,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(x.G,"dropIntoEditor",e,O,{id:I,label:(0,l.kg)("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor((t=>this.onDropIntoEditor(e,t.position,t.event))))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(e,t,i){if(!i.dataTransfer||!e.hasModel())return;this._currentOperation?.cancel(),e.focus(),e.setPosition(t);const s=(0,u.SS)((async n=>{const r=new m.Cm,o=r.add(new E.gI(e,1,void 0,n));try{const s=await this.extractDataTransferData(i);if(0===s.size||o.token.isCancellationRequested)return;const a=e.getModel();if(!a)return;const l=this._languageFeaturesService.documentDropEditProvider.ordered(a).filter((e=>!e.dropMimeTypes||e.dropMimeTypes.some((e=>s.matches(e))))),c=r.add(await this.getDropEdits(l,a,t,s,o));if(o.token.isCancellationRequested)return;if(c.edits.length){const i=this.getInitialActiveEditIndex(a,c.edits),s="afterDrop"===e.getOption(36).showDropSelector;await this._postDropWidgetManager.applyEditAndShowIfNeeded([_.Q.fromPositions(t)],{activeEditIndex:i,allEdits:c.edits},s,(async e=>e),n)}}finally{r.dispose(),this._currentOperation===s&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,(0,l.kg)("dropIntoEditorProgress","Running drop handlers. Click to cancel"),s,{cancel:()=>s.cancel()}),this._currentOperation=s}async getDropEdits(e,t,i,s,n){const r=new m.Cm,o=await(0,u.PK)(Promise.all(e.map((async e=>{try{const o=await e.provideDocumentDropEdits(t,i,s,n.token);return o&&r.add(o),o?.edits.map((t=>({...t,providerId:e.id})))}catch(o){console.error(o)}}))),n.token),a=(0,d.Yc)(o??[]).flat();return{edits:(0,T.H)(a),dispose:()=>r.dispose()}}getInitialActiveEditIndex(e,t){const i=this._configService.getValue(N,{resource:e.uri});for(const[s,n]of Object.entries(i)){const e=new p.k(n),i=t.findIndex((t=>e.value===t.providerId&&t.handledMimeType&&(0,g.Y)(s,[t.handledMimeType])));if(i>=0)return i}return 0}async extractDataTransferData(e){if(!e.dataTransfer)return new g.Vq;const t=(0,f.l)(e.dataTransfer);if(this.treeItemsTransfer.hasData(C.DraggedTreeItemsIdentifier.prototype)){const e=this.treeItemsTransfer.getData(C.DraggedTreeItemsIdentifier.prototype);if(Array.isArray(e))for(const i of e){const e=await this._treeViewsDragAndDropService.removeDragOperationTransfer(i.identifier);if(e)for(const[i,s]of e)t.replace(i,s)}}return t}};D=s=k([A(1,R._Y),A(2,y.pG),A(3,v.ILanguageFeaturesService),A(4,b.ITreeViewsDnDService)],D),(0,n.HW)(D.ID,D,2),(0,o.x)(a.ZR),(0,n.E_)(new class extends n.DX{constructor(){super({id:I,precondition:O,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t,i){D.get(t)?.changeDropType()}}),(0,n.E_)(new class extends n.DX{constructor(){super({id:"editor.hideDropWidget",precondition:O,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t,i){D.get(t)?.clearWidgets()}}),h.O.as(c.Fd.Configuration).registerConfiguration({...r.JJ,properties:{[N]:{type:"object",scope:5,description:l.kg("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}})},85541:(e,t,i)=>{"use strict";i.d(t,{H:()=>o,v:()=>r});var s=i(80537),n=i(29319);function r(e,t,i){return("string"===typeof i.insertText?""===i.insertText:""===i.insertText.snippet)?{edits:i.additionalEdit?.edits??[]}:{edits:[...t.map((t=>new s.cw(e,{range:t,text:"string"===typeof i.insertText?n.fr.escape(i.insertText)+"$0":i.insertText.snippet,insertAsSnippet:!0}))),...i.additionalEdit?.edits??[]]}}function o(e){function t(e,t){return"mimeType"in e?e.mimeType===t.handledMimeType:!!t.kind&&e.kind.contains(t.kind)}const i=new Map;for(const r of e)for(const s of r.yieldTo??[])for(const n of e)if(n!==r&&t(s,n)){let e=i.get(r);e||(e=[],i.set(r,e)),e.push(n)}if(!i.size)return Array.from(e);const s=new Set,n=[];return function e(t){if(!t.length)return[];const r=t[0];if(n.includes(r))return console.warn("Yield to cycle detected",r),t;if(s.has(r))return e(t.slice(1));let o=[];const a=i.get(r);return a&&(n.push(r),o=e(a),n.pop()),s.add(r),[...o,r,...e(t.slice(1))]}(Array.from(e))}},56687:(e,t,i)=>{"use strict";i.d(t,{G:()=>S});var s,n=i(8597),r=i(62890),o=i(36921),a=i(70125),l=i(64383),c=i(41234),h=i(5662),d=i(80537),u=i(85541),g=i(78209),p=i(32848),m=i(47508),f=i(63591),_=i(98031),v=i(58591),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},b=function(e,t){return function(i,s){t(i,s,e)}};let E=class extends h.jG{static{s=this}static{this.baseId="editor.widget.postEditWidget"}constructor(e,t,i,s,n,r,o,a,l,d){super(),this.typeId=e,this.editor=t,this.showCommand=s,this.range=n,this.edits=r,this.onSelectNewEdit=o,this._contextMenuService=a,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(l),this.visibleContext.set(!0),this._register((0,h.s)((()=>this.visibleContext.reset()))),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register((0,h.s)((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition((e=>{n.containsPosition(e.position)||this.dispose()}))),this._register(c.Jh.runAndSubscribe(d.onDidUpdateKeybindings,(()=>{this._updateButtonTitle()})))}_updateButtonTitle(){const e=this._keybindingService.lookupKeybinding(this.showCommand.id)?.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:"")}create(){this.domNode=n.$(".post-edit-widget"),this.button=this._register(new r.$(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(n.ko(this.domNode,n.Bx.CLICK,(()=>this.showSelector())))}getId(){return s.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=n.BK(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map(((e,t)=>(0,o.ih)({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}})))})}};E=s=C([b(7,m.Z),b(8,p.fN),b(9,_.b)],E);let S=class extends h.jG{constructor(e,t,i,s,n,r,o){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=s,this._instantiationService=n,this._bulkEditService=r,this._notificationService=o,this._currentWidget=this._register(new h.HE),this._register(c.Jh.any(t.onDidChangeModel,t.onDidChangeModelContent)((()=>this.clear())))}async applyEditAndShowIfNeeded(e,t,i,s,n){const r=this._editor.getModel();if(!r||!e.length)return;const o=t.allEdits.at(t.activeEditIndex);if(!o)return;const c=async r=>{const o=this._editor.getModel();o&&(await o.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:r,allEdits:t.allEdits},i,s,n))},h=(s,n)=>{(0,l.MB)(s)||(this._notificationService.error(n),i&&this.show(e[0],t,c))};let d;try{d=await s(o,n)}catch(C){return h(C,(0,g.kg)("resolveError","Error resolving edit '{0}':\n{1}",o.title,(0,a.r)(C)))}if(n.isCancellationRequested)return;const p=(0,u.v)(r.uri,e,d),m=e[0],f=r.deltaDecorations([],[{range:m,options:{description:"paste-line-suffix",stickiness:0}}]);let _,v;this._editor.focus();try{_=await this._bulkEditService.apply(p,{editor:this._editor,token:n}),v=r.getDecorationRange(f[0])}catch(C){return h(C,(0,g.kg)("applyError","Error applying edit '{0}':\n{1}",o.title,(0,a.r)(C)))}finally{r.deltaDecorations(f,[])}n.isCancellationRequested||i&&_.isApplied&&t.allEdits.length>1&&this.show(v??m,t,c)}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(E,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){this._currentWidget.value?.showSelector()}};S=C([b(4,f._Y),b(5,d.nu),b(6,v.Ot)],S)},50868:(e,t,i)=>{"use strict";i.d(t,{$t:()=>f,gI:()=>_,ER:()=>v});var s=i(91508),n=i(36677),r=i(18447),o=i(5662),a=i(31450),l=i(32848),c=i(58925),h=i(63591),d=i(14718),u=i(78209);const g=(0,h.u1)("IEditorCancelService"),p=new l.N1("cancellableOperation",!1,(0,u.kg)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,d.v)(g,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,s=this._tokens.get(e);return s||(s=e.invokeWithinContext((e=>({key:p.bindTo(e.get(l.fN)),tokens:new c.w}))),this._tokens.set(e,s)),s.key.set(!0),i=s.tokens.push(t),()=>{i&&(i(),s.key.set(!s.tokens.isEmpty()),i=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);class m extends r.Qi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext((t=>t.get(g).add(e,this)))}dispose(){this._unregister(),super.dispose()}}(0,a.E_)(new class extends a.DX{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(e,t){e.get(g).cancel(t)}});class f{constructor(e,t){if(this.flags=t,0!==(1&this.flags)){const t=e.getModel();this.modelVersionId=t?s.GP("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;0!==(4&this.flags)?this.position=e.getPosition():this.position=null,0!==(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!==(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof f))return!1;const t=e;return this.modelVersionId===t.modelVersionId&&(this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&(!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))))}validate(e){return this._equals(new f(e,this.flags))}}class _ extends m{constructor(e,t,i,s){super(e,s),this._listener=new o.Cm,4&t&&this._listener.add(e.onDidChangeCursorPosition((e=>{i&&n.Q.containsPosition(i,e.position)||this.cancel()}))),2&t&&this._listener.add(e.onDidChangeCursorSelection((e=>{i&&n.Q.containsRange(i,e.selection)||this.cancel()}))),8&t&&this._listener.add(e.onDidScrollChange((e=>this.cancel()))),1&t&&(this._listener.add(e.onDidChangeModel((e=>this.cancel()))),this._listener.add(e.onDidChangeModelContent((e=>this.cancel()))))}dispose(){this._listener.dispose(),super.dispose()}}class v extends r.Qi{constructor(e,t){super(t),this._listener=e.onDidChangeContent((()=>this.cancel()))}dispose(){this._listener.dispose(),super.dispose()}}},34175:(e,t,i)=>{"use strict";i.d(t,{z0:()=>mt});var s=i(90766),n=i(5662),r=i(91508),o=i(31450),a=i(87119),l=i(60002),c=i(16223),h=i(46041),d=i(15092),u=i(83069),g=i(36677),p=i(75326),m=i(43264),f=i(87289),_=i(66261),v=i(47612);class C{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map((e=>this._editor.getModel().getDecorationRange(e))).filter((e=>!!e));if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e<this._decorations.length?this._decorations[e]:null;return t?this._editor.getModel().getDecorationRange(t):null}getCurrentMatchesPosition(e){const t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const e=i.options;if(e===C._FIND_MATCH_DECORATION||e===C._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let s=0,n=this._decorations.length;s<n;s++){const n=this._editor.getModel().getDecorationRange(this._decorations[s]);if(e.equalsRange(n)){t=this._decorations[s],i=s+1;break}}return null===this._highlightedDecorationId&&null===t||this._editor.changeDecorations((e=>{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,C._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,C._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let i=this._editor.getModel().getDecorationRange(t);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){const e=i.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);i=new g.Q(i.startLineNumber,i.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(i,C._RANGE_HIGHLIGHT_DECORATION)}})),i}set(e,t){this._editor.changeDecorations((i=>{let s=C._FIND_MATCH_DECORATION;const n=[];if(e.length>1e3){s=C._FIND_MATCH_NO_OVERVIEW_DECORATION;const t=this._editor.getModel().getLineCount(),i=this._editor.getLayoutInfo().height/t,r=Math.max(2,Math.ceil(3/i));let o=e[0].range.startLineNumber,a=e[0].range.endLineNumber;for(let s=1,l=e.length;s<l;s++){const t=e[s].range;a+r>=t.startLineNumber?t.endLineNumber>a&&(a=t.endLineNumber):(n.push({range:new g.Q(o,1,a,1),options:C._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),o=t.startLineNumber,a=t.endLineNumber)}n.push({range:new g.Q(o,1,a,1),options:C._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let t=0,o=e.length;t<o;t++)r[t]={range:e[t].range,options:s};this._decorations=i.deltaDecorations(this._decorations,r),this._overviewRulerApproximateDecorations=i.deltaDecorations(this._overviewRulerApproximateDecorations,n),this._rangeHighlightDecorationId&&(i.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach((e=>i.removeDecoration(e))),this._findScopeDecorationIds=[]),t?.length&&(this._findScopeDecorationIds=t.map((e=>i.addDecoration(e,C._FIND_SCOPE_DECORATION))))}))}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],s=this._editor.getModel().getDecorationRange(i);if(s&&!(s.endLineNumber>e.lineNumber)){if(s.endLineNumber<e.lineNumber)return s;if(!(s.endColumn>e.column))return s}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,i=this._decorations.length;t<i;t++){const i=this._decorations[t],s=this._editor.getModel().getDecorationRange(i);if(s&&!(s.startLineNumber<e.lineNumber)){if(s.startLineNumber>e.lineNumber)return s;if(!(s.startColumn<e.column))return s}}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}static{this._CURRENT_FIND_MATCH_DECORATION=f.kI.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",inlineClassName:"currentFindMatchInline",showIfCollapsed:!0,overviewRuler:{color:(0,v.Yf)(_.fAP),position:c.A5.Center},minimap:{color:(0,v.Yf)(_.AjU),position:1}})}static{this._FIND_MATCH_DECORATION=f.kI.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",inlineClassName:"findMatchInline",showIfCollapsed:!0,overviewRuler:{color:(0,v.Yf)(_.fAP),position:c.A5.Center},minimap:{color:(0,v.Yf)(_.AjU),position:1}})}static{this._FIND_MATCH_NO_OVERVIEW_DECORATION=f.kI.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0})}static{this._FIND_MATCH_ONLY_OVERVIEW_DECORATION=f.kI.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:(0,v.Yf)(_.fAP),position:c.A5.Center}})}static{this._RANGE_HIGHLIGHT_DECORATION=f.kI.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0})}static{this._FIND_SCOPE_DECORATION=f.kI.register({description:"find-scope",className:"findScope",isWholeLine:!0})}}class b{constructor(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){const e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort(((e,t)=>g.Q.compareRangesUsingStarts(e.range,t.range)));const i=[];let s=e[0];for(let t=1;t<e.length;t++)s.range.endLineNumber===e[t].range.startLineNumber&&s.range.endColumn===e[t].range.startColumn?(s.range=s.range.plusRange(e[t].range),s.text=s.text+e[t].text):(i.push(s),s=e[t]);i.push(s);for(const n of i)t.addEditOperation(n.range,n.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}function E(e,t){if(e&&""!==e[0]){const i=S(e,t,"-"),s=S(e,t,"_");return i&&!s?y(e,t,"-"):!i&&s?y(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():r.zY(e[0][0])&&t.length>0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function S(e,t,i){return-1!==e[0].indexOf(i)&&-1!==t.indexOf(i)&&e[0].split(i).length===t.split(i).length}function y(e,t,i){const s=t.split(i),n=e[0].split(i);let r="";return s.forEach(((e,t)=>{r+=E([n[t]],e)+i})),r.slice(0,-1)}class w{constructor(e){this.staticValue=e,this.kind=0}}class L{constructor(e){this.pieces=e,this.kind=1}}class R{static fromStaticValue(e){return new R([T.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new w(e[0].staticValue):this._state=new L(e):this._state=new w("")}buildReplaceString(e,t){if(0===this._state.kind)return t?E(e,this._state.staticValue):this._state.staticValue;let i="";for(let s=0,n=this._state.pieces.length;s<n;s++){const t=this._state.pieces[s];if(null!==t.staticValue){i+=t.staticValue;continue}let n=R._substitute(t.matchIndex,e);if(null!==t.caseOps&&t.caseOps.length>0){const e=[],i=t.caseOps.length;let s=0;for(let r=0,o=n.length;r<o;r++){if(s>=i){e.push(n.slice(r));break}switch(t.caseOps[s]){case"U":e.push(n[r].toUpperCase());break;case"u":e.push(n[r].toUpperCase()),s++;break;case"L":e.push(n[r].toLowerCase());break;case"l":e.push(n[r].toLowerCase()),s++;break;default:e.push(n[r])}}n=e.join("")}i+=n}return i}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i="";for(;e>0;){if(e<t.length){return(t[e]||"")+i}i=String(e%10)+i,e=Math.floor(e/10)}return"$"+i}}class T{static staticValue(e){return new T(e,-1,null)}static caseOps(e,t){return new T(null,e,t)}constructor(e,t,i){this.staticValue=e,this.matchIndex=t,i&&0!==i.length?this.caseOps=i.slice(0):this.caseOps=null}}class x{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){0!==e.length&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,i){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=T.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=T.caseOps(e,i),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=T.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new R(this._result)}}var k=i(32848);const A=new k.N1("findWidgetVisible",!1),N=(A.toNegated(),new k.N1("findInputFocussed",!1)),I=new k.N1("replaceInputFocussed",!1),O={primary:545,mac:{primary:2593}},D={primary:565,mac:{primary:2613}},M={primary:560,mac:{primary:2608}},P={primary:554,mac:{primary:2602}},F={primary:558,mac:{primary:2606}},U="actions.find",H="actions.findWithSelection",B="editor.actions.findWithArgs",W="editor.action.nextMatchFindAction",V="editor.action.previousMatchFindAction",z="editor.action.goToMatchFindAction",G="editor.action.nextSelectionMatchFindAction",j="editor.action.previousSelectionMatchFindAction",K="editor.action.startFindReplaceAction",Y="closeFindWidget",q="toggleFindCaseSensitive",$="toggleFindWholeWord",Q="toggleFindRegex",X="toggleFindInSelection",Z="togglePreserveCase",J="editor.action.replaceOne",ee="editor.action.replaceAll",te="editor.action.selectAllMatches",ie=19999;class se{constructor(e,t){this._toDispose=new n.Cm,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new s.pc,this._decorations=new C(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new s.uC((()=>{if(this._editor.hasModel())return this.research(!1)}),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,n.AS)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){if(!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)){this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;"undefined"!==typeof t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map((e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new g.Q(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e})));const s=this._findMatches(i,!1,ie);this._decorations.set(s,i);const n=this._editor.getSelection();let r=this._decorations.getCurrentMatchesPosition(n);if(0===r&&s.length>0){const e=(0,h.hw)(s.map((e=>e.range)),(e=>g.Q.compareRangesUsingStarts(e,n)>=0));r=e>0?e-1+1:r}this._state.changeMatchInfo(r,this._decorations.getCount(),void 0),e&&this._editor.getOption(41).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:s}=e;const n=this._editor.getModel();return t||1===s?(1===i?i=n.getLineCount():i--,s=n.getLineMaxColumn(i)):s--,new u.y(i,s)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const t=this._decorations.matchAfterPosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchBeforePosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),void(t&&this._setCurrentFindMatch(t))}if(this._cannotFind())return;const i=this._decorations.getFindScope(),s=se._getSearchRange(this._editor.getModel(),i);s.getEndPosition().isBefore(e)&&(e=s.getEndPosition()),e.isBefore(s.getStartPosition())&&(e=s.getEndPosition());const{lineNumber:n,column:r}=e,o=this._editor.getModel();let a=new u.y(n,r),l=o.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,!1);return l&&l.range.isEmpty()&&l.range.getStartPosition().equals(a)&&(a=this._prevSearchPosition(a),l=o.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,!1)),l?t||s.containsRange(l.range)?void this._setCurrentFindMatch(l.range):this._moveToPrevMatch(l.range.getStartPosition(),!0):void 0}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:s}=e;const n=this._editor.getModel();return t||s===n.getLineMaxColumn(i)?(i===n.getLineCount()?i=1:i++,s=1):s++,new u.y(i,s)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const t=this._decorations.matchBeforePosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<ie){let t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}const t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,i,s=!1){if(this._cannotFind())return null;const n=this._decorations.getFindScope(),r=se._getSearchRange(this._editor.getModel(),n);r.getEndPosition().isBefore(e)&&(e=r.getStartPosition()),e.isBefore(r.getStartPosition())&&(e=r.getStartPosition());const{lineNumber:o,column:a}=e,l=this._editor.getModel();let c=new u.y(o,a),h=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t);return i&&h&&h.range.isEmpty()&&h.range.getStartPosition().equals(c)&&(c=this._nextSearchPosition(c),h=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t)),h?s||r.containsRange(h.range)?h:this._getNextMatch(h.range.getEndPosition(),t,i,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_moveToMatch(e){const t=this._decorations.getDecorationRangeAt(e);t&&this._setCurrentFindMatch(t)}moveToMatch(e){this._moveToMatch(e)}_getReplacePattern(){return this._state.isRegex?function(e){if(!e||0===e.length)return new R(null);const t=[],i=new x(e);for(let s=0,n=e.length;s<n;s++){const r=e.charCodeAt(s);if(92!==r){if(36===r){if(s++,s>=n)break;const r=e.charCodeAt(s);if(36===r){i.emitUnchanged(s-1),i.emitStatic("$",s+1);continue}if(48===r||38===r){i.emitUnchanged(s-1),i.emitMatchIndex(0,s+1,t),t.length=0;continue}if(49<=r&&r<=57){let o=r-48;if(s+1<n){const n=e.charCodeAt(s+1);if(48<=n&&n<=57){s++,o=10*o+(n-48),i.emitUnchanged(s-2),i.emitMatchIndex(o,s+1,t),t.length=0;continue}}i.emitUnchanged(s-1),i.emitMatchIndex(o,s+1,t),t.length=0;continue}}}else{if(s++,s>=n)break;const r=e.charCodeAt(s);switch(r){case 92:i.emitUnchanged(s-1),i.emitStatic("\\",s+1);break;case 110:i.emitUnchanged(s-1),i.emitStatic("\n",s+1);break;case 116:i.emitUnchanged(s-1),i.emitStatic("\t",s+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(s-1),i.emitStatic("",s+1),t.push(String.fromCharCode(r))}}}return i.finalize()}(this._state.replaceString):R.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i)if(t.equalsRange(i.range)){const s=e.buildReplaceString(i.matches,this._state.preserveCase),n=new d.iu(t,s);this._executeEditorCommand("replace",n),this._decorations.setStartPosition(new u.y(t.startLineNumber,t.startColumn+s.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}_findMatches(e,t,i){const s=(e||[null]).map((e=>se._getSearchRange(this._editor.getModel(),e)));return this._editor.getModel().findMatches(this._state.searchString,s,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=ie?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const e=new m.lt(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let e="mu";t.ignoreCase&&(e+="i"),t.global&&(e+="g"),t=new RegExp(t.source,e)}const i=this._editor.getModel(),s=i.getValue(1),n=i.getFullModelRange(),r=this._getReplacePattern();let o;const a=this._state.preserveCase;o=r.hasReplacementPatterns||a?s.replace(t,(function(){return r.buildReplaceString(arguments,a)})):s.replace(t,r.buildReplaceString(null,a));const l=new d.ui(n,o,this._editor.getSelection());this._executeEditorCommand("replaceAll",l)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),s=[];for(let r=0,o=i.length;r<o;r++)s[r]=t.buildReplaceString(i[r].matches,this._state.preserveCase);const n=new b(this._editor.getSelection(),i.map((e=>e.range)),s);this._executeEditorCommand("replaceAll",n)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let t=this._findMatches(e,!1,1073741824).map((e=>new p.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)));const i=this._editor.getSelection();for(let s=0,n=t.length;s<n;s++){if(t[s].equalsRange(i)){t=[i].concat(t.slice(0,s)).concat(t.slice(s+1));break}}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}var ne=i(8597),re=i(23034),oe=i(17390),ae=i(42904);class le extends oe.x{static{this.ID="editor.contrib.findOptionsWidget"}constructor(e,t,i){super(),this._hideSoon=this._register(new s.uC((()=>this._hide()),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const n={inputActiveOptionBorder:(0,_.GuP)(_.uNK),inputActiveOptionForeground:(0,_.GuP)(_.$$0),inputActiveOptionBackground:(0,_.GuP)(_.c1f)},r=this._register((0,ae.bW)());this.caseSensitive=this._register(new re.bc({appendTitle:this._keybindingLabelFor(q),isChecked:this._state.matchCase,hoverDelegate:r,...n})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange((()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)}))),this.wholeWords=this._register(new re.nV({appendTitle:this._keybindingLabelFor($),isChecked:this._state.wholeWord,hoverDelegate:r,...n})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange((()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)}))),this.regex=this._register(new re.Ix({appendTitle:this._keybindingLabelFor(Q),isChecked:this._state.isRegex,hoverDelegate:r,...n})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange((()=>{this._state.change({isRegex:this.regex.checked},!1)}))),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange((e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()}))),this._register(ne.ko(this._domNode,ne.Bx.MOUSE_LEAVE,(e=>this._onMouseLeave()))),this._register(ne.ko(this._domNode,"mouseover",(e=>this._onMouseOver())))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return le.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}}var ce=i(41234);function he(e,t){return 1===e||2!==e&&t}class de extends n.jG{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return he(this._isRegexOverride,this._isRegex)}get wholeWord(){return he(this._wholeWordOverride,this._wholeWord)}get matchCase(){return he(this._matchCaseOverride,this._matchCase)}get preserveCase(){return he(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new ce.vl),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){const s={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let n=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,s.matchesPosition=!0,n=!0),this._matchesCount!==t&&(this._matchesCount=t,s.matchesCount=!0,n=!0),"undefined"!==typeof i&&(g.Q.equalsRange(this._currentMatch,i)||(this._currentMatch=i,s.currentMatch=!0,n=!0)),n&&this._onFindReplaceStateChange.fire(s)}change(e,t,i=!0){const s={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let n=!1;const r=this.isRegex,o=this.wholeWord,a=this.matchCase,l=this.preserveCase;"undefined"!==typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,s.searchString=!0,n=!0),"undefined"!==typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,s.replaceString=!0,n=!0),"undefined"!==typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,s.isRevealed=!0,n=!0),"undefined"!==typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,s.isReplaceRevealed=!0,n=!0),"undefined"!==typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!==typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!==typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!==typeof e.preserveCase&&(this._preserveCase=e.preserveCase),"undefined"!==typeof e.searchScope&&(e.searchScope?.every((e=>this._searchScope?.some((t=>!g.Q.equalsRange(t,e)))))||(this._searchScope=e.searchScope,s.searchScope=!0,n=!0)),"undefined"!==typeof e.loop&&this._loop!==e.loop&&(this._loop=e.loop,s.loop=!0,n=!0),"undefined"!==typeof e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,s.isSearching=!0,n=!0),"undefined"!==typeof e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,s.filters=!0,n=!0),this._isRegexOverride="undefined"!==typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!==typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!==typeof e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride="undefined"!==typeof e.preserveCaseOverride?e.preserveCaseOverride:0,r!==this.isRegex&&(n=!0,s.isRegex=!0),o!==this.wholeWord&&(n=!0,s.wholeWord=!0),a!==this.matchCase&&(n=!0,s.matchCase=!0),l!==this.preserveCase&&(n=!0,s.preserveCase=!0),n&&this._onFindReplaceStateChange.fire(s)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=ie}}var ue=i(11007),ge=i(35315),pe=i(92403),me=i(10350),fe=i(64383),_e=i(98067),ve=i(78209),Ce=i(89100);function be(e){return"Up"===e.lookupKeybinding("history.showPrevious")?.getElectronAccelerator()&&"Down"===e.lookupKeybinding("history.showNext")?.getElectronAccelerator()}var Ee=i(61394),Se=i(25689),ye=i(86723),we=i(631),Le=i(19070);const Re=(0,Ee.pU)("find-collapsed",me.W.chevronRight,ve.kg("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),Te=(0,Ee.pU)("find-expanded",me.W.chevronDown,ve.kg("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),xe=(0,Ee.pU)("find-selection",me.W.selection,ve.kg("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),ke=(0,Ee.pU)("find-replace",me.W.replace,ve.kg("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Ae=(0,Ee.pU)("find-replace-all",me.W.replaceAll,ve.kg("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Ne=(0,Ee.pU)("find-previous-match",me.W.arrowUp,ve.kg("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Ie=(0,Ee.pU)("find-next-match",me.W.arrowDown,ve.kg("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Oe=ve.kg("label.findDialog","Find / Replace"),De=ve.kg("label.find","Find"),Me=ve.kg("placeholder.find","Find"),Pe=ve.kg("label.previousMatchButton","Previous Match"),Fe=ve.kg("label.nextMatchButton","Next Match"),Ue=ve.kg("label.toggleSelectionFind","Find in Selection"),He=ve.kg("label.closeButton","Close"),Be=ve.kg("label.replace","Replace"),We=ve.kg("placeholder.replace","Replace"),Ve=ve.kg("label.replaceButton","Replace"),ze=ve.kg("label.replaceAllButton","Replace All"),Ge=ve.kg("label.toggleReplaceButton","Toggle Replace"),je=ve.kg("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",ie),Ke=ve.kg("label.matchesLocation","{0} of {1}"),Ye=ve.kg("label.noResults","No results"),qe=419;let $e=69;const Qe="ctrlEnterReplaceAll.windows.donotask",Xe=_e.zx?256:2048;class Ze{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function Je(e,t,i){const s=!!t.match(/\n/);i&&s&&i.selectionStart>0&&e.stopPropagation()}function et(e,t,i){const s=!!t.match(/\n/);i&&s&&i.selectionEnd<i.value.length&&e.stopPropagation()}class tt extends oe.x{static{this.ID="editor.contrib.findWidget"}constructor(e,t,i,r,o,a,l,c,h,d){super(),this._hoverService=d,this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=i,this._contextViewProvider=r,this._keybindingService=o,this._contextKeyService=a,this._storageService=c,this._notificationService=h,this._ctrlEnterReplaceAllWarningPrompted=!!c.getBoolean(Qe,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new s.ve(500),this._register((0,n.s)((()=>this._updateHistoryDelayer.cancel()))),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration((e=>{if(e.hasChanged(92)&&(this._codeEditor.getOption(92)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(146)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(41)){const e=this._codeEditor.getOption(41).loop;this._state.change({loop:e},!1);const t=this._codeEditor.getOption(41).addExtraSpaceOnTop;t&&!this._viewZone&&(this._viewZone=new Ze(0),this._showViewZone()),!t&&this._viewZone&&this._removeViewZone()}}))),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection((()=>{this._isVisible&&this._updateToggleSelectionFindButton()}))),this._register(this._codeEditor.onDidFocusEditorWidget((async()=>{if(this._isVisible){const e=await this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}}))),this._findInputFocused=N.bindTo(a),this._findFocusTracker=this._register(ne.w5(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus((()=>{this._findInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._findFocusTracker.onDidBlur((()=>{this._findInputFocused.set(!1)}))),this._replaceInputFocused=I.bindTo(a),this._replaceFocusTracker=this._register(ne.w5(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus((()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._replaceFocusTracker.onDidBlur((()=>{this._replaceInputFocused.set(!1)}))),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(41).addExtraSpaceOnTop&&(this._viewZone=new Ze(0)),this._register(this._codeEditor.onDidChangeModel((()=>{this._isVisible&&(this._viewZoneId=void 0)}))),this._register(this._codeEditor.onDidScrollChange((e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout((()=>{this._layoutViewZone()}),0)})))}getId(){return tt.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(92)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=ne.Tr(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,fe.dz)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=$e+"px",this._state.matchesCount>=ie?this._matchesCount.title=je:this._matchesCount.title="",this._matchesCount.firstChild?.remove(),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=ie&&(t+="+");let i=String(this._state.matchesPosition);"0"===i&&(i="?"),e=r.GP(Ke,i,t)}else e=Ye;this._matchesCount.appendChild(document.createTextNode(e)),(0,ue.xE)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),$e=Math.max($e,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===Ye)return""===i?ve.kg("ariaSearchNoResultEmpty","{0} found",e):ve.kg("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const s=ve.kg("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),n=this._codeEditor.getModel();if(n&&t.startLineNumber<=n.getLineCount()&&t.startLineNumber>=1){return`${n.getLineContent(t.startLineNumber)}, ${s}`}return s}return ve.kg("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(92);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(41).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout((()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")}),0)),this._revealTimeouts.push(setTimeout((()=>{this._findInput.validate()}),200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(41).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const s=ne.BK(i),n=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),r=s.left+(n?n.left:0),o=n?n.top:0;if(this._viewZone&&o<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);const i=ne.cL(this._domNode).left;r>i&&(t=!1);const n=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());s.left+(n?n.left:0)>i&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;const t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)}))}_showViewZone(e=!0){if(!this._isVisible)return;if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new Ze(0));const t=this._viewZone;this._codeEditor.changeViewZones((i=>{if(void 0!==this._viewZoneId){const s=this._getHeight();if(s===t.heightInPx)return;const n=s-t.heightInPx;return t.heightInPx=s,i.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+n))}{let s=this._getHeight();if(s-=this._codeEditor.getOption(84).top,s<=0)return;t.heightInPx=s,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s)}}))}_removeViewZone(){this._codeEditor.changeViewZones((e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))}))}_tryUpdateWidgetWidth(){if(!this._isVisible)return;if(!this._domNode.isConnected)return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const t=e.width,i=e.minimap.minimapWidth;let s=!1,n=!1,r=!1;if(this._resized){if(ne.Tr(this._domNode)>qe)return this._domNode.style.maxWidth=t-28-i-15+"px",void(this._replaceInput.width=ne.Tr(this._findInput.domNode))}if(447+i>=t&&(n=!0),447+i-$e>=t&&(r=!0),447+i-$e>=t+50&&(s=!0),this._domNode.classList.toggle("collapsed-find-widget",s),this._domNode.classList.toggle("narrow-find-widget",r),this._domNode.classList.toggle("reduced-find-widget",n),r||s||(this._domNode.style.maxWidth=t-28-i-15+"px"),this._findInput.layout({collapsedFindWidget:s,narrowFindWidget:r,reducedFindWidget:n}),this._resized){const e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map((e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));const t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||g.Q.equalsRange(e,t)?null:e})).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Je(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?et(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|Xe)?(this._keybindingService.dispatchEvent(e,e.target)||(_e.uF&&_e.ib&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(ve.kg("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Qe,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n")),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Je(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?et(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){const e=!0,t=!0;this._findInput=this._register(new Ce.pG(null,this._contextViewProvider,{width:221,label:De,placeholder:Me,appendCaseSensitiveLabel:this._keybindingLabelFor(q),appendWholeWordsLabel:this._keybindingLabelFor($),appendRegexLabel:this._keybindingLabelFor(Q),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(t){return{content:t.message}}},flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>be(this._keybindingService),inputBoxStyles:Le.ho,toggleStyles:Le.mk},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((e=>this._onFindInputKeyDown(e)))),this._register(this._findInput.inputBox.onDidChange((()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((e=>{this._tryUpdateHeight()&&this._showViewZone()}))),_e.j9&&this._register(this._findInput.onMouseDown((e=>this._onFindInputMouseDown(e)))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();const i=this._register((0,ae.bW)());this._prevBtn=this._register(new it({label:Pe+this._keybindingLabelFor(V),icon:Ne,hoverDelegate:i,onTrigger:()=>{(0,we.eU)(this._codeEditor.getAction(V)).run().then(void 0,fe.dz)}},this._hoverService)),this._nextBtn=this._register(new it({label:Fe+this._keybindingLabelFor(W),icon:Ie,hoverDelegate:i,onTrigger:()=>{(0,we.eU)(this._codeEditor.getAction(W)).run().then(void 0,fe.dz)}},this._hoverService));const s=document.createElement("div");s.className="find-part",s.appendChild(this._findInput.domNode);const n=document.createElement("div");n.className="find-actions",s.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new ge.l({icon:xe,title:Ue+this._keybindingLabelFor(X),isChecked:!1,hoverDelegate:i,inputActiveOptionBackground:(0,_.GuP)(_.c1f),inputActiveOptionBorder:(0,_.GuP)(_.uNK),inputActiveOptionForeground:(0,_.GuP)(_.$$0)})),this._register(this._toggleSelectionFind.onChange((()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let e=this._codeEditor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)}))),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new it({label:He+this._keybindingLabelFor(Y),icon:Ee.$_,hoverDelegate:i,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}},this._hoverService)),this._replaceInput=this._register(new Ce._Q(null,void 0,{label:Be,placeholder:We,appendPreserveCaseLabel:this._keybindingLabelFor(Z),history:[],flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showHistoryHint:()=>be(this._keybindingService),inputBoxStyles:Le.ho,toggleStyles:Le.mk},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((e=>this._onReplaceInputKeyDown(e)))),this._register(this._replaceInput.inputBox.onDidChange((()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())})));const r=this._register((0,ae.bW)());this._replaceBtn=this._register(new it({label:Ve+this._keybindingLabelFor(J),icon:ke,hoverDelegate:r,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}},this._hoverService)),this._replaceAllBtn=this._register(new it({label:ze+this._keybindingLabelFor(ee),icon:Ae,hoverDelegate:r,onTrigger:()=>{this._controller.replaceAll()}},this._hoverService));const o=document.createElement("div");o.className="replace-part",o.appendChild(this._replaceInput.domNode);const a=document.createElement("div");a.className="replace-actions",o.appendChild(a),a.appendChild(this._replaceBtn.domNode),a.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new it({label:Ge,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}},this._hoverService)),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=Oe,this._domNode.role="dialog",this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(s),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(o),this._resizeSash=this._register(new pe.m(this._domNode,this,{orientation:0,size:2})),this._resized=!1;let l=qe;this._register(this._resizeSash.onDidStart((()=>{l=ne.Tr(this._domNode)}))),this._register(this._resizeSash.onDidChange((e=>{this._resized=!0;const t=l+e.startX-e.currentX;if(t<qe)return;t>(parseFloat(ne.L9(this._domNode).maxWidth)||0)||(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((()=>{const e=ne.Tr(this._domNode);if(e<qe)return;let t=qe;if(!this._resized||e===qe){const e=this._codeEditor.getLayoutInfo();t=e.width-28-e.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=ne.Tr(this._findInput.domNode)),this._findInput.inputBox.layout()})))}updateAccessibilitySupport(){const e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)}}class it extends oe.x{constructor(e,t){super(),this._opts=e;let i="button";this._opts.className&&(i=i+" "+this._opts.className),this._opts.icon&&(i=i+" "+Se.L.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.tabIndex=0,this._domNode.className=i,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this._register(t.setupManagedHover(e.hoverDelegate??(0,ae.nZ)("element"),this._domNode,this._opts.label)),this.onclick(this._domNode,(e=>{this._opts.onTrigger(),e.preventDefault()})),this.onkeydown(this._domNode,(e=>{if(e.equals(10)||e.equals(3))return this._opts.onTrigger(),void e.preventDefault();this._opts.onKeyDown?.(e)}))}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...Se.L.asClassNameArray(Re)),this._domNode.classList.add(...Se.L.asClassNameArray(Te))):(this._domNode.classList.remove(...Se.L.asClassNameArray(Te)),this._domNode.classList.add(...Se.L.asClassNameArray(Re)))}}(0,v.zy)(((e,t)=>{const i=e.getColor(_.ECk);i&&t.addRule(`.monaco-editor .findMatch { border: 1px ${(0,ye.Bb)(e.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`);const s=e.getColor(_.S5J);s&&t.addRule(`.monaco-editor .findScope { border: 1px ${(0,ye.Bb)(e.type)?"dashed":"solid"} ${s}; }`);const n=e.getColor(_.b1q);n&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${n}; }`);const r=e.getColor(_.f3U);r&&t.addRule(`.monaco-editor .findMatchInline { color: ${r}; }`);const o=e.getColor(_.p8Y);o&&t.addRule(`.monaco-editor .currentFindMatchInline { color: ${o}; }`)}));var st,nt=i(27195),rt=i(54770),ot=i(47508),at=i(98031),lt=i(58591),ct=i(51467),ht=i(9711),dt=i(67220),ut=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},gt=function(e,t){return function(i,s){t(i,s,e)}};function pt(e,t="single",i=!1){if(!e.hasModel())return null;const s=e.getSelection();if("single"===t&&s.startLineNumber===s.endLineNumber||"multiple"===t)if(s.isEmpty()){const t=e.getConfiguredWordAtPosition(s.getStartPosition());if(t&&!1===i)return t.word}else if(e.getModel().getValueLengthInRange(s)<524288)return e.getModel().getValueInRange(s);return null}let mt=class extends n.jG{static{st=this}static{this.ID="editor.contrib.findController"}get editor(){return this._editor}static get(e){return e.getContribution(st.ID)}constructor(e,t,i,n,r,o){super(),this._editor=e,this._findWidgetVisible=A.bindTo(t),this._contextKeyService=t,this._storageService=i,this._clipboardService=n,this._notificationService=r,this._hoverService=o,this._updateHistoryDelayer=new s.ve(500),this._state=this._register(new de),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._model=null,this._register(this._editor.onDidChangeModel((()=>{const e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(41).loop})})))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!N.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=r.bm(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}async _start(e,t){if(this.disposeModel(),!this._editor.hasModel())return;const i={...t,isRevealed:!0};if("single"===e.seedSearchStringFromSelection){const t=pt(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);t&&(this._state.isRegex?i.searchString=r.bm(t):i.searchString=t)}else if("multiple"===e.seedSearchStringFromSelection&&!e.updateSearchScope){const t=pt(this._editor,e.seedSearchStringFromSelection);t&&(i.searchString=t)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){const e=await this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(i.searchString=e)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){const e=this._editor.getSelections();e.some((e=>!e.isEmpty()))&&(i.searchScope=e)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new se(this._editor,this._state))}start(e,t){return this._start(e,t)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}goToMatch(e){return!!this._model&&(this._model.moveToMatch(e),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){return!!this._model&&(this._editor.getModel()?.isTooLargeForHeapOperation()?(this._notificationService.warn(ve.kg("too.large.for.replaceall","The file is too large to perform a replace all operation.")),!1):(this._model.replaceAll(),!0))}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}async getGlobalBufferTerm(){return this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}setGlobalBufferTerm(e){this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};mt=st=ut([gt(1,k.fN),gt(2,ht.CS),gt(3,rt.h),gt(4,lt.Ot),gt(5,dt.TN)],mt);let ft=class extends mt{constructor(e,t,i,s,n,r,o,a,l){super(e,i,o,a,r,l),this._contextViewService=t,this._keybindingService=s,this._themeService=n,this._widget=null,this._findOptionsWidget=null}async _start(e,t){this._widget||this._createFindWidget();const i=this._editor.getSelection();let s=!1;switch(this._editor.getOption(41).autoFindInSelection){case"always":s=!0;break;case"never":s=!1;break;case"multiline":s=!!i&&i.startLineNumber!==i.endLineNumber;break}e.updateSearchScope=e.updateSearchScope||s,await super._start(e,t),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput())}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new tt(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService,this._hoverService)),this._findOptionsWidget=this._register(new le(this._editor,this._state,this._keybindingService))}};ft=ut([gt(1,ot.l),gt(2,k.fN),gt(3,at.b),gt(4,v.Gy),gt(5,lt.Ot),gt(6,ht.CS),gt(7,rt.h),gt(8,dt.TN)],ft);(0,o.gW)(new o.PF({id:U,label:ve.kg("startFindAction","Find"),alias:"Find",precondition:k.M$.or(l.R.focus,k.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:nt.D8.MenubarEditMenu,group:"3_find",title:ve.kg({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})).addImplementation(0,((e,t,i)=>{const s=mt.get(t);return!!s&&s.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(41).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})}));const _t={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},isRegex:{type:"boolean"},matchWholeWord:{type:"boolean"},isCaseSensitive:{type:"boolean"},preserveCase:{type:"boolean"},findInSelection:{type:"boolean"}}}}]};class vt extends o.ks{constructor(){super({id:B,label:ve.kg("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},metadata:_t})}async run(e,t,i){const s=mt.get(t);if(s){const e=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:void 0!==i.replaceString,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};await s.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===s.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:i?.findInSelection||!1,loop:t.getOption(41).loop},e),s.setGlobalBufferTerm(s.getState().searchString)}}}class Ct extends o.ks{constructor(){super({id:H,label:ve.kg("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}async run(e,t){const i=mt.get(t);i&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),i.setGlobalBufferTerm(i.getState().searchString))}}class bt extends o.ks{async run(e,t){const i=mt.get(t);i&&!this._run(i)&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===i.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}class Et extends o.ks{constructor(){super({id:z,label:ve.kg("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:A}),this._highlightDecorations=[]}run(e,t,i){const s=mt.get(t);if(!s)return;const r=s.getState().matchesCount;if(r<1){return void e.get(lt.Ot).notify({severity:lt.AI.Warning,message:ve.kg("findMatchAction.noResults","No matches. Try searching for something else.")})}const o=e.get(ct.GK),a=new n.Cm,l=a.add(o.createInputBox());l.placeholder=ve.kg("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",r);const c=e=>{const t=parseInt(e);if(isNaN(t))return;const i=s.getState().matchesCount;return t>0&&t<=i?t-1:t<0&&t>=-i?i+t:void 0},h=e=>{const i=c(e);if("number"===typeof i){l.validationMessage=void 0,s.goToMatch(i);const e=s.getState().currentMatch;e&&this.addDecorations(t,e)}else l.validationMessage=ve.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",s.getState().matchesCount),this.clearDecorations(t)};a.add(l.onDidChangeValue((e=>{h(e)}))),a.add(l.onDidAccept((()=>{const e=c(l.value);"number"===typeof e?(s.goToMatch(e),l.hide()):l.validationMessage=ve.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",s.getState().matchesCount)}))),a.add(l.onDidHide((()=>{this.clearDecorations(t),a.dispose()}))),l.show()}clearDecorations(e){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[])}))}addDecorations(e,t){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[{range:t,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:(0,v.Yf)(a.vp),position:c.A5.Full}}}])}))}}class St extends o.ks{async run(e,t){const i=mt.get(t);if(!i)return;const s=pt(t,"single",!1);s&&i.setSearchString(s),this._run(i)||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}(0,o.gW)(new o.PF({id:K,label:ve.kg("startReplace","Replace"),alias:"Replace",precondition:k.M$.or(l.R.focus,k.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:nt.D8.MenubarEditMenu,group:"3_find",title:ve.kg({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})).addImplementation(0,((e,t,i)=>{if(!t.hasModel()||t.getOption(92))return!1;const s=mt.get(t);if(!s)return!1;const n=t.getSelection(),r=s.isFindInputFocused(),o=!n.isEmpty()&&n.startLineNumber===n.endLineNumber&&"never"!==t.getOption(41).seedSearchStringFromSelection&&!r,a=r||o?2:1;return s.start({forceRevealReplace:!0,seedSearchStringFromSelection:o?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(41).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})})),(0,o.HW)(mt.ID,ft,0),(0,o.Fl)(vt),(0,o.Fl)(Ct),(0,o.Fl)(class extends bt{constructor(){super({id:W,label:ve.kg("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:l.R.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:k.M$.and(l.R.focus,N),primary:3,weight:100}]})}_run(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}),(0,o.Fl)(class extends bt{constructor(){super({id:V,label:ve.kg("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:l.R.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:k.M$.and(l.R.focus,N),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}),(0,o.Fl)(Et),(0,o.Fl)(class extends St{constructor(){super({id:G,label:ve.kg("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}),(0,o.Fl)(class extends St{constructor(){super({id:j,label:ve.kg("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}});const yt=o.DX.bindToContribution(mt.get);(0,o.E_)(new yt({id:Y,precondition:A,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:k.M$.and(l.R.focus,k.M$.not("isComposing")),primary:9,secondary:[1033]}})),(0,o.E_)(new yt({id:q,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:O.primary,mac:O.mac,win:O.win,linux:O.linux}})),(0,o.E_)(new yt({id:$,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:D.primary,mac:D.mac,win:D.win,linux:D.linux}})),(0,o.E_)(new yt({id:Q,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:M.primary,mac:M.mac,win:M.win,linux:M.linux}})),(0,o.E_)(new yt({id:X,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:P.primary,mac:P.mac,win:P.win,linux:P.linux}})),(0,o.E_)(new yt({id:Z,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),(0,o.E_)(new yt({id:J,precondition:A,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:3094}})),(0,o.E_)(new yt({id:J,precondition:A,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:k.M$.and(l.R.focus,I),primary:3}})),(0,o.E_)(new yt({id:ee,precondition:A,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:2563}})),(0,o.E_)(new yt({id:ee,precondition:A,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:k.M$.and(l.R.focus,I),primary:void 0,mac:{primary:2051}}})),(0,o.E_)(new yt({id:te,precondition:A,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:515}}))},44588:(e,t,i)=>{"use strict";i.d(t,{WR:()=>B,BP:()=>W});var s=i(90766),n=i(18447),r=i(64383),o=i(24939),a=i(5662),l=i(91508),c=i(631),h=i(55190),d=i(31450),u=i(60002),g=i(62083),p=i(17469),m=i(52903),f=i(46041),_=i(41234),v=i(36677),C=i(64454);class b{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new _.vl,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange((e=>this.updateHiddenRanges())),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some((e=>e.range.endLineNumber!==e.range.startLineNumber||0!==(0,C.W)(e.text)[0])))}updateHiddenRanges(){let e=!1;const t=[];let i=0,s=0,n=Number.MAX_VALUE,r=-1;const o=this._foldingModel.regions;for(;i<o.length;i++){if(!o.isCollapsed(i))continue;const a=o.getStartLineNumber(i)+1,l=o.getEndLineNumber(i);n<=a&&l<=r||(!e&&s<this._hiddenRanges.length&&this._hiddenRanges[s].startLineNumber===a&&this._hiddenRanges[s].endLineNumber===l?(t.push(this._hiddenRanges[s]),s++):(e=!0,t.push(new v.Q(a,1,l,1))),n=a,r=l)}(this._hasLineChanges||e||s<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyHiddenRanges(e){this._hiddenRanges=e,this._hasLineChanges=!1,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return null!==E(this._hiddenRanges,e)}adjustSelections(e){let t=!1;const i=this._foldingModel.textModel;let s=null;const n=e=>(s&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,s)||(s=E(this._hiddenRanges,e)),s?s.startLineNumber-1:null);for(let r=0,o=e.length;r<o;r++){let s=e[r];const o=n(s.startLineNumber);o&&(s=s.setStartPosition(o,i.getLineMaxColumn(o)),t=!0);const a=n(s.endLineNumber);a&&(s=s.setEndPosition(a,i.getLineMaxColumn(a)),t=!0),e[r]=s}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function E(e,t){const i=(0,f.hw)(e,(e=>t<e.startLineNumber))-1;return i>=0&&e[i].endLineNumber>=t?e[i]:null}var S,y=i(76495),w=i(78209),L=i(32848),R=i(46109),T=i(44026),x=i(87784),k=i(58591),A=i(32500),N=i(78381),I=i(56942),O=i(50091),D=i(79400),M=i(23750),P=i(84001),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H=new L.N1("foldingEnabled",!1);let B=class extends a.jG{static{S=this}static{this.ID="editor.contrib.folding"}static get(e){return e.getContribution(S.ID)}static getFoldingRangeProviders(e,t){const i=e.foldingRangeProvider.ordered(t);return S._foldingRangeSelector?.(i,t)??i}constructor(e,t,i,s,n,r){super(),this.contextKeyService=t,this.languageConfigurationService=i,this.languageFeaturesService=r,this.localToDispose=this._register(new a.Cm),this.editor=e,this._foldingLimitReporter=new W(e);const o=this.editor.getOptions();this._isEnabled=o.get(43),this._useFoldingProviders="indentation"!==o.get(44),this._unfoldOnClickAfterEndOfLine=o.get(48),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=o.get(46),this.updateDebounceInfo=n.for(r.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new R.rv(e),this.foldingDecorationProvider.showFoldingControls=o.get(111),this.foldingDecorationProvider.showFoldingHighlights=o.get(45),this.foldingEnabled=H.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel((()=>this.onModelChanged()))),this._register(this.editor.onDidChangeConfiguration((e=>{if(e.hasChanged(43)&&(this._isEnabled=this.editor.getOptions().get(43),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(47)&&this.onModelChanged(),e.hasChanged(111)||e.hasChanged(45)){const e=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=e.get(111),this.foldingDecorationProvider.showFoldingHighlights=e.get(45),this.triggerFoldingModelChanged()}e.hasChanged(44)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(44),this.onFoldingStrategyChanged()),e.hasChanged(48)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(48)),e.hasChanged(46)&&(this._foldingImportsByDefault=this.editor.getOptions().get(46))}))),this.onModelChanged()}saveViewState(){const e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){const t=this.foldingModel.getMemento(),i=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:i,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){const t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new m.pN(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new b(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((e=>this.onHiddenRangesChanges(e)))),this.updateScheduler=new s.ve(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new s.uC((()=>this.revealCursor()),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelContent((e=>this.onDidChangeModelContent(e)))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((()=>this.onCursorPositionChanged()))),this.localToDispose.add(this.editor.onMouseDown((e=>this.onEditorMouseDown(e)))),this.localToDispose.add(this.editor.onMouseUp((e=>this.onEditorMouseUp(e)))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler?.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.rangeProvider?.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){this.rangeProvider?.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;const t=new y.hW(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){const i=S.getFoldingRangeProviders(this.languageFeaturesService,e);i.length>0&&(this.rangeProvider=new x.M(e,i,(()=>this.triggerFoldingModelChanged()),this._foldingLimitReporter,t))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){this.hiddenRangeModel?.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((()=>{const e=this.foldingModel;if(!e)return null;const t=new N.W,i=this.getRangeProvider(e.textModel),n=this.foldingRegionPromise=(0,s.SS)((e=>i.compute(e)));return n.then((i=>{if(i&&n===this.foldingRegionPromise){let s;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const e=i.setCollapsedAllOfType(g.lO.Imports.value,!0);e&&(s=h.D.capture(this.editor),this._currentModelHasFoldedImports=e)}const n=this.editor.getSelections();e.update(i,function(e){if(!e||0===e.length)return{startsInside:()=>!1};return{startsInside(t,i){for(const s of e){const e=s.startLineNumber;if(e>=t&&e<=i)return!0}return!1}}}(n)),s?.restore(this.editor);const r=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=r)}return e}))})).then(void 0,(e=>((0,r.dz)(e),null))))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){const e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then((e=>{if(e){const t=this.editor.getSelections();if(t&&t.length>0){const i=[];for(const s of t){const t=s.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&i.push(...e.getAllRegionsAtLine(t,(e=>e.isCollapsed&&t>e.startLineNumber)))}i.length&&(e.toggleCollapseState(i),this.reveal(t[0].getPosition()))}}})).then(void 0,r.dz)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let i=!1;switch(e.target.type){case 4:{const t=e.target.detail,s=e.target.element.offsetLeft;if(t.offsetX-s<4)return;i=!0;break}case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()){if(!e.target.detail.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){const e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:i}}onEditorMouseUp(e){const t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;const i=this.mouseDownInfo.lineNumber,s=this.mouseDownInfo.iconClicked,n=e.target.range;if(!n||n.startLineNumber!==i)return;if(s){if(4!==e.target.type)return}else{const e=this.editor.getModel();if(!e||n.startColumn!==e.getLineMaxColumn(i))return}const r=t.getRegionAtLine(i);if(r&&r.startLineNumber===i){const n=r.isCollapsed;if(s||n){let s=[];if(e.event.altKey){const e=e=>!e.containedBy(r)&&!r.containedBy(e),i=t.getRegionsInside(null,e);for(const t of i)t.isCollapsed&&s.push(t);0===s.length&&(s=i)}else{const i=e.event.middleButton||e.event.shiftKey;if(i)for(const e of t.getRegionsInside(r))e.isCollapsed===n&&s.push(e);!n&&i&&0!==s.length||s.push(r)}t.toggleCollapseState(s),this.reveal({lineNumber:i,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};B=S=F([U(1,L.fN),U(2,p.JZ),U(3,k.Ot),U(4,A.ILanguageFeatureDebounceService),U(5,I.ILanguageFeaturesService)],B);class W{constructor(e){this.editor=e,this._onDidChange=new _.vl,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(47)}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}class V extends d.ks{runEditorCommand(e,t,i){const s=e.get(p.JZ),n=B.get(t);if(!n)return;const r=n.getFoldingModel();return r?(this.reportTelemetry(e,t),r.then((e=>{if(e){this.invoke(n,e,t,i,s);const r=t.getSelection();r&&n.reveal(r.getStartPosition())}}))):void 0}getSelectedLines(e){const t=e.getSelections();return t?t.map((e=>e.startLineNumber)):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map((e=>e+1)):this.getSelectedLines(t)}run(e,t){}}function z(e){if(!c.b0(e)){if(!c.Gv(e))return!1;const t=e;if(!c.b0(t.levels)&&!c.Et(t.levels))return!1;if(!c.b0(t.direction)&&!c.Kg(t.direction))return!1;if(!c.b0(t.selectionLines)&&(!Array.isArray(t.selectionLines)||!t.selectionLines.every(c.Et)))return!1}return!0}class G extends V{static{this.ID_PREFIX="editor.foldLevel"}static{this.ID=e=>G.ID_PREFIX+e}getFoldingLevel(){return parseInt(this.id.substr(G.ID_PREFIX.length))}invoke(e,t,i){(0,m.sO)(t,this.getFoldingLevel(),!0,this.getSelectedLines(i))}}(0,d.HW)(B.ID,B,0),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfold",label:w.kg("unfoldAction.label","Unfold"),alias:"Unfold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},metadata:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:z,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,s){const n=s&&s.levels||1,r=this.getLineNumbers(s,i);s&&"up"===s.direction?(0,m.dN)(t,!1,n,r):(0,m.uV)(t,!1,n,r)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldRecursively",label:w.kg("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2142),weight:100}})}invoke(e,t,i,s){(0,m.uV)(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.fold",label:w.kg("foldAction.label","Fold"),alias:"Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},metadata:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:z,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,s){const n=this.getLineNumbers(s,i),r=s&&s.levels,o=s&&s.direction;"number"!==typeof r&&"string"!==typeof o?(0,m.W8)(t,!0,n):"up"===o?(0,m.dN)(t,!0,r||1,n):(0,m.uV)(t,!0,r||1,n)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldRecursively",label:w.kg("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2140),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.uV)(t,!0,Number.MAX_VALUE,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.toggleFoldRecursively",label:w.kg("toggleFoldRecursivelyAction.label","Toggle Fold Recursively"),alias:"Toggle Fold Recursively",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,3114),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.bC)(t,Number.MAX_VALUE,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAll",label:w.kg("foldAllAction.label","Fold All"),alias:"Fold All",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2069),weight:100}})}invoke(e,t,i){(0,m.uV)(t,!0)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAll",label:w.kg("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2088),weight:100}})}invoke(e,t,i){(0,m.uV)(t,!1)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllBlockComments",label:w.kg("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2138),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Comment.value,!0);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).comments;if(s&&s.blockCommentStartToken){const e=new RegExp("^\\s*"+(0,l.bm)(s.blockCommentStartToken));(0,m.AI)(t,e,!0)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllMarkerRegions",label:w.kg("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2077),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Region.value,!0);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(s&&s.markers&&s.markers.start){const e=new RegExp(s.markers.start);(0,m.AI)(t,e,!0)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:w.kg("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2078),weight:100}})}invoke(e,t,i,s,n){if(t.regions.hasTypes())(0,m.cL)(t,g.lO.Region.value,!1);else{const e=i.getModel();if(!e)return;const s=n.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(s&&s.markers&&s.markers.start){const e=new RegExp(s.markers.start);(0,m.AI)(t,e,!1)}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.foldAllExcept",label:w.kg("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2136),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.GR)(t,!0,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.unfoldAllExcept",label:w.kg("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2134),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.GR)(t,!1,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.toggleFold",label:w.kg("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2090),weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);(0,m.bC)(t,1,s)}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoParentFold",label:w.kg("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.kK)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoPreviousFold",label:w.kg("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.JX)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.gotoNextFold",label:w.kg("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,weight:100}})}invoke(e,t,i){const s=this.getSelectedLines(i);if(s.length>0){const e=(0,m.pr)(s[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:w.kg("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2135),weight:100}})}invoke(e,t,i){const s=[],n=i.getSelections();if(n){for(const e of n){let t=e.endLineNumber;1===e.endColumn&&--t,t>e.startLineNumber&&(s.push({startLineNumber:e.startLineNumber,endLineNumber:t,type:void 0,isCollapsed:!0,source:1}),i.setSelection({startLineNumber:e.startLineNumber,startColumn:1,endLineNumber:e.startLineNumber,endColumn:1}))}if(s.length>0){s.sort(((e,t)=>e.startLineNumber-t.startLineNumber));const e=T.tz.sanitizeAndMerge(t.regions,s,i.getModel()?.getLineCount());t.updatePost(T.tz.fromFoldRanges(e))}}}}),(0,d.Fl)(class extends V{constructor(){super({id:"editor.removeManualFoldingRanges",label:w.kg("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2137),weight:100}})}invoke(e,t,i){const s=i.getSelections();if(s){const i=[];for(const e of s){const{startLineNumber:t,endLineNumber:s}=e;i.push(s>=t?{startLineNumber:t,endLineNumber:s}:{endLineNumber:s,startLineNumber:t})}t.removeManualRanges(i),e.triggerFoldingModelChanged()}}});for(let j=1;j<=7;j++)(0,d.xX)(new G({id:G.ID(j),label:w.kg("foldLevelAction.label","Fold Level {0}",j),alias:`Fold Level ${j}`,precondition:H,kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2048|21+j),weight:100}}));O.w.registerCommand("_executeFoldingRangeProvider",(async function(e,...t){const[i]=t;if(!(i instanceof D.r))throw(0,r.Qg)();const s=e.get(I.ILanguageFeaturesService),o=e.get(M.IModelService).getModel(i);if(!o)throw(0,r.Qg)();const a=e.get(P.pG);if(!a.getValue("editor.folding",{resource:i}))return[];const l=e.get(p.JZ),c=a.getValue("editor.foldingStrategy",{resource:i}),h={get limit(){return a.getValue("editor.foldingMaximumRegions",{resource:i})},update:(e,t)=>{}},d=new y.hW(o,l,h);let u=d;if("indentation"!==c){const e=B.getFoldingRangeProviders(s,o);e.length&&(u=new x.M(o,e,(()=>{}),h,d))}const m=await u.compute(n.XO.None),f=[];try{if(m)for(let e=0;e<m.length;e++){const t=m.getType(e);f.push({start:m.getStartLineNumber(e),end:m.getEndLineNumber(e),kind:t?g.lO.fromValue(t):void 0})}return f}finally{u.dispose()}}))},46109:(e,t,i)=>{"use strict";i.d(t,{E0:()=>d,k0:()=>u,rv:()=>v});var s=i(10350),n=i(87289),r=i(78209),o=i(66261),a=i(61394),l=i(47612),c=i(25689);const h=(0,o.x1A)("editor.foldBackground",{light:(0,o.JO0)(o.seu,.3),dark:(0,o.JO0)(o.seu,.3),hcDark:null,hcLight:null},(0,r.kg)("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);(0,o.x1A)("editor.foldPlaceholderForeground",{light:"#808080",dark:"#808080",hcDark:null,hcLight:null},(0,r.kg)("collapsedTextColor","Color of the collapsed text after the first line of a folded range.")),(0,o.x1A)("editorGutter.foldingControlForeground",o.t4B,(0,r.kg)("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));const d=(0,a.pU)("folding-expanded",s.W.chevronDown,(0,r.kg)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),u=(0,a.pU)("folding-collapsed",s.W.chevronRight,(0,r.kg)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),g=(0,a.pU)("folding-manual-collapsed",u,(0,r.kg)("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),p=(0,a.pU)("folding-manual-expanded",d,(0,r.kg)("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),m={color:(0,l.Yf)(h),position:1},f=(0,r.kg)("linesCollapsed","Click to expand the range."),_=(0,r.kg)("linesExpanded","Click to collapse the range.");class v{static{this.COLLAPSED_VISUAL_DECORATION=n.kI.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:c.L.asClassName(u)})}static{this.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=n.kI.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:c.L.asClassName(u)})}static{this.MANUALLY_COLLAPSED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:c.L.asClassName(g)})}static{this.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:c.L.asClassName(g)})}static{this.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f})}static{this.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f})}static{this.EXPANDED_VISUAL_DECORATION=n.kI.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+c.L.asClassName(d),linesDecorationsTooltip:_})}static{this.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=n.kI.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:c.L.asClassName(d),linesDecorationsTooltip:_})}static{this.MANUALLY_EXPANDED_VISUAL_DECORATION=n.kI.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+c.L.asClassName(p),linesDecorationsTooltip:_})}static{this.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=n.kI.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:c.L.asClassName(p),linesDecorationsTooltip:_})}static{this.NO_CONTROLS_EXPANDED_RANGE_DECORATION=n.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0})}static{this.HIDDEN_RANGE_DECORATION=n.kI.register({description:"folding-hidden-range-decoration",stickiness:1})}constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,i){return t?v.HIDDEN_RANGE_DECORATION:"never"===this.showFoldingControls?e?this.showFoldingHighlights?v.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:v.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:v.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?i?this.showFoldingHighlights?v.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?v.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:v.COLLAPSED_VISUAL_DECORATION:"mouseover"===this.showFoldingControls?i?v.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:v.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i?v.MANUALLY_EXPANDED_VISUAL_DECORATION:v.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}}},52903:(e,t,i)=>{"use strict";i.d(t,{AI:()=>g,GR:()=>u,JX:()=>f,W8:()=>h,bC:()=>a,cL:()=>p,dN:()=>c,kK:()=>m,pN:()=>o,pr:()=>_,sO:()=>d,uV:()=>l});var s=i(41234),n=i(44026),r=i(85600);class o{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new s.vl,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new n.tz(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort(((e,t)=>e.regionIndex-t.regionIndex));const t={};this._decorationProvider.changeDecorations((i=>{let s=0,n=-1,r=-1;const o=e=>{for(;s<e;){const e=this._regions.getEndLineNumber(s),t=this._regions.isCollapsed(s);if(e<=n){const n=0!==this.regions.getSource(s);i.changeDecorationOptions(this._editorDecorationIds[s],this._decorationProvider.getDecorationOption(t,e<=r,n))}t&&e>r&&(r=e),s++}};for(const a of e){const e=a.regionIndex,i=this._editorDecorationIds[e];if(i&&!t[i]){t[i]=!0,o(e);const s=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,s),n=Math.max(n,this._regions.getEndLineNumber(e))}}o(this._regions.length)})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){const t=new Array,i=t=>{for(const i of e)if(!(i.startLineNumber>t.endLineNumber||t.startLineNumber>i.endLineNumber))return!0;return!1};for(let s=0;s<this._regions.length;s++){const e=this._regions.toFoldRange(s);0!==e.source&&i(e)||t.push(e)}this.updatePost(n.tz.fromFoldRanges(t))}update(e,t){const i=this._currentFoldedOrManualRanges(t),s=n.tz.sanitizeAndMerge(e,i,this._textModel.getLineCount(),t);this.updatePost(n.tz.fromFoldRanges(s))}updatePost(e){const t=[];let i=-1;for(let s=0,n=e.length;s<n;s++){const n=e.getStartLineNumber(s),r=e.getEndLineNumber(s),o=e.isCollapsed(s),a=0!==e.getSource(s),l={startLineNumber:n,startColumn:this._textModel.getLineMaxColumn(n),endLineNumber:r,endColumn:this._textModel.getLineMaxColumn(r)+1};t.push({range:l,options:this._decorationProvider.getDecorationOption(o,r<=i,a)}),o&&r>i&&(i=r)}this._decorationProvider.changeDecorations((e=>this._editorDecorationIds=e.deltaDecorations(this._editorDecorationIds,t))),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e){const t=[];for(let i=0,s=this._regions.length;i<s;i++){let s=this.regions.isCollapsed(i);const n=this.regions.getSource(i);if(s||0!==n){const r=this._regions.toFoldRange(i),o=this._textModel.getDecorationRange(this._editorDecorationIds[i]);o&&(s&&e?.startsInside(o.startLineNumber+1,o.endLineNumber)&&(s=!1),t.push({startLineNumber:o.startLineNumber,endLineNumber:o.endLineNumber,type:r.type,isCollapsed:s,source:n}))}}return t}getMemento(){const e=this._currentFoldedOrManualRanges(),t=[],i=this._textModel.getLineCount();for(let s=0,n=e.length;s<n;s++){const n=e[s];if(n.startLineNumber>=n.endLineNumber||n.startLineNumber<1||n.endLineNumber>i)continue;const r=this._getLinesChecksum(n.startLineNumber+1,n.endLineNumber);t.push({startLineNumber:n.startLineNumber,endLineNumber:n.endLineNumber,isCollapsed:n.isCollapsed,source:n.source,checksum:r})}return t.length>0?t:void 0}applyMemento(e){if(!Array.isArray(e))return;const t=[],i=this._textModel.getLineCount();for(const n of e){if(n.startLineNumber>=n.endLineNumber||n.startLineNumber<1||n.endLineNumber>i)continue;const e=this._getLinesChecksum(n.startLineNumber+1,n.endLineNumber);n.checksum&&e!==n.checksum||t.push({startLineNumber:n.startLineNumber,endLineNumber:n.endLineNumber,type:void 0,isCollapsed:n.isCollapsed??!0,source:n.source??0})}const s=n.tz.sanitizeAndMerge(this._regions,t,i);this.updatePost(n.tz.fromFoldRanges(s))}_getLinesChecksum(e,t){return(0,r.tW)(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){const i=[];if(this._regions){let s=this._regions.findRange(e),n=1;for(;s>=0;){const e=this._regions.toRegion(s);t&&!t(e,n)||i.push(e),n++,s=e.parentIndex}}return i}getRegionAtLine(e){if(this._regions){const t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){const i=[],s=e?e.regionIndex+1:0,n=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let r=s,o=this._regions.length;r<o;r++){const s=this._regions.toRegion(r);if(!(this._regions.getStartLineNumber(r)<n))break;for(;e.length>0&&!s.containedBy(e[e.length-1]);)e.pop();e.push(s),t(s,e.length)&&i.push(s)}}else for(let r=s,o=this._regions.length;r<o;r++){const e=this._regions.toRegion(r);if(!(this._regions.getStartLineNumber(r)<n))break;t&&!t(e)||i.push(e)}return i}}function a(e,t,i){const s=[];for(const n of i){const i=e.getRegionAtLine(n);if(i){const n=!i.isCollapsed;if(s.push(i),t>1){const r=e.getRegionsInside(i,((e,i)=>e.isCollapsed!==n&&i<t));s.push(...r)}}}e.toggleCollapseState(s)}function l(e,t,i=Number.MAX_VALUE,s){const n=[];if(s&&s.length>0)for(const r of s){const s=e.getRegionAtLine(r);if(s&&(s.isCollapsed!==t&&n.push(s),i>1)){const r=e.getRegionsInside(s,((e,s)=>e.isCollapsed!==t&&s<i));n.push(...r)}}else{const s=e.getRegionsInside(null,((e,s)=>e.isCollapsed!==t&&s<i));n.push(...s)}e.toggleCollapseState(n)}function c(e,t,i,s){const n=[];for(const r of s){const s=e.getAllRegionsAtLine(r,((e,s)=>e.isCollapsed!==t&&s<=i));n.push(...s)}e.toggleCollapseState(n)}function h(e,t,i){const s=[];for(const n of i){const i=e.getAllRegionsAtLine(n,(e=>e.isCollapsed!==t));i.length>0&&s.push(i[0])}e.toggleCollapseState(s)}function d(e,t,i,s){const n=e.getRegionsInside(null,((e,n)=>n===t&&e.isCollapsed!==i&&!s.some((t=>e.containsLine(t)))));e.toggleCollapseState(n)}function u(e,t,i){const s=[];for(const r of i){const t=e.getAllRegionsAtLine(r,void 0);t.length>0&&s.push(t[0])}const n=e.getRegionsInside(null,(e=>s.every((t=>!t.containedBy(e)&&!e.containedBy(t)))&&e.isCollapsed!==t));e.toggleCollapseState(n)}function g(e,t,i){const s=e.textModel,n=e.regions,r=[];for(let o=n.length-1;o>=0;o--)if(i!==n.isCollapsed(o)){const e=n.getStartLineNumber(o);t.test(s.getLineContent(e))&&r.push(n.toRegion(o))}e.toggleCollapseState(r)}function p(e,t,i){const s=e.regions,n=[];for(let r=s.length-1;r>=0;r--)i!==s.isCollapsed(r)&&t===s.getType(r)&&n.push(s.toRegion(r));e.toggleCollapseState(n)}function m(e,t){let i=null;const s=t.getRegionAtLine(e);if(null!==s&&(i=s.startLineNumber,e===i)){const e=s.parentIndex;i=-1!==e?t.regions.getStartLineNumber(e):null}return i}function f(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){if(e!==i.startLineNumber)return i.startLineNumber;{const e=i.parentIndex;let s=0;for(-1!==e&&(s=t.regions.getStartLineNumber(i.parentIndex));null!==i;){if(!(i.regionIndex>0))return null;if(i=t.regions.toRegion(i.regionIndex-1),i.startLineNumber<=s)return null;if(i.parentIndex===e)return i.startLineNumber}}}else if(t.regions.length>0)for(i=t.regions.toRegion(t.regions.length-1);null!==i;){if(i.startLineNumber<e)return i.startLineNumber;i=i.regionIndex>0?t.regions.toRegion(i.regionIndex-1):null}return null}function _(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){const e=i.parentIndex;let s=0;if(-1!==e)s=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;s=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==i;){if(!(i.regionIndex<t.regions.length))return null;if(i=t.regions.toRegion(i.regionIndex+1),i.startLineNumber>=s)return null;if(i.parentIndex===e)return i.startLineNumber}}else if(t.regions.length>0)for(i=t.regions.toRegion(0);null!==i;){if(i.startLineNumber>e)return i.startLineNumber;i=i.regionIndex<t.regions.length?t.regions.toRegion(i.regionIndex+1):null}return null}},44026:(e,t,i)=>{"use strict";i.d(t,{tz:()=>a,yy:()=>n});const s={0:" ",1:"u",2:"r"},n=16777215,r=4278190080;class o{constructor(e){const t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){const t=e/32|0,i=e%32;return 0!==(this._states[t]&1<<i)}set(e,t){const i=e/32|0,s=e%32,n=this._states[i];this._states[i]=t?n|1<<s:n&~(1<<s)}}class a{constructor(e,t,i){if(e.length!==t.length||e.length>65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new o(e.length),this._userDefinedStates=new o(e.length),this._recoveredStates=new o(e.length),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const e=[],t=(t,i)=>{const s=e[e.length-1];return this.getStartLineNumber(s)<=t&&this.getEndLineNumber(s)>=i};for(let i=0,s=this._startIndexes.length;i<s;i++){const s=this._startIndexes[i],r=this._endIndexes[i];if(s>n||r>n)throw new Error("startLineNumber or endLineNumber must not exceed "+n);for(;e.length>0&&!t(s,r);)e.pop();const o=e.length>0?e[e.length-1]:-1;e.push(i),this._startIndexes[i]=s+((255&o)<<24),this._endIndexes[i]=r+((65280&o)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&n}getEndLineNumber(e){return this._endIndexes[e]&n}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return this._collapseStates.get(e)}setCollapsed(e,t){this._collapseStates.set(e,t)}isUserDefined(e){return this._userDefinedStates.get(e)}setUserDefined(e,t){return this._userDefinedStates.set(e,t)}isRecovered(e){return this._recoveredStates.get(e)}setRecovered(e,t){return this._recoveredStates.set(e,t)}getSource(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}setSource(e,t){1===t?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):2===t?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let s=0;s<this._types.length;s++)this._types[s]===e&&(this.setCollapsed(s,t),i=!0);return i}toRegion(e){return new l(this,e)}getParentIndex(e){this.ensureParentIndices();const t=((this._startIndexes[e]&r)>>>24)+((this._endIndexes[e]&r)>>>16);return 65535===t?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t<i;){const s=Math.floor((t+i)/2);e<this.getStartLineNumber(s)?i=s:t=s+1}return t-1}findRange(e){let t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){const e=[];for(let t=0;t<this.length;t++)e[t]=`[${s[this.getSource(t)]}${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/${this.getEndLineNumber(t)}`;return e.join(", ")}toFoldRange(e){return{startLineNumber:this._startIndexes[e]&n,endLineNumber:this._endIndexes[e]&n,type:this._types?this._types[e]:void 0,isCollapsed:this.isCollapsed(e),source:this.getSource(e)}}static fromFoldRanges(e){const t=e.length,i=new Uint32Array(t),s=new Uint32Array(t);let n=[],r=!1;for(let a=0;a<t;a++){const t=e[a];i[a]=t.startLineNumber,s[a]=t.endLineNumber,n.push(t.type),t.type&&(r=!0)}r||(n=void 0);const o=new a(i,s,n);for(let a=0;a<t;a++)e[a].isCollapsed&&o.setCollapsed(a,!0),o.setSource(a,e[a].source);return o}static sanitizeAndMerge(e,t,i,s){i=i??Number.MAX_VALUE;const n=(e,t)=>Array.isArray(e)?i=>i<t?e[i]:void 0:i=>i<t?e.toFoldRange(i):void 0,r=n(e,e.length),o=n(t,t.length);let a=0,l=0,c=r(0),h=o(0);const d=[];let u,g=0;const p=[];for(;c||h;){let e;if(h&&(!c||c.startLineNumber>=h.startLineNumber))c&&c.startLineNumber===h.startLineNumber?(1===h.source?e=h:(e=c,e.isCollapsed=h.isCollapsed&&(c.endLineNumber===h.endLineNumber||!s?.startsInside(c.startLineNumber+1,c.endLineNumber+1)),e.source=0),c=r(++a)):(e=h,h.isCollapsed&&0===h.source&&(e.source=2)),h=o(++l);else{let t=l,i=h;for(;;){if(!i||i.startLineNumber>c.endLineNumber){e=c;break}if(1===i.source&&i.endLineNumber>c.endLineNumber)break;i=o(++t)}c=r(++a)}if(e){for(;u&&u.endLineNumber<e.startLineNumber;)u=d.pop();e.endLineNumber>e.startLineNumber&&e.startLineNumber>g&&e.endLineNumber<=i&&(!u||u.endLineNumber>=e.endLineNumber)&&(p.push(e),g=e.startLineNumber,u&&d.push(u),u=e)}}return p}}class l{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}},76495:(e,t,i)=>{"use strict";i.d(t,{hW:()=>r});var s=i(78049),n=i(44026);class r{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=i,this.id="indent"}dispose(){}compute(e){const t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=t&&!!t.offSide,n=t&&t.markers;return Promise.resolve(function(e,t,i,n=a){const r=e.getOptions().tabSize,l=new o(n);let c;i&&(c=new RegExp(`(${i.start.source})|(?:${i.end.source})`));const h=[],d=e.getLineCount()+1;h.push({indent:-1,endAbove:d,line:d});for(let o=e.getLineCount();o>0;o--){const i=e.getLineContent(o),n=(0,s.G)(i,r);let a,d=h[h.length-1];if(-1!==n){if(c&&(a=i.match(c))){if(!a[1]){h.push({indent:-2,endAbove:o,line:o});continue}{let e=h.length-1;for(;e>0&&-2!==h[e].indent;)e--;if(e>0){h.length=e+1,d=h[e],l.insertFirst(o,d.line,n),d.line=o,d.indent=n,d.endAbove=o;continue}}}if(d.indent>n){do{h.pop(),d=h[h.length-1]}while(d.indent>n);const e=d.endAbove-1;e-o>=1&&l.insertFirst(o,e,n)}d.indent===n?d.endAbove=o:h.push({indent:n,endAbove:o,line:o})}else t&&(d.endAbove=o)}return l.toIndentRanges(e)}(this.editorModel,i,n,this.foldingRangesLimit))}}class o{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>n.yy||t>n.yy)return;const s=this._length;this._startIndexes[s]=e,this._endIndexes[s]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){const t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=this._length-1,s=0;i>=0;i--,s++)e[s]=this._startIndexes[i],t[s]=this._endIndexes[i];return new n.tz(e,t)}{this._foldingRangesLimit.update(this._length,t);let i=0,r=this._indentOccurrences.length;for(let e=0;e<this._indentOccurrences.length;e++){const s=this._indentOccurrences[e];if(s){if(s+i>t){r=e;break}i+=s}}const o=e.getOptions().tabSize,a=new Uint32Array(t),l=new Uint32Array(t);for(let n=this._length-1,c=0;n>=0;n--){const h=this._startIndexes[n],d=e.getLineContent(h),u=(0,s.G)(d,o);(u<r||u===r&&i++<t)&&(a[c]=h,l[c]=this._endIndexes[n],c++)}return new n.tz(a,l)}}}const a={limit:5e3,update:()=>{}}},87784:(e,t,i)=>{"use strict";i.d(t,{M:()=>a});var s=i(64383),n=i(5662),r=i(44026);const o={};class a{constructor(e,t,i,s,r){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=i,this.foldingRangesLimit=s,this.fallbackRangeProvider=r,this.id="syntax",this.disposables=new n.Cm,r&&this.disposables.add(r);for(const n of t)"function"===typeof n.onDidChange&&this.disposables.add(n.onDidChange(i))}compute(e){return function(e,t,i){let n=null;const r=e.map(((e,r)=>Promise.resolve(e.provideFoldingRanges(t,o,i)).then((e=>{if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(n)||(n=[]);const i=t.getLineCount();for(const t of e)t.start>0&&t.end>t.start&&t.end<=i&&n.push({start:t.start,end:t.end,rank:r,kind:t.kind})}}),s.M_)));return Promise.all(r).then((e=>n))}(this.providers,this.editorModel,e).then((t=>{if(t){return function(e,t){const i=e.sort(((e,t)=>{let i=e.start-t.start;return 0===i&&(i=e.rank-t.rank),i})),s=new l(t);let n;const r=[];for(const o of i)if(n){if(o.start>n.start)if(o.end<=n.end)r.push(n),n=o,s.add(o.start,o.end,o.kind&&o.kind.value,r.length);else{if(o.start>n.end){do{n=r.pop()}while(n&&o.start>n.end);n&&r.push(n),n=o}s.add(o.start,o.end,o.kind&&o.kind.value,r.length)}}else n=o,s.add(o.start,o.end,o.kind&&o.kind.value,r.length);return s.toIndentRanges()}(t,this.foldingRangesLimit)}return this.fallbackRangeProvider?.compute(e)??null}))}dispose(){this.disposables.dispose()}}class l{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,s){if(e>r.yy||t>r.yy)return;const n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._nestingLevels[n]=s,this._types[n]=i,this._length++,s<30&&(this._nestingLevelCounts[s]=(this._nestingLevelCounts[s]||0)+1)}toIndentRanges(){const e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=0;i<this._length;i++)e[i]=this._startIndexes[i],t[i]=this._endIndexes[i];return new r.tz(e,t,this._types)}{this._foldingRangesLimit.update(this._length,e);let t=0,i=this._nestingLevelCounts.length;for(let r=0;r<this._nestingLevelCounts.length;r++){const s=this._nestingLevelCounts[r];if(s){if(s+t>e){i=r;break}t+=s}}const s=new Uint32Array(e),n=new Uint32Array(e),o=[];for(let r=0,a=0;r<this._length;r++){const l=this._nestingLevels[r];(l<i||l===i&&t++<e)&&(s[a]=this._startIndexes[r],n[a]=this._endIndexes[r],o[a]=this._types[r],a++)}return new r.tz(s,n,o)}}}},70552:(e,t,i)=>{"use strict";var s=i(31450),n=i(79027),r=i(78209);class o extends s.ks{constructor(){super({id:"editor.action.fontZoomIn",label:r.kg("EditorFontZoomIn.label","Increase Editor Font Size"),alias:"Increase Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(n.D.getZoomLevel()+1)}}class a extends s.ks{constructor(){super({id:"editor.action.fontZoomOut",label:r.kg("EditorFontZoomOut.label","Decrease Editor Font Size"),alias:"Decrease Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(n.D.getZoomLevel()-1)}}class l extends s.ks{constructor(){super({id:"editor.action.fontZoomReset",label:r.kg("EditorFontZoomReset.label","Reset Editor Font Size"),alias:"Reset Editor Font Size",precondition:void 0})}run(e,t){n.D.setZoomLevel(0)}}(0,s.Fl)(o),(0,s.Fl)(a),(0,s.Fl)(l)},49079:(e,t,i)=>{"use strict";i.d(t,{Pj:()=>R,jX:()=>T,vg:()=>k,_V:()=>N});var s=i(25890),n=i(18447),r=i(64383),o=i(42522),a=i(58925),l=i(631),c=i(79400),h=i(50868),d=i(34326),u=i(83069),g=i(36677),p=i(75326),m=i(10920),f=i(18938),_=i(36998),v=i(50091);class C{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"===typeof e?e.toLowerCase():e._lower}}class b{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(C.toKey(e))}has(e){return this._set.has(C.toKey(e))}}var E=i(63591),S=i(56942),y=i(18801),w=i(87213);function L(e,t,i){const s=[],n=new b,r=e.ordered(i);for(const a of r)s.push(a),a.extensionId&&n.add(a.extensionId);const o=t.ordered(i);for(const a of o){if(a.extensionId){if(n.has(a.extensionId))continue;n.add(a.extensionId)}s.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits:(e,t,i)=>a.provideDocumentRangeFormattingEdits(e,e.getFullModelRange(),t,i)})}return s}class R{static{this._selectors=new a.w}static setFormatterSelector(e){return{dispose:R._selectors.unshift(e)}}static async select(e,t,i,s){if(0===e.length)return;const n=o.f.first(R._selectors);return n?await n(e,t,i,s):void 0}}async function T(e,t,i,s,n,r,o){const a=e.get(E._Y),{documentRangeFormattingEditProvider:l}=e.get(S.ILanguageFeaturesService),c=(0,d.z9)(t)?t.getModel():t,h=l.ordered(c),u=await R.select(h,c,s,2);u&&(n.report(u),await a.invokeFunction(x,u,t,i,r,o))}async function x(e,t,i,n,r,o){const a=e.get(m.IEditorWorkerService),l=e.get(y.rr),c=e.get(w.Nt);let u,f;(0,d.z9)(i)?(u=i.getModel(),f=new h.gI(i,5,void 0,r)):(u=i,f=new h.ER(i,r));const v=[];let C=0;for(const h of(0,s._j)(n).sort(g.Q.compareRangesUsingStarts))C>0&&g.Q.areIntersectingOrTouching(v[C-1],h)?v[C-1]=g.Q.fromPositions(v[C-1].getStartPosition(),h.getEndPosition()):C=v.push(h);const b=async e=>{l.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,e);const i=await t.provideDocumentRangeFormattingEdits(u,e,u.getFormattingOptions(),f.token)||[];return l.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,i),i},E=(e,t)=>{if(!e.length||!t.length)return!1;const i=e.reduce(((e,t)=>g.Q.plusRange(e,t.range)),e[0].range);if(!t.some((e=>g.Q.intersectRanges(i,e.range))))return!1;for(const s of e)for(const e of t)if(g.Q.intersectRanges(s.range,e.range))return!0;return!1},S=[],L=[];try{if("function"===typeof t.provideDocumentRangesFormattingEdits){l.trace("[format][provideDocumentRangeFormattingEdits] (request)",t.extensionId?.value,v);const e=await t.provideDocumentRangesFormattingEdits(u,v,u.getFormattingOptions(),f.token)||[];l.trace("[format][provideDocumentRangeFormattingEdits] (response)",t.extensionId?.value,e),L.push(e)}else{for(const e of v){if(f.token.isCancellationRequested)return!0;L.push(await b(e))}for(let e=0;e<v.length;++e)for(let t=e+1;t<v.length;++t){if(f.token.isCancellationRequested)return!0;if(E(L[e],L[t])){const i=g.Q.plusRange(v[e],v[t]),s=await b(i);v.splice(t,1),v.splice(e,1),v.push(i),L.splice(t,1),L.splice(e,1),L.push(s),e=0,t=0}}}for(const e of L){if(f.token.isCancellationRequested)return!0;const t=await a.computeMoreMinimalEdits(u.uri,e);t&&S.push(...t)}}finally{f.dispose()}if(0===S.length)return!1;if((0,d.z9)(i))_.c.execute(i,S,!0),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=S,t=new p.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);u.pushEditOperations([t],S.map((e=>({text:e.text,range:g.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.Q.areIntersectingOrTouching(i,t))return[new p.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return c.playSignal(w.Rh.format,{userGesture:o}),!0}async function k(e,t,i,s,n,r){const o=e.get(E._Y),a=e.get(S.ILanguageFeaturesService),l=(0,d.z9)(t)?t.getModel():t,c=L(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,l),h=await R.select(c,l,i,1);h&&(s.report(h),await o.invokeFunction(A,h,t,i,n,r))}async function A(e,t,i,s,n,r){const o=e.get(m.IEditorWorkerService),a=e.get(w.Nt);let l,c,u;(0,d.z9)(i)?(l=i.getModel(),c=new h.gI(i,5,void 0,n)):(l=i,c=new h.ER(i,n));try{const e=await t.provideDocumentFormattingEdits(l,l.getFormattingOptions(),c.token);if(u=await o.computeMoreMinimalEdits(l.uri,e),c.token.isCancellationRequested)return!0}finally{c.dispose()}if(!u||0===u.length)return!1;if((0,d.z9)(i))_.c.execute(i,u,2!==s),2!==s&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=u,t=new p.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);l.pushEditOperations([t],u.map((e=>({text:e.text,range:g.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.Q.areIntersectingOrTouching(i,t))return[new p.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return a.playSignal(w.Rh.format,{userGesture:r}),!0}function N(e,t,i,s,n,o,a){const l=t.onTypeFormattingEditProvider.ordered(i);return 0===l.length||l[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(l[0].provideOnTypeFormattingEdits(i,s,n,o,a)).catch(r.M_).then((t=>e.computeMoreMinimalEdits(i.uri,t)))}v.w.registerCommand("_executeFormatRangeProvider",(async function(e,...t){const[i,o,a]=t;(0,l.j)(c.r.isUri(i)),(0,l.j)(g.Q.isIRange(o));const h=e.get(f.ITextModelService),d=e.get(m.IEditorWorkerService),u=e.get(S.ILanguageFeaturesService),p=await h.createModelReference(i);try{return async function(e,t,i,n,o,a){const l=t.documentRangeFormattingEditProvider.ordered(i);for(const c of l){const t=await Promise.resolve(c.provideDocumentRangeFormattingEdits(i,n,o,a)).catch(r.M_);if((0,s.EI)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(d,u,p.object.textEditorModel,g.Q.lift(o),a,n.XO.None)}finally{p.dispose()}})),v.w.registerCommand("_executeFormatDocumentProvider",(async function(e,...t){const[i,o]=t;(0,l.j)(c.r.isUri(i));const a=e.get(f.ITextModelService),h=e.get(m.IEditorWorkerService),d=e.get(S.ILanguageFeaturesService),u=await a.createModelReference(i);try{return async function(e,t,i,n,o){const a=L(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i);for(const l of a){const t=await Promise.resolve(l.provideDocumentFormattingEdits(i,n,o)).catch(r.M_);if((0,s.EI)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}(h,d,u.object.textEditorModel,o,n.XO.None)}finally{u.dispose()}})),v.w.registerCommand("_executeFormatOnTypeProvider",(async function(e,...t){const[i,s,r,o]=t;(0,l.j)(c.r.isUri(i)),(0,l.j)(u.y.isIPosition(s)),(0,l.j)("string"===typeof r);const a=e.get(f.ITextModelService),h=e.get(m.IEditorWorkerService),d=e.get(S.ILanguageFeaturesService),g=await a.createModelReference(i);try{return N(h,d,g.object.textEditorModel,u.y.lift(s),r,o,n.XO.None)}finally{g.dispose()}}))},48279:(e,t,i)=>{"use strict";var s=i(25890),n=i(18447),r=i(64383),o=i(24939),a=i(5662),l=i(31450),c=i(80301),h=i(60534),d=i(36677),u=i(60002),g=i(10920),p=i(56942),m=i(49079),f=i(36998),_=i(78209),v=i(87213),C=i(50091),b=i(32848),E=i(63591),S=i(73823),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};let L=class{static{this.ID="editor.contrib.autoFormat"}constructor(e,t,i,s){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._accessibilitySignalService=s,this._disposables=new a.Cm,this._sessionDisposables=new a.Cm,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(56)&&this._update()}))),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new h.y;for(const s of t.autoFormatTriggerCharacters)i.add(s.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType((e=>{const t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))})))}_trigger(e){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),r=new n.Qi,o=this._editor.onDidChangeModelContent((e=>{if(e.isFlush)return r.cancel(),void o.dispose();for(let t=0,s=e.changes.length;t<s;t++){if(e.changes[t].range.endLineNumber<=i.lineNumber)return r.cancel(),void o.dispose()}}));(0,m._V)(this._workerService,this._languageFeaturesService,t,i,e,t.getFormattingOptions(),r.token).then((e=>{r.token.isCancellationRequested||(0,s.EI)(e)&&(this._accessibilitySignalService.playSignal(v.Rh.format,{userGesture:!1}),f.c.execute(this._editor,e,!0))})).finally((()=>{o.dispose()}))}};L=y([w(1,p.ILanguageFeaturesService),w(2,g.IEditorWorkerService),w(3,v.Nt)],L);let R=class{static{this.ID="editor.contrib.formatOnPaste"}constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new a.Cm,this._callOnModel=new a.Cm,this._callOnDispose.add(e.onDidChangeConfiguration((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModel((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModelLanguage((()=>this._update()))),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((({range:e})=>this._trigger(e))))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(m.jX,this.editor,e,2,S.ke.None,n.XO.None,!1).catch(r.dz))}};R=y([w(1,p.ILanguageFeaturesService),w(2,E._Y)],R);class T extends l.ks{constructor(){super({id:"editor.action.formatDocument",label:_.kg("formatDocument.label","Format Document"),alias:"Format Document",precondition:b.M$.and(u.R.notInCompositeEditor,u.R.writable,u.R.hasDocumentFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t){if(t.hasModel()){const i=e.get(E._Y),s=e.get(S.N8);await s.showWhile(i.invokeFunction(m.vg,t,1,S.ke.None,n.XO.None,!0),250)}}}class x extends l.ks{constructor(){super({id:"editor.action.formatSelection",label:_.kg("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:b.M$.and(u.R.writable,u.R.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,o.m5)(2089,2084),weight:100},contextMenuOpts:{when:u.R.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;const i=e.get(E._Y),s=t.getModel(),r=t.getSelections().map((e=>e.isEmpty()?new d.Q(e.startLineNumber,1,e.startLineNumber,s.getLineMaxColumn(e.startLineNumber)):e)),o=e.get(S.N8);await o.showWhile(i.invokeFunction(m.jX,t,r,1,S.ke.None,n.XO.None,!0),250)}}(0,l.HW)(L.ID,L,2),(0,l.HW)(R.ID,R,2),(0,l.Fl)(T),(0,l.Fl)(x),C.w.registerCommand("editor.action.format",(async e=>{const t=e.get(c.T).getFocusedCodeEditor();if(!t||!t.hasModel())return;const i=e.get(C.d);t.getSelection().isEmpty()?await i.executeCommand("editor.action.formatDocument"):await i.executeCommand("editor.action.formatSelection")}))},36998:(e,t,i)=>{"use strict";i.d(t,{c:()=>o});var s=i(7085),n=i(36677),r=i(55190);class o{static _handleEolEdits(e,t){let i;const s=[];for(const n of t)"number"===typeof n.eol&&(i=n.eol),n.range&&"string"===typeof n.text&&s.push(n);return"number"===typeof i&&e.hasModel()&&e.getModel().pushEOL(i),s}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),s=i.validateRange(t.range);return i.getFullModelRange().equalsRange(s)}static execute(e,t,i){i&&e.pushUndoStop();const a=r.D.capture(e),l=o._handleEolEdits(e,t);1===l.length&&o._isFullModelReplaceEdit(e,l[0])?e.executeEdits("formatEditsCommand",l.map((e=>s.k.replace(n.Q.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",l.map((e=>s.k.replaceMove(n.Q.lift(e.range),e.text)))),i&&e.pushUndoStop(),a.restoreRelativeVerticalPositionOfCursor(e)}}},65877:(e,t,i)=>{"use strict";i.d(t,{j:()=>oe,i:()=>le});var s=i(10350),n=i(5662),r=i(31450),o=i(80301),a=i(83069),l=i(36677),c=i(60002),h=i(25890),d=i(41234),u=i(58925),g=i(91508),p=i(79400),m=i(14718),f=i(63591),_=i(75147),v=i(84001),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},b=function(e,t){return function(i,s){t(i,s,e)}};class E{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let S=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new d.vl,this.onDidChange=this._onDidChange.event,this._dispoables=new n.Cm,this._markers=[],this._nextIdx=-1,p.r.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);const s=this._configService.getValue("problems.sortOrder"),r=(e,t)=>{let i=(0,g.UD)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===s?l.Q.compareRangesUsingStarts(e,t)||_.cj.compare(e.severity,t.severity):_.cj.compare(e.severity,t.severity)||l.Q.compareRangesUsingStarts(e,t)),i},o=()=>{this._markers=this._markerService.read({resource:p.r.isUri(e)?e:void 0,severities:_.cj.Error|_.cj.Warning|_.cj.Info}),"function"===typeof e&&(this._markers=this._markers.filter((e=>this._resourceFilter(e.resource)))),this._markers.sort(r)};o(),this._dispoables.add(t.onMarkerChanged((e=>{this._resourceFilter&&!e.some((e=>this._resourceFilter(e)))||(o(),this._nextIdx=-1,this._onDidChange.fire())})))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new E(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let s=!1,n=this._markers.findIndex((t=>t.resource.toString()===e.uri.toString()));n<0&&(n=(0,h.El)(this._markers,{resource:e.uri},((e,t)=>(0,g.UD)(e.resource.toString(),t.resource.toString()))),n<0&&(n=~n));for(let r=n;r<this._markers.length;r++){let i=l.Q.lift(this._markers[r]);if(i.isEmpty()){const t=e.getWordAtPosition(i.getStartPosition());t&&(i=new l.Q(i.startLineNumber,t.startColumn,i.startLineNumber,t.endColumn))}if(t&&(i.containsPosition(t)||t.isBeforeOrEqual(i.getStartPosition()))){this._nextIdx=r,s=!0;break}if(this._markers[r].resource.toString()!==e.uri.toString())break}s||(this._nextIdx=i?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,i){if(0===this._markers.length)return!1;const s=this._nextIdx;return-1===this._nextIdx?this._initIdx(t,i,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),s!==this._nextIdx}find(e,t){let i=this._markers.findIndex((t=>t.resource.toString()===e.toString()));if(!(i<0))for(;i<this._markers.length;i++)if(l.Q.containsPosition(this._markers[i],t))return new E(this._markers[i],i+1,this._markers.length)}};S=C([b(1,_.DR),b(2,v.pG)],S);const y=(0,f.u1)("IMarkerNavigationService");let w=class{constructor(e,t){this._markerService=e,this._configService=t,this._provider=new u.w}getMarkerList(e){for(const t of this._provider){const i=t.getMarkerList(e);if(i)return i}return new S(e,this._markerService,this._configService)}};w=C([b(0,_.DR),b(1,v.pG)],w),(0,m.v)(y,w,1);var L,R=i(78209),T=i(27195),x=i(32848),k=i(61394),A=i(8597),N=i(31295),I=i(47661),O=i(89403),D=i(84226),M=i(57629),P=i(67841),F=i(49099),U=i(25689),H=i(42291);!function(e){e.className=function(e){switch(e){case H.A.Ignore:return"severity-ignore "+U.L.asClassName(s.W.info);case H.A.Info:return U.L.asClassName(s.W.info);case H.A.Warning:return U.L.asClassName(s.W.warning);case H.A.Error:return U.L.asClassName(s.W.error);default:return""}}}(L||(L={}));var B,W=i(66261),V=i(47612),z=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},G=function(e,t){return function(i,s){t(i,s,e)}};class j{constructor(e,t,i,s,r){this._openerService=s,this._labelService=r,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new n.Cm,this._editor=t;const o=document.createElement("div");o.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),o.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),o.appendChild(this._relatedBlock),this._disposables.add(A.b2(this._relatedBlock,"click",(e=>{e.preventDefault();const t=this._relatedDiagnostics.get(e.target);t&&i(t)}))),this._scrollable=new N.Se(o,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((e=>{o.style.left=`-${e.scrollLeft}px`,o.style.top=`-${e.scrollTop}px`}))),this._disposables.add(this._scrollable)}dispose(){(0,n.AS)(this._disposables)}update(e){const{source:t,message:i,relatedInformation:s,code:n}=e;let r=(t?.length||0)+2;n&&(r+="string"===typeof n?n.length:n.value.length);const o=(0,g.uz)(i);this._lines=o.length,this._longestLineLength=0;for(const h of o)this._longestLineLength=Math.max(h.length+r,this._longestLineLength);A.w_(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const h of o)a=document.createElement("div"),a.innerText=h,""===h&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if(t||n){const e=document.createElement("span");if(e.classList.add("details"),a.appendChild(e),t){const i=document.createElement("span");i.innerText=t,i.classList.add("source"),e.appendChild(i)}if(n)if("string"===typeof n){const t=document.createElement("span");t.innerText=`(${n})`,t.classList.add("code"),e.appendChild(t)}else{this._codeLink=A.$("a.code-link"),this._codeLink.setAttribute("href",`${n.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(n.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()};A.BC(this._codeLink,A.$("span")).innerText=n.value,e.appendChild(this._codeLink)}}if(A.w_(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,h.EI)(s)){const e=this._relatedBlock.appendChild(document.createElement("div"));e.style.paddingTop=`${Math.floor(.66*this._editor.getOption(67))}px`,this._lines+=1;for(const t of s){const i=document.createElement("div"),s=document.createElement("a");s.classList.add("filename"),s.innerText=`${this._labelService.getUriBasenameLabel(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,s.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(s,t);const n=document.createElement("span");n.innerText=t.message,i.appendChild(s),i.appendChild(n),this._lines+=1,e.appendChild(i)}}const l=this._editor.getOption(50),c=Math.ceil(l.typicalFullwidthCharacterWidth*this._longestLineLength*.75),d=l.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:c,scrollHeight:d})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case _.cj.Error:t=R.kg("Error","Error");break;case _.cj.Warning:t=R.kg("Warning","Warning");break;case _.cj.Info:t=R.kg("Info","Info");break;case _.cj.Hint:t=R.kg("Hint","Hint")}let i=R.kg("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const s=this._editor.getModel();if(s&&e.startLineNumber<=s.getLineCount()&&e.startLineNumber>=1){i=`${s.getLineContent(e.startLineNumber)}, ${i}`}return i}}let K=class extends D.j6{static{B=this}static{this.TitleMenu=new T.D8("gotoErrorTitleMenu")}constructor(e,t,i,s,r,o,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},r),this._themeService=t,this._openerService=i,this._menuService=s,this._contextKeyService=o,this._labelService=a,this._callOnDispose=new n.Cm,this._onDidSelectRelatedInformation=new d.vl,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=_.cj.Warning,this._backgroundColor=I.Q1.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(ie);let t=Q,i=X;this._severity===_.cj.Warning?(t=Z,i=J):this._severity===_.cj.Info&&(t=ee,i=te);const s=e.getColor(t),n=e.getColor(i);this.style({arrowColor:s,frameColor:s,headerBackgroundColor:n,primaryHeadingColor:e.getColor(D._X),secondaryHeadingColor:e.getColor(D.e3)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun((e=>this.editor.focus())));const t=[],i=this._menuService.getMenuActions(B.TitleMenu,this._contextKeyService);(0,M.Ot)(i,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0})}_fillTitleIcon(e){this._icon=A.BC(e,A.$(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new j(this._container,this.editor,(e=>this._onDidSelectRelatedInformation.fire(e)),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const s=l.Q.lift(e),n=this.editor.getPosition(),r=n&&s.containsPosition(n)?n:s.getStartPosition();super.show(r,this.computeRequiredHeight());const o=this.editor.getModel();if(o){const e=i>1?R.kg("problems","{0} of {1} problems",t,i):R.kg("change","{0} of {1} problem",t,i);this.setTitle((0,O.P8)(o.uri),e)}this._icon.className=`codicon ${L.className(_.cj.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};K=B=z([G(1,V.Gy),G(2,F.C),G(3,T.ez),G(4,f._Y),G(5,x.fN),G(6,P.L)],K);const Y=(0,W.yLr)(W.Rbi,W.AN$),q=(0,W.yLr)(W.Hng,W.Stt),$=(0,W.yLr)(W.pOz,W.IIb),Q=(0,W.x1A)("editorMarkerNavigationError.background",{dark:Y,light:Y,hcDark:W.b1q,hcLight:W.b1q},R.kg("editorMarkerNavigationError","Editor marker navigation widget error color.")),X=(0,W.x1A)("editorMarkerNavigationError.headerBackground",{dark:(0,W.JO0)(Q,.1),light:(0,W.JO0)(Q,.1),hcDark:null,hcLight:null},R.kg("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),Z=(0,W.x1A)("editorMarkerNavigationWarning.background",{dark:q,light:q,hcDark:W.b1q,hcLight:W.b1q},R.kg("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),J=(0,W.x1A)("editorMarkerNavigationWarning.headerBackground",{dark:(0,W.JO0)(Z,.1),light:(0,W.JO0)(Z,.1),hcDark:"#0C141F",hcLight:(0,W.JO0)(Z,.2)},R.kg("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),ee=(0,W.x1A)("editorMarkerNavigationInfo.background",{dark:$,light:$,hcDark:W.b1q,hcLight:W.b1q},R.kg("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),te=(0,W.x1A)("editorMarkerNavigationInfo.headerBackground",{dark:(0,W.JO0)(ee,.1),light:(0,W.JO0)(ee,.1),hcDark:null,hcLight:null},R.kg("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),ie=(0,W.x1A)("editorMarkerNavigation.background",W.YtV,R.kg("editorMarkerNavigationBackground","Editor marker navigation widget background."));var se,ne=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},re=function(e,t){return function(i,s){t(i,s,e)}};let oe=class{static{se=this}static{this.ID="editor.contrib.markerController"}static get(e){return e.getContribution(se.ID)}constructor(e,t,i,s,r){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=s,this._instantiationService=r,this._sessionDispoables=new n.Cm,this._editor=e,this._widgetVisible=he.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(K,this._editor),this._widget.onDidClose((()=>this.close()),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition((e=>{this._model?.selected&&l.Q.containsPosition(this._model?.selected.marker,e.position)||this._model?.resetIndex()}))),this._sessionDispoables.add(this._model.onDidChange((()=>{if(!this._widget||!this._widget.position||!this._model)return;const e=this._model.find(this._editor.getModel().uri,this._widget.position);e?this._widget.updateMarker(e.marker):this._widget.showStale()}))),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation((e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:l.Q.lift(e).collapseToStart()}},this._editor),this.close(!1)}))),this._sessionDispoables.add(this._editor.onDidChangeModel((()=>this._cleanUp()))),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new a.y(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}async nagivate(e,t){if(this._editor.hasModel()){const i=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(i.move(e,this._editor.getModel(),this._editor.getPosition()),!i.selected)return;if(i.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const s=await this._editorService.openCodeEditor({resource:i.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:i.selected.marker}},this._editor);s&&(se.get(s)?.close(),se.get(s)?.nagivate(e,t))}else this._widget.showAtMarker(i.selected.marker,i.selected.index,i.selected.total)}}};oe=se=ne([re(1,y),re(2,x.fN),re(3,o.T),re(4,f._Y)],oe);class ae extends r.ks{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}async run(e,t){t.hasModel()&&oe.get(t)?.nagivate(this._next,this._multiFile)}}class le extends ae{static{this.ID="editor.action.marker.next"}static{this.LABEL=R.kg("markerAction.next.label","Go to Next Problem (Error, Warning, Info)")}constructor(){super(!0,!1,{id:le.ID,label:le.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:c.R.focus,primary:578,weight:100},menuOpts:{menuId:K.TitleMenu,title:le.LABEL,icon:(0,k.pU)("marker-navigation-next",s.W.arrowDown,R.kg("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}class ce extends ae{static{this.ID="editor.action.marker.prev"}static{this.LABEL=R.kg("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)")}constructor(){super(!1,!1,{id:ce.ID,label:ce.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:c.R.focus,primary:1602,weight:100},menuOpts:{menuId:K.TitleMenu,title:ce.LABEL,icon:(0,k.pU)("marker-navigation-previous",s.W.arrowUp,R.kg("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}(0,r.HW)(oe.ID,oe,4),(0,r.Fl)(le),(0,r.Fl)(ce),(0,r.Fl)(class extends ae{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:R.kg("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:c.R.focus,primary:66,weight:100},menuOpts:{menuId:T.D8.MenubarGoMenu,title:R.kg({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),(0,r.Fl)(class extends ae{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:R.kg("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:c.R.focus,primary:1090,weight:100},menuOpts:{menuId:T.D8.MenubarGoMenu,title:R.kg({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const he=new x.N1("markersNavigationVisible",!1),de=r.DX.bindToContribution(oe.get);(0,r.E_)(new de({id:"closeMarkersNavigation",precondition:he,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:c.R.focus,primary:9,secondary:[1033]}}))},99312:(e,t,i)=>{"use strict";i.d(t,{mR:()=>K,bn:()=>j,QS:()=>G});var s=i(11007),n=i(90766),r=i(24939),o=i(631),a=i(79400),l=i(50868),c=i(34326),h=i(31450),d=i(80301),u=i(29163),g=i(83069),p=i(36677),m=i(60002),f=i(62083),_=i(23646),v=i(79614),C=i(41234),b=i(5662),E=i(89403),S=i(78209),y=i(32848),w=i(14718),L=i(63591),R=i(98031),T=i(59261),x=i(58591),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};const N=new y.N1("hasSymbols",!1,(0,S.kg)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),I=(0,L.u1)("ISymbolNavigationService");let O=class{constructor(e,t,i,s){this._editorService=t,this._notificationService=i,this._keybindingService=s,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=N.bindTo(e)}reset(){this._ctxHasSymbols.reset(),this._currentState?.dispose(),this._currentMessage?.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new D(this._editorService),s=i.onDidChange((e=>{if(this._ignoreEditorChange)return;const i=this._editorService.getActiveCodeEditor();if(!i)return;const s=i.getModel(),n=i.getPosition();if(!s||!n)return;let r=!1,o=!1;for(const a of t.references)if((0,E.n4)(a.uri,s.uri))r=!0,o=o||p.Q.containsPosition(a.range,n);else if(r)break;r&&o||this.reset()}));this._currentState=(0,b.qE)(i,s)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:p.Q.collapseToStart(t.range),selectionRevealType:3}},e).finally((()=>{this._ignoreEditorChange=!1}))}_showMessage(){this._currentMessage?.dispose();const e=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),t=e?(0,S.kg)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,e.getLabel()):(0,S.kg)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(t)}};O=k([A(0,y.fN),A(1,d.T),A(2,x.Ot),A(3,R.b)],O),(0,w.v)(I,O,1),(0,h.E_)(new class extends h.DX{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:N,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(I).revealNext(t)}}),T.f.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:N,primary:9,handler(e){e.get(I).reset()}});let D=class{constructor(e){this._listener=new Map,this._disposables=new b.Cm,this._onDidChange=new C.vl,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,b.AS)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,b.qE)(e.onDidChangeCursorPosition((t=>this._onDidChange.fire({editor:e}))),e.onDidChangeModelContent((t=>this._onDidChange.fire({editor:e})))))}_onDidRemoveEditor(e){this._listener.get(e)?.dispose(),this._listener.delete(e)}};D=k([A(0,d.T)],D);var M=i(99645),P=i(84226),F=i(27195),U=i(50091),H=i(73823),B=i(80538),W=i(56942),V=i(42522),z=i(28290);F.ZG.appendMenuItem(F.D8.EditorContext,{submenu:F.D8.EditorContextPeek,title:S.kg("peek.submenu","Peek"),group:"navigation",order:100});class G{static is(e){return!(!e||"object"!==typeof e)&&(e instanceof G||!(!g.y.isIPosition(e.position)||!e.model))}constructor(e,t){this.model=e,this.position=t}}class j extends h.qO{static{this._allSymbolNavigationCommands=new Map}static{this._activeAlternativeCommands=new Set}static all(){return j._allSymbolNavigationCommands.values()}static _patchConfig(e){const t={...e,f1:!0};if(t.menu)for(const i of V.f.wrap(t.menu))i.id!==F.D8.EditorContext&&i.id!==F.D8.EditorContextPeek||(i.when=y.M$.and(e.precondition,i.when));return t}constructor(e,t){super(j._patchConfig(t)),this.configuration=e,j._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,r){if(!t.hasModel())return Promise.resolve(void 0);const o=e.get(x.Ot),a=e.get(d.T),c=e.get(H.N8),h=e.get(I),u=e.get(W.ILanguageFeaturesService),g=e.get(L._Y),p=t.getModel(),m=t.getPosition(),f=G.is(i)?i:new G(p,m),_=new l.gI(t,5),v=(0,n.PK)(this._getLocationModel(u,f.model,f.position,_.token),_.token).then((async e=>{if(!e||_.token.isCancellationRequested)return;let n;if((0,s.xE)(e.ariaMessage),e.referenceAt(p.uri,m)){const e=this._getAlternativeCommand(t);!j._activeAlternativeCommands.has(e)&&j._allSymbolNavigationCommands.has(e)&&(n=j._allSymbolNavigationCommands.get(e))}const o=e.references.length;if(0===o){if(!this.configuration.muteMessage){const e=p.getWordAtPosition(m);M.k.get(t)?.showMessage(this._getNoResultFoundMessage(e),m)}}else{if(1!==o||!n)return this._onResult(a,h,t,e,r);j._activeAlternativeCommands.add(this.desc.id),g.invokeFunction((e=>n.runEditorCommand(e,t,i,r).finally((()=>{j._activeAlternativeCommands.delete(this.desc.id)}))))}}),(e=>{o.error(e)})).finally((()=>{_.dispose()}));return c.showWhile(v,250),v}async _onResult(e,t,i,s,n){const r=this._getGoToPreference(i);if(i instanceof u.t||!(this.configuration.openInPeek||"peek"===r&&s.references.length>1)){const o=s.firstReference(),a=s.references.length>1&&"gotoAndPeek"===r,l=await this._openReference(i,e,o,this.configuration.openToSide,!a);a&&l?this._openInPeek(l,s,n):s.dispose(),"goto"===r&&t.put(o)}else this._openInPeek(i,s,n)}async _openReference(e,t,i,s,n){let r;if((0,f.Iu)(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const o=await t.openCodeEditor({resource:i.uri,options:{selection:p.Q.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,s);if(o){if(n){const e=o.getModel(),t=o.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout((()=>{o.getModel()===e&&t.clear()}),350)}return o}}_openInPeek(e,t,i){const s=_.X.get(e);s&&e.hasModel()?s.toggleWidget(i??e.getSelection(),(0,n.SS)((e=>Promise.resolve(t))),this.configuration.openInPeek):t.dispose()}}class K extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.hE)(e.definitionProvider,t,i,!1,s),S.kg("def.title","Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("noResultWord","No definition found for '{0}'",e.word):S.kg("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleDefinitions}}(0,F.ug)(class e extends K{static{this.id="editor.action.revealDefinition"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,title:{...S.aS("actions.goToDecl.label","Go to Definition"),mnemonicTitle:S.kg({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:m.R.hasDefinitionProvider,keybinding:[{when:m.R.editorTextFocus,primary:70,weight:100},{when:y.M$.and(m.R.editorTextFocus,z.W0),primary:2118,weight:100}],menu:[{id:F.D8.EditorContext,group:"navigation",order:1.1},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),U.w.registerCommandAlias("editor.action.goToDeclaration",e.id)}}),(0,F.ug)(class e extends K{static{this.id="editor.action.revealDefinitionAside"}constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:e.id,title:S.aS("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:y.M$.and(m.R.hasDefinitionProvider,m.R.isInEmbeddedEditor.toNegated()),keybinding:[{when:m.R.editorTextFocus,primary:(0,r.m5)(2089,70),weight:100},{when:y.M$.and(m.R.editorTextFocus,z.W0),primary:(0,r.m5)(2089,2118),weight:100}]}),U.w.registerCommandAlias("editor.action.openDeclarationToTheSide",e.id)}}),(0,F.ug)(class e extends K{static{this.id="editor.action.peekDefinition"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.id,title:S.aS("actions.previewDecl.label","Peek Definition"),precondition:y.M$.and(m.R.hasDefinitionProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:F.D8.EditorContextPeek,group:"peek",order:2}}),U.w.registerCommandAlias("editor.action.previewDeclaration",e.id)}});class Y extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.sv)(e.declarationProvider,t,i,!1,s),S.kg("decl.title","Declarations"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("decl.noResultWord","No declaration found for '{0}'",e.word):S.kg("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(58).multipleDeclarations}}(0,F.ug)(class e extends Y{static{this.id="editor.action.revealDeclaration"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,title:{...S.aS("actions.goToDeclaration.label","Go to Declaration"),mnemonicTitle:S.kg({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:y.M$.and(m.R.hasDeclarationProvider,m.R.isInEmbeddedEditor.toNegated()),menu:[{id:F.D8.EditorContext,group:"navigation",order:1.3},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?S.kg("decl.noResultWord","No declaration found for '{0}'",e.word):S.kg("decl.generic.noResults","No declaration found")}}),(0,F.ug)(class extends Y{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:S.aS("actions.peekDecl.label","Peek Declaration"),precondition:y.M$.and(m.R.hasDeclarationProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:3}})}});class q extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.f9)(e.typeDefinitionProvider,t,i,!1,s),S.kg("typedef.title","Type Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):S.kg("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleTypeDefinitions}}(0,F.ug)(class e extends q{static{this.ID="editor.action.goToTypeDefinition"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,title:{...S.aS("actions.goToTypeDefinition.label","Go to Type Definition"),mnemonicTitle:S.kg({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:m.R.hasTypeDefinitionProvider,keybinding:{when:m.R.editorTextFocus,primary:0,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.4},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}}),(0,F.ug)(class e extends q{static{this.ID="editor.action.peekTypeDefinition"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,title:S.aS("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:y.M$.and(m.R.hasTypeDefinitionProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:4}})}});class $ extends j{async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.eS)(e.implementationProvider,t,i,!1,s),S.kg("impl.title","Implementations"))}_getNoResultFoundMessage(e){return e&&e.word?S.kg("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):S.kg("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(58).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(58).multipleImplementations}}(0,F.ug)(class e extends ${static{this.ID="editor.action.goToImplementation"}constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,title:{...S.aS("actions.goToImplementation.label","Go to Implementations"),mnemonicTitle:S.kg({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:m.R.hasImplementationProvider,keybinding:{when:m.R.editorTextFocus,primary:2118,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.45},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}}),(0,F.ug)(class e extends ${static{this.ID="editor.action.peekImplementation"}constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,title:S.aS("actions.peekImplementation.label","Peek Implementations"),precondition:y.M$.and(m.R.hasImplementationProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:3142,weight:100},menu:{id:F.D8.EditorContextPeek,group:"peek",order:5}})}});class Q extends j{_getNoResultFoundMessage(e){return e?S.kg("references.no","No references found for '{0}'",e.word):S.kg("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(58).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(58).multipleReferences}}(0,F.ug)(class extends Q{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...S.aS("goToReferences.label","Go to References"),mnemonicTitle:S.kg({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:y.M$.and(m.R.hasReferenceProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:1094,weight:100},menu:[{id:F.D8.EditorContext,group:"navigation",order:1.45},{id:F.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.NN)(e.referenceProvider,t,i,!0,!1,s),S.kg("ref.title","References"))}}),(0,F.ug)(class extends Q{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:S.aS("references.action.label","Peek References"),precondition:y.M$.and(m.R.hasReferenceProvider,P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:F.D8.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(e,t,i,s){return new v.y4(await(0,B.NN)(e.referenceProvider,t,i,!1,!1,s),S.kg("ref.title","References"))}});class X extends j{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:S.aS("label.generic","Go to Any Symbol"),precondition:y.M$.and(P.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}async _getLocationModel(e,t,i,s){return new v.y4(this._references,S.kg("generic.title","Locations"))}_getNoResultFoundMessage(e){return e&&S.kg("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){return this._gotoMultipleBehaviour??e.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}U.w.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.r},{name:"position",description:"The position at which to start",constraint:g.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(e,t,i,s,n,r,l)=>{(0,o.j)(a.r.isUri(t)),(0,o.j)(g.y.isIPosition(i)),(0,o.j)(Array.isArray(s)),(0,o.j)("undefined"===typeof n||"string"===typeof n),(0,o.j)("undefined"===typeof l||"boolean"===typeof l);const h=e.get(d.T),u=await h.openCodeEditor({resource:t},h.getFocusedCodeEditor());if((0,c.z9)(u))return u.setPosition(i),u.revealPositionInCenterIfOutsideViewport(i,0),u.invokeWithinContext((e=>{const t=new class extends X{_getNoResultFoundMessage(e){return r||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(r),openInPeek:Boolean(l),openToSide:!1},s,n);e.get(L._Y).invokeFunction(t.run.bind(t),u)}))}}),U.w.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.r},{name:"position",description:"The position at which to start",constraint:g.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:async(e,t,i,s,n)=>{e.get(U.d).executeCommand("editor.action.goToLocations",t,i,s,n,void 0,!0)}}),U.w.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>{(0,o.j)(a.r.isUri(t)),(0,o.j)(g.y.isIPosition(i));const s=e.get(W.ILanguageFeaturesService),r=e.get(d.T);return r.openCodeEditor({resource:t},r.getFocusedCodeEditor()).then((e=>{if(!(0,c.z9)(e)||!e.hasModel())return;const t=_.X.get(e);if(!t)return;const r=(0,n.SS)((t=>(0,B.NN)(s.referenceProvider,e.getModel(),g.y.lift(i),!1,!1,t).then((e=>new v.y4(e,S.kg("ref.title","References")))))),o=new p.Q(i.lineNumber,i.column,i.lineNumber,i.column);return Promise.resolve(t.toggleWidget(o,r,!1))}))}}),U.w.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},80538:(e,t,i)=>{"use strict";i.d(t,{NN:()=>f,eS:()=>p,f9:()=>m,hE:()=>u,sv:()=>g});var s=i(25890),n=i(18447),r=i(64383),o=i(36456),a=i(31450),l=i(56942),c=i(79614);function h(e,t){return t.uri.scheme===e.uri.scheme||!(0,o.fV)(t.uri,o.ny.walkThroughSnippet,o.ny.vscodeChatCodeBlock,o.ny.vscodeChatCodeCompareBlock)}async function d(e,t,i,n,o){const a=i.ordered(e,n).map((i=>Promise.resolve(o(i,e,t)).then(void 0,(e=>{(0,r.M_)(e)})))),l=await Promise.all(a);return(0,s.Yc)(l.flat()).filter((t=>h(e,t)))}function u(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideDefinition(t,i,n)))}function g(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideDeclaration(t,i,n)))}function p(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideImplementation(t,i,n)))}function m(e,t,i,s,n){return d(t,i,e,s,((e,t,i)=>e.provideTypeDefinition(t,i,n)))}function f(e,t,i,s,n,r){return d(t,i,e,n,(async(e,t,i)=>{const n=(await e.provideReferences(t,i,{includeDeclaration:!0},r))?.filter((e=>h(t,e)));if(!s||!n||2!==n.length)return n;const o=(await e.provideReferences(t,i,{includeDeclaration:!1},r))?.filter((e=>h(t,e)));return o&&1===o.length?o:n}))}async function _(e){const t=await e(),i=new c.y4(t,""),s=i.references.map((e=>e.link));return i.dispose(),s}(0,a.ke)("_executeDefinitionProvider",((e,t,i)=>{const s=u(e.get(l.ILanguageFeaturesService).definitionProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDefinitionProvider_recursive",((e,t,i)=>{const s=u(e.get(l.ILanguageFeaturesService).definitionProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeTypeDefinitionProvider",((e,t,i)=>{const s=m(e.get(l.ILanguageFeaturesService).typeDefinitionProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeTypeDefinitionProvider_recursive",((e,t,i)=>{const s=m(e.get(l.ILanguageFeaturesService).typeDefinitionProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDeclarationProvider",((e,t,i)=>{const s=g(e.get(l.ILanguageFeaturesService).declarationProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeDeclarationProvider_recursive",((e,t,i)=>{const s=g(e.get(l.ILanguageFeaturesService).declarationProvider,t,i,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeReferenceProvider",((e,t,i)=>{const s=f(e.get(l.ILanguageFeaturesService).referenceProvider,t,i,!1,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeReferenceProvider_recursive",((e,t,i)=>{const s=f(e.get(l.ILanguageFeaturesService).referenceProvider,t,i,!1,!0,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeImplementationProvider",((e,t,i)=>{const s=p(e.get(l.ILanguageFeaturesService).implementationProvider,t,i,!1,n.XO.None);return _((()=>s))})),(0,a.ke)("_executeImplementationProvider_recursive",((e,t,i)=>{const s=p(e.get(l.ILanguageFeaturesService).implementationProvider,t,i,!0,n.XO.None);return _((()=>s))}))},37927:(e,t,i)=>{"use strict";i.d(t,{gi:()=>d});var s=i(41234),n=i(5662),r=i(98067);function o(e,t){return!!e[t]}class a{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=o(e.event,t.triggerModifier),this.hasSideBySideModifier=o(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class l{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=o(e,t.triggerModifier)}}class c{constructor(e,t,i,s){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=s}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function h(e){return"altKey"===e?r.zx?new c(57,"metaKey",6,"altKey"):new c(5,"ctrlKey",6,"altKey"):r.zx?new c(6,"altKey",57,"metaKey"):new c(6,"altKey",5,"ctrlKey")}class d extends n.jG{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new s.vl),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new s.vl),this.onExecute=this._onExecute.event,this._onCancel=this._register(new s.vl),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=t?.extractLineNumberFromMouseEvent??(e=>e.target.position?e.target.position.lineNumber:0),this._opts=h(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration((e=>{if(e.hasChanged(78)){const e=h(this._editor.getOption(78));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}}))),this._register(this._editor.onMouseMove((e=>this._onEditorMouseMove(new a(e,this._opts))))),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(new a(e,this._opts))))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(new a(e,this._opts))))),this._register(this._editor.onKeyDown((e=>this._onEditorKeyDown(new l(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new l(e,this._opts))))),this._register(this._editor.onMouseDrag((()=>this._resetHandler()))),this._register(this._editor.onDidChangeCursorSelection((e=>this._onDidChangeCursorSelection(e)))),this._register(this._editor.onDidChangeModel((e=>this._resetHandler()))),this._register(this._editor.onDidChangeModelContent((()=>this._resetHandler()))),this._register(this._editor.onDidScrollChange((e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()})))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){const t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},62427:(e,t,i)=>{"use strict";i.d(t,{k:()=>y});var s,n=i(90766),r=i(64383),o=i(16980),a=i(5662),l=i(50868),c=i(31450),h=i(36677),d=i(10154),u=i(18938),g=i(37927),p=i(84226),m=i(78209),f=i(32848),_=i(99312),v=i(80538),C=i(56942),b=i(87289),E=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};let y=class{static{s=this}static{this.ID="editor.contrib.gotodefinitionatposition"}static{this.MAX_SOURCE_PREVIEW_LINES=8}constructor(e,t,i,s){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=s,this.toUnhook=new a.Cm,this.toUnhookForKeyboard=new a.Cm,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const n=new g.gi(e);this.toUnhook.add(n),this.toUnhook.add(n.onMouseMoveOrRelevantKeyDown((([e,t])=>{this.startFindDefinitionFromMouse(e,t??void 0)}))),this.toUnhook.add(n.onExecute((e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).catch((e=>{(0,r.dz)(e)})).finally((()=>{this.removeLinkDecorations()}))}))),this.toUnhook.add(n.onCancel((()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null})))}static get(e){return e.getContribution(s.ID)}async startFindDefinitionFromCursor(e){await this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition((()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()}))),this.toUnhookForKeyboard.add(this.editor.onKeyDown((e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())})))}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const i=e.target.position;this.startFindDefinition(i)}async startFindDefinition(e){this.toUnhookForKeyboard.clear();const t=e?this.editor.getModel()?.getWordAtPosition(e):null;if(!t)return this.currentWordAtPosition=null,void this.removeLinkDecorations();if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===t.startColumn&&this.currentWordAtPosition.endColumn===t.endColumn&&this.currentWordAtPosition.word===t.word)return;this.currentWordAtPosition=t;const i=new l.$t(this.editor,15);let s;this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,n.SS)((t=>this.findDefinition(e,t)));try{s=await this.previousPromise}catch(c){return void(0,r.dz)(c)}if(!s||!s.length||!i.validate(this.editor))return void this.removeLinkDecorations();const a=s[0].originSelectionRange?h.Q.lift(s[0].originSelectionRange):new h.Q(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn);if(s.length>1){let e=a;for(const{originSelectionRange:t}of s)t&&(e=h.Q.plusRange(e,t));this.addDecoration(e,(new o.Bc).appendText(m.kg("multipleResults","Click to show {0} definitions.",s.length)))}else{const e=s[0];if(!e.uri)return;this.textModelResolverService.createModelReference(e.uri).then((t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:i}}=t,{startLineNumber:s}=e.range;if(s<1||s>i.getLineCount())return void t.dispose();const n=this.getPreviewValue(i,s,e),r=this.languageService.guessLanguageIdByFilepathOrFirstLine(i.uri);this.addDecoration(a,n?(new o.Bc).appendCodeblock(r||"",n):void 0),t.dispose()}))}}getPreviewValue(e,t,i){let n=i.range;n.endLineNumber-n.startLineNumber>=s.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t));return this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let n=t+1;n<i.endLineNumber;n++){const t=e.getLineFirstNonWhitespaceColumn(n);s=Math.min(s,t)}return e.getValueInRange(i).replace(new RegExp(`^\\s{${s-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(e,t){const i=e.getLineFirstNonWhitespaceColumn(t),n=Math.min(e.getLineCount(),t+s.MAX_SOURCE_PREVIEW_LINES);let r=t+1;for(;r<n;r++){if(i===e.getLineFirstNonWhitespaceColumn(r))break}return new h.Q(t,1,r+1,1)}addDecoration(e,t){const i={range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations.set([i])}removeLinkDecorations(){this.linkDecorations.clear()}isEnabled(e,t){return this.editor.hasModel()&&e.isLeftClick&&e.isNoneOrSingleMouseDown&&6===e.target.type&&!(e.target.detail.injectedText?.options instanceof b.Ho)&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}findDefinition(e,t){const i=this.editor.getModel();return i?(0,v.hE)(this.languageFeaturesService.definitionProvider,i,e,!1,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext((e=>{const i=!t&&this.editor.getOption(89)&&!this.isInPeekEditor(e);return new _.mR({openToSide:t,openInPeek:i,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e)}))}isInPeekEditor(e){const t=e.get(f.fN);return p.x2.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};y=s=E([S(1,u.ITextModelService),S(2,d.L),S(3,C.ILanguageFeaturesService)],y),(0,c.HW)(y.ID,y,2)},23646:(e,t,i)=>{"use strict";i.d(t,{X:()=>ce});var s,n=i(90766),r=i(64383),o=i(24939),a=i(5662),l=i(80301),c=i(83069),h=i(36677),d=i(84226),u=i(78209),g=i(50091),p=i(84001),m=i(32848),f=i(63591),_=i(59261),v=i(36584),C=i(58591),b=i(9711),E=i(79614),S=i(8597),y=i(35151),w=i(47661),L=i(41234),R=i(36456),T=i(89403),x=i(29163),k=i(87289),A=i(83941),N=i(18938),I=i(3828),O=i(37479),D=i(21852),M=i(26690),P=i(98031),F=i(67841),U=i(19070),H=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},B=function(e,t){return function(i,s){t(i,s,e)}};let W=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof E.y4||e instanceof E.$L}getChildren(e){if(e instanceof E.y4)return e.groups;if(e instanceof E.$L)return e.resolve(this._resolverService).then((e=>e.children));throw new Error("bad tree")}};W=H([B(0,N.ITextModelService)],W);class V{getHeight(){return 23}getTemplateId(e){return e instanceof E.$L?K.id:q.id}}let z=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){if(e instanceof E.yc){const t=e.parent.getPreview(e)?.preview(e.range);if(t)return t.value}return(0,T.P8)(e.uri)}};z=H([B(0,P.b)],z);class G{getId(e){return e instanceof E.yc?e.id:e.uri}}let j=class extends a.jG{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new D.s(i,{supportHighlights:!0})),this.badge=new I.x(S.BC(i,S.$(".count")),{},U.m$),e.appendChild(i)}set(e,t){const i=(0,T.pD)(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const s=e.children.length;this.badge.setCount(s),s>1?this.badge.setTitleFormat((0,u.kg)("referencesCount","{0} references",s)):this.badge.setTitleFormat((0,u.kg)("referenceCount","{0} reference",s))}};j=H([B(1,F.L)],j);let K=class{static{s=this}static{this.id="FileReferencesRenderer"}constructor(e){this._instantiationService=e,this.templateId=s.id}renderTemplate(e){return this._instantiationService.createInstance(j,e)}renderElement(e,t,i){i.set(e.element,(0,M.WJ)(e.filterData))}disposeTemplate(e){e.dispose()}};K=s=H([B(0,f._Y)],K);class Y extends a.jG{constructor(e){super(),this.label=this._register(new O._(e))}set(e,t){const i=e.parent.getPreview(e)?.preview(e.range);if(i&&i.value){const{value:e,highlight:s}=i;t&&!M.ne.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,(0,M.WJ)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[s]))}else this.label.set(`${(0,T.P8)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class q{constructor(){this.templateId=q.id}static{this.id="OneReferenceRenderer"}renderTemplate(e){return new Y(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(e){e.dispose()}}class ${getWidgetAriaLabel(){return(0,u.kg)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var Q=i(47612),X=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Z=function(e,t){return function(i,s){t(i,s,e)}};class J{static{this.DecorationOptions=k.kI.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"})}constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new a.Cm,this._callOnModelChange=new a.Cm,this._callOnDispose.add(this._editor.onDidChangeModel((()=>this._onModelChanged()))),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(const t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((()=>this._onDecorationChanged())));const t=[],i=[];for(let s=0,n=e.children.length;s<n;s++){const n=e.children[s];this._decorationIgnoreSet.has(n.id)||n.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:n.range,options:J.DecorationOptions}),i.push(s))}this._editor.changeDecorations((s=>{const n=s.deltaDecorations([],t);for(let t=0;t<n.length;t++)this._decorations.set(n[t],e.children[i[t]])}))}_onDecorationChanged(){const e=[],t=this._editor.getModel();if(t){for(const[i,s]of this._decorations){const n=t.getDecorationRange(i);if(!n)continue;let r=!1;if(!h.Q.equalsRange(n,s.range)){if(h.Q.spansMultipleLines(n))r=!0;else{s.range.endColumn-s.range.startColumn!==n.endColumn-n.startColumn&&(r=!0)}r?(this._decorationIgnoreSet.add(s.id),e.push(i)):s.range=n}}for(let t=0,i=e.length;t<i;t++)this._decorations.delete(e[t]);this._editor.removeDecorations(e)}}removeDecorations(){this._editor.removeDecorations([...this._decorations.keys()]),this._decorations.clear()}}class ee{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,i;try{const s=JSON.parse(e);t=s.ratio,i=s.heightInLines}catch{}return{ratio:t||.7,heightInLines:i||18}}}class te extends v.er{}let ie=class extends d.j6{constructor(e,t,i,s,n,r,o,l,c){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},r),this._defaultTreeKeyboardSupport=t,this.layoutData=i,this._textModelResolverService=n,this._instantiationService=r,this._peekViewService=o,this._uriLabel=l,this._keybindingService=c,this._disposeOnNewModel=new a.Cm,this._callOnDispose=new a.Cm,this._onDidSelectReference=new L.vl,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new S.fg(0,0),this._isClosing=!1,this._applyTheme(s.getColorTheme()),this._callOnDispose.add(s.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(e,this),this.create()}get isClosing(){return this._isClosing}dispose(){this._isClosing=!0,this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),(0,a.AS)(this._preview),(0,a.AS)(this._previewNotAvailableMessage),(0,a.AS)(this._tree),(0,a.AS)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(e){const t=e.getColor(d.zl)||w.Q1.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(d.z0)||w.Q1.transparent,primaryHeadingColor:e.getColor(d._X),secondaryHeadingColor:e.getColor(d.e3)})}show(e){super.show(e,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}_fillBody(e){this.setCssClass("reference-zone-widget"),this._messageContainer=S.BC(e,S.$("div.messages")),S.jD(this._messageContainer),this._splitView=new y.U(e,{orientation:1}),this._previewContainer=S.BC(e,S.$("div.preview.inline"));this._preview=this._instantiationService.createInstance(x.t,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!0},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},{},this.editor),S.jD(this._previewContainer),this._previewNotAvailableMessage=this._instantiationService.createInstance(k.Bz,u.kg("missingPreviewMessage","no preview available"),A.vH,k.Bz.DEFAULT_CREATION_OPTIONS,null),this._treeContainer=S.BC(e,S.$("div.ref-tree.inline"));const t={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new $,keyboardNavigationLabelProvider:this._instantiationService.createInstance(z),identityProvider:new G,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:d.n6}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(S.b2(this._treeContainer,"keydown",(e=>{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(te,"ReferencesWidget",this._treeContainer,new V,[this._instantiationService.createInstance(K),this._instantiationService.createInstance(q)],this._instantiationService.createInstance(W),t),this._splitView.addView({onDidChange:L.Jh.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},y.X.Distribute),this._splitView.addView({onDidChange:L.Jh.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},y.X.Distribute),this._disposables.add(this._splitView.onDidSashChange((()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)}),void 0));const i=(e,t)=>{e instanceof E.yc&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._disposables.add(this._tree.onDidOpen((e=>{e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")}))),S.jD(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new S.fg(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then((()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))}))}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=u.kg("noResults","No results"),S.WU(this._messageContainer),Promise.resolve(void 0)):(S.jD(this._messageContainer),this._decorationsManager=new J(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((e=>this._tree.rerender(e)))),this._disposeOnNewModel.add(this._preview.onMouseDown((e=>{const{event:t,target:i}=e;if(2!==t.detail)return;const s=this._getFocusedReference();s&&this._onDidSelectReference.fire({element:{uri:s.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})}))),this.container.classList.add("results-loaded"),S.WU(this._treeContainer),S.WU(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof E.yc?e:e instanceof E.$L&&e.children.length>0?e.children[0]:void 0}async revealReference(e){await this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}async _revealReference(e,t){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==R.ny.inMemory?this.setTitle((0,T.Pi)(e.uri),this._uriLabel.getUriLabel((0,T.pD)(e.uri))):this.setTitle(u.kg("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),await this._tree.expand(e.parent)),this._tree.reveal(e);const s=await i;if(!this._model)return void s.dispose();(0,a.AS)(this._previewModelReference);const n=s.object;if(n){const t=this._preview.getModel()===n.textEditorModel?0:1,i=h.Q.lift(e.range).collapseToStart();this._previewModelReference=s,this._preview.setModel(n.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),s.dispose()}};ie=X([Z(3,Q.Gy),Z(4,N.ITextModelService),Z(5,f._Y),Z(6,d.zn),Z(7,F.L),Z(8,P.b)],ie);var se,ne=i(60002),re=i(28290),oe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ae=function(e,t){return function(i,s){t(i,s,e)}};const le=new m.N1("referenceSearchVisible",!1,u.kg("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let ce=class{static{se=this}static{this.ID="editor.contrib.referencesController"}static get(e){return e.getContribution(se.ID)}constructor(e,t,i,s,n,r,o,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=s,this._notificationService=n,this._instantiationService=r,this._storageService=o,this._configurationService=l,this._disposables=new a.Cm,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=le.bindTo(i)}dispose(){this._referenceSearchVisible.reset(),this._disposables.dispose(),this._widget?.dispose(),this._model?.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let s;if(this._widget&&(s=this._widget.position),this.closeWidget(),s&&e.containsPosition(s))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>{this.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((()=>{this._ignoreModelChangeEvent||this.closeWidget()})));const n="peekViewLayout",r=ee.fromJSON(this._storageService.get(n,0,"{}"));this._widget=this._instantiationService.createInstance(ie,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(u.kg("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((()=>{t.cancel(),this._widget?(this._storageService.store(n,JSON.stringify(this._widget.layoutData),0,1),this._widget.isClosing||this.closeWidget(),this._widget=void 0):this.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((e=>{const{element:t,kind:s}=e;if(t)switch(s){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":i?this._gotoReference(t,!0):this.openReference(t,!1,!0)}})));const o=++this._requestIdPool;t.then((t=>{if(o===this._requestIdPool&&this._widget)return this._model?.dispose(),this._model=t,this._widget.setModel(this._model).then((()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(u.kg("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const t=this._editor.getModel().uri,i=new c.y(e.startLineNumber,e.startColumn),s=this._model.nearestReference(t,i);if(s)return this._widget.setSelection(s).then((()=>{this._widget&&"editor"===this._editor.getOption(87)&&this._widget.focusOnPreviewEditor()}))}}));t.dispose()}),(e=>{this._notificationService.error(e)}))}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}async goToNextOrPreviousReference(e){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const s=this._model.nextOrPreviousReference(i,e),n=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();await this._widget.setSelection(s),await this._gotoReference(s,!1),n?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()}async revealReference(e){this._editor.hasModel()&&this._model&&this._widget&&await this._widget.revealReference(e)}closeWidget(e=!0){this._widget?.dispose(),this._model?.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){this._widget?.hide(),this._ignoreModelChangeEvent=!0;const i=h.Q.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:i,selectionSource:"code.jump",pinned:t}},this._editor).then((e=>{if(this._ignoreModelChangeEvent=!1,e&&this._widget)if(this._editor===e)this._widget.show(i),this._widget.focusOnReferenceTree();else{const t=se.get(e),s=this._model.clone();this.closeWidget(),e.focus(),t?.toggleWidget(i,(0,n.SS)((e=>Promise.resolve(s))),this._peekMode??!1)}else this.closeWidget()}),(e=>{this._ignoreModelChangeEvent=!1,(0,r.dz)(e)}))}openReference(e,t,i){t||this.closeWidget();const{uri:s,range:n}=e;this._editorService.openCodeEditor({resource:s,options:{selection:n,selectionSource:"code.jump",pinned:i}},this._editor,t)}};function he(e,t){const i=(0,d.RL)(e);if(!i)return;const s=ce.get(i);s&&t(s)}ce=se=oe([ae(2,m.fN),ae(3,l.T),ae(4,C.Ot),ae(5,f._Y),ae(6,b.CS),ae(7,p.pG)],ce),_.f.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,o.m5)(2089,60),when:m.M$.or(le,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.changeFocusBetweenPreviewAndReferences()}))}}),_.f.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:m.M$.or(le,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.goToNextOrPreviousReference(!0)}))}}),_.f.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:m.M$.or(le,d.x2.inPeekEditor),handler(e){he(e,(e=>{e.goToNextOrPreviousReference(!1)}))}}),g.w.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),g.w.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),g.w.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),g.w.registerCommand("closeReferenceSearch",(e=>he(e,(e=>e.closeWidget())))),_.f.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:m.M$.and(d.x2.inPeekEditor,m.M$.not("config.editor.stablePeek"))}),_.f.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:m.M$.and(le,m.M$.not("config.editor.stablePeek"),m.M$.or(ne.R.editorTextFocus,re.J7.negate()))}),_.f.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:m.M$.and(le,v.YD,v.Nf.negate(),v.cH.negate()),handler(e){const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof E.yc&&he(e,(e=>e.revealReference(i[0])))}}),_.f.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:m.M$.and(le,v.YD,v.Nf.negate(),v.cH.negate()),handler(e){const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof E.yc&&he(e,(e=>e.openReference(i[0],!0,!0)))}}),g.w.registerCommand("openReference",(e=>{const t=e.get(v.PE),i=t.lastFocusedList?.getFocus();Array.isArray(i)&&i[0]instanceof E.yc&&he(e,(e=>e.openReference(i[0],!1,!0)))}))},79614:(e,t,i)=>{"use strict";i.d(t,{$L:()=>p,y4:()=>m,yc:()=>u});var s=i(64383),n=i(41234),r=i(96032),o=i(5662),a=i(74320),l=i(89403),c=i(91508),h=i(36677),d=i(78209);class u{constructor(e,t,i,s){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=s,this.id=r.r.nextId()}get uri(){return this.link.uri}get range(){return this._range??this.link.targetSelectionRange??this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){const e=this.parent.getPreview(this)?.preview(this.range);return e?(0,d.kg)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",e.value,(0,l.P8)(this.uri),this.range.startLineNumber,this.range.startColumn):(0,d.kg)("aria.oneReference","in {0} on line {1} at column {2}",(0,l.P8)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class g{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:s,startColumn:n,endLineNumber:r,endColumn:o}=e,a=i.getWordUntilPosition({lineNumber:s,column:n-t}),l=new h.Q(s,a.startColumn,s,n),c=new h.Q(r,o,r,1073741824),d=i.getValueInRange(l).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:d+u+i.getValueInRange(c).replace(/\s+$/,""),highlight:{start:d.length,end:d.length+u.length}}}}class p{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new a.fT}dispose(){(0,o.AS)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?(0,d.kg)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,l.P8)(this.uri),this.uri.fsPath):(0,d.kg)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,l.P8)(this.uri),this.uri.fsPath)}async resolve(e){if(0!==this._previews.size)return this;for(const i of this.children)if(!this._previews.has(i.uri))try{const t=await e.createModelReference(i.uri);this._previews.set(i.uri,new g(t))}catch(t){(0,s.dz)(t)}return this}}class m{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new n.vl,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let s;e.sort(m._compareReferences);for(const n of e)if(s&&l.er.isEqual(s.uri,n.uri,!0)||(s=new p(this,n.uri),this.groups.push(s)),0===s.children.length||0!==m._compareReferences(n,s.children[s.children.length-1])){const e=new u(i===n,s,n,(e=>this._onDidChangeReferenceRange.fire(e)));this.references.push(e),s.children.push(e)}}dispose(){(0,o.AS)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new m(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?(0,d.kg)("aria.result.0","No results found"):1===this.references.length?(0,d.kg)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?(0,d.kg)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,d.kg)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let s=i.children.indexOf(e);const n=i.children.length,r=i.parent.groups.length;return 1===r||t&&s+1<n||!t&&s>0?(s=t?(s+1)%n:(s+n-1)%n,i.children[s]):(s=i.parent.groups.indexOf(i),t?(s=(s+1)%r,i.parent.groups[s].children[0]):(s=(s+r-1)%r,i.parent.groups[s].children[i.parent.groups[s].children.length-1]))}nearestReference(e,t){const i=this.references.map(((i,s)=>({idx:s,prefixLen:c.Qp(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)}))).sort(((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0))[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&h.Q.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return l.er.compare(e.uri,t.uri)||h.Q.compareRangesUsingStarts(e.range,t.range)}}},77011:(e,t,i)=>{"use strict";i.d(t,{A:()=>q});var s=i(87758),n=i(5662),r=i(63591),o=i(64317),a=i(98031),l=i(90766),c=i(51219),h=i(8597),d=i(62083),u=i(12143),g=i(57039),p=i(88807),m=i(83069);class f extends n.jG{constructor(e,t=new h.fg(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new p.v),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=h.fg.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize((e=>{this._resize(new h.fg(e.dimension.width,e.dimension.height)),e.done&&(this._isResizing=!1)}))),this._register(this._resizableNode.onDidWillResize((()=>{this._isResizing=!0})))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){return this._contentPosition?.position?m.y.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;return h.BK(t).top+i.top-30}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;const s=h.BK(t),n=h.tG(t.ownerDocument.body),r=s.top+i.top+i.height;return n.height-r-24}_findPositionPreference(e,t){const i=Math.min(this._availableVerticalSpaceBelow(t)??1/0,e),s=Math.min(this._availableVerticalSpaceAbove(t)??1/0,e),n=Math.min(Math.max(s,i),e),r=Math.min(e,n);let o;return o=this._editor.getOption(60).above?r<=s?1:2:r<=i?2:1,1===o?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),o}_resize(e){this._resizableNode.layout(e.height,e.width)}}var _,v=i(32848),C=i(84001),b=i(253),E=i(60002),S=i(52776),y=i(41234),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},L=function(e,t){return function(i,s){t(i,s,e)}};let R=class extends f{static{_=this}static{this.ID="editor.contrib.resizableContentHoverWidget"}static{this._lastDimensions=new h.fg(0,0)}get isVisibleFromKeyboard(){return 1===this._renderedHover?.source}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(e,t,i,s,n){const r=e.getOption(67)+8,o=new h.fg(150,r);super(e,o),this._configurationService=i,this._accessibilityService=s,this._keybindingService=n,this._hover=this._register(new S.N4),this._onDidResize=this._register(new y.vl),this.onDidResize=this._onDidResize.event,this._minimumSize=o,this._hoverVisibleKey=E.R.hoverVisible.bindTo(t),this._hoverFocusedKey=E.R.hoverFocused.bindTo(t),h.BC(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange((()=>{this.isVisible&&this._updateMaxDimensions()}))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()})));const a=this._register(h.w5(this._resizableNode.domNode));this._register(a.onDidFocus((()=>{this._hoverFocusedKey.set(!0)}))),this._register(a.onDidBlur((()=>{this._hoverFocusedKey.set(!1)}))),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return _.ID}static _applyDimensions(e,t,i){const s="number"===typeof t?`${t}px`:t,n="number"===typeof i?`${i}px`:i;e.style.width=s,e.style.height=n}_setContentsDomNodeDimensions(e,t){const i=this._hover.contentsDomNode;return _._applyDimensions(i,e,t)}_setContainerDomNodeDimensions(e,t){const i=this._hover.containerDomNode;return _._applyDimensions(i,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,i){const s="number"===typeof t?`${t}px`:t,n="number"===typeof i?`${i}px`:i;e.style.maxWidth=s,e.style.maxHeight=n}_setHoverWidgetMaxDimensions(e,t){_._applyMaxDimensions(this._hover.contentsDomNode,e,t),_._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth","number"===typeof e?`${e}px`:e),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,i=e.height;this._setHoverWidgetDimensions(t,i)}_updateResizableNodeMaxDimensions(){const e=this._findMaximumRenderingWidth()??1/0,t=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new h.fg(e,t),this._setHoverWidgetMaxDimensions(e,t)}_resize(e){_._lastDimensions=new h.fg(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){const e=this._renderedHover?.showAtPosition;if(e)return 1===this._positionPreference?this._availableVerticalSpaceAbove(e):this._availableVerticalSpaceBelow(e)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=6;return Array.from(this._hover.contentsDomNode.children).forEach((e=>{t+=e.clientHeight})),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const e=Array.from(this._hover.contentsDomNode.children).some((e=>e.scrollWidth>e.clientWidth));return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const e=this._isHoverTextOverflowing(),t="undefined"===typeof this._contentWidth?0:this._contentWidth-2;if(e||this._hover.containerDomNode.clientWidth<t){return h.tG(this._hover.containerDomNode.ownerDocument.body).width-14}return this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(e,t){if(!this._renderedHover)return!1;if(void 0===this._renderedHover.initialMousePosX||void 0===this._renderedHover.initialMousePosY)return this._renderedHover.initialMousePosX=e,this._renderedHover.initialMousePosY=t,!1;const i=h.BK(this.getDomNode());void 0===this._renderedHover.closestMouseDistance&&(this._renderedHover.closestMouseDistance=T(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,i.left,i.top,i.width,i.height));const s=T(e,t,i.left,i.top,i.width,i.height);return!(s>this._renderedHover.closestMouseDistance+4)&&(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,s),!0)}_setRenderedHover(e){this._renderedHover?.dispose(),this._renderedHover=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_updateFont(){const{fontSize:e,lineHeight:t}=this._editor.getOption(50),i=this._hover.contentsDomNode;i.style.fontSize=`${e}px`,i.style.lineHeight=""+t/e;Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,_._lastDimensions.height),t=Math.max(.66*this._editor.getLayoutInfo().width,500,_._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e){this._setRenderedHover(e),this._updateFont(),this._updateContent(e.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(e){if(!this._editor||!this._editor.hasModel())return;this._render(e);const t=h.OK(this._hover.containerDomNode),i=e.showAtPosition;this._positionPreference=this._findPositionPreference(t,i)??1,this.onContentsChanged(),e.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const s=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,S.vr)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding("editor.action.accessibleView")?.getAriaLabel()??"");s&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+s)}hide(){if(!this._renderedHover)return;const e=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new h.fg(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}setMinimumDimensions(e){this._minimumSize=new h.fg(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const e="undefined"===typeof this._contentWidth?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new h.fg(e,this._minimumSize.height)}onContentsChanged(){this._removeConstraintsRenderNormally();const e=this._hover.containerDomNode;let t=h.OK(e),i=h.Tr(e);if(this._resizableNode.layout(t,i),this._setHoverWidgetDimensions(i,t),t=h.OK(e),i=h.Tr(e),this._contentWidth=i,this._updateMinimumWidth(),this._resizableNode.layout(t,i),this._renderedHover?.showAtPosition){const e=h.OK(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(e,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-30})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+30})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};function T(e,t,i,s,n,r){const o=i+n/2,a=s+r/2,l=Math.max(Math.abs(e-o)-n/2,0),c=Math.max(Math.abs(t-a)-r/2,0);return Math.sqrt(l*l+c*c)}R=_=w([L(1,v.fN),L(2,C.pG),L(3,b.j),L(4,a.b)],R);var x=i(25890);class k{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(1!==t.type&&!t.supportsMarkerHover)return[];const i=e.getModel(),s=t.range.startLineNumber;if(s>i.getLineCount())return[];const n=i.getLineMaxColumn(s);return e.getLineDecorations(s).filter((e=>{if(e.options.isWholeLine)return!0;const i=e.range.startLineNumber===s?e.range.startColumn:1,r=e.range.endLineNumber===s?e.range.endColumn:n;if(e.options.showIfCollapsed){if(i>t.range.startColumn+1||t.range.endColumn-1>r)return!1}else if(i>t.range.startColumn||t.range.endColumn>r)return!1;return!0}))}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return l.AE.EMPTY;const i=k._getLineDecorations(this._editor,t);return l.AE.merge(this._participants.map((s=>s.computeAsync?s.computeAsync(t,i,e):l.AE.EMPTY)))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=k._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return(0,x.Yc)(t)}}class A{constructor(e,t,i){this.anchor=e,this.hoverParts=t,this.isComplete=i}filter(e){const t=this.hoverParts.filter((t=>t.isValidForHoverAnchor(e)));return t.length===this.hoverParts.length?this:new N(this,this.anchor,t,this.isComplete)}}class N extends A{constructor(e,t,i,s){super(t,i,s),this.original=e}filter(e){return this.original.filter(e)}}var I=i(9270),O=i(87289),D=i(36677),M=i(57286),P=i(28712),F=i(68250),U=i(64383);class H extends n.jG{constructor(e,t,i,s,n,r){super();const o=t.anchor,a=t.hoverParts;this._renderedHoverParts=this._register(new W(e,i,a,r,n));const{showAtPosition:l,showAtSecondaryPosition:c}=H.computeHoverPositions(e,o.range,a);this.shouldAppearBeforeContent=a.some((e=>e.isBeforeContent)),this.showAtPosition=l,this.showAtSecondaryPosition=c,this.initialMousePosX=o.initialMousePosX,this.initialMousePosY=o.initialMousePosY,this.shouldFocus=s.shouldFocus,this.source=s.source}get domNode(){return this._renderedHoverParts.domNode}get domNodeHasChildren(){return this._renderedHoverParts.domNodeHasChildren}get focusedHoverPartIndex(){return this._renderedHoverParts.focusedHoverPartIndex}async updateHoverVerbosityLevel(e,t,i){this._renderedHoverParts.updateHoverVerbosityLevel(e,t,i)}isColorPickerVisible(){return this._renderedHoverParts.isColorPickerVisible()}static computeHoverPositions(e,t,i){let s=1;if(e.hasModel()){const i=e._getViewModel(),n=i.coordinatesConverter,r=n.convertModelRangeToViewRange(t),o=i.getLineMinColumn(r.startLineNumber),a=new m.y(r.startLineNumber,o);s=n.convertViewPositionToModelPosition(a).column}const n=t.startLineNumber;let r,o,a,l=t.startColumn;for(const c of i){const e=c.range,t=e.startLineNumber===n,i=e.endLineNumber===n;if(t&&i){const t=e.startColumn,i=Math.min(l,t);l=Math.max(i,s)}c.forceShowAtRange&&(r=e)}if(r){const e=r.getStartPosition();o=e,a=e}else o=t.getStartPosition(),a=new m.y(n,l);return{showAtPosition:o,showAtSecondaryPosition:a}}}class B{constructor(e,t){this._statusBar=t,e.appendChild(this._statusBar.hoverElement)}get hoverElement(){return this._statusBar.hoverElement}get actions(){return this._statusBar.actions}dispose(){this._statusBar.dispose()}}class W extends n.jG{static{this._DECORATION_OPTIONS=O.kI.register({description:"content-hover-highlight",className:"hoverHighlight"})}constructor(e,t,i,s,n){super(),this._renderedParts=[],this._focusedHoverPartIndex=-1,this._context=n,this._fragment=document.createDocumentFragment(),this._register(this._renderParts(t,i,n,s)),this._register(this._registerListenersOnRenderedParts()),this._register(this._createEditorDecorations(e,i)),this._updateMarkdownAndColorParticipantInfo(t)}_createEditorDecorations(e,t){if(0===t.length)return n.jG.None;let i=t[0].range;for(const n of t){const e=n.range;i=D.Q.plusRange(i,e)}const s=e.createDecorationsCollection();return s.set([{range:i,options:W._DECORATION_OPTIONS}]),(0,n.s)((()=>{s.clear()}))}_renderParts(e,t,i,s){const r=new I.L(s),o={fragment:this._fragment,statusBar:r,...i},a=new n.Cm;for(const n of e){const e=this._renderHoverPartsForParticipant(t,n,o);a.add(e);for(const t of e.renderedHoverParts)this._renderedParts.push({type:"hoverPart",participant:n,hoverPart:t.hoverPart,hoverElement:t.hoverElement})}const l=this._renderStatusBar(this._fragment,r);return l&&(a.add(l),this._renderedParts.push({type:"statusBar",hoverElement:l.hoverElement,actions:l.actions})),(0,n.s)((()=>{a.dispose()}))}_renderHoverPartsForParticipant(e,t,i){const s=e.filter((e=>e.owner===t));return s.length>0?t.renderHoverParts(i,s):new g.Ke([])}_renderStatusBar(e,t){if(t.hasContent)return new B(e,t)}_registerListenersOnRenderedParts(){const e=new n.Cm;return this._renderedParts.forEach(((t,i)=>{const s=t.hoverElement;s.tabIndex=0,e.add(h.ko(s,h.Bx.FOCUS_IN,(e=>{e.stopPropagation(),this._focusedHoverPartIndex=i}))),e.add(h.ko(s,h.Bx.FOCUS_OUT,(e=>{e.stopPropagation(),this._focusedHoverPartIndex=-1})))})),e}_updateMarkdownAndColorParticipantInfo(e){const t=e.find((e=>e instanceof M.xJ&&!(e instanceof F.u)));t&&(this._markdownHoverParticipant=t),this._colorHoverParticipant=e.find((e=>e instanceof P.BJ))}async updateHoverVerbosityLevel(e,t,i){if(!this._markdownHoverParticipant)return;const s=this._normalizedIndexToMarkdownHoverIndexRange(this._markdownHoverParticipant,t);if(void 0===s)return;const n=await this._markdownHoverParticipant.updateMarkdownHoverVerbosityLevel(e,s,i);n&&(this._renderedParts[t]={type:"hoverPart",participant:this._markdownHoverParticipant,hoverPart:n.hoverPart,hoverElement:n.hoverElement},this._context.onContentsChanged())}isColorPickerVisible(){return this._colorHoverParticipant?.isColorPickerVisible()??!1}_normalizedIndexToMarkdownHoverIndexRange(e,t){const i=this._renderedParts[t];if(!i||"hoverPart"!==i.type)return;if(!(i.participant===e))return;const s=this._renderedParts.findIndex((t=>"hoverPart"===t.type&&t.participant===e));if(-1===s)throw new U.D7;return t-s}get domNode(){return this._fragment}get domNodeHasChildren(){return this._fragment.hasChildNodes()}get focusedHoverPartIndex(){return this._focusedHoverPartIndex}}var V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends n.jG{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._onContentsChanged=this._register(new y.vl),this.onContentsChanged=this._onContentsChanged.event,this._contentHoverWidget=this._register(this._instantiationService.createInstance(R,this._editor)),this._participants=this._initializeHoverParticipants(),this._computer=new k(this._editor,this._participants),this._hoverOperation=this._register(new u.w(this._editor,this._computer)),this._registerListeners()}_initializeHoverParticipants(){const e=[];for(const t of g.B2.getAll()){const i=this._instantiationService.createInstance(t,this._editor);e.push(i)}return e.sort(((e,t)=>e.hoverOrdinal-t.hoverOrdinal)),this._register(this._contentHoverWidget.onDidResize((()=>{this._participants.forEach((e=>e.handleResize?.()))}))),e}_registerListeners(){this._register(this._hoverOperation.onResult((e=>{if(!this._computer.anchor)return;const t=e.hasLoadingMessage?this._addLoadingMessage(e.value):e.value;this._withResult(new A(this._computer.anchor,t,e.isComplete))})));const e=this._contentHoverWidget.getDomNode();this._register(h.b2(e,"keydown",(e=>{e.equals(9)&&this.hide()}))),this._register(h.b2(e,"mouseleave",(e=>{this._onMouseLeave(e)}))),this._register(d.dG.onDidChange((()=>{this._contentHoverWidget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)})))}_startShowingOrUpdateHover(e,t,i,s,n){if(!(this._contentHoverWidget.position&&this._currentResult))return!!e&&(this._startHoverOperationIfNecessary(e,t,i,s,!1),!0);const r=this._editor.getOption(60).sticky,o=n&&this._contentHoverWidget.isMouseGettingCloser(n.event.posx,n.event.posy);if(r&&o)return e&&this._startHoverOperationIfNecessary(e,t,i,s,!0),!0;if(!e)return this._setCurrentResult(null),!1;if(this._currentResult.anchor.equals(e))return!0;return e.canAdoptVisibleHover(this._currentResult.anchor,this._contentHoverWidget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,s,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,s,!1),!0)}_startHoverOperationIfNecessary(e,t,i,s,n){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=s,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=n,this._hoverOperation.start(t))}_setCurrentResult(e){let t=e;if(this._currentResult===t)return;t&&0===t.hoverParts.length&&(t=null),this._currentResult=t,this._currentResult?this._showHover(this._currentResult):this._hideHover()}_addLoadingMessage(e){if(!this._computer.anchor)return e;for(const t of this._participants){if(!t.createLoadingMessage)continue;const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}return e}_withResult(e){this._contentHoverWidget.position&&this._currentResult&&this._currentResult.isComplete||this._setCurrentResult(e);if(!e.isComplete)return;const t=0===e.hoverParts.length,i=this._computer.insistOnKeepingHoverVisible;t&&i||this._setCurrentResult(e)}_showHover(e){const t=this._getHoverContext();this._renderedContentHover=new H(this._editor,e,this._participants,this._computer,t,this._keybindingService),this._renderedContentHover.domNodeHasChildren?this._contentHoverWidget.show(this._renderedContentHover):this._renderedContentHover.dispose()}_hideHover(){this._contentHoverWidget.hide()}_getHoverContext(){return{hide:()=>{this.hide()},onContentsChanged:()=>{this._onContentsChanged.fire(),this._contentHoverWidget.onContentsChanged()},setMinimumDimensions:e=>{this._contentHoverWidget.setMinimumDimensions(e)}}}showsOrWillShow(e){if(this._contentHoverWidget.isResizing)return!0;const t=this._findHoverAnchorCandidates(e);if(!(t.length>0))return this._startShowingOrUpdateHover(null,0,0,!1,e);const i=t[0];return this._startShowingOrUpdateHover(i,0,0,!1,e)}_findHoverAnchorCandidates(e){const t=[];for(const s of this._participants){if(!s.suggestHoverAnchor)continue;const i=s.suggestHoverAnchor(e);i&&t.push(i)}const i=e.target;switch(i.type){case 6:t.push(new g.hx(0,i.range,e.event.posx,e.event.posy));break;case 7:{const s=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;if(!(!i.detail.isAfterLines&&"number"===typeof i.detail.horizontalDistanceToText&&i.detail.horizontalDistanceToText<s))break;t.push(new g.hx(0,i.range,e.event.posx,e.event.posy));break}}return t.sort(((e,t)=>t.priority-e.priority)),t}_onMouseLeave(e){const t=this._editor.getDomNode();(!t||!(0,c.U)(t,e.x,e.y))&&this.hide()}startShowingAtRange(e,t,i,s){this._startShowingOrUpdateHover(new g.hx(0,e,void 0,void 0),t,i,s,null)}async updateHoverVerbosityLevel(e,t,i){this._renderedContentHover?.updateHoverVerbosityLevel(e,t,i)}focusedHoverPartIndex(){return this._renderedContentHover?.focusedHoverPartIndex??-1}containsNode(e){return!!e&&this._contentHoverWidget.getDomNode().contains(e)}focus(){this._contentHoverWidget.focus()}scrollUp(){this._contentHoverWidget.scrollUp()}scrollDown(){this._contentHoverWidget.scrollDown()}scrollLeft(){this._contentHoverWidget.scrollLeft()}scrollRight(){this._contentHoverWidget.scrollRight()}pageUp(){this._contentHoverWidget.pageUp()}pageDown(){this._contentHoverWidget.pageDown()}goToTop(){this._contentHoverWidget.goToTop()}goToBottom(){this._contentHoverWidget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}getDomNode(){return this._contentHoverWidget.getDomNode()}get isColorPickerVisible(){return this._renderedContentHover?.isColorPickerVisible()??!1}get isVisibleFromKeyboard(){return this._contentHoverWidget.isVisibleFromKeyboard}get isVisible(){return this._contentHoverWidget.isVisible}get isFocused(){return this._contentHoverWidget.isFocused}get isResizing(){return this._contentHoverWidget.isResizing}get widget(){return this._contentHoverWidget}};G=V([z(1,r._Y),z(2,a.b)],G);i(82320);var j,K=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Y=function(e,t){return function(i,s){t(i,s,e)}};let q=class extends n.jG{static{j=this}static{this.ID="editor.contrib.contentHover"}constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._onHoverContentsChanged=this._register(new y.vl),this.shouldKeepOpenOnEditorMouseMoveOrLeave=!1,this._listenersStore=new n.Cm,this._hoverState={mouseDown:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new l.uC((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}static get(e){return e.getContribution(j.ID)}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.hidingDelay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._hoverState.mouseDown=!0;this._shouldNotHideCurrentHoverWidget(e)||this._hideWidgets()}_shouldNotHideCurrentHoverWidget(e){return this._isMouseOnContentHoverWidget(e)||this._isContentWidgetResizing()}_isMouseOnContentHoverWidget(e){const t=this._contentWidget?.getDomNode();return!!t&&(0,c.U)(t,e.event.posx,e.event.posy)}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._cancelScheduler();this._shouldNotHideCurrentHoverWidget(e)||this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(e){const t=this._hoverSettings.sticky;return((e,t)=>{const i=this._isMouseOnContentHoverWidget(e);return t&&i})(e,t)||(e=>{const t=this._isMouseOnContentHoverWidget(e),i=this._contentWidget?.isColorPickerVisible??!1;return t&&i})(e)||((e,t)=>(t&&this._contentWidget?.containsNode(e.event.browserEvent.view?.document.activeElement)&&!e.event.browserEvent.view?.getSelection()?.isCollapsed)??!1)(e,t)}_onEditorMouseMove(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;if(this._mouseMoveEvent=e,this._contentWidget?.isFocused||this._contentWidget?.isResizing)return;const t=this._hoverSettings.sticky;if(t&&this._contentWidget?.isVisibleFromKeyboard)return;if(this._shouldNotRecomputeCurrentHoverWidget(e))return void this._reactToEditorMouseMoveRunner.cancel();const i=this._hoverSettings.hidingDelay,s=this._contentWidget?.isVisible;s&&t&&i>0?this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(i):this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){if(!e)return;const t=e.target,i=t.element?.classList.contains("colorpicker-color-decoration"),s=this._editor.getOption(149),n=this._hoverSettings.enabled,r=this._hoverState.activatedByDecoratorClick;if(i&&("click"===s&&!r||"hover"===s&&!n||"clickAndHover"===s&&!n&&!r)||!i&&!n&&!r)return void this._hideWidgets();this._tryShowHoverWidget(e)||this._hideWidgets()}_tryShowHoverWidget(e){return this._getOrCreateContentWidget().showsOrWillShow(e)}_onKeyDown(e){if(!this._editor.hasModel())return;const t=this._keybindingService.softDispatch(e,this._editor.getDomNode()),i=1===t.kind||2===t.kind&&(t.commandId===s.jA||t.commandId===s.jq||t.commandId===s.Zp)&&this._contentWidget?.isVisible;5===e.keyCode||6===e.keyCode||57===e.keyCode||4===e.keyCode||i||this._hideWidgets()}_hideWidgets(){this._hoverState.mouseDown&&this._contentWidget?.isColorPickerVisible||o.bo.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,this._contentWidget?.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(G,this._editor),this._listenersStore.add(this._contentWidget.onContentsChanged((()=>this._onHoverContentsChanged.fire())))),this._contentWidget}showContentHover(e,t,i,s,n=!1){this._hoverState.activatedByDecoratorClick=n,this._getOrCreateContentWidget().startShowingAtRange(e,t,i,s)}_isContentWidgetResizing(){return this._contentWidget?.widget.isResizing||!1}focusedHoverPartIndex(){return this._getOrCreateContentWidget().focusedHoverPartIndex()}updateHoverVerbosityLevel(e,t,i){this._getOrCreateContentWidget().updateHoverVerbosityLevel(e,t,i)}focus(){this._contentWidget?.focus()}scrollUp(){this._contentWidget?.scrollUp()}scrollDown(){this._contentWidget?.scrollDown()}scrollLeft(){this._contentWidget?.scrollLeft()}scrollRight(){this._contentWidget?.scrollRight()}pageUp(){this._contentWidget?.pageUp()}pageDown(){this._contentWidget?.pageDown()}goToTop(){this._contentWidget?.goToTop()}goToBottom(){this._contentWidget?.goToBottom()}get isColorPickerVisible(){return this._contentWidget?.isColorPickerVisible}get isHoverVisible(){return this._contentWidget?.isVisible}dispose(){super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),this._contentWidget?.dispose()}};q=j=K([Y(1,r._Y),Y(2,a.b)],q)},9270:(e,t,i)=>{"use strict";i.d(t,{L:()=>h});var s=i(8597),n=i(52776),r=i(5662),o=i(98031),a=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},l=function(e,t){return function(i,s){t(i,s,e)}};const c=s.$;let h=class extends r.jG{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this.actions=[],this._hasContent=!1,this.hoverElement=c("div.hover-row.status-bar"),this.hoverElement.tabIndex=0,this.actionsElement=s.BC(this.hoverElement,c("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;this._hasContent=!0;const s=this._register(n.jQ.render(this.actionsElement,e,i));return this.actions.push(s),s}append(e){const t=s.BC(this.actionsElement,e);return this._hasContent=!0,t}};h=a([l(0,o.b)],h)},7142:(e,t,i)=>{"use strict";i.d(t,{U:()=>c});var s=i(90766),n=i(18447),r=i(64383),o=i(31450),a=i(56942);class l{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function c(e,t,i,n,o=!1){const a=e.ordered(t,o).map(((e,s)=>async function(e,t,i,s,n){const o=await Promise.resolve(e.provideHover(i,s,n)).catch(r.M_);if(o&&function(e){const t="undefined"!==typeof e.range,i="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&i}(o))return new l(e,o,t)}(e,s,t,i,n)));return s.AE.fromPromises(a).coalesce()}function h(e,t,i,s,n=!1){return c(e,t,i,s,n).map((e=>e.hover)).toPromise()}(0,o.ke)("_executeHoverProvider",((e,t,i)=>h(e.get(a.ILanguageFeaturesService).hoverProvider,t,i,n.XO.None))),(0,o.ke)("_executeHoverProvider_recursive",((e,t,i)=>h(e.get(a.ILanguageFeaturesService).hoverProvider,t,i,n.XO.None,!0)))},87758:(e,t,i)=>{"use strict";i.d(t,{G8:()=>_,Hm:()=>d,Hp:()=>a,K6:()=>o,MB:()=>l,Xp:()=>u,Zp:()=>f,dV:()=>r,iM:()=>m,ih:()=>h,jA:()=>n,jq:()=>p,vf:()=>c,vx:()=>g});var s=i(78209);const n="editor.action.showHover",r="editor.action.showDefinitionPreviewHover",o="editor.action.scrollUpHover",a="editor.action.scrollDownHover",l="editor.action.scrollLeftHover",c="editor.action.scrollRightHover",h="editor.action.pageUpHover",d="editor.action.pageDownHover",u="editor.action.goToTopHover",g="editor.action.goToBottomHover",p="editor.action.increaseHoverVerbosityLevel",m=s.kg({key:"increaseHoverVerbosityLevel",comment:["Label for action that will increase the hover verbosity level."]},"Increase Hover Verbosity Level"),f="editor.action.decreaseHoverVerbosityLevel",_=s.kg({key:"decreaseHoverVerbosityLevel",comment:["Label for action that will decrease the hover verbosity level."]},"Decrease Hover Verbosity Level")},58466:(e,t,i)=>{"use strict";var s,n=i(87758),r=i(24939),o=i(31450),a=i(36677),l=i(60002),c=i(62427),h=i(77011),d=i(62083),u=i(78209);i(82320);!function(e){e.NoAutoFocus="noAutoFocus",e.FocusIfVisible="focusIfVisible",e.AutoFocusImmediately="autoFocusImmediately"}(s||(s={}));class g extends o.ks{constructor(){super({id:n.jA,label:u.kg({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse."]},"Show or Focus Hover"),metadata:{description:u.aS("showOrFocusHoverDescription","Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position."),args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[s.NoAutoFocus,s.FocusIfVisible,s.AutoFocusImmediately],enumDescriptions:[u.kg("showOrFocusHover.focus.noAutoFocus","The hover will not automatically take focus."),u.kg("showOrFocusHover.focus.focusIfVisible","The hover will take focus only if it is already visible."),u.kg("showOrFocusHover.focus.autoFocusImmediately","The hover will automatically take focus when it appears.")],default:s.FocusIfVisible}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:l.R.editorTextFocus,primary:(0,r.m5)(2089,2087),weight:100}})}run(e,t,i){if(!t.hasModel())return;const n=h.A.get(t);if(!n)return;const r=i?.focus;let o=s.FocusIfVisible;Object.values(s).includes(r)?o=r:"boolean"===typeof r&&r&&(o=s.AutoFocusImmediately);const l=e=>{const i=t.getPosition(),s=new a.Q(i.lineNumber,i.column,i.lineNumber,i.column);n.showContentHover(s,1,1,e)},c=2===t.getOption(2);n.isHoverVisible?o!==s.NoAutoFocus?n.focus():l(c):l(c||o===s.AutoFocusImmediately)}}class p extends o.ks{constructor(){super({id:n.dV,label:u.kg({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0,metadata:{description:u.aS("showDefinitionPreviewHoverDescription","Show the definition preview hover in the editor.")}})}run(e,t){const i=h.A.get(t);if(!i)return;const s=t.getPosition();if(!s)return;const n=new a.Q(s.lineNumber,s.column,s.lineNumber,s.column),r=c.k.get(t);if(!r)return;r.startFindDefinitionFromCursor(s).then((()=>{i.showContentHover(n,1,1,!0)}))}}class m extends o.ks{constructor(){super({id:n.K6,label:u.kg({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:16,weight:100},metadata:{description:u.aS("scrollUpHoverDescription","Scroll up the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollUp()}}class f extends o.ks{constructor(){super({id:n.Hp,label:u.kg({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:18,weight:100},metadata:{description:u.aS("scrollDownHoverDescription","Scroll down the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollDown()}}class _ extends o.ks{constructor(){super({id:n.MB,label:u.kg({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:15,weight:100},metadata:{description:u.aS("scrollLeftHoverDescription","Scroll left the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollLeft()}}class v extends o.ks{constructor(){super({id:n.vf,label:u.kg({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:17,weight:100},metadata:{description:u.aS("scrollRightHoverDescription","Scroll right the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.scrollRight()}}class C extends o.ks{constructor(){super({id:n.ih,label:u.kg({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:11,secondary:[528],weight:100},metadata:{description:u.aS("pageUpHoverDescription","Page up the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.pageUp()}}class b extends o.ks{constructor(){super({id:n.Hm,label:u.kg({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:12,secondary:[530],weight:100},metadata:{description:u.aS("pageDownHoverDescription","Page down the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.pageDown()}}class E extends o.ks{constructor(){super({id:n.Xp,label:u.kg({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:14,secondary:[2064],weight:100},metadata:{description:u.aS("goToTopHoverDescription","Go to the top of the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.goToTop()}}class S extends o.ks{constructor(){super({id:n.vx,label:u.kg({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:13,secondary:[2066],weight:100},metadata:{description:u.aS("goToBottomHoverDescription","Go to the bottom of the editor hover.")}})}run(e,t){const i=h.A.get(t);i&&i.goToBottom()}}class y extends o.ks{constructor(){super({id:n.jq,label:n.iM,alias:"Increase Hover Verbosity Level",precondition:l.R.hoverVisible})}run(e,t,i){const s=h.A.get(t);if(!s)return;const n=void 0!==i?.index?i.index:s.focusedHoverPartIndex();s.updateHoverVerbosityLevel(d.M$.Increase,n,i?.focus)}}class w extends o.ks{constructor(){super({id:n.Zp,label:n.G8,alias:"Decrease Hover Verbosity Level",precondition:l.R.hoverVisible})}run(e,t,i){const s=h.A.get(t);if(!s)return;const n=void 0!==i?.index?i.index:s.focusedHoverPartIndex();h.A.get(t)?.updateHoverVerbosityLevel(d.M$.Decrease,n,i?.focus)}}var L=i(66261),R=i(47612),T=i(57039),x=i(57286),k=i(8597),A=i(25890),N=i(90766),I=i(64383),O=i(5662),D=i(89403),M=i(56942),P=i(37550),F=i(55130),U=i(71933),H=i(61407),B=i(65877),W=i(75147),V=i(49099),z=i(73823),G=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},j=function(e,t){return function(i,s){t(i,s,e)}};const K=k.$;class Y{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const q={type:1,filter:{include:H.gB.QuickFix},triggerAction:H.fo.QuickFixHover};let $=class{constructor(e,t,i,s){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=s,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),s=e.range.startLineNumber,n=i.getLineMaxColumn(s),r=[];for(const o of t){const t=o.range.startLineNumber===s?o.range.startColumn:1,l=o.range.endLineNumber===s?o.range.endColumn:n,c=this._markerDecorationsService.getMarker(i.uri,o);if(!c)continue;const h=new a.Q(e.range.startLineNumber,t,e.range.startLineNumber,l);r.push(new Y(this,h,c))}return r}renderHoverParts(e,t){if(!t.length)return new T.Ke([]);const i=new O.Cm,s=[];t.forEach((t=>{const i=this._renderMarkerHover(t);e.fragment.appendChild(i.hoverElement),s.push(i)}));const n=1===t.length?t[0]:t.sort(((e,t)=>W.cj.compare(e.marker.severity,t.marker.severity)))[0];return this.renderMarkerStatusbar(e,n,i),new T.Ke(s)}_renderMarkerHover(e){const t=new O.Cm,i=K("div.hover-row"),s=k.BC(i,K("div.marker.hover-contents")),{source:n,message:r,code:o,relatedInformation:a}=e.marker;this._editor.applyFontInfo(s);const l=k.BC(s,K("span"));if(l.style.whiteSpace="pre-wrap",l.innerText=r,n||o)if(o&&"string"!==typeof o){const e=K("span");if(n){k.BC(e,K("span")).innerText=n}const i=k.BC(e,K("a.code-link"));i.setAttribute("href",o.target.toString()),t.add(k.ko(i,"click",(e=>{this._openerService.open(o.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()})));k.BC(i,K("span")).innerText=o.value;const r=k.BC(s,e);r.style.opacity="0.6",r.style.paddingLeft="6px"}else{const e=k.BC(s,K("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=n&&o?`${n}(${o})`:n||`(${o})`}if((0,A.EI)(a))for(const{message:c,resource:h,startLineNumber:d,startColumn:u}of a){const e=k.BC(s,K("div"));e.style.marginTop="8px";const i=k.BC(e,K("a"));i.innerText=`${(0,D.P8)(h)}(${d}, ${u}): `,i.style.cursor="pointer",t.add(k.ko(i,"click",(e=>{if(e.stopPropagation(),e.preventDefault(),this._openerService){const e={selection:{startLineNumber:d,startColumn:u}};this._openerService.open(h,{fromUserGesture:!0,editorOptions:e}).catch(I.dz)}})));const n=k.BC(e,K("span"));n.innerText=c,this._editor.applyFontInfo(n)}return{hoverPart:e,hoverElement:i,dispose:()=>t.dispose()}}renderMarkerStatusbar(e,t,i){if(t.marker.severity===W.cj.Error||t.marker.severity===W.cj.Warning||t.marker.severity===W.cj.Info){const i=B.j.get(this._editor);i&&e.statusBar.addAction({label:u.kg("view problem","View Problem"),commandId:B.i.ID,run:()=>{e.hide(),i.showAtMarker(t.marker),this._editor.focus()}})}if(!this._editor.getOption(92)){const s=e.statusBar.append(K("div"));this.recentMarkerCodeActionsInfo&&(W.oc.makeKey(this.recentMarkerCodeActionsInfo.marker)===W.oc.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(s.textContent=u.kg("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const n=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?O.jG.None:(0,N.EQ)((()=>s.textContent=u.kg("checkingForQuickFixes","Checking for quick fixes...")),200,i);s.textContent||(s.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add((0,O.s)((()=>r.cancel()))),r.then((r=>{if(n.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:r.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return r.dispose(),void(s.textContent=u.kg("noQuickFixes","No quick fixes available"));s.style.display="none";let o=!1;i.add((0,O.s)((()=>{o||r.dispose()}))),e.statusBar.addAction({label:u.kg("quick fixes","Quick Fix..."),commandId:F.pQ,run:t=>{o=!0;const i=U.C.get(this._editor),s=k.BK(t);e.hide(),i?.showCodeActions(q,r,{x:s.left,y:s.top,width:s.width,height:s.height})}})}),I.dz)}}getCodeActions(e){return(0,N.SS)((t=>(0,F.dU)(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new a.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),q,z.ke.None,t)))}};$=G([j(1,P.IMarkerDecorationsService),j(2,V.C),j(3,M.ILanguageFeaturesService)],$);var Q=i(63591),X=i(51219),Z=i(20492),J=i(10154),ee=i(12143),te=i(52776),ie=i(16980),se=i(16223);class ne{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}get lane(){return this._laneOrLine}set lane(e){this._laneOrLine=e}constructor(e){this._editor=e,this._lineNumber=-1,this._laneOrLine=se.ZS.Center}computeSync(){const e=e=>({value:e}),t=this._editor.getLineDecorations(this._lineNumber),i=[],s="lineNo"===this._laneOrLine;if(!t)return i;for(const n of t){const t=n.options.glyphMargin?.position??se.ZS.Center;if(!s&&t!==this._laneOrLine)continue;const r=s?n.options.lineNumberHoverMessage:n.options.glyphMarginHoverMessage;r&&!(0,ie.it)(r)&&i.push(...(0,A._j)(r).map(e))}return i}}var re,oe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ae=function(e,t){return function(i,s){t(i,s,e)}};const le=k.$;let ce=class extends O.jG{static{re=this}static{this.ID="editor.contrib.modesGlyphHoverWidget"}constructor(e,t,i){super(),this._renderDisposeables=this._register(new O.Cm),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new te.N4),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Z.T({editor:this._editor},t,i)),this._computer=new ne(this._editor),this._hoverOperation=this._register(new ee.w(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{this._withResult(e.value)}))),this._register(this._editor.onDidChangeModelDecorations((()=>this._onModelDecorationsChanged()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._register(k.b2(this._hover.containerDomNode,"mouseleave",(e=>{this._onMouseLeave(e)}))),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return re.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}showsOrWillShow(e){const t=e.target;return 2===t.type&&t.detail.glyphMarginLane?(this._startShowingAt(t.position.lineNumber,t.detail.glyphMarginLane),!0):3===t.type&&(this._startShowingAt(t.position.lineNumber,"lineNo"),!0)}_startShowingAt(e,t){this._computer.lineNumber===e&&this._computer.lane===t||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._computer.lane=t,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const s of t){const e=le("div.hover-row.markdown-hover"),t=k.BC(e,le("div.hover-contents")),n=this._renderDisposeables.add(this._markdownRenderer.render(s.value));t.appendChild(n.element),i.appendChild(e)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),s=this._editor.getScrollTop(),n=this._editor.getOption(67),r=i-s-(this._hover.containerDomNode.clientHeight-n)/2,o=t.glyphMarginLeft+t.glyphMarginWidth+("lineNo"===this._computer.lane?t.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${o}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(r),0)}px`}_onMouseLeave(e){const t=this._editor.getDomNode();(!t||!(0,X.U)(t,e.x,e.y))&&this.hide()}};ce=re=oe([ae(1,J.L),ae(2,V.C)],ce);var he=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},de=function(e,t){return function(i,s){t(i,s,e)}};let ue=class extends O.jG{static{this.ID="editor.contrib.marginHover"}constructor(e,t){super(),this._editor=e,this._instantiationService=t,this.shouldKeepOpenOnEditorMouseMoveOrLeave=!1,this._listenersStore=new O.Cm,this._hoverState={mouseDown:!1},this._reactToEditorMouseMoveRunner=this._register(new N.uC((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.hidingDelay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._hoverState.mouseDown=!0;this._isMouseOnMarginHoverWidget(e)||this._hideWidgets()}_isMouseOnMarginHoverWidget(e){const t=this._glyphWidget?.getDomNode();return!!t&&(0,X.U)(t,e.event.posx,e.event.posy)}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._cancelScheduler();this._isMouseOnMarginHoverWidget(e)||this._hideWidgets()}_shouldNotRecomputeCurrentHoverWidget(e){const t=this._hoverSettings.sticky,i=this._isMouseOnMarginHoverWidget(e);return t&&i}_onEditorMouseMove(e){if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;this._mouseMoveEvent=e;this._shouldNotRecomputeCurrentHoverWidget(e)?this._reactToEditorMouseMoveRunner.cancel():this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){if(!e)return;this._tryShowHoverWidget(e)||this._hideWidgets()}_tryShowHoverWidget(e){return this._getOrCreateGlyphWidget().showsOrWillShow(e)}_onKeyDown(e){this._editor.hasModel()&&5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()}_hideWidgets(){this._glyphWidget?.hide()}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=this._instantiationService.createInstance(ce,this._editor)),this._glyphWidget}dispose(){super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),this._glyphWidget?.dispose()}};ue=he([de(1,Q._Y)],ue);var ge=i(96282);(0,o.HW)(h.A.ID,h.A,2),(0,o.HW)(ue.ID,ue,2),(0,o.Fl)(g),(0,o.Fl)(p),(0,o.Fl)(m),(0,o.Fl)(f),(0,o.Fl)(_),(0,o.Fl)(v),(0,o.Fl)(C),(0,o.Fl)(b),(0,o.Fl)(E),(0,o.Fl)(S),(0,o.Fl)(y),(0,o.Fl)(w),T.B2.register(x.xJ),T.B2.register($),(0,R.zy)(((e,t)=>{const i=e.getColor(L.oZ8);i&&(t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${i.transparent(.5)}; }`))})),ge.Z.register(new class{}),ge.Z.register(new class{}),ge.Z.register(new class{})},12143:(e,t,i)=>{"use strict";i.d(t,{w:()=>l});var s=i(90766),n=i(64383),r=i(41234),o=i(5662);class a{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class l extends o.jG{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new r.vl),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new s.uC((()=>this._triggerAsyncComputation()),0)),this._secondWaitScheduler=this._register(new s.uC((()=>this._triggerSyncComputation()),0)),this._loadingMessageScheduler=this._register(new s.uC((()=>this._triggerLoadingMessage()),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,s.bI)((e=>this._computer.computeAsync(e))),(async()=>{try{for await(const e of this._asyncIterable)e&&(this._result.push(e),this._fireResult());this._asyncIterableDone=!0,3!==this._state&&4!==this._state||this._setState(0)}catch(e){(0,n.dz)(e)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){3===this._state&&this._setState(4)}_fireResult(){if(1===this._state||2===this._state)return;const e=0===this._state,t=4===this._state;this._onResult.fire(new a(this._result.slice(0),e,t))}start(e){if(0===e)0===this._state&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}},57039:(e,t,i)=>{"use strict";i.d(t,{B2:()=>o,Ke:()=>r,hx:()=>s,mm:()=>n});class s{constructor(e,t,i,s){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=s,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class n{constructor(e,t,i,s,n,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=s,this.initialMousePosY=n,this.supportsMarkerHover=r,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}class r{constructor(e){this.renderedHoverParts=e}dispose(){for(const e of this.renderedHoverParts)e.dispose()}}const o=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}},51219:(e,t,i)=>{"use strict";i.d(t,{U:()=>n});var s=i(8597);function n(e,t,i){const n=s.BK(e);return!(t<n.left||t>n.left+n.width||i<n.top||i>n.top+n.height)}},57286:(e,t,i)=>{"use strict";i.d(t,{eH:()=>O,fm:()=>U,xJ:()=>M});var s=i(8597),n=i(25890),r=i(18447),o=i(16980),a=i(5662),l=i(20492),c=i(87758),h=i(36677),d=i(10154),u=i(57039),g=i(78209),p=i(84001),m=i(49099),f=i(56942),_=i(62083),v=i(61394),C=i(10350),b=i(25689),E=i(64383),S=i(98031),y=i(52776),w=i(67220),L=i(90766),R=i(7142),T=i(50091),x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};const A=s.$,N=(0,v.pU)("hover-increase-verbosity",C.W.add,g.kg("increaseHoverVerbosity","Icon for increaseing hover verbosity.")),I=(0,v.pU)("hover-decrease-verbosity",C.W.remove,g.kg("decreaseHoverVerbosity","Icon for decreasing hover verbosity."));class O{constructor(e,t,i,s,n,r=void 0){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=s,this.ordinal=n,this.source=r}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}class D{constructor(e,t,i){this.hover=e,this.hoverProvider=t,this.hoverPosition=i}supportsVerbosityAction(e){switch(e){case _.M$.Increase:return this.hover.canIncreaseVerbosity??!1;case _.M$.Decrease:return this.hover.canDecreaseVerbosity??!1}}}let M=class{constructor(e,t,i,s,n,r,o,a){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=s,this._languageFeaturesService=n,this._keybindingService=r,this._hoverService=o,this._commandService=a,this.hoverOrdinal=3}createLoadingMessage(e){return new O(this,e.range,[(new o.Bc).appendText(g.kg("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),s=e.range.startLineNumber,r=i.getLineMaxColumn(s),a=[];let l=1e3;const c=i.getLineLength(s),d=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),u=this._editor.getOption(118),p=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:d});let m=!1;u>=0&&c>u&&e.range.startColumn>=u&&(m=!0,a.push(new O(this,e.range,[{value:g.kg("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,l++))),!m&&"number"===typeof p&&c>=p&&a.push(new O(this,e.range,[{value:g.kg("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,l++));let f=!1;for(const g of t){const t=g.range.startLineNumber===s?g.range.startColumn:1,i=g.range.endLineNumber===s?g.range.endColumn:r,c=g.options.hoverMessage;if(!c||(0,o.it)(c))continue;g.options.beforeContentClassName&&(f=!0);const d=new h.Q(e.range.startLineNumber,t,e.range.startLineNumber,i);a.push(new O(this,d,(0,n._j)(c),f,l++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return L.AE.EMPTY;const s=this._editor.getModel(),n=this._languageFeaturesService.hoverProvider;if(!n.has(s))return L.AE.EMPTY;return this._getMarkdownHovers(n,s,e,i)}_getMarkdownHovers(e,t,i,s){const n=i.range.getStartPosition();return(0,R.U)(e,t,n,s).filter((e=>!(0,o.it)(e.hover.contents))).map((e=>{const t=e.hover.range?h.Q.lift(e.hover.range):i.range,s=new D(e.hover,e.provider,n);return new O(this,t,e.hover.contents,!1,e.ordinal,s)}))}renderHoverParts(e,t){return this._renderedHoverParts=new F(t,e.fragment,this,this._editor,this._languageService,this._openerService,this._commandService,this._keybindingService,this._hoverService,this._configurationService,e.onContentsChanged),this._renderedHoverParts}updateMarkdownHoverVerbosityLevel(e,t,i){return Promise.resolve(this._renderedHoverParts?.updateMarkdownHoverPartVerbosityLevel(e,t,i))}};M=x([k(1,d.L),k(2,m.C),k(3,p.pG),k(4,f.ILanguageFeaturesService),k(5,S.b),k(6,w.TN),k(7,T.d)],M);class P{constructor(e,t,i){this.hoverPart=e,this.hoverElement=t,this.disposables=i}dispose(){this.disposables.dispose()}}class F{constructor(e,t,i,s,n,r,o,l,c,h,d){this._hoverParticipant=i,this._editor=s,this._languageService=n,this._openerService=r,this._commandService=o,this._keybindingService=l,this._hoverService=c,this._configurationService=h,this._onFinishedRendering=d,this._ongoingHoverOperations=new Map,this._disposables=new a.Cm,this.renderedHoverParts=this._renderHoverParts(e,t,this._onFinishedRendering),this._disposables.add((0,a.s)((()=>{this.renderedHoverParts.forEach((e=>{e.dispose()})),this._ongoingHoverOperations.forEach((e=>{e.tokenSource.dispose(!0)}))})))}_renderHoverParts(e,t,i){return e.sort((0,n.VE)((e=>e.ordinal),n.U9)),e.map((e=>{const s=this._renderHoverPart(e,i);return t.appendChild(s.hoverElement),s}))}_renderHoverPart(e,t){const i=this._renderMarkdownHover(e,t),s=i.hoverElement,n=e.source,r=new a.Cm;if(r.add(i),!n)return new P(e,s,r);const o=n.supportsVerbosityAction(_.M$.Increase),l=n.supportsVerbosityAction(_.M$.Decrease);if(!o&&!l)return new P(e,s,r);const c=A("div.verbosity-actions");return s.prepend(c),r.add(this._renderHoverExpansionAction(c,_.M$.Increase,o)),r.add(this._renderHoverExpansionAction(c,_.M$.Decrease,l)),new P(e,s,r)}_renderMarkdownHover(e,t){return H(this._editor,e,this._languageService,this._openerService,t)}_renderHoverExpansionAction(e,t,i){const n=new a.Cm,r=t===_.M$.Increase,o=s.BC(e,A(b.L.asCSSSelector(r?N:I)));o.tabIndex=0;const l=new w.fO("mouse",!1,{target:e,position:{hoverPosition:0}},this._configurationService,this._hoverService);if(n.add(this._hoverService.setupManagedHover(l,o,function(e,t){switch(t){case _.M$.Increase:{const t=e.lookupKeybinding(c.jq);return t?g.kg("increaseVerbosityWithKb","Increase Hover Verbosity ({0})",t.getLabel()):g.kg("increaseVerbosity","Increase Hover Verbosity")}case _.M$.Decrease:{const t=e.lookupKeybinding(c.Zp);return t?g.kg("decreaseVerbosityWithKb","Decrease Hover Verbosity ({0})",t.getLabel()):g.kg("decreaseVerbosity","Decrease Hover Verbosity")}}}(this._keybindingService,t))),!i)return o.classList.add("disabled"),n;o.classList.add("enabled");const h=()=>this._commandService.executeCommand(t===_.M$.Increase?c.jq:c.Zp);return n.add(new y.vV(o,h)),n.add(new y.M4(o,h,[3,10])),n}async updateMarkdownHoverPartVerbosityLevel(e,t,i=!0){const s=this._editor.getModel();if(!s)return;const n=this._getRenderedHoverPartAtIndex(t),r=n?.hoverPart.source;if(!n||!r?.supportsVerbosityAction(e))return;const o=await this._fetchHover(r,s,e);if(!o)return;const a=new D(o,r.hoverProvider,r.hoverPosition),l=n.hoverPart,c=new O(this._hoverParticipant,l.range,o.contents,l.isBeforeContent,l.ordinal,a),h=this._renderHoverPart(c,this._onFinishedRendering);return this._replaceRenderedHoverPartAtIndex(t,h,c),i&&this._focusOnHoverPartWithIndex(t),{hoverPart:c,hoverElement:h.hoverElement}}async _fetchHover(e,t,i){let s=i===_.M$.Increase?1:-1;const n=e.hoverProvider,o=this._ongoingHoverOperations.get(n);o&&(o.tokenSource.cancel(),s+=o.verbosityDelta);const a=new r.Qi;this._ongoingHoverOperations.set(n,{verbosityDelta:s,tokenSource:a});const l={verbosityRequest:{verbosityDelta:s,previousHover:e.hover}};let c;try{c=await Promise.resolve(n.provideHover(t,e.hoverPosition,a.token,l))}catch(h){(0,E.M_)(h)}return a.dispose(),this._ongoingHoverOperations.delete(n),c}_replaceRenderedHoverPartAtIndex(e,t,i){if(e>=this.renderedHoverParts.length||e<0)return;const s=this.renderedHoverParts[e],n=s.hoverElement,r=t.hoverElement,o=Array.from(r.children);n.replaceChildren(...o);const a=new P(i,n,t.disposables);n.focus(),s.dispose(),this.renderedHoverParts[e]=a}_focusOnHoverPartWithIndex(e){this.renderedHoverParts[e].hoverElement.focus()}_getRenderedHoverPartAtIndex(e){return this.renderedHoverParts[e]}dispose(){this._disposables.dispose()}}function U(e,t,i,s,r){t.sort((0,n.VE)((e=>e.ordinal),n.U9));const o=[];for(const n of t)o.push(H(i,n,s,r,e.onContentsChanged));return new u.Ke(o)}function H(e,t,i,n,r){const c=new a.Cm,h=A("div.hover-row"),d=A("div.hover-row-contents");h.appendChild(d);const u=t.contents;for(const a of u){if((0,o.it)(a))continue;const t=A("div.markdown-hover"),h=s.BC(t,A("div.hover-contents")),u=c.add(new l.T({editor:e},i,n));c.add(u.onDidRenderAsync((()=>{h.className="hover-contents code-hover-contents",r()})));const g=c.add(u.render(a));h.appendChild(g.element),d.appendChild(t)}return{hoverPart:t,hoverElement:h,dispose(){c.dispose()}}}},28449:(e,t,i)=>{"use strict";var s=i(90766),n=i(64383),r=i(50868),o=i(31450),a=i(36677),l=i(75326),c=i(60002),h=i(87289),d=i(10920),u=i(78209);class g{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new l.L(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new l.L(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}var p,m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class{static{p=this}static{this.ID="editor.contrib.inPlaceReplaceController"}static get(e){return e.getContribution(p.ID)}static{this.DECORATION=h.kI.register({description:"in-place-replace",className:"valueSetReplacement"})}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){this.currentRequest?.cancel();const i=this.editor.getSelection(),o=this.editor.getModel();if(!o||!i)return;let c=i;if(c.startLineNumber!==c.endLineNumber)return;const h=new r.$t(this.editor,5),d=o.uri;return this.editorWorkerService.canNavigateValueSet(d)?(this.currentRequest=(0,s.SS)((e=>this.editorWorkerService.navigateValueSet(d,c,t))),this.currentRequest.then((t=>{if(!t||!t.range||!t.value)return;if(!h.validate(this.editor))return;const i=a.Q.lift(t.range);let r=t.range;const o=t.value.length-(c.endColumn-c.startColumn);r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.startColumn+t.value.length},o>1&&(c=new l.L(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn+o-1));const d=new g(i,c,t.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,d),this.editor.pushUndoStop(),this.decorations.set([{range:r,options:p.DECORATION}]),this.decorationRemover?.cancel(),this.decorationRemover=(0,s.wR)(350),this.decorationRemover.then((()=>this.decorations.clear())).catch(n.dz)})).catch(n.dz)):Promise.resolve(void 0)}};_=p=m([f(1,d.IEditorWorkerService)],_);class v extends o.ks{constructor(){super({id:"editor.action.inPlaceReplace.up",label:u.kg("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:c.R.writable,kbOpts:{kbExpr:c.R.editorTextFocus,primary:3159,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}class C extends o.ks{constructor(){super({id:"editor.action.inPlaceReplace.down",label:u.kg("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:c.R.writable,kbOpts:{kbExpr:c.R.editorTextFocus,primary:3161,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}(0,o.HW)(_.ID,_,4),(0,o.Fl)(v),(0,o.Fl)(C)},57244:(e,t,i)=>{"use strict";var s=i(5662),n=i(91508),r=i(31450),o=i(7936),a=i(36677),l=i(60002),c=i(17469),h=i(23750),d=i(64395),u=i(78209),g=i(51467),p=i(82365),m=i(7085),f=i(93895),_=i(75326),v=i(27760);function C(e,t,i,s){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const r=t.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;if(!r)return[];const a=new v.no(e,r,t);for(s=Math.min(s,e.getLineCount());i<=s&&a.shouldIgnore(i);)i++;if(i>s-1)return[];const{tabSize:l,indentSize:c,insertSpaces:h}=e.getOptions(),d=(e,t)=>(t=t||1,o.Y.shiftIndent(e,e.length+t,l,c,h)),u=(e,t)=>(t=t||1,o.Y.unshiftIndent(e,e.length+t,l,c,h)),g=[],p=e.getLineContent(i);let C=n.UU(p),E=C;a.shouldIncrease(i)?(E=d(E),C=d(C)):a.shouldIndentNextLine(i)&&(E=d(E));for(let o=++i;o<=s;o++){if(b(e,o))continue;const t=e.getLineContent(o),i=n.UU(t),s=E;a.shouldDecrease(o,s)&&(E=u(E),C=u(C)),i!==E&&g.push(m.k.replaceMove(new _.L(o,1,o,i.length+1),(0,f.P)(E,c,h))),a.shouldIgnore(o)||(a.shouldIncrease(o,s)?(C=d(C),E=C):E=a.shouldIndentNextLine(o,s)?d(E):C)}return g}function b(e,t){if(!e.tokenization.isCheapToTokenize(t))return!1;return 2===e.tokenization.getLineTokens(t).getStandardTokenType(0)}var E=i(87469),S=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},y=function(e,t){return function(i,s){t(i,s,e)}};class w extends r.ks{static{this.ID="editor.action.indentationToSpaces"}constructor(){super({id:w.ID,label:u.kg("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:l.R.writable,metadata:{description:u.aS("indentationToSpacesDescription","Convert the tab indentation to spaces.")}})}run(e,t){const i=t.getModel();if(!i)return;const s=i.getOptions(),n=t.getSelection();if(!n)return;const r=new P(n,s.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}class L extends r.ks{static{this.ID="editor.action.indentationToTabs"}constructor(){super({id:L.ID,label:u.kg("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:l.R.writable,metadata:{description:u.aS("indentationToTabsDescription","Convert the spaces indentation to tabs.")}})}run(e,t){const i=t.getModel();if(!i)return;const s=i.getOptions(),n=t.getSelection();if(!n)return;const r=new F(n,s.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}class R extends r.ks{constructor(e,t,i){super(i),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){const i=e.get(g.GK),s=e.get(h.IModelService),n=t.getModel();if(!n)return;const r=s.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget),o=n.getOptions(),a=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===r.tabSize&&e===o.tabSize?u.kg("configuredTabSize","Configured Tab Size"):e===r.tabSize?u.kg("defaultTabSize","Default Tab Size"):e===o.tabSize?u.kg("currentTabSize","Current Tab Size"):void 0}))),l=Math.min(n.getOptions().tabSize-1,7);setTimeout((()=>{i.pick(a,{placeHolder:u.kg({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[l]}).then((e=>{if(e&&n&&!n.isDisposed()){const t=parseInt(e.label,10);this.displaySizeOnly?n.updateOptions({tabSize:t}):n.updateOptions({tabSize:t,indentSize:t,insertSpaces:this.insertSpaces})}}))}),50)}}class T extends R{static{this.ID="editor.action.indentUsingTabs"}constructor(){super(!1,!1,{id:T.ID,label:u.kg("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0,metadata:{description:u.aS("indentUsingTabsDescription","Use indentation with tabs.")}})}}class x extends R{static{this.ID="editor.action.indentUsingSpaces"}constructor(){super(!0,!1,{id:x.ID,label:u.kg("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0,metadata:{description:u.aS("indentUsingSpacesDescription","Use indentation with spaces.")}})}}class k extends R{static{this.ID="editor.action.changeTabDisplaySize"}constructor(){super(!0,!0,{id:k.ID,label:u.kg("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0,metadata:{description:u.aS("changeTabDisplaySizeDescription","Change the space size equivalent of the tab.")}})}}class A extends r.ks{static{this.ID="editor.action.detectIndentation"}constructor(){super({id:A.ID,label:u.kg("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0,metadata:{description:u.aS("detectIndentationDescription","Detect the indentation from content.")}})}run(e,t){const i=e.get(h.IModelService),s=t.getModel();if(!s)return;const n=i.getCreationOptions(s.getLanguageId(),s.uri,s.isForSimpleWidget);s.detectIndentation(n.insertSpaces,n.tabSize)}}class N extends r.ks{constructor(){super({id:"editor.action.reindentlines",label:u.kg("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:l.R.writable,metadata:{description:u.aS("editor.reindentlinesDescription","Reindent the lines of the editor.")}})}run(e,t){const i=e.get(c.JZ),s=t.getModel();if(!s)return;const n=C(s,i,1,s.getLineCount());n.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,n),t.pushUndoStop())}}class I extends r.ks{constructor(){super({id:"editor.action.reindentselectedlines",label:u.kg("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:l.R.writable,metadata:{description:u.aS("editor.reindentselectedlinesDescription","Reindent the selected lines of the editor.")}})}run(e,t){const i=e.get(c.JZ),s=t.getModel();if(!s)return;const n=t.getSelections();if(null===n)return;const r=[];for(const o of n){let e=o.startLineNumber,t=o.endLineNumber;if(e!==t&&1===o.endColumn&&t--,1===e){if(e===t)continue}else e--;const n=C(s,i,e,t);r.push(...n)}r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}class O{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&"string"===typeof i.text&&this._edits.push(i)}getEditOperations(e,t){for(const s of this._edits)t.addEditOperation(a.Q.lift(s.range),s.text);let i=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let D=class{static{this.ID="editor.contrib.autoIndentOnPaste"}constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new s.Cm,this.callOnModel=new s.Cm,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(12)<4||this.editor.getOption(55)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((({range:e})=>{this.trigger(e)})))}trigger(e){const t=this.editor.getSelections();if(null===t||t.length>1)return;const i=this.editor.getModel();if(!i)return;if(this.rangeContainsOnlyWhitespaceCharacters(i,e))return;if(function(e,t){const i=t=>2===(0,E.T)(e,t);return i(t.getStartPosition())||i(t.getEndPosition())}(i,e))return;if(!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const s=this.editor.getOption(12),{tabSize:r,indentSize:l,insertSpaces:c}=i.getOptions(),h=[],u={shiftIndent:e=>o.Y.shiftIndent(e,e.length+1,r,l,c),unshiftIndent:e=>o.Y.unshiftIndent(e,e.length+1,r,l,c)};let g=e.startLineNumber;for(;g<=e.endLineNumber&&this.shouldIgnoreLine(i,g);)g++;if(g>e.endLineNumber)return;let m=i.getLineContent(g);if(!/\S/.test(m.substring(0,e.startColumn-1))){const e=(0,p.$f)(s,i,i.getLanguageId(),g,u,this._languageConfigurationService);if(null!==e){const t=n.UU(m),s=d.c(e,r);if(s!==d.c(t,r)){const e=d.k(s,r,c);h.push({range:new a.Q(g,1,g,t.length+1),text:e}),m=e+m.substring(t.length)}else{const e=(0,p.Yb)(i,g,this._languageConfigurationService);if(0===e||8===e)return}}}const f=g;for(;g<e.endLineNumber&&!/\S/.test(i.getLineContent(g+1));)g++;if(g!==e.endLineNumber){const t={tokenization:{getLineTokens:e=>i.tokenization.getLineTokens(e),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(e,t)=>i.getLanguageIdAtPosition(e,t)},getLineContent:e=>e===f?m:i.getLineContent(e)},o=(0,p.$f)(s,t,i.getLanguageId(),g+1,u,this._languageConfigurationService);if(null!==o){const t=d.c(o,r),s=d.c(n.UU(i.getLineContent(g+1)),r);if(t!==s){const o=t-s;for(let t=g+1;t<=e.endLineNumber;t++){const e=i.getLineContent(t),s=n.UU(e),l=d.c(s,r)+o,u=d.k(l,r,c);u!==s&&h.push({range:new a.Q(t,1,t,s.length+1),text:u})}}}}if(h.length>0){this.editor.pushUndoStop();const e=new O(h,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}rangeContainsOnlyWhitespaceCharacters(e,t){const i=e=>0===e.trim().length;let s=!0;if(t.startLineNumber===t.endLineNumber){s=i(e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1))}else for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const r=e.getLineContent(n);if(n===t.startLineNumber){s=i(r.substring(t.startColumn-1))}else if(n===t.endLineNumber){s=i(r.substring(0,t.endColumn-1))}else s=0===e.getLineFirstNonWhitespaceColumn(n);if(!s)break}return s}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(0===i)return!0;const s=e.tokenization.getLineTokens(t);if(s.getCount()>0){const e=s.findTokenIndexAtOffset(i);if(e>=0&&1===s.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};function M(e,t,i,s){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let n="";for(let o=0;o<i;o++)n+=" ";const r=new RegExp(n,"gi");for(let o=1,l=e.getLineCount();o<=l;o++){let i=e.getLineFirstNonWhitespaceColumn(o);if(0===i&&(i=e.getLineMaxColumn(o)),1===i)continue;const l=new a.Q(o,1,o,i),c=e.getValueInRange(l),h=s?c.replace(/\t/gi,n):c.replace(r,"\t");t.addEditOperation(l,h)}}D=S([y(1,c.JZ)],D);class P{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class F{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),M(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}(0,r.HW)(D.ID,D,2),(0,r.Fl)(w),(0,r.Fl)(L),(0,r.Fl)(T),(0,r.Fl)(x),(0,r.Fl)(k),(0,r.Fl)(A),(0,r.Fl)(N),(0,r.Fl)(I)},64395:(e,t,i)=>{"use strict";function s(e,t){let i=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?i+=t:i++;return i}function n(e,t,i){e=e<0?0:e;let s="";if(!i){const i=Math.floor(e/t);e%=t;for(let e=0;e<i;e++)s+="\t"}for(let n=0;n<e;n++)s+=" ";return s}i.d(t,{c:()=>s,k:()=>n})},3730:(e,t,i)=>{"use strict";i.d(t,{CN:()=>u,EP:()=>c,P8:()=>d});var s=i(64383),n=i(5662),r=i(83069),o=i(36677),a=i(36456),l=i(79400);class c{constructor(e,t){this.range=e,this.direction=t}}class h{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new h(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}async resolve(e){if("function"===typeof this.provider.resolveInlayHint){if(this._currentResolve){if(await this._currentResolve,e.isCancellationRequested)return;return this.resolve(e)}this._isResolved||(this._currentResolve=this._doResolve(e).finally((()=>this._currentResolve=void 0))),await this._currentResolve}}async _doResolve(e){try{const t=await Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=t?.tooltip??this.hint.tooltip,this.hint.label=t?.label??this.hint.label,this.hint.textEdits=t?.textEdits??this.hint.textEdits,this._isResolved=!0}catch(t){(0,s.M_)(t),this._isResolved=!1}}}class d{static{this._emptyInlayHintList=Object.freeze({dispose(){},hints:[]})}static async create(e,t,i,n){const r=[],o=e.ordered(t).reverse().map((e=>i.map((async i=>{try{const s=await e.provideInlayHints(t,i,n);(s?.hints.length||e.onDidChangeInlayHints)&&r.push([s??d._emptyInlayHintList,e])}catch(o){(0,s.M_)(o)}}))));if(await Promise.all(o.flat()),n.isCancellationRequested||t.isDisposed())throw new s.AL;return new d(i,r,t)}constructor(e,t,i){this._disposables=new n.Cm,this.ranges=e,this.provider=new Set;const s=[];for(const[n,r]of t){this._disposables.add(n),this.provider.add(r);for(const e of n.hints){const t=i.validatePosition(e.position);let n="before";const a=d._getRangeAtPosition(i,t);let l;a.getStartPosition().isBefore(t)?(l=o.Q.fromPositions(a.getStartPosition(),t),n="after"):(l=o.Q.fromPositions(t,a.getEndPosition()),n="before"),s.push(new h(e,new c(l,n),r))}}this.items=s.sort(((e,t)=>r.y.compare(e.hint.position,t.hint.position)))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,s=e.getWordAtPosition(t);if(s)return new o.Q(i,s.startColumn,i,s.endColumn);e.tokenization.tokenizeIfCheap(i);const n=e.tokenization.getLineTokens(i),r=t.column-1,a=n.findTokenIndexAtOffset(r);let l=n.getStartOffset(a),c=n.getEndOffset(a);return c-l===1&&(l===r&&a>1?(l=n.getStartOffset(a-1),c=n.getEndOffset(a-1)):c===r&&a<n.getCount()-1&&(l=n.getStartOffset(a+1),c=n.getEndOffset(a+1))),new o.Q(i,l+1,i,c+1)}}function u(e){return l.r.from({scheme:a.ny.command,path:e.id,query:e.arguments&&encodeURIComponent(JSON.stringify(e.arguments))}).toString()}},76440:(e,t,i)=>{"use strict";var s=i(31450),n=i(57039),r=i(21478),o=i(68250);(0,s.HW)(r.M.ID,r.M,1),n.B2.register(o.u)},21478:(e,t,i)=>{"use strict";i.d(t,{M:()=>H,z:()=>F});var s,n=i(8597),r=i(25890),o=i(90766),a=i(18447),l=i(64383),c=i(5662),h=i(74320),d=i(631),u=i(79400),g=i(37734),p=i(55190),m=i(87908),f=i(7085),_=i(36677),v=i(62083),C=i(16223),b=i(87289),E=i(32500),S=i(56942),y=i(18938),w=i(37927),L=i(3730),R=i(60952),T=i(50091),x=i(14718),k=i(63591),A=i(58591),N=i(66261),I=i(47612),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};class M{constructor(){this._entries=new h.qK(50)}get(e){const t=M._key(e);return this._entries.get(t)}set(e,t){const i=M._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const P=(0,k.u1)("IInlayHintsCache");(0,x.v)(P,M,1);class F{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return"string"===typeof e?{label:e}:e[this.index]}}class U{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let H=class{static{s=this}static{this.ID="editor.contrib.InlayHints"}static{this._MAX_DECORATORS=1500}static{this._MAX_LABEL_LEN=43}static get(e){return e.getContribution(s.ID)??void 0}constructor(e,t,i,s,n,r,o){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=s,this._commandService=n,this._notificationService=r,this._instaService=o,this._disposables=new c.Cm,this._sessionDisposables=new c.Cm,this._decorationsMetadata=new Map,this._ruleFactory=new g.Qn(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange((()=>this._update()))),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(142)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(142);if("off"===e.enabled)return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;if("on"===e.enabled)this._activeRenderMode=0;else{let t,i;"onUnlessPressed"===e.enabled?(t=0,i=1):(t=1,i=0),this._activeRenderMode=t,this._sessionDisposables.add(n.Di.getInstance().event((e=>{if(!this._editor.hasModel())return;const s=e.altKey&&e.ctrlKey&&!e.shiftKey&&!e.metaKey?i:t;if(s!==this._activeRenderMode){this._activeRenderMode=s;const e=this._editor.getModel(),t=this._copyInlayHintsWithCurrentAnchor(e);this._updateHintsDecorators([e.getFullModelRange()],t),h.schedule(0)}})))}const i=this._inlayHintsCache.get(t);let s;i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add((0,c.s)((()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)})));const r=new Set,h=new o.uC((async()=>{const e=Date.now();s?.dispose(!0),s=new a.Qi;const i=t.onWillDispose((()=>s?.cancel()));try{const i=s.token,n=await L.P8.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),i);if(h.delay=this._debounceInfo.update(t,Date.now()-e),i.isCancellationRequested)return void n.dispose();for(const e of n.provider)"function"!==typeof e.onDidChangeInlayHints||r.has(e)||(r.add(e),this._sessionDisposables.add(e.onDidChangeInlayHints((()=>{h.isScheduled()||h.schedule()}))));this._sessionDisposables.add(n),this._updateHintsDecorators(n.ranges,n.items),this._cacheHintsForFastRestore(t)}catch(n){(0,l.dz)(n)}finally{s.dispose(),i.dispose()}}),this._debounceInfo.get(t));this._sessionDisposables.add(h),this._sessionDisposables.add((0,c.s)((()=>s?.dispose(!0)))),h.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange((e=>{!e.scrollTopChanged&&h.isScheduled()||h.schedule()}))),this._sessionDisposables.add(this._editor.onDidChangeModelContent((e=>{s?.cancel();const t=Math.max(h.delay,1250);h.schedule(t)}))),this._sessionDisposables.add(this._installDblClickGesture((()=>h.schedule(0)))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new c.Cm,t=e.add(new w.gi(this._editor)),i=new c.Cm;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown((e=>{const[t]=e,s=this._getInlayHintLabelPart(t),n=this._editor.getModel();if(!s||!n)return void i.clear();const r=new a.Qi;i.add((0,c.s)((()=>r.dispose(!0)))),s.item.resolve(r.token),this._activeInlayHintPart=s.part.command||s.part.location?new U(s,t.hasTriggerModifier):void 0;const o=n.validatePosition(s.item.hint.position).lineNumber,l=new _.Q(o,1,o,n.getLineMaxColumn(o)),h=this._getInlineHintsForRange(l);this._updateHintsDecorators([l],h),i.add((0,c.s)((()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([l],h)})))}))),e.add(t.onCancel((()=>i.clear()))),e.add(t.onExecute((async e=>{const t=this._getInlayHintLabelPart(e);if(t){const i=t.part;i.location?this._instaService.invokeFunction(R.U,e,this._editor,i.location):v.uB.is(i.command)&&await this._invokeCommand(i.command,t.item)}}))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp((async t=>{if(2!==t.event.detail)return;const i=this._getInlayHintLabelPart(t);if(i&&(t.event.preventDefault(),await i.item.resolve(a.XO.None),(0,r.EI)(i.item.hint.textEdits))){const t=i.item.hint.textEdits.map((e=>f.k.replace(_.Q.lift(e.range),e.text)));this._editor.executeEdits("inlayHint.default",t),e()}}))}_installContextMenu(){return this._editor.onContextMenu((async e=>{if(!(0,n.sb)(e.event.target))return;const t=this._getInlayHintLabelPart(e);t&&await this._instaService.invokeFunction(R.h,this._editor,e.event.target,t)}))}_getInlayHintLabelPart(e){if(6!==e.target.type)return;const t=e.target.detail.injectedText?.options;return t instanceof b.Ho&&t?.attachedData instanceof F?t.attachedData:void 0}async _invokeCommand(e,t){try{await this._commandService.executeCommand(e.id,...e.arguments??[])}catch(i){this._notificationService.notify({severity:A.AI.Error,source:t.provider.displayName,message:i})}}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,s]of this._decorationsMetadata){if(t.has(s.item))continue;const n=e.getDecorationRange(i);if(n){const e=new L.EP(n,s.item.anchor.direction),i=s.item.with({anchor:e});t.set(s.item,i)}}return Array.from(t.values())}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),i=[];for(const s of t.sort(_.Q.compareRangesUsingStarts)){const t=e.validateRange(new _.Q(s.startLineNumber-30,s.startColumn,s.endLineNumber+30,s.endColumn));0!==i.length&&_.Q.areIntersectingOrTouching(i[i.length-1],t)?i[i.length-1]=_.Q.plusRange(i[i.length-1],t):i.push(t)}return i}_updateHintsDecorators(e,t){const i=[],n=(e,t,s,n,r)=>{const o={content:s,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:t.className,cursorStops:n,attachedData:r};i.push({item:e,classNameRef:t,decoration:{range:e.anchor.range,options:{description:"InlayHint",showIfCollapsed:e.anchor.range.isEmpty(),collapseOnReplaceEdit:!e.anchor.range.isEmpty(),stickiness:0,[e.anchor.direction]:0===this._activeRenderMode?o:void 0}}})},o=(e,t)=>{const i=this._ruleFactory.createClassNameRef({width:(a/3|0)+"px",display:"inline-block"});n(e,i,"\u200a",t?C.VW.Right:C.VW.None)},{fontSize:a,fontFamily:l,padding:c,isUniform:h}=this._getLayoutInfo(),d="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(d,l);let u={line:0,totalLen:0};for(const p of t){if(u.line!==p.anchor.range.startLineNumber&&(u={line:p.anchor.range.startLineNumber,totalLen:0}),u.totalLen>s._MAX_LABEL_LEN)continue;p.hint.paddingLeft&&o(p,!1);const e="string"===typeof p.hint.label?[{label:p.hint.label}]:p.hint.label;for(let t=0;t<e.length;t++){const i=e[t],o=0===t,l=t===e.length-1,g={fontSize:`${a}px`,fontFamily:`var(${d}), ${m.jU.fontFamily}`,verticalAlign:h?"baseline":"middle",unicodeBidi:"isolate"};(0,r.EI)(p.hint.textEdits)&&(g.cursor="default"),this._fillInColors(g,p.hint),(i.command||i.location)&&this._activeInlayHintPart?.part.item===p&&this._activeInlayHintPart.part.index===t&&(g.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(g.color=(0,I.Yf)(N.Ztu),g.cursor="pointer")),c&&(o&&l?(g.padding=`1px ${0|Math.max(1,a/4)}px`,g.borderRadius=(a/4|0)+"px"):o?(g.padding=`1px 0 1px ${0|Math.max(1,a/4)}px`,g.borderRadius=`${a/4|0}px 0 0 ${a/4|0}px`):l?(g.padding=`1px ${0|Math.max(1,a/4)}px 1px 0`,g.borderRadius=`0 ${a/4|0}px ${a/4|0}px 0`):g.padding="1px 0 1px 0");let f=i.label;u.totalLen+=f.length;let _=!1;const v=u.totalLen-s._MAX_LABEL_LEN;if(v>0&&(f=f.slice(0,-v)+"\u2026",_=!0),n(p,this._ruleFactory.createClassNameRef(g),B(f),l&&!p.hint.paddingRight?C.VW.Right:C.VW.None,new F(p,t)),_)break}if(p.hint.paddingRight&&o(p,!0),i.length>s._MAX_DECORATORS)break}const g=[];for(const[s,r]of this._decorationsMetadata){const t=this._editor.getModel()?.getDecorationRange(s);t&&e.some((e=>e.containsRange(t)))&&(g.push(s),r.classNameRef.dispose(),this._decorationsMetadata.delete(s))}const f=p.D.capture(this._editor);this._editor.changeDecorations((e=>{const t=e.deltaDecorations(g,i.map((e=>e.decoration)));for(let s=0;s<t.length;s++){const e=i[s];this._decorationsMetadata.set(t[s],e)}})),f.restore(this._editor)}_fillInColors(e,t){t.kind===v.r4.Parameter?(e.backgroundColor=(0,I.Yf)(N.B2L),e.color=(0,I.Yf)(N.sjA)):t.kind===v.r4.Type?(e.backgroundColor=(0,I.Yf)(N._pU),e.color=(0,I.Yf)(N.HwT)):(e.backgroundColor=(0,I.Yf)(N.WL6),e.color=(0,I.Yf)(N.P6i))}_getLayoutInfo(){const e=this._editor.getOption(142),t=e.padding,i=this._editor.getOption(52),s=this._editor.getOption(49);let n=e.fontSize;(!n||n<5||n>i)&&(n=i);const r=e.fontFamily||s;return{fontSize:n,fontFamily:r,padding:t,isUniform:!t&&r===s&&n===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};function B(e){return e.replace(/[ \t]/g,"\xa0")}H=s=O([D(1,S.ILanguageFeaturesService),D(2,E.ILanguageFeatureDebounceService),D(3,P),D(4,T.d),D(5,A.Ot),D(6,k._Y)],H),T.w.registerCommand("_executeInlayHintProvider",(async(e,...t)=>{const[i,s]=t;(0,d.j)(u.r.isUri(i)),(0,d.j)(_.Q.isIRange(s));const{inlayHintsProvider:n}=e.get(S.ILanguageFeaturesService),r=await e.get(y.ITextModelService).createModelReference(i);try{const e=await L.P8.create(n,r.object.textEditorModel,[_.Q.lift(s)],a.XO.None),t=e.items.map((e=>e.hint));return setTimeout((()=>e.dispose()),0),t}finally{r.dispose()}}))},68250:(e,t,i)=>{"use strict";i.d(t,{u:()=>R});var s=i(90766),n=i(16980),r=i(83069),o=i(87289),a=i(57039),l=i(10154),c=i(18938),h=i(7142),d=i(57286),u=i(21478),g=i(84001),p=i(49099),m=i(56942),f=i(78209),_=i(98067),v=i(3730),C=i(25890),b=i(98031),E=i(67220),S=i(50091),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};class L extends a.mm{constructor(e,t,i,s){super(10,t,e.item.anchor.range,i,s,!0),this.part=e}}let R=class extends d.xJ{constructor(e,t,i,s,n,r,o,a,l){super(e,t,i,r,a,s,n,l),this._resolverService=o,this.hoverOrdinal=6}suggestHoverAnchor(e){if(!u.M.get(this._editor))return null;if(6!==e.target.type)return null;const t=e.target.detail.injectedText?.options;return t instanceof o.Ho&&t.attachedData instanceof u.z?new L(t.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof L?new s.AE((async t=>{const{part:s}=e;if(await s.item.resolve(i),i.isCancellationRequested)return;let r,o;if("string"===typeof s.item.hint.tooltip?r=(new n.Bc).appendText(s.item.hint.tooltip):s.item.hint.tooltip&&(r=s.item.hint.tooltip),r&&t.emitOne(new d.eH(this,e.range,[r],!1,0)),(0,C.EI)(s.item.hint.textEdits)&&t.emitOne(new d.eH(this,e.range,[(new n.Bc).appendText((0,f.kg)("hint.dbl","Double-click to insert"))],!1,10001)),"string"===typeof s.part.tooltip?o=(new n.Bc).appendText(s.part.tooltip):s.part.tooltip&&(o=s.part.tooltip),o&&t.emitOne(new d.eH(this,e.range,[o],!1,1)),s.part.location||s.part.command){let i;const r="altKey"===this._editor.getOption(78)?_.zx?(0,f.kg)("links.navigate.kb.meta.mac","cmd + click"):(0,f.kg)("links.navigate.kb.meta","ctrl + click"):_.zx?(0,f.kg)("links.navigate.kb.alt.mac","option + click"):(0,f.kg)("links.navigate.kb.alt","alt + click");s.part.location&&s.part.command?i=(new n.Bc).appendText((0,f.kg)("hint.defAndCommand","Go to Definition ({0}), right click for more",r)):s.part.location?i=(new n.Bc).appendText((0,f.kg)("hint.def","Go to Definition ({0})",r)):s.part.command&&(i=new n.Bc(`[${(0,f.kg)("hint.cmd","Execute Command")}](${(0,v.CN)(s.part.command)} "${s.part.command.title}") (${r})`,{isTrusted:!0})),i&&t.emitOne(new d.eH(this,e.range,[i],!1,1e4))}const a=await this._resolveInlayHintLabelPartHover(s,i);for await(const e of a)t.emitOne(e)})):s.AE.EMPTY}async _resolveInlayHintLabelPartHover(e,t){if(!e.part.location)return s.AE.EMPTY;const{uri:i,range:o}=e.part.location,a=await this._resolverService.createModelReference(i);try{const i=a.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(i)?(0,h.U)(this._languageFeaturesService.hoverProvider,i,new r.y(o.startLineNumber,o.startColumn),t).filter((e=>!(0,n.it)(e.hover.contents))).map((t=>new d.eH(this,e.item.anchor.range,t.hover.contents,!1,2+t.ordinal))):s.AE.EMPTY}finally{a.dispose()}}};R=y([w(1,l.L),w(2,p.C),w(3,b.b),w(4,E.TN),w(5,g.pG),w(6,c.ITextModelService),w(7,m.ILanguageFeaturesService),w(8,S.d)],R)},60952:(e,t,i)=>{"use strict";i.d(t,{U:()=>v,h:()=>_});var s=i(8597),n=i(36921),r=i(18447),o=i(58255),a=i(36677),l=i(18938),c=i(99312),h=i(84226),d=i(27195),u=i(50091),g=i(32848),p=i(47508),m=i(63591),f=i(58591);async function _(e,t,i,h){const g=e.get(l.ITextModelService),_=e.get(p.Z),v=e.get(u.d),C=e.get(m._Y),b=e.get(f.Ot);if(await h.item.resolve(r.XO.None),!h.part.location)return;const E=h.part.location,S=[],y=new Set(d.ZG.getMenuItems(d.D8.EditorContext).map((e=>(0,d.is)(e)?e.command.id:(0,o.b)())));for(const s of c.bn.all())y.has(s.desc.id)&&S.push(new n.rc(s.desc.id,d.Xe.label(s.desc,{renderShortTitle:!0}),void 0,!0,(async()=>{const e=await g.createModelReference(E.uri);try{const i=new c.QS(e.object.textEditorModel,a.Q.getStartPosition(E.range)),n=h.item.anchor.range;await C.invokeFunction(s.runEditorCommand.bind(s),t,i,n)}finally{e.dispose()}})));if(h.part.command){const{command:e}=h.part;S.push(new n.wv),S.push(new n.rc(e.id,e.title,void 0,!0,(async()=>{try{await v.executeCommand(e.id,...e.arguments??[])}catch(t){b.notify({severity:f.AI.Error,source:h.item.provider.displayName,message:t})}})))}const w=t.getOption(128);_.showContextMenu({domForShadowRoot:w?t.getDomNode()??void 0:void 0,getAnchor:()=>{const e=s.BK(i);return{x:e.left,y:e.top+e.height+8}},getActions:()=>S,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}async function v(e,t,i,s){const n=e.get(l.ITextModelService),r=await n.createModelReference(s.uri);await i.invokeWithinContext((async e=>{const n=t.hasSideBySideModifier,o=e.get(g.fN),l=h.x2.inPeekEditor.getValue(o),d=!n&&i.getOption(89)&&!l;return new c.mR({openToSide:n,openInPeek:d,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e,new c.QS(r.object.textEditorModel,a.Q.getStartPosition(s.range)),a.Q.lift(s.range))})),r.dispose()}},78244:(e,t,i)=>{"use strict";i.d(t,{PA:()=>r,Vl:()=>n,Wt:()=>s});const s="editor.action.inlineSuggest.commit",n="editor.action.inlineSuggest.showPrevious",r="editor.action.inlineSuggest.showNext"},62051:(e,t,i)=>{"use strict";i.d(t,{p:()=>c});var s=i(31308),n=i(91508),r=i(1245),o=i(32848),a=i(5662),l=i(78209);class c extends a.jG{static{this.inlineSuggestionVisible=new o.N1("inlineSuggestionVisible",!1,(0,l.kg)("inlineSuggestionVisible","Whether an inline suggestion is visible"))}static{this.inlineSuggestionHasIndentation=new o.N1("inlineSuggestionHasIndentation",!1,(0,l.kg)("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace"))}static{this.inlineSuggestionHasIndentationLessThanTabSize=new o.N1("inlineSuggestionHasIndentationLessThanTabSize",!0,(0,l.kg)("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab"))}static{this.suppressSuggestions=new o.N1("inlineSuggestionSuppressSuggestions",void 0,(0,l.kg)("suppressSuggestions","Whether suggestions should be suppressed for the current suggestion"))}constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=c.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=c.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=c.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=c.suppressSuggestions.bindTo(this.contextKeyService),this._register((0,s.fm)((e=>{const t=this.model.read(e),i=t?.state.read(e),s=!!i?.inlineCompletion&&void 0!==i?.primaryGhostText&&!i?.primaryGhostText.isEmpty();this.inlineCompletionVisible.set(s),i?.primaryGhostText&&i?.inlineCompletion&&this.suppressSuggestions.set(i.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)}))),this._register((0,s.fm)((e=>{const t=this.model.read(e);let i=!1,s=!0;const o=t?.primaryGhostText.read(e);if(t?.selectedSuggestItem&&o&&o.parts.length>0){const{column:e,lines:a}=o.parts[0],l=a[0];if(e<=t.textModel.getLineIndentColumn(o.lineNumber)){let e=(0,n.HG)(l);-1===e&&(e=l.length-1),i=e>0;const o=t.textModel.getOptions().tabSize;s=r.A.visibleColumnFromColumn(l,e+1,o)<o}}this.inlineCompletionSuggestsIndentation.set(i),this.inlineCompletionSuggestsIndentationLessThanTabSize.set(s)})))}}},64317:(e,t,i)=>{"use strict";i.d(t,{Pm:()=>I,bo:()=>M});var s,n=i(8597),r=i(5646),o=i(47625),a=i(36921),l=i(25890),c=i(90766),h=i(10350),d=i(5662),u=i(31308),g=i(87958),p=i(98067),m=i(25689),f=i(83069),_=i(62083),v=i(78244),C=i(78209),b=i(57629),E=i(65644),S=i(27195),y=i(50091),w=i(32848),L=i(47508),R=i(63591),T=i(98031),x=i(90651),k=i(61394),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends d.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,u.y0)(this,this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(62).showToolbar)),this.sessionPosition=void 0,this.position=(0,u.un)(this,(e=>{const t=this.model.read(e)?.primaryGhostText.read(e);if(!this.alwaysShowToolbar.read(e)||!t||0===t.parts.length)return this.sessionPosition=void 0,null;const i=t.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==t.lineNumber&&(this.sessionPosition=void 0);const s=new f.y(t.lineNumber,Math.min(i,this.sessionPosition?.column??Number.MAX_SAFE_INTEGER));return this.sessionPosition=s,s})),this._register((0,u.yC)(((t,i)=>{const s=this.model.read(t);if(!s||!this.alwaysShowToolbar.read(t))return;const n=(0,g.rm)(((t,i)=>{const n=i.add(this.instantiationService.createInstance(M,this.editor,!0,this.position,s.selectedInlineCompletionIndex,s.inlineCompletionsCount,s.activeCommands));return e.addContentWidget(n),i.add((0,d.s)((()=>e.removeContentWidget(n)))),i.add((0,u.fm)((e=>{this.position.read(e)&&s.lastTriggerKind.read(e)!==_.qw.Explicit&&s.triggerExplicitly()}))),n})),r=(0,u.ZX)(this,((e,t)=>!!this.position.read(e)||!!t));i.add((0,u.fm)((e=>{r.read(e)&&n.read(e)})))})))}};I=A([N(2,R._Y)],I);const O=(0,k.pU)("inline-suggestion-hints-next",h.W.chevronRight,(0,C.kg)("parameterHintsNextIcon","Icon for show next parameter hint.")),D=(0,k.pU)("inline-suggestion-hints-previous",h.W.chevronLeft,(0,C.kg)("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let M=class extends d.jG{static{s=this}static{this._dropDownVisible=!1}static get dropDownVisible(){return this._dropDownVisible}static{this.id=0}createCommandAction(e,t,i){const s=new a.rc(e,t,i,!0,(()=>this._commandService.executeCommand(e))),n=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return n&&(r=(0,C.kg)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,n.getLabel())),s.tooltip=r,s}constructor(e,t,i,r,o,l,h,d,g,p,f){super(),this.editor=e,this.withBorder=t,this._position=i,this._currentSuggestionIdx=r,this._suggestionCount=o,this._extraCommands=l,this._commandService=h,this.keybindingService=g,this._contextKeyService=p,this._menuService=f,this.id="InlineSuggestionHintsContentWidget"+s.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,n.h)("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[(0,n.h)("div@toolBar")]),this.previousAction=this.createCommandAction(v.Vl,(0,C.kg)("previous","Previous"),m.L.asClassName(D)),this.availableSuggestionCountAction=new a.rc("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(v.PA,(0,C.kg)("next","Next"),m.L.asClassName(O)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(S.D8.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new c.uC((()=>{this.availableSuggestionCountAction.label=""}),100)),this.disableButtonsDebounced=this._register(new c.uC((()=>{this.previousAction.enabled=this.nextAction.enabled=!1}),100)),this.toolBar=this._register(d.createInstance(U,this.nodes.toolBar,S.D8.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof S.Xe)return d.createInstance(F,e,void 0);if(e===this.availableSuggestionCountAction){const t=new P(void 0,e,{label:!0,icon:!1});return t.setClass("availableSuggestionCount"),t}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{s._dropDownVisible=e}))),this._register((0,u.fm)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,u.fm)((e=>{const t=this._suggestionCount.read(e),i=this._currentSuggestionIdx.read(e);void 0!==t?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${i+1}/${t}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),void 0!==t&&t>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()}))),this._register((0,u.fm)((e=>{const t=this._extraCommands.read(e).map((e=>({class:void 0,id:e.id,enabled:!0,tooltip:e.tooltip||"",label:e.title,run:t=>this._commandService.executeCommand(e.id)})));for(const[i,s]of this.inlineCompletionsActionsMenus.getActions())for(const e of s)e instanceof S.Xe&&t.push(e);t.length>0&&t.unshift(new a.wv),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};M=s=A([N(6,y.d),N(7,R._Y),N(8,T.b),N(9,w.fN),N(10,S.ez)],M);class P extends r.Z4{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}updateTooltip(){}}class F extends b.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,n.h)("div.keybinding").root;this._register(new o.x(t,p.OS,{disableTitle:!0,...o.l})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}}let U=class extends E.p{constructor(e,t,i,s,n,r,o,a,l){super(e,{resetMenu:t,...i},s,n,r,o,a,l),this.menuId=t,this.options2=i,this.menuService=s,this.contextKeyService=n,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){const e=[],t=[];(0,b.Ot)(this.menu,this.options2?.menuOptions,{primary:e,secondary:t},this.options2?.toolbarOptions?.primaryGroup,this.options2?.toolbarOptions?.shouldInlineSubmenu,this.options2?.toolbarOptions?.useSeparatorsInPrimaryActions),t.push(...this.additionalActions),e.unshift(...this.prependedPrimaryActions),this.setActions(e,t)}setPrependedPrimaryActions(e){(0,l.aI)(this.prependedPrimaryActions,e,((e,t)=>e===t))||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){(0,l.aI)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};U=A([N(3,S.ez),N(4,w.fN),N(5,L.Z),N(6,T.b),N(7,y.d),N(8,x.k)],U)},80409:(e,t,i)=>{"use strict";var s=i(31450),n=i(57039),r=i(31308),o=i(49154),a=i(60002),l=i(78244),c=i(62051),h=i(8597),d=i(5662);var u=i(11007),g=i(90766),p=i(18447),m=i(87958),f=i(13850),_=i(631),v=i(36999),C=i(38844),b=i(83069),E=i(32500),S=i(56942),y=i(80789),w=i(41234),L=i(91508),R=i(73157),T=i(87908),x=i(36677),k=i(99020),A=i(10154),N=i(16223),I=i(87469),O=i(25521),D=i(35600),M=i(92674),P=i(73401),F=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){return function(i,s){t(i,s,e)}};const H="ghost-text";let B=class extends d.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,r.FY)(this,!1),this.currentTextModel=(0,r.y0)(this,this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,r.un)(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;const s=i instanceof M.Vs?i.columnRange:void 0,n=[],r=[];function o(e,t){if(r.length>0){const i=r[r.length-1];t&&i.decorations.push(new O.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)r.push({content:i,decorations:t?[new O.d(1,i.length+1,t,0)]:[]})}const a=t.getLineContent(i.lineNumber);let l,c=0;for(const d of i.parts){let e=d.lines;void 0===l?(n.push({column:d.column,text:e[0],preview:d.preview}),e=e.slice(1)):o([a.substring(c,d.column-1)],void 0),e.length>0&&(o(e,H),void 0===l&&d.column<=a.length&&(l=d.column)),c=d.column-1}void 0!==l&&o([a.substring(c)],void 0);const h=void 0!==l?new P.GM(l,a.length+1):void 0;return{replacedRange:s,inlineTexts:n,additionalLines:r,hiddenRange:h,lineNumber:i.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t}})),this.decorations=(0,r.un)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];t.replacedRange&&i.push({range:t.replacedRange.toRange(t.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(const s of t.inlineTexts)i.push({range:x.Q.fromPositions(new b.y(t.lineNumber,s.column)),options:{description:H,after:{content:s.text,inlineClassName:s.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:N.VW.Left},showIfCollapsed:!0}});return i})),this.additionalLinesWidget=this._register(new W(this.editor,this.languageService.languageIdCodec,(0,r.un)((e=>{const t=this.uiState.read(e);return t?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register((0,d.s)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,P.pY)(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};B=F([U(2,A.L)],B);class W extends d.jG{get viewZoneId(){return this._viewZoneId}constructor(e,t,i){super(),this.editor=e,this.languageIdCodec=t,this.lines=i,this._viewZoneId=void 0,this.editorOptionsChanged=(0,r.yQ)("editorOptionChanged",w.Jh.filter(this.editor.onDidChangeConfiguration,(e=>e.hasChanged(33)||e.hasChanged(118)||e.hasChanged(100)||e.hasChanged(95)||e.hasChanged(51)||e.hasChanged(50)||e.hasChanged(67)))),this._register((0,r.fm)((e=>{const t=this.lines.read(e);this.editorOptionsChanged.read(e),t?this.updateLines(t.lineNumber,t.additionalLines,t.minReservedLineCount):this.clear()})))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones((e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)}))}updateLines(e,t,i){const s=this.editor.getModel();if(!s)return;const{tabSize:n}=s.getOptions();this.editor.changeViewZones((s=>{this._viewZoneId&&(s.removeZone(this._viewZoneId),this._viewZoneId=void 0);const r=Math.max(t.length,i);if(r>0){const i=document.createElement("div");!function(e,t,i,s,n){const r=s.get(33),o=s.get(118),a="none",l=s.get(95),c=s.get(51),h=s.get(50),d=s.get(67),u=new k.fe(1e4);u.appendString('<div class="suggest-preview-text">');for(let m=0,f=i.length;m<f;m++){const e=i[m],s=e.content;u.appendString('<div class="view-line'),u.appendString('" style="top:'),u.appendString(String(m*d)),u.appendString('px;width:1000000px;">');const g=L.aC(s),p=L.E_(s),f=I.f.createEmpty(s,n);(0,D.UW)(new D.zL(h.isMonospace&&!r,h.canUseHalfwidthRightwardsArrow,s,!1,g,p,0,f,e.decorations,t,0,h.spaceWidth,h.middotWidth,h.wsmiddotWidth,o,a,l,c!==T.Bc.OFF,null),u),u.appendString("</div>")}u.appendString("</div>"),(0,R.M)(e,h);const g=u.build(),p=V?V.createHTML(g):g;e.innerHTML=p}(i,n,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=s.addZone({afterLineNumber:e,heightInLines:r,domNode:i,afterColumnAffinity:1})}}))}}const V=(0,y.H)("editorGhostText",{createHTML:e=>e});var z=i(64317),G=i(25890),j=i(46041),K=i(51241),Y=i(64383),q=i(7085),$=i(75326),Q=i(75295),X=i(50973),Z=i(62083),J=i(17469),ee=i(26690),te=i(20940),ie=i(83993);function se(e,t,i){const s=i?e.range.intersectRanges(i):e.range;if(!s)return e;const n=t.getValueInRange(s,1),r=(0,L.Qp)(n,e.text),o=X.W.ofText(n.substring(0,r)).addToPosition(e.range.getStartPosition()),a=e.text.substring(r),l=x.Q.fromPositions(o,e.range.getEndPosition());return new Q.WR(l,a)}function ne(e,t){return e.text.startsWith(t.text)&&(i=e.range,(s=t.range).getStartPosition().equals(i.getStartPosition())&&s.getEndPosition().isBeforeOrEqual(i.getEndPosition()));var i,s}function re(e,t,i,s,n=0){let r=se(e,t);if(r.range.endLineNumber!==r.range.startLineNumber)return;const o=t.getLineContent(r.range.startLineNumber),a=(0,L.UU)(o).length;if(r.range.startColumn-1<=a){const e=(0,L.UU)(r.text).length,t=o.substring(r.range.startColumn-1,a),[i,s]=[r.range.getStartPosition(),r.range.getEndPosition()],n=i.column+t.length<=s.column?i.delta(0,t.length):s,l=x.Q.fromPositions(n,s),c=r.text.startsWith(t)?r.text.substring(t.length):r.text.substring(e);r=new Q.WR(l,c)}const l=t.getValueInRange(r.range),c=function(e,t){if(oe?.originalValue===e&&oe?.newValue===t)return oe?.changes;{let i=le(e,t,!0);if(i){const s=ae(i);if(s>0){const n=le(e,t,!1);n&&ae(n)<s&&(i=n)}}return oe={originalValue:e,newValue:t,changes:i},i}}(l,r.text);if(!c)return;const h=r.range.startLineNumber,d=new Array;if("prefix"===i){const e=c.filter((e=>0===e.originalLength));if(e.length>1||1===e.length&&e[0].originalStart!==l.length)return}const u=r.text.length-n;for(const g of c){const e=r.range.startColumn+g.originalStart+g.originalLength;if("subwordSmart"===i&&s&&s.lineNumber===r.range.startLineNumber&&e<s.column)return;if(g.originalLength>0)return;if(0===g.modifiedLength)continue;const t=g.modifiedStart+g.modifiedLength,n=Math.max(g.modifiedStart,Math.min(t,u)),o=r.text.substring(g.modifiedStart,n),a=r.text.substring(n,Math.max(g.modifiedStart,t));o.length>0&&d.push(new M.yP(e,o,!1)),a.length>0&&d.push(new M.yP(e,a,!0))}return new M.xD(h,d)}let oe;function ae(e){let t=0;for(const i of e)t+=i.originalLength;return t}function le(e,t,i){if(e.length>5e3||t.length>5e3)return;function s(e){let t=0;for(let i=0,s=e.length;i<s;i++){const s=e.charCodeAt(i);s>t&&(t=s)}return t}const n=Math.max(s(e),s(t));function r(e){if(e<0)throw new Error("unexpected");return n+e+1}function o(e){let t=0,s=0;const n=new Int32Array(e.length);for(let o=0,a=e.length;o<a;o++)if(i&&"("===e[o]){const e=100*s+t;n[o]=r(2*e),t++}else if(i&&")"===e[o]){t=Math.max(t-1,0);const e=100*s+t;n[o]=r(2*e+1),0===t&&s++}else n[o]=e.charCodeAt(o);return n}const a=o(e),l=o(t);return new ie.uP({getElements:()=>a},{getElements:()=>l}).ComputeDiff(!1).changes}var ce=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},he=function(e,t){return function(i,s){t(i,s,e)}};let de=class extends d.jG{constructor(e,t,i,s,n){super(),this.textModel=e,this.versionId=t,this._debounceValue=i,this.languageFeaturesService=s,this.languageConfigurationService=n,this._updateOperation=this._register(new d.HE),this.inlineCompletions=(0,r.X2)("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=(0,r.X2)("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent((()=>{this._updateOperation.clear()})))}fetch(e,t,i){const s=new ue(e,t,this.textModel.getVersionId()),n=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(this._updateOperation.value?.request.satisfies(s))return this._updateOperation.value.promise;if(n.get()?.request.satisfies(s))return Promise.resolve(!0);const o=!!this._updateOperation.value;this._updateOperation.clear();const a=new p.Qi,l=(async()=>{var l,c;if((o||t.triggerKind===Z.qw.Automatic)&&await(l=this._debounceValue.get(this.textModel),c=a.token,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),l);c&&(t=c.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),a.token.isCancellationRequested||this._store.isDisposed||this.textModel.getVersionId()!==s.versionId)return!1;const h=new Date,d=await(0,te.Yk)(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,a.token,this.languageConfigurationService);if(a.token.isCancellationRequested||this._store.isDisposed||this.textModel.getVersionId()!==s.versionId)return!1;const u=new Date;this._debounceValue.update(this.textModel,u.getTime()-h.getTime());const g=new pe(d,s,this.textModel,this.versionId);if(i){const t=i.toInlineCompletion(void 0);i.canBeReused(this.textModel,e)&&!d.has(t)&&g.prepend(i.inlineCompletion,t.range,!0)}return this._updateOperation.clear(),(0,r.Rn)((e=>{n.set(g,e)})),!0})(),c=new ge(s,a,l);return this._updateOperation.value=c,l}clear(e){this._updateOperation.clear(),this.inlineCompletions.set(void 0,e),this.suggestWidgetInlineCompletions.set(void 0,e)}clearSuggestWidgetInlineCompletions(e){this._updateOperation.value?.request.context.selectedSuggestionInfo&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,e)}cancelUpdate(){this._updateOperation.clear()}};de=ce([he(3,S.ILanguageFeaturesService),he(4,J.JZ)],de);class ue{constructor(e,t,i){this.position=e,this.context=t,this.versionId=i}satisfies(e){return this.position.equals(e.position)&&(0,K.KC)(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,(0,K.r)())&&(e.context.triggerKind===Z.qw.Automatic||this.context.triggerKind===Z.qw.Explicit)&&this.versionId===e.versionId}}class ge{constructor(e,t,i){this.request=e,this.cancellationTokenSource=t,this.promise=i}dispose(){this.cancellationTokenSource.cancel()}}class pe{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,i,s){this.inlineCompletionProviderResult=e,this.request=t,this._textModel=i,this._versionId=s,this._refCount=1,this._prependedInlineCompletionItems=[];const n=i.deltaDecorations([],e.completions.map((e=>({range:e.range,options:{description:"inline-completion-tracking-range"}}))));this._inlineCompletions=e.completions.map(((e,t)=>new me(e,n[t],this._textModel,this._versionId)))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,0===this._refCount){setTimeout((()=>{this._textModel.isDisposed()||this._textModel.deltaDecorations(this._inlineCompletions.map((e=>e.decorationId)),[])}),0),this.inlineCompletionProviderResult.dispose();for(const e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,i){i&&e.source.addRef();const s=this._textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new me(e,s,this._textModel,this._versionId)),this._prependedInlineCompletionItems.push(e)}}class me{get forwardStable(){return this.inlineCompletion.source.inlineCompletions.enableForwardStability??!1}constructor(e,t,i,s){this.inlineCompletion=e,this.decorationId=t,this._textModel=i,this._modelVersion=s,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._updatedRange=(0,r.C)({owner:this,equalsFn:x.Q.equalsRange},(e=>(this._modelVersion.read(e),this._textModel.getDecorationRange(this.decorationId))))}toInlineCompletion(e){return this.inlineCompletion.withRange(this._updatedRange.read(e)??fe)}toSingleTextEdit(e){return new Q.WR(this._updatedRange.read(e)??fe,this.inlineCompletion.insertText)}isVisible(e,t,i){const s=se(this._toFilterTextReplacement(i),e),n=this._updatedRange.read(i);if(!n||!this.inlineCompletion.range.getStartPosition().equals(n.getStartPosition())||t.lineNumber!==s.range.startLineNumber)return!1;const r=e.getValueInRange(s.range,1),o=s.text,a=Math.max(0,t.column-s.range.startColumn);let l=o.substring(0,a),c=o.substring(a),h=r.substring(0,a),d=r.substring(a);const u=e.getLineIndentColumn(s.range.startLineNumber);return s.range.startColumn<=u&&(h=h.trimStart(),0===h.length&&(d=d.trimStart()),l=l.trimStart(),0===l.length&&(c=c.trimStart())),l.startsWith(h)&&!!(0,ee.dE)(d,c)}canBeReused(e,t){const i=this._updatedRange.read(void 0);return!!i&&i.containsPosition(t)&&this.isVisible(e,t,void 0)&&X.W.ofRange(i).isGreaterThanOrEqualTo(X.W.ofRange(this.inlineCompletion.range))}_toFilterTextReplacement(e){return new Q.WR(this._updatedRange.read(e)??fe,this.inlineCompletion.filterText)}}const fe=new x.Q(1,1,1,1);var _e=i(30936),ve=i(50091),Ce=i(63591),be=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ee=function(e,t){return function(i,s){t(i,s,e)}};let Se=class extends d.jG{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(e,t,i,s,n,o,a,l,c,h,d,u){let g;super(),this.textModel=e,this.selectedSuggestItem=t,this._textModelVersionId=i,this._positions=s,this._debounceValue=n,this._suggestPreviewEnabled=o,this._suggestPreviewMode=a,this._inlineSuggestMode=l,this._enabled=c,this._instantiationService=h,this._commandService=d,this._languageConfigurationService=u,this._source=this._register(this._instantiationService.createInstance(de,this.textModel,this._textModelVersionId,this._debounceValue)),this._isActive=(0,r.FY)(this,!1),this._forceUpdateExplicitlySignal=(0,r.Yd)(this),this._selectedInlineCompletionId=(0,r.FY)(this,void 0),this._primaryPosition=(0,r.un)(this,(e=>this._positions.read(e)[0]??new b.y(1,1))),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([ye.Redo,ye.Undo,ye.AcceptWord]),this._fetchInlineCompletionsPromise=(0,r.nb)({owner:this,createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:Z.qw.Automatic}),handleChange:(e,t)=>(e.didChange(this._textModelVersionId)&&this._preserveCurrentCompletionReasons.has(this._getReason(e.change))?t.preserveCurrentCompletion=!0:e.didChange(this._forceUpdateExplicitlySignal)&&(t.inlineCompletionTriggerKind=Z.qw.Explicit),!0)},((e,t)=>{this._forceUpdateExplicitlySignal.read(e);if(!(this._enabled.read(e)&&this.selectedSuggestItem.read(e)||this._isActive.read(e)))return void this._source.cancelUpdate();this._textModelVersionId.read(e);const i=this._source.suggestWidgetInlineCompletions.get(),s=this.selectedSuggestItem.read(e);if(i&&!s){const e=this._source.inlineCompletions.get();(0,r.Rn)((t=>{(!e||i.request.versionId>e.request.versionId)&&this._source.inlineCompletions.set(i.clone(),t),this._source.clearSuggestWidgetInlineCompletions(t)}))}const n=this._primaryPosition.read(e),o={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:s?.toSelectedSuggestionInfo()},a=this.selectedInlineCompletion.get(),l=t.preserveCurrentCompletion||a?.forwardStable?a:void 0;return this._source.fetch(n,o,l)})),this._filteredInlineCompletionItems=(0,r.C)({owner:this,equalsFn:(0,K.S3)()},(e=>{const t=this._source.inlineCompletions.read(e);if(!t)return[];const i=this._primaryPosition.read(e),s=t.inlineCompletions.filter((t=>t.isVisible(this.textModel,i,e)));return s})),this.selectedInlineCompletionIndex=(0,r.un)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineCompletionItems.read(e),s=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===s?(this._selectedInlineCompletionId.set(void 0,void 0),0):s})),this.selectedInlineCompletion=(0,r.un)(this,(e=>this._filteredInlineCompletionItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this.activeCommands=(0,r.C)({owner:this,equalsFn:(0,K.S3)()},(e=>this.selectedInlineCompletion.read(e)?.inlineCompletion.source.inlineCompletions.commands??[])),this.lastTriggerKind=this._source.inlineCompletions.map(this,(e=>e?.request.context.triggerKind)),this.inlineCompletionsCount=(0,r.un)(this,(e=>this.lastTriggerKind.read(e)===Z.qw.Explicit?this._filteredInlineCompletionItems.read(e).length:void 0)),this.state=(0,r.C)({owner:this,equalsFn:(e,t)=>e&&t?(0,M.AL)(e.ghostTexts,t.ghostTexts)&&e.inlineCompletion===t.inlineCompletion&&e.suggestItem===t.suggestItem:e===t},(e=>{const t=this.textModel,i=this.selectedSuggestItem.read(e);if(i){const s=se(i.toSingleTextEdit(),t),n=this._computeAugmentation(s,e);if(!this._suggestPreviewEnabled.read(e)&&!n)return;const r=n?.edit??s,o=n?n.edit.text.length-s.text.length:0,a=this._suggestPreviewMode.read(e),l=this._positions.read(e),c=[r,...we(this.textModel,l,r)],h=c.map(((e,i)=>re(e,t,a,l[i],o))).filter(_.O9);return{edits:c,primaryGhostText:h[0]??new M.xD(r.range.endLineNumber,[]),ghostTexts:h,inlineCompletion:n?.completion,suggestItem:i}}{if(!this._isActive.read(e))return;const i=this.selectedInlineCompletion.read(e);if(!i)return;const s=i.toSingleTextEdit(e),n=this._inlineSuggestMode.read(e),r=this._positions.read(e),o=[s,...we(this.textModel,r,s)],a=o.map(((e,i)=>re(e,t,n,r[i],0))).filter(_.O9);if(!a[0])return;return{edits:o,primaryGhostText:a[0],ghostTexts:a,inlineCompletion:i,suggestItem:void 0}}})),this.ghostTexts=(0,r.C)({owner:this,equalsFn:M.AL},(e=>{const t=this.state.read(e);if(t)return t.ghostTexts})),this.primaryGhostText=(0,r.C)({owner:this,equalsFn:M.x9},(e=>{const t=this.state.read(e);if(t)return t?.primaryGhostText})),this._register((0,r.OI)(this._fetchInlineCompletionsPromise)),this._register((0,r.fm)((e=>{const t=this.state.read(e),i=t?.inlineCompletion;if(i?.semanticId!==g?.semanticId&&(g=i,i)){const e=i.inlineCompletion,t=e.source;t.provider.handleItemDidShow?.(t.inlineCompletions,e.sourceInlineCompletion,e.insertText)}})))}_getReason(e){return e?.isUndoing?ye.Undo:e?.isRedoing?ye.Redo:this.isAcceptingPartially?ye.AcceptWord:ye.Other}async trigger(e){this._isActive.set(!0,e),await this._fetchInlineCompletionsPromise.get()}async triggerExplicitly(e){(0,r.PO)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateExplicitlySignal.trigger(e)})),await this._fetchInlineCompletionsPromise.get()}stop(e){(0,r.PO)(e,(e=>{this._isActive.set(!1,e),this._source.clear(e)}))}_computeAugmentation(e,t){const i=this.textModel,s=this._source.suggestWidgetInlineCompletions.read(t),n=s?s.inlineCompletions:[this.selectedInlineCompletion.read(t)].filter(_.O9);return(0,j.oH)(n,(s=>{let n=s.toSingleTextEdit(t);return n=se(n,i,x.Q.fromPositions(n.range.getStartPosition(),e.range.getEndPosition())),ne(n,e)?{completion:s,edit:n}:void 0}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){if(e.getModel()!==this.textModel)throw new Y.D7;const t=this.state.get();if(!t||t.primaryGhostText.isEmpty()||!t.inlineCompletion)return;const i=t.inlineCompletion.toInlineCompletion(void 0);if(i.command&&i.source.addRef(),e.pushUndoStop(),i.snippetInfo)e.executeEdits("inlineSuggestion.accept",[q.k.replace(i.range,""),...i.additionalTextEdits]),e.setPosition(i.snippetInfo.range.getStartPosition(),"inlineCompletionAccept"),_e.O.get(e)?.insert(i.snippetInfo.snippet,{undoStopBefore:!1});else{const s=t.edits,n=Le(s).map((e=>$.L.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",[...s.map((e=>q.k.replace(e.range,e.text))),...i.additionalTextEdits]),e.setSelections(n,"inlineCompletionAccept")}this.stop(),i.command&&(await this._commandService.executeCommand(i.command.id,...i.command.arguments||[]).then(void 0,Y.M_),i.source.removeRef())}async acceptNextWord(e){await this._acceptNext(e,((e,t)=>{const i=this.textModel.getLanguageIdAtPosition(e.lineNumber,e.column),s=this._languageConfigurationService.getLanguageConfiguration(i),n=new RegExp(s.wordDefinition.source,s.wordDefinition.flags.replace("g","")),r=t.match(n);let o=0;o=r&&void 0!==r.index?0===r.index?r[0].length:r.index:t.length;const a=/\s+/g.exec(t);return a&&void 0!==a.index&&a.index+a[0].length<o&&(o=a.index+a[0].length),o}),0)}async acceptNextLine(e){await this._acceptNext(e,((e,t)=>{const i=t.match(/\n/);return i&&void 0!==i.index?i.index+1:t.length}),1)}async _acceptNext(e,t,i){if(e.getModel()!==this.textModel)throw new Y.D7;const s=this.state.get();if(!s||s.primaryGhostText.isEmpty()||!s.inlineCompletion)return;const n=s.primaryGhostText,r=s.inlineCompletion.toInlineCompletion(void 0);if(r.snippetInfo||r.filterText!==r.insertText)return void await this.accept(e);const o=n.parts[0],a=new b.y(n.lineNumber,o.column),l=o.text,c=t(a,l);if(c===l.length&&1===n.parts.length)return void this.accept(e);const h=l.substring(0,c),d=this._positions.get(),u=d[0];r.source.addRef();try{this._isAcceptingPartially=!0;try{e.pushUndoStop();const t=x.Q.fromPositions(u,a),i=e.getModel().getValueInRange(t)+h,s=new Q.WR(t,i),n=[s,...we(this.textModel,d,s)],r=Le(n).map((e=>$.L.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",n.map((e=>q.k.replace(e.range,e.text)))),e.setSelections(r,"inlineCompletionPartialAccept"),e.revealPositionInCenterIfOutsideViewport(e.getPosition(),1)}finally{this._isAcceptingPartially=!1}if(r.source.provider.handlePartialAccept){const t=x.Q.fromPositions(r.range.getStartPosition(),X.W.ofText(h).addToPosition(a)),s=e.getModel().getValueInRange(t,1);r.source.provider.handlePartialAccept(r.source.inlineCompletions,r.sourceInlineCompletion,s.length,{kind:i})}}finally{r.source.removeRef()}}handleSuggestAccepted(e){const t=se(e.toSingleTextEdit(),this.textModel),i=this._computeAugmentation(t,void 0);if(!i)return;const s=i.completion.inlineCompletion;s.source.provider.handlePartialAccept?.(s.source.inlineCompletions,s.sourceInlineCompletion,t.text.length,{kind:2})}};var ye;function we(e,t,i){if(1===t.length)return[];const s=t[0],n=t.slice(1),r=i.range.getStartPosition(),o=i.range.getEndPosition(),a=e.getValueInRange(x.Q.fromPositions(s,o)),l=(0,P.tN)(s,r);if(l.lineNumber<1)return(0,Y.dz)(new Y.D7(`positionWithinTextEdit line number should be bigger than 0.\n\t\t\tInvalid subtraction between ${s.toString()} and ${r.toString()}`)),[];const c=function(e,t){let i="";const s=(0,L.en)(e);for(let n=t.lineNumber-1;n<s.length;n++)i+=s[n].substring(n===t.lineNumber-1?t.column-1:0);return i}(i.text,l);return n.map((t=>{const i=(0,P.OA)((0,P.tN)(t,r),o),s=e.getValueInRange(x.Q.fromPositions(t,i)),n=(0,L.Qp)(a,s),l=x.Q.fromPositions(t,t.delta(0,n));return new Q.WR(l,c)}))}function Le(e){const t=G.t9.createSortPermutation(e,(0,G.VE)((e=>e.range),x.Q.compareRangesUsingStarts)),i=new Q.mF(t.apply(e)).getNewRanges();return t.inverse().apply(i).map((e=>e.getEndPosition()))}Se=be([Ee(9,Ce._Y),Ee(10,ve.d),Ee(11,J.JZ)],Se),function(e){e[e.Undo=0]="Undo",e[e.Redo=1]="Redo",e[e.AcceptWord=2]="AcceptWord",e[e.Other=3]="Other"}(ye||(ye={}));var Re=i(29319),Te=i(38280),xe=i(90870);class ke extends d.jG{get selectedItem(){return this._currentSuggestItemInfo}constructor(e,t,i){super(),this.editor=e,this.suggestControllerPreselector=t,this.onWillAccept=i,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._onDidSelectedItemChange=this._register(new w.vl),this.onDidSelectedItemChange=this._onDidSelectedItemChange.event,this._register(e.onKeyDown((e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))}))),this._register(e.onKeyUp((e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))})));const s=xe.D.get(this.editor);if(s){this._register(s.registerSelector({priority:100,select:(e,t,i)=>{const n=this.editor.getModel();if(!n)return-1;const r=this.suggestControllerPreselector(),o=r?se(r,n):void 0;if(!o)return-1;const a=b.y.lift(t),l=i.map(((e,t)=>{const i=se(Ae.fromSuggestion(s,n,a,e,this.isShiftKeyPressed).toSingleTextEdit(),n);return{index:t,valid:ne(o,i),prefixLength:i.text.length,suggestItem:e}})).filter((e=>e&&e.valid&&e.prefixLength>0)),c=(0,j.Cn)(l,(0,G.VE)((e=>e.prefixLength),G.U9));return c?c.index:-1}}));let e=!1;const t=()=>{e||(e=!0,this._register(s.widget.value.onDidShow((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))),this._register(s.widget.value.onDidHide((()=>{this.isSuggestWidgetVisible=!1,this.update(!1)}))),this._register(s.widget.value.onDidFocus((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))))};this._register(w.Jh.once(s.model.onDidTrigger)((e=>{t()}))),this._register(s.onWillInsertSuggestItem((e=>{const t=this.editor.getPosition(),i=this.editor.getModel();if(!t||!i)return;const n=Ae.fromSuggestion(s,i,t,e.item,this.isShiftKeyPressed);this.onWillAccept(n)})))}this.update(this._isActive)}update(e){const t=this.getSuggestItemInfo();this._isActive===e&&function(e,t){if(e===t)return!0;if(!e||!t)return!1;return e.equals(t)}(this._currentSuggestItemInfo,t)||(this._isActive=e,this._currentSuggestItemInfo=t,this._onDidSelectedItemChange.fire())}getSuggestItemInfo(){const e=xe.D.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem(),i=this.editor.getPosition(),s=this.editor.getModel();return t&&i&&s?Ae.fromSuggestion(e,s,i,t.item,this.isShiftKeyPressed):void 0}stopForceRenderingAbove(){const e=xe.D.get(this.editor);e?.stopForceRenderingAbove()}forceRenderingAbove(){const e=xe.D.get(this.editor);e?.forceRenderingAbove()}}class Ae{static fromSuggestion(e,t,i,s,n){let{insertText:r}=s.completion,o=!1;if(4&s.completion.insertTextRules){const e=(new Re.fr).parse(r);e.children.length<100&&Te.O.adjustWhitespace(t,i,!0,e),r=e.toString(),o=!0}const a=e.getOverwriteInfo(s,n);return new Ae(x.Q.fromPositions(i.delta(0,-a.overwriteBefore),i.delta(0,Math.max(a.overwriteAfter,0))),r,s.completion.kind,o)}constructor(e,t,i,s){this.range=e,this.insertText=t,this.completionItemKind=i,this.isSnippetText=s}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new Z.GE(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new Q.WR(this.range,this.insertText)}}var Ne,Ie=i(78209),Oe=i(253),De=i(87213),Me=i(84001),Pe=i(32848),Fe=i(98031),Ue=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},He=function(e,t){return function(i,s){t(i,s,e)}};let Be=class extends d.jG{static{Ne=this}static{this.ID="editor.contrib.inlineCompletionsController"}static get(e){return e.getContribution(Ne.ID)}constructor(e,t,i,s,n,o,a,u,E,S){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._configurationService=s,this._commandService=n,this._debounceService=o,this._languageFeaturesService=a,this._accessibilitySignalService=u,this._keybindingService=E,this._accessibilityService=S,this._editorObs=(0,C.Ud)(this.editor),this._positions=(0,r.un)(this,(e=>this._editorObs.selections.read(e)?.map((e=>e.getEndPosition()))??[new b.y(1,1)])),this._suggestWidgetAdaptor=this._register(new ke(this.editor,(()=>(this._editorObs.forceUpdate(),this.model.get()?.selectedInlineCompletion.get()?.toSingleTextEdit(void 0))),(e=>this._editorObs.forceUpdate((t=>{this.model.get()?.handleSuggestAccepted(e)}))))),this._suggestWidgetSelectedItem=(0,r.y0)(this,(e=>this._suggestWidgetAdaptor.onDidSelectedItemChange((()=>{this._editorObs.forceUpdate((t=>e(void 0)))}))),(()=>this._suggestWidgetAdaptor.selectedItem)),this._enabledInConfig=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).enabled)),this._isScreenReaderEnabled=(0,r.y0)(this,this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this._editorDictationInProgress=(0,r.y0)(this,this._contextKeyService.onDidChangeContext,(()=>!0===this._contextKeyService.getContext(this.editor.getDomNode()).getValue("editorDictation.inProgress"))),this._enabled=(0,r.un)(this,(e=>this._enabledInConfig.read(e)&&(!this._isScreenReaderEnabled.read(e)||!this._editorDictationInProgress.read(e)))),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this.model=(0,m.a0)(this,(e=>{if(this._editorObs.isReadonly.read(e))return;const t=this._editorObs.model.read(e);if(!t)return;return this._instantiationService.createInstance(Se,t,this._suggestWidgetSelectedItem,this._editorObs.versionId,this._positions,this._debounceValue,(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(119).preview)),(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(119).previewMode)),(0,r.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).mode)),this._enabled)})).recomputeInitiallyAndOnChange(this._store),this._ghostTexts=(0,r.un)(this,(e=>{const t=this.model.read(e);return t?.ghostTexts.read(e)??[]})),this._stablizedGhostTexts=function(e,t){const i=(0,r.FY)("result",[]),s=[];return t.add((0,r.fm)((t=>{const n=e.read(t);(0,r.Rn)((e=>{if(n.length!==s.length){s.length=n.length;for(let e=0;e<s.length;e++)s[e]||(s[e]=(0,r.FY)("item",n[e]));i.set([...s],e)}s.forEach(((t,i)=>t.set(n[i],e)))}))}))),i}(this._ghostTexts,this._store),this._ghostTextWidgets=(0,f.Rl)(this,this._stablizedGhostTexts,((e,t)=>t.add(this._instantiationService.createInstance(B,this.editor,{ghostText:e,minReservedLineCount:(0,r.lk)(0),targetTextModel:this.model.map((e=>e?.textModel))})))).recomputeInitiallyAndOnChange(this._store),this._playAccessibilitySignal=(0,r.Yd)(this),this._fontFamily=(0,r.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).fontFamily)),this._register(new c.p(this._contextKeyService,this.model)),this._register((0,C.jD)(this._editorObs.onDidType,((e,t)=>{this._enabled.get()&&this.model.get()?.trigger()}))),this._register(this._commandService.onDidExecuteCommand((t=>{new Set([v.Yh.Tab.id,v.Yh.DeleteLeft.id,v.Yh.DeleteRight.id,l.Wt,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&this._enabled.get()&&this._editorObs.forceUpdate((e=>{this.model.get()?.trigger(e)}))}))),this._register((0,C.jD)(this._editorObs.selections,((e,t)=>{t.some((e=>3===e.reason||"api"===e.source))&&this.model.get()?.stop()}))),this._register(this.editor.onDidBlurEditorWidget((()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(62).keepOnBlur||z.bo.dropDownVisible||(0,r.Rn)((e=>{this.model.get()?.stop(e)}))}))),this._register((0,r.fm)((e=>{const t=this.model.read(e)?.state.read(e);t?.suggestItem?t.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register((0,d.s)((()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()})));const y=(0,f.ZX)(this,((e,t)=>{const i=this.model.read(e),s=i?.state.read(e);return this._suggestWidgetSelectedItem.get()?t:s?.inlineCompletion?.semanticId}));this._register((0,C.Qg)((0,r.un)((e=>(this._playAccessibilitySignal.read(e),y.read(e),{}))),(async(e,t,i)=>{const s=this.model.get(),n=s?.state.get();if(!n||!s)return;const o=s.textModel.getLineContent(n.primaryGhostText.lineNumber);await(0,g.wR)(50,(0,p.bs)(i)),await(0,r.oJ)(this._suggestWidgetSelectedItem,_.b0,(()=>!1),(0,p.bs)(i)),await this._accessibilitySignalService.playSignal(De.Rh.inlineSuggestion),this.editor.getOption(8)&&this._provideScreenReaderUpdate(n.primaryGhostText.renderForScreenReader(o))}))),this._register(new z.Pm(this.editor,this.model,this._instantiationService)),this._register(function(e){const t=new d.Cm,i=t.add((0,h.jh)());return t.add((0,r.fm)((t=>{i.setStyle(e.read(t))}))),t}((0,r.un)((e=>{const t=this._fontFamily.read(e);return""===t||"default"===t?"":`\n.monaco-editor .ghost-text-decoration,\n.monaco-editor .ghost-text-decoration-preview,\n.monaco-editor .ghost-text {\n\tfont-family: ${t};\n}`})))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}))),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(e){this._playAccessibilitySignal.trigger(e)}_provideScreenReaderUpdate(e){const t=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),i=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let s;!t&&i&&this.editor.getOption(150)&&(s=(0,Ie.kg)("showAccessibleViewHint","Inspect this in the accessible view ({0})",i.getAriaLabel())),(0,u.xE)(s?e+", "+s:e)}shouldShowHoverAt(e){const t=this.model.get()?.primaryGhostText.get();return!!t&&t.parts.some((i=>e.containsPosition(new b.y(t.lineNumber,i.column))))}shouldShowHoverAtViewZone(e){return this._ghostTextWidgets.get()[0]?.ownsViewZone(e)??!1}};Be=Ne=Ue([He(1,Ce._Y),He(2,Pe.fN),He(3,Me.pG),He(4,ve.d),He(5,E.ILanguageFeatureDebounceService),He(6,S.ILanguageFeaturesService),He(7,De.Nt),He(8,Fe.b),He(9,Oe.j)],Be);var We=i(48116),Ve=i(27195);class ze extends s.ks{static{this.ID=l.PA}constructor(){super({id:ze.ID,label:Ie.kg("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:Pe.M$.and(a.R.writable,c.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}async run(e,t){const i=Be.get(t);i?.model.get()?.next()}}class Ge extends s.ks{static{this.ID=l.Vl}constructor(){super({id:Ge.ID,label:Ie.kg("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:Pe.M$.and(a.R.writable,c.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}async run(e,t){const i=Be.get(t);i?.model.get()?.previous()}}class je extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:Ie.kg("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:a.R.writable})}async run(e,t){const i=Be.get(t);await(0,o.fL)((async e=>{await(i?.model.get()?.triggerExplicitly(e)),i?.playAccessibilitySignal(e)}))}}class Ke extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:Ie.kg("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:Pe.M$.and(a.R.writable,c.p.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:Pe.M$.and(a.R.writable,c.p.inlineSuggestionVisible)},menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("acceptWord","Accept Word"),group:"primary",order:2}]})}async run(e,t){const i=Be.get(t);await(i?.model.get()?.acceptNextWord(i.editor))}}class Ye extends s.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:Ie.kg("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:Pe.M$.and(a.R.writable,c.p.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("acceptLine","Accept Line"),group:"secondary",order:2}]})}async run(e,t){const i=Be.get(t);await(i?.model.get()?.acceptNextLine(i.editor))}}class qe extends s.ks{constructor(){super({id:l.Wt,label:Ie.kg("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:c.p.inlineSuggestionVisible,menuOpts:[{menuId:Ve.D8.InlineSuggestionToolbar,title:Ie.kg("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:Pe.M$.and(c.p.inlineSuggestionVisible,a.R.tabMovesFocus.toNegated(),c.p.inlineSuggestionHasIndentationLessThanTabSize,We.ob.Visible.toNegated(),a.R.hoverFocused.toNegated())}})}async run(e,t){const i=Be.get(t);i&&(i.model.get()?.accept(i.editor),i.editor.focus())}}class $e extends s.ks{static{this.ID="editor.action.inlineSuggest.hide"}constructor(){super({id:$e.ID,label:Ie.kg("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:c.p.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=Be.get(t);(0,r.Rn)((e=>{i?.model.get()?.stop(e)}))}}class Qe extends Ve.L{static{this.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar"}constructor(){super({id:Qe.ID,title:Ie.kg("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:Ve.D8.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:Pe.M$.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(e,t){const i=e.get(Me.pG),s="always"===i.getValue("editor.inlineSuggest.showToolbar")?"onHover":"always";i.updateValue("editor.inlineSuggest.showToolbar",s)}}var Xe=i(16980),Ze=i(20492),Je=i(49099),et=i(90651),tt=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},it=function(e,t){return function(i,s){t(i,s,e)}};class st{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let nt=class{constructor(e,t,i,s,n,r){this._editor=e,this._languageService=t,this._openerService=i,this.accessibilityService=s,this._instantiationService=n,this._telemetryService=r,this.hoverOrdinal=4}suggestHoverAnchor(e){const t=Be.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const s=i.detail;if(t.shouldShowHoverAtViewZone(s.viewZoneId))return new n.mm(1e3,this,x.Q.fromPositions(this._editor.getModel().validatePosition(s.positionBefore||s.position)),e.event.posx,e.event.posy,!1)}if(7===i.type&&t.shouldShowHoverAt(i.range))return new n.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1);if(6===i.type){if(i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range))return new n.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1)}return null}computeSync(e,t){if("onHover"!==this._editor.getOption(62).showToolbar)return[];const i=Be.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new st(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new d.Cm,s=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(8)&&i.add(this.renderScreenReaderText(e,s));const o=s.controller.model.get(),a=this._instantiationService.createInstance(z.bo,this._editor,!1,(0,r.lk)(null),o.selectedInlineCompletionIndex,o.inlineCompletionsCount,o.activeCommands),l=a.getDomNode();e.fragment.appendChild(l),o.triggerExplicitly(),i.add(a);const c={hoverPart:s,hoverElement:l,dispose(){i.dispose()}};return new n.Ke([c])}renderScreenReaderText(e,t){const i=new d.Cm,s=h.$,n=s("div.hover-row.markdown-hover"),o=h.BC(n,s("div.hover-contents",{"aria-live":"assertive"})),a=i.add(new Ze.T({editor:this._editor},this._languageService,this._openerService));return i.add((0,r.fm)((s=>{const n=t.controller.model.read(s)?.primaryGhostText.read(s);if(n){const t=this._editor.getModel().getLineContent(n.lineNumber);(t=>{i.add(a.onDidRenderAsync((()=>{o.className="hover-contents code-hover-contents",e.onContentsChanged()})));const s=Ie.kg("inlineSuggestionFollows","Suggestion:"),n=i.add(a.render((new Xe.Bc).appendText(s).appendCodeblock("text",t)));o.replaceChildren(n.element)})(n.renderForScreenReader(t))}else h.Ln(o)}))),e.fragment.appendChild(n),i}};nt=tt([it(1,A.L),it(2,Je.C),it(3,Oe.j),it(4,Ce._Y),it(5,et.k)],nt);var rt=i(96282);(0,s.HW)(Be.ID,Be,3),(0,s.Fl)(je),(0,s.Fl)(ze),(0,s.Fl)(Ge),(0,s.Fl)(Ke),(0,s.Fl)(Ye),(0,s.Fl)(qe),(0,s.Fl)($e),(0,Ve.ug)(Qe),n.B2.register(nt),rt.Z.register(new class{})},92674:(e,t,i)=>{"use strict";i.d(t,{AL:()=>d,Vs:()=>h,x9:()=>u,xD:()=>l,yP:()=>c});var s=i(25890),n=i(91508),r=i(83069),o=i(36677),a=i(75295);class l{constructor(e,t){this.lineNumber=e,this.parts=t}equals(e){return this.lineNumber===e.lineNumber&&this.parts.length===e.parts.length&&this.parts.every(((t,i)=>t.equals(e.parts[i])))}renderForScreenReader(e){if(0===this.parts.length)return"";const t=this.parts[this.parts.length-1],i=e.substr(0,t.column-1);return new a.mF([...this.parts.map((e=>new a.WR(o.Q.fromPositions(new r.y(1,e.column)),e.lines.join("\n"))))]).applyToString(i).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every((e=>0===e.lines.length))}get lineCount(){return 1+this.parts.reduce(((e,t)=>e+t.lines.length-1),0)}}class c{constructor(e,t,i){this.column=e,this.text=t,this.preview=i,this.lines=(0,n.uz)(this.text)}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every(((t,i)=>t===e.lines[i]))}}class h{constructor(e,t,i,s=0){this.lineNumber=e,this.columnRange=t,this.text=i,this.additionalReservedLineCount=s,this.parts=[new c(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=(0,n.uz)(this.text)}renderForScreenReader(e){return this.newLines.join("\n")}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every((e=>0===e.lines.length))}equals(e){return this.lineNumber===e.lineNumber&&this.columnRange.equals(e.columnRange)&&this.newLines.length===e.newLines.length&&this.newLines.every(((t,i)=>t===e.newLines[i]))&&this.additionalReservedLineCount===e.additionalReservedLineCount}}function d(e,t){return(0,s.aI)(e,t,u)}function u(e,t){return e===t||!(!e||!t)&&((e instanceof l&&t instanceof l||e instanceof h&&t instanceof h)&&e.equals(t))}},20940:(e,t,i)=>{"use strict";i.d(t,{Yk:()=>C});var s=i(66782),n=i(90766),r=i(18447),o=i(74320),a=i(64383),l=i(83069),c=i(36677),h=i(93630),d=i(19131),u=i(19562),g=i(32956),p=i(51934);class m{constructor(e){this.lines=e,this.tokenization={getLineTokens:e=>this.lines[e-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}var f=i(75295),_=i(73401),v=i(29319);async function C(e,t,i,s,h=r.XO.None,d){const u=t instanceof l.y?function(e,t){const i=t.getWordAtPosition(e),s=t.getLineMaxColumn(e.lineNumber);return i?new c.Q(e.lineNumber,i.startColumn,e.lineNumber,s):c.Q.fromPositions(e,e.with(void 0,s))}(t,i):t,g=e.all(i),p=new o.db;for(const n of g)n.groupId&&p.add(n.groupId,n);function m(e){if(!e.yieldsToGroupIds)return[];const t=[];for(const i of e.yieldsToGroupIds||[]){const e=p.get(i);for(const i of e)t.push(i)}return t}const f=new Map,_=new Set;function v(e,t){if(t=[...t,e],_.has(e))return t;_.add(e);try{const i=m(e);for(const e of i){const i=v(e,t);if(i)return i}}finally{_.delete(e)}}function C(e){const r=f.get(e);if(r)return r;const o=v(e,[]);o&&(0,a.M_)(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${o.map((e=>e.toString?e.toString():""+e)).join(" -> ")}`));const c=new n.Zv;return f.set(e,c.p),(async()=>{if(!o){const t=m(e);for(const e of t){const t=await C(e);if(t&&t.items.length>0)return}}try{if(t instanceof l.y){return await e.provideInlineCompletions(i,t,s,h)}return await(e.provideInlineEdits?.(i,t,s,h))}catch(n){return void(0,a.M_)(n)}})().then((e=>c.complete(e)),(e=>c.error(e))),c.p}const y=await Promise.all(g.map((async e=>({provider:e,completions:await C(e)})))),w=new Map,L=[];for(const n of y){const e=n.completions;if(!e)continue;const t=new E(e,n.provider);L.push(t);for(const s of e.items){const e=S.from(s,t,u,i,d);w.set(e.hash(),e)}}return new b(Array.from(w.values()),new Set(w.keys()),L)}class b{constructor(e,t,i){this.completions=e,this.hashs=t,this.providerResults=i}has(e){return this.hashs.has(e.hash())}dispose(){for(const e of this.providerResults)e.removeRef()}}class E{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,0===this.refCount&&this.provider.freeInlineCompletions(this.inlineCompletions)}}class S{static from(e,t,i,n,r){let o,a,l=e.range?c.Q.lift(e.range):i;if("string"===typeof e.insertText){if(o=e.insertText,r&&e.completeBracketPairs){o=y(o,l.getStartPosition(),n,r);const t=o.length-e.insertText.length;0!==t&&(l=new c.Q(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+t))}a=void 0}else if("snippet"in e.insertText){const t=e.insertText.snippet.length;if(r&&e.completeBracketPairs){e.insertText.snippet=y(e.insertText.snippet,l.getStartPosition(),n,r);const i=e.insertText.snippet.length-t;0!==i&&(l=new c.Q(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+i))}const i=(new v.fr).parse(e.insertText.snippet);1===i.children.length&&i.children[0]instanceof v.EY?(o=i.children[0].value,a=void 0):(o=i.toString(),a={snippet:e.insertText.snippet,range:l})}else(0,s.xb)(e.insertText);return new S(o,e.command,l,o,a,e.additionalTextEdits||(0,_.zk)(),e,t)}constructor(e,t,i,s,n,r,o,a){this.filterText=e,this.command=t,this.range=i,this.insertText=s,this.snippetInfo=n,this.additionalTextEdits=r,this.sourceInlineCompletion=o,this.source=a,s=(e=e.replace(/\r\n|\r/g,"\n")).replace(/\r\n|\r/g,"\n")}withRange(e){return new S(this.filterText,this.command,e,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}toSingleTextEdit(){return new f.WR(this.range,this.insertText)}}function y(e,t,i,s){const n=i.getLineContent(t.lineNumber).substring(0,t.column-1)+e,r=i.tokenization.tokenizeLineWithEdit(t,n.length-(t.column-1),e),o=r?.sliceAndInflate(t.column-1,n.length,0);if(!o)return e;const a=function(e,t){const i=new g.Mg,s=new h.Z(i,(e=>t.getLanguageConfiguration(e))),n=new p.tk(new m([e]),s),r=(0,u.T)(n,[],void 0,!0);let o="";const a=e.getLineContent();return function e(t,i){if(2===t.kind)if(e(t.openingBracket,i),i=(0,d.QB)(i,t.openingBracket.length),t.child&&(e(t.child,i),i=(0,d.QB)(i,t.child.length)),t.closingBracket)e(t.closingBracket,i),i=(0,d.QB)(i,t.closingBracket.length);else{const e=s.getSingleLanguageBracketTokens(t.openingBracket.languageId).findClosingTokenText(t.openingBracket.bracketIds);o+=e}else if(3===t.kind);else if(0===t.kind||1===t.kind)o+=a.substring((0,d.sS)(i),(0,d.sS)((0,d.QB)(i,t.length)));else if(4===t.kind)for(const s of t.children)e(s,i),i=(0,d.QB)(i,s.length)}(r,d.Vp),o}(o,s);return a}},73401:(e,t,i)=>{"use strict";i.d(t,{GM:()=>h,OA:()=>u,pY:()=>d,tN:()=>g,zk:()=>c});var s=i(64383),n=i(5662),r=i(31308),o=i(83069),a=i(36677);const l=[];function c(){return l}class h{constructor(e,t){if(this.startColumn=e,this.endColumnExclusive=t,e>t)throw new s.D7(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new a.Q(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}function d(e,t){const i=new n.Cm,s=e.createDecorationsCollection();return i.add((0,r.zL)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);s.set(i)}))),i.add({dispose:()=>{s.clear()}}),i}function u(e,t){return new o.y(e.lineNumber+t.lineNumber-1,1===t.lineNumber?e.column+t.column-1:t.column)}function g(e,t){return new o.y(e.lineNumber-t.lineNumber+1,e.lineNumber-t.lineNumber===0?e.column-t.column+1:e.column)}},58145:(e,t,i)=>{"use strict";var s=i(31450),n=i(60002);var r=i(5662),o=i(31308),a=i(7085),l=i(83069),c=i(36677),h=i(10154),d=i(16223),u=i(25521),g=i(73401),p=i(10691),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};const _="inline-edit";let v=class extends r.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,o.FY)(this,!1),this.currentTextModel=(0,o.y0)(this,this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,o.un)(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;let s=this.model.range?.read(e);s&&s.startLineNumber===s.endLineNumber&&s.startColumn===s.endColumn&&(s=void 0);const n=(!s||s.startLineNumber===s.endLineNumber)&&1===i.parts.length&&1===i.parts[0].lines.length,r=1===i.parts.length&&i.parts[0].lines.every((e=>0===e.length)),o=[],a=[];function l(e,t){if(a.length>0){const i=a[a.length-1];t&&i.decorations.push(new u.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)a.push({content:i,decorations:t?[new u.d(1,i.length+1,t,0)]:[]})}const c=t.getLineContent(i.lineNumber);let h,d=0;if(!r&&(n||!s)){for(const e of i.parts){let t=e.lines;s&&!n&&(l(t,_),t=[]),void 0===h?(o.push({column:e.column,text:t[0],preview:e.preview}),t=t.slice(1)):l([c.substring(d,e.column-1)],void 0),t.length>0&&(l(t,_),void 0===h&&e.column<=c.length&&(h=e.column)),d=e.column-1}void 0!==h&&l([c.substring(d)],void 0)}const p=void 0!==h?new g.GM(h,c.length+1):void 0,m=n||!s?i.lineNumber:s.endLineNumber-1;return{inlineTexts:o,additionalLines:a,hiddenRange:p,lineNumber:m,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t,range:s,isSingleLine:n,isPureRemove:r}})),this.decorations=(0,o.un)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];if(t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"inline-edit-hidden",description:"inline-edit-hidden"}}),t.range){const e=[];if(t.isSingleLine)e.push(t.range);else if(!t.isPureRemove){const i=t.range.endLineNumber-t.range.startLineNumber;for(let s=0;s<i;s++){const i=t.range.startLineNumber+s,n=t.targetTextModel.getLineFirstNonWhitespaceColumn(i),r=t.targetTextModel.getLineLastNonWhitespaceColumn(i),o=new c.Q(i,n,i,r);e.push(o)}}for(const t of e)i.push({range:t,options:p.Zb})}if(t.range&&!t.isSingleLine&&t.isPureRemove){const e=new c.Q(t.range.startLineNumber,1,t.range.endLineNumber-1,1);i.push({range:e,options:p.Ob})}for(const s of t.inlineTexts)i.push({range:c.Q.fromPositions(new l.y(t.lineNumber,s.column)),options:{description:_,after:{content:s.text,inlineClassName:s.preview?"inline-edit-decoration-preview":"inline-edit-decoration",cursorStops:d.VW.Left},showIfCollapsed:!0}});return i})),this._register((0,r.s)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,g.pY)(this.editor,this.decorations))}};v=m([f(2,h.L)],v);var C,b=i(32848),E=i(63591),S=i(62083),y=i(56942),w=i(18447),L=i(92674),R=i(50091),T=i(8597),x=i(47625),k=i(36921),A=i(25890),N=i(98067),I=i(57629),O=i(65644),D=i(27195),M=i(47508),P=i(98031),F=i(90651),U=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},H=function(e,t){return function(i,s){t(i,s,e)}};let B=class extends r.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(63).showToolbar)),this.sessionPosition=void 0,this.position=(0,o.un)(this,(e=>{const t=this.model.read(e)?.model.ghostText.read(e);if(!this.alwaysShowToolbar.read(e)||!t||0===t.parts.length)return this.sessionPosition=void 0,null;const i=t.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==t.lineNumber&&(this.sessionPosition=void 0);const s=new l.y(t.lineNumber,Math.min(i,this.sessionPosition?.column??Number.MAX_SAFE_INTEGER));return this.sessionPosition=s,s})),this._register((0,o.yC)(((t,i)=>{if(!this.model.read(t)||!this.alwaysShowToolbar.read(t))return;const s=i.add(this.instantiationService.createInstance(W,this.editor,!0,this.position));e.addContentWidget(s),i.add((0,r.s)((()=>e.removeContentWidget(s))))})))}};B=U([H(2,E._Y)],B);let W=class extends r.jG{static{C=this}static{this._dropDownVisible=!1}static{this.id=0}constructor(e,t,i,s,n,r){super(),this.editor=e,this.withBorder=t,this._position=i,this._contextKeyService=n,this._menuService=r,this.id="InlineEditHintsContentWidget"+C.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,T.h)("div.inlineEditHints",{className:this.withBorder?".withBorder":""},[(0,T.h)("div@toolBar")]),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(D.D8.InlineEditActions,this._contextKeyService)),this.toolBar=this._register(s.createInstance(z,this.nodes.toolBar,this.editor,D.D8.InlineEditToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof D.Xe)return s.createInstance(V,e,void 0)},telemetrySource:"InlineEditToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{C._dropDownVisible=e}))),this._register((0,o.fm)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,o.fm)((e=>{const t=[];for(const[i,s]of this.inlineCompletionsActionsMenus.getActions())for(const e of s)e instanceof D.Xe&&t.push(e);t.length>0&&t.unshift(new k.wv),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};W=C=U([H(3,E._Y),H(4,b.fN),H(5,D.ez)],W);class V extends I.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,T.h)("div.keybinding").root;this._register(new x.x(t,N.OS,{disableTitle:!0,...x.l})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineEditStatusBarItemLabel")}}updateTooltip(){}}let z=class extends O.p{constructor(e,t,i,s,n,r,o,a,l,c){super(e,{resetMenu:i,...s},n,r,o,a,l,c),this.editor=t,this.menuId=i,this.options2=s,this.menuService=n,this.contextKeyService=r,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this._store.add(this.editor.onDidChangeCursorPosition((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){const e=[],t=[];(0,I.Ot)(this.menu,this.options2?.menuOptions,{primary:e,secondary:t},this.options2?.toolbarOptions?.primaryGroup,this.options2?.toolbarOptions?.shouldInlineSubmenu,this.options2?.toolbarOptions?.useSeparatorsInPrimaryActions),t.push(...this.additionalActions),e.unshift(...this.prependedPrimaryActions),this.setActions(e,t)}setAdditionalSecondaryActions(e){(0,A.aI)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};z=U([H(4,D.ez),H(5,b.fN),H(6,M.Z),H(7,P.b),H(8,R.d),H(9,F.k)],z);var G,j,K=i(84001),Y=i(64383),q=i(87958),$=i(79400),Q=i(38844),X=i(29163),Z=i(94746),J=i(83941),ee=i(87289),te=i(23750),ie=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},se=function(e,t){return function(i,s){t(i,s,e)}};function ne(e){const t=e[0].match(/^\s*/)?.[0]??"",i=t.length;return{text:e.map((e=>e.replace(new RegExp("^"+t),""))),shift:i}}let re=class extends r.jG{static{G=this}static{this._modelId=0}static _createUniqueUri(){return $.r.from({scheme:"inline-edit-widget",path:(new Date).toString()+String(G._modelId++)})}constructor(e,t,i,s,n){super(),this._editor=e,this._model=t,this._instantiationService=i,this._diffProviderFactoryService=s,this._modelService=n,this._position=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t||0===t.text.length)return null;if(t.range.startLineNumber===t.range.endLineNumber&&(t.range.startColumn!==t.range.endColumn||1!==t.range.startColumn))return null;const i=this._editor.getModel();if(!i)return null;const s=Array.from(function*(e,t,i=1){void 0===t&&([t,e]=[e,0]);for(let s=e;s<t;s+=i)yield s}(t.range.startLineNumber,t.range.endLineNumber+1)),n=s.map((e=>i.getLineLastNonWhitespaceColumn(e))),r=Math.max(...n),o=s[n.indexOf(r)],a=new l.y(o,r);return{top:t.range.startLineNumber,left:a}})),this._text=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t)return{text:"",shift:0};const i=ne(t.text.split("\n"));return{text:i.text.join("\n"),shift:i.shift}})),this._originalModel=(0,q.a0)((()=>this._modelService.createModel("",null,G._createUniqueUri()))).keepObserved(this._store),this._modifiedModel=(0,q.a0)((()=>this._modelService.createModel("",null,G._createUniqueUri()))).keepObserved(this._store),this._diff=(0,o.un)(this,(e=>this._diffPromise.read(e)?.promiseResult.read(e)?.data)),this._diffPromise=(0,o.un)(this,(e=>{const t=this._model.read(e);if(!t)return;const i=this._editor.getModel();if(!i)return;const s=ne(i.getValueInRange(t.range).split("\n")).text.join("\n"),n=ne(t.text.split("\n")).text.join("\n");this._originalModel.get().setValue(s),this._modifiedModel.get().setValue(n);const r=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:"advanced"});return o.BK.fromFn((async()=>{const e=await r.computeDiff(this._originalModel.get(),this._modifiedModel.get(),{computeMoves:!1,ignoreTrimWhitespace:!1,maxComputationTimeMs:1e3},w.XO.None);if(!e.identical)return e.changes}))})),this._register((0,o.yC)(((t,i)=>{if(!this._model.read(t))return;if(null===this._position.get())return;const s=i.add(this._instantiationService.createInstance(oe,this._editor,this._position,this._text.map((e=>e.text)),this._text.map((e=>e.shift)),this._diff));e.addOverlayWidget(s),i.add((0,r.s)((()=>e.removeOverlayWidget(s))))})))}};re=G=ie([se(2,E._Y),se(3,Z.Hg),se(4,te.IModelService)],re);let oe=class extends r.jG{static{j=this}static{this.id=0}constructor(e,t,i,s,n,r){super(),this._editor=e,this._position=t,this._text=i,this._shift=s,this._diff=n,this._instantiationService=r,this.id="InlineEditSideBySideContentWidget"+j.id++,this.allowEditorOverflow=!1,this._nodes=(0,T.$)("div.inlineEditSideBySide",void 0),this._scrollChanged=(0,o.yQ)("editor.onDidScrollChange",this._editor.onDidScrollChange),this._previewEditor=this._register(this._instantiationService.createInstance(X.t,this._nodes,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0,scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1,handleMouseWheel:!1},readOnly:!0,wordWrap:"off",wordWrapOverride1:"off",wordWrapOverride2:"off",wrappingIndent:"none",wrappingStrategy:void 0},{contributions:[],isSimpleWidget:!0},this._editor)),this._previewEditorObs=(0,Q.Ud)(this._previewEditor),this._editorObs=(0,Q.Ud)(this._editor),this._previewTextModel=this._register(this._instantiationService.createInstance(ee.Bz,"",this._editor.getModel()?.getLanguageId()??J.vH,ee.Bz.DEFAULT_CREATION_OPTIONS,null)),this._setText=(0,o.un)((e=>{const t=this._text.read(e);t&&this._previewTextModel.setValue(t)})).recomputeInitiallyAndOnChange(this._store),this._decorations=(0,o.un)(this,(e=>{this._setText.read(e);const t=this._position.read(e);if(!t)return{org:[],mod:[]};const i=this._diff.read(e);if(!i)return{org:[],mod:[]};const s=[],n=[];if(1===i.length&&i[0].innerChanges[0].modifiedRange.equalsRange(this._previewTextModel.getFullModelRange()))return{org:[],mod:[]};const r=this._shift.get(),o=e=>new c.Q(e.startLineNumber+t.top-1,e.startColumn+r,e.endLineNumber+t.top-1,e.endColumn+r);for(const a of i)if(a.original.isEmpty||s.push({range:o(a.original.toInclusiveRange()),options:p.Ob}),a.modified.isEmpty||n.push({range:a.modified.toInclusiveRange(),options:p.Kl}),a.modified.isEmpty||a.original.isEmpty)a.original.isEmpty||s.push({range:o(a.original.toInclusiveRange()),options:p.KL}),a.modified.isEmpty||n.push({range:a.modified.toInclusiveRange(),options:p.Ou});else for(const e of a.innerChanges||[])a.original.contains(e.originalRange.startLineNumber)&&s.push({range:o(e.originalRange),options:e.originalRange.isEmpty()?p.wp:p.Zb}),a.modified.contains(e.modifiedRange.startLineNumber)&&n.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()?p.GM:p.bk});return{org:s,mod:n}})),this._originalDecorations=(0,o.un)(this,(e=>this._decorations.read(e).org)),this._modifiedDecorations=(0,o.un)(this,(e=>this._decorations.read(e).mod)),this._previewEditor.setModel(this._previewTextModel),this._register(this._editorObs.setDecorations(this._originalDecorations)),this._register(this._previewEditorObs.setDecorations(this._modifiedDecorations)),this._register((0,o.fm)((e=>{const t=this._previewEditorObs.contentWidth.read(e),i=this._text.read(e).split("\n").length-1,s=this._editor.getOption(67)*i;t<=0||this._previewEditor.layout({height:s,width:t})}))),this._register((0,o.fm)((e=>{this._position.read(e),this._editor.layoutOverlayWidget(this)}))),this._register((0,o.fm)((e=>{this._scrollChanged.read(e);this._position.read(e)&&this._editor.layoutOverlayWidget(this)})))}getId(){return this.id}getDomNode(){return this._nodes}getPosition(){const e=this._position.get();if(!e)return null;const t=this._editor.getLayoutInfo(),i=this._editor.getScrolledVisiblePosition(new l.y(e.top,1));if(!i)return null;const s=i.top-1,n=this._editor.getOffsetForColumn(e.left.lineNumber,e.left.column);return{preference:{left:t.contentLeft+n+10,top:s}}}};oe=j=ie([se(5,E._Y)],oe);var ae,le=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ce=function(e,t){return function(i,s){t(i,s,e)}};let he=class extends r.jG{static{ae=this}static{this.ID="editor.contrib.inlineEditController"}static{this.inlineEditVisibleKey="inlineEditVisible"}static{this.inlineEditVisibleContext=new b.N1(this.inlineEditVisibleKey,!1)}static{this.cursorAtInlineEditKey="cursorAtInlineEdit"}static{this.cursorAtInlineEditContext=new b.N1(this.cursorAtInlineEditKey,!1)}static get(e){return e.getContribution(ae.ID)}constructor(e,t,i,s,n,r,a,l){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.languageFeaturesService=s,this._commandService=n,this._configurationService=r,this._diffProviderFactoryService=a,this._modelService=l,this._isVisibleContext=ae.inlineEditVisibleContext.bindTo(this.contextKeyService),this._isCursorAtInlineEditContext=ae.cursorAtInlineEditContext.bindTo(this.contextKeyService),this._currentEdit=(0,o.FY)(this,void 0),this._currentWidget=(0,q.a0)(this._currentEdit,(e=>{const t=this._currentEdit.read(e);if(!t)return;const i=t.range.endLineNumber,s=t.range.endColumn,n=!t.text.endsWith("\n")||t.range.startLineNumber===t.range.endLineNumber&&t.range.startColumn===t.range.endColumn?t.text:t.text.slice(0,-1),r=new L.xD(i,[new L.yP(s,n,!1)]),a=t.range.startLineNumber===t.range.endLineNumber&&1===r.parts.length&&1===r.parts[0].lines.length,l=""===t.text;if(!a&&!l)return;return this.instantiationService.createInstance(v,this.editor,{ghostText:(0,o.lk)(r),minReservedLineCount:(0,o.lk)(0),targetTextModel:(0,o.lk)(this.editor.getModel()??void 0),range:(0,o.lk)(t.range)})})),this._isAccepting=(0,o.FY)(this,!1),this._enabled=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).enabled)),this._fontFamily=(0,o.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).fontFamily));const c=(0,o.yQ)("InlineEditController.modelContentChangedSignal",e.onDidChangeModelContent);this._register((0,o.fm)((t=>{this._enabled.read(t)&&(c.read(t),this._isAccepting.read(t)||this.getInlineEdit(e,!0))})));const h=(0,o.y0)(this,e.onDidChangeCursorPosition,(()=>e.getPosition()));this._register((0,o.fm)((e=>{if(!this._enabled.read(e))return;const t=h.read(e);t&&this.checkCursorPosition(t)}))),this._register((0,o.fm)((t=>{const i=this._currentEdit.read(t);if(this._isCursorAtInlineEditContext.set(!1),!i)return void this._isVisibleContext.set(!1);this._isVisibleContext.set(!0);const s=e.getPosition();s&&this.checkCursorPosition(s)})));const d=(0,o.yQ)("InlineEditController.editorBlurSignal",e.onDidBlurEditorWidget);this._register((0,o.fm)((async t=>{this._enabled.read(t)&&(d.read(t),this._configurationService.getValue("editor.experimentalInlineEdit.keepOnBlur")||e.getOption(63).keepOnBlur||(this._currentRequestCts?.dispose(!0),this._currentRequestCts=void 0,await this.clear(!1)))})));const u=(0,o.yQ)("InlineEditController.editorFocusSignal",e.onDidFocusEditorText);this._register((0,o.fm)((t=>{this._enabled.read(t)&&(u.read(t),this.getInlineEdit(e,!0))})));const g=this._register((0,T.jh)());this._register((0,o.fm)((e=>{const t=this._fontFamily.read(e);g.setStyle(""===t||"default"===t?"":`\n.monaco-editor .inline-edit-decoration,\n.monaco-editor .inline-edit-decoration-preview,\n.monaco-editor .inline-edit {\n\tfont-family: ${t};\n}`)}))),this._register(new B(this.editor,this._currentWidget,this.instantiationService)),this._register(new re(this.editor,this._currentEdit,this.instantiationService,this._diffProviderFactoryService,this._modelService))}checkCursorPosition(e){if(!this._currentEdit)return void this._isCursorAtInlineEditContext.set(!1);const t=this._currentEdit.get();t?this._isCursorAtInlineEditContext.set(c.Q.containsPosition(t.range,e)):this._isCursorAtInlineEditContext.set(!1)}validateInlineEdit(e,t){if(t.text.includes("\n")&&t.range.startLineNumber!==t.range.endLineNumber&&t.range.startColumn!==t.range.endColumn){if(1!==t.range.startColumn)return!1;const i=t.range.endLineNumber;if(t.range.endColumn!==(e.getModel()?.getLineLength(i)??0)+1)return!1}return!0}async fetchInlineEdit(e,t){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const i=e.getModel();if(!i)return;const s=i.getVersionId(),n=this.languageFeaturesService.inlineEditProvider.all(i);if(0===n.length)return;const r=n[0];this._currentRequestCts=new w.Qi;const o=this._currentRequestCts.token,a=t?S.sm.Automatic:S.sm.Invoke;var l,c;if(t&&await(l=50,c=o,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),l);c&&(t=c.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),o.isCancellationRequested||i.isDisposed()||i.getVersionId()!==s)return;const h=await r.provideInlineEdit(i,{triggerKind:a},o);return h&&!o.isCancellationRequested&&!i.isDisposed()&&i.getVersionId()===s&&this.validateInlineEdit(e,h)?h:void 0}async getInlineEdit(e,t){this._isCursorAtInlineEditContext.set(!1),await this.clear();const i=await this.fetchInlineEdit(e,t);i&&this._currentEdit.set(i,void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){this._isAccepting.set(!0,void 0);const e=this._currentEdit.get();if(!e)return;let t=e.text;e.text.startsWith("\n")&&(t=e.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[a.k.replace(c.Q.lift(e.range),t)]),e.accepted&&await this._commandService.executeCommand(e.accepted.id,...e.accepted.arguments||[]).then(void 0,Y.M_),this.freeEdit(e),(0,o.Rn)((e=>{this._currentEdit.set(void 0,e),this._isAccepting.set(!1,e)}))}jumpToCurrent(){this._jumpBackPosition=this.editor.getSelection()?.getStartPosition();const e=this._currentEdit.get();if(!e)return;const t=l.y.lift({lineNumber:e.range.startLineNumber,column:e.range.startColumn});this.editor.setPosition(t),this.editor.revealPositionInCenterIfOutsideViewport(t)}async clear(e=!0){const t=this._currentEdit.get();t&&t?.rejected&&e&&await this._commandService.executeCommand(t.rejected.id,...t.rejected.arguments||[]).then(void 0,Y.M_),t&&this.freeEdit(t),this._currentEdit.set(void 0,void 0)}freeEdit(e){const t=this.editor.getModel();if(!t)return;const i=this.languageFeaturesService.inlineEditProvider.all(t);0!==i.length&&i[0].freeInlineEdit(e)}};he=ae=le([ce(1,E._Y),ce(2,b.fN),ce(3,y.ILanguageFeaturesService),ce(4,R.d),ce(5,K.pG),ce(6,Z.Hg),ce(7,te.IModelService)],he);class de extends s.ks{constructor(){super({id:"editor.action.inlineEdit.accept",label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:b.M$.and(n.R.writable,he.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:b.M$.and(n.R.writable,he.inlineEditVisibleContext,he.cursorAtInlineEditContext)}],menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(e,t){const i=he.get(t);await(i?.accept())}}class ue extends s.ks{constructor(){const e=b.M$.and(n.R.writable,b.M$.not(he.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e}})}async run(e,t){const i=he.get(t);i?.trigger()}}class ge extends s.ks{constructor(){const e=b.M$.and(n.R.writable,he.inlineEditVisibleContext,b.M$.not(he.cursorAtInlineEditKey));super({id:"editor.action.inlineEdit.jumpTo",label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:e}]})}async run(e,t){const i=he.get(t);i?.jumpToCurrent()}}class pe extends s.ks{constructor(){const e=b.M$.and(n.R.writable,he.cursorAtInlineEditContext);super({id:"editor.action.inlineEdit.jumpBack",label:"Jump Back from Inline Edit",alias:"Jump Back from Inline Edit",precondition:e,kbOpts:{weight:110,primary:2646,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Jump Back",group:"primary",order:3,when:e}]})}async run(e,t){const i=he.get(t);i?.jumpBack()}}class me extends s.ks{constructor(){const e=b.M$.and(n.R.writable,he.inlineEditVisibleContext);super({id:"editor.action.inlineEdit.reject",label:"Reject Inline Edit",alias:"Reject Inline Edit",precondition:e,kbOpts:{weight:100,primary:9,kbExpr:e},menuOpts:[{menuId:D.D8.InlineEditToolbar,title:"Reject",group:"secondary",order:2}]})}async run(e,t){const i=he.get(t);await(i?.clear())}}(0,s.Fl)(de),(0,s.Fl)(me),(0,s.Fl)(ge),(0,s.Fl)(pe),(0,s.Fl)(ue),(0,s.HW)(he.ID,he,3)},40677:(e,t,i)=>{"use strict";var s=i(31450),n=i(10350),r=i(31308),o=i(49154),a=i(29163),l=i(60002),c=i(78209),h=i(32848);const d=new h.N1("inlineEditsVisible",!1,(0,c.kg)("inlineEditsVisible","Whether an inline edit is visible")),u=new h.N1("inlineEditsIsPinned",!1,(0,c.kg)("isPinned","Whether an inline edit is visible"));var g=i(5662),p=i(87958),m=i(38844),f=i(41127),_=i(75326),v=i(32500),C=i(56942),b=i(90766),E=i(18447),S=i(51241),y=i(64383),w=i(79400),L=i(94746),R=i(86571),T=i(62083),x=i(23750),k=i(20940),A=i(8597),N=i(49435),I=i(10691),O=i(92368),D=i(83941),M=i(87289),P=i(18864),F=i(1098),U=i(90870),H=i(63591),B=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},W=function(e,t){return function(i,s){t(i,s,e)}};class V{constructor(e,t,i){this.range=e,this.newLines=t,this.changes=i}}let z=class extends g.jG{constructor(e,t,i,n){super(),this._editor=e,this._edit=t,this._userPrompt=i,this._instantiationService=n,this._editorObs=(0,m.Ud)(this._editor),this._elements=(0,A.h)("div.inline-edits-widget",{style:{position:"absolute",overflow:"visible",top:"0px",left:"0px"}},[(0,A.h)("div@editorContainer",{style:{position:"absolute",top:"0px",left:"0px",width:"500px",height:"500px"}},[(0,A.h)("div.toolbar@toolbar",{style:{position:"absolute",top:"-25px",left:"0px"}}),(0,A.h)("div.promptEditor@promptEditor",{style:{position:"absolute",top:"-25px",left:"80px",width:"300px",height:"22px"}}),(0,A.h)("div.preview@editor",{style:{position:"absolute",top:"0px",left:"0px"}})]),(0,A.Mc)("svg",{style:{overflow:"visible",pointerEvents:"none"}},[(0,A.Mc)("defs",[(0,A.Mc)("linearGradient",{id:"Gradient2",x1:"0",y1:"0",x2:"1",y2:"0"},[(0,A.Mc)("stop",{offset:"0%",class:"gradient-stop"}),(0,A.Mc)("stop",{offset:"100%",class:"gradient-stop"})])]),(0,A.Mc)("path@path",{d:"",fill:"url(#Gradient2)"})])]),this._previewTextModel=this._register(this._instantiationService.createInstance(M.Bz,"",D.vH,M.Bz.DEFAULT_CREATION_OPTIONS,null)),this._setText=(0,r.un)((e=>{const t=this._edit.read(e);t&&this._previewTextModel.setValue(t.newLines.join("\n"))})).recomputeInitiallyAndOnChange(this._store),this._promptTextModel=this._register(this._instantiationService.createInstance(M.Bz,"",D.vH,M.Bz.DEFAULT_CREATION_OPTIONS,null)),this._promptEditor=this._register(this._instantiationService.createInstance(a.t,this._elements.promptEditor,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0,placeholder:"Describe the change you want...",fontFamily:N.z},{contributions:s.dS.getSomeEditorContributions([U.D.ID,F.X.ID,P.d.ID]),isSimpleWidget:!0},this._editor)),this._previewEditor=this._register(this._instantiationService.createInstance(a.t,this._elements.editor,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0},{contributions:[]},this._editor)),this._previewEditorObs=(0,m.Ud)(this._previewEditor),this._decorations=(0,r.un)(this,(e=>{this._setText.read(e);const t=this._edit.read(e)?.changes;if(!t)return[];const i=[],s=[];if(1===t.length&&t[0].innerChanges[0].modifiedRange.equalsRange(this._previewTextModel.getFullModelRange()))return[];for(const n of t)if(n.original.isEmpty||i.push({range:n.original.toInclusiveRange(),options:I.Ob}),n.modified.isEmpty||s.push({range:n.modified.toInclusiveRange(),options:I.Kl}),n.modified.isEmpty||n.original.isEmpty)n.original.isEmpty||i.push({range:n.original.toInclusiveRange(),options:I.KL}),n.modified.isEmpty||s.push({range:n.modified.toInclusiveRange(),options:I.Ou});else for(const e of n.innerChanges||[])n.original.contains(e.originalRange.startLineNumber)&&i.push({range:e.originalRange,options:e.originalRange.isEmpty()?I.wp:I.Zb}),n.modified.contains(e.modifiedRange.startLineNumber)&&s.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()?I.GM:I.bk});return s})),this._layout1=(0,r.un)(this,(e=>{const t=this._editor.getModel(),i=this._edit.read(e);if(!i)return null;const s=i.range;let n=0;for(let r=s.startLineNumber;r<s.endLineNumberExclusive;r++){const e=t.getLineMaxColumn(r),i=this._editor.getOffsetForColumn(r,e);n=Math.max(n,i)}return{left:this._editor.getLayoutInfo().contentLeft+n}})),this._layout=(0,r.un)(this,(e=>{const t=this._edit.read(e);if(!t)return null;const i=t.range,s=this._editorObs.scrollLeft.read(e),n=this._layout1.read(e).left+20-s,r=this._editor.getTopForLineNumber(i.startLineNumber)-this._editorObs.scrollTop.read(e),o=this._editor.getTopForLineNumber(i.endLineNumberExclusive)-this._editorObs.scrollTop.read(e),a=new G(n,r),l=new G(n,o),c=o-r,h=this._editor.getOption(67)*t.newLines.length,d=c-h;return{topCode:a,bottomCode:l,codeHeight:c,topEdit:new G(n+50,r+d/2),bottomEdit:new G(n+50,o-d/2),editHeight:h}}));const o=(0,r.un)(this,(e=>void 0!==this._edit.read(e)||void 0!==this._userPrompt.read(e)));var l,c,h;this._register((0,O.AV)(this._elements.root,{display:(0,r.un)(this,(e=>o.read(e)?"block":"none"))})),this._register((0,O.rX)(this._editor.getDomNode(),this._elements.root)),this._register((0,m.Ud)(e).createOverlayWidget({domNode:this._elements.root,position:(0,r.lk)(null),allowEditorOverflow:!1,minContentWidthInPx:(0,r.un)((e=>{const t=this._layout1.read(e)?.left;if(void 0===t)return 0;return t+this._previewEditorObs.contentWidth.read(e)}))})),this._previewEditor.setModel(this._previewTextModel),this._register(this._previewEditorObs.setDecorations(this._decorations)),this._register((0,r.fm)((e=>{const t=this._layout.read(e);if(!t)return;const{topCode:i,bottomCode:s,topEdit:n,bottomEdit:r,editHeight:o}=t,a=(new j).moveTo(i).lineTo(i.deltaX(10)).curveTo(i.deltaX(50),n.deltaX(-40),n.deltaX(-0)).lineTo(n).lineTo(r).lineTo(r.deltaX(-0)).curveTo(r.deltaX(-40),s.deltaX(50),s.deltaX(10)).lineTo(s).build();this._elements.path.setAttribute("d",a),this._elements.editorContainer.style.top=`${n.y}px`,this._elements.editorContainer.style.left=`${n.x}px`,this._elements.editorContainer.style.height=`${o}px`;const l=this._previewEditorObs.contentWidth.read(e);this._previewEditor.layout({height:o,width:l})}))),this._promptEditor.setModel(this._promptTextModel),this._promptEditor.layout(),this._register(function(e,t){const i=new g.Cm;return i.add((0,r.fm)((i=>{const s=e.read(i);t.set(s,void 0)}))),i.add((0,r.fm)((i=>{const s=t.read(i);e.set(s,void 0)}))),i}((l=this._userPrompt,c=e=>e??"",h=e=>e,(0,p.dQ)(void 0,(e=>c(l.read(e))),((e,t)=>l.set(h(e),t)))),(0,m.Ud)(this._promptEditor).value)),this._register((0,r.fm)((e=>{const t=(0,m.Ud)(this._promptEditor).isFocused.read(e);this._elements.root.classList.toggle("focused",t)})))}};z=B([W(3,H._Y)],z);class G{constructor(e,t){this.x=e,this.y=t}deltaX(e){return new G(this.x+e,this.y)}}class j{constructor(){this._data=""}moveTo(e){return this._data+=`M ${e.x} ${e.y} `,this}lineTo(e){return this._data+=`L ${e.x} ${e.y} `,this}curveTo(e,t,i){return this._data+=`C ${e.x} ${e.y} ${t.x} ${t.y} ${i.x} ${i.y} `,this}build(){return this._data}}var K,Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};let $=class extends g.jG{static{K=this}static{this._modelId=0}static _createUniqueUri(){return w.r.from({scheme:"inline-edits",path:(new Date).toString()+String(K._modelId++)})}constructor(e,t,i,s,n,o,a){super(),this.textModel=e,this._textModelVersionId=t,this._selection=i,this._debounceValue=s,this.languageFeaturesService=n,this._diffProviderFactoryService=o,this._modelService=a,this._forceUpdateExplicitlySignal=(0,r.Yd)(this),this._selectedInlineCompletionId=(0,r.FY)(this,void 0),this._isActive=(0,r.FY)(this,!1),this._originalModel=(0,p.a0)((()=>this._modelService.createModel("",null,K._createUniqueUri()))).keepObserved(this._store),this._modifiedModel=(0,p.a0)((()=>this._modelService.createModel("",null,K._createUniqueUri()))).keepObserved(this._store),this._pinnedRange=new X(this.textModel,this._textModelVersionId),this.isPinned=this._pinnedRange.range.map((e=>!!e)),this.userPrompt=(0,r.FY)(this,void 0),this.inlineEdit=(0,r.un)(this,(e=>this._inlineEdit.read(e)?.promiseResult.read(e)?.data)),this._inlineEdit=(0,r.un)(this,(e=>{const t=this.selectedInlineEdit.read(e);if(!t)return;const i=t.inlineCompletion.range;if(""===t.inlineCompletion.insertText.trim())return;let s=t.inlineCompletion.insertText.split(/\r\n|\r|\n/);function n(e){const t=e[0].match(/^\s*/)?.[0]??"";return e.map((e=>e.replace(new RegExp("^"+t),"")))}s=n(s);let o=this.textModel.getValueInRange(i).split(/\r\n|\r|\n/);o=n(o),this._originalModel.get().setValue(o.join("\n")),this._modifiedModel.get().setValue(s.join("\n"));const a=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:"advanced"});return r.BK.fromFn((async()=>{const e=await a.computeDiff(this._originalModel.get(),this._modifiedModel.get(),{computeMoves:!1,ignoreTrimWhitespace:!1,maxComputationTimeMs:1e3},E.XO.None);if(!e.identical)return new V(R.M.fromRangeInclusive(i),n(s),e.changes)}))})),this._fetchStore=this._register(new g.Cm),this._inlineEditsFetchResult=(0,r.X2)(this,void 0),this._inlineEdits=(0,r.C)({owner:this,equalsFn:S.dB},(e=>this._inlineEditsFetchResult.read(e)?.completions.map((e=>new Q(e)))??[])),this._fetchInlineEditsPromise=(0,r.nb)({owner:this,createEmptyChangeSummary:()=>({inlineCompletionTriggerKind:T.qw.Automatic}),handleChange:(e,t)=>(e.didChange(this._forceUpdateExplicitlySignal)&&(t.inlineCompletionTriggerKind=T.qw.Explicit),!0)},(async(e,t)=>{this._fetchStore.clear(),this._forceUpdateExplicitlySignal.read(e),this._textModelVersionId.read(e);const i=this._pinnedRange.range.read(e)??(s=this._selection.read(e),(e=>e.isEmpty()?void 0:e)(s));var s;if(!i)return this._inlineEditsFetchResult.set(void 0,void 0),void this.userPrompt.set(void 0,void 0);const n={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:void 0,userPrompt:this.userPrompt.read(e)},r=(0,E.bs)(this._fetchStore);await(0,b.wR)(200,r);const o=await(0,k.Yk)(this.languageFeaturesService.inlineCompletionsProvider,i,this.textModel,n,r);r.isCancellationRequested||this._inlineEditsFetchResult.set(o,void 0)})),this._filteredInlineEditItems=(0,r.C)({owner:this,equalsFn:(0,S.S3)()},(e=>this._inlineEdits.read(e))),this.selectedInlineCompletionIndex=(0,r.un)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineEditItems.read(e),s=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===s?(this._selectedInlineCompletionId.set(void 0,void 0),0):s})),this.selectedInlineEdit=(0,r.un)(this,(e=>this._filteredInlineEditItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this._register((0,r.OI)(this._fetchInlineEditsPromise))}async triggerExplicitly(e){(0,r.PO)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateExplicitlySignal.trigger(e)})),await this._fetchInlineEditsPromise.get()}stop(e){(0,r.PO)(e,(e=>{this.userPrompt.set(void 0,e),this._isActive.set(!1,e),this._inlineEditsFetchResult.set(void 0,e),this._pinnedRange.setRange(void 0,e)}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineEditItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){if(e.getModel()!==this.textModel)throw new y.D7;const t=this.selectedInlineEdit.get();t&&(e.pushUndoStop(),e.executeEdits("inlineSuggestion.accept",[t.inlineCompletion.toSingleTextEdit().toSingleEditOperation()]),this.stop())}};$=K=Y([q(4,C.ILanguageFeaturesService),q(5,L.Hg),q(6,x.IModelService)],$);class Q{constructor(e){this.inlineCompletion=e,this.semanticId=this.inlineCompletion.hash()}}class X extends g.jG{constructor(e,t){super(),this._textModel=e,this._versionId=t,this._decorations=(0,r.FY)(this,[]),this.range=(0,r.un)(this,(e=>{this._versionId.read(e);const t=this._decorations.read(e)[0];return t?this._textModel.getDecorationRange(t)??null:null})),this._register((0,g.s)((()=>{this._textModel.deltaDecorations(this._decorations.get(),[])})))}setRange(e,t){this._decorations.set(this._textModel.deltaDecorations(this._decorations.get(),e?[{range:e,options:{description:"trackedRange"}}]:[]),t)}}var Z,J=i(84001),ee=i(71319),te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};let se=class extends g.jG{static{Z=this}static{this.ID="editor.contrib.inlineEditsController"}static get(e){return e.getContribution(Z.ID)}constructor(e,t,i,s,n,o){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._debounceService=s,this._languageFeaturesService=n,this._configurationService=o,this._enabled=(0,ee.V)("editor.inlineEdits.enabled",!1,this._configurationService),this._editorObs=(0,m.Ud)(this.editor),this._selection=(0,r.un)(this,(e=>this._editorObs.cursorSelection.read(e)??new _.L(1,1,1,1))),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineEditsDebounce",{min:50,max:50}),this.model=(0,p.a0)(this,(e=>{if(!this._enabled.read(e))return;if(this._editorObs.isReadonly.read(e))return;const t=this._editorObs.model.read(e);if(!t)return;return this._instantiationService.createInstance((0,f.b)($,e),t,this._editorObs.versionId,this._selection,this._debounceValue)})),this._hadInlineEdit=(0,r.ZX)(this,((e,t)=>t||void 0!==this.model.read(e)?.inlineEdit.read(e))),this._widget=(0,p.a0)(this,(e=>{var t;if(this._hadInlineEdit.read(e))return this._instantiationService.createInstance((0,f.b)(z,e),this.editor,this.model.map(((e,t)=>e?.inlineEdit.read(t))),(t=e=>this.model.read(e)?.userPrompt??(0,r.FY)("empty",""),(0,p.dQ)(void 0,(e=>t(e).read(e)),((e,i)=>{t(void 0).set(e,i)}))))})),this._register((0,ee.w)(d,this._contextKeyService,(e=>!!this.model.read(e)?.inlineEdit.read(e)))),this._register((0,ee.w)(u,this._contextKeyService,(e=>!!this.model.read(e)?.isPinned.read(e)))),this.model.recomputeInitiallyAndOnChange(this._store),this._widget.recomputeInitiallyAndOnChange(this._store)}};se=Z=te([ie(1,H._Y),ie(2,h.fN),ie(3,v.ILanguageFeatureDebounceService),ie(4,C.ILanguageFeaturesService),ie(5,J.pG)],se);var ne=i(27195);function re(e){return{label:e.value,alias:e.original}}class oe extends s.ks{static{this.ID="editor.action.inlineEdits.showNext"}constructor(){super({id:oe.ID,...re(c.aS("action.inlineEdits.showNext","Show Next Inline Edit")),precondition:h.M$.and(l.R.writable,d),kbOpts:{weight:100,primary:606}})}async run(e,t){const i=se.get(t);i?.model.get()?.next()}}class ae extends s.ks{static{this.ID="editor.action.inlineEdits.showPrevious"}constructor(){super({id:ae.ID,...re(c.aS("action.inlineEdits.showPrevious","Show Previous Inline Edit")),precondition:h.M$.and(l.R.writable,d),kbOpts:{weight:100,primary:604}})}async run(e,t){const i=se.get(t);i?.model.get()?.previous()}}class le extends s.ks{constructor(){super({id:"editor.action.inlineEdits.trigger",...re(c.aS("action.inlineEdits.trigger","Trigger Inline Edit")),precondition:l.R.writable})}async run(e,t){const i=se.get(t);await(0,o.fL)((async e=>{await(i?.model.get()?.triggerExplicitly(e))}))}}class ce extends s.ks{constructor(){super({id:"editor.action.inlineEdits.accept",...re(c.aS("action.inlineEdits.accept","Accept Inline Edit")),precondition:d,menuOpts:{menuId:ne.D8.InlineEditsActions,title:c.kg("inlineEditsActions","Accept Inline Edit"),group:"primary",order:1,icon:n.W.check},kbOpts:{primary:2058,weight:2e4,kbExpr:d}})}async run(e,t){t instanceof a.t&&(t=t.getParentEditor());const i=se.get(t);i&&(i.model.get()?.accept(i.editor),i.editor.focus())}}class he extends s.ks{static{this.ID="editor.action.inlineEdits.hide"}constructor(){super({id:he.ID,...re(c.aS("action.inlineEdits.hide","Hide Inline Edit")),precondition:d,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=se.get(t);(0,r.Rn)((e=>{i?.model.get()?.stop(e)}))}}(0,s.HW)(se.ID,se,3),(0,s.Fl)(le),(0,s.Fl)(oe),(0,s.Fl)(ae),(0,s.Fl)(ce),(0,s.Fl)(he)},9948:(e,t,i)=>{"use strict";i.d(t,{I:()=>f});var s=i(8597),n=i(90766),r=i(10350),o=i(5662),a=i(91508),l=i(25689),c=i(36677),h=i(87289),d=i(63591),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};const p=h.kI.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:a.S8,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class m extends o.jG{static{this.baseId="editor.widget.inlineProgressWidget"}constructor(e,t,i,s,n){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=n,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(s),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=s.$(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=s.$("span.icon");this.domNode.append(t),t.classList.add(...l.L.asClassNameArray(r.W.loading),"codicon-modifier-spin");const i=()=>{const e=this.editor.getOption(67);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};i(),this._register(this.editor.onDidChangeConfiguration((e=>{(e.hasChanged(52)||e.hasChanged(67))&&i()}))),this._register(s.ko(this.domNode,s.Bx.CLICK,(e=>{this.delegate.cancel()})))}getId(){return m.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}let f=class extends o.jG{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new o.HE),this._currentWidget=this._register(new o.HE),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,i,s,r){const o=this._operationIdPool++;this._currentOperation=o,this.clear(),this._showPromise.value=(0,n.EQ)((()=>{const i=c.Q.fromPositions(e);this._currentDecorations.set([{range:i,options:p}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(m,this.id,this._editor,i,t,s))}),r??this._showDelay);try{return await i}finally{this._currentOperation===o&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};f=u([g(2,d._Y)],f)},15040:(e,t,i)=>{"use strict";var s=i(31450),n=i(50672),r=i(60002),o=i(78209);class a extends s.ks{constructor(){super({id:"expandLineSelection",label:o.kg("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:r.R.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const s=t._getViewModel();s.model.pushStackElement(),s.setCursorStates(i.source,3,n.c.expandLineSelection(s,s.getCursorStates())),s.revealAllCursors(i.source,!0)}}(0,s.Fl)(a)},75639:(e,t,i)=>{"use strict";var s=i(24939),n=i(36999),r=i(31450),o=i(15092),a=i(91508),l=i(7085),c=i(36677);class h{constructor(e,t,i){this._selection=e,this._cursors=t,this._selectionId=null,this._trimInRegexesAndStrings=i}getEditOperations(e,t){const i=function(e,t,i){t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber));for(let a=t.length-2;a>=0;a--)t[a].lineNumber===t[a+1].lineNumber&&t.splice(a,1);const s=[];let n=0,r=0;const o=t.length;for(let h=1,d=e.getLineCount();h<=d;h++){const d=e.getLineContent(h),u=d.length+1;let g=0;if(r<o&&t[r].lineNumber===h&&(g=t[r].column,r++,g===u))continue;if(0===d.length)continue;const p=a.lT(d);let m=0;if(-1===p)m=1;else{if(p===d.length-1)continue;m=p+2}if(!i){if(!e.tokenization.hasAccurateTokensForLine(h))continue;const t=e.tokenization.getLineTokens(h),i=t.getStandardTokenType(t.findTokenIndexAtOffset(m));if(2===i||3===i)continue}m=Math.max(g,m),s[n++]=l.k.delete(new c.Q(h,m,h,u))}return s}(e,this._cursors,this._trimInRegexesAndStrings);for(let s=0,n=i.length;s<n;s++){const e=i[s];t.addEditOperation(e.range,e.text)}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}var d=i(49265),u=i(26685),g=i(83069),p=i(75326),m=i(60002);class f{constructor(e,t,i){this._selection=e,this._isCopyingDown=t,this._noop=i||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let i=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._endLineNumberDelta=1,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const s=[];for(let r=i.startLineNumber;r<=i.endLineNumber;r++)s.push(e.getLineContent(r));const n=s.join("\n");""===n&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?t.addEditOperation(new c.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber+1,1),i.endLineNumber===e.getLineCount()?"":"\n"):this._isCopyingDown?t.addEditOperation(new c.Q(i.startLineNumber,1,i.startLineNumber,1),n+"\n"):t.addEditOperation(new c.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+n),this._selectionId=t.trackSelection(i),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){let e=i.startLineNumber,t=i.startColumn,s=i.endLineNumber,n=i.endColumn;0!==this._startLineNumberDelta&&(e+=this._startLineNumberDelta,t=1),0!==this._endLineNumberDelta&&(s+=this._endLineNumberDelta,n=1),i=p.L.createWithDirection(e,t,s,n,this._selectionDirection)}return i}}var _=i(7936),v=i(38566),C=i(17469),b=i(64395),E=i(82365),S=i(63346),y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},w=function(e,t){return function(i,s){t(i,s,e)}};let L=class{constructor(e,t,i,s){this._languageConfigurationService=s,this._selection=e,this._isMovingDown=t,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){const i=()=>e.getLanguageId(),s=(t,i)=>e.getLanguageIdAtPosition(t,i),n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&1===this._selection.startLineNumber)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let r=this._selection;r.startLineNumber<r.endLineNumber&&1===r.endColumn&&(this._moveEndPositionDown=!0,r=r.setEndPosition(r.endLineNumber-1,e.getLineMaxColumn(r.endLineNumber-1)));const{tabSize:o,indentSize:l,insertSpaces:h}=e.getOptions(),d=this.buildIndentConverter(o,l,h);if(r.startLineNumber===r.endLineNumber&&1===e.getLineMaxColumn(r.startLineNumber)){const i=r.startLineNumber,s=this._isMovingDown?i+1:i-1;1===e.getLineMaxColumn(s)?t.addEditOperation(new c.Q(1,1,1,1),null):(t.addEditOperation(new c.Q(i,1,i,1),e.getLineContent(s)),t.addEditOperation(new c.Q(s,1,s,e.getLineMaxColumn(s)),null)),r=new p.L(s,1,s,1)}else{let n,l;if(this._isMovingDown){n=r.endLineNumber+1,l=e.getLineContent(n),t.addEditOperation(new c.Q(n-1,e.getLineMaxColumn(n-1),n,e.getLineMaxColumn(n)),null);let u=l;if(this.shouldAutoIndent(e,r)){const g=this.matchEnterRule(e,d,o,n,r.startLineNumber-1);if(null!==g){const t=a.UU(e.getLineContent(n)),i=g+b.c(t,o),s=b.k(i,o,h);u=s+this.trimStart(l)}else{const t={tokenization:{getLineTokens:t=>t===r.startLineNumber?e.tokenization.getLineTokens(n):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===r.startLineNumber?e.getLineContent(n):e.getLineContent(t)},c=(0,E.$f)(this._autoIndent,t,e.getLanguageIdAtPosition(n,1),r.startLineNumber,d,this._languageConfigurationService);if(null!==c){const t=a.UU(e.getLineContent(n)),i=b.c(c,o);if(i!==b.c(t,o)){const e=b.k(i,o,h);u=e+this.trimStart(l)}}}t.addEditOperation(new c.Q(r.startLineNumber,1,r.startLineNumber,1),u+"\n");const p=this.matchEnterRuleMovingDown(e,d,o,r.startLineNumber,n,u);if(null!==p)0!==p&&this.getIndentEditsOfMovingBlock(e,t,r,o,h,p);else{const l={tokenization:{getLineTokens:t=>t===r.startLineNumber?e.tokenization.getLineTokens(n):t>=r.startLineNumber+1&&t<=r.endLineNumber+1?e.tokenization.getLineTokens(t-1):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===r.startLineNumber?u:t>=r.startLineNumber+1&&t<=r.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t)},c=(0,E.$f)(this._autoIndent,l,e.getLanguageIdAtPosition(n,1),r.startLineNumber+1,d,this._languageConfigurationService);if(null!==c){const i=a.UU(e.getLineContent(r.startLineNumber)),s=b.c(c,o),n=b.c(i,o);if(s!==n){const i=s-n;this.getIndentEditsOfMovingBlock(e,t,r,o,h,i)}}}}else t.addEditOperation(new c.Q(r.startLineNumber,1,r.startLineNumber,1),u+"\n")}else if(n=r.startLineNumber-1,l=e.getLineContent(n),t.addEditOperation(new c.Q(n,1,n+1,1),null),t.addEditOperation(new c.Q(r.endLineNumber,e.getLineMaxColumn(r.endLineNumber),r.endLineNumber,e.getLineMaxColumn(r.endLineNumber)),"\n"+l),this.shouldAutoIndent(e,r)){const l={tokenization:{getLineTokens:t=>t===n?e.tokenization.getLineTokens(r.startLineNumber):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:s},getLineContent:t=>t===n?e.getLineContent(r.startLineNumber):e.getLineContent(t)},c=this.matchEnterRule(e,d,o,r.startLineNumber,r.startLineNumber-2);if(null!==c)0!==c&&this.getIndentEditsOfMovingBlock(e,t,r,o,h,c);else{const i=(0,E.$f)(this._autoIndent,l,e.getLanguageIdAtPosition(r.startLineNumber,1),n,d,this._languageConfigurationService);if(null!==i){const s=a.UU(e.getLineContent(r.startLineNumber)),n=b.c(i,o),l=b.c(s,o);if(n!==l){const i=n-l;this.getIndentEditsOfMovingBlock(e,t,r,o,h,i)}}}}}this._selectionId=t.trackSelection(r)}buildIndentConverter(e,t,i){return{shiftIndent:s=>_.Y.shiftIndent(s,s.length+1,e,t,i),unshiftIndent:s=>_.Y.unshiftIndent(s,s.length+1,e,t,i)}}parseEnterResult(e,t,i,s,n){if(n){let r=n.indentation;n.indentAction===v.l.None||n.indentAction===v.l.Indent?r=n.indentation+n.appendText:n.indentAction===v.l.IndentOutdent?r=n.indentation:n.indentAction===v.l.Outdent&&(r=t.unshiftIndent(n.indentation)+n.appendText);const o=e.getLineContent(s);if(this.trimStart(o).indexOf(this.trimStart(r))>=0){const n=a.UU(e.getLineContent(s));let o=a.UU(r);const l=(0,E.Yb)(e,s,this._languageConfigurationService);null!==l&&2&l&&(o=t.unshiftIndent(o));return b.c(o,i)-b.c(n,i)}}return null}matchEnterRuleMovingDown(e,t,i,s,n,r){if(a.lT(r)>=0){const r=e.getLineMaxColumn(n),o=(0,S.h)(this._autoIndent,e,new c.Q(n,r,n,r),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,o)}{let n=s-1;for(;n>=1;){const t=e.getLineContent(n);if(a.lT(t)>=0)break;n--}if(n<1||s>e.getLineCount())return null;const r=e.getLineMaxColumn(n),o=(0,S.h)(this._autoIndent,e,new c.Q(n,r,n,r),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,o)}}matchEnterRule(e,t,i,s,n,r){let o=n;for(;o>=1;){let t;t=o===n&&void 0!==r?r:e.getLineContent(o);if(a.lT(t)>=0)break;o--}if(o<1||s>e.getLineCount())return null;const l=e.getLineMaxColumn(o),h=(0,S.h)(this._autoIndent,e,new c.Q(o,l,o,l),this._languageConfigurationService);return this.parseEnterResult(e,t,i,s,h)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4)return!1;if(!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const i=e.getLanguageIdAtPosition(t.startLineNumber,1);return i===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport}getIndentEditsOfMovingBlock(e,t,i,s,n,r){for(let o=i.startLineNumber;o<=i.endLineNumber;o++){const l=e.getLineContent(o),h=a.UU(l),d=b.c(h,s)+r,u=b.k(d,s,n);u!==h&&(t.addEditOperation(new c.Q(o,1,o,h.length+1),u),o===i.endLineNumber&&i.endColumn<=h.length+1&&""===u&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber<i.endLineNumber&&(i=i.setEndPosition(i.endLineNumber,2)),i}};L=y([w(3,C.JZ)],L);class R{static{this._COLLATOR=null}static getCollator(){return R._COLLATOR||(R._COLLATOR=new Intl.Collator),R._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){const i=function(e,t,i){const s=T(e,t,i);if(!s)return null;return l.k.replace(new c.Q(s.startLineNumber,1,s.endLineNumber,e.getLineMaxColumn(s.endLineNumber)),s.after.join("\n"))}(e,this.selection,this.descending);i&&t.addEditOperation(i.range,i.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,i){if(null===e)return!1;const s=T(e,t,i);if(!s)return!1;for(let n=0,r=s.before.length;n<r;n++)if(s.before[n]!==s.after[n])return!0;return!1}}function T(e,t,i){const s=t.startLineNumber;let n=t.endLineNumber;if(1===t.endColumn&&n--,s>=n)return null;const r=[];for(let a=s;a<=n;a++)r.push(e.getLineContent(a));let o=r.slice(0);return o.sort(R.getCollator().compare),!0===i&&(o=o.reverse()),{startLineNumber:s,endLineNumber:n,before:r,after:o}}var x=i(78209),k=i(27195),A=i(84001);class N extends r.ks{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const i=t.getSelections().map(((e,t)=>({selection:e,index:t,ignore:!1})));i.sort(((e,t)=>c.Q.compareRangesUsingStarts(e.selection,t.selection)));let s=i[0];for(let r=1;r<i.length;r++){const e=i[r];s.selection.endLineNumber===e.selection.startLineNumber&&(s.index<e.index?e.ignore=!0:(s.ignore=!0,s=e))}const n=[];for(const r of i)n.push(new f(r.selection,this.down,r.ignore));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class I extends r.ks{constructor(){super({id:"editor.action.duplicateSelection",label:x.kg("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:m.R.writable,menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,i){if(!t.hasModel())return;const s=[],n=t.getSelections(),r=t.getModel();for(const a of n)if(a.isEmpty())s.push(new f(a,!0));else{const e=new p.L(a.endLineNumber,a.endColumn,a.endLineNumber,a.endColumn);s.push(new o.tA(e,r.getValueInRange(a)))}t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class O extends r.ks{constructor(e,t){super(t),this.down=e}run(e,t){const i=e.get(C.JZ),s=[],n=t.getSelections()||[],r=t.getOption(12);for(const o of n)s.push(new L(o,this.down,r,i));t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class D extends r.ks{constructor(e,t){super(t),this.descending=e}run(e,t){if(!t.hasModel())return;const i=t.getModel();let s=t.getSelections();1===s.length&&s[0].isEmpty()&&(s=[new p.L(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))]);for(const r of s)if(!R.canRun(t.getModel(),r,this.descending))return;const n=[];for(let r=0,o=s.length;r<o;r++)n[r]=new R(s[r],this.descending);t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class M extends r.ks{constructor(){super({id:"editor.action.removeDuplicateLines",label:x.kg("lines.deleteDuplicates","Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:m.R.writable})}run(e,t){if(!t.hasModel())return;const i=t.getModel();if(1===i.getLineCount()&&1===i.getLineMaxColumn(1))return;const s=[],n=[];let r=0,o=!0,a=t.getSelections();1===a.length&&a[0].isEmpty()&&(a=[new p.L(1,1,i.getLineCount(),i.getLineMaxColumn(i.getLineCount()))],o=!1);for(const c of a){const e=new Set,t=[];for(let s=c.startLineNumber;s<=c.endLineNumber;s++){const n=i.getLineContent(s);e.has(n)||(t.push(n),e.add(n))}const o=new p.L(c.startLineNumber,1,c.endLineNumber,i.getLineMaxColumn(c.endLineNumber)),a=c.startLineNumber-r,h=new p.L(a,1,a+t.length-1,t[t.length-1].length);s.push(l.k.replace(o,t.join("\n"))),n.push(h),r+=c.endLineNumber-c.startLineNumber+1-t.length}t.pushUndoStop(),t.executeEdits(this.id,s,o?n:void 0),t.pushUndoStop()}}class P extends r.ks{static{this.ID="editor.action.trimTrailingWhitespace"}constructor(){super({id:P.ID,label:x.kg("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:(0,s.m5)(2089,2102),weight:100}})}run(e,t,i){let s=[];"auto-save"===i.reason&&(s=(t.getSelections()||[]).map((e=>new g.y(e.positionLineNumber,e.positionColumn))));const n=t.getSelection();if(null===n)return;const r=e.get(A.pG),o=t.getModel(),a=r.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:o?.getLanguageId(),resource:o?.uri}),l=new h(n,s,a);t.pushUndoStop(),t.executeCommands(this.id,[l]),t.pushUndoStop()}}class F extends r.ks{constructor(){super({id:"editor.action.deleteLines",label:x.kg("lines.delete","Delete Line"),alias:"Delete Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;const i=this._getLinesToRemove(t),s=t.getModel();if(1===s.getLineCount()&&1===s.getLineMaxColumn(1))return;let n=0;const r=[],o=[];for(let a=0,c=i.length;a<c;a++){const e=i[a];let t=e.startLineNumber,c=e.endLineNumber,h=1,d=s.getLineMaxColumn(c);c<s.getLineCount()?(c+=1,d=1):t>1&&(t-=1,h=s.getLineMaxColumn(t)),r.push(l.k.replace(new p.L(t,h,c,d),"")),o.push(new p.L(t-n,e.positionColumn,t-n,e.positionColumn)),n+=e.endLineNumber-e.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,r,o),t.pushUndoStop()}_getLinesToRemove(e){const t=e.getSelections().map((e=>{let t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}}));t.sort(((e,t)=>e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber));const i=[];let s=t[0];for(let n=1;n<t.length;n++)s.endLineNumber+1>=t[n].startLineNumber?s.endLineNumber=t[n].endLineNumber:(i.push(s),s=t[n]);return i.push(s),i}}class U extends r.ks{constructor(){super({id:"editor.action.indentLines",label:x.kg("lines.indent","Indent Line"),alias:"Indent Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2142,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,d.T.indent(i.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class H extends r.ks{constructor(){super({id:"editor.action.outdentLines",label:x.kg("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2140,weight:100}})}run(e,t){n.Yh.Outdent.runEditorCommand(e,t,null)}}class B extends r.ks{constructor(){super({id:"editor.action.insertLineBefore",label:x.kg("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:3075,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,u.AO.lineInsertBefore(i.cursorConfig,t.getModel(),t.getSelections())))}}class W extends r.ks{constructor(){super({id:"editor.action.insertLineAfter",label:x.kg("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2051,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,u.AO.lineInsertAfter(i.cursorConfig,t.getModel(),t.getSelections())))}}class V extends r.ks{run(e,t){if(!t.hasModel())return;const i=t.getSelection(),s=this._getRangesToDelete(t),n=[];for(let a=0,l=s.length-1;a<l;a++){const e=s[a],t=s[a+1];null===c.Q.intersectRanges(e,t)?n.push(e):s[a+1]=c.Q.plusRange(e,t)}n.push(s[s.length-1]);const r=this._getEndCursorState(i,n),o=n.map((e=>l.k.replace(e,"")));t.pushUndoStop(),t.executeEdits(this.id,o,r),t.pushUndoStop()}}class z extends r.ks{constructor(){super({id:"editor.action.joinLines",label:x.kg("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){const i=t.getSelections();if(null===i)return;let s=t.getSelection();if(null===s)return;i.sort(c.Q.compareRangesUsingStarts);const n=[],r=i.reduce(((e,t)=>e.isEmpty()?e.endLineNumber===t.startLineNumber?(s.equalsSelection(e)&&(s=t),t):t.startLineNumber>e.endLineNumber+1?(n.push(e),t):new p.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(n.push(e),t):new p.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)));n.push(r);const o=t.getModel();if(null===o)return;const a=[],h=[];let d=s,u=0;for(let g=0,m=n.length;g<m;g++){const e=n[g],t=e.startLineNumber,i=1;let r,m,f=0;const _=o.getLineLength(e.endLineNumber)-e.endColumn;if(e.isEmpty()||e.startLineNumber===e.endLineNumber){const i=e.getStartPosition();i.lineNumber<o.getLineCount()?(r=t+1,m=o.getLineMaxColumn(r)):(r=i.lineNumber,m=o.getLineMaxColumn(i.lineNumber))}else r=e.endLineNumber,m=o.getLineMaxColumn(r);let v=o.getLineContent(t);for(let s=t+1;s<=r;s++){const e=o.getLineContent(s),t=o.getLineFirstNonWhitespaceColumn(s);if(t>=1){let i=!0;""===v&&(i=!1),!i||" "!==v.charAt(v.length-1)&&"\t"!==v.charAt(v.length-1)||(i=!1,v=v.replace(/[\s\uFEFF\xA0]+$/g," "));const s=e.substr(t-1);v+=(i?" ":"")+s,f=i?s.length+1:s.length}else f=0}const C=new c.Q(t,i,r,m);if(!C.isEmpty()){let i;e.isEmpty()?(a.push(l.k.replace(C,v)),i=new p.L(C.startLineNumber-u,v.length-f+1,t-u,v.length-f+1)):e.startLineNumber===e.endLineNumber?(a.push(l.k.replace(C,v)),i=new p.L(e.startLineNumber-u,e.startColumn,e.endLineNumber-u,e.endColumn)):(a.push(l.k.replace(C,v)),i=new p.L(e.startLineNumber-u,e.startColumn,e.startLineNumber-u,v.length-_)),null!==c.Q.intersectRanges(C,s)?d=i:h.push(i)}u+=C.endLineNumber-C.startLineNumber}h.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,a,h),t.pushUndoStop()}}class G extends r.ks{constructor(){super({id:"editor.action.transpose",label:x.kg("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:m.R.writable})}run(e,t){const i=t.getSelections();if(null===i)return;const s=t.getModel();if(null===s)return;const n=[];for(let r=0,a=i.length;r<a;r++){const e=i[r];if(!e.isEmpty())continue;const t=e.getStartPosition(),a=s.getLineMaxColumn(t.lineNumber);if(t.column>=a){if(t.lineNumber===s.getLineCount())continue;const e=new c.Q(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i=s.getValueInRange(e).split("").reverse().join("");n.push(new o.iu(new p.L(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i))}else{const e=new c.Q(t.lineNumber,Math.max(1,t.column-1),t.lineNumber,t.column+1),i=s.getValueInRange(e).split("").reverse().join("");n.push(new o.ui(e,i,new p.L(t.lineNumber,t.column+1,t.lineNumber,t.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class j extends r.ks{run(e,t){const i=t.getSelections();if(null===i)return;const s=t.getModel();if(null===s)return;const n=t.getOption(132),r=[];for(const o of i)if(o.isEmpty()){const e=o.getStartPosition(),i=t.getConfiguredWordAtPosition(e);if(!i)continue;const a=new c.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),h=s.getValueInRange(a);r.push(l.k.replace(a,this._modifyText(h,n)))}else{const e=s.getValueInRange(o);r.push(l.k.replace(o,this._modifyText(e,n)))}t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop()}}class K{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(e){}}return this._actual}isSupported(){return null!==this.get()}}class Y extends j{static{this.titleBoundary=new K("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu")}constructor(){super({id:"editor.action.transformToTitlecase",label:x.kg("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:m.R.writable})}_modifyText(e,t){const i=Y.titleBoundary.get();return i?e.toLocaleLowerCase().replace(i,(e=>e.toLocaleUpperCase())):e}}class q extends j{static{this.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu")}static{this.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu")}constructor(){super({id:"editor.action.transformToSnakecase",label:x.kg("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:m.R.writable})}_modifyText(e,t){const i=q.caseBoundary.get(),s=q.singleLetters.get();return i&&s?e.replace(i,"$1_$2").replace(s,"$1_$2$3").toLocaleLowerCase():e}}class $ extends j{static{this.wordBoundary=new K("[_\\s-]","gm")}constructor(){super({id:"editor.action.transformToCamelcase",label:x.kg("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:m.R.writable})}_modifyText(e,t){const i=$.wordBoundary.get();if(!i)return e;const s=e.split(i);return s.shift()+s.map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}class Q extends j{static{this.wordBoundary=new K("[_\\s-]","gm")}static{this.wordBoundaryToMaintain=new K("(?<=\\.)","gm")}constructor(){super({id:"editor.action.transformToPascalcase",label:x.kg("editor.transformToPascalcase","Transform to Pascal Case"),alias:"Transform to Pascal Case",precondition:m.R.writable})}_modifyText(e,t){const i=Q.wordBoundary.get(),s=Q.wordBoundaryToMaintain.get();if(!i||!s)return e;return e.split(s).map((e=>e.split(i))).flat().map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}class X extends j{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every((e=>e.isSupported()))}static{this.caseBoundary=new K("(\\p{Ll})(\\p{Lu})","gmu")}static{this.singleLetters=new K("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu")}static{this.underscoreBoundary=new K("(\\S)(_)(\\S)","gm")}constructor(){super({id:"editor.action.transformToKebabcase",label:x.kg("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:m.R.writable})}_modifyText(e,t){const i=X.caseBoundary.get(),s=X.singleLetters.get(),n=X.underscoreBoundary.get();return i&&s&&n?e.replace(n,"$1-$3").replace(i,"$1-$2").replace(s,"$1-$2").toLocaleLowerCase():e}}(0,r.Fl)(class extends N{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:x.kg("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),(0,r.Fl)(class extends N{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:x.kg("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),(0,r.Fl)(I),(0,r.Fl)(class extends O{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:x.kg("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),(0,r.Fl)(class extends O{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:x.kg("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:k.D8.MenubarSelectionMenu,group:"2_line",title:x.kg({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),(0,r.Fl)(class extends D{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:x.kg("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:m.R.writable})}}),(0,r.Fl)(class extends D{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:x.kg("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:m.R.writable})}}),(0,r.Fl)(M),(0,r.Fl)(P),(0,r.Fl)(F),(0,r.Fl)(U),(0,r.Fl)(H),(0,r.Fl)(B),(0,r.Fl)(W),(0,r.Fl)(class extends V{constructor(){super({id:"deleteAllLeft",label:x.kg("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let i=null;const s=[];let n=0;return t.forEach((t=>{let r;if(1===t.endColumn&&n>0){const e=t.startLineNumber-n;r=new p.L(e,t.startColumn,e,t.startColumn)}else r=new p.L(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);n+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?i=r:s.push(r)})),i&&s.unshift(i),s}_getRangesToDelete(e){const t=e.getSelections();if(null===t)return[];let i=t;const s=e.getModel();return null===s?[]:(i.sort(c.Q.compareRangesUsingStarts),i=i.map((e=>{if(e.isEmpty()){if(1===e.startColumn){const t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:s.getLineLength(t)+1;return new c.Q(t,i,e.startLineNumber,1)}return new c.Q(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new c.Q(e.startLineNumber,1,e.endLineNumber,e.endColumn)})),i)}}),(0,r.Fl)(class extends V{constructor(){super({id:"deleteAllRight",label:x.kg("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let i=null;const s=[];for(let n=0,r=t.length,o=0;n<r;n++){const r=t[n],a=new p.L(r.startLineNumber-o,r.startColumn,r.startLineNumber-o,r.startColumn);r.intersectRanges(e)?i=a:s.push(a)}return i&&s.unshift(i),s}_getRangesToDelete(e){const t=e.getModel();if(null===t)return[];const i=e.getSelections();if(null===i)return[];const s=i.map((e=>{if(e.isEmpty()){const i=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===i?new c.Q(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new c.Q(e.startLineNumber,e.startColumn,e.startLineNumber,i)}return e}));return s.sort(c.Q.compareRangesUsingStarts),s}}),(0,r.Fl)(z),(0,r.Fl)(G),(0,r.Fl)(class extends j{constructor(){super({id:"editor.action.transformToUppercase",label:x.kg("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:m.R.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}),(0,r.Fl)(class extends j{constructor(){super({id:"editor.action.transformToLowercase",label:x.kg("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:m.R.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}),q.caseBoundary.isSupported()&&q.singleLetters.isSupported()&&(0,r.Fl)(q),$.wordBoundary.isSupported()&&(0,r.Fl)($),Q.wordBoundary.isSupported()&&(0,r.Fl)(Q),Y.titleBoundary.isSupported()&&(0,r.Fl)(Y),X.isSupported()&&(0,r.Fl)(X)},85117:(e,t,i)=>{"use strict";var s,n=i(25890),r=i(90766),o=i(18447),a=i(47661),l=i(64383),c=i(41234),h=i(5662),d=i(91508),u=i(79400),g=i(31450),p=i(80301),m=i(83069),f=i(36677),_=i(60002),v=i(87289),C=i(17469),b=i(78209),E=i(32848),S=i(56942),y=i(66261),w=i(32500),L=i(78381),R=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};const x=new E.N1("LinkedEditingInputVisible",!1);let k=class extends h.jG{static{s=this}static{this.ID="editor.contrib.linkedEditing"}static{this.DECORATION=v.kI.register({description:"linked-editing",stickiness:0,className:"linked-editing-decoration"})}static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,n){super(),this.languageConfigurationService=s,this._syncRangesToken=0,this._localToDispose=this._register(new h.Cm),this._editor=e,this._providers=i.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=x.bindTo(t),this._debounceInformation=n.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new h.Cm),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequestCts=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(70)||e.hasChanged(94))&&this.reinitialize(!1)}))),this._register(this._providers.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}reinitialize(e){const t=this._editor.getModel(),i=null!==t&&(this._editor.getOption(70)||this._editor.getOption(94))&&this._providers.has(t);if(i===this._enabled&&!e)return;if(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),!i||null===t)return;this._localToDispose.add(c.Jh.runAndSubscribe(t.onDidChangeLanguageConfiguration,(()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()})));const s=new r.ve(this._debounceInformation.get(t)),n=()=>{this._rangeUpdateTriggerPromise=s.trigger((()=>this.updateRanges()),this._debounceDuration??this._debounceInformation.get(t))},o=new r.ve(0),a=e=>{this._rangeSyncTriggerPromise=o.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{n()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const t=this._currentDecorations.getRange(0);if(t&&e.changes.every((e=>t.intersectRanges(e.range))))return void a(this._syncRangesToken)}n()}))),this._localToDispose.add({dispose:()=>{s.dispose(),o.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||0===this._currentDecorations.length)return;const t=this._editor.getModel(),i=this._currentDecorations.getRange(0);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();const s=t.getValueInRange(i);if(this._currentWordPattern){const e=s.match(this._currentWordPattern);if((e?e[0].length:0)!==s.length)return this.clearRanges()}const n=[];for(let r=1,o=this._currentDecorations.length;r<o;r++){const e=this._currentDecorations.getRange(r);if(e)if(e.startLineNumber!==e.endLineNumber)n.push({range:e,text:s});else{let i=t.getValueInRange(e),r=s,o=e.startColumn,a=e.endColumn;const l=d.Qp(i,r);o+=l,i=i.substr(l),r=r.substr(l);const c=d.Vi(i,r);a-=c,i=i.substr(0,i.length-c),r=r.substr(0,r.length-c),o===a&&0===r.length||n.push({range:new f.Q(e.startLineNumber,o,e.endLineNumber,a),text:r})}}if(0!==n.length)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;const e=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",n),this._editor._getViewModel().setPrevEditOperationType(e)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations.clear(),this._currentRequestCts&&(this._currentRequestCts.cancel(),this._currentRequestCts=null,this._currentRequestPosition=null)}async updateRanges(e=!1){if(!this._editor.hasModel())return void this.clearRanges();const t=this._editor.getPosition();if(!this._enabled&&!e||this._editor.getSelections().length>1)return void this.clearRanges();const i=this._editor.getModel(),n=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===n){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const e=this._currentDecorations.getRange(0);if(e&&e.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=n;const r=this._currentRequestCts=new o.Qi;try{const e=new L.W(!1),o=await I(this._providers,i,t,r.token);if(this._debounceInformation.update(i,e.elapsed()),r!==this._currentRequestCts)return;if(this._currentRequestCts=null,n!==i.getVersionId())return;let a=[];o?.ranges&&(a=o.ranges),this._currentWordPattern=o?.wordPattern||this._languageWordPattern;let l=!1;for(let i=0,s=a.length;i<s;i++)if(f.Q.containsPosition(a[i],t)){if(l=!0,0!==i){const e=a[i];a.splice(i,1),a.unshift(e)}break}if(!l)return void this.clearRanges();const c=a.map((e=>({range:e,options:s.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations.set(c),this._syncRangesToken++}catch(a){(0,l.MB)(a)||(0,l.dz)(a),this._currentRequestCts!==r&&this._currentRequestCts||this.clearRanges()}}};k=s=R([T(1,E.fN),T(2,S.ILanguageFeaturesService),T(3,C.JZ),T(4,w.ILanguageFeatureDebounceService)],k);class A extends g.ks{constructor(){super({id:"editor.action.linkedEditing",label:b.kg("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:E.M$.and(_.R.writable,_.R.hasRenameProvider),kbOpts:{kbExpr:_.R.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const i=e.get(p.T),[s,n]=Array.isArray(t)&&t||[void 0,void 0];return u.r.isUri(s)&&m.y.isIPosition(n)?i.openCodeEditor({resource:s},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(n),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),l.dz):super.runCommand(e,t)}run(e,t){const i=k.get(t);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}}const N=g.DX.bindToContribution(k.get);function I(e,t,i,s){const o=e.ordered(t);return(0,r.$1)(o.map((e=>async()=>{try{return await e.provideLinkedEditingRanges(t,i,s)}catch(n){return void(0,l.M_)(n)}})),(e=>!!e&&n.EI(e?.ranges)))}(0,g.E_)(new N({id:"cancelLinkedEditingInput",precondition:x,handler:e=>e.clearRanges(),kbOpts:{kbExpr:_.R.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));(0,y.x1A)("editor.linkedEditingBackground",{dark:a.Q1.fromHex("#f00").transparent(.3),light:a.Q1.fromHex("#f00").transparent(.3),hcDark:a.Q1.fromHex("#f00").transparent(.3),hcLight:a.Q1.white},b.kg("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,g.ke)("_executeLinkedEditingProvider",((e,t,i)=>{const{linkedEditingRangeProvider:s}=e.get(S.ILanguageFeaturesService);return I(s,t,i,o.XO.None)})),(0,g.HW)(k.ID,k,1),(0,g.Fl)(A)},14614:(e,t,i)=>{"use strict";var s=i(90766),n=i(18447),r=i(64383),o=i(16980),a=i(5662),l=i(36456),c=i(98067),h=i(89403),d=i(78381),u=i(79400),g=i(31450),p=i(87289),m=i(32500),f=i(56942),_=i(37927),v=i(25890),C=i(631),b=i(36677),E=i(23750),S=i(50091);class y{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}async resolve(e){return this._link.url?this._link.url:"function"===typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then((t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing"))))):Promise.reject(new Error("missing"))}}class w{constructor(e){this._disposables=new a.Cm;let t=[];for(const[i,s]of e){const e=i.links.map((e=>new y(e,s)));t=w._union(t,e),(0,a.Xm)(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){const i=[];let s,n,r,o;for(s=0,r=0,n=e.length,o=t.length;s<n&&r<o;){const n=e[s],o=t[r];if(b.Q.areIntersectingOrTouching(n.range,o.range)){s++;continue}b.Q.compareRangesUsingStarts(n.range,o.range)<0?(i.push(n),s++):(i.push(o),r++)}for(;s<n;s++)i.push(e[s]);for(;r<o;r++)i.push(t[r]);return i}}function L(e,t,i){const s=[],n=e.ordered(t).reverse().map(((e,n)=>Promise.resolve(e.provideLinks(t,i)).then((t=>{t&&(s[n]=[t,e])}),r.M_)));return Promise.all(n).then((()=>{const e=new w((0,v.Yc)(s));return i.isCancellationRequested?(e.dispose(),new w([])):e}))}S.w.registerCommand("_executeLinkProvider",(async(e,...t)=>{let[i,s]=t;(0,C.j)(i instanceof u.r),"number"!==typeof s&&(s=0);const{linkProvider:r}=e.get(f.ILanguageFeaturesService),o=e.get(E.IModelService).getModel(i);if(!o)return[];const a=await L(r,o,n.XO.None);if(!a)return[];for(let c=0;c<Math.min(s,a.links.length);c++)await a.links[c].resolve(n.XO.None);const l=a.links.slice(0);return a.dispose(),l}));var R,T=i(78209),x=i(58591),k=i(49099),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends a.jG{static{R=this}static{this.ID="editor.linkDetector"}static get(e){return e.getContribution(R.ID)}constructor(e,t,i,n,r){super(),this.editor=e,this.openerService=t,this.notificationService=i,this.languageFeaturesService=n,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=r.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new s.uC((()=>this.computeLinksNow()),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const o=this._register(new _.gi(e));this._register(o.onMouseMoveOrRelevantKeyDown((([e,t])=>{this._onEditorMouseMove(e,t)}))),this._register(o.onExecute((e=>{this.onEditorMouseUp(e)}))),this._register(o.onCancel((e=>{this.cleanUpActiveLinkDecoration()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(71)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))}))),this._register(e.onDidChangeModelContent((e=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))}))),this._register(e.onDidChangeModel((e=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)}))),this._register(e.onDidChangeModelLanguage((e=>{this.stop(),this.computeLinks.schedule(0)}))),this._register(this.providers.onDidChange((e=>{this.stop(),this.computeLinks.schedule(0)}))),this.computeLinks.schedule(0)}async computeLinksNow(){if(!this.editor.hasModel()||!this.editor.getOption(71))return;const e=this.editor.getModel();if(!e.isTooLargeForSyncing()&&this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=(0,s.SS)((t=>L(this.providers,e,t)));try{const t=new d.W(!1);if(this.activeLinksList=await this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(t){(0,r.dz)(t)}finally{this.computePromise=null}}}updateDecorations(e){const t="altKey"===this.editor.getOption(78),i=[],s=Object.keys(this.currentOccurrences);for(const r of s){const e=this.currentOccurrences[r];i.push(e.decorationId)}const n=[];if(e)for(const r of e)n.push(M.decoration(r,t));this.editor.changeDecorations((t=>{const s=t.deltaDecorations(i,n);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let i=0,n=s.length;i<n;i++){const t=new M(e[i],s[i]);this.currentOccurrences[t.decorationId]=t}}))}_onEditorMouseMove(e,t){const i="altKey"===this.editor.getOption(78);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();const t=this.getLinkOccurrence(e.target.position);t&&this.editor.changeDecorations((e=>{t.activate(e,i),this.activeLinkDecorationId=t.decorationId}))}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(78);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((i=>{t.deactivate(i,e)})),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,i=!1){if(!this.openerService)return;const{link:s}=e;s.resolve(n.XO.None).then((e=>{if("string"===typeof e&&this.editor.hasModel()){const t=this.editor.getModel().uri;if(t.scheme===l.ny.file&&e.startsWith(`${l.ny.file}:`)){const i=u.r.parse(e);if(i.scheme===l.ny.file){const s=h.su(i);let n=null;s.startsWith("/./")||s.startsWith("\\.\\")?n=`.${s.substr(1)}`:(s.startsWith("//./")||s.startsWith("\\\\.\\"))&&(n=`.${s.substr(2)}`),n&&(e=h.uJ(t,n))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})}),(e=>{const t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(T.kg("invalid.url","Failed to open this link because it is not well-formed: {0}",s.url.toString())):"missing"===t?this.notificationService.warn(T.kg("missing.url","Failed to open this link because its target is missing.")):(0,r.dz)(e)}))}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const i of t){const e=this.currentOccurrences[i.id];if(e)return e}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){this.computeLinks.cancel(),this.activeLinksList&&(this.activeLinksList?.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};I=R=A([N(1,k.C),N(2,x.Ot),N(3,f.ILanguageFeaturesService),N(4,m.ILanguageFeatureDebounceService)],I);const O=p.kI.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),D=p.kI.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"});class M{static decoration(e,t){return{range:e.range,options:M._getOptions(e,t,!1)}}static _getOptions(e,t,i){const s={...i?D:O};return s.hoverMessage=function(e,t){const i=e.url&&/^command:/i.test(e.url.toString()),s=e.tooltip?e.tooltip:i?T.kg("links.navigate.executeCmd","Execute command"):T.kg("links.navigate.follow","Follow link"),n=t?c.zx?T.kg("links.navigate.kb.meta.mac","cmd + click"):T.kg("links.navigate.kb.meta","ctrl + click"):c.zx?T.kg("links.navigate.kb.alt.mac","option + click"):T.kg("links.navigate.kb.alt","alt + click");if(e.url){let t="";if(/^command:/i.test(e.url.toString())){const i=e.url.toString().match(/^command:([^?#]+)/);if(i){const e=i[1];t=T.kg("tooltip.explanation","Execute command {0}",e)}}return new o.Bc("",!0).appendLink(e.url.toString(!0).replace(/ /g,"%20"),s,t).appendMarkdown(` (${n})`)}return(new o.Bc).appendText(`${s} (${n})`)}(e,t),s}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,M._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,M._getOptions(this.link,t,!1))}}class P extends g.ks{constructor(){super({id:"editor.action.openLink",label:T.kg("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){const i=I.get(t);if(!i)return;if(!t.hasModel())return;const s=t.getSelections();for(const n of s){const e=i.getLinkOccurrence(n.getEndPosition());e&&i.openLinkOccurrence(e,!1)}}}(0,g.HW)(I.ID,I,1),(0,g.Fl)(P)},95200:(e,t,i)=>{"use strict";var s=i(5662),n=i(31450);class r extends s.jG{static{this.ID="editor.contrib.longLinesHelper"}constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown((e=>{const t=this._editor.getOption(118);t>=0&&6===e.target.type&&e.target.position.column>=t&&this._editor.updateOptions({stopRenderingLineAfter:-1})})))}}(0,n.HW)(r.ID,r,2)},99645:(e,t,i)=>{"use strict";i.d(t,{k:()=>v});var s,n=i(68214),r=i(11007),o=i(41234),a=i(16980),l=i(5662),c=i(31450),h=i(36677),d=i(20492),u=i(78209),g=i(32848),p=i(49099),m=i(8597),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{static{s=this}static{this.ID="editor.contrib.messageController"}static{this.MESSAGE_VISIBLE=new g.N1("messageVisible",!1,u.kg("messageVisible","Whether the editor is currently showing an inline message"))}static get(e){return e.getContribution(s.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new l.HE,this._messageListeners=new l.Cm,this._mouseOverMessage=!1,this._editor=e,this._visible=s.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._message?.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;(0,r.xE)((0,a.VS)(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=(0,a.VS)(e)?(0,n.Gc)(e,{actionHandler:{callback:t=>{this.closeMessage(),(0,d.i)(this._openerService,t,(0,a.VS)(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new b(this._editor,t,"string"===typeof e?e:this._message.element),this._messageListeners.add(o.Jh.debounce(this._editor.onDidBlurEditorText,((e,t)=>t),0)((()=>{this._mouseOverMessage||this._messageWidget.value&&m.QX(m.bq(),this._messageWidget.value.getDomNode())||this.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidDispose((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidChangeModel((()=>this.closeMessage()))),this._messageListeners.add(m.ko(this._messageWidget.value.getDomNode(),m.Bx.MOUSE_ENTER,(()=>this._mouseOverMessage=!0),!0)),this._messageListeners.add(m.ko(this._messageWidget.value.getDomNode(),m.Bx.MOUSE_LEAVE,(()=>this._mouseOverMessage=!1),!0)),this._messageListeners.add(this._editor.onMouseMove((e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new h.Q(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(b.fadeOut(this._messageWidget.value))}};v=s=f([_(1,g.fN),_(2,p.C)],v);const C=c.DX.bindToContribution(v.get);(0,c.E_)(new C({id:"leaveEditorMessage",precondition:v.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class b{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},s){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const n=document.createElement("div");n.classList.add("anchor","top"),this._domNode.appendChild(n);const r=document.createElement("div");"string"===typeof s?(r.classList.add("message"),r.textContent=s):(s.classList.add("message"),r.appendChild(s)),this._domNode.appendChild(r);const o=document.createElement("div");o.classList.add("anchor","below"),this._domNode.appendChild(o),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}(0,c.HW)(v.ID,v,4)},50352:(e,t,i)=>{"use strict";var s,n=i(11007),r=i(90766),o=i(24939),a=i(5662),l=i(31450),c=i(50672),h=i(36677),d=i(75326),u=i(60002),g=i(34175),p=i(78209),m=i(27195),f=i(32848),_=i(56942),v=i(13864),C=i(63591),b=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){return function(i,s){t(i,s,e)}};function S(e,t){const i=t.filter((t=>!e.find((e=>e.equals(t)))));if(i.length>=1){const e=i.map((e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`)).join(", "),t=1===i.length?p.kg("cursorAdded","Cursor added: {0}",e):p.kg("cursorsAdded","Cursors added: {0}",e);(0,n.h5)(t)}}class y extends l.ks{constructor(){super({id:"editor.action.insertCursorAbove",label:p.kg("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let s=!0;i&&!1===i.logicalLine&&(s=!1);const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const r=n.getCursorStates();n.setCursorStates(i.source,3,c.c.addCursorUp(n,r,s)),n.revealTopMostCursor(i.source),S(r,n.getCursorStates())}}class w extends l.ks{constructor(){super({id:"editor.action.insertCursorBelow",label:p.kg("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let s=!0;i&&!1===i.logicalLine&&(s=!1);const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const r=n.getCursorStates();n.setCursorStates(i.source,3,c.c.addCursorDown(n,r,s)),n.revealBottomMostCursor(i.source),S(r,n.getCursorStates())}}class L extends l.ks{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:p.kg("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let s=e.startLineNumber;s<e.endLineNumber;s++){const e=t.getLineMaxColumn(s);i.push(new d.L(s,e,s,e))}e.endColumn>1&&i.push(new d.L(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const i=t.getModel(),s=t.getSelections(),n=t._getViewModel(),r=n.getCursorStates(),o=[];s.forEach((e=>this.getCursorsForSelection(e,i,o))),o.length>0&&t.setSelections(o),S(r,n.getCursorStates())}}class R extends l.ks{constructor(){super({id:"editor.action.addCursorsToBottom",label:p.kg("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),s=t.getModel().getLineCount(),n=[];for(let a=i[0].startLineNumber;a<=s;a++)n.push(new d.L(a,i[0].startColumn,a,i[0].endColumn));const r=t._getViewModel(),o=r.getCursorStates();n.length>0&&t.setSelections(n),S(o,r.getCursorStates())}}class T extends l.ks{constructor(){super({id:"editor.action.addCursorsToTop",label:p.kg("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),s=[];for(let o=i[0].startLineNumber;o>=1;o--)s.push(new d.L(o,i[0].startColumn,o,i[0].endColumn));const n=t._getViewModel(),r=n.getCursorStates();s.length>0&&t.setSelections(s),S(r,n.getCursorStates())}}class x{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class k{static create(e,t){if(!e.hasModel())return null;const i=t.getState();if(!e.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new k(e,t,!1,i.searchString,i.wholeWord,i.matchCase,null);let s,n,r=!1;const o=e.getSelections();1===o.length&&o[0].isEmpty()?(r=!0,s=!0,n=!0):(s=i.wholeWord,n=i.matchCase);const a=e.getSelection();let l,c=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;l=t.word,c=new d.L(a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else l=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new k(e,t,r,l,s,n,c)}constructor(e,t,i,s,n,r,o){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=s,this.wholeWord=n,this.matchCase=r,this.currentMatch=o}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1);return i?new d.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1);return i?new d.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1,1073741824)}}class A extends a.jG{static{this.ID="editor.contrib.multiCursorController"}static get(e){return e.getContribution(A.ID)}constructor(e){super(),this._sessionDispose=this._register(new a.Cm),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=k.create(this._editor,e);if(!t)return;this._session=t;const i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection((e=>{this._ignoreSelectionChange||this._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((()=>{this._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((e=>{(e.matchCase||e.wholeWord)&&this._endSession()})))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new d.L(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const i=e.getState().matchCase;if(!D(this._editor.getModel(),t,i)){const e=this._editor.getModel(),i=[];for(let s=0,n=t.length;s<n;s++)i[s]=this._expandEmptyToWord(e,t[s]);return void this._editor.setSelections(i)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null;const i=e.getState();if(i.isRevealed&&i.searchString.length>0&&i.isRegex){const e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(132):null,!1,1073741824):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(132):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){const e=this._editor.getSelection();for(let i=0,s=t.length;i<s;i++){const s=t[i];if(s.range.intersectRanges(e)){t[i]=t[0],t[0]=s;break}}this._setSelections(t.map((e=>new d.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn))))}}}class N extends l.ks{run(e,t){const i=A.get(t);if(!i)return;const s=t._getViewModel();if(s){const n=s.getCursorStates(),r=g.z0.get(t);if(r)this._run(i,r);else{const s=e.get(C._Y).createInstance(g.z0,t);this._run(i,s),s.dispose()}S(n,s.getCursorStates())}}}class I{constructor(e,t,i,s,n){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=s,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,n&&this._model===n._model&&this._searchText===n._searchText&&this._matchCase===n._matchCase&&this._wordSeparators===n._wordSeparators&&this._modelVersionId===n._modelVersionId&&(this._cachedFindMatches=n._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map((e=>e.range)),this._cachedFindMatches.sort(h.Q.compareRangesUsingStarts)),this._cachedFindMatches}}let O=class extends a.jG{static{s=this}static{this.ID="editor.contrib.selectionHighlighter"}constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(109),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new r.uC((()=>this._update()),300)),this.state=null,this._register(e.onDidChangeConfiguration((t=>{this._isEnabled=e.getOption(109)}))),this._register(e.onDidChangeCursorSelection((e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())}))),this._register(e.onDidChangeModel((e=>{this._setState(null)}))),this._register(e.onDidChangeModelContent((e=>{this._isEnabled&&this.updateSoon.schedule()})));const i=g.z0.get(e);i&&this._register(i.getState().onFindReplaceStateChange((e=>{this._update()}))),this.updateSoon.schedule()}_update(){this._setState(s._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t)return null;if(!i.hasModel())return null;const s=i.getSelection();if(s.startLineNumber!==s.endLineNumber)return null;const n=A.get(i);if(!n)return null;const r=g.z0.get(i);if(!r)return null;let o=n.getSession(r);if(!o){const e=i.getSelections();if(e.length>1){const t=r.getState().matchCase;if(!D(i.getModel(),e,t))return null}o=k.create(i,r)}if(!o)return null;if(o.currentMatch)return null;if(/^[ \t]+$/.test(o.searchText))return null;if(o.searchText.length>200)return null;const a=r.getState(),l=a.matchCase;if(a.isRevealed){let e=a.searchString;l||(e=e.toLowerCase());let t=o.searchText;if(l||(t=t.toLowerCase()),e===t&&o.matchCase===a.matchCase&&o.wholeWord===a.wholeWord&&!a.isRegex)return null}return new I(i.getModel(),o.searchText,o.matchCase,o.wholeWord?i.getOption(132):null,e)}_setState(e){if(this.state=e,!this.state)return void this._decorations.clear();if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const i=this.state.findMatches(),s=this.editor.getSelections();s.sort(h.Q.compareRangesUsingStarts);const n=[];for(let l=0,c=0,d=i.length,u=s.length;l<d;){const e=i[l];if(c>=u)n.push(e),l++;else{const t=h.Q.compareRangesUsingStarts(e,s[c]);t<0?(!s[c].isEmpty()&&h.Q.areIntersecting(e,s[c])||n.push(e),l++):(t>0||l++,c++)}}const r="off"!==this.editor.getOption(81),o=this._languageFeaturesService.documentHighlightProvider.has(t)&&r,a=n.map((e=>({range:e,options:(0,v.v)(o)})));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function D(e,t,i){const s=M(e,t[0],!i);for(let n=1,r=t.length;n<r;n++){const r=t[n];if(r.isEmpty())return!1;if(s!==M(e,r,!i))return!1}return!0}function M(e,t,i){const s=e.getValueInRange(t);return i?s.toLowerCase():s}O=s=b([E(1,_.ILanguageFeaturesService)],O);class P extends l.ks{constructor(){super({id:"editor.action.focusNextCursor",label:p.kg("mutlicursor.focusNextCursor","Focus Next Cursor"),metadata:{description:p.kg("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const n=Array.from(s.getCursorStates()),r=n.shift();r&&(n.push(r),s.setCursorStates(i.source,3,n),s.revealPrimaryCursor(i.source,!0),S(n,s.getCursorStates()))}}class F extends l.ks{constructor(){super({id:"editor.action.focusPreviousCursor",label:p.kg("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),metadata:{description:p.kg("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const s=t._getViewModel();if(s.cursorConfig.readOnly)return;s.model.pushStackElement();const n=Array.from(s.getCursorStates()),r=n.pop();r&&(n.unshift(r),s.setCursorStates(i.source,3,n),s.revealPrimaryCursor(i.source,!0),S(n,s.getCursorStates()))}}(0,l.HW)(A.ID,A,4),(0,l.HW)(O.ID,O,1),(0,l.Fl)(y),(0,l.Fl)(w),(0,l.Fl)(L),(0,l.Fl)(class extends N{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:p.kg("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:2082,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}),(0,l.Fl)(class extends N{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:p.kg("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}),(0,l.Fl)(class extends N{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:p.kg("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:(0,o.m5)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}),(0,l.Fl)(class extends N{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:p.kg("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}),(0,l.Fl)(class extends N{constructor(){super({id:"editor.action.selectHighlights",label:p.kg("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:3114,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.kg({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}),(0,l.Fl)(class extends N{constructor(){super({id:"editor.action.changeAll",label:p.kg("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:f.M$.and(u.R.writable,u.R.editorTextFocus),kbOpts:{kbExpr:u.R.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}),(0,l.Fl)(R),(0,l.Fl)(T),(0,l.Fl)(P),(0,l.Fl)(F)},4519:(e,t,i)=>{"use strict";var s=i(91090),n=i(5662),r=i(31450),o=i(60002),a=i(62083),l=i(56942),c=i(90766),h=i(64383),d=i(41234),u=i(60534),g=i(18447),p=i(631),m=i(79400),f=i(83069),_=i(18938),v=i(50091),C=i(32848);const b={Visible:new C.N1("parameterHintsVisible",!1),MultipleSignatures:new C.N1("parameterHintsMultipleSignatures",!1)};async function E(e,t,i,s,n){const r=e.ordered(t);for(const a of r)try{const e=await a.provideSignatureHelp(t,i,n,s);if(e)return e}catch(o){(0,h.M_)(o)}}var S;v.w.registerCommand("_executeSignatureHelpProvider",(async(e,...t)=>{const[i,s,n]=t;(0,p.j)(m.r.isUri(i)),(0,p.j)(f.y.isIPosition(s)),(0,p.j)("string"===typeof n||!n);const r=e.get(l.ILanguageFeaturesService),o=await e.get(_.ITextModelService).createModelReference(i);try{const e=await E(r.signatureHelpProvider,o.object.textEditorModel,f.y.lift(s),{triggerKind:a.WA.Invoke,isRetrigger:!1,triggerCharacter:n},g.XO.None);if(!e)return;return setTimeout((()=>e.dispose()),0),e.value}finally{o.dispose()}})),function(e){e.Default={type:0};e.Pending=class{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}};e.Active=class{constructor(e){this.hints=e,this.type=1}}}(S||(S={}));class y extends n.jG{static{this.DEFAULT_DELAY=120}constructor(e,t,i=y.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new d.vl),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=S.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new n.HE),this.triggerChars=new u.y,this.retriggerChars=new u.y,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new c.ve(i),this._register(this.editor.onDidBlurEditorWidget((()=>this.cancel()))),this._register(this.editor.onDidChangeConfiguration((()=>this.onEditorConfigurationChange()))),this._register(this.editor.onDidChangeModel((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeModelLanguage((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeCursorSelection((e=>this.onCursorChange(e)))),this._register(this.editor.onDidChangeModelContent((e=>this.onModelContentChange()))),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType((e=>this.onDidType(e)))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=S.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const s=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((()=>this.doTrigger(s)),t).catch(h.dz)}next(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e===e-1,s=this.editor.getOption(86).cycle;!(e<2||i)||s?this.updateActiveSignature(i&&s?0:t+1):this.cancel()}previous(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,s=this.editor.getOption(86).cycle;!(e<2||i)||s?this.updateActiveSignature(i&&s?e-1:t-1):this.cancel()}updateActiveSignature(e){1===this.state.type&&(this.state=new S.Active({...this.state.hints,activeSignature:e}),this._onChangedHints.fire(this.state.hints))}async doTrigger(e){const t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const s=this._pendingTriggers.reduce(w);this._pendingTriggers=[];const n={triggerKind:s.triggerKind,triggerCharacter:s.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const r=this.editor.getModel(),o=this.editor.getPosition();this.state=new S.Pending((0,c.SS)((e=>E(this.providers,r,o,n,e))),i);try{const t=await this.state.request;return e!==this.triggerId?(t?.dispose(),!1):t&&t.value.signatures&&0!==t.value.signatures.length?(this.state=new S.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(t?.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(a){return e===this.triggerId&&(this.state=S.Default),(0,h.dz)(a),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const e=this.editor.getModel();if(e)for(const t of this.providers.ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])if(e.length){const t=e.charCodeAt(0);this.triggerChars.add(t),this.retriggerChars.add(t)}for(const e of t.signatureHelpRetriggerCharacters||[])e.length&&this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:a.WA.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:a.WA.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:a.WA.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function w(e,t){switch(t.triggerKind){case a.WA.Invoke:return t;case a.WA.ContentChange:return e;case a.WA.TriggerCharacter:default:return t}}var L,R=i(78209),T=i(63591),x=i(8597),k=i(11007),A=i(31295),N=i(10350),I=i(91508),O=i(87908),D=i(10154),M=i(20492),P=i(49099),F=i(66261),U=i(61394),H=i(25689),B=i(78381),W=i(90651),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};const G=x.$,j=(0,U.pU)("parameter-hints-next",N.W.chevronDown,R.kg("parameterHintsNextIcon","Icon for show next parameter hint.")),K=(0,U.pU)("parameter-hints-previous",N.W.chevronUp,R.kg("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Y=class extends n.jG{static{L=this}static{this.ID="editor.widget.parameterHintsWidget"}constructor(e,t,i,s,r,o){super(),this.editor=e,this.model=t,this.telemetryService=o,this.renderDisposeables=this._register(new n.Cm),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new M.T({editor:e},r,s)),this.keyVisible=b.Visible.bindTo(i),this.keyMultipleSignatures=b.MultipleSignatures.bindTo(i)}createParameterHintDOMNodes(){const e=G(".editor-widget.parameter-hints-widget"),t=x.BC(e,G(".phwrapper"));t.tabIndex=-1;const i=x.BC(t,G(".controls")),s=x.BC(i,G(".button"+H.L.asCSSSelector(K))),n=x.BC(i,G(".overloads")),r=x.BC(i,G(".button"+H.L.asCSSSelector(j)));this._register(x.ko(s,"click",(e=>{x.fs.stop(e),this.previous()}))),this._register(x.ko(r,"click",(e=>{x.fs.stop(e),this.next()})));const o=G(".body"),a=new A.MU(o,{alwaysConsumeMouseWheel:!0});this._register(a),t.appendChild(a.getDomNode());const l=x.BC(o,G(".signature")),c=x.BC(o,G(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:l,overloads:n,docs:c,scrollbar:a},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((e=>{this.visible&&this.editor.layoutContentWidget(this)})));const h=()=>{if(!this.domNodes)return;const e=this.editor.getOption(50),t=this.domNodes.element;t.style.fontSize=`${e.fontSize}px`,t.style.lineHeight=""+e.lineHeight/e.fontSize,t.style.setProperty("--vscode-parameterHintsWidget-editorFontFamily",e.fontFamily),t.style.setProperty("--vscode-parameterHintsWidget-editorFontFamilyDefault",O.jU.fontFamily)};h(),this._register(d.Jh.chain(this.editor.onDidChangeConfiguration.bind(this.editor),(e=>e.filter((e=>e.hasChanged(50)))))(h)),this._register(this.editor.onDidLayoutChange((e=>this.updateMaxHeight()))),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((()=>{this.domNodes?.element.classList.add("visible")}),100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes?.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){if(this.renderDisposeables.clear(),!this.domNodes)return;const t=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",t),this.keyMultipleSignatures.set(t),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const i=e.signatures[e.activeSignature];if(!i)return;const s=x.BC(this.domNodes.signature,G(".code")),n=i.parameters.length>0,r=i.activeParameter??e.activeParameter;if(n)this.renderParameters(s,i,r);else{x.BC(s,G("span")).textContent=i.label}const o=i.parameters[r];if(o?.documentation){const e=G("span.documentation");if("string"===typeof o.documentation)e.textContent=o.documentation;else{const t=this.renderMarkdownDocs(o.documentation);e.appendChild(t.element)}x.BC(this.domNodes.docs,G("p",{},e))}if(void 0===i.documentation);else if("string"===typeof i.documentation)x.BC(this.domNodes.docs,G("p",{},i.documentation));else{const e=this.renderMarkdownDocs(i.documentation);x.BC(this.domNodes.docs,e.element)}const a=this.hasDocs(i,o);if(this.domNodes.signature.classList.toggle("has-docs",a),this.domNodes.docs.classList.toggle("empty",!a),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,o){let e="";const t=i.parameters[r];e=Array.isArray(t.label)?i.label.substring(t.label[0],t.label[1]):t.label,t.documentation&&(e+="string"===typeof t.documentation?`, ${t.documentation}`:`, ${t.documentation.value}`),i.documentation&&(e+="string"===typeof i.documentation?`, ${i.documentation}`:`, ${i.documentation.value}`),this.announcedLabel!==e&&(k.xE(R.kg("hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=new B.W,i=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{this.domNodes?.scrollbar.scanDomNode()}}));i.element.classList.add("markdown-docs");const s=t.elapsed();return s>300&&this.telemetryService.publicLog2("parameterHints.parseMarkdown",{renderDuration:s}),i}hasDocs(e,t){return!!(t&&"string"===typeof t.documentation&&(0,p.eU)(t.documentation).length>0)||(!!(t&&"object"===typeof t.documentation&&(0,p.eU)(t.documentation).value.length>0)||(!!(e.documentation&&"string"===typeof e.documentation&&(0,p.eU)(e.documentation).length>0)||!!(e.documentation&&"object"===typeof e.documentation&&(0,p.eU)(e.documentation.value).length>0)))}renderParameters(e,t,i){const[s,n]=this.getParameterLabelOffsets(t,i),r=document.createElement("span");r.textContent=t.label.substring(0,s);const o=document.createElement("span");o.textContent=t.label.substring(s,n),o.className="parameter active";const a=document.createElement("span");a.textContent=t.label.substring(n),x.BC(e,r,o,a)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const t=new RegExp(`(\\W|^)${(0,I.bm)(i.label)}(?=\\W|$)`,"g");t.test(e.label);const s=t.lastIndex-i.label.length;return s>=0?[s,t.lastIndex]:[0,0]}return[0,0]}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return L.ID}updateMaxHeight(){if(!this.domNodes)return;const e=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=e;const t=this.domNodes.element.getElementsByClassName("phwrapper");t.length&&(t[0].style.maxHeight=e)}};Y=L=V([z(2,C.fN),z(3,P.C),z(4,D.L),z(5,W.k)],Y),(0,F.x1A)("editorHoverWidget.highlightForeground",F.QI5,R.kg("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));var q,$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};let X=class extends n.jG{static{q=this}static{this.ID="editor.controller.parameterHints"}static get(e){return e.getContribution(q.ID)}constructor(e,t,i){super(),this.editor=e,this.model=this._register(new y(e,i.signatureHelpProvider)),this._register(this.model.onChangedHints((e=>{e?(this.widget.value.show(),this.widget.value.render(e)):this.widget.rawValue?.hide()}))),this.widget=new s.d((()=>this._register(t.createInstance(Y,this.editor,this.model))))}cancel(){this.model.cancel()}previous(){this.widget.rawValue?.previous()}next(){this.widget.rawValue?.next()}trigger(e){this.model.trigger(e,0)}};X=q=$([Q(1,T._Y),Q(2,l.ILanguageFeaturesService)],X);class Z extends r.ks{constructor(){super({id:"editor.action.triggerParameterHints",label:R.kg("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:o.R.hasSignatureHelpProvider,kbOpts:{kbExpr:o.R.editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=X.get(t);i?.trigger({triggerKind:a.WA.Invoke})}}(0,r.HW)(X.ID,X,2),(0,r.Fl)(Z);const J=r.DX.bindToContribution(X.get);(0,r.E_)(new J({id:"closeParameterHints",precondition:b.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:9,secondary:[1033]}})),(0,r.E_)(new J({id:"showPrevParameterHint",precondition:C.M$.and(b.Visible,b.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,r.E_)(new J({id:"showNextParameterHint",precondition:C.M$.and(b.Visible,b.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:o.R.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},84226:(e,t,i)=>{"use strict";i.d(t,{zn:()=>O,x2:()=>D,j6:()=>U,RL:()=>P,zl:()=>V,n6:()=>z,z0:()=>H,_X:()=>B,e3:()=>W});var s=i(8597),n=i(11799),r=i(36921),o=i(10350),a=i(25689),l=i(47661),c=i(41234),h=i(10146),d=i(31450),u=i(80301),g=i(29163),p=i(92403),m=i(96032),f=i(5662),_=i(36677),v=i(87289);const C=new l.Q1(new l.bU(0,122,204)),b={showArrow:!0,showFrame:!0,className:"",frameColor:C,arrowColor:C,keepEditorSelection:!1};class E{constructor(e,t,i,s,n,r,o,a){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=s,this.showInHiddenAreas=o,this.ordinal=a,this._onDomNodeTop=n,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class S{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class y{static{this._IdGenerator=new m.n(".arrow-decoration-")}constructor(e){this._editor=e,this._ruleName=y._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),s.U2(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){s.U2(this._ruleName),s.Wt(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(e){1===e.column&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:_.Q.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}class w{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new f.Cm,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=h.Go(t),h.co(this.options,b,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)})))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null})),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new y(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){if(this.domNode.style.height=`${e}px`,this.container){const t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}this._resizeSash?.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=_.Q.isIRange(e)?_.Q.lift(e):_.Q.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:v.kI.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow?.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(67);let t=0;if(this.options.showArrow){t+=2*Math.round(e/3)}if(this.options.showFrame){t+=2*Math.round(e/9)}return t}_showImpl(e,t){const i=e.getStartPosition(),s=this.editor.getLayoutInfo(),n=this._getWidth(s);this.domNode.style.width=`${n}px`,this.domNode.style.left=this._getLeft(s)+"px";const r=document.createElement("div");r.style.overflow="hidden";const o=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const e=Math.max(12,this.editor.getLayoutInfo().height/o*.8);t=Math.min(t,e)}let a=0,l=0;if(this._arrow&&this.options.showArrow&&(a=Math.round(o/3),this._arrow.height=a,this._arrow.show(i)),this.options.showFrame&&(l=Math.round(o/9)),this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new E(r,i.lineNumber,i.column,t,(e=>this._onViewZoneTop(e)),(e=>this._onViewZoneHeight(e)),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new S("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)})),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:l;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}const c=t*o-this._decoratingElementsHeight();this.container&&(this.container.style.top=a+"px",this.container.style.height=c+"px",this.container.style.overflow="hidden"),this._doLayout(c,n),this.options.keepEditorSelection||this.editor.setSelection(e);const h=this.editor.getModel();if(h){const t=h.validateRange(new _.Q(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(t,t.startLineNumber===h.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))}))}_initSash(){if(this._resizeSash)return;let e;this._resizeSash=this._disposables.add(new p.m(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((()=>{e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(67),s=i<0?Math.ceil(i):Math.floor(i),n=e.heightInLines+s;n>5&&n<35&&this._relayout(n)}})))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var L=i(78209),R=i(57629),T=i(32848),x=i(14718),k=i(63591),A=i(66261),N=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},I=function(e,t){return function(i,s){t(i,s,e)}};const O=(0,k.u1)("IPeekViewService");var D;(0,x.v)(O,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose());this._widgets.set(e,{widget:t,listener:t.onDidClose((()=>{const i=this._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),this._widgets.delete(e))}))})}},1),function(e){e.inPeekEditor=new T.N1("inReferenceSearchEditor",!0,L.kg("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(D||(D={}));let M=class{static{this.ID="editor.contrib.referenceController"}constructor(e,t){e instanceof g.t&&D.inPeekEditor.bindTo(t)}dispose(){}};function P(e){const t=e.get(u.T).getFocusedCodeEditor();return t instanceof g.t?t.getParentEditor():t}M=N([I(1,T.fN)],M),(0,d.HW)(M.ID,M,0);const F={headerBackgroundColor:l.Q1.white,primaryHeadingColor:l.Q1.fromHex("#333333"),secondaryHeadingColor:l.Q1.fromHex("#6c6c6cb3")};let U=class extends w{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new c.vl,this.onDidClose=this._onDidClose.event,h.co(this.options,F,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=s.$(".head"),this._bodyElement=s.$(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=s.$(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),s.b2(this._titleElement,"click",(e=>this._onTitleClick(e)))),s.BC(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=s.$("span.filename"),this._secondaryHeading=s.$("span.dirname"),this._metaHeading=s.$("span.meta"),s.BC(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const i=s.$(".peekview-actions");s.BC(this._headElement,i);const l=this._getActionBarOptions();this._actionbarWidget=new n.E(i,l),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new r.rc("peekview.close",L.kg("label.close","Close"),a.L.asClassName(o.W.close),!0,(()=>(this.dispose(),Promise.resolve()))),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:R.rN.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:s.w_(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,s.WU(this._metaHeading)):s.jD(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const i=Math.ceil(1.2*this.editor.getOption(67)),s=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(s,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};U=N([I(2,k._Y)],U);const H=(0,A.x1A)("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:l.Q1.black,hcLight:l.Q1.white},L.kg("peekViewTitleBackground","Background color of the peek view title area.")),B=(0,A.x1A)("peekViewTitleLabel.foreground",{dark:l.Q1.white,light:l.Q1.black,hcDark:l.Q1.white,hcLight:A.By2},L.kg("peekViewTitleForeground","Color of the peek view title.")),W=(0,A.x1A)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},L.kg("peekViewTitleInfoForeground","Color of the peek view title info.")),V=(0,A.x1A)("peekView.border",{dark:A.pOz,light:A.pOz,hcDark:A.b1q,hcLight:A.b1q},L.kg("peekViewBorder","Color of the peek view borders and arrow.")),z=(0,A.x1A)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:l.Q1.black,hcLight:l.Q1.white},L.kg("peekViewResultsBackground","Background color of the peek view result list.")),G=((0,A.x1A)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:l.Q1.white,hcLight:A.By2},L.kg("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),(0,A.x1A)("peekViewResult.fileForeground",{dark:l.Q1.white,light:"#1E1E1E",hcDark:l.Q1.white,hcLight:A.By2},L.kg("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),(0,A.x1A)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},L.kg("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),(0,A.x1A)("peekViewResult.selectionForeground",{dark:l.Q1.white,light:"#6C6C6C",hcDark:l.Q1.white,hcLight:A.By2},L.kg("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),(0,A.x1A)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:l.Q1.black,hcLight:l.Q1.white},L.kg("peekViewEditorBackground","Background color of the peek view editor.")));(0,A.x1A)("peekViewEditorGutter.background",G,L.kg("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),(0,A.x1A)("peekViewEditorStickyScroll.background",G,L.kg("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),(0,A.x1A)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},L.kg("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),(0,A.x1A)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},L.kg("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),(0,A.x1A)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:A.buw,hcLight:A.buw},L.kg("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},85646:(e,t,i)=>{"use strict";var s=i(31450),n=i(87119),r=i(78209),o=i(83844),a=i(1098),l=i(30076),c=i(41127),h=i(31308),d=i(63591),u=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){return function(i,s){t(i,s,e)}};class p{constructor(e){this.instantiationService=e}init(...e){}}let m=class extends p{constructor(e,t){super(t),this.init(e)}};var f;m=u([g(1,d._Y)],m),(0,s.HW)(a.X.ID,(f=()=>a.X,(0,l.e)()?function(e,t){return class extends t{constructor(){super(...arguments),this._autorun=void 0}init(...t){this._autorun=(0,h.yC)(((i,s)=>{const n=(0,c.b)(e(),i);s.add(this.instantiationService.createInstance(n,...t))}))}dispose(){this._autorun?.dispose()}}}(f,m):f()),0),(0,o.x1)("editor.placeholder.foreground",n.Ek,(0,r.kg)("placeholderForeground","Foreground color of the placeholder text in the editor."))},1098:(e,t,i)=>{"use strict";i.d(t,{X:()=>c});var s=i(8597),n=i(51241),r=i(5662),o=i(31308),a=i(87958),l=i(38844);class c extends r.jG{static{this.ID="editor.contrib.placeholderText"}constructor(e){var t,i;super(),this._editor=e,this._editorObs=(0,l.Ud)(this._editor),this._placeholderText=this._editorObs.getOption(88),this._state=(0,o.C)({owner:this,equalsFn:n.dB},(e=>{const t=this._placeholderText.read(e);if(t&&this._editorObs.valueIsEmpty.read(e))return{placeholder:t}})),this._shouldViewBeAlive=(t=this,i=e=>void 0!==this._state.read(e)?.placeholder,(0,o.ZX)(t,((e,t)=>!0===t||i(e)))),this._view=(0,a.rm)(((e,t)=>{if(!this._shouldViewBeAlive.read(e))return;const i=(0,s.h)("div.editorPlaceholder");t.add((0,o.fm)((e=>{const t=this._state.read(e),s=void 0!==t?.placeholder;i.root.style.display=s?"block":"none",i.root.innerText=t?.placeholder??""}))),t.add((0,o.fm)((e=>{const t=this._editorObs.layoutInfo.read(e);i.root.style.left=`${t.contentLeft}px`,i.root.style.width=t.contentWidth-t.verticalScrollbarWidth+"px",i.root.style.top=`${this._editor.getTopForLineNumber(0)}px`}))),t.add((0,o.fm)((e=>{i.root.style.fontFamily=this._editorObs.getOption(49).read(e),i.root.style.fontSize=this._editorObs.getOption(52).read(e)+"px",i.root.style.lineHeight=this._editorObs.getOption(67).read(e)+"px"}))),t.add(this._editorObs.createOverlayWidget({allowEditorOverflow:!1,minContentWidthInPx:(0,o.lk)(0),position:(0,o.lk)(null),domNode:i.root}))})),this._view.recomputeInitiallyAndOnChange(this._store)}}},12437:(e,t,i)=>{"use strict";i.d(t,{o:()=>h});var s=i(6921),n=i(5662),r=i(34326),o=i(16223),a=i(87119),l=i(47612),c=i(11007);class h{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t,i){const s=new n.Cm;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new n.HE);return r.value=this.doProvide(e,t,i),s.add(this.onDidActiveTextEditorControlChange((()=>{r.value=void 0,r.value=this.doProvide(e,t)}))),s}doProvide(e,t,i){const o=new n.Cm,a=this.activeTextEditorControl;if(a&&this.canProvideWithTextEditor(a)){const l={editor:a},c=(0,r.jA)(a);if(c){let e=a.saveViewState()??void 0;o.add(c.onDidChangeCursorPosition((()=>{e=a.saveViewState()??void 0}))),l.restoreViewState=()=>{e&&a===this.activeTextEditorControl&&a.restoreViewState(e)},o.add((0,s.P)(t.onCancellationRequested)((()=>l.restoreViewState?.())))}o.add((0,n.s)((()=>this.clearDecorations(a)))),o.add(this.provideWithTextEditor(l,e,t,i))}else o.add(this.provideWithoutTextEditor(e,t));return o}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,"code.jump"),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();const i=e.getModel();i&&"getLineContent"in i&&(0,c.h5)(`${i.getLineContent(t.range.startLineNumber)}`)}getModel(e){return(0,r.Np)(e)?e.getModel()?.modified:e.getModel()}addDecorations(e,t){e.changeDecorations((e=>{const i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,l.Yf)(a.vp),position:o.A5.Full}}}],[n,r]=e.deltaDecorations(i,s);this.rangeHighlightDecorationId={rangeHighlightId:n,overviewRulerDecorationId:r}}))}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations((e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])})),this.rangeHighlightDecorationId=void 0)}}},59731:(e,t,i)=>{"use strict";var s=i(16980),n=i(5662),r=i(31450),o=i(99645),a=i(78209);class l extends n.jG{static{this.ID="editor.contrib.readOnlyMessageController"}constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit((()=>this._onDidAttemptReadOnlyEdit())))}_onDidAttemptReadOnlyEdit(){const e=o.k.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(93);t||(t=this.editor.isSimpleWidget?new s.Bc(a.kg("editor.simple.readonly","Cannot edit in read-only input")):new s.Bc(a.kg("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}}(0,r.HW)(l.ID,l,2)},50071:(e,t,i)=>{"use strict";var s=i(11007),n=i(90766),r=i(18447),o=i(64383),a=i(16980),l=i(5662),c=i(631),h=i(79400),d=i(31450),u=i(80537),g=i(80301),p=i(83069),m=i(36677),f=i(60002),_=i(62083),v=i(56942),C=i(90360),b=i(50868),E=i(99645),S=i(78209),y=i(27195),w=i(1646),L=i(32848),R=i(63591),T=i(18801),x=i(58591),k=i(73823),A=i(46359),N=i(90651),I=i(8597),O=i(72962),D=i(48196),M=i(42904),P=i(20370),F=i(93090),U=i(25890),H=i(10350),B=i(41234),W=i(78381),V=i(73157),z=i(98031),G=i(19070),j=i(66261),K=i(47612),Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};const $=new L.N1("renameInputVisible",!1,S.kg("renameInputVisible","Whether the rename input widget is visible"));new L.N1("renameInputFocused",!1,S.kg("renameInputFocused","Whether the rename input widget is focused"));let Q=class{constructor(e,t,i,s,n,r){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=s,this._logService=r,this.allowEditorOverflow=!0,this._disposables=new l.Cm,this._visibleContextKey=$.bindTo(n),this._isEditingRenameCandidate=!1,this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,this._candidates=new Set,this._beforeFirstInputFieldEditSW=new W.W,this._inputWithButton=new Z,this._disposables.add(this._inputWithButton),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._inputWithButton.domNode),this._renameCandidateListView=this._disposables.add(new X(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:e=>{this._inputWithButton.input.value=e,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._inputWithButton.onDidInputChange((()=>{void 0!==this._renameCandidateListView?.focusedCandidate&&(this._isEditingRenameCandidate=!0),this._timeBeforeFirstInputFieldEdit??=this._beforeFirstInputFieldEditSW.elapsed(),!1===this._renameCandidateProvidersCts?.token.isCancellationRequested&&this._renameCandidateProvidersCts.cancel(),this._renameCandidateListView?.clearFocus()}))),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){if(!this._domNode)return;const t=e.getColor(j.f9l),i=e.getColor(j.DSL);this._domNode.style.backgroundColor=String(e.getColor(j.CgL)??""),this._domNode.style.boxShadow=t?` 0 0 8px 2px ${t}`:"",this._domNode.style.border=i?`1px solid ${i}`:"",this._domNode.style.color=String(e.getColor(j.cws)??"");const s=e.getColor(j.Zgs);this._inputWithButton.domNode.style.backgroundColor=String(e.getColor(j.L4c)??""),this._inputWithButton.input.style.backgroundColor=String(e.getColor(j.L4c)??""),this._inputWithButton.domNode.style.borderWidth=s?"1px":"0px",this._inputWithButton.domNode.style.borderStyle=s?"solid":"none",this._inputWithButton.domNode.style.borderColor=s?.toString()??"none"}_updateFont(){if(void 0===this._domNode)return;(0,c.j)(void 0!==this._label,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._inputWithButton.input);const e=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(e.fontSize)}px`}_computeLabelFontSize(e){return.8*e}getPosition(){if(!this._visible)return null;if(!this._editor.hasModel()||!this._editor.getDomNode())return null;const e=I.tG(this.getDomNode().ownerDocument.body),t=I.BK(this._editor.getDomNode()),i=this._getTopForPosition();this._nPxAvailableAbove=i+t.top,this._nPxAvailableBelow=e.height-this._nPxAvailableAbove;const s=this._editor.getOption(67),{totalHeight:n}=J.getLayoutInfo({lineHeight:s}),r=this._nPxAvailableBelow>6*n?[2,1]:[1,2];return{position:this._position,preference:r}}beforeRender(){const[e,t]=this._acceptKeybindings;return this._label.innerText=S.kg({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",this._keybindingService.lookupKeybinding(e)?.getLabel(),this._keybindingService.lookupKeybinding(t)?.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(e){if(null===e)return void this.cancelInput(!0,"afterRender (because position is null)");if(!this._editor.hasModel()||!this._editor.getDomNode())return;(0,c.j)(this._renameCandidateListView),(0,c.j)(void 0!==this._nPxAvailableAbove),(0,c.j)(void 0!==this._nPxAvailableBelow);const t=I.OK(this._inputWithButton.domNode),i=I.OK(this._label);let s;s=2===e?this._nPxAvailableBelow:this._nPxAvailableAbove,this._renameCandidateListView.layout({height:s-i-t,width:I.Tr(this._inputWithButton.domNode)})}acceptInput(e){this._trace("invoking acceptInput"),this._currentAcceptInput?.(e)}cancelInput(e,t){this._currentCancelInput?.(e)}focusNextRenameSuggestion(){this._renameCandidateListView?.focusNext()||(this._inputWithButton.input.value=this._currentName)}focusPreviousRenameSuggestion(){this._renameCandidateListView?.focusPrevious()||(this._inputWithButton.input.value=this._currentName)}getInput(e,t,i,s,r){const{start:o,end:a}=this._getSelection(e,t);this._renameCts=r;const h=new l.Cm;this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,void 0===s?this._inputWithButton.button.style.display="none":(this._inputWithButton.button.style.display="flex",this._requestRenameCandidatesOnce=s,this._requestRenameCandidates(t,!1),h.add(I.ko(this._inputWithButton.button,"click",(()=>this._requestRenameCandidates(t,!0)))),h.add(I.ko(this._inputWithButton.button,I.Bx.KEY_DOWN,(e=>{const i=new O.Z(e);(i.equals(3)||i.equals(10))&&(i.stopPropagation(),i.preventDefault(),this._requestRenameCandidates(t,!0))})))),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",i),this._position=new p.y(e.startLineNumber,e.startColumn),this._currentName=t,this._inputWithButton.input.value=t,this._inputWithButton.input.setAttribute("selectionStart",o.toString()),this._inputWithButton.input.setAttribute("selectionEnd",a.toString()),this._inputWithButton.input.size=Math.max(1.1*(e.endColumn-e.startColumn),20),this._beforeFirstInputFieldEditSW.reset(),h.add((0,l.s)((()=>{this._renameCts=void 0,r.dispose(!0)}))),h.add((0,l.s)((()=>{void 0!==this._renameCandidateProvidersCts&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)}))),h.add((0,l.s)((()=>this._candidates.clear())));const d=new n.Zv;return d.p.finally((()=>{h.dispose(),this._hide()})),this._currentCancelInput=e=>(this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView?.clearCandidates(),d.complete(e),!0),this._currentAcceptInput=e=>{this._trace("invoking _currentAcceptInput"),(0,c.j)(void 0!==this._renameCandidateListView);const s=this._renameCandidateListView.nCandidates;let n,r;const o=this._renameCandidateListView.focusedCandidate;void 0!==o?(this._trace("using new name from renameSuggestion"),n=o,r={k:"renameSuggestion"}):(this._trace("using new name from inputField"),n=this._inputWithButton.input.value,r=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),n!==t&&0!==n.trim().length?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),d.complete({newName:n,wantsPreview:i&&e,stats:{source:r,nRenameSuggestions:s,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit,nRenameSuggestionsInvocations:this._nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:this._hadAutomaticRenameSuggestionsInvocation}})):this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)")},h.add(r.token.onCancellationRequested((()=>this.cancelInput(!0,"cts.token.onCancellationRequested")))),h.add(this._editor.onDidBlurEditorWidget((()=>this.cancelInput(!this._domNode?.ownerDocument.hasFocus(),"editor.onDidBlurEditorWidget")))),this._show(),d.p}_requestRenameCandidates(e,t){if(void 0!==this._requestRenameCandidatesOnce&&(void 0!==this._renameCandidateProvidersCts&&this._renameCandidateProvidersCts.dispose(!0),(0,c.j)(this._renameCts),"stop"!==this._inputWithButton.buttonState)){this._renameCandidateProvidersCts=new r.Qi;const i=t?_.YT.Invoke:_.YT.Automatic,s=this._requestRenameCandidatesOnce(i,this._renameCandidateProvidersCts.token);if(0===s.length)return void this._inputWithButton.setSparkleButton();t||(this._hadAutomaticRenameSuggestionsInvocation=!0),this._nRenameSuggestionsInvocations+=1,this._inputWithButton.setStopButton(),this._updateRenameCandidates(s,e,this._renameCts.token)}}_getSelection(e,t){(0,c.j)(this._editor.hasModel());const i=this._editor.getSelection();let s=0,n=t.length;return m.Q.isEmpty(i)||m.Q.spansMultipleLines(i)||!m.Q.containsRange(e,i)||(s=Math.max(0,i.startColumn-e.startColumn),n=Math.min(e.endColumn,i.endColumn)-e.startColumn),{start:s,end:n}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((()=>{this._inputWithButton.input.focus(),this._inputWithButton.input.setSelectionRange(parseInt(this._inputWithButton.input.getAttribute("selectionStart")),parseInt(this._inputWithButton.input.getAttribute("selectionEnd")))}),100)}async _updateRenameCandidates(e,t,i){const s=(...e)=>this._trace("_updateRenameCandidates",...e);s("start");const r=await(0,n.PK)(Promise.allSettled(e),i);if(this._inputWithButton.setSparkleButton(),void 0===r)return void s("returning early - received updateRenameCandidates results - undefined");const o=r.flatMap((e=>"fulfilled"===e.status&&(0,c.O9)(e.value)?e.value:[]));s(`received updateRenameCandidates results - total (unfiltered) ${o.length} candidates.`);const a=U.dM(o,(e=>e.newSymbolName));s(`distinct candidates - ${a.length} candidates.`);const l=a.filter((({newSymbolName:e})=>e.trim().length>0&&e!==this._inputWithButton.input.value&&e!==t&&!this._candidates.has(e)));s(`valid distinct candidates - ${o.length} candidates.`),l.forEach((e=>this._candidates.add(e.newSymbolName))),l.length<1?s("returning early - no valid distinct candidates"):(s("setting candidates"),this._renameCandidateListView.setCandidates(l),s("asking editor to re-layout"),this._editor.layoutContentWidget(this))}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){const e=this._editor.getVisibleRanges();let t;return e.length>0?t=e[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),t=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(t)}_trace(...e){this._logService.trace("RenameWidget",...e)}};Q=Y([q(2,K.Gy),q(3,z.b),q(4,L.fN),q(5,T.rr)],Q);class X{constructor(e,t){this._disposables=new l.Cm,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=t.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=t.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),this._listContainer.className="rename-box rename-candidate-list-container",e.appendChild(this._listContainer),this._listWidget=X._createListWidget(this._listContainer,this._candidateViewHeight,t.fontInfo),this._listWidget.onDidChangeFocus((e=>{1===e.elements.length&&t.onFocusChange(e.elements[0].newSymbolName)}),this._disposables),this._listWidget.onDidChangeSelection((e=>{1===e.elements.length&&t.onSelectionChange()}),this._disposables),this._disposables.add(this._listWidget.onDidBlur((e=>{this._listWidget.setFocus([])}))),this._listWidget.style((0,G.t8)({listInactiveFocusForeground:j.nH,listInactiveFocusBackground:j.AlL}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout({height:e,width:t}){this._availableHeight=e,this._minimumWidth=t}setCandidates(e){this._listWidget.splice(0,0,e);const t=this._pickListHeight(this._listWidget.length),i=this._pickListWidth(e);this._listWidget.layout(t,i),this._listContainer.style.height=`${t}px`,this._listContainer.style.width=`${i}px`,s.h5(S.kg("renameSuggestionsReceivedAria","Received {0} rename suggestions",e.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(0===this._listWidget.length)return;const e=this._listWidget.getSelectedElements()[0];if(void 0!==e)return e.newSymbolName;const t=this._listWidget.getFocusedElements()[0];return void 0!==t?t.newSymbolName:void 0}focusNext(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();if(0===e.length)return this._listWidget.focusFirst(),this._listWidget.reveal(0),!0;if(e[0]===this._listWidget.length-1)return this._listWidget.setFocus([]),this._listWidget.reveal(0),!1;{this._listWidget.focusNext();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}focusPrevious(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();if(0===e.length){this._listWidget.focusLast();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}if(0===e[0])return this._listWidget.setFocus([]),!1;{this._listWidget.focusPrevious();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){const{totalHeight:e}=J.getLayoutInfo({lineHeight:this._lineHeight});return e}_pickListHeight(e){const t=this._candidateViewHeight*e;return Math.min(t,this._availableHeight,7*this._candidateViewHeight)}_pickListWidth(e){const t=Math.ceil(Math.max(...e.map((e=>e.newSymbolName.length)))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+t+10)}static _createListWidget(e,t,i){const s=new class{getTemplateId(e){return"candidate"}getHeight(e){return t}},n=new class{constructor(){this.templateId="candidate"}renderTemplate(e){return new J(e,i)}renderElement(e,t,i){i.populate(e)}disposeTemplate(e){e.dispose()}};return new F.B8("NewSymbolNameCandidates",e,s,[n],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}}class Z{constructor(){this._onDidInputChange=new B.vl,this.onDidInputChange=this._onDidInputChange.event,this._disposables=new l.Cm}get domNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="rename-input-with-button",this._domNode.style.display="flex",this._domNode.style.flexDirection="row",this._domNode.style.alignItems="center",this._inputNode=document.createElement("input"),this._inputNode.className="rename-input",this._inputNode.type="text",this._inputNode.style.border="none",this._inputNode.setAttribute("aria-label",S.kg("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._inputNode),this._buttonNode=document.createElement("div"),this._buttonNode.className="rename-suggestions-button",this._buttonNode.setAttribute("tabindex","0"),this._buttonGenHoverText=S.kg("generateRenameSuggestionsButton","Generate new name suggestions"),this._buttonCancelHoverText=S.kg("cancelRenameSuggestionsButton","Cancel"),this._buttonHover=(0,D.i)().setupManagedHover((0,M.nZ)("element"),this._buttonNode,this._buttonGenHoverText),this._disposables.add(this._buttonHover),this._domNode.appendChild(this._buttonNode),this._disposables.add(I.ko(this.input,I.Bx.INPUT,(()=>this._onDidInputChange.fire()))),this._disposables.add(I.ko(this.input,I.Bx.KEY_DOWN,(e=>{const t=new O.Z(e);15!==t.keyCode&&17!==t.keyCode||this._onDidInputChange.fire()}))),this._disposables.add(I.ko(this.input,I.Bx.CLICK,(()=>this._onDidInputChange.fire()))),this._disposables.add(I.ko(this.input,I.Bx.FOCUS,(()=>{this.domNode.style.outlineWidth="1px",this.domNode.style.outlineStyle="solid",this.domNode.style.outlineOffset="-1px",this.domNode.style.outlineColor="var(--vscode-focusBorder)"}))),this._disposables.add(I.ko(this.input,I.Bx.BLUR,(()=>{this.domNode.style.outline="none"})))),this._domNode}get input(){return(0,c.j)(this._inputNode),this._inputNode}get button(){return(0,c.j)(this._buttonNode),this._buttonNode}get buttonState(){return this._buttonState}setSparkleButton(){this._buttonState="sparkle",this._sparkleIcon??=(0,P.s)(H.W.sparkle),I.w_(this.button),this.button.appendChild(this._sparkleIcon),this.button.setAttribute("aria-label","Generating new name suggestions"),this._buttonHover?.update(this._buttonGenHoverText),this.input.focus()}setStopButton(){this._buttonState="stop",this._stopIcon??=(0,P.s)(H.W.primitiveSquare),I.w_(this.button),this.button.appendChild(this._stopIcon),this.button.setAttribute("aria-label","Cancel generating new name suggestions"),this._buttonHover?.update(this._buttonCancelHoverText),this.input.focus()}dispose(){this._disposables.dispose()}}class J{static{this._PADDING=2}constructor(e,t){this._domNode=document.createElement("div"),this._domNode.className="rename-box rename-candidate",this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${t.lineHeight}px`,this._domNode.style.padding=`${J._PADDING}px`;const i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.width=i.style.height=.8*t.lineHeight+"px",this._domNode.appendChild(i),this._icon=(0,P.s)(H.W.sparkle),this._icon.style.display="none",i.appendChild(this._icon),this._label=document.createElement("div"),V.M(this._label,t),this._domNode.appendChild(this._label),e.appendChild(this._domNode)}populate(e){this._updateIcon(e),this._updateLabel(e)}_updateIcon(e){const t=!!e.tags?.includes(_.OV.AIGenerated);this._icon.style.display=t?"inherit":"none"}_updateLabel(e){this._label.innerText=e.newSymbolName}static getLayoutInfo({lineHeight:e}){return{totalHeight:e+2*J._PADDING}}dispose(){}}var ee,te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};class se{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}async resolveRenameLocation(e){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){const i=this._providers[this._providerRenameIdx];if(!i.resolveRenameLocation)break;const s=await i.resolveRenameLocation(this.model,this.position,e);if(s){if(!s.rejectReason)return s;t.push(s.rejectReason)}}this._providerRenameIdx=0;const i=this.model.getWordAtPosition(this.position);return i?{range:new m.Q(this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word,rejectReason:t.length>0?t.join("\n"):void 0}:{range:m.Q.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}async provideRenameEdits(e,t){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}async _provideRenameEdits(e,t,i,s){const n=this._providers[t];if(!n)return{edits:[],rejectReason:i.join("\n")};const r=await n.provideRenameEdits(this.model,this.position,e,s);return r?r.rejectReason?this._provideRenameEdits(e,t+1,i.concat(r.rejectReason),s):r:this._provideRenameEdits(e,t+1,i.concat(S.kg("no result","No result.")),s)}}let ne=class{static{ee=this}static{this.ID="editor.contrib.renameController"}static get(e){return e.getContribution(ee.ID)}constructor(e,t,i,s,n,o,a,c,h){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=s,this._progressService=n,this._logService=o,this._configService=a,this._languageFeaturesService=c,this._telemetryService=h,this._disposableStore=new l.Cm,this._cts=new r.Qi,this._renameWidget=this._disposableStore.add(this._instaService.createInstance(Q,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){const e=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new r.Qi,!this.editor.hasModel())return void e("editor has no model");const t=this.editor.getPosition(),i=new se(this.editor.getModel(),t,this._languageFeaturesService.renameProvider);if(!i.hasProvider())return void e("skeleton has no provider");const l=new b.gI(this.editor,5,void 0,this._cts.token);let c;try{e("resolving rename location");const t=i.resolveRenameLocation(l.token);this._progressService.showWhile(t,250),c=await t,e("resolved rename location")}catch(C){return void(C instanceof o.AL?e("resolve rename location cancelled",JSON.stringify(C,null,"\t")):(e("resolve rename location failed",C instanceof Error?C:JSON.stringify(C,null,"\t")),("string"===typeof C||(0,a.VS)(C))&&E.k.get(this.editor)?.showMessage(C||S.kg("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),t)))}finally{l.dispose()}if(!c)return void e("returning early - no loc");if(c.rejectReason)return e(`returning early - rejected with reason: ${c.rejectReason}`,c.rejectReason),void E.k.get(this.editor)?.showMessage(c.rejectReason,t);if(l.token.isCancellationRequested)return void e("returning early - cts1 cancelled");const h=new b.gI(this.editor,5,c.range,this._cts.token),d=this.editor.getModel(),u=this._languageFeaturesService.newSymbolNamesProvider.all(d),g=await Promise.all(u.map((async e=>[e,await e.supportsAutomaticNewSymbolNamesTriggerKind??!1])));e("creating rename input field and awaiting its result");const p=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),f=await this._renameWidget.getInput(c.range,c.text,p,u.length>0?(e,t)=>{let i=g.slice();return e===_.YT.Automatic&&(i=i.filter((([e,t])=>t))),i.map((([i])=>i.provideNewSymbolNames(d,c.range,e,t)))}:void 0,h);if(e("received response from rename input field"),u.length>0&&this._reportTelemetry(u.length,d.getLanguageId(),f),"boolean"===typeof f)return e(`returning early - rename input field response - ${f}`),f&&this.editor.focus(),void h.dispose();this.editor.focus(),e("requesting rename edits");const v=(0,n.PK)(i.provideRenameEdits(f.newName,h.token),h.token).then((async t=>{if(t)if(this.editor.hasModel()){if(t.rejectReason)return e(`returning early - rejected with reason: ${t.rejectReason}`),void this._notificationService.info(t.rejectReason);this.editor.setSelection(m.Q.fromPositions(this.editor.getSelection().getPosition())),e("applying edits"),this._bulkEditService.apply(t,{editor:this.editor,showPreview:f.wantsPreview,label:S.kg("label","Renaming '{0}' to '{1}'",c?.text,f.newName),code:"undoredo.rename",quotableLabel:S.kg("quotableLabel","Renaming {0} to {1}",c?.text,f.newName),respectAutoSaveConfig:!0}).then((t=>{e("edits applied"),t.ariaSummary&&(0,s.xE)(S.kg("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",c.text,f.newName,t.ariaSummary))})).catch((t=>{e(`error when applying edits ${JSON.stringify(t,null,"\t")}`),this._notificationService.error(S.kg("rename.failedApply","Rename failed to apply edits")),this._logService.error(t)}))}else e("returning early - no model after rename edits are provided");else e("returning early - no rename edits result")}),(t=>{e("error when providing rename edits",JSON.stringify(t,null,"\t")),this._notificationService.error(S.kg("rename.failed","Rename failed to compute edits")),this._logService.error(t)})).finally((()=>{h.dispose()}));return e("returning rename operation"),this._progressService.showWhile(v,250),v}acceptRenameInput(e){this._renameWidget.acceptInput(e)}cancelRenameInput(){this._renameWidget.cancelInput(!0,"cancelRenameInput command")}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(e,t,i){const s="boolean"===typeof i?{kind:"cancelled",languageId:t,nRenameSuggestionProviders:e}:{kind:"accepted",languageId:t,nRenameSuggestionProviders:e,source:i.stats.source.k,nRenameSuggestions:i.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:i.stats.timeBeforeFirstInputFieldEdit,wantsPreview:i.wantsPreview,nRenameSuggestionsInvocations:i.stats.nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:i.stats.hadAutomaticRenameSuggestionsInvocation};this._telemetryService.publicLog2("renameInvokedEvent",s)}};ne=ee=te([ie(1,R._Y),ie(2,x.Ot),ie(3,u.nu),ie(4,k.N8),ie(5,T.rr),ie(6,C.ITextResourceConfigurationService),ie(7,v.ILanguageFeaturesService),ie(8,N.k)],ne);class re extends d.ks{constructor(){super({id:"editor.action.rename",label:S.kg("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:L.M$.and(f.R.writable,f.R.hasRenameProvider),kbOpts:{kbExpr:f.R.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(g.T),[s,n]=Array.isArray(t)&&t||[void 0,void 0];return h.r.isUri(s)&&p.y.isIPosition(n)?i.openCodeEditor({resource:s},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(n),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),o.dz):super.runCommand(e,t)}run(e,t){const i=e.get(T.rr),s=ne.get(t);return s?(i.trace("[RenameAction] got controller, running..."),s.run()):(i.trace("[RenameAction] returning early - controller missing"),Promise.resolve())}}(0,d.HW)(ne.ID,ne,4),(0,d.Fl)(re);const oe=d.DX.bindToContribution(ne.get);(0,d.E_)(new oe({id:"acceptRenameInput",precondition:$,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:L.M$.and(f.R.focus,L.M$.not("isComposing")),primary:3}})),(0,d.E_)(new oe({id:"acceptRenameInputWithPreview",precondition:L.M$.and($,L.M$.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:L.M$.and(f.R.focus,L.M$.not("isComposing")),primary:2051}})),(0,d.E_)(new oe({id:"cancelRenameInput",precondition:$,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:f.R.focus,primary:9,secondary:[1033]}})),(0,y.ug)(class extends y.L{constructor(){super({id:"focusNextRenameSuggestion",title:{...S.aS("focusNextRenameSuggestion","Focus Next Rename Suggestion")},precondition:$,keybinding:[{primary:18,weight:199}]})}run(e){const t=e.get(g.T).getFocusedCodeEditor();if(!t)return;const i=ne.get(t);i&&i.focusNextRenameSuggestion()}}),(0,y.ug)(class extends y.L{constructor(){super({id:"focusPreviousRenameSuggestion",title:{...S.aS("focusPreviousRenameSuggestion","Focus Previous Rename Suggestion")},precondition:$,keybinding:[{primary:16,weight:199}]})}run(e){const t=e.get(g.T).getFocusedCodeEditor();if(!t)return;const i=ne.get(t);i&&i.focusPreviousRenameSuggestion()}}),(0,d.ke)("_executeDocumentRenameProvider",(function(e,t,i,...s){const[n]=s;(0,c.j)("string"===typeof n);const{renameProvider:o}=e.get(v.ILanguageFeaturesService);return async function(e,t,i,s){const n=new se(t,i,e),o=await n.resolveRenameLocation(r.XO.None);return o?.rejectReason?{edits:[],rejectReason:o.rejectReason}:n.provideRenameEdits(s,r.XO.None)}(o,t,i,n)})),(0,d.ke)("_executePrepareRename",(async function(e,t,i){const{renameProvider:s}=e.get(v.ILanguageFeaturesService),n=new se(t,i,s),o=await n.resolveRenameLocation(r.XO.None);if(o?.rejectReason)throw new Error(o.rejectReason);return o})),A.O.as(w.Fd.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:S.kg("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},18278:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(17469),a=i(87289),l=i(10920),c=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},h=function(e,t){return function(i,s){t(i,s,e)}};let d=class extends n.jG{static{this.ID="editor.sectionHeaderDetector"}constructor(e,t,i){super(),this.editor=e,this.languageConfigurationService=t,this.editorWorkerService=i,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(e.getOption(73)),this.computePromise=null,this.currentOccurrences={},this._register(e.onDidChangeModel((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(e.onDidChangeModelLanguage((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(t.onDidChange((t=>{const i=this.editor.getModel()?.getLanguageId();i&&t.affects(i)&&(this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(e.onDidChangeConfiguration((t=>{this.options&&!t.hasChanged(73)||(this.options=this.createOptions(e.getOption(73)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(this.editor.onDidChangeModelContent((e=>{this.computeSectionHeaders.schedule()}))),this._register(e.onDidChangeModelTokens((e=>{this.computeSectionHeaders.isScheduled()||this.computeSectionHeaders.schedule(1e3)}))),this.computeSectionHeaders=this._register(new s.uC((()=>{this.findSectionHeaders()}),250)),this.computeSectionHeaders.schedule(0)}createOptions(e){if(!e||!this.editor.hasModel())return;const t=this.editor.getModel().getLanguageId();if(!t)return;const i=this.languageConfigurationService.getLanguageConfiguration(t).comments,s=this.languageConfigurationService.getLanguageConfiguration(t).foldingRules;return i||s?.markers?{foldingRules:s,findMarkSectionHeaders:e.showMarkSectionHeaders,findRegionSectionHeaders:e.showRegionSectionHeaders}:void 0}findSectionHeaders(){if(!this.editor.hasModel()||!this.options?.findMarkSectionHeaders&&!this.options?.findRegionSectionHeaders)return;const e=this.editor.getModel();if(e.isDisposed()||e.isTooLargeForSyncing())return;const t=e.getVersionId();this.editorWorkerService.findSectionHeaders(e.uri,this.options).then((i=>{e.isDisposed()||e.getVersionId()!==t||this.updateDecorations(i)}))}updateDecorations(e){const t=this.editor.getModel();t&&(e=e.filter((e=>{if(!e.shouldBeInComments)return!0;const i=t.validateRange(e.range),s=t.tokenization.getLineTokens(i.startLineNumber),n=s.findTokenIndexAtOffset(i.startColumn-1),r=s.getStandardTokenType(n);return s.getLanguageId(n)===t.getLanguageId()&&1===r})));const i=Object.values(this.currentOccurrences).map((e=>e.decorationId)),s=e.map((e=>function(e){return{range:e.range,options:a.kI.createDynamic({description:"section-header",stickiness:3,collapseOnReplaceEdit:!0,minimap:{color:void 0,position:1,sectionHeaderStyle:e.hasSeparatorLine?2:1,sectionHeaderText:e.text}})}}(e)));this.editor.changeDecorations((t=>{const n=t.deltaDecorations(i,s);this.currentOccurrences={};for(let i=0,s=n.length;i<s;i++){const t={sectionHeader:e[i],decorationId:n[i]};this.currentOccurrences[t.decorationId]=t}}))}stop(){this.computeSectionHeaders.cancel(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop(),this.decorations.clear()}};d=c([h(1,o.JZ),h(2,l.IEditorWorkerService)],d),(0,r.HW)(d.ID,d,1)},98745:(e,t,i)=>{"use strict";var s,n=i(5662),r=i(64383),o=i(23750),a=i(84001),l=i(90766),c=i(18447),h=i(47612),d=i(45538),u=i(32371),g=i(32500),p=i(78381),m=i(56942),f=i(74243),_=i(72466),v=i(84585),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},b=function(e,t){return function(i,s){t(i,s,e)}};let E=class extends n.jG{constructor(e,t,i,s,n,r){super(),this._watchers=Object.create(null);const o=t=>{this._watchers[t.uri.toString()]=new S(t,e,i,n,r)},a=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},l=()=>{for(const e of t.getModels()){const t=this._watchers[e.uri.toString()];(0,v.K)(e,i,s)?t||o(e):t&&a(e,t)}};t.getModels().forEach((e=>{(0,v.K)(e,i,s)&&o(e)})),this._register(t.onModelAdded((e=>{(0,v.K)(e,i,s)&&o(e)}))),this._register(t.onModelRemoved((e=>{const t=this._watchers[e.uri.toString()];t&&a(e,t)}))),this._register(s.onDidChangeConfiguration((e=>{e.affectsConfiguration(v.r)&&l()}))),this._register(i.onDidColorThemeChange(l))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};E=C([b(0,f.ISemanticTokensStylingService),b(1,o.IModelService),b(2,h.Gy),b(3,a.pG),b(4,g.ILanguageFeatureDebounceService),b(5,m.ILanguageFeaturesService)],E);let S=class extends n.jG{static{s=this}static{this.REQUEST_MIN_DELAY=300}static{this.REQUEST_MAX_DELAY=2e3}constructor(e,t,i,r,o){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=o.documentSemanticTokensProvider,this._debounceInformation=r.for(this._provider,"DocumentSemanticTokens",{min:s.REQUEST_MIN_DELAY,max:s.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new l.uC((()=>this._fetchDocumentSemanticTokensNow()),s.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeAttached((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeLanguage((()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)})));const a=()=>{(0,n.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of this._provider.all(e))"function"===typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange((()=>{this._currentDocumentRequestCancellationTokenSource?this._providersChangedDuringRequest=!0:this._fetchDocumentSemanticTokens.schedule(0)})))};a(),this._register(this._provider.onDidChange((()=>{a(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(i.onDidColorThemeChange((e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),(0,n.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!(0,u.br)(this._provider,this._model))return void(this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1));if(!this._model.isAttachedToEditor())return;const e=new c.Qi,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,s=(0,u.aw)(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;const n=[],o=this._model.onDidChangeContent((e=>{n.push(e)})),a=new p.W(!1);s.then((e=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,o.dispose(),e){const{provider:t,tokens:i}=e,s=this._semanticTokensStylingService.getStyling(t);this._setDocumentSemanticTokens(t,i||null,s,n)}else this._setDocumentSemanticTokens(null,null,null,n)}),(e=>{e&&(r.MB(e)||"string"===typeof e.message&&-1!==e.message.indexOf("busy"))||r.dz(e),this._currentDocumentRequestCancellationTokenSource=null,o.dispose(),(n.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))}))}static _copy(e,t,i,s,n){n=Math.min(n,i.length-s,e.length-t);for(let r=0;r<n;r++)i[s+r]=e[t+r]}_setDocumentSemanticTokens(e,t,i,n){const r=this._currentDocumentResponse,o=()=>{(n.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&i){if(!t)return this._model.tokenization.setSemanticTokens(null,!0),void o();if((0,u.yS)(t)){if(!r)return void this._model.tokenization.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:r.data};else{let e=0;for(const i of t.edits)e+=(i.data?i.data.length:0)-i.deleteCount;const n=r.data,o=new Uint32Array(n.length+e);let a=n.length,l=o.length;for(let c=t.edits.length-1;c>=0;c--){const e=t.edits[c];if(e.start>n.length)return i.warnInvalidEditStart(r.resultId,t.resultId,c,e.start,n.length),void this._model.tokenization.setSemanticTokens(null,!0);const h=a-(e.start+e.deleteCount);h>0&&(s._copy(n,a-h,o,l-h,h),l-=h),e.data&&(s._copy(e.data,0,o,l-e.data.length,e.data.length),l-=e.data.length),a=e.start}a>0&&s._copy(n,0,o,0,a),t={resultId:t.resultId,data:o}}}if((0,u.BB)(t)){this._currentDocumentResponse=new y(e,t.resultId,t.data);const s=(0,d.toMultilineTokens2)(t,i,this._model.getLanguageId());if(n.length>0)for(const e of n)for(const t of s)for(const i of e.changes)t.applyEdit(i.range,i.text);this._model.tokenization.setSemanticTokens(s,!0)}else this._model.tokenization.setSemanticTokens(null,!0);o()}else this._model.tokenization.setSemanticTokens(null,!1)}};S=s=C([b(1,f.ISemanticTokensStylingService),b(2,h.Gy),b(3,g.ILanguageFeatureDebounceService),b(4,m.ILanguageFeaturesService)],S);class y{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}(0,_.x)(E)},44798:(e,t,i)=>{"use strict";var s=i(90766),n=i(5662),r=i(31450),o=i(32371),a=i(84585),l=i(45538),c=i(84001),h=i(47612),d=i(32500),u=i(78381),g=i(56942),p=i(74243),m=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},f=function(e,t){return function(i,s){t(i,s,e)}};let _=class extends n.jG{static{this.ID="editor.contrib.viewportSemanticTokens"}constructor(e,t,i,n,r,o){super(),this._semanticTokensStylingService=t,this._themeService=i,this._configurationService=n,this._editor=e,this._provider=o.documentRangeSemanticTokensProvider,this._debounceInformation=r.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new s.uC((()=>this._tokenizeViewportNow()),100)),this._outstandingRequests=[];const l=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange((()=>{l()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),l()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),l()}))),this._register(this._provider.onDidChange((()=>{this._cancelAll(),l()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(a.r)&&(this._cancelAll(),l())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),l()}))),l()}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;t<i;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const e=this._editor.getModel();if(e.tokenization.hasCompleteSemanticTokens())return;if(!(0,a.K)(e,this._themeService,this._configurationService))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));if(!(0,o.WG)(this._provider,e))return void(e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1));const t=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(t.map((t=>this._requestRange(e,t))))}_requestRange(e,t){const i=e.getVersionId(),n=(0,s.SS)((i=>Promise.resolve((0,o.nZ)(this._provider,e,t,i)))),r=new u.W(!1);return n.then((s=>{if(this._debounceInformation.update(e,r.elapsed()),!s||!s.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:n,tokens:o}=s,a=this._semanticTokensStylingService.getStyling(n);e.tokenization.setPartialSemanticTokens(t,(0,l.toMultilineTokens2)(o,a,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(n)),(()=>this._removeOutstandingRequest(n))),n}};_=m([f(1,p.ISemanticTokensStylingService),f(2,h.Gy),f(3,c.pG),f(4,d.ILanguageFeatureDebounceService),f(5,g.ILanguageFeaturesService)],_),(0,r.HW)(_.ID,_,1)},32371:(e,t,i)=>{"use strict";i.d(t,{BB:()=>u,WG:()=>v,aw:()=>f,br:()=>m,nZ:()=>b,yS:()=>g});var s=i(18447),n=i(64383),r=i(79400),o=i(23750),a=i(50091),l=i(631),c=i(98232),h=i(36677),d=i(56942);function u(e){return e&&!!e.data}function g(e){return e&&Array.isArray(e.edits)}class p{constructor(e,t,i){this.provider=e,this.tokens=t,this.error=i}}function m(e,t){return e.has(t)}async function f(e,t,i,s,n){const r=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}(e,t),o=await Promise.all(r.map((async e=>{let r,o=null;try{r=await e.provideDocumentSemanticTokens(t,e===i?s:null,n)}catch(a){o=a,r=null}return r&&(u(r)||g(r))||(r=null),new p(e,r,o)})));for(const a of o){if(a.error)throw a.error;if(a.tokens)return a}return o.length>0?o[0]:null}class _{constructor(e,t){this.provider=e,this.tokens=t}}function v(e,t){return e.has(t)}function C(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}async function b(e,t,i,s){const r=C(e,t),o=await Promise.all(r.map((async e=>{let r;try{r=await e.provideDocumentRangeSemanticTokens(t,i,s)}catch(o){(0,n.M_)(o),r=null}return r&&u(r)||(r=null),new _(e,r)})));for(const n of o)if(n.tokens)return n;return o.length>0?o[0]:null}a.w.registerCommand("_provideDocumentSemanticTokensLegend",(async(e,...t)=>{const[i]=t;(0,l.j)(i instanceof r.r);const s=e.get(o.IModelService).getModel(i);if(!s)return;const{documentSemanticTokensProvider:n}=e.get(d.ILanguageFeaturesService),c=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:null}(n,s);return c?c[0].getLegend():e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokensLegend",i)})),a.w.registerCommand("_provideDocumentSemanticTokens",(async(e,...t)=>{const[i]=t;(0,l.j)(i instanceof r.r);const n=e.get(o.IModelService).getModel(i);if(!n)return;const{documentSemanticTokensProvider:h}=e.get(d.ILanguageFeaturesService);if(!m(h,n))return e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokens",i,n.getFullModelRange());const g=await f(h,n,null,null,s.XO.None);if(!g)return;const{provider:p,tokens:_}=g;if(!_||!u(_))return;const v=(0,c.encodeSemanticTokensDto)({id:0,type:"full",data:_.data});return _.resultId&&p.releaseDocumentSemanticTokens(_.resultId),v})),a.w.registerCommand("_provideDocumentRangeSemanticTokensLegend",(async(e,...t)=>{const[i,n]=t;(0,l.j)(i instanceof r.r);const a=e.get(o.IModelService).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:c}=e.get(d.ILanguageFeaturesService),u=C(c,a);if(0===u.length)return;if(1===u.length)return u[0].getLegend();if(!n||!h.Q.isIRange(n))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),u[0].getLegend();const g=await b(c,a,h.Q.lift(n),s.XO.None);return g?g.provider.getLegend():void 0})),a.w.registerCommand("_provideDocumentRangeSemanticTokens",(async(e,...t)=>{const[i,n]=t;(0,l.j)(i instanceof r.r),(0,l.j)(h.Q.isIRange(n));const a=e.get(o.IModelService).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:u}=e.get(d.ILanguageFeaturesService),g=await b(u,a,h.Q.lift(n),s.XO.None);return g&&g.tokens?(0,c.encodeSemanticTokensDto)({id:0,type:"full",data:g.tokens.data}):void 0}))},84585:(e,t,i)=>{"use strict";i.d(t,{K:()=>n,r:()=>s});const s="editor.semanticHighlighting";function n(e,t,i){const n=i.getValue(s,{overrideIdentifier:e.getLanguageId(),resource:e.uri})?.enabled;return"boolean"===typeof n?n:t.getColorTheme().semanticHighlighting}},39286:(e,t,i)=>{"use strict";i.d(t,{n:()=>o});var s=i(58925),n=i(83069),r=i(36677);class o{async provideSelectionRanges(e,t){const i=[];for(const s of t){const t=[];i.push(t);const n=new Map;await new Promise((t=>o._bracketsRightYield(t,0,e,s,n))),await new Promise((i=>o._bracketsLeftYield(i,0,e,s,n,t)))}return i}static{this._maxDuration=30}static{this._maxRounds=2}static _bracketsRightYield(e,t,i,n,r){const a=new Map,l=Date.now();for(;;){if(t>=o._maxRounds){e();break}if(!n){e();break}const c=i.bracketPairs.findNextBracket(n);if(!c){e();break}if(Date.now()-l>o._maxDuration){setTimeout((()=>o._bracketsRightYield(e,t+1,i,n,r)));break}if(c.bracketInfo.isOpeningBracket){const e=c.bracketInfo.bracketText,t=a.has(e)?a.get(e):0;a.set(e,t+1)}else{const e=c.bracketInfo.getOpeningBrackets()[0].bracketText;let t=a.has(e)?a.get(e):0;if(t-=1,a.set(e,Math.max(0,t)),t<0){let t=r.get(e);t||(t=new s.w,r.set(e,t)),t.push(c.range)}}n=c.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,s,n,a){const l=new Map,c=Date.now();for(;;){if(t>=o._maxRounds&&0===n.size){e();break}if(!s){e();break}const h=i.bracketPairs.findPrevBracket(s);if(!h){e();break}if(Date.now()-c>o._maxDuration){setTimeout((()=>o._bracketsLeftYield(e,t+1,i,s,n,a)));break}if(h.bracketInfo.isOpeningBracket){const e=h.bracketInfo.bracketText;let t=l.has(e)?l.get(e):0;if(t-=1,l.set(e,Math.max(0,t)),t<0){const t=n.get(e);if(t){const s=t.shift();0===t.size&&n.delete(e);const l=r.Q.fromPositions(h.range.getEndPosition(),s.getStartPosition()),c=r.Q.fromPositions(h.range.getStartPosition(),s.getEndPosition());a.push({range:l}),a.push({range:c}),o._addBracketLeading(i,c,a)}}}else{const e=h.bracketInfo.getOpeningBrackets()[0].bracketText,t=l.has(e)?l.get(e):0;l.set(e,t+1)}s=h.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const s=t.startLineNumber,o=e.getLineFirstNonWhitespaceColumn(s);0!==o&&o!==t.startColumn&&(i.push({range:r.Q.fromPositions(new n.y(s,o),t.getEndPosition())}),i.push({range:r.Q.fromPositions(new n.y(s,1),t.getEndPosition())}));const a=s-1;if(a>0){const s=e.getLineFirstNonWhitespaceColumn(a);s===t.startColumn&&s!==e.getLineLastNonWhitespaceColumn(a)&&(i.push({range:r.Q.fromPositions(new n.y(a,s),t.getEndPosition())}),i.push({range:r.Q.fromPositions(new n.y(a,1),t.getEndPosition())}))}}}},10617:(e,t,i)=>{"use strict";var s=i(25890),n=i(18447),r=i(64383),o=i(31450),a=i(83069),l=i(36677),c=i(75326),h=i(60002),d=i(39286),u=i(91508);class g{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){const i=[];for(const s of t){const t=[];i.push(t),this.selectSubwords&&this._addInWordRanges(t,e,s),this._addWordRanges(t,e,s),this._addWhitespaceLine(t,e,s),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const s=t.getWordAtPosition(i);if(!s)return;const{word:n,startColumn:r}=s,o=i.column-r;let a=o,c=o,h=0;for(;a>=0;a--){const e=n.charCodeAt(a);if(a!==o&&(95===e||45===e))break;if((0,u.Lv)(e)&&(0,u.Wv)(h))break;h=e}for(a+=1;c<n.length;c++){const e=n.charCodeAt(c);if((0,u.Wv)(e)&&(0,u.Lv)(h))break;if(95===e||45===e)break;h=e}a<c&&e.push({range:new l.Q(i.lineNumber,r+a,i.lineNumber,r+c)})}_addWordRanges(e,t,i){const s=t.getWordAtPosition(i);s&&e.push({range:new l.Q(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn)})}_addWhitespaceLine(e,t,i){t.getLineLength(i.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new l.Q(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var p,m=i(78209),f=i(27195),_=i(50091),v=i(56942),C=i(18938),b=i(631),E=i(79400),S=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},y=function(e,t){return function(i,s){t(i,s,e)}};class w{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new w(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let L=class{static{p=this}static{this.ID="editor.contrib.smartSelectController"}static get(e){return e.getContribution(p.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){this._selectionListener?.dispose()}async run(e){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||await T(this._languageFeaturesService.selectionRangeProvider,i,t.map((e=>e.getPosition())),this._editor.getOption(114),n.XO.None).then((e=>{if(s.EI(e)&&e.length===t.length&&this._editor.hasModel()&&s.aI(this._editor.getSelections(),t,((e,t)=>e.equalsSelection(t)))){for(let i=0;i<e.length;i++)e[i]=e[i].filter((e=>e.containsPosition(t[i].getStartPosition())&&e.containsPosition(t[i].getEndPosition()))),e[i].unshift(t[i]);this._state=e.map((e=>new w(0,e))),this._selectionListener?.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition((()=>{this._ignoreSelection||(this._selectionListener?.dispose(),this._state=void 0)}))}})),!this._state)return;this._state=this._state.map((t=>t.mov(e)));const r=this._state.map((e=>c.L.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())));this._ignoreSelection=!0;try{this._editor.setSelections(r)}finally{this._ignoreSelection=!1}}};L=p=S([y(1,v.ILanguageFeaturesService)],L);class R extends o.ks{constructor(e,t){super(t),this._forward=e}async run(e,t){const i=L.get(t);i&&await i.run(this._forward)}}_.w.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");async function T(e,t,i,n,o){const c=e.all(t).concat(new g(n.selectSubwords));1===c.length&&c.unshift(new d.n);const h=[],u=[];for(const a of c)h.push(Promise.resolve(a.provideSelectionRanges(t,i,o)).then((e=>{if(s.EI(e)&&e.length===i.length)for(let t=0;t<i.length;t++){u[t]||(u[t]=[]);for(const s of e[t])l.Q.isIRange(s.range)&&l.Q.containsPosition(s.range,i[t])&&u[t].push(l.Q.lift(s.range))}}),r.M_));return await Promise.all(h),u.map((e=>{if(0===e.length)return[];e.sort(((e,t)=>a.y.isBefore(e.getStartPosition(),t.getStartPosition())?1:a.y.isBefore(t.getStartPosition(),e.getStartPosition())||a.y.isBefore(e.getEndPosition(),t.getEndPosition())?-1:a.y.isBefore(t.getEndPosition(),e.getEndPosition())?1:0));const i=[];let s;for(const t of e)(!s||l.Q.containsRange(t,s)&&!l.Q.equalsRange(t,s))&&(i.push(t),s=t);if(!n.selectLeadingAndTrailingWhitespace)return i;const r=[i[0]];for(let n=1;n<i.length;n++){const e=i[n-1],s=i[n];if(s.startLineNumber!==e.startLineNumber||s.endLineNumber!==e.endLineNumber){const i=new l.Q(e.startLineNumber,t.getLineFirstNonWhitespaceColumn(e.startLineNumber),e.endLineNumber,t.getLineLastNonWhitespaceColumn(e.endLineNumber));i.containsRange(e)&&!i.equalsRange(e)&&s.containsRange(i)&&!s.equalsRange(i)&&r.push(i);const n=new l.Q(e.startLineNumber,1,e.endLineNumber,t.getLineMaxColumn(e.endLineNumber));n.containsRange(e)&&!n.equalsRange(i)&&s.containsRange(n)&&!s.equalsRange(n)&&r.push(n)}r.push(s)}return r}))}(0,o.HW)(L.ID,L,4),(0,o.Fl)(class extends R{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:m.kg("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:h.R.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:f.D8.MenubarSelectionMenu,group:"1_basic",title:m.kg({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}),(0,o.Fl)(class extends R{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:m.kg("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:h.R.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:f.D8.MenubarSelectionMenu,group:"1_basic",title:m.kg({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}),_.w.registerCommand("_executeSelectionRangeProvider",(async function(e,...t){const[i,s]=t;(0,b.j)(E.r.isUri(i));const r=e.get(v.ILanguageFeaturesService).selectionRangeProvider,o=await e.get(C.ITextModelService).createModelReference(i);try{return T(r,o.object.textEditorModel,s,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},n.XO.None)}finally{o.dispose()}}))},30936:(e,t,i)=>{"use strict";i.d(t,{O:()=>C});var s,n=i(5662),r=i(631),o=i(31450),a=i(83069),l=i(60002),c=i(17469),h=i(56942),d=i(48116),u=i(78209),g=i(32848),p=i(18801),m=i(38280),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};const v={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let C=class{static{s=this}static{this.ID="snippetController2"}static get(e){return e.getContribution(s.ID)}static{this.InSnippetMode=new g.N1("inSnippetMode",!1,(0,u.kg)("inSnippetMode","Whether the editor in current in snippet mode"))}static{this.HasNextTabstop=new g.N1("hasNextTabstop",!1,(0,u.kg)("hasNextTabstop","Whether there is a next tab stop when in snippet mode"))}static{this.HasPrevTabstop=new g.N1("hasPrevTabstop",!1,(0,u.kg)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode"))}constructor(e,t,i,r,o){this._editor=e,this._logService=t,this._languageFeaturesService=i,this._languageConfigurationService=o,this._snippetListener=new n.Cm,this._modelVersionId=-1,this._inSnippet=s.InSnippetMode.bindTo(r),this._hasNextTabstop=s.HasNextTabstop.bindTo(r),this._hasPrevTabstop=s.HasPrevTabstop.bindTo(r)}dispose(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._session?.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,"undefined"===typeof t?v:{...v,...t})}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!==typeof e&&this.cancel(),this._session?((0,r.j)("string"===typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new m.O(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._session?.hasChoice){const e={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(e,t)=>{if(!this._session||e!==this._editor.getModel()||!a.y.equals(this._editor.getPosition(),t))return;const{activeChoice:i}=this._session;if(!i||0===i.choice.options.length)return;const s=e.getValueInRange(i.range),n=Boolean(i.choice.options.find((e=>e.value===s))),r=[];for(let o=0;o<i.choice.options.length;o++){const e=i.choice.options[o];r.push({kind:13,label:e.value,insertText:e.value,sortText:"a".repeat(o+1),range:i.range,filterText:n?`${s}_${e.value}`:void 0,command:{id:"jumpToNextSnippetPlaceholder",title:(0,u.kg)("next","Go to next placeholder...")}})}return{suggestions:r}}},t=this._editor.getModel();let i,s=!1;const n=()=>{i?.dispose(),s=!1},r=()=>{s||(i=this._languageFeaturesService.completionProvider.register({language:t.getLanguageId(),pattern:t.uri.fsPath,scheme:t.uri.scheme,exclusive:!0},e),this._snippetListener.add(i),s=!0)};this._choiceCompletions={provider:e,enable:r,disable:n}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((e=>e.isFlush&&this.cancel()))),this._snippetListener.add(this._editor.onDidChangeModel((()=>this.cancel()))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((()=>this._updateState())))}}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{activeChoice:e}=this._session;if(!e||!this._choiceCompletions)return this._choiceCompletions?.disable(),void(this._currentChoice=void 0);this._currentChoice!==e.choice&&(this._currentChoice=e.choice,this._choiceCompletions.enable(),queueMicrotask((()=>{(0,d.p3)(this._editor,this._choiceCompletions.provider)})))}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,this._session?.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session?.prev(),this._updateState()}next(){this._session?.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};C=s=f([_(1,p.rr),_(2,h.ILanguageFeaturesService),_(3,g.fN),_(4,c.JZ)],C),(0,o.HW)(C.ID,C,4);const b=o.DX.bindToContribution(C.get);(0,o.E_)(new b({id:"jumpToNextSnippetPlaceholder",precondition:g.M$.and(C.InSnippetMode,C.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:l.R.textInputFocus,primary:2}})),(0,o.E_)(new b({id:"jumpToPrevSnippetPlaceholder",precondition:g.M$.and(C.InSnippetMode,C.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:l.R.textInputFocus,primary:1026}})),(0,o.E_)(new b({id:"leaveSnippet",precondition:C.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:l.R.textInputFocus,primary:9,secondary:[1033]}})),(0,o.E_)(new b({id:"acceptSnippet",precondition:C.InSnippetMode,handler:e=>e.finish()}))},29319:(e,t,i)=>{"use strict";i.d(t,{EY:()=>r,GR:()=>l,Or:()=>a,fr:()=>p,mQ:()=>g});class s{constructor(){this.value="",this.pos=0}static{this._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13}}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t,i=0,n=this.value.charCodeAt(e);if(t=s._table[n],"number"===typeof t)return this.pos+=1,{type:t,pos:e,len:1};if(s.isDigitCharacter(n)){t=8;do{i+=1,n=this.value.charCodeAt(e+i)}while(s.isDigitCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}if(s.isVariableCharacter(n)){t=9;do{n=this.value.charCodeAt(e+ ++i)}while(s.isVariableCharacter(n)||s.isDigitCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}t=10;do{i+=1,n=this.value.charCodeAt(e+i)}while(!isNaN(n)&&"undefined"===typeof s._table[n]&&!s.isDigitCharacter(n)&&!s.isVariableCharacter(n));return this.pos+=i,{type:t,pos:e,len:i}}}class n{constructor(){this._children=[]}appendChild(e){return e instanceof r&&this._children[this._children.length-1]instanceof r?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,s=i.children.indexOf(e),n=i.children.slice(0);n.splice(s,1,...t),i._children=n,function e(t,i){for(const s of t)s.parent=i,e(s.children,s)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof g)return e;e=e.parent}}toString(){return this.children.reduce(((e,t)=>e+t.toString()),"")}len(){return 0}}class r extends n{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new r(this.value)}}class o extends n{}class a extends o{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof l?this._children[0]:void 0}clone(){const e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}class l extends n{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof r&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new l;return this.options.forEach(e.appendChild,e),e}}class c extends n{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,s=e.replace(this.regexp,(function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!i&&this._children.some((e=>e instanceof h&&Boolean(e.elseValue)))&&(s=this._replace([])),s}_replace(e){let t="";for(const i of this._children)if(i instanceof h){let s=e[i.index]||"";s=i.resolve(s),t+=s}else t+=i.toString();return t}toString(){return""}clone(){const e=new c;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((e=>e.clone())),e}}class h extends n{constructor(e,t,i,s){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=s}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((e=>e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}clone(){return new h(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class d extends o{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new r(t)],!0)}clone(){const e=new d(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}function u(e,t){const i=[...e];for(;i.length>0;){const e=i.shift();if(!t(e))break;i.unshift(...e.children)}}class g extends n{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk((function(i){return i instanceof a&&(e.push(i),t=!t||t.index<i.index?i:t),!0})),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk((s=>s===e?(i=!0,!1):(t+=s.len(),!0))),i?t:-1}fullLen(e){let t=0;return u([e],(e=>(t+=e.len(),!0))),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof a&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk((t=>(t instanceof d&&t.resolve(e)&&(this._placeholders=void 0),!0))),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new g;return this._children=this.children.map((e=>e.clone())),e}walk(e){u(this.children,e)}}class p{constructor(){this._scanner=new s,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const s=new g;return this.parseFragment(e,s),this.ensureFinalTabstop(s,i??!1,t??!1),s}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const s=new Map,n=[];t.walk((e=>(e instanceof a&&(e.isFinalTabstop?s.set(0,void 0):!s.has(e.index)&&e.children.length>0?s.set(e.index,e.children):n.push(e)),!0)));const r=(e,i)=>{const n=s.get(e.index);if(!n)return;const o=new a(e.index);o.transform=e.transform;for(const t of n){const e=t.clone();o.appendChild(e),e instanceof a&&s.has(e.index)&&!i.has(e.index)&&(i.add(e.index),r(e,i),i.delete(e.index))}t.replace(e,[o])},o=new Set;for(const a of n)r(a,o);return t.children.slice(i)}ensureFinalTabstop(e,t,i){if(t||i&&e.placeholders.length>0){e.placeholders.find((e=>0===e.index))||e.appendChild(new a(0))}}_accept(e,t){if(void 0===e||this._token.type===e){const e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new r(t)),!0)}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new d(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new a(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new r("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else{if(!(s.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i);{const t=new l;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(t),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}}}_parseChoiceElement(e){const t=this._token,i=[];for(;2!==this._token.type&&7!==this._token.type;){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new r(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new d(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new r("${"+t+":")),s.children.forEach(e.appendChild,e),!0}}_parseTransform(e){const t=new c;let i="",s="";for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(6,!0)||e,i+=e;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new r(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;s+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,s)}catch(n){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const s=this._accept(8,!0);if(!s)return this._backTo(t),!1;if(!i)return e.appendChild(new h(Number(s))),!0;if(this._accept(4))return e.appendChild(new h(Number(s))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){const i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new h(Number(s),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,t,void 0)),!0}else if(this._accept(12)){const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,void 0,t)),!0}else if(this._accept(13)){const t=this._until(1);if(t){const i=this._until(4);if(i)return e.appendChild(new h(Number(s),void 0,t,i)),!0}}else{const t=this._until(4);if(t)return e.appendChild(new h(Number(s),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new r(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},38280:(e,t,i)=>{"use strict";i.d(t,{O:()=>P});var s=i(25890),n=i(5662),r=i(91508),o=i(7085),a=i(36677),l=i(75326),c=i(17469),h=i(87289),d=i(67841),u=i(37227),g=i(29319),p=i(79326),m=i(98067);function f(e,t=m.uF){return(0,p.No)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null);var _=i(74027),v=i(89403),C=i(58255),b=i(78209),E=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},S=function(e,t){return function(i,s){t(i,s,e)}};Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,CURRENT_TIMEZONE_OFFSET:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class y{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(void 0!==i)return i}}}class w{constructor(e,t,i,s){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=s}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,i=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,i=e.multiline)}if(t&&i&&e.snippet){const i=this._model.getLineContent(this._selection.startLineNumber),s=(0,r.UU)(i,0,this._selection.startColumn-1);let n=s;e.snippet.walk((t=>t!==e&&(t instanceof g.EY&&(n=(0,r.UU)((0,r.uz)(t.value).pop())),!0)));const o=(0,r.Qp)(n,s);t=t.replace(/(\r\n|\r|\n)(.*)/g,((e,t,i)=>`${t}${n.substr(o)}${i}`))}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):"CURSOR_INDEX"===t?String(this._selectionIdx):"CURSOR_NUMBER"===t?String(this._selectionIdx+1):void 0}}class L{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return _.P8(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=_.P8(this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t?"."===_.pD(this._model.uri.fsPath)?"":this._labelService.getUriLabel((0,v.pD)(this._model.uri)):"TM_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class R{constructor(e,t,i,s){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=s}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter((e=>!(0,r.AV)(e)));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}let T=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),s=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(s)return"LINE_COMMENT"===t?s.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?s.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&s.blockCommentEndToken||void 0}};T=E([S(2,c.JZ)],T);class x{constructor(){this._date=new Date}static{this.dayNames=[b.kg("Sunday","Sunday"),b.kg("Monday","Monday"),b.kg("Tuesday","Tuesday"),b.kg("Wednesday","Wednesday"),b.kg("Thursday","Thursday"),b.kg("Friday","Friday"),b.kg("Saturday","Saturday")]}static{this.dayNamesShort=[b.kg("SundayShort","Sun"),b.kg("MondayShort","Mon"),b.kg("TuesdayShort","Tue"),b.kg("WednesdayShort","Wed"),b.kg("ThursdayShort","Thu"),b.kg("FridayShort","Fri"),b.kg("SaturdayShort","Sat")]}static{this.monthNames=[b.kg("January","January"),b.kg("February","February"),b.kg("March","March"),b.kg("April","April"),b.kg("May","May"),b.kg("June","June"),b.kg("July","July"),b.kg("August","August"),b.kg("September","September"),b.kg("October","October"),b.kg("November","November"),b.kg("December","December")]}static{this.monthNamesShort=[b.kg("JanuaryShort","Jan"),b.kg("FebruaryShort","Feb"),b.kg("MarchShort","Mar"),b.kg("AprilShort","Apr"),b.kg("MayShort","May"),b.kg("JuneShort","Jun"),b.kg("JulyShort","Jul"),b.kg("AugustShort","Aug"),b.kg("SeptemberShort","Sep"),b.kg("OctoberShort","Oct"),b.kg("NovemberShort","Nov"),b.kg("DecemberShort","Dec")]}resolve(e){const{name:t}=e;if("CURRENT_YEAR"===t)return String(this._date.getFullYear());if("CURRENT_YEAR_SHORT"===t)return String(this._date.getFullYear()).slice(-2);if("CURRENT_MONTH"===t)return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if("CURRENT_DATE"===t)return String(this._date.getDate().valueOf()).padStart(2,"0");if("CURRENT_HOUR"===t)return String(this._date.getHours().valueOf()).padStart(2,"0");if("CURRENT_MINUTE"===t)return String(this._date.getMinutes().valueOf()).padStart(2,"0");if("CURRENT_SECOND"===t)return String(this._date.getSeconds().valueOf()).padStart(2,"0");if("CURRENT_DAY_NAME"===t)return x.dayNames[this._date.getDay()];if("CURRENT_DAY_NAME_SHORT"===t)return x.dayNamesShort[this._date.getDay()];if("CURRENT_MONTH_NAME"===t)return x.monthNames[this._date.getMonth()];if("CURRENT_MONTH_NAME_SHORT"===t)return x.monthNamesShort[this._date.getMonth()];if("CURRENT_SECONDS_UNIX"===t)return String(Math.floor(this._date.getTime()/1e3));if("CURRENT_TIMEZONE_OFFSET"===t){const e=this._date.getTimezoneOffset(),t=e>0?"-":"+",i=Math.trunc(Math.abs(e/60)),s=i<10?"0"+i:i,n=Math.abs(e)-60*i;return t+s+":"+(n<10?"0"+n:n)}}}class k{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=(0,u.Q_)(this._workspaceService.getWorkspace());return(0,u.A7)(t)?void 0:"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}_resolveWorkspaceName(e){if((0,u.jB)(e))return _.P8(e.uri.path);let t=_.P8(e.configPath.path);return t.endsWith(u.kF)&&(t=t.substr(0,t.length-u.kF.length-1)),t}_resoveWorkspacePath(e){if((0,u.jB)(e))return f(e.uri.fsPath);const t=_.P8(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?f(i):"/"}}class A{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?(0,C.b)():void 0}}var N,I=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},O=function(e,t){return function(i,s){t(i,s,e)}};class D{static{this._decor={active:h.kI.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:h.kI.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:h.kI.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:h.kI.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})}}constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=(0,s.$z)(t.placeholders,g.Or.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(-1===this._offset)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations((t=>{for(const i of this._snippet.placeholders){const s=this._snippet.offset(i),n=this._snippet.fullLen(i),r=a.Q.fromPositions(e.getPositionAt(this._offset+s),e.getPositionAt(this._offset+s+n)),o=i.isFinalTabstop?D._decor.inactiveFinal:D._decor.inactive,l=t.addDecoration(r,o);this._placeholderDecorations.set(i,l)}}))}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const i=this._placeholderDecorations.get(t),s=this._editor.getModel().getDecorationRange(i),n=this._editor.getModel().getValueInRange(s),r=t.transform.resolve(n).split(/\r\n|\r|\n/);for(let e=1;e<r.length;e++)r[e]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+r[e]);e.push(o.k.replace(s,r.join(this._editor.getModel().getEOL())))}e.length>0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,t=!0):!1===e&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations((e=>{const i=new Set,s=[];for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const r=this._placeholderDecorations.get(n),o=this._editor.getModel().getDecorationRange(r);s.push(new l.L(o.startLineNumber,o.startColumn,o.endLineNumber,o.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(n),e.changeDecorationOptions(r,n.isFinalTabstop?D._decor.activeFinal:D._decor.active),i.add(n);for(const t of this._snippet.enclosingPlaceholders(n)){const s=this._placeholderDecorations.get(t);e.changeDecorationOptions(s,t.isFinalTabstop?D._decor.activeFinal:D._decor.active),i.add(t)}}for(const[t,n]of this._placeholderDecorations)i.has(t)||e.changeDecorationOptions(n,t.isFinalTabstop?D._decor.inactiveFinal:D._decor.inactive);return s}));return t?this.move(e):i??[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof g.Or){const e=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(e).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(0===this._snippet.placeholders.length)return!0;if(1===this._snippet.placeholders.length){const[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const s of t){if(s.isFinalTabstop)break;i||(i=[],e.set(s.index,i));const t=this._placeholderDecorations.get(s),n=this._editor.getModel().getDecorationRange(t);if(!n){e.delete(s.index);break}i.push(n)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!e?.choice)return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);return i?{range:i,choice:e.choice}:void 0}get hasChoice(){let e=!1;return this._snippet.walk((t=>(e=t instanceof g.GR,!e))),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((i=>{for(const s of this._placeholderGroups[this._placeholderGroupsIdx]){const n=e.shift();console.assert(-1!==n._offset),console.assert(!n._placeholderDecorations);const r=n._snippet.placeholderInfo.last.index;for(const e of n._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=s.index+(r+1)/this._nestingLevel:e.index=s.index+e.index/this._nestingLevel;this._snippet.replace(s,n._snippet.children);const o=this._placeholderDecorations.get(s);i.removeDecoration(o),this._placeholderDecorations.delete(s);for(const e of n._snippet.placeholders){const s=n._snippet.offset(e),r=n._snippet.fullLen(e),o=a.Q.fromPositions(t.getPositionAt(n._offset+s),t.getPositionAt(n._offset+s+r)),l=i.addDecoration(o,D._decor.inactive);this._placeholderDecorations.set(e,l)}}this._placeholderGroups=(0,s.$z)(this._snippet.placeholders,g.Or.compareByIndex)}))}}const M={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let P=N=class{static adjustWhitespace(e,t,i,s,n){const o=e.getLineContent(t.lineNumber),a=(0,r.UU)(o,0,t.column-1);let l;return s.walk((t=>{if(!(t instanceof g.EY)||t.parent instanceof g.GR)return!0;if(n&&!n.has(t))return!0;const r=t.value.split(/\r\n|\r|\n/);if(i){const i=s.offset(t);if(0===i)r[0]=e.normalizeIndentation(r[0]);else{l=l??s.toString();const t=l.charCodeAt(i-1);10!==t&&13!==t||(r[0]=e.normalizeIndentation(a+r[0]))}for(let t=1;t<r.length;t++)r[t]=e.normalizeIndentation(a+r[t])}const o=r.join(e.getEOL());return o!==t.value&&(t.parent.replace(t,[new g.EY(o)]),l=void 0),!0})),a}static adjustSelection(e,t,i,s){if(0!==i||0!==s){const{positionLineNumber:n,positionColumn:r}=t,o=r-i,a=r+s,c=e.validateRange({startLineNumber:n,startColumn:o,endLineNumber:n,endColumn:a});t=l.L.createWithDirection(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn,t.getDirection())}return t}static createEditsAndSnippetsFromSelections(e,t,i,s,n,r,l,c,h){const p=[],m=[];if(!e.hasModel())return{edits:p,snippets:m};const f=e.getModel(),_=e.invokeWithinContext((e=>e.get(u.VR))),v=e.invokeWithinContext((e=>new L(e.get(d.L),f))),C=()=>l,b=f.getValueInRange(N.adjustSelection(f,e.getSelection(),i,0)),E=f.getValueInRange(N.adjustSelection(f,e.getSelection(),0,s)),S=f.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),I=e.getSelections().map(((e,t)=>({selection:e,idx:t}))).sort(((e,t)=>a.Q.compareRangesUsingStarts(e.selection,t.selection)));for(const{selection:a,idx:d}of I){let l=N.adjustSelection(f,a,i,0),u=N.adjustSelection(f,a,0,s);b!==f.getValueInRange(l)&&(l=a),E!==f.getValueInRange(u)&&(u=a);const L=a.setStartPosition(l.startLineNumber,l.startColumn).setEndPosition(u.endLineNumber,u.endColumn),O=(new g.fr).parse(t,!0,n),M=L.getStartPosition(),P=N.adjustWhitespace(f,M,r||d>0&&S!==f.getLineFirstNonWhitespaceColumn(a.positionLineNumber),O);O.resolveVariables(new y([v,new R(C,d,I.length,"spread"===e.getOption(79)),new w(f,a,d,c),new T(f,a,h),new x,new k(_),new A])),p[d]=o.k.replace(L,O.toString()),p[d].identifier={major:d,minor:0},p[d]._isTracked=!0,m[d]=new D(e,O,P)}return{edits:p,snippets:m}}static createEditsAndSnippetsFromEdits(e,t,i,s,n,r,l){if(!e.hasModel()||0===t.length)return{edits:[],snippets:[]};const c=[],h=e.getModel(),p=new g.fr,m=new g.mQ,f=new y([e.invokeWithinContext((e=>new L(e.get(d.L),h))),new R((()=>n),0,e.getSelections().length,"spread"===e.getOption(79)),new w(h,e.getSelection(),0,r),new T(h,e.getSelection(),l),new x,new k(e.invokeWithinContext((e=>e.get(u.VR)))),new A]);t=t.sort(((e,t)=>a.Q.compareRangesUsingStarts(e.range,t.range)));let _=0;for(let d=0;d<t.length;d++){const{range:e,template:i}=t[d];if(d>0){const i=t[d-1].range,s=a.Q.fromPositions(i.getEndPosition(),e.getStartPosition()),n=new g.EY(h.getValueInRange(s));m.appendChild(n),_+=n.value.length}const s=p.parseFragment(i,m);N.adjustWhitespace(h,e.getStartPosition(),!0,m,new Set(s)),m.resolveVariables(f);const n=m.toString(),r=n.slice(_);_=n.length;const l=o.k.replace(e,r);l.identifier={major:d,minor:0},l._isTracked=!0,c.push(l)}return p.ensureFinalTabstop(m,i,!0),{edits:c,snippets:[new D(e,m,"")]}}constructor(e,t,i=M,s){this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=s,this._templateMerges=[],this._snippets=[]}dispose(){(0,n.AS)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}="string"===typeof this._template?N.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):N.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=t,this._editor.executeEdits("snippet",e,(e=>{const i=e.filter((e=>!!e.identifier));for(let s=0;s<t.length;s++)t[s].initialize(i[s].textChange);return this._snippets[0].hasPlaceholder?this._move(!0):i.map((e=>l.L.fromPositions(e.range.getEndPosition())))})),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=M){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:s}=N.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",i,(e=>{const t=e.filter((e=>!!e.identifier));for(let n=0;n<s.length;n++)s[n].initialize(t[n].textChange);const i=s[0].isTrivialSnippet;if(!i){for(const e of this._snippets)e.merge(s);console.assert(0===s.length)}return this._snippets[0].hasPlaceholder&&!i?this._move(void 0):t.map((e=>l.L.fromPositions(e.range.getEndPosition())))}))}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const s=i.move(e);t.push(...s)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;const t=new Map;for(const i of this._snippets){const s=i.computePossibleSelections();if(0===t.size)for(const[i,n]of s){n.sort(a.Q.compareRangesUsingStarts);for(const s of e)if(n[0].containsRange(s)){t.set(i,[]);break}}if(0===t.size)return!1;t.forEach(((e,t)=>{e.push(...s.get(t))}))}e.sort(a.Q.compareRangesUsingStarts);for(const[i,s]of t)if(s.length===e.length){s.sort(a.Q.compareRangesUsingStarts);for(let n=0;n<s.length;n++)s[n].containsRange(e[n])||t.delete(i)}else t.delete(i);return t.size>0}};P=N=I([O(3,c.JZ)],P)},57197:(e,t,i)=>{"use strict";var s=i(31450),n=i(78209);const r=Object.freeze({View:(0,n.aS)("view","View"),Help:(0,n.aS)("help","Help"),Test:(0,n.aS)("test","Test"),File:(0,n.aS)("file","File"),Preferences:(0,n.aS)("preferences","Preferences"),Developer:(0,n.aS)({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer")});var o=i(27195),a=i(84001),l=i(32848),c=i(60002),h=i(5662),d=i(56942),u=i(8597),g=i(80789),p=i(25890),m=i(25689),f=i(92473),_=i(29163),v=i(83069),C=i(99020),b=i(25521),E=i(35600),S=i(46109);class y{constructor(e,t,i,s=null){this.startLineNumbers=e,this.endLineNumbers=t,this.lastLineRelativePosition=i,this.showEndForLine=s}equals(e){return!!e&&this.lastLineRelativePosition===e.lastLineRelativePosition&&this.showEndForLine===e.showEndForLine&&(0,p.aI)(this.startLineNumbers,e.startLineNumbers)&&(0,p.aI)(this.endLineNumbers,e.endLineNumbers)}static get Empty(){return new y([],[],0)}}const w=(0,g.H)("stickyScrollViewLayer",{createHTML:e=>e}),L="data-sticky-line-index",R="data-sticky-is-line",T="data-sticky-is-folding-icon";class x extends h.jG{constructor(e){super(),this._editor=e,this._foldingIconStore=new h.Cm,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(67),this._renderedStickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof _.t),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const t=()=>{this._linesDomNode.style.left=this._editor.getOption(116).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(116)&&t(),e.hasChanged(67)&&(this._lineHeight=this._editor.getOption(67))}))),this._register(this._editor.onDidScrollChange((e=>{e.scrollLeftChanged&&t(),e.scrollWidthChanged&&this._updateWidgetWidth()}))),this._register(this._editor.onDidChangeModel((()=>{t(),this._updateWidgetWidth()}))),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange((e=>{this._updateWidgetWidth()}))),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getRenderedStickyLine(e){return this._renderedStickyLines.find((t=>t.lineNumber===e))}getCurrentLines(){return this._lineNumbers}setState(e,t,i){if(void 0===i&&(!this._previousState&&!e||this._previousState&&this._previousState.equals(e)))return;const s=this._isWidgetHeightZero(e),n=s?void 0:e,r=s?0:this._findLineToRebuildWidgetFrom(e,i);this._renderRootNode(n,t,r),this._previousState=e}_isWidgetHeightZero(e){if(!e)return!0;const t=e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition;if(t>0){this._lastLineRelativePosition=e.lastLineRelativePosition;const t=[...e.startLineNumbers];null!==e.showEndForLine&&(t[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=t}else this._lastLineRelativePosition=0,this._lineNumbers=[];return 0===t}_findLineToRebuildWidgetFrom(e,t){if(!e||!this._previousState)return 0;if(void 0!==t)return t;const i=this._previousState,s=e.startLineNumbers.findIndex((e=>!i.startLineNumbers.includes(e)));return-1===s?0:s}_updateWidgetWidth(){const e=this._editor.getLayoutInfo(),t=e.contentLeft;this._lineNumbersDomNode.style.width=`${t}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",this._editor.getScrollWidth()-e.verticalScrollbarWidth+"px"),this._rootDomNode.style.width=e.width-e.verticalScrollbarWidth+"px"}_clearStickyLinesFromLine(e){this._foldingIconStore.clear();for(let t=e;t<this._renderedStickyLines.length;t++){const e=this._renderedStickyLines[t];e.lineNumberDomNode.remove(),e.lineDomNode.remove()}this._renderedStickyLines=this._renderedStickyLines.slice(0,e),this._rootDomNode.style.display="none"}_useFoldingOpacityTransition(e){this._lineNumbersDomNode.style.setProperty("--vscode-editorStickyScroll-foldingOpacityTransition",`opacity ${e?.5:0}s`)}_setFoldingIconsVisibility(e){for(const t of this._renderedStickyLines){const i=t.foldingIcon;i&&i.setVisible(!!e||i.isCollapsed)}}async _renderRootNode(e,t,i){if(this._clearStickyLinesFromLine(i),!e)return;for(const o of this._renderedStickyLines)this._updateTopAndZIndexOfStickyLine(o);const s=this._editor.getLayoutInfo(),n=this._lineNumbers.slice(i);for(const[o,a]of n.entries()){const e=this._renderChildNode(o+i,a,t,s);e&&(this._linesDomNode.appendChild(e.lineDomNode),this._lineNumbersDomNode.appendChild(e.lineNumberDomNode),this._renderedStickyLines.push(e))}t&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));const r=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;this._rootDomNode.style.display="block",this._lineNumbersDomNode.style.height=`${r}px`,this._linesDomNodeScrollable.style.height=`${r}px`,this._rootDomNode.style.height=`${r}px`,this._rootDomNode.style.marginLeft="0px",this._minContentWidthInPx=Math.max(...this._renderedStickyLines.map((e=>e.scrollWidth)))+s.verticalScrollbarWidth,this._editor.layoutOverlayWidget(this)}_setFoldingHoverListeners(){"mouseover"===this._editor.getOption(111)&&(this._foldingIconStore.add(u.ko(this._lineNumbersDomNode,u.Bx.MOUSE_ENTER,(()=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)}))),this._foldingIconStore.add(u.ko(this._lineNumbersDomNode,u.Bx.MOUSE_LEAVE,(()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)}))))}_renderChildNode(e,t,i,s){const n=this._editor._getViewModel();if(!n)return;const r=n.coordinatesConverter.convertModelPositionToViewPosition(new v.y(t,1)).lineNumber,o=n.getViewLineRenderingData(r),a=this._editor.getOption(68);let l;try{l=b.d.filter(o.inlineDecorations,r,o.minColumn,o.maxColumn)}catch(y){l=[]}const c=new E.zL(!0,!0,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,0,o.tokens,l,o.tabSize,o.startVisibleColumn,1,1,1,500,"none",!0,!0,null),h=new C.fe(2e3),d=(0,E.UW)(c,h);let u;u=w?w.createHTML(h.build()):h.build();const g=document.createElement("span");g.setAttribute(L,String(e)),g.setAttribute(R,""),g.setAttribute("role","listitem"),g.tabIndex=0,g.className="sticky-line-content",g.classList.add(`stickyLine${t}`),g.style.lineHeight=`${this._lineHeight}px`,g.innerHTML=u;const p=document.createElement("span");p.setAttribute(L,String(e)),p.setAttribute("data-sticky-is-line-number",""),p.className="sticky-line-number",p.style.lineHeight=`${this._lineHeight}px`;const m=s.contentLeft;p.style.width=`${m}px`;const f=document.createElement("span");1===a.renderType||3===a.renderType&&t%10===0?f.innerText=t.toString():2===a.renderType&&(f.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),f.className="sticky-line-number-inner",f.style.lineHeight=`${this._lineHeight}px`,f.style.width=`${s.lineNumbersWidth}px`,f.style.paddingLeft=`${s.lineNumbersLeft}px`,p.appendChild(f);const _=this._renderFoldingIconForLine(i,t);_&&p.appendChild(_.domNode),this._editor.applyFontInfo(g),this._editor.applyFontInfo(f),p.style.lineHeight=`${this._lineHeight}px`,g.style.lineHeight=`${this._lineHeight}px`,p.style.height=`${this._lineHeight}px`,g.style.height=`${this._lineHeight}px`;const S=new k(e,t,g,p,_,d.characterMapping,g.scrollWidth);return this._updateTopAndZIndexOfStickyLine(S)}_updateTopAndZIndexOfStickyLine(e){const t=e.index,i=e.lineDomNode,s=e.lineNumberDomNode,n=t===this._lineNumbers.length-1;i.style.zIndex=n?"0":"1",s.style.zIndex=n?"0":"1";const r=`${t*this._lineHeight+this._lastLineRelativePosition+(e.foldingIcon?.isCollapsed?1:0)}px`,o=t*this._lineHeight+"px";return i.style.top=n?r:o,s.style.top=n?r:o,e}_renderFoldingIconForLine(e,t){const i=this._editor.getOption(111);if(!e||"never"===i)return;const s=e.regions,n=s.findRange(t),r=s.getStartLineNumber(n);if(!(t===r))return;const o=s.isCollapsed(n),a=new A(o,r,s.getEndLineNumber(n),this._lineHeight);return a.setVisible(!!this._isOnGlyphMargin||(o||"always"===i)),a.domNode.setAttribute(T,""),a}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:2,stackOridinal:10}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e<this._renderedStickyLines.length&&this._renderedStickyLines[e].lineDomNode.focus()}getEditorPositionFromNode(e){if(!e||e.children.length>0)return null;const t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;const i=(0,f.rk)(t.characterMapping,e,0);return new v.y(t.lineNumber,i)}getLineNumberFromChildDomNode(e){return this._getRenderedStickyLineFromChildDomNode(e)?.lineNumber??null}_getRenderedStickyLineFromChildDomNode(e){const t=this.getLineIndexFromChildDomNode(e);return null===t||t<0||t>=this._renderedStickyLines.length?null:this._renderedStickyLines[t]}getLineIndexFromChildDomNode(e){const t=this._getAttributeValue(e,L);return t?parseInt(t,10):null}isInStickyLine(e){return void 0!==this._getAttributeValue(e,R)}isInFoldingIconDomNode(e){return void 0!==this._getAttributeValue(e,T)}_getAttributeValue(e,t){for(;e&&e!==this._rootDomNode;){const i=e.getAttribute(t);if(null!==i)return i;e=e.parentElement}}}class k{constructor(e,t,i,s,n,r,o){this.index=e,this.lineNumber=t,this.lineDomNode=i,this.lineNumberDomNode=s,this.foldingIcon=n,this.characterMapping=r,this.scrollWidth=o}}class A{constructor(e,t,i,s){this.isCollapsed=e,this.foldingStartLine=t,this.foldingEndLine=i,this.dimension=s,this.domNode=document.createElement("div"),this.domNode.style.width=`${s}px`,this.domNode.style.height=`${s}px`,this.domNode.className=m.L.asClassName(e?S.k0:S.E0)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}var N=i(18447),I=i(90766),O=i(41234),D=i(17469),M=i(29999),P=i(44588),F=i(87784),U=i(76495),H=i(64383);class B{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}}class W{constructor(e,t,i){this.range=e,this.children=t,this.parent=i}}class V{constructor(e,t,i,s){this.uri=e,this.version=t,this.element=i,this.outlineProviderId=s}}var z,G,j=i(42522),K=i(63591),Y=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},q=function(e,t){return function(i,s){t(i,s,e)}};!function(e){e.OUTLINE_MODEL="outlineModel",e.FOLDING_PROVIDER_MODEL="foldingProviderModel",e.INDENTATION_MODEL="indentationModel"}(z||(z={})),function(e){e[e.VALID=0]="VALID",e[e.INVALID=1]="INVALID",e[e.CANCELED=2]="CANCELED"}(G||(G={}));let $=class extends h.jG{constructor(e,t,i,s){switch(super(),this._editor=e,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new I.ve(300)),this._updateOperation=this._register(new h.Cm),this._editor.getOption(116).defaultModel){case z.OUTLINE_MODEL:this._modelProviders.push(new X(this._editor,s));case z.FOLDING_PROVIDER_MODEL:this._modelProviders.push(new ee(this._editor,t,s));case z.INDENTATION_MODEL:this._modelProviders.push(new J(this._editor,i))}}dispose(){this._modelProviders.forEach((e=>e.dispose())),this._updateOperation.clear(),this._cancelModelPromise(),super.dispose()}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}async update(e){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),await this._updateScheduler.trigger((async()=>{for(const t of this._modelProviders){const{statusPromise:i,modelPromise:s}=t.computeStickyModel(e);this._modelPromise=s;const n=await i;if(this._modelPromise!==s)return null;switch(n){case G.CANCELED:return this._updateOperation.clear(),null;case G.VALID:return t.stickyModel}}return null})).catch((e=>((0,H.dz)(e),null)))}};$=Y([q(2,K._Y),q(3,d.ILanguageFeaturesService)],$);class Q extends h.jG{constructor(e){super(),this._editor=e,this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,G.INVALID}computeStickyModel(e){if(e.isCancellationRequested||!this.isProviderValid())return{statusPromise:this._invalid(),modelPromise:null};const t=(0,I.SS)((e=>this.createModelFromProvider(e)));return{statusPromise:t.then((t=>this.isModelValid(t)?e.isCancellationRequested?G.CANCELED:(this._stickyModel=this.createStickyModel(e,t),G.VALID):this._invalid())).then(void 0,(e=>((0,H.dz)(e),G.CANCELED))),modelPromise:t}}isModelValid(e){return!0}isProviderValid(){return!0}}let X=class extends Q{constructor(e,t){super(e),this._languageFeaturesService=t}createModelFromProvider(e){return M.i9.create(this._languageFeaturesService.documentSymbolProvider,this._editor.getModel(),e)}createStickyModel(e,t){const{stickyOutlineElement:i,providerID:s}=this._stickyModelFromOutlineModel(t,this._stickyModel?.outlineProviderId),n=this._editor.getModel();return new V(n.uri,n.getVersionId(),i,s)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let i;if(j.f.first(e.children.values())instanceof M.e0){const s=j.f.find(e.children.values(),(e=>e.id===t));if(s)i=s.children;else{let s,n="",r=-1;for(const[t,i]of e.children.entries()){const e=this._findSumOfRangesOfGroup(i);e>r&&(s=i,r=e,n=i.id)}t=n,i=s.children}}else i=e.children;const s=[],n=Array.from(i.values()).sort(((e,t)=>{const i=new B(e.symbol.range.startLineNumber,e.symbol.range.endLineNumber),s=new B(t.symbol.range.startLineNumber,t.symbol.range.endLineNumber);return this._comparator(i,s)}));for(const r of n)s.push(this._stickyModelFromOutlineElement(r,r.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new W(void 0,s,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){const i=[];for(const n of e.children.values())if(n.symbol.selectionRange.startLineNumber!==n.symbol.range.endLineNumber)if(n.symbol.selectionRange.startLineNumber!==t)i.push(this._stickyModelFromOutlineElement(n,n.symbol.selectionRange.startLineNumber));else for(const e of n.children.values())i.push(this._stickyModelFromOutlineElement(e,n.symbol.selectionRange.startLineNumber));i.sort(((e,t)=>this._comparator(e.range,t.range)));const s=new B(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new W(s,i,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(const i of e.children.values())t+=this._findSumOfRangesOfGroup(i);return e instanceof M.LC?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};X=Y([q(1,d.ILanguageFeaturesService)],X);class Z extends Q{constructor(e){super(e),this._foldingLimitReporter=new P.BP(e)}createStickyModel(e,t){const i=this._fromFoldingRegions(t),s=this._editor.getModel();return new V(s.uri,s.getVersionId(),i,void 0)}isModelValid(e){return null!==e}_fromFoldingRegions(e){const t=e.length,i=[],s=new W(void 0,[],void 0);for(let n=0;n<t;n++){const t=e.getParentIndex(n);let r;r=-1!==t?i[t]:s;const o=new W(new B(e.getStartLineNumber(n),e.getEndLineNumber(n)+1),[],r);r.children.push(o),i.push(o)}return s}}let J=class extends Z{constructor(e,t){super(e),this._languageConfigurationService=t,this.provider=this._register(new U.hW(e.getModel(),this._languageConfigurationService,this._foldingLimitReporter))}async createModelFromProvider(e){return this.provider.compute(e)}};J=Y([q(1,D.JZ)],J);let ee=class extends Z{constructor(e,t,i){super(e),this._languageFeaturesService=i;const s=P.WR.getFoldingRangeProviders(this._languageFeaturesService,e.getModel());s.length>0&&(this.provider=this._register(new F.M(e.getModel(),s,t,this._foldingLimitReporter,void 0)))}isProviderValid(){return void 0!==this.provider}async createModelFromProvider(e){return this.provider?.compute(e)??null}};ee=Y([q(2,d.ILanguageFeaturesService)],ee);var te=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ie=function(e,t){return function(i,s){t(i,s,e)}};class se{constructor(e,t,i){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=i}}let ne=class extends h.jG{constructor(e,t,i){super(),this._languageFeaturesService=t,this._languageConfigurationService=i,this._onDidChangeStickyScroll=this._register(new O.vl),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new h.Cm),this._updateSoon=this._register(new I.uC((()=>this.update()),50)),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(116)&&this.readConfiguration()}))),this.readConfiguration()}readConfiguration(){this._sessionStore.clear();this._editor.getOption(116).enabled&&(this._sessionStore.add(this._editor.onDidChangeModel((()=>{this._model=null,this.updateStickyModelProvider(),this._onDidChangeStickyScroll.fire(),this.update()}))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas((()=>this.update()))),this._sessionStore.add(this._editor.onDidChangeModelContent((()=>this._updateSoon.schedule()))),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>this.update()))),this._sessionStore.add((0,h.s)((()=>{this._stickyModelProvider?.dispose(),this._stickyModelProvider=null}))),this.updateStickyModelProvider(),this.update())}getVersionId(){return this._model?.version}updateStickyModelProvider(){this._stickyModelProvider?.dispose(),this._stickyModelProvider=null;const e=this._editor;e.hasModel()&&(this._stickyModelProvider=new $(e,(()=>this._updateSoon.schedule()),this._languageConfigurationService,this._languageFeaturesService))}async update(){this._cts?.dispose(!0),this._cts=new N.Qi,await this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}async updateStickyModel(e){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization())return void(this._model=null);const t=await this._stickyModelProvider.update(e);e.isCancellationRequested||(this._model=t)}updateIndex(e){return-1===e?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,i,s,n){if(0===t.children.length)return;let r=n;const o=[];for(let c=0;c<t.children.length;c++){const e=t.children[c];e.range&&o.push(e.range.startLineNumber)}const a=this.updateIndex((0,p.El)(o,e.startLineNumber,((e,t)=>e-t))),l=this.updateIndex((0,p.El)(o,e.startLineNumber+s,((e,t)=>e-t)));for(let c=a;c<=l;c++){const o=t.children[c];if(!o)return;if(o.range){const t=o.range.startLineNumber,n=o.range.endLineNumber;e.startLineNumber<=n+1&&t-1<=e.endLineNumber&&t!==r&&(r=t,i.push(new se(t,n-1,s+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,o,i,s+1,t))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,o,i,s,n)}}getCandidateStickyLinesIntersecting(e){if(!this._model?.element)return[];let t=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,t,0,-1);const i=this._editor._getViewModel()?.getHiddenAreas();if(i)for(const s of i)t=t.filter((e=>!(e.startLineNumber>=s.startLineNumber&&e.endLineNumber<=s.endLineNumber+1)));return t}};ne=te([ie(1,d.ILanguageFeaturesService),ie(2,D.JZ)],ne);var re,oe=i(47508),ae=i(37927),le=i(36677),ce=i(80538),he=i(60952),de=i(32500),ue=i(47358),ge=i(52903),pe=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},me=function(e,t){return function(i,s){t(i,s,e)}};let fe=class extends h.jG{static{re=this}static{this.ID="store.contrib.stickyScrollController"}constructor(e,t,i,s,n,r,o){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=i,this._instaService=s,this._contextKeyService=o,this._sessionStore=new h.Cm,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._stickyScrollWidget=new x(this._editor),this._stickyLineCandidateProvider=new ne(this._editor,i,n),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=y.Empty,this._onDidResize(),this._readConfiguration();const a=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration((e=>{this._readConfigurationChange(e)}))),this._register(u.ko(a,u.Bx.CONTEXT_MENU,(async e=>{this._onContextMenu(u.zk(a),e)}))),this._stickyScrollFocusedContextKey=c.R.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=c.R.stickyScrollVisible.bindTo(this._contextKeyService);const l=this._register(u.w5(a));this._register(l.onDidBlur((e=>{!1===this._positionRevealed&&0===a.clientHeight?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()}))),this._register(l.onDidFocus((e=>{this.focus()}))),this._registerMouseListeners(),this._register(u.ko(a,u.Bx.MOUSE_DOWN,(e=>{this._onMouseDown=!0})))}static get(e){return e.getContribution(re.ID)}_disposeFocusStickyScrollStore(){this._stickyScrollFocusedContextKey.set(!1),this._focusDisposableStore?.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown)return this._onMouseDown=!1,void this._editor.focus();!0!==this._stickyScrollFocusedContextKey.get()&&(this._focused=!0,this._focusDisposableStore=new h.Cm,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex<this._stickyScrollWidget.lineNumberCount-1&&this._focusNav(!0)}focusPrevious(){this._focusedStickyElementIndex>0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._reveaInEditor(e,(()=>this._editor.revealPosition(e)))}_revealLineInCenterIfOutsideViewport(e){this._reveaInEditor(e,(()=>this._editor.revealLineInCenterIfOutsideViewport(e.lineNumber,0)))}_reveaInEditor(e,t){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,t(),this._editor.setSelection(le.Q.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){const e=this._register(new h.Cm),t=this._register(new ae.gi(this._editor,{extractLineNumberFromMouseEvent:e=>{const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);return t?t.lineNumber:0}})),i=e=>{if(!this._editor.hasModel())return null;if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return null;const t=e.target.element;if(!t||t.innerText!==t.innerHTML)return null;const i=this._stickyScrollWidget.getEditorPositionFromNode(t);return i?{range:new le.Q(i.lineNumber,i.column,i.lineNumber,i.column+t.innerText.length),textElement:t}:null},s=this._stickyScrollWidget.getDomNode();this._register(u.b2(s,u.Bx.CLICK,(e=>{if(e.ctrlKey||e.altKey||e.metaKey)return;if(!e.leftButton)return;if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t)return;const i=new v.y(this._endLineNumbers[t],1);return void this._revealLineInCenterIfOutsideViewport(i)}if(this._stickyScrollWidget.isInFoldingIconDomNode(e.target)){const t=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);return void this._toggleFoldingRegionForLine(t)}if(!this._stickyScrollWidget.isInStickyLine(e.target))return;let t=this._stickyScrollWidget.getEditorPositionFromNode(e.target);if(!t){const i=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);if(null===i)return;t=new v.y(i,1)}this._revealPosition(t)}))),this._register(u.b2(s,u.Bx.MOUSE_MOVE,(e=>{if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t||null!==this._showEndForLine&&this._showEndForLine===t)return;return this._showEndForLine=t,void this._renderStickyScroll()}void 0!==this._showEndForLine&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._register(u.ko(s,u.Bx.MOUSE_LEAVE,(e=>{void 0!==this._showEndForLine&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._register(t.onMouseMoveOrRelevantKeyDown((([t,s])=>{const n=i(t);if(!n||!t.hasTriggerModifier||!this._editor.hasModel())return void e.clear();const{range:r,textElement:o}=n;if(r.equalsRange(this._stickyRangeProjectedOnEditor)){if("underline"===o.style.textDecoration)return}else this._stickyRangeProjectedOnEditor=r,e.clear();const a=new N.Qi;let l;e.add((0,h.s)((()=>a.dispose(!0)))),(0,ce.hE)(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new v.y(r.startLineNumber,r.startColumn+1),!1,a.token).then((t=>{if(!a.token.isCancellationRequested)if(0!==t.length){this._candidateDefinitionsLength=t.length;const i=o;l!==i?(e.clear(),l=i,l.style.textDecoration="underline",e.add((0,h.s)((()=>{l.style.textDecoration="none"})))):l||(l=i,l.style.textDecoration="underline",e.add((0,h.s)((()=>{l.style.textDecoration="none"}))))}else e.clear()}))}))),this._register(t.onCancel((()=>{e.clear()}))),this._register(t.onExecute((async e=>{if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return;const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);t&&this._editor.hasModel()&&this._stickyRangeProjectedOnEditor&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:t.lineNumber,column:1})),this._instaService.invokeFunction(he.U,e,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(e,t){const i=new ue.P(e,t);this._contextMenuService.showContextMenu({menuId:o.D8.StickyScrollContext,getAnchor:()=>i})}_toggleFoldingRegionForLine(e){if(!this._foldingModel||null===e)return;const t=this._stickyScrollWidget.getRenderedStickyLine(e),i=t?.foldingIcon;if(!i)return;(0,ge.bC)(this._foldingModel,Number.MAX_VALUE,[e]),i.isCollapsed=!i.isCollapsed;const s=(i.isCollapsed?this._editor.getTopForLineNumber(i.foldingEndLine):this._editor.getTopForLineNumber(i.foldingStartLine))-this._editor.getOption(67)*t.index+1;this._editor.setScrollTop(s),this._renderStickyScroll(e)}_readConfiguration(){const e=this._editor.getOption(116);if(!1===e.enabled)return this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),void(this._enabled=!1);e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._sessionStore.add(this._editor.onDidLayoutChange((()=>this._onDidResize()))),this._sessionStore.add(this._editor.onDidChangeModelTokens((e=>this._onTokensChange(e)))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll((()=>{this._showEndForLine=void 0,this._renderStickyScroll()}))),this._enabled=!0);2===this._editor.getOption(68).renderType&&this._sessionStore.add(this._editor.onDidChangeCursorPosition((()=>{this._showEndForLine=void 0,this._renderStickyScroll(0)})))}_readConfigurationChange(e){(e.hasChanged(116)||e.hasChanged(73)||e.hasChanged(67)||e.hasChanged(111)||e.hasChanged(68))&&this._readConfiguration(),e.hasChanged(68)&&this._renderStickyScroll(0)}_needsUpdate(e){const t=this._stickyScrollWidget.getCurrentLines();for(const i of t)for(const t of e.ranges)if(i>=t.fromLineNumber&&i<=t.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll(0)}_onDidResize(){const e=this._editor.getLayoutInfo().height/this._editor.getOption(67);this._maxStickyLines=Math.round(.25*e)}async _renderStickyScroll(e){const t=this._editor.getModel();if(!t||t.isTooLargeForTokenization())return void this._resetState();const i=this._updateAndGetMinRebuildFromLine(e),s=this._stickyLineCandidateProvider.getVersionId();if(void 0===s||s===t.getVersionId())if(this._focused)if(-1===this._focusedStickyElementIndex)await this._updateState(i),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,-1!==this._focusedStickyElementIndex&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const e=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];if(await this._updateState(i),0===this._stickyScrollWidget.lineNumberCount)this._focusedStickyElementIndex=-1;else{this._stickyScrollWidget.lineNumbers.includes(e)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}}else await this._updateState(i)}_updateAndGetMinRebuildFromLine(e){if(void 0!==e){const t=void 0!==this._minRebuildFromLine?this._minRebuildFromLine:1/0;this._minRebuildFromLine=Math.min(e,t)}return this._minRebuildFromLine}async _updateState(e){this._minRebuildFromLine=void 0,this._foldingModel=await(P.WR.get(this._editor)?.getFoldingModel())??void 0,this._widgetState=this.findScrollWidgetState();const t=this._widgetState.startLineNumbers.length>0;this._stickyScrollVisibleContextKey.set(t),this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e)}async _resetState(){this._minRebuildFromLine=void 0,this._foldingModel=void 0,this._widgetState=y.Empty,this._stickyScrollVisibleContextKey.set(!1),this._stickyScrollWidget.setState(void 0,void 0)}findScrollWidgetState(){const e=this._editor.getOption(67),t=Math.min(this._maxStickyLines,this._editor.getOption(116).maxLineCount),i=this._editor.getScrollTop();let s=0;const n=[],r=[],o=this._editor.getVisibleRanges();if(0!==o.length){const a=new B(o[0].startLineNumber,o[o.length-1].endLineNumber),l=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(a);for(const o of l){const a=o.startLineNumber,l=o.endLineNumber,c=o.nestingDepth;if(l-a>0){const o=(c-1)*e,h=c*e,d=this._editor.getBottomForLineNumber(a)-i,u=this._editor.getTopForLineNumber(l)-i,g=this._editor.getBottomForLineNumber(l)-i;if(o>u&&o<=g){n.push(a),r.push(l+1),s=g-h;break}if(h>d&&h<=g&&(n.push(a),r.push(l+1)),n.length===t)break}}}return this._endLineNumbers=r,new y(n,r,s,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};fe=re=pe([me(1,oe.Z),me(2,d.ILanguageFeaturesService),me(3,K._Y),me(4,D.JZ),me(5,de.ILanguageFeatureDebounceService),me(6,l.fN)],fe);class _e extends o.L{constructor(){super({id:"editor.action.toggleStickyScroll",title:{...(0,n.aS)("toggleEditorStickyScroll","Toggle Editor Sticky Scroll"),mnemonicTitle:(0,n.kg)({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Editor Sticky Scroll")},metadata:{description:(0,n.aS)("toggleEditorStickyScroll.description","Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport")},category:r.View,toggled:{condition:l.M$.equals("config.editor.stickyScroll.enabled",!0),title:(0,n.kg)("stickyScroll","Sticky Scroll"),mnemonicTitle:(0,n.kg)({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:o.D8.CommandPalette},{id:o.D8.MenubarAppearanceMenu,group:"4_editor",order:3},{id:o.D8.StickyScrollContext}]})}async run(e){const t=e.get(a.pG),i=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",i)}}const ve=100;class Ce extends s.qO{constructor(){super({id:"editor.action.focusStickyScroll",title:{...(0,n.aS)("focusStickyScroll","Focus on the editor sticky scroll"),mnemonicTitle:(0,n.kg)({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll")},precondition:l.M$.and(l.M$.has("config.editor.stickyScroll.enabled"),c.R.stickyScrollVisible),menu:[{id:o.D8.CommandPalette}]})}runEditorCommand(e,t){fe.get(t)?.focus()}}class be extends s.qO{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:(0,n.aS)("selectNextStickyScrollLine.title","Select the next editor sticky scroll line"),precondition:c.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:18}})}runEditorCommand(e,t){fe.get(t)?.focusNext()}}class Ee extends s.qO{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:(0,n.aS)("selectPreviousStickyScrollLine.title","Select the previous sticky scroll line"),precondition:c.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:16}})}runEditorCommand(e,t){fe.get(t)?.focusPrevious()}}class Se extends s.qO{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:(0,n.aS)("goToFocusedStickyScrollLine.title","Go to the focused sticky scroll line"),precondition:c.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:3}})}runEditorCommand(e,t){fe.get(t)?.goToFocused()}}class ye extends s.qO{constructor(){super({id:"editor.action.selectEditor",title:(0,n.aS)("selectEditor.title","Select Editor"),precondition:c.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:ve,primary:9}})}runEditorCommand(e,t){fe.get(t)?.selectEditor()}}(0,s.HW)(fe.ID,fe,1),(0,o.ug)(_e),(0,o.ug)(Ce),(0,o.ug)(Ee),(0,o.ug)(be),(0,o.ug)(Se),(0,o.ug)(ye)},51173:(e,t,i)=>{"use strict";i.d(t,{C:()=>a,O:()=>o});var s=i(25890),n=i(26690),r=i(91508);class o{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}class a{constructor(e,t,i,s,r,o,l=n.Nd.default,c=void 0){this.clipboardText=c,this._snippetCompareFn=a._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=s,this._options=r,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=l,"top"===o?this._snippetCompareFn=a._compareCompletionItemsSnippetsUp:"bottom"===o&&(this._snippetCompareFn=a._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}get items(){return this._ensureCachedState(),this._filteredItems}getItemsByProvider(){return this._ensureCachedState(),this._itemsByProvider}getIncompleteProvider(){this._ensureCachedState();const e=new Set;for(const[t,i]of this.getItemsByProvider())i.length>0&&i[0].container.incomplete&&e.add(t);return e}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let o="",a="";const l=1===this._refilterKind?this._items:this._filteredItems,c=[],h=!this._options.filterGraceful||l.length>2e3?n.dt:n.uU;for(let s=0;s<l.length;s++){const d=l[s];if(d.isInvalid)continue;const u=this._itemsByProvider.get(d.provider);u?u.push(d):this._itemsByProvider.set(d.provider,[d]);const g=d.position.column-d.editStart.column,p=g+i-(d.position.column-this._column);if(o.length!==p&&(o=0===p?"":t.slice(-p),a=o.toLowerCase()),d.word=o,0===p)d.score=n.ne.Default;else{let e=0;for(;e<g;){const t=o.charCodeAt(e);if(32!==t&&9!==t)break;e+=1}if(e>=p)d.score=n.ne.Default;else if("string"===typeof d.completion.filterText){const t=h(o,a,e,d.completion.filterText,d.filterTextLow,0,this._fuzzyScoreOptions);if(!t)continue;0===(0,r.W1)(d.completion.filterText,d.textLabel)?d.score=t:(d.score=(0,n.Jo)(o,a,e,d.textLabel,d.labelLow,0),d.score[0]=t[0])}else{const t=h(o,a,e,d.textLabel,d.labelLow,0,this._fuzzyScoreOptions);if(!t)continue;d.score=t}}d.idx=s,d.distance=this._wordDistance.distance(d.position,d.completion),c.push(d),e.push(d.textLabel.length)}this._filteredItems=c.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?(0,s.SO)(e.length-.85,e,((e,t)=>e-t)):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return a._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return a._compareCompletionItems(e,t)}}},48116:(e,t,i)=>{"use strict";i.d(t,{aR:()=>R,dt:()=>b,f3:()=>w,l1:()=>S,ob:()=>C,p3:()=>k,r3:()=>A});var s=i(18447),n=i(64383),r=i(26690),o=i(5662),a=i(78381),l=i(631),c=i(79400),h=i(83069),d=i(36677),u=i(18938),g=i(29319),p=i(78209),m=i(27195),f=i(50091),_=i(32848),v=i(56942);const C={Visible:i(89100).dg,HasFocusedSuggestion:new _.N1("suggestWidgetHasFocusedSuggestion",!1,(0,p.kg)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new _.N1("suggestWidgetDetailsVisible",!1,(0,p.kg)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new _.N1("suggestWidgetMultipleSuggestions",!1,(0,p.kg)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new _.N1("suggestionMakesTextEdit",!0,(0,p.kg)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new _.N1("acceptSuggestionOnEnter",!0,(0,p.kg)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new _.N1("suggestionHasInsertAndReplaceRange",!1,(0,p.kg)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new _.N1("suggestionInsertMode",void 0,{type:"string",description:(0,p.kg)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new _.N1("suggestionCanResolve",!1,(0,p.kg)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},b=new m.D8("suggestWidgetStatusBar");class E{constructor(e,t,i,s){this.position=e,this.completion=t,this.container=i,this.provider=s,this.isInvalid=!1,this.score=r.ne.Default,this.distance=0,this.textLabel="string"===typeof t.label?t.label:t.label?.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,d.Q.isIRange(t.range)?(this.editStart=new h.y(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new h.y(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new h.y(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||d.Q.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new h.y(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new h.y(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new h.y(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||d.Q.spansMultipleLines(t.range.insert)||d.Q.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!==typeof s.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return void 0!==this._resolveDuration}get resolveDuration(){return void 0!==this._resolveDuration?this._resolveDuration:-1}async resolve(e){if(!this._resolveCache){const t=e.onCancellationRequested((()=>{this._resolveCache=void 0,this._resolveDuration=void 0})),i=new a.W(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then((e=>{Object.assign(this.completion,e),this._resolveDuration=i.elapsed()}),(e=>{(0,n.MB)(e)&&(this._resolveCache=void 0,this._resolveDuration=void 0)})).finally((()=>{t.dispose()}))}return this._resolveCache}}class S{static{this.default=new S}constructor(e=2,t=new Set,i=new Set,s=new Map,n=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=s,this.showDeprecated=n}}let y;function w(){return y}class L{constructor(e,t,i,s){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=s}}async function R(e,t,i,r=S.default,l={triggerKind:0},c=s.XO.None){const h=new a.W;i=i.clone();const u=t.getWordAtPosition(i),p=u?new d.Q(i.lineNumber,u.startColumn,i.lineNumber,u.endColumn):d.Q.fromPositions(i),m={replace:p,insert:p.setEndPosition(i.lineNumber,i.column)},f=[],_=new o.Cm,v=[];let C=!1;const b=(e,t,s)=>{let n=!1;if(!t)return n;for(const o of t.suggestions)if(!r.kindFilter.has(o.kind)){if(!r.showDeprecated&&o?.tags?.includes(1))continue;o.range||(o.range=m),o.sortText||(o.sortText="string"===typeof o.label?o.label:o.label.label),!C&&o.insertTextRules&&4&o.insertTextRules&&(C=g.fr.guessNeedsClipboard(o.insertText)),f.push(new E(i,o,t,e)),n=!0}return(0,o.Xm)(t)&&_.add(t),v.push({providerName:e._debugDisplayName??"unknown_provider",elapsedProvider:t.duration??-1,elapsedOverall:s.elapsed()}),n},w=(async()=>{if(!y||r.kindFilter.has(27))return;const e=r.providerItemsToReuse.get(y);if(e)return void e.forEach((e=>f.push(e)));if(r.providerFilter.size>0&&!r.providerFilter.has(y))return;const s=new a.W,n=await y.provideCompletionItems(t,i,l,c);b(y,n,s)})();for(const s of e.orderedGroups(t)){let e=!1;if(await Promise.all(s.map((async s=>{if(r.providerItemsToReuse.has(s)){const t=r.providerItemsToReuse.get(s);return t.forEach((e=>f.push(e))),void(e=e||t.length>0)}if(!(r.providerFilter.size>0)||r.providerFilter.has(s))try{const n=new a.W,r=await s.provideCompletionItems(t,i,l,c);e=b(s,r,n)||e}catch(o){(0,n.M_)(o)}}))),e||c.isCancellationRequested)break}return await w,c.isCancellationRequested?(_.dispose(),Promise.reject(new n.AL)):new L(f.sort((R=r.snippetSortOrder,x.get(R))),C,{entries:v,elapsed:h.elapsed()},_);var R}function T(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.textLabel<t.textLabel?-1:e.textLabel>t.textLabel?1:e.completion.kind-t.completion.kind}const x=new Map;function k(e,t){e.getContribution("editor.contrib.suggestController")?.triggerSuggest((new Set).add(t),void 0,!0)}x.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return T(e,t)})),x.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return T(e,t)})),x.set(1,T),f.w.registerCommand("_executeCompletionItemProvider",(async(e,...t)=>{const[i,n,r,o]=t;(0,l.j)(c.r.isUri(i)),(0,l.j)(h.y.isIPosition(n)),(0,l.j)("string"===typeof r||!r),(0,l.j)("number"===typeof o||!o);const{completionProvider:a}=e.get(v.ILanguageFeaturesService),d=await e.get(u.ITextModelService).createModelReference(i);try{const e={incomplete:!1,suggestions:[]},t=[],i=d.object.textEditorModel.validatePosition(n),l=await R(a,d.object.textEditorModel,i,void 0,{triggerCharacter:r??void 0,triggerKind:r?1:0});for(const n of l.items)t.length<(o??0)&&t.push(n.resolve(s.XO.None)),e.incomplete=e.incomplete||n.container.incomplete,e.suggestions.push(n.completion);try{return await Promise.all(t),e}finally{setTimeout((()=>l.disposable.dispose()),100)}}finally{d.dispose()}}));class A{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}},90870:(e,t,i)=>{"use strict";i.d(t,{D:()=>je});var s,n=i(11007),r=i(25890),o=i(18447),a=i(64383),l=i(41234),c=i(42539),h=i(5662),d=i(98067),u=i(78381),g=i(631),p=i(55190),m=i(31450),f=i(7085),_=i(83069),v=i(36677),C=i(60002),b=i(30936),E=i(29319),S=i(88415),y=i(32848),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},L=function(e,t){return function(i,s){t(i,s,e)}};let R=class{static{s=this}static{this.AtEnd=new y.N1("atEndOfWord",!1)}constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=s.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration((e=>e.hasChanged(124)&&this._update())),this._update()}dispose(){this._configListener.dispose(),this._selectionListener?.dispose(),this._ckAtEnd.reset()}_update(){const e="on"===this._editor.getOption(124);if(this._enabled!==e)if(this._enabled=e,this._enabled){const e=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const e=this._editor.getModel(),t=this._editor.getSelection(),i=e.getWordAtPosition(t.getStartPosition());i?this._ckAtEnd.set(i.endColumn===t.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};R=s=w([L(1,y.fN)],R);var T,x=i(78209),k=i(50091),A=i(63591),N=i(18801),I=i(48116),O=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},D=function(e,t){return function(i,s){t(i,s,e)}};let M=class{static{T=this}static{this.OtherSuggestions=new y.N1("hasOtherSuggestions",!1)}constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=T.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){this._ckOtherSuggestions.reset(),this._listener?.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},i){if(0===e.items.length)return void this.reset();T._moveIndex(!0,e,t)!==t?(this._acceptNext=i,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition((()=>{this._ignore||this.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,i){let s=i;for(let n=t.items.length;n>0&&(s=(s+t.items.length+(e?1:-1))%t.items.length,s!==i)&&t.items[s].completion.additionalTextEdits;n--);return s}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=T._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};M=T=O([D(1,y.fN)],M);var P=i(60534);class F{constructor(e,t,i,s){this._disposables=new h.Cm,this._disposables.add(i.onDidSuggest((e=>{0===e.completionModel.items.length&&this.reset()}))),this._disposables.add(i.onDidCancel((e=>{this.reset()}))),this._disposables.add(t.onDidShow((()=>this._onItem(t.getFocusedItem())))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((n=>{if(this._active&&!t.isFrozen()&&0!==i.state){const t=n.charCodeAt(n.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&s(this._active.item)}})))}_onItem(e){if(!e||!(0,r.EI)(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new P.y;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}var U=i(96299);class H{static{this._maxSelectionLength=51200}constructor(e,t){this._disposables=new h.Cm,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType((()=>{if(this._locked||!e.hasModel())return;const t=e.getSelections(),i=t.length;let s=!1;for(let e=0;e<i;e++)if(!t[e].isEmpty()){s=!0;break}if(!s)return void(0!==this._lastOvertyped.length&&(this._lastOvertyped.length=0));this._lastOvertyped=[];const n=e.getModel();for(let e=0;e<i;e++){const i=t[e];if(n.getValueLengthInRange(i)>H._maxSelectionLength)return;this._lastOvertyped[e]={value:n.getValueInRange(i),multiline:i.startLineNumber!==i.endLineNumber}}}))),this._disposables.add(t.onDidTrigger((e=>{this._locked=!0}))),this._disposables.add(t.onDidCancel((e=>{this._locked=!1})))}getLastOvertypedInfo(e){if(e>=0&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}dispose(){this._disposables.dispose()}}var B=i(8597),W=(i(97791),i(93090)),V=i(90766),z=i(1592),G=i(91508),j=i(29163),K=i(11799),Y=i(57629),q=i(27195),$=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Q=function(e,t){return function(i,s){t(i,s,e)}};let X=class{constructor(e,t,i,s,n){this._menuId=t,this._menuService=s,this._contextKeyService=n,this._menuDisposables=new h.Cm,this.element=B.BC(e,B.$(".suggest-status-bar"));const r=e=>e instanceof q.Xe?i.createInstance(Y.rr,e,{useComma:!0}):void 0;this._leftActions=new K.E(this.element,{actionViewItemProvider:r}),this._rightActions=new K.E(this.element,{actionViewItemProvider:r}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this._leftActions.dispose(),this._rightActions.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{const t=[],i=[];for(const[s,n]of e.getActions())"left"===s?t.push(...n):i.push(...n);this._leftActions.clear(),this._leftActions.push(t),this._rightActions.clear(),this._rightActions.push(i)};this._menuDisposables.add(e.onDidChange((()=>t()))),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};X=$([Q(2,A._Y),Q(3,q.ez),Q(4,y.fN)],X);i(93409);var Z=i(9711),J=i(66261),ee=i(86723),te=i(47612),ie=i(88807),se=i(31295),ne=i(10350),re=i(25689),oe=i(16980),ae=i(20492),le=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ce=function(e,t){return function(i,s){t(i,s,e)}};function he(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let de=class{constructor(e,t){this._editor=e,this._onDidClose=new l.vl,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new l.vl,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new h.Cm,this._renderDisposeable=new h.Cm,this._borderWidth=1,this._size=new B.fg(330,0),this.domNode=B.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(ae.T,{editor:e}),this._body=B.$(".body"),this._scrollbar=new se.MU(this._body,{alwaysConsumeMouseWheel:!0}),B.BC(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=B.BC(this._body,B.$(".header")),this._close=B.BC(this._header,B.$("span"+re.L.asCSSSelector(ne.W.close))),this._close.title=x.kg("details.close","Close"),this._type=B.BC(this._header,B.$("p.type")),this._docs=B.BC(this._body,B.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._configureFont()})))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(50),i=t.getMassagedFontFamily(),s=e.get(120)||t.fontSize,n=e.get(121)||t.lineHeight,r=t.fontWeight,o=`${s}px`,a=`${n}px`;this.domNode.style.fontSize=o,this.domNode.style.lineHeight=""+n/s,this.domNode.style.fontWeight=r,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=a,this._close.style.width=a}getLayoutInfo(){const e=this._editor.getOption(121)||this._editor.getOption(50).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=x.kg("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){this._renderDisposeable.clear();let{detail:i,documentation:s}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}\n`,t+=`prefix: ${e.word??"(no prefix)"}\n`,t+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}\n`,t+=`distance: ${e.distance} (localityBonus-setting)\n`,t+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`,t+=`commit_chars: ${e.completion.commitCharacters?.join("")}\n`,s=(new oe.Bc).appendCodeblock("empty",t),i=`Provider: ${e.provider._debugDisplayName}`}if(t||he(e)){if(this.domNode.classList.remove("no-docs","no-type"),i){const e=i.length>1e5?`${i.substr(0,1e5)}\u2026`:i;this._type.textContent=e,this._type.title=e,B.WU(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(e))}else B.w_(this._type),this._type.title="",B.jD(this._type),this.domNode.classList.add("no-type");if(B.w_(this._docs),"string"===typeof s)this._docs.classList.remove("markdown-docs"),this._docs.textContent=s;else if(s){this._docs.classList.add("markdown-docs"),B.w_(this._docs);const e=this._markdownRenderer.render(s);this._docs.appendChild(e.element),this._renderDisposeable.add(e),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync((()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)})))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=e=>{e.preventDefault(),e.stopPropagation()},this._close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(e,t){const i=new B.fg(e,t);B.fg.equals(i,this._size)||(this._size=i,B.Ej(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};de=le([ce(1,A._Y)],de);class ue{constructor(e,t){let i,s;this.widget=e,this._editor=t,this.allowEditorOverflow=!0,this._disposables=new h.Cm,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new ie.v,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let n=0,r=0;this._disposables.add(this._resizable.onDidWillResize((()=>{i=this._topLeft,s=this._resizable.size}))),this._disposables.add(this._resizable.onDidResize((e=>{if(i&&s){this.widget.layout(e.dimension.width,e.dimension.height);let t=!1;e.west&&(r=s.width-e.dimension.width,t=!0),e.north&&(n=s.height-e.dimension.height,t=!0),t&&this._applyTopLeft({top:i.top+n,left:i.left+r})}e.done&&(i=void 0,s=void 0,n=0,r=0,this._userSize=e.dimension)}))),this._disposables.add(this.widget.onDidChangeContents((()=>{this._anchorBox&&this._placeAtAnchor(this._anchorBox,this._userSize??this.widget.size,this._preferAlignAtTop)})))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){const i=e.getBoundingClientRect();this._anchorBox=i,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,this._userSize??this.widget.size,t)}_placeAtAnchor(e,t,i){const s=B.tG(this.getDomNode().ownerDocument.body),n=this.widget.getLayoutInfo(),r=new B.fg(220,2*n.lineHeight),o=e.top,a=function(){const i=s.width-(e.left+e.width+n.borderWidth+n.horizontalPadding),a=-n.borderWidth+e.left+e.width,l=new B.fg(i,s.height-e.top-n.borderHeight-n.verticalPadding),c=l.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding);return{top:o,left:a,fit:i-t.width,maxSizeTop:l,maxSizeBottom:c,minSize:r.with(Math.min(i,r.width))}}(),l=function(){const i=e.left-n.borderWidth-n.horizontalPadding,a=Math.max(n.horizontalPadding,e.left-t.width-n.borderWidth),l=new B.fg(i,s.height-e.top-n.borderHeight-n.verticalPadding),c=l.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding);return{top:o,left:a,fit:i-t.width,maxSizeTop:l,maxSizeBottom:c,minSize:r.with(Math.min(i,r.width))}}(),c=function(){const i=e.left,o=-n.borderWidth+e.top+e.height,a=new B.fg(e.width-n.borderHeight,s.height-e.top-e.height-n.verticalPadding);return{top:o,left:i,fit:a.height-t.height,maxSizeBottom:a,maxSizeTop:a,minSize:r.with(a.width)}}(),h=[a,l,c],d=h.find((e=>e.fit>=0))??h.sort(((e,t)=>t.fit-e.fit))[0],u=e.top+e.height-n.borderHeight;let g,p=t.height;const m=Math.max(d.maxSizeTop.height,d.maxSizeBottom.height);let f;p>m&&(p=m),i?p<=d.maxSizeTop.height?(g=!0,f=d.maxSizeTop):(g=!1,f=d.maxSizeBottom):p<=d.maxSizeBottom.height?(g=!1,f=d.maxSizeBottom):(g=!0,f=d.maxSizeTop);let{top:_,left:v}=d;!g&&p>e.height&&(_=u-p);const C=this._editor.getDomNode();if(C){const e=C.getBoundingClientRect();_-=e.top,v-=e.left}this._applyTopLeft({left:v,top:_}),this._resizable.enableSashes(!g,d===a,g,d!==a),this._resizable.minSize=d.minSize,this._resizable.maxSize=f,this._resizable.layout(p,Math.min(f.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this._editor.layoutOverlayWidget(this)}}var ge=i(21852),pe=i(26690),me=i(79400),fe=i(62083),_e=i(53068),ve=i(23750),Ce=i(10154),be=i(7291),Ee=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Se=function(e,t){return function(i,s){t(i,s,e)}};function ye(e){return`suggest-aria-id:${e}`}const we=(0,i(61394).pU)("suggest-more-info",ne.W.chevronRight,x.kg("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),Le=new class e{static{this._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/}static{this._regexStrict=new RegExp(`^${e._regexRelaxed.source}$`,"i")}extract(t,i){if(t.textLabel.match(e._regexStrict))return i[0]=t.textLabel,!0;if(t.completion.detail&&t.completion.detail.match(e._regexStrict))return i[0]=t.completion.detail,!0;if(t.completion.documentation){const s="string"===typeof t.completion.documentation?t.completion.documentation:t.completion.documentation.value,n=e._regexRelaxed.exec(s);if(n&&(0===n.index||n.index+n[0].length===s.length))return i[0]=n[0],!0}return!1}};let Re=class{constructor(e,t,i,s){this._editor=e,this._modelService=t,this._languageService=i,this._themeService=s,this._onDidToggleDetails=new l.vl,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=new h.Cm,i=e;i.classList.add("show-file-icons");const s=(0,B.BC)(e,(0,B.$)(".icon")),n=(0,B.BC)(s,(0,B.$)("span.colorspan")),r=(0,B.BC)(e,(0,B.$)(".contents")),o=(0,B.BC)(r,(0,B.$)(".main")),a=(0,B.BC)(o,(0,B.$)(".icon-label.codicon")),l=(0,B.BC)(o,(0,B.$)("span.left")),c=(0,B.BC)(o,(0,B.$)("span.right")),d=new ge.s(l,{supportHighlights:!0,supportIcons:!0});t.add(d);const u=(0,B.BC)(l,(0,B.$)("span.signature-label")),g=(0,B.BC)(l,(0,B.$)("span.qualifier-label")),p=(0,B.BC)(c,(0,B.$)("span.details-label")),m=(0,B.BC)(c,(0,B.$)("span.readMore"+re.L.asCSSSelector(we)));m.title=x.kg("readMore","Read More");return{root:i,left:l,right:c,icon:s,colorspan:n,iconLabel:d,iconContainer:a,parametersLabel:u,qualifierLabel:g,detailsLabel:p,readMore:m,disposables:t,configureFont:()=>{const e=this._editor.getOptions(),t=e.get(50),n=t.getMassagedFontFamily(),r=t.fontFeatureSettings,a=e.get(120)||t.fontSize,l=e.get(121)||t.lineHeight,c=t.fontWeight,h=`${a}px`,d=`${l}px`,u=`${t.letterSpacing}px`;i.style.fontSize=h,i.style.fontWeight=c,i.style.letterSpacing=u,o.style.fontFamily=n,o.style.fontFeatureSettings=r,o.style.lineHeight=d,s.style.height=d,s.style.width=d,m.style.height=d,m.style.width=d}}}renderElement(e,t,i){i.configureFont();const{completion:s}=e;i.root.id=ye(t),i.colorspan.style.backgroundColor="";const n={labelEscapeNewLines:!0,matches:(0,pe.WJ)(e.score)},r=[];if(19===s.kind&&Le.extract(e,r))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=r[0];else if(20===s.kind&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const t=(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:e.textLabel}),be.p.FILE),r=(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:s.detail}),be.p.FILE);n.extraClasses=t.length>r.length?t:r}else 23===s.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",n.extraClasses=[(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:e.textLabel}),be.p.FOLDER),(0,_e.getIconClasses)(this._modelService,this._languageService,me.r.from({scheme:"fake",path:s.detail}),be.p.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...re.L.asClassNameArray(fe.HC.toIcon(s.kind))));s.tags&&s.tags.indexOf(1)>=0&&(n.extraClasses=(n.extraClasses||[]).concat(["deprecated"]),n.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,n),"string"===typeof s.label?(i.parametersLabel.textContent="",i.detailsLabel.textContent=Te(s.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=Te(s.label.detail||""),i.detailsLabel.textContent=Te(s.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(119).showInlineDetails?(0,B.WU)(i.detailsLabel):(0,B.jD)(i.detailsLabel),he(e)?(i.right.classList.add("can-expand-details"),(0,B.WU)(i.readMore),i.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},i.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),(0,B.jD)(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};function Te(e){return e.replace(/\r\n|\r|\n/g,"")}Re=Ee([Se(1,ve.IModelService),Se(2,Ce.L),Se(3,te.Gy)],Re);var xe,ke=i(19070),Ae=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},Ne=function(e,t){return function(i,s){t(i,s,e)}};(0,J.x1A)("editorSuggestWidget.background",J.CgL,x.kg("editorSuggestWidgetBackground","Background color of the suggest widget.")),(0,J.x1A)("editorSuggestWidget.border",J.sIe,x.kg("editorSuggestWidgetBorder","Border color of the suggest widget."));const Ie=(0,J.x1A)("editorSuggestWidget.foreground",J.By2,x.kg("editorSuggestWidgetForeground","Foreground color of the suggest widget."));(0,J.x1A)("editorSuggestWidget.selectedForeground",J.nH,x.kg("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),(0,J.x1A)("editorSuggestWidget.selectedIconForeground",J.c7i,x.kg("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const Oe=(0,J.x1A)("editorSuggestWidget.selectedBackground",J.AlL,x.kg("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));(0,J.x1A)("editorSuggestWidget.highlightForeground",J.QI5,x.kg("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),(0,J.x1A)("editorSuggestWidget.focusHighlightForeground",J.eMz,x.kg("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),(0,J.x1A)("editorSuggestWidgetStatus.foreground",(0,J.JO0)(Ie,.5),x.kg("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class De{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof j.t}`}restore(){const e=this._service.get(this._key,0)??"";try{const t=JSON.parse(e);if(B.fg.is(t))return B.fg.lift(t)}catch{}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let Me=class{static{xe=this}static{this.LOADING_MESSAGE=x.kg("suggestWidget.loading","Loading...")}static{this.NO_SUGGESTIONS_MESSAGE=x.kg("suggestWidget.noSuggestions","No suggestions.")}constructor(e,t,i,s,n){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new h.HE,this._pendingShowDetails=new h.HE,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new V.pc,this._disposables=new h.Cm,this._onDidSelect=new l.fV,this._onDidFocus=new l.fV,this._onDidHide=new l.vl,this._onDidShow=new l.vl,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new l.vl,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new ie.v,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new Pe(this,e),this._persistedSize=new De(t,e);class r{constructor(e,t,i=!1,s=!1){this.persistedSize=e,this.currentSize=t,this.persistHeight=i,this.persistWidth=s}}let o;this._disposables.add(this.element.onDidWillResize((()=>{this._contentWidget.lockPreference(),o=new r(this._persistedSize.restore(),this.element.size)}))),this._disposables.add(this.element.onDidResize((e=>{if(this._resize(e.dimension.width,e.dimension.height),o&&(o.persistHeight=o.persistHeight||!!e.north||!!e.south,o.persistWidth=o.persistWidth||!!e.east||!!e.west),e.done){if(o){const{itemHeight:e,defaultSize:t}=this.getLayoutInfo(),i=Math.round(e/2);let{width:s,height:n}=this.element.size;(!o.persistHeight||Math.abs(o.currentSize.height-n)<=i)&&(n=o.persistedSize?.height??t.height),(!o.persistWidth||Math.abs(o.currentSize.width-s)<=i)&&(s=o.persistedSize?.width??t.width),this._persistedSize.store(new B.fg(s,n))}this._contentWidget.unlockPreference(),o=void 0}}))),this._messageElement=B.BC(this.element.domNode,B.$(".message")),this._listElement=B.BC(this.element.domNode,B.$(".tree"));const a=this._disposables.add(n.createInstance(de,this.editor));a.onDidClose(this.toggleDetails,this,this._disposables),this._details=new ue(a,this.editor);const c=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(119).showIcons);c();const d=n.createInstance(Re,this.editor);this._disposables.add(d),this._disposables.add(d.onDidToggleDetails((()=>this.toggleDetails()))),this._list=new W.B8("SuggestWidget",this._listElement,{getHeight:e=>this.getLayoutInfo().itemHeight,getTemplateId:e=>"suggestion"},[d],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>x.kg("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:e=>{let t=e.textLabel;if("string"!==typeof e.completion.label){const{detail:i,description:s}=e.completion.label;i&&s?t=x.kg("label.full","{0} {1}, {2}",t,i,s):i?t=x.kg("label.detail","{0} {1}",t,i):s&&(t=x.kg("label.desc","{0}, {1}",t,s))}if(!e.isResolved||!this._isDetailsVisible())return t;const{documentation:i,detail:s}=e.completion,n=G.GP("{0}{1}",s||"",i?"string"===typeof i?i:i.value:"");return x.kg("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",t,n)}}}),this._list.style((0,ke.t8)({listInactiveFocusBackground:Oe,listInactiveFocusOutline:J.buw})),this._status=n.createInstance(X,this.element.domNode,I.dt);const u=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(119).showStatusBar);u(),this._disposables.add(s.onDidColorThemeChange((e=>this._onThemeChange(e)))),this._onThemeChange(s.getColorTheme()),this._disposables.add(this._list.onMouseDown((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onTap((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onDidChangeSelection((e=>this._onListSelection(e)))),this._disposables.add(this._list.onDidChangeFocus((e=>this._onListFocus(e)))),this._disposables.add(this.editor.onDidChangeCursorSelection((()=>this._onCursorSelectionChanged()))),this._disposables.add(this.editor.onDidChangeConfiguration((e=>{e.hasChanged(119)&&(u(),c()),this._completionModel&&(e.hasChanged(50)||e.hasChanged(120)||e.hasChanged(121))&&this._list.splice(0,this._list.length,this._completionModel.items)}))),this._ctxSuggestWidgetVisible=I.ob.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=I.ob.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=I.ob.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=I.ob.HasFocusedSuggestion.bindTo(i),this._disposables.add(B.b2(this._details.widget.domNode,"keydown",(e=>{this._onDetailsKeydown.fire(e)}))),this._disposables.add(this.editor.onMouseDown((e=>this._onEditorMouseDown(e))))}dispose(){this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),this._loadingTimeout?.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(e){"undefined"!==typeof e.element&&"undefined"!==typeof e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=(0,ee.Bb)(e.type)?2:1}_onListFocus(e){if(this._ignoreFocusEvents)return;if(!e.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),void this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const t=e.elements[0],i=e.indexes[0];t!==this._focusedItem&&(this._currentSuggestionDetails?.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=t,this._list.reveal(i),this._currentSuggestionDetails=(0,V.SS)((async e=>{const i=(0,V.EQ)((()=>{this._isDetailsVisible()&&this.showDetails(!0)}),250),s=e.onCancellationRequested((()=>i.dispose()));try{return await t.resolve(e)}finally{i.dispose(),s.dispose()}})),this._currentSuggestionDetails.then((()=>{i>=this._list.length||t!==this._list.element(i)||(this._ignoreFocusEvents=!0,this._list.splice(i,1,[t]),this._list.setFocus([i]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:ye(i)}))})).catch(a.dz)),this._onDidFocus.fire({item:t,index:i,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",4===e),this.element.domNode.classList.remove("message"),e){case 0:B.jD(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=xe.LOADING_MESSAGE,B.jD(this._listElement,this._status.element),B.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,n.h5)(xe.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=xe.NO_SUGGESTIONS_MESSAGE,B.jD(this._listElement,this._status.element),B.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,n.h5)(xe.NO_SUGGESTIONS_MESSAGE);break;case 3:case 4:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._show();break;case 5:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._details.show(),this._show()}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet((()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)}),100)}showTriggered(e,t){0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=(0,V.EQ)((()=>this._setState(1)),t)))}showSuggestions(e,t,i,s,n){if(this._contentWidget.setPosition(this.editor.getPosition()),this._loadingTimeout?.dispose(),this._currentSuggestionDetails?.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&2!==this._state&&0!==this._state)return void this._setState(4);const r=this._completionModel.items.length,o=0===r;if(this._ctxSuggestWidgetMultipleSuggestions.set(r>1),o)return this._setState(s?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),this._list.reveal(t,0),this._list.setFocus(n?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=B.Oq(B.zk(this.element.domNode),(()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}))}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!he(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._pendingShowDetails.value=B.Oq(B.zk(this.element.domNode),(()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._details.widget.isEmpty?this._details.hide():(this._positionDetails(),this.element.domNode.classList.add("shows-details")),this.editor.focus()}))}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){this._pendingLayout.clear(),this._pendingShowDetails.clear(),this._loadingTimeout?.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const e=this._persistedSize.restore(),t=Math.ceil(4.3*this.getLayoutInfo().itemHeight);e&&e.height<t&&this._persistedSize.store(e.with(void 0,t))}isFrozen(){return 4===this._state}_afterRender(e){null!==e?2!==this._state&&1!==this._state&&(this._isDetailsVisible()&&!this._details.widget.isEmpty&&this._details.show(),this._positionDetails()):this._isDetailsVisible()&&this._details.hide()}_layout(e){if(!this.editor.hasModel())return;if(!this.editor.getDomNode())return;const t=B.tG(this.element.domNode.ownerDocument.body),i=this.getLayoutInfo();e||(e=i.defaultSize);let s=e.height,n=e.width;if(this._status.element.style.height=`${i.itemHeight}px`,2===this._state||1===this._state)s=i.itemHeight+i.borderHeight,n=i.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new B.fg(n,s),this._contentWidget.setPreference(2);else{const r=t.width-i.borderHeight-2*i.horizontalPadding;n>r&&(n=r);const o=this._completionModel?this._completionModel.stats.pLabelLen*i.typicalHalfwidthCharacterWidth:n,a=i.statusBarHeight+this._list.contentHeight+i.borderHeight,l=i.itemHeight+i.statusBarHeight,c=B.BK(this.editor.getDomNode()),h=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),d=c.top+h.top+h.height,u=Math.min(t.height-d-i.verticalPadding,a),g=c.top+h.top-i.verticalPadding,p=Math.min(g,a);let m=Math.min(Math.max(p,u)+i.borderHeight,a);s===this._cappedHeight?.capped&&(s=this._cappedHeight.wanted),s<l&&(s=l),s>m&&(s=m);const f=150;s>u||this._forceRenderingAbove&&g>f?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),m=p):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),m=u),this.element.preferredSize=new B.fg(o,i.defaultSize.height),this.element.maxSize=new B.fg(r,m),this.element.minSize=new B.fg(220,l),this._cappedHeight=s===a?{wanted:this._cappedHeight?.wanted??e.height,capped:s}:void 0}this._resize(n,s)}_resize(e,t){const{width:i,height:s}=this.element.maxSize;e=Math.min(i,e),t=Math.min(s,t);const{statusBarHeight:n}=this.getLayoutInfo();this._list.layout(t-n,e),this._listElement.style.height=t-n+"px",this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,2===this._contentWidget.getPosition()?.preference[0])}getLayoutInfo(){const e=this.editor.getOption(50),t=(0,z.qE)(this.editor.getOption(121)||e.lineHeight,8,1e3),i=this.editor.getOption(119).showStatusBar&&2!==this._state&&1!==this._state?t:0,s=this._details.widget.borderWidth,n=2*s;return{itemHeight:t,statusBarHeight:i,borderWidth:s,borderHeight:n,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new B.fg(430,i+12*t+n)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};Me=xe=Ae([Ne(1,Z.CS),Ne(2,y.fN),Ne(3,te.Gy),Ne(4,A._Y)],Me);class Pe{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:s}=this._widget.getLayoutInfo();return new B.fg(t+2*i+s,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var Fe,Ue=i(90651),He=i(89403),Be=i(85600),We=i(87289),Ve=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ze=function(e,t){return function(i,s){t(i,s,e)}};class Ge{constructor(e,t){this._model=e,this._position=t,this._decorationOptions=We.kI.register({description:"suggest-line-suffix",stickiness:1});if(e.getLineMaxColumn(t.lineNumber)!==t.column){const i=e.getOffsetAt(t),s=e.getPositionAt(i+1);e.changeDecorations((e=>{this._marker&&e.removeDecoration(this._marker),this._marker=e.addDecoration(v.Q.fromPositions(t,s),this._decorationOptions)}))}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.changeDecorations((e=>{e.removeDecoration(this._marker),this._marker=void 0}))}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let je=class{static{Fe=this}static{this.ID="editor.contrib.suggestController"}static get(e){return e.getContribution(Fe.ID)}constructor(e,t,i,s,n,r,o){this._memoryService=t,this._commandService=i,this._contextKeyService=s,this._instantiationService=n,this._logService=r,this._telemetryService=o,this._lineSuffix=new h.HE,this._toDispose=new h.Cm,this._selectors=new Ke((e=>e.priority)),this._onWillInsertSuggestItem=new l.vl,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=e,this.model=n.createInstance(U.Y,this.editor),this._selectors.register({priority:0,select:(e,t,i)=>this._memoryService.select(e,t,i)});const a=I.ob.InsertMode.bindTo(s);a.set(e.getOption(119).insertMode),this._toDispose.add(this.model.onDidTrigger((()=>a.set(e.getOption(119).insertMode)))),this.widget=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>{const e=this._instantiationService.createInstance(Me,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect((e=>this._insertSuggestion(e,0)),this));const t=new F(this.editor,e,this.model,(e=>this._insertSuggestion(e,2)));this._toDispose.add(t);const i=I.ob.MakesTextEdit.bindTo(this._contextKeyService),s=I.ob.HasInsertAndReplaceRange.bindTo(this._contextKeyService),n=I.ob.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,h.s)((()=>{i.reset(),s.reset(),n.reset()}))),this._toDispose.add(e.onDidFocus((({item:e})=>{const t=this.editor.getPosition(),r=e.editStart.column,o=t.column;let a=!0;if("smart"===this.editor.getOption(1)&&2===this.model.state&&!e.completion.additionalTextEdits&&!(4&e.completion.insertTextRules)&&o-r===e.completion.insertText.length){a=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:r,endLineNumber:t.lineNumber,endColumn:o})!==e.completion.insertText}i.set(a),s.set(!_.y.equals(e.editInsertEnd,e.editReplaceEnd)),n.set(Boolean(e.provider.resolveCompletionItem)||Boolean(e.completion.documentation)||e.completion.detail!==e.completion.label)}))),this._toDispose.add(e.onDetailsKeyDown((e=>{e.toKeyCodeChord().equals(new c.dG(!0,!1,!1,!1,33))||d.zx&&e.toKeyCodeChord().equals(new c.dG(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeyCodeChord().isModifierKey()||this.editor.focus()}))),e}))),this._overtypingCapturer=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>this._toDispose.add(new H(this.editor,this.model))))),this._alternatives=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>this._toDispose.add(new M(this.editor,this._contextKeyService))))),this._toDispose.add(n.createInstance(R,e)),this._toDispose.add(this.model.onDidTrigger((e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new Ge(this.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((e=>{if(e.triggerOptions.shy)return;let t=-1;for(const s of this._selectors.itemsOrderedByPriorityDesc)if(t=s.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items),-1!==t)break;if(-1===t&&(t=0),0===this.model.state)return;let i=!1;if(e.triggerOptions.auto){const t=this.editor.getOption(119);"never"===t.selectionMode||"always"===t.selectionMode?i="never"===t.selectionMode:"whenTriggerCharacter"===t.selectionMode?i=1!==e.triggerOptions.triggerKind:"whenQuickSuggestion"===t.selectionMode&&(i=1===e.triggerOptions.triggerKind&&!e.triggerOptions.refilter)}this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.triggerOptions.auto,i)}))),this._toDispose.add(this.model.onDidCancel((e=>{e.retrigger||this.widget.value.hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((()=>{this.model.cancel(),this.model.clear()})));const u=I.ob.AcceptSuggestionsOnEnter.bindTo(s),g=()=>{const e=this.editor.getOption(1);u.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((()=>g()))),g()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose(),this._onWillInsertSuggestItem.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const i=b.O.get(this.editor);if(!i)return;this._onWillInsertSuggestItem.fire({item:e.item});const s=this.editor.getModel(),n=s.getAlternativeVersionId(),{item:r}=e,l=[],c=new o.Qi;1&t||this.editor.pushUndoStop();const h=this.getOverwriteInfo(r,Boolean(8&t));this._memoryService.memorize(s,this.editor.getPosition(),r);const d=r.isResolved;let g=-1,m=-1;if(Array.isArray(r.completion.additionalTextEdits)){this.model.cancel();const e=p.D.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",r.completion.additionalTextEdits.map((e=>{let t=v.Q.lift(e.range);if(t.startLineNumber===r.position.lineNumber&&t.startColumn>r.position.column){const e=this.editor.getPosition().column-r.position.column,i=e,s=v.Q.spansMultipleLines(t)?0:e;t=new v.Q(t.startLineNumber,t.startColumn+i,t.endLineNumber,t.endColumn+s)}return f.k.replaceMove(t,e.text)}))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!d){const e=new u.W;let i;const n=s.onDidChangeContent((e=>{if(e.isFlush)return c.cancel(),void n.dispose();for(const t of e.changes){const e=v.Q.getEndPosition(t.range);i&&!_.y.isBefore(e,i)||(i=e)}})),o=t;t|=2;let a=!1;const h=this.editor.onWillType((()=>{h.dispose(),a=!0,2&o||this.editor.pushUndoStop()}));l.push(r.resolve(c.token).then((()=>{if(!r.completion.additionalTextEdits||c.token.isCancellationRequested)return;if(i&&r.completion.additionalTextEdits.some((e=>_.y.isBefore(i,v.Q.getStartPosition(e.range)))))return!1;a&&this.editor.pushUndoStop();const e=p.D.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",r.completion.additionalTextEdits.map((e=>f.k.replaceMove(v.Q.lift(e.range),e.text)))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!a&&2&o||this.editor.pushUndoStop(),!0})).then((t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),m=!0===t?1:!1===t?0:-2})).finally((()=>{n.dispose(),h.dispose()})))}let{insertText:C}=r.completion;if(4&r.completion.insertTextRules||(C=E.fr.escape(C)),this.model.cancel(),i.insert(C,{overwriteBefore:h.overwriteBefore,overwriteAfter:h.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&r.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),r.completion.command)if(r.completion.command.id===Ye.id)this.model.trigger({auto:!0,retrigger:!0});else{const e=new u.W;l.push(this._commandService.executeCommand(r.completion.command.id,...r.completion.command.arguments?[...r.completion.command.arguments]:[]).catch((e=>{r.completion.extensionId?(0,a.M_)(e):(0,a.dz)(e)})).finally((()=>{g=e.elapsed()})))}4&t&&this._alternatives.value.set(e,(e=>{for(c.cancel();s.canUndo();){n!==s.getAlternativeVersionId()&&s.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(r),Promise.all(l).finally((()=>{this._reportSuggestionAcceptedTelemetry(r,s,d,g,m,e.index,e.model.items),this.model.clear(),c.dispose()}))}_reportSuggestionAcceptedTelemetry(e,t,i,s,n,r,o){if(0===Math.floor(100*Math.random()))return;const a=new Map;for(let h=0;h<Math.min(30,o.length);h++){const e=o[h].textLabel;a.has(e)?a.get(e).push(h):a.set(e,[h])}const l=a.get(e.textLabel),c=l&&l.length>1?l[0]:-1;this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:e.extensionId?.value??"unknown",providerId:e.provider._debugDisplayName??"unknown",kind:e.completion.kind,basenameHash:(0,Be.tW)((0,He.P8)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,He.LC)(t.uri),resolveInfo:e.provider.resolveCompletionItem?i?1:0:-1,resolveDuration:e.resolveDuration,commandDuration:s,additionalEditsAsync:n,index:r,firstIndex:c})}getOverwriteInfo(e,t){(0,g.j)(this.editor.hasModel());let i="replace"===this.editor.getOption(119).insertMode;t&&(i=!i);const s=e.position.column-e.editStart.column,n=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:s+(this.editor.getPosition().column-e.position.column),overwriteAfter:n+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){if((0,r.EI)(e.completion.additionalTextEdits)){const t=x.kg("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,n.xE)(t)}}triggerSuggest(e,t,i){this.editor.hasModel()&&(this.model.trigger({auto:t??!1,completionOptions:{providerFilter:e,kindFilter:i?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},s=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;const t=this.editor.getPosition(),i=e.editStart.column,s=t.column;if(s-i!==e.completion.insertText.length)return!0;return this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:s})!==e.completion.insertText};l.Jh.once(this.model.onDidTrigger)((e=>{const t=[];l.Jh.any(this.model.onDidTrigger,this.model.onDidCancel)((()=>{(0,h.AS)(t),i()}),void 0,t),this.model.onDidSuggest((({completionModel:e})=>{if((0,h.AS)(t),0===e.items.length)return void i();const n=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),r=e.items[n];s(r)?(this.editor.pushUndoStop(),this._insertSuggestion({index:n,item:r,model:e},7)):i()}),void 0,t)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let s=0;e&&(s|=4),t&&(s|=8),this._insertSuggestion(i,s)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};je=Fe=Ve([ze(1,S.GS),ze(2,k.d),ze(3,y.fN),ze(4,A._Y),ze(5,N.rr),ze(6,Ue.k)],je);class Ke{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(-1!==this._items.indexOf(e))throw new Error("Value is already registered");return this._items.push(e),this._items.sort(((e,t)=>this.prioritySelector(t)-this.prioritySelector(e))),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class Ye extends m.ks{static{this.id="editor.action.triggerSuggest"}constructor(){super({id:Ye.id,label:x.kg("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:y.M$.and(C.R.writable,C.R.hasCompletionItemProvider,I.ob.Visible.toNegated()),kbOpts:{kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const s=je.get(t);if(!s)return;let n;i&&"object"===typeof i&&!0===i.auto&&(n=!0),s.triggerSuggest(void 0,n,void 0)}}(0,m.HW)(je.ID,je,2),(0,m.Fl)(Ye);const qe=190,$e=m.DX.bindToContribution(je.get);(0,m.E_)(new $e({id:"acceptSelectedSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:y.M$.and(I.ob.Visible,C.R.textInputFocus),weight:qe},{primary:3,kbExpr:y.M$.and(I.ob.Visible,C.R.textInputFocus,I.ob.AcceptSuggestionsOnEnter,I.ob.MakesTextEdit),weight:qe}],menuOpts:[{menuId:I.dt,title:x.kg("accept.insert","Insert"),group:"left",order:1,when:I.ob.HasInsertAndReplaceRange.toNegated()},{menuId:I.dt,title:x.kg("accept.insert","Insert"),group:"left",order:1,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("insert"))},{menuId:I.dt,title:x.kg("accept.replace","Replace"),group:"left",order:1,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("replace"))}]})),(0,m.E_)(new $e({id:"acceptAlternativeSelectedSuggestion",precondition:y.M$.and(I.ob.Visible,C.R.textInputFocus,I.ob.HasFocusedSuggestion),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:I.dt,group:"left",order:2,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("insert")),title:x.kg("accept.replace","Replace")},{menuId:I.dt,group:"left",order:2,when:y.M$.and(I.ob.HasInsertAndReplaceRange,I.ob.InsertMode.isEqualTo("replace")),title:x.kg("accept.insert","Insert")}]})),k.w.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,m.E_)(new $e({id:"hideSuggestWidget",precondition:I.ob.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:9,secondary:[1033]}})),(0,m.E_)(new $e({id:"selectNextSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,m.E_)(new $e({id:"selectNextPageSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:12,secondary:[2060]}})),(0,m.E_)(new $e({id:"selectLastSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectLastSuggestion()})),(0,m.E_)(new $e({id:"selectPrevSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,m.E_)(new $e({id:"selectPrevPageSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:11,secondary:[2059]}})),(0,m.E_)(new $e({id:"selectFirstSuggestion",precondition:y.M$.and(I.ob.Visible,y.M$.or(I.ob.MultipleSuggestions,I.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectFirstSuggestion()})),(0,m.E_)(new $e({id:"focusSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion.negate()),handler:e=>e.focusSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}})),(0,m.E_)(new $e({id:"focusAndAcceptSuggestion",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion.negate()),handler:e=>{e.focusSuggestion(),e.acceptSelectedSuggestion(!0,!1)}})),(0,m.E_)(new $e({id:"toggleSuggestionDetails",precondition:y.M$.and(I.ob.Visible,I.ob.HasFocusedSuggestion),handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:I.dt,group:"right",order:1,when:y.M$.and(I.ob.DetailsVisible,I.ob.CanResolve),title:x.kg("detail.more","Show Less")},{menuId:I.dt,group:"right",order:1,when:y.M$.and(I.ob.DetailsVisible.toNegated(),I.ob.CanResolve),title:x.kg("detail.less","Show More")}]})),(0,m.E_)(new $e({id:"toggleExplainMode",precondition:I.ob.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2138}})),(0,m.E_)(new $e({id:"toggleSuggestionFocus",precondition:I.ob.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2570,mac:{primary:778}}})),(0,m.E_)(new $e({id:"insertBestCompletion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),R.AtEnd,I.ob.Visible.toNegated(),M.OtherSuggestions.toNegated(),b.O.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest((0,g.Gv)(t)?{fallback:"tab",...t}:{fallback:"tab"})},kbOpts:{weight:qe,primary:2}})),(0,m.E_)(new $e({id:"insertNextSuggestion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),M.OtherSuggestions,I.ob.Visible.toNegated(),b.O.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:2}})),(0,m.E_)(new $e({id:"insertPrevSuggestion",precondition:y.M$.and(C.R.textInputFocus,y.M$.equals("config.editor.tabCompletion","on"),M.OtherSuggestions,I.ob.Visible.toNegated(),b.O.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:qe,kbExpr:C.R.textInputFocus,primary:1026}})),(0,m.Fl)(class extends m.ks{constructor(){super({id:"editor.action.resetSuggestSize",label:x.kg("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){je.get(t)?.resetWidgetSize()}})},10846:(e,t,i)=>{"use strict";var s=i(18447),n=i(26690),r=i(42522),o=i(5662),a=i(80301),l=i(36677),c=i(72466),h=i(56942),d=i(51173),u=i(48116),g=i(88415),p=i(96299),m=i(14055),f=i(54770),_=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},v=function(e,t){return function(i,s){t(i,s,e)}};class C{constructor(e,t,i,s,n,r){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=s,this.command=n,this.completion=r}}let b=class extends o.mp{constructor(e,t,i,s,n,r){super(n.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=s,this._suggestMemoryService=r}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn<i.endColumn&&0===this.completionModel.getIncompleteProvider().size}get items(){const e=[],{items:t}=this.completionModel,i=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},t),o=r.f.slice(t,i),a=r.f.slice(t,0,i);let c=5;for(const h of r.f.concat(o,a)){if(h.score===n.ne.Default)continue;const t=new l.Q(h.editStart.lineNumber,h.editStart.column,h.editInsertEnd.lineNumber,h.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),i=h.completion.insertTextRules&&4&h.completion.insertTextRules?{snippet:h.completion.insertText}:h.completion.insertText;e.push(new C(t,i,h.filterTextLow??h.labelLow,h.completion.additionalTextEdits,h.completion.command,h)),c-- >=0&&h.resolve(s.XO.None)}return e}};b=_([v(5,g.GS)],b);let E=class extends o.jG{constructor(e,t,i,s){super(),this._languageFeatureService=e,this._clipboardService=t,this._suggestMemoryService=i,this._editorService=s,this._store.add(e.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(e,t,i,s){if(i.selectedSuggestionInfo)return;let n;for(const l of this._editorService.listCodeEditors())if(l.getModel()===e){n=l;break}if(!n)return;const r=n.getOption(90);if(u.r3.isAllOff(r))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const o=e.tokenization.getLineTokens(t.lineNumber),a=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("inline"!==u.r3.valueFor(r,a))return;let c,h,g=e.getWordAtPosition(t);if(g?.word||(c=this._getTriggerCharacterInfo(e,t)),!g?.word&&!c)return;if(g||(g=e.getWordUntilPosition(t)),g.endColumn!==t.column)return;const f=e.getValueInRange(new l.Q(t.lineNumber,1,t.lineNumber,t.column));if(!c&&this._lastResult?.canBeReused(e,t.lineNumber,g)){const e=new d.O(f,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),h=this._lastResult}else{const i=await(0,u.aR)(this._languageFeatureService.completionProvider,e,t,new u.l1(void 0,p.Y.createSuggestFilter(n).itemKind,c?.providers),c&&{triggerKind:1,triggerCharacter:c.ch},s);let r;i.needsClipboard&&(r=await this._clipboardService.readText());const o=new d.C(i.items,t.column,new d.O(f,0),m.S.None,n.getOption(119),n.getOption(113),{boostFullMatch:!1,firstMatchCanBeWeak:!1},r);h=new b(e,t.lineNumber,g,o,i,this._suggestMemoryService)}return this._lastResult=h,h}handleItemDidShow(e,t){t.completion.resolve(s.XO.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){const i=e.getValueInRange(l.Q.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),s=new Set;for(const n of this._languageFeatureService.completionProvider.all(e))n.triggerCharacters?.includes(i)&&s.add(n);if(0!==s.size)return{providers:s,ch:i}}};E=_([v(0,h.ILanguageFeaturesService),v(1,f.h),v(2,g.GS),v(3,a.T)],E),(0,c.x)(E)},88415:(e,t,i)=>{"use strict";i.d(t,{GS:()=>b});var s,n=i(90766),r=i(5662),o=i(74320),a=i(4853),l=i(62083),c=i(84001),h=i(14718),d=i(63591),u=i(9711),g=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},p=function(e,t){return function(i,s){t(i,s,e)}};class m{constructor(e){this.name=e}select(e,t,i){if(0===i.length)return 0;const s=i[0].score[0];for(let n=0;n<i.length;n++){const{score:e,completion:t}=i[n];if(e[0]!==s)break;if(t.preselect)return n}return 0}}class f extends m{constructor(){super("first")}memorize(e,t,i){}toJSON(){}fromJSON(){}}class _ extends m{constructor(){super("recentlyUsed"),this._cache=new o.qK(300,.66),this._seq=0}memorize(e,t,i){const s=`${e.getLanguageId()}/${i.textLabel}`;this._cache.set(s,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(e,t,i){if(0===i.length)return 0;const s=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(s))return super.select(e,t,i);const n=i[0].score[0];let r=-1,o=-1,a=-1;for(let l=0;l<i.length&&i[l].score[0]===n;l++){const t=`${e.getLanguageId()}/${i[l].textLabel}`,s=this._cache.peek(t);if(s&&s.touch>a&&s.type===i[l].completion.kind&&s.insertText===i[l].completion.insertText&&(a=s.touch,o=l),i[l].completion.preselect&&-1===r)return l}return-1!==o?o:-1!==r?r:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();for(const[t,i]of e)i.touch=0,i.type="number"===typeof i.type?i.type:l.HC.fromString(i.type),this._cache.set(t,i);this._seq=this._cache.size}}class v extends m{constructor(){super("recentlyUsedByPrefix"),this._trie=a.cB.forStrings(),this._seq=0}memorize(e,t,i){const{word:s}=e.getWordUntilPosition(t),n=`${e.getLanguageId()}/${s}`;this._trie.set(n,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:s}=e.getWordUntilPosition(t);if(!s)return super.select(e,t,i);const n=`${e.getLanguageId()}/${s}`;let r=this._trie.get(n);if(r||(r=this._trie.findSubstr(n)),r)for(let o=0;o<i.length;o++){const{kind:e,insertText:t}=i[o].completion;if(e===r.type&&t===r.insertText)return o}return super.select(e,t,i)}toJSON(){const e=[];return this._trie.forEach(((t,i)=>e.push([i,t]))),e.sort(((e,t)=>-(e[1].touch-t[1].touch))).forEach(((e,t)=>e[1].touch=t)),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type="number"===typeof i.type?i.type:l.HC.fromString(i.type),this._trie.set(t,i)}}}let C=class{static{s=this}static{this._strategyCtors=new Map([["recentlyUsedByPrefix",v],["recentlyUsed",_],["first",f]])}static{this._storagePrefix="suggest/memories"}constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new r.Cm,this._persistSoon=new n.uC((()=>this._saveState()),500),this._disposables.add(e.onWillSaveState((e=>{e.reason===u.LP.SHUTDOWN&&this._saveState()})))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(e,t){const i=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if(this._strategy?.name!==i){this._saveState();const e=s._strategyCtors.get(i)||f;this._strategy=new e;try{const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=this._storageService.get(`${s._storagePrefix}/${i}`,e);t&&this._strategy.fromJSON(JSON.parse(t))}catch(n){}}return this._strategy}_saveState(){if(this._strategy){const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=JSON.stringify(this._strategy);this._storageService.store(`${s._storagePrefix}/${this._strategy.name}`,t,e,1)}}};C=s=g([p(0,u.CS),p(1,c.pG)],C);const b=(0,d.u1)("ISuggestMemories");(0,h.v)(b,C,1)},96299:(e,t,i)=>{"use strict";i.d(t,{Y:()=>k});var s,n=i(90766),r=i(18447),o=i(64383),a=i(41234),l=i(5662),c=i(91508),h=i(75326),d=i(10920),u=i(14055),g=i(54770),p=i(84001),m=i(32848),f=i(18801),_=i(90651),v=i(51173),C=i(48116),b=i(56942),E=i(26690),S=i(631),y=i(62051),w=i(30936),L=i(97035),R=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,s){t(i,s,e)}};class x{static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const s=t.getWordAtPosition(i);return!!s&&((s.endColumn===i.column||s.startColumn+1===i.column)&&!!isNaN(Number(s.word)))}constructor(e,t,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=i}}let k=s=class{constructor(e,t,i,s,r,o,c,d,u){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=s,this._logService=r,this._contextKeyService=o,this._configurationService=c,this._languageFeaturesService=d,this._envService=u,this._toDispose=new l.Cm,this._triggerCharacterListener=new l.Cm,this._triggerQuickSuggest=new n.pc,this._triggerState=void 0,this._completionDisposables=new l.Cm,this._onDidCancel=new a.vl,this._onDidTrigger=new a.vl,this._onDidSuggest=new a.vl,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new h.L(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((()=>{this._updateTriggerCharacters()}))),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange((()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})));let g=!1;this._toDispose.add(this._editor.onDidCompositionStart((()=>{g=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((()=>{g=!1,this._onCompositionEnd()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((e=>{g||this._onCursorChange(e)}))),this._toDispose.add(this._editor.onDidChangeModelContent((()=>{g||void 0===this._triggerState||this._refilterCompletionItems()}))),this._updateTriggerCharacters()}dispose(){(0,l.AS)(this._triggerCharacterListener),(0,l.AS)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(92)||!this._editor.hasModel()||!this._editor.getOption(122))return;const e=new Map;for(const i of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const t of i.triggerCharacters||[]){let s=e.get(t);if(!s){s=new Set;const i=(0,C.f3)();i&&s.add(i),e.set(t,s)}s.add(i)}const t=t=>{if(!function(e,t){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;const i=t.getContextKeyValue(y.p.suppressSuggestions.key);return void 0!==i?!i:!e.getOption(62).suppressSuggestions}(this._editor,this._contextKeyService,this._configurationService))return;if(x.shouldAutoTrigger(this._editor))return;if(!t){const e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let i="";(0,c.LJ)(t.charCodeAt(t.length-1))?(0,c.pc)(t.charCodeAt(t.length-2))&&(i=t.substr(t.length-2)):i=t.charAt(t.length-1);const s=e.get(i);if(s){const e=new Map;if(this._completionModel)for(const[t,i]of this._completionModel.getItemsByProvider())s.has(t)||e.set(t,i);this.trigger({auto:!0,triggerKind:1,triggerCharacter:i,retrigger:Boolean(this._completionModel),clipboardText:this._completionModel?.clipboardText,completionOptions:{providerFilter:s,providerItemsToReuse:e}})}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd((()=>t())))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(e=!1){void 0!==this._triggerState&&(this._triggerQuickSuggest.cancel(),this._requestToken?.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){void 0!==this._triggerState&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:this._triggerState.auto,retrigger:!0}):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source?this.cancel():void 0===this._triggerState&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():void 0!==this._triggerState&&3===e.reason&&this._refilterCompletionItems()}_onCompositionEnd(){void 0===this._triggerState?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){C.r3.isAllOff(this._editor.getOption(90))||this._editor.getOption(119).snippetsPreventQuickSuggestions&&w.O.get(this._editor)?.isInSnippet()||(this.cancel(),this._triggerQuickSuggest.cancelAndSet((()=>{if(void 0!==this._triggerState)return;if(!x.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(90);if(!C.r3.isAllOff(i)){if(!C.r3.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);const s=e.tokenization.getLineTokens(t.lineNumber),n=s.getStandardTokenType(s.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==C.r3.valueFor(i,n))return}(function(e,t){if(!Boolean(t.getContextKeyValue(y.p.inlineSuggestionVisible.key)))return!0;const i=t.getContextKeyValue(y.p.suppressSuggestions.key);return void 0!==i?!i:!e.getOption(62).suppressSuggestions})(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(e)&&this.trigger({auto:!0})}}),this._editor.getOption(91)))}_refilterCompletionItems(){(0,S.j)(this._editor.hasModel()),(0,S.j)(void 0!==this._triggerState);const e=this._editor.getModel(),t=this._editor.getPosition(),i=new x(e,t,{...this._triggerState,refilter:!0});this._onNewContext(i)}trigger(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=new x(t,this._editor.getPosition(),e);this.cancel(e.retrigger),this._triggerState=e,this._onDidTrigger.fire({auto:e.auto,shy:e.shy??!1,position:this._editor.getPosition()}),this._context=i;let n={triggerKind:e.triggerKind??0};e.triggerCharacter&&(n={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new r.Qi;let a=1;switch(this._editor.getOption(113)){case"top":a=0;break;case"bottom":a=2}const{itemKind:l,showDeprecated:c}=s.createSuggestFilter(this._editor),h=new C.l1(a,e.completionOptions?.kindFilter??l,e.completionOptions?.providerFilter,e.completionOptions?.providerItemsToReuse,c),d=u.S.create(this._editorWorkerService,this._editor),g=(0,C.aR)(this._languageFeaturesService.completionProvider,t,this._editor.getPosition(),h,n,this._requestToken.token);Promise.all([g,d]).then((async([t,i])=>{if(this._requestToken?.dispose(),!this._editor.hasModel())return;let s=e?.clipboardText;if(!s&&t.needsClipboard&&(s=await this._clipboardService.readText()),void 0===this._triggerState)return;const n=this._editor.getModel(),r=new x(n,this._editor.getPosition(),e),o={...E.Nd.default,firstMatchCanBeWeak:!this._editor.getOption(119).matchOnWordStartOnly};if(this._completionModel=new v.C(t.items,this._context.column,{leadingLineContent:r.leadingLineContent,characterCountDelta:r.column-this._context.column},i,this._editor.getOption(119),this._editor.getOption(113),o,s),this._completionDisposables.add(t.disposable),this._onNewContext(r),this._reportDurationsTelemetry(t.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(const e of t.items)e.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${e.provider._debugDisplayName}`,e.completion)})).catch(o.dz)}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout((()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)}))}static createSuggestFilter(e){const t=new Set;"none"===e.getOption(113)&&t.add(27);const i=e.getOption(119);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(27),i.showUsers||t.add(25),i.showIssues||t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber)if((0,c.UU)(e.leadingLineContent)===(0,c.UU)(this._context.leadingLineContent)){if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0}):this.cancel();else if(this._completionModel)if(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){if(x.shouldAutoTrigger(this._editor)&&this._context){const e=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:e}})}}else if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&0!==e.leadingWord.word.length){const e=new Map,t=new Set;for(const[i,s]of this._completionModel.getItemsByProvider())s.length>0&&s[0].container.incomplete?t.add(i):e.set(i,s);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:t,providerItemsToReuse:e}})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){const s=x.shouldAutoTrigger(this._editor);if(!this._context)return void this.cancel();if(s&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0});if(this._context.triggerOptions.auto)return void this.cancel();if(this._completionModel.lineContext=t,i=this._completionModel.items.length>0,i&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:i})}}else this.cancel();else this.cancel()}};k=s=R([T(1,d.IEditorWorkerService),T(2,g.h),T(3,_.k),T(4,f.rr),T(5,m.fN),T(6,p.pG),T(7,b.ILanguageFeaturesService),T(8,L.k)],k)},14055:(e,t,i)=>{"use strict";i.d(t,{S:()=>o});var s=i(25890),n=i(36677),r=i(39286);class o{static{this.None=new class extends o{distance(){return 0}}}static async create(e,t){if(!t.getOption(119).localityBonus)return o.None;if(!t.hasModel())return o.None;const i=t.getModel(),a=t.getPosition();if(!e.canComputeWordRanges(i.uri))return o.None;const[l]=await(new r.n).provideSelectionRanges(i,[a]);if(0===l.length)return o.None;const c=await e.computeWordRanges(i.uri,l[0].range);if(!c)return o.None;const h=i.getWordUntilPosition(a);return delete c[h.word],new class extends o{distance(e,i){if(!a.equals(t.getPosition()))return 0;if(17===i.kind)return 2<<20;const r="string"===typeof i.label?i.label:i.label.label,o=c[r];if((0,s.Ct)(o))return 2<<20;const h=(0,s.El)(o,n.Q.fromPositions(e),n.Q.compareRangesUsingStarts),d=h>=0?o[h]:o[Math.max(0,~h-1)];let u=l.length;for(const t of l){if(!n.Q.containsRange(t.range,d))break;u-=1}return u}}}}},93409:(e,t,i)=>{"use strict";var s=i(78209),n=i(66261);(0,n.x1A)("symbolIcon.arrayForeground",n.CU6,(0,s.kg)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.booleanForeground",n.CU6,(0,s.kg)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.colorForeground",n.CU6,(0,s.kg)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.constantForeground",n.CU6,(0,s.kg)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,s.kg)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.fileForeground",n.CU6,(0,s.kg)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.folderForeground",n.CU6,(0,s.kg)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.keyForeground",n.CU6,(0,s.kg)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.keywordForeground",n.CU6,(0,s.kg)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,s.kg)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.moduleForeground",n.CU6,(0,s.kg)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.namespaceForeground",n.CU6,(0,s.kg)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.nullForeground",n.CU6,(0,s.kg)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.numberForeground",n.CU6,(0,s.kg)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.objectForeground",n.CU6,(0,s.kg)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.operatorForeground",n.CU6,(0,s.kg)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.packageForeground",n.CU6,(0,s.kg)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.propertyForeground",n.CU6,(0,s.kg)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.referenceForeground",n.CU6,(0,s.kg)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.snippetForeground",n.CU6,(0,s.kg)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.stringForeground",n.CU6,(0,s.kg)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.structForeground",n.CU6,(0,s.kg)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.textForeground",n.CU6,(0,s.kg)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.typeParameterForeground",n.CU6,(0,s.kg)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.unitForeground",n.CU6,(0,s.kg)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,n.x1A)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,s.kg)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))},98472:(e,t,i)=>{"use strict";var s=i(11007),n=i(77163),r=i(78209),o=i(27195);class a extends o.L{static{this.ID="editor.action.toggleTabFocusMode"}constructor(){super({id:a.ID,title:r.aS({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},metadata:{description:r.aS("tabMovesFocusDescriptions","Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.")},f1:!0})}run(){const e=!n.M.getTabFocusMode();n.M.setTabFocusMode(e),e?(0,s.xE)(r.kg("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,s.xE)(r.kg("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}(0,o.ug)(a)},50166:(e,t,i)=>{"use strict";var s=i(78381),n=i(31450),r=i(78209);class o extends n.ks{constructor(){super({id:"editor.action.forceRetokenize",label:r.kg("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const n=new s.W;i.tokenization.forceTokenization(i.getLineCount()),n.stop(),console.log(`tokenization took ${n.elapsed()}`)}}(0,n.Fl)(o)},68887:(e,t,i)=>{"use strict";var s=i(90766),n=i(10350),r=i(16980),o=i(5662),a=i(98067),l=i(91508),c=i(31450),h=i(87908),d=i(87289),u=i(74855),g=i(10920),p=i(10154),m=i(32398),f=i(57039),_=i(57286),v=i(8597),C=i(11799),b=i(36921),E=i(20492),S=i(63591),y=i(56245),w=i(72962),L=i(25154),R=i(41234),T=i(49099),x=i(42904),k=i(67220),A=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},N=function(e,t){return function(i,s){t(i,s,e)}};let I=class extends o.jG{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}constructor(e,t,i={},s,n){super(),this._link=t,this._hoverService=s,this._enabled=!0,this.el=(0,v.BC)(e,(0,v.$)("a.monaco-link",{tabIndex:t.tabIndex??0,href:t.href},t.label)),this.hoverDelegate=i.hoverDelegate??(0,x.nZ)("mouse"),this.setTooltip(t.title),this.el.setAttribute("role","button");const r=this._register(new y.f(this.el,"click")),o=this._register(new y.f(this.el,"keypress")),a=R.Jh.chain(o.event,(e=>e.map((e=>new w.Z(e))).filter((e=>3===e.keyCode)))),l=this._register(new y.f(this.el,L.B.Tap)).event;this._register(L.q.addTarget(this.el));const c=R.Jh.any(r.event,a,l);this._register(c((e=>{this.enabled&&(v.fs.stop(e,!0),i?.opener?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))}))),this.enabled=!0}setTooltip(e){this.hoverDelegate.showNativeHover?this.el.title=e??"":!this.hover&&e?this.hover=this._register(this._hoverService.setupManagedHover(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};I=A([N(3,k.TN),N(4,T.C)],I);var O=i(61394),D=i(25689),M=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},P=function(e,t){return function(i,s){t(i,s,e)}};let F=class extends o.jG{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(U))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{this.hide(),e.onClose?.()}}),this._editor.setBanner(this.banner.element,26)}};F=M([P(1,S._Y)],F);let U=class extends o.jG{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(E.T,{}),this.element=(0,v.$)("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){return e.ariaLabel?e.ariaLabel:"string"===typeof e.message?e.message:void 0}getBannerMessage(e){if("string"===typeof e){const t=(0,v.$)("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){(0,v.w_)(this.element)}show(e){(0,v.w_)(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=(0,v.BC)(this.element,(0,v.$)("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild((0,v.$)(`div${D.L.asCSSSelector(e.icon)}`));const s=(0,v.BC)(this.element,(0,v.$)("div.message-container"));if(s.setAttribute("aria-hidden","true"),s.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=(0,v.BC)(this.element,(0,v.$)("div.message-actions-container")),e.actions)for(const r of e.actions)this._register(this.instantiationService.createInstance(I,this.messageActionsContainer,{...r,tabIndex:-1},{}));const n=(0,v.BC)(this.element,(0,v.$)("div.action-container"));this.actionBar=this._register(new C.E(n)),this.actionBar.push(this._register(new b.rc("banner.close","Close Banner",D.L.asClassName(O.$_),!0,(()=>{"function"===typeof e.onClose&&e.onClose()}))),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};U=M([P(0,S._Y)],U);var H=i(78209),B=i(84001),W=i(51467),V=i(51465),z=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},G=function(e,t){return function(i,s){t(i,s,e)}};const j=(0,O.pU)("extensions-warning-message",n.W.warning,H.kg("warningIcon","Icon shown with a warning message in the extensions editor."));let K=class extends o.jG{static{this.ID="editor.contrib.unicodeHighlighter"}constructor(e,t,i,s){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){if(this._bannerClosed)return;const t=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);let i;if(e.nonBasicAsciiCharacterCount>=t)i={message:H.kg("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new re};else if(e.ambiguousCharacterCount>=t)i={message:H.kg("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new se};else{if(!(e.invisibleCharacterCount>=t))throw new Error("Unreachable");i={message:H.kg("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new ne}}this._bannerController.show({id:"unicodeHighlightBanner",message:i.message,icon:j,actions:[{label:i.command.shortLabel,href:`command:${i.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(s.createInstance(F,e)),this._register(this._editor.onDidChangeModel((()=>{this._bannerClosed=!1,this._updateHighlighter()}))),this._options=e.getOption(126),this._register(i.onDidChangeTrust((e=>{this._updateHighlighter()}))),this._register(e.onDidChangeConfiguration((t=>{t.hasChanged(126)&&(this._options=e.getOption(126),this._updateHighlighter())}))),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=function(e,t){return{nonBasicASCII:t.nonBasicASCII===h.XR?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===h.XR?!e:t.includeComments,includeStrings:t.includeStrings===h.XR?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every((e=>!1===e)))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map((e=>e.codePointAt(0))),allowedLocales:Object.keys(e.allowedLocales).map((e=>{if("_os"===e){return(new Intl.NumberFormat).resolvedOptions().locale}return"_vscode"===e?a.BH:e}))};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new Y(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new q(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};K=z([G(1,g.IEditorWorkerService),G(2,V.L),G(3,S._Y)],K);let Y=class extends o.jG{constructor(e,t,i,n){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new s.uC((()=>this._update()),250)),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then((t=>{if(this._model.isDisposed())return;if(this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const e of t.ranges)i.push({range:e,options:ee.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)}))}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!(0,m.GN)(t,e))return null;return{reason:J(t.getValueInRange(e.range),this._options),inComment:(0,m.a6)(t,e),inString:(0,m.wc)(t,e)}}};Y=z([G(3,g.IEditorWorkerService)],Y);class q extends o.jG{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new s.uC((()=>this._update()),250)),this._register(this._editor.onDidLayoutChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidScrollChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeHiddenAreas((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const s of e){const e=u.UnicodeTextModelHighlighter.computeUnicodeHighlights(this._model,this._options,s);for(const t of e.ranges)i.ranges.push(t);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||e.hasMore}if(!i.hasMore)for(const s of i.ranges)t.push({range:s,options:ee.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return(0,m.GN)(t,e)?{reason:J(i,this._options),inComment:(0,m.a6)(t,e),inString:(0,m.wc)(t,e)}:null}}const $=H.kg("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options");let Q=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),s=this._editor.getContribution(K.ID);if(!s)return[];const n=[],o=new Set;let a=300;for(const c of t){const e=s.getDecorationInfo(c);if(!e)continue;const t=i.getValueInRange(c.range).codePointAt(0),h=Z(t);let d;switch(e.reason.kind){case 0:d=(0,l.aC)(e.reason.confusableWith)?H.kg("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",h,Z(e.reason.confusableWith.codePointAt(0))):H.kg("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,Z(e.reason.confusableWith.codePointAt(0)));break;case 1:d=H.kg("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:d=H.kg("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h)}if(o.has(d))continue;o.add(d);const u={codePoint:t,reason:e.reason,inComment:e.inComment,inString:e.inString},g=H.kg("unicodeHighlight.adjustSettings","Adjust settings"),p=`command:${oe.ID}?${encodeURIComponent(JSON.stringify(u))}`,m=new r.Bc("",!0).appendMarkdown(d).appendText(" ").appendLink(p,g,$);n.push(new _.eH(this,c.range,[m],!1,a++))}return n}renderHoverParts(e,t){return(0,_.fm)(e,t,this._editor,this._languageService,this._openerService)}};function X(e){return`U+${e.toString(16).padStart(4,"0")}`}function Z(e){let t=`\`${X(e)}\``;return l.y_.isInvisibleCharacter(e)||(t+=` "${function(e){if(96===e)return"`` ` ``";return"`"+String.fromCodePoint(e)+"`"}(e)}"`),t}function J(e,t){return u.UnicodeTextModelHighlighter.computeUnicodeHighlightReason(e,t)}Q=z([G(1,p.L),G(2,T.C)],Q);class ee{constructor(){this.map=new Map}static{this.instance=new ee}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let s=this.map.get(i);return s||(s=d.kI.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,s)),s}}class te extends c.ks{constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.includeComments,!1,2)}}class ie extends c.ks{constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.includeStrings,!1,2)}}class se extends c.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters"}constructor(){super({id:se.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.ambiguousCharacters,!1,2)}}class ne extends c.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters"}constructor(){super({id:ne.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.invisibleCharacters,!1,2)}}class re extends c.ks{static{this.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters"}constructor(){super({id:re.ID,label:H.kg("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=H.kg("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(e,t,i){const s=e?.get(B.pG);s&&this.runAction(s)}async runAction(e){await e.updateValue(h.Of.nonBasicASCII,!1,2)}}class oe extends c.ks{static{this.ID="editor.action.unicodeHighlight.showExcludeOptions"}constructor(){super({id:oe.ID,label:H.kg("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(e,t,i){const{codePoint:s,reason:n,inString:r,inComment:o}=i,a=String.fromCodePoint(s),c=e.get(W.GK),d=e.get(B.pG);const u=[];if(0===n.kind)for(const l of n.notAmbiguousInLocales)u.push({label:H.kg("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',l),run:async()=>{ae(d,[l])}});if(u.push({label:function(e){return l.y_.isInvisibleCharacter(e)?H.kg("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",X(e)):H.kg("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${X(e)} "${a}"`)}(s),run:()=>async function(e,t){const i=e.getValue(h.Of.allowedCharacters);let s;s="object"===typeof i&&i?i:{};for(const n of t)s[String.fromCodePoint(n)]=!0;await e.updateValue(h.Of.allowedCharacters,s,2)}(d,[s])}),o){const e=new te;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(r){const e=new ie;u.push({label:e.label,run:async()=>e.runAction(d)})}if(0===n.kind){const e=new se;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(1===n.kind){const e=new ne;u.push({label:e.label,run:async()=>e.runAction(d)})}else if(2===n.kind){const e=new re;u.push({label:e.label,run:async()=>e.runAction(d)})}else!function(e){throw new Error(`Unexpected value: ${e}`)}(n);const g=await c.pick(u,{title:$});g&&await g.run()}}async function ae(e,t){const i=e.inspect(h.Of.allowedLocales).user?.value;let s;s="object"===typeof i&&i?Object.assign({},i):{};for(const n of t)s[n]=!0;await e.updateValue(h.Of.allowedLocales,s,2)}(0,c.Fl)(se),(0,c.Fl)(ne),(0,c.Fl)(re),(0,c.Fl)(oe),(0,c.HW)(K.ID,K,1),f.B2.register(Q)},47210:(e,t,i)=>{"use strict";var s=i(5662),n=i(89403),r=i(31450),o=i(80301),a=i(78209),l=i(59599),c=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},h=function(e,t){return function(i,s){t(i,s,e)}};const d="ignoreUnusualLineTerminators";let u=class extends s.jG{static{this.ID="editor.contrib.unusualLineTerminatorsDetector"}constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._isPresentingDialog=!1,this._config=this._editor.getOption(127),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(127)&&(this._config=this._editor.getOption(127),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()}))),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,d)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(92))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());if(this._isPresentingDialog)return;let i;try{this._isPresentingDialog=!0,i=await this._dialogService.confirm({title:a.kg("unusualLineTerminators.title","Unusual Line Terminators"),message:a.kg("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.kg("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,n.P8)(e.uri)),primaryButton:a.kg({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:a.kg("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}i.confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,i){e.setModelProperty(t.uri,d,i)}(this._codeEditorService,e,!0)}};u=c([h(1,l.X),h(2,o.T)],u),(0,r.HW)(u.ID,u,1)},13864:(e,t,i)=>{"use strict";i.d(t,{P:()=>C,v:()=>b});var s=i(16223),n=i(87289),r=i(62083),o=i(78209),a=i(66261),l=i(47612);const c=(0,a.x1A)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},o.kg("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);(0,a.x1A)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},o.kg("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),(0,a.x1A)("editor.wordHighlightTextBackground",c,o.kg("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);const h=(0,a.x1A)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:a.buw,hcLight:a.buw},o.kg("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));(0,a.x1A)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:a.buw,hcLight:a.buw},o.kg("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),(0,a.x1A)("editor.wordHighlightTextBorder",h,o.kg("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));const d=(0,a.x1A)("editorOverviewRuler.wordHighlightForeground","#A0A0A0CC",o.kg("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u=(0,a.x1A)("editorOverviewRuler.wordHighlightStrongForeground","#C0A0C0CC",o.kg("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),g=(0,a.x1A)("editorOverviewRuler.wordHighlightTextForeground",a.z5H,o.kg("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),p=n.kI.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,l.Yf)(u),position:s.A5.Center},minimap:{color:(0,l.Yf)(a.Xp1),position:1}}),m=n.kI.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,l.Yf)(g),position:s.A5.Center},minimap:{color:(0,l.Yf)(a.Xp1),position:1}}),f=n.kI.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,l.Yf)(a.z5H),position:s.A5.Center},minimap:{color:(0,l.Yf)(a.Xp1),position:1}}),_=n.kI.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),v=n.kI.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,l.Yf)(d),position:s.A5.Center},minimap:{color:(0,l.Yf)(a.Xp1),position:1}});function C(e){return e===r.Kb.Write?p:e===r.Kb.Text?m:v}function b(e){return e?_:f}(0,l.zy)(((e,t)=>{const i=e.getColor(a.QwA);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)}))},79907:(e,t,i)=>{"use strict";var s=i(78209),n=i(11007),r=i(90766),o=i(18447),a=i(64383),l=i(5662),c=i(34326),h=i(31450),d=i(80301),u=i(36677),g=i(60002),p=i(16223),m=i(56942),f=i(13864),_=i(32848),v=i(36456),C=i(74320),b=i(54459),E=i(89403),S=i(26486),y=i(62083),w=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},L=function(e,t){return function(i,s){t(i,s,e)}};class R{constructor(){this.selector={language:"*"}}provideDocumentHighlights(e,t,i){const s=[],n=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!n)return Promise.resolve(s);if(e.isDisposed())return;return e.findMatches(n.word,!0,!1,!0,S.J3,!1).map((e=>({range:e.range,kind:y.Kb.Text})))}provideMultiDocumentHighlights(e,t,i,s){const n=new C.fT,r=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!r)return Promise.resolve(n);for(const o of[e,...i]){if(o.isDisposed())continue;const e=o.findMatches(r.word,!0,!1,!0,S.J3,!1).map((e=>({range:e.range,kind:y.Kb.Text})));e&&n.set(o.uri,e)}return n}}let T=class extends l.jG{constructor(e){super(),this._register(e.documentHighlightProvider.register("*",new R)),this._register(e.multiDocumentHighlightProvider.register("*",new R))}};T=w([L(0,m.ILanguageFeaturesService)],T);var x,k,A=i(72466),N=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},I=function(e,t){return function(i,s){t(i,s,e)}};const O=new _.N1("hasWordHighlights",!1);function D(e,t,i,s){const n=e.ordered(t);return(0,r.$1)(n.map((e=>()=>Promise.resolve(e.provideDocumentHighlights(t,i,s)).then(void 0,a.M_))),(e=>void 0!==e&&null!==e)).then((e=>{if(e){const i=new C.fT;return i.set(t.uri,e),i}return new C.fT}))}class M{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=(0,r.SS)((e=>this._compute(this._model,this._selection,this._wordSeparators,e)))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new u.Q(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const s=t.startLineNumber,n=t.startColumn,r=t.endColumn,o=this._getCurrentWordRange(e,t);let a=Boolean(this._wordRange&&this._wordRange.equalsRange(o));for(let l=0,c=i.length;!a&&l<c;l++){const e=i.getRange(l);e&&e.startLineNumber===s&&e.startColumn<=n&&e.endColumn>=r&&(a=!0)}return a}cancel(){this.result.cancel()}}class P extends M{constructor(e,t,i,s){super(e,t,i),this._providers=s}_compute(e,t,i,s){return D(this._providers,e,t.getPosition(),s).then((e=>e||new C.fT))}}class F extends M{constructor(e,t,i,s,n){super(e,t,i),this._providers=s,this._otherModels=n}_compute(e,t,i,s){return function(e,t,i,s,n,o){const l=e.ordered(t);return(0,r.$1)(l.map((e=>()=>{const s=o.filter((e=>(0,p.vd)(e))).filter((t=>(0,b.f)(e.selector,t.uri,t.getLanguageId(),!0,void 0,void 0)>0));return Promise.resolve(e.provideMultiDocumentHighlights(t,i,s,n)).then(void 0,a.M_)})),(e=>void 0!==e&&null!==e))}(this._providers,e,t.getPosition(),0,s,this._otherModels).then((e=>e||new C.fT))}}(0,h.ke)("_executeDocumentHighlights",(async(e,t,i)=>{const s=e.get(m.ILanguageFeaturesService),n=await D(s.documentHighlightProvider,t,i,o.XO.None);return n?.get(t.uri)}));let U=class{static{x=this}static{this.storedDecorationIDs=new C.fT}static{this.query=null}constructor(e,t,i,s,n){this.toUnhook=new l.Cm,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new C.fT,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.runDelayer=this.toUnhook.add(new r.ve(50)),this.editor=e,this.providers=t,this.multiDocumentProviders=i,this.codeEditorService=n,this._hasWordHighlights=O.bindTo(s),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((e=>{this._ignorePositionChangeEvent||"off"!==this.occurrencesHighlight&&this.runDelayer.trigger((()=>{this._onPositionChanged(e)}))}))),this.toUnhook.add(e.onDidFocusEditorText((e=>{"off"!==this.occurrencesHighlight&&(this.workerRequest||this.runDelayer.trigger((()=>{this._run()})))}))),this.toUnhook.add(e.onDidChangeModelContent((e=>{(0,v.v$)(this.model.uri,"output")||this._stopAll()}))),this.toUnhook.add(e.onDidChangeModel((e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():x.query&&this._run()}))),this.toUnhook.add(e.onDidChangeConfiguration((e=>{const t=this.editor.getOption(81);if(this.occurrencesHighlight!==t)switch(this.occurrencesHighlight=t,t){case"off":this._stopAll();break;case"singleFile":this._stopAll(x.query?.modelInfo?.model);break;case"multiFile":x.query&&this._run(!0);break;default:console.warn("Unknown occurrencesHighlight setting value:",t)}}))),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,x.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){"off"!==this.occurrencesHighlight&&(this.runDelayer.cancel(),this._run())}_getSortedHighlights(){return this.decorations.getRanges().sort(u.Q.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),t=e.findIndex((e=>e.containsPosition(this.editor.getPosition()))),i=(t+1)%e.length,s=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(s.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(s);const t=this._getWord();if(t){const r=this.editor.getModel().getLineContent(s.startLineNumber);(0,n.xE)(`${r}, ${i+1} of ${e.length} for '${t.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),t=e.findIndex((e=>e.containsPosition(this.editor.getPosition()))),i=(t-1+e.length)%e.length,s=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(s.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(s);const t=this._getWord();if(t){const r=this.editor.getModel().getLineContent(s.startLineNumber);(0,n.xE)(`${r}, ${i+1} of ${e.length} for '${t.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;const e=x.storedDecorationIDs.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),x.storedDecorationIDs.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(e){const t=this.codeEditorService.listCodeEditors(),i=[];for(const s of t){if(!s.hasModel()||(0,E.n4)(s.getModel().uri,e?.uri))continue;const t=x.storedDecorationIDs.get(s.getModel().uri);if(!t)continue;s.removeDecorations(t),i.push(s.getModel().uri);const n=H.get(s);n?.wordHighlighter&&(n.wordHighlighter.decorations.length>0&&(n.wordHighlighter.decorations.clear(),n.wordHighlighter.workerRequest=null,n.wordHighlighter._hasWordHighlights.set(!1)))}for(const s of i)x.storedDecorationIDs.delete(s)}_stopSingular(){this._removeSingleDecorations(),this.editor.hasTextFocus()&&(this.editor.getModel()?.uri.scheme!==v.ny.vscodeNotebookCell&&x.query?.modelInfo?.model.uri.scheme!==v.ny.vscodeNotebookCell?(x.query=null,this._run()):x.query?.modelInfo&&(x.query.modelInfo=null)),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(e){this._removeAllDecorations(e),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){"off"!==this.occurrencesHighlight&&(3===e.reason||this.editor.getModel()?.uri.scheme===v.ny.vscodeNotebookCell)?this._run():this._stopAll()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:i})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===v.ny.vscodeNotebookCell){const t=[],i=this.codeEditorService.listCodeEditors();for(const s of i){const i=s.getModel();i&&i!==e&&i.uri.scheme===v.ny.vscodeNotebookCell&&t.push(i)}return t}const t=[],i=this.codeEditorService.listCodeEditors();for(const s of i){if(!(0,c.Np)(s))continue;const i=s.getModel();i&&(e===i.modified&&t.push(i.modified))}if(t.length)return t;if("singleFile"===this.occurrencesHighlight)return[];for(const s of i){const i=s.getModel();i&&i!==e&&t.push(i)}return t}_run(e){let t;if(this.editor.hasTextFocus()){const e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber)return x.query=null,void this._stopAll();const i=e.startColumn,s=e.endColumn,n=this._getWord();if(!n||n.startColumn>i||n.endColumn<s)return x.query=null,void this._stopAll();t=this.workerRequest&&this.workerRequest.isValid(this.model,e,this.decorations),x.query={modelInfo:{model:this.model,selection:e},word:n}}else if(!x.query)return void this._stopAll();if(this.lastCursorPositionChangeTime=(new Date).getTime(),t)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else if((0,E.n4)(this.editor.getModel().uri,x.query.modelInfo?.model.uri)){if(!e){const e=this.decorations.getRanges();for(const t of e)if(t.containsPosition(this.editor.getPosition()))return}this._stopAll(e?this.model:void 0);const t=++this.workerRequestTokenId;this.workerRequestCompleted=!1;const i=this.getOtherModelsToHighlight(this.editor.getModel());if(!x.query||!x.query.modelInfo||x.query.modelInfo.model.isDisposed())return;this.workerRequest=this.computeWithModel(x.query.modelInfo.model,x.query.modelInfo.selection,x.query.word,i),this.workerRequest?.result.then((e=>{t===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations())}),a.dz)}}computeWithModel(e,t,i,s){return s.length?function(e,t,i,s,n,r){return new F(t,i,n,e,r)}(this.multiDocumentProviders,e,t,0,this.editor.getOption(132),s):function(e,t,i,s,n){return new P(t,i,n,e)}(this.providers,e,t,0,this.editor.getOption(132))}_beginRenderDecorations(){const e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((()=>{this.renderDecorations()}),t-e)}renderDecorations(){this.renderDecorationsTimer=-1;const e=this.codeEditorService.listCodeEditors();for(const t of e){const e=H.get(t);if(!e)continue;const i=[],s=t.getModel()?.uri;if(s&&this.workerRequestValue.has(s)){const n=x.storedDecorationIDs.get(s),r=this.workerRequestValue.get(s);if(r)for(const e of r)e.range&&i.push({range:e.range,options:(0,f.P)(e.kind)});let o=[];t.changeDecorations((e=>{o=e.deltaDecorations(n??[],i)})),x.storedDecorationIDs=x.storedDecorationIDs.set(s,o),i.length>0&&(e.wordHighlighter?.decorations.set(i),e.wordHighlighter?._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};U=x=N([I(4,d.T)],U);let H=class extends l.jG{static{k=this}static{this.ID="editor.contrib.wordHighlighter"}static get(e){return e.getContribution(k.ID)}constructor(e,t,i,s){super(),this._wordHighlighter=null;const n=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new U(e,i.documentHighlightProvider,i.multiDocumentHighlightProvider,t,s))};this._register(e.onDidChangeModel((e=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),n()}))),n()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!(!this._wordHighlighter||!this._wordHighlighter.hasDecorations())}moveNext(){this._wordHighlighter?.moveNext()}moveBack(){this._wordHighlighter?.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};H=k=N([I(1,_.fN),I(2,m.ILanguageFeaturesService),I(3,d.T)],H);class B extends h.ks{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=H.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}class W extends h.ks{constructor(){super({id:"editor.action.wordHighlight.trigger",label:s.kg("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:void 0,kbOpts:{kbExpr:g.R.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const s=H.get(t);s&&s.restoreViewState(!0)}}(0,h.HW)(H.ID,H,0),(0,h.Fl)(class extends B{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:s.kg("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:O,kbOpts:{kbExpr:g.R.editorTextFocus,primary:65,weight:100}})}}),(0,h.Fl)(class extends B{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:s.kg("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:O,kbOpts:{kbExpr:g.R.editorTextFocus,primary:1089,weight:100}})}}),(0,h.Fl)(W),(0,A.x)(T)},38728:(e,t,i)=>{"use strict";i.d(t,{Jk:()=>v,R7:()=>E});var s=i(31450),n=i(15092),r=i(87908),o=i(32799),a=i(97681),l=i(81782),c=i(83069),h=i(36677),d=i(75326),u=i(60002),g=i(17469),p=i(78209),m=i(253),f=i(32848),_=i(28290);class v extends s.DX{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const s=(0,l.i)(t.getOption(132),t.getOption(131)),n=t.getModel(),r=t.getSelections(),a=r.length>1,h=r.map((e=>{const t=new c.y(e.positionLineNumber,e.positionColumn),i=this._move(s,n,t,this._wordNavigationType,a);return this._moveTo(e,i,this._inSelectionMode)}));if(n.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,h.map((e=>o.MF.fromModelSelection(e)))),1===h.length){const e=new c.y(h[0].positionLineNumber,h[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,i){return i?new d.L(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new d.L(t.lineNumber,t.column,t.lineNumber,t.column)}}class C extends v{_move(e,t,i,s,n){return a.z.moveWordLeft(e,t,i,s,n)}}class b extends v{_move(e,t,i,s,n){return a.z.moveWordRight(e,t,i,s)}}class E extends s.DX{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const s=e.get(g.JZ);if(!t.hasModel())return;const r=(0,l.i)(t.getOption(132),t.getOption(131)),o=t.getModel(),a=t.getSelections(),c=t.getOption(6),h=t.getOption(11),d=s.getLanguageConfiguration(o.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),p=a.map((e=>{const i=this._delete({wordSeparators:r,model:o,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:c,autoClosingQuotes:h,autoClosingPairs:d,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new n.iu(i,"")}));t.pushUndoStop(),t.executeCommands(this.id,p),t.pushUndoStop()}}class S extends E{_delete(e,t){const i=a.z.deleteWordLeft(e,t);return i||new h.Q(1,1,1,1)}}class y extends E{_delete(e,t){const i=a.z.deleteWordRight(e,t);if(i)return i;const s=e.model.getLineCount(),n=e.model.getLineMaxColumn(s);return new h.Q(s,n,s,n)}}class w extends s.ks{constructor(){super({id:"deleteInsideWord",precondition:u.R.writable,label:p.kg("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const s=(0,l.i)(t.getOption(132),t.getOption(131)),r=t.getModel(),o=t.getSelections().map((e=>{const t=a.z.deleteInsideWord(s,r,e);return new n.iu(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:2063,mac:{primary:527},weight:100}})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:3087,mac:{primary:1551},weight:100}})}}),(0,s.E_)(new class extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}),(0,s.E_)(new class extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:2065,mac:{primary:529},weight:100}})}}),(0,s.E_)(new class extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}),(0,s.E_)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}),(0,s.E_)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,f.M$.and(m.f,_.nd)?.negate()),primary:3089,mac:{primary:1553},weight:100}})}}),(0,s.E_)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,l.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,l.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,l.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,s,n){return super._move((0,l.i)(r.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,s,n)}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:u.R.writable})}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:u.R.writable})}}),(0,s.E_)(new class extends S{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:u.R.writable,kbOpts:{kbExpr:u.R.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:u.R.writable})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:u.R.writable})}}),(0,s.E_)(new class extends y{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:u.R.writable,kbOpts:{kbExpr:u.R.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}),(0,s.Fl)(w)},46606:(e,t,i)=>{"use strict";var s=i(31450),n=i(97681),r=i(36677),o=i(60002),a=i(38728),l=i(50091);class c extends a.R7{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:o.R.writable,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=n.c.deleteWordPartLeft(e);return i||new r.Q(1,1,1,1)}}class h extends a.R7{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:o.R.writable,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=n.c.deleteWordPartRight(e);if(i)return i;const s=e.model.getLineCount(),o=e.model.getLineMaxColumn(s);return new r.Q(s,o,s,o)}}class d extends a.Jk{_move(e,t,i,s,r){return n.c.moveWordPartLeft(e,t,i,r)}}l.w.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");l.w.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class u extends a.Jk{_move(e,t,i,s,r){return n.c.moveWordPartRight(e,t,i)}}(0,s.E_)(new c),(0,s.E_)(new h),(0,s.E_)(new class extends d{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}),(0,s.E_)(new class extends d{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}),(0,s.E_)(new class extends u{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}),(0,s.E_)(new class extends u{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:o.R.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}})},56800:(e,t,i)=>{"use strict";var s=i(8597),n=i(5662),r=i(31450),o=i(98067);class a extends n.jG{static{this.ID="editor.contrib.iPadShowKeyboard"}constructor(e){super(),this.editor=e,this.widget=null,o.un&&(this._register(e.onDidChangeConfiguration((()=>this.update()))),this.update())}update(){const e=!this.editor.getOption(92);!this.widget&&e?this.widget=new l(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}class l extends n.jG{static{this.ID="editor.contrib.ShowKeyboardWidget"}constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(s.ko(this._domNode,"touchstart",(e=>{this.editor.focus()}))),this._register(s.ko(this._domNode,"focus",(e=>{this.editor.focus()}))),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return l.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}(0,r.HW)(a.ID,a,3)},84325:(e,t,i)=>{"use strict";var s,n=i(8597),r=i(47661),o=i(5662),a=i(31450),l=i(62083),c=i(25982),h=i(20788),d=i(10154),u=i(24520),g=i(51861),p=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){return function(i,s){t(i,s,e)}};let f=class extends o.jG{static{s=this}static{this.ID="editor.contrib.inspectTokens"}static get(e){return e.getContribution(s.ID)}constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel((e=>this.stop()))),this._register(this._editor.onDidChangeModelLanguage((e=>this.stop()))),this._register(l.dG.onDidChange((e=>this.stop()))),this._register(this._editor.onKeyUp((e=>9===e.keyCode&&this.stop())))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new v(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};f=s=p([m(1,u.L),m(2,d.L)],f);class _ extends a.ks{constructor(){super({id:"editor.action.inspectTokens",label:g.YN.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=f.get(t);i?.launch()}}class v extends o.jG{static{this._ID="editor.contrib.inspectTokensWidget"}constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(e,t){const i=l.dG.get(t);if(i)return i;const s=e.encodeLanguageId(t);return{getInitialState:()=>h.r3,tokenize:(e,i,s)=>(0,h.$H)(t,s),tokenizeEncoded:(e,t,i)=>(0,h.Lh)(s,i)}}(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition((e=>this._compute(this._editor.getPosition())))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return v._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let n=t.tokens1.length-1;n>=0;n--){const s=t.tokens1[n];if(e.column-1>=s.offset){i=n;break}}let s=0;for(let n=t.tokens2.length>>>1;n>=0;n--)if(e.column-1>=t.tokens2[n<<1]){s=n;break}const o=this._model.getLineContent(e.lineNumber);let a="";if(i<t.tokens1.length){const e=t.tokens1[i].offset,s=i+1<t.tokens1.length?t.tokens1[i+1].offset:o.length;a=o.substring(e,s)}(0,n.Ln)(this._domNode,(0,n.$)("h2.tm-token",void 0,function(e){let t="";for(let i=0,s=e.length;i<s;i++){const s=e.charCodeAt(i);switch(s){case 9:t+="\u2192";break;case 32:t+="\xb7";break;default:t+=String.fromCharCode(s)}}return t}(a),(0,n.$)("span.tm-token-length",void 0,`${a.length} ${1===a.length?"char":"chars"}`))),(0,n.BC)(this._domNode,(0,n.$)("hr.tokens-inspect-separator",{style:"clear:both"}));const l=1+(s<<1)<t.tokens2.length?this._decodeMetadata(t.tokens2[1+(s<<1)]):null;(0,n.BC)(this._domNode,(0,n.$)("table.tm-metadata-table",void 0,(0,n.$)("tbody",void 0,(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"language"),(0,n.$)("td.tm-metadata-value",void 0,`${l?l.languageId:"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"token type"),(0,n.$)("td.tm-metadata-value",void 0,`${l?this._tokenTypeToString(l.tokenType):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"font style"),(0,n.$)("td.tm-metadata-value",void 0,`${l?this._fontStyleToString(l.fontStyle):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"foreground"),(0,n.$)("td.tm-metadata-value",void 0,`${l?r.Q1.Format.CSS.formatHex(l.foreground):"-?-"}`)),(0,n.$)("tr",void 0,(0,n.$)("td.tm-metadata-key",void 0,"background"),(0,n.$)("td.tm-metadata-value",void 0,`${l?r.Q1.Format.CSS.formatHex(l.background):"-?-"}`))))),(0,n.BC)(this._domNode,(0,n.$)("hr.tokens-inspect-separator")),i<t.tokens1.length&&(0,n.BC)(this._domNode,(0,n.$)("span.tm-token-type",void 0,t.tokens1[i].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){const t=l.dG.getColorMap(),i=c.x.getLanguageId(e),s=c.x.getTokenType(e),n=c.x.getFontStyle(e),r=c.x.getForeground(e),o=c.x.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(i),tokenType:s,fontStyle:n,foreground:t[r],background:t[o]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),0===t.length&&(t="---"),t}_getTokensAtLine(e){const t=this._getStateBeforeLine(e),i=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),s=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:i.tokens,tokens2:s.tokens,endState:i.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let i=1;i<e;i++){t=this._tokenizationSupport.tokenize(this._model.getLineContent(i),!0,t).endState}return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}(0,a.HW)(f.ID,f,4),(0,a.Fl)(_)},77047:(e,t,i)=>{"use strict";var s=i(46359),n=i(71597),r=i(51861),o=i(80301),a=i(37882),l=i(73983),c=i(70125),h=i(64383),d=i(26690),u=i(6921),g=i(5662),p=i(74320);class m{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){const i=this.computeEmbedding(e),s=new Map,n=[];for(const[r,o]of this.documents){if(t.isCancellationRequested)return[];for(const e of o.chunks){const t=this.computeSimilarityScore(e,i,s);t>0&&n.push({key:r,score:t})}}return n}static termFrequencies(e){return function(e){const t=new Map;for(const i of e)t.set(i,(t.get(i)??0)+1);return t}(m.splitTerms(e))}static*splitTerms(e){const t=e=>e.toLowerCase();for(const[i]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(i);const e=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(e.length>1)for(const i of e)i.length>2&&/\p{Letter}{3,}/gu.test(i)&&(yield t(i))}}updateDocuments(e){for(const{key:t}of e)this.deleteDocument(t);for(const t of e){const e=[];for(const i of t.textChunks){const t=m.termFrequencies(i);for(const e of t.keys())this.chunkOccurrences.set(e,(this.chunkOccurrences.get(e)??0)+1);e.push({text:i,tf:t})}this.chunkCount+=e.length,this.documents.set(t.key,{chunks:e})}return this}deleteDocument(e){const t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(const e of t.chunks)for(const t of e.tf.keys()){const e=this.chunkOccurrences.get(t);if("number"===typeof e){const i=e-1;i<=0?this.chunkOccurrences.delete(t):this.chunkOccurrences.set(t,i)}}}}computeSimilarityScore(e,t,i){let s=0;for(const[n,r]of Object.entries(t)){const t=e.tf.get(n);if(!t)continue;let o=i.get(n);"number"!==typeof o&&(o=this.computeIdf(n),i.set(n,o));s+=t*o*r}return s}computeEmbedding(e){const t=m.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){const t=this.chunkOccurrences.get(e)??0;return t>0?Math.log((this.chunkCount+1)/t):0}computeTfidf(e){const t=Object.create(null);for(const[i,s]of e){const e=this.computeIdf(i);e>0&&(t[i]=s*e)}return t}}var f,_=i(78209),v=i(50091),C=i(84001),b=i(59599),E=i(63591),S=i(98031),y=i(18801),w=i(90766),L=i(18447),R=i(631);function T(e){const t=e;return Array.isArray(t.items)}function x(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}!function(e){e[e.NO_ACTION=0]="NO_ACTION",e[e.CLOSE_PICKER=1]="CLOSE_PICKER",e[e.REFRESH_PICKER=2]="REFRESH_PICKER",e[e.REMOVE_ITEM=3]="REMOVE_ITEM"}(f||(f={}));class k extends g.jG{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,i){const s=new g.Cm;let n;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new g.HE),o=async()=>{const s=r.value=new g.Cm;n?.dispose(!0),e.busy=!1,n=new L.Qi(t);const o=n.token;let a=e.value.substring(this.prefix.length);this.options?.shouldSkipTrimPickFilter||(a=a.trim());const l=this._getPicks(a,s,o,i),c=(t,i)=>{let s,n;if(T(t)?(s=t.items,n=t.active):s=t,0===s.length){if(i)return!1;(a.length>0||e.hideInput)&&this.options?.noResultsPick&&(s=(0,R.Tn)(this.options.noResultsPick)?[this.options.noResultsPick(a)]:[this.options.noResultsPick])}return e.items=s,n&&(e.activeItems=[n]),!0},h=async t=>{let i=!1,s=!1;await Promise.all([(async()=>{"number"===typeof t.mergeDelay&&(await(0,w.wR)(t.mergeDelay),o.isCancellationRequested)||s||(i=c(t.picks,!0))})(),(async()=>{e.busy=!0;try{const s=await t.additionalPicks;if(o.isCancellationRequested)return;let n,r,a,l;if(T(t.picks)?(n=t.picks.items,r=t.picks.active):n=t.picks,T(s)?(a=s.items,l=s.active):a=s,a.length>0||!i){let t;if(!r&&!l){const i=e.activeItems[0];i&&-1!==n.indexOf(i)&&(t=i)}c({items:[...n,...a],active:r||l||t})}}finally{o.isCancellationRequested||(e.busy=!1),s=!0}})()])};if(null===l);else if(x(l))await h(l);else if(l instanceof Promise){e.busy=!0;try{const e=await l;if(o.isCancellationRequested)return;x(e)?await h(e):c(e)}finally{o.isCancellationRequested||(e.busy=!1)}}else c(l)};s.add(e.onDidChangeValue((()=>o()))),o(),s.add(e.onDidAccept((t=>{if(i?.handleAccept)return t.inBackground||e.hide(),void i.handleAccept?.(e.activeItems[0]);const[s]=e.selectedItems;"function"===typeof s?.accept&&(t.inBackground||e.hide(),s.accept(e.keyMods,t))})));const a=async(i,s)=>{if("function"!==typeof s.trigger)return;const n=s.buttons?.indexOf(i)??-1;if(n>=0){const i=s.trigger(n,e.keyMods),r="number"===typeof i?i:await i;if(t.isCancellationRequested)return;switch(r){case f.NO_ACTION:break;case f.CLOSE_PICKER:e.hide();break;case f.REFRESH_PICKER:o();break;case f.REMOVE_ITEM:{const t=e.items.indexOf(s);if(-1!==t){const i=e.items.slice(),s=i.splice(t,1),n=e.activeItems.filter((e=>e!==s[0])),r=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,n&&(e.activeItems=n),e.keepScrollPosition=r}break}}}};return s.add(e.onDidTriggerItemButton((({button:e,item:t})=>a(e,t)))),s.add(e.onDidTriggerSeparatorButton((({button:e,separator:t})=>a(e,t)))),s}}var A,N,I=i(9711),O=i(90651),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},M=function(e,t){return function(i,s){t(i,s,e)}};let P=class extends k{static{A=this}static{this.PREFIX=">"}static{this.TFIDF_THRESHOLD=.5}static{this.TFIDF_MAX_RESULTS=5}static{this.WORD_FILTER=(0,d.or)(d.WP,d.J1,d.Tt)}constructor(e,t,i,s,n,r){super(A.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=s,this.telemetryService=n,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(F)),this.options=e}async _getPicks(e,t,i,s){const n=await this.getCommandPicks(i);if(i.isCancellationRequested)return[];const r=(0,u.P)((()=>{const t=new m;t.updateDocuments(n.map((e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]}))));return function(e){const t=e.slice(0);t.sort(((e,t)=>t.score-e.score));const i=t[0]?.score??0;if(i>0)for(const s of t)s.score/=i;return t}(t.calculateScores(e,i)).filter((e=>e.score>A.TFIDF_THRESHOLD)).slice(0,A.TFIDF_MAX_RESULTS)})),o=[];for(const u of n){const t=A.WORD_FILTER(e,u.label)??void 0,s=u.commandAlias?A.WORD_FILTER(e,u.commandAlias)??void 0:void 0;if(t||s)u.highlights={label:t,detail:this.options.showAlias?s:void 0},o.push(u);else if(e===u.commandId)o.push(u);else if(e.length>=3){const e=r();if(i.isCancellationRequested)return[];const t=e.find((e=>e.key===u.commandId));t&&(u.tfIdfScore=t.score,o.push(u))}}const a=new Map;for(const u of o){const e=a.get(u.label);e?(u.description=u.commandId,e.description=e.commandId):a.set(u.label,u)}o.sort(((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return-1;const i=this.commandsHistory.peek(e.commandId),s=this.commandsHistory.peek(t.commandId);if(i&&s)return i>s?-1:1;if(i)return-1;if(s)return 1;if(this.options.suggestedCommandIds){const i=this.options.suggestedCommandIds.has(e.commandId),s=this.options.suggestedCommandIds.has(t.commandId);if(i&&s)return 0;if(i)return-1;if(s)return 1}return e.label.localeCompare(t.label)}));const l=[];let c=!1,h=!0,d=!!this.options.suggestedCommandIds;for(let u=0;u<o.length;u++){const e=o[u];0===u&&this.commandsHistory.peek(e.commandId)&&(l.push({type:"separator",label:(0,_.kg)("recentlyUsed","recently used")}),c=!0),h&&void 0!==e.tfIdfScore&&(l.push({type:"separator",label:(0,_.kg)("suggested","similar commands")}),h=!1),d&&void 0===e.tfIdfScore&&!this.commandsHistory.peek(e.commandId)&&this.options.suggestedCommandIds?.has(e.commandId)&&(l.push({type:"separator",label:(0,_.kg)("commonlyUsed","commonly used")}),c=!0,d=!1),!c||void 0!==e.tfIdfScore||this.commandsHistory.peek(e.commandId)||this.options.suggestedCommandIds?.has(e.commandId)||(l.push({type:"separator",label:(0,_.kg)("morecCommands","other commands")}),c=!1),l.push(this.toCommandPick(e,s))}return this.hasAdditionalCommandPicks(e,i)?{picks:l,additionalPicks:(async()=>{const t=await this.getAdditionalCommandPicks(n,o,e,i);if(i.isCancellationRequested)return[];const r=t.map((e=>this.toCommandPick(e,s)));return h&&"separator"!==r[0]?.type&&r.unshift({type:"separator",label:(0,_.kg)("suggested","similar commands")}),r})()}:l}toCommandPick(e,t){if("separator"===e.type)return e;const i=this.keybindingService.lookupKeybinding(e.commandId),s=i?(0,_.kg)("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,i.getAriaLabel()):e.label;return{...e,ariaLabel:s,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,accept:async()=>{this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:t?.from??"quick open"});try{e.args?.length?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(i){(0,h.MB)(i)||this.dialogService.error((0,_.kg)("canNotRun","Command '{0}' resulted in an error",e.label),(0,c.r)(i))}}}}getTfIdfChunk({label:e,commandAlias:t,commandDescription:i}){let s=e;return t&&t!==e&&(s+=` - ${t}`),i&&i.value!==e&&(s+=` - ${i.value===i.original?i.value:`${i.value} (${i.original})`}`),s}};P=A=D([M(1,E._Y),M(2,S.b),M(3,v.d),M(4,O.k),M(5,b.X)],P);let F=class extends g.jG{static{N=this}static{this.DEFAULT_COMMANDS_HISTORY_LENGTH=50}static{this.PREF_KEY_CACHE="commandPalette.mru.cache"}static{this.PREF_KEY_COUNTER="commandPalette.mru.counter"}static{this.counter=1}static{this.hasChanges=!1}constructor(e,t,i){super(),this.storageService=e,this.configurationService=t,this.logService=i,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>this.updateConfiguration(e)))),this._register(this.storageService.onWillSaveState((e=>{e.reason===I.LP.SHUTDOWN&&this.saveState()})))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=N.getConfiguredCommandHistoryLength(this.configurationService),N.cache&&N.cache.limit!==this.configuredCommandsHistoryLength&&(N.cache.limit=this.configuredCommandsHistoryLength,N.hasChanges=!0))}load(){const e=this.storageService.get(N.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch(s){this.logService.error(`[CommandsHistory] invalid data: ${s}`)}const i=N.cache=new p.qK(this.configuredCommandsHistoryLength,1);if(t){let e;e=t.usesLRU?t.entries:t.entries.sort(((e,t)=>e.value-t.value)),e.forEach((e=>i.set(e.key,e.value)))}N.counter=this.storageService.getNumber(N.PREF_KEY_COUNTER,0,N.counter)}push(e){N.cache&&(N.cache.set(e,N.counter++),N.hasChanges=!0)}peek(e){return N.cache?.peek(e)}saveState(){if(!N.cache)return;if(!N.hasChanges)return;const e={usesLRU:!0,entries:[]};N.cache.forEach(((t,i)=>e.entries.push({key:i,value:t}))),this.storageService.store(N.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(N.PREF_KEY_COUNTER,N.counter,0,0),N.hasChanges=!1}static getConfiguredCommandHistoryLength(e){const t=e.getValue(),i=t.workbench?.commandPalette?.history;return"number"===typeof i?i:N.DEFAULT_COMMANDS_HISTORY_LENGTH}};F=N=D([M(0,I.CS),M(1,C.pG),M(2,y.rr)],F);class U extends P{constructor(e,t,i,s,n,r){super(e,t,i,s,n,r)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions()){let e;i.metadata?.description&&(e=(0,l.f)(i.metadata.description)?i.metadata.description:{original:i.metadata.description,value:i.metadata.description}),t.push({commandId:i.id,commandAlias:i.alias,commandDescription:e,label:(0,a.pS)(i.label)||i.id})}return t}}var H=i(31450),B=i(60002),W=i(51467),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends U{get activeTextEditorControl(){return this.codeEditorService.getFocusedCodeEditor()??void 0}constructor(e,t,i,s,n,r){super({showAlias:!1},e,i,s,n,r),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};G=V([z(0,E._Y),z(1,o.T),z(2,S.b),z(3,v.d),z(4,O.k),z(5,b.X)],G);class j extends H.ks{static{this.ID="editor.action.quickCommand"}constructor(){super({id:j.ID,label:r.gf.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:B.R.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(W.GK).quickAccess.show(G.PREFIX)}}(0,H.Fl)(j),s.O.as(n.Fd.Quickaccess).registerQuickAccessProvider({ctor:G,prefix:G.PREFIX,helpEntries:[{description:r.gf.quickCommandHelp,commandId:j.ID}]})},81091:(e,t,i)=>{"use strict";var s=i(5662),n=i(34326),r=i(12437),o=i(78209);class a extends r.o{static{this.PREFIX=":"}constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=(0,o.kg)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,s.jG.None}provideWithTextEditor(e,t,i){const r=e.editor,o=new s.Cm;o.add(t.onDidAccept((i=>{const[s]=t.selectedItems;if(s){if(!this.isValidLineNumber(r,s.lineNumber))return;this.gotoLocation(e,{range:this.toRange(s.lineNumber,s.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),i.inBackground||t.hide()}})));const l=()=>{const e=this.parsePosition(r,t.value.trim().substr(a.PREFIX.length)),i=this.getPickLabel(r,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,!this.isValidLineNumber(r,e.lineNumber))return void this.clearDecorations(r);const s=this.toRange(e.lineNumber,e.column);r.revealRangeInCenter(s,0),this.addDecorations(r,s)};l(),o.add(t.onDidChangeValue((()=>l())));const c=(0,n.jA)(r);if(c){2===c.getOptions().get(68).renderType&&(c.updateOptions({lineNumbers:"on"}),o.add((0,s.s)((()=>c.updateOptions({lineNumbers:"relative"})))))}return o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map((e=>parseInt(e,10))).filter((e=>!isNaN(e))),s=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:s+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?(0,o.kg)("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):(0,o.kg)("gotoLineLabel","Go to line {0}.",t);const s=e.getPosition()||{lineNumber:1,column:1},n=this.lineCount(e);return n>1?(0,o.kg)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",s.lineNumber,s.column,n):(0,o.kg)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",s.lineNumber,s.column)}isValidLineNumber(e,t){return!(!t||"number"!==typeof t)&&(t>0&&t<=this.lineCount(e))}isValidColumn(e,t,i){if(!i||"number"!==typeof i)return!1;const s=this.getModel(e);if(!s)return!1;const n={lineNumber:t,column:i};return s.validatePosition(n).equals(n)}lineCount(e){return this.getModel(e)?.getLineCount()??0}}var l=i(46359),c=i(71597),h=i(80301),d=i(51861),u=i(41234),g=i(31450),p=i(60002),m=i(51467),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class extends a{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=u.Jh.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};v=f([_(0,h.T)],v);class C extends g.ks{static{this.ID="editor.action.gotoLine"}constructor(){super({id:C.ID,label:d.Hw.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:p.R.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(m.GK).quickAccess.show(v.PREFIX)}}(0,g.Fl)(C),l.O.as(c.Fd.Quickaccess).registerQuickAccessProvider({ctor:v,prefix:v.PREFIX,helpEntries:[{description:d.Hw.gotoLineActionLabel,commandId:C.ID}]})},28211:(e,t,i)=>{"use strict";i(97791),i(93409);var s=i(90766),n=i(18447),r=i(10350),o=i(25689),a=i(26690),l=i(74027),c=i(98067),h=i(91508);const d=[void 0,[]];function u(e,t,i=0,s=0){const n=t;return n.values&&n.values.length>1?function(e,t,i,s){let n=0;const r=[];for(const o of t){const[t,a]=g(e,o,i,s);if("number"!==typeof t)return d;n+=t,r.push(...a)}return[n,p(r)]}(e,n.values,i,s):g(e,t,i,s)}function g(e,t,i,s){const n=(0,a.dt)(t.original,t.originalLowercase,i,e,e.toLowerCase(),s,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],(0,a.WJ)(n)]:d}Object.freeze({score:0});function p(e){const t=e.sort(((e,t)=>e.start-t.start)),i=[];let s;for(const n of t)s&&m(s,n)?(s.start=Math.min(s.start,n.start),s.end=Math.max(s.end,n.end)):(s=n,i.push(n));return i}function m(e,t){return!(e.end<t.start)&&!(t.end<e.start)}function f(e){return e.startsWith('"')&&e.endsWith('"')}function _(e){"string"!==typeof e&&(e="");const t=e.toLowerCase(),{pathNormalized:i,normalized:s,normalizedLowercase:n}=v(e),r=i.indexOf(l.Vn)>=0,o=f(e);let a;const c=e.split(" ");if(c.length>1)for(const l of c){const e=f(l),{pathNormalized:t,normalized:i,normalizedLowercase:s}=v(l);i&&(a||(a=[]),a.push({original:l,originalLowercase:l.toLowerCase(),pathNormalized:t,normalized:i,normalizedLowercase:s,expectContiguousMatch:e}))}return{original:e,originalLowercase:t,pathNormalized:i,normalized:s,normalizedLowercase:n,values:a,containsPathSeparator:r,expectContiguousMatch:o}}function v(e){let t;t=c.uF?e.replace(/\//g,l.Vn):e.replace(/\\/g,l.Vn);const i=(0,h.wB)(t).replace(/\s|"/g,"");return{pathNormalized:t,normalized:i,normalizedLowercase:i.toLowerCase()}}function C(e){return Array.isArray(e)?_(e.map((e=>e.original)).join(" ")):_(e.original)}var b,E=i(5662),S=i(36677),y=i(62083),w=i(29999),L=i(12437),R=i(78209),T=i(56942),x=i(46041),k=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){return function(i,s){t(i,s,e)}};let N=class extends L.o{static{b=this}static{this.PREFIX="@"}static{this.SCOPE_PREFIX=":"}static{this.PREFIX_BY_CATEGORY=`${this.PREFIX}${this.SCOPE_PREFIX}`}constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,(0,R.kg)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),E.jG.None}provideWithTextEditor(e,t,i,s){const n=e.editor,r=this.getModel(n);return r?this._languageFeaturesService.documentSymbolProvider.has(r)?this.doProvideWithEditorSymbols(e,r,t,i,s):this.doProvideWithoutEditorSymbols(e,r,t,i):E.jG.None}doProvideWithoutEditorSymbols(e,t,i,s){const n=new E.Cm;return this.provideLabelPick(i,(0,R.kg)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>{await this.waitForLanguageSymbolRegistry(t,n)&&!s.isCancellationRequested&&n.add(this.doProvideWithEditorSymbols(e,t,i,s))})(),n}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new s.Zv,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))})));return t.add((0,E.s)((()=>i.complete(!1)))),i.p}doProvideWithEditorSymbols(e,t,i,s,r){const o=e.editor,a=new E.Cm;a.add(i.onDidAccept((t=>{const[s]=i.selectedItems;s&&s.range&&(this.gotoLocation(e,{range:s.range.selection,keyMods:i.keyMods,preserveFocus:t.inBackground}),r?.handleAccept?.(s),t.inBackground||i.hide())}))),a.add(i.onDidTriggerItemButton((({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())})));const l=this.getDocumentSymbols(t,s);let c;const h=async e=>{c?.dispose(!0),i.busy=!1,c=new n.Qi(s),i.busy=!0;try{const n=_(i.value.substr(b.PREFIX.length).trim()),r=await this.doGetSymbolPicks(l,n,void 0,c.token,t);if(s.isCancellationRequested)return;if(r.length>0){if(i.items=r,e&&0===n.original.length){const t=(0,x.Uk)(r,(t=>Boolean("separator"!==t.type&&t.range&&S.Q.containsPosition(t.range.decoration,e))));t&&(i.activeItems=[t])}}else n.original.length>0?this.provideLabelPick(i,(0,R.kg)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,(0,R.kg)("noSymbolResults","No editor symbols"))}finally{s.isCancellationRequested||(i.busy=!1)}};return a.add(i.onDidChangeValue((()=>h(void 0)))),h(o.getSelection()?.getPosition()),a.add(i.onDidChangeActive((()=>{const[e]=i.activeItems;e&&e.range&&(o.revealRangeInCenter(e.range.selection,0),this.addDecorations(o,e.range.decoration))}))),a}async doGetSymbolPicks(e,t,i,s,n){const a=await e;if(s.isCancellationRequested)return[];const l=0===t.original.indexOf(b.SCOPE_PREFIX),c=l?1:0;let d,g,p;t.values&&t.values.length>1?(d=C(t.values[0]),g=C(t.values.slice(1))):d=t;const m=this.options?.openSideBySideDirection?.();m&&(p=[{iconClass:"right"===m?o.L.asClassName(r.W.splitHorizontal):o.L.asClassName(r.W.splitVertical),tooltip:"right"===m?(0,R.kg)("openToSide","Open to the Side"):(0,R.kg)("openToBottom","Open to the Bottom")}]);const f=[];for(let E=0;E<a.length;E++){const w=a[E],L=(0,h.Bq)(w.name),T=`$(${y.gP.toIcon(w.kind).id}) ${L}`,x=T.length-L.length;let k,A,N,D,M=w.containerName;if(i?.extraContainerLabel&&(M=M?`${i.extraContainerLabel} \u2022 ${M}`:i.extraContainerLabel),t.original.length>c){let F=!1;if(d!==t&&([k,A]=u(T,{...t,values:void 0},c,x),"number"===typeof k&&(F=!0)),"number"!==typeof k&&([k,A]=u(T,d,c,x),"number"!==typeof k))continue;if(!F&&g){if(M&&g.original.length>0&&([N,D]=u(M,g)),"number"!==typeof N)continue;"number"===typeof k&&(k+=N)}}const P=w.tags&&w.tags.indexOf(1)>=0;f.push({index:E,kind:w.kind,score:k,label:T,ariaLabel:(0,y.PK)(w.name,w.kind),description:M,highlights:P?void 0:{label:A,description:D},range:{selection:S.Q.collapseToStart(w.selectionRange),decoration:w.range},uri:n.uri,symbolName:L,strikethrough:P,buttons:p})}const _=f.sort(((e,t)=>l?this.compareByKindAndScore(e,t):this.compareByScore(e,t)));let v=[];if(l){let U,H,B=0;function W(){H&&"number"===typeof U&&B>0&&(H.label=(0,h.GP)(O[U]||I,B))}for(const V of _)U!==V.kind?(W(),U=V.kind,B=1,H={type:"separator"},v.push(H)):B++,v.push(V);W()}else _.length>0&&(v=[{label:(0,R.kg)("symbols","symbols ({0})",f.length),type:"separator"},..._]);return v}compareByScore(e,t){if("number"!==typeof e.score&&"number"===typeof t.score)return 1;if("number"===typeof e.score&&"number"!==typeof t.score)return-1;if("number"===typeof e.score&&"number"===typeof t.score){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){const i=O[e.kind]||I,s=O[t.kind]||I,n=i.localeCompare(s);return 0===n?this.compareByScore(e,t):n}async getDocumentSymbols(e,t){const i=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}};N=b=k([A(0,T.ILanguageFeaturesService),A(1,w.gW)],N);const I=(0,R.kg)("property","properties ({0})"),O={5:(0,R.kg)("method","methods ({0})"),11:(0,R.kg)("function","functions ({0})"),8:(0,R.kg)("_constructor","constructors ({0})"),12:(0,R.kg)("variable","variables ({0})"),4:(0,R.kg)("class","classes ({0})"),22:(0,R.kg)("struct","structs ({0})"),23:(0,R.kg)("event","events ({0})"),24:(0,R.kg)("operator","operators ({0})"),10:(0,R.kg)("interface","interfaces ({0})"),2:(0,R.kg)("namespace","namespaces ({0})"),3:(0,R.kg)("package","packages ({0})"),25:(0,R.kg)("typeParameter","type parameters ({0})"),1:(0,R.kg)("modules","modules ({0})"),6:(0,R.kg)("property","properties ({0})"),9:(0,R.kg)("enum","enumerations ({0})"),21:(0,R.kg)("enumMember","enumeration members ({0})"),14:(0,R.kg)("string","strings ({0})"),0:(0,R.kg)("file","files ({0})"),17:(0,R.kg)("array","arrays ({0})"),15:(0,R.kg)("number","numbers ({0})"),16:(0,R.kg)("boolean","booleans ({0})"),18:(0,R.kg)("object","objects ({0})"),19:(0,R.kg)("key","keys ({0})"),7:(0,R.kg)("field","fields ({0})"),13:(0,R.kg)("constant","constants ({0})")};var D=i(46359),M=i(71597),P=i(80301),F=i(51861),U=i(41234),H=i(31450),B=i(60002),W=i(51467),V=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},z=function(e,t){return function(i,s){t(i,s,e)}};let G=class extends N{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=U.Jh.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};G=V([z(0,P.T),z(1,T.ILanguageFeaturesService),z(2,w.gW)],G);class j extends H.ks{static{this.ID="editor.action.quickOutline"}constructor(){super({id:j.ID,label:F.n9.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:B.R.hasDocumentSymbolProvider,kbOpts:{kbExpr:B.R.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(W.GK).quickAccess.show(N.PREFIX,{itemActivation:W.C1.NONE})}}(0,H.Fl)(j),D.O.as(M.Fd.Quickaccess).registerQuickAccessProvider({ctor:G,prefix:N.PREFIX,helpEntries:[{description:F.n9.quickOutlineActionLabel,prefix:N.PREFIX,commandId:j.ID},{description:F.n9.quickOutlineByCategoryActionLabel,prefix:N.PREFIX_BY_CATEGORY}]})},6429:(e,t,i)=>{"use strict";var s,n=i(46359),r=i(71597),o=i(51861),a=i(78209),l=i(5662),c=i(98031),h=i(51467),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class{static{s=this}static{this.PREFIX="?"}constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=n.O.as(r.Fd.Quickaccess)}provide(e){const t=new l.Cm;return t.add(e.onDidAccept((()=>{const[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),t.add(e.onDidChangeValue((e=>{const t=this.registry.getQuickAccessProvider(e.substr(s.PREFIX.length));t&&t.prefix&&t.prefix!==s.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),e.items=this.getQuickAccessProviders().filter((e=>e.prefix!==s.PREFIX)),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))).flatMap((e=>this.createPicks(e)))}createPicks(e){return e.helpEntries.map((t=>{const i=t.prefix||e.prefix,s=i||"\u2026";return{prefix:i,label:s,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:(0,a.kg)("helpPickAriaLabel","{0}, {1}",s,t.description),description:t.description}}))}};g=s=d([u(0,h.GK),u(1,c.b)],g),n.O.as(r.Fd.Quickaccess).registerQuickAccessProvider({ctor:g,prefix:"",helpEntries:[{description:o.oq.helpQuickAccessActionLabel}]})},57377:(e,t,i)=>{"use strict";var s=i(31450),n=i(80301),r=i(23646),o=i(84001),a=i(32848),l=i(63591),c=i(58591),h=i(9711),d=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){return function(i,s){t(i,s,e)}};let g=class extends r.X{constructor(e,t,i,s,n,r,o){super(!0,e,t,i,s,n,r,o)}};g=d([u(1,a.fN),u(2,n.T),u(3,c.Ot),u(4,l._Y),u(5,h.CS),u(6,o.pG)],g),(0,s.HW)(r.X.ID,g,4)},10424:(e,t,i)=>{"use strict";i.d(t,{aQ:()=>I,nr:()=>O,Sx:()=>B,po:()=>N,tj:()=>A});var s=i(8597),n=i(60413),r=i(47661),o=i(41234),a=i(62083),l=i(25982);class c{constructor(e,t,i,s,n){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=s,this.background=n}}const h=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class d{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(h);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let i=this._color2id.get(e);return i||(i=++this._lastColorId,this._color2id.set(e,i),this._id2color[i]=r.Q1.fromHex("#"+e),i)}getColorMap(){return this._id2color.slice(0)}}class u{static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];const t=[];let i=0;for(let s=0,n=e.length;s<n;s++){const n=e[s];let r=-1;if("string"===typeof n.fontStyle){r=0;const e=n.fontStyle.split(" ");for(let t=0,i=e.length;t<i;t++)switch(e[t]){case"italic":r|=1;break;case"bold":r|=2;break;case"underline":r|=4;break;case"strikethrough":r|=8}}let o=null;"string"===typeof n.foreground&&(o=n.foreground);let a=null;"string"===typeof n.background&&(a=n.background),t[i++]=new c(n.token||"",s,r,o,a)}return t}(e),t)}static createFromParsedTokenTheme(e,t){return function(e,t){e.sort(((e,t)=>{const i=function(e,t){return e<t?-1:e>t?1:0}(e.token,t.token);return 0!==i?i:e.index-t.index}));let i=0,s="000000",n="ffffff";for(;e.length>=1&&""===e[0].token;){const t=e.shift();-1!==t.fontStyle&&(i=t.fontStyle),null!==t.foreground&&(s=t.foreground),null!==t.background&&(n=t.background)}const r=new d;for(const h of t)r.getId(h);const o=r.getId(s),a=r.getId(n),l=new p(i,o,a),c=new m(l);for(let h=0,d=e.length;h<d;h++){const t=e[h];c.insert(t.token,t.fontStyle,r.getId(t.foreground),r.getId(t.background))}return new u(r,c)}(e,t)}constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,t){let i=this._cache.get(t);if("undefined"===typeof i){const e=this._match(t),s=function(e){const t=e.match(g);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}(t);i=(e.metadata|s<<8)>>>0,this._cache.set(t,i)}return(i|e)>>>0}}const g=/\b(comment|string|regex|regexp)\b/;class p{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new p(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class m{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;const t=e.indexOf(".");let i,s;-1===t?(i=e,s=""):(i=e.substring(0,t),s=e.substring(t+1));const n=this._children.get(i);return"undefined"!==typeof n?n.match(s):this._mainRule}insert(e,t,i,s){if(""===e)return void this._mainRule.acceptOverwrite(t,i,s);const n=e.indexOf(".");let r,o;-1===n?(r=e,o=""):(r=e.substring(0,n),o=e.substring(n+1));let a=this._children.get(r);"undefined"===typeof a&&(a=new m(this._mainRule.clone()),this._children.set(r,a)),a.insert(o,t,i,s)}}var f=i(87119),_=i(66261);const v={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[_.YtV]:"#FFFFFE",[_.By2]:"#000000",[_.tan]:"#E5EBF1",[f.vV]:"#D3D3D3",[f.H0]:"#939393",[_.QwA]:"#ADD6FF4D"}},C={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[_.YtV]:"#1E1E1E",[_.By2]:"#D4D4D4",[_.tan]:"#3A3D41",[f.vV]:"#404040",[f.H0]:"#707070",[_.QwA]:"#ADD6FF26"}},b={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[_.YtV]:"#000000",[_.By2]:"#FFFFFF",[f.vV]:"#FFFFFF",[f.H0]:"#FFFFFF"}},E={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[_.YtV]:"#FFFFFF",[_.By2]:"#292929",[f.vV]:"#292929",[f.H0]:"#292929"}};var S=i(46359),y=i(47612),w=i(5662),L=i(86723),R=i(25689),T=i(61394);class x{getIcon(e){const t=(0,T.HT)();let i=e.defaults;for(;R.L.isThemeIcon(i);){const e=t.getIcon(i.id);if(!e)return;i=e.defaults}return i}}var k=i(25893);const A="vs",N="vs-dark",I="hc-black",O="hc-light",D=S.O.as(_.FdG.ColorContribution),M=S.O.as(y.Fd.ThemingContribution);class P{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(F(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,r.Q1.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=U(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,r.Q1.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){const i=this.getColors().get(e);return i||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=D.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case A:return L.zM.LIGHT;case I:return L.zM.HIGH_CONTRAST_DARK;case O:return L.zM.HIGH_CONTRAST_LIGHT;default:return L.zM.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const i=U(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],s=this.themeData.colors["editor.background"];if(i||s){const t={token:""};i&&(t.foreground=i),s&&(t.background=s),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=u.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const s=this.tokenTheme._match([e].concat(t).join(".")).metadata,n=l.x.getForeground(s),r=l.x.getFontStyle(s);return{foreground:n,italic:Boolean(1&r),bold:Boolean(2&r),underline:Boolean(4&r),strikethrough:Boolean(8&r)}}}function F(e){return e===A||e===N||e===I||e===O}function U(e){switch(e){case A:return v;case N:return C;case I:return b;case O:return E}}function H(e){const t=U(e);return new P(e,t)}class B extends w.jG{constructor(){super(),this._onColorThemeChange=this._register(new o.vl),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new o.vl),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new x,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(A,H(A)),this._knownThemes.set(N,H(N)),this._knownThemes.set(I,H(I)),this._knownThemes.set(O,H(O));const e=this._register(function(e){const t=new w.Cm,i=t.add(new o.vl),n=(0,T.HT)();return t.add(n.onDidChange((()=>i.fire()))),e&&t.add(e.onDidProductIconThemeChange((()=>i.fire()))),{dispose:()=>t.dispose(),onDidChange:i.event,getCSS(){const t=e?e.getProductIconTheme():new x,i={},r=[],o=[];for(const e of n.getIcons()){const n=t.getIcon(e);if(!n)continue;const a=n.font,l=`--vscode-icon-${e.id}-font-family`,c=`--vscode-icon-${e.id}-content`;a?(i[a.id]=a.definition,o.push(`${l}: ${(0,s.yt)(a.id)};`,`${c}: '${n.fontCharacter}';`),r.push(`.codicon-${e.id}:before { content: '${n.fontCharacter}'; font-family: ${(0,s.yt)(a.id)}; }`)):(o.push(`${c}: '${n.fontCharacter}'; ${l}: 'codicon';`),r.push(`.codicon-${e.id}:before { content: '${n.fontCharacter}'; }`))}for(const e in i){const t=i[e],n=t.weight?`font-weight: ${t.weight};`:"",o=t.style?`font-style: ${t.style};`:"",a=t.src.map((e=>`${(0,s.Tf)(e.location)} format('${e.format}')`)).join(", ");r.push(`@font-face { src: ${a}; font-family: ${(0,s.yt)(e)};${n}${o} font-display: block; }`)}return r.push(`:root { ${o.join(" ")} }`),r.join("\n")}}}(this));this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(A),this._onOSSchemeChanged(),this._register(e.onDidChange((()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}))),(0,n.Dy)(k.G,"(forced-colors: active)",(()=>{this._onOSSchemeChanged()}))}registerEditorContainer(e){return s.Cl(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=s.li(void 0,(e=>{e.className="monaco-colors",e.textContent=this._allCSS})),this._styleElements.push(this._globalStyleElement)),w.jG.None}_registerShadowDomContainer(e){const t=s.li(e,(e=>{e.className="monaco-colors",e.textContent=this._allCSS}));return this._styleElements.push(t),{dispose:()=>{for(let e=0;e<this._styleElements.length;e++)if(this._styleElements[e]===t)return void this._styleElements.splice(e,1)}}}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!F(t.base)&&!F(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new P(e,t)),F(e)&&this._knownThemes.forEach((t=>{t.base===e&&t.notifyBaseUpdated()})),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(A),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=k.G.matchMedia("(forced-colors: active)").matches;if(e!==(0,L.Bb)(this._theme.type)){let t;t=(0,L.HD)(this._theme.type)?e?I:N:e?O:A,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:i=>{t[i]||(e.push(i),t[i]=!0)}};M.getThemingParticipants().forEach((e=>e(this._theme,i,this._environment)));const s=[];for(const r of D.getColors()){const e=this._theme.getColor(r.id,!0);e&&s.push(`${(0,_.Bbc)(r.id)}: ${e.toString()};`)}i.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${s.join("\n")} }`);const n=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(function(e){const t=[];for(let i=1,s=e.length;i<s;i++){const s=e[i];t[i]=`.mtk${i} { color: ${s}; }`}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.push(".mtks { text-decoration: line-through; }"),t.push(".mtks.mtku { text-decoration: underline line-through; text-underline-position: under; }"),t.join("\n")}(n)),this._themeCSS=e.join("\n"),this._updateCSS(),a.dG.setColorMap(n),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._styleElements.forEach((e=>e.textContent=this._allCSS))}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},22890:(e,t,i)=>{"use strict";var s=i(31450),n=i(24520),r=i(51861),o=i(86723),a=i(10424);class l extends s.ks{constructor(){super({id:"editor.action.toggleHighContrast",label:r.E6.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(n.L),s=i.getColorTheme();(0,o.Bb)(s.type)?(i.setTheme(this._originalThemeName||((0,o.HD)(s.type)?a.po:a.tj)),this._originalThemeName=null):(i.setTheme((0,o.HD)(s.type)?a.aQ:a.nr),this._originalThemeName=s.themeName)}}(0,s.Fl)(l)},24520:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("themeService")},11272:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of l(t))c.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},p={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},m=new u("css",g,p),f=new u("scss",g,p),_=new u("less",g,p);function v(){return i.e(225).then(i.bind(i,70225))}d.languages.css={cssDefaults:m,lessDefaults:_,scssDefaults:f},d.languages.onLanguage("less",(()=>{v().then((e=>e.setupMode(_)))})),d.languages.onLanguage("scss",(()=>{v().then((e=>e.setupMode(f)))})),d.languages.onLanguage("css",(()=>{v().then((e=>e.setupMode(m)))}))},89518:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of l(t))c.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function p(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===m,documentFormattingEdits:e===m,documentRangeFormattingEdits:e===m}}var m="html",f="handlebars",_="razor",v=w(m,g,p(m)),C=v.defaults,b=w(f,g,p(f)),E=b.defaults,S=w(_,g,p(_)),y=S.defaults;function w(e,t=g,s=p(e)){const n=new u(e,t,s);let r;const o=d.languages.onLanguage(e,(async()=>{r=(await i.e(8821).then(i.bind(i,68821))).setupMode(n)}));return{defaults:n,dispose(){o.dispose(),r?.dispose(),r=void 0}}}d.languages.html={htmlDefaults:C,razorDefaults:y,handlebarDefaults:E,htmlLanguageService:v,handlebarLanguageService:b,razorLanguageService:S,registerHTMLLanguageService:w}},99669:(e,t,i)=>{"use strict";var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of l(t))c.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=new class{constructor(e,t,i){this._onDidChange=new d.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});function g(){return i.e(6447).then(i.bind(i,66447))}d.languages.json={jsonDefaults:u,getWorker:()=>g().then((e=>e.getWorker()))},d.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),d.languages.onLanguage("json",(()=>{g().then((e=>e.setupMode(u)))}))},24152:(e,t,i)=>{"use strict";i.d(t,{IF:()=>C});var s,n,r=i(80781),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,h=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of l(t))c.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(s=a(t,n))||s.enumerable});return e},d={};h(d,s=r,"default"),n&&h(n,s,"default");var u=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext",e))(u||{}),g=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(g||{}),p=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(p||{}),m=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(m||{}),f=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e))(f||{}),_=class{constructor(e,t,i,s,n){this._onDidChange=new d.Emitter,this._onDidExtraLibsChange=new d.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(s),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i="undefined"===typeof t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let s=1;return this._removedExtraLibs[i]&&(s=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(s=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:s},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];e&&e.version===s&&(delete this._extraLibs[i],this._removedExtraLibs[i]=s,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content;let s=1;this._removedExtraLibs[e]&&(s=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:s}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout((()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)}),0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},v={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},C=new _({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},v),b=new _({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},v);function E(){return i.e(8979).then(i.bind(i,78979))}d.languages.typescript={ModuleKind:u,JsxEmit:g,NewLineKind:p,ScriptTarget:m,ModuleResolutionKind:f,typescriptVersion:"5.4.5",typescriptDefaults:C,javascriptDefaults:b,getTypeScriptWorker:()=>E().then((e=>e.getTypeScriptWorker())),getJavaScriptWorker:()=>E().then((e=>e.getJavaScriptWorker()))},d.languages.onLanguage("typescript",(()=>E().then((e=>e.setupTypeScript(C))))),d.languages.onLanguage("javascript",(()=>E().then((e=>e.setupJavaScript(b)))))},78209:(e,t,i)=>{"use strict";function s(){return globalThis._VSCODE_NLS_MESSAGES}function n(){return globalThis._VSCODE_NLS_LANGUAGE}i.d(t,{i8:()=>n,Ec:()=>s,kg:()=>a,aS:()=>c});const r="pseudo"===n()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function o(e,t){let i;return i=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,i)=>{const s=i[0],n=t[s];let r=e;return"string"===typeof n?r=n:"number"!==typeof n&&"boolean"!==typeof n&&void 0!==n&&null!==n||(r=String(n)),r})),r&&(i="\uff3b"+i.replace(/[aouei]/g,"$&$&")+"\uff3d"),i}function a(e,t,...i){return o("number"===typeof e?l(e,t):t,i)}function l(e,t){const i=s()?.[e];if("string"!==typeof i){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return i}function c(e,t,...i){let s;s="number"===typeof e?l(e,t):t;const n=o(s,i);return{value:n,original:t===s?n:o(t,i)}}},96282:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});const s=new class{constructor(){this._implementations=[]}register(e){return this._implementations.push(e),{dispose:()=>{const t=this._implementations.indexOf(e);-1!==t&&this._implementations.splice(t,1)}}}getImplementations(){return this._implementations}}},253:(e,t,i)=>{"use strict";i.d(t,{f:()=>r,j:()=>n});var s=i(32848);const n=(0,i(63591).u1)("accessibilityService"),r=new s.N1("accessibilityModeEnabled",!1)},87213:(e,t,i)=>{"use strict";i.d(t,{Nt:()=>n,Rh:()=>a});var s=i(78209);const n=(0,i(63591).u1)("accessibilitySignalService");Symbol("AcknowledgeDocCommentsToken");class r{static register(e){return new r(e.fileName)}static{this.error=r.register({fileName:"error.mp3"})}static{this.warning=r.register({fileName:"warning.mp3"})}static{this.success=r.register({fileName:"success.mp3"})}static{this.foldedArea=r.register({fileName:"foldedAreas.mp3"})}static{this.break=r.register({fileName:"break.mp3"})}static{this.quickFixes=r.register({fileName:"quickFixes.mp3"})}static{this.taskCompleted=r.register({fileName:"taskCompleted.mp3"})}static{this.taskFailed=r.register({fileName:"taskFailed.mp3"})}static{this.terminalBell=r.register({fileName:"terminalBell.mp3"})}static{this.diffLineInserted=r.register({fileName:"diffLineInserted.mp3"})}static{this.diffLineDeleted=r.register({fileName:"diffLineDeleted.mp3"})}static{this.diffLineModified=r.register({fileName:"diffLineModified.mp3"})}static{this.chatRequestSent=r.register({fileName:"chatRequestSent.mp3"})}static{this.chatResponseReceived1=r.register({fileName:"chatResponseReceived1.mp3"})}static{this.chatResponseReceived2=r.register({fileName:"chatResponseReceived2.mp3"})}static{this.chatResponseReceived3=r.register({fileName:"chatResponseReceived3.mp3"})}static{this.chatResponseReceived4=r.register({fileName:"chatResponseReceived4.mp3"})}static{this.clear=r.register({fileName:"clear.mp3"})}static{this.save=r.register({fileName:"save.mp3"})}static{this.format=r.register({fileName:"format.mp3"})}static{this.voiceRecordingStarted=r.register({fileName:"voiceRecordingStarted.mp3"})}static{this.voiceRecordingStopped=r.register({fileName:"voiceRecordingStopped.mp3"})}static{this.progress=r.register({fileName:"progress.mp3"})}constructor(e){this.fileName=e}}class o{constructor(e){this.randomOneOf=e}}class a{constructor(e,t,i,s,n,r){this.sound=e,this.name=t,this.legacySoundSettingsKey=i,this.settingsKey=s,this.legacyAnnouncementSettingsKey=n,this.announcementMessage=r}static{this._signals=new Set}static register(e){const t=new o("randomOneOf"in e.sound?e.sound.randomOneOf:[e.sound]),i=new a(t,e.name,e.legacySoundSettingsKey,e.settingsKey,e.legacyAnnouncementSettingsKey,e.announcementMessage);return a._signals.add(i),i}static{this.errorAtPosition=a.register({name:(0,s.kg)("accessibilitySignals.positionHasError.name","Error at Position"),sound:r.error,announcementMessage:(0,s.kg)("accessibility.signals.positionHasError","Error"),settingsKey:"accessibility.signals.positionHasError",delaySettingsKey:"accessibility.signalOptions.delays.errorAtPosition"})}static{this.warningAtPosition=a.register({name:(0,s.kg)("accessibilitySignals.positionHasWarning.name","Warning at Position"),sound:r.warning,announcementMessage:(0,s.kg)("accessibility.signals.positionHasWarning","Warning"),settingsKey:"accessibility.signals.positionHasWarning",delaySettingsKey:"accessibility.signalOptions.delays.warningAtPosition"})}static{this.errorOnLine=a.register({name:(0,s.kg)("accessibilitySignals.lineHasError.name","Error on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:(0,s.kg)("accessibility.signals.lineHasError","Error on Line"),settingsKey:"accessibility.signals.lineHasError"})}static{this.warningOnLine=a.register({name:(0,s.kg)("accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:r.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:(0,s.kg)("accessibility.signals.lineHasWarning","Warning on Line"),settingsKey:"accessibility.signals.lineHasWarning"})}static{this.foldedArea=a.register({name:(0,s.kg)("accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:r.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:(0,s.kg)("accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"})}static{this.break=a.register({name:(0,s.kg)("accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:r.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:(0,s.kg)("accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"})}static{this.inlineSuggestion=a.register({name:(0,s.kg)("accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"})}static{this.terminalQuickFix=a.register({name:(0,s.kg)("accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:r.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:(0,s.kg)("accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"})}static{this.onDebugBreak=a.register({name:(0,s.kg)("accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:r.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:(0,s.kg)("accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"})}static{this.noInlayHints=a.register({name:(0,s.kg)("accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:r.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:(0,s.kg)("accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"})}static{this.taskCompleted=a.register({name:(0,s.kg)("accessibilitySignals.taskCompleted","Task Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:(0,s.kg)("accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"})}static{this.taskFailed=a.register({name:(0,s.kg)("accessibilitySignals.taskFailed","Task Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:(0,s.kg)("accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"})}static{this.terminalCommandFailed=a.register({name:(0,s.kg)("accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:r.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:(0,s.kg)("accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"})}static{this.terminalCommandSucceeded=a.register({name:(0,s.kg)("accessibilitySignals.terminalCommandSucceeded","Terminal Command Succeeded"),sound:r.success,announcementMessage:(0,s.kg)("accessibility.signals.terminalCommandSucceeded","Command Succeeded"),settingsKey:"accessibility.signals.terminalCommandSucceeded"})}static{this.terminalBell=a.register({name:(0,s.kg)("accessibilitySignals.terminalBell","Terminal Bell"),sound:r.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:(0,s.kg)("accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"})}static{this.notebookCellCompleted=a.register({name:(0,s.kg)("accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:r.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:(0,s.kg)("accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"})}static{this.notebookCellFailed=a.register({name:(0,s.kg)("accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:r.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:(0,s.kg)("accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"})}static{this.diffLineInserted=a.register({name:(0,s.kg)("accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:r.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"})}static{this.diffLineDeleted=a.register({name:(0,s.kg)("accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:r.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"})}static{this.diffLineModified=a.register({name:(0,s.kg)("accessibilitySignals.diffLineModified","Diff Line Modified"),sound:r.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"})}static{this.chatRequestSent=a.register({name:(0,s.kg)("accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:r.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:(0,s.kg)("accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"})}static{this.chatResponseReceived=a.register({name:(0,s.kg)("accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[r.chatResponseReceived1,r.chatResponseReceived2,r.chatResponseReceived3,r.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"})}static{this.progress=a.register({name:(0,s.kg)("accessibilitySignals.progress","Progress"),sound:r.progress,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.progress",announcementMessage:(0,s.kg)("accessibility.signals.progress","Progress"),settingsKey:"accessibility.signals.progress"})}static{this.clear=a.register({name:(0,s.kg)("accessibilitySignals.clear","Clear"),sound:r.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:(0,s.kg)("accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"})}static{this.save=a.register({name:(0,s.kg)("accessibilitySignals.save","Save"),sound:r.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:(0,s.kg)("accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"})}static{this.format=a.register({name:(0,s.kg)("accessibilitySignals.format","Format"),sound:r.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:(0,s.kg)("accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"})}static{this.voiceRecordingStarted=a.register({name:(0,s.kg)("accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:r.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"})}static{this.voiceRecordingStopped=a.register({name:(0,s.kg)("accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:r.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"})}}},73983:(e,t,i)=>{"use strict";function s(e){return e&&"object"===typeof e&&"string"===typeof e.original&&"string"===typeof e.value}function n(e){return!!e&&void 0!==e.condition}i.d(t,{N:()=>n,f:()=>s})},57629:(e,t,i)=>{"use strict";i.d(t,{oq:()=>I,rr:()=>O,rN:()=>F,Ot:()=>A,$u:()=>k});var s=i(8597),n=i(72962),r=i(5646),o=i(89506),a=i(36921),l=i(83619),c=i(5662),h=i(98067),d=i(78209),u=i(27195),g=i(73983),p=i(32848),m=i(47508),f=i(63591),_=i(98031),v=i(58591),C=i(9711),b=i(47612),E=i(25689),S=i(86723),y=i(631),w=i(66261),L=i(19070),R=i(253),T=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},x=function(e,t){return function(i,s){t(i,s,e)}};function k(e,t,i,n){let r,o,a;if(Array.isArray(e))a=e,r=t,o=i;else{const s=t;a=e.getActions(s),r=i,o=n}const l=s.Di.getInstance();N(a,r,l.keyStatus.altKey||(h.uF||h.j9)&&l.keyStatus.shiftKey,o?e=>e===o:e=>"navigation"===e)}function A(e,t,i,s,n,r){let o,a,l,c,h;if(Array.isArray(e))h=e,o=t,a=i,l=s,c=n;else{const d=t;h=e.getActions(d),o=i,a=s,l=n,c=r}N(h,o,!1,"string"===typeof a?e=>e===a:a,l,c)}function N(e,t,i,s=e=>"navigation"===e,n=()=>!1,r=!1){let o,l;Array.isArray(t)?(o=t,l=t):(o=t.primary,l=t.secondary);const c=new Set;for(const[h,d]of e){let e;s(h)?(e=o,e.length>0&&r&&e.push(new a.wv)):(e=l,e.length>0&&e.push(new a.wv));for(let t of d){i&&(t=t instanceof u.Xe&&t.alt?t.alt:t);const s=e.push(t);t instanceof a.YH&&c.add({group:h,action:t,index:s-1})}}for(const{group:a,action:h,index:d}of c){const e=s(a)?o:l,t=h.actions;n(h,a,e.length)&&e.splice(d,1,...t)}}let I=class extends r.Z4{constructor(e,t,i,n,r,o,a,l){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:t?.draggable,keybinding:t?.keybinding,hoverDelegate:t?.hoverDelegate}),this._options=t,this._keybindingService=i,this._notificationService=n,this._contextKeyService=r,this._themeService=o,this._contextMenuService=a,this._accessibilityService=l,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new c.HE),this._altKey=s.Di.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(e){e.preventDefault(),e.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let t=!1;const i=()=>{const e=!!this._menuItemAction.alt?.enabled&&(!this._accessibilityService.isMotionReduced()||t)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&t);e!==this._wantsAltCommand&&(this._wantsAltCommand=e,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register((0,s.ko)(e,"mouseleave",(e=>{t=!1,i()}))),this._register((0,s.ko)(e,"mouseenter",(e=>{t=!0,i()}))),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){const e=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),t=e&&e.getLabel(),i=this._commandAction.tooltip||this._commandAction.label;let s=t?(0,d.kg)("titleAndKb","{0} ({1})",i,t):i;if(!this._wantsAltCommand&&this._menuItemAction.alt?.enabled){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),n=i?(0,d.kg)("titleAndKb","{0} ({1})",e,i):e;s=(0,d.kg)("titleAndKbAndAlt","{0}\n[{1}] {2}",s,l.Of.modifierLabels[h.OS].altKey,n)}return s}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(!t||!i)return;const n=this._commandAction.checked&&(0,g.N)(e.toggled)&&e.toggled.icon?e.toggled.icon:e.icon;if(n)if(E.L.isThemeIcon(n)){const e=E.L.asClassNameArray(n);i.classList.add(...e),this._itemClassDispose.value=(0,c.s)((()=>{i.classList.remove(...e)}))}else i.style.backgroundImage=(0,S.HD)(this._themeService.getColorTheme().type)?(0,s.Tf)(n.dark):(0,s.Tf)(n.light),i.classList.add("icon"),this._itemClassDispose.value=(0,c.qE)((0,c.s)((()=>{i.style.backgroundImage="",i.classList.remove("icon")})),this._themeService.onDidColorThemeChange((()=>{this.updateClass()})))}};I=T([x(2,_.b),x(3,v.Ot),x(4,p.fN),x(5,b.Gy),x(6,m.Z),x(7,R.j)],I);class O extends I{render(e){this.options.label=!0,this.options.icon=!1,super.render(e),e.classList.add("text-only"),e.classList.toggle("use-comma",this._options?.useComma??!1)}updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=O._symbolPrintEnter(e);this._options?.conversational?this.label.textContent=(0,d.kg)({key:"content2",comment:['A label with keybindg like "ESC to dismiss"']},"{1} to {0}",this._action.label,t):this.label.textContent=(0,d.kg)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,t)}}static _symbolPrintEnter(e){return e.getLabel()?.replace(/\benter\b/gi,"\u23ce").replace(/\bEscape\b/gi,"Esc")}}let D=class extends o.d{constructor(e,t,i,s,n){const r={...t,menuAsChild:t?.menuAsChild??!1,classNames:t?.classNames??(E.L.isThemeIcon(e.item.icon)?E.L.asClassName(e.item.icon):void 0),keybindingProvider:t?.keybindingProvider??(e=>i.lookupKeybinding(e.id))};super(e,{getActions:()=>e.actions},s,r),this._keybindingService=i,this._contextMenuService=s,this._themeService=n}render(e){super.render(e),(0,y.j)(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!E.L.isThemeIcon(i)){this.element.classList.add("icon");const e=()=>{this.element&&(this.element.style.backgroundImage=(0,S.HD)(this._themeService.getColorTheme().type)?(0,s.Tf)(i.dark):(0,s.Tf)(i.light))};e(),this._register(this._themeService.onDidColorThemeChange((()=>{e()})))}}};D=T([x(2,_.b),x(3,m.Z),x(4,b.Gy)],D);let M=class extends r.EH{constructor(e,t,i,s,n,r,l,c){let h;super(null,e),this._keybindingService=i,this._notificationService=s,this._contextMenuService=n,this._menuService=r,this._instaService=l,this._storageService=c,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;const d=t?.persistLastActionId?c.get(this._storageKey,1):void 0;d&&(h=e.actions.find((e=>d===e.id))),h||(h=e.actions[0]),this._defaultAction=this._instaService.createInstance(I,h,{keybinding:this._getDefaultActionKeybindingLabel(h)});const g={keybindingProvider:e=>this._keybindingService.lookupKeybinding(e.id),...t,menuAsChild:t?.menuAsChild??!0,classNames:t?.classNames??["codicon","codicon-chevron-down"],actionRunner:t?.actionRunner??new a.LN};this._dropdown=new o.d(e,e.actions,this._contextMenuService,g),this._register(this._dropdown.actionRunner.onDidRun((e=>{e.action instanceof u.Xe&&this.update(e.action)})))}update(e){this._options?.persistLastActionId&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(I,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.LN{async runAction(e,t){await e.run(void 0)}},this._container&&this._defaultAction.render((0,s.Hs)(this._container,(0,s.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){let t;if(this._options?.renderKeybindingWithDefaultActionLabel){const i=this._keybindingService.lookupKeybinding(e.id);i&&(t=`(${i.getLabel()})`)}return t}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=(0,s.$)(".action-container");this._defaultAction.render((0,s.BC)(this._container,t)),this._register((0,s.ko)(t,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())})));const i=(0,s.$)(".dropdown-action-container");this._dropdown.render((0,s.BC)(this._container,i)),this._register((0,s.ko)(i,s.Bx.KEY_DOWN,(e=>{const t=new n.Z(e);t.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),this._defaultAction.element?.focus(),t.stopPropagation())})))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};M=T([x(2,_.b),x(3,v.Ot),x(4,m.Z),x(5,u.ez),x(6,f._Y),x(7,C.CS)],M);let P=class extends r.XF{constructor(e,t){super(null,e,e.actions.map((e=>({text:e.id===a.wv.ID?"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500":e.label,isDisabled:!e.enabled}))),0,t,L.RE,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex((e=>e.checked))))}render(e){super.render(e),e.style.borderColor=(0,w.GuP)(w.HcB)}runAction(e,t){const i=this.action.actions[t];i&&this.actionRunner.run(i)}};function F(e,t,i){return t instanceof u.Xe?e.createInstance(I,t,i):t instanceof u.nI?t.item.isSelection?e.createInstance(P,t):t.item.rememberDefaultAction?e.createInstance(M,t,{...i,persistLastActionId:!0}):e.createInstance(D,t,i):void 0}P=T([x(1,m.l)],P)},65644:(e,t,i)=>{"use strict";i.d(t,{m:()=>N,p:()=>A});var s=i(8597),n=i(47358),r=i(11799),o=i(89506),a=i(36921),l=i(10350),c=i(25689),h=i(41234),d=i(5662),u=i(78209),g=i(42904);class p extends d.jG{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new h._B),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new d.Cm),i.hoverDelegate=i.hoverDelegate??this._register((0,g.bW)()),this.options=i,this.toggleMenuAction=this._register(new m((()=>this.toggleMenuActionViewItem?.show()),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new r.E(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(e,s)=>{if(e.id===m.ID)return this.toggleMenuActionViewItem=new o.d(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:c.L.asClassNameArray(i.moreIcon??l.W.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const t=i.actionViewItemProvider(e,s);if(t)return t}if(e instanceof a.YH){const i=new o.d(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach((e=>{this.actionBar.push(e,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(e)})}))}getKeybindingLabel(e){const t=this.options.getKeyBinding?.(e);return t?.getLabel()??void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}class m extends a.rc{static{this.ID="toolbar.toggle.more"}constructor(e,t){t=t||u.kg("moreActions","More Actions..."),super(m.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}var f=i(25890),_=i(48495),v=i(64383),C=i(42522),b=i(57629),E=i(27195),S=i(60858),y=i(50091),w=i(32848),L=i(47508),R=i(98031),T=i(90651),x=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){return function(i,s){t(i,s,e)}};let A=class extends p{constructor(e,t,i,s,n,r,o,a){super(e,n,{getKeyBinding:e=>r.lookupKeybinding(e.id)??void 0,...t,allowContextMenu:!0,skipTelemetry:"string"===typeof t?.telemetrySource}),this._options=t,this._menuService=i,this._contextKeyService=s,this._contextMenuService=n,this._keybindingService=r,this._commandService=o,this._sessionDisposables=this._store.add(new d.Cm);const l=t?.telemetrySource;l&&this._store.add(this.actionBar.onDidRun((e=>a.publicLog2("workbenchActionExecuted",{id:e.action.id,from:l}))))}setActions(e,t=[],i){this._sessionDisposables.clear();const r=e.slice(),o=t.slice(),l=[];let c=0;const h=[];let d=!1;if(-1!==this._options?.hiddenItemStrategy)for(let s=0;s<r.length;s++){const e=r[s];(e instanceof E.Xe||e instanceof E.nI)&&(e.hideActions&&(l.push(e.hideActions.toggle),e.hideActions.toggle.checked&&c++,e.hideActions.isHidden&&(d=!0,r[s]=void 0,0!==this._options?.hiddenItemStrategy&&(h[s]=e))))}if(void 0!==this._options?.overflowBehavior){const e=(0,_.E)(new Set(this._options.overflowBehavior.exempted),C.f.map(r,(e=>e?.id))),t=this._options.overflowBehavior.maxItems-e.size;let i=0;for(let s=0;s<r.length;s++){const n=r[s];n&&(i++,e.has(n.id)||i>=t&&(r[s]=void 0,h[s]=n))}}(0,f.SK)(r),(0,f.SK)(h),super.setActions(r,a.wv.join(h,o)),(l.length>0||r.length>0)&&this._sessionDisposables.add((0,s.ko)(this.getElement(),"contextmenu",(e=>{const t=new n.P((0,s.zk)(this.getElement()),e),r=this.getItemAction(t.target);if(!r)return;t.preventDefault(),t.stopPropagation();const o=[];if(r instanceof E.Xe&&r.menuKeybinding)o.push(r.menuKeybinding);else if(!(r instanceof E.nI||r instanceof m)){const e=!!this._keybindingService.lookupKeybinding(r.id);o.push((0,S.D)(this._commandService,this._keybindingService,r.id,void 0,e))}if(l.length>0){let e=!1;if(1===c&&0===this._options?.hiddenItemStrategy){e=!0;for(let e=0;e<l.length;e++)if(l[e].checked){l[e]=(0,a.ih)({id:r.id,label:r.label,checked:!0,enabled:!1,run(){}});break}}if(!e&&(r instanceof E.Xe||r instanceof E.nI)){if(!r.hideActions)return;o.push(r.hideActions.hide)}else o.push((0,a.ih)({id:"label",label:(0,u.kg)("hide","Hide"),enabled:!1,run(){}}))}const h=a.wv.join(o,l);this._options?.resetMenu&&!i&&(i=[this._options.resetMenu]),d&&i&&(h.push(new a.wv),h.push((0,a.ih)({id:"resetThisMenu",label:(0,u.kg)("resetThisMenu","Reset Menu"),run:()=>this._menuService.resetHiddenStates(i)}))),0!==h.length&&this._contextMenuService.showContextMenu({getAnchor:()=>t,getActions:()=>h,menuId:this._options?.contextMenu,menuActionOptions:{renderShortTitle:!0,...this._options?.menuOptions},skipTelemetry:"string"===typeof this._options?.telemetrySource,contextKeyService:this._contextKeyService})})))}};A=x([k(2,E.ez),k(3,w.fN),k(4,L.Z),k(5,R.b),k(6,y.d),k(7,T.k)],A);let N=class extends A{constructor(e,t,i,s,n,r,o,a,l){super(e,{resetMenu:t,...i},s,n,r,o,a,l),this._onDidChangeMenuItems=this._store.add(new h.vl),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const c=this._store.add(s.createMenu(t,n,{emitEventsForSubmenuChanges:!0})),d=()=>{const t=[],s=[];(0,b.Ot)(c,i?.menuOptions,{primary:t,secondary:s},i?.toolbarOptions?.primaryGroup,i?.toolbarOptions?.shouldInlineSubmenu,i?.toolbarOptions?.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",0===t.length&&0===s.length),super.setActions(t,s)};this._store.add(c.onDidChange((()=>{d(),this._onDidChangeMenuItems.fire(this)}))),d()}setActions(){throw new v.D7("This toolbar is populated from a menu.")}};N=x([k(3,E.ez),k(4,w.fN),k(5,L.Z),k(6,R.b),k(7,y.d),k(8,T.k)],N)},27195:(e,t,i)=>{"use strict";i.d(t,{D8:()=>_,L:()=>y,Xe:()=>S,ZG:()=>b,ez:()=>v,i1:()=>f,is:()=>m,nI:()=>E,ug:()=>w});var s,n=i(36921),r=i(25689),o=i(41234),a=i(5662),l=i(58925),c=i(50091),h=i(32848),d=i(63591),u=i(59261),g=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},p=function(e,t){return function(i,s){t(i,s,e)}};function m(e){return void 0!==e.command}function f(e){return void 0!==e.submenu}class _{static{this._instances=new Map}static{this.CommandPalette=new _("CommandPalette")}static{this.DebugBreakpointsContext=new _("DebugBreakpointsContext")}static{this.DebugCallStackContext=new _("DebugCallStackContext")}static{this.DebugConsoleContext=new _("DebugConsoleContext")}static{this.DebugVariablesContext=new _("DebugVariablesContext")}static{this.NotebookVariablesContext=new _("NotebookVariablesContext")}static{this.DebugHoverContext=new _("DebugHoverContext")}static{this.DebugWatchContext=new _("DebugWatchContext")}static{this.DebugToolBar=new _("DebugToolBar")}static{this.DebugToolBarStop=new _("DebugToolBarStop")}static{this.DebugCallStackToolbar=new _("DebugCallStackToolbar")}static{this.DebugCreateConfiguration=new _("DebugCreateConfiguration")}static{this.EditorContext=new _("EditorContext")}static{this.SimpleEditorContext=new _("SimpleEditorContext")}static{this.EditorContent=new _("EditorContent")}static{this.EditorLineNumberContext=new _("EditorLineNumberContext")}static{this.EditorContextCopy=new _("EditorContextCopy")}static{this.EditorContextPeek=new _("EditorContextPeek")}static{this.EditorContextShare=new _("EditorContextShare")}static{this.EditorTitle=new _("EditorTitle")}static{this.EditorTitleRun=new _("EditorTitleRun")}static{this.EditorTitleContext=new _("EditorTitleContext")}static{this.EditorTitleContextShare=new _("EditorTitleContextShare")}static{this.EmptyEditorGroup=new _("EmptyEditorGroup")}static{this.EmptyEditorGroupContext=new _("EmptyEditorGroupContext")}static{this.EditorTabsBarContext=new _("EditorTabsBarContext")}static{this.EditorTabsBarShowTabsSubmenu=new _("EditorTabsBarShowTabsSubmenu")}static{this.EditorTabsBarShowTabsZenModeSubmenu=new _("EditorTabsBarShowTabsZenModeSubmenu")}static{this.EditorActionsPositionSubmenu=new _("EditorActionsPositionSubmenu")}static{this.ExplorerContext=new _("ExplorerContext")}static{this.ExplorerContextShare=new _("ExplorerContextShare")}static{this.ExtensionContext=new _("ExtensionContext")}static{this.GlobalActivity=new _("GlobalActivity")}static{this.CommandCenter=new _("CommandCenter")}static{this.CommandCenterCenter=new _("CommandCenterCenter")}static{this.LayoutControlMenuSubmenu=new _("LayoutControlMenuSubmenu")}static{this.LayoutControlMenu=new _("LayoutControlMenu")}static{this.MenubarMainMenu=new _("MenubarMainMenu")}static{this.MenubarAppearanceMenu=new _("MenubarAppearanceMenu")}static{this.MenubarDebugMenu=new _("MenubarDebugMenu")}static{this.MenubarEditMenu=new _("MenubarEditMenu")}static{this.MenubarCopy=new _("MenubarCopy")}static{this.MenubarFileMenu=new _("MenubarFileMenu")}static{this.MenubarGoMenu=new _("MenubarGoMenu")}static{this.MenubarHelpMenu=new _("MenubarHelpMenu")}static{this.MenubarLayoutMenu=new _("MenubarLayoutMenu")}static{this.MenubarNewBreakpointMenu=new _("MenubarNewBreakpointMenu")}static{this.PanelAlignmentMenu=new _("PanelAlignmentMenu")}static{this.PanelPositionMenu=new _("PanelPositionMenu")}static{this.ActivityBarPositionMenu=new _("ActivityBarPositionMenu")}static{this.MenubarPreferencesMenu=new _("MenubarPreferencesMenu")}static{this.MenubarRecentMenu=new _("MenubarRecentMenu")}static{this.MenubarSelectionMenu=new _("MenubarSelectionMenu")}static{this.MenubarShare=new _("MenubarShare")}static{this.MenubarSwitchEditorMenu=new _("MenubarSwitchEditorMenu")}static{this.MenubarSwitchGroupMenu=new _("MenubarSwitchGroupMenu")}static{this.MenubarTerminalMenu=new _("MenubarTerminalMenu")}static{this.MenubarViewMenu=new _("MenubarViewMenu")}static{this.MenubarHomeMenu=new _("MenubarHomeMenu")}static{this.OpenEditorsContext=new _("OpenEditorsContext")}static{this.OpenEditorsContextShare=new _("OpenEditorsContextShare")}static{this.ProblemsPanelContext=new _("ProblemsPanelContext")}static{this.SCMInputBox=new _("SCMInputBox")}static{this.SCMChangesSeparator=new _("SCMChangesSeparator")}static{this.SCMChangesContext=new _("SCMChangesContext")}static{this.SCMIncomingChanges=new _("SCMIncomingChanges")}static{this.SCMIncomingChangesContext=new _("SCMIncomingChangesContext")}static{this.SCMIncomingChangesSetting=new _("SCMIncomingChangesSetting")}static{this.SCMOutgoingChanges=new _("SCMOutgoingChanges")}static{this.SCMOutgoingChangesContext=new _("SCMOutgoingChangesContext")}static{this.SCMOutgoingChangesSetting=new _("SCMOutgoingChangesSetting")}static{this.SCMIncomingChangesAllChangesContext=new _("SCMIncomingChangesAllChangesContext")}static{this.SCMIncomingChangesHistoryItemContext=new _("SCMIncomingChangesHistoryItemContext")}static{this.SCMOutgoingChangesAllChangesContext=new _("SCMOutgoingChangesAllChangesContext")}static{this.SCMOutgoingChangesHistoryItemContext=new _("SCMOutgoingChangesHistoryItemContext")}static{this.SCMChangeContext=new _("SCMChangeContext")}static{this.SCMResourceContext=new _("SCMResourceContext")}static{this.SCMResourceContextShare=new _("SCMResourceContextShare")}static{this.SCMResourceFolderContext=new _("SCMResourceFolderContext")}static{this.SCMResourceGroupContext=new _("SCMResourceGroupContext")}static{this.SCMSourceControl=new _("SCMSourceControl")}static{this.SCMSourceControlInline=new _("SCMSourceControlInline")}static{this.SCMSourceControlTitle=new _("SCMSourceControlTitle")}static{this.SCMHistoryTitle=new _("SCMHistoryTitle")}static{this.SCMTitle=new _("SCMTitle")}static{this.SearchContext=new _("SearchContext")}static{this.SearchActionMenu=new _("SearchActionContext")}static{this.StatusBarWindowIndicatorMenu=new _("StatusBarWindowIndicatorMenu")}static{this.StatusBarRemoteIndicatorMenu=new _("StatusBarRemoteIndicatorMenu")}static{this.StickyScrollContext=new _("StickyScrollContext")}static{this.TestItem=new _("TestItem")}static{this.TestItemGutter=new _("TestItemGutter")}static{this.TestProfilesContext=new _("TestProfilesContext")}static{this.TestMessageContext=new _("TestMessageContext")}static{this.TestMessageContent=new _("TestMessageContent")}static{this.TestPeekElement=new _("TestPeekElement")}static{this.TestPeekTitle=new _("TestPeekTitle")}static{this.TestCallStack=new _("TestCallStack")}static{this.TouchBarContext=new _("TouchBarContext")}static{this.TitleBarContext=new _("TitleBarContext")}static{this.TitleBarTitleContext=new _("TitleBarTitleContext")}static{this.TunnelContext=new _("TunnelContext")}static{this.TunnelPrivacy=new _("TunnelPrivacy")}static{this.TunnelProtocol=new _("TunnelProtocol")}static{this.TunnelPortInline=new _("TunnelInline")}static{this.TunnelTitle=new _("TunnelTitle")}static{this.TunnelLocalAddressInline=new _("TunnelLocalAddressInline")}static{this.TunnelOriginInline=new _("TunnelOriginInline")}static{this.ViewItemContext=new _("ViewItemContext")}static{this.ViewContainerTitle=new _("ViewContainerTitle")}static{this.ViewContainerTitleContext=new _("ViewContainerTitleContext")}static{this.ViewTitle=new _("ViewTitle")}static{this.ViewTitleContext=new _("ViewTitleContext")}static{this.CommentEditorActions=new _("CommentEditorActions")}static{this.CommentThreadTitle=new _("CommentThreadTitle")}static{this.CommentThreadActions=new _("CommentThreadActions")}static{this.CommentThreadAdditionalActions=new _("CommentThreadAdditionalActions")}static{this.CommentThreadTitleContext=new _("CommentThreadTitleContext")}static{this.CommentThreadCommentContext=new _("CommentThreadCommentContext")}static{this.CommentTitle=new _("CommentTitle")}static{this.CommentActions=new _("CommentActions")}static{this.CommentsViewThreadActions=new _("CommentsViewThreadActions")}static{this.InteractiveToolbar=new _("InteractiveToolbar")}static{this.InteractiveCellTitle=new _("InteractiveCellTitle")}static{this.InteractiveCellDelete=new _("InteractiveCellDelete")}static{this.InteractiveCellExecute=new _("InteractiveCellExecute")}static{this.InteractiveInputExecute=new _("InteractiveInputExecute")}static{this.InteractiveInputConfig=new _("InteractiveInputConfig")}static{this.ReplInputExecute=new _("ReplInputExecute")}static{this.IssueReporter=new _("IssueReporter")}static{this.NotebookToolbar=new _("NotebookToolbar")}static{this.NotebookStickyScrollContext=new _("NotebookStickyScrollContext")}static{this.NotebookCellTitle=new _("NotebookCellTitle")}static{this.NotebookCellDelete=new _("NotebookCellDelete")}static{this.NotebookCellInsert=new _("NotebookCellInsert")}static{this.NotebookCellBetween=new _("NotebookCellBetween")}static{this.NotebookCellListTop=new _("NotebookCellTop")}static{this.NotebookCellExecute=new _("NotebookCellExecute")}static{this.NotebookCellExecuteGoTo=new _("NotebookCellExecuteGoTo")}static{this.NotebookCellExecutePrimary=new _("NotebookCellExecutePrimary")}static{this.NotebookDiffCellInputTitle=new _("NotebookDiffCellInputTitle")}static{this.NotebookDiffCellMetadataTitle=new _("NotebookDiffCellMetadataTitle")}static{this.NotebookDiffCellOutputsTitle=new _("NotebookDiffCellOutputsTitle")}static{this.NotebookOutputToolbar=new _("NotebookOutputToolbar")}static{this.NotebookOutlineFilter=new _("NotebookOutlineFilter")}static{this.NotebookOutlineActionMenu=new _("NotebookOutlineActionMenu")}static{this.NotebookEditorLayoutConfigure=new _("NotebookEditorLayoutConfigure")}static{this.NotebookKernelSource=new _("NotebookKernelSource")}static{this.BulkEditTitle=new _("BulkEditTitle")}static{this.BulkEditContext=new _("BulkEditContext")}static{this.TimelineItemContext=new _("TimelineItemContext")}static{this.TimelineTitle=new _("TimelineTitle")}static{this.TimelineTitleContext=new _("TimelineTitleContext")}static{this.TimelineFilterSubMenu=new _("TimelineFilterSubMenu")}static{this.AccountsContext=new _("AccountsContext")}static{this.SidebarTitle=new _("SidebarTitle")}static{this.PanelTitle=new _("PanelTitle")}static{this.AuxiliaryBarTitle=new _("AuxiliaryBarTitle")}static{this.AuxiliaryBarHeader=new _("AuxiliaryBarHeader")}static{this.TerminalInstanceContext=new _("TerminalInstanceContext")}static{this.TerminalEditorInstanceContext=new _("TerminalEditorInstanceContext")}static{this.TerminalNewDropdownContext=new _("TerminalNewDropdownContext")}static{this.TerminalTabContext=new _("TerminalTabContext")}static{this.TerminalTabEmptyAreaContext=new _("TerminalTabEmptyAreaContext")}static{this.TerminalStickyScrollContext=new _("TerminalStickyScrollContext")}static{this.WebviewContext=new _("WebviewContext")}static{this.InlineCompletionsActions=new _("InlineCompletionsActions")}static{this.InlineEditsActions=new _("InlineEditsActions")}static{this.InlineEditActions=new _("InlineEditActions")}static{this.NewFile=new _("NewFile")}static{this.MergeInput1Toolbar=new _("MergeToolbar1Toolbar")}static{this.MergeInput2Toolbar=new _("MergeToolbar2Toolbar")}static{this.MergeBaseToolbar=new _("MergeBaseToolbar")}static{this.MergeInputResultToolbar=new _("MergeToolbarResultToolbar")}static{this.InlineSuggestionToolbar=new _("InlineSuggestionToolbar")}static{this.InlineEditToolbar=new _("InlineEditToolbar")}static{this.ChatContext=new _("ChatContext")}static{this.ChatCodeBlock=new _("ChatCodeblock")}static{this.ChatCompareBlock=new _("ChatCompareBlock")}static{this.ChatMessageTitle=new _("ChatMessageTitle")}static{this.ChatExecute=new _("ChatExecute")}static{this.ChatExecuteSecondary=new _("ChatExecuteSecondary")}static{this.ChatInputSide=new _("ChatInputSide")}static{this.AccessibleView=new _("AccessibleView")}static{this.MultiDiffEditorFileToolbar=new _("MultiDiffEditorFileToolbar")}static{this.DiffEditorHunkToolbar=new _("DiffEditorHunkToolbar")}static{this.DiffEditorSelectionToolbar=new _("DiffEditorSelectionToolbar")}constructor(e){if(_._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);_._instances.set(e,this),this.id=e}}const v=(0,d.u1)("menuService");class C{static{this._all=new Map}static for(e){let t=this._all.get(e);return t||(t=new C(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof C&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}const b=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new o.QT({merge:C.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(C.for(_.CommandPalette)),(0,a.s)((()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(C.for(_.CommandPalette))}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,i)=>e.set(i,t))),e}appendMenuItem(e,t){let i=this._menuItems.get(e);i||(i=new l.w,this._menuItems.set(e,i));const s=i.push(t);return this._onDidChangeMenu.fire(C.for(e)),(0,a.s)((()=>{s(),this._onDidChangeMenu.fire(C.for(e))}))}appendMenuItems(e){const t=new a.Cm;for(const{id:i,item:s}of e)t.add(this.appendMenuItem(i,s));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===_.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)m(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach(((i,s)=>{t.has(s)||e.push({command:i})}))}};class E extends n.YH{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,"string"===typeof e.title?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let S=s=class{static label(e,t){return t?.renderShortTitle&&e.shortTitle?"string"===typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"===typeof e.title?e.title:e.title.value}constructor(e,t,i,n,o,a,l){let c;if(this.hideActions=n,this.menuKeybinding=o,this._commandService=l,this.id=e.id,this.label=s.label(e,i),this.tooltip=("string"===typeof e.tooltip?e.tooltip:e.tooltip?.value)??"",this.enabled=!e.precondition||a.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=a.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"===typeof t.tooltip?t.tooltip:t.tooltip.value),this.checked&&r.L.isThemeIcon(t.icon)&&(c=t.icon),this.checked&&t.title&&(this.label="string"===typeof t.title?t.title:t.title.value)}c||(c=r.L.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new s(t,void 0,i,n,void 0,a,l):void 0,this._options=i,this.class=c&&r.L.asClassName(c)}run(...e){let t=[];return this._options?.arg&&(t=[...t,this._options.arg]),this._options?.shouldForwardArgs&&(t=[...t,...e]),this._commandService.executeCommand(this.id,...t)}};S=s=g([p(5,h.fN),p(6,c.d)],S);class y{constructor(e){this.desc=e}}function w(e){const t=[],i=new e,{f1:s,menu:n,keybinding:r,...o}=i.desc;if(c.w.getCommand(o.id))throw new Error(`Cannot register two commands with the same id: ${o.id}`);if(t.push(c.w.registerCommand({id:o.id,handler:(e,...t)=>i.run(e,...t),metadata:o.metadata})),Array.isArray(n))for(const a of n)t.push(b.appendMenuItem(a.id,{command:{...o,precondition:null===a.precondition?void 0:o.precondition},...a}));else n&&t.push(b.appendMenuItem(n.id,{command:{...o,precondition:null===n.precondition?void 0:o.precondition},...n}));if(s&&(t.push(b.appendMenuItem(_.CommandPalette,{command:o,when:o.precondition})),t.push(b.addCommand(o))),Array.isArray(r))for(const a of r)t.push(u.f.registerKeybindingRule({...a,id:o.id,when:o.precondition?h.M$.and(o.precondition,a.when):a.when}));else r&&t.push(u.f.registerKeybindingRule({...r,id:o.id,when:o.precondition?h.M$.and(o.precondition,r.when):r.when}));return{dispose(){(0,a.AS)(t)}}}},60858:(e,t,i)=>{"use strict";i.d(t,{$:()=>v,D:()=>w});var s,n,r=i(90766),o=i(41234),a=i(5662),l=i(27195),c=i(50091),h=i(32848),d=i(36921),u=i(9711),g=i(25890),p=i(78209),m=i(98031),f=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){return function(i,s){t(i,s,e)}};let v=class{constructor(e,t,i){this._commandService=e,this._keybindingService=t,this._hiddenStates=new C(i)}createMenu(e,t,i){return new S(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,this._keybindingService,t)}getMenuActions(e,t,i){const s=new S(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,this._keybindingService,t),n=s.getActions(i);return s.dispose(),n}resetHiddenStates(e){this._hiddenStates.reset(e)}};v=f([_(0,c.d),_(1,m.b),_(2,u.CS)],v);let C=class{static{s=this}static{this._key="menu.hiddenCommands"}constructor(e){this._storageService=e,this._disposables=new a.Cm,this._onDidChange=new o.vl,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const t=e.get(s._key,0,"{}");this._data=JSON.parse(t)}catch(t){this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(0,s._key,this._disposables)((()=>{if(!this._ignoreChangeEvent)try{const t=e.get(s._key,0,"{}");this._data=JSON.parse(t)}catch(t){console.log("FAILED to read storage after UPDATE",t)}this._onDidChange.fire()})))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(e,t){return this._hiddenByDefaultCache.get(`${e.id}/${t}`)??!1}setDefaultState(e,t,i){this._hiddenByDefaultCache.set(`${e.id}/${t}`,i)}isHidden(e,t){const i=this._isHiddenByDefault(e,t),s=this._data[e.id]?.includes(t)??!1;return i?!s:s}updateHidden(e,t,i){this._isHiddenByDefault(e,t)&&(i=!i);const s=this._data[e.id];if(i)if(s){s.indexOf(t)<0&&s.push(t)}else this._data[e.id]=[t];else if(s){const i=s.indexOf(t);i>=0&&(0,g.UH)(s,i),0===s.length&&delete this._data[e.id]}this._persist()}reset(e){if(void 0===e)this._data=Object.create(null),this._persist();else{for(const{id:t}of e)this._data[t]&&delete this._data[t];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const e=JSON.stringify(this._data);this._storageService.store(s._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};C=s=f([_(0,u.CS)],C);class b{constructor(e,t){this._id=e,this._collectContextKeysForSubmenus=t,this._menuGroups=[],this._allMenuIds=new Set,this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get allMenuIds(){return this._allMenuIds}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._allMenuIds.clear(),this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const e=this._sort(l.ZG.getMenuItems(this._id));let t;for(const i of e){const e=i.group||"";t&&t[0]===e||(t=[e,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeysAndSubmenuIds(i)}this._allMenuIds.add(this._id)}_sort(e){return e}_collectContextKeysAndSubmenuIds(e){if(b._fillInKbExprKeys(e.when,this._structureContextKeys),(0,l.is)(e)){if(e.command.precondition&&b._fillInKbExprKeys(e.command.precondition,this._preconditionContextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;b._fillInKbExprKeys(t,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&(l.ZG.getMenuItems(e.submenu).forEach(this._collectContextKeysAndSubmenuIds,this),this._allMenuIds.add(e.submenu))}static _fillInKbExprKeys(e,t){if(e)for(const i of e.keys())t.add(i)}}let E=n=class extends b{constructor(e,t,i,s,n,r){super(e,i),this._hiddenStates=t,this._commandService=s,this._keybindingService=n,this._contextKeyService=r,this.refresh()}createActionGroups(e){const t=[];for(const i of this._menuGroups){const[s,r]=i;let o;for(const t of r)if(this._contextKeyService.contextMatchesRules(t.when)){const i=(0,l.is)(t);i&&this._hiddenStates.setDefaultState(this._id,t.command.id,!!t.isHiddenByDefault);const s=y(this._id,i?t.command:t,this._hiddenStates);if(i){const i=w(this._commandService,this._keybindingService,t.command.id,t.when);(o??=[]).push(new l.Xe(t.command,t.alt,e,s,i,this._contextKeyService,this._commandService))}else{const i=new n(t.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._keybindingService,this._contextKeyService).createActionGroups(e),r=d.wv.join(...i.map((e=>e[1])));r.length>0&&(o??=[]).push(new l.nI(t,s,r))}}o&&o.length>0&&t.push([s,o])}return t}_sort(e){return e.sort(n._compareMenuItems)}static _compareMenuItems(e,t){const i=e.group,s=t.group;if(i!==s){if(!i)return 1;if(!s)return-1;if("navigation"===i)return-1;if("navigation"===s)return 1;const e=i.localeCompare(s);if(0!==e)return e}const r=e.order||0,o=t.order||0;return r<o?-1:r>o?1:n._compareTitles((0,l.is)(e)?e.command.title:e.title,(0,l.is)(t)?t.command.title:t.title)}static _compareTitles(e,t){const i="string"===typeof e?e:e.original,s="string"===typeof t?t:t.original;return i.localeCompare(s)}};E=n=f([_(3,c.d),_(4,m.b),_(5,h.fN)],E);let S=class{constructor(e,t,i,s,n,c){this._disposables=new a.Cm,this._menuInfo=new E(e,t,i.emitEventsForSubmenuChanges,s,n,c);const h=new r.uC((()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})}),i.eventDebounceDelay);this._disposables.add(h),this._disposables.add(l.ZG.onDidChangeMenu((e=>{for(const t of this._menuInfo.allMenuIds)if(e.has(t)){h.schedule();break}})));const d=this._disposables.add(new a.Cm);this._onDidChange=new o.uI({onWillAddFirstListener:()=>{d.add(c.onDidChangeContext((e=>{const t=e.affectsSome(this._menuInfo.structureContextKeys),i=e.affectsSome(this._menuInfo.preconditionContextKeys),s=e.affectsSome(this._menuInfo.toggledContextKeys);(t||i||s)&&this._onDidChange.fire({menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:s})}))),d.add(t.onDidChange((e=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})})))},onDidRemoveLastListener:d.clear.bind(d),delay:i.eventDebounceDelay,merge:e=>{let t=!1,i=!1,s=!1;for(const n of e)if(t=t||n.isStructuralChange,i=i||n.isEnablementChange,s=s||n.isToggleChange,t&&i&&s)break;return{menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:s}}}),this.onDidChange=this._onDidChange.event}getActions(e){return this._menuInfo.createActionGroups(e)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};function y(e,t,i){const s=(0,l.i1)(t)?t.submenu.id:t.id,n="string"===typeof t.title?t.title:t.title.value,r=(0,d.ih)({id:`hide/${e.id}/${s}`,label:(0,p.kg)("hide.label","Hide '{0}'",n),run(){i.updateHidden(e,s,!0)}}),o=(0,d.ih)({id:`toggle/${e.id}/${s}`,label:n,get checked(){return!i.isHidden(e,s)},run(){i.updateHidden(e,s,!!this.checked)}});return{hide:r,toggle:o,get isHidden(){return!o.checked}}}function w(e,t,i,s=void 0,n=!0){return(0,d.ih)({id:`configureKeybinding/${i}`,label:(0,p.kg)("configure keybinding","Configure Keybinding"),enabled:n,run(){const n=!!!t.lookupKeybinding(i)&&s?s.serialize():void 0;e.executeCommand("workbench.action.openGlobalKeybindings",`@command:${i}`+(n?` +when:${n}`:""))}})}S=f([_(3,c.d),_(4,m.b),_(5,h.fN)],S)},54770:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});const s=(0,i(63591).u1)("clipboardService")},50091:(e,t,i)=>{"use strict";i.d(t,{d:()=>l,w:()=>c});var s=i(41234),n=i(42522),r=i(5662),o=i(58925),a=i(631);const l=(0,i(63591).u1)("commandService"),c=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new s.vl,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){const t=[];for(const s of e.metadata.args)t.push(s.constraint);const i=e.handler;e.handler=function(e,...s){return(0,a.jx)(s,t),i(e,...s)}}const{id:i}=e;let s=this._commands.get(i);s||(s=new o.w,this._commands.set(i,s));const n=s.unshift(e),l=(0,r.s)((()=>{n();const e=this._commands.get(i);e?.isEmpty()&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),l}registerCommandAlias(e,t){return c.registerCommand(e,((e,...i)=>e.get(l).executeCommand(t,...i)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return n.f.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}};c.registerCommand("noop",(()=>{}))},84001:(e,t,i)=>{"use strict";i.d(t,{Mo:()=>c,ad:()=>n,gD:()=>l,iB:()=>o,kW:()=>r,pG:()=>s});const s=(0,i(63591).u1)("configurationService");function n(e,t){const i=Object.create(null);for(const s in e)r(i,s,e[s],t);return i}function r(e,t,i,s){const n=t.split("."),r=n.pop();let o=e;for(let l=0;l<n.length;l++){const e=n[l];let i=o[e];switch(typeof i){case"undefined":i=o[e]=Object.create(null);break;case"object":if(null===i)return void s(`Ignoring ${t} as ${n.slice(0,l+1).join(".")} is null`);break;default:return void s(`Ignoring ${t} as ${n.slice(0,l+1).join(".")} is ${JSON.stringify(i)}`)}o=i}if("object"===typeof o&&null!==o)try{o[r]=i}catch(a){s(`Ignoring ${t} as ${n.join(".")} is ${JSON.stringify(o)}`)}else s(`Ignoring ${t} as ${n.join(".")} is ${JSON.stringify(o)}`)}function o(e,t){a(e,t.split("."))}function a(e,t){const i=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(i)){const s=e[i];"object"!==typeof s||Array.isArray(s)||(a(s,t),0===Object.keys(s).length&&delete e[i])}}else delete e[i]}function l(e,t,i){const s=function(e,t){let i=e;for(const s of t){if("object"!==typeof i||null===i)return;i=i[s]}return i}(e,t.split("."));return"undefined"===typeof s?i:s}function c(e){return e.replace(/[\[\]]/g,"")}},1646:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>h,Gv:()=>y,rC:()=>S});var s=i(25890),n=i(41234),r=i(631),o=i(78209),a=i(84001),l=i(78748),c=i(46359);const h={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",v=c.O.as(l.F.JSONContribution);const C="\\[([^\\]]+)\\]",b=new RegExp(C,"g"),E=`^(${C})+$`,S=new RegExp(E);function y(e){const t=[];if(S.test(e)){let i=b.exec(e);for(;i?.length;){const s=i[1].trim();s&&t.push(s),i=b.exec(e)}}return(0,s.dM)(t)}const w=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new n.vl,this._onDidUpdateConfiguration=new n.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:o.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},v.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),v.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const i=[];for(const{overrides:s,source:n}of e)for(const e in s){t.add(e);const r=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),o=s[e];if(r.configurationDefaultOverrides.push({value:o,source:n}),S.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,o,n,r.configurationDefaultOverrideValue);if(!t)continue;r.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,n),i.push(...y(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,o,n,r.configurationDefaultOverrideValue);if(!t)continue;r.configurationDefaultOverrideValue=t;const i=this.configurationProperties[e];i&&(this.updatePropertyDefaultValue(e,i),this.updateSchema(e,i))}}this.doRegisterOverrideIdentifiers(i)}updateDefaultOverrideProperty(e,t,i){const s={type:"object",default:t.value,description:o.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,a.Mo)(e)),$ref:_,defaultDefaultValue:t.value,source:i,defaultValueSource:i};this.configurationProperties[e]=s,this.defaultLanguageConfigurationOverridesNode.properties[e]=s}mergeDefaultConfigurationsForOverrideIdentifier(e,t,i,s){const n=s?.value||{},o=s?.source??new Map;if(o instanceof Map){for(const e of Object.keys(t)){const s=t[e];if(r.Gv(s)&&(r.b0(n[e])||r.Gv(n[e]))){if(n[e]={...n[e]??{},...s},i)for(const t in s)o.set(`${e}.${t}`,i)}else n[e]=s,i?o.set(e,i):o.delete(e)}return{value:n,source:o}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,i,s){const n=this.configurationProperties[e],o=s?.value??n?.defaultDefaultValue;let a=i;if(r.Gv(t)&&(void 0!==n&&"object"===n.type||void 0===n&&(r.b0(o)||r.Gv(o)))){if(a=s?.source??new Map,!(a instanceof Map))return void console.error("defaultValueSource is not a Map");for(const s in t)i&&a.set(`${e}.${s}`,i);t={...r.Gv(o)?o:{},...t}}return{value:t,source:a}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,i,s,n=3,o){n=r.z(e.scope)?n:e.scope;const a=e.properties;if(a)for(const c in a){const e=a[c];t&&L(c,e)?delete a[c]:(e.source=i,e.defaultDefaultValue=a[c].default,this.updatePropertyDefaultValue(c,e),S.test(c)?e.scope=void 0:(e.scope=r.z(e.scope)?n:e.scope,e.restricted=r.z(e.restricted)?!!s?.includes(c):e.restricted),!a[c].hasOwnProperty("included")||a[c].included?(this.configurationProperties[c]=a[c],a[c].policy?.name&&this.policyConfigurations.set(a[c].policy.name,c),!a[c].deprecationMessage&&a[c].markdownDeprecationMessage&&(a[c].deprecationMessage=a[c].markdownDeprecationMessage),o.add(c)):(this.excludedConfigurationProperties[c]=a[c],delete a[c]))}const l=e.allOf;if(l)for(const r of l)this.validateAndRegisterProperties(r,t,i,s,n,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const i=e.properties;if(i)for(const t in i)this.updateSchema(t,i[t]);const s=e.allOf;s?.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:p.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:f.properties[e]=t;break;case 5:f.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,i),d.properties[t]=i,u.properties[t]=i,g.properties[t]=i,p.properties[t]=i,m.properties[t]=i,f.properties[t]=i}}registerOverridePropertyPatternKey(){const e={type:"object",description:o.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:o.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};d.patternProperties[E]=e,u.patternProperties[E]=e,g.patternProperties[E]=e,p.patternProperties[E]=e,m.patternProperties[E]=e,f.patternProperties[E]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let s,n;!i||t.disallowConfigurationDefault&&i.source||(s=i.value,n=i.source),r.b0(s)&&(s=t.defaultDefaultValue,n=void 0),r.b0(s)&&(s=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=s,t.defaultValueSource=n}};function L(e,t){return e.trim()?S.test(e)?o.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==w.getConfigurationProperties()[e]?o.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==w.getPolicyConfigurations().get(t.policy?.name)?o.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,w.getPolicyConfigurations().get(t.policy?.name)):null:o.kg("config.property.empty","Cannot register an empty property")}c.O.add(h.Configuration,w)},32848:(e,t,i)=>{"use strict";i.d(t,{f1:()=>A,M$:()=>w,fN:()=>K,N1:()=>j,jQ:()=>L,M0:()=>$});var s=i(98067),n=i(91508),r=i(64383),o=i(78209);function a(...e){switch(e.length){case 1:return(0,o.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,o.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,o.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const l=(0,o.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),c=(0,o.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class h{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,r.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(a("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(a("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(a("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),s={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(s)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=h._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(l):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(c);const s=this._input.charCodeAt(e);if(t)t=!1;else{if(47===s&&!i){e++;break}91===s?i=!0:92===s?t=!0:93===s&&(i=!1)}e++}for(;e<this._input.length&&h._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const s=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:s,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var d=i(63591);const u=new Map;u.set("false",!1),u.set("true",!0),u.set("isMac",s.zx),u.set("isLinux",s.j9),u.set("isWindows",s.uF),u.set("isWeb",s.HZ),u.set("isMacNative",s.zx&&!s.HZ),u.set("isEdge",s.UP),u.set("isFirefox",s.gm),u.set("isChrome",s.H8),u.set("isSafari",s.nr);const g=Object.prototype.hasOwnProperty,p={regexParsingWithErrorRecovery:!0},m=(0,o.kg)("contextkey.parser.error.emptyString","Empty context key expression"),f=(0,o.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,o.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,o.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),C=(0,o.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),b=(0,o.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),E=(0,o.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),S=(0,o.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class y{static{this._parseError=new Error}constructor(e=p){this._config=e,this._scanner=new h,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?b:void 0;throw this._parsingErrors.push({message:C,offset:e.offset,lexeme:h.getLexeme(e),additionalInfo:t}),y._parseError}return e}catch(t){if(t!==y._parseError)throw t;return}}else this._parsingErrors.push({message:m,offset:0,lexeme:"",additionalInfo:f})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:w.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:w.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),T.INSTANCE;case 12:return this._advance(),x.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),e?.negate()}case 17:return this._advance(),D.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),w.true();case 12:return this._advance(),w.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const s=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const i=e.lexeme,n=i.lastIndexOf("/"),r=n===i.length-1?void 0:this._removeFlagsGY(i.substring(n+1));let o;try{o=new RegExp(i.substring(1,n),r)}catch(t){throw this._errExpectedButGot("REGEX",e)}return B.create(s,o)}switch(e.type){case 10:case 19:{const i=[e.lexeme];this._advance();let n=this._peek(),r=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?r++:41===e.lexeme.charCodeAt(t)&&r--;for(;!this._isAtEnd()&&15!==n.type&&16!==n.type;){switch(n.type){case 0:r++;break;case 1:r--;break;case 10:case 18:for(let t=0;t<n.lexeme.length;t++)40===n.lexeme.charCodeAt(t)?r++:41===e.lexeme.charCodeAt(t)&&r--}if(r<0)break;i.push(h.getLexeme(n)),this._advance(),n=this._peek()}const o=i.join(""),a=o.lastIndexOf("/"),l=a===o.length-1?void 0:this._removeFlagsGY(o.substring(a+1));let c;try{c=new RegExp(o.substring(1,a),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return w.regex(s,c)}case 18:{const t=e.lexeme;this._advance();let r=null;if(!(0,n.AV)(t)){const s=t.indexOf("/"),n=t.lastIndexOf("/");if(s!==n&&s>=0){const o=t.slice(s+1,n),a="i"===t[n+1]?"i":"";try{r=new RegExp(o,a)}catch(i){throw this._errExpectedButGot("REGEX",e)}}}if(null===r)throw this._errExpectedButGot("REGEX",e);return B.create(s,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);const e=this._value();return w.notIn(s,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return w.equals(s,e);switch(e){case"true":return w.has(s);case"false":return w.not(s);default:return w.equals(s,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return w.notEquals(s,e);switch(e){case"true":return w.not(s);case"false":return w.has(s);default:return w.notEquals(s,e)}}case 5:return this._advance(),U.create(s,this._value());case 6:return this._advance(),H.create(s,this._value());case 7:return this._advance(),P.create(s,this._value());case 8:return this._advance(),F.create(s,this._value());case 13:return this._advance(),w.in(s,this._value());default:return w.has(s)}}case 20:throw this._parsingErrors.push({message:E,offset:e.offset,lexeme:"",additionalInfo:S}),y._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){const s=(0,o.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,h.getLexeme(t)),n=t.offset,r=h.getLexeme(t);return this._parsingErrors.push({message:s,offset:n,lexeme:r,additionalInfo:i}),y._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class w{static false(){return T.INSTANCE}static true(){return x.INSTANCE}static has(e){return k.create(e)}static equals(e,t){return A.create(e,t)}static notEquals(e,t){return O.create(e,t)}static regex(e,t){return B.create(e,t)}static in(e,t){return N.create(e,t)}static notIn(e,t){return I.create(e,t)}static not(e){return D.create(e)}static and(...e){return z.create(e,null,!0)}static or(...e){return G.create(e,null,!0)}static{this._parser=new y({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function L(e,t){const i=e?e.substituteConstants():void 0,s=t?t.substituteConstants():void 0;return!i&&!s||!(!i||!s)&&i.equals(s)}function R(e,t){return e.cmp(t)}class T{static{this.INSTANCE=new T}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return x.INSTANCE}}class x{static{this.INSTANCE=new x}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return T.INSTANCE}}class k{static create(e,t=null){const i=u.get(e);return"boolean"===typeof i?i?x.INSTANCE:T.INSTANCE:new k(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:Y(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?x.INSTANCE:T.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this)),this.negated}}class A{static create(e,t,i=null){if("boolean"===typeof t)return t?k.create(e,i):D.create(e,i);const s=u.get(e);if("boolean"===typeof s){return t===(s?"true":"false")?x.INSTANCE:T.INSTANCE}return new A(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?x.INSTANCE:T.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class N{static create(e,t){return new N(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"===typeof i&&"object"===typeof t&&null!==t&&g.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=I.create(this.key,this.valueKey)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=N.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class O{static create(e,t,i=null){if("boolean"===typeof t)return t?D.create(e,i):k.create(e,i);const s=u.get(e);if("boolean"===typeof s){return t===(s?"true":"false")?T.INSTANCE:x.INSTANCE}return new O(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=u.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?T.INSTANCE:x.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class D{static create(e,t=null){const i=u.get(e);return"boolean"===typeof i?i?T.INSTANCE:x.INSTANCE:new D(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:Y(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"===typeof e?e?T.INSTANCE:x.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this)),this.negated}}function M(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):T.INSTANCE}class P{static create(e,t,i=null){return M(t,(t=>new P(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,i=null){return M(t,(t=>new F(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=U.create(this.key,this.value,this)),this.negated}}class U{static create(e,t,i=null){return M(t,(t=>new U(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class H{static create(e,t,i=null){return M(t,(t=>new H(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class B{static create(e,t){return new B(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return t<i?-1:t>i?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this)),this.negated}}class W{static create(e){return new W(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function V(e){let t=null;for(let i=0,s=e.length;i<s;i++){const s=e[i].substituteConstants();if(e[i]!==s&&null===t){t=[];for(let s=0;s<i;s++)t[s]=e[s]}null!==t&&(t[i]=s)}return null===t?e:t}class z{static create(e,t,i){return z._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const i=R(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=V(this.expr);return e===this.expr?this:z.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,i){const s=[];let n=!1;for(const r of e)if(r)if(1!==r.type){if(0===r.type)return T.INSTANCE;6!==r.type?s.push(r):s.push(...r.expr)}else n=!0;if(0===s.length&&n)return x.INSTANCE;if(0!==s.length){if(1===s.length)return s[0];s.sort(R);for(let e=1;e<s.length;e++)s[e-1].equals(s[e])&&(s.splice(e,1),e--);if(1===s.length)return s[0];for(;s.length>1;){const e=s[s.length-1];if(9!==e.type)break;s.pop();const t=s.pop(),n=0===s.length,r=G.create(e.expr.map((e=>z.create([e,t],null,i))),null,n);r&&(s.push(r),s.sort(R))}if(1===s.length)return s[0];if(i){for(let e=0;e<s.length;e++)for(let t=e+1;t<s.length;t++)if(s[e].negate().equals(s[t]))return T.INSTANCE;if(1===s.length)return s[0]}return new z(s,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=G.create(e,this,!0)}return this.negated}}class G{static create(e,t,i){return G._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const i=R(this.expr[t],e.expr[t]);if(0!==i)return i}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=V(this.expr);return e===this.expr?this:G.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,i){let s=[],n=!1;if(e){for(let t=0,i=e.length;t<i;t++){const i=e[t];if(i)if(0!==i.type){if(1===i.type)return x.INSTANCE;9!==i.type?s.push(i):s=s.concat(i.expr)}else n=!0}if(0===s.length&&n)return T.INSTANCE;s.sort(R)}if(0!==s.length){if(1===s.length)return s[0];for(let e=1;e<s.length;e++)s[e-1].equals(s[e])&&(s.splice(e,1),e--);if(1===s.length)return s[0];if(i){for(let e=0;e<s.length;e++)for(let t=e+1;t<s.length;t++)if(s[e].negate().equals(s[t]))return x.INSTANCE;if(1===s.length)return s[0]}return new G(s,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),s=[];for(const e of X(t))for(const t of X(i))s.push(z.create([e,t],null,!1));e.unshift(G.create(s,null,!1))}this.negated=G.create(e,this,!0)}return this.negated}}class j extends k{static{this._info=[]}static all(){return j._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"===typeof i?j._info.push({...i,key:e}):!0!==i&&j._info.push({key:e,description:i,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return A.create(this.key,e)}}const K=(0,d.u1)("contextKeyService");function Y(e,t){return e<t?-1:e>t?1:0}function q(e,t,i,s){return e<i?-1:e>i?1:t<s?-1:t>s?1:0}function $(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&Q(e.expr,t.expr);if(9===t.type){for(const i of t.expr)if($(e,i))return!0;return!1}if(6===e.type){if(6===t.type)return Q(t.expr,e.expr);for(const i of e.expr)if($(i,t))return!0;return!1}return e.equals(t)}function Q(e,t){let i=0,s=0;for(;i<e.length&&s<t.length;){const n=e[i].cmp(t[s]);if(n<0)return!1;0===n?(i++,s++):s++}return i===e.length}function X(e){return 9===e.type?e.expr:[e]}},28290:(e,t,i)=>{"use strict";i.d(t,{J7:()=>c,W0:()=>a,aV:()=>l,nd:()=>o});var s=i(98067),n=i(78209),r=i(32848);new r.N1("isMac",s.zx,(0,n.kg)("isMac","Whether the operating system is macOS")),new r.N1("isLinux",s.j9,(0,n.kg)("isLinux","Whether the operating system is Linux"));const o=new r.N1("isWindows",s.uF,(0,n.kg)("isWindows","Whether the operating system is Windows")),a=new r.N1("isWeb",s.HZ,(0,n.kg)("isWeb","Whether the platform is a web browser")),l=(new r.N1("isMacNative",s.zx&&!s.HZ,(0,n.kg)("isMacNative","Whether the operating system is macOS on a non-browser platform")),new r.N1("isIOS",s.un,(0,n.kg)("isIOS","Whether the operating system is iOS")),new r.N1("isMobile",s.Fr,(0,n.kg)("isMobile","Whether the platform is a mobile web browser")),new r.N1("isDevelopment",!1,!0),new r.N1("productQualityType","",(0,n.kg)("productQualityType","Quality type of VS Code")),"inputFocus"),c=new r.N1(l,!1,(0,n.kg)("inputFocus","Whether keyboard focus is inside an input box"))},47508:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r,l:()=>n});var s=i(63591);const n=(0,s.u1)("contextViewService"),r=(0,s.u1)("contextMenuService")},59599:(e,t,i)=>{"use strict";i.d(t,{X:()=>s});const s=(0,i(63591).u1)("dialogService")},61292:(e,t,i)=>{"use strict";i.d(t,{PD:()=>r,sV:()=>n});var s=i(46359);const n={EDITORS:"CodeEditors",FILES:"CodeFiles"};s.O.add("workbench.contributions.dragAndDrop",new class{});class r{static{this.INSTANCE=new r}constructor(){}static getInstance(){return r.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}},97035:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});const s=(0,i(63591).u1)("environmentService")},7291:(e,t,i)=>{"use strict";var s;i.d(t,{p:()=>s}),function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(s||(s={}))},89100:(e,t,i)=>{"use strict";i.d(t,{pG:()=>x,_Q:()=>k,dg:()=>E});var s=i(88443),n=i(8597),r=i(35315),o=i(91581),a=i(17390),l=i(10350),c=i(41234),h=(i(10713),i(78209)),d=i(42904);const u=h.kg("defaultLabel","input"),g=h.kg("label.preserveCaseToggle","Preserve Case");class p extends r.l{constructor(e){super({icon:l.W.preserveCase,title:g+e.appendTitle,isChecked:e.isChecked,hoverDelegate:e.hoverDelegate??(0,d.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class m extends a.x{constructor(e,t,i,s){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new c.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new c.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new c.vl),this._onInput=this._register(new c.vl),this._onKeyUp=this._register(new c.vl),this._onPreserveCaseKeyDown=this._register(new c.vl),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=s.placeholder||"",this.validation=s.validation,this.label=s.label||u;const r=s.appendPreserveCaseLabel||"",a=s.history||[],l=!!s.flexibleHeight,h=!!s.flexibleWidth,d=s.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new o.mJ(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:a,showHistoryHint:s.showHistoryHint,flexibleHeight:l,flexibleWidth:h,flexibleMaxHeight:d,inputBoxStyles:s.inputBoxStyles})),this.preserveCase=this._register(new p({appendTitle:r,isChecked:!1,...s.toggleStyles})),this._register(this.preserveCase.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.preserveCase.onKeyDown((e=>{this._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const g=[this.preserveCase.domNode];this.onkeydown(this.domNode,(e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){const t=g.indexOf(this.domNode.ownerDocument.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%g.length:e.equals(15)&&(i=0===t?g.length-1:t-1),e.equals(9)?(g[t].blur(),this.inputBox.focus()):i>=0&&g[i].focus(),n.fs.stop(e,!0)}}}));const m=document.createElement("div");m.className="controls",m.style.display=this._showOptionButtons?"block":"none",m.appendChild(this.preserveCase.domNode),this.domNode.appendChild(m),e?.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox?.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var f=i(32848),_=i(59261),v=i(5662),C=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},b=function(e,t){return function(i,s){t(i,s,e)}};const E=new f.N1("suggestWidgetVisible",!1,(0,h.kg)("suggestWidgetVisible","Whether suggestion are visible")),S="historyNavigationWidgetFocus",y="historyNavigationForwardsEnabled",w="historyNavigationBackwardsEnabled";let L;const R=[];function T(e,t){if(R.includes(t))throw new Error("Cannot register the same widget multiple times");R.push(t);const i=new v.Cm,s=new f.N1(S,!1).bindTo(e),r=new f.N1(y,!0).bindTo(e),o=new f.N1(w,!0).bindTo(e),a=()=>{s.set(!0),L=t},l=()=>{s.set(!1),L===t&&(L=void 0)};return(0,n.X7)(t.element)&&a(),i.add(t.onDidFocus((()=>a()))),i.add(t.onDidBlur((()=>l()))),i.add((0,v.s)((()=>{R.splice(R.indexOf(t),1),l()}))),{historyNavigationForwardsEnablement:r,historyNavigationBackwardsEnablement:o,dispose(){i.dispose()}}}let x=class extends s.c{constructor(e,t,i,s){super(e,t,i);const n=this._register(s.createScoped(this.inputBox.element));this._register(T(n,this.inputBox))}};x=C([b(3,f.fN)],x);let k=class extends m{constructor(e,t,i,s,n=!1){super(e,t,n,i);const r=this._register(s.createScoped(this.inputBox.element));this._register(T(r,this.inputBox))}};k=C([b(3,f.fN)],k),_.f.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:f.M$.and(f.M$.has(S),f.M$.equals(w,!0),f.M$.not("isComposing"),E.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{L?.showPreviousValue()}}),_.f.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:f.M$.and(f.M$.has(S),f.M$.equals(y,!0),f.M$.not("isComposing"),E.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{L?.showNextValue()}})},67220:(e,t,i)=>{"use strict";i.d(t,{TN:()=>c,fO:()=>h});var s=i(63591),n=i(5662),r=i(84001),o=i(8597),a=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},l=function(e,t){return function(i,s){t(i,s,e)}};const c=(0,s.u1)("hoverService");let h=class extends n.jG{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(e,t,i={},s,r){super(),this.placement=e,this.instantHover=t,this.overrideOptions=i,this.configurationService=s,this.hoverService=r,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new n.Cm),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))})))}showHover(e,t){const i="function"===typeof this.overrideOptions?this.overrideOptions(e,t):this.overrideOptions;this.hoverDisposables.clear();const s=(0,o.sb)(e.target)?[e.target]:e.target.targetElements;for(const r of s)this.hoverDisposables.add((0,o.b2)(r,"keydown",(e=>{e.equals(9)&&this.hoverService.hideHover()})));const n=(0,o.sb)(e.content)?void 0:e.content.toString();return this.hoverService.showHover({...e,...i,persistence:{hideOnKeyDown:!0,...i.persistence},id:n,appearance:{...e.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...i.appearance}},t)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime<this.timeLimit}onDidHideHover(){this.hoverDisposables.clear(),this.instantHover&&(this.lastHoverHideTime=Date.now())}};h=a([l(3,r.pG),l(4,c)],h)},84040:(e,t,i)=>{"use strict";i.d(t,{d:()=>s});class s{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}},14718:(e,t,i)=>{"use strict";i.d(t,{N:()=>o,v:()=>r});var s=i(84040);const n=[];function r(e,t,i){t instanceof s.d||(t=new s.d(t,[],Boolean(i))),n.push([e,t])}function o(){return n}},63591:(e,t,i)=>{"use strict";var s;i.d(t,{_$:()=>s,_Y:()=>n,u1:()=>r}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(s||(s={}));const n=r("instantiationService");function r(e){if(s.serviceIds.has(e))return s.serviceIds.get(e);const t=function(e,i,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,i){t[s.DI_TARGET]===t?t[s.DI_DEPENDENCIES].push({id:e,index:i}):(t[s.DI_DEPENDENCIES]=[{id:e,index:i}],t[s.DI_TARGET]=t)}(t,e,n)};return t.toString=()=>e,s.serviceIds.set(e,t),t}},58345:(e,t,i)=>{"use strict";i.d(t,{a:()=>s});class s{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}},78748:(e,t,i)=>{"use strict";i.d(t,{F:()=>r});var s=i(41234),n=i(46359);const r={JSONContribution:"base.contributions.json"};const o=new class{constructor(){this._onDidChangeSchema=new s.vl,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e,i.length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};n.O.add(r.JSONContribution,o)},98031:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});const s=(0,i(63591).u1)("keybindingService")},59261:(e,t,i)=>{"use strict";i.d(t,{f:()=>h});var s=i(42539),n=i(98067),r=i(50091),o=i(46359),a=i(5662),l=i(58925);class c{constructor(){this._coreKeybindings=new l.w,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===n.OS){if(e&&e.win)return e.win}else if(2===n.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=c.bindToCurrentPlatform(e),i=new a.Cm;if(t&&t.primary){const r=(0,s.Zv)(t.primary,n.OS);r&&i.add(this._registerDefaultKeybinding(r,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let r=0,o=t.secondary.length;r<o;r++){const o=t.secondary[r],a=(0,s.Zv)(o,n.OS);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-r-1,e.when))}return i}registerCommandAndKeybindingRule(e){return(0,a.qE)(this.registerKeybindingRule(e),r.w.registerCommand(e))}_registerDefaultKeybinding(e,t,i,s,n,r){const o=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:r,weight1:s,weight2:n,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,a.s)((()=>{o(),this._cachedMergedKeybindings=null}))}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(d)),this._cachedMergedKeybindings.slice(0)}}const h=new c;function d(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.command<t.command)return-1;if(e.command>t.command)return 1}return e.weight2-t.weight2}o.O.add("platform.keybindingsRegistry",h)},67841:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("labelService")},36584:(e,t,i)=>{"use strict";i.d(t,{PE:()=>Ce,aG:()=>be,er:()=>ft,YD:()=>Le,zL:()=>gt,Nf:()=>Ne,cH:()=>Oe});var s=i(8597),n=i(25890),r=i(18447),o=i(41234),a=i(5662),l=(i(48215),i(93090));class c{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:a.jG.None}}renderElement(e,t,i,s){if(i.disposable?.dispose(),!i.data)return;const n=this.modelProvider();if(n.isResolved(e))return this.renderer.renderElement(n.get(e),e,i.data,s);const o=new r.Qi,a=n.resolve(e,o.token);i.disposable={dispose:()=>o.cancel()},this.renderer.renderPlaceholder(e,i.data),a.then((t=>this.renderer.renderElement(t,e,i.data,s)))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class h{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}class d{constructor(e,t,i,s,n={}){const r=()=>this.model,o=s.map((e=>new c(e,r)));this.list=new l.B8(e,t,i,o,function(e,t){return{...t,accessibilityProvider:t.accessibilityProvider&&new h(e,t.accessibilityProvider)}}(r,n))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get widget(){return this.list}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return o.Jh.map(this.list.onMouseDblClick,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onPointer(){return o.Jh.map(this.list.onPointer,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onDidChangeSelection(){return o.Jh.map(this.list.onDidChangeSelection,(({elements:e,indexes:t,browserEvent:i})=>({elements:e.map((e=>this._model.get(e))),indexes:t,browserEvent:i})))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,(0,n.y1)(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map((e=>this.model.get(e)))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}var u=i(48196),g=i(42904),p=i(35151);class m{static{this.TemplateId="row"}constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=m.TemplateId,this.renderedTemplates=new Set;const s=new Map(t.map((e=>[e.templateId,e])));this.renderers=[];for(const n of e){const e=s.get(n.templateId);if(!e)throw new Error(`Table cell renderer for template id ${n.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=(0,s.BC)(e,(0,s.$)(".monaco-table-tr")),i=[],n=[];for(let o=0;o<this.columns.length;o++){const e=this.renderers[o],r=(0,s.BC)(t,(0,s.$)(".monaco-table-td",{"data-col-index":o}));r.style.width=`${this.getColumnSize(o)}px`,i.push(r),n.push(e.renderTemplate(r))}const r={container:e,cellContainers:i,cellTemplateData:n};return this.renderedTemplates.add(r),r}renderElement(e,t,i,s){for(let n=0;n<this.columns.length;n++){const r=this.columns[n].project(e);this.renderers[n].renderElement(r,t,i.cellTemplateData[n],s)}}disposeElement(e,t,i,s){for(let n=0;n<this.columns.length;n++){const r=this.renderers[n];if(r.disposeElement){const o=this.columns[n].project(e);r.disposeElement(o,t,i.cellTemplateData[n],s)}}}disposeTemplate(e){for(let t=0;t<this.columns.length;t++){this.renderers[t].disposeTemplate(e.cellTemplateData[t])}(0,s.w_)(e.container),this.renderedTemplates.delete(e)}layoutColumn(e,t){for(const{cellContainers:i}of this.renderedTemplates)i[e].style.width=`${t}px`}}class f extends a.jG{get minimumSize(){return this.column.minimumWidth??120}get maximumSize(){return this.column.maximumWidth??Number.POSITIVE_INFINITY}get onDidChange(){return this.column.onDidChangeWidthConstraints??o.Jh.None}constructor(e,t){super(),this.column=e,this.index=t,this._onDidLayout=new o.vl,this.onDidLayout=this._onDidLayout.event,this.element=(0,s.$)(".monaco-table-th",{"data-col-index":t},e.label),e.tooltip&&this._register((0,u.i)().setupManagedHover((0,g.nZ)("mouse"),this.element,e.tooltip))}layout(e){this._onDidLayout.fire([this.index,e])}}class _{static{this.InstanceCount=0}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onDidScroll(){return this.list.onDidScroll}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}get scrollHeight(){return this.list.scrollHeight}get renderHeight(){return this.list.renderHeight}get onDidDispose(){return this.list.onDidDispose}constructor(e,t,i,n,r,c){this.virtualDelegate=i,this.columns=n,this.domId="table_id_"+ ++_.InstanceCount,this.disposables=new a.Cm,this.cachedWidth=0,this.cachedHeight=0,this.domNode=(0,s.BC)(t,(0,s.$)(`.monaco-table.${this.domId}`));const h=n.map(((e,t)=>this.disposables.add(new f(e,t)))),d={size:h.reduce(((e,t)=>e+t.column.weight),0),views:h.map((e=>({size:e.column.weight,view:e})))};this.splitview=this.disposables.add(new p.U(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:d})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const u=new m(n,r,(e=>this.splitview.getViewSize(e)));var g;this.list=this.disposables.add(new l.B8(e,this.domNode,(g=i,{getHeight:e=>g.getHeight(e),getTemplateId:()=>m.TemplateId}),[u],c)),o.Jh.any(...h.map((e=>e.onDidLayout)))((([e,t])=>u.layoutColumn(e,t)),null,this.disposables),this.splitview.onDidSashReset((e=>{const t=n.reduce(((e,t)=>e+t.weight),0),i=n[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i)}),null,this.disposables),this.styleElement=(0,s.li)(this.domNode),this.style(l.bG)}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}var v=i(19466),C=i(66700),b=i(37472),E=i(84565),S=i(42522);class y{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new b.G6(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e,t=S.f.empty(),i={}){const s=this.getElementLocation(e);this._setChildren(s,this.preserveCollapseState(t),i)}_setChildren(e,t=S.f.empty(),i){const s=new Set,n=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:e=>{if(null===e.element)return;const t=e;if(s.add(t.element),this.nodes.set(t.element,t),this.identityProvider){const e=this.identityProvider.getId(t.element).toString();n.add(e),this.nodesByIdentity.set(e,t)}i.onDidCreateNode?.(t)},onDidDeleteNode:e=>{if(null===e.element)return;const t=e;if(s.has(t.element)||this.nodes.delete(t.element),this.identityProvider){const e=this.identityProvider.getId(t.element).toString();n.has(e)||this.nodesByIdentity.delete(e)}i.onDidDeleteNode?.(t)}})}preserveCollapseState(e=S.f.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),S.f.map(e,(e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t){let t;return t="undefined"===typeof e.collapsed?void 0:e.collapsed===E.Yo.Collapsed||e.collapsed===E.Yo.PreserveOrCollapsed||e.collapsed!==E.Yo.Expanded&&e.collapsed!==E.Yo.PreserveOrExpanded&&Boolean(e.collapsed),{...e,children:this.preserveCollapseState(e.children),collapsed:t}}const i="boolean"===typeof e.collapsible?e.collapsible:t.collapsible;let s;return s="undefined"===typeof e.collapsed||e.collapsed===E.Yo.PreserveOrCollapsed||e.collapsed===E.Yo.PreserveOrExpanded?t.collapsed:e.collapsed===E.Yo.Collapsed||e.collapsed!==E.Yo.Expanded&&Boolean(e.collapsed),{...e,collapsible:i,collapsed:s,children:this.preserveCollapseState(e.children)}}))}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const s=this.getElementLocation(e);return this.model.setCollapsed(s,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new E.jh(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new E.jh(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new E.jh(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),s=this.model.getParentNodeLocation(i);return this.model.getNode(s).element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new E.jh(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function w(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:S.f.map(S.f.from(e.children),w),collapsible:e.collapsible,collapsed:e.collapsed}}function L(e){const t=[e.element],i=e.incompressible||!1;let s,n;for(;[n,s]=S.f.consume(S.f.from(e.children),2),1===n.length&&!n[0].incompressible;)e=n[0],t.push(e.element);return{element:{elements:t,incompressible:i},children:S.f.map(S.f.concat(n,s),L),collapsible:e.collapsible,collapsed:e.collapsed}}function R(e,t=0){let i;return i=t<e.element.elements.length-1?[R(e,t+1)]:S.f.map(S.f.from(e.children),(e=>R(e,0))),0===t&&e.element.incompressible?{element:e.element.elements[t],children:i,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:i,collapsible:e.collapsible,collapsed:e.collapsed}}function T(e){return R(e,0)}function x(e,t,i){return e.element===t?{...e,children:i}:{...e,children:S.f.map(S.f.from(e.children),(e=>x(e,t,i)))}}class k{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new y(e,t,i),this.enabled="undefined"===typeof i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}setChildren(e,t=S.f.empty(),i){const s=i.diffIdentityProvider&&(r=i.diffIdentityProvider,{getId:e=>e.elements.map((e=>r.getId(e).toString())).join("\0")});var r;if(null===e){const e=S.f.map(t,this.enabled?L:w);return void this._setChildren(null,e,{diffIdentityProvider:s,diffDepth:1/0})}const o=this.nodes.get(e);if(!o)throw new E.jh(this.user,"Unknown compressed tree node");const a=this.model.getNode(o),l=this.model.getParentNodeLocation(o),c=this.model.getNode(l),h=x(T(a),e,t),d=(this.enabled?L:w)(h),u=i.diffIdentityProvider?(e,t)=>i.diffIdentityProvider.getId(e)===i.diffIdentityProvider.getId(t):void 0;if((0,n.aI)(d.element.elements,a.element.elements,u))return void this._setChildren(o,d.children||S.f.empty(),{diffIdentityProvider:s,diffDepth:1});const g=c.children.map((e=>e===a?d:e));this._setChildren(c.element,g,{diffIdentityProvider:s,diffDepth:a.depth-c.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode().children,i=S.f.map(t,T),s=S.f.map(i,e?L:w);this._setChildren(null,s,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const s=new Set;this.model.setChildren(e,t,{...i,onDidCreateNode:e=>{for(const t of e.element.elements)s.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(const t of e.element.elements)s.has(t)||this.nodes.delete(t)}})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if("undefined"===typeof e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const s=this.getCompressedNode(e);return this.model.setCollapsed(s,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new E.jh(this.user,`Tree element not found: ${e}`);return t}}const A=e=>e[e.length-1];class N{get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map((e=>new N(this.unwrapper,e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e,t){this.unwrapper=e,this.node=t}}class I{get onDidSplice(){return o.Jh.map(this.model.onDidSplice,(({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map((e=>this.nodeMapper.map(e))),deletedNodes:t.map((e=>this.nodeMapper.map(e)))})))}get onDidChangeCollapseState(){return o.Jh.map(this.model.onDidChangeCollapseState,(({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t})))}get onDidChangeRenderNodeCount(){return o.Jh.map(this.model.onDidChangeRenderNodeCount,(e=>this.nodeMapper.map(e)))}constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||A;const s=e=>this.elementMapper(e.elements);this.nodeMapper=new E.y2((e=>new N(s,e))),this.model=new k(e,function(e,t){return{splice(i,s,n){t.splice(i,s,n.map((t=>e.map(t))))},updateElementHeight(e,i){t.updateElementHeight(e,i)}}}(this.nodeMapper,t),function(e,t){return{...t,identityProvider:t.identityProvider&&{getId:i=>t.identityProvider.getId(e(i))},sorter:t.sorter&&{compare:(e,i)=>t.sorter.compare(e.elements[0],i.elements[0])},filter:t.filter&&{filter:(i,s)=>t.filter.filter(e(i),s)}}}(s,i))}setChildren(e,t=S.f.empty(),i={}){this.model.setChildren(e,t,i)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return null===t||"undefined"===typeof t?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var O=i(58694),D=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class M extends v.DO{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,s,n={}){super(e,t,i,s,n),this.user=e}setChildren(e,t=S.f.empty(),i){this.model.setChildren(e,t,i)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new y(e,t,i)}}class P{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t,i){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=t,this.renderer=i,this.templateId=i.templateId,i.onDidChangeTwistieState&&(this.onDidChangeTwistieState=i.onDidChangeTwistieState)}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,s){let n=this.stickyScrollDelegate.getCompressedNode(e);n||(n=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),1===n.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,s)):(i.compressedTreeNode=n,this.renderer.renderCompressedElements(n,t,i.data,s))}disposeElement(e,t,i,s){i.compressedTreeNode?this.renderer.disposeCompressedElements?.(i.compressedTreeNode,t,i.data,s):this.renderer.disposeElement?.(e,t,i.data,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}D([O.B],P.prototype,"compressedTreeNodeProvider",null);class F{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map}getCompressedNode(e){return this.compressedStickyNodes.get(e)}constrainStickyScrollNodes(e,t,i){if(this.compressedStickyNodes.clear(),0===e.length)return[];for(let s=0;s<e.length;s++){const n=e[s],r=n.position+n.height;if(s+1<e.length&&r+e[s+1].height>i||s>=t-1&&t<e.length){const t=e.slice(0,s),i=e.slice(s);return[...t,this.compressStickyNodes(i)]}}return e}compressStickyNodes(e){if(0===e.length)throw new Error("Can't compress empty sticky nodes");const t=this.modelProvider();if(!t.isCompressionEnabled())return e[0];const i=[];for(let l=0;l<e.length;l++){const s=e[l],n=t.getCompressedTreeNode(s.node.element);if(n.element){if(0!==l&&n.element.incompressible)break;i.push(...n.element.elements)}}if(i.length<2)return e[0];const s=e[e.length-1],n={elements:i,incompressible:!1},r={...s.node,children:[],element:n},o=new Proxy(e[0].node,{}),a={node:o,startIndex:e[0].startIndex,endIndex:s.endIndex,position:e[0].position,height:e[0].height};return this.compressedStickyNodes.set(o,r),a}}function U(e,t){return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(i){let s;try{s=e().getCompressedTreeNode(i)}catch{return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i)}return 1===s.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(s.element.elements)}}}}class H extends M{constructor(e,t,i,s,n={}){const r=()=>this,o=new F((()=>this.model));super(e,t,i,s.map((e=>new P(r,o,e))),{...U(r,n),stickyScrollDelegate:o})}setChildren(e,t=S.f.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new I(e,t,i)}updateOptions(e={}){super.updateOptions(e),"undefined"!==typeof e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var B=i(90766),W=i(10350),V=i(25689),z=i(64383),G=i(631);function j(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function K(e,t){return!!t.parent&&(t.parent===e||K(e,t.parent))}class Y{get element(){return this.node.element.element}get children(){return this.node.children.map((e=>new Y(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class q{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,s){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,s)}renderTwistie(e,t){return e.slow?(t.classList.add(...V.L.asClassNameArray(W.W.treeItemLoading)),!0):(t.classList.remove(...V.L.asClassNameArray(W.W.treeItemLoading)),!1)}disposeElement(e,t,i,s){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,i.templateData,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function $(e){return{browserEvent:e.browserEvent,elements:e.elements.map((e=>e.element))}}function Q(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class X extends C.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function Z(e){return e instanceof C.ur?new X(e):e}class J{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){this.dnd.onDragStart?.(Z(e),t)}onDragOver(e,t,i,s,n,r=!0){return this.dnd.onDragOver(Z(e),t&&t.element,i,s,n)}drop(e,t,i,s,n){this.dnd.drop(Z(e),t&&t.element,i,s,n)}onDragEnd(e){this.dnd.onDragEnd?.(e)}dispose(){this.dnd.dispose()}}function ee(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new J(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element}),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>!!e.accessibilityProvider?.isChecked(t.element):void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},filter:e.filter&&{filter:(t,i)=>e.filter.filter(t.element,i)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)},sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"===typeof e.defaultFindVisibility?e.defaultFindVisibility:"undefined"===typeof e.defaultFindVisibility?2:e.defaultFindVisibility(t.element)}}function te(e,t){t(e),e.children.forEach((e=>te(e,t)))}class ie{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return o.Jh.map(this.tree.onDidChangeFocus,$)}get onDidChangeSelection(){return o.Jh.map(this.tree.onDidChangeSelection,$)}get onMouseDblClick(){return o.Jh.map(this.tree.onMouseDblClick,Q)}get onPointer(){return o.Jh.map(this.tree.onPointer,Q)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,s,n,r={}){this.user=e,this.dataSource=n,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new o.vl,this._onDidChangeNodeSlowState=new o.vl,this.nodeMapper=new E.y2((e=>new Y(e))),this.disposables=new a.Cm,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof r.autoExpandSingleChildren&&r.autoExpandSingleChildren,this.sorter=r.sorter,this.getDefaultCollapseState=e=>r.collapseByDefault?r.collapseByDefault(e)?E.Yo.PreserveOrCollapsed:E.Yo.PreserveOrExpanded:void 0,this.tree=this.createTree(e,t,i,s,r),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=j({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}createTree(e,t,i,s,n){const r=new v.w0(i),o=s.map((e=>new q(e,this.nodeMapper,this._onDidChangeNodeSlowState.event))),a=ee(n)||{};return new M(e,t,r,o,a)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.refreshPromises.forEach((e=>e.cancel())),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"===typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}async _updateChildren(e=this.root.element,t=!0,i=!1,s,n){if("undefined"===typeof this.root.element)throw new E.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(await this.refreshAndRenderNode(r,t,s,n),i)try{this.tree.rerender(r)}catch{}}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e,t=!1){if("undefined"===typeof this.root.element)throw new E.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const s=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await this.root.refreshPromise,await o.Jh.toPromise(this._onDidRender.event)),s}setSelection(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map((e=>e.element))}setFocus(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map((e=>e.element))}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new E.jh(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,i,s){await this.refreshNode(e,t,i),this.disposables.isDisposed||this.render(e,i,s)}async refreshNode(e,t,i){let s;if(this.subTreeRefreshPromises.forEach(((n,r)=>{!s&&function(e,t){return e===t||K(e,t)||K(t,e)}(r,e)&&(s=n.then((()=>this.refreshNode(e,t,i))))})),s)return s;if(e!==this.root){if(this.tree.getNode(e).collapsed)return e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,void this.setChildren(e,[],t,i)}return this.doRefreshSubTree(e,t,i)}async doRefreshSubTree(e,t,i){let s;e.refreshPromise=new Promise((e=>s=e)),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}));try{const s=await this.doRefreshNode(e,t,i);e.stale=!1,await B.HC.settled(s.map((e=>this.doRefreshSubTree(e,t,i))))}finally{s()}}async doRefreshNode(e,t,i){let s;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=this.doGetChildren(e);if((0,G.xZ)(t))s=Promise.resolve(t);else{const i=(0,B.wR)(800);i.then((()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)}),(e=>null)),s=t.finally((()=>i.cancel()))}}else s=Promise.resolve(S.f.empty());try{const n=await s;return this.setChildren(e,n,t,i)}catch(n){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,z.MB)(n))return[];throw n}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return(0,G.xZ)(i)?this.processChildren(i):(t=(0,B.SS)((async()=>this.processChildren(await i))),this.refreshPromises.set(e,t),t.finally((()=>{this.refreshPromises.delete(e)})))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(z.dz))}setChildren(e,t,i,s){const n=[...t];if(0===e.children.length&&0===n.length)return[];const r=new Map,o=new Map;for(const c of e.children)r.set(c.element,c),this.identityProvider&&o.set(c.id,{node:c,collapsed:this.tree.hasElement(c)&&this.tree.isCollapsed(c)});const a=[],l=n.map((t=>{const n=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=j({element:t,parent:e,hasChildren:n,defaultCollapseState:this.getDefaultCollapseState(t)});return n&&i.defaultCollapseState===E.Yo.PreserveOrExpanded&&a.push(i),i}const l=this.identityProvider.getId(t).toString(),c=o.get(l);if(c){const e=c.node;return r.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=n,i?c.collapsed?(e.children.forEach((e=>te(e,(e=>this.nodes.delete(e.element))))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):n&&!c.collapsed&&a.push(e),e}const h=j({element:t,parent:e,id:l,hasChildren:n,defaultCollapseState:this.getDefaultCollapseState(t)});return s&&s.viewState.focus&&s.viewState.focus.indexOf(l)>-1&&s.focus.push(h),s&&s.viewState.selection&&s.viewState.selection.indexOf(l)>-1&&s.selection.push(h),(s&&s.viewState.expanded&&s.viewState.expanded.indexOf(l)>-1||n&&h.defaultCollapseState===E.Yo.PreserveOrExpanded)&&a.push(h),h}));for(const c of r.values())te(c,(e=>this.nodes.delete(e.element)));for(const c of l)this.nodes.set(c.element,c);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].forceExpanded=!0,a.push(l[0])),a}render(e,t,i){const s=e.children.map((e=>this.asTreeElement(e,t))),n=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId:e=>i.diffIdentityProvider.getId(e.element)}};this.tree.setChildren(e===this.root?null:e,s,n),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?S.f.map(e.children,(e=>this.asTreeElement(e,t))):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}}class se{get element(){return{elements:this.node.element.elements.map((e=>e.element)),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map((e=>new se(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class ne{constructor(e,t,i,s){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=s,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,s){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,s)}renderCompressedElements(e,t,i,s){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,s)}renderTwistie(e,t){return e.slow?(t.classList.add(...V.L.asClassNameArray(W.W.treeItemLoading)),!0):(t.classList.remove(...V.L.asClassNameArray(W.W.treeItemLoading)),!1)}disposeElement(e,t,i,s){this.renderer.disposeElement?.(this.nodeMapper.map(e),t,i.templateData,s)}disposeCompressedElements(e,t,i,s){this.renderer.disposeCompressedElements?.(this.compressibleNodeMapperProvider().map(e),t,i.templateData,s)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,a.AS)(this.disposables)}}class re extends ie{constructor(e,t,i,s,n,r,o={}){super(e,t,i,n,r,o),this.compressionDelegate=s,this.compressibleNodeMapper=new E.y2((e=>new se(e))),this.filter=o.filter}createTree(e,t,i,s,n){const r=new v.w0(i),o=s.map((e=>new ne(e,this.nodeMapper,(()=>this.compressibleNodeMapper),this._onDidChangeNodeSlowState.event))),a=function(e){const t=e&&ee(e);return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((e=>e.element)))}}}(n)||{};return new H(e,t,r,o,a)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t,i){if(!this.identityProvider)return super.render(e,t);const s=e=>this.identityProvider.getId(e).toString(),n=e=>{const t=new Set;for(const i of e){const e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(const i of e.element.elements)t.add(s(i.element))}return t},r=n(this.tree.getSelection()),o=n(this.tree.getFocus());super.render(e,t,i);const a=this.getSelection();let l=!1;const c=this.getFocus();let h=!1;const d=e=>{const t=e.element;if(t)for(let i=0;i<t.elements.length;i++){const e=s(t.elements[i].element),n=t.elements[t.elements.length-1].element;r.has(e)&&-1===a.indexOf(n)&&(a.push(n),l=!0),o.has(e)&&-1===c.indexOf(n)&&(c.push(n),h=!0)}e.children.forEach(d)};d(this.tree.getCompressedTreeNode(e===this.root?null:e)),l&&this.setSelection(a),h&&this.setFocus(c)}processChildren(e){return this.filter&&(e=S.f.filter(e,(e=>{const t=this.filter.filter(e,1),i="boolean"===typeof(s=t)?s?1:0:(0,b.iZ)(s)?(0,b.Mn)(s.visibility):(0,b.Mn)(s);var s;if(2===i)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===i}))),super.processChildren(e)}}class oe extends v.DO{constructor(e,t,i,s,n,r={}){super(e,t,i,s,r),this.user=e,this.dataSource=n,this.identityProvider=r.identityProvider}createModel(e,t,i){return new y(e,t,i)}}var ae=i(78209),le=i(84001),ce=i(1646),he=i(32848),de=i(28290),ue=i(47508),ge=i(63591),pe=i(98031),me=i(46359),fe=i(19070),_e=function(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},ve=function(e,t){return function(i,s){t(i,s,e)}};const Ce=(0,ge.u1)("listService");class be{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new a.Cm,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){e!==this._lastFocusedWidget&&(this._lastFocusedWidget?.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,this._lastFocusedWidget?.getHTMLElement().classList.add("last-focused"))}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;new l.hb((0,s.li)(),"").style(fe.IN)}if(this.lists.some((t=>t.widget===e)))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),(0,s.X7)(e.getHTMLElement())&&this.setLastFocusedList(e),(0,a.qE)(e.onDidFocus((()=>this.setLastFocusedList(e))),(0,a.s)((()=>this.lists.splice(this.lists.indexOf(i),1))),e.onDidDispose((()=>{this.lists=this.lists.filter((e=>e!==i)),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)})))}dispose(){this.disposables.dispose()}}const Ee=new he.N1("listScrollAtBoundary","none"),Se=(he.M$.or(Ee.isEqualTo("top"),Ee.isEqualTo("both")),he.M$.or(Ee.isEqualTo("bottom"),Ee.isEqualTo("both")),new he.N1("listFocus",!0)),ye=new he.N1("treestickyScrollFocused",!1),we=new he.N1("listSupportsMultiselect",!0),Le=he.M$.and(Se,he.M$.not(de.aV),ye.negate()),Re=new he.N1("listHasSelectionOrFocus",!1),Te=new he.N1("listDoubleSelection",!1),xe=new he.N1("listMultiSelection",!1),ke=new he.N1("listSelectionNavigation",!1),Ae=new he.N1("listSupportsFind",!0),Ne=new he.N1("treeElementCanCollapse",!1),Ie=new he.N1("treeElementHasParent",!1),Oe=new he.N1("treeElementCanExpand",!1),De=new he.N1("treeElementHasChild",!1),Me=new he.N1("treeFindOpen",!1),Pe="listTypeNavigationMode",Fe="listAutomaticKeyboardNavigation";function Ue(e,t){const i=e.createScoped(t.getHTMLElement());return Se.bindTo(i),i}function He(e,t){const i=Ee.bindTo(e),s=()=>{const e=0===t.scrollTop,s=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&s?i.set("both"):e?i.set("top"):s?i.set("bottom"):i.set("none")};return s(),t.onDidScroll(s)}const Be="workbench.list.multiSelectModifier",We="workbench.list.openMode",Ve="workbench.list.horizontalScrolling",ze="workbench.list.defaultFindMode",Ge="workbench.list.typeNavigationMode",je="workbench.list.keyboardNavigation",Ke="workbench.list.scrollByPage",Ye="workbench.list.defaultFindMatchType",qe="workbench.tree.indent",$e="workbench.tree.renderIndentGuides",Qe="workbench.list.smoothScrolling",Xe="workbench.list.mouseWheelScrollSensitivity",Ze="workbench.list.fastScrollSensitivity",Je="workbench.tree.expandMode",et="workbench.tree.enableStickyScroll",tt="workbench.tree.stickyScrollMaxItemCount";function it(e){return"alt"===e.getValue(Be)}class st extends a.jG{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=it(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this.useAltAsMultipleSelectionModifier=it(this.configurationService))})))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:(0,l.tX)(e)}isSelectionRangeChangeEvent(e){return(0,l.mh)(e)}}function nt(e,t){const i=e.get(le.pG),s=e.get(pe.b),n=new a.Cm;return[{...t,keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>s.mightProducePrintableCharacter(e)},smoothScrolling:Boolean(i.getValue(Qe)),mouseWheelScrollSensitivity:i.getValue(Xe),fastScrollSensitivity:i.getValue(Ze),multipleSelectionController:t.multipleSelectionController??n.add(new st(i)),keyboardNavigationEventFilter:ut(s),scrollByPage:Boolean(i.getValue(Ke))},n]}let rt=class extends l.B8{constructor(e,t,i,s,n,r,o,a,l){const c="undefined"!==typeof n.horizontalScrolling?n.horizontalScrolling:Boolean(a.getValue(Ve)),[h,d]=l.invokeFunction(nt,n);super(e,t,i,s,{keyboardSupport:!1,...h,horizontalScrolling:c}),this.disposables.add(d),this.contextKeyService=Ue(r,this),this.disposables.add(He(this.contextKeyService,this)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==n.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(n.selectionNavigation)),this.listHasSelectionOrFocus=Re.bindTo(this.contextKeyService),this.listDoubleSelection=Te.bindTo(this.contextKeyService),this.listMultiSelection=xe.bindTo(this.contextKeyService),this.horizontalScrolling=n.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(a),this.disposables.add(this.contextKeyService),this.disposables.add(o.register(this)),this.updateStyles(n.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(a.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(a));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(a.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(a.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(a.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=a.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=a.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new ct(this,{configurationService:a,...n}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.t8)(e):fe.IN)}};rt=_e([ve(5,he.fN),ve(6,Ce),ve(7,le.pG),ve(8,ge._Y)],rt);let ot=class extends d{constructor(e,t,i,s,n,r,o,l,c){const h="undefined"!==typeof n.horizontalScrolling?n.horizontalScrolling:Boolean(l.getValue(Ve)),[d,u]=c.invokeFunction(nt,n);super(e,t,i,s,{keyboardSupport:!1,...d,horizontalScrolling:h}),this.disposables=new a.Cm,this.disposables.add(u),this.contextKeyService=Ue(r,this),this.disposables.add(He(this.contextKeyService,this.widget)),this.horizontalScrolling=n.horizontalScrolling,this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==n.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(n.selectionNavigation)),this._useAltAsMultipleSelectionModifier=it(l),this.disposables.add(this.contextKeyService),this.disposables.add(o.register(this)),this.updateStyles(n.overrideStyles),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(l));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(l.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(l.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=l.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=l.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new ct(this,{configurationService:l,...n}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables.dispose(),super.dispose()}};ot=_e([ve(5,he.fN),ve(6,Ce),ve(7,le.pG),ve(8,ge._Y)],ot);let at=class extends _{constructor(e,t,i,s,n,r,o,a,l,c){const h="undefined"!==typeof r.horizontalScrolling?r.horizontalScrolling:Boolean(l.getValue(Ve)),[d,u]=c.invokeFunction(nt,r);super(e,t,i,s,n,{keyboardSupport:!1,...d,horizontalScrolling:h}),this.disposables.add(u),this.contextKeyService=Ue(o,this),this.disposables.add(He(this.contextKeyService,this)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==r.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=Re.bindTo(this.contextKeyService),this.listDoubleSelection=Te.bindTo(this.contextKeyService),this.listMultiSelection=xe.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(l));let t={};if(e.affectsConfiguration(Ve)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(Ve));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(Ke)){const e=Boolean(l.getValue(Ke));t={...t,scrollByPage:e}}if(e.affectsConfiguration(Qe)){const e=Boolean(l.getValue(Qe));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(Xe)){const e=l.getValue(Xe);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(Ze)){const e=l.getValue(Ze);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new ht(this,{configurationService:l,...r}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables.dispose(),super.dispose()}};at=_e([ve(6,he.fN),ve(7,Ce),ve(8,le.pG),ve(9,ge._Y)],at);class lt extends a.jG{constructor(e,t){super(),this.widget=e,this._onDidOpen=this._register(new o.vl),this.onDidOpen=this._onDidOpen.event,this._register(o.Jh.filter(this.widget.onDidChangeSelection,(e=>(0,s.kx)(e.browserEvent)))((e=>this.onSelectionFromKeyboard(e)))),this._register(this.widget.onPointer((e=>this.onPointer(e.element,e.browserEvent)))),this._register(this.widget.onMouseDblClick((e=>this.onMouseDblClick(e.element,e.browserEvent)))),"boolean"!==typeof t?.openOnSingleClick&&t?.configurationService?(this.openOnSingleClick="doubleClick"!==t?.configurationService.getValue(We),this._register(t?.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(We)&&(this.openOnSingleClick="doubleClick"!==t?.configurationService.getValue(We))})))):this.openOnSingleClick=t?.openOnSingleClick??!0}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,i="boolean"!==typeof t.preserveFocus||t.preserveFocus,s="boolean"===typeof t.pinned?t.pinned:!i;this._open(this.getSelectedElement(),i,s,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;if(2===t.detail)return;const i=1===t.button,s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,i,s,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,s,t)}_open(e,t,i,s,n){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:s,element:e,browserEvent:n})}}class ct extends lt{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class ht extends lt{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class dt extends lt{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelection()[0]??void 0}}function ut(e){let t=!1;return i=>{if(i.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const s=e.softDispatch(i,i.target);return 1===s.kind?(t=!0,!1):(t=!1,0===s.kind)}}let gt=class extends M{constructor(e,t,i,s,n,r,o,a,l){const{options:c,getTypeNavigationMode:h,disposable:d}=r.invokeFunction(bt,n);super(e,t,i,s,c),this.disposables.add(d),this.internals=new Et(this,n,h,n.overrideStyles,o,a,l),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};gt=_e([ve(5,ge._Y),ve(6,he.fN),ve(7,Ce),ve(8,le.pG)],gt);let pt=class extends H{constructor(e,t,i,s,n,r,o,a,l){const{options:c,getTypeNavigationMode:h,disposable:d}=r.invokeFunction(bt,n);super(e,t,i,s,c),this.disposables.add(d),this.internals=new Et(this,n,h,n.overrideStyles,o,a,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};pt=_e([ve(5,ge._Y),ve(6,he.fN),ve(7,Ce),ve(8,le.pG)],pt);let mt=class extends oe{constructor(e,t,i,s,n,r,o,a,l,c){const{options:h,getTypeNavigationMode:d,disposable:u}=o.invokeFunction(bt,r);super(e,t,i,s,n,h),this.disposables.add(u),this.internals=new Et(this,r,d,r.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};mt=_e([ve(6,ge._Y),ve(7,he.fN),ve(8,Ce),ve(9,le.pG)],mt);let ft=class extends ie{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,s,n,r,o,a,l,c){const{options:h,getTypeNavigationMode:d,disposable:u}=o.invokeFunction(bt,r);super(e,t,i,s,n,h),this.disposables.add(u),this.internals=new Et(this,r,d,r.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};ft=_e([ve(6,ge._Y),ve(7,he.fN),ve(8,Ce),ve(9,le.pG)],ft);let _t=class extends re{constructor(e,t,i,s,n,r,o,a,l,c,h){const{options:d,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(bt,o);super(e,t,i,s,n,r,d),this.disposables.add(g),this.internals=new Et(this,o,u,o.overrideStyles,l,c,h),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function vt(e){const t=e.getValue(ze);if("highlight"===t)return v.vD.Highlight;if("filter"===t)return v.vD.Filter;const i=e.getValue(je);return"simple"===i||"highlight"===i?v.vD.Highlight:"filter"===i?v.vD.Filter:void 0}function Ct(e){const t=e.getValue(Ye);return"fuzzy"===t?v.RD.Fuzzy:"contiguous"===t?v.RD.Contiguous:void 0}function bt(e,t){const i=e.get(le.pG),s=e.get(ue.l),n=e.get(he.fN),r=e.get(ge._Y),o=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(i.getValue(Ve)),[a,c]=r.invokeFunction(nt,t),h=t.paddingBottom,d=void 0!==t.renderIndentGuides?t.renderIndentGuides:i.getValue($e);return{getTypeNavigationMode:()=>{const e=n.getContextKeyValue(Pe);if("automatic"===e)return l._C.Automatic;if("trigger"===e)return l._C.Trigger;if(!1===n.getContextKeyValue(Fe))return l._C.Trigger;const t=i.getValue(Ge);return"automatic"===t?l._C.Automatic:"trigger"===t?l._C.Trigger:void 0},disposable:c,options:{keyboardSupport:!1,...a,indent:"number"===typeof i.getValue(qe)?i.getValue(qe):void 0,renderIndentGuides:d,smoothScrolling:Boolean(i.getValue(Qe)),defaultFindMode:vt(i),defaultFindMatchType:Ct(i),horizontalScrolling:o,scrollByPage:Boolean(i.getValue(Ke)),paddingBottom:h,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:t.expandOnlyOnTwistieClick??"doubleClick"===i.getValue(Je),contextViewProvider:s,findWidgetStyles:fe.Dk,enableStickyScroll:Boolean(i.getValue(et)),stickyScrollMaxItemCount:Number(i.getValue(tt))}}}_t=_e([ve(7,ge._Y),ve(8,he.fN),ve(9,Ce),ve(10,le.pG)],_t);let Et=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,s,n,r,o){this.tree=e,this.disposables=[],this.contextKeyService=Ue(n,e),this.disposables.push(He(this.contextKeyService,e)),this.listSupportsMultiSelect=we.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport);ke.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=Ae.bindTo(this.contextKeyService),this.listSupportFindWidget.set(t.findWidgetEnabled??!0),this.hasSelectionOrFocus=Re.bindTo(this.contextKeyService),this.hasDoubleSelection=Te.bindTo(this.contextKeyService),this.hasMultiSelection=xe.bindTo(this.contextKeyService),this.treeElementCanCollapse=Ne.bindTo(this.contextKeyService),this.treeElementHasParent=Ie.bindTo(this.contextKeyService),this.treeElementCanExpand=Oe.bindTo(this.contextKeyService),this.treeElementHasChild=De.bindTo(this.contextKeyService),this.treeFindOpen=Me.bindTo(this.contextKeyService),this.treeStickyScrollFocused=ye.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=it(o),this.updateStyleOverrides(s);const a=()=>{const t=e.getFocus()[0];if(!t)return;const i=e.getNode(t);this.treeElementCanCollapse.set(i.collapsible&&!i.collapsed),this.treeElementHasParent.set(!!e.getParentElement(t)),this.treeElementCanExpand.set(i.collapsible&&i.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(t))},l=new Set;l.add(Pe),l.add(Fe),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection((()=>{const t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.hasSelectionOrFocus.set(t.length>0||i.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)}))})),e.onDidChangeFocus((()=>{const t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||i.length>0),a()})),e.onDidChangeCollapseState(a),e.onDidChangeModel(a),e.onDidChangeFindOpenState((e=>this.treeFindOpen.set(e))),e.onDidChangeStickyScrollFocused((e=>this.treeStickyScrollFocused.set(e))),o.onDidChangeConfiguration((s=>{let n={};if(s.affectsConfiguration(Be)&&(this._useAltAsMultipleSelectionModifier=it(o)),s.affectsConfiguration(qe)){const e=o.getValue(qe);n={...n,indent:e}}if(s.affectsConfiguration($e)&&void 0===t.renderIndentGuides){const e=o.getValue($e);n={...n,renderIndentGuides:e}}if(s.affectsConfiguration(Qe)){const e=Boolean(o.getValue(Qe));n={...n,smoothScrolling:e}}if(s.affectsConfiguration(ze)||s.affectsConfiguration(je)){const e=vt(o);n={...n,defaultFindMode:e}}if(s.affectsConfiguration(Ge)||s.affectsConfiguration(je)){const e=i();n={...n,typeNavigationMode:e}}if(s.affectsConfiguration(Ye)){const e=Ct(o);n={...n,defaultFindMatchType:e}}if(s.affectsConfiguration(Ve)&&void 0===t.horizontalScrolling){const e=Boolean(o.getValue(Ve));n={...n,horizontalScrolling:e}}if(s.affectsConfiguration(Ke)){const e=Boolean(o.getValue(Ke));n={...n,scrollByPage:e}}if(s.affectsConfiguration(Je)&&void 0===t.expandOnlyOnTwistieClick&&(n={...n,expandOnlyOnTwistieClick:"doubleClick"===o.getValue(Je)}),s.affectsConfiguration(et)){const e=o.getValue(et);n={...n,enableStickyScroll:e}}if(s.affectsConfiguration(tt)){const e=Math.max(1,o.getValue(tt));n={...n,stickyScrollMaxItemCount:e}}if(s.affectsConfiguration(Xe)){const e=o.getValue(Xe);n={...n,mouseWheelScrollSensitivity:e}}if(s.affectsConfiguration(Ze)){const e=o.getValue(Ze);n={...n,fastScrollSensitivity:e}}Object.keys(n).length>0&&e.updateOptions(n)})),this.contextKeyService.onDidChangeContext((t=>{t.affectsSome(l)&&e.updateOptions({typeNavigationMode:i()})}))),this.navigator=new dt(e,{configurationService:o,...t}),this.disposables.push(this.navigator)}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?(0,fe.t8)(e):fe.IN)}dispose(){this.disposables=(0,a.AS)(this.disposables)}};Et=_e([ve(4,he.fN),ve(5,Ce),ve(6,le.pG)],Et);me.O.as(ce.Fd.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,ae.kg)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Be]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,ae.kg)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,ae.kg)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,ae.kg)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[We]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.kg)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Ve]:{type:"boolean",default:!1,description:(0,ae.kg)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[Ke]:{type:"boolean",default:!1,description:(0,ae.kg)("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[qe]:{type:"number",default:8,minimum:4,maximum:40,description:(0,ae.kg)("tree indent setting","Controls tree indentation in pixels.")},[$e]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,ae.kg)("render tree indent guides","Controls whether the tree should render indent guides.")},[Qe]:{type:"boolean",default:!1,description:(0,ae.kg)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Xe]:{type:"number",default:1,markdownDescription:(0,ae.kg)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[Ze]:{type:"number",default:5,markdownDescription:(0,ae.kg)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[ze]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,ae.kg)("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,ae.kg)("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:(0,ae.kg)("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[je]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,ae.kg)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,ae.kg)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,ae.kg)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,ae.kg)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,ae.kg)("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and\t'workbench.list.typeNavigationMode' instead.")},[Ye]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,ae.kg)("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),(0,ae.kg)("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:(0,ae.kg)("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[Je]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ae.kg)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[et]:{type:"boolean",default:!0,description:(0,ae.kg)("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[tt]:{type:"number",minimum:1,default:7,markdownDescription:(0,ae.kg)("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when {0} is enabled.","`#workbench.tree.enableStickyScroll#`")},[Ge]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:(0,ae.kg)("typeNavigationMode2","Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}})},18801:(e,t,i)=>{"use strict";i.d(t,{$b:()=>a,Cr:()=>h,Dk:()=>d,rr:()=>o});var s=i(41234),n=i(5662),r=i(32848);const o=(0,i(63591).u1)("logService");var a;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(a||(a={}));const l=a.Info;class c extends n.jG{constructor(){super(...arguments),this.level=l,this._onDidChangeLogLevel=this._register(new s.vl),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==a.Off&&this.level<=e}}class h extends c{constructor(e=l,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(a.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(a.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(a.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(a.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(a.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}}class d extends c{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}new r.N1("logLevel",function(e){switch(e){case a.Trace:return"trace";case a.Debug:return"debug";case a.Info:return"info";case a.Warning:return"warn";case a.Error:return"error";case a.Off:return"off"}}(a.Info))},75147:(e,t,i)=>{"use strict";i.d(t,{DR:()=>l,cj:()=>s,oc:()=>n});var s,n,r=i(42291),o=i(78209),a=i(63591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(s||(s={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,o.kg)("sev.error","Error"),t[e.Warning]=(0,o.kg)("sev.warning","Warning"),t[e.Info]=(0,o.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case r.A.Error:return e.Error;case r.A.Warning:return e.Warning;case r.A.Info:return e.Info;case r.A.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return r.A.Error;case e.Warning:return r.A.Warning;case e.Info:return r.A.Info;case e.Hint:return r.A.Ignore}}}(s||(s={})),function(e){const t="";function i(e,i){const n=[t];return e.source?n.push(e.source.replace("\xa6","\\\xa6")):n.push(t),e.code?"string"===typeof e.code?n.push(e.code.replace("\xa6","\\\xa6")):n.push(e.code.value.replace("\xa6","\\\xa6")):n.push(t),void 0!==e.severity&&null!==e.severity?n.push(s.toString(e.severity)):n.push(t),e.message&&i?n.push(e.message.replace("\xa6","\\\xa6")):n.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?n.push(e.startLineNumber.toString()):n.push(t),void 0!==e.startColumn&&null!==e.startColumn?n.push(e.startColumn.toString()):n.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?n.push(e.endLineNumber.toString()):n.push(t),void 0!==e.endColumn&&null!==e.endColumn?n.push(e.endColumn.toString()):n.push(t),n.push(t),n.join("\xa6")}e.makeKey=function(e){return i(e,!0)},e.makeKeyOptionalMessage=i}(n||(n={}));const l=(0,a.u1)("markerService")},58591:(e,t,i)=>{"use strict";i.d(t,{AI:()=>r,Kz:()=>a,Ot:()=>o});var s=i(42291),n=i(63591),r=s.A;const o=(0,n.u1)("notificationService");class a{}},71319:(e,t,i)=>{"use strict";i.d(t,{V:()=>r,w:()=>o});var s=i(31308),n=i(13850);function r(e,t,i){return(0,n.eP)({debugName:()=>`Configuration Key "${e}"`},(t=>i.onDidChangeConfiguration((i=>{i.affectsConfiguration(e)&&t(i)}))),(()=>i.getValue(e)??t))}function o(e,t,i){const n=e.bindTo(t);return(0,s.zL)({debugName:()=>`Set Context Key "${e.key}"`},(e=>{n.set(i(e))}))}},49099:(e,t,i)=>{"use strict";i.d(t,{C:()=>s,e:()=>n});const s=(0,i(63591).u1)("openerService");function n(e){let t;const i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},73823:(e,t,i)=>{"use strict";i.d(t,{G5:()=>n,N8:()=>o,ke:()=>r});var s=i(63591);const n=(0,s.u1)("progressService");Object.freeze({total(){},worked(){},done(){}});class r{static{this.None=Object.freeze({report(){}})}constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}const o=(0,s.u1)("editorProgressService")},71597:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>a,aJ:()=>s});var s,n=i(25890),r=i(5662),o=i(46359);!function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(s||(s={}));const a={Quickaccess:"workbench.contributions.quickaccess"};o.O.add(a.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort(((e,t)=>t.prefix.length-e.prefix.length)),(0,r.s)((()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)}))}getQuickAccessProviders(){return(0,n.Yc)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find((t=>e.startsWith(t.prefix)))||void 0||this.defaultProvider}})},51467:(e,t,i)=>{"use strict";i.d(t,{C1:()=>o,Fp:()=>a,GK:()=>c,Ym:()=>n,dH:()=>l,kF:()=>r});var s=i(63591);const n={ctrlCmd:!1,alt:!1};var r,o,a,l;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(r||(r={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(o||(o={})),function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage",e[e.NextSeparator=8]="NextSeparator",e[e.PreviousSeparator=9]="PreviousSeparator"}(a||(a={})),function(e){e[e.Title=1]="Title",e[e.Inline=2]="Inline"}(l||(l={}));new class{constructor(e){this.options=e}};const c=(0,s.u1)("quickInputService")},46359:(e,t,i)=>{"use strict";i.d(t,{O:()=>r});var s=i(66782),n=i(631);const r=new class{constructor(){this.data=new Map}add(e,t){s.ok(n.Kg(e)),s.ok(n.Gv(t)),s.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},9711:(e,t,i)=>{"use strict";i.d(t,{CS:()=>p,pc:()=>_,LP:()=>m});var s,n,r=i(41234),o=i(5662),a=i(631),l=i(90766),c=i(908);!function(e){e[e.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",e[e.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"}(s||(s={})),function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(n||(n={}));class h extends o.jG{static{this.DEFAULT_FLUSH_DELAY=100}constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new r.fV),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=n.None,this.cache=new Map,this.flushDelayer=this._register(new l.Th(h.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal((e=>this.onDidChangeItemsExternal(e))))}onDidChangeItemsExternal(e){this._onDidChangeStorage.pause();try{e.changed?.forEach(((e,t)=>this.acceptExternal(t,e))),e.deleted?.forEach((e=>this.acceptExternal(e,void 0)))}finally{this._onDidChangeStorage.resume()}}acceptExternal(e,t){if(this.state===n.Closed)return;let i=!1;if((0,a.z)(t))i=this.cache.delete(e);else{this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0)}i&&this._onDidChangeStorage.fire({key:e,external:!0})}get(e,t){const i=this.cache.get(e);return(0,a.z)(i)?t:i}getBoolean(e,t){const i=this.get(e);return(0,a.z)(i)?t:"true"===i}getNumber(e,t){const i=this.get(e);return(0,a.z)(i)?t:parseInt(i,10)}async set(e,t,i=!1){if(this.state===n.Closed)return;if((0,a.z)(t))return this.delete(e,i);const s=(0,a.Gv)(t)||Array.isArray(t)?(0,c.As)(t):String(t);return this.cache.get(e)!==s?(this.cache.set(e,s),this.pendingInserts.set(e,s),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire({key:e,external:i}),this.doFlush()):void 0}async delete(e,t=!1){if(this.state===n.Closed)return;return this.cache.delete(e)?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire({key:e,external:t}),this.doFlush()):void 0}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally((()=>{if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)this.whenFlushedCallbacks.pop()?.()}))}async doFlush(e){return this.options.hint===s.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger((()=>this.flushPending()),e)}}class d{constructor(){this.onDidChangeItemsExternal=r.Jh.None,this.items=new Map}async updateItems(e){e.insert?.forEach(((e,t)=>this.items.set(t,e))),e.delete?.forEach((e=>this.items.delete(e)))}}var u=i(63591);const g="__$__targetStorageMarker",p=(0,u.u1)("storageService");var m;!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(m||(m={}));class f extends o.jG{static{this.DEFAULT_FLUSH_INTERVAL=6e4}constructor(e={flushInterval:f.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new r.fV),this._onDidChangeTarget=this._register(new r.fV),this._onWillSaveState=this._register(new r.vl),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(e,t,i){return r.Jh.filter(this._onDidChangeValue.event,(i=>i.scope===e&&(void 0===t||i.key===t)),i)}emitDidChangeValue(e,t){const{key:i,external:s}=t;if(i===g){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:i,target:this.getKeyTargets(e)[i],external:s})}get(e,t,i){return this.getStorage(t)?.get(e,i)}getBoolean(e,t,i){return this.getStorage(t)?.getBoolean(e,i)}getNumber(e,t,i){return this.getStorage(t)?.getNumber(e,i)}store(e,t,i,s,n=!1){(0,a.z)(t)?this.remove(e,i,n):this.withPausedEmitters((()=>{this.updateKeyTarget(e,i,s),this.getStorage(i)?.set(e,t,n)}))}remove(e,t,i=!1){this.withPausedEmitters((()=>{this.updateKeyTarget(e,t,void 0),this.getStorage(t)?.delete(e,i)}))}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i,s=!1){const n=this.getKeyTargets(t);"number"===typeof i?n[e]!==i&&(n[e]=i,this.getStorage(t)?.set(g,JSON.stringify(n),s)):"number"===typeof n[e]&&(delete n[e],this.getStorage(t)?.set(g,JSON.stringify(n),s))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.getStorage(e);return t?function(e){const t=e.get(g);if(t)try{return JSON.parse(t)}catch(i){}return Object.create(null)}(t):Object.create(null)}}class _ extends f{constructor(){super(),this.applicationStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new h(new d,{hint:s.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage((e=>this.emitDidChangeValue(1,e)))),this._register(this.profileStorage.onDidChangeStorage((e=>this.emitDidChangeValue(0,e)))),this._register(this.applicationStorage.onDidChangeStorage((e=>this.emitDidChangeValue(-1,e))))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},90651:(e,t,i)=>{"use strict";i.d(t,{k:()=>s});const s=(0,i(63591).u1)("telemetryService")},19070:(e,t,i)=>{"use strict";i.d(t,{Dk:()=>h,IN:()=>u,RE:()=>p,XS:()=>m,cv:()=>o,ho:()=>c,ir:()=>r,m$:()=>d,mk:()=>l,oJ:()=>a,t8:()=>g});var s=i(66261),n=i(47661);const r={keybindingLabelBackground:(0,s.GuP)(s.HDX),keybindingLabelForeground:(0,s.GuP)(s.eUu),keybindingLabelBorder:(0,s.GuP)(s.zUX),keybindingLabelBottomBorder:(0,s.GuP)(s.Qfh),keybindingLabelShadow:(0,s.GuP)(s.f9l)},o={buttonForeground:(0,s.GuP)(s.G_h),buttonSeparator:(0,s.GuP)(s.Q1$),buttonBackground:(0,s.GuP)(s.XJc),buttonHoverBackground:(0,s.GuP)(s.T9h),buttonSecondaryForeground:(0,s.GuP)(s.Inn),buttonSecondaryBackground:(0,s.GuP)(s.xOA),buttonSecondaryHoverBackground:(0,s.GuP)(s.nZG),buttonBorder:(0,s.GuP)(s.raQ)},a={progressBarBackground:(0,s.GuP)(s.BTi)},l={inputActiveOptionBorder:(0,s.GuP)(s.uNK),inputActiveOptionForeground:(0,s.GuP)(s.$$0),inputActiveOptionBackground:(0,s.GuP)(s.c1f)},c=((0,s.GuP)(s.jOE),(0,s.GuP)(s.Ukx),(0,s.GuP)(s.Ips),(0,s.GuP)(s.kPT),(0,s.GuP)(s.xWN),(0,s.GuP)(s.ZBU),(0,s.GuP)(s.jr9),(0,s.GuP)(s.OcU),(0,s.GuP)(s.C5U),(0,s.GuP)(s.t0B),(0,s.GuP)(s.CgL),(0,s.GuP)(s.FiB),(0,s.GuP)(s.f9l),(0,s.GuP)(s.b1q),(0,s.GuP)(s.tYX),(0,s.GuP)(s.JPj),(0,s.GuP)(s.bNw),(0,s.GuP)(s.vwp),{inputBackground:(0,s.GuP)(s.L4c),inputForeground:(0,s.GuP)(s.cws),inputBorder:(0,s.GuP)(s.Zgs),inputValidationInfoBorder:(0,s.GuP)(s.YSW),inputValidationInfoBackground:(0,s.GuP)(s.I$A),inputValidationInfoForeground:(0,s.GuP)(s.L9Z),inputValidationWarningBorder:(0,s.GuP)(s.C1n),inputValidationWarningBackground:(0,s.GuP)(s.ULt),inputValidationWarningForeground:(0,s.GuP)(s.T5N),inputValidationErrorBorder:(0,s.GuP)(s.eYZ),inputValidationErrorBackground:(0,s.GuP)(s._$n),inputValidationErrorForeground:(0,s.GuP)(s.h9z)}),h={listFilterWidgetBackground:(0,s.GuP)(s.pnl),listFilterWidgetOutline:(0,s.GuP)(s.fiM),listFilterWidgetNoMatchesOutline:(0,s.GuP)(s.P9Z),listFilterWidgetShadow:(0,s.GuP)(s.H8q),inputBoxStyles:c,toggleStyles:l},d={badgeBackground:(0,s.GuP)(s.WMx),badgeForeground:(0,s.GuP)(s.zRE),badgeBorder:(0,s.GuP)(s.b1q)},u=((0,s.GuP)(s.vV$),(0,s.GuP)(s.mc0),(0,s.GuP)(s.etE),(0,s.GuP)(s.etE),(0,s.GuP)(s.sAS),{listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,s.GuP)(s.VFX),listFocusForeground:(0,s.GuP)(s.efJ),listFocusOutline:(0,s.GuP)(s.p7Y),listActiveSelectionBackground:(0,s.GuP)(s.Rjz),listActiveSelectionForeground:(0,s.GuP)(s.GVV),listActiveSelectionIconForeground:(0,s.GuP)(s.fED),listFocusAndSelectionOutline:(0,s.GuP)(s.gtq),listFocusAndSelectionBackground:(0,s.GuP)(s.Rjz),listFocusAndSelectionForeground:(0,s.GuP)(s.GVV),listInactiveSelectionBackground:(0,s.GuP)(s.uNx),listInactiveSelectionIconForeground:(0,s.GuP)(s.C9U),listInactiveSelectionForeground:(0,s.GuP)(s.f4y),listInactiveFocusBackground:(0,s.GuP)(s.CQ3),listInactiveFocusOutline:(0,s.GuP)(s.ijf),listHoverBackground:(0,s.GuP)(s.lO1),listHoverForeground:(0,s.GuP)(s.QRv),listDropOverBackground:(0,s.GuP)(s.Yoe),listDropBetweenBackground:(0,s.GuP)(s.yIp),listSelectionOutline:(0,s.GuP)(s.buw),listHoverOutline:(0,s.GuP)(s.buw),treeIndentGuidesStroke:(0,s.GuP)(s.U4U),treeInactiveIndentGuidesStroke:(0,s.GuP)(s.pft),treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:(0,s.GuP)(s.bXl),tableColumnsBorder:(0,s.GuP)(s.k5u),tableOddRowsBackgroundColor:(0,s.GuP)(s.sbQ)});function g(e){return function(e,t){const i={...t};for(const n in e){const t=e[n];i[n]=void 0!==t?(0,s.GuP)(t):void 0}return i}(e,u)}const p={selectBackground:(0,s.GuP)(s.rvE),selectListBackground:(0,s.GuP)(s.lWP),selectForeground:(0,s.GuP)(s.yqq),decoratorRightForeground:(0,s.GuP)(s.NBf),selectBorder:(0,s.GuP)(s.HcB),focusBorder:(0,s.GuP)(s.tAP),listFocusBackground:(0,s.GuP)(s.AlL),listInactiveSelectionIconForeground:(0,s.GuP)(s.c7i),listFocusForeground:(0,s.GuP)(s.nH),listFocusOutline:(0,s.HP_)(s.buw,n.Q1.transparent.toString()),listHoverBackground:(0,s.GuP)(s.lO1),listHoverForeground:(0,s.GuP)(s.QRv),listHoverOutline:(0,s.GuP)(s.buw),selectListBorder:(0,s.GuP)(s.sIe),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropOverBackground:void 0,listDropBetweenBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},m={shadowColor:(0,s.GuP)(s.f9l),borderColor:(0,s.GuP)(s.g$2),foregroundColor:(0,s.GuP)(s.dd_),backgroundColor:(0,s.GuP)(s.c6Y),selectionForegroundColor:(0,s.GuP)(s.pmr),selectionBackgroundColor:(0,s.GuP)(s.Ux$),selectionBorderColor:(0,s.GuP)(s.SNb),separatorColor:(0,s.GuP)(s.D7X),scrollbarShadow:(0,s.GuP)(s.bXl),scrollbarSliderBackground:(0,s.GuP)(s.gnV),scrollbarSliderHoverBackground:(0,s.GuP)(s.cI_),scrollbarSliderActiveBackground:(0,s.GuP)(s.mhZ)}},66261:(e,t,i)=>{"use strict";i.d(t,{FdG:()=>s.Fd,buw:()=>h,GuP:()=>s.Gu,Bbc:()=>s.Bb,HP_:()=>s.HP,WMx:()=>u,zRE:()=>g,sAS:()=>ce,vV$:()=>ae,etE:()=>le,mc0:()=>oe,XJc:()=>Ze,raQ:()=>et,G_h:()=>Qe,T9h:()=>Je,xOA:()=>it,Inn:()=>tt,nZG:()=>st,Q1$:()=>Xe,OcU:()=>dt,C5U:()=>gt,t0B:()=>ut,b1q:()=>c,EY1:()=>X,ZEf:()=>Z,Gj6:()=>J,ld8:()=>te,$BZ:()=>ie,GNm:()=>ee,Ztu:()=>I,YtV:()=>C,AN$:()=>L,Rbi:()=>w,f3U:()=>F,Ubg:()=>U,ECk:()=>B,p8Y:()=>H,S5J:()=>W,By2:()=>b,i61:()=>N,WfR:()=>V,oZ8:()=>z,tan:()=>M,IIb:()=>A,pOz:()=>k,WL6:()=>j,P6i:()=>G,B2L:()=>$,sjA:()=>q,_pU:()=>Y,HwT:()=>K,seu:()=>O,rm4:()=>D,QwA:()=>P,whs:()=>R,Stt:()=>x,Hng:()=>T,CgL:()=>E,sIe:()=>y,FiB:()=>S,tAP:()=>l,CU6:()=>o,t4B:()=>a,c1f:()=>Me,uNK:()=>Oe,$$0:()=>Pe,L4c:()=>Ae,Zgs:()=>Ie,cws:()=>Ne,_$n:()=>ze,eYZ:()=>je,h9z:()=>Ge,I$A:()=>Fe,YSW:()=>He,L9Z:()=>Ue,ULt:()=>Be,C1n:()=>Ve,T5N:()=>We,HDX:()=>pt,zUX:()=>ft,Qfh:()=>_t,eUu:()=>mt,Rjz:()=>St,GVV:()=>yt,fED:()=>wt,yIp:()=>Ot,Yoe:()=>It,pnl:()=>Pt,P9Z:()=>Ut,fiM:()=>Ft,H8q:()=>Ht,gtq:()=>Et,VFX:()=>vt,efJ:()=>Ct,eMz:()=>Mt,p7Y:()=>bt,QI5:()=>Dt,lO1:()=>At,QRv:()=>Nt,CQ3:()=>xt,ijf:()=>kt,uNx:()=>Lt,f4y:()=>Rt,C9U:()=>Tt,c6Y:()=>Kt,g$2:()=>Gt,dd_:()=>jt,Ux$:()=>qt,SNb:()=>$t,pmr:()=>Yt,D7X:()=>Qt,ILr:()=>xe,yLC:()=>Te,AjU:()=>Se,K1Z:()=>ke,KoI:()=>Le,yr0:()=>we,Xp1:()=>ye,uMG:()=>Re,yLr:()=>s.yL,fAP:()=>_e,z5H:()=>ve,iwL:()=>ti,NBf:()=>ei,tYX:()=>Ce,bNw:()=>Ee,JPj:()=>be,BTi:()=>v,ELA:()=>Xt,HJZ:()=>Zt,AlL:()=>ri,nH:()=>si,c7i:()=>ni,er1:()=>Jt,Ukx:()=>rt,Ips:()=>ot,jOE:()=>nt,xWN:()=>lt,ZBU:()=>ct,kPT:()=>at,jr9:()=>ht,x1A:()=>s.x1,bXl:()=>p,mhZ:()=>_,gnV:()=>m,cI_:()=>f,rvE:()=>Ke,HcB:()=>$e,yqq:()=>qe,lWP:()=>Ye,k5u:()=>Vt,sbQ:()=>zt,vwp:()=>d,JO0:()=>s.JO,pft:()=>Wt,U4U:()=>Bt,DSL:()=>ne,f9l:()=>se});var s=i(83844),n=i(78209),r=i(47661);const o=(0,s.x1)("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},n.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),a=((0,s.x1)("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},n.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),(0,s.x1)("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},n.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),(0,s.x1)("descriptionForeground",{light:"#717171",dark:(0,s.JO)(o,.7),hcDark:(0,s.JO)(o,.7),hcLight:(0,s.JO)(o,.7)},n.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),(0,s.x1)("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},n.kg("iconForeground","The default color for icons in the workbench."))),l=(0,s.x1)("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},n.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),c=(0,s.x1)("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},n.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),h=(0,s.x1)("contrastActiveBorder",{light:null,dark:null,hcDark:l,hcLight:l},n.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),d=((0,s.x1)("selection.background",null,n.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),(0,s.x1)("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},n.kg("textLinkForeground","Foreground color for links in text."))),u=((0,s.x1)("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},n.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),(0,s.x1)("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:r.Q1.black,hcLight:"#292929"},n.kg("textSeparatorForeground","Color for text separators.")),(0,s.x1)("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},n.kg("textPreformatForeground","Foreground color for preformatted text segments.")),(0,s.x1)("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},n.kg("textPreformatBackground","Background color for preformatted text segments.")),(0,s.x1)("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},n.kg("textBlockQuoteBackground","Background color for block quotes in text.")),(0,s.x1)("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:r.Q1.white,hcLight:"#292929"},n.kg("textBlockQuoteBorder","Border color for block quotes in text.")),(0,s.x1)("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:r.Q1.black,hcLight:"#F2F2F2"},n.kg("textCodeBlockBackground","Background color for code blocks in text.")),(0,s.x1)("sash.hoverBorder",l,n.kg("sashActiveBorder","Border color of active sashes.")),(0,s.x1)("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:r.Q1.black,hcLight:"#0F4A85"},n.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),g=(0,s.x1)("badge.foreground",{dark:r.Q1.white,light:"#333",hcDark:r.Q1.white,hcLight:r.Q1.white},n.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),p=(0,s.x1)("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},n.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),m=(0,s.x1)("scrollbarSlider.background",{dark:r.Q1.fromHex("#797979").transparent(.4),light:r.Q1.fromHex("#646464").transparent(.4),hcDark:(0,s.JO)(c,.6),hcLight:(0,s.JO)(c,.4)},n.kg("scrollbarSliderBackground","Scrollbar slider background color.")),f=(0,s.x1)("scrollbarSlider.hoverBackground",{dark:r.Q1.fromHex("#646464").transparent(.7),light:r.Q1.fromHex("#646464").transparent(.7),hcDark:(0,s.JO)(c,.8),hcLight:(0,s.JO)(c,.8)},n.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),_=(0,s.x1)("scrollbarSlider.activeBackground",{dark:r.Q1.fromHex("#BFBFBF").transparent(.4),light:r.Q1.fromHex("#000000").transparent(.6),hcDark:c,hcLight:c},n.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),v=(0,s.x1)("progressBar.background",{dark:r.Q1.fromHex("#0E70C0"),light:r.Q1.fromHex("#0E70C0"),hcDark:c,hcLight:c},n.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),C=(0,s.x1)("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("editorBackground","Editor background color.")),b=(0,s.x1)("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:r.Q1.white,hcLight:o},n.kg("editorForeground","Editor default foreground color.")),E=((0,s.x1)("editorStickyScroll.background",C,n.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),(0,s.x1)("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),(0,s.x1)("editorStickyScroll.border",{dark:null,light:null,hcDark:c,hcLight:c},n.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),(0,s.x1)("editorStickyScroll.shadow",p,n.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),(0,s.x1)("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:r.Q1.white},n.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),S=(0,s.x1)("editorWidget.foreground",o,n.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),y=(0,s.x1)("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:c,hcLight:c},n.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),w=((0,s.x1)("editorWidget.resizeBorder",null,n.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),(0,s.x1)("editorError.background",null,n.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},n.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),L=(0,s.x1)("editorError.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},n.kg("errorBorder","If set, color of double underlines for errors in the editor.")),R=(0,s.x1)("editorWarning.background",null,n.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),T=(0,s.x1)("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},n.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),x=(0,s.x1)("editorWarning.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#FFCC00").transparent(.8),hcLight:r.Q1.fromHex("#FFCC00").transparent(.8)},n.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),k=((0,s.x1)("editorInfo.background",null,n.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},n.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),A=(0,s.x1)("editorInfo.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},n.kg("infoBorder","If set, color of double underlines for infos in the editor.")),N=(0,s.x1)("editorHint.foreground",{dark:r.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},n.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),I=((0,s.x1)("editorHint.border",{dark:null,light:null,hcDark:r.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},n.kg("hintBorder","If set, color of double underlines for hints in the editor.")),(0,s.x1)("editorLink.activeForeground",{dark:"#4E94CE",light:r.Q1.blue,hcDark:r.Q1.cyan,hcLight:"#292929"},n.kg("activeLinkForeground","Color of active links."))),O=(0,s.x1)("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},n.kg("editorSelectionBackground","Color of the editor selection.")),D=(0,s.x1)("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:r.Q1.white},n.kg("editorSelectionForeground","Color of the selected text for high contrast.")),M=(0,s.x1)("editor.inactiveSelectionBackground",{light:(0,s.JO)(O,.5),dark:(0,s.JO)(O,.5),hcDark:(0,s.JO)(O,.7),hcLight:(0,s.JO)(O,.5)},n.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),P=(0,s.x1)("editor.selectionHighlightBackground",{light:(0,s.oG)(O,C,.3,.6),dark:(0,s.oG)(O,C,.3,.6),hcDark:null,hcLight:null},n.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),F=((0,s.x1)("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),(0,s.x1)("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},n.kg("editorFindMatch","Color of the current search match.")),(0,s.x1)("editor.findMatchForeground",null,n.kg("editorFindMatchForeground","Text color of the current search match."))),U=(0,s.x1)("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},n.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),H=(0,s.x1)("editor.findMatchHighlightForeground",null,n.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),B=((0,s.x1)("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},n.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editor.findMatchBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("editorFindMatchBorder","Border color of the current search match.")),(0,s.x1)("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:h,hcLight:h},n.kg("findMatchHighlightBorder","Border color of the other search matches."))),W=(0,s.x1)("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:(0,s.JO)(h,.4),hcLight:(0,s.JO)(h,.4)},n.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),V=((0,s.x1)("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},n.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("editorHoverWidget.background",E,n.kg("hoverBackground","Background color of the editor hover."))),z=((0,s.x1)("editorHoverWidget.foreground",S,n.kg("hoverForeground","Foreground color of the editor hover.")),(0,s.x1)("editorHoverWidget.border",y,n.kg("hoverBorder","Border color of the editor hover."))),G=((0,s.x1)("editorHoverWidget.statusBarBackground",{dark:(0,s.a)(V,.2),light:(0,s.e$)(V,.05),hcDark:E,hcLight:E},n.kg("statusBarBackground","Background color of the editor hover status bar.")),(0,s.x1)("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:r.Q1.white,hcLight:r.Q1.black},n.kg("editorInlayHintForeground","Foreground color of inline hints"))),j=(0,s.x1)("editorInlayHint.background",{dark:(0,s.JO)(u,.1),light:(0,s.JO)(u,.1),hcDark:(0,s.JO)(r.Q1.white,.1),hcLight:(0,s.JO)(u,.1)},n.kg("editorInlayHintBackground","Background color of inline hints")),K=(0,s.x1)("editorInlayHint.typeForeground",G,n.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),Y=(0,s.x1)("editorInlayHint.typeBackground",j,n.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),q=(0,s.x1)("editorInlayHint.parameterForeground",G,n.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),$=(0,s.x1)("editorInlayHint.parameterBackground",j,n.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),Q=(0,s.x1)("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},n.kg("editorLightBulbForeground","The color used for the lightbulb actions icon.")),X=((0,s.x1)("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},n.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),(0,s.x1)("editorLightBulbAi.foreground",Q,n.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),(0,s.x1)("editor.snippetTabstopHighlightBackground",{dark:new r.Q1(new r.bU(124,124,124,.3)),light:new r.Q1(new r.bU(10,50,100,.2)),hcDark:new r.Q1(new r.bU(124,124,124,.3)),hcLight:new r.Q1(new r.bU(10,50,100,.2))},n.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),(0,s.x1)("editor.snippetTabstopHighlightBorder",null,n.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),(0,s.x1)("editor.snippetFinalTabstopHighlightBackground",null,n.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),(0,s.x1)("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new r.Q1(new r.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},n.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new r.Q1(new r.bU(155,185,85,.2))),Z=new r.Q1(new r.bU(255,0,0,.2)),J=(0,s.x1)("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},n.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),ee=(0,s.x1)("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},n.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),te=((0,s.x1)("diffEditor.insertedLineBackground",{dark:X,light:X,hcDark:null,hcLight:null},n.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("diffEditor.removedLineBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},n.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("diffEditorGutter.insertedLineBackground",null,n.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),(0,s.x1)("diffEditorGutter.removedLineBackground",null,n.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),(0,s.x1)("diffEditorOverview.insertedForeground",null,n.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content."))),ie=(0,s.x1)("diffEditorOverview.removedForeground",null,n.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),se=((0,s.x1)("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},n.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),(0,s.x1)("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},n.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),(0,s.x1)("diffEditor.border",{dark:null,light:null,hcDark:c,hcLight:c},n.kg("diffEditorBorder","Border color between the two text editors.")),(0,s.x1)("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},n.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),(0,s.x1)("diffEditor.unchangedRegionBackground","sideBar.background",n.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),(0,s.x1)("diffEditor.unchangedRegionForeground","foreground",n.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),(0,s.x1)("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},n.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),(0,s.x1)("widget.shadow",{dark:(0,s.JO)(r.Q1.black,.36),light:(0,s.JO)(r.Q1.black,.16),hcDark:null,hcLight:null},n.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),ne=(0,s.x1)("widget.border",{dark:null,light:null,hcDark:c,hcLight:c},n.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),re=(0,s.x1)("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},n.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),oe=((0,s.x1)("toolbar.hoverOutline",{dark:null,light:null,hcDark:h,hcLight:h},n.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),(0,s.x1)("toolbar.activeBackground",{dark:(0,s.a)(re,.1),light:(0,s.e$)(re,.1),hcDark:null,hcLight:null},n.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),(0,s.x1)("breadcrumb.foreground",(0,s.JO)(o,.8),n.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items."))),ae=(0,s.x1)("breadcrumb.background",C,n.kg("breadcrumbsBackground","Background color of breadcrumb items.")),le=(0,s.x1)("breadcrumb.focusForeground",{light:(0,s.e$)(o,.2),dark:(0,s.a)(o,.1),hcDark:(0,s.a)(o,.1),hcLight:(0,s.a)(o,.1)},n.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),ce=(0,s.x1)("breadcrumb.activeSelectionForeground",{light:(0,s.e$)(o,.2),dark:(0,s.a)(o,.1),hcDark:(0,s.a)(o,.1),hcLight:(0,s.a)(o,.1)},n.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),he=((0,s.x1)("breadcrumbPicker.background",E,n.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),r.Q1.fromHex("#40C8AE").transparent(.5)),de=r.Q1.fromHex("#40A6FF").transparent(.5),ue=r.Q1.fromHex("#606060").transparent(.4),ge=(0,s.x1)("merge.currentHeaderBackground",{dark:he,light:he,hcDark:null,hcLight:null},n.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),pe=((0,s.x1)("merge.currentContentBackground",(0,s.JO)(ge,.4),n.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.incomingHeaderBackground",{dark:de,light:de,hcDark:null,hcLight:null},n.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),me=((0,s.x1)("merge.incomingContentBackground",(0,s.JO)(pe,.4),n.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.commonHeaderBackground",{dark:ue,light:ue,hcDark:null,hcLight:null},n.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),fe=((0,s.x1)("merge.commonContentBackground",(0,s.JO)(me,.4),n.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1)("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},n.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),_e=((0,s.x1)("editorOverviewRuler.currentContentForeground",{dark:(0,s.JO)(ge,1),light:(0,s.JO)(ge,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.incomingContentForeground",{dark:(0,s.JO)(pe,1),light:(0,s.JO)(pe,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.commonContentForeground",{dark:(0,s.JO)(me,1),light:(0,s.JO)(me,1),hcDark:fe,hcLight:fe},n.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),(0,s.x1)("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},n.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),ve=(0,s.x1)("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",n.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Ce=(0,s.x1)("problemsErrorIcon.foreground",w,n.kg("problemsErrorIconForeground","The color used for the problems error icon.")),be=(0,s.x1)("problemsWarningIcon.foreground",T,n.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),Ee=(0,s.x1)("problemsInfoIcon.foreground",k,n.kg("problemsInfoIconForeground","The color used for the problems info icon.")),Se=(0,s.x1)("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},n.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),ye=(0,s.x1)("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},n.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),we=(0,s.x1)("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},n.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),Le=(0,s.x1)("minimap.infoHighlight",{dark:k,light:k,hcDark:A,hcLight:A},n.kg("minimapInfo","Minimap marker color for infos.")),Re=(0,s.x1)("minimap.warningHighlight",{dark:T,light:T,hcDark:x,hcLight:x},n.kg("overviewRuleWarning","Minimap marker color for warnings.")),Te=(0,s.x1)("minimap.errorHighlight",{dark:new r.Q1(new r.bU(255,18,18,.7)),light:new r.Q1(new r.bU(255,18,18,.7)),hcDark:new r.Q1(new r.bU(255,50,50,1)),hcLight:"#B5200D"},n.kg("minimapError","Minimap marker color for errors.")),xe=(0,s.x1)("minimap.background",null,n.kg("minimapBackground","Minimap background color.")),ke=(0,s.x1)("minimap.foregroundOpacity",r.Q1.fromHex("#000f"),n.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),Ae=((0,s.x1)("minimapSlider.background",(0,s.JO)(m,.5),n.kg("minimapSliderBackground","Minimap slider background color.")),(0,s.x1)("minimapSlider.hoverBackground",(0,s.JO)(f,.5),n.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),(0,s.x1)("minimapSlider.activeBackground",(0,s.JO)(_,.5),n.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),(0,s.x1)("charts.foreground",o,n.kg("chartsForeground","The foreground color used in charts.")),(0,s.x1)("charts.lines",(0,s.JO)(o,.5),n.kg("chartsLines","The color used for horizontal lines in charts.")),(0,s.x1)("charts.red",w,n.kg("chartsRed","The red color used in chart visualizations.")),(0,s.x1)("charts.blue",k,n.kg("chartsBlue","The blue color used in chart visualizations.")),(0,s.x1)("charts.yellow",T,n.kg("chartsYellow","The yellow color used in chart visualizations.")),(0,s.x1)("charts.orange",Se,n.kg("chartsOrange","The orange color used in chart visualizations.")),(0,s.x1)("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},n.kg("chartsGreen","The green color used in chart visualizations.")),(0,s.x1)("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},n.kg("chartsPurple","The purple color used in chart visualizations.")),(0,s.x1)("input.background",{dark:"#3C3C3C",light:r.Q1.white,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputBoxBackground","Input box background."))),Ne=(0,s.x1)("input.foreground",o,n.kg("inputBoxForeground","Input box foreground.")),Ie=(0,s.x1)("input.border",{dark:null,light:null,hcDark:c,hcLight:c},n.kg("inputBoxBorder","Input box border.")),Oe=(0,s.x1)("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:c,hcLight:c},n.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),De=(0,s.x1)("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},n.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),Me=(0,s.x1)("inputOption.activeBackground",{dark:(0,s.JO)(l,.4),light:(0,s.JO)(l,.2),hcDark:r.Q1.transparent,hcLight:r.Q1.transparent},n.kg("inputOption.activeBackground","Background hover color of options in input fields.")),Pe=(0,s.x1)("inputOption.activeForeground",{dark:r.Q1.white,light:r.Q1.black,hcDark:o,hcLight:o},n.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),Fe=((0,s.x1)("input.placeholderForeground",{light:(0,s.JO)(o,.5),dark:(0,s.JO)(o,.5),hcDark:(0,s.JO)(o,.7),hcLight:(0,s.JO)(o,.7)},n.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),(0,s.x1)("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationInfoBackground","Input validation background color for information severity."))),Ue=(0,s.x1)("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),He=(0,s.x1)("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:c,hcLight:c},n.kg("inputValidationInfoBorder","Input validation border color for information severity.")),Be=(0,s.x1)("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),We=(0,s.x1)("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),Ve=(0,s.x1)("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:c,hcLight:c},n.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),ze=(0,s.x1)("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("inputValidationErrorBackground","Input validation background color for error severity.")),Ge=(0,s.x1)("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:o},n.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),je=(0,s.x1)("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:c,hcLight:c},n.kg("inputValidationErrorBorder","Input validation border color for error severity.")),Ke=(0,s.x1)("dropdown.background",{dark:"#3C3C3C",light:r.Q1.white,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("dropdownBackground","Dropdown background.")),Ye=(0,s.x1)("dropdown.listBackground",{dark:null,light:null,hcDark:r.Q1.black,hcLight:r.Q1.white},n.kg("dropdownListBackground","Dropdown list background.")),qe=(0,s.x1)("dropdown.foreground",{dark:"#F0F0F0",light:o,hcDark:r.Q1.white,hcLight:o},n.kg("dropdownForeground","Dropdown foreground.")),$e=(0,s.x1)("dropdown.border",{dark:Ke,light:"#CECECE",hcDark:c,hcLight:c},n.kg("dropdownBorder","Dropdown border.")),Qe=(0,s.x1)("button.foreground",r.Q1.white,n.kg("buttonForeground","Button foreground color.")),Xe=(0,s.x1)("button.separator",(0,s.JO)(Qe,.4),n.kg("buttonSeparator","Button separator color.")),Ze=(0,s.x1)("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},n.kg("buttonBackground","Button background color.")),Je=(0,s.x1)("button.hoverBackground",{dark:(0,s.a)(Ze,.2),light:(0,s.e$)(Ze,.2),hcDark:Ze,hcLight:Ze},n.kg("buttonHoverBackground","Button background color when hovering.")),et=(0,s.x1)("button.border",c,n.kg("buttonBorder","Button border color.")),tt=(0,s.x1)("button.secondaryForeground",{dark:r.Q1.white,light:r.Q1.white,hcDark:r.Q1.white,hcLight:o},n.kg("buttonSecondaryForeground","Secondary button foreground color.")),it=(0,s.x1)("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:r.Q1.white},n.kg("buttonSecondaryBackground","Secondary button background color.")),st=(0,s.x1)("button.secondaryHoverBackground",{dark:(0,s.a)(it,.2),light:(0,s.e$)(it,.2),hcDark:null,hcLight:null},n.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),nt=(0,s.x1)("radio.activeForeground",Pe,n.kg("radioActiveForeground","Foreground color of active radio option.")),rt=(0,s.x1)("radio.activeBackground",Me,n.kg("radioBackground","Background color of active radio option.")),ot=(0,s.x1)("radio.activeBorder",Oe,n.kg("radioActiveBorder","Border color of the active radio option.")),at=(0,s.x1)("radio.inactiveForeground",null,n.kg("radioInactiveForeground","Foreground color of inactive radio option.")),lt=(0,s.x1)("radio.inactiveBackground",null,n.kg("radioInactiveBackground","Background color of inactive radio option.")),ct=(0,s.x1)("radio.inactiveBorder",{light:(0,s.JO)(nt,.2),dark:(0,s.JO)(nt,.2),hcDark:(0,s.JO)(nt,.4),hcLight:(0,s.JO)(nt,.2)},n.kg("radioInactiveBorder","Border color of the inactive radio option.")),ht=(0,s.x1)("radio.inactiveHoverBackground",De,n.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),dt=(0,s.x1)("checkbox.background",Ke,n.kg("checkbox.background","Background color of checkbox widget.")),ut=((0,s.x1)("checkbox.selectBackground",E,n.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),(0,s.x1)("checkbox.foreground",qe,n.kg("checkbox.foreground","Foreground color of checkbox widget."))),gt=(0,s.x1)("checkbox.border",$e,n.kg("checkbox.border","Border color of checkbox widget.")),pt=((0,s.x1)("checkbox.selectBorder",a,n.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),(0,s.x1)("keybindingLabel.background",{dark:new r.Q1(new r.bU(128,128,128,.17)),light:new r.Q1(new r.bU(221,221,221,.4)),hcDark:r.Q1.transparent,hcLight:r.Q1.transparent},n.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut."))),mt=(0,s.x1)("keybindingLabel.foreground",{dark:r.Q1.fromHex("#CCCCCC"),light:r.Q1.fromHex("#555555"),hcDark:r.Q1.white,hcLight:o},n.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),ft=(0,s.x1)("keybindingLabel.border",{dark:new r.Q1(new r.bU(51,51,51,.6)),light:new r.Q1(new r.bU(204,204,204,.4)),hcDark:new r.Q1(new r.bU(111,195,223)),hcLight:c},n.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),_t=(0,s.x1)("keybindingLabel.bottomBorder",{dark:new r.Q1(new r.bU(68,68,68,.6)),light:new r.Q1(new r.bU(187,187,187,.4)),hcDark:new r.Q1(new r.bU(111,195,223)),hcLight:o},n.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),vt=(0,s.x1)("list.focusBackground",null,n.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ct=(0,s.x1)("list.focusForeground",null,n.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),bt=(0,s.x1)("list.focusOutline",{dark:l,light:l,hcDark:h,hcLight:h},n.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Et=(0,s.x1)("list.focusAndSelectionOutline",null,n.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),St=(0,s.x1)("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),yt=(0,s.x1)("list.activeSelectionForeground",{dark:r.Q1.white,light:r.Q1.white,hcDark:null,hcLight:null},n.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),wt=(0,s.x1)("list.activeSelectionIconForeground",null,n.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Lt=(0,s.x1)("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Rt=(0,s.x1)("list.inactiveSelectionForeground",null,n.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Tt=(0,s.x1)("list.inactiveSelectionIconForeground",null,n.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),xt=(0,s.x1)("list.inactiveFocusBackground",null,n.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),kt=(0,s.x1)("list.inactiveFocusOutline",null,n.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),At=(0,s.x1)("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:r.Q1.white.transparent(.1),hcLight:r.Q1.fromHex("#0F4A85").transparent(.1)},n.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Nt=(0,s.x1)("list.hoverForeground",null,n.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),It=(0,s.x1)("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},n.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),Ot=(0,s.x1)("list.dropBetweenBackground",{dark:a,light:a,hcDark:null,hcLight:null},n.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),Dt=(0,s.x1)("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:l,hcLight:l},n.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Mt=(0,s.x1)("list.focusHighlightForeground",{dark:Dt,light:(0,s.Hz)(St,Dt,"#BBE7FF"),hcDark:Dt,hcLight:Dt},n.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),Pt=((0,s.x1)("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},n.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),(0,s.x1)("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},n.kg("listErrorForeground","Foreground color of list items containing errors.")),(0,s.x1)("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},n.kg("listWarningForeground","Foreground color of list items containing warnings.")),(0,s.x1)("listFilterWidget.background",{light:(0,s.e$)(E,0),dark:(0,s.a)(E,0),hcDark:E,hcLight:E},n.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees."))),Ft=(0,s.x1)("listFilterWidget.outline",{dark:r.Q1.transparent,light:r.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},n.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Ut=(0,s.x1)("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:c,hcLight:c},n.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Ht=(0,s.x1)("listFilterWidget.shadow",se,n.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),Bt=((0,s.x1)("list.filterMatchBackground",{dark:U,light:U,hcDark:null,hcLight:null},n.kg("listFilterMatchHighlight","Background color of the filtered match.")),(0,s.x1)("list.filterMatchBorder",{dark:B,light:B,hcDark:c,hcLight:h},n.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),(0,s.x1)("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},n.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized.")),(0,s.x1)("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},n.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides."))),Wt=(0,s.x1)("tree.inactiveIndentGuidesStroke",(0,s.JO)(Bt,.4),n.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),Vt=(0,s.x1)("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},n.kg("tableColumnsBorder","Table border color between columns.")),zt=(0,s.x1)("tree.tableOddRowsBackground",{dark:(0,s.JO)(o,.04),light:(0,s.JO)(o,.04),hcDark:null,hcLight:null},n.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),Gt=((0,s.x1)("editorActionList.background",E,n.kg("editorActionListBackground","Action List background color.")),(0,s.x1)("editorActionList.foreground",S,n.kg("editorActionListForeground","Action List foreground color.")),(0,s.x1)("editorActionList.focusForeground",yt,n.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),(0,s.x1)("editorActionList.focusBackground",St,n.kg("editorActionListFocusBackground","Action List background color for the focused item.")),(0,s.x1)("menu.border",{dark:null,light:null,hcDark:c,hcLight:c},n.kg("menuBorder","Border color of menus."))),jt=(0,s.x1)("menu.foreground",qe,n.kg("menuForeground","Foreground color of menu items.")),Kt=(0,s.x1)("menu.background",Ke,n.kg("menuBackground","Background color of menu items.")),Yt=(0,s.x1)("menu.selectionForeground",yt,n.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),qt=(0,s.x1)("menu.selectionBackground",St,n.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),$t=(0,s.x1)("menu.selectionBorder",{dark:null,light:null,hcDark:h,hcLight:h},n.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),Qt=(0,s.x1)("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:c,hcLight:c},n.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),Xt=(0,s.x1)("quickInput.background",E,n.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),Zt=(0,s.x1)("quickInput.foreground",S,n.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),Jt=(0,s.x1)("quickInputTitle.background",{dark:new r.Q1(new r.bU(255,255,255,.105)),light:new r.Q1(new r.bU(0,0,0,.06)),hcDark:"#000000",hcLight:r.Q1.white},n.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),ei=(0,s.x1)("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:r.Q1.white,hcLight:"#0F4A85"},n.kg("pickerGroupForeground","Quick picker color for grouping labels.")),ti=(0,s.x1)("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:r.Q1.white,hcLight:"#0F4A85"},n.kg("pickerGroupBorder","Quick picker color for grouping borders.")),ii=(0,s.x1)("quickInput.list.focusBackground",null,"",void 0,n.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),si=(0,s.x1)("quickInputList.focusForeground",yt,n.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),ni=(0,s.x1)("quickInputList.focusIconForeground",wt,n.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),ri=(0,s.x1)("quickInputList.focusBackground",{dark:(0,s.yL)(ii,St),light:(0,s.yL)(ii,St),hcDark:null,hcLight:null},n.kg("quickInput.listFocusBackground","Quick picker background color for the focused item."));(0,s.x1)("search.resultsInfoForeground",{light:o,dark:(0,s.JO)(o,.65),hcDark:o,hcLight:o},n.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),(0,s.x1)("searchEditor.findMatchBackground",{light:(0,s.JO)(U,.66),dark:(0,s.JO)(U,.66),hcDark:U,hcLight:U},n.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),(0,s.x1)("searchEditor.findMatchBorder",{light:(0,s.JO)(B,.66),dark:(0,s.JO)(B,.66),hcDark:B,hcLight:B},n.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},83844:(e,t,i)=>{"use strict";i.d(t,{Bb:()=>h,Fd:()=>g,Gu:()=>d,HP:()=>u,Hz:()=>b,JO:()=>v,a:()=>_,e$:()=>f,oG:()=>E,x1:()=>m,yL:()=>C});var s=i(66782),n=i(90766),r=i(47661),o=i(41234),a=i(78748),l=i(46359),c=i(78209);function h(e){return`--vscode-${e.replace(/\./g,"-")}`}function d(e){return`var(${h(e)})`}function u(e,t){return`var(${h(e)}, ${t})`}const g={ColorContribution:"base.contributions.colors"};const p=new class{constructor(){this._onDidChangeSchema=new o.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,s=!1,n){const r={id:e,description:i,defaults:t,needsTransparency:s,deprecationMessage:n};this.colorsById[e]=r;const o={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return n&&(o.deprecationMessage=n),s&&(o.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",o.patternErrorMessage=c.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:i,oneOf:[o,{type:"string",const:"default",description:c.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i?.defaults){return S(null!==(s=i.defaults)&&"object"===typeof s&&"light"in s&&"dark"in s?i.defaults[t.type]:i.defaults,t)}var s}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const i=-1===e.indexOf(".")?0:1,s=-1===t.indexOf(".")?0:1;return i!==s?i-s:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function m(e,t,i,s,n){return p.registerColor(e,t,i,s,n)}function f(e,t){return{op:0,value:e,factor:t}}function _(e,t){return{op:1,value:e,factor:t}}function v(e,t){return{op:2,value:e,factor:t}}function C(...e){return{op:4,values:e}}function b(e,t,i){return{op:6,if:e,then:t,else:i}}function E(e,t,i,s){return{op:5,value:e,background:t,factor:i,transparency:s}}function S(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?r.Q1.fromHex(e):t.getColor(e):e instanceof r.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return S(e.value,t)?.darken(e.factor);case 1:return S(e.value,t)?.lighten(e.factor);case 2:return S(e.value,t)?.transparent(e.factor);case 3:{const i=S(e.background,t);return i?S(e.value,t)?.makeOpaque(i):S(e.value,t)}case 4:for(const i of e.values){const e=S(i,t);if(e)return e}return;case 6:return S(t.defines(e.if)?e.then:e.else,t);case 5:{const i=S(e.value,t);if(!i)return;const s=S(e.background,t);return s?i.isDarkerThan(s)?r.Q1.getLighterColor(i,s,e.factor).transparent(e.transparency):r.Q1.getDarkerColor(i,s,e.factor).transparent(e.transparency):i.transparent(e.factor*e.transparency)}default:throw(0,s.xb)(e)}}(e,t):void 0}l.O.add(g.ColorContribution,p);const y="vscode://schemas/workbench-colors",w=l.O.as(a.F.JSONContribution);w.registerSchema(y,p.getColorSchema());const L=new n.uC((()=>w.notifySchemaChanged(y)),200);p.onDidChangeSchema((()=>{L.isScheduled()||L.schedule()}))},61394:(e,t,i)=>{"use strict";i.d(t,{$_:()=>E,HT:()=>_,pU:()=>f});var s=i(90766),n=i(10350),r=i(18956),o=i(25689),a=i(41234),l=i(631),c=i(79400),h=i(78209),d=i(78748),u=i(46359);var g,p;!function(e){e.getDefinition=function(e,t){let i=e.defaults;for(;o.L.isThemeIcon(i);){const e=m.getIcon(i.id);if(!e)return;i=e.defaults}return i}}(g||(g={})),function(e){e.toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map((e=>({format:e.format,location:e.location.toString()})))}},e.fromJSONObject=function(e){const t=e=>(0,l.Kg)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every((e=>(0,l.Kg)(e.format)&&(0,l.Kg)(e.location))))return{weight:t(e.weight),style:t(e.style),src:e.src.map((e=>({format:e.format,location:c.r.parse(e.location)})))}}}(p||(p={}));const m=new class{constructor(){this._onDidChange=new a.vl,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,h.kg)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,h.kg)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${o.L.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,s){const n=this.iconsById[e];if(n){if(i&&!n.description){n.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return n}const r={id:e,description:i,defaults:t,deprecationMessage:s};this.iconsById[e]=r;const o={$ref:"#/definitions/icons"};return s&&(o.deprecationMessage=s),i&&(o.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=o,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map((e=>this.iconsById[e]))}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;o.L.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const s=Object.keys(this.iconsById).map((e=>this.iconsById[e]));for(const n of s.filter((e=>!!e.description)).sort(e))i.push(`|<i class="${t(n)}"></i>|${n.id}|${o.L.isThemeIcon(n.defaults)?n.defaults.id:n.id}|${n.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const n of s.filter((e=>!o.L.isThemeIcon(e.defaults))).sort(e))i.push(`|<i class="${t(n)}"></i>|${n.id}|`);return i.join("\n")}};function f(e,t,i,s){return m.registerIcon(e,t,i,s)}function _(){return m}u.O.add("base.contributions.icons",m),function(){const e=(0,r.J)();for(const t in e){const i="\\"+e[t].toString(16);m.registerIcon(t,{fontCharacter:i})}}();const v="vscode://schemas/icons",C=u.O.as(d.F.JSONContribution);C.registerSchema(v,m.getIconSchema());const b=new s.uC((()=>C.notifySchemaChanged(v)),200);m.onDidChange((()=>{b.isScheduled()||b.schedule()}));const E=f("widget-close",n.W.close,(0,h.kg)("widgetClose","Icon for the close action in widgets."));f("goto-previous-location",n.W.arrowUp,(0,h.kg)("previousChangeIcon","Icon for goto previous editor location.")),f("goto-next-location",n.W.arrowDown,(0,h.kg)("nextChangeIcon","Icon for goto next editor location.")),o.L.modify(n.W.sync,"spin"),o.L.modify(n.W.loading,"spin")},86723:(e,t,i)=>{"use strict";var s;function n(e){return e===s.HIGH_CONTRAST_DARK||e===s.HIGH_CONTRAST_LIGHT}function r(e){return e===s.DARK||e===s.HIGH_CONTRAST_DARK}i.d(t,{Bb:()=>n,HD:()=>r,zM:()=>s}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(s||(s={}))},47612:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>d,Gy:()=>l,Pz:()=>h,Yf:()=>c,lR:()=>p,zy:()=>g});var s=i(41234),n=i(5662),r=i(63591),o=i(46359),a=i(86723);const l=(0,r.u1)("themeService");function c(e){return{id:e}}function h(e){switch(e){case a.zM.DARK:return"vs-dark";case a.zM.HIGH_CONTRAST_DARK:return"hc-black";case a.zM.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const d={ThemingContribution:"base.contributions.theming"};const u=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new s.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,n.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function g(e){return u.onColorThemeChange(e)}o.O.add(d.ThemingContribution,u);class p extends n.jG{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},47579:(e,t,i)=>{"use strict";i.d(t,{$D:()=>s,I_:()=>r,To:()=>n,Ym:()=>o});const s=(0,i(63591).u1)("undoRedoService");class n{constructor(e,t){this.resource=e,this.elements=t}}class r{static{this._ID=0}constructor(){this.id=r._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new r}}class o{static{this._ID=0}constructor(){this.id=o._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new o}}},37227:(e,t,i)=>{"use strict";i.d(t,{A7:()=>l,Q_:()=>d,VR:()=>o,cn:()=>p,ct:()=>m,jB:()=>a,kF:()=>g,mX:()=>u});var s=i(78209),n=i(74027),r=(i(4853),i(79400));const o=(0,i(63591).u1)("contextService");function a(e){const t=e;return"string"===typeof t?.id&&r.r.isUri(t.uri)}function l(e){const t=e;return"string"===typeof t?.id&&!a(e)&&!function(e){const t=e;return"string"===typeof t?.id&&r.r.isUri(t.configPath)}(e)}const c={id:"ext-dev"},h={id:"empty-window"};function d(e,t){if("string"===typeof e||"undefined"===typeof e)return"string"===typeof e?{id:(0,n.P8)(e)}:t?c:h;const i=e;return i.configuration?{id:i.id,configPath:i.configuration}:1===i.folders.length?{id:i.id,uri:i.folders[0].uri}:{id:i.id}}class u{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const g="code-workspace",p=((0,s.kg)("codeWorkspace","Code Workspace"),"4064f6ec-cb38-4ad0-af64-ee6467e63c82");function m(e){return e.id===p}},51465:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s=(0,i(63591).u1)("workspaceTrustManagementService")},61850:(e,t,i)=>{"use strict";i.d(t,{IK:()=>h,bC:()=>u,RQ:()=>d,KV:()=>l});const s=new RegExp("^[$A-Z_\\s]+$");var n=i(92727);const r={},o={};class a{static getOrCreate(e){return o[e]||(o[e]=new a(e)),o[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}whenLoaded(){return this._lazyLoadPromise}load(){return this._loadingTriggered||(this._loadingTriggered=!0,r[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}}function l(e){const t=e.id;r[t]=e,n.eo.register(e);const i=a.getOrCreate(t);n.eo.setMonarchTokensProvider(t,i.whenLoaded().then((e=>e.language))),n.eo.onLanguage(t,(()=>{i.load().then((e=>{n.eo.setLanguageConfiguration(t,e.conf)}))})),i.whenLoaded().then((e=>{e.completions&&c(t,e.completions)}))}function c(e,t){const i=[];const r=n.eo[e];r&&!r.modeConfiguration.completionItems||i.push(n.eo.registerCompletionItemProvider(e,function(e,t){const i=[];for(const n in t)if(!isNaN(Number(n))){const r=`${t[n].toLowerCase()}List`;if(r in e)for(const t of e[r])i.push({label:t,filterText:s.test(t)?t.toLowerCase():t,insertText:t,kind:Number(n),range:{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1}})}return i.sort(((e,t)=>e.filterText.localeCompare(t.filterText))),{provideCompletionItems(e,t,s,n){const r=e.getWordUntilPosition(t),o={startLineNumber:t.lineNumber,startColumn:r.startColumn,endLineNumber:t.lineNumber,endColumn:r.endColumn};return{suggestions:i.map((e=>Object.assign(Object.assign({},e),{range:o})))}}}}(t,n.eo.CompletionItemKind))),r&&i.push(r.onDidChange((()=>{!function(){for(var e;i.length>0;)null===(e=i.pop())||void 0===e||e.dispose()}(),c(e,t)})))}class h{constructor(e,t,i){this._onDidChange=new n.vl,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}const d={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},u={validate:!0}},92727:(e,t,i)=>{"use strict";i.d(t,{EN:()=>s.editor,eo:()=>s.languages,vl:()=>s.Emitter});var s=i(80781)},23934:(e,t,i)=>{"use strict";var s=i(61850),n=i(92727);const r="clickhouse";(0,s.KV)({id:r,extensions:[],loader:()=>i.e(6397).then(i.bind(i,66397)).then((e=>({conf:e.conf,language:e.language,completions:e.completionLists})))});const o=new s.IK(r,s.bC,s.RQ);n.eo[r]=o;(0,s.KV)({id:"s-expression",extensions:[],loader:()=>i.e(5475).then(i.bind(i,5475))}),n.EN.defineTheme("vs",{base:"vs",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"keyword.type",foreground:"4d932d"},{token:"string.sql",foreground:"a31515"},{token:"support.function",foreground:"7a3e9d"},{token:"constant.other.color",foreground:"7a3e9d"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#EFEFEF"}}),n.EN.defineTheme("vs-dark",{base:"vs-dark",inherit:!0,rules:[{token:"string.tablepath",foreground:"338186"},{token:"constant.yql",foreground:"608b4e"},{token:"storage.type",foreground:"6A8759"},{token:"string.sql",foreground:"ce9178"},{token:"support.function",foreground:"9e7bb0"},{token:"constant.other.color",foreground:"9e7bb0"},{token:"comment",foreground:"969896"}],colors:{"editor.lineHighlightBackground":"#282A2E"}});i(23195);(0,s.KV)({id:"yql_ansi",extensions:[],loader:()=>i.e(9507).then(i.bind(i,19507)).then((e=>({conf:e.conf,language:e.getLanguage({ansi:!0})})))});i(43733)},23195:(e,t,i)=>{"use strict";i.d(t,{l:()=>n});var s=i(61850);const n="yql";(0,s.KV)({id:n,extensions:[],loader:()=>i.e(9507).then(i.bind(i,19507)).then((e=>({conf:e.conf,language:e.getLanguage()})))})},67796:e=>{"use strict";var t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach((function(e){s[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},s)).join("")}catch(n){return!1}}()?Object.assign:function(e,n){for(var r,o,a=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))i.call(r,c)&&(a[c]=r[c]);if(t){o=t(r);for(var h=0;h<o.length;h++)s.call(r,o[h])&&(a[o[h]]=r[o[h]])}}return a}},67063:(e,t,i)=>{var s=i(59284),n=i(14538),r=i(13260),o=i(41470),a=s.createElement,l=i(52893),c=i(74073),h=i(46556),d=i(53753),u=i(53205),g=i(23909);e.exports=n({propTypes:{data:r.any.isRequired,search:r.oneOfType([r.func,r.bool]),searchOptions:r.shape({debounceTime:r.number}),onClick:r.func,validateQuery:r.func,isExpanded:r.func,filterOptions:r.shape({cacheResults:r.bool,ignoreCase:r.bool}),query:r.string,verboseShowOriginal:r.bool},getDefaultProps:function(){return{data:null,search:c,searchOptions:{debounceTime:0},className:"",id:"json-"+Date.now(),onClick:g,filterOptions:{cacheResults:!0,ignoreCase:!1},validateQuery:function(e){return e.length>=2},isExpanded:function(e,t){return!1},verboseShowOriginal:!1}},getInitialState:function(){return{query:this.props.query||""}},render:function(){var e=this.props,t=this.state,i=""!==t.query&&e.validateQuery(t.query),s=i?t.filterer(t.query):e.data,n=i&&d(s);return a("div",{className:"json-inspector "+e.className},this.renderToolbar(),n?a("div",{className:"json-inspector__not-found"},"Nothing found"):a(l,{data:s,onClick:e.onClick,id:e.id,getOriginal:this.getOriginal,query:i?new RegExp(t.query,e.filterOptions.ignoreCase?"i":""):null,label:"root",root:!0,isExpanded:e.isExpanded,interactiveLabel:e.interactiveLabel,verboseShowOriginal:e.verboseShowOriginal}))},renderToolbar:function(){var e=this.props.search;if(e)return a("div",{className:"json-inspector__toolbar"},a(e,{onChange:o(this.search,this.props.searchOptions.debounceTime),data:this.props.data,query:this.state.query}))},search:function(e){this.setState({query:e})},componentWillMount:function(){this.createFilterer(this.props.data,this.props.filterOptions)},componentWillReceiveProps:function(e){this.createFilterer(e.data,e.filterOptions),"string"===typeof e.query&&e.query!==this.state.query&&this.setState({query:e.query})},shouldComponentUpdate:function(e,t){return e.query!==this.props.query||t.query!==this.state.query||e.data!==this.props.data||e.onClick!==this.props.onClick},createFilterer:function(e,t){this.setState({filterer:h(e,t)})},getOriginal:function(e){return u(this.props.data,e)}})},46556:(e,t,i)=>{var s=i(40652),n=Object.keys,r=i(63817),o=i(53753);function a(e,t,i){return n(e).reduce((function(n,c){var h,d=e[c];return r(d)?(l(t,c,i)||l(t,d,i))&&(n[c]=d):l(t,c,i)?n[c]=d:(h=a(d,t,i),o(h)||s(n,function(e,t){var i={};return i[e]=t,i}(c,h))),n}),{})}function l(e,t,i){if(t){var s=String(t),n=e;return i.ignoreCase&&(s=s.toLowerCase(),n=n.toLowerCase()),-1!==s.indexOf(n)}}e.exports=function(e,t){t||(t={cacheResults:!0});var i={};return function(s){if(!t.cacheResults)return a(e,s,t);var n;if(!i[s])for(var r=s.length-1;r>0;r-=1)if(n=s.substr(0,r),i[n]){i[s]=a(i[n],s,t);break}return i[s]||(i[s]=a(e,s,t)),i[s]}}},49022:(e,t,i)=>{var s=i(59284),n=i(14538),r=s.createElement;e.exports=n({getDefaultProps:function(){return{string:"",highlight:""}},shouldComponentUpdate:function(e){return e.highlight!==this.props.highlight},render:function(){var e=this.props,t=e.string.search(e.highlight);if(!e.highlight||-1===t)return r("span",null,e.string);var i=e.highlight.source.length,s=e.string.substr(t,i);return r("span",null,e.string.split(e.highlight).map((function(e,t){return r("span",{key:t},t>0?r("span",{className:"json-inspector__hl"},s):null,e)})))}})},53753:e=>{e.exports=function(e){return 0===Object.keys(e).length}},63817:(e,t,i)=>{var s=i(67857);e.exports=function(e){var t=s(e);return"Object"!==t&&"Array"!==t}},52893:(e,t,i)=>{var s=i(59284),n=i(14538),r=i(1445),o=i(68155),a=i(67857),l=i(63817),c=i(49022),h=s.createElement,d=n({getInitialState:function(){return{expanded:this._isInitiallyExpanded(this.props)}},getDefaultProps:function(){return{root:!1,prefix:""}},render:function(){var e="id_"+o(),t=this.props,i={path:this.keypath(),key:t.label.toString(),value:t.data},s=this._onClick.bind(this,i);return h("div",{className:this.getClassName(),id:"leaf-"+this._rootPath()},h("input",{className:"json-inspector__radio",type:"radio",name:t.id,id:e,tabIndex:-1}),h("label",{className:"json-inspector__line",htmlFor:e,onClick:s},h("div",{className:"json-inspector__flatpath"},i.path),h("span",{className:"json-inspector__key"},this.format(i.key),":",this.renderInteractiveLabel(i.key,!0)),this.renderTitle(),this.renderShowOriginalButton()),this.renderChildren())},renderTitle:function(){var e=this.data(),t=a(e);switch(t){case"Array":return h("span",{className:"json-inspector__value json-inspector__value_helper"},"[] "+u(e.length));case"Object":return h("span",{className:"json-inspector__value json-inspector__value_helper"},"{} "+u(Object.keys(e).length));default:return h("span",{className:"json-inspector__value json-inspector__value_"+t.toLowerCase()},this.format(String(e)),this.renderInteractiveLabel(e,!1))}},renderChildren:function(){var e=this.props,t=this._rootPath(),i=this.data();return this.state.expanded&&!l(i)?Object.keys(i).map((function(s){var n=i[s],r=!this.state.original||!!e.verboseShowOriginal&&e.query;return h(d,{data:n,label:s,prefix:t,onClick:e.onClick,id:e.id,query:e.query,getOriginal:r?e.getOriginal:null,key:g(s,n),isExpanded:e.isExpanded,interactiveLabel:e.interactiveLabel,verboseShowOriginal:e.verboseShowOriginal})}),this):null},renderShowOriginalButton:function(){var e=this.props;return l(e.data)||this.state.original||!e.getOriginal||!e.query||p(this.keypath(),e.query)?null:h("span",{className:"json-inspector__show-original",onClick:this._onShowOriginalClick})},renderInteractiveLabel:function(e,t){return"function"===typeof this.props.interactiveLabel?h(this.props.interactiveLabel,{value:String(e),originalValue:e,isKey:t,keypath:this.keypath()}):null},componentWillReceiveProps:function(e){e.query&&this.setState({expanded:!p(e.label,e.query)}),this.props.query&&!e.query&&this.setState({expanded:this._isInitiallyExpanded(e)})},_rootPath:function(){return this.props.prefix+"."+this.props.label},keypath:function(){return this._rootPath().substr(6)},data:function(){return this.state.original||this.props.data},format:function(e){return h(c,{string:e,highlight:this.props.query})},getClassName:function(){var e="json-inspector__leaf";return this.props.root&&(e+=" json-inspector__leaf_root"),this.state.expanded&&(e+=" json-inspector__leaf_expanded"),l(this.props.data)||(e+=" json-inspector__leaf_composite"),e},toggle:function(){this.setState({expanded:!this.state.expanded})},_onClick:function(e,t){this.toggle(),this.props.onClick(e),t.stopPropagation()},_onShowOriginalClick:function(e){this.setState({original:this.props.getOriginal(this.keypath())}),e.stopPropagation()},_isInitiallyExpanded:function(e){var t=this.keypath();return!!e.root||(e.query?!p(t,e.query)&&"function"===typeof e.getOriginal:e.isExpanded(t,e.data))}});function u(e){return e+(1===e?" item":" items")}function g(e,t){return l(t)?e+":"+r(String(t)):e+"["+a(t)+"]"}function p(e,t){return-1!==e.indexOf(t)}e.exports=d},53205:(e,t,i)=>{var s=i(67857);function n(e){return parseInt(e,10)}e.exports=function e(t,i){var r=i.split("."),o=r.shift();if(!o)return t;var a=s(t);return"Array"===a&&t[n(o)]?e(t[n(o)],r.join(".")):"Object"===a&&t[o]?e(t[o],r.join(".")):void 0}},23909:e=>{e.exports=function(){}},74073:(e,t,i)=>{var s=i(59284),n=i(14538),r=s.createElement,o=i(23909);e.exports=n({getDefaultProps:function(){return{onChange:o}},render:function(){return r("input",{className:"json-inspector__search",type:"search",placeholder:"Search",onChange:this.onChange})},onChange:function(e){this.props.onChange(e.target.value)}})},67857:e=>{e.exports=function(e){return Object.prototype.toString.call(e).slice(8,-1)}},68155:e=>{var t=Math.ceil(10*Math.random());e.exports=function(){return++t}},40652:e=>{"use strict";e.exports=Object.assign||function(e,t){for(var i,s,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),r=1;r<arguments.length;r++){i=arguments[r],s=Object.keys(Object(i));for(var o=0;o<s.length;o++)n[s[o]]=i[s[o]]}return n}},6376:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MonacoDiffEditor:()=>c,default:()=>g,monaco:()=>s});var s=i(80781),n=i(59284);function r(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function o(){}var a=function(){return a=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};function l(e){var t=e.width,i=e.height,o=e.value,l=e.defaultValue,c=e.language,h=e.theme,d=e.options,u=e.overrideServices,g=e.editorWillMount,p=e.editorDidMount,m=e.editorWillUnmount,f=e.onChange,_=e.className,v=e.original,C=e.originalUri,b=e.modifiedUri,E=(0,n.useRef)(null),S=(0,n.useRef)(null),y=(0,n.useRef)(null),w=(0,n.useRef)(null),L=r(t),R=r(i),T=(0,n.useMemo)((function(){return{width:L,height:R}}),[L,R]);return(0,n.useEffect)((function(){E.current&&(g(s),S.current=s.editor.createDiffEditor(E.current,a(a(a({},_?{extraEditorClassName:_}:{}),d),h?{theme:h}:{}),u),function(){var e=null!=o?o:l,t=null===C||void 0===C?void 0:C(s),i=null===b||void 0===b?void 0:b(s),n=t&&s.editor.getModel(t),r=i&&s.editor.getModel(i);n?(n.setValue(v),s.editor.setModelLanguage(n,c)):n=s.editor.createModel(e,c,t),r?(n.setValue(e),s.editor.setModelLanguage(r,c)):r=s.editor.createModel(e,c,i),S.current.setModel({original:n,modified:r})}(),function(){p(S.current,s);var e=S.current.getModel().modified;y.current=e.onDidChangeContent((function(t){w.current||f(e.getValue(),t)}))}())}),[]),(0,n.useEffect)((function(){S.current&&S.current.updateOptions(a(a({},_?{extraEditorClassName:_}:{}),d))}),[_,d]),(0,n.useEffect)((function(){S.current&&S.current.layout()}),[t,i]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel(),t=e.original,i=e.modified;s.editor.setModelLanguage(t,c),s.editor.setModelLanguage(i,c)}}),[c]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel().modified;w.current=!0,S.current.getModifiedEditor().pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:o}]),S.current.getModifiedEditor().pushUndoStop(),w.current=!1}}),[o]),(0,n.useEffect)((function(){s.editor.setTheme(h)}),[h]),(0,n.useEffect)((function(){if(S.current){var e=S.current.getModel().original;v!==e.getValue()&&e.setValue(v)}}),[v]),(0,n.useEffect)((function(){return function(){if(S.current){m(S.current,s),S.current.dispose();var e=S.current.getModel(),t=e.original,i=e.modified;t&&t.dispose(),i&&i.dispose()}y.current&&y.current.dispose()}}),[]),n.createElement("div",{ref:E,style:T,className:"react-monaco-editor-container"})}l.defaultProps={width:"100%",height:"100%",original:null,value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:o,editorDidMount:o,editorWillUnmount:o,onChange:o,className:null},l.displayName="MonacoDiffEditor";const c=l;var h=function(){return h=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},h.apply(this,arguments)},d=function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(i[s[n]]=e[s[n]])}return i};function u(e){var t=e.width,i=e.height,o=e.value,a=e.defaultValue,l=e.language,c=e.theme,u=e.options,g=e.overrideServices,p=e.editorWillMount,m=e.editorDidMount,f=e.editorWillUnmount,_=e.onChange,v=e.className,C=e.uri,b=(0,n.useRef)(null),E=(0,n.useRef)(null),S=(0,n.useRef)(null),y=(0,n.useRef)(null),w=r(t),L=r(i),R=(0,n.useRef)(_);R.current=_;var T=(0,n.useMemo)((function(){return{width:w,height:L}}),[w,L]);return(0,n.useEffect)((function(){var e=null!==o?o:a;if(b.current){var t=h(h({},u),p(s)||{}),i=null===C||void 0===C?void 0:C(s),n=i&&s.editor.getModel(i);n?(n.setValue(e),s.editor.setModelLanguage(n,l)):n=s.editor.createModel(e,l,i),E.current=s.editor.create(b.current,h(h(h({model:n},v?{extraEditorClassName:v}:{}),t),c?{theme:c}:{}),g),m(E.current,s),S.current=E.current.onDidChangeModelContent((function(e){var t;y.current||null===(t=R.current)||void 0===t||t.call(R,E.current.getValue(),e)}))}}),[]),(0,n.useEffect)((function(){if(E.current){if(o===E.current.getValue())return;var e=E.current.getModel();y.current=!0,E.current.pushUndoStop(),e.pushEditOperations([],[{range:e.getFullModelRange(),text:o}],void 0),E.current.pushUndoStop(),y.current=!1}}),[o]),(0,n.useEffect)((function(){if(E.current){var e=E.current.getModel();s.editor.setModelLanguage(e,l)}}),[l]),(0,n.useEffect)((function(){if(E.current){u.model;var e=d(u,["model"]);E.current.updateOptions(h(h({},v?{extraEditorClassName:v}:{}),e))}}),[v,u]),(0,n.useEffect)((function(){E.current&&E.current.layout()}),[t,i]),(0,n.useEffect)((function(){s.editor.setTheme(c)}),[c]),(0,n.useEffect)((function(){return function(){E.current&&(f(E.current,s),E.current.dispose()),S.current&&S.current.dispose()}}),[]),n.createElement("div",{ref:b,style:T,className:"react-monaco-editor-container"})}u.defaultProps={width:"100%",height:"100%",value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:o,editorDidMount:o,editorWillUnmount:o,onChange:o,className:null},u.displayName="MonacoEditor";const g=u},61283:(e,t,i)=>{"use strict";i.d(t,{A:()=>x});var s=i(59284),n=i(13260),r=i.n(n),o="undefined"!==typeof window?window:null,a=null===o,l=a?void 0:o.document,c="addEventListener",h="removeEventListener",d="getBoundingClientRect",u="_a",g="_b",p="_c",m="horizontal",f=function(){return!1},_=a?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=l.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",v=function(e){return"string"===typeof e||e instanceof String},C=function(e){if(v(e)){var t=l.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},b=function(e,t,i){var s=e[t];return void 0!==s?s:i},E=function(e,t,i,s){if(t){if("end"===s)return 0;if("center"===s)return e/2}else if(i){if("start"===s)return 0;if("center"===s)return e/2}return e},S=function(e,t){var i=l.createElement("div");return i.className="gutter gutter-"+t,i},y=function(e,t,i){var s={};return v(t)?s[e]=t:s[e]=_+"("+t+"% - "+i+"px)",s},w=function(e,t){var i;return(i={})[e]=t+"px",i};const L=function(e,t){if(void 0===t&&(t={}),a)return{};var i,s,n,r,_,v,L=e;Array.from&&(L=Array.from(L));var R=C(L[0]).parentNode,T=getComputedStyle?getComputedStyle(R):null,x=T?T.flexDirection:null,k=b(t,"sizes")||L.map((function(){return 100/L.length})),A=b(t,"minSize",100),N=Array.isArray(A)?A:L.map((function(){return A})),I=b(t,"maxSize",1/0),O=Array.isArray(I)?I:L.map((function(){return I})),D=b(t,"expandToMin",!1),M=b(t,"gutterSize",10),P=b(t,"gutterAlign","center"),F=b(t,"snapOffset",30),U=Array.isArray(F)?F:L.map((function(){return F})),H=b(t,"dragInterval",1),B=b(t,"direction",m),W=b(t,"cursor",B===m?"col-resize":"row-resize"),V=b(t,"gutter",S),z=b(t,"elementStyle",y),G=b(t,"gutterStyle",w);function j(e,t,s,n){var r=z(i,t,s,n);Object.keys(r).forEach((function(t){e.style[t]=r[t]}))}function K(){return v.map((function(e){return e.size}))}function Y(e){return"touches"in e?e.touches[0][s]:e[s]}function q(e){var t=v[this.a],i=v[this.b],s=t.size+i.size;t.size=e/this.size*s,i.size=s-e/this.size*s,j(t.element,t.size,this[g],t.i),j(i.element,i.size,this[p],i.i)}function $(e){var i,s=v[this.a],n=v[this.b];this.dragging&&(i=Y(e)-this.start+(this[g]-this.dragOffset),H>1&&(i=Math.round(i/H)*H),i<=s.minSize+s.snapOffset+this[g]?i=s.minSize+this[g]:i>=this.size-(n.minSize+n.snapOffset+this[p])&&(i=this.size-(n.minSize+this[p])),i>=s.maxSize-s.snapOffset+this[g]?i=s.maxSize+this[g]:i<=this.size-(n.maxSize-n.snapOffset+this[p])&&(i=this.size-(n.maxSize+this[p])),q.call(this,i),b(t,"onDrag",f)(K()))}function Q(){var e=v[this.a].element,t=v[this.b].element,s=e[d](),o=t[d]();this.size=s[i]+o[i]+this[g]+this[p],this.start=s[n],this.end=s[r]}function X(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var i=e[_];return 0===i?null:i-=B===m?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(R);if(null===t)return e;if(N.reduce((function(e,t){return e+t}),0)>t)return e;var i=0,s=[],n=e.map((function(n,r){var o=t*n/100,a=E(M,0===r,r===e.length-1,P),l=N[r]+a;return o<l?(i+=l-o,s.push(0),l):(s.push(o-l),o)}));return 0===i?e:n.map((function(e,n){var r=e;if(i>0&&s[n]-i>0){var o=Math.min(i,s[n]-i);i-=o,r=e-o}return r/t*100}))}function Z(){var e=this,i=v[e.a].element,s=v[e.b].element;e.dragging&&b(t,"onDragEnd",f)(K()),e.dragging=!1,o[h]("mouseup",e.stop),o[h]("touchend",e.stop),o[h]("touchcancel",e.stop),o[h]("mousemove",e.move),o[h]("touchmove",e.move),e.stop=null,e.move=null,i[h]("selectstart",f),i[h]("dragstart",f),s[h]("selectstart",f),s[h]("dragstart",f),i.style.userSelect="",i.style.webkitUserSelect="",i.style.MozUserSelect="",i.style.pointerEvents="",s.style.userSelect="",s.style.webkitUserSelect="",s.style.MozUserSelect="",s.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",l.body.style.cursor=""}function J(e){if(!("button"in e)||0===e.button){var i=this,s=v[i.a].element,n=v[i.b].element;i.dragging||b(t,"onDragStart",f)(K()),e.preventDefault(),i.dragging=!0,i.move=$.bind(i),i.stop=Z.bind(i),o[c]("mouseup",i.stop),o[c]("touchend",i.stop),o[c]("touchcancel",i.stop),o[c]("mousemove",i.move),o[c]("touchmove",i.move),s[c]("selectstart",f),s[c]("dragstart",f),n[c]("selectstart",f),n[c]("dragstart",f),s.style.userSelect="none",s.style.webkitUserSelect="none",s.style.MozUserSelect="none",s.style.pointerEvents="none",n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",i.gutter.style.cursor=W,i.parent.style.cursor=W,l.body.style.cursor=W,Q.call(i),i.dragOffset=Y(e)-i.end}}B===m?(i="width",s="clientX",n="left",r="right",_="clientWidth"):"vertical"===B&&(i="height",s="clientY",n="top",r="bottom",_="clientHeight"),k=X(k);var ee=[];function te(e){var t=e.i===ee.length,i=t?ee[e.i-1]:ee[e.i];Q.call(i);var s=t?i.size-e.minSize-i[p]:e.minSize+i[g];q.call(i,s)}return(v=L.map((function(e,t){var s,n={element:C(e),size:k[t],minSize:N[t],maxSize:O[t],snapOffset:U[t],i:t};if(t>0&&((s={a:t-1,b:t,dragging:!1,direction:B,parent:R})[g]=E(M,t-1===0,!1,P),s[p]=E(M,!1,t===L.length-1,P),"row-reverse"===x||"column-reverse"===x)){var r=s.a;s.a=s.b,s.b=r}if(t>0){var o=V(t,B,n.element);!function(e,t,s){var n=G(i,t,s);Object.keys(n).forEach((function(t){e.style[t]=n[t]}))}(o,M,t),s[u]=J.bind(s),o[c]("mousedown",s[u]),o[c]("touchstart",s[u]),R.insertBefore(o,n.element),s.gutter=o}return j(n.element,n.size,E(M,0===t,t===L.length-1,P),t),t>0&&ee.push(s),n}))).forEach((function(e){var t=e.element[d]()[i];t<e.minSize&&(D?te(e):e.minSize=t)})),{setSizes:function(e){var t=X(e);t.forEach((function(e,i){if(i>0){var s=ee[i-1],n=v[s.a],r=v[s.b];n.size=t[i-1],r.size=e,j(n.element,n.size,s[g],n.i),j(r.element,r.size,s[p],r.i)}}))},getSizes:K,collapse:function(e){te(v[e])},destroy:function(e,t){ee.forEach((function(s){if(!0!==t?s.parent.removeChild(s.gutter):(s.gutter[h]("mousedown",s[u]),s.gutter[h]("touchstart",s[u])),!0!==e){var n=z(i,s.a.size,s[g]);Object.keys(n).forEach((function(e){v[s.a].element.style[e]="",v[s.b].element.style[e]=""}))}}))},parent:R,pairs:ee}};function R(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&-1===t.indexOf(s)&&(i[s]=e[s]);return i}var T=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,i=R(e,["children","gutter"]);i.gutter=function(e,i){var s;return t?s=t(e,i):(s=document.createElement("div")).className="gutter gutter-"+i,s.__isSplitGutter=!0,s},this.split=L(this.parent.children,i)},t.prototype.componentDidUpdate=function(e){var t=this,i=this.props;i.children;var s=i.minSize,n=i.sizes,r=i.collapsed,o=R(i,["children","minSize","sizes","collapsed"]),a=e.minSize,l=e.sizes,c=e.collapsed,h=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(i){return t.props[i]!==e[i]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(s)&&Array.isArray(a)){var d=!1;s.forEach((function(e,t){d=d||e!==a[t]})),h=h||d}else h=!(!Array.isArray(s)&&!Array.isArray(a))||(h||s!==a);if(h)o.minSize=s,o.sizes=n||this.split.getSizes(),this.split.destroy(!0,!0),o.gutter=function(e,t,i){return i.previousSibling},this.split=L(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),o);else if(n){var u=!1;n.forEach((function(e,t){u=u||e!==l[t]})),u&&this.split.setSizes(this.props.sizes)}Number.isInteger(r)&&(r!==c||h)&&this.split.collapse(r)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var i=t.children,n=R(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return s.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},n),i)},t}(s.Component);T.propTypes={sizes:r().arrayOf(r().number),minSize:r().oneOfType([r().number,r().arrayOf(r().number)]),maxSize:r().oneOfType([r().number,r().arrayOf(r().number)]),expandToMin:r().bool,gutterSize:r().number,gutterAlign:r().string,snapOffset:r().oneOfType([r().number,r().arrayOf(r().number)]),dragInterval:r().number,direction:r().string,cursor:r().string,gutter:r().func,elementStyle:r().func,gutterStyle:r().func,onDrag:r().func,onDragStart:r().func,onDragEnd:r().func,collapsed:r().number,children:r().arrayOf(r().element)},T.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const x=T},72093:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});const s={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var n,r=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)}for(var a=[],l=0;l<256;++l)a.push((l+256).toString(16).slice(1));function c(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}const h=function(e,t,i){if(s.randomUUID&&!t&&!e)return s.randomUUID();var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return c(n)}},57949:(e,t,i)=>{"use strict";i.d(t,{F:()=>B});var s=i(60712),n=i(59284),r=i(56993),o=i.n(r),a=i(53302),l=i(63126),c=i(72837);const h=JSON.parse('{"label_error":"Error","label_empty":"No data"}'),d=JSON.parse('{"label_error":"\u041e\u0448\u0438\u0431\u043a\u0430","label_empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),u=(0,c.N)({en:h,ru:d},"ydb-navigation-tree"),g=(0,a.o)("ydb-navigation-tree-view-empty");function p({level:e}){return(0,s.jsx)(l.G,{name:(0,s.jsx)("span",{className:g(),children:u("label_empty")}),level:e})}const m=(0,a.o)("ydb-navigation-tree-view-error");function f({level:e}){return(0,s.jsx)(l.G,{name:(0,s.jsx)("span",{className:m(),children:u("label_error")}),level:e})}var _=i(80953);const v=(0,a.o)("ydb-navigation-tree-view-loader");function C({level:e}){return(0,s.jsx)(l.G,{name:(0,s.jsx)("div",{className:v(),children:(0,s.jsx)(_.t,{size:"xs"})}),level:e})}function b(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.22 15.03s-.001 0 0 0a.75.75 0 0 0 1.06-1.06l-.47-.47H10a3.016 3.016 0 0 0 1.507-.405A2.999 2.999 0 0 0 13 10.5V7.896h.003a2.735 2.735 0 0 0 .785-.366 2.75 2.75 0 1 0-2.288.366V10.5A1.5 1.5 0 0 1 10 12h-.19l.47-.47s0 .001 0 0a.75.75 0 0 0-1.06-1.06l-.47.47-1.28 1.28a.75.75 0 0 0 0 1.06l1.75 1.75ZM5.72 2.97a.75.75 0 0 1 1.06 0l.47.47 1.28 1.28a.748.748 0 0 1 0 1.06L6.78 7.53c.001 0 0 0 0 0a.751.751 0 0 1-1.06-1.06L6.19 6H6a1.5 1.5 0 0 0-1.5 1.5v2.604a2.757 2.757 0 0 1 2 2.646 2.738 2.738 0 0 1-1.212 2.28 2.737 2.737 0 0 1-1.538.47A2.747 2.747 0 0 1 1 12.75a2.751 2.751 0 0 1 2-2.646V7.5a2.999 2.999 0 0 1 3-3h.19l-.47-.47a.75.75 0 0 1 0-1.06Zm-.908 9.121A1.246 1.246 0 0 1 5 12.75a1.25 1.25 0 1 1-.188-.659ZM11 5.25a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0Z"})}))}function E(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H5.5H7H9H10.5H12C13.1046 2 14 2.89543 14 4V5.5V12C14 13.1046 13.1046 14 12 14H10.5H9H7H5.5H4C2.89543 14 2 13.1046 2 12V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM10.5 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V5.5H10.5L10.5 12.5ZM9 5.5L9 12.5H7L7 5.5H9ZM3.5 5.5H5.5L5.5 12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V5.5Z"})}))}function S(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M448 80V128C448 172.2 347.7 208 224 208C100.3 208 0 172.2 0 128V80C0 35.82 100.3 0 224 0C347.7 0 448 35.82 448 80zM393.2 214.7C413.1 207.3 433.1 197.8 448 186.1V288C448 332.2 347.7 368 224 368C100.3 368 0 332.2 0 288V186.1C14.93 197.8 34.02 207.3 54.85 214.7C99.66 230.7 159.5 240 224 240C288.5 240 348.3 230.7 393.2 214.7V214.7zM54.85 374.7C99.66 390.7 159.5 400 224 400C288.5 400 348.3 390.7 393.2 374.7C413.1 367.3 433.1 357.8 448 346.1V432C448 476.2 347.7 512 224 512C100.3 512 0 476.2 0 432V346.1C14.93 357.8 34.02 367.3 54.85 374.7z"})}))}function y(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.338542 6 0.722222 6L3.61111 6V3L0.722222 3C0.338542 3 0 2.67188 0 2.25C0 1.85156 0.338542 1.5 0.722222 1.5L3.61111 1.5V0.750001C3.61111 0.351563 3.94965 0 4.33333 0C4.73958 0 5.05556 0.351563 5.05556 0.750001H5.77778C7.53819 0.750001 8.98264 2.03906 9.32118 3.75H12V5.25H9.32118C9.29095 5.4049 9.25189 5.55606 9.20457 5.70291C9.10459 5.73587 9.00778 5.77066 8.9144 5.80723C8.505 5.96755 8.12646 6.17556 7.83841 6.44187C7.5498 6.70871 7.3 7.08678 7.3 7.56255V7.90902C6.83862 8.12843 6.32337 8.25 5.77778 8.25H5.05556C5.05556 8.67188 4.73958 9 4.33333 9C3.94965 9 3.61111 8.67188 3.61111 8.25V7.5L0.722222 7.5C0.338542 7.5 0 7.17188 0 6.75ZM16 8.5V7.5625C16 6.70312 14.1964 6 12 6C9.78571 6 8 6.70312 8 7.5625V8.5C8 9.37891 9.78571 10.0625 12 10.0625C14.1964 10.0625 16 9.37891 16 8.5ZM16 9.65234C15.7321 9.86719 15.375 10.0625 15.0179 10.1992C14.2143 10.5117 13.1429 10.6875 12 10.6875C10.8393 10.6875 9.76786 10.5117 8.96429 10.1992C8.60714 10.0625 8.25 9.86719 8 9.65234V11.625C8 12.5039 9.78571 13.1875 12 13.1875C14.1964 13.1875 16 12.5039 16 11.625V9.65234ZM12 13.8125C10.8393 13.8125 9.76786 13.6367 8.96429 13.3242C8.60714 13.1875 8.25 12.9922 8 12.7773V14.4375C8 15.3164 9.78571 16 12 16C14.1964 16 16 15.3164 16 14.4375V12.7773C15.7321 12.9922 15.375 13.1875 15.0179 13.3242C14.2143 13.6367 13.1429 13.8125 12 13.8125Z"})}))}function w(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.75C0 6.35156 0.351562 6 0.75 6L3.75 6V3L0.75 3C0.351562 3 0 2.67188 0 2.25C0 1.85156 0.351562 1.5 0.75 1.5L3.75 1.5V0.750001C3.75 0.351563 4.10156 0 4.5 0C4.92188 0 5.25 0.351563 5.25 0.750001H6C7.82812 0.750001 9.32812 2.03906 9.67969 3.75H12V5.25H9.67969C9.60376 5.62455 9.47428 5.97724 9.2995 6.30005H7.19969C6.09701 6.30005 5.26846 7.20143 5.25 8.25C5.25 8.67188 4.92188 9 4.5 9C4.10156 9 3.75 8.67188 3.75 8.25V7.5L0.75 7.5C0.351562 7.5 0 7.17188 0 6.75ZM16 8.28571C16 7.58259 15.4336 7 14.75 7H7.25C6.54688 7 6 7.58259 6 8.28571V14.7143C6 15.4375 6.54688 16 7.25 16H14.75C15.4336 16 16 15.4375 16 14.7143V8.28571ZM10.375 9.57143V11.5H7.25V9.57143H10.375ZM7.25 14.7143V12.7857H10.375V14.7143H7.25ZM14.75 14.7143H11.625V12.7857H14.75V14.7143ZM14.75 9.57143V11.5H11.625V9.57143H14.75Z"})}))}function L(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M13.2812 4.875H8.40625L6.78125 3.25H2.71875C2.0332 3.25 1.5 3.80859 1.5 4.46875V11.7812C1.5 12.4668 2.0332 13 2.71875 13H13.2812C13.9414 13 14.5 12.4668 14.5 11.7812V6.09375C14.5 5.43359 13.9414 4.875 13.2812 4.875Z"})}))}function R(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{d:"M15.2109 9.06445C15.4648 8.6582 15.1602 8.125 14.6777 8.125H4.54688C4.01367 8.125 3.37891 8.50586 3.125 8.9375L1.29688 12.0859C1.04297 12.4922 1.34766 13 1.83008 13H11.9609C12.4941 13 13.1289 12.6445 13.3828 12.2129L15.2109 9.06445ZM4.54688 7.3125H12.875V6.09375C12.875 5.43359 12.3164 4.875 11.6562 4.875H7.59375L5.96875 3.25H1.90625C1.2207 3.25 0.6875 3.80859 0.6875 4.46875V11.5527L2.43945 8.53125C2.87109 7.79492 3.6582 7.3125 4.54688 7.3125Z"})}))}function T(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.24935 2.94323L8.5 9.5H12.1L11.1446 14.2772C11.0322 14.839 11.7994 15.1177 12.0738 14.6147L15.9111 7.57956C16.1765 7.09311 15.8244 6.5 15.2703 6.5H12.9L13.5325 3.33728C13.6192 2.90413 13.2879 2.5 12.8461 2.5H9.74611C9.49194 2.5 9.27821 2.69069 9.24935 2.94323ZM7.40003 10.5L8.25717 3H1.625C0.710938 3 0 3.73633 0 4.625V12.75C0 13.6641 0.710938 14.375 1.625 14.375H10.1517C10.1538 14.2803 10.1646 14.1822 10.1848 14.0811L10.901 10.5H7.40003ZM5.6875 8.6875V6.25H1.625V8.6875H5.6875ZM1.625 10.3125V12.75H5.6875V10.3125H1.625Z"})}))}function x(e){return(0,s.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.01033 3.79551C2.11275 2.787 2.96447 2 4 2H7.3H8.8H12C13.1046 2 14 2.89543 14 4V5.5V8.2002V9.7002V12C14 13.1046 13.1046 14 12 14H8.8H7.3H4C2.89543 14 2 13.1046 2 12V9.7002V8.2002V5.5V4C2 3.93096 2.0035 3.86275 2.01033 3.79551ZM8.8 12.5H11.5C12.0523 12.5 12.5 12.0523 12.5 11.5V9.7002H8.8V12.5ZM7.3 9.7002V12.5H4.5C3.94772 12.5 3.5 12.0523 3.5 11.5V9.7002H7.3ZM8.8 8.2002H12.5V5.5H8.8L8.8 8.2002ZM7.3 5.5L7.3 8.2002H3.5V5.5H7.3Z"})}))}function k(e){return(0,s.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,s.jsx)("rect",{x:"2",y:"2.20001",width:"9",height:"2.5",rx:"0.5"}),(0,s.jsx)("rect",{x:"5",y:"6.70001",width:"9",height:"2.5",rx:"0.5"}),(0,s.jsx)("rect",{x:"2",y:"11.2",width:"9",height:"2.5",rx:"0.5"})]}))}function A(e){return(0,s.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},e,{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.625 2H7.49951C6.47457 2.77006 5.7552 3.92488 5.55588 5.25H1.625V7.6875H5.79193C6.48417 9.6186 8.33076 11 10.5 11C10.877 11 11.2443 10.9583 11.5974 10.8792L12.7748 12.5799C12.4905 13.0601 11.9665 13.375 11.375 13.375H1.625C0.710938 13.375 0 12.6641 0 11.75V3.625C0 2.73633 0.710938 2 1.625 2ZM1.625 11.75V9.3125H5.6875V11.75H1.625Z"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4411 8.71106C14.0985 7.9983 14.5 7.04604 14.5 6C14.5 3.79086 12.7091 2 10.5 2C8.29086 2 6.5 3.79086 6.5 6C6.5 8.20914 8.29086 10 10.5 10C11.0316 10 11.5389 9.89631 12.0029 9.70806L14.2807 12.9981C14.5557 13.3955 15.1008 13.4946 15.4981 13.2195C15.8955 12.9444 15.9946 12.3993 15.7195 12.002L13.4411 8.71106ZM12.5 6C12.5 7.10457 11.6046 8 10.5 8C9.39543 8 8.5 7.10457 8.5 6C8.5 4.89543 9.39543 4 10.5 4C11.6046 4 12.5 4.89543 12.5 6Z"})]}))}function N(e){return"status"in e}function I(e,t,i,s=0){const n=e[t];if(n&&(i(n,s,t,e),!n.collapsed))for(const r of n.children)I(e,`${t}/${r}`,i,s+1)}var O;function D(e){return Object.assign(Object.assign(Object.assign({},{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]}),{expandable:"database"===e.type||"directory"===e.type}),e)}function M(e={},t){var i,s;switch(t.type){case O.ToggleCollapsed:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!e[t.payload.path].collapsed})});case O.StartLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!0,loaded:!1,error:!1,children:[]})});case O.FinishLoading:{const n=Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:Boolean(t.payload.data),error:!1})});if(t.payload.data){n[t.payload.path].children=t.payload.data.map((({name:e})=>e));for(const r of t.payload.data){const o=`${t.payload.path}/${r.name}`,{activePath:a=""}=t.payload,l=null!==(s=null===(i=e[o])||void 0===i?void 0:i.collapsed)&&void 0!==s?s:!a.startsWith(`${o}/`);n[o]=D(Object.assign(Object.assign({},r),{collapsed:l,path:o}))}}return t.payload.data&&0!==t.payload.data.length||(n[t.payload.path]=Object.assign(Object.assign({},n[t.payload.path]),{expandable:!1,collapsed:!0})),n}case O.ErrorLoading:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{loading:!1,loaded:!1,error:!0})});case O.ResetNode:return Object.assign(Object.assign({},e),{[t.payload.path]:Object.assign(Object.assign({},e[t.payload.path]),{collapsed:!0,loading:!1,loaded:!1,error:!1,children:[]})});default:return e}}function P(e,t){const i=[];return I(e,t,((e,t)=>{i.push(Object.assign(Object.assign({},e),{level:t}));const s=function(e,t){if(!e.collapsed)return e.loading?{path:e.path,status:"loading",level:t+1}:e.error?{path:e.path,status:"error",level:t+1}:e.loaded&&0===e.children.length?{path:e.path,status:"empty",level:t+1}:void 0}(e,t);s&&i.push(s)})),i}function F(e,t){switch(e){case"async_replication":return(0,s.jsx)(b,{height:16});case"database":return(0,s.jsx)(S,{height:14});case"directory":return t?(0,s.jsx)(L,{height:16}):(0,s.jsx)(R,{height:16});case"index":return(0,s.jsx)(T,{height:16});case"table":case"index_table":return(0,s.jsx)(x,{height:16});case"column_table":return(0,s.jsx)(E,{height:16});case"stream":case"topic":return(0,s.jsx)(k,{height:16});case"external_table":return(0,s.jsx)(w,{height:16});case"external_data_source":return(0,s.jsx)(y,{height:16});case"view":return(0,s.jsx)(A,{height:16});default:return null}}function U({path:e,fetchPath:t,activePath:i,state:r,level:o,dispatch:a,children:c,onActivate:h,getActions:d,onActionsOpenToggle:u,renderAdditionalNodeElements:g,cache:p}){const m=r[e];n.useEffect((()=>{m.collapsed?p||a({type:O.ResetNode,payload:{path:e}}):m.loaded||m.loading||(a({type:O.StartLoading,payload:{path:e}}),t(e).then((t=>{a({type:O.FinishLoading,payload:{path:e,activePath:i,data:t}})})).catch((t=>{a({type:O.ErrorLoading,payload:{path:e,error:t}})})))}),[m.collapsed]);const f=n.useCallback((()=>{h&&h(e)}),[e,h]),_=n.useCallback((()=>{a({type:O.ToggleCollapsed,payload:{path:e}})}),[a,e]),v=n.useMemo((()=>null===g||void 0===g?void 0:g(m.path,m.type)),[g,m]),C=n.useMemo((()=>null===d||void 0===d?void 0:d(m.path,m.type)),[d,m]),b=n.useCallback((e=>{null===u||void 0===u||u({path:m.path,type:m.type,isOpen:e})}),[m.path,m.type,u]);return(0,s.jsx)(l.G,{name:m.name,icon:F(m.type,m.collapsed),collapsed:m.collapsed,active:m.path===i,actions:C,additionalNodeElements:v,hasArrow:m.expandable,onClick:f,onArrowClick:_,onActionsOpenToggle:b,level:o,children:c})}!function(e){e.ToggleCollapsed="toggle-collapsed",e.StartLoading="start-loading",e.FinishLoading="finish-loading",e.ErrorLoading="error-loading",e.ResetNode="reset-node"}(O||(O={}));const H=e=>{const t=`${e.path}|${e.status}`;return"loading"===e.status?(0,s.jsx)(C,{level:e.level},t):"error"===e.status?(0,s.jsx)(f,{level:e.level},t):(0,s.jsx)(p,{level:e.level},t)};function B({rootState:e,fetchPath:t,getActions:i,renderAdditionalNodeElements:r,activePath:a,onActionsOpenToggle:l,onActivePathUpdate:c,cache:h=!0,virtualize:d=!1}){const[u,g]=n.useReducer(M,{[e.path]:D(e)}),p=n.useMemo((()=>P(u,e.path)),[e.path,u]),m=e=>(0,s.jsx)(U,{state:u,path:e.path,activePath:a,fetchPath:t,dispatch:g,onActivate:c,getActions:i,onActionsOpenToggle:l,renderAdditionalNodeElements:r,cache:h,level:e.level},e.path);return d?(0,s.jsx)(o(),{type:"uniform",length:p.length,useStaticSize:!0,itemRenderer:e=>{const t=p[e];return N(t)?H(t):m(t)}}):(0,s.jsx)(n.Fragment,{children:p.map((e=>N(e)?H(e):m(e)))})}},63126:(e,t,i)=>{"use strict";i.d(t,{G:()=>c});var s=i(60712),n=i(59284),r=i(40569),o=i(53302);const a="--ydb-tree-view-level",l=(0,o.o)("ydb-tree-view");function c({children:e,name:t,title:i,icon:o,collapsed:c=!0,active:h=!1,onClick:d,onArrowClick:u,onActionsOpenToggle:g,hasArrow:p=!1,actions:m,additionalNodeElements:f,level:_}){const v=n.useCallback((e=>{if(!d)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||d()}),[d]),C=u||d;let b="tree-view_arrow",E="tree-view_children";return c&&(b+=" tree-view_arrow-collapsed",E+=" tree-view_children-collapsed"),(0,s.jsx)("div",{className:l(),style:{[a]:_},children:(0,s.jsxs)("div",{className:"tree-view",children:[(0,s.jsxs)("div",{className:`tree-view_item ${l("item",{active:h})}`,onClick:v,children:[(0,s.jsx)("button",{type:"button",className:`${b} ${l("arrow",{collapsed:c,hidden:!p})}`,disabled:!C,onClick:C}),(0,s.jsxs)("div",{className:l("content"),children:[o&&(0,s.jsx)("div",{className:l("icon"),children:o}),(0,s.jsx)("div",{className:l("text"),title:i,children:t}),m&&m.length>0&&(0,s.jsxs)("div",{className:l("actions"),children:[f,(0,s.jsx)(r.r,{onOpenToggle:g,defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:m})]})]})]}),(0,s.jsx)("div",{className:`${E} ${l("container",{collapsed:c})}`,children:c?null:e})]})})}},53302:(e,t,i)=>{"use strict";i.d(t,{o:()=>s});const s=(0,i(82435).withNaming)({e:"__",m:"_"})},62469:()=>{},10713:()=>{},48215:()=>{},53396:()=>{},82320:()=>{},91434:()=>{},41614:(e,t,i)=>{"use strict";i.d(t,{parseYqlQuery:()=>fu,kh:()=>mu});var s,n,r,o,a=Object.defineProperty,l=(e,t)=>a(e,"name",{value:t,configurable:!0});(n=s||(s={})).EOF=-1,n.UNKNOWN_SOURCE_NAME="<unknown>",(o=r||(r={})).INVALID_TYPE=0,o.EPSILON=-2,o.MIN_USER_TOKEN_TYPE=1,o.EOF=s.EOF,o.DEFAULT_CHANNEL=0,o.HIDDEN_CHANNEL=1,o.MIN_USER_CHANNEL_VALUE=2;var c=l((e=>{const t=e;return void 0!==t.tokenSource&&void 0!==t.channel}),"isToken"),h=class{static{l(this,"BitSet")}data;constructor(e){this.data=e?new Uint32Array(e.map((e=>e>>>0))):new Uint32Array(1)}[Symbol.iterator](){const e=this.data.length;let t=0,i=this.data[t];const s=this.data;return{[Symbol.iterator](){return this},next:l((()=>{for(;t<e;){if(0!==i){const e=i&-i,s=(t<<5)+this.bitCount(e-1);return i^=e,{done:!1,value:s}}t++,t<e&&(i=s[t])}return{done:!0,value:void 0}}),"next")}}clear(e){void 0===e?this.data=new Uint32Array:(this.resize(e),this.data[e>>>5]&=~(1<<e))}or(e){const t=Math.min(this.data.length,e.data.length);for(let i=0;i<t;++i)this.data[i]|=e.data[i];if(this.data.length<e.data.length){this.resize((e.data.length<<5)-1);const i=e.data.length;for(let s=t;s<i;++s)this.data[s]=e.data[s]}}get(e){if(e<0)throw new RangeError("index cannot be negative");const t=e>>>5;return!(t>=this.data.length)&&0!==(this.data[t]&1<<e%32)}get length(){let e=0;const t=this.data.length,i=this.data;for(let s=0;s<t;s++)e+=this.bitCount(i[s]);return e}values(){const e=new Array(this.length);let t=0;const i=this.data.length;for(let s=0;s<i;++s){let i=this.data[s];for(;0!==i;){const n=i&-i;e[t++]=(s<<5)+this.bitCount(n-1),i^=n}}return e}nextSetBit(e){if(e<0)throw new RangeError("index cannot be negative");for(const t of this)if(t>=e)return t}set(e){if(e<0)throw new RangeError("index cannot be negative");this.resize(e),this.data[e>>>5]|=1<<e%32}toString(){return"{"+this.values().join(", ")+"}"}resize(e){const t=e+32>>>5;if(t<=this.data.length)return;const i=new Uint32Array(t);i.set(this.data),i.fill(0,this.data.length),this.data=i}bitCount(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,63&(e+=e>>16)}},d=class e{static{l(this,"MurmurHash")}static defaultSeed=701;constructor(){}static initialize(t=e.defaultSeed){return t}static updateFromComparable(e,t){return this.update(e,t?.hashCode()??0)}static update(e,t){return t=(t=Math.imul(t,3432918353))<<15|t>>>17,e=(e^=t=Math.imul(t,461845907))<<13|e>>>19,e=Math.imul(e,5)+3864292196}static finish(e,t){return e^=4*t,e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),e^=e>>>16}static hashCode(t,i){return e.finish(e.update(i??e.defaultSeed,t),1)}},u=class e{static{l(this,"ObjectEqualityComparator")}static instance=new e;hashCode(e){return null==e?0:e.hashCode()}equals(e,t){return null==e?null==t:e.equals(t)}},g=class e{static{l(this,"DefaultEqualityComparator")}static instance=new e;hashCode(e){return null==e?0:u.instance.hashCode(e)}equals(e,t){return null==e?null==t:"string"===typeof e||"number"===typeof e?e===t:u.instance.equals(e,t)}},p=class e{static{l(this,"HashSet")}static defaultLoadFactor=.75;static initialCapacity=16;comparator;buckets;threshold;itemCount=0;constructor(t,i=e.initialCapacity){if(t instanceof e){this.comparator=t.comparator,this.buckets=t.buckets.slice(0);for(let e=0;e<this.buckets.length;e++){const t=this.buckets[e];t&&(this.buckets[e]=t.slice(0))}this.itemCount=t.itemCount,this.threshold=t.threshold}else this.comparator=t??g.instance,this.buckets=this.createBuckets(i),this.threshold=Math.floor(e.initialCapacity*e.defaultLoadFactor)}getOrAdd(e){this.itemCount>this.threshold&&this.expand();const t=this.getBucket(e);let i=this.buckets[t];if(!i)return i=[e],this.buckets[t]=i,++this.itemCount,e;for(const s of i)if(this.comparator.equals(s,e))return s;return i.push(e),++this.itemCount,e}get(e){if(null==e)return e;const t=this.getBucket(e),i=this.buckets[t];if(i)for(const s of i)if(this.comparator.equals(s,e))return s}remove(e){if(null==e)return!1;const t=this.getBucket(e),i=this.buckets[t];if(!i)return!1;for(let s=0;s<i.length;s++){const t=i[s];if(this.comparator.equals(t,e))return i.splice(s,1),--this.itemCount,!0}return!1}hashCode(){let e=d.initialize();for(const t of this.buckets)if(null!=t)for(const i of t){if(null==i)break;e=d.update(e,this.comparator.hashCode(i))}return e=d.finish(e,this.size),e}equals(t){return t===this||t instanceof e&&(t.size===this.size&&this.containsAll(t))}add(e){return this.getOrAdd(e)===e}contains(e){return this.containsFast(e)}containsFast(e){return null!=e&&void 0!==this.get(e)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const e=new Array(this.size);let t=0;for(const i of this.buckets)if(null!=i)for(const s of i){if(null==s)break;e[t++]=s}return e}containsAll(t){if(t instanceof e){for(const e of t.buckets)if(null!=e)for(const t of e){if(null==t)break;if(!this.containsFast(t))return!1}}else for(const e of t)if(!this.containsFast(e))return!1;return!0}addAll(e){let t=!1;for(const i of e){this.getOrAdd(i)!==i&&(t=!0)}return t}clear(){this.buckets=this.createBuckets(e.initialCapacity),this.itemCount=0,this.threshold=Math.floor(e.initialCapacity*e.defaultLoadFactor)}toString(){if(0===this.size)return"{}";let e="{",t=!0;for(const i of this.buckets)if(null!=i)for(const s of i){if(null==s)break;t?t=!1:e+=", ",e+=s.toString()}return e+="}",e}toTableString(){let e="";for(const t of this.buckets){if(null==t){e+="null\n";continue}e+="[";let i=!0;for(const s of t)i?i=!1:e+=" ",e+=null==s?"_":s.toString();e+="]\n"}return e}getBucket(e){return this.comparator.hashCode(e)&this.buckets.length-1}expand(){const t=this.buckets,i=2*this.buckets.length,s=this.createBuckets(i);this.buckets=s,this.threshold=Math.floor(i*e.defaultLoadFactor);for(const e of t)if(e)for(const t of e){const e=this.getBucket(t);let i=this.buckets[e];i||(i=[],this.buckets[e]=i),i.push(t)}}get size(){return this.itemCount}get isEmpty(){return 0===this.itemCount}createBuckets(e){return new Array(e)}},m=class e{static{l(this,"Interval")}static INVALID_INTERVAL=new e(-1,-2);static INTERVAL_POOL_MAX_VALUE=1e3;static cache=[];start;stop;cachedHashCode;constructor(e,t){this.start=e,this.stop=t,this.cachedHashCode=Math.imul(651+e,31)+t}static of(t,i){return t!==i||t<0||t>e.INTERVAL_POOL_MAX_VALUE?new e(t,i):(e.cache[t]||(e.cache[t]=new e(t,t)),e.cache[t])}equals(e){return this.start===e.start&&this.stop===e.stop}hashCode(){return this.cachedHashCode}startsBeforeDisjoint(e){return this.start<e.start&&this.stop<e.start}startsBeforeNonDisjoint(e){return this.start<=e.start&&this.stop>=e.start}startsAfter(e){return this.start>e.start}startsAfterDisjoint(e){return this.start>e.stop}startsAfterNonDisjoint(e){return this.start>e.start&&this.start<=e.stop}disjoint(e){return this.startsBeforeDisjoint(e)||this.startsAfterDisjoint(e)}adjacent(e){return this.start===e.stop+1||this.stop===e.start-1}properlyContains(e){return e.start>=this.start&&e.stop<=this.stop}union(t){return e.of(Math.min(this.start,t.start),Math.max(this.stop,t.stop))}intersection(t){return e.of(Math.max(this.start,t.start),Math.min(this.stop,t.stop))}differenceNotProperlyContained(t){let i=null;return t.startsBeforeNonDisjoint(this)?i=e.of(Math.max(this.start,t.stop+1),this.stop):t.startsAfterNonDisjoint(this)&&(i=e.of(this.start,t.start-1)),i}toString(){return`${this.start}..${this.stop}`}get length(){return this.stop<this.start?0:this.stop-this.start+1}},f=class e{static{l(this,"Vocabulary")}static EMPTY_NAMES=[];static EMPTY_VOCABULARY=new e(e.EMPTY_NAMES,e.EMPTY_NAMES,e.EMPTY_NAMES);maxTokenType;literalNames;symbolicNames;displayNames;constructor(t,i,s){this.literalNames=t??e.EMPTY_NAMES,this.symbolicNames=i??e.EMPTY_NAMES,this.displayNames=s??e.EMPTY_NAMES,this.maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}static fromTokenNames(t){if(null==t||0===t.length)return e.EMPTY_VOCABULARY;const i=[...t],s=[...t];for(let e=0;e<t.length;e++){const n=t[e];if(null!=n){if(n.length>0){const t=n.codePointAt(0);if(39===t){s[e]=null;continue}if(t>=65&&t<=90){i[e]=null;continue}}i[e]=null,s[e]=null}}return new e(i,s,t)}getMaxTokenType(){return this.maxTokenType}getLiteralName(e){return e>=0&&e<this.literalNames.length?this.literalNames[e]:null}getSymbolicName(e){return e>=0&&e<this.symbolicNames.length?this.symbolicNames[e]:e===r.EOF?"EOF":null}getDisplayName(e){if(e>=0&&e<this.displayNames.length){const t=this.displayNames[e];if(null!=t)return t}const t=this.getLiteralName(e);if(null!=t)return t;const i=this.getSymbolicName(e);return null!=i?i:`${e}`}getLiteralNames(){return this.literalNames}getSymbolicNames(){return this.symbolicNames}getDisplayNames(){return this.displayNames}},_=class e{static{l(this,"IntervalSet")}intervals=[];cachedHashCode;constructor(e){if(e)if(Array.isArray(e))for(const t of e)this.addOne(t);else this.addSet(e)}static of(t,i){const s=new e;return s.addRange(t,i),s}static or(t){const i=new e;for(const e of t)i.addSet(e);return i}[Symbol.iterator](){return this.intervals[Symbol.iterator]()}get(e){return this.intervals[e]}get minElement(){return 0===this.intervals.length?r.INVALID_TYPE:this.intervals[0].start}get maxElement(){return 0===this.intervals.length?r.INVALID_TYPE:this.intervals[this.intervals.length-1].stop}clear(){this.cachedHashCode=void 0,this.intervals=[]}addOne(e){this.addInterval(new m(e,e))}addRange(e,t){this.addInterval(new m(e,t))}addInterval(e){if(this.cachedHashCode=void 0,0===this.intervals.length)this.intervals.push(e);else{for(let t=0;t<this.intervals.length;t++){const i=this.intervals[t];if(e.equals(i))return;if(e.adjacent(i)||!e.disjoint(i)){const s=e.union(i);this.intervals[t]=s;for(let e=t+1;e<this.intervals.length;){const i=this.intervals[e];if(!s.adjacent(i)&&s.disjoint(i))break;this.intervals.splice(e,1),this.intervals[t]=s.union(i)}return}if(e.startsBeforeDisjoint(i))return void this.intervals.splice(t,0,e)}this.intervals.push(e)}}addSet(e){return e.intervals.forEach((e=>this.addInterval(e)),this),this}complementWithVocabulary(t){const i=new e;return t?0===t.length?i:(i.addSet(t),i.subtract(this)):i}complement(t,i){const s=new e;return s.addInterval(new m(t,i)),s.subtract(this)}or(t){const i=new e;return i.addSet(this),t.forEach((e=>i.addSet(e))),i}and(t){if(0===t.length)return new e;const i=this.intervals,s=t.intervals;let n;const r=i.length,o=s.length;let a=0,l=0;for(;a<r&&l<o;){const t=i[a],r=s[l];t.startsBeforeDisjoint(r)?a++:r.startsBeforeDisjoint(t)?l++:t.properlyContains(r)?(n||(n=new e),n.addInterval(t.intersection(r)),l++):r.properlyContains(t)?(n||(n=new e),n.addInterval(t.intersection(r)),a++):t.disjoint(r)||(n||(n=new e),n.addInterval(t.intersection(r)),t.startsAfterNonDisjoint(r)?l++:r.startsAfterNonDisjoint(t)&&a++)}return n||new e}subtract(t){if(0===this.length)return new e;const i=new e(this);if(0===t.length)return i;let s=0,n=0;for(;s<i.intervals.length&&n<t.intervals.length;){const e=i.intervals[s],r=t.intervals[n];if(r.stop<e.start){n++;continue}if(r.start>e.stop){s++;continue}let o,a;r.start>e.start&&(o=new m(e.start,r.start-1)),r.stop<e.stop&&(a=new m(r.stop+1,e.stop)),o?a?(i.intervals[s]=o,i.intervals.splice(s+1,0,a),s++,n++):(i.intervals[s]=o,s++):a?(i.intervals[s]=a,n++):i.intervals.splice(s,1)}return i}contains(e){let t=0,i=this.intervals.length-1;for(;t<=i;){const s=Math.floor((t+i)/2),n=this.intervals[s];if(n.stop<e)t=s+1;else{if(!(n.start>e))return!0;i=s-1}}return!1}removeRange(e){if(this.cachedHashCode=void 0,e.start===e.stop)this.removeOne(e.start);else if(null!==this.intervals){let t=0;for(const i of this.intervals){if(e.stop<=i.start)return;if(e.start>i.start&&e.stop<i.stop){this.intervals[t]=new m(i.start,e.start);const s=new m(e.stop,i.stop);return void this.intervals.splice(t,0,s)}e.start<=i.start&&e.stop>=i.stop?(this.intervals.splice(t,1),t-=1):e.start<i.stop?this.intervals[t]=new m(i.start,e.start):e.stop<i.stop&&(this.intervals[t]=new m(e.stop,i.stop)),t+=1}}}removeOne(e){this.cachedHashCode=void 0;for(let t=0;t<this.intervals.length;t++){const i=this.intervals[t];if(e<i.start)return;if(e===i.start&&e===i.stop)return void this.intervals.splice(t,1);if(e===i.start)return void(this.intervals[t]=new m(i.start+1,i.stop));if(e===i.stop)return void(this.intervals[t]=new m(i.start,i.stop-1));if(e<i.stop){const s=new m(i.start,e-1);return this.intervals[t]=new m(e+1,i.stop),void this.intervals.splice(t,0,s)}}}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.intervals)e=d.update(e,t.start),e=d.update(e,t.stop);this.cachedHashCode=d.finish(e,2*this.intervals.length)}return this.cachedHashCode}equals(e){if(this===e)return!0;if(this.intervals.length!==e.intervals.length)return!1;for(let t=0;t<this.intervals.length;t++)if(!this.intervals[t].equals(e.intervals[t]))return!1;return!0}toString(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");for(let i=0;i<this.intervals.length;++i){const s=this.intervals[i],n=s.start,o=s.stop;n===o?n===r.EOF?t+="<EOF>":t+=e?"'"+String.fromCodePoint(n)+"'":n:t+=e?"'"+String.fromCodePoint(n)+"'..'"+String.fromCodePoint(o)+"'":n+".."+o,i<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toStringWithVocabulary(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");for(let i=0;i<this.intervals.length;++i){const s=this.intervals[i],n=s.start,o=s.stop;if(n===o)n===r.EOF?t+="<EOF>":t+=this.elementName(e,n);else for(let i=n;i<=o;++i)i>n&&(t+=", "),t+=this.elementName(e,i);i<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toStringWithRuleNames(e){if(0===this.intervals.length)return"{}";let t="";this.length>1&&(t+="{");const i=f.fromTokenNames(e);for(let s=0;s<this.intervals.length;++s){const e=this.intervals[s],n=e.start,o=e.stop;if(n===o)n===r.EOF?t+="<EOF>":t+=this.elementName(i,n);else for(let s=n;s<=o;++s)s>n&&(t+=", "),t+=this.elementName(i,s);s<this.intervals.length-1&&(t+=", ")}return this.length>1&&(t+="}"),t}toArray(){const e=[];for(const t of this.intervals)for(let i=t.start;i<=t.stop;i++)e.push(i);return e}get length(){let e=0;for(const t of this.intervals)e+=t.length;return e}elementName(e,t){return t===r.EOF?"<EOF>":t===r.EPSILON?"<EPSILON>":e.getDisplayName(t)}},v=l((e=>null===e?"null":e),"valueToString"),C=l((e=>Array.isArray(e)?"["+e.map(v).join(", ")+"]":"null"),"arrayToString"),b=l(((e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){const s=e[i],n=t[i];if(s!==n&&(!s||!s.equals(n)))return!1}return!0}),"equalArrays"),E=l(((e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}),"equalNumberArrays"),S=l(((e,t=!1)=>(e=e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),t&&(e=e.replace(/ /g,"\xb7")),e)),"escapeWhitespace"),y=class e{static{l(this,"SemanticContext")}cachedHashCode;static andContext(t,i){if(null===t||t===e.NONE)return i;if(null===i||i===e.NONE)return t;const s=new w(t,i);return 1===s.operands.length?s.operands[0]:s}static orContext(t,i){if(null===t)return i;if(null===i)return t;if(t===e.NONE||i===e.NONE)return e.NONE;const s=new L(t,i);return 1===s.operands.length?s.operands[0]:s}static filterPrecedencePredicates(t){const i=[];for(const s of t)s instanceof e.PrecedencePredicate&&i.push(s);return i}evalPrecedence(e,t){return this}},w=class e extends y{static{l(this,"AND")}operands;constructor(t,i){super();const s=new p;t instanceof e?t.operands.forEach((e=>{s.add(e)})):s.add(t),i instanceof e?i.operands.forEach((e=>{s.add(e)})):s.add(i);const n=y.filterPrecedencePredicates(s);if(n.length>0){let e=null;n.forEach((t=>{(null===e||t.precedence<e.precedence)&&(e=t)})),e&&s.add(e)}this.operands=s.toArray()}equals(t){return this===t||t instanceof e&&b(this.operands,t.operands)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.operands)e=d.updateFromComparable(e,t);e=d.update(e,3813686060),this.cachedHashCode=d.finish(e,this.operands.length+1)}return this.cachedHashCode}evaluate(e,t){for(const i of this.operands)if(!i.evaluate(e,t))return!1;return!0}evalPrecedence(e,t){let i=!1;const s=[];for(const r of this.operands){const n=r.evalPrecedence(e,t);if(i||=n!==r,null===n)return null;n!==y.NONE&&s.push(n)}if(!i)return this;if(0===s.length)return y.NONE;let n=null;return s.forEach((e=>{n=null===n?e:y.andContext(n,e)})),n}toString(){const e=this.operands.map((e=>e.toString()));return(e.length>3?e.slice(3):e).join("&&")}},L=class e extends y{static{l(this,"OR")}operands;constructor(t,i){super();const s=new p;t instanceof e?t.operands.forEach((e=>{s.add(e)})):s.add(t),i instanceof e?i.operands.forEach((e=>{s.add(e)})):s.add(i);const n=y.filterPrecedencePredicates(s);if(n.length>0){const e=n.sort(((e,t)=>e.compareTo(t))),t=e[e.length-1];s.add(t)}this.operands=s.toArray()}equals(t){return this===t||t instanceof e&&b(this.operands,t.operands)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();for(const t of this.operands)e=d.updateFromComparable(e,t);e=d.update(e,3383313031),this.cachedHashCode=d.finish(e,this.operands.length+1)}return this.cachedHashCode}evaluate(e,t){for(const i of this.operands)if(i.evaluate(e,t))return!0;return!1}evalPrecedence(e,t){let i=!1;const s=[];for(const r of this.operands){const n=r.evalPrecedence(e,t);if(i||=n!==r,n===y.NONE)return y.NONE;null!==n&&s.push(n)}if(!i)return this;if(0===s.length)return null;let n=null;return s.forEach((e=>{n=null===n?e:y.orContext(n,e)})),n}toString(){const e=this.operands.map((e=>e.toString()));return(e.length>3?e.slice(3):e).join("||")}};(e=>{class t extends e{static{l(this,"Predicate")}ruleIndex;predIndex;isCtxDependent;constructor(e,t,i){super(),this.ruleIndex=e??-1,this.predIndex=t??-1,this.isCtxDependent=i??!1}evaluate(e,t){const i=this.isCtxDependent?t:null;return e.sempred(i,this.ruleIndex,this.predIndex)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.ruleIndex),e=d.update(e,this.predIndex),e=d.update(e,this.isCtxDependent?1:0),e=d.finish(e,3),this.cachedHashCode=e}return this.cachedHashCode}equals(e){return this===e||this.ruleIndex===e.ruleIndex&&this.predIndex===e.predIndex&&this.isCtxDependent===e.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}e.Predicate=t;class i extends e{static{l(this,"PrecedencePredicate")}precedence;constructor(e){super(),this.precedence=e??0}evaluate(e,t){return e.precpred(t,this.precedence)}evalPrecedence(t,i){return t.precpred(i??null,this.precedence)?e.NONE:null}compareTo(e){return this.precedence-e.precedence}hashCode(){return 31+this.precedence}equals(e){return this===e||this.precedence===e.precedence}toString(){return"{"+this.precedence+">=prec}?"}}e.PrecedencePredicate=i,e.NONE=new t})(y||(y={}));var R,T=class e{static{l(this,"ATNConfig")}state;alt;reachesIntoOuterContext=!1;precedenceFilterSuppressed=!1;get semanticContext(){return this.#e}cachedHashCode;#t=null;#e;constructor(e,t,i,s){this.state=t,this.alt=e.alt,this.context=i,this.#e=s??y.NONE,this.reachesIntoOuterContext=e.reachesIntoOuterContext,void 0!==e.precedenceFilterSuppressed&&(this.precedenceFilterSuppressed=e.precedenceFilterSuppressed)}static duplicate(t,i){return new e(t,t.state,t.context,i??t.semanticContext)}static createWithContext(t,i,s,n){return new e({alt:i},t,s,n)}static createWithConfig(t,i,s){return new e(i,t,s??i.context,i.semanticContext)}static createWithSemanticContext(t,i,s){return new e(i,t??i.state,i.context,s)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);e=d.update(e,this.state.stateNumber),e=d.update(e,this.alt),e=d.updateFromComparable(e,this.#t),e=d.updateFromComparable(e,this.semanticContext),e=d.finish(e,4),this.cachedHashCode=e}return this.cachedHashCode}get context(){return this.#t}set context(e){this.#t=e,this.cachedHashCode=void 0}equals(e){return this===e||this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&(null===this.context?null===e.context:this.context.equals(e.context))&&this.semanticContext.equals(e.semanticContext)&&this.precedenceFilterSuppressed===e.precedenceFilterSuppressed}toString(e,t=!0){let i="";return t&&(i=","+this.alt),"("+this.state+i+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==y.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext?",up="+this.reachesIntoOuterContext:"")+")"}},x=class e{static{l(this,"ATNState")}static INVALID_STATE_NUMBER=-1;static INVALID_TYPE=0;static BASIC=1;static RULE_START=2;static BLOCK_START=3;static PLUS_BLOCK_START=4;static STAR_BLOCK_START=5;static TOKEN_START=6;static RULE_STOP=7;static BLOCK_END=8;static STAR_LOOP_BACK=9;static STAR_LOOP_ENTRY=10;static PLUS_LOOP_BACK=11;static LOOP_END=12;static stateType=e.INVALID_STATE_NUMBER;stateNumber=0;ruleIndex=0;epsilonOnlyTransitions=!1;nextTokenWithinRule;transitions=[];hashCode(){return this.stateNumber}equals(e){return this.stateNumber===e.stateNumber}toString(){return`${this.stateNumber}`}addTransitionAtIndex(e,t){0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.splice(e,1,t)}addTransition(e){0===this.transitions.length?this.epsilonOnlyTransitions=e.isEpsilon:this.epsilonOnlyTransitions!==e.isEpsilon&&(this.epsilonOnlyTransitions=!1),this.transitions.push(e)}setTransition(e,t){this.transitions.splice(e,1,t)}removeTransition(e){return this.transitions.splice(e,1)[0]}},k=class e{static{l(this,"PredictionContext")}static EMPTY_RETURN_STATE=2147483647;static traceATNSimulator=!1;cachedHashCode;constructor(e){this.cachedHashCode=e}static calculateEmptyHashCode(){let e=d.initialize(31);return e=d.finish(e,0),e}static calculateHashCodeSingle(e,t){let i=d.initialize(31);return i=d.updateFromComparable(i,e),i=d.update(i,t),i=d.finish(i,2),i}static calculateHashCodeList(e,t){let i=d.initialize(31);for(const s of e)i=d.updateFromComparable(i,s);for(const s of t)i=d.update(i,s);return i=d.finish(i,2*e.length),i}isEmpty(){return!1}hasEmptyPath(){return this.getReturnState(this.length-1)===e.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}toString(e){return""}},A=class e extends k{static{l(this,"SingletonPredictionContext")}parent;returnState;constructor(e,t){super(e?k.calculateHashCodeSingle(e,t):k.calculateEmptyHashCode()),this.parent=e??null,this.returnState=t}getParent(e){return this.parent}getReturnState(e){return this.returnState}equals(t){return this===t||t instanceof e&&(this.hashCode()===t.hashCode()&&(this.returnState===t.returnState&&(null==this.parent?null==t.parent:this.parent.equals(t.parent))))}toString(){const e=null===this.parent?"":this.parent.toString();return 0===e.length?this.returnState===k.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+e}get length(){return 1}},N=class e extends A{static{l(this,"EmptyPredictionContext")}static instance=new e;constructor(){super(void 0,k.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(){return null}getReturnState(){return this.returnState}equals(e){return this===e}toString(){return"$"}},I=class{static{l(this,"Transition")}static INVALID=0;static EPSILON=1;static RANGE=2;static RULE=3;static PREDICATE=4;static ATOM=5;static ACTION=6;static SET=7;static NOT_SET=8;static WILDCARD=9;static PRECEDENCE=10;target;constructor(e){this.target=e}get isEpsilon(){return!1}get label(){return null}toString(){return""}},O=class extends I{static{l(this,"SetTransition")}set;constructor(e,t){super(e),this.set=t||_.of(r.INVALID_TYPE,r.INVALID_TYPE)}get transitionType(){return I.SET}get label(){return this.set}matches(e,t,i){return this.set.contains(e)}toString(){return this.set.toString()}},D=class extends O{static{l(this,"NotSetTransition")}get transitionType(){return I.NOT_SET}matches(e,t,i){return e>=t&&e<=i&&!super.matches(e,t,i)}toString(){return"~"+super.toString()}},M=class{static{l(this,"MapKeyEqualityComparator")}keyComparator;constructor(e){this.keyComparator=e}hashCode(e){return this.keyComparator.hashCode(e.key)}equals(e,t){return this.keyComparator.equals(e.key,t.key)}},P=class e{static{l(this,"HashMap")}backingStore;constructor(t){t instanceof e?this.backingStore=new p(t.backingStore):(t=t??g.instance,this.backingStore=new p(new M(t)))}clear(){this.backingStore.clear()}containsKey(e){return this.backingStore.contains({key:e})}get(e){const t=this.backingStore.get({key:e});if(t)return t.value}get isEmpty(){return this.backingStore.isEmpty}set(e,t){const i=this.backingStore.get({key:e,value:t});let s;return i?(s=i.value,i.value=t):this.backingStore.add({key:e,value:t}),s}setIfAbsent(e,t){const i=this.backingStore.get({key:e,value:t});let s;return i?s=i.value:this.backingStore.add({key:e,value:t}),s}keys(){return this.backingStore.toArray().map((e=>e.key))}values(){return this.backingStore.toArray().map((e=>e.value))}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(e){return this.backingStore.equals(e.backingStore)}},F=class{static{l(this,"TerminalNode")}parent=null;symbol;constructor(e){this.symbol=e}getChild(e){return null}getSymbol(){return this.symbol}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return m.INVALID_INTERVAL;const e=this.symbol.tokenIndex;return new m(e,e)}getChildCount(){return 0}accept(e){return e.visitTerminal(this)}getText(){return this.symbol?.text??""}toString(){return this.symbol?.type===r.EOF?"<EOF>":this.symbol?.text??""}toStringTree(){return this.toString()}},U=class extends F{static{l(this,"ErrorNode")}accept(e){return e.visitErrorNode(this)}},H=class e{static{l(this,"CommonToken")}static EMPTY_SOURCE=[null,null];source;tokenIndex;start;stop;type;line;column;channel;#i;constructor(e){this.type=e.type,this.source=e.source,this.tokenIndex=e.tokenIndex??-1,this.line=e.line??0,this.column=e.column??-1,this.channel=e.channel??r.DEFAULT_CHANNEL,this.start=e.start??0,this.stop=e.stop??0,this.#i=e.text,void 0===e.line&&null!==e.source[0]&&(this.line=e.source[0].line),void 0===e.column&&null!==e.source[0]&&(this.column=e.source[0].column)}static fromToken(t){const i=[t.tokenSource,t.inputStream];return new e({type:t.type,line:t.line,tokenIndex:t.tokenIndex,column:t.column,channel:t.channel,start:t.start,stop:t.stop,text:t.text,source:i})}static fromType(t,i){return new e({type:t,text:i,source:e.EMPTY_SOURCE})}static fromSource(t,i,s,n,r){return new e({type:i,channel:s,start:n,stop:r,source:t})}get tokenSource(){return this.source[0]}get inputStream(){return this.source[1]}set inputStream(e){this.source[1]=e}clone(){return new e({source:this.source,type:this.type,channel:this.channel,start:this.start,stop:this.stop,tokenIndex:this.tokenIndex,line:this.line,column:this.column,text:this.#i})}toString(e){let t="";this.channel>0&&(t=",channel="+this.channel);let i=this.text;i?(i=i.replace(/\n/g,"\\n"),i=i.replace(/\r/g,"\\r"),i=i.replace(/\t/g,"\\t")):i="<no text>";let s=String(this.type);return e&&(s=e.vocabulary.getDisplayName(this.type)??"<unknown>"),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+i+"',<"+s+">"+t+","+this.line+":"+this.column+"]"}get text(){if(void 0!==this.#i)return this.#i;const e=this.inputStream;if(!e)return;const t=e.size;return this.start<t&&this.stop<t?e.getTextFromRange(this.start,this.stop):"<EOF>"}set text(e){this.#i=e}setText(e){this.#i=e}setType(e){this.type=e}setLine(e){this.line=e}setCharPositionInLine(e){this.column=e}setChannel(e){this.channel=e}setTokenIndex(e){this.tokenIndex=e}},B=class e{static{l(this,"Trees")}static toStringTree(t,i,s){i=i??null,s&&(i=s.ruleNames);let n=e.getNodeText(t,i);n=S(n,!1);const r=t.getChildCount();if(0===r)return n;let o="("+n+" ";r>0&&(n=e.toStringTree(t.getChild(0),i),o=o.concat(n));for(let a=1;a<r;a++)n=e.toStringTree(t.getChild(a),i),o=o.concat(" "+n);return o=o.concat(")"),o}static getNodeText(e,t,i){if(t=t??null,i&&(t=i.ruleNames),null!==t){if(e instanceof W){const i=e.ruleContext.getAltNumber();return 0!==i?t[e.ruleIndex]+":"+i:t[e.ruleIndex]}if(e instanceof U)return e.toString();if(e instanceof F)return e.symbol.text}const s=e.getPayload();return c(s)?s.text:String(e.getPayload())}static getChildren(e){const t=[];for(let i=0;i<e.getChildCount();i++)t.push(e.getChild(i));return t}static getAncestors(e){if(null===e.parent)return[];let t=[],i=e.parent;for(;null!==i;)t=[i].concat(t),i=i.parent;return t}static isAncestorOf(e,t){if(null===e||null===t||null===e.parent)return!1;let i=t.parent;for(;null!==i;){if(e===i)return!0;i=i.parent}return!1}static findAllTokenNodes(t,i){return e.findAllNodes(t,i,!0)}static findAllRuleNodes(t,i){return e.findAllNodes(t,i,!1)}static findAllNodes(t,i,s){const n=[];return e.doFindAllNodes(t,i,s,n),n}static descendants(t){let i=[t];for(let s=0;s<t.getChildCount();s++)i=i.concat(e.descendants(t.getChild(s)));return i}static getRootOfSubtreeEnclosingRegion(e,t,i){const s=e.getChildCount();for(let n=0;n<s;n++){const s=e.getChild(n),r=this.getRootOfSubtreeEnclosingRegion(s,t,i);if(null!==r)return r}return e instanceof W&&t>=e.start.tokenIndex&&(null===e.stop||i<=e.stop.tokenIndex)?e:null}static stripChildrenOutOfRange(e,t,i,s){if(null!==e)for(let n=0;n<e.getChildCount();n++){const o=e.getChild(n),a=o.getSourceInterval();if(e instanceof W&&(a.stop<i||a.start>s)&&this.isAncestorOf(o,t)){const t=H.fromType(r.INVALID_TYPE,"...");e.children[n]=new F(t)}}}static doFindAllNodes(t,i,s,n){s&&t instanceof F?t.symbol?.type===i&&n.push(t):!s&&t instanceof W&&t.ruleIndex===i&&n.push(t);for(let r=0;r<t.getChildCount();r++)e.doFindAllNodes(t.getChild(r),i,s,n)}},W=class e{static{l(this,"ParserRuleContext")}static empty=new e(null);start=null;stop=null;children=[];invokingState;parent;constructor(e,t=-1){this.parent=e,this.invokingState=t}copyFrom(e){this.parent=e.parent,this.invokingState=e.invokingState,this.children.slice(0,this.children.length),this.start=e.start,this.stop=e.stop,e.children&&e.children.forEach((e=>{e instanceof U&&(this.children.push(e),e.parent=this)}))}enterRule(e){}exitRule(e){}addChild(e){return this.children.push(e),e}removeLastChild(){this.children.pop()}addTokenNode(e){const t=new F(e);return this.children.push(t),t.parent=this,t}addErrorNode(e){return e.parent=this,this.children.push(e),e}getChild(e,t){if(e<0||e>=this.children.length)return null;if(!t)return this.children[e];for(const i of this.children)if(i instanceof t){if(0===e)return i;e-=1}return null}getToken(e,t){if(t<0||t>=this.children.length)return null;for(const i of this.children)if("symbol"in i&&i.symbol?.type===e){if(0===t)return i;t-=1}return null}getTokens(e){const t=[];for(const i of this.children)"symbol"in i&&i.symbol?.type===e&&t.push(i);return t}getRuleContext(e,t){return this.getChild(e,t)}getRuleContexts(e){const t=[];for(const i of this.children)i instanceof e&&t.push(i);return t}getChildCount(){return this.children.length}getSourceInterval(){return null===this.start?m.INVALID_INTERVAL:null===this.stop||this.stop.tokenIndex<this.start.tokenIndex?new m(this.start.tokenIndex,this.start.tokenIndex-1):new m(this.start.tokenIndex,this.stop.tokenIndex)}depth(){let e=0,t=this;for(;null!==t;)t=t.parent,e+=1;return e}isEmpty(){return-1===this.invokingState}get ruleContext(){return this}get ruleIndex(){return-1}getPayload(){return this}getText(){return 0===this.children.length?"":this.children.map((e=>e.getText())).join("")}getAltNumber(){return Z.INVALID_ALT_NUMBER}setAltNumber(e){}accept(e){return e.visitChildren(this)}toStringTree(...e){return e.length<2?B.toStringTree(this,null,e[0]):B.toStringTree(this,e[0],e[1])}toString(e,t){e=e??null,t=t??null;let i=this,s="[";for(;null!==i&&i!==t;){if(null===e)i.isEmpty()||(s+=i.invokingState);else{const t=i.ruleIndex;s+=t>=0&&t<e.length?e[t]:""+t}null===i.parent||null===e&&i.parent.isEmpty()||(s+=" "),i=i.parent}return s+="]",s}},V=class e extends k{static{l(this,"ArrayPredictionContext")}parents=[];returnStates=[];constructor(e,t){return super(k.calculateHashCodeList(e,t)),this.parents=e,this.returnStates=t,this}isEmpty(){return this.returnStates[0]===k.EMPTY_RETURN_STATE}get length(){return this.returnStates.length}getParent(e){return this.parents[e]}getReturnState(e){return this.returnStates[e]}equals(t){return this===t||t instanceof e&&this.hashCode()===t.hashCode()&&(E(this.returnStates,t.returnStates)&&b(this.parents,t.parents))}toString(){if(this.isEmpty())return"[]";const e=[];for(let t=0;t<this.returnStates.length;t++)this.returnStates[t]!==k.EMPTY_RETURN_STATE?(e.push(this.returnStates[t].toString()),this.parents[t]?e.push(this.parents[t].toString()):e.push("null")):e.push("$");return`[${e.join(", ")}]`}},z=l(((e,t)=>t===k.EMPTY_RETURN_STATE&&null===e?N.instance:new A(e,t)),"createSingletonPredictionContext"),G=l(((e,t)=>{if(t||(t=W.empty),!t.parent||t===W.empty)return N.instance;const i=G(e,t.parent),s=e.states[t.invokingState].transitions[0];return z(i,s.followState.stateNumber)}),"predictionContextFromRuleContext"),j=l(((e,t,i)=>{if(e.isEmpty())return e;let s=i.get(e);if(s)return s;if(s=t.get(e),s)return i.set(e,s),s;let n,r=!1,o=[];for(let a=0;a<o.length;a++){const s=j(e.getParent(a),t,i);if(r||s!==e.getParent(a)){if(!r){o=[];for(let t=0;t<e.length;t++)o[t]=e.getParent(t);r=!0}o[a]=s}}return r?(n=0===o.length?N.instance:1===o.length?z(o[0]??void 0,e.getReturnState(0)):new V(o,e.returnStates),t.add(n),i.set(n,n),i.set(e,n),n):(t.add(e),i.set(e,e),e)}),"getCachedPredictionContext"),K=l(((e,t,i,s)=>{if(e===t||e.equals(t))return e;if(e instanceof A&&t instanceof A)return $(e,t,i,s);if(i){if(e instanceof N)return e;if(t instanceof N)return t}return e instanceof A&&(e=new V([e.parent],[e.returnState])),t instanceof A&&(t=new V([t.parent],[t.returnState])),Y(e,t,i,s)}),"merge"),Y=l(((e,t,i,s)=>{if(s){let i=s.get(e,t);if(i)return i;if(i=s.get(t,e),i)return i}let n=0,r=0,o=0,a=new Array(e.returnStates.length+t.returnStates.length).fill(0),l=new Array(e.returnStates.length+t.returnStates.length).fill(null);for(;n<e.returnStates.length&&r<t.returnStates.length;){const c=e.parents[n],h=t.parents[r];if(e.returnStates[n]===t.returnStates[r]){const t=e.returnStates[n];t===k.EMPTY_RETURN_STATE&&null===c&&null===h||null!==c&&null!==h&&c===h?(l[o]=c,a[o]=t):(l[o]=K(c,h,i,s),a[o]=t),n+=1,r+=1}else e.returnStates[n]<t.returnStates[r]?(l[o]=c,a[o]=e.returnStates[n],n+=1):(l[o]=h,a[o]=t.returnStates[r],r+=1);o+=1}if(n<e.returnStates.length)for(let h=n;h<e.returnStates.length;h++)l[o]=e.parents[h],a[o]=e.returnStates[h],o+=1;else for(let h=r;h<t.returnStates.length;h++)l[o]=t.parents[h],a[o]=t.returnStates[h],o+=1;if(o<l.length){if(1===o){const i=z(l[0]??void 0,a[0]);return null!==s&&s.set(e,t,i),i}l=l.slice(0,o),a=a.slice(0,o)}const c=new V(l,a);return c.equals(e)?(null!==s&&s.set(e,t,e),k.traceATNSimulator&&console.log("mergeArrays a="+e+",b="+t+" -> a"),e):c.equals(t)?(null!==s&&s.set(e,t,t),t):(q(l),null!==s&&s.set(e,t,c),k.traceATNSimulator&&console.log("mergeArrays a="+e+",b="+t+" -> "+c),c)}),"mergeArrays"),q=l((e=>{const t=new P(u.instance);for(const i of e)i&&(t.containsKey(i)||t.set(i,i));for(let i=0;i<e.length;i++)e[i]&&(e[i]=t.get(e[i])??null)}),"combineCommonParents"),$=l(((e,t,i,s)=>{if(null!==s){let i=s.get(e,t);if(null!==i)return i;if(i=s.get(t,e),null!==i)return i}const n=Q(e,t,i);if(null!==n)return null!==s&&s.set(e,t,n),n;if(e.returnState===t.returnState){const n=K(e.parent,t.parent,i,s);if(n===e.parent)return e;if(n===t.parent)return t;const r=z(n,e.returnState);return null!==s&&s.set(e,t,r),r}{let i=null;if((e===t||null!==e.parent&&e.parent.equals(t.parent))&&(i=e.parent),null!==i){const n=[e.returnState,t.returnState];e.returnState>t.returnState&&(n[0]=t.returnState,n[1]=e.returnState);const r=new V([i,i],n);return null!==s&&s.set(e,t,r),r}const n=[e.returnState,t.returnState];let r=[e.parent,t.parent];e.returnState>t.returnState&&(n[0]=t.returnState,n[1]=e.returnState,r=[t.parent,e.parent]);const o=new V(r,n);return null!==s&&s.set(e,t,o),o}}),"mergeSingletons"),Q=l(((e,t,i)=>{if(i){if(e===N.instance||t===N.instance)return N.instance}else{if(e===N.instance&&t===N.instance)return N.instance;if(e===N.instance){const e=[t.returnState,k.EMPTY_RETURN_STATE],i=[t.parent,null];return new V(i,e)}if(t===N.instance){const t=[e.returnState,k.EMPTY_RETURN_STATE],i=[e.parent,null];return new V(i,t)}}return null}),"mergeRoot"),X=class e{constructor(e){this.atn=e}static{l(this,"LL1Analyzer")}static hitPredicate=r.INVALID_TYPE;getDecisionLookahead(t){if(!t)return;const i=t.transitions.length,s=new Array(i);for(let n=0;n<i;n++){const i=new _,r=new p;this.doLook(t.transitions[n].target,void 0,N.instance,i,r,new h,!1,!1),i.length>0&&!i.contains(e.hitPredicate)&&(s[n]=i)}return s}look(e,t,i){const s=new _,n=i?G(this.atn,i):null;return this.doLook(e,t,n,s,new p,new h,!0,!0),s}doLook(t,i,s,n,o,a,l,c){const h=T.createWithContext(t,0,s);if(!o.get(h)){if(o.add(h),t===i){if(!s)return void n.addOne(r.EPSILON);if(s.isEmpty()&&c)return void n.addOne(r.EOF)}if(t.constructor.stateType===x.RULE_STOP){if(!s)return void n.addOne(r.EPSILON);if(s.isEmpty()&&c)return void n.addOne(r.EOF);if(s!==N.instance){const e=a.get(t.ruleIndex);try{a.clear(t.ruleIndex);for(let e=0;e<s.length;e++){const t=this.atn.states[s.getReturnState(e)];this.doLook(t,i,s.getParent(e),n,o,a,l,c)}}finally{e&&a.set(t.ruleIndex)}return}}for(const h of t.transitions)switch(h.transitionType){case I.RULE:{if(a.get(h.target.ruleIndex))continue;const e=z(s??void 0,h.followState.stateNumber);try{a.set(h.target.ruleIndex),this.doLook(h.target,i,e,n,o,a,l,c)}finally{a.clear(h.target.ruleIndex)}break}case I.PREDICATE:case I.PRECEDENCE:l?this.doLook(h.target,i,s,n,o,a,l,c):n.addOne(e.hitPredicate);break;case I.WILDCARD:n.addRange(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);break;default:if(h.isEpsilon)this.doLook(h.target,i,s,n,o,a,l,c);else{let e=h.label;e&&(h instanceof D&&(e=e.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),n.addSet(e))}}}}},Z=class{static{l(this,"ATN")}static INVALID_ALT_NUMBER=0;static LEXER=0;static PARSER=1;grammarType;maxTokenType;states=[];decisionToState=[];ruleToStartState=[];ruleToStopState=[];modeNameToStartState=new Map;ruleToTokenType=[];lexerActions=[];modeToStartState=[];analyzer;constructor(e,t){this.grammarType=e,this.maxTokenType=t,this.analyzer=new X(this)}nextTokens(e,t){if(!t&&e.nextTokenWithinRule)return e.nextTokenWithinRule;const i=this.analyzer.look(e,void 0,t);return t||(e.nextTokenWithinRule=i),i}addState(e){e&&(e.stateNumber=this.states.length),this.states.push(e)}removeState(e){this.states[e.stateNumber]=null}defineDecisionState(e){return this.decisionToState.push(e),e.decision=this.decisionToState.length-1,e.decision}getDecisionState(e){return 0===this.decisionToState.length?null:this.decisionToState[e]}getNumberOfDecisions(){return this.decisionToState.length}getExpectedTokens(e,t){if(e<0||e>=this.states.length)throw new Error("Invalid state number.");const i=this.states[e];let s=this.nextTokens(i);if(!s.contains(r.EPSILON))return s;let n=t;const o=new _;for(o.addSet(s),o.removeOne(r.EPSILON);null!==n&&n.invokingState>=0&&s.contains(r.EPSILON);){const e=this.states[n.invokingState].transitions[0];s=this.nextTokens(e.followState),o.addSet(s),o.removeOne(r.EPSILON),n=n.parent}return s.contains(r.EPSILON)&&o.addOne(r.EOF),o}},J=class e{static{l(this,"KeyTypeEqualityComparer")}static instance=new e;hashCode(e){let t=7;return t=31*t+e.state.stateNumber,t=31*t+e.alt,t=31*t+e.semanticContext.hashCode(),t}equals(e,t){return e===t||e.state.stateNumber===t.state.stateNumber&&e.alt===t.alt&&e.semanticContext.equals(t.semanticContext)}},ee=class{static{l(this,"ATNConfigSet")}configLookup=new p(J.instance);configs=[];uniqueAlt=0;hasSemanticContext=!1;dipsIntoOuterContext=!1;fullCtx=!1;readOnly=!1;conflictingAlts=null;firstStopState;#s=-1;constructor(e){if(void 0!==e)if("boolean"===typeof e)this.fullCtx=e??!0;else{const t=e;this.addAll(t.configs),this.uniqueAlt=t.uniqueAlt,this.conflictingAlts=t.conflictingAlts,this.hasSemanticContext=t.hasSemanticContext,this.dipsIntoOuterContext=t.dipsIntoOuterContext}}[Symbol.iterator](){return this.configs[Symbol.iterator]()}add(e,t=null){if(this.readOnly)throw new Error("This set is readonly");this.firstStopState||e.state.constructor.stateType!==x.RULE_STOP||(this.firstStopState=e),this.hasSemanticContext||=e.semanticContext!==y.NONE,this.dipsIntoOuterContext||=e.reachesIntoOuterContext;const i=this.configLookup.getOrAdd(e);if(i===e)return this.#s=-1,void this.configs.push(e);const s=!this.fullCtx,n=K(i.context,e.context,s,t);i.reachesIntoOuterContext||=e.reachesIntoOuterContext,i.precedenceFilterSuppressed||=e.precedenceFilterSuppressed,i.context=n}get elements(){return this.configs}getAlts(){const e=new h;for(const t of this.configs)e.set(t.alt);return e}getPredicates(){const e=[];for(const t of this.configs)t.semanticContext!==y.NONE&&e.push(t.semanticContext);return e}getStates(){const e=new p;for(const t of this.configs)e.add(t.state);return e}optimizeConfigs(e){if(this.readOnly)throw new Error("This set is readonly");if(0!==this.configLookup.size)for(const t of this.configs)t.context=e.getCachedContext(t.context)}addAll(e){for(const t of e)this.add(t);return!1}equals(e){return this===e||!(this.fullCtx!==e.fullCtx||this.uniqueAlt!==e.uniqueAlt||this.conflictingAlts!==e.conflictingAlts||this.hasSemanticContext!==e.hasSemanticContext||this.dipsIntoOuterContext!==e.dipsIntoOuterContext||!b(this.configs,e.configs))}hashCode(){return-1===this.#s&&(this.#s=this.computeHashCode()),this.#s}get length(){return this.configs.length}isEmpty(){return 0===this.configs.length}contains(e){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(e)}containsFast(e){if(null===this.configLookup)throw new Error("This method is not implemented for readonly sets.");return this.configLookup.contains(e)}clear(){if(this.readOnly)throw new Error("This set is readonly");this.configs=[],this.#s=-1,this.configLookup=new p(J.instance)}setReadonly(e){this.readOnly=e,e&&(this.configLookup=null)}toString(){return C(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==Z.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}computeHashCode(){let e=d.initialize();return this.configs.forEach((t=>{e=d.update(e,t.hashCode())})),e=d.finish(e,this.configs.length),e}},te=class extends x{static{l(this,"BasicState")}static stateType=x.BASIC},ie=class extends x{static{l(this,"DecisionState")}decision=-1;nonGreedy=!1},se=class extends ie{static{l(this,"BlockStartState")}endState},ne=class extends x{static{l(this,"BlockEndState")}static stateType=x.BLOCK_END;startState},re=class extends x{static{l(this,"LoopEndState")}static stateType=x.LOOP_END;loopBackState},oe=class extends x{static{l(this,"RuleStartState")}static stateType=x.RULE_START;stopState;isLeftRecursiveRule=!1},ae=class extends x{static{l(this,"RuleStopState")}static stateType=x.RULE_STOP},le=class extends ie{static{l(this,"TokensStartState")}static stateType=x.TOKEN_START},ce=class extends ie{static{l(this,"PlusLoopbackState")}static stateType=x.PLUS_LOOP_BACK},he=class extends x{static{l(this,"StarLoopbackState")}static stateType=x.STAR_LOOP_BACK},de=class extends ie{static{l(this,"StarLoopEntryState")}static stateType=x.STAR_LOOP_ENTRY;loopBackState;precedenceRuleDecision=!1},ue=class extends se{static{l(this,"PlusBlockStartState")}static stateType=x.PLUS_BLOCK_START;loopBackState},ge=class extends se{static{l(this,"StarBlockStartState")}static stateType=x.STAR_BLOCK_START},pe=class extends se{static{l(this,"BasicBlockStartState")}static stateType=x.BLOCK_START},me=class extends I{static{l(this,"AtomTransition")}labelValue;#n;constructor(e,t){super(e),this.labelValue=t,this.#n=_.of(t,t)}get label(){return this.#n}get transitionType(){return I.ATOM}matches(e){return this.labelValue===e}toString(){return this.labelValue.toString()}},fe=class extends I{static{l(this,"RuleTransition")}ruleIndex;precedence;followState;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.precedence=i,this.followState=s}get isEpsilon(){return!0}get transitionType(){return I.RULE}matches(e,t,i){return!1}},_e=class extends I{static{l(this,"RangeTransition")}start;stop;#n=new _;constructor(e,t,i){super(e),this.start=t,this.stop=i,this.#n.addRange(t,i)}get label(){return this.#n}get transitionType(){return I.RANGE}matches(e,t,i){return e>=this.start&&e<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}},ve=class extends I{static{l(this,"ActionTransition")}ruleIndex;actionIndex;isCtxDependent;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.actionIndex=i??-1,this.isCtxDependent=s??!1}get isEpsilon(){return!0}get transitionType(){return I.ACTION}matches(e,t,i){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}},Ce=class extends I{static{l(this,"EpsilonTransition")}#r;constructor(e,t=-1){super(e),this.#r=t}get outermostPrecedenceReturn(){return this.#r}get isEpsilon(){return!0}get transitionType(){return I.EPSILON}matches(){return!1}toString(){return"epsilon"}},be=class extends I{static{l(this,"WildcardTransition")}get transitionType(){return I.WILDCARD}matches(e,t,i){return e>=t&&e<=i}toString(){return"."}},Ee=class extends I{static{l(this,"AbstractPredicateTransition")}constructor(e){super(e)}},Se=class extends Ee{static{l(this,"PredicateTransition")}ruleIndex;predIndex;isCtxDependent;constructor(e,t,i,s){super(e),this.ruleIndex=t,this.predIndex=i,this.isCtxDependent=s}get isEpsilon(){return!0}matches(e,t,i){return!1}get transitionType(){return I.PREDICATE}getPredicate(){return new y.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}},ye=class extends Ee{static{l(this,"PrecedencePredicateTransition")}precedence;constructor(e,t){super(e),this.precedence=t}get isEpsilon(){return!0}matches(e,t,i){return!1}getPredicate(){return new y.PrecedencePredicate(this.precedence)}get transitionType(){return I.PRECEDENCE}toString(){return this.precedence+" >= _p"}},we=0,Le=1,Re=2,Te=3,xe=4,ke=5,Ae=6,Ne=7,Ie=class e{static{l(this,"LexerSkipAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=Ae}equals(e){return e===this}hashCode(){return Ae}execute(e){e.skip()}toString(){return"skip"}},Oe=class e{static{l(this,"LexerChannelAction")}channel;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=we,this.channel=e}execute(e){e.channel=this.channel}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.channel),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.channel===t.channel}toString(){return"channel("+this.channel+")"}},De=class e{static{l(this,"LexerCustomAction")}ruleIndex;actionIndex;actionType;isPositionDependent=!0;cachedHashCode;constructor(e,t){this.actionType=Le,this.ruleIndex=e,this.actionIndex=t}execute(e){e.action(null,this.ruleIndex,this.actionIndex)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.ruleIndex),e=d.update(e,this.actionIndex),this.cachedHashCode=d.finish(e,3)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&(this.ruleIndex===t.ruleIndex&&this.actionIndex===t.actionIndex)}},Me=class e{static{l(this,"LexerMoreAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=Te}equals(e){return e===this}hashCode(){return Te}execute(e){e.more()}toString(){return"more"}},Pe=class e{static{l(this,"LexerTypeAction")}type;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=Ne,this.type=e}execute(e){e.type=this.type}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.type),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.type===t.type}toString(){return"type("+this.type+")"}},Fe=class e{static{l(this,"LexerPushModeAction")}mode;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=ke,this.mode=e}execute(e){e.pushMode(this.mode)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.mode),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.mode===t.mode}toString(){return"pushMode("+this.mode+")"}},Ue=class e{static{l(this,"LexerPopModeAction")}static instance=new e;actionType;isPositionDependent=!1;constructor(){this.actionType=xe}equals(e){return e===this}hashCode(){return xe}execute(e){e.popMode()}toString(){return"popMode"}},He=class e{static{l(this,"LexerModeAction")}mode;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){this.actionType=Re,this.mode=e}execute(e){e.mode=this.mode}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.actionType),e=d.update(e,this.mode),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&this.mode===t.mode}toString(){return"mode("+this.mode+")"}},Be=class e{static{l(this,"ATNDeserializer")}static SERIALIZED_VERSION=4;static stateTypeMapper=new Map([[x.INVALID_TYPE,void 0],[x.BASIC,te],[x.RULE_START,oe],[x.BLOCK_START,pe],[x.PLUS_BLOCK_START,ue],[x.STAR_BLOCK_START,ge],[x.TOKEN_START,le],[x.RULE_STOP,ae],[x.BLOCK_END,ne],[x.STAR_LOOP_BACK,he],[x.STAR_LOOP_ENTRY,de],[x.PLUS_LOOP_BACK,ce],[x.LOOP_END,re]]);static lexerActionFactoryMapper=new Map([[we,e=>new Oe(e)],[Le,(e,t)=>new De(e,t)],[Re,e=>new He(e)],[Te,()=>Me.instance],[xe,()=>Ue.instance],[ke,e=>new Fe(e)],[Ae,()=>Ie.instance],[Ne,e=>new Pe(e)]]);data=[];pos=0;deserializationOptions;actionFactories;constructor(e){e||(e={readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!1}),this.deserializationOptions=e}deserialize(e){this.data=e,this.checkVersion();const t=this.readATN();this.readStates(t),this.readRules(t),this.readModes(t);const i=[];return this.readSets(t,i),this.readEdges(t,i),this.readDecisions(t),this.readLexerActions(t),this.markPrecedenceDecisions(t),this.verifyATN(t),this.deserializationOptions.generateRuleBypassTransitions&&t.grammarType===Z.PARSER&&(this.generateRuleBypassTransitions(t),this.verifyATN(t)),t}checkVersion(){const t=this.data[this.pos++];if(t!==e.SERIALIZED_VERSION)throw new Error("Could not deserialize ATN with version "+t+" (expected "+e.SERIALIZED_VERSION+").")}readATN(){const e=this.data[this.pos++],t=this.data[this.pos++];return new Z(e,t)}readStates(e){let t,i;const s=[],n=[],r=this.data[this.pos++];for(let l=0;l<r;l++){const t=this.data[this.pos++];if(t===x.INVALID_TYPE){e.addState(null);continue}const i=this.data[this.pos++],r=this.stateFactory(t,i);if(t===x.LOOP_END){const e=this.data[this.pos++];s.push([r,e])}else if(r instanceof se){const e=this.data[this.pos++];n.push([r,e])}e.addState(r)}for(t=0;t<s.length;t++){const i=s[t];i[0].loopBackState=e.states[i[1]]??void 0}for(t=0;t<n.length;t++){const i=n[t];i[0].endState=e.states[i[1]]}const o=this.data[this.pos++];for(t=0;t<o;t++)i=this.data[this.pos++],e.states[i].nonGreedy=!0;const a=this.data[this.pos++];for(t=0;t<a;t++)i=this.data[this.pos++],e.states[i].isLeftRecursiveRule=!0}readRules(e){let t;const i=this.data[this.pos++];for(e.grammarType===Z.LEXER&&(e.ruleToTokenType=new Array(i),e.ruleToTokenType.fill(0)),e.ruleToStartState=new Array(i),e.ruleToStartState.fill(null),t=0;t<i;t++){const i=this.data[this.pos++];if(e.ruleToStartState[t]=e.states[i],e.grammarType===Z.LEXER){const i=this.data[this.pos++];e.ruleToTokenType[t]=i}}for(e.ruleToStopState=new Array(i),e.ruleToStopState.fill(null),t=0;t<e.states.length;t++){const i=e.states[t];i instanceof ae&&(e.ruleToStopState[i.ruleIndex]=i,e.ruleToStartState[i.ruleIndex].stopState=i)}}readModes(e){const t=this.data[this.pos++];for(let i=0;i<t;i++){const t=this.data[this.pos++];e.modeToStartState.push(e.states[t])}}readSets(e,t){const i=this.data[this.pos++];for(let s=0;s<i;s++){const e=new _;t.push(e);const i=this.data[this.pos++];0!==this.data[this.pos++]&&e.addOne(-1);for(let t=0;t<i;t++){const t=this.data[this.pos++],i=this.data[this.pos++];e.addRange(t,i)}}}readEdges(e,t){let i,s,n,r,o;const a=this.data[this.pos++];for(i=0;i<a;i++){const i=this.data[this.pos++],s=this.data[this.pos++],n=this.data[this.pos++],o=this.data[this.pos++],a=this.data[this.pos++],l=this.data[this.pos++];r=this.edgeFactory(e,n,s,o,a,l,t);e.states[i].addTransition(r)}for(i=0;i<e.states.length;i++)for(n=e.states[i],s=0;s<n.transitions.length;s++){const t=n.transitions[s];if(!(t instanceof fe))continue;let i=-1;e.ruleToStartState[t.target.ruleIndex].isLeftRecursiveRule&&0===t.precedence&&(i=t.target.ruleIndex),r=new Ce(t.followState,i),e.ruleToStopState[t.target.ruleIndex].addTransition(r)}for(i=0;i<e.states.length;i++){if(n=e.states[i],n instanceof se){if(!n.endState)throw new Error("IllegalState");if(n.endState.startState)throw new Error("IllegalState");n.endState.startState=n}if(n instanceof ce)for(s=0;s<n.transitions.length;s++)o=n.transitions[s].target,o instanceof ue&&(o.loopBackState=n);else if(n instanceof he)for(s=0;s<n.transitions.length;s++)o=n.transitions[s].target,o instanceof de&&(o.loopBackState=n)}}readDecisions(e){const t=this.data[this.pos++];for(let i=0;i<t;i++){const t=this.data[this.pos++],s=e.states[t];e.decisionToState.push(s),s.decision=i}}readLexerActions(e){if(e.grammarType===Z.LEXER){const t=this.data[this.pos++];e.lexerActions=[];for(let i=0;i<t;i++){const t=this.data[this.pos++],i=this.data[this.pos++],s=this.data[this.pos++];e.lexerActions.push(this.lexerActionFactory(t,i,s))}}}generateRuleBypassTransitions(e){let t;const i=e.ruleToStartState.length;for(t=0;t<i;t++)e.ruleToTokenType[t]=e.maxTokenType+t+1;for(t=0;t<i;t++)this.generateRuleBypassTransition(e,t)}generateRuleBypassTransition(e,t){let i,s;const n=new pe;n.ruleIndex=t,e.addState(n);const r=new ne;r.ruleIndex=t,e.addState(r),n.endState=r,e.defineDecisionState(n),r.startState=n;let o=null,a=null;if(e.ruleToStartState[t].isLeftRecursiveRule){for(a=null,i=0;i<e.states.length;i++)if(s=e.states[i],this.stateIsEndStateFor(s,t)){a=s,o=s.loopBackState.transitions[0];break}if(null===o)throw new Error("Couldn't identify final state of the precedence rule prefix section.")}else a=e.ruleToStopState[t];for(i=0;i<e.states.length;i++){s=e.states[i];for(const e of s.transitions)e!==o&&e.target===a&&(e.target=r)}const l=e.ruleToStartState[t];for(;l.transitions.length>0;){const e=l.removeTransition(l.transitions.length-1);n.addTransition(e)}e.ruleToStartState[t].addTransition(new Ce(n)),a&&r.addTransition(new Ce(a));const c=new te;e.addState(c),c.addTransition(new me(r,e.ruleToTokenType[t])),n.addTransition(new Ce(c))}stateIsEndStateFor(e,t){if(e.ruleIndex!==t)return null;if(!(e instanceof de))return null;const i=e.transitions[e.transitions.length-1].target;return i instanceof re&&i.epsilonOnlyTransitions&&i.transitions[0].target instanceof ae?e:null}markPrecedenceDecisions(e){for(const t of e.states)if(t instanceof de&&e.ruleToStartState[t.ruleIndex].isLeftRecursiveRule){const e=t.transitions[t.transitions.length-1].target;e instanceof re&&e.epsilonOnlyTransitions&&e.transitions[0].target instanceof ae&&(t.precedenceRuleDecision=!0)}}verifyATN(e){if(this.deserializationOptions.verifyATN)for(const t of e.states)if(null!==t)if(this.checkCondition(t.epsilonOnlyTransitions||t.transitions.length<=1),t instanceof ue)this.checkCondition(null!==t.loopBackState);else if(t instanceof de)if(this.checkCondition(null!==t.loopBackState),this.checkCondition(2===t.transitions.length),t.transitions[0].target instanceof ge)this.checkCondition(t.transitions[1].target instanceof re),this.checkCondition(!t.nonGreedy);else{if(!(t.transitions[0].target instanceof re))throw new Error("IllegalState");this.checkCondition(t.transitions[1].target instanceof ge),this.checkCondition(t.nonGreedy)}else t instanceof he?(this.checkCondition(1===t.transitions.length),this.checkCondition(t.transitions[0].target instanceof de)):t instanceof re?this.checkCondition(null!==t.loopBackState):t instanceof oe?this.checkCondition(null!==t.stopState):t instanceof se?this.checkCondition(null!==t.endState):t instanceof ne?this.checkCondition(null!==t.startState):t instanceof ie?this.checkCondition(t.transitions.length<=1||t.decision>=0):this.checkCondition(t.transitions.length<=1||t instanceof ae)}checkCondition(e,t){if(!e)throw void 0!==t&&null!==t||(t="IllegalState"),t}edgeFactory(e,t,i,s,n,o,a){const l=e.states[i];switch(t){case I.EPSILON:return new Ce(l);case I.RANGE:return new _e(l,0!==o?r.EOF:s,n);case I.RULE:return new fe(e.states[s],n,o,l);case I.PREDICATE:return new Se(l,s,n,0!==o);case I.PRECEDENCE:return new ye(l,s);case I.ATOM:return new me(l,0!==o?r.EOF:s);case I.ACTION:return new ve(l,s,n,0!==o);case I.SET:return new O(l,a[s]);case I.NOT_SET:return new D(l,a[s]);case I.WILDCARD:return new be(l);default:throw new Error("The specified transition type: "+t+" is not valid.")}}stateFactory(t,i){const s=e.stateTypeMapper.get(t);if(!s)throw new Error("The specified state type "+t+" is not valid.");const n=new s;return n.ruleIndex=i,n}lexerActionFactory(t,i,s){const n=e.lexerActionFactoryMapper.get(t);if(!n)throw new Error("The specified lexer action type "+t+" is not valid.");return n(i,s)}},We=class e extends P{static{l(this,"OrderedHashMap")}#o=[];clear(){super.clear(),this.#o=[]}get(e){return super.get(e)}set(e,t){const i=super.set(e,t);return void 0===i&&this.#o.push(e),i}setIfAbsent(e,t){const i=super.setIfAbsent(e,t);return void 0===i&&this.#o.push(e),i}values(){return{[Symbol.iterator]:()=>{let e=0;return{next:l((()=>e<this.#o.length?{done:!1,value:super.get(this.#o[e++])}:{done:!0,value:void 0}),"next")}}}}keys(){return this.#o[Symbol.iterator]()}equals(t){return t instanceof e&&super.equals(t)}},Ve=(class e{static{l(this,"ATNSerializer")}atn;data=[];sets=new We(u.instance);nonGreedyStates=[];precedenceStates=[];constructor(e){this.atn=e}static getSerialized(t){return new e(t).serialize()}static serializeSets(e,t){e.push(t.length);for(const i of t){const t=i.contains(r.EOF),s=[...i];t&&s[0].stop===r.EOF?e.push(s.length-1):e.push(s.length),e.push(t?1:0);for(const i of s){if(i.start===r.EOF){if(i.stop===r.EOF)continue;e.push(0)}else e.push(i.start);e.push(i.stop)}}}serialize(){this.addPreamble();const e=this.addEdges();this.addNonGreedyStates(),this.addPrecedenceStates(),this.addRuleStatesAndLexerTokenTypes(),this.addModeStartStates();const t=this.addSets();return this.addEdges(e,t),this.addDecisionStartStates(),this.addLexerActions(),this.data}addPreamble(){this.data.push(Be.SERIALIZED_VERSION),this.data.push(this.atn.grammarType),this.data.push(this.atn.maxTokenType)}addLexerActions(){if(this.atn.grammarType===Z.LEXER){this.data.push(this.atn.lexerActions.length);for(const e of this.atn.lexerActions)switch(this.data.push(e.actionType),e.actionType){case we:{const t=e.channel;this.data.push(t),this.data.push(0);break}case Le:{const t=e.ruleIndex,i=e.actionIndex;this.data.push(t),this.data.push(i);break}case Re:{const t=e.mode;this.data.push(t),this.data.push(0);break}case Te:case xe:this.data.push(0),this.data.push(0);break;case ke:{const t=e.mode;this.data.push(t),this.data.push(0);break}case Ae:this.data.push(0),this.data.push(0);break;case Ne:{const t=e.type;this.data.push(t),this.data.push(0);break}default:throw new Error(`The specified lexer action type ${e.actionType} is not valid.`)}}}addDecisionStartStates(){this.data.push(this.atn.decisionToState.length);for(const e of this.atn.decisionToState)this.data.push(e.stateNumber)}addEdges(...e){switch(e.length){case 0:{let e=0;this.data.push(this.atn.states.length);for(const t of this.atn.states){if(null===t){this.data.push(x.INVALID_TYPE);continue}const i=t.constructor.stateType;t instanceof ie&&t.nonGreedy&&this.nonGreedyStates.push(t.stateNumber),t instanceof oe&&t.isLeftRecursiveRule&&this.precedenceStates.push(t.stateNumber),this.data.push(i),this.data.push(t.ruleIndex),t.constructor.stateType===x.LOOP_END?this.data.push(t.loopBackState.stateNumber):t instanceof se&&this.data.push(t.endState.stateNumber),t.constructor.stateType!==x.RULE_STOP&&(e+=t.transitions.length);for(const e of t.transitions){const t=e.transitionType;if(t===I.SET||t===I.NOT_SET){const t=e;this.sets.set(t.set,!0)}}}return e}case 2:{const[t,i]=e;this.data.push(t);for(const e of this.atn.states)if(null!==e&&e.constructor.stateType!==x.RULE_STOP)for(const t of e.transitions){if(null===this.atn.states[t.target.stateNumber])throw new Error("Cannot serialize a transition to a removed state.");const s=e.stateNumber;let n=t.target.stateNumber;const o=t.transitionType;let a=0,l=0,c=0;switch(o){case I.RULE:n=t.followState.stateNumber,a=t.target.stateNumber,l=t.ruleIndex,c=t.precedence;break;case I.PRECEDENCE:a=t.precedence;break;case I.PREDICATE:{const e=t;a=e.ruleIndex,l=e.predIndex,c=e.isCtxDependent?1:0;break}case I.RANGE:a=t.start,l=t.stop,a===r.EOF&&(a=0,c=1);break;case I.ATOM:a=t.labelValue,a===r.EOF&&(a=0,c=1);break;case I.ACTION:{const e=t;a=e.ruleIndex,l=e.actionIndex,c=e.isCtxDependent?1:0;break}case I.SET:case I.NOT_SET:a=i.get(t.set)}this.data.push(s),this.data.push(n),this.data.push(o),this.data.push(a),this.data.push(l),this.data.push(c)}break}default:throw new Error("Invalid number of arguments")}}addSets(){e.serializeSets(this.data,[...this.sets.keys()]);const t=new P;let i=0;for(const e of this.sets.keys())t.set(e,i++);return t}addModeStartStates(){const e=this.atn.modeToStartState.length;if(this.data.push(e),e>0)for(const t of this.atn.modeToStartState)this.data.push(t.stateNumber)}addRuleStatesAndLexerTokenTypes(){const e=this.atn.ruleToStartState.length;this.data.push(e);for(let t=0;t<e;t++){const e=this.atn.ruleToStartState[t];this.data.push(e.stateNumber),this.atn.grammarType===Z.LEXER&&this.data.push(this.atn.ruleToTokenType[t])}}addPrecedenceStates(){this.data.push(this.precedenceStates.length);for(const e of this.precedenceStates)this.data.push(e)}addNonGreedyStates(){this.data.push(this.nonGreedyStates.length);for(const e of this.nonGreedyStates)this.data.push(e)}},class e{static{l(this,"DFAState")}stateNumber=-1;configs;edges=[];isAcceptState=!1;prediction=-1;lexerActionExecutor=null;requiresFullContext=!1;predicates=null;constructor(e){e&&(this.configs=e)}static fromState(t){const i=new e;return i.stateNumber=t,i}static fromConfigs(t){return new e(t)}static hashCode(e){return e.configs.hashCode()}static equals(e,t){return e.configs.equals(t.configs)}getAltSet(){const e=new Set;for(const t of this.configs)e.add(t.alt);return 0===e.size?null:e}toString(){let e="";return e+=this.stateNumber,e+=":",e+=this.configs?this.configs.toString():"",this.isAcceptState&&(e+="=>",this.predicates?e+=C(this.predicates):e+=this.prediction),e.toString()}}),ze=class{static{l(this,"ATNSimulator")}static ERROR=Ve.fromState(2147483647);atn;sharedContextCache;constructor(e,t){return this.atn=e,this.sharedContextCache=t,this}getCachedContext(e){if(!this.sharedContextCache)return e;const t=new P(u.instance);return j(e,this.sharedContextCache,t)}},Ge=(class e{static{l(this,"CodePointTransitions")}static createWithCodePoint(t,i){return e.createWithCodePointRange(t,i,i)}static createWithCodePointRange(e,t,i){return t===i?new me(e,t):new _e(e,t,i)}},class{static{l(this,"DecisionInfo")}decision=0;invocations=0;timeInPrediction=0;sllTotalLook=0;sllMinLook=0;sllMaxLook=0;sllMaxLookEvent;llTotalLook=0;llMinLook=0;llMaxLook=0;llMaxLookEvent;contextSensitivities;errors;ambiguities;predicateEvals;sllATNTransitions=0;sllDFATransitions=0;llFallback=0;llATNTransitions=0;llDFATransitions=0;constructor(e){this.decision=e,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[]}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", sllLookahead="+this.sllTotalLook+", sllATNTransitions="+this.sllATNTransitions+", sllDFATransitions="+this.sllDFATransitions+", llFallback="+this.llFallback+", llLookahead="+this.llTotalLook+", llATNTransitions="+this.llATNTransitions+"}"}}),je=class e extends T{static{l(this,"LexerATNConfig")}lexerActionExecutor;passedThroughNonGreedyDecision;constructor(t,i,s,n){return super(t,i,s??t.context,s?y.NONE:t.semanticContext),this.lexerActionExecutor=s?n:t.lexerActionExecutor??null,this.passedThroughNonGreedyDecision=e.checkNonGreedyDecision(t,this.state),this}static createWithExecutor(t,i,s){return new e(t,i,t.context,s)}static createWithConfig(t,i,s){return new e(i,t,s??null,i.lexerActionExecutor)}static createWithContext(t,i,s){return new e({alt:i},t,s,null)}static checkNonGreedyDecision(e,t){return e.passedThroughNonGreedyDecision||"nonGreedy"in t&&t.nonGreedy}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);e=d.update(e,this.state.stateNumber),e=d.update(e,this.alt),e=d.updateFromComparable(e,this.context),e=d.updateFromComparable(e,this.semanticContext),e=d.update(e,this.passedThroughNonGreedyDecision?1:0),e=d.updateFromComparable(e,this.lexerActionExecutor),e=d.finish(e,6),this.cachedHashCode=e}return this.cachedHashCode}equals(e){return this===e||this.passedThroughNonGreedyDecision===e.passedThroughNonGreedyDecision&&(this.lexerActionExecutor&&e.lexerActionExecutor?this.lexerActionExecutor.equals(e.lexerActionExecutor):!e.lexerActionExecutor)&&super.equals(e)}},Ke=class{static{l(this,"BaseErrorListener")}syntaxError(e,t,i,s,n,r){}reportAmbiguity(e,t,i,s,n,r,o){}reportAttemptingFullContext(e,t,i,s,n,r){}reportContextSensitivity(e,t,i,s,n,r){}},Ye=class e extends Ke{static{l(this,"ConsoleErrorListener")}static instance=new e;syntaxError(e,t,i,s,n,r){console.error("line "+i+":"+s+" "+n)}},qe=class extends Ke{constructor(e){return super(),this.delegates=e,this}static{l(this,"ProxyErrorListener")}syntaxError(e,t,i,s,n,r){this.delegates.forEach((o=>{o.syntaxError(e,t,i,s,n,r)}))}reportAmbiguity(e,t,i,s,n,r,o){this.delegates.forEach((a=>{a.reportAmbiguity(e,t,i,s,n,r,o)}))}reportAttemptingFullContext(e,t,i,s,n,r){this.delegates.forEach((o=>{o.reportAttemptingFullContext(e,t,i,s,n,r)}))}reportContextSensitivity(e,t,i,s,n,r){this.delegates.forEach((o=>{o.reportContextSensitivity(e,t,i,s,n,r)}))}},$e=class e{static{l(this,"Recognizer")}static EOF=-1;static tokenTypeMapCache=new Map;static ruleIndexMapCache=new Map;interpreter;listeners=[Ye.instance];stateNumber=-1;checkVersion(e){const t="4.13.1";t!==e&&console.error("ANTLR runtime and generated code versions disagree: "+t+"!="+e)}addErrorListener(e){this.listeners.push(e)}removeErrorListeners(){this.listeners=[]}removeErrorListener(e){for(let t=0;t<this.listeners.length;t++)if(this.listeners[t]===e)return void this.listeners.splice(t,1)}getErrorListeners(){return this.listeners}getTokenTypeMap(){const t=this.vocabulary;let i=e.tokenTypeMapCache.get(t);if(!i){i=new Map;for(let e=0;e<=this.atn.maxTokenType;e++){const s=t.getLiteralName(e);s&&i.set(s,e);const n=t.getSymbolicName(e);n&&i.set(n,e)}i.set("EOF",r.EOF),e.tokenTypeMapCache.set(t,i)}return i}getRuleIndexMap(){const t=this.ruleNames;let i=e.ruleIndexMapCache.get(t);return i||(i=new Map,t.forEach(((e,t)=>i.set(e,t))),e.ruleIndexMapCache.set(t,i)),i}getTokenType(e){const t=this.getTokenTypeMap().get(e);return t||r.INVALID_TYPE}getErrorHeader(e){const t=e.offendingToken?.line,i=e.offendingToken?.column;return"line "+t+":"+i}get errorListenerDispatch(){return new qe(this.listeners)}sempred(e,t,i){return!0}precpred(e,t){return!0}action(e,t,i){}get atn(){return this.interpreter.atn}get state(){return this.stateNumber}set state(e){this.stateNumber=e}getParseInfo(){}},Qe=class e{static{l(this,"CommonTokenFactory")}static DEFAULT=new e;copyText=!1;constructor(e){this.copyText=e??!1}create(e,t,i,s,n,r,o,a){const l=H.fromSource(e,t,s,n,r);return l.line=o,l.column=a,i?l.text=i:this.copyText&&null!==e[1]&&(l.text=e[1].getTextFromRange(n,r)),l}},Xe=class e extends Error{static{l(this,"RecognitionException")}ctx;offendingToken=null;offendingState=-1;recognizer;input;constructor(t){super(t.message),Error.captureStackTrace&&Error.captureStackTrace(this,e),this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer&&null!==this.ctx?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}},Ze=class extends Xe{static{l(this,"LexerNoViableAltException")}startIndex;deadEndConfigs;constructor(e,t,i,s){super({message:"",recognizer:e,input:t,ctx:null}),this.startIndex=i,this.deadEndConfigs=s}toString(){let e="";return this.input&&this.startIndex>=0&&this.startIndex<this.input.size&&(e=this.input.getTextFromRange(this.startIndex,this.startIndex)),`LexerNoViableAltException(${e})`}},Je=class e extends $e{static{l(this,"Lexer")}static DEFAULT_MODE=0;static MORE=-2;static SKIP=-3;static DEFAULT_TOKEN_CHANNEL=r.DEFAULT_CHANNEL;static HIDDEN=r.HIDDEN_CHANNEL;options={minDFAEdge:0,maxDFAEdge:256,minCodePoint:0,maxCodePoint:1114111};tokenStartCharIndex=-1;channel=0;type=0;mode=e.DEFAULT_MODE;currentTokenColumn=0;currentTokenStartLine=0;input;token=null;hitEOF=!1;factory;#a=[];#i;constructor(e,t){super(),this.options={...this.options,...t},this.input=e,this.factory=Qe.DEFAULT}reset(t=!0){t&&this.input.seek(0),this.token=null,this.type=r.INVALID_TYPE,this.channel=r.DEFAULT_CHANNEL,this.tokenStartCharIndex=-1,this.currentTokenColumn=-1,this.currentTokenStartLine=-1,this.#i=void 0,this.hitEOF=!1,this.mode=e.DEFAULT_MODE,this.#a=[],this.interpreter.reset()}nextToken(){if(null===this.input)throw new Error("nextToken requires a non-null input stream.");const t=this.input.mark();try{for(;;){if(this.hitEOF)return this.emitEOF(),this.token;this.token=null,this.channel=r.DEFAULT_CHANNEL,this.tokenStartCharIndex=this.input.index,this.currentTokenColumn=this.interpreter.column,this.currentTokenStartLine=this.interpreter.line,this.#i=void 0;let t=!1;for(;;){this.type=r.INVALID_TYPE;let s=e.SKIP;try{s=this.interpreter.match(this.input,this.mode)}catch(i){if(!(i instanceof Ze))throw i;this.notifyListeners(i),this.recover(i)}if(this.input.LA(1)===r.EOF&&(this.hitEOF=!0),this.type===r.INVALID_TYPE&&(this.type=s),this.type===e.SKIP){t=!0;break}if(this.type!==e.MORE)break}if(!t)return null===this.token&&this.emit(),this.token}}finally{this.input.release(t)}}skip(){this.type=e.SKIP}more(){this.type=e.MORE}pushMode(e){at.debug&&console.log("pushMode "+e),this.#a.push(this.mode),this.mode=e}popMode(){if(0===this.#a.length)throw new Error("Empty Stack");return at.debug&&console.log("popMode back to "+this.#a.slice(0,-1)),this.mode=this.#a.pop(),this.mode}get modeStack(){return this.#a}emitToken(e){this.token=e}emit(){const e=this.factory.create([this,this.input],this.type,this.#i,this.channel,this.tokenStartCharIndex,this.getCharIndex()-1,this.currentTokenStartLine,this.currentTokenColumn);return this.emitToken(e),e}emitEOF(){const e=this.factory.create([this,this.input],r.EOF,void 0,r.DEFAULT_CHANNEL,this.input.index,this.input.index-1,this.line,this.column);return this.emitToken(e),e}getCharIndex(){return this.input.index}getAllTokens(){const e=[];let t=this.nextToken();for(;t.type!==r.EOF;)e.push(t),t=this.nextToken();return e}notifyListeners(e){const t=this.tokenStartCharIndex,i=this.input.index,s=this.input.getTextFromRange(t,i),n="token recognition error at: '"+this.getErrorDisplay(s)+"'";this.errorListenerDispatch.syntaxError(this,null,this.currentTokenStartLine,this.currentTokenColumn,n,e)}getErrorDisplay(e){return e}getErrorDisplayForChar(e){return e.charCodeAt(0)===r.EOF?"<EOF>":"\n"===e?"\\n":"\t"===e?"\\t":"\r"===e?"\\r":e}getCharErrorDisplay(e){return"'"+this.getErrorDisplayForChar(e)+"'"}recover(e){this.input.LA(1)!==r.EOF&&(e instanceof Ze?this.interpreter.consume(this.input):this.input.consume())}get inputStream(){return this.input}set inputStream(e){this.reset(!1),this.input=e}set tokenFactory(e){this.factory=e}get tokenFactory(){return this.factory}get sourceName(){return this.input.getSourceName()}get line(){return this.interpreter.line}set line(e){this.interpreter.line=e}get column(){return this.interpreter.column}set column(e){this.interpreter.column=e}get text(){return this.#i?this.#i:this.interpreter.getText(this.input)}set text(e){this.#i=e}},et=class{static{l(this,"DFASerializer")}dfa;vocabulary;constructor(e,t){this.dfa=e,this.vocabulary=t}toString(){if(!this.dfa.s0)return"";let e="";const t=this.dfa.getStates();for(const i of t){let t=0;t=i.edges.length;for(let s=0;s<t;s++){const t=i.edges[s];if(t&&2147483647!==t.stateNumber){e+=this.getStateString(i);e+="-",e+=this.getEdgeLabel(s),e+="->",e+=this.getStateString(t),e+="\n"}}}return e}getEdgeLabel(e){return`${this.vocabulary.getDisplayName(e-1)}`}getStateString(e){const t=e.stateNumber,i=(e.isAcceptState?":":"")+"s"+t+(e.requiresFullContext?"^":"");return e.isAcceptState?null!==e.predicates?`${i}=>${e.predicates.toString()}`:`${i}=>${e.prediction}`:`${i}`}},tt=class extends et{static{l(this,"LexerDFASerializer")}constructor(e){super(e,f.EMPTY_VOCABULARY)}getEdgeLabel=l((e=>"'"+String.fromCharCode(e)+"'"),"getEdgeLabel")},it=class{static{l(this,"DFA")}s0;decision;atnStartState;isPrecedenceDfa;states=new Map;constructor(e,t){this.atnStartState=e,this.decision=t??0;let i=!1;e instanceof de&&e.precedenceRuleDecision&&(i=!0,this.s0=Ve.fromState(-1)),this.isPrecedenceDfa=i}[Symbol.iterator]=()=>this.states.values()[Symbol.iterator]();getPrecedenceStartState=l((e=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");if(!(!this.s0||!this.s0.edges||e<0||e>=this.s0.edges.length))return this.s0.edges[e]}),"getPrecedenceStartState");setPrecedenceStartState=l(((e,t)=>{if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");e<0||!this.s0||(this.s0.edges[e]=t)}),"setPrecedenceStartState");getStates(){const e=[...this.states.values()];return e.sort(((e,t)=>e.stateNumber-t.stateNumber)),e}getState(e){return this.states.get(e.configs.hashCode())??null}getStateForConfigs(e){return this.states.get(e.hashCode())??null}addState(e){const t=e.configs.hashCode();this.states.has(t)||(this.states.set(t,e),e.stateNumber=this.states.size-1)}toString(e){if(!e)return this.toString(f.EMPTY_VOCABULARY);if(!this.s0)return"";return new et(this,e).toString()??""}toLexerString(){if(!this.s0)return"";return new tt(this).toString()??""}get length(){return this.states.size}},st=class e{static{l(this,"LexerIndexedCustomAction")}offset;action;actionType;isPositionDependent=!0;cachedHashCode;constructor(e,t){this.actionType=t.actionType,this.offset=e,this.action=t}execute(e){this.action.execute(e)}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize();e=d.update(e,this.offset),e=d.updateFromComparable(e,this.action),this.cachedHashCode=d.finish(e,2)}return this.cachedHashCode}equals(t){return this===t||t instanceof e&&(this.offset===t.offset&&this.action===t.action)}},nt=class e{static{l(this,"LexerActionExecutor")}lexerActions;actionType;isPositionDependent=!1;cachedHashCode;constructor(e){return this.actionType=-1,this.lexerActions=e??[],this}static append(t,i){if(null===t)return new e([i]);const s=t.lexerActions.concat([i]);return new e(s)}fixOffsetBeforeMatch(t){let i=null;for(let e=0;e<this.lexerActions.length;e++)!this.lexerActions[e].isPositionDependent||this.lexerActions[e]instanceof st||(null===i&&(i=this.lexerActions.concat([])),i[e]=new st(t,this.lexerActions[e]));return null===i?this:new e(i)}execute(e,t,i){if(void 0===t||void 0===i)return;let s=!1;const n=t.index;try{for(const r of this.lexerActions){let o=r;if(r instanceof st){const e=r.offset;t.seek(i+e),o=r.action,s=i+e!==n}else r.isPositionDependent&&(t.seek(n),s=!1);o.execute(e)}}finally{s&&t.seek(n)}}hashCode(){if(void 0===this.cachedHashCode){let e=d.initialize(7);for(const t of this.lexerActions)e=d.update(e,t.hashCode());this.cachedHashCode=d.finish(e,this.lexerActions.length)}return this.cachedHashCode}equals(e){return this===e||this.cachedHashCode===e.cachedHashCode&&(this.lexerActions.length===e.lexerActions.length&&this.lexerActions.every(((t,i)=>t.equals(e.lexerActions[i]))))}},rt=class e extends p{static{l(this,"OrderedHashSet")}elements=[];getOrAdd(e){const t=this.size,i=super.getOrAdd(e);return this.size>t&&this.elements.push(e),i}equals(t){return t instanceof e&&super.equals(t)}clear(){super.clear(),this.elements=[]}*[Symbol.iterator](){yield*this.elements}toArray(){return this.elements.slice(0)}},ot=class extends ee{static{l(this,"OrderedATNConfigSet")}constructor(){super(),this.configLookup=new rt}},at=class e extends ze{static{l(this,"LexerATNSimulator")}static debug=!1;decisionToDFA;recognizer=null;startIndex=-1;line=1;column=0;mode=Je.DEFAULT_MODE;prevAccept;options;lexerATNConfigFactory;constructor(e,t,i,s){super(t,s),this.decisionToDFA=i,this.recognizer=e,this.options=e?e.options:{minDFAEdge:0,maxDFAEdge:256,minCodePoint:0,maxCodePoint:1114111}}match(e,t){this.mode=t;const i=e.mark();try{this.startIndex=e.index,this.prevAccept=void 0;const i=this.decisionToDFA[t];return i.s0?this.execATN(e,i.s0):this.matchATN(e)}finally{e.release(i)}}reset(){this.prevAccept=void 0,this.startIndex=-1,this.line=1,this.column=0,this.mode=Je.DEFAULT_MODE}clearDFA(){for(let e=0;e<this.decisionToDFA.length;e++)this.decisionToDFA[e]=new it(this.atn.getDecisionState(e),e)}getDFA(e){return this.decisionToDFA[e]}getText(e){return e.getTextFromRange(this.startIndex,e.index-1)}consume(e){e.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,e.consume()}getTokenName(e){return e===r.EOF?"EOF":"'"+String.fromCharCode(e)+"'"}matchATN(t){const i=this.atn.modeToStartState[this.mode];e.debug&&console.log("matchATN mode "+this.mode+" start: "+i);const s=this.mode,n=this.computeStartState(t,i),r=n.hasSemanticContext;n.hasSemanticContext=!1;const o=this.addDFAState(n);r||(this.decisionToDFA[this.mode].s0=o);const a=this.execATN(t,o);return e.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[s].toLexerString()),a}execATN(t,i){e.debug&&console.log("start state closure="+i.configs),i.isAcceptState&&this.captureSimState(t,i);let s=t.LA(1);for(;;){e.debug&&console.log("execATN loop starting closure: "+i.configs);let n=this.getExistingTargetState(i,s);if(n||(n=this.computeTargetState(t,i,s)),n===ze.ERROR)break;if(s!==r.EOF&&this.consume(t),n.isAcceptState&&(this.captureSimState(t,n),s===r.EOF))break;s=t.LA(1),i=n}return this.failOrAccept(t,i.configs,s)}getExistingTargetState(t,i){if(i>=this.options.minDFAEdge&&i<=this.options.maxDFAEdge){const s=t.edges[i-this.options.minDFAEdge];return e.debug&&s&&console.log("reuse state "+t.stateNumber+" edge to "+s.stateNumber),s}}computeTargetState(e,t,i){const s=new ot;return this.getReachableConfigSet(e,t.configs,s,i),0===s.length?(s.hasSemanticContext||this.addDFAEdge(t,i,ze.ERROR),ze.ERROR):this.addDFAEdge(t,i,null,s)}failOrAccept(e,t,i){if(this.prevAccept?.dfaState){const{dfaState:t,index:i,line:s,column:n}=this.prevAccept;return this.accept(e,t.lexerActionExecutor,this.startIndex,i,s,n),t.prediction}if(i===r.EOF&&e.index===this.startIndex)return r.EOF;throw new Ze(this.recognizer,e,this.startIndex,t)}getReachableConfigSet(t,i,s,n){let o=Z.INVALID_ALT_NUMBER;for(const a of i){const i=a.alt===o;if(!i||!a.passedThroughNonGreedyDecision){e.debug&&console.log("testing %s at %s\n",this.getTokenName(n),a.toString(this.recognizer,!0));for(const e of a.state.transitions){const l=this.getReachableTarget(e,n);if(l){let e=a.lexerActionExecutor;e&&(e=e.fixOffsetBeforeMatch(t.index-this.startIndex));const c=n===r.EOF,h=je.createWithExecutor(a,l,e);this.closure(t,h,s,i,!0,c)&&(o=a.alt)}}}}}accept(t,i,s,n,r,o){e.debug&&console.log("ACTION %s\n",i),t.seek(n),this.line=r,this.column=o,i&&this.recognizer&&i.execute(this.recognizer,t,s)}getReachableTarget(e,t){return e.matches(t,this.options.minCodePoint,this.options.maxCodePoint)?e.target:void 0}computeStartState(e,t){const i=N.instance,s=new ot;for(let n=0;n<t.transitions.length;n++){const r=t.transitions[n].target,o=je.createWithContext(r,n+1,i);this.closure(e,o,s,!1,!1,!1)}return s}closure(t,i,s,n,r,o){let a=null;if(e.debug&&console.log("closure("+i.toString(this.recognizer,!0)+")"),i.state.constructor.stateType===x.RULE_STOP){if(e.debug&&(null!==this.recognizer?console.log("closure at %s rule stop %s\n",this.recognizer.ruleNames[i.state.ruleIndex],i):console.log("closure at rule stop %s\n",i)),!i.context||i.context.hasEmptyPath()){if(!i.context||i.context.isEmpty())return s.add(i),!0;s.add(je.createWithConfig(i.state,i,N.instance)),n=!0}if(i.context&&!i.context.isEmpty())for(let e=0;e<i.context.length;e++)if(i.context.getReturnState(e)!==k.EMPTY_RETURN_STATE){const l=i.context.getParent(e),c=this.atn.states[i.context.getReturnState(e)];a=je.createWithConfig(c,i,l),n=this.closure(t,a,s,n,r,o)}return n}i.state.epsilonOnlyTransitions||n&&i.passedThroughNonGreedyDecision||s.add(i);for(const e of i.state.transitions)a=this.getEpsilonTarget(t,i,e,s,r,o),a&&(n=this.closure(t,a,s,n,r,o));return n}getEpsilonTarget(e,t,i,s,n,r){this.lexerATNConfigFactory||this.setupATNFactoryLookup();const o=this.lexerATNConfigFactory[i.transitionType];return o?o(e,t,i,s,n,r):null}setupATNFactoryLookup(){this.lexerATNConfigFactory=[],this.lexerATNConfigFactory[I.RULE]=(e,t,i)=>{const s=z(t.context??void 0,i.followState.stateNumber);return je.createWithConfig(i.target,t,s)},this.lexerATNConfigFactory[I.PRECEDENCE]=()=>{throw new Error("Precedence predicates are not supported in lexers.")},this.lexerATNConfigFactory[I.PREDICATE]=(t,i,s,n,r)=>{const o=s;return e.debug&&console.log("EVAL rule "+o.ruleIndex+":"+o.predIndex),n.hasSemanticContext=!0,this.evaluatePredicate(t,o.ruleIndex,o.predIndex,r)?je.createWithConfig(s.target,i):null},this.lexerATNConfigFactory[I.ACTION]=(e,t,i)=>{if(null===t.context||t.context.hasEmptyPath()){const e=nt.append(t.lexerActionExecutor,this.atn.lexerActions[i.actionIndex]);return je.createWithExecutor(t,i.target,e)}return je.createWithConfig(i.target,t)},this.lexerATNConfigFactory[I.EPSILON]=(e,t,i)=>je.createWithConfig(i.target,t);const t=l(((e,t,i,s,n,o)=>o&&i.matches(r.EOF,this.options.minCodePoint,this.options.maxCodePoint)?je.createWithConfig(i.target,t):null),"simple");this.lexerATNConfigFactory[I.ATOM]=t,this.lexerATNConfigFactory[I.RANGE]=t,this.lexerATNConfigFactory[I.SET]=t}evaluatePredicate(e,t,i,s){if(!this.recognizer)return!0;if(!s)return this.recognizer.sempred(null,t,i);const n=this.column,r=this.line,o=e.index,a=e.mark();try{return this.consume(e),this.recognizer.sempred(null,t,i)}finally{this.column=n,this.line=r,e.seek(o),e.release(a)}}captureSimState(e,t){this.prevAccept={index:e.index,line:this.line,column:this.column,dfaState:t}}addDFAEdge(t,i,s,n){if(!s&&n){const e=n.hasSemanticContext;if(n.hasSemanticContext=!1,s=this.addDFAState(n),e)return s}return i<this.options.minDFAEdge||i>this.options.maxDFAEdge||(e.debug&&console.log("EDGE "+t+" -> "+s+" upon "+i),t.edges[i-this.options.minDFAEdge]=s),s}addDFAState(e){const t=this.decisionToDFA[this.mode],i=t.getStateForConfigs(e);if(i)return i;const s=Ve.fromConfigs(e),n=e.firstStopState;return n&&(s.isAcceptState=!0,s.lexerActionExecutor=n.lexerActionExecutor,s.prediction=this.atn.ruleToTokenType[n.state.ruleIndex]),e.setReadonly(!0),t.addState(s),s}},lt=class{static{l(this,"ParseInfo")}atnSimulator;constructor(e){this.atnSimulator=e}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){const e=this.atnSimulator.getDecisionInfo(),t=new Array;for(let i=0;i<e.length;i++){e[i].llFallback>0&&t.push(i)}return t}getTotalTimeInPrediction(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.timeInPrediction;return t}getTotalSLLLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllTotalLook;return t}getTotalLLLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.llTotalLook;return t}getTotalSLLATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllATNTransitions;return t}getTotalLLATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.llATNTransitions;return t}getTotalATNLookaheadOps(){const e=this.atnSimulator.getDecisionInfo();let t=0;for(const i of e)t+=i.sllATNTransitions,t+=i.llATNTransitions;return t}getDFASize(e){if(void 0===e){let e=0;const t=this.atnSimulator.decisionToDFA;for(let i=0;i<t.length;i++)e+=this.getDFASize(i);return e}return this.atnSimulator.decisionToDFA[e].length}},ct=class extends Xe{static{l(this,"NoViableAltException")}deadEndConfigs=null;startToken;constructor(e,t=null,i=null,s=null,n=null,r=null){r=r??e.context,s=s??e.getCurrentToken(),i=i??e.getCurrentToken(),super({message:"",recognizer:e,input:t=t??e.inputStream,ctx:r}),this.deadEndConfigs=n,this.startToken=i,this.offendingToken=s}},ht=class{static{l(this,"DoubleDict")}cacheMap;constructor(){this.cacheMap=new P}get(e,t){const i=this.cacheMap.get(e)??null;return null===i?null:i.get(t)??null}set(e,t,i){let s=this.cacheMap.get(e);s||(s=new P,this.cacheMap.set(e,s)),s.set(t,i)}},dt=class e{static{l(this,"SubsetEqualityComparer")}static instance=new e;hashCode(e){let t=d.initialize(7);return t=d.update(t,e.state.stateNumber),t=d.updateFromComparable(t,e.context),t=d.finish(t,2),t}equals(e,t){return e.state.stateNumber===t.state.stateNumber&&(e.context?.equals(t.context)??!0)}},ut=class e{static{l(this,"PredictionMode")}static SLL=0;static LL=1;static LL_EXACT_AMBIG_DETECTION=2;static hasSLLConflictTerminatingPrediction(t,i){if(e.allConfigsInRuleStopStates(i))return!0;if(t===e.SLL&&i.hasSemanticContext){const e=new ee;for(let t of i)t=T.duplicate(t,y.NONE),e.add(t);i=e}const s=e.getConflictingAltSubsets(i);return e.hasConflictingAltSet(s)&&!e.hasStateAssociatedWithOneAlt(i)}static hasConfigInRuleStopState(e){for(const t of e)if(t.state instanceof ae)return!0;return!1}static allConfigsInRuleStopStates(e){for(const t of e)if(!(t.state instanceof ae))return!1;return!0}static resolvesToJustOneViableAlt(t){return e.getSingleViableAlt(t)}static allSubsetsConflict(t){return!e.hasNonConflictingAltSet(t)}static hasNonConflictingAltSet(e){for(const t of e)if(1===t.length)return!0;return!1}static hasConflictingAltSet(e){for(const t of e)if(t.length>1)return!0;return!1}static allSubsetsEqual(e){let t=null;for(const i of e)if(null===t)t=i;else if(i!==t)return!1;return!0}static getUniqueAlt(t){const i=e.getAlts(t);return 1===i.length?i.nextSetBit(0):Z.INVALID_ALT_NUMBER}static getAlts(e){const t=new h;return e.forEach((e=>{t.or(e)})),t}static getConflictingAltSubsets(e){const t=new P(dt.instance);for(const i of e){let e=t.get(i);e||(e=new h,t.set(i,e)),e.set(i.alt)}return Array.from(t.values())}static getStateToAltMap(e){const t=new P(u.instance);for(const i of e){let e=t.get(i.state);e||(e=new h,t.set(i.state,e)),e.set(i.alt)}return t}static hasStateAssociatedWithOneAlt(e){const t={};for(const i of e){const e=i.state.stateNumber;t[e]||(t[e]=0),t[e]++}return Object.values(t).some((e=>1===e))}static getSingleViableAlt(e){let t=null;for(const i of e){const e=i.nextSetBit(0);if(null===t)t=e;else if(t!==e)return Z.INVALID_ALT_NUMBER}return t??0}},gt=class e extends ze{static{l(this,"ParserATNSimulator")}static traceATNSimulator=!1;static debug;static debugAdd=!1;static debugClosure=!1;static dfaDebug=!1;static retryDebug=!1;predictionMode;decisionToDFA;parser;mergeCache=new ht;predictionState;constructor(e,t,i,s){super(t,s),this.parser=e,this.decisionToDFA=i}static getUniqueAlt(e){let t=Z.INVALID_ALT_NUMBER;for(const i of e)if(t===Z.INVALID_ALT_NUMBER)t=i.alt;else if(i.alt!==t)return Z.INVALID_ALT_NUMBER;return t}reset(){}clearDFA(){for(let e=0;e<this.decisionToDFA.length;e++)this.decisionToDFA[e]=new it(this.atn.getDecisionState(e),e)}adaptivePredict(t,i,s){(e.debug||e.traceATNSimulator)&&console.log("adaptivePredict decision "+i+" exec LA(1)=="+this.getLookaheadName(t)+" line "+t.LT(1).line+":"+t.LT(1).column);const n=this.decisionToDFA[i];this.predictionState={input:t,startIndex:t.index,outerContext:s??void 0,dfa:n};const r=t.mark(),o=t.index;try{let i;if(i=n.isPrecedenceDfa?n.getPrecedenceStartState(this.parser.getPrecedence()):n.s0,!i){s||(s=W.empty),e.debug&&console.log("predictATN decision "+n.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+s.toString(this.parser.ruleNames));const r=!1;let o=this.computeStartState(n.atnStartState,W.empty,r);n.isPrecedenceDfa?(o=this.applyPrecedenceFilter(o),i=this.addDFAState(n,Ve.fromConfigs(o)),n.setPrecedenceStartState(this.parser.getPrecedence(),i)):(i=this.addDFAState(n,Ve.fromConfigs(o)),n.s0=i)}const r=this.execATN(n,i,t,o,s);return e.debug&&console.log("DFA after predictATN: "+n.toString(this.parser.vocabulary)),r}finally{this.predictionState.dfa=void 0,this.mergeCache=new ht,t.seek(o),t.release(r)}}execATN(t,i,s,n,o){let a;(e.debug||e.traceATNSimulator)&&console.log("execATN decision "+t.decision+", DFA state "+i+", LA(1)=="+this.getLookaheadName(s)+" line "+s.LT(1).line+":"+s.LT(1).column);let l=i,c=s.LA(1);for(;;){let i=this.getExistingTargetState(l,c);if(i||(i=this.computeTargetState(t,l,c)),i===ze.ERROR){const e=this.noViableAlt(s,o,l.configs,n);if(s.seek(n),a=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(l.configs,o),a!==Z.INVALID_ALT_NUMBER)return a;throw e}if(i.requiresFullContext&&this.predictionMode!==ut.SLL){let r=null;if(null!==i.predicates){e.debug&&console.log("DFA state has preds in DFA sim LL failover");const t=s.index;if(t!==n&&s.seek(n),r=this.evalSemanticContext(i.predicates,o,!0),1===r.length)return e.debug&&console.log("Full LL avoided"),r.nextSetBit(0);t!==n&&s.seek(t)}e.dfaDebug&&console.log("ctx sensitive state "+o+" in "+i);const l=!0,c=this.computeStartState(t.atnStartState,o,l);return this.reportAttemptingFullContext(t,r,i.configs,n,s.index),a=this.execATNWithFullContext(t,i,c,s,n,o),a}if(i.isAcceptState){if(null===i.predicates)return i.prediction;const e=s.index;s.seek(n);const r=this.evalSemanticContext(i.predicates,o,!0);if(0===r.length)throw this.noViableAlt(s,o,i.configs,n);return 1===r.length||this.reportAmbiguity(t,i,n,e,!1,r,i.configs),r.nextSetBit(0)}l=i,c!==r.EOF&&(s.consume(),c=s.LA(1))}}getExistingTargetState(e,t){return e.edges[t+1]}computeTargetState(t,i,s){const n=this.computeReachSet(i.configs,s,!1);if(null===n)return this.addDFAEdge(t,i,s,ze.ERROR),ze.ERROR;let r=Ve.fromConfigs(n);const o=e.getUniqueAlt(n);if(e.debug){const e=ut.getConflictingAltSubsets(n);console.log("SLL altSubSets="+C(e)+", configs="+n+", predict="+o+", allSubsetsConflict="+ut.allSubsetsConflict(e)+", conflictingAlts="+this.getConflictingAlts(n))}return o!==Z.INVALID_ALT_NUMBER?(r.isAcceptState=!0,r.configs.uniqueAlt=o,r.prediction=o):ut.hasSLLConflictTerminatingPrediction(this.predictionMode,n)&&(r.configs.conflictingAlts=this.getConflictingAlts(n),r.requiresFullContext=!0,r.isAcceptState=!0,r.prediction=r.configs.conflictingAlts.nextSetBit(0)),r.isAcceptState&&r.configs.hasSemanticContext&&(this.predicateDFAState(r,this.atn.getDecisionState(t.decision)),null!==r.predicates&&(r.prediction=Z.INVALID_ALT_NUMBER)),r=this.addDFAEdge(t,i,s,r),r}getRuleName(e){return null!==this.parser&&e>=0?this.parser.ruleNames[e]:"<rule "+e+">"}getTokenName(e){if(e===r.EOF)return"EOF";const t=(this.parser?.vocabulary??f.EMPTY_VOCABULARY).getDisplayName(e);return t===e.toString()?t:t+"<"+e+">"}getLookaheadName(e){return this.getTokenName(e.LA(1))}dumpDeadEndConfigs(e){console.log("dead end configs: ");const t=e.deadEndConfigs;for(const i of t){let e="no edges";if(i.state.transitions.length>0){const t=i.state.transitions[0];if(t instanceof me)e="Atom "+this.getTokenName(t.labelValue);else if(t instanceof O){e=(t instanceof D?"~":"")+"Set "+t.label}}console.error(i.toString(this.parser,!0)+":"+e)}}predicateDFAState(e,t){const i=t.transitions.length,s=this.getConflictingAltsOrUniqueAlt(e.configs),n=this.getPredsForAmbigAlts(s,e.configs,i);null!==n?(e.predicates=this.getPredicatePredictions(s,n),e.prediction=Z.INVALID_ALT_NUMBER):e.prediction=s.nextSetBit(0)}execATNWithFullContext(t,i,s,n,o,a){(e.debug||e.traceATNSimulator)&&console.log("execATNWithFullContext "+s);let l,c=!1,h=s;n.seek(o);let d=n.LA(1),u=-1;for(;;){if(l=this.computeReachSet(h,d,true),null===l){const e=this.noViableAlt(n,a,h,o);n.seek(o);const t=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(h,a);if(t!==Z.INVALID_ALT_NUMBER)return t;throw e}const t=ut.getConflictingAltSubsets(l);if(e.debug&&console.log("LL altSubSets="+t+", predict="+ut.getUniqueAlt(t)+", resolvesToJustOneViableAlt="+ut.resolvesToJustOneViableAlt(t)),l.uniqueAlt=e.getUniqueAlt(l),l.uniqueAlt!==Z.INVALID_ALT_NUMBER){u=l.uniqueAlt;break}if(this.predictionMode!==ut.LL_EXACT_AMBIG_DETECTION){if(u=ut.resolvesToJustOneViableAlt(t),u!==Z.INVALID_ALT_NUMBER)break}else if(ut.allSubsetsConflict(t)&&ut.allSubsetsEqual(t)){c=!0,u=ut.getSingleViableAlt(t);break}h=l,d!==r.EOF&&(n.consume(),d=n.LA(1))}return l.uniqueAlt!==Z.INVALID_ALT_NUMBER?(this.reportContextSensitivity(t,u,l,o,n.index),u):(this.reportAmbiguity(t,i,o,n.index,c,l.getAlts(),l),u)}computeReachSet(t,i,s){e.debug&&console.log("in computeReachSet, starting closure: "+t);const n=new ee(s);let o=null;for(const l of t)if(e.debug&&console.log("testing "+this.getTokenName(i)+" at "+l),l.state instanceof ae)(s||i===r.EOF)&&(null===o&&(o=[]),o.push(l));else for(const t of l.state.transitions){const s=this.getReachableTarget(t,i);if(null!==s){const t=T.createWithConfig(s,l);n.add(t,this.mergeCache),e.debugAdd&&console.log("added "+t+" to intermediate")}}let a=null;if(null===o&&i!==r.EOF&&(1===n.length||e.getUniqueAlt(n)!==Z.INVALID_ALT_NUMBER)&&(a=n),null===a){a=new ee(s);const e=new p,t=i===r.EOF;for(const i of n)this.closure(i,a,e,!1,s,t)}if(i===r.EOF&&(a=this.removeAllConfigsNotInRuleStopState(a,a===n)),null!==o&&(!s||!ut.hasConfigInRuleStopState(a)))for(const e of o)a.add(e,this.mergeCache);return e.traceATNSimulator&&console.log("computeReachSet "+t+" -> "+a),0===a.length?null:a}removeAllConfigsNotInRuleStopState(e,t){if(ut.allConfigsInRuleStopStates(e))return e;const i=new ee(e.fullCtx);for(const s of e)if(s.state instanceof ae)i.add(s,this.mergeCache);else if(t&&s.state.epsilonOnlyTransitions){if(this.atn.nextTokens(s.state).contains(r.EPSILON)){const e=this.atn.ruleToStopState[s.state.ruleIndex];i.add(T.createWithConfig(e,s),this.mergeCache)}}return i}computeStartState(t,i,s){const n=G(this.atn,i),r=new ee(s);e.traceATNSimulator&&console.log("computeStartState from ATN state "+t+" initialContext="+n.toString(this.parser));for(let e=0;e<t.transitions.length;e++){const i=t.transitions[e].target,o=T.createWithContext(i,e+1,n),a=new p;this.closure(o,r,a,!0,s,!1)}return r}applyPrecedenceFilter(e){const t=[],i=new ee(e.fullCtx);for(const s of e){if(1!==s.alt)continue;const e=s.semanticContext.evalPrecedence(this.parser,this.predictionState.outerContext);null!==e&&(t[s.state.stateNumber]=s.context,e!==s.semanticContext?i.add(T.duplicate(s,e),this.mergeCache):i.add(s,this.mergeCache))}for(const s of e)if(1!==s.alt){if(!s.precedenceFilterSuppressed){const e=t[s.state.stateNumber]||null;if(null!==e&&e.equals(s.context))continue}i.add(s,this.mergeCache)}return i}getReachableTarget(e,t){return e.matches(t,0,this.atn.maxTokenType)?e.target:null}getPredsForAmbigAlts(t,i,s){let n=[];for(const e of i)t.get(e.alt)&&(n[e.alt]=y.orContext(n[e.alt]??null,e.semanticContext));let r=0;for(let e=1;e<s+1;e++){const t=n[e]??null;null===t?n[e]=y.NONE:t!==y.NONE&&(r+=1)}return 0===r&&(n=null),e.debug&&console.log("getPredsForAmbigAlts result "+C(n)),n}getPredicatePredictions(e,t){const i=[];let s=!1;for(let n=1;n<t.length;n++){const r=t[n];e.get(n)&&i.push({pred:r,alt:n}),r!==y.NONE&&(s=!0)}return s?i:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(e,t){const i=this.splitAccordingToSemanticValidity(e,t),s=i[0],n=i[1];let r=this.getAltThatFinishedDecisionEntryRule(s);return r!==Z.INVALID_ALT_NUMBER||n.length>0&&(r=this.getAltThatFinishedDecisionEntryRule(n),r!==Z.INVALID_ALT_NUMBER)?r:Z.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(e){const t=[];for(const i of e)(i.reachesIntoOuterContext||i.state instanceof ae&&i.context.hasEmptyPath())&&t.indexOf(i.alt)<0&&t.push(i.alt);return 0===t.length?Z.INVALID_ALT_NUMBER:Math.min(...t)}splitAccordingToSemanticValidity(e,t){const i=new ee(e.fullCtx),s=new ee(e.fullCtx);for(const n of e)if(n.semanticContext!==y.NONE){n.semanticContext.evaluate(this.parser,t)?i.add(n):s.add(n)}else i.add(n);return[i,s]}evalSemanticContext(t,i,s){const n=new h;for(const r of t){if(r.pred===y.NONE){if(n.set(r.alt),!s)break;continue}const t=r.pred.evaluate(this.parser,i);if((e.debug||e.dfaDebug)&&console.log("eval pred "+r+"="+t),t&&(n.set(r.alt),!s))break}return n}closure(e,t,i,s,n,r){this.closureCheckingStopState(e,t,i,s,n,0,r)}closureCheckingStopState(t,i,s,n,r,o,a){if((e.traceATNSimulator||e.debugClosure)&&console.log("closure("+t.toString(this.parser,!0)+")"),t.state instanceof ae){if(t.context&&!t.context.isEmpty()){for(let l=0;l<t.context.length;l++){if(t.context.getReturnState(l)===k.EMPTY_RETURN_STATE){if(r){i.add(T.createWithConfig(t.state,t,N.instance),this.mergeCache);continue}e.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),this.closure_(t,i,s,n,r,o,a);continue}const c=this.atn.states[t.context.getReturnState(l)],h=t.context.getParent(l),d=T.createWithContext(c,t.alt,h,t.semanticContext);d.reachesIntoOuterContext=t.reachesIntoOuterContext,this.closureCheckingStopState(d,i,s,n,r,o-1,a)}return}if(r)return void i.add(t,this.mergeCache);e.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,i,s,n,r,o,a)}closure_(t,i,s,n,r,o,a){const l=t.state;l.epsilonOnlyTransitions||i.add(t,this.mergeCache);for(let c=0;c<l.transitions.length;c++){if(0===c&&this.canDropLoopEntryEdgeInLeftRecursiveRule(t))continue;const h=l.transitions[c],d=n&&!(h instanceof ve),u=this.getEpsilonTarget(t,h,d,0===o,r,a);if(u){let n=o;if(t.state.constructor.stateType===x.RULE_STOP){if(this.predictionState.dfa&&this.predictionState?.dfa.isPrecedenceDfa){h.outermostPrecedenceReturn===this.predictionState?.dfa.atnStartState?.ruleIndex&&(u.precedenceFilterSuppressed=!0)}if(u.reachesIntoOuterContext=!0,s.getOrAdd(u)!==u)continue;i.dipsIntoOuterContext=!0,n-=1,e.debug&&console.log("dips into outer ctx: "+u)}else{if(!h.isEpsilon&&s.getOrAdd(u)!==u)continue;h instanceof fe&&n>=0&&(n+=1)}this.closureCheckingStopState(u,i,s,d,r,n,a)}}}canDropLoopEntryEdgeInLeftRecursiveRule(e){const t=e.state;if(t.constructor.stateType!==x.STAR_LOOP_ENTRY||!e.context)return!1;if(!t.precedenceRuleDecision||e.context.isEmpty()||e.context.hasEmptyPath())return!1;const i=e.context.length;for(let r=0;r<i;r++){if(this.atn.states[e.context.getReturnState(r)].ruleIndex!==t.ruleIndex)return!1}const s=t.transitions[0].target.endState.stateNumber,n=this.atn.states[s];for(let r=0;r<i;r++){const i=e.context.getReturnState(r),s=this.atn.states[i];if(1!==s.transitions.length||!s.transitions[0].isEpsilon)return!1;const o=s.transitions[0].target;if((s.constructor.stateType!==x.BLOCK_END||o!==t)&&(s!==n&&o!==n&&(o.constructor.stateType!==x.BLOCK_END||1!==o.transitions.length||!o.transitions[0].isEpsilon||o.transitions[0].target!==t)))return!1}return!0}getEpsilonTarget(t,i,s,n,o,a){switch(i.transitionType){case I.RULE:return this.ruleTransition(t,i);case I.PRECEDENCE:return this.precedenceTransition(t,i,s,n,o);case I.PREDICATE:return this.predTransition(t,i,s,n,o);case I.ACTION:if(e.debug){const e=i,t=-1===e.actionIndex?65535:e.actionIndex;console.log("ACTION edge "+e.ruleIndex+":"+t)}return T.createWithConfig(i.target,t);case I.EPSILON:return T.createWithConfig(i.target,t);case I.ATOM:case I.RANGE:case I.SET:return a&&i.matches(r.EOF,0,1)?T.createWithConfig(i.target,t):null;default:return null}}precedenceTransition(t,i,s,n,r){e.debug&&(console.log("PRED (collectPredicates="+s+") "+i.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+C(this.parser.getRuleInvocationStack())));let o=null;if(s&&n)if(r&&this.predictionState?.input){const e=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const s=i.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(e),s&&(o=T.createWithConfig(i.target,t))}else{const e=y.andContext(t.semanticContext,i.getPredicate());o=T.createWithSemanticContext(i.target,t,e)}else o=T.createWithConfig(i.target,t);return e.debug&&console.log("config from pred transition="+o),o}predTransition(t,i,s,n,r){e.debug&&(console.log("PRED (collectPredicates="+s+") "+i.ruleIndex+":"+i.predIndex+", ctx dependent="+i.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+C(this.parser.getRuleInvocationStack())));let o=null;if(s&&(i.isCtxDependent&&n||!i.isCtxDependent))if(r&&this.predictionState?.input){const e=this.predictionState.input.index;this.predictionState.input.seek(this.predictionState.startIndex);const s=i.getPredicate().evaluate(this.parser,this.predictionState.outerContext);this.predictionState.input.seek(e),s&&(o=T.createWithConfig(i.target,t))}else{const e=y.andContext(t.semanticContext,i.getPredicate());o=T.createWithSemanticContext(i.target,t,e)}else o=T.createWithConfig(i.target,t);return e.debug&&console.log("config from pred transition="+o),o}ruleTransition(t,i){e.debug&&console.log("CALL rule "+this.getRuleName(i.target.ruleIndex)+", ctx="+t.context);const s=i.followState,n=z(t.context??void 0,s.stateNumber);return T.createWithConfig(i.target,t,n)}getConflictingAlts(e){const t=ut.getConflictingAltSubsets(e);return ut.getAlts(t)}getConflictingAltsOrUniqueAlt(e){let t;return e.uniqueAlt!==Z.INVALID_ALT_NUMBER?(t=new h,t.set(e.uniqueAlt)):t=e.conflictingAlts,t}noViableAlt(e,t,i,s){return new ct(this.parser,e,e.get(s),e.LT(1),i,t)}addDFAEdge(t,i,s,n){return e.debug&&console.log("EDGE "+i+" -> "+n+" upon "+this.getTokenName(s)),n=this.addDFAState(t,n),s<-1||s>this.atn.maxTokenType||(e.debug&&console.log("DFA=\n"+t.toString(null!=this.parser?this.parser.vocabulary:f.EMPTY_VOCABULARY)),i.edges[s+1]=n),n}addDFAState(t,i){if(i===ze.ERROR)return i;const s=t.getState(i);return null!==s?s:(i.configs.readOnly||(i.configs.optimizeConfigs(this),i.configs.setReadonly(!0)),e.traceATNSimulator&&console.log("addDFAState new "+i),t.addState(i),i)}reportAttemptingFullContext(t,i,s,n,r){if(e.debug||e.retryDebug){const e=new m(n,r+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+s+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportAttemptingFullContext(this.parser,t,n,r,i,s)}reportContextSensitivity(t,i,s,n,r){if(e.debug||e.retryDebug){const e=new m(n,r+1);console.log("reportContextSensitivity decision="+t.decision+":"+s+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportContextSensitivity(this.parser,t,n,r,i,s)}reportAmbiguity(t,i,s,n,r,o,a){if(e.debug||e.retryDebug){const e=new m(s,n+1);console.log("reportAmbiguity "+o+":"+a+", input="+this.parser.tokenStream.getTextFromInterval(e))}this.parser.errorListenerDispatch.reportAmbiguity(this.parser,t,s,n,r,o,a)}},pt=class{static{l(this,"PredictionContextCache")}cache=new P(u.instance);add(e){if(e===N.instance)return e;const t=this.cache.get(e);return t||(this.cache.set(e,e),e)}get(e){return this.cache.get(e)}get length(){return this.cache.size}},mt=class extends gt{static{l(this,"ProfilingATNSimulator")}decisions;numDecisions=0;currentDecision=0;currentState;conflictingAltResolvedBySLL;sllStopIndex=0;llStopIndex=0;constructor(e){const t=e.interpreter.sharedContextCache;if(super(e,e.interpreter.atn,e.interpreter.decisionToDFA,t),t){this.numDecisions=this.atn.decisionToState.length,this.decisions=new Array(this.numDecisions);for(let e=0;e<this.numDecisions;e++)this.decisions[e]=new Ge(e)}}adaptivePredict(e,t,i){try{this.sllStopIndex=-1,this.llStopIndex=-1,this.currentDecision=t;const s=performance.now(),n=super.adaptivePredict(e,t,i),r=performance.now();this.decisions[t].timeInPrediction+=r-s,this.decisions[t].invocations++;const o=this.sllStopIndex-this.predictionState.startIndex+1;if(this.decisions[t].sllTotalLook+=o,this.decisions[t].sllMinLook=0===this.decisions[t].sllMinLook?o:Math.min(this.decisions[t].sllMinLook,o),o>this.decisions[t].sllMaxLook&&(this.decisions[t].sllMaxLook=o,this.decisions[t].sllMaxLookEvent={decision:t,configs:null,predictedAlt:n,input:e,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1}),this.llStopIndex>=0){const i=this.llStopIndex-this.predictionState.startIndex+1;this.decisions[t].llTotalLook+=i,this.decisions[t].llMinLook=0===this.decisions[t].llMinLook?i:Math.min(this.decisions[t].llMinLook,i),i>this.decisions[t].llMaxLook&&(this.decisions[t].llMaxLook=i,this.decisions[t].llMaxLookEvent={decision:t,configs:null,predictedAlt:n,input:e,startIndex:this.predictionState.startIndex,stopIndex:this.llStopIndex,fullCtx:!0})}return n}finally{this.currentDecision=-1}}getExistingTargetState(e,t){this.sllStopIndex=this.predictionState.input.index;const i=super.getExistingTargetState(e,t);return void 0!==i&&(this.decisions[this.currentDecision].sllDFATransitions++,i===ze.ERROR&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e.configs,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1})),this.currentState=i,i}computeTargetState(e,t,i){const s=super.computeTargetState(e,t,i);return this.currentState=s,s}computeReachSet(e,t,i){i&&this.predictionState?.input&&(this.llStopIndex=this.predictionState.input.index);const s=super.computeReachSet(e,t,i);return this.predictionState?.input&&(i?(this.decisions[this.currentDecision].llATNTransitions++,null===s&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!0})):(this.decisions[this.currentDecision].sllATNTransitions++,null===s&&this.decisions[this.currentDecision].errors.push({decision:this.currentDecision,configs:e,input:this.predictionState.input,startIndex:this.predictionState.startIndex,stopIndex:this.sllStopIndex,fullCtx:!1}))),s}reportAttemptingFullContext(e,t,i,s,n){this.conflictingAltResolvedBySLL=null!==t?t.nextSetBit(0):i.getAlts().nextSetBit(0),this.decisions[this.currentDecision].llFallback++,t&&super.reportAttemptingFullContext(e,t,i,s,n)}reportContextSensitivity(e,t,i,s,n){t!==this.conflictingAltResolvedBySLL&&this.predictionState.input&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:i,input:this.predictionState.input,startIndex:s,stopIndex:n,fullCtx:!0}),super.reportContextSensitivity(e,t,i,s,n)}reportAmbiguity(e,t,i,s,n,r,o){let a;a=r?r.nextSetBit(0):o.getAlts().nextSetBit(0),this.predictionState?.input&&(o.fullCtx&&a!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push({decision:this.currentDecision,configs:o,input:this.predictionState.input,startIndex:i,stopIndex:s,fullCtx:!0}),this.decisions[this.currentDecision].ambiguities.push({ambigAlts:r,decision:this.currentDecision,configs:o,input:this.predictionState.input,startIndex:i,stopIndex:s,fullCtx:o.fullCtx})),super.reportAmbiguity(e,t,i,s,n,r,o)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}};(R||(R={})).toString=l((e=>`(${e.pred}, ${e.alt})`),"toString");var ft,_t=class extends Error{static{l(this,"ParseCancellationException")}constructor(e){super(),this.cause=e}},vt=(class{static{l(this,"InterpreterDataReader")}static parseInterpreterData(e){const t=[],i=[],s=[],n=[],r=[],o=e.split("\n");let a=0,l=o[a++];if("token literal names:"!==l)throw new Error("Unexpected data entry");for(;;){if(l=o[a++],0===l.length)break;n.push("null"===l?null:l)}if(l=o[a++],"token symbolic names:"!==l)throw new Error("Unexpected data entry");for(;;){if(l=o[a++],0===l.length)break;r.push("null"===l?null:l)}if(l=o[a++],"rule names:"!==l)throw new Error("Unexpected data entry");for(;;){if(l=o[a++],0===l.length)break;t.push(l)}if(l=o[a++],"channel names:"===l){for(;;){if(l=o[a++],0===l.length)break;i.push(l)}if(l=o[a++],"mode names:"!==l)throw new Error("Unexpected data entry");for(;;){if(l=o[a++],0===l.length)break;s.push(l)}}if(l=o[a++],"atn:"!==l)throw new Error("Unexpected data entry");l=o[a++];const c=l.split(",");let h;const d=[];for(let u=0;u<c.length;++u){const e=c[u];h=e.startsWith("[")?Number(e.substring(1).trim()):e.endsWith("]")?Number(e.substring(0,e.length-1).trim()):Number(e.trim()),d[u]=h}return{atn:(new Be).deserialize(d),vocabulary:new f(n,r,[]),ruleNames:t,channels:i.length>0?i:void 0,modes:s.length>0?s:void 0}}},class{static{l(this,"AbstractParseTreeVisitor")}visit(e){return e.accept(this)}visitChildren(e){let t=this.defaultResult();const i=e.getChildCount();for(let s=0;s<i&&this.shouldVisitNextChild(e,t);s++){const i=e.getChild(s);if(i){const e=i.accept(this);t=this.aggregateResult(t,e)}}return t}visitTerminal(e){return this.defaultResult()}visitErrorNode(e){return this.defaultResult()}defaultResult(){return null}shouldVisitNextChild(e,t){return!0}aggregateResult(e,t){return t}});(class e{static{l(this,"ParseTreeWalker")}static DEFAULT=new e;walk(e,t){if(t instanceof U)e.visitErrorNode(t);else if(t instanceof F)e.visitTerminal(t);else{const i=t;this.enterRule(e,i);for(let s=0;s<t.getChildCount();s++)this.walk(e,t.getChild(s));this.exitRule(e,i)}}enterRule(e,t){const i=t.ruleContext;e.enterEveryRule(i),i.enterRule(e)}exitRule(e,t){const i=t.ruleContext;i.exitRule(e),e.exitEveryRule(i)}});(ft||(ft={})).fromString=l((e=>new Ct(e)),"fromString");var Ct=class{static{l(this,"CharStreamImpl")}name="";index=0;data;constructor(e){const t=[];for(const i of e)t.push(i.codePointAt(0));this.data=new Uint32Array(t)}reset(){this.index=0}consume(){if(this.index>=this.data.length)throw new Error("cannot consume EOF");this.index+=1}LA(e){if(0===e)return 0;e<0&&(e+=1);const t=this.index+e-1;return t<0||t>=this.data.length?r.EOF:this.data[t]}mark(){return-1}release(e){}seek(e){e<=this.index?this.index=e:this.index=Math.min(e,this.data.length)}getTextFromRange(e,t){return(t=t??this.data.length-1)>=this.data.length&&(t=this.data.length-1),e>=this.data.length?"":this.stringFromRange(e,t+1)}getTextFromInterval(e){const t=e.start;let i=e.stop;return i>=this.data.length&&(i=this.data.length-1),t>=this.data.length?"":this.stringFromRange(t,i+1)}toString(){return this.stringFromRange(0)}get size(){return this.data.length}getSourceName(){return this.name?this.name:s.UNKNOWN_SOURCE_NAME}stringFromRange(e,t){const i=this.data.slice(e,t);let s="";return i.forEach((e=>{s+=String.fromCodePoint(e)})),s}},bt=l((e=>void 0!==e.setText),"isWritableToken"),Et=class{static{l(this,"BufferedTokenStream")}tokenSource;tokens=[];p=-1;fetchedEOF=!1;constructor(e){this.tokenSource=e}mark(){return 0}release(e){}reset(){this.seek(0)}seek(e){this.lazyInit(),this.p=this.adjustSeekIndex(e)}get size(){return this.tokens.length}get index(){return this.p}get(e){return this.lazyInit(),this.tokens[e]}consume(){let e=!1;if(e=this.p>=0&&(this.fetchedEOF?this.p<this.tokens.length-1:this.p<this.tokens.length),!e&&this.LA(1)===r.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1))}sync(e){const t=e-this.tokens.length+1;if(t>0){return this.fetch(t)>=t}return!0}fetch(e){if(this.fetchedEOF)return 0;for(let t=0;t<e;t++){const e=this.tokenSource.nextToken();if(bt(e)&&(e.tokenIndex=this.tokens.length),this.tokens.push(e),e.type===r.EOF)return this.fetchedEOF=!0,t+1}return e}getTokens(e,t,i){if(this.lazyInit(),void 0===e&&void 0===t)return this.tokens;if(e??=0,void 0===t&&(t=this.tokens.length-1),e<0||t>=this.tokens.length||t<0||e>=this.tokens.length)throw new RangeError("start "+e+" or stop "+t+" not in 0.."+(this.tokens.length-1));if(e>t)return[];if(void 0===i)return this.tokens.slice(e,t+1);const s=[];t>=this.tokens.length&&(t=this.tokens.length-1);for(let n=e;n<t;n++){const e=this.tokens[n];if(e.type===r.EOF){s.push(e);break}i.has(e.type)&&s.push(e)}return s}LA(e){return this.LT(e)?.type??r.INVALID_TYPE}LB(e){return this.p-e<0?null:this.tokens[this.p-e]}LT(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);const t=this.p+e-1;return this.sync(t),t>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[t]}adjustSeekIndex(e){return e}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}setTokenSource(e){this.tokenSource=e,this.tokens=[],this.p=-1,this.fetchedEOF=!1}nextTokenOnChannel(e,t){if(this.sync(e),e>=this.tokens.length)return-1;let i=this.tokens[e];for(;i.channel!==t;){if(i.type===r.EOF)return-1;e+=1,this.sync(e),i=this.tokens[e]}return e}previousTokenOnChannel(e,t){if(e>=this.tokens.length)return this.tokens.length-1;for(;e>=0;){const i=this.tokens[e];if(i.type===r.EOF||i.channel===t)return e;--e}return e}getHiddenTokensToRight(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw new Error(`${e} not in 0..${this.tokens.length-1}`);const i=this.nextTokenOnChannel(e+1,Je.DEFAULT_TOKEN_CHANNEL),s=e+1,n=-1===i?this.tokens.length-1:i;return this.filterForChannel(s,n,t)}getHiddenTokensToLeft(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw new Error(`${e} not in 0..${this.tokens.length-1}`);const i=this.previousTokenOnChannel(e-1,Je.DEFAULT_TOKEN_CHANNEL);if(i===e-1)return;const s=i+1,n=e-1;return this.filterForChannel(s,n,t)}filterForChannel(e,t,i){const s=[];for(let n=e;n<t+1;n++){const e=this.tokens[n];-1===i?e.channel!==Je.DEFAULT_TOKEN_CHANNEL&&s.push(e):e.channel===i&&s.push(e)}if(0!==s.length)return s}getSourceName(){return this.tokenSource.sourceName}getText(){return this.getTextFromInterval(m.of(0,this.size-1))}getTextFromInterval(e){const t=e.start;let i=e.stop;if(t<0||i<0)return"";this.sync(i),i>=this.tokens.length&&(i=this.tokens.length-1);let s="";for(let n=t;n<=i;++n){const e=this.tokens[n];if(e.type===r.EOF)break;s+=e.text}return s}getTextFromContext(e){return this.getTextFromInterval(e.getSourceInterval())}getTextFromRange(e,t){return null!==e&&null!==t?this.getTextFromInterval(m.of(e.tokenIndex,t.tokenIndex)):""}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}setLine(e){this.tokenSource.line=e}setColumn(e){this.tokenSource.column=e}},St=class extends Et{static{l(this,"CommonTokenStream")}channel=r.DEFAULT_CHANNEL;constructor(e,t){super(e),this.channel=t??r.DEFAULT_CHANNEL}adjustSeekIndex(e){return this.nextTokenOnChannel(e,this.channel)}LB(e){if(0===e||this.index-e<0)return null;let t=this.index,i=1;for(;i<=e;)t=this.previousTokenOnChannel(t-1,this.channel),i+=1;return t<0?null:this.tokens[t]}LT(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);let t=this.index,i=1;for(;i<e;)this.sync(t+1)&&(t=this.nextTokenOnChannel(t+1,this.channel)),i+=1;return this.tokens[t]}getNumberOfOnChannelTokens(){let e=0;this.fill();for(const t of this.tokens)if(t.channel===this.channel&&(e+=1),t.type===r.EOF)break;return e}},yt=class e extends Je{static{l(this,"XPathLexer")}static TOKEN_REF=1;static RULE_REF=2;static ANYWHERE=3;static ROOT=4;static WILDCARD=5;static BANG=6;static ID=7;static STRING=8;static channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"];static literalNames=[null,null,null,"'//'","'/'","'*'","'!'"];static symbolicNames=[null,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"];static modeNames=["DEFAULT_MODE"];static ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"];constructor(t){super(t),this.interpreter=new at(this,e._ATN,e.decisionsToDFA,new pt)}get grammarFileName(){return"XPathLexer.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}get channelNames(){return e.channelNames}get modeNames(){return e.modeNames}action(e,t,i){if(4===t)this.ID_action(e,i)}ID_action(t,i){if(0===i){const t=this.text;t.charAt(0)===t.charAt(0).toUpperCase()?this.type=e.TOKEN_REF:this.type=e.RULE_REF}}static _serializedATN=[4,0,8,48,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,4,5,4,29,8,4,10,4,12,4,32,9,4,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,5,7,42,8,7,10,7,12,7,45,9,7,1,7,1,7,1,43,0,8,1,3,3,4,5,5,7,6,9,7,11,0,13,0,15,8,1,0,2,784,0,0,8,14,27,48,57,65,90,95,95,97,122,127,159,170,170,173,173,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1536,1541,1552,1562,1564,1564,1568,1641,1646,1747,1749,1757,1759,1768,1770,1788,1791,1791,1807,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2192,2193,2200,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8203,8207,8234,8238,8255,8256,8276,8276,8288,8292,8294,8303,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65279,65279,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65529,65531,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69821,69821,69826,69826,69837,69837,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,113824,113827,118528,118573,118576,118598,119141,119145,119149,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,917505,917505,917536,917631,917760,917999,662,0,65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6276,6279,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,194560,195101,196608,201546,201552,205743,47,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,15,1,0,0,0,1,17,1,0,0,0,3,20,1,0,0,0,5,22,1,0,0,0,7,24,1,0,0,0,9,26,1,0,0,0,11,35,1,0,0,0,13,37,1,0,0,0,15,39,1,0,0,0,17,18,5,47,0,0,18,19,5,47,0,0,19,2,1,0,0,0,20,21,5,47,0,0,21,4,1,0,0,0,22,23,5,42,0,0,23,6,1,0,0,0,24,25,5,33,0,0,25,8,1,0,0,0,26,30,3,13,6,0,27,29,3,11,5,0,28,27,1,0,0,0,29,32,1,0,0,0,30,28,1,0,0,0,30,31,1,0,0,0,31,33,1,0,0,0,32,30,1,0,0,0,33,34,6,4,0,0,34,10,1,0,0,0,35,36,7,0,0,0,36,12,1,0,0,0,37,38,7,1,0,0,38,14,1,0,0,0,39,43,5,39,0,0,40,42,9,0,0,0,41,40,1,0,0,0,42,45,1,0,0,0,43,44,1,0,0,0,43,41,1,0,0,0,44,46,1,0,0,0,45,43,1,0,0,0,46,47,5,39,0,0,47,16,1,0,0,0,3,0,30,43,1,1,4,0];static __ATN;static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static vocabulary=new f(e.literalNames,e.symbolicNames,[]);get vocabulary(){return e.vocabulary}static decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))},wt=class extends Ke{static{l(this,"XPathLexerErrorListener")}syntaxError(e,t,i,s,n,r){}},Lt=class{static{l(this,"XPathElement")}invert;nodeName;constructor(e){this.nodeName=e,this.invert=!1}toString(){return"XPathElement["+(this.invert?"!":"")+this.nodeName+"]"}},Rt=class extends Lt{static{l(this,"XPathRuleAnywhereElement")}ruleIndex;constructor(e,t){super(e),this.ruleIndex=t}evaluate(e){return B.findAllRuleNodes(e,this.ruleIndex)}toString(){return"XPathRuleAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Tt=class extends Lt{static{l(this,"XPathRuleElement")}ruleIndex;constructor(e,t){super(e),this.ruleIndex=t}evaluate(e){const t=[];for(const i of B.getChildren(e))i instanceof W&&(i.ruleIndex===this.ruleIndex&&!this.invert||i.ruleIndex!==this.ruleIndex&&this.invert)&&t.push(i);return t}toString(){return"XPathRuleElement["+(this.invert?"!":"")+this.nodeName+"]"}},xt=class extends Lt{static{l(this,"XPathTokenAnywhereElement")}tokenType;constructor(e,t){super(e),this.tokenType=t}evaluate(e){return B.findAllTokenNodes(e,this.tokenType)}toString(){return"XPathTokenAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},kt=class extends Lt{static{l(this,"XPathTokenElement")}tokenType;constructor(e,t){super(e),this.tokenType=t}evaluate(e){const t=[];for(const i of B.getChildren(e))i instanceof F&&i.symbol&&(i.symbol.type===this.tokenType&&!this.invert||i.symbol.type!==this.tokenType&&this.invert)&&t.push(i);return t}toString(){return"XPathTokenElement["+(this.invert?"!":"")+this.nodeName+"]"}},At=class extends Lt{static{l(this,"XPathWildcardAnywhereElement")}constructor(){super(It.WILDCARD)}evaluate(e){return this.invert?[]:B.descendants(e)}toString(){return"XPathWildcardAnywhereElement["+(this.invert?"!":"")+this.nodeName+"]"}},Nt=class extends Lt{static{l(this,"XPathWildcardElement")}constructor(){super(It.WILDCARD)}evaluate(e){const t=[];if(this.invert)return t;for(const i of B.getChildren(e))t.push(i);return t}toString(){return"XPathWildcardElement["+(this.invert?"!":"")+this.nodeName+"]"}},It=class e{static{l(this,"XPath")}static WILDCARD="*";static NOT="!";path;elements;parser;constructor(e,t){this.parser=e,this.path=t,this.elements=this.split(t)}static findAll(t,i,s){return new e(s,i).evaluate(t)}split(e){const t=new yt(ft.fromString(e));t.recover=e=>{throw e},t.removeErrorListeners(),t.addErrorListener(new wt);const i=new St(t);try{i.fill()}catch(l){if(l instanceof Ze){const i="Invalid tokens or characters at index "+t.column+" in path '"+e+"' -- "+l.message;throw new RangeError(i)}throw l}const s=i.getTokens(),n=[],o=s.length;let a=0;e:for(;a<o;){const e=s[a];let t;switch(e.type){case yt.ROOT:case yt.ANYWHERE:const i=e.type===yt.ANYWHERE;a++,t=s[a];const o=t.type===yt.BANG;o&&(a++,t=s[a]);const l=this.getXPathElement(t,i);l.invert=o,n.push(l),a++;break;case yt.TOKEN_REF:case yt.RULE_REF:case yt.WILDCARD:n.push(this.getXPathElement(e,!1)),++a;break;case r.EOF:break e;default:throw new Error("Unknown path element "+e)}}return n}evaluate(e){const t=new W(null);t.addChild(e);let i=new Set([t]),s=0;for(;s<this.elements.length;){const e=new Set;for(const t of i)if(t.getChildCount()>0){this.elements[s].evaluate(t).forEach((t=>{e.add(t)}),e)}s++,i=e}return i}getXPathElement(e,t){if(e.type===r.EOF)throw new Error("Missing path element at end of path");const i=e.text;if(null==i)throw new Error("Expected wordToken to have text content.");const s=this.parser.getTokenType(i),n=this.parser.getRuleIndex(i);switch(e.type){case yt.WILDCARD:return t?new At:new Nt;case yt.TOKEN_REF:case yt.STRING:if(s===r.INVALID_TYPE)throw new Error(i+" at index "+e.start+" isn't a valid token name");return t?new xt(i,s):new kt(i,s);default:if(-1===n)throw new Error(i+" at index "+e.start+" isn't a valid rule name");return t?new Rt(i,n):new Tt(i,n)}}},Ot=class{static{l(this,"Chunk")}},Dt=class{static{l(this,"ParseTreeMatch")}tree;pattern;labels;mismatchedNode;constructor(e,t,i,s){this.tree=e,this.pattern=t,this.labels=i,this.mismatchedNode=s}get(e){const t=this.labels.get(e);return t&&0!==t.length?t[t.length-1]:null}getAll(e){return this.labels.get(e)??[]}getLabels(){return this.labels}getMismatchedNode(){return this.mismatchedNode}succeeded(){return!this.mismatchedNode}getPattern(){return this.pattern}getTree(){return this.tree}toString(){return`Match ${this.succeeded()?"succeeded":"failed"}; found ${this.getLabels().size} labels`}},Mt=class{static{l(this,"ParseTreePattern")}patternRuleIndex;pattern;patternTree;matcher;constructor(e,t,i,s){this.matcher=e,this.patternRuleIndex=i,this.pattern=t,this.patternTree=s}match(e){return this.matcher.match(e,this)}matches(e){return this.matcher.match(e,this).succeeded()}findAll(e,t){const i=It.findAll(e,t,this.matcher.getParser()),s=new Array;for(const n of i){const e=this.match(n);e.succeeded()&&s.push(e)}return s}getMatcher(){return this.matcher}getPattern(){return this.pattern}getPatternRuleIndex(){return this.patternRuleIndex}getPatternTree(){return this.patternTree}},Pt=class extends Xe{static{l(this,"InputMismatchException")}constructor(e){super({message:"",recognizer:e,input:e.inputStream,ctx:e.context}),this.offendingToken=e.getCurrentToken()}},Ft=class extends Xe{static{l(this,"FailedPredicateException")}ruleIndex=0;predicateIndex=0;predicate;constructor(e,t,i=null){super({message:Ut(t??"no predicate",i??null),recognizer:e,input:e.inputStream,ctx:e.context});const s=e.atn.states[e.state].transitions[0];s instanceof Se?(this.ruleIndex=s.ruleIndex,this.predicateIndex=s.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=t,this.offendingToken=e.getCurrentToken()}},Ut=l(((e,t)=>null!==t?t:"failed predicate: {"+e+"}?"),"formatMessage"),Ht=class{static{l(this,"DefaultErrorStrategy")}errorRecoveryMode=!1;lastErrorIndex=-1;lastErrorStates=new _;nextTokensContext=null;nextTokenState=0;reset(e){this.endErrorCondition(e)}beginErrorCondition(e){this.errorRecoveryMode=!0}inErrorRecoveryMode(e){return this.errorRecoveryMode}endErrorCondition(e){this.errorRecoveryMode=!1,this.lastErrorStates=new _,this.lastErrorIndex=-1}reportMatch(e){this.endErrorCondition(e)}reportError(e,t){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),t instanceof ct?this.reportNoViableAlternative(e,t):t instanceof Pt?this.reportInputMismatch(e,t):t instanceof Ft?this.reportFailedPredicate(e,t):e.notifyErrorListeners(t.message,t.offendingToken,t))}recover(e,t){this.lastErrorIndex===e.inputStream?.index&&this.lastErrorStates.contains(e.state)&&e.consume(),this.lastErrorIndex=e.inputStream?.index??0,this.lastErrorStates.addOne(e.state);const i=this.getErrorRecoverySet(e);this.consumeUntil(e,i)}sync(e){if(this.inErrorRecoveryMode(e))return;const t=e.atn.states[e.state],i=e.tokenStream.LA(1),s=e.atn.nextTokens(t);if(s.contains(i))return this.nextTokensContext=null,void(this.nextTokenState=x.INVALID_STATE_NUMBER);if(s.contains(r.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=e.context,this.nextTokenState=e.state);else switch(t.constructor.stateType){case x.BLOCK_START:case x.STAR_BLOCK_START:case x.PLUS_BLOCK_START:case x.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(e))return;throw new Pt(e);case x.PLUS_LOOP_BACK:case x.STAR_LOOP_BACK:{this.reportUnwantedToken(e);const t=new _;t.addSet(e.getExpectedTokens());const i=t.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,i);break}}}reportNoViableAlternative(e,t){if(t.message.length>0)return void e.notifyErrorListeners(t.message,t.offendingToken,t);const i=e.tokenStream;let s;s=null!==i&&t.startToken?t.startToken.type===r.EOF?"<EOF>":i.getTextFromRange(t.startToken,t.offendingToken):"<unknown input>";const n="no viable alternative at input "+this.escapeWSAndQuote(s);e.notifyErrorListeners(n,t.offendingToken,t)}reportInputMismatch(e,t){if(t.message.length>0)return void e.notifyErrorListeners(t.message,t.offendingToken,t);const i="mismatched input "+this.getTokenErrorDisplay(t.offendingToken)+" expecting "+t.getExpectedTokens().toStringWithVocabulary(e.vocabulary);e.notifyErrorListeners(i,t.offendingToken,t)}reportFailedPredicate(e,t){const i="rule "+e.ruleNames[e.context.ruleIndex]+" "+t.message;e.notifyErrorListeners(i,t.offendingToken,t)}reportUnwantedToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const t=e.getCurrentToken(),i="extraneous input "+this.getTokenErrorDisplay(t)+" expecting "+this.getExpectedTokens(e).toStringWithVocabulary(e.vocabulary);e.notifyErrorListeners(i,t,null)}reportMissingToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const t=e.getCurrentToken(),i="missing "+this.getExpectedTokens(e).toStringWithVocabulary(e.vocabulary)+" at "+this.getTokenErrorDisplay(t);e.notifyErrorListeners(i,t,null)}recoverInline(e){const t=this.singleTokenDeletion(e);if(t)return e.consume(),t;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw new Pt(e)}singleTokenInsertion(e){const t=e.tokenStream?.LA(1)??-1,i=e.atn,s=i.states[e.state].transitions[0].target;return!!i.nextTokens(s,e.context??void 0).contains(t)&&(this.reportMissingToken(e),!0)}singleTokenDeletion(e){const t=e.tokenStream?.LA(2)??-1;if(this.getExpectedTokens(e).contains(t)){this.reportUnwantedToken(e),e.consume();const t=e.getCurrentToken();return this.reportMatch(e),t}return null}getMissingSymbol(e){const t=e.getCurrentToken(),i=this.getExpectedTokens(e);let s,n=r.INVALID_TYPE;0!==i.length&&(n=i.minElement),s=n===r.EOF?"<missing EOF>":"<missing "+e.vocabulary.getDisplayName(n)+">";let o=t;const a=e.tokenStream?.LT(-1);return o.type===r.EOF&&null!==a&&(o=a),e.getTokenFactory().create(o.source,n,s,r.DEFAULT_CHANNEL,-1,-1,o.line,o.column)}getExpectedTokens(e){return e.getExpectedTokens()}getTokenErrorDisplay(e){if(null===e)return"<no token>";let t=e.text;return t||(t=e.type===r.EOF?"<EOF>":"<"+e.type+">"),this.escapeWSAndQuote(t)}escapeWSAndQuote(e){return"'"+(e=(e=(e=e.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(e){const t=e.atn;let i=e.context;const s=new _;for(;null!==i&&i.invokingState>=0;){const e=t.states[i.invokingState].transitions[0],n=t.nextTokens(e.followState);s.addSet(n),i=i.parent}return s.removeOne(r.EPSILON),s}consumeUntil(e,t){let i=e.tokenStream?.LA(1)??-1;for(;i!==r.EOF&&!t.contains(i);)e.consume(),i=e.tokenStream?.LA(1)??-1}},Bt=class extends Ht{static{l(this,"BailErrorStrategy")}recover(e,t){throw new _t(t)}recoverInline(e){const t=new Pt(e);throw new _t(t)}sync(e){}},Wt=class{static{l(this,"ListTokenSource")}sourceName;tokenFactory=Qe.DEFAULT;tokens=[];i=0;eofToken=null;constructor(e,t){this.tokens=e,this.sourceName=t??""}get column(){if(this.i<this.tokens.length)return this.tokens[this.i].column;if(null!==this.eofToken)return this.eofToken.column;if(this.tokens.length>0){const e=this.tokens[this.tokens.length-1],t=e.text;if(t){const e=t.lastIndexOf("\n");if(e>=0)return t.length-e-1}return e.column+e.stop-e.start+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null===this.eofToken){let e=-1;if(this.tokens.length>0){const t=this.tokens[this.tokens.length-1].stop;-1!==t&&(e=t+1)}const t=Math.max(-1,e-1);this.eofToken=this.tokenFactory.create([this,this.inputStream],r.EOF,"EOF",r.DEFAULT_CHANNEL,e,t,this.line,this.column)}return this.eofToken}const e=this.tokens[this.i];return this.i===this.tokens.length-1&&e.type===r.EOF&&(this.eofToken=e),this.i++,e}get line(){if(this.i<this.tokens.length)return this.tokens[this.i].line;if(null!==this.eofToken)return this.eofToken.line;if(this.tokens.length>0){const e=this.tokens[this.tokens.length-1];let t=e.line;const i=e.text;if(i)for(const s of i)"\n"===s&&t++;return t}return 1}get inputStream(){return this.i<this.tokens.length?this.tokens[this.i].inputStream:null!==this.eofToken?this.eofToken.inputStream:this.tokens.length>0?this.tokens[this.tokens.length-1].inputStream:null}getSourceName(){if(null!==this.sourceName)return this.sourceName;const e=this.inputStream;return null!==e?e.getSourceName():"List"}},Vt=class extends W{static{l(this,"InterpreterRuleContext")}#l;constructor(e,t,i){super(t,i),this.#l=e}get ruleIndex(){return this.#l}},zt=class{static{l(this,"TraceListener")}parser;constructor(e){this.parser=e}enterEveryRule(e){console.log("enter "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitTerminal(e){console.log("consume "+e.getSymbol()+" rule "+this.parser.ruleNames[this.parser.context.ruleIndex])}exitEveryRule(e){console.log("exit "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser.inputStream?.LT(1)?.text)}visitErrorNode(e){}},Gt=class extends $e{static{l(this,"Parser")}printer=null;buildParseTrees=!0;errorHandler=new Ht;context=null;precedenceStack=[];parseListeners=null;syntaxErrors=0;matchedEOF=!1;tracer=null;bypassAltsAtnCache=null;#c;constructor(e){super(),this.precedenceStack.push(0),this.syntaxErrors=0,this.#c=e}reset(e=!0){e&&this.inputStream.seek(0),this.errorHandler.reset(this),this.context=null,this.syntaxErrors=0,this.matchedEOF=!1,this.setTrace(!1),this.precedenceStack=[],this.precedenceStack.push(0),this.interpreter&&this.interpreter.reset()}match(e){let t=this.getCurrentToken();return t.type===e?(e===r.EOF&&(this.matchedEOF=!0),this.errorHandler.reportMatch(this),this.consume()):(t=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,t))),t}matchWildcard(){let e=this.getCurrentToken();return e.type>0?(this.errorHandler.reportMatch(this),this.consume()):(e=this.errorHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this.context.addErrorNode(this.createErrorNode(this.context,e))),e}getParseListeners(){return this.parseListeners??[]}addParseListener(e){if(null===e)throw new Error("listener");null===this.parseListeners&&(this.parseListeners=[]),this.parseListeners.push(e)}removeParseListener(e){if(null!==this.parseListeners&&null!==e){const t=this.parseListeners.indexOf(e);t>=0&&this.parseListeners.splice(t,1),0===this.parseListeners.length&&(this.parseListeners=null)}}removeParseListeners(){this.parseListeners=null}triggerEnterRuleEvent(){if(null!==this.parseListeners){const e=this.context;this.parseListeners.forEach((t=>{t.enterEveryRule(e),e.enterRule(t)}))}}triggerExitRuleEvent(){if(null!==this.parseListeners){const e=this.context;this.parseListeners.slice(0).reverse().forEach((t=>{e.exitRule(t),t.exitEveryRule(e)}))}}getTokenFactory(){return this.inputStream.tokenSource.tokenFactory}setTokenFactory(e){this.inputStream.tokenSource.tokenFactory=e}compileParseTreePattern(e,t,i){if(!i&&null!==this.tokenStream){const e=this.tokenStream.tokenSource;e instanceof Je&&(i=e)}if(!i)throw new Error("Parser can't discover a lexer to use");return new Jt(i,this).compile(e,t)}getATNWithBypassAlts(){const e=this.serializedATN;if(null===e)throw new Error("The current parser does not support an ATN with bypass alternatives.");if(null!==this.bypassAltsAtnCache)return this.bypassAltsAtnCache;return this.bypassAltsAtnCache=new Be({readOnly:!1,verifyATN:!0,generateRuleBypassTransitions:!0}).deserialize(e),this.bypassAltsAtnCache}get numberOfSyntaxErrors(){return this.syntaxErrors}get inputStream(){return this.#c}set inputStream(e){this.tokenStream=e}get tokenStream(){return this.#c}set tokenStream(e){this.reset(!1),this.#c=e}getCurrentToken(){return this.inputStream.LT(1)}notifyErrorListeners(e,t,i){i=i??null,null===(t=t??null)&&(t=this.getCurrentToken()),this.syntaxErrors+=1;const s=t.line,n=t.column;this.errorListenerDispatch.syntaxError(this,t,s,n,e,i)}consume(){const e=this.getCurrentToken();e.type!==r.EOF&&this.tokenStream.consume();const t=null!==this.parseListeners&&this.parseListeners.length>0;if(this.buildParseTrees||t){let i;i=this.errorHandler.inErrorRecoveryMode(this)?this.context.addErrorNode(this.createErrorNode(this.context,e)):this.context.addTokenNode(e),t&&this.parseListeners.forEach((e=>{i instanceof U?e.visitErrorNode(i):e.visitTerminal(i)}))}return e}addContextToParseTree(){this.context?.parent&&this.context.parent.addChild(this.context)}enterRule(e,t,i){this.state=t,this.context=e,this.context.start=this.inputStream.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this.context.stop=this.inputStream.LT(1):this.context.stop=this.inputStream.LT(-1),this.triggerExitRuleEvent(),this.state=this.context.invokingState,this.context=this.context.parent}enterOuterAlt(e,t){e.setAltNumber(t),this.buildParseTrees&&this.context!==e&&this.context?.parent&&(this.context.parent.removeLastChild(),this.context.parent.addChild(e)),this.context=e}getPrecedence(){return 0===this.precedenceStack.length?-1:this.precedenceStack[this.precedenceStack.length-1]}enterRecursionRule(e,t,i,s){this.state=t,this.precedenceStack.push(s),this.context=e,this.context.start=this.inputStream.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(e,t,i){const s=this.context;s.parent=e,s.invokingState=t,s.stop=this.inputStream.LT(-1),this.context=e,this.context.start=s.start,this.buildParseTrees&&this.context.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(e){this.precedenceStack.pop(),this.context.stop=this.inputStream.LT(-1);const t=this.context,i=this.getParseListeners();if(null!==i&&i.length>0)for(;this.context!==e;)this.triggerExitRuleEvent(),this.context=this.context.parent;else this.context=e;t.parent=e,this.buildParseTrees&&null!==e&&e.addChild(t)}getInvokingContext(e){let t=this.context;for(;null!==t;){if(t.ruleIndex===e)return t;t=t.parent}return null}precpred(e,t){return t>=this.precedenceStack[this.precedenceStack.length-1]}isExpectedToken(e){const t=this.interpreter.atn;let i=this.context;const s=t.states[this.state];let n=t.nextTokens(s);if(n.contains(e))return!0;if(!n.contains(r.EPSILON))return!1;for(;null!==i&&i.invokingState>=0&&n.contains(r.EPSILON);){const s=t.states[i.invokingState].transitions[0];if(n=t.nextTokens(s.followState),n.contains(e))return!0;i=i.parent}return!(!n.contains(r.EPSILON)||e!==r.EOF)}getExpectedTokens(){return this.interpreter.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){const e=this.interpreter.atn,t=e.states[this.state];return e.nextTokens(t)}getRuleIndex(e){return this.getRuleIndexMap().get(e)??-1}getRuleInvocationStack(e){null===(e=e??null)&&(e=this.context);const t=[];for(;null!==e;){const i=e.ruleIndex;i<0?t.push("n/a"):t.push(this.ruleNames[i]),e=e.parent}return t}getDFAStrings(){return this.interpreter.decisionToDFA.toString()}dumpDFA(){let e=!1;for(const t of this.interpreter.decisionToDFA)t.length>0&&(e&&console.log(),this.printer&&(this.printer.println("Decision "+t.decision+":"),this.printer.print(t.toString(this.vocabulary))),e=!0)}getSourceName(){return this.inputStream.getSourceName()}getParseInfo(){const e=this.interpreter;if(e instanceof mt)return new lt(e)}setProfile(e){const t=this.interpreter,i=t.predictionMode;if(e)t instanceof mt||(this.interpreter=new mt(this));else if(t instanceof mt){const e=t.sharedContextCache;if(e){const i=new gt(this,this.atn,t.decisionToDFA,e);this.interpreter=i}}this.interpreter.predictionMode=i}setTrace(e){e?(null!==this.tracer&&this.removeParseListener(this.tracer),this.tracer=new zt(this),this.addParseListener(this.tracer)):(this.removeParseListener(this.tracer),this.tracer=null)}createTerminalNode(e,t){return new F(t)}createErrorNode(e,t){return new U(t)}},jt=class extends Gt{static{l(this,"ParserInterpreter")}rootContext;overrideDecisionRoot=null;parentContextStack=[];overrideDecisionAlt=-1;overrideDecisionReached=!1;decisionToDFA;sharedContextCache=new pt;pushRecursionContextStates;#h=-1;#d=-1;#u;#g;#p;#m;constructor(e,t,i,s,n){super(n),this.#u=e,this.#g=s,this.#p=i.slice(0),this.#m=t,this.pushRecursionContextStates=new h;for(const r of s.states)r instanceof de&&r.precedenceRuleDecision&&this.pushRecursionContextStates.set(r.stateNumber);this.decisionToDFA=s.decisionToState.map(((e,t)=>new it(e,t))),this.interpreter=new gt(this,s,this.decisionToDFA,this.sharedContextCache)}reset(){super.reset(),this.overrideDecisionReached=!1,this.overrideDecisionRoot=null}get atn(){return this.#g}get vocabulary(){return this.#m}get ruleNames(){return this.#p}get grammarFileName(){return this.#u}get atnState(){return this.#g.states[this.state]}parse(e){const t=this.#g.ruleToStartState[e];for(this.rootContext=this.createInterpreterRuleContext(null,x.INVALID_STATE_NUMBER,e),t.isLeftRecursiveRule?this.enterRecursionRule(this.rootContext,t.stateNumber,e,0):this.enterRule(this.rootContext,t.stateNumber,e);;){const e=this.atnState;if(e.constructor.stateType===x.RULE_STOP){if(this.context?.isEmpty()){if(t.isLeftRecursiveRule){const e=this.context,t=this.parentContextStack.pop();return this.unrollRecursionContexts(t[0]),e}return this.exitRule(),this.rootContext}this.visitRuleStopState(e)}else try{this.visitState(e)}catch(i){if(!(i instanceof Xe))throw i;this.state=this.#g.ruleToStopState[e.ruleIndex].stateNumber,this.errorHandler.reportError(this,i),this.recover(i)}}}addDecisionOverride(e,t,i){this.#h=e,this.#d=t,this.overrideDecisionAlt=i}get overrideDecision(){return this.#h}get overrideDecisionInputIndex(){return this.#d}enterRecursionRule(e,t,i,s){this.parentContextStack.push([this.context,e.invokingState]),super.enterRecursionRule(e,t,i,s)}get serializedATN(){throw new Error("The ParserInterpreter does not support the serializedATN property.")}visitState(e){let t=1;e instanceof ie&&(t=this.visitDecisionState(e));const i=e.transitions[t-1];switch(i.transitionType){case I.EPSILON:if(this.pushRecursionContextStates.get(e.stateNumber)&&i.target.constructor.stateType!==x.LOOP_END){const t=this.parentContextStack[this.parentContextStack.length-1],i=this.createInterpreterRuleContext(t[0],t[1],this.context.ruleIndex);this.pushNewRecursionContext(i,this.#g.ruleToStartState[e.ruleIndex].stateNumber,this.context.ruleIndex)}break;case I.ATOM:this.match(i.label.minElement);break;case I.RANGE:case I.SET:case I.NOT_SET:i.matches(this.inputStream.LA(1),r.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case I.WILDCARD:this.matchWildcard();break;case I.RULE:const t=i.target,s=t.ruleIndex,n=this.createInterpreterRuleContext(this.context,e.stateNumber,s);t.isLeftRecursiveRule?this.enterRecursionRule(n,t.stateNumber,s,i.precedence):this.enterRule(n,i.target.stateNumber,s);break;case I.PREDICATE:const o=i;if(!this.sempred(this.context,o.ruleIndex,o.predIndex))throw new Ft(this);break;case I.ACTION:const a=i;this.action(this.context,a.ruleIndex,a.actionIndex);break;case I.PRECEDENCE:if(!this.precpred(this.context,i.precedence)){const e=i.precedence;throw new Ft(this,`precpred(_ctx, ${e})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=i.target.stateNumber}visitDecisionState(e){let t=1;if(e.transitions.length>1){this.errorHandler.sync(this);const i=e.decision;i!==this.#h||this.inputStream.index!==this.#d||this.overrideDecisionReached?t=this.interpreter.adaptivePredict(this.inputStream,i,this.context):(t=this.overrideDecisionAlt,this.overrideDecisionReached=!0)}return t}createInterpreterRuleContext(e,t,i){return new Vt(i,e,t)}visitRuleStopState(e){if(this.#g.ruleToStartState[e.ruleIndex].isLeftRecursiveRule){const[e,t]=this.parentContextStack.pop();this.unrollRecursionContexts(e),this.state=t}else this.exitRule();const t=this.#g.states[this.state].transitions[0];this.state=t.followState.stateNumber}recover(e){const t=this.inputStream.index;if(this.errorHandler.recover(this,e),this.inputStream.index===t){const t=e.offendingToken;if(!t)throw new Error("Expected exception to have an offending token");const i=t.tokenSource,s=[i,i?.inputStream??null];if(e instanceof Pt){const i=e.getExpectedTokens();if(!i)throw new Error("Expected the exception to provide expected tokens");let n=r.INVALID_TYPE;0!==i.length&&(n=i.minElement);const o=this.getTokenFactory().create(s,n,t.text,r.DEFAULT_CHANNEL,-1,-1,t.line,t.column);this.context.addErrorNode(this.createErrorNode(this.context,o))}else{const e=this.getTokenFactory().create(s,r.INVALID_TYPE,t.text,r.DEFAULT_CHANNEL,-1,-1,t.line,t.column);this.context.addErrorNode(this.createErrorNode(this.context,e))}}}recoverInline(){return this.errorHandler.recoverInline(this)}},Kt=class extends Map{static{l(this,"MultiMap")}map(e,t){let i=this.get(e);i||(i=new Array,this.set(e,i)),i.push(t)}getPairs(){const e=new Array;for(const t of this.keys()){const i=this.get(t)??[];for(const s of i)e.push([t,s])}return e}toString(){const e=[];return this.forEach(((t,i)=>{e.push(`${i}=[${t.join(", ")}]`)})),`{${e.join(", ")}}`}},Yt=class extends Error{static{l(this,"CannotInvokeStartRuleError")}constructor(e){super(),this.cause=e}},qt=class{static{l(this,"RuleTagToken")}label;ruleName;bypassTokenType;constructor(e,t,i){this.ruleName=e,this.bypassTokenType=t,this.label=i}get channel(){return r.DEFAULT_CHANNEL}get text(){return void 0!==this.label?"<"+this.label+":"+this.ruleName+">":"<"+this.ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get column(){return-1}get tokenIndex(){return-1}get start(){return-1}get stop(){return-1}get tokenSource(){return null}get inputStream(){return null}toString(){return this.ruleName+":"+this.bypassTokenType}},$t=class extends Error{static{l(this,"StartRuleDoesNotConsumeFullPatternError")}},Qt=class extends Ot{static{l(this,"TagChunk")}tag;label;constructor(...e){let t,i;if(1===e.length?i=e[0]:(t=e[0],i=e[1]),super(),!i)throw new Error("tag cannot be null or empty");this.label=t,this.tag=i}toString(){return void 0!==this.label?this.label+":"+this.tag:this.tag}},Xt=class extends Ot{static{l(this,"TextChunk")}text;constructor(e){super(),this.text=e}toString(){return"'"+this.text+"'"}},Zt=class extends H{static{l(this,"TokenTagToken")}tokenName;label;constructor(e,t,i){super({type:t,source:H.EMPTY_SOURCE}),this.tokenName=e,this.label=i}get text(){return void 0!==this.label?"<"+this.label+":"+this.tokenName+">":"<"+this.tokenName+">"}toString(){return this.tokenName+":"+this.type}},Jt=class{static{l(this,"ParseTreePatternMatcher")}start="<";stop=">";escape="\\";lexer;parser;constructor(e,t){this.lexer=e,this.parser=t}setDelimiters(e,t,i){if(null===e||0===e.length)throw new Error("start cannot be null or empty");if(null===t||0===t.length)throw new Error("stop cannot be null or empty");this.start=e,this.stop=t,this.escape=i}matches(...e){switch(e.length){case 2:{const[t,i]=e,s=new Kt;return null===this.matchImpl(t,i.getPatternTree(),s)}case 3:{const[t,i,s]=e,n=this.compile(i,s);return this.matches(t,n)}default:throw new Error("Invalid number of arguments")}}match(...e){switch(e.length){case 2:{const[t,i]=e,s=new Kt,n=this.matchImpl(t,i.getPatternTree(),s);return new Dt(t,i,s,n)}case 3:{const[t,i,s]=e,n=this.compile(i,s);return this.match(t,n)}default:throw new Error("Invalid number of arguments")}}compile(e,t){const i=this.tokenize(e),s=new Wt(i),n=new St(s),o=new jt(this.parser.grammarFileName,this.parser.vocabulary,this.parser.ruleNames,this.parser.getATNWithBypassAlts(),n);o.removeErrorListeners();let a=null;try{o.errorHandler=new Bt,a=o.parse(t)}catch(l){throw l instanceof _t?l.cause:l instanceof Xe?l:l instanceof Error?new Yt(l):l}if(n.LA(1)!==r.EOF)throw new $t;return new Mt(this,e,t,a)}getLexer(){return this.lexer}getParser(){return this.parser}tokenize(e){const t=this.split(e),i=new Array;for(const s of t)if(s instanceof Qt){const t=s,n=t.tag[0];if(n===n.toUpperCase()){const s=this.parser.getTokenType(t.tag);if(s===r.INVALID_TYPE)throw new Error("Unknown token "+t.tag+" in pattern: "+e);const n=new Zt(t.tag,s,t.label);i.push(n)}else{if(n!==n.toLowerCase())throw new Error("invalid tag: "+t.tag+" in pattern: "+e);{const s=this.parser.getRuleIndex(t.tag);if(-1===s)throw new Error("Unknown rule "+t.tag+" in pattern: "+e);const n=this.parser.getATNWithBypassAlts().ruleToTokenType[s];i.push(new qt(t.tag,n,t.label))}}}else{const e=s,t=ft.fromString(e.text);this.lexer.inputStream=t;let n=this.lexer.nextToken();for(;n.type!==r.EOF;)i.push(n),n=this.lexer.nextToken()}return i}split(e){let t=0;const i=e.length,s=new Array,n=new Array,r=new Array;for(;t<i;)t===e.indexOf(this.escape+this.start,t)?t+=this.escape.length+this.start.length:t===e.indexOf(this.escape+this.stop,t)?t+=this.escape.length+this.stop.length:t===e.indexOf(this.start,t)?(n.push(t),t+=this.start.length):t===e.indexOf(this.stop,t)?(r.push(t),t+=this.stop.length):t++;if(n.length>r.length)throw new Error("unterminated tag in pattern: "+e);if(n.length<r.length)throw new Error("missing start tag in pattern: "+e);const o=n.length;for(let a=0;a<o;a++)if(n[a]>=r[a])throw new Error("tag delimiters out of order in pattern: "+e);if(0===o){const t=e.substring(0,i);s.push(new Xt(t))}if(o>0&&n[0]>0){const t=e.substring(0,n[0]);s.push(new Xt(t))}for(let a=0;a<o;a++){const t=e.substring(n[a]+this.start.length,r[a]);let i,l=t;const c=t.indexOf(":");if(c>=0&&(i=t.substring(0,c),l=t.substring(c+1,t.length)),s.push(new Qt(i,l)),a+1<o){const t=e.substring(r[a]+this.stop.length,n[a+1]);s.push(new Xt(t))}}if(o>0){const t=r[o-1]+this.stop.length;if(t<i){const n=e.substring(t,i);s.push(new Xt(n))}}for(let a=0;a<s.length;a++){const e=s[a];if(e instanceof Xt){const t=e,i=t.text.replaceAll(this.escape,"");i.length<t.text.length&&(s[a]=new Xt(i))}}return s}matchImpl(e,t,i){if(e instanceof F&&t instanceof F){const s=e,n=t;let r;if(s.getSymbol().type===n.getSymbol().type)if(n.getSymbol()instanceof Zt){const t=n.getSymbol();i.map(t.tokenName,e),void 0!==t.label&&i.map(t.label,e)}else s.getText()===n.getText()||r||(r=s);else r||(r=s);return r}if(e instanceof W&&t instanceof W){let s;const n=this.getRuleTagToken(t);if(n)return e.ruleIndex===t.ruleIndex?(i.map(n.ruleName,e),n.label&&i.map(n.label,e)):s||(s=e),s;if(e.getChildCount()!==t.getChildCount())return s||(s=e),s;const r=e.getChildCount();for(let o=0;o<r;o++){const s=this.matchImpl(e.getChild(o),t.getChild(o),i);if(s)return s}return s}return e}getRuleTagToken(e){if(e instanceof W&&1===e.getChildCount()&&e.getChild(0)instanceof F){const t=e.getChild(0);if(t.getSymbol()instanceof qt)return t.getSymbol()}}},ei=(class extends Ke{static{l(this,"DiagnosticErrorListener")}exactOnly;constructor(e){super(),this.exactOnly=e??!0}reportAmbiguity=l(((e,t,i,s,n,r,o)=>{if(this.exactOnly&&!n)return;const a=this.getDecisionDescription(e,t),l=this.getConflictingAlts(r,o),c=e.tokenStream?.getTextFromInterval(m.of(i,s)),h=`reportAmbiguity d=${a}: ambigAlts=${l}, input='${c}'`;e.notifyErrorListeners(h,null,null)}),"reportAmbiguity");reportAttemptingFullContext=l(((e,t,i,s,n,r)=>{const o=this.getDecisionDescription(e,t),a=e.tokenStream?.getTextFromInterval(m.of(i,s)),l=`reportAttemptingFullContext d=${o}, input='${a}'`;e.notifyErrorListeners(l,null,null)}),"reportAttemptingFullContext");reportContextSensitivity=l(((e,t,i,s,n,r)=>{const o=this.getDecisionDescription(e,t),a=e.tokenStream?.getTextFromInterval(m.of(i,s)),l=`reportContextSensitivity d=${o}, input='${a}'`;e.notifyErrorListeners(l,null,null)}),"reportContextSensitivity");getDecisionDescription=l(((e,t)=>{const i=t.decision,s=t.atnStartState.ruleIndex,n=e.ruleNames;if(s<0||s>=n.length)return i.toString();const r=n[s];return 0===r.length?i.toString():`${i} (${r})`}),"getDecisionDescription");getConflictingAlts=l(((e,t)=>{if(e)return e;const i=new h;for(let s=0;s<t.configs.length;s++)i.set(t.configs[s].alt);return i}),"getConflictingAlts")},class extends Je{static{l(this,"LexerInterpreter")}decisionToDFA;sharedContextCache=new pt;#u;#g;#p;#f;#_;#m;constructor(e,t,i,s,n,r,o){if(super(o),r.grammarType!==Z.LEXER)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this.#u=e,this.#g=r,this.#p=i.slice(0),this.#f=s.slice(0),this.#_=n.slice(0),this.#m=t,this.decisionToDFA=r.decisionToState.map(((e,t)=>new it(e,t))),this.interpreter=new at(this,r,this.decisionToDFA,this.sharedContextCache)}get atn(){return this.#g}get grammarFileName(){return this.#u}get ruleNames(){return this.#p}get channelNames(){return this.#f}get modeNames(){return this.#_}get vocabulary(){return this.#m}get serializedATN(){throw new Error("The LexerInterpreter does not support the serializedATN property.")}},class e{static{l(this,"RuntimeMetaData")}static VERSION="4.13.1";static getRuntimeVersion(){return e.VERSION}static checkVersion(t,i){const s=e.VERSION;let n=!1,r=!1;n=s!==t&&e.getMajorMinorVersion(s)!==e.getMajorMinorVersion(t),r=s!==i&&e.getMajorMinorVersion(s)!==e.getMajorMinorVersion(i),n&&console.error(`ANTLR Tool version ${t} used for code generation does not match the current runtime version ${s}`),r&&console.error(`ANTLR Runtime version ${i} used for parser compilation does not match the current runtime version ${s}`)}static getMajorMinorVersion(e){const t=e.indexOf("."),i=t>=0?e.indexOf(".",t+1):-1,s=e.indexOf("-");let n=e.length;return i>=0&&(n=Math.min(n,i)),s>=0&&(n=Math.min(n,s)),e.substring(0,n)}},class e{static{l(this,"TokenStreamRewriter")}static DEFAULT_PROGRAM_NAME="default";static PROGRAM_INIT_SIZE=100;static MIN_TOKEN_INDEX=0;tokens;programs=new Map;lastRewriteTokenIndexes;constructor(e){this.tokens=e}getTokenStream(){return this.tokens}insertAfter(t,i,s=e.DEFAULT_PROGRAM_NAME){let n;n="number"===typeof t?t:t.tokenIndex;const r=this.getProgram(s),o=new ii(this.tokens,n,r.length,i);r.push(o)}insertBefore(t,i,s=e.DEFAULT_PROGRAM_NAME){let n;n="number"===typeof t?t:t.tokenIndex;const r=this.getProgram(s),o=new ti(this.tokens,n,r.length,i);r.push(o)}replaceSingle(t,i,s=e.DEFAULT_PROGRAM_NAME){this.replace(t,t,i,s)}replace(t,i,s,n=e.DEFAULT_PROGRAM_NAME){if("number"!==typeof t&&(t=t.tokenIndex),"number"!==typeof i&&(i=i.tokenIndex),t>i||t<0||i<0||i>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${i}(size=${this.tokens.size})`);const r=this.getProgram(n),o=new si(this.tokens,t,i,r.length,s);r.push(o)}delete(t,i,s=e.DEFAULT_PROGRAM_NAME){null==i&&(i=t),this.replace(t,i,null,s)}getProgram(e){let t=this.programs.get(e);return null==t&&(t=this.initializeProgram(e)),t}initializeProgram(e){const t=[];return this.programs.set(e,t),t}getText(t,i=e.DEFAULT_PROGRAM_NAME){let s;s=t instanceof m?t:new m(0,this.tokens.size-1),"string"===typeof t&&(i=t);const n=this.programs.get(i);let o=s.start,a=s.stop;if(a>this.tokens.size-1&&(a=this.tokens.size-1),o<0&&(o=0),null==n||0===n.length)return this.tokens.getTextFromInterval(new m(o,a));const l=[],c=this.reduceToSingleOperationPerIndex(n);let h=o;for(;h<=a&&h<this.tokens.size;){const e=c.get(h);c.delete(h);const t=this.tokens.get(h);null==e?(t.type!==r.EOF&&l.push(String(t.text)),h++):h=e.execute(l)}if(a===this.tokens.size-1)for(const e of c.values())e&&e.index>=this.tokens.size-1&&l.push(String(e.text));return l.join("")}reduceToSingleOperationPerIndex(e){for(let i=0;i<e.length;i++){const t=e[i];if(null==t)continue;if(!(t instanceof si))continue;const s=t,n=this.getKindOfOps(e,ti,i);for(const i of n)i.index===s.index?(e[i.instructionIndex]=null,s.text=String(i.text)+(null!=s.text?s.text.toString():"")):i.index>s.index&&i.index<=s.lastIndex&&(e[i.instructionIndex]=null);const r=this.getKindOfOps(e,si,i);for(const i of r){if(i.index>=s.index&&i.lastIndex<=s.lastIndex){e[i.instructionIndex]=null;continue}const t=i.lastIndex<s.index||i.index>s.lastIndex;if(null!=i.text||null!=s.text||t){if(!t)throw new Error(`replace op boundaries of ${s} overlap with previous ${i}`)}else e[i.instructionIndex]=null,s.index=Math.min(i.index,s.index),s.lastIndex=Math.max(i.lastIndex,s.lastIndex)}}for(let i=0;i<e.length;i++){const t=e[i];if(null==t)continue;if(!(t instanceof ti))continue;const s=t,n=this.getKindOfOps(e,ti,i);for(const i of n)i.index===s.index&&(i instanceof ii?(s.text=this.catOpText(i.text,s.text),e[i.instructionIndex]=null):i instanceof ti&&(s.text=this.catOpText(s.text,i.text),e[i.instructionIndex]=null));const r=this.getKindOfOps(e,si,i);for(const o of r)if(s.index!==o.index){if(s.index>=o.index&&s.index<=o.lastIndex)throw new Error(`insert op ${s} within boundaries of previous ${o}`)}else o.text=this.catOpText(s.text,o.text),e[i]=null}const t=new Map;for(const i of e)if(null!=i){if(null!=t.get(i.index))throw new Error("should only be one op per index");t.set(i.index,i)}return t}catOpText(e,t){let i="",s="";return null!=e&&(i=e.toString()),null!=t&&(s=t.toString()),i+s}getKindOfOps(e,t,i){return e.slice(0,i).filter((e=>e&&e instanceof t))}},class{static{l(this,"RewriteOperation")}instructionIndex;index;text;tokens;constructor(e,t,i,s){this.tokens=e,this.instructionIndex=i,this.index=t,this.text=void 0===s?"":s}execute(e){return this.index}toString(){return"<RewriteOperation@"+this.tokens.get(this.index)+':"'+this.text+'">'}}),ti=class extends ei{static{l(this,"InsertBeforeOp")}constructor(e,t,i,s){super(e,t,i,s)}execute(e){return this.text&&e.push(this.text.toString()),this.tokens.get(this.index).type!==r.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}toString(){return"<InsertBeforeOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}},ii=class extends ti{static{l(this,"InsertAfterOp")}constructor(e,t,i,s){super(e,t+1,i,s)}toString(){return"<InsertAfterOp@"+this.tokens.get(this.index)+':"'+this.text+'">'}},si=class extends ei{static{l(this,"ReplaceOp")}lastIndex;constructor(e,t,i,s,n){super(e,t,s,n),this.lastIndex=i}execute(e){return this.text&&e.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}},ni=(class{static{l(this,"UnbufferedTokenStream")}tokenSource;tokens;n;p=0;numMarkers=0;lastToken;lastTokenBufferStart;currentTokenIndex=0;constructor(e,t){this.tokenSource=e,t=t??256,this.tokens=new Array(t),this.n=0,this.fill(1)}get(e){const t=this.getBufferStartIndex();if(e<t||e>=t+this.n)throw new Error("get("+e+") outside buffer: "+t+".."+(t+this.n));return this.tokens[e-t]}LT(e){if(-1===e)return this.lastToken;this.sync(e);const t=this.p+e-1;if(t<0)throw new Error("LT("+e+") gives negative index");return t>=this.n?this.tokens[this.n-1]:this.tokens[t]}LA(e){return this.LT(e).type}getText(){return""}getTextFromContext(e){return this.getTextFromInterval(e.getSourceInterval())}getTextFromInterval(e){const t=this.getBufferStartIndex(),i=t+this.tokens.length-1,s=e.start,n=e.stop;if(s<t||n>i)throw new Error("interval "+e+" not in token buffer window: "+t+".."+i);const r=n-t;let o="";for(let a=s-t;a<=r;a++){o+=this.tokens[a].text}return o}getTextFromRange(e,t){return this.getTextFromInterval(m.of(e.tokenIndex,t.tokenIndex))}consume(){if(this.LA(1)===r.EOF)throw new Error("cannot consume EOF");this.lastToken=this.tokens[this.p],this.p===this.n-1&&0===this.numMarkers&&(this.n=0,this.p=-1,this.lastTokenBufferStart=this.lastToken),this.p++,this.currentTokenIndex++,this.sync(1)}mark(){0===this.numMarkers&&(this.lastTokenBufferStart=this.lastToken);const e=-this.numMarkers-1;return this.numMarkers++,e}release(e){if(e!==-this.numMarkers)throw new Error("release() called with an invalid marker.");this.numMarkers--,0===this.numMarkers&&(this.p>0&&(this.tokens.copyWithin(0,this.p,this.n),this.n=this.n-this.p,this.p=0),this.lastTokenBufferStart=this.lastToken)}get index(){return this.currentTokenIndex}seek(e){if(e===this.currentTokenIndex)return;e>this.currentTokenIndex&&(this.sync(e-this.currentTokenIndex),e=Math.min(e,this.getBufferStartIndex()+this.n-1));const t=this.getBufferStartIndex(),i=e-t;if(i<0)throw new Error("cannot seek to negative index "+e);if(i>=this.n)throw new Error("seek to index outside buffer: "+e+" not in "+t+".."+(t+this.n));this.p=i,this.currentTokenIndex=e,0===this.p?this.lastToken=this.lastTokenBufferStart:this.lastToken=this.tokens[this.p-1]}get size(){throw new Error("Unbuffered stream cannot know its size")}getSourceName(){return this.tokenSource.sourceName}setLine(e){this.tokenSource.line=e}setColumn(e){this.tokenSource.column=e}sync(e){const t=this.p+e-1-this.n+1;t>0&&this.fill(t)}fill(e){for(let t=0;t<e;t++){if(this.n>0&&this.tokens[this.n-1].type===r.EOF)return t;const e=this.tokenSource.nextToken();this.add(e)}return e}add(e){this.n>=this.tokens.length&&(this.tokens.length=2*this.tokens.length),bt(e)&&e.setTokenIndex(this.getBufferStartIndex()+this.n),this.tokens[this.n++]=e}getBufferStartIndex(){return this.currentTokenIndex-this.p}},Object.defineProperty),ri=(e,t)=>ni(e,"name",{value:t,configurable:!0}),oi=class{static{ri(this,"BaseSymbol")}name;context;modifiers=new Set;visibility=0;#v;constructor(e=""){this.name=e}get parent(){return this.#v}get firstSibling(){if(this.#v)return this.#v?.firstChild}get previousSibling(){if(this.#v)return this.#v?this.#v.previousSiblingOf(this):this}get nextSibling(){return this.#v?.nextSiblingOf(this)}get lastSibling(){return this.#v?.lastChild}get next(){return this.#v?.nextOf(this)}get root(){let e=this.#v;for(;e;){if(!e.parent||this.isSymbolTable(e.parent))return e;e=e.parent}return e}get symbolTable(){if(this.isSymbolTable(this))return this;let e=this.#v;for(;e;){if(this.isSymbolTable(e))return e;e=e.parent}}get symbolPath(){const e=[];let t=this;for(;t&&(e.push(t),t.parent);)t=t.parent;return e}setParent(e){this.#v=e}removeFromParent(){this.#v?.removeSymbol(this),this.#v=void 0}async resolve(e,t=!1){return this.#v?.resolve(e,t)}resolveSync(e,t=!1){return this.#v?.resolveSync(e,t)}getParentOfType(e){let t=this.#v;for(;t;){if(t instanceof e)return t;t=t.parent}}qualifiedName(e=".",t=!1,i=!1){if(!i&&0===this.name.length)return"";let s=0===this.name.length?"<anonymous>":this.name,n=this.#v;for(;n&&((i||n.name.length>0)&&(s=(0===n.name.length?"<anonymous>":n.name)+e+s),t&&n.parent);)n=n.parent;return s}isSymbolTable(e){return void 0!==e.info}},ai=(class extends oi{static{ri(this,"ArrayType")}elementType;size;referenceKind;constructor(e,t,i,s=0){super(e),this.referenceKind=t,this.elementType=i,this.size=s}get baseTypes(){return[]}get kind(){return 9}get reference(){return this.referenceKind}},class extends Error{static{ri(this,"DuplicateSymbolError")}}),li=class e extends oi{static{ri(this,"ScopedSymbol")}#C=[];#b=new Map;constructor(e=""){super(e)}get directScopes(){return this.getSymbolsOfType(e)}get children(){return this.#C}get firstChild(){if(this.#C.length>0)return this.#C[0]}get lastChild(){if(this.#C.length>0)return this.#C[this.#C.length-1]}clear(){this.#C=[],this.#b.clear()}addSymbol(e){e.removeFromParent();const t=this.symbolTable,i=this.#b.get(e.name);if(t&&t.options.allowDuplicateSymbols)this.#b.set(e.name,void 0===i?1:i+1);else{if(void 0!==i)throw new ai("Attempt to add duplicate symbol '"+(e.name??"<anonymous>")+"'");this.#b.set(e.name,1);if(this.#C.indexOf(e)>-1)throw new ai("Attempt to add duplicate symbol '"+(e.name??"<anonymous>")+"'")}this.#C.push(e),e.setParent(this)}removeSymbol(e){const t=this.#C.indexOf(e);if(t>-1){this.#C.splice(t,1),e.setParent(void 0);const i=this.#b.get(e.name);void 0!==i&&(1===i?this.#b.delete(e.name):this.#b.set(e.name,i-1))}}async getNestedSymbolsOfType(t){const i=[],s=[];this.#C.forEach((n=>{n instanceof t&&i.push(n),n instanceof e&&s.push(n.getNestedSymbolsOfType(t))}));return(await Promise.all(s)).forEach((e=>{i.push(...e)})),i}getNestedSymbolsOfTypeSync(t){const i=[];return this.#C.forEach((s=>{s instanceof t&&i.push(s),s instanceof e&&i.push(...s.getNestedSymbolsOfTypeSync(t))})),i}async getAllNestedSymbols(t){const i=[],s=[];this.#C.forEach((n=>{t&&n.name!==t||i.push(n),n instanceof e&&s.push(n.getAllNestedSymbols(t))}));return(await Promise.all(s)).forEach((e=>{i.push(...e)})),i}getAllNestedSymbolsSync(t){const i=[];return this.#C.forEach((s=>{t&&s.name!==t||i.push(s),s instanceof e&&i.push(...s.getAllNestedSymbolsSync(t))})),i}getSymbolsOfType(e){return new Promise((t=>{const i=[];this.#C.forEach((t=>{t instanceof e&&i.push(t)})),t(i)}))}async getAllSymbols(e,t=!1){const i=[];for(const s of this.#C)if(s instanceof e&&i.push(s),this.isNamespace(s)){const t=await s.getAllSymbols(e,!0);i.push(...t)}if(!t&&this.parent){const t=await this.getAllSymbols(e,!0);i.push(...t)}return i}getAllSymbolsSync(e,t=!1){const i=[];for(const s of this.#C)if(s instanceof e&&i.push(s),this.isNamespace(s)){const t=s.getAllSymbolsSync(e,!0);i.push(...t)}if(!t&&this.parent){const t=this.getAllSymbolsSync(e,!0);i.push(...t)}return i}async resolve(e,t=!1){return new Promise((i=>{for(const t of this.#C)if(t.name===e)return void i(t);t||!this.parent?i(void 0):i(this.parent.resolve(e,!1))}))}resolveSync(e,t=!1){for(const i of this.#C)if(i.name===e)return i;if(!t&&this.parent)return this.parent.resolveSync(e,!1)}symbolFromPath(t,i="."){const s=t.split(i);let n=0;s[0]!==this.name&&0!==s[0].length||++n;let r=this;for(;n<s.length;){if(!(r instanceof e))return;const t=r.children.find((e=>e.name===s[n]));if(!t)return;r=t,++n}return r}indexOfChild(e){return this.#C.findIndex((t=>t===e))}nextSiblingOf(e){const t=this.indexOfChild(e);if(!(-1===t||t>=this.#C.length-1))return this.#C[t+1]}previousSiblingOf(e){const t=this.indexOfChild(e);if(!(t<1))return this.#C[t-1]}nextOf(t){if(!t.parent)return;if(t.parent!==this)return t.parent.nextOf(t);if(t instanceof e&&t.children.length>0)return t.children[0];const i=this.nextSiblingOf(t);return i||this.parent.nextOf(this)}isNamespace(e){return void 0!==e.inline&&void 0!==e.attributes}},ci=(class extends li{static{ri(this,"BlockSymbol")}},class extends oi{static{ri(this,"TypedSymbol")}type;constructor(e,t){super(e),this.type=t}}),hi=class extends ci{static{ri(this,"VariableSymbol")}value;constructor(e,t,i){super(e,i),this.value=t}},di=class extends hi{static{ri(this,"FieldSymbol")}setter;getter},ui=class extends hi{static{ri(this,"ParameterSymbol")}},gi=class extends li{static{ri(this,"RoutineSymbol")}returnType;constructor(e,t){super(e),this.returnType=t}getVariables(e=!0){return this.getSymbolsOfType(hi)}getParameters(e=!0){return this.getSymbolsOfType(ui)}},pi=class extends gi{static{ri(this,"MethodSymbol")}methodFlags=0},mi=(class extends li{static{ri(this,"ClassSymbol")}isStruct=!1;reference=0;extends;implements;constructor(e,t,i){super(e),this.extends=t,this.implements=i}get baseTypes(){return this.extends}get kind(){return 7}getMethods(e=!1){return this.getSymbolsOfType(pi)}getFields(e=!1){return this.getSymbolsOfType(di)}},class e{static{ri(this,"FundamentalType")}static integerType=new e("int",1,3);static floatType=new e("float",2,3);static stringType=new e("string",4,3);static boolType=new e("bool",6,3);name;typeKind;referenceKind;constructor(e,t=0,i=0){this.name=e,this.typeKind=t,this.referenceKind=i}get baseTypes(){return[]}get kind(){return this.typeKind}get reference(){return this.referenceKind}},class extends li{static{ri(this,"InterfaceSymbol")}reference=0;extends;constructor(e,t){super(e),this.extends=t}get baseTypes(){return this.extends}get kind(){return 8}getMethods(e=!1){return this.getSymbolsOfType(pi)}getFields(e=!1){return this.getSymbolsOfType(di)}},class extends ci{static{ri(this,"LiteralSymbol")}value;constructor(e,t,i){super(e,i),this.value=t}},class extends li{static{ri(this,"NamespaceSymbol")}inline;attributes;constructor(e,t=!1,i=[]){super(e),this.inline=t,this.attributes=i}}),fi=(class extends oi{static{ri(this,"TypeAlias")}targetType;constructor(e,t){super(e),this.targetType=t}get baseTypes(){return[this.targetType]}get kind(){return 12}get reference(){return 0}},ri(((e,t)=>{if(!e||!t)return[];let i;for(i=0;i<Math.min(e.length,t.length)&&e[i]===t[i];i++);return e.slice(0,i)}),"longestCommonPrefix")),_i=class{static{ri(this,"CandidatesCollection")}tokens=new Map;rules=new Map},vi=class{static{ri(this,"FollowSetWithPath")}intervals;path=[];following=[]},Ci=class e{static{ri(this,"CodeCompletionCore")}static followSetsByATN=new Map;static atnStateTypeMap=["invalid","basic","rule start","block start","plus block start","star block start","token start","rule stop","block end","star loop back","star loop entry","plus loop back","loop end"];showResult=!1;showDebugOutput=!1;debugOutputWithTransitions=!1;showRuleStack=!1;ignoredTokens;preferredRules;translateRulesTopDown=!1;parser;atn;vocabulary;ruleNames;tokens;precedenceStack;tokenStartIndex=0;statesProcessed=0;shortcutMap=new Map;candidates=new _i;constructor(e){this.parser=e,this.atn=e.atn,this.vocabulary=e.vocabulary,this.ruleNames=e.ruleNames,this.ignoredTokens=new Set,this.preferredRules=new Set}collectCandidates(e,t){this.shortcutMap.clear(),this.candidates.rules.clear(),this.candidates.tokens.clear(),this.statesProcessed=0,this.precedenceStack=[],this.tokenStartIndex=t?.start?t.start.tokenIndex:0;const i=this.parser.tokenStream;this.tokens=[];let s=this.tokenStartIndex;for(;;){const t=i.get(s++);if(!t)break;if(t.channel===r.DEFAULT_CHANNEL&&(this.tokens.push(t),t.tokenIndex>=e||t.type===r.EOF))break;if(t.type===r.EOF)break}const n=t?t.ruleIndex:0;if(this.processRule(this.atn.ruleToStartState[n],0,[],0,0),this.showResult){console.log(`States processed: ${this.statesProcessed}`),console.log("\n\nCollected rules:\n");for(const t of this.candidates.rules){let e="";for(const i of t[1].ruleList)e+=this.ruleNames[i]+" ";console.log(this.ruleNames[t[0]]+", path: ",e)}const e=new Set;for(const t of this.candidates.tokens){let i=this.vocabulary.getDisplayName(t[0])??"";for(const e of t[1])i+=" "+this.vocabulary.getDisplayName(e);e.add(i)}console.log("\n\nCollected tokens:\n");for(const t of e)console.log(t);console.log("\n\n")}return this.candidates}checkPredicate(e){return e.getPredicate().evaluate(this.parser,W.empty)}translateStackToRuleIndex(e){if(0===this.preferredRules.size)return!1;if(this.translateRulesTopDown){for(let t=e.length-1;t>=0;t--)if(this.translateToRuleIndex(t,e))return!0}else for(let t=0;t<e.length;t++)if(this.translateToRuleIndex(t,e))return!0;return!1}translateToRuleIndex(e,t){const{ruleIndex:i,startTokenIndex:s}=t[e];if(this.preferredRules.has(i)){const n=t.slice(0,e).map((({ruleIndex:e})=>e));let r=!0;for(const e of this.candidates.rules)if(e[0]===i&&e[1].ruleList.length===n.length&&n.every(((t,i)=>t===e[1].ruleList[i]))){r=!1;break}return r&&(this.candidates.rules.set(i,{startTokenIndex:s,ruleList:n}),this.showDebugOutput&&console.log("=====> collected: ",this.ruleNames[i])),!0}return!1}getFollowingTokens(e){const t=[],i=[e.target];for(;i.length>0;){const e=i.pop();e&&e.transitions.forEach((e=>{if(e.transitionType===I.ATOM)if(e.isEpsilon)i.push(e.target);else{const s=e.label.toArray();1!==s.length||this.ignoredTokens.has(s[0])||(t.push(s[0]),i.push(e.target))}}))}return t}determineFollowSets(e,t){const i=[],s=this.collectFollowSets(e,t,i,[],[]),n=new _;for(const r of i)n.addSet(r.intervals);return{sets:i,isExhaustive:s,combined:n}}collectFollowSets(e,t,i,s,n){if(s.find((t=>t===e)))return!0;if(s.push(e),e===t||e.constructor.stateType===x.RULE_STOP)return s.pop(),!1;let o=!0;for(const a of e.transitions)if(a.transitionType===I.RULE){const e=a;if(-1!==n.indexOf(e.target.ruleIndex))continue;n.push(e.target.ruleIndex);const r=this.collectFollowSets(a.target,t,i,s,n);if(n.pop(),!r){const r=this.collectFollowSets(e.followState,t,i,s,n);o&&=r}}else if(a.transitionType===I.PREDICATE){if(this.checkPredicate(a)){const e=this.collectFollowSets(a.target,t,i,s,n);o&&=e}}else if(a.isEpsilon){const e=this.collectFollowSets(a.target,t,i,s,n);o&&=e}else if(a.transitionType===I.WILDCARD){const e=new vi;e.intervals=_.of(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType),e.path=n.slice(),i.push(e)}else{let e=a.label;if(e&&e.length>0){a.transitionType===I.NOT_SET&&(e=e.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));const t=new vi;t.intervals=e??new _,t.path=n.slice(),t.following=this.getFollowingTokens(a),i.push(t)}}return s.pop(),o}processRule(t,i,s,n,o){let a=this.shortcutMap.get(t.ruleIndex);if(a){if(a.has(i))return this.showDebugOutput&&console.log("=====> shortcut"),a.get(i)}else a=new Map,this.shortcutMap.set(t.ruleIndex,a);const l=new Set;let c=e.followSetsByATN.get(this.parser.constructor.name);c||(c=new Map,e.followSetsByATN.set(this.parser.constructor.name,c));let h=c.get(t.stateNumber);if(!h){const e=this.atn.ruleToStopState[t.ruleIndex];h=this.determineFollowSets(t,e),c.set(t.stateNumber,h)}const d=this.tokens[i].tokenIndex;if(s.push({startTokenIndex:d,ruleIndex:t.ruleIndex}),i>=this.tokens.length-1){if(this.preferredRules.has(t.ruleIndex))this.translateStackToRuleIndex(s);else for(const e of h.sets){const t=s.slice(),i=e.path.map((e=>({startTokenIndex:d,ruleIndex:e})));if(t.push(...i),!this.translateStackToRuleIndex(t))for(const s of e.intervals.toArray())this.ignoredTokens.has(s)||(this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(s)),this.candidates.tokens.has(s)?this.candidates.tokens.get(s)!==e.following&&this.candidates.tokens.set(s,[]):this.candidates.tokens.set(s,e.following))}return h.isExhaustive||l.add(i),s.pop(),l}{const e=this.tokens[i].type;if(h.isExhaustive&&!h.combined.contains(e))return s.pop(),l}t.isPrecedenceRule&&this.precedenceStack.push(n);const u=[];let g;for(u.push({state:t,tokenListIndex:i});u.length>0;){g=u.pop(),++this.statesProcessed;const e=this.tokens[g.tokenListIndex].type,t=g.tokenListIndex>=this.tokens.length-1;if(this.showDebugOutput&&(this.printDescription(o,g.state,this.generateBaseDescription(g.state),g.tokenListIndex),this.showRuleStack&&this.printRuleState(s)),g.state.constructor.stateType===x.RULE_STOP){l.add(g.tokenListIndex);continue}const i=g.state.transitions;for(const n of i)switch(n.transitionType){case I.RULE:{const e=n,t=this.processRule(n.target,g.tokenListIndex,s,e.precedence,o+1);for(const i of t)u.push({state:n.followState,tokenListIndex:i});break}case I.PREDICATE:this.checkPredicate(n)&&u.push({state:n.target,tokenListIndex:g.tokenListIndex});break;case I.PRECEDENCE:n.precedence>=this.precedenceStack[this.precedenceStack.length-1]&&u.push({state:n.target,tokenListIndex:g.tokenListIndex});break;case I.WILDCARD:if(t){if(!this.translateStackToRuleIndex(s))for(const e of _.of(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType).toArray())this.ignoredTokens.has(e)||this.candidates.tokens.set(e,[])}else u.push({state:n.target,tokenListIndex:g.tokenListIndex+1});break;default:{if(n.isEpsilon){u.push({state:n.target,tokenListIndex:g.tokenListIndex});continue}let i=n.label;if(i&&i.length>0)if(n.transitionType===I.NOT_SET&&(i=i.complement(r.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),t){if(!this.translateStackToRuleIndex(s)){const e=i.toArray(),t=1===e.length;for(const i of e)if(!this.ignoredTokens.has(i)){this.showDebugOutput&&console.log("=====> collected: ",this.vocabulary.getDisplayName(i));const e=t?this.getFollowingTokens(n):[];this.candidates.tokens.has(i)?this.candidates.tokens.set(i,fi(e,this.candidates.tokens.get(i))):this.candidates.tokens.set(i,e)}}}else i.contains(e)&&(this.showDebugOutput&&console.log("=====> consumed: ",this.vocabulary.getDisplayName(e)),u.push({state:n.target,tokenListIndex:g.tokenListIndex+1}))}}}return s.pop(),t.isPrecedenceRule&&this.precedenceStack.pop(),a.set(i,l),l}generateBaseDescription(t){return`[${t.stateNumber===x.INVALID_STATE_NUMBER?"Invalid":t.stateNumber} ${e.atnStateTypeMap[t.constructor.stateType]}] in ${this.ruleNames[t.ruleIndex]}`}printDescription(t,i,s,n){const r=" ".repeat(t);let o=r,a="";if(this.debugOutputWithTransitions)for(const l of i.transitions){let t="";const i=l.label?l.label.toArray():[];if(i.length>2)t=this.vocabulary.getDisplayName(i[0])+" .. "+this.vocabulary.getDisplayName(i[i.length-1]);else for(const e of i)t.length>0&&(t+=", "),t+=this.vocabulary.getDisplayName(e);0===t.length&&(t="\u03b5");const s=e.atnStateTypeMap[l.target.constructor.stateType];a+=`\n${r}\t(${t}) [${l.target.stateNumber} ${s}] in ${this.ruleNames[l.target.ruleIndex]}`}n>=this.tokens.length-1?o+=`<<${this.tokenStartIndex+n}>> `:o+=`<${this.tokenStartIndex+n}> `,console.log(o+"Current state: "+s+a)}printRuleState(e){if(0!==e.length)for(const t of e)console.log(this.ruleNames[t.ruleIndex]);else console.log("<empty stack>")}},bi=class extends li{constructor(e,t){super(e),this.options=t}static{ri(this,"SymbolTable")}dependencies=new Set;get info(){return{dependencyCount:this.dependencies.size,symbolCount:this.children.length}}clear(){super.clear(),this.dependencies.clear()}addDependencies(...e){e.forEach((e=>{this.dependencies.add(e)}))}removeDependency(e){this.dependencies.has(e)&&this.dependencies.delete(e)}addNewSymbolOfType(e,t,...i){const s=new e(...i);return t&&t!==this?t.addSymbol(s):this.addSymbol(s),s}async addNewNamespaceFromPath(e,t,i="."){const s=t.split(i);let n=0,r=void 0===e?this:e;for(;n<s.length-1;){let e=await r.resolve(s[n],!0);void 0===e&&(e=this.addNewSymbolOfType(mi,r,s[n])),r=e,++n}return this.addNewSymbolOfType(mi,r,s[s.length-1])}addNewNamespaceFromPathSync(e,t,i="."){const s=t.split(i);let n=0,r=void 0===e?this:e;for(;n<s.length-1;){let e=r.resolveSync(s[n],!0);void 0===e&&(e=this.addNewSymbolOfType(mi,r,s[n])),r=e,++n}return this.addNewSymbolOfType(mi,r,s[s.length-1])}async getAllSymbols(e,t=!1){const i=await super.getAllSymbols(e,t);if(!t){(await Promise.all([...this.dependencies].map((i=>i.getAllSymbols(e,t))))).forEach((e=>{i.push(...e)}))}return i}getAllSymbolsSync(e,t=!1){const i=super.getAllSymbolsSync(e,t);return t||this.dependencies.forEach((s=>{i.push(...s.getAllSymbolsSync(e,t))})),i}async symbolWithContext(e){const t=ri((i=>{if(i.context===e)return i;if(i instanceof li)for(const e of i.children){const i=t(e);if(i)return i}}),"findRecursive");let i=await this.getAllSymbols(oi);for(const s of i){const e=t(s);if(e)return e}for(const s of this.dependencies){i=await s.getAllSymbols(oi);for(const e of i){const i=t(e);if(i)return i}}}symbolWithContextSync(e){const t=ri((i=>{if(i.context===e)return i;if(i instanceof li)for(const e of i.children){const i=t(e);if(i)return i}}),"findRecursive");let i=this.getAllSymbolsSync(oi);for(const s of i){const e=t(s);if(e)return e}for(const s of this.dependencies){i=s.getAllSymbolsSync(oi);for(const e of i){const i=t(e);if(i)return i}}}async resolve(e,t=!1){let i=await super.resolve(e,t);if(!i&&!t)for(const s of this.dependencies)if(i=await s.resolve(e,!1),i)return i;return i}resolveSync(e,t=!1){let i=super.resolveSync(e,t);if(!i&&!t)for(const s of this.dependencies)if(i=s.resolveSync(e,!1),i)return i;return i}},Ei=(Object.create,Object.defineProperty),Si=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.prototype.hasOwnProperty,(e,t)=>Ei(e,"name",{value:t,configurable:!0})),yi=/[\w]$/,wi=/\r\n|\n|\r/g;function Li(e,t){let i=e.column,s=e.column+(e.text?.length||0),n=e.line;return{startColumn:i,startLine:n,endColumn:s,endLine:e.type===t&&e.text?n+(e.text.match(wi)?.length||0):n}}function Ri(e,t,i,s){let n=t.column-1;for(let r=0;r<e.size;r++){let o=e.get(r),{startColumn:a,startLine:l,endColumn:c,endLine:h}=Li(o,i);if(h>t.line||l===t.line&&c>n)return s?r:r>0&&l===t.line&&a===n&&yi.test(e.get(r-1).text||"")?r-1:e.get(r).type===i?r+1:r}}function Ti(e,t){let i=e.split(wi),s=e.match(wi),n="";s&&(n=s[0]);let r=0;return i.reduce(((e,i,s)=>(t.line-1===s&&(r=e.length?e.length+t.column:t.column-1),0===s?i:e+n+i)),""),r}function xi(e,t){return e===t.startTokenIndex}function ki(e,t){let i=e.slice(0,t-1),s=e.slice(t-1),n=i.lastIndexOf(";"),r=s.indexOf(";"),o=n>-1?n+1:0,a=r>-1?r+i.length:e.length;return{statement:e.slice(o,a),cursorIndex:t-o}}Si(Li,"getTokenPosition"),Si(Ri,"findCursorTokenIndex"),Si(Ti,"getCursorIndex"),Si(xi,"isStartingToWriteRule"),Si(ki,"getCurrentStatement");var Ai="(\\s|\r\n|\n|\r)+",Ni=new RegExp(`^(${Ai})?explain${Ai}$`),Ii=new RegExp(`^(${Ai})?\\S+${Ai}`);function Oi(e,t){let i=Ti(e,t),s=ki(e,i),n=s.statement.slice(0,s.cursorIndex).toLowerCase();return!(0!==i&&n.match(Ii)&&!n.match(Ni))}function Di(e,t,i){let s=new e(ft.fromString(i)),n=new t(new St(s));return n.removeErrorListeners(),n}function Mi(e,t){return new e(ft.fromString(t))}Si(Oi,"shouldSuggestTemplates"),Si(Di,"createParser"),Si(Mi,"createLexer");var Pi,Fi=class{static{Si(this,"SqlErrorListener")}constructor(e){this.errors=[],this.whitespaceToken=e}syntaxError(e,t,i,s,n){if(t){let e=Li(t,this.whitespaceToken);this.errors.push({message:n,...e})}else this.errors.push({message:n,startLine:i,startColumn:s,endLine:i,endColumn:s})}reportAmbiguity(){}reportAttemptingFullContext(){}reportContextSensitivity(){}},Ui=((Pi=Ui||{}).Autocomplete="autocomplete",Pi.Tokens="tokens",Pi);function Hi(e,t,i,s,n,r,o,a){let l=Di(t,i,e),{tokenStream:c}=l,h=new Fi(s);l.removeErrorListeners(),l.addErrorListener(h),a(l);let d=Wi(l,c,o,r);return d.length?{statementPositions:d,strategy:"autocomplete"}:{statementPositions:Bi(c,n,r),strategy:"tokens"}}function Bi(e,t,i){let s=0,n=!1,r=e.size-2,o=[];for(let a=0;a<=r;a++){let l=e.get(a),c=l.type===i,h=t.includes(l.type);if(n||!h)if(n||(n=!0,s=l.start),c&&s===l.start)n=!1;else{if(c||a===r){let e=l.text?.length||0,t={startIndex:s,endIndex:l.start+e};o.push(t)}c&&(n=!1)}}return o}function Wi(e,t,i,s){let n=new Ci(e);n.preferredRules=new Set([i]);let r=t.get(t.size-2),o=[];for(;r?.tokenIndex>0;){let e,a=n.collectCandidates(r.tokenIndex).rules;!a.size&&r.type===s&&(a=n.collectCandidates(r.tokenIndex-1).rules);for(let[s,{startTokenIndex:n}]of a)if(s===i){e=t.get(n);break}if(!e)break;e.tokenIndex>r.tokenIndex?r=t.get(r.tokenIndex-1):(o.push({startIndex:e.start,endIndex:r.start+(r.text?.length||0)}),r=t.get(e.tokenIndex-1))}return o.reverse(),o}Si(Hi,"extractStatementPositionsFromQuery"),Si(Bi,"extractStatementsUsingTokens"),Si(Wi,"extractStatementsUsingAutocomplete");function Vi(e,t,i,s){let n=Mi(e,s),r=new Fi(i);n.removeErrorListeners(),n.addErrorListener(r);let o=[],a=!1;do{let e=n.nextToken();if(null===e||-1===e.type)a=!0;else{let i=t[e.type];i&&o.push({ruleName:i,startIndex:e.start,column:e.column,line:e.line,type:e.type,text:e.text})}}while(!a);return{tokens:o,errors:r.errors}}function zi(e,t,i,s,n){let r=Di(e,t,n),o=new Fi(i);return r.removeErrorListeners(),r.addErrorListener(o),s(r),{errors:o.errors}}Si(Vi,"tokenize"),Si(zi,"parseQueryWithoutCursor");var Gi=/^'(.*)'$/;function ji(e,t,i,s,n,r,o,a,l,c){let h=Di(e,t,a),{tokenStream:d}=h,u=new Fi(i);h.removeErrorListeners(),h.addErrorListener(u),r(h);let g=new Ci(h);g.ignoredTokens=s,g.preferredRules=n;let p=Ri(d,l,i);if(void 0===p)throw new Error(`Could not find cursor token index for line: ${l.line}, column: ${l.column}`);let m=[],{tokens:f,rules:_}=g.collectCandidates(p,c);return f.forEach(((e,t)=>{let i=h.vocabulary.getLiteralName(t)?.replace(Gi,"$1")||h.vocabulary.getSymbolicName(t);if(!i)throw new Error(`Could not get name for token ${t}`);m.push({value:i})})),o({errors:u.errors,suggestKeywords:m},_,d,p,l,a)}function Ki(e){let t,i=e.split(wi);for(let h=0;h<i.length;h++)if(i[h]?.includes("|")){t=h;break}if(void 0===t)throw new Error(`Cursor not provided for query ${e}`);let s=i[t];if(!s)throw new Error(`Line ${t} not found`);let[n,r,...o]=e.split("|"),[a,l,...c]=s.split("|");if(o.length>0||c.length>0)throw new Error(`Multiple cursors not allowed, but present in query ${e}`);if(void 0===n||void 0===r||void 0===a||void 0===l)throw new Error(`Cursor not provided for query ${e}`);return[n+r,{line:t+1,column:a.length+1}]}Si(ji,"parseQuery"),Si(Ki,"separateQueryAndCursor");var Yi=class extends ci{static{Si(this,"TableSymbol")}constructor(e,t,i,s){super(e,s),this.name=e,this.alias=t,this.columns=i}},qi=class extends hi{static{Si(this,"VariableSymbol")}};function $i(e=[]){let t=e.reduce(((e,t)=>{let i=e[t.name]?.aliases??new Set;return t.alias&&i.add(t.alias),e[t.name]={aliases:i,columns:t.columns},e}),{});return Object.keys(t).reduce(((e,i)=>{let s=t[i]?.aliases,n=t[i]?.columns;return s&&s.size>0?s?.forEach((t=>{e.push({name:i,alias:t,columns:n})})):e.push({name:i,columns:n}),e}),[])}function Qi(e){return $i(e.symbolTable.getNestedSymbolsOfTypeSync(Yi))}Si($i,"getUniqueTableSuggestions"),Si(Qi,"getTablesFromSymbolTable");var Xi=class extends ci{static{Si(this,"ColumnAliasSymbol")}constructor(e,t){super(e,t),this.name=e}};function Zi(e){return e.symbolTable.getNestedSymbolsOfTypeSync(Xi).map((({name:e})=>({name:e})))}function Ji(e,t){let i=t.symbolWithContextSync(e);return i||(e.parent?Ji(e.parent,t):void 0)}function es(e,t,i){let s=t;for(;s<e.size;){let t=e.get(s);if(t.type===i.CLOSING_BRACKET||t.type===i.SEMICOLON)return{cursorIndex:t.start,tokenIndex:s};if(t.type===i.OPENING_BRACKET)return;s++}let n=e.size-1;return{cursorIndex:e.get(n).start,tokenIndex:n}}function ts(e,t,i){let s=e.get(e.size-1).start,n=t,r=!1;for(;n>=0&&n<e.size;){let s=e.get(n);if(s.type===i.OPENING_BRACKET||s.type===i.CLOSING_BRACKET||s.type===i.SEMICOLON){if(r)break;n=t,r=!0}if(s.type===i.FROM){let r=es(e,t,i);if(!r)break;let o=is(e,n,r.tokenIndex,i),a=o?{start:o,end:r.cursorIndex}:void 0,l=ss(e,i,r.tokenIndex,i.SELECT),c=l?{start:l.start,end:r.cursorIndex}:void 0;return{start:s.start,end:r.cursorIndex,type:"from",joinTableQueryPosition:a,selectTableQueryPosition:c}}r?n++:n--,-1===n&&(n=t,r=!0)}for(n=t;n>=0;){let t=e.get(n);if(t.type===i.SEMICOLON)return;if(t.type===i.ALTER&&!ss(e,i,n,i.ALTER))return{start:t.start,end:s,type:"alter"};if(t.type===i.INSERT||t.type===i.UPSERT)return{start:t.start,end:s,type:"insert"};if(t.type===i.UPDATE)return{start:t.start,end:s,type:"update"};n--}}function is(e,t,i,s){let n=t;for(;n<i;){let t=e.get(n);if(t.type===s.JOIN)return t.stop+1;n++}}function ss(e,t,i,s){let n=i-1;for(;n>-1;){let i=e.get(n);if(i.type===t.SEMICOLON)return;if(i.type===s)return i;n--}}Si(Zi,"getColumnAliasesFromSymbolTable"),Si(Ji,"getScope"),Si(es,"getClosingBracketIndex"),Si(ts,"getTableQueryPosition"),Si(is,"getJoinIndex"),Si(ss,"getPreviousToken"),Si((function(e,t,i,s,n,r,o,a,l){let c=Ri(r,o,s.SPACE,!0);if(!c)throw new Error(`Could not find actualCursorTokenIndex at Ln ${o.line}, Col ${o.column}`);let h={},d=ts(r,c,s);if(d){let s=n(Di(e,t,a.slice(d.start,d.end)),d.type);if(i.visit(s),l&&d.joinTableQueryPosition){let s=n(Di(e,t,a.slice(d.joinTableQueryPosition.start,d.joinTableQueryPosition.end)),"from");i.visit(s)}if(d.selectTableQueryPosition){let s=n(Di(e,t,a.slice(d.selectTableQueryPosition.start,d.selectTableQueryPosition.end)),"select");i.visit(s)}let r=Qi(i);r.length&&(h.tableContextSuggestion={tables:r});let o=Zi(i);o.length&&(h.suggestColumnAliases=o.map((({name:e})=>({name:e}))))}return h}),"getContextSuggestions");var ns=class e extends Je{static{Si(this,"YQLLexer")}static{this.QUERY=1}static{this.EQUALS=2}static{this.EQUALS2=3}static{this.NOT_EQUALS=4}static{this.NOT_EQUALS2=5}static{this.LESS=6}static{this.LESS_OR_EQ=7}static{this.GREATER=8}static{this.GREATER_OR_EQ=9}static{this.SHIFT_LEFT=10}static{this.ROT_LEFT=11}static{this.AMPERSAND=12}static{this.PIPE=13}static{this.DOUBLE_PIPE=14}static{this.STRUCT_OPEN=15}static{this.STRUCT_CLOSE=16}static{this.PLUS=17}static{this.MINUS=18}static{this.TILDA=19}static{this.ASTERISK=20}static{this.SLASH=21}static{this.PERCENT=22}static{this.SEMICOLON=23}static{this.DOT=24}static{this.COMMA=25}static{this.LPAREN=26}static{this.RPAREN=27}static{this.QUESTION=28}static{this.COLON=29}static{this.COMMAT=30}static{this.DOUBLE_COMMAT=31}static{this.DOLLAR=32}static{this.LBRACE_CURLY=33}static{this.RBRACE_CURLY=34}static{this.CARET=35}static{this.NAMESPACE=36}static{this.ARROW=37}static{this.RBRACE_SQUARE=38}static{this.LBRACE_SQUARE=39}static{this.ABORT=40}static{this.ACTION=41}static{this.ADD=42}static{this.AFTER=43}static{this.ALL=44}static{this.ALTER=45}static{this.ANALYZE=46}static{this.AND=47}static{this.ANSI=48}static{this.ANY=49}static{this.ARRAY=50}static{this.AS=51}static{this.ASC=52}static{this.ASSUME=53}static{this.ASYMMETRIC=54}static{this.ASYNC=55}static{this.AT=56}static{this.ATTACH=57}static{this.ATTRIBUTES=58}static{this.AUTOINCREMENT=59}static{this.AUTOMAP=60}static{this.BACKUP=61}static{this.COLLECTION=62}static{this.BEFORE=63}static{this.BEGIN=64}static{this.BERNOULLI=65}static{this.BETWEEN=66}static{this.BITCAST=67}static{this.BY=68}static{this.CALLABLE=69}static{this.CASCADE=70}static{this.CASE=71}static{this.CAST=72}static{this.CHANGEFEED=73}static{this.CHECK=74}static{this.CLASSIFIER=75}static{this.COLLATE=76}static{this.COLUMN=77}static{this.COLUMNS=78}static{this.COMMIT=79}static{this.COMPACT=80}static{this.CONDITIONAL=81}static{this.CONFLICT=82}static{this.CONNECT=83}static{this.CONSTRAINT=84}static{this.CONSUMER=85}static{this.COVER=86}static{this.CREATE=87}static{this.CROSS=88}static{this.CUBE=89}static{this.CURRENT=90}static{this.CURRENT_DATE=91}static{this.CURRENT_TIME=92}static{this.CURRENT_TIMESTAMP=93}static{this.DATA=94}static{this.DATABASE=95}static{this.DECIMAL=96}static{this.DECLARE=97}static{this.DEFAULT=98}static{this.DEFERRABLE=99}static{this.DEFERRED=100}static{this.DEFINE=101}static{this.DELETE=102}static{this.DESC=103}static{this.DESCRIBE=104}static{this.DETACH=105}static{this.DICT=106}static{this.DIRECTORY=107}static{this.DISABLE=108}static{this.DISCARD=109}static{this.DISTINCT=110}static{this.DO=111}static{this.DROP=112}static{this.EACH=113}static{this.ELSE=114}static{this.EMPTY=115}static{this.EMPTY_ACTION=116}static{this.ENCRYPTED=117}static{this.END=118}static{this.ENUM=119}static{this.ERASE=120}static{this.ERROR=121}static{this.ESCAPE=122}static{this.EVALUATE=123}static{this.EXCEPT=124}static{this.EXCLUDE=125}static{this.EXCLUSION=126}static{this.EXCLUSIVE=127}static{this.EXISTS=128}static{this.EXPLAIN=129}static{this.EXPORT=130}static{this.EXTERNAL=131}static{this.FAIL=132}static{this.FALSE=133}static{this.FAMILY=134}static{this.FILTER=135}static{this.FIRST=136}static{this.FLATTEN=137}static{this.FLOW=138}static{this.FOLLOWING=139}static{this.FOR=140}static{this.FOREIGN=141}static{this.FROM=142}static{this.FULL=143}static{this.FUNCTION=144}static{this.GLOB=145}static{this.GLOBAL=146}static{this.GRANT=147}static{this.GROUP=148}static{this.GROUPING=149}static{this.GROUPS=150}static{this.HASH=151}static{this.HAVING=152}static{this.HOP=153}static{this.IF=154}static{this.IGNORE=155}static{this.ILIKE=156}static{this.IMMEDIATE=157}static{this.IMPORT=158}static{this.IN=159}static{this.INCREMENTAL=160}static{this.INDEX=161}static{this.INDEXED=162}static{this.INHERITS=163}static{this.INITIAL=164}static{this.INITIALLY=165}static{this.INNER=166}static{this.INSERT=167}static{this.INSTEAD=168}static{this.INTERSECT=169}static{this.INTO=170}static{this.IS=171}static{this.ISNULL=172}static{this.JOIN=173}static{this.JSON_EXISTS=174}static{this.JSON_QUERY=175}static{this.JSON_VALUE=176}static{this.KEY=177}static{this.LAST=178}static{this.LEFT=179}static{this.LEGACY=180}static{this.LIKE=181}static{this.LIMIT=182}static{this.LIST=183}static{this.LOCAL=184}static{this.MANAGE=185}static{this.MATCH=186}static{this.MATCHES=187}static{this.MATCH_RECOGNIZE=188}static{this.MEASURES=189}static{this.MICROSECONDS=190}static{this.MILLISECONDS=191}static{this.MODIFY=192}static{this.NANOSECONDS=193}static{this.NATURAL=194}static{this.NEXT=195}static{this.NO=196}static{this.NOT=197}static{this.NOTNULL=198}static{this.NULL=199}static{this.NULLS=200}static{this.OBJECT=201}static{this.OF=202}static{this.OFFSET=203}static{this.OMIT=204}static{this.ON=205}static{this.ONE=206}static{this.ONLY=207}static{this.OPTION=208}static{this.OPTIONAL=209}static{this.OR=210}static{this.ORDER=211}static{this.OTHERS=212}static{this.OUTER=213}static{this.OVER=214}static{this.PARALLEL=215}static{this.PARTITION=216}static{this.PASSING=217}static{this.PASSWORD=218}static{this.PAST=219}static{this.PATTERN=220}static{this.PER=221}static{this.PERMUTE=222}static{this.PLAN=223}static{this.POOL=224}static{this.PRAGMA=225}static{this.PRECEDING=226}static{this.PRESORT=227}static{this.PRIMARY=228}static{this.PRIVILEGES=229}static{this.PROCESS=230}static{this.QUEUE=231}static{this.RAISE=232}static{this.RANGE=233}static{this.REDUCE=234}static{this.REFERENCES=235}static{this.REGEXP=236}static{this.REINDEX=237}static{this.RELEASE=238}static{this.REMOVE=239}static{this.RENAME=240}static{this.REPEATABLE=241}static{this.REPLACE=242}static{this.REPLICATION=243}static{this.RESET=244}static{this.RESOURCE=245}static{this.RESPECT=246}static{this.RESTORE=247}static{this.RESTRICT=248}static{this.RESULT=249}static{this.RETURN=250}static{this.RETURNING=251}static{this.REVERT=252}static{this.REVOKE=253}static{this.RIGHT=254}static{this.RLIKE=255}static{this.ROLLBACK=256}static{this.ROLLUP=257}static{this.ROW=258}static{this.ROWS=259}static{this.SAMPLE=260}static{this.SAVEPOINT=261}static{this.SCHEMA=262}static{this.SECONDS=263}static{this.SEEK=264}static{this.SELECT=265}static{this.SEMI=266}static{this.SET=267}static{this.SETS=268}static{this.SHOW=269}static{this.TSKIP=270}static{this.SOURCE=271}static{this.STREAM=272}static{this.STRUCT=273}static{this.SUBQUERY=274}static{this.SUBSET=275}static{this.SYMBOLS=276}static{this.SYMMETRIC=277}static{this.SYNC=278}static{this.SYSTEM=279}static{this.TABLE=280}static{this.TABLES=281}static{this.TABLESAMPLE=282}static{this.TABLESTORE=283}static{this.TAGGED=284}static{this.TEMP=285}static{this.TEMPORARY=286}static{this.THEN=287}static{this.TIES=288}static{this.TO=289}static{this.TOPIC=290}static{this.TRANSACTION=291}static{this.TRIGGER=292}static{this.TRUE=293}static{this.TUPLE=294}static{this.TYPE=295}static{this.UNBOUNDED=296}static{this.UNCONDITIONAL=297}static{this.UNION=298}static{this.UNIQUE=299}static{this.UNKNOWN=300}static{this.UNMATCHED=301}static{this.UPDATE=302}static{this.UPSERT=303}static{this.USE=304}static{this.USER=305}static{this.USING=306}static{this.VACUUM=307}static{this.VALUES=308}static{this.VARIANT=309}static{this.VIEW=310}static{this.VIRTUAL=311}static{this.WHEN=312}static{this.WHERE=313}static{this.WINDOW=314}static{this.WITH=315}static{this.WITHOUT=316}static{this.WRAPPER=317}static{this.XOR=318}static{this.STRING_VALUE=319}static{this.ID_PLAIN=320}static{this.ID_QUOTED=321}static{this.DIGITS=322}static{this.INTEGER_VALUE=323}static{this.REAL=324}static{this.BLOB=325}static{this.TQ=326}static{this.TU=327}static{this.TE=328}static{this.TR=329}static{this.TY=330}static{this.WS=331}static{this.COMMENT=332}static{this.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"]}static{this.literalNames=[null,null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'@@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"QUERY","EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOUBLE_COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","TQ","TU","TE","TR","TY","WS","COMMENT"]}static{this.modeNames=["DEFAULT_MODE"]}static{this.ruleNames=["QUERY","EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOUBLE_COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","BACKSLASH","QUOTE_DOUBLE","QUOTE_SINGLE","BACKTICK","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_CORE_SINGLE","STRING_CORE_DOUBLE","STRING_SINGLE","STRING_DOUBLE","STRING_MULTILINE","STRING_VALUE","ID_PLAIN","ID_QUOTED_CORE","ID_QUOTED","DIGIT","HEXDIGIT","HEXDIGITS","OCTDIGITS","BINDIGITS","DECDIGITS","DIGITS","INTEGER_VALUE","FLOAT_EXP","REAL","BLOB","TQ","TU","TE","TR","TY","MULTILINE_COMMENT","LINE_COMMENT","WS","COMMENT"]}constructor(t){super(t),this.interpreter=new at(this,e._ATN,e.decisionsToDFA,new pt)}get grammarFileName(){return"YQL.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}get channelNames(){return e.channelNames}get modeNames(){return e.modeNames}static{this._serializedATN=[4,0,332,3149,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,7,1,7,1,8,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,13,1,13,1,14,1,14,1,14,1,15,1,15,1,15,1,16,1,16,1,17,1,17,1,18,1,18,1,19,1,19,1,20,1,20,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,25,1,25,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37,1,38,1,38,1,39,1,39,1,40,1,40,1,41,1,41,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,46,1,46,1,47,1,47,1,48,1,48,1,49,1,49,1,50,1,50,1,51,1,51,1,52,1,52,1,53,1,53,1,54,1,54,1,55,1,55,1,56,1,56,1,57,1,57,1,58,1,58,1,59,1,59,1,60,1,60,1,61,1,61,1,62,1,62,1,63,1,63,1,64,1,64,1,65,1,65,1,66,1,66,1,67,1,67,1,68,1,68,1,69,1,69,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1,84,1,85,1,85,1,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,101,1,101,1,101,1,101,1,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,103,1,103,1,103,1,103,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,106,1,106,1,106,1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,136,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,138,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,139,1,140,1,140,1,140,1,141,1,141,1,141,1,141,1,141,1,142,1,142,1,142,1,142,1,142,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,1,144,1,144,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,145,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,146,1,147,1,147,1,147,1,147,1,148,1,148,1,148,1,148,1,148,1,149,1,149,1,149,1,149,1,149,1,149,1,150,1,150,1,150,1,150,1,150,1,150,1,151,1,151,1,151,1,151,1,151,1,151,1,151,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,152,1,153,1,153,1,153,1,153,1,153,1,153,1,153,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,154,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,155,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,156,1,157,1,157,1,157,1,157,1,157,1,157,1,157,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,158,1,159,1,159,1,159,1,159,1,159,1,159,1,159,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,160,1,161,1,161,1,161,1,161,1,161,1,162,1,162,1,162,1,162,1,162,1,162,1,163,1,163,1,163,1,163,1,163,1,163,1,163,1,164,1,164,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,168,1,169,1,169,1,169,1,169,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,170,1,171,1,171,1,171,1,171,1,171,1,172,1,172,1,172,1,172,1,172,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,173,1,174,1,174,1,174,1,174,1,174,1,175,1,175,1,175,1,175,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,1,177,1,177,1,177,1,177,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,178,1,179,1,179,1,179,1,179,1,179,1,179,1,179,1,180,1,180,1,180,1,180,1,180,1,181,1,181,1,181,1,181,1,181,1,181,1,181,1,182,1,182,1,182,1,182,1,183,1,183,1,183,1,184,1,184,1,184,1,184,1,184,1,184,1,184,1,185,1,185,1,185,1,185,1,185,1,185,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,186,1,187,1,187,1,187,1,187,1,187,1,187,1,187,1,188,1,188,1,188,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,189,1,190,1,190,1,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,192,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,197,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,201,1,201,1,201,1,201,1,201,1,201,1,201,1,202,1,202,1,202,1,202,1,202,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,203,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,204,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,205,1,206,1,206,1,206,1,206,1,207,1,207,1,207,1,207,1,207,1,208,1,208,1,208,1,208,1,208,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,210,1,210,1,210,1,210,1,210,1,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,1,212,1,213,1,213,1,213,1,213,1,213,1,213,1,214,1,214,1,214,1,214,1,214,1,214,1,214,1,215,1,215,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,216,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,217,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,218,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,221,1,221,1,221,1,221,1,221,1,221,1,221,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,222,1,223,1,223,1,223,1,223,1,223,1,223,1,223,1,223,1,224,1,224,1,224,1,224,1,224,1,225,1,225,1,225,1,226,1,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,1,229,1,229,1,229,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,1,232,1,233,1,233,1,233,1,233,1,233,1,234,1,234,1,234,1,235,1,235,1,235,1,235,1,236,1,236,1,236,1,236,1,236,1,237,1,237,1,237,1,237,1,237,1,237,1,237,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,238,1,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,246,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,255,1,256,1,256,1,256,1,256,1,256,1,256,1,256,1,256,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,257,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,258,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,260,1,260,1,260,1,260,1,260,1,260,1,261,1,261,1,261,1,261,1,261,1,261,1,262,1,262,1,262,1,262,1,262,1,262,1,263,1,263,1,263,1,263,1,263,1,263,1,263,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,264,1,265,1,265,1,265,1,265,1,265,1,265,1,265,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,1,269,1,269,1,269,1,269,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,270,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,272,1,273,1,273,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,275,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,276,1,277,1,277,1,277,1,277,1,277,1,277,1,277,1,277,1,277,1,278,1,278,1,278,1,278,1,278,1,278,1,278,1,279,1,279,1,279,1,279,1,279,1,279,1,279,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,280,1,281,1,281,1,281,1,281,1,281,1,281,1,281,1,282,1,282,1,282,1,282,1,282,1,282,1,282,1,283,1,283,1,283,1,283,1,283,1,283,1,284,1,284,1,284,1,284,1,284,1,284,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,287,1,287,1,287,1,287,1,288,1,288,1,288,1,288,1,288,1,289,1,289,1,289,1,289,1,289,1,289,1,289,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,290,1,291,1,291,1,291,1,291,1,291,1,291,1,291,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,293,1,293,1,293,1,293,1,293,1,294,1,294,1,294,1,294,1,294,1,294,1,294,1,295,1,295,1,295,1,295,1,295,1,296,1,296,1,296,1,296,1,297,1,297,1,297,1,297,1,297,1,298,1,298,1,298,1,298,1,298,1,299,1,299,1,299,1,299,1,299,1,300,1,300,1,300,1,300,1,300,1,300,1,300,1,301,1,301,1,301,1,301,1,301,1,301,1,301,1,302,1,302,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,304,1,304,1,304,1,304,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,305,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,308,1,308,1,308,1,308,1,308,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,310,1,310,1,310,1,310,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,311,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,312,1,313,1,313,1,313,1,313,1,313,1,313,1,313,1,314,1,314,1,314,1,314,1,314,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,1,316,1,316,1,316,1,316,1,316,1,317,1,317,1,317,1,317,1,317,1,318,1,318,1,318,1,319,1,319,1,319,1,319,1,319,1,319,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,320,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,321,1,322,1,322,1,322,1,322,1,322,1,323,1,323,1,323,1,323,1,323,1,323,1,324,1,324,1,324,1,324,1,324,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,325,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,326,1,327,1,327,1,327,1,327,1,327,1,327,1,328,1,328,1,328,1,328,1,328,1,328,1,328,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,329,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,1,332,1,332,1,332,1,333,1,333,1,333,1,333,1,334,1,334,1,334,1,334,1,334,1,335,1,335,1,335,1,335,1,335,1,335,1,336,1,336,1,336,1,336,1,336,1,336,1,336,1,337,1,337,1,337,1,337,1,337,1,337,1,337,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,338,1,339,1,339,1,339,1,339,1,339,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,340,1,341,1,341,1,341,1,341,1,341,1,342,1,342,1,342,1,342,1,342,1,342,1,343,1,343,1,343,1,343,1,343,1,343,1,343,1,344,1,344,1,344,1,344,1,344,1,345,1,345,1,345,1,345,1,345,1,345,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,1,348,1,348,1,348,1,348,3,348,2928,8,348,1,349,1,349,1,349,1,349,3,349,2934,8,349,1,350,1,350,5,350,2938,8,350,10,350,12,350,2941,9,350,1,350,1,350,1,351,1,351,5,351,2947,8,351,10,351,12,351,2950,9,351,1,351,1,351,1,352,1,352,5,352,2956,8,352,10,352,12,352,2959,9,352,1,352,1,352,4,352,2963,8,352,11,352,12,352,2964,1,352,3,352,2968,8,352,1,353,1,353,1,353,3,353,2973,8,353,1,353,1,353,1,353,1,353,1,353,1,353,1,353,1,353,3,353,2983,8,353,3,353,2985,8,353,1,354,1,354,1,354,5,354,2990,8,354,10,354,12,354,2993,9,354,1,355,1,355,1,355,1,355,1,355,3,355,3e3,8,355,1,356,1,356,5,356,3004,8,356,10,356,12,356,3007,9,356,1,356,1,356,1,357,1,357,1,358,1,358,1,359,1,359,1,359,4,359,3018,8,359,11,359,12,359,3019,1,360,1,360,1,360,4,360,3025,8,360,11,360,12,360,3026,1,361,1,361,1,361,4,361,3032,8,361,11,361,12,361,3033,1,362,4,362,3037,8,362,11,362,12,362,3038,1,363,1,363,1,363,1,363,3,363,3045,8,363,1,364,1,364,1,364,3,364,3050,8,364,1,364,1,364,1,364,1,364,1,364,1,364,3,364,3058,8,364,1,365,1,365,1,365,3,365,3063,8,365,1,365,1,365,1,366,1,366,1,366,5,366,3070,8,366,10,366,12,366,3073,9,366,1,366,3,366,3076,8,366,1,366,1,366,1,366,3,366,3081,8,366,1,366,1,366,1,366,1,366,1,366,1,366,3,366,3089,8,366,3,366,3091,8,366,1,367,1,367,1,367,4,367,3096,8,367,11,367,12,367,3097,1,367,1,367,1,368,1,368,1,369,1,369,1,370,1,370,1,371,1,371,1,372,1,372,1,373,1,373,1,373,1,373,5,373,3116,8,373,10,373,12,373,3119,9,373,1,373,1,373,1,373,1,374,1,374,1,374,1,374,5,374,3128,8,374,10,374,12,374,3131,9,374,1,374,1,374,3,374,3135,8,374,1,374,3,374,3138,8,374,1,375,1,375,1,375,1,375,1,376,1,376,3,376,3146,8,376,1,376,1,376,2,2957,3117,0,377,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,0,81,0,83,0,85,0,87,0,89,0,91,0,93,0,95,0,97,0,99,0,101,0,103,0,105,0,107,0,109,0,111,0,113,0,115,0,117,0,119,0,121,0,123,0,125,0,127,0,129,0,131,0,133,0,135,0,137,0,139,40,141,41,143,42,145,43,147,44,149,45,151,46,153,47,155,48,157,49,159,50,161,51,163,52,165,53,167,54,169,55,171,56,173,57,175,58,177,59,179,60,181,61,183,62,185,63,187,64,189,65,191,66,193,67,195,68,197,69,199,70,201,71,203,72,205,73,207,74,209,75,211,76,213,77,215,78,217,79,219,80,221,81,223,82,225,83,227,84,229,85,231,86,233,87,235,88,237,89,239,90,241,91,243,92,245,93,247,94,249,95,251,96,253,97,255,98,257,99,259,100,261,101,263,102,265,103,267,104,269,105,271,106,273,107,275,108,277,109,279,110,281,111,283,112,285,113,287,114,289,115,291,116,293,117,295,118,297,119,299,120,301,121,303,122,305,123,307,124,309,125,311,126,313,127,315,128,317,129,319,130,321,131,323,132,325,133,327,134,329,135,331,136,333,137,335,138,337,139,339,140,341,141,343,142,345,143,347,144,349,145,351,146,353,147,355,148,357,149,359,150,361,151,363,152,365,153,367,154,369,155,371,156,373,157,375,158,377,159,379,160,381,161,383,162,385,163,387,164,389,165,391,166,393,167,395,168,397,169,399,170,401,171,403,172,405,173,407,174,409,175,411,176,413,177,415,178,417,179,419,180,421,181,423,182,425,183,427,184,429,185,431,186,433,187,435,188,437,189,439,190,441,191,443,192,445,193,447,194,449,195,451,196,453,197,455,198,457,199,459,200,461,201,463,202,465,203,467,204,469,205,471,206,473,207,475,208,477,209,479,210,481,211,483,212,485,213,487,214,489,215,491,216,493,217,495,218,497,219,499,220,501,221,503,222,505,223,507,224,509,225,511,226,513,227,515,228,517,229,519,230,521,231,523,232,525,233,527,234,529,235,531,236,533,237,535,238,537,239,539,240,541,241,543,242,545,243,547,244,549,245,551,246,553,247,555,248,557,249,559,250,561,251,563,252,565,253,567,254,569,255,571,256,573,257,575,258,577,259,579,260,581,261,583,262,585,263,587,264,589,265,591,266,593,267,595,268,597,269,599,270,601,271,603,272,605,273,607,274,609,275,611,276,613,277,615,278,617,279,619,280,621,281,623,282,625,283,627,284,629,285,631,286,633,287,635,288,637,289,639,290,641,291,643,292,645,293,647,294,649,295,651,296,653,297,655,298,657,299,659,300,661,301,663,302,665,303,667,304,669,305,671,306,673,307,675,308,677,309,679,310,681,311,683,312,685,313,687,314,689,315,691,316,693,317,695,318,697,0,699,0,701,0,703,0,705,0,707,319,709,320,711,0,713,321,715,0,717,0,719,0,721,0,723,0,725,0,727,322,729,323,731,0,733,324,735,325,737,326,739,327,741,328,743,329,745,330,747,0,749,0,751,331,753,332,1,0,35,2,0,65,65,97,97,2,0,66,66,98,98,2,0,67,67,99,99,2,0,68,68,100,100,2,0,69,69,101,101,2,0,70,70,102,102,2,0,71,71,103,103,2,0,72,72,104,104,2,0,73,73,105,105,2,0,74,74,106,106,2,0,75,75,107,107,2,0,76,76,108,108,2,0,77,77,109,109,2,0,78,78,110,110,2,0,79,79,111,111,2,0,80,80,112,112,2,0,81,81,113,113,2,0,82,82,114,114,2,0,83,83,115,115,2,0,84,84,116,116,2,0,85,85,117,117,2,0,86,86,118,118,2,0,87,87,119,119,2,0,88,88,120,120,2,0,89,89,121,121,2,0,90,90,122,122,2,0,39,39,92,92,2,0,34,34,92,92,3,0,65,90,95,95,97,122,2,0,92,92,96,96,3,0,48,57,65,70,97,102,2,0,52,52,56,56,2,0,10,10,13,13,1,1,10,10,3,0,9,10,12,13,32,32,3155,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,273,1,0,0,0,0,275,1,0,0,0,0,277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,0,291,1,0,0,0,0,293,1,0,0,0,0,295,1,0,0,0,0,297,1,0,0,0,0,299,1,0,0,0,0,301,1,0,0,0,0,303,1,0,0,0,0,305,1,0,0,0,0,307,1,0,0,0,0,309,1,0,0,0,0,311,1,0,0,0,0,313,1,0,0,0,0,315,1,0,0,0,0,317,1,0,0,0,0,319,1,0,0,0,0,321,1,0,0,0,0,323,1,0,0,0,0,325,1,0,0,0,0,327,1,0,0,0,0,329,1,0,0,0,0,331,1,0,0,0,0,333,1,0,0,0,0,335,1,0,0,0,0,337,1,0,0,0,0,339,1,0,0,0,0,341,1,0,0,0,0,343,1,0,0,0,0,345,1,0,0,0,0,347,1,0,0,0,0,349,1,0,0,0,0,351,1,0,0,0,0,353,1,0,0,0,0,355,1,0,0,0,0,357,1,0,0,0,0,359,1,0,0,0,0,361,1,0,0,0,0,363,1,0,0,0,0,365,1,0,0,0,0,367,1,0,0,0,0,369,1,0,0,0,0,371,1,0,0,0,0,373,1,0,0,0,0,375,1,0,0,0,0,377,1,0,0,0,0,379,1,0,0,0,0,381,1,0,0,0,0,383,1,0,0,0,0,385,1,0,0,0,0,387,1,0,0,0,0,389,1,0,0,0,0,391,1,0,0,0,0,393,1,0,0,0,0,395,1,0,0,0,0,397,1,0,0,0,0,399,1,0,0,0,0,401,1,0,0,0,0,403,1,0,0,0,0,405,1,0,0,0,0,407,1,0,0,0,0,409,1,0,0,0,0,411,1,0,0,0,0,413,1,0,0,0,0,415,1,0,0,0,0,417,1,0,0,0,0,419,1,0,0,0,0,421,1,0,0,0,0,423,1,0,0,0,0,425,1,0,0,0,0,427,1,0,0,0,0,429,1,0,0,0,0,431,1,0,0,0,0,433,1,0,0,0,0,435,1,0,0,0,0,437,1,0,0,0,0,439,1,0,0,0,0,441,1,0,0,0,0,443,1,0,0,0,0,445,1,0,0,0,0,447,1,0,0,0,0,449,1,0,0,0,0,451,1,0,0,0,0,453,1,0,0,0,0,455,1,0,0,0,0,457,1,0,0,0,0,459,1,0,0,0,0,461,1,0,0,0,0,463,1,0,0,0,0,465,1,0,0,0,0,467,1,0,0,0,0,469,1,0,0,0,0,471,1,0,0,0,0,473,1,0,0,0,0,475,1,0,0,0,0,477,1,0,0,0,0,479,1,0,0,0,0,481,1,0,0,0,0,483,1,0,0,0,0,485,1,0,0,0,0,487,1,0,0,0,0,489,1,0,0,0,0,491,1,0,0,0,0,493,1,0,0,0,0,495,1,0,0,0,0,497,1,0,0,0,0,499,1,0,0,0,0,501,1,0,0,0,0,503,1,0,0,0,0,505,1,0,0,0,0,507,1,0,0,0,0,509,1,0,0,0,0,511,1,0,0,0,0,513,1,0,0,0,0,515,1,0,0,0,0,517,1,0,0,0,0,519,1,0,0,0,0,521,1,0,0,0,0,523,1,0,0,0,0,525,1,0,0,0,0,527,1,0,0,0,0,529,1,0,0,0,0,531,1,0,0,0,0,533,1,0,0,0,0,535,1,0,0,0,0,537,1,0,0,0,0,539,1,0,0,0,0,541,1,0,0,0,0,543,1,0,0,0,0,545,1,0,0,0,0,547,1,0,0,0,0,549,1,0,0,0,0,551,1,0,0,0,0,553,1,0,0,0,0,555,1,0,0,0,0,557,1,0,0,0,0,559,1,0,0,0,0,561,1,0,0,0,0,563,1,0,0,0,0,565,1,0,0,0,0,567,1,0,0,0,0,569,1,0,0,0,0,571,1,0,0,0,0,573,1,0,0,0,0,575,1,0,0,0,0,577,1,0,0,0,0,579,1,0,0,0,0,581,1,0,0,0,0,583,1,0,0,0,0,585,1,0,0,0,0,587,1,0,0,0,0,589,1,0,0,0,0,591,1,0,0,0,0,593,1,0,0,0,0,595,1,0,0,0,0,597,1,0,0,0,0,599,1,0,0,0,0,601,1,0,0,0,0,603,1,0,0,0,0,605,1,0,0,0,0,607,1,0,0,0,0,609,1,0,0,0,0,611,1,0,0,0,0,613,1,0,0,0,0,615,1,0,0,0,0,617,1,0,0,0,0,619,1,0,0,0,0,621,1,0,0,0,0,623,1,0,0,0,0,625,1,0,0,0,0,627,1,0,0,0,0,629,1,0,0,0,0,631,1,0,0,0,0,633,1,0,0,0,0,635,1,0,0,0,0,637,1,0,0,0,0,639,1,0,0,0,0,641,1,0,0,0,0,643,1,0,0,0,0,645,1,0,0,0,0,647,1,0,0,0,0,649,1,0,0,0,0,651,1,0,0,0,0,653,1,0,0,0,0,655,1,0,0,0,0,657,1,0,0,0,0,659,1,0,0,0,0,661,1,0,0,0,0,663,1,0,0,0,0,665,1,0,0,0,0,667,1,0,0,0,0,669,1,0,0,0,0,671,1,0,0,0,0,673,1,0,0,0,0,675,1,0,0,0,0,677,1,0,0,0,0,679,1,0,0,0,0,681,1,0,0,0,0,683,1,0,0,0,0,685,1,0,0,0,0,687,1,0,0,0,0,689,1,0,0,0,0,691,1,0,0,0,0,693,1,0,0,0,0,695,1,0,0,0,0,707,1,0,0,0,0,709,1,0,0,0,0,713,1,0,0,0,0,727,1,0,0,0,0,729,1,0,0,0,0,733,1,0,0,0,0,735,1,0,0,0,0,737,1,0,0,0,0,739,1,0,0,0,0,741,1,0,0,0,0,743,1,0,0,0,0,745,1,0,0,0,0,751,1,0,0,0,0,753,1,0,0,0,1,755,1,0,0,0,3,761,1,0,0,0,5,763,1,0,0,0,7,766,1,0,0,0,9,769,1,0,0,0,11,772,1,0,0,0,13,774,1,0,0,0,15,777,1,0,0,0,17,779,1,0,0,0,19,782,1,0,0,0,21,785,1,0,0,0,23,789,1,0,0,0,25,791,1,0,0,0,27,793,1,0,0,0,29,796,1,0,0,0,31,799,1,0,0,0,33,802,1,0,0,0,35,804,1,0,0,0,37,806,1,0,0,0,39,808,1,0,0,0,41,810,1,0,0,0,43,812,1,0,0,0,45,814,1,0,0,0,47,816,1,0,0,0,49,818,1,0,0,0,51,820,1,0,0,0,53,822,1,0,0,0,55,824,1,0,0,0,57,826,1,0,0,0,59,828,1,0,0,0,61,830,1,0,0,0,63,833,1,0,0,0,65,835,1,0,0,0,67,837,1,0,0,0,69,839,1,0,0,0,71,841,1,0,0,0,73,844,1,0,0,0,75,847,1,0,0,0,77,849,1,0,0,0,79,851,1,0,0,0,81,853,1,0,0,0,83,855,1,0,0,0,85,857,1,0,0,0,87,859,1,0,0,0,89,861,1,0,0,0,91,863,1,0,0,0,93,865,1,0,0,0,95,867,1,0,0,0,97,869,1,0,0,0,99,871,1,0,0,0,101,873,1,0,0,0,103,875,1,0,0,0,105,877,1,0,0,0,107,879,1,0,0,0,109,881,1,0,0,0,111,883,1,0,0,0,113,885,1,0,0,0,115,887,1,0,0,0,117,889,1,0,0,0,119,891,1,0,0,0,121,893,1,0,0,0,123,895,1,0,0,0,125,897,1,0,0,0,127,899,1,0,0,0,129,901,1,0,0,0,131,903,1,0,0,0,133,905,1,0,0,0,135,907,1,0,0,0,137,909,1,0,0,0,139,911,1,0,0,0,141,917,1,0,0,0,143,924,1,0,0,0,145,928,1,0,0,0,147,934,1,0,0,0,149,938,1,0,0,0,151,944,1,0,0,0,153,952,1,0,0,0,155,956,1,0,0,0,157,961,1,0,0,0,159,965,1,0,0,0,161,971,1,0,0,0,163,974,1,0,0,0,165,978,1,0,0,0,167,985,1,0,0,0,169,996,1,0,0,0,171,1002,1,0,0,0,173,1005,1,0,0,0,175,1012,1,0,0,0,177,1023,1,0,0,0,179,1037,1,0,0,0,181,1045,1,0,0,0,183,1052,1,0,0,0,185,1063,1,0,0,0,187,1070,1,0,0,0,189,1076,1,0,0,0,191,1086,1,0,0,0,193,1094,1,0,0,0,195,1102,1,0,0,0,197,1105,1,0,0,0,199,1114,1,0,0,0,201,1122,1,0,0,0,203,1127,1,0,0,0,205,1132,1,0,0,0,207,1143,1,0,0,0,209,1149,1,0,0,0,211,1160,1,0,0,0,213,1168,1,0,0,0,215,1175,1,0,0,0,217,1183,1,0,0,0,219,1190,1,0,0,0,221,1198,1,0,0,0,223,1210,1,0,0,0,225,1219,1,0,0,0,227,1227,1,0,0,0,229,1238,1,0,0,0,231,1247,1,0,0,0,233,1253,1,0,0,0,235,1260,1,0,0,0,237,1266,1,0,0,0,239,1271,1,0,0,0,241,1279,1,0,0,0,243,1292,1,0,0,0,245,1305,1,0,0,0,247,1323,1,0,0,0,249,1328,1,0,0,0,251,1337,1,0,0,0,253,1345,1,0,0,0,255,1353,1,0,0,0,257,1361,1,0,0,0,259,1372,1,0,0,0,261,1381,1,0,0,0,263,1388,1,0,0,0,265,1395,1,0,0,0,267,1400,1,0,0,0,269,1409,1,0,0,0,271,1416,1,0,0,0,273,1421,1,0,0,0,275,1431,1,0,0,0,277,1439,1,0,0,0,279,1447,1,0,0,0,281,1456,1,0,0,0,283,1459,1,0,0,0,285,1464,1,0,0,0,287,1469,1,0,0,0,289,1474,1,0,0,0,291,1480,1,0,0,0,293,1493,1,0,0,0,295,1503,1,0,0,0,297,1507,1,0,0,0,299,1512,1,0,0,0,301,1518,1,0,0,0,303,1524,1,0,0,0,305,1531,1,0,0,0,307,1540,1,0,0,0,309,1547,1,0,0,0,311,1555,1,0,0,0,313,1565,1,0,0,0,315,1575,1,0,0,0,317,1582,1,0,0,0,319,1590,1,0,0,0,321,1597,1,0,0,0,323,1606,1,0,0,0,325,1611,1,0,0,0,327,1617,1,0,0,0,329,1624,1,0,0,0,331,1631,1,0,0,0,333,1637,1,0,0,0,335,1645,1,0,0,0,337,1650,1,0,0,0,339,1660,1,0,0,0,341,1664,1,0,0,0,343,1672,1,0,0,0,345,1677,1,0,0,0,347,1682,1,0,0,0,349,1691,1,0,0,0,351,1696,1,0,0,0,353,1703,1,0,0,0,355,1709,1,0,0,0,357,1715,1,0,0,0,359,1724,1,0,0,0,361,1731,1,0,0,0,363,1736,1,0,0,0,365,1743,1,0,0,0,367,1747,1,0,0,0,369,1750,1,0,0,0,371,1757,1,0,0,0,373,1763,1,0,0,0,375,1773,1,0,0,0,377,1780,1,0,0,0,379,1783,1,0,0,0,381,1795,1,0,0,0,383,1801,1,0,0,0,385,1809,1,0,0,0,387,1818,1,0,0,0,389,1826,1,0,0,0,391,1836,1,0,0,0,393,1842,1,0,0,0,395,1849,1,0,0,0,397,1857,1,0,0,0,399,1867,1,0,0,0,401,1872,1,0,0,0,403,1875,1,0,0,0,405,1882,1,0,0,0,407,1887,1,0,0,0,409,1899,1,0,0,0,411,1910,1,0,0,0,413,1921,1,0,0,0,415,1925,1,0,0,0,417,1930,1,0,0,0,419,1935,1,0,0,0,421,1942,1,0,0,0,423,1947,1,0,0,0,425,1953,1,0,0,0,427,1958,1,0,0,0,429,1964,1,0,0,0,431,1971,1,0,0,0,433,1977,1,0,0,0,435,1985,1,0,0,0,437,2001,1,0,0,0,439,2010,1,0,0,0,441,2023,1,0,0,0,443,2036,1,0,0,0,445,2043,1,0,0,0,447,2055,1,0,0,0,449,2063,1,0,0,0,451,2068,1,0,0,0,453,2071,1,0,0,0,455,2075,1,0,0,0,457,2083,1,0,0,0,459,2088,1,0,0,0,461,2094,1,0,0,0,463,2101,1,0,0,0,465,2104,1,0,0,0,467,2111,1,0,0,0,469,2116,1,0,0,0,471,2119,1,0,0,0,473,2123,1,0,0,0,475,2128,1,0,0,0,477,2135,1,0,0,0,479,2144,1,0,0,0,481,2147,1,0,0,0,483,2153,1,0,0,0,485,2160,1,0,0,0,487,2166,1,0,0,0,489,2171,1,0,0,0,491,2180,1,0,0,0,493,2190,1,0,0,0,495,2198,1,0,0,0,497,2207,1,0,0,0,499,2212,1,0,0,0,501,2220,1,0,0,0,503,2224,1,0,0,0,505,2232,1,0,0,0,507,2237,1,0,0,0,509,2242,1,0,0,0,511,2249,1,0,0,0,513,2259,1,0,0,0,515,2267,1,0,0,0,517,2275,1,0,0,0,519,2286,1,0,0,0,521,2294,1,0,0,0,523,2300,1,0,0,0,525,2306,1,0,0,0,527,2312,1,0,0,0,529,2319,1,0,0,0,531,2330,1,0,0,0,533,2337,1,0,0,0,535,2345,1,0,0,0,537,2353,1,0,0,0,539,2360,1,0,0,0,541,2367,1,0,0,0,543,2378,1,0,0,0,545,2386,1,0,0,0,547,2398,1,0,0,0,549,2404,1,0,0,0,551,2413,1,0,0,0,553,2421,1,0,0,0,555,2429,1,0,0,0,557,2438,1,0,0,0,559,2445,1,0,0,0,561,2452,1,0,0,0,563,2462,1,0,0,0,565,2469,1,0,0,0,567,2476,1,0,0,0,569,2482,1,0,0,0,571,2488,1,0,0,0,573,2497,1,0,0,0,575,2504,1,0,0,0,577,2508,1,0,0,0,579,2513,1,0,0,0,581,2520,1,0,0,0,583,2530,1,0,0,0,585,2537,1,0,0,0,587,2545,1,0,0,0,589,2550,1,0,0,0,591,2557,1,0,0,0,593,2562,1,0,0,0,595,2566,1,0,0,0,597,2571,1,0,0,0,599,2576,1,0,0,0,601,2581,1,0,0,0,603,2588,1,0,0,0,605,2595,1,0,0,0,607,2602,1,0,0,0,609,2611,1,0,0,0,611,2618,1,0,0,0,613,2626,1,0,0,0,615,2636,1,0,0,0,617,2641,1,0,0,0,619,2648,1,0,0,0,621,2654,1,0,0,0,623,2661,1,0,0,0,625,2673,1,0,0,0,627,2684,1,0,0,0,629,2691,1,0,0,0,631,2696,1,0,0,0,633,2706,1,0,0,0,635,2711,1,0,0,0,637,2716,1,0,0,0,639,2719,1,0,0,0,641,2725,1,0,0,0,643,2737,1,0,0,0,645,2745,1,0,0,0,647,2750,1,0,0,0,649,2756,1,0,0,0,651,2761,1,0,0,0,653,2771,1,0,0,0,655,2785,1,0,0,0,657,2791,1,0,0,0,659,2798,1,0,0,0,661,2806,1,0,0,0,663,2816,1,0,0,0,665,2823,1,0,0,0,667,2830,1,0,0,0,669,2834,1,0,0,0,671,2839,1,0,0,0,673,2845,1,0,0,0,675,2852,1,0,0,0,677,2859,1,0,0,0,679,2867,1,0,0,0,681,2872,1,0,0,0,683,2880,1,0,0,0,685,2885,1,0,0,0,687,2891,1,0,0,0,689,2898,1,0,0,0,691,2903,1,0,0,0,693,2911,1,0,0,0,695,2919,1,0,0,0,697,2927,1,0,0,0,699,2933,1,0,0,0,701,2935,1,0,0,0,703,2944,1,0,0,0,705,2962,1,0,0,0,707,2972,1,0,0,0,709,2986,1,0,0,0,711,2999,1,0,0,0,713,3001,1,0,0,0,715,3010,1,0,0,0,717,3012,1,0,0,0,719,3014,1,0,0,0,721,3021,1,0,0,0,723,3028,1,0,0,0,725,3036,1,0,0,0,727,3044,1,0,0,0,729,3046,1,0,0,0,731,3059,1,0,0,0,733,3080,1,0,0,0,735,3092,1,0,0,0,737,3101,1,0,0,0,739,3103,1,0,0,0,741,3105,1,0,0,0,743,3107,1,0,0,0,745,3109,1,0,0,0,747,3111,1,0,0,0,749,3123,1,0,0,0,751,3139,1,0,0,0,753,3145,1,0,0,0,755,756,3,119,59,0,756,757,3,127,63,0,757,758,3,95,47,0,758,759,3,121,60,0,759,760,3,135,67,0,760,2,1,0,0,0,761,762,5,61,0,0,762,4,1,0,0,0,763,764,5,61,0,0,764,765,5,61,0,0,765,6,1,0,0,0,766,767,5,33,0,0,767,768,5,61,0,0,768,8,1,0,0,0,769,770,5,60,0,0,770,771,5,62,0,0,771,10,1,0,0,0,772,773,5,60,0,0,773,12,1,0,0,0,774,775,5,60,0,0,775,776,5,61,0,0,776,14,1,0,0,0,777,778,5,62,0,0,778,16,1,0,0,0,779,780,5,62,0,0,780,781,5,61,0,0,781,18,1,0,0,0,782,783,5,60,0,0,783,784,5,60,0,0,784,20,1,0,0,0,785,786,5,124,0,0,786,787,5,60,0,0,787,788,5,60,0,0,788,22,1,0,0,0,789,790,5,38,0,0,790,24,1,0,0,0,791,792,5,124,0,0,792,26,1,0,0,0,793,794,5,124,0,0,794,795,5,124,0,0,795,28,1,0,0,0,796,797,5,60,0,0,797,798,5,124,0,0,798,30,1,0,0,0,799,800,5,124,0,0,800,801,5,62,0,0,801,32,1,0,0,0,802,803,5,43,0,0,803,34,1,0,0,0,804,805,5,45,0,0,805,36,1,0,0,0,806,807,5,126,0,0,807,38,1,0,0,0,808,809,5,42,0,0,809,40,1,0,0,0,810,811,5,47,0,0,811,42,1,0,0,0,812,813,5,37,0,0,813,44,1,0,0,0,814,815,5,59,0,0,815,46,1,0,0,0,816,817,5,46,0,0,817,48,1,0,0,0,818,819,5,44,0,0,819,50,1,0,0,0,820,821,5,40,0,0,821,52,1,0,0,0,822,823,5,41,0,0,823,54,1,0,0,0,824,825,5,63,0,0,825,56,1,0,0,0,826,827,5,58,0,0,827,58,1,0,0,0,828,829,5,64,0,0,829,60,1,0,0,0,830,831,5,64,0,0,831,832,5,64,0,0,832,62,1,0,0,0,833,834,5,36,0,0,834,64,1,0,0,0,835,836,5,123,0,0,836,66,1,0,0,0,837,838,5,125,0,0,838,68,1,0,0,0,839,840,5,94,0,0,840,70,1,0,0,0,841,842,5,58,0,0,842,843,5,58,0,0,843,72,1,0,0,0,844,845,5,45,0,0,845,846,5,62,0,0,846,74,1,0,0,0,847,848,5,93,0,0,848,76,1,0,0,0,849,850,5,91,0,0,850,78,1,0,0,0,851,852,5,92,0,0,852,80,1,0,0,0,853,854,5,34,0,0,854,82,1,0,0,0,855,856,5,39,0,0,856,84,1,0,0,0,857,858,5,96,0,0,858,86,1,0,0,0,859,860,7,0,0,0,860,88,1,0,0,0,861,862,7,1,0,0,862,90,1,0,0,0,863,864,7,2,0,0,864,92,1,0,0,0,865,866,7,3,0,0,866,94,1,0,0,0,867,868,7,4,0,0,868,96,1,0,0,0,869,870,7,5,0,0,870,98,1,0,0,0,871,872,7,6,0,0,872,100,1,0,0,0,873,874,7,7,0,0,874,102,1,0,0,0,875,876,7,8,0,0,876,104,1,0,0,0,877,878,7,9,0,0,878,106,1,0,0,0,879,880,7,10,0,0,880,108,1,0,0,0,881,882,7,11,0,0,882,110,1,0,0,0,883,884,7,12,0,0,884,112,1,0,0,0,885,886,7,13,0,0,886,114,1,0,0,0,887,888,7,14,0,0,888,116,1,0,0,0,889,890,7,15,0,0,890,118,1,0,0,0,891,892,7,16,0,0,892,120,1,0,0,0,893,894,7,17,0,0,894,122,1,0,0,0,895,896,7,18,0,0,896,124,1,0,0,0,897,898,7,19,0,0,898,126,1,0,0,0,899,900,7,20,0,0,900,128,1,0,0,0,901,902,7,21,0,0,902,130,1,0,0,0,903,904,7,22,0,0,904,132,1,0,0,0,905,906,7,23,0,0,906,134,1,0,0,0,907,908,7,24,0,0,908,136,1,0,0,0,909,910,7,25,0,0,910,138,1,0,0,0,911,912,3,87,43,0,912,913,3,89,44,0,913,914,3,115,57,0,914,915,3,121,60,0,915,916,3,125,62,0,916,140,1,0,0,0,917,918,3,87,43,0,918,919,3,91,45,0,919,920,3,125,62,0,920,921,3,103,51,0,921,922,3,115,57,0,922,923,3,113,56,0,923,142,1,0,0,0,924,925,3,87,43,0,925,926,3,93,46,0,926,927,3,93,46,0,927,144,1,0,0,0,928,929,3,87,43,0,929,930,3,97,48,0,930,931,3,125,62,0,931,932,3,95,47,0,932,933,3,121,60,0,933,146,1,0,0,0,934,935,3,87,43,0,935,936,3,109,54,0,936,937,3,109,54,0,937,148,1,0,0,0,938,939,3,87,43,0,939,940,3,109,54,0,940,941,3,125,62,0,941,942,3,95,47,0,942,943,3,121,60,0,943,150,1,0,0,0,944,945,3,87,43,0,945,946,3,113,56,0,946,947,3,87,43,0,947,948,3,109,54,0,948,949,3,135,67,0,949,950,3,137,68,0,950,951,3,95,47,0,951,152,1,0,0,0,952,953,3,87,43,0,953,954,3,113,56,0,954,955,3,93,46,0,955,154,1,0,0,0,956,957,3,87,43,0,957,958,3,113,56,0,958,959,3,123,61,0,959,960,3,103,51,0,960,156,1,0,0,0,961,962,3,87,43,0,962,963,3,113,56,0,963,964,3,135,67,0,964,158,1,0,0,0,965,966,3,87,43,0,966,967,3,121,60,0,967,968,3,121,60,0,968,969,3,87,43,0,969,970,3,135,67,0,970,160,1,0,0,0,971,972,3,87,43,0,972,973,3,123,61,0,973,162,1,0,0,0,974,975,3,87,43,0,975,976,3,123,61,0,976,977,3,91,45,0,977,164,1,0,0,0,978,979,3,87,43,0,979,980,3,123,61,0,980,981,3,123,61,0,981,982,3,127,63,0,982,983,3,111,55,0,983,984,3,95,47,0,984,166,1,0,0,0,985,986,3,87,43,0,986,987,3,123,61,0,987,988,3,135,67,0,988,989,3,111,55,0,989,990,3,111,55,0,990,991,3,95,47,0,991,992,3,125,62,0,992,993,3,121,60,0,993,994,3,103,51,0,994,995,3,91,45,0,995,168,1,0,0,0,996,997,3,87,43,0,997,998,3,123,61,0,998,999,3,135,67,0,999,1e3,3,113,56,0,1e3,1001,3,91,45,0,1001,170,1,0,0,0,1002,1003,3,87,43,0,1003,1004,3,125,62,0,1004,172,1,0,0,0,1005,1006,3,87,43,0,1006,1007,3,125,62,0,1007,1008,3,125,62,0,1008,1009,3,87,43,0,1009,1010,3,91,45,0,1010,1011,3,101,50,0,1011,174,1,0,0,0,1012,1013,3,87,43,0,1013,1014,3,125,62,0,1014,1015,3,125,62,0,1015,1016,3,121,60,0,1016,1017,3,103,51,0,1017,1018,3,89,44,0,1018,1019,3,127,63,0,1019,1020,3,125,62,0,1020,1021,3,95,47,0,1021,1022,3,123,61,0,1022,176,1,0,0,0,1023,1024,3,87,43,0,1024,1025,3,127,63,0,1025,1026,3,125,62,0,1026,1027,3,115,57,0,1027,1028,3,103,51,0,1028,1029,3,113,56,0,1029,1030,3,91,45,0,1030,1031,3,121,60,0,1031,1032,3,95,47,0,1032,1033,3,111,55,0,1033,1034,3,95,47,0,1034,1035,3,113,56,0,1035,1036,3,125,62,0,1036,178,1,0,0,0,1037,1038,3,87,43,0,1038,1039,3,127,63,0,1039,1040,3,125,62,0,1040,1041,3,115,57,0,1041,1042,3,111,55,0,1042,1043,3,87,43,0,1043,1044,3,117,58,0,1044,180,1,0,0,0,1045,1046,3,89,44,0,1046,1047,3,87,43,0,1047,1048,3,91,45,0,1048,1049,3,107,53,0,1049,1050,3,127,63,0,1050,1051,3,117,58,0,1051,182,1,0,0,0,1052,1053,3,91,45,0,1053,1054,3,115,57,0,1054,1055,3,109,54,0,1055,1056,3,109,54,0,1056,1057,3,95,47,0,1057,1058,3,91,45,0,1058,1059,3,125,62,0,1059,1060,3,103,51,0,1060,1061,3,115,57,0,1061,1062,3,113,56,0,1062,184,1,0,0,0,1063,1064,3,89,44,0,1064,1065,3,95,47,0,1065,1066,3,97,48,0,1066,1067,3,115,57,0,1067,1068,3,121,60,0,1068,1069,3,95,47,0,1069,186,1,0,0,0,1070,1071,3,89,44,0,1071,1072,3,95,47,0,1072,1073,3,99,49,0,1073,1074,3,103,51,0,1074,1075,3,113,56,0,1075,188,1,0,0,0,1076,1077,3,89,44,0,1077,1078,3,95,47,0,1078,1079,3,121,60,0,1079,1080,3,113,56,0,1080,1081,3,115,57,0,1081,1082,3,127,63,0,1082,1083,3,109,54,0,1083,1084,3,109,54,0,1084,1085,3,103,51,0,1085,190,1,0,0,0,1086,1087,3,89,44,0,1087,1088,3,95,47,0,1088,1089,3,125,62,0,1089,1090,3,131,65,0,1090,1091,3,95,47,0,1091,1092,3,95,47,0,1092,1093,3,113,56,0,1093,192,1,0,0,0,1094,1095,3,89,44,0,1095,1096,3,103,51,0,1096,1097,3,125,62,0,1097,1098,3,91,45,0,1098,1099,3,87,43,0,1099,1100,3,123,61,0,1100,1101,3,125,62,0,1101,194,1,0,0,0,1102,1103,3,89,44,0,1103,1104,3,135,67,0,1104,196,1,0,0,0,1105,1106,3,91,45,0,1106,1107,3,87,43,0,1107,1108,3,109,54,0,1108,1109,3,109,54,0,1109,1110,3,87,43,0,1110,1111,3,89,44,0,1111,1112,3,109,54,0,1112,1113,3,95,47,0,1113,198,1,0,0,0,1114,1115,3,91,45,0,1115,1116,3,87,43,0,1116,1117,3,123,61,0,1117,1118,3,91,45,0,1118,1119,3,87,43,0,1119,1120,3,93,46,0,1120,1121,3,95,47,0,1121,200,1,0,0,0,1122,1123,3,91,45,0,1123,1124,3,87,43,0,1124,1125,3,123,61,0,1125,1126,3,95,47,0,1126,202,1,0,0,0,1127,1128,3,91,45,0,1128,1129,3,87,43,0,1129,1130,3,123,61,0,1130,1131,3,125,62,0,1131,204,1,0,0,0,1132,1133,3,91,45,0,1133,1134,3,101,50,0,1134,1135,3,87,43,0,1135,1136,3,113,56,0,1136,1137,3,99,49,0,1137,1138,3,95,47,0,1138,1139,3,97,48,0,1139,1140,3,95,47,0,1140,1141,3,95,47,0,1141,1142,3,93,46,0,1142,206,1,0,0,0,1143,1144,3,91,45,0,1144,1145,3,101,50,0,1145,1146,3,95,47,0,1146,1147,3,91,45,0,1147,1148,3,107,53,0,1148,208,1,0,0,0,1149,1150,3,91,45,0,1150,1151,3,109,54,0,1151,1152,3,87,43,0,1152,1153,3,123,61,0,1153,1154,3,123,61,0,1154,1155,3,103,51,0,1155,1156,3,97,48,0,1156,1157,3,103,51,0,1157,1158,3,95,47,0,1158,1159,3,121,60,0,1159,210,1,0,0,0,1160,1161,3,91,45,0,1161,1162,3,115,57,0,1162,1163,3,109,54,0,1163,1164,3,109,54,0,1164,1165,3,87,43,0,1165,1166,3,125,62,0,1166,1167,3,95,47,0,1167,212,1,0,0,0,1168,1169,3,91,45,0,1169,1170,3,115,57,0,1170,1171,3,109,54,0,1171,1172,3,127,63,0,1172,1173,3,111,55,0,1173,1174,3,113,56,0,1174,214,1,0,0,0,1175,1176,3,91,45,0,1176,1177,3,115,57,0,1177,1178,3,109,54,0,1178,1179,3,127,63,0,1179,1180,3,111,55,0,1180,1181,3,113,56,0,1181,1182,3,123,61,0,1182,216,1,0,0,0,1183,1184,3,91,45,0,1184,1185,3,115,57,0,1185,1186,3,111,55,0,1186,1187,3,111,55,0,1187,1188,3,103,51,0,1188,1189,3,125,62,0,1189,218,1,0,0,0,1190,1191,3,91,45,0,1191,1192,3,115,57,0,1192,1193,3,111,55,0,1193,1194,3,117,58,0,1194,1195,3,87,43,0,1195,1196,3,91,45,0,1196,1197,3,125,62,0,1197,220,1,0,0,0,1198,1199,3,91,45,0,1199,1200,3,115,57,0,1200,1201,3,113,56,0,1201,1202,3,93,46,0,1202,1203,3,103,51,0,1203,1204,3,125,62,0,1204,1205,3,103,51,0,1205,1206,3,115,57,0,1206,1207,3,113,56,0,1207,1208,3,87,43,0,1208,1209,3,109,54,0,1209,222,1,0,0,0,1210,1211,3,91,45,0,1211,1212,3,115,57,0,1212,1213,3,113,56,0,1213,1214,3,97,48,0,1214,1215,3,109,54,0,1215,1216,3,103,51,0,1216,1217,3,91,45,0,1217,1218,3,125,62,0,1218,224,1,0,0,0,1219,1220,3,91,45,0,1220,1221,3,115,57,0,1221,1222,3,113,56,0,1222,1223,3,113,56,0,1223,1224,3,95,47,0,1224,1225,3,91,45,0,1225,1226,3,125,62,0,1226,226,1,0,0,0,1227,1228,3,91,45,0,1228,1229,3,115,57,0,1229,1230,3,113,56,0,1230,1231,3,123,61,0,1231,1232,3,125,62,0,1232,1233,3,121,60,0,1233,1234,3,87,43,0,1234,1235,3,103,51,0,1235,1236,3,113,56,0,1236,1237,3,125,62,0,1237,228,1,0,0,0,1238,1239,3,91,45,0,1239,1240,3,115,57,0,1240,1241,3,113,56,0,1241,1242,3,123,61,0,1242,1243,3,127,63,0,1243,1244,3,111,55,0,1244,1245,3,95,47,0,1245,1246,3,121,60,0,1246,230,1,0,0,0,1247,1248,3,91,45,0,1248,1249,3,115,57,0,1249,1250,3,129,64,0,1250,1251,3,95,47,0,1251,1252,3,121,60,0,1252,232,1,0,0,0,1253,1254,3,91,45,0,1254,1255,3,121,60,0,1255,1256,3,95,47,0,1256,1257,3,87,43,0,1257,1258,3,125,62,0,1258,1259,3,95,47,0,1259,234,1,0,0,0,1260,1261,3,91,45,0,1261,1262,3,121,60,0,1262,1263,3,115,57,0,1263,1264,3,123,61,0,1264,1265,3,123,61,0,1265,236,1,0,0,0,1266,1267,3,91,45,0,1267,1268,3,127,63,0,1268,1269,3,89,44,0,1269,1270,3,95,47,0,1270,238,1,0,0,0,1271,1272,3,91,45,0,1272,1273,3,127,63,0,1273,1274,3,121,60,0,1274,1275,3,121,60,0,1275,1276,3,95,47,0,1276,1277,3,113,56,0,1277,1278,3,125,62,0,1278,240,1,0,0,0,1279,1280,3,91,45,0,1280,1281,3,127,63,0,1281,1282,3,121,60,0,1282,1283,3,121,60,0,1283,1284,3,95,47,0,1284,1285,3,113,56,0,1285,1286,3,125,62,0,1286,1287,5,95,0,0,1287,1288,3,93,46,0,1288,1289,3,87,43,0,1289,1290,3,125,62,0,1290,1291,3,95,47,0,1291,242,1,0,0,0,1292,1293,3,91,45,0,1293,1294,3,127,63,0,1294,1295,3,121,60,0,1295,1296,3,121,60,0,1296,1297,3,95,47,0,1297,1298,3,113,56,0,1298,1299,3,125,62,0,1299,1300,5,95,0,0,1300,1301,3,125,62,0,1301,1302,3,103,51,0,1302,1303,3,111,55,0,1303,1304,3,95,47,0,1304,244,1,0,0,0,1305,1306,3,91,45,0,1306,1307,3,127,63,0,1307,1308,3,121,60,0,1308,1309,3,121,60,0,1309,1310,3,95,47,0,1310,1311,3,113,56,0,1311,1312,3,125,62,0,1312,1313,5,95,0,0,1313,1314,3,125,62,0,1314,1315,3,103,51,0,1315,1316,3,111,55,0,1316,1317,3,95,47,0,1317,1318,3,123,61,0,1318,1319,3,125,62,0,1319,1320,3,87,43,0,1320,1321,3,111,55,0,1321,1322,3,117,58,0,1322,246,1,0,0,0,1323,1324,3,93,46,0,1324,1325,3,87,43,0,1325,1326,3,125,62,0,1326,1327,3,87,43,0,1327,248,1,0,0,0,1328,1329,3,93,46,0,1329,1330,3,87,43,0,1330,1331,3,125,62,0,1331,1332,3,87,43,0,1332,1333,3,89,44,0,1333,1334,3,87,43,0,1334,1335,3,123,61,0,1335,1336,3,95,47,0,1336,250,1,0,0,0,1337,1338,3,93,46,0,1338,1339,3,95,47,0,1339,1340,3,91,45,0,1340,1341,3,103,51,0,1341,1342,3,111,55,0,1342,1343,3,87,43,0,1343,1344,3,109,54,0,1344,252,1,0,0,0,1345,1346,3,93,46,0,1346,1347,3,95,47,0,1347,1348,3,91,45,0,1348,1349,3,109,54,0,1349,1350,3,87,43,0,1350,1351,3,121,60,0,1351,1352,3,95,47,0,1352,254,1,0,0,0,1353,1354,3,93,46,0,1354,1355,3,95,47,0,1355,1356,3,97,48,0,1356,1357,3,87,43,0,1357,1358,3,127,63,0,1358,1359,3,109,54,0,1359,1360,3,125,62,0,1360,256,1,0,0,0,1361,1362,3,93,46,0,1362,1363,3,95,47,0,1363,1364,3,97,48,0,1364,1365,3,95,47,0,1365,1366,3,121,60,0,1366,1367,3,121,60,0,1367,1368,3,87,43,0,1368,1369,3,89,44,0,1369,1370,3,109,54,0,1370,1371,3,95,47,0,1371,258,1,0,0,0,1372,1373,3,93,46,0,1373,1374,3,95,47,0,1374,1375,3,97,48,0,1375,1376,3,95,47,0,1376,1377,3,121,60,0,1377,1378,3,121,60,0,1378,1379,3,95,47,0,1379,1380,3,93,46,0,1380,260,1,0,0,0,1381,1382,3,93,46,0,1382,1383,3,95,47,0,1383,1384,3,97,48,0,1384,1385,3,103,51,0,1385,1386,3,113,56,0,1386,1387,3,95,47,0,1387,262,1,0,0,0,1388,1389,3,93,46,0,1389,1390,3,95,47,0,1390,1391,3,109,54,0,1391,1392,3,95,47,0,1392,1393,3,125,62,0,1393,1394,3,95,47,0,1394,264,1,0,0,0,1395,1396,3,93,46,0,1396,1397,3,95,47,0,1397,1398,3,123,61,0,1398,1399,3,91,45,0,1399,266,1,0,0,0,1400,1401,3,93,46,0,1401,1402,3,95,47,0,1402,1403,3,123,61,0,1403,1404,3,91,45,0,1404,1405,3,121,60,0,1405,1406,3,103,51,0,1406,1407,3,89,44,0,1407,1408,3,95,47,0,1408,268,1,0,0,0,1409,1410,3,93,46,0,1410,1411,3,95,47,0,1411,1412,3,125,62,0,1412,1413,3,87,43,0,1413,1414,3,91,45,0,1414,1415,3,101,50,0,1415,270,1,0,0,0,1416,1417,3,93,46,0,1417,1418,3,103,51,0,1418,1419,3,91,45,0,1419,1420,3,125,62,0,1420,272,1,0,0,0,1421,1422,3,93,46,0,1422,1423,3,103,51,0,1423,1424,3,121,60,0,1424,1425,3,95,47,0,1425,1426,3,91,45,0,1426,1427,3,125,62,0,1427,1428,3,115,57,0,1428,1429,3,121,60,0,1429,1430,3,135,67,0,1430,274,1,0,0,0,1431,1432,3,93,46,0,1432,1433,3,103,51,0,1433,1434,3,123,61,0,1434,1435,3,87,43,0,1435,1436,3,89,44,0,1436,1437,3,109,54,0,1437,1438,3,95,47,0,1438,276,1,0,0,0,1439,1440,3,93,46,0,1440,1441,3,103,51,0,1441,1442,3,123,61,0,1442,1443,3,91,45,0,1443,1444,3,87,43,0,1444,1445,3,121,60,0,1445,1446,3,93,46,0,1446,278,1,0,0,0,1447,1448,3,93,46,0,1448,1449,3,103,51,0,1449,1450,3,123,61,0,1450,1451,3,125,62,0,1451,1452,3,103,51,0,1452,1453,3,113,56,0,1453,1454,3,91,45,0,1454,1455,3,125,62,0,1455,280,1,0,0,0,1456,1457,3,93,46,0,1457,1458,3,115,57,0,1458,282,1,0,0,0,1459,1460,3,93,46,0,1460,1461,3,121,60,0,1461,1462,3,115,57,0,1462,1463,3,117,58,0,1463,284,1,0,0,0,1464,1465,3,95,47,0,1465,1466,3,87,43,0,1466,1467,3,91,45,0,1467,1468,3,101,50,0,1468,286,1,0,0,0,1469,1470,3,95,47,0,1470,1471,3,109,54,0,1471,1472,3,123,61,0,1472,1473,3,95,47,0,1473,288,1,0,0,0,1474,1475,3,95,47,0,1475,1476,3,111,55,0,1476,1477,3,117,58,0,1477,1478,3,125,62,0,1478,1479,3,135,67,0,1479,290,1,0,0,0,1480,1481,3,95,47,0,1481,1482,3,111,55,0,1482,1483,3,117,58,0,1483,1484,3,125,62,0,1484,1485,3,135,67,0,1485,1486,5,95,0,0,1486,1487,3,87,43,0,1487,1488,3,91,45,0,1488,1489,3,125,62,0,1489,1490,3,103,51,0,1490,1491,3,115,57,0,1491,1492,3,113,56,0,1492,292,1,0,0,0,1493,1494,3,95,47,0,1494,1495,3,113,56,0,1495,1496,3,91,45,0,1496,1497,3,121,60,0,1497,1498,3,135,67,0,1498,1499,3,117,58,0,1499,1500,3,125,62,0,1500,1501,3,95,47,0,1501,1502,3,93,46,0,1502,294,1,0,0,0,1503,1504,3,95,47,0,1504,1505,3,113,56,0,1505,1506,3,93,46,0,1506,296,1,0,0,0,1507,1508,3,95,47,0,1508,1509,3,113,56,0,1509,1510,3,127,63,0,1510,1511,3,111,55,0,1511,298,1,0,0,0,1512,1513,3,95,47,0,1513,1514,3,121,60,0,1514,1515,3,87,43,0,1515,1516,3,123,61,0,1516,1517,3,95,47,0,1517,300,1,0,0,0,1518,1519,3,95,47,0,1519,1520,3,121,60,0,1520,1521,3,121,60,0,1521,1522,3,115,57,0,1522,1523,3,121,60,0,1523,302,1,0,0,0,1524,1525,3,95,47,0,1525,1526,3,123,61,0,1526,1527,3,91,45,0,1527,1528,3,87,43,0,1528,1529,3,117,58,0,1529,1530,3,95,47,0,1530,304,1,0,0,0,1531,1532,3,95,47,0,1532,1533,3,129,64,0,1533,1534,3,87,43,0,1534,1535,3,109,54,0,1535,1536,3,127,63,0,1536,1537,3,87,43,0,1537,1538,3,125,62,0,1538,1539,3,95,47,0,1539,306,1,0,0,0,1540,1541,3,95,47,0,1541,1542,3,133,66,0,1542,1543,3,91,45,0,1543,1544,3,95,47,0,1544,1545,3,117,58,0,1545,1546,3,125,62,0,1546,308,1,0,0,0,1547,1548,3,95,47,0,1548,1549,3,133,66,0,1549,1550,3,91,45,0,1550,1551,3,109,54,0,1551,1552,3,127,63,0,1552,1553,3,93,46,0,1553,1554,3,95,47,0,1554,310,1,0,0,0,1555,1556,3,95,47,0,1556,1557,3,133,66,0,1557,1558,3,91,45,0,1558,1559,3,109,54,0,1559,1560,3,127,63,0,1560,1561,3,123,61,0,1561,1562,3,103,51,0,1562,1563,3,115,57,0,1563,1564,3,113,56,0,1564,312,1,0,0,0,1565,1566,3,95,47,0,1566,1567,3,133,66,0,1567,1568,3,91,45,0,1568,1569,3,109,54,0,1569,1570,3,127,63,0,1570,1571,3,123,61,0,1571,1572,3,103,51,0,1572,1573,3,129,64,0,1573,1574,3,95,47,0,1574,314,1,0,0,0,1575,1576,3,95,47,0,1576,1577,3,133,66,0,1577,1578,3,103,51,0,1578,1579,3,123,61,0,1579,1580,3,125,62,0,1580,1581,3,123,61,0,1581,316,1,0,0,0,1582,1583,3,95,47,0,1583,1584,3,133,66,0,1584,1585,3,117,58,0,1585,1586,3,109,54,0,1586,1587,3,87,43,0,1587,1588,3,103,51,0,1588,1589,3,113,56,0,1589,318,1,0,0,0,1590,1591,3,95,47,0,1591,1592,3,133,66,0,1592,1593,3,117,58,0,1593,1594,3,115,57,0,1594,1595,3,121,60,0,1595,1596,3,125,62,0,1596,320,1,0,0,0,1597,1598,3,95,47,0,1598,1599,3,133,66,0,1599,1600,3,125,62,0,1600,1601,3,95,47,0,1601,1602,3,121,60,0,1602,1603,3,113,56,0,1603,1604,3,87,43,0,1604,1605,3,109,54,0,1605,322,1,0,0,0,1606,1607,3,97,48,0,1607,1608,3,87,43,0,1608,1609,3,103,51,0,1609,1610,3,109,54,0,1610,324,1,0,0,0,1611,1612,3,97,48,0,1612,1613,3,87,43,0,1613,1614,3,109,54,0,1614,1615,3,123,61,0,1615,1616,3,95,47,0,1616,326,1,0,0,0,1617,1618,3,97,48,0,1618,1619,3,87,43,0,1619,1620,3,111,55,0,1620,1621,3,103,51,0,1621,1622,3,109,54,0,1622,1623,3,135,67,0,1623,328,1,0,0,0,1624,1625,3,97,48,0,1625,1626,3,103,51,0,1626,1627,3,109,54,0,1627,1628,3,125,62,0,1628,1629,3,95,47,0,1629,1630,3,121,60,0,1630,330,1,0,0,0,1631,1632,3,97,48,0,1632,1633,3,103,51,0,1633,1634,3,121,60,0,1634,1635,3,123,61,0,1635,1636,3,125,62,0,1636,332,1,0,0,0,1637,1638,3,97,48,0,1638,1639,3,109,54,0,1639,1640,3,87,43,0,1640,1641,3,125,62,0,1641,1642,3,125,62,0,1642,1643,3,95,47,0,1643,1644,3,113,56,0,1644,334,1,0,0,0,1645,1646,3,97,48,0,1646,1647,3,109,54,0,1647,1648,3,115,57,0,1648,1649,3,131,65,0,1649,336,1,0,0,0,1650,1651,3,97,48,0,1651,1652,3,115,57,0,1652,1653,3,109,54,0,1653,1654,3,109,54,0,1654,1655,3,115,57,0,1655,1656,3,131,65,0,1656,1657,3,103,51,0,1657,1658,3,113,56,0,1658,1659,3,99,49,0,1659,338,1,0,0,0,1660,1661,3,97,48,0,1661,1662,3,115,57,0,1662,1663,3,121,60,0,1663,340,1,0,0,0,1664,1665,3,97,48,0,1665,1666,3,115,57,0,1666,1667,3,121,60,0,1667,1668,3,95,47,0,1668,1669,3,103,51,0,1669,1670,3,99,49,0,1670,1671,3,113,56,0,1671,342,1,0,0,0,1672,1673,3,97,48,0,1673,1674,3,121,60,0,1674,1675,3,115,57,0,1675,1676,3,111,55,0,1676,344,1,0,0,0,1677,1678,3,97,48,0,1678,1679,3,127,63,0,1679,1680,3,109,54,0,1680,1681,3,109,54,0,1681,346,1,0,0,0,1682,1683,3,97,48,0,1683,1684,3,127,63,0,1684,1685,3,113,56,0,1685,1686,3,91,45,0,1686,1687,3,125,62,0,1687,1688,3,103,51,0,1688,1689,3,115,57,0,1689,1690,3,113,56,0,1690,348,1,0,0,0,1691,1692,3,99,49,0,1692,1693,3,109,54,0,1693,1694,3,115,57,0,1694,1695,3,89,44,0,1695,350,1,0,0,0,1696,1697,3,99,49,0,1697,1698,3,109,54,0,1698,1699,3,115,57,0,1699,1700,3,89,44,0,1700,1701,3,87,43,0,1701,1702,3,109,54,0,1702,352,1,0,0,0,1703,1704,3,99,49,0,1704,1705,3,121,60,0,1705,1706,3,87,43,0,1706,1707,3,113,56,0,1707,1708,3,125,62,0,1708,354,1,0,0,0,1709,1710,3,99,49,0,1710,1711,3,121,60,0,1711,1712,3,115,57,0,1712,1713,3,127,63,0,1713,1714,3,117,58,0,1714,356,1,0,0,0,1715,1716,3,99,49,0,1716,1717,3,121,60,0,1717,1718,3,115,57,0,1718,1719,3,127,63,0,1719,1720,3,117,58,0,1720,1721,3,103,51,0,1721,1722,3,113,56,0,1722,1723,3,99,49,0,1723,358,1,0,0,0,1724,1725,3,99,49,0,1725,1726,3,121,60,0,1726,1727,3,115,57,0,1727,1728,3,127,63,0,1728,1729,3,117,58,0,1729,1730,3,123,61,0,1730,360,1,0,0,0,1731,1732,3,101,50,0,1732,1733,3,87,43,0,1733,1734,3,123,61,0,1734,1735,3,101,50,0,1735,362,1,0,0,0,1736,1737,3,101,50,0,1737,1738,3,87,43,0,1738,1739,3,129,64,0,1739,1740,3,103,51,0,1740,1741,3,113,56,0,1741,1742,3,99,49,0,1742,364,1,0,0,0,1743,1744,3,101,50,0,1744,1745,3,115,57,0,1745,1746,3,117,58,0,1746,366,1,0,0,0,1747,1748,3,103,51,0,1748,1749,3,97,48,0,1749,368,1,0,0,0,1750,1751,3,103,51,0,1751,1752,3,99,49,0,1752,1753,3,113,56,0,1753,1754,3,115,57,0,1754,1755,3,121,60,0,1755,1756,3,95,47,0,1756,370,1,0,0,0,1757,1758,3,103,51,0,1758,1759,3,109,54,0,1759,1760,3,103,51,0,1760,1761,3,107,53,0,1761,1762,3,95,47,0,1762,372,1,0,0,0,1763,1764,3,103,51,0,1764,1765,3,111,55,0,1765,1766,3,111,55,0,1766,1767,3,95,47,0,1767,1768,3,93,46,0,1768,1769,3,103,51,0,1769,1770,3,87,43,0,1770,1771,3,125,62,0,1771,1772,3,95,47,0,1772,374,1,0,0,0,1773,1774,3,103,51,0,1774,1775,3,111,55,0,1775,1776,3,117,58,0,1776,1777,3,115,57,0,1777,1778,3,121,60,0,1778,1779,3,125,62,0,1779,376,1,0,0,0,1780,1781,3,103,51,0,1781,1782,3,113,56,0,1782,378,1,0,0,0,1783,1784,3,103,51,0,1784,1785,3,113,56,0,1785,1786,3,91,45,0,1786,1787,3,121,60,0,1787,1788,3,95,47,0,1788,1789,3,111,55,0,1789,1790,3,95,47,0,1790,1791,3,113,56,0,1791,1792,3,125,62,0,1792,1793,3,87,43,0,1793,1794,3,109,54,0,1794,380,1,0,0,0,1795,1796,3,103,51,0,1796,1797,3,113,56,0,1797,1798,3,93,46,0,1798,1799,3,95,47,0,1799,1800,3,133,66,0,1800,382,1,0,0,0,1801,1802,3,103,51,0,1802,1803,3,113,56,0,1803,1804,3,93,46,0,1804,1805,3,95,47,0,1805,1806,3,133,66,0,1806,1807,3,95,47,0,1807,1808,3,93,46,0,1808,384,1,0,0,0,1809,1810,3,103,51,0,1810,1811,3,113,56,0,1811,1812,3,101,50,0,1812,1813,3,95,47,0,1813,1814,3,121,60,0,1814,1815,3,103,51,0,1815,1816,3,125,62,0,1816,1817,3,123,61,0,1817,386,1,0,0,0,1818,1819,3,103,51,0,1819,1820,3,113,56,0,1820,1821,3,103,51,0,1821,1822,3,125,62,0,1822,1823,3,103,51,0,1823,1824,3,87,43,0,1824,1825,3,109,54,0,1825,388,1,0,0,0,1826,1827,3,103,51,0,1827,1828,3,113,56,0,1828,1829,3,103,51,0,1829,1830,3,125,62,0,1830,1831,3,103,51,0,1831,1832,3,87,43,0,1832,1833,3,109,54,0,1833,1834,3,109,54,0,1834,1835,3,135,67,0,1835,390,1,0,0,0,1836,1837,3,103,51,0,1837,1838,3,113,56,0,1838,1839,3,113,56,0,1839,1840,3,95,47,0,1840,1841,3,121,60,0,1841,392,1,0,0,0,1842,1843,3,103,51,0,1843,1844,3,113,56,0,1844,1845,3,123,61,0,1845,1846,3,95,47,0,1846,1847,3,121,60,0,1847,1848,3,125,62,0,1848,394,1,0,0,0,1849,1850,3,103,51,0,1850,1851,3,113,56,0,1851,1852,3,123,61,0,1852,1853,3,125,62,0,1853,1854,3,95,47,0,1854,1855,3,87,43,0,1855,1856,3,93,46,0,1856,396,1,0,0,0,1857,1858,3,103,51,0,1858,1859,3,113,56,0,1859,1860,3,125,62,0,1860,1861,3,95,47,0,1861,1862,3,121,60,0,1862,1863,3,123,61,0,1863,1864,3,95,47,0,1864,1865,3,91,45,0,1865,1866,3,125,62,0,1866,398,1,0,0,0,1867,1868,3,103,51,0,1868,1869,3,113,56,0,1869,1870,3,125,62,0,1870,1871,3,115,57,0,1871,400,1,0,0,0,1872,1873,3,103,51,0,1873,1874,3,123,61,0,1874,402,1,0,0,0,1875,1876,3,103,51,0,1876,1877,3,123,61,0,1877,1878,3,113,56,0,1878,1879,3,127,63,0,1879,1880,3,109,54,0,1880,1881,3,109,54,0,1881,404,1,0,0,0,1882,1883,3,105,52,0,1883,1884,3,115,57,0,1884,1885,3,103,51,0,1885,1886,3,113,56,0,1886,406,1,0,0,0,1887,1888,3,105,52,0,1888,1889,3,123,61,0,1889,1890,3,115,57,0,1890,1891,3,113,56,0,1891,1892,5,95,0,0,1892,1893,3,95,47,0,1893,1894,3,133,66,0,1894,1895,3,103,51,0,1895,1896,3,123,61,0,1896,1897,3,125,62,0,1897,1898,3,123,61,0,1898,408,1,0,0,0,1899,1900,3,105,52,0,1900,1901,3,123,61,0,1901,1902,3,115,57,0,1902,1903,3,113,56,0,1903,1904,5,95,0,0,1904,1905,3,119,59,0,1905,1906,3,127,63,0,1906,1907,3,95,47,0,1907,1908,3,121,60,0,1908,1909,3,135,67,0,1909,410,1,0,0,0,1910,1911,3,105,52,0,1911,1912,3,123,61,0,1912,1913,3,115,57,0,1913,1914,3,113,56,0,1914,1915,5,95,0,0,1915,1916,3,129,64,0,1916,1917,3,87,43,0,1917,1918,3,109,54,0,1918,1919,3,127,63,0,1919,1920,3,95,47,0,1920,412,1,0,0,0,1921,1922,3,107,53,0,1922,1923,3,95,47,0,1923,1924,3,135,67,0,1924,414,1,0,0,0,1925,1926,3,109,54,0,1926,1927,3,87,43,0,1927,1928,3,123,61,0,1928,1929,3,125,62,0,1929,416,1,0,0,0,1930,1931,3,109,54,0,1931,1932,3,95,47,0,1932,1933,3,97,48,0,1933,1934,3,125,62,0,1934,418,1,0,0,0,1935,1936,3,109,54,0,1936,1937,3,95,47,0,1937,1938,3,99,49,0,1938,1939,3,87,43,0,1939,1940,3,91,45,0,1940,1941,3,135,67,0,1941,420,1,0,0,0,1942,1943,3,109,54,0,1943,1944,3,103,51,0,1944,1945,3,107,53,0,1945,1946,3,95,47,0,1946,422,1,0,0,0,1947,1948,3,109,54,0,1948,1949,3,103,51,0,1949,1950,3,111,55,0,1950,1951,3,103,51,0,1951,1952,3,125,62,0,1952,424,1,0,0,0,1953,1954,3,109,54,0,1954,1955,3,103,51,0,1955,1956,3,123,61,0,1956,1957,3,125,62,0,1957,426,1,0,0,0,1958,1959,3,109,54,0,1959,1960,3,115,57,0,1960,1961,3,91,45,0,1961,1962,3,87,43,0,1962,1963,3,109,54,0,1963,428,1,0,0,0,1964,1965,3,111,55,0,1965,1966,3,87,43,0,1966,1967,3,113,56,0,1967,1968,3,87,43,0,1968,1969,3,99,49,0,1969,1970,3,95,47,0,1970,430,1,0,0,0,1971,1972,3,111,55,0,1972,1973,3,87,43,0,1973,1974,3,125,62,0,1974,1975,3,91,45,0,1975,1976,3,101,50,0,1976,432,1,0,0,0,1977,1978,3,111,55,0,1978,1979,3,87,43,0,1979,1980,3,125,62,0,1980,1981,3,91,45,0,1981,1982,3,101,50,0,1982,1983,3,95,47,0,1983,1984,3,123,61,0,1984,434,1,0,0,0,1985,1986,3,111,55,0,1986,1987,3,87,43,0,1987,1988,3,125,62,0,1988,1989,3,91,45,0,1989,1990,3,101,50,0,1990,1991,5,95,0,0,1991,1992,3,121,60,0,1992,1993,3,95,47,0,1993,1994,3,91,45,0,1994,1995,3,115,57,0,1995,1996,3,99,49,0,1996,1997,3,113,56,0,1997,1998,3,103,51,0,1998,1999,3,137,68,0,1999,2e3,3,95,47,0,2e3,436,1,0,0,0,2001,2002,3,111,55,0,2002,2003,3,95,47,0,2003,2004,3,87,43,0,2004,2005,3,123,61,0,2005,2006,3,127,63,0,2006,2007,3,121,60,0,2007,2008,3,95,47,0,2008,2009,3,123,61,0,2009,438,1,0,0,0,2010,2011,3,111,55,0,2011,2012,3,103,51,0,2012,2013,3,91,45,0,2013,2014,3,121,60,0,2014,2015,3,115,57,0,2015,2016,3,123,61,0,2016,2017,3,95,47,0,2017,2018,3,91,45,0,2018,2019,3,115,57,0,2019,2020,3,113,56,0,2020,2021,3,93,46,0,2021,2022,3,123,61,0,2022,440,1,0,0,0,2023,2024,3,111,55,0,2024,2025,3,103,51,0,2025,2026,3,109,54,0,2026,2027,3,109,54,0,2027,2028,3,103,51,0,2028,2029,3,123,61,0,2029,2030,3,95,47,0,2030,2031,3,91,45,0,2031,2032,3,115,57,0,2032,2033,3,113,56,0,2033,2034,3,93,46,0,2034,2035,3,123,61,0,2035,442,1,0,0,0,2036,2037,3,111,55,0,2037,2038,3,115,57,0,2038,2039,3,93,46,0,2039,2040,3,103,51,0,2040,2041,3,97,48,0,2041,2042,3,135,67,0,2042,444,1,0,0,0,2043,2044,3,113,56,0,2044,2045,3,87,43,0,2045,2046,3,113,56,0,2046,2047,3,115,57,0,2047,2048,3,123,61,0,2048,2049,3,95,47,0,2049,2050,3,91,45,0,2050,2051,3,115,57,0,2051,2052,3,113,56,0,2052,2053,3,93,46,0,2053,2054,3,123,61,0,2054,446,1,0,0,0,2055,2056,3,113,56,0,2056,2057,3,87,43,0,2057,2058,3,125,62,0,2058,2059,3,127,63,0,2059,2060,3,121,60,0,2060,2061,3,87,43,0,2061,2062,3,109,54,0,2062,448,1,0,0,0,2063,2064,3,113,56,0,2064,2065,3,95,47,0,2065,2066,3,133,66,0,2066,2067,3,125,62,0,2067,450,1,0,0,0,2068,2069,3,113,56,0,2069,2070,3,115,57,0,2070,452,1,0,0,0,2071,2072,3,113,56,0,2072,2073,3,115,57,0,2073,2074,3,125,62,0,2074,454,1,0,0,0,2075,2076,3,113,56,0,2076,2077,3,115,57,0,2077,2078,3,125,62,0,2078,2079,3,113,56,0,2079,2080,3,127,63,0,2080,2081,3,109,54,0,2081,2082,3,109,54,0,2082,456,1,0,0,0,2083,2084,3,113,56,0,2084,2085,3,127,63,0,2085,2086,3,109,54,0,2086,2087,3,109,54,0,2087,458,1,0,0,0,2088,2089,3,113,56,0,2089,2090,3,127,63,0,2090,2091,3,109,54,0,2091,2092,3,109,54,0,2092,2093,3,123,61,0,2093,460,1,0,0,0,2094,2095,3,115,57,0,2095,2096,3,89,44,0,2096,2097,3,105,52,0,2097,2098,3,95,47,0,2098,2099,3,91,45,0,2099,2100,3,125,62,0,2100,462,1,0,0,0,2101,2102,3,115,57,0,2102,2103,3,97,48,0,2103,464,1,0,0,0,2104,2105,3,115,57,0,2105,2106,3,97,48,0,2106,2107,3,97,48,0,2107,2108,3,123,61,0,2108,2109,3,95,47,0,2109,2110,3,125,62,0,2110,466,1,0,0,0,2111,2112,3,115,57,0,2112,2113,3,111,55,0,2113,2114,3,103,51,0,2114,2115,3,125,62,0,2115,468,1,0,0,0,2116,2117,3,115,57,0,2117,2118,3,113,56,0,2118,470,1,0,0,0,2119,2120,3,115,57,0,2120,2121,3,113,56,0,2121,2122,3,95,47,0,2122,472,1,0,0,0,2123,2124,3,115,57,0,2124,2125,3,113,56,0,2125,2126,3,109,54,0,2126,2127,3,135,67,0,2127,474,1,0,0,0,2128,2129,3,115,57,0,2129,2130,3,117,58,0,2130,2131,3,125,62,0,2131,2132,3,103,51,0,2132,2133,3,115,57,0,2133,2134,3,113,56,0,2134,476,1,0,0,0,2135,2136,3,115,57,0,2136,2137,3,117,58,0,2137,2138,3,125,62,0,2138,2139,3,103,51,0,2139,2140,3,115,57,0,2140,2141,3,113,56,0,2141,2142,3,87,43,0,2142,2143,3,109,54,0,2143,478,1,0,0,0,2144,2145,3,115,57,0,2145,2146,3,121,60,0,2146,480,1,0,0,0,2147,2148,3,115,57,0,2148,2149,3,121,60,0,2149,2150,3,93,46,0,2150,2151,3,95,47,0,2151,2152,3,121,60,0,2152,482,1,0,0,0,2153,2154,3,115,57,0,2154,2155,3,125,62,0,2155,2156,3,101,50,0,2156,2157,3,95,47,0,2157,2158,3,121,60,0,2158,2159,3,123,61,0,2159,484,1,0,0,0,2160,2161,3,115,57,0,2161,2162,3,127,63,0,2162,2163,3,125,62,0,2163,2164,3,95,47,0,2164,2165,3,121,60,0,2165,486,1,0,0,0,2166,2167,3,115,57,0,2167,2168,3,129,64,0,2168,2169,3,95,47,0,2169,2170,3,121,60,0,2170,488,1,0,0,0,2171,2172,3,117,58,0,2172,2173,3,87,43,0,2173,2174,3,121,60,0,2174,2175,3,87,43,0,2175,2176,3,109,54,0,2176,2177,3,109,54,0,2177,2178,3,95,47,0,2178,2179,3,109,54,0,2179,490,1,0,0,0,2180,2181,3,117,58,0,2181,2182,3,87,43,0,2182,2183,3,121,60,0,2183,2184,3,125,62,0,2184,2185,3,103,51,0,2185,2186,3,125,62,0,2186,2187,3,103,51,0,2187,2188,3,115,57,0,2188,2189,3,113,56,0,2189,492,1,0,0,0,2190,2191,3,117,58,0,2191,2192,3,87,43,0,2192,2193,3,123,61,0,2193,2194,3,123,61,0,2194,2195,3,103,51,0,2195,2196,3,113,56,0,2196,2197,3,99,49,0,2197,494,1,0,0,0,2198,2199,3,117,58,0,2199,2200,3,87,43,0,2200,2201,3,123,61,0,2201,2202,3,123,61,0,2202,2203,3,131,65,0,2203,2204,3,115,57,0,2204,2205,3,121,60,0,2205,2206,3,93,46,0,2206,496,1,0,0,0,2207,2208,3,117,58,0,2208,2209,3,87,43,0,2209,2210,3,123,61,0,2210,2211,3,125,62,0,2211,498,1,0,0,0,2212,2213,3,117,58,0,2213,2214,3,87,43,0,2214,2215,3,125,62,0,2215,2216,3,125,62,0,2216,2217,3,95,47,0,2217,2218,3,121,60,0,2218,2219,3,113,56,0,2219,500,1,0,0,0,2220,2221,3,117,58,0,2221,2222,3,95,47,0,2222,2223,3,121,60,0,2223,502,1,0,0,0,2224,2225,3,117,58,0,2225,2226,3,95,47,0,2226,2227,3,121,60,0,2227,2228,3,111,55,0,2228,2229,3,127,63,0,2229,2230,3,125,62,0,2230,2231,3,95,47,0,2231,504,1,0,0,0,2232,2233,3,117,58,0,2233,2234,3,109,54,0,2234,2235,3,87,43,0,2235,2236,3,113,56,0,2236,506,1,0,0,0,2237,2238,3,117,58,0,2238,2239,3,115,57,0,2239,2240,3,115,57,0,2240,2241,3,109,54,0,2241,508,1,0,0,0,2242,2243,3,117,58,0,2243,2244,3,121,60,0,2244,2245,3,87,43,0,2245,2246,3,99,49,0,2246,2247,3,111,55,0,2247,2248,3,87,43,0,2248,510,1,0,0,0,2249,2250,3,117,58,0,2250,2251,3,121,60,0,2251,2252,3,95,47,0,2252,2253,3,91,45,0,2253,2254,3,95,47,0,2254,2255,3,93,46,0,2255,2256,3,103,51,0,2256,2257,3,113,56,0,2257,2258,3,99,49,0,2258,512,1,0,0,0,2259,2260,3,117,58,0,2260,2261,3,121,60,0,2261,2262,3,95,47,0,2262,2263,3,123,61,0,2263,2264,3,115,57,0,2264,2265,3,121,60,0,2265,2266,3,125,62,0,2266,514,1,0,0,0,2267,2268,3,117,58,0,2268,2269,3,121,60,0,2269,2270,3,103,51,0,2270,2271,3,111,55,0,2271,2272,3,87,43,0,2272,2273,3,121,60,0,2273,2274,3,135,67,0,2274,516,1,0,0,0,2275,2276,3,117,58,0,2276,2277,3,121,60,0,2277,2278,3,103,51,0,2278,2279,3,129,64,0,2279,2280,3,103,51,0,2280,2281,3,109,54,0,2281,2282,3,95,47,0,2282,2283,3,99,49,0,2283,2284,3,95,47,0,2284,2285,3,123,61,0,2285,518,1,0,0,0,2286,2287,3,117,58,0,2287,2288,3,121,60,0,2288,2289,3,115,57,0,2289,2290,3,91,45,0,2290,2291,3,95,47,0,2291,2292,3,123,61,0,2292,2293,3,123,61,0,2293,520,1,0,0,0,2294,2295,3,119,59,0,2295,2296,3,127,63,0,2296,2297,3,95,47,0,2297,2298,3,127,63,0,2298,2299,3,95,47,0,2299,522,1,0,0,0,2300,2301,3,121,60,0,2301,2302,3,87,43,0,2302,2303,3,103,51,0,2303,2304,3,123,61,0,2304,2305,3,95,47,0,2305,524,1,0,0,0,2306,2307,3,121,60,0,2307,2308,3,87,43,0,2308,2309,3,113,56,0,2309,2310,3,99,49,0,2310,2311,3,95,47,0,2311,526,1,0,0,0,2312,2313,3,121,60,0,2313,2314,3,95,47,0,2314,2315,3,93,46,0,2315,2316,3,127,63,0,2316,2317,3,91,45,0,2317,2318,3,95,47,0,2318,528,1,0,0,0,2319,2320,3,121,60,0,2320,2321,3,95,47,0,2321,2322,3,97,48,0,2322,2323,3,95,47,0,2323,2324,3,121,60,0,2324,2325,3,95,47,0,2325,2326,3,113,56,0,2326,2327,3,91,45,0,2327,2328,3,95,47,0,2328,2329,3,123,61,0,2329,530,1,0,0,0,2330,2331,3,121,60,0,2331,2332,3,95,47,0,2332,2333,3,99,49,0,2333,2334,3,95,47,0,2334,2335,3,133,66,0,2335,2336,3,117,58,0,2336,532,1,0,0,0,2337,2338,3,121,60,0,2338,2339,3,95,47,0,2339,2340,3,103,51,0,2340,2341,3,113,56,0,2341,2342,3,93,46,0,2342,2343,3,95,47,0,2343,2344,3,133,66,0,2344,534,1,0,0,0,2345,2346,3,121,60,0,2346,2347,3,95,47,0,2347,2348,3,109,54,0,2348,2349,3,95,47,0,2349,2350,3,87,43,0,2350,2351,3,123,61,0,2351,2352,3,95,47,0,2352,536,1,0,0,0,2353,2354,3,121,60,0,2354,2355,3,95,47,0,2355,2356,3,111,55,0,2356,2357,3,115,57,0,2357,2358,3,129,64,0,2358,2359,3,95,47,0,2359,538,1,0,0,0,2360,2361,3,121,60,0,2361,2362,3,95,47,0,2362,2363,3,113,56,0,2363,2364,3,87,43,0,2364,2365,3,111,55,0,2365,2366,3,95,47,0,2366,540,1,0,0,0,2367,2368,3,121,60,0,2368,2369,3,95,47,0,2369,2370,3,117,58,0,2370,2371,3,95,47,0,2371,2372,3,87,43,0,2372,2373,3,125,62,0,2373,2374,3,87,43,0,2374,2375,3,89,44,0,2375,2376,3,109,54,0,2376,2377,3,95,47,0,2377,542,1,0,0,0,2378,2379,3,121,60,0,2379,2380,3,95,47,0,2380,2381,3,117,58,0,2381,2382,3,109,54,0,2382,2383,3,87,43,0,2383,2384,3,91,45,0,2384,2385,3,95,47,0,2385,544,1,0,0,0,2386,2387,3,121,60,0,2387,2388,3,95,47,0,2388,2389,3,117,58,0,2389,2390,3,109,54,0,2390,2391,3,103,51,0,2391,2392,3,91,45,0,2392,2393,3,87,43,0,2393,2394,3,125,62,0,2394,2395,3,103,51,0,2395,2396,3,115,57,0,2396,2397,3,113,56,0,2397,546,1,0,0,0,2398,2399,3,121,60,0,2399,2400,3,95,47,0,2400,2401,3,123,61,0,2401,2402,3,95,47,0,2402,2403,3,125,62,0,2403,548,1,0,0,0,2404,2405,3,121,60,0,2405,2406,3,95,47,0,2406,2407,3,123,61,0,2407,2408,3,115,57,0,2408,2409,3,127,63,0,2409,2410,3,121,60,0,2410,2411,3,91,45,0,2411,2412,3,95,47,0,2412,550,1,0,0,0,2413,2414,3,121,60,0,2414,2415,3,95,47,0,2415,2416,3,123,61,0,2416,2417,3,117,58,0,2417,2418,3,95,47,0,2418,2419,3,91,45,0,2419,2420,3,125,62,0,2420,552,1,0,0,0,2421,2422,3,121,60,0,2422,2423,3,95,47,0,2423,2424,3,123,61,0,2424,2425,3,125,62,0,2425,2426,3,115,57,0,2426,2427,3,121,60,0,2427,2428,3,95,47,0,2428,554,1,0,0,0,2429,2430,3,121,60,0,2430,2431,3,95,47,0,2431,2432,3,123,61,0,2432,2433,3,125,62,0,2433,2434,3,121,60,0,2434,2435,3,103,51,0,2435,2436,3,91,45,0,2436,2437,3,125,62,0,2437,556,1,0,0,0,2438,2439,3,121,60,0,2439,2440,3,95,47,0,2440,2441,3,123,61,0,2441,2442,3,127,63,0,2442,2443,3,109,54,0,2443,2444,3,125,62,0,2444,558,1,0,0,0,2445,2446,3,121,60,0,2446,2447,3,95,47,0,2447,2448,3,125,62,0,2448,2449,3,127,63,0,2449,2450,3,121,60,0,2450,2451,3,113,56,0,2451,560,1,0,0,0,2452,2453,3,121,60,0,2453,2454,3,95,47,0,2454,2455,3,125,62,0,2455,2456,3,127,63,0,2456,2457,3,121,60,0,2457,2458,3,113,56,0,2458,2459,3,103,51,0,2459,2460,3,113,56,0,2460,2461,3,99,49,0,2461,562,1,0,0,0,2462,2463,3,121,60,0,2463,2464,3,95,47,0,2464,2465,3,129,64,0,2465,2466,3,95,47,0,2466,2467,3,121,60,0,2467,2468,3,125,62,0,2468,564,1,0,0,0,2469,2470,3,121,60,0,2470,2471,3,95,47,0,2471,2472,3,129,64,0,2472,2473,3,115,57,0,2473,2474,3,107,53,0,2474,2475,3,95,47,0,2475,566,1,0,0,0,2476,2477,3,121,60,0,2477,2478,3,103,51,0,2478,2479,3,99,49,0,2479,2480,3,101,50,0,2480,2481,3,125,62,0,2481,568,1,0,0,0,2482,2483,3,121,60,0,2483,2484,3,109,54,0,2484,2485,3,103,51,0,2485,2486,3,107,53,0,2486,2487,3,95,47,0,2487,570,1,0,0,0,2488,2489,3,121,60,0,2489,2490,3,115,57,0,2490,2491,3,109,54,0,2491,2492,3,109,54,0,2492,2493,3,89,44,0,2493,2494,3,87,43,0,2494,2495,3,91,45,0,2495,2496,3,107,53,0,2496,572,1,0,0,0,2497,2498,3,121,60,0,2498,2499,3,115,57,0,2499,2500,3,109,54,0,2500,2501,3,109,54,0,2501,2502,3,127,63,0,2502,2503,3,117,58,0,2503,574,1,0,0,0,2504,2505,3,121,60,0,2505,2506,3,115,57,0,2506,2507,3,131,65,0,2507,576,1,0,0,0,2508,2509,3,121,60,0,2509,2510,3,115,57,0,2510,2511,3,131,65,0,2511,2512,3,123,61,0,2512,578,1,0,0,0,2513,2514,3,123,61,0,2514,2515,3,87,43,0,2515,2516,3,111,55,0,2516,2517,3,117,58,0,2517,2518,3,109,54,0,2518,2519,3,95,47,0,2519,580,1,0,0,0,2520,2521,3,123,61,0,2521,2522,3,87,43,0,2522,2523,3,129,64,0,2523,2524,3,95,47,0,2524,2525,3,117,58,0,2525,2526,3,115,57,0,2526,2527,3,103,51,0,2527,2528,3,113,56,0,2528,2529,3,125,62,0,2529,582,1,0,0,0,2530,2531,3,123,61,0,2531,2532,3,91,45,0,2532,2533,3,101,50,0,2533,2534,3,95,47,0,2534,2535,3,111,55,0,2535,2536,3,87,43,0,2536,584,1,0,0,0,2537,2538,3,123,61,0,2538,2539,3,95,47,0,2539,2540,3,91,45,0,2540,2541,3,115,57,0,2541,2542,3,113,56,0,2542,2543,3,93,46,0,2543,2544,3,123,61,0,2544,586,1,0,0,0,2545,2546,3,123,61,0,2546,2547,3,95,47,0,2547,2548,3,95,47,0,2548,2549,3,107,53,0,2549,588,1,0,0,0,2550,2551,3,123,61,0,2551,2552,3,95,47,0,2552,2553,3,109,54,0,2553,2554,3,95,47,0,2554,2555,3,91,45,0,2555,2556,3,125,62,0,2556,590,1,0,0,0,2557,2558,3,123,61,0,2558,2559,3,95,47,0,2559,2560,3,111,55,0,2560,2561,3,103,51,0,2561,592,1,0,0,0,2562,2563,3,123,61,0,2563,2564,3,95,47,0,2564,2565,3,125,62,0,2565,594,1,0,0,0,2566,2567,3,123,61,0,2567,2568,3,95,47,0,2568,2569,3,125,62,0,2569,2570,3,123,61,0,2570,596,1,0,0,0,2571,2572,3,123,61,0,2572,2573,3,101,50,0,2573,2574,3,115,57,0,2574,2575,3,131,65,0,2575,598,1,0,0,0,2576,2577,3,123,61,0,2577,2578,3,107,53,0,2578,2579,3,103,51,0,2579,2580,3,117,58,0,2580,600,1,0,0,0,2581,2582,3,123,61,0,2582,2583,3,115,57,0,2583,2584,3,127,63,0,2584,2585,3,121,60,0,2585,2586,3,91,45,0,2586,2587,3,95,47,0,2587,602,1,0,0,0,2588,2589,3,123,61,0,2589,2590,3,125,62,0,2590,2591,3,121,60,0,2591,2592,3,95,47,0,2592,2593,3,87,43,0,2593,2594,3,111,55,0,2594,604,1,0,0,0,2595,2596,3,123,61,0,2596,2597,3,125,62,0,2597,2598,3,121,60,0,2598,2599,3,127,63,0,2599,2600,3,91,45,0,2600,2601,3,125,62,0,2601,606,1,0,0,0,2602,2603,3,123,61,0,2603,2604,3,127,63,0,2604,2605,3,89,44,0,2605,2606,3,119,59,0,2606,2607,3,127,63,0,2607,2608,3,95,47,0,2608,2609,3,121,60,0,2609,2610,3,135,67,0,2610,608,1,0,0,0,2611,2612,3,123,61,0,2612,2613,3,127,63,0,2613,2614,3,89,44,0,2614,2615,3,123,61,0,2615,2616,3,95,47,0,2616,2617,3,125,62,0,2617,610,1,0,0,0,2618,2619,3,123,61,0,2619,2620,3,135,67,0,2620,2621,3,111,55,0,2621,2622,3,89,44,0,2622,2623,3,115,57,0,2623,2624,3,109,54,0,2624,2625,3,123,61,0,2625,612,1,0,0,0,2626,2627,3,123,61,0,2627,2628,3,135,67,0,2628,2629,3,111,55,0,2629,2630,3,111,55,0,2630,2631,3,95,47,0,2631,2632,3,125,62,0,2632,2633,3,121,60,0,2633,2634,3,103,51,0,2634,2635,3,91,45,0,2635,614,1,0,0,0,2636,2637,3,123,61,0,2637,2638,3,135,67,0,2638,2639,3,113,56,0,2639,2640,3,91,45,0,2640,616,1,0,0,0,2641,2642,3,123,61,0,2642,2643,3,135,67,0,2643,2644,3,123,61,0,2644,2645,3,125,62,0,2645,2646,3,95,47,0,2646,2647,3,111,55,0,2647,618,1,0,0,0,2648,2649,3,125,62,0,2649,2650,3,87,43,0,2650,2651,3,89,44,0,2651,2652,3,109,54,0,2652,2653,3,95,47,0,2653,620,1,0,0,0,2654,2655,3,125,62,0,2655,2656,3,87,43,0,2656,2657,3,89,44,0,2657,2658,3,109,54,0,2658,2659,3,95,47,0,2659,2660,3,123,61,0,2660,622,1,0,0,0,2661,2662,3,125,62,0,2662,2663,3,87,43,0,2663,2664,3,89,44,0,2664,2665,3,109,54,0,2665,2666,3,95,47,0,2666,2667,3,123,61,0,2667,2668,3,87,43,0,2668,2669,3,111,55,0,2669,2670,3,117,58,0,2670,2671,3,109,54,0,2671,2672,3,95,47,0,2672,624,1,0,0,0,2673,2674,3,125,62,0,2674,2675,3,87,43,0,2675,2676,3,89,44,0,2676,2677,3,109,54,0,2677,2678,3,95,47,0,2678,2679,3,123,61,0,2679,2680,3,125,62,0,2680,2681,3,115,57,0,2681,2682,3,121,60,0,2682,2683,3,95,47,0,2683,626,1,0,0,0,2684,2685,3,125,62,0,2685,2686,3,87,43,0,2686,2687,3,99,49,0,2687,2688,3,99,49,0,2688,2689,3,95,47,0,2689,2690,3,93,46,0,2690,628,1,0,0,0,2691,2692,3,125,62,0,2692,2693,3,95,47,0,2693,2694,3,111,55,0,2694,2695,3,117,58,0,2695,630,1,0,0,0,2696,2697,3,125,62,0,2697,2698,3,95,47,0,2698,2699,3,111,55,0,2699,2700,3,117,58,0,2700,2701,3,115,57,0,2701,2702,3,121,60,0,2702,2703,3,87,43,0,2703,2704,3,121,60,0,2704,2705,3,135,67,0,2705,632,1,0,0,0,2706,2707,3,125,62,0,2707,2708,3,101,50,0,2708,2709,3,95,47,0,2709,2710,3,113,56,0,2710,634,1,0,0,0,2711,2712,3,125,62,0,2712,2713,3,103,51,0,2713,2714,3,95,47,0,2714,2715,3,123,61,0,2715,636,1,0,0,0,2716,2717,3,125,62,0,2717,2718,3,115,57,0,2718,638,1,0,0,0,2719,2720,3,125,62,0,2720,2721,3,115,57,0,2721,2722,3,117,58,0,2722,2723,3,103,51,0,2723,2724,3,91,45,0,2724,640,1,0,0,0,2725,2726,3,125,62,0,2726,2727,3,121,60,0,2727,2728,3,87,43,0,2728,2729,3,113,56,0,2729,2730,3,123,61,0,2730,2731,3,87,43,0,2731,2732,3,91,45,0,2732,2733,3,125,62,0,2733,2734,3,103,51,0,2734,2735,3,115,57,0,2735,2736,3,113,56,0,2736,642,1,0,0,0,2737,2738,3,125,62,0,2738,2739,3,121,60,0,2739,2740,3,103,51,0,2740,2741,3,99,49,0,2741,2742,3,99,49,0,2742,2743,3,95,47,0,2743,2744,3,121,60,0,2744,644,1,0,0,0,2745,2746,3,125,62,0,2746,2747,3,121,60,0,2747,2748,3,127,63,0,2748,2749,3,95,47,0,2749,646,1,0,0,0,2750,2751,3,125,62,0,2751,2752,3,127,63,0,2752,2753,3,117,58,0,2753,2754,3,109,54,0,2754,2755,3,95,47,0,2755,648,1,0,0,0,2756,2757,3,125,62,0,2757,2758,3,135,67,0,2758,2759,3,117,58,0,2759,2760,3,95,47,0,2760,650,1,0,0,0,2761,2762,3,127,63,0,2762,2763,3,113,56,0,2763,2764,3,89,44,0,2764,2765,3,115,57,0,2765,2766,3,127,63,0,2766,2767,3,113,56,0,2767,2768,3,93,46,0,2768,2769,3,95,47,0,2769,2770,3,93,46,0,2770,652,1,0,0,0,2771,2772,3,127,63,0,2772,2773,3,113,56,0,2773,2774,3,91,45,0,2774,2775,3,115,57,0,2775,2776,3,113,56,0,2776,2777,3,93,46,0,2777,2778,3,103,51,0,2778,2779,3,125,62,0,2779,2780,3,103,51,0,2780,2781,3,115,57,0,2781,2782,3,113,56,0,2782,2783,3,87,43,0,2783,2784,3,109,54,0,2784,654,1,0,0,0,2785,2786,3,127,63,0,2786,2787,3,113,56,0,2787,2788,3,103,51,0,2788,2789,3,115,57,0,2789,2790,3,113,56,0,2790,656,1,0,0,0,2791,2792,3,127,63,0,2792,2793,3,113,56,0,2793,2794,3,103,51,0,2794,2795,3,119,59,0,2795,2796,3,127,63,0,2796,2797,3,95,47,0,2797,658,1,0,0,0,2798,2799,3,127,63,0,2799,2800,3,113,56,0,2800,2801,3,107,53,0,2801,2802,3,113,56,0,2802,2803,3,115,57,0,2803,2804,3,131,65,0,2804,2805,3,113,56,0,2805,660,1,0,0,0,2806,2807,3,127,63,0,2807,2808,3,113,56,0,2808,2809,3,111,55,0,2809,2810,3,87,43,0,2810,2811,3,125,62,0,2811,2812,3,91,45,0,2812,2813,3,101,50,0,2813,2814,3,95,47,0,2814,2815,3,93,46,0,2815,662,1,0,0,0,2816,2817,3,127,63,0,2817,2818,3,117,58,0,2818,2819,3,93,46,0,2819,2820,3,87,43,0,2820,2821,3,125,62,0,2821,2822,3,95,47,0,2822,664,1,0,0,0,2823,2824,3,127,63,0,2824,2825,3,117,58,0,2825,2826,3,123,61,0,2826,2827,3,95,47,0,2827,2828,3,121,60,0,2828,2829,3,125,62,0,2829,666,1,0,0,0,2830,2831,3,127,63,0,2831,2832,3,123,61,0,2832,2833,3,95,47,0,2833,668,1,0,0,0,2834,2835,3,127,63,0,2835,2836,3,123,61,0,2836,2837,3,95,47,0,2837,2838,3,121,60,0,2838,670,1,0,0,0,2839,2840,3,127,63,0,2840,2841,3,123,61,0,2841,2842,3,103,51,0,2842,2843,3,113,56,0,2843,2844,3,99,49,0,2844,672,1,0,0,0,2845,2846,3,129,64,0,2846,2847,3,87,43,0,2847,2848,3,91,45,0,2848,2849,3,127,63,0,2849,2850,3,127,63,0,2850,2851,3,111,55,0,2851,674,1,0,0,0,2852,2853,3,129,64,0,2853,2854,3,87,43,0,2854,2855,3,109,54,0,2855,2856,3,127,63,0,2856,2857,3,95,47,0,2857,2858,3,123,61,0,2858,676,1,0,0,0,2859,2860,3,129,64,0,2860,2861,3,87,43,0,2861,2862,3,121,60,0,2862,2863,3,103,51,0,2863,2864,3,87,43,0,2864,2865,3,113,56,0,2865,2866,3,125,62,0,2866,678,1,0,0,0,2867,2868,3,129,64,0,2868,2869,3,103,51,0,2869,2870,3,95,47,0,2870,2871,3,131,65,0,2871,680,1,0,0,0,2872,2873,3,129,64,0,2873,2874,3,103,51,0,2874,2875,3,121,60,0,2875,2876,3,125,62,0,2876,2877,3,127,63,0,2877,2878,3,87,43,0,2878,2879,3,109,54,0,2879,682,1,0,0,0,2880,2881,3,131,65,0,2881,2882,3,101,50,0,2882,2883,3,95,47,0,2883,2884,3,113,56,0,2884,684,1,0,0,0,2885,2886,3,131,65,0,2886,2887,3,101,50,0,2887,2888,3,95,47,0,2888,2889,3,121,60,0,2889,2890,3,95,47,0,2890,686,1,0,0,0,2891,2892,3,131,65,0,2892,2893,3,103,51,0,2893,2894,3,113,56,0,2894,2895,3,93,46,0,2895,2896,3,115,57,0,2896,2897,3,131,65,0,2897,688,1,0,0,0,2898,2899,3,131,65,0,2899,2900,3,103,51,0,2900,2901,3,125,62,0,2901,2902,3,101,50,0,2902,690,1,0,0,0,2903,2904,3,131,65,0,2904,2905,3,103,51,0,2905,2906,3,125,62,0,2906,2907,3,101,50,0,2907,2908,3,115,57,0,2908,2909,3,127,63,0,2909,2910,3,125,62,0,2910,692,1,0,0,0,2911,2912,3,131,65,0,2912,2913,3,121,60,0,2913,2914,3,87,43,0,2914,2915,3,117,58,0,2915,2916,3,117,58,0,2916,2917,3,95,47,0,2917,2918,3,121,60,0,2918,694,1,0,0,0,2919,2920,3,133,66,0,2920,2921,3,115,57,0,2921,2922,3,121,60,0,2922,696,1,0,0,0,2923,2928,8,26,0,0,2924,2925,3,79,39,0,2925,2926,9,0,0,0,2926,2928,1,0,0,0,2927,2923,1,0,0,0,2927,2924,1,0,0,0,2928,698,1,0,0,0,2929,2934,8,27,0,0,2930,2931,3,79,39,0,2931,2932,9,0,0,0,2932,2934,1,0,0,0,2933,2929,1,0,0,0,2933,2930,1,0,0,0,2934,700,1,0,0,0,2935,2939,3,83,41,0,2936,2938,3,697,348,0,2937,2936,1,0,0,0,2938,2941,1,0,0,0,2939,2937,1,0,0,0,2939,2940,1,0,0,0,2940,2942,1,0,0,0,2941,2939,1,0,0,0,2942,2943,3,83,41,0,2943,702,1,0,0,0,2944,2948,3,81,40,0,2945,2947,3,699,349,0,2946,2945,1,0,0,0,2947,2950,1,0,0,0,2948,2946,1,0,0,0,2948,2949,1,0,0,0,2949,2951,1,0,0,0,2950,2948,1,0,0,0,2951,2952,3,81,40,0,2952,704,1,0,0,0,2953,2957,3,61,30,0,2954,2956,9,0,0,0,2955,2954,1,0,0,0,2956,2959,1,0,0,0,2957,2958,1,0,0,0,2957,2955,1,0,0,0,2958,2960,1,0,0,0,2959,2957,1,0,0,0,2960,2961,3,61,30,0,2961,2963,1,0,0,0,2962,2953,1,0,0,0,2963,2964,1,0,0,0,2964,2962,1,0,0,0,2964,2965,1,0,0,0,2965,2967,1,0,0,0,2966,2968,3,59,29,0,2967,2966,1,0,0,0,2967,2968,1,0,0,0,2968,706,1,0,0,0,2969,2973,3,701,350,0,2970,2973,3,703,351,0,2971,2973,3,705,352,0,2972,2969,1,0,0,0,2972,2970,1,0,0,0,2972,2971,1,0,0,0,2973,2984,1,0,0,0,2974,2985,3,123,61,0,2975,2985,3,127,63,0,2976,2985,3,135,67,0,2977,2985,3,105,52,0,2978,2982,3,117,58,0,2979,2983,3,125,62,0,2980,2983,3,89,44,0,2981,2983,3,129,64,0,2982,2979,1,0,0,0,2982,2980,1,0,0,0,2982,2981,1,0,0,0,2982,2983,1,0,0,0,2983,2985,1,0,0,0,2984,2974,1,0,0,0,2984,2975,1,0,0,0,2984,2976,1,0,0,0,2984,2977,1,0,0,0,2984,2978,1,0,0,0,2984,2985,1,0,0,0,2985,708,1,0,0,0,2986,2991,7,28,0,0,2987,2990,7,28,0,0,2988,2990,3,715,357,0,2989,2987,1,0,0,0,2989,2988,1,0,0,0,2990,2993,1,0,0,0,2991,2989,1,0,0,0,2991,2992,1,0,0,0,2992,710,1,0,0,0,2993,2991,1,0,0,0,2994,2995,5,92,0,0,2995,3e3,9,0,0,0,2996,2997,5,96,0,0,2997,3e3,5,96,0,0,2998,3e3,8,29,0,0,2999,2994,1,0,0,0,2999,2996,1,0,0,0,2999,2998,1,0,0,0,3e3,712,1,0,0,0,3001,3005,3,85,42,0,3002,3004,3,711,355,0,3003,3002,1,0,0,0,3004,3007,1,0,0,0,3005,3003,1,0,0,0,3005,3006,1,0,0,0,3006,3008,1,0,0,0,3007,3005,1,0,0,0,3008,3009,3,85,42,0,3009,714,1,0,0,0,3010,3011,2,48,57,0,3011,716,1,0,0,0,3012,3013,7,30,0,0,3013,718,1,0,0,0,3014,3015,5,48,0,0,3015,3017,3,133,66,0,3016,3018,3,717,358,0,3017,3016,1,0,0,0,3018,3019,1,0,0,0,3019,3017,1,0,0,0,3019,3020,1,0,0,0,3020,720,1,0,0,0,3021,3022,5,48,0,0,3022,3024,3,115,57,0,3023,3025,2,48,56,0,3024,3023,1,0,0,0,3025,3026,1,0,0,0,3026,3024,1,0,0,0,3026,3027,1,0,0,0,3027,722,1,0,0,0,3028,3029,5,48,0,0,3029,3031,3,89,44,0,3030,3032,2,48,49,0,3031,3030,1,0,0,0,3032,3033,1,0,0,0,3033,3031,1,0,0,0,3033,3034,1,0,0,0,3034,724,1,0,0,0,3035,3037,3,715,357,0,3036,3035,1,0,0,0,3037,3038,1,0,0,0,3038,3036,1,0,0,0,3038,3039,1,0,0,0,3039,726,1,0,0,0,3040,3045,3,725,362,0,3041,3045,3,719,359,0,3042,3045,3,721,360,0,3043,3045,3,723,361,0,3044,3040,1,0,0,0,3044,3041,1,0,0,0,3044,3042,1,0,0,0,3044,3043,1,0,0,0,3045,728,1,0,0,0,3046,3049,3,727,363,0,3047,3050,3,117,58,0,3048,3050,3,127,63,0,3049,3047,1,0,0,0,3049,3048,1,0,0,0,3049,3050,1,0,0,0,3050,3057,1,0,0,0,3051,3058,3,109,54,0,3052,3058,3,123,61,0,3053,3058,3,125,62,0,3054,3058,3,103,51,0,3055,3058,3,89,44,0,3056,3058,3,113,56,0,3057,3051,1,0,0,0,3057,3052,1,0,0,0,3057,3053,1,0,0,0,3057,3054,1,0,0,0,3057,3055,1,0,0,0,3057,3056,1,0,0,0,3057,3058,1,0,0,0,3058,730,1,0,0,0,3059,3062,3,95,47,0,3060,3063,3,33,16,0,3061,3063,3,35,17,0,3062,3060,1,0,0,0,3062,3061,1,0,0,0,3062,3063,1,0,0,0,3063,3064,1,0,0,0,3064,3065,3,725,362,0,3065,732,1,0,0,0,3066,3067,3,725,362,0,3067,3071,3,47,23,0,3068,3070,3,715,357,0,3069,3068,1,0,0,0,3070,3073,1,0,0,0,3071,3069,1,0,0,0,3071,3072,1,0,0,0,3072,3075,1,0,0,0,3073,3071,1,0,0,0,3074,3076,3,731,365,0,3075,3074,1,0,0,0,3075,3076,1,0,0,0,3076,3081,1,0,0,0,3077,3078,3,725,362,0,3078,3079,3,731,365,0,3079,3081,1,0,0,0,3080,3066,1,0,0,0,3080,3077,1,0,0,0,3081,3090,1,0,0,0,3082,3091,3,97,48,0,3083,3088,3,117,58,0,3084,3085,3,97,48,0,3085,3086,7,31,0,0,3086,3089,1,0,0,0,3087,3089,3,113,56,0,3088,3084,1,0,0,0,3088,3087,1,0,0,0,3088,3089,1,0,0,0,3089,3091,1,0,0,0,3090,3082,1,0,0,0,3090,3083,1,0,0,0,3090,3091,1,0,0,0,3091,734,1,0,0,0,3092,3093,3,133,66,0,3093,3095,3,83,41,0,3094,3096,3,717,358,0,3095,3094,1,0,0,0,3096,3097,1,0,0,0,3097,3095,1,0,0,0,3097,3098,1,0,0,0,3098,3099,1,0,0,0,3099,3100,3,83,41,0,3100,736,1,0,0,0,3101,3102,7,16,0,0,3102,738,1,0,0,0,3103,3104,7,20,0,0,3104,740,1,0,0,0,3105,3106,7,4,0,0,3106,742,1,0,0,0,3107,3108,7,17,0,0,3108,744,1,0,0,0,3109,3110,7,24,0,0,3110,746,1,0,0,0,3111,3112,5,47,0,0,3112,3113,5,42,0,0,3113,3117,1,0,0,0,3114,3116,9,0,0,0,3115,3114,1,0,0,0,3116,3119,1,0,0,0,3117,3118,1,0,0,0,3117,3115,1,0,0,0,3118,3120,1,0,0,0,3119,3117,1,0,0,0,3120,3121,5,42,0,0,3121,3122,5,47,0,0,3122,748,1,0,0,0,3123,3124,5,45,0,0,3124,3125,5,45,0,0,3125,3129,1,0,0,0,3126,3128,8,32,0,0,3127,3126,1,0,0,0,3128,3131,1,0,0,0,3129,3127,1,0,0,0,3129,3130,1,0,0,0,3130,3137,1,0,0,0,3131,3129,1,0,0,0,3132,3134,5,13,0,0,3133,3135,5,10,0,0,3134,3133,1,0,0,0,3134,3135,1,0,0,0,3135,3138,1,0,0,0,3136,3138,7,33,0,0,3137,3132,1,0,0,0,3137,3136,1,0,0,0,3138,750,1,0,0,0,3139,3140,7,34,0,0,3140,3141,1,0,0,0,3141,3142,6,375,0,0,3142,752,1,0,0,0,3143,3146,3,747,373,0,3144,3146,3,749,374,0,3145,3143,1,0,0,0,3145,3144,1,0,0,0,3146,3147,1,0,0,0,3147,3148,6,376,1,0,3148,754,1,0,0,0,34,0,2927,2933,2939,2948,2957,2964,2967,2972,2982,2984,2989,2991,2999,3005,3019,3026,3033,3038,3044,3049,3057,3062,3071,3075,3080,3088,3090,3097,3117,3129,3134,3137,3145,2,0,1,0,6,0,0]}static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static{this.vocabulary=new f(e.literalNames,e.symbolicNames,[])}get vocabulary(){return e.vocabulary}static{this.decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))}},rs=class e extends Gt{static{Si(this,"YQLParser")}static{this.QUERY=1}static{this.EQUALS=2}static{this.EQUALS2=3}static{this.NOT_EQUALS=4}static{this.NOT_EQUALS2=5}static{this.LESS=6}static{this.LESS_OR_EQ=7}static{this.GREATER=8}static{this.GREATER_OR_EQ=9}static{this.SHIFT_LEFT=10}static{this.ROT_LEFT=11}static{this.AMPERSAND=12}static{this.PIPE=13}static{this.DOUBLE_PIPE=14}static{this.STRUCT_OPEN=15}static{this.STRUCT_CLOSE=16}static{this.PLUS=17}static{this.MINUS=18}static{this.TILDA=19}static{this.ASTERISK=20}static{this.SLASH=21}static{this.PERCENT=22}static{this.SEMICOLON=23}static{this.DOT=24}static{this.COMMA=25}static{this.LPAREN=26}static{this.RPAREN=27}static{this.QUESTION=28}static{this.COLON=29}static{this.COMMAT=30}static{this.DOUBLE_COMMAT=31}static{this.DOLLAR=32}static{this.LBRACE_CURLY=33}static{this.RBRACE_CURLY=34}static{this.CARET=35}static{this.NAMESPACE=36}static{this.ARROW=37}static{this.RBRACE_SQUARE=38}static{this.LBRACE_SQUARE=39}static{this.ABORT=40}static{this.ACTION=41}static{this.ADD=42}static{this.AFTER=43}static{this.ALL=44}static{this.ALTER=45}static{this.ANALYZE=46}static{this.AND=47}static{this.ANSI=48}static{this.ANY=49}static{this.ARRAY=50}static{this.AS=51}static{this.ASC=52}static{this.ASSUME=53}static{this.ASYMMETRIC=54}static{this.ASYNC=55}static{this.AT=56}static{this.ATTACH=57}static{this.ATTRIBUTES=58}static{this.AUTOINCREMENT=59}static{this.AUTOMAP=60}static{this.BACKUP=61}static{this.COLLECTION=62}static{this.BEFORE=63}static{this.BEGIN=64}static{this.BERNOULLI=65}static{this.BETWEEN=66}static{this.BITCAST=67}static{this.BY=68}static{this.CALLABLE=69}static{this.CASCADE=70}static{this.CASE=71}static{this.CAST=72}static{this.CHANGEFEED=73}static{this.CHECK=74}static{this.CLASSIFIER=75}static{this.COLLATE=76}static{this.COLUMN=77}static{this.COLUMNS=78}static{this.COMMIT=79}static{this.COMPACT=80}static{this.CONDITIONAL=81}static{this.CONFLICT=82}static{this.CONNECT=83}static{this.CONSTRAINT=84}static{this.CONSUMER=85}static{this.COVER=86}static{this.CREATE=87}static{this.CROSS=88}static{this.CUBE=89}static{this.CURRENT=90}static{this.CURRENT_DATE=91}static{this.CURRENT_TIME=92}static{this.CURRENT_TIMESTAMP=93}static{this.DATA=94}static{this.DATABASE=95}static{this.DECIMAL=96}static{this.DECLARE=97}static{this.DEFAULT=98}static{this.DEFERRABLE=99}static{this.DEFERRED=100}static{this.DEFINE=101}static{this.DELETE=102}static{this.DESC=103}static{this.DESCRIBE=104}static{this.DETACH=105}static{this.DICT=106}static{this.DIRECTORY=107}static{this.DISABLE=108}static{this.DISCARD=109}static{this.DISTINCT=110}static{this.DO=111}static{this.DROP=112}static{this.EACH=113}static{this.ELSE=114}static{this.EMPTY=115}static{this.EMPTY_ACTION=116}static{this.ENCRYPTED=117}static{this.END=118}static{this.ENUM=119}static{this.ERASE=120}static{this.ERROR=121}static{this.ESCAPE=122}static{this.EVALUATE=123}static{this.EXCEPT=124}static{this.EXCLUDE=125}static{this.EXCLUSION=126}static{this.EXCLUSIVE=127}static{this.EXISTS=128}static{this.EXPLAIN=129}static{this.EXPORT=130}static{this.EXTERNAL=131}static{this.FAIL=132}static{this.FALSE=133}static{this.FAMILY=134}static{this.FILTER=135}static{this.FIRST=136}static{this.FLATTEN=137}static{this.FLOW=138}static{this.FOLLOWING=139}static{this.FOR=140}static{this.FOREIGN=141}static{this.FROM=142}static{this.FULL=143}static{this.FUNCTION=144}static{this.GLOB=145}static{this.GLOBAL=146}static{this.GRANT=147}static{this.GROUP=148}static{this.GROUPING=149}static{this.GROUPS=150}static{this.HASH=151}static{this.HAVING=152}static{this.HOP=153}static{this.IF=154}static{this.IGNORE=155}static{this.ILIKE=156}static{this.IMMEDIATE=157}static{this.IMPORT=158}static{this.IN=159}static{this.INCREMENTAL=160}static{this.INDEX=161}static{this.INDEXED=162}static{this.INHERITS=163}static{this.INITIAL=164}static{this.INITIALLY=165}static{this.INNER=166}static{this.INSERT=167}static{this.INSTEAD=168}static{this.INTERSECT=169}static{this.INTO=170}static{this.IS=171}static{this.ISNULL=172}static{this.JOIN=173}static{this.JSON_EXISTS=174}static{this.JSON_QUERY=175}static{this.JSON_VALUE=176}static{this.KEY=177}static{this.LAST=178}static{this.LEFT=179}static{this.LEGACY=180}static{this.LIKE=181}static{this.LIMIT=182}static{this.LIST=183}static{this.LOCAL=184}static{this.MANAGE=185}static{this.MATCH=186}static{this.MATCHES=187}static{this.MATCH_RECOGNIZE=188}static{this.MEASURES=189}static{this.MICROSECONDS=190}static{this.MILLISECONDS=191}static{this.MODIFY=192}static{this.NANOSECONDS=193}static{this.NATURAL=194}static{this.NEXT=195}static{this.NO=196}static{this.NOT=197}static{this.NOTNULL=198}static{this.NULL=199}static{this.NULLS=200}static{this.OBJECT=201}static{this.OF=202}static{this.OFFSET=203}static{this.OMIT=204}static{this.ON=205}static{this.ONE=206}static{this.ONLY=207}static{this.OPTION=208}static{this.OPTIONAL=209}static{this.OR=210}static{this.ORDER=211}static{this.OTHERS=212}static{this.OUTER=213}static{this.OVER=214}static{this.PARALLEL=215}static{this.PARTITION=216}static{this.PASSING=217}static{this.PASSWORD=218}static{this.PAST=219}static{this.PATTERN=220}static{this.PER=221}static{this.PERMUTE=222}static{this.PLAN=223}static{this.POOL=224}static{this.PRAGMA=225}static{this.PRECEDING=226}static{this.PRESORT=227}static{this.PRIMARY=228}static{this.PRIVILEGES=229}static{this.PROCESS=230}static{this.QUEUE=231}static{this.RAISE=232}static{this.RANGE=233}static{this.REDUCE=234}static{this.REFERENCES=235}static{this.REGEXP=236}static{this.REINDEX=237}static{this.RELEASE=238}static{this.REMOVE=239}static{this.RENAME=240}static{this.REPEATABLE=241}static{this.REPLACE=242}static{this.REPLICATION=243}static{this.RESET=244}static{this.RESOURCE=245}static{this.RESPECT=246}static{this.RESTORE=247}static{this.RESTRICT=248}static{this.RESULT=249}static{this.RETURN=250}static{this.RETURNING=251}static{this.REVERT=252}static{this.REVOKE=253}static{this.RIGHT=254}static{this.RLIKE=255}static{this.ROLLBACK=256}static{this.ROLLUP=257}static{this.ROW=258}static{this.ROWS=259}static{this.SAMPLE=260}static{this.SAVEPOINT=261}static{this.SCHEMA=262}static{this.SECONDS=263}static{this.SEEK=264}static{this.SELECT=265}static{this.SEMI=266}static{this.SET=267}static{this.SETS=268}static{this.SHOW=269}static{this.TSKIP=270}static{this.SOURCE=271}static{this.STREAM=272}static{this.STRUCT=273}static{this.SUBQUERY=274}static{this.SUBSET=275}static{this.SYMBOLS=276}static{this.SYMMETRIC=277}static{this.SYNC=278}static{this.SYSTEM=279}static{this.TABLE=280}static{this.TABLES=281}static{this.TABLESAMPLE=282}static{this.TABLESTORE=283}static{this.TAGGED=284}static{this.TEMP=285}static{this.TEMPORARY=286}static{this.THEN=287}static{this.TIES=288}static{this.TO=289}static{this.TOPIC=290}static{this.TRANSACTION=291}static{this.TRIGGER=292}static{this.TRUE=293}static{this.TUPLE=294}static{this.TYPE=295}static{this.UNBOUNDED=296}static{this.UNCONDITIONAL=297}static{this.UNION=298}static{this.UNIQUE=299}static{this.UNKNOWN=300}static{this.UNMATCHED=301}static{this.UPDATE=302}static{this.UPSERT=303}static{this.USE=304}static{this.USER=305}static{this.USING=306}static{this.VACUUM=307}static{this.VALUES=308}static{this.VARIANT=309}static{this.VIEW=310}static{this.VIRTUAL=311}static{this.WHEN=312}static{this.WHERE=313}static{this.WINDOW=314}static{this.WITH=315}static{this.WITHOUT=316}static{this.WRAPPER=317}static{this.XOR=318}static{this.STRING_VALUE=319}static{this.ID_PLAIN=320}static{this.ID_QUOTED=321}static{this.DIGITS=322}static{this.INTEGER_VALUE=323}static{this.REAL=324}static{this.BLOB=325}static{this.TQ=326}static{this.TU=327}static{this.TE=328}static{this.TR=329}static{this.TY=330}static{this.WS=331}static{this.COMMENT=332}static{this.RULE_sql_query=0}static{this.RULE_sql_stmt_list=1}static{this.RULE_ansi_sql_stmt_list=2}static{this.RULE_lambda_body=3}static{this.RULE_lambda_stmt=4}static{this.RULE_sql_stmt=5}static{this.RULE_sql_stmt_core=6}static{this.RULE_expr=7}static{this.RULE_or_subexpr=8}static{this.RULE_and_subexpr=9}static{this.RULE_xor_subexpr=10}static{this.RULE_distinct_from_op=11}static{this.RULE_cond_expr=12}static{this.RULE_match_op=13}static{this.RULE_eq_subexpr=14}static{this.RULE_shift_right=15}static{this.RULE_rot_right=16}static{this.RULE_double_question=17}static{this.RULE_neq_subexpr=18}static{this.RULE_bit_subexpr=19}static{this.RULE_add_subexpr=20}static{this.RULE_mul_subexpr=21}static{this.RULE_con_subexpr=22}static{this.RULE_unary_op=23}static{this.RULE_unary_subexpr_suffix=24}static{this.RULE_unary_casual_subexpr=25}static{this.RULE_in_unary_casual_subexpr=26}static{this.RULE_unary_subexpr=27}static{this.RULE_in_unary_subexpr=28}static{this.RULE_list_literal=29}static{this.RULE_expr_dict_list=30}static{this.RULE_dict_literal=31}static{this.RULE_expr_struct_list=32}static{this.RULE_struct_literal=33}static{this.RULE_atom_expr=34}static{this.RULE_in_atom_expr=35}static{this.RULE_cast_expr=36}static{this.RULE_bitcast_expr=37}static{this.RULE_exists_expr=38}static{this.RULE_case_expr=39}static{this.RULE_lambda=40}static{this.RULE_in_expr=41}static{this.RULE_json_api_expr=42}static{this.RULE_jsonpath_spec=43}static{this.RULE_json_variable_name=44}static{this.RULE_json_variable=45}static{this.RULE_json_variables=46}static{this.RULE_json_common_args=47}static{this.RULE_json_case_handler=48}static{this.RULE_json_value=49}static{this.RULE_json_exists_handler=50}static{this.RULE_json_exists=51}static{this.RULE_json_query_wrapper=52}static{this.RULE_json_query_handler=53}static{this.RULE_json_query=54}static{this.RULE_smart_parenthesis=55}static{this.RULE_expr_list=56}static{this.RULE_pure_column_list=57}static{this.RULE_pure_column_or_named=58}static{this.RULE_pure_column_or_named_list=59}static{this.RULE_column_name=60}static{this.RULE_without_column_name=61}static{this.RULE_column_list=62}static{this.RULE_without_column_list=63}static{this.RULE_named_expr=64}static{this.RULE_named_expr_list=65}static{this.RULE_invoke_expr=66}static{this.RULE_invoke_expr_tail=67}static{this.RULE_using_call_expr=68}static{this.RULE_key_expr=69}static{this.RULE_when_expr=70}static{this.RULE_literal_value=71}static{this.RULE_bind_parameter=72}static{this.RULE_opt_bind_parameter=73}static{this.RULE_bind_parameter_list=74}static{this.RULE_named_bind_parameter=75}static{this.RULE_named_bind_parameter_list=76}static{this.RULE_signed_number=77}static{this.RULE_type_name_simple=78}static{this.RULE_integer_or_bind=79}static{this.RULE_type_name_tag=80}static{this.RULE_struct_arg=81}static{this.RULE_struct_arg_positional=82}static{this.RULE_variant_arg=83}static{this.RULE_callable_arg=84}static{this.RULE_callable_arg_list=85}static{this.RULE_type_name_decimal=86}static{this.RULE_type_name_optional=87}static{this.RULE_type_name_tuple=88}static{this.RULE_type_name_struct=89}static{this.RULE_type_name_variant=90}static{this.RULE_type_name_list=91}static{this.RULE_type_name_stream=92}static{this.RULE_type_name_flow=93}static{this.RULE_type_name_dict=94}static{this.RULE_type_name_set=95}static{this.RULE_type_name_enum=96}static{this.RULE_type_name_resource=97}static{this.RULE_type_name_tagged=98}static{this.RULE_type_name_callable=99}static{this.RULE_type_name_composite=100}static{this.RULE_type_name=101}static{this.RULE_type_name_or_bind=102}static{this.RULE_value_constructor_literal=103}static{this.RULE_value_constructor=104}static{this.RULE_declare_stmt=105}static{this.RULE_module_path=106}static{this.RULE_import_stmt=107}static{this.RULE_export_stmt=108}static{this.RULE_call_action=109}static{this.RULE_inline_action=110}static{this.RULE_do_stmt=111}static{this.RULE_pragma_stmt=112}static{this.RULE_pragma_value=113}static{this.RULE_sort_specification=114}static{this.RULE_sort_specification_list=115}static{this.RULE_select_stmt=116}static{this.RULE_select_unparenthesized_stmt=117}static{this.RULE_select_kind_parenthesis=118}static{this.RULE_select_op=119}static{this.RULE_select_kind_partial=120}static{this.RULE_select_kind=121}static{this.RULE_process_core=122}static{this.RULE_external_call_param=123}static{this.RULE_external_call_settings=124}static{this.RULE_reduce_core=125}static{this.RULE_opt_set_quantifier=126}static{this.RULE_select_core=127}static{this.RULE_row_pattern_recognition_clause=128}static{this.RULE_row_pattern_rows_per_match=129}static{this.RULE_row_pattern_empty_match_handling=130}static{this.RULE_row_pattern_measures=131}static{this.RULE_row_pattern_measure_list=132}static{this.RULE_row_pattern_measure_definition=133}static{this.RULE_row_pattern_common_syntax=134}static{this.RULE_row_pattern_skip_to=135}static{this.RULE_row_pattern_skip_to_variable_name=136}static{this.RULE_row_pattern_initial_or_seek=137}static{this.RULE_row_pattern=138}static{this.RULE_row_pattern_term=139}static{this.RULE_row_pattern_factor=140}static{this.RULE_row_pattern_quantifier=141}static{this.RULE_row_pattern_primary=142}static{this.RULE_row_pattern_primary_variable_name=143}static{this.RULE_row_pattern_permute=144}static{this.RULE_row_pattern_subset_clause=145}static{this.RULE_row_pattern_subset_list=146}static{this.RULE_row_pattern_subset_item=147}static{this.RULE_row_pattern_subset_item_variable_name=148}static{this.RULE_row_pattern_subset_rhs=149}static{this.RULE_row_pattern_subset_rhs_variable_name=150}static{this.RULE_row_pattern_definition_list=151}static{this.RULE_row_pattern_definition=152}static{this.RULE_row_pattern_definition_variable_name=153}static{this.RULE_row_pattern_definition_search_condition=154}static{this.RULE_search_condition=155}static{this.RULE_row_pattern_variable_name=156}static{this.RULE_order_by_clause=157}static{this.RULE_ext_order_by_clause=158}static{this.RULE_group_by_clause=159}static{this.RULE_grouping_element_list=160}static{this.RULE_grouping_element=161}static{this.RULE_ordinary_grouping_set=162}static{this.RULE_ordinary_grouping_set_list=163}static{this.RULE_rollup_list=164}static{this.RULE_cube_list=165}static{this.RULE_grouping_sets_specification=166}static{this.RULE_hopping_window_specification=167}static{this.RULE_result_column=168}static{this.RULE_join_source=169}static{this.RULE_named_column=170}static{this.RULE_flatten_by_arg=171}static{this.RULE_flatten_source=172}static{this.RULE_named_single_source=173}static{this.RULE_single_source=174}static{this.RULE_sample_clause=175}static{this.RULE_tablesample_clause=176}static{this.RULE_sampling_mode=177}static{this.RULE_repeatable_clause=178}static{this.RULE_join_op=179}static{this.RULE_join_constraint=180}static{this.RULE_returning_columns_list=181}static{this.RULE_into_table_stmt=182}static{this.RULE_into_table_stmt_yq=183}static{this.RULE_into_values_source=184}static{this.RULE_values_stmt=185}static{this.RULE_values_source=186}static{this.RULE_values_source_row_list=187}static{this.RULE_values_source_row=188}static{this.RULE_simple_values_source=189}static{this.RULE_create_external_data_source_stmt=190}static{this.RULE_alter_external_data_source_stmt=191}static{this.RULE_alter_external_data_source_action=192}static{this.RULE_drop_external_data_source_stmt=193}static{this.RULE_create_view_stmt=194}static{this.RULE_drop_view_stmt=195}static{this.RULE_upsert_object_stmt=196}static{this.RULE_create_object_stmt=197}static{this.RULE_create_object_features=198}static{this.RULE_alter_object_stmt=199}static{this.RULE_alter_object_features=200}static{this.RULE_drop_object_stmt=201}static{this.RULE_drop_object_features=202}static{this.RULE_object_feature_value=203}static{this.RULE_object_feature_kv=204}static{this.RULE_object_feature_flag=205}static{this.RULE_object_feature=206}static{this.RULE_object_features=207}static{this.RULE_object_type_ref=208}static{this.RULE_create_table_stmt=209}static{this.RULE_create_table_entry=210}static{this.RULE_create_backup_collection_stmt=211}static{this.RULE_alter_backup_collection_stmt=212}static{this.RULE_drop_backup_collection_stmt=213}static{this.RULE_create_backup_collection_entries=214}static{this.RULE_create_backup_collection_entries_many=215}static{this.RULE_table_list=216}static{this.RULE_alter_backup_collection_actions=217}static{this.RULE_alter_backup_collection_action=218}static{this.RULE_alter_backup_collection_entries=219}static{this.RULE_alter_backup_collection_entry=220}static{this.RULE_backup_collection=221}static{this.RULE_backup_collection_settings=222}static{this.RULE_backup_collection_settings_entry=223}static{this.RULE_backup_stmt=224}static{this.RULE_restore_stmt=225}static{this.RULE_table_inherits=226}static{this.RULE_table_partition_by=227}static{this.RULE_with_table_settings=228}static{this.RULE_table_tablestore=229}static{this.RULE_table_settings_entry=230}static{this.RULE_table_as_source=231}static{this.RULE_alter_table_stmt=232}static{this.RULE_alter_table_action=233}static{this.RULE_alter_external_table_stmt=234}static{this.RULE_alter_external_table_action=235}static{this.RULE_alter_table_store_stmt=236}static{this.RULE_alter_table_store_action=237}static{this.RULE_alter_table_add_column=238}static{this.RULE_alter_table_drop_column=239}static{this.RULE_alter_table_alter_column=240}static{this.RULE_alter_table_alter_column_drop_not_null=241}static{this.RULE_alter_table_add_column_family=242}static{this.RULE_alter_table_alter_column_family=243}static{this.RULE_alter_table_set_table_setting_uncompat=244}static{this.RULE_alter_table_set_table_setting_compat=245}static{this.RULE_alter_table_reset_table_setting=246}static{this.RULE_alter_table_add_index=247}static{this.RULE_alter_table_drop_index=248}static{this.RULE_alter_table_rename_to=249}static{this.RULE_alter_table_rename_index_to=250}static{this.RULE_alter_table_add_changefeed=251}static{this.RULE_alter_table_alter_changefeed=252}static{this.RULE_alter_table_drop_changefeed=253}static{this.RULE_alter_table_alter_index=254}static{this.RULE_column_schema=255}static{this.RULE_family_relation=256}static{this.RULE_opt_column_constraints=257}static{this.RULE_column_order_by_specification=258}static{this.RULE_table_constraint=259}static{this.RULE_table_index=260}static{this.RULE_table_index_type=261}static{this.RULE_global_index=262}static{this.RULE_local_index=263}static{this.RULE_index_subtype=264}static{this.RULE_with_index_settings=265}static{this.RULE_index_setting_entry=266}static{this.RULE_index_setting_value=267}static{this.RULE_changefeed=268}static{this.RULE_changefeed_settings=269}static{this.RULE_changefeed_settings_entry=270}static{this.RULE_changefeed_setting_value=271}static{this.RULE_changefeed_alter_settings=272}static{this.RULE_alter_table_setting_entry=273}static{this.RULE_table_setting_value=274}static{this.RULE_family_entry=275}static{this.RULE_family_settings=276}static{this.RULE_family_settings_entry=277}static{this.RULE_family_setting_value=278}static{this.RULE_split_boundaries=279}static{this.RULE_literal_value_list=280}static{this.RULE_alter_table_alter_index_action=281}static{this.RULE_drop_table_stmt=282}static{this.RULE_create_user_stmt=283}static{this.RULE_alter_user_stmt=284}static{this.RULE_create_group_stmt=285}static{this.RULE_alter_group_stmt=286}static{this.RULE_drop_role_stmt=287}static{this.RULE_role_name=288}static{this.RULE_create_user_option=289}static{this.RULE_grant_permissions_stmt=290}static{this.RULE_revoke_permissions_stmt=291}static{this.RULE_permission_id=292}static{this.RULE_permission_name=293}static{this.RULE_permission_name_target=294}static{this.RULE_create_resource_pool_stmt=295}static{this.RULE_alter_resource_pool_stmt=296}static{this.RULE_alter_resource_pool_action=297}static{this.RULE_drop_resource_pool_stmt=298}static{this.RULE_create_resource_pool_classifier_stmt=299}static{this.RULE_alter_resource_pool_classifier_stmt=300}static{this.RULE_alter_resource_pool_classifier_action=301}static{this.RULE_drop_resource_pool_classifier_stmt=302}static{this.RULE_create_replication_stmt=303}static{this.RULE_replication_target=304}static{this.RULE_replication_settings=305}static{this.RULE_replication_settings_entry=306}static{this.RULE_alter_replication_stmt=307}static{this.RULE_alter_replication_action=308}static{this.RULE_alter_replication_set_setting=309}static{this.RULE_drop_replication_stmt=310}static{this.RULE_action_or_subquery_args=311}static{this.RULE_define_action_or_subquery_stmt=312}static{this.RULE_define_action_or_subquery_body=313}static{this.RULE_if_stmt=314}static{this.RULE_for_stmt=315}static{this.RULE_table_ref=316}static{this.RULE_table_key=317}static{this.RULE_table_arg=318}static{this.RULE_table_hints=319}static{this.RULE_table_hint=320}static{this.RULE_object_ref=321}static{this.RULE_simple_table_ref_core=322}static{this.RULE_simple_table_ref=323}static{this.RULE_into_simple_table_ref=324}static{this.RULE_delete_stmt=325}static{this.RULE_update_stmt=326}static{this.RULE_set_clause_choice=327}static{this.RULE_set_clause_list=328}static{this.RULE_set_clause=329}static{this.RULE_set_target=330}static{this.RULE_multiple_column_assignment=331}static{this.RULE_set_target_list=332}static{this.RULE_create_topic_stmt=333}static{this.RULE_create_topic_entries=334}static{this.RULE_create_topic_entry=335}static{this.RULE_with_topic_settings=336}static{this.RULE_alter_topic_stmt=337}static{this.RULE_alter_topic_action=338}static{this.RULE_alter_topic_add_consumer=339}static{this.RULE_topic_create_consumer_entry=340}static{this.RULE_alter_topic_alter_consumer=341}static{this.RULE_alter_topic_alter_consumer_entry=342}static{this.RULE_alter_topic_drop_consumer=343}static{this.RULE_topic_alter_consumer_set=344}static{this.RULE_topic_alter_consumer_reset=345}static{this.RULE_alter_topic_set_settings=346}static{this.RULE_alter_topic_reset_settings=347}static{this.RULE_drop_topic_stmt=348}static{this.RULE_topic_settings=349}static{this.RULE_topic_settings_entry=350}static{this.RULE_topic_setting_value=351}static{this.RULE_topic_consumer_with_settings=352}static{this.RULE_topic_consumer_settings=353}static{this.RULE_topic_consumer_settings_entry=354}static{this.RULE_topic_consumer_setting_value=355}static{this.RULE_topic_ref=356}static{this.RULE_topic_consumer_ref=357}static{this.RULE_null_treatment=358}static{this.RULE_filter_clause=359}static{this.RULE_window_name_or_specification=360}static{this.RULE_window_name=361}static{this.RULE_window_clause=362}static{this.RULE_window_definition_list=363}static{this.RULE_window_definition=364}static{this.RULE_new_window_name=365}static{this.RULE_window_specification=366}static{this.RULE_window_specification_details=367}static{this.RULE_existing_window_name=368}static{this.RULE_window_partition_clause=369}static{this.RULE_window_order_clause=370}static{this.RULE_window_frame_clause=371}static{this.RULE_window_frame_units=372}static{this.RULE_window_frame_extent=373}static{this.RULE_window_frame_between=374}static{this.RULE_window_frame_bound=375}static{this.RULE_window_frame_exclusion=376}static{this.RULE_use_stmt=377}static{this.RULE_subselect_stmt=378}static{this.RULE_named_nodes_stmt=379}static{this.RULE_commit_stmt=380}static{this.RULE_rollback_stmt=381}static{this.RULE_analyze_table=382}static{this.RULE_analyze_table_list=383}static{this.RULE_analyze_stmt=384}static{this.RULE_identifier=385}static{this.RULE_id=386}static{this.RULE_id_schema=387}static{this.RULE_id_expr=388}static{this.RULE_id_expr_in=389}static{this.RULE_id_window=390}static{this.RULE_id_table=391}static{this.RULE_id_without=392}static{this.RULE_id_hint=393}static{this.RULE_id_as_compat=394}static{this.RULE_an_id=395}static{this.RULE_an_id_or_type=396}static{this.RULE_an_id_schema=397}static{this.RULE_an_id_expr=398}static{this.RULE_an_id_expr_in=399}static{this.RULE_an_id_window=400}static{this.RULE_an_id_table=401}static{this.RULE_an_id_without=402}static{this.RULE_an_id_hint=403}static{this.RULE_an_id_pure=404}static{this.RULE_an_id_as_compat=405}static{this.RULE_view_name=406}static{this.RULE_opt_id_prefix=407}static{this.RULE_cluster_expr=408}static{this.RULE_id_or_type=409}static{this.RULE_opt_id_prefix_or_type=410}static{this.RULE_id_or_at=411}static{this.RULE_id_table_or_type=412}static{this.RULE_id_table_or_at=413}static{this.RULE_keyword=414}static{this.RULE_keyword_expr_uncompat=415}static{this.RULE_keyword_table_uncompat=416}static{this.RULE_keyword_select_uncompat=417}static{this.RULE_keyword_alter_uncompat=418}static{this.RULE_keyword_in_uncompat=419}static{this.RULE_keyword_window_uncompat=420}static{this.RULE_keyword_hint_uncompat=421}static{this.RULE_keyword_as_compat=422}static{this.RULE_keyword_compat=423}static{this.RULE_type_id=424}static{this.RULE_bool_value=425}static{this.RULE_real=426}static{this.RULE_integer=427}static{this.RULE_sql_query_yq=428}static{this.RULE_sql_stmt_list_yq=429}static{this.RULE_sql_stmt_yq=430}static{this.RULE_sql_stmt_core_yq=431}static{this.RULE_replication_name=432}static{this.RULE_where_expr=433}static{this.RULE_from_stmt=434}static{this.RULE_alter_table_for_autocomplete=435}static{this.literalNames=[null,null,"'='","'=='","'!='","'<>'","'<'","'<='","'>'","'>='","'<<'","'|<<'","'&'","'|'","'||'","'<|'","'|>'","'+'","'-'","'~'","'*'","'/'","'%'","';'","'.'","','","'('","')'","'?'","':'","'@'","'@@'","'$'","'{'","'}'","'^'","'::'","'->'","']'","'['"]}static{this.symbolicNames=[null,"QUERY","EQUALS","EQUALS2","NOT_EQUALS","NOT_EQUALS2","LESS","LESS_OR_EQ","GREATER","GREATER_OR_EQ","SHIFT_LEFT","ROT_LEFT","AMPERSAND","PIPE","DOUBLE_PIPE","STRUCT_OPEN","STRUCT_CLOSE","PLUS","MINUS","TILDA","ASTERISK","SLASH","PERCENT","SEMICOLON","DOT","COMMA","LPAREN","RPAREN","QUESTION","COLON","COMMAT","DOUBLE_COMMAT","DOLLAR","LBRACE_CURLY","RBRACE_CURLY","CARET","NAMESPACE","ARROW","RBRACE_SQUARE","LBRACE_SQUARE","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANSI","ANY","ARRAY","AS","ASC","ASSUME","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTES","AUTOINCREMENT","AUTOMAP","BACKUP","COLLECTION","BEFORE","BEGIN","BERNOULLI","BETWEEN","BITCAST","BY","CALLABLE","CASCADE","CASE","CAST","CHANGEFEED","CHECK","CLASSIFIER","COLLATE","COLUMN","COLUMNS","COMMIT","COMPACT","CONDITIONAL","CONFLICT","CONNECT","CONSTRAINT","CONSUMER","COVER","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATA","DATABASE","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DEFINE","DELETE","DESC","DESCRIBE","DETACH","DICT","DIRECTORY","DISABLE","DISCARD","DISTINCT","DO","DROP","EACH","ELSE","EMPTY","EMPTY_ACTION","ENCRYPTED","END","ENUM","ERASE","ERROR","ESCAPE","EVALUATE","EXCEPT","EXCLUDE","EXCLUSION","EXCLUSIVE","EXISTS","EXPLAIN","EXPORT","EXTERNAL","FAIL","FALSE","FAMILY","FILTER","FIRST","FLATTEN","FLOW","FOLLOWING","FOR","FOREIGN","FROM","FULL","FUNCTION","GLOB","GLOBAL","GRANT","GROUP","GROUPING","GROUPS","HASH","HAVING","HOP","IF","IGNORE","ILIKE","IMMEDIATE","IMPORT","IN","INCREMENTAL","INDEX","INDEXED","INHERITS","INITIAL","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","JSON_EXISTS","JSON_QUERY","JSON_VALUE","KEY","LAST","LEFT","LEGACY","LIKE","LIMIT","LIST","LOCAL","MANAGE","MATCH","MATCHES","MATCH_RECOGNIZE","MEASURES","MICROSECONDS","MILLISECONDS","MODIFY","NANOSECONDS","NATURAL","NEXT","NO","NOT","NOTNULL","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OPTIONAL","OR","ORDER","OTHERS","OUTER","OVER","PARALLEL","PARTITION","PASSING","PASSWORD","PAST","PATTERN","PER","PERMUTE","PLAN","POOL","PRAGMA","PRECEDING","PRESORT","PRIMARY","PRIVILEGES","PROCESS","QUEUE","RAISE","RANGE","REDUCE","REFERENCES","REGEXP","REINDEX","RELEASE","REMOVE","RENAME","REPEATABLE","REPLACE","REPLICATION","RESET","RESOURCE","RESPECT","RESTORE","RESTRICT","RESULT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","RLIKE","ROLLBACK","ROLLUP","ROW","ROWS","SAMPLE","SAVEPOINT","SCHEMA","SECONDS","SEEK","SELECT","SEMI","SET","SETS","SHOW","TSKIP","SOURCE","STREAM","STRUCT","SUBQUERY","SUBSET","SYMBOLS","SYMMETRIC","SYNC","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESTORE","TAGGED","TEMP","TEMPORARY","THEN","TIES","TO","TOPIC","TRANSACTION","TRIGGER","TRUE","TUPLE","TYPE","UNBOUNDED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UPDATE","UPSERT","USE","USER","USING","VACUUM","VALUES","VARIANT","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT","WRAPPER","XOR","STRING_VALUE","ID_PLAIN","ID_QUOTED","DIGITS","INTEGER_VALUE","REAL","BLOB","TQ","TU","TE","TR","TY","WS","COMMENT"]}static{this.ruleNames=["sql_query","sql_stmt_list","ansi_sql_stmt_list","lambda_body","lambda_stmt","sql_stmt","sql_stmt_core","expr","or_subexpr","and_subexpr","xor_subexpr","distinct_from_op","cond_expr","match_op","eq_subexpr","shift_right","rot_right","double_question","neq_subexpr","bit_subexpr","add_subexpr","mul_subexpr","con_subexpr","unary_op","unary_subexpr_suffix","unary_casual_subexpr","in_unary_casual_subexpr","unary_subexpr","in_unary_subexpr","list_literal","expr_dict_list","dict_literal","expr_struct_list","struct_literal","atom_expr","in_atom_expr","cast_expr","bitcast_expr","exists_expr","case_expr","lambda","in_expr","json_api_expr","jsonpath_spec","json_variable_name","json_variable","json_variables","json_common_args","json_case_handler","json_value","json_exists_handler","json_exists","json_query_wrapper","json_query_handler","json_query","smart_parenthesis","expr_list","pure_column_list","pure_column_or_named","pure_column_or_named_list","column_name","without_column_name","column_list","without_column_list","named_expr","named_expr_list","invoke_expr","invoke_expr_tail","using_call_expr","key_expr","when_expr","literal_value","bind_parameter","opt_bind_parameter","bind_parameter_list","named_bind_parameter","named_bind_parameter_list","signed_number","type_name_simple","integer_or_bind","type_name_tag","struct_arg","struct_arg_positional","variant_arg","callable_arg","callable_arg_list","type_name_decimal","type_name_optional","type_name_tuple","type_name_struct","type_name_variant","type_name_list","type_name_stream","type_name_flow","type_name_dict","type_name_set","type_name_enum","type_name_resource","type_name_tagged","type_name_callable","type_name_composite","type_name","type_name_or_bind","value_constructor_literal","value_constructor","declare_stmt","module_path","import_stmt","export_stmt","call_action","inline_action","do_stmt","pragma_stmt","pragma_value","sort_specification","sort_specification_list","select_stmt","select_unparenthesized_stmt","select_kind_parenthesis","select_op","select_kind_partial","select_kind","process_core","external_call_param","external_call_settings","reduce_core","opt_set_quantifier","select_core","row_pattern_recognition_clause","row_pattern_rows_per_match","row_pattern_empty_match_handling","row_pattern_measures","row_pattern_measure_list","row_pattern_measure_definition","row_pattern_common_syntax","row_pattern_skip_to","row_pattern_skip_to_variable_name","row_pattern_initial_or_seek","row_pattern","row_pattern_term","row_pattern_factor","row_pattern_quantifier","row_pattern_primary","row_pattern_primary_variable_name","row_pattern_permute","row_pattern_subset_clause","row_pattern_subset_list","row_pattern_subset_item","row_pattern_subset_item_variable_name","row_pattern_subset_rhs","row_pattern_subset_rhs_variable_name","row_pattern_definition_list","row_pattern_definition","row_pattern_definition_variable_name","row_pattern_definition_search_condition","search_condition","row_pattern_variable_name","order_by_clause","ext_order_by_clause","group_by_clause","grouping_element_list","grouping_element","ordinary_grouping_set","ordinary_grouping_set_list","rollup_list","cube_list","grouping_sets_specification","hopping_window_specification","result_column","join_source","named_column","flatten_by_arg","flatten_source","named_single_source","single_source","sample_clause","tablesample_clause","sampling_mode","repeatable_clause","join_op","join_constraint","returning_columns_list","into_table_stmt","into_table_stmt_yq","into_values_source","values_stmt","values_source","values_source_row_list","values_source_row","simple_values_source","create_external_data_source_stmt","alter_external_data_source_stmt","alter_external_data_source_action","drop_external_data_source_stmt","create_view_stmt","drop_view_stmt","upsert_object_stmt","create_object_stmt","create_object_features","alter_object_stmt","alter_object_features","drop_object_stmt","drop_object_features","object_feature_value","object_feature_kv","object_feature_flag","object_feature","object_features","object_type_ref","create_table_stmt","create_table_entry","create_backup_collection_stmt","alter_backup_collection_stmt","drop_backup_collection_stmt","create_backup_collection_entries","create_backup_collection_entries_many","table_list","alter_backup_collection_actions","alter_backup_collection_action","alter_backup_collection_entries","alter_backup_collection_entry","backup_collection","backup_collection_settings","backup_collection_settings_entry","backup_stmt","restore_stmt","table_inherits","table_partition_by","with_table_settings","table_tablestore","table_settings_entry","table_as_source","alter_table_stmt","alter_table_action","alter_external_table_stmt","alter_external_table_action","alter_table_store_stmt","alter_table_store_action","alter_table_add_column","alter_table_drop_column","alter_table_alter_column","alter_table_alter_column_drop_not_null","alter_table_add_column_family","alter_table_alter_column_family","alter_table_set_table_setting_uncompat","alter_table_set_table_setting_compat","alter_table_reset_table_setting","alter_table_add_index","alter_table_drop_index","alter_table_rename_to","alter_table_rename_index_to","alter_table_add_changefeed","alter_table_alter_changefeed","alter_table_drop_changefeed","alter_table_alter_index","column_schema","family_relation","opt_column_constraints","column_order_by_specification","table_constraint","table_index","table_index_type","global_index","local_index","index_subtype","with_index_settings","index_setting_entry","index_setting_value","changefeed","changefeed_settings","changefeed_settings_entry","changefeed_setting_value","changefeed_alter_settings","alter_table_setting_entry","table_setting_value","family_entry","family_settings","family_settings_entry","family_setting_value","split_boundaries","literal_value_list","alter_table_alter_index_action","drop_table_stmt","create_user_stmt","alter_user_stmt","create_group_stmt","alter_group_stmt","drop_role_stmt","role_name","create_user_option","grant_permissions_stmt","revoke_permissions_stmt","permission_id","permission_name","permission_name_target","create_resource_pool_stmt","alter_resource_pool_stmt","alter_resource_pool_action","drop_resource_pool_stmt","create_resource_pool_classifier_stmt","alter_resource_pool_classifier_stmt","alter_resource_pool_classifier_action","drop_resource_pool_classifier_stmt","create_replication_stmt","replication_target","replication_settings","replication_settings_entry","alter_replication_stmt","alter_replication_action","alter_replication_set_setting","drop_replication_stmt","action_or_subquery_args","define_action_or_subquery_stmt","define_action_or_subquery_body","if_stmt","for_stmt","table_ref","table_key","table_arg","table_hints","table_hint","object_ref","simple_table_ref_core","simple_table_ref","into_simple_table_ref","delete_stmt","update_stmt","set_clause_choice","set_clause_list","set_clause","set_target","multiple_column_assignment","set_target_list","create_topic_stmt","create_topic_entries","create_topic_entry","with_topic_settings","alter_topic_stmt","alter_topic_action","alter_topic_add_consumer","topic_create_consumer_entry","alter_topic_alter_consumer","alter_topic_alter_consumer_entry","alter_topic_drop_consumer","topic_alter_consumer_set","topic_alter_consumer_reset","alter_topic_set_settings","alter_topic_reset_settings","drop_topic_stmt","topic_settings","topic_settings_entry","topic_setting_value","topic_consumer_with_settings","topic_consumer_settings","topic_consumer_settings_entry","topic_consumer_setting_value","topic_ref","topic_consumer_ref","null_treatment","filter_clause","window_name_or_specification","window_name","window_clause","window_definition_list","window_definition","new_window_name","window_specification","window_specification_details","existing_window_name","window_partition_clause","window_order_clause","window_frame_clause","window_frame_units","window_frame_extent","window_frame_between","window_frame_bound","window_frame_exclusion","use_stmt","subselect_stmt","named_nodes_stmt","commit_stmt","rollback_stmt","analyze_table","analyze_table_list","analyze_stmt","identifier","id","id_schema","id_expr","id_expr_in","id_window","id_table","id_without","id_hint","id_as_compat","an_id","an_id_or_type","an_id_schema","an_id_expr","an_id_expr_in","an_id_window","an_id_table","an_id_without","an_id_hint","an_id_pure","an_id_as_compat","view_name","opt_id_prefix","cluster_expr","id_or_type","opt_id_prefix_or_type","id_or_at","id_table_or_type","id_table_or_at","keyword","keyword_expr_uncompat","keyword_table_uncompat","keyword_select_uncompat","keyword_alter_uncompat","keyword_in_uncompat","keyword_window_uncompat","keyword_hint_uncompat","keyword_as_compat","keyword_compat","type_id","bool_value","real","integer","sql_query_yq","sql_stmt_list_yq","sql_stmt_yq","sql_stmt_core_yq","replication_name","where_expr","from_stmt","alter_table_for_autocomplete"]}get grammarFileName(){return"YQL.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}createFailedPredicateException(e,t){return new Ft(this,e,t)}constructor(t){super(t),this.interpreter=new gt(this,e._ATN,e.decisionsToDFA,new pt)}sql_query(){let t=new os(this.context,this.state);this.enterRule(t,0,e.RULE_sql_query);try{switch(this.state=877,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,0,this.context)){case 1:this.enterOuterAlt(t,1),this.state=872,this.sql_stmt_list();break;case 2:this.enterOuterAlt(t,2),this.state=873,this.match(e.PRAGMA),this.state=874,this.match(e.ANSI),this.state=875,this.match(e.DIGITS),this.state=876,this.ansi_sql_stmt_list()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt_list(){let t,i=new as(this.context,this.state);this.enterRule(i,2,e.RULE_sql_stmt_list);try{let s;for(this.enterOuterAlt(i,1),this.state=882,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=879,this.match(e.SEMICOLON),this.state=884,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=885,this.sql_stmt(),this.state=894,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,3,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=887,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=886,this.match(e.SEMICOLON),this.state=889,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(23===t);this.state=891,this.sql_stmt()}this.state=896,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,3,this.context)}for(this.state=900,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=897,this.match(e.SEMICOLON),this.state=902,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=903,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}ansi_sql_stmt_list(){let t,i=new ls(this.context,this.state);this.enterRule(i,4,e.RULE_ansi_sql_stmt_list);try{for(this.enterOuterAlt(i,1),this.state=908,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=905,this.match(e.SEMICOLON),this.state=910,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=911,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda_body(){let t,i=new cs(this.context,this.state);this.enterRule(i,6,e.RULE_lambda_body);try{for(this.enterOuterAlt(i,1),this.state=916,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=913,this.match(e.SEMICOLON),this.state=918,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=927,this.errorHandler.sync(this),t=this.tokenStream.LA(1);32===t||158===t;){this.state=919,this.lambda_stmt(),this.state=921,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=920,this.match(e.SEMICOLON),this.state=923,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(23===t);this.state=929,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}for(this.state=930,this.match(e.RETURN),this.state=931,this.expr(),this.state=935,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=932,this.match(e.SEMICOLON),this.state=937,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda_stmt(){let t=new hs(this.context,this.state);this.enterRule(t,8,e.RULE_lambda_stmt);try{switch(this.state=940,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.enterOuterAlt(t,1),this.state=938,this.named_nodes_stmt();break;case e.IMPORT:this.enterOuterAlt(t,2),this.state=939,this.import_stmt();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt(){let t,i=new ds(this.context,this.state);this.enterRule(i,10,e.RULE_sql_stmt);try{this.enterOuterAlt(i,1),this.state=947,this.errorHandler.sync(this),t=this.tokenStream.LA(1),129===t&&(this.state=942,this.match(e.EXPLAIN),this.state=945,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=943,this.match(e.QUERY),this.state=944,this.match(e.PLAN))),this.state=949,this.sql_stmt_core()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_core(){let t=new us(this.context,this.state);this.enterRule(t,12,e.RULE_sql_stmt_core);try{switch(this.state=1007,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,13,this.context)){case 1:this.enterOuterAlt(t,1),this.state=951,this.pragma_stmt();break;case 2:this.enterOuterAlt(t,2),this.state=952,this.select_stmt();break;case 3:this.enterOuterAlt(t,3),this.state=953,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(t,4),this.state=954,this.create_table_stmt();break;case 5:this.enterOuterAlt(t,5),this.state=955,this.drop_table_stmt();break;case 6:this.enterOuterAlt(t,6),this.state=956,this.use_stmt();break;case 7:this.enterOuterAlt(t,7),this.state=957,this.into_table_stmt();break;case 8:this.enterOuterAlt(t,8),this.state=958,this.commit_stmt();break;case 9:this.enterOuterAlt(t,9),this.state=959,this.update_stmt();break;case 10:this.enterOuterAlt(t,10),this.state=960,this.delete_stmt();break;case 11:this.enterOuterAlt(t,11),this.state=961,this.rollback_stmt();break;case 12:this.enterOuterAlt(t,12),this.state=962,this.declare_stmt();break;case 13:this.enterOuterAlt(t,13),this.state=963,this.import_stmt();break;case 14:this.enterOuterAlt(t,14),this.state=964,this.export_stmt();break;case 15:this.enterOuterAlt(t,15),this.state=965,this.alter_table_stmt();break;case 16:this.enterOuterAlt(t,16),this.state=966,this.alter_external_table_stmt();break;case 17:this.enterOuterAlt(t,17),this.state=967,this.do_stmt();break;case 18:this.enterOuterAlt(t,18),this.state=968,this.define_action_or_subquery_stmt();break;case 19:this.enterOuterAlt(t,19),this.state=969,this.if_stmt();break;case 20:this.enterOuterAlt(t,20),this.state=970,this.for_stmt();break;case 21:this.enterOuterAlt(t,21),this.state=971,this.values_stmt();break;case 22:this.enterOuterAlt(t,22),this.state=972,this.create_user_stmt();break;case 23:this.enterOuterAlt(t,23),this.state=973,this.alter_user_stmt();break;case 24:this.enterOuterAlt(t,24),this.state=974,this.create_group_stmt();break;case 25:this.enterOuterAlt(t,25),this.state=975,this.alter_group_stmt();break;case 26:this.enterOuterAlt(t,26),this.state=976,this.drop_role_stmt();break;case 27:this.enterOuterAlt(t,27),this.state=977,this.create_object_stmt();break;case 28:this.enterOuterAlt(t,28),this.state=978,this.alter_object_stmt();break;case 29:this.enterOuterAlt(t,29),this.state=979,this.drop_object_stmt();break;case 30:this.enterOuterAlt(t,30),this.state=980,this.create_external_data_source_stmt();break;case 31:this.enterOuterAlt(t,31),this.state=981,this.alter_external_data_source_stmt();break;case 32:this.enterOuterAlt(t,32),this.state=982,this.drop_external_data_source_stmt();break;case 33:this.enterOuterAlt(t,33),this.state=983,this.create_replication_stmt();break;case 34:this.enterOuterAlt(t,34),this.state=984,this.drop_replication_stmt();break;case 35:this.enterOuterAlt(t,35),this.state=985,this.create_topic_stmt();break;case 36:this.enterOuterAlt(t,36),this.state=986,this.alter_topic_stmt();break;case 37:this.enterOuterAlt(t,37),this.state=987,this.drop_topic_stmt();break;case 38:this.enterOuterAlt(t,38),this.state=988,this.grant_permissions_stmt();break;case 39:this.enterOuterAlt(t,39),this.state=989,this.revoke_permissions_stmt();break;case 40:this.enterOuterAlt(t,40),this.state=990,this.alter_table_store_stmt();break;case 41:this.enterOuterAlt(t,41),this.state=991,this.upsert_object_stmt();break;case 42:this.enterOuterAlt(t,42),this.state=992,this.create_view_stmt();break;case 43:this.enterOuterAlt(t,43),this.state=993,this.drop_view_stmt();break;case 44:this.enterOuterAlt(t,44),this.state=994,this.alter_replication_stmt();break;case 45:this.enterOuterAlt(t,45),this.state=995,this.create_resource_pool_stmt();break;case 46:this.enterOuterAlt(t,46),this.state=996,this.alter_resource_pool_stmt();break;case 47:this.enterOuterAlt(t,47),this.state=997,this.drop_resource_pool_stmt();break;case 48:this.enterOuterAlt(t,48),this.state=998,this.create_backup_collection_stmt();break;case 49:this.enterOuterAlt(t,49),this.state=999,this.alter_backup_collection_stmt();break;case 50:this.enterOuterAlt(t,50),this.state=1e3,this.drop_backup_collection_stmt();break;case 51:this.enterOuterAlt(t,51),this.state=1001,this.analyze_stmt();break;case 52:this.enterOuterAlt(t,52),this.state=1002,this.create_resource_pool_classifier_stmt();break;case 53:this.enterOuterAlt(t,53),this.state=1003,this.alter_resource_pool_classifier_stmt();break;case 54:this.enterOuterAlt(t,54),this.state=1004,this.drop_resource_pool_classifier_stmt();break;case 55:this.enterOuterAlt(t,55),this.state=1005,this.backup_stmt();break;case 56:this.enterOuterAlt(t,56),this.state=1006,this.restore_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}expr(){let t=new gs(this.context,this.state);this.enterRule(t,14,e.RULE_expr);try{let i;switch(this.state=1018,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,15,this.context)){case 1:for(this.enterOuterAlt(t,1),this.state=1009,this.or_subexpr(),this.state=1014,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1010,this.match(e.OR),this.state=1011,this.or_subexpr()),this.state=1016,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,14,this.context);break;case 2:this.enterOuterAlt(t,2),this.state=1017,this.type_name_composite()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}or_subexpr(){let t=new ps(this.context,this.state);this.enterRule(t,16,e.RULE_or_subexpr);try{let i;for(this.enterOuterAlt(t,1),this.state=1020,this.and_subexpr(),this.state=1025,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,16,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1021,this.match(e.AND),this.state=1022,this.and_subexpr()),this.state=1027,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,16,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}and_subexpr(){let t=new ms(this.context,this.state);this.enterRule(t,18,e.RULE_and_subexpr);try{let i;for(this.enterOuterAlt(t,1),this.state=1028,this.xor_subexpr(),this.state=1033,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,17,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1029,this.match(e.XOR),this.state=1030,this.xor_subexpr()),this.state=1035,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,17,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}xor_subexpr(){let t=new fs(this.context,this.state);this.enterRule(t,20,e.RULE_xor_subexpr);try{if(1===(this.enterOuterAlt(t,1),this.state=1036,this.eq_subexpr(),this.state=1038,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,18,this.context)))this.state=1037,this.cond_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}distinct_from_op(){let t,i=new _s(this.context,this.state);this.enterRule(i,22,e.RULE_distinct_from_op);try{this.enterOuterAlt(i,1),this.state=1040,this.match(e.IS),this.state=1042,this.errorHandler.sync(this),t=this.tokenStream.LA(1),197===t&&(this.state=1041,this.match(e.NOT)),this.state=1044,this.match(e.DISTINCT),this.state=1045,this.match(e.FROM)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}cond_expr(){let t,i=new vs(this.context,this.state);this.enterRule(i,24,e.RULE_cond_expr);try{let s;switch(this.state=1098,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,30,this.context)){case 1:if(1===(this.enterOuterAlt(i,1),this.state=1048,this.errorHandler.sync(this),t=this.tokenStream.LA(1),197===t&&(this.state=1047,this.match(e.NOT)),this.state=1050,this.match_op(),this.state=1051,this.eq_subexpr(),this.state=1054,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,21,this.context)))this.state=1052,this.match(e.ESCAPE),this.state=1053,this.eq_subexpr();break;case 2:if(this.enterOuterAlt(i,2),1===(this.state=1057,this.errorHandler.sync(this),t=this.tokenStream.LA(1),197===t&&(this.state=1056,this.match(e.NOT)),this.state=1059,this.match(e.IN),this.state=1061,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,23,this.context)))this.state=1060,this.match(e.COMPACT);this.state=1063,this.in_expr();break;case 3:switch(this.enterOuterAlt(i,3),this.state=1073,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,25,this.context)){case 1:this.state=1064,this.match(e.ISNULL);break;case 2:this.state=1065,this.match(e.NOTNULL);break;case 3:this.state=1066,this.match(e.IS),this.state=1067,this.match(e.NULL);break;case 4:this.state=1069,this.errorHandler.sync(this),t=this.tokenStream.LA(1),171===t&&(this.state=1068,this.match(e.IS)),this.state=1071,this.match(e.NOT),this.state=1072,this.match(e.NULL)}break;case 4:if(this.enterOuterAlt(i,4),1===(this.state=1076,this.errorHandler.sync(this),t=this.tokenStream.LA(1),197===t&&(this.state=1075,this.match(e.NOT)),this.state=1078,this.match(e.BETWEEN),this.state=1080,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,27,this.context)))this.state=1079,t=this.tokenStream.LA(1),54===t||277===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);this.state=1082,this.eq_subexpr(),this.state=1083,this.match(e.AND),this.state=1084,this.eq_subexpr();break;case 5:this.enterOuterAlt(i,5),this.state=1094,this.errorHandler.sync(this),s=1;do{if(1!==s)throw new ct(this);switch(this.state=1091,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EQUALS:this.state=1086,this.match(e.EQUALS);break;case e.EQUALS2:this.state=1087,this.match(e.EQUALS2);break;case e.NOT_EQUALS:this.state=1088,this.match(e.NOT_EQUALS);break;case e.NOT_EQUALS2:this.state=1089,this.match(e.NOT_EQUALS2);break;case e.IS:this.state=1090,this.distinct_from_op();break;default:throw new ct(this)}this.state=1093,this.eq_subexpr(),this.state=1096,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,29,this.context)}while(2!==s&&s!==Z.INVALID_ALT_NUMBER)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}match_op(){let t,i=new Cs(this.context,this.state);this.enterRule(i,26,e.RULE_match_op);try{this.enterOuterAlt(i,1),this.state=1100,t=this.tokenStream.LA(1),145===t||156===t||181===t||186===t||236===t||255===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}eq_subexpr(){let t,i=new bs(this.context,this.state);this.enterRule(i,28,e.RULE_eq_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1102,this.neq_subexpr(),this.state=1107,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(-32&t)&&1<<t&960;)this.state=1103,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&960?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1104,this.neq_subexpr(),this.state=1109,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}shift_right(){let t=new Es(this.context,this.state);this.enterRule(t,30,e.RULE_shift_right);try{this.enterOuterAlt(t,1),this.state=1110,this.match(e.GREATER),this.state=1111,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}rot_right(){let t=new Ss(this.context,this.state);this.enterRule(t,32,e.RULE_rot_right);try{this.enterOuterAlt(t,1),this.state=1113,this.match(e.GREATER),this.state=1114,this.match(e.GREATER),this.state=1115,this.match(e.PIPE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}double_question(){let t=new ys(this.context,this.state);this.enterRule(t,34,e.RULE_double_question);try{this.enterOuterAlt(t,1),this.state=1117,this.match(e.QUESTION),this.state=1118,this.match(e.QUESTION)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}neq_subexpr(){let t,i=new ws(this.context,this.state);this.enterRule(i,36,e.RULE_neq_subexpr);try{let s;for(this.enterOuterAlt(i,1),this.state=1120,this.bit_subexpr(),this.state=1133,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,33,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){switch(this.state=1128,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,32,this.context)){case 1:this.state=1121,this.match(e.SHIFT_LEFT);break;case 2:this.state=1122,this.shift_right();break;case 3:this.state=1123,this.match(e.ROT_LEFT);break;case 4:this.state=1124,this.rot_right();break;case 5:this.state=1125,this.match(e.AMPERSAND);break;case 6:this.state=1126,this.match(e.PIPE);break;case 7:this.state=1127,this.match(e.CARET)}this.state=1130,this.bit_subexpr()}this.state=1135,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,33,this.context)}switch(this.state=1144,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,35,this.context)){case 1:this.state=1136,this.double_question(),this.state=1137,this.neq_subexpr();break;case 2:this.state=1140,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=1139,this.match(e.QUESTION),this.state=1142,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(28===t)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bit_subexpr(){let t,i=new Ls(this.context,this.state);this.enterRule(i,38,e.RULE_bit_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1146,this.add_subexpr(),this.state=1151,this.errorHandler.sync(this),t=this.tokenStream.LA(1);17===t||18===t;)this.state=1147,t=this.tokenStream.LA(1),17===t||18===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1148,this.add_subexpr(),this.state=1153,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}add_subexpr(){let t,i=new Rs(this.context,this.state);this.enterRule(i,40,e.RULE_add_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1154,this.mul_subexpr(),this.state=1159,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(-32&t)&&1<<t&7340032;)this.state=1155,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&7340032?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1156,this.mul_subexpr(),this.state=1161,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}mul_subexpr(){let t,i=new Ts(this.context,this.state);this.enterRule(i,42,e.RULE_mul_subexpr);try{for(this.enterOuterAlt(i,1),this.state=1162,this.con_subexpr(),this.state=1167,this.errorHandler.sync(this),t=this.tokenStream.LA(1);14===t;)this.state=1163,this.match(e.DOUBLE_PIPE),this.state=1164,this.con_subexpr(),this.state=1169,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}con_subexpr(){let t=new xs(this.context,this.state);this.enterRule(t,44,e.RULE_con_subexpr);try{switch(this.state=1174,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,39,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1170,this.unary_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1171,this.unary_op(),this.state=1172,this.unary_subexpr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}unary_op(){let t,i=new ks(this.context,this.state);this.enterRule(i,46,e.RULE_unary_op);try{this.enterOuterAlt(i,1),this.state=1176,t=this.tokenStream.LA(1),!(-32&t)&&1<<t&917504||197===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}unary_subexpr_suffix(){let t,i=new As(this.context,this.state);this.enterRule(i,48,e.RULE_unary_subexpr_suffix);try{for(this.enterOuterAlt(i,1),this.state=1190,this.errorHandler.sync(this),t=this.tokenStream.LA(1);!(t-24&-32)&&1<<t-24&32773;){switch(this.state=1186,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LBRACE_SQUARE:this.state=1178,this.key_expr();break;case e.LPAREN:this.state=1179,this.invoke_expr();break;case e.DOT:switch(this.state=1180,this.match(e.DOT),this.state=1184,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.state=1181,this.bind_parameter();break;case e.DIGITS:this.state=1182,this.match(e.DIGITS);break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1183,this.an_id_or_type();break;default:throw new ct(this)}break;default:throw new ct(this)}this.state=1192,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}this.state=1195,this.errorHandler.sync(this),t=this.tokenStream.LA(1),76===t&&(this.state=1193,this.match(e.COLLATE),this.state=1194,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}unary_casual_subexpr(){let t=new Ns(this.context,this.state);this.enterRule(t,50,e.RULE_unary_casual_subexpr);try{switch(this.enterOuterAlt(t,1),this.state=1199,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,44,this.context)){case 1:this.state=1197,this.id_expr();break;case 2:this.state=1198,this.atom_expr()}this.state=1201,this.unary_subexpr_suffix()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_unary_casual_subexpr(){let t=new Is(this.context,this.state);this.enterRule(t,52,e.RULE_in_unary_casual_subexpr);try{switch(this.enterOuterAlt(t,1),this.state=1205,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,45,this.context)){case 1:this.state=1203,this.id_expr_in();break;case 2:this.state=1204,this.in_atom_expr()}this.state=1207,this.unary_subexpr_suffix()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}unary_subexpr(){let t=new Os(this.context,this.state);this.enterRule(t,54,e.RULE_unary_subexpr);try{switch(this.state=1211,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,46,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1209,this.unary_casual_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1210,this.json_api_expr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_unary_subexpr(){let t=new Ds(this.context,this.state);this.enterRule(t,56,e.RULE_in_unary_subexpr);try{switch(this.state=1215,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,47,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1213,this.in_unary_casual_subexpr();break;case 2:this.enterOuterAlt(t,2),this.state=1214,this.json_api_expr()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}list_literal(){let t,i=new Ms(this.context,this.state);this.enterRule(i,58,e.RULE_list_literal);try{this.enterOuterAlt(i,1),this.state=1217,this.match(e.LBRACE_SQUARE),this.state=1219,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-15&-32)&&1<<t-15&4278585373||!(t-47&-32)&&1<<t-47&4294959103||!(t-79&-32)&&1<<t-79&4294967295||!(t-111&-32)&&1<<t-111&4294967295||!(t-143&-32)&&1<<t-143&4294967287||!(t-175&-32)&&1<<t-175&4294967295||!(t-207&-32)&&1<<t-207&4294967295||!(t-239&-32)&&1<<t-239&4294967291||!(t-271&-32)&&1<<t-271&4294967295||!(t-303&-32)&&1<<t-303&8388607)&&(this.state=1218,this.expr_list()),this.state=1222,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1221,this.match(e.COMMA)),this.state=1224,this.match(e.RBRACE_SQUARE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_dict_list(){let t,i=new Ps(this.context,this.state);this.enterRule(i,60,e.RULE_expr_dict_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1226,this.expr(),this.state=1229,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=1227,this.match(e.COLON),this.state=1228,this.expr()),this.state=1239,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,52,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1231,this.match(e.COMMA),this.state=1232,this.expr(),this.state=1235,this.errorHandler.sync(this),t=this.tokenStream.LA(1),29===t&&(this.state=1233,this.match(e.COLON),this.state=1234,this.expr())),this.state=1241,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,52,this.context)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}dict_literal(){let t,i=new Fs(this.context,this.state);this.enterRule(i,62,e.RULE_dict_literal);try{this.enterOuterAlt(i,1),this.state=1242,this.match(e.LBRACE_CURLY),this.state=1244,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-15&-32)&&1<<t-15&4278585373||!(t-47&-32)&&1<<t-47&4294959103||!(t-79&-32)&&1<<t-79&4294967295||!(t-111&-32)&&1<<t-111&4294967295||!(t-143&-32)&&1<<t-143&4294967287||!(t-175&-32)&&1<<t-175&4294967295||!(t-207&-32)&&1<<t-207&4294967295||!(t-239&-32)&&1<<t-239&4294967291||!(t-271&-32)&&1<<t-271&4294967295||!(t-303&-32)&&1<<t-303&8388607)&&(this.state=1243,this.expr_dict_list()),this.state=1247,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1246,this.match(e.COMMA)),this.state=1249,this.match(e.RBRACE_CURLY)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_struct_list(){let t=new Us(this.context,this.state);this.enterRule(t,64,e.RULE_expr_struct_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1251,this.expr(),this.state=1252,this.match(e.COLON),this.state=1253,this.expr(),this.state=1261,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,55,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1254,this.match(e.COMMA),this.state=1255,this.expr(),this.state=1256,this.match(e.COLON),this.state=1257,this.expr()),this.state=1263,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,55,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_literal(){let t,i=new Hs(this.context,this.state);this.enterRule(i,66,e.RULE_struct_literal);try{this.enterOuterAlt(i,1),this.state=1264,this.match(e.STRUCT_OPEN),this.state=1266,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-15&-32)&&1<<t-15&4278585373||!(t-47&-32)&&1<<t-47&4294959103||!(t-79&-32)&&1<<t-79&4294967295||!(t-111&-32)&&1<<t-111&4294967295||!(t-143&-32)&&1<<t-143&4294967287||!(t-175&-32)&&1<<t-175&4294967295||!(t-207&-32)&&1<<t-207&4294967295||!(t-239&-32)&&1<<t-239&4294967291||!(t-271&-32)&&1<<t-271&4294967295||!(t-303&-32)&&1<<t-303&8388607)&&(this.state=1265,this.expr_struct_list()),this.state=1269,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1268,this.match(e.COMMA)),this.state=1271,this.match(e.STRUCT_CLOSE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}atom_expr(){let t=new Bs(this.context,this.state);this.enterRule(t,68,e.RULE_atom_expr);try{switch(this.state=1290,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,59,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1273,this.literal_value();break;case 2:this.enterOuterAlt(t,2),this.state=1274,this.bind_parameter();break;case 3:this.enterOuterAlt(t,3),this.state=1275,this.lambda();break;case 4:this.enterOuterAlt(t,4),this.state=1276,this.cast_expr();break;case 5:this.enterOuterAlt(t,5),this.state=1277,this.exists_expr();break;case 6:this.enterOuterAlt(t,6),this.state=1278,this.case_expr();break;case 7:switch(this.enterOuterAlt(t,7),this.state=1279,this.an_id_or_type(),this.state=1280,this.match(e.NAMESPACE),this.state=1283,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1281,this.id_or_type();break;case e.STRING_VALUE:this.state=1282,this.match(e.STRING_VALUE);break;default:throw new ct(this)}break;case 8:this.enterOuterAlt(t,8),this.state=1285,this.value_constructor();break;case 9:this.enterOuterAlt(t,9),this.state=1286,this.bitcast_expr();break;case 10:this.enterOuterAlt(t,10),this.state=1287,this.list_literal();break;case 11:this.enterOuterAlt(t,11),this.state=1288,this.dict_literal();break;case 12:this.enterOuterAlt(t,12),this.state=1289,this.struct_literal()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}in_atom_expr(){let t=new Ws(this.context,this.state);this.enterRule(t,70,e.RULE_in_atom_expr);try{switch(this.state=1312,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,61,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1292,this.literal_value();break;case 2:this.enterOuterAlt(t,2),this.state=1293,this.bind_parameter();break;case 3:this.enterOuterAlt(t,3),this.state=1294,this.lambda();break;case 4:this.enterOuterAlt(t,4),this.state=1295,this.cast_expr();break;case 5:this.enterOuterAlt(t,5),this.state=1296,this.case_expr();break;case 6:switch(this.enterOuterAlt(t,6),this.state=1297,this.an_id_or_type(),this.state=1298,this.match(e.NAMESPACE),this.state=1301,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1299,this.id_or_type();break;case e.STRING_VALUE:this.state=1300,this.match(e.STRING_VALUE);break;default:throw new ct(this)}break;case 7:this.enterOuterAlt(t,7),this.state=1303,this.match(e.LPAREN),this.state=1304,this.select_stmt(),this.state=1305,this.match(e.RPAREN);break;case 8:this.enterOuterAlt(t,8),this.state=1307,this.value_constructor();break;case 9:this.enterOuterAlt(t,9),this.state=1308,this.bitcast_expr();break;case 10:this.enterOuterAlt(t,10),this.state=1309,this.list_literal();break;case 11:this.enterOuterAlt(t,11),this.state=1310,this.dict_literal();break;case 12:this.enterOuterAlt(t,12),this.state=1311,this.struct_literal()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cast_expr(){let t=new Vs(this.context,this.state);this.enterRule(t,72,e.RULE_cast_expr);try{this.enterOuterAlt(t,1),this.state=1314,this.match(e.CAST),this.state=1315,this.match(e.LPAREN),this.state=1316,this.expr(),this.state=1317,this.match(e.AS),this.state=1318,this.type_name_or_bind(),this.state=1319,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}bitcast_expr(){let t=new zs(this.context,this.state);this.enterRule(t,74,e.RULE_bitcast_expr);try{this.enterOuterAlt(t,1),this.state=1321,this.match(e.BITCAST),this.state=1322,this.match(e.LPAREN),this.state=1323,this.expr(),this.state=1324,this.match(e.AS),this.state=1325,this.type_name_simple(),this.state=1326,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}exists_expr(){let t=new Gs(this.context,this.state);this.enterRule(t,76,e.RULE_exists_expr);try{switch(this.enterOuterAlt(t,1),this.state=1328,this.match(e.EXISTS),this.state=1329,this.match(e.LPAREN),this.state=1332,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.state=1330,this.select_stmt();break;case e.VALUES:this.state=1331,this.values_stmt();break;default:throw new ct(this)}this.state=1334,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}case_expr(){let t,i=new js(this.context,this.state);this.enterRule(i,78,e.RULE_case_expr);try{if(this.enterOuterAlt(i,1),1===(this.state=1336,this.match(e.CASE),this.state=1338,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,63,this.context)))this.state=1337,this.expr();this.state=1341,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=1340,this.when_expr(),this.state=1343,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(312===t);this.state=1347,this.errorHandler.sync(this),t=this.tokenStream.LA(1),114===t&&(this.state=1345,this.match(e.ELSE),this.state=1346,this.expr()),this.state=1349,this.match(e.END)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}lambda(){let t,i=new Ks(this.context,this.state);this.enterRule(i,80,e.RULE_lambda);try{if(this.enterOuterAlt(i,1),this.state=1351,this.smart_parenthesis(),this.state=1363,this.errorHandler.sync(this),t=this.tokenStream.LA(1),37===t)switch(this.state=1352,this.match(e.ARROW),this.state=1361,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.state=1353,this.match(e.LPAREN),this.state=1354,this.expr(),this.state=1355,this.match(e.RPAREN);break;case e.LBRACE_CURLY:this.state=1357,this.match(e.LBRACE_CURLY),this.state=1358,this.lambda_body(),this.state=1359,this.match(e.RBRACE_CURLY);break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}in_expr(){let t=new Ys(this.context,this.state);this.enterRule(t,82,e.RULE_in_expr);try{this.enterOuterAlt(t,1),this.state=1365,this.in_unary_subexpr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_api_expr(){let t=new qs(this.context,this.state);this.enterRule(t,84,e.RULE_json_api_expr);try{switch(this.state=1370,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.JSON_VALUE:this.enterOuterAlt(t,1),this.state=1367,this.json_value();break;case e.JSON_EXISTS:this.enterOuterAlt(t,2),this.state=1368,this.json_exists();break;case e.JSON_QUERY:this.enterOuterAlt(t,3),this.state=1369,this.json_query();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}jsonpath_spec(){let t=new $s(this.context,this.state);this.enterRule(t,86,e.RULE_jsonpath_spec);try{this.enterOuterAlt(t,1),this.state=1372,this.match(e.STRING_VALUE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variable_name(){let t=new Qs(this.context,this.state);this.enterRule(t,88,e.RULE_json_variable_name);try{switch(this.state=1376,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1374,this.id_expr();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=1375,this.match(e.STRING_VALUE);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variable(){let t=new Xs(this.context,this.state);this.enterRule(t,90,e.RULE_json_variable);try{this.enterOuterAlt(t,1),this.state=1378,this.expr(),this.state=1379,this.match(e.AS),this.state=1380,this.json_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_variables(){let t,i=new Zs(this.context,this.state);this.enterRule(i,92,e.RULE_json_variables);try{for(this.enterOuterAlt(i,1),this.state=1382,this.json_variable(),this.state=1387,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=1383,this.match(e.COMMA),this.state=1384,this.json_variable(),this.state=1389,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_common_args(){let t,i=new Js(this.context,this.state);this.enterRule(i,94,e.RULE_json_common_args);try{this.enterOuterAlt(i,1),this.state=1390,this.expr(),this.state=1391,this.match(e.COMMA),this.state=1392,this.jsonpath_spec(),this.state=1395,this.errorHandler.sync(this),t=this.tokenStream.LA(1),217===t&&(this.state=1393,this.match(e.PASSING),this.state=1394,this.json_variables())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_case_handler(){let t=new en(this.context,this.state);this.enterRule(t,96,e.RULE_json_case_handler);try{switch(this.state=1401,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ERROR:this.enterOuterAlt(t,1),this.state=1397,this.match(e.ERROR);break;case e.NULL:this.enterOuterAlt(t,2),this.state=1398,this.match(e.NULL);break;case e.DEFAULT:this.enterOuterAlt(t,3),this.state=1399,this.match(e.DEFAULT),this.state=1400,this.expr();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_value(){let t,i=new tn(this.context,this.state);this.enterRule(i,98,e.RULE_json_value);try{for(this.enterOuterAlt(i,1),this.state=1403,this.match(e.JSON_VALUE),this.state=1404,this.match(e.LPAREN),this.state=1405,this.json_common_args(),this.state=1408,this.errorHandler.sync(this),t=this.tokenStream.LA(1),251===t&&(this.state=1406,this.match(e.RETURNING),this.state=1407,this.type_name_simple()),this.state=1416,this.errorHandler.sync(this),t=this.tokenStream.LA(1);98===t||121===t||199===t;)this.state=1410,this.json_case_handler(),this.state=1411,this.match(e.ON),this.state=1412,t=this.tokenStream.LA(1),115===t||121===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1418,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1419,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_exists_handler(){let t,i=new sn(this.context,this.state);this.enterRule(i,100,e.RULE_json_exists_handler);try{this.enterOuterAlt(i,1),this.state=1421,t=this.tokenStream.LA(1),121===t||133===t||293===t||300===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=1422,this.match(e.ON),this.state=1423,this.match(e.ERROR)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_exists(){let t,i=new nn(this.context,this.state);this.enterRule(i,102,e.RULE_json_exists);try{this.enterOuterAlt(i,1),this.state=1425,this.match(e.JSON_EXISTS),this.state=1426,this.match(e.LPAREN),this.state=1427,this.json_common_args(),this.state=1429,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(121===t||133===t||293===t||300===t)&&(this.state=1428,this.json_exists_handler()),this.state=1431,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_query_wrapper(){let t,i=new rn(this.context,this.state);this.enterRule(i,104,e.RULE_json_query_wrapper);try{switch(this.state=1444,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.WITHOUT:this.enterOuterAlt(i,1),this.state=1433,this.match(e.WITHOUT),this.state=1435,this.errorHandler.sync(this),t=this.tokenStream.LA(1),50===t&&(this.state=1434,this.match(e.ARRAY));break;case e.WITH:this.enterOuterAlt(i,2),this.state=1437,this.match(e.WITH),this.state=1439,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(81===t||297===t)&&(this.state=1438,t=this.tokenStream.LA(1),81===t||297===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1442,this.errorHandler.sync(this),t=this.tokenStream.LA(1),50===t&&(this.state=1441,this.match(e.ARRAY));break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}json_query_handler(){let t=new on(this.context,this.state);this.enterRule(t,106,e.RULE_json_query_handler);try{switch(this.state=1452,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,80,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1446,this.match(e.ERROR);break;case 2:this.enterOuterAlt(t,2),this.state=1447,this.match(e.NULL);break;case 3:this.enterOuterAlt(t,3),this.state=1448,this.match(e.EMPTY),this.state=1449,this.match(e.ARRAY);break;case 4:this.enterOuterAlt(t,4),this.state=1450,this.match(e.EMPTY),this.state=1451,this.match(e.OBJECT)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}json_query(){let t,i=new an(this.context,this.state);this.enterRule(i,108,e.RULE_json_query);try{if(this.enterOuterAlt(i,1),1===(this.state=1454,this.match(e.JSON_QUERY),this.state=1455,this.match(e.LPAREN),this.state=1456,this.json_common_args(),this.state=1460,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(315===t||316===t)&&(this.state=1457,this.json_query_wrapper(),this.state=1458,this.match(e.WRAPPER)),this.state=1466,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,82,this.context)))this.state=1462,this.json_query_handler(),this.state=1463,this.match(e.ON),this.state=1464,this.match(e.EMPTY);this.state=1472,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(115===t||121===t||199===t)&&(this.state=1468,this.json_query_handler(),this.state=1469,this.match(e.ON),this.state=1470,this.match(e.ERROR)),this.state=1474,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}smart_parenthesis(){let t,i=new ln(this.context,this.state);this.enterRule(i,110,e.RULE_smart_parenthesis);try{this.enterOuterAlt(i,1),this.state=1476,this.match(e.LPAREN),this.state=1478,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-15&-32)&&1<<t-15&4278585373||!(t-47&-32)&&1<<t-47&4294959103||!(t-79&-32)&&1<<t-79&4294967295||!(t-111&-32)&&1<<t-111&4294967295||!(t-143&-32)&&1<<t-143&4294967287||!(t-175&-32)&&1<<t-175&4294967295||!(t-207&-32)&&1<<t-207&4294967295||!(t-239&-32)&&1<<t-239&4294967291||!(t-271&-32)&&1<<t-271&4294967295||!(t-303&-32)&&1<<t-303&8388607)&&(this.state=1477,this.named_expr_list()),this.state=1481,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1480,this.match(e.COMMA)),this.state=1483,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}expr_list(){let t=new cn(this.context,this.state);this.enterRule(t,112,e.RULE_expr_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1485,this.expr(),this.state=1490,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,86,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1486,this.match(e.COMMA),this.state=1487,this.expr()),this.state=1492,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,86,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pure_column_list(){let t,i=new hn(this.context,this.state);this.enterRule(i,114,e.RULE_pure_column_list);try{for(this.enterOuterAlt(i,1),this.state=1493,this.match(e.LPAREN),this.state=1494,this.an_id(),this.state=1499,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=1495,this.match(e.COMMA),this.state=1496,this.an_id(),this.state=1501,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1502,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}pure_column_or_named(){let t=new dn(this.context,this.state);this.enterRule(t,116,e.RULE_pure_column_or_named);try{switch(this.state=1506,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.enterOuterAlt(t,1),this.state=1504,this.bind_parameter();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,2),this.state=1505,this.an_id();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pure_column_or_named_list(){let t,i=new un(this.context,this.state);this.enterRule(i,118,e.RULE_pure_column_or_named_list);try{for(this.enterOuterAlt(i,1),this.state=1508,this.match(e.LPAREN),this.state=1509,this.pure_column_or_named(),this.state=1514,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=1510,this.match(e.COMMA),this.state=1511,this.pure_column_or_named(),this.state=1516,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1517,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}column_name(){let t=new gn(this.context,this.state);this.enterRule(t,120,e.RULE_column_name);try{this.enterOuterAlt(t,1),this.state=1519,this.opt_id_prefix(),this.state=1520,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}without_column_name(){let t=new pn(this.context,this.state);this.enterRule(t,122,e.RULE_without_column_name);try{switch(this.state=1527,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,90,this.context)){case 1:this.enterOuterAlt(t,1),this.state=1522,this.an_id(),this.state=1523,this.match(e.DOT),this.state=1524,this.an_id();break;case 2:this.enterOuterAlt(t,2),this.state=1526,this.an_id_without()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}column_list(){let t,i=new mn(this.context,this.state);this.enterRule(i,124,e.RULE_column_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1529,this.column_name(),this.state=1534,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1530,this.match(e.COMMA),this.state=1531,this.column_name()),this.state=1536,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,91,this.context);this.state=1538,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1537,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}without_column_list(){let t,i=new fn(this.context,this.state);this.enterRule(i,126,e.RULE_without_column_list);try{let s;for(this.enterOuterAlt(i,1),this.state=1540,this.without_column_name(),this.state=1545,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1541,this.match(e.COMMA),this.state=1542,this.without_column_name()),this.state=1547,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,93,this.context);this.state=1549,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1548,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_expr(){let t,i=new _n(this.context,this.state);this.enterRule(i,128,e.RULE_named_expr);try{this.enterOuterAlt(i,1),this.state=1551,this.expr(),this.state=1554,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=1552,this.match(e.AS),this.state=1553,this.an_id_or_type())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_expr_list(){let t=new vn(this.context,this.state);this.enterRule(t,130,e.RULE_named_expr_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1556,this.named_expr(),this.state=1561,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,96,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1557,this.match(e.COMMA),this.state=1558,this.named_expr()),this.state=1563,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,96,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}invoke_expr(){let t,i=new Cn(this.context,this.state);this.enterRule(i,132,e.RULE_invoke_expr);try{switch(this.enterOuterAlt(i,1),this.state=1564,this.match(e.LPAREN),this.state=1571,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.STRUCT_OPEN:case e.PLUS:case e.MINUS:case e.TILDA:case e.LPAREN:case e.DOLLAR:case e.LBRACE_CURLY:case e.LBRACE_SQUARE:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FALSE:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TRUE:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:case e.DIGITS:case e.INTEGER_VALUE:case e.REAL:case e.BLOB:this.state=1565,this.opt_set_quantifier(),this.state=1566,this.named_expr_list(),this.state=1568,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1567,this.match(e.COMMA));break;case e.ASTERISK:this.state=1570,this.match(e.ASTERISK);case e.RPAREN:}this.state=1573,this.match(e.RPAREN),this.state=1574,this.invoke_expr_tail()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}invoke_expr_tail(){let t,i=new bn(this.context,this.state);this.enterRule(i,134,e.RULE_invoke_expr_tail);try{switch(this.enterOuterAlt(i,1),this.state=1578,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,99,this.context)){case 1:this.state=1576,this.null_treatment();break;case 2:this.state=1577,this.filter_clause()}this.state=1582,this.errorHandler.sync(this),t=this.tokenStream.LA(1),214===t&&(this.state=1580,this.match(e.OVER),this.state=1581,this.window_name_or_specification())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}using_call_expr(){let t=new En(this.context,this.state);this.enterRule(t,136,e.RULE_using_call_expr);try{switch(this.enterOuterAlt(t,1),this.state=1592,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,101,this.context)){case 1:this.state=1584,this.an_id_or_type(),this.state=1585,this.match(e.NAMESPACE),this.state=1586,this.an_id_or_type();break;case 2:this.state=1588,this.an_id_expr();break;case 3:this.state=1589,this.bind_parameter();break;case 4:this.state=1590,this.match(e.EXTERNAL),this.state=1591,this.match(e.FUNCTION)}this.state=1594,this.invoke_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}key_expr(){let t=new Sn(this.context,this.state);this.enterRule(t,138,e.RULE_key_expr);try{this.enterOuterAlt(t,1),this.state=1596,this.match(e.LBRACE_SQUARE),this.state=1597,this.expr(),this.state=1598,this.match(e.RBRACE_SQUARE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}when_expr(){let t=new yn(this.context,this.state);this.enterRule(t,140,e.RULE_when_expr);try{this.enterOuterAlt(t,1),this.state=1600,this.match(e.WHEN),this.state=1601,this.expr(),this.state=1602,this.match(e.THEN),this.state=1603,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}literal_value(){let t=new wn(this.context,this.state);this.enterRule(t,142,e.RULE_literal_value);try{switch(this.state=1615,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,1),this.state=1605,this.integer();break;case e.REAL:this.enterOuterAlt(t,2),this.state=1606,this.real();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=1607,this.match(e.STRING_VALUE);break;case e.BLOB:this.enterOuterAlt(t,4),this.state=1608,this.match(e.BLOB);break;case e.NULL:this.enterOuterAlt(t,5),this.state=1609,this.match(e.NULL);break;case e.CURRENT_TIME:this.enterOuterAlt(t,6),this.state=1610,this.match(e.CURRENT_TIME);break;case e.CURRENT_DATE:this.enterOuterAlt(t,7),this.state=1611,this.match(e.CURRENT_DATE);break;case e.CURRENT_TIMESTAMP:this.enterOuterAlt(t,8),this.state=1612,this.match(e.CURRENT_TIMESTAMP);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,9),this.state=1613,this.bool_value();break;case e.EMPTY_ACTION:this.enterOuterAlt(t,10),this.state=1614,this.match(e.EMPTY_ACTION);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}bind_parameter(){let t=new Ln(this.context,this.state);this.enterRule(t,144,e.RULE_bind_parameter);try{switch(this.enterOuterAlt(t,1),this.state=1617,this.match(e.DOLLAR),this.state=1621,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1618,this.an_id_or_type();break;case e.TRUE:this.state=1619,this.match(e.TRUE);break;case e.FALSE:this.state=1620,this.match(e.FALSE);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_bind_parameter(){let t,i=new Rn(this.context,this.state);this.enterRule(i,146,e.RULE_opt_bind_parameter);try{this.enterOuterAlt(i,1),this.state=1623,this.bind_parameter(),this.state=1625,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=1624,this.match(e.QUESTION))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bind_parameter_list(){let t,i=new Tn(this.context,this.state);this.enterRule(i,148,e.RULE_bind_parameter_list);try{for(this.enterOuterAlt(i,1),this.state=1627,this.bind_parameter(),this.state=1632,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=1628,this.match(e.COMMA),this.state=1629,this.bind_parameter(),this.state=1634,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_bind_parameter(){let t,i=new xn(this.context,this.state);this.enterRule(i,150,e.RULE_named_bind_parameter);try{this.enterOuterAlt(i,1),this.state=1635,this.bind_parameter(),this.state=1638,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=1636,this.match(e.AS),this.state=1637,this.bind_parameter())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_bind_parameter_list(){let t,i=new kn(this.context,this.state);this.enterRule(i,152,e.RULE_named_bind_parameter_list);try{for(this.enterOuterAlt(i,1),this.state=1640,this.named_bind_parameter(),this.state=1645,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=1641,this.match(e.COMMA),this.state=1642,this.named_bind_parameter(),this.state=1647,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}signed_number(){let t,i=new An(this.context,this.state);this.enterRule(i,154,e.RULE_signed_number);try{switch(this.enterOuterAlt(i,1),this.state=1649,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(17===t||18===t)&&(this.state=1648,t=this.tokenStream.LA(1),17===t||18===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=1653,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.state=1651,this.integer();break;case e.REAL:this.state=1652,this.real();break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_simple(){let t=new Nn(this.context,this.state);this.enterRule(t,156,e.RULE_type_name_simple);try{this.enterOuterAlt(t,1),this.state=1655,this.an_id_pure()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}integer_or_bind(){let t=new In(this.context,this.state);this.enterRule(t,158,e.RULE_integer_or_bind);try{switch(this.state=1659,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,1),this.state=1657,this.integer();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=1658,this.bind_parameter();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tag(){let t=new On(this.context,this.state);this.enterRule(t,160,e.RULE_type_name_tag);try{switch(this.state=1664,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1661,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=1662,this.match(e.STRING_VALUE);break;case e.DOLLAR:this.enterOuterAlt(t,3),this.state=1663,this.bind_parameter();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_arg(){let t=new Dn(this.context,this.state);this.enterRule(t,162,e.RULE_struct_arg);try{this.enterOuterAlt(t,1),this.state=1666,this.type_name_tag(),this.state=1667,this.match(e.COLON),this.state=1668,this.type_name_or_bind()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}struct_arg_positional(){let t,i=new Mn(this.context,this.state);this.enterRule(i,164,e.RULE_struct_arg_positional);try{switch(this.state=1682,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,114,this.context)){case 1:this.enterOuterAlt(i,1),this.state=1670,this.type_name_tag(),this.state=1671,this.type_name_or_bind(),this.state=1676,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(197===t||199===t)&&(this.state=1673,this.errorHandler.sync(this),t=this.tokenStream.LA(1),197===t&&(this.state=1672,this.match(e.NOT)),this.state=1675,this.match(e.NULL));break;case 2:this.enterOuterAlt(i,2),this.state=1678,this.type_name_or_bind(),this.state=1679,this.match(e.AS),this.state=1680,this.type_name_tag()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}variant_arg(){let t=new Pn(this.context,this.state);this.enterRule(t,166,e.RULE_variant_arg);try{if(this.enterOuterAlt(t,1),1===(this.state=1687,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,115,this.context)))this.state=1684,this.type_name_tag(),this.state=1685,this.match(e.COLON);this.state=1689,this.type_name_or_bind()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}callable_arg(){let t,i=new Fn(this.context,this.state);this.enterRule(i,168,e.RULE_callable_arg);try{this.enterOuterAlt(i,1),this.state=1691,this.variant_arg(),this.state=1695,this.errorHandler.sync(this),t=this.tokenStream.LA(1),33===t&&(this.state=1692,this.match(e.LBRACE_CURLY),this.state=1693,this.match(e.AUTOMAP),this.state=1694,this.match(e.RBRACE_CURLY))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}callable_arg_list(){let t=new Un(this.context,this.state);this.enterRule(t,170,e.RULE_callable_arg_list);try{let i;for(this.enterOuterAlt(t,1),this.state=1697,this.callable_arg(),this.state=1702,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,117,this.context);2!==i&&i!==Z.INVALID_ALT_NUMBER;)1===i&&(this.state=1698,this.match(e.COMMA),this.state=1699,this.callable_arg()),this.state=1704,this.errorHandler.sync(this),i=this.interpreter.adaptivePredict(this.tokenStream,117,this.context)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_decimal(){let t=new Hn(this.context,this.state);this.enterRule(t,172,e.RULE_type_name_decimal);try{this.enterOuterAlt(t,1),this.state=1705,this.match(e.DECIMAL),this.state=1706,this.match(e.LPAREN),this.state=1707,this.integer_or_bind(),this.state=1708,this.match(e.COMMA),this.state=1709,this.integer_or_bind(),this.state=1710,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_optional(){let t=new Bn(this.context,this.state);this.enterRule(t,174,e.RULE_type_name_optional);try{this.enterOuterAlt(t,1),this.state=1712,this.match(e.OPTIONAL),this.state=1713,this.match(e.LESS),this.state=1714,this.type_name_or_bind(),this.state=1715,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tuple(){let t,i=new Wn(this.context,this.state);this.enterRule(i,176,e.RULE_type_name_tuple);try{let s;switch(this.enterOuterAlt(i,1),this.state=1717,this.match(e.TUPLE),this.state=1734,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LESS:if(this.state=1718,this.match(e.LESS),this.state=1730,this.errorHandler.sync(this),t=this.tokenStream.LA(1),32===t||69===t||96===t||106===t||119===t||138===t||183===t||209===t||!(t-245&-32)&&1<<t-245&406847489||!(t-284&-32)&&1<<t-284&33555457||!(t-319&-32)&&1<<t-319&7){for(this.state=1719,this.type_name_or_bind(),this.state=1724,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1720,this.match(e.COMMA),this.state=1721,this.type_name_or_bind()),this.state=1726,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,118,this.context);this.state=1728,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1727,this.match(e.COMMA))}this.state=1732,this.match(e.GREATER);break;case e.NOT_EQUALS2:this.state=1733,this.match(e.NOT_EQUALS2);break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_struct(){let t,i=new Vn(this.context,this.state);this.enterRule(i,178,e.RULE_type_name_struct);try{let s;switch(this.enterOuterAlt(i,1),this.state=1736,this.match(e.STRUCT),this.state=1753,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LESS:if(this.state=1737,this.match(e.LESS),this.state=1749,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-32&-32)&&1<<t-32&4026531585||!(t-64&-32)&&1<<t-64&4294967263||!(t-96&-32)&&1<<t-96&4286577663||!(t-128&-32)&&1<<t-128&4294704095||!(t-160&-32)&&1<<t-160&4286578687||!(t-192&-32)&&1<<t-192&4294836223||!(t-224&-32)&&1<<t-224&4292739071||!(t-256&-32)&&1<<t-256&4026398719||!(t-288&-32)&&1<<t-288&4292870047||320===t||321===t){for(this.state=1738,this.struct_arg(),this.state=1743,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1739,this.match(e.COMMA),this.state=1740,this.struct_arg()),this.state=1745,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,122,this.context);this.state=1747,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1746,this.match(e.COMMA))}this.state=1751,this.match(e.GREATER);break;case e.NOT_EQUALS2:this.state=1752,this.match(e.NOT_EQUALS2);break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_variant(){let t,i=new zn(this.context,this.state);this.enterRule(i,180,e.RULE_type_name_variant);try{let s;for(this.enterOuterAlt(i,1),this.state=1755,this.match(e.VARIANT),this.state=1756,this.match(e.LESS),this.state=1757,this.variant_arg(),this.state=1762,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1758,this.match(e.COMMA),this.state=1759,this.variant_arg()),this.state=1764,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,126,this.context);this.state=1766,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1765,this.match(e.COMMA)),this.state=1768,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_list(){let t=new Gn(this.context,this.state);this.enterRule(t,182,e.RULE_type_name_list);try{this.enterOuterAlt(t,1),this.state=1770,this.match(e.LIST),this.state=1771,this.match(e.LESS),this.state=1772,this.type_name_or_bind(),this.state=1773,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_stream(){let t=new jn(this.context,this.state);this.enterRule(t,184,e.RULE_type_name_stream);try{this.enterOuterAlt(t,1),this.state=1775,this.match(e.STREAM),this.state=1776,this.match(e.LESS),this.state=1777,this.type_name_or_bind(),this.state=1778,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_flow(){let t=new Kn(this.context,this.state);this.enterRule(t,186,e.RULE_type_name_flow);try{this.enterOuterAlt(t,1),this.state=1780,this.match(e.FLOW),this.state=1781,this.match(e.LESS),this.state=1782,this.type_name_or_bind(),this.state=1783,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_dict(){let t=new Yn(this.context,this.state);this.enterRule(t,188,e.RULE_type_name_dict);try{this.enterOuterAlt(t,1),this.state=1785,this.match(e.DICT),this.state=1786,this.match(e.LESS),this.state=1787,this.type_name_or_bind(),this.state=1788,this.match(e.COMMA),this.state=1789,this.type_name_or_bind(),this.state=1790,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_set(){let t=new qn(this.context,this.state);this.enterRule(t,190,e.RULE_type_name_set);try{this.enterOuterAlt(t,1),this.state=1792,this.match(e.SET),this.state=1793,this.match(e.LESS),this.state=1794,this.type_name_or_bind(),this.state=1795,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_enum(){let t,i=new $n(this.context,this.state);this.enterRule(i,192,e.RULE_type_name_enum);try{let s;for(this.enterOuterAlt(i,1),this.state=1797,this.match(e.ENUM),this.state=1798,this.match(e.LESS),this.state=1799,this.type_name_tag(),this.state=1804,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=1800,this.match(e.COMMA),this.state=1801,this.type_name_tag()),this.state=1806,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,128,this.context);this.state=1808,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1807,this.match(e.COMMA)),this.state=1810,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_resource(){let t=new Qn(this.context,this.state);this.enterRule(t,194,e.RULE_type_name_resource);try{this.enterOuterAlt(t,1),this.state=1812,this.match(e.RESOURCE),this.state=1813,this.match(e.LESS),this.state=1814,this.type_name_tag(),this.state=1815,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_tagged(){let t=new Xn(this.context,this.state);this.enterRule(t,196,e.RULE_type_name_tagged);try{this.enterOuterAlt(t,1),this.state=1817,this.match(e.TAGGED),this.state=1818,this.match(e.LESS),this.state=1819,this.type_name_or_bind(),this.state=1820,this.match(e.COMMA),this.state=1821,this.type_name_tag(),this.state=1822,this.match(e.GREATER)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}type_name_callable(){let t,i=new Zn(this.context,this.state);this.enterRule(i,198,e.RULE_type_name_callable);try{this.enterOuterAlt(i,1),this.state=1824,this.match(e.CALLABLE),this.state=1825,this.match(e.LESS),this.state=1826,this.match(e.LPAREN),this.state=1828,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-32&-32)&&1<<t-32&4026531585||!(t-64&-32)&&1<<t-64&4294967295||!(t-96&-32)&&1<<t-96&4294967295||!(t-128&-32)&&1<<t-128&4294705119||!(t-160&-32)&&1<<t-160&4294967295||!(t-192&-32)&&1<<t-192&4294967295||!(t-224&-32)&&1<<t-224&4294836223||!(t-256&-32)&&1<<t-256&4294967295||!(t-288&-32)&&1<<t-288&4294967263||320===t||321===t)&&(this.state=1827,this.callable_arg_list()),this.state=1831,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=1830,this.match(e.COMMA)),this.state=1837,this.errorHandler.sync(this),t=this.tokenStream.LA(1),39===t&&(this.state=1833,this.match(e.LBRACE_SQUARE),this.state=1834,this.callable_arg_list(),this.state=1835,this.match(e.RBRACE_SQUARE)),this.state=1839,this.match(e.RPAREN),this.state=1840,this.match(e.ARROW),this.state=1841,this.type_name_or_bind(),this.state=1842,this.match(e.GREATER)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_composite(){let t,i=new Jn(this.context,this.state);this.enterRule(i,200,e.RULE_type_name_composite);try{switch(this.enterOuterAlt(i,1),this.state=1857,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.OPTIONAL:this.state=1844,this.type_name_optional();break;case e.TUPLE:this.state=1845,this.type_name_tuple();break;case e.STRUCT:this.state=1846,this.type_name_struct();break;case e.VARIANT:this.state=1847,this.type_name_variant();break;case e.LIST:this.state=1848,this.type_name_list();break;case e.STREAM:this.state=1849,this.type_name_stream();break;case e.FLOW:this.state=1850,this.type_name_flow();break;case e.DICT:this.state=1851,this.type_name_dict();break;case e.SET:this.state=1852,this.type_name_set();break;case e.ENUM:this.state=1853,this.type_name_enum();break;case e.RESOURCE:this.state=1854,this.type_name_resource();break;case e.TAGGED:this.state=1855,this.type_name_tagged();break;case e.CALLABLE:this.state=1856,this.type_name_callable();break;default:throw new ct(this)}for(this.state=1862,this.errorHandler.sync(this),t=this.tokenStream.LA(1);28===t;)this.state=1859,this.match(e.QUESTION),this.state=1864,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name(){let t,i=new er(this.context,this.state);this.enterRule(i,202,e.RULE_type_name);try{switch(this.state=1876,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STREAM:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(i,1),this.state=1865,this.type_name_composite();break;case e.DECIMAL:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:switch(this.enterOuterAlt(i,2),this.state=1868,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DECIMAL:this.state=1866,this.type_name_decimal();break;case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=1867,this.type_name_simple();break;default:throw new ct(this)}for(this.state=1873,this.errorHandler.sync(this),t=this.tokenStream.LA(1);28===t;)this.state=1870,this.match(e.QUESTION),this.state=1875,this.errorHandler.sync(this),t=this.tokenStream.LA(1);break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_name_or_bind(){let t=new tr(this.context,this.state);this.enterRule(t,204,e.RULE_type_name_or_bind);try{switch(this.state=1880,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CALLABLE:case e.DECIMAL:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STREAM:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=1878,this.type_name();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=1879,this.bind_parameter();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}value_constructor_literal(){let t=new ir(this.context,this.state);this.enterRule(t,206,e.RULE_value_constructor_literal);try{this.enterOuterAlt(t,1),this.state=1882,this.match(e.STRING_VALUE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}value_constructor(){let t=new sr(this.context,this.state);this.enterRule(t,208,e.RULE_value_constructor);try{switch(this.state=1907,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.VARIANT:this.enterOuterAlt(t,1),this.state=1884,this.match(e.VARIANT),this.state=1885,this.match(e.LPAREN),this.state=1886,this.expr(),this.state=1887,this.match(e.COMMA),this.state=1888,this.expr(),this.state=1889,this.match(e.COMMA),this.state=1890,this.expr(),this.state=1891,this.match(e.RPAREN);break;case e.ENUM:this.enterOuterAlt(t,2),this.state=1893,this.match(e.ENUM),this.state=1894,this.match(e.LPAREN),this.state=1895,this.expr(),this.state=1896,this.match(e.COMMA),this.state=1897,this.expr(),this.state=1898,this.match(e.RPAREN);break;case e.CALLABLE:this.enterOuterAlt(t,3),this.state=1900,this.match(e.CALLABLE),this.state=1901,this.match(e.LPAREN),this.state=1902,this.expr(),this.state=1903,this.match(e.COMMA),this.state=1904,this.expr(),this.state=1905,this.match(e.RPAREN);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}declare_stmt(){let t,i=new nr(this.context,this.state);this.enterRule(i,210,e.RULE_declare_stmt);try{this.enterOuterAlt(i,1),this.state=1909,this.match(e.DECLARE),this.state=1910,this.bind_parameter(),this.state=1911,this.match(e.AS),this.state=1912,this.type_name(),this.state=1915,this.errorHandler.sync(this),t=this.tokenStream.LA(1),2===t&&(this.state=1913,this.match(e.EQUALS),this.state=1914,this.literal_value())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}module_path(){let t,i=new rr(this.context,this.state);this.enterRule(i,212,e.RULE_module_path);try{for(this.enterOuterAlt(i,1),this.state=1918,this.errorHandler.sync(this),t=this.tokenStream.LA(1),24===t&&(this.state=1917,this.match(e.DOT)),this.state=1920,this.an_id(),this.state=1925,this.errorHandler.sync(this),t=this.tokenStream.LA(1);24===t;)this.state=1921,this.match(e.DOT),this.state=1922,this.an_id(),this.state=1927,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}import_stmt(){let t=new or(this.context,this.state);this.enterRule(t,214,e.RULE_import_stmt);try{this.enterOuterAlt(t,1),this.state=1928,this.match(e.IMPORT),this.state=1929,this.module_path(),this.state=1930,this.match(e.SYMBOLS),this.state=1931,this.named_bind_parameter_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}export_stmt(){let t=new ar(this.context,this.state);this.enterRule(t,216,e.RULE_export_stmt);try{this.enterOuterAlt(t,1),this.state=1933,this.match(e.EXPORT),this.state=1934,this.bind_parameter_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}call_action(){let t,i=new lr(this.context,this.state);this.enterRule(i,218,e.RULE_call_action);try{switch(this.enterOuterAlt(i,1),this.state=1938,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:this.state=1936,this.bind_parameter();break;case e.EMPTY_ACTION:this.state=1937,this.match(e.EMPTY_ACTION);break;default:throw new ct(this)}this.state=1940,this.match(e.LPAREN),this.state=1942,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-15&-32)&&1<<t-15&4278585373||!(t-47&-32)&&1<<t-47&4294959103||!(t-79&-32)&&1<<t-79&4294967295||!(t-111&-32)&&1<<t-111&4294967295||!(t-143&-32)&&1<<t-143&4294967287||!(t-175&-32)&&1<<t-175&4294967295||!(t-207&-32)&&1<<t-207&4294967295||!(t-239&-32)&&1<<t-239&4294967291||!(t-271&-32)&&1<<t-271&4294967295||!(t-303&-32)&&1<<t-303&8388607)&&(this.state=1941,this.expr_list()),this.state=1944,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}inline_action(){let t=new cr(this.context,this.state);this.enterRule(t,220,e.RULE_inline_action);try{this.enterOuterAlt(t,1),this.state=1946,this.match(e.BEGIN),this.state=1947,this.define_action_or_subquery_body(),this.state=1948,this.match(e.END),this.state=1949,this.match(e.DO)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}do_stmt(){let t=new hr(this.context,this.state);this.enterRule(t,222,e.RULE_do_stmt);try{switch(this.enterOuterAlt(t,1),this.state=1951,this.match(e.DO),this.state=1954,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.EMPTY_ACTION:this.state=1952,this.call_action();break;case e.BEGIN:this.state=1953,this.inline_action();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}pragma_stmt(){let t,i=new dr(this.context,this.state);this.enterRule(i,224,e.RULE_pragma_stmt);try{switch(this.enterOuterAlt(i,1),this.state=1956,this.match(e.PRAGMA),this.state=1957,this.opt_id_prefix_or_type(),this.state=1958,this.an_id(),this.state=1972,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EQUALS:this.state=1959,this.match(e.EQUALS),this.state=1960,this.pragma_value();break;case e.LPAREN:for(this.state=1961,this.match(e.LPAREN),this.state=1962,this.pragma_value(),this.state=1967,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=1963,this.match(e.COMMA),this.state=1964,this.pragma_value(),this.state=1969,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=1970,this.match(e.RPAREN);case e.EOF:case e.SEMICOLON:case e.END:}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}pragma_value(){let t=new ur(this.context,this.state);this.enterRule(t,226,e.RULE_pragma_value);try{switch(this.state=1979,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PLUS:case e.MINUS:case e.DIGITS:case e.INTEGER_VALUE:case e.REAL:this.enterOuterAlt(t,1),this.state=1974,this.signed_number();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,2),this.state=1975,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=1976,this.match(e.STRING_VALUE);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=1977,this.bool_value();break;case e.DOLLAR:this.enterOuterAlt(t,5),this.state=1978,this.bind_parameter();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sort_specification(){let t,i=new gr(this.context,this.state);this.enterRule(i,228,e.RULE_sort_specification);try{this.enterOuterAlt(i,1),this.state=1981,this.expr(),this.state=1983,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(52===t||103===t)&&(this.state=1982,t=this.tokenStream.LA(1),52===t||103===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sort_specification_list(){let t,i=new pr(this.context,this.state);this.enterRule(i,230,e.RULE_sort_specification_list);try{for(this.enterOuterAlt(i,1),this.state=1985,this.sort_specification(),this.state=1990,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=1986,this.match(e.COMMA),this.state=1987,this.sort_specification(),this.state=1992,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_stmt(){let t,i=new mr(this.context,this.state);this.enterRule(i,232,e.RULE_select_stmt);try{for(this.enterOuterAlt(i,1),this.state=1993,this.select_kind_parenthesis(),this.state=1999,this.errorHandler.sync(this),t=this.tokenStream.LA(1);124===t||169===t||298===t;)this.state=1994,this.select_op(),this.state=1995,this.select_kind_parenthesis(),this.state=2001,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_unparenthesized_stmt(){let t,i=new fr(this.context,this.state);this.enterRule(i,234,e.RULE_select_unparenthesized_stmt);try{for(this.enterOuterAlt(i,1),this.state=2002,this.select_kind_partial(),this.state=2008,this.errorHandler.sync(this),t=this.tokenStream.LA(1);124===t||169===t||298===t;)this.state=2003,this.select_op(),this.state=2004,this.select_kind_parenthesis(),this.state=2010,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind_parenthesis(){let t=new _r(this.context,this.state);this.enterRule(t,236,e.RULE_select_kind_parenthesis);try{switch(this.state=2016,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.enterOuterAlt(t,1),this.state=2011,this.select_kind_partial();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=2012,this.match(e.LPAREN),this.state=2013,this.select_kind_partial(),this.state=2014,this.match(e.RPAREN);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}select_op(){let t,i=new vr(this.context,this.state);this.enterRule(i,238,e.RULE_select_op);try{switch(this.state=2024,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.UNION:this.enterOuterAlt(i,1),this.state=2018,this.match(e.UNION),this.state=2020,this.errorHandler.sync(this),t=this.tokenStream.LA(1),44===t&&(this.state=2019,this.match(e.ALL));break;case e.INTERSECT:this.enterOuterAlt(i,2),this.state=2022,this.match(e.INTERSECT);break;case e.EXCEPT:this.enterOuterAlt(i,3),this.state=2023,this.match(e.EXCEPT);break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind_partial(){let t,i=new Cr(this.context,this.state);this.enterRule(i,240,e.RULE_select_kind_partial);try{this.enterOuterAlt(i,1),this.state=2026,this.select_kind(),this.state=2033,this.errorHandler.sync(this),t=this.tokenStream.LA(1),182===t&&(this.state=2027,this.match(e.LIMIT),this.state=2028,this.expr(),this.state=2031,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(25===t||203===t)&&(this.state=2029,t=this.tokenStream.LA(1),25===t||203===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=2030,this.expr()))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_kind(){let t,i=new br(this.context,this.state);this.enterRule(i,242,e.RULE_select_kind);try{switch(this.enterOuterAlt(i,1),this.state=2036,this.errorHandler.sync(this),t=this.tokenStream.LA(1),109===t&&(this.state=2035,this.match(e.DISCARD)),this.state=2041,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PROCESS:this.state=2038,this.process_core();break;case e.REDUCE:this.state=2039,this.reduce_core();break;case e.FROM:case e.SELECT:this.state=2040,this.select_core();break;default:throw new ct(this)}this.state=2046,this.errorHandler.sync(this),t=this.tokenStream.LA(1),170===t&&(this.state=2043,this.match(e.INTO),this.state=2044,this.match(e.RESULT),this.state=2045,this.pure_column_or_named())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}process_core(){let t,i=new Er(this.context,this.state);this.enterRule(i,244,e.RULE_process_core);try{if(this.enterOuterAlt(i,1),1===(this.state=2048,this.match(e.PROCESS),this.state=2050,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,161,this.context)))this.state=2049,this.match(e.STREAM);for(this.state=2052,this.named_single_source(),this.state=2057,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2053,this.match(e.COMMA),this.state=2054,this.named_single_source(),this.state=2059,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2081,this.errorHandler.sync(this),t=this.tokenStream.LA(1),306===t&&(this.state=2060,this.match(e.USING),this.state=2061,this.using_call_expr(),this.state=2064,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2062,this.match(e.AS),this.state=2063,this.an_id()),this.state=2068,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=2066,this.match(e.WITH),this.state=2067,this.external_call_settings()),this.state=2071,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=2070,this.where_expr()),this.state=2075,this.errorHandler.sync(this),t=this.tokenStream.LA(1),152===t&&(this.state=2073,this.match(e.HAVING),this.state=2074,this.expr()),this.state=2079,this.errorHandler.sync(this),t=this.tokenStream.LA(1),53===t&&(this.state=2077,this.match(e.ASSUME),this.state=2078,this.order_by_clause()))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}external_call_param(){let t=new Sr(this.context,this.state);this.enterRule(t,246,e.RULE_external_call_param);try{this.enterOuterAlt(t,1),this.state=2083,this.an_id(),this.state=2084,this.match(e.EQUALS),this.state=2085,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}external_call_settings(){let t,i=new yr(this.context,this.state);this.enterRule(i,248,e.RULE_external_call_settings);try{for(this.enterOuterAlt(i,1),this.state=2087,this.external_call_param(),this.state=2092,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2088,this.match(e.COMMA),this.state=2089,this.external_call_param(),this.state=2094,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}reduce_core(){let t,i=new wr(this.context,this.state);this.enterRule(i,250,e.RULE_reduce_core);try{for(this.enterOuterAlt(i,1),this.state=2095,this.match(e.REDUCE),this.state=2096,this.named_single_source(),this.state=2101,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2097,this.match(e.COMMA),this.state=2098,this.named_single_source(),this.state=2103,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(1===(this.state=2106,this.errorHandler.sync(this),t=this.tokenStream.LA(1),227===t&&(this.state=2104,this.match(e.PRESORT),this.state=2105,this.sort_specification_list()),this.state=2108,this.match(e.ON),this.state=2109,this.column_list(),this.state=2110,this.match(e.USING),this.state=2112,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,172,this.context)))this.state=2111,this.match(e.ALL);this.state=2114,this.using_call_expr(),this.state=2117,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2115,this.match(e.AS),this.state=2116,this.an_id()),this.state=2120,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=2119,this.where_expr()),this.state=2124,this.errorHandler.sync(this),t=this.tokenStream.LA(1),152===t&&(this.state=2122,this.match(e.HAVING),this.state=2123,this.expr()),this.state=2128,this.errorHandler.sync(this),t=this.tokenStream.LA(1),53===t&&(this.state=2126,this.match(e.ASSUME),this.state=2127,this.order_by_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}opt_set_quantifier(){let t,i=new Lr(this.context,this.state);this.enterRule(i,252,e.RULE_opt_set_quantifier);try{if(1===(this.enterOuterAlt(i,1),this.state=2131,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,177,this.context)))this.state=2130,t=this.tokenStream.LA(1),44===t||110===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}select_core(){let t,i=new Rr(this.context,this.state);this.enterRule(i,254,e.RULE_select_core);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=2134,this.errorHandler.sync(this),t=this.tokenStream.LA(1),142===t&&(this.state=2133,this.from_stmt()),this.state=2136,this.match(e.SELECT),this.state=2138,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,179,this.context)))this.state=2137,this.match(e.STREAM);for(this.state=2140,this.opt_set_quantifier(),this.state=2141,this.result_column(),this.state=2146,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=2142,this.match(e.COMMA),this.state=2143,this.result_column()),this.state=2148,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,180,this.context);this.state=2150,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=2149,this.match(e.COMMA)),this.state=2154,this.errorHandler.sync(this),t=this.tokenStream.LA(1),316===t&&(this.state=2152,this.match(e.WITHOUT),this.state=2153,this.without_column_list()),this.state=2157,this.errorHandler.sync(this),t=this.tokenStream.LA(1),142===t&&(this.state=2156,this.from_stmt()),this.state=2160,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=2159,this.where_expr()),this.state=2163,this.errorHandler.sync(this),t=this.tokenStream.LA(1),148===t&&(this.state=2162,this.group_by_clause()),this.state=2167,this.errorHandler.sync(this),t=this.tokenStream.LA(1),152===t&&(this.state=2165,this.match(e.HAVING),this.state=2166,this.expr()),this.state=2170,this.errorHandler.sync(this),t=this.tokenStream.LA(1),314===t&&(this.state=2169,this.window_clause()),this.state=2173,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(53===t||211===t)&&(this.state=2172,this.ext_order_by_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_recognition_clause(){let t,i=new Tr(this.context,this.state);this.enterRule(i,256,e.RULE_row_pattern_recognition_clause);try{this.enterOuterAlt(i,1),this.state=2175,this.match(e.MATCH_RECOGNIZE),this.state=2176,this.match(e.LPAREN),this.state=2178,this.errorHandler.sync(this),t=this.tokenStream.LA(1),216===t&&(this.state=2177,this.window_partition_clause()),this.state=2181,this.errorHandler.sync(this),t=this.tokenStream.LA(1),211===t&&(this.state=2180,this.order_by_clause()),this.state=2184,this.errorHandler.sync(this),t=this.tokenStream.LA(1),189===t&&(this.state=2183,this.row_pattern_measures()),this.state=2187,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(44===t||206===t)&&(this.state=2186,this.row_pattern_rows_per_match()),this.state=2189,this.row_pattern_common_syntax(),this.state=2190,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_rows_per_match(){let t,i=new xr(this.context,this.state);this.enterRule(i,258,e.RULE_row_pattern_rows_per_match);try{switch(this.state=2203,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ONE:this.enterOuterAlt(i,1),this.state=2192,this.match(e.ONE),this.state=2193,this.match(e.ROW),this.state=2194,this.match(e.PER),this.state=2195,this.match(e.MATCH);break;case e.ALL:this.enterOuterAlt(i,2),this.state=2196,this.match(e.ALL),this.state=2197,this.match(e.ROWS),this.state=2198,this.match(e.PER),this.state=2199,this.match(e.MATCH),this.state=2201,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(204===t||269===t||315===t)&&(this.state=2200,this.row_pattern_empty_match_handling());break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_empty_match_handling(){let t=new kr(this.context,this.state);this.enterRule(t,260,e.RULE_row_pattern_empty_match_handling);try{switch(this.state=2214,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SHOW:this.enterOuterAlt(t,1),this.state=2205,this.match(e.SHOW),this.state=2206,this.match(e.EMPTY),this.state=2207,this.match(e.MATCHES);break;case e.OMIT:this.enterOuterAlt(t,2),this.state=2208,this.match(e.OMIT),this.state=2209,this.match(e.EMPTY),this.state=2210,this.match(e.MATCHES);break;case e.WITH:this.enterOuterAlt(t,3),this.state=2211,this.match(e.WITH),this.state=2212,this.match(e.UNMATCHED),this.state=2213,this.match(e.ROWS);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_measures(){let t=new Ar(this.context,this.state);this.enterRule(t,262,e.RULE_row_pattern_measures);try{this.enterOuterAlt(t,1),this.state=2216,this.match(e.MEASURES),this.state=2217,this.row_pattern_measure_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_measure_list(){let t,i=new Nr(this.context,this.state);this.enterRule(i,264,e.RULE_row_pattern_measure_list);try{for(this.enterOuterAlt(i,1),this.state=2219,this.row_pattern_measure_definition(),this.state=2224,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2220,this.match(e.COMMA),this.state=2221,this.row_pattern_measure_definition(),this.state=2226,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_measure_definition(){let t=new Ir(this.context,this.state);this.enterRule(t,266,e.RULE_row_pattern_measure_definition);try{this.enterOuterAlt(t,1),this.state=2227,this.expr(),this.state=2228,this.match(e.AS),this.state=2229,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_common_syntax(){let t,i=new Or(this.context,this.state);this.enterRule(i,268,e.RULE_row_pattern_common_syntax);try{this.enterOuterAlt(i,1),this.state=2234,this.errorHandler.sync(this),t=this.tokenStream.LA(1),43===t&&(this.state=2231,this.match(e.AFTER),this.state=2232,this.match(e.MATCH),this.state=2233,this.row_pattern_skip_to()),this.state=2237,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(164===t||264===t)&&(this.state=2236,this.row_pattern_initial_or_seek()),this.state=2239,this.match(e.PATTERN),this.state=2240,this.match(e.LPAREN),this.state=2241,this.row_pattern(),this.state=2242,this.match(e.RPAREN),this.state=2244,this.errorHandler.sync(this),t=this.tokenStream.LA(1),275===t&&(this.state=2243,this.row_pattern_subset_clause()),this.state=2246,this.match(e.DEFINE),this.state=2247,this.row_pattern_definition_list()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_skip_to(){let t=new Dr(this.context,this.state);this.enterRule(t,270,e.RULE_row_pattern_skip_to);try{switch(this.state=2268,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,200,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2249,this.match(e.TSKIP),this.state=2250,this.match(e.TO),this.state=2251,this.match(e.NEXT),this.state=2252,this.match(e.ROW);break;case 2:this.enterOuterAlt(t,2),this.state=2253,this.match(e.TSKIP),this.state=2254,this.match(e.PAST),this.state=2255,this.match(e.LAST),this.state=2256,this.match(e.ROW);break;case 3:this.enterOuterAlt(t,3),this.state=2257,this.match(e.TSKIP),this.state=2258,this.match(e.TO),this.state=2259,this.match(e.FIRST),this.state=2260,this.row_pattern_skip_to_variable_name();break;case 4:this.enterOuterAlt(t,4),this.state=2261,this.match(e.TSKIP),this.state=2262,this.match(e.TO),this.state=2263,this.match(e.LAST),this.state=2264,this.row_pattern_skip_to_variable_name();break;case 5:this.enterOuterAlt(t,5),this.state=2265,this.match(e.TSKIP),this.state=2266,this.match(e.TO),this.state=2267,this.row_pattern_skip_to_variable_name()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_skip_to_variable_name(){let t=new Mr(this.context,this.state);this.enterRule(t,272,e.RULE_row_pattern_skip_to_variable_name);try{this.enterOuterAlt(t,1),this.state=2270,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_initial_or_seek(){let t,i=new Pr(this.context,this.state);this.enterRule(i,274,e.RULE_row_pattern_initial_or_seek);try{this.enterOuterAlt(i,1),this.state=2272,t=this.tokenStream.LA(1),164===t||264===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern(){let t,i=new Fr(this.context,this.state);this.enterRule(i,276,e.RULE_row_pattern);try{for(this.enterOuterAlt(i,1),this.state=2274,this.row_pattern_term(),this.state=2279,this.errorHandler.sync(this),t=this.tokenStream.LA(1);13===t;)this.state=2275,this.match(e.PIPE),this.state=2276,this.row_pattern_term(),this.state=2281,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_term(){let t,i=new Ur(this.context,this.state);this.enterRule(i,278,e.RULE_row_pattern_term);try{this.enterOuterAlt(i,1),this.state=2283,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=2282,this.row_pattern_factor(),this.state=2285,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(!(t-26&-32)&&1<<t-26&705||222===t||320===t||321===t)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_factor(){let t=new Hr(this.context,this.state);this.enterRule(t,280,e.RULE_row_pattern_factor);try{if(1===(this.enterOuterAlt(t,1),this.state=2287,this.row_pattern_primary(),this.state=2289,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,203,this.context)))this.state=2288,this.row_pattern_quantifier()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_quantifier(){let t,i=new Br(this.context,this.state);this.enterRule(i,282,e.RULE_row_pattern_quantifier);try{switch(this.state=2319,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,210,this.context)){case 1:this.enterOuterAlt(i,1),this.state=2291,this.match(e.ASTERISK),this.state=2293,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=2292,this.match(e.QUESTION));break;case 2:this.enterOuterAlt(i,2),this.state=2295,this.match(e.PLUS),this.state=2297,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=2296,this.match(e.QUESTION));break;case 3:this.enterOuterAlt(i,3),this.state=2299,this.match(e.QUESTION),this.state=2301,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=2300,this.match(e.QUESTION));break;case 4:this.enterOuterAlt(i,4),this.state=2303,this.match(e.LBRACE_CURLY),this.state=2305,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(322===t||323===t)&&(this.state=2304,this.integer()),this.state=2307,this.match(e.COMMA),this.state=2309,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(322===t||323===t)&&(this.state=2308,this.integer()),this.state=2311,this.match(e.RBRACE_CURLY),this.state=2313,this.errorHandler.sync(this),t=this.tokenStream.LA(1),28===t&&(this.state=2312,this.match(e.QUESTION));break;case 5:this.enterOuterAlt(i,5),this.state=2315,this.match(e.LBRACE_CURLY),this.state=2316,this.integer(),this.state=2317,this.match(e.RBRACE_CURLY)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_primary(){let t,i=new Wr(this.context,this.state);this.enterRule(i,284,e.RULE_row_pattern_primary);try{switch(this.state=2336,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2321,this.row_pattern_primary_variable_name();break;case e.DOLLAR:this.enterOuterAlt(i,2),this.state=2322,this.match(e.DOLLAR);break;case e.CARET:this.enterOuterAlt(i,3),this.state=2323,this.match(e.CARET);break;case e.LPAREN:this.enterOuterAlt(i,4),this.state=2324,this.match(e.LPAREN),this.state=2326,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-26&-32)&&1<<t-26&705||222===t||320===t||321===t)&&(this.state=2325,this.row_pattern()),this.state=2328,this.match(e.RPAREN);break;case e.LBRACE_CURLY:this.enterOuterAlt(i,5),this.state=2329,this.match(e.LBRACE_CURLY),this.state=2330,this.match(e.MINUS),this.state=2331,this.row_pattern(),this.state=2332,this.match(e.MINUS),this.state=2333,this.match(e.RBRACE_CURLY);break;case e.PERMUTE:this.enterOuterAlt(i,6),this.state=2335,this.row_pattern_permute();break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_primary_variable_name(){let t=new Vr(this.context,this.state);this.enterRule(t,286,e.RULE_row_pattern_primary_variable_name);try{this.enterOuterAlt(t,1),this.state=2338,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_permute(){let t,i=new zr(this.context,this.state);this.enterRule(i,288,e.RULE_row_pattern_permute);try{for(this.enterOuterAlt(i,1),this.state=2340,this.match(e.PERMUTE),this.state=2341,this.match(e.LPAREN),this.state=2342,this.row_pattern(),this.state=2347,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2343,this.match(e.COMMA),this.state=2344,this.row_pattern(),this.state=2349,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2350,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_clause(){let t=new Gr(this.context,this.state);this.enterRule(t,290,e.RULE_row_pattern_subset_clause);try{this.enterOuterAlt(t,1),this.state=2352,this.match(e.SUBSET),this.state=2353,this.row_pattern_subset_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_list(){let t,i=new jr(this.context,this.state);this.enterRule(i,292,e.RULE_row_pattern_subset_list);try{for(this.enterOuterAlt(i,1),this.state=2355,this.row_pattern_subset_item(),this.state=2360,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2356,this.match(e.COMMA),this.state=2357,this.row_pattern_subset_item(),this.state=2362,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_item(){let t=new Kr(this.context,this.state);this.enterRule(t,294,e.RULE_row_pattern_subset_item);try{this.enterOuterAlt(t,1),this.state=2363,this.row_pattern_subset_item_variable_name(),this.state=2364,this.match(e.EQUALS),this.state=2365,this.match(e.LPAREN),this.state=2366,this.row_pattern_subset_rhs(),this.state=2367,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_item_variable_name(){let t=new Yr(this.context,this.state);this.enterRule(t,296,e.RULE_row_pattern_subset_item_variable_name);try{this.enterOuterAlt(t,1),this.state=2369,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_subset_rhs(){let t,i=new qr(this.context,this.state);this.enterRule(i,298,e.RULE_row_pattern_subset_rhs);try{for(this.enterOuterAlt(i,1),this.state=2371,this.row_pattern_subset_rhs_variable_name(),this.state=2376,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2372,this.match(e.COMMA),this.state=2373,this.row_pattern_subset_rhs_variable_name(),this.state=2378,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_subset_rhs_variable_name(){let t=new $r(this.context,this.state);this.enterRule(t,300,e.RULE_row_pattern_subset_rhs_variable_name);try{this.enterOuterAlt(t,1),this.state=2379,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_list(){let t,i=new Qr(this.context,this.state);this.enterRule(i,302,e.RULE_row_pattern_definition_list);try{for(this.enterOuterAlt(i,1),this.state=2381,this.row_pattern_definition(),this.state=2386,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2382,this.match(e.COMMA),this.state=2383,this.row_pattern_definition(),this.state=2388,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}row_pattern_definition(){let t=new Xr(this.context,this.state);this.enterRule(t,304,e.RULE_row_pattern_definition);try{this.enterOuterAlt(t,1),this.state=2389,this.row_pattern_definition_variable_name(),this.state=2390,this.match(e.AS),this.state=2391,this.row_pattern_definition_search_condition()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_variable_name(){let t=new Zr(this.context,this.state);this.enterRule(t,306,e.RULE_row_pattern_definition_variable_name);try{this.enterOuterAlt(t,1),this.state=2393,this.row_pattern_variable_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_definition_search_condition(){let t=new Jr(this.context,this.state);this.enterRule(t,308,e.RULE_row_pattern_definition_search_condition);try{this.enterOuterAlt(t,1),this.state=2395,this.search_condition()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}search_condition(){let t=new eo(this.context,this.state);this.enterRule(t,310,e.RULE_search_condition);try{this.enterOuterAlt(t,1),this.state=2397,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}row_pattern_variable_name(){let t=new to(this.context,this.state);this.enterRule(t,312,e.RULE_row_pattern_variable_name);try{this.enterOuterAlt(t,1),this.state=2399,this.identifier()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}order_by_clause(){let t=new io(this.context,this.state);this.enterRule(t,314,e.RULE_order_by_clause);try{this.enterOuterAlt(t,1),this.state=2401,this.match(e.ORDER),this.state=2402,this.match(e.BY),this.state=2403,this.sort_specification_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ext_order_by_clause(){let t,i=new so(this.context,this.state);this.enterRule(i,316,e.RULE_ext_order_by_clause);try{this.enterOuterAlt(i,1),this.state=2406,this.errorHandler.sync(this),t=this.tokenStream.LA(1),53===t&&(this.state=2405,this.match(e.ASSUME)),this.state=2408,this.order_by_clause()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}group_by_clause(){let t,i=new no(this.context,this.state);this.enterRule(i,318,e.RULE_group_by_clause);try{this.enterOuterAlt(i,1),this.state=2410,this.match(e.GROUP),this.state=2412,this.errorHandler.sync(this),t=this.tokenStream.LA(1),80===t&&(this.state=2411,this.match(e.COMPACT)),this.state=2414,this.match(e.BY),this.state=2415,this.opt_set_quantifier(),this.state=2416,this.grouping_element_list(),this.state=2419,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=2417,this.match(e.WITH),this.state=2418,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grouping_element_list(){let t,i=new ro(this.context,this.state);this.enterRule(i,320,e.RULE_grouping_element_list);try{for(this.enterOuterAlt(i,1),this.state=2421,this.grouping_element(),this.state=2426,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2422,this.match(e.COMMA),this.state=2423,this.grouping_element(),this.state=2428,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grouping_element(){let t=new oo(this.context,this.state);this.enterRule(t,322,e.RULE_grouping_element);try{switch(this.state=2434,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,221,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2429,this.ordinary_grouping_set();break;case 2:this.enterOuterAlt(t,2),this.state=2430,this.rollup_list();break;case 3:this.enterOuterAlt(t,3),this.state=2431,this.cube_list();break;case 4:this.enterOuterAlt(t,4),this.state=2432,this.grouping_sets_specification();break;case 5:this.enterOuterAlt(t,5),this.state=2433,this.hopping_window_specification()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ordinary_grouping_set(){let t=new ao(this.context,this.state);this.enterRule(t,324,e.RULE_ordinary_grouping_set);try{this.enterOuterAlt(t,1),this.state=2436,this.named_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}ordinary_grouping_set_list(){let t,i=new lo(this.context,this.state);this.enterRule(i,326,e.RULE_ordinary_grouping_set_list);try{for(this.enterOuterAlt(i,1),this.state=2438,this.ordinary_grouping_set(),this.state=2443,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2439,this.match(e.COMMA),this.state=2440,this.ordinary_grouping_set(),this.state=2445,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}rollup_list(){let t=new co(this.context,this.state);this.enterRule(t,328,e.RULE_rollup_list);try{this.enterOuterAlt(t,1),this.state=2446,this.match(e.ROLLUP),this.state=2447,this.match(e.LPAREN),this.state=2448,this.ordinary_grouping_set_list(),this.state=2449,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cube_list(){let t=new ho(this.context,this.state);this.enterRule(t,330,e.RULE_cube_list);try{this.enterOuterAlt(t,1),this.state=2451,this.match(e.CUBE),this.state=2452,this.match(e.LPAREN),this.state=2453,this.ordinary_grouping_set_list(),this.state=2454,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}grouping_sets_specification(){let t=new uo(this.context,this.state);this.enterRule(t,332,e.RULE_grouping_sets_specification);try{this.enterOuterAlt(t,1),this.state=2456,this.match(e.GROUPING),this.state=2457,this.match(e.SETS),this.state=2458,this.match(e.LPAREN),this.state=2459,this.grouping_element_list(),this.state=2460,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}hopping_window_specification(){let t=new go(this.context,this.state);this.enterRule(t,334,e.RULE_hopping_window_specification);try{this.enterOuterAlt(t,1),this.state=2462,this.match(e.HOP),this.state=2463,this.match(e.LPAREN),this.state=2464,this.expr(),this.state=2465,this.match(e.COMMA),this.state=2466,this.expr(),this.state=2467,this.match(e.COMMA),this.state=2468,this.expr(),this.state=2469,this.match(e.COMMA),this.state=2470,this.expr(),this.state=2471,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}result_column(){let t=new po(this.context,this.state);this.enterRule(t,336,e.RULE_result_column);try{switch(this.state=2482,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,224,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2473,this.opt_id_prefix(),this.state=2474,this.match(e.ASTERISK);break;case 2:switch(this.enterOuterAlt(t,2),this.state=2476,this.expr(),this.state=2480,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,223,this.context)){case 1:this.state=2477,this.match(e.AS),this.state=2478,this.an_id_or_type();break;case 2:this.state=2479,this.an_id_as_compat()}}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}join_source(){let t,i=new mo(this.context,this.state);this.enterRule(i,338,e.RULE_join_source);try{if(this.enterOuterAlt(i,1),1===(this.state=2485,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,225,this.context)))this.state=2484,this.match(e.ANY);for(this.state=2487,this.flatten_source(),this.state=2498,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t||88===t||126===t||143===t||!(t-166&-32)&&1<<t-166&268443777||213===t||254===t;){if(1===(this.state=2488,this.join_op(),this.state=2490,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,226,this.context)))this.state=2489,this.match(e.ANY);this.state=2492,this.flatten_source(),this.state=2494,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(205===t||306===t)&&(this.state=2493,this.join_constraint()),this.state=2500,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_column(){let t,i=new fo(this.context,this.state);this.enterRule(i,340,e.RULE_named_column);try{this.enterOuterAlt(i,1),this.state=2501,this.column_name(),this.state=2504,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2502,this.match(e.AS),this.state=2503,this.an_id())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}flatten_by_arg(){let t,i=new _o(this.context,this.state);this.enterRule(i,342,e.RULE_flatten_by_arg);try{switch(this.state=2514,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2506,this.named_column();break;case e.LPAREN:this.enterOuterAlt(i,2),this.state=2507,this.match(e.LPAREN),this.state=2508,this.named_expr_list(),this.state=2510,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=2509,this.match(e.COMMA)),this.state=2512,this.match(e.RPAREN);break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}flatten_source(){let t,i=new vo(this.context,this.state);this.enterRule(i,344,e.RULE_flatten_source);try{if(this.enterOuterAlt(i,1),this.state=2516,this.named_single_source(),this.state=2526,this.errorHandler.sync(this),t=this.tokenStream.LA(1),137===t)switch(this.state=2517,this.match(e.FLATTEN),this.state=2524,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.BY:case e.DICT:case e.LIST:case e.OPTIONAL:this.state=2519,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(106===t||183===t||209===t)&&(this.state=2518,t=this.tokenStream.LA(1),106===t||183===t||209===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)),this.state=2521,this.match(e.BY),this.state=2522,this.flatten_by_arg();break;case e.COLUMNS:this.state=2523,this.match(e.COLUMNS);break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}named_single_source(){let t,i=new Co(this.context,this.state);this.enterRule(i,346,e.RULE_named_single_source);try{if(this.enterOuterAlt(i,1),1===(this.state=2528,this.single_source(),this.state=2530,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,235,this.context)))this.state=2529,this.row_pattern_recognition_clause();if(1===(this.state=2540,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,238,this.context))){switch(this.state=2535,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.AS:this.state=2532,this.match(e.AS),this.state=2533,this.an_id();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=2534,this.an_id_as_compat();break;default:throw new ct(this)}this.state=2538,this.errorHandler.sync(this),t=this.tokenStream.LA(1),26===t&&(this.state=2537,this.pure_column_list())}switch(this.state=2544,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SAMPLE:this.state=2542,this.sample_clause();break;case e.TABLESAMPLE:this.state=2543,this.tablesample_clause();case e.EOF:case e.SEMICOLON:case e.COMMA:case e.RPAREN:case e.ASSUME:case e.CROSS:case e.END:case e.EXCEPT:case e.EXCLUSION:case e.FLATTEN:case e.FULL:case e.GROUP:case e.HAVING:case e.INNER:case e.INTERSECT:case e.INTO:case e.JOIN:case e.LEFT:case e.LIMIT:case e.NATURAL:case e.ON:case e.ORDER:case e.OUTER:case e.PRESORT:case e.RETURNING:case e.RIGHT:case e.SELECT:case e.UNION:case e.USING:case e.WHERE:case e.WINDOW:}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}single_source(){let t=new bo(this.context,this.state);this.enterRule(t,348,e.RULE_single_source);try{switch(this.state=2555,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,240,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2546,this.table_ref();break;case 2:this.enterOuterAlt(t,2),this.state=2547,this.match(e.LPAREN),this.state=2548,this.select_stmt(),this.state=2549,this.match(e.RPAREN);break;case 3:this.enterOuterAlt(t,3),this.state=2551,this.match(e.LPAREN),this.state=2552,this.values_stmt(),this.state=2553,this.match(e.RPAREN)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sample_clause(){let t=new Eo(this.context,this.state);this.enterRule(t,350,e.RULE_sample_clause);try{this.enterOuterAlt(t,1),this.state=2557,this.match(e.SAMPLE),this.state=2558,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}tablesample_clause(){let t,i=new So(this.context,this.state);this.enterRule(i,352,e.RULE_tablesample_clause);try{this.enterOuterAlt(i,1),this.state=2560,this.match(e.TABLESAMPLE),this.state=2561,this.sampling_mode(),this.state=2562,this.match(e.LPAREN),this.state=2563,this.expr(),this.state=2564,this.match(e.RPAREN),this.state=2566,this.errorHandler.sync(this),t=this.tokenStream.LA(1),241===t&&(this.state=2565,this.repeatable_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sampling_mode(){let t,i=new yo(this.context,this.state);this.enterRule(i,354,e.RULE_sampling_mode);try{this.enterOuterAlt(i,1),this.state=2568,t=this.tokenStream.LA(1),65===t||279===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}repeatable_clause(){let t=new wo(this.context,this.state);this.enterRule(t,356,e.RULE_repeatable_clause);try{this.enterOuterAlt(t,1),this.state=2570,this.match(e.REPEATABLE),this.state=2571,this.match(e.LPAREN),this.state=2572,this.expr(),this.state=2573,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}join_op(){let t,i=new Lo(this.context,this.state);this.enterRule(i,358,e.RULE_join_op);try{switch(this.state=2599,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.COMMA:this.enterOuterAlt(i,1),this.state=2575,this.match(e.COMMA);break;case e.CROSS:case e.EXCLUSION:case e.FULL:case e.INNER:case e.JOIN:case e.LEFT:case e.NATURAL:case e.OUTER:case e.RIGHT:switch(this.enterOuterAlt(i,2),this.state=2577,this.errorHandler.sync(this),t=this.tokenStream.LA(1),194===t&&(this.state=2576,this.match(e.NATURAL)),this.state=2596,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.EXCLUSION:case e.FULL:case e.JOIN:case e.LEFT:case e.OUTER:case e.RIGHT:switch(this.state=2589,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LEFT:this.state=2579,this.match(e.LEFT),this.state=2581,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(207===t||266===t)&&(this.state=2580,t=this.tokenStream.LA(1),207===t||266===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.RIGHT:this.state=2583,this.match(e.RIGHT),this.state=2585,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(207===t||266===t)&&(this.state=2584,t=this.tokenStream.LA(1),207===t||266===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.EXCLUSION:this.state=2587,this.match(e.EXCLUSION);break;case e.FULL:this.state=2588,this.match(e.FULL);case e.JOIN:case e.OUTER:}this.state=2592,this.errorHandler.sync(this),t=this.tokenStream.LA(1),213===t&&(this.state=2591,this.match(e.OUTER));break;case e.INNER:this.state=2594,this.match(e.INNER);break;case e.CROSS:this.state=2595,this.match(e.CROSS);break;default:throw new ct(this)}this.state=2598,this.match(e.JOIN);break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}join_constraint(){let t=new Ro(this.context,this.state);this.enterRule(t,360,e.RULE_join_constraint);try{switch(this.state=2605,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ON:this.enterOuterAlt(t,1),this.state=2601,this.match(e.ON),this.state=2602,this.expr();break;case e.USING:this.enterOuterAlt(t,2),this.state=2603,this.match(e.USING),this.state=2604,this.pure_column_or_named_list();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}returning_columns_list(){let t,i=new To(this.context,this.state);this.enterRule(i,362,e.RULE_returning_columns_list);try{switch(this.enterOuterAlt(i,1),this.state=2607,this.match(e.RETURNING),this.state=2617,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ASTERISK:this.state=2608,this.match(e.ASTERISK);break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:for(this.state=2609,this.an_id(),this.state=2614,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2610,this.match(e.COMMA),this.state=2611,this.an_id(),this.state=2616,this.errorHandler.sync(this),t=this.tokenStream.LA(1);break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_table_stmt(){let t,i=new xo(this.context,this.state);this.enterRule(i,364,e.RULE_into_table_stmt);try{switch(this.enterOuterAlt(i,1),this.state=2631,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,252,this.context)){case 1:this.state=2619,this.match(e.INSERT);break;case 2:this.state=2620,this.match(e.INSERT),this.state=2621,this.match(e.OR),this.state=2622,this.match(e.ABORT);break;case 3:this.state=2623,this.match(e.INSERT),this.state=2624,this.match(e.OR),this.state=2625,this.match(e.REVERT);break;case 4:this.state=2626,this.match(e.INSERT),this.state=2627,this.match(e.OR),this.state=2628,this.match(e.IGNORE);break;case 5:this.state=2629,this.match(e.UPSERT);break;case 6:this.state=2630,this.match(e.REPLACE)}this.state=2633,this.match(e.INTO),this.state=2634,this.into_simple_table_ref(),this.state=2635,this.into_values_source(),this.state=2637,this.errorHandler.sync(this),t=this.tokenStream.LA(1),251===t&&(this.state=2636,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_table_stmt_yq(){let t=new ko(this.context,this.state);this.enterRule(t,366,e.RULE_into_table_stmt_yq);try{switch(this.enterOuterAlt(t,1),this.state=2650,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,254,this.context)){case 1:this.state=2639,this.match(e.INSERT);break;case 2:this.state=2640,this.match(e.INSERT),this.state=2641,this.match(e.OR),this.state=2642,this.match(e.ABORT);break;case 3:this.state=2643,this.match(e.INSERT),this.state=2644,this.match(e.OR),this.state=2645,this.match(e.REVERT);break;case 4:this.state=2646,this.match(e.INSERT),this.state=2647,this.match(e.OR),this.state=2648,this.match(e.IGNORE);break;case 5:this.state=2649,this.match(e.REPLACE)}this.state=2652,this.match(e.INTO),this.state=2653,this.into_simple_table_ref(),this.state=2654,this.into_values_source()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}into_values_source(){let t=new Ao(this.context,this.state);this.enterRule(t,368,e.RULE_into_values_source);try{switch(this.state=2662,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:case e.VALUES:if(this.enterOuterAlt(t,1),1===(this.state=2657,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,255,this.context)))this.state=2656,this.pure_column_list();this.state=2659,this.values_source();break;case e.DEFAULT:this.enterOuterAlt(t,2),this.state=2660,this.match(e.DEFAULT),this.state=2661,this.match(e.VALUES);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_stmt(){let t=new No(this.context,this.state);this.enterRule(t,370,e.RULE_values_stmt);try{this.enterOuterAlt(t,1),this.state=2664,this.match(e.VALUES),this.state=2665,this.values_source_row_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_source(){let t=new Io(this.context,this.state);this.enterRule(t,372,e.RULE_values_source);try{switch(this.state=2669,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.VALUES:this.enterOuterAlt(t,1),this.state=2667,this.values_stmt();break;case e.LPAREN:case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.enterOuterAlt(t,2),this.state=2668,this.select_stmt();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}values_source_row_list(){let t,i=new Oo(this.context,this.state);this.enterRule(i,374,e.RULE_values_source_row_list);try{for(this.enterOuterAlt(i,1),this.state=2671,this.values_source_row(),this.state=2676,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2672,this.match(e.COMMA),this.state=2673,this.values_source_row(),this.state=2678,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}values_source_row(){let t=new Do(this.context,this.state);this.enterRule(t,376,e.RULE_values_source_row);try{this.enterOuterAlt(t,1),this.state=2679,this.match(e.LPAREN),this.state=2680,this.expr_list(),this.state=2681,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}simple_values_source(){let t=new Mo(this.context,this.state);this.enterRule(t,378,e.RULE_simple_values_source);try{switch(this.state=2685,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,259,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2683,this.expr_list();break;case 2:this.enterOuterAlt(t,2),this.state=2684,this.select_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_external_data_source_stmt(){let t,i=new Po(this.context,this.state);this.enterRule(i,380,e.RULE_create_external_data_source_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2687,this.match(e.CREATE),this.state=2690,this.errorHandler.sync(this),t=this.tokenStream.LA(1),210===t&&(this.state=2688,this.match(e.OR),this.state=2689,this.match(e.REPLACE)),this.state=2692,this.match(e.EXTERNAL),this.state=2693,this.match(e.DATA),this.state=2694,this.match(e.SOURCE),this.state=2698,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,261,this.context)))this.state=2695,this.match(e.IF),this.state=2696,this.match(e.NOT),this.state=2697,this.match(e.EXISTS);this.state=2700,this.object_ref(),this.state=2701,this.with_table_settings()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_data_source_stmt(){let t,i=new Fo(this.context,this.state);this.enterRule(i,382,e.RULE_alter_external_data_source_stmt);try{for(this.enterOuterAlt(i,1),this.state=2703,this.match(e.ALTER),this.state=2704,this.match(e.EXTERNAL),this.state=2705,this.match(e.DATA),this.state=2706,this.match(e.SOURCE),this.state=2707,this.object_ref(),this.state=2708,this.alter_external_data_source_action(),this.state=2713,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2709,this.match(e.COMMA),this.state=2710,this.alter_external_data_source_action(),this.state=2715,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_data_source_action(){let t=new Uo(this.context,this.state);this.enterRule(t,384,e.RULE_alter_external_data_source_action);try{switch(this.state=2719,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,263,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2716,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(t,2),this.state=2717,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(t,3),this.state=2718,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_external_data_source_stmt(){let t=new Ho(this.context,this.state);this.enterRule(t,386,e.RULE_drop_external_data_source_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=2721,this.match(e.DROP),this.state=2722,this.match(e.EXTERNAL),this.state=2723,this.match(e.DATA),this.state=2724,this.match(e.SOURCE),this.state=2727,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,264,this.context)))this.state=2725,this.match(e.IF),this.state=2726,this.match(e.EXISTS);this.state=2729,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_view_stmt(){let t,i=new Bo(this.context,this.state);this.enterRule(i,388,e.RULE_create_view_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2731,this.match(e.CREATE),this.state=2732,this.match(e.VIEW),this.state=2736,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,265,this.context)))this.state=2733,this.match(e.IF),this.state=2734,this.match(e.NOT),this.state=2735,this.match(e.EXISTS);this.state=2738,this.object_ref(),this.state=2740,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=2739,this.create_object_features()),this.state=2742,this.match(e.AS),this.state=2743,this.select_stmt()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_view_stmt(){let t=new Wo(this.context,this.state);this.enterRule(t,390,e.RULE_drop_view_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=2745,this.match(e.DROP),this.state=2746,this.match(e.VIEW),this.state=2749,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,267,this.context)))this.state=2747,this.match(e.IF),this.state=2748,this.match(e.EXISTS);this.state=2751,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}upsert_object_stmt(){let t,i=new Vo(this.context,this.state);this.enterRule(i,392,e.RULE_upsert_object_stmt);try{this.enterOuterAlt(i,1),this.state=2753,this.match(e.UPSERT),this.state=2754,this.match(e.OBJECT),this.state=2755,this.object_ref(),this.state=2756,this.match(e.LPAREN),this.state=2757,this.match(e.TYPE),this.state=2758,this.object_type_ref(),this.state=2759,this.match(e.RPAREN),this.state=2761,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=2760,this.create_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_object_stmt(){let t,i=new zo(this.context,this.state);this.enterRule(i,394,e.RULE_create_object_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2763,this.match(e.CREATE),this.state=2764,this.match(e.OBJECT),this.state=2768,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,269,this.context)))this.state=2765,this.match(e.IF),this.state=2766,this.match(e.NOT),this.state=2767,this.match(e.EXISTS);this.state=2770,this.object_ref(),this.state=2771,this.match(e.LPAREN),this.state=2772,this.match(e.TYPE),this.state=2773,this.object_type_ref(),this.state=2774,this.match(e.RPAREN),this.state=2776,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=2775,this.create_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_object_features(){let t=new Go(this.context,this.state);this.enterRule(t,396,e.RULE_create_object_features);try{this.enterOuterAlt(t,1),this.state=2778,this.match(e.WITH),this.state=2779,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_object_stmt(){let t=new jo(this.context,this.state);this.enterRule(t,398,e.RULE_alter_object_stmt);try{this.enterOuterAlt(t,1),this.state=2781,this.match(e.ALTER),this.state=2782,this.match(e.OBJECT),this.state=2783,this.object_ref(),this.state=2784,this.match(e.LPAREN),this.state=2785,this.match(e.TYPE),this.state=2786,this.object_type_ref(),this.state=2787,this.match(e.RPAREN),this.state=2788,this.alter_object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_object_features(){let t=new Ko(this.context,this.state);this.enterRule(t,400,e.RULE_alter_object_features);try{this.enterOuterAlt(t,1),this.state=2790,this.match(e.SET),this.state=2791,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_object_stmt(){let t,i=new Yo(this.context,this.state);this.enterRule(i,402,e.RULE_drop_object_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=2793,this.match(e.DROP),this.state=2794,this.match(e.OBJECT),this.state=2797,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,271,this.context)))this.state=2795,this.match(e.IF),this.state=2796,this.match(e.EXISTS);this.state=2799,this.object_ref(),this.state=2800,this.match(e.LPAREN),this.state=2801,this.match(e.TYPE),this.state=2802,this.object_type_ref(),this.state=2803,this.match(e.RPAREN),this.state=2805,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=2804,this.drop_object_features())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_object_features(){let t=new qo(this.context,this.state);this.enterRule(t,404,e.RULE_drop_object_features);try{this.enterOuterAlt(t,1),this.state=2807,this.match(e.WITH),this.state=2808,this.object_features()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_value(){let t=new $o(this.context,this.state);this.enterRule(t,406,e.RULE_object_feature_value);try{switch(this.state=2814,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=2810,this.id_or_type();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=2811,this.bind_parameter();break;case e.STRING_VALUE:this.enterOuterAlt(t,3),this.state=2812,this.match(e.STRING_VALUE);break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=2813,this.bool_value();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_kv(){let t=new Qo(this.context,this.state);this.enterRule(t,408,e.RULE_object_feature_kv);try{this.enterOuterAlt(t,1),this.state=2816,this.an_id_or_type(),this.state=2817,this.match(e.EQUALS),this.state=2818,this.object_feature_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature_flag(){let t=new Xo(this.context,this.state);this.enterRule(t,410,e.RULE_object_feature_flag);try{this.enterOuterAlt(t,1),this.state=2820,this.an_id_or_type()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_feature(){let t=new Zo(this.context,this.state);this.enterRule(t,412,e.RULE_object_feature);try{switch(this.state=2824,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,274,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2822,this.object_feature_kv();break;case 2:this.enterOuterAlt(t,2),this.state=2823,this.object_feature_flag()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}object_features(){let t,i=new Jo(this.context,this.state);this.enterRule(i,414,e.RULE_object_features);try{switch(this.state=2838,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(i,1),this.state=2826,this.object_feature();break;case e.LPAREN:for(this.enterOuterAlt(i,2),this.state=2827,this.match(e.LPAREN),this.state=2828,this.object_feature(),this.state=2833,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2829,this.match(e.COMMA),this.state=2830,this.object_feature(),this.state=2835,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=2836,this.match(e.RPAREN);break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}object_type_ref(){let t=new ea(this.context,this.state);this.enterRule(t,416,e.RULE_object_type_ref);try{this.enterOuterAlt(t,1),this.state=2840,this.an_id_or_type()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_table_stmt(){let t,i=new ta(this.context,this.state);this.enterRule(i,418,e.RULE_create_table_stmt);try{let s;switch(this.enterOuterAlt(i,1),this.state=2842,this.match(e.CREATE),this.state=2845,this.errorHandler.sync(this),t=this.tokenStream.LA(1),210===t&&(this.state=2843,this.match(e.OR),this.state=2844,this.match(e.REPLACE)),this.state=2855,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TABLE:this.state=2847,this.match(e.TABLE);break;case e.TABLESTORE:this.state=2848,this.match(e.TABLESTORE);break;case e.EXTERNAL:this.state=2849,this.match(e.EXTERNAL),this.state=2850,this.match(e.TABLE);break;case e.TEMP:this.state=2851,this.match(e.TEMP),this.state=2852,this.match(e.TABLE);break;case e.TEMPORARY:this.state=2853,this.match(e.TEMPORARY),this.state=2854,this.match(e.TABLE);break;default:throw new ct(this)}if(1===(this.state=2860,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,279,this.context)))this.state=2857,this.match(e.IF),this.state=2858,this.match(e.NOT),this.state=2859,this.match(e.EXISTS);for(this.state=2862,this.simple_table_ref(),this.state=2863,this.match(e.LPAREN),this.state=2864,this.create_table_entry(),this.state=2869,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=2865,this.match(e.COMMA),this.state=2866,this.create_table_entry()),this.state=2871,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,280,this.context);this.state=2873,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=2872,this.match(e.COMMA)),this.state=2875,this.match(e.RPAREN),this.state=2877,this.errorHandler.sync(this),t=this.tokenStream.LA(1),163===t&&(this.state=2876,this.table_inherits()),this.state=2880,this.errorHandler.sync(this),t=this.tokenStream.LA(1),216===t&&(this.state=2879,this.table_partition_by()),this.state=2883,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=2882,this.with_table_settings()),this.state=2886,this.errorHandler.sync(this),t=this.tokenStream.LA(1),283===t&&(this.state=2885,this.table_tablestore()),this.state=2889,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=2888,this.table_as_source())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_table_entry(){let t=new ia(this.context,this.state);this.enterRule(t,420,e.RULE_create_table_entry);try{switch(this.state=2897,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,287,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2891,this.column_schema();break;case 2:this.enterOuterAlt(t,2),this.state=2892,this.table_constraint();break;case 3:this.enterOuterAlt(t,3),this.state=2893,this.table_index();break;case 4:this.enterOuterAlt(t,4),this.state=2894,this.family_entry();break;case 5:this.enterOuterAlt(t,5),this.state=2895,this.changefeed();break;case 6:this.enterOuterAlt(t,6),this.state=2896,this.an_id_schema()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_stmt(){let t,i=new sa(this.context,this.state);this.enterRule(i,422,e.RULE_create_backup_collection_stmt);try{this.enterOuterAlt(i,1),this.state=2899,this.match(e.CREATE),this.state=2900,this.backup_collection(),this.state=2902,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(26===t||95===t)&&(this.state=2901,this.create_backup_collection_entries()),this.state=2904,this.match(e.WITH),this.state=2905,this.match(e.LPAREN),this.state=2906,this.backup_collection_settings(),this.state=2907,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_stmt(){let t=new na(this.context,this.state);this.enterRule(t,424,e.RULE_alter_backup_collection_stmt);try{switch(this.enterOuterAlt(t,1),this.state=2909,this.match(e.ALTER),this.state=2910,this.backup_collection(),this.state=2913,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.RESET:case e.SET:this.state=2911,this.alter_backup_collection_actions();break;case e.ADD:case e.DROP:this.state=2912,this.alter_backup_collection_entries();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_backup_collection_stmt(){let t=new ra(this.context,this.state);this.enterRule(t,426,e.RULE_drop_backup_collection_stmt);try{this.enterOuterAlt(t,1),this.state=2915,this.match(e.DROP),this.state=2916,this.backup_collection()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_entries(){let t=new oa(this.context,this.state);this.enterRule(t,428,e.RULE_create_backup_collection_entries);try{switch(this.state=2920,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DATABASE:this.enterOuterAlt(t,1),this.state=2918,this.match(e.DATABASE);break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=2919,this.create_backup_collection_entries_many();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_backup_collection_entries_many(){let t=new aa(this.context,this.state);this.enterRule(t,430,e.RULE_create_backup_collection_entries_many);try{this.enterOuterAlt(t,1),this.state=2922,this.match(e.LPAREN),this.state=2923,this.table_list(),this.state=2924,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_list(){let t,i=new la(this.context,this.state);this.enterRule(i,432,e.RULE_table_list);try{for(this.enterOuterAlt(i,1),this.state=2926,this.match(e.TABLE),this.state=2927,this.an_id_table(),this.state=2933,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2928,this.match(e.COMMA),this.state=2929,this.match(e.TABLE),this.state=2930,this.an_id_table(),this.state=2935,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_actions(){let t,i=new ca(this.context,this.state);this.enterRule(i,434,e.RULE_alter_backup_collection_actions);try{for(this.enterOuterAlt(i,1),this.state=2936,this.alter_backup_collection_action(),this.state=2941,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2937,this.match(e.COMMA),this.state=2938,this.alter_backup_collection_action(),this.state=2943,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_action(){let t=new ha(this.context,this.state);this.enterRule(t,436,e.RULE_alter_backup_collection_action);try{switch(this.state=2946,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=2944,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=2945,this.alter_table_reset_table_setting();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_backup_collection_entries(){let t,i=new da(this.context,this.state);this.enterRule(i,438,e.RULE_alter_backup_collection_entries);try{for(this.enterOuterAlt(i,1),this.state=2948,this.alter_backup_collection_entry(),this.state=2953,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2949,this.match(e.COMMA),this.state=2950,this.alter_backup_collection_entry(),this.state=2955,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_backup_collection_entry(){let t=new ua(this.context,this.state);this.enterRule(t,440,e.RULE_alter_backup_collection_entry);try{switch(this.state=2966,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,295,this.context)){case 1:this.enterOuterAlt(t,1),this.state=2956,this.match(e.ADD),this.state=2957,this.match(e.DATABASE);break;case 2:this.enterOuterAlt(t,2),this.state=2958,this.match(e.DROP),this.state=2959,this.match(e.DATABASE);break;case 3:this.enterOuterAlt(t,3),this.state=2960,this.match(e.ADD),this.state=2961,this.match(e.TABLE),this.state=2962,this.an_id_table();break;case 4:this.enterOuterAlt(t,4),this.state=2963,this.match(e.DROP),this.state=2964,this.match(e.TABLE),this.state=2965,this.an_id_table()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_collection(){let t=new ga(this.context,this.state);this.enterRule(t,442,e.RULE_backup_collection);try{this.enterOuterAlt(t,1),this.state=2968,this.match(e.BACKUP),this.state=2969,this.match(e.COLLECTION),this.state=2970,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_collection_settings(){let t,i=new pa(this.context,this.state);this.enterRule(i,444,e.RULE_backup_collection_settings);try{for(this.enterOuterAlt(i,1),this.state=2972,this.backup_collection_settings_entry(),this.state=2977,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2973,this.match(e.COMMA),this.state=2974,this.backup_collection_settings_entry(),this.state=2979,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}backup_collection_settings_entry(){let t=new ma(this.context,this.state);this.enterRule(t,446,e.RULE_backup_collection_settings_entry);try{this.enterOuterAlt(t,1),this.state=2980,this.an_id(),this.state=2981,this.match(e.EQUALS),this.state=2982,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}backup_stmt(){let t,i=new fa(this.context,this.state);this.enterRule(i,448,e.RULE_backup_stmt);try{this.enterOuterAlt(i,1),this.state=2984,this.match(e.BACKUP),this.state=2985,this.object_ref(),this.state=2987,this.errorHandler.sync(this),t=this.tokenStream.LA(1),160===t&&(this.state=2986,this.match(e.INCREMENTAL))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}restore_stmt(){let t,i=new _a(this.context,this.state);this.enterRule(i,450,e.RULE_restore_stmt);try{this.enterOuterAlt(i,1),this.state=2989,this.match(e.RESTORE),this.state=2990,this.object_ref(),this.state=2993,this.errorHandler.sync(this),t=this.tokenStream.LA(1),56===t&&(this.state=2991,this.match(e.AT),this.state=2992,this.match(e.STRING_VALUE))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_inherits(){let t,i=new va(this.context,this.state);this.enterRule(i,452,e.RULE_table_inherits);try{for(this.enterOuterAlt(i,1),this.state=2995,this.match(e.INHERITS),this.state=2996,this.match(e.LPAREN),this.state=2997,this.simple_table_ref_core(),this.state=3002,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=2998,this.match(e.COMMA),this.state=2999,this.simple_table_ref_core(),this.state=3004,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3005,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_partition_by(){let t=new Ca(this.context,this.state);this.enterRule(t,454,e.RULE_table_partition_by);try{this.enterOuterAlt(t,1),this.state=3007,this.match(e.PARTITION),this.state=3008,this.match(e.BY),this.state=3009,this.match(e.HASH),this.state=3010,this.pure_column_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_table_settings(){let t,i=new ba(this.context,this.state);this.enterRule(i,456,e.RULE_with_table_settings);try{for(this.enterOuterAlt(i,1),this.state=3012,this.match(e.WITH),this.state=3013,this.match(e.LPAREN),this.state=3014,this.table_settings_entry(),this.state=3019,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3015,this.match(e.COMMA),this.state=3016,this.table_settings_entry(),this.state=3021,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3022,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_tablestore(){let t=new Ea(this.context,this.state);this.enterRule(t,458,e.RULE_table_tablestore);try{this.enterOuterAlt(t,1),this.state=3024,this.match(e.TABLESTORE),this.state=3025,this.simple_table_ref_core()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_settings_entry(){let t=new Sa(this.context,this.state);this.enterRule(t,460,e.RULE_table_settings_entry);try{this.enterOuterAlt(t,1),this.state=3027,this.an_id(),this.state=3028,this.match(e.EQUALS),this.state=3029,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_as_source(){let t=new ya(this.context,this.state);this.enterRule(t,462,e.RULE_table_as_source);try{this.enterOuterAlt(t,1),this.state=3031,this.match(e.AS),this.state=3032,this.values_source()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_stmt(){let t,i=new wa(this.context,this.state);this.enterRule(i,464,e.RULE_alter_table_stmt);try{for(this.enterOuterAlt(i,1),this.state=3034,this.match(e.ALTER),this.state=3035,this.match(e.TABLE),this.state=3036,this.simple_table_ref(),this.state=3037,this.alter_table_action(),this.state=3042,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3038,this.match(e.COMMA),this.state=3039,this.alter_table_action(),this.state=3044,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_action(){let t=new La(this.context,this.state);this.enterRule(t,466,e.RULE_alter_table_action);try{switch(this.state=3062,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,302,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3045,this.alter_table_add_column();break;case 2:this.enterOuterAlt(t,2),this.state=3046,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(t,3),this.state=3047,this.alter_table_alter_column();break;case 4:this.enterOuterAlt(t,4),this.state=3048,this.alter_table_add_column_family();break;case 5:this.enterOuterAlt(t,5),this.state=3049,this.alter_table_alter_column_family();break;case 6:this.enterOuterAlt(t,6),this.state=3050,this.alter_table_set_table_setting_uncompat();break;case 7:this.enterOuterAlt(t,7),this.state=3051,this.alter_table_set_table_setting_compat();break;case 8:this.enterOuterAlt(t,8),this.state=3052,this.alter_table_reset_table_setting();break;case 9:this.enterOuterAlt(t,9),this.state=3053,this.alter_table_add_index();break;case 10:this.enterOuterAlt(t,10),this.state=3054,this.alter_table_drop_index();break;case 11:this.enterOuterAlt(t,11),this.state=3055,this.alter_table_rename_to();break;case 12:this.enterOuterAlt(t,12),this.state=3056,this.alter_table_add_changefeed();break;case 13:this.enterOuterAlt(t,13),this.state=3057,this.alter_table_alter_changefeed();break;case 14:this.enterOuterAlt(t,14),this.state=3058,this.alter_table_drop_changefeed();break;case 15:this.enterOuterAlt(t,15),this.state=3059,this.alter_table_rename_index_to();break;case 16:this.enterOuterAlt(t,16),this.state=3060,this.alter_table_alter_index();break;case 17:this.enterOuterAlt(t,17),this.state=3061,this.alter_table_alter_column_drop_not_null()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_external_table_stmt(){let t,i=new Ra(this.context,this.state);this.enterRule(i,468,e.RULE_alter_external_table_stmt);try{for(this.enterOuterAlt(i,1),this.state=3064,this.match(e.ALTER),this.state=3065,this.match(e.EXTERNAL),this.state=3066,this.match(e.TABLE),this.state=3067,this.simple_table_ref(),this.state=3068,this.alter_external_table_action(),this.state=3073,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3069,this.match(e.COMMA),this.state=3070,this.alter_external_table_action(),this.state=3075,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_external_table_action(){let t=new Ta(this.context,this.state);this.enterRule(t,470,e.RULE_alter_external_table_action);try{switch(this.state=3081,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,304,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3076,this.alter_table_add_column();break;case 2:this.enterOuterAlt(t,2),this.state=3077,this.alter_table_drop_column();break;case 3:this.enterOuterAlt(t,3),this.state=3078,this.alter_table_set_table_setting_uncompat();break;case 4:this.enterOuterAlt(t,4),this.state=3079,this.alter_table_set_table_setting_compat();break;case 5:this.enterOuterAlt(t,5),this.state=3080,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_store_stmt(){let t,i=new xa(this.context,this.state);this.enterRule(i,472,e.RULE_alter_table_store_stmt);try{for(this.enterOuterAlt(i,1),this.state=3083,this.match(e.ALTER),this.state=3084,this.match(e.TABLESTORE),this.state=3085,this.object_ref(),this.state=3086,this.alter_table_store_action(),this.state=3091,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3087,this.match(e.COMMA),this.state=3088,this.alter_table_store_action(),this.state=3093,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_store_action(){let t=new ka(this.context,this.state);this.enterRule(t,474,e.RULE_alter_table_store_action);try{switch(this.state=3096,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:this.enterOuterAlt(t,1),this.state=3094,this.alter_table_add_column();break;case e.DROP:this.enterOuterAlt(t,2),this.state=3095,this.alter_table_drop_column();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_column(){let t,i=new Aa(this.context,this.state);this.enterRule(i,476,e.RULE_alter_table_add_column);try{this.enterOuterAlt(i,1),this.state=3098,this.match(e.ADD),this.state=3100,this.errorHandler.sync(this),t=this.tokenStream.LA(1),77===t&&(this.state=3099,this.match(e.COLUMN)),this.state=3102,this.column_schema()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_drop_column(){let t=new Na(this.context,this.state);this.enterRule(t,478,e.RULE_alter_table_drop_column);try{if(this.enterOuterAlt(t,1),1===(this.state=3104,this.match(e.DROP),this.state=3106,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,308,this.context)))this.state=3105,this.match(e.COLUMN);this.state=3108,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column(){let t=new Ia(this.context,this.state);this.enterRule(t,480,e.RULE_alter_table_alter_column);try{this.enterOuterAlt(t,1),this.state=3110,this.match(e.ALTER),this.state=3111,this.match(e.COLUMN),this.state=3112,this.an_id(),this.state=3113,this.match(e.SET),this.state=3114,this.family_relation()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column_drop_not_null(){let t=new Oa(this.context,this.state);this.enterRule(t,482,e.RULE_alter_table_alter_column_drop_not_null);try{this.enterOuterAlt(t,1),this.state=3116,this.match(e.ALTER),this.state=3117,this.match(e.COLUMN),this.state=3118,this.an_id(),this.state=3119,this.match(e.DROP),this.state=3120,this.match(e.NOT),this.state=3121,this.match(e.NULL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_column_family(){let t=new Da(this.context,this.state);this.enterRule(t,484,e.RULE_alter_table_add_column_family);try{this.enterOuterAlt(t,1),this.state=3123,this.match(e.ADD),this.state=3124,this.family_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_column_family(){let t=new Ma(this.context,this.state);this.enterRule(t,486,e.RULE_alter_table_alter_column_family);try{this.enterOuterAlt(t,1),this.state=3126,this.match(e.ALTER),this.state=3127,this.match(e.FAMILY),this.state=3128,this.an_id(),this.state=3129,this.match(e.SET),this.state=3130,this.an_id(),this.state=3131,this.family_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_set_table_setting_uncompat(){let t=new Pa(this.context,this.state);this.enterRule(t,488,e.RULE_alter_table_set_table_setting_uncompat);try{this.enterOuterAlt(t,1),this.state=3133,this.match(e.SET),this.state=3134,this.an_id(),this.state=3135,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_set_table_setting_compat(){let t,i=new Fa(this.context,this.state);this.enterRule(i,490,e.RULE_alter_table_set_table_setting_compat);try{for(this.enterOuterAlt(i,1),this.state=3137,this.match(e.SET),this.state=3138,this.match(e.LPAREN),this.state=3139,this.alter_table_setting_entry(),this.state=3144,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3140,this.match(e.COMMA),this.state=3141,this.alter_table_setting_entry(),this.state=3146,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3147,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_reset_table_setting(){let t,i=new Ua(this.context,this.state);this.enterRule(i,492,e.RULE_alter_table_reset_table_setting);try{for(this.enterOuterAlt(i,1),this.state=3149,this.match(e.RESET),this.state=3150,this.match(e.LPAREN),this.state=3151,this.an_id(),this.state=3156,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3152,this.match(e.COMMA),this.state=3153,this.an_id(),this.state=3158,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3159,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_add_index(){let t=new Ha(this.context,this.state);this.enterRule(t,494,e.RULE_alter_table_add_index);try{this.enterOuterAlt(t,1),this.state=3161,this.match(e.ADD),this.state=3162,this.table_index()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_drop_index(){let t=new Ba(this.context,this.state);this.enterRule(t,496,e.RULE_alter_table_drop_index);try{this.enterOuterAlt(t,1),this.state=3164,this.match(e.DROP),this.state=3165,this.match(e.INDEX),this.state=3166,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_rename_to(){let t=new Wa(this.context,this.state);this.enterRule(t,498,e.RULE_alter_table_rename_to);try{this.enterOuterAlt(t,1),this.state=3168,this.match(e.RENAME),this.state=3169,this.match(e.TO),this.state=3170,this.an_id_table()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_rename_index_to(){let t=new Va(this.context,this.state);this.enterRule(t,500,e.RULE_alter_table_rename_index_to);try{this.enterOuterAlt(t,1),this.state=3172,this.match(e.RENAME),this.state=3173,this.match(e.INDEX),this.state=3174,this.an_id(),this.state=3175,this.match(e.TO),this.state=3176,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_add_changefeed(){let t=new za(this.context,this.state);this.enterRule(t,502,e.RULE_alter_table_add_changefeed);try{this.enterOuterAlt(t,1),this.state=3178,this.match(e.ADD),this.state=3179,this.changefeed()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_changefeed(){let t=new Ga(this.context,this.state);this.enterRule(t,504,e.RULE_alter_table_alter_changefeed);try{this.enterOuterAlt(t,1),this.state=3181,this.match(e.ALTER),this.state=3182,this.match(e.CHANGEFEED),this.state=3183,this.an_id(),this.state=3184,this.changefeed_alter_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_drop_changefeed(){let t=new ja(this.context,this.state);this.enterRule(t,506,e.RULE_alter_table_drop_changefeed);try{this.enterOuterAlt(t,1),this.state=3186,this.match(e.DROP),this.state=3187,this.match(e.CHANGEFEED),this.state=3188,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_alter_index(){let t=new Ka(this.context,this.state);this.enterRule(t,508,e.RULE_alter_table_alter_index);try{this.enterOuterAlt(t,1),this.state=3190,this.match(e.ALTER),this.state=3191,this.match(e.INDEX),this.state=3192,this.an_id(),this.state=3193,this.alter_table_alter_index_action()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}column_schema(){let t,i=new Ya(this.context,this.state);this.enterRule(i,510,e.RULE_column_schema);try{this.enterOuterAlt(i,1),this.state=3195,this.an_id_schema(),this.state=3196,this.type_name_or_bind(),this.state=3198,this.errorHandler.sync(this),t=this.tokenStream.LA(1),134===t&&(this.state=3197,this.family_relation()),this.state=3200,this.opt_column_constraints()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}family_relation(){let t=new qa(this.context,this.state);this.enterRule(t,512,e.RULE_family_relation);try{this.enterOuterAlt(t,1),this.state=3202,this.match(e.FAMILY),this.state=3203,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_column_constraints(){let t,i=new $a(this.context,this.state);this.enterRule(i,514,e.RULE_opt_column_constraints);try{this.enterOuterAlt(i,1),this.state=3209,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(197===t||199===t)&&(this.state=3206,this.errorHandler.sync(this),t=this.tokenStream.LA(1),197===t&&(this.state=3205,this.match(e.NOT)),this.state=3208,this.match(e.NULL)),this.state=3213,this.errorHandler.sync(this),t=this.tokenStream.LA(1),98===t&&(this.state=3211,this.match(e.DEFAULT),this.state=3212,this.expr())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}column_order_by_specification(){let t,i=new Qa(this.context,this.state);this.enterRule(i,516,e.RULE_column_order_by_specification);try{this.enterOuterAlt(i,1),this.state=3215,this.an_id(),this.state=3217,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(52===t||103===t)&&(this.state=3216,t=this.tokenStream.LA(1),52===t||103===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_constraint(){let t,i=new Xa(this.context,this.state);this.enterRule(i,518,e.RULE_table_constraint);try{switch(this.state=3258,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.PRIMARY:for(this.enterOuterAlt(i,1),this.state=3219,this.match(e.PRIMARY),this.state=3220,this.match(e.KEY),this.state=3221,this.match(e.LPAREN),this.state=3222,this.an_id(),this.state=3227,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3223,this.match(e.COMMA),this.state=3224,this.an_id(),this.state=3229,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3230,this.match(e.RPAREN);break;case e.PARTITION:for(this.enterOuterAlt(i,2),this.state=3232,this.match(e.PARTITION),this.state=3233,this.match(e.BY),this.state=3234,this.match(e.LPAREN),this.state=3235,this.an_id(),this.state=3240,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3236,this.match(e.COMMA),this.state=3237,this.an_id(),this.state=3242,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3243,this.match(e.RPAREN);break;case e.ORDER:for(this.enterOuterAlt(i,3),this.state=3245,this.match(e.ORDER),this.state=3246,this.match(e.BY),this.state=3247,this.match(e.LPAREN),this.state=3248,this.column_order_by_specification(),this.state=3253,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3249,this.match(e.COMMA),this.state=3250,this.column_order_by_specification(),this.state=3255,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3256,this.match(e.RPAREN);break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_index(){let t,i=new Za(this.context,this.state);this.enterRule(i,520,e.RULE_table_index);try{for(this.enterOuterAlt(i,1),this.state=3260,this.match(e.INDEX),this.state=3261,this.an_id(),this.state=3262,this.table_index_type(),this.state=3263,this.match(e.ON),this.state=3264,this.match(e.LPAREN),this.state=3265,this.an_id_schema(),this.state=3270,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3266,this.match(e.COMMA),this.state=3267,this.an_id_schema(),this.state=3272,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(this.state=3273,this.match(e.RPAREN),this.state=3286,this.errorHandler.sync(this),t=this.tokenStream.LA(1),86===t){for(this.state=3274,this.match(e.COVER),this.state=3275,this.match(e.LPAREN),this.state=3276,this.an_id_schema(),this.state=3281,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3277,this.match(e.COMMA),this.state=3278,this.an_id_schema(),this.state=3283,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3284,this.match(e.RPAREN)}this.state=3289,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=3288,this.with_index_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_index_type(){let t,i=new Ja(this.context,this.state);this.enterRule(i,522,e.RULE_table_index_type);try{switch(this.enterOuterAlt(i,1),this.state=3293,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.GLOBAL:this.state=3291,this.global_index();break;case e.LOCAL:this.state=3292,this.local_index();break;default:throw new ct(this)}this.state=3297,this.errorHandler.sync(this),t=this.tokenStream.LA(1),306===t&&(this.state=3295,this.match(e.USING),this.state=3296,this.index_subtype())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}global_index(){let t,i=new el(this.context,this.state);this.enterRule(i,524,e.RULE_global_index);try{this.enterOuterAlt(i,1),this.state=3299,this.match(e.GLOBAL),this.state=3301,this.errorHandler.sync(this),t=this.tokenStream.LA(1),299===t&&(this.state=3300,this.match(e.UNIQUE)),this.state=3304,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(55===t||278===t)&&(this.state=3303,t=this.tokenStream.LA(1),55===t||278===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}local_index(){let t=new tl(this.context,this.state);this.enterRule(t,526,e.RULE_local_index);try{this.enterOuterAlt(t,1),this.state=3306,this.match(e.LOCAL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}index_subtype(){let t=new il(this.context,this.state);this.enterRule(t,528,e.RULE_index_subtype);try{this.enterOuterAlt(t,1),this.state=3308,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_index_settings(){let t,i=new sl(this.context,this.state);this.enterRule(i,530,e.RULE_with_index_settings);try{let s;for(this.enterOuterAlt(i,1),this.state=3310,this.match(e.WITH),this.state=3311,this.match(e.LPAREN),this.state=3312,this.index_setting_entry(),this.state=3317,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3313,this.match(e.COMMA),this.state=3314,this.index_setting_entry()),this.state=3319,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,328,this.context);this.state=3321,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3320,this.match(e.COMMA)),this.state=3323,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}index_setting_entry(){let t=new nl(this.context,this.state);this.enterRule(t,532,e.RULE_index_setting_entry);try{this.enterOuterAlt(t,1),this.state=3325,this.an_id(),this.state=3326,this.match(e.EQUALS),this.state=3327,this.index_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}index_setting_value(){let t=new rl(this.context,this.state);this.enterRule(t,534,e.RULE_index_setting_value);try{switch(this.state=3333,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=3329,this.id_or_type();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=3330,this.match(e.STRING_VALUE);break;case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,3),this.state=3331,this.integer();break;case e.FALSE:case e.TRUE:this.enterOuterAlt(t,4),this.state=3332,this.bool_value();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed(){let t=new ol(this.context,this.state);this.enterRule(t,536,e.RULE_changefeed);try{this.enterOuterAlt(t,1),this.state=3335,this.match(e.CHANGEFEED),this.state=3336,this.an_id(),this.state=3337,this.match(e.WITH),this.state=3338,this.match(e.LPAREN),this.state=3339,this.changefeed_settings(),this.state=3340,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_settings(){let t,i=new al(this.context,this.state);this.enterRule(i,538,e.RULE_changefeed_settings);try{for(this.enterOuterAlt(i,1),this.state=3342,this.changefeed_settings_entry(),this.state=3347,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3343,this.match(e.COMMA),this.state=3344,this.changefeed_settings_entry(),this.state=3349,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}changefeed_settings_entry(){let t=new ll(this.context,this.state);this.enterRule(t,540,e.RULE_changefeed_settings_entry);try{this.enterOuterAlt(t,1),this.state=3350,this.an_id(),this.state=3351,this.match(e.EQUALS),this.state=3352,this.changefeed_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_setting_value(){let t=new cl(this.context,this.state);this.enterRule(t,542,e.RULE_changefeed_setting_value);try{this.enterOuterAlt(t,1),this.state=3354,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}changefeed_alter_settings(){let t=new hl(this.context,this.state);this.enterRule(t,544,e.RULE_changefeed_alter_settings);try{switch(this.state=3362,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DISABLE:this.enterOuterAlt(t,1),this.state=3356,this.match(e.DISABLE);break;case e.SET:this.enterOuterAlt(t,2),this.state=3357,this.match(e.SET),this.state=3358,this.match(e.LPAREN),this.state=3359,this.changefeed_settings(),this.state=3360,this.match(e.RPAREN);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_setting_entry(){let t=new dl(this.context,this.state);this.enterRule(t,546,e.RULE_alter_table_setting_entry);try{this.enterOuterAlt(t,1),this.state=3364,this.an_id(),this.state=3365,this.match(e.EQUALS),this.state=3366,this.table_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}table_setting_value(){let t,i=new ul(this.context,this.state);this.enterRule(i,548,e.RULE_table_setting_value);try{switch(this.state=3380,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,334,this.context)){case 1:this.enterOuterAlt(i,1),this.state=3368,this.id();break;case 2:this.enterOuterAlt(i,2),this.state=3369,this.match(e.STRING_VALUE);break;case 3:this.enterOuterAlt(i,3),this.state=3370,this.integer();break;case 4:this.enterOuterAlt(i,4),this.state=3371,this.split_boundaries();break;case 5:this.enterOuterAlt(i,5),this.state=3372,this.expr(),this.state=3373,this.match(e.ON),this.state=3374,this.an_id(),this.state=3377,this.errorHandler.sync(this),t=this.tokenStream.LA(1),51===t&&(this.state=3375,this.match(e.AS),this.state=3376,t=this.tokenStream.LA(1),!(t-190&-32)&&1<<t-190&11||263===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case 6:this.enterOuterAlt(i,6),this.state=3379,this.bool_value()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}family_entry(){let t=new gl(this.context,this.state);this.enterRule(t,550,e.RULE_family_entry);try{this.enterOuterAlt(t,1),this.state=3382,this.match(e.FAMILY),this.state=3383,this.an_id(),this.state=3384,this.family_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}family_settings(){let t,i=new pl(this.context,this.state);this.enterRule(i,552,e.RULE_family_settings);try{if(this.enterOuterAlt(i,1),this.state=3386,this.match(e.LPAREN),this.state=3395,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-40&-32)&&1<<t-40&3757047807||!(t-72&-32)&&1<<t-72&4294967295||!(t-104&-32)&&1<<t-104&3758063611||!(t-136&-32)&&1<<t-136&4294966267||!(t-168&-32)&&1<<t-168&4294934527||!(t-200&-32)&&1<<t-200&4294966783||!(t-232&-32)&&1<<t-232&4294958591||!(t-264&-32)&&1<<t-264&2683305463||!(t-296&-32)&&1<<t-296&67100671)for(this.state=3387,this.family_settings_entry(),this.state=3392,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3388,this.match(e.COMMA),this.state=3389,this.family_settings_entry(),this.state=3394,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3397,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}family_settings_entry(){let t=new ml(this.context,this.state);this.enterRule(t,554,e.RULE_family_settings_entry);try{this.enterOuterAlt(t,1),this.state=3399,this.an_id(),this.state=3400,this.match(e.EQUALS),this.state=3401,this.family_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}family_setting_value(){let t=new fl(this.context,this.state);this.enterRule(t,556,e.RULE_family_setting_value);try{switch(this.state=3405,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.STRING_VALUE:this.enterOuterAlt(t,1),this.state=3403,this.match(e.STRING_VALUE);break;case e.DIGITS:case e.INTEGER_VALUE:this.enterOuterAlt(t,2),this.state=3404,this.integer();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}split_boundaries(){let t,i=new _l(this.context,this.state);this.enterRule(i,558,e.RULE_split_boundaries);try{switch(this.state=3419,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,339,this.context)){case 1:for(this.enterOuterAlt(i,1),this.state=3407,this.match(e.LPAREN),this.state=3408,this.literal_value_list(),this.state=3413,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3409,this.match(e.COMMA),this.state=3410,this.literal_value_list(),this.state=3415,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3416,this.match(e.RPAREN);break;case 2:this.enterOuterAlt(i,2),this.state=3418,this.literal_value_list()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}literal_value_list(){let t,i=new vl(this.context,this.state);this.enterRule(i,560,e.RULE_literal_value_list);try{for(this.enterOuterAlt(i,1),this.state=3421,this.match(e.LPAREN),this.state=3422,this.literal_value(),this.state=3427,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3423,this.match(e.COMMA),this.state=3424,this.literal_value(),this.state=3429,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3430,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_table_alter_index_action(){let t=new Cl(this.context,this.state);this.enterRule(t,562,e.RULE_alter_table_alter_index_action);try{switch(this.state=3435,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,341,this.context)){case 1:this.enterOuterAlt(t,1),this.state=3432,this.alter_table_set_table_setting_uncompat();break;case 2:this.enterOuterAlt(t,2),this.state=3433,this.alter_table_set_table_setting_compat();break;case 3:this.enterOuterAlt(t,3),this.state=3434,this.alter_table_reset_table_setting()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_table_stmt(){let t=new bl(this.context,this.state);this.enterRule(t,564,e.RULE_drop_table_stmt);try{switch(this.enterOuterAlt(t,1),this.state=3437,this.match(e.DROP),this.state=3442,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.TABLE:this.state=3438,this.match(e.TABLE);break;case e.TABLESTORE:this.state=3439,this.match(e.TABLESTORE);break;case e.EXTERNAL:this.state=3440,this.match(e.EXTERNAL),this.state=3441,this.match(e.TABLE);break;default:throw new ct(this)}if(1===(this.state=3446,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,343,this.context)))this.state=3444,this.match(e.IF),this.state=3445,this.match(e.EXISTS);this.state=3448,this.simple_table_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_user_stmt(){let t,i=new El(this.context,this.state);this.enterRule(i,566,e.RULE_create_user_stmt);try{this.enterOuterAlt(i,1),this.state=3450,this.match(e.CREATE),this.state=3451,this.match(e.USER),this.state=3452,this.role_name(),this.state=3454,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(117===t||218===t)&&(this.state=3453,this.create_user_option())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_user_stmt(){let t,i=new Sl(this.context,this.state);this.enterRule(i,568,e.RULE_alter_user_stmt);try{switch(this.enterOuterAlt(i,1),this.state=3456,this.match(e.ALTER),this.state=3457,this.match(e.USER),this.state=3458,this.role_name(),this.state=3466,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ENCRYPTED:case e.PASSWORD:case e.WITH:this.state=3460,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=3459,this.match(e.WITH)),this.state=3462,this.create_user_option();break;case e.RENAME:this.state=3463,this.match(e.RENAME),this.state=3464,this.match(e.TO),this.state=3465,this.role_name();break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_group_stmt(){let t,i=new yl(this.context,this.state);this.enterRule(i,570,e.RULE_create_group_stmt);try{let s;if(this.enterOuterAlt(i,1),this.state=3468,this.match(e.CREATE),this.state=3469,this.match(e.GROUP),this.state=3470,this.role_name(),this.state=3484,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t){for(this.state=3471,this.match(e.WITH),this.state=3472,this.match(e.USER),this.state=3473,this.role_name(),this.state=3478,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,347,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3474,this.match(e.COMMA),this.state=3475,this.role_name()),this.state=3480,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,347,this.context);this.state=3482,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3481,this.match(e.COMMA))}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_group_stmt(){let t,i=new wl(this.context,this.state);this.enterRule(i,572,e.RULE_alter_group_stmt);try{let s;switch(this.enterOuterAlt(i,1),this.state=3486,this.match(e.ALTER),this.state=3487,this.match(e.GROUP),this.state=3488,this.role_name(),this.state=3505,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:case e.DROP:for(this.state=3489,t=this.tokenStream.LA(1),42===t||112===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3490,this.match(e.USER),this.state=3491,this.role_name(),this.state=3496,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,350,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3492,this.match(e.COMMA),this.state=3493,this.role_name()),this.state=3498,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,350,this.context);this.state=3500,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3499,this.match(e.COMMA));break;case e.RENAME:this.state=3502,this.match(e.RENAME),this.state=3503,this.match(e.TO),this.state=3504,this.role_name();break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_role_stmt(){let t,i=new Ll(this.context,this.state);this.enterRule(i,574,e.RULE_drop_role_stmt);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=3507,this.match(e.DROP),this.state=3508,t=this.tokenStream.LA(1),148===t||305===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3511,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,353,this.context)))this.state=3509,this.match(e.IF),this.state=3510,this.match(e.EXISTS);for(this.state=3513,this.role_name(),this.state=3518,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3514,this.match(e.COMMA),this.state=3515,this.role_name()),this.state=3520,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,354,this.context);this.state=3522,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3521,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}role_name(){let t=new Rl(this.context,this.state);this.enterRule(t,576,e.RULE_role_name);try{switch(this.state=3526,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=3524,this.an_id_or_type();break;case e.DOLLAR:this.enterOuterAlt(t,2),this.state=3525,this.bind_parameter();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_user_option(){let t,i=new Tl(this.context,this.state);this.enterRule(i,578,e.RULE_create_user_option);try{this.enterOuterAlt(i,1),this.state=3529,this.errorHandler.sync(this),t=this.tokenStream.LA(1),117===t&&(this.state=3528,this.match(e.ENCRYPTED)),this.state=3531,this.match(e.PASSWORD),this.state=3532,this.expr()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}grant_permissions_stmt(){let t,i=new xl(this.context,this.state);this.enterRule(i,580,e.RULE_grant_permissions_stmt);try{let s;for(this.enterOuterAlt(i,1),this.state=3534,this.match(e.GRANT),this.state=3535,this.permission_name_target(),this.state=3536,this.match(e.ON),this.state=3537,this.an_id_schema(),this.state=3542,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3538,this.match(e.COMMA),this.state=3539,this.an_id_schema(),this.state=3544,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=3545,this.match(e.TO),this.state=3546,this.role_name(),this.state=3551,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,359,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3547,this.match(e.COMMA),this.state=3548,this.role_name()),this.state=3553,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,359,this.context);this.state=3555,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3554,this.match(e.COMMA)),this.state=3560,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=3557,this.match(e.WITH),this.state=3558,this.match(e.GRANT),this.state=3559,this.match(e.OPTION))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}revoke_permissions_stmt(){let t,i=new kl(this.context,this.state);this.enterRule(i,582,e.RULE_revoke_permissions_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=3562,this.match(e.REVOKE),this.state=3566,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,362,this.context)))this.state=3563,this.match(e.GRANT),this.state=3564,this.match(e.OPTION),this.state=3565,this.match(e.FOR);for(this.state=3568,this.permission_name_target(),this.state=3569,this.match(e.ON),this.state=3570,this.an_id_schema(),this.state=3575,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3571,this.match(e.COMMA),this.state=3572,this.an_id_schema(),this.state=3577,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=3578,this.match(e.FROM),this.state=3579,this.role_name(),this.state=3584,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3580,this.match(e.COMMA),this.state=3581,this.role_name(),this.state=3586,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}permission_id(){let t,i=new Al(this.context,this.state);this.enterRule(i,584,e.RULE_permission_id);try{switch(this.state=3611,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.CONNECT:this.enterOuterAlt(i,1),this.state=3587,this.match(e.CONNECT);break;case e.LIST:this.enterOuterAlt(i,2),this.state=3588,this.match(e.LIST);break;case e.INSERT:this.enterOuterAlt(i,3),this.state=3589,this.match(e.INSERT);break;case e.MANAGE:this.enterOuterAlt(i,4),this.state=3590,this.match(e.MANAGE);break;case e.DROP:this.enterOuterAlt(i,5),this.state=3591,this.match(e.DROP);break;case e.GRANT:this.enterOuterAlt(i,6),this.state=3592,this.match(e.GRANT);break;case e.MODIFY:this.enterOuterAlt(i,7),this.state=3593,this.match(e.MODIFY),this.state=3594,t=this.tokenStream.LA(1),58===t||281===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this);break;case e.ERASE:case e.UPDATE:this.enterOuterAlt(i,8),this.state=3595,t=this.tokenStream.LA(1),120===t||302===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3596,this.match(e.ROW);break;case e.ALTER:case e.DESCRIBE:case e.REMOVE:this.enterOuterAlt(i,9),this.state=3597,t=this.tokenStream.LA(1),45===t||104===t||239===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3598,this.match(e.SCHEMA);break;case e.SELECT:this.enterOuterAlt(i,10),this.state=3599,this.match(e.SELECT),this.state=3601,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(58===t||258===t||281===t)&&(this.state=3600,t=this.tokenStream.LA(1),58===t||258===t||281===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;case e.FULL:case e.USE:this.enterOuterAlt(i,11),this.state=3603,t=this.tokenStream.LA(1),143===t||304===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3605,this.errorHandler.sync(this),t=this.tokenStream.LA(1),180===t&&(this.state=3604,this.match(e.LEGACY));break;case e.CREATE:this.enterOuterAlt(i,12),this.state=3607,this.match(e.CREATE),this.state=3609,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(107===t||231===t||280===t)&&(this.state=3608,t=this.tokenStream.LA(1),107===t||231===t||280===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this));break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}permission_name(){let t=new Nl(this.context,this.state);this.enterRule(t,586,e.RULE_permission_name);try{switch(this.state=3615,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ALTER:case e.CONNECT:case e.CREATE:case e.DESCRIBE:case e.DROP:case e.ERASE:case e.FULL:case e.GRANT:case e.INSERT:case e.LIST:case e.MANAGE:case e.MODIFY:case e.REMOVE:case e.SELECT:case e.UPDATE:case e.USE:this.enterOuterAlt(t,1),this.state=3613,this.permission_id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=3614,this.match(e.STRING_VALUE);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}permission_name_target(){let t,i=new Il(this.context,this.state);this.enterRule(i,588,e.RULE_permission_name_target);try{let s;switch(this.state=3632,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ALTER:case e.CONNECT:case e.CREATE:case e.DESCRIBE:case e.DROP:case e.ERASE:case e.FULL:case e.GRANT:case e.INSERT:case e.LIST:case e.MANAGE:case e.MODIFY:case e.REMOVE:case e.SELECT:case e.UPDATE:case e.USE:case e.STRING_VALUE:for(this.enterOuterAlt(i,1),this.state=3617,this.permission_name(),this.state=3622,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,370,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3618,this.match(e.COMMA),this.state=3619,this.permission_name()),this.state=3624,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,370,this.context);this.state=3626,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3625,this.match(e.COMMA));break;case e.ALL:this.enterOuterAlt(i,2),this.state=3628,this.match(e.ALL),this.state=3630,this.errorHandler.sync(this),t=this.tokenStream.LA(1),229===t&&(this.state=3629,this.match(e.PRIVILEGES));break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_resource_pool_stmt(){let t=new Ol(this.context,this.state);this.enterRule(t,590,e.RULE_create_resource_pool_stmt);try{this.enterOuterAlt(t,1),this.state=3634,this.match(e.CREATE),this.state=3635,this.match(e.RESOURCE),this.state=3636,this.match(e.POOL),this.state=3637,this.object_ref(),this.state=3638,this.with_table_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_resource_pool_stmt(){let t,i=new Dl(this.context,this.state);this.enterRule(i,592,e.RULE_alter_resource_pool_stmt);try{for(this.enterOuterAlt(i,1),this.state=3640,this.match(e.ALTER),this.state=3641,this.match(e.RESOURCE),this.state=3642,this.match(e.POOL),this.state=3643,this.object_ref(),this.state=3644,this.alter_resource_pool_action(),this.state=3649,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3645,this.match(e.COMMA),this.state=3646,this.alter_resource_pool_action(),this.state=3651,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_resource_pool_action(){let t=new Ml(this.context,this.state);this.enterRule(t,594,e.RULE_alter_resource_pool_action);try{switch(this.state=3654,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=3652,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=3653,this.alter_table_reset_table_setting();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_resource_pool_stmt(){let t=new Pl(this.context,this.state);this.enterRule(t,596,e.RULE_drop_resource_pool_stmt);try{this.enterOuterAlt(t,1),this.state=3656,this.match(e.DROP),this.state=3657,this.match(e.RESOURCE),this.state=3658,this.match(e.POOL),this.state=3659,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_resource_pool_classifier_stmt(){let t=new Fl(this.context,this.state);this.enterRule(t,598,e.RULE_create_resource_pool_classifier_stmt);try{this.enterOuterAlt(t,1),this.state=3661,this.match(e.CREATE),this.state=3662,this.match(e.RESOURCE),this.state=3663,this.match(e.POOL),this.state=3664,this.match(e.CLASSIFIER),this.state=3665,this.object_ref(),this.state=3666,this.with_table_settings()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_resource_pool_classifier_stmt(){let t,i=new Ul(this.context,this.state);this.enterRule(i,600,e.RULE_alter_resource_pool_classifier_stmt);try{for(this.enterOuterAlt(i,1),this.state=3668,this.match(e.ALTER),this.state=3669,this.match(e.RESOURCE),this.state=3670,this.match(e.POOL),this.state=3671,this.match(e.CLASSIFIER),this.state=3672,this.object_ref(),this.state=3673,this.alter_resource_pool_classifier_action(),this.state=3678,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3674,this.match(e.COMMA),this.state=3675,this.alter_resource_pool_classifier_action(),this.state=3680,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_resource_pool_classifier_action(){let t=new Hl(this.context,this.state);this.enterRule(t,602,e.RULE_alter_resource_pool_classifier_action);try{switch(this.state=3683,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=3681,this.alter_table_set_table_setting_compat();break;case e.RESET:this.enterOuterAlt(t,2),this.state=3682,this.alter_table_reset_table_setting();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_resource_pool_classifier_stmt(){let t=new Bl(this.context,this.state);this.enterRule(t,604,e.RULE_drop_resource_pool_classifier_stmt);try{this.enterOuterAlt(t,1),this.state=3685,this.match(e.DROP),this.state=3686,this.match(e.RESOURCE),this.state=3687,this.match(e.POOL),this.state=3688,this.match(e.CLASSIFIER),this.state=3689,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}create_replication_stmt(){let t,i=new Wl(this.context,this.state);this.enterRule(i,606,e.RULE_create_replication_stmt);try{for(this.enterOuterAlt(i,1),this.state=3691,this.match(e.CREATE),this.state=3692,this.match(e.ASYNC),this.state=3693,this.match(e.REPLICATION),this.state=3694,this.object_ref(),this.state=3695,this.match(e.FOR),this.state=3696,this.replication_target(),this.state=3701,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3697,this.match(e.COMMA),this.state=3698,this.replication_target(),this.state=3703,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3704,this.match(e.WITH),this.state=3705,this.match(e.LPAREN),this.state=3706,this.replication_settings(),this.state=3707,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}replication_target(){let t=new Vl(this.context,this.state);this.enterRule(t,608,e.RULE_replication_target);try{this.enterOuterAlt(t,1),this.state=3709,this.object_ref(),this.state=3710,this.replication_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}replication_settings(){let t,i=new zl(this.context,this.state);this.enterRule(i,610,e.RULE_replication_settings);try{for(this.enterOuterAlt(i,1),this.state=3712,this.replication_settings_entry(),this.state=3717,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3713,this.match(e.COMMA),this.state=3714,this.replication_settings_entry(),this.state=3719,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}replication_settings_entry(){let t=new Gl(this.context,this.state);this.enterRule(t,612,e.RULE_replication_settings_entry);try{this.enterOuterAlt(t,1),this.state=3720,this.an_id(),this.state=3721,this.match(e.EQUALS),this.state=3722,this.match(e.STRING_VALUE)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_replication_stmt(){let t,i=new jl(this.context,this.state);this.enterRule(i,614,e.RULE_alter_replication_stmt);try{for(this.enterOuterAlt(i,1),this.state=3724,this.match(e.ALTER),this.state=3725,this.match(e.ASYNC),this.state=3726,this.match(e.REPLICATION),this.state=3727,this.object_ref(),this.state=3728,this.alter_replication_action(),this.state=3733,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3729,this.match(e.COMMA),this.state=3730,this.alter_replication_action(),this.state=3735,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_replication_action(){let t=new Kl(this.context,this.state);this.enterRule(t,616,e.RULE_alter_replication_action);try{this.enterOuterAlt(t,1),this.state=3736,this.alter_replication_set_setting()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_replication_set_setting(){let t=new Yl(this.context,this.state);this.enterRule(t,618,e.RULE_alter_replication_set_setting);try{this.enterOuterAlt(t,1),this.state=3738,this.match(e.SET),this.state=3739,this.match(e.LPAREN),this.state=3740,this.replication_settings(),this.state=3741,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}drop_replication_stmt(){let t,i=new ql(this.context,this.state);this.enterRule(i,620,e.RULE_drop_replication_stmt);try{this.enterOuterAlt(i,1),this.state=3743,this.match(e.DROP),this.state=3744,this.match(e.ASYNC),this.state=3745,this.match(e.REPLICATION),this.state=3746,this.object_ref(),this.state=3748,this.errorHandler.sync(this),t=this.tokenStream.LA(1),70===t&&(this.state=3747,this.match(e.CASCADE))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}action_or_subquery_args(){let t,i=new $l(this.context,this.state);this.enterRule(i,622,e.RULE_action_or_subquery_args);try{for(this.enterOuterAlt(i,1),this.state=3750,this.opt_bind_parameter(),this.state=3755,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3751,this.match(e.COMMA),this.state=3752,this.opt_bind_parameter(),this.state=3757,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}define_action_or_subquery_stmt(){let t,i=new Ql(this.context,this.state);this.enterRule(i,624,e.RULE_define_action_or_subquery_stmt);try{this.enterOuterAlt(i,1),this.state=3758,this.match(e.DEFINE),this.state=3759,t=this.tokenStream.LA(1),41===t||274===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3760,this.bind_parameter(),this.state=3761,this.match(e.LPAREN),this.state=3763,this.errorHandler.sync(this),t=this.tokenStream.LA(1),32===t&&(this.state=3762,this.action_or_subquery_args()),this.state=3765,this.match(e.RPAREN),this.state=3766,this.match(e.AS),this.state=3767,this.define_action_or_subquery_body(),this.state=3768,this.match(e.END),this.state=3769,this.match(e.DEFINE)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}define_action_or_subquery_body(){let t,i=new Xl(this.context,this.state);this.enterRule(i,626,e.RULE_define_action_or_subquery_body);try{let s;for(this.enterOuterAlt(i,1),this.state=3774,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=3771,this.match(e.SEMICOLON),this.state=3776,this.errorHandler.sync(this),t=this.tokenStream.LA(1);if(this.state=3795,this.errorHandler.sync(this),t=this.tokenStream.LA(1),26===t||!(t-32&-32)&&1<<t-32&536895489||!(t-79&-32)&&1<<t-79&1086587137||!(t-111&-32)&&1<<t-111&2684882947||!(t-147&-32)&&1<<t-147&1050753||!(t-215&-32)&&1<<t-215&134775809||!(t-247&-32)&&1<<t-247&262721||!(t-302&-32)&&1<<t-302&71){for(this.state=3777,this.sql_stmt_core(),this.state=3786,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,386,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=3779,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=3778,this.match(e.SEMICOLON),this.state=3781,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(23===t);this.state=3783,this.sql_stmt_core()}this.state=3788,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,386,this.context)}for(this.state=3792,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=3789,this.match(e.SEMICOLON),this.state=3794,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}if_stmt(){let t,i=new Zl(this.context,this.state);this.enterRule(i,628,e.RULE_if_stmt);try{this.enterOuterAlt(i,1),this.state=3798,this.errorHandler.sync(this),t=this.tokenStream.LA(1),123===t&&(this.state=3797,this.match(e.EVALUATE)),this.state=3800,this.match(e.IF),this.state=3801,this.expr(),this.state=3802,this.do_stmt(),this.state=3805,this.errorHandler.sync(this),t=this.tokenStream.LA(1),114===t&&(this.state=3803,this.match(e.ELSE),this.state=3804,this.do_stmt())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}for_stmt(){let t,i=new Jl(this.context,this.state);this.enterRule(i,630,e.RULE_for_stmt);try{this.enterOuterAlt(i,1),this.state=3808,this.errorHandler.sync(this),t=this.tokenStream.LA(1),123===t&&(this.state=3807,this.match(e.EVALUATE)),this.state=3811,this.errorHandler.sync(this),t=this.tokenStream.LA(1),215===t&&(this.state=3810,this.match(e.PARALLEL)),this.state=3813,this.match(e.FOR),this.state=3814,this.bind_parameter(),this.state=3815,this.match(e.IN),this.state=3816,this.expr(),this.state=3817,this.do_stmt(),this.state=3820,this.errorHandler.sync(this),t=this.tokenStream.LA(1),114===t&&(this.state=3818,this.match(e.ELSE),this.state=3819,this.do_stmt())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_ref(){let t,i=new ec(this.context,this.state);this.enterRule(i,632,e.RULE_table_ref);try{let s;if(this.enterOuterAlt(i,1),1===(this.state=3825,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,394,this.context)))this.state=3822,this.cluster_expr(),this.state=3823,this.match(e.DOT);switch(this.state=3828,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t&&(this.state=3827,this.match(e.COMMAT)),this.state=3860,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,402,this.context)){case 1:this.state=3830,this.table_key();break;case 2:if(this.state=3831,this.an_id_expr(),this.state=3832,this.match(e.LPAREN),this.state=3844,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-15&-32)&&1<<t-15&4278618141||!(t-47&-32)&&1<<t-47&4294959103||!(t-79&-32)&&1<<t-79&4294967295||!(t-111&-32)&&1<<t-111&4294967295||!(t-143&-32)&&1<<t-143&4294967287||!(t-175&-32)&&1<<t-175&4294967295||!(t-207&-32)&&1<<t-207&4294967295||!(t-239&-32)&&1<<t-239&4294967291||!(t-271&-32)&&1<<t-271&4294967295||!(t-303&-32)&&1<<t-303&8388607){for(this.state=3833,this.table_arg(),this.state=3838,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,396,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3834,this.match(e.COMMA),this.state=3835,this.table_arg()),this.state=3840,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,396,this.context);this.state=3842,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3841,this.match(e.COMMA))}this.state=3846,this.match(e.RPAREN);break;case 3:this.state=3848,this.bind_parameter(),this.state=3854,this.errorHandler.sync(this),t=this.tokenStream.LA(1),26===t&&(this.state=3849,this.match(e.LPAREN),this.state=3851,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(!(t-15&-32)&&1<<t-15&4278585373||!(t-47&-32)&&1<<t-47&4294959103||!(t-79&-32)&&1<<t-79&4294967295||!(t-111&-32)&&1<<t-111&4294967295||!(t-143&-32)&&1<<t-143&4294967287||!(t-175&-32)&&1<<t-175&4294967295||!(t-207&-32)&&1<<t-207&4294967295||!(t-239&-32)&&1<<t-239&4294967291||!(t-271&-32)&&1<<t-271&4294967295||!(t-303&-32)&&1<<t-303&8388607)&&(this.state=3850,this.expr_list()),this.state=3853,this.match(e.RPAREN)),this.state=3858,this.errorHandler.sync(this),t=this.tokenStream.LA(1),310===t&&(this.state=3856,this.match(e.VIEW),this.state=3857,this.view_name())}this.state=3863,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=3862,this.table_hints())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_key(){let t,i=new tc(this.context,this.state);this.enterRule(i,634,e.RULE_table_key);try{this.enterOuterAlt(i,1),this.state=3865,this.id_table_or_type(),this.state=3868,this.errorHandler.sync(this),t=this.tokenStream.LA(1),310===t&&(this.state=3866,this.match(e.VIEW),this.state=3867,this.view_name())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_arg(){let t,i=new ic(this.context,this.state);this.enterRule(i,636,e.RULE_table_arg);try{this.enterOuterAlt(i,1),this.state=3871,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t&&(this.state=3870,this.match(e.COMMAT)),this.state=3873,this.named_expr(),this.state=3876,this.errorHandler.sync(this),t=this.tokenStream.LA(1),310===t&&(this.state=3874,this.match(e.VIEW),this.state=3875,this.view_name())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_hints(){let t,i=new sc(this.context,this.state);this.enterRule(i,638,e.RULE_table_hints);try{switch(this.enterOuterAlt(i,1),this.state=3878,this.match(e.WITH),this.state=3891,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=3879,this.table_hint();break;case e.LPAREN:for(this.state=3880,this.match(e.LPAREN),this.state=3881,this.table_hint(),this.state=3886,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3882,this.match(e.COMMA),this.state=3883,this.table_hint(),this.state=3888,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=3889,this.match(e.RPAREN);break;default:throw new ct(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}table_hint(){let t,i=new nc(this.context,this.state);this.enterRule(i,640,e.RULE_table_hint);try{let s;switch(this.state=3938,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,418,this.context)){case 1:if(this.enterOuterAlt(i,1),this.state=3893,this.an_id_hint(),this.state=3912,this.errorHandler.sync(this),t=this.tokenStream.LA(1),2===t)switch(this.state=3894,this.match(e.EQUALS),this.state=3910,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=3895,this.type_name_tag();break;case e.LPAREN:for(this.state=3896,this.match(e.LPAREN),this.state=3897,this.type_name_tag(),this.state=3902,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,409,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3898,this.match(e.COMMA),this.state=3899,this.type_name_tag()),this.state=3904,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,409,this.context);this.state=3906,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3905,this.match(e.COMMA)),this.state=3908,this.match(e.RPAREN);break;default:throw new ct(this)}break;case 2:this.enterOuterAlt(i,2),this.state=3914,t=this.tokenStream.LA(1),78===t||262===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this),this.state=3916,this.errorHandler.sync(this),t=this.tokenStream.LA(1),2===t&&(this.state=3915,this.match(e.EQUALS)),this.state=3918,this.type_name_or_bind();break;case 3:if(this.enterOuterAlt(i,3),this.state=3919,this.match(e.SCHEMA),this.state=3921,this.errorHandler.sync(this),t=this.tokenStream.LA(1),2===t&&(this.state=3920,this.match(e.EQUALS)),this.state=3923,this.match(e.LPAREN),this.state=3932,this.errorHandler.sync(this),t=this.tokenStream.LA(1),!(t-32&-32)&&1<<t-32&4026531585||!(t-64&-32)&&1<<t-64&4294967295||!(t-96&-32)&&1<<t-96&4294967295||!(t-128&-32)&&1<<t-128&4294705119||!(t-160&-32)&&1<<t-160&4294967295||!(t-192&-32)&&1<<t-192&4294967295||!(t-224&-32)&&1<<t-224&4294836223||!(t-256&-32)&&1<<t-256&4294967295||!(t-288&-32)&&1<<t-288&4294967263||320===t||321===t)for(this.state=3924,this.struct_arg_positional(),this.state=3929,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,415,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=3925,this.match(e.COMMA),this.state=3926,this.struct_arg_positional()),this.state=3931,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,415,this.context);this.state=3935,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=3934,this.match(e.COMMA)),this.state=3937,this.match(e.RPAREN)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}object_ref(){let t=new rc(this.context,this.state);this.enterRule(t,642,e.RULE_object_ref);try{if(this.enterOuterAlt(t,1),1===(this.state=3943,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,419,this.context)))this.state=3940,this.cluster_expr(),this.state=3941,this.match(e.DOT);this.state=3945,this.id_or_at()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}simple_table_ref_core(){let t,i=new oc(this.context,this.state);this.enterRule(i,644,e.RULE_simple_table_ref_core);try{switch(this.state=3952,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,421,this.context)){case 1:this.enterOuterAlt(i,1),this.state=3947,this.object_ref();break;case 2:this.enterOuterAlt(i,2),this.state=3949,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t&&(this.state=3948,this.match(e.COMMAT)),this.state=3951,this.bind_parameter()}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}simple_table_ref(){let t,i=new ac(this.context,this.state);this.enterRule(i,646,e.RULE_simple_table_ref);try{this.enterOuterAlt(i,1),this.state=3954,this.simple_table_ref_core(),this.state=3956,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=3955,this.table_hints())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}into_simple_table_ref(){let t,i=new lc(this.context,this.state);this.enterRule(i,648,e.RULE_into_simple_table_ref);try{this.enterOuterAlt(i,1),this.state=3958,this.simple_table_ref(),this.state=3962,this.errorHandler.sync(this),t=this.tokenStream.LA(1),120===t&&(this.state=3959,this.match(e.ERASE),this.state=3960,this.match(e.BY),this.state=3961,this.pure_column_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}delete_stmt(){let t,i=new cc(this.context,this.state);this.enterRule(i,650,e.RULE_delete_stmt);try{switch(this.enterOuterAlt(i,1),this.state=3964,this.match(e.DELETE),this.state=3965,this.match(e.FROM),this.state=3966,this.simple_table_ref(),this.state=3970,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.WHERE:this.state=3967,this.where_expr();break;case e.ON:this.state=3968,this.match(e.ON),this.state=3969,this.into_values_source();case e.EOF:case e.SEMICOLON:case e.END:case e.RETURNING:}this.state=3973,this.errorHandler.sync(this),t=this.tokenStream.LA(1),251===t&&(this.state=3972,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}update_stmt(){let t,i=new hc(this.context,this.state);this.enterRule(i,652,e.RULE_update_stmt);try{switch(this.enterOuterAlt(i,1),this.state=3975,this.match(e.UPDATE),this.state=3976,this.simple_table_ref(),this.state=3984,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.state=3977,this.match(e.SET),this.state=3978,this.set_clause_choice(),this.state=3980,this.errorHandler.sync(this),t=this.tokenStream.LA(1),313===t&&(this.state=3979,this.where_expr());break;case e.ON:this.state=3982,this.match(e.ON),this.state=3983,this.into_values_source();break;default:throw new ct(this)}this.state=3987,this.errorHandler.sync(this),t=this.tokenStream.LA(1),251===t&&(this.state=3986,this.returning_columns_list())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}set_clause_choice(){let t=new dc(this.context,this.state);this.enterRule(t,654,e.RULE_set_clause_choice);try{switch(this.state=3991,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=3989,this.set_clause_list();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=3990,this.multiple_column_assignment();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_clause_list(){let t,i=new uc(this.context,this.state);this.enterRule(i,656,e.RULE_set_clause_list);try{for(this.enterOuterAlt(i,1),this.state=3993,this.set_clause(),this.state=3998,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=3994,this.match(e.COMMA),this.state=3995,this.set_clause(),this.state=4e3,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}set_clause(){let t=new gc(this.context,this.state);this.enterRule(t,658,e.RULE_set_clause);try{this.enterOuterAlt(t,1),this.state=4001,this.set_target(),this.state=4002,this.match(e.EQUALS),this.state=4003,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_target(){let t=new pc(this.context,this.state);this.enterRule(t,660,e.RULE_set_target);try{this.enterOuterAlt(t,1),this.state=4005,this.column_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}multiple_column_assignment(){let t=new mc(this.context,this.state);this.enterRule(t,662,e.RULE_multiple_column_assignment);try{this.enterOuterAlt(t,1),this.state=4007,this.set_target_list(),this.state=4008,this.match(e.EQUALS),this.state=4009,this.match(e.LPAREN),this.state=4010,this.simple_values_source(),this.state=4011,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}set_target_list(){let t,i=new fc(this.context,this.state);this.enterRule(i,664,e.RULE_set_target_list);try{for(this.enterOuterAlt(i,1),this.state=4013,this.match(e.LPAREN),this.state=4014,this.set_target(),this.state=4019,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4015,this.match(e.COMMA),this.state=4016,this.set_target(),this.state=4021,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4022,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_stmt(){let t,i=new _c(this.context,this.state);this.enterRule(i,666,e.RULE_create_topic_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4024,this.match(e.CREATE),this.state=4025,this.match(e.TOPIC),this.state=4029,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,432,this.context)))this.state=4026,this.match(e.IF),this.state=4027,this.match(e.NOT),this.state=4028,this.match(e.EXISTS);this.state=4031,this.topic_ref(),this.state=4033,this.errorHandler.sync(this),t=this.tokenStream.LA(1),26===t&&(this.state=4032,this.create_topic_entries()),this.state=4036,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=4035,this.with_topic_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_entries(){let t,i=new vc(this.context,this.state);this.enterRule(i,668,e.RULE_create_topic_entries);try{for(this.enterOuterAlt(i,1),this.state=4038,this.match(e.LPAREN),this.state=4039,this.create_topic_entry(),this.state=4044,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4040,this.match(e.COMMA),this.state=4041,this.create_topic_entry(),this.state=4046,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4047,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}create_topic_entry(){let t=new Cc(this.context,this.state);this.enterRule(t,670,e.RULE_create_topic_entry);try{this.enterOuterAlt(t,1),this.state=4049,this.topic_create_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}with_topic_settings(){let t=new bc(this.context,this.state);this.enterRule(t,672,e.RULE_with_topic_settings);try{this.enterOuterAlt(t,1),this.state=4051,this.match(e.WITH),this.state=4052,this.match(e.LPAREN),this.state=4053,this.topic_settings(),this.state=4054,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_stmt(){let t,i=new Ec(this.context,this.state);this.enterRule(i,674,e.RULE_alter_topic_stmt);try{if(this.enterOuterAlt(i,1),1===(this.state=4056,this.match(e.ALTER),this.state=4057,this.match(e.TOPIC),this.state=4060,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,436,this.context)))this.state=4058,this.match(e.IF),this.state=4059,this.match(e.EXISTS);for(this.state=4062,this.topic_ref(),this.state=4063,this.alter_topic_action(),this.state=4068,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4064,this.match(e.COMMA),this.state=4065,this.alter_topic_action(),this.state=4070,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_action(){let t=new Sc(this.context,this.state);this.enterRule(t,676,e.RULE_alter_topic_action);try{switch(this.state=4076,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ADD:this.enterOuterAlt(t,1),this.state=4071,this.alter_topic_add_consumer();break;case e.ALTER:this.enterOuterAlt(t,2),this.state=4072,this.alter_topic_alter_consumer();break;case e.DROP:this.enterOuterAlt(t,3),this.state=4073,this.alter_topic_drop_consumer();break;case e.SET:this.enterOuterAlt(t,4),this.state=4074,this.alter_topic_set_settings();break;case e.RESET:this.enterOuterAlt(t,5),this.state=4075,this.alter_topic_reset_settings();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_add_consumer(){let t=new yc(this.context,this.state);this.enterRule(t,678,e.RULE_alter_topic_add_consumer);try{this.enterOuterAlt(t,1),this.state=4078,this.match(e.ADD),this.state=4079,this.topic_create_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_create_consumer_entry(){let t,i=new wc(this.context,this.state);this.enterRule(i,680,e.RULE_topic_create_consumer_entry);try{this.enterOuterAlt(i,1),this.state=4081,this.match(e.CONSUMER),this.state=4082,this.an_id(),this.state=4084,this.errorHandler.sync(this),t=this.tokenStream.LA(1),315===t&&(this.state=4083,this.topic_consumer_with_settings())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_alter_consumer(){let t=new Lc(this.context,this.state);this.enterRule(t,682,e.RULE_alter_topic_alter_consumer);try{this.enterOuterAlt(t,1),this.state=4086,this.match(e.ALTER),this.state=4087,this.match(e.CONSUMER),this.state=4088,this.topic_consumer_ref(),this.state=4089,this.alter_topic_alter_consumer_entry()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_alter_consumer_entry(){let t=new Rc(this.context,this.state);this.enterRule(t,684,e.RULE_alter_topic_alter_consumer_entry);try{switch(this.state=4093,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.SET:this.enterOuterAlt(t,1),this.state=4091,this.topic_alter_consumer_set();break;case e.RESET:this.enterOuterAlt(t,2),this.state=4092,this.topic_alter_consumer_reset();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_drop_consumer(){let t=new Tc(this.context,this.state);this.enterRule(t,686,e.RULE_alter_topic_drop_consumer);try{this.enterOuterAlt(t,1),this.state=4095,this.match(e.DROP),this.state=4096,this.match(e.CONSUMER),this.state=4097,this.topic_consumer_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_alter_consumer_set(){let t=new xc(this.context,this.state);this.enterRule(t,688,e.RULE_topic_alter_consumer_set);try{this.enterOuterAlt(t,1),this.state=4099,this.match(e.SET),this.state=4100,this.match(e.LPAREN),this.state=4101,this.topic_consumer_settings(),this.state=4102,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_alter_consumer_reset(){let t,i=new kc(this.context,this.state);this.enterRule(i,690,e.RULE_topic_alter_consumer_reset);try{for(this.enterOuterAlt(i,1),this.state=4104,this.match(e.RESET),this.state=4105,this.match(e.LPAREN),this.state=4106,this.an_id(),this.state=4111,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4107,this.match(e.COMMA),this.state=4108,this.an_id(),this.state=4113,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4114,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}alter_topic_set_settings(){let t=new Ac(this.context,this.state);this.enterRule(t,692,e.RULE_alter_topic_set_settings);try{this.enterOuterAlt(t,1),this.state=4116,this.match(e.SET),this.state=4117,this.match(e.LPAREN),this.state=4118,this.topic_settings(),this.state=4119,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_topic_reset_settings(){let t,i=new Nc(this.context,this.state);this.enterRule(i,694,e.RULE_alter_topic_reset_settings);try{for(this.enterOuterAlt(i,1),this.state=4121,this.match(e.RESET),this.state=4122,this.match(e.LPAREN),this.state=4123,this.an_id(),this.state=4128,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4124,this.match(e.COMMA),this.state=4125,this.an_id_pure(),this.state=4130,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4131,this.match(e.RPAREN)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}drop_topic_stmt(){let t=new Ic(this.context,this.state);this.enterRule(t,696,e.RULE_drop_topic_stmt);try{if(this.enterOuterAlt(t,1),1===(this.state=4133,this.match(e.DROP),this.state=4134,this.match(e.TOPIC),this.state=4137,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,443,this.context)))this.state=4135,this.match(e.IF),this.state=4136,this.match(e.EXISTS);this.state=4139,this.topic_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_settings(){let t,i=new Oc(this.context,this.state);this.enterRule(i,698,e.RULE_topic_settings);try{for(this.enterOuterAlt(i,1),this.state=4141,this.topic_settings_entry(),this.state=4146,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4142,this.match(e.COMMA),this.state=4143,this.topic_settings_entry(),this.state=4148,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}topic_settings_entry(){let t=new Dc(this.context,this.state);this.enterRule(t,700,e.RULE_topic_settings_entry);try{this.enterOuterAlt(t,1),this.state=4149,this.an_id(),this.state=4150,this.match(e.EQUALS),this.state=4151,this.topic_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_setting_value(){let t=new Mc(this.context,this.state);this.enterRule(t,702,e.RULE_topic_setting_value);try{this.enterOuterAlt(t,1),this.state=4153,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_with_settings(){let t=new Pc(this.context,this.state);this.enterRule(t,704,e.RULE_topic_consumer_with_settings);try{this.enterOuterAlt(t,1),this.state=4155,this.match(e.WITH),this.state=4156,this.match(e.LPAREN),this.state=4157,this.topic_consumer_settings(),this.state=4158,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_settings(){let t,i=new Fc(this.context,this.state);this.enterRule(i,706,e.RULE_topic_consumer_settings);try{for(this.enterOuterAlt(i,1),this.state=4160,this.topic_consumer_settings_entry(),this.state=4165,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4161,this.match(e.COMMA),this.state=4162,this.topic_consumer_settings_entry(),this.state=4167,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}topic_consumer_settings_entry(){let t=new Uc(this.context,this.state);this.enterRule(t,708,e.RULE_topic_consumer_settings_entry);try{this.enterOuterAlt(t,1),this.state=4168,this.an_id(),this.state=4169,this.match(e.EQUALS),this.state=4170,this.topic_consumer_setting_value()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_setting_value(){let t=new Hc(this.context,this.state);this.enterRule(t,710,e.RULE_topic_consumer_setting_value);try{this.enterOuterAlt(t,1),this.state=4172,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_ref(){let t=new Bc(this.context,this.state);this.enterRule(t,712,e.RULE_topic_ref);try{if(this.enterOuterAlt(t,1),1===(this.state=4177,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,446,this.context)))this.state=4174,this.cluster_expr(),this.state=4175,this.match(e.DOT);this.state=4179,this.an_id()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}topic_consumer_ref(){let t=new Wc(this.context,this.state);this.enterRule(t,714,e.RULE_topic_consumer_ref);try{this.enterOuterAlt(t,1),this.state=4181,this.an_id_pure()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}null_treatment(){let t=new Vc(this.context,this.state);this.enterRule(t,716,e.RULE_null_treatment);try{switch(this.state=4187,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.RESPECT:this.enterOuterAlt(t,1),this.state=4183,this.match(e.RESPECT),this.state=4184,this.match(e.NULLS);break;case e.IGNORE:this.enterOuterAlt(t,2),this.state=4185,this.match(e.IGNORE),this.state=4186,this.match(e.NULLS);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}filter_clause(){let t=new zc(this.context,this.state);this.enterRule(t,718,e.RULE_filter_clause);try{this.enterOuterAlt(t,1),this.state=4189,this.match(e.FILTER),this.state=4190,this.match(e.LPAREN),this.state=4191,this.where_expr(),this.state=4192,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_name_or_specification(){let t=new Gc(this.context,this.state);this.enterRule(t,720,e.RULE_window_name_or_specification);try{switch(this.state=4196,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4194,this.window_name();break;case e.LPAREN:this.enterOuterAlt(t,2),this.state=4195,this.window_specification();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_name(){let t=new jc(this.context,this.state);this.enterRule(t,722,e.RULE_window_name);try{this.enterOuterAlt(t,1),this.state=4198,this.an_id_window()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_clause(){let t=new Kc(this.context,this.state);this.enterRule(t,724,e.RULE_window_clause);try{this.enterOuterAlt(t,1),this.state=4200,this.match(e.WINDOW),this.state=4201,this.window_definition_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_definition_list(){let t,i=new Yc(this.context,this.state);this.enterRule(i,726,e.RULE_window_definition_list);try{for(this.enterOuterAlt(i,1),this.state=4203,this.window_definition(),this.state=4208,this.errorHandler.sync(this),t=this.tokenStream.LA(1);25===t;)this.state=4204,this.match(e.COMMA),this.state=4205,this.window_definition(),this.state=4210,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_definition(){let t=new qc(this.context,this.state);this.enterRule(t,728,e.RULE_window_definition);try{this.enterOuterAlt(t,1),this.state=4211,this.new_window_name(),this.state=4212,this.match(e.AS),this.state=4213,this.window_specification()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}new_window_name(){let t=new $c(this.context,this.state);this.enterRule(t,730,e.RULE_new_window_name);try{this.enterOuterAlt(t,1),this.state=4215,this.window_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_specification(){let t=new Qc(this.context,this.state);this.enterRule(t,732,e.RULE_window_specification);try{this.enterOuterAlt(t,1),this.state=4217,this.match(e.LPAREN),this.state=4218,this.window_specification_details(),this.state=4219,this.match(e.RPAREN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_specification_details(){let t,i=new Xc(this.context,this.state);this.enterRule(i,734,e.RULE_window_specification_details);try{if(this.enterOuterAlt(i,1),1===(this.state=4222,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,450,this.context)))this.state=4221,this.existing_window_name();this.state=4225,this.errorHandler.sync(this),t=this.tokenStream.LA(1),216===t&&(this.state=4224,this.window_partition_clause()),this.state=4228,this.errorHandler.sync(this),t=this.tokenStream.LA(1),211===t&&(this.state=4227,this.window_order_clause()),this.state=4231,this.errorHandler.sync(this),t=this.tokenStream.LA(1),(150===t||233===t||259===t)&&(this.state=4230,this.window_frame_clause())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}existing_window_name(){let t=new Zc(this.context,this.state);this.enterRule(t,736,e.RULE_existing_window_name);try{this.enterOuterAlt(t,1),this.state=4233,this.window_name()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_partition_clause(){let t,i=new Jc(this.context,this.state);this.enterRule(i,738,e.RULE_window_partition_clause);try{this.enterOuterAlt(i,1),this.state=4235,this.match(e.PARTITION),this.state=4237,this.errorHandler.sync(this),t=this.tokenStream.LA(1),80===t&&(this.state=4236,this.match(e.COMPACT)),this.state=4239,this.match(e.BY),this.state=4240,this.named_expr_list()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_order_clause(){let t=new eh(this.context,this.state);this.enterRule(t,740,e.RULE_window_order_clause);try{this.enterOuterAlt(t,1),this.state=4242,this.order_by_clause()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_clause(){let t,i=new th(this.context,this.state);this.enterRule(i,742,e.RULE_window_frame_clause);try{this.enterOuterAlt(i,1),this.state=4244,this.window_frame_units(),this.state=4245,this.window_frame_extent(),this.state=4247,this.errorHandler.sync(this),t=this.tokenStream.LA(1),125===t&&(this.state=4246,this.window_frame_exclusion())}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_units(){let t,i=new ih(this.context,this.state);this.enterRule(i,744,e.RULE_window_frame_units);try{this.enterOuterAlt(i,1),this.state=4249,t=this.tokenStream.LA(1),150===t||233===t||259===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_extent(){let t=new sh(this.context,this.state);this.enterRule(t,746,e.RULE_window_frame_extent);try{switch(this.state=4253,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,456,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4251,this.window_frame_bound();break;case 2:this.enterOuterAlt(t,2),this.state=4252,this.window_frame_between()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_between(){let t=new nh(this.context,this.state);this.enterRule(t,748,e.RULE_window_frame_between);try{this.enterOuterAlt(t,1),this.state=4255,this.match(e.BETWEEN),this.state=4256,this.window_frame_bound(),this.state=4257,this.match(e.AND),this.state=4258,this.window_frame_bound()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}window_frame_bound(){let t,i=new rh(this.context,this.state);this.enterRule(i,750,e.RULE_window_frame_bound);try{switch(this.state=4267,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,458,this.context)){case 1:this.enterOuterAlt(i,1),this.state=4260,this.match(e.CURRENT),this.state=4261,this.match(e.ROW);break;case 2:switch(this.enterOuterAlt(i,2),this.state=4264,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,457,this.context)){case 1:this.state=4262,this.expr();break;case 2:this.state=4263,this.match(e.UNBOUNDED)}this.state=4266,t=this.tokenStream.LA(1),139===t||226===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}window_frame_exclusion(){let t=new oh(this.context,this.state);this.enterRule(t,752,e.RULE_window_frame_exclusion);try{switch(this.state=4279,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,459,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4269,this.match(e.EXCLUDE),this.state=4270,this.match(e.CURRENT),this.state=4271,this.match(e.ROW);break;case 2:this.enterOuterAlt(t,2),this.state=4272,this.match(e.EXCLUDE),this.state=4273,this.match(e.GROUP);break;case 3:this.enterOuterAlt(t,3),this.state=4274,this.match(e.EXCLUDE),this.state=4275,this.match(e.TIES);break;case 4:this.enterOuterAlt(t,4),this.state=4276,this.match(e.EXCLUDE),this.state=4277,this.match(e.NO),this.state=4278,this.match(e.OTHERS)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}use_stmt(){let t=new ah(this.context,this.state);this.enterRule(t,754,e.RULE_use_stmt);try{this.enterOuterAlt(t,1),this.state=4281,this.match(e.USE),this.state=4282,this.cluster_expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}subselect_stmt(){let t=new lh(this.context,this.state);this.enterRule(t,756,e.RULE_subselect_stmt);try{switch(this.enterOuterAlt(t,1),this.state=4289,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.LPAREN:this.state=4284,this.match(e.LPAREN),this.state=4285,this.select_stmt(),this.state=4286,this.match(e.RPAREN);break;case e.DISCARD:case e.FROM:case e.PROCESS:case e.REDUCE:case e.SELECT:this.state=4288,this.select_unparenthesized_stmt();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}named_nodes_stmt(){let t=new ch(this.context,this.state);this.enterRule(t,758,e.RULE_named_nodes_stmt);try{switch(this.enterOuterAlt(t,1),this.state=4291,this.bind_parameter_list(),this.state=4292,this.match(e.EQUALS),this.state=4295,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,461,this.context)){case 1:this.state=4293,this.expr();break;case 2:this.state=4294,this.subselect_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}commit_stmt(){let t=new hh(this.context,this.state);this.enterRule(t,760,e.RULE_commit_stmt);try{this.enterOuterAlt(t,1),this.state=4297,this.match(e.COMMIT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}rollback_stmt(){let t=new dh(this.context,this.state);this.enterRule(t,762,e.RULE_rollback_stmt);try{this.enterOuterAlt(t,1),this.state=4299,this.match(e.ROLLBACK)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}analyze_table(){let t,i=new uh(this.context,this.state);this.enterRule(i,764,e.RULE_analyze_table);try{this.enterOuterAlt(i,1),this.state=4301,this.simple_table_ref(),this.state=4306,this.errorHandler.sync(this),t=this.tokenStream.LA(1),26===t&&(this.state=4302,this.match(e.LPAREN),this.state=4303,this.column_list(),this.state=4304,this.match(e.RPAREN))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}analyze_table_list(){let t,i=new gh(this.context,this.state);this.enterRule(i,766,e.RULE_analyze_table_list);try{let s;for(this.enterOuterAlt(i,1),this.state=4308,this.analyze_table(),this.state=4313,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,463,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;)1===s&&(this.state=4309,this.match(e.COMMA),this.state=4310,this.analyze_table()),this.state=4315,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,463,this.context);this.state=4317,this.errorHandler.sync(this),t=this.tokenStream.LA(1),25===t&&(this.state=4316,this.match(e.COMMA))}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}analyze_stmt(){let t=new ph(this.context,this.state);this.enterRule(t,768,e.RULE_analyze_stmt);try{this.enterOuterAlt(t,1),this.state=4319,this.match(e.ANALYZE),this.state=4320,this.analyze_table_list()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}identifier(){let t,i=new mh(this.context,this.state);this.enterRule(i,770,e.RULE_identifier);try{this.enterOuterAlt(i,1),this.state=4322,t=this.tokenStream.LA(1),320===t||321===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}id(){let t=new fh(this.context,this.state);this.enterRule(t,772,e.RULE_id);try{switch(this.state=4326,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4324,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4325,this.keyword();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_schema(){let t=new _h(this.context,this.state);this.enterRule(t,774,e.RULE_id_schema);try{switch(this.state=4335,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4328,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4329,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.LOCAL:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4330,this.keyword_expr_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4331,this.keyword_select_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4332,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4333,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4334,this.keyword_hint_uncompat();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_expr(){let t=new vh(this.context,this.state);this.enterRule(t,776,e.RULE_id_expr);try{switch(this.state=4343,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4337,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4338,this.keyword_compat();break;case e.COLUMN:this.enterOuterAlt(t,3),this.state=4339,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,4),this.state=4340,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,5),this.state=4341,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,6),this.state=4342,this.keyword_hint_uncompat();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_expr_in(){let t=new Ch(this.context,this.state);this.enterRule(t,778,e.RULE_id_expr_in);try{switch(this.state=4350,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4345,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4346,this.keyword_compat();break;case e.COLUMN:this.enterOuterAlt(t,3),this.state=4347,this.keyword_alter_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,4),this.state=4348,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,5),this.state=4349,this.keyword_hint_uncompat();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_window(){let t=new bh(this.context,this.state);this.enterRule(t,780,e.RULE_id_window);try{switch(this.state=4360,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4352,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4353,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.LOCAL:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4354,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,4),this.state=4355,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,5),this.state=4356,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,6),this.state=4357,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,7),this.state=4358,this.keyword_in_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,8),this.state=4359,this.keyword_hint_uncompat();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_table(){let t=new Eh(this.context,this.state);this.enterRule(t,782,e.RULE_id_table);try{switch(this.state=4369,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4362,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4363,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.LOCAL:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4364,this.keyword_expr_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4365,this.keyword_select_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4366,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4367,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4368,this.keyword_hint_uncompat();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_without(){let t=new Sh(this.context,this.state);this.enterRule(t,784,e.RULE_id_without);try{switch(this.state=4378,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4371,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4372,this.keyword_compat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,3),this.state=4373,this.keyword_table_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,4),this.state=4374,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,5),this.state=4375,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,6),this.state=4376,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,7),this.state=4377,this.keyword_hint_uncompat();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_hint(){let t=new yh(this.context,this.state);this.enterRule(t,786,e.RULE_id_hint);try{switch(this.state=4388,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4380,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4381,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.LOCAL:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,3),this.state=4382,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,4),this.state=4383,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,5),this.state=4384,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,6),this.state=4385,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,7),this.state=4386,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,8),this.state=4387,this.keyword_window_uncompat();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_as_compat(){let t=new wh(this.context,this.state);this.enterRule(t,788,e.RULE_id_as_compat);try{switch(this.state=4392,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4390,this.identifier();break;case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,2),this.state=4391,this.keyword_as_compat();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id(){let t=new Lh(this.context,this.state);this.enterRule(t,790,e.RULE_an_id);try{switch(this.state=4396,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4394,this.id();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4395,this.match(e.STRING_VALUE);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_or_type(){let t=new Rh(this.context,this.state);this.enterRule(t,792,e.RULE_an_id_or_type);try{switch(this.state=4400,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CALLABLE:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DICT:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ENUM:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FLOW:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LIST:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OPTIONAL:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESOURCE:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SET:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.STRUCT:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TAGGED:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TUPLE:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VARIANT:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4398,this.id_or_type();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4399,this.match(e.STRING_VALUE);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_schema(){let t=new Th(this.context,this.state);this.enterRule(t,794,e.RULE_an_id_schema);try{switch(this.state=4404,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4402,this.id_schema();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4403,this.match(e.STRING_VALUE);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_expr(){let t=new xh(this.context,this.state);this.enterRule(t,796,e.RULE_an_id_expr);try{switch(this.state=4408,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4406,this.id_expr();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4407,this.match(e.STRING_VALUE);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_expr_in(){let t=new kh(this.context,this.state);this.enterRule(t,798,e.RULE_an_id_expr_in);try{switch(this.state=4412,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4410,this.id_expr_in();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4411,this.match(e.STRING_VALUE);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_window(){let t=new Ah(this.context,this.state);this.enterRule(t,800,e.RULE_an_id_window);try{switch(this.state=4416,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4414,this.id_window();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4415,this.match(e.STRING_VALUE);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_table(){let t=new Nh(this.context,this.state);this.enterRule(t,802,e.RULE_an_id_table);try{switch(this.state=4420,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4418,this.id_table();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4419,this.match(e.STRING_VALUE);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_without(){let t=new Ih(this.context,this.state);this.enterRule(t,804,e.RULE_an_id_without);try{switch(this.state=4424,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4422,this.id_without();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4423,this.match(e.STRING_VALUE);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_hint(){let t=new Oh(this.context,this.state);this.enterRule(t,806,e.RULE_an_id_hint);try{switch(this.state=4428,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4426,this.id_hint();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4427,this.match(e.STRING_VALUE);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_pure(){let t=new Dh(this.context,this.state);this.enterRule(t,808,e.RULE_an_id_pure);try{switch(this.state=4432,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4430,this.identifier();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4431,this.match(e.STRING_VALUE);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}an_id_as_compat(){let t=new Mh(this.context,this.state);this.enterRule(t,810,e.RULE_an_id_as_compat);try{switch(this.state=4436,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.LAST:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NEXT:case e.NO:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.OTHERS:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.REVERT:case e.REVOKE:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.VACUUM:case e.VALUES:case e.VIRTUAL:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4434,this.id_as_compat();break;case e.STRING_VALUE:this.enterOuterAlt(t,2),this.state=4435,this.match(e.STRING_VALUE);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}view_name(){let t=new Ph(this.context,this.state);this.enterRule(t,812,e.RULE_view_name);try{switch(this.state=4441,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,485,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4438,this.an_id();break;case 2:this.enterOuterAlt(t,2),this.state=4439,this.match(e.PRIMARY),this.state=4440,this.match(e.KEY)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_id_prefix(){let t=new Fh(this.context,this.state);this.enterRule(t,814,e.RULE_opt_id_prefix);try{if(1===(this.enterOuterAlt(t,1),this.state=4446,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,486,this.context)))this.state=4443,this.an_id(),this.state=4444,this.match(e.DOT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}cluster_expr(){let t=new Uh(this.context,this.state);this.enterRule(t,816,e.RULE_cluster_expr);try{if(this.enterOuterAlt(t,1),1===(this.state=4451,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,487,this.context)))this.state=4448,this.an_id(),this.state=4449,this.match(e.COLON);switch(this.state=4455,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.DOLLAR:case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.state=4453,this.pure_column_or_named();break;case e.ASTERISK:this.state=4454,this.match(e.ASTERISK);break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_or_type(){let t=new Hh(this.context,this.state);this.enterRule(t,818,e.RULE_id_or_type);try{switch(this.state=4459,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ANY:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMN:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERASE:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.STREAM:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4457,this.id();break;case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(t,2),this.state=4458,this.type_id();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}opt_id_prefix_or_type(){let t=new Bh(this.context,this.state);this.enterRule(t,820,e.RULE_opt_id_prefix_or_type);try{if(1===(this.enterOuterAlt(t,1),this.state=4464,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,490,this.context)))this.state=4461,this.an_id_or_type(),this.state=4462,this.match(e.DOT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_or_at(){let t,i=new Wh(this.context,this.state);this.enterRule(i,822,e.RULE_id_or_at);try{this.enterOuterAlt(i,1),this.state=4467,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t&&(this.state=4466,this.match(e.COMMAT)),this.state=4469,this.an_id_or_type()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}id_table_or_type(){let t=new Vh(this.context,this.state);this.enterRule(t,824,e.RULE_id_table_or_type);try{switch(this.state=4473,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALL:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.AS:case e.ASC:case e.ASSUME:case e.ASYMMETRIC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BETWEEN:case e.BITCAST:case e.BY:case e.CASCADE:case e.CASE:case e.CAST:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COLUMNS:case e.COMMIT:case e.COMPACT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CUBE:case e.CURRENT:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DISTINCT:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.EMPTY_ACTION:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCEPT:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXISTS:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FROM:case e.FULL:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.GROUPS:case e.HASH:case e.HAVING:case e.HOP:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTERSECT:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.LIMIT:case e.LOCAL:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOT:case e.NOTNULL:case e.NULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.PROCESS:case e.QUEUE:case e.RAISE:case e.RANGE:case e.REDUCE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.RETURN:case e.RETURNING:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROLLUP:case e.ROW:case e.ROWS:case e.SAMPLE:case e.SAVEPOINT:case e.SCHEMA:case e.SECONDS:case e.SEEK:case e.SELECT:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYMMETRIC:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNBOUNDED:case e.UNCONDITIONAL:case e.UNION:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WHEN:case e.WHERE:case e.WINDOW:case e.WITH:case e.WITHOUT:case e.WRAPPER:case e.XOR:case e.STRING_VALUE:case e.ID_PLAIN:case e.ID_QUOTED:this.enterOuterAlt(t,1),this.state=4471,this.an_id_table();break;case e.CALLABLE:case e.DICT:case e.ENUM:case e.FLOW:case e.LIST:case e.OPTIONAL:case e.RESOURCE:case e.SET:case e.STRUCT:case e.TAGGED:case e.TUPLE:case e.VARIANT:this.enterOuterAlt(t,2),this.state=4472,this.type_id();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}id_table_or_at(){let t,i=new zh(this.context,this.state);this.enterRule(i,826,e.RULE_id_table_or_at);try{this.enterOuterAlt(i,1),this.state=4476,this.errorHandler.sync(this),t=this.tokenStream.LA(1),30===t&&(this.state=4475,this.match(e.COMMAT)),this.state=4478,this.id_table_or_type()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword(){let t=new Gh(this.context,this.state);this.enterRule(t,828,e.RULE_keyword);try{switch(this.state=4488,this.errorHandler.sync(this),this.tokenStream.LA(1)){case e.ABORT:case e.ACTION:case e.ADD:case e.AFTER:case e.ALTER:case e.ANALYZE:case e.AND:case e.ANSI:case e.ARRAY:case e.ASC:case e.ASYNC:case e.AT:case e.ATTACH:case e.ATTRIBUTES:case e.AUTOINCREMENT:case e.BACKUP:case e.COLLECTION:case e.BEFORE:case e.BEGIN:case e.BERNOULLI:case e.BY:case e.CASCADE:case e.CHANGEFEED:case e.CHECK:case e.CLASSIFIER:case e.COLLATE:case e.COMMIT:case e.CONDITIONAL:case e.CONFLICT:case e.CONNECT:case e.CONSTRAINT:case e.CONSUMER:case e.COVER:case e.CREATE:case e.CROSS:case e.CURRENT:case e.DATA:case e.DATABASE:case e.DECIMAL:case e.DECLARE:case e.DEFAULT:case e.DEFERRABLE:case e.DEFERRED:case e.DEFINE:case e.DELETE:case e.DESC:case e.DESCRIBE:case e.DETACH:case e.DIRECTORY:case e.DISABLE:case e.DISCARD:case e.DO:case e.DROP:case e.EACH:case e.ELSE:case e.EMPTY:case e.ENCRYPTED:case e.END:case e.ERROR:case e.ESCAPE:case e.EVALUATE:case e.EXCLUDE:case e.EXCLUSION:case e.EXCLUSIVE:case e.EXPLAIN:case e.EXPORT:case e.EXTERNAL:case e.FAIL:case e.FAMILY:case e.FILTER:case e.FIRST:case e.FLATTEN:case e.FOLLOWING:case e.FOR:case e.FOREIGN:case e.FUNCTION:case e.GLOB:case e.GRANT:case e.GROUP:case e.GROUPING:case e.HASH:case e.IF:case e.IGNORE:case e.ILIKE:case e.IMMEDIATE:case e.IMPORT:case e.IN:case e.INCREMENTAL:case e.INDEX:case e.INDEXED:case e.INHERITS:case e.INITIAL:case e.INITIALLY:case e.INNER:case e.INSERT:case e.INSTEAD:case e.INTO:case e.IS:case e.ISNULL:case e.JOIN:case e.KEY:case e.LAST:case e.LEFT:case e.LEGACY:case e.LIKE:case e.MANAGE:case e.MATCH:case e.MATCHES:case e.MATCH_RECOGNIZE:case e.MEASURES:case e.MICROSECONDS:case e.MILLISECONDS:case e.MODIFY:case e.NANOSECONDS:case e.NATURAL:case e.NEXT:case e.NO:case e.NOTNULL:case e.NULLS:case e.OBJECT:case e.OF:case e.OFFSET:case e.OMIT:case e.ON:case e.ONE:case e.ONLY:case e.OPTION:case e.OR:case e.ORDER:case e.OTHERS:case e.OUTER:case e.OVER:case e.PARALLEL:case e.PARTITION:case e.PASSING:case e.PASSWORD:case e.PAST:case e.PATTERN:case e.PER:case e.PERMUTE:case e.PLAN:case e.POOL:case e.PRAGMA:case e.PRECEDING:case e.PRESORT:case e.PRIMARY:case e.PRIVILEGES:case e.QUEUE:case e.RAISE:case e.REFERENCES:case e.REGEXP:case e.REINDEX:case e.RELEASE:case e.REMOVE:case e.RENAME:case e.REPLACE:case e.REPLICATION:case e.RESET:case e.RESPECT:case e.RESTORE:case e.RESTRICT:case e.RESULT:case e.REVERT:case e.REVOKE:case e.RIGHT:case e.RLIKE:case e.ROLLBACK:case e.ROW:case e.SAMPLE:case e.SAVEPOINT:case e.SECONDS:case e.SEEK:case e.SEMI:case e.SETS:case e.SHOW:case e.TSKIP:case e.SOURCE:case e.SUBQUERY:case e.SUBSET:case e.SYMBOLS:case e.SYNC:case e.SYSTEM:case e.TABLE:case e.TABLES:case e.TABLESAMPLE:case e.TABLESTORE:case e.TEMP:case e.TEMPORARY:case e.THEN:case e.TIES:case e.TO:case e.TOPIC:case e.TRANSACTION:case e.TRIGGER:case e.TYPE:case e.UNCONDITIONAL:case e.UNIQUE:case e.UNKNOWN:case e.UNMATCHED:case e.UPDATE:case e.UPSERT:case e.USE:case e.USER:case e.USING:case e.VACUUM:case e.VALUES:case e.VIEW:case e.VIRTUAL:case e.WITH:case e.WRAPPER:case e.XOR:this.enterOuterAlt(t,1),this.state=4480,this.keyword_compat();break;case e.ASYMMETRIC:case e.BETWEEN:case e.BITCAST:case e.CASE:case e.CAST:case e.CUBE:case e.CURRENT_DATE:case e.CURRENT_TIME:case e.CURRENT_TIMESTAMP:case e.EMPTY_ACTION:case e.EXISTS:case e.FROM:case e.FULL:case e.HOP:case e.JSON_EXISTS:case e.JSON_QUERY:case e.JSON_VALUE:case e.LOCAL:case e.NOT:case e.NULL:case e.PROCESS:case e.REDUCE:case e.RETURN:case e.RETURNING:case e.ROLLUP:case e.SELECT:case e.SYMMETRIC:case e.UNBOUNDED:case e.WHEN:case e.WHERE:this.enterOuterAlt(t,2),this.state=4481,this.keyword_expr_uncompat();break;case e.ANY:case e.ERASE:case e.STREAM:this.enterOuterAlt(t,3),this.state=4482,this.keyword_table_uncompat();break;case e.ALL:case e.AS:case e.ASSUME:case e.DISTINCT:case e.EXCEPT:case e.HAVING:case e.INTERSECT:case e.LIMIT:case e.UNION:case e.WINDOW:case e.WITHOUT:this.enterOuterAlt(t,4),this.state=4483,this.keyword_select_uncompat();break;case e.COLUMN:this.enterOuterAlt(t,5),this.state=4484,this.keyword_alter_uncompat();break;case e.COMPACT:this.enterOuterAlt(t,6),this.state=4485,this.keyword_in_uncompat();break;case e.GROUPS:case e.RANGE:case e.ROWS:this.enterOuterAlt(t,7),this.state=4486,this.keyword_window_uncompat();break;case e.COLUMNS:case e.SCHEMA:this.enterOuterAlt(t,8),this.state=4487,this.keyword_hint_uncompat();break;default:throw new ct(this)}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_expr_uncompat(){let t,i=new jh(this.context,this.state);this.enterRule(i,830,e.RULE_keyword_expr_uncompat);try{this.enterOuterAlt(i,1),this.state=4490,t=this.tokenStream.LA(1),!(t-54&-32)&&1<<t-54&405505||!(t-89&-32)&&1<<t-89&134217757||!(t-128&-32)&&1<<t-128&33603585||!(t-174&-32)&&1<<t-174&41944071||!(t-230&-32)&&1<<t-230&137363473||!(t-265&-32)&&1<<t-265&2147487745||312===t||313===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_table_uncompat(){let t,i=new Kh(this.context,this.state);this.enterRule(i,832,e.RULE_keyword_table_uncompat);try{this.enterOuterAlt(i,1),this.state=4492,t=this.tokenStream.LA(1),49===t||120===t||272===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_select_uncompat(){let t,i=new Yh(this.context,this.state);this.enterRule(i,834,e.RULE_keyword_select_uncompat);try{this.enterOuterAlt(i,1),this.state=4494,t=this.tokenStream.LA(1),!(t-44&-32)&&1<<t-44&641||110===t||124===t||!(t-152&-32)&&1<<t-152&1073872897||!(t-298&-32)&&1<<t-298&327681?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_alter_uncompat(){let t=new qh(this.context,this.state);this.enterRule(t,836,e.RULE_keyword_alter_uncompat);try{this.enterOuterAlt(t,1),this.state=4496,this.match(e.COLUMN)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_in_uncompat(){let t=new $h(this.context,this.state);this.enterRule(t,838,e.RULE_keyword_in_uncompat);try{this.enterOuterAlt(t,1),this.state=4498,this.match(e.COMPACT)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}keyword_window_uncompat(){let t,i=new Qh(this.context,this.state);this.enterRule(i,840,e.RULE_keyword_window_uncompat);try{this.enterOuterAlt(i,1),this.state=4500,t=this.tokenStream.LA(1),150===t||233===t||259===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_hint_uncompat(){let t,i=new Xh(this.context,this.state);this.enterRule(i,842,e.RULE_keyword_hint_uncompat);try{this.enterOuterAlt(i,1),this.state=4502,t=this.tokenStream.LA(1),78===t||262===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_as_compat(){let t,i=new Zh(this.context,this.state);this.enterRule(i,844,e.RULE_keyword_as_compat);try{this.enterOuterAlt(i,1),this.state=4504,t=this.tokenStream.LA(1),!(t-40&-32)&&1<<t-40&1408210415||!(t-73&-32)&&1<<t-73&4024598343||!(t-105&-32)&&1<<t-105&4015470493||!(t-137&-32)&&1<<t-137&3757989277||!(t-170&-32)&&1<<t-170&3338636547||!(t-202&-32)&&1<<t-202&1845486967||!(t-235&-32)&&1<<t-235&884358079||!(t-268&-32)&&1<<t-268&2852060623||!(t-300&-32)&&1<<t-300&395711?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}keyword_compat(){let t,i=new Jh(this.context,this.state);this.enterRule(i,846,e.RULE_keyword_compat);try{this.enterOuterAlt(i,1),this.state=4506,t=this.tokenStream.LA(1),!(t-40&-32)&&1<<t-40&1408210415||!(t-73&-32)&&1<<t-73&4293066575||!(t-105&-32)&&1<<t-105&4017567709||!(t-137&-32)&&1<<t-137&4294860189||!(t-170&-32)&&1<<t-170&3623849871||!(t-202&-32)&&1<<t-202&1879048063||!(t-235&-32)&&1<<t-235&3065936831||!(t-268&-32)&&1<<t-268&2852060623||!(t-300&-32)&&1<<t-300&429567?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}type_id(){let t,i=new ed(this.context,this.state);this.enterRule(i,848,e.RULE_type_id);try{this.enterOuterAlt(i,1),this.state=4508,t=this.tokenStream.LA(1),69===t||106===t||119===t||138===t||183===t||209===t||!(t-245&-32)&&1<<t-245&272629761||!(t-284&-32)&&1<<t-284&33555457?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}bool_value(){let t,i=new td(this.context,this.state);this.enterRule(i,850,e.RULE_bool_value);try{this.enterOuterAlt(i,1),this.state=4510,t=this.tokenStream.LA(1),133===t||293===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}real(){let t=new id(this.context,this.state);this.enterRule(t,852,e.RULE_real);try{this.enterOuterAlt(t,1),this.state=4512,this.match(e.REAL)}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}integer(){let t,i=new sd(this.context,this.state);this.enterRule(i,854,e.RULE_integer);try{this.enterOuterAlt(i,1),this.state=4514,t=this.tokenStream.LA(1),322===t||323===t?(this.errorHandler.reportMatch(this),this.consume()):this.errorHandler.recoverInline(this)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_query_yq(){let t=new nd(this.context,this.state);this.enterRule(t,856,e.RULE_sql_query_yq);try{switch(this.state=4521,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,495,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4516,this.sql_stmt_list_yq();break;case 2:this.enterOuterAlt(t,2),this.state=4517,this.match(e.PRAGMA),this.state=4518,this.match(e.ANSI),this.state=4519,this.match(e.DIGITS),this.state=4520,this.ansi_sql_stmt_list()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}sql_stmt_list_yq(){let t,i=new rd(this.context,this.state);this.enterRule(i,858,e.RULE_sql_stmt_list_yq);try{let s;for(this.enterOuterAlt(i,1),this.state=4526,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=4523,this.match(e.SEMICOLON),this.state=4528,this.errorHandler.sync(this),t=this.tokenStream.LA(1);for(this.state=4529,this.sql_stmt_yq(),this.state=4538,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,498,this.context);2!==s&&s!==Z.INVALID_ALT_NUMBER;){if(1===s){this.state=4531,this.errorHandler.sync(this),t=this.tokenStream.LA(1);do{this.state=4530,this.match(e.SEMICOLON),this.state=4533,this.errorHandler.sync(this),t=this.tokenStream.LA(1)}while(23===t);this.state=4535,this.sql_stmt_yq()}this.state=4540,this.errorHandler.sync(this),s=this.interpreter.adaptivePredict(this.tokenStream,498,this.context)}for(this.state=4544,this.errorHandler.sync(this),t=this.tokenStream.LA(1);23===t;)this.state=4541,this.match(e.SEMICOLON),this.state=4546,this.errorHandler.sync(this),t=this.tokenStream.LA(1);this.state=4547,this.match(e.EOF)}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_yq(){let t,i=new od(this.context,this.state);this.enterRule(i,860,e.RULE_sql_stmt_yq);try{this.enterOuterAlt(i,1),this.state=4554,this.errorHandler.sync(this),t=this.tokenStream.LA(1),129===t&&(this.state=4549,this.match(e.EXPLAIN),this.state=4552,this.errorHandler.sync(this),t=this.tokenStream.LA(1),1===t&&(this.state=4550,this.match(e.QUERY),this.state=4551,this.match(e.PLAN))),this.state=4556,this.sql_stmt_core_yq()}catch(s){if(!(s instanceof Xe))throw s;this.errorHandler.reportError(this,s),this.errorHandler.recover(this,s)}finally{this.exitRule()}return i}sql_stmt_core_yq(){let t=new ad(this.context,this.state);this.enterRule(t,862,e.RULE_sql_stmt_core_yq);try{switch(this.state=4571,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,502,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4558,this.pragma_stmt();break;case 2:this.enterOuterAlt(t,2),this.state=4559,this.select_stmt();break;case 3:this.enterOuterAlt(t,3),this.state=4560,this.named_nodes_stmt();break;case 4:this.enterOuterAlt(t,4),this.state=4561,this.use_stmt();break;case 5:this.enterOuterAlt(t,5),this.state=4562,this.into_table_stmt_yq();break;case 6:this.enterOuterAlt(t,6),this.state=4563,this.declare_stmt();break;case 7:this.enterOuterAlt(t,7),this.state=4564,this.import_stmt();break;case 8:this.enterOuterAlt(t,8),this.state=4565,this.export_stmt();break;case 9:this.enterOuterAlt(t,9),this.state=4566,this.do_stmt();break;case 10:this.enterOuterAlt(t,10),this.state=4567,this.define_action_or_subquery_stmt();break;case 11:this.enterOuterAlt(t,11),this.state=4568,this.if_stmt();break;case 12:this.enterOuterAlt(t,12),this.state=4569,this.for_stmt();break;case 13:this.enterOuterAlt(t,13),this.state=4570,this.values_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}replication_name(){let t=new ld(this.context,this.state);this.enterRule(t,864,e.RULE_replication_name);try{this.enterOuterAlt(t,1),this.state=4573,this.match(e.AS),this.state=4574,this.object_ref()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}where_expr(){let t=new cd(this.context,this.state);this.enterRule(t,866,e.RULE_where_expr);try{this.enterOuterAlt(t,1),this.state=4576,this.match(e.WHERE),this.state=4577,this.expr()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}from_stmt(){let t=new hd(this.context,this.state);this.enterRule(t,868,e.RULE_from_stmt);try{this.enterOuterAlt(t,1),this.state=4579,this.match(e.FROM),this.state=4580,this.join_source()}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}alter_table_for_autocomplete(){let t=new dd(this.context,this.state);this.enterRule(t,870,e.RULE_alter_table_for_autocomplete);try{switch(this.state=4584,this.errorHandler.sync(this),this.interpreter.adaptivePredict(this.tokenStream,503,this.context)){case 1:this.enterOuterAlt(t,1),this.state=4582,this.alter_table_stmt();break;case 2:this.enterOuterAlt(t,2),this.state=4583,this.alter_table_store_stmt()}}catch(i){if(!(i instanceof Xe))throw i;this.errorHandler.reportError(this,i),this.errorHandler.recover(this,i)}finally{this.exitRule()}return t}static{this._serializedATN=[4,1,332,4587,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,2,254,7,254,2,255,7,255,2,256,7,256,2,257,7,257,2,258,7,258,2,259,7,259,2,260,7,260,2,261,7,261,2,262,7,262,2,263,7,263,2,264,7,264,2,265,7,265,2,266,7,266,2,267,7,267,2,268,7,268,2,269,7,269,2,270,7,270,2,271,7,271,2,272,7,272,2,273,7,273,2,274,7,274,2,275,7,275,2,276,7,276,2,277,7,277,2,278,7,278,2,279,7,279,2,280,7,280,2,281,7,281,2,282,7,282,2,283,7,283,2,284,7,284,2,285,7,285,2,286,7,286,2,287,7,287,2,288,7,288,2,289,7,289,2,290,7,290,2,291,7,291,2,292,7,292,2,293,7,293,2,294,7,294,2,295,7,295,2,296,7,296,2,297,7,297,2,298,7,298,2,299,7,299,2,300,7,300,2,301,7,301,2,302,7,302,2,303,7,303,2,304,7,304,2,305,7,305,2,306,7,306,2,307,7,307,2,308,7,308,2,309,7,309,2,310,7,310,2,311,7,311,2,312,7,312,2,313,7,313,2,314,7,314,2,315,7,315,2,316,7,316,2,317,7,317,2,318,7,318,2,319,7,319,2,320,7,320,2,321,7,321,2,322,7,322,2,323,7,323,2,324,7,324,2,325,7,325,2,326,7,326,2,327,7,327,2,328,7,328,2,329,7,329,2,330,7,330,2,331,7,331,2,332,7,332,2,333,7,333,2,334,7,334,2,335,7,335,2,336,7,336,2,337,7,337,2,338,7,338,2,339,7,339,2,340,7,340,2,341,7,341,2,342,7,342,2,343,7,343,2,344,7,344,2,345,7,345,2,346,7,346,2,347,7,347,2,348,7,348,2,349,7,349,2,350,7,350,2,351,7,351,2,352,7,352,2,353,7,353,2,354,7,354,2,355,7,355,2,356,7,356,2,357,7,357,2,358,7,358,2,359,7,359,2,360,7,360,2,361,7,361,2,362,7,362,2,363,7,363,2,364,7,364,2,365,7,365,2,366,7,366,2,367,7,367,2,368,7,368,2,369,7,369,2,370,7,370,2,371,7,371,2,372,7,372,2,373,7,373,2,374,7,374,2,375,7,375,2,376,7,376,2,377,7,377,2,378,7,378,2,379,7,379,2,380,7,380,2,381,7,381,2,382,7,382,2,383,7,383,2,384,7,384,2,385,7,385,2,386,7,386,2,387,7,387,2,388,7,388,2,389,7,389,2,390,7,390,2,391,7,391,2,392,7,392,2,393,7,393,2,394,7,394,2,395,7,395,2,396,7,396,2,397,7,397,2,398,7,398,2,399,7,399,2,400,7,400,2,401,7,401,2,402,7,402,2,403,7,403,2,404,7,404,2,405,7,405,2,406,7,406,2,407,7,407,2,408,7,408,2,409,7,409,2,410,7,410,2,411,7,411,2,412,7,412,2,413,7,413,2,414,7,414,2,415,7,415,2,416,7,416,2,417,7,417,2,418,7,418,2,419,7,419,2,420,7,420,2,421,7,421,2,422,7,422,2,423,7,423,2,424,7,424,2,425,7,425,2,426,7,426,2,427,7,427,2,428,7,428,2,429,7,429,2,430,7,430,2,431,7,431,2,432,7,432,2,433,7,433,2,434,7,434,2,435,7,435,1,0,1,0,1,0,1,0,1,0,3,0,878,8,0,1,1,5,1,881,8,1,10,1,12,1,884,9,1,1,1,1,1,4,1,888,8,1,11,1,12,1,889,1,1,5,1,893,8,1,10,1,12,1,896,9,1,1,1,5,1,899,8,1,10,1,12,1,902,9,1,1,1,1,1,1,2,5,2,907,8,2,10,2,12,2,910,9,2,1,2,1,2,1,3,5,3,915,8,3,10,3,12,3,918,9,3,1,3,1,3,4,3,922,8,3,11,3,12,3,923,5,3,926,8,3,10,3,12,3,929,9,3,1,3,1,3,1,3,5,3,934,8,3,10,3,12,3,937,9,3,1,4,1,4,3,4,941,8,4,1,5,1,5,1,5,3,5,946,8,5,3,5,948,8,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,3,6,1008,8,6,1,7,1,7,1,7,5,7,1013,8,7,10,7,12,7,1016,9,7,1,7,3,7,1019,8,7,1,8,1,8,1,8,5,8,1024,8,8,10,8,12,8,1027,9,8,1,9,1,9,1,9,5,9,1032,8,9,10,9,12,9,1035,9,9,1,10,1,10,3,10,1039,8,10,1,11,1,11,3,11,1043,8,11,1,11,1,11,1,11,1,12,3,12,1049,8,12,1,12,1,12,1,12,1,12,3,12,1055,8,12,1,12,3,12,1058,8,12,1,12,1,12,3,12,1062,8,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1070,8,12,1,12,1,12,3,12,1074,8,12,1,12,3,12,1077,8,12,1,12,1,12,3,12,1081,8,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,1092,8,12,1,12,4,12,1095,8,12,11,12,12,12,1096,3,12,1099,8,12,1,13,1,13,1,14,1,14,1,14,5,14,1106,8,14,10,14,12,14,1109,9,14,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,1129,8,18,1,18,5,18,1132,8,18,10,18,12,18,1135,9,18,1,18,1,18,1,18,1,18,4,18,1141,8,18,11,18,12,18,1142,3,18,1145,8,18,1,19,1,19,1,19,5,19,1150,8,19,10,19,12,19,1153,9,19,1,20,1,20,1,20,5,20,1158,8,20,10,20,12,20,1161,9,20,1,21,1,21,1,21,5,21,1166,8,21,10,21,12,21,1169,9,21,1,22,1,22,1,22,1,22,3,22,1175,8,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,3,24,1185,8,24,3,24,1187,8,24,5,24,1189,8,24,10,24,12,24,1192,9,24,1,24,1,24,3,24,1196,8,24,1,25,1,25,3,25,1200,8,25,1,25,1,25,1,26,1,26,3,26,1206,8,26,1,26,1,26,1,27,1,27,3,27,1212,8,27,1,28,1,28,3,28,1216,8,28,1,29,1,29,3,29,1220,8,29,1,29,3,29,1223,8,29,1,29,1,29,1,30,1,30,1,30,3,30,1230,8,30,1,30,1,30,1,30,1,30,3,30,1236,8,30,5,30,1238,8,30,10,30,12,30,1241,9,30,1,31,1,31,3,31,1245,8,31,1,31,3,31,1248,8,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,5,32,1260,8,32,10,32,12,32,1263,9,32,1,33,1,33,3,33,1267,8,33,1,33,3,33,1270,8,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,3,34,1284,8,34,1,34,1,34,1,34,1,34,1,34,3,34,1291,8,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1302,8,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,1313,8,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,3,38,1333,8,38,1,38,1,38,1,39,1,39,3,39,1339,8,39,1,39,4,39,1342,8,39,11,39,12,39,1343,1,39,1,39,3,39,1348,8,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,3,40,1362,8,40,3,40,1364,8,40,1,41,1,41,1,42,1,42,1,42,3,42,1371,8,42,1,43,1,43,1,44,1,44,3,44,1377,8,44,1,45,1,45,1,45,1,45,1,46,1,46,1,46,5,46,1386,8,46,10,46,12,46,1389,9,46,1,47,1,47,1,47,1,47,1,47,3,47,1396,8,47,1,48,1,48,1,48,1,48,3,48,1402,8,48,1,49,1,49,1,49,1,49,1,49,3,49,1409,8,49,1,49,1,49,1,49,1,49,5,49,1415,8,49,10,49,12,49,1418,9,49,1,49,1,49,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,3,51,1430,8,51,1,51,1,51,1,52,1,52,3,52,1436,8,52,1,52,1,52,3,52,1440,8,52,1,52,3,52,1443,8,52,3,52,1445,8,52,1,53,1,53,1,53,1,53,1,53,1,53,3,53,1453,8,53,1,54,1,54,1,54,1,54,1,54,1,54,3,54,1461,8,54,1,54,1,54,1,54,1,54,3,54,1467,8,54,1,54,1,54,1,54,1,54,3,54,1473,8,54,1,54,1,54,1,55,1,55,3,55,1479,8,55,1,55,3,55,1482,8,55,1,55,1,55,1,56,1,56,1,56,5,56,1489,8,56,10,56,12,56,1492,9,56,1,57,1,57,1,57,1,57,5,57,1498,8,57,10,57,12,57,1501,9,57,1,57,1,57,1,58,1,58,3,58,1507,8,58,1,59,1,59,1,59,1,59,5,59,1513,8,59,10,59,12,59,1516,9,59,1,59,1,59,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,3,61,1528,8,61,1,62,1,62,1,62,5,62,1533,8,62,10,62,12,62,1536,9,62,1,62,3,62,1539,8,62,1,63,1,63,1,63,5,63,1544,8,63,10,63,12,63,1547,9,63,1,63,3,63,1550,8,63,1,64,1,64,1,64,3,64,1555,8,64,1,65,1,65,1,65,5,65,1560,8,65,10,65,12,65,1563,9,65,1,66,1,66,1,66,1,66,3,66,1569,8,66,1,66,3,66,1572,8,66,1,66,1,66,1,66,1,67,1,67,3,67,1579,8,67,1,67,1,67,3,67,1583,8,67,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,3,68,1593,8,68,1,68,1,68,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,1616,8,71,1,72,1,72,1,72,1,72,3,72,1622,8,72,1,73,1,73,3,73,1626,8,73,1,74,1,74,1,74,5,74,1631,8,74,10,74,12,74,1634,9,74,1,75,1,75,1,75,3,75,1639,8,75,1,76,1,76,1,76,5,76,1644,8,76,10,76,12,76,1647,9,76,1,77,3,77,1650,8,77,1,77,1,77,3,77,1654,8,77,1,78,1,78,1,79,1,79,3,79,1660,8,79,1,80,1,80,1,80,3,80,1665,8,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,3,82,1674,8,82,1,82,3,82,1677,8,82,1,82,1,82,1,82,1,82,3,82,1683,8,82,1,83,1,83,1,83,3,83,1688,8,83,1,83,1,83,1,84,1,84,1,84,1,84,3,84,1696,8,84,1,85,1,85,1,85,5,85,1701,8,85,10,85,12,85,1704,9,85,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,5,88,1723,8,88,10,88,12,88,1726,9,88,1,88,3,88,1729,8,88,3,88,1731,8,88,1,88,1,88,3,88,1735,8,88,1,89,1,89,1,89,1,89,1,89,5,89,1742,8,89,10,89,12,89,1745,9,89,1,89,3,89,1748,8,89,3,89,1750,8,89,1,89,1,89,3,89,1754,8,89,1,90,1,90,1,90,1,90,1,90,5,90,1761,8,90,10,90,12,90,1764,9,90,1,90,3,90,1767,8,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,5,96,1803,8,96,10,96,12,96,1806,9,96,1,96,3,96,1809,8,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,3,99,1829,8,99,1,99,3,99,1832,8,99,1,99,1,99,1,99,1,99,3,99,1838,8,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,1858,8,100,1,100,5,100,1861,8,100,10,100,12,100,1864,9,100,1,101,1,101,1,101,3,101,1869,8,101,1,101,5,101,1872,8,101,10,101,12,101,1875,9,101,3,101,1877,8,101,1,102,1,102,3,102,1881,8,102,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,1,104,3,104,1908,8,104,1,105,1,105,1,105,1,105,1,105,1,105,3,105,1916,8,105,1,106,3,106,1919,8,106,1,106,1,106,1,106,5,106,1924,8,106,10,106,12,106,1927,9,106,1,107,1,107,1,107,1,107,1,107,1,108,1,108,1,108,1,109,1,109,3,109,1939,8,109,1,109,1,109,3,109,1943,8,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,3,111,1955,8,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,5,112,1966,8,112,10,112,12,112,1969,9,112,1,112,1,112,3,112,1973,8,112,1,113,1,113,1,113,1,113,1,113,3,113,1980,8,113,1,114,1,114,3,114,1984,8,114,1,115,1,115,1,115,5,115,1989,8,115,10,115,12,115,1992,9,115,1,116,1,116,1,116,1,116,5,116,1998,8,116,10,116,12,116,2001,9,116,1,117,1,117,1,117,1,117,5,117,2007,8,117,10,117,12,117,2010,9,117,1,118,1,118,1,118,1,118,1,118,3,118,2017,8,118,1,119,1,119,3,119,2021,8,119,1,119,1,119,3,119,2025,8,119,1,120,1,120,1,120,1,120,1,120,3,120,2032,8,120,3,120,2034,8,120,1,121,3,121,2037,8,121,1,121,1,121,1,121,3,121,2042,8,121,1,121,1,121,1,121,3,121,2047,8,121,1,122,1,122,3,122,2051,8,122,1,122,1,122,1,122,5,122,2056,8,122,10,122,12,122,2059,9,122,1,122,1,122,1,122,1,122,3,122,2065,8,122,1,122,1,122,3,122,2069,8,122,1,122,3,122,2072,8,122,1,122,1,122,3,122,2076,8,122,1,122,1,122,3,122,2080,8,122,3,122,2082,8,122,1,123,1,123,1,123,1,123,1,124,1,124,1,124,5,124,2091,8,124,10,124,12,124,2094,9,124,1,125,1,125,1,125,1,125,5,125,2100,8,125,10,125,12,125,2103,9,125,1,125,1,125,3,125,2107,8,125,1,125,1,125,1,125,1,125,3,125,2113,8,125,1,125,1,125,1,125,3,125,2118,8,125,1,125,3,125,2121,8,125,1,125,1,125,3,125,2125,8,125,1,125,1,125,3,125,2129,8,125,1,126,3,126,2132,8,126,1,127,3,127,2135,8,127,1,127,1,127,3,127,2139,8,127,1,127,1,127,1,127,1,127,5,127,2145,8,127,10,127,12,127,2148,9,127,1,127,3,127,2151,8,127,1,127,1,127,3,127,2155,8,127,1,127,3,127,2158,8,127,1,127,3,127,2161,8,127,1,127,3,127,2164,8,127,1,127,1,127,3,127,2168,8,127,1,127,3,127,2171,8,127,1,127,3,127,2174,8,127,1,128,1,128,1,128,3,128,2179,8,128,1,128,3,128,2182,8,128,1,128,3,128,2185,8,128,1,128,3,128,2188,8,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,3,129,2202,8,129,3,129,2204,8,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,3,130,2215,8,130,1,131,1,131,1,131,1,132,1,132,1,132,5,132,2223,8,132,10,132,12,132,2226,9,132,1,133,1,133,1,133,1,133,1,134,1,134,1,134,3,134,2235,8,134,1,134,3,134,2238,8,134,1,134,1,134,1,134,1,134,1,134,3,134,2245,8,134,1,134,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,1,135,3,135,2269,8,135,1,136,1,136,1,137,1,137,1,138,1,138,1,138,5,138,2278,8,138,10,138,12,138,2281,9,138,1,139,4,139,2284,8,139,11,139,12,139,2285,1,140,1,140,3,140,2290,8,140,1,141,1,141,3,141,2294,8,141,1,141,1,141,3,141,2298,8,141,1,141,1,141,3,141,2302,8,141,1,141,1,141,3,141,2306,8,141,1,141,1,141,3,141,2310,8,141,1,141,1,141,3,141,2314,8,141,1,141,1,141,1,141,1,141,3,141,2320,8,141,1,142,1,142,1,142,1,142,1,142,3,142,2327,8,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,1,142,3,142,2337,8,142,1,143,1,143,1,144,1,144,1,144,1,144,1,144,5,144,2346,8,144,10,144,12,144,2349,9,144,1,144,1,144,1,145,1,145,1,145,1,146,1,146,1,146,5,146,2359,8,146,10,146,12,146,2362,9,146,1,147,1,147,1,147,1,147,1,147,1,147,1,148,1,148,1,149,1,149,1,149,5,149,2375,8,149,10,149,12,149,2378,9,149,1,150,1,150,1,151,1,151,1,151,5,151,2385,8,151,10,151,12,151,2388,9,151,1,152,1,152,1,152,1,152,1,153,1,153,1,154,1,154,1,155,1,155,1,156,1,156,1,157,1,157,1,157,1,157,1,158,3,158,2407,8,158,1,158,1,158,1,159,1,159,3,159,2413,8,159,1,159,1,159,1,159,1,159,1,159,3,159,2420,8,159,1,160,1,160,1,160,5,160,2425,8,160,10,160,12,160,2428,9,160,1,161,1,161,1,161,1,161,1,161,3,161,2435,8,161,1,162,1,162,1,163,1,163,1,163,5,163,2442,8,163,10,163,12,163,2445,9,163,1,164,1,164,1,164,1,164,1,164,1,165,1,165,1,165,1,165,1,165,1,166,1,166,1,166,1,166,1,166,1,166,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,167,1,168,1,168,1,168,1,168,1,168,1,168,1,168,3,168,2481,8,168,3,168,2483,8,168,1,169,3,169,2486,8,169,1,169,1,169,1,169,3,169,2491,8,169,1,169,1,169,3,169,2495,8,169,5,169,2497,8,169,10,169,12,169,2500,9,169,1,170,1,170,1,170,3,170,2505,8,170,1,171,1,171,1,171,1,171,3,171,2511,8,171,1,171,1,171,3,171,2515,8,171,1,172,1,172,1,172,3,172,2520,8,172,1,172,1,172,1,172,3,172,2525,8,172,3,172,2527,8,172,1,173,1,173,3,173,2531,8,173,1,173,1,173,1,173,3,173,2536,8,173,1,173,3,173,2539,8,173,3,173,2541,8,173,1,173,1,173,3,173,2545,8,173,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,1,174,3,174,2556,8,174,1,175,1,175,1,175,1,176,1,176,1,176,1,176,1,176,1,176,3,176,2567,8,176,1,177,1,177,1,178,1,178,1,178,1,178,1,178,1,179,1,179,3,179,2578,8,179,1,179,1,179,3,179,2582,8,179,1,179,1,179,3,179,2586,8,179,1,179,1,179,3,179,2590,8,179,1,179,3,179,2593,8,179,1,179,1,179,3,179,2597,8,179,1,179,3,179,2600,8,179,1,180,1,180,1,180,1,180,3,180,2606,8,180,1,181,1,181,1,181,1,181,1,181,5,181,2613,8,181,10,181,12,181,2616,9,181,3,181,2618,8,181,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,1,182,3,182,2632,8,182,1,182,1,182,1,182,1,182,3,182,2638,8,182,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,1,183,3,183,2651,8,183,1,183,1,183,1,183,1,183,1,184,3,184,2658,8,184,1,184,1,184,1,184,3,184,2663,8,184,1,185,1,185,1,185,1,186,1,186,3,186,2670,8,186,1,187,1,187,1,187,5,187,2675,8,187,10,187,12,187,2678,9,187,1,188,1,188,1,188,1,188,1,189,1,189,3,189,2686,8,189,1,190,1,190,1,190,3,190,2691,8,190,1,190,1,190,1,190,1,190,1,190,1,190,3,190,2699,8,190,1,190,1,190,1,190,1,191,1,191,1,191,1,191,1,191,1,191,1,191,1,191,5,191,2712,8,191,10,191,12,191,2715,9,191,1,192,1,192,1,192,3,192,2720,8,192,1,193,1,193,1,193,1,193,1,193,1,193,3,193,2728,8,193,1,193,1,193,1,194,1,194,1,194,1,194,1,194,3,194,2737,8,194,1,194,1,194,3,194,2741,8,194,1,194,1,194,1,194,1,195,1,195,1,195,1,195,3,195,2750,8,195,1,195,1,195,1,196,1,196,1,196,1,196,1,196,1,196,1,196,1,196,3,196,2762,8,196,1,197,1,197,1,197,1,197,1,197,3,197,2769,8,197,1,197,1,197,1,197,1,197,1,197,1,197,3,197,2777,8,197,1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,199,1,200,1,200,1,200,1,201,1,201,1,201,1,201,3,201,2798,8,201,1,201,1,201,1,201,1,201,1,201,1,201,3,201,2806,8,201,1,202,1,202,1,202,1,203,1,203,1,203,1,203,3,203,2815,8,203,1,204,1,204,1,204,1,204,1,205,1,205,1,206,1,206,3,206,2825,8,206,1,207,1,207,1,207,1,207,1,207,5,207,2832,8,207,10,207,12,207,2835,9,207,1,207,1,207,3,207,2839,8,207,1,208,1,208,1,209,1,209,1,209,3,209,2846,8,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,1,209,3,209,2856,8,209,1,209,1,209,1,209,3,209,2861,8,209,1,209,1,209,1,209,1,209,1,209,5,209,2868,8,209,10,209,12,209,2871,9,209,1,209,3,209,2874,8,209,1,209,1,209,3,209,2878,8,209,1,209,3,209,2881,8,209,1,209,3,209,2884,8,209,1,209,3,209,2887,8,209,1,209,3,209,2890,8,209,1,210,1,210,1,210,1,210,1,210,1,210,3,210,2898,8,210,1,211,1,211,1,211,3,211,2903,8,211,1,211,1,211,1,211,1,211,1,211,1,212,1,212,1,212,1,212,3,212,2914,8,212,1,213,1,213,1,213,1,214,1,214,3,214,2921,8,214,1,215,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,216,5,216,2932,8,216,10,216,12,216,2935,9,216,1,217,1,217,1,217,5,217,2940,8,217,10,217,12,217,2943,9,217,1,218,1,218,3,218,2947,8,218,1,219,1,219,1,219,5,219,2952,8,219,10,219,12,219,2955,9,219,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,1,220,3,220,2967,8,220,1,221,1,221,1,221,1,221,1,222,1,222,1,222,5,222,2976,8,222,10,222,12,222,2979,9,222,1,223,1,223,1,223,1,223,1,224,1,224,1,224,3,224,2988,8,224,1,225,1,225,1,225,1,225,3,225,2994,8,225,1,226,1,226,1,226,1,226,1,226,5,226,3001,8,226,10,226,12,226,3004,9,226,1,226,1,226,1,227,1,227,1,227,1,227,1,227,1,228,1,228,1,228,1,228,1,228,5,228,3018,8,228,10,228,12,228,3021,9,228,1,228,1,228,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,231,1,231,1,231,1,232,1,232,1,232,1,232,1,232,1,232,5,232,3041,8,232,10,232,12,232,3044,9,232,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,1,233,3,233,3063,8,233,1,234,1,234,1,234,1,234,1,234,1,234,1,234,5,234,3072,8,234,10,234,12,234,3075,9,234,1,235,1,235,1,235,1,235,1,235,3,235,3082,8,235,1,236,1,236,1,236,1,236,1,236,1,236,5,236,3090,8,236,10,236,12,236,3093,9,236,1,237,1,237,3,237,3097,8,237,1,238,1,238,3,238,3101,8,238,1,238,1,238,1,239,1,239,3,239,3107,8,239,1,239,1,239,1,240,1,240,1,240,1,240,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,1,243,1,243,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,1,245,1,245,1,245,1,245,1,245,5,245,3143,8,245,10,245,12,245,3146,9,245,1,245,1,245,1,246,1,246,1,246,1,246,1,246,5,246,3155,8,246,10,246,12,246,3158,9,246,1,246,1,246,1,247,1,247,1,247,1,248,1,248,1,248,1,248,1,249,1,249,1,249,1,249,1,250,1,250,1,250,1,250,1,250,1,250,1,251,1,251,1,251,1,252,1,252,1,252,1,252,1,252,1,253,1,253,1,253,1,253,1,254,1,254,1,254,1,254,1,254,1,255,1,255,1,255,3,255,3199,8,255,1,255,1,255,1,256,1,256,1,256,1,257,3,257,3207,8,257,1,257,3,257,3210,8,257,1,257,1,257,3,257,3214,8,257,1,258,1,258,3,258,3218,8,258,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3226,8,259,10,259,12,259,3229,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3239,8,259,10,259,12,259,3242,9,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,1,259,5,259,3252,8,259,10,259,12,259,3255,9,259,1,259,1,259,3,259,3259,8,259,1,260,1,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3269,8,260,10,260,12,260,3272,9,260,1,260,1,260,1,260,1,260,1,260,1,260,5,260,3280,8,260,10,260,12,260,3283,9,260,1,260,1,260,3,260,3287,8,260,1,260,3,260,3290,8,260,1,261,1,261,3,261,3294,8,261,1,261,1,261,3,261,3298,8,261,1,262,1,262,3,262,3302,8,262,1,262,3,262,3305,8,262,1,263,1,263,1,264,1,264,1,265,1,265,1,265,1,265,1,265,5,265,3316,8,265,10,265,12,265,3319,9,265,1,265,3,265,3322,8,265,1,265,1,265,1,266,1,266,1,266,1,266,1,267,1,267,1,267,1,267,3,267,3334,8,267,1,268,1,268,1,268,1,268,1,268,1,268,1,268,1,269,1,269,1,269,5,269,3346,8,269,10,269,12,269,3349,9,269,1,270,1,270,1,270,1,270,1,271,1,271,1,272,1,272,1,272,1,272,1,272,1,272,3,272,3363,8,272,1,273,1,273,1,273,1,273,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,1,274,3,274,3378,8,274,1,274,3,274,3381,8,274,1,275,1,275,1,275,1,275,1,276,1,276,1,276,1,276,5,276,3391,8,276,10,276,12,276,3394,9,276,3,276,3396,8,276,1,276,1,276,1,277,1,277,1,277,1,277,1,278,1,278,3,278,3406,8,278,1,279,1,279,1,279,1,279,5,279,3412,8,279,10,279,12,279,3415,9,279,1,279,1,279,1,279,3,279,3420,8,279,1,280,1,280,1,280,1,280,5,280,3426,8,280,10,280,12,280,3429,9,280,1,280,1,280,1,281,1,281,1,281,3,281,3436,8,281,1,282,1,282,1,282,1,282,1,282,3,282,3443,8,282,1,282,1,282,3,282,3447,8,282,1,282,1,282,1,283,1,283,1,283,1,283,3,283,3455,8,283,1,284,1,284,1,284,1,284,3,284,3461,8,284,1,284,1,284,1,284,1,284,3,284,3467,8,284,1,285,1,285,1,285,1,285,1,285,1,285,1,285,1,285,5,285,3477,8,285,10,285,12,285,3480,9,285,1,285,3,285,3483,8,285,3,285,3485,8,285,1,286,1,286,1,286,1,286,1,286,1,286,1,286,1,286,5,286,3495,8,286,10,286,12,286,3498,9,286,1,286,3,286,3501,8,286,1,286,1,286,1,286,3,286,3506,8,286,1,287,1,287,1,287,1,287,3,287,3512,8,287,1,287,1,287,1,287,5,287,3517,8,287,10,287,12,287,3520,9,287,1,287,3,287,3523,8,287,1,288,1,288,3,288,3527,8,288,1,289,3,289,3530,8,289,1,289,1,289,1,289,1,290,1,290,1,290,1,290,1,290,1,290,5,290,3541,8,290,10,290,12,290,3544,9,290,1,290,1,290,1,290,1,290,5,290,3550,8,290,10,290,12,290,3553,9,290,1,290,3,290,3556,8,290,1,290,1,290,1,290,3,290,3561,8,290,1,291,1,291,1,291,1,291,3,291,3567,8,291,1,291,1,291,1,291,1,291,1,291,5,291,3574,8,291,10,291,12,291,3577,9,291,1,291,1,291,1,291,1,291,5,291,3583,8,291,10,291,12,291,3586,9,291,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,1,292,3,292,3602,8,292,1,292,1,292,3,292,3606,8,292,1,292,1,292,3,292,3610,8,292,3,292,3612,8,292,1,293,1,293,3,293,3616,8,293,1,294,1,294,1,294,5,294,3621,8,294,10,294,12,294,3624,9,294,1,294,3,294,3627,8,294,1,294,1,294,3,294,3631,8,294,3,294,3633,8,294,1,295,1,295,1,295,1,295,1,295,1,295,1,296,1,296,1,296,1,296,1,296,1,296,1,296,5,296,3648,8,296,10,296,12,296,3651,9,296,1,297,1,297,3,297,3655,8,297,1,298,1,298,1,298,1,298,1,298,1,299,1,299,1,299,1,299,1,299,1,299,1,299,1,300,1,300,1,300,1,300,1,300,1,300,1,300,1,300,5,300,3677,8,300,10,300,12,300,3680,9,300,1,301,1,301,3,301,3684,8,301,1,302,1,302,1,302,1,302,1,302,1,302,1,303,1,303,1,303,1,303,1,303,1,303,1,303,1,303,5,303,3700,8,303,10,303,12,303,3703,9,303,1,303,1,303,1,303,1,303,1,303,1,304,1,304,1,304,1,305,1,305,1,305,5,305,3716,8,305,10,305,12,305,3719,9,305,1,306,1,306,1,306,1,306,1,307,1,307,1,307,1,307,1,307,1,307,1,307,5,307,3732,8,307,10,307,12,307,3735,9,307,1,308,1,308,1,309,1,309,1,309,1,309,1,309,1,310,1,310,1,310,1,310,1,310,3,310,3749,8,310,1,311,1,311,1,311,5,311,3754,8,311,10,311,12,311,3757,9,311,1,312,1,312,1,312,1,312,1,312,3,312,3764,8,312,1,312,1,312,1,312,1,312,1,312,1,312,1,313,5,313,3773,8,313,10,313,12,313,3776,9,313,1,313,1,313,4,313,3780,8,313,11,313,12,313,3781,1,313,5,313,3785,8,313,10,313,12,313,3788,9,313,1,313,5,313,3791,8,313,10,313,12,313,3794,9,313,3,313,3796,8,313,1,314,3,314,3799,8,314,1,314,1,314,1,314,1,314,1,314,3,314,3806,8,314,1,315,3,315,3809,8,315,1,315,3,315,3812,8,315,1,315,1,315,1,315,1,315,1,315,1,315,1,315,3,315,3821,8,315,1,316,1,316,1,316,3,316,3826,8,316,1,316,3,316,3829,8,316,1,316,1,316,1,316,1,316,1,316,1,316,5,316,3837,8,316,10,316,12,316,3840,9,316,1,316,3,316,3843,8,316,3,316,3845,8,316,1,316,1,316,1,316,1,316,1,316,3,316,3852,8,316,1,316,3,316,3855,8,316,1,316,1,316,3,316,3859,8,316,3,316,3861,8,316,1,316,3,316,3864,8,316,1,317,1,317,1,317,3,317,3869,8,317,1,318,3,318,3872,8,318,1,318,1,318,1,318,3,318,3877,8,318,1,319,1,319,1,319,1,319,1,319,1,319,5,319,3885,8,319,10,319,12,319,3888,9,319,1,319,1,319,3,319,3892,8,319,1,320,1,320,1,320,1,320,1,320,1,320,1,320,5,320,3901,8,320,10,320,12,320,3904,9,320,1,320,3,320,3907,8,320,1,320,1,320,3,320,3911,8,320,3,320,3913,8,320,1,320,1,320,3,320,3917,8,320,1,320,1,320,1,320,3,320,3922,8,320,1,320,1,320,1,320,1,320,5,320,3928,8,320,10,320,12,320,3931,9,320,3,320,3933,8,320,1,320,3,320,3936,8,320,1,320,3,320,3939,8,320,1,321,1,321,1,321,3,321,3944,8,321,1,321,1,321,1,322,1,322,3,322,3950,8,322,1,322,3,322,3953,8,322,1,323,1,323,3,323,3957,8,323,1,324,1,324,1,324,1,324,3,324,3963,8,324,1,325,1,325,1,325,1,325,1,325,1,325,3,325,3971,8,325,1,325,3,325,3974,8,325,1,326,1,326,1,326,1,326,1,326,3,326,3981,8,326,1,326,1,326,3,326,3985,8,326,1,326,3,326,3988,8,326,1,327,1,327,3,327,3992,8,327,1,328,1,328,1,328,5,328,3997,8,328,10,328,12,328,4e3,9,328,1,329,1,329,1,329,1,329,1,330,1,330,1,331,1,331,1,331,1,331,1,331,1,331,1,332,1,332,1,332,1,332,5,332,4018,8,332,10,332,12,332,4021,9,332,1,332,1,332,1,333,1,333,1,333,1,333,1,333,3,333,4030,8,333,1,333,1,333,3,333,4034,8,333,1,333,3,333,4037,8,333,1,334,1,334,1,334,1,334,5,334,4043,8,334,10,334,12,334,4046,9,334,1,334,1,334,1,335,1,335,1,336,1,336,1,336,1,336,1,336,1,337,1,337,1,337,1,337,3,337,4061,8,337,1,337,1,337,1,337,1,337,5,337,4067,8,337,10,337,12,337,4070,9,337,1,338,1,338,1,338,1,338,1,338,3,338,4077,8,338,1,339,1,339,1,339,1,340,1,340,1,340,3,340,4085,8,340,1,341,1,341,1,341,1,341,1,341,1,342,1,342,3,342,4094,8,342,1,343,1,343,1,343,1,343,1,344,1,344,1,344,1,344,1,344,1,345,1,345,1,345,1,345,1,345,5,345,4110,8,345,10,345,12,345,4113,9,345,1,345,1,345,1,346,1,346,1,346,1,346,1,346,1,347,1,347,1,347,1,347,1,347,5,347,4127,8,347,10,347,12,347,4130,9,347,1,347,1,347,1,348,1,348,1,348,1,348,3,348,4138,8,348,1,348,1,348,1,349,1,349,1,349,5,349,4145,8,349,10,349,12,349,4148,9,349,1,350,1,350,1,350,1,350,1,351,1,351,1,352,1,352,1,352,1,352,1,352,1,353,1,353,1,353,5,353,4164,8,353,10,353,12,353,4167,9,353,1,354,1,354,1,354,1,354,1,355,1,355,1,356,1,356,1,356,3,356,4178,8,356,1,356,1,356,1,357,1,357,1,358,1,358,1,358,1,358,3,358,4188,8,358,1,359,1,359,1,359,1,359,1,359,1,360,1,360,3,360,4197,8,360,1,361,1,361,1,362,1,362,1,362,1,363,1,363,1,363,5,363,4207,8,363,10,363,12,363,4210,9,363,1,364,1,364,1,364,1,364,1,365,1,365,1,366,1,366,1,366,1,366,1,367,3,367,4223,8,367,1,367,3,367,4226,8,367,1,367,3,367,4229,8,367,1,367,3,367,4232,8,367,1,368,1,368,1,369,1,369,3,369,4238,8,369,1,369,1,369,1,369,1,370,1,370,1,371,1,371,1,371,3,371,4248,8,371,1,372,1,372,1,373,1,373,3,373,4254,8,373,1,374,1,374,1,374,1,374,1,374,1,375,1,375,1,375,1,375,3,375,4265,8,375,1,375,3,375,4268,8,375,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,1,376,3,376,4280,8,376,1,377,1,377,1,377,1,378,1,378,1,378,1,378,1,378,3,378,4290,8,378,1,379,1,379,1,379,1,379,3,379,4296,8,379,1,380,1,380,1,381,1,381,1,382,1,382,1,382,1,382,1,382,3,382,4307,8,382,1,383,1,383,1,383,5,383,4312,8,383,10,383,12,383,4315,9,383,1,383,3,383,4318,8,383,1,384,1,384,1,384,1,385,1,385,1,386,1,386,3,386,4327,8,386,1,387,1,387,1,387,1,387,1,387,1,387,1,387,3,387,4336,8,387,1,388,1,388,1,388,1,388,1,388,1,388,3,388,4344,8,388,1,389,1,389,1,389,1,389,1,389,3,389,4351,8,389,1,390,1,390,1,390,1,390,1,390,1,390,1,390,1,390,3,390,4361,8,390,1,391,1,391,1,391,1,391,1,391,1,391,1,391,3,391,4370,8,391,1,392,1,392,1,392,1,392,1,392,1,392,1,392,3,392,4379,8,392,1,393,1,393,1,393,1,393,1,393,1,393,1,393,1,393,3,393,4389,8,393,1,394,1,394,3,394,4393,8,394,1,395,1,395,3,395,4397,8,395,1,396,1,396,3,396,4401,8,396,1,397,1,397,3,397,4405,8,397,1,398,1,398,3,398,4409,8,398,1,399,1,399,3,399,4413,8,399,1,400,1,400,3,400,4417,8,400,1,401,1,401,3,401,4421,8,401,1,402,1,402,3,402,4425,8,402,1,403,1,403,3,403,4429,8,403,1,404,1,404,3,404,4433,8,404,1,405,1,405,3,405,4437,8,405,1,406,1,406,1,406,3,406,4442,8,406,1,407,1,407,1,407,3,407,4447,8,407,1,408,1,408,1,408,3,408,4452,8,408,1,408,1,408,3,408,4456,8,408,1,409,1,409,3,409,4460,8,409,1,410,1,410,1,410,3,410,4465,8,410,1,411,3,411,4468,8,411,1,411,1,411,1,412,1,412,3,412,4474,8,412,1,413,3,413,4477,8,413,1,413,1,413,1,414,1,414,1,414,1,414,1,414,1,414,1,414,1,414,3,414,4489,8,414,1,415,1,415,1,416,1,416,1,417,1,417,1,418,1,418,1,419,1,419,1,420,1,420,1,421,1,421,1,422,1,422,1,423,1,423,1,424,1,424,1,425,1,425,1,426,1,426,1,427,1,427,1,428,1,428,1,428,1,428,1,428,3,428,4522,8,428,1,429,5,429,4525,8,429,10,429,12,429,4528,9,429,1,429,1,429,4,429,4532,8,429,11,429,12,429,4533,1,429,5,429,4537,8,429,10,429,12,429,4540,9,429,1,429,5,429,4543,8,429,10,429,12,429,4546,9,429,1,429,1,429,1,430,1,430,1,430,3,430,4553,8,430,3,430,4555,8,430,1,430,1,430,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,1,431,3,431,4572,8,431,1,432,1,432,1,432,1,433,1,433,1,433,1,434,1,434,1,434,1,435,1,435,3,435,4585,8,435,1,435,0,0,436,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,388,390,392,394,396,398,400,402,404,406,408,410,412,414,416,418,420,422,424,426,428,430,432,434,436,438,440,442,444,446,448,450,452,454,456,458,460,462,464,466,468,470,472,474,476,478,480,482,484,486,488,490,492,494,496,498,500,502,504,506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,564,566,568,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,604,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,640,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,676,678,680,682,684,686,688,690,692,694,696,698,700,702,704,706,708,710,712,714,716,718,720,722,724,726,728,730,732,734,736,738,740,742,744,746,748,750,752,754,756,758,760,762,764,766,768,770,772,774,776,778,780,782,784,786,788,790,792,794,796,798,800,802,804,806,808,810,812,814,816,818,820,822,824,826,828,830,832,834,836,838,840,842,844,846,848,850,852,854,856,858,860,862,864,866,868,870,0,39,2,0,54,54,277,277,6,0,145,145,156,156,181,181,186,186,236,236,255,255,1,0,6,9,1,0,17,18,1,0,20,22,2,0,17,19,197,197,2,0,115,115,121,121,4,0,121,121,133,133,293,293,300,300,2,0,81,81,297,297,2,0,52,52,103,103,2,0,25,25,203,203,2,0,44,44,110,110,2,0,164,164,264,264,3,0,106,106,183,183,209,209,2,0,65,65,279,279,2,0,207,207,266,266,2,0,55,55,278,278,3,0,190,191,193,193,263,263,2,0,42,42,112,112,2,0,148,148,305,305,2,0,58,58,281,281,2,0,120,120,302,302,3,0,45,45,104,104,239,239,3,0,58,58,258,258,281,281,2,0,143,143,304,304,3,0,107,107,231,231,280,280,2,0,41,41,274,274,2,0,78,78,262,262,3,0,150,150,233,233,259,259,2,0,139,139,226,226,1,0,320,321,21,0,54,54,66,67,71,72,89,89,91,93,116,116,128,128,142,143,153,153,174,176,184,184,197,197,199,199,230,230,234,234,250,251,257,257,265,265,277,277,296,296,312,313,3,0,49,49,120,120,272,272,11,0,44,44,51,51,53,53,110,110,124,124,152,152,169,169,182,182,298,298,314,314,316,316,58,0,40,43,45,48,50,50,52,52,55,59,61,65,68,68,70,70,73,75,79,79,81,87,90,90,94,100,102,105,107,109,112,115,117,118,121,123,125,125,127,127,129,132,134,137,139,141,144,145,147,149,151,151,154,165,167,168,170,171,178,178,180,181,185,193,195,196,200,204,206,208,210,210,212,212,215,226,228,229,231,232,235,240,242,244,246,248,252,253,255,256,258,258,261,261,263,264,268,271,274,276,278,283,285,292,295,295,297,297,299,305,307,308,311,311,317,318,50,0,40,43,45,48,50,50,52,52,55,59,61,65,68,68,70,70,73,76,79,79,81,88,90,90,94,105,107,109,111,115,117,118,121,123,125,127,129,132,134,137,139,141,144,145,147,149,151,151,154,168,170,173,177,181,185,196,198,198,200,208,210,229,231,232,235,240,242,244,246,249,252,256,258,258,260,261,263,264,266,266,268,271,274,276,278,283,285,292,295,295,297,297,299,308,310,311,315,315,317,318,12,0,69,69,106,106,119,119,138,138,183,183,209,209,245,245,267,267,273,273,284,284,294,294,309,309,2,0,133,133,293,293,1,0,322,323,4916,0,877,1,0,0,0,2,882,1,0,0,0,4,908,1,0,0,0,6,916,1,0,0,0,8,940,1,0,0,0,10,947,1,0,0,0,12,1007,1,0,0,0,14,1018,1,0,0,0,16,1020,1,0,0,0,18,1028,1,0,0,0,20,1036,1,0,0,0,22,1040,1,0,0,0,24,1098,1,0,0,0,26,1100,1,0,0,0,28,1102,1,0,0,0,30,1110,1,0,0,0,32,1113,1,0,0,0,34,1117,1,0,0,0,36,1120,1,0,0,0,38,1146,1,0,0,0,40,1154,1,0,0,0,42,1162,1,0,0,0,44,1174,1,0,0,0,46,1176,1,0,0,0,48,1190,1,0,0,0,50,1199,1,0,0,0,52,1205,1,0,0,0,54,1211,1,0,0,0,56,1215,1,0,0,0,58,1217,1,0,0,0,60,1226,1,0,0,0,62,1242,1,0,0,0,64,1251,1,0,0,0,66,1264,1,0,0,0,68,1290,1,0,0,0,70,1312,1,0,0,0,72,1314,1,0,0,0,74,1321,1,0,0,0,76,1328,1,0,0,0,78,1336,1,0,0,0,80,1351,1,0,0,0,82,1365,1,0,0,0,84,1370,1,0,0,0,86,1372,1,0,0,0,88,1376,1,0,0,0,90,1378,1,0,0,0,92,1382,1,0,0,0,94,1390,1,0,0,0,96,1401,1,0,0,0,98,1403,1,0,0,0,100,1421,1,0,0,0,102,1425,1,0,0,0,104,1444,1,0,0,0,106,1452,1,0,0,0,108,1454,1,0,0,0,110,1476,1,0,0,0,112,1485,1,0,0,0,114,1493,1,0,0,0,116,1506,1,0,0,0,118,1508,1,0,0,0,120,1519,1,0,0,0,122,1527,1,0,0,0,124,1529,1,0,0,0,126,1540,1,0,0,0,128,1551,1,0,0,0,130,1556,1,0,0,0,132,1564,1,0,0,0,134,1578,1,0,0,0,136,1592,1,0,0,0,138,1596,1,0,0,0,140,1600,1,0,0,0,142,1615,1,0,0,0,144,1617,1,0,0,0,146,1623,1,0,0,0,148,1627,1,0,0,0,150,1635,1,0,0,0,152,1640,1,0,0,0,154,1649,1,0,0,0,156,1655,1,0,0,0,158,1659,1,0,0,0,160,1664,1,0,0,0,162,1666,1,0,0,0,164,1682,1,0,0,0,166,1687,1,0,0,0,168,1691,1,0,0,0,170,1697,1,0,0,0,172,1705,1,0,0,0,174,1712,1,0,0,0,176,1717,1,0,0,0,178,1736,1,0,0,0,180,1755,1,0,0,0,182,1770,1,0,0,0,184,1775,1,0,0,0,186,1780,1,0,0,0,188,1785,1,0,0,0,190,1792,1,0,0,0,192,1797,1,0,0,0,194,1812,1,0,0,0,196,1817,1,0,0,0,198,1824,1,0,0,0,200,1857,1,0,0,0,202,1876,1,0,0,0,204,1880,1,0,0,0,206,1882,1,0,0,0,208,1907,1,0,0,0,210,1909,1,0,0,0,212,1918,1,0,0,0,214,1928,1,0,0,0,216,1933,1,0,0,0,218,1938,1,0,0,0,220,1946,1,0,0,0,222,1951,1,0,0,0,224,1956,1,0,0,0,226,1979,1,0,0,0,228,1981,1,0,0,0,230,1985,1,0,0,0,232,1993,1,0,0,0,234,2002,1,0,0,0,236,2016,1,0,0,0,238,2024,1,0,0,0,240,2026,1,0,0,0,242,2036,1,0,0,0,244,2048,1,0,0,0,246,2083,1,0,0,0,248,2087,1,0,0,0,250,2095,1,0,0,0,252,2131,1,0,0,0,254,2134,1,0,0,0,256,2175,1,0,0,0,258,2203,1,0,0,0,260,2214,1,0,0,0,262,2216,1,0,0,0,264,2219,1,0,0,0,266,2227,1,0,0,0,268,2234,1,0,0,0,270,2268,1,0,0,0,272,2270,1,0,0,0,274,2272,1,0,0,0,276,2274,1,0,0,0,278,2283,1,0,0,0,280,2287,1,0,0,0,282,2319,1,0,0,0,284,2336,1,0,0,0,286,2338,1,0,0,0,288,2340,1,0,0,0,290,2352,1,0,0,0,292,2355,1,0,0,0,294,2363,1,0,0,0,296,2369,1,0,0,0,298,2371,1,0,0,0,300,2379,1,0,0,0,302,2381,1,0,0,0,304,2389,1,0,0,0,306,2393,1,0,0,0,308,2395,1,0,0,0,310,2397,1,0,0,0,312,2399,1,0,0,0,314,2401,1,0,0,0,316,2406,1,0,0,0,318,2410,1,0,0,0,320,2421,1,0,0,0,322,2434,1,0,0,0,324,2436,1,0,0,0,326,2438,1,0,0,0,328,2446,1,0,0,0,330,2451,1,0,0,0,332,2456,1,0,0,0,334,2462,1,0,0,0,336,2482,1,0,0,0,338,2485,1,0,0,0,340,2501,1,0,0,0,342,2514,1,0,0,0,344,2516,1,0,0,0,346,2528,1,0,0,0,348,2555,1,0,0,0,350,2557,1,0,0,0,352,2560,1,0,0,0,354,2568,1,0,0,0,356,2570,1,0,0,0,358,2599,1,0,0,0,360,2605,1,0,0,0,362,2607,1,0,0,0,364,2631,1,0,0,0,366,2650,1,0,0,0,368,2662,1,0,0,0,370,2664,1,0,0,0,372,2669,1,0,0,0,374,2671,1,0,0,0,376,2679,1,0,0,0,378,2685,1,0,0,0,380,2687,1,0,0,0,382,2703,1,0,0,0,384,2719,1,0,0,0,386,2721,1,0,0,0,388,2731,1,0,0,0,390,2745,1,0,0,0,392,2753,1,0,0,0,394,2763,1,0,0,0,396,2778,1,0,0,0,398,2781,1,0,0,0,400,2790,1,0,0,0,402,2793,1,0,0,0,404,2807,1,0,0,0,406,2814,1,0,0,0,408,2816,1,0,0,0,410,2820,1,0,0,0,412,2824,1,0,0,0,414,2838,1,0,0,0,416,2840,1,0,0,0,418,2842,1,0,0,0,420,2897,1,0,0,0,422,2899,1,0,0,0,424,2909,1,0,0,0,426,2915,1,0,0,0,428,2920,1,0,0,0,430,2922,1,0,0,0,432,2926,1,0,0,0,434,2936,1,0,0,0,436,2946,1,0,0,0,438,2948,1,0,0,0,440,2966,1,0,0,0,442,2968,1,0,0,0,444,2972,1,0,0,0,446,2980,1,0,0,0,448,2984,1,0,0,0,450,2989,1,0,0,0,452,2995,1,0,0,0,454,3007,1,0,0,0,456,3012,1,0,0,0,458,3024,1,0,0,0,460,3027,1,0,0,0,462,3031,1,0,0,0,464,3034,1,0,0,0,466,3062,1,0,0,0,468,3064,1,0,0,0,470,3081,1,0,0,0,472,3083,1,0,0,0,474,3096,1,0,0,0,476,3098,1,0,0,0,478,3104,1,0,0,0,480,3110,1,0,0,0,482,3116,1,0,0,0,484,3123,1,0,0,0,486,3126,1,0,0,0,488,3133,1,0,0,0,490,3137,1,0,0,0,492,3149,1,0,0,0,494,3161,1,0,0,0,496,3164,1,0,0,0,498,3168,1,0,0,0,500,3172,1,0,0,0,502,3178,1,0,0,0,504,3181,1,0,0,0,506,3186,1,0,0,0,508,3190,1,0,0,0,510,3195,1,0,0,0,512,3202,1,0,0,0,514,3209,1,0,0,0,516,3215,1,0,0,0,518,3258,1,0,0,0,520,3260,1,0,0,0,522,3293,1,0,0,0,524,3299,1,0,0,0,526,3306,1,0,0,0,528,3308,1,0,0,0,530,3310,1,0,0,0,532,3325,1,0,0,0,534,3333,1,0,0,0,536,3335,1,0,0,0,538,3342,1,0,0,0,540,3350,1,0,0,0,542,3354,1,0,0,0,544,3362,1,0,0,0,546,3364,1,0,0,0,548,3380,1,0,0,0,550,3382,1,0,0,0,552,3386,1,0,0,0,554,3399,1,0,0,0,556,3405,1,0,0,0,558,3419,1,0,0,0,560,3421,1,0,0,0,562,3435,1,0,0,0,564,3437,1,0,0,0,566,3450,1,0,0,0,568,3456,1,0,0,0,570,3468,1,0,0,0,572,3486,1,0,0,0,574,3507,1,0,0,0,576,3526,1,0,0,0,578,3529,1,0,0,0,580,3534,1,0,0,0,582,3562,1,0,0,0,584,3611,1,0,0,0,586,3615,1,0,0,0,588,3632,1,0,0,0,590,3634,1,0,0,0,592,3640,1,0,0,0,594,3654,1,0,0,0,596,3656,1,0,0,0,598,3661,1,0,0,0,600,3668,1,0,0,0,602,3683,1,0,0,0,604,3685,1,0,0,0,606,3691,1,0,0,0,608,3709,1,0,0,0,610,3712,1,0,0,0,612,3720,1,0,0,0,614,3724,1,0,0,0,616,3736,1,0,0,0,618,3738,1,0,0,0,620,3743,1,0,0,0,622,3750,1,0,0,0,624,3758,1,0,0,0,626,3774,1,0,0,0,628,3798,1,0,0,0,630,3808,1,0,0,0,632,3825,1,0,0,0,634,3865,1,0,0,0,636,3871,1,0,0,0,638,3878,1,0,0,0,640,3938,1,0,0,0,642,3943,1,0,0,0,644,3952,1,0,0,0,646,3954,1,0,0,0,648,3958,1,0,0,0,650,3964,1,0,0,0,652,3975,1,0,0,0,654,3991,1,0,0,0,656,3993,1,0,0,0,658,4001,1,0,0,0,660,4005,1,0,0,0,662,4007,1,0,0,0,664,4013,1,0,0,0,666,4024,1,0,0,0,668,4038,1,0,0,0,670,4049,1,0,0,0,672,4051,1,0,0,0,674,4056,1,0,0,0,676,4076,1,0,0,0,678,4078,1,0,0,0,680,4081,1,0,0,0,682,4086,1,0,0,0,684,4093,1,0,0,0,686,4095,1,0,0,0,688,4099,1,0,0,0,690,4104,1,0,0,0,692,4116,1,0,0,0,694,4121,1,0,0,0,696,4133,1,0,0,0,698,4141,1,0,0,0,700,4149,1,0,0,0,702,4153,1,0,0,0,704,4155,1,0,0,0,706,4160,1,0,0,0,708,4168,1,0,0,0,710,4172,1,0,0,0,712,4177,1,0,0,0,714,4181,1,0,0,0,716,4187,1,0,0,0,718,4189,1,0,0,0,720,4196,1,0,0,0,722,4198,1,0,0,0,724,4200,1,0,0,0,726,4203,1,0,0,0,728,4211,1,0,0,0,730,4215,1,0,0,0,732,4217,1,0,0,0,734,4222,1,0,0,0,736,4233,1,0,0,0,738,4235,1,0,0,0,740,4242,1,0,0,0,742,4244,1,0,0,0,744,4249,1,0,0,0,746,4253,1,0,0,0,748,4255,1,0,0,0,750,4267,1,0,0,0,752,4279,1,0,0,0,754,4281,1,0,0,0,756,4289,1,0,0,0,758,4291,1,0,0,0,760,4297,1,0,0,0,762,4299,1,0,0,0,764,4301,1,0,0,0,766,4308,1,0,0,0,768,4319,1,0,0,0,770,4322,1,0,0,0,772,4326,1,0,0,0,774,4335,1,0,0,0,776,4343,1,0,0,0,778,4350,1,0,0,0,780,4360,1,0,0,0,782,4369,1,0,0,0,784,4378,1,0,0,0,786,4388,1,0,0,0,788,4392,1,0,0,0,790,4396,1,0,0,0,792,4400,1,0,0,0,794,4404,1,0,0,0,796,4408,1,0,0,0,798,4412,1,0,0,0,800,4416,1,0,0,0,802,4420,1,0,0,0,804,4424,1,0,0,0,806,4428,1,0,0,0,808,4432,1,0,0,0,810,4436,1,0,0,0,812,4441,1,0,0,0,814,4446,1,0,0,0,816,4451,1,0,0,0,818,4459,1,0,0,0,820,4464,1,0,0,0,822,4467,1,0,0,0,824,4473,1,0,0,0,826,4476,1,0,0,0,828,4488,1,0,0,0,830,4490,1,0,0,0,832,4492,1,0,0,0,834,4494,1,0,0,0,836,4496,1,0,0,0,838,4498,1,0,0,0,840,4500,1,0,0,0,842,4502,1,0,0,0,844,4504,1,0,0,0,846,4506,1,0,0,0,848,4508,1,0,0,0,850,4510,1,0,0,0,852,4512,1,0,0,0,854,4514,1,0,0,0,856,4521,1,0,0,0,858,4526,1,0,0,0,860,4554,1,0,0,0,862,4571,1,0,0,0,864,4573,1,0,0,0,866,4576,1,0,0,0,868,4579,1,0,0,0,870,4584,1,0,0,0,872,878,3,2,1,0,873,874,5,225,0,0,874,875,5,48,0,0,875,876,5,322,0,0,876,878,3,4,2,0,877,872,1,0,0,0,877,873,1,0,0,0,878,1,1,0,0,0,879,881,5,23,0,0,880,879,1,0,0,0,881,884,1,0,0,0,882,880,1,0,0,0,882,883,1,0,0,0,883,885,1,0,0,0,884,882,1,0,0,0,885,894,3,10,5,0,886,888,5,23,0,0,887,886,1,0,0,0,888,889,1,0,0,0,889,887,1,0,0,0,889,890,1,0,0,0,890,891,1,0,0,0,891,893,3,10,5,0,892,887,1,0,0,0,893,896,1,0,0,0,894,892,1,0,0,0,894,895,1,0,0,0,895,900,1,0,0,0,896,894,1,0,0,0,897,899,5,23,0,0,898,897,1,0,0,0,899,902,1,0,0,0,900,898,1,0,0,0,900,901,1,0,0,0,901,903,1,0,0,0,902,900,1,0,0,0,903,904,5,0,0,1,904,3,1,0,0,0,905,907,5,23,0,0,906,905,1,0,0,0,907,910,1,0,0,0,908,906,1,0,0,0,908,909,1,0,0,0,909,911,1,0,0,0,910,908,1,0,0,0,911,912,5,0,0,1,912,5,1,0,0,0,913,915,5,23,0,0,914,913,1,0,0,0,915,918,1,0,0,0,916,914,1,0,0,0,916,917,1,0,0,0,917,927,1,0,0,0,918,916,1,0,0,0,919,921,3,8,4,0,920,922,5,23,0,0,921,920,1,0,0,0,922,923,1,0,0,0,923,921,1,0,0,0,923,924,1,0,0,0,924,926,1,0,0,0,925,919,1,0,0,0,926,929,1,0,0,0,927,925,1,0,0,0,927,928,1,0,0,0,928,930,1,0,0,0,929,927,1,0,0,0,930,931,5,250,0,0,931,935,3,14,7,0,932,934,5,23,0,0,933,932,1,0,0,0,934,937,1,0,0,0,935,933,1,0,0,0,935,936,1,0,0,0,936,7,1,0,0,0,937,935,1,0,0,0,938,941,3,758,379,0,939,941,3,214,107,0,940,938,1,0,0,0,940,939,1,0,0,0,941,9,1,0,0,0,942,945,5,129,0,0,943,944,5,1,0,0,944,946,5,223,0,0,945,943,1,0,0,0,945,946,1,0,0,0,946,948,1,0,0,0,947,942,1,0,0,0,947,948,1,0,0,0,948,949,1,0,0,0,949,950,3,12,6,0,950,11,1,0,0,0,951,1008,3,224,112,0,952,1008,3,232,116,0,953,1008,3,758,379,0,954,1008,3,418,209,0,955,1008,3,564,282,0,956,1008,3,754,377,0,957,1008,3,364,182,0,958,1008,3,760,380,0,959,1008,3,652,326,0,960,1008,3,650,325,0,961,1008,3,762,381,0,962,1008,3,210,105,0,963,1008,3,214,107,0,964,1008,3,216,108,0,965,1008,3,464,232,0,966,1008,3,468,234,0,967,1008,3,222,111,0,968,1008,3,624,312,0,969,1008,3,628,314,0,970,1008,3,630,315,0,971,1008,3,370,185,0,972,1008,3,566,283,0,973,1008,3,568,284,0,974,1008,3,570,285,0,975,1008,3,572,286,0,976,1008,3,574,287,0,977,1008,3,394,197,0,978,1008,3,398,199,0,979,1008,3,402,201,0,980,1008,3,380,190,0,981,1008,3,382,191,0,982,1008,3,386,193,0,983,1008,3,606,303,0,984,1008,3,620,310,0,985,1008,3,666,333,0,986,1008,3,674,337,0,987,1008,3,696,348,0,988,1008,3,580,290,0,989,1008,3,582,291,0,990,1008,3,472,236,0,991,1008,3,392,196,0,992,1008,3,388,194,0,993,1008,3,390,195,0,994,1008,3,614,307,0,995,1008,3,590,295,0,996,1008,3,592,296,0,997,1008,3,596,298,0,998,1008,3,422,211,0,999,1008,3,424,212,0,1e3,1008,3,426,213,0,1001,1008,3,768,384,0,1002,1008,3,598,299,0,1003,1008,3,600,300,0,1004,1008,3,604,302,0,1005,1008,3,448,224,0,1006,1008,3,450,225,0,1007,951,1,0,0,0,1007,952,1,0,0,0,1007,953,1,0,0,0,1007,954,1,0,0,0,1007,955,1,0,0,0,1007,956,1,0,0,0,1007,957,1,0,0,0,1007,958,1,0,0,0,1007,959,1,0,0,0,1007,960,1,0,0,0,1007,961,1,0,0,0,1007,962,1,0,0,0,1007,963,1,0,0,0,1007,964,1,0,0,0,1007,965,1,0,0,0,1007,966,1,0,0,0,1007,967,1,0,0,0,1007,968,1,0,0,0,1007,969,1,0,0,0,1007,970,1,0,0,0,1007,971,1,0,0,0,1007,972,1,0,0,0,1007,973,1,0,0,0,1007,974,1,0,0,0,1007,975,1,0,0,0,1007,976,1,0,0,0,1007,977,1,0,0,0,1007,978,1,0,0,0,1007,979,1,0,0,0,1007,980,1,0,0,0,1007,981,1,0,0,0,1007,982,1,0,0,0,1007,983,1,0,0,0,1007,984,1,0,0,0,1007,985,1,0,0,0,1007,986,1,0,0,0,1007,987,1,0,0,0,1007,988,1,0,0,0,1007,989,1,0,0,0,1007,990,1,0,0,0,1007,991,1,0,0,0,1007,992,1,0,0,0,1007,993,1,0,0,0,1007,994,1,0,0,0,1007,995,1,0,0,0,1007,996,1,0,0,0,1007,997,1,0,0,0,1007,998,1,0,0,0,1007,999,1,0,0,0,1007,1e3,1,0,0,0,1007,1001,1,0,0,0,1007,1002,1,0,0,0,1007,1003,1,0,0,0,1007,1004,1,0,0,0,1007,1005,1,0,0,0,1007,1006,1,0,0,0,1008,13,1,0,0,0,1009,1014,3,16,8,0,1010,1011,5,210,0,0,1011,1013,3,16,8,0,1012,1010,1,0,0,0,1013,1016,1,0,0,0,1014,1012,1,0,0,0,1014,1015,1,0,0,0,1015,1019,1,0,0,0,1016,1014,1,0,0,0,1017,1019,3,200,100,0,1018,1009,1,0,0,0,1018,1017,1,0,0,0,1019,15,1,0,0,0,1020,1025,3,18,9,0,1021,1022,5,47,0,0,1022,1024,3,18,9,0,1023,1021,1,0,0,0,1024,1027,1,0,0,0,1025,1023,1,0,0,0,1025,1026,1,0,0,0,1026,17,1,0,0,0,1027,1025,1,0,0,0,1028,1033,3,20,10,0,1029,1030,5,318,0,0,1030,1032,3,20,10,0,1031,1029,1,0,0,0,1032,1035,1,0,0,0,1033,1031,1,0,0,0,1033,1034,1,0,0,0,1034,19,1,0,0,0,1035,1033,1,0,0,0,1036,1038,3,28,14,0,1037,1039,3,24,12,0,1038,1037,1,0,0,0,1038,1039,1,0,0,0,1039,21,1,0,0,0,1040,1042,5,171,0,0,1041,1043,5,197,0,0,1042,1041,1,0,0,0,1042,1043,1,0,0,0,1043,1044,1,0,0,0,1044,1045,5,110,0,0,1045,1046,5,142,0,0,1046,23,1,0,0,0,1047,1049,5,197,0,0,1048,1047,1,0,0,0,1048,1049,1,0,0,0,1049,1050,1,0,0,0,1050,1051,3,26,13,0,1051,1054,3,28,14,0,1052,1053,5,122,0,0,1053,1055,3,28,14,0,1054,1052,1,0,0,0,1054,1055,1,0,0,0,1055,1099,1,0,0,0,1056,1058,5,197,0,0,1057,1056,1,0,0,0,1057,1058,1,0,0,0,1058,1059,1,0,0,0,1059,1061,5,159,0,0,1060,1062,5,80,0,0,1061,1060,1,0,0,0,1061,1062,1,0,0,0,1062,1063,1,0,0,0,1063,1099,3,82,41,0,1064,1074,5,172,0,0,1065,1074,5,198,0,0,1066,1067,5,171,0,0,1067,1074,5,199,0,0,1068,1070,5,171,0,0,1069,1068,1,0,0,0,1069,1070,1,0,0,0,1070,1071,1,0,0,0,1071,1072,5,197,0,0,1072,1074,5,199,0,0,1073,1064,1,0,0,0,1073,1065,1,0,0,0,1073,1066,1,0,0,0,1073,1069,1,0,0,0,1074,1099,1,0,0,0,1075,1077,5,197,0,0,1076,1075,1,0,0,0,1076,1077,1,0,0,0,1077,1078,1,0,0,0,1078,1080,5,66,0,0,1079,1081,7,0,0,0,1080,1079,1,0,0,0,1080,1081,1,0,0,0,1081,1082,1,0,0,0,1082,1083,3,28,14,0,1083,1084,5,47,0,0,1084,1085,3,28,14,0,1085,1099,1,0,0,0,1086,1092,5,2,0,0,1087,1092,5,3,0,0,1088,1092,5,4,0,0,1089,1092,5,5,0,0,1090,1092,3,22,11,0,1091,1086,1,0,0,0,1091,1087,1,0,0,0,1091,1088,1,0,0,0,1091,1089,1,0,0,0,1091,1090,1,0,0,0,1092,1093,1,0,0,0,1093,1095,3,28,14,0,1094,1091,1,0,0,0,1095,1096,1,0,0,0,1096,1094,1,0,0,0,1096,1097,1,0,0,0,1097,1099,1,0,0,0,1098,1048,1,0,0,0,1098,1057,1,0,0,0,1098,1073,1,0,0,0,1098,1076,1,0,0,0,1098,1094,1,0,0,0,1099,25,1,0,0,0,1100,1101,7,1,0,0,1101,27,1,0,0,0,1102,1107,3,36,18,0,1103,1104,7,2,0,0,1104,1106,3,36,18,0,1105,1103,1,0,0,0,1106,1109,1,0,0,0,1107,1105,1,0,0,0,1107,1108,1,0,0,0,1108,29,1,0,0,0,1109,1107,1,0,0,0,1110,1111,5,8,0,0,1111,1112,5,8,0,0,1112,31,1,0,0,0,1113,1114,5,8,0,0,1114,1115,5,8,0,0,1115,1116,5,13,0,0,1116,33,1,0,0,0,1117,1118,5,28,0,0,1118,1119,5,28,0,0,1119,35,1,0,0,0,1120,1133,3,38,19,0,1121,1129,5,10,0,0,1122,1129,3,30,15,0,1123,1129,5,11,0,0,1124,1129,3,32,16,0,1125,1129,5,12,0,0,1126,1129,5,13,0,0,1127,1129,5,35,0,0,1128,1121,1,0,0,0,1128,1122,1,0,0,0,1128,1123,1,0,0,0,1128,1124,1,0,0,0,1128,1125,1,0,0,0,1128,1126,1,0,0,0,1128,1127,1,0,0,0,1129,1130,1,0,0,0,1130,1132,3,38,19,0,1131,1128,1,0,0,0,1132,1135,1,0,0,0,1133,1131,1,0,0,0,1133,1134,1,0,0,0,1134,1144,1,0,0,0,1135,1133,1,0,0,0,1136,1137,3,34,17,0,1137,1138,3,36,18,0,1138,1145,1,0,0,0,1139,1141,5,28,0,0,1140,1139,1,0,0,0,1141,1142,1,0,0,0,1142,1140,1,0,0,0,1142,1143,1,0,0,0,1143,1145,1,0,0,0,1144,1136,1,0,0,0,1144,1140,1,0,0,0,1144,1145,1,0,0,0,1145,37,1,0,0,0,1146,1151,3,40,20,0,1147,1148,7,3,0,0,1148,1150,3,40,20,0,1149,1147,1,0,0,0,1150,1153,1,0,0,0,1151,1149,1,0,0,0,1151,1152,1,0,0,0,1152,39,1,0,0,0,1153,1151,1,0,0,0,1154,1159,3,42,21,0,1155,1156,7,4,0,0,1156,1158,3,42,21,0,1157,1155,1,0,0,0,1158,1161,1,0,0,0,1159,1157,1,0,0,0,1159,1160,1,0,0,0,1160,41,1,0,0,0,1161,1159,1,0,0,0,1162,1167,3,44,22,0,1163,1164,5,14,0,0,1164,1166,3,44,22,0,1165,1163,1,0,0,0,1166,1169,1,0,0,0,1167,1165,1,0,0,0,1167,1168,1,0,0,0,1168,43,1,0,0,0,1169,1167,1,0,0,0,1170,1175,3,54,27,0,1171,1172,3,46,23,0,1172,1173,3,54,27,0,1173,1175,1,0,0,0,1174,1170,1,0,0,0,1174,1171,1,0,0,0,1175,45,1,0,0,0,1176,1177,7,5,0,0,1177,47,1,0,0,0,1178,1187,3,138,69,0,1179,1187,3,132,66,0,1180,1184,5,24,0,0,1181,1185,3,144,72,0,1182,1185,5,322,0,0,1183,1185,3,792,396,0,1184,1181,1,0,0,0,1184,1182,1,0,0,0,1184,1183,1,0,0,0,1185,1187,1,0,0,0,1186,1178,1,0,0,0,1186,1179,1,0,0,0,1186,1180,1,0,0,0,1187,1189,1,0,0,0,1188,1186,1,0,0,0,1189,1192,1,0,0,0,1190,1188,1,0,0,0,1190,1191,1,0,0,0,1191,1195,1,0,0,0,1192,1190,1,0,0,0,1193,1194,5,76,0,0,1194,1196,3,790,395,0,1195,1193,1,0,0,0,1195,1196,1,0,0,0,1196,49,1,0,0,0,1197,1200,3,776,388,0,1198,1200,3,68,34,0,1199,1197,1,0,0,0,1199,1198,1,0,0,0,1200,1201,1,0,0,0,1201,1202,3,48,24,0,1202,51,1,0,0,0,1203,1206,3,778,389,0,1204,1206,3,70,35,0,1205,1203,1,0,0,0,1205,1204,1,0,0,0,1206,1207,1,0,0,0,1207,1208,3,48,24,0,1208,53,1,0,0,0,1209,1212,3,50,25,0,1210,1212,3,84,42,0,1211,1209,1,0,0,0,1211,1210,1,0,0,0,1212,55,1,0,0,0,1213,1216,3,52,26,0,1214,1216,3,84,42,0,1215,1213,1,0,0,0,1215,1214,1,0,0,0,1216,57,1,0,0,0,1217,1219,5,39,0,0,1218,1220,3,112,56,0,1219,1218,1,0,0,0,1219,1220,1,0,0,0,1220,1222,1,0,0,0,1221,1223,5,25,0,0,1222,1221,1,0,0,0,1222,1223,1,0,0,0,1223,1224,1,0,0,0,1224,1225,5,38,0,0,1225,59,1,0,0,0,1226,1229,3,14,7,0,1227,1228,5,29,0,0,1228,1230,3,14,7,0,1229,1227,1,0,0,0,1229,1230,1,0,0,0,1230,1239,1,0,0,0,1231,1232,5,25,0,0,1232,1235,3,14,7,0,1233,1234,5,29,0,0,1234,1236,3,14,7,0,1235,1233,1,0,0,0,1235,1236,1,0,0,0,1236,1238,1,0,0,0,1237,1231,1,0,0,0,1238,1241,1,0,0,0,1239,1237,1,0,0,0,1239,1240,1,0,0,0,1240,61,1,0,0,0,1241,1239,1,0,0,0,1242,1244,5,33,0,0,1243,1245,3,60,30,0,1244,1243,1,0,0,0,1244,1245,1,0,0,0,1245,1247,1,0,0,0,1246,1248,5,25,0,0,1247,1246,1,0,0,0,1247,1248,1,0,0,0,1248,1249,1,0,0,0,1249,1250,5,34,0,0,1250,63,1,0,0,0,1251,1252,3,14,7,0,1252,1253,5,29,0,0,1253,1261,3,14,7,0,1254,1255,5,25,0,0,1255,1256,3,14,7,0,1256,1257,5,29,0,0,1257,1258,3,14,7,0,1258,1260,1,0,0,0,1259,1254,1,0,0,0,1260,1263,1,0,0,0,1261,1259,1,0,0,0,1261,1262,1,0,0,0,1262,65,1,0,0,0,1263,1261,1,0,0,0,1264,1266,5,15,0,0,1265,1267,3,64,32,0,1266,1265,1,0,0,0,1266,1267,1,0,0,0,1267,1269,1,0,0,0,1268,1270,5,25,0,0,1269,1268,1,0,0,0,1269,1270,1,0,0,0,1270,1271,1,0,0,0,1271,1272,5,16,0,0,1272,67,1,0,0,0,1273,1291,3,142,71,0,1274,1291,3,144,72,0,1275,1291,3,80,40,0,1276,1291,3,72,36,0,1277,1291,3,76,38,0,1278,1291,3,78,39,0,1279,1280,3,792,396,0,1280,1283,5,36,0,0,1281,1284,3,818,409,0,1282,1284,5,319,0,0,1283,1281,1,0,0,0,1283,1282,1,0,0,0,1284,1291,1,0,0,0,1285,1291,3,208,104,0,1286,1291,3,74,37,0,1287,1291,3,58,29,0,1288,1291,3,62,31,0,1289,1291,3,66,33,0,1290,1273,1,0,0,0,1290,1274,1,0,0,0,1290,1275,1,0,0,0,1290,1276,1,0,0,0,1290,1277,1,0,0,0,1290,1278,1,0,0,0,1290,1279,1,0,0,0,1290,1285,1,0,0,0,1290,1286,1,0,0,0,1290,1287,1,0,0,0,1290,1288,1,0,0,0,1290,1289,1,0,0,0,1291,69,1,0,0,0,1292,1313,3,142,71,0,1293,1313,3,144,72,0,1294,1313,3,80,40,0,1295,1313,3,72,36,0,1296,1313,3,78,39,0,1297,1298,3,792,396,0,1298,1301,5,36,0,0,1299,1302,3,818,409,0,1300,1302,5,319,0,0,1301,1299,1,0,0,0,1301,1300,1,0,0,0,1302,1313,1,0,0,0,1303,1304,5,26,0,0,1304,1305,3,232,116,0,1305,1306,5,27,0,0,1306,1313,1,0,0,0,1307,1313,3,208,104,0,1308,1313,3,74,37,0,1309,1313,3,58,29,0,1310,1313,3,62,31,0,1311,1313,3,66,33,0,1312,1292,1,0,0,0,1312,1293,1,0,0,0,1312,1294,1,0,0,0,1312,1295,1,0,0,0,1312,1296,1,0,0,0,1312,1297,1,0,0,0,1312,1303,1,0,0,0,1312,1307,1,0,0,0,1312,1308,1,0,0,0,1312,1309,1,0,0,0,1312,1310,1,0,0,0,1312,1311,1,0,0,0,1313,71,1,0,0,0,1314,1315,5,72,0,0,1315,1316,5,26,0,0,1316,1317,3,14,7,0,1317,1318,5,51,0,0,1318,1319,3,204,102,0,1319,1320,5,27,0,0,1320,73,1,0,0,0,1321,1322,5,67,0,0,1322,1323,5,26,0,0,1323,1324,3,14,7,0,1324,1325,5,51,0,0,1325,1326,3,156,78,0,1326,1327,5,27,0,0,1327,75,1,0,0,0,1328,1329,5,128,0,0,1329,1332,5,26,0,0,1330,1333,3,232,116,0,1331,1333,3,370,185,0,1332,1330,1,0,0,0,1332,1331,1,0,0,0,1333,1334,1,0,0,0,1334,1335,5,27,0,0,1335,77,1,0,0,0,1336,1338,5,71,0,0,1337,1339,3,14,7,0,1338,1337,1,0,0,0,1338,1339,1,0,0,0,1339,1341,1,0,0,0,1340,1342,3,140,70,0,1341,1340,1,0,0,0,1342,1343,1,0,0,0,1343,1341,1,0,0,0,1343,1344,1,0,0,0,1344,1347,1,0,0,0,1345,1346,5,114,0,0,1346,1348,3,14,7,0,1347,1345,1,0,0,0,1347,1348,1,0,0,0,1348,1349,1,0,0,0,1349,1350,5,118,0,0,1350,79,1,0,0,0,1351,1363,3,110,55,0,1352,1361,5,37,0,0,1353,1354,5,26,0,0,1354,1355,3,14,7,0,1355,1356,5,27,0,0,1356,1362,1,0,0,0,1357,1358,5,33,0,0,1358,1359,3,6,3,0,1359,1360,5,34,0,0,1360,1362,1,0,0,0,1361,1353,1,0,0,0,1361,1357,1,0,0,0,1362,1364,1,0,0,0,1363,1352,1,0,0,0,1363,1364,1,0,0,0,1364,81,1,0,0,0,1365,1366,3,56,28,0,1366,83,1,0,0,0,1367,1371,3,98,49,0,1368,1371,3,102,51,0,1369,1371,3,108,54,0,1370,1367,1,0,0,0,1370,1368,1,0,0,0,1370,1369,1,0,0,0,1371,85,1,0,0,0,1372,1373,5,319,0,0,1373,87,1,0,0,0,1374,1377,3,776,388,0,1375,1377,5,319,0,0,1376,1374,1,0,0,0,1376,1375,1,0,0,0,1377,89,1,0,0,0,1378,1379,3,14,7,0,1379,1380,5,51,0,0,1380,1381,3,88,44,0,1381,91,1,0,0,0,1382,1387,3,90,45,0,1383,1384,5,25,0,0,1384,1386,3,90,45,0,1385,1383,1,0,0,0,1386,1389,1,0,0,0,1387,1385,1,0,0,0,1387,1388,1,0,0,0,1388,93,1,0,0,0,1389,1387,1,0,0,0,1390,1391,3,14,7,0,1391,1392,5,25,0,0,1392,1395,3,86,43,0,1393,1394,5,217,0,0,1394,1396,3,92,46,0,1395,1393,1,0,0,0,1395,1396,1,0,0,0,1396,95,1,0,0,0,1397,1402,5,121,0,0,1398,1402,5,199,0,0,1399,1400,5,98,0,0,1400,1402,3,14,7,0,1401,1397,1,0,0,0,1401,1398,1,0,0,0,1401,1399,1,0,0,0,1402,97,1,0,0,0,1403,1404,5,176,0,0,1404,1405,5,26,0,0,1405,1408,3,94,47,0,1406,1407,5,251,0,0,1407,1409,3,156,78,0,1408,1406,1,0,0,0,1408,1409,1,0,0,0,1409,1416,1,0,0,0,1410,1411,3,96,48,0,1411,1412,5,205,0,0,1412,1413,7,6,0,0,1413,1415,1,0,0,0,1414,1410,1,0,0,0,1415,1418,1,0,0,0,1416,1414,1,0,0,0,1416,1417,1,0,0,0,1417,1419,1,0,0,0,1418,1416,1,0,0,0,1419,1420,5,27,0,0,1420,99,1,0,0,0,1421,1422,7,7,0,0,1422,1423,5,205,0,0,1423,1424,5,121,0,0,1424,101,1,0,0,0,1425,1426,5,174,0,0,1426,1427,5,26,0,0,1427,1429,3,94,47,0,1428,1430,3,100,50,0,1429,1428,1,0,0,0,1429,1430,1,0,0,0,1430,1431,1,0,0,0,1431,1432,5,27,0,0,1432,103,1,0,0,0,1433,1435,5,316,0,0,1434,1436,5,50,0,0,1435,1434,1,0,0,0,1435,1436,1,0,0,0,1436,1445,1,0,0,0,1437,1439,5,315,0,0,1438,1440,7,8,0,0,1439,1438,1,0,0,0,1439,1440,1,0,0,0,1440,1442,1,0,0,0,1441,1443,5,50,0,0,1442,1441,1,0,0,0,1442,1443,1,0,0,0,1443,1445,1,0,0,0,1444,1433,1,0,0,0,1444,1437,1,0,0,0,1445,105,1,0,0,0,1446,1453,5,121,0,0,1447,1453,5,199,0,0,1448,1449,5,115,0,0,1449,1453,5,50,0,0,1450,1451,5,115,0,0,1451,1453,5,201,0,0,1452,1446,1,0,0,0,1452,1447,1,0,0,0,1452,1448,1,0,0,0,1452,1450,1,0,0,0,1453,107,1,0,0,0,1454,1455,5,175,0,0,1455,1456,5,26,0,0,1456,1460,3,94,47,0,1457,1458,3,104,52,0,1458,1459,5,317,0,0,1459,1461,1,0,0,0,1460,1457,1,0,0,0,1460,1461,1,0,0,0,1461,1466,1,0,0,0,1462,1463,3,106,53,0,1463,1464,5,205,0,0,1464,1465,5,115,0,0,1465,1467,1,0,0,0,1466,1462,1,0,0,0,1466,1467,1,0,0,0,1467,1472,1,0,0,0,1468,1469,3,106,53,0,1469,1470,5,205,0,0,1470,1471,5,121,0,0,1471,1473,1,0,0,0,1472,1468,1,0,0,0,1472,1473,1,0,0,0,1473,1474,1,0,0,0,1474,1475,5,27,0,0,1475,109,1,0,0,0,1476,1478,5,26,0,0,1477,1479,3,130,65,0,1478,1477,1,0,0,0,1478,1479,1,0,0,0,1479,1481,1,0,0,0,1480,1482,5,25,0,0,1481,1480,1,0,0,0,1481,1482,1,0,0,0,1482,1483,1,0,0,0,1483,1484,5,27,0,0,1484,111,1,0,0,0,1485,1490,3,14,7,0,1486,1487,5,25,0,0,1487,1489,3,14,7,0,1488,1486,1,0,0,0,1489,1492,1,0,0,0,1490,1488,1,0,0,0,1490,1491,1,0,0,0,1491,113,1,0,0,0,1492,1490,1,0,0,0,1493,1494,5,26,0,0,1494,1499,3,790,395,0,1495,1496,5,25,0,0,1496,1498,3,790,395,0,1497,1495,1,0,0,0,1498,1501,1,0,0,0,1499,1497,1,0,0,0,1499,1500,1,0,0,0,1500,1502,1,0,0,0,1501,1499,1,0,0,0,1502,1503,5,27,0,0,1503,115,1,0,0,0,1504,1507,3,144,72,0,1505,1507,3,790,395,0,1506,1504,1,0,0,0,1506,1505,1,0,0,0,1507,117,1,0,0,0,1508,1509,5,26,0,0,1509,1514,3,116,58,0,1510,1511,5,25,0,0,1511,1513,3,116,58,0,1512,1510,1,0,0,0,1513,1516,1,0,0,0,1514,1512,1,0,0,0,1514,1515,1,0,0,0,1515,1517,1,0,0,0,1516,1514,1,0,0,0,1517,1518,5,27,0,0,1518,119,1,0,0,0,1519,1520,3,814,407,0,1520,1521,3,790,395,0,1521,121,1,0,0,0,1522,1523,3,790,395,0,1523,1524,5,24,0,0,1524,1525,3,790,395,0,1525,1528,1,0,0,0,1526,1528,3,804,402,0,1527,1522,1,0,0,0,1527,1526,1,0,0,0,1528,123,1,0,0,0,1529,1534,3,120,60,0,1530,1531,5,25,0,0,1531,1533,3,120,60,0,1532,1530,1,0,0,0,1533,1536,1,0,0,0,1534,1532,1,0,0,0,1534,1535,1,0,0,0,1535,1538,1,0,0,0,1536,1534,1,0,0,0,1537,1539,5,25,0,0,1538,1537,1,0,0,0,1538,1539,1,0,0,0,1539,125,1,0,0,0,1540,1545,3,122,61,0,1541,1542,5,25,0,0,1542,1544,3,122,61,0,1543,1541,1,0,0,0,1544,1547,1,0,0,0,1545,1543,1,0,0,0,1545,1546,1,0,0,0,1546,1549,1,0,0,0,1547,1545,1,0,0,0,1548,1550,5,25,0,0,1549,1548,1,0,0,0,1549,1550,1,0,0,0,1550,127,1,0,0,0,1551,1554,3,14,7,0,1552,1553,5,51,0,0,1553,1555,3,792,396,0,1554,1552,1,0,0,0,1554,1555,1,0,0,0,1555,129,1,0,0,0,1556,1561,3,128,64,0,1557,1558,5,25,0,0,1558,1560,3,128,64,0,1559,1557,1,0,0,0,1560,1563,1,0,0,0,1561,1559,1,0,0,0,1561,1562,1,0,0,0,1562,131,1,0,0,0,1563,1561,1,0,0,0,1564,1571,5,26,0,0,1565,1566,3,252,126,0,1566,1568,3,130,65,0,1567,1569,5,25,0,0,1568,1567,1,0,0,0,1568,1569,1,0,0,0,1569,1572,1,0,0,0,1570,1572,5,20,0,0,1571,1565,1,0,0,0,1571,1570,1,0,0,0,1571,1572,1,0,0,0,1572,1573,1,0,0,0,1573,1574,5,27,0,0,1574,1575,3,134,67,0,1575,133,1,0,0,0,1576,1579,3,716,358,0,1577,1579,3,718,359,0,1578,1576,1,0,0,0,1578,1577,1,0,0,0,1578,1579,1,0,0,0,1579,1582,1,0,0,0,1580,1581,5,214,0,0,1581,1583,3,720,360,0,1582,1580,1,0,0,0,1582,1583,1,0,0,0,1583,135,1,0,0,0,1584,1585,3,792,396,0,1585,1586,5,36,0,0,1586,1587,3,792,396,0,1587,1593,1,0,0,0,1588,1593,3,796,398,0,1589,1593,3,144,72,0,1590,1591,5,131,0,0,1591,1593,5,144,0,0,1592,1584,1,0,0,0,1592,1588,1,0,0,0,1592,1589,1,0,0,0,1592,1590,1,0,0,0,1593,1594,1,0,0,0,1594,1595,3,132,66,0,1595,137,1,0,0,0,1596,1597,5,39,0,0,1597,1598,3,14,7,0,1598,1599,5,38,0,0,1599,139,1,0,0,0,1600,1601,5,312,0,0,1601,1602,3,14,7,0,1602,1603,5,287,0,0,1603,1604,3,14,7,0,1604,141,1,0,0,0,1605,1616,3,854,427,0,1606,1616,3,852,426,0,1607,1616,5,319,0,0,1608,1616,5,325,0,0,1609,1616,5,199,0,0,1610,1616,5,92,0,0,1611,1616,5,91,0,0,1612,1616,5,93,0,0,1613,1616,3,850,425,0,1614,1616,5,116,0,0,1615,1605,1,0,0,0,1615,1606,1,0,0,0,1615,1607,1,0,0,0,1615,1608,1,0,0,0,1615,1609,1,0,0,0,1615,1610,1,0,0,0,1615,1611,1,0,0,0,1615,1612,1,0,0,0,1615,1613,1,0,0,0,1615,1614,1,0,0,0,1616,143,1,0,0,0,1617,1621,5,32,0,0,1618,1622,3,792,396,0,1619,1622,5,293,0,0,1620,1622,5,133,0,0,1621,1618,1,0,0,0,1621,1619,1,0,0,0,1621,1620,1,0,0,0,1622,145,1,0,0,0,1623,1625,3,144,72,0,1624,1626,5,28,0,0,1625,1624,1,0,0,0,1625,1626,1,0,0,0,1626,147,1,0,0,0,1627,1632,3,144,72,0,1628,1629,5,25,0,0,1629,1631,3,144,72,0,1630,1628,1,0,0,0,1631,1634,1,0,0,0,1632,1630,1,0,0,0,1632,1633,1,0,0,0,1633,149,1,0,0,0,1634,1632,1,0,0,0,1635,1638,3,144,72,0,1636,1637,5,51,0,0,1637,1639,3,144,72,0,1638,1636,1,0,0,0,1638,1639,1,0,0,0,1639,151,1,0,0,0,1640,1645,3,150,75,0,1641,1642,5,25,0,0,1642,1644,3,150,75,0,1643,1641,1,0,0,0,1644,1647,1,0,0,0,1645,1643,1,0,0,0,1645,1646,1,0,0,0,1646,153,1,0,0,0,1647,1645,1,0,0,0,1648,1650,7,3,0,0,1649,1648,1,0,0,0,1649,1650,1,0,0,0,1650,1653,1,0,0,0,1651,1654,3,854,427,0,1652,1654,3,852,426,0,1653,1651,1,0,0,0,1653,1652,1,0,0,0,1654,155,1,0,0,0,1655,1656,3,808,404,0,1656,157,1,0,0,0,1657,1660,3,854,427,0,1658,1660,3,144,72,0,1659,1657,1,0,0,0,1659,1658,1,0,0,0,1660,159,1,0,0,0,1661,1665,3,772,386,0,1662,1665,5,319,0,0,1663,1665,3,144,72,0,1664,1661,1,0,0,0,1664,1662,1,0,0,0,1664,1663,1,0,0,0,1665,161,1,0,0,0,1666,1667,3,160,80,0,1667,1668,5,29,0,0,1668,1669,3,204,102,0,1669,163,1,0,0,0,1670,1671,3,160,80,0,1671,1676,3,204,102,0,1672,1674,5,197,0,0,1673,1672,1,0,0,0,1673,1674,1,0,0,0,1674,1675,1,0,0,0,1675,1677,5,199,0,0,1676,1673,1,0,0,0,1676,1677,1,0,0,0,1677,1683,1,0,0,0,1678,1679,3,204,102,0,1679,1680,5,51,0,0,1680,1681,3,160,80,0,1681,1683,1,0,0,0,1682,1670,1,0,0,0,1682,1678,1,0,0,0,1683,165,1,0,0,0,1684,1685,3,160,80,0,1685,1686,5,29,0,0,1686,1688,1,0,0,0,1687,1684,1,0,0,0,1687,1688,1,0,0,0,1688,1689,1,0,0,0,1689,1690,3,204,102,0,1690,167,1,0,0,0,1691,1695,3,166,83,0,1692,1693,5,33,0,0,1693,1694,5,60,0,0,1694,1696,5,34,0,0,1695,1692,1,0,0,0,1695,1696,1,0,0,0,1696,169,1,0,0,0,1697,1702,3,168,84,0,1698,1699,5,25,0,0,1699,1701,3,168,84,0,1700,1698,1,0,0,0,1701,1704,1,0,0,0,1702,1700,1,0,0,0,1702,1703,1,0,0,0,1703,171,1,0,0,0,1704,1702,1,0,0,0,1705,1706,5,96,0,0,1706,1707,5,26,0,0,1707,1708,3,158,79,0,1708,1709,5,25,0,0,1709,1710,3,158,79,0,1710,1711,5,27,0,0,1711,173,1,0,0,0,1712,1713,5,209,0,0,1713,1714,5,6,0,0,1714,1715,3,204,102,0,1715,1716,5,8,0,0,1716,175,1,0,0,0,1717,1734,5,294,0,0,1718,1730,5,6,0,0,1719,1724,3,204,102,0,1720,1721,5,25,0,0,1721,1723,3,204,102,0,1722,1720,1,0,0,0,1723,1726,1,0,0,0,1724,1722,1,0,0,0,1724,1725,1,0,0,0,1725,1728,1,0,0,0,1726,1724,1,0,0,0,1727,1729,5,25,0,0,1728,1727,1,0,0,0,1728,1729,1,0,0,0,1729,1731,1,0,0,0,1730,1719,1,0,0,0,1730,1731,1,0,0,0,1731,1732,1,0,0,0,1732,1735,5,8,0,0,1733,1735,5,5,0,0,1734,1718,1,0,0,0,1734,1733,1,0,0,0,1735,177,1,0,0,0,1736,1753,5,273,0,0,1737,1749,5,6,0,0,1738,1743,3,162,81,0,1739,1740,5,25,0,0,1740,1742,3,162,81,0,1741,1739,1,0,0,0,1742,1745,1,0,0,0,1743,1741,1,0,0,0,1743,1744,1,0,0,0,1744,1747,1,0,0,0,1745,1743,1,0,0,0,1746,1748,5,25,0,0,1747,1746,1,0,0,0,1747,1748,1,0,0,0,1748,1750,1,0,0,0,1749,1738,1,0,0,0,1749,1750,1,0,0,0,1750,1751,1,0,0,0,1751,1754,5,8,0,0,1752,1754,5,5,0,0,1753,1737,1,0,0,0,1753,1752,1,0,0,0,1754,179,1,0,0,0,1755,1756,5,309,0,0,1756,1757,5,6,0,0,1757,1762,3,166,83,0,1758,1759,5,25,0,0,1759,1761,3,166,83,0,1760,1758,1,0,0,0,1761,1764,1,0,0,0,1762,1760,1,0,0,0,1762,1763,1,0,0,0,1763,1766,1,0,0,0,1764,1762,1,0,0,0,1765,1767,5,25,0,0,1766,1765,1,0,0,0,1766,1767,1,0,0,0,1767,1768,1,0,0,0,1768,1769,5,8,0,0,1769,181,1,0,0,0,1770,1771,5,183,0,0,1771,1772,5,6,0,0,1772,1773,3,204,102,0,1773,1774,5,8,0,0,1774,183,1,0,0,0,1775,1776,5,272,0,0,1776,1777,5,6,0,0,1777,1778,3,204,102,0,1778,1779,5,8,0,0,1779,185,1,0,0,0,1780,1781,5,138,0,0,1781,1782,5,6,0,0,1782,1783,3,204,102,0,1783,1784,5,8,0,0,1784,187,1,0,0,0,1785,1786,5,106,0,0,1786,1787,5,6,0,0,1787,1788,3,204,102,0,1788,1789,5,25,0,0,1789,1790,3,204,102,0,1790,1791,5,8,0,0,1791,189,1,0,0,0,1792,1793,5,267,0,0,1793,1794,5,6,0,0,1794,1795,3,204,102,0,1795,1796,5,8,0,0,1796,191,1,0,0,0,1797,1798,5,119,0,0,1798,1799,5,6,0,0,1799,1804,3,160,80,0,1800,1801,5,25,0,0,1801,1803,3,160,80,0,1802,1800,1,0,0,0,1803,1806,1,0,0,0,1804,1802,1,0,0,0,1804,1805,1,0,0,0,1805,1808,1,0,0,0,1806,1804,1,0,0,0,1807,1809,5,25,0,0,1808,1807,1,0,0,0,1808,1809,1,0,0,0,1809,1810,1,0,0,0,1810,1811,5,8,0,0,1811,193,1,0,0,0,1812,1813,5,245,0,0,1813,1814,5,6,0,0,1814,1815,3,160,80,0,1815,1816,5,8,0,0,1816,195,1,0,0,0,1817,1818,5,284,0,0,1818,1819,5,6,0,0,1819,1820,3,204,102,0,1820,1821,5,25,0,0,1821,1822,3,160,80,0,1822,1823,5,8,0,0,1823,197,1,0,0,0,1824,1825,5,69,0,0,1825,1826,5,6,0,0,1826,1828,5,26,0,0,1827,1829,3,170,85,0,1828,1827,1,0,0,0,1828,1829,1,0,0,0,1829,1831,1,0,0,0,1830,1832,5,25,0,0,1831,1830,1,0,0,0,1831,1832,1,0,0,0,1832,1837,1,0,0,0,1833,1834,5,39,0,0,1834,1835,3,170,85,0,1835,1836,5,38,0,0,1836,1838,1,0,0,0,1837,1833,1,0,0,0,1837,1838,1,0,0,0,1838,1839,1,0,0,0,1839,1840,5,27,0,0,1840,1841,5,37,0,0,1841,1842,3,204,102,0,1842,1843,5,8,0,0,1843,199,1,0,0,0,1844,1858,3,174,87,0,1845,1858,3,176,88,0,1846,1858,3,178,89,0,1847,1858,3,180,90,0,1848,1858,3,182,91,0,1849,1858,3,184,92,0,1850,1858,3,186,93,0,1851,1858,3,188,94,0,1852,1858,3,190,95,0,1853,1858,3,192,96,0,1854,1858,3,194,97,0,1855,1858,3,196,98,0,1856,1858,3,198,99,0,1857,1844,1,0,0,0,1857,1845,1,0,0,0,1857,1846,1,0,0,0,1857,1847,1,0,0,0,1857,1848,1,0,0,0,1857,1849,1,0,0,0,1857,1850,1,0,0,0,1857,1851,1,0,0,0,1857,1852,1,0,0,0,1857,1853,1,0,0,0,1857,1854,1,0,0,0,1857,1855,1,0,0,0,1857,1856,1,0,0,0,1858,1862,1,0,0,0,1859,1861,5,28,0,0,1860,1859,1,0,0,0,1861,1864,1,0,0,0,1862,1860,1,0,0,0,1862,1863,1,0,0,0,1863,201,1,0,0,0,1864,1862,1,0,0,0,1865,1877,3,200,100,0,1866,1869,3,172,86,0,1867,1869,3,156,78,0,1868,1866,1,0,0,0,1868,1867,1,0,0,0,1869,1873,1,0,0,0,1870,1872,5,28,0,0,1871,1870,1,0,0,0,1872,1875,1,0,0,0,1873,1871,1,0,0,0,1873,1874,1,0,0,0,1874,1877,1,0,0,0,1875,1873,1,0,0,0,1876,1865,1,0,0,0,1876,1868,1,0,0,0,1877,203,1,0,0,0,1878,1881,3,202,101,0,1879,1881,3,144,72,0,1880,1878,1,0,0,0,1880,1879,1,0,0,0,1881,205,1,0,0,0,1882,1883,5,319,0,0,1883,207,1,0,0,0,1884,1885,5,309,0,0,1885,1886,5,26,0,0,1886,1887,3,14,7,0,1887,1888,5,25,0,0,1888,1889,3,14,7,0,1889,1890,5,25,0,0,1890,1891,3,14,7,0,1891,1892,5,27,0,0,1892,1908,1,0,0,0,1893,1894,5,119,0,0,1894,1895,5,26,0,0,1895,1896,3,14,7,0,1896,1897,5,25,0,0,1897,1898,3,14,7,0,1898,1899,5,27,0,0,1899,1908,1,0,0,0,1900,1901,5,69,0,0,1901,1902,5,26,0,0,1902,1903,3,14,7,0,1903,1904,5,25,0,0,1904,1905,3,14,7,0,1905,1906,5,27,0,0,1906,1908,1,0,0,0,1907,1884,1,0,0,0,1907,1893,1,0,0,0,1907,1900,1,0,0,0,1908,209,1,0,0,0,1909,1910,5,97,0,0,1910,1911,3,144,72,0,1911,1912,5,51,0,0,1912,1915,3,202,101,0,1913,1914,5,2,0,0,1914,1916,3,142,71,0,1915,1913,1,0,0,0,1915,1916,1,0,0,0,1916,211,1,0,0,0,1917,1919,5,24,0,0,1918,1917,1,0,0,0,1918,1919,1,0,0,0,1919,1920,1,0,0,0,1920,1925,3,790,395,0,1921,1922,5,24,0,0,1922,1924,3,790,395,0,1923,1921,1,0,0,0,1924,1927,1,0,0,0,1925,1923,1,0,0,0,1925,1926,1,0,0,0,1926,213,1,0,0,0,1927,1925,1,0,0,0,1928,1929,5,158,0,0,1929,1930,3,212,106,0,1930,1931,5,276,0,0,1931,1932,3,152,76,0,1932,215,1,0,0,0,1933,1934,5,130,0,0,1934,1935,3,148,74,0,1935,217,1,0,0,0,1936,1939,3,144,72,0,1937,1939,5,116,0,0,1938,1936,1,0,0,0,1938,1937,1,0,0,0,1939,1940,1,0,0,0,1940,1942,5,26,0,0,1941,1943,3,112,56,0,1942,1941,1,0,0,0,1942,1943,1,0,0,0,1943,1944,1,0,0,0,1944,1945,5,27,0,0,1945,219,1,0,0,0,1946,1947,5,64,0,0,1947,1948,3,626,313,0,1948,1949,5,118,0,0,1949,1950,5,111,0,0,1950,221,1,0,0,0,1951,1954,5,111,0,0,1952,1955,3,218,109,0,1953,1955,3,220,110,0,1954,1952,1,0,0,0,1954,1953,1,0,0,0,1955,223,1,0,0,0,1956,1957,5,225,0,0,1957,1958,3,820,410,0,1958,1972,3,790,395,0,1959,1960,5,2,0,0,1960,1973,3,226,113,0,1961,1962,5,26,0,0,1962,1967,3,226,113,0,1963,1964,5,25,0,0,1964,1966,3,226,113,0,1965,1963,1,0,0,0,1966,1969,1,0,0,0,1967,1965,1,0,0,0,1967,1968,1,0,0,0,1968,1970,1,0,0,0,1969,1967,1,0,0,0,1970,1971,5,27,0,0,1971,1973,1,0,0,0,1972,1959,1,0,0,0,1972,1961,1,0,0,0,1972,1973,1,0,0,0,1973,225,1,0,0,0,1974,1980,3,154,77,0,1975,1980,3,772,386,0,1976,1980,5,319,0,0,1977,1980,3,850,425,0,1978,1980,3,144,72,0,1979,1974,1,0,0,0,1979,1975,1,0,0,0,1979,1976,1,0,0,0,1979,1977,1,0,0,0,1979,1978,1,0,0,0,1980,227,1,0,0,0,1981,1983,3,14,7,0,1982,1984,7,9,0,0,1983,1982,1,0,0,0,1983,1984,1,0,0,0,1984,229,1,0,0,0,1985,1990,3,228,114,0,1986,1987,5,25,0,0,1987,1989,3,228,114,0,1988,1986,1,0,0,0,1989,1992,1,0,0,0,1990,1988,1,0,0,0,1990,1991,1,0,0,0,1991,231,1,0,0,0,1992,1990,1,0,0,0,1993,1999,3,236,118,0,1994,1995,3,238,119,0,1995,1996,3,236,118,0,1996,1998,1,0,0,0,1997,1994,1,0,0,0,1998,2001,1,0,0,0,1999,1997,1,0,0,0,1999,2e3,1,0,0,0,2e3,233,1,0,0,0,2001,1999,1,0,0,0,2002,2008,3,240,120,0,2003,2004,3,238,119,0,2004,2005,3,236,118,0,2005,2007,1,0,0,0,2006,2003,1,0,0,0,2007,2010,1,0,0,0,2008,2006,1,0,0,0,2008,2009,1,0,0,0,2009,235,1,0,0,0,2010,2008,1,0,0,0,2011,2017,3,240,120,0,2012,2013,5,26,0,0,2013,2014,3,240,120,0,2014,2015,5,27,0,0,2015,2017,1,0,0,0,2016,2011,1,0,0,0,2016,2012,1,0,0,0,2017,237,1,0,0,0,2018,2020,5,298,0,0,2019,2021,5,44,0,0,2020,2019,1,0,0,0,2020,2021,1,0,0,0,2021,2025,1,0,0,0,2022,2025,5,169,0,0,2023,2025,5,124,0,0,2024,2018,1,0,0,0,2024,2022,1,0,0,0,2024,2023,1,0,0,0,2025,239,1,0,0,0,2026,2033,3,242,121,0,2027,2028,5,182,0,0,2028,2031,3,14,7,0,2029,2030,7,10,0,0,2030,2032,3,14,7,0,2031,2029,1,0,0,0,2031,2032,1,0,0,0,2032,2034,1,0,0,0,2033,2027,1,0,0,0,2033,2034,1,0,0,0,2034,241,1,0,0,0,2035,2037,5,109,0,0,2036,2035,1,0,0,0,2036,2037,1,0,0,0,2037,2041,1,0,0,0,2038,2042,3,244,122,0,2039,2042,3,250,125,0,2040,2042,3,254,127,0,2041,2038,1,0,0,0,2041,2039,1,0,0,0,2041,2040,1,0,0,0,2042,2046,1,0,0,0,2043,2044,5,170,0,0,2044,2045,5,249,0,0,2045,2047,3,116,58,0,2046,2043,1,0,0,0,2046,2047,1,0,0,0,2047,243,1,0,0,0,2048,2050,5,230,0,0,2049,2051,5,272,0,0,2050,2049,1,0,0,0,2050,2051,1,0,0,0,2051,2052,1,0,0,0,2052,2057,3,346,173,0,2053,2054,5,25,0,0,2054,2056,3,346,173,0,2055,2053,1,0,0,0,2056,2059,1,0,0,0,2057,2055,1,0,0,0,2057,2058,1,0,0,0,2058,2081,1,0,0,0,2059,2057,1,0,0,0,2060,2061,5,306,0,0,2061,2064,3,136,68,0,2062,2063,5,51,0,0,2063,2065,3,790,395,0,2064,2062,1,0,0,0,2064,2065,1,0,0,0,2065,2068,1,0,0,0,2066,2067,5,315,0,0,2067,2069,3,248,124,0,2068,2066,1,0,0,0,2068,2069,1,0,0,0,2069,2071,1,0,0,0,2070,2072,3,866,433,0,2071,2070,1,0,0,0,2071,2072,1,0,0,0,2072,2075,1,0,0,0,2073,2074,5,152,0,0,2074,2076,3,14,7,0,2075,2073,1,0,0,0,2075,2076,1,0,0,0,2076,2079,1,0,0,0,2077,2078,5,53,0,0,2078,2080,3,314,157,0,2079,2077,1,0,0,0,2079,2080,1,0,0,0,2080,2082,1,0,0,0,2081,2060,1,0,0,0,2081,2082,1,0,0,0,2082,245,1,0,0,0,2083,2084,3,790,395,0,2084,2085,5,2,0,0,2085,2086,3,14,7,0,2086,247,1,0,0,0,2087,2092,3,246,123,0,2088,2089,5,25,0,0,2089,2091,3,246,123,0,2090,2088,1,0,0,0,2091,2094,1,0,0,0,2092,2090,1,0,0,0,2092,2093,1,0,0,0,2093,249,1,0,0,0,2094,2092,1,0,0,0,2095,2096,5,234,0,0,2096,2101,3,346,173,0,2097,2098,5,25,0,0,2098,2100,3,346,173,0,2099,2097,1,0,0,0,2100,2103,1,0,0,0,2101,2099,1,0,0,0,2101,2102,1,0,0,0,2102,2106,1,0,0,0,2103,2101,1,0,0,0,2104,2105,5,227,0,0,2105,2107,3,230,115,0,2106,2104,1,0,0,0,2106,2107,1,0,0,0,2107,2108,1,0,0,0,2108,2109,5,205,0,0,2109,2110,3,124,62,0,2110,2112,5,306,0,0,2111,2113,5,44,0,0,2112,2111,1,0,0,0,2112,2113,1,0,0,0,2113,2114,1,0,0,0,2114,2117,3,136,68,0,2115,2116,5,51,0,0,2116,2118,3,790,395,0,2117,2115,1,0,0,0,2117,2118,1,0,0,0,2118,2120,1,0,0,0,2119,2121,3,866,433,0,2120,2119,1,0,0,0,2120,2121,1,0,0,0,2121,2124,1,0,0,0,2122,2123,5,152,0,0,2123,2125,3,14,7,0,2124,2122,1,0,0,0,2124,2125,1,0,0,0,2125,2128,1,0,0,0,2126,2127,5,53,0,0,2127,2129,3,314,157,0,2128,2126,1,0,0,0,2128,2129,1,0,0,0,2129,251,1,0,0,0,2130,2132,7,11,0,0,2131,2130,1,0,0,0,2131,2132,1,0,0,0,2132,253,1,0,0,0,2133,2135,3,868,434,0,2134,2133,1,0,0,0,2134,2135,1,0,0,0,2135,2136,1,0,0,0,2136,2138,5,265,0,0,2137,2139,5,272,0,0,2138,2137,1,0,0,0,2138,2139,1,0,0,0,2139,2140,1,0,0,0,2140,2141,3,252,126,0,2141,2146,3,336,168,0,2142,2143,5,25,0,0,2143,2145,3,336,168,0,2144,2142,1,0,0,0,2145,2148,1,0,0,0,2146,2144,1,0,0,0,2146,2147,1,0,0,0,2147,2150,1,0,0,0,2148,2146,1,0,0,0,2149,2151,5,25,0,0,2150,2149,1,0,0,0,2150,2151,1,0,0,0,2151,2154,1,0,0,0,2152,2153,5,316,0,0,2153,2155,3,126,63,0,2154,2152,1,0,0,0,2154,2155,1,0,0,0,2155,2157,1,0,0,0,2156,2158,3,868,434,0,2157,2156,1,0,0,0,2157,2158,1,0,0,0,2158,2160,1,0,0,0,2159,2161,3,866,433,0,2160,2159,1,0,0,0,2160,2161,1,0,0,0,2161,2163,1,0,0,0,2162,2164,3,318,159,0,2163,2162,1,0,0,0,2163,2164,1,0,0,0,2164,2167,1,0,0,0,2165,2166,5,152,0,0,2166,2168,3,14,7,0,2167,2165,1,0,0,0,2167,2168,1,0,0,0,2168,2170,1,0,0,0,2169,2171,3,724,362,0,2170,2169,1,0,0,0,2170,2171,1,0,0,0,2171,2173,1,0,0,0,2172,2174,3,316,158,0,2173,2172,1,0,0,0,2173,2174,1,0,0,0,2174,255,1,0,0,0,2175,2176,5,188,0,0,2176,2178,5,26,0,0,2177,2179,3,738,369,0,2178,2177,1,0,0,0,2178,2179,1,0,0,0,2179,2181,1,0,0,0,2180,2182,3,314,157,0,2181,2180,1,0,0,0,2181,2182,1,0,0,0,2182,2184,1,0,0,0,2183,2185,3,262,131,0,2184,2183,1,0,0,0,2184,2185,1,0,0,0,2185,2187,1,0,0,0,2186,2188,3,258,129,0,2187,2186,1,0,0,0,2187,2188,1,0,0,0,2188,2189,1,0,0,0,2189,2190,3,268,134,0,2190,2191,5,27,0,0,2191,257,1,0,0,0,2192,2193,5,206,0,0,2193,2194,5,258,0,0,2194,2195,5,221,0,0,2195,2204,5,186,0,0,2196,2197,5,44,0,0,2197,2198,5,259,0,0,2198,2199,5,221,0,0,2199,2201,5,186,0,0,2200,2202,3,260,130,0,2201,2200,1,0,0,0,2201,2202,1,0,0,0,2202,2204,1,0,0,0,2203,2192,1,0,0,0,2203,2196,1,0,0,0,2204,259,1,0,0,0,2205,2206,5,269,0,0,2206,2207,5,115,0,0,2207,2215,5,187,0,0,2208,2209,5,204,0,0,2209,2210,5,115,0,0,2210,2215,5,187,0,0,2211,2212,5,315,0,0,2212,2213,5,301,0,0,2213,2215,5,259,0,0,2214,2205,1,0,0,0,2214,2208,1,0,0,0,2214,2211,1,0,0,0,2215,261,1,0,0,0,2216,2217,5,189,0,0,2217,2218,3,264,132,0,2218,263,1,0,0,0,2219,2224,3,266,133,0,2220,2221,5,25,0,0,2221,2223,3,266,133,0,2222,2220,1,0,0,0,2223,2226,1,0,0,0,2224,2222,1,0,0,0,2224,2225,1,0,0,0,2225,265,1,0,0,0,2226,2224,1,0,0,0,2227,2228,3,14,7,0,2228,2229,5,51,0,0,2229,2230,3,790,395,0,2230,267,1,0,0,0,2231,2232,5,43,0,0,2232,2233,5,186,0,0,2233,2235,3,270,135,0,2234,2231,1,0,0,0,2234,2235,1,0,0,0,2235,2237,1,0,0,0,2236,2238,3,274,137,0,2237,2236,1,0,0,0,2237,2238,1,0,0,0,2238,2239,1,0,0,0,2239,2240,5,220,0,0,2240,2241,5,26,0,0,2241,2242,3,276,138,0,2242,2244,5,27,0,0,2243,2245,3,290,145,0,2244,2243,1,0,0,0,2244,2245,1,0,0,0,2245,2246,1,0,0,0,2246,2247,5,101,0,0,2247,2248,3,302,151,0,2248,269,1,0,0,0,2249,2250,5,270,0,0,2250,2251,5,289,0,0,2251,2252,5,195,0,0,2252,2269,5,258,0,0,2253,2254,5,270,0,0,2254,2255,5,219,0,0,2255,2256,5,178,0,0,2256,2269,5,258,0,0,2257,2258,5,270,0,0,2258,2259,5,289,0,0,2259,2260,5,136,0,0,2260,2269,3,272,136,0,2261,2262,5,270,0,0,2262,2263,5,289,0,0,2263,2264,5,178,0,0,2264,2269,3,272,136,0,2265,2266,5,270,0,0,2266,2267,5,289,0,0,2267,2269,3,272,136,0,2268,2249,1,0,0,0,2268,2253,1,0,0,0,2268,2257,1,0,0,0,2268,2261,1,0,0,0,2268,2265,1,0,0,0,2269,271,1,0,0,0,2270,2271,3,312,156,0,2271,273,1,0,0,0,2272,2273,7,12,0,0,2273,275,1,0,0,0,2274,2279,3,278,139,0,2275,2276,5,13,0,0,2276,2278,3,278,139,0,2277,2275,1,0,0,0,2278,2281,1,0,0,0,2279,2277,1,0,0,0,2279,2280,1,0,0,0,2280,277,1,0,0,0,2281,2279,1,0,0,0,2282,2284,3,280,140,0,2283,2282,1,0,0,0,2284,2285,1,0,0,0,2285,2283,1,0,0,0,2285,2286,1,0,0,0,2286,279,1,0,0,0,2287,2289,3,284,142,0,2288,2290,3,282,141,0,2289,2288,1,0,0,0,2289,2290,1,0,0,0,2290,281,1,0,0,0,2291,2293,5,20,0,0,2292,2294,5,28,0,0,2293,2292,1,0,0,0,2293,2294,1,0,0,0,2294,2320,1,0,0,0,2295,2297,5,17,0,0,2296,2298,5,28,0,0,2297,2296,1,0,0,0,2297,2298,1,0,0,0,2298,2320,1,0,0,0,2299,2301,5,28,0,0,2300,2302,5,28,0,0,2301,2300,1,0,0,0,2301,2302,1,0,0,0,2302,2320,1,0,0,0,2303,2305,5,33,0,0,2304,2306,3,854,427,0,2305,2304,1,0,0,0,2305,2306,1,0,0,0,2306,2307,1,0,0,0,2307,2309,5,25,0,0,2308,2310,3,854,427,0,2309,2308,1,0,0,0,2309,2310,1,0,0,0,2310,2311,1,0,0,0,2311,2313,5,34,0,0,2312,2314,5,28,0,0,2313,2312,1,0,0,0,2313,2314,1,0,0,0,2314,2320,1,0,0,0,2315,2316,5,33,0,0,2316,2317,3,854,427,0,2317,2318,5,34,0,0,2318,2320,1,0,0,0,2319,2291,1,0,0,0,2319,2295,1,0,0,0,2319,2299,1,0,0,0,2319,2303,1,0,0,0,2319,2315,1,0,0,0,2320,283,1,0,0,0,2321,2337,3,286,143,0,2322,2337,5,32,0,0,2323,2337,5,35,0,0,2324,2326,5,26,0,0,2325,2327,3,276,138,0,2326,2325,1,0,0,0,2326,2327,1,0,0,0,2327,2328,1,0,0,0,2328,2337,5,27,0,0,2329,2330,5,33,0,0,2330,2331,5,18,0,0,2331,2332,3,276,138,0,2332,2333,5,18,0,0,2333,2334,5,34,0,0,2334,2337,1,0,0,0,2335,2337,3,288,144,0,2336,2321,1,0,0,0,2336,2322,1,0,0,0,2336,2323,1,0,0,0,2336,2324,1,0,0,0,2336,2329,1,0,0,0,2336,2335,1,0,0,0,2337,285,1,0,0,0,2338,2339,3,312,156,0,2339,287,1,0,0,0,2340,2341,5,222,0,0,2341,2342,5,26,0,0,2342,2347,3,276,138,0,2343,2344,5,25,0,0,2344,2346,3,276,138,0,2345,2343,1,0,0,0,2346,2349,1,0,0,0,2347,2345,1,0,0,0,2347,2348,1,0,0,0,2348,2350,1,0,0,0,2349,2347,1,0,0,0,2350,2351,5,27,0,0,2351,289,1,0,0,0,2352,2353,5,275,0,0,2353,2354,3,292,146,0,2354,291,1,0,0,0,2355,2360,3,294,147,0,2356,2357,5,25,0,0,2357,2359,3,294,147,0,2358,2356,1,0,0,0,2359,2362,1,0,0,0,2360,2358,1,0,0,0,2360,2361,1,0,0,0,2361,293,1,0,0,0,2362,2360,1,0,0,0,2363,2364,3,296,148,0,2364,2365,5,2,0,0,2365,2366,5,26,0,0,2366,2367,3,298,149,0,2367,2368,5,27,0,0,2368,295,1,0,0,0,2369,2370,3,312,156,0,2370,297,1,0,0,0,2371,2376,3,300,150,0,2372,2373,5,25,0,0,2373,2375,3,300,150,0,2374,2372,1,0,0,0,2375,2378,1,0,0,0,2376,2374,1,0,0,0,2376,2377,1,0,0,0,2377,299,1,0,0,0,2378,2376,1,0,0,0,2379,2380,3,312,156,0,2380,301,1,0,0,0,2381,2386,3,304,152,0,2382,2383,5,25,0,0,2383,2385,3,304,152,0,2384,2382,1,0,0,0,2385,2388,1,0,0,0,2386,2384,1,0,0,0,2386,2387,1,0,0,0,2387,303,1,0,0,0,2388,2386,1,0,0,0,2389,2390,3,306,153,0,2390,2391,5,51,0,0,2391,2392,3,308,154,0,2392,305,1,0,0,0,2393,2394,3,312,156,0,2394,307,1,0,0,0,2395,2396,3,310,155,0,2396,309,1,0,0,0,2397,2398,3,14,7,0,2398,311,1,0,0,0,2399,2400,3,770,385,0,2400,313,1,0,0,0,2401,2402,5,211,0,0,2402,2403,5,68,0,0,2403,2404,3,230,115,0,2404,315,1,0,0,0,2405,2407,5,53,0,0,2406,2405,1,0,0,0,2406,2407,1,0,0,0,2407,2408,1,0,0,0,2408,2409,3,314,157,0,2409,317,1,0,0,0,2410,2412,5,148,0,0,2411,2413,5,80,0,0,2412,2411,1,0,0,0,2412,2413,1,0,0,0,2413,2414,1,0,0,0,2414,2415,5,68,0,0,2415,2416,3,252,126,0,2416,2419,3,320,160,0,2417,2418,5,315,0,0,2418,2420,3,790,395,0,2419,2417,1,0,0,0,2419,2420,1,0,0,0,2420,319,1,0,0,0,2421,2426,3,322,161,0,2422,2423,5,25,0,0,2423,2425,3,322,161,0,2424,2422,1,0,0,0,2425,2428,1,0,0,0,2426,2424,1,0,0,0,2426,2427,1,0,0,0,2427,321,1,0,0,0,2428,2426,1,0,0,0,2429,2435,3,324,162,0,2430,2435,3,328,164,0,2431,2435,3,330,165,0,2432,2435,3,332,166,0,2433,2435,3,334,167,0,2434,2429,1,0,0,0,2434,2430,1,0,0,0,2434,2431,1,0,0,0,2434,2432,1,0,0,0,2434,2433,1,0,0,0,2435,323,1,0,0,0,2436,2437,3,128,64,0,2437,325,1,0,0,0,2438,2443,3,324,162,0,2439,2440,5,25,0,0,2440,2442,3,324,162,0,2441,2439,1,0,0,0,2442,2445,1,0,0,0,2443,2441,1,0,0,0,2443,2444,1,0,0,0,2444,327,1,0,0,0,2445,2443,1,0,0,0,2446,2447,5,257,0,0,2447,2448,5,26,0,0,2448,2449,3,326,163,0,2449,2450,5,27,0,0,2450,329,1,0,0,0,2451,2452,5,89,0,0,2452,2453,5,26,0,0,2453,2454,3,326,163,0,2454,2455,5,27,0,0,2455,331,1,0,0,0,2456,2457,5,149,0,0,2457,2458,5,268,0,0,2458,2459,5,26,0,0,2459,2460,3,320,160,0,2460,2461,5,27,0,0,2461,333,1,0,0,0,2462,2463,5,153,0,0,2463,2464,5,26,0,0,2464,2465,3,14,7,0,2465,2466,5,25,0,0,2466,2467,3,14,7,0,2467,2468,5,25,0,0,2468,2469,3,14,7,0,2469,2470,5,25,0,0,2470,2471,3,14,7,0,2471,2472,5,27,0,0,2472,335,1,0,0,0,2473,2474,3,814,407,0,2474,2475,5,20,0,0,2475,2483,1,0,0,0,2476,2480,3,14,7,0,2477,2478,5,51,0,0,2478,2481,3,792,396,0,2479,2481,3,810,405,0,2480,2477,1,0,0,0,2480,2479,1,0,0,0,2480,2481,1,0,0,0,2481,2483,1,0,0,0,2482,2473,1,0,0,0,2482,2476,1,0,0,0,2483,337,1,0,0,0,2484,2486,5,49,0,0,2485,2484,1,0,0,0,2485,2486,1,0,0,0,2486,2487,1,0,0,0,2487,2498,3,344,172,0,2488,2490,3,358,179,0,2489,2491,5,49,0,0,2490,2489,1,0,0,0,2490,2491,1,0,0,0,2491,2492,1,0,0,0,2492,2494,3,344,172,0,2493,2495,3,360,180,0,2494,2493,1,0,0,0,2494,2495,1,0,0,0,2495,2497,1,0,0,0,2496,2488,1,0,0,0,2497,2500,1,0,0,0,2498,2496,1,0,0,0,2498,2499,1,0,0,0,2499,339,1,0,0,0,2500,2498,1,0,0,0,2501,2504,3,120,60,0,2502,2503,5,51,0,0,2503,2505,3,790,395,0,2504,2502,1,0,0,0,2504,2505,1,0,0,0,2505,341,1,0,0,0,2506,2515,3,340,170,0,2507,2508,5,26,0,0,2508,2510,3,130,65,0,2509,2511,5,25,0,0,2510,2509,1,0,0,0,2510,2511,1,0,0,0,2511,2512,1,0,0,0,2512,2513,5,27,0,0,2513,2515,1,0,0,0,2514,2506,1,0,0,0,2514,2507,1,0,0,0,2515,343,1,0,0,0,2516,2526,3,346,173,0,2517,2524,5,137,0,0,2518,2520,7,13,0,0,2519,2518,1,0,0,0,2519,2520,1,0,0,0,2520,2521,1,0,0,0,2521,2522,5,68,0,0,2522,2525,3,342,171,0,2523,2525,5,78,0,0,2524,2519,1,0,0,0,2524,2523,1,0,0,0,2525,2527,1,0,0,0,2526,2517,1,0,0,0,2526,2527,1,0,0,0,2527,345,1,0,0,0,2528,2530,3,348,174,0,2529,2531,3,256,128,0,2530,2529,1,0,0,0,2530,2531,1,0,0,0,2531,2540,1,0,0,0,2532,2533,5,51,0,0,2533,2536,3,790,395,0,2534,2536,3,810,405,0,2535,2532,1,0,0,0,2535,2534,1,0,0,0,2536,2538,1,0,0,0,2537,2539,3,114,57,0,2538,2537,1,0,0,0,2538,2539,1,0,0,0,2539,2541,1,0,0,0,2540,2535,1,0,0,0,2540,2541,1,0,0,0,2541,2544,1,0,0,0,2542,2545,3,350,175,0,2543,2545,3,352,176,0,2544,2542,1,0,0,0,2544,2543,1,0,0,0,2544,2545,1,0,0,0,2545,347,1,0,0,0,2546,2556,3,632,316,0,2547,2548,5,26,0,0,2548,2549,3,232,116,0,2549,2550,5,27,0,0,2550,2556,1,0,0,0,2551,2552,5,26,0,0,2552,2553,3,370,185,0,2553,2554,5,27,0,0,2554,2556,1,0,0,0,2555,2546,1,0,0,0,2555,2547,1,0,0,0,2555,2551,1,0,0,0,2556,349,1,0,0,0,2557,2558,5,260,0,0,2558,2559,3,14,7,0,2559,351,1,0,0,0,2560,2561,5,282,0,0,2561,2562,3,354,177,0,2562,2563,5,26,0,0,2563,2564,3,14,7,0,2564,2566,5,27,0,0,2565,2567,3,356,178,0,2566,2565,1,0,0,0,2566,2567,1,0,0,0,2567,353,1,0,0,0,2568,2569,7,14,0,0,2569,355,1,0,0,0,2570,2571,5,241,0,0,2571,2572,5,26,0,0,2572,2573,3,14,7,0,2573,2574,5,27,0,0,2574,357,1,0,0,0,2575,2600,5,25,0,0,2576,2578,5,194,0,0,2577,2576,1,0,0,0,2577,2578,1,0,0,0,2578,2596,1,0,0,0,2579,2581,5,179,0,0,2580,2582,7,15,0,0,2581,2580,1,0,0,0,2581,2582,1,0,0,0,2582,2590,1,0,0,0,2583,2585,5,254,0,0,2584,2586,7,15,0,0,2585,2584,1,0,0,0,2585,2586,1,0,0,0,2586,2590,1,0,0,0,2587,2590,5,126,0,0,2588,2590,5,143,0,0,2589,2579,1,0,0,0,2589,2583,1,0,0,0,2589,2587,1,0,0,0,2589,2588,1,0,0,0,2589,2590,1,0,0,0,2590,2592,1,0,0,0,2591,2593,5,213,0,0,2592,2591,1,0,0,0,2592,2593,1,0,0,0,2593,2597,1,0,0,0,2594,2597,5,166,0,0,2595,2597,5,88,0,0,2596,2589,1,0,0,0,2596,2594,1,0,0,0,2596,2595,1,0,0,0,2597,2598,1,0,0,0,2598,2600,5,173,0,0,2599,2575,1,0,0,0,2599,2577,1,0,0,0,2600,359,1,0,0,0,2601,2602,5,205,0,0,2602,2606,3,14,7,0,2603,2604,5,306,0,0,2604,2606,3,118,59,0,2605,2601,1,0,0,0,2605,2603,1,0,0,0,2606,361,1,0,0,0,2607,2617,5,251,0,0,2608,2618,5,20,0,0,2609,2614,3,790,395,0,2610,2611,5,25,0,0,2611,2613,3,790,395,0,2612,2610,1,0,0,0,2613,2616,1,0,0,0,2614,2612,1,0,0,0,2614,2615,1,0,0,0,2615,2618,1,0,0,0,2616,2614,1,0,0,0,2617,2608,1,0,0,0,2617,2609,1,0,0,0,2618,363,1,0,0,0,2619,2632,5,167,0,0,2620,2621,5,167,0,0,2621,2622,5,210,0,0,2622,2632,5,40,0,0,2623,2624,5,167,0,0,2624,2625,5,210,0,0,2625,2632,5,252,0,0,2626,2627,5,167,0,0,2627,2628,5,210,0,0,2628,2632,5,155,0,0,2629,2632,5,303,0,0,2630,2632,5,242,0,0,2631,2619,1,0,0,0,2631,2620,1,0,0,0,2631,2623,1,0,0,0,2631,2626,1,0,0,0,2631,2629,1,0,0,0,2631,2630,1,0,0,0,2632,2633,1,0,0,0,2633,2634,5,170,0,0,2634,2635,3,648,324,0,2635,2637,3,368,184,0,2636,2638,3,362,181,0,2637,2636,1,0,0,0,2637,2638,1,0,0,0,2638,365,1,0,0,0,2639,2651,5,167,0,0,2640,2641,5,167,0,0,2641,2642,5,210,0,0,2642,2651,5,40,0,0,2643,2644,5,167,0,0,2644,2645,5,210,0,0,2645,2651,5,252,0,0,2646,2647,5,167,0,0,2647,2648,5,210,0,0,2648,2651,5,155,0,0,2649,2651,5,242,0,0,2650,2639,1,0,0,0,2650,2640,1,0,0,0,2650,2643,1,0,0,0,2650,2646,1,0,0,0,2650,2649,1,0,0,0,2651,2652,1,0,0,0,2652,2653,5,170,0,0,2653,2654,3,648,324,0,2654,2655,3,368,184,0,2655,367,1,0,0,0,2656,2658,3,114,57,0,2657,2656,1,0,0,0,2657,2658,1,0,0,0,2658,2659,1,0,0,0,2659,2663,3,372,186,0,2660,2661,5,98,0,0,2661,2663,5,308,0,0,2662,2657,1,0,0,0,2662,2660,1,0,0,0,2663,369,1,0,0,0,2664,2665,5,308,0,0,2665,2666,3,374,187,0,2666,371,1,0,0,0,2667,2670,3,370,185,0,2668,2670,3,232,116,0,2669,2667,1,0,0,0,2669,2668,1,0,0,0,2670,373,1,0,0,0,2671,2676,3,376,188,0,2672,2673,5,25,0,0,2673,2675,3,376,188,0,2674,2672,1,0,0,0,2675,2678,1,0,0,0,2676,2674,1,0,0,0,2676,2677,1,0,0,0,2677,375,1,0,0,0,2678,2676,1,0,0,0,2679,2680,5,26,0,0,2680,2681,3,112,56,0,2681,2682,5,27,0,0,2682,377,1,0,0,0,2683,2686,3,112,56,0,2684,2686,3,232,116,0,2685,2683,1,0,0,0,2685,2684,1,0,0,0,2686,379,1,0,0,0,2687,2690,5,87,0,0,2688,2689,5,210,0,0,2689,2691,5,242,0,0,2690,2688,1,0,0,0,2690,2691,1,0,0,0,2691,2692,1,0,0,0,2692,2693,5,131,0,0,2693,2694,5,94,0,0,2694,2698,5,271,0,0,2695,2696,5,154,0,0,2696,2697,5,197,0,0,2697,2699,5,128,0,0,2698,2695,1,0,0,0,2698,2699,1,0,0,0,2699,2700,1,0,0,0,2700,2701,3,642,321,0,2701,2702,3,456,228,0,2702,381,1,0,0,0,2703,2704,5,45,0,0,2704,2705,5,131,0,0,2705,2706,5,94,0,0,2706,2707,5,271,0,0,2707,2708,3,642,321,0,2708,2713,3,384,192,0,2709,2710,5,25,0,0,2710,2712,3,384,192,0,2711,2709,1,0,0,0,2712,2715,1,0,0,0,2713,2711,1,0,0,0,2713,2714,1,0,0,0,2714,383,1,0,0,0,2715,2713,1,0,0,0,2716,2720,3,488,244,0,2717,2720,3,490,245,0,2718,2720,3,492,246,0,2719,2716,1,0,0,0,2719,2717,1,0,0,0,2719,2718,1,0,0,0,2720,385,1,0,0,0,2721,2722,5,112,0,0,2722,2723,5,131,0,0,2723,2724,5,94,0,0,2724,2727,5,271,0,0,2725,2726,5,154,0,0,2726,2728,5,128,0,0,2727,2725,1,0,0,0,2727,2728,1,0,0,0,2728,2729,1,0,0,0,2729,2730,3,642,321,0,2730,387,1,0,0,0,2731,2732,5,87,0,0,2732,2736,5,310,0,0,2733,2734,5,154,0,0,2734,2735,5,197,0,0,2735,2737,5,128,0,0,2736,2733,1,0,0,0,2736,2737,1,0,0,0,2737,2738,1,0,0,0,2738,2740,3,642,321,0,2739,2741,3,396,198,0,2740,2739,1,0,0,0,2740,2741,1,0,0,0,2741,2742,1,0,0,0,2742,2743,5,51,0,0,2743,2744,3,232,116,0,2744,389,1,0,0,0,2745,2746,5,112,0,0,2746,2749,5,310,0,0,2747,2748,5,154,0,0,2748,2750,5,128,0,0,2749,2747,1,0,0,0,2749,2750,1,0,0,0,2750,2751,1,0,0,0,2751,2752,3,642,321,0,2752,391,1,0,0,0,2753,2754,5,303,0,0,2754,2755,5,201,0,0,2755,2756,3,642,321,0,2756,2757,5,26,0,0,2757,2758,5,295,0,0,2758,2759,3,416,208,0,2759,2761,5,27,0,0,2760,2762,3,396,198,0,2761,2760,1,0,0,0,2761,2762,1,0,0,0,2762,393,1,0,0,0,2763,2764,5,87,0,0,2764,2768,5,201,0,0,2765,2766,5,154,0,0,2766,2767,5,197,0,0,2767,2769,5,128,0,0,2768,2765,1,0,0,0,2768,2769,1,0,0,0,2769,2770,1,0,0,0,2770,2771,3,642,321,0,2771,2772,5,26,0,0,2772,2773,5,295,0,0,2773,2774,3,416,208,0,2774,2776,5,27,0,0,2775,2777,3,396,198,0,2776,2775,1,0,0,0,2776,2777,1,0,0,0,2777,395,1,0,0,0,2778,2779,5,315,0,0,2779,2780,3,414,207,0,2780,397,1,0,0,0,2781,2782,5,45,0,0,2782,2783,5,201,0,0,2783,2784,3,642,321,0,2784,2785,5,26,0,0,2785,2786,5,295,0,0,2786,2787,3,416,208,0,2787,2788,5,27,0,0,2788,2789,3,400,200,0,2789,399,1,0,0,0,2790,2791,5,267,0,0,2791,2792,3,414,207,0,2792,401,1,0,0,0,2793,2794,5,112,0,0,2794,2797,5,201,0,0,2795,2796,5,154,0,0,2796,2798,5,128,0,0,2797,2795,1,0,0,0,2797,2798,1,0,0,0,2798,2799,1,0,0,0,2799,2800,3,642,321,0,2800,2801,5,26,0,0,2801,2802,5,295,0,0,2802,2803,3,416,208,0,2803,2805,5,27,0,0,2804,2806,3,404,202,0,2805,2804,1,0,0,0,2805,2806,1,0,0,0,2806,403,1,0,0,0,2807,2808,5,315,0,0,2808,2809,3,414,207,0,2809,405,1,0,0,0,2810,2815,3,818,409,0,2811,2815,3,144,72,0,2812,2815,5,319,0,0,2813,2815,3,850,425,0,2814,2810,1,0,0,0,2814,2811,1,0,0,0,2814,2812,1,0,0,0,2814,2813,1,0,0,0,2815,407,1,0,0,0,2816,2817,3,792,396,0,2817,2818,5,2,0,0,2818,2819,3,406,203,0,2819,409,1,0,0,0,2820,2821,3,792,396,0,2821,411,1,0,0,0,2822,2825,3,408,204,0,2823,2825,3,410,205,0,2824,2822,1,0,0,0,2824,2823,1,0,0,0,2825,413,1,0,0,0,2826,2839,3,412,206,0,2827,2828,5,26,0,0,2828,2833,3,412,206,0,2829,2830,5,25,0,0,2830,2832,3,412,206,0,2831,2829,1,0,0,0,2832,2835,1,0,0,0,2833,2831,1,0,0,0,2833,2834,1,0,0,0,2834,2836,1,0,0,0,2835,2833,1,0,0,0,2836,2837,5,27,0,0,2837,2839,1,0,0,0,2838,2826,1,0,0,0,2838,2827,1,0,0,0,2839,415,1,0,0,0,2840,2841,3,792,396,0,2841,417,1,0,0,0,2842,2845,5,87,0,0,2843,2844,5,210,0,0,2844,2846,5,242,0,0,2845,2843,1,0,0,0,2845,2846,1,0,0,0,2846,2855,1,0,0,0,2847,2856,5,280,0,0,2848,2856,5,283,0,0,2849,2850,5,131,0,0,2850,2856,5,280,0,0,2851,2852,5,285,0,0,2852,2856,5,280,0,0,2853,2854,5,286,0,0,2854,2856,5,280,0,0,2855,2847,1,0,0,0,2855,2848,1,0,0,0,2855,2849,1,0,0,0,2855,2851,1,0,0,0,2855,2853,1,0,0,0,2856,2860,1,0,0,0,2857,2858,5,154,0,0,2858,2859,5,197,0,0,2859,2861,5,128,0,0,2860,2857,1,0,0,0,2860,2861,1,0,0,0,2861,2862,1,0,0,0,2862,2863,3,646,323,0,2863,2864,5,26,0,0,2864,2869,3,420,210,0,2865,2866,5,25,0,0,2866,2868,3,420,210,0,2867,2865,1,0,0,0,2868,2871,1,0,0,0,2869,2867,1,0,0,0,2869,2870,1,0,0,0,2870,2873,1,0,0,0,2871,2869,1,0,0,0,2872,2874,5,25,0,0,2873,2872,1,0,0,0,2873,2874,1,0,0,0,2874,2875,1,0,0,0,2875,2877,5,27,0,0,2876,2878,3,452,226,0,2877,2876,1,0,0,0,2877,2878,1,0,0,0,2878,2880,1,0,0,0,2879,2881,3,454,227,0,2880,2879,1,0,0,0,2880,2881,1,0,0,0,2881,2883,1,0,0,0,2882,2884,3,456,228,0,2883,2882,1,0,0,0,2883,2884,1,0,0,0,2884,2886,1,0,0,0,2885,2887,3,458,229,0,2886,2885,1,0,0,0,2886,2887,1,0,0,0,2887,2889,1,0,0,0,2888,2890,3,462,231,0,2889,2888,1,0,0,0,2889,2890,1,0,0,0,2890,419,1,0,0,0,2891,2898,3,510,255,0,2892,2898,3,518,259,0,2893,2898,3,520,260,0,2894,2898,3,550,275,0,2895,2898,3,536,268,0,2896,2898,3,794,397,0,2897,2891,1,0,0,0,2897,2892,1,0,0,0,2897,2893,1,0,0,0,2897,2894,1,0,0,0,2897,2895,1,0,0,0,2897,2896,1,0,0,0,2898,421,1,0,0,0,2899,2900,5,87,0,0,2900,2902,3,442,221,0,2901,2903,3,428,214,0,2902,2901,1,0,0,0,2902,2903,1,0,0,0,2903,2904,1,0,0,0,2904,2905,5,315,0,0,2905,2906,5,26,0,0,2906,2907,3,444,222,0,2907,2908,5,27,0,0,2908,423,1,0,0,0,2909,2910,5,45,0,0,2910,2913,3,442,221,0,2911,2914,3,434,217,0,2912,2914,3,438,219,0,2913,2911,1,0,0,0,2913,2912,1,0,0,0,2914,425,1,0,0,0,2915,2916,5,112,0,0,2916,2917,3,442,221,0,2917,427,1,0,0,0,2918,2921,5,95,0,0,2919,2921,3,430,215,0,2920,2918,1,0,0,0,2920,2919,1,0,0,0,2921,429,1,0,0,0,2922,2923,5,26,0,0,2923,2924,3,432,216,0,2924,2925,5,27,0,0,2925,431,1,0,0,0,2926,2927,5,280,0,0,2927,2933,3,802,401,0,2928,2929,5,25,0,0,2929,2930,5,280,0,0,2930,2932,3,802,401,0,2931,2928,1,0,0,0,2932,2935,1,0,0,0,2933,2931,1,0,0,0,2933,2934,1,0,0,0,2934,433,1,0,0,0,2935,2933,1,0,0,0,2936,2941,3,436,218,0,2937,2938,5,25,0,0,2938,2940,3,436,218,0,2939,2937,1,0,0,0,2940,2943,1,0,0,0,2941,2939,1,0,0,0,2941,2942,1,0,0,0,2942,435,1,0,0,0,2943,2941,1,0,0,0,2944,2947,3,490,245,0,2945,2947,3,492,246,0,2946,2944,1,0,0,0,2946,2945,1,0,0,0,2947,437,1,0,0,0,2948,2953,3,440,220,0,2949,2950,5,25,0,0,2950,2952,3,440,220,0,2951,2949,1,0,0,0,2952,2955,1,0,0,0,2953,2951,1,0,0,0,2953,2954,1,0,0,0,2954,439,1,0,0,0,2955,2953,1,0,0,0,2956,2957,5,42,0,0,2957,2967,5,95,0,0,2958,2959,5,112,0,0,2959,2967,5,95,0,0,2960,2961,5,42,0,0,2961,2962,5,280,0,0,2962,2967,3,802,401,0,2963,2964,5,112,0,0,2964,2965,5,280,0,0,2965,2967,3,802,401,0,2966,2956,1,0,0,0,2966,2958,1,0,0,0,2966,2960,1,0,0,0,2966,2963,1,0,0,0,2967,441,1,0,0,0,2968,2969,5,61,0,0,2969,2970,5,62,0,0,2970,2971,3,642,321,0,2971,443,1,0,0,0,2972,2977,3,446,223,0,2973,2974,5,25,0,0,2974,2976,3,446,223,0,2975,2973,1,0,0,0,2976,2979,1,0,0,0,2977,2975,1,0,0,0,2977,2978,1,0,0,0,2978,445,1,0,0,0,2979,2977,1,0,0,0,2980,2981,3,790,395,0,2981,2982,5,2,0,0,2982,2983,3,548,274,0,2983,447,1,0,0,0,2984,2985,5,61,0,0,2985,2987,3,642,321,0,2986,2988,5,160,0,0,2987,2986,1,0,0,0,2987,2988,1,0,0,0,2988,449,1,0,0,0,2989,2990,5,247,0,0,2990,2993,3,642,321,0,2991,2992,5,56,0,0,2992,2994,5,319,0,0,2993,2991,1,0,0,0,2993,2994,1,0,0,0,2994,451,1,0,0,0,2995,2996,5,163,0,0,2996,2997,5,26,0,0,2997,3002,3,644,322,0,2998,2999,5,25,0,0,2999,3001,3,644,322,0,3e3,2998,1,0,0,0,3001,3004,1,0,0,0,3002,3e3,1,0,0,0,3002,3003,1,0,0,0,3003,3005,1,0,0,0,3004,3002,1,0,0,0,3005,3006,5,27,0,0,3006,453,1,0,0,0,3007,3008,5,216,0,0,3008,3009,5,68,0,0,3009,3010,5,151,0,0,3010,3011,3,114,57,0,3011,455,1,0,0,0,3012,3013,5,315,0,0,3013,3014,5,26,0,0,3014,3019,3,460,230,0,3015,3016,5,25,0,0,3016,3018,3,460,230,0,3017,3015,1,0,0,0,3018,3021,1,0,0,0,3019,3017,1,0,0,0,3019,3020,1,0,0,0,3020,3022,1,0,0,0,3021,3019,1,0,0,0,3022,3023,5,27,0,0,3023,457,1,0,0,0,3024,3025,5,283,0,0,3025,3026,3,644,322,0,3026,459,1,0,0,0,3027,3028,3,790,395,0,3028,3029,5,2,0,0,3029,3030,3,548,274,0,3030,461,1,0,0,0,3031,3032,5,51,0,0,3032,3033,3,372,186,0,3033,463,1,0,0,0,3034,3035,5,45,0,0,3035,3036,5,280,0,0,3036,3037,3,646,323,0,3037,3042,3,466,233,0,3038,3039,5,25,0,0,3039,3041,3,466,233,0,3040,3038,1,0,0,0,3041,3044,1,0,0,0,3042,3040,1,0,0,0,3042,3043,1,0,0,0,3043,465,1,0,0,0,3044,3042,1,0,0,0,3045,3063,3,476,238,0,3046,3063,3,478,239,0,3047,3063,3,480,240,0,3048,3063,3,484,242,0,3049,3063,3,486,243,0,3050,3063,3,488,244,0,3051,3063,3,490,245,0,3052,3063,3,492,246,0,3053,3063,3,494,247,0,3054,3063,3,496,248,0,3055,3063,3,498,249,0,3056,3063,3,502,251,0,3057,3063,3,504,252,0,3058,3063,3,506,253,0,3059,3063,3,500,250,0,3060,3063,3,508,254,0,3061,3063,3,482,241,0,3062,3045,1,0,0,0,3062,3046,1,0,0,0,3062,3047,1,0,0,0,3062,3048,1,0,0,0,3062,3049,1,0,0,0,3062,3050,1,0,0,0,3062,3051,1,0,0,0,3062,3052,1,0,0,0,3062,3053,1,0,0,0,3062,3054,1,0,0,0,3062,3055,1,0,0,0,3062,3056,1,0,0,0,3062,3057,1,0,0,0,3062,3058,1,0,0,0,3062,3059,1,0,0,0,3062,3060,1,0,0,0,3062,3061,1,0,0,0,3063,467,1,0,0,0,3064,3065,5,45,0,0,3065,3066,5,131,0,0,3066,3067,5,280,0,0,3067,3068,3,646,323,0,3068,3073,3,470,235,0,3069,3070,5,25,0,0,3070,3072,3,470,235,0,3071,3069,1,0,0,0,3072,3075,1,0,0,0,3073,3071,1,0,0,0,3073,3074,1,0,0,0,3074,469,1,0,0,0,3075,3073,1,0,0,0,3076,3082,3,476,238,0,3077,3082,3,478,239,0,3078,3082,3,488,244,0,3079,3082,3,490,245,0,3080,3082,3,492,246,0,3081,3076,1,0,0,0,3081,3077,1,0,0,0,3081,3078,1,0,0,0,3081,3079,1,0,0,0,3081,3080,1,0,0,0,3082,471,1,0,0,0,3083,3084,5,45,0,0,3084,3085,5,283,0,0,3085,3086,3,642,321,0,3086,3091,3,474,237,0,3087,3088,5,25,0,0,3088,3090,3,474,237,0,3089,3087,1,0,0,0,3090,3093,1,0,0,0,3091,3089,1,0,0,0,3091,3092,1,0,0,0,3092,473,1,0,0,0,3093,3091,1,0,0,0,3094,3097,3,476,238,0,3095,3097,3,478,239,0,3096,3094,1,0,0,0,3096,3095,1,0,0,0,3097,475,1,0,0,0,3098,3100,5,42,0,0,3099,3101,5,77,0,0,3100,3099,1,0,0,0,3100,3101,1,0,0,0,3101,3102,1,0,0,0,3102,3103,3,510,255,0,3103,477,1,0,0,0,3104,3106,5,112,0,0,3105,3107,5,77,0,0,3106,3105,1,0,0,0,3106,3107,1,0,0,0,3107,3108,1,0,0,0,3108,3109,3,790,395,0,3109,479,1,0,0,0,3110,3111,5,45,0,0,3111,3112,5,77,0,0,3112,3113,3,790,395,0,3113,3114,5,267,0,0,3114,3115,3,512,256,0,3115,481,1,0,0,0,3116,3117,5,45,0,0,3117,3118,5,77,0,0,3118,3119,3,790,395,0,3119,3120,5,112,0,0,3120,3121,5,197,0,0,3121,3122,5,199,0,0,3122,483,1,0,0,0,3123,3124,5,42,0,0,3124,3125,3,550,275,0,3125,485,1,0,0,0,3126,3127,5,45,0,0,3127,3128,5,134,0,0,3128,3129,3,790,395,0,3129,3130,5,267,0,0,3130,3131,3,790,395,0,3131,3132,3,556,278,0,3132,487,1,0,0,0,3133,3134,5,267,0,0,3134,3135,3,790,395,0,3135,3136,3,548,274,0,3136,489,1,0,0,0,3137,3138,5,267,0,0,3138,3139,5,26,0,0,3139,3144,3,546,273,0,3140,3141,5,25,0,0,3141,3143,3,546,273,0,3142,3140,1,0,0,0,3143,3146,1,0,0,0,3144,3142,1,0,0,0,3144,3145,1,0,0,0,3145,3147,1,0,0,0,3146,3144,1,0,0,0,3147,3148,5,27,0,0,3148,491,1,0,0,0,3149,3150,5,244,0,0,3150,3151,5,26,0,0,3151,3156,3,790,395,0,3152,3153,5,25,0,0,3153,3155,3,790,395,0,3154,3152,1,0,0,0,3155,3158,1,0,0,0,3156,3154,1,0,0,0,3156,3157,1,0,0,0,3157,3159,1,0,0,0,3158,3156,1,0,0,0,3159,3160,5,27,0,0,3160,493,1,0,0,0,3161,3162,5,42,0,0,3162,3163,3,520,260,0,3163,495,1,0,0,0,3164,3165,5,112,0,0,3165,3166,5,161,0,0,3166,3167,3,790,395,0,3167,497,1,0,0,0,3168,3169,5,240,0,0,3169,3170,5,289,0,0,3170,3171,3,802,401,0,3171,499,1,0,0,0,3172,3173,5,240,0,0,3173,3174,5,161,0,0,3174,3175,3,790,395,0,3175,3176,5,289,0,0,3176,3177,3,790,395,0,3177,501,1,0,0,0,3178,3179,5,42,0,0,3179,3180,3,536,268,0,3180,503,1,0,0,0,3181,3182,5,45,0,0,3182,3183,5,73,0,0,3183,3184,3,790,395,0,3184,3185,3,544,272,0,3185,505,1,0,0,0,3186,3187,5,112,0,0,3187,3188,5,73,0,0,3188,3189,3,790,395,0,3189,507,1,0,0,0,3190,3191,5,45,0,0,3191,3192,5,161,0,0,3192,3193,3,790,395,0,3193,3194,3,562,281,0,3194,509,1,0,0,0,3195,3196,3,794,397,0,3196,3198,3,204,102,0,3197,3199,3,512,256,0,3198,3197,1,0,0,0,3198,3199,1,0,0,0,3199,3200,1,0,0,0,3200,3201,3,514,257,0,3201,511,1,0,0,0,3202,3203,5,134,0,0,3203,3204,3,790,395,0,3204,513,1,0,0,0,3205,3207,5,197,0,0,3206,3205,1,0,0,0,3206,3207,1,0,0,0,3207,3208,1,0,0,0,3208,3210,5,199,0,0,3209,3206,1,0,0,0,3209,3210,1,0,0,0,3210,3213,1,0,0,0,3211,3212,5,98,0,0,3212,3214,3,14,7,0,3213,3211,1,0,0,0,3213,3214,1,0,0,0,3214,515,1,0,0,0,3215,3217,3,790,395,0,3216,3218,7,9,0,0,3217,3216,1,0,0,0,3217,3218,1,0,0,0,3218,517,1,0,0,0,3219,3220,5,228,0,0,3220,3221,5,177,0,0,3221,3222,5,26,0,0,3222,3227,3,790,395,0,3223,3224,5,25,0,0,3224,3226,3,790,395,0,3225,3223,1,0,0,0,3226,3229,1,0,0,0,3227,3225,1,0,0,0,3227,3228,1,0,0,0,3228,3230,1,0,0,0,3229,3227,1,0,0,0,3230,3231,5,27,0,0,3231,3259,1,0,0,0,3232,3233,5,216,0,0,3233,3234,5,68,0,0,3234,3235,5,26,0,0,3235,3240,3,790,395,0,3236,3237,5,25,0,0,3237,3239,3,790,395,0,3238,3236,1,0,0,0,3239,3242,1,0,0,0,3240,3238,1,0,0,0,3240,3241,1,0,0,0,3241,3243,1,0,0,0,3242,3240,1,0,0,0,3243,3244,5,27,0,0,3244,3259,1,0,0,0,3245,3246,5,211,0,0,3246,3247,5,68,0,0,3247,3248,5,26,0,0,3248,3253,3,516,258,0,3249,3250,5,25,0,0,3250,3252,3,516,258,0,3251,3249,1,0,0,0,3252,3255,1,0,0,0,3253,3251,1,0,0,0,3253,3254,1,0,0,0,3254,3256,1,0,0,0,3255,3253,1,0,0,0,3256,3257,5,27,0,0,3257,3259,1,0,0,0,3258,3219,1,0,0,0,3258,3232,1,0,0,0,3258,3245,1,0,0,0,3259,519,1,0,0,0,3260,3261,5,161,0,0,3261,3262,3,790,395,0,3262,3263,3,522,261,0,3263,3264,5,205,0,0,3264,3265,5,26,0,0,3265,3270,3,794,397,0,3266,3267,5,25,0,0,3267,3269,3,794,397,0,3268,3266,1,0,0,0,3269,3272,1,0,0,0,3270,3268,1,0,0,0,3270,3271,1,0,0,0,3271,3273,1,0,0,0,3272,3270,1,0,0,0,3273,3286,5,27,0,0,3274,3275,5,86,0,0,3275,3276,5,26,0,0,3276,3281,3,794,397,0,3277,3278,5,25,0,0,3278,3280,3,794,397,0,3279,3277,1,0,0,0,3280,3283,1,0,0,0,3281,3279,1,0,0,0,3281,3282,1,0,0,0,3282,3284,1,0,0,0,3283,3281,1,0,0,0,3284,3285,5,27,0,0,3285,3287,1,0,0,0,3286,3274,1,0,0,0,3286,3287,1,0,0,0,3287,3289,1,0,0,0,3288,3290,3,530,265,0,3289,3288,1,0,0,0,3289,3290,1,0,0,0,3290,521,1,0,0,0,3291,3294,3,524,262,0,3292,3294,3,526,263,0,3293,3291,1,0,0,0,3293,3292,1,0,0,0,3294,3297,1,0,0,0,3295,3296,5,306,0,0,3296,3298,3,528,264,0,3297,3295,1,0,0,0,3297,3298,1,0,0,0,3298,523,1,0,0,0,3299,3301,5,146,0,0,3300,3302,5,299,0,0,3301,3300,1,0,0,0,3301,3302,1,0,0,0,3302,3304,1,0,0,0,3303,3305,7,16,0,0,3304,3303,1,0,0,0,3304,3305,1,0,0,0,3305,525,1,0,0,0,3306,3307,5,184,0,0,3307,527,1,0,0,0,3308,3309,3,790,395,0,3309,529,1,0,0,0,3310,3311,5,315,0,0,3311,3312,5,26,0,0,3312,3317,3,532,266,0,3313,3314,5,25,0,0,3314,3316,3,532,266,0,3315,3313,1,0,0,0,3316,3319,1,0,0,0,3317,3315,1,0,0,0,3317,3318,1,0,0,0,3318,3321,1,0,0,0,3319,3317,1,0,0,0,3320,3322,5,25,0,0,3321,3320,1,0,0,0,3321,3322,1,0,0,0,3322,3323,1,0,0,0,3323,3324,5,27,0,0,3324,531,1,0,0,0,3325,3326,3,790,395,0,3326,3327,5,2,0,0,3327,3328,3,534,267,0,3328,533,1,0,0,0,3329,3334,3,818,409,0,3330,3334,5,319,0,0,3331,3334,3,854,427,0,3332,3334,3,850,425,0,3333,3329,1,0,0,0,3333,3330,1,0,0,0,3333,3331,1,0,0,0,3333,3332,1,0,0,0,3334,535,1,0,0,0,3335,3336,5,73,0,0,3336,3337,3,790,395,0,3337,3338,5,315,0,0,3338,3339,5,26,0,0,3339,3340,3,538,269,0,3340,3341,5,27,0,0,3341,537,1,0,0,0,3342,3347,3,540,270,0,3343,3344,5,25,0,0,3344,3346,3,540,270,0,3345,3343,1,0,0,0,3346,3349,1,0,0,0,3347,3345,1,0,0,0,3347,3348,1,0,0,0,3348,539,1,0,0,0,3349,3347,1,0,0,0,3350,3351,3,790,395,0,3351,3352,5,2,0,0,3352,3353,3,542,271,0,3353,541,1,0,0,0,3354,3355,3,14,7,0,3355,543,1,0,0,0,3356,3363,5,108,0,0,3357,3358,5,267,0,0,3358,3359,5,26,0,0,3359,3360,3,538,269,0,3360,3361,5,27,0,0,3361,3363,1,0,0,0,3362,3356,1,0,0,0,3362,3357,1,0,0,0,3363,545,1,0,0,0,3364,3365,3,790,395,0,3365,3366,5,2,0,0,3366,3367,3,548,274,0,3367,547,1,0,0,0,3368,3381,3,772,386,0,3369,3381,5,319,0,0,3370,3381,3,854,427,0,3371,3381,3,558,279,0,3372,3373,3,14,7,0,3373,3374,5,205,0,0,3374,3377,3,790,395,0,3375,3376,5,51,0,0,3376,3378,7,17,0,0,3377,3375,1,0,0,0,3377,3378,1,0,0,0,3378,3381,1,0,0,0,3379,3381,3,850,425,0,3380,3368,1,0,0,0,3380,3369,1,0,0,0,3380,3370,1,0,0,0,3380,3371,1,0,0,0,3380,3372,1,0,0,0,3380,3379,1,0,0,0,3381,549,1,0,0,0,3382,3383,5,134,0,0,3383,3384,3,790,395,0,3384,3385,3,552,276,0,3385,551,1,0,0,0,3386,3395,5,26,0,0,3387,3392,3,554,277,0,3388,3389,5,25,0,0,3389,3391,3,554,277,0,3390,3388,1,0,0,0,3391,3394,1,0,0,0,3392,3390,1,0,0,0,3392,3393,1,0,0,0,3393,3396,1,0,0,0,3394,3392,1,0,0,0,3395,3387,1,0,0,0,3395,3396,1,0,0,0,3396,3397,1,0,0,0,3397,3398,5,27,0,0,3398,553,1,0,0,0,3399,3400,3,790,395,0,3400,3401,5,2,0,0,3401,3402,3,556,278,0,3402,555,1,0,0,0,3403,3406,5,319,0,0,3404,3406,3,854,427,0,3405,3403,1,0,0,0,3405,3404,1,0,0,0,3406,557,1,0,0,0,3407,3408,5,26,0,0,3408,3413,3,560,280,0,3409,3410,5,25,0,0,3410,3412,3,560,280,0,3411,3409,1,0,0,0,3412,3415,1,0,0,0,3413,3411,1,0,0,0,3413,3414,1,0,0,0,3414,3416,1,0,0,0,3415,3413,1,0,0,0,3416,3417,5,27,0,0,3417,3420,1,0,0,0,3418,3420,3,560,280,0,3419,3407,1,0,0,0,3419,3418,1,0,0,0,3420,559,1,0,0,0,3421,3422,5,26,0,0,3422,3427,3,142,71,0,3423,3424,5,25,0,0,3424,3426,3,142,71,0,3425,3423,1,0,0,0,3426,3429,1,0,0,0,3427,3425,1,0,0,0,3427,3428,1,0,0,0,3428,3430,1,0,0,0,3429,3427,1,0,0,0,3430,3431,5,27,0,0,3431,561,1,0,0,0,3432,3436,3,488,244,0,3433,3436,3,490,245,0,3434,3436,3,492,246,0,3435,3432,1,0,0,0,3435,3433,1,0,0,0,3435,3434,1,0,0,0,3436,563,1,0,0,0,3437,3442,5,112,0,0,3438,3443,5,280,0,0,3439,3443,5,283,0,0,3440,3441,5,131,0,0,3441,3443,5,280,0,0,3442,3438,1,0,0,0,3442,3439,1,0,0,0,3442,3440,1,0,0,0,3443,3446,1,0,0,0,3444,3445,5,154,0,0,3445,3447,5,128,0,0,3446,3444,1,0,0,0,3446,3447,1,0,0,0,3447,3448,1,0,0,0,3448,3449,3,646,323,0,3449,565,1,0,0,0,3450,3451,5,87,0,0,3451,3452,5,305,0,0,3452,3454,3,576,288,0,3453,3455,3,578,289,0,3454,3453,1,0,0,0,3454,3455,1,0,0,0,3455,567,1,0,0,0,3456,3457,5,45,0,0,3457,3458,5,305,0,0,3458,3466,3,576,288,0,3459,3461,5,315,0,0,3460,3459,1,0,0,0,3460,3461,1,0,0,0,3461,3462,1,0,0,0,3462,3467,3,578,289,0,3463,3464,5,240,0,0,3464,3465,5,289,0,0,3465,3467,3,576,288,0,3466,3460,1,0,0,0,3466,3463,1,0,0,0,3467,569,1,0,0,0,3468,3469,5,87,0,0,3469,3470,5,148,0,0,3470,3484,3,576,288,0,3471,3472,5,315,0,0,3472,3473,5,305,0,0,3473,3478,3,576,288,0,3474,3475,5,25,0,0,3475,3477,3,576,288,0,3476,3474,1,0,0,0,3477,3480,1,0,0,0,3478,3476,1,0,0,0,3478,3479,1,0,0,0,3479,3482,1,0,0,0,3480,3478,1,0,0,0,3481,3483,5,25,0,0,3482,3481,1,0,0,0,3482,3483,1,0,0,0,3483,3485,1,0,0,0,3484,3471,1,0,0,0,3484,3485,1,0,0,0,3485,571,1,0,0,0,3486,3487,5,45,0,0,3487,3488,5,148,0,0,3488,3505,3,576,288,0,3489,3490,7,18,0,0,3490,3491,5,305,0,0,3491,3496,3,576,288,0,3492,3493,5,25,0,0,3493,3495,3,576,288,0,3494,3492,1,0,0,0,3495,3498,1,0,0,0,3496,3494,1,0,0,0,3496,3497,1,0,0,0,3497,3500,1,0,0,0,3498,3496,1,0,0,0,3499,3501,5,25,0,0,3500,3499,1,0,0,0,3500,3501,1,0,0,0,3501,3506,1,0,0,0,3502,3503,5,240,0,0,3503,3504,5,289,0,0,3504,3506,3,576,288,0,3505,3489,1,0,0,0,3505,3502,1,0,0,0,3506,573,1,0,0,0,3507,3508,5,112,0,0,3508,3511,7,19,0,0,3509,3510,5,154,0,0,3510,3512,5,128,0,0,3511,3509,1,0,0,0,3511,3512,1,0,0,0,3512,3513,1,0,0,0,3513,3518,3,576,288,0,3514,3515,5,25,0,0,3515,3517,3,576,288,0,3516,3514,1,0,0,0,3517,3520,1,0,0,0,3518,3516,1,0,0,0,3518,3519,1,0,0,0,3519,3522,1,0,0,0,3520,3518,1,0,0,0,3521,3523,5,25,0,0,3522,3521,1,0,0,0,3522,3523,1,0,0,0,3523,575,1,0,0,0,3524,3527,3,792,396,0,3525,3527,3,144,72,0,3526,3524,1,0,0,0,3526,3525,1,0,0,0,3527,577,1,0,0,0,3528,3530,5,117,0,0,3529,3528,1,0,0,0,3529,3530,1,0,0,0,3530,3531,1,0,0,0,3531,3532,5,218,0,0,3532,3533,3,14,7,0,3533,579,1,0,0,0,3534,3535,5,147,0,0,3535,3536,3,588,294,0,3536,3537,5,205,0,0,3537,3542,3,794,397,0,3538,3539,5,25,0,0,3539,3541,3,794,397,0,3540,3538,1,0,0,0,3541,3544,1,0,0,0,3542,3540,1,0,0,0,3542,3543,1,0,0,0,3543,3545,1,0,0,0,3544,3542,1,0,0,0,3545,3546,5,289,0,0,3546,3551,3,576,288,0,3547,3548,5,25,0,0,3548,3550,3,576,288,0,3549,3547,1,0,0,0,3550,3553,1,0,0,0,3551,3549,1,0,0,0,3551,3552,1,0,0,0,3552,3555,1,0,0,0,3553,3551,1,0,0,0,3554,3556,5,25,0,0,3555,3554,1,0,0,0,3555,3556,1,0,0,0,3556,3560,1,0,0,0,3557,3558,5,315,0,0,3558,3559,5,147,0,0,3559,3561,5,208,0,0,3560,3557,1,0,0,0,3560,3561,1,0,0,0,3561,581,1,0,0,0,3562,3566,5,253,0,0,3563,3564,5,147,0,0,3564,3565,5,208,0,0,3565,3567,5,140,0,0,3566,3563,1,0,0,0,3566,3567,1,0,0,0,3567,3568,1,0,0,0,3568,3569,3,588,294,0,3569,3570,5,205,0,0,3570,3575,3,794,397,0,3571,3572,5,25,0,0,3572,3574,3,794,397,0,3573,3571,1,0,0,0,3574,3577,1,0,0,0,3575,3573,1,0,0,0,3575,3576,1,0,0,0,3576,3578,1,0,0,0,3577,3575,1,0,0,0,3578,3579,5,142,0,0,3579,3584,3,576,288,0,3580,3581,5,25,0,0,3581,3583,3,576,288,0,3582,3580,1,0,0,0,3583,3586,1,0,0,0,3584,3582,1,0,0,0,3584,3585,1,0,0,0,3585,583,1,0,0,0,3586,3584,1,0,0,0,3587,3612,5,83,0,0,3588,3612,5,183,0,0,3589,3612,5,167,0,0,3590,3612,5,185,0,0,3591,3612,5,112,0,0,3592,3612,5,147,0,0,3593,3594,5,192,0,0,3594,3612,7,20,0,0,3595,3596,7,21,0,0,3596,3612,5,258,0,0,3597,3598,7,22,0,0,3598,3612,5,262,0,0,3599,3601,5,265,0,0,3600,3602,7,23,0,0,3601,3600,1,0,0,0,3601,3602,1,0,0,0,3602,3612,1,0,0,0,3603,3605,7,24,0,0,3604,3606,5,180,0,0,3605,3604,1,0,0,0,3605,3606,1,0,0,0,3606,3612,1,0,0,0,3607,3609,5,87,0,0,3608,3610,7,25,0,0,3609,3608,1,0,0,0,3609,3610,1,0,0,0,3610,3612,1,0,0,0,3611,3587,1,0,0,0,3611,3588,1,0,0,0,3611,3589,1,0,0,0,3611,3590,1,0,0,0,3611,3591,1,0,0,0,3611,3592,1,0,0,0,3611,3593,1,0,0,0,3611,3595,1,0,0,0,3611,3597,1,0,0,0,3611,3599,1,0,0,0,3611,3603,1,0,0,0,3611,3607,1,0,0,0,3612,585,1,0,0,0,3613,3616,3,584,292,0,3614,3616,5,319,0,0,3615,3613,1,0,0,0,3615,3614,1,0,0,0,3616,587,1,0,0,0,3617,3622,3,586,293,0,3618,3619,5,25,0,0,3619,3621,3,586,293,0,3620,3618,1,0,0,0,3621,3624,1,0,0,0,3622,3620,1,0,0,0,3622,3623,1,0,0,0,3623,3626,1,0,0,0,3624,3622,1,0,0,0,3625,3627,5,25,0,0,3626,3625,1,0,0,0,3626,3627,1,0,0,0,3627,3633,1,0,0,0,3628,3630,5,44,0,0,3629,3631,5,229,0,0,3630,3629,1,0,0,0,3630,3631,1,0,0,0,3631,3633,1,0,0,0,3632,3617,1,0,0,0,3632,3628,1,0,0,0,3633,589,1,0,0,0,3634,3635,5,87,0,0,3635,3636,5,245,0,0,3636,3637,5,224,0,0,3637,3638,3,642,321,0,3638,3639,3,456,228,0,3639,591,1,0,0,0,3640,3641,5,45,0,0,3641,3642,5,245,0,0,3642,3643,5,224,0,0,3643,3644,3,642,321,0,3644,3649,3,594,297,0,3645,3646,5,25,0,0,3646,3648,3,594,297,0,3647,3645,1,0,0,0,3648,3651,1,0,0,0,3649,3647,1,0,0,0,3649,3650,1,0,0,0,3650,593,1,0,0,0,3651,3649,1,0,0,0,3652,3655,3,490,245,0,3653,3655,3,492,246,0,3654,3652,1,0,0,0,3654,3653,1,0,0,0,3655,595,1,0,0,0,3656,3657,5,112,0,0,3657,3658,5,245,0,0,3658,3659,5,224,0,0,3659,3660,3,642,321,0,3660,597,1,0,0,0,3661,3662,5,87,0,0,3662,3663,5,245,0,0,3663,3664,5,224,0,0,3664,3665,5,75,0,0,3665,3666,3,642,321,0,3666,3667,3,456,228,0,3667,599,1,0,0,0,3668,3669,5,45,0,0,3669,3670,5,245,0,0,3670,3671,5,224,0,0,3671,3672,5,75,0,0,3672,3673,3,642,321,0,3673,3678,3,602,301,0,3674,3675,5,25,0,0,3675,3677,3,602,301,0,3676,3674,1,0,0,0,3677,3680,1,0,0,0,3678,3676,1,0,0,0,3678,3679,1,0,0,0,3679,601,1,0,0,0,3680,3678,1,0,0,0,3681,3684,3,490,245,0,3682,3684,3,492,246,0,3683,3681,1,0,0,0,3683,3682,1,0,0,0,3684,603,1,0,0,0,3685,3686,5,112,0,0,3686,3687,5,245,0,0,3687,3688,5,224,0,0,3688,3689,5,75,0,0,3689,3690,3,642,321,0,3690,605,1,0,0,0,3691,3692,5,87,0,0,3692,3693,5,55,0,0,3693,3694,5,243,0,0,3694,3695,3,642,321,0,3695,3696,5,140,0,0,3696,3701,3,608,304,0,3697,3698,5,25,0,0,3698,3700,3,608,304,0,3699,3697,1,0,0,0,3700,3703,1,0,0,0,3701,3699,1,0,0,0,3701,3702,1,0,0,0,3702,3704,1,0,0,0,3703,3701,1,0,0,0,3704,3705,5,315,0,0,3705,3706,5,26,0,0,3706,3707,3,610,305,0,3707,3708,5,27,0,0,3708,607,1,0,0,0,3709,3710,3,642,321,0,3710,3711,3,864,432,0,3711,609,1,0,0,0,3712,3717,3,612,306,0,3713,3714,5,25,0,0,3714,3716,3,612,306,0,3715,3713,1,0,0,0,3716,3719,1,0,0,0,3717,3715,1,0,0,0,3717,3718,1,0,0,0,3718,611,1,0,0,0,3719,3717,1,0,0,0,3720,3721,3,790,395,0,3721,3722,5,2,0,0,3722,3723,5,319,0,0,3723,613,1,0,0,0,3724,3725,5,45,0,0,3725,3726,5,55,0,0,3726,3727,5,243,0,0,3727,3728,3,642,321,0,3728,3733,3,616,308,0,3729,3730,5,25,0,0,3730,3732,3,616,308,0,3731,3729,1,0,0,0,3732,3735,1,0,0,0,3733,3731,1,0,0,0,3733,3734,1,0,0,0,3734,615,1,0,0,0,3735,3733,1,0,0,0,3736,3737,3,618,309,0,3737,617,1,0,0,0,3738,3739,5,267,0,0,3739,3740,5,26,0,0,3740,3741,3,610,305,0,3741,3742,5,27,0,0,3742,619,1,0,0,0,3743,3744,5,112,0,0,3744,3745,5,55,0,0,3745,3746,5,243,0,0,3746,3748,3,642,321,0,3747,3749,5,70,0,0,3748,3747,1,0,0,0,3748,3749,1,0,0,0,3749,621,1,0,0,0,3750,3755,3,146,73,0,3751,3752,5,25,0,0,3752,3754,3,146,73,0,3753,3751,1,0,0,0,3754,3757,1,0,0,0,3755,3753,1,0,0,0,3755,3756,1,0,0,0,3756,623,1,0,0,0,3757,3755,1,0,0,0,3758,3759,5,101,0,0,3759,3760,7,26,0,0,3760,3761,3,144,72,0,3761,3763,5,26,0,0,3762,3764,3,622,311,0,3763,3762,1,0,0,0,3763,3764,1,0,0,0,3764,3765,1,0,0,0,3765,3766,5,27,0,0,3766,3767,5,51,0,0,3767,3768,3,626,313,0,3768,3769,5,118,0,0,3769,3770,5,101,0,0,3770,625,1,0,0,0,3771,3773,5,23,0,0,3772,3771,1,0,0,0,3773,3776,1,0,0,0,3774,3772,1,0,0,0,3774,3775,1,0,0,0,3775,3795,1,0,0,0,3776,3774,1,0,0,0,3777,3786,3,12,6,0,3778,3780,5,23,0,0,3779,3778,1,0,0,0,3780,3781,1,0,0,0,3781,3779,1,0,0,0,3781,3782,1,0,0,0,3782,3783,1,0,0,0,3783,3785,3,12,6,0,3784,3779,1,0,0,0,3785,3788,1,0,0,0,3786,3784,1,0,0,0,3786,3787,1,0,0,0,3787,3792,1,0,0,0,3788,3786,1,0,0,0,3789,3791,5,23,0,0,3790,3789,1,0,0,0,3791,3794,1,0,0,0,3792,3790,1,0,0,0,3792,3793,1,0,0,0,3793,3796,1,0,0,0,3794,3792,1,0,0,0,3795,3777,1,0,0,0,3795,3796,1,0,0,0,3796,627,1,0,0,0,3797,3799,5,123,0,0,3798,3797,1,0,0,0,3798,3799,1,0,0,0,3799,3800,1,0,0,0,3800,3801,5,154,0,0,3801,3802,3,14,7,0,3802,3805,3,222,111,0,3803,3804,5,114,0,0,3804,3806,3,222,111,0,3805,3803,1,0,0,0,3805,3806,1,0,0,0,3806,629,1,0,0,0,3807,3809,5,123,0,0,3808,3807,1,0,0,0,3808,3809,1,0,0,0,3809,3811,1,0,0,0,3810,3812,5,215,0,0,3811,3810,1,0,0,0,3811,3812,1,0,0,0,3812,3813,1,0,0,0,3813,3814,5,140,0,0,3814,3815,3,144,72,0,3815,3816,5,159,0,0,3816,3817,3,14,7,0,3817,3820,3,222,111,0,3818,3819,5,114,0,0,3819,3821,3,222,111,0,3820,3818,1,0,0,0,3820,3821,1,0,0,0,3821,631,1,0,0,0,3822,3823,3,816,408,0,3823,3824,5,24,0,0,3824,3826,1,0,0,0,3825,3822,1,0,0,0,3825,3826,1,0,0,0,3826,3828,1,0,0,0,3827,3829,5,30,0,0,3828,3827,1,0,0,0,3828,3829,1,0,0,0,3829,3860,1,0,0,0,3830,3861,3,634,317,0,3831,3832,3,796,398,0,3832,3844,5,26,0,0,3833,3838,3,636,318,0,3834,3835,5,25,0,0,3835,3837,3,636,318,0,3836,3834,1,0,0,0,3837,3840,1,0,0,0,3838,3836,1,0,0,0,3838,3839,1,0,0,0,3839,3842,1,0,0,0,3840,3838,1,0,0,0,3841,3843,5,25,0,0,3842,3841,1,0,0,0,3842,3843,1,0,0,0,3843,3845,1,0,0,0,3844,3833,1,0,0,0,3844,3845,1,0,0,0,3845,3846,1,0,0,0,3846,3847,5,27,0,0,3847,3861,1,0,0,0,3848,3854,3,144,72,0,3849,3851,5,26,0,0,3850,3852,3,112,56,0,3851,3850,1,0,0,0,3851,3852,1,0,0,0,3852,3853,1,0,0,0,3853,3855,5,27,0,0,3854,3849,1,0,0,0,3854,3855,1,0,0,0,3855,3858,1,0,0,0,3856,3857,5,310,0,0,3857,3859,3,812,406,0,3858,3856,1,0,0,0,3858,3859,1,0,0,0,3859,3861,1,0,0,0,3860,3830,1,0,0,0,3860,3831,1,0,0,0,3860,3848,1,0,0,0,3861,3863,1,0,0,0,3862,3864,3,638,319,0,3863,3862,1,0,0,0,3863,3864,1,0,0,0,3864,633,1,0,0,0,3865,3868,3,824,412,0,3866,3867,5,310,0,0,3867,3869,3,812,406,0,3868,3866,1,0,0,0,3868,3869,1,0,0,0,3869,635,1,0,0,0,3870,3872,5,30,0,0,3871,3870,1,0,0,0,3871,3872,1,0,0,0,3872,3873,1,0,0,0,3873,3876,3,128,64,0,3874,3875,5,310,0,0,3875,3877,3,812,406,0,3876,3874,1,0,0,0,3876,3877,1,0,0,0,3877,637,1,0,0,0,3878,3891,5,315,0,0,3879,3892,3,640,320,0,3880,3881,5,26,0,0,3881,3886,3,640,320,0,3882,3883,5,25,0,0,3883,3885,3,640,320,0,3884,3882,1,0,0,0,3885,3888,1,0,0,0,3886,3884,1,0,0,0,3886,3887,1,0,0,0,3887,3889,1,0,0,0,3888,3886,1,0,0,0,3889,3890,5,27,0,0,3890,3892,1,0,0,0,3891,3879,1,0,0,0,3891,3880,1,0,0,0,3892,639,1,0,0,0,3893,3912,3,806,403,0,3894,3910,5,2,0,0,3895,3911,3,160,80,0,3896,3897,5,26,0,0,3897,3902,3,160,80,0,3898,3899,5,25,0,0,3899,3901,3,160,80,0,3900,3898,1,0,0,0,3901,3904,1,0,0,0,3902,3900,1,0,0,0,3902,3903,1,0,0,0,3903,3906,1,0,0,0,3904,3902,1,0,0,0,3905,3907,5,25,0,0,3906,3905,1,0,0,0,3906,3907,1,0,0,0,3907,3908,1,0,0,0,3908,3909,5,27,0,0,3909,3911,1,0,0,0,3910,3895,1,0,0,0,3910,3896,1,0,0,0,3911,3913,1,0,0,0,3912,3894,1,0,0,0,3912,3913,1,0,0,0,3913,3939,1,0,0,0,3914,3916,7,27,0,0,3915,3917,5,2,0,0,3916,3915,1,0,0,0,3916,3917,1,0,0,0,3917,3918,1,0,0,0,3918,3939,3,204,102,0,3919,3921,5,262,0,0,3920,3922,5,2,0,0,3921,3920,1,0,0,0,3921,3922,1,0,0,0,3922,3923,1,0,0,0,3923,3932,5,26,0,0,3924,3929,3,164,82,0,3925,3926,5,25,0,0,3926,3928,3,164,82,0,3927,3925,1,0,0,0,3928,3931,1,0,0,0,3929,3927,1,0,0,0,3929,3930,1,0,0,0,3930,3933,1,0,0,0,3931,3929,1,0,0,0,3932,3924,1,0,0,0,3932,3933,1,0,0,0,3933,3935,1,0,0,0,3934,3936,5,25,0,0,3935,3934,1,0,0,0,3935,3936,1,0,0,0,3936,3937,1,0,0,0,3937,3939,5,27,0,0,3938,3893,1,0,0,0,3938,3914,1,0,0,0,3938,3919,1,0,0,0,3939,641,1,0,0,0,3940,3941,3,816,408,0,3941,3942,5,24,0,0,3942,3944,1,0,0,0,3943,3940,1,0,0,0,3943,3944,1,0,0,0,3944,3945,1,0,0,0,3945,3946,3,822,411,0,3946,643,1,0,0,0,3947,3953,3,642,321,0,3948,3950,5,30,0,0,3949,3948,1,0,0,0,3949,3950,1,0,0,0,3950,3951,1,0,0,0,3951,3953,3,144,72,0,3952,3947,1,0,0,0,3952,3949,1,0,0,0,3953,645,1,0,0,0,3954,3956,3,644,322,0,3955,3957,3,638,319,0,3956,3955,1,0,0,0,3956,3957,1,0,0,0,3957,647,1,0,0,0,3958,3962,3,646,323,0,3959,3960,5,120,0,0,3960,3961,5,68,0,0,3961,3963,3,114,57,0,3962,3959,1,0,0,0,3962,3963,1,0,0,0,3963,649,1,0,0,0,3964,3965,5,102,0,0,3965,3966,5,142,0,0,3966,3970,3,646,323,0,3967,3971,3,866,433,0,3968,3969,5,205,0,0,3969,3971,3,368,184,0,3970,3967,1,0,0,0,3970,3968,1,0,0,0,3970,3971,1,0,0,0,3971,3973,1,0,0,0,3972,3974,3,362,181,0,3973,3972,1,0,0,0,3973,3974,1,0,0,0,3974,651,1,0,0,0,3975,3976,5,302,0,0,3976,3984,3,646,323,0,3977,3978,5,267,0,0,3978,3980,3,654,327,0,3979,3981,3,866,433,0,3980,3979,1,0,0,0,3980,3981,1,0,0,0,3981,3985,1,0,0,0,3982,3983,5,205,0,0,3983,3985,3,368,184,0,3984,3977,1,0,0,0,3984,3982,1,0,0,0,3985,3987,1,0,0,0,3986,3988,3,362,181,0,3987,3986,1,0,0,0,3987,3988,1,0,0,0,3988,653,1,0,0,0,3989,3992,3,656,328,0,3990,3992,3,662,331,0,3991,3989,1,0,0,0,3991,3990,1,0,0,0,3992,655,1,0,0,0,3993,3998,3,658,329,0,3994,3995,5,25,0,0,3995,3997,3,658,329,0,3996,3994,1,0,0,0,3997,4e3,1,0,0,0,3998,3996,1,0,0,0,3998,3999,1,0,0,0,3999,657,1,0,0,0,4e3,3998,1,0,0,0,4001,4002,3,660,330,0,4002,4003,5,2,0,0,4003,4004,3,14,7,0,4004,659,1,0,0,0,4005,4006,3,120,60,0,4006,661,1,0,0,0,4007,4008,3,664,332,0,4008,4009,5,2,0,0,4009,4010,5,26,0,0,4010,4011,3,378,189,0,4011,4012,5,27,0,0,4012,663,1,0,0,0,4013,4014,5,26,0,0,4014,4019,3,660,330,0,4015,4016,5,25,0,0,4016,4018,3,660,330,0,4017,4015,1,0,0,0,4018,4021,1,0,0,0,4019,4017,1,0,0,0,4019,4020,1,0,0,0,4020,4022,1,0,0,0,4021,4019,1,0,0,0,4022,4023,5,27,0,0,4023,665,1,0,0,0,4024,4025,5,87,0,0,4025,4029,5,290,0,0,4026,4027,5,154,0,0,4027,4028,5,197,0,0,4028,4030,5,128,0,0,4029,4026,1,0,0,0,4029,4030,1,0,0,0,4030,4031,1,0,0,0,4031,4033,3,712,356,0,4032,4034,3,668,334,0,4033,4032,1,0,0,0,4033,4034,1,0,0,0,4034,4036,1,0,0,0,4035,4037,3,672,336,0,4036,4035,1,0,0,0,4036,4037,1,0,0,0,4037,667,1,0,0,0,4038,4039,5,26,0,0,4039,4044,3,670,335,0,4040,4041,5,25,0,0,4041,4043,3,670,335,0,4042,4040,1,0,0,0,4043,4046,1,0,0,0,4044,4042,1,0,0,0,4044,4045,1,0,0,0,4045,4047,1,0,0,0,4046,4044,1,0,0,0,4047,4048,5,27,0,0,4048,669,1,0,0,0,4049,4050,3,680,340,0,4050,671,1,0,0,0,4051,4052,5,315,0,0,4052,4053,5,26,0,0,4053,4054,3,698,349,0,4054,4055,5,27,0,0,4055,673,1,0,0,0,4056,4057,5,45,0,0,4057,4060,5,290,0,0,4058,4059,5,154,0,0,4059,4061,5,128,0,0,4060,4058,1,0,0,0,4060,4061,1,0,0,0,4061,4062,1,0,0,0,4062,4063,3,712,356,0,4063,4068,3,676,338,0,4064,4065,5,25,0,0,4065,4067,3,676,338,0,4066,4064,1,0,0,0,4067,4070,1,0,0,0,4068,4066,1,0,0,0,4068,4069,1,0,0,0,4069,675,1,0,0,0,4070,4068,1,0,0,0,4071,4077,3,678,339,0,4072,4077,3,682,341,0,4073,4077,3,686,343,0,4074,4077,3,692,346,0,4075,4077,3,694,347,0,4076,4071,1,0,0,0,4076,4072,1,0,0,0,4076,4073,1,0,0,0,4076,4074,1,0,0,0,4076,4075,1,0,0,0,4077,677,1,0,0,0,4078,4079,5,42,0,0,4079,4080,3,680,340,0,4080,679,1,0,0,0,4081,4082,5,85,0,0,4082,4084,3,790,395,0,4083,4085,3,704,352,0,4084,4083,1,0,0,0,4084,4085,1,0,0,0,4085,681,1,0,0,0,4086,4087,5,45,0,0,4087,4088,5,85,0,0,4088,4089,3,714,357,0,4089,4090,3,684,342,0,4090,683,1,0,0,0,4091,4094,3,688,344,0,4092,4094,3,690,345,0,4093,4091,1,0,0,0,4093,4092,1,0,0,0,4094,685,1,0,0,0,4095,4096,5,112,0,0,4096,4097,5,85,0,0,4097,4098,3,714,357,0,4098,687,1,0,0,0,4099,4100,5,267,0,0,4100,4101,5,26,0,0,4101,4102,3,706,353,0,4102,4103,5,27,0,0,4103,689,1,0,0,0,4104,4105,5,244,0,0,4105,4106,5,26,0,0,4106,4111,3,790,395,0,4107,4108,5,25,0,0,4108,4110,3,790,395,0,4109,4107,1,0,0,0,4110,4113,1,0,0,0,4111,4109,1,0,0,0,4111,4112,1,0,0,0,4112,4114,1,0,0,0,4113,4111,1,0,0,0,4114,4115,5,27,0,0,4115,691,1,0,0,0,4116,4117,5,267,0,0,4117,4118,5,26,0,0,4118,4119,3,698,349,0,4119,4120,5,27,0,0,4120,693,1,0,0,0,4121,4122,5,244,0,0,4122,4123,5,26,0,0,4123,4128,3,790,395,0,4124,4125,5,25,0,0,4125,4127,3,808,404,0,4126,4124,1,0,0,0,4127,4130,1,0,0,0,4128,4126,1,0,0,0,4128,4129,1,0,0,0,4129,4131,1,0,0,0,4130,4128,1,0,0,0,4131,4132,5,27,0,0,4132,695,1,0,0,0,4133,4134,5,112,0,0,4134,4137,5,290,0,0,4135,4136,5,154,0,0,4136,4138,5,128,0,0,4137,4135,1,0,0,0,4137,4138,1,0,0,0,4138,4139,1,0,0,0,4139,4140,3,712,356,0,4140,697,1,0,0,0,4141,4146,3,700,350,0,4142,4143,5,25,0,0,4143,4145,3,700,350,0,4144,4142,1,0,0,0,4145,4148,1,0,0,0,4146,4144,1,0,0,0,4146,4147,1,0,0,0,4147,699,1,0,0,0,4148,4146,1,0,0,0,4149,4150,3,790,395,0,4150,4151,5,2,0,0,4151,4152,3,702,351,0,4152,701,1,0,0,0,4153,4154,3,14,7,0,4154,703,1,0,0,0,4155,4156,5,315,0,0,4156,4157,5,26,0,0,4157,4158,3,706,353,0,4158,4159,5,27,0,0,4159,705,1,0,0,0,4160,4165,3,708,354,0,4161,4162,5,25,0,0,4162,4164,3,708,354,0,4163,4161,1,0,0,0,4164,4167,1,0,0,0,4165,4163,1,0,0,0,4165,4166,1,0,0,0,4166,707,1,0,0,0,4167,4165,1,0,0,0,4168,4169,3,790,395,0,4169,4170,5,2,0,0,4170,4171,3,710,355,0,4171,709,1,0,0,0,4172,4173,3,14,7,0,4173,711,1,0,0,0,4174,4175,3,816,408,0,4175,4176,5,24,0,0,4176,4178,1,0,0,0,4177,4174,1,0,0,0,4177,4178,1,0,0,0,4178,4179,1,0,0,0,4179,4180,3,790,395,0,4180,713,1,0,0,0,4181,4182,3,808,404,0,4182,715,1,0,0,0,4183,4184,5,246,0,0,4184,4188,5,200,0,0,4185,4186,5,155,0,0,4186,4188,5,200,0,0,4187,4183,1,0,0,0,4187,4185,1,0,0,0,4188,717,1,0,0,0,4189,4190,5,135,0,0,4190,4191,5,26,0,0,4191,4192,3,866,433,0,4192,4193,5,27,0,0,4193,719,1,0,0,0,4194,4197,3,722,361,0,4195,4197,3,732,366,0,4196,4194,1,0,0,0,4196,4195,1,0,0,0,4197,721,1,0,0,0,4198,4199,3,800,400,0,4199,723,1,0,0,0,4200,4201,5,314,0,0,4201,4202,3,726,363,0,4202,725,1,0,0,0,4203,4208,3,728,364,0,4204,4205,5,25,0,0,4205,4207,3,728,364,0,4206,4204,1,0,0,0,4207,4210,1,0,0,0,4208,4206,1,0,0,0,4208,4209,1,0,0,0,4209,727,1,0,0,0,4210,4208,1,0,0,0,4211,4212,3,730,365,0,4212,4213,5,51,0,0,4213,4214,3,732,366,0,4214,729,1,0,0,0,4215,4216,3,722,361,0,4216,731,1,0,0,0,4217,4218,5,26,0,0,4218,4219,3,734,367,0,4219,4220,5,27,0,0,4220,733,1,0,0,0,4221,4223,3,736,368,0,4222,4221,1,0,0,0,4222,4223,1,0,0,0,4223,4225,1,0,0,0,4224,4226,3,738,369,0,4225,4224,1,0,0,0,4225,4226,1,0,0,0,4226,4228,1,0,0,0,4227,4229,3,740,370,0,4228,4227,1,0,0,0,4228,4229,1,0,0,0,4229,4231,1,0,0,0,4230,4232,3,742,371,0,4231,4230,1,0,0,0,4231,4232,1,0,0,0,4232,735,1,0,0,0,4233,4234,3,722,361,0,4234,737,1,0,0,0,4235,4237,5,216,0,0,4236,4238,5,80,0,0,4237,4236,1,0,0,0,4237,4238,1,0,0,0,4238,4239,1,0,0,0,4239,4240,5,68,0,0,4240,4241,3,130,65,0,4241,739,1,0,0,0,4242,4243,3,314,157,0,4243,741,1,0,0,0,4244,4245,3,744,372,0,4245,4247,3,746,373,0,4246,4248,3,752,376,0,4247,4246,1,0,0,0,4247,4248,1,0,0,0,4248,743,1,0,0,0,4249,4250,7,28,0,0,4250,745,1,0,0,0,4251,4254,3,750,375,0,4252,4254,3,748,374,0,4253,4251,1,0,0,0,4253,4252,1,0,0,0,4254,747,1,0,0,0,4255,4256,5,66,0,0,4256,4257,3,750,375,0,4257,4258,5,47,0,0,4258,4259,3,750,375,0,4259,749,1,0,0,0,4260,4261,5,90,0,0,4261,4268,5,258,0,0,4262,4265,3,14,7,0,4263,4265,5,296,0,0,4264,4262,1,0,0,0,4264,4263,1,0,0,0,4265,4266,1,0,0,0,4266,4268,7,29,0,0,4267,4260,1,0,0,0,4267,4264,1,0,0,0,4268,751,1,0,0,0,4269,4270,5,125,0,0,4270,4271,5,90,0,0,4271,4280,5,258,0,0,4272,4273,5,125,0,0,4273,4280,5,148,0,0,4274,4275,5,125,0,0,4275,4280,5,288,0,0,4276,4277,5,125,0,0,4277,4278,5,196,0,0,4278,4280,5,212,0,0,4279,4269,1,0,0,0,4279,4272,1,0,0,0,4279,4274,1,0,0,0,4279,4276,1,0,0,0,4280,753,1,0,0,0,4281,4282,5,304,0,0,4282,4283,3,816,408,0,4283,755,1,0,0,0,4284,4285,5,26,0,0,4285,4286,3,232,116,0,4286,4287,5,27,0,0,4287,4290,1,0,0,0,4288,4290,3,234,117,0,4289,4284,1,0,0,0,4289,4288,1,0,0,0,4290,757,1,0,0,0,4291,4292,3,148,74,0,4292,4295,5,2,0,0,4293,4296,3,14,7,0,4294,4296,3,756,378,0,4295,4293,1,0,0,0,4295,4294,1,0,0,0,4296,759,1,0,0,0,4297,4298,5,79,0,0,4298,761,1,0,0,0,4299,4300,5,256,0,0,4300,763,1,0,0,0,4301,4306,3,646,323,0,4302,4303,5,26,0,0,4303,4304,3,124,62,0,4304,4305,5,27,0,0,4305,4307,1,0,0,0,4306,4302,1,0,0,0,4306,4307,1,0,0,0,4307,765,1,0,0,0,4308,4313,3,764,382,0,4309,4310,5,25,0,0,4310,4312,3,764,382,0,4311,4309,1,0,0,0,4312,4315,1,0,0,0,4313,4311,1,0,0,0,4313,4314,1,0,0,0,4314,4317,1,0,0,0,4315,4313,1,0,0,0,4316,4318,5,25,0,0,4317,4316,1,0,0,0,4317,4318,1,0,0,0,4318,767,1,0,0,0,4319,4320,5,46,0,0,4320,4321,3,766,383,0,4321,769,1,0,0,0,4322,4323,7,30,0,0,4323,771,1,0,0,0,4324,4327,3,770,385,0,4325,4327,3,828,414,0,4326,4324,1,0,0,0,4326,4325,1,0,0,0,4327,773,1,0,0,0,4328,4336,3,770,385,0,4329,4336,3,846,423,0,4330,4336,3,830,415,0,4331,4336,3,834,417,0,4332,4336,3,838,419,0,4333,4336,3,840,420,0,4334,4336,3,842,421,0,4335,4328,1,0,0,0,4335,4329,1,0,0,0,4335,4330,1,0,0,0,4335,4331,1,0,0,0,4335,4332,1,0,0,0,4335,4333,1,0,0,0,4335,4334,1,0,0,0,4336,775,1,0,0,0,4337,4344,3,770,385,0,4338,4344,3,846,423,0,4339,4344,3,836,418,0,4340,4344,3,838,419,0,4341,4344,3,840,420,0,4342,4344,3,842,421,0,4343,4337,1,0,0,0,4343,4338,1,0,0,0,4343,4339,1,0,0,0,4343,4340,1,0,0,0,4343,4341,1,0,0,0,4343,4342,1,0,0,0,4344,777,1,0,0,0,4345,4351,3,770,385,0,4346,4351,3,846,423,0,4347,4351,3,836,418,0,4348,4351,3,840,420,0,4349,4351,3,842,421,0,4350,4345,1,0,0,0,4350,4346,1,0,0,0,4350,4347,1,0,0,0,4350,4348,1,0,0,0,4350,4349,1,0,0,0,4351,779,1,0,0,0,4352,4361,3,770,385,0,4353,4361,3,846,423,0,4354,4361,3,830,415,0,4355,4361,3,832,416,0,4356,4361,3,834,417,0,4357,4361,3,836,418,0,4358,4361,3,838,419,0,4359,4361,3,842,421,0,4360,4352,1,0,0,0,4360,4353,1,0,0,0,4360,4354,1,0,0,0,4360,4355,1,0,0,0,4360,4356,1,0,0,0,4360,4357,1,0,0,0,4360,4358,1,0,0,0,4360,4359,1,0,0,0,4361,781,1,0,0,0,4362,4370,3,770,385,0,4363,4370,3,846,423,0,4364,4370,3,830,415,0,4365,4370,3,834,417,0,4366,4370,3,838,419,0,4367,4370,3,840,420,0,4368,4370,3,842,421,0,4369,4362,1,0,0,0,4369,4363,1,0,0,0,4369,4364,1,0,0,0,4369,4365,1,0,0,0,4369,4366,1,0,0,0,4369,4367,1,0,0,0,4369,4368,1,0,0,0,4370,783,1,0,0,0,4371,4379,3,770,385,0,4372,4379,3,846,423,0,4373,4379,3,832,416,0,4374,4379,3,836,418,0,4375,4379,3,838,419,0,4376,4379,3,840,420,0,4377,4379,3,842,421,0,4378,4371,1,0,0,0,4378,4372,1,0,0,0,4378,4373,1,0,0,0,4378,4374,1,0,0,0,4378,4375,1,0,0,0,4378,4376,1,0,0,0,4378,4377,1,0,0,0,4379,785,1,0,0,0,4380,4389,3,770,385,0,4381,4389,3,846,423,0,4382,4389,3,830,415,0,4383,4389,3,832,416,0,4384,4389,3,834,417,0,4385,4389,3,836,418,0,4386,4389,3,838,419,0,4387,4389,3,840,420,0,4388,4380,1,0,0,0,4388,4381,1,0,0,0,4388,4382,1,0,0,0,4388,4383,1,0,0,0,4388,4384,1,0,0,0,4388,4385,1,0,0,0,4388,4386,1,0,0,0,4388,4387,1,0,0,0,4389,787,1,0,0,0,4390,4393,3,770,385,0,4391,4393,3,844,422,0,4392,4390,1,0,0,0,4392,4391,1,0,0,0,4393,789,1,0,0,0,4394,4397,3,772,386,0,4395,4397,5,319,0,0,4396,4394,1,0,0,0,4396,4395,1,0,0,0,4397,791,1,0,0,0,4398,4401,3,818,409,0,4399,4401,5,319,0,0,4400,4398,1,0,0,0,4400,4399,1,0,0,0,4401,793,1,0,0,0,4402,4405,3,774,387,0,4403,4405,5,319,0,0,4404,4402,1,0,0,0,4404,4403,1,0,0,0,4405,795,1,0,0,0,4406,4409,3,776,388,0,4407,4409,5,319,0,0,4408,4406,1,0,0,0,4408,4407,1,0,0,0,4409,797,1,0,0,0,4410,4413,3,778,389,0,4411,4413,5,319,0,0,4412,4410,1,0,0,0,4412,4411,1,0,0,0,4413,799,1,0,0,0,4414,4417,3,780,390,0,4415,4417,5,319,0,0,4416,4414,1,0,0,0,4416,4415,1,0,0,0,4417,801,1,0,0,0,4418,4421,3,782,391,0,4419,4421,5,319,0,0,4420,4418,1,0,0,0,4420,4419,1,0,0,0,4421,803,1,0,0,0,4422,4425,3,784,392,0,4423,4425,5,319,0,0,4424,4422,1,0,0,0,4424,4423,1,0,0,0,4425,805,1,0,0,0,4426,4429,3,786,393,0,4427,4429,5,319,0,0,4428,4426,1,0,0,0,4428,4427,1,0,0,0,4429,807,1,0,0,0,4430,4433,3,770,385,0,4431,4433,5,319,0,0,4432,4430,1,0,0,0,4432,4431,1,0,0,0,4433,809,1,0,0,0,4434,4437,3,788,394,0,4435,4437,5,319,0,0,4436,4434,1,0,0,0,4436,4435,1,0,0,0,4437,811,1,0,0,0,4438,4442,3,790,395,0,4439,4440,5,228,0,0,4440,4442,5,177,0,0,4441,4438,1,0,0,0,4441,4439,1,0,0,0,4442,813,1,0,0,0,4443,4444,3,790,395,0,4444,4445,5,24,0,0,4445,4447,1,0,0,0,4446,4443,1,0,0,0,4446,4447,1,0,0,0,4447,815,1,0,0,0,4448,4449,3,790,395,0,4449,4450,5,29,0,0,4450,4452,1,0,0,0,4451,4448,1,0,0,0,4451,4452,1,0,0,0,4452,4455,1,0,0,0,4453,4456,3,116,58,0,4454,4456,5,20,0,0,4455,4453,1,0,0,0,4455,4454,1,0,0,0,4456,817,1,0,0,0,4457,4460,3,772,386,0,4458,4460,3,848,424,0,4459,4457,1,0,0,0,4459,4458,1,0,0,0,4460,819,1,0,0,0,4461,4462,3,792,396,0,4462,4463,5,24,0,0,4463,4465,1,0,0,0,4464,4461,1,0,0,0,4464,4465,1,0,0,0,4465,821,1,0,0,0,4466,4468,5,30,0,0,4467,4466,1,0,0,0,4467,4468,1,0,0,0,4468,4469,1,0,0,0,4469,4470,3,792,396,0,4470,823,1,0,0,0,4471,4474,3,802,401,0,4472,4474,3,848,424,0,4473,4471,1,0,0,0,4473,4472,1,0,0,0,4474,825,1,0,0,0,4475,4477,5,30,0,0,4476,4475,1,0,0,0,4476,4477,1,0,0,0,4477,4478,1,0,0,0,4478,4479,3,824,412,0,4479,827,1,0,0,0,4480,4489,3,846,423,0,4481,4489,3,830,415,0,4482,4489,3,832,416,0,4483,4489,3,834,417,0,4484,4489,3,836,418,0,4485,4489,3,838,419,0,4486,4489,3,840,420,0,4487,4489,3,842,421,0,4488,4480,1,0,0,0,4488,4481,1,0,0,0,4488,4482,1,0,0,0,4488,4483,1,0,0,0,4488,4484,1,0,0,0,4488,4485,1,0,0,0,4488,4486,1,0,0,0,4488,4487,1,0,0,0,4489,829,1,0,0,0,4490,4491,7,31,0,0,4491,831,1,0,0,0,4492,4493,7,32,0,0,4493,833,1,0,0,0,4494,4495,7,33,0,0,4495,835,1,0,0,0,4496,4497,5,77,0,0,4497,837,1,0,0,0,4498,4499,5,80,0,0,4499,839,1,0,0,0,4500,4501,7,28,0,0,4501,841,1,0,0,0,4502,4503,7,27,0,0,4503,843,1,0,0,0,4504,4505,7,34,0,0,4505,845,1,0,0,0,4506,4507,7,35,0,0,4507,847,1,0,0,0,4508,4509,7,36,0,0,4509,849,1,0,0,0,4510,4511,7,37,0,0,4511,851,1,0,0,0,4512,4513,5,324,0,0,4513,853,1,0,0,0,4514,4515,7,38,0,0,4515,855,1,0,0,0,4516,4522,3,858,429,0,4517,4518,5,225,0,0,4518,4519,5,48,0,0,4519,4520,5,322,0,0,4520,4522,3,4,2,0,4521,4516,1,0,0,0,4521,4517,1,0,0,0,4522,857,1,0,0,0,4523,4525,5,23,0,0,4524,4523,1,0,0,0,4525,4528,1,0,0,0,4526,4524,1,0,0,0,4526,4527,1,0,0,0,4527,4529,1,0,0,0,4528,4526,1,0,0,0,4529,4538,3,860,430,0,4530,4532,5,23,0,0,4531,4530,1,0,0,0,4532,4533,1,0,0,0,4533,4531,1,0,0,0,4533,4534,1,0,0,0,4534,4535,1,0,0,0,4535,4537,3,860,430,0,4536,4531,1,0,0,0,4537,4540,1,0,0,0,4538,4536,1,0,0,0,4538,4539,1,0,0,0,4539,4544,1,0,0,0,4540,4538,1,0,0,0,4541,4543,5,23,0,0,4542,4541,1,0,0,0,4543,4546,1,0,0,0,4544,4542,1,0,0,0,4544,4545,1,0,0,0,4545,4547,1,0,0,0,4546,4544,1,0,0,0,4547,4548,5,0,0,1,4548,859,1,0,0,0,4549,4552,5,129,0,0,4550,4551,5,1,0,0,4551,4553,5,223,0,0,4552,4550,1,0,0,0,4552,4553,1,0,0,0,4553,4555,1,0,0,0,4554,4549,1,0,0,0,4554,4555,1,0,0,0,4555,4556,1,0,0,0,4556,4557,3,862,431,0,4557,861,1,0,0,0,4558,4572,3,224,112,0,4559,4572,3,232,116,0,4560,4572,3,758,379,0,4561,4572,3,754,377,0,4562,4572,3,366,183,0,4563,4572,3,210,105,0,4564,4572,3,214,107,0,4565,4572,3,216,108,0,4566,4572,3,222,111,0,4567,4572,3,624,312,0,4568,4572,3,628,314,0,4569,4572,3,630,315,0,4570,4572,3,370,185,0,4571,4558,1,0,0,0,4571,4559,1,0,0,0,4571,4560,1,0,0,0,4571,4561,1,0,0,0,4571,4562,1,0,0,0,4571,4563,1,0,0,0,4571,4564,1,0,0,0,4571,4565,1,0,0,0,4571,4566,1,0,0,0,4571,4567,1,0,0,0,4571,4568,1,0,0,0,4571,4569,1,0,0,0,4571,4570,1,0,0,0,4572,863,1,0,0,0,4573,4574,5,51,0,0,4574,4575,3,642,321,0,4575,865,1,0,0,0,4576,4577,5,313,0,0,4577,4578,3,14,7,0,4578,867,1,0,0,0,4579,4580,5,142,0,0,4580,4581,3,338,169,0,4581,869,1,0,0,0,4582,4585,3,464,232,0,4583,4585,3,472,236,0,4584,4582,1,0,0,0,4584,4583,1,0,0,0,4585,871,1,0,0,0,504,877,882,889,894,900,908,916,923,927,935,940,945,947,1007,1014,1018,1025,1033,1038,1042,1048,1054,1057,1061,1069,1073,1076,1080,1091,1096,1098,1107,1128,1133,1142,1144,1151,1159,1167,1174,1184,1186,1190,1195,1199,1205,1211,1215,1219,1222,1229,1235,1239,1244,1247,1261,1266,1269,1283,1290,1301,1312,1332,1338,1343,1347,1361,1363,1370,1376,1387,1395,1401,1408,1416,1429,1435,1439,1442,1444,1452,1460,1466,1472,1478,1481,1490,1499,1506,1514,1527,1534,1538,1545,1549,1554,1561,1568,1571,1578,1582,1592,1615,1621,1625,1632,1638,1645,1649,1653,1659,1664,1673,1676,1682,1687,1695,1702,1724,1728,1730,1734,1743,1747,1749,1753,1762,1766,1804,1808,1828,1831,1837,1857,1862,1868,1873,1876,1880,1907,1915,1918,1925,1938,1942,1954,1967,1972,1979,1983,1990,1999,2008,2016,2020,2024,2031,2033,2036,2041,2046,2050,2057,2064,2068,2071,2075,2079,2081,2092,2101,2106,2112,2117,2120,2124,2128,2131,2134,2138,2146,2150,2154,2157,2160,2163,2167,2170,2173,2178,2181,2184,2187,2201,2203,2214,2224,2234,2237,2244,2268,2279,2285,2289,2293,2297,2301,2305,2309,2313,2319,2326,2336,2347,2360,2376,2386,2406,2412,2419,2426,2434,2443,2480,2482,2485,2490,2494,2498,2504,2510,2514,2519,2524,2526,2530,2535,2538,2540,2544,2555,2566,2577,2581,2585,2589,2592,2596,2599,2605,2614,2617,2631,2637,2650,2657,2662,2669,2676,2685,2690,2698,2713,2719,2727,2736,2740,2749,2761,2768,2776,2797,2805,2814,2824,2833,2838,2845,2855,2860,2869,2873,2877,2880,2883,2886,2889,2897,2902,2913,2920,2933,2941,2946,2953,2966,2977,2987,2993,3002,3019,3042,3062,3073,3081,3091,3096,3100,3106,3144,3156,3198,3206,3209,3213,3217,3227,3240,3253,3258,3270,3281,3286,3289,3293,3297,3301,3304,3317,3321,3333,3347,3362,3377,3380,3392,3395,3405,3413,3419,3427,3435,3442,3446,3454,3460,3466,3478,3482,3484,3496,3500,3505,3511,3518,3522,3526,3529,3542,3551,3555,3560,3566,3575,3584,3601,3605,3609,3611,3615,3622,3626,3630,3632,3649,3654,3678,3683,3701,3717,3733,3748,3755,3763,3774,3781,3786,3792,3795,3798,3805,3808,3811,3820,3825,3828,3838,3842,3844,3851,3854,3858,3860,3863,3868,3871,3876,3886,3891,3902,3906,3910,3912,3916,3921,3929,3932,3935,3938,3943,3949,3952,3956,3962,3970,3973,3980,3984,3987,3991,3998,4019,4029,4033,4036,4044,4060,4068,4076,4084,4093,4111,4128,4137,4146,4165,4177,4187,4196,4208,4222,4225,4228,4231,4237,4247,4253,4264,4267,4279,4289,4295,4306,4313,4317,4326,4335,4343,4350,4360,4369,4378,4388,4392,4396,4400,4404,4408,4412,4416,4420,4424,4428,4432,4436,4441,4446,4451,4455,4459,4464,4467,4473,4476,4488,4521,4526,4533,4538,4544,4552,4554,4571,4584]}static get _ATN(){return e.__ATN||(e.__ATN=(new Be).deserialize(e._serializedATN)),e.__ATN}static{this.vocabulary=new f(e.literalNames,e.symbolicNames,[])}get vocabulary(){return e.vocabulary}static{this.decisionsToDFA=e._ATN.decisionToState.map(((e,t)=>new it(e,t)))}},os=class extends W{static{Si(this,"Sql_queryContext")}constructor(e,t){super(e,t)}sql_stmt_list(){return this.getRuleContext(0,as)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}ANSI(){return this.getToken(rs.ANSI,0)}DIGITS(){return this.getToken(rs.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,ls)}get ruleIndex(){return rs.RULE_sql_query}accept(e){return e.visitSql_query?e.visitSql_query(this):e.visitChildren(this)}},as=class extends W{static{Si(this,"Sql_stmt_listContext")}constructor(e,t){super(e,t)}sql_stmt(e){return void 0===e?this.getRuleContexts(ds):this.getRuleContext(e,ds)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_sql_stmt_list}accept(e){return e.visitSql_stmt_list?e.visitSql_stmt_list(this):e.visitChildren(this)}},ls=class extends W{static{Si(this,"Ansi_sql_stmt_listContext")}constructor(e,t){super(e,t)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_ansi_sql_stmt_list}accept(e){return e.visitAnsi_sql_stmt_list?e.visitAnsi_sql_stmt_list(this):e.visitChildren(this)}},cs=class extends W{static{Si(this,"Lambda_bodyContext")}constructor(e,t){super(e,t)}RETURN(){return this.getToken(rs.RETURN,0)}expr(){return this.getRuleContext(0,gs)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}lambda_stmt(e){return void 0===e?this.getRuleContexts(hs):this.getRuleContext(e,hs)}get ruleIndex(){return rs.RULE_lambda_body}accept(e){return e.visitLambda_body?e.visitLambda_body(this):e.visitChildren(this)}},hs=class extends W{static{Si(this,"Lambda_stmtContext")}constructor(e,t){super(e,t)}named_nodes_stmt(){return this.getRuleContext(0,ch)}import_stmt(){return this.getRuleContext(0,or)}get ruleIndex(){return rs.RULE_lambda_stmt}accept(e){return e.visitLambda_stmt?e.visitLambda_stmt(this):e.visitChildren(this)}},ds=class extends W{static{Si(this,"Sql_stmtContext")}constructor(e,t){super(e,t)}sql_stmt_core(){return this.getRuleContext(0,us)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}QUERY(){return this.getToken(rs.QUERY,0)}PLAN(){return this.getToken(rs.PLAN,0)}get ruleIndex(){return rs.RULE_sql_stmt}accept(e){return e.visitSql_stmt?e.visitSql_stmt(this):e.visitChildren(this)}},us=class extends W{static{Si(this,"Sql_stmt_coreContext")}constructor(e,t){super(e,t)}pragma_stmt(){return this.getRuleContext(0,dr)}select_stmt(){return this.getRuleContext(0,mr)}named_nodes_stmt(){return this.getRuleContext(0,ch)}create_table_stmt(){return this.getRuleContext(0,ta)}drop_table_stmt(){return this.getRuleContext(0,bl)}use_stmt(){return this.getRuleContext(0,ah)}into_table_stmt(){return this.getRuleContext(0,xo)}commit_stmt(){return this.getRuleContext(0,hh)}update_stmt(){return this.getRuleContext(0,hc)}delete_stmt(){return this.getRuleContext(0,cc)}rollback_stmt(){return this.getRuleContext(0,dh)}declare_stmt(){return this.getRuleContext(0,nr)}import_stmt(){return this.getRuleContext(0,or)}export_stmt(){return this.getRuleContext(0,ar)}alter_table_stmt(){return this.getRuleContext(0,wa)}alter_external_table_stmt(){return this.getRuleContext(0,Ra)}do_stmt(){return this.getRuleContext(0,hr)}define_action_or_subquery_stmt(){return this.getRuleContext(0,Ql)}if_stmt(){return this.getRuleContext(0,Zl)}for_stmt(){return this.getRuleContext(0,Jl)}values_stmt(){return this.getRuleContext(0,No)}create_user_stmt(){return this.getRuleContext(0,El)}alter_user_stmt(){return this.getRuleContext(0,Sl)}create_group_stmt(){return this.getRuleContext(0,yl)}alter_group_stmt(){return this.getRuleContext(0,wl)}drop_role_stmt(){return this.getRuleContext(0,Ll)}create_object_stmt(){return this.getRuleContext(0,zo)}alter_object_stmt(){return this.getRuleContext(0,jo)}drop_object_stmt(){return this.getRuleContext(0,Yo)}create_external_data_source_stmt(){return this.getRuleContext(0,Po)}alter_external_data_source_stmt(){return this.getRuleContext(0,Fo)}drop_external_data_source_stmt(){return this.getRuleContext(0,Ho)}create_replication_stmt(){return this.getRuleContext(0,Wl)}drop_replication_stmt(){return this.getRuleContext(0,ql)}create_topic_stmt(){return this.getRuleContext(0,_c)}alter_topic_stmt(){return this.getRuleContext(0,Ec)}drop_topic_stmt(){return this.getRuleContext(0,Ic)}grant_permissions_stmt(){return this.getRuleContext(0,xl)}revoke_permissions_stmt(){return this.getRuleContext(0,kl)}alter_table_store_stmt(){return this.getRuleContext(0,xa)}upsert_object_stmt(){return this.getRuleContext(0,Vo)}create_view_stmt(){return this.getRuleContext(0,Bo)}drop_view_stmt(){return this.getRuleContext(0,Wo)}alter_replication_stmt(){return this.getRuleContext(0,jl)}create_resource_pool_stmt(){return this.getRuleContext(0,Ol)}alter_resource_pool_stmt(){return this.getRuleContext(0,Dl)}drop_resource_pool_stmt(){return this.getRuleContext(0,Pl)}create_backup_collection_stmt(){return this.getRuleContext(0,sa)}alter_backup_collection_stmt(){return this.getRuleContext(0,na)}drop_backup_collection_stmt(){return this.getRuleContext(0,ra)}analyze_stmt(){return this.getRuleContext(0,ph)}create_resource_pool_classifier_stmt(){return this.getRuleContext(0,Fl)}alter_resource_pool_classifier_stmt(){return this.getRuleContext(0,Ul)}drop_resource_pool_classifier_stmt(){return this.getRuleContext(0,Bl)}backup_stmt(){return this.getRuleContext(0,fa)}restore_stmt(){return this.getRuleContext(0,_a)}get ruleIndex(){return rs.RULE_sql_stmt_core}accept(e){return e.visitSql_stmt_core?e.visitSql_stmt_core(this):e.visitChildren(this)}},gs=class extends W{static{Si(this,"ExprContext")}constructor(e,t){super(e,t)}or_subexpr(e){return void 0===e?this.getRuleContexts(ps):this.getRuleContext(e,ps)}OR(e){return void 0===e?this.getTokens(rs.OR):this.getToken(rs.OR,e)}type_name_composite(){return this.getRuleContext(0,Jn)}get ruleIndex(){return rs.RULE_expr}accept(e){return e.visitExpr?e.visitExpr(this):e.visitChildren(this)}},ps=class extends W{static{Si(this,"Or_subexprContext")}constructor(e,t){super(e,t)}and_subexpr(e){return void 0===e?this.getRuleContexts(ms):this.getRuleContext(e,ms)}AND(e){return void 0===e?this.getTokens(rs.AND):this.getToken(rs.AND,e)}get ruleIndex(){return rs.RULE_or_subexpr}accept(e){return e.visitOr_subexpr?e.visitOr_subexpr(this):e.visitChildren(this)}},ms=class extends W{static{Si(this,"And_subexprContext")}constructor(e,t){super(e,t)}xor_subexpr(e){return void 0===e?this.getRuleContexts(fs):this.getRuleContext(e,fs)}XOR(e){return void 0===e?this.getTokens(rs.XOR):this.getToken(rs.XOR,e)}get ruleIndex(){return rs.RULE_and_subexpr}accept(e){return e.visitAnd_subexpr?e.visitAnd_subexpr(this):e.visitChildren(this)}},fs=class extends W{static{Si(this,"Xor_subexprContext")}constructor(e,t){super(e,t)}eq_subexpr(){return this.getRuleContext(0,bs)}cond_expr(){return this.getRuleContext(0,vs)}get ruleIndex(){return rs.RULE_xor_subexpr}accept(e){return e.visitXor_subexpr?e.visitXor_subexpr(this):e.visitChildren(this)}},_s=class extends W{static{Si(this,"Distinct_from_opContext")}constructor(e,t){super(e,t)}IS(){return this.getToken(rs.IS,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}FROM(){return this.getToken(rs.FROM,0)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_distinct_from_op}accept(e){return e.visitDistinct_from_op?e.visitDistinct_from_op(this):e.visitChildren(this)}},vs=class extends W{static{Si(this,"Cond_exprContext")}constructor(e,t){super(e,t)}match_op(){return this.getRuleContext(0,Cs)}eq_subexpr(e){return void 0===e?this.getRuleContexts(bs):this.getRuleContext(e,bs)}NOT(){return this.getToken(rs.NOT,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}IN(){return this.getToken(rs.IN,0)}in_expr(){return this.getRuleContext(0,Ys)}COMPACT(){return this.getToken(rs.COMPACT,0)}ISNULL(){return this.getToken(rs.ISNULL,0)}NOTNULL(){return this.getToken(rs.NOTNULL,0)}IS(){return this.getToken(rs.IS,0)}NULL(){return this.getToken(rs.NULL,0)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}AND(){return this.getToken(rs.AND,0)}SYMMETRIC(){return this.getToken(rs.SYMMETRIC,0)}ASYMMETRIC(){return this.getToken(rs.ASYMMETRIC,0)}EQUALS(e){return void 0===e?this.getTokens(rs.EQUALS):this.getToken(rs.EQUALS,e)}EQUALS2(e){return void 0===e?this.getTokens(rs.EQUALS2):this.getToken(rs.EQUALS2,e)}NOT_EQUALS(e){return void 0===e?this.getTokens(rs.NOT_EQUALS):this.getToken(rs.NOT_EQUALS,e)}NOT_EQUALS2(e){return void 0===e?this.getTokens(rs.NOT_EQUALS2):this.getToken(rs.NOT_EQUALS2,e)}distinct_from_op(e){return void 0===e?this.getRuleContexts(_s):this.getRuleContext(e,_s)}get ruleIndex(){return rs.RULE_cond_expr}accept(e){return e.visitCond_expr?e.visitCond_expr(this):e.visitChildren(this)}},Cs=class extends W{static{Si(this,"Match_opContext")}constructor(e,t){super(e,t)}LIKE(){return this.getToken(rs.LIKE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}GLOB(){return this.getToken(rs.GLOB,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}MATCH(){return this.getToken(rs.MATCH,0)}get ruleIndex(){return rs.RULE_match_op}accept(e){return e.visitMatch_op?e.visitMatch_op(this):e.visitChildren(this)}},bs=class extends W{static{Si(this,"Eq_subexprContext")}constructor(e,t){super(e,t)}neq_subexpr(e){return void 0===e?this.getRuleContexts(ws):this.getRuleContext(e,ws)}LESS(e){return void 0===e?this.getTokens(rs.LESS):this.getToken(rs.LESS,e)}LESS_OR_EQ(e){return void 0===e?this.getTokens(rs.LESS_OR_EQ):this.getToken(rs.LESS_OR_EQ,e)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}GREATER_OR_EQ(e){return void 0===e?this.getTokens(rs.GREATER_OR_EQ):this.getToken(rs.GREATER_OR_EQ,e)}get ruleIndex(){return rs.RULE_eq_subexpr}accept(e){return e.visitEq_subexpr?e.visitEq_subexpr(this):e.visitChildren(this)}},Es=class extends W{static{Si(this,"Shift_rightContext")}constructor(e,t){super(e,t)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}get ruleIndex(){return rs.RULE_shift_right}accept(e){return e.visitShift_right?e.visitShift_right(this):e.visitChildren(this)}},Ss=class extends W{static{Si(this,"Rot_rightContext")}constructor(e,t){super(e,t)}GREATER(e){return void 0===e?this.getTokens(rs.GREATER):this.getToken(rs.GREATER,e)}PIPE(){return this.getToken(rs.PIPE,0)}get ruleIndex(){return rs.RULE_rot_right}accept(e){return e.visitRot_right?e.visitRot_right(this):e.visitChildren(this)}},ys=class extends W{static{Si(this,"Double_questionContext")}constructor(e,t){super(e,t)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_double_question}accept(e){return e.visitDouble_question?e.visitDouble_question(this):e.visitChildren(this)}},ws=class e extends W{static{Si(this,"Neq_subexprContext")}constructor(e,t){super(e,t)}bit_subexpr(e){return void 0===e?this.getRuleContexts(Ls):this.getRuleContext(e,Ls)}double_question(){return this.getRuleContext(0,ys)}neq_subexpr(){return this.getRuleContext(0,e)}SHIFT_LEFT(e){return void 0===e?this.getTokens(rs.SHIFT_LEFT):this.getToken(rs.SHIFT_LEFT,e)}shift_right(e){return void 0===e?this.getRuleContexts(Es):this.getRuleContext(e,Es)}ROT_LEFT(e){return void 0===e?this.getTokens(rs.ROT_LEFT):this.getToken(rs.ROT_LEFT,e)}rot_right(e){return void 0===e?this.getRuleContexts(Ss):this.getRuleContext(e,Ss)}AMPERSAND(e){return void 0===e?this.getTokens(rs.AMPERSAND):this.getToken(rs.AMPERSAND,e)}PIPE(e){return void 0===e?this.getTokens(rs.PIPE):this.getToken(rs.PIPE,e)}CARET(e){return void 0===e?this.getTokens(rs.CARET):this.getToken(rs.CARET,e)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_neq_subexpr}accept(e){return e.visitNeq_subexpr?e.visitNeq_subexpr(this):e.visitChildren(this)}},Ls=class extends W{static{Si(this,"Bit_subexprContext")}constructor(e,t){super(e,t)}add_subexpr(e){return void 0===e?this.getRuleContexts(Rs):this.getRuleContext(e,Rs)}PLUS(e){return void 0===e?this.getTokens(rs.PLUS):this.getToken(rs.PLUS,e)}MINUS(e){return void 0===e?this.getTokens(rs.MINUS):this.getToken(rs.MINUS,e)}get ruleIndex(){return rs.RULE_bit_subexpr}accept(e){return e.visitBit_subexpr?e.visitBit_subexpr(this):e.visitChildren(this)}},Rs=class extends W{static{Si(this,"Add_subexprContext")}constructor(e,t){super(e,t)}mul_subexpr(e){return void 0===e?this.getRuleContexts(Ts):this.getRuleContext(e,Ts)}ASTERISK(e){return void 0===e?this.getTokens(rs.ASTERISK):this.getToken(rs.ASTERISK,e)}SLASH(e){return void 0===e?this.getTokens(rs.SLASH):this.getToken(rs.SLASH,e)}PERCENT(e){return void 0===e?this.getTokens(rs.PERCENT):this.getToken(rs.PERCENT,e)}get ruleIndex(){return rs.RULE_add_subexpr}accept(e){return e.visitAdd_subexpr?e.visitAdd_subexpr(this):e.visitChildren(this)}},Ts=class extends W{static{Si(this,"Mul_subexprContext")}constructor(e,t){super(e,t)}con_subexpr(e){return void 0===e?this.getRuleContexts(xs):this.getRuleContext(e,xs)}DOUBLE_PIPE(e){return void 0===e?this.getTokens(rs.DOUBLE_PIPE):this.getToken(rs.DOUBLE_PIPE,e)}get ruleIndex(){return rs.RULE_mul_subexpr}accept(e){return e.visitMul_subexpr?e.visitMul_subexpr(this):e.visitChildren(this)}},xs=class extends W{static{Si(this,"Con_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr(){return this.getRuleContext(0,Os)}unary_op(){return this.getRuleContext(0,ks)}get ruleIndex(){return rs.RULE_con_subexpr}accept(e){return e.visitCon_subexpr?e.visitCon_subexpr(this):e.visitChildren(this)}},ks=class extends W{static{Si(this,"Unary_opContext")}constructor(e,t){super(e,t)}PLUS(){return this.getToken(rs.PLUS,0)}MINUS(){return this.getToken(rs.MINUS,0)}TILDA(){return this.getToken(rs.TILDA,0)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_unary_op}accept(e){return e.visitUnary_op?e.visitUnary_op(this):e.visitChildren(this)}},As=class extends W{static{Si(this,"Unary_subexpr_suffixContext")}constructor(e,t){super(e,t)}COLLATE(){return this.getToken(rs.COLLATE,0)}an_id(){return this.getRuleContext(0,Lh)}key_expr(e){return void 0===e?this.getRuleContexts(Sn):this.getRuleContext(e,Sn)}invoke_expr(e){return void 0===e?this.getRuleContexts(Cn):this.getRuleContext(e,Cn)}DOT(e){return void 0===e?this.getTokens(rs.DOT):this.getToken(rs.DOT,e)}bind_parameter(e){return void 0===e?this.getRuleContexts(Ln):this.getRuleContext(e,Ln)}DIGITS(e){return void 0===e?this.getTokens(rs.DIGITS):this.getToken(rs.DIGITS,e)}an_id_or_type(e){return void 0===e?this.getRuleContexts(Rh):this.getRuleContext(e,Rh)}get ruleIndex(){return rs.RULE_unary_subexpr_suffix}accept(e){return e.visitUnary_subexpr_suffix?e.visitUnary_subexpr_suffix(this):e.visitChildren(this)}},Ns=class extends W{static{Si(this,"Unary_casual_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr_suffix(){return this.getRuleContext(0,As)}id_expr(){return this.getRuleContext(0,vh)}atom_expr(){return this.getRuleContext(0,Bs)}get ruleIndex(){return rs.RULE_unary_casual_subexpr}accept(e){return e.visitUnary_casual_subexpr?e.visitUnary_casual_subexpr(this):e.visitChildren(this)}},Is=class extends W{static{Si(this,"In_unary_casual_subexprContext")}constructor(e,t){super(e,t)}unary_subexpr_suffix(){return this.getRuleContext(0,As)}id_expr_in(){return this.getRuleContext(0,Ch)}in_atom_expr(){return this.getRuleContext(0,Ws)}get ruleIndex(){return rs.RULE_in_unary_casual_subexpr}accept(e){return e.visitIn_unary_casual_subexpr?e.visitIn_unary_casual_subexpr(this):e.visitChildren(this)}},Os=class extends W{static{Si(this,"Unary_subexprContext")}constructor(e,t){super(e,t)}unary_casual_subexpr(){return this.getRuleContext(0,Ns)}json_api_expr(){return this.getRuleContext(0,qs)}get ruleIndex(){return rs.RULE_unary_subexpr}accept(e){return e.visitUnary_subexpr?e.visitUnary_subexpr(this):e.visitChildren(this)}},Ds=class extends W{static{Si(this,"In_unary_subexprContext")}constructor(e,t){super(e,t)}in_unary_casual_subexpr(){return this.getRuleContext(0,Is)}json_api_expr(){return this.getRuleContext(0,qs)}get ruleIndex(){return rs.RULE_in_unary_subexpr}accept(e){return e.visitIn_unary_subexpr?e.visitIn_unary_subexpr(this):e.visitChildren(this)}},Ms=class extends W{static{Si(this,"List_literalContext")}constructor(e,t){super(e,t)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}expr_list(){return this.getRuleContext(0,cn)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_list_literal}accept(e){return e.visitList_literal?e.visitList_literal(this):e.visitChildren(this)}},Ps=class extends W{static{Si(this,"Expr_dict_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COLON(e){return void 0===e?this.getTokens(rs.COLON):this.getToken(rs.COLON,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_dict_list}accept(e){return e.visitExpr_dict_list?e.visitExpr_dict_list(this):e.visitChildren(this)}},Fs=class extends W{static{Si(this,"Dict_literalContext")}constructor(e,t){super(e,t)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}expr_dict_list(){return this.getRuleContext(0,Ps)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_dict_literal}accept(e){return e.visitDict_literal?e.visitDict_literal(this):e.visitChildren(this)}},Us=class extends W{static{Si(this,"Expr_struct_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COLON(e){return void 0===e?this.getTokens(rs.COLON):this.getToken(rs.COLON,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_struct_list}accept(e){return e.visitExpr_struct_list?e.visitExpr_struct_list(this):e.visitChildren(this)}},Hs=class extends W{static{Si(this,"Struct_literalContext")}constructor(e,t){super(e,t)}STRUCT_OPEN(){return this.getToken(rs.STRUCT_OPEN,0)}STRUCT_CLOSE(){return this.getToken(rs.STRUCT_CLOSE,0)}expr_struct_list(){return this.getRuleContext(0,Us)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_struct_literal}accept(e){return e.visitStruct_literal?e.visitStruct_literal(this):e.visitChildren(this)}},Bs=class extends W{static{Si(this,"Atom_exprContext")}constructor(e,t){super(e,t)}literal_value(){return this.getRuleContext(0,wn)}bind_parameter(){return this.getRuleContext(0,Ln)}lambda(){return this.getRuleContext(0,Ks)}cast_expr(){return this.getRuleContext(0,Vs)}exists_expr(){return this.getRuleContext(0,Gs)}case_expr(){return this.getRuleContext(0,js)}an_id_or_type(){return this.getRuleContext(0,Rh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,Hh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}value_constructor(){return this.getRuleContext(0,sr)}bitcast_expr(){return this.getRuleContext(0,zs)}list_literal(){return this.getRuleContext(0,Ms)}dict_literal(){return this.getRuleContext(0,Fs)}struct_literal(){return this.getRuleContext(0,Hs)}get ruleIndex(){return rs.RULE_atom_expr}accept(e){return e.visitAtom_expr?e.visitAtom_expr(this):e.visitChildren(this)}},Ws=class extends W{static{Si(this,"In_atom_exprContext")}constructor(e,t){super(e,t)}literal_value(){return this.getRuleContext(0,wn)}bind_parameter(){return this.getRuleContext(0,Ln)}lambda(){return this.getRuleContext(0,Ks)}cast_expr(){return this.getRuleContext(0,Vs)}case_expr(){return this.getRuleContext(0,js)}an_id_or_type(){return this.getRuleContext(0,Rh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}id_or_type(){return this.getRuleContext(0,Hh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}value_constructor(){return this.getRuleContext(0,sr)}bitcast_expr(){return this.getRuleContext(0,zs)}list_literal(){return this.getRuleContext(0,Ms)}dict_literal(){return this.getRuleContext(0,Fs)}struct_literal(){return this.getRuleContext(0,Hs)}get ruleIndex(){return rs.RULE_in_atom_expr}accept(e){return e.visitIn_atom_expr?e.visitIn_atom_expr(this):e.visitChildren(this)}},Vs=class extends W{static{Si(this,"Cast_exprContext")}constructor(e,t){super(e,t)}CAST(){return this.getToken(rs.CAST,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_cast_expr}accept(e){return e.visitCast_expr?e.visitCast_expr(this):e.visitChildren(this)}},zs=class extends W{static{Si(this,"Bitcast_exprContext")}constructor(e,t){super(e,t)}BITCAST(){return this.getToken(rs.BITCAST,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}type_name_simple(){return this.getRuleContext(0,Nn)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_bitcast_expr}accept(e){return e.visitBitcast_expr?e.visitBitcast_expr(this):e.visitChildren(this)}},Gs=class extends W{static{Si(this,"Exists_exprContext")}constructor(e,t){super(e,t)}EXISTS(){return this.getToken(rs.EXISTS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_exists_expr}accept(e){return e.visitExists_expr?e.visitExists_expr(this):e.visitChildren(this)}},js=class extends W{static{Si(this,"Case_exprContext")}constructor(e,t){super(e,t)}CASE(){return this.getToken(rs.CASE,0)}END(){return this.getToken(rs.END,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}when_expr(e){return void 0===e?this.getRuleContexts(yn):this.getRuleContext(e,yn)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_case_expr}accept(e){return e.visitCase_expr?e.visitCase_expr(this):e.visitChildren(this)}},Ks=class extends W{static{Si(this,"LambdaContext")}constructor(e,t){super(e,t)}smart_parenthesis(){return this.getRuleContext(0,ln)}ARROW(){return this.getToken(rs.ARROW,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}lambda_body(){return this.getRuleContext(0,cs)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}get ruleIndex(){return rs.RULE_lambda}accept(e){return e.visitLambda?e.visitLambda(this):e.visitChildren(this)}},Ys=class extends W{static{Si(this,"In_exprContext")}constructor(e,t){super(e,t)}in_unary_subexpr(){return this.getRuleContext(0,Ds)}get ruleIndex(){return rs.RULE_in_expr}accept(e){return e.visitIn_expr?e.visitIn_expr(this):e.visitChildren(this)}},qs=class extends W{static{Si(this,"Json_api_exprContext")}constructor(e,t){super(e,t)}json_value(){return this.getRuleContext(0,tn)}json_exists(){return this.getRuleContext(0,nn)}json_query(){return this.getRuleContext(0,an)}get ruleIndex(){return rs.RULE_json_api_expr}accept(e){return e.visitJson_api_expr?e.visitJson_api_expr(this):e.visitChildren(this)}},$s=class extends W{static{Si(this,"Jsonpath_specContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_jsonpath_spec}accept(e){return e.visitJsonpath_spec?e.visitJsonpath_spec(this):e.visitChildren(this)}},Qs=class extends W{static{Si(this,"Json_variable_nameContext")}constructor(e,t){super(e,t)}id_expr(){return this.getRuleContext(0,vh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_json_variable_name}accept(e){return e.visitJson_variable_name?e.visitJson_variable_name(this):e.visitChildren(this)}},Xs=class extends W{static{Si(this,"Json_variableContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}json_variable_name(){return this.getRuleContext(0,Qs)}get ruleIndex(){return rs.RULE_json_variable}accept(e){return e.visitJson_variable?e.visitJson_variable(this):e.visitChildren(this)}},Zs=class extends W{static{Si(this,"Json_variablesContext")}constructor(e,t){super(e,t)}json_variable(e){return void 0===e?this.getRuleContexts(Xs):this.getRuleContext(e,Xs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_json_variables}accept(e){return e.visitJson_variables?e.visitJson_variables(this):e.visitChildren(this)}},Js=class extends W{static{Si(this,"Json_common_argsContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}COMMA(){return this.getToken(rs.COMMA,0)}jsonpath_spec(){return this.getRuleContext(0,$s)}PASSING(){return this.getToken(rs.PASSING,0)}json_variables(){return this.getRuleContext(0,Zs)}get ruleIndex(){return rs.RULE_json_common_args}accept(e){return e.visitJson_common_args?e.visitJson_common_args(this):e.visitChildren(this)}},en=class extends W{static{Si(this,"Json_case_handlerContext")}constructor(e,t){super(e,t)}ERROR(){return this.getToken(rs.ERROR,0)}NULL(){return this.getToken(rs.NULL,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_json_case_handler}accept(e){return e.visitJson_case_handler?e.visitJson_case_handler(this):e.visitChildren(this)}},tn=class extends W{static{Si(this,"Json_valueContext")}constructor(e,t){super(e,t)}JSON_VALUE(){return this.getToken(rs.JSON_VALUE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}RETURNING(){return this.getToken(rs.RETURNING,0)}type_name_simple(){return this.getRuleContext(0,Nn)}json_case_handler(e){return void 0===e?this.getRuleContexts(en):this.getRuleContext(e,en)}ON(e){return void 0===e?this.getTokens(rs.ON):this.getToken(rs.ON,e)}EMPTY(e){return void 0===e?this.getTokens(rs.EMPTY):this.getToken(rs.EMPTY,e)}ERROR(e){return void 0===e?this.getTokens(rs.ERROR):this.getToken(rs.ERROR,e)}get ruleIndex(){return rs.RULE_json_value}accept(e){return e.visitJson_value?e.visitJson_value(this):e.visitChildren(this)}},sn=class extends W{static{Si(this,"Json_exists_handlerContext")}constructor(e,t){super(e,t)}ON(){return this.getToken(rs.ON,0)}ERROR(e){return void 0===e?this.getTokens(rs.ERROR):this.getToken(rs.ERROR,e)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}get ruleIndex(){return rs.RULE_json_exists_handler}accept(e){return e.visitJson_exists_handler?e.visitJson_exists_handler(this):e.visitChildren(this)}},nn=class extends W{static{Si(this,"Json_existsContext")}constructor(e,t){super(e,t)}JSON_EXISTS(){return this.getToken(rs.JSON_EXISTS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}json_exists_handler(){return this.getRuleContext(0,sn)}get ruleIndex(){return rs.RULE_json_exists}accept(e){return e.visitJson_exists?e.visitJson_exists(this):e.visitChildren(this)}},rn=class extends W{static{Si(this,"Json_query_wrapperContext")}constructor(e,t){super(e,t)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}WITH(){return this.getToken(rs.WITH,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}get ruleIndex(){return rs.RULE_json_query_wrapper}accept(e){return e.visitJson_query_wrapper?e.visitJson_query_wrapper(this):e.visitChildren(this)}},on=class extends W{static{Si(this,"Json_query_handlerContext")}constructor(e,t){super(e,t)}ERROR(){return this.getToken(rs.ERROR,0)}NULL(){return this.getToken(rs.NULL,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}get ruleIndex(){return rs.RULE_json_query_handler}accept(e){return e.visitJson_query_handler?e.visitJson_query_handler(this):e.visitChildren(this)}},an=class extends W{static{Si(this,"Json_queryContext")}constructor(e,t){super(e,t)}JSON_QUERY(){return this.getToken(rs.JSON_QUERY,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}json_common_args(){return this.getRuleContext(0,Js)}RPAREN(){return this.getToken(rs.RPAREN,0)}json_query_wrapper(){return this.getRuleContext(0,rn)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}json_query_handler(e){return void 0===e?this.getRuleContexts(on):this.getRuleContext(e,on)}ON(e){return void 0===e?this.getTokens(rs.ON):this.getToken(rs.ON,e)}EMPTY(){return this.getToken(rs.EMPTY,0)}ERROR(){return this.getToken(rs.ERROR,0)}get ruleIndex(){return rs.RULE_json_query}accept(e){return e.visitJson_query?e.visitJson_query(this):e.visitChildren(this)}},ln=class extends W{static{Si(this,"Smart_parenthesisContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}named_expr_list(){return this.getRuleContext(0,vn)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_smart_parenthesis}accept(e){return e.visitSmart_parenthesis?e.visitSmart_parenthesis(this):e.visitChildren(this)}},cn=class extends W{static{Si(this,"Expr_listContext")}constructor(e,t){super(e,t)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_expr_list}accept(e){return e.visitExpr_list?e.visitExpr_list(this):e.visitChildren(this)}},hn=class extends W{static{Si(this,"Pure_column_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Lh):this.getRuleContext(e,Lh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pure_column_list}accept(e){return e.visitPure_column_list?e.visitPure_column_list(this):e.visitChildren(this)}},dn=class extends W{static{Si(this,"Pure_column_or_namedContext")}constructor(e,t){super(e,t)}bind_parameter(){return this.getRuleContext(0,Ln)}an_id(){return this.getRuleContext(0,Lh)}get ruleIndex(){return rs.RULE_pure_column_or_named}accept(e){return e.visitPure_column_or_named?e.visitPure_column_or_named(this):e.visitChildren(this)}},un=class extends W{static{Si(this,"Pure_column_or_named_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}pure_column_or_named(e){return void 0===e?this.getRuleContexts(dn):this.getRuleContext(e,dn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pure_column_or_named_list}accept(e){return e.visitPure_column_or_named_list?e.visitPure_column_or_named_list(this):e.visitChildren(this)}},gn=class extends W{static{Si(this,"Column_nameContext")}constructor(e,t){super(e,t)}opt_id_prefix(){return this.getRuleContext(0,Fh)}an_id(){return this.getRuleContext(0,Lh)}get ruleIndex(){return rs.RULE_column_name}accept(e){return e.visitColumn_name?e.visitColumn_name(this):e.visitChildren(this)}},pn=class extends W{static{Si(this,"Without_column_nameContext")}constructor(e,t){super(e,t)}an_id(e){return void 0===e?this.getRuleContexts(Lh):this.getRuleContext(e,Lh)}DOT(){return this.getToken(rs.DOT,0)}an_id_without(){return this.getRuleContext(0,Ih)}get ruleIndex(){return rs.RULE_without_column_name}accept(e){return e.visitWithout_column_name?e.visitWithout_column_name(this):e.visitChildren(this)}},mn=class extends W{static{Si(this,"Column_listContext")}constructor(e,t){super(e,t)}column_name(e){return void 0===e?this.getRuleContexts(gn):this.getRuleContext(e,gn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_column_list}accept(e){return e.visitColumn_list?e.visitColumn_list(this):e.visitChildren(this)}},fn=class extends W{static{Si(this,"Without_column_listContext")}constructor(e,t){super(e,t)}without_column_name(e){return void 0===e?this.getRuleContexts(pn):this.getRuleContext(e,pn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_without_column_list}accept(e){return e.visitWithout_column_list?e.visitWithout_column_list(this):e.visitChildren(this)}},_n=class extends W{static{Si(this,"Named_exprContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id_or_type(){return this.getRuleContext(0,Rh)}get ruleIndex(){return rs.RULE_named_expr}accept(e){return e.visitNamed_expr?e.visitNamed_expr(this):e.visitChildren(this)}},vn=class extends W{static{Si(this,"Named_expr_listContext")}constructor(e,t){super(e,t)}named_expr(e){return void 0===e?this.getRuleContexts(_n):this.getRuleContext(e,_n)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_named_expr_list}accept(e){return e.visitNamed_expr_list?e.visitNamed_expr_list(this):e.visitChildren(this)}},Cn=class extends W{static{Si(this,"Invoke_exprContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}invoke_expr_tail(){return this.getRuleContext(0,bn)}opt_set_quantifier(){return this.getRuleContext(0,Lr)}named_expr_list(){return this.getRuleContext(0,vn)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_invoke_expr}accept(e){return e.visitInvoke_expr?e.visitInvoke_expr(this):e.visitChildren(this)}},bn=class extends W{static{Si(this,"Invoke_expr_tailContext")}constructor(e,t){super(e,t)}null_treatment(){return this.getRuleContext(0,Vc)}filter_clause(){return this.getRuleContext(0,zc)}OVER(){return this.getToken(rs.OVER,0)}window_name_or_specification(){return this.getRuleContext(0,Gc)}get ruleIndex(){return rs.RULE_invoke_expr_tail}accept(e){return e.visitInvoke_expr_tail?e.visitInvoke_expr_tail(this):e.visitChildren(this)}},En=class extends W{static{Si(this,"Using_call_exprContext")}constructor(e,t){super(e,t)}invoke_expr(){return this.getRuleContext(0,Cn)}an_id_or_type(e){return void 0===e?this.getRuleContexts(Rh):this.getRuleContext(e,Rh)}NAMESPACE(){return this.getToken(rs.NAMESPACE,0)}an_id_expr(){return this.getRuleContext(0,xh)}bind_parameter(){return this.getRuleContext(0,Ln)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}get ruleIndex(){return rs.RULE_using_call_expr}accept(e){return e.visitUsing_call_expr?e.visitUsing_call_expr(this):e.visitChildren(this)}},Sn=class extends W{static{Si(this,"Key_exprContext")}constructor(e,t){super(e,t)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}expr(){return this.getRuleContext(0,gs)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}get ruleIndex(){return rs.RULE_key_expr}accept(e){return e.visitKey_expr?e.visitKey_expr(this):e.visitChildren(this)}},yn=class extends W{static{Si(this,"When_exprContext")}constructor(e,t){super(e,t)}WHEN(){return this.getToken(rs.WHEN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}THEN(){return this.getToken(rs.THEN,0)}get ruleIndex(){return rs.RULE_when_expr}accept(e){return e.visitWhen_expr?e.visitWhen_expr(this):e.visitChildren(this)}},wn=class extends W{static{Si(this,"Literal_valueContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,sd)}real(){return this.getRuleContext(0,id)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}BLOB(){return this.getToken(rs.BLOB,0)}NULL(){return this.getToken(rs.NULL,0)}CURRENT_TIME(){return this.getToken(rs.CURRENT_TIME,0)}CURRENT_DATE(){return this.getToken(rs.CURRENT_DATE,0)}CURRENT_TIMESTAMP(){return this.getToken(rs.CURRENT_TIMESTAMP,0)}bool_value(){return this.getRuleContext(0,td)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}get ruleIndex(){return rs.RULE_literal_value}accept(e){return e.visitLiteral_value?e.visitLiteral_value(this):e.visitChildren(this)}},Ln=class extends W{static{Si(this,"Bind_parameterContext")}constructor(e,t){super(e,t)}DOLLAR(){return this.getToken(rs.DOLLAR,0)}an_id_or_type(){return this.getRuleContext(0,Rh)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}get ruleIndex(){return rs.RULE_bind_parameter}accept(e){return e.visitBind_parameter?e.visitBind_parameter(this):e.visitChildren(this)}},Rn=class extends W{static{Si(this,"Opt_bind_parameterContext")}constructor(e,t){super(e,t)}bind_parameter(){return this.getRuleContext(0,Ln)}QUESTION(){return this.getToken(rs.QUESTION,0)}get ruleIndex(){return rs.RULE_opt_bind_parameter}accept(e){return e.visitOpt_bind_parameter?e.visitOpt_bind_parameter(this):e.visitChildren(this)}},Tn=class extends W{static{Si(this,"Bind_parameter_listContext")}constructor(e,t){super(e,t)}bind_parameter(e){return void 0===e?this.getRuleContexts(Ln):this.getRuleContext(e,Ln)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_bind_parameter_list}accept(e){return e.visitBind_parameter_list?e.visitBind_parameter_list(this):e.visitChildren(this)}},xn=class extends W{static{Si(this,"Named_bind_parameterContext")}constructor(e,t){super(e,t)}bind_parameter(e){return void 0===e?this.getRuleContexts(Ln):this.getRuleContext(e,Ln)}AS(){return this.getToken(rs.AS,0)}get ruleIndex(){return rs.RULE_named_bind_parameter}accept(e){return e.visitNamed_bind_parameter?e.visitNamed_bind_parameter(this):e.visitChildren(this)}},kn=class extends W{static{Si(this,"Named_bind_parameter_listContext")}constructor(e,t){super(e,t)}named_bind_parameter(e){return void 0===e?this.getRuleContexts(xn):this.getRuleContext(e,xn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_named_bind_parameter_list}accept(e){return e.visitNamed_bind_parameter_list?e.visitNamed_bind_parameter_list(this):e.visitChildren(this)}},An=class extends W{static{Si(this,"Signed_numberContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,sd)}real(){return this.getRuleContext(0,id)}PLUS(){return this.getToken(rs.PLUS,0)}MINUS(){return this.getToken(rs.MINUS,0)}get ruleIndex(){return rs.RULE_signed_number}accept(e){return e.visitSigned_number?e.visitSigned_number(this):e.visitChildren(this)}},Nn=class extends W{static{Si(this,"Type_name_simpleContext")}constructor(e,t){super(e,t)}an_id_pure(){return this.getRuleContext(0,Dh)}get ruleIndex(){return rs.RULE_type_name_simple}accept(e){return e.visitType_name_simple?e.visitType_name_simple(this):e.visitChildren(this)}},In=class extends W{static{Si(this,"Integer_or_bindContext")}constructor(e,t){super(e,t)}integer(){return this.getRuleContext(0,sd)}bind_parameter(){return this.getRuleContext(0,Ln)}get ruleIndex(){return rs.RULE_integer_or_bind}accept(e){return e.visitInteger_or_bind?e.visitInteger_or_bind(this):e.visitChildren(this)}},On=class extends W{static{Si(this,"Type_name_tagContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,fh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bind_parameter(){return this.getRuleContext(0,Ln)}get ruleIndex(){return rs.RULE_type_name_tag}accept(e){return e.visitType_name_tag?e.visitType_name_tag(this):e.visitChildren(this)}},Dn=class extends W{static{Si(this,"Struct_argContext")}constructor(e,t){super(e,t)}type_name_tag(){return this.getRuleContext(0,On)}COLON(){return this.getToken(rs.COLON,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}get ruleIndex(){return rs.RULE_struct_arg}accept(e){return e.visitStruct_arg?e.visitStruct_arg(this):e.visitChildren(this)}},Mn=class extends W{static{Si(this,"Struct_arg_positionalContext")}constructor(e,t){super(e,t)}type_name_tag(){return this.getRuleContext(0,On)}type_name_or_bind(){return this.getRuleContext(0,tr)}NULL(){return this.getToken(rs.NULL,0)}NOT(){return this.getToken(rs.NOT,0)}AS(){return this.getToken(rs.AS,0)}get ruleIndex(){return rs.RULE_struct_arg_positional}accept(e){return e.visitStruct_arg_positional?e.visitStruct_arg_positional(this):e.visitChildren(this)}},Pn=class extends W{static{Si(this,"Variant_argContext")}constructor(e,t){super(e,t)}type_name_or_bind(){return this.getRuleContext(0,tr)}type_name_tag(){return this.getRuleContext(0,On)}COLON(){return this.getToken(rs.COLON,0)}get ruleIndex(){return rs.RULE_variant_arg}accept(e){return e.visitVariant_arg?e.visitVariant_arg(this):e.visitChildren(this)}},Fn=class extends W{static{Si(this,"Callable_argContext")}constructor(e,t){super(e,t)}variant_arg(){return this.getRuleContext(0,Pn)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}AUTOMAP(){return this.getToken(rs.AUTOMAP,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}get ruleIndex(){return rs.RULE_callable_arg}accept(e){return e.visitCallable_arg?e.visitCallable_arg(this):e.visitChildren(this)}},Un=class extends W{static{Si(this,"Callable_arg_listContext")}constructor(e,t){super(e,t)}callable_arg(e){return void 0===e?this.getRuleContexts(Fn):this.getRuleContext(e,Fn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_callable_arg_list}accept(e){return e.visitCallable_arg_list?e.visitCallable_arg_list(this):e.visitChildren(this)}},Hn=class extends W{static{Si(this,"Type_name_decimalContext")}constructor(e,t){super(e,t)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}integer_or_bind(e){return void 0===e?this.getRuleContexts(In):this.getRuleContext(e,In)}COMMA(){return this.getToken(rs.COMMA,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_type_name_decimal}accept(e){return e.visitType_name_decimal?e.visitType_name_decimal(this):e.visitChildren(this)}},Bn=class extends W{static{Si(this,"Type_name_optionalContext")}constructor(e,t){super(e,t)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_optional}accept(e){return e.visitType_name_optional?e.visitType_name_optional(this):e.visitChildren(this)}},Wn=class extends W{static{Si(this,"Type_name_tupleContext")}constructor(e,t){super(e,t)}TUPLE(){return this.getToken(rs.TUPLE,0)}LESS(){return this.getToken(rs.LESS,0)}GREATER(){return this.getToken(rs.GREATER,0)}NOT_EQUALS2(){return this.getToken(rs.NOT_EQUALS2,0)}type_name_or_bind(e){return void 0===e?this.getRuleContexts(tr):this.getRuleContext(e,tr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_tuple}accept(e){return e.visitType_name_tuple?e.visitType_name_tuple(this):e.visitChildren(this)}},Vn=class extends W{static{Si(this,"Type_name_structContext")}constructor(e,t){super(e,t)}STRUCT(){return this.getToken(rs.STRUCT,0)}LESS(){return this.getToken(rs.LESS,0)}GREATER(){return this.getToken(rs.GREATER,0)}NOT_EQUALS2(){return this.getToken(rs.NOT_EQUALS2,0)}struct_arg(e){return void 0===e?this.getRuleContexts(Dn):this.getRuleContext(e,Dn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_struct}accept(e){return e.visitType_name_struct?e.visitType_name_struct(this):e.visitChildren(this)}},zn=class extends W{static{Si(this,"Type_name_variantContext")}constructor(e,t){super(e,t)}VARIANT(){return this.getToken(rs.VARIANT,0)}LESS(){return this.getToken(rs.LESS,0)}variant_arg(e){return void 0===e?this.getRuleContexts(Pn):this.getRuleContext(e,Pn)}GREATER(){return this.getToken(rs.GREATER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_variant}accept(e){return e.visitType_name_variant?e.visitType_name_variant(this):e.visitChildren(this)}},Gn=class extends W{static{Si(this,"Type_name_listContext")}constructor(e,t){super(e,t)}LIST(){return this.getToken(rs.LIST,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_list}accept(e){return e.visitType_name_list?e.visitType_name_list(this):e.visitChildren(this)}},jn=class extends W{static{Si(this,"Type_name_streamContext")}constructor(e,t){super(e,t)}STREAM(){return this.getToken(rs.STREAM,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_stream}accept(e){return e.visitType_name_stream?e.visitType_name_stream(this):e.visitChildren(this)}},Kn=class extends W{static{Si(this,"Type_name_flowContext")}constructor(e,t){super(e,t)}FLOW(){return this.getToken(rs.FLOW,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_flow}accept(e){return e.visitType_name_flow?e.visitType_name_flow(this):e.visitChildren(this)}},Yn=class extends W{static{Si(this,"Type_name_dictContext")}constructor(e,t){super(e,t)}DICT(){return this.getToken(rs.DICT,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(e){return void 0===e?this.getRuleContexts(tr):this.getRuleContext(e,tr)}COMMA(){return this.getToken(rs.COMMA,0)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_dict}accept(e){return e.visitType_name_dict?e.visitType_name_dict(this):e.visitChildren(this)}},qn=class extends W{static{Si(this,"Type_name_setContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_set}accept(e){return e.visitType_name_set?e.visitType_name_set(this):e.visitChildren(this)}},$n=class extends W{static{Si(this,"Type_name_enumContext")}constructor(e,t){super(e,t)}ENUM(){return this.getToken(rs.ENUM,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_tag(e){return void 0===e?this.getRuleContexts(On):this.getRuleContext(e,On)}GREATER(){return this.getToken(rs.GREATER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_type_name_enum}accept(e){return e.visitType_name_enum?e.visitType_name_enum(this):e.visitChildren(this)}},Qn=class extends W{static{Si(this,"Type_name_resourceContext")}constructor(e,t){super(e,t)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_tag(){return this.getRuleContext(0,On)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_resource}accept(e){return e.visitType_name_resource?e.visitType_name_resource(this):e.visitChildren(this)}},Xn=class extends W{static{Si(this,"Type_name_taggedContext")}constructor(e,t){super(e,t)}TAGGED(){return this.getToken(rs.TAGGED,0)}LESS(){return this.getToken(rs.LESS,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}COMMA(){return this.getToken(rs.COMMA,0)}type_name_tag(){return this.getRuleContext(0,On)}GREATER(){return this.getToken(rs.GREATER,0)}get ruleIndex(){return rs.RULE_type_name_tagged}accept(e){return e.visitType_name_tagged?e.visitType_name_tagged(this):e.visitChildren(this)}},Zn=class extends W{static{Si(this,"Type_name_callableContext")}constructor(e,t){super(e,t)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}LESS(){return this.getToken(rs.LESS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}ARROW(){return this.getToken(rs.ARROW,0)}type_name_or_bind(){return this.getRuleContext(0,tr)}GREATER(){return this.getToken(rs.GREATER,0)}callable_arg_list(e){return void 0===e?this.getRuleContexts(Un):this.getRuleContext(e,Un)}COMMA(){return this.getToken(rs.COMMA,0)}LBRACE_SQUARE(){return this.getToken(rs.LBRACE_SQUARE,0)}RBRACE_SQUARE(){return this.getToken(rs.RBRACE_SQUARE,0)}get ruleIndex(){return rs.RULE_type_name_callable}accept(e){return e.visitType_name_callable?e.visitType_name_callable(this):e.visitChildren(this)}},Jn=class extends W{static{Si(this,"Type_name_compositeContext")}constructor(e,t){super(e,t)}type_name_optional(){return this.getRuleContext(0,Bn)}type_name_tuple(){return this.getRuleContext(0,Wn)}type_name_struct(){return this.getRuleContext(0,Vn)}type_name_variant(){return this.getRuleContext(0,zn)}type_name_list(){return this.getRuleContext(0,Gn)}type_name_stream(){return this.getRuleContext(0,jn)}type_name_flow(){return this.getRuleContext(0,Kn)}type_name_dict(){return this.getRuleContext(0,Yn)}type_name_set(){return this.getRuleContext(0,qn)}type_name_enum(){return this.getRuleContext(0,$n)}type_name_resource(){return this.getRuleContext(0,Qn)}type_name_tagged(){return this.getRuleContext(0,Xn)}type_name_callable(){return this.getRuleContext(0,Zn)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_type_name_composite}accept(e){return e.visitType_name_composite?e.visitType_name_composite(this):e.visitChildren(this)}},er=class extends W{static{Si(this,"Type_nameContext")}constructor(e,t){super(e,t)}type_name_composite(){return this.getRuleContext(0,Jn)}type_name_decimal(){return this.getRuleContext(0,Hn)}type_name_simple(){return this.getRuleContext(0,Nn)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}get ruleIndex(){return rs.RULE_type_name}accept(e){return e.visitType_name?e.visitType_name(this):e.visitChildren(this)}},tr=class extends W{static{Si(this,"Type_name_or_bindContext")}constructor(e,t){super(e,t)}type_name(){return this.getRuleContext(0,er)}bind_parameter(){return this.getRuleContext(0,Ln)}get ruleIndex(){return rs.RULE_type_name_or_bind}accept(e){return e.visitType_name_or_bind?e.visitType_name_or_bind(this):e.visitChildren(this)}},ir=class extends W{static{Si(this,"Value_constructor_literalContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_value_constructor_literal}accept(e){return e.visitValue_constructor_literal?e.visitValue_constructor_literal(this):e.visitChildren(this)}},sr=class extends W{static{Si(this,"Value_constructorContext")}constructor(e,t){super(e,t)}VARIANT(){return this.getToken(rs.VARIANT,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}RPAREN(){return this.getToken(rs.RPAREN,0)}ENUM(){return this.getToken(rs.ENUM,0)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}get ruleIndex(){return rs.RULE_value_constructor}accept(e){return e.visitValue_constructor?e.visitValue_constructor(this):e.visitChildren(this)}},nr=class extends W{static{Si(this,"Declare_stmtContext")}constructor(e,t){super(e,t)}DECLARE(){return this.getToken(rs.DECLARE,0)}bind_parameter(){return this.getRuleContext(0,Ln)}AS(){return this.getToken(rs.AS,0)}type_name(){return this.getRuleContext(0,er)}EQUALS(){return this.getToken(rs.EQUALS,0)}literal_value(){return this.getRuleContext(0,wn)}get ruleIndex(){return rs.RULE_declare_stmt}accept(e){return e.visitDeclare_stmt?e.visitDeclare_stmt(this):e.visitChildren(this)}},rr=class extends W{static{Si(this,"Module_pathContext")}constructor(e,t){super(e,t)}an_id(e){return void 0===e?this.getRuleContexts(Lh):this.getRuleContext(e,Lh)}DOT(e){return void 0===e?this.getTokens(rs.DOT):this.getToken(rs.DOT,e)}get ruleIndex(){return rs.RULE_module_path}accept(e){return e.visitModule_path?e.visitModule_path(this):e.visitChildren(this)}},or=class extends W{static{Si(this,"Import_stmtContext")}constructor(e,t){super(e,t)}IMPORT(){return this.getToken(rs.IMPORT,0)}module_path(){return this.getRuleContext(0,rr)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}named_bind_parameter_list(){return this.getRuleContext(0,kn)}get ruleIndex(){return rs.RULE_import_stmt}accept(e){return e.visitImport_stmt?e.visitImport_stmt(this):e.visitChildren(this)}},ar=class extends W{static{Si(this,"Export_stmtContext")}constructor(e,t){super(e,t)}EXPORT(){return this.getToken(rs.EXPORT,0)}bind_parameter_list(){return this.getRuleContext(0,Tn)}get ruleIndex(){return rs.RULE_export_stmt}accept(e){return e.visitExport_stmt?e.visitExport_stmt(this):e.visitChildren(this)}},lr=class extends W{static{Si(this,"Call_actionContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Ln)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}expr_list(){return this.getRuleContext(0,cn)}get ruleIndex(){return rs.RULE_call_action}accept(e){return e.visitCall_action?e.visitCall_action(this):e.visitChildren(this)}},cr=class extends W{static{Si(this,"Inline_actionContext")}constructor(e,t){super(e,t)}BEGIN(){return this.getToken(rs.BEGIN,0)}define_action_or_subquery_body(){return this.getRuleContext(0,Xl)}END(){return this.getToken(rs.END,0)}DO(){return this.getToken(rs.DO,0)}get ruleIndex(){return rs.RULE_inline_action}accept(e){return e.visitInline_action?e.visitInline_action(this):e.visitChildren(this)}},hr=class extends W{static{Si(this,"Do_stmtContext")}constructor(e,t){super(e,t)}DO(){return this.getToken(rs.DO,0)}call_action(){return this.getRuleContext(0,lr)}inline_action(){return this.getRuleContext(0,cr)}get ruleIndex(){return rs.RULE_do_stmt}accept(e){return e.visitDo_stmt?e.visitDo_stmt(this):e.visitChildren(this)}},dr=class extends W{static{Si(this,"Pragma_stmtContext")}constructor(e,t){super(e,t)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}opt_id_prefix_or_type(){return this.getRuleContext(0,Bh)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}pragma_value(e){return void 0===e?this.getRuleContexts(ur):this.getRuleContext(e,ur)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_pragma_stmt}accept(e){return e.visitPragma_stmt?e.visitPragma_stmt(this):e.visitChildren(this)}},ur=class extends W{static{Si(this,"Pragma_valueContext")}constructor(e,t){super(e,t)}signed_number(){return this.getRuleContext(0,An)}id(){return this.getRuleContext(0,fh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,td)}bind_parameter(){return this.getRuleContext(0,Ln)}get ruleIndex(){return rs.RULE_pragma_value}accept(e){return e.visitPragma_value?e.visitPragma_value(this):e.visitChildren(this)}},gr=class extends W{static{Si(this,"Sort_specificationContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}ASC(){return this.getToken(rs.ASC,0)}DESC(){return this.getToken(rs.DESC,0)}get ruleIndex(){return rs.RULE_sort_specification}accept(e){return e.visitSort_specification?e.visitSort_specification(this):e.visitChildren(this)}},pr=class extends W{static{Si(this,"Sort_specification_listContext")}constructor(e,t){super(e,t)}sort_specification(e){return void 0===e?this.getRuleContexts(gr):this.getRuleContext(e,gr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_sort_specification_list}accept(e){return e.visitSort_specification_list?e.visitSort_specification_list(this):e.visitChildren(this)}},mr=class extends W{static{Si(this,"Select_stmtContext")}constructor(e,t){super(e,t)}select_kind_parenthesis(e){return void 0===e?this.getRuleContexts(_r):this.getRuleContext(e,_r)}select_op(e){return void 0===e?this.getRuleContexts(vr):this.getRuleContext(e,vr)}get ruleIndex(){return rs.RULE_select_stmt}accept(e){return e.visitSelect_stmt?e.visitSelect_stmt(this):e.visitChildren(this)}},fr=class extends W{static{Si(this,"Select_unparenthesized_stmtContext")}constructor(e,t){super(e,t)}select_kind_partial(){return this.getRuleContext(0,Cr)}select_op(e){return void 0===e?this.getRuleContexts(vr):this.getRuleContext(e,vr)}select_kind_parenthesis(e){return void 0===e?this.getRuleContexts(_r):this.getRuleContext(e,_r)}get ruleIndex(){return rs.RULE_select_unparenthesized_stmt}accept(e){return e.visitSelect_unparenthesized_stmt?e.visitSelect_unparenthesized_stmt(this):e.visitChildren(this)}},_r=class extends W{static{Si(this,"Select_kind_parenthesisContext")}constructor(e,t){super(e,t)}select_kind_partial(){return this.getRuleContext(0,Cr)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_select_kind_parenthesis}accept(e){return e.visitSelect_kind_parenthesis?e.visitSelect_kind_parenthesis(this):e.visitChildren(this)}},vr=class extends W{static{Si(this,"Select_opContext")}constructor(e,t){super(e,t)}UNION(){return this.getToken(rs.UNION,0)}ALL(){return this.getToken(rs.ALL,0)}INTERSECT(){return this.getToken(rs.INTERSECT,0)}EXCEPT(){return this.getToken(rs.EXCEPT,0)}get ruleIndex(){return rs.RULE_select_op}accept(e){return e.visitSelect_op?e.visitSelect_op(this):e.visitChildren(this)}},Cr=class extends W{static{Si(this,"Select_kind_partialContext")}constructor(e,t){super(e,t)}select_kind(){return this.getRuleContext(0,br)}LIMIT(){return this.getToken(rs.LIMIT,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}OFFSET(){return this.getToken(rs.OFFSET,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_select_kind_partial}accept(e){return e.visitSelect_kind_partial?e.visitSelect_kind_partial(this):e.visitChildren(this)}},br=class extends W{static{Si(this,"Select_kindContext")}constructor(e,t){super(e,t)}process_core(){return this.getRuleContext(0,Er)}reduce_core(){return this.getRuleContext(0,wr)}select_core(){return this.getRuleContext(0,Rr)}DISCARD(){return this.getToken(rs.DISCARD,0)}INTO(){return this.getToken(rs.INTO,0)}RESULT(){return this.getToken(rs.RESULT,0)}pure_column_or_named(){return this.getRuleContext(0,dn)}get ruleIndex(){return rs.RULE_select_kind}accept(e){return e.visitSelect_kind?e.visitSelect_kind(this):e.visitChildren(this)}},Er=class extends W{static{Si(this,"Process_coreContext")}constructor(e,t){super(e,t)}PROCESS(){return this.getToken(rs.PROCESS,0)}named_single_source(e){return void 0===e?this.getRuleContexts(Co):this.getRuleContext(e,Co)}STREAM(){return this.getToken(rs.STREAM,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}USING(){return this.getToken(rs.USING,0)}using_call_expr(){return this.getRuleContext(0,En)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Lh)}WITH(){return this.getToken(rs.WITH,0)}external_call_settings(){return this.getRuleContext(0,yr)}where_expr(){return this.getRuleContext(0,cd)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}ASSUME(){return this.getToken(rs.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_process_core}accept(e){return e.visitProcess_core?e.visitProcess_core(this):e.visitChildren(this)}},Sr=class extends W{static{Si(this,"External_call_paramContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_external_call_param}accept(e){return e.visitExternal_call_param?e.visitExternal_call_param(this):e.visitChildren(this)}},yr=class extends W{static{Si(this,"External_call_settingsContext")}constructor(e,t){super(e,t)}external_call_param(e){return void 0===e?this.getRuleContexts(Sr):this.getRuleContext(e,Sr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_external_call_settings}accept(e){return e.visitExternal_call_settings?e.visitExternal_call_settings(this):e.visitChildren(this)}},wr=class extends W{static{Si(this,"Reduce_coreContext")}constructor(e,t){super(e,t)}REDUCE(){return this.getToken(rs.REDUCE,0)}named_single_source(e){return void 0===e?this.getRuleContexts(Co):this.getRuleContext(e,Co)}ON(){return this.getToken(rs.ON,0)}column_list(){return this.getRuleContext(0,mn)}USING(){return this.getToken(rs.USING,0)}using_call_expr(){return this.getRuleContext(0,En)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}PRESORT(){return this.getToken(rs.PRESORT,0)}sort_specification_list(){return this.getRuleContext(0,pr)}ALL(){return this.getToken(rs.ALL,0)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Lh)}where_expr(){return this.getRuleContext(0,cd)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}ASSUME(){return this.getToken(rs.ASSUME,0)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_reduce_core}accept(e){return e.visitReduce_core?e.visitReduce_core(this):e.visitChildren(this)}},Lr=class extends W{static{Si(this,"Opt_set_quantifierContext")}constructor(e,t){super(e,t)}ALL(){return this.getToken(rs.ALL,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}get ruleIndex(){return rs.RULE_opt_set_quantifier}accept(e){return e.visitOpt_set_quantifier?e.visitOpt_set_quantifier(this):e.visitChildren(this)}},Rr=class extends W{static{Si(this,"Select_coreContext")}constructor(e,t){super(e,t)}SELECT(){return this.getToken(rs.SELECT,0)}opt_set_quantifier(){return this.getRuleContext(0,Lr)}result_column(e){return void 0===e?this.getRuleContexts(po):this.getRuleContext(e,po)}from_stmt(e){return void 0===e?this.getRuleContexts(hd):this.getRuleContext(e,hd)}STREAM(){return this.getToken(rs.STREAM,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}without_column_list(){return this.getRuleContext(0,fn)}where_expr(){return this.getRuleContext(0,cd)}group_by_clause(){return this.getRuleContext(0,no)}HAVING(){return this.getToken(rs.HAVING,0)}expr(){return this.getRuleContext(0,gs)}window_clause(){return this.getRuleContext(0,Kc)}ext_order_by_clause(){return this.getRuleContext(0,so)}get ruleIndex(){return rs.RULE_select_core}accept(e){return e.visitSelect_core?e.visitSelect_core(this):e.visitChildren(this)}},Tr=class extends W{static{Si(this,"Row_pattern_recognition_clauseContext")}constructor(e,t){super(e,t)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern_common_syntax(){return this.getRuleContext(0,Or)}RPAREN(){return this.getToken(rs.RPAREN,0)}window_partition_clause(){return this.getRuleContext(0,Jc)}order_by_clause(){return this.getRuleContext(0,io)}row_pattern_measures(){return this.getRuleContext(0,Ar)}row_pattern_rows_per_match(){return this.getRuleContext(0,xr)}get ruleIndex(){return rs.RULE_row_pattern_recognition_clause}accept(e){return e.visitRow_pattern_recognition_clause?e.visitRow_pattern_recognition_clause(this):e.visitChildren(this)}},xr=class extends W{static{Si(this,"Row_pattern_rows_per_matchContext")}constructor(e,t){super(e,t)}ONE(){return this.getToken(rs.ONE,0)}ROW(){return this.getToken(rs.ROW,0)}PER(){return this.getToken(rs.PER,0)}MATCH(){return this.getToken(rs.MATCH,0)}ALL(){return this.getToken(rs.ALL,0)}ROWS(){return this.getToken(rs.ROWS,0)}row_pattern_empty_match_handling(){return this.getRuleContext(0,kr)}get ruleIndex(){return rs.RULE_row_pattern_rows_per_match}accept(e){return e.visitRow_pattern_rows_per_match?e.visitRow_pattern_rows_per_match(this):e.visitChildren(this)}},kr=class extends W{static{Si(this,"Row_pattern_empty_match_handlingContext")}constructor(e,t){super(e,t)}SHOW(){return this.getToken(rs.SHOW,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}OMIT(){return this.getToken(rs.OMIT,0)}WITH(){return this.getToken(rs.WITH,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}ROWS(){return this.getToken(rs.ROWS,0)}get ruleIndex(){return rs.RULE_row_pattern_empty_match_handling}accept(e){return e.visitRow_pattern_empty_match_handling?e.visitRow_pattern_empty_match_handling(this):e.visitChildren(this)}},Ar=class extends W{static{Si(this,"Row_pattern_measuresContext")}constructor(e,t){super(e,t)}MEASURES(){return this.getToken(rs.MEASURES,0)}row_pattern_measure_list(){return this.getRuleContext(0,Nr)}get ruleIndex(){return rs.RULE_row_pattern_measures}accept(e){return e.visitRow_pattern_measures?e.visitRow_pattern_measures(this):e.visitChildren(this)}},Nr=class extends W{static{Si(this,"Row_pattern_measure_listContext")}constructor(e,t){super(e,t)}row_pattern_measure_definition(e){return void 0===e?this.getRuleContexts(Ir):this.getRuleContext(e,Ir)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_measure_list}accept(e){return e.visitRow_pattern_measure_list?e.visitRow_pattern_measure_list(this):e.visitChildren(this)}},Ir=class extends W{static{Si(this,"Row_pattern_measure_definitionContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Lh)}get ruleIndex(){return rs.RULE_row_pattern_measure_definition}accept(e){return e.visitRow_pattern_measure_definition?e.visitRow_pattern_measure_definition(this):e.visitChildren(this)}},Or=class extends W{static{Si(this,"Row_pattern_common_syntaxContext")}constructor(e,t){super(e,t)}PATTERN(){return this.getToken(rs.PATTERN,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern(){return this.getRuleContext(0,Fr)}RPAREN(){return this.getToken(rs.RPAREN,0)}DEFINE(){return this.getToken(rs.DEFINE,0)}row_pattern_definition_list(){return this.getRuleContext(0,Qr)}AFTER(){return this.getToken(rs.AFTER,0)}MATCH(){return this.getToken(rs.MATCH,0)}row_pattern_skip_to(){return this.getRuleContext(0,Dr)}row_pattern_initial_or_seek(){return this.getRuleContext(0,Pr)}row_pattern_subset_clause(){return this.getRuleContext(0,Gr)}get ruleIndex(){return rs.RULE_row_pattern_common_syntax}accept(e){return e.visitRow_pattern_common_syntax?e.visitRow_pattern_common_syntax(this):e.visitChildren(this)}},Dr=class extends W{static{Si(this,"Row_pattern_skip_toContext")}constructor(e,t){super(e,t)}TSKIP(){return this.getToken(rs.TSKIP,0)}TO(){return this.getToken(rs.TO,0)}NEXT(){return this.getToken(rs.NEXT,0)}ROW(){return this.getToken(rs.ROW,0)}PAST(){return this.getToken(rs.PAST,0)}LAST(){return this.getToken(rs.LAST,0)}FIRST(){return this.getToken(rs.FIRST,0)}row_pattern_skip_to_variable_name(){return this.getRuleContext(0,Mr)}get ruleIndex(){return rs.RULE_row_pattern_skip_to}accept(e){return e.visitRow_pattern_skip_to?e.visitRow_pattern_skip_to(this):e.visitChildren(this)}},Mr=class extends W{static{Si(this,"Row_pattern_skip_to_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_skip_to_variable_name}accept(e){return e.visitRow_pattern_skip_to_variable_name?e.visitRow_pattern_skip_to_variable_name(this):e.visitChildren(this)}},Pr=class extends W{static{Si(this,"Row_pattern_initial_or_seekContext")}constructor(e,t){super(e,t)}INITIAL(){return this.getToken(rs.INITIAL,0)}SEEK(){return this.getToken(rs.SEEK,0)}get ruleIndex(){return rs.RULE_row_pattern_initial_or_seek}accept(e){return e.visitRow_pattern_initial_or_seek?e.visitRow_pattern_initial_or_seek(this):e.visitChildren(this)}},Fr=class extends W{static{Si(this,"Row_patternContext")}constructor(e,t){super(e,t)}row_pattern_term(e){return void 0===e?this.getRuleContexts(Ur):this.getRuleContext(e,Ur)}PIPE(e){return void 0===e?this.getTokens(rs.PIPE):this.getToken(rs.PIPE,e)}get ruleIndex(){return rs.RULE_row_pattern}accept(e){return e.visitRow_pattern?e.visitRow_pattern(this):e.visitChildren(this)}},Ur=class extends W{static{Si(this,"Row_pattern_termContext")}constructor(e,t){super(e,t)}row_pattern_factor(e){return void 0===e?this.getRuleContexts(Hr):this.getRuleContext(e,Hr)}get ruleIndex(){return rs.RULE_row_pattern_term}accept(e){return e.visitRow_pattern_term?e.visitRow_pattern_term(this):e.visitChildren(this)}},Hr=class extends W{static{Si(this,"Row_pattern_factorContext")}constructor(e,t){super(e,t)}row_pattern_primary(){return this.getRuleContext(0,Wr)}row_pattern_quantifier(){return this.getRuleContext(0,Br)}get ruleIndex(){return rs.RULE_row_pattern_factor}accept(e){return e.visitRow_pattern_factor?e.visitRow_pattern_factor(this):e.visitChildren(this)}},Br=class extends W{static{Si(this,"Row_pattern_quantifierContext")}constructor(e,t){super(e,t)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}QUESTION(e){return void 0===e?this.getTokens(rs.QUESTION):this.getToken(rs.QUESTION,e)}PLUS(){return this.getToken(rs.PLUS,0)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}COMMA(){return this.getToken(rs.COMMA,0)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}integer(e){return void 0===e?this.getRuleContexts(sd):this.getRuleContext(e,sd)}get ruleIndex(){return rs.RULE_row_pattern_quantifier}accept(e){return e.visitRow_pattern_quantifier?e.visitRow_pattern_quantifier(this):e.visitChildren(this)}},Wr=class extends W{static{Si(this,"Row_pattern_primaryContext")}constructor(e,t){super(e,t)}row_pattern_primary_variable_name(){return this.getRuleContext(0,Vr)}DOLLAR(){return this.getToken(rs.DOLLAR,0)}CARET(){return this.getToken(rs.CARET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}row_pattern(){return this.getRuleContext(0,Fr)}LBRACE_CURLY(){return this.getToken(rs.LBRACE_CURLY,0)}MINUS(e){return void 0===e?this.getTokens(rs.MINUS):this.getToken(rs.MINUS,e)}RBRACE_CURLY(){return this.getToken(rs.RBRACE_CURLY,0)}row_pattern_permute(){return this.getRuleContext(0,zr)}get ruleIndex(){return rs.RULE_row_pattern_primary}accept(e){return e.visitRow_pattern_primary?e.visitRow_pattern_primary(this):e.visitChildren(this)}},Vr=class extends W{static{Si(this,"Row_pattern_primary_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_primary_variable_name}accept(e){return e.visitRow_pattern_primary_variable_name?e.visitRow_pattern_primary_variable_name(this):e.visitChildren(this)}},zr=class extends W{static{Si(this,"Row_pattern_permuteContext")}constructor(e,t){super(e,t)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern(e){return void 0===e?this.getRuleContexts(Fr):this.getRuleContext(e,Fr)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_permute}accept(e){return e.visitRow_pattern_permute?e.visitRow_pattern_permute(this):e.visitChildren(this)}},Gr=class extends W{static{Si(this,"Row_pattern_subset_clauseContext")}constructor(e,t){super(e,t)}SUBSET(){return this.getToken(rs.SUBSET,0)}row_pattern_subset_list(){return this.getRuleContext(0,jr)}get ruleIndex(){return rs.RULE_row_pattern_subset_clause}accept(e){return e.visitRow_pattern_subset_clause?e.visitRow_pattern_subset_clause(this):e.visitChildren(this)}},jr=class extends W{static{Si(this,"Row_pattern_subset_listContext")}constructor(e,t){super(e,t)}row_pattern_subset_item(e){return void 0===e?this.getRuleContexts(Kr):this.getRuleContext(e,Kr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_subset_list}accept(e){return e.visitRow_pattern_subset_list?e.visitRow_pattern_subset_list(this):e.visitChildren(this)}},Kr=class extends W{static{Si(this,"Row_pattern_subset_itemContext")}constructor(e,t){super(e,t)}row_pattern_subset_item_variable_name(){return this.getRuleContext(0,Yr)}EQUALS(){return this.getToken(rs.EQUALS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}row_pattern_subset_rhs(){return this.getRuleContext(0,qr)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_row_pattern_subset_item}accept(e){return e.visitRow_pattern_subset_item?e.visitRow_pattern_subset_item(this):e.visitChildren(this)}},Yr=class extends W{static{Si(this,"Row_pattern_subset_item_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_subset_item_variable_name}accept(e){return e.visitRow_pattern_subset_item_variable_name?e.visitRow_pattern_subset_item_variable_name(this):e.visitChildren(this)}},qr=class extends W{static{Si(this,"Row_pattern_subset_rhsContext")}constructor(e,t){super(e,t)}row_pattern_subset_rhs_variable_name(e){return void 0===e?this.getRuleContexts($r):this.getRuleContext(e,$r)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_subset_rhs}accept(e){return e.visitRow_pattern_subset_rhs?e.visitRow_pattern_subset_rhs(this):e.visitChildren(this)}},$r=class extends W{static{Si(this,"Row_pattern_subset_rhs_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_subset_rhs_variable_name}accept(e){return e.visitRow_pattern_subset_rhs_variable_name?e.visitRow_pattern_subset_rhs_variable_name(this):e.visitChildren(this)}},Qr=class extends W{static{Si(this,"Row_pattern_definition_listContext")}constructor(e,t){super(e,t)}row_pattern_definition(e){return void 0===e?this.getRuleContexts(Xr):this.getRuleContext(e,Xr)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_row_pattern_definition_list}accept(e){return e.visitRow_pattern_definition_list?e.visitRow_pattern_definition_list(this):e.visitChildren(this)}},Xr=class extends W{static{Si(this,"Row_pattern_definitionContext")}constructor(e,t){super(e,t)}row_pattern_definition_variable_name(){return this.getRuleContext(0,Zr)}AS(){return this.getToken(rs.AS,0)}row_pattern_definition_search_condition(){return this.getRuleContext(0,Jr)}get ruleIndex(){return rs.RULE_row_pattern_definition}accept(e){return e.visitRow_pattern_definition?e.visitRow_pattern_definition(this):e.visitChildren(this)}},Zr=class extends W{static{Si(this,"Row_pattern_definition_variable_nameContext")}constructor(e,t){super(e,t)}row_pattern_variable_name(){return this.getRuleContext(0,to)}get ruleIndex(){return rs.RULE_row_pattern_definition_variable_name}accept(e){return e.visitRow_pattern_definition_variable_name?e.visitRow_pattern_definition_variable_name(this):e.visitChildren(this)}},Jr=class extends W{static{Si(this,"Row_pattern_definition_search_conditionContext")}constructor(e,t){super(e,t)}search_condition(){return this.getRuleContext(0,eo)}get ruleIndex(){return rs.RULE_row_pattern_definition_search_condition}accept(e){return e.visitRow_pattern_definition_search_condition?e.visitRow_pattern_definition_search_condition(this):e.visitChildren(this)}},eo=class extends W{static{Si(this,"Search_conditionContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_search_condition}accept(e){return e.visitSearch_condition?e.visitSearch_condition(this):e.visitChildren(this)}},to=class extends W{static{Si(this,"Row_pattern_variable_nameContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}get ruleIndex(){return rs.RULE_row_pattern_variable_name}accept(e){return e.visitRow_pattern_variable_name?e.visitRow_pattern_variable_name(this):e.visitChildren(this)}},io=class extends W{static{Si(this,"Order_by_clauseContext")}constructor(e,t){super(e,t)}ORDER(){return this.getToken(rs.ORDER,0)}BY(){return this.getToken(rs.BY,0)}sort_specification_list(){return this.getRuleContext(0,pr)}get ruleIndex(){return rs.RULE_order_by_clause}accept(e){return e.visitOrder_by_clause?e.visitOrder_by_clause(this):e.visitChildren(this)}},so=class extends W{static{Si(this,"Ext_order_by_clauseContext")}constructor(e,t){super(e,t)}order_by_clause(){return this.getRuleContext(0,io)}ASSUME(){return this.getToken(rs.ASSUME,0)}get ruleIndex(){return rs.RULE_ext_order_by_clause}accept(e){return e.visitExt_order_by_clause?e.visitExt_order_by_clause(this):e.visitChildren(this)}},no=class extends W{static{Si(this,"Group_by_clauseContext")}constructor(e,t){super(e,t)}GROUP(){return this.getToken(rs.GROUP,0)}BY(){return this.getToken(rs.BY,0)}opt_set_quantifier(){return this.getRuleContext(0,Lr)}grouping_element_list(){return this.getRuleContext(0,ro)}COMPACT(){return this.getToken(rs.COMPACT,0)}WITH(){return this.getToken(rs.WITH,0)}an_id(){return this.getRuleContext(0,Lh)}get ruleIndex(){return rs.RULE_group_by_clause}accept(e){return e.visitGroup_by_clause?e.visitGroup_by_clause(this):e.visitChildren(this)}},ro=class extends W{static{Si(this,"Grouping_element_listContext")}constructor(e,t){super(e,t)}grouping_element(e){return void 0===e?this.getRuleContexts(oo):this.getRuleContext(e,oo)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_grouping_element_list}accept(e){return e.visitGrouping_element_list?e.visitGrouping_element_list(this):e.visitChildren(this)}},oo=class extends W{static{Si(this,"Grouping_elementContext")}constructor(e,t){super(e,t)}ordinary_grouping_set(){return this.getRuleContext(0,ao)}rollup_list(){return this.getRuleContext(0,co)}cube_list(){return this.getRuleContext(0,ho)}grouping_sets_specification(){return this.getRuleContext(0,uo)}hopping_window_specification(){return this.getRuleContext(0,go)}get ruleIndex(){return rs.RULE_grouping_element}accept(e){return e.visitGrouping_element?e.visitGrouping_element(this):e.visitChildren(this)}},ao=class extends W{static{Si(this,"Ordinary_grouping_setContext")}constructor(e,t){super(e,t)}named_expr(){return this.getRuleContext(0,_n)}get ruleIndex(){return rs.RULE_ordinary_grouping_set}accept(e){return e.visitOrdinary_grouping_set?e.visitOrdinary_grouping_set(this):e.visitChildren(this)}},lo=class extends W{static{Si(this,"Ordinary_grouping_set_listContext")}constructor(e,t){super(e,t)}ordinary_grouping_set(e){return void 0===e?this.getRuleContexts(ao):this.getRuleContext(e,ao)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_ordinary_grouping_set_list}accept(e){return e.visitOrdinary_grouping_set_list?e.visitOrdinary_grouping_set_list(this):e.visitChildren(this)}},co=class extends W{static{Si(this,"Rollup_listContext")}constructor(e,t){super(e,t)}ROLLUP(){return this.getToken(rs.ROLLUP,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,lo)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_rollup_list}accept(e){return e.visitRollup_list?e.visitRollup_list(this):e.visitChildren(this)}},ho=class extends W{static{Si(this,"Cube_listContext")}constructor(e,t){super(e,t)}CUBE(){return this.getToken(rs.CUBE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}ordinary_grouping_set_list(){return this.getRuleContext(0,lo)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_cube_list}accept(e){return e.visitCube_list?e.visitCube_list(this):e.visitChildren(this)}},uo=class extends W{static{Si(this,"Grouping_sets_specificationContext")}constructor(e,t){super(e,t)}GROUPING(){return this.getToken(rs.GROUPING,0)}SETS(){return this.getToken(rs.SETS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}grouping_element_list(){return this.getRuleContext(0,ro)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_grouping_sets_specification}accept(e){return e.visitGrouping_sets_specification?e.visitGrouping_sets_specification(this):e.visitChildren(this)}},go=class extends W{static{Si(this,"Hopping_window_specificationContext")}constructor(e,t){super(e,t)}HOP(){return this.getToken(rs.HOP,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(e){return void 0===e?this.getRuleContexts(gs):this.getRuleContext(e,gs)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_hopping_window_specification}accept(e){return e.visitHopping_window_specification?e.visitHopping_window_specification(this):e.visitChildren(this)}},po=class extends W{static{Si(this,"Result_columnContext")}constructor(e,t){super(e,t)}opt_id_prefix(){return this.getRuleContext(0,Fh)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}expr(){return this.getRuleContext(0,gs)}AS(){return this.getToken(rs.AS,0)}an_id_or_type(){return this.getRuleContext(0,Rh)}an_id_as_compat(){return this.getRuleContext(0,Mh)}get ruleIndex(){return rs.RULE_result_column}accept(e){return e.visitResult_column?e.visitResult_column(this):e.visitChildren(this)}},mo=class extends W{static{Si(this,"Join_sourceContext")}constructor(e,t){super(e,t)}flatten_source(e){return void 0===e?this.getRuleContexts(vo):this.getRuleContext(e,vo)}ANY(e){return void 0===e?this.getTokens(rs.ANY):this.getToken(rs.ANY,e)}join_op(e){return void 0===e?this.getRuleContexts(Lo):this.getRuleContext(e,Lo)}join_constraint(e){return void 0===e?this.getRuleContexts(Ro):this.getRuleContext(e,Ro)}get ruleIndex(){return rs.RULE_join_source}accept(e){return e.visitJoin_source?e.visitJoin_source(this):e.visitChildren(this)}},fo=class extends W{static{Si(this,"Named_columnContext")}constructor(e,t){super(e,t)}column_name(){return this.getRuleContext(0,gn)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Lh)}get ruleIndex(){return rs.RULE_named_column}accept(e){return e.visitNamed_column?e.visitNamed_column(this):e.visitChildren(this)}},_o=class extends W{static{Si(this,"Flatten_by_argContext")}constructor(e,t){super(e,t)}named_column(){return this.getRuleContext(0,fo)}LPAREN(){return this.getToken(rs.LPAREN,0)}named_expr_list(){return this.getRuleContext(0,vn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(){return this.getToken(rs.COMMA,0)}get ruleIndex(){return rs.RULE_flatten_by_arg}accept(e){return e.visitFlatten_by_arg?e.visitFlatten_by_arg(this):e.visitChildren(this)}},vo=class extends W{static{Si(this,"Flatten_sourceContext")}constructor(e,t){super(e,t)}named_single_source(){return this.getRuleContext(0,Co)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}BY(){return this.getToken(rs.BY,0)}flatten_by_arg(){return this.getRuleContext(0,_o)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}LIST(){return this.getToken(rs.LIST,0)}DICT(){return this.getToken(rs.DICT,0)}get ruleIndex(){return rs.RULE_flatten_source}accept(e){return e.visitFlatten_source?e.visitFlatten_source(this):e.visitChildren(this)}},Co=class extends W{static{Si(this,"Named_single_sourceContext")}constructor(e,t){super(e,t)}single_source(){return this.getRuleContext(0,bo)}row_pattern_recognition_clause(){return this.getRuleContext(0,Tr)}sample_clause(){return this.getRuleContext(0,Eo)}tablesample_clause(){return this.getRuleContext(0,So)}AS(){return this.getToken(rs.AS,0)}an_id(){return this.getRuleContext(0,Lh)}an_id_as_compat(){return this.getRuleContext(0,Mh)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_named_single_source}accept(e){return e.visitNamed_single_source?e.visitNamed_single_source(this):e.visitChildren(this)}},bo=class extends W{static{Si(this,"Single_sourceContext")}constructor(e,t){super(e,t)}table_ref(){return this.getRuleContext(0,ec)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_single_source}accept(e){return e.visitSingle_source?e.visitSingle_source(this):e.visitChildren(this)}},Eo=class extends W{static{Si(this,"Sample_clauseContext")}constructor(e,t){super(e,t)}SAMPLE(){return this.getToken(rs.SAMPLE,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_sample_clause}accept(e){return e.visitSample_clause?e.visitSample_clause(this):e.visitChildren(this)}},So=class extends W{static{Si(this,"Tablesample_clauseContext")}constructor(e,t){super(e,t)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}sampling_mode(){return this.getRuleContext(0,yo)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}repeatable_clause(){return this.getRuleContext(0,wo)}get ruleIndex(){return rs.RULE_tablesample_clause}accept(e){return e.visitTablesample_clause?e.visitTablesample_clause(this):e.visitChildren(this)}},yo=class extends W{static{Si(this,"Sampling_modeContext")}constructor(e,t){super(e,t)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}get ruleIndex(){return rs.RULE_sampling_mode}accept(e){return e.visitSampling_mode?e.visitSampling_mode(this):e.visitChildren(this)}},wo=class extends W{static{Si(this,"Repeatable_clauseContext")}constructor(e,t){super(e,t)}REPEATABLE(){return this.getToken(rs.REPEATABLE,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr(){return this.getRuleContext(0,gs)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_repeatable_clause}accept(e){return e.visitRepeatable_clause?e.visitRepeatable_clause(this):e.visitChildren(this)}},Lo=class extends W{static{Si(this,"Join_opContext")}constructor(e,t){super(e,t)}COMMA(){return this.getToken(rs.COMMA,0)}JOIN(){return this.getToken(rs.JOIN,0)}INNER(){return this.getToken(rs.INNER,0)}CROSS(){return this.getToken(rs.CROSS,0)}NATURAL(){return this.getToken(rs.NATURAL,0)}LEFT(){return this.getToken(rs.LEFT,0)}RIGHT(){return this.getToken(rs.RIGHT,0)}EXCLUSION(){return this.getToken(rs.EXCLUSION,0)}FULL(){return this.getToken(rs.FULL,0)}OUTER(){return this.getToken(rs.OUTER,0)}ONLY(){return this.getToken(rs.ONLY,0)}SEMI(){return this.getToken(rs.SEMI,0)}get ruleIndex(){return rs.RULE_join_op}accept(e){return e.visitJoin_op?e.visitJoin_op(this):e.visitChildren(this)}},Ro=class extends W{static{Si(this,"Join_constraintContext")}constructor(e,t){super(e,t)}ON(){return this.getToken(rs.ON,0)}expr(){return this.getRuleContext(0,gs)}USING(){return this.getToken(rs.USING,0)}pure_column_or_named_list(){return this.getRuleContext(0,un)}get ruleIndex(){return rs.RULE_join_constraint}accept(e){return e.visitJoin_constraint?e.visitJoin_constraint(this):e.visitChildren(this)}},To=class extends W{static{Si(this,"Returning_columns_listContext")}constructor(e,t){super(e,t)}RETURNING(){return this.getToken(rs.RETURNING,0)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}an_id(e){return void 0===e?this.getRuleContexts(Lh):this.getRuleContext(e,Lh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_returning_columns_list}accept(e){return e.visitReturning_columns_list?e.visitReturning_columns_list(this):e.visitChildren(this)}},xo=class extends W{static{Si(this,"Into_table_stmtContext")}constructor(e,t){super(e,t)}INTO(){return this.getToken(rs.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,lc)}into_values_source(){return this.getRuleContext(0,Ao)}INSERT(){return this.getToken(rs.INSERT,0)}OR(){return this.getToken(rs.OR,0)}ABORT(){return this.getToken(rs.ABORT,0)}REVERT(){return this.getToken(rs.REVERT,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}returning_columns_list(){return this.getRuleContext(0,To)}get ruleIndex(){return rs.RULE_into_table_stmt}accept(e){return e.visitInto_table_stmt?e.visitInto_table_stmt(this):e.visitChildren(this)}},ko=class extends W{static{Si(this,"Into_table_stmt_yqContext")}constructor(e,t){super(e,t)}INTO(){return this.getToken(rs.INTO,0)}into_simple_table_ref(){return this.getRuleContext(0,lc)}into_values_source(){return this.getRuleContext(0,Ao)}INSERT(){return this.getToken(rs.INSERT,0)}OR(){return this.getToken(rs.OR,0)}ABORT(){return this.getToken(rs.ABORT,0)}REVERT(){return this.getToken(rs.REVERT,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}get ruleIndex(){return rs.RULE_into_table_stmt_yq}accept(e){return e.visitInto_table_stmt_yq?e.visitInto_table_stmt_yq(this):e.visitChildren(this)}},Ao=class extends W{static{Si(this,"Into_values_sourceContext")}constructor(e,t){super(e,t)}values_source(){return this.getRuleContext(0,Io)}pure_column_list(){return this.getRuleContext(0,hn)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}VALUES(){return this.getToken(rs.VALUES,0)}get ruleIndex(){return rs.RULE_into_values_source}accept(e){return e.visitInto_values_source?e.visitInto_values_source(this):e.visitChildren(this)}},No=class extends W{static{Si(this,"Values_stmtContext")}constructor(e,t){super(e,t)}VALUES(){return this.getToken(rs.VALUES,0)}values_source_row_list(){return this.getRuleContext(0,Oo)}get ruleIndex(){return rs.RULE_values_stmt}accept(e){return e.visitValues_stmt?e.visitValues_stmt(this):e.visitChildren(this)}},Io=class extends W{static{Si(this,"Values_sourceContext")}constructor(e,t){super(e,t)}values_stmt(){return this.getRuleContext(0,No)}select_stmt(){return this.getRuleContext(0,mr)}get ruleIndex(){return rs.RULE_values_source}accept(e){return e.visitValues_source?e.visitValues_source(this):e.visitChildren(this)}},Oo=class extends W{static{Si(this,"Values_source_row_listContext")}constructor(e,t){super(e,t)}values_source_row(e){return void 0===e?this.getRuleContexts(Do):this.getRuleContext(e,Do)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_values_source_row_list}accept(e){return e.visitValues_source_row_list?e.visitValues_source_row_list(this):e.visitChildren(this)}},Do=class extends W{static{Si(this,"Values_source_rowContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}expr_list(){return this.getRuleContext(0,cn)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_values_source_row}accept(e){return e.visitValues_source_row?e.visitValues_source_row(this):e.visitChildren(this)}},Mo=class extends W{static{Si(this,"Simple_values_sourceContext")}constructor(e,t){super(e,t)}expr_list(){return this.getRuleContext(0,cn)}select_stmt(){return this.getRuleContext(0,mr)}get ruleIndex(){return rs.RULE_simple_values_source}accept(e){return e.visitSimple_values_source?e.visitSimple_values_source(this):e.visitChildren(this)}},Po=class extends W{static{Si(this,"Create_external_data_source_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,rc)}with_table_settings(){return this.getRuleContext(0,ba)}OR(){return this.getToken(rs.OR,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_create_external_data_source_stmt}accept(e){return e.visitCreate_external_data_source_stmt?e.visitCreate_external_data_source_stmt(this):e.visitChildren(this)}},Fo=class extends W{static{Si(this,"Alter_external_data_source_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,rc)}alter_external_data_source_action(e){return void 0===e?this.getRuleContexts(Uo):this.getRuleContext(e,Uo)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_external_data_source_stmt}accept(e){return e.visitAlter_external_data_source_stmt?e.visitAlter_external_data_source_stmt(this):e.visitChildren(this)}},Uo=class extends W{static{Si(this,"Alter_external_data_source_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_external_data_source_action}accept(e){return e.visitAlter_external_data_source_action?e.visitAlter_external_data_source_action(this):e.visitChildren(this)}},Ho=class extends W{static{Si(this,"Drop_external_data_source_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}DATA(){return this.getToken(rs.DATA,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}object_ref(){return this.getRuleContext(0,rc)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_external_data_source_stmt}accept(e){return e.visitDrop_external_data_source_stmt?e.visitDrop_external_data_source_stmt(this):e.visitChildren(this)}},Bo=class extends W{static{Si(this,"Create_view_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}VIEW(){return this.getToken(rs.VIEW,0)}object_ref(){return this.getRuleContext(0,rc)}AS(){return this.getToken(rs.AS,0)}select_stmt(){return this.getRuleContext(0,mr)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_create_view_stmt}accept(e){return e.visitCreate_view_stmt?e.visitCreate_view_stmt(this):e.visitChildren(this)}},Wo=class extends W{static{Si(this,"Drop_view_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}VIEW(){return this.getToken(rs.VIEW,0)}object_ref(){return this.getRuleContext(0,rc)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_view_stmt}accept(e){return e.visitDrop_view_stmt?e.visitDrop_view_stmt(this):e.visitChildren(this)}},Vo=class extends W{static{Si(this,"Upsert_object_stmtContext")}constructor(e,t){super(e,t)}UPSERT(){return this.getToken(rs.UPSERT,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,rc)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_upsert_object_stmt}accept(e){return e.visitUpsert_object_stmt?e.visitUpsert_object_stmt(this):e.visitChildren(this)}},zo=class extends W{static{Si(this,"Create_object_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,rc)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_object_features(){return this.getRuleContext(0,Go)}get ruleIndex(){return rs.RULE_create_object_stmt}accept(e){return e.visitCreate_object_stmt?e.visitCreate_object_stmt(this):e.visitChildren(this)}},Go=class extends W{static{Si(this,"Create_object_featuresContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_create_object_features}accept(e){return e.visitCreate_object_features?e.visitCreate_object_features(this):e.visitChildren(this)}},jo=class extends W{static{Si(this,"Alter_object_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,rc)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}alter_object_features(){return this.getRuleContext(0,Ko)}get ruleIndex(){return rs.RULE_alter_object_stmt}accept(e){return e.visitAlter_object_stmt?e.visitAlter_object_stmt(this):e.visitChildren(this)}},Ko=class extends W{static{Si(this,"Alter_object_featuresContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_alter_object_features}accept(e){return e.visitAlter_object_features?e.visitAlter_object_features(this):e.visitChildren(this)}},Yo=class extends W{static{Si(this,"Drop_object_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}object_ref(){return this.getRuleContext(0,rc)}LPAREN(){return this.getToken(rs.LPAREN,0)}TYPE(){return this.getToken(rs.TYPE,0)}object_type_ref(){return this.getRuleContext(0,ea)}RPAREN(){return this.getToken(rs.RPAREN,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}drop_object_features(){return this.getRuleContext(0,qo)}get ruleIndex(){return rs.RULE_drop_object_stmt}accept(e){return e.visitDrop_object_stmt?e.visitDrop_object_stmt(this):e.visitChildren(this)}},qo=class extends W{static{Si(this,"Drop_object_featuresContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}object_features(){return this.getRuleContext(0,Jo)}get ruleIndex(){return rs.RULE_drop_object_features}accept(e){return e.visitDrop_object_features?e.visitDrop_object_features(this):e.visitChildren(this)}},$o=class extends W{static{Si(this,"Object_feature_valueContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,Hh)}bind_parameter(){return this.getRuleContext(0,Ln)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}bool_value(){return this.getRuleContext(0,td)}get ruleIndex(){return rs.RULE_object_feature_value}accept(e){return e.visitObject_feature_value?e.visitObject_feature_value(this):e.visitChildren(this)}},Qo=class extends W{static{Si(this,"Object_feature_kvContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,Rh)}EQUALS(){return this.getToken(rs.EQUALS,0)}object_feature_value(){return this.getRuleContext(0,$o)}get ruleIndex(){return rs.RULE_object_feature_kv}accept(e){return e.visitObject_feature_kv?e.visitObject_feature_kv(this):e.visitChildren(this)}},Xo=class extends W{static{Si(this,"Object_feature_flagContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,Rh)}get ruleIndex(){return rs.RULE_object_feature_flag}accept(e){return e.visitObject_feature_flag?e.visitObject_feature_flag(this):e.visitChildren(this)}},Zo=class extends W{static{Si(this,"Object_featureContext")}constructor(e,t){super(e,t)}object_feature_kv(){return this.getRuleContext(0,Qo)}object_feature_flag(){return this.getRuleContext(0,Xo)}get ruleIndex(){return rs.RULE_object_feature}accept(e){return e.visitObject_feature?e.visitObject_feature(this):e.visitChildren(this)}},Jo=class extends W{static{Si(this,"Object_featuresContext")}constructor(e,t){super(e,t)}object_feature(e){return void 0===e?this.getRuleContexts(Zo):this.getRuleContext(e,Zo)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_object_features}accept(e){return e.visitObject_features?e.visitObject_features(this):e.visitChildren(this)}},ea=class extends W{static{Si(this,"Object_type_refContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,Rh)}get ruleIndex(){return rs.RULE_object_type_ref}accept(e){return e.visitObject_type_ref?e.visitObject_type_ref(this):e.visitChildren(this)}},ta=class extends W{static{Si(this,"Create_table_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}simple_table_ref(){return this.getRuleContext(0,ac)}LPAREN(){return this.getToken(rs.LPAREN,0)}create_table_entry(e){return void 0===e?this.getRuleContexts(ia):this.getRuleContext(e,ia)}RPAREN(){return this.getToken(rs.RPAREN,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}OR(){return this.getToken(rs.OR,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}table_inherits(){return this.getRuleContext(0,va)}table_partition_by(){return this.getRuleContext(0,Ca)}with_table_settings(){return this.getRuleContext(0,ba)}table_tablestore(){return this.getRuleContext(0,Ea)}table_as_source(){return this.getRuleContext(0,ya)}get ruleIndex(){return rs.RULE_create_table_stmt}accept(e){return e.visitCreate_table_stmt?e.visitCreate_table_stmt(this):e.visitChildren(this)}},ia=class extends W{static{Si(this,"Create_table_entryContext")}constructor(e,t){super(e,t)}column_schema(){return this.getRuleContext(0,Ya)}table_constraint(){return this.getRuleContext(0,Xa)}table_index(){return this.getRuleContext(0,Za)}family_entry(){return this.getRuleContext(0,gl)}changefeed(){return this.getRuleContext(0,ol)}an_id_schema(){return this.getRuleContext(0,Th)}get ruleIndex(){return rs.RULE_create_table_entry}accept(e){return e.visitCreate_table_entry?e.visitCreate_table_entry(this):e.visitChildren(this)}},sa=class extends W{static{Si(this,"Create_backup_collection_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}backup_collection(){return this.getRuleContext(0,ga)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}backup_collection_settings(){return this.getRuleContext(0,pa)}RPAREN(){return this.getToken(rs.RPAREN,0)}create_backup_collection_entries(){return this.getRuleContext(0,oa)}get ruleIndex(){return rs.RULE_create_backup_collection_stmt}accept(e){return e.visitCreate_backup_collection_stmt?e.visitCreate_backup_collection_stmt(this):e.visitChildren(this)}},na=class extends W{static{Si(this,"Alter_backup_collection_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}backup_collection(){return this.getRuleContext(0,ga)}alter_backup_collection_actions(){return this.getRuleContext(0,ca)}alter_backup_collection_entries(){return this.getRuleContext(0,da)}get ruleIndex(){return rs.RULE_alter_backup_collection_stmt}accept(e){return e.visitAlter_backup_collection_stmt?e.visitAlter_backup_collection_stmt(this):e.visitChildren(this)}},ra=class extends W{static{Si(this,"Drop_backup_collection_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}backup_collection(){return this.getRuleContext(0,ga)}get ruleIndex(){return rs.RULE_drop_backup_collection_stmt}accept(e){return e.visitDrop_backup_collection_stmt?e.visitDrop_backup_collection_stmt(this):e.visitChildren(this)}},oa=class extends W{static{Si(this,"Create_backup_collection_entriesContext")}constructor(e,t){super(e,t)}DATABASE(){return this.getToken(rs.DATABASE,0)}create_backup_collection_entries_many(){return this.getRuleContext(0,aa)}get ruleIndex(){return rs.RULE_create_backup_collection_entries}accept(e){return e.visitCreate_backup_collection_entries?e.visitCreate_backup_collection_entries(this):e.visitChildren(this)}},aa=class extends W{static{Si(this,"Create_backup_collection_entries_manyContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}table_list(){return this.getRuleContext(0,la)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_create_backup_collection_entries_many}accept(e){return e.visitCreate_backup_collection_entries_many?e.visitCreate_backup_collection_entries_many(this):e.visitChildren(this)}},la=class extends W{static{Si(this,"Table_listContext")}constructor(e,t){super(e,t)}TABLE(e){return void 0===e?this.getTokens(rs.TABLE):this.getToken(rs.TABLE,e)}an_id_table(e){return void 0===e?this.getRuleContexts(Nh):this.getRuleContext(e,Nh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_list}accept(e){return e.visitTable_list?e.visitTable_list(this):e.visitChildren(this)}},ca=class extends W{static{Si(this,"Alter_backup_collection_actionsContext")}constructor(e,t){super(e,t)}alter_backup_collection_action(e){return void 0===e?this.getRuleContexts(ha):this.getRuleContext(e,ha)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_backup_collection_actions}accept(e){return e.visitAlter_backup_collection_actions?e.visitAlter_backup_collection_actions(this):e.visitChildren(this)}},ha=class extends W{static{Si(this,"Alter_backup_collection_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_backup_collection_action}accept(e){return e.visitAlter_backup_collection_action?e.visitAlter_backup_collection_action(this):e.visitChildren(this)}},da=class extends W{static{Si(this,"Alter_backup_collection_entriesContext")}constructor(e,t){super(e,t)}alter_backup_collection_entry(e){return void 0===e?this.getRuleContexts(ua):this.getRuleContext(e,ua)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_backup_collection_entries}accept(e){return e.visitAlter_backup_collection_entries?e.visitAlter_backup_collection_entries(this):e.visitChildren(this)}},ua=class extends W{static{Si(this,"Alter_backup_collection_entryContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DROP(){return this.getToken(rs.DROP,0)}TABLE(){return this.getToken(rs.TABLE,0)}an_id_table(){return this.getRuleContext(0,Nh)}get ruleIndex(){return rs.RULE_alter_backup_collection_entry}accept(e){return e.visitAlter_backup_collection_entry?e.visitAlter_backup_collection_entry(this):e.visitChildren(this)}},ga=class extends W{static{Si(this,"Backup_collectionContext")}constructor(e,t){super(e,t)}BACKUP(){return this.getToken(rs.BACKUP,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}object_ref(){return this.getRuleContext(0,rc)}get ruleIndex(){return rs.RULE_backup_collection}accept(e){return e.visitBackup_collection?e.visitBackup_collection(this):e.visitChildren(this)}},pa=class extends W{static{Si(this,"Backup_collection_settingsContext")}constructor(e,t){super(e,t)}backup_collection_settings_entry(e){return void 0===e?this.getRuleContexts(ma):this.getRuleContext(e,ma)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_backup_collection_settings}accept(e){return e.visitBackup_collection_settings?e.visitBackup_collection_settings(this):e.visitChildren(this)}},ma=class extends W{static{Si(this,"Backup_collection_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,ul)}get ruleIndex(){return rs.RULE_backup_collection_settings_entry}accept(e){return e.visitBackup_collection_settings_entry?e.visitBackup_collection_settings_entry(this):e.visitChildren(this)}},fa=class extends W{static{Si(this,"Backup_stmtContext")}constructor(e,t){super(e,t)}BACKUP(){return this.getToken(rs.BACKUP,0)}object_ref(){return this.getRuleContext(0,rc)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}get ruleIndex(){return rs.RULE_backup_stmt}accept(e){return e.visitBackup_stmt?e.visitBackup_stmt(this):e.visitChildren(this)}},_a=class extends W{static{Si(this,"Restore_stmtContext")}constructor(e,t){super(e,t)}RESTORE(){return this.getToken(rs.RESTORE,0)}object_ref(){return this.getRuleContext(0,rc)}AT(){return this.getToken(rs.AT,0)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_restore_stmt}accept(e){return e.visitRestore_stmt?e.visitRestore_stmt(this):e.visitChildren(this)}},va=class extends W{static{Si(this,"Table_inheritsContext")}constructor(e,t){super(e,t)}INHERITS(){return this.getToken(rs.INHERITS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}simple_table_ref_core(e){return void 0===e?this.getRuleContexts(oc):this.getRuleContext(e,oc)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_inherits}accept(e){return e.visitTable_inherits?e.visitTable_inherits(this):e.visitChildren(this)}},Ca=class extends W{static{Si(this,"Table_partition_byContext")}constructor(e,t){super(e,t)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}HASH(){return this.getToken(rs.HASH,0)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_table_partition_by}accept(e){return e.visitTable_partition_by?e.visitTable_partition_by(this):e.visitChildren(this)}},ba=class extends W{static{Si(this,"With_table_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}table_settings_entry(e){return void 0===e?this.getRuleContexts(Sa):this.getRuleContext(e,Sa)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_with_table_settings}accept(e){return e.visitWith_table_settings?e.visitWith_table_settings(this):e.visitChildren(this)}},Ea=class extends W{static{Si(this,"Table_tablestoreContext")}constructor(e,t){super(e,t)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}simple_table_ref_core(){return this.getRuleContext(0,oc)}get ruleIndex(){return rs.RULE_table_tablestore}accept(e){return e.visitTable_tablestore?e.visitTable_tablestore(this):e.visitChildren(this)}},Sa=class extends W{static{Si(this,"Table_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,ul)}get ruleIndex(){return rs.RULE_table_settings_entry}accept(e){return e.visitTable_settings_entry?e.visitTable_settings_entry(this):e.visitChildren(this)}},ya=class extends W{static{Si(this,"Table_as_sourceContext")}constructor(e,t){super(e,t)}AS(){return this.getToken(rs.AS,0)}values_source(){return this.getRuleContext(0,Io)}get ruleIndex(){return rs.RULE_table_as_source}accept(e){return e.visitTable_as_source?e.visitTable_as_source(this):e.visitChildren(this)}},wa=class extends W{static{Si(this,"Alter_table_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TABLE(){return this.getToken(rs.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,ac)}alter_table_action(e){return void 0===e?this.getRuleContexts(La):this.getRuleContext(e,La)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_stmt}accept(e){return e.visitAlter_table_stmt?e.visitAlter_table_stmt(this):e.visitChildren(this)}},La=class extends W{static{Si(this,"Alter_table_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}alter_table_alter_column(){return this.getRuleContext(0,Ia)}alter_table_add_column_family(){return this.getRuleContext(0,Da)}alter_table_alter_column_family(){return this.getRuleContext(0,Ma)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}alter_table_add_index(){return this.getRuleContext(0,Ha)}alter_table_drop_index(){return this.getRuleContext(0,Ba)}alter_table_rename_to(){return this.getRuleContext(0,Wa)}alter_table_add_changefeed(){return this.getRuleContext(0,za)}alter_table_alter_changefeed(){return this.getRuleContext(0,Ga)}alter_table_drop_changefeed(){return this.getRuleContext(0,ja)}alter_table_rename_index_to(){return this.getRuleContext(0,Va)}alter_table_alter_index(){return this.getRuleContext(0,Ka)}alter_table_alter_column_drop_not_null(){return this.getRuleContext(0,Oa)}get ruleIndex(){return rs.RULE_alter_table_action}accept(e){return e.visitAlter_table_action?e.visitAlter_table_action(this):e.visitChildren(this)}},Ra=class extends W{static{Si(this,"Alter_external_table_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}TABLE(){return this.getToken(rs.TABLE,0)}simple_table_ref(){return this.getRuleContext(0,ac)}alter_external_table_action(e){return void 0===e?this.getRuleContexts(Ta):this.getRuleContext(e,Ta)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_external_table_stmt}accept(e){return e.visitAlter_external_table_stmt?e.visitAlter_external_table_stmt(this):e.visitChildren(this)}},Ta=class extends W{static{Si(this,"Alter_external_table_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_external_table_action}accept(e){return e.visitAlter_external_table_action?e.visitAlter_external_table_action(this):e.visitChildren(this)}},xa=class extends W{static{Si(this,"Alter_table_store_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}object_ref(){return this.getRuleContext(0,rc)}alter_table_store_action(e){return void 0===e?this.getRuleContexts(ka):this.getRuleContext(e,ka)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_store_stmt}accept(e){return e.visitAlter_table_store_stmt?e.visitAlter_table_store_stmt(this):e.visitChildren(this)}},ka=class extends W{static{Si(this,"Alter_table_store_actionContext")}constructor(e,t){super(e,t)}alter_table_add_column(){return this.getRuleContext(0,Aa)}alter_table_drop_column(){return this.getRuleContext(0,Na)}get ruleIndex(){return rs.RULE_alter_table_store_action}accept(e){return e.visitAlter_table_store_action?e.visitAlter_table_store_action(this):e.visitChildren(this)}},Aa=class extends W{static{Si(this,"Alter_table_add_columnContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}column_schema(){return this.getRuleContext(0,Ya)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_alter_table_add_column}accept(e){return e.visitAlter_table_add_column?e.visitAlter_table_add_column(this):e.visitChildren(this)}},Na=class extends W{static{Si(this,"Alter_table_drop_columnContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}an_id(){return this.getRuleContext(0,Lh)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_alter_table_drop_column}accept(e){return e.visitAlter_table_drop_column?e.visitAlter_table_drop_column(this):e.visitChildren(this)}},Ia=class extends W{static{Si(this,"Alter_table_alter_columnContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}COLUMN(){return this.getToken(rs.COLUMN,0)}an_id(){return this.getRuleContext(0,Lh)}SET(){return this.getToken(rs.SET,0)}family_relation(){return this.getRuleContext(0,qa)}get ruleIndex(){return rs.RULE_alter_table_alter_column}accept(e){return e.visitAlter_table_alter_column?e.visitAlter_table_alter_column(this):e.visitChildren(this)}},Oa=class extends W{static{Si(this,"Alter_table_alter_column_drop_not_nullContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}COLUMN(){return this.getToken(rs.COLUMN,0)}an_id(){return this.getRuleContext(0,Lh)}DROP(){return this.getToken(rs.DROP,0)}NOT(){return this.getToken(rs.NOT,0)}NULL(){return this.getToken(rs.NULL,0)}get ruleIndex(){return rs.RULE_alter_table_alter_column_drop_not_null}accept(e){return e.visitAlter_table_alter_column_drop_not_null?e.visitAlter_table_alter_column_drop_not_null(this):e.visitChildren(this)}},Da=class extends W{static{Si(this,"Alter_table_add_column_familyContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}family_entry(){return this.getRuleContext(0,gl)}get ruleIndex(){return rs.RULE_alter_table_add_column_family}accept(e){return e.visitAlter_table_add_column_family?e.visitAlter_table_add_column_family(this):e.visitChildren(this)}},Ma=class extends W{static{Si(this,"Alter_table_alter_column_familyContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(e){return void 0===e?this.getRuleContexts(Lh):this.getRuleContext(e,Lh)}SET(){return this.getToken(rs.SET,0)}family_setting_value(){return this.getRuleContext(0,fl)}get ruleIndex(){return rs.RULE_alter_table_alter_column_family}accept(e){return e.visitAlter_table_alter_column_family?e.visitAlter_table_alter_column_family(this):e.visitChildren(this)}},Pa=class extends W{static{Si(this,"Alter_table_set_table_setting_uncompatContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}an_id(){return this.getRuleContext(0,Lh)}table_setting_value(){return this.getRuleContext(0,ul)}get ruleIndex(){return rs.RULE_alter_table_set_table_setting_uncompat}accept(e){return e.visitAlter_table_set_table_setting_uncompat?e.visitAlter_table_set_table_setting_uncompat(this):e.visitChildren(this)}},Fa=class extends W{static{Si(this,"Alter_table_set_table_setting_compatContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}alter_table_setting_entry(e){return void 0===e?this.getRuleContexts(dl):this.getRuleContext(e,dl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_set_table_setting_compat}accept(e){return e.visitAlter_table_set_table_setting_compat?e.visitAlter_table_set_table_setting_compat(this):e.visitChildren(this)}},Ua=class extends W{static{Si(this,"Alter_table_reset_table_settingContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Lh):this.getRuleContext(e,Lh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_table_reset_table_setting}accept(e){return e.visitAlter_table_reset_table_setting?e.visitAlter_table_reset_table_setting(this):e.visitChildren(this)}},Ha=class extends W{static{Si(this,"Alter_table_add_indexContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}table_index(){return this.getRuleContext(0,Za)}get ruleIndex(){return rs.RULE_alter_table_add_index}accept(e){return e.visitAlter_table_add_index?e.visitAlter_table_add_index(this):e.visitChildren(this)}},Ba=class extends W{static{Si(this,"Alter_table_drop_indexContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Lh)}get ruleIndex(){return rs.RULE_alter_table_drop_index}accept(e){return e.visitAlter_table_drop_index?e.visitAlter_table_drop_index(this):e.visitChildren(this)}},Wa=class extends W{static{Si(this,"Alter_table_rename_toContext")}constructor(e,t){super(e,t)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}an_id_table(){return this.getRuleContext(0,Nh)}get ruleIndex(){return rs.RULE_alter_table_rename_to}accept(e){return e.visitAlter_table_rename_to?e.visitAlter_table_rename_to(this):e.visitChildren(this)}},Va=class extends W{static{Si(this,"Alter_table_rename_index_toContext")}constructor(e,t){super(e,t)}RENAME(){return this.getToken(rs.RENAME,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(e){return void 0===e?this.getRuleContexts(Lh):this.getRuleContext(e,Lh)}TO(){return this.getToken(rs.TO,0)}get ruleIndex(){return rs.RULE_alter_table_rename_index_to}accept(e){return e.visitAlter_table_rename_index_to?e.visitAlter_table_rename_index_to(this):e.visitChildren(this)}},za=class extends W{static{Si(this,"Alter_table_add_changefeedContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}changefeed(){return this.getRuleContext(0,ol)}get ruleIndex(){return rs.RULE_alter_table_add_changefeed}accept(e){return e.visitAlter_table_add_changefeed?e.visitAlter_table_add_changefeed(this):e.visitChildren(this)}},Ga=class extends W{static{Si(this,"Alter_table_alter_changefeedContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Lh)}changefeed_alter_settings(){return this.getRuleContext(0,hl)}get ruleIndex(){return rs.RULE_alter_table_alter_changefeed}accept(e){return e.visitAlter_table_alter_changefeed?e.visitAlter_table_alter_changefeed(this):e.visitChildren(this)}},ja=class extends W{static{Si(this,"Alter_table_drop_changefeedContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Lh)}get ruleIndex(){return rs.RULE_alter_table_drop_changefeed}accept(e){return e.visitAlter_table_drop_changefeed?e.visitAlter_table_drop_changefeed(this):e.visitChildren(this)}},Ka=class extends W{static{Si(this,"Alter_table_alter_indexContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Lh)}alter_table_alter_index_action(){return this.getRuleContext(0,Cl)}get ruleIndex(){return rs.RULE_alter_table_alter_index}accept(e){return e.visitAlter_table_alter_index?e.visitAlter_table_alter_index(this):e.visitChildren(this)}},Ya=class extends W{static{Si(this,"Column_schemaContext")}constructor(e,t){super(e,t)}an_id_schema(){return this.getRuleContext(0,Th)}type_name_or_bind(){return this.getRuleContext(0,tr)}opt_column_constraints(){return this.getRuleContext(0,$a)}family_relation(){return this.getRuleContext(0,qa)}get ruleIndex(){return rs.RULE_column_schema}accept(e){return e.visitColumn_schema?e.visitColumn_schema(this):e.visitChildren(this)}},qa=class extends W{static{Si(this,"Family_relationContext")}constructor(e,t){super(e,t)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(){return this.getRuleContext(0,Lh)}get ruleIndex(){return rs.RULE_family_relation}accept(e){return e.visitFamily_relation?e.visitFamily_relation(this):e.visitChildren(this)}},$a=class extends W{static{Si(this,"Opt_column_constraintsContext")}constructor(e,t){super(e,t)}NULL(){return this.getToken(rs.NULL,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}expr(){return this.getRuleContext(0,gs)}NOT(){return this.getToken(rs.NOT,0)}get ruleIndex(){return rs.RULE_opt_column_constraints}accept(e){return e.visitOpt_column_constraints?e.visitOpt_column_constraints(this):e.visitChildren(this)}},Qa=class extends W{static{Si(this,"Column_order_by_specificationContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}ASC(){return this.getToken(rs.ASC,0)}DESC(){return this.getToken(rs.DESC,0)}get ruleIndex(){return rs.RULE_column_order_by_specification}accept(e){return e.visitColumn_order_by_specification?e.visitColumn_order_by_specification(this):e.visitChildren(this)}},Xa=class extends W{static{Si(this,"Table_constraintContext")}constructor(e,t){super(e,t)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}KEY(){return this.getToken(rs.KEY,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Lh):this.getRuleContext(e,Lh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}ORDER(){return this.getToken(rs.ORDER,0)}column_order_by_specification(e){return void 0===e?this.getRuleContexts(Qa):this.getRuleContext(e,Qa)}get ruleIndex(){return rs.RULE_table_constraint}accept(e){return e.visitTable_constraint?e.visitTable_constraint(this):e.visitChildren(this)}},Za=class extends W{static{Si(this,"Table_indexContext")}constructor(e,t){super(e,t)}INDEX(){return this.getToken(rs.INDEX,0)}an_id(){return this.getRuleContext(0,Lh)}table_index_type(){return this.getRuleContext(0,Ja)}ON(){return this.getToken(rs.ON,0)}LPAREN(e){return void 0===e?this.getTokens(rs.LPAREN):this.getToken(rs.LPAREN,e)}an_id_schema(e){return void 0===e?this.getRuleContexts(Th):this.getRuleContext(e,Th)}RPAREN(e){return void 0===e?this.getTokens(rs.RPAREN):this.getToken(rs.RPAREN,e)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}COVER(){return this.getToken(rs.COVER,0)}with_index_settings(){return this.getRuleContext(0,sl)}get ruleIndex(){return rs.RULE_table_index}accept(e){return e.visitTable_index?e.visitTable_index(this):e.visitChildren(this)}},Ja=class extends W{static{Si(this,"Table_index_typeContext")}constructor(e,t){super(e,t)}global_index(){return this.getRuleContext(0,el)}local_index(){return this.getRuleContext(0,tl)}USING(){return this.getToken(rs.USING,0)}index_subtype(){return this.getRuleContext(0,il)}get ruleIndex(){return rs.RULE_table_index_type}accept(e){return e.visitTable_index_type?e.visitTable_index_type(this):e.visitChildren(this)}},el=class extends W{static{Si(this,"Global_indexContext")}constructor(e,t){super(e,t)}GLOBAL(){return this.getToken(rs.GLOBAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}SYNC(){return this.getToken(rs.SYNC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}get ruleIndex(){return rs.RULE_global_index}accept(e){return e.visitGlobal_index?e.visitGlobal_index(this):e.visitChildren(this)}},tl=class extends W{static{Si(this,"Local_indexContext")}constructor(e,t){super(e,t)}LOCAL(){return this.getToken(rs.LOCAL,0)}get ruleIndex(){return rs.RULE_local_index}accept(e){return e.visitLocal_index?e.visitLocal_index(this):e.visitChildren(this)}},il=class extends W{static{Si(this,"Index_subtypeContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}get ruleIndex(){return rs.RULE_index_subtype}accept(e){return e.visitIndex_subtype?e.visitIndex_subtype(this):e.visitChildren(this)}},sl=class extends W{static{Si(this,"With_index_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}index_setting_entry(e){return void 0===e?this.getRuleContexts(nl):this.getRuleContext(e,nl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_with_index_settings}accept(e){return e.visitWith_index_settings?e.visitWith_index_settings(this):e.visitChildren(this)}},nl=class extends W{static{Si(this,"Index_setting_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}index_setting_value(){return this.getRuleContext(0,rl)}get ruleIndex(){return rs.RULE_index_setting_entry}accept(e){return e.visitIndex_setting_entry?e.visitIndex_setting_entry(this):e.visitChildren(this)}},rl=class extends W{static{Si(this,"Index_setting_valueContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,Hh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,sd)}bool_value(){return this.getRuleContext(0,td)}get ruleIndex(){return rs.RULE_index_setting_value}accept(e){return e.visitIndex_setting_value?e.visitIndex_setting_value(this):e.visitChildren(this)}},ol=class extends W{static{Si(this,"ChangefeedContext")}constructor(e,t){super(e,t)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}an_id(){return this.getRuleContext(0,Lh)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,al)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_changefeed}accept(e){return e.visitChangefeed?e.visitChangefeed(this):e.visitChildren(this)}},al=class extends W{static{Si(this,"Changefeed_settingsContext")}constructor(e,t){super(e,t)}changefeed_settings_entry(e){return void 0===e?this.getRuleContexts(ll):this.getRuleContext(e,ll)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_changefeed_settings}accept(e){return e.visitChangefeed_settings?e.visitChangefeed_settings(this):e.visitChildren(this)}},ll=class extends W{static{Si(this,"Changefeed_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}changefeed_setting_value(){return this.getRuleContext(0,cl)}get ruleIndex(){return rs.RULE_changefeed_settings_entry}accept(e){return e.visitChangefeed_settings_entry?e.visitChangefeed_settings_entry(this):e.visitChildren(this)}},cl=class extends W{static{Si(this,"Changefeed_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_changefeed_setting_value}accept(e){return e.visitChangefeed_setting_value?e.visitChangefeed_setting_value(this):e.visitChildren(this)}},hl=class extends W{static{Si(this,"Changefeed_alter_settingsContext")}constructor(e,t){super(e,t)}DISABLE(){return this.getToken(rs.DISABLE,0)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}changefeed_settings(){return this.getRuleContext(0,al)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_changefeed_alter_settings}accept(e){return e.visitChangefeed_alter_settings?e.visitChangefeed_alter_settings(this):e.visitChildren(this)}},dl=class extends W{static{Si(this,"Alter_table_setting_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}table_setting_value(){return this.getRuleContext(0,ul)}get ruleIndex(){return rs.RULE_alter_table_setting_entry}accept(e){return e.visitAlter_table_setting_entry?e.visitAlter_table_setting_entry(this):e.visitChildren(this)}},ul=class extends W{static{Si(this,"Table_setting_valueContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,fh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,sd)}split_boundaries(){return this.getRuleContext(0,_l)}expr(){return this.getRuleContext(0,gs)}ON(){return this.getToken(rs.ON,0)}an_id(){return this.getRuleContext(0,Lh)}AS(){return this.getToken(rs.AS,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}bool_value(){return this.getRuleContext(0,td)}get ruleIndex(){return rs.RULE_table_setting_value}accept(e){return e.visitTable_setting_value?e.visitTable_setting_value(this):e.visitChildren(this)}},gl=class extends W{static{Si(this,"Family_entryContext")}constructor(e,t){super(e,t)}FAMILY(){return this.getToken(rs.FAMILY,0)}an_id(){return this.getRuleContext(0,Lh)}family_settings(){return this.getRuleContext(0,pl)}get ruleIndex(){return rs.RULE_family_entry}accept(e){return e.visitFamily_entry?e.visitFamily_entry(this):e.visitChildren(this)}},pl=class extends W{static{Si(this,"Family_settingsContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}family_settings_entry(e){return void 0===e?this.getRuleContexts(ml):this.getRuleContext(e,ml)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_family_settings}accept(e){return e.visitFamily_settings?e.visitFamily_settings(this):e.visitChildren(this)}},ml=class extends W{static{Si(this,"Family_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}family_setting_value(){return this.getRuleContext(0,fl)}get ruleIndex(){return rs.RULE_family_settings_entry}accept(e){return e.visitFamily_settings_entry?e.visitFamily_settings_entry(this):e.visitChildren(this)}},fl=class extends W{static{Si(this,"Family_setting_valueContext")}constructor(e,t){super(e,t)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}integer(){return this.getRuleContext(0,sd)}get ruleIndex(){return rs.RULE_family_setting_value}accept(e){return e.visitFamily_setting_value?e.visitFamily_setting_value(this):e.visitChildren(this)}},_l=class extends W{static{Si(this,"Split_boundariesContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}literal_value_list(e){return void 0===e?this.getRuleContexts(vl):this.getRuleContext(e,vl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_split_boundaries}accept(e){return e.visitSplit_boundaries?e.visitSplit_boundaries(this):e.visitChildren(this)}},vl=class extends W{static{Si(this,"Literal_value_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}literal_value(e){return void 0===e?this.getRuleContexts(wn):this.getRuleContext(e,wn)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_literal_value_list}accept(e){return e.visitLiteral_value_list?e.visitLiteral_value_list(this):e.visitChildren(this)}},Cl=class extends W{static{Si(this,"Alter_table_alter_index_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_uncompat(){return this.getRuleContext(0,Pa)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_table_alter_index_action}accept(e){return e.visitAlter_table_alter_index_action?e.visitAlter_table_alter_index_action(this):e.visitChildren(this)}},bl=class extends W{static{Si(this,"Drop_table_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}simple_table_ref(){return this.getRuleContext(0,ac)}TABLE(){return this.getToken(rs.TABLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_table_stmt}accept(e){return e.visitDrop_table_stmt?e.visitDrop_table_stmt(this):e.visitChildren(this)}},El=class extends W{static{Si(this,"Create_user_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}USER(){return this.getToken(rs.USER,0)}role_name(){return this.getRuleContext(0,Rl)}create_user_option(){return this.getRuleContext(0,Tl)}get ruleIndex(){return rs.RULE_create_user_stmt}accept(e){return e.visitCreate_user_stmt?e.visitCreate_user_stmt(this):e.visitChildren(this)}},Sl=class extends W{static{Si(this,"Alter_user_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}USER(){return this.getToken(rs.USER,0)}role_name(e){return void 0===e?this.getRuleContexts(Rl):this.getRuleContext(e,Rl)}create_user_option(){return this.getRuleContext(0,Tl)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}WITH(){return this.getToken(rs.WITH,0)}get ruleIndex(){return rs.RULE_alter_user_stmt}accept(e){return e.visitAlter_user_stmt?e.visitAlter_user_stmt(this):e.visitChildren(this)}},yl=class extends W{static{Si(this,"Create_group_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}GROUP(){return this.getToken(rs.GROUP,0)}role_name(e){return void 0===e?this.getRuleContexts(Rl):this.getRuleContext(e,Rl)}WITH(){return this.getToken(rs.WITH,0)}USER(){return this.getToken(rs.USER,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_group_stmt}accept(e){return e.visitCreate_group_stmt?e.visitCreate_group_stmt(this):e.visitChildren(this)}},wl=class extends W{static{Si(this,"Alter_group_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}GROUP(){return this.getToken(rs.GROUP,0)}role_name(e){return void 0===e?this.getRuleContexts(Rl):this.getRuleContext(e,Rl)}USER(){return this.getToken(rs.USER,0)}RENAME(){return this.getToken(rs.RENAME,0)}TO(){return this.getToken(rs.TO,0)}ADD(){return this.getToken(rs.ADD,0)}DROP(){return this.getToken(rs.DROP,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_group_stmt}accept(e){return e.visitAlter_group_stmt?e.visitAlter_group_stmt(this):e.visitChildren(this)}},Ll=class extends W{static{Si(this,"Drop_role_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}role_name(e){return void 0===e?this.getRuleContexts(Rl):this.getRuleContext(e,Rl)}USER(){return this.getToken(rs.USER,0)}GROUP(){return this.getToken(rs.GROUP,0)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_drop_role_stmt}accept(e){return e.visitDrop_role_stmt?e.visitDrop_role_stmt(this):e.visitChildren(this)}},Rl=class extends W{static{Si(this,"Role_nameContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,Rh)}bind_parameter(){return this.getRuleContext(0,Ln)}get ruleIndex(){return rs.RULE_role_name}accept(e){return e.visitRole_name?e.visitRole_name(this):e.visitChildren(this)}},Tl=class extends W{static{Si(this,"Create_user_optionContext")}constructor(e,t){super(e,t)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}expr(){return this.getRuleContext(0,gs)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}get ruleIndex(){return rs.RULE_create_user_option}accept(e){return e.visitCreate_user_option?e.visitCreate_user_option(this):e.visitChildren(this)}},xl=class extends W{static{Si(this,"Grant_permissions_stmtContext")}constructor(e,t){super(e,t)}GRANT(e){return void 0===e?this.getTokens(rs.GRANT):this.getToken(rs.GRANT,e)}permission_name_target(){return this.getRuleContext(0,Il)}ON(){return this.getToken(rs.ON,0)}an_id_schema(e){return void 0===e?this.getRuleContexts(Th):this.getRuleContext(e,Th)}TO(){return this.getToken(rs.TO,0)}role_name(e){return void 0===e?this.getRuleContexts(Rl):this.getRuleContext(e,Rl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}WITH(){return this.getToken(rs.WITH,0)}OPTION(){return this.getToken(rs.OPTION,0)}get ruleIndex(){return rs.RULE_grant_permissions_stmt}accept(e){return e.visitGrant_permissions_stmt?e.visitGrant_permissions_stmt(this):e.visitChildren(this)}},kl=class extends W{static{Si(this,"Revoke_permissions_stmtContext")}constructor(e,t){super(e,t)}REVOKE(){return this.getToken(rs.REVOKE,0)}permission_name_target(){return this.getRuleContext(0,Il)}ON(){return this.getToken(rs.ON,0)}an_id_schema(e){return void 0===e?this.getRuleContexts(Th):this.getRuleContext(e,Th)}FROM(){return this.getToken(rs.FROM,0)}role_name(e){return void 0===e?this.getRuleContexts(Rl):this.getRuleContext(e,Rl)}GRANT(){return this.getToken(rs.GRANT,0)}OPTION(){return this.getToken(rs.OPTION,0)}FOR(){return this.getToken(rs.FOR,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_revoke_permissions_stmt}accept(e){return e.visitRevoke_permissions_stmt?e.visitRevoke_permissions_stmt(this):e.visitChildren(this)}},Al=class extends W{static{Si(this,"Permission_idContext")}constructor(e,t){super(e,t)}CONNECT(){return this.getToken(rs.CONNECT,0)}LIST(){return this.getToken(rs.LIST,0)}INSERT(){return this.getToken(rs.INSERT,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}DROP(){return this.getToken(rs.DROP,0)}GRANT(){return this.getToken(rs.GRANT,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}TABLES(){return this.getToken(rs.TABLES,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}ROW(){return this.getToken(rs.ROW,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}ERASE(){return this.getToken(rs.ERASE,0)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}ALTER(){return this.getToken(rs.ALTER,0)}SELECT(){return this.getToken(rs.SELECT,0)}USE(){return this.getToken(rs.USE,0)}FULL(){return this.getToken(rs.FULL,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}CREATE(){return this.getToken(rs.CREATE,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}TABLE(){return this.getToken(rs.TABLE,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}get ruleIndex(){return rs.RULE_permission_id}accept(e){return e.visitPermission_id?e.visitPermission_id(this):e.visitChildren(this)}},Nl=class extends W{static{Si(this,"Permission_nameContext")}constructor(e,t){super(e,t)}permission_id(){return this.getRuleContext(0,Al)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_permission_name}accept(e){return e.visitPermission_name?e.visitPermission_name(this):e.visitChildren(this)}},Il=class extends W{static{Si(this,"Permission_name_targetContext")}constructor(e,t){super(e,t)}permission_name(e){return void 0===e?this.getRuleContexts(Nl):this.getRuleContext(e,Nl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}ALL(){return this.getToken(rs.ALL,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}get ruleIndex(){return rs.RULE_permission_name_target}accept(e){return e.visitPermission_name_target?e.visitPermission_name_target(this):e.visitChildren(this)}},Ol=class extends W{static{Si(this,"Create_resource_pool_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,rc)}with_table_settings(){return this.getRuleContext(0,ba)}get ruleIndex(){return rs.RULE_create_resource_pool_stmt}accept(e){return e.visitCreate_resource_pool_stmt?e.visitCreate_resource_pool_stmt(this):e.visitChildren(this)}},Dl=class extends W{static{Si(this,"Alter_resource_pool_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,rc)}alter_resource_pool_action(e){return void 0===e?this.getRuleContexts(Ml):this.getRuleContext(e,Ml)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_resource_pool_stmt}accept(e){return e.visitAlter_resource_pool_stmt?e.visitAlter_resource_pool_stmt(this):e.visitChildren(this)}},Ml=class extends W{static{Si(this,"Alter_resource_pool_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_resource_pool_action}accept(e){return e.visitAlter_resource_pool_action?e.visitAlter_resource_pool_action(this):e.visitChildren(this)}},Pl=class extends W{static{Si(this,"Drop_resource_pool_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}object_ref(){return this.getRuleContext(0,rc)}get ruleIndex(){return rs.RULE_drop_resource_pool_stmt}accept(e){return e.visitDrop_resource_pool_stmt?e.visitDrop_resource_pool_stmt(this):e.visitChildren(this)}},Fl=class extends W{static{Si(this,"Create_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,rc)}with_table_settings(){return this.getRuleContext(0,ba)}get ruleIndex(){return rs.RULE_create_resource_pool_classifier_stmt}accept(e){return e.visitCreate_resource_pool_classifier_stmt?e.visitCreate_resource_pool_classifier_stmt(this):e.visitChildren(this)}},Ul=class extends W{static{Si(this,"Alter_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,rc)}alter_resource_pool_classifier_action(e){return void 0===e?this.getRuleContexts(Hl):this.getRuleContext(e,Hl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_resource_pool_classifier_stmt}accept(e){return e.visitAlter_resource_pool_classifier_stmt?e.visitAlter_resource_pool_classifier_stmt(this):e.visitChildren(this)}},Hl=class extends W{static{Si(this,"Alter_resource_pool_classifier_actionContext")}constructor(e,t){super(e,t)}alter_table_set_table_setting_compat(){return this.getRuleContext(0,Fa)}alter_table_reset_table_setting(){return this.getRuleContext(0,Ua)}get ruleIndex(){return rs.RULE_alter_resource_pool_classifier_action}accept(e){return e.visitAlter_resource_pool_classifier_action?e.visitAlter_resource_pool_classifier_action(this):e.visitChildren(this)}},Bl=class extends W{static{Si(this,"Drop_resource_pool_classifier_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}POOL(){return this.getToken(rs.POOL,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}object_ref(){return this.getRuleContext(0,rc)}get ruleIndex(){return rs.RULE_drop_resource_pool_classifier_stmt}accept(e){return e.visitDrop_resource_pool_classifier_stmt?e.visitDrop_resource_pool_classifier_stmt(this):e.visitChildren(this)}},Wl=class extends W{static{Si(this,"Create_replication_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,rc)}FOR(){return this.getToken(rs.FOR,0)}replication_target(e){return void 0===e?this.getRuleContexts(Vl):this.getRuleContext(e,Vl)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}replication_settings(){return this.getRuleContext(0,zl)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_replication_stmt}accept(e){return e.visitCreate_replication_stmt?e.visitCreate_replication_stmt(this):e.visitChildren(this)}},Vl=class extends W{static{Si(this,"Replication_targetContext")}constructor(e,t){super(e,t)}object_ref(){return this.getRuleContext(0,rc)}replication_name(){return this.getRuleContext(0,ld)}get ruleIndex(){return rs.RULE_replication_target}accept(e){return e.visitReplication_target?e.visitReplication_target(this):e.visitChildren(this)}},zl=class extends W{static{Si(this,"Replication_settingsContext")}constructor(e,t){super(e,t)}replication_settings_entry(e){return void 0===e?this.getRuleContexts(Gl):this.getRuleContext(e,Gl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_replication_settings}accept(e){return e.visitReplication_settings?e.visitReplication_settings(this):e.visitChildren(this)}},Gl=class extends W{static{Si(this,"Replication_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_replication_settings_entry}accept(e){return e.visitReplication_settings_entry?e.visitReplication_settings_entry(this):e.visitChildren(this)}},jl=class extends W{static{Si(this,"Alter_replication_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,rc)}alter_replication_action(e){return void 0===e?this.getRuleContexts(Kl):this.getRuleContext(e,Kl)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_replication_stmt}accept(e){return e.visitAlter_replication_stmt?e.visitAlter_replication_stmt(this):e.visitChildren(this)}},Kl=class extends W{static{Si(this,"Alter_replication_actionContext")}constructor(e,t){super(e,t)}alter_replication_set_setting(){return this.getRuleContext(0,Yl)}get ruleIndex(){return rs.RULE_alter_replication_action}accept(e){return e.visitAlter_replication_action?e.visitAlter_replication_action(this):e.visitChildren(this)}},Yl=class extends W{static{Si(this,"Alter_replication_set_settingContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}replication_settings(){return this.getRuleContext(0,zl)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_alter_replication_set_setting}accept(e){return e.visitAlter_replication_set_setting?e.visitAlter_replication_set_setting(this):e.visitChildren(this)}},ql=class extends W{static{Si(this,"Drop_replication_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}object_ref(){return this.getRuleContext(0,rc)}CASCADE(){return this.getToken(rs.CASCADE,0)}get ruleIndex(){return rs.RULE_drop_replication_stmt}accept(e){return e.visitDrop_replication_stmt?e.visitDrop_replication_stmt(this):e.visitChildren(this)}},$l=class extends W{static{Si(this,"Action_or_subquery_argsContext")}constructor(e,t){super(e,t)}opt_bind_parameter(e){return void 0===e?this.getRuleContexts(Rn):this.getRuleContext(e,Rn)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_action_or_subquery_args}accept(e){return e.visitAction_or_subquery_args?e.visitAction_or_subquery_args(this):e.visitChildren(this)}},Ql=class extends W{static{Si(this,"Define_action_or_subquery_stmtContext")}constructor(e,t){super(e,t)}DEFINE(e){return void 0===e?this.getTokens(rs.DEFINE):this.getToken(rs.DEFINE,e)}bind_parameter(){return this.getRuleContext(0,Ln)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}AS(){return this.getToken(rs.AS,0)}define_action_or_subquery_body(){return this.getRuleContext(0,Xl)}END(){return this.getToken(rs.END,0)}ACTION(){return this.getToken(rs.ACTION,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}action_or_subquery_args(){return this.getRuleContext(0,$l)}get ruleIndex(){return rs.RULE_define_action_or_subquery_stmt}accept(e){return e.visitDefine_action_or_subquery_stmt?e.visitDefine_action_or_subquery_stmt(this):e.visitChildren(this)}},Xl=class extends W{static{Si(this,"Define_action_or_subquery_bodyContext")}constructor(e,t){super(e,t)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}sql_stmt_core(e){return void 0===e?this.getRuleContexts(us):this.getRuleContext(e,us)}get ruleIndex(){return rs.RULE_define_action_or_subquery_body}accept(e){return e.visitDefine_action_or_subquery_body?e.visitDefine_action_or_subquery_body(this):e.visitChildren(this)}},Zl=class extends W{static{Si(this,"If_stmtContext")}constructor(e,t){super(e,t)}IF(){return this.getToken(rs.IF,0)}expr(){return this.getRuleContext(0,gs)}do_stmt(e){return void 0===e?this.getRuleContexts(hr):this.getRuleContext(e,hr)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_if_stmt}accept(e){return e.visitIf_stmt?e.visitIf_stmt(this):e.visitChildren(this)}},Jl=class extends W{static{Si(this,"For_stmtContext")}constructor(e,t){super(e,t)}FOR(){return this.getToken(rs.FOR,0)}bind_parameter(){return this.getRuleContext(0,Ln)}IN(){return this.getToken(rs.IN,0)}expr(){return this.getRuleContext(0,gs)}do_stmt(e){return void 0===e?this.getRuleContexts(hr):this.getRuleContext(e,hr)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}ELSE(){return this.getToken(rs.ELSE,0)}get ruleIndex(){return rs.RULE_for_stmt}accept(e){return e.visitFor_stmt?e.visitFor_stmt(this):e.visitChildren(this)}},ec=class extends W{static{Si(this,"Table_refContext")}constructor(e,t){super(e,t)}table_key(){return this.getRuleContext(0,tc)}an_id_expr(){return this.getRuleContext(0,xh)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}bind_parameter(){return this.getRuleContext(0,Ln)}cluster_expr(){return this.getRuleContext(0,Uh)}DOT(){return this.getToken(rs.DOT,0)}COMMAT(){return this.getToken(rs.COMMAT,0)}table_hints(){return this.getRuleContext(0,sc)}table_arg(e){return void 0===e?this.getRuleContexts(ic):this.getRuleContext(e,ic)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Ph)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}expr_list(){return this.getRuleContext(0,cn)}get ruleIndex(){return rs.RULE_table_ref}accept(e){return e.visitTable_ref?e.visitTable_ref(this):e.visitChildren(this)}},tc=class extends W{static{Si(this,"Table_keyContext")}constructor(e,t){super(e,t)}id_table_or_type(){return this.getRuleContext(0,Vh)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Ph)}get ruleIndex(){return rs.RULE_table_key}accept(e){return e.visitTable_key?e.visitTable_key(this):e.visitChildren(this)}},ic=class extends W{static{Si(this,"Table_argContext")}constructor(e,t){super(e,t)}named_expr(){return this.getRuleContext(0,_n)}COMMAT(){return this.getToken(rs.COMMAT,0)}VIEW(){return this.getToken(rs.VIEW,0)}view_name(){return this.getRuleContext(0,Ph)}get ruleIndex(){return rs.RULE_table_arg}accept(e){return e.visitTable_arg?e.visitTable_arg(this):e.visitChildren(this)}},sc=class extends W{static{Si(this,"Table_hintsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}table_hint(e){return void 0===e?this.getRuleContexts(nc):this.getRuleContext(e,nc)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_table_hints}accept(e){return e.visitTable_hints?e.visitTable_hints(this):e.visitChildren(this)}},nc=class extends W{static{Si(this,"Table_hintContext")}constructor(e,t){super(e,t)}an_id_hint(){return this.getRuleContext(0,Oh)}EQUALS(){return this.getToken(rs.EQUALS,0)}type_name_tag(e){return void 0===e?this.getRuleContexts(On):this.getRuleContext(e,On)}LPAREN(){return this.getToken(rs.LPAREN,0)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}type_name_or_bind(){return this.getRuleContext(0,tr)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}struct_arg_positional(e){return void 0===e?this.getRuleContexts(Mn):this.getRuleContext(e,Mn)}get ruleIndex(){return rs.RULE_table_hint}accept(e){return e.visitTable_hint?e.visitTable_hint(this):e.visitChildren(this)}},rc=class extends W{static{Si(this,"Object_refContext")}constructor(e,t){super(e,t)}id_or_at(){return this.getRuleContext(0,Wh)}cluster_expr(){return this.getRuleContext(0,Uh)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_object_ref}accept(e){return e.visitObject_ref?e.visitObject_ref(this):e.visitChildren(this)}},oc=class extends W{static{Si(this,"Simple_table_ref_coreContext")}constructor(e,t){super(e,t)}object_ref(){return this.getRuleContext(0,rc)}bind_parameter(){return this.getRuleContext(0,Ln)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_simple_table_ref_core}accept(e){return e.visitSimple_table_ref_core?e.visitSimple_table_ref_core(this):e.visitChildren(this)}},ac=class extends W{static{Si(this,"Simple_table_refContext")}constructor(e,t){super(e,t)}simple_table_ref_core(){return this.getRuleContext(0,oc)}table_hints(){return this.getRuleContext(0,sc)}get ruleIndex(){return rs.RULE_simple_table_ref}accept(e){return e.visitSimple_table_ref?e.visitSimple_table_ref(this):e.visitChildren(this)}},lc=class extends W{static{Si(this,"Into_simple_table_refContext")}constructor(e,t){super(e,t)}simple_table_ref(){return this.getRuleContext(0,ac)}ERASE(){return this.getToken(rs.ERASE,0)}BY(){return this.getToken(rs.BY,0)}pure_column_list(){return this.getRuleContext(0,hn)}get ruleIndex(){return rs.RULE_into_simple_table_ref}accept(e){return e.visitInto_simple_table_ref?e.visitInto_simple_table_ref(this):e.visitChildren(this)}},cc=class extends W{static{Si(this,"Delete_stmtContext")}constructor(e,t){super(e,t)}DELETE(){return this.getToken(rs.DELETE,0)}FROM(){return this.getToken(rs.FROM,0)}simple_table_ref(){return this.getRuleContext(0,ac)}where_expr(){return this.getRuleContext(0,cd)}ON(){return this.getToken(rs.ON,0)}into_values_source(){return this.getRuleContext(0,Ao)}returning_columns_list(){return this.getRuleContext(0,To)}get ruleIndex(){return rs.RULE_delete_stmt}accept(e){return e.visitDelete_stmt?e.visitDelete_stmt(this):e.visitChildren(this)}},hc=class extends W{static{Si(this,"Update_stmtContext")}constructor(e,t){super(e,t)}UPDATE(){return this.getToken(rs.UPDATE,0)}simple_table_ref(){return this.getRuleContext(0,ac)}SET(){return this.getToken(rs.SET,0)}set_clause_choice(){return this.getRuleContext(0,dc)}ON(){return this.getToken(rs.ON,0)}into_values_source(){return this.getRuleContext(0,Ao)}returning_columns_list(){return this.getRuleContext(0,To)}where_expr(){return this.getRuleContext(0,cd)}get ruleIndex(){return rs.RULE_update_stmt}accept(e){return e.visitUpdate_stmt?e.visitUpdate_stmt(this):e.visitChildren(this)}},dc=class extends W{static{Si(this,"Set_clause_choiceContext")}constructor(e,t){super(e,t)}set_clause_list(){return this.getRuleContext(0,uc)}multiple_column_assignment(){return this.getRuleContext(0,mc)}get ruleIndex(){return rs.RULE_set_clause_choice}accept(e){return e.visitSet_clause_choice?e.visitSet_clause_choice(this):e.visitChildren(this)}},uc=class extends W{static{Si(this,"Set_clause_listContext")}constructor(e,t){super(e,t)}set_clause(e){return void 0===e?this.getRuleContexts(gc):this.getRuleContext(e,gc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_set_clause_list}accept(e){return e.visitSet_clause_list?e.visitSet_clause_list(this):e.visitChildren(this)}},gc=class extends W{static{Si(this,"Set_clauseContext")}constructor(e,t){super(e,t)}set_target(){return this.getRuleContext(0,pc)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_set_clause}accept(e){return e.visitSet_clause?e.visitSet_clause(this):e.visitChildren(this)}},pc=class extends W{static{Si(this,"Set_targetContext")}constructor(e,t){super(e,t)}column_name(){return this.getRuleContext(0,gn)}get ruleIndex(){return rs.RULE_set_target}accept(e){return e.visitSet_target?e.visitSet_target(this):e.visitChildren(this)}},mc=class extends W{static{Si(this,"Multiple_column_assignmentContext")}constructor(e,t){super(e,t)}set_target_list(){return this.getRuleContext(0,fc)}EQUALS(){return this.getToken(rs.EQUALS,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}simple_values_source(){return this.getRuleContext(0,Mo)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_multiple_column_assignment}accept(e){return e.visitMultiple_column_assignment?e.visitMultiple_column_assignment(this):e.visitChildren(this)}},fc=class extends W{static{Si(this,"Set_target_listContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}set_target(e){return void 0===e?this.getRuleContexts(pc):this.getRuleContext(e,pc)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_set_target_list}accept(e){return e.visitSet_target_list?e.visitSet_target_list(this):e.visitChildren(this)}},_c=class extends W{static{Si(this,"Create_topic_stmtContext")}constructor(e,t){super(e,t)}CREATE(){return this.getToken(rs.CREATE,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,Bc)}IF(){return this.getToken(rs.IF,0)}NOT(){return this.getToken(rs.NOT,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}create_topic_entries(){return this.getRuleContext(0,vc)}with_topic_settings(){return this.getRuleContext(0,bc)}get ruleIndex(){return rs.RULE_create_topic_stmt}accept(e){return e.visitCreate_topic_stmt?e.visitCreate_topic_stmt(this):e.visitChildren(this)}},vc=class extends W{static{Si(this,"Create_topic_entriesContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}create_topic_entry(e){return void 0===e?this.getRuleContexts(Cc):this.getRuleContext(e,Cc)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_create_topic_entries}accept(e){return e.visitCreate_topic_entries?e.visitCreate_topic_entries(this):e.visitChildren(this)}},Cc=class extends W{static{Si(this,"Create_topic_entryContext")}constructor(e,t){super(e,t)}topic_create_consumer_entry(){return this.getRuleContext(0,wc)}get ruleIndex(){return rs.RULE_create_topic_entry}accept(e){return e.visitCreate_topic_entry?e.visitCreate_topic_entry(this):e.visitChildren(this)}},bc=class extends W{static{Si(this,"With_topic_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_settings(){return this.getRuleContext(0,Oc)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_with_topic_settings}accept(e){return e.visitWith_topic_settings?e.visitWith_topic_settings(this):e.visitChildren(this)}},Ec=class extends W{static{Si(this,"Alter_topic_stmtContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,Bc)}alter_topic_action(e){return void 0===e?this.getRuleContexts(Sc):this.getRuleContext(e,Sc)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_alter_topic_stmt}accept(e){return e.visitAlter_topic_stmt?e.visitAlter_topic_stmt(this):e.visitChildren(this)}},Sc=class extends W{static{Si(this,"Alter_topic_actionContext")}constructor(e,t){super(e,t)}alter_topic_add_consumer(){return this.getRuleContext(0,yc)}alter_topic_alter_consumer(){return this.getRuleContext(0,Lc)}alter_topic_drop_consumer(){return this.getRuleContext(0,Tc)}alter_topic_set_settings(){return this.getRuleContext(0,Ac)}alter_topic_reset_settings(){return this.getRuleContext(0,Nc)}get ruleIndex(){return rs.RULE_alter_topic_action}accept(e){return e.visitAlter_topic_action?e.visitAlter_topic_action(this):e.visitChildren(this)}},yc=class extends W{static{Si(this,"Alter_topic_add_consumerContext")}constructor(e,t){super(e,t)}ADD(){return this.getToken(rs.ADD,0)}topic_create_consumer_entry(){return this.getRuleContext(0,wc)}get ruleIndex(){return rs.RULE_alter_topic_add_consumer}accept(e){return e.visitAlter_topic_add_consumer?e.visitAlter_topic_add_consumer(this):e.visitChildren(this)}},wc=class extends W{static{Si(this,"Topic_create_consumer_entryContext")}constructor(e,t){super(e,t)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}an_id(){return this.getRuleContext(0,Lh)}topic_consumer_with_settings(){return this.getRuleContext(0,Pc)}get ruleIndex(){return rs.RULE_topic_create_consumer_entry}accept(e){return e.visitTopic_create_consumer_entry?e.visitTopic_create_consumer_entry(this):e.visitChildren(this)}},Lc=class extends W{static{Si(this,"Alter_topic_alter_consumerContext")}constructor(e,t){super(e,t)}ALTER(){return this.getToken(rs.ALTER,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,Wc)}alter_topic_alter_consumer_entry(){return this.getRuleContext(0,Rc)}get ruleIndex(){return rs.RULE_alter_topic_alter_consumer}accept(e){return e.visitAlter_topic_alter_consumer?e.visitAlter_topic_alter_consumer(this):e.visitChildren(this)}},Rc=class extends W{static{Si(this,"Alter_topic_alter_consumer_entryContext")}constructor(e,t){super(e,t)}topic_alter_consumer_set(){return this.getRuleContext(0,xc)}topic_alter_consumer_reset(){return this.getRuleContext(0,kc)}get ruleIndex(){return rs.RULE_alter_topic_alter_consumer_entry}accept(e){return e.visitAlter_topic_alter_consumer_entry?e.visitAlter_topic_alter_consumer_entry(this):e.visitChildren(this)}},Tc=class extends W{static{Si(this,"Alter_topic_drop_consumerContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}topic_consumer_ref(){return this.getRuleContext(0,Wc)}get ruleIndex(){return rs.RULE_alter_topic_drop_consumer}accept(e){return e.visitAlter_topic_drop_consumer?e.visitAlter_topic_drop_consumer(this):e.visitChildren(this)}},xc=class extends W{static{Si(this,"Topic_alter_consumer_setContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,Fc)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_topic_alter_consumer_set}accept(e){return e.visitTopic_alter_consumer_set?e.visitTopic_alter_consumer_set(this):e.visitChildren(this)}},kc=class extends W{static{Si(this,"Topic_alter_consumer_resetContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(e){return void 0===e?this.getRuleContexts(Lh):this.getRuleContext(e,Lh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_alter_consumer_reset}accept(e){return e.visitTopic_alter_consumer_reset?e.visitTopic_alter_consumer_reset(this):e.visitChildren(this)}},Ac=class extends W{static{Si(this,"Alter_topic_set_settingsContext")}constructor(e,t){super(e,t)}SET(){return this.getToken(rs.SET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_settings(){return this.getRuleContext(0,Oc)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_alter_topic_set_settings}accept(e){return e.visitAlter_topic_set_settings?e.visitAlter_topic_set_settings(this):e.visitChildren(this)}},Nc=class extends W{static{Si(this,"Alter_topic_reset_settingsContext")}constructor(e,t){super(e,t)}RESET(){return this.getToken(rs.RESET,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}an_id(){return this.getRuleContext(0,Lh)}RPAREN(){return this.getToken(rs.RPAREN,0)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}an_id_pure(e){return void 0===e?this.getRuleContexts(Dh):this.getRuleContext(e,Dh)}get ruleIndex(){return rs.RULE_alter_topic_reset_settings}accept(e){return e.visitAlter_topic_reset_settings?e.visitAlter_topic_reset_settings(this):e.visitChildren(this)}},Ic=class extends W{static{Si(this,"Drop_topic_stmtContext")}constructor(e,t){super(e,t)}DROP(){return this.getToken(rs.DROP,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}topic_ref(){return this.getRuleContext(0,Bc)}IF(){return this.getToken(rs.IF,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}get ruleIndex(){return rs.RULE_drop_topic_stmt}accept(e){return e.visitDrop_topic_stmt?e.visitDrop_topic_stmt(this):e.visitChildren(this)}},Oc=class extends W{static{Si(this,"Topic_settingsContext")}constructor(e,t){super(e,t)}topic_settings_entry(e){return void 0===e?this.getRuleContexts(Dc):this.getRuleContext(e,Dc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_settings}accept(e){return e.visitTopic_settings?e.visitTopic_settings(this):e.visitChildren(this)}},Dc=class extends W{static{Si(this,"Topic_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}topic_setting_value(){return this.getRuleContext(0,Mc)}get ruleIndex(){return rs.RULE_topic_settings_entry}accept(e){return e.visitTopic_settings_entry?e.visitTopic_settings_entry(this):e.visitChildren(this)}},Mc=class extends W{static{Si(this,"Topic_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_topic_setting_value}accept(e){return e.visitTopic_setting_value?e.visitTopic_setting_value(this):e.visitChildren(this)}},Pc=class extends W{static{Si(this,"Topic_consumer_with_settingsContext")}constructor(e,t){super(e,t)}WITH(){return this.getToken(rs.WITH,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}topic_consumer_settings(){return this.getRuleContext(0,Fc)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_topic_consumer_with_settings}accept(e){return e.visitTopic_consumer_with_settings?e.visitTopic_consumer_with_settings(this):e.visitChildren(this)}},Fc=class extends W{static{Si(this,"Topic_consumer_settingsContext")}constructor(e,t){super(e,t)}topic_consumer_settings_entry(e){return void 0===e?this.getRuleContexts(Uc):this.getRuleContext(e,Uc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_topic_consumer_settings}accept(e){return e.visitTopic_consumer_settings?e.visitTopic_consumer_settings(this):e.visitChildren(this)}},Uc=class extends W{static{Si(this,"Topic_consumer_settings_entryContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}EQUALS(){return this.getToken(rs.EQUALS,0)}topic_consumer_setting_value(){return this.getRuleContext(0,Hc)}get ruleIndex(){return rs.RULE_topic_consumer_settings_entry}accept(e){return e.visitTopic_consumer_settings_entry?e.visitTopic_consumer_settings_entry(this):e.visitChildren(this)}},Hc=class extends W{static{Si(this,"Topic_consumer_setting_valueContext")}constructor(e,t){super(e,t)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_topic_consumer_setting_value}accept(e){return e.visitTopic_consumer_setting_value?e.visitTopic_consumer_setting_value(this):e.visitChildren(this)}},Bc=class extends W{static{Si(this,"Topic_refContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}cluster_expr(){return this.getRuleContext(0,Uh)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_topic_ref}accept(e){return e.visitTopic_ref?e.visitTopic_ref(this):e.visitChildren(this)}},Wc=class extends W{static{Si(this,"Topic_consumer_refContext")}constructor(e,t){super(e,t)}an_id_pure(){return this.getRuleContext(0,Dh)}get ruleIndex(){return rs.RULE_topic_consumer_ref}accept(e){return e.visitTopic_consumer_ref?e.visitTopic_consumer_ref(this):e.visitChildren(this)}},Vc=class extends W{static{Si(this,"Null_treatmentContext")}constructor(e,t){super(e,t)}RESPECT(){return this.getToken(rs.RESPECT,0)}NULLS(){return this.getToken(rs.NULLS,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}get ruleIndex(){return rs.RULE_null_treatment}accept(e){return e.visitNull_treatment?e.visitNull_treatment(this):e.visitChildren(this)}},zc=class extends W{static{Si(this,"Filter_clauseContext")}constructor(e,t){super(e,t)}FILTER(){return this.getToken(rs.FILTER,0)}LPAREN(){return this.getToken(rs.LPAREN,0)}where_expr(){return this.getRuleContext(0,cd)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_filter_clause}accept(e){return e.visitFilter_clause?e.visitFilter_clause(this):e.visitChildren(this)}},Gc=class extends W{static{Si(this,"Window_name_or_specificationContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,jc)}window_specification(){return this.getRuleContext(0,Qc)}get ruleIndex(){return rs.RULE_window_name_or_specification}accept(e){return e.visitWindow_name_or_specification?e.visitWindow_name_or_specification(this):e.visitChildren(this)}},jc=class extends W{static{Si(this,"Window_nameContext")}constructor(e,t){super(e,t)}an_id_window(){return this.getRuleContext(0,Ah)}get ruleIndex(){return rs.RULE_window_name}accept(e){return e.visitWindow_name?e.visitWindow_name(this):e.visitChildren(this)}},Kc=class extends W{static{Si(this,"Window_clauseContext")}constructor(e,t){super(e,t)}WINDOW(){return this.getToken(rs.WINDOW,0)}window_definition_list(){return this.getRuleContext(0,Yc)}get ruleIndex(){return rs.RULE_window_clause}accept(e){return e.visitWindow_clause?e.visitWindow_clause(this):e.visitChildren(this)}},Yc=class extends W{static{Si(this,"Window_definition_listContext")}constructor(e,t){super(e,t)}window_definition(e){return void 0===e?this.getRuleContexts(qc):this.getRuleContext(e,qc)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_window_definition_list}accept(e){return e.visitWindow_definition_list?e.visitWindow_definition_list(this):e.visitChildren(this)}},qc=class extends W{static{Si(this,"Window_definitionContext")}constructor(e,t){super(e,t)}new_window_name(){return this.getRuleContext(0,$c)}AS(){return this.getToken(rs.AS,0)}window_specification(){return this.getRuleContext(0,Qc)}get ruleIndex(){return rs.RULE_window_definition}accept(e){return e.visitWindow_definition?e.visitWindow_definition(this):e.visitChildren(this)}},$c=class extends W{static{Si(this,"New_window_nameContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,jc)}get ruleIndex(){return rs.RULE_new_window_name}accept(e){return e.visitNew_window_name?e.visitNew_window_name(this):e.visitChildren(this)}},Qc=class extends W{static{Si(this,"Window_specificationContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}window_specification_details(){return this.getRuleContext(0,Xc)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_window_specification}accept(e){return e.visitWindow_specification?e.visitWindow_specification(this):e.visitChildren(this)}},Xc=class extends W{static{Si(this,"Window_specification_detailsContext")}constructor(e,t){super(e,t)}existing_window_name(){return this.getRuleContext(0,Zc)}window_partition_clause(){return this.getRuleContext(0,Jc)}window_order_clause(){return this.getRuleContext(0,eh)}window_frame_clause(){return this.getRuleContext(0,th)}get ruleIndex(){return rs.RULE_window_specification_details}accept(e){return e.visitWindow_specification_details?e.visitWindow_specification_details(this):e.visitChildren(this)}},Zc=class extends W{static{Si(this,"Existing_window_nameContext")}constructor(e,t){super(e,t)}window_name(){return this.getRuleContext(0,jc)}get ruleIndex(){return rs.RULE_existing_window_name}accept(e){return e.visitExisting_window_name?e.visitExisting_window_name(this):e.visitChildren(this)}},Jc=class extends W{static{Si(this,"Window_partition_clauseContext")}constructor(e,t){super(e,t)}PARTITION(){return this.getToken(rs.PARTITION,0)}BY(){return this.getToken(rs.BY,0)}named_expr_list(){return this.getRuleContext(0,vn)}COMPACT(){return this.getToken(rs.COMPACT,0)}get ruleIndex(){return rs.RULE_window_partition_clause}accept(e){return e.visitWindow_partition_clause?e.visitWindow_partition_clause(this):e.visitChildren(this)}},eh=class extends W{static{Si(this,"Window_order_clauseContext")}constructor(e,t){super(e,t)}order_by_clause(){return this.getRuleContext(0,io)}get ruleIndex(){return rs.RULE_window_order_clause}accept(e){return e.visitWindow_order_clause?e.visitWindow_order_clause(this):e.visitChildren(this)}},th=class extends W{static{Si(this,"Window_frame_clauseContext")}constructor(e,t){super(e,t)}window_frame_units(){return this.getRuleContext(0,ih)}window_frame_extent(){return this.getRuleContext(0,sh)}window_frame_exclusion(){return this.getRuleContext(0,oh)}get ruleIndex(){return rs.RULE_window_frame_clause}accept(e){return e.visitWindow_frame_clause?e.visitWindow_frame_clause(this):e.visitChildren(this)}},ih=class extends W{static{Si(this,"Window_frame_unitsContext")}constructor(e,t){super(e,t)}ROWS(){return this.getToken(rs.ROWS,0)}RANGE(){return this.getToken(rs.RANGE,0)}GROUPS(){return this.getToken(rs.GROUPS,0)}get ruleIndex(){return rs.RULE_window_frame_units}accept(e){return e.visitWindow_frame_units?e.visitWindow_frame_units(this):e.visitChildren(this)}},sh=class extends W{static{Si(this,"Window_frame_extentContext")}constructor(e,t){super(e,t)}window_frame_bound(){return this.getRuleContext(0,rh)}window_frame_between(){return this.getRuleContext(0,nh)}get ruleIndex(){return rs.RULE_window_frame_extent}accept(e){return e.visitWindow_frame_extent?e.visitWindow_frame_extent(this):e.visitChildren(this)}},nh=class extends W{static{Si(this,"Window_frame_betweenContext")}constructor(e,t){super(e,t)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}window_frame_bound(e){return void 0===e?this.getRuleContexts(rh):this.getRuleContext(e,rh)}AND(){return this.getToken(rs.AND,0)}get ruleIndex(){return rs.RULE_window_frame_between}accept(e){return e.visitWindow_frame_between?e.visitWindow_frame_between(this):e.visitChildren(this)}},rh=class extends W{static{Si(this,"Window_frame_boundContext")}constructor(e,t){super(e,t)}CURRENT(){return this.getToken(rs.CURRENT,0)}ROW(){return this.getToken(rs.ROW,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}expr(){return this.getRuleContext(0,gs)}UNBOUNDED(){return this.getToken(rs.UNBOUNDED,0)}get ruleIndex(){return rs.RULE_window_frame_bound}accept(e){return e.visitWindow_frame_bound?e.visitWindow_frame_bound(this):e.visitChildren(this)}},oh=class extends W{static{Si(this,"Window_frame_exclusionContext")}constructor(e,t){super(e,t)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}ROW(){return this.getToken(rs.ROW,0)}GROUP(){return this.getToken(rs.GROUP,0)}TIES(){return this.getToken(rs.TIES,0)}NO(){return this.getToken(rs.NO,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}get ruleIndex(){return rs.RULE_window_frame_exclusion}accept(e){return e.visitWindow_frame_exclusion?e.visitWindow_frame_exclusion(this):e.visitChildren(this)}},ah=class extends W{static{Si(this,"Use_stmtContext")}constructor(e,t){super(e,t)}USE(){return this.getToken(rs.USE,0)}cluster_expr(){return this.getRuleContext(0,Uh)}get ruleIndex(){return rs.RULE_use_stmt}accept(e){return e.visitUse_stmt?e.visitUse_stmt(this):e.visitChildren(this)}},lh=class extends W{static{Si(this,"Subselect_stmtContext")}constructor(e,t){super(e,t)}LPAREN(){return this.getToken(rs.LPAREN,0)}select_stmt(){return this.getRuleContext(0,mr)}RPAREN(){return this.getToken(rs.RPAREN,0)}select_unparenthesized_stmt(){return this.getRuleContext(0,fr)}get ruleIndex(){return rs.RULE_subselect_stmt}accept(e){return e.visitSubselect_stmt?e.visitSubselect_stmt(this):e.visitChildren(this)}},ch=class extends W{static{Si(this,"Named_nodes_stmtContext")}constructor(e,t){super(e,t)}bind_parameter_list(){return this.getRuleContext(0,Tn)}EQUALS(){return this.getToken(rs.EQUALS,0)}expr(){return this.getRuleContext(0,gs)}subselect_stmt(){return this.getRuleContext(0,lh)}get ruleIndex(){return rs.RULE_named_nodes_stmt}accept(e){return e.visitNamed_nodes_stmt?e.visitNamed_nodes_stmt(this):e.visitChildren(this)}},hh=class extends W{static{Si(this,"Commit_stmtContext")}constructor(e,t){super(e,t)}COMMIT(){return this.getToken(rs.COMMIT,0)}get ruleIndex(){return rs.RULE_commit_stmt}accept(e){return e.visitCommit_stmt?e.visitCommit_stmt(this):e.visitChildren(this)}},dh=class extends W{static{Si(this,"Rollback_stmtContext")}constructor(e,t){super(e,t)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}get ruleIndex(){return rs.RULE_rollback_stmt}accept(e){return e.visitRollback_stmt?e.visitRollback_stmt(this):e.visitChildren(this)}},uh=class extends W{static{Si(this,"Analyze_tableContext")}constructor(e,t){super(e,t)}simple_table_ref(){return this.getRuleContext(0,ac)}LPAREN(){return this.getToken(rs.LPAREN,0)}column_list(){return this.getRuleContext(0,mn)}RPAREN(){return this.getToken(rs.RPAREN,0)}get ruleIndex(){return rs.RULE_analyze_table}accept(e){return e.visitAnalyze_table?e.visitAnalyze_table(this):e.visitChildren(this)}},gh=class extends W{static{Si(this,"Analyze_table_listContext")}constructor(e,t){super(e,t)}analyze_table(e){return void 0===e?this.getRuleContexts(uh):this.getRuleContext(e,uh)}COMMA(e){return void 0===e?this.getTokens(rs.COMMA):this.getToken(rs.COMMA,e)}get ruleIndex(){return rs.RULE_analyze_table_list}accept(e){return e.visitAnalyze_table_list?e.visitAnalyze_table_list(this):e.visitChildren(this)}},ph=class extends W{static{Si(this,"Analyze_stmtContext")}constructor(e,t){super(e,t)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}analyze_table_list(){return this.getRuleContext(0,gh)}get ruleIndex(){return rs.RULE_analyze_stmt}accept(e){return e.visitAnalyze_stmt?e.visitAnalyze_stmt(this):e.visitChildren(this)}},mh=class extends W{static{Si(this,"IdentifierContext")}constructor(e,t){super(e,t)}ID_PLAIN(){return this.getToken(rs.ID_PLAIN,0)}ID_QUOTED(){return this.getToken(rs.ID_QUOTED,0)}get ruleIndex(){return rs.RULE_identifier}accept(e){return e.visitIdentifier?e.visitIdentifier(this):e.visitChildren(this)}},fh=class extends W{static{Si(this,"IdContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword(){return this.getRuleContext(0,Gh)}get ruleIndex(){return rs.RULE_id}accept(e){return e.visitId?e.visitId(this):e.visitChildren(this)}},_h=class extends W{static{Si(this,"Id_schemaContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_expr_uncompat(){return this.getRuleContext(0,jh)}keyword_select_uncompat(){return this.getRuleContext(0,Yh)}keyword_in_uncompat(){return this.getRuleContext(0,$h)}keyword_window_uncompat(){return this.getRuleContext(0,Qh)}keyword_hint_uncompat(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_id_schema}accept(e){return e.visitId_schema?e.visitId_schema(this):e.visitChildren(this)}},vh=class extends W{static{Si(this,"Id_exprContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_alter_uncompat(){return this.getRuleContext(0,qh)}keyword_in_uncompat(){return this.getRuleContext(0,$h)}keyword_window_uncompat(){return this.getRuleContext(0,Qh)}keyword_hint_uncompat(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_id_expr}accept(e){return e.visitId_expr?e.visitId_expr(this):e.visitChildren(this)}},Ch=class extends W{static{Si(this,"Id_expr_inContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_alter_uncompat(){return this.getRuleContext(0,qh)}keyword_window_uncompat(){return this.getRuleContext(0,Qh)}keyword_hint_uncompat(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_id_expr_in}accept(e){return e.visitId_expr_in?e.visitId_expr_in(this):e.visitChildren(this)}},bh=class extends W{static{Si(this,"Id_windowContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_expr_uncompat(){return this.getRuleContext(0,jh)}keyword_table_uncompat(){return this.getRuleContext(0,Kh)}keyword_select_uncompat(){return this.getRuleContext(0,Yh)}keyword_alter_uncompat(){return this.getRuleContext(0,qh)}keyword_in_uncompat(){return this.getRuleContext(0,$h)}keyword_hint_uncompat(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_id_window}accept(e){return e.visitId_window?e.visitId_window(this):e.visitChildren(this)}},Eh=class extends W{static{Si(this,"Id_tableContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_expr_uncompat(){return this.getRuleContext(0,jh)}keyword_select_uncompat(){return this.getRuleContext(0,Yh)}keyword_in_uncompat(){return this.getRuleContext(0,$h)}keyword_window_uncompat(){return this.getRuleContext(0,Qh)}keyword_hint_uncompat(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_id_table}accept(e){return e.visitId_table?e.visitId_table(this):e.visitChildren(this)}},Sh=class extends W{static{Si(this,"Id_withoutContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_table_uncompat(){return this.getRuleContext(0,Kh)}keyword_alter_uncompat(){return this.getRuleContext(0,qh)}keyword_in_uncompat(){return this.getRuleContext(0,$h)}keyword_window_uncompat(){return this.getRuleContext(0,Qh)}keyword_hint_uncompat(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_id_without}accept(e){return e.visitId_without?e.visitId_without(this):e.visitChildren(this)}},yh=class extends W{static{Si(this,"Id_hintContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_expr_uncompat(){return this.getRuleContext(0,jh)}keyword_table_uncompat(){return this.getRuleContext(0,Kh)}keyword_select_uncompat(){return this.getRuleContext(0,Yh)}keyword_alter_uncompat(){return this.getRuleContext(0,qh)}keyword_in_uncompat(){return this.getRuleContext(0,$h)}keyword_window_uncompat(){return this.getRuleContext(0,Qh)}get ruleIndex(){return rs.RULE_id_hint}accept(e){return e.visitId_hint?e.visitId_hint(this):e.visitChildren(this)}},wh=class extends W{static{Si(this,"Id_as_compatContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}keyword_as_compat(){return this.getRuleContext(0,Zh)}get ruleIndex(){return rs.RULE_id_as_compat}accept(e){return e.visitId_as_compat?e.visitId_as_compat(this):e.visitChildren(this)}},Lh=class extends W{static{Si(this,"An_idContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,fh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id}accept(e){return e.visitAn_id?e.visitAn_id(this):e.visitChildren(this)}},Rh=class extends W{static{Si(this,"An_id_or_typeContext")}constructor(e,t){super(e,t)}id_or_type(){return this.getRuleContext(0,Hh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_or_type}accept(e){return e.visitAn_id_or_type?e.visitAn_id_or_type(this):e.visitChildren(this)}},Th=class extends W{static{Si(this,"An_id_schemaContext")}constructor(e,t){super(e,t)}id_schema(){return this.getRuleContext(0,_h)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_schema}accept(e){return e.visitAn_id_schema?e.visitAn_id_schema(this):e.visitChildren(this)}},xh=class extends W{static{Si(this,"An_id_exprContext")}constructor(e,t){super(e,t)}id_expr(){return this.getRuleContext(0,vh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_expr}accept(e){return e.visitAn_id_expr?e.visitAn_id_expr(this):e.visitChildren(this)}},kh=class extends W{static{Si(this,"An_id_expr_inContext")}constructor(e,t){super(e,t)}id_expr_in(){return this.getRuleContext(0,Ch)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_expr_in}accept(e){return e.visitAn_id_expr_in?e.visitAn_id_expr_in(this):e.visitChildren(this)}},Ah=class extends W{static{Si(this,"An_id_windowContext")}constructor(e,t){super(e,t)}id_window(){return this.getRuleContext(0,bh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_window}accept(e){return e.visitAn_id_window?e.visitAn_id_window(this):e.visitChildren(this)}},Nh=class extends W{static{Si(this,"An_id_tableContext")}constructor(e,t){super(e,t)}id_table(){return this.getRuleContext(0,Eh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_table}accept(e){return e.visitAn_id_table?e.visitAn_id_table(this):e.visitChildren(this)}},Ih=class extends W{static{Si(this,"An_id_withoutContext")}constructor(e,t){super(e,t)}id_without(){return this.getRuleContext(0,Sh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_without}accept(e){return e.visitAn_id_without?e.visitAn_id_without(this):e.visitChildren(this)}},Oh=class extends W{static{Si(this,"An_id_hintContext")}constructor(e,t){super(e,t)}id_hint(){return this.getRuleContext(0,yh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_hint}accept(e){return e.visitAn_id_hint?e.visitAn_id_hint(this):e.visitChildren(this)}},Dh=class extends W{static{Si(this,"An_id_pureContext")}constructor(e,t){super(e,t)}identifier(){return this.getRuleContext(0,mh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_pure}accept(e){return e.visitAn_id_pure?e.visitAn_id_pure(this):e.visitChildren(this)}},Mh=class extends W{static{Si(this,"An_id_as_compatContext")}constructor(e,t){super(e,t)}id_as_compat(){return this.getRuleContext(0,wh)}STRING_VALUE(){return this.getToken(rs.STRING_VALUE,0)}get ruleIndex(){return rs.RULE_an_id_as_compat}accept(e){return e.visitAn_id_as_compat?e.visitAn_id_as_compat(this):e.visitChildren(this)}},Ph=class extends W{static{Si(this,"View_nameContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}KEY(){return this.getToken(rs.KEY,0)}get ruleIndex(){return rs.RULE_view_name}accept(e){return e.visitView_name?e.visitView_name(this):e.visitChildren(this)}},Fh=class extends W{static{Si(this,"Opt_id_prefixContext")}constructor(e,t){super(e,t)}an_id(){return this.getRuleContext(0,Lh)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_opt_id_prefix}accept(e){return e.visitOpt_id_prefix?e.visitOpt_id_prefix(this):e.visitChildren(this)}},Uh=class extends W{static{Si(this,"Cluster_exprContext")}constructor(e,t){super(e,t)}pure_column_or_named(){return this.getRuleContext(0,dn)}ASTERISK(){return this.getToken(rs.ASTERISK,0)}an_id(){return this.getRuleContext(0,Lh)}COLON(){return this.getToken(rs.COLON,0)}get ruleIndex(){return rs.RULE_cluster_expr}accept(e){return e.visitCluster_expr?e.visitCluster_expr(this):e.visitChildren(this)}},Hh=class extends W{static{Si(this,"Id_or_typeContext")}constructor(e,t){super(e,t)}id(){return this.getRuleContext(0,fh)}type_id(){return this.getRuleContext(0,ed)}get ruleIndex(){return rs.RULE_id_or_type}accept(e){return e.visitId_or_type?e.visitId_or_type(this):e.visitChildren(this)}},Bh=class extends W{static{Si(this,"Opt_id_prefix_or_typeContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,Rh)}DOT(){return this.getToken(rs.DOT,0)}get ruleIndex(){return rs.RULE_opt_id_prefix_or_type}accept(e){return e.visitOpt_id_prefix_or_type?e.visitOpt_id_prefix_or_type(this):e.visitChildren(this)}},Wh=class extends W{static{Si(this,"Id_or_atContext")}constructor(e,t){super(e,t)}an_id_or_type(){return this.getRuleContext(0,Rh)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_id_or_at}accept(e){return e.visitId_or_at?e.visitId_or_at(this):e.visitChildren(this)}},Vh=class extends W{static{Si(this,"Id_table_or_typeContext")}constructor(e,t){super(e,t)}an_id_table(){return this.getRuleContext(0,Nh)}type_id(){return this.getRuleContext(0,ed)}get ruleIndex(){return rs.RULE_id_table_or_type}accept(e){return e.visitId_table_or_type?e.visitId_table_or_type(this):e.visitChildren(this)}},zh=class extends W{static{Si(this,"Id_table_or_atContext")}constructor(e,t){super(e,t)}id_table_or_type(){return this.getRuleContext(0,Vh)}COMMAT(){return this.getToken(rs.COMMAT,0)}get ruleIndex(){return rs.RULE_id_table_or_at}accept(e){return e.visitId_table_or_at?e.visitId_table_or_at(this):e.visitChildren(this)}},Gh=class extends W{static{Si(this,"KeywordContext")}constructor(e,t){super(e,t)}keyword_compat(){return this.getRuleContext(0,Jh)}keyword_expr_uncompat(){return this.getRuleContext(0,jh)}keyword_table_uncompat(){return this.getRuleContext(0,Kh)}keyword_select_uncompat(){return this.getRuleContext(0,Yh)}keyword_alter_uncompat(){return this.getRuleContext(0,qh)}keyword_in_uncompat(){return this.getRuleContext(0,$h)}keyword_window_uncompat(){return this.getRuleContext(0,Qh)}keyword_hint_uncompat(){return this.getRuleContext(0,Xh)}get ruleIndex(){return rs.RULE_keyword}accept(e){return e.visitKeyword?e.visitKeyword(this):e.visitChildren(this)}},jh=class extends W{static{Si(this,"Keyword_expr_uncompatContext")}constructor(e,t){super(e,t)}ASYMMETRIC(){return this.getToken(rs.ASYMMETRIC,0)}BETWEEN(){return this.getToken(rs.BETWEEN,0)}BITCAST(){return this.getToken(rs.BITCAST,0)}CASE(){return this.getToken(rs.CASE,0)}CAST(){return this.getToken(rs.CAST,0)}CUBE(){return this.getToken(rs.CUBE,0)}CURRENT_DATE(){return this.getToken(rs.CURRENT_DATE,0)}CURRENT_TIME(){return this.getToken(rs.CURRENT_TIME,0)}CURRENT_TIMESTAMP(){return this.getToken(rs.CURRENT_TIMESTAMP,0)}EMPTY_ACTION(){return this.getToken(rs.EMPTY_ACTION,0)}EXISTS(){return this.getToken(rs.EXISTS,0)}FROM(){return this.getToken(rs.FROM,0)}FULL(){return this.getToken(rs.FULL,0)}HOP(){return this.getToken(rs.HOP,0)}JSON_EXISTS(){return this.getToken(rs.JSON_EXISTS,0)}JSON_VALUE(){return this.getToken(rs.JSON_VALUE,0)}JSON_QUERY(){return this.getToken(rs.JSON_QUERY,0)}LOCAL(){return this.getToken(rs.LOCAL,0)}NOT(){return this.getToken(rs.NOT,0)}NULL(){return this.getToken(rs.NULL,0)}PROCESS(){return this.getToken(rs.PROCESS,0)}REDUCE(){return this.getToken(rs.REDUCE,0)}RETURN(){return this.getToken(rs.RETURN,0)}RETURNING(){return this.getToken(rs.RETURNING,0)}ROLLUP(){return this.getToken(rs.ROLLUP,0)}SELECT(){return this.getToken(rs.SELECT,0)}SYMMETRIC(){return this.getToken(rs.SYMMETRIC,0)}UNBOUNDED(){return this.getToken(rs.UNBOUNDED,0)}WHEN(){return this.getToken(rs.WHEN,0)}WHERE(){return this.getToken(rs.WHERE,0)}get ruleIndex(){return rs.RULE_keyword_expr_uncompat}accept(e){return e.visitKeyword_expr_uncompat?e.visitKeyword_expr_uncompat(this):e.visitChildren(this)}},Kh=class extends W{static{Si(this,"Keyword_table_uncompatContext")}constructor(e,t){super(e,t)}ANY(){return this.getToken(rs.ANY,0)}ERASE(){return this.getToken(rs.ERASE,0)}STREAM(){return this.getToken(rs.STREAM,0)}get ruleIndex(){return rs.RULE_keyword_table_uncompat}accept(e){return e.visitKeyword_table_uncompat?e.visitKeyword_table_uncompat(this):e.visitChildren(this)}},Yh=class extends W{static{Si(this,"Keyword_select_uncompatContext")}constructor(e,t){super(e,t)}ALL(){return this.getToken(rs.ALL,0)}AS(){return this.getToken(rs.AS,0)}ASSUME(){return this.getToken(rs.ASSUME,0)}DISTINCT(){return this.getToken(rs.DISTINCT,0)}EXCEPT(){return this.getToken(rs.EXCEPT,0)}HAVING(){return this.getToken(rs.HAVING,0)}INTERSECT(){return this.getToken(rs.INTERSECT,0)}LIMIT(){return this.getToken(rs.LIMIT,0)}UNION(){return this.getToken(rs.UNION,0)}WINDOW(){return this.getToken(rs.WINDOW,0)}WITHOUT(){return this.getToken(rs.WITHOUT,0)}get ruleIndex(){return rs.RULE_keyword_select_uncompat}accept(e){return e.visitKeyword_select_uncompat?e.visitKeyword_select_uncompat(this):e.visitChildren(this)}},qh=class extends W{static{Si(this,"Keyword_alter_uncompatContext")}constructor(e,t){super(e,t)}COLUMN(){return this.getToken(rs.COLUMN,0)}get ruleIndex(){return rs.RULE_keyword_alter_uncompat}accept(e){return e.visitKeyword_alter_uncompat?e.visitKeyword_alter_uncompat(this):e.visitChildren(this)}},$h=class extends W{static{Si(this,"Keyword_in_uncompatContext")}constructor(e,t){super(e,t)}COMPACT(){return this.getToken(rs.COMPACT,0)}get ruleIndex(){return rs.RULE_keyword_in_uncompat}accept(e){return e.visitKeyword_in_uncompat?e.visitKeyword_in_uncompat(this):e.visitChildren(this)}},Qh=class extends W{static{Si(this,"Keyword_window_uncompatContext")}constructor(e,t){super(e,t)}GROUPS(){return this.getToken(rs.GROUPS,0)}RANGE(){return this.getToken(rs.RANGE,0)}ROWS(){return this.getToken(rs.ROWS,0)}get ruleIndex(){return rs.RULE_keyword_window_uncompat}accept(e){return e.visitKeyword_window_uncompat?e.visitKeyword_window_uncompat(this):e.visitChildren(this)}},Xh=class extends W{static{Si(this,"Keyword_hint_uncompatContext")}constructor(e,t){super(e,t)}SCHEMA(){return this.getToken(rs.SCHEMA,0)}COLUMNS(){return this.getToken(rs.COLUMNS,0)}get ruleIndex(){return rs.RULE_keyword_hint_uncompat}accept(e){return e.visitKeyword_hint_uncompat?e.visitKeyword_hint_uncompat(this):e.visitChildren(this)}},Zh=class extends W{static{Si(this,"Keyword_as_compatContext")}constructor(e,t){super(e,t)}ABORT(){return this.getToken(rs.ABORT,0)}ACTION(){return this.getToken(rs.ACTION,0)}ADD(){return this.getToken(rs.ADD,0)}AFTER(){return this.getToken(rs.AFTER,0)}ALTER(){return this.getToken(rs.ALTER,0)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}AND(){return this.getToken(rs.AND,0)}ANSI(){return this.getToken(rs.ANSI,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}ASC(){return this.getToken(rs.ASC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}AT(){return this.getToken(rs.AT,0)}ATTACH(){return this.getToken(rs.ATTACH,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(rs.AUTOINCREMENT,0)}BACKUP(){return this.getToken(rs.BACKUP,0)}BEFORE(){return this.getToken(rs.BEFORE,0)}BEGIN(){return this.getToken(rs.BEGIN,0)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}BY(){return this.getToken(rs.BY,0)}CASCADE(){return this.getToken(rs.CASCADE,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}CHECK(){return this.getToken(rs.CHECK,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}COMMIT(){return this.getToken(rs.COMMIT,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}CONFLICT(){return this.getToken(rs.CONFLICT,0)}CONNECT(){return this.getToken(rs.CONNECT,0)}CONSTRAINT(){return this.getToken(rs.CONSTRAINT,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}COVER(){return this.getToken(rs.COVER,0)}CREATE(){return this.getToken(rs.CREATE,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}DATA(){return this.getToken(rs.DATA,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}DECLARE(){return this.getToken(rs.DECLARE,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}DEFERRABLE(){return this.getToken(rs.DEFERRABLE,0)}DEFERRED(){return this.getToken(rs.DEFERRED,0)}DELETE(){return this.getToken(rs.DELETE,0)}DESC(){return this.getToken(rs.DESC,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}DETACH(){return this.getToken(rs.DETACH,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}DISABLE(){return this.getToken(rs.DISABLE,0)}DISCARD(){return this.getToken(rs.DISCARD,0)}DROP(){return this.getToken(rs.DROP,0)}EACH(){return this.getToken(rs.EACH,0)}ELSE(){return this.getToken(rs.ELSE,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}END(){return this.getToken(rs.END,0)}ERROR(){return this.getToken(rs.ERROR,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}EXCLUSIVE(){return this.getToken(rs.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}EXPORT(){return this.getToken(rs.EXPORT,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FAIL(){return this.getToken(rs.FAIL,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}FILTER(){return this.getToken(rs.FILTER,0)}FIRST(){return this.getToken(rs.FIRST,0)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}FOR(){return this.getToken(rs.FOR,0)}FOREIGN(){return this.getToken(rs.FOREIGN,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}GLOB(){return this.getToken(rs.GLOB,0)}GRANT(){return this.getToken(rs.GRANT,0)}GROUP(){return this.getToken(rs.GROUP,0)}GROUPING(){return this.getToken(rs.GROUPING,0)}HASH(){return this.getToken(rs.HASH,0)}IF(){return this.getToken(rs.IF,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}IMMEDIATE(){return this.getToken(rs.IMMEDIATE,0)}IMPORT(){return this.getToken(rs.IMPORT,0)}IN(){return this.getToken(rs.IN,0)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}INDEX(){return this.getToken(rs.INDEX,0)}INDEXED(){return this.getToken(rs.INDEXED,0)}INHERITS(){return this.getToken(rs.INHERITS,0)}INITIAL(){return this.getToken(rs.INITIAL,0)}INITIALLY(){return this.getToken(rs.INITIALLY,0)}INSERT(){return this.getToken(rs.INSERT,0)}INSTEAD(){return this.getToken(rs.INSTEAD,0)}INTO(){return this.getToken(rs.INTO,0)}IS(){return this.getToken(rs.IS,0)}LAST(){return this.getToken(rs.LAST,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}LIKE(){return this.getToken(rs.LIKE,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}MATCH(){return this.getToken(rs.MATCH,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(rs.MEASURES,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}NEXT(){return this.getToken(rs.NEXT,0)}NO(){return this.getToken(rs.NO,0)}NULLS(){return this.getToken(rs.NULLS,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}OF(){return this.getToken(rs.OF,0)}OFFSET(){return this.getToken(rs.OFFSET,0)}OMIT(){return this.getToken(rs.OMIT,0)}ONE(){return this.getToken(rs.ONE,0)}ONLY(){return this.getToken(rs.ONLY,0)}OPTION(){return this.getToken(rs.OPTION,0)}OR(){return this.getToken(rs.OR,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}PARTITION(){return this.getToken(rs.PARTITION,0)}PASSING(){return this.getToken(rs.PASSING,0)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}PAST(){return this.getToken(rs.PAST,0)}PATTERN(){return this.getToken(rs.PATTERN,0)}PER(){return this.getToken(rs.PER,0)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}PLAN(){return this.getToken(rs.PLAN,0)}POOL(){return this.getToken(rs.POOL,0)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}RAISE(){return this.getToken(rs.RAISE,0)}REFERENCES(){return this.getToken(rs.REFERENCES,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}REINDEX(){return this.getToken(rs.REINDEX,0)}RELEASE(){return this.getToken(rs.RELEASE,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}RENAME(){return this.getToken(rs.RENAME,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}RESET(){return this.getToken(rs.RESET,0)}RESPECT(){return this.getToken(rs.RESPECT,0)}RESTORE(){return this.getToken(rs.RESTORE,0)}RESTRICT(){return this.getToken(rs.RESTRICT,0)}REVERT(){return this.getToken(rs.REVERT,0)}REVOKE(){return this.getToken(rs.REVOKE,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}ROW(){return this.getToken(rs.ROW,0)}SAVEPOINT(){return this.getToken(rs.SAVEPOINT,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}SEEK(){return this.getToken(rs.SEEK,0)}SETS(){return this.getToken(rs.SETS,0)}SHOW(){return this.getToken(rs.SHOW,0)}TSKIP(){return this.getToken(rs.TSKIP,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}SUBSET(){return this.getToken(rs.SUBSET,0)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}SYNC(){return this.getToken(rs.SYNC,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLES(){return this.getToken(rs.TABLES,0)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}THEN(){return this.getToken(rs.THEN,0)}TIES(){return this.getToken(rs.TIES,0)}TO(){return this.getToken(rs.TO,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}TRANSACTION(){return this.getToken(rs.TRANSACTION,0)}TRIGGER(){return this.getToken(rs.TRIGGER,0)}TYPE(){return this.getToken(rs.TYPE,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}USE(){return this.getToken(rs.USE,0)}USER(){return this.getToken(rs.USER,0)}VACUUM(){return this.getToken(rs.VACUUM,0)}VALUES(){return this.getToken(rs.VALUES,0)}VIRTUAL(){return this.getToken(rs.VIRTUAL,0)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}XOR(){return this.getToken(rs.XOR,0)}get ruleIndex(){return rs.RULE_keyword_as_compat}accept(e){return e.visitKeyword_as_compat?e.visitKeyword_as_compat(this):e.visitChildren(this)}},Jh=class extends W{static{Si(this,"Keyword_compatContext")}constructor(e,t){super(e,t)}ABORT(){return this.getToken(rs.ABORT,0)}ACTION(){return this.getToken(rs.ACTION,0)}ADD(){return this.getToken(rs.ADD,0)}AFTER(){return this.getToken(rs.AFTER,0)}ALTER(){return this.getToken(rs.ALTER,0)}ANALYZE(){return this.getToken(rs.ANALYZE,0)}AND(){return this.getToken(rs.AND,0)}ANSI(){return this.getToken(rs.ANSI,0)}ARRAY(){return this.getToken(rs.ARRAY,0)}ASC(){return this.getToken(rs.ASC,0)}ASYNC(){return this.getToken(rs.ASYNC,0)}AT(){return this.getToken(rs.AT,0)}ATTACH(){return this.getToken(rs.ATTACH,0)}ATTRIBUTES(){return this.getToken(rs.ATTRIBUTES,0)}AUTOINCREMENT(){return this.getToken(rs.AUTOINCREMENT,0)}BACKUP(){return this.getToken(rs.BACKUP,0)}BEFORE(){return this.getToken(rs.BEFORE,0)}BEGIN(){return this.getToken(rs.BEGIN,0)}BERNOULLI(){return this.getToken(rs.BERNOULLI,0)}BY(){return this.getToken(rs.BY,0)}CASCADE(){return this.getToken(rs.CASCADE,0)}CHANGEFEED(){return this.getToken(rs.CHANGEFEED,0)}CHECK(){return this.getToken(rs.CHECK,0)}CLASSIFIER(){return this.getToken(rs.CLASSIFIER,0)}COLLATE(){return this.getToken(rs.COLLATE,0)}COLLECTION(){return this.getToken(rs.COLLECTION,0)}COMMIT(){return this.getToken(rs.COMMIT,0)}CONDITIONAL(){return this.getToken(rs.CONDITIONAL,0)}CONFLICT(){return this.getToken(rs.CONFLICT,0)}CONNECT(){return this.getToken(rs.CONNECT,0)}CONSTRAINT(){return this.getToken(rs.CONSTRAINT,0)}CONSUMER(){return this.getToken(rs.CONSUMER,0)}COVER(){return this.getToken(rs.COVER,0)}CREATE(){return this.getToken(rs.CREATE,0)}CROSS(){return this.getToken(rs.CROSS,0)}CURRENT(){return this.getToken(rs.CURRENT,0)}DATA(){return this.getToken(rs.DATA,0)}DATABASE(){return this.getToken(rs.DATABASE,0)}DECIMAL(){return this.getToken(rs.DECIMAL,0)}DECLARE(){return this.getToken(rs.DECLARE,0)}DEFAULT(){return this.getToken(rs.DEFAULT,0)}DEFERRABLE(){return this.getToken(rs.DEFERRABLE,0)}DEFERRED(){return this.getToken(rs.DEFERRED,0)}DEFINE(){return this.getToken(rs.DEFINE,0)}DELETE(){return this.getToken(rs.DELETE,0)}DESC(){return this.getToken(rs.DESC,0)}DESCRIBE(){return this.getToken(rs.DESCRIBE,0)}DETACH(){return this.getToken(rs.DETACH,0)}DIRECTORY(){return this.getToken(rs.DIRECTORY,0)}DISABLE(){return this.getToken(rs.DISABLE,0)}DISCARD(){return this.getToken(rs.DISCARD,0)}DO(){return this.getToken(rs.DO,0)}DROP(){return this.getToken(rs.DROP,0)}EACH(){return this.getToken(rs.EACH,0)}ELSE(){return this.getToken(rs.ELSE,0)}EMPTY(){return this.getToken(rs.EMPTY,0)}ENCRYPTED(){return this.getToken(rs.ENCRYPTED,0)}END(){return this.getToken(rs.END,0)}ERROR(){return this.getToken(rs.ERROR,0)}ESCAPE(){return this.getToken(rs.ESCAPE,0)}EVALUATE(){return this.getToken(rs.EVALUATE,0)}EXCLUDE(){return this.getToken(rs.EXCLUDE,0)}EXCLUSION(){return this.getToken(rs.EXCLUSION,0)}EXCLUSIVE(){return this.getToken(rs.EXCLUSIVE,0)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}EXPORT(){return this.getToken(rs.EXPORT,0)}EXTERNAL(){return this.getToken(rs.EXTERNAL,0)}FAIL(){return this.getToken(rs.FAIL,0)}FAMILY(){return this.getToken(rs.FAMILY,0)}FILTER(){return this.getToken(rs.FILTER,0)}FIRST(){return this.getToken(rs.FIRST,0)}FLATTEN(){return this.getToken(rs.FLATTEN,0)}FOLLOWING(){return this.getToken(rs.FOLLOWING,0)}FOR(){return this.getToken(rs.FOR,0)}FOREIGN(){return this.getToken(rs.FOREIGN,0)}FUNCTION(){return this.getToken(rs.FUNCTION,0)}GLOB(){return this.getToken(rs.GLOB,0)}GRANT(){return this.getToken(rs.GRANT,0)}GROUP(){return this.getToken(rs.GROUP,0)}GROUPING(){return this.getToken(rs.GROUPING,0)}HASH(){return this.getToken(rs.HASH,0)}IF(){return this.getToken(rs.IF,0)}IGNORE(){return this.getToken(rs.IGNORE,0)}ILIKE(){return this.getToken(rs.ILIKE,0)}IMMEDIATE(){return this.getToken(rs.IMMEDIATE,0)}IMPORT(){return this.getToken(rs.IMPORT,0)}IN(){return this.getToken(rs.IN,0)}INCREMENTAL(){return this.getToken(rs.INCREMENTAL,0)}INDEX(){return this.getToken(rs.INDEX,0)}INDEXED(){return this.getToken(rs.INDEXED,0)}INHERITS(){return this.getToken(rs.INHERITS,0)}INITIAL(){return this.getToken(rs.INITIAL,0)}INITIALLY(){return this.getToken(rs.INITIALLY,0)}INNER(){return this.getToken(rs.INNER,0)}INSERT(){return this.getToken(rs.INSERT,0)}INSTEAD(){return this.getToken(rs.INSTEAD,0)}INTO(){return this.getToken(rs.INTO,0)}IS(){return this.getToken(rs.IS,0)}ISNULL(){return this.getToken(rs.ISNULL,0)}JOIN(){return this.getToken(rs.JOIN,0)}KEY(){return this.getToken(rs.KEY,0)}LAST(){return this.getToken(rs.LAST,0)}LEFT(){return this.getToken(rs.LEFT,0)}LEGACY(){return this.getToken(rs.LEGACY,0)}LIKE(){return this.getToken(rs.LIKE,0)}MANAGE(){return this.getToken(rs.MANAGE,0)}MATCH(){return this.getToken(rs.MATCH,0)}MATCHES(){return this.getToken(rs.MATCHES,0)}MATCH_RECOGNIZE(){return this.getToken(rs.MATCH_RECOGNIZE,0)}MEASURES(){return this.getToken(rs.MEASURES,0)}MICROSECONDS(){return this.getToken(rs.MICROSECONDS,0)}MILLISECONDS(){return this.getToken(rs.MILLISECONDS,0)}MODIFY(){return this.getToken(rs.MODIFY,0)}NANOSECONDS(){return this.getToken(rs.NANOSECONDS,0)}NATURAL(){return this.getToken(rs.NATURAL,0)}NEXT(){return this.getToken(rs.NEXT,0)}NO(){return this.getToken(rs.NO,0)}NOTNULL(){return this.getToken(rs.NOTNULL,0)}NULLS(){return this.getToken(rs.NULLS,0)}OBJECT(){return this.getToken(rs.OBJECT,0)}OF(){return this.getToken(rs.OF,0)}OFFSET(){return this.getToken(rs.OFFSET,0)}OMIT(){return this.getToken(rs.OMIT,0)}ON(){return this.getToken(rs.ON,0)}ONE(){return this.getToken(rs.ONE,0)}ONLY(){return this.getToken(rs.ONLY,0)}OPTION(){return this.getToken(rs.OPTION,0)}OR(){return this.getToken(rs.OR,0)}ORDER(){return this.getToken(rs.ORDER,0)}OTHERS(){return this.getToken(rs.OTHERS,0)}OUTER(){return this.getToken(rs.OUTER,0)}OVER(){return this.getToken(rs.OVER,0)}PARALLEL(){return this.getToken(rs.PARALLEL,0)}PARTITION(){return this.getToken(rs.PARTITION,0)}PASSING(){return this.getToken(rs.PASSING,0)}PASSWORD(){return this.getToken(rs.PASSWORD,0)}PAST(){return this.getToken(rs.PAST,0)}PATTERN(){return this.getToken(rs.PATTERN,0)}PER(){return this.getToken(rs.PER,0)}PERMUTE(){return this.getToken(rs.PERMUTE,0)}PLAN(){return this.getToken(rs.PLAN,0)}POOL(){return this.getToken(rs.POOL,0)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}PRECEDING(){return this.getToken(rs.PRECEDING,0)}PRESORT(){return this.getToken(rs.PRESORT,0)}PRIMARY(){return this.getToken(rs.PRIMARY,0)}PRIVILEGES(){return this.getToken(rs.PRIVILEGES,0)}QUEUE(){return this.getToken(rs.QUEUE,0)}RAISE(){return this.getToken(rs.RAISE,0)}REFERENCES(){return this.getToken(rs.REFERENCES,0)}REGEXP(){return this.getToken(rs.REGEXP,0)}REINDEX(){return this.getToken(rs.REINDEX,0)}RELEASE(){return this.getToken(rs.RELEASE,0)}REMOVE(){return this.getToken(rs.REMOVE,0)}RENAME(){return this.getToken(rs.RENAME,0)}REPLACE(){return this.getToken(rs.REPLACE,0)}REPLICATION(){return this.getToken(rs.REPLICATION,0)}RESET(){return this.getToken(rs.RESET,0)}RESPECT(){return this.getToken(rs.RESPECT,0)}RESTORE(){return this.getToken(rs.RESTORE,0)}RESTRICT(){return this.getToken(rs.RESTRICT,0)}RESULT(){return this.getToken(rs.RESULT,0)}REVERT(){return this.getToken(rs.REVERT,0)}REVOKE(){return this.getToken(rs.REVOKE,0)}RIGHT(){return this.getToken(rs.RIGHT,0)}RLIKE(){return this.getToken(rs.RLIKE,0)}ROLLBACK(){return this.getToken(rs.ROLLBACK,0)}ROW(){return this.getToken(rs.ROW,0)}SAMPLE(){return this.getToken(rs.SAMPLE,0)}SAVEPOINT(){return this.getToken(rs.SAVEPOINT,0)}SECONDS(){return this.getToken(rs.SECONDS,0)}SEEK(){return this.getToken(rs.SEEK,0)}SEMI(){return this.getToken(rs.SEMI,0)}SETS(){return this.getToken(rs.SETS,0)}SHOW(){return this.getToken(rs.SHOW,0)}TSKIP(){return this.getToken(rs.TSKIP,0)}SOURCE(){return this.getToken(rs.SOURCE,0)}SUBQUERY(){return this.getToken(rs.SUBQUERY,0)}SUBSET(){return this.getToken(rs.SUBSET,0)}SYMBOLS(){return this.getToken(rs.SYMBOLS,0)}SYNC(){return this.getToken(rs.SYNC,0)}SYSTEM(){return this.getToken(rs.SYSTEM,0)}TABLE(){return this.getToken(rs.TABLE,0)}TABLES(){return this.getToken(rs.TABLES,0)}TABLESAMPLE(){return this.getToken(rs.TABLESAMPLE,0)}TABLESTORE(){return this.getToken(rs.TABLESTORE,0)}TEMP(){return this.getToken(rs.TEMP,0)}TEMPORARY(){return this.getToken(rs.TEMPORARY,0)}THEN(){return this.getToken(rs.THEN,0)}TIES(){return this.getToken(rs.TIES,0)}TO(){return this.getToken(rs.TO,0)}TOPIC(){return this.getToken(rs.TOPIC,0)}TRANSACTION(){return this.getToken(rs.TRANSACTION,0)}TRIGGER(){return this.getToken(rs.TRIGGER,0)}TYPE(){return this.getToken(rs.TYPE,0)}UNCONDITIONAL(){return this.getToken(rs.UNCONDITIONAL,0)}UNIQUE(){return this.getToken(rs.UNIQUE,0)}UNKNOWN(){return this.getToken(rs.UNKNOWN,0)}UNMATCHED(){return this.getToken(rs.UNMATCHED,0)}UPDATE(){return this.getToken(rs.UPDATE,0)}UPSERT(){return this.getToken(rs.UPSERT,0)}USE(){return this.getToken(rs.USE,0)}USER(){return this.getToken(rs.USER,0)}USING(){return this.getToken(rs.USING,0)}VACUUM(){return this.getToken(rs.VACUUM,0)}VALUES(){return this.getToken(rs.VALUES,0)}VIEW(){return this.getToken(rs.VIEW,0)}VIRTUAL(){return this.getToken(rs.VIRTUAL,0)}WITH(){return this.getToken(rs.WITH,0)}WRAPPER(){return this.getToken(rs.WRAPPER,0)}XOR(){return this.getToken(rs.XOR,0)}get ruleIndex(){return rs.RULE_keyword_compat}accept(e){return e.visitKeyword_compat?e.visitKeyword_compat(this):e.visitChildren(this)}},ed=class extends W{static{Si(this,"Type_idContext")}constructor(e,t){super(e,t)}OPTIONAL(){return this.getToken(rs.OPTIONAL,0)}TUPLE(){return this.getToken(rs.TUPLE,0)}STRUCT(){return this.getToken(rs.STRUCT,0)}VARIANT(){return this.getToken(rs.VARIANT,0)}LIST(){return this.getToken(rs.LIST,0)}FLOW(){return this.getToken(rs.FLOW,0)}DICT(){return this.getToken(rs.DICT,0)}SET(){return this.getToken(rs.SET,0)}ENUM(){return this.getToken(rs.ENUM,0)}RESOURCE(){return this.getToken(rs.RESOURCE,0)}TAGGED(){return this.getToken(rs.TAGGED,0)}CALLABLE(){return this.getToken(rs.CALLABLE,0)}get ruleIndex(){return rs.RULE_type_id}accept(e){return e.visitType_id?e.visitType_id(this):e.visitChildren(this)}},td=class extends W{static{Si(this,"Bool_valueContext")}constructor(e,t){super(e,t)}TRUE(){return this.getToken(rs.TRUE,0)}FALSE(){return this.getToken(rs.FALSE,0)}get ruleIndex(){return rs.RULE_bool_value}accept(e){return e.visitBool_value?e.visitBool_value(this):e.visitChildren(this)}},id=class extends W{static{Si(this,"RealContext")}constructor(e,t){super(e,t)}REAL(){return this.getToken(rs.REAL,0)}get ruleIndex(){return rs.RULE_real}accept(e){return e.visitReal?e.visitReal(this):e.visitChildren(this)}},sd=class extends W{static{Si(this,"IntegerContext")}constructor(e,t){super(e,t)}DIGITS(){return this.getToken(rs.DIGITS,0)}INTEGER_VALUE(){return this.getToken(rs.INTEGER_VALUE,0)}get ruleIndex(){return rs.RULE_integer}accept(e){return e.visitInteger?e.visitInteger(this):e.visitChildren(this)}},nd=class extends W{static{Si(this,"Sql_query_yqContext")}constructor(e,t){super(e,t)}sql_stmt_list_yq(){return this.getRuleContext(0,rd)}PRAGMA(){return this.getToken(rs.PRAGMA,0)}ANSI(){return this.getToken(rs.ANSI,0)}DIGITS(){return this.getToken(rs.DIGITS,0)}ansi_sql_stmt_list(){return this.getRuleContext(0,ls)}get ruleIndex(){return rs.RULE_sql_query_yq}accept(e){return e.visitSql_query_yq?e.visitSql_query_yq(this):e.visitChildren(this)}},rd=class extends W{static{Si(this,"Sql_stmt_list_yqContext")}constructor(e,t){super(e,t)}sql_stmt_yq(e){return void 0===e?this.getRuleContexts(od):this.getRuleContext(e,od)}EOF(){return this.getToken(rs.EOF,0)}SEMICOLON(e){return void 0===e?this.getTokens(rs.SEMICOLON):this.getToken(rs.SEMICOLON,e)}get ruleIndex(){return rs.RULE_sql_stmt_list_yq}accept(e){return e.visitSql_stmt_list_yq?e.visitSql_stmt_list_yq(this):e.visitChildren(this)}},od=class extends W{static{Si(this,"Sql_stmt_yqContext")}constructor(e,t){super(e,t)}sql_stmt_core_yq(){return this.getRuleContext(0,ad)}EXPLAIN(){return this.getToken(rs.EXPLAIN,0)}QUERY(){return this.getToken(rs.QUERY,0)}PLAN(){return this.getToken(rs.PLAN,0)}get ruleIndex(){return rs.RULE_sql_stmt_yq}accept(e){return e.visitSql_stmt_yq?e.visitSql_stmt_yq(this):e.visitChildren(this)}},ad=class extends W{static{Si(this,"Sql_stmt_core_yqContext")}constructor(e,t){super(e,t)}pragma_stmt(){return this.getRuleContext(0,dr)}select_stmt(){return this.getRuleContext(0,mr)}named_nodes_stmt(){return this.getRuleContext(0,ch)}use_stmt(){return this.getRuleContext(0,ah)}into_table_stmt_yq(){return this.getRuleContext(0,ko)}declare_stmt(){return this.getRuleContext(0,nr)}import_stmt(){return this.getRuleContext(0,or)}export_stmt(){return this.getRuleContext(0,ar)}do_stmt(){return this.getRuleContext(0,hr)}define_action_or_subquery_stmt(){return this.getRuleContext(0,Ql)}if_stmt(){return this.getRuleContext(0,Zl)}for_stmt(){return this.getRuleContext(0,Jl)}values_stmt(){return this.getRuleContext(0,No)}get ruleIndex(){return rs.RULE_sql_stmt_core_yq}accept(e){return e.visitSql_stmt_core_yq?e.visitSql_stmt_core_yq(this):e.visitChildren(this)}},ld=class extends W{static{Si(this,"Replication_nameContext")}constructor(e,t){super(e,t)}AS(){return this.getToken(rs.AS,0)}object_ref(){return this.getRuleContext(0,rc)}get ruleIndex(){return rs.RULE_replication_name}accept(e){return e.visitReplication_name?e.visitReplication_name(this):e.visitChildren(this)}},cd=class extends W{static{Si(this,"Where_exprContext")}constructor(e,t){super(e,t)}WHERE(){return this.getToken(rs.WHERE,0)}expr(){return this.getRuleContext(0,gs)}get ruleIndex(){return rs.RULE_where_expr}accept(e){return e.visitWhere_expr?e.visitWhere_expr(this):e.visitChildren(this)}},hd=class extends W{static{Si(this,"From_stmtContext")}constructor(e,t){super(e,t)}FROM(){return this.getToken(rs.FROM,0)}join_source(){return this.getRuleContext(0,mo)}get ruleIndex(){return rs.RULE_from_stmt}accept(e){return e.visitFrom_stmt?e.visitFrom_stmt(this):e.visitChildren(this)}},dd=class extends W{static{Si(this,"Alter_table_for_autocompleteContext")}constructor(e,t){super(e,t)}alter_table_stmt(){return this.getRuleContext(0,wa)}alter_table_store_stmt(){return this.getRuleContext(0,xa)}get ruleIndex(){return rs.RULE_alter_table_for_autocomplete}accept(e){return e.visitAlter_table_for_autocomplete?e.visitAlter_table_for_autocomplete(this):e.visitChildren(this)}},ud=class extends vt{static{Si(this,"YQLVisitor")}},gd={SPACE:rs.WS,FROM:rs.FROM,OPENING_BRACKET:rs.LPAREN,CLOSING_BRACKET:rs.RPAREN,ALTER:rs.ALTER,INSERT:rs.INSERT,UPSERT:rs.UPSERT,UPDATE:rs.UPDATE,JOIN:rs.JOIN,SEMICOLON:rs.SEMICOLON,SELECT:rs.SELECT};function pd(e,t,i,s){let n,r=i-1;do{if(n=e.get(r),n?.type===s)return!0;r--}while(n?.type===t.SPACE);return!1}function md(e){let t=new Map(e.map((e=>[e,!0])));return{anyRuleInList:e=>(Array.isArray(e)?e:[e]).some((e=>t.has(e))),allRulesInList:e=>!e.some((e=>!t.has(e)))}}function fd({anyRuleInList:e,allRulesInList:t}){if(t([rs.RULE_select_stmt,rs.RULE_id_expr]))return!e([rs.RULE_window_specification_details,rs.RULE_group_by_clause,rs.RULE_table_ref,rs.RULE_where_expr])||void 0}function _d({anyRuleInList:e}){return e([rs.RULE_alter_object_stmt,rs.RULE_drop_object_stmt])&&e(rs.RULE_id_or_at)}function vd({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_id_or_at))return;let s=e(rs.RULE_drop_table_stmt)&&!!ss(t,gd,i,rs.TABLESTORE);return e(rs.RULE_alter_table_store_stmt)||s}function Cd({anyRuleInList:e,allRulesInList:t,tokenStream:i,cursorTokenIndex:s}){if(!e([rs.RULE_id_or_at,rs.RULE_id_table_or_type]))return;let n=e(rs.RULE_replication_target)&&!e(rs.RULE_replication_name),r=t([rs.RULE_simple_table_ref])&&!ss(i,gd,s,rs.CREATE)&&!ss(i,gd,s,rs.EXTERNAL);return e([rs.RULE_table_ref,rs.RULE_table_inherits])||r||n}function bd({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_role_name))return;let s=!!ss(t,gd,i,rs.USER),n=!!ss(t,gd,i,rs.RENAME),r=e(rs.RULE_revoke_permissions_stmt),o=e(rs.RULE_alter_group_stmt)&&!n&&s,a=e(rs.RULE_create_group_stmt)&&s,l=e(rs.RULE_alter_user_stmt)&&!n;return e(rs.RULE_drop_role_stmt)&&s||l||a||o||r}function Ed({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e(rs.RULE_role_name))return;let s=!!ss(t,gd,i,rs.GROUP),n=!!ss(t,gd,i,rs.USER),r=!!ss(t,gd,i,rs.RENAME),o=e(rs.RULE_drop_role_stmt)&&s,a=e(rs.RULE_alter_group_stmt)&&!r&&!n;return e(rs.RULE_revoke_permissions_stmt)||a||o}function Sd({anyRuleInList:e}){if(e([rs.RULE_an_id,rs.RULE_topic_ref]))return e([rs.RULE_drop_topic_stmt,rs.RULE_alter_topic_stmt])}function yd({allRulesInList:e}){return e([rs.RULE_drop_view_stmt,rs.RULE_id_or_at])||e([rs.RULE_table_ref,rs.RULE_id_table_or_type])}function wd({anyRuleInList:e}){if(e(rs.RULE_id_or_at))return e([rs.RULE_alter_replication_stmt,rs.RULE_drop_replication_stmt])}function Ld({allRulesInList:e,tokenStream:t,cursorTokenIndex:i}){let s=!!ss(t,gd,i,rs.EXTERNAL);return e([rs.RULE_id_or_at,rs.RULE_drop_table_stmt])&&s||e([rs.RULE_table_ref,rs.RULE_id_table_or_type])}function Rd({anyRuleInList:e}){if(e(rs.RULE_id_or_at))return e([rs.RULE_drop_external_data_source_stmt,rs.RULE_alter_external_data_source_stmt])}function Td({anyRuleInList:e}){return!!e(rs.RULE_an_id)&&e([rs.RULE_alter_table_drop_index,rs.RULE_alter_table_rename_index_to])}function xd({anyRuleInList:e,tokenStream:t,cursorTokenIndex:i}){if(!e([rs.RULE_an_id,rs.RULE_id_expr])||e([rs.RULE_table_ref,rs.RULE_values_stmt,rs.RULE_alter_table_add_column,rs.RULE_lambda_stmt]))return!1;let s=e(rs.RULE_select_kind)&&!ss(t,gd,i,rs.LIMIT),n=e(rs.RULE_alter_table_alter_column)&&!ss(t,gd,i,rs.FAMILY);return e([rs.RULE_pure_column_list,rs.RULE_pure_column_or_named,rs.RULE_column_name,rs.RULE_without_column_name,rs.RULE_alter_table_drop_column,rs.RULE_delete_stmt])||n||s}function kd(e){if(!xd(e))return!1;let{tokenStream:t,cursorTokenIndex:i,anyRuleInList:s,allRulesInList:n}=e;return s([rs.RULE_into_table_stmt,rs.RULE_into_table_stmt_yq])&&s(rs.RULE_into_values_source)?pd(t,gd,i,rs.LPAREN):!!n([rs.RULE_select_stmt,rs.RULE_result_column])&&pd(t,gd,i,rs.SELECT)}function Ad({anyRuleInList:e}){return e([rs.RULE_expr,rs.RULE_table_ref,rs.RULE_simple_table_ref_core,rs.RULE_pure_column_or_named,rs.RULE_using_call_expr])}function Nd({anyRuleInList:e,allRulesInList:t}){let i=t([rs.RULE_id_expr,rs.RULE_select_stmt])&&!e(rs.RULE_table_ref);return e(rs.RULE_type_name_simple)||i}function Id({allRulesInList:e}){return e([rs.RULE_an_id,rs.RULE_pragma_stmt])}function Od({anyRuleInList:e}){if(e([rs.RULE_atom_expr,rs.RULE_in_atom_expr])&&!e(rs.RULE_table_ref))return e(rs.RULE_select_stmt)}function Dd({allRulesInList:e}){return e([rs.RULE_id_expr,rs.RULE_table_ref])}function Md({anyRuleInList:e}){if(e(rs.RULE_id_expr)&&!e(rs.RULE_table_ref))return e(rs.RULE_select_stmt)}function Pd({anyRuleInList:e,allRulesInList:t}){if(t([rs.RULE_select_stmt,rs.RULE_id_expr]))return!e([rs.RULE_group_by_clause,rs.RULE_table_ref,rs.RULE_where_expr])||void 0}function Fd({allRulesInList:e}){return e([rs.RULE_an_id_hint,rs.RULE_table_hint])}function Ud({allRulesInList:e,anyRuleInList:t}){if(!t([rs.RULE_table_setting_value,rs.RULE_topic_setting_value,rs.RULE_topic_consumer_setting_value])){if(e([rs.RULE_with_table_settings,rs.RULE_an_id]))return t(rs.RULE_create_external_data_source_stmt)?"externalDataSource":t(rs.RULE_create_view_stmt)?"view":t(rs.RULE_create_table_stmt)?"table":void 0;if(e([rs.RULE_with_topic_settings,rs.RULE_an_id]))return"topic";if(e([rs.RULE_topic_consumer_with_settings,rs.RULE_an_id]))return"topicConsumer";if(e([rs.RULE_replication_settings,rs.RULE_an_id]))return"replication"}}Si(pd,"isFirstPreviousTokenOfType"),Si(md,"getRuleCheckHelpers"),Si(fd,"getWindowFunctionsSuggestions"),Si(_d,"getObjectSuggestions"),Si(vd,"getTablestoreSuggestions"),Si(Cd,"getTableSuggestions"),Si(bd,"getUserSuggestions"),Si(Ed,"getGroupSuggestions"),Si(Sd,"getTopicSuggestions"),Si(yd,"getViewSuggestions"),Si(wd,"getReplicationSuggestions"),Si(Ld,"getExternalTableSuggestions"),Si(Rd,"getExternalDatasourceSuggestions"),Si(Td,"checkShouldSuggestTableIndexes"),Si(xd,"checkShouldSuggestColumns"),Si(kd,"checkShouldSuggestAllColumns"),Si(Ad,"checkShouldSuggestVariables"),Si(Nd,"getSimpleTypesSuggestions"),Si(Id,"getPragmasSuggestions"),Si(Od,"getUdfsSuggestions"),Si(Dd,"getTableFunctionsSuggestions"),Si(Md,"getFunctionsSuggestions"),Si(Pd,"getAggregateFunctionsSuggestions"),Si(Fd,"checkShouldSuggestTableHints"),Si(Ud,"getEntitySettingsSuggestions");var Hd=rs.ruleNames;function Bd(e){let t=e.findIndex((e=>e===rs.RULE_sql_stmt_core||e===rs.RULE_sql_stmt_core_yq));if(-1===t)return;let i=e[t+1];return i?Hd[i]:void 0}Si(Bd,"getParticularStatement");var Wd={suggestObject:"object",suggestTableStore:"tableStore",suggestTable:"table",suggestExternalTable:"externalTable",suggestExternalDatasource:"externalDataSource",suggestTopic:"topic",suggestView:"view",suggestReplication:"replication",suggestGroup:"group",suggestUser:"user"};function Vd(e,t,i){let s={...md(e),cursorTokenIndex:t,tokenStream:i},n=fd(s),r=_d(s),o=vd(s),a=Cd(s),l=bd(s),c=Ed(s),h=Sd(s),d=yd(s),u=wd(s),g=Ld(s),p=Rd(s),m=Td(s),f=xd(s),_=kd(s),v=Nd(s),C=Id(s),b=Od(s),E=Dd(s),S=Md(s),y=Pd(s),w=Fd(s),L=Ud(s);return{suggestWindowFunctions:n,shouldSuggestTableIndexes:m,shouldSuggestColumns:f,shouldSuggestAllColumns:_,shouldSuggestColumnAliases:f,shouldSuggestVariables:Ad(s),suggestSimpleTypes:v,suggestPragmas:C,suggestUdfs:b,suggestTableFunctions:E,suggestFunctions:S,suggestAggregateFunctions:y,suggestTableHints:w?Bd(e):void 0,suggestEntitySettings:L,suggestObject:r,suggestTableStore:o,suggestTable:a,suggestUser:l,suggestGroup:c,suggestTopic:h,suggestView:d,suggestReplication:u,suggestExternalTable:g,suggestExternalDatasource:p}}function zd(e,t,i){for(let s=0;s<e.size;s++){let n=e.get(s),r=n.column,o=n.text?.length??0,a=n.column+o;if(n.line===t.line&&r<=t.column-1&&a>=t.column-1&&i.includes(n.type)){let t=s-1;for(;t>=0;){let n=e.get(t);if(!i.includes(n.type))return s+1-t;t-=1}}}return 0}function Gd(e,t,i,s=[]){return jd(e,t,i,zd(t,i,s))}function jd(e,t,i,s){return e instanceof F?Yd(e,i,s):qd(e,t,i,s)}function Kd(e,t,i,s,n){let r=e.column,o=e.column+t.length;return e.start>e.stop?{index:e.tokenIndex,context:s,text:t.substring(0,i.column)}:e.line===i.line&&r<=i.column-1-n&&o>=i.column-1-n?{index:e.tokenIndex,context:s,text:t.substring(0,i.column-r)}:void 0}function Yd(e,t,i){return Kd(e.symbol,e.getText(),t,e,i)}function qd(e,t,i,s){if(!(!e.start||!e.stop||e.start.line>i.line||e.stop.line<i.line)){for(let n=0;n<e.getChildCount();n++){let r=e.getChild(n);if(!r)continue;let o=jd(r,t,i,s);if(o)return o}for(let n=e.start.tokenIndex;n<=e.stop.tokenIndex;n++){let r=Kd(t.get(n),t.get(n).text??"",i,e,s);if(r)return r}}}function $d(e,t,i,s,n,r,o,a=[]){let l=s(Di(e,t,o)),c=Gd(l,n,r,a);if(!c)throw new Error(`Could not find tokenContext at Ln ${r.line}, Col ${r.column}`);return i.visit(l),Qd(i.symbolTable,c.context)}function Qd(e,t){let i=Ji(t,e),s=[];return i instanceof li?s=i.getNestedSymbolsOfTypeSync(qi):e&&(s=e.getNestedSymbolsOfTypeSync(qi).filter((e=>!e.parent?.context))),s.map((e=>({name:e.name,value:e.value})))}function Xd(e,t,i,s,n,r,o,a=[]){let l={},c=s(Di(e,t,o)),h=Gd(c,n,r,a);if(!h)throw new Error(`Could not find tokenContext at Ln ${r.line}, Col ${r.column}`);i.visit(c);let d=Zd(i.symbolTable,h.context),u=Jd(i.symbolTable,h.context);return d.length&&(l.tableContextSuggestion={tables:d}),u.length&&(l.suggestColumnAliases=u),l}function Zd(e,t){let i=Ji(t,e),s=[];return i instanceof li?s=i.getNestedSymbolsOfTypeSync(Yi).filter((e=>e.parent?.context===i.context)):e&&(s=e.getNestedSymbolsOfTypeSync(Yi)),$i(s)}function Jd(e,t){let i=Ji(t,e),s=[];return i instanceof li?s=i.getNestedSymbolsOfTypeSync(Xi).filter((e=>e.parent?.context===i.context)):e&&(s=e.getNestedSymbolsOfTypeSync(Xi)),s.map((({name:e})=>({name:e})))}function eu(){let e=[],t=rs.LBRACE_SQUARE;for(let i=rs.EQUALS;i<=t;i++)i!==rs.ASTERISK&&e.push(i);return e.push(rs.STREAM),e.push(rs.STRING_VALUE),e.push(rs.REAL),e.push(rs.EOF),e.push(rs.DIGITS),e.push(rs.BLOB),e.push(rs.CURRENT_TIME),e.push(rs.CURRENT_DATE),e.push(rs.CURRENT_TIMESTAMP),e}Si(Vd,"getGranularSuggestions"),Si(zd,"getWhitespaceBeforeCursor"),Si(Gd,"computeTokenContext"),Si(jd,"computeTokenContextInternal"),Si(Kd,"getTokenContext"),Si(Yd,"computeTokenContextOfTerminalNode"),Si(qd,"computeTokenContextOfChildNode"),Si($d,"getVariableSuggestions"),Si(Qd,"suggestVariables"),Si(Xd,"getExtendedTableSuggestions"),Si(Zd,"suggestTables"),Si(Jd,"suggestColumnAliases"),Si(eu,"getIgnoredTokens");var tu=new Set(eu()),iu=new Set([rs.RULE_id_or_type,rs.RULE_cluster_expr,rs.RULE_identifier,rs.RULE_id,rs.RULE_integer,rs.RULE_type_id,rs.RULE_keyword,rs.RULE_keyword_compat,rs.RULE_keyword_as_compat,rs.RULE_keyword_expr_uncompat,rs.RULE_keyword_table_uncompat,rs.RULE_keyword_select_uncompat,rs.RULE_keyword_alter_uncompat,rs.RULE_keyword_in_uncompat,rs.RULE_keyword_window_uncompat,rs.RULE_keyword_hint_uncompat,rs.RULE_id_schema,rs.RULE_id_expr_in,rs.RULE_id_window,rs.RULE_id_table,rs.RULE_id_without,rs.RULE_id_hint,rs.RULE_id_as_compat]),su=class extends ud{static{Si(this,"YQLSymbolTableVisitor")}constructor(){super(),this.symbolTable=new bi("",{allowDuplicateSymbols:!0}),this.scope=this.symbolTable.addNewSymbolOfType(li,void 0)}withScope(e,t,i,s){let n=this.symbolTable.addNewSymbolOfType(t,this.scope,...i);n.context=e,this.scope=n;try{return s()}finally{this.scope=n.parent}}getColumnsFromSelectCore(e){let t=[],i=0;for(;i>=0;){let s=e?.result_column(i);if(!s){i=-1;continue}let n=s.an_id_as_compat()?.getText()||s.an_id_or_type()?.getText();if(n)t.push(n);else{let e=s.expr()?.getText();e&&t.push(e)}i+=1}return t.length?t:void 0}defaultResult(){return this.symbolTable}},nu=class extends su{constructor(){super(...arguments),this.addVariableSymbol=(e,t)=>{try{let i=0;for(;null!==i;){let s=e(i);s?(this.symbolTable.addNewSymbolOfType(qi,this.scope,s,t),i++):i=null}}catch(Ai){if(!(Ai instanceof ai))throw Ai}},this.visitDeclare_stmt=e=>{try{let t=e.bind_parameter()?.an_id_or_type()?.getText();if(t){let i=e.literal_value()?.getText();this.symbolTable.addNewSymbolOfType(qi,this.scope,t,i)}}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitAction_or_subquery_args=e=>(this.addVariableSymbol((t=>e.opt_bind_parameter(t)?.bind_parameter()?.an_id_or_type()?.getText())),this.visitChildren(e)),this.visitNamed_nodes_stmt=e=>{let t=(e.subselect_stmt()?.select_stmt()?.select_kind_parenthesis(0)||e.subselect_stmt()?.select_unparenthesized_stmt())?.select_kind_partial()?.select_kind()?.select_core(),i=t?this.getColumnsFromSelectCore(t):void 0;return this.addVariableSymbol((t=>e.bind_parameter_list()?.bind_parameter(t)?.an_id_or_type()?.getText()),i?{columns:i}:void 0),this.visitChildren(e)},this.visitDefine_action_or_subquery_stmt=e=>{try{let t=e.bind_parameter()?.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(qi,this.scope,t,void 0)}catch(t){if(!(t instanceof ai))throw t}return this.withScope(e,gi,[e.bind_parameter()?.an_id_or_type()?.getText()],(()=>this.visitChildren(e)))??{}},this.visitLambda=e=>{let t=Si((()=>{let t=e.smart_parenthesis()?.named_expr_list();return this.addVariableSymbol((e=>{let i=t?.named_expr(e)?.expr()?.getText();if(i&&i.startsWith("$"))return i.slice(1)})),this.visitChildren(e)}),"addVariables");return this.withScope(e,gi,[e.getText()],t)??{}}}static{Si(this,"YQLVariableSymbolTableVisitor")}},ru=class extends su{constructor(){super(...arguments),this.visitSql_stmt_core=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSelect_stmt=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSql_stmt_core_yq=e=>this.withScope(e,gi,[e.getText()],(()=>this.visitChildren(e)))??{},this.visitSimple_table_ref_core=e=>{try{let t=e.object_ref()?.id_or_at()?.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(Yi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitAlter_table_store_stmt=e=>{try{e.object_ref()?.id_or_at()?.getText()&&this.symbolTable.addNewSymbolOfType(Yi,this.scope,e.object_ref()?.id_or_at()?.getText())}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_single_source=e=>{try{let t=e.single_source().table_ref()?.getText()??"",i=e.an_id()?.getText()??e.an_id_as_compat()?.getText(),s=e.single_source().select_stmt()?.select_kind_parenthesis(0)?.select_kind_partial()?.select_kind()?.select_core(),n=s?this.getColumnsFromSelectCore(s):void 0;this.symbolTable.addNewSymbolOfType(Yi,this.scope,t,i,n)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_column=e=>{try{let t=e.an_id()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitNamed_expr=e=>{try{let t=e.an_id_or_type()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)},this.visitResult_column=e=>{try{let t=e.an_id_or_type()?.getText()??e.an_id_as_compat()?.getText();t&&this.symbolTable.addNewSymbolOfType(Xi,this.scope,t)}catch(t){if(!(t instanceof ai))throw t}return this.visitChildren(e)}}static{Si(this,"YQLTableSymbolTableVisitor")}};function ou(e,t,i){let s={};for(let[f,_]of e){if(!xi(t,_))break;switch(f){case rs.RULE_id_table:case rs.RULE_id_hint:case rs.RULE_identifier:case rs.RULE_id_or_type:case rs.RULE_id:{let e=Vd(_.ruleList,t,i),n=Object.fromEntries(Object.entries(e).filter((([e,t])=>t)));s={...s,...n}}}}let{suggestObject:n,suggestTableStore:r,suggestTable:o,suggestUser:a,suggestGroup:l,suggestTopic:c,suggestView:h,suggestReplication:d,suggestExternalTable:u,suggestExternalDatasource:g,...p}=s,m=Object.entries({suggestObject:n,suggestTableStore:r,suggestTable:o,suggestUser:a,suggestGroup:l,suggestTopic:c,suggestView:h,suggestReplication:d,suggestExternalTable:u,suggestExternalDatasource:g}).filter((([e,t])=>t)).map((([e])=>Wd[e]));return{suggestEntity:m.length?m:void 0,...p}}function au(e,t){return t?cu(e,t):e.sql_query()}function lu(e,t){return t?cu(e,t):e.sql_query_yq()}function cu(e,t){switch(t){case"from":return e.from_stmt();case"alter":return e.alter_table_for_autocomplete();case"insert":return e.into_table_stmt();case"update":return e.update_stmt();case"select":return e.select_core()}}function hu(e){return(t,i,s,n,r,o)=>{let{shouldSuggestColumns:a,shouldSuggestAllColumns:l,shouldSuggestColumnAliases:c,shouldSuggestTableIndexes:h,shouldSuggestVariables:d,...u}=ou(i,n,s),g={...t,...u,suggestTemplates:Oi(o,r)},p=a||c||h;if(d){let t=new nu,i=$d(ns,rs,t,e,s,r,o,[rs.WS]);i.length&&(g.suggestVariables=i)}if(p){let t=new ru,{tableContextSuggestion:i,suggestColumnAliases:n}=Xd(ns,rs,t,e,s,r,o,[rs.WS]);a&&i&&(g.suggestColumns={tables:i.tables},l&&(g.suggestColumns.all=!0)),h&&i&&(g.suggestTableIndexes={tables:i.tables}),c&&n&&(g.suggestColumnAliases=n)}return g}}Si(ou,"processVisitedRules"),Si(au,"getParseTree"),Si(lu,"getParseTreeYQ"),Si(cu,"getCommonParseTree"),Si(hu,"getEnrichAutocompleteResult");var du=new os(null,-1),uu={Lexer:ns,Parser:rs,tokenDictionary:gd,ignoredTokens:tu,rulesToVisit:iu,getParseTree:au,enrichAutocompleteResult:hu(au),context:du},gu=new nd(null,-1),pu={Lexer:ns,Parser:rs,tokenDictionary:gd,ignoredTokens:tu,rulesToVisit:iu,getParseTree:lu,enrichAutocompleteResult:hu(lu),context:gu};function mu(e){return zi(uu.Lexer,uu.Parser,uu.tokenDictionary.SPACE,uu.getParseTree,e)}function fu(e,t){return ji(uu.Lexer,uu.Parser,uu.tokenDictionary.SPACE,uu.ignoredTokens,uu.rulesToVisit,uu.getParseTree,uu.enrichAutocompleteResult,e,t,uu.context)}function _u(e,t){return ji(pu.Lexer,pu.Parser,pu.tokenDictionary.SPACE,pu.ignoredTokens,pu.rulesToVisit,pu.getParseTree,pu.enrichAutocompleteResult,e,t,pu.context)}Si(mu,"parseYqlQueryWithoutCursor"),Si(fu,"parseYqlQuery"),Si((function(e){return zi(pu.Lexer,pu.Parser,pu.tokenDictionary.SPACE,pu.getParseTree,e)}),"parseYqQueryWithoutCursor"),Si(_u,"parseYqQuery"),Si((function(e){return fu(...Ki(e))}),"parseYqlQueryWithCursor"),Si((function(e){return _u(...Ki(e))}),"parseYqQueryWithCursor"),Si((function(e){return Vi(ns,ns.symbolicNames,uu.tokenDictionary.SPACE,e)}),"tokenizeYqlQuery"),Si((function(e){return Hi(e,uu.Lexer,uu.Parser,uu.tokenDictionary.SPACE,[uu.tokenDictionary.SPACE],uu.tokenDictionary.SEMICOLON,rs.RULE_sql_stmt,uu.getParseTree)}),"extractYqlStatementPositionsFromQuery")},16122:(e,t,i)=>{"use strict";i.d(t,{u:()=>c});var s=i(23971);const n=(e,t,i)=>{if(e&&"reportValidity"in e){const n=(0,s.Jt)(i,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},r=(e,t)=>{for(const i in t.fields){const s=t.fields[i];s&&s.ref&&"reportValidity"in s.ref?n(s.ref,i,e):s.refs&&s.refs.forEach((t=>n(t,i,e)))}},o=(e,t)=>{t.shouldUseNativeValidation&&r(e,t);const i={};for(const n in e){const r=(0,s.Jt)(t.fields,n),o=Object.assign(e[n]||{},{ref:r&&r.ref});if(a(t.names||Object.keys(e),n)){const e=Object.assign({},(0,s.Jt)(i,n));(0,s.hZ)(e,"root",o),(0,s.hZ)(i,n,e)}else(0,s.hZ)(i,n,o)}return i},a=(e,t)=>e.some((e=>e.startsWith(t+".")));var l=function(e,t){for(var i={};e.length;){var n=e[0],r=n.code,o=n.message,a=n.path.join(".");if(!i[a])if("unionErrors"in n){var l=n.unionErrors[0].errors[0];i[a]={message:l.message,type:l.code}}else i[a]={message:o,type:r};if("unionErrors"in n&&n.unionErrors.forEach((function(t){return t.errors.forEach((function(t){return e.push(t)}))})),t){var c=i[a].types,h=c&&c[n.code];i[a]=(0,s.Gb)(a,t,i,r,h?[].concat(h,n.message):n.message)}e.shift()}return i},c=function(e,t,i){return void 0===i&&(i={}),function(s,n,a){try{return Promise.resolve(function(n,o){try{var l=Promise.resolve(e["sync"===i.mode?"parse":"parseAsync"](s,t)).then((function(e){return a.shouldUseNativeValidation&&r({},a),{errors:{},values:i.raw?s:e}}))}catch(c){return o(c)}return l&&l.then?l.then(void 0,o):l}(0,(function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:o(l(e.errors,!a.shouldUseNativeValidation&&"all"===a.criteriaMode),a)};throw e})))}catch(c){return Promise.reject(c)}}}},90474:(e,t,i)=>{"use strict";i.d(t,{Mj:()=>k});var s={grad:.9,turn:360,rad:360/(2*Math.PI)},n=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},r=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=Math.pow(10,t)),Math.round(i*e)/i+0},o=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=1),e>i?i:e>t?e:t},a=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},l=function(e){return{r:o(e.r,0,255),g:o(e.g,0,255),b:o(e.b,0,255),a:o(e.a)}},c=function(e){return{r:r(e.r),g:r(e.g),b:r(e.b),a:r(e.a,3)}},h=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},u=function(e){var t=e.r,i=e.g,s=e.b,n=e.a,r=Math.max(t,i,s),o=r-Math.min(t,i,s),a=o?r===t?(i-s)/o:r===i?2+(s-t)/o:4+(t-i)/o:0;return{h:60*(a<0?a+6:a),s:r?o/r*100:0,v:r/255*100,a:n}},g=function(e){var t=e.h,i=e.s,s=e.v,n=e.a;t=t/360*6,i/=100,s/=100;var r=Math.floor(t),o=s*(1-i),a=s*(1-(t-r)*i),l=s*(1-(1-t+r)*i),c=r%6;return{r:255*[s,a,o,o,l,s][c],g:255*[l,s,s,a,o,o][c],b:255*[o,o,l,s,s,a][c],a:n}},p=function(e){return{h:a(e.h),s:o(e.s,0,100),l:o(e.l,0,100),a:o(e.a)}},m=function(e){return{h:r(e.h),s:r(e.s),l:r(e.l),a:r(e.a,3)}},f=function(e){return g((i=(t=e).s,{h:t.h,s:(i*=((s=t.l)<50?s:100-s)/100)>0?2*i/(s+i)*100:0,v:s+i,a:t.a}));var t,i,s},_=function(e){return{h:(t=u(e)).h,s:(n=(200-(i=t.s))*(s=t.v)/100)>0&&n<200?i*s/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,i,s,n},v=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,S={string:[[function(e){var t=h.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?r(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?r(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=b.exec(e)||E.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:l({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=v.exec(e)||C.exec(e);if(!t)return null;var i,n,r=p({h:(i=t[1],n=t[2],void 0===n&&(n="deg"),Number(i)*(s[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return f(r)},"hsl"]],object:[[function(e){var t=e.r,i=e.g,s=e.b,r=e.a,o=void 0===r?1:r;return n(t)&&n(i)&&n(s)?l({r:Number(t),g:Number(i),b:Number(s),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,i=e.s,s=e.l,r=e.a,o=void 0===r?1:r;if(!n(t)||!n(i)||!n(s))return null;var a=p({h:Number(t),s:Number(i),l:Number(s),a:Number(o)});return f(a)},"hsl"],[function(e){var t=e.h,i=e.s,s=e.v,r=e.a,l=void 0===r?1:r;if(!n(t)||!n(i)||!n(s))return null;var c=function(e){return{h:a(e.h),s:o(e.s,0,100),v:o(e.v,0,100),a:o(e.a)}}({h:Number(t),s:Number(i),v:Number(s),a:Number(l)});return g(c)},"hsv"]]},y=function(e,t){for(var i=0;i<t.length;i++){var s=t[i][0](e);if(s)return[s,t[i][1]]}return[null,void 0]},w=function(e){return"string"==typeof e?y(e.trim(),S.string):"object"==typeof e&&null!==e?y(e,S.object):[null,void 0]},L=function(e,t){var i=_(e);return{h:i.h,s:o(i.s+100*t,0,100),l:i.l,a:i.a}},R=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},T=function(e,t){var i=_(e);return{h:i.h,s:i.s,l:o(i.l+100*t,0,100),a:i.a}},x=function(){function e(e){this.parsed=w(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return r(R(this.rgba),2)},e.prototype.isDark=function(){return R(this.rgba)<.5},e.prototype.isLight=function(){return R(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=c(this.rgba)).r,i=e.g,s=e.b,o=(n=e.a)<1?d(r(255*n)):"","#"+d(t)+d(i)+d(s)+o;var e,t,i,s,n,o},e.prototype.toRgb=function(){return c(this.rgba)},e.prototype.toRgbString=function(){return t=(e=c(this.rgba)).r,i=e.g,s=e.b,(n=e.a)<1?"rgba("+t+", "+i+", "+s+", "+n+")":"rgb("+t+", "+i+", "+s+")";var e,t,i,s,n},e.prototype.toHsl=function(){return m(_(this.rgba))},e.prototype.toHslString=function(){return t=(e=m(_(this.rgba))).h,i=e.s,s=e.l,(n=e.a)<1?"hsla("+t+", "+i+"%, "+s+"%, "+n+")":"hsl("+t+", "+i+"%, "+s+"%)";var e,t,i,s,n},e.prototype.toHsv=function(){return e=u(this.rgba),{h:r(e.h),s:r(e.s),v:r(e.v),a:r(e.a,3)};var e},e.prototype.invert=function(){return k({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),k(L(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),k(L(this.rgba,-e))},e.prototype.grayscale=function(){return k(L(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),k(T(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),k(T(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?k({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):r(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=_(this.rgba);return"number"==typeof e?k({h:e,s:t.s,l:t.l,a:t.a}):r(t.h)},e.prototype.isEqual=function(e){return this.toHex()===k(e).toHex()},e}(),k=function(e){return e instanceof x?e:new x(e)}},23971:(e,t,i)=>{"use strict";i.d(t,{Gb:()=>V,Jt:()=>f,hZ:()=>b,mN:()=>Ae,xI:()=>W});var s=i(59284),n=e=>"checkbox"===e.type,r=e=>e instanceof Date,o=e=>null==e;const a=e=>"object"===typeof e;var l=e=>!o(e)&&!Array.isArray(e)&&a(e)&&!r(e),c=e=>l(e)&&e.target?n(e.target)?e.target.checked:e.target.value:e,h=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),d=e=>{const t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},u="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function g(e){let t;const i=Array.isArray(e),s="undefined"!==typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(u&&(e instanceof Blob||s)||!i&&!l(e))return e;if(t=i?[]:{},i||d(e))for(const i in e)e.hasOwnProperty(i)&&(t[i]=g(e[i]));else t=e}return t}var p=e=>Array.isArray(e)?e.filter(Boolean):[],m=e=>void 0===e,f=(e,t,i)=>{if(!t||!l(e))return i;const s=p(t.split(/[,[\].]+?/)).reduce(((e,t)=>o(e)?e:e[t]),e);return m(s)||s===e?m(e[t])?i:e[t]:s},_=e=>"boolean"===typeof e,v=e=>/^\w*$/.test(e),C=e=>p(e.replace(/["|']|\]/g,"").split(/\.|\[/)),b=(e,t,i)=>{let s=-1;const n=v(t)?[t]:C(t),r=n.length,o=r-1;for(;++s<r;){const t=n[s];let r=i;if(s!==o){const i=e[t];r=l(i)||Array.isArray(i)?i:isNaN(+n[s+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=r,e=e[t]}return e};const E={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},S={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},y="max",w="min",L="maxLength",R="minLength",T="pattern",x="required",k="validate",A=s.createContext(null),N=()=>s.useContext(A);var I=(e,t,i,s=!0)=>{const n={defaultValues:t._defaultValues};for(const r in e)Object.defineProperty(n,r,{get:()=>{const n=r;return t._proxyFormState[n]!==S.all&&(t._proxyFormState[n]=!s||S.all),i&&(i[n]=!0),e[n]}});return n},O=e=>l(e)&&!Object.keys(e).length,D=(e,t,i,s)=>{i(e);const{name:n,...r}=e;return O(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find((e=>t[e]===(!s||S.all)))},M=e=>Array.isArray(e)?e:[e],P=(e,t,i)=>!e||!t||e===t||M(e).some((e=>e&&(i?e===t:e.startsWith(t)||t.startsWith(e))));function F(e){const t=s.useRef(e);t.current=e,s.useEffect((()=>{const i=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{i&&i.unsubscribe()}}),[e.disabled])}var U=e=>"string"===typeof e,H=(e,t,i,s,n)=>U(e)?(s&&t.watch.add(e),f(i,e,n)):Array.isArray(e)?e.map((e=>(s&&t.watch.add(e),f(i,e)))):(s&&(t.watchAll=!0),i);function B(e){const t=N(),{name:i,disabled:n,control:r=t.control,shouldUnregister:o}=e,a=h(r._names.array,i),l=function(e){const t=N(),{control:i=t.control,name:n,defaultValue:r,disabled:o,exact:a}=e||{},l=s.useRef(n);l.current=n,F({disabled:o,subject:i._subjects.values,next:e=>{P(l.current,e.name,a)&&h(g(H(l.current,i._names,e.values||i._formValues,!1,r)))}});const[c,h]=s.useState(i._getWatch(n,r));return s.useEffect((()=>i._removeUnmounted())),c}({control:r,name:i,defaultValue:f(r._formValues,i,f(r._defaultValues,i,e.defaultValue)),exact:!0}),d=function(e){const t=N(),{control:i=t.control,disabled:n,name:r,exact:o}=e||{},[a,l]=s.useState(i._formState),c=s.useRef(!0),h=s.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=s.useRef(r);return d.current=r,F({disabled:n,next:e=>c.current&&P(d.current,e.name,o)&&D(e,h.current,i._updateFormState)&&l({...i._formState,...e}),subject:i._subjects.state}),s.useEffect((()=>(c.current=!0,h.current.isValid&&i._updateValid(!0),()=>{c.current=!1})),[i]),s.useMemo((()=>I(a,i,h.current,!1)),[a,i])}({control:r,name:i,exact:!0}),u=s.useRef(r.register(i,{...e.rules,value:l,..._(e.disabled)?{disabled:e.disabled}:{}})),p=s.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!f(d.errors,i)},isDirty:{enumerable:!0,get:()=>!!f(d.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!f(d.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!f(d.validatingFields,i)},error:{enumerable:!0,get:()=>f(d.errors,i)}})),[d,i]),v=s.useMemo((()=>({name:i,value:l,..._(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:e=>u.current.onChange({target:{value:c(e),name:i},type:E.CHANGE}),onBlur:()=>u.current.onBlur({target:{value:f(r._formValues,i),name:i},type:E.BLUR}),ref:e=>{const t=f(r._fields,i);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}})),[i,r._formValues,n,d.disabled,l,r._fields]);return s.useEffect((()=>{const e=r._options.shouldUnregister||o,t=(e,t)=>{const i=f(r._fields,e);i&&i._f&&(i._f.mount=t)};if(t(i,!0),e){const e=g(f(r._options.defaultValues,i));b(r._defaultValues,i,e),m(f(r._formValues,i))&&b(r._formValues,i,e)}return!a&&r.register(i),()=>{(a?e&&!r._state.action:e)?r.unregister(i):t(i,!1)}}),[i,r,a,o]),s.useEffect((()=>{r._updateDisabledField({disabled:n,fields:r._fields,name:i})}),[n,i,r]),s.useMemo((()=>({field:v,formState:d,fieldState:p})),[v,d,p])}const W=e=>e.render(B(e));var V=(e,t,i,s,n)=>t?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[s]:n||!0}}:{},z=e=>({isOnSubmit:!e||e===S.onSubmit,isOnBlur:e===S.onBlur,isOnChange:e===S.onChange,isOnAll:e===S.all,isOnTouch:e===S.onTouched}),G=(e,t,i)=>!i&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const j=(e,t,i,s)=>{for(const n of i||Object.keys(e)){const i=f(e,n);if(i){const{_f:e,...r}=i;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],n)&&!s)return!0;if(e.ref&&t(e.ref,e.name)&&!s)return!0;if(j(r,t))break}else if(l(r)&&j(r,t))break}}};var K=(e,t,i)=>{const s=M(f(e,i));return b(s,"root",t[i]),b(e,i,s),e},Y=e=>"file"===e.type,q=e=>"function"===typeof e,$=e=>{if(!u)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Q=e=>U(e),X=e=>"radio"===e.type,Z=e=>e instanceof RegExp;const J={value:!1,isValid:!1},ee={value:!0,isValid:!0};var te=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!m(e[0].attributes.value)?m(e[0].value)||""===e[0].value?ee:{value:e[0].value,isValid:!0}:ee:J}return J};const ie={isValid:!1,value:null};var se=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),ie):ie;function ne(e,t,i="validate"){if(Q(e)||Array.isArray(e)&&e.every(Q)||_(e)&&!e)return{type:i,message:Q(e)?e:"",ref:t}}var re=e=>l(e)&&!Z(e)?e:{value:e,message:""},oe=async(e,t,i,s,r,a)=>{const{ref:c,refs:h,required:d,maxLength:u,minLength:g,min:p,max:v,pattern:C,validate:b,name:E,valueAsNumber:S,mount:A}=e._f,N=f(i,E);if(!A||t.has(E))return{};const I=h?h[0]:c,D=e=>{r&&I.reportValidity&&(I.setCustomValidity(_(e)?"":e||""),I.reportValidity())},M={},P=X(c),F=n(c),H=P||F,B=(S||Y(c))&&m(c.value)&&m(N)||$(c)&&""===c.value||""===N||Array.isArray(N)&&!N.length,W=V.bind(null,E,s,M),z=(e,t,i,s=L,n=R)=>{const r=e?t:i;M[E]={type:e?s:n,message:r,ref:c,...W(e?s:n,r)}};if(a?!Array.isArray(N)||!N.length:d&&(!H&&(B||o(N))||_(N)&&!N||F&&!te(h).isValid||P&&!se(h).isValid)){const{value:e,message:t}=Q(d)?{value:!!d,message:d}:re(d);if(e&&(M[E]={type:x,message:t,ref:I,...W(x,t)},!s))return D(t),M}if(!B&&(!o(p)||!o(v))){let e,t;const i=re(v),n=re(p);if(o(N)||isNaN(N)){const s=c.valueAsDate||new Date(N),r=e=>new Date((new Date).toDateString()+" "+e),o="time"==c.type,a="week"==c.type;U(i.value)&&N&&(e=o?r(N)>r(i.value):a?N>i.value:s>new Date(i.value)),U(n.value)&&N&&(t=o?r(N)<r(n.value):a?N<n.value:s<new Date(n.value))}else{const s=c.valueAsNumber||(N?+N:N);o(i.value)||(e=s>i.value),o(n.value)||(t=s<n.value)}if((e||t)&&(z(!!e,i.message,n.message,y,w),!s))return D(M[E].message),M}if((u||g)&&!B&&(U(N)||a&&Array.isArray(N))){const e=re(u),t=re(g),i=!o(e.value)&&N.length>+e.value,n=!o(t.value)&&N.length<+t.value;if((i||n)&&(z(i,e.message,t.message),!s))return D(M[E].message),M}if(C&&!B&&U(N)){const{value:e,message:t}=re(C);if(Z(e)&&!N.match(e)&&(M[E]={type:T,message:t,ref:c,...W(T,t)},!s))return D(t),M}if(b)if(q(b)){const e=ne(await b(N,i),I);if(e&&(M[E]={...e,...W(k,e.message)},!s))return D(e.message),M}else if(l(b)){let e={};for(const t in b){if(!O(e)&&!s)break;const n=ne(await b[t](N,i),I,t);n&&(e={...n,...W(t,n.message)},D(n.message),s&&(M[E]=e))}if(!O(e)&&(M[E]={ref:I,...e},!s))return M}return D(!0),M};function ae(e,t){const i=Array.isArray(t)?t:v(t)?[t]:C(t),s=1===i.length?e:function(e,t){const i=t.slice(0,-1).length;let s=0;for(;s<i;)e=m(e)?s++:e[t[s++]];return e}(e,i),n=i.length-1,r=i[n];return s&&delete s[r],0!==n&&(l(s)&&O(s)||Array.isArray(s)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!m(e[t]))return!1;return!0}(s))&&ae(e,i.slice(0,-1)),e}var le=()=>{let e=[];return{get observers(){return e},next:t=>{for(const i of e)i.next&&i.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},ce=e=>o(e)||!a(e);function he(e,t){if(ce(e)||ce(t))return e===t;if(r(e)&&r(t))return e.getTime()===t.getTime();const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(const n of i){const i=e[n];if(!s.includes(n))return!1;if("ref"!==n){const e=t[n];if(r(i)&&r(e)||l(i)&&l(e)||Array.isArray(i)&&Array.isArray(e)?!he(i,e):i!==e)return!1}}return!0}var de=e=>"select-multiple"===e.type,ue=e=>X(e)||n(e),ge=e=>$(e)&&e.isConnected,pe=e=>{for(const t in e)if(q(e[t]))return!0;return!1};function me(e,t={}){const i=Array.isArray(e);if(l(e)||i)for(const s in e)Array.isArray(e[s])||l(e[s])&&!pe(e[s])?(t[s]=Array.isArray(e[s])?[]:{},me(e[s],t[s])):o(e[s])||(t[s]=!0);return t}function fe(e,t,i){const s=Array.isArray(e);if(l(e)||s)for(const n in e)Array.isArray(e[n])||l(e[n])&&!pe(e[n])?m(t)||ce(i[n])?i[n]=Array.isArray(e[n])?me(e[n],[]):{...me(e[n])}:fe(e[n],o(t)?{}:t[n],i[n]):i[n]=!he(e[n],t[n]);return i}var _e=(e,t)=>fe(e,t,me(t)),ve=(e,{valueAsNumber:t,valueAsDate:i,setValueAs:s})=>m(e)?e:t?""===e?NaN:e?+e:e:i&&U(e)?new Date(e):s?s(e):e;function Ce(e){const t=e.ref;return Y(t)?t.files:X(t)?se(e.refs).value:de(t)?[...t.selectedOptions].map((({value:e})=>e)):n(t)?te(e.refs).value:ve(m(t.value)?e.ref.value:t.value,e)}var be=(e,t,i,s)=>{const n={};for(const r of e){const e=f(t,r);e&&b(n,r,e._f)}return{criteriaMode:i,names:[...e],fields:n,shouldUseNativeValidation:s}},Ee=e=>m(e)?e:Z(e)?e.source:l(e)?Z(e.value)?e.value.source:e.value:e;const Se="AsyncFunction";var ye=e=>!!e&&!!e.validate&&!!(q(e.validate)&&e.validate.constructor.name===Se||l(e.validate)&&Object.values(e.validate).find((e=>e.constructor.name===Se))),we=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Le(e,t,i){const s=f(e,i);if(s||v(i))return{error:s,name:i};const n=i.split(".");for(;n.length;){const s=n.join("."),r=f(t,s),o=f(e,s);if(r&&!Array.isArray(r)&&i!==s)return{name:i};if(o&&o.type)return{name:s,error:o};n.pop()}return{name:i}}var Re=(e,t,i,s,n)=>!n.isOnAll&&(!i&&n.isOnTouch?!(t||e):(i?s.isOnBlur:n.isOnBlur)?!e:!(i?s.isOnChange:n.isOnChange)||e),Te=(e,t)=>!p(f(e,t)).length&&ae(e,t);const xe={mode:S.onSubmit,reValidateMode:S.onChange,shouldFocusError:!0};function ke(e={}){let t,i={...xe,...e},s={submitCount:0,isDirty:!1,isLoading:q(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1},a={},d=(l(i.defaultValues)||l(i.values))&&g(i.defaultValues||i.values)||{},v=i.shouldUnregister?{}:g(d),C={action:!1,mount:!1,watch:!1},y={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},w=0;const L={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},R={values:le(),array:le(),state:le()},T=z(i.mode),x=z(i.reValidateMode),k=i.criteriaMode===S.all,A=async e=>{if(!i.disabled&&(L.isValid||e)){const e=i.resolver?O((await F()).errors):await B(a,!0);e!==s.isValid&&R.state.next({isValid:e})}},N=(e,t)=>{i.disabled||!L.isValidating&&!L.validatingFields||((e||Array.from(y.mount)).forEach((e=>{e&&(t?b(s.validatingFields,e,t):ae(s.validatingFields,e))})),R.state.next({validatingFields:s.validatingFields,isValidating:!O(s.validatingFields)}))},I=(e,t,i,s)=>{const n=f(a,e);if(n){const r=f(v,e,m(i)?f(d,e):i);m(r)||s&&s.defaultChecked||t?b(v,e,t?r:Ce(n._f)):Q(e,r),C.mount&&A()}},D=(e,t,n,r,o)=>{let l=!1,c=!1;const h={name:e};if(!i.disabled){const i=!!(f(a,e)&&f(a,e)._f&&f(a,e)._f.disabled);if(!n||r){L.isDirty&&(c=s.isDirty,s.isDirty=h.isDirty=W(),l=c!==h.isDirty);const n=i||he(f(d,e),t);c=!(i||!f(s.dirtyFields,e)),n||i?ae(s.dirtyFields,e):b(s.dirtyFields,e,!0),h.dirtyFields=s.dirtyFields,l=l||L.dirtyFields&&c!==!n}if(n){const t=f(s.touchedFields,e);t||(b(s.touchedFields,e,n),h.touchedFields=s.touchedFields,l=l||L.touchedFields&&t!==n)}l&&o&&R.state.next(h)}return l?h:{}},P=(e,n,r,o)=>{const a=f(s.errors,e),l=L.isValid&&_(n)&&s.isValid!==n;var c;if(i.delayError&&r?(c=()=>((e,t)=>{b(s.errors,e,t),R.state.next({errors:s.errors})})(e,r),t=e=>{clearTimeout(w),w=setTimeout(c,e)},t(i.delayError)):(clearTimeout(w),t=null,r?b(s.errors,e,r):ae(s.errors,e)),(r?!he(a,r):a)||!O(o)||l){const t={...o,...l&&_(n)?{isValid:n}:{},errors:s.errors,name:e};s={...s,...t},R.state.next(t)}},F=async e=>{N(e,!0);const t=await i.resolver(v,i.context,be(e||y.mount,a,i.criteriaMode,i.shouldUseNativeValidation));return N(e),t},B=async(e,t,n={valid:!0})=>{for(const r in e){const o=e[r];if(o){const{_f:e,...a}=o;if(e){const a=y.array.has(e.name),l=o._f&&ye(o._f);l&&L.validatingFields&&N([r],!0);const c=await oe(o,y.disabled,v,k,i.shouldUseNativeValidation&&!t,a);if(l&&L.validatingFields&&N([r]),c[e.name]&&(n.valid=!1,t))break;!t&&(f(c,e.name)?a?K(s.errors,c,e.name):b(s.errors,e.name,c[e.name]):ae(s.errors,e.name))}!O(a)&&await B(a,t,n)}}return n.valid},W=(e,t)=>!i.disabled&&(e&&t&&b(v,e,t),!he(ie(),d)),V=(e,t,i)=>H(e,y,{...C.mount?v:m(t)?d:U(e)?{[e]:t}:t},i,t),Q=(e,t,i={})=>{const s=f(a,e);let r=t;if(s){const i=s._f;i&&(!i.disabled&&b(v,e,ve(t,i)),r=$(i.ref)&&o(t)?"":t,de(i.ref)?[...i.ref.options].forEach((e=>e.selected=r.includes(e.value))):i.refs?n(i.ref)?i.refs.length>1?i.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(r)?!!r.find((t=>t===e.value)):r===e.value))):i.refs[0]&&(i.refs[0].checked=!!r):i.refs.forEach((e=>e.checked=e.value===r)):Y(i.ref)?i.ref.value="":(i.ref.value=r,i.ref.type||R.values.next({name:e,values:{...v}})))}(i.shouldDirty||i.shouldTouch)&&D(e,r,i.shouldTouch,i.shouldDirty,!0),i.shouldValidate&&te(e)},X=(e,t,i)=>{for(const s in t){const n=t[s],o=`${e}.${s}`,c=f(a,o);(y.array.has(e)||l(n)||c&&!c._f)&&!r(n)?X(o,n,i):Q(o,n,i)}},Z=(e,t,i={})=>{const n=f(a,e),r=y.array.has(e),l=g(t);b(v,e,l),r?(R.array.next({name:e,values:{...v}}),(L.isDirty||L.dirtyFields)&&i.shouldDirty&&R.state.next({name:e,dirtyFields:_e(d,v),isDirty:W(e,l)})):!n||n._f||o(l)?Q(e,l,i):X(e,l,i),G(e,y)&&R.state.next({...s}),R.values.next({name:C.mount?e:void 0,values:{...v}})},J=async e=>{C.mount=!0;const n=e.target;let o=n.name,l=!0;const h=f(a,o),d=e=>{l=Number.isNaN(e)||r(e)&&isNaN(e.getTime())||he(e,f(v,o,e))};if(h){let r,u;const g=n.type?Ce(h._f):c(e),p=e.type===E.BLUR||e.type===E.FOCUS_OUT,m=!we(h._f)&&!i.resolver&&!f(s.errors,o)&&!h._f.deps||Re(p,f(s.touchedFields,o),s.isSubmitted,x,T),_=G(o,y,p);b(v,o,g),p?(h._f.onBlur&&h._f.onBlur(e),t&&t(0)):h._f.onChange&&h._f.onChange(e);const C=D(o,g,p,!1),S=!O(C)||_;if(!p&&R.values.next({name:o,type:e.type,values:{...v}}),m)return L.isValid&&("onBlur"===i.mode&&p?A():p||A()),S&&R.state.next({name:o,..._?{}:C});if(!p&&_&&R.state.next({...s}),i.resolver){const{errors:e}=await F([o]);if(d(g),l){const t=Le(s.errors,a,o),i=Le(e,a,t.name||o);r=i.error,o=i.name,u=O(e)}}else N([o],!0),r=(await oe(h,y.disabled,v,k,i.shouldUseNativeValidation))[o],N([o]),d(g),l&&(r?u=!1:L.isValid&&(u=await B(a,!0)));l&&(h._f.deps&&te(h._f.deps),P(o,u,r,C))}},ee=(e,t)=>{if(f(s.errors,t)&&e.focus)return e.focus(),1},te=async(e,t={})=>{let n,r;const o=M(e);if(i.resolver){const t=await(async e=>{const{errors:t}=await F(e);if(e)for(const i of e){const e=f(t,i);e?b(s.errors,i,e):ae(s.errors,i)}else s.errors=t;return t})(m(e)?e:o);n=O(t),r=e?!o.some((e=>f(t,e))):n}else e?(r=(await Promise.all(o.map((async e=>{const t=f(a,e);return await B(t&&t._f?{[e]:t}:t)})))).every(Boolean),(r||s.isValid)&&A()):r=n=await B(a);return R.state.next({...!U(e)||L.isValid&&n!==s.isValid?{}:{name:e},...i.resolver||!e?{isValid:n}:{},errors:s.errors}),t.shouldFocus&&!r&&j(a,ee,e?o:y.mount),r},ie=e=>{const t={...C.mount?v:d};return m(e)?t:U(e)?f(t,e):e.map((e=>f(t,e)))},se=(e,t)=>({invalid:!!f((t||s).errors,e),isDirty:!!f((t||s).dirtyFields,e),error:f((t||s).errors,e),isValidating:!!f(s.validatingFields,e),isTouched:!!f((t||s).touchedFields,e)}),ne=(e,t,i)=>{const n=(f(a,e,{_f:{}})._f||{}).ref,r=f(s.errors,e)||{},{ref:o,message:l,type:c,...h}=r;b(s.errors,e,{...h,...t,ref:n}),R.state.next({name:e,errors:s.errors,isValid:!1}),i&&i.shouldFocus&&n&&n.focus&&n.focus()},re=(e,t={})=>{for(const n of e?M(e):y.mount)y.mount.delete(n),y.array.delete(n),t.keepValue||(ae(a,n),ae(v,n)),!t.keepError&&ae(s.errors,n),!t.keepDirty&&ae(s.dirtyFields,n),!t.keepTouched&&ae(s.touchedFields,n),!t.keepIsValidating&&ae(s.validatingFields,n),!i.shouldUnregister&&!t.keepDefaultValue&&ae(d,n);R.values.next({values:{...v}}),R.state.next({...s,...t.keepDirty?{isDirty:W()}:{}}),!t.keepIsValid&&A()},ce=({disabled:e,name:t,field:i,fields:s})=>{(_(e)&&C.mount||e||y.disabled.has(t))&&(e?y.disabled.add(t):y.disabled.delete(t),D(t,Ce(i?i._f:f(s,t)._f),!1,!1,!0))},pe=(e,t={})=>{let s=f(a,e);const n=_(t.disabled)||_(i.disabled);return b(a,e,{...s||{},_f:{...s&&s._f?s._f:{ref:{name:e}},name:e,mount:!0,...t}}),y.mount.add(e),s?ce({field:s,disabled:_(t.disabled)?t.disabled:i.disabled,name:e}):I(e,!0,t.value),{...n?{disabled:t.disabled||i.disabled}:{},...i.progressive?{required:!!t.required,min:Ee(t.min),max:Ee(t.max),minLength:Ee(t.minLength),maxLength:Ee(t.maxLength),pattern:Ee(t.pattern)}:{},name:e,onChange:J,onBlur:J,ref:n=>{if(n){pe(e,t),s=f(a,e);const i=m(n.value)&&n.querySelectorAll&&n.querySelectorAll("input,select,textarea")[0]||n,r=ue(i),o=s._f.refs||[];if(r?o.find((e=>e===i)):i===s._f.ref)return;b(a,e,{_f:{...s._f,...r?{refs:[...o.filter(ge),i,...Array.isArray(f(d,e))?[{}]:[]],ref:{type:i.type,name:e}}:{ref:i}}}),I(e,!1,void 0,i)}else s=f(a,e,{}),s._f&&(s._f.mount=!1),(i.shouldUnregister||t.shouldUnregister)&&(!h(y.array,e)||!C.action)&&y.unMount.add(e)}}},me=()=>i.shouldFocusError&&j(a,ee,y.mount),fe=(e,t)=>async n=>{let r;n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let o=g(v);if(y.disabled.size)for(const e of y.disabled)b(o,e,void 0);if(R.state.next({isSubmitting:!0}),i.resolver){const{errors:e,values:t}=await F();s.errors=e,o=t}else await B(a);if(ae(s.errors,"root"),O(s.errors)){R.state.next({errors:{}});try{await e(o,n)}catch(l){r=l}}else t&&await t({...s.errors},n),me(),setTimeout(me);if(R.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:O(s.errors)&&!r,submitCount:s.submitCount+1,errors:s.errors}),r)throw r},Se=(e,t={})=>{const n=e?g(e):d,r=g(n),o=O(e),l=o?d:r;if(t.keepDefaultValues||(d=n),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...y.mount,...Object.keys(_e(d,v))]);for(const t of Array.from(e))f(s.dirtyFields,t)?b(l,t,f(v,t)):Z(t,f(l,t))}else{if(u&&m(e))for(const e of y.mount){const t=f(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if($(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}v=i.shouldUnregister?t.keepDefaultValues?g(d):{}:g(l),R.array.next({values:{...l}}),R.values.next({values:{...l}})}y={mount:t.keepDirtyValues?y.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},C.mount=!L.isValid||!!t.keepIsValid||!!t.keepDirtyValues,C.watch=!!i.shouldUnregister,R.state.next({submitCount:t.keepSubmitCount?s.submitCount:0,isDirty:!o&&(t.keepDirty?s.isDirty:!(!t.keepDefaultValues||he(e,d))),isSubmitted:!!t.keepIsSubmitted&&s.isSubmitted,dirtyFields:o?{}:t.keepDirtyValues?t.keepDefaultValues&&v?_e(d,v):s.dirtyFields:t.keepDefaultValues&&e?_e(d,e):t.keepDirty?s.dirtyFields:{},touchedFields:t.keepTouched?s.touchedFields:{},errors:t.keepErrors?s.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&s.isSubmitSuccessful,isSubmitting:!1})},ke=(e,t)=>Se(q(e)?e(v):e,t);return{control:{register:pe,unregister:re,getFieldState:se,handleSubmit:fe,setError:ne,_executeSchema:F,_getWatch:V,_getDirty:W,_updateValid:A,_removeUnmounted:()=>{for(const e of y.unMount){const t=f(a,e);t&&(t._f.refs?t._f.refs.every((e=>!ge(e))):!ge(t._f.ref))&&re(e)}y.unMount=new Set},_updateFieldArray:(e,t=[],n,r,o=!0,l=!0)=>{if(r&&n&&!i.disabled){if(C.action=!0,l&&Array.isArray(f(a,e))){const t=n(f(a,e),r.argA,r.argB);o&&b(a,e,t)}if(l&&Array.isArray(f(s.errors,e))){const t=n(f(s.errors,e),r.argA,r.argB);o&&b(s.errors,e,t),Te(s.errors,e)}if(L.touchedFields&&l&&Array.isArray(f(s.touchedFields,e))){const t=n(f(s.touchedFields,e),r.argA,r.argB);o&&b(s.touchedFields,e,t)}L.dirtyFields&&(s.dirtyFields=_e(d,v)),R.state.next({name:e,isDirty:W(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else b(v,e,t)},_updateDisabledField:ce,_getFieldArray:e=>p(f(C.mount?v:d,e,i.shouldUnregister?f(d,e,[]):[])),_reset:Se,_resetDefaultValues:()=>q(i.defaultValues)&&i.defaultValues().then((e=>{ke(e,i.resetOptions),R.state.next({isLoading:!1})})),_updateFormState:e=>{s={...s,...e}},_disableForm:e=>{_(e)&&(R.state.next({disabled:e}),j(a,((t,i)=>{const s=f(a,i);s&&(t.disabled=s._f.disabled||e,Array.isArray(s._f.refs)&&s._f.refs.forEach((t=>{t.disabled=s._f.disabled||e})))}),0,!1))},_subjects:R,_proxyFormState:L,_setErrors:e=>{s.errors=e,R.state.next({errors:s.errors,isValid:!1})},get _fields(){return a},get _formValues(){return v},get _state(){return C},set _state(e){C=e},get _defaultValues(){return d},get _names(){return y},set _names(e){y=e},get _formState(){return s},set _formState(e){s=e},get _options(){return i},set _options(e){i={...i,...e}}},trigger:te,register:pe,handleSubmit:fe,watch:(e,t)=>q(e)?R.values.subscribe({next:i=>e(V(void 0,t),i)}):V(e,t,!0),setValue:Z,getValues:ie,reset:ke,resetField:(e,t={})=>{f(a,e)&&(m(t.defaultValue)?Z(e,g(f(d,e))):(Z(e,t.defaultValue),b(d,e,g(t.defaultValue))),t.keepTouched||ae(s.touchedFields,e),t.keepDirty||(ae(s.dirtyFields,e),s.isDirty=t.defaultValue?W(e,g(f(d,e))):W()),t.keepError||(ae(s.errors,e),L.isValid&&A()),R.state.next({...s}))},clearErrors:e=>{e&&M(e).forEach((e=>ae(s.errors,e))),R.state.next({errors:e?s.errors:{}})},unregister:re,setError:ne,setFocus:(e,t={})=>{const i=f(a,e),s=i&&i._f;if(s){const e=s.refs?s.refs[0]:s.ref;e.focus&&(e.focus(),t.shouldSelect&&q(e.select)&&e.select())}},getFieldState:se}}function Ae(e={}){const t=s.useRef(void 0),i=s.useRef(void 0),[n,r]=s.useState({isDirty:!1,isValidating:!1,isLoading:q(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:q(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...ke(e),formState:n});const o=t.current.control;return o._options=e,F({subject:o._subjects.state,next:e=>{D(e,o._proxyFormState,o._updateFormState,!0)&&r({...o._formState})}}),s.useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),s.useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==n.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,n.isDirty]),s.useEffect((()=>{e.values&&!he(e.values,i.current)?(o._reset(e.values,o._options.resetOptions),i.current=e.values,r((e=>({...e})))):o._resetDefaultValues()}),[e.values,o]),s.useEffect((()=>{e.errors&&o._setErrors(e.errors)}),[e.errors,o]),s.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),s.useEffect((()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})}),[e.shouldUnregister,o]),t.current.formState=I(n,o),t.current}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/6539.39f8bd0e.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/7750.1fea5741.chunk.js.LICENSE.txt index 7f9b0a686b1..2d48226906b 100644 --- a/ydb/core/viewer/monitoring/static/js/6539.39f8bd0e.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/7750.1fea5741.chunk.js.LICENSE.txt @@ -1,4 +1,10 @@ -/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */ +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ + +/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */ /*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */ @@ -6,7 +12,7 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/7946.3b4cf6fd.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/7946.3b4cf6fd.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/7946.3b4cf6fd.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/7946.3b4cf6fd.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/8014.eb9f97f2.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/8014.eb9f97f2.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/8014.eb9f97f2.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/8014.eb9f97f2.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/8234.7512920e.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/8234.7512920e.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/8234.7512920e.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/8234.7512920e.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/8452.551c16c8.chunk.js b/ydb/core/viewer/monitoring/static/js/8452.551c16c8.chunk.js new file mode 100644 index 00000000000..249eb1d7306 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/8452.551c16c8.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8452],{80719:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(53950);const s=t.n(a)()},81571:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(93292);const s=t.n(a)()},46306:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(90323);const s=t.n(a)()},1431:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(46346);const s=t.n(a)()},56421:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(89488);const s=t.n(a)()},29866:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(50683);const s=t.n(a)()},30249:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(32098);const s=t.n(a)()},81243:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(37558);const s=t.n(a)()},53950:e=>{function n(e){!function(e){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:t,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},t.inside=e.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=a.variable[1].inside,r=0;r<s.length;r++)i[s[r]]=e.languages.bash[s[r]];e.languages.shell=e.languages.bash}(e)}e.exports=n,n.displayName="bash",n.aliases=["shell"]},89343:e=>{function n(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=n,n.displayName="c",n.aliases=[]},93292:(e,n,t)=>{var a=t(89343);function s(e){e.register(a),function(e){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,t=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return n.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return n.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return t}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(e)}e.exports=s,s.displayName="cpp",s.aliases=[]},90323:e=>{function n(e){!function(e){function n(e,n){return e.replace(/<<(\d+)>>/g,(function(e,t){return"(?:"+n[+t]+")"}))}function t(e,t,a){return RegExp(n(e,t),a||"")}function a(e,n){for(var t=0;t<n;t++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var s="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",r="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",o="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(i),d=RegExp(l(s+" "+i+" "+r+" "+o)),p=l(i+" "+r+" "+o),u=l(s+" "+i+" "+o),b=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),g=a(/\((?:[^()]|<<self>>)*\)/.source,2),f=/@?\b[A-Za-z_]\w*\b/.source,m=n(/<<0>>(?:\s*<<1>>)?/.source,[f,b]),h=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[p,m]),_=/\[\s*(?:,\s*)*\]/.source,y=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[h,_]),k=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[b,g,_]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[k]),S=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,h,_]),E={keyword:d,punctuation:/[<>()?,.:[\]]/},v=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:t(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:t(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:t(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[h]),lookbehind:!0,inside:E},{pattern:t(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[f,S]),lookbehind:!0,inside:E},{pattern:t(/(\busing\s+)<<0>>(?=\s*=)/.source,[f]),lookbehind:!0},{pattern:t(/(\b<<0>>\s+)<<1>>/.source,[c,m]),lookbehind:!0,inside:E},{pattern:t(/(\bcatch\s*\(\s*)<<0>>/.source,[h]),lookbehind:!0,inside:E},{pattern:t(/(\bwhere\s+)<<0>>/.source,[f]),lookbehind:!0},{pattern:t(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:E},{pattern:t(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,u,f]),inside:E}],keyword:d,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:t(/([(,]\s*)<<0>>(?=\s*:)/.source,[f]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:t(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:t(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[g]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:t(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,h]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:t(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:t(/<<0>>\s*<<1>>(?=\s*\()/.source,[f,b]),inside:{function:t(/^<<0>>/.source,[f]),generic:{pattern:RegExp(b),alias:"class-name",inside:E}}},"type-list":{pattern:t(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,m,f,S,d.source,g,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:t(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,g]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:d,"class-name":{pattern:RegExp(S),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var T=A+"|"+v,I=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),N=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[I]),2),O=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,R=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[h,N]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:t(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[O,R]),lookbehind:!0,greedy:!0,inside:{target:{pattern:t(/^<<0>>(?=\s*:)/.source,[O]),alias:"keyword"},"attribute-arguments":{pattern:t(/\(<<0>>*\)/.source,[N]),inside:e.languages.csharp},"class-name":{pattern:RegExp(h),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,$=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[I]),2),D=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[$,z]),P=a(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),L=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,z]);function B(n,a){return{interpolation:{pattern:t(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[n]),lookbehind:!0,inside:{"format-string":{pattern:t(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[a,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:t(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:B(D,$)},{pattern:t(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:B(L,P)}],char:{pattern:RegExp(v),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}e.exports=n,n.displayName="csharp",n.aliases=["dotnet","cs"]},46346:e=>{function n(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}e.exports=n,n.displayName="go",n.aliases=[]},89488:e=>{function n(e){!function(e){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,t=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(t+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(t+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:n,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return n.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}e.exports=n,n.displayName="java",n.aliases=[]},51572:e=>{function n(e){!function(e){function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,a,s,i){if(t.language===a){var r=t.tokenStack=[];t.code=t.code.replace(s,(function(e){if("function"===typeof i&&!i(e))return e;for(var s,o=r.length;-1!==t.code.indexOf(s=n(a,o));)++o;return r[o]=e,s})),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,a){if(t.language===a&&t.tokenStack){t.grammar=e.languages[a];var s=0,i=Object.keys(t.tokenStack);!function r(o){for(var l=0;l<o.length&&!(s>=i.length);l++){var c=o[l];if("string"===typeof c||c.content&&"string"===typeof c.content){var d=i[s],p=t.tokenStack[d],u="string"===typeof c?c:c.content,b=n(a,d),g=u.indexOf(b);if(g>-1){++s;var f=u.substring(0,g),m=new e.Token(a,e.tokenize(p,t.grammar),"language-"+a,p),h=u.substring(g+b.length),_=[];f&&_.push.apply(_,r([f])),_.push(m),h&&_.push.apply(_,r([h])),"string"===typeof c?o.splice.apply(o,[l,1].concat(_)):c.content=_}}else c.content&&r(c.content)}return o}(t.tokens)}}}})}(e)}e.exports=n,n.displayName="markupTemplating",n.aliases=[]},32098:(e,n,t)=>{var a=t(51572);function s(e){e.register(a),function(e){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,t=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],a=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:a,operator:s,punctuation:i};var r={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:r}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:r}}];e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,number:a,operator:s,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(n){if(/<\?/.test(n.code)){e.languages["markup-templating"].buildPlaceholders(n,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"php")}))}(e)}e.exports=s,s.displayName="php",s.aliases=[]},37558:e=>{function n(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}e.exports=n,n.displayName="python",n.aliases=["py"]}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8546.810f324c.chunk.js b/ydb/core/viewer/monitoring/static/js/8546.810f324c.chunk.js deleted file mode 100644 index 94da005e2b6..00000000000 --- a/ydb/core/viewer/monitoring/static/js/8546.810f324c.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 8546.810f324c.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8546],{76938:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5Z",clipRule:"evenodd"}))},18677:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},66528:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(59284);const o=e=>l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 1.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3h-7Z",clipRule:"evenodd"}))},5874:(e,t,n)=>{n.d(t,{W:()=>L});var l=n(59284);const o=e=>{if(e.options.enableRowSelection)return Boolean(e.options.enableMultiRowSelection)};var r=n(32084);const a=l.createContext(void 0),i={};var s=n(85720);const u=e=>{const t=e.column.getIsPinned(),n="left"===t,l="right"===t,o=n&&e.column.getIsLastColumn("left"),r=l&&e.column.getIsFirstColumn("right");return{pinned:Boolean(t),"pinned-left":n,"pinned-right":l,"last-pinned-left":o,"first-pinned-right":r}},d=e=>e?Object.assign({id:e.column.id},u(e)):null,g=(e,t)=>{if(!e)return t;const n=e.column.getIsPinned();return Object.assign({width:e.column.getSize(),minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,left:"left"===n?`${e.column.getStart("left")}px`:void 0,right:"right"===n?`${e.column.getAfter("right")}px`:void 0},t)};var c=n(82435);(0,c.withNaming)({e:"__",m:"_"});const p=(0,c.withNaming)({n:"gt-",e:"__",m:"_"}),m=p("table");var f=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const h=e=>{var{cell:t,children:n,className:o,style:r,attributes:a}=e,i=f(e,["cell","children","className","style","attributes"]);const u="function"===typeof a?a(t):a,c="function"===typeof o?o(t):o;return l.createElement("td",Object.assign({className:m("cell",d(t),c)},i,u,{style:g(t,Object.assign(Object.assign({},r),null===u||void 0===u?void 0:u.style))}),t?(0,s.Kv)(t.column.columnDef.cell,t.getContext()):n)},v=p("group-header"),b=({row:e,className:t,getGroupTitle:n})=>{var o;return l.createElement("h2",{className:v(null,t)},l.createElement("button",{className:v("button"),onClick:e.getToggleExpandedHandler()},l.createElement("svg",{className:v("icon",{expanded:e.getIsExpanded()}),viewBox:"0 0 16 16",width:"16",height:"16"},l.createElement("path",{d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06Z",fill:"currentColor"})),l.createElement("span",{className:v("content")},l.createElement("span",{className:v("title")},null!==(o=null===n||void 0===n?void 0:n(e))&&void 0!==o?o:e.id),l.createElement("span",{className:v("total")},e.subRows.length))))};var w=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const C=l.forwardRef(((e,t)=>{var{cellClassName:n,className:o,getGroupTitle:a,getIsCustomRow:i,getIsGroupHeaderRow:s,groupHeaderClassName:u,onClick:d,renderCustomRowContent:g,renderGroupHeader:c,renderGroupHeaderRowContent:p,row:f,rowVirtualizer:v,style:C,virtualItem:S,attributes:R,cellAttributes:y,table:E}=e,x=w(e,["cellClassName","className","getGroupTitle","getIsCustomRow","getIsGroupHeaderRow","groupHeaderClassName","onClick","renderCustomRowContent","renderGroupHeader","renderGroupHeaderRowContent","row","rowVirtualizer","style","virtualItem","attributes","cellAttributes","table"]);const I=(0,r.N)(null===v||void 0===v?void 0:v.measureElement,t),F="function"===typeof R?R(f):R,M="function"===typeof o?o(f):o,P=l.useCallback((e=>{null===d||void 0===d||d(f,e)}),[d,f]);return l.createElement("tr",Object.assign({ref:I,className:m("row",{selected:f.getIsSelected(),interactive:Boolean(d)},M),onClick:P,"data-index":null===S||void 0===S?void 0:S.index},x,F,{style:Object.assign(Object.assign({top:v&&S?S.start-v.options.scrollMargin:void 0},C),null===F||void 0===F?void 0:F.style)}),(null===s||void 0===s?void 0:s(f))?p?p({row:f,Cell:h,cellClassName:n,getGroupTitle:a}):l.createElement(h,{className:n,colSpan:f.getVisibleCells().length,attributes:y,"aria-colindex":1},c?c({row:f,className:m("group-header",u),getGroupTitle:a}):l.createElement(b,{row:f,className:m("group-header",u),getGroupTitle:a})):(null===i||void 0===i?void 0:i(f))&&g?g({row:f,Cell:h,cellClassName:n}):f.getVisibleCells().map((e=>l.createElement(h,{key:e.id,cell:e,className:n,attributes:y,"aria-colindex":e.column.getIndex()+1}))))}));C.displayName="BaseRow";var S=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const R=l.forwardRef(((e,t)=>{var n,{attributes:o,row:s,style:u,table:d}=e,g=S(e,["attributes","row","style","table"]);const{isChildMode:c,activeItemKey:p,targetItemIndex:m=-1,enableNesting:f,useSortable:h}=null!==(n=l.useContext(a))&&void 0!==n?n:{},{setNodeRef:v,transform:b=null,transition:w,isDragging:R=!1}=(null===h||void 0===h?void 0:h({id:s.id}))||{},y=Boolean(p),E=c&&m===s.index,x=(0,r.N)(v,t),{isFirstChild:I,depth:F}=(({row:e,table:t,isDragging:n})=>{var o,r,i,s,u;const{isChildMode:d,isParentMode:g,isNextChildMode:c,targetItemIndex:p=-1,enableNesting:m}=null!==(o=l.useContext(a))&&void 0!==o?o:{};let f=n&&-1===p,h=0;if(m)if(n&&-1!==p){const e=t.getRowModel().rows,n=null!==(i=null===(r=e[p])||void 0===r?void 0:r.depth)&&void 0!==i?i:0,l=null!==(u=null===(s=e[p+1])||void 0===s?void 0:s.depth)&&void 0!==u?u:0;if(f=l>n,f)h=l,g&&h--;else{let e=0;g?e=-1:d&&(e=1),h=(c?n:Math.min(n,l))+e}h=Math.max(0,h)}else h=f?0:e.depth;return{depth:h,isFirstChild:f}})({row:s,table:d,isDragging:R}),M=(({style:e=i,transform:t,transition:n,isDragging:o,isDragActive:r,isFirstChild:s,draggableChildRowOffset:u=32,enableNesting:d})=>{var g;const{isChildMode:c,isParentMode:p}=null!==(g=l.useContext(a))&&void 0!==g?g:{};return l.useMemo((()=>{if(!r||!t)return e;let l=0;return d&&o&&(p?l=-u:c&&!s&&(l=u)),Object.assign(Object.assign({},e),{transition:n,transform:`translate3d(${Math.max(l,0)}px, ${t.y}px, 0)`})}),[u,c,r,o,s,p,e,t,n,d])})({style:u,transform:b,transition:w,isDragging:R,isDragActive:y,isFirstChild:I,enableNesting:f}),P=l.useCallback((e=>{const t="function"===typeof o?o(e):o;return Object.assign(Object.assign({},t),{"data-key":e.id,"data-depth":F,"data-draggable":!0,"data-dragging":R,"data-drag-active":y,"data-expanded":y&&E})}),[o,F,R,y,E]);return l.createElement(C,Object.assign({ref:x,attributes:P,row:s,style:M,table:d},g))}));R.displayName="BaseDraggableRow";const y=e=>Object.assign({id:e.column.id,placeholder:e.isPlaceholder,sortable:e.column.getCanSort(),wide:e.colSpan>1},u(e)),E=({header:e,attributes:t,className:n})=>{const o="function"===typeof t?t(e):t,r="function"===typeof n?n(e):n,a=e.depth-e.column.depth;return l.createElement("th",Object.assign({className:m("footer-cell",y(e),r),colSpan:e.colSpan>1?e.colSpan:void 0,rowSpan:a>1?a:void 0},o,{style:g(e,null===o||void 0===o?void 0:o.style)}),(0,s.Kv)(e.column.columnDef.footer,e.getContext()))};var x=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const I=e=>{var{footerGroup:t,attributes:n,cellAttributes:o,cellClassName:r,className:a}=e,i=x(e,["footerGroup","attributes","cellAttributes","cellClassName","className"]);const s="function"===typeof n?n(t):n,u="function"===typeof a?a(t):a;return l.createElement("tr",Object.assign({className:m("footer-row",u)},i,s),t.headers.map((e=>(e=>!e.isPlaceholder)(e)?l.createElement(E,{key:e.column.id,header:e,attributes:o,className:r}):null)))},F=e=>{if(e)return"asc"===e?"ascending":"descending"},M=e=>e.headerGroup.headers.slice(0,e.index).reduce(((e,t)=>e+t.colSpan),1),P=p("resize-handle"),O=({className:e,header:t})=>{var n;const{table:o}=t.getContext(),{columnResizeDirection:r,columnResizeMode:a}=o.options,{columnSizingInfo:i}=o.getState(),s=("rtl"===r?-1:1)*(null!==(n=i.deltaOffset)&&void 0!==n?n:0);return l.createElement("div",{className:P({direction:r,resizing:t.column.getIsResizing()},e),onDoubleClick:()=>t.column.resetSize(),onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),style:{transform:"onEnd"===a&&t.column.getIsResizing()?`translateX(${s}px)`:void 0}})};var V=n(46734),N=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const _=e=>{var{header:t,className:n,children:o}=e,r=N(e,["header","className","children"]);const a=t.column.getToggleSortingHandler(),{onKeyDown:i}=(0,V.N)(a);return l.createElement("span",Object.assign({className:m("sort",n),role:"button",tabIndex:0,onClick:a,onKeyDown:i},r),o)},z=p("sort-indicator"),G=({className:e,header:t})=>{const n=t.column.getIsSorted();return l.createElement("span",{className:z({order:n,invisible:!n},e)},l.createElement("svg",{width:"6",height:"3",viewBox:"0 0 6 3",fill:"currentColor"},l.createElement("path",{d:"M0.404698 0C0.223319 0 0.102399 0.0887574 0.0419396 0.230769C-0.0386733 0.372781 0.00163315 0.497041 0.122552 0.60355L2.72232 2.89349C2.80293 2.9645 2.88354 3 3.00446 3C3.10523 3 3.20599 2.9645 3.28661 2.89349L5.88637 0.60355C6.00729 0.497041 6.02745 0.372781 5.96699 0.230769C5.88637 0.0887574 5.76545 0 5.60423 0H0.404698Z"})))},D=({className:e,header:t,parentHeader:n,renderHeaderCellContent:o,renderResizeHandle:r,renderSortIndicator:a,resizeHandleClassName:i,sortIndicatorClassName:u,attributes:d})=>{const c="function"===typeof d?d(t,n):d,p="function"===typeof e?e(t,n):e,f=t.isPlaceholder?t.getLeafHeaders().length:1;return l.createElement("th",Object.assign({className:m("header-cell",y(t),p),colSpan:t.colSpan>1?t.colSpan:void 0,rowSpan:f>1?f:void 0,"aria-sort":F(t.column.getIsSorted()),"aria-colindex":M(t)},c,{style:g(t,null===c||void 0===c?void 0:c.style)}),o?o({header:t}):l.createElement(l.Fragment,null,t.column.getCanSort()?l.createElement(_,{header:t},(0,s.Kv)(t.column.columnDef.header,t.getContext())," ",a?a({className:m("sort-indicator",u),header:t}):l.createElement(G,{className:m("sort-indicator",u),header:t})):(0,s.Kv)(t.column.columnDef.header,t.getContext()),t.column.getCanResize()&&(r?r({className:m("resize-handle",i),header:t}):l.createElement(O,{className:m("resize-handle",i),header:t}))))};var A=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(l=Object.getOwnPropertySymbols(e);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(n[l[o]]=e[l[o]])}return n};const H=e=>{var{cellClassName:t,className:n,headerGroup:o,parentHeaderGroup:r,renderHeaderCellContent:a,renderResizeHandle:i,renderSortIndicator:s,resizeHandleClassName:u,sortIndicatorClassName:d,attributes:g,cellAttributes:c}=e,p=A(e,["cellClassName","className","headerGroup","parentHeaderGroup","renderHeaderCellContent","renderResizeHandle","renderSortIndicator","resizeHandleClassName","sortIndicatorClassName","attributes","cellAttributes"]);const f="function"===typeof g?g(o,r):g,h="function"===typeof n?n(o,r):n;return l.createElement("tr",Object.assign({className:m("header-row",h)},p,f),o.headers.map((e=>{const n=null===r||void 0===r?void 0:r.headers.find((t=>e.column.id===t.column.id));return((e,t)=>{const n=e.isPlaceholder&&(null===t||void 0===t?void 0:t.isPlaceholder)&&t.placeholderId===e.placeholderId,l=!e.isPlaceholder&&e.id===e.column.id&&e.depth-e.column.depth>1;return!(n||l)})(e,n)?l.createElement(D,{key:e.column.id,className:t,header:e,parentHeader:n,renderHeaderCellContent:a,renderResizeHandle:i,renderSortIndicator:s,resizeHandleClassName:u,sortIndicatorClassName:d,attributes:c}):null})))},L=l.forwardRef((({table:e,attributes:t,bodyAttributes:n,bodyClassName:r,bodyRef:i,cellAttributes:s,cellClassName:u,className:d,customFooterRowCount:g,emptyContent:c,footerAttributes:p,footerCellAttributes:f,footerCellClassName:h,footerClassName:v,footerRowAttributes:b,footerRowClassName:w,getGroupTitle:S,getIsCustomRow:y,getIsGroupHeaderRow:E,groupHeaderClassName:x,headerAttributes:F,headerCellAttributes:M,headerCellClassName:P,headerClassName:O,headerRowAttributes:V,headerRowClassName:N,onRowClick:_,renderCustomFooterContent:z,renderCustomRowContent:G,renderGroupHeader:D,renderGroupHeaderRowContent:A,renderHeaderCellContent:L,renderResizeHandle:j,renderSortIndicator:k,resizeHandleClassName:T,rowAttributes:B,rowClassName:K,rowVirtualizer:q,sortIndicatorClassName:$,stickyFooter:U=!1,stickyHeader:X=!1,withFooter:Z=!1,withHeader:W=!0},J)=>{var Q;const Y=l.useContext(a),ee=null!==(Q=null===Y||void 0===Y?void 0:Y.activeItemIndex)&&void 0!==Q?Q:-1,{rows:te,rowsById:ne}=e.getRowModel(),le=l.useMemo((()=>(e=>{let t=1;return e.reduce(((e,n,l,o)=>{const r=Object.assign(Object.assign({},e),{[n.id]:t}),a=o[l+1];return(null===a||void 0===a?void 0:a.parentId)!==n.id&&(t+=n.getLeafRows().length),t++,r}),{})})(te)),[te]),oe=W?e.getHeaderGroups():[],re=Z?e.getFooterGroups():[],ae=e.getVisibleLeafColumns().length,ie=oe.length,se=Object.keys(ne).length,ue=Z&&(z&&g||re.length)||0,de=se+ie+ue,ge=(null===q||void 0===q?void 0:q.getVirtualItems())||te;return l.createElement("table",Object.assign({ref:J,className:m({"with-row-virtualization":Boolean(q)},d),"data-dragging-row-index":ee>-1?ee:void 0,"aria-colcount":ae>0?ae:void 0,"aria-rowcount":de>0?de:void 0,"aria-multiselectable":o(e)},t),W&&l.createElement("thead",Object.assign({className:m("header",{sticky:X},O)},F),oe.map(((e,t)=>l.createElement(H,{key:e.id,cellClassName:P,className:N,headerGroup:e,parentHeaderGroup:oe[t-1],renderHeaderCellContent:L,renderResizeHandle:j,renderSortIndicator:k,resizeHandleClassName:T,sortIndicatorClassName:$,attributes:V,cellAttributes:M,"aria-rowindex":t+1})))),l.createElement("tbody",Object.assign({ref:i,className:m("body",r)},n,{style:Object.assign({height:ge.length?null===q||void 0===q?void 0:q.getTotalSize():void 0},null===n||void 0===n?void 0:n.style)}),ge.length?ge.map((t=>{var n;const o=q?te[t.index]:t,r=q?t:void 0,a=null!==(n=null===r||void 0===r?void 0:r.key)&&void 0!==n?n:o.id,i={cellClassName:u,className:K,getGroupTitle:S,getIsCustomRow:y,getIsGroupHeaderRow:E,groupHeaderClassName:x,attributes:B,cellAttributes:s,onClick:_,renderCustomRowContent:G,renderGroupHeader:D,renderGroupHeaderRowContent:A,row:o,rowVirtualizer:q,table:e,virtualItem:r,"aria-rowindex":ie+le[o.id],"aria-selected":e.options.enableRowSelection?o.getIsSelected():void 0};return Y?l.createElement(R,Object.assign({key:a},i)):l.createElement(C,Object.assign({key:a},i))})):(()=>{if(!c)return null;const t="function"===typeof K?K():K,n="function"===typeof u?u():u;return l.createElement("tr",{className:m("row",{empty:!0},t)},l.createElement("td",{className:m("cell",{},n),colSpan:ae,style:{width:q?e.getTotalSize():void 0}},"function"===typeof c?c():c))})()),Z&&l.createElement("tfoot",Object.assign({className:m("footer",{sticky:U},v)},p),z?z({cellClassName:m("footer-cell"),footerGroups:re,rowClassName:m("footer-row"),rowIndex:ie+se+1}):re.map(((e,t)=>(e=>e.headers.some((e=>e.column.columnDef.footer)))(e)?l.createElement(I,{key:e.id,footerGroup:e,attributes:b,cellAttributes:f,cellClassName:h,className:w,"aria-rowindex":ie+se+t+1}):null))))}));L.displayName="BaseTable"},36590:(e,t,n)=>{n.d(t,{K:()=>r});var l=n(24953),o=n(85720);const r=e=>{var t,n,r,a,i,s,u,d,g,c,p,m,f;const h=Object.assign(Object.assign({},e),{enableColumnPinning:null!==(t=e.enableColumnPinning)&&void 0!==t&&t,enableColumnResizing:null!==(n=e.enableColumnResizing)&&void 0!==n&&n,enableExpanding:null!==(r=e.enableExpanding)&&void 0!==r&&r,enableGrouping:null!==(a=e.enableGrouping)&&void 0!==a&&a,enableMultiRowSelection:null!==(i=e.enableMultiRowSelection)&&void 0!==i&&i,enableRowSelection:null!==(s=e.enableRowSelection)&&void 0!==s&&s,enableSorting:null!==(u=e.enableSorting)&&void 0!==u&&u,getCoreRowModel:null!==(d=e.getCoreRowModel)&&void 0!==d?d:(0,l.HT)(),getExpandedRowModel:e.enableExpanding?null!==(g=e.getExpandedRowModel)&&void 0!==g?g:(0,l.D0)():void 0,getGroupedRowModel:e.enableGrouping?null!==(c=e.getGroupedRowModel)&&void 0!==c?c:(0,l.cU)():void 0,getSortedRowModel:e.enableSorting?null!==(p=e.getSortedRowModel)&&void 0!==p?p:(0,l.h5)():void 0,manualGrouping:null!==(m=e.manualGrouping)&&void 0!==m&&m,manualSorting:null!==(f=e.manualSorting)&&void 0!==f&&f});return(0,o.N4)(h)}},74321:(e,t,n)=>{n.d(t,{S:()=>u});var l=n(59284),o=n(64222),r=n(46898);function a(e){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),l.createElement("path",{d:"M4 7h9v3H4z"}))}function i(e){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),l.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const s=(0,n(69220).om)("checkbox"),u=l.forwardRef((function(e,t){const{size:n="m",indeterminate:u,disabled:d=!1,content:g,children:c,title:p,style:m,className:f,qa:h}=e,{checked:v,inputProps:b}=(0,o.v)(e),w=g||c,C=l.createElement("span",{className:s("indicator")},l.createElement("span",{className:s("icon"),"aria-hidden":!0},u?l.createElement(a,{className:s("icon-svg",{type:"dash"})}):l.createElement(i,{className:s("icon-svg",{type:"tick"})})),l.createElement("input",Object.assign({},b,{className:s("control")})),l.createElement("span",{className:s("outline")}));return l.createElement(r.m,{ref:t,title:p,style:m,size:n,disabled:d,className:s({size:n,disabled:d,indeterminate:u,checked:v},f),qa:h,control:C},w)}))},2198:(e,t,n)=>{n.d(t,{l:()=>O});var l=n(59284),o=n(72630),r=n(14794),a=n(18670),i=n(98392),s=n(19225),u=n(69220),d=n(99635),g=n(6826);const c=(0,u.om)("modal");function p({open:e=!1,keepMounted:t=!1,disableBodyScrollLock:n=!1,disableEscapeKeyDown:u,disableOutsideClick:p,disableFocusTrap:m,disableAutoFocus:f,focusTrap:h=!0,autoFocus:v=!0,restoreFocusRef:b,onEscapeKeyDown:w,onEnterKeyDown:C,onOutsideClick:S,onClose:R,onTransitionEnter:y,onTransitionEntered:E,onTransitionExit:x,onTransitionExited:I,children:F,style:M,contentOverflow:P="visible",className:O,contentClassName:V,"aria-labelledby":N,"aria-label":_,container:z,qa:G}){const D=l.useRef(null),A=l.useRef(null),[H,L]=l.useState(!1);(0,r.y)({enabled:!n&&(e||H)});const j=(0,a.s)({enabled:e||H,restoreFocusRef:b,focusTrapped:!0});return(0,d.Z)({open:e,disableEscapeKeyDown:u,disableOutsideClick:p,onEscapeKeyDown:w,onEnterKeyDown:C,onOutsideClick:S,onClose:R,contentRefs:[A],type:"modal"}),l.createElement(o.A,{nodeRef:D,in:e,addEndListener:e=>{var t;return null===(t=D.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,g.L)(c),mountOnEnter:!t,unmountOnExit:!t,appear:!0,onEnter:()=>{L(!0),null===y||void 0===y||y()},onExit:()=>{L(!0),null===x||void 0===x||x()},onEntered:()=>{L(!1),null===E||void 0===E||E()},onExited:()=>{L(!1),null===I||void 0===I||I()}},l.createElement(i.Z,{container:z},l.createElement("div",{ref:D,style:M,className:c({open:e},O),"data-qa":G},l.createElement("div",{className:c("content-aligner")},l.createElement("div",{className:c("content-wrapper")},l.createElement(s.s,{enabled:!m&&h&&e&&!H,autoFocus:!f&&v},l.createElement("div",Object.assign({ref:A,tabIndex:-1,role:"dialog","aria-modal":e,"aria-label":_,"aria-labelledby":N,className:c("content",{"has-scroll":"auto"===P},V)},j),F)))))))}var m=n(81240),f=n(84476),h=n(99991),v=n(72837);const b=JSON.parse('{"close":"Close dialog"}'),w=JSON.parse('{"close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e"}'),C=(0,v.N)({en:b,ru:w},"Dialog"),S=(0,u.om)("dialog-btn-close");function R({onClose:e}){return l.createElement("div",{className:S()},l.createElement(f.$,{view:"flat",size:"l",className:S("btn"),onClick:t=>e(t,{isOutsideClick:!1}),extraProps:{"aria-label":C("close")}},l.createElement(h.I,{data:m.A,size:20})))}const y=(0,u.om)("dialog-body");const E=(0,u.om)("dialog-divider");var x=n(39238);const I=(0,u.om)("dialog-footer");class F extends l.Component{constructor(){super(...arguments),this.errorTooltipRef=l.createRef(),this.handleKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.onClickButtonApply&&this.props.onClickButtonApply(e))}}componentDidMount(){this.props.listenKeyEnter&&this.attachKeyDownListeners()}componentDidUpdate(e){!this.props.listenKeyEnter&&e.listenKeyEnter&&this.detachKeyDownListeners(),this.props.listenKeyEnter&&!e.listenKeyEnter&&this.attachKeyDownListeners()}componentWillUnmount(){this.detachKeyDownListeners()}render(){const{onClickButtonCancel:e,onClickButtonApply:t,loading:n,textButtonCancel:o,textButtonApply:r,propsButtonCancel:a,propsButtonApply:i,preset:s,children:u,errorText:d,showError:g,renderButtons:c,className:p}=this.props,m=l.createElement("div",{className:I("button",{action:"cancel"})},l.createElement(f.$,Object.assign({view:r?"flat":"normal",size:"l",width:"max",onClick:e,disabled:n},a),o)),h=l.createElement("div",{className:I("button",{action:"apply"})},l.createElement(f.$,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:n,className:I("button-apply",{preset:s})},i),r),d&&l.createElement(x.z,{open:g,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},l.createElement("div",{className:I("error")},d)));return l.createElement("div",{className:I(null,p)},l.createElement("div",{className:I("children")},u),l.createElement("div",{className:I("bts-wrapper")},c?c(h,m):l.createElement(l.Fragment,null,o&&m,r&&h)))}attachKeyDownListeners(){setTimeout((()=>{window.addEventListener("keydown",this.handleKeyDown)}),0)}detachKeyDownListeners(){window.removeEventListener("keydown",this.handleKeyDown)}}F.defaultProps={preset:"default",showError:!1,listenKeyEnter:!1};const M=(0,u.om)("dialog-header");const P=(0,u.om)("dialog");class O extends l.Component{constructor(){super(...arguments),this.handleCloseButtonClick=e=>{const{onClose:t}=this.props;t(e.nativeEvent,"closeButtonClick")}}render(){const{container:e,children:t,open:n,disableBodyScrollLock:o,disableEscapeKeyDown:r,disableOutsideClick:a,disableFocusTrap:i,disableAutoFocus:s,restoreFocusRef:u,keepMounted:d,size:g,contentOverflow:c="visible",className:m,modalClassName:f,hasCloseButton:h,onEscapeKeyDown:v,onEnterKeyDown:b,onOutsideClick:w,onClose:C,onTransitionEnter:S,onTransitionEntered:y,onTransitionExit:E,onTransitionExited:x,"aria-label":I,"aria-labelledby":F,qa:M}=this.props;return l.createElement(p,{open:n,contentOverflow:c,disableBodyScrollLock:o,disableEscapeKeyDown:r,disableOutsideClick:a,disableFocusTrap:i,disableAutoFocus:s,restoreFocusRef:u,keepMounted:d,onEscapeKeyDown:v,onEnterKeyDown:b,onOutsideClick:w,onClose:C,onTransitionEnter:S,onTransitionEntered:y,onTransitionExit:E,onTransitionExited:x,className:P("modal",f),"aria-label":I,"aria-labelledby":F,container:e,qa:M},l.createElement("div",{className:P({size:g,"has-close":h,"has-scroll":"auto"===c},m)},t,h&&l.createElement(R,{onClose:this.handleCloseButtonClick})))}}O.defaultProps={disableBodyScrollLock:!1,disableEscapeKeyDown:!1,disableOutsideClick:!1,keepMounted:!1,hasCloseButton:!0},O.Footer=F,O.Header=function(e){const{caption:t="",insertBefore:n,insertAfter:o,className:r,id:a}=e;return l.createElement("div",{className:M(null,r)},n,l.createElement("div",{className:M("caption"),id:a},t),o)},O.Body=function(e){const{className:t,hasBorders:n=!1}=e;return l.createElement("div",{className:y({"has-borders":n},t)},e.children)},O.Divider=function({className:e}){return l.createElement("div",{className:E(null,e)})}},85720:(e,t,n)=>{n.d(t,{Kv:()=>r,N4:()=>a});var l=n(59284),o=n(24953);function r(e,t){return e?function(e){return"function"===typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"===typeof n||function(e){return"object"===typeof e&&"symbol"===typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?l.createElement(e,t):e:null;var n}function a(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=l.useState((()=>({current:(0,o.ZR)(t)}))),[r,a]=l.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}},24953:(e,t,n)=>{function l(e,t){return"function"===typeof e?e(t):e}function o(e,t){return n=>{t.setState((t=>({...t,[e]:l(n,t[e])})))}}function r(e){return e instanceof Function}function a(e,t){const n=[],l=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&l(o)}))};return l(e),n}function i(e,t,n){let l,o=[];return r=>{let a;n.key&&n.debug&&(a=Date.now());const i=e(r);if(!(i.length!==o.length||i.some(((e,t)=>o[t]!==e))))return l;let s;if(o=i,n.key&&n.debug&&(s=Date.now()),l=t(...i),null==n||null==n.onChange||n.onChange(l),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-a))/100,t=Math.round(100*(Date.now()-s))/100,l=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c\u23f1 ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*l,120))}deg 100% 31%);`,null==n?void 0:n.key)}return l}}function s(e,t,n,l){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:l}}n.d(t,{D0:()=>W,HT:()=>Z,ZR:()=>X,cU:()=>Q,h5:()=>Y});const u="debugHeaders";function d(e,t,n){var l;let o={id:null!=(l=n.id)?l:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const g={createTable:e=>{e.getHeaderGroups=i((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>{var r,a;const i=null!=(r=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],s=null!=(a=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[];return c(t,[...i,...n.filter((e=>!(null!=l&&l.includes(e.id))&&!(null!=o&&o.includes(e.id)))),...s],e)}),s(e.options,u)),e.getCenterHeaderGroups=i((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,l,o)=>c(t,n=n.filter((e=>!(null!=l&&l.includes(e.id))&&!(null!=o&&o.includes(e.id)))),e,"center")),s(e.options,u)),e.getLeftHeaderGroups=i((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,l)=>{var o;return c(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"left")}),s(e.options,u)),e.getRightHeaderGroups=i((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,l)=>{var o;return c(t,null!=(o=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"right")}),s(e.options,u)),e.getFooterGroups=i((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getLeftFooterGroups=i((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getCenterFooterGroups=i((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getRightFooterGroups=i((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),s(e.options,u)),e.getFlatHeaders=i((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getLeftFlatHeaders=i((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterFlatHeaders=i((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getRightFlatHeaders=i((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,u)),e.getCenterLeafHeaders=i((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeftLeafHeaders=i((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getRightLeafHeaders=i((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,u)),e.getLeafHeaders=i((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var l,o,r,a,i,s;return[...null!=(l=null==(o=e[0])?void 0:o.headers)?l:[],...null!=(r=null==(a=t[0])?void 0:a.headers)?r:[],...null!=(i=null==(s=n[0])?void 0:s.headers)?i:[]].map((e=>e.getLeafHeaders())).flat()}),s(e.options,u))}};function c(e,t,n,l){var o,r;let a=0;const i=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&i(e.columns,t+1)}),0)};i(e);let s=[];const u=(e,t)=>{const o={depth:t,id:[l,`${t}`].filter(Boolean).join("_"),headers:[]},r=[];e.forEach((e=>{const a=[...r].reverse()[0];let i,s=!1;if(e.column.depth===o.depth&&e.column.parent?i=e.column.parent:(i=e.column,s=!0),a&&(null==a?void 0:a.column)===i)a.subHeaders.push(e);else{const o=d(n,i,{id:[l,t,i.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${r.filter((e=>e.column===i)).length}`:void 0,depth:t,index:r.length});o.subHeaders.push(e),r.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),t>0&&u(r,t-1)},g=t.map(((e,t)=>d(n,e,{depth:a,index:t})));u(g,a-1),s.reverse();const c=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,l=[0];e.subHeaders&&e.subHeaders.length?(l=[],c(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,l.push(o)}))):t=1;return n+=Math.min(...l),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return c(null!=(o=null==(r=s[0])?void 0:r.headers)?o:[]),s}const p=(e,t,n,l,o,r,u)=>{let d={id:t,index:l,original:n,depth:o,parentId:u,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(d._valuesCache.hasOwnProperty(t))return d._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(d._valuesCache[t]=n.accessorFn(d.original,l),d._valuesCache[t]):void 0},getUniqueValues:t=>{if(d._uniqueValuesCache.hasOwnProperty(t))return d._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(d._uniqueValuesCache[t]=n.columnDef.getUniqueValues(d.original,l),d._uniqueValuesCache[t]):(d._uniqueValuesCache[t]=[d.getValue(t)],d._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=d.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>a(d.subRows,(e=>e.subRows)),getParentRow:()=>d.parentId?e.getRow(d.parentId,!0):void 0,getParentRows:()=>{let e=[],t=d;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:i((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,l){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(l),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:i((()=>[e,n,t,o]),((e,t,n,l)=>({table:e,column:t,row:n,cell:l,getValue:l.getValue,renderValue:l.renderValue})),s(e.options,"debugCells"))};return e._features.forEach((l=>{null==l.createCell||l.createCell(o,n,t,e)}),{}),o}(e,d,t,t.id)))),s(e.options,"debugRows")),_getAllCellsByColumnId:i((()=>[d.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),s(e.options,"debugRows"))};for(let a=0;a<e._features.length;a++){const t=e._features[a];null==t||null==t.createRow||t.createRow(d,e)}return d},m={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},f=(e,t,n)=>{var l,o;const r=null==n||null==(l=n.toString())?void 0:l.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(r))};f.autoRemove=e=>x(e);const h=(e,t,n)=>{var l;return Boolean(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.includes(n))};h.autoRemove=e=>x(e);const v=(e,t,n)=>{var l;return(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.toLowerCase())===(null==n?void 0:n.toLowerCase())};v.autoRemove=e=>x(e);const b=(e,t,n)=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)};b.autoRemove=e=>x(e)||!(null!=e&&e.length);const w=(e,t,n)=>!n.some((n=>{var l;return!(null!=(l=e.getValue(t))&&l.includes(n))}));w.autoRemove=e=>x(e)||!(null!=e&&e.length);const C=(e,t,n)=>n.some((n=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)}));C.autoRemove=e=>x(e)||!(null!=e&&e.length);const S=(e,t,n)=>e.getValue(t)===n;S.autoRemove=e=>x(e);const R=(e,t,n)=>e.getValue(t)==n;R.autoRemove=e=>x(e);const y=(e,t,n)=>{let[l,o]=n;const r=e.getValue(t);return r>=l&&r<=o};y.resolveFilterValue=e=>{let[t,n]=e,l="number"!==typeof t?parseFloat(t):t,o="number"!==typeof n?parseFloat(n):n,r=null===t||Number.isNaN(l)?-1/0:l,a=null===n||Number.isNaN(o)?1/0:o;if(r>a){const e=r;r=a,a=e}return[r,a]},y.autoRemove=e=>x(e)||x(e[0])&&x(e[1]);const E={includesString:f,includesStringSensitive:h,equalsString:v,arrIncludes:b,arrIncludesAll:w,arrIncludesSome:C,equals:S,weakEquals:R,inNumberRange:y};function x(e){return void 0===e||null===e||""===e}const I={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"string"===typeof l?E.includesString:"number"===typeof l?E.inNumberRange:"boolean"===typeof l||null!==l&&"object"===typeof l?E.equals:Array.isArray(l)?E.arrIncludes:E.weakEquals},e.getFilterFn=()=>{var n,l;return r(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(l=t.options.filterFns)?void 0:l[e.columnDef.filterFn])?n:E[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,l,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(l=t.options.enableColumnFilters)||l)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().columnFilters)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),r=null==t?void 0:t.find((t=>t.id===e.id)),a=l(n,r?r.value:void 0);var i;if(F(o,a,e))return null!=(i=null==t?void 0:t.filter((t=>t.id!==e.id)))?i:[];const s={id:e.id,value:a};var u;return r?null!=(u=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?u:[]:null!=t&&t.length?[...t,s]:[s]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=l(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(F(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.resetColumnFilters=t=>{var n,l;e.setColumnFilters(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function F(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||"undefined"===typeof t||"string"===typeof t&&!t}const M={sum:(e,t,n)=>n.reduce(((t,n)=>{const l=n.getValue(e);return t+("number"===typeof l?l:0)}),0),min:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(l>n||void 0===l&&n>=n)&&(l=n)})),l},max:(e,t,n)=>{let l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(l<n||void 0===l&&n>=n)&&(l=n)})),l},extent:(e,t,n)=>{let l,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===l?n>=n&&(l=o=n):(l>n&&(l=n),o<n&&(o=n)))})),[l,o]},mean:(e,t)=>{let n=0,l=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,l+=o)})),n)return l/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(l=n,!Array.isArray(l)||!l.every((e=>"number"===typeof e)))return;var l;if(1===n.length)return n[0];const o=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t));return n.length%2!==0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},P={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,l;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(l=t.options.enableGrouping)||l)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"number"===typeof l?M.sum:"[object Date]"===Object.prototype.toString.call(l)?M.extent:void 0},e.getAggregationFn=()=>{var n,l;if(!e)throw new Error;return r(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(l=t.options.aggregationFns)?void 0:l[e.columnDef.aggregationFn])?n:M[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,l;e.setGrouping(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const l=t.getColumn(n);return null!=l&&l.columnDef.getGroupingValue?(e._groupingValuesCache[n]=l.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,l)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const O={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=i((e=>[D(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),s(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var l;return(null==(l=D(t,n)[0])?void 0:l.id)===e.id},e.getIsLastColumn=n=>{var l;const o=D(t,n);return(null==(l=o[o.length-1])?void 0:l.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=i((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>l=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...l];for(;n.length&&t.length;){const e=t.shift(),l=n.findIndex((t=>t.id===e));l>-1&&o.push(n.splice(l,1)[0])}o=[...o,...n]}else o=l;return function(e,t,n){if(null==t||!t.length||!n)return e;const l=e.filter((e=>!t.includes(e.id)));return"remove"===n?l:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...l]}(o,t,n)}),s(e.options,"debugTable"))}},V={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const l=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,r,a,i,s;return"right"===n?{left:(null!=(r=null==e?void 0:e.left)?r:[]).filter((e=>!(null!=l&&l.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=l&&l.includes(e)))),...l]}:"left"===n?{left:[...(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=l&&l.includes(e)))),...l],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=l&&l.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=l&&l.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=l&&l.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,l,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(l=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||l)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:l,right:o}=t.getState().columnPinning,r=n.some((e=>null==l?void 0:l.includes(e))),a=n.some((e=>null==o?void 0:o.includes(e)));return r?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();return o?null!=(n=null==(l=t.getState().columnPinning)||null==(l=l[o])?void 0:l.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=i((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.column.id)))}),s(t.options,"debugRows")),e.getLeftVisibleCells=i((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),s(t.options,"debugRows")),e.getRightVisibleCells=i((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),s(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,l;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(l=e.initialState)?void 0:l.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const l=e.getState().columnPinning;var o,r;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.left)?void 0:o.length)||(null==(r=l.right)?void 0:r.length))},e.getLeftLeafColumns=i((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getRightLeafColumns=i((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getCenterLeafColumns=i((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const l=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!l.includes(e.id)))}),s(e.options,"debugColumns"))}},N={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},_={getDefaultColumnDef:()=>N,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,l,o;const r=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:N.minSize,null!=(l=null!=r?r:e.columnDef.size)?l:N.size),null!=(o=e.columnDef.maxSize)?o:N.maxSize)},e.getStart=i((e=>[e,D(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.getAfter=i((e=>[e,D(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...l}=t;return l}))},e.getCanResize=()=>{var n,l;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(l=t.options.enableColumnResizing)||l)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var l;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(l=e.column.getSize())?l:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const l=t.getColumn(e.column.id),o=null==l?void 0:l.getCanResize();return r=>{if(!l||!o)return;if(null==r.persist||r.persist(),G(r)&&r.touches&&r.touches.length>1)return;const a=e.getSize(),i=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[l.id,l.getSize()]],s=G(r)?Math.round(r.touches[0].clientX):r.clientX,u={},d=(e,n)=>{"number"===typeof n&&(t.setColumnSizingInfo((e=>{var l,o;const r="rtl"===t.options.columnResizeDirection?-1:1,a=(n-(null!=(l=null==e?void 0:e.startOffset)?l:0))*r,i=Math.max(a/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*i,0))/100})),{...e,deltaOffset:a,deltaPercentage:i}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...u}))))},g=e=>d("move",e),c=e=>{d("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!==typeof document?document:null,m={moveHandler:e=>g(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",m.moveHandler),null==p||p.removeEventListener("mouseup",m.upHandler),c(e.clientX)}},f={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),g(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",f.moveHandler),null==p||p.removeEventListener("touchend",f.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"===typeof z)return z;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return z=e,z}()&&{passive:!1};G(r)?(null==p||p.addEventListener("touchmove",f.moveHandler,h),null==p||p.addEventListener("touchend",f.upHandler,h)):(null==p||p.addEventListener("mousemove",m.moveHandler,h),null==p||p.addEventListener("mouseup",m.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:i,isResizingColumn:l.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let z=null;function G(e){return"touchstart"===e.type}function D(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const A={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t="undefined"!==typeof t?t:!e.getIsAllRowsSelected();const l={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(l[e.id]=!0)})):o.forEach((e=>{delete l[e.id]})),l}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const l="undefined"!==typeof t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{H(o,t.id,l,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=i((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getFilteredSelectedRowModel=i((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getGroupedSelectedRowModel=i((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?L(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let l=Boolean(t.length&&Object.keys(n).length);return l&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(l=!1),l},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let l=!!t.length;return l&&t.some((e=>!n[e.id]))&&(l=!1),l},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,l)=>{const o=e.getIsSelected();t.setRowSelection((r=>{var a;if(n="undefined"!==typeof n?n:!o,e.getCanSelect()&&o===n)return r;const i={...r};return H(i,e.id,n,null==(a=null==l?void 0:l.selectChildren)||a,t),i}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return j(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===k(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===k(e,n)},e.getCanSelect=()=>{var n;return"function"===typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"===typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"===typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var l;t&&e.toggleSelected(null==(l=n.target)?void 0:l.checked)}}}},H=(e,t,n,l,o)=>{var r;const a=o.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),a.getCanSelect()&&(e[t]=!0)):delete e[t],l&&null!=(r=a.subRows)&&r.length&&a.getCanSelectSubRows()&&a.subRows.forEach((t=>H(e,t.id,n,l,o)))};function L(e,t){const n=e.getState().rowSelection,l=[],o={},r=function(e,t){return e.map((e=>{var t;const a=j(e,n);if(a&&(l.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:r(e.subRows)}),a)return e})).filter(Boolean)};return{rows:r(t.rows),flatRows:l,rowsById:o}}function j(e,t){var n;return null!=(n=t[e.id])&&n}function k(e,t,n){var l;if(null==(l=e.subRows)||!l.length)return!1;let o=!0,r=!1;return e.subRows.forEach((e=>{if((!r||o)&&(e.getCanSelect()&&(j(e,t)?r=!0:o=!1),e.subRows&&e.subRows.length)){const n=k(e,t);"all"===n?r=!0:"some"===n?(r=!0,o=!1):o=!1}})),o?"all":!!r&&"some"}const T=/([0-9]+)/gm;function B(e,t){return e===t?0:e>t?1:-1}function K(e){return"number"===typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"===typeof e?e:""}function q(e,t){const n=e.split(T).filter(Boolean),l=t.split(T).filter(Boolean);for(;n.length&&l.length;){const e=n.shift(),t=l.shift(),o=parseInt(e,10),r=parseInt(t,10),a=[o,r].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>r)return 1;if(r>o)return-1}}return n.length-l.length}const $={alphanumeric:(e,t,n)=>q(K(e.getValue(n)).toLowerCase(),K(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>q(K(e.getValue(n)),K(t.getValue(n))),text:(e,t,n)=>B(K(e.getValue(n)).toLowerCase(),K(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>B(K(e.getValue(n)),K(t.getValue(n))),datetime:(e,t,n)=>{const l=e.getValue(n),o=t.getValue(n);return l>o?1:l<o?-1:0},basic:(e,t,n)=>B(e.getValue(n),t.getValue(n))},U=[g,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,l;const o=e.columns;return null==(n=o.length?o.some((e=>e.getIsVisible())):null==(l=t.getState().columnVisibility)?void 0:l[e.id])||n},e.getCanHide=()=>{var n,l;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(l=t.options.enableHiding)||l)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=i((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),s(t.options,"debugRows")),e.getVisibleCells=i((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),s(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>i((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),s(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t(0,(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t(0,(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t(0,(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t(0,(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},O,V,m,I,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:o("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const l=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"===typeof l||"number"===typeof l}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,l,o,r;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(l=t.options.enableGlobalFilter)||l)&&(null==(o=t.options.enableFilters)||o)&&(null==(r=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||r)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>E.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:l}=e.options;return r(l)?l:"auto"===l?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[l])?t:E[l]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let l=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return $.datetime;if("string"===typeof n&&(l=!0,n.split(T).length>1))return $.alphanumeric}return l?$.text:$.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"===typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,l;if(!e)throw new Error;return r(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(l=t.options.sortingFns)?void 0:l[e.columnDef.sortingFn])?n:$[e.columnDef.sortingFn]},e.toggleSorting=(n,l)=>{const o=e.getNextSortingOrder(),r="undefined"!==typeof n&&null!==n;t.setSorting((a=>{const i=null==a?void 0:a.find((t=>t.id===e.id)),s=null==a?void 0:a.findIndex((t=>t.id===e.id));let u,d=[],g=r?n:"desc"===o;var c;(u=null!=a&&a.length&&e.getCanMultiSort()&&l?i?"toggle":"add":null!=a&&a.length&&s!==a.length-1?"replace":i?"toggle":"replace","toggle"===u&&(r||o||(u="remove")),"add"===u)?(d=[...a,{id:e.id,desc:g}],d.splice(0,d.length-(null!=(c=t.options.maxMultiSortColCount)?c:Number.MAX_SAFE_INTEGER))):d="toggle"===u?a.map((t=>t.id===e.id?{...t,desc:g}:t)):"remove"===u?a.filter((t=>t.id!==e.id)):[{id:e.id,desc:g}];return d}))},e.getFirstSortDir=()=>{var n,l;return(null!=(n=null!=(l=e.columnDef.sortDescFirst)?l:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var l,o;const r=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===r||null!=(l=t.options.enableSortingRemoval)&&!l||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):r},e.getCanSort=()=>{var n,l;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(l=t.options.enableSorting)||l)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,l;return null!=(n=null!=(l=e.columnDef.enableMultiSort)?l:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const l=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!l&&(l.desc?"desc":"asc")},e.getSortIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().sorting)?void 0:l.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return l=>{n&&(null==l.persist||l.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(l))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,l;e.setSorting(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},P,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?l:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,l;e.setExpanded(t?{}:null!=(n=null==(l=e.initialState)?void 0:l.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"===typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((l=>{var o;const r=!0===l||!(null==l||!l[e.id]);let a={};if(!0===l?Object.keys(t.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=l,n=null!=(o=n)?o:!r,!r&&n)return{...a,[e.id]:!0};if(r&&!n){const{[e.id]:t,...n}=a;return n}return l}))},e.getIsExpanded=()=>{var n;const l=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===l||(null==l?void 0:l[e.id]))},e.getCanExpand=()=>{var n,l,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(l=t.options.enableExpanding)||l)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,l=e;for(;n&&l.parentId;)l=t.getRow(l.parentId,!0),n=l.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var l,o;if(t){if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?l:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>l(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=l(t,n.pageIndex);const r="undefined"===typeof e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,r)),{...n,pageIndex:o}}))},e.resetPageIndex=t=>{var n,l;e.setPageIndex(t?0:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageIndex)?n:0)},e.resetPageSize=t=>{var n,l;e.setPageSize(t?10:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,l(t,e.pageSize)),o=e.pageSize*e.pageIndex,r=Math.floor(o/n);return{...e,pageIndex:r,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var o;let r=l(t,null!=(o=e.options.pageCount)?o:-1);return"number"===typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}})),e.getPageOptions=i((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),s(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:o("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,l,o)=>{const r=l?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],a=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],i=new Set([...a,e.id,...r]);t.setRowPinning((e=>{var t,l,o,r,a,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=i&&i.has(e)))),bottom:[...(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=i&&i.has(e)))),...Array.from(i)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter((e=>!(null!=i&&i.has(e)))),...Array.from(i)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=i&&i.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=i&&i.has(e)))),bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter((e=>!(null!=i&&i.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:l,enablePinning:o}=t.options;return"function"===typeof l?l(e):null==(n=null!=l?l:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:l,bottom:o}=t.getState().rowPinning,r=n.some((e=>null==l?void 0:l.includes(e))),a=n.some((e=>null==o?void 0:o.includes(e)));return r?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,l;const o=e.getIsPinned();if(!o)return-1;const r=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(l=null==r?void 0:r.indexOf(e.id))?l:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,l;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(l=e.initialState)?void 0:l.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const l=e.getState().rowPinning;var o,r;return t?Boolean(null==(n=l[t])?void 0:n.length):Boolean((null==(o=l.top)?void 0:o.length)||(null==(r=l.bottom)?void 0:r.length))},e._getPinnedRows=(t,n,l)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:l})))},e.getTopRows=i((()=>[e.getRowModel().rows,e.getState().rowPinning.top]),((t,n)=>e._getPinnedRows(t,n,"top")),s(e.options,"debugRows")),e.getBottomRows=i((()=>[e.getRowModel().rows,e.getState().rowPinning.bottom]),((t,n)=>e._getPinnedRows(t,n,"bottom")),s(e.options,"debugRows")),e.getCenterRows=i((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const l=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!l.has(e.id)))}),s(e.options,"debugRows"))}},A,_];function X(e){var t,n;const o=[...U,...null!=(t=e._features)?t:[]];let r={_features:o};const a=r._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(r))),{});let u={...null!=(n=e.initialState)?n:{}};r._features.forEach((e=>{var t;u=null!=(t=null==e.getInitialState?void 0:e.getInitialState(u))?t:u}));const d=[];let g=!1;const c={_features:o,options:{...a,...e},initialState:u,_queue:e=>{d.push(e),g||(g=!0,Promise.resolve().then((()=>{for(;d.length;)d.shift()();g=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{r.setState(r.initialState)},setOptions:e=>{const t=l(e,r.options);r.options=(e=>r.options.mergeOptions?r.options.mergeOptions(a,e):{...a,...e})(t)},getState:()=>r.options.state,setState:e=>{null==r.options.onStateChange||r.options.onStateChange(e)},_getRowId:(e,t,n)=>{var l;return null!=(l=null==r.options.getRowId?void 0:r.options.getRowId(e,t,n))?l:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?r.getPrePaginationRowModel():r.getRowModel()).rowsById[e];if(!n&&(n=r.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:i((()=>[r.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...r._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),s(e,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:i((()=>[r._getColumnDefs()]),(e=>{const t=function(e,n,l){return void 0===l&&(l=0),e.map((e=>{const o=function(e,t,n,l){var o,r;const a={...e._getDefaultColumnDef(),...t},u=a.accessorKey;let d,g=null!=(o=null!=(r=a.id)?r:u?"function"===typeof String.prototype.replaceAll?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)?o:"string"===typeof a.header?a.header:void 0;if(a.accessorFn?d=a.accessorFn:u&&(d=u.includes(".")?e=>{let t=e;for(const l of u.split(".")){var n;t=null==(n=t)?void 0:n[l]}return t}:e=>e[a.accessorKey]),!g)throw new Error;let c={id:`${String(g)}`,accessorFn:d,parent:l,depth:n,columnDef:a,columns:[],getFlatColumns:i((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),s(e.options,"debugColumns")),getLeafColumns:i((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=c.columns)&&t.length){let t=c.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[c]}),s(e.options,"debugColumns"))};for(const i of e._features)null==i.createColumn||i.createColumn(c,e);return c}(r,e,l,n),a=e;return o.columns=a.columns?t(a.columns,o,l+1):[],o}))};return t(e)}),s(e,"debugColumns")),getAllFlatColumns:i((()=>[r.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),s(e,"debugColumns")),_getAllFlatColumnsById:i((()=>[r.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),s(e,"debugColumns")),getAllLeafColumns:i((()=>[r.getAllColumns(),r._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),s(e,"debugColumns")),getColumn:e=>r._getAllFlatColumnsById()[e]};Object.assign(r,c);for(let l=0;l<r._features.length;l++){const e=r._features[l];null==e||null==e.createTable||e.createTable(r)}return r}function Z(){return e=>i((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},l=function(t,o,r){void 0===o&&(o=0);const a=[];for(let s=0;s<t.length;s++){const u=p(e,e._getRowId(t[s],s,r),t[s],s,o,void 0,null==r?void 0:r.id);var i;if(n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows)u.originalSubRows=e.options.getSubRows(t[s],s),null!=(i=u.originalSubRows)&&i.length&&(u.subRows=l(u.originalSubRows,o+1,u))}return a};return n.rows=l(t),n}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}function W(){return e=>i((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?J(t):t),s(e.options,"debugTable"))}function J(e){const t=[],n=e=>{var l;t.push(e),null!=(l=e.subRows)&&l.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Q(){return e=>i((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach((e=>{e.depth=0,e.parentId=void 0})),n;const l=t.filter((t=>e.getColumn(t))),o=[],r={},i=function(t,n,s){if(void 0===n&&(n=0),n>=l.length)return t.map((e=>(e.depth=n,o.push(e),r[e.id]=e,e.subRows&&(e.subRows=i(e.subRows,n+1,e.id)),e)));const u=l[n],d=function(e,t){const n=new Map;return e.reduce(((e,n)=>{const l=`${n.getGroupingValue(t)}`,o=e.get(l);return o?o.push(n):e.set(l,[n]),e}),n)}(t,u),g=Array.from(d.entries()).map(((t,d)=>{let[g,c]=t,m=`${u}:${g}`;m=s?`${s}>${m}`:m;const f=i(c,n+1,m);f.forEach((e=>{e.parentId=m}));const h=n?a(c,(e=>e.subRows)):c,v=p(e,m,h[0].original,d,n,void 0,s);return Object.assign(v,{groupingColumnId:u,groupingValue:g,subRows:f,leafRows:h,getValue:t=>{if(l.includes(t)){if(v._valuesCache.hasOwnProperty(t))return v._valuesCache[t];var n;if(c[0])v._valuesCache[t]=null!=(n=c[0].getValue(t))?n:void 0;return v._valuesCache[t]}if(v._groupingValuesCache.hasOwnProperty(t))return v._groupingValuesCache[t];const o=e.getColumn(t),r=null==o?void 0:o.getAggregationFn();return r?(v._groupingValuesCache[t]=r(t,h,c),v._groupingValuesCache[t]):void 0}}),f.forEach((e=>{o.push(e),r[e.id]=e})),v}));return g},s=i(n.rows,0);return s.forEach((e=>{o.push(e),r[e.id]=e})),{rows:s,flatRows:o,rowsById:r}}),s(e.options,"debugTable",0,(()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))})))}function Y(){return e=>i((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const l=e.getState().sorting,o=[],r=l.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),a={};r.forEach((t=>{const n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const i=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let l=0;l<r.length;l+=1){var n;const o=r[l],i=a[o.id],s=i.sortUndefined,u=null!=(n=null==o?void 0:o.desc)&&n;let d=0;if(s){const n=void 0===e.getValue(o.id),l=void 0===t.getValue(o.id);if(n||l){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;d=n&&l?0:n?s:-s}}if(0===d&&(d=i.sortingFn(e,t,o.id)),0!==d)return u&&(d*=-1),i.invertSorting&&(d*=-1),d}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=i(e.subRows))})),t};return{rows:i(n.rows),flatRows:o,rowsById:n.rowsById}}),s(e.options,"debugTable",0,(()=>e._autoResetPageIndex())))}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/856.78147a4f.chunk.js b/ydb/core/viewer/monitoring/static/js/856.78147a4f.chunk.js new file mode 100644 index 00000000000..ac4f88b9606 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/856.78147a4f.chunk.js @@ -0,0 +1 @@ +(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[856],{57439:(e,t,n)=>{"use strict";n.d(t,{u:()=>O});var a=n(59284),s=n(96873),l=n(98192);const r=(0,l.om)("definition-list");const i=e=>"label"in e&&!("name"in e),c=e=>!e.some((e=>i(e)));function o(e,t){return e||("string"===typeof t||"number"===typeof t?String(t):void 0)}function m({copyText:e,content:t,copyPosition:n}){const l="inside"===n,i=null!==t&&void 0!==t?t:"\u2014";return e?a.createElement("div",{className:r("copy-container",{"icon-inside":l})},a.createElement("span",null,i),a.createElement(s.b,{size:"s",text:e,className:r("copy-button"),view:l?"raised":"flat-secondary"})):i}var u=n(98089);function d({label:e}){return a.createElement("div",{className:r("group-title")},a.createElement(u.E,{variant:"subheader-1",color:"complementary"},e))}var p=n(6170),v=n(72837);const f=JSON.parse('{"label_note":"Note"}'),b=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),h=(0,v.N)({en:f,ru:b},`${l.CU}definition-list`);var g=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n};function N({note:e}){if(!e)return null;const t=r("item-note-tooltip");if("string"===typeof e)return a.createElement(p.B,{className:t,content:e,placement:["bottom","top"],buttonProps:{"aria-label":h("label_note")}});if("object"===typeof e){const{buttonProps:n}=e,s=g(e,["buttonProps"]);return a.createElement(p.B,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":h("label_note")},n)},s))}return null}function y({note:e,name:t,nameTitle:n,multilineName:s,direction:l}){const i=a.createElement(a.Fragment,null,"\xa0",a.createElement(N,{note:e}));return a.createElement(a.Fragment,null,a.createElement("div",{className:r("term-wrapper")},a.createElement("span",{title:o(n,t)},t),s&&i),!s&&i,"horizontal"===l&&a.createElement("div",{className:r("dots",{"with-note":Boolean(e)})}))}var w=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]])}return n};function E({items:e,responsive:t,direction:n="horizontal",nameMaxWidth:s,contentMaxWidth:l="auto",className:i,itemClassName:c,copyPosition:u="outside",qa:d}){const p=s?{maxWidth:s,width:s}:{},v="number"===typeof l?{width:l,maxWidth:l}:{},f=a.useMemo((()=>e.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[e]);return a.createElement("div",{className:r({responsive:t,vertical:"vertical"===n},i),"data-qa":d},a.createElement("dl",{className:r("list")},f.map((e=>{const{name:t,key:s,content:l,contentTitle:i,nameTitle:d,copyText:f,note:b,multilineName:h}=e;return a.createElement("div",{key:s,className:r("item",c)},a.createElement("dt",{className:r("term-container",{multiline:h}),style:p},a.createElement(y,{direction:n,name:t,nameTitle:d,note:b,multilineName:h})),a.createElement("dd",{className:r("definition"),title:o(i,l),style:Object.assign(Object.assign({},v),{lineBreak:"string"===typeof l&&(g=20,function(e){return e.split(/\s+/).some((e=>e.length>g))})(l)?"anywhere":void 0})},a.createElement(m,{copyPosition:u,copyText:f,content:l})));var g}))))}function x(e){var{items:t,className:n,itemClassName:s}=e,l=w(e,["items","className","itemClassName"]);const i=a.useMemo((()=>t.map(((e,t)=>Object.assign(Object.assign({},e),{key:t})))),[t]);return a.createElement("div",{className:r({vertical:"vertical"===l.direction},n)},i.map((e=>{const{key:t,label:n}=e;return a.createElement(a.Fragment,{key:t},n&&a.createElement(d,{label:n}),e.items&&a.createElement(E,Object.assign({},l,{className:r({margin:!n}),items:e.items,itemClassName:r("item",{grouped:Boolean(n)},s)})))})))}function O(e){var{items:t}=e,n=w(e,["items"]);if(c(t))return a.createElement(E,Object.assign({},n,{items:t}));const s=function(e){const t=[];let n=[];for(const a of e)i(a)?(n.length&&(t.push({items:n,label:null}),n=[]),t.push(a)):n.push(a);return n.length&&(t.push({items:n,label:null}),n=[]),t}(t);return a.createElement(x,Object.assign({},n,{items:s}))}},6170:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});var a=n(59284),s=n(73633),l=n(84375),r=n(99991);const i=(0,n(98192).om)("help-popover"),c=16;function o(e){var t;return a.createElement(l.A,Object.assign({},e,{className:i(null,e.className)}),a.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:i("button",null===(t=e.buttonProps)||void 0===t?void 0:t.className)}),a.createElement(r.I,{data:s.A,size:c})))}},98192:(e,t,n)=>{"use strict";n.d(t,{CU:()=>s,om:()=>l});var a=n(82435);const s="gc-",l=((0,a.withNaming)({e:"__",m:"_",v:"_"}),(0,a.withNaming)({n:s,e:"__",m:"_",v:"_"}))},76938:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(59284);const s=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5",clipRule:"evenodd"}))},18677:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(59284);const s=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},74321:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var a=n(59284),s=n(64222),l=n(46898);function r(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M4 7h9v3H4z"}))}function i(e){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),a.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const c=(0,n(69220).om)("checkbox"),o=a.forwardRef((function(e,t){const{size:n="m",indeterminate:o,disabled:m=!1,content:u,children:d,title:p,style:v,className:f,qa:b}=e,{checked:h,inputProps:g}=(0,s.v)(e),N=u||d,y=a.createElement("span",{className:c("indicator")},a.createElement("span",{className:c("icon"),"aria-hidden":!0},o?a.createElement(r,{className:c("icon-svg",{type:"dash"})}):a.createElement(i,{className:c("icon-svg",{type:"tick"})})),a.createElement("input",Object.assign({},g,{className:c("control")})),a.createElement("span",{className:c("outline")}));return a.createElement(l.m,{ref:t,title:p,style:v,size:n,disabled:m,className:c({size:n,disabled:m,indeterminate:o,checked:h},f),qa:b,control:y},N)}))},18143:(e,t,n)=>{"use strict";n.d(t,{k:()=>u});var a=n(59284);const s=(0,n(69220).om)("progress");function l(e){const{text:t,offset:n=0}=e;return t?a.createElement("div",{className:s("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-n}%))`}},t):null}function r({item:e}){const{value:t,color:n,className:l,theme:r,title:i,content:c,loading:o}=e,m={loading:o};return"undefined"===typeof n&&(m.theme=r||"default"),Number.isFinite(t)?a.createElement("div",{className:s("item",m,l),style:{width:`${t}%`,backgroundColor:n},title:i},c):null}function i(e){return e<100?e-100:0}function c(e){const{theme:t,colorStops:n,colorStopsValue:a,value:s}=e;if(n){const e=n.find(((e,t)=>{const l="number"===typeof a?a:s,r=t>1?n[t-1].stop:0,i=t<n.length-1?e.stop:100;return l>=r&&l<=i}));return e?e.theme:t}return t}function o(e){const{stack:t,stackClassName:n,value:c,text:o}=e,m=i(c||function(e){return e.reduce(((e,{value:t})=>e+t),0)}(t));return a.createElement("div",{className:s("stack",n),style:{transform:`translateX(calc(var(--g-flow-direction) * ${m}%))`}},a.createElement("div",{className:s("item"),style:{width:-m+"%"}}),t.map(((e,t)=>a.createElement(r,{key:t,item:e}))),a.createElement(l,{offset:m,text:o}))}function m(e){const{value:t,loading:n,text:r}=e,o=i(t);return Number.isFinite(t)?a.createElement("div",{className:s("item",{theme:c(e),loading:n}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${o}%))`}},a.createElement(l,{offset:o,text:r})):null}const u=a.forwardRef((function(e,t){const{text:n="",theme:l="default",size:r="m",loading:i=!1,className:c,qa:u}=e,d=Object.assign(Object.assign({},e),{text:n,theme:l,size:r,loading:i});return a.createElement("div",{ref:t,className:s({size:r},c),"data-qa":u},a.createElement("div",{className:s("text")},n),function(e){return void 0!==e.stack}(d)?a.createElement(o,Object.assign({},d)):a.createElement(m,Object.assign({},d)))}))},43665:e=>{e.exports=function(e,t,n,a){for(var s=-1,l=null==e?0:e.length;++s<l;){var r=e[s];t(a,r,n(r),e)}return a}},81061:(e,t,n)=>{var a=n(75125);e.exports=function(e,t,n,s){return a(e,(function(e,a,l){t(s,e,n(e),l)})),s}},2680:(e,t,n)=>{var a=n(43665),s=n(81061),l=n(28293),r=n(19305);e.exports=function(e,t){return function(n,i){var c=r(n)?a:s,o=t?t():{};return c(n,e,l(i,2),o)}}},78018:(e,t,n)=>{var a=n(80472),s=n(2680),l=Object.prototype.hasOwnProperty,r=s((function(e,t,n){l.call(e,n)?e[n].push(t):a(e,n,[t])}));e.exports=r},63126:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var a=n(60712),s=n(59284),l=n(40569),r=n(53302);const i="--ydb-tree-view-level",c=(0,r.o)("ydb-tree-view");function o({children:e,name:t,title:n,icon:r,collapsed:o=!0,active:m=!1,onClick:u,onArrowClick:d,onActionsOpenToggle:p,hasArrow:v=!1,actions:f,additionalNodeElements:b,level:h}){const g=s.useCallback((e=>{if(!u)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||u()}),[u]),N=d||u;let y="tree-view_arrow",w="tree-view_children";return o&&(y+=" tree-view_arrow-collapsed",w+=" tree-view_children-collapsed"),(0,a.jsx)("div",{className:c(),style:{[i]:h},children:(0,a.jsxs)("div",{className:"tree-view",children:[(0,a.jsxs)("div",{className:`tree-view_item ${c("item",{active:m})}`,onClick:g,children:[(0,a.jsx)("button",{type:"button",className:`${y} ${c("arrow",{collapsed:o,hidden:!v})}`,disabled:!N,onClick:N}),(0,a.jsxs)("div",{className:c("content"),children:[r&&(0,a.jsx)("div",{className:c("icon"),children:r}),(0,a.jsx)("div",{className:c("text"),title:n,children:t}),f&&f.length>0&&(0,a.jsxs)("div",{className:c("actions"),children:[b,(0,a.jsx)(l.r,{onOpenToggle:p,defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:f})]})]})]}),(0,a.jsx)("div",{className:`${w} ${c("container",{collapsed:o})}`,children:o?null:e})]})})}},53302:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});const a=(0,n(82435).withNaming)({e:"__",m:"_"})}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8821.96eeccd6.chunk.js b/ydb/core/viewer/monitoring/static/js/8821.96eeccd6.chunk.js new file mode 100644 index 00000000000..69d2fe5ac22 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/8821.96eeccd6.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 8821.96eeccd6.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8821],{68821:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>Ht,DefinitionAdapter:()=>Zt,DiagnosticsAdapter:()=>Ot,DocumentColorAdapter:()=>ln,DocumentFormattingEditProvider:()=>un,DocumentHighlightAdapter:()=>Jt,DocumentLinkAdapter:()=>sn,DocumentRangeFormattingEditProvider:()=>cn,DocumentSymbolAdapter:()=>rn,FoldingRangeAdapter:()=>gn,HoverAdapter:()=>qt,ReferenceAdapter:()=>tn,RenameAdapter:()=>nn,SelectionRangeAdapter:()=>fn,WorkerManager:()=>Nt,fromPosition:()=>Kt,fromRange:()=>Xt,setupMode:()=>pn,setupMode1:()=>hn,toRange:()=>zt,toTextEdit:()=>Bt});var r,i,o=n(80781),a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of u(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g,f,m,h,p,v,b,_,k,w,y,x,I,E,S,A,C,R,L,T,M,P,D,F,j,N,U,V,O,W,H,K,X,z,$,B,q,Q,G,J,Y,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,de,le,ge,fe,me,he,pe,ve,be,_e,ke,we,ye,xe,Ie,Ee,Se,Ae,Ce,Re,Le,Te,Me,Pe,De,Fe,je,Ne,Ue,Ve,Oe,We,He,Ke,Xe,ze,$e,Be,qe,Qe,Ge,Je,Ye,Ze,et,tt,nt,rt,it,ot,at,st,ut,ct,dt,lt,gt,ft,mt,ht,pt,vt,bt,_t,kt,wt,yt,xt,It,Et,St,At,Ct,Rt,Lt,Tt,Mt,Pt,Dt,Ft,jt,Nt=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(g||(g={})).is=function(e){return"string"===typeof e},(f||(f={})).is=function(e){return"string"===typeof e},(h=m||(m={})).MIN_VALUE=-2147483648,h.MAX_VALUE=2147483647,h.is=function(e){return"number"===typeof e&&h.MIN_VALUE<=e&&e<=h.MAX_VALUE},(v=p||(p={})).MIN_VALUE=0,v.MAX_VALUE=2147483647,v.is=function(e){return"number"===typeof e&&v.MIN_VALUE<=e&&e<=v.MAX_VALUE},(_=b||(b={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=p.MAX_VALUE),t===Number.MAX_VALUE&&(t=p.MAX_VALUE),{line:e,character:t}},_.is=function(e){let t=e;return Ut.objectLiteral(t)&&Ut.uinteger(t.line)&&Ut.uinteger(t.character)},(w=k||(k={})).create=function(e,t,n,r){if(Ut.uinteger(e)&&Ut.uinteger(t)&&Ut.uinteger(n)&&Ut.uinteger(r))return{start:b.create(e,t),end:b.create(n,r)};if(b.is(e)&&b.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},w.is=function(e){let t=e;return Ut.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)},(x=y||(y={})).create=function(e,t){return{uri:e,range:t}},x.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&(Ut.string(t.uri)||Ut.undefined(t.uri))},(E=I||(I={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},E.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.targetRange)&&Ut.string(t.targetUri)&&k.is(t.targetSelectionRange)&&(k.is(t.originSelectionRange)||Ut.undefined(t.originSelectionRange))},(A=S||(S={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},A.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.numberRange(t.red,0,1)&&Ut.numberRange(t.green,0,1)&&Ut.numberRange(t.blue,0,1)&&Ut.numberRange(t.alpha,0,1)},(R=C||(C={})).create=function(e,t){return{range:e,color:t}},R.is=function(e){const t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&S.is(t.color)},(T=L||(L={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},T.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.label)&&(Ut.undefined(t.textEdit)||B.is(t))&&(Ut.undefined(t.additionalTextEdits)||Ut.typedArray(t.additionalTextEdits,B.is))},(P=M||(M={})).Comment="comment",P.Imports="imports",P.Region="region",(F=D||(D={})).create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return Ut.defined(n)&&(a.startCharacter=n),Ut.defined(r)&&(a.endCharacter=r),Ut.defined(i)&&(a.kind=i),Ut.defined(o)&&(a.collapsedText=o),a},F.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.uinteger(t.startLine)&&Ut.uinteger(t.startLine)&&(Ut.undefined(t.startCharacter)||Ut.uinteger(t.startCharacter))&&(Ut.undefined(t.endCharacter)||Ut.uinteger(t.endCharacter))&&(Ut.undefined(t.kind)||Ut.string(t.kind))},(N=j||(j={})).create=function(e,t){return{location:e,message:t}},N.is=function(e){let t=e;return Ut.defined(t)&&y.is(t.location)&&Ut.string(t.message)},(V=U||(U={})).Error=1,V.Warning=2,V.Information=3,V.Hint=4,(W=O||(O={})).Unnecessary=1,W.Deprecated=2,(H||(H={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.href)},(X=K||(K={})).create=function(e,t,n,r,i,o){let a={range:e,message:t};return Ut.defined(n)&&(a.severity=n),Ut.defined(r)&&(a.code=r),Ut.defined(i)&&(a.source=i),Ut.defined(o)&&(a.relatedInformation=o),a},X.is=function(e){var t;let n=e;return Ut.defined(n)&&k.is(n.range)&&Ut.string(n.message)&&(Ut.number(n.severity)||Ut.undefined(n.severity))&&(Ut.integer(n.code)||Ut.string(n.code)||Ut.undefined(n.code))&&(Ut.undefined(n.codeDescription)||Ut.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ut.string(n.source)||Ut.undefined(n.source))&&(Ut.undefined(n.relatedInformation)||Ut.typedArray(n.relatedInformation,j.is))},($=z||(z={})).create=function(e,t,...n){let r={title:e,command:t};return Ut.defined(n)&&n.length>0&&(r.arguments=n),r},$.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.title)&&Ut.string(t.command)},(q=B||(B={})).replace=function(e,t){return{range:e,newText:t}},q.insert=function(e,t){return{range:{start:e,end:e},newText:t}},q.del=function(e){return{range:e,newText:""}},q.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.newText)&&k.is(t.range)},(G=Q||(Q={})).create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},G.is=function(e){const t=e;return Ut.objectLiteral(t)&&Ut.string(t.label)&&(Ut.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ut.string(t.description)||void 0===t.description)},(J||(J={})).is=function(e){const t=e;return Ut.string(t)},(Z=Y||(Y={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Z.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Z.del=function(e,t){return{range:e,newText:"",annotationId:t}},Z.is=function(e){const t=e;return B.is(t)&&(Q.is(t.annotationId)||J.is(t.annotationId))},(te=ee||(ee={})).create=function(e,t){return{textDocument:e,edits:t}},te.is=function(e){let t=e;return Ut.defined(t)&&fe.is(t.textDocument)&&Array.isArray(t.edits)},(re=ne||(ne={})).create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},re.is=function(e){let t=e;return t&&"create"===t.kind&&Ut.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ut.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ut.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},oe.is=function(e){let t=e;return t&&"rename"===t.kind&&Ut.string(t.oldUri)&&Ut.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ut.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ut.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(se=ae||(ae={})).create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},se.is=function(e){let t=e;return t&&"delete"===t.kind&&Ut.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ut.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ut.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(ue||(ue={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Ut.string(e.kind)?ne.is(e)||ie.is(e)||ae.is(e):ee.is(e))))},(de=ce||(ce={})).create=function(e){return{uri:e}},de.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)},(ge=le||(le={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&Ut.integer(t.version)},(me=fe||(fe={})).create=function(e,t){return{uri:e,version:t}},me.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&(null===t.version||Ut.integer(t.version))},(pe=he||(he={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},pe.is=function(e){let t=e;return Ut.defined(t)&&Ut.string(t.uri)&&Ut.string(t.languageId)&&Ut.integer(t.version)&&Ut.string(t.text)},(be=ve||(ve={})).PlainText="plaintext",be.Markdown="markdown",be.is=function(e){const t=e;return t===be.PlainText||t===be.Markdown},(_e||(_e={})).is=function(e){const t=e;return Ut.objectLiteral(e)&&ve.is(t.kind)&&Ut.string(t.value)},(we=ke||(ke={})).Text=1,we.Method=2,we.Function=3,we.Constructor=4,we.Field=5,we.Variable=6,we.Class=7,we.Interface=8,we.Module=9,we.Property=10,we.Unit=11,we.Value=12,we.Enum=13,we.Keyword=14,we.Snippet=15,we.Color=16,we.File=17,we.Reference=18,we.Folder=19,we.EnumMember=20,we.Constant=21,we.Struct=22,we.Event=23,we.Operator=24,we.TypeParameter=25,(xe=ye||(ye={})).PlainText=1,xe.Snippet=2,(Ie||(Ie={})).Deprecated=1,(Se=Ee||(Ee={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Se.is=function(e){const t=e;return t&&Ut.string(t.newText)&&k.is(t.insert)&&k.is(t.replace)},(Ce=Ae||(Ae={})).asIs=1,Ce.adjustIndentation=2,(Re||(Re={})).is=function(e){const t=e;return t&&(Ut.string(t.detail)||void 0===t.detail)&&(Ut.string(t.description)||void 0===t.description)},(Le||(Le={})).create=function(e){return{label:e}},(Te||(Te={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Pe=Me||(Me={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Pe.is=function(e){const t=e;return Ut.string(t)||Ut.objectLiteral(t)&&Ut.string(t.language)&&Ut.string(t.value)},(De||(De={})).is=function(e){let t=e;return!!t&&Ut.objectLiteral(t)&&(_e.is(t.contents)||Me.is(t.contents)||Ut.typedArray(t.contents,Me.is))&&(void 0===e.range||k.is(e.range))},(Fe||(Fe={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(je||(je={})).create=function(e,t,...n){let r={label:e};return Ut.defined(t)&&(r.documentation=t),Ut.defined(n)?r.parameters=n:r.parameters=[],r},(Ue=Ne||(Ne={})).Text=1,Ue.Read=2,Ue.Write=3,(Ve||(Ve={})).create=function(e,t){let n={range:e};return Ut.number(t)&&(n.kind=t),n},(We=Oe||(Oe={})).File=1,We.Module=2,We.Namespace=3,We.Package=4,We.Class=5,We.Method=6,We.Property=7,We.Field=8,We.Constructor=9,We.Enum=10,We.Interface=11,We.Function=12,We.Variable=13,We.Constant=14,We.String=15,We.Number=16,We.Boolean=17,We.Array=18,We.Object=19,We.Key=20,We.Null=21,We.EnumMember=22,We.Struct=23,We.Event=24,We.Operator=25,We.TypeParameter=26,(He||(He={})).Deprecated=1,(Ke||(Ke={})).create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(Xe||(Xe={})).create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}},($e=ze||(ze={})).create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},$e.is=function(e){let t=e;return t&&Ut.string(t.name)&&Ut.number(t.kind)&&k.is(t.range)&&k.is(t.selectionRange)&&(void 0===t.detail||Ut.string(t.detail))&&(void 0===t.deprecated||Ut.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(qe=Be||(Be={})).Empty="",qe.QuickFix="quickfix",qe.Refactor="refactor",qe.RefactorExtract="refactor.extract",qe.RefactorInline="refactor.inline",qe.RefactorRewrite="refactor.rewrite",qe.Source="source",qe.SourceOrganizeImports="source.organizeImports",qe.SourceFixAll="source.fixAll",(Ge=Qe||(Qe={})).Invoked=1,Ge.Automatic=2,(Ye=Je||(Je={})).create=function(e,t,n){let r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r},Ye.is=function(e){let t=e;return Ut.defined(t)&&Ut.typedArray(t.diagnostics,K.is)&&(void 0===t.only||Ut.typedArray(t.only,Ut.string))&&(void 0===t.triggerKind||t.triggerKind===Qe.Invoked||t.triggerKind===Qe.Automatic)},(et=Ze||(Ze={})).create=function(e,t,n){let r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):z.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},et.is=function(e){let t=e;return t&&Ut.string(t.title)&&(void 0===t.diagnostics||Ut.typedArray(t.diagnostics,K.is))&&(void 0===t.kind||Ut.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||z.is(t.command))&&(void 0===t.isPreferred||Ut.boolean(t.isPreferred))&&(void 0===t.edit||ue.is(t.edit))},(nt=tt||(tt={})).create=function(e,t){let n={range:e};return Ut.defined(t)&&(n.data=t),n},nt.is=function(e){let t=e;return Ut.defined(t)&&k.is(t.range)&&(Ut.undefined(t.command)||z.is(t.command))},(it=rt||(rt={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},it.is=function(e){let t=e;return Ut.defined(t)&&Ut.uinteger(t.tabSize)&&Ut.boolean(t.insertSpaces)},(at=ot||(ot={})).create=function(e,t,n){return{range:e,target:t,data:n}},at.is=function(e){let t=e;return Ut.defined(t)&&k.is(t.range)&&(Ut.undefined(t.target)||Ut.string(t.target))},(ut=st||(st={})).create=function(e,t){return{range:e,parent:t}},ut.is=function(e){let t=e;return Ut.objectLiteral(t)&&k.is(t.range)&&(void 0===t.parent||ut.is(t.parent))},(dt=ct||(ct={})).namespace="namespace",dt.type="type",dt.class="class",dt.enum="enum",dt.interface="interface",dt.struct="struct",dt.typeParameter="typeParameter",dt.parameter="parameter",dt.variable="variable",dt.property="property",dt.enumMember="enumMember",dt.event="event",dt.function="function",dt.method="method",dt.macro="macro",dt.keyword="keyword",dt.modifier="modifier",dt.comment="comment",dt.string="string",dt.number="number",dt.regexp="regexp",dt.operator="operator",dt.decorator="decorator",(gt=lt||(lt={})).declaration="declaration",gt.definition="definition",gt.readonly="readonly",gt.static="static",gt.deprecated="deprecated",gt.abstract="abstract",gt.async="async",gt.modification="modification",gt.documentation="documentation",gt.defaultLibrary="defaultLibrary",(ft||(ft={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])},(ht=mt||(mt={})).create=function(e,t){return{range:e,text:t}},ht.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&Ut.string(t.text)},(vt=pt||(pt={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},vt.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&Ut.boolean(t.caseSensitiveLookup)&&(Ut.string(t.variableName)||void 0===t.variableName)},(_t=bt||(bt={})).create=function(e,t){return{range:e,expression:t}},_t.is=function(e){const t=e;return void 0!==t&&null!==t&&k.is(t.range)&&(Ut.string(t.expression)||void 0===t.expression)},(wt=kt||(kt={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},wt.is=function(e){const t=e;return Ut.defined(t)&&k.is(e.stoppedLocation)},(xt=yt||(yt={})).Type=1,xt.Parameter=2,xt.is=function(e){return 1===e||2===e},(Et=It||(It={})).create=function(e){return{value:e}},Et.is=function(e){const t=e;return Ut.objectLiteral(t)&&(void 0===t.tooltip||Ut.string(t.tooltip)||_e.is(t.tooltip))&&(void 0===t.location||y.is(t.location))&&(void 0===t.command||z.is(t.command))},(At=St||(St={})).create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},At.is=function(e){const t=e;return Ut.objectLiteral(t)&&b.is(t.position)&&(Ut.string(t.label)||Ut.typedArray(t.label,It.is))&&(void 0===t.kind||yt.is(t.kind))&&void 0===t.textEdits||Ut.typedArray(t.textEdits,B.is)&&(void 0===t.tooltip||Ut.string(t.tooltip)||_e.is(t.tooltip))&&(void 0===t.paddingLeft||Ut.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ut.boolean(t.paddingRight))},(Ct||(Ct={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Rt||(Rt={})).create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}},(Lt||(Lt={})).create=function(e){return{items:e}},(Mt=Tt||(Tt={})).Invoked=0,Mt.Automatic=1,(Pt||(Pt={})).create=function(e,t){return{range:e,text:t}},(Dt||(Dt={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(Ft||(Ft={})).is=function(e){const t=e;return Ut.objectLiteral(t)&&f.is(t.uri)&&Ut.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,u=0;for(;a<i.length&&s<o.length;){let t=n(i[a],o[s]);e[u++]=t<=0?i[a++]:o[s++]}for(;a<i.length;)e[u++]=i[a++];for(;s<o.length;)e[u++]=o[s++];return e}e.create=function(e,t,n,r){return new Vt(e,t,n,r)},e.is=function(e){let t=e;return!!(Ut.defined(t)&&Ut.string(t.uri)&&(Ut.undefined(t.languageId)||Ut.string(t.languageId))&&Ut.uinteger(t.lineCount)&&Ut.func(t.getText)&&Ut.func(t.positionAt)&&Ut.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(jt||(jt={}));var Ut,Vt=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return b.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return b.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}};!function(e){const t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Ut||(Ut={}));var Ot=class{constructor(e,t,n){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const r=e=>{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{l.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(l.editor.onDidCreateModel(r)),this._disposables.push(l.editor.onWillDisposeModel(i)),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{l.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),l.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"===typeof t.code?String(t.code):t.code;return{severity:Wt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=l.editor.getModel(e);i&&i.getLanguageId()===t&&l.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function Wt(e){switch(e){case U.Error:return l.MarkerSeverity.Error;case U.Warning:return l.MarkerSeverity.Warning;case U.Information:return l.MarkerSeverity.Info;case U.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}var Ht=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),Kt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new l.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:$t(e.kind)};var n,r;return e.textEdit&&("undefined"!==typeof(r=e.textEdit).insert&&"undefined"!==typeof r.replace?t.range={insert:zt(e.textEdit.insert),replace:zt(e.textEdit.replace)}:t.range=zt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Bt)),e.insertTextFormat===ye.Snippet&&(t.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function Kt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Xt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function zt(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function $t(e){const t=l.languages.CompletionItemKind;switch(e){case ke.Text:return t.Text;case ke.Method:return t.Method;case ke.Function:return t.Function;case ke.Constructor:return t.Constructor;case ke.Field:return t.Field;case ke.Variable:return t.Variable;case ke.Class:return t.Class;case ke.Interface:return t.Interface;case ke.Module:return t.Module;case ke.Property:return t.Property;case ke.Unit:return t.Unit;case ke.Value:return t.Value;case ke.Enum:return t.Enum;case ke.Keyword:return t.Keyword;case ke.Snippet:return t.Snippet;case ke.Color:return t.Color;case ke.File:return t.File;case ke.Reference:return t.Reference}return t.Property}function Bt(e){if(e)return{range:zt(e.range),text:e.newText}}var qt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),Kt(t)))).then((e=>{if(e)return{range:zt(e.range),contents:Gt(e.contents)}}))}};function Qt(e){return"string"===typeof e?{value:e}:(t=e)&&"object"===typeof t&&"string"===typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function Gt(e){if(e)return Array.isArray(e)?e.map(Qt):[Qt(e)]}var Jt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),Kt(t)))).then((e=>{if(e)return e.map((e=>({range:zt(e.range),kind:Yt(e.kind)})))}))}};function Yt(e){switch(e){case Ne.Read:return l.languages.DocumentHighlightKind.Read;case Ne.Write:return l.languages.DocumentHighlightKind.Write;case Ne.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Zt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),Kt(t)))).then((e=>{if(e)return[en(e)]}))}};function en(e){return{uri:l.Uri.parse(e.uri),range:zt(e.range)}}var tn=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),Kt(t)))).then((e=>{if(e)return e.map(en)}))}},nn=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),Kt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=l.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:zt(i.range),text:i.newText}})}return{edits:t}}(e)))}};var rn=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?on(e):{name:e.name,detail:"",containerName:e.containerName,kind:an(e.kind),range:zt(e.location.range),selectionRange:zt(e.location.range),tags:[]}))}))}};function on(e){return{name:e.name,detail:e.detail??"",kind:an(e.kind),range:zt(e.range),selectionRange:zt(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>on(e)))}}function an(e){let t=l.languages.SymbolKind;switch(e){case Oe.File:return t.File;case Oe.Module:return t.Module;case Oe.Namespace:return t.Namespace;case Oe.Package:return t.Package;case Oe.Class:return t.Class;case Oe.Method:return t.Method;case Oe.Property:return t.Property;case Oe.Field:return t.Field;case Oe.Constructor:return t.Constructor;case Oe.Enum:return t.Enum;case Oe.Interface:return t.Interface;case Oe.Function:return t.Function;case Oe.Variable:return t.Variable;case Oe.Constant:return t.Constant;case Oe.String:return t.String;case Oe.Number:return t.Number;case Oe.Boolean:return t.Boolean;case Oe.Array:return t.Array}return t.Function}var sn=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:zt(e.range),url:e.target})))}}))}},un=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,dn(t)).then((e=>{if(e&&0!==e.length)return e.map(Bt)}))))}},cn=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),Xt(t),dn(n)).then((e=>{if(e&&0!==e.length)return e.map(Bt)}))))}};function dn(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var ln=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:zt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,Xt(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=Bt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Bt)),t}))}))}},gn=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(t.kind=function(e){switch(e){case M.Comment:return l.languages.FoldingRangeKind.Comment;case M.Imports:return l.languages.FoldingRangeKind.Imports;case M.Region:return l.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var fn=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(Kt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:zt(e.range)}),e=e.parent;return t}))}))}},mn=class extends Ht{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function hn(e){const t=new Nt(e),n=(...e)=>t.getLanguageServiceWorker(...e);let r=e.languageId;l.languages.registerCompletionItemProvider(r,new mn(n)),l.languages.registerHoverProvider(r,new qt(n)),l.languages.registerDocumentHighlightProvider(r,new Jt(n)),l.languages.registerLinkProvider(r,new sn(n)),l.languages.registerFoldingRangeProvider(r,new gn(n)),l.languages.registerDocumentSymbolProvider(r,new rn(n)),l.languages.registerSelectionRangeProvider(r,new fn(n)),l.languages.registerRenameProvider(r,new nn(n)),"html"===r&&(l.languages.registerDocumentFormattingEditProvider(r,new un(n)),l.languages.registerDocumentRangeFormattingEditProvider(r,new cn(n)))}function pn(e){const t=[],n=[],r=new Nt(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;bn(n),r.completionItems&&n.push(l.languages.registerCompletionItemProvider(t,new mn(i))),r.hovers&&n.push(l.languages.registerHoverProvider(t,new qt(i))),r.documentHighlights&&n.push(l.languages.registerDocumentHighlightProvider(t,new Jt(i))),r.links&&n.push(l.languages.registerLinkProvider(t,new sn(i))),r.documentSymbols&&n.push(l.languages.registerDocumentSymbolProvider(t,new rn(i))),r.rename&&n.push(l.languages.registerRenameProvider(t,new nn(i))),r.foldingRanges&&n.push(l.languages.registerFoldingRangeProvider(t,new gn(i))),r.selectionRanges&&n.push(l.languages.registerSelectionRangeProvider(t,new fn(i))),r.documentFormattingEdits&&n.push(l.languages.registerDocumentFormattingEditProvider(t,new un(i))),r.documentRangeFormattingEdits&&n.push(l.languages.registerDocumentRangeFormattingEditProvider(t,new cn(i)))}(),t.push(vn(n)),vn(t)}function vn(e){return{dispose:()=>bn(e)}}function bn(e){for(;e.length;)e.pop().dispose()}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8821.96eeccd6.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/8821.96eeccd6.chunk.js.LICENSE.txt new file mode 100644 index 00000000000..34dc0256d74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/8821.96eeccd6.chunk.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/8821.fb95fc65.chunk.js b/ydb/core/viewer/monitoring/static/js/8821.fb95fc65.chunk.js deleted file mode 100644 index 9ef9c2175f3..00000000000 --- a/ydb/core/viewer/monitoring/static/js/8821.fb95fc65.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 8821.fb95fc65.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8821],{68821:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>gt,DefinitionAdapter:()=>yt,DiagnosticsAdapter:()=>ct,DocumentColorAdapter:()=>Mt,DocumentFormattingEditProvider:()=>Tt,DocumentHighlightAdapter:()=>bt,DocumentLinkAdapter:()=>Rt,DocumentRangeFormattingEditProvider:()=>Dt,DocumentSymbolAdapter:()=>It,FoldingRangeAdapter:()=>Ft,HoverAdapter:()=>vt,ReferenceAdapter:()=>Ct,RenameAdapter:()=>xt,SelectionRangeAdapter:()=>Lt,WorkerManager:()=>se,fromPosition:()=>lt,fromRange:()=>ht,setupMode:()=>Nt,setupMode1:()=>Ot,toRange:()=>ft,toTextEdit:()=>mt});var r,i,o=n(32858),a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of u(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},g={};d(g,r=o,"default"),i&&d(i,r,"default");var l,h,f,p,m,v,_,w,b,k,y,E,C,x,I,A,S,R,T,D,P,M,F,L,j,O,N,U,W,V,H,K,z,X,B,$,q,Q,G,J,Y,Z,ee,te,ne,re,ie,oe,ae,se=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=g.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(h=l||(l={})).MIN_VALUE=-2147483648,h.MAX_VALUE=2147483647,(p=f||(f={})).MIN_VALUE=0,p.MAX_VALUE=2147483647,(v=m||(m={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=f.MAX_VALUE),t===Number.MAX_VALUE&&(t=f.MAX_VALUE),{line:e,character:t}},v.is=function(e){var t=e;return st.objectLiteral(t)&&st.uinteger(t.line)&&st.uinteger(t.character)},(w=_||(_={})).create=function(e,t,n,r){if(st.uinteger(e)&&st.uinteger(t)&&st.uinteger(n)&&st.uinteger(r))return{start:m.create(e,t),end:m.create(n,r)};if(m.is(e)&&m.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},w.is=function(e){var t=e;return st.objectLiteral(t)&&m.is(t.start)&&m.is(t.end)},(k=b||(b={})).create=function(e,t){return{uri:e,range:t}},k.is=function(e){var t=e;return st.defined(t)&&_.is(t.range)&&(st.string(t.uri)||st.undefined(t.uri))},(E=y||(y={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},E.is=function(e){var t=e;return st.defined(t)&&_.is(t.targetRange)&&st.string(t.targetUri)&&(_.is(t.targetSelectionRange)||st.undefined(t.targetSelectionRange))&&(_.is(t.originSelectionRange)||st.undefined(t.originSelectionRange))},(x=C||(C={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},x.is=function(e){var t=e;return st.numberRange(t.red,0,1)&&st.numberRange(t.green,0,1)&&st.numberRange(t.blue,0,1)&&st.numberRange(t.alpha,0,1)},(A=I||(I={})).create=function(e,t){return{range:e,color:t}},A.is=function(e){var t=e;return _.is(t.range)&&C.is(t.color)},(R=S||(S={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},R.is=function(e){var t=e;return st.string(t.label)&&(st.undefined(t.textEdit)||X.is(t))&&(st.undefined(t.additionalTextEdits)||st.typedArray(t.additionalTextEdits,X.is))},(D=T||(T={})).Comment="comment",D.Imports="imports",D.Region="region",(M=P||(P={})).create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return st.defined(n)&&(o.startCharacter=n),st.defined(r)&&(o.endCharacter=r),st.defined(i)&&(o.kind=i),o},M.is=function(e){var t=e;return st.uinteger(t.startLine)&&st.uinteger(t.startLine)&&(st.undefined(t.startCharacter)||st.uinteger(t.startCharacter))&&(st.undefined(t.endCharacter)||st.uinteger(t.endCharacter))&&(st.undefined(t.kind)||st.string(t.kind))},(L=F||(F={})).create=function(e,t){return{location:e,message:t}},L.is=function(e){var t=e;return st.defined(t)&&b.is(t.location)&&st.string(t.message)},(O=j||(j={})).Error=1,O.Warning=2,O.Information=3,O.Hint=4,(U=N||(N={})).Unnecessary=1,U.Deprecated=2,(W||(W={})).is=function(e){var t=e;return void 0!==t&&null!==t&&st.string(t.href)},(H=V||(V={})).create=function(e,t,n,r,i,o){var a={range:e,message:t};return st.defined(n)&&(a.severity=n),st.defined(r)&&(a.code=r),st.defined(i)&&(a.source=i),st.defined(o)&&(a.relatedInformation=o),a},H.is=function(e){var t,n=e;return st.defined(n)&&_.is(n.range)&&st.string(n.message)&&(st.number(n.severity)||st.undefined(n.severity))&&(st.integer(n.code)||st.string(n.code)||st.undefined(n.code))&&(st.undefined(n.codeDescription)||st.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(st.string(n.source)||st.undefined(n.source))&&(st.undefined(n.relatedInformation)||st.typedArray(n.relatedInformation,F.is))},(z=K||(K={})).create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return st.defined(n)&&n.length>0&&(i.arguments=n),i},z.is=function(e){var t=e;return st.defined(t)&&st.string(t.title)&&st.string(t.command)},(B=X||(X={})).replace=function(e,t){return{range:e,newText:t}},B.insert=function(e,t){return{range:{start:e,end:e},newText:t}},B.del=function(e){return{range:e,newText:""}},B.is=function(e){var t=e;return st.objectLiteral(t)&&st.string(t.newText)&&_.is(t.range)},(q=$||($={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},q.is=function(e){var t=e;return void 0!==t&&st.objectLiteral(t)&&st.string(t.label)&&(st.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(st.string(t.description)||void 0===t.description)},(Q||(Q={})).is=function(e){return"string"===typeof e},(J=G||(G={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},J.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},J.del=function(e,t){return{range:e,newText:"",annotationId:t}},J.is=function(e){var t=e;return X.is(t)&&($.is(t.annotationId)||Q.is(t.annotationId))},(Z=Y||(Y={})).create=function(e,t){return{textDocument:e,edits:t}},Z.is=function(e){var t=e;return st.defined(t)&&le.is(t.textDocument)&&Array.isArray(t.edits)},(te=ee||(ee={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},te.is=function(e){var t=e;return t&&"create"===t.kind&&st.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||st.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||st.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(re=ne||(ne={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},re.is=function(e){var t=e;return t&&"rename"===t.kind&&st.string(t.oldUri)&&st.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||st.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||st.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},oe.is=function(e){var t=e;return t&&"delete"===t.kind&&st.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||st.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||st.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(ae||(ae={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return st.string(e.kind)?ee.is(e)||ne.is(e)||ie.is(e):Y.is(e)})))};var ue,ce,de,ge,le,he,fe,pe,me,ve,_e,we,be,ke,ye,Ee,Ce,xe,Ie,Ae,Se,Re,Te,De,Pe,Me,Fe,Le,je,Oe,Ne,Ue,We,Ve,He,Ke,ze,Xe,Be,$e,qe,Qe,Ge,Je,Ye,Ze,et,tt,nt,rt,it,ot=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=X.insert(e,t):Q.is(n)?(i=n,r=G.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=G.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=X.replace(e,t):Q.is(n)?(i=n,r=G.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=G.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=X.del(e):Q.is(t)?(r=t,n=G.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=G.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),at=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(Q.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new at(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Y.is(e)){var n=new ot(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ot(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(le.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new ot(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ot(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new at,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if($.is(t)||Q.is(t)?r=t:n=t,void 0===r?i=ee.create(e,n):(o=Q.is(r)?r:this._changeAnnotations.manage(r),i=ee.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if($.is(n)||Q.is(n)?i=n:r=n,void 0===i?o=ne.create(e,t,r):(a=Q.is(i)?i:this._changeAnnotations.manage(i),o=ne.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if($.is(t)||Q.is(t)?r=t:n=t,void 0===r?i=ie.create(e,n):(o=Q.is(r)?r:this._changeAnnotations.manage(r),i=ie.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}();(ce=ue||(ue={})).create=function(e){return{uri:e}},ce.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)},(ge=de||(de={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)&&st.integer(t.version)},(he=le||(le={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)&&(null===t.version||st.integer(t.version))},(pe=fe||(fe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},pe.is=function(e){var t=e;return st.defined(t)&&st.string(t.uri)&&st.string(t.languageId)&&st.integer(t.version)&&st.string(t.text)},(ve=me||(me={})).PlainText="plaintext",ve.Markdown="markdown",function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(me||(me={})),(_e||(_e={})).is=function(e){var t=e;return st.objectLiteral(e)&&me.is(t.kind)&&st.string(t.value)},(be=we||(we={})).Text=1,be.Method=2,be.Function=3,be.Constructor=4,be.Field=5,be.Variable=6,be.Class=7,be.Interface=8,be.Module=9,be.Property=10,be.Unit=11,be.Value=12,be.Enum=13,be.Keyword=14,be.Snippet=15,be.Color=16,be.File=17,be.Reference=18,be.Folder=19,be.EnumMember=20,be.Constant=21,be.Struct=22,be.Event=23,be.Operator=24,be.TypeParameter=25,(ye=ke||(ke={})).PlainText=1,ye.Snippet=2,(Ee||(Ee={})).Deprecated=1,(xe=Ce||(Ce={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},xe.is=function(e){var t=e;return t&&st.string(t.newText)&&_.is(t.insert)&&_.is(t.replace)},(Ae=Ie||(Ie={})).asIs=1,Ae.adjustIndentation=2,(Se||(Se={})).create=function(e){return{label:e}},(Re||(Re={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(De=Te||(Te={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},De.is=function(e){var t=e;return st.string(t)||st.objectLiteral(t)&&st.string(t.language)&&st.string(t.value)},(Pe||(Pe={})).is=function(e){var t=e;return!!t&&st.objectLiteral(t)&&(_e.is(t.contents)||Te.is(t.contents)||st.typedArray(t.contents,Te.is))&&(void 0===e.range||_.is(e.range))},(Me||(Me={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Fe||(Fe={})).create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return st.defined(t)&&(i.documentation=t),st.defined(n)?i.parameters=n:i.parameters=[],i},(je=Le||(Le={})).Text=1,je.Read=2,je.Write=3,(Oe||(Oe={})).create=function(e,t){var n={range:e};return st.number(t)&&(n.kind=t),n},(Ue=Ne||(Ne={})).File=1,Ue.Module=2,Ue.Namespace=3,Ue.Package=4,Ue.Class=5,Ue.Method=6,Ue.Property=7,Ue.Field=8,Ue.Constructor=9,Ue.Enum=10,Ue.Interface=11,Ue.Function=12,Ue.Variable=13,Ue.Constant=14,Ue.String=15,Ue.Number=16,Ue.Boolean=17,Ue.Array=18,Ue.Object=19,Ue.Key=20,Ue.Null=21,Ue.EnumMember=22,Ue.Struct=23,Ue.Event=24,Ue.Operator=25,Ue.TypeParameter=26,(We||(We={})).Deprecated=1,(Ve||(Ve={})).create=function(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(Ke=He||(He={})).create=function(e,t,n,r,i,o){var a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},Ke.is=function(e){var t=e;return t&&st.string(t.name)&&st.number(t.kind)&&_.is(t.range)&&_.is(t.selectionRange)&&(void 0===t.detail||st.string(t.detail))&&(void 0===t.deprecated||st.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(Xe=ze||(ze={})).Empty="",Xe.QuickFix="quickfix",Xe.Refactor="refactor",Xe.RefactorExtract="refactor.extract",Xe.RefactorInline="refactor.inline",Xe.RefactorRewrite="refactor.rewrite",Xe.Source="source",Xe.SourceOrganizeImports="source.organizeImports",Xe.SourceFixAll="source.fixAll",($e=Be||(Be={})).create=function(e,t){var n={diagnostics:e};return void 0!==t&&null!==t&&(n.only=t),n},$e.is=function(e){var t=e;return st.defined(t)&&st.typedArray(t.diagnostics,V.is)&&(void 0===t.only||st.typedArray(t.only,st.string))},(Qe=qe||(qe={})).create=function(e,t,n){var r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):K.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},Qe.is=function(e){var t=e;return t&&st.string(t.title)&&(void 0===t.diagnostics||st.typedArray(t.diagnostics,V.is))&&(void 0===t.kind||st.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||K.is(t.command))&&(void 0===t.isPreferred||st.boolean(t.isPreferred))&&(void 0===t.edit||ae.is(t.edit))},(Je=Ge||(Ge={})).create=function(e,t){var n={range:e};return st.defined(t)&&(n.data=t),n},Je.is=function(e){var t=e;return st.defined(t)&&_.is(t.range)&&(st.undefined(t.command)||K.is(t.command))},(Ze=Ye||(Ye={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},Ze.is=function(e){var t=e;return st.defined(t)&&st.uinteger(t.tabSize)&&st.boolean(t.insertSpaces)},(tt=et||(et={})).create=function(e,t,n){return{range:e,target:t,data:n}},tt.is=function(e){var t=e;return st.defined(t)&&_.is(t.range)&&(st.undefined(t.target)||st.string(t.target))},(rt=nt||(nt={})).create=function(e,t){return{range:e,parent:t}},rt.is=function(e){var t=e;return void 0!==t&&_.is(t.range)&&(void 0===t.parent||rt.is(t.parent))},function(e){function t(e,n){if(e.length<=1)return e;var r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);for(var a=0,s=0,u=0;a<i.length&&s<o.length;){var c=n(i[a],o[s]);e[u++]=c<=0?i[a++]:o[s++]}for(;a<i.length;)e[u++]=i[a++];for(;s<o.length;)e[u++]=o[s++];return e}e.create=function(e,t,n,r){return new ut(e,t,n,r)},e.is=function(e){var t=e;return!!(st.defined(t)&&st.string(t.uri)&&(st.undefined(t.languageId)||st.string(t.languageId))&&st.uinteger(t.lineCount)&&st.func(t.getText)&&st.func(t.positionAt)&&st.func(t.offsetAt))},e.applyEdits=function(e,n){for(var r=e.getText(),i=t(n,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length,a=i.length-1;a>=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(it||(it={}));var st,ut=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return m.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return m.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(st||(st={}));var ct=class{constructor(e,t,n){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);const r=e=>{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{g.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(g.editor.onDidCreateModel(r)),this._disposables.push(g.editor.onWillDisposeModel(i)),this._disposables.push(g.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{g.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{g.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),g.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"===typeof t.code?String(t.code):t.code;return{severity:dt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=g.editor.getModel(e);i&&i.getLanguageId()===t&&g.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function dt(e){switch(e){case j.Error:return g.MarkerSeverity.Error;case j.Warning:return g.MarkerSeverity.Warning;case j.Information:return g.MarkerSeverity.Info;case j.Hint:return g.MarkerSeverity.Hint;default:return g.MarkerSeverity.Info}}var gt=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),lt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new g.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:pt(e.kind)};var n,r;return e.textEdit&&("undefined"!==typeof(r=e.textEdit).insert&&"undefined"!==typeof r.replace?t.range={insert:ft(e.textEdit.insert),replace:ft(e.textEdit.replace)}:t.range=ft(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(mt)),e.insertTextFormat===ke.Snippet&&(t.insertTextRules=g.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function lt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ht(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function ft(e){if(e)return new g.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function pt(e){const t=g.languages.CompletionItemKind;switch(e){case we.Text:return t.Text;case we.Method:return t.Method;case we.Function:return t.Function;case we.Constructor:return t.Constructor;case we.Field:return t.Field;case we.Variable:return t.Variable;case we.Class:return t.Class;case we.Interface:return t.Interface;case we.Module:return t.Module;case we.Property:return t.Property;case we.Unit:return t.Unit;case we.Value:return t.Value;case we.Enum:return t.Enum;case we.Keyword:return t.Keyword;case we.Snippet:return t.Snippet;case we.Color:return t.Color;case we.File:return t.File;case we.Reference:return t.Reference}return t.Property}function mt(e){if(e)return{range:ft(e.range),text:e.newText}}var vt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),lt(t)))).then((e=>{if(e)return{range:ft(e.range),contents:wt(e.contents)}}))}};function _t(e){return"string"===typeof e?{value:e}:(t=e)&&"object"===typeof t&&"string"===typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function wt(e){if(e)return Array.isArray(e)?e.map(_t):[_t(e)]}var bt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),lt(t)))).then((e=>{if(e)return e.map((e=>({range:ft(e.range),kind:kt(e.kind)})))}))}};function kt(e){switch(e){case Le.Read:return g.languages.DocumentHighlightKind.Read;case Le.Write:return g.languages.DocumentHighlightKind.Write;case Le.Text:return g.languages.DocumentHighlightKind.Text}return g.languages.DocumentHighlightKind.Text}var yt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),lt(t)))).then((e=>{if(e)return[Et(e)]}))}};function Et(e){return{uri:g.Uri.parse(e.uri),range:ft(e.range)}}var Ct=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),lt(t)))).then((e=>{if(e)return e.map(Et)}))}},xt=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),lt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=g.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:ft(i.range),text:i.newText}})}return{edits:t}}(e)))}};var It=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?At(e):{name:e.name,detail:"",containerName:e.containerName,kind:St(e.kind),range:ft(e.location.range),selectionRange:ft(e.location.range),tags:[]}))}))}};function At(e){return{name:e.name,detail:e.detail??"",kind:St(e.kind),range:ft(e.range),selectionRange:ft(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>At(e)))}}function St(e){let t=g.languages.SymbolKind;switch(e){case Ne.File:return t.File;case Ne.Module:return t.Module;case Ne.Namespace:return t.Namespace;case Ne.Package:return t.Package;case Ne.Class:return t.Class;case Ne.Method:return t.Method;case Ne.Property:return t.Property;case Ne.Field:return t.Field;case Ne.Constructor:return t.Constructor;case Ne.Enum:return t.Enum;case Ne.Interface:return t.Interface;case Ne.Function:return t.Function;case Ne.Variable:return t.Variable;case Ne.Constant:return t.Constant;case Ne.String:return t.String;case Ne.Number:return t.Number;case Ne.Boolean:return t.Boolean;case Ne.Array:return t.Array}return t.Function}var Rt=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:ft(e.range),url:e.target})))}}))}},Tt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,Pt(t)).then((e=>{if(e&&0!==e.length)return e.map(mt)}))))}},Dt=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),ht(t),Pt(n)).then((e=>{if(e&&0!==e.length)return e.map(mt)}))))}};function Pt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Mt=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:ft(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,ht(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=mt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(mt)),t}))}))}},Ft=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(t.kind=function(e){switch(e){case T.Comment:return g.languages.FoldingRangeKind.Comment;case T.Imports:return g.languages.FoldingRangeKind.Imports;case T.Region:return g.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var Lt=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(lt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:ft(e.range)}),e=e.parent;return t}))}))}},jt=class extends gt{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function Ot(e){const t=new se(e),n=(...e)=>t.getLanguageServiceWorker(...e);let r=e.languageId;g.languages.registerCompletionItemProvider(r,new jt(n)),g.languages.registerHoverProvider(r,new vt(n)),g.languages.registerDocumentHighlightProvider(r,new bt(n)),g.languages.registerLinkProvider(r,new Rt(n)),g.languages.registerFoldingRangeProvider(r,new Ft(n)),g.languages.registerDocumentSymbolProvider(r,new It(n)),g.languages.registerSelectionRangeProvider(r,new Lt(n)),g.languages.registerRenameProvider(r,new xt(n)),"html"===r&&(g.languages.registerDocumentFormattingEditProvider(r,new Tt(n)),g.languages.registerDocumentRangeFormattingEditProvider(r,new Dt(n)))}function Nt(e){const t=[],n=[],r=new se(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;Wt(n),r.completionItems&&n.push(g.languages.registerCompletionItemProvider(t,new jt(i))),r.hovers&&n.push(g.languages.registerHoverProvider(t,new vt(i))),r.documentHighlights&&n.push(g.languages.registerDocumentHighlightProvider(t,new bt(i))),r.links&&n.push(g.languages.registerLinkProvider(t,new Rt(i))),r.documentSymbols&&n.push(g.languages.registerDocumentSymbolProvider(t,new It(i))),r.rename&&n.push(g.languages.registerRenameProvider(t,new xt(i))),r.foldingRanges&&n.push(g.languages.registerFoldingRangeProvider(t,new Ft(i))),r.selectionRanges&&n.push(g.languages.registerSelectionRangeProvider(t,new Lt(i))),r.documentFormattingEdits&&n.push(g.languages.registerDocumentFormattingEditProvider(t,new Tt(i))),r.documentRangeFormattingEdits&&n.push(g.languages.registerDocumentRangeFormattingEditProvider(t,new Dt(i)))}(),t.push(Ut(n)),Ut(t)}function Ut(e){return{dispose:()=>Wt(e)}}function Wt(e){for(;e.length;)e.pop().dispose()}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8821.fb95fc65.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/8821.fb95fc65.chunk.js.LICENSE.txt deleted file mode 100644 index a62733317c0..00000000000 --- a/ydb/core/viewer/monitoring/static/js/8821.fb95fc65.chunk.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/8868.a9031705.chunk.js b/ydb/core/viewer/monitoring/static/js/8868.a9031705.chunk.js new file mode 100644 index 00000000000..97e1696a3ee --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/8868.a9031705.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8868],{28868:(e,b,d)=>{d.r(b)}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8979.0c0acc31.chunk.js b/ydb/core/viewer/monitoring/static/js/8979.0c0acc31.chunk.js new file mode 100644 index 00000000000..52d875ad6cc --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/8979.0c0acc31.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8979],{78979:(e,t,i)=>{i.r(t),i.d(t,{Adapter:()=>f,CodeActionAdaptor:()=>M,DefinitionAdapter:()=>C,DiagnosticsAdapter:()=>_,DocumentHighlightAdapter:()=>v,FormatAdapter:()=>O,FormatHelper:()=>L,FormatOnTypeAdapter:()=>N,InlayHintsAdapter:()=>R,Kind:()=>F,LibFiles:()=>y,OutlineAdapter:()=>A,QuickInfoAdapter:()=>k,ReferenceAdapter:()=>D,RenameAdapter:()=>K,SignatureHelpAdapter:()=>x,SuggestAdapter:()=>w,WorkerManager:()=>p,flattenDiagnosticMessageText:()=>h,getJavaScriptWorker:()=>V,getTypeScriptWorker:()=>j,setupJavaScript:()=>H,setupTypeScript:()=>E});var s,r,n=i(80781),a=i(24152),o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,u=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of c(t))d.call(e,r)||r===i||o(e,r,{get:()=>t[r],enumerable:!(s=l(t,r))||s.enumerable});return e},g={};u(g,s=n,"default"),r&&u(r,s,"default");var p=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()))}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=g.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(g.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}},m={};function h(e,t,i=0){if("string"===typeof e)return e;if(void 0===e)return"";let s="";if(i){s+=t;for(let e=0;e<i;e++)s+=" "}if(s+=e.messageText,i++,e.next)for(const r of e.next)s+=h(r,t,i);return s}function b(e){return e?e.map((e=>e.text)).join(""):""}m["lib.d.ts"]=!0,m["lib.decorators.d.ts"]=!0,m["lib.decorators.legacy.d.ts"]=!0,m["lib.dom.asynciterable.d.ts"]=!0,m["lib.dom.d.ts"]=!0,m["lib.dom.iterable.d.ts"]=!0,m["lib.es2015.collection.d.ts"]=!0,m["lib.es2015.core.d.ts"]=!0,m["lib.es2015.d.ts"]=!0,m["lib.es2015.generator.d.ts"]=!0,m["lib.es2015.iterable.d.ts"]=!0,m["lib.es2015.promise.d.ts"]=!0,m["lib.es2015.proxy.d.ts"]=!0,m["lib.es2015.reflect.d.ts"]=!0,m["lib.es2015.symbol.d.ts"]=!0,m["lib.es2015.symbol.wellknown.d.ts"]=!0,m["lib.es2016.array.include.d.ts"]=!0,m["lib.es2016.d.ts"]=!0,m["lib.es2016.full.d.ts"]=!0,m["lib.es2016.intl.d.ts"]=!0,m["lib.es2017.d.ts"]=!0,m["lib.es2017.date.d.ts"]=!0,m["lib.es2017.full.d.ts"]=!0,m["lib.es2017.intl.d.ts"]=!0,m["lib.es2017.object.d.ts"]=!0,m["lib.es2017.sharedmemory.d.ts"]=!0,m["lib.es2017.string.d.ts"]=!0,m["lib.es2017.typedarrays.d.ts"]=!0,m["lib.es2018.asyncgenerator.d.ts"]=!0,m["lib.es2018.asynciterable.d.ts"]=!0,m["lib.es2018.d.ts"]=!0,m["lib.es2018.full.d.ts"]=!0,m["lib.es2018.intl.d.ts"]=!0,m["lib.es2018.promise.d.ts"]=!0,m["lib.es2018.regexp.d.ts"]=!0,m["lib.es2019.array.d.ts"]=!0,m["lib.es2019.d.ts"]=!0,m["lib.es2019.full.d.ts"]=!0,m["lib.es2019.intl.d.ts"]=!0,m["lib.es2019.object.d.ts"]=!0,m["lib.es2019.string.d.ts"]=!0,m["lib.es2019.symbol.d.ts"]=!0,m["lib.es2020.bigint.d.ts"]=!0,m["lib.es2020.d.ts"]=!0,m["lib.es2020.date.d.ts"]=!0,m["lib.es2020.full.d.ts"]=!0,m["lib.es2020.intl.d.ts"]=!0,m["lib.es2020.number.d.ts"]=!0,m["lib.es2020.promise.d.ts"]=!0,m["lib.es2020.sharedmemory.d.ts"]=!0,m["lib.es2020.string.d.ts"]=!0,m["lib.es2020.symbol.wellknown.d.ts"]=!0,m["lib.es2021.d.ts"]=!0,m["lib.es2021.full.d.ts"]=!0,m["lib.es2021.intl.d.ts"]=!0,m["lib.es2021.promise.d.ts"]=!0,m["lib.es2021.string.d.ts"]=!0,m["lib.es2021.weakref.d.ts"]=!0,m["lib.es2022.array.d.ts"]=!0,m["lib.es2022.d.ts"]=!0,m["lib.es2022.error.d.ts"]=!0,m["lib.es2022.full.d.ts"]=!0,m["lib.es2022.intl.d.ts"]=!0,m["lib.es2022.object.d.ts"]=!0,m["lib.es2022.regexp.d.ts"]=!0,m["lib.es2022.sharedmemory.d.ts"]=!0,m["lib.es2022.string.d.ts"]=!0,m["lib.es2023.array.d.ts"]=!0,m["lib.es2023.collection.d.ts"]=!0,m["lib.es2023.d.ts"]=!0,m["lib.es2023.full.d.ts"]=!0,m["lib.es5.d.ts"]=!0,m["lib.es6.d.ts"]=!0,m["lib.esnext.collection.d.ts"]=!0,m["lib.esnext.d.ts"]=!0,m["lib.esnext.decorators.d.ts"]=!0,m["lib.esnext.disposable.d.ts"]=!0,m["lib.esnext.full.d.ts"]=!0,m["lib.esnext.intl.d.ts"]=!0,m["lib.esnext.object.d.ts"]=!0,m["lib.esnext.promise.d.ts"]=!0,m["lib.scripthost.d.ts"]=!0,m["lib.webworker.asynciterable.d.ts"]=!0,m["lib.webworker.d.ts"]=!0,m["lib.webworker.importscripts.d.ts"]=!0,m["lib.webworker.iterable.d.ts"]=!0;var f=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let i=e.getPositionAt(t.start),s=e.getPositionAt(t.start+t.length),{lineNumber:r,column:n}=i,{lineNumber:a,column:o}=s;return{startLineNumber:r,startColumn:n,endLineNumber:a,endColumn:o}}},y=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return!!e&&(0===e.path.indexOf("/lib.")&&!!m[e.path.slice(1)])}getOrCreateModel(e){const t=g.Uri.parse(e),i=g.editor.getModel(t);if(i)return i;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return g.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const s=a.IF.getExtraLibs()[e];return s?g.editor.createModel(s.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}},_=class extends f{constructor(e,t,i,s){super(s),this._libFiles=e,this._defaults=t,this._selector=i,this._disposables=[],this._listener=Object.create(null);const r=e=>{if(e.getLanguageId()!==i)return;const t=()=>{const{onlyVisible:t}=this._defaults.getDiagnosticsOptions();t?e.isAttachedToEditor()&&this._doValidate(e):this._doValidate(e)};let s;const r=e.onDidChangeContent((()=>{clearTimeout(s),s=window.setTimeout(t,500)})),n=e.onDidChangeAttached((()=>{const{onlyVisible:i}=this._defaults.getDiagnosticsOptions();i&&(e.isAttachedToEditor()?t():g.editor.setModelMarkers(e,this._selector,[]))}));this._listener[e.uri.toString()]={dispose(){r.dispose(),n.dispose(),clearTimeout(s)}},t()},n=e=>{g.editor.setModelMarkers(e,this._selector,[]);const t=e.uri.toString();this._listener[t]&&(this._listener[t].dispose(),delete this._listener[t])};this._disposables.push(g.editor.onDidCreateModel((e=>r(e)))),this._disposables.push(g.editor.onWillDisposeModel(n)),this._disposables.push(g.editor.onDidChangeModelLanguage((e=>{n(e.model),r(e.model)}))),this._disposables.push({dispose(){for(const e of g.editor.getModels())n(e)}});const a=()=>{for(const e of g.editor.getModels())n(e),r(e)};this._disposables.push(this._defaults.onDidChange(a)),this._disposables.push(this._defaults.onDidExtraLibsChange(a)),g.editor.getModels().forEach((e=>r(e)))}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 i=[],{noSyntaxValidation:s,noSemanticValidation:r,noSuggestionDiagnostics:n}=this._defaults.getDiagnosticsOptions();s||i.push(t.getSyntacticDiagnostics(e.uri.toString())),r||i.push(t.getSemanticDiagnostics(e.uri.toString())),n||i.push(t.getSuggestionDiagnostics(e.uri.toString()));const a=await Promise.all(i);if(!a||e.isDisposed())return;const o=a.reduce(((e,t)=>t.concat(e)),[]).filter((e=>-1===(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(e.code))),l=o.map((e=>e.relatedInformation||[])).reduce(((e,t)=>t.concat(e)),[]).map((e=>e.file?g.Uri.parse(e.file.fileName):null));await this._libFiles.fetchLibFilesIfNecessary(l),e.isDisposed()||g.editor.setModelMarkers(e,this._selector,o.map((t=>this._convertDiagnostics(e,t))))}_convertDiagnostics(e,t){const i=t.start||0,s=t.length||1,{lineNumber:r,column:n}=e.getPositionAt(i),{lineNumber:a,column:o}=e.getPositionAt(i+s),l=[];return t.reportsUnnecessary&&l.push(g.MarkerTag.Unnecessary),t.reportsDeprecated&&l.push(g.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:r,startColumn:n,endLineNumber:a,endColumn:o,message:h(t.messageText,"\n"),code:t.code.toString(),tags:l,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const i=[];return t.forEach((t=>{let s=e;if(t.file&&(s=this._libFiles.getOrCreateModel(t.file.fileName)),!s)return;const r=t.start||0,n=t.length||1,{lineNumber:a,column:o}=s.getPositionAt(r),{lineNumber:l,column:c}=s.getPositionAt(r+n);i.push({resource:s.uri,startLineNumber:a,startColumn:o,endLineNumber:l,endColumn:c,message:h(t.messageText,"\n")})})),i}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return g.MarkerSeverity.Error;case 3:return g.MarkerSeverity.Info;case 0:return g.MarkerSeverity.Warning;case 2:return g.MarkerSeverity.Hint}return g.MarkerSeverity.Info}},w=class e extends f{get triggerCharacters(){return["."]}async provideCompletionItems(t,i,s,r){const n=t.getWordUntilPosition(i),a=new g.Range(i.lineNumber,n.startColumn,i.lineNumber,n.endColumn),o=t.uri,l=t.getOffsetAt(i),c=await this._worker(o);if(t.isDisposed())return;const d=await c.getCompletionsAtPosition(o.toString(),l);if(!d||t.isDisposed())return;return{suggestions:d.entries.map((s=>{let r=a;if(s.replacementSpan){const e=t.getPositionAt(s.replacementSpan.start),i=t.getPositionAt(s.replacementSpan.start+s.replacementSpan.length);r=new g.Range(e.lineNumber,e.column,i.lineNumber,i.column)}const n=[];return void 0!==s.kindModifiers&&-1!==s.kindModifiers.indexOf("deprecated")&&n.push(g.languages.CompletionItemTag.Deprecated),{uri:o,position:i,offset:l,range:r,label:s.name,insertText:s.name,sortText:s.sortText,kind:e.convertKind(s.kind),tags:n}}))}}async resolveCompletionItem(t,i){const s=t,r=s.uri,n=s.position,a=s.offset,o=await this._worker(r),l=await o.getCompletionEntryDetails(r.toString(),a,s.label);return l?{uri:r,position:n,label:l.name,kind:e.convertKind(l.kind),detail:b(l.displayParts),documentation:{value:e.createDocumentationString(l)}}:s}static convertKind(e){switch(e){case F.primitiveType:case F.keyword:return g.languages.CompletionItemKind.Keyword;case F.variable:case F.localVariable:return g.languages.CompletionItemKind.Variable;case F.memberVariable:case F.memberGetAccessor:case F.memberSetAccessor:return g.languages.CompletionItemKind.Field;case F.function:case F.memberFunction:case F.constructSignature:case F.callSignature:case F.indexSignature:return g.languages.CompletionItemKind.Function;case F.enum:return g.languages.CompletionItemKind.Enum;case F.module:return g.languages.CompletionItemKind.Module;case F.class:return g.languages.CompletionItemKind.Class;case F.interface:return g.languages.CompletionItemKind.Interface;case F.warning:return g.languages.CompletionItemKind.File}return g.languages.CompletionItemKind.Property}static createDocumentationString(e){let t=b(e.documentation);if(e.tags)for(const i of e.tags)t+=`\n\n${S(i)}`;return t}};function S(e){let t=`*@${e.name}*`;if("param"===e.name&&e.text){const[i,...s]=e.text;t+=`\`${i.text}\``,s.length>0&&(t+=` \u2014 ${s.map((e=>e.text)).join(" ")}`)}else Array.isArray(e.text)?t+=` \u2014 ${e.text.map((e=>e.text)).join(" ")}`:e.text&&(t+=` \u2014 ${e.text}`);return t}var x=class e extends f{constructor(){super(...arguments),this.signatureHelpTriggerCharacters=["(",","]}static _toSignatureHelpTriggerReason(e){switch(e.triggerKind){case g.languages.SignatureHelpTriggerKind.TriggerCharacter:return e.triggerCharacter?e.isRetrigger?{kind:"retrigger",triggerCharacter:e.triggerCharacter}:{kind:"characterTyped",triggerCharacter:e.triggerCharacter}:{kind:"invoked"};case g.languages.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case g.languages.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}}async provideSignatureHelp(t,i,s,r){const n=t.uri,a=t.getOffsetAt(i),o=await this._worker(n);if(t.isDisposed())return;const l=await o.getSignatureHelpItems(n.toString(),a,{triggerReason:e._toSignatureHelpTriggerReason(r)});if(!l||t.isDisposed())return;const c={activeSignature:l.selectedItemIndex,activeParameter:l.argumentIndex,signatures:[]};return l.items.forEach((e=>{const t={label:"",parameters:[]};t.documentation={value:b(e.documentation)},t.label+=b(e.prefixDisplayParts),e.parameters.forEach(((i,s,r)=>{const n=b(i.displayParts),a={label:n,documentation:{value:b(i.documentation)}};t.label+=n,t.parameters.push(a),s<r.length-1&&(t.label+=b(e.separatorDisplayParts))})),t.label+=b(e.suffixDisplayParts),c.signatures.push(t)})),{value:c,dispose(){}}}},k=class extends f{async provideHover(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getQuickInfoAtPosition(s.toString(),r);if(!a||e.isDisposed())return;const o=b(a.documentation),l=a.tags?a.tags.map((e=>S(e))).join(" \n\n"):"",c=b(a.displayParts);return{range:this._textSpanToRange(e,a.textSpan),contents:[{value:"```typescript\n"+c+"\n```\n"},{value:o+(l?"\n\n"+l:"")}]}}},v=class extends f{async provideDocumentHighlights(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getDocumentHighlights(s.toString(),r,[s.toString()]);return a&&!e.isDisposed()?a.flatMap((t=>t.highlightSpans.map((t=>({range:this._textSpanToRange(e,t.textSpan),kind:"writtenReference"===t.kind?g.languages.DocumentHighlightKind.Write:g.languages.DocumentHighlightKind.Text}))))):void 0}},C=class extends f{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getDefinitionAtPosition(s.toString(),r);if(!a||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(a.map((e=>g.Uri.parse(e.fileName)))),e.isDisposed())return;const o=[];for(let l of a){const e=this._libFiles.getOrCreateModel(l.fileName);e&&o.push({uri:e.uri,range:this._textSpanToRange(e,l.textSpan)})}return o}},D=class extends f{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,i,s){const r=e.uri,n=e.getOffsetAt(t),a=await this._worker(r);if(e.isDisposed())return;const o=await a.getReferencesAtPosition(r.toString(),n);if(!o||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(o.map((e=>g.Uri.parse(e.fileName)))),e.isDisposed())return;const l=[];for(let c of o){const e=this._libFiles.getOrCreateModel(c.fileName);e&&l.push({uri:e.uri,range:this._textSpanToRange(e,c.textSpan)})}return l}},A=class extends f{async provideDocumentSymbols(e,t){const i=e.uri,s=await this._worker(i);if(e.isDisposed())return;const r=await s.getNavigationTree(i.toString());if(!r||e.isDisposed())return;const n=(t,i)=>({name:t.text,detail:"",kind:I[t.kind]||g.languages.SymbolKind.Variable,range:this._textSpanToRange(e,t.spans[0]),selectionRange:this._textSpanToRange(e,t.spans[0]),tags:[],children:t.childItems?.map((e=>n(e,t.text))),containerName:i});return r.childItems?r.childItems.map((e=>n(e))):[]}},F=class{static{this.unknown=""}static{this.keyword="keyword"}static{this.script="script"}static{this.module="module"}static{this.class="class"}static{this.interface="interface"}static{this.type="type"}static{this.enum="enum"}static{this.variable="var"}static{this.localVariable="local var"}static{this.function="function"}static{this.localFunction="local function"}static{this.memberFunction="method"}static{this.memberGetAccessor="getter"}static{this.memberSetAccessor="setter"}static{this.memberVariable="property"}static{this.constructorImplementation="constructor"}static{this.callSignature="call"}static{this.indexSignature="index"}static{this.constructSignature="construct"}static{this.parameter="parameter"}static{this.typeParameter="type parameter"}static{this.primitiveType="primitive type"}static{this.label="label"}static{this.alias="alias"}static{this.const="const"}static{this.let="let"}static{this.warning="warning"}},I=Object.create(null);I[F.module]=g.languages.SymbolKind.Module,I[F.class]=g.languages.SymbolKind.Class,I[F.enum]=g.languages.SymbolKind.Enum,I[F.interface]=g.languages.SymbolKind.Interface,I[F.memberFunction]=g.languages.SymbolKind.Method,I[F.memberVariable]=g.languages.SymbolKind.Property,I[F.memberGetAccessor]=g.languages.SymbolKind.Property,I[F.memberSetAccessor]=g.languages.SymbolKind.Property,I[F.variable]=g.languages.SymbolKind.Variable,I[F.const]=g.languages.SymbolKind.Variable,I[F.localVariable]=g.languages.SymbolKind.Variable,I[F.variable]=g.languages.SymbolKind.Variable,I[F.function]=g.languages.SymbolKind.Function,I[F.localFunction]=g.languages.SymbolKind.Function;var T,P,L=class extends f{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:"\n",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)}}},O=class extends L{constructor(){super(...arguments),this.canFormatMultipleRanges=!1}async provideDocumentRangeFormattingEdits(e,t,i,s){const r=e.uri,n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=await this._worker(r);if(e.isDisposed())return;const l=await o.getFormattingEditsForRange(r.toString(),n,a,L._convertOptions(i));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},N=class extends L{get autoFormatTriggerCharacters(){return[";","}","\n"]}async provideOnTypeFormattingEdits(e,t,i,s,r){const n=e.uri,a=e.getOffsetAt(t),o=await this._worker(n);if(e.isDisposed())return;const l=await o.getFormattingEditsAfterKeystroke(n.toString(),a,i,L._convertOptions(s));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},M=class extends L{async provideCodeActions(e,t,i,s){const r=e.uri,n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=L._convertOptions(e.getOptions()),l=i.markers.filter((e=>e.code)).map((e=>e.code)).map(Number),c=await this._worker(r);if(e.isDisposed())return;const d=await c.getCodeFixesAtPosition(r.toString(),n,a,l,o);if(!d||e.isDisposed())return{actions:[],dispose:()=>{}};return{actions:d.filter((e=>0===e.changes.filter((e=>e.isNewFile)).length)).map((t=>this._tsCodeFixActionToMonacoCodeAction(e,i,t))),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,i){const s=[];for(const r of i.changes)for(const t of r.textChanges)s.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,t.span),text:t.newText}});return{title:i.description,edit:{edits:s},diagnostics:t.markers,kind:"quickfix"}}},K=class extends f{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,i,s){const r=e.uri,n=r.toString(),a=e.getOffsetAt(t),o=await this._worker(r);if(e.isDisposed())return;const l=await o.getRenameInfo(n,a,{allowRenameOfImportPath:!1});if(!1===l.canRename)return{edits:[],rejectReason:l.localizedErrorMessage};if(void 0!==l.fileToRename)throw new Error("Renaming files is not supported.");const c=await o.findRenameLocations(n,a,!1,!1,!1);if(!c||e.isDisposed())return;const d=[];for(const u of c){const e=this._libFiles.getOrCreateModel(u.fileName);if(!e)throw new Error(`Unknown file ${u.fileName}.`);d.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,u.textSpan),text:i}})}return{edits:d}}},R=class extends f{async provideInlayHints(e,t,i){const s=e.uri,r=s.toString(),n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=await this._worker(s);if(e.isDisposed())return null;return{hints:(await o.provideInlayHints(r,n,a)).map((t=>({...t,label:t.text,position:e.getPositionAt(t.position),kind:this._convertHintKind(t.kind)}))),dispose:()=>{}}}_convertHintKind(e){return"Parameter"===e?g.languages.InlayHintKind.Parameter:g.languages.InlayHintKind.Type}};function E(e){P=W(e,"typescript")}function H(e){T=W(e,"javascript")}function V(){return new Promise(((e,t)=>{if(!T)return t("JavaScript not registered!");e(T)}))}function j(){return new Promise(((e,t)=>{if(!P)return t("TypeScript not registered!");e(P)}))}function W(e,t){const i=[],s=[],r=new p(t,e);i.push(r);const n=(...e)=>r.getLanguageServiceWorker(...e),a=new y(n);return function(){const{modeConfiguration:i}=e;B(s),i.completionItems&&s.push(g.languages.registerCompletionItemProvider(t,new w(n))),i.signatureHelp&&s.push(g.languages.registerSignatureHelpProvider(t,new x(n))),i.hovers&&s.push(g.languages.registerHoverProvider(t,new k(n))),i.documentHighlights&&s.push(g.languages.registerDocumentHighlightProvider(t,new v(n))),i.definitions&&s.push(g.languages.registerDefinitionProvider(t,new C(a,n))),i.references&&s.push(g.languages.registerReferenceProvider(t,new D(a,n))),i.documentSymbols&&s.push(g.languages.registerDocumentSymbolProvider(t,new A(n))),i.rename&&s.push(g.languages.registerRenameProvider(t,new K(a,n))),i.documentRangeFormattingEdits&&s.push(g.languages.registerDocumentRangeFormattingEditProvider(t,new O(n))),i.onTypeFormattingEdits&&s.push(g.languages.registerOnTypeFormattingEditProvider(t,new N(n))),i.codeActions&&s.push(g.languages.registerCodeActionProvider(t,new M(n))),i.inlayHints&&s.push(g.languages.registerInlayHintsProvider(t,new R(n))),i.diagnostics&&s.push(new _(a,e,t,n))}(),i.push(function(e){return{dispose:()=>B(e)}}(s)),n}function B(e){for(;e.length;)e.pop().dispose()}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8979.d6e940f4.chunk.js b/ydb/core/viewer/monitoring/static/js/8979.d6e940f4.chunk.js deleted file mode 100644 index bff5a2a2c4f..00000000000 --- a/ydb/core/viewer/monitoring/static/js/8979.d6e940f4.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8979],{78979:(e,t,i)=>{i.r(t),i.d(t,{Adapter:()=>f,CodeActionAdaptor:()=>M,DefinitionAdapter:()=>C,DiagnosticsAdapter:()=>y,DocumentHighlightAdapter:()=>v,FormatAdapter:()=>O,FormatHelper:()=>L,FormatOnTypeAdapter:()=>N,InlayHintsAdapter:()=>R,Kind:()=>F,LibFiles:()=>_,OutlineAdapter:()=>A,QuickInfoAdapter:()=>x,ReferenceAdapter:()=>D,RenameAdapter:()=>K,SignatureHelpAdapter:()=>k,SuggestAdapter:()=>w,WorkerManager:()=>p,flattenDiagnosticMessageText:()=>h,getJavaScriptWorker:()=>V,getTypeScriptWorker:()=>W,setupJavaScript:()=>H,setupTypeScript:()=>E});var s,r,n=i(32858),a=i(24152),o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,u=(e,t,i,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of c(t))d.call(e,r)||r===i||o(e,r,{get:()=>t[r],enumerable:!(s=l(t,r))||s.enumerable});return e},g={};u(g,s=n,"default"),r&&u(r,s,"default");var p=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()))}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=g.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(g.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}},m={};function h(e,t,i=0){if("string"===typeof e)return e;if(void 0===e)return"";let s="";if(i){s+=t;for(let e=0;e<i;e++)s+=" "}if(s+=e.messageText,i++,e.next)for(const r of e.next)s+=h(r,t,i);return s}function b(e){return e?e.map((e=>e.text)).join(""):""}m["lib.d.ts"]=!0,m["lib.decorators.d.ts"]=!0,m["lib.decorators.legacy.d.ts"]=!0,m["lib.dom.d.ts"]=!0,m["lib.dom.iterable.d.ts"]=!0,m["lib.es2015.collection.d.ts"]=!0,m["lib.es2015.core.d.ts"]=!0,m["lib.es2015.d.ts"]=!0,m["lib.es2015.generator.d.ts"]=!0,m["lib.es2015.iterable.d.ts"]=!0,m["lib.es2015.promise.d.ts"]=!0,m["lib.es2015.proxy.d.ts"]=!0,m["lib.es2015.reflect.d.ts"]=!0,m["lib.es2015.symbol.d.ts"]=!0,m["lib.es2015.symbol.wellknown.d.ts"]=!0,m["lib.es2016.array.include.d.ts"]=!0,m["lib.es2016.d.ts"]=!0,m["lib.es2016.full.d.ts"]=!0,m["lib.es2017.d.ts"]=!0,m["lib.es2017.full.d.ts"]=!0,m["lib.es2017.intl.d.ts"]=!0,m["lib.es2017.object.d.ts"]=!0,m["lib.es2017.sharedmemory.d.ts"]=!0,m["lib.es2017.string.d.ts"]=!0,m["lib.es2017.typedarrays.d.ts"]=!0,m["lib.es2018.asyncgenerator.d.ts"]=!0,m["lib.es2018.asynciterable.d.ts"]=!0,m["lib.es2018.d.ts"]=!0,m["lib.es2018.full.d.ts"]=!0,m["lib.es2018.intl.d.ts"]=!0,m["lib.es2018.promise.d.ts"]=!0,m["lib.es2018.regexp.d.ts"]=!0,m["lib.es2019.array.d.ts"]=!0,m["lib.es2019.d.ts"]=!0,m["lib.es2019.full.d.ts"]=!0,m["lib.es2019.intl.d.ts"]=!0,m["lib.es2019.object.d.ts"]=!0,m["lib.es2019.string.d.ts"]=!0,m["lib.es2019.symbol.d.ts"]=!0,m["lib.es2020.bigint.d.ts"]=!0,m["lib.es2020.d.ts"]=!0,m["lib.es2020.date.d.ts"]=!0,m["lib.es2020.full.d.ts"]=!0,m["lib.es2020.intl.d.ts"]=!0,m["lib.es2020.number.d.ts"]=!0,m["lib.es2020.promise.d.ts"]=!0,m["lib.es2020.sharedmemory.d.ts"]=!0,m["lib.es2020.string.d.ts"]=!0,m["lib.es2020.symbol.wellknown.d.ts"]=!0,m["lib.es2021.d.ts"]=!0,m["lib.es2021.full.d.ts"]=!0,m["lib.es2021.intl.d.ts"]=!0,m["lib.es2021.promise.d.ts"]=!0,m["lib.es2021.string.d.ts"]=!0,m["lib.es2021.weakref.d.ts"]=!0,m["lib.es2022.array.d.ts"]=!0,m["lib.es2022.d.ts"]=!0,m["lib.es2022.error.d.ts"]=!0,m["lib.es2022.full.d.ts"]=!0,m["lib.es2022.intl.d.ts"]=!0,m["lib.es2022.object.d.ts"]=!0,m["lib.es2022.regexp.d.ts"]=!0,m["lib.es2022.sharedmemory.d.ts"]=!0,m["lib.es2022.string.d.ts"]=!0,m["lib.es2023.array.d.ts"]=!0,m["lib.es2023.d.ts"]=!0,m["lib.es2023.full.d.ts"]=!0,m["lib.es5.d.ts"]=!0,m["lib.es6.d.ts"]=!0,m["lib.esnext.d.ts"]=!0,m["lib.esnext.full.d.ts"]=!0,m["lib.esnext.intl.d.ts"]=!0,m["lib.scripthost.d.ts"]=!0,m["lib.webworker.d.ts"]=!0,m["lib.webworker.importscripts.d.ts"]=!0,m["lib.webworker.iterable.d.ts"]=!0;var f=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let i=e.getPositionAt(t.start),s=e.getPositionAt(t.start+t.length),{lineNumber:r,column:n}=i,{lineNumber:a,column:o}=s;return{startLineNumber:r,startColumn:n,endLineNumber:a,endColumn:o}}},_=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return!!e&&(0===e.path.indexOf("/lib.")&&!!m[e.path.slice(1)])}getOrCreateModel(e){const t=g.Uri.parse(e),i=g.editor.getModel(t);if(i)return i;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return g.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const s=a.IF.getExtraLibs()[e];return s?g.editor.createModel(s.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}},y=class extends f{constructor(e,t,i,s){super(s),this._libFiles=e,this._defaults=t,this._selector=i,this._disposables=[],this._listener=Object.create(null);const r=e=>{if(e.getLanguageId()!==i)return;const t=()=>{const{onlyVisible:t}=this._defaults.getDiagnosticsOptions();t?e.isAttachedToEditor()&&this._doValidate(e):this._doValidate(e)};let s;const r=e.onDidChangeContent((()=>{clearTimeout(s),s=window.setTimeout(t,500)})),n=e.onDidChangeAttached((()=>{const{onlyVisible:i}=this._defaults.getDiagnosticsOptions();i&&(e.isAttachedToEditor()?t():g.editor.setModelMarkers(e,this._selector,[]))}));this._listener[e.uri.toString()]={dispose(){r.dispose(),n.dispose(),clearTimeout(s)}},t()},n=e=>{g.editor.setModelMarkers(e,this._selector,[]);const t=e.uri.toString();this._listener[t]&&(this._listener[t].dispose(),delete this._listener[t])};this._disposables.push(g.editor.onDidCreateModel((e=>r(e)))),this._disposables.push(g.editor.onWillDisposeModel(n)),this._disposables.push(g.editor.onDidChangeModelLanguage((e=>{n(e.model),r(e.model)}))),this._disposables.push({dispose(){for(const e of g.editor.getModels())n(e)}});const a=()=>{for(const e of g.editor.getModels())n(e),r(e)};this._disposables.push(this._defaults.onDidChange(a)),this._disposables.push(this._defaults.onDidExtraLibsChange(a)),g.editor.getModels().forEach((e=>r(e)))}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 i=[],{noSyntaxValidation:s,noSemanticValidation:r,noSuggestionDiagnostics:n}=this._defaults.getDiagnosticsOptions();s||i.push(t.getSyntacticDiagnostics(e.uri.toString())),r||i.push(t.getSemanticDiagnostics(e.uri.toString())),n||i.push(t.getSuggestionDiagnostics(e.uri.toString()));const a=await Promise.all(i);if(!a||e.isDisposed())return;const o=a.reduce(((e,t)=>t.concat(e)),[]).filter((e=>-1===(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(e.code))),l=o.map((e=>e.relatedInformation||[])).reduce(((e,t)=>t.concat(e)),[]).map((e=>e.file?g.Uri.parse(e.file.fileName):null));await this._libFiles.fetchLibFilesIfNecessary(l),e.isDisposed()||g.editor.setModelMarkers(e,this._selector,o.map((t=>this._convertDiagnostics(e,t))))}_convertDiagnostics(e,t){const i=t.start||0,s=t.length||1,{lineNumber:r,column:n}=e.getPositionAt(i),{lineNumber:a,column:o}=e.getPositionAt(i+s),l=[];return t.reportsUnnecessary&&l.push(g.MarkerTag.Unnecessary),t.reportsDeprecated&&l.push(g.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:r,startColumn:n,endLineNumber:a,endColumn:o,message:h(t.messageText,"\n"),code:t.code.toString(),tags:l,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const i=[];return t.forEach((t=>{let s=e;if(t.file&&(s=this._libFiles.getOrCreateModel(t.file.fileName)),!s)return;const r=t.start||0,n=t.length||1,{lineNumber:a,column:o}=s.getPositionAt(r),{lineNumber:l,column:c}=s.getPositionAt(r+n);i.push({resource:s.uri,startLineNumber:a,startColumn:o,endLineNumber:l,endColumn:c,message:h(t.messageText,"\n")})})),i}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return g.MarkerSeverity.Error;case 3:return g.MarkerSeverity.Info;case 0:return g.MarkerSeverity.Warning;case 2:return g.MarkerSeverity.Hint}return g.MarkerSeverity.Info}},w=class e extends f{get triggerCharacters(){return["."]}async provideCompletionItems(t,i,s,r){const n=t.getWordUntilPosition(i),a=new g.Range(i.lineNumber,n.startColumn,i.lineNumber,n.endColumn),o=t.uri,l=t.getOffsetAt(i),c=await this._worker(o);if(t.isDisposed())return;const d=await c.getCompletionsAtPosition(o.toString(),l);if(!d||t.isDisposed())return;return{suggestions:d.entries.map((s=>{let r=a;if(s.replacementSpan){const e=t.getPositionAt(s.replacementSpan.start),i=t.getPositionAt(s.replacementSpan.start+s.replacementSpan.length);r=new g.Range(e.lineNumber,e.column,i.lineNumber,i.column)}const n=[];return void 0!==s.kindModifiers&&-1!==s.kindModifiers.indexOf("deprecated")&&n.push(g.languages.CompletionItemTag.Deprecated),{uri:o,position:i,offset:l,range:r,label:s.name,insertText:s.name,sortText:s.sortText,kind:e.convertKind(s.kind),tags:n}}))}}async resolveCompletionItem(t,i){const s=t,r=s.uri,n=s.position,a=s.offset,o=await this._worker(r),l=await o.getCompletionEntryDetails(r.toString(),a,s.label);return l?{uri:r,position:n,label:l.name,kind:e.convertKind(l.kind),detail:b(l.displayParts),documentation:{value:e.createDocumentationString(l)}}:s}static convertKind(e){switch(e){case F.primitiveType:case F.keyword:return g.languages.CompletionItemKind.Keyword;case F.variable:case F.localVariable:return g.languages.CompletionItemKind.Variable;case F.memberVariable:case F.memberGetAccessor:case F.memberSetAccessor:return g.languages.CompletionItemKind.Field;case F.function:case F.memberFunction:case F.constructSignature:case F.callSignature:case F.indexSignature:return g.languages.CompletionItemKind.Function;case F.enum:return g.languages.CompletionItemKind.Enum;case F.module:return g.languages.CompletionItemKind.Module;case F.class:return g.languages.CompletionItemKind.Class;case F.interface:return g.languages.CompletionItemKind.Interface;case F.warning:return g.languages.CompletionItemKind.File}return g.languages.CompletionItemKind.Property}static createDocumentationString(e){let t=b(e.documentation);if(e.tags)for(const i of e.tags)t+=`\n\n${S(i)}`;return t}};function S(e){let t=`*@${e.name}*`;if("param"===e.name&&e.text){const[i,...s]=e.text;t+=`\`${i.text}\``,s.length>0&&(t+=` \u2014 ${s.map((e=>e.text)).join(" ")}`)}else Array.isArray(e.text)?t+=` \u2014 ${e.text.map((e=>e.text)).join(" ")}`:e.text&&(t+=` \u2014 ${e.text}`);return t}var k=class e extends f{constructor(){super(...arguments),this.signatureHelpTriggerCharacters=["(",","]}static _toSignatureHelpTriggerReason(e){switch(e.triggerKind){case g.languages.SignatureHelpTriggerKind.TriggerCharacter:return e.triggerCharacter?e.isRetrigger?{kind:"retrigger",triggerCharacter:e.triggerCharacter}:{kind:"characterTyped",triggerCharacter:e.triggerCharacter}:{kind:"invoked"};case g.languages.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case g.languages.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}}async provideSignatureHelp(t,i,s,r){const n=t.uri,a=t.getOffsetAt(i),o=await this._worker(n);if(t.isDisposed())return;const l=await o.getSignatureHelpItems(n.toString(),a,{triggerReason:e._toSignatureHelpTriggerReason(r)});if(!l||t.isDisposed())return;const c={activeSignature:l.selectedItemIndex,activeParameter:l.argumentIndex,signatures:[]};return l.items.forEach((e=>{const t={label:"",parameters:[]};t.documentation={value:b(e.documentation)},t.label+=b(e.prefixDisplayParts),e.parameters.forEach(((i,s,r)=>{const n=b(i.displayParts),a={label:n,documentation:{value:b(i.documentation)}};t.label+=n,t.parameters.push(a),s<r.length-1&&(t.label+=b(e.separatorDisplayParts))})),t.label+=b(e.suffixDisplayParts),c.signatures.push(t)})),{value:c,dispose(){}}}},x=class extends f{async provideHover(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getQuickInfoAtPosition(s.toString(),r);if(!a||e.isDisposed())return;const o=b(a.documentation),l=a.tags?a.tags.map((e=>S(e))).join(" \n\n"):"",c=b(a.displayParts);return{range:this._textSpanToRange(e,a.textSpan),contents:[{value:"```typescript\n"+c+"\n```\n"},{value:o+(l?"\n\n"+l:"")}]}}},v=class extends f{async provideDocumentHighlights(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getDocumentHighlights(s.toString(),r,[s.toString()]);return a&&!e.isDisposed()?a.flatMap((t=>t.highlightSpans.map((t=>({range:this._textSpanToRange(e,t.textSpan),kind:"writtenReference"===t.kind?g.languages.DocumentHighlightKind.Write:g.languages.DocumentHighlightKind.Text}))))):void 0}},C=class extends f{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getDefinitionAtPosition(s.toString(),r);if(!a||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(a.map((e=>g.Uri.parse(e.fileName)))),e.isDisposed())return;const o=[];for(let l of a){const e=this._libFiles.getOrCreateModel(l.fileName);e&&o.push({uri:e.uri,range:this._textSpanToRange(e,l.textSpan)})}return o}},D=class extends f{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,i,s){const r=e.uri,n=e.getOffsetAt(t),a=await this._worker(r);if(e.isDisposed())return;const o=await a.getReferencesAtPosition(r.toString(),n);if(!o||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(o.map((e=>g.Uri.parse(e.fileName)))),e.isDisposed())return;const l=[];for(let c of o){const e=this._libFiles.getOrCreateModel(c.fileName);e&&l.push({uri:e.uri,range:this._textSpanToRange(e,c.textSpan)})}return l}},A=class extends f{async provideDocumentSymbols(e,t){const i=e.uri,s=await this._worker(i);if(e.isDisposed())return;const r=await s.getNavigationTree(i.toString());if(!r||e.isDisposed())return;const n=(t,i)=>({name:t.text,detail:"",kind:I[t.kind]||g.languages.SymbolKind.Variable,range:this._textSpanToRange(e,t.spans[0]),selectionRange:this._textSpanToRange(e,t.spans[0]),tags:[],children:t.childItems?.map((e=>n(e,t.text))),containerName:i});return r.childItems?r.childItems.map((e=>n(e))):[]}},F=class{static#e=this.unknown="";static#t=this.keyword="keyword";static#i=this.script="script";static#s=this.module="module";static#r=this.class="class";static#n=this.interface="interface";static#a=this.type="type";static#o=this.enum="enum";static#l=this.variable="var";static#c=this.localVariable="local var";static#d=this.function="function";static#u=this.localFunction="local function";static#g=this.memberFunction="method";static#p=this.memberGetAccessor="getter";static#m=this.memberSetAccessor="setter";static#h=this.memberVariable="property";static#b=this.constructorImplementation="constructor";static#f=this.callSignature="call";static#_=this.indexSignature="index";static#y=this.constructSignature="construct";static#w=this.parameter="parameter";static#S=this.typeParameter="type parameter";static#k=this.primitiveType="primitive type";static#x=this.label="label";static#v=this.alias="alias";static#C=this.const="const";static#D=this.let="let";static#A=this.warning="warning"},I=Object.create(null);I[F.module]=g.languages.SymbolKind.Module,I[F.class]=g.languages.SymbolKind.Class,I[F.enum]=g.languages.SymbolKind.Enum,I[F.interface]=g.languages.SymbolKind.Interface,I[F.memberFunction]=g.languages.SymbolKind.Method,I[F.memberVariable]=g.languages.SymbolKind.Property,I[F.memberGetAccessor]=g.languages.SymbolKind.Property,I[F.memberSetAccessor]=g.languages.SymbolKind.Property,I[F.variable]=g.languages.SymbolKind.Variable,I[F.const]=g.languages.SymbolKind.Variable,I[F.localVariable]=g.languages.SymbolKind.Variable,I[F.variable]=g.languages.SymbolKind.Variable,I[F.function]=g.languages.SymbolKind.Function,I[F.localFunction]=g.languages.SymbolKind.Function;var T,P,L=class extends f{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:"\n",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)}}},O=class extends L{constructor(){super(...arguments),this.canFormatMultipleRanges=!1}async provideDocumentRangeFormattingEdits(e,t,i,s){const r=e.uri,n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=await this._worker(r);if(e.isDisposed())return;const l=await o.getFormattingEditsForRange(r.toString(),n,a,L._convertOptions(i));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},N=class extends L{get autoFormatTriggerCharacters(){return[";","}","\n"]}async provideOnTypeFormattingEdits(e,t,i,s,r){const n=e.uri,a=e.getOffsetAt(t),o=await this._worker(n);if(e.isDisposed())return;const l=await o.getFormattingEditsAfterKeystroke(n.toString(),a,i,L._convertOptions(s));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},M=class extends L{async provideCodeActions(e,t,i,s){const r=e.uri,n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=L._convertOptions(e.getOptions()),l=i.markers.filter((e=>e.code)).map((e=>e.code)).map(Number),c=await this._worker(r);if(e.isDisposed())return;const d=await c.getCodeFixesAtPosition(r.toString(),n,a,l,o);if(!d||e.isDisposed())return{actions:[],dispose:()=>{}};return{actions:d.filter((e=>0===e.changes.filter((e=>e.isNewFile)).length)).map((t=>this._tsCodeFixActionToMonacoCodeAction(e,i,t))),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,i){const s=[];for(const r of i.changes)for(const t of r.textChanges)s.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,t.span),text:t.newText}});return{title:i.description,edit:{edits:s},diagnostics:t.markers,kind:"quickfix"}}},K=class extends f{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,i,s){const r=e.uri,n=r.toString(),a=e.getOffsetAt(t),o=await this._worker(r);if(e.isDisposed())return;const l=await o.getRenameInfo(n,a,{allowRenameOfImportPath:!1});if(!1===l.canRename)return{edits:[],rejectReason:l.localizedErrorMessage};if(void 0!==l.fileToRename)throw new Error("Renaming files is not supported.");const c=await o.findRenameLocations(n,a,!1,!1,!1);if(!c||e.isDisposed())return;const d=[];for(const u of c){const e=this._libFiles.getOrCreateModel(u.fileName);if(!e)throw new Error(`Unknown file ${u.fileName}.`);d.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,u.textSpan),text:i}})}return{edits:d}}},R=class extends f{async provideInlayHints(e,t,i){const s=e.uri,r=s.toString(),n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=await this._worker(s);if(e.isDisposed())return null;return{hints:(await o.provideInlayHints(r,n,a)).map((t=>({...t,label:t.text,position:e.getPositionAt(t.position),kind:this._convertHintKind(t.kind)}))),dispose:()=>{}}}_convertHintKind(e){return"Parameter"===e?g.languages.InlayHintKind.Parameter:g.languages.InlayHintKind.Type}};function E(e){P=j(e,"typescript")}function H(e){T=j(e,"javascript")}function V(){return new Promise(((e,t)=>{if(!T)return t("JavaScript not registered!");e(T)}))}function W(){return new Promise(((e,t)=>{if(!P)return t("TypeScript not registered!");e(P)}))}function j(e,t){const i=[],s=[],r=new p(t,e);i.push(r);const n=(...e)=>r.getLanguageServiceWorker(...e),a=new _(n);return function(){const{modeConfiguration:i}=e;B(s),i.completionItems&&s.push(g.languages.registerCompletionItemProvider(t,new w(n))),i.signatureHelp&&s.push(g.languages.registerSignatureHelpProvider(t,new k(n))),i.hovers&&s.push(g.languages.registerHoverProvider(t,new x(n))),i.documentHighlights&&s.push(g.languages.registerDocumentHighlightProvider(t,new v(n))),i.definitions&&s.push(g.languages.registerDefinitionProvider(t,new C(a,n))),i.references&&s.push(g.languages.registerReferenceProvider(t,new D(a,n))),i.documentSymbols&&s.push(g.languages.registerDocumentSymbolProvider(t,new A(n))),i.rename&&s.push(g.languages.registerRenameProvider(t,new K(a,n))),i.documentRangeFormattingEdits&&s.push(g.languages.registerDocumentRangeFormattingEditProvider(t,new O(n))),i.onTypeFormattingEdits&&s.push(g.languages.registerOnTypeFormattingEditProvider(t,new N(n))),i.codeActions&&s.push(g.languages.registerCodeActionProvider(t,new M(n))),i.inlayHints&&s.push(g.languages.registerInlayHintsProvider(t,new R(n))),i.diagnostics&&s.push(new y(a,e,t,n))}(),i.push(function(e){return{dispose:()=>B(e)}}(s)),n}function B(e){for(;e.length;)e.pop().dispose()}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8986.5e9e2b69.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/8986.5e9e2b69.chunk.js.LICENSE.txt deleted file mode 100644 index a62733317c0..00000000000 --- a/ydb/core/viewer/monitoring/static/js/8986.5e9e2b69.chunk.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/8986.5e9e2b69.chunk.js b/ydb/core/viewer/monitoring/static/js/8986.de287636.chunk.js index 57865688f6d..7c525b529d0 100644 --- a/ydb/core/viewer/monitoring/static/js/8986.5e9e2b69.chunk.js +++ b/ydb/core/viewer/monitoring/static/js/8986.de287636.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 8986.5e9e2b69.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8986],{58986:(e,t,r)=>{r.r(t),r.d(t,{conf:()=>h,language:()=>u});var o,i,n=r(32858),a=Object.defineProperty,m=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,l=(e,t,r,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))c.call(e,i)||i===r||a(e,i,{get:()=>t[i],enumerable:!(o=m(t,i))||o.enumerable});return e},d={};l(d,o=n,"default"),i&&l(i,o,"default");var p=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:d.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:d.languages.IndentAction.Indent}}]},u={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}}]);
\ No newline at end of file +/*! For license information please see 8986.de287636.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[8986],{58986:(e,t,r)=>{r.r(t),r.d(t,{conf:()=>h,language:()=>u});var o,i,n=r(80781),a=Object.defineProperty,m=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,l=(e,t,r,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))c.call(e,i)||i===r||a(e,i,{get:()=>t[i],enumerable:!(o=m(t,i))||o.enumerable});return e},d={};l(d,o=n,"default"),i&&l(i,o,"default");var p=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],h={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:d.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${p.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:d.languages.IndentAction.Indent}}]},u={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/8986.de287636.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/8986.de287636.chunk.js.LICENSE.txt new file mode 100644 index 00000000000..34dc0256d74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/8986.de287636.chunk.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/9010.4bfaf5fa.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/9010.4bfaf5fa.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/9010.4bfaf5fa.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/9010.4bfaf5fa.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/902.a1b90b1b.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/902.a1b90b1b.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/902.a1b90b1b.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/902.a1b90b1b.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/9176.3f08336f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/9176.3f08336f.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/9176.3f08336f.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/9176.3f08336f.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/9300.277e4f3f.chunk.js b/ydb/core/viewer/monitoring/static/js/9300.277e4f3f.chunk.js new file mode 100644 index 00000000000..68a1d7c5d8e --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9300.277e4f3f.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9300],{2102:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(77506),o=r(60712);const l=(0,a.cn)("ydb-diagnostic-card");function n({children:e,className:t,active:r,size:a="m",interactive:n=!0}){return(0,o.jsx)("div",{className:l({active:r,size:a,interactive:n},t),children:e})}},28539:(e,t,r)=>{r.d(t,{T:()=>a.T});var a=r(53755)},9252:(e,t,r)=>{r.d(t,{k:()=>n});var a=r(44433),o=r(88610),l=r(60712);const n=({value:e,onChange:t,className:r})=>(0,l.jsxs)(a.a,{value:e,onUpdate:t,className:r,children:[(0,l.jsx)(a.a.Option,{value:o.s$.ALL,children:o.s$.ALL}),(0,l.jsx)(a.a.Option,{value:o.s$.PROBLEMS,children:o.s$.PROBLEMS})]})},95963:(e,t,r)=>{r.d(t,{v:()=>a.v});var a=r(41775)},7117:(e,t,r)=>{r.d(t,{G:()=>Z});var a=r(59284),o=r(44508),l=r(98167),n=r(89073),s=r(86782),i=r(67028),u=r(15298),d=r(90182),p=r(88610);function c(){const e=(0,d.YQ)();return{problemFilter:(0,d.N4)(p.yV),handleProblemFilterChange:t=>{e((0,p.$u)(t))}}}var m=r(43951),h=r(78034),g=r(71708),y=r(62710),b=r(98089),f=r(69775),C=r(24555),v=r(28539),F=r(9252),N=r(95963),R=r(64934),x=r(44433),P=r(48372);const j=JSON.parse('{"nodes":"Nodes","empty.default":"No such nodes","no-nodes-groups":"No nodes groups","controls_search-placeholder":"Host name","controls_group-by-placeholder":"Group by:","controls_peer-role-label":"Peer role:","database":"database","static":"static","other":"other","any":"any"}'),S=(0,P.g4)("ydb-nodes",{en:j}),w=["database","static","other","any"],B={get database(){return S("database")},get static(){return S("static")},get other(){return S("other")},get any(){return S("any")}};var G=r(60712);function T({value:e="database",onChange:t}){return(0,G.jsx)(x.a,{value:e,onUpdate:t,children:w.map((e=>(0,G.jsx)(x.a.Option,{value:e,children:B[e]},e)))})}const I="nodesTableSelectedColumns",_=["NodeId","Host","Uptime","CPU","RAM","Version","Tablets"],E=["NodeId"],U=["SystemState","Host","DC","Rack","Database","Version","Uptime"];function A(e,t){return t?e:e.filter((e=>"SystemState"!==e))}var L=r(59109);const V=(0,r(77506).cn)("ydb-nodes"),k=e=>V("node",{unavailable:(0,h.X7)(e)}),O=e=>e&&403===e.status?(0,G.jsx)(L.O,{position:"left"}):(0,G.jsx)(o.o,{error:e});var q=r(67087);function D(e){var t;const[r,a]=(0,q.useQueryParams)({uptimeFilter:q.StringParam,peerRole:q.StringParam,search:q.StringParam,nodesGroupBy:q.StringParam}),o=h.Bm.parse(r.uptimeFilter),l=null!==(t=r.search)&&void 0!==t?t:"",n=(s=r.peerRole,w.find((e=>e===s)));var s;const u=(0,i.DM)(),d=function(e,t,r){return A(t,r).find((t=>t===e))}(r.nodesGroupBy,null!==e&&void 0!==e?e:[],u);return{uptimeFilter:o,searchValue:l,peerRoleFilter:n,groupByParam:d,handleSearchQueryChange:e=>{a({search:e||void 0},"replaceIn")},handleUptimeFilterChange:e=>{a({uptimeFilter:e},"replaceIn")},handlePeerRoleFilterChange:e=>{a({peerRole:e},"replaceIn")},handleGroupByParamChange:e=>{a({nodesGroupBy:e},"replaceIn")}}}function K({withGroupBySelect:e,groupByParams:t=[],withPeerRoleFilter:r,columnsToSelect:o,handleSelectedColumnsUpdate:l,entitiesCountCurrent:n,entitiesCountTotal:u,entitiesLoading:d}){const{searchValue:p,uptimeFilter:m,peerRoleFilter:h,groupByParam:g,handleSearchQueryChange:y,handleUptimeFilterChange:x,handlePeerRoleFilterChange:P,handleGroupByParamChange:j}=D(t),{problemFilter:w,handleProblemFilterChange:B}=c(),I=(0,i.DM)(),_=function(e,t){return A(e,t).map((e=>({value:e,content:(0,s.kn)(e)})))}(t,I),E=(0,i.WF)(),U=r&&E;return(0,G.jsxs)(a.Fragment,{children:[(0,G.jsx)(N.v,{onChange:y,placeholder:S("controls_search-placeholder"),width:238,value:p}),I&&e?null:(0,G.jsx)(F.k,{value:w,onChange:B}),e?null:(0,G.jsx)(R.j,{value:m,onChange:x}),U?(0,G.jsxs)(a.Fragment,{children:[(0,G.jsx)(b.E,{variant:"body-2",children:S("controls_peer-role-label")}),(0,G.jsx)(T,{value:h,onChange:P})]}):null,(0,G.jsx)(f.O,{popupWidth:200,items:o,showStatus:!0,onUpdate:l,sortable:!1}),e?(0,G.jsxs)(a.Fragment,{children:[(0,G.jsx)(b.E,{variant:"body-2",children:S("controls_group-by-placeholder")}),(0,G.jsx)(C.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:g?[g]:void 0,onUpdate:e=>{j(e[0])},options:_,className:V("group-by-select"),popupClassName:V("group-by-popup")})]}):null,(0,G.jsx)(v.T,{current:n,total:u,label:S("nodes"),loading:d})]})}var M=r(78524),W=r(40427),Q=r(11906),$=r(69464),H=r(40781);const z=async e=>{const{type:t="any",storage:r=!1,tablets:a=!0,limit:o,offset:l,sortParams:n,filters:i,columnsIds:u}=e,{sortOrder:d,columnId:p}=null!==n&&void 0!==n?n:{},{path:c,database:m,searchValue:g,problemFilter:y,uptimeFilter:b,peerRoleFilter:f,filterGroup:C,filterGroupBy:v}=null!==i&&void 0!==i?i:{},F=(0,s.kU)(p),N=F?(0,$.T)(F,d):void 0,R=(0,H.R)(u,s.fN),x=await window.api.viewer.getNodes({type:t,storage:r,tablets:a,limit:o,offset:l,sort:N,path:c,database:m,filter:g,problems_only:(0,h.AB)(y),uptime:(0,h.Fo)(b),filter_peer_role:f,filter_group:C,filter_group_by:v,fieldsRequired:R}),P=(0,Q.N)(x);return{data:P.Nodes||[],found:P.FoundNodes||0,total:P.TotalNodes||0}};function X({path:e,database:t,searchValue:r,problemFilter:o,uptimeFilter:l,peerRoleFilter:n,filterGroup:i,filterGroupBy:u,columns:d,parentRef:p,renderControls:c,initialEntitiesCount:m}){const g=a.useMemo((()=>({path:e,database:t,searchValue:r,problemFilter:o,uptimeFilter:l,peerRoleFilter:n,filterGroup:i,filterGroupBy:u})),[e,t,r,o,l,n,i,u]);return(0,G.jsx)(W.k5,{columnsWidthLSKey:s.zO,parentRef:p,columns:d,fetchData:z,limit:50,initialEntitiesCount:m,renderControls:c,renderErrorMessage:O,renderEmptyDataMessage:()=>"All"!==o||l!==h.cW.All?(0,G.jsx)(M.v,{name:"thumbsUp",width:"200"}):S("empty.default"),getRowClassName:k,filters:g,tableName:"nodes"})}var Y=r(78762);function J(e){return[(0,Y._E)(),(0,Y.Nh)(e),(0,Y.eT)(),(0,Y.uk)(),(0,Y.OX)(),(0,Y.jl)(),(0,Y.fr)(),(0,Y.kv)(),(0,Y.pH)(),(0,Y.iX)(),(0,Y.ID)(),(0,Y.Rn)(),(0,Y.qp)(e)].map((e=>({...e,sortable:(0,s.sp)(e.name)})))}function Z({path:e,database:t,parentRef:r,additionalNodesProps:o,withPeerRoleFilter:n,columns:s=J({database:t,getNodeRef:null===o||void 0===o?void 0:o.getNodeRef}),defaultColumnsIds:u=_,requiredColumnsIds:d=E,selectedColumnsKey:p=I,groupByParams:m=U}){const{uptimeFilter:g,groupByParam:y,handleUptimeFilterChange:b}=D(m),{problemFilter:f,handleProblemFilterChange:C}=c(),v=(0,i.Pm)(),F=(0,i.Ye)();a.useEffect((()=>{!F||"All"===f&&g===h.cW.All||(C("All"),b(h.cW.All))}),[C,b,f,g,F]);return(0,G.jsx)(l.r,{loading:!v,children:F&&y?(0,G.jsx)(te,{path:e,database:t,parentRef:r,withPeerRoleFilter:n,columns:s,defaultColumnsIds:u,requiredColumnsIds:d,selectedColumnsKey:p,groupByParams:m}):(0,G.jsx)(ee,{path:e,database:t,parentRef:r,withPeerRoleFilter:n,columns:s,defaultColumnsIds:u,requiredColumnsIds:d,selectedColumnsKey:p,groupByParams:m})})}function ee({path:e,database:t,parentRef:r,withPeerRoleFilter:a,columns:o,defaultColumnsIds:l,requiredColumnsIds:n,selectedColumnsKey:u,groupByParams:d}){const{searchValue:p,uptimeFilter:h,peerRoleFilter:g}=D(d),{problemFilter:y}=c(),b=(0,i.Ye)(),{columnsToShow:f,columnsToSelect:C,setColumns:v}=(0,m.K)(o,u,s.uG,l,n);return(0,G.jsx)(X,{path:e,database:t,searchValue:p,problemFilter:y,uptimeFilter:h,peerRoleFilter:g,columns:f,parentRef:r,renderControls:({totalEntities:e,foundEntities:t,inited:r})=>(0,G.jsx)(K,{withGroupBySelect:b,groupByParams:d,withPeerRoleFilter:a,columnsToSelect:C,handleSelectedColumnsUpdate:v,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!r})})}function te({path:e,database:t,parentRef:r,withPeerRoleFilter:a,columns:l,defaultColumnsIds:i,requiredColumnsIds:p,selectedColumnsKey:c,groupByParams:b}){const{searchValue:f,peerRoleFilter:C,groupByParam:v}=D(b),[F]=(0,d.Nt)(),{columnsToShow:N,columnsToSelect:R,setColumns:x}=(0,m.K)(l,c,s.uG,i,p),{currentData:P,isFetching:j,error:w}=u.s.useGetNodesQuery({path:e,database:t,filter:f,filter_peer_role:C,group:v,limit:0},{pollingInterval:F}),B=void 0===P&&j,{NodeGroups:T,FoundNodes:I=0,TotalNodes:_=0}=P||{},{expandedGroups:E,setIsGroupExpanded:U}=(0,y.$)(T);return(0,G.jsxs)(n.L,{children:[(0,G.jsx)(n.L.Controls,{children:(0,G.jsx)(K,{withGroupBySelect:!0,groupByParams:b,withPeerRoleFilter:a,columnsToSelect:R,handleSelectedColumnsUpdate:x,entitiesCountCurrent:I,entitiesCountTotal:_,entitiesLoading:B})}),w?(0,G.jsx)(o.o,{error:w}):null,(0,G.jsx)(n.L.Table,{loading:B,className:V("groups-wrapper"),children:null!==T&&void 0!==T&&T.length?T.map((({name:a,count:o})=>{const l=E[a];return(0,G.jsx)(g.Q,{title:a,count:o,entityName:S("nodes"),expanded:l,onIsExpandedChange:U,children:(0,G.jsx)(X,{path:e,database:t,searchValue:f,problemFilter:"All",uptimeFilter:h.cW.All,peerRoleFilter:C,filterGroup:a,filterGroupBy:v,initialEntitiesCount:o,columns:N,parentRef:r})},a)})):S("no-nodes-groups")})]})}},15298:(e,t,r)=>{r.d(t,{s:()=>l});var a=r(21334),o=r(11906);const l=a.F.injectEndpoints({endpoints:e=>({getNodes:e.query({queryFn:async(e,{signal:t})=>{try{const r=await window.api.viewer.getNodes({type:"any",storage:!1,tablets:!0,...e},{signal:t});return{data:(0,o.N)(r)}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},11906:(e,t,r)=>{r.d(t,{N:()=>o});var a=r(78034);const o=e=>{var t;const r=(e.Nodes||[]).map((e=>{const{SystemState:t,...r}=e;return{...r,...(0,a.q1)(t)}}));return{Nodes:r,NodeGroups:null===(t=e.NodeGroups)||void 0===t?void 0:t.map((({GroupName:e,NodeCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e))),TotalNodes:Number(e.TotalNodes)||r.length,FoundNodes:Number(e.FoundNodes)}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9312.5eb8d4b1.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/9312.5eb8d4b1.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/9312.5eb8d4b1.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/9312.5eb8d4b1.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/9394.ca56f408.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/9394.ca56f408.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/9394.ca56f408.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/9394.ca56f408.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/9507.14872b99.chunk.js b/ydb/core/viewer/monitoring/static/js/9507.14872b99.chunk.js new file mode 100644 index 00000000000..ead20667f9b --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9507.14872b99.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9507],{19507:(e,n,t)=>{t.r(n),t.d(n,{conf:()=>o,getLanguage:()=>i});var s=t(43733);const o={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],wordPattern:/(-?\d*\.\d\w*)|([^`~!@#%^&*()\-=+[{\]}\\|;:'",./?\s]+)/g};function i({ansi:e=!1}={}){return{defaultToken:"text",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],keywords:s.RE,typeKeywords:s.to,constants:["true","false","enabled","disabled"],builtinFunctions:s.XB,operators:["+","-","/","//","%","<@>","@>","<@","&","^","~","<",">","<=",">=","=>","==","!=","<>","="],symbols:/[=><!~?:&|+\-*/^%]+/,escapes:/\\(?:[abfnrtv\\"'`]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/[a-zA-Z_]\w*/,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@numbers"},{include:"@tablePath"},{include:"@strings"},{include:"@primaryKey"},[/(@variables)::(@variables)/,"support.function"],[/[;,.]/,"delimiter"],[/[(){}[\]]/,"@brackets"],[/@?[a-zA-Z_$]\w*/,{cases:{"@keywords":"keyword","@typeKeywords":"keyword.type","@constants":"constant.yql","@builtinFunctions":"constant.other.color","[$@][a-zA-Z_]\\w*":"variable","@default":"identifier"}}],[/@symbols/,{cases:{"@operators":"operator.sql","@default":""}}]],whitespace:[[/\s+/,"white"]],comments:[[/--.*/,"comment"],[/\/\*/,{token:"comment.quote",next:e?"@commentAnsi":"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],commentAnsi:[[/\/\*/,{token:"comment.quote",next:"@comment"}],[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?f?\b/,"number.float"],[/[+-]?(?:\d+|0b[01]+|0o[0-8]+|0x[\da-f]+)(?:u?[lst]?)?\b/,"number"]],strings:[[/'/,{token:"string",next:e?"@stringAnsiSingle":"@stringSingle"}],[/"/,{token:"string",next:e?"@stringAnsiDouble":"@stringDouble"}],[/[@]{2}/,{token:"string",next:"@multilineString"}]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'[uyj]?/,{token:"string",next:"@pop"}]],stringAnsiSingle:[[/[^']+/,"string"],[/''/,"string"],[/'[uyj]?/,{token:"string",next:"@pop"}]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"[uyj]?/,{token:"string",next:"@pop"}]],stringAnsiDouble:[[/[^"]+/,"string"],[/""/,"string"],[/"[uyj]?/,{token:"string",next:"@pop"}]],multilineString:[[/#py/,{token:"string.python",nextEmbedded:"python",next:"@embedded",goBack:3}],[/\/\/js/,{token:"string.js",nextEmbedded:"javascript",next:"@embedded",goBack:4}],[/[^@]+/,"string"],[/[@]{4}/,"string"],[/[@]{2}[uyj]?/,{token:"string",next:"@pop"}],[/./,"string"]],embedded:[[/([^@]|^)([@]{4})*[@]{2}([@]([^@]|$)|[^@]|$)/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],tablePath:[[/((`)?[\w/]+\2\s*\.\s*)?`/,{token:"string.tablepath",next:"@table"}]],table:[[/[^\\`]+/,"string.tablepath"],[/``/,"string.tablepath"],[/@escapes/,"string.escape.tablepath"],[/\\./,"string.escape.invalid.tablepath"],[/`/,{token:"string.tablepath",next:"@pop"}]],primaryKey:[[/primary key/i,"keyword"]]}}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/957.08a1c505.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/957.08a1c505.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/957.08a1c505.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/957.08a1c505.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/9582.c09a3623.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/9582.c09a3623.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/9582.c09a3623.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/9582.c09a3623.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/9728.0d021c0f.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/9728.0d021c0f.chunk.js.LICENSE.txt deleted file mode 100644 index a62733317c0..00000000000 --- a/ydb/core/viewer/monitoring/static/js/9728.0d021c0f.chunk.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/9728.0d021c0f.chunk.js b/ydb/core/viewer/monitoring/static/js/9728.7cc957e4.chunk.js index dee4e3b13f1..d9ad263493d 100644 --- a/ydb/core/viewer/monitoring/static/js/9728.0d021c0f.chunk.js +++ b/ydb/core/viewer/monitoring/static/js/9728.7cc957e4.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 9728.0d021c0f.chunk.js.LICENSE.txt */ -"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9728],{19728:(e,t,i)=>{i.r(t),i.d(t,{conf:()=>p,language:()=>w});var n,o,r=i(32858),l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of d(t))s.call(e,o)||o===i||l(e,o,{get:()=>t[o],enumerable:!(n=a(t,o))||n.enumerable});return e},c={};u(c,n=r,"default"),o&&u(o,n,"default");var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],p={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:c.languages.IndentAction.Indent}}]},w={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}}}}]);
\ No newline at end of file +/*! For license information please see 9728.7cc957e4.chunk.js.LICENSE.txt */ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9728],{19728:(e,t,i)=>{i.r(t),i.d(t,{conf:()=>p,language:()=>w});var n,o,r=i(80781),l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=(e,t,i,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of d(t))s.call(e,o)||o===i||l(e,o,{get:()=>t[o],enumerable:!(n=a(t,o))||n.enumerable});return e},c={};u(c,n=r,"default"),o&&u(o,n,"default");var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],p={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:c.languages.IndentAction.Indent}}]},w={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9728.7cc957e4.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/9728.7cc957e4.chunk.js.LICENSE.txt new file mode 100644 index 00000000000..34dc0256d74 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9728.7cc957e4.chunk.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/9748.e711e962.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/9748.e711e962.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/9748.e711e962.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/9748.e711e962.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/9778.52ad76ce.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/9778.52ad76ce.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/9778.52ad76ce.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/9778.52ad76ce.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/9796.8870e3ef.chunk.js b/ydb/core/viewer/monitoring/static/js/9796.8870e3ef.chunk.js new file mode 100644 index 00000000000..4160aba5b00 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/9796.8870e3ef.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[9796],{90053:(e,t,s)=>{s.d(t,{E:()=>h});var a=s(8873),n=s(84476),r=s(24555),o=s(21334),i=s(77506),l=s(90182),d=s(48372);const u=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),c=(0,d.g4)("ydb-diagnostics-autorefresh-control",{en:u});var m=s(60712);const p=(0,i.cn)("auto-refresh-control");function h({className:e}){const t=(0,l.YQ)(),[s,i]=(0,l.Nt)();return(0,m.jsxs)("div",{className:p(null,e),children:[(0,m.jsx)(n.$,{view:"flat-secondary",onClick:()=>{t(o.F.util.invalidateTags(["All"]))},extraProps:{"aria-label":c("Refresh")},children:(0,m.jsx)(n.$.Icon,{children:(0,m.jsx)(a.A,{})})}),(0,m.jsxs)(r.l,{value:[String(s)],onUpdate:e=>{i(Number(e))},width:85,qa:"ydb-autorefresh-select",children:[(0,m.jsx)(r.l.Option,{value:"0",children:c("None")}),(0,m.jsx)(r.l.Option,{value:"15000",children:c("15 sec")}),(0,m.jsx)(r.l.Option,{value:"60000",children:c("1 min")}),(0,m.jsx)(r.l.Option,{value:"120000",children:c("2 min")}),(0,m.jsx)(r.l.Option,{value:"300000",children:c("5 min")})]})]})}},24543:(e,t,s)=>{s.d(t,{u:()=>o});var a=s(59284),n=s(39238),r=s(60712);const o=({children:e,content:t,className:s,pinOnClick:o,hasArrow:i=!0,placement:l=["top","bottom"],...d})=>{const[u,c]=a.useState(!1),[m,p]=a.useState(!1),h=a.useRef(null);return(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)(n.z,{anchorRef:h,open:m||u,placement:l,hasArrow:i,onOutsideClick:()=>{p(!1)},...d,children:t}),(0,r.jsx)("span",{className:s,ref:h,onClick:o?()=>{p(!0)}:void 0,onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:e})]})}},88226:(e,t,s)=>{s.d(t,{V:()=>d});s(59284);var a=s(77506),n=s(76086),r=s(7187),o=s(90182),i=s(60712);const l=(0,a.cn)("storage-disk-progress-bar");function d({diskAllocatedPercent:e=-1,severity:t,compact:s,faded:a,inactive:d,empty:u,content:c,className:m}){const[p]=(0,o.iK)(n.TJ),h={inverted:p,compact:s,faded:a,empty:u,inactive:d},g=void 0!==t&&(0,r.XY)(t);g&&(h[g.toLocaleLowerCase()]=!0);return(0,i.jsxs)("div",{className:l(h,m),role:"meter","aria-label":"Disk allocated space","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e,children:[(()=>{if(s)return(0,i.jsx)("div",{className:l("fill-bar",h),style:{width:"100%"}});const t=p?100-e:e;return e>=0?(0,i.jsx)("div",{className:l("fill-bar",h),style:{width:`${t}%`}}):null})(),c||(!s&&e>=0?(0,i.jsx)("div",{className:l("title"),children:`${Math.round(e)}%`}):null)]})}},53755:(e,t,s)=>{s.d(t,{T:()=>l});var a=s(47665),n=s(77506);const r=(0,s(48372).g4)("ydb-entities-count",{ru:{of:"\u0438\u0437"},en:{of:"of"}});var o=s(60712);const i=(0,n.cn)("ydb-entities-count"),l=({total:e,current:t,label:s,loading:n,className:l})=>{let d="";return s&&(d+=`${s}: `),n?d+="...":(d+=`${t}`,e&&Number(e)!==Number(t)&&(d+=` ${r("of")} ${e}`)),(0,o.jsx)(a.J,{theme:"info",size:"m",className:i(null,l),children:d})}},10508:(e,t,s)=>{s.d(t,{c:()=>c});var a=s(67884),n=s(96873),r=s(54090),o=s(77506),i=s(82015),l=s(33775),d=s(60712);const u=(0,o.cn)("entity-status");function c({status:e=r.m.Grey,name:t="",label:s,path:o,iconPath:c,size:m="s",mode:p="color",showStatus:h=!0,externalLink:g=!1,withLeftTrim:v=!1,hasClipboardButton:f,clipboardButtonAlwaysVisible:S=!1,className:k}){const N=()=>h?(0,d.jsx)(l.k,{className:u("icon"),status:e,size:m,mode:p}):null;return(0,d.jsxs)("div",{className:u(null,k),children:[c?(y=c,(0,d.jsx)(a.N,{target:"_blank",href:y,children:N()})):N(),s&&(0,d.jsx)("span",{title:s,className:u("label",{size:m,state:e.toLowerCase()}),children:s}),(o||t)&&(0,d.jsxs)("div",{className:u("wrapper",{"with-button":f}),children:[(0,d.jsx)("span",{className:u("link",{"with-left-trim":v}),title:t,children:o?g?(0,d.jsx)(a.N,{className:u("name"),href:o,children:t}):(0,d.jsx)(i.E,{className:u("name"),to:o,children:t}):t&&(0,d.jsx)("span",{className:u("name"),children:t})}),f&&(0,d.jsx)("div",{className:u("controls-wrapper",{visible:S}),children:(0,d.jsx)(n.b,{text:t,size:"xs",view:"normal",className:u("clipboard-button",{visible:S})})})]})]});var y}},13096:(e,t,s)=>{s.d(t,{P:()=>u});var a=s(59284),n=s(39238),r=s(43781),o=s.n(r),i=s(77506),l=s(60712);const d=(0,i.cn)("hover-popup"),u=({children:e,popupContent:t,showPopup:s,offset:r,anchorRef:i,onShowPopup:u,onHidePopup:c,placement:m=["top","bottom"],contentClassName:p})=>{const[h,g]=a.useState(!1),v=a.useRef(null),f=a.useMemo((()=>o()((()=>{g(!0),null===u||void 0===u||u()}),100)),[u]),S=a.useCallback((()=>{g(!1),null===c||void 0===c||c()}),[c]),k=a.useMemo((()=>o()(S,100)),[S]),N=f,[y,b]=a.useState(!1),[x,w]=a.useState(!1),D=a.useCallback((()=>{b(!0)}),[]),I=a.useCallback((()=>{b(!1)}),[]),C=a.useCallback((()=>{w(!0)}),[]),j=a.useCallback((()=>{w(!1)}),[]),P=a.useCallback((()=>{w(!1),b(!1),S()}),[S]),A=h||s||y||x;return(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)("span",{ref:v,onMouseEnter:N,onMouseLeave:()=>{f.cancel(),k()},children:e}),(0,l.jsx)(n.z,{contentClassName:d(null,p),anchorRef:i||v,open:A,onMouseEnter:D,onMouseLeave:I,onEscapeKeyDown:P,onBlur:j,placement:m,hasArrow:!0,offset:r||[0,12],children:(0,l.jsx)("div",{onContextMenu:C,children:t})})]})}},73473:(e,t,s)=>{s.d(t,{S:()=>y});var a=s(38501),n=s(40336),r=s(46549),o=s(77506),i=s(76086),l=s(35736),d=s(41650),u=s(13096),c=s(15132),m=s(48372);const p=JSON.parse('{"text_external-consumption":"External Consumption","text_allocator-caches":"Allocator Caches","text_shared-cache":"Shared Cache","text_memtable":"MemTable","text_query-execution":"Query Execution","text_usage":"Usage","text_soft-limit":"Soft Limit","text_hard-limit":"Hard Limit","text_other":"Other"}'),h=(0,m.g4)("ydb-memory-viewer",{en:p});function g(e){return(0,d.kf)(e)?parseFloat(String(e)):void 0}var v=s(60712);const f=1,S=.01*i.J7,k=(0,o.cn)("memory-viewer"),N=(e,t)=>[(0,r.z3)({value:e,size:"gb",withSizeLabel:!1,precision:2}),(0,r.z3)({value:t,size:"gb",withSizeLabel:!0,precision:1})];function y({stats:e,percents:t,formatValues:s,className:o,warningThreshold:i,dangerThreshold:m}){var p;const y=null!==(p=e.AnonRss)&&void 0!==p?p:function(e){const t=g(e.AllocatedMemory)||0,s=g(e.AllocatorCachesMemory)||0;return String(t+s)}(e),b=e.HardLimit,x=(0,a.D)();let w=Math.round(parseFloat(String(y))/parseFloat(String(b))*100)||0;w=w>100?100:w;let D=y,I=b,C="/";t?(D=w+"%",I="",C=""):s&&([D,I]=s(Number(y),Number(b)));const j=function(e,t){const s=[{label:h("text_shared-cache"),key:"SharedCacheConsumption",value:g(e.SharedCacheConsumption),capacity:g(e.SharedCacheLimit),isInfo:!1},{label:h("text_query-execution"),key:"QueryExecutionConsumption",value:g(e.QueryExecutionConsumption),capacity:g(e.QueryExecutionLimit),isInfo:!1},{label:h("text_memtable"),key:"MemTableConsumption",value:g(e.MemTableConsumption),capacity:g(e.MemTableLimit),isInfo:!1},{label:h("text_allocator-caches"),key:"AllocatorCachesMemory",value:g(e.AllocatorCachesMemory),isInfo:!1}],a=s.filter((e=>void 0!==e.value)).reduce(((e,t)=>e+t.value),0),n=Math.max(0,t-a);return s.push({label:h("text_other"),key:"Other",value:n,isInfo:!1}),s.push({label:h("text_external-consumption"),key:"ExternalConsumption",value:g(e.ExternalConsumption),isInfo:!0},{label:h("text_usage"),key:"Usage",value:t,isInfo:!0},{label:h("text_soft-limit"),key:"SoftLimit",value:g(e.SoftLimit),isInfo:!0},{label:h("text_hard-limit"),key:"HardLimit",value:g(e.HardLimit),isInfo:!0}),s.filter((e=>void 0!==e.value))}(e,Number(y)),P=(0,l.w)({fillWidth:w,warningThreshold:i,dangerThreshold:m,colorizeProgress:!0});let A=0;return(0,v.jsx)(u.P,{popupContent:(0,v.jsx)(n.u,{responsive:!0,children:j.map((({label:e,value:t,capacity:s,key:a})=>(0,v.jsx)(n.u.Item,{name:(0,v.jsxs)("div",{className:k("container"),children:[(0,v.jsx)("div",{className:k("legend",{type:a})}),(0,v.jsx)("div",{className:k("name"),children:e})]}),children:s?(0,v.jsx)(c.O,{value:t,capacity:s,formatValues:N,colorizeProgress:!0}):(0,r.z3)({value:t,size:"gb",withSizeLabel:!0,precision:2})},e)))}),children:(0,v.jsx)("div",{className:k({theme:x,status:P},o),children:(0,v.jsxs)("div",{className:k("progress-container"),children:[j.filter((({isInfo:e})=>!e)).map((e=>{if(e.value<S)return null;const t=Math.max((s=e.value,y?s/parseFloat(String(b))*100:0),f);var s;const a=A;return A+=t,(0,v.jsx)("div",{className:k("segment",{type:e.key}),style:{width:`${t}%`,left:`${a}%`}},e.key)})),(0,v.jsx)("div",{className:k("text"),children:(0,d.kf)(b)?`${D} ${C} ${I}`:D})]})})})}},96927:(e,t,s)=>{s.d(t,{O:()=>f,f:()=>v});var a=s(59284),n=s(78668),r=s(24600),o=s(54090),i=s(7435),l=s(76086),d=s(31684),u=s(90182),c=s(41650),m=s(60073),p=s(25196),h=s(60712);const g=[o.m.Orange,o.m.Red,o.m.Yellow],v=(e,t,s)=>{const{AvailableSize:a,TotalSize:n,State:r,PDiskId:o,NodeId:u,StringifiedId:m,Path:v,Realtime:f,Type:S,Device:k}=e,N=[{label:"PDisk",value:null!==m&&void 0!==m?m:l.Pd},{label:"State",value:r||"not available"},{label:"Type",value:S||"unknown"}];if(u&&N.push({label:"Node Id",value:u}),null!==t&&void 0!==t&&t.Host&&N.push({label:"Host",value:t.Host}),null!==t&&void 0!==t&&t.DC&&N.push({label:"DC",value:t.DC}),v&&N.push({label:"Path",value:v}),(0,c.kf)(n)&&N.push({label:"Available",value:`${(0,c.wb)(a)} of ${(0,c.wb)(n)}`}),f&&g.includes(f)&&N.push({label:"Realtime",value:f}),k&&g.includes(k)&&N.push({label:"Device",value:k}),s&&(0,i.f8)(u)&&(0,i.f8)(o)){const e=(0,d.ar)({nodeId:u,pDiskId:o});N.push({label:"Links",value:(0,h.jsx)(p.K,{title:"Developer UI",url:e})})}return N},f=({data:e})=>{const t=(0,u.N4)(n._5),s=(0,u.N4)(r.K),o=(0,i.f8)(e.NodeId)?null===s||void 0===s?void 0:s.get(e.NodeId):void 0,l=a.useMemo((()=>v(e,o,t)),[e,o,t]);return(0,h.jsx)(m.z_,{title:"PDisk",info:l,size:"s"})}},40427:(e,t,s)=>{s.d(t,{k5:()=>E});var a=s(59284),n=s(89073);const r=s(21334).F.injectEndpoints({endpoints:function(e){return{fetchTableChunk:e.query({queryFn:async({offset:e,limit:t,sortParams:s,filters:a,columnsIds:n,fetchData:r},{signal:o})=>{try{return{data:await r({limit:t,offset:e,filters:a,sortParams:s,columnsIds:n,signal:o})}}catch(i){return{error:i}}},providesTags:["All"]})}}});var o=s(7435),i=s(90182),l=s(44508),d=s(89169);const u=!0;const c=(0,s(77506).cn)("ydb-paginated-table");var m=s(60712);const p=({children:e,className:t,height:s,width:a,align:n="left",resizeable:r})=>(0,m.jsx)("td",{className:c("row-cell",{align:n},t),style:{height:`${s}px`,width:`${a}px`,maxWidth:r?`${a}px`:void 0},children:e}),h=({index:e,columns:t,height:s})=>(0,m.jsx)("tr",{className:c("row",{loading:!0}),children:t.map((t=>{var a;const n=null!==(a=t.resizeable)&&void 0!==a?a:u;return(0,m.jsx)(p,{height:s,width:t.width,align:t.align,className:t.className,resizeable:n,children:(0,m.jsx)(d.E,{className:c("row-skeleton"),style:{width:"80%",height:"50%"}})},`${t.name}${e}`)}))}),g=({row:e,index:t,columns:s,getRowClassName:a,height:n})=>{const r=null===a||void 0===a?void 0:a(e);return(0,m.jsx)("tr",{className:c("row",r),children:s.map((s=>{var a;const r=null!==(a=s.resizeable)&&void 0!==a?a:u;return(0,m.jsx)(p,{height:n,width:s.width,align:s.align,className:s.className,resizeable:r,children:s.render({row:e,index:t})},`${s.name}${t}`)}))})},v=({columns:e,children:t})=>(0,m.jsx)("tr",{className:c("row",{empty:!0}),children:(0,m.jsx)("td",{colSpan:e.length,className:c("td"),children:t})});var f=s(48372);const S=JSON.parse('{"empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),k=(0,f.g4)("ydb-paginated-table",{ru:S,en:{empty:"No data"}});const N=a.memo;const y=N((function({id:e,chunkSize:t,calculatedCount:s,rowHeight:n,columns:d,fetchData:u,tableName:c,filters:p,sortParams:f,getRowClassName:S,renderErrorMessage:N,renderEmptyDataMessage:y,onDataFetched:b,isActive:x}){var w;const[D,I]=a.useState(!0),[C]=(0,i.Nt)(),j={offset:e*t,limit:t,fetchData:u,filters:p,sortParams:f,columnsIds:d.map((e=>e.name)),tableName:c};r.useFetchTableChunkQuery(j,{skip:D||!x,pollingInterval:C});const{currentData:P,error:A}=r.endpoints.fetchTableChunk.useQueryState(j);a.useEffect((()=>{let e=0;return x&&D&&(e=window.setTimeout((()=>{I(!1)}),200)),()=>{window.clearTimeout(e)}}),[x,D]),a.useEffect((()=>{if(P&&x){const{total:e=0,found:t=0}=P;b(e,t)}}),[P,x,b]);const E=(null===P||void 0===P||null===(w=P.data)||void 0===w?void 0:w.length)||s;return(0,m.jsx)("tbody",{id:e.toString(),style:{height:E*n+"px",display:x?"table-row-group":"block"},children:(()=>{var e;if(!x)return null;if(!P){if(A){const e=A;return(0,m.jsx)(v,{columns:d,children:N?N(e):(0,m.jsx)(l.o,{error:e})})}return(0,o._e)(E).map((e=>(0,m.jsx)(h,{columns:d,height:n,index:e},e)))}return null!==(e=P.data)&&void 0!==e&&e.length?P.data.map(((e,t)=>(0,m.jsx)(g,{index:t,row:e,columns:d,height:n,getRowClassName:S},t))):(0,m.jsx)(v,{columns:d,children:y?y():k("empty")})})()})}));function b({minWidth:e,maxWidth:t,getCurrentColumnWidth:s,onResize:n}){const r=a.useRef(null),[o,i]=a.useState(!1);return a.useEffect((()=>{const a=r.current;if(!a)return;let o,l,d;const u=function(e){let t,s=null;return function(...a){t=a,"number"!==typeof s&&(s=requestAnimationFrame((()=>{e(...t),s=null})))}}((s=>{if(x(s),"number"!==typeof o||"number"!==typeof l)return;const a=s.clientX-o,r=function(e,t=40,s=1/0){return Math.max(t,Math.min(e,s))}(l+a,e,t);r!==d&&(d=r,null===n||void 0===n||n(d))})),c=e=>{x(e),void 0!==d&&(null===n||void 0===n||n(d)),i(!1),o=void 0,document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)},m=e=>{l=s(),x(e),o=e.clientX,i(!0),document.addEventListener("mousemove",u),document.addEventListener("mouseup",c)};return a.addEventListener("mousedown",m),()=>{a.removeEventListener("mousedown",m),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)}}),[n,e,t,s]),(0,m.jsx)("span",{ref:r,className:c("resize-handler",{resizing:o}),onClick:e=>x(e)})}function x(e){e.preventDefault(),e.stopPropagation()}const w=({order:e})=>(0,m.jsx)("svg",{className:c("sort-icon",{desc:-1===e}),viewBox:"0 0 10 6",width:"10",height:"6",children:(0,m.jsx)("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})}),D=({sortOrder:e,sortable:t,defaultSortOrder:s})=>t?(0,m.jsx)("span",{className:c("sort-icon-container",{shadow:!e}),children:(0,m.jsx)(w,{order:e||s})}):null,I=({column:e,resizeable:t,sortOrder:s,defaultSortOrder:n,onSort:r,rowHeight:o,onCellMount:i,onCellUnMount:l,onColumnsResize:d})=>{var u;const p=a.useRef(null);a.useEffect((()=>{const e=p.current;return e&&(null===i||void 0===i||i(e)),()=>{e&&(null===l||void 0===l||l(e))}}),[i,l]);const h=a.useCallback((()=>{var e;return null===(e=p.current)||void 0===e?void 0:e.getBoundingClientRect().width}),[]),g=a.useCallback((t=>{null===d||void 0===d||d(e.name,t)}),[d,e.name]),v=null!==(u=e.header)&&void 0!==u?u:e.name,f={height:`${o}px`,width:`${e.width}px`,minWidth:t?`${e.width}px`:void 0,maxWidth:t?`${e.width}px`:void 0};return(0,m.jsxs)("th",{ref:p,className:c("head-cell-wrapper"),style:f,children:[(0,m.jsxs)("div",{className:c("head-cell",{align:e.align,sortable:e.sortable},e.className),onClick:()=>{e.sortable&&(null===r||void 0===r||r(e.name))},children:[(0,m.jsx)("div",{className:c("head-cell-content"),children:v}),(0,m.jsx)(D,{sortOrder:s,sortable:e.sortable,defaultSortOrder:n})]}),t?(0,m.jsx)(b,{maxWidth:e.resizeMaxWidth,minWidth:e.resizeMinWidth,getCurrentColumnWidth:h,onResize:g}):null]})},C=({columns:e,onSort:t,onColumnsResize:s,defaultSortOrder:n=-1,rowHeight:r=41})=>{const[o,i]=a.useState({}),l=e=>{let s={};if(e===o.columnId){if(o.sortOrder&&o.sortOrder!==n)return i(s),void(null===t||void 0===t||t(s));s={sortOrder:1===o.sortOrder?-1:1,columnId:e}}else s={sortOrder:n,columnId:e};null===t||void 0===t||t(s),i(s)};return(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)("colgroup",{children:e.map((e=>(0,m.jsx)("col",{style:{width:`${e.width}px`}},e.name)))}),(0,m.jsx)("thead",{className:c("head"),children:(0,m.jsx)("tr",{children:e.map((e=>{var t;const a=o.columnId===e.name?o.sortOrder:void 0,i=s&&(null!==(t=e.resizeable)&&void 0!==t?t:u);return(0,m.jsx)(I,{column:e,resizeable:i,sortOrder:a,defaultSortOrder:n,onSort:l,rowHeight:r,onColumnsResize:s},e.name)}))})})]})};var j=s(13847);const P=({limit:e,initialEntitiesCount:t,fetchData:s,filters:r,tableName:o,columns:i,getRowClassName:l,rowHeight:d=41,parentRef:u,initialSortParams:p,onColumnsResize:h,renderControls:g,renderErrorMessage:v,renderEmptyDataMessage:f,containerClassName:S})=>{const k=t||0,N=t||1,[b,x]=a.useState(p),[w,D]=a.useState(k),[I,P]=a.useState(N),[A,E]=a.useState(!0),T=a.useRef(null),U=(({parentRef:e,tableRef:t,totalItems:s,rowHeight:n,chunkSize:r,overscanCount:o=1})=>{const i=a.useMemo((()=>Math.ceil(s/r)),[r,s]),[l,d]=a.useState(0),[u,c]=a.useState(Math.min(o,Math.max(i-1,0))),m=a.useCallback((()=>{const s=null===e||void 0===e?void 0:e.current,a=t.current;if(!s||!a)return null;const l=function(e,t){let s=e,a=0;for(;s&&s!==t;)a+=s.offsetTop,s=s.offsetParent;return a}(a,s),d=s.scrollTop,u=Math.max(d-l,0),c=u+s.clientHeight;return{start:Math.max(Math.floor(u/n/r)-o,0),end:Math.min(Math.floor(c/n/r)+o,Math.max(i-1,0))}}),[e,t,n,r,o,i]),p=a.useCallback((()=>{const e=m();e&&(d(e.start),c(e.end))}),[m]);return a.useEffect((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;const s=(0,j.throttle)(p,100,{leading:!0,trailing:!0});return t.addEventListener("scroll",s),()=>{t.removeEventListener("scroll",s),s.cancel()}}),[p,e]),a.useMemo((()=>{const e=Array(i).fill(!1);for(let t=l;t<=u;t++)e[t]=!0;return e}),[i,l,u])})({parentRef:u,tableRef:T,totalItems:I,rowHeight:d,chunkSize:e}),R=a.useMemo((()=>I?I%e||e:1),[I,e]),M=a.useCallback(((e,t)=>{D(e),P(t),E(!1)}),[]);a.useLayoutEffect((()=>{D(k),P(N),E(!0),null!==u&&void 0!==u&&u.current&&u.current.scrollTo(0,0)}),[r,N,k,u]);const G=()=>(0,m.jsxs)("table",{className:c("table"),children:[(0,m.jsx)(C,{columns:i,onSort:x,onColumnsResize:h}),U.map(((t,a)=>(0,m.jsx)(y,{id:a,calculatedCount:a===U.length-1?R:e,chunkSize:e,rowHeight:d,columns:i,fetchData:s,filters:r,tableName:o,sortParams:b,getRowClassName:l,renderErrorMessage:v,renderEmptyDataMessage:f,onDataFetched:M,isActive:t},a)))]});return(0,m.jsx)("div",{ref:T,className:c(null,S),children:g?(0,m.jsxs)(n.L,{children:[(0,m.jsx)(n.L.Controls,{children:g({inited:!A,totalEntities:w,foundEntities:I})}),(0,m.jsx)(n.L.Table,{children:G()})]}):G()})};var A=s(16819);function E({columnsWidthLSKey:e,columns:t,...s}){const[a,n]=(0,A.a)(e),r=function(e,t){return e.map((e=>{var s;return{...e,width:null!==(s=t[e.name])&&void 0!==s?s:e.width}}))}(t,a);return(0,m.jsx)(P,{columns:r,onColumnsResize:n,containerClassName:c("resizeable-table-container"),...s})}},48295:(e,t,s)=>{s.d(t,{_:()=>u});var a=s(77506),n=s(24543),r=s(80176),o=s(60712);const i=(0,a.cn)("ydb-pool-bar"),l=({data:e={}})=>{const{Usage:t=0}=e,s=Math.min(100*t,100),a=(e=>e>=75?"danger":e>=50&&e<75?"warning":"normal")(s);return(0,o.jsx)(n.u,{className:i({type:a}),content:(0,o.jsx)(r.HG,{data:e,className:i("popup-content")}),children:(0,o.jsx)("div",{style:{height:`${s}%`},className:i("value",{type:a})})})},d=(0,a.cn)("ydb-pools-graph"),u=({pools:e=[]})=>(0,o.jsx)("div",{className:d(),children:e.map(((e,t)=>(0,o.jsx)(l,{data:e},t)))})},15132:(e,t,s)=>{s.d(t,{O:()=>m});var a=s(38501),n=s(77506),r=s(56839),o=s(35736),i=s(41650),l=s(60712);const d=(0,n.cn)("progress-viewer"),u=e=>(0,r.ZV)((0,r.CR)(Number(e),2)),c=(e,t)=>[u(e),u(t)];function m({value:e,capacity:t,formatValues:s=c,percents:n,className:r,size:u="xs",colorizeProgress:m,inverseColorize:p,warningThreshold:h,dangerThreshold:g,hideCapacity:v}){const f=(0,a.D)();let S=Math.round(parseFloat(String(e))/parseFloat(String(t))*100)||0;S=S>100?100:S;let k=e,N=t,y="/";n?(k=S+"%",N="",y=""):s&&([k,N]=s(Number(e),Number(t)));const b=(0,o.w)({fillWidth:S,warningThreshold:h,dangerThreshold:g,colorizeProgress:m,inverseColorize:p});m&&!(0,i.kf)(t)&&(S=100);const x={width:S+"%"};return(0,i.kf)(e)?(0,l.jsxs)("div",{className:d({size:u,theme:f,status:b},r),children:[(0,l.jsx)("div",{className:d("line"),style:x}),(0,l.jsx)("span",{className:d("text"),children:(0,i.kf)(t)&&!v?`${k} ${y} ${N}`:k})]}):(0,l.jsx)("div",{className:`${d({size:u})} ${r} error`,children:"no data"})}},41775:(e,t,s)=>{s.d(t,{v:()=>l});var a=s(59284),n=s(28664),r=s(77506),o=s(60712);const i=(0,r.cn)("ydb-search"),l=({onChange:e,value:t="",width:s,className:r,debounce:l=200,placeholder:d})=>{const[u,c]=a.useState(t),m=a.useRef();a.useEffect((()=>{c((e=>e!==t?t:e))}),[t]);return(0,o.jsx)(n.k,{hasClear:!0,autoFocus:!0,style:{width:s},className:i(null,r),placeholder:d,value:u,onUpdate:t=>{c(t),window.clearTimeout(m.current),m.current=window.setTimeout((()=>{null===e||void 0===e||e(t)}),l)}})}},33775:(e,t,s)=>{s.d(t,{k:()=>m});var a=s(45720),n=s(16929),r=s(71153),o=s(99991),i=s(54090),l=s(77506),d=s(60712);const u=(0,l.cn)("ydb-status-icon"),c={[i.m.Blue]:a.A,[i.m.Yellow]:n.A,[i.m.Orange]:r.A,[i.m.Red]:n.A};function m({status:e=i.m.Grey,size:t="s",mode:s="color",className:a}){const n={state:e.toLowerCase(),size:t};return"icons"===s&&e in c?(0,d.jsx)(o.I,{className:u("status-icon",n,a),data:c[e]}):(0,d.jsx)("div",{className:u("status-color",n,a)})}},19228:(e,t,s)=>{s.d(t,{Q:()=>l});var a=s(89169),n=s(77506),r=s(66781),o=s(60712);const i=(0,n.cn)("table-skeleton"),l=({rows:e=2,delay:t=600,className:s})=>{const[n]=(0,r.y)(t);return(0,o.jsxs)("div",{className:i("wrapper",{hidden:!n},s),children:[(0,o.jsxs)("div",{className:i("row"),children:[(0,o.jsx)(a.E,{className:i("col-1")}),(0,o.jsx)(a.E,{className:i("col-2")}),(0,o.jsx)(a.E,{className:i("col-3")}),(0,o.jsx)(a.E,{className:i("col-4")}),(0,o.jsx)(a.E,{className:i("col-5")})]}),[...new Array(e)].map(((e,t)=>(0,o.jsx)("div",{className:i("row"),children:(0,o.jsx)(a.E,{className:i("col-full")})},`skeleton-row-${t}`)))]})}},89073:(e,t,s)=>{s.d(t,{L:()=>i});var a=s(77506),n=s(19228),r=s(60712);const o=(0,a.cn)("ydb-table-with-controls-layout"),i=({children:e,className:t})=>(0,r.jsx)("div",{className:o(null,t),children:e});i.Controls=function({children:e,className:t}){return(0,r.jsx)("div",{className:o("controls-wrapper"),children:(0,r.jsx)("div",{className:o("controls",t),children:e})})},i.Table=function({children:e,loading:t,className:s}){return t?(0,r.jsx)(n.Q,{className:o("loader")}):(0,r.jsx)("div",{className:o("table",s),children:e})}},64934:(e,t,s)=>{s.d(t,{j:()=>o});var a=s(44433),n=s(78034),r=s(60712);const o=({value:e,onChange:t,className:s})=>(0,r.jsxs)(a.a,{value:e,onUpdate:t,className:s,children:[(0,r.jsx)(a.a.Option,{value:n.cW.All,children:n.DG[n.cW.All]}),(0,r.jsx)(a.a.Option,{value:n.cW.SmallUptime,children:n.DG[n.cW.SmallUptime]})]})},13342:(e,t,s)=>{s.d(t,{U:()=>i});var a=s(47665),n=s(77506),r=s(60712);const o=(0,n.cn)("ydb-usage-label");function i({value:e,overloadThreshold:t=90,theme:s,...n}){return(0,r.jsxs)(a.J,{theme:s,className:o({overload:Number(e)>=t}),...n,children:[e||0,"%"]})}},8809:(e,t,s)=>{s.d(t,{y:()=>P});var a=s(77506),n=s(88226),r=s(13096),o=s(44294),i=s(59284),l=s(47665),d=s(78668),u=s(24600),c=s(54090),m=s(7435),p=s(76086),h=s(31684),g=s(7187),v=s(90182),f=s(41650),S=s(60073),k=s(25196),N=s(96927),y=s(29819),b=s(92459),x=s(56839);function w(e){let t;const s=(0,g.NJ)(e)?e.VDiskSlotId:e.VSlotId;return(0,m.f8)(s)&&(0,m.f8)(e.PDiskId)&&(0,m.f8)(e.NodeId)?t=(0,b.yX)(s,e.PDiskId,e.NodeId):(0,m.f8)(e.NodeId)&&(0,g.NJ)(e)&&(t=(0,b.KY)(b.Ay.node,{id:e.NodeId,activeTab:y.mX},{pdiskId:e.PDiskId,vdiskId:(0,x.U9)(e.VDiskId)})),t}var D=s(60712);const I=(0,a.cn)("vdisk-storage-popup"),C=({data:e})=>{const t=(0,g.NJ)(e),s=(0,v.N4)(d._5),a=i.useMemo((()=>t?((e,t)=>{var s,a,n,r;const{NodeId:o,PDiskId:i,VDiskSlotId:l,StringifiedId:d,VDiskState:u,SatisfactionRank:p,DiskSpace:g,FrontQueues:v,Replicated:S,UnsyncedVDisks:N,AllocatedSize:y,ReadThroughput:b,WriteThroughput:x,StoragePoolName:w}=e,I=[{label:"VDisk",value:d},{label:"State",value:null!==u&&void 0!==u?u:"not available"}];var C,j;if(w&&I.push({label:"StoragePool",value:w}),p&&(null===(s=p.FreshRank)||void 0===s?void 0:s.Flag)!==c.m.Green&&I.push({label:"Fresh",value:null===(C=p.FreshRank)||void 0===C?void 0:C.Flag}),p&&(null===(a=p.LevelRank)||void 0===a?void 0:a.Flag)!==c.m.Green&&I.push({label:"Level",value:null===(j=p.LevelRank)||void 0===j?void 0:j.Flag}),p&&null!==(n=p.FreshRank)&&void 0!==n&&n.RankPercent&&I.push({label:"Fresh",value:p.FreshRank.RankPercent}),p&&null!==(r=p.LevelRank)&&void 0!==r&&r.RankPercent&&I.push({label:"Level",value:p.LevelRank.RankPercent}),g&&g!==c.m.Green&&I.push({label:"Space",value:g}),v&&v!==c.m.Green&&I.push({label:"FrontQueues",value:v}),S||I.push({label:"Replicated",value:"NO"}),N&&I.push({label:"UnsyncVDisks",value:N}),Number(y)&&I.push({label:"Allocated",value:(0,f.wb)(y)}),Number(b)&&I.push({label:"Read",value:(0,f.O4)(b)}),Number(x)&&I.push({label:"Write",value:(0,f.O4)(x)}),t&&(0,m.f8)(o)&&(0,m.f8)(i)&&(0,m.f8)(l)){const e=(0,h.Wg)({nodeId:o,pDiskId:i,vDiskSlotId:l});I.push({label:"Links",value:(0,D.jsx)(k.K,{title:"Developer UI",url:e})})}return I})(e,s):((e,t)=>{const{NodeId:s,PDiskId:a,VSlotId:n,StoragePoolName:r}=e,o=[{label:"State",value:"not available"}];if(r&&o.push({label:"StoragePool",value:r}),o.push({label:"NodeId",value:null!==s&&void 0!==s?s:p.Pd},{label:"PDiskId",value:null!==a&&void 0!==a?a:p.Pd},{label:"VSlotId",value:null!==n&&void 0!==n?n:p.Pd}),t&&(0,m.f8)(s)&&(0,m.f8)(a)&&(0,m.f8)(n)){const e=(0,h.Wg)({nodeId:s,pDiskId:a,vDiskSlotId:n});o.push({label:"Links",value:(0,D.jsx)(k.K,{title:"Developer UI",url:e})})}return o})(e,s)),[e,t,s]),n=(0,v.N4)(u.K),r=(0,m.f8)(e.NodeId)?null===n||void 0===n?void 0:n.get(e.NodeId):void 0,y=i.useMemo((()=>t&&e.PDisk&&(0,N.f)(e.PDisk,r,s)),[e,r,t,s]),b=[];if("Donors"in e&&e.Donors){const t=e.Donors;for(const e of t)b.push({label:"VDisk",value:(0,D.jsx)(o.E,{to:w(e),children:e.StringifiedId})})}return(0,D.jsxs)("div",{className:I(),children:[e.DonorMode&&(0,D.jsx)(l.J,{className:I("donor-label"),children:"Donor"}),(0,D.jsx)(S.z_,{title:"VDisk",info:a,size:"s"}),y&&(0,D.jsx)(S.z_,{title:"PDisk",info:y,size:"s"}),b.length>0&&(0,D.jsx)(S.z_,{title:"Donors",info:b,size:"s"})]})},j=(0,a.cn)("ydb-vdisk-component"),P=({data:e={},compact:t,inactive:s,showPopup:a,onShowPopup:i,onHidePopup:l,progressBarClassName:d})=>{const u=w(e);return(0,D.jsx)(r.P,{showPopup:a,onShowPopup:i,onHidePopup:l,popupContent:(0,D.jsx)(C,{data:e}),children:(0,D.jsx)("div",{className:j(),children:(0,D.jsx)(o.E,{to:u,className:j("content"),children:(0,D.jsx)(n.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,compact:t,inactive:s,className:d})})})})}},78762:(e,t,s)=>{s.d(t,{pt:()=>ae,SH:()=>X,fr:()=>B,uk:()=>z,Bg:()=>J,Nh:()=>G,ID:()=>$,fR:()=>Y,iX:()=>F,Vz:()=>q,H:()=>Z,_E:()=>M,eT:()=>L,wN:()=>se,kv:()=>_,pH:()=>O,OX:()=>V,ui:()=>te,DH:()=>ee,oz:()=>K,qp:()=>Q,jl:()=>H,Rn:()=>W});var a=s(4557),n=s(40336),r=s(7435),o=s(77506),i=s(76086),l=s(56839),d=s(16439),u=s(41650),c=s(71661),m=s(73473),p=s(63291),h=s(29819),g=s(31684),v=s(78034),f=s(10508),S=s(80176),k=s(60712);const N=({node:e,getNodeRef:t,database:s,statusForIcon:a})=>{if(!e.Host)return(0,k.jsx)("span",{children:"\u2014"});const n="ConnectStatus"===a?e.ConnectStatus:e.SystemState,r=!(0,v.X7)(e);let o;if(t){const s=t(e);o=s?(0,g.Un)(s):void 0}else if(e.NodeId){const t=(0,g.Kx)(e.NodeId);o=(0,g.Un)(t)}const i=r?(0,h.vI)(e.NodeId,{database:null!==s&&void 0!==s?s:e.TenantName}):void 0;return(0,k.jsx)(c.s,{disabled:!r,content:(0,k.jsx)(S.p,{data:e,nodeHref:o}),placement:["top","bottom"],behavior:p.m.Immediate,delayClosing:200,children:(0,k.jsx)(f.c,{name:e.Host,status:n,path:i,hasClipboardButton:!0})})};var y=s(48295),b=s(15132),x=s(52905),w=s(58267);const D=(0,o.cn)("tablets-statistic"),I=({tablets:e=[],database:t,nodeId:s})=>{const a=(e=>e.map((e=>({label:(0,i.bk)(e.Type),type:e.Type,count:e.Count,state:(0,w.P)(e.State)}))).sort(((e,t)=>String(e.label).localeCompare(String(t.label)))))(e);return(0,k.jsx)("div",{className:D(),children:a.map(((e,a)=>{var n;const r=(0,h.vI)(s,{database:t},h.q7),o=`${e.label}: ${e.count}`,i=D("tablet",{state:null===(n=e.state)||void 0===n?void 0:n.toLowerCase()});return(0,k.jsx)(x.N_,{to:r,className:i,children:o},a)}))})};var C=s(41826),j=s(13342),P=s(86782),A=s(31911),E=s(73891);function T(e){return(0,E.Xo)((0,E.Jc)(e,1))}function U(e){const t=(0,E.Jc)(e,1);return(Number(t)<=0?"":"+")+(0,E.Xo)(t)}const R=(0,o.cn)("ydb-nodes-columns");function M(){return{name:P.vg.NodeId,header:"#",width:80,resizeMinWidth:80,render:({row:e})=>e.NodeId,align:a.Ay.RIGHT}}function G({getNodeRef:e,database:t},{statusForIcon:s="SystemState"}={}){return{name:P.vg.Host,header:P.uG.Host,render:({row:a})=>(0,k.jsx)(N,{node:a,getNodeRef:e,database:t,statusForIcon:s}),width:350,align:a.Ay.LEFT}}function L(){return{name:P.vg.NodeName,header:P.uG.NodeName,align:a.Ay.LEFT,render:({row:e})=>e.NodeName||i.Pd,width:200}}function z(){return{name:P.vg.DC,header:P.uG.DC,align:a.Ay.LEFT,render:({row:e})=>e.DC||i.Pd,width:60}}function V(){return{name:P.vg.Rack,header:P.uG.Rack,align:a.Ay.LEFT,render:({row:e})=>e.Rack||i.Pd,width:100}}function W(){return{name:P.vg.Version,header:P.uG.Version,width:200,align:a.Ay.LEFT,render:({row:e})=>(0,k.jsx)(c.s,{content:e.Version,children:e.Version})}}function H(){return{name:P.vg.Uptime,header:P.uG.Uptime,sortAccessor:({StartTime:e})=>e?-e:0,render:({row:e})=>(0,k.jsx)(C.p,{StartTime:e.StartTime,DisconnectTime:e.DisconnectTime}),align:a.Ay.RIGHT,width:120}}function O(){return{name:P.vg.RAM,header:P.uG.RAM,sortAccessor:({MemoryUsed:e=0})=>Number(e),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>{const[t,s]=(0,u.kf)(e.MemoryUsed)&&(0,u.kf)(e.MemoryLimit)?(0,l.j9)(Number(e.MemoryUsed),Number(e.MemoryLimit),"gb",void 0,!0):[0,0];return(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("field_memory-used"),children:t}),(0,k.jsx)(n.u.Item,{name:(0,A.A)("field_memory-limit"),children:s})]}),children:(0,k.jsx)(b.O,{value:e.MemoryUsed,capacity:e.MemoryLimit,formatValues:(e,t)=>(0,l.j9)(e,t,"gb",void 0,!0),className:R("column-ram"),colorizeProgress:!0,hideCapacity:!0})})},align:a.Ay.LEFT,width:80,resizeMinWidth:40}}function F(){return{name:P.vg.Memory,header:P.uG.Memory,defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.MemoryStats?(0,k.jsx)(m.S,{formatValues:l.vX,stats:e.MemoryStats}):(0,k.jsx)(b.O,{value:e.MemoryUsed,capacity:e.MemoryLimit,formatValues:l.vX,colorizeProgress:!0}),align:a.Ay.LEFT,width:300,resizeMinWidth:170}}function _(){return{name:P.vg.Pools,header:P.uG.Pools,sortAccessor:({PoolStats:e=[]})=>Math.max(...e.map((({Usage:e})=>Number(e)))),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.PoolStats?(0,k.jsx)(y._,{pools:e.PoolStats}):i.Pd,align:a.Ay.LEFT,width:80,resizeMinWidth:60}}function B(){return{name:P.vg.CPU,header:P.uG.CPU,sortAccessor:({PoolStats:e=[]})=>Math.max(...e.map((({Usage:e})=>Number(e)))),defaultOrder:a.Ay.DESCENDING,render:({row:e})=>{if(!e.PoolStats)return i.Pd;let t=(0,u.kf)(e.CoresUsed)&&(0,u.kf)(e.CoresTotal)?e.CoresUsed/e.CoresTotal:void 0;if(void 0===t){let s=0;t=e.PoolStats.reduce(((e,t)=>(s+=Number(t.Threads),e+Number(t.Usage)*Number(t.Threads))),0),t/=s}return(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsx)(n.u,{responsive:!0,children:e.PoolStats.map((e=>(0,u.kf)(e.Usage)?(0,k.jsx)(n.u.Item,{name:e.Name,children:(0,S.Qz)("Usage",e.Usage).value},e.Name):null))}),children:(0,k.jsx)(b.O,{className:R("column-cpu"),value:t,capacity:1,colorizeProgress:!0,percents:!0})})},align:a.Ay.LEFT,width:80,resizeMinWidth:40}}function $(){return{name:P.vg.LoadAverage,header:P.uG.LoadAverage,sortAccessor:({LoadAveragePercents:e=[]})=>e[0],defaultOrder:a.Ay.DESCENDING,render:({row:e})=>(0,k.jsx)(b.O,{value:e.LoadAveragePercents&&e.LoadAveragePercents.length>0?e.LoadAveragePercents[0]:void 0,percents:!0,colorizeProgress:!0,capacity:100}),align:a.Ay.LEFT,width:170,resizeMinWidth:170}}function Y(){return{name:P.vg.Load,header:P.uG.Load,sortAccessor:({LoadAveragePercents:e=[]})=>e[0],defaultOrder:a.Ay.DESCENDING,render:({row:e})=>e.LoadAveragePercents&&e.LoadAveragePercents.length>0?(0,k.jsx)(j.U,{value:e.LoadAveragePercents[0].toFixed(),theme:(0,d.f)(e.LoadAveragePercents[0])}):i.Pd,align:a.Ay.LEFT,width:80,resizeMinWidth:70}}function J(){return{name:P.vg.DiskSpaceUsage,header:P.uG.DiskSpaceUsage,render:({row:e})=>(0,r.f8)(e.DiskSpaceUsage)?(0,k.jsx)(j.U,{value:Math.floor(e.DiskSpaceUsage),theme:(0,d.f)(e.DiskSpaceUsage)}):i.Pd,align:a.Ay.LEFT,width:115,resizeMinWidth:75}}function K(){return{name:P.vg.TotalSessions,header:P.uG.TotalSessions,render:({row:e})=>{var t;return null!==(t=e.TotalSessions)&&void 0!==t?t:i.Pd},align:a.Ay.RIGHT,width:100}}function Q({database:e}){return{name:P.vg.Tablets,header:P.uG.Tablets,width:500,resizeMinWidth:500,render:({row:t})=>t.Tablets?(0,k.jsx)(I,{database:null!==e&&void 0!==e?e:t.TenantName,nodeId:t.NodeId,tablets:t.Tablets}):i.Pd,align:a.Ay.LEFT,sortable:!1}}function q(){return{name:P.vg.Missing,header:P.uG.Missing,render:({row:e})=>e.Missing,align:a.Ay.CENTER,defaultOrder:a.Ay.DESCENDING}}function X(){return{name:P.vg.Connections,header:P.uG.Connections,render:({row:e})=>(0,u.kf)(e.Connections)?e.Connections:i.Pd,align:a.Ay.RIGHT,width:130}}function Z(){return{name:P.vg.NetworkUtilization,header:P.uG.NetworkUtilization,render:({row:e})=>{const{NetworkUtilization:t,NetworkUtilizationMin:s=0,NetworkUtilizationMax:a=0}=e;return(0,u.kf)(t)?(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("sum"),children:(0,l.l9)(t)},"NetworkUtilization"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("min"),children:(0,l.l9)(s)},"NetworkUtilizationMin"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("max"),children:(0,l.l9)(a)},"NetworkUtilizationMax")]}),children:(0,l.l9)(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}function ee(){return{name:P.vg.SendThroughput,header:P.uG.SendThroughput,render:({row:e})=>(0,u.kf)(e.SendThroughput)?(0,u.O4)(e.SendThroughput):i.Pd,align:a.Ay.RIGHT,width:110}}function te(){return{name:P.vg.ReceiveThroughput,header:P.uG.ReceiveThroughput,render:({row:e})=>(0,u.kf)(e.ReceiveThroughput)?(0,u.O4)(e.ReceiveThroughput):i.Pd,align:a.Ay.RIGHT,width:110}}function se(){return{name:P.vg.PingTime,header:P.uG.PingTime,render:({row:e})=>{const{PingTimeUs:t,PingTimeMinUs:s=0,PingTimeMaxUs:a=0}=e;return(0,u.kf)(t)?(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("avg"),children:T(t)},"PingTimeUs"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("min"),children:T(s)},"PingTimeMinUs"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("max"),children:T(a)},"PingTimeMaxUs")]}),children:T(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}function ae(){return{name:P.vg.ClockSkew,header:P.uG.ClockSkew,render:({row:e})=>{const{ClockSkewUs:t,ClockSkewMinUs:s=0,ClockSkewMaxUs:a=0}=e;return(0,u.kf)(t)?(0,k.jsx)(c.s,{placement:["top","auto"],fullWidth:!0,content:(0,k.jsxs)(n.u,{responsive:!0,children:[(0,k.jsx)(n.u.Item,{name:(0,A.A)("avg"),children:U(t)},"ClockSkewUs"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("min"),children:U(s)},"ClockSkewMinUs"),(0,k.jsx)(n.u.Item,{name:(0,A.A)("max"),children:U(a)},"ClockSkewMaxUs")]}),children:U(t)}):i.Pd},align:a.Ay.RIGHT,width:110}}},86782:(e,t,s)=>{s.d(t,{fN:()=>d,kU:()=>c,kn:()=>l,sp:()=>m,uG:()=>o,vg:()=>r,zO:()=>n});var a=s(31911);const n="nodesTableColumnsWidth",r={NodeId:"NodeId",Host:"Host",Database:"Database",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",RAM:"RAM",CPU:"CPU",Pools:"Pools",LoadAverage:"LoadAverage",Load:"Load",DiskSpaceUsage:"DiskSpaceUsage",TotalSessions:"TotalSessions",Connections:"Connections",NetworkUtilization:"NetworkUtilization",SendThroughput:"SendThroughput",ReceiveThroughput:"ReceiveThroughput",PingTime:"PingTime",ClockSkew:"ClockSkew",Missing:"Missing",Tablets:"Tablets",PDisks:"PDisks"},o={get NodeId(){return(0,a.A)("node-id")},get Host(){return(0,a.A)("host")},get Database(){return(0,a.A)("database")},get NodeName(){return(0,a.A)("node-name")},get DC(){return(0,a.A)("dc")},get Rack(){return(0,a.A)("rack")},get Version(){return(0,a.A)("version")},get Uptime(){return(0,a.A)("uptime")},get Memory(){return(0,a.A)("memory")},get RAM(){return(0,a.A)("ram")},get Pools(){return(0,a.A)("pools")},get CPU(){return(0,a.A)("cpu")},get LoadAverage(){return(0,a.A)("load-average")},get Load(){return(0,a.A)("load")},get DiskSpaceUsage(){return(0,a.A)("disk-usage")},get TotalSessions(){return(0,a.A)("sessions")},get Connections(){return(0,a.A)("connections")},get NetworkUtilization(){return(0,a.A)("utilization")},get SendThroughput(){return(0,a.A)("send")},get ReceiveThroughput(){return(0,a.A)("receive")},get PingTime(){return(0,a.A)("ping")},get ClockSkew(){return(0,a.A)("skew")},get Missing(){return(0,a.A)("missing")},get Tablets(){return(0,a.A)("tablets")},get PDisks(){return(0,a.A)("pdisks")}},i={get NodeId(){return(0,a.A)("node-id")},get Host(){return(0,a.A)("host")},get NodeName(){return(0,a.A)("node-name")},get Database(){return(0,a.A)("database")},get DiskSpaceUsage(){return(0,a.A)("disk-usage")},get DC(){return(0,a.A)("dc")},get Rack(){return(0,a.A)("rack")},get Missing(){return(0,a.A)("missing")},get Uptime(){return(0,a.A)("uptime")},get Version(){return(0,a.A)("version")},get SystemState(){return(0,a.A)("system-state")},get ConnectStatus(){return(0,a.A)("connect-status")},get NetworkUtilization(){return(0,a.A)("network-utilization")},get ClockSkew(){return(0,a.A)("clock-skew")},get PingTime(){return(0,a.A)("ping-time")}};function l(e){return i[e]}const d={NodeId:["NodeId"],Host:["Host","Rack","Database","SystemState"],Database:["Database"],NodeName:["NodeName"],DC:["DC"],Rack:["Rack"],Version:["Version"],Uptime:["Uptime","DisconnectTime"],Memory:["Memory","MemoryDetailed"],RAM:["Memory"],Pools:["CPU"],CPU:["CPU"],LoadAverage:["LoadAverage"],Load:["LoadAverage"],DiskSpaceUsage:["DiskSpaceUsage"],TotalSessions:["SystemState"],Connections:["Connections"],NetworkUtilization:["NetworkUtilization"],SendThroughput:["SendThroughput"],ReceiveThroughput:["ReceiveThroughput"],PingTime:["PingTime"],ClockSkew:["ClockSkew"],Missing:["Missing"],Tablets:["Tablets","Database"],PDisks:["PDisks"]},u={NodeId:"NodeId",Host:"Host",Database:"Database",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",RAM:"Memory",CPU:"CPU",Pools:"CPU",LoadAverage:"LoadAverage",Load:"LoadAverage",DiskSpaceUsage:"DiskSpaceUsage",TotalSessions:void 0,Connections:"Connections",NetworkUtilization:"NetworkUtilization",SendThroughput:"SendThroughput",ReceiveThroughput:"ReceiveThroughput",PingTime:"PingTime",ClockSkew:"ClockSkew",Missing:"Missing",Tablets:void 0,PDisks:void 0};function c(e){return u[e]}function m(e){return Boolean(c(e))}},31911:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(48372);const n=JSON.parse('{"node-id":"Node ID","host":"Host","database":"Database","node-name":"Node Name","dc":"DC","rack":"Rack","version":"Version","uptime":"Uptime","memory":"Detailed Memory","ram":"RAM","cpu":"CPU","pools":"Pools","disk-usage":"Disk Usage","tablets":"Tablets","load-average":"Load Average","load":"Load","sessions":"Sessions","missing":"Missing","pdisks":"PDisks","field_memory-used":"Memory used","field_memory-limit":"Memory limit","system-state":"System State","connect-status":"Connect Status","utilization":"Utilization","network-utilization":"Network Utilization","connections":"Connections","clock-skew":"Clock Skew","skew":"Skew","ping-time":"Ping Time","ping":"Ping","send":"Send","receive":"Receive","max":"Max","min":"Min","avg":"Avg","sum":"Sum"}'),r=(0,a.g4)("ydb-nodes-columns",{en:n})},10576:(e,t,s)=>{s.d(t,{E:()=>g});var a=s(59284),n=s(88226),r=s(13096),o=s(44294),i=s(96927),l=s(8809),d=s(92459),u=s(7435),c=s(77506),m=s(3218),p=s(60712);const h=(0,c.cn)("pdisk-storage"),g=({data:e={},vDisks:t,showPopup:s,onShowPopup:c,onHidePopup:g,className:v,progressBarClassName:f,viewContext:S})=>{const{NodeId:k,PDiskId:N}=e,y=(0,u.f8)(k)&&(0,u.f8)(N),b=a.useRef(null);let x;return y&&(x=(0,d.Ck)(N,k)),(0,p.jsxs)("div",{className:h(null,v),ref:b,children:[null!==t&&void 0!==t&&t.length?(0,p.jsx)("div",{className:h("vdisks"),children:t.map((e=>(0,p.jsx)("div",{className:h("vdisks-item"),style:{flexGrow:Number(e.AllocatedSize)||1},children:(0,p.jsx)(l.y,{data:e,inactive:!(0,m.OH)(e,S),compact:!0})},e.StringifiedId)))}):null,(0,p.jsx)(r.P,{showPopup:s,anchorRef:b,onShowPopup:c,onHidePopup:g,popupContent:(0,p.jsx)(i.O,{data:e}),children:(0,p.jsxs)(o.E,{to:x,className:h("content"),children:[(0,p.jsx)(n.V,{diskAllocatedPercent:e.AllocatedPercent,severity:e.Severity,className:f}),(0,p.jsx)("div",{className:h("media-type"),children:e.Type})]})})]})}},99936:(e,t,s)=>{s.d(t,{z:()=>Ve});var a=s(59284),n=s(79553),r=s(98167),o=s(89073),i=s(67028),l=s(10174),d=s(90182),u=s(69775),c=s(98089),m=s(24555),p=s(53755),h=s(41775),g=s(64934),v=s(10360),f=s(370),S=s(86782);const k=["NodeId","Host","Uptime","CPU","RAM","PDisks"],N=["NodeId"],y=["Host","DC","Rack","Version","Uptime","Missing","DiskSpaceUsage"],b=y.map((e=>({value:e,content:(0,S.kn)(e)}))),x=f.z.custom((e=>y.includes(e))).catch(void 0);var w=s(44433);const D={all:"all",missing:"missing",space:"space"},I={groups:"groups",nodes:"nodes"};var C=s(60712);const j={[I.groups]:"Groups",[I.nodes]:"Nodes"},P=({value:e,onChange:t})=>(0,C.jsxs)(w.a,{value:e,onUpdate:t,qa:"storage-type-filter",children:[(0,C.jsx)(w.a.Option,{value:I.groups,children:j[I.groups]}),(0,C.jsx)(w.a.Option,{value:I.nodes,children:j[I.nodes]})]}),A={[D.all]:"All",[D.missing]:"Degraded",[D.space]:"Out of Space"},E=({value:e,onChange:t})=>(0,C.jsxs)(w.a,{value:e,onUpdate:t,qa:"storage-visible-entities-filter",children:[(0,C.jsx)(w.a.Option,{value:D.missing,children:A[D.missing]}),(0,C.jsx)(w.a.Option,{value:D.space,children:A[D.space]}),(0,C.jsx)(w.a.Option,{value:D.all,children:A[D.all]})]});var T=s(48372);const U=JSON.parse('{"groups":"Groups","nodes":"Nodes","controls_groups-search-placeholder":"Group ID, Pool name","controls_nodes-search-placeholder":"Node ID, FQDN","controls_group-by-placeholder":"Group by:","no-nodes":"No such nodes","no-groups":"No such groups"}'),R=(0,T.g4)("ydb-storage",{en:U});var M=s(59109),G=s(44508),L=s(77506);const z=(0,L.cn)("global-storage"),V=e=>403===e.status?(0,C.jsx)(M.O,{position:"left"}):(0,C.jsx)(G.o,{error:e});var W=s(67087);const H=f.z.nativeEnum(D).catch(D.all),O=f.z.nativeEnum(I).catch(I.groups);var F=s(78034);function _(){var e;const[t,s]=(0,W.useQueryParams)({type:W.StringParam,visible:W.StringParam,search:W.StringParam,uptimeFilter:W.StringParam,storageNodesGroupBy:W.StringParam,storageGroupsGroupBy:W.StringParam}),a=O.parse(t.type),n=H.parse(t.visible),r=null!==(e=t.search)&&void 0!==e?e:"",o=F.Bm.parse(t.uptimeFilter),i=v.kY.parse(t.storageGroupsGroupBy),l=x.parse(t.storageNodesGroupBy),d=e=>{s({visible:e},"replaceIn")},u=e=>{s({uptimeFilter:e},"replaceIn")};return{storageType:a,visibleEntities:n,searchValue:r,nodesUptimeFilter:o,storageGroupsGroupByParam:i,storageNodesGroupByParam:l,handleTextFilterChange:e=>{s({search:e||void 0},"replaceIn")},handleVisibleEntitiesChange:d,handleStorageTypeChange:e=>{s({type:e},"replaceIn")},handleUptimeFilterChange:u,handleStorageGroupsGroupByParamChange:e=>{s({storageGroupsGroupBy:e},"replaceIn")},handleStorageNodesGroupByParamChange:e=>{s({storageNodesGroupBy:e},"replaceIn")},handleShowAllGroups:()=>{d("all")},handleShowAllNodes:()=>{d("all"),u(F.cW.All)}}}function B({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:n,entitiesLoading:r,columnsToSelect:o,handleSelectedColumnsUpdate:i}){const{searchValue:l,storageType:d,visibleEntities:g,storageGroupsGroupByParam:f,handleTextFilterChange:S,handleStorageTypeChange:k,handleVisibleEntitiesChange:N,handleStorageGroupsGroupByParamChange:y}=_();return(0,C.jsxs)(a.Fragment,{children:[(0,C.jsx)(h.v,{value:l,onChange:S,placeholder:R("controls_groups-search-placeholder"),className:z("search")}),e&&(0,C.jsx)(P,{value:d,onChange:k}),t?null:(0,C.jsx)(E,{value:g,onChange:N}),(0,C.jsx)(u.O,{popupWidth:200,items:o,showStatus:!0,onUpdate:i,sortable:!1}),t?(0,C.jsxs)(a.Fragment,{children:[(0,C.jsx)(c.E,{variant:"body-2",children:R("controls_group-by-placeholder")}),(0,C.jsx)(m.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:f?[f]:void 0,onUpdate:e=>{y(e[0])},options:v.SE})]}):null,(0,C.jsx)(p.T,{label:R("groups"),loading:r,total:n,current:s})]})}function $({withTypeSelector:e,withGroupBySelect:t,entitiesCountCurrent:s,entitiesCountTotal:n,entitiesLoading:r,columnsToSelect:o,handleSelectedColumnsUpdate:i}){const{searchValue:l,storageType:d,visibleEntities:v,nodesUptimeFilter:f,storageNodesGroupByParam:S,handleTextFilterChange:k,handleStorageTypeChange:N,handleVisibleEntitiesChange:y,handleUptimeFilterChange:x,handleStorageNodesGroupByParamChange:w}=_();return(0,C.jsxs)(a.Fragment,{children:[(0,C.jsx)(h.v,{value:l,onChange:k,placeholder:R("controls_nodes-search-placeholder"),className:z("search")}),e&&(0,C.jsx)(P,{value:d,onChange:N}),t?null:(0,C.jsx)(E,{value:v,onChange:y}),t?null:(0,C.jsx)(g.j,{value:f,onChange:x}),(0,C.jsx)(u.O,{popupWidth:200,items:o,showStatus:!0,onUpdate:i,sortable:!1}),t?(0,C.jsxs)(a.Fragment,{children:[(0,C.jsx)(c.E,{variant:"body-2",children:R("controls_group-by-placeholder")}),(0,C.jsx)(m.l,{hasClear:!0,placeholder:"-",width:150,defaultValue:S?[S]:void 0,onUpdate:e=>{w(e[0])},options:b})]}):null,(0,C.jsx)(p.T,{label:R("nodes"),loading:r,total:n,current:s})]})}var Y=s(40427),J=s(84476),K=s(7889),Q=s(78524);const q=JSON.parse('{"default_message":"Everything is fine!","default_button_label":"Show All"}'),X=JSON.parse('{"default_message":"\u0412\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435!","default_button_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435"}'),Z=(0,T.g4)("ydb-storage-empty-filter",{ru:X,en:q}),ee=({title:e,message:t=Z("default_message"),showAll:s=Z("default_button_label"),onShowAll:a})=>(0,C.jsx)(K.p,{image:(0,C.jsx)(Q.v,{name:"thumbsUp"}),position:"left",title:e,description:t,actions:a&&[(0,C.jsx)(J.$,{onClick:a,children:s},"show-all")]});var te=s(61456);const se=({visibleEntities:e,onShowAll:t})=>{let s;return e===D.space&&(s=(0,te.A)("empty.out_of_space")),e===D.missing&&(s=(0,te.A)("empty.degraded")),s?(0,C.jsx)(ee,{title:s,showAll:(0,te.A)("show_all"),onShowAll:t}):null};var ae=s(16029),ne=s(69464),re=s(40781);const oe=({columns:e,database:t,nodeId:s,groupId:n,pDiskId:o,filterGroup:l,filterGroupBy:d,searchValue:u,visibleEntities:c,onShowAll:m,parentRef:p,renderControls:h,renderErrorMessage:g,initialEntitiesCount:f})=>{const S=(0,i.Pm)(),k=(0,i.YA)(),N=(y=k,a.useCallback((async e=>{const{limit:t,offset:s,sortParams:a,filters:n,columnsIds:r}=e,{sortOrder:o,columnId:i}=null!==a&&void 0!==a?a:{},{searchValue:l,visibleEntities:d,database:u,nodeId:c,groupId:m,pDiskId:p,filterGroup:h,filterGroupBy:g}=null!==n&&void 0!==n?n:{},f=(0,v.GP)(i),S=f?(0,ne.T)(f,o):void 0,k=(0,re.R)(r,v.YX),{groups:N,found:b,total:x}=await(0,ae.t)({limit:t,offset:s,sort:S,filter:l,with:d,database:u,nodeId:c,groupId:m,pDiskId:p,filter_group:h,filter_group_by:g,fieldsRequired:k,shouldUseGroupsHandler:y});return{data:N||[],found:b||0,total:x||0}}),[y]));var y;const b=a.useMemo((()=>({searchValue:u,visibleEntities:c,database:t,nodeId:s,groupId:n,pDiskId:o,filterGroup:l,filterGroupBy:d})),[u,c,t,s,n,o,l,d]);return(0,C.jsx)(r.r,{loading:!S,children:(0,C.jsx)(Y.k5,{columnsWidthLSKey:v.qK,parentRef:p,columns:e,fetchData:N,limit:50,initialEntitiesCount:f,renderControls:h,renderErrorMessage:g,renderEmptyDataMessage:()=>c!==D.all?(0,C.jsx)(se,{onShowAll:m,visibleEntities:c}):(0,te.A)("empty.default"),filters:b,tableName:"storage-groups"})})};var ie=s(43951),le=s(20831);function de({visibleEntities:e,viewContext:t}){const s=a.useMemo((()=>(0,le.J)({viewContext:t})),[t]),n=a.useMemo((()=>e===D.missing?[...v.LO,v.UW.Degraded]:e===D.space?[...v.LO,v.UW.DiskSpace]:v.LO),[e]);return(0,ie.K)(s,v.zY,v.H6,v.hu,n)}var ue=s(71708),ce=s(62710);function me(e){const{storageGroupsGroupByParam:t,visibleEntities:s,handleShowAllGroups:n}=_(),o=(0,i.Pm)(),l=(0,i.SA)();a.useEffect((()=>{l&&"all"!==s&&n()}),[n,l,s]);return(0,C.jsx)(r.r,{loading:!o,children:l&&t?(0,C.jsx)(he,{...e}):(0,C.jsx)(pe,{...e})})}function pe({database:e,nodeId:t,groupId:s,pDiskId:a,viewContext:n,parentRef:r,initialEntitiesCount:o}){const{searchValue:l,visibleEntities:d,handleShowAllGroups:u}=_(),c=(0,i.SA)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=de({visibleEntities:d,viewContext:n});return(0,C.jsx)(oe,{database:e,nodeId:t,groupId:s,pDiskId:a,searchValue:l,visibleEntities:d,onShowAll:u,parentRef:r,renderControls:({totalEntities:e,foundEntities:t,inited:s})=>(0,C.jsx)(B,{withTypeSelector:!0,withGroupBySelect:c,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!s,columnsToSelect:p,handleSelectedColumnsUpdate:h}),renderErrorMessage:V,columns:m,initialEntitiesCount:o})}function he({database:e,nodeId:t,groupId:s,pDiskId:a,parentRef:r,viewContext:i}){const[u]=(0,d.Nt)(),{searchValue:c,storageGroupsGroupByParam:m,visibleEntities:p,handleShowAllGroups:h}=_(),{columnsToShow:g,columnsToSelect:v,setColumns:f}=de({visibleEntities:p,viewContext:i}),{currentData:S,isFetching:k,error:N}=l.S.useGetStorageGroupsInfoQuery({database:e,with:"all",nodeId:t,groupId:s,pDiskId:a,filter:c,shouldUseGroupsHandler:!0,group:m},{pollingInterval:u}),y=void 0===S&&k,{tableGroups:b,found:x=0,total:w=0}=S||{},{expandedGroups:D,setIsGroupExpanded:I}=(0,ce.$)(b);return(0,C.jsxs)(o.L,{children:[(0,C.jsx)(o.L.Controls,{children:(0,C.jsx)(B,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:x,entitiesCountTotal:w,entitiesLoading:y,columnsToSelect:v,handleSelectedColumnsUpdate:f})}),N?(0,C.jsx)(n.o,{error:N}):null,(0,C.jsx)(o.L.Table,{loading:y,className:z("groups-wrapper"),children:null!==b&&void 0!==b&&b.length?b.map((({name:n,count:o})=>{const i=D[n];return(0,C.jsx)(ue.Q,{title:n,count:o,entityName:R("groups"),expanded:i,onIsExpandedChange:I,children:(0,C.jsx)(oe,{database:e,parentRef:r,nodeId:t,groupId:s,pDiskId:a,filterGroup:n,filterGroupBy:m,searchValue:c,visibleEntities:"all",onShowAll:h,renderErrorMessage:V,columns:g,initialEntitiesCount:o})},n)})):R("no-groups")})]})}var ge=s(67157),ve=s(71294);const fe=JSON.parse('{"empty.default":"No such nodes","empty.out_of_space":"No nodes with out of space errors","empty.degraded":"No degraded nodes","empty.small_uptime":"No nodes with uptime < 1h","empty.several_filters":"No nodes match current filters combination","show_all":"Show all nodes"}'),Se=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432","empty.out_of_space":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0443\u0437\u043b\u043e\u0432","empty.small_uptime":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432 \u0441 uptime < 1h","empty.several_filters":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u043f\u043e\u0434 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0443\u0437\u043b\u044b"}'),ke=(0,T.g4)("ydb-storage-nodes",{ru:Se,en:fe}),Ne=({visibleEntities:e,nodesUptimeFilter:t,onShowAll:s})=>{let a;return e===D.space&&(a=ke("empty.out_of_space")),e===D.missing&&(a=ke("empty.degraded")),t===F.cW.SmallUptime&&(a=ke("empty.small_uptime")),e!==D.all&&t!==F.cW.All&&(a=ke("empty.several_filters")),a?(0,C.jsx)(ee,{title:a,showAll:ke("show_all"),onShowAll:s}):null};var ye=s(11905);const be=async e=>{const{type:t="static",storage:s=!0,limit:a,offset:n,sortParams:r,filters:o,columnsIds:i}=e,{searchValue:l,nodesUptimeFilter:d,visibleEntities:u,database:c,nodeId:m,groupId:p,filterGroup:h,filterGroupBy:g}=null!==o&&void 0!==o?o:{},{sortOrder:v,columnId:f}=null!==r&&void 0!==r?r:{},k=(0,S.kU)(f),N=k?(0,ne.T)(k,v):void 0,y=(0,re.R)(i,S.fN),b=await window.api.viewer.getNodes({type:t,storage:s,limit:a,offset:n,sort:N,filter:l,uptime:(0,F.Fo)(d),with:u,database:c,node_id:m,group_id:p,filter_group:h,filter_group_by:g,fieldsRequired:y}),x=(0,ye.rz)(b);return{data:x.nodes||[],found:x.found||0,total:x.total||0}},xe=(0,L.cn)("ydb-storage-nodes"),we=e=>xe("node",{unavailable:(0,F.X7)(e)}),De=({columns:e,database:t,nodeId:s,groupId:n,filterGroup:r,filterGroupBy:o,searchValue:i,visibleEntities:l,nodesUptimeFilter:d,onShowAll:u,parentRef:c,renderControls:m,renderErrorMessage:p,initialEntitiesCount:h})=>{const g=a.useMemo((()=>({searchValue:i,visibleEntities:l,nodesUptimeFilter:d,database:t,nodeId:s,groupId:n,filterGroup:r,filterGroupBy:o})),[i,l,d,t,s,n,r,o]);return(0,C.jsx)(Y.k5,{columnsWidthLSKey:"storageNodesColumnsWidth",parentRef:c,columns:e,fetchData:be,rowHeight:51,limit:50,initialEntitiesCount:h,renderControls:m,renderErrorMessage:p,renderEmptyDataMessage:()=>l!==D.all||d!==F.cW.All?(0,C.jsx)(Ne,{onShowAll:u,nodesUptimeFilter:d,visibleEntities:l}):ke("empty.default"),getRowClassName:we,filters:g,tableName:"storage-nodes"})};var Ie=s(4557),Ce=s(78762),je=s(10576);const Pe=(0,L.cn)("ydb-storage-nodes-columns"),Ae="--maximum-slots",Ee="--maximum-disks",Te=({viewContext:e})=>({name:S.vg.PDisks,header:S.uG.PDisks,className:Pe("pdisks-column"),render:({row:t})=>{var s;const a={[Ae]:t.MaximumSlotsPerDisk,[Ee]:t.MaximumDisksPerNode};return(0,C.jsx)("div",{className:Pe("pdisks-wrapper"),style:a,children:null===(s=t.PDisks)||void 0===s?void 0:s.map((s=>{var a;const n=null===(a=t.VDisks)||void 0===a?void 0:a.filter((e=>e.PDiskId===s.PDiskId));return(0,C.jsx)("div",{className:Pe("pdisks-item"),children:(0,C.jsx)(je.E,{data:s,vDisks:n,viewContext:e})},s.PDiskId)}))})},align:Ie.Ay.CENTER,sortable:!1,resizeable:!1});function Ue({visibleEntities:e,database:t,additionalNodesProps:s,viewContext:n}){const r=a.useMemo((()=>(({database:e,additionalNodesProps:t,viewContext:s})=>{const a=null===t||void 0===t?void 0:t.getNodeRef;return[(0,Ce._E)(),(0,Ce.Nh)({getNodeRef:a,database:e}),(0,Ce.eT)(),(0,Ce.uk)(),(0,Ce.OX)(),(0,Ce.jl)(),(0,Ce.fr)(),(0,Ce.kv)(),(0,Ce.pH)(),(0,Ce.iX)(),(0,Ce.Bg)(),(0,Ce.Rn)(),(0,Ce.Vz)(),Te({viewContext:s})].map((e=>({...e,sortable:(0,S.sp)(e.name)})))})({database:t,additionalNodesProps:s,viewContext:n})),[t,s,n]),o=a.useMemo((()=>e===D.missing?[...N,S.vg.Missing]:N),[e]);return(0,ie.K)(r,"storageNodesSelectedColumns",S.uG,k,o)}const Re=e=>{const{storageNodesGroupByParam:t,visibleEntities:s,nodesUptimeFilter:n,handleShowAllNodes:o}=_(),l=(0,i.Pm)(),d=(0,i.Ye)();a.useEffect((()=>{!d||"all"===s&&n===F.cW.All||o()}),[o,n,d,s]);return(0,C.jsx)(r.r,{loading:!l,children:d&&t?(0,C.jsx)(Ge,{...e}):(0,C.jsx)(Me,{...e})})};function Me({database:e,nodeId:t,groupId:s,viewContext:a,parentRef:n,initialEntitiesCount:r}){const{searchValue:o,visibleEntities:l,nodesUptimeFilter:d,handleShowAllNodes:u}=_(),c=(0,i.Ye)(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=Le({database:e,viewContext:a});return(0,C.jsx)(De,{database:e,nodeId:t,groupId:s,searchValue:o,visibleEntities:l,nodesUptimeFilter:d,onShowAll:u,parentRef:n,renderControls:({totalEntities:e,foundEntities:t,inited:s})=>(0,C.jsx)($,{withTypeSelector:!0,withGroupBySelect:c,entitiesCountCurrent:t,entitiesCountTotal:e,entitiesLoading:!s,columnsToSelect:p,handleSelectedColumnsUpdate:h}),renderErrorMessage:V,columns:m,initialEntitiesCount:r})}function Ge({database:e,groupId:t,nodeId:s,viewContext:a,parentRef:n}){const[r]=(0,d.Nt)(),{searchValue:i,storageNodesGroupByParam:u,handleShowAllNodes:c}=_(),{columnsToShow:m,columnsToSelect:p,setColumns:h}=Le({database:e,viewContext:a}),{currentData:g,isFetching:v,error:f}=l.S.useGetStorageNodesInfoQuery({database:e,with:"all",filter:i,node_id:s,group_id:t,group:u},{pollingInterval:r}),S=void 0===g&&v,{tableGroups:k,found:N=0,total:y=0}=g||{},{expandedGroups:b,setIsGroupExpanded:x}=(0,ce.$)(k);return(0,C.jsxs)(o.L,{children:[(0,C.jsx)(o.L.Controls,{children:(0,C.jsx)($,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:N,entitiesCountTotal:y,entitiesLoading:S,columnsToSelect:p,handleSelectedColumnsUpdate:h})}),f?(0,C.jsx)(G.o,{error:f}):null,(0,C.jsx)(o.L.Table,{loading:S,className:z("groups-wrapper"),children:null!==k&&void 0!==k&&k.length?k.map((({name:a,count:r})=>{const o=b[a];return(0,C.jsx)(ue.Q,{title:a,count:r,entityName:R("nodes"),expanded:o,onIsExpandedChange:x,children:(0,C.jsx)(De,{database:e,parentRef:n,nodeId:s,groupId:t,searchValue:i,visibleEntities:"all",nodesUptimeFilter:F.cW.All,onShowAll:c,filterGroup:a,filterGroupBy:u,renderErrorMessage:V,columns:m,initialEntitiesCount:r})},a)})):R("no-nodes")})]})}function Le({database:e,viewContext:t}){const{balancer:s}=(0,ge.Zd)(),{additionalNodesProps:a}=(0,ve.B)({balancer:s}),{visibleEntities:n}=_();return Ue({additionalNodesProps:a,visibleEntities:n,database:e,viewContext:t})}var ze=s(3218);const Ve=e=>{const{storageType:t}=_();return"nodes"===t?(0,C.jsx)(Re,{initialEntitiesCount:(0,ze.b0)(e.viewContext),...e}):(0,C.jsx)(me,{initialEntitiesCount:(0,ze.QQ)(e.viewContext),...e})}},20831:(e,t,s)=>{s.d(t,{J:()=>oe,k:()=>re});var a=s(79879),n=s(4557),r=s(63291),o=s(47665),i=s(84375),l=s(99991),d=s(71661),u=s(44294),c=s(33775),m=s(13342),p=s(92459),h=s(7435),g=s(77506),v=s(76086),f=s(56839),S=s(16439),k=s(73891),N=s(41650),y=s(59284),b=s(69033),x=s(87184),w=s(8809),D=s(10576),I=s(3218),C=s(60712);const j=(0,g.cn)("ydb-storage-disks");function P({vDisks:e=[],viewContext:t}){const[s,a]=y.useState(),n=(0,I.Ep)(e),{theme:{spaceBaseSize:r}}=(0,b.L)();if(!e.length)return null;const o=(300-r*(e.length-1))/e.length;return(0,C.jsxs)("div",{className:j(null),children:[(0,C.jsx)(x.s,{direction:"row",gap:1,grow:!0,style:{width:300},children:null===e||void 0===e?void 0:e.map((e=>(0,C.jsx)(A,{vDisk:e,inactive:!(0,I.OH)(e,t),highlightedVDisk:s,setHighlightedVDisk:a,unavailableVDiskWidth:o},e.StringifiedId)))}),(0,C.jsx)("div",{className:j("pdisks-wrapper"),children:null===e||void 0===e?void 0:e.map(((e,t)=>{var r;return(0,C.jsx)(E,{vDisk:e,highlightedVDisk:s,setHighlightedVDisk:a,withDCMargin:n.includes(t)},null===e||void 0===e||null===(r=e.PDisk)||void 0===r?void 0:r.StringifiedId)}))})]})}function A({vDisk:e,highlightedVDisk:t,inactive:s,setHighlightedVDisk:a,unavailableVDiskWidth:n}){const r={...e,PDisk:void 0},o=e.StringifiedId,i=(0,h.f8)(r.AllocatedSize)?void 0:n,l=Number(r.AllocatedSize)||1;return(0,C.jsx)("div",{style:{flexGrow:l,minWidth:i},className:j("vdisk-item"),children:(0,C.jsx)(w.y,{data:r,compact:!0,inactive:s,showPopup:t===o,onShowPopup:()=>a(o),onHidePopup:()=>a(void 0),progressBarClassName:j("vdisk-progress-bar")})})}function E({vDisk:e,highlightedVDisk:t,setHighlightedVDisk:s,withDCMargin:a}){const n=e.StringifiedId;return e.PDisk?(0,C.jsx)(D.E,{className:j("pdisk-item",{"with-dc-margin":a}),progressBarClassName:j("pdisk-progress-bar"),data:e.PDisk,showPopup:t===n,onShowPopup:()=>s(n),onHidePopup:()=>s(void 0)}):null}var T=s(7187);const U="--ydb-stack-level",R=(0,g.cn)("stack"),M=({children:e,className:t})=>(0,C.jsx)("div",{className:R(null,t),children:y.Children.map(e,((e,t)=>y.isValidElement(e)?(0,C.jsx)("div",{className:R("layer"),style:{[U]:t},children:e}):null))});function G({data:e,className:t,stackClassName:s,...a}){const{Donors:n,...r}=e||{},o=n&&n.length>0?(0,C.jsxs)(M,{className:s,children:[(0,C.jsx)(w.y,{data:r,...a}),n.map((e=>{const t=(0,T.NJ)(e);return(0,C.jsx)(w.y,{data:e,...a},(0,f.U9)(t?e.VDiskId:e))}))]}):(0,C.jsx)(w.y,{data:e,...a});return(0,C.jsx)("div",{className:t,children:o})}const L=(0,g.cn)("ydb-storage-vdisks");function z({vDisks:e,viewContext:t}){const s=(0,I.Ep)(e);return(0,C.jsx)("div",{className:L("wrapper"),children:null===e||void 0===e?void 0:e.map(((e,a)=>(0,C.jsx)(G,{data:e,inactive:!(0,I.OH)(e,t),className:L("item",{"with-dc-margin":s.includes(a)})},e.StringifiedId)))})}var V=s(61456),W=s(10360);const H=(0,g.cn)("ydb-storage-groups-columns"),O={name:W.UW.PoolName,header:W.H6.PoolName,width:250,render:({row:e})=>e.PoolName?(0,C.jsx)(d.s,{content:e.PoolName,placement:["right"],behavior:r.m.Immediate,className:H("pool-name-wrapper"),children:(0,C.jsx)("span",{className:H("pool-name"),children:e.PoolName})}):v.Pd,align:n.Ay.LEFT},F={name:W.UW.MediaType,header:W.H6.MediaType,width:100,resizeMinWidth:100,align:n.Ay.LEFT,render:({row:e})=>(0,C.jsxs)("div",{children:[(0,C.jsx)(o.J,{children:e.MediaType||"\u2014"}),"\xa0",e.Encryption&&(0,C.jsx)(i.A,{content:(0,V.A)("encrypted"),placement:"right",behavior:r.m.Immediate,children:(0,C.jsx)(o.J,{children:(0,C.jsx)(l.I,{data:a.A,size:18})})})]}),sortable:!1},_={name:W.UW.Erasure,header:W.H6.Erasure,width:100,sortAccessor:e=>e.ErasureSpecies,render:({row:e})=>e.ErasureSpecies?e.ErasureSpecies:"-",align:n.Ay.LEFT},B={name:W.UW.Degraded,header:W.H6.Degraded,width:110,resizeMinWidth:110,render:({row:e})=>e.Degraded?(0,C.jsxs)(o.J,{theme:(0,I.k_)(e),children:["Degraded: ",e.Degraded]}):"-",align:n.Ay.LEFT,defaultOrder:n.Ay.DESCENDING},$={name:W.UW.State,header:W.H6.State,width:150,render:({row:e})=>{var t;return null!==(t=e.State)&&void 0!==t?t:v.Pd},align:n.Ay.LEFT,defaultOrder:n.Ay.DESCENDING},Y={name:W.UW.Usage,header:W.H6.Usage,width:85,resizeMinWidth:75,render:({row:e})=>(0,h.f8)(e.Usage)?(0,C.jsx)(m.U,{value:Math.floor(e.Usage),theme:(0,S.f)(e.Usage)}):v.Pd,align:n.Ay.LEFT},J={name:W.UW.DiskSpaceUsage,header:W.H6.DiskSpaceUsage,width:115,resizeMinWidth:75,render:({row:e})=>(0,h.f8)(e.DiskSpaceUsage)?(0,C.jsx)(m.U,{value:Math.floor(e.DiskSpaceUsage),theme:(0,S.f)(e.DiskSpaceUsage)}):v.Pd,align:n.Ay.LEFT},K={name:W.UW.GroupId,header:W.H6.GroupId,width:130,render:({row:e})=>e.GroupId?(0,C.jsx)(u.E,{className:H("group-id"),to:(0,p._g)(e.GroupId),children:e.GroupId}):"-",sortAccessor:e=>Number(e.GroupId),align:n.Ay.RIGHT},Q={name:W.UW.Used,header:W.H6.Used,width:100,render:({row:e})=>(0,N.wb)(e.Used,!0),align:n.Ay.RIGHT},q={name:W.UW.Limit,header:W.H6.Limit,width:100,render:({row:e})=>(0,N.wb)(e.Limit),align:n.Ay.RIGHT},X={name:W.UW.DiskSpace,header:W.H6.DiskSpace,width:70,render:({row:e})=>(0,C.jsx)(c.k,{status:e.DiskSpace}),align:n.Ay.CENTER},Z={name:W.UW.Read,header:W.H6.Read,width:100,render:({row:e})=>e.Read?(0,N.O4)(e.Read):"-",align:n.Ay.RIGHT},ee={name:W.UW.Write,header:W.H6.Write,width:100,render:({row:e})=>e.Write?(0,N.O4)(e.Write):"-",align:n.Ay.RIGHT},te={name:W.UW.Latency,header:W.H6.Latency,width:100,render:({row:e})=>(0,h.f8)(e.LatencyPutTabletLogMs)?(0,k.Xo)(e.LatencyPutTabletLogMs):v.Pd,align:n.Ay.RIGHT},se={name:W.UW.AllocationUnits,header:W.H6.AllocationUnits,width:150,render:({row:e})=>(0,h.f8)(e.AllocationUnits)?(0,f.ZV)(e.AllocationUnits):v.Pd,align:n.Ay.RIGHT},ae=e=>({name:W.UW.VDisks,header:W.H6.VDisks,className:H("vdisks-column"),render:({row:t})=>(0,C.jsx)(z,{vDisks:t.VDisks,viewContext:null===e||void 0===e?void 0:e.viewContext}),align:n.Ay.CENTER,width:780,resizeable:!1,sortable:!1}),ne=e=>({name:W.UW.VDisksPDisks,header:W.H6.VDisksPDisks,className:H("disks-column"),render:({row:t})=>(0,C.jsx)(P,{vDisks:t.VDisks,viewContext:null===e||void 0===e?void 0:e.viewContext}),align:n.Ay.CENTER,width:900,resizeable:!1,sortable:!1}),re=()=>[K,F,_,Y,Q,q].map((e=>({...e,sortable:!1}))),oe=e=>[K,O,F,_,B,$,Y,J,Q,q,X,Z,ee,te,se,ae(e),ne(e)].map((e=>({...e,sortable:(0,W.i4)(e.name)})))},10360:(e,t,s)=>{s.d(t,{hu:()=>u,YX:()=>f,LO:()=>c,UW:()=>d,H6:()=>m,qK:()=>i,SE:()=>g,zY:()=>l,GP:()=>k,i4:()=>N,kY:()=>v});var a=s(370),n=s(48372);const r=JSON.parse('{"pool-name":"Pool Name","type":"Type","encryption":"Encryption","erasure":"Erasure","degraded":"Degraded","missing-disks":"Missing Disks","state":"State","usage":"Usage","disk-usage":"Disk usage","group-id":"Group ID","used":"Used","limit":"Limit","space":"Space","read":"Read","write":"Write","latency":"Latency","allocation-units":"Allocation Units","vdisks":"VDisks","vdisks-pdisks":"VDisks with PDisks"}'),o=(0,n.g4)("ydb-storage-groups-columns",{en:r}),i="storageGroupsColumnsWidth",l="storageGroupsSelectedColumns",d={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:"DiskSpace",Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:"VDisks",VDisksPDisks:"VDisksPDisks",Degraded:"Degraded",State:"State"},u=["GroupId","PoolName","Erasure","Used","VDisks"],c=["GroupId"],m={get PoolName(){return o("pool-name")},get MediaType(){return o("type")},get Erasure(){return o("erasure")},get GroupId(){return o("group-id")},get Used(){return o("used")},get Limit(){return o("limit")},get Usage(){return o("usage")},get DiskSpaceUsage(){return o("disk-usage")},get DiskSpace(){return o("space")},get Read(){return o("read")},get Write(){return o("write")},get Latency(){return o("latency")},get AllocationUnits(){return o("allocation-units")},get VDisks(){return o("vdisks")},get VDisksPDisks(){return o("vdisks-pdisks")},get Degraded(){return o("missing-disks")},get State(){return o("state")}},p={get GroupId(){return o("group-id")},get Erasure(){return o("erasure")},get Usage(){return o("usage")},get DiskSpaceUsage(){return o("disk-usage")},get PoolName(){return o("pool-name")},get Kind(){return o("type")},get Encryption(){return o("encryption")},get MediaType(){return o("type")},get MissingDisks(){return o("missing-disks")},get State(){return o("state")},get Latency(){return o("latency")}},h=["PoolName","MediaType","Encryption","Erasure","Usage","DiskSpaceUsage","State","MissingDisks","Latency"],g=h.map((e=>({value:e,content:p[e]}))),v=a.z.custom((e=>h.includes(e))).catch(void 0),f={GroupId:["GroupId"],PoolName:["PoolName"],MediaType:["MediaType","Encryption"],Erasure:["Erasure"],Used:["Used"],Limit:["Limit"],Usage:["Usage"],DiskSpaceUsage:["DiskSpaceUsage"],DiskSpace:["State"],Read:["Read"],Write:["Write"],Latency:["Latency"],AllocationUnits:["AllocationUnits"],VDisks:["VDisk","PDisk","Read","Write"],VDisksPDisks:["VDisk","PDisk","Read","Write"],Degraded:["MissingDisks"],State:["State"]},S={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:void 0,Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:void 0,VDisksPDisks:void 0,Degraded:"Degraded",State:"State"};function k(e){return S[e]}function N(e){return Boolean(k(e))}},61456:(e,t,s)=>{s.d(t,{A:()=>o});var a=s(48372);const n=JSON.parse('{"empty.default":"No such groups","empty.out_of_space":"No groups with out of space errors","empty.degraded":"No degraded groups","show_all":"Show all groups","encrypted":"Encrypted group"}'),r=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f","empty.out_of_space":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0433\u0440\u0443\u043f\u043f","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0433\u0440\u0443\u043f\u043f\u044b","encrypted":"\u0417\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430"}'),o=(0,a.g4)("ydb-storage-groups",{ru:r,en:n})},71708:(e,t,s)=>{s.d(t,{Q:()=>d});s(59284);var a=s(33705),n=s(98089),r=s(47665),o=s(77506),i=s(60712);const l=(0,o.cn)("ydb-table-group");function d({children:e,title:t,entityName:s,count:o,expanded:d=!1,onIsExpandedChange:u}){const c=()=>{u(t,!d)};return(0,i.jsxs)("div",{className:l(null),children:[(0,i.jsx)("button",{onClick:c,className:l("button"),title:t,children:(0,i.jsxs)("div",{className:l("title-wrapper"),children:[(0,i.jsx)(a.I,{direction:d?"top":"bottom"}),(0,i.jsxs)("div",{className:l("title"),children:[(0,i.jsx)(n.E,{variant:"subheader-2",children:t}),(0,i.jsxs)(n.E,{variant:"body-2",color:"secondary",className:l("count"),children:[s,": ",(0,i.jsx)(r.J,{theme:"normal",children:o})]})]})]})}),d?(0,i.jsx)("div",{className:l("content"),children:e}):null]})}},62710:(e,t,s)=>{s.d(t,{$:()=>n});var a=s(59284);function n(e){const[t,s]=a.useState({});a.useEffect((()=>{null!==e&&void 0!==e&&e.length&&s((t=>e.reduce(((e,{name:s})=>{const a=t[s];return{...e,[s]:null!==a&&void 0!==a&&a}}),{})))}),[e]);return{expandedGroups:t,setIsGroupExpanded:a.useCallback(((e,t)=>{s((s=>({...s,[e]:t})))}),[])}}},3218:(e,t,s)=>{s.d(t,{Ep:()=>g,OH:()=>c,QQ:()=>h,b0:()=>p,k_:()=>u});var a=s(59284),n=s(24600),r=s(7435),o=s(16439),i=s(90182);const l=(0,o.H)(["success","warning","danger"],1,2),d={"block-4-2":(0,o.H)(["success","warning","danger"],1,2),"mirror-3-dc":(0,o.H)(["success","warning","danger"],1,3)},u=e=>{var t;return(void 0!==(t=e.ErasureSpecies)&&t in d?d[e.ErasureSpecies]:l)(e.Degraded)};function c(e,t){var s;let a=!0;return(0,r.f8)(null===(s=e.VDiskId)||void 0===s?void 0:s.GroupID)&&null!==t&&void 0!==t&&t.groupId&&(a&&=String(e.VDiskId.GroupID)===t.groupId),(0,r.f8)(e.NodeId)&&null!==t&&void 0!==t&&t.nodeId&&(a&&=String(e.NodeId)===t.nodeId),(0,r.f8)(e.PDiskId)&&null!==t&&void 0!==t&&t.pDiskId&&(a&&=String(e.PDiskId)===t.pDiskId),(0,r.f8)(e.VDiskSlotId)&&null!==t&&void 0!==t&&t.vDiskSlotId&&(a&&=String(e.VDiskSlotId)===t.vDiskSlotId),a}const m=10;function p(e){return(0,r.f8)(null===e||void 0===e?void 0:e.nodeId)||(0,r.f8)(null===e||void 0===e?void 0:e.pDiskId)||(0,r.f8)(null===e||void 0===e?void 0:e.vDiskSlotId)?1:m}function h(e){return(0,r.f8)(null===e||void 0===e?void 0:e.groupId)||(0,r.f8)(null===e||void 0===e?void 0:e.vDiskSlotId)?1:m}function g(e=[]){const t=(0,i.N4)(n.K);return a.useMemo((()=>{const s=[];return e.forEach(((a,n)=>{var r,o,i;(null===t||void 0===t||null===(r=t.get(Number(null===a||void 0===a?void 0:a.NodeId)))||void 0===r?void 0:r.DC)!==(null===t||void 0===t||null===(o=t.get(Number(null===(i=e[n+1])||void 0===i?void 0:i.NodeId)))||void 0===o?void 0:o.DC)&&s.push(n)})),s}),[e,t])}},16029:(e,t,s)=>{s.d(t,{t:()=>n});var a=s(11905);async function n({version:e="v2",shouldUseGroupsHandler:t,...s},n){if(t&&"v1"!==e){const e=await window.api.storage.getStorageGroups({...s},n);return(0,a.Rv)(e)}{const t=await window.api.viewer.getStorageInfo({version:e,...s},n);return(0,a.Qi)(t)}}},10174:(e,t,s)=>{s.d(t,{S:()=>o});var a=s(21334),n=s(16029),r=s(11905);const o=a.F.injectEndpoints({endpoints:e=>({getStorageNodesInfo:e.query({queryFn:async(e,{signal:t})=>{try{const s=await window.api.viewer.getNodes({storage:!0,type:"static",...e},{signal:t});return{data:(0,r.rz)(s)}}catch(s){return{error:s}}},providesTags:["All","StorageData"]}),getStorageGroupsInfo:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await(0,n.t)(e,{signal:t})}}catch(s){return{error:s}}},providesTags:["All","StorageData"]})}),overrideExisting:"throw"})},11905:(e,t,s)=>{s.d(t,{Rv:()=>N,rz:()=>S,Qi:()=>k});var a=s(94025),n=s(67375),r=s(7187),o=s(27295),i=s(78034);var l=s(73891),d=s(56839),u=s(51930),c=s(64036),m=s(78461);function p(e={}){var t,s,a,n;const{Whiteboard:i={},PDisk:l,...h}=e,g={...i,...h,VDiskId:i.VDiskId},v=l?function(e={}){var t,s,a;const{Whiteboard:n,...i}=e,l={...n,...i,PDiskId:null===n||void 0===n?void 0:n.PDiskId},d=i.PDiskId||(0,r.r$)(l.NodeId,l.PDiskId),{AllocatedPercent:c,AllocatedSize:p,AvailableSize:h,TotalSize:g}=(0,o.hK)({AvailableSize:l.AvailableSize,TotalSize:l.TotalSize}),v=null!==(t=null===(s=i.Type)||void 0===s?void 0:s.toUpperCase())&&void 0!==t?t:(0,m.Y)(null===n||void 0===n?void 0:n.Category),f=(0,u.d)({State:null===n||void 0===n?void 0:n.State,AllocatedPercent:c}),S=null!==(a=i.SlotSize)&&void 0!==a?a:null===n||void 0===n?void 0:n.EnforcedDynamicSlotSize;return{...l,StringifiedId:d,AllocatedPercent:c,AllocatedSize:p,AvailableSize:h,TotalSize:g,Type:v,Severity:f,SlotSize:S}}({...l,NodeId:g.NodeId}):void 0,f=null!==(t=null===v||void 0===v?void 0:v.PDiskId)&&void 0!==t?t:null===i||void 0===i?void 0:i.PDiskId,S=null!==(s=h.VDiskId)&&void 0!==s?s:(0,d.U9)(i.VDiskId),k=(0,c.b)(g),N=(0,o.LW)({AvailableSize:null!==(a=g.AvailableSize)&&void 0!==a?a:null===l||void 0===l?void 0:l.AvailableSize,AllocatedSize:g.AllocatedSize}),y=null===(n=h.Donors)||void 0===n?void 0:n.map((e=>p({...e,Whiteboard:{...e.Whiteboard,DonorMode:!0}})));return{...g,...N,PDisk:v,Donors:y,PDiskId:f,StringifiedId:S,Severity:k}}function h(e){const{DiskSpace:t,VDisks:s=[]}=e;return t||(0,r.XY)(Math.max(...s.map((e=>(0,r.H7)(e.DiskSpace)))))}const g=(e,t)=>{var s;const a=(0,o.WT)(e);return{...a,StoragePoolName:t,Donors:null===a||void 0===a||null===(s=a.Donors)||void 0===s?void 0:s.map((e=>({...e,StoragePoolName:t})))}},v=(e,t)=>{var s;let r,i=0,l=0,d=0,u=0,c=0;const{Name:m,MediaType:p}=t;if(e.VDisks)for(const h of e.VDisks){const{Replicated:e,VDiskState:t,AvailableSize:s,AllocatedSize:m,PDisk:p,ReadThroughput:g,WriteThroughput:v}=h,{Type:f,State:S,AvailableSize:k}=(0,o.or)(p);e&&S===a.t.Normal&&t===n.W.OK||(i+=1);const N=Number(null!==s&&void 0!==s?s:k)||0,y=Number(m)||0;l+=y,d+=N+y,u+=Number(g)||0,c+=Number(v)||0,r=!f||f!==r&&r?"Mixed":f}const v=null===(s=e.VDisks)||void 0===s?void 0:s.map((e=>g(e,m))),f=d?((e,t=1)=>{const s=e.Limit?100*e.Used/e.Limit:0;return Math.floor(s/t)*t})({Used:l,Limit:d},5):void 0,S=h(e);return{...e,GroupGeneration:e.GroupGeneration?String(e.GroupGeneration):void 0,GroupId:e.GroupID,Overall:e.Overall,VDisks:v,Usage:f,Read:u,Write:c,PoolName:m,Used:l,Limit:d,Degraded:i,MediaType:p||r||void 0,DiskSpace:S}},f=e=>{const{VDisks:t=[],PoolName:s,Usage:a=0,Read:n=0,Write:r=0,Used:o=0,Limit:i=0,Degraded:l=0,Kind:d,MediaType:u,GroupID:c,Overall:m,GroupGeneration:p}=e,v=t.map((e=>g(e,s))),f=100*Number(a),S=h(e);return{...e,PoolName:s,GroupId:c,MediaType:u||d,VDisks:v,Usage:f,Overall:m,GroupGeneration:p?String(p):void 0,Read:Number(n),Write:Number(r),Used:Number(o),Limit:Number(i),Degraded:Number(l),DiskSpace:S}},S=e=>{const{Nodes:t,TotalNodes:s,FoundNodes:n,NodeGroups:r,MaximumSlotsPerDisk:l,MaximumDisksPerNode:d}=e,u=null===r||void 0===r?void 0:r.map((({GroupName:e,NodeCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e))),c=((e,t)=>{if(t)return t;const s=(e||[]).flatMap((e=>{const t=e.PDisks||[],s=e.VDisks||[];return t.map((e=>s.filter((t=>t.PDiskId===e.PDiskId)).length||0))})),a=Math.max(1,...s);return String(a)})(t,l),m=((e,t)=>{if(t)return t;const s=(e||[]).map((e=>{var t;return(null===(t=e.PDisks)||void 0===t?void 0:t.length)||0})),a=Math.max(1,...s);return String(a)})(t,d),p=null===t||void 0===t?void 0:t.map((e=>((e,t,s)=>{var n,r,l;const d=(null===(n=e.PDisks)||void 0===n?void 0:n.filter((e=>e.State!==a.t.Normal)).length)||0,u=null===(r=e.PDisks)||void 0===r?void 0:r.map((t=>({...(0,o.or)(t),NodeId:e.NodeId}))),c=null===(l=e.VDisks)||void 0===l?void 0:l.map((t=>({...(0,o.WT)(t),NodeId:e.NodeId})));return{...(0,i.q1)(e.SystemState),NodeId:e.NodeId,DiskSpaceUsage:e.DiskSpaceUsage,PDisks:u,VDisks:c,Missing:d,MaximumSlotsPerDisk:t,MaximumDisksPerNode:s}})(e,c,m)));return{nodes:p,total:Number(s)||(null===p||void 0===p?void 0:p.length),found:Number(n),tableGroups:u}},k=e=>{const{StoragePools:t,StorageGroups:s,TotalGroups:a,FoundGroups:n}=e,r=((e,t)=>{let s=[];return e?s=e.map(f):null===t||void 0===t||t.forEach((e=>{var t;null===(t=e.Groups)||void 0===t||t.forEach((t=>{s.push(v(t,e))}))})),s})(s,t);return{groups:r,total:Number(a)||r.length,found:Number(n)}};function N(e){const{FoundGroups:t,TotalGroups:s,StorageGroups:a=[],StorageGroupGroups:n}=e,r=a.map((e=>{const{Usage:t,DiskSpaceUsage:s,Read:a,Write:n,Used:r,Limit:o,MissingDisks:i,VDisks:d=[],Overall:u,LatencyPutTabletLog:c,LatencyPutUserData:m,LatencyGetFast:g}=e,v=d.map(p),f=h(e);return{...e,Usage:t,DiskSpaceUsage:s,Read:Number(a),Write:Number(n),Used:Number(r),Limit:Number(o),LatencyPutTabletLogMs:(0,l.Jc)(c),LatencyPutUserDataMs:(0,l.Jc)(m),LatencyGetFastMs:(0,l.Jc)(g),Degraded:Number(i),Overall:u,VDisks:v,DiskSpace:f}})),o=null===n||void 0===n?void 0:n.map((({GroupName:e,GroupCount:t})=>{if(e&&t)return{name:e,count:Number(t)}})).filter((e=>Boolean(e)));return{groups:r,total:Number(s)||r.length,found:Number(t),tableGroups:o}}},94025:(e,t,s)=>{s.d(t,{t:()=>a});let a=function(e){return e.Initial="Initial",e.InitialFormatRead="InitialFormatRead",e.InitialFormatReadError="InitialFormatReadError",e.InitialSysLogRead="InitialSysLogRead",e.InitialSysLogReadError="InitialSysLogReadError",e.InitialSysLogParseError="InitialSysLogParseError",e.InitialCommonLogRead="InitialCommonLogRead",e.InitialCommonLogReadError="InitialCommonLogReadError",e.InitialCommonLogParseError="InitialCommonLogParseError",e.CommonLoggerInitError="CommonLoggerInitError",e.Normal="Normal",e.OpenFileError="OpenFileError",e.ChunkQuotaError="ChunkQuotaError",e.DeviceIoError="DeviceIoError",e.Missing="Missing",e.Timeout="Timeout",e.NodeDisconnected="NodeDisconnected",e.Unknown="Unknown",e}({})},67375:(e,t,s)=>{s.d(t,{W:()=>a});let a=function(e){return e.Initial="Initial",e.LocalRecoveryError="LocalRecoveryError",e.SyncGuidRecovery="SyncGuidRecovery",e.SyncGuidRecoveryError="SyncGuidRecoveryError",e.OK="OK",e.PDiskError="PDiskError",e}({})},51930:(e,t,s)=>{s.d(t,{d:()=>i});var a=s(54090),n=s(16439),r=s(5707);const o=(0,n.H)([a.m.Green,a.m.Yellow,a.m.Red]);function i(e){const t=function(e){return t=e,void 0!==t&&t in r.iZ?r.iZ[e]:r.Km;var t}(e.State),s=o(e.AllocatedPercent||0);return t!==r.Km&&s?Math.max(t,r.aW[s]):t}},64036:(e,t,s)=>{s.d(t,{b:()=>n});var a=s(5707);function n(e){const{DiskSpace:t,VDiskState:s,FrontQueues:n,Replicated:o}=e;if(!s)return a.Km;const i=r(t),l=function(e){var t;if(!e)return a.Km;return null!==(t=a.qs[e])&&void 0!==t?t:a.Km}(s),d=Math.min(a.aW.Orange,r(n));let u=Math.max(i,l,d);return o||u!==a.aW.Green||(u=a.aW.Blue),u}function r(e){var t;return e&&null!==(t=a.aW[e])&&void 0!==t?t:a.Km}},5707:(e,t,s)=>{s.d(t,{A$:()=>o,Km:()=>i,Yh:()=>l,aW:()=>r,iZ:()=>u,qs:()=>d});var a=s(94025),n=s(67375);const r={Grey:0,Green:1,Blue:2,Yellow:3,Orange:4,Red:5},o=Object.entries(r).reduce(((e,[t,s])=>({...e,[s]:t})),{}),i=r.Grey,l=o[i],d={[n.W.OK]:r.Green,[n.W.Initial]:r.Yellow,[n.W.SyncGuidRecovery]:r.Yellow,[n.W.LocalRecoveryError]:r.Red,[n.W.SyncGuidRecoveryError]:r.Red,[n.W.PDiskError]:r.Red},u={[a.t.Initial]:r.Grey,[a.t.Normal]:r.Green,[a.t.InitialFormatRead]:r.Yellow,[a.t.InitialSysLogRead]:r.Yellow,[a.t.InitialCommonLogRead]:r.Yellow,[a.t.InitialFormatReadError]:r.Red,[a.t.InitialSysLogReadError]:r.Red,[a.t.InitialSysLogParseError]:r.Red,[a.t.InitialCommonLogReadError]:r.Red,[a.t.InitialCommonLogParseError]:r.Red,[a.t.CommonLoggerInitError]:r.Red,[a.t.OpenFileError]:r.Red,[a.t.ChunkQuotaError]:r.Red,[a.t.DeviceIoError]:r.Red}},78461:(e,t,s)=>{s.d(t,{Y:()=>n});const a={HDD:"HDD",SSD:"SSD",MVME:"NVME"};function n(e){if(!e)return;const t=function(e,t){const s={};return Object.entries(t).reduce(((t,[a,n])=>{const r=e.length-t,o=r-n;return s[a]=e.substring(o,r)||"0",t+n}),0),s}(BigInt(e).toString(2),{isSolidState:1,kind:55,typeExt:8});if("1"===t.isSolidState)switch(parseInt(t.typeExt,2)){case 0:return a.SSD;case 2:return a.MVME}else if("0"===t.typeExt)return a.HDD}},7187:(e,t,s)=>{s.d(t,{H7:()=>i,NJ:()=>r,XY:()=>o,gh:()=>d,r$:()=>l});var a=s(7435),n=s(5707);function r(e){return"VDiskId"in e}function o(e){return void 0===e?n.Yh:n.A$[e]||n.Yh}function i(e){return e?n.aW[e]:0}function l(e,t){if((0,a.f8)(e)&&(0,a.f8)(t))return`${e}-${t}`}function d(e,t,s){return[e,t,s].join("-")}},27295:(e,t,s)=>{s.d(t,{LW:()=>u,WT:()=>l,hK:()=>c,or:()=>d});var a=s(56839),n=s(51930),r=s(64036),o=s(78461),i=s(7187);function l(e={}){var t;if(!(0,i.NJ)(e)){const{NodeId:t,PDiskId:s,VSlotId:n}=e;return{StringifiedId:(0,a.U9)({NodeId:t,PDiskId:s,VSlotId:n}),NodeId:t,PDiskId:s,VDiskSlotId:n}}const{PDisk:s,PDiskId:n,VDiskId:o,NodeId:c,Donors:m,AvailableSize:p,AllocatedSize:h,...g}=e,v=s?d({...s,NodeId:null!==(t=null===s||void 0===s?void 0:s.NodeId)&&void 0!==t?t:c}):void 0,f=null!==n&&void 0!==n?n:null===v||void 0===v?void 0:v.PDiskId,S=u({AvailableSize:null!==p&&void 0!==p?p:null===s||void 0===s?void 0:s.AvailableSize,AllocatedSize:h}),k=(0,r.b)(e),N=(0,a.U9)(o);return{...g,...S,VDiskId:o,NodeId:c,PDiskId:f,PDisk:v,Donors:null===m||void 0===m?void 0:m.map((e=>l({...e,DonorMode:!0}))),Severity:k,StringifiedId:N}}function d(e={}){const{AvailableSize:t,TotalSize:s,Category:a,State:r,PDiskId:l,NodeId:d,EnforcedDynamicSlotSize:u,...m}=e,p=(0,i.r$)(l,d),h=(0,o.Y)(a),g=c({AvailableSize:t,TotalSize:s}),v=(0,n.d)({State:r,AllocatedPercent:g.AllocatedPercent});return{...m,...g,PDiskId:l,NodeId:d,StringifiedId:p,Type:h,Category:a,State:r,Severity:v,SlotSize:u}}function u({AvailableSize:e,AllocatedSize:t}){const s=Number(e),a=Number(t),n=a+s;return{AvailableSize:s,AllocatedSize:a,TotalSize:n,AllocatedPercent:Math.round(100*a/n)}}function c({AvailableSize:e,TotalSize:t}){const s=Number(e),a=Number(t),n=a-s;return{AvailableSize:s,TotalSize:a,AllocatedSize:n,AllocatedPercent:Math.round(100*n/a)}}},69464:(e,t,s)=>{s.d(t,{T:()=>n});var a=s(6388);s(23536);const n=(e,t=a.xN)=>t===a.xN?`-${e}`:e},16439:(e,t,s)=>{s.d(t,{H:()=>n,f:()=>r});var a=s(76086);const n=(e,t=a.Hh,s=a.Ed)=>a=>0<=a&&a<t?e[0]:t<=a&&a<s?e[1]:s<=a?e[2]:void 0,r=n(["success","warning","danger"])},43951:(e,t,s)=>{s.d(t,{K:()=>r});var a=s(59284),n=s(59001);const r=(e,t,s,r,o)=>{const[i,l]=a.useState((()=>n.f.readUserSettingsValue(t,r)));return{columnsToShow:a.useMemo((()=>e.filter((e=>{const t=e.name,s=i.includes(t),a=null===o||void 0===o?void 0:o.includes(t);return s||a}))),[e,o,i]),columnsToSelect:a.useMemo((()=>e.map((e=>e.name)).map((e=>{const t=null===o||void 0===o?void 0:o.includes(e),a=i.includes(e);return{id:e,title:s[e],selected:t||a,required:t,sticky:t?"start":void 0}}))),[e,s,o,i]),setColumns:a.useCallback((e=>{const s=e.filter((e=>e.selected)).map((e=>e.id));n.f.setUserSettingsValue(t,s),l(s)}),[t])}}},16819:(e,t,s)=>{s.d(t,{a:()=>o});var a=s(59284),n=s(69024),r=s(59001);const o=e=>{const t=a.useCallback((()=>e?r.f.readUserSettingsValue(e,{}):{}),[e]),s=a.useCallback((t=>{e&&r.f.setUserSettingsValue(e,t)}),[e]);return(0,n.a)({saveSizes:s,getSizes:t})}},35736:(e,t,s)=>{s.d(t,{w:()=>n});var a=s(76086);function n({inverseColorize:e,warningThreshold:t=a.Hh,dangerThreshold:s=a.Ed,colorizeProgress:n,fillWidth:r}){let o=e?"danger":"good";return n&&(r>t&&r<=s?o="warning":r>s&&(o=e?"good":"danger")),o}},40781:(e,t,s)=>{function a(e,t){const s=e.reduce(((e,s)=>(t[s].forEach((t=>{e.add(t)})),e)),new Set);return Array.from(s).sort()}s.d(t,{R:()=>a})},58267:(e,t,s)=>{s.d(t,{P:()=>o,_:()=>i});var a=s(54090),n=s(6354);const r={[n.r.Dead]:a.m.Red,[n.r.Created]:a.m.Yellow,[n.r.ResolveStateStorage]:a.m.Yellow,[n.r.Candidate]:a.m.Yellow,[n.r.BlockBlobStorage]:a.m.Yellow,[n.r.WriteZeroEntry]:a.m.Yellow,[n.r.Restored]:a.m.Yellow,[n.r.Discover]:a.m.Yellow,[n.r.Lock]:a.m.Yellow,[n.r.Stopped]:a.m.Yellow,[n.r.ResolveLeader]:a.m.Yellow,[n.r.RebuildGraph]:a.m.Yellow,[n.r.Deleted]:a.m.Green,[n.r.Active]:a.m.Green},o=e=>{if(!e)return a.m.Grey;return t=e,Object.values(a.m).includes(t)?e:r[e];var t};function i(e){if(!e)return"unknown";switch(e){case n.r.Dead:return"danger";case n.r.Active:case n.r.Deleted:return"success";default:return"warning"}}}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/9842.b8ba19ad.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/9842.b8ba19ad.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/9842.b8ba19ad.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/9842.b8ba19ad.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/9872.65a6fae7.chunk.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/9872.65a6fae7.chunk.js.LICENSE.txt index a62733317c0..34dc0256d74 100644 --- a/ydb/core/viewer/monitoring/static/js/9872.65a6fae7.chunk.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/9872.65a6fae7.chunk.js.LICENSE.txt @@ -1,6 +1,6 @@ /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) + * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ diff --git a/ydb/core/viewer/monitoring/static/js/99.dd803d0d.chunk.js b/ydb/core/viewer/monitoring/static/js/99.dd803d0d.chunk.js new file mode 100644 index 00000000000..443904629b5 --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/99.dd803d0d.chunk.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[]).push([[99],{45720:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75",clipRule:"evenodd"}))},10800:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},18677:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},71153:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(59284);const a=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.835 2.244c.963-1.665 3.367-1.665 4.33 0l4.916 8.505c.964 1.666-.24 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.165-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},90099:(e,t,l)=>{l.r(t),l.d(t,{TopPanel:()=>s});var n=l(59284),a=l(55299),o=l(49034),i=l(16258);l(82435);const r=({topAlert:e})=>{const t=n.useRef(null),l=(e=>{const[t,l]=n.useState(0);return n.useEffect((()=>{if(e.current){const{current:t}=e;l(t.clientHeight)}}),[e]),t})(t),a=n.useCallback((e=>{const t=document.getElementsByClassName("g-root").item(0);null===t||void 0===t||t.style.setProperty("--gn-aside-top-panel-height",e+"px")}),[]),i=n.useCallback((()=>{var e;t.current&&a((null===(e=t.current)||void 0===e?void 0:e.clientHeight)||0)}),[t,a]);return n.useLayoutEffect((()=>{const t=(0,o.d)(i,200,{leading:!0});return e&&(window.addEventListener("resize",t),t()),()=>{window.removeEventListener("resize",t),a(0)}}),[e,l,t,i,a]),{topRef:t,updateTopSize:i}},s=({topAlert:e})=>{const{topRef:t,updateTopSize:l}=r({topAlert:e}),[o,s]=n.useState(!0),c=n.useCallback((()=>{var t;s(!1),null===(t=null===e||void 0===e?void 0:e.onCloseTopAlert)||void 0===t||t.call(e)}),[e]);return n.useEffect((()=>{o||l()}),[o,l]),e&&e.message?n.createElement("div",{ref:t,className:(0,i.b)("pane-top",{opened:o})},o&&n.createElement(n.Fragment,null,n.createElement(a.F,{className:(0,i.b)("pane-top-alert",{centered:e.centered,dense:e.dense}),corners:"square",layout:"horizontal",align:e.align,theme:e.theme||"warning",view:e.view,icon:e.icon,title:e.title,message:e.message,actions:e.actions,onClose:e.closable?c:void 0}),n.createElement("div",{className:(0,i.b)("pane-top-divider")}))):null}},55299:(e,t,l)=>{l.d(t,{F:()=>T});var n=l(59284),a=l(81240),o=l(84476),i=l(80604),r=l(99991),s=l(63365),c=l(46423),d=l(87184);const m=n.createContext(null),u=()=>{const e=n.useContext(m);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},v=e=>{const{view:t}=u();return n.createElement(o.$,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};var w=l(69220);const g=(0,w.om)("alert"),h=({layout:e,view:t,children:l})=>n.createElement(m.Provider,{value:{layout:e,view:t}},l);var p=l(18677),f=l(10800),E=l(45720),b=l(43937);const A=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m3.1-8.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}));var y=l(70825),C=l(71153),x=l(94420);const N=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.22 2.22 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414"}));var z=l(27612);const k={danger:{filled:p.A,outlined:f.A},info:{filled:E.A,outlined:b.A},success:{filled:A,outlined:y.A},warning:{filled:C.A,outlined:x.A},utility:{filled:N,outlined:z.A},normal:null};var L=l(98089);var R=l(72837);const M=JSON.parse('{"label_close":"Close"}'),O=JSON.parse('{"label_close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),j=(0,R.N)({en:M,ru:O},"Alert"),T=e=>{const{theme:t="normal",view:l="filled",layout:m="vertical",message:u,className:v,corners:w,style:p,onClose:f,align:E,qa:b}=e;return n.createElement(h,{layout:m,view:l},n.createElement(i.Z,{style:p,className:g({corners:w},(0,c.Y)({py:4,px:5},v)),theme:t,view:l,qa:b},n.createElement(d.s,{gap:"3",alignItems:E},"undefined"===typeof e.icon?n.createElement(T.Icon,{theme:t,view:l}):e.icon,n.createElement(d.s,{direction:"vertical"===m?"column":"row",gap:"5",grow:!0},n.createElement(d.s,{gap:"2",grow:!0,className:g("text-content")},n.createElement(d.s,{direction:"column",gap:"1",grow:!0,justifyContent:E},"string"===typeof e.title?n.createElement(T.Title,{text:e.title}):e.title,u)),Array.isArray(e.actions)?n.createElement(T.Actions,{items:e.actions}):e.actions),f&&n.createElement(o.$,{view:"flat",className:g("close-btn"),onClick:f,extraProps:{"aria-label":j("label_close")}},n.createElement(r.I,{data:a.A,size:18,className:(0,s.$)({color:"secondary"})})))))};T.Icon=({className:e,theme:t,view:l="filled",size:a=18})=>{const o=k[t];if(!o)return null;let i;return"success"===t?i="positive":"normal"!==t&&(i=t),n.createElement("div",{className:g("icon",(0,s.$)({color:i},e))},n.createElement(r.I,{data:o[l],size:a}))},T.Title=({text:e,className:t})=>n.createElement(L.E,{variant:"subheader-2",className:g("title",t)},e),T.Actions=({items:e,children:t,className:l})=>{const{layout:a}=u();return n.createElement(d.s,{className:g("actions",{minContent:"horizontal"===a},l),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===a?"center":"flex-start"},(null===e||void 0===e?void 0:e.map((({handler:e,text:t},l)=>n.createElement(v,{key:l,onClick:e},t))))||t)},T.Action=v},80604:(e,t,l)=>{l.d(t,{Z:()=>s});var n=l(27145),a=l(59284),o=l(46734),i=l(9296);const r=(0,l(69220).om)("card"),s=a.forwardRef((function(e,t){const{type:l="container",theme:s,view:c,size:d="m",children:m,className:u,onClick:v,disabled:w,selected:g}=e,h=(0,n.Tt)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),p="selection"===l,f="container"===l,E=("action"===l||p)&&Boolean(v)&&!w,b=f?"normal":void 0,A=f||p?"outlined":void 0,y=E?v:void 0,{onKeyDown:C}=(0,o.N)(v);return a.createElement(i.a,Object.assign({ref:t,role:E?"button":void 0,className:r({theme:s||b,view:c||A,type:l,selected:g,size:d,disabled:w,clickable:E},u),onClick:y,onKeyDown:E?C:void 0,tabIndex:E?0:void 0},h),m)}))}}]);
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/main.3b2c9faf.js b/ydb/core/viewer/monitoring/static/js/main.3b2c9faf.js deleted file mode 100644 index 4c6a81de5c4..00000000000 --- a/ydb/core/viewer/monitoring/static/js/main.3b2c9faf.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see main.3b2c9faf.js.LICENSE.txt */ -(()=>{var e={34271:(e,t,n)=>{"use strict";n.d(t,{I:()=>a,x:()=>s});var r=n(59284),o=n(60712);const i=r.createContext(void 0);function a({children:e,registry:t}){return(0,o.jsx)(i.Provider,{value:t,children:e})}function s(e){const t=r.useContext(i);if(void 0===t)throw new Error("useComponent must be used within ComponentsProvider");return t.get(e)}},7889:(e,t,n)=>{"use strict";n.d(t,{p:()=>x,q:()=>E});var r,o,i,a,s,l,c,u,d,f,p,h=n(99991),m=n(77506),g=n(59284);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}const y=function(e){return g.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 383 396",fill:"none"},e),r||(r=g.createElement("path",{d:"M307.333 168.43c9.4-14.2 14.1-32.6 14.1-55.3 0-34.4-11.7-61.9-35.3-82.2-23.4-20.5-63-30.7-106.7-30.7-13.1 0-24.1.9-34.8 2.7-10.7 1.8-20.1 3.9-28.2 6.3-5.4 1.6-16.1 5.7-23.3 8.6-4.1 1.7-6.9 6-6.9 10.8v39.5c0 8.2 7.8 13.8 14.9 10.5a458.74 458.74 0 001.806-.818c2.367-1.074 4.452-2.02 5.894-2.581 5.7-2.3 12.4-4.2 20.1-5.8 7.7-1.6 16.3-2.4 25.7-2.4 22.2 0 43.1 5 52.3 14.9 9.2 10 13.8 22.499 13.8 37.499 0 13-2.7 24.1-8.2 33.2-5.5 9.1-13.1 18-22.9 26.5-7.9 6.9-15.2 13.5-22 19.8-6.8 6.3-12.6 13.2-17.5 20.7s-8.7 16-11.3 25.3c-1.6 5.6-2.7 20.3-3.3 31-.3 6.6 4.5 12.2 10.7 12.2h51.2c5.4 0 10-4.4 10.6-10.2.6-5.7 2-12.5 5.5-17.8 4-5.9 8.7-11.8 14.7-17.3s13-11 20.9-16.7c8-5.6 16.2-12.1 24.9-19.4 12.8-11.4 23.9-24.1 33.3-38.3zm-167.6 212.7c9 9.5 20.1 14.2 33.4 14.2 6.3 0 12.4-1.3 18.2-4 5.8-2.6 10.9-6 15.2-10.3 4.3-4.3 7.7-9.4 10.2-15.2 2.5-5.8 3.7-12.1 3.7-19 0-6.8-1.2-13.2-3.7-19-2.5-5.8-5.9-10.9-10.2-15.4-4.3-4.5-9.4-7.9-15.2-10.3-5.8-2.4-11.9-3.6-18.2-3.6-13.3 0-24.4 4.6-33.4 13.9s-13.5 20.8-13.5 34.5c0 13.4 4.5 24.8 13.5 34.2z",fill:"#ECF2F9"})),o||(o=g.createElement("path",{d:"M213.933 353.03h-193.5c-10 0-18.2-8.2-18.2-18.2v-125.4c0-10 8.2-18.2 18.2-18.2h193.5c10 0 18.2 8.2 18.2 18.2v125.4c0 10.1-8.2 18.2-18.2 18.2z",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),i||(i=g.createElement("path",{d:"M21.034 214.732a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.899 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.9 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4z",fill:"#2EE5C0"})),a||(a=g.createElement("path",{d:"M2.533 228.129h228.9",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),s||(s=g.createElement("path",{d:"M301.033 264.83l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5V96.93c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#027BF3"})),l||(l=g.createElement("path",{d:"M90.433 107.93c3.4.2 6.1-2.4 6.1-5.8s-2.7-6.3-6.1-6.4c-3.3-.2-6.1 2.4-6.1 5.8s2.7 6.3 6.1 6.4zm19.8.798c3.3.1 6-2.5 6-5.8s-2.7-6.1-6-6.3c-3.3-.1-6 2.5-6 5.8s2.7 6.2 6 6.3zm25.2-4.9c0 3.3-2.6 5.9-5.8 5.7-3.2-.1-5.9-2.9-5.9-6.2 0-3.3 2.6-5.9 5.9-5.7 3.2.1 5.8 2.9 5.8 6.2zm66.001 61.703l19.1-20.9 17.4 19.1-18.9 20.9 18.9 20.5-17.4 19.5-19.1-20.5-19.4 21.5-18.1-19.1 19.6-21.5-19.6-21 18.1-19.5 19.4 21z",fill:"#fff"})),c||(c=g.createElement("path",{d:"M327.433 112.83c0-28.4-21.7-37.1-33.5-37.9-.1 0-33.5 2.3-33.5 45.3 0 25.5 21.2 45.5 46 44.6 7.8-.3 14.9-2.6 21-6.4v-45.6z",fill:"#67B0F8"})),u||(u=g.createElement("path",{d:"M380.534 195.931c-2.9 3.4-7.6 3.7-10.5.8l-38.6-39 11.3-12.2 37.8 39c2.9 3 2.9 8 0 11.4z",fill:"#FF4645"})),d||(d=g.createElement("path",{d:"M342.833 145.629l-11.3 12.2 3.7 3.7c1.9 1.9 4.9 2 6.8.2 1.1-1 2.2-2.1 3.2-3.2.6-.7 1.3-1.4 1.9-2.1 1.6-1.9 1.5-4.8-.3-6.6l-4-4.2z",fill:"#D93654"})),f||(f=g.createElement("path",{d:"M267.633 154.13c-23-21.401-23-57.3 0-78.1 21.9-19.8 55.1-17 74.4 4.3 18.4 20.399 18.4 51.7 0 71.6-19.3 20.8-52.5 22.6-74.4 2.2zm9.4-10.802c15.6 15 39.8 14.2 54.1-.9 13.8-14.6 13.8-37.8 0-52.8-14.3-15.5-38.5-17-54.1-2.5-16.2 15.1-16.2 40.7 0 56.2z",fill:"#00236B"})),p||(p=g.createElement("path",{d:"M41.034 42.73a2 2 0 10-4 0h4zm-4 8.3a2 2 0 004 0h-4zm4 17.2a2 2 0 10-4 0h4zm-4 8.9a2 2 0 004 0h-4zm19.2-15.2a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm-17.9 4a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm15.1-15.2v8.3h4v-8.3h-4zm0 25.5v8.9h4v-8.9h-4zm19.2-10.3h-8.2v4h8.2v-4zm-26.1 0h-8.2v4h8.2v-4z",fill:"#2EE5C0"})))};var b=n(60712);const w=(0,m.cn)("empty-state"),_={s:150,m:250,l:350},x=({image:e,title:t,description:n,actions:r,size:o="m",position:i="center"})=>(0,b.jsx)("div",{className:w({size:o}),children:(0,b.jsxs)("div",{className:w("wrapper",{size:o,position:i}),children:[(0,b.jsx)("div",{className:w("image"),children:e||(0,b.jsx)(h.I,{data:y,width:_[o],height:_[o]})}),(0,b.jsx)("div",{className:w("title",{size:o}),children:t}),(0,b.jsx)("div",{className:w("description"),children:n}),(0,b.jsx)("div",{className:w("actions"),children:r})]})});function E({isEmpty:e,children:t,className:n,...r}){return e?(0,b.jsx)("div",{className:n,children:(0,b.jsx)(x,{...r})}):t}},88632:(e,t,n)=>{"use strict";n.d(t,{tH:()=>L,jt:()=>F,lQ:()=>z});var r=n(59284),o=n(41668),i=n(90826);const a=r.createContext(void 0),s=r.createContext(void 0);function l(e){const{size:t,disabled:n,defaultExpanded:o,arrowPosition:l,summary:c,keepMounted:u,onUpdate:d,expanded:f}=e,[p,h]=r.useState((()=>Boolean(o))),m=void 0!==f,g=(0,i.u)(),v=`disclosure${g}`;return r.createElement(a.Provider,{value:{size:t,disabled:n,summary:c,arrowPosition:l,keepMounted:u,expanded:m?f:p,ariaControls:g,ariaLabelledby:v}},r.createElement(s.Provider,{value:()=>{h((e=>!e));d(m?!f:!p)}},e.children))}function c(){const e=r.useContext(a);if(void 0===e)throw new Error("useDisclosureAttributes must be used within DisclosureProvider");return e}var u=n(72630),d=n(6826);const f=(0,n(69220).om)("disclosure"),p="disclosure-summary",h="disclosure-details";function m({children:e}){const t=r.useRef(null),{ariaControls:n,ariaLabelledby:o,keepMounted:i,expanded:a}=c();return r.createElement(u.A,{nodeRef:t,in:a,addEndListener:e=>{var n;return null===(n=t.current)||void 0===n?void 0:n.addEventListener("animationend",e)},classNames:(0,d.L)(f),mountOnEnter:!i,unmountOnExit:!i,appear:!0},r.createElement("div",{ref:t,id:n,role:"region","aria-labelledby":o,className:f("content",{visible:a}),"data-qa":h},e))}m.displayName="DisclosureDetails";var g=n(33705),v=n(27629);const y={m:14,l:16,xl:20};function b(){(0,v.m)('[Disclosure] Physical values (left, right) of "arrowPosition" property are deprecated. Use logical values (start, end) instead.')}function w({children:e}){const t=function(){const e=r.useContext(s);if(void 0===e)throw new Error("useToggleDisclosure must be used within DisclosureProvider");return e}(),{ariaControls:n,ariaLabelledby:o,expanded:i,disabled:a}=c(),l={onClick:t,ariaControls:n,id:o,expanded:i,disabled:a};return e(l,r.createElement(_,Object.assign({},l)))}function _({onClick:e,ariaControls:t,id:n,expanded:o,disabled:i}){const{size:a,summary:s,arrowPosition:l}=c();let u=l;return"left"===u&&(b(),u="start"),"right"===u&&(b(),u="end"),r.createElement("button",{type:"button","aria-expanded":o,className:f("trigger",{disabled:i,arrow:u}),"aria-controls":t,id:n,onClick:e,disabled:i,"data-qa":p},r.createElement(g.I,{size:y[a],direction:o?"top":"bottom"}),s)}w.displayName="DisclosureSummary";const x=(0,o.g)(w),E=r.forwardRef((function(e,t){const{size:n="m",disabled:o=!1,defaultExpanded:i=!1,arrowPosition:a="start",summary:s="",className:c,keepMounted:u=!0,children:d,onUpdate:p=()=>{},expanded:h,qa:g}=e,[v,y]=function(e){const t=r.Children.toArray(e);let n,o;const i=[];for(const r of t){if(x(r)){if(n)throw new Error("Only one <Disclosure.Summary> component is allowed");n=r}else i.push(r)}i.length>0&&(o=r.createElement(m,null,i));n||(n=r.createElement(w,null,(e=>r.createElement(_,Object.assign({},e)))));return[n,o]}(d);return r.createElement(l,{disabled:o,defaultExpanded:i,expanded:h,keepMounted:u,size:n,summary:s,arrowPosition:a,onUpdate:p},r.createElement("section",{ref:t,className:f({size:n},c),"data-qa":g},v,y))}));E.Summary=w,E.displayName="Disclosure";var S=n(84476);const k=(0,r.createContext)(null),C={didCatch:!1,error:null};class O extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=C}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(C)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(C))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:o}=this.props,{didCatch:i,error:a}=this.state;let s=e;if(i){const e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"===typeof t)s=t(e);else if(n)s=(0,r.createElement)(n,e);else{if(null!==o&&!(0,r.isValidElement)(o))throw a;s=o}}return(0,r.createElement)(k.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}var N=n(77506);var T=n(34271),I=n(78524),A=n(48372);const P=JSON.parse('{"error-title":"Something went wrong","error-description":"We have something broken, but don\'t worry, it won\'t last long","show-details":"Show details","report-problem":"Report a problem","button-reset":"Try again"}'),D=JSON.parse('{"error-title":"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a","error-description":"\u0423 \u043d\u0430\u0441 \u0447\u0442\u043e-\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c, \u043d\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0439\u0442\u0435, \u044d\u0442\u043e \u043d\u0435\u043d\u0430\u0434\u043e\u043b\u0433\u043e","show-details":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u0438","report-problem":"\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435","button-reset":"\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u043d\u043e\u0432\u0430"}'),R=(0,A.g4)("ydb-error-boundary",{ru:D,en:P});var j=n(60712);const M=(0,N.cn)("ydb-error-boundary");function L({children:e}){const t=(0,T.x)("ErrorBoundary");return(0,j.jsx)(t,{children:e})}function z({children:e,useRetry:t=!0,onReportProblem:n}){return(0,j.jsx)(O,{onError:(e,t)=>{var n;!function(e,t,n="error"){var r;"undefined"!==typeof window&&null!==(r=window.Ya)&&void 0!==r&&r.Rum?window.Ya.Rum.logError({additional:{url:window.location.href},type:n,message:t,level:window.Ya.Rum.ERROR_LEVEL.ERROR},e):console.error(e)}(e,null!==(n=t.componentStack)&&void 0!==n?n:void 0,"error-boundary")},fallbackRender:({error:e,resetErrorBoundary:r})=>(0,j.jsx)(F,{error:e,useRetry:t,resetErrorBoundary:r,onReportProblem:n}),children:e})}function F({error:e,resetErrorBoundary:t,useRetry:n,onReportProblem:r}){return(0,j.jsxs)("div",{className:M(),children:[(0,j.jsx)(I.v,{name:"error",className:M("illustration")}),(0,j.jsxs)("div",{className:M("content"),children:[(0,j.jsx)("h2",{className:M("error-title"),children:R("error-title")}),(0,j.jsx)("div",{className:M("error-description"),children:R("error-description")}),(0,j.jsx)(E,{summary:R("show-details"),className:M("show-details"),size:"m",children:(0,j.jsx)("pre",{className:M("error-details"),children:e.stack})}),(0,j.jsxs)("div",{className:M("actions"),children:[n&&(0,j.jsx)(S.$,{view:"outlined",onClick:t,children:R("button-reset")}),r&&(0,j.jsx)(S.$,{view:"outlined",onClick:()=>r(e),children:R("report-problem")})]})]})]})}},59109:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(7889),o=n(78524),i=n(31062),a=n(60712);const s=({title:e,description:t,...n})=>(0,a.jsx)(r.p,{image:(0,a.jsx)(o.v,{name:"403"}),title:e||(0,i.A)("403.title"),description:t||(0,i.A)("403.description"),...n})},64689:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,P:()=>d});var r=n(59284),o=n(7889),i=n(78524),a=n(59109),s=n(44508),l=n(31062),c=n(60712);function u({title:e,description:t,error:n,children:u,...f}){return d(n)?(0,c.jsx)(a.O,{title:e,description:t,...f}):n||t?(0,c.jsx)(o.p,{image:(0,c.jsx)(i.v,{name:"error"}),title:e||(0,l.A)("error.title"),description:n?(0,c.jsx)(s.o,{error:n}):t,...f}):(0,c.jsx)(r.Fragment,{children:u})}function d(e){return Boolean(e&&"object"===typeof e&&"status"in e&&(403===e.status||401===e.status))}},79553:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(31062),o=n(60712);const i=({error:e,className:t,defaultMessage:n=(0,r.A)("responseError.defaultMessage")})=>{let i="";return e&&"string"===typeof e&&(i=e),e&&"object"===typeof e&&("data"in e&&"string"===typeof e.data?i=e.data:"statusText"in e&&"string"===typeof e.statusText?i=e.statusText:"message"in e&&"string"===typeof e.message&&(i=e.message)),(0,o.jsx)("div",{className:`error ${t}`,children:i||n})}},44508:(e,t,n)=>{"use strict";n.d(t,{o:()=>r.o});var r=n(79553)},31062:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(48372);const o=JSON.parse('{"403.title":"Access denied","403.description":"You don\u2019t have the necessary roles to view this page.","responseError.defaultMessage":"Response error","error.title":"Error"}'),i=JSON.parse('{"403.title":"\u0414\u043e\u0441\u0442\u0443\u043f \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d","403.description":"\u0423 \u0432\u0430\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0430\u0432 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.","responseError.defaultMessage":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","error.title":"\u041e\u0448\u0438\u0431\u043a\u0430"}'),a=(0,r.g4)("ydb-errors-access-denied",{ru:i,en:o})},78524:(e,t,n)=>{"use strict";n.d(t,{v:()=>c});var r=n(59284),o=n(22680),i=n(77506),a=n(60712);const s={light:{403:()=>n.e(7329).then(n.bind(n,67329)),thumbsUp:()=>n.e(3238).then(n.bind(n,73238)),error:()=>n.e(3872).then(n.bind(n,3872))},dark:{403:()=>n.e(1299).then(n.bind(n,81299)),thumbsUp:()=>n.e(5875).then(n.bind(n,98256)),error:()=>n.e(6990).then(n.bind(n,56990))}},l=(0,i.cn)("kv-illustration"),c=({name:e,className:t,...n})=>{const i=(0,o.i)(),[c,u]=r.useState(""),d=s[i]&&s[i][e];return r.useEffect((()=>{"function"===typeof d&&d().then((e=>u(e.default))).catch((e=>{console.error(e),u("")}))}),[d]),c?(0,a.jsx)("img",{alt:e,src:c,className:l(null,t),...n}):null}},18863:(e,t,n)=>{"use strict";n.d(t,{z:()=>l});var r=n(59284),o=n(77506),i=n(5741),a=n(60712);const s=(0,o.cn)("info-viewer"),l=({title:e,info:t,dots:n=!0,size:o,className:l,multilineLabels:c,renderEmptyState:u})=>t&&t.length||!u?(0,a.jsxs)("div",{className:s({size:o},l),children:[e&&(0,a.jsx)("div",{className:s("title"),children:e}),t&&t.length>0?(0,a.jsx)("div",{className:s("items"),children:t.map(((e,t)=>(0,a.jsxs)("div",{className:s("row"),children:[(0,a.jsxs)("div",{className:s("label"),children:[(0,a.jsx)("div",{className:s("label-text",{multiline:c}),children:e.label}),n&&(0,a.jsx)("div",{className:s("dots")})]}),(0,a.jsx)("div",{className:s("value"),children:e.value})]},t)))}):(0,i.A)("no-data")]}):(0,a.jsx)(r.Fragment,{children:u({title:e,size:o})})},5741:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(48372);const o=JSON.parse('{"common.created":"Created","common.type":"Type","no-data":"No data"}'),i=(0,r.g4)("ydb-components-info-viewer",{en:o})},60073:(e,t,n)=>{"use strict";n.d(t,{Hr:()=>o.H,jl:()=>o.j,z_:()=>r.z});var r=n(18863),o=n(82176)},82176:(e,t,n)=>{"use strict";function r(e,t){var n;return null!==(n=t[e])&&void 0!==n?n:e}function o(e,t,n,r){const o=n[e]||r;return o?o(t):t}function i({values:e,labels:t,defaultValueFormatter:n}){return(i,a)=>({label:r(i,t||{}),value:o(i,a,e||{},n)})}n.d(t,{H:()=>i,j:()=>a});const a=(e,t)=>t?Object.entries(t).map((([t,n])=>e(t,n))).filter((({value:e})=>Boolean(e))):[]},82015:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(52905),o=n(77506),i=n(60712);const a=(0,o.cn)("g-link"),s=({className:e,to:t,onClick:n,...o})=>t?(0,i.jsx)(r.N_,{to:t,onClick:n,className:a({view:"normal"},e),...o}):(0,i.jsx)("span",{className:e,onClick:n,children:o.children})},44294:(e,t,n)=>{"use strict";n.d(t,{E:()=>r.E});var r=n(82015)},25196:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var r=n(59284),o=n(112),i=n(67884),a=n(77506),s=n(44294),l=n(60712);const c=(0,a.cn)("ydb-link-with-icon"),u=({title:e,url:t,external:n=!0,className:a})=>{const u=(0,l.jsxs)(r.Fragment,{children:[e,"\xa0",(0,l.jsx)(o.A,{})]});return n?(0,l.jsx)(i.N,{href:t,target:"_blank",className:c(null,a),children:u}):(0,l.jsx)(s.E,{to:t,className:c(null,a),children:u})}},47334:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(74417),o=n(77506),i=n(66781),a=n(60712);const s=(0,o.cn)("ydb-loader"),l=({size:e="m",delay:t=600,className:n})=>{const[o]=(0,i.y)(t);return o?(0,a.jsx)("div",{className:s(null,n),children:(0,a.jsx)(r.a,{size:e})}):null}},98167:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});n(59284);var r=n(47334),o=n(60712);function i({loading:e,size:t="m",className:n,children:i}){return e?(0,o.jsx)(r.a,{size:t,className:n}):i}},80176:(e,t,n)=>{"use strict";n.d(t,{p:()=>p,HG:()=>b,nL:()=>v,Qz:()=>y});var r=n(40336),o=n(78668),i=n(77506),a=n(90182),s=n(25196),l=n(48372);const c=JSON.parse('{"field_rack":"Rack","field_host":"Host","context_developer-ui":"Developer UI","field_database":"Database","field_roles":"Roles"}'),u=(0,l.g4)("ydb-node-name-tooltip",{en:c});var d=n(60712);const f=(0,i.cn)("ydb-node-endpoints-tooltip-content"),p=({data:e,nodeHref:t})=>{var n,i;const l=(0,a.N4)(o._5),c=[];return null!==e&&void 0!==e&&null!==(n=e.Roles)&&void 0!==n&&n.length&&c.push({name:u("field_roles"),children:e.Roles.join(", "),key:"Roles"}),null!==e&&void 0!==e&&null!==(i=e.Tenants)&&void 0!==i&&i[0]&&c.push({name:u("field_database"),children:e.Tenants[0],key:"Database"}),null!==e&&void 0!==e&&e.Host&&c.push({name:u("field_host"),children:e.Host,copyText:e.Host,key:"Host"}),null!==e&&void 0!==e&&e.Rack&&c.push({name:u("field_rack"),children:e.Rack,key:"Rack"}),null!==e&&void 0!==e&&e.Endpoints&&e.Endpoints.length&&e.Endpoints.forEach((({Name:e,Address:t})=>{e&&t&&c.push({name:e,children:t,key:e})})),l&&t&&c.push({name:"Links",children:(0,d.jsx)(s.K,{title:u("context_developer-ui"),url:t}),key:"developerUi"}),(0,d.jsx)("div",{className:f("list-container"),children:(0,d.jsx)(r.u,{responsive:!0,children:c.map((({children:e,key:t,...n})=>(0,d.jsx)(r.u.Item,{...n,children:(0,d.jsx)("div",{className:f("definition"),children:e})},t)))})})};var h=n(86200),m=n(60073);const g=(0,m.Hr)({values:{ChangeTime:e=>(0,h.H7)(e)},labels:{TabletId:"Tablet"},defaultValueFormatter:e=>e&&String(e)}),v=({data:e={},className:t})=>{const{TabletId:n,NodeId:r,State:o,Type:i,ChangeTime:a,Generation:s}=e,l=(0,m.jl)(g,{TabletId:n,NodeId:r,State:o,Type:i,ChangeTime:a,Generation:s});return(0,d.jsx)(m.z_,{className:t,info:l,dots:!1,size:"s"})},y=(0,m.Hr)({values:{Usage:e=>e&&`${(100*Number(e)).toFixed(2)} %`},labels:{Name:"Pool"},defaultValueFormatter:e=>e&&String(e)}),b=({data:e={},className:t})=>{const n=(0,m.jl)(y,e);return(0,d.jsx)(m.z_,{className:t,info:n,dots:!1,size:"s"})}},71294:(e,t,n)=>{"use strict";n.d(t,{B:()=>f,s:()=>d});var r=n(59284),o=n(67087),i=n(39567),a=n(58351),s=n(77630);const l=(e=a.Hs,t)=>({getNodeRef:(n={})=>(0,s.Vk)(n,null!==e&&void 0!==e?e:"",t)});var c=n(76086),u=n(90182);function d(){const[e]=(0,o.useQueryParam)("clusterName",o.StringParam),{data:t}=i.ub.useGetClustersListQuery(void 0),n=r.useMemo((()=>(t||[]).find((t=>t.name===e))),[t,e]),{solomon:a,balancer:s,versions:l,cluster:c}=n||{};return{monitoring:a,balancer:s,versions:l,cluster:c,...f({balancer:s})}}function f({balancer:e}){const[t]=(0,u.iK)(c.s2);return{additionalNodesProps:l(e,t),useClusterBalancerAsBackend:t}}},87842:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>o,a:()=>f,bn:()=>u,eC:()=>d});var r=n(92459);const o={overview:"overview",tenants:"tenants",nodes:"nodes",storage:"storage",versions:"versions",tablets:"tablets"},i={id:o.overview,title:"Overview"},a={id:o.tenants,title:"Databases"},s={id:o.nodes,title:"Nodes"},l={id:o.storage,title:"Storage"},c={id:o.versions,title:"Versions"},u=[i,a,s,l,{id:o.tablets,title:"Tablets"},c];function d(e){return Object.values(o).includes(e)}const f=(e,t={})=>(0,r.KY)(r.Ay.cluster,e?{activeTab:e}:void 0,t)},29819:(e,t,n)=>{"use strict";n.d(t,{Gi:()=>u,O3:()=>i,mX:()=>l,q7:()=>a,qn:()=>c,vI:()=>d,wS:()=>s});var r=n(67087),o=n(92459);const i="storage",a="tablets",s="overview",l="structure",c=[{id:s,name:"Overview"},{id:i,name:"Storage"},{id:l,name:"Structure"},{id:a,name:"Tablets"}],u={database:r.StringParam};function d(e,t={},n=s){return(0,o.KY)(o.Ay.node,{id:e,activeTab:n},t)}},54309:(e,t,n)=>{"use strict";n.d(t,{YL:()=>l,nb:()=>s,vh:()=>i,x$:()=>a});var r=n(92459),o=n(52531);const i={summaryTab:"summaryTab",queryTab:"queryTab",diagnosticsTab:"diagnosticsTab",metricsTab:"metricsTab"},a=[{id:o.ml.overview,title:"Overview"},{id:o.ml.acl,title:"ACL"}],s=[{id:o.ml.schema,title:"Schema"}],l=e=>(0,r.KY)(r.Ay.tenant,void 0,e)},2764:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ASIDE_HEADER_COMPACT_KEY:()=>Be.LQ,AUTOCOMPLETE_ON_ENTER:()=>Be.IO,AUTO_REFRESH_INTERVAL:()=>Be.av,AUTO_RELOAD_INTERVAL:()=>Be.oU,AppSlots:()=>r,AsideNavigation:()=>gi,BINARY_DATA_IN_PLAIN_TEXT_DISPLAY:()=>Be.RY,CASE_SENSITIVE_JSON_SEARCH:()=>Be.iD,CLUSTER_DEFAULT_TITLE:()=>Be.QM,COLORS_PRIORITY:()=>Be.Ay,DATA_QA_TUNE_COLUMNS_POPUP:()=>Be.KL,DAY_IN_SECONDS:()=>Be.tt,DEFAULT_CLUSTER_TAB_KEY:()=>Be.fY,DEFAULT_IS_QUERY_RESULT_COLLAPSED:()=>Be.GV,DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED:()=>Be.hh,DEFAULT_IS_TENANT_SUMMARY_COLLAPSED:()=>Be.jX,DEFAULT_POLLING_INTERVAL:()=>Be.wu,DEFAULT_SIZE_RESULT_PANE_KEY:()=>Be.l_,DEFAULT_SIZE_TENANT_KEY:()=>Be.jQ,DEFAULT_SIZE_TENANT_SUMMARY_KEY:()=>Be.ED,DEFAULT_TABLE_SETTINGS:()=>Be.N3,DEVELOPER_UI_TITLE:()=>Be.T5,DEV_ENABLE_TRACING_FOR_ALL_REQUESTS:()=>Be.U0,EMPTY_DATA_PLACEHOLDER:()=>Be.Pd,ENABLE_AUTOCOMPLETE:()=>Be.LK,ENABLE_NETWORK_TABLE_KEY:()=>Be.g5,ErrorBoundary:()=>s.lQ,ErrorBoundaryFallback:()=>s.jt,GIGABYTE:()=>Be.J7,HOUR_IN_SECONDS:()=>Be.Jg,INVERTED_DISKS_KEY:()=>Be.TJ,IS_HOTKEYS_HELP_HIDDEN_KEY:()=>Be.Gj,KILOBYTE:()=>Be.eh,LANGUAGE_KEY:()=>Be.jS,LAST_QUERY_EXECUTION_SETTINGS_KEY:()=>Be.fr,LAST_USED_QUERY_ACTION_KEY:()=>Be.zk,LOAD_AVERAGE_TIME_INTERVALS:()=>Be.GT,Lang:()=>pe.JA,MEGABYTE:()=>Be.pg,MINUTE_IN_SECONDS:()=>Be.r0,MS_IN_NANOSECONDS:()=>Be.zz,MultiClusterApp:()=>Li,PARTITIONS_HIDDEN_COLUMNS_KEY:()=>Be.bs,QUERIES_HISTORY_KEY:()=>Be.MB,QUERY_EXECUTION_SETTINGS_KEY:()=>Be.c4,QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY:()=>Be.YQ,SAVED_QUERIES_KEY:()=>Be.ld,SECOND_IN_MS:()=>Be.KF,SHOW_DOMAIN_DATABASE_KEY:()=>Be.Xm,SingleClusterApp:()=>wi,TABLET_COLORS:()=>Be.Kp,TABLET_SYMBOLS:()=>Be.Zv,TENANT_DEFAULT_TITLE:()=>Be.oK,TENANT_INITIAL_PAGE_KEY:()=>Be.Mt,TENANT_OVERVIEW_TABLES_LIMIT:()=>Be.Nz,TENANT_OVERVIEW_TABLES_SETTINGS:()=>Be.jp,TERABYTE:()=>Be.Db,THEME_KEY:()=>Be.k4,USE_CLUSTER_BALANCER_AS_BACKEND_KEY:()=>Be.s2,USE_PAGINATED_TABLES_KEY:()=>Be.Ku,USE_SHOW_PLAN_SVG_KEY:()=>Be.lr,WEEK_IN_SECONDS:()=>Be.Du,YdbEmbeddedAPI:()=>Fi.i,appRoutes:()=>de.Ay,cn:()=>fe.cn,componentsRegistry:()=>vi,configureStore:()=>zi.U1,createApi:()=>Fi.x,getMonitoringClusterLink:()=>xi,getMonitoringLink:()=>_i,getSettingValue:()=>Bi.CN,getTabletLabel:()=>Be.bk,getUserSettings:()=>ct,i18n:()=>pe.Ru,registerKeysets:()=>pe.g4,reportWebVitals:()=>qi.A,rootReducer:()=>zi.d$,setSettingValue:()=>Bi.gc,settingsManager:()=>ui.f,toaster:()=>Ui.X,useSetting:()=>u.iK,useTypedSelector:()=>u.N4});var r={};n.r(r),n.d(r,{ClusterSlot:()=>bn,ClustersSlot:()=>yn,NodeSlot:()=>_n,PDiskPageSlot:()=>xn,RedirectSlot:()=>On,RoutesSlot:()=>Cn,StorageGroupSlot:()=>Sn,TabletSlot:()=>kn,TenantSlot:()=>wn,VDiskPageSlot:()=>En});var o=n(59284),i=n(61750),a=n(97434),s=n(88632),l=n(34271),c=n(78668),u=n(90182);function d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"===typeof SuppressedError&&SuppressedError;var f=n(99991),p=n(23871),h=n(28664),m=n(74417),g=n(87184),v=n(92209);function y(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var b=n(49034),w=n(72837),_=n(81240),x=n(98089),E=n(84476),S={button_close:"Close"},k={button_close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"};var C=(0,w.N)({en:S,ru:k},`${v.N}Title`);y(".gn-title{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;min-height:64px;padding:14px 10px 14px 20px}.gn-title_separator{border-bottom:1px solid var(--g-color-line-generic)}.gn-title__text{margin:0 20px 0 0}");const O=(0,v.b)("title"),N=({children:e,closeIconSize:t=23,hasSeparator:n,closeTitle:r=C("button_close"),onClose:i})=>o.createElement("div",{className:O({separator:n})},o.createElement(x.E,{className:O("text"),as:"h3",variant:"subheader-3"},e),i&&o.createElement(E.$,{onClick:i,view:"flat",size:"l",extraProps:{"aria-label":r}},o.createElement(f.I,{data:_.A,size:t})));function T(e){const t=o.useRef();return o.useEffect((()=>(t.current=e,()=>{t.current=void 0})),[e]),o.useCallback(((...e)=>{if("function"===typeof t.current)return t.current(...e)}),[])}function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function A(e,t=""){const n=I(t).replace(/\s+/g,".*?");return P(e,"",new RegExp(n,"i"))}function P(e,t="",n){const r=[],i={};let a=!1,s=!1;return o.Children.forEach(e,(e=>{var l,c;if(o.isValidElement(e))if(e.type===o.Fragment){const{menu:o,pages:a}=P(e.props.children,t,n);r.push(...o),Object.assign(i,a)}else if(e.props.groupTitle){0;const o=`${t}/${null!==(l=e.props.id)&&void 0!==l?l:e.props.groupTitle}`;a=!0;const{menu:s,pages:c}=P(e.props.children,o,n);0,r.push({groupTitle:e.props.groupTitle,items:s}),Object.assign(i,c)}else{s=!0;const o=`${t}/${null!==(c=e.props.id)&&void 0!==c?c:e.props.title}`;0,i[o]=D(e.props.children,n),i[o].id=o,r.push({id:o,title:e.props.title,icon:e.props.icon,withBadge:i[o].withBadge,disabled:i[o].hidden})}})),{menu:r,pages:i}}function D(e,t){const n={id:"",sections:[],hidden:!0};return o.Children.forEach(e,(e=>{if(o.isValidElement(e))if(e.type===o.Fragment){const{sections:r,withBadge:o,hidden:i}=D(e.props.children,t);n.sections.push(...r),n.withBadge=o||n.withBadge,n.hidden=i&&n.hidden}else{const{withBadge:r,showTitle:o=!0}=e.props,{items:i,hidden:a}=R(e.props.children,t);n.withBadge=r||n.withBadge,n.hidden=a&&n.hidden,n.sections.push(Object.assign(Object.assign({},e.props),{withBadge:r,items:i,hidden:a,showTitle:o}))}})),n}function R(e,t){let n=!0;const r=[];return o.Children.forEach(e,(e=>{if(o.isValidElement(e))if(e.type===o.Fragment){const o=R(e.props.children,t);r.push(...o.items),n=n&&o.hidden}else{const o=Object.assign(Object.assign({},e.props),{element:e,hidden:!t.test(e.props.title)});r.push(o),n=n&&o.hidden}})),{items:r,hidden:n}}N.displayName="Title";const j=o.createContext({});function M(e,t){const n=o.useRef(null);return o.useMemo((()=>t?Object.assign({selectedRef:n},function(e,t){if(!t.settingId&&!t.section&&!t.page)return{};for(const n of Object.values(e)){if(!t.settingId&&!t.section){if(t.page!==n.id)continue;return{page:n}}for(const e of n.sections)if(t.settingId){for(const r of e.items)if(r.id===t.settingId)return{page:n,section:e,setting:r}}else if(t.section&&("id"in t.section?t.section.id===e.id:t.section.title===e.title))return{page:n,section:e}}return{}}(e,t)):{selectedRef:n}),[e,t])}j.displayName="SettingsSelectionContext";const L=j.Provider;var z=function(e){return e};y('.gn-settings-menu__group-heading{display:inline-block;font-weight:var(--g-text-accent-font-weight);line-height:18px;margin-bottom:12px;padding:0 20px}.gn-settings-menu__group+.gn-settings-menu__group{margin-top:24px}.gn-settings-menu__item{align-items:center;color:var(--g-color-text-primary);cursor:pointer;display:flex;height:40px;padding:0 20px}.gn-settings-menu__item-icon{color:var(--g-color-text-misc);margin-right:5px}.gn-settings-menu__item:hover,.gn-settings-menu__item_focused{background:var(--g-color-base-simple-hover)}.gn-settings-menu__item_selected{background:var(--g-color-base-selection)}.gn-settings-menu__item_selected.gn-settings-menu__item_focused,.gn-settings-menu__item_selected:hover{background:var(--g-color-base-selection-hover)}.gn-settings-menu__item_disabled{color:var(--g-color-text-secondary);cursor:auto}.gn-settings-menu__item_disabled:hover{background:none}.gn-settings-menu__item_disabled .gn-settings-menu__item-icon{color:var(--g-color-base-misc-heavy)}.gn-settings-menu__item_badge{position:relative}.gn-settings-menu__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:9px;top:calc(50% - 3px);width:6px}');const F=(0,v.b)("settings-menu"),B=o.forwardRef((function({items:e,onChange:t,activeItemId:n},r){const[i,a]=o.useState(),s=o.useRef(null),l=T(t),c=function(e){const t=o.useRef(e);return t.current=e,o.useCallback((()=>t.current),[])}(i);return o.useImperativeHandle(r,(()=>({handleKeyDown(e){if(!s.current)return!1;const t=c();return t&&"Enter"===e.key?(l(t),!0):"ArrowDown"===e.key?(a(q(s.current,t,1)),!0):"ArrowUp"===e.key&&(a(q(s.current,t,-1)),!0)},clearFocus(){a(void 0)}})),[c,l]),o.createElement("div",{ref:s,className:F()},e.map((e=>"groupTitle"in e?o.createElement("div",{key:e.groupTitle,className:F("group")},o.createElement("span",{className:F("group-heading")},e.groupTitle),e.items.map((e=>U(e,t,n,i)))):U(e,t,n,i))))}));function U(e,t,n,r){return o.createElement("span",{key:e.title,className:F("item",{selected:n===e.id,disabled:e.disabled,focused:r===e.id,badge:e.withBadge}),onClick:()=>{e.disabled||t(e.id)},"data-id":e.id},e.icon?o.createElement(f.I,Object.assign({size:16},e.icon,{className:F("item-icon")})):void 0,o.createElement("span",null,e.title))}function q(e,t,n){var r;const o=e.querySelectorAll(`.${F("item")}:not(.${F("item")}_disabled)`);if(0===o.length)return;let i=n>0?-1:0;return t&&(i=Array.prototype.findIndex.call(o,(e=>e.getAttribute("data-id")===t))),i=(o.length+i+n)%o.length,null!==(r=o[i].getAttribute("data-id"))&&void 0!==r?r:void 0}y('.gn-settings-menu-mobile.g-tabs_direction_horizontal{-ms-overflow-style:none;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:none;scrollbar-width:none}.gn-settings-menu-mobile.g-tabs_direction_horizontal::-webkit-scrollbar{display:none}.gn-settings-menu-mobile__item_badge{position:relative}.gn-settings-menu-mobile__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:11px;width:6px}');const $=(0,v.b)("settings-menu-mobile"),H=({items:e,onChange:t,activeItemId:n,className:r})=>{const i=o.useRef(null),a=o.useMemo((()=>{const t=[];return e.forEach((e=>{if("groupTitle"in e)t.push(...e.items.map((({id:e,title:t,disabled:n,withBadge:r})=>({id:e,title:t,disabled:n,className:$("item",{badge:r})}))));else{const{id:n,title:r,disabled:o,withBadge:i}=e;t.push({id:n,title:r,disabled:o,className:$("item",{badge:i})})}})),t}),[e]);return o.createElement("div",{ref:i,onTouchMove:e=>{e.stopPropagation()}},o.createElement(p.t,{items:a,className:$(null,r),size:"l",activeTab:n,onSelectTab:t}))};var W={label_title:"Settings","label_filter-placeholder":"Search settings","label_empty-placeholder":"No results found",label_search:"Search"},V={label_title:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_filter-placeholder":"\u041d\u0430\u0439\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_empty-placeholder":"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e",label_search:"\u041f\u043e\u0438\u0441\u043a"};var G=(0,w.N)({en:W,ru:V},`${v.N}Settings`);const Z=(0,v.b)("settings-search");function K({className:e,initialValue:t,onChange:n,debounce:r=200,inputRef:i,inputSize:a,placeholder:s,autoFocus:l=!0}){const[c,u]=o.useState(null!==t&&void 0!==t?t:""),d=T((0,b.d)(n,r)),f=T((e=>{u(e),d(e)}));return o.createElement("div",{className:Z(null,e)},o.createElement(h.k,{value:c,controlRef:i,hasClear:!0,autoFocus:l,size:a,placeholder:s,onUpdate:f,controlProps:{"aria-label":G("label_search")}}))}y('.gn-settings{display:grid;grid-template-columns:216px 1fr;height:100%;width:834px}.gn-settings_view_mobile{display:block;height:calc(80vh - 56px);overflow-x:hidden;width:auto}@supports (height:90dvh){.gn-settings_view_mobile{height:calc(90dvh - 56px)}}.gn-settings_view_mobile.gn-settings_loading{text-align:center}.gn-settings_view_mobile .gn-settings__loader{margin-top:20px}.gn-settings_view_mobile .gn-settings__search{margin:4px 0 16px;padding:0 20px}.gn-settings_view_mobile .gn-settings__page{overflow-y:visible}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:first-child{margin-left:20px}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:last-child{margin-right:20px}.gn-settings_view_mobile .gn-settings__section-heading{font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.gn-settings_view_mobile .gn-settings__section-subheader{color:var(--g-color-text-secondary)}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings-subheader{margin-top:8px}.gn-settings_view_mobile .gn-settings__section-item{margin-top:0}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings__section-item,.gn-settings_view_mobile .gn-settings__section-subheader+.gn-settings__section-item{margin-top:30px}.gn-settings_view_mobile .gn-settings__section-item+.gn-settings__section-item{margin-top:22px}.gn-settings_view_mobile .gn-settings__item:not(.gn-settings_view_mobile .gn-settings__item_mode_row){gap:8px;grid-template-columns:1fr}.gn-settings_view_mobile .gn-settings__item-heading{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.gn-settings_view_mobile .gn-settings__item-description{font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.gn-settings_view_mobile .gn-settings__item_mode_row{grid-template-columns:1fr auto}.gn-settings_view_mobile .gn-settings__item_mode_row .gn-settings__item-heading{padding-right:20px}.gn-settings_view_mobile .gn-settings__item-content{width:100%}.gn-settings_view_mobile .gn-settings__not-found{color:var(--g-color-text-hint);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);justify-items:start;line-height:var(--g-text-body-2-line-height);margin:20px 0 0 20px}.gn-settings_loading{grid-template-columns:auto}.gn-settings__loader{place-self:center}.gn-settings__not-found{display:grid;height:100%;place-items:center}.gn-settings__menu{border-right:1px solid var(--g-color-line-generic)}.gn-settings__heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:20px 20px 0}.gn-settings__search{margin:0 20px 16px}.gn-settings__page{overflow-y:auto}.gn-settings__content{padding:20px}.gn-settings__section-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__section-heading:hover .gn-settings__section-right-adornment_hidden{opacity:1}.gn-settings__section-heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:0}.gn-settings__section-item{margin-top:24px}.gn-settings__section+.gn-settings__section{margin-top:32px}.gn-settings__item{display:grid;grid-template-columns:216px 1fr;justify-items:start}.gn-settings__item_align_top{align-items:start}.gn-settings__item_align_center{align-items:center}.gn-settings__item-title_badge{position:relative}.gn-settings__item-title_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:1px;width:6px}.gn-settings__item-description{color:var(--g-color-text-secondary);display:block;font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height);margin-top:2px;padding-right:20px}.gn-settings__item-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__item:hover .gn-settings__item-right-adornment_hidden{opacity:1}.gn-settings__item_selected,.gn-settings__section_selected{background:var(--g-color-base-selection);border-radius:8px;margin-left:-8px;padding:8px}.gn-settings__found{background:var(--g-color-base-selection);font-weight:var(--g-text-accent-font-weight)}');const Y=(0,v.b)("settings"),Q=o.createContext({}),J=()=>o.useContext(Q);function X(e){var{loading:t,renderLoading:n,children:r,view:i="normal",renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l=!0}=e,c=d(e,["loading","renderLoading","children","view","renderRightAdornment","renderSectionRightAdornment","showRightAdornmentOnHover"]);return t?o.createElement("div",{className:Y({loading:!0,view:i})},"function"===typeof n?n():o.createElement(m.a,{className:Y("loader"),size:"m"})):o.createElement(Q.Provider,{value:{renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l}},o.createElement(te,Object.assign({view:i},c),r))}const ee=(e,t)=>{for(const n of e)if("groupTitle"in n){for(const e of n.items)if(e.id===t)return e.title}else if(n.id===t)return n.title;return""};function te({initialPage:e,initialSearch:t,selection:n,children:r,renderNotFound:i,title:a=G("label_title"),filterPlaceholder:s=G("label_filter-placeholder"),emptyPlaceholder:l=G("label_empty-placeholder"),view:c,onPageChange:u,onClose:d}){var f,p;const{renderSectionRightAdornment:h,showRightAdornmentOnHover:m}=J(),[v,y]=o.useState(null!==t&&void 0!==t?t:""),{menu:b,pages:w}=A(r,v),_=M(w,n),x=Object.keys(w),E=_.page&&x.includes(_.page.id)?_.page.id:void 0,[S,k]=o.useState(E||(e&&x.includes(e)?e:void 0)),C=o.useRef(null),O=o.useRef(null),T="mobile"===c;o.useEffect((()=>{var e;null===(e=O.current)||void 0===e||e.clearFocus()}),[v]),o.useEffect((()=>{const e=()=>{var e;null===(e=O.current)||void 0===e||e.clearFocus()};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[]);let I=S;I&&!(null===(f=w[I])||void 0===f?void 0:f.hidden)||(I=null===(p=Object.values(w).find((({hidden:e})=>!e)))||void 0===p?void 0:p.id);const P=e=>{k((t=>(t!==e&&(null===u||void 0===u||u(e)),e)))};o.useEffect((()=>{I!==S&&P(I)})),o.useEffect((()=>{E&&k(E)}),[E]),o.useEffect((()=>{var e;(null===(e=_.selectedRef)||void 0===e?void 0:e.current)&&_.selectedRef.current.scrollIntoView()}),[_.selectedRef]);const D=(e,t)=>{const n=function(e,t,n){var r;return!(!e.section||e.setting)&&(!(!e.section.id||e.section.id!==n.id)||!((null===(r=e.page)||void 0===r?void 0:r.id)!==t||!e.section.title||e.section.title!==n.title))}(_,e,t);return o.createElement("div",{key:t.title,className:Y("section",{selected:n}),ref:n?_.selectedRef:void 0},t.showTitle&&o.createElement("h3",{className:Y("section-heading")},h?o.createElement(g.s,{gap:2,alignItems:"center"},t.title,o.createElement("div",{className:Y("section-right-adornment",{hidden:m})},h(t))):t.title),t.header&&(T?o.createElement("div",{className:Y("section-subheader")},t.header):t.header),t.items.map((e=>e.hidden?null:(({title:e,element:t})=>o.createElement("div",{key:e,className:Y("section-item")},o.cloneElement(t,Object.assign(Object.assign({},t.props),{highlightedTitle:v&&e?ne(e,v):e}))))(e))))};return o.createElement(L,{value:_},o.createElement("div",{className:Y({view:c})},T?o.createElement(o.Fragment,null,o.createElement(K,{inputRef:C,className:Y("search"),initialValue:t,onChange:y,autoFocus:!1,inputSize:"xl"}),o.createElement(H,{items:b,onChange:P,activeItemId:I,className:Y("tabs")})):o.createElement("div",{className:Y("menu"),onClick:()=>{C.current&&C.current.focus()},onKeyDown:e=>{O.current&&O.current.handleKeyDown(e)&&e.preventDefault()}},o.createElement(N,null,a),o.createElement(K,{inputRef:C,className:Y("search"),initialValue:t,onChange:y,placeholder:s,autoFocus:!0}),o.createElement(B,{ref:O,items:b,onChange:P,activeItemId:I})),o.createElement("div",{className:Y("page")},(e=>{if(!e)return"function"===typeof i?i():o.createElement("div",{className:Y("not-found")},l);const t=w[e].sections.filter((e=>!e.hidden));return o.createElement(o.Fragment,null,!T&&o.createElement(N,{hasSeparator:!0,onClose:d},ee(b,e)),o.createElement("div",{className:Y("content")},t.map((t=>D(e,t)))))})(I))))}function ne(e,t){let n=e.slice(0);const r=[],i=I(t).split(" ").filter(Boolean);let a=0;for(const s of i){const e=new RegExp(s,"ig").exec(n);if(e){const t=e[0],i=e.index;i>0&&r.push(n.slice(0,i)),r.push(o.createElement("strong",{key:a++,className:Y("found")},t)),n=n.slice(i+t.length)}}return n&&r.push(n),r}X.Group=function({children:e}){return o.createElement(o.Fragment,null,e)},X.Page=function({children:e}){return o.createElement(o.Fragment,null,e)},X.Section=function({children:e}){return o.createElement(o.Fragment,null,e)},X.Item=function(e){const{id:t,labelId:n,highlightedTitle:r,children:i,align:a="center",withBadge:s,renderTitleComponent:l=z,mode:c,description:u}=e,d=o.useContext(j),f=d.setting&&d.setting.id===t,{renderRightAdornment:p,showRightAdornmentOnHover:h}=J(),m=o.createElement("span",{className:Y("item-title",{badge:s})},l(r));return o.createElement("div",{className:Y("item",{align:a,mode:c,selected:f}),ref:f?d.selectedRef:void 0},o.createElement("label",{className:Y("item-heading"),id:n},p?o.createElement(g.s,{className:Y("item-title-wrapper"),gap:3},m,o.createElement("div",{className:Y("item-right-adornment",{hidden:h})},p(e))):m,u?o.createElement("span",{className:Y("item-description")},u):null),o.createElement("div",{className:Y("item-content")},i))};var re=n(85589),oe=n(44433),ie=n(60712);const ae=({type:e="switch",settingKey:t,options:n,defaultValue:r,onValueUpdate:o})=>{const[i,a]=(0,u.iK)(t,r),s=e=>{a(e),null===o||void 0===o||o()};switch(e){case"switch":return(0,ie.jsx)(re.d,{checked:Boolean(i),onUpdate:s});case"radio":return n?(0,ie.jsx)(oe.a,{value:String(i),onUpdate:s,children:n.map((({value:e,content:t})=>(0,ie.jsx)(oe.a.Option,{value:e,children:t},e)))}):null;default:return null}},se=({settings:e})=>(0,ie.jsx)(X,{children:e.map((e=>{const{id:t,title:n,icon:r,sections:o=[],showTitle:i}=e;return(0,ie.jsx)(X.Page,{id:t,title:n,icon:r,children:o.map((e=>{const{title:n,settings:r=[]}=e;return(0,ie.jsx)(X.Section,{title:n,showTitle:null===i||void 0===i||i,children:r.map((e=>"info"===e.type?(0,ie.jsx)(X.Item,{...e,children:e.content},e.title):(0,ie.jsx)(X.Item,{...e,children:(0,ie.jsx)(ae,{...e})},e.title)))},t)}))},t)}))}),le=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H4.75a.75.75 0 0 1 0-1.5h7.69l-1.22-1.22a.75.75 0 0 1 1.06-1.06l2.5 2.5ZM9.5 4.25a.75.75 0 0 1-1.5 0V4a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 4v8A1.5 1.5 0 0 0 4 13.5h2.5A1.5 1.5 0 0 0 8 12v-.25a.75.75 0 0 1 1.5 0V12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h2.5a3 3 0 0 1 3 3v.25Z",clipRule:"evenodd"})),ce=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H1.75a.75.75 0 0 1 0-1.5h7.69L8.22 6.03a.75.75 0 0 1 1.06-1.06l2.5 2.5ZM4 11.75a.75.75 0 0 1 1.5 0V12A1.5 1.5 0 0 0 7 13.5h5a1.5 1.5 0 0 0 1.5-1.5V4A1.5 1.5 0 0 0 12 2.5H7A1.5 1.5 0 0 0 5.5 4v.25a.75.75 0 0 1-1.5 0V4a3 3 0 0 1 3-3h5a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3v-.25Z",clipRule:"evenodd"}));var ue=n(10755),de=n(92459),fe=n(77506),pe=n(48372);const he=JSON.parse('{"navigation-item.documentation":"Documentation","navigation-item.settings":"Settings","navigation-item.account":"Account","account.user":"YDB User","account.login":"Login","account.logout":"Logout"}'),me=(0,pe.g4)("ydb-aside-navigation",{en:he}),ge=(0,fe.cn)("kv-ydb-internal-user");function ve({login:e}){const[t]=c.D_.useLogoutMutation(),n=(0,ue.W6)();return(0,ie.jsxs)("div",{className:ge(),children:[(0,ie.jsxs)("div",{className:ge("user-info-wrapper"),children:[(0,ie.jsx)("div",{className:ge("ydb-internal-user-title"),children:me("account.user")}),e&&(0,ie.jsx)("div",{className:ge("username"),children:e})]}),e?(0,ie.jsx)(E.$,{view:"flat-secondary",title:me("account.logout"),onClick:()=>{t(void 0)},children:(0,ie.jsx)(f.I,{data:le})}):(0,ie.jsx)(E.$,{view:"flat-secondary",title:me("account.login"),onClick:()=>{n.push((0,de.KY)(de.Ay.auth,void 0,{returnUrl:encodeURIComponent(location.href)}))},children:(0,ie.jsx)(f.I,{data:ce})})]})}function ye({children:e,userSettings:t}){const n=(0,l.x)("AsideNavigation"),r=(0,u.N4)(c.mB);return(0,ie.jsx)(n,{settings:(0,ie.jsx)(se,{settings:t}),ydbInternalUser:(0,ie.jsx)(ve,{login:r}),user:r?{login:r}:void 0,content:e})}const be={top:0,right:0,bottom:0,left:0};var we=n(39238),_e=n(49818),xe=n(67063),Ee=n.n(xe),Se=n(80176);const ke=(0,fe.cn)("node-tootltip"),Ce=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:ke(),children:(0,ie.jsx)("table",{children:(0,ie.jsxs)("tbody",{children:[(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"ID"}),(0,ie.jsx)("td",{className:ke("value"),children:t.nodeId||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"Rack"}),(0,ie.jsx)("td",{className:ke("value"),children:t.rack||"?"})]}),t.connected&&t.capacity?(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"Net"}),(0,ie.jsx)("td",{className:ke("value"),children:`${t.connected} / ${t.capacity}`})]}):null]})})})},Oe=(0,fe.cn)("tabletsOverall-tooltip"),Ne=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:Oe(),children:(0,ie.jsx)("table",{children:(0,ie.jsx)("tbody",{children:t.map(((e,t)=>(0,ie.jsxs)("tr",{children:[(0,ie.jsxs)("td",{className:Oe("label"),children:[e.color,":"]}),(0,ie.jsx)("td",{className:Oe("value"),children:`${e.value}/${e.total} (${e.percents.toFixed(2)}%)`})]},t)))})})})},Te=(0,fe.cn)("histogram-tooltip"),Ie=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:Te(),children:(0,ie.jsx)("table",{children:(0,ie.jsxs)("tbody",{children:[(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Te("label"),children:"Count"}),(0,ie.jsx)("td",{className:Te("value"),children:t.count||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Te("label"),children:"From"}),(0,ie.jsx)("td",{className:Te("value"),children:t.leftBound||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Te("label"),children:"To"}),(0,ie.jsx)("td",{className:Te("value"),children:t.rightBound||"?"})]})]})})})},Ae=(0,fe.cn)("cell-tooltip"),Pe=(0,fe.cn)("json-tooltip"),De={pool:e=>(0,ie.jsx)(Se.HG,{data:e}),tablet:e=>(0,ie.jsx)(Se.nL,{data:e}),node:e=>(0,ie.jsx)(Ce,{data:e}),nodeEndpoints:e=>(0,ie.jsx)(Se.p,{data:e}),tabletsOverall:e=>(0,ie.jsx)(Ne,{data:e}),histogram:e=>(0,ie.jsx)(Ie,{data:e}),cell:e=>(0,ie.jsx)("div",{className:Ae(),children:e}),json:e=>(0,ie.jsx)("div",{className:Pe(),children:(0,ie.jsx)(Ee(),{data:e,search:!1,isExpanded:()=>!0,className:Pe("inspector")})})};const Re=(0,a.Ng)((e=>{const{toolTipVisible:t,currentHoveredRef:n,data:r,templateType:o,additionalData:i,positions:a}=e.tooltip,{popupClassName:s}=i||{};return{toolTipVisible:t,currentHoveredRef:n,data:r,template:De[o],additionalData:i,positions:a,popupClassName:s}}),{hideTooltip:_e.w7})((function(e){var t,n;const r=function(e={}){const{rect:t,contextElement:n}=e,r=o.useRef(be),i=o.useRef({contextElement:n,getBoundingClientRect(){const{top:e,right:t,bottom:n,left:o}=r.current;return{top:e,right:t,bottom:n,left:o,width:t-o,height:n-e}}});if(i.current.contextElement=n,t){const{top:e=0,left:n=0,right:o=n,bottom:i=e}=t;r.current={top:e,right:o,bottom:i,left:n}}else r.current=be;return i}({rect:{top:null===(t=e.positions)||void 0===t?void 0:t.top,left:null===(n=e.positions)||void 0===n?void 0:n.left}}),i=o.useCallback((()=>{const{hideTooltip:t,toolTipVisible:n}=e;n&&setTimeout((()=>t()),500)}),[e]);o.useEffect((()=>(window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i)})),[i]);const{className:a="",toolTipVisible:s,currentHoveredRef:l,data:c,additionalData:u,positions:d}=e;return(0,ie.jsx)("div",{className:`redux-tooltip ${a}`,children:d?((t,n,i,a)=>{const{template:s,popupClassName:l,hideTooltip:c}=e;return(0,ie.jsx)(o.Fragment,{children:(0,ie.jsx)(we.z,{open:t,placement:["top","bottom","left","right"],contentClassName:l,anchorRef:r,onOutsideClick:c,children:i&&s(i,a)})})})(s,0,c,u):((t,n,r,o)=>{const{template:i,popupClassName:a,hideTooltip:s}=e;return(0,ie.jsx)(we.z,{open:t,anchorRef:{current:n},hasArrow:!0,placement:["top","bottom","left","right"],className:a,onOutsideClick:s,children:r&&i(r,o)})})(s,l,c,u)})})),je=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",d:"M6.886.773C7.29-.231 8.71-.231 9.114.773l1.472 3.667 3.943.268c1.08.073 1.518 1.424.688 2.118L12.185 9.36l.964 3.832c.264 1.05-.886 1.884-1.802 1.31L8 12.4l-3.347 2.101c-.916.575-2.066-.26-1.802-1.309l.964-3.832L.783 6.826c-.83-.694-.391-2.045.688-2.118l3.943-.268L6.886.773Z"})),Me=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.494 13.2c.837-.482 1.006-.946 1.006-1.2 0-.35-.105-.692-.303-.981L9.072 6.435a1.854 1.854 0 0 1-.322-1.044V2.909C8.518 2.968 8.265 3 8 3s-.518-.032-.75-.09v2.48c0 .373-.112.737-.322 1.045L3.803 11.02c-.198.289-.303.63-.303.981 0 .254.169.718 1.006 1.2.813.468 2.043.8 3.494.8s2.68-.332 3.494-.8ZM8 .5c2 0 2.25 1 2.25 1.5v3.39c0 .072.021.141.062.2l3.125 4.584c.367.538.563 1.175.563 1.826 0 2-2.686 3.5-6 3.5S2 14 2 12c0-.652.196-1.288.563-1.826L5.69 5.59a.354.354 0 0 0 .061-.2V2C5.75 1.5 6 .5 8 .5Zm.084 7.626a.75.75 0 0 1 1.04.208l1.5 2.25a.75.75 0 1 1-1.248.832l-1.5-2.25a.75.75 0 0 1 .208-1.04Z",clipRule:"evenodd"})),Le=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.169 6.331a3 3 0 0 0-.833 1.6l-.338 1.912a1 1 0 0 0 1.159 1.159l1.912-.338a3 3 0 0 0 1.6-.833l3.07-3.07 2-2A.894.894 0 0 0 15 4.13 3.13 3.13 0 0 0 11.87 1a.894.894 0 0 0-.632.262l-2 2-3.07 3.07Zm3.936-1.814L7.229 7.392a1.5 1.5 0 0 0-.416.8L6.6 9.4l1.208-.213.057-.01a1.5 1.5 0 0 0 .743-.406l2.875-2.876a1.63 1.63 0 0 0-1.378-1.378Zm2.558.199a3.143 3.143 0 0 0-1.379-1.38l.82-.82a1.63 1.63 0 0 1 1.38 1.38l-.82.82ZM8 2.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3V8.75a.75.75 0 0 0-1.5 0v2.75a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h2.75A.75.75 0 0 0 8 2.25Z",clipRule:"evenodd"}));var ze=n(43937),Fe=n(18214),Be=n(76086);const Ue=JSON.parse('{"page.general":"General","section.appearance":"Appearance","page.experiments":"Experiments","section.experiments":"Experiments","page.editor":"Editor","section.dev-setting":"Development settings","page.about":"About","section.about":"About","settings.editor.autocomplete.title":"Enable autocomplete","settings.editor.autocomplete.description":"You\u2019re always able to get suggestions by pressing Ctrl+Space.","settings.editor.autocomplete-on-enter.title":"Accept suggestion on Enter","settings.editor.autocomplete-on-enter.description":"Controls whether suggestions should be accepted on Enter, in addition to Tab. Helps to avoid ambiguity between inserting new lines or accepting suggestions.","settings.theme.title":"Interface theme","settings.theme.option-dark":"Dark","settings.theme.option-light":"Light","settings.theme.option-system":"System","settings.language.title":"Interface language","settings.language.option-russian":"Russian","settings.language.option-english":"English","settings.binaryDataInPlainTextDisplay.title":"Display binary data in plain text","settings.invertedDisks.title":"Inverted disks space indicators","settings.usePaginatedTables.title":"Use paginated tables","settings.usePaginatedTables.description":" Use table with data load on scroll for Nodes and Storage tabs. It will increase performance, but could work unstable","settings.enableNetworkTable.title":"Enable network table","settings.useShowPlanToSvg.title":"Execution plan","settings.useShowPlanToSvg.description":" Show \\"Execution plan\\" button in query result widow. Opens svg with execution plan in a new window.","settings.showDomainDatabase.title":"Show domain database","settings.useClusterBalancerAsBackend.title":"Use cluster balancer as backend","settings.useClusterBalancerAsBackend.description":"By default random cluster node is used as backend. It causes saved links to become invalid after some time, when node is restarted. Using balancer as backend fixes it","settings.about.interfaceVersionInfoField.title":"Interface version"}'),qe=(0,pe.g4)("ydb-user-settings",{en:Ue}),$e=[{value:"system",content:qe("settings.theme.option-system")},{value:"light",content:qe("settings.theme.option-light")},{value:"dark",content:qe("settings.theme.option-dark")}],He={settingKey:Be.k4,title:qe("settings.theme.title"),type:"radio",options:$e},We=(pe.JA.Ru,qe("settings.language.option-russian"),pe.JA.En,qe("settings.language.option-english"),Be.jS,qe("settings.language.title"),pe.oK,{settingKey:Be.RY,title:qe("settings.binaryDataInPlainTextDisplay.title")}),Ve={settingKey:Be.TJ,title:qe("settings.invertedDisks.title")},Ge={settingKey:Be.Ku,title:qe("settings.usePaginatedTables.title"),description:qe("settings.usePaginatedTables.description")},Ze={settingKey:Be.g5,title:qe("settings.enableNetworkTable.title")},Ke={settingKey:Be.lr,title:qe("settings.useShowPlanToSvg.title"),description:qe("settings.useShowPlanToSvg.description")},Ye={settingKey:Be.Xm,title:qe("settings.showDomainDatabase.title")},Qe={settingKey:Be.s2,title:qe("settings.useClusterBalancerAsBackend.title"),description:qe("settings.useClusterBalancerAsBackend.description")},Je={settingKey:Be.LK,title:qe("settings.editor.autocomplete.title"),description:qe("settings.editor.autocomplete.description")},Xe={settingKey:Be.IO,title:qe("settings.editor.autocomplete-on-enter.title"),description:qe("settings.editor.autocomplete-on-enter.description")},et={title:qe("settings.about.interfaceVersionInfoField.title"),type:"info",content:"7.2.0"},tt={id:"appearanceSection",title:qe("section.appearance"),settings:[He,Ve,We,Ye]},nt={id:"experimentsSection",title:qe("section.experiments"),settings:[Ge,Ze,Ke]},rt={id:"devSettingsSection",title:qe("section.dev-setting"),settings:[Je,Xe]},ot={id:"aboutSettingsSection",title:qe("section.about"),settings:[et]},it={id:"generalPage",title:qe("page.general"),icon:{data:je,height:14,width:14},sections:[tt],showTitle:!1},at={id:"experimentsPage",title:qe("page.experiments"),icon:{data:Me},sections:[nt],showTitle:!1},st={id:"editorPage",title:qe("page.editor"),icon:{data:Le},sections:[rt]},lt={id:"aboutPage",title:qe("page.about"),icon:{data:ze.A},sections:[ot],showTitle:!1};function ct({singleClusterMode:e}){const t=e?at:(0,Fe.jM)(at,(e=>{e.sections[0].settings.push(Qe)}));return[it,st,t,lt]}var ut=n(64689),dt=n(98167);function ft(e="unknown"){const t=()=>null;return t.displayName=`Slot(${e})`,t.__slotName=e,t}function pt(e){return"function"===typeof e&&"__slotName"in e}class ht{constructor(e){this.children=null,this.slots=void 0;const t=[];this.slots=new Map,o.Children.forEach(e,(e=>{if(n=e,o.isValidElement(n)&&pt(n.type)){const{type:t,props:n,ref:r}=e;if(this.slots.has(t))throw new Error(`Duplicate slot elements with name "${t.__slotName}" found.`);this.slots.set(t,{name:t.__slotName,props:n,ref:r,rendered:n.children})}else null!==e&&void 0!==e&&""!==e&&t.push(e);var n}));t.length>0&&(this.children=t)}get(e){if(!pt(e))throw new Error('Invalid slot component. Should be a component created using "createSlot".');return this.slots.get(e)}}var mt=n(67028),gt=n(24600),vt=n(99006);const yt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.03 1.97a.75.75 0 0 0-1.06 1.06l.83.83A8.206 8.206 0 0 0 .5 6.876l-.26.585a1.328 1.328 0 0 0 0 1.079l.26.585a8.208 8.208 0 0 0 11.434 3.87l1.036 1.035a.75.75 0 1 0 1.06-1.06l-11-11Zm7.788 9.908-1.294-1.293a3 3 0 0 1-4.109-4.109L3.866 4.927A6.707 6.707 0 0 0 1.87 7.486L1.641 8l.23.515a6.708 6.708 0 0 0 8.947 3.363ZM6.55 7.611A1.502 1.502 0 0 0 8.389 9.45L6.55 7.611Zm1.658-2.604 2.784 2.784a3 3 0 0 0-2.784-2.784Zm5.92 3.508a6.704 6.704 0 0 1-.915 1.496l1.065 1.066A8.203 8.203 0 0 0 15.5 9.125l.26-.585a1.328 1.328 0 0 0 0-1.08l-.26-.584A8.208 8.208 0 0 0 5.572 2.37L6.81 3.61a6.708 6.708 0 0 1 7.32 3.877l.228.514-.228.515Z",clipRule:"evenodd"})),bt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.87 8.515 1.641 8l.229-.515a6.708 6.708 0 0 1 12.26 0l.228.515-.229.515a6.708 6.708 0 0 1-12.259 0ZM.5 6.876l-.26.585a1.328 1.328 0 0 0 0 1.079l.26.584a8.208 8.208 0 0 0 15 0l.26-.584a1.328 1.328 0 0 0 0-1.08l-.26-.584a8.208 8.208 0 0 0-15 0ZM9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",clipRule:"evenodd"}));var wt,_t,xt=n(67884);function Et(e){return Boolean(e&&"object"===typeof e&&"data"in e&&e.data&&"object"===typeof e.data&&"error"in e.data&&"string"===typeof e.data.error)}function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},St.apply(this,arguments)}const kt=function(e){return o.createElement("svg",St({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),wt||(wt=o.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16z",fill:"#5282FF"})),_t||(_t=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S19.343 8 21 8s3 .672 3 1.5zM13 19.6v2.7c0 .9 1.3 1.6 3 1.6s3-.7 3-1.6v-2.7c-.8.7-1.9 1-3 1s-2.2-.3-3-1zm5-8.6v-.4c.8.7 1.9 1 3 1s2.2-.3 3-1v2.8c0 .8-1.2 1.5-2.8 1.6l-2.475 2.871c.176.192.275.405.275.629 0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5a.9.9 0 01.232-.58L10.8 15.1C9.3 15 8 14.3 8 13.5v-2.9c.8.7 1.9 1 3 1s2.2-.3 3-1v.4h4zm-.276 6.272A5.27 5.27 0 0016 17c-.265 0-.522.017-.766.05a5.994 5.994 0 00-1.134.25L12 14.9c1.1-.2 2-.8 2-1.5V12h4v1.4c0 .7.7 1.3 1.8 1.5l-2.076 2.372zM14 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S9.343 8 11 8s3 .672 3 1.5z",fill:"#fff"})))},Ct=(0,fe.cn)("authentication");const Ot=function({closable:e=!1}){const t=(0,ue.W6)(),n=(0,ue.zy)(),[r,{isLoading:i}]=c.D_.useAuthenticateMutation(void 0),{returnUrl:a}=(0,de.mA)(n),[s,l]=o.useState(""),[u,d]=o.useState(""),[p,m]=o.useState(""),[g,v]=o.useState(""),[y,b]=o.useState(!1),w=()=>{r({user:s,password:u}).unwrap().then((()=>{if(a){const e=decodeURIComponent(a.toString()),n=new URL(e),r=n.pathname+n.search;t.replace(r)}})).catch((e=>{(function(e){return Et(e)&&e.data.error.includes("user")})(e)&&m(e.data.error),function(e){return Et(e)&&e.data.error.includes("password")}(e)&&v(e.data.error)}))},x=e=>{13===e.keyCode&&w()};return(0,ie.jsxs)("section",{className:Ct(),children:[(0,ie.jsxs)("form",{className:Ct("form-wrapper"),children:[(0,ie.jsxs)("div",{className:Ct("header"),children:[(0,ie.jsxs)("div",{className:Ct("logo"),children:[(0,ie.jsx)(f.I,{data:kt,size:24}),"YDB"]}),(0,ie.jsx)(xt.N,{href:"https://ydb.tech/docs",target:"_blank",children:"Documentation"})]}),(0,ie.jsx)("h2",{className:Ct("title"),children:"Sign in"}),(0,ie.jsx)("div",{className:Ct("field-wrapper"),children:(0,ie.jsx)(h.k,{value:s,onUpdate:e=>{l(e),m("")},placeholder:"Username",error:p,onKeyDown:x,size:"l",autoFocus:!0})}),(0,ie.jsxs)("div",{className:Ct("field-wrapper"),children:[(0,ie.jsx)(h.k,{value:u,onUpdate:e=>{d(e),v("")},type:y?"text":"password",placeholder:"Password",error:g,onKeyDown:x,size:"l"}),(0,ie.jsx)(E.$,{onClick:()=>{b((e=>!e))},size:"l",className:Ct("show-password-button"),children:(0,ie.jsx)(f.I,{data:y?yt:bt,size:16})})]}),(0,ie.jsx)(E.$,{view:"action",onClick:w,width:"max",size:"l",disabled:Boolean(!s||p||g),loading:i,className:Ct("button-sign-in"),children:"Sign in"})]}),e&&t.length>1&&(0,ie.jsx)(E.$,{onClick:()=>{t.go(-1)},className:Ct("close"),children:(0,ie.jsx)(f.I,{data:_.A,size:24})})]})};var Nt=n(87842),Tt=n(61758),It=n.n(Tt),At=n(69220);const Pt=(0,At.om)("breadcrumbs");function Dt(e){return o.createElement("button",Object.assign({},e,{type:"button",className:Pt("switcher",{more:!0})}))}const Rt=(0,At.om)("breadcrumbs");const jt=o.memo((function({item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r,renderItem:i}){const a=r?r(e,t,n):e.text;if(i)return i({item:e,children:a,isCurrent:t,isPrevCurrent:n});const s=e.title||e.text;return n||!t?void 0!==e.href?o.createElement(xt.N,{key:e.text,view:"secondary",href:e.href,title:s,onClick:e.action,className:Rt("item",{"prev-current":n})},a):o.createElement(Dt,{key:e.text,title:s,onClick:e.action},a):o.createElement("div",{title:s,className:Rt("item",{current:!0})},a)}));jt.displayName="Breadcrumbs.Item";var Mt=n(40569);const Lt=JSON.parse('{"label_more":"Show more"}'),zt=JSON.parse('{"label_more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435"}'),Ft=(0,w.N)({en:Lt,ru:zt},"Breadcrumbs"),Bt=(0,At.om)("breadcrumbs");function Ut({popupStyle:e,popupPlacement:t,items:n}){return o.createElement(Mt.r,{items:n,popupProps:{className:Bt("popup",{staircase:"staircase"===e}),placement:t},renderSwitcher:({onClick:e})=>o.createElement(Dt,{title:Ft("label_more"),onClick:e},"...")})}Ut.displayName="Breadcrumbs.More";const qt=(0,At.om)("breadcrumbs");function $t({renderItemDivider:e}){return o.createElement("div",{"aria-hidden":!0,className:qt("divider")},e?e():"/")}$t.displayName="Breadcrumbs.Separator";const Ht=(0,At.om)("breadcrumbs");var Wt,Vt;!function(e){e[e.One=1]="One",e[e.Two=2]="Two"}(Wt||(Wt={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One"}(Vt||(Vt={}));class Gt extends o.Component{static prepareInitialState(e){const{firstDisplayedItemsCount:t}=e;return{calculated:!1,rootItem:t?e.items[0]:void 0,visibleItems:e.items.slice(t),hiddenItems:[],allItems:e.items}}static getDerivedStateFromProps(e,t){return t.allItems!==e.items?Gt.prepareInitialState(e):null}constructor(e){super(e),this.handleResize=()=>{const e=Gt.prepareInitialState(this.props);this.setState(e,this.recalculate)},this.handleResize=It()(this.handleResize,200),"undefined"!==typeof window&&(this.resizeObserver=new ResizeObserver(this.handleResize)),this.container=o.createRef(),this.state=Gt.prepareInitialState(e)}componentDidMount(){var e;this.recalculate(),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container.current)}componentDidUpdate(e){e.items!==this.state.allItems&&this.recalculate()}componentWillUnmount(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}render(){const{className:e,qa:t}=this.props,{calculated:n}=this.state;return o.createElement("div",{className:Ht({calculated:n?"yes":"no"},e),"data-qa":t},o.createElement("div",{className:Ht("inner"),ref:this.container},this.renderRootItem(),this.renderMoreItem(),this.renderVisibleItems()))}renderItem(e,t,n,r){return o.createElement(jt,{item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r||this.props.renderItemContent,renderItem:this.props.renderItem})}renderItemDivider(){const{renderItemDivider:e}=this.props;return o.createElement($t,{renderItemDivider:e})}renderRootItem(){const{renderRootContent:e}=this.props,{rootItem:t,visibleItems:n}=this.state,r=0===n.length;return t?this.renderItem(t,r,!1,e):null}renderVisibleItems(){const{visibleItems:e}=this.state;return e.map(((e,t,n)=>{const r=t===n.length-1,i=t===n.length-2;return o.createElement(o.Fragment,{key:t},this.renderItemDivider(),this.renderItem(e,r,i))}))}renderMoreItem(){const{hiddenItems:e}=this.state;if(0===e.length)return null;const{popupStyle:t,popupPlacement:n,renderItemDivider:r}=this.props;return o.createElement(o.Fragment,null,o.createElement($t,{renderItemDivider:r}),o.createElement(Ut,{items:e,popupPlacement:n,popupStyle:t}))}recalculate(){var e;const{items:t,lastDisplayedItemsCount:n,firstDisplayedItemsCount:r}=this.props;let o=(null===(e=this.container.current)||void 0===e?void 0:e.offsetWidth)||0;if(this.container.current&&o>0){o+=4;const e=Array.from(this.container.current.querySelectorAll(`.${Ht("divider")}`)),i=[...Array.from(this.container.current.querySelectorAll(`.${Ht("switcher")}`)),...Array.from(this.container.current.querySelectorAll(`.${Ht("item")}`))],a=i.map(((e,t)=>e.scrollWidth+(t===i.length-1?4:8))),s=e.map((e=>e.offsetWidth));let l=a.reduce(((e,t,r,o)=>{const i=o.length-1===r,a=n===Wt.Two&&o.length-2===r;return i||a?e+Math.min(t,200):e+t}),0)+s.reduce(((e,t)=>e+t),0),c=1;for(;l>o&&c<i.length-n;)1===c&&(l+=34+s[c]),l-=a[c]+s[c],c++;this.setState({calculated:!0,visibleItems:t.slice(c-(1-r)),hiddenItems:t.slice(r,c-(1-r))})}}}Gt.defaultProps={popupPlacement:["bottom","top"]};var Zt=n(44294),Kt=n(25196),Yt=n(67298),Qt=n(31684);const Jt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 2.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM14 4a3 3 0 1 0-5.895.79L6.15 5.908a3 3 0 1 0 0 4.185l1.955 1.117A3.003 3.003 0 0 0 11 15a3 3 0 1 0-2.15-5.092L6.895 8.79a3.003 3.003 0 0 0 0-1.58L8.85 6.092A3 3 0 0 0 14 4Zm-3 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM2.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z",clipRule:"evenodd"})),Xt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.615 4.888c.814-.375.885-.714.885-.888 0-.174-.071-.513-.885-.888C10.8 2.737 9.538 2.5 8 2.5c-1.538 0-2.799.237-3.615.612-.814.375-.885.714-.885.888 0 .174.071.513.885.888C5.2 5.263 6.462 5.5 8 5.5c1.538 0 2.799-.237 3.615-.612Zm.885 1.235C11.4 6.708 9.792 7 8 7c-1.792 0-3.4-.292-4.5-.877V8c0 .174.071.513.885.888C5.2 9.263 6.462 9.5 8 9.5c1.538 0 2.799-.237 3.615-.612.814-.375.885-.714.885-.888V6.123Zm0 4C11.4 10.708 9.792 11 8 11c-1.792 0-3.4-.293-4.5-.877V12c0 .174.071.513.885.887.816.377 2.077.613 3.615.613 1.538 0 2.799-.236 3.615-.613.814-.374.885-.713.885-.887v-1.877ZM14 4c0-2-2.686-3-6-3S2 2 2 4v8c0 2 2.686 3 6 3s6-1 6-3V4Z",clipRule:"evenodd"})),en=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 8.5a1.5 1.5 0 0 1 1.5 1.5v1a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 11v-1A1.5 1.5 0 0 1 4 8.5h8Zm.89-1.366L11.488 4.33a1.5 1.5 0 0 0-1.342-.829H5.854a1.5 1.5 0 0 0-1.342.83L3.11 7.133A3 3 0 0 1 4 7h8a3 3 0 0 1 .89.134ZM15 9.18V11a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V9.18a5 5 0 0 1 .528-2.236L3.17 3.658A3 3 0 0 1 5.854 2h4.292a3 3 0 0 1 2.683 1.658l1.643 3.286A5 5 0 0 1 15 9.18Zm-6 .57a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5H9Z",clipRule:"evenodd"})),tn=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1.25a.75.75 0 0 0-1.5 0V2.5a3 3 0 0 0-3 3H1.25a.75.75 0 0 0 0 1.5H2.5v2H1.25a.75.75 0 0 0 0 1.5H2.5a3 3 0 0 0 3 3v1.25a.75.75 0 0 0 1.5 0V13.5h2v1.25a.75.75 0 0 0 1.5 0V13.5a3 3 0 0 0 3-3h1.25a.75.75 0 1 0 0-1.5H13.5V7h1.25a.75.75 0 1 0 0-1.5H13.5a3 3 0 0 0-3-3V1.25a.75.75 0 0 0-1.5 0V2.5H7V1.25ZM10.5 4h-5A1.5 1.5 0 0 0 4 5.5v5A1.5 1.5 0 0 0 5.5 12h5a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 10.5 4Zm0 2.25a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0-.75.75v3.5a.75.75 0 0 0 .75.75h3.5a.75.75 0 0 0 .75-.75v-3.5ZM7 7h2v2H7V7Z",clipRule:"evenodd"})),nn=(0,fe.cn)("tablet-icon"),rn=({text:e,className:t})=>(0,ie.jsx)("div",{className:nn(null,t),children:(0,ie.jsx)("div",{className:nn("type"),children:e||"T"})});var on=n(52531),an=n(29819),sn=n(54309);const ln=JSON.parse('{"breadcrumbs.tenant":"Tenant","breadcrumbs.node":"Node","breadcrumbs.pDisk":"PDisk","breadcrumbs.vDisk":"VDisk","breadcrumbs.tablet":"Tablet","breadcrumbs.tablets":"Tablets","breadcrumbs.storageGroup":"Storage Group"}'),cn=(0,pe.g4)("ydb-header",{en:ln}),un=(e,t={})=>{const{clusterName:n,clusterTab:r}=e;return[{text:n||Be.QM,link:(0,Nt.a)(r,t),icon:(0,ie.jsx)(Jt,{})}]},dn=(e,t={})=>{const{tenantName:n}=e,r=un(e,t),o=n?(e=>e.startsWith("/")?e.slice(1):e)(n):cn("breadcrumbs.tenant"),i={text:o,link:n?(0,sn.YL)({...t,database:n}):void 0,icon:(0,ie.jsx)(Xt,{})};return r.push(i),r},fn=(e,t={})=>{const{nodeId:n,nodeRole:r,nodeActiveTab:o,tenantName:i}=e,a=(s=o===an.q7?"tablets":"nodes",{[on.Dt]:on.Dg.diagnostics,[sn.vh.diagnosticsTab]:on.iJ[s]});var s;const l=i?dn(e,{...t,...a}):un(e,t);let c=cn("breadcrumbs.node");n&&(c+=` ${n}`);const u={text:c,link:n?(0,an.vI)(n,{database:i,...t},o):void 0,icon:pn(r)};return l.push(u),l};function pn(e){switch(e){case"Storage":return(0,ie.jsx)(en,{});case"Compute":return(0,ie.jsx)(tn,{});default:return}}const hn=(e,t={})=>{const{nodeId:n,pDiskId:r,nodeRole:o}=e,i=fn({...e,nodeRole:null!==o&&void 0!==o?o:"Storage"});let a=cn("breadcrumbs.pDisk");r&&(a+=` ${r}`);const s={text:a,link:r&&n?(0,de.Ck)(r,n,t):void 0};return i.push(s),i},mn={cluster:un,node:fn,pDisk:hn,tablet:(e,t={})=>{const{tabletId:n,tabletType:r,tenantName:o}=e,i=o?dn(e,t):un(e,t),a={text:n||cn("breadcrumbs.tablet"),icon:(0,ie.jsx)(rn,{text:(0,Be.bk)(r)})};return i.push(a),i},tenant:dn,vDisk:(e,t={})=>{const{vDiskSlotId:n}=e,r=hn(e,t);let o=cn("breadcrumbs.vDisk");n&&(o+=` ${n}`);const i={text:o};return r.push(i),r},storageGroup:(e,t={})=>{const{groupId:n}=e,r=un(e,t);let o=cn("breadcrumbs.storageGroup");n&&(o+=` ${n}`);const i={text:o};return r.push(i),r}},gn=(0,fe.cn)("header");const vn=function({mainPage:e}){const{page:t,pageBreadcrumbsOptions:n}=(0,u.N4)((e=>e.header)),r=(0,Yt.Zd)(),i=r.title||r.name,a=o.useMemo((()=>{const r=[];let o=n;e&&r.push(e),i&&(o={...o,clusterName:i});const a=((e,t,n=[],r={})=>{if(!e)return n;const o=(0,mn[e])(t,r);return[...n,...o]})(t,o,r);return a.map((e=>({...e,action:()=>{}})))}),[i,e,t,n]);return(0,ie.jsxs)("header",{className:gn(),children:[(0,ie.jsx)(Gt,{items:a,lastDisplayedItemsCount:1,firstDisplayedItemsCount:1,className:gn("breadcrumbs"),renderItem:({item:e,isCurrent:t})=>{const{icon:n,text:r,link:o}=e;return(0,ie.jsxs)(Zt.E,{className:gn("breadcrumbs-item",{active:t,link:!t}),to:t?void 0:o,children:[n?(0,ie.jsx)("span",{className:gn("breadcrumbs-icon"),children:n}):null,(0,ie.jsx)("span",{children:r})]})}}),(0,ie.jsx)(Kt.K,{title:Be.T5,url:(0,Qt.Un)()})]})},yn=ft("clusters"),bn=ft("cluster"),wn=ft("tenant"),_n=ft("node"),xn=ft("pDisk"),En=ft("vDisk"),Sn=ft("storageGroup"),kn=ft("tablet"),Cn=ft("routes"),On=ft("redirect"),Nn=JSON.parse('{"pages.clusters":"All clusters"}'),Tn=JSON.parse('{"pages.clusters":"\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),In=(0,pe.g4)("ydb-app-content",{ru:Tn,en:Nn}),An=(0,fe.cn)("app"),Pn=[{path:de.Ay.cluster,slot:bn,component:(0,vt._)((()=>Promise.all([n.e(3940),n.e(6708),n.e(4872),n.e(439),n.e(3230),n.e(1434),n.e(3207)]).then(n.bind(n,51663))),"Cluster"),wrapper:Mn},{path:de.Ay.tenant,slot:wn,component:(0,vt._)((()=>Promise.all([n.e(3940),n.e(6708),n.e(4872),n.e(8546),n.e(6539),n.e(3230),n.e(1434),n.e(4614)]).then(n.bind(n,37875))),"Tenant"),wrapper:Mn},{path:de.Ay.node,slot:_n,component:(0,vt._)((()=>Promise.all([n.e(3940),n.e(6708),n.e(4872),n.e(3230),n.e(3218),n.e(6989)]).then(n.bind(n,49020))),"Node"),wrapper:Mn},{path:de.Ay.pDisk,slot:xn,component:(0,vt._)((()=>Promise.all([n.e(3940),n.e(6708),n.e(4872),n.e(3230),n.e(3218),n.e(4335)]).then(n.bind(n,69134))),"PDiskPage"),wrapper:Mn},{path:de.Ay.vDisk,slot:En,component:(0,vt._)((()=>Promise.all([n.e(3940),n.e(6708),n.e(4872),n.e(3230),n.e(3218),n.e(1489)]).then(n.bind(n,80208))),"VDiskPage"),wrapper:Mn},{path:de.Ay.storageGroup,slot:Sn,component:(0,vt._)((()=>Promise.all([n.e(3940),n.e(6708),n.e(4872),n.e(3230),n.e(2828)]).then(n.bind(n,75510))),"StorageGroupPage"),wrapper:Mn},{path:de.Ay.tablet,slot:kn,component:(0,vt._)((()=>Promise.all([n.e(3940),n.e(8546),n.e(1203)]).then(n.bind(n,47584))),"Tablet"),wrapper:Mn}],Dn=(0,vt._)((()=>Promise.all([n.e(3940),n.e(6708),n.e(3415)]).then(n.bind(n,48288))),"Clusters");function Rn(e,t){return(0,ie.jsx)(ue.qh,{path:t.path,exact:t.exact,render:n=>{var r;const i=e.get(t.slot);let a;if(i)a="function"===typeof i.rendered?i.rendered({component:t.component,...n}):i.rendered;else{const e=t.component;a=(0,ie.jsx)(e,{...n})}const s=null!==(r=t.wrapper)&&void 0!==r?r:o.Fragment;return(0,ie.jsx)("main",{className:An("main"),children:(0,ie.jsx)(s,{children:a})})}},t.path)}function jn(e){var t;const{singleClusterMode:n}=e,r=function(e){const{children:t}=e;return o.useMemo((()=>new ht(t)),[t])}(e),i=r.get(Cn),a=r.get(On),s=null!==(t=null===a||void 0===a?void 0:a.props)&&void 0!==t?t:n?{to:(0,Nt.a)()}:{to:de.Ay.clusters};let l;return n||(l={text:In("pages.clusters"),link:de.Ay.clusters}),(0,ie.jsxs)(ue.dO,{children:[n?null:Rn(r,{path:de.Ay.clusters,exact:!0,component:Dn,slot:yn}),null===i||void 0===i?void 0:i.rendered,(0,ie.jsxs)(ue.qh,{children:[(0,ie.jsx)(vn,{mainPage:l}),(0,ie.jsxs)(ue.dO,{children:[Pn.map((e=>Rn(r,e))),(0,ie.jsx)(ue.qh,{path:s.from||s.path,exact:s.exact,strict:s.strict,render:()=>(0,ie.jsx)(ue.rd,{to:s.to,push:s.push})})]})]},"single-cluster")]})}function Mn({children:e}){return(0,ie.jsxs)(Ln,{children:[(0,ie.jsx)(zn,{}),(0,ie.jsx)(Fn,{}),e]})}function Ln({children:e}){const{isLoading:t,error:n}=c.D_.useWhoamiQuery(void 0);return(0,ie.jsx)(dt.r,{loading:t,size:"l",children:(0,ie.jsx)(ut.A,{error:n,children:e})})}function zn(){return gt.m.useGetNodesListQuery(void 0),null}function Fn(){return(0,mt.e5)(),null}const Bn=(0,a.Ng)((function(e){return{isAuthenticated:e.authentication.isAuthenticated,singleClusterMode:e.singleClusterMode}}))((function(e){const{singleClusterMode:t,isAuthenticated:n}=e;return(0,ie.jsxs)(ue.dO,{children:[(0,ie.jsx)(ue.qh,{path:de.Ay.auth,children:(0,ie.jsx)(Ot,{closable:!0})}),(0,ie.jsx)(ue.qh,{children:(0,ie.jsx)("div",{className:An({embedded:t}),children:n?e.children:(0,ie.jsx)(Ot,{})})})]})}));var Un=n(16332),qn=n(69118),$n=n(67087);const Hn=({children:e})=>{(0,ue.zy)();const t=(0,ue.W6)();return e({replace(e){t.replace(e.search||"?",e.state)},push(e){t.push(e.search||"?",e.state)},get location(){return t.location}})},Wn=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 4.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm1.5 0a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Zm-9 8c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10c1.68 0 3.162.44 4.18 1.041 1.1.65 1.32 1.255 1.32 1.459a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1Zm5.5-4c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h9a2.5 2.5 0 0 0 2.5-2.5c0-2-3.15-4-7-4Z",clipRule:"evenodd"}));var Vn=n(73633),Gn=n(27738),Zn=n(98392),Kn=n(18650),Yn=n(40091);const Qn=o.createContext(void 0);Qn.displayName="AsideHeaderInnerContext";const Jn=Qn.Provider,Xn=()=>{const e=o.useContext(Qn);if(void 0===e)throw new Error("AsideHeaderInnerContext is not initialized.\n Please check if you wrapped your component with AsideHeaderInnerContext.Provider");return e},er=o.createContext({compact:!1,size:0});er.displayName="AsideHeaderContext";const tr=er.Provider,nr=()=>{const e=o.useContext(er);if(void 0===e)throw new Error("AsideHeaderContext is not initialized.\n Please check if you wrapped your component with AsideHeader\n Context.Provider");return e};var rr=n(7450);y('.gn-composite-bar-highlighted-item{--_--background-color:var(--g-color-base-background);--_--item-icon-background-size:38px;--_--item-background-color-hover:var(--g-color-base-selection-hover);--_--item-selected-background-color-active:var(--g-color-base-selection);display:flex;justify-content:center;position:absolute;z-index:10000}.gn-composite-bar-highlighted-item__icon{align-items:center;background-color:var(--gn-aside-header-background-color,var(--_--background-color));border-radius:7px;box-shadow:0 8px 20px 0 var(--g-color-sfx-shadow);cursor:pointer;display:flex;height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));justify-content:center;overflow:hidden;position:relative;transform:translateY(1px);width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-composite-bar-highlighted-item__icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));content:"";height:100%;position:absolute;width:100%;z-index:-1}.gn-composite-bar-highlighted-item__icon:hover:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover))}');const or=(0,v.b)("composite-bar-highlighted-item"),ir=({iconRef:e,iconNode:t,onClick:n,onClickCapture:r})=>{const{openModalSubscriber:i}=Xn(),[{top:a,left:s,width:l,height:c},u]=(0,o.useState)({top:0,left:0,width:0,height:0}),[d,f]=(0,o.useState)(!1),p=(0,o.useMemo)((()=>(0,b.d)((()=>{var t;const{top:n=0,left:r=0,width:o=0,height:i=0}=(null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getBoundingClientRect())||{};u({top:n+window.scrollY,left:r+window.scrollX,width:o,height:i})}),200,{leading:!0})),[e]),h=(0,o.useCallback)((()=>p()),[p]);return(0,o.useEffect)((()=>{if(d)return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)}),[h,d]),null===i||void 0===i||i((e=>{f(e)})),t&&d?o.createElement(Zn.Z,null,o.createElement("div",{className:or(),style:{left:s,top:a,width:l,height:c},onClick:n,onClickCapture:r,"data-toast":!0},o.createElement("div",{className:or("icon")},t))):null};ir.displayName="HighlightedItem";const ar="collapse-item-id",sr=["right-start","right-end","right"];function lr(e){if(!dr(e))return 40;switch(e.type){case"action":return 50;case"divider":return 15;default:return 40}}function cr(e){return e.reduce(((e,t)=>e+lr(t)),0)}function ur(e){const t=e.findIndex((({current:e})=>Boolean(e)));return-1===t?void 0:t}function dr(e){return void 0!==(null===e||void 0===e?void 0:e.id)}y('.gn-composite-bar-item{--gn-composite-bar-item-action-size:36px;--_--horizontal-divider-line-color:var(--g-color-line-generic);--_--item-background-color-hover:var(--g-color-base-simple-hover);--_--item-general-icon-color:var(--g-color-text-primary);--_--item-icon-color:var(--g-color-text-misc);--_--item-text-color:var(--g-color-text-primary);--_--item-selected-text-color:var(--g-color-text-primary);--_--item-selected-background-color-active:var(--g-color-base-selection);align-items:center;cursor:pointer;display:flex;height:100%;width:100%}.gn-composite-bar-item__icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color))}.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-item-icon-color,var(--_--item-icon-color)))}.gn-composite-bar-highlighted-item .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item__icon,.gn-footer-item .gn-composite-bar-item__icon{color:var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color))}.gn-composite-bar-highlighted-item.gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-footer-item.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color)))}.gn-composite-bar-item__icon-tooltip .g-action-tooltip__description{color:var(--g-color-text-light-primary);margin-block-start:0}.gn-composite-bar-item__icon-place{align-items:center;display:flex;flex-shrink:0;height:100%;justify-content:center;width:var(--gn-aside-header-min-width)}.gn-composite-bar-item__title{display:flex;overflow:hidden}.gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-text-color,var(--_--item-text-color));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gn-composite-bar-item_current .gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-current-text-color,var(--_--item-selected-text-color))}.gn-composite-bar-item__title-adornment{margin:0 10px}.gn-composite-bar-item__collapse-item{align-items:center;cursor:pointer;display:flex;height:100%;padding:0 16px;width:100%}.gn-composite-bar-item__collapse-item .gn-composite-bar-item__title-adornment{margin-right:0}.gn-composite-bar-item__menu-divider{border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));cursor:default;margin:0 8px;width:100%}.gn-composite-bar-item__collapse-items-popup-content{padding:4px 0}.gn-composite-bar-item__link{align-items:center;display:flex;height:100%;width:100%}.gn-composite-bar-item__link,.gn-composite-bar-item__link:active,.gn-composite-bar-item__link:focus,.gn-composite-bar-item__link:hover,.gn-composite-bar-item__link:visited{color:inherit;outline:none;text-decoration:none}.gn-composite-bar-item__btn-icon{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.gn-composite-bar-item_type_action{background:var(--g-color-base-float);border-radius:var(--gn-composite-bar-item-action-size);box-shadow:0 0 0 1px rgba(0,0,0,.03),0 5px 6px rgba(0,0,0,.12);height:var(--gn-composite-bar-item-action-size);justify-content:center;margin:0 10px 8px;transition:transform .1s ease-out,background-color .15s linear}.gn-composite-bar-item_type_action:focus-visible{box-shadow:0 0 0 2px var(--g-color-line-misc)}.gn-composite-bar-item_type_action:hover{background-color:var(--g-color-base-float-hover)}.gn-composite-bar-item_type_action:active{box-shadow:0 1px 2px var(--g-color-sfx-shadow);transform:scale(.96);transition:none}.gn-composite-bar-item_type_action .gn-composite-bar-item__icon-place{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin-right:16px}.gn-composite-bar-item__icon-tooltip_item-type_action{margin-left:10px}.gn-composite-bar-item:not(.gn-composite-bar-item_compact).gn-composite-bar-item_current.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active))}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)))}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover))}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin:0}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));border-radius:7px;content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)));border-radius:7px;content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:7px;content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}');const fr=(0,v.b)("composite-bar-item");function pr(e){let t=o.createElement("div",{className:fr("title-text")},e.title);return e.rightAdornment&&(t=o.createElement(o.Fragment,null,t,o.createElement("div",{className:fr("title-adornment")},e.rightAdornment))),t}const hr=["right-end"],mr=[-20,8],gr=e=>{const{item:t,className:n,collapseItems:r,onMouseLeave:i,onMouseEnter:a,enableTooltip:s=!0,popupVisible:l=!1,popupAnchor:c,popupPlacement:u=hr,popupOffset:d=mr,popupKeepMounted:p,popupContentClassName:h,renderPopupContent:m,onClosePopup:g,onItemClick:v,onItemClickCapture:y,bringForward:b}=e,{compact:w}=nr(),[_,x]=o.useState(!1),E=o.useRef(null),S=c||E,k=o.useRef(null),C=t.type||"regular",O=t.current||!1,N=t.tooltipText||t.title,T=t.icon,I=t.iconSize||18,A=t.iconQa,P=t.id===ar,D=o.useMemo((()=>[{name:"compact",enabled:!0,options:{compact:w},phase:"main",fn(){}}]),[w]),R=o.useCallback((e=>{var t;e instanceof MouseEvent&&e.target&&(null===(t=E.current)||void 0===t?void 0:t.contains(e.target))||null===g||void 0===g||g()}),[g]);if("divider"===t.type)return o.createElement("div",{className:fr("menu-divider")});const j=e=>w?o.createElement(Kn.m,{title:"",description:N,disabled:!s||P&&_||l,placement:"right",className:fr("icon-tooltip",{"item-type":C})},o.createElement("div",{onMouseEnter:()=>null===a||void 0===a?void 0:a(),onMouseLeave:()=>null===i||void 0===i?void 0:i(),className:fr("btn-icon")},e)):e,M=({icon:e,title:r})=>{const s=o.createElement(o.Fragment,null,o.createElement("div",{className:fr({type:C,current:O,compact:w},n),ref:E,"data-qa":t.qa,onClick:e=>{P?x(!_):null===v||void 0===v||v(t,!1,e)},onClickCapture:y,onMouseEnter:()=>{w||null===a||void 0===a||a()},onMouseLeave:()=>{w||null===i||void 0===i||i()}},o.createElement("div",{className:fr("icon-place"),ref:k},j(e)),o.createElement("div",{className:fr("title"),title:"string"===typeof t.title?t.title:void 0},r)),m&&Boolean(null===S||void 0===S?void 0:S.current)&&o.createElement(we.z,{contentClassName:fr("popup",h),open:l,keepMounted:p,placement:u,offset:d,anchorRef:S,onClose:R,modifiers:D},m()));return t.link?o.createElement("a",{href:t.link,className:fr("link")},s):s},L=T?o.createElement(f.I,{qa:A,data:T,size:I,className:fr("icon")}):null,z={icon:L,title:pr(t)};let F,B=null;const U={compact:Boolean(w),collapsed:!1,item:t,ref:E};return"function"===typeof t.itemWrapper?(F=t.itemWrapper(z,M,U),B=b&&t.itemWrapper(z,(({icon:e})=>j(e)),U)):(F=M(z),B=b&&j(L)),o.createElement(o.Fragment,null,b&&o.createElement(ir,{iconNode:B,iconRef:k,onClick:e=>null===v||void 0===v?void 0:v(t,!1,e),onClickCapture:y}),F,_&&P&&(null===r||void 0===r?void 0:r.length)&&Boolean(null===S||void 0===S?void 0:S.current)&&o.createElement(vr,Object.assign({},e,{anchorRef:E,onClose:()=>x(!1)})))};function vr({onItemClick:e,collapseItems:t,anchorRef:n,onClose:r}){const{compact:i}=nr();return(null===t||void 0===t?void 0:t.length)?o.createElement(we.z,{placement:sr,open:!0,anchorRef:n,onClose:r},o.createElement("div",{className:fr("collapse-items-popup-content")},o.createElement(Yn.B,{itemClassName:fr("root-collapse-item"),items:t,selectedItemIndex:ur(t),itemHeight:28,itemsHeight:28*t.length,virtualized:!1,filterable:!1,sortable:!1,onItemClick:r,renderItem:t=>{const r=({title:n})=>{const r=o.createElement("div",{className:fr("collapse-item"),onClick:n=>{null===e||void 0===e||e(t,!0,n)}},n);return t.link?o.createElement("a",{href:t.link,className:fr("link")},r):r},a={title:pr(t)},s={compact:Boolean(i),collapsed:!0,item:t,ref:n};return"function"===typeof t.itemWrapper?t.itemWrapper(a,r,s):r(a)}}))):null}gr.displayName="Item";n(82435);y(".gn-footer-item{height:40px;width:100%}");const yr=(0,v.b)("footer-item"),br=e=>{var{item:t}=e,n=d(e,["item"]);return o.createElement(gr,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:yr({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))},wr=o.memo((({renderContent:e,size:t})=>o.createElement(o.Fragment,null,e({size:t}))));wr.displayName="RenderContent";const _r=({size:e,className:t,cssSizeVariableName:n="--gn-aside-header-size",renderContent:r,children:i})=>o.createElement("div",{className:t,style:Object.assign({},{[n]:`${e}px`})},"function"===typeof r?o.createElement(wr,{size:e,renderContent:r}):i);var xr=n(16258);y('.g-root{--gn-aside-top-panel-height:0px}.gn-aside-header{--gn-aside-header-min-width:56px;--_--item-icon-background-size:38px;--_--background-color:var(--g-color-base-background);--_--decoration-collapsed-background-color:var(--g-color-base-warning-light);--_--decoration-expanded-background-color:var(--g-color-base-warning-light);--_--vertical-divider-line-color:var(--g-color-line-generic);--_--horizontal-divider-line-color:var(--g-color-line-generic);background-color:var(--g-color-base-background);height:100%;position:relative;width:100%}.gn-aside-header__aside{background-color:var(--gn-aside-header-background-color,var(--_--background-color));box-sizing:border-box;display:flex;flex-direction:column;height:100vh;left:0;margin-top:var(--gn-aside-top-panel-height);max-height:calc(100vh - var(--gn-aside-top-panel-height));position:sticky;top:var(--gn-aside-top-panel-height);width:inherit;z-index:var(--gn-aside-header-z-index,100)}.gn-aside-header__aside:after{background-color:var(--gn-aside-header-divider-vertical-color,var(--_--vertical-divider-line-color));content:"";height:100%;position:absolute;right:0;top:0;width:1px;z-index:2}.gn-aside-header__aside-popup-anchor{inset:0;position:absolute;z-index:1}.gn-aside-header__aside-content{--gradient-height:334px;display:flex;flex-direction:column;height:inherit;overflow-x:hidden;position:relative;user-select:none;width:inherit;z-index:2}.gn-aside-header__aside-content>.gn-aside-header-logo{margin:8px 0}.gn-aside-header__aside-content_with-decoration{background:linear-gradient(180deg,var(--gn-aside-header-decoration-expanded-background-color,var(--_--decoration-expanded-background-color)) calc(var(--gradient-height)*.33),transparent calc(var(--gradient-height)*.88))}.gn-aside-header__aside-custom-background{bottom:0;display:flex;position:absolute;top:0;z-index:-1}.gn-aside-header_compact .gn-aside-header__aside-content{background:transparent}.gn-aside-header__header{--gn-aside-header-header-divider-height:29px;box-sizing:border-box;flex:none;padding-bottom:22px;padding-top:8px;position:relative;width:100%;z-index:1}.gn-aside-header__header .gn-aside-header__header-divider{bottom:0;color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));display:none;left:0;position:absolute;z-index:-2}.gn-aside-header__header_with-decoration:before{background-color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));content:"";display:none;height:calc(100% - var(--gn-aside-header-header-divider-height));left:0;position:absolute;top:0;width:100%;z-index:-2}.gn-aside-header__header:after{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));bottom:12px;content:"";height:1px;left:0;position:absolute;width:100%;z-index:-2}.gn-aside-header_compact .gn-aside-header__header:before,.gn-aside-header_compact .gn-aside-header__header_with-decoration .gn-aside-header__header-divider{display:block}.gn-aside-header_compact .gn-aside-header__header_with-decoration:after{display:none}.gn-aside-header__logo-button-wrapper{width:var(--gn-aside-header-min-width)}.gn-aside-header__logo-button[class],.gn-aside-header__logo-button[class] .g-button__icon{height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-aside-header__menu-items{flex-grow:1}.gn-aside-header__footer{display:flex;flex-direction:column;flex-shrink:0;margin:8px 0;width:100%}.gn-aside-header__panels{inset:var(--gn-aside-top-panel-height) 0 0;max-height:calc(100vh - var(--gn-aside-top-panel-height));overflow:auto;position:fixed;z-index:var(--gn-aside-header-panel-z-index,98)}.gn-aside-header__panel{height:100%}.gn-aside-header__pane-container{display:flex;flex-direction:row;outline:none;overflow:visible;user-select:text}.gn-aside-header__pane-top-divider{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));height:1px;margin-top:-1px}.gn-aside-header__pane-top{background:var(--g-color-base-background);position:fixed;top:0;width:100%;z-index:var(--gn-aside-header-pane-top-z-index,98)}.gn-aside-header__pane-top-alert_centered{display:flex;justify-content:space-around}.gn-aside-header__pane-top-alert_dense{padding-bottom:var(--g-spacing-2);padding-top:var(--g-spacing-2)}.gn-aside-header__content{margin-top:var(--gn-aside-top-panel-height);width:calc(100% - var(--gn-aside-header-size));z-index:var(--gn-aside-header-content-z-index,95)}');const Er=o.lazy((()=>n.e(6947).then(n.bind(n,6947)).then((e=>({default:e.TopPanel}))))),Sr=Object.assign((({compact:e,className:t,children:n,topAlert:r})=>{const i=e?56:236,a=(0,o.useMemo)((()=>({size:i,compact:e})),[e,i]);return o.createElement(tr,{value:a},o.createElement("div",{className:(0,xr.b)({compact:e},t),style:Object.assign({},{"--gn-aside-header-size":`${i}px`})},r&&o.createElement(o.Suspense,{fallback:null},o.createElement(Er,{topAlert:r})),o.createElement("div",{className:(0,xr.b)("pane-container")},n)))}),{Content:({children:e,renderContent:t})=>{const{size:n}=nr();return o.createElement(_r,{size:n,className:(0,xr.b)("content"),renderContent:t},e)}});var kr=n(42793);const Cr=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.966 1.5 8 1.5c-.967 0-1.703.169-2.138.394-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3c.967 0 1.703-.169 2.139-.394.374-.194.364-.32.361-.351ZM8 4.5c.506 0 .99-.04 1.436-.118l.84 2.352.253.707.717.221c.648.2 1.055.44 1.277.65.192.18.227.31.227.438 0 .14-.055.488-.937.878-.869.384-2.2.622-3.813.622s-2.944-.238-3.813-.622c-.882-.39-.937-.738-.937-.878 0-.128.035-.259.227-.439.222-.209.629-.448 1.277-.649l.717-.221.253-.707.84-2.352c.445.079.93.118 1.436.118Zm4-2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25Z",clipRule:"evenodd"})),Or=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.966 1.5 8 1.5c-.967 0-1.703.169-2.138.394-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3c.967 0 1.703-.169 2.139-.394.374-.194.364-.32.361-.351ZM12 2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25Z",clipRule:"evenodd"}));var Nr;function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tr.apply(this,arguments)}var Ir=function(e){return o.createElement("svg",Tr({width:56,height:29,viewBox:"0 0 56 29",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Nr||(Nr=o.createElement("path",{d:"M56 0v29c-.8-1-7-6.1-17.7-8.4L13 15.7A16 16 0 0 1 0 0Z"})))},Ar=n(14794),Pr=n(48681);function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dr.apply(this,arguments)}function Rr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function jr(e,t){return jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jr(e,t)}function Mr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jr(e,t)}var Lr,zr,Fr,Br;function Ur(){if(zr)return Lr;zr=1;return Lr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function qr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}(function(){if(Br)return Fr;Br=1;var e=Ur();function t(){}function n(){}return n.resetWarningCache=t,Fr=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}})()();var $r=!1,Hr=o.createContext(null),Wr=function(e){return e.scrollTop},Vr="unmounted",Gr="exited",Zr="entering",Kr="entered",Yr="exiting",Qr=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Gr,r.appearStatus=Zr):o=Kr:o=t.unmountOnExit||t.mountOnEnter?Vr:Gr,r.state={status:o},r.nextCallback=null,r}Mr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Vr?{status:Gr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Zr&&n!==Kr&&(t=Zr):n!==Zr&&n!==Kr||(t=Yr)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Zr){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Pr.findDOMNode(this);n&&Wr(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Gr&&this.setState({status:Vr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Pr.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||$r?this.safeSetState({status:Kr},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Zr},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Kr},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Pr.findDOMNode(this);t&&!$r?(this.props.onExit(r),this.safeSetState({status:Yr},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Gr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Gr},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Pr.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Vr)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Rr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o.createElement(Hr.Provider,{value:null},"function"===typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},t}(o.Component);function Jr(){}Qr.contextType=Hr,Qr.propTypes={},Qr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Jr,onEntering:Jr,onEntered:Jr,onExit:Jr,onExiting:Jr,onExited:Jr},Qr.UNMOUNTED=Vr,Qr.EXITED=Gr,Qr.ENTERING=Zr,Qr.ENTERED=Kr,Qr.EXITING=Yr;var Xr=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},eo=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=qr(n.className,r):n.setAttribute("class",qr(n.className&&n.className.baseVal||"",r)));var n,r}))},to=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Mr(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&Wr(e),r&&(this.appliedClasses[t][n]=r,Xr(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&eo(e,r),o&&eo(e,o),i&&eo(e,i)},n.render=function(){var e=this.props;e.classNames;var t=Rr(e,["classNames"]);return o.createElement(Qr,Dr({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.Component);function no(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function ro(e,t,n){return null!=n[t]?n[t]:e.props[t]}function oo(e,t,n){var r=no(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if((0,o.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:ro(s,"exit",e),enter:ro(s,"enter",e)})):i[a]=(0,o.cloneElement)(s,{in:!1}):i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:ro(s,"exit",e),enter:ro(s,"enter",e)})}})),i}to.defaultProps={classNames:""},to.propTypes={};var io,ao,so=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},lo=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Mr(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,no(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:ro(e,"appear",n),enter:ro(e,"enter",n),exit:ro(e,"exit",n)})}))):oo(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=no(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Dr({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Rr(e,["component","childFactory"]),i=this.state.contextValue,a=so(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(Hr.Provider,{value:i},a):o.createElement(Hr.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);lo.propTypes={},lo.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}Mr(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,a=o.Children.toArray(i)[t];if(a.props[e]&&(r=a.props)[e].apply(r,n),this.props[e]){var s=a.props.nodeRef?void 0:Pr.findDOMNode(this);this.props[e](s)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=Rr(e,["children","in"]),i=o.Children.toArray(t),a=i[0],s=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,o.createElement(lo,r,n?o.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):o.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(o.Component)).propTypes={};var co="out-in",uo="in-out",fo=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},po=((io={})[co]=function(e){var t=e.current,n=e.changeState;return o.cloneElement(t,{in:!1,onExited:fo(t,"onExited",(function(){n(Zr,null)}))})},io[uo]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,o.cloneElement(r,{in:!0,onEntered:fo(r,"onEntered",(function(){n(Zr)}))})]},io),ho=((ao={})[co]=function(e){var t=e.children,n=e.changeState;return o.cloneElement(t,{in:!0,onEntered:fo(t,"onEntered",(function(){n(Kr,o.cloneElement(t,{in:!0}))}))})},ao[uo]=function(e){var t=e.current,n=e.children,r=e.changeState;return[o.cloneElement(t,{in:!1,onExited:fo(t,"onExited",(function(){r(Kr,o.cloneElement(n,{in:!0}))}))}),o.cloneElement(n,{in:!0})]},ao),mo=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:Kr,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Mr(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Zr&&e.mode===uo?{status:Zr}:!t.current||(n=t.current,r=e.children,n===r||o.isValidElement(n)&&o.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:o.cloneElement(e.children,{in:!0})}:{status:Yr};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,a=i.status,s=i.current,l={children:n,current:s,changeState:this.changeState,status:a};switch(a){case Zr:e=ho[r](l);break;case Yr:e=po[r](l);break;case Kr:e=s}return o.createElement(Hr.Provider,{value:{isMounting:!this.appeared}},e)},t}(o.Component);mo.propTypes={},mo.defaultProps={mode:co};y(".gn-drawer__item{background-color:var(--g-color-base-background);bottom:0;height:100%;left:0;position:absolute;top:0;will-change:transform}.gn-drawer__item_direction_right{left:auto;right:0}.gn-drawer__item-transition-enter{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-enter{transform:translate(100%)}.gn-drawer__item-transition-enter-active,.gn-drawer__item-transition_direction_right-enter-active{transform:translate(0);transition:transform .3s}.gn-drawer__item-transition-enter-done,.gn-drawer__item-transition_direction_right-enter-done{filter:blur(0);transform:translateZ(0)}.gn-drawer__item-transition-exit,.gn-drawer__item-transition_direction_right-exit{transform:translate(0)}.gn-drawer__item-transition-exit-active,.gn-drawer__item-transition_direction_right-exit-active{transition:transform .3s}.gn-drawer__item-transition-exit-active{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-exit-active{transform:translate(100%)}.gn-drawer__item-transition-exit-done,.gn-drawer__item-transition_direction_right-exit-done{visibility:hidden}.gn-drawer__veil{background-color:var(--g-color-sfx-veil);inset:0;position:absolute}.gn-drawer__veil-transition-enter{opacity:0}.gn-drawer__veil-transition-enter-active{opacity:1;transition:opacity .3s}.gn-drawer__veil-transition-exit{opacity:1}.gn-drawer__veil-transition-exit-active{opacity:0;transition:opacity .3s}.gn-drawer__veil-transition-exit-done{visibility:hidden}");const go=(0,v.b)("drawer"),vo=({visible:e,content:t,children:n,direction:r="left",className:i})=>{const a=o.useRef(null),s="left"===r?void 0:r;return o.createElement(to,{in:e,timeout:300,unmountOnExit:!0,classNames:go("item-transition",{direction:s}),nodeRef:a},o.createElement("div",{ref:a,className:go("item",{direction:s},i)},null!==n&&void 0!==n?n:t))},yo=({className:e,children:t,style:n,onVeilClick:r,onEscape:i,preventScrollBody:a=!0})=>{let s=!1;o.Children.forEach(t,(e=>{if(o.isValidElement(e)&&e.type===vo){Boolean(e.props.visible)&&(s=!0)}})),o.useEffect((()=>{function e(e){"Escape"===e.key&&(null===i||void 0===i||i())}return s&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[i,s]),(0,Ar.y)({enabled:a&&s});const l=o.useRef(null),c=o.useRef(null);return o.createElement(Qr,{in:s,timeout:{enter:0,exit:300},mountOnEnter:!0,unmountOnExit:!0,nodeRef:l},(i=>{const a=s&&"entered"===i;return o.createElement("div",{ref:l,className:go(null,e),style:n},o.createElement(to,{in:a,timeout:300,unmountOnExit:!0,classNames:go("veil-transition"),nodeRef:c},o.createElement("div",{ref:c,className:go("veil"),onClick:r})),o.Children.map(t,(e=>{if(o.isValidElement(e)&&e.type===vo){const t=Boolean(e.props.visible);return o.cloneElement(e,Object.assign(Object.assign({},e.props),{visible:t&&a}))}return e})))}))};y(".gn-all-pages-list-item{align-items:center;column-gap:var(--g-spacing-4);display:flex;height:40px;padding:0 var(--g-spacing-6);width:100%}.gn-all-pages-list-item__text{flex:1}.gn-all-pages-list-item__icon{color:var(--g-color-text-misc)}");const bo=(0,v.b)("all-pages-list-item"),wo=e=>{const{item:t,editMode:n,onToggle:r}=e,i=(0,o.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),r()}),[r]);return o.createElement("div",{className:bo(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}},t.icon?o.createElement(f.I,{className:bo("icon"),data:t.icon,size:t.iconSize}):null,o.createElement("span",{className:bo("text")},t.title),n&&o.createElement(E.$,{onClick:i,view:t.hidden?"flat-secondary":"flat-action"},o.createElement(E.$.Icon,null,t.hidden?o.createElement(Cr,null):o.createElement(Or,null))))};var _o=(0,w.N)({en:{"menu-item.all-pages.title":"All pages","all-panel.menu.category.allOther":"All other","all-panel.resetToDefault":"Reset to default","all-panel.title.editing":"Editing","all-panel.title.main":"All pages"},ru:{"menu-item.all-pages.title":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b","all-panel.menu.category.allOther":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435","all-panel.resetToDefault":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","all-panel.title.editing":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","all-panel.title.main":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b"}},`${v.N}AllPagesPanel`);const xo="all-pages";y(".gn-all-pages-panel{box-sizing:border-box;height:100%;min-width:300px;padding:var(--g-spacing-4) var(--g-spacing-6)}.gn-all-pages-panel__content{flex:1;margin:0 calc(var(--g-spacing-6)*-1);overflow:auto}.gn-all-pages-panel__category{padding:0 var(--g-spacing-6)}.gn-all-pages-panel__discoverable-feature-wrapper{display:flex}");const Eo=(0,v.b)("all-pages-panel"),So=e=>{const{startEditIcon:t,onEditModeChanged:n,className:r}=e,{menuItems:i,onMenuItemsChanged:a}=Xn(),s=(0,o.useRef)(i);s.current=i;const[l,c]=(0,o.useState)(!1),u=(0,o.useCallback)((()=>{c((e=>!e))}),[]),d=(e=>{const t=(0,o.useMemo)((()=>{const t=e.filter((e=>"divider"!==e.type&&e.id!==xo));return t.sort(((e,t)=>"action"===e.type?1:"action"===t.type?-1:0)),t.reduce(((e,t)=>{const n=t.category||_o("all-panel.menu.category.allOther");return e[n]||(e[n]=[]),e[n].push(t),e}),{})}),[e]);return t})(i);(0,o.useEffect)((()=>{null===n||void 0===n||n(l)}),[l,n]);const p=(0,o.useCallback)((e=>{var t;null===(t=e.onItemClick)||void 0===t||t.call(e,e,!1)}),[]),h=(0,o.useCallback)((e=>{if(!a)return;const t=Object.assign(Object.assign({},e),{hidden:!e.hidden}),n=s.current.filter((e=>e.id!==xo));a(n.map((e=>e.id!==t.id?e:t)))}),[a]),m=(0,o.useCallback)(((e,t,n)=>o.createElement(wo,{item:e,editMode:l,onToggle:()=>h(e)})),[l,h]),v=(0,o.useCallback)((()=>{if(!a)return;const e=s.current.filter((e=>e.id!==xo));a(e.map((e=>Object.assign(Object.assign({},e),{hidden:!1}))))}),[a]);return o.createElement(g.s,{className:Eo(null,r),gap:"5",direction:"column"},o.createElement(g.s,{gap:"4",alignItems:"center",justifyContent:"space-between"},o.createElement(x.E,{variant:"subheader-2"},_o(l?"all-panel.title.editing":"all-panel.title.main")),o.createElement(E.$,{selected:l,view:"normal",onClick:u},t||o.createElement(f.I,{data:Gn.A}))),o.createElement(g.s,{className:Eo("content"),gap:"5",direction:"column"},Object.keys(d).map((e=>o.createElement(g.s,{key:e,direction:"column",gap:"3"},o.createElement(x.E,{className:Eo("category"),variant:"body-1",color:"secondary"},e),o.createElement(Yn.B,{virtualized:!1,filterable:!1,items:d[e],onItemClick:p,renderItem:m}))))),l&&o.createElement(E.$,{onClick:v},_o("all-panel.resetToDefault")))};let ko;ko="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let Co=null,Oo=null;const No=ko.clearTimeout,To=ko.setTimeout,Io=ko.cancelAnimationFrame||ko.mozCancelAnimationFrame||ko.webkitCancelAnimationFrame,Ao=ko.requestAnimationFrame||ko.mozRequestAnimationFrame||ko.webkitRequestAnimationFrame;function Po(e){let t,n,r,o,i,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&Co(this.__resizeRAF__),this.__resizeRAF__=Oo((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=ko.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==Io||null==Ao?(Co=No,Oo=function(e){return To(e,20)}):(Co=function([e,t]){Io(e),No(t)},Oo=function(e){const t=Ao((function(){No(n),e()})),n=To((function(){Io(t),e()}),20);return[t,n]});class Do extends o.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!==typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=Po(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:i=!1,nonce:a,onResize:s,style:l={},tagName:c="div",...u}=this.props,{height:d,scaledHeight:f,scaledWidth:p,width:h}=this.state,m={overflow:"visible"},g={};let v=!1;return r||(0===d&&(v=!0),m.height=0,g.height=d,g.scaledHeight=f),i||(0===h&&(v=!0),m.width=0,g.width=h,g.scaledWidth=p),(0,o.createElement)(c,{ref:this._setRef,style:{...m,...l},...u},!v&&e(g))}}const Ro={active:!1,activeIndex:void 0,hideCollapseItemTooltip:!1,lastClickedItemIndex:void 0,setValue:()=>{}},jo=o.createContext(Ro);class Mo extends o.PureComponent{constructor(){super(...arguments),this.state=Object.assign({},Ro),this.setValue=e=>{this.setState(Object.assign({},e))}}render(){const{children:e}=this.props;return o.createElement(jo.Provider,{value:Object.assign(Object.assign({},this.state),{setValue:this.setValue})},e)}}y('.g-root_theme_dark .gn-multiple-tooltip,.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-100-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(16px)}.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-150-solid)\n )}.g-root_theme_light .gn-multiple-tooltip,.g-root_theme_light-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-black-550-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(12px)}.gn-multiple-tooltip.gn-multiple-tooltip{background-color:transparent;box-shadow:none}.gn-multiple-tooltip:before{background:var(--multiple-tooltip-backdrop-background);box-shadow:none;content:"";filter:var(--multiple-tooltip-backdrop-filter);height:100%;opacity:.7;position:absolute;width:100%;z-index:-1}.gn-multiple-tooltip__items-container{align-items:flex-start;display:flex;flex-direction:column;padding:32px 40px 32px 12px}.gn-multiple-tooltip__item{align-items:center;background-color:var(--multiple-tooltip-item-bg-color);border-radius:5px;box-sizing:border-box;color:var(--g-color-text-light-primary);display:flex;height:30px;margin-bottom:5px;padding:8px 12px;position:relative;transition:transform .1s ease-in-out}.gn-multiple-tooltip__item:first-child,.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider)+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:5px}.gn-multiple-tooltip__item_divider+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:4px}.gn-multiple-tooltip__item_active{background-color:var(--multiple-tooltip-item-active-bg-color);transform:translateX(-12px)}.gn-multiple-tooltip__item_divider{height:15px;margin:0;visibility:hidden}');const Lo=(0,v.b)("multiple-tooltip"),zo=[-32,4],Fo=[{name:"preventOverflow",enabled:!1}],Bo=({items:e,open:t,anchorRef:n,placement:r})=>{const{activeIndex:i,hideCollapseItemTooltip:a}=o.useContext(jo),s=void 0===i?null:e[i];return o.createElement(we.z,{open:t,anchorRef:n,placement:r,offset:zo,contentClassName:Lo(null),modifiers:Fo,disableLayer:!0},o.createElement("div",{className:Lo("items-container")},e.filter((({type:e="regular",id:t})=>!a||t!==ar&&"action"!==e)).map(((e,t)=>"divider"===e.type?o.createElement("div",{className:Lo("item",{divider:!0}),key:t},e.title):o.createElement("div",{className:Lo("item",{active:e===s}),key:t},e.title)))))};y(".gn-composite-bar{flex:1 0 auto;min-height:40px;width:100%}.gn-composite-bar .gn-composite-bar__root-menu-item[class]{background-color:transparent}");const Uo=(0,v.b)("composite-bar"),qo=({type:e,items:t,onItemClick:n,collapseItems:r,multipleTooltip:i=!1})=>{const a=(0,o.useRef)(null),s=(0,o.useRef)(null),{setValue:l,active:c,activeIndex:u,lastClickedItemIndex:d}=(0,o.useContext)(jo),{compact:f}=nr();o.useEffect((()=>{function e(){i&&c&&l({active:!1})}return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}}),[i,c,l]);const p=(0,o.useCallback)((e=>{i&&f&&!c&&document.hasFocus()&&u!==d&&e.clientX<=56&&(null===l||void 0===l||l({active:!0}))}),[i,f,c,u,d,l]),h=(0,o.useCallback)((()=>{i&&c&&document.hasFocus()&&(null===l||void 0===l||l({active:!1,lastClickedItemIndex:void 0}))}),[i,c,l]),m=(0,o.useCallback)((e=>()=>{if(i&&document.hasFocus()){let t=c;if(c||e===d||(t=!0),u===e&&c===t)return;l({activeIndex:e,active:t})}}),[i,c,d,u,l]),g=(0,o.useCallback)((()=>{var e;f&&document.hasFocus()&&(null===(e=a.current)||void 0===e||e.activateItem(void 0),!i||void 0===u&&void 0===d||l({activeIndex:void 0,lastClickedItemIndex:void 0}))}),[u,f,d,i,l]),v=(0,o.useCallback)((e=>(t,r,o)=>{f&&i&&e!==d&&t.id!==ar&&l({lastClickedItemIndex:e,active:!1}),null===n||void 0===n||n(t,r,o)}),[f,d,i,n,l]);return o.createElement(o.Fragment,null,o.createElement("div",{ref:s,onMouseEnter:p,onMouseLeave:h},o.createElement(Yn.B,{ref:a,items:t,selectedItemIndex:"menu"===e?ur(t):void 0,itemHeight:lr,itemsHeight:cr,itemClassName:Uo("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:(e,t,n)=>{const a=dr(e)?{item:e}:e,s=dr(e)?!i:e.enableTooltip;return o.createElement(gr,Object.assign({},a,{enableTooltip:s,onMouseEnter:m(n),onMouseLeave:g,onItemClick:v(n),collapseItems:r}))}})),"menu"===e&&i&&o.createElement(Bo,{open:f&&c,anchorRef:s,placement:["right-start"],items:t}))},$o=({type:e,items:t,menuMoreTitle:n,onItemClick:r,multipleTooltip:i=!1})=>{if(0===t.length)return null;let a;if("menu"===e){const e=function(e){const t=function(e){const t=[];for(const n of e)(n.pinned||"divider"===n.type&&t.length>0&&"divider"!==t[t.length-1].type)&&t.push(n);return t}(e),n=e.filter((e=>e.afterMoreButton));return cr(t)+cr(n)+(t.length===e.length?0:40)}(t),s=function(e){return{id:ar,title:e,icon:rr.A,iconSize:18}}(n);a=o.createElement("div",{className:Uo({autosizer:!0}),style:{minHeight:e}},0!==t.length&&o.createElement(Do,null,(e=>{const n=Number.isNaN(e.width)?0:e.width,a=Number.isNaN(e.height)?0:e.height,{listItems:l,collapseItems:c}=function(e,t,n){var r,o,i;const a=e.filter((e=>e.afterMoreButton)),s=e.filter((e=>!e.afterMoreButton)),l=[...s,...a],c=cr(l);if(c<=t)return{listItems:l,collapseItems:[]};const u=lr(n);l.splice(s.length,0,n);const d=[];let f=c+u,p=l.length;for(;f>t&&0!==p;){p--;const e=l[p];e.pinned||e.id===ar||e.afterMoreButton||("divider"!==e.type?(f-=lr(e),d.unshift(...l.splice(p,1))):p+1<l.length&&"divider"===(null===(r=l[p+1])||void 0===r?void 0:r.type)&&(f-=lr(e),l.splice(p,1)))}return"divider"!==(null===(o=l[p])||void 0===o?void 0:o.type)||0!==p&&"divider"!==(null===(i=l[p-1])||void 0===i?void 0:i.type)||l.splice(p,1),{listItems:l,collapseItems:d}}(t,a,s);return o.createElement("div",{style:{width:n,height:a}},o.createElement(qo,{type:"menu",items:l,onItemClick:r,collapseItems:c,multipleTooltip:i}))})))}else a=o.createElement("div",{className:Uo({subheader:!0})},o.createElement(qo,{type:"subheader",items:t,onItemClick:r}));return o.createElement(Mo,null,a)};var Ho={button_collapse:"Collapse",button_expand:"Expand",label_more:"More"},Wo={button_collapse:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",button_expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",label_more:"\u0415\u0449\u0451"};var Vo,Go=(0,w.N)({en:Ho,ru:Wo},`${v.N}AsideHeader`);function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zo.apply(this,arguments)}var Ko=function(e){return o.createElement("svg",Zo({width:8,height:8,viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Vo||(Vo=o.createElement("path",{d:"m.72 7.64 6.39-3.2a.5.5 0 0 0 0-.89L.72.36A.5.5 0 0 0 0 .81v6.38c0 .37.4.61.72.45Z"})))};y('.gn-collapse-button{--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;align-items:center;background:none;border:none;border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));box-sizing:content-box;color:inherit;cursor:pointer;display:flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;min-height:20px;outline:none;padding:0;position:relative;width:100%}.gn-collapse-button:before{content:"";inset:0 2px 2px;position:absolute;z-index:-1}.gn-collapse-button:focus-visible:before{outline:var(--_--focus-outline-color) solid 2px;outline-offset:var(--_--focus-outline-offset)}.gn-collapse-button:not(.gn-collapse-button_compact) .gn-collapse-button__icon{transform:rotate(180deg)}.gn-collapse-button:hover .gn-collapse-button__icon{color:var(--g-color-text-primary)}.gn-collapse-button__icon{color:var(--g-color-text-secondary)}');const Yo=(0,v.b)("collapse-button"),Qo=({className:e})=>{const{onChangeCompact:t,compact:n,expandTitle:r,collapseTitle:i}=Xn(),a=(0,o.useCallback)((()=>{null===t||void 0===t||t(!n)}),[n,t]),s=n?r||Go("button_expand"):i||Go("button_collapse");return o.createElement("button",{className:Yo({compact:n},e),onClick:a,title:s},o.createElement(f.I,{data:Ko,className:Yo("icon"),width:"16",height:"10"}))};y(".gn-logo{height:40px}.gn-logo,.gn-logo__logo-btn-place{align-items:center;display:flex;flex-shrink:0}.gn-logo__logo-btn-place{cursor:pointer;justify-content:center}.gn-logo__logo-btn-place .g-button:before{background-color:transparent}.gn-logo__logo{cursor:pointer;font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height);vertical-align:middle}.gn-logo__logo-link,.gn-logo__logo-link:active,.gn-logo__logo-link:focus,.gn-logo__logo-link:hover,.gn-logo__logo-link:visited{color:inherit;outline:none;text-decoration:none}.g-root .gn-logo__btn-logo.button2_theme_flat.button2_hovered_yes:before{background-color:transparent}");const Jo=(0,v.b)("logo"),Xo=({text:e,icon:t,iconSrc:n,iconClassName:r,iconSize:i=24,textSize:a=15,href:s,target:l="_self",wrapper:c,onClick:u,compact:d,className:p,buttonWrapperClassName:h,buttonClassName:m,"aria-label":g,"aria-labelledby":v})=>{const y="function"===typeof c;let b;n?b=o.createElement(E.$.Icon,{className:r},o.createElement("img",{alt:"logo icon",src:n,width:i,height:i})):t&&(b=o.createElement(f.I,{data:t,size:i,className:r}));const w=o.createElement(E.$,{view:"flat",size:"l",className:Jo("btn-logo",m),component:y?"span":void 0,onClick:u,target:l,rel:"_self"===l?void 0:"noreferrer",href:s,extraProps:{"aria-label":g,"aria-labelledby":v}},b);let _;return _="function"===typeof e?e():o.createElement("div",{className:Jo("logo"),style:{fontSize:a}},e),o.createElement("div",{className:Jo(null,p)},o.createElement("div",{className:Jo("logo-btn-place",h)},y?c(w,Boolean(d)):w),!d&&(y?o.createElement("div",{onClick:u},c(_,Boolean(d))):o.createElement("a",{href:null!==s&&void 0!==s?s:"/",target:l,rel:"_self"===l?void 0:"noreferrer",className:Jo("logo-link"),onClick:u},_)))},ei=[],ti=()=>{const{logo:e,onItemClick:t,onClosePanel:n,headerDecoration:r,subheaderItems:i}=Xn(),{compact:a}=nr(),{onClick:s}=e,l=(0,o.useCallback)((e=>{null===n||void 0===n||n(),null===s||void 0===s||s(e)}),[n,s]);return o.createElement("div",{className:(0,xr.b)("header",{"with-decoration":r})},o.createElement(Xo,Object.assign({},e,{onClick:l,compact:a,buttonWrapperClassName:(0,xr.b)("logo-button-wrapper"),buttonClassName:(0,xr.b)("logo-button")})),o.createElement($o,{type:"subheader",items:i||ei,onItemClick:t}),o.createElement(f.I,{data:Ir,className:(0,xr.b)("header-divider"),width:56,height:29}))},ni=()=>{const{panelItems:e,onClosePanel:t,size:n}=Xn();return e?o.createElement(yo,{className:(0,xr.b)("panels"),onVeilClick:t,onEscape:t,style:{left:n}},e.map((e=>o.createElement(vo,Object.assign({key:e.id},e))))):null},ri=o.forwardRef(((e,t)=>{const{size:n,onItemClick:r,headerDecoration:i,multipleTooltip:a,menuMoreTitle:s,renderFooter:l,compact:c,customBackground:u,customBackgroundClassName:d,className:f,hideCollapseButton:p,qa:h}=Xn(),m=(()=>{const{menuItems:e,allPagesIsAvailable:t}=Xn();return(0,o.useMemo)((()=>{if(!t)return e;let n=0;return e.filter(((e,t,r)=>!e.hidden&&(!(t>0&&"divider"===e.type)||"divider"!==r[n].type&&!r[n].hidden)&&(n=t,!0)))}),[t,e])})(),g=(0,o.useRef)(null);return o.useEffect((()=>{(0,kr.c)(t,g.current)}),[t]),o.createElement(o.Fragment,null,o.createElement("div",{className:(0,xr.b)("aside",f),style:{width:n},"data-qa":h},o.createElement("div",{className:(0,xr.b)("aside-popup-anchor"),ref:g}),o.createElement("div",{className:(0,xr.b)("aside-content",{"with-decoration":i})},u&&o.createElement("div",{className:(0,xr.b)("aside-custom-background",d)},u),o.createElement(ti,null),(null===m||void 0===m?void 0:m.length)?o.createElement($o,{type:"menu",items:m,menuMoreTitle:null!==s&&void 0!==s?s:Go("label_more"),onItemClick:r,multipleTooltip:a}):o.createElement("div",{className:(0,xr.b)("menu-items")}),o.createElement("div",{className:(0,xr.b)("footer")},null===l||void 0===l?void 0:l({size:n,compact:Boolean(c),asideRef:g})),!p&&o.createElement(Qo,null))),o.createElement(ni,null))}));var oi;ri.displayName="FirstPanel",function(e){e.AllPages="all-pages"}(oi||(oi={}));const ii=[],ai=e=>{const{size:t,onClosePanel:n,menuItems:r,panelItems:i,onMenuItemsChanged:a}=e,[s,l]=(0,o.useState)(),c=o.useMemo((()=>({id:xo,title:_o("menu-item.all-pages.title"),tooltipText:_o("menu-item.all-pages.title"),icon:rr.A})),[]),u=Boolean(a)&&(!r||(null===r||void 0===r?void 0:r.length)>0);(0,o.useEffect)((()=>{(null===i||void 0===i?void 0:i.some((e=>e.visible)))&&l(void 0)}),[i]);const d=(0,o.useCallback)((()=>{l(void 0),null===n||void 0===n||n()}),[n]),f=(0,o.useCallback)(((e,t,n)=>{var r;e.id===c.id?l((e=>e===oi.AllPages?void 0:oi.AllPages)):d(),null===(r=e.onItemClick)||void 0===r||r.call(e,e,t,n)}),[d,c]),p=(0,o.useMemo)((()=>u?[...r||ii,Object.assign(Object.assign({},c),{current:s===oi.AllPages})]:r||ii),[u,r,s,c]),h=(0,o.useMemo)((()=>u?[...i||[],{id:oi.AllPages,content:o.createElement(So,null),visible:s===oi.AllPages}]:i),[u,i,s]);return Object.assign(Object.assign({},e),{onClosePanel:d,allPagesIsAvailable:u,menuItems:p,panelItems:h,size:t,onItemClick:f})},si=o.forwardRef(((e,t)=>{const{size:n,compact:r}=nr(),i=ai(Object.assign({size:n,compact:r},e));return o.createElement(Jn,{value:i},o.createElement(ri,{ref:t}))}));si.displayName="PageLayoutAside";const li=o.forwardRef(((e,t)=>{var{compact:n,className:r,topAlert:i}=e,a=d(e,["compact","className","topAlert"]);return o.createElement(Sr,{compact:n,className:r,topAlert:i},o.createElement(si,Object.assign({ref:t},a)),o.createElement(Sr.Content,{renderContent:a.renderContent}))}));li.displayName="AsideHeader";var ci,ui=n(59001);function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},di.apply(this,arguments)}const fi=function(e){return o.createElement("svg",di({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},e),ci||(ci=o.createElement("path",{d:"M560 448h-48V113.5c0-27.25-21.5-49.5-48-49.5l-112 .01V128h96v384h112c8.875 0 16-7.125 16-15.1v-31.1c0-10.7-7.1-17.8-16-17.8zM280.3 1.007l-192 49.75C73.1 54.51 64 67.76 64 82.88V448H16c-8.875 0-16 7.125-16 15.1v31.1C0 504.9 7.125 512 16 512h304V33.13c0-21.5-19.5-37.373-39.7-32.123zM232 288c-13.25 0-24-14.37-24-31.1 0-17.62 10.75-31.1 24-31.1s24 12.6 24 30.2-10.7 32-24 32z"})))},pi=(0,fe.cn)("kv-navigation");function hi({isCompact:e,popupAnchor:t,user:n,children:r}){var i;const[a,s]=o.useState(!1),l=n?null!==(i=n.icon)&&void 0!==i?i:Wn:fi;return(0,ie.jsx)(br,{compact:e,item:{id:"user-popup",title:null!==n&&void 0!==n&&n.login?n.login:me("navigation-item.account"),current:a,icon:l,onItemClick:()=>s((e=>!e))},enableTooltip:!a,popupAnchor:t,popupVisible:a,onClosePopup:()=>s(!1),renderPopupContent:()=>(0,ie.jsx)("div",{className:pi("ydb-user-wrapper"),children:r})})}var mi;function gi(e){const t=(0,ue.W6)(),[n,r]=o.useState(),[i,a]=(0,u.iK)(Be.LQ);return(0,ie.jsx)(o.Fragment,{children:(0,ie.jsx)(li,{logo:{text:"YDB",icon:kt,onClick:()=>t.push("/")},menuItems:e.menuItems,compact:i,onChangeCompact:a,className:pi(),renderContent:()=>e.content,renderFooter:({compact:t,asideRef:i})=>(0,ie.jsxs)(o.Fragment,{children:[(0,ie.jsx)(br,{compact:t,item:{id:"documentation",title:me("navigation-item.documentation"),icon:Vn.A,onItemClick:()=>{window.open("ru"===ui.f.readUserSettingsValue(Be.jS,navigator.language)?"https://ydb.tech/docs/ru/":"https://ydb.tech/docs/en/","_blank","noreferrer")}}}),(0,ie.jsx)(br,{item:{id:"user-settings",title:me("navigation-item.settings"),icon:Gn.A,current:n===mi.UserSettings,onItemClick:()=>{r(n===mi.UserSettings?void 0:mi.UserSettings)}},compact:t}),(0,ie.jsx)(hi,{isCompact:t,popupAnchor:i,user:e.user,children:e.ydbInternalUser})]}),panelItems:[{id:"user-settings",visible:n===mi.UserSettings,content:e.settings}],onClosePanel:()=>{r(void 0)}})})}!function(e){e.UserSettings="UserSettings"}(mi||(mi={}));const vi=(new class{constructor(){this.type=void 0,this.entities={}}set(e,t){return this.entities[e]=t,this}get(e){return this.entities[e]}register(e,t){return this.entities[e]=t,this}}).register("StaffCard",(function({children:e}){return(0,ie.jsx)(o.Fragment,{children:e})})).register("AsideNavigation",gi).register("ErrorBoundary",s.lQ);function yi({store:e,history:t,componentsRegistry:n=vi,children:r}){return(0,ie.jsx)(i.vd,{children:(0,ie.jsx)(a.Kq,{store:e,children:(0,ie.jsx)(ue.Ix,{history:t,children:(0,ie.jsx)($n.QueryParamProvider,{adapter:Hn,children:(0,ie.jsx)(bi,{children:(0,ie.jsx)(Un.Kq,{children:(0,ie.jsx)(l.I,{registry:n,children:r})})})})})})})}function bi({children:e}){const[t]=(0,u.iK)(Be.k4);return(0,ie.jsx)(qn.N,{theme:t,children:e})}const wi=(0,a.Ng)((function(e){return{singleClusterMode:e.singleClusterMode}}))((function({store:e,history:t,singleClusterMode:n,children:r,userSettings:o=ct({singleClusterMode:n})}){return(0,ie.jsxs)(yi,{store:e,history:t,children:[(0,ie.jsx)(i.mg,{defaultTitle:"YDB Monitoring",titleTemplate:"%s \u2014 YDB Monitoring"}),(0,ie.jsx)(Bn,{children:(0,ie.jsx)(ye,{userSettings:o,children:(0,ie.jsxs)(s.tH,{children:[(0,ie.jsx)(jn,{singleClusterMode:n,children:r}),(0,ie.jsx)("div",{id:"fullscreen-root"})]})})}),(0,ie.jsx)(Re,{})]})}));function _i({monitoring:e,dbName:t,dbType:n,clusterName:r}){try{const a=Ei(e);if(a){var o,i;const e=null!==(o=a.host)&&void 0!==o?o:"cluster",s=null!==(i=a.slot)&&void 0!==i?i:"static",l=a.cluster_name||r||"",c=new URL(a.monitoring_url);if(!c.search){const e="Serverless"===n?a.serverless_dashboard:a.dedicated_dashboard;c.pathname+=`/${e}`}return c.searchParams.has("p.cluster")||c.searchParams.set("p.cluster",l),c.searchParams.set("p.host",e),c.searchParams.set("p.slot",s),c.searchParams.set("p.database",t),c.toString()}}catch{}return""}function xi(e,t){try{const n=Ei(e);if(n){const e=n.cluster_dashboard,r=n.cluster_name||t||"",o=new URL(n.monitoring_url);return!o.search&&e&&(o.pathname+=`/${e}/view`),o.searchParams.has("p.cluster")||o.searchParams.set("p.cluster",r),o.searchParams.set("p.database","-"),o.toString()}}catch{}return""}function Ei(e){try{const t=JSON.parse(e);if("object"===typeof t&&"monitoring_url"in t)return t}catch{}}var Si=n(96873),ki=n(40537),Ci=n(69446),Oi=n(77630),Ni=n(71294);const Ti=(0,fe.cn)("extended-cluster"),Ii=e=>{const t=(0,Ci.Zd)(e);return{label:"Balancer",value:(0,ie.jsxs)("div",{className:Ti("balancer"),children:[t,(0,ie.jsx)(Si.b,{text:t,size:"s",className:Ti("clipboard-button")})]})}},Ai=(e,t,n,r)=>{const o={};if(t&&r){const n=r(t,e);n&&(o.links=[{title:"Monitoring",url:n}])}return n&&(o.info=[Ii(n)]),o},Pi=(e=[])=>({getVersionToColorMap:()=>(0,ki.Vm)((0,ki.HD)(e))}),Di=(e,t,n,r,o)=>{const i={prepareTenantBackend:e=>{var t;if(n){if(r)return(0,Ci.PG)(n);if(e)return"string"===typeof e?(0,Oi.De)(e,n):null!==(t=(0,Oi.Vk)(e,n,!0))&&void 0!==t?t:void 0}}};return t&&o&&(i.getMonitoringLink=(n,r)=>n&&r?o({monitoring:t,dbName:n,dbType:r,clusterName:e}):null),i};function Ri({component:e,getMonitoringLink:t,getMonitoringClusterLink:n}){const{monitoring:r,balancer:o,versions:i,cluster:a,useClusterBalancerAsBackend:s,additionalNodesProps:l}=(0,Ni.s)();return(0,ie.jsx)("div",{className:Ti(),children:(0,ie.jsx)(e,{additionalClusterProps:Ai(null===a||void 0===a?void 0:a.Name,r,o,n),additionalVersionsProps:Pi(i),additionalTenantsProps:Di(null===a||void 0===a?void 0:a.Name,r,o,s,t),additionalNodesProps:l})})}function ji({component:e}){const{balancer:t}=(0,Yt.Zd)(),{additionalNodesProps:n}=(0,Ni.B)({balancer:t});return(0,ie.jsx)(e,{additionalNodesProps:n})}function Mi({component:e,getMonitoringLink:t}){const{balancer:n,monitoring:r}=(0,Yt.Zd)(),{additionalNodesProps:o}=(0,Ni.B)({balancer:n}),i={getMonitoringLink:(e,n)=>r&&e&&n&&t?t({monitoring:r,dbName:e,dbType:n}):null};return(0,ie.jsx)(e,{additionalTenantProps:i,additionalNodesProps:o})}function Li({store:e,history:t,getMonitoringLink:n=_i,getMonitoringClusterLink:r=xi,userSettings:o,children:i}){return(0,ie.jsxs)(wi,{store:e,history:t,userSettings:o,children:[(0,ie.jsx)(bn,{children:({component:e})=>(0,ie.jsx)(Ri,{component:e,getMonitoringLink:n,getMonitoringClusterLink:r})}),(0,ie.jsx)(_n,{children:({component:e})=>(0,ie.jsx)(ji,{component:e})}),(0,ie.jsx)(wn,{children:({component:e})=>(0,ie.jsx)(Mi,{component:e,getMonitoringLink:n})}),i]})}var zi=n(58351),Fi=n(37402),Bi=n(88610),Ui=n(59625),qi=n(42566)},42566:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=e=>{e&&e instanceof Function&&n.e(2308).then(n.bind(n,62308)).then((({getCLS:t,getFID:n,getFCP:r,getLCP:o,getTTFB:i})=>{t(e),n(e),r(e),o(e),i(e)}))}},92459:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,Ck:()=>v,DM:()=>_,KY:()=>h,Ow:()=>m,_g:()=>b,a3:()=>g,mA:()=>f,qc:()=>w,yX:()=>y});var r=n(905),o=n.n(r),i=n(95166),a=n(74309),s=n.n(a),l=n(67087),c=n(58351);const u={clusters:"/clusters",cluster:"/cluster/:activeTab?",tenant:"/tenant",node:"/node/:id/:activeTab?",pDisk:"/pDisk",vDisk:"/vDisk",storageGroup:"/storageGroup",tablet:"/tablet/:id",tabletsFilters:"/tabletsFilters",auth:"/auth"},d=u,f=e=>s().parse(e.search,{ignoreQueryPrefix:!0}),p=e=>{let t=e;const n=/:\d{3,5}/g,r=e.match(n);if(r){const o=r[0];t=e.replace(n,":\\"+o.slice(1))}return t};function h(e,t,n={}){let r=n;const a="backend"in n&&Boolean(n.backend);c.Hs&&!a&&c.jC&&(r={...n,backend:c.Hs});const l="clusterName"in n&&Boolean(n.clusterName);c.SL&&!l&&c.jC&&(r={...r,clusterName:c.SL});const u=o()(r)?"":`?${s().stringify(r,{encode:!1,arrayFormat:"repeat"})}`,d=p(e);return`${(0,i.compile)(d)(t)}${u}`}const m=(e={})=>h(window.location.pathname,void 0,e);function g(e){const{pathname:t,search:n,hash:r}=new URL(e,"http://localhost");return{pathname:t,search:n,hash:r}}function v(e,t,n={}){return h(u.pDisk,void 0,{...n,nodeId:t,pDiskId:e})}function y(e,t,n,r={}){return h(u.vDisk,void 0,{...r,nodeId:n,pDiskId:t,vDiskSlotId:e})}function b(e,t={}){return h(u.storageGroup,void 0,{...t,groupId:e})}const w={database:l.StringParam,clusterName:l.StringParam,activeTab:l.StringParam};function _(e,t={}){return h(u.tablet,{id:e},{...t})}},37402:(e,t,n)=>{"use strict";n.d(t,{i:()=>xn,x:()=>En});var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>de,hasStandardBrowserEnv:()=>pe,hasStandardBrowserWebWorkerEnv:()=>he,navigator:()=>fe,origin:()=>me});var o=n(58671),i=n.n(o);function a(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:l}=Object,c=(u=Object.create(null),e=>{const t=s.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,h=f("undefined");const m=d("ArrayBuffer");const g=f("string"),v=f("function"),y=f("number"),b=e=>null!==e&&"object"===typeof e,w=e=>{if("object"!==c(e))return!1;const t=l(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_=d("Date"),x=d("File"),E=d("Blob"),S=d("FileList"),k=d("URLSearchParams"),[C,O,N,T]=["ReadableStream","Request","Response","Headers"].map(d);function I(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,o;if("object"!==typeof e&&(e=[e]),p(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function A(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const P="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,D=e=>!h(e)&&e!==P;const R=(j="undefined"!==typeof Uint8Array&&l(Uint8Array),e=>j&&e instanceof j);var j;const M=d("HTMLFormElement"),L=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),z=d("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",U="0123456789",q={DIGIT:U,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+U};const $=d("AsyncFunction"),H=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],P.addEventListener("message",(({source:e,data:t})=>{e===P&&t===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),P.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,v(P.postMessage)),W="undefined"!==typeof queueMicrotask?queueMicrotask.bind(P):"undefined"!==typeof process&&process.nextTick||H,V={isArray:p,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=c(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer),t},isString:g,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isReadableStream:C,isRequest:O,isResponse:N,isHeaders:T,isUndefined:h,isDate:_,isFile:x,isBlob:E,isRegExp:z,isFunction:v,isStream:e=>b(e)&&v(e.pipe),isURLSearchParams:k,isTypedArray:R,isFileList:S,forEach:I,merge:function e(){const{caseless:t}=D(this)&&this||{},n={},r=(r,o)=>{const i=t&&A(n,o)||o;w(n[i])&&w(r)?n[i]=e(n[i],r):w(r)?n[i]=e({},r):p(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&I(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(I(t,((t,r)=>{n&&v(t)?e[r]=a(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:A,global:P,isContextDefined:D,ALPHABET:q,generateString:(e=16,t=q.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=p(e)?[]:{};return I(e,((e,t)=>{const i=n(e,r+1);!h(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:$,isThenable:e=>e&&(b(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:H,asap:W};function G(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}V.inherits(G,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}});const Z=G.prototype,K={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{K[e]={value:e}})),Object.defineProperties(G,K),Object.defineProperty(Z,"isAxiosError",{value:!0}),G.from=(e,t,n,r,o,i)=>{const a=Object.create(Z);return V.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),G.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Y=G;function Q(e){return V.isPlainObject(e)||V.isArray(e)}function J(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,n){return e?e.concat(t).map((function(e,t){return e=J(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ee=V.toFlatObject(V,{},null,(function(e){return/^is[A-Z]/.test(e)}));const te=function(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!V.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(V.isDate(e))return e.toISOString();if(!s&&V.isBlob(e))throw new Y("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(e)||V.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(V.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&function(e){return V.isArray(e)&&!e.some(Q)}(e)||(V.isFileList(e)||V.endsWith(n,"[]"))&&(s=V.toArray(e)))return n=J(n),s.forEach((function(e,r){!V.isUndefined(e)&&null!==e&&t.append(!0===a?X([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Q(e)||(t.append(X(o,n,i),l(e)),!1)}const u=[],d=Object.assign(ee,{defaultVisitor:c,convertValue:l,isVisitable:Q});if(!V.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!V.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),V.forEach(n,(function(n,i){!0===(!(V.isUndefined(n)||null===n)&&o.call(t,n,V.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const oe=re.prototype;oe.append=function(e,t){this._pairs.push([e,t])},oe.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ie=re;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function se(e,t,n){if(!t)return e;const r=n&&n.encode||ae,o=n&&n.serialize;let i;if(i=o?o(t,n):V.isURLSearchParams(t)?t.toString():new ie(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const le=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){V.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:ie,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},de="undefined"!==typeof window&&"undefined"!==typeof document,fe="object"===typeof navigator&&navigator||void 0,pe=de&&(!fe||["ReactNative","NativeScript","NS"].indexOf(fe.product)<0),he="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,me=de&&window.location.href||"http://localhost",ge={...r,...ue};const ve=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&V.isArray(r)?r.length:i,s)return V.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&V.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&V.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,((e,r)=>{t(function(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const ye={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=V.isObject(e);o&&V.isHTMLForm(e)&&(e=new FormData(e));if(V.isFormData(e))return r?JSON.stringify(ve(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ge.isNode&&V.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=V.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(n){if("SyntaxError"===o.name)throw Y.from(o,Y.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));const be=ye,we=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_e=Symbol("internals");function xe(e){return e&&String(e).trim().toLowerCase()}function Ee(e){return!1===e||null==e?e:V.isArray(e)?e.map(Ee):String(e)}function Se(e,t,n,r,o){return V.isFunction(r)?r.call(this,t,n):(o&&(t=n),V.isString(t)?V.isString(r)?-1!==t.indexOf(r):V.isRegExp(r)?r.test(t):void 0:void 0)}class ke{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=xe(t);if(!o)throw new Error("header name must be a non-empty string");const i=V.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ee(e))}const i=(e,t)=>V.forEach(e,((e,n)=>o(e,n,t)));if(V.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(V.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&we[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(V.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=xe(e)){const n=V.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(V.isFunction(t))return t.call(this,e,n);if(V.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=xe(e)){const n=V.findKey(this,e);return!(!n||void 0===this[n]||t&&!Se(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=xe(e)){const o=V.findKey(n,e);!o||t&&!Se(0,n[o],o,t)||(delete n[o],r=!0)}}return V.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Se(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return V.forEach(this,((r,o)=>{const i=V.findKey(n,o);if(i)return t[i]=Ee(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Ee(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return V.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&V.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[_e]=this[_e]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=xe(e);t[r]||(!function(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return V.isArray(e)?e.forEach(r):r(e),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(ke.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),V.freezeMethods(ke);const Ce=ke;function Oe(e,t){const n=this||be,r=t||n,o=Ce.from(r.headers);let i=r.data;return V.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ne(e){return!(!e||!e.__CANCEL__)}function Te(e,t,n){Y.call(this,null==e?"canceled":e,Y.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(Te,Y,{__CANCEL__:!0});const Ie=Te;function Ae(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Pe=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const De=function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]},Re=(e,t,n=3)=>{let r=0;const o=Pe(50,250);return De((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},je=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Me=e=>(...t)=>V.asap((()=>e(...t))),Le=ge.hasStandardBrowserEnv?function(){const e=ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=V.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},ze=ge.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];V.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),V.isString(r)&&a.push("path="+r),V.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Fe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Be=e=>e instanceof Ce?{...e}:e;function Ue(e,t){t=t||{};const n={};function r(e,t,n){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:n},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function o(e,t,n){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!V.isUndefined(t))return r(void 0,t)}function a(e,t){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Be(e),Be(t),!0)};return V.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);V.isUndefined(a)&&i!==s||(n[r]=a)})),n}const qe=e=>{const t=Ue({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Ce.from(s),t.url=se(Fe(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),V.isFormData(r))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ge.hasStandardBrowserEnv&&(o&&V.isFunction(o)&&(o=o(t)),o||!1!==o&&Le(t.url))){const e=i&&a&&ze.read(a);e&&s.set(i,e)}return t},$e="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=qe(e);let o=r.data;const i=Ce.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Ce.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ae((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Y("Request aborted",Y.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Y("Network Error",Y.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Y(t,o.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&V.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),V.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=Re(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=Re(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ie(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===ge.protocols.indexOf(v)?n(new Y("Unsupported protocol "+v+":",Y.ERR_BAD_REQUEST,e)):m.send(o||null)}))},He=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Y?t:new Ie(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Y(`timeout ${t} of ms exceeded`,Y.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>V.asap(a),s}},We=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ve=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ge=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Ve(e))yield*We(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Ze="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Ke=Ze&&"function"===typeof ReadableStream,Ye=Ze&&("function"===typeof TextEncoder?(Qe=new TextEncoder,e=>Qe.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Qe;const Je=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},Xe=Ke&&Je((()=>{let e=!1;const t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),et=Ke&&Je((()=>V.isReadableStream(new Response("").body))),tt={stream:et&&(e=>e.body)};var nt;Ze&&(nt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!tt[e]&&(tt[e]=V.isFunction(nt[e])?t=>t[e]():(t,n)=>{throw new Y(`Response type '${e}' is not supported`,Y.ERR_NOT_SUPPORT,n)})})));const rt=async(e,t)=>{const n=V.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e)){const t=new Request(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return V.isArrayBufferView(e)||V.isArrayBuffer(e)?e.byteLength:(V.isURLSearchParams(e)&&(e+=""),V.isString(e)?(await Ye(e)).byteLength:void 0)})(t):n},ot=Ze&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=qe(e);c=c?(c+"").toLowerCase():"text";let p,h=He([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Xe&&"get"!==n&&"head"!==n&&0!==(g=await rt(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(V.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=je(g,Re(Me(l)));r=Ge(n.body,65536,e,t)}}V.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(p);const a=et&&("stream"===c||"response"===c);if(et&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=V.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&je(t,Re(Me(s),!0))||[];i=new Response(Ge(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await tt[V.findKey(tt,c)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{Ae(t,n,{data:v,headers:Ce.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new Y("Network Error",Y.ERR_NETWORK,e,p),{cause:v.cause||v});throw Y.from(v,v&&v.code,e,p)}}),it={http:null,xhr:$e,fetch:ot};V.forEach(it,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const at=e=>`- ${e}`,st=e=>V.isFunction(e)||null===e||!1===e,lt=e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!st(n)&&(r=it[(t=String(n)).toLowerCase()],void 0===r))throw new Y(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(at).join("\n"):" "+at(e[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function ct(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ie(null,e)}function ut(e){ct(e),e.headers=Ce.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return lt(e.adapter||be.adapter)(e).then((function(t){return ct(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=Ce.from(t.headers),t}),(function(t){return Ne(t)||(ct(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=Ce.from(t.response.headers))),Promise.reject(t)}))}const dt="1.7.7",ft={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ft[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const pt={};ft.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Y(r(o," has been removed"+(t?" in "+t:"")),Y.ERR_DEPRECATED);return t&&!pt[o]&&(pt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const ht={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Y("option "+i+" must be "+n,Y.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Y("Unknown option "+i,Y.ERR_BAD_OPTION)}},validators:ft},mt=ht.validators;class gt{constructor(e){this.defaults=e,this.interceptors={request:new le,response:new le}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Ue(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ht.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),null!=r&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:ht.assertOptions(r,{encode:mt.function,serialize:mt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&V.merge(o.common,o[t.method]);o&&V.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Ce.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[ut.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=ut.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return se(Fe((e=Ue(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}V.forEach(["delete","get","head","options"],(function(e){gt.prototype[e]=function(t,n){return this.request(Ue(n||{},{method:e,url:t,data:(n||{}).data}))}})),V.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ue(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}gt.prototype[e]=t(),gt.prototype[e+"Form"]=t(!0)}));const vt=gt;class yt{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ie(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new yt((function(t){e=t})),cancel:e}}}const bt=yt;const wt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wt).forEach((([e,t])=>{wt[t]=e}));const _t=wt;const xt=function e(t){const n=new vt(t),r=a(vt.prototype.request,n);return V.extend(r,vt.prototype,n,{allOwnKeys:!0}),V.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ue(t,n))},r}(be);xt.Axios=vt,xt.CanceledError=Ie,xt.CancelToken=bt,xt.isCancel=Ne,xt.VERSION=dt,xt.toFormData=te,xt.AxiosError=Y,xt.Cancel=xt.CanceledError,xt.all=function(e){return Promise.all(e)},xt.spread=function(e){return function(t){return e.apply(null,t)}},xt.isAxiosError=function(e){return V.isObject(e)&&!0===e.isAxiosError},xt.mergeConfig=Ue,xt.AxiosHeaders=Ce,xt.formToJSON=e=>ve(V.isHTMLForm(e)?new FormData(e):e),xt.getAdapter=lt,xt.HttpStatusCode=_t,xt.default=xt;const Et=xt,{Axios:St,AxiosError:kt,CanceledError:Ct,isCancel:Ot,CancelToken:Nt,VERSION:Tt,all:It,Cancel:At,isAxiosError:Pt,spread:Dt,toFormData:Rt,AxiosHeaders:jt,HttpStatusCode:Mt,formToJSON:Lt,getAdapter:zt,mergeConfig:Ft}=Et;class Bt{constructor(e={}){this.setApiEndpoint=(e="")=>{let t=e;"undefined"!==typeof location&&(t=t.replace("%CURRENT_HOST%",location.host)),this.apiEndpoint=t},this.setCSRFToken=e=>{this._axios.defaults.headers.post["X-CSRF-Token"]=e,this._axios.defaults.headers.put["X-CSRF-Token"]=e,this._axios.defaults.headers.delete["X-CSRF-Token"]=e},this.setDefaultHeader=({name:e,value:t,methods:n})=>{const r=this._axios.defaults.headers;Array.isArray(n)?n.forEach((n=>{const o=r[n];o&&o instanceof jt&&(o[e]=t)})):r.common[e]=t},this.apiPath=e=>`${this.apiEndpoint}${e}`;const{config:t={},apiEndpoint:n="/api",collector:r={}}=e,o=Object.assign({xsrfCookieName:"",timeout:Bt.DEFAULT_TIMEOUT,withCredentials:!0},t);this._axios=Et.create(o),this._axios.defaults.headers=i()(this._axios.defaults.headers),this.requestTokens={},this.setApiEndpoint(n),this.collectorSettings=r,this.collector={errors:[],requests:[]}}collectRequest({method:e,url:t,data:n,requestStart:r,response:o,responseError:i,error:a=!1,cancelled:s=!1}){const{collectErrors:l,collectRequests:c}=this.collectorSettings;if(!l&&!c)return;const{responseText:u="",responseURL:d=t}=o&&o.request||{},f=a&&i instanceof Error?i.message:"",p={method:e,url:d,time:{start:r,end:Number(new Date)},status:o&&o.status,size:u.length,requestData:n&&JSON.stringify(n,null,2)||"",responseData:o&&o.data&&JSON.stringify(o.data,null,2)||f,isError:a,isCancelled:s};l&&a&&(this.collector.errors=[...this.collector.errors,p].slice(-l)),c&&(this.collector.requests=[...this.collector.requests,p].slice(-c))}getCollectedRequests(){return{errors:[...this.collector.errors],requests:[...this.collector.requests]}}async request(e){const{method:t,url:n,data:r=null,params:o,options:i={},retries:a=0}=e,s=i.requestConfig||{},{concurrentId:l,collectRequest:c=!0,timeout:u,headers:d,onDownloadProgress:f}=i;l&&(this.cancelRequest(l),s.cancelToken=this.createRequestToken(l)),d&&(s.headers=d),"undefined"!==typeof u&&(s.timeout=u);const p=Number(new Date),h={method:t,url:n,data:r,params:o,onDownloadProgress:f};try{const e=await this._axios.request(Object.assign(Object.assign({},s),h));return this.clearRequestToken(l),c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:e})),e.data}catch(m){if(Et.isCancel(m))throw{isCancelled:!0,error:m};let t;return this.clearRequestToken(l),t=m.response?m.response:"function"===typeof m.toJSON?m.toJSON():m,c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:t,error:!0,cancelled:Et.isCancel(m),responseError:m})),this.handleRequestError(t,(()=>this.request(Object.assign(Object.assign({},e),{retries:a+1}))),a,new Error(m instanceof Error?m.message:"Unknown error"))}}cancelRequest(e){e&&this.requestTokens[e]&&this.requestTokens[e].cancel("Concurrent request")}get(e,t,n={}){return this.request({method:"GET",url:e,params:t,options:n})}post(e,t,n,r={}){return this.request({method:"POST",url:e,data:t,params:n,options:r})}put(e,t,n,r={}){return this.request({method:"PUT",url:e,data:t,params:n,options:r})}patch(e,t,n,r={}){return this.request({method:"PATCH",url:e,data:t,params:n,options:r})}delete(e,t,n,r={}){return this.request({method:"DELETE",url:e,data:t,params:n,options:r})}head(e,t,n={}){return this.request({method:"HEAD",url:e,params:t,options:n})}handleRequestError(e){throw e}createRequestToken(e){if(e){const t=Et.CancelToken.source();return this.requestTokens[e]=t,t.token}}clearRequestToken(e){e&&this.requestTokens[e]&&delete this.requestTokens[e]}}Bt.DEFAULT_TIMEOUT=6e4;var Ut=n(70911);const qt="axios-retry";function $t(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&Ut(e)))}const Ht=["get","head","options"],Wt=Ht.concat(["put","delete"]);function Vt(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function Gt(e){return!!e.config?.method&&(Vt(e)&&-1!==Wt.indexOf(e.config.method))}function Zt(e){return $t(e)||Gt(e)}function Kt(e=void 0){const t=e?.response?.headers["retry-after"];if(!t)return 0;let n=1e3*(Number(t)||0);return 0===n&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}const Yt={retries:3,retryCondition:Zt,retryDelay:function(e=0,t=void 0){return Math.max(0,Kt(t))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Qt(e,t,n=!1){const r=function(e,t){return{...Yt,...t,...e[qt]}}(e,t||{});return r.retryCount=r.retryCount||0,r.lastRequestTime&&!n||(r.lastRequestTime=Date.now()),e[qt]=r,r}const Jt=(e,t)=>{const n=e.interceptors.request.use((e=>(Qt(e,t,!0),e[qt]?.validateResponse&&(e.validateStatus=()=>!1),e))),r=e.interceptors.response.use(null,(async n=>{const{config:r}=n;if(!r)return Promise.reject(n);const o=Qt(r,t);return n.response&&o.validateResponse?.(n.response)?n.response:await async function(e,t){const{retries:n,retryCondition:r}=e,o=(e.retryCount||0)<n&&r(t);if("object"===typeof o)try{return!1!==await o}catch(i){return!1}return o}(o,n)?async function(e,t,n,r){t.retryCount+=1;const{retryDelay:o,shouldResetTimeout:i,onRetry:a}=t,s=o(t.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,r),!i&&r.timeout&&t.lastRequestTime){const e=Date.now()-t.lastRequestTime,o=r.timeout-e-s;if(o<=0)return Promise.reject(n);r.timeout=o}return r.transformRequest=[e=>e],await a(t.retryCount,n,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise((t=>{const n=()=>{clearTimeout(o),t(e(r))},o=setTimeout((()=>{t(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",n)}),s);r.signal?.addEventListener&&r.signal.addEventListener("abort",n,{once:!0})}))}(e,o,n,r):(await async function(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}(o,n),Promise.reject(n))}));return{requestInterceptorId:n,responseInterceptorId:r}};Jt.isNetworkError=$t,Jt.isSafeRequestError=function(e){return!!e.config?.method&&(Vt(e)&&-1!==Ht.indexOf(e.config.method))},Jt.isIdempotentRequestError=Gt,Jt.isNetworkOrIdempotentRequestError=Zt,Jt.exponentialDelay=function(e=0,t=void 0,n=100){const r=2**e*n,o=Math.max(r,Kt(t));return o+.2*o*Math.random()},Jt.isRetryableError=Vt;const Xt=Jt;var en=n(58351),tn=n(76086),nn=n(59001);class rn extends Bt{constructor(e){super(e),this.DEFAULT_RETRIES_COUNT=3,Xt(this._axios,{retries:this.DEFAULT_RETRIES_COUNT,retryDelay:Xt.exponentialDelay}),this._axios.interceptors.request.use((function(e){return nn.f.readUserSettingsValue(tn.U0)&&(e.headers["X-Want-Trace"]=1),e})),this._axios.interceptors.response.use((function(e){if(e.data&&e.data instanceof Object&&!Array.isArray(e.data)&&e.headers.traceresponse){const t=e.headers.traceresponse.split("-")[1];e.data={...e.data,_meta:{...e.data._meta,traceId:t}}}return e})),this._axios.interceptors.response.use(null,(function(e){var t;const n=e.response;return n&&401===n.status&&null!==(t=n.data)&&void 0!==t&&t.authUrl&&window.location.assign(n.data.authUrl),Promise.reject(e)}))}getPath(e){return`${null!==en.Hs&&void 0!==en.Hs?en.Hs:""}${e}`}prepareArrayRequestParam(e){return e.join(",")}}class on extends rn{authenticate(e){return this.post(this.getPath("/login"),e,{})}logout(){return this.post(this.getPath("/logout"),{},{})}}var an=n(90638);const sn=e=>({TenantInfo:null===e||void 0===e?void 0:e.databases});class ln extends rn{getPath(e){return`${null!==en.In&&void 0!==en.In?en.In:""}${e}`}getClustersList(e,{signal:t}={}){return this.get(this.getPath("/meta/clusters"),null,{requestConfig:{signal:t}})}getClusterInfo(e,{signal:t}={}){return this.get(this.getPath("/meta/cluster"),{name:e},{concurrentId:`getCluster${e}`,requestConfig:{signal:t}}).then(an.z)}getTenants(e,{signal:t}={}){return this.get(this.getPath("/meta/cp_databases"),{cluster_name:e},{requestConfig:{signal:t}}).then(sn)}getClusterBaseInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/meta/db_clusters"),{name:e},{concurrentId:t,requestConfig:{signal:n}}).then((e=>e.clusters[0]))}}class cn extends rn{getOperationList(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/operation/list"),{...e},{concurrentId:t,requestConfig:{signal:n}})}cancelOperation(e,{concurrentId:t,signal:n}={}){return this.post(this.getPath("/operation/cancel"),{},{...e},{concurrentId:t,requestConfig:{signal:n}})}forgetOperation(e,{concurrentId:t,signal:n}={}){return this.post(this.getPath("/operation/forget"),{},{...e},{concurrentId:t,requestConfig:{signal:n}})}}var un=n(31684);class dn extends rn{restartPDisk({nodeId:e,pDiskId:t,force:n}){return this.post(this.getPath("/pdisk/restart"),{},{node_id:e,pdisk_id:t,force:n},{requestConfig:{"axios-retry":{retries:0}}})}changePDiskStatus({nodeId:e,pDiskId:t,force:n,decommissionStatus:r}){return this.post(this.getPath("/pdisk/status"),{decommit_status:r},{node_id:e,pdisk_id:t,force:n},{requestConfig:{"axios-retry":{retries:0}}})}getPDiskInfo({nodeId:e,pDiskId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/pdisk/info"),{node_id:e,pdisk_id:t},{concurrentId:n,requestConfig:{signal:r}})}restartPDiskOld({nodeId:e,pDiskId:t}){const n=(0,un.ar)({nodeId:e,pDiskId:t,host:this.getPath("")});return this.post(n,"restartPDisk=",{},{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}}class fn extends rn{createSchemaDirectory({database:e,path:t},{signal:n}={}){return this.post(this.getPath("/scheme/directory"),{},{database:e,path:t},{requestConfig:{signal:n}})}}class pn extends rn{getStorageGroups({nodeId:e,pDiskId:t,groupId:n,fieldsRequired:r,filter:o,...i},{concurrentId:a,signal:s}={}){const l=Array.isArray(e)?this.prepareArrayRequestParam(e):e,c=Array.isArray(t)?this.prepareArrayRequestParam(t):t,u=Array.isArray(n)?this.prepareArrayRequestParam(n):n,d=Array.isArray(r)?this.prepareArrayRequestParam(r):r;return this.get(this.getPath("/storage/groups"),{node_id:l,pdisk_id:c,group_id:u,fields_required:d,filter:o||void 0,timeout:2e4,...i},{concurrentId:a,requestConfig:{signal:s}})}}class hn extends rn{evictVDiskOld({groupId:e,groupGeneration:t,failRealmIdx:n,failDomainIdx:r,vDiskIdx:o}){return this.post(this.getPath("/tablets/app?TabletID=72057594037932033&exec=1"),{Command:{ReassignGroupDisk:{GroupId:e,GroupGeneration:t,FailRealmIdx:n,FailDomainIdx:r,VDiskIdx:o}}},{},{headers:{Accept:"application/json"}})}killTablet(e){return this.get(this.getPath(`/tablets?KillTabletID=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}stopTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=StopTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}resumeTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=ResumeTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}getTabletFromHive({id:e,hiveId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/tablets/app"),{TabletID:t,page:"TabletInfo",tablet:e},{concurrentId:n,requestConfig:{signal:r}})}}var mn=n(81288);const gn=4*tn.KF,vn=10*tn.KF,yn=10*tn.KF;class bn extends rn{checkTrace({url:e},{concurrentId:t,signal:n}={}){return this.get(e,{},{concurrentId:t||"checkTrace",requestConfig:{signal:n,timeout:vn,"axios-retry":{retries:30,retryDelay:(e,t)=>{var n;return(0,mn.F0)(t)&&(404===(null===t||void 0===t||null===(n=t.response)||void 0===n?void 0:n.status)||"ERR_NETWORK"===t.code)?gn:yn},shouldResetTimeout:!0,retryCondition:()=>!0}}})}}class wn extends rn{evictVDisk({groupId:e,groupGeneration:t,failRealmIdx:n,failDomainIdx:r,vDiskIdx:o,force:i}){return this.post(this.getPath("/vdisk/evict"),{},{group_id:e,group_generation_id:t,fail_realm_idx:n,fail_domain_idx:r,vdisk_idx:o,force:i},{requestConfig:{"axios-retry":{retries:0}}})}}class _n extends rn{getClusterCapabilities({database:e}){return this.get(this.getPath("/viewer/capabilities"),{database:e},{})}getClusterInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/cluster"),{name:e,tablets:!0},{concurrentId:t||"getClusterInfo",requestConfig:{signal:n}})}getNodeInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/sysinfo?enums=true"),{node_id:e},{concurrentId:t,requestConfig:{signal:n}})}getTenants(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/tenantinfo"),{tablets:!1,storage:!0,cluster_name:e},{concurrentId:t,requestConfig:{signal:n}})}getTenantInfo({path:e,database:t=e},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tenantinfo"),{database:t,path:e,tablets:!1,storage:!0,memory:!0},{concurrentId:n,requestConfig:{signal:r}})}getNodes({type:e="any",tablets:t=!1,database:n,tenant:r,fieldsRequired:o,filter:i,...a},{concurrentId:s,signal:l}={}){const c=Array.isArray(o)?this.prepareArrayRequestParam(o):o;return this.get(this.getPath("/viewer/json/nodes?enums=true"),{type:e,tablets:t,filter:i||void 0,database:n||r,tenant:r||n,fields_required:c,...a},{concurrentId:s,requestConfig:{signal:l}})}getTabletsInfo({nodeId:e,path:t,database:n},{concurrentId:r,signal:o}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{database:n,node_id:e,path:t,enums:!0},{concurrentId:r,requestConfig:{signal:o}})}getSchema({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,backup:!1,private:!0,partition_config:!1,partition_stats:!1,partitioning_info:!1,subs:1},{concurrentId:n,requestConfig:{signal:r}})}getDescribe({path:e,database:t,timeout:n},{concurrentId:r,signal:o}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,partition_stats:!0,subs:0},{concurrentId:r||`getDescribe|${e}`,requestConfig:{signal:o},timeout:n})}getSchemaAcl({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/acl"),{database:t,path:e,merge_rules:!0},{concurrentId:n,requestConfig:{signal:r}})}getHeatmapData({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,backup:!1,children:!1,partition_config:!1,partition_stats:!0},{concurrentId:n,requestConfig:{signal:r}})}getNetwork({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/netinfo"),{enums:!0,database:t,path:e},{concurrentId:n,requestConfig:{signal:r}})}getTopic({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe_topic"),{enums:!0,include_stats:!0,database:t,path:e},{concurrentId:n,requestConfig:{signal:r}})}getConsumer({path:e,consumer:t,database:n},{concurrentId:r,signal:o}={}){return this.get(this.getPath("/viewer/json/describe_consumer"),{enums:!0,include_stats:!0,database:n,path:e,consumer:t},{concurrentId:r||"getConsumer",requestConfig:{signal:o}})}getTablet({id:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,database:t,filter:`(TabletId=${e})`},{concurrentId:n,requestConfig:{signal:r}})}getTabletHistory({id:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,merge:!1,database:t,filter:`(TabletId=${e})`},{concurrentId:n,requestConfig:{signal:r}})}getNodesList({concurrentId:e,signal:t}={}){return this.get(this.getPath("/viewer/json/nodelist"),{enums:!0},{concurrentId:e,requestConfig:{signal:t}})}getTenantsList({concurrentId:e,signal:t}={}){return this.get(this.getPath("/viewer/json/tenants"),{enums:!0,state:0},{concurrentId:e,requestConfig:{signal:t}})}sendQuery(e,{concurrentId:t,signal:n,withRetries:r}={}){const o=!nn.f.readUserSettingsValue(tn.RY,!0);return this.post(this.getPath("/viewer/json/query"),{...e,base64:o},{schema:"multi",base64:o,timeout:e.timeout},{concurrentId:t,timeout:e.timeout,requestConfig:{signal:n,"axios-retry":{retries:r?this.DEFAULT_RETRIES_COUNT:0}},headers:e.tracingLevel?{"X-Trace-Verbosity":e.tracingLevel}:void 0})}getHotKeys({path:e,database:t,enableSampling:n},{concurrentId:r,signal:o}={}){return this.get(this.getPath("/viewer/json/hotkeys"),{database:t,path:e,enable_sampling:n},{concurrentId:r||"getHotKeys",requestConfig:{signal:o}})}getTabletDescribe(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/describe"),{schemeshard_id:null===e||void 0===e?void 0:e.SchemeShard,path_id:null===e||void 0===e?void 0:e.PathId},{concurrentId:t,requestConfig:{signal:n}})}getStorageInfo({tenant:e,database:t,nodeId:n,groupId:r,pDiskId:o,filter:i,...a},{concurrentId:s,signal:l}={}){return this.get(this.getPath("/viewer/json/storage?enums=true"),{database:t||e,tenant:e||t,node_id:n,group_id:r,pdisk_id:o,filter:i||void 0,...a},{concurrentId:s,requestConfig:{signal:l}})}getChartData({target:e,from:t,until:n,maxDataPoints:r,database:o},{concurrentId:i,signal:a}={}){const s=`${e}&from=${t}&until=${n}&maxDataPoints=${r}&format=json`;return this.post(this.getPath(`/viewer/json/render?database=${o}`),s,{},{concurrentId:i,headers:{"Content-Type":"application/x-www-form-urlencoded"},requestConfig:{signal:a}})}whoami(){return this.get(this.getPath("/viewer/json/whoami"),{})}autocomplete(e){const{table:t,...n}=e,r=null===t||void 0===t?void 0:t.join(",");return this.get(this.getPath("/viewer/json/autocomplete"),{...n,table:r},{concurrentId:"sql-autocomplete"})}getClusterConfig(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/feature_flags"),{database:e},{concurrentId:t,requestConfig:{signal:n}})}getVDiskInfo({vDiskSlotId:e,pDiskId:t,nodeId:n},{concurrentId:r,signal:o}={}){return this.get(this.getPath("/viewer/json/vdiskinfo?enums=true"),{node_id:n,filter:`(PDiskId=${t};VDiskSlotId=${e})`},{concurrentId:r,requestConfig:{signal:o}})}getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/pdiskinfo?enums=true"),{filter:`(NodeId=${e}${t?`;PDiskId=${t}`:""})`},{concurrentId:n,requestConfig:{signal:r}})}planToSvg({database:e,plan:t},{signal:n}={}){return this.post(this.getPath("/viewer/plan2svg"),t,{database:e},{requestConfig:{signal:n,responseType:"text",headers:{Accept:"image/svg+xml"}}})}getHealthcheckInfo({database:e,maxLevel:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/healthcheck?merge_records=true"),{database:e,tenant:e,max_level:t},{concurrentId:n,requestConfig:{signal:r}})}}class xn{constructor({config:e,webVersion:t}){this.auth=void 0,this.operation=void 0,this.pdisk=void 0,this.scheme=void 0,this.storage=void 0,this.tablets=void 0,this.trace=void 0,this.vdisk=void 0,this.viewer=void 0,this.meta=void 0,this.auth=new on({config:e}),t&&(this.meta=new ln({config:e})),this.operation=new cn({config:e}),this.pdisk=new dn({config:e}),this.scheme=new fn({config:e}),this.storage=new pn({config:e}),this.tablets=new hn({config:e}),this.trace=new bn({config:e}),this.vdisk=new wn({config:e}),this.viewer=new _n({config:e})}}function En({webVersion:e=!1,withCredentials:t=!1}={}){return new xn({config:{withCredentials:t},webVersion:e})}},90638:(e,t,n)=>{"use strict";n.d(t,{z:()=>a,K:()=>s});var r=n(370);const o=r.z.object({url:r.z.string().url()}),i=r.z.object({url:r.z.string().url()}),a=e=>{const{cluster:t={}}=e,{cluster:n,balancer:r,solomon:o,trace_check:i,trace_view:a}=t,{traceCheck:l,traceView:c}=s({traceCheck:i,traceView:a});return{...n,Name:t.title||(null===n||void 0===n?void 0:n.Name),Balancer:r,Solomon:o,TraceCheck:l,TraceView:c}};function s({traceCheck:e,traceView:t}){try{return{traceCheck:e?o.parse(JSON.parse(e)):void 0,traceView:t?i.parse(JSON.parse(t)):void 0}}catch(n){console.error("Error parsing trace fields:",n)}return{}}},59001:(e,t,n)=>{"use strict";n.d(t,{c:()=>s,f:()=>l});var r=n(52531),o=n(76086),i=n(11822),a=n(41650);const s={[o.k4]:"system",[o.jS]:void 0,[o.TJ]:!1,[o.RY]:!0,[o.ld]:[],[o.Mt]:r.Dg.query,[o.zk]:i.x5.execute,[o.LQ]:!0,[o.bs]:[],[o.Ku]:!0,[o.g5]:!1,[o.lr]:!1,[o.s2]:!0,[o.LK]:!0,[o.IO]:!0,[o.Gj]:!1,[o.av]:0,[o.iD]:!1,[o.Xm]:!1,[o.fr]:void 0,[o.YQ]:void 0,[o.c4]:i.jU};const l=new class{constructor(){this.extractSettingsFromLS=e=>Object.entries(e).reduce(((e,[t,n])=>(e[t]=this.readUserSettingsValue(t,n),e)),{}),this.readValueFromLS=e=>{try{const t=localStorage.getItem(e);return(0,a.qF)(t)}catch{return}},this.setValueToLS=(e,t)=>{try{"string"===typeof t?localStorage.setItem(e,t):localStorage.setItem(e,JSON.stringify(t))}catch{}}}readUserSettingsValue(e,t){var n;return null!==(n=this.readValueFromLS(e))&&void 0!==n?n:t}setUserSettingsValue(e,t){return this.setValueToLS(e,t)}}},54878:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>O,P8:()=>N,SL:()=>T,U1:()=>z,In:()=>M,jC:()=>R});var r=n(97091),o=n(45264),i=n(19859),a=n(37402);const s=({href:e,singleClusterMode:t,customBackend:n})=>{if(t){if(n){var r;const t=null!==(r=new URL(e).searchParams.get("backend"))&&void 0!==r?r:void 0;return{basename:"/",backend:t||n}}{const e=window.location.pathname.match(/.*(?=\/monitoring)/)||[],t=e.length>0?e[0]:"";return{basename:[t,"monitoring"].filter(Boolean).join("/"),backend:t||""}}}{var o,i;const t=new URL(e).searchParams;return{basename:"/",backend:null!==(o=t.get("backend"))&&void 0!==o?o:void 0,clusterName:null!==(i=t.get("clusterName"))&&void 0!==i?i:void 0}}};var l=n(81463),c=n(21334),u=n(88610),d=n(49818),f=n(22735),p=n.n(f),h=n(96294),m=n.n(h),g=n(17148),v=n.n(g),y=n(74309),b=n.n(y),w=n(49526),_=n(93650),x=n(93694),E=n(92189),S=n(90565);const k={global:{problemFilter:{stateKey:"settings.problemFilter",initialState:u.ue.problemFilter}},"/tenant":{sort:{stateKey:"heatmap.sort",initialState:S.ue.sort,type:"bool"},heatmap:{stateKey:"heatmap.heatmap",initialState:S.ue.heatmap,type:"bool"},currentMetric:{stateKey:"heatmap.currentMetric",initialState:S.ue.currentMetric},tenantPage:{stateKey:"tenant.tenantPage"},queryTab:{stateKey:"tenant.queryTab"},diagnosticsTab:{stateKey:"tenant.diagnosticsTab"},summaryTab:{stateKey:"tenant.summaryTab"},metricsTab:{stateKey:"tenant.metricsTab"},shardsMode:{stateKey:"shardsWorkload.mode"},shardsDateFrom:{stateKey:"shardsWorkload.from"},shardsDateTo:{stateKey:"shardsWorkload.to"},topQueriesDateFrom:{stateKey:"executeTopQueries.from"},topQueriesDateTo:{stateKey:"executeTopQueries.to"},selectedConsumer:{stateKey:"partitions.selectedConsumer"}},"/cluster/tenants":{search:{stateKey:"tenants.searchValue"}}};function C(e,t){return v()({},e,t.query)}let O,N,T,I="";function A(e,t,n){const r=(0,E.stateToParams)(e,t,n);let{location:o}=r;if(o.search===I)return{location:n,shouldPush:!1};{const e=/\?\w+/;return I=o.search,e.test(n.search)&&(o=function(e,t){const{search:n,...r}=e,o=b().parse(t.search.slice(1)),i=(0,_.getMatchingDeclaredPath)(k,e),a=i&&k[i];p()(m()(a),(e=>{delete o[e]})),p()(m()(k.global||{}),(e=>{delete o[e]}));const s=b().stringify(o,{encoder:encodeURIComponent}),l=n.startsWith("?")?"&":"?";return{search:`${n}${l}${s}`,...r}}(o,n)),{...r,location:o}}}function P(e,t,n){return(r,o)=>{const i=((n,r)=>{const{type:o,payload:i}=r;if(!i)return n;if(w.LOCATION_POP===o||w.LOCATION_PUSH===o){const r=i;return r.query=(0,x.parseQuery)(e,i),t(n,r)}return n})(n(r,o),o);return i!==r?i:r}}function D(e,t,n,o){const{locationMiddleware:a,reducersWithLocation:s}=function(e,t){const{locationMiddleware:n}=(0,i.zx)(k,C,e,t,A);return{locationMiddleware:n,reducersWithLocation:P(k,C,t)}}(t,e),l=(0,r.U1)({reducer:s,preloadedState:n,middleware:e=>e({immutableCheck:{ignoredPaths:["tooltip.currentHoveredRef"]},serializableCheck:{ignoredPaths:["tooltip.currentHoveredRef","api"],ignoredActions:[d.oM,"api/sendQuery/rejected"]}}).concat(a,...o)});return(0,u.N8)(l),l}const R=window.web_version,j=window.custom_backend,M=window.meta_backend,L="undefined"===`${M}`;function z({aRootReducer:e=l.A,singleClusterMode:t=L,api:n=(0,a.x)({webVersion:R,withCredentials:!j})}={}){({backend:O,basename:N,clusterName:T}=s({href:window.location.href,singleClusterMode:t,customBackend:j}));const r=(0,o.zR)({basename:N}),u=D(e,r,{singleClusterMode:t},[c.F.middleware]);return(0,i.BL)(u,r),window.api=n,{history:r,store:u}}},58351:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>r.Hs,In:()=>r.In,P8:()=>r.P8,SL:()=>r.SL,U1:()=>r.U1,d$:()=>o.d,jC:()=>r.jC});var r=n(54878),o=n(81463)},21334:(e,t,n)=>{"use strict";n.d(t,{F:()=>w});var r=n(44992),o=n(96906),i=n(97091),a=n(59284),s=n(97434),l=n(53850);function c(e,...t){return Object.assign(e,...t)}function u(e){return e.replace(e[0],e[0].toUpperCase())}var d=WeakMap?new WeakMap:void 0,f=({endpointName:e,queryArgs:t})=>{let n="";const r=d?.get(t);if("string"===typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>(0,o.Qd)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));(0,o.Qd)(t)&&d?.set(t,e),n=e}return`${e}(${n})`},p=Symbol();function h(e,t,n,r){const o=(0,a.useMemo)((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),i=(0,a.useRef)(o);return(0,a.useEffect)((()=>{i.current.serialized!==o.serialized&&(i.current=o)}),[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function m(e){const t=(0,a.useRef)(e);return(0,a.useEffect)((()=>{(0,s.bN)(t.current,e)||(t.current=e)}),[e]),(0,s.bN)(t.current,e)?t.current:e}var g="undefined"!==typeof window&&window.document&&window.document.createElement?a.useLayoutEffect:a.useEffect,v=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:r.RE.pending}:e;var y=Symbol();var b=(0,r.l0)((0,r.m7)(),(({batch:e=s.vA,hooks:t={useDispatch:s.wA,useSelector:s.d4,useStore:s.Pj},createSelector:n=l.Mz,unstable__sideEffectsInRender:o=!1,...d}={})=>({name:y,init(l,{serializeQueryArgs:d},y){const b=l,{buildQueryHooks:w,buildMutationHook:_,usePrefetch:x}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:o,useStore:l},unstable__sideEffectsInRender:c,createSelector:u},serializeQueryArgs:d,context:y}){const b=c?e=>e():a.useEffect;return{buildQueryHooks:function(c){const _=(t,{refetchOnReconnect:o,refetchOnFocus:s,refetchOnMountOrArgChange:l,skip:u=!1,pollingInterval:d=0,skipPollingIfUnfocused:p=!1}={})=>{const{initiate:g}=e.endpoints[c],v=n(),w=(0,a.useRef)();if(!w.current){const t=v(e.internalActions.internal_getRTKQSubscriptions());w.current=t}const _=h(u?r.hT:t,f,y.endpointDefinitions[c],c),x=m({refetchOnReconnect:o,refetchOnFocus:s,pollingInterval:d,skipPollingIfUnfocused:p}),E=(0,a.useRef)(!1),S=(0,a.useRef)();let{queryCacheKey:k,requestId:C}=S.current||{},O=!1;k&&C&&(O=w.current.isRequestSubscribed(k,C));const N=!O&&E.current;return b((()=>{E.current=O})),b((()=>{N&&(S.current=void 0)}),[N]),b((()=>{const e=S.current;if(_===r.hT)return e?.unsubscribe(),void(S.current=void 0);const t=S.current?.subscriptionOptions;if(e&&e.arg===_)x!==t&&e.updateSubscriptionOptions(x);else{e?.unsubscribe();const t=v(g(_,{subscriptionOptions:x,forceRefetch:l}));S.current=t}}),[v,g,l,_,x,N]),(0,a.useEffect)((()=>()=>{S.current?.unsubscribe(),S.current=void 0}),[]),(0,a.useMemo)((()=>({refetch:()=>{if(!S.current)throw new Error((0,i.gk)(38));return S.current?.refetch()}})),[])},x=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:i=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:l}=e.endpoints[c],u=n(),[d,f]=(0,a.useState)(p),h=(0,a.useRef)(),g=m({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:i,skipPollingIfUnfocused:s});b((()=>{const e=h.current?.subscriptionOptions;g!==e&&h.current?.updateSubscriptionOptions(g)}),[g]);const v=(0,a.useRef)(g);b((()=>{v.current=g}),[g]);const y=(0,a.useCallback)((function(e,n=!1){let r;return t((()=>{h.current?.unsubscribe(),h.current=r=u(l(e,{subscriptionOptions:v.current,forceRefetch:!n})),f(e)})),r}),[u,l]);return(0,a.useEffect)((()=>()=>{h?.current?.unsubscribe()}),[]),(0,a.useEffect)((()=>{d===p||h.current||y(d,!0)}),[d,y]),(0,a.useMemo)((()=>[y,d]),[y,d])},E=(t,{skip:n=!1,selectFromResult:i}={})=>{const{select:f}=e.endpoints[c],p=h(n?r.hT:t,d,y.endpointDefinitions[c],c),m=(0,a.useRef)(),v=(0,a.useMemo)((()=>u([f(p),(e,t)=>t,e=>p],w,{memoizeOptions:{resultEqualityCheck:s.bN}})),[f,p]),b=(0,a.useMemo)((()=>i?u([v],i,{devModeChecks:{identityFunctionCheck:"never"}}):v),[v,i]),_=o((e=>b(e,m.current)),s.bN),x=l(),E=v(x.getState(),m.current);return g((()=>{m.current=E}),[E]),_};return{useQueryState:E,useQuerySubscription:_,useLazyQuerySubscription:x,useLazyQuery(e){const[t,n]=x(e),r=E(n,{...e,skip:n===p}),o=(0,a.useMemo)((()=>({lastArg:n})),[n]);return(0,a.useMemo)((()=>[t,r,o]),[t,r,o])},useQuery(e,t){const n=_(e,t),o=E(e,{selectFromResult:e===r.hT||t?.skip?void 0:v,...t}),{data:i,status:s,isLoading:l,isSuccess:c,isError:u,error:d}=o;return(0,a.useDebugValue)({data:i,status:s,isLoading:l,isSuccess:c,isError:u,error:d}),(0,a.useMemo)((()=>({...o,...n})),[o,n])}}},buildMutationHook:function(r){return({selectFromResult:i,fixedCacheKey:l}={})=>{const{select:c,initiate:d}=e.endpoints[r],f=n(),[p,h]=(0,a.useState)();(0,a.useEffect)((()=>()=>{p?.arg.fixedCacheKey||p?.reset()}),[p]);const m=(0,a.useCallback)((function(e){const t=f(d(e,{fixedCacheKey:l}));return h(t),t}),[f,d,l]),{requestId:g}=p||{},v=(0,a.useMemo)((()=>c({fixedCacheKey:l,requestId:p?.requestId})),[l,p,c]),y=(0,a.useMemo)((()=>i?u([v],i):v),[i,v]),b=o(y,s.bN),w=null==l?p?.arg.originalArgs:void 0,_=(0,a.useCallback)((()=>{t((()=>{p&&h(void 0),l&&f(e.internalActions.removeMutationResult({requestId:g,fixedCacheKey:l}))}))}),[f,l,p,g]),{endpointName:x,data:E,status:S,isLoading:k,isSuccess:C,isError:O,error:N}=b;(0,a.useDebugValue)({endpointName:x,data:E,status:S,isLoading:k,isSuccess:C,isError:O,error:N});const T=(0,a.useMemo)((()=>({...b,originalArgs:w,reset:_})),[b,w,_]);return(0,a.useMemo)((()=>[m,T]),[m,T])}},usePrefetch:function(t,r){const o=n(),i=m(r);return(0,a.useCallback)(((n,r)=>o(e.util.prefetch(t,n,{...i,...r}))),[t,o,i])}};function w(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=y.endpointDefinitions[e];d({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===d({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);const o=void 0!==r,i=e.isLoading,a=!o&&i,s=e.isSuccess||i&&o;return{...e,data:r,currentData:e.data,isFetching:i,isLoading:a,isSuccess:s}}}({api:l,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:o,createSelector:n},serializeQueryArgs:d,context:y});return c(b,{usePrefetch:x}),c(y,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}=w(e);c(b.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}),l[`use${u(e)}Query`]=t,l[`useLazy${u(e)}Query`]=n}else if(function(e){return"mutation"===e.type}(t)){const t=_(e);c(b.endpoints[e],{useMutation:t}),l[`use${u(e)}Mutation`]=t}}}}}))());const w=b({baseQuery:function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")},endpoints:()=>({}),invalidationBehavior:"immediately",tagTypes:["All","PDiskData","PreviewData","StorageData","Tablet","UserData","VDiskData"]});Symbol()},78668:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,D_:()=>f,_5:()=>u,mB:()=>d});var r=n(97091),o=n(81288),i=n(21334);const a=(0,r.Z0)({name:"authentication",initialState:{isAuthenticated:!0,user:""},reducers:{setIsAuthenticated:(e,t)=>{const n=t.payload;e.isAuthenticated=n,n||(e.user="")},setUser:(e,t)=>{const{UserSID:n,AuthType:r,IsMonitoringAllowed:o}=t.payload;e.user="Login"===r?n:void 0,e.isUserAllowedToMakeChanges=!1!==o}},selectors:{selectIsUserAllowedToMakeChanges:e=>e.isUserAllowedToMakeChanges,selectUser:e=>e.user}}),s=a.reducer,{setIsAuthenticated:l,setUser:c}=a.actions,{selectIsUserAllowedToMakeChanges:u,selectUser:d}=a.selectors,f=i.F.injectEndpoints({endpoints:e=>({whoami:e.query({queryFn:async(e,{dispatch:t})=>{try{const e=await window.api.viewer.whoami();return t(c(e)),{data:e}}catch(r){var n;return!(0,o.qP)(r)||401!==r.status||null!==(n=r.data)&&void 0!==n&&n.authUrl||t(l(!1)),{error:r}}},providesTags:["UserData"]}),authenticate:e.mutation({queryFn:async(e,{dispatch:t})=>{try{const n=await window.api.auth.authenticate(e);return t(l(!0)),{data:n}}catch(n){return{error:n}}},invalidatesTags:(e,t)=>t?[]:["UserData"]}),logout:e.mutation({queryFn:async(e,{dispatch:t})=>{try{const e=await window.api.auth.logout();return t(l(!1)),{data:e}}catch(n){return{error:n}}}})}),overrideExisting:"throw"})},68712:(e,t,n)=>{"use strict";n.d(t,{FC:()=>l,Ox:()=>a,RE:()=>o,p2:()=>s});var r=n(53850);const o=n(21334).F.injectEndpoints({endpoints:e=>({getClusterCapabilities:e.query({queryFn:async e=>{try{return{data:await window.api.viewer.getClusterCapabilities(e)}}catch(t){return{error:t}}}})}),overrideExisting:"throw"}),i=(0,r.Mz)((e=>e),(e=>o.endpoints.getClusterCapabilities.select({database:e}))),a=(0,r.Mz)((e=>e),((e,t)=>i(t)),((e,t)=>t(e))),s=(0,r.Mz)((e=>e),((e,t)=>t),((e,t,n)=>n),((e,t,n)=>{var r,o;return null===(r=a(e,n).data)||void 0===r||null===(o=r.Capabilities)||void 0===o?void 0:o[t]}));async function l(e,t,{dispatch:n,getState:r}){const i=o.util.getRunningQueryThunk("getClusterCapabilities",{database:t});return await n(i),s(r(),e)||0}},67028:(e,t,n)=>{"use strict";n.d(t,{DM:()=>g,Ii:()=>u,Oi:()=>f,Pm:()=>l,SA:()=>h,WF:()=>v,YA:()=>p,Ye:()=>m,_Q:()=>y,c2:()=>d,e5:()=>s,fp:()=>b});var r=n(67087),o=n(90182),i=n(68712);function a(){const[e]=(0,r.useQueryParam)("database",r.StringParam);return null!==e&&void 0!==e?e:void 0}function s(){const e=a();i.RE.useGetClusterCapabilitiesQuery({database:e})}function l(){const e=a(),{data:t,error:n}=(0,o.N4)((t=>(0,i.Ox)(t,e)));return Boolean(t||n)}const c=e=>{const t=a();return(0,o.N4)((n=>(0,i.p2)(n,e,t)||0))},u=()=>c("/scheme/directory")>0,d=()=>c("/pdisk/info")>0,f=()=>c("/viewer/query")>2,p=()=>c("/storage/groups")>2,h=()=>c("/storage/groups")>4,m=()=>c("/viewer/nodes")>6,g=()=>c("/viewer/nodes")>11,v=()=>c("/viewer/nodes")>13,y=()=>c("/viewer/feature_flags")>1,b=()=>c("/viewer/cluster")>4},67298:(e,t,n)=>{"use strict";n.d(t,{Zh:()=>x,Ay:()=>_,ds:()=>O,zR:()=>C,Yv:()=>w,Zd:()=>E});var r=n(97091),o=n(53850),i=n(44992),a=n(67087),s=n(87842),l=n(90638),c=n(98730),u=n(76086),d=n(11822),f=n(21334),p=n(24600);function h(e){const t={};return null===e||void 0===e||e.forEach((e=>{const{PDiskFilter:n,ErasureSpecies:r,CurrentAvailableSize:o,CurrentAllocatedSize:i,CurrentGroupsCreated:a,AvailableGroupsToCreate:s}=e,l=Number(a)||0,c=l+(Number(s)||0),u=Number(i)||0,d=Number(o)||0,f=n&&"string"===typeof n&&(e=>{var t,n;const r=null===(t=e.match(/^Type:(?<type>[A-Za-z]+)/))||void 0===t||null===(n=t.groups)||void 0===n?void 0:n.type;return"ROT"===r?"HDD":r})(n);if(f&&r&&"string"===typeof r&&l){const e={diskType:f,erasure:r,createdGroups:l,totalGroups:c,allocatedSize:u,availableSize:d};if(t[f])if(t[f][r]){const e={...t[f][r]};t[f][r]={diskType:f,erasure:r,createdGroups:e.createdGroups+l,totalGroups:e.totalGroups+c,allocatedSize:e.allocatedSize+u,availableSize:e.availableSize+d}}else t[f][r]=e;else t[f]={[r]:e}}})),t}const m=e=>{var t,n;return h(null===(t=(0,d.fW)(e).resultSets)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.result)};const g=localStorage.getItem(u.fY);let v;v=(0,s.eC)(g)?g:s.Bi.overview;const y={defaultClusterTab:v},b=(0,r.Z0)({name:"cluster",initialState:y,reducers:{setDefaultClusterTab(e,t){e.defaultClusterTab=t.payload}}});function w(e){return t=>{(0,s.eC)(e)&&(localStorage.setItem(u.fY,e),t(b.actions.setDefaultClusterTab(e)))}}const _=b.reducer,x=f.F.injectEndpoints({endpoints:e=>({getClusterInfo:e.query({queryFn:async(e,{signal:t})=>{try{const r=window.api.meta?await window.api.meta.getClusterInfo(e,{signal:t}):await window.api.viewer.getClusterInfo(e,{signal:t}),o=r.Domain;if(!o)return{data:{clusterData:r}};if((0,c.L)(r))return{data:{clusterData:r,groupsStats:(n=r,h(n.StorageStats))}};try{const e=(e=>`\nSELECT \n PDiskFilter,\n ErasureSpecies,\n CurrentAvailableSize,\n CurrentAllocatedSize,\n CurrentGroupsCreated,\n AvailableGroupsToCreate\n FROM \`${e}/.sys/ds_storage_stats\`\n ORDER BY CurrentGroupsCreated DESC;\n`)(o),t=await window.api.viewer.sendQuery({query:e,database:o,action:"execute-scan"});return(0,d.We)(t)?{data:{clusterData:r}}:{data:{clusterData:r,groupsStats:m(t)}}}catch{return{data:{clusterData:r}}}}catch(r){return{error:r}}var n},providesTags:["All"]}),getClusterBaseInfo:e.query({queryFn:async(e,{signal:t})=>{try{if(!window.api.meta)throw new Error("Method is not implemented.");return{data:await window.api.meta.getClusterBaseInfo(e,{signal:t})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"});function E(){var e;const[t]=(0,a.useQueryParam)("clusterName",a.StringParam),{currentData:n}=x.useGetClusterBaseInfoQuery(null!==t&&void 0!==t?t:i.hT),{solomon:r,name:o,trace_check:s,trace_view:c,...u}=n||{};return{...u,...(0,l.K)({traceCheck:s,traceView:c}),name:null!==(e=null!==o&&void 0!==o?o:t)&&void 0!==e?e:void 0,monitoring:r}}const S=(0,o.Mz)((e=>e),(e=>x.endpoints.getClusterInfo.select(e))),k=(0,o.Mz)((e=>e),((e,t)=>S(t)),((e,t)=>t(e).data)),C=(0,o.Mz)(((e,t)=>t),((e,t)=>k(e,t)),((e,t)=>{const{Name:n,Domain:r}=(null===t||void 0===t?void 0:t.clusterData)||{};return n||e||function(e){if(!e)return;return(e.startsWith("/")?e.slice(1):e).toUpperCase()}(r)||u.QM})),O=(0,o.Mz)(((e,t)=>k(e,t)),(e=>(0,p.E)(e)),((e,t)=>{var n;const r=null===e||void 0===e||null===(n=e.clusterData)||void 0===n?void 0:n.SystemTablets;return r?t?r.map((e=>{const n=void 0===e.NodeId?void 0:t.get(e.NodeId);return{...e,fqdn:n}})):r:[]}))},39567:(e,t,n)=>{"use strict";n.d(t,{Fe:()=>c,ub:()=>u,Ay:()=>l});var r=n(97091),o=n(21334),i=n(40537);const a=e=>{const{clusters:t=[]}=e;let n=new Map;t.forEach((({versions:e=[]})=>{n=(0,i.HD)(e,n)}));const r=(0,i.Vm)(n);return t.map((e=>({...e,preparedVersions:(0,i.NN)(e.versions,r)})))},s=(0,r.Z0)({name:"clusters",initialState:{clusterName:"",status:[],service:[],version:[]},reducers:{changeClustersFilters:(e,t)=>({...e,...t.payload})}}),l=s.reducer,{changeClustersFilters:c}=s.actions,u=o.F.injectEndpoints({endpoints:e=>({getClustersList:e.query({queryFn:async(e,{signal:t})=>{try{if(window.api.meta){const e=await window.api.meta.getClustersList(void 0,{signal:t});return{data:a(e)}}throw new Error("Method is not implemented.")}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},69053:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h,TX:()=>p,Ke:()=>g});var r=n(14750),o=n(97091),i=n(959),a=n(11822),s=n(21334);const l="EndTime",c="IntervalEnd";function u(e,t){var n,o;const i=[],a=null===(n=(0,r.bQ)(Number(null===t||void 0===t?void 0:t.to)||(null===t||void 0===t?void 0:t.to)))||void 0===n?void 0:n.valueOf(),s=null===(o=(0,r.bQ)(Number(null===t||void 0===t?void 0:t.from)||(null===t||void 0===t?void 0:t.from)))||void 0===o?void 0:o.valueOf();if(s&&a&&s>a)throw new Error("Invalid date range");if(s){const e=a===s?">=":">";i.push(`${l} ${e} Timestamp('${new Date(s).toISOString()}')`)}return a&&i.push(`${l} <= Timestamp('${new Date(a).toISOString()}')`),s||a||i.push(`${c} IN ${(e=>`(\n SELECT\n MAX(${c})\n FROM \`${e}/.sys/top_queries_by_cpu_time_one_hour\`\n)`)(e)}`),null!==t&&void 0!==t&&t.text&&i.push(`(QueryText ILIKE '%${t.text}%' OR UserSID ILIKE '%${t.text}%')`),i.join(" AND ")}const d="/*UI-QUERY-EXCLUDE*/",f=(0,o.Z0)({name:"executeTopQueries",initialState:{},reducers:{setTopQueriesFilters:(e,t)=>({...e,...t.payload})}}),{setTopQueriesFilters:p}=f.actions,h=f.reducer,m=(e,t,n)=>{const r=u(e,t),o=(0,i.JD)(n);return`\nSELECT ${d}\n CPUTime as CPUTimeUs,\n QueryText,\n IntervalEnd,\n EndTime,\n ReadRows,\n ReadBytes,\n UserSID,\n Duration\nFROM \`${e}/.sys/top_queries_by_cpu_time_one_hour\`\nWHERE ${r||"true"} AND QueryText NOT LIKE '%${d}%'\n${o}\nLIMIT 100\n`},g=s.F.injectEndpoints({endpoints:e=>({getTopQueries:e.query({queryFn:async({database:e,filters:t,sortOrder:n},{signal:r})=>{const o={...t,from:(null===t||void 0===t?void 0:t.from)||"now-1h",to:(null===t||void 0===t?void 0:t.to)||"now"};try{const t=await window.api.viewer.sendQuery({query:m(e,o,n),database:e,action:"execute-scan"},{signal:r,withRetries:!0});if((0,a.We)(t))throw t;return{data:(0,a.fW)(t)}}catch(i){return{error:i}}},forceRefetch:({currentArg:e})=>{var t,n,o,i;return!(null!==e&&void 0!==e&&null!==(t=e.filters)&&void 0!==t&&t.from&&null!==e&&void 0!==e&&null!==(n=e.filters)&&void 0!==n&&n.to&&!(0,r.eP)(null===e||void 0===e||null===(o=e.filters)||void 0===o?void 0:o.from)&&!(0,r.eP)(null===e||void 0===e||null===(i=e.filters)||void 0===i?void 0:i.to))},providesTags:["All"]}),getRunningQueries:e.query({queryFn:async({database:e,filters:t,sortOrder:n},{signal:r})=>{try{const o=null!==t&&void 0!==t&&t.text?`Query ILIKE '%${t.text}%' OR UserSID ILIKE '%${t.text}%'`:"",s=(0,i.JD)(n),l=`SELECT ${d}\n UserSID, QueryStartAt, Query as QueryText, ApplicationName\n FROM\n \`.sys/query_sessions\`\n WHERE\n ${o||"true"} AND Query NOT LIKE '%${d}%'\n ${s}\n LIMIT 100`,c=await window.api.viewer.sendQuery({query:l,database:e,action:"execute-scan"},{signal:r,withRetries:!0});if((0,a.We)(c))throw c;return{data:(0,a.fW)(c)}}catch(o){return{error:o}}},forceRefetch:()=>!0,providesTags:["All"]})}),overrideExisting:"throw"})},72976:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,Jf:()=>i,sM:()=>a});const r="ENABLE_FULLSCREEN_MODE",o="DISABLE_FULLSCREEN_MODE";function i(){return{type:r}}function a(){return{type:o}}const s=function(e=false,t){switch(t.type){case o:return!1;case r:return!0;default:return e}}},40174:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,g:()=>i});const r="header/SET_HEADER_BREADCRUMBS",o={pageBreadcrumbsOptions:{}};function i(e,t){return{type:r,page:e,options:t}}const a=(e=o,t)=>t.type===r?{page:t.page,pageBreadcrumbsOptions:t.options}:e},90565:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,f1:()=>c,nd:()=>l,ue:()=>i});var r=n(97091),o=n(21334);const i={currentMetric:void 0,sort:!1,heatmap:!1},a=(0,r.Z0)({name:"heatmap",initialState:i,reducers:{setHeatmapOptions:(e,t)=>({...e,...t.payload})}}),s=a.reducer,{setHeatmapOptions:l}=a.actions,c=o.F.injectEndpoints({endpoints:e=>({getHeatmapTabletsInfo:e.query({queryFn:async({path:e,database:t},{signal:n,getState:r,dispatch:o})=>{try{var i;const a=function([e,t]){const{TabletStateInfo:n=[]}=e,r=new Map,{PathDescription:o={}}=null!==t&&void 0!==t?t:{},{TablePartitions:i=[],TablePartitionStats:a=[],TablePartitionMetrics:s=[]}=o;n.forEach((e=>{e.TabletId&&r.set(e.TabletId,e)})),i.forEach(((e,t)=>{const n=Object.assign({},a[t],s[t]);e.DatashardId&&r.set(e.DatashardId,{...r.get(e.DatashardId),metrics:n})}));const l=Array.from(r.values()),c=l[0]&&l[0].metrics&&Object.keys(l[0].metrics).map((e=>({value:e,content:e})));return{tablets:l,metrics:c}}(await Promise.all([window.api.viewer.getTabletsInfo({path:e,database:t},{signal:n}),window.api.viewer.getHeatmapData({path:e,database:t},{signal:n})]));if(null!==(i=a.metrics)&&void 0!==i&&i.length){const e=r().heatmap.currentMetric;e&&a.metrics.find((t=>t.value===e))||o(l({currentMetric:a.metrics[0].value}))}return{data:a}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"})},81463:(e,t,n)=>{"use strict";n.d(t,{A:()=>E,d:()=>x});var r=n(96906),o=n(21334),i=n(78668),a=n(67298),s=n(39567),l=n(69053),c=n(72976),u=n(40174),d=n(90565),f=n(47058),p=n(10468),h=n(36894),m=n(29078),g=n(88610),v=n(46496);const y=function(e=!0){return e};var b=n(18517),w=n(56674),_=n(49818);const x={[o.F.reducerPath]:o.F.reducer,singleClusterMode:y,cluster:a.Ay,tenant:b.Ay,tooltip:_.Ay,schema:m.Ay,tenants:w.Ay,partitions:f.Ay,query:p.Ay,heatmap:d.Ay,settings:g.Ay,executeTopQueries:l.Ay,shardsWorkload:v.Ay,authentication:i.Ay,header:u.A,queryActions:h.Ay,fullscreen:c.Ay,clusters:s.Ay},E=(0,r.HY)({...x})},24600:(e,t,n)=>{"use strict";n.d(t,{E:()=>s,m:()=>i});var r=n(53850),o=n(78034);const i=n(21334).F.injectEndpoints({endpoints:e=>({getNodesList:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getNodesList({signal:t})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"}),a=i.endpoints.getNodesList.select(void 0),s=(0,r.Mz)((e=>a(e).data),(e=>(0,o.pl)(e)))},47058:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,aD:()=>f,WD:()=>u});var r=n(97091),o=n(21334),i=n(46549),a=n(73891),s=n(41650);const l=e=>{const{partition_offsets:t,store_size_bytes:n="0",last_write_time:r,max_write_time_lag:o,bytes_written:s,partition_node_id:l=0}=e||{},{start:c="0",end:u="0"}=t||{};return{storeSize:n,writeSpeed:(0,i.ey)(s),partitionWriteLag:(0,a.i6)(o),partitionWriteIdleTime:(0,a.MC)(r),startOffset:c,endOffset:u,partitionNodeId:l}},c=(0,r.Z0)({name:"partitions",initialState:{},reducers:{setSelectedConsumer:(e,t)=>{e.selectedConsumer=t.payload}}}),{setSelectedConsumer:u}=c.actions,d=c.reducer,f=o.F.injectEndpoints({endpoints:e=>({getPartitions:e.query({queryFn:async({path:e,database:t,consumerName:n},{signal:r})=>{try{if(n){const o=await window.api.viewer.getConsumer({path:e,database:t,consumer:n},{signal:r}),c=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n,partition_consumer_stats:r}=e,o=l(n),{endOffset:c}=o,{last_read_offset:u="0",committed_offset:d="0",read_session_id:f,last_read_time:p,max_read_time_lag:h,max_write_time_lag:m,bytes_read:g,reader_name:v,connection_node_id:y=0}=r||{},b=(0,s.kf)(c)&&(0,s.kf)(d)?Number(c)-Number(d):0,w=(0,s.kf)(c)&&(0,s.kf)(u)?Number(c)-Number(u):0;return{...o,partitionId:t,readSpeed:(0,i.ey)(g),consumerWriteLag:(0,a.i6)(m),consumerReadLag:(0,a.i6)(h),consumerReadIdleTime:(0,a.MC)(p),uncommitedMessages:b,unreadMessages:w,commitedOffset:d,readSessionId:f,readerName:v,connectionNodeId:y}})))(o.partitions);return{data:c}}{const n=await window.api.viewer.getTopic({path:e,database:t},{signal:r}),o=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n}=e;return{partitionId:t,...l(n)}})))(n.partitions);return{data:o}}}catch(o){return{error:o}}},providesTags:["All"]})}),overrideExisting:"throw"})},10468:(e,t,n)=>{"use strict";n.d(t,{iZ:()=>w,Ay:()=>b,tS:()=>C,JK:()=>k,JO:()=>j,nO:()=>E,py:()=>A,Kz:()=>I,jY:()=>T,wf:()=>D,yJ:()=>P,Wp:()=>R,Ni:()=>N,P7:()=>_,Id:()=>O});var r=n(97091),o=n(59001),i=n(11822);const a={[i.PB.off]:0,[i.PB.toplevel]:4,[i.PB.basic]:9,[i.PB.detailed]:13,[i.PB.diagnostic]:14,[i.PB.trace]:15};var s=n(76086),l=n(41650),c=n(21334);const u=new Set(["PlanNodeId","PlanNodeType","Node Type","Plans"]);function d(e){const t=[];if(e.Operators){const n=[];for(const t of e.Operators){const e={name:t.Name,items:[]};for(const[n,r]of Object.entries(t)){if("Name"===n)continue;const t="string"===typeof r?r:JSON.stringify(r);e.items.push({name:n,value:t})}n.push(e)}t.push({group:"Operators",stats:n})}if("Connection"===e.PlanNodeType){const n=[];for(const[t,r]of Object.entries(e))u.has(t)||n.push({name:t,value:"string"===typeof r?r:JSON.stringify(r)});n.length>0&&t.push({group:"Attributes",stats:n})}if(e.Stats){const n=[];for(const[t,r]of Object.entries(e.Stats))n.push({name:t,value:"string"===typeof r?r:JSON.stringify(r)});t.push({group:"Stats",stats:n})}return t}function f(e){switch(e.PlanNodeType){case"Connection":return"connection";case"ResultSet":return"result";case"Query":return"query";default:return"stage"}}function p(e){const t=[],n=[];const r=e,o={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:f(r),name:r["Node Type"]}};return t.push(o),function e(r=[],o){r.forEach((r=>{var i;const a={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:f(r),name:r["Node Type"],operators:null===(i=r.Operators)||void 0===i?void 0:i.map((e=>e.Name)),stats:d(r),tables:r.Tables}};t.push(a),n.push({from:o,to:a.name}),e(r.Plans,a.name)}))}(r.Plans,o.name),{nodes:t,links:n}}const h=Object.values({v2:"0.2"});const m=o.f.readUserSettingsValue(s.MB,[]),g=m.length-20,v={input:"",history:{queries:m.slice(g<0?0:g).map((function(e){return"string"===typeof e?{queryText:e}:e})),currentIndex:m.length>20?19:m.length-1,filter:""}},y=(0,r.Z0)({name:"query",initialState:v,reducers:{changeUserInput:(e,t)=>{e.input=t.payload.input},setQueryTraceReady:e=>{e.result&&(e.result.isTraceReady=!0)},setQueryResult:(e,t)=>{e.result=t.payload},saveQueryToHistory:(e,t)=>{const{queryText:n,queryId:r}=t.payload,i=[...e.history.queries,{queryText:n,queryId:r}].slice(e.history.queries.length>=20?1:0);o.f.setUserSettingsValue(s.MB,i);const a=i.length-1;e.history={queries:i,currentIndex:a}},updateQueryInHistory:(e,t)=>{const{queryId:n,stats:r}=t.payload;if(!r)return;const i=e.history.queries.findIndex((e=>e.queryId===n));if(-1===i)return;const a=[...e.history.queries],{durationUs:l,endTime:c}=r;a.splice(i,1,{...e.history.queries[i],durationUs:l,endTime:c}),o.f.setUserSettingsValue(s.MB,a),e.history.queries=a},goToPreviousQuery:e=>{const t=e.history.currentIndex;if(t<=0)return;const n=t-1,r=e.history.queries[n];e.input=r.queryText,e.history.currentIndex=n},goToNextQuery:e=>{const t=e.history.currentIndex;if(t>=e.history.queries.length-1)return;const n=t+1,r=e.history.queries[n];e.input=r.queryText,e.history.currentIndex=n},setTenantPath:(e,t)=>{e.tenantPath=t.payload},setQueryHistoryFilter:(e,t)=>{e.history.filter=t.payload}},selectors:{selectQueriesHistoryFilter:e=>e.history.filter||"",selectTenantPath:e=>e.tenantPath,selectResult:e=>e.result,selectQueriesHistory:e=>{var t;const n=e.history.queries,r=null===(t=e.history.filter)||void 0===t?void 0:t.toLowerCase();return r?n.filter((e=>e.queryText.toLowerCase().includes(r))):n},selectUserInput:e=>e.input,selectQueriesHistoryCurrentIndex:e=>{var t;return null===(t=e.history)||void 0===t?void 0:t.currentIndex}}}),b=y.reducer,{changeUserInput:w,setQueryTraceReady:_,setQueryResult:x,saveQueryToHistory:E,updateQueryInHistory:S,goToPreviousQuery:k,goToNextQuery:C,setTenantPath:O,setQueryHistoryFilter:N}=y.actions,{selectQueriesHistoryFilter:T,selectQueriesHistoryCurrentIndex:I,selectQueriesHistory:A,selectTenantPath:P,selectResult:D,selectUserInput:R}=y.selectors,j=c.F.injectEndpoints({endpoints:e=>({useSendQuery:e.mutation({queryFn:async({actionType:e="execute",query:t,database:n,querySettings:r={},enableTracingLevel:o,queryId:s},{signal:c,dispatch:u})=>{u(x({type:e,queryId:s,isLoading:!0}));const{action:d,syntax:f}=function(e="execute",t="query"){let n=e,r="yql_v1";return"pg"===t?(n=`${e}-query`,r="pg"):t&&(n=`${e}-${t}`),{action:n,syntax:r}}(e,null===r||void 0===r?void 0:r.queryMode);try{var m;const g=Date.now(),v=await window.api.viewer.sendQuery({query:t,database:n,action:d,syntax:f,stats:r.statisticsMode,tracingLevel:r.tracingLevel&&o?a[r.tracingLevel]:void 0,limit_rows:(0,l.kf)(r.limitRows)?Number(r.limitRows):void 0,transaction_mode:"implicit"===r.transactionMode?void 0:r.transactionMode,timeout:(0,l.kf)(r.timeout)?1e3*Number(r.timeout):void 0,query_id:s},{signal:c});if((0,i.We)(v))return u(x({type:e,error:v,isLoading:!1,queryId:s})),{error:v};const y=function(e){var t,n,r;const o=(0,i.fW)(e),{plan:a,stats:s}=o;if(a){const{tables:e,meta:t,Plan:n,SimplifiedPlan:r}=(0,i.UF)(a);if(-1===h.indexOf(t.version))return{...o,preparedPlan:{pristine:a,version:t.version}};let s,l=[],c=[];if(n){const e=p(n);l=e.links,c=e.nodes}return r&&(s=function(e){const t=[],n=e.map((e=>({node:e})));for(;n.length>0;){var r;const{node:e,subNodes:o}=n.pop(),i=e.Plans,a=null===(r=e.Operators)||void 0===r?void 0:r[0],s=o||t;if(a){const{"A-Cpu":e,"A-Rows":t,"E-Cost":r,"E-Rows":o,"E-Size":l,SsaProgram:c,Name:u,...d}=a,f={name:u,operationParams:d,aCpu:e,aRows:t,eCost:r,eRows:o,eSize:l,children:[]};if(s.push(f),i)for(let a=i.length-1;a>=0;a--)n.push({node:i[a],subNodes:f.children})}else if(i)for(let t=i.length-1;t>=0;t--)n.push({node:i[t],subNodes:s})}return t}([r])),{...o,preparedPlan:{links:l,nodes:c,tables:e,version:t.version,pristine:a},simplifiedPlan:{plan:s,pristine:r}}}const l=null===s||void 0===s||null===(t=s.Executions)||void 0===t||null===(n=t[0])||void 0===n||null===(r=n.TxPlansWithStats)||void 0===r?void 0:r[0];if(l)try{const e=JSON.parse(l);return{...o,preparedPlan:{...p(e),pristine:e}}}catch(c){}return o}(v);if(y.traceId=null===v||void 0===v||null===(m=v._meta)||void 0===m?void 0:m.traceId,"execute"===e){const e={};if(y.stats){const{DurationUs:t,Executions:[{FinishTimeMs:n}]=[{}]}=y.stats;e.durationUs=t,e.endTime=n}else{const t=Date.now();e.durationUs=1e3*(t-g),e.endTime=t}u(S({stats:e,queryId:s}))}return u(x({type:e,data:y,isLoading:!1,queryId:s})),{data:null}}catch(g){return u(x({type:e,error:g,isLoading:!1,queryId:s})),{error:g}}}})}),overrideExisting:"throw"})},36894:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,JP:()=>l,NJ:()=>u,Wg:()=>g,aW:()=>f,cu:()=>h,fu:()=>m,gJ:()=>c,xM:()=>p,ys:()=>d});var r=n(97091),o=n(76086),i=n(88610);const a=(0,r.Z0)({name:"queryActions",initialState:{queryName:null,queryAction:"idle",savedQueriesFilter:""},reducers:{setQueryNameToEdit:(e,t)=>{e.queryName=t.payload},clearQueryNameToEdit:e=>{e.queryName=null},setQueryAction:(e,t)=>{e.queryAction=t.payload},setSavedQueriesFilter:(e,t)=>{e.savedQueriesFilter=t.payload}},selectors:{selectQueryName:e=>e.queryName,selectQueryAction:e=>e.queryAction,selectSavedQueriesFilter:e=>e.savedQueriesFilter}}),s=a.reducer,{setQueryNameToEdit:l,clearQueryNameToEdit:c,setQueryAction:u,setSavedQueriesFilter:d}=a.actions,{selectQueryName:f,selectQueryAction:p,selectSavedQueriesFilter:h}=a.selectors;function m(e){return function(t,n){var r;const a=n(),s=(null!==(r=(0,i.CN)(a,o.ld))&&void 0!==r?r:[]).filter((t=>t.name.toLowerCase()!==e.toLowerCase()));t((0,i.gc)(o.ld,s))}}function g(e){return function(t,n){var r;const a=n(),s=null!==(r=(0,i.CN)(a,o.ld))&&void 0!==r?r:[],l=a.query.input;if(null===e)return;const c=[...s],u=c.find((t=>t.name.toLowerCase()===e.toLowerCase()));u?u.body=l:c.push({name:e,body:l}),t((0,i.gc)(o.ld,c))}}},29078:(e,t,n)=>{"use strict";n.d(t,{Ab:()=>u,Ay:()=>l,Tn:()=>p,o:()=>c,sM:()=>d});var r=n(59284),o=n(97091),i=n(21334);const a={loading:!0,data:{},currentSchemaPath:void 0,showPreview:!1},s=(0,o.Z0)({name:"schema",initialState:a,reducers:{setShowPreview:(e,t)=>{e.showPreview=t.payload}},selectors:{selectShowPreview:e=>e.showPreview}}),l=s.reducer,{setShowPreview:c}=s.actions,{selectShowPreview:u}=s.selectors,d=i.F.injectEndpoints({endpoints:e=>({createDirectory:e.mutation({queryFn:async({database:e,path:t},{signal:n})=>{try{return{data:await window.api.scheme.createSchemaDirectory({database:e,path:t},{signal:n})}}catch(r){return{error:r}}}}),getSchema:e.query({queryFn:async({path:e,database:t},{signal:n})=>{try{const r=await window.api.viewer.getSchema({path:e,database:t},{signal:n});return r?{data:{[e]:r,...f(r)}}:{error:new Error("Schema is not available")}}catch(r){return{error:r}}},keepUnusedDataFor:1/0,serializeQueryArgs:({queryArgs:{database:e}})=>({database:e}),merge:(e,t,{arg:{path:n}})=>{const{[n]:r,...o}=t;return r?{...o,...e,[n]:r}:e}})}),overrideExisting:"throw"});function f(e){const t={},{PathDescription:{Children:n=[]}={},Path:r}=e;for(const o of n){const{Name:e=""}=o,n=`${r}/${e}`;t[n]={PathDescription:{Self:o},Path:n,partial:!0}}return t}function p({path:e,database:t}){const{currentData:n,isFetching:o,error:i,refetch:a,originalArgs:s}=d.useGetSchemaQuery({path:e,database:t}),l=null===n||void 0===n?void 0:n[e],c=o&&void 0===l,u=(null===s||void 0===s?void 0:s.path)===e?i:void 0,f=!c&&(!l&&!i||(null===l||void 0===l?void 0:l.partial));return r.useEffect((()=>{f&&a()}),[a,e,f]),{data:l,isLoading:c,error:u}}},88610:(e,t,n)=>{"use strict";n.d(t,{$u:()=>d,Ay:()=>g,CN:()=>f,N8:()=>m,gc:()=>h,s$:()=>a,ue:()=>c,yV:()=>p});var r=n(97091),o=n(59001),i=n(41650);const a={ALL:"All",PROBLEMS:"With problems"},s=o.f.extractSettingsFromLS(o.c),l=window.systemSettings||{},c={problemFilter:a.ALL,userSettings:s,systemSettings:l},u=(0,r.Z0)({name:"settings",initialState:c,reducers:e=>({changeFilter:e.reducer(((e,t)=>{e.problemFilter=t.payload})),setSettingValue:e.reducer(((e,t)=>{e.userSettings[t.payload.name]=t.payload.value}))}),selectors:{getSettingValue:(e,t)=>e.userSettings[t],selectProblemFilter:e=>e.problemFilter}}),{changeFilter:d}=u.actions,{getSettingValue:f,selectProblemFilter:p}=u.selectors,h=(e,t)=>n=>{n(u.actions.setSettingValue({name:e,value:t})),o.f.setUserSettingsValue(e,t)};function m(e){"undefined"!==typeof window&&window.addEventListener("storage",(t=>{if(t.key&&t.key in o.c){const n=t.key;let r=o.c[n];null!==t.newValue&&(r=(0,i.qF)(t.newValue)),e.dispatch(u.actions.setSettingValue({name:n,value:r}))}}))}const g=u.reducer},46496:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,Xx:()=>h,rF:()=>f});var r=n(14750),o=n(97091),i=n(959),a=n(11822),s=n(21334),l=n(87747);function c(e,t,n,o){const a=o?`CAST(SUBSTRING(CAST(Path AS String), ${o.length}) AS Utf8) AS Path`:"Path";let s=`Path='${e}' OR Path LIKE '${e}/%'`;const l=function(e){var t,n;const o=[],i=null===(t=(0,r.bQ)(Number(null===e||void 0===e?void 0:e.to)||(null===e||void 0===e?void 0:e.to)))||void 0===t?void 0:t.valueOf(),a=null===(n=(0,r.bQ)(Number(null===e||void 0===e?void 0:e.from)||(null===e||void 0===e?void 0:e.from)))||void 0===n?void 0:n.valueOf();if(a&&i&&a>i)throw new Error("Invalid date range");if(a){const e=i===a?">=":">";o.push(`IntervalEnd ${e} Timestamp('${new Date(a).toISOString()}')`)}return i&&o.push(`IntervalEnd <= Timestamp('${new Date(i).toISOString()}')`),o.join(" AND ")}(t);l.length&&(s=`(${s}) AND ${l}`);return`SELECT\n ${a},\n TabletId,\n CPUCores,\n DataSize,\n NodeId,\n PeakTime,\n InFlightTxCount,\n IntervalEnd\nFROM \`.sys/top_partitions_one_hour\`\nWHERE ${s}\n${(0,i.JD)(n)}\nLIMIT 20`}function u(e,t,n){return`SELECT\n ${n?`CAST(SUBSTRING(CAST(Path AS String), ${n.length}) AS Utf8) AS Path`:"Path"},\n TabletId,\n CPUCores,\n DataSize,\n NodeId,\n InFlightTxCount\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\n${(0,i.JD)(t)}\nLIMIT 20`}const d=(0,o.Z0)({name:"shardsWorkload",initialState:{},reducers:{setShardsQueryFilters:(e,t)=>({...e,...t.payload})}}),{setShardsQueryFilters:f}=d.actions,p=d.reducer,h=s.F.injectEndpoints({endpoints:e=>({sendShardQuery:e.query({queryFn:async({database:e,path:t="",sortOrder:n,filters:r},{signal:o})=>{try{const i=await window.api.viewer.sendQuery({query:(null===r||void 0===r?void 0:r.mode)===l.h.Immediate?u(t,n,e):c(t,r,n,e),database:e,action:"execute-scan"},{signal:o,withRetries:!0});if((0,a.We)(i))return{error:i};return{data:(0,a.fW)(i)}}catch(i){return{error:i}}},providesTags:["All"],forceRefetch:({currentArg:e})=>{var t,n,o;return"immediate"===(null===e||void 0===e||null===(t=e.filters)||void 0===t?void 0:t.mode)||!(!(0,r.eP)(null===e||void 0===e||null===(n=e.filters)||void 0===n?void 0:n.from)&&!(0,r.eP)(null===e||void 0===e||null===(o=e.filters)||void 0===o?void 0:o.to))}})}),overrideExisting:"throw"})},87747:(e,t,n)=>{"use strict";let r;n.d(t,{h:()=>r}),function(e){e.Immediate="immediate",e.History="history"}(r||(r={}))},52531:(e,t,n)=>{"use strict";n.d(t,{Dg:()=>o,Dt:()=>r,iJ:()=>a,ml:()=>s,pA:()=>l,tQ:()=>i});const r="tenantPage",o={query:"query",diagnostics:"diagnostics"},i={newQuery:"newQuery",history:"history",saved:"saved"},a={overview:"overview",schema:"schema",topQueries:"topQueries",topShards:"topShards",nodes:"nodes",tablets:"tablets",storage:"storage",network:"network",describe:"describe",hotKeys:"hotKeys",graph:"graph",consumers:"consumers",partitions:"partitions",configs:"configs",operations:"operations"},s={overview:"overview",acl:"acl",schema:"schema"},l={cpu:"cpu",storage:"storage",memory:"memory",healthcheck:"healthcheck"}},18517:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,WO:()=>h,sH:()=>p,Mj:()=>m,es:()=>f,z6:()=>v});var r=n(97091),o=n(59001),i=n(76086),a=n(21334),s=n(370),l=n(52531);const c={tenantPage:s.z.nativeEnum(l.Dg).catch(o.c[i.Mt]).parse(o.f.readUserSettingsValue(i.Mt))},u=(0,r.Z0)({name:"tenant",initialState:c,reducers:{setTenantPage:(e,t)=>{e.tenantPage=t.payload},setQueryTab:(e,t)=>{e.queryTab=t.payload},setDiagnosticsTab:(e,t)=>{e.diagnosticsTab=t.payload},setSummaryTab:(e,t)=>{e.summaryTab=t.payload},setMetricsTab:(e,t)=>{e.metricsTab=t.payload}}}),d=u.reducer,{setTenantPage:f,setQueryTab:p,setDiagnosticsTab:h,setSummaryTab:m,setMetricsTab:g}=u.actions,v=a.F.injectEndpoints({endpoints:e=>({getTenantInfo:e.query({queryFn:async({path:e},{signal:t})=>{try{var n,r;return{data:null!==(n=null===(r=(await window.api.viewer.getTenantInfo({path:e},{signal:t})).TenantInfo)||void 0===r?void 0:r[0])&&void 0!==n?n:null}}catch(o){return{error:o}}},providesTags:["All"]}),getClusterConfig:e.query({queryFn:async({database:e},{signal:t})=>{try{const n=await window.api.viewer.getClusterConfig(e,{signal:t});return{data:n.Databases[0].FeatureFlags}}catch(n){return{error:n}}}})}),overrideExisting:"throw"})},8861:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,u:()=>r});const r={Unspecified:"Unspecified",Good:"Good",Warning:"Warning",Danger:"Danger"},o={[r.Unspecified]:0,[r.Good]:1,[r.Warning]:2,[r.Danger]:3}},56674:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,GJ:()=>c,gB:()=>s});var r=n(97091),o=n(21334),i=n(20680);const a=(0,r.Z0)({name:"tenants",initialState:{searchValue:""},reducers:{setSearchValue:(e,t)=>{e.searchValue=t.payload}}}),{setSearchValue:s}=a.actions,l=a.reducer,c=o.F.injectEndpoints({endpoints:e=>({getTenantsInfo:e.query({queryFn:async({clusterName:e},{signal:t,getState:n})=>{try{const r=window.api.meta?await window.api.meta.getTenants(e,{signal:t}):await window.api.viewer.getTenants(e,{signal:t});let o;if(Array.isArray(r.TenantInfo)){const{singleClusterMode:e}=n();o=(0,i.T3)(r.TenantInfo,e)}else o=[];return{data:o}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},20680:(e,t,n)=>{"use strict";let r,o,i;n.d(t,{_O:()=>d,Xi:()=>f,xI:()=>m,Ke:()=>g,T6:()=>p,Ct:()=>h,uI:()=>l,ni:()=>v,E:()=>b,T3:()=>c,oK:()=>y}),function(e){e.STATE_UNSPECIFIED="STATE_UNSPECIFIED",e.CREATING="CREATING",e.RUNNING="RUNNING",e.REMOVING="REMOVING",e.PENDING_RESOURCES="PENDING_RESOURCES",e.CONFIGURING="CONFIGURING"}(r||(r={})),function(e){e.TABLET_VOLATILE_STATE_UNKNOWN="TABLET_VOLATILE_STATE_UNKNOWN",e.TABLET_VOLATILE_STATE_STOPPED="TABLET_VOLATILE_STATE_STOPPED",e.TABLET_VOLATILE_STATE_BOOTING="TABLET_VOLATILE_STATE_BOOTING",e.TABLET_VOLATILE_STATE_STARTING="TABLET_VOLATILE_STATE_STARTING",e.TABLET_VOLATILE_STATE_RUNNING="TABLET_VOLATILE_STATE_RUNNING"}(o||(o={})),function(e){e.None="None",e.HDD="HDD",e.SSD="SSD"}(i||(i={}));n(46549),n(86200);var a=n(41650),s=n(8861);const l=(e={})=>{const{CoresUsed:t,MemoryUsed:n,StorageAllocatedSize:r,MemoryLimit:o,StorageAllocatedLimit:s,PoolStats:l,Metrics:c={},DatabaseQuotas:d={},StorageUsage:f,QuotaUsage:p}=e,h=1e6*Number(t)||0,m=Number(n)||0,g=Number(r)||0,v=Number(c.Storage)||0,y=(0,a.kf)(o)?Number(o):void 0,b=(0,a.kf)(s)?Number(s):void 0,w=(0,a.kf)(d.data_size_soft_quota)?Number(d.data_size_soft_quota):void 0,_=(e=>{if(e)return e.map((e=>{if(e.Name){const t=Number(e.Usage)||0,n=Number(e.Threads),r=n*t;return{name:e.Name,usage:100*t,limit:n,used:r}}})).filter((e=>void 0!==e))})(l);let x,E;x=f?f.map((e=>{const{Type:t,Size:n,Limit:r}=e,o=Number(n),i=Number(r);return{name:t,used:o,limit:i,usage:u(o,i)}})):[{name:i.SSD,used:g,limit:b,usage:u(g,b)}],p?E=p.map((e=>{const{Type:t,Size:n,Limit:r}=e,o=Number(n),i=Number(r);return{name:t,used:o,limit:i,usage:u(o,i)}})):w&&(E=[{name:i.SSD,used:v,limit:w,usage:u(v,w)}]);return{memory:m,blobStorage:g,tabletStorage:v,memoryLimit:y,blobStorageLimit:b,tabletStorageLimit:w,cpu:h,poolsStats:_,memoryStats:[{name:"Process",used:m,limit:y,usage:u(m,y)}],blobStorageStats:x,tabletStorageStats:E}},c=(e,t)=>e.map((n=>{const r=t?(e=>{var t;const n=e.Nodes?e.Nodes[0]:{},r=n.Host&&n.Endpoints?null===(t=n.Endpoints.find((e=>"http-mon"===e.Name)))||void 0===t?void 0:t.Address:void 0;return n.Host?`${n.Host}${r||""}`:void 0})(n):void 0,o=e.find((e=>e.Id===n.ResourceId)),i=null===o||void 0===o?void 0:o.Name,s=null===o||void 0===o?void 0:o.NodeIds,c=(e=>{var t,n;const r=null===(t=e.Name)||void 0===t?void 0:t.split("/"),o=null!==r&&void 0!==r&&r.length?r[r.length-1]:"\u2014",i=null===(n=e.ControlPlane)||void 0===n?void 0:n.name;return null!==i&&void 0!==i?i:o})(n),{cpu:u,memory:d,blobStorage:f}=l(n),{nodesCount:p,groupsCount:h}=(e=>{var t;const{StorageGroups:n,NodeIds:r}=e;return{nodesCount:null!==(t=null===r||void 0===r?void 0:r.length)&&void 0!==t?t:0,groupsCount:(0,a.kf)(n)?Number(n):0}})(n);return{...n,backend:r,sharedTenantName:i,sharedNodeIds:s,controlPlaneName:c,cpu:u,memory:d,storage:f,nodesCount:p,groupsCount:h}}));function u(e,t){if(e&&t)return 100*e/t}const d=70,f=60,p=85,h=75,m=70,g=60,v=e=>e?e>d?s.u.Danger:e>f?s.u.Warning:s.u.Good:s.u.Unspecified,y=e=>e?e>p?s.u.Danger:e>h?s.u.Warning:s.u.Good:s.u.Unspecified,b=e=>e?e>m?s.u.Danger:e>g?s.u.Warning:s.u.Good:s.u.Unspecified},49818:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,DK:()=>c,oM:()=>a,w7:()=>l});var r=n(62060),o=n.n(r);const i="tooltip/HIDE_TOOLTIP",a="tooltip/UPDATE_REF",s={toolTipVisible:!1,currentHoveredRef:void 0,data:void 0,templateType:"pool"},l=()=>({type:i}),c=(e,t,n,r,o)=>({type:a,node:e,data:t,templateType:n,additionalData:r,positions:o}),u=(e=s,t)=>{switch(t.type){case i:return{...e,currentHoveredRef:void 0,toolTipVisible:!1};case a:return"cell"===t.templateType&&o()(t.node,e.currentHoveredRef)?{...e,currentHoveredRef:void 0,toolTipVisible:!1}:{...e,toolTipVisible:!0,currentHoveredRef:t.node,positions:t.positions,data:t.data,additionalData:t.additionalData,templateType:t.templateType};default:return e}}},98730:(e,t,n)=>{"use strict";function r(e){return!!e&&("Version"in e&&"number"===typeof e.Version&&e.Version>=2)}n.d(t,{L:()=>r})},54090:(e,t,n)=>{"use strict";let r;n.d(t,{m:()=>r}),function(e){e.Grey="Grey",e.Green="Green",e.Blue="Blue",e.Yellow="Yellow",e.Orange="Orange",e.Red="Red"}(r||(r={}))},6354:(e,t,n)=>{"use strict";let r,o;n.d(t,{e:()=>r,r:()=>o}),function(e){e.Unknown="Unknown",e.OldSchemeShard="OldSchemeShard",e.OldDataShard="OldDataShard",e.OldHive="OldHive",e.OldCoordinator="OldCoordinator",e.Mediator="Mediator",e.OldTxProxy="OldTxProxy",e.OldBSController="OldBSController",e.Dummy="Dummy",e.RTMRPartition="RTMRPartition",e.OldKeyValue="OldKeyValue",e.KeyValue="KeyValue",e.Coordinator="Coordinator",e.Hive="Hive",e.BSController="BSController",e.SchemeShard="SchemeShard",e.TxProxy="TxProxy",e.DataShard="DataShard",e.PersQueue="PersQueue",e.Cms="Cms",e.NodeBroker="NodeBroker",e.TxAllocator="TxAllocator",e.PersQueueReadBalancer="PersQueueReadBalancer",e.BlockStoreVolume="BlockStoreVolume",e.BlockStorePartition="BlockStorePartition",e.TenantSlotBroker="TenantSlotBroker",e.Console="Console",e.Kesus="Kesus",e.BlockStorePartition2="BlockStorePartition2",e.BlockStoreDiskRegistry="BlockStoreDiskRegistry",e.SysViewProcessor="SysViewProcessor",e.FileStore="FileStore",e.ColumnShard="ColumnShard",e.TestShard="TestShard",e.SequenceShard="SequenceShard",e.ReplicationController="ReplicationController",e.BlobDepot="BlobDepot",e.UserTypeStart="UserTypeStart",e.TypeInvalid="TypeInvalid"}(r||(r={})),function(e){e.Created="Created",e.ResolveStateStorage="ResolveStateStorage",e.Candidate="Candidate",e.BlockBlobStorage="BlockBlobStorage",e.RebuildGraph="RebuildGraph",e.WriteZeroEntry="WriteZeroEntry",e.Restored="Restored",e.Discover="Discover",e.Lock="Lock",e.Dead="Dead",e.Active="Active",e.ResolveLeader="ResolveLeader",e.Deleted="Deleted",e.Stopped="Stopped"}(o||(o={}))},15619:(e,t,n)=>{"use strict";n.d(t,{d:()=>l,z:()=>u});var r=n(76086),o=n(86200),i=n(41650),a=n(82621);const s={b:{value:1,label:(0,a.A)("b")},kb:{value:r.eh,label:(0,a.A)("kb")},mb:{value:r.pg,label:(0,a.A)("mb")},gb:{value:r.J7,label:(0,a.A)("gb")},tb:{value:r.Db,label:(0,a.A)("tb")}},l=(e,t)=>{const n=10**t,r=s.tb.value*n,o=s.gb.value*n,i=s.mb.value*n;let a="b";return e>=s.kb.value*n&&(a="kb"),e>=i&&(a="mb"),e>=o&&(a="gb"),e>=r&&(a="tb"),a},c=(e,t,n=i.en)=>e+n+s[t].label,u=({value:e,size:t,withSpeedLabel:n=!1,withSizeLabel:r=!0,significantDigits:u=0,delimiter:d,...f})=>{if(!(0,i.kf)(e))return"";const p=Number(e),h=null!==t&&void 0!==t?t:l(p,u),m=(({value:e,size:t="mb",precision:n=0})=>{const r=(0,o.CR)(Number(e)/s[t].value,n);return(0,o.ZV)(r)})({value:p,size:h,...f});return n?((e,t)=>c(e,t)+(0,a.A)("perSecond"))(m,h):r?c(m,h,d):m}},82621:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(48372);const o=JSON.parse('{"b":"B","kb":"KB","mb":"MB","gb":"GB","tb":"TB","label_thousand":"k","label_million":"m","label_billion":"b","label_trillion":"t","perSecond":"/s"}'),i=(0,r.g4)("ydb-bytes-parsers",{en:o})},46549:(e,t,n)=>{"use strict";n.d(t,{ey:()=>i,z3:()=>r.z,dd:()=>r.d});var r=n(15619),o=n(76086);const i=e=>({perMinute:e&&e.per_minute?Math.round(Number(e.per_minute)/o.r0):0,perHour:e&&e.per_hour?Math.round(Number(e.per_hour)/o.Jg):0,perDay:e&&e.per_day?Math.round(Number(e.per_day)/o.tt):0})},40537:(e,t,n)=>{"use strict";n.d(t,{HD:()=>l,NN:()=>u,Vm:()=>c});var r=n(11078),o=n.n(r),i=n(38596),a=n(66592);const s="__no_color__",l=(e,t=new Map)=>(e.forEach((({version:e,version_base_color_index:n=s})=>{var r;const o=(0,i.U)(e);t.has(n)||t.set(n,new Set),null===(r=t.get(n))||void 0===r||r.add(o)})),t),c=e=>{const t=new Map;for(const[n,r]of e)Array.from(r).sort(((e,t)=>(0,a.s5)(t)-(0,a.s5)(e))).forEach(((e,o)=>{if(n===s)t.set(e,a.OT);else{const i=Number(n)%a.lm.length,s=r.size,l=a.lm[i],c=Math.max(100-o*(100/s),20),u=`${l}${Math.round(255*c/100).toString(16)}`;t.set(e,u)}}));return t},u=(e=[],t)=>{const n=e.filter((e=>e.version));return o()(n,"version").map((e=>({...e,minorVersion:(0,i.U)(e.version)}))).reduce(((e,n)=>{const r=t.get(n.minorVersion);return e.push({...n,color:r}),e}),[])}},77506:(e,t,n)=>{"use strict";n.d(t,{cn:()=>r});const r=(0,n(82435).withNaming)({e:"__",m:"_"})},76086:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>_,Db:()=>u,Du:()=>m,ED:()=>z,GT:()=>w,GV:()=>q,Gj:()=>ie,IO:()=>oe,J7:()=>c,Jg:()=>p,KF:()=>d,KL:()=>D,Kp:()=>v,Ku:()=>J,LK:()=>re,LQ:()=>A,MB:()=>P,Mt:()=>Q,N3:()=>H,Nz:()=>x,Pd:()=>E,QM:()=>k,RY:()=>R,T5:()=>S,TJ:()=>T,U0:()=>ae,Xm:()=>te,YQ:()=>Z,Zv:()=>y,av:()=>j,bk:()=>b,bs:()=>Y,c4:()=>V,eh:()=>s,fY:()=>$,fr:()=>G,g5:()=>X,hh:()=>U,iD:()=>M,jQ:()=>F,jS:()=>N,jX:()=>B,jp:()=>W,k4:()=>O,l_:()=>L,ld:()=>I,lr:()=>ee,oK:()=>C,oU:()=>i,pg:()=>l,r0:()=>f,s2:()=>ne,tt:()=>h,wu:()=>a,zk:()=>K,zz:()=>g});var r=n(4557),o=n(6354);const i=1e4,a=3e4,s=1e3,l=1e6,c=1e9,u=1e12,d=1e3,f=60,p=60*f,h=24*p,m=7*h,g=1e6,v={Created:"grey",ResolveStateStorage:"lightgrey",Candidate:"lightgrey",BlockBlobStorage:"lightgrey",RebuildGraph:"yellow",Restored:"yellow",Discover:"orange",Lock:"lightblue",Dead:"black",Active:"lightgreen"},y={[o.e.OldTxProxy]:"P",[o.e.TxProxy]:"P",[o.e.BSController]:"BS",[o.e.Dummy]:"DY",[o.e.RTMRPartition]:"RP",[o.e.PersQueueReadBalancer]:"PB",[o.e.Cms]:"CM",[o.e.BlockStorePartition]:"BP",[o.e.BlockStoreVolume]:"BV",[o.e.Console]:"CN",[o.e.TenantSlotBroker]:"TB",[o.e.BlockStoreDiskRegistry]:"BDR"},b=e=>{var t;if(!e)return;const n=null===(t=e.match(/[A-Z]/g))||void 0===t?void 0:t.join("");return(e=>e in y)(e)?y[e]:n},w=["1 min","5 min","15 min"],_={green:5,yellow:4,orange:3,red:2,blue:1,grey:1},x=5,E="\u2014",S="Developer UI",k="Cluster",C="Database",O="theme",N="language",T="invertedDisks",I="saved_queries",A="asideHeaderCompact",P="queries_history",D="tune-columns-popup",R="binaryDataInPlainTextDisplay",j="auto-refresh-interval",M="caseSensitiveJsonSearch",L="default-size-result-pane",z="default-size-tenant-summary-pane",F="default-size-tenant-pane",B="default-is-tenant-summary-collapsed",U="default-is-tenant-common-info-collapsed",q="default-is-query-result-collapsed",$="default-cluster-tab",H={displayIndices:!1,stickyHead:r.Ay.MOVING,syncHeadOnResize:!0,dynamicRender:!0,highlightRows:!0},W={...H,stickyHead:"fixed",dynamicRender:!1},V="queryExecutionSettings",G="last_query_execution_settings",Z="querySettingsBannerLastClosed",K="last_used_query_action",Y="partitionsHiddenColumns",Q="saved_tenant_initial_tab",J="useBackendParamsForTables",X="enableNetworkTable",ee="useShowPlanToSvg",te="showDomainDatabase",ne="useClusterBalancerAsBacked",re="enableAutocomplete",oe="autocompleteOnEnter",ie="isHotKeysHelpHidden",ae="enable_tracing_for_all_requests"},86200:(e,t,n)=>{"use strict";n.d(t,{kc:()=>E,tC:()=>v,z3:()=>g,iM:()=>D,r6:()=>R,lr:()=>w,ZV:()=>N,Nd:()=>k,l9:()=>T,Pt:()=>I,j9:()=>S,vX:()=>C,ki:()=>O,Ey:()=>j,wI:()=>x,vN:()=>M,H7:()=>_,CR:()=>A,U9:()=>y});var r=n(14750),o=n(15619),i=n(76086),a=n(79685),s=n(41650);function l(e,t,n,r,o,i,a=!1){let l=t(Number(n),0),c=!0,u=0;(0,s.kf)(r)&&(l=t(Number(r),0),c=a,u=1);return[e({value:n,withSizeLabel:c,size:o||l,precision:u,delimiter:i}),e({value:r,size:o||l,delimiter:i})]}var c=n(82621);const u={thousand:{value:1e3,label:(0,c.A)("label_thousand")},million:{value:1e6,label:(0,c.A)("label_million")},billion:{value:1e9,label:(0,c.A)("label_billion")},trillion:{value:1e12,label:(0,c.A)("label_trillion")}},d=(e,t)=>{const n=10**t;let r="thousand";return e>u.thousand.value*n&&(r="thousand"),e>=u.million.value*n&&(r="million"),e>=u.billion.value*n&&(r="billion"),e>=u.trillion.value*n&&(r="trillion"),r},f=({value:e,size:t,withSizeLabel:n=!0,significantDigits:r=0,delimiter:o,...i})=>{if(!(0,s.kf)(e))return"";const a=Number(e),l=null!==t&&void 0!==t?t:d(a,r),c=(({value:e,size:t="thousand",precision:n=0})=>{const r=A(Number(e)/u[t].value,n);return N(r)})({value:a,size:l,...i});return n?((e,t,n=s.en)=>e+n+u[t].label)(c,l,o):c};var p=n(48372);const h=JSON.parse('{"format-cpu.cores":["core","cores","cores","cores"]}'),m=JSON.parse('{"format-cpu.cores":["\u044f\u0434\u0440\u043e","\u044f\u0434\u0440\u0430","\u044f\u0434\u0435\u0440","\u044f\u0434\u0435\u0440"]}'),g=((0,p.g4)("ydb-format-cpu",{ru:m,en:h}),e=>(0,s.kf)(e)?(0,a.p)(e).format("0 b"):""),v=e=>{const t=g(e);return t?t+"/s":""},y=e=>e?Object.values(e).join("-"):"",b=e=>{const t=Math.floor(e/i.tt),n=e%i.tt;return[t&&`${t}d`,(0,a.p)(n).format("00:00:00")].filter(Boolean).join(" ")},w=e=>e&&b(e/1e3);function _(e,t){let n=E(e,t);return n=n<0?0:n,b(n)}function x(e,t){let n=E(e,t);n=n<0?0:n;const r=b(n);return 0===n?r:"-"+r}function E(e,t=(new Date).getTime()){return(Number(t)-Number(e))/1e3}function S(e,t,n,r,i){return l(o.z,o.d,e,t,n,r,i)}function k(e,t,n,r,o){return l(f,d,e,t,n,r,o)}const C=(e,t)=>S(e,t,"gb"),O=(e,t)=>S(e,t,"tb"),N=e=>(0,s.kf)(e)?(0,a.p)(e).format("0,0.[00000]"):"",T=(e,t=2)=>{if(!(0,s.kf)(e))return"";const n=Number(e).toFixed(t);return(0,a.p)(n).format("0.[00]%")},I=e=>{const t=(e/i.Jg).toFixed(2);return`${N(t)} hours`},A=(e,t=0)=>{const n=Math.abs(Number(e));let[r]=String(n).split(".");return Number(n)<1&&(r=""),r.length>=t?Number(Number(e).toFixed(0)):Number(Number(e).toFixed(t-r.length))},P=e=>{const t=Number(e)/1e6;return A(t,3)},D=e=>{if(void 0!==e)return(0,a.p)(P(e)).format("0.[000]")},R=(e,t="")=>{var n;const o=null===(n=(0,r.bQ)(Number(e)))||void 0===n?void 0:n.format("YYYY-MM-DD HH:mm");return null!==o&&void 0!==o?o:t},j=(e,t="")=>{var n;const o=null===(n=(0,r.bQ)(e))||void 0===n?void 0:n.format("YYYY-MM-DD HH:mm:ss.SSS");return null!==o&&void 0!==o?o:t};function M(e){return void 0===e?"":"object"===typeof e?JSON.stringify(e):e.toString()}},31684:(e,t,n)=>{"use strict";n.d(t,{Kx:()=>s,Un:()=>i,Wg:()=>c,_t:()=>u,ar:()=>l,t1:()=>a});var r=n(58351),o=n(41650);function i(e=r.Hs){return e+"/internal"}function a(e=r.Hs){return e+"/monitoring"}const s=(e,t=r.Hs)=>{const n=/\/node\/\d+\/?$/g;return n.test(String(t))?String(t).replace(n,`/node/${e}`):`${null!==t&&void 0!==t?t:""}/node/${e}`},l=({nodeId:e,pDiskId:t,host:n})=>{const r="/actors/pdisks/pdisk"+(0,o.pY)(t);return s(e,n)+r},c=({nodeId:e,pDiskId:t,vDiskSlotId:n,host:r})=>{const i="/actors/vdisks/vdisk"+(0,o.pY)(t)+"_"+(0,o.pY)(n);return s(e,r)+i};function u(e,t,n="TabletID",o=r.Hs){return`${o}/tablets${t?`/${t}`:""}?${n}=${e}`}},90182:(e,t,n)=>{"use strict";n.d(t,{JN:()=>s.JN,Nt:()=>f,A5:()=>h,XS:()=>a.X,e4:()=>u,iK:()=>i.i,GY:()=>s.GY,YQ:()=>o.Y,N4:()=>r.N});var r=n(75022),o=n(51533),i=n(80967),a=n(95312),s=n(959),l=n(10755),c=n(92459);const u=()=>{const e=(0,l.zy)();return(0,c.mA)(e)};var d=n(76086);function f(){return(0,i.i)(d.av,0)}var p=n(59284);function h(e){const t=p.useRef(e);return p.useLayoutEffect((()=>{t.current=e}),[e]),p.useCallback(((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}},66781:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(59284);function o(e=600){const[t,n]=r.useState(!1),[o,i]=r.useState(0);r.useEffect((()=>{n(!1);const t=setTimeout((()=>{n(!0)}),e);return()=>{clearTimeout(t)}}),[e,o]);return[t,r.useCallback((()=>{i((e=>e+1))}),[])]}},95312:(e,t,n)=>{"use strict";n.d(t,{X:()=>l});var r=n(59284),o=n(67028),i=n(76086),a=n(11822),s=n(80967);const l=()=>{const e=(0,o.Oi)(),[t,n]=(0,s.i)(i.c4),l=a.dZ.parse(t),[c]=(0,s.i)(i.lr),u=r.useCallback((e=>{n({...e,statisticsMode:c?l.statisticsMode:e.statisticsMode})}),[n,c,l.statisticsMode]);return[{...l,statisticsMode:c?a.pE.full:l.statisticsMode,tracingLevel:e?l.tracingLevel:a.jU.tracingLevel},u]}},80967:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(59284),o=n(88610),i=n(51533),a=n(75022);const s=(e,t)=>{const n=(0,i.Y)();return[(0,a.N)((n=>{var r;return null!==(r=(0,o.CN)(n,e))&&void 0!==r?r:t})),r.useCallback((t=>{n((0,o.gc)(e,t))}),[n,e])]}},959:(e,t,n)=>{"use strict";n.d(t,{GY:()=>a,JD:()=>c,JN:()=>s});var r=n(59284),o=n(62060),i=n.n(o);function a({initialSortColumn:e,initialSortOrder:t=-1,fixedOrderType:n,multiple:o,onSort:a}){const[s,l]=r.useState((()=>{if(e)return[{columnId:e,order:n||t}]}));return[s,r.useCallback((e=>{if(!e||Array.isArray(e)&&!e.length)return void(n||(null===a||void 0===a||a(void 0),l(void 0)));let t=Array.isArray(e)?e:[e];n&&(t=t.map((e=>({columnId:e.columnId,order:n})))),o||(t=t.slice(0,1)),l((e=>t&&!i()(e,t)?(null===a||void 0===a||a(t),t):e))}),[n,o,a])]}function s(e=[],t){const n=e.map((e=>({columnId:t(e.columnId),order:e.order}))).filter((e=>Boolean(e.columnId)));if(n.length)return n}function l({columnId:e,order:t}){return`${e} ${-1===t?"DESC":"ASC"}`}function c(e){return e?`ORDER BY ${e.map(l).join(", ")}`:""}},51533:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});const r=n(97434).wA},75022:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=n(97434).d4},48372:(e,t,n)=>{"use strict";n.d(t,{JA:()=>r,oK:()=>l,Ru:()=>u,g4:()=>d});var r,o=n(1448),i=n(3357),a=n(59001),s=n(76086);!function(e){e.En="en",e.Ru="ru"}(r||(r={}));const l=r.En,c=a.f.readUserSettingsValue(s.jS,l),u=new o.TH({lang:c,fallbackLang:r.En});function d(e,t){for(const n of Object.keys(t))u.registerKeyset(n,e,t[n]);return u.keyset(e)}(0,i.jK)({lang:c})},7435:(e,t,n)=>{"use strict";n.d(t,{_e:()=>r,f8:()=>o,uk:()=>i});const r=e=>[...Array(e).keys()];function o(e){return null!==e&&void 0!==e}async function i(e,t){return new Promise((n=>{setTimeout((()=>n(t)),e)}))}},99006:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(59284),o=n(74417),i=n(34271),a=n(88632),s=n(60712);function l(e,t,n){const o=r.lazy((()=>e().then((e=>({default:e[t]}))).catch((e=>({default:()=>(0,s.jsx)(a.jt,{error:e})}))))),l=(e,t)=>{const a=(0,i.x)("ErrorBoundary");return(0,s.jsx)(a,{children:(0,s.jsx)(r.Suspense,{fallback:null!==n&&void 0!==n?n:(0,s.jsx)(c,{}),children:(0,s.jsx)(o,{ref:t,...e})})})};return l.displayName=t,r.forwardRef(l)}function c(){return(0,s.jsx)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(o.a,{size:"l"})})}},78034:(e,t,n)=>{"use strict";n.d(t,{AB:()=>m,Bm:()=>u,DG:()=>d,Fo:()=>g,X7:()=>f,cW:()=>c,pl:()=>p,q1:()=>h});var r=n(370),o=n(88610),i=n(54090),a=n(76086),s=n(86200),l=n(7435);let c;!function(e){e.All="All",e.SmallUptime="SmallUptime"}(c||(c={}));const u=r.z.nativeEnum(c).catch(c.All),d={[c.All]:"All",[c.SmallUptime]:"Uptime < 1h"},f=e=>!e.SystemState||e.SystemState===i.m.Grey,p=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>(t.Id&&t.Host&&e.set(Number(t.Id),t.Host),e)),new Map);function h(e={}){var t,n,r,o,i,a;const c=(null===(t=e.Location)||void 0===t?void 0:t.Rack)||e.Rack,u=(null===(n=e.Location)||void 0===n?void 0:n.DataCenter)||e.DataCenter,d=null===e||void 0===e||null===(r=e.Tenants)||void 0===r?void 0:r[0];let f;f=e.DisconnectTime?(0,s.wI)(e.DisconnectTime):(0,s.H7)(e.StartTime);const p=function(e={}){const{LoadAverage:t,NumberOfCpus:n}=e;if((0,l.f8)(t)&&(0,l.f8)(n))return t.map((e=>100*e/n))}(e),h=Number(null===(o=e.SharedCacheStats)||void 0===o?void 0:o.LimitBytes)||void 0,m=(0,l.f8)(null===(i=e.SharedCacheStats)||void 0===i?void 0:i.UsedBytes)?Number(null===(a=e.SharedCacheStats)||void 0===a?void 0:a.UsedBytes):void 0;return{...e,Rack:c,DC:u,Uptime:f,LoadAveragePercents:p,TenantName:d,SharedCacheLimit:h,SharedCacheUsed:m}}const m=e=>e===o.s$.PROBLEMS,g=e=>e===c.SmallUptime?a.Jg:void 0},79685:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(7139),o=n.n(r),i=(n(97650),n(48372)),a=n(41650);Object.values(i.JA).forEach((e=>{o().locales[e]&&(o().locales[e].delimiters.thousands=a.en)})),o().locale(i.Ru.lang);const s=o()},69446:(e,t,n)=>{"use strict";n.d(t,{M6:()=>o,PG:()=>r,Zd:()=>i});const r=e=>e.replace(/\/viewer\/json/,""),o=e=>{const t=r((e=>e.replace(/http[s]?:\/\//,""))(e)),n=t.split("/");if(1===n.length)return{balancer:n[0],proxy:void 0};const o=n[0];return{balancer:t.replace(o+"/",""),proxy:o}},i=e=>o(e).balancer.replace(/:\d+$/,"")},77630:(e,t,n)=>{"use strict";n.d(t,{De:()=>i,Vk:()=>a});var r=n(69446);const o="https://",i=(e,t)=>{const n=null!==(i=e)&&void 0!==i&&i.startsWith("vm-")?`u-${i}`:i;var i;const a=(0,r.M6)(t).proxy;return a?o+a+"/"+n:o+n},a=(e,t,n)=>{const{Host:o,Endpoints:a,NodeId:s}=e;if(n&&s){return`${(0,r.PG)(t)}/node/${s}`}if(o&&a){var l;const e=null===(l=a.find((e=>"http-mon"===e.Name)))||void 0===l?void 0:l.Address;if(!e||!o)return null;return i(o+e,t)}return null}},11822:(e,t,n)=>{"use strict";n.d(t,{jU:()=>k,x5:()=>f,ei:()=>p,om:()=>h,pE:()=>l,Pn:()=>c,PB:()=>u,PX:()=>d,Wg:()=>a,_d:()=>s,nh:()=>m,We:()=>b,fW:()=>w,KH:()=>E,Cb:()=>S,UF:()=>_,vi:()=>x,dZ:()=>A,id:()=>I});var r=n(370);let o;!function(e){e.Bool="Bool",e.Int8="Int8",e.Int16="Int16",e.Int32="Int32",e.Int64="Int64",e.Uint8="Uint8",e.Uint16="Uint16",e.Uint32="Uint32",e.Uint64="Uint64",e.Float="Float",e.Double="Double",e.Decimal="Decimal",e.String="String",e.Utf8="Utf8",e.Json="Json",e.JsonDocument="JsonDocument",e.Yson="Yson",e.Uuid="Uuid",e.Date="Date",e.Datetime="Datetime",e.Timestamp="Timestamp",e.Interval="Interval",e.TzDate="TzDate",e.TzDateTime="TzDateTime",e.TzTimestamp="TzTimestamp"}(o||(o={}));var i=n(81288);const a={serializable:"serializable-read-write",stalero:"stale-read-only",onlinero:"online-read-only",snapshot:"snapshot-read-only",implicit:"implicit"},s={[a.serializable]:"Serializable",[a.stalero]:"Stale Read-Only",[a.onlinero]:"Online Read-Only",[a.snapshot]:"Snapshot Read-Only",[a.implicit]:"Implicit"},l={none:"none",basic:"basic",full:"full",profile:"profile"},c={[l.none]:"None",[l.full]:"Full",[l.basic]:"Basic",[l.profile]:"Profile"},u={off:"off",toplevel:"toplevel",basic:"basic",detailed:"detailed",diagnostic:"diagnostic",trace:"trace"},d={[u.off]:"Off",[u.toplevel]:"TopLevel",[u.basic]:"Basic",[u.detailed]:"Detailed",[u.diagnostic]:"Diagnostic",[u.trace]:"Trace"},f={execute:"execute",explain:"explain"},p={scan:"scan",script:"script",data:"data",query:"query",pg:"pg"},h={scan:"Scan",script:"YQL Script",data:"Data",query:"YQL - QueryService",pg:"PostgreSQL"},m=e=>{switch(e.replace(/\?$/,"")){case o.Bool:return"boolean";case o.Int8:case o.Int16:case o.Int32:case o.Int64:case o.Uint8:case o.Uint16:case o.Uint32:case o.Uint64:case o.Float:case o.Double:case o.Decimal:return"number";case o.String:case o.Utf8:case o.Json:case o.JsonDocument:case o.Yson:case o.Uuid:return"string";case o.Date:case o.Datetime:case o.Timestamp:case o.Interval:case o.TzDate:case o.TzDateTime:case o.TzTimestamp:return"date";default:return}},g=e=>{const{result:t,...n}=e;return{resultSets:null===t||void 0===t?void 0:t.map((e=>{const{rows:t,columns:n,truncated:r}=e;let o;return n&&(o=[]),t&&n&&(o=((e,t)=>e.map((e=>e.reduce(((e,n,r)=>{const{name:o}=t[r];return e[o]=n,e}),{}))))(t,n)),{columns:n,result:o,truncated:r}})),...n}},v=e=>Boolean(e&&!Array.isArray(e)&&"result"in e&&Array.isArray(e.result)&&"object"===typeof e.result[0]&&"rows"in e.result[0]&&"columns"in e.result[0]),y=e=>Boolean(!e||"object"!==typeof e||Array.isArray(e)||"result"in e&&!Array.isArray(e.result));function b(e){return Boolean(e&&"object"===typeof e&&"error"in e&&"issues"in e)}function w(e){return y(e)?{}:v(e)?g(e):e}const _=e=>(e=>Boolean(e&&"queries"in e))(e)?e.queries&&e.queries.length?{Plan:e.queries[0].Plan,tables:e.queries[0].tables,meta:e.meta,SimplifiedPlan:e.queries[0].SimplifiedPlan}:{meta:e.meta}:e,x=e=>Array.isArray(e)?e.map((e=>{const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=typeof e[n];null!==e[n]&&"object"===r||"boolean"===r||Array.isArray(e[n])?t[n]=JSON.stringify(e[n]):t[n]=e[n]}return t})):[],E=e=>"string"===typeof e||b(e)?e:(0,i.TX)(e)?e.message:(0,i.qP)(e)?"data"in e&&b(e.data)?e.data:e.statusText:void 0,S=e=>{var t;const n=E(e);return"string"===typeof n?n:null===n||void 0===n||null===(t=n.error)||void 0===t?void 0:t.message},k={queryMode:p.query,transactionMode:a.implicit,timeout:60,limitRows:1e4,statisticsMode:l.none,tracingLevel:u.off},C=r.z.nativeEnum(p),O=r.z.nativeEnum(a),N=r.z.nativeEnum(l),T=r.z.nativeEnum(u),I=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().or(r.z.undefined())),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e5).or(r.z.undefined())),queryMode:C,transactionMode:O,statisticsMode:N,tracingLevel:T}),A=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().optional().catch(k.timeout)),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e5).optional().catch(k.limitRows)),queryMode:C.catch(k.queryMode),transactionMode:O.catch(k.transactionMode),statisticsMode:N.catch(k.statisticsMode),tracingLevel:T.catch(k.tracingLevel)}).catch(k)},81288:(e,t,n)=>{"use strict";n.d(t,{F0:()=>i,TX:()=>r,qP:()=>o});const r=e=>Boolean(e&&"object"===typeof e&&"message"in e&&"Network Error"===e.message),o=e=>Boolean(e&&"object"===typeof e&&"status"in e);function i(e){return Boolean(e&&"object"===typeof e&&"name"in e&&"AxiosError"===e.name)}},73891:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>c,Xo:()=>u,i6:()=>h,ee:()=>f,MC:()=>m,Jc:()=>g});var r=n(76086),o=n(86200),i=n(48372);const a=JSON.parse('{"daysHours":"{{days}}\xa0d\xa0{{hours}}\xa0h","hoursMin":"{{hours}}\xa0h\xa0{{minutes}}\xa0m","minSec":"{{minutes}}\xa0m\xa0{{seconds}}\xa0s","secMs":"{{seconds}}\xa0s\xa0{{ms}}\xa0ms","days":"{{days}}\xa0d","hours":"{{hours}}\xa0h","min":"{{minutes}}\xa0m","sec":"{{seconds}}\xa0s","ms":"{{ms}}\xa0ms"}'),s=JSON.parse('{"daysHours":"{{days}}\xa0\u0434\xa0{{hours}}\xa0\u0447","hoursMin":"{{hours}}\xa0\u0447\xa0{{minutes}}\xa0\u043c","minSec":"{{minutes}}\xa0\u043c\xa0{{seconds}}\xa0\u0441","secMs":"{{seconds}}\xa0\u0441\xa0{{ms}}\xa0\u043c\u0441","days":"{{days}}\xa0\u0434","hours":"{{hours}}\xa0\u0447","min":"{{minutes}}\xa0\u043c","sec":"{{seconds}}\xa0\u0441","ms":"{{ms}}\xa0\u043c\u0441"}'),l=(0,i.g4)("ydb-time-parsers",{ru:s,en:a}),c=(e,t=2)=>{const n=e%1e3;let o=Math.floor(e/1e3);const i=Math.floor(o/r.tt);o%=r.tt;const a=Math.floor(o/r.Jg);o%=r.Jg;const s=Math.floor(o/60);o%=60;const c=o,u={days:i,hours:a,minutes:s,seconds:c,ms:n};if(2===t){if(i>0)return l("daysHours",u);if(a>0)return l("hoursMin",u);if(s>0)return l("minSec",u);if(c>0)return l("secMs",u)}if(1===t){if(i>0)return l("days",u);if(a>0)return l("hours",u);if(s>0)return l("min",u);if(c>0)return l("sec",u)}return l("ms",u)},u=e=>l("ms",{ms:(0,o.ZV)(e)}),d=e=>(e.seconds?1e3*Number(e.seconds):0)+(e.nanos?e.nanos/r.zz:0),f=e=>"string"===typeof e?Date.parse(e):d(e);var p=n(41650);const h=e=>e?(e=>"string"===typeof e?1e3*parseInt(e,10):d(e))(e):0,m=e=>{if(!e)return 0;const t=Date.now()-f(e);return t<0?0:t},g=(e,t=0)=>e&&(0,p.kf)(e)?(0,o.CR)(Number(e)/1e3,t):0},41650:(e,t,n)=>{"use strict";function r(e){if(e)try{return JSON.parse(e)}catch(t){return e}}n.d(t,{O4:()=>a,en:()=>d,kf:()=>c,pY:()=>l,qF:()=>r,wb:()=>s,z0:()=>u});const o=[" B"," KB"," MB"," GB"," TB"," PB"," EB"],i=1e3;function a(e){const t=function(e){const t=Number(e);if(isNaN(t))return"";const n=t/i**2;return n<10?n.toFixed(2)+o[2]:n<100?n.toFixed(1)+o[2]:n.toFixed()+o[2]}(e);return`${t}${t?"ps":""}`}function s(e,t){const n=Number(e);if(isNaN(n))return"N/A";const r=n/1e9;return t?r.toFixed()+o[3]:r<10?r.toFixed(2)+o[3]:r<100?r.toFixed(1)+o[3]:r.toFixed()+o[3]}function l(e){const t=String(e);let n=t;for(let r=t.length;r<9;r++)n="0"+n;return n}function c(e){return"number"===typeof e?!isNaN(e):"string"===typeof e&&(!isNaN(Number(e))&&!isNaN(parseFloat(e)))}function u(e,t){return Number(e).toExponential(t)}const d="\xa0"},66592:(e,t,n)=>{"use strict";n.d(t,{OT:()=>a,_n:()=>s,lm:()=>i,s5:()=>o});var r=n(38596);const o=e=>e.split("").reduce(((e,t)=>{const n=(e<<5)-e+t.charCodeAt(0);return 0|n}),0),i=["#008000","#4169e1","#ffd700","#ff8c00","#808000","#e9967a","#ff1493","#00bfff","#da70d6","#8b4513","#b22222"],a="#3cb371",s=(e=[])=>(e=>{const t=Array.from(e.keys()).map((e=>({version:e,hash:o(e)}))),n=new Map;let r=i.length-1;return t.sort(((e,t)=>e.hash-t.hash)).forEach((t=>{if(/^(\w+-)?stable/.test(t.version)){r=(r+1)%i.length,n.set(t.version,i[r]);const a=Array.from(e.get(t.version)||[]).filter((e=>e!==t.version)).map((e=>({version:e,hash:o(e)}))),s=a.length;a.sort(((e,t)=>t.hash-e.hash)).forEach(((e,t)=>{const o=i[r],a=Math.max(100-t*(100/s),20),l=`${o}${Math.round(255*a/100).toString(16)}`;n.set(e.version,l)}))}else n.set(t.version,a)})),n})(((e,t=new Map)=>(e.forEach((e=>{var n;const o=(0,r.Q)(e),i=(0,r.U)(e);t.has(o)||t.set(o,new Set),null===(n=t.get(o))||void 0===n||n.add(i)})),t))(e))},38596:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o,U:()=>r});const r=e=>{let t=e;/\d{1,}-\d{1,}(-\d){0,}(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/.test(e)&&(t=t.replace(/(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/,""));return/\d{1,}-\d{1,}-\d{1,}-\d{1,}$/.test(e)&&(t=t.replace(/-\d{1,}$/,"")),t},o=e=>{const t=r(e);return/\d{1,}-\d{1,}-\d{1,}/.test(t)?t.replace(/-\d{1,}$/,""):t}},31560:(e,t)=>{"use strict";function n(e){function t(t,o,i,a){var s=o?n+t+e.e+o:n+t,l=s;if(i){var c=" "+l+e.m;for(var u in i)if(i.hasOwnProperty(u)){var d=i[u];!0===d?l+=c+u:d&&(l+=c+u+r+d)}}if(void 0!==a)for(var f=0,p=(a=Array.isArray(a)?a:[a]).length;f<p;f++){var h=a[f];if(h&&"string"==typeof h.valueOf())for(var m=h.valueOf().split(" "),g=0;g<m.length;g++){var v=m[g];v!==s&&(l+=" "+v)}}return l}var n=e.n||"",r=e.v||e.m;return function(e,n){return function(r,o,i){return"string"==typeof r?"string"==typeof o||Array.isArray(o)?t(e,r,void 0,o):t(e,r,o,i):t(e,n,r,o)}}}n({e:"-",m:"_"}),t.withNaming=n},82435:(e,t,n)=>{"use strict";e.exports=n(31560)},16332:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>I,Kq:()=>O,hS:()=>x,kz:()=>S,vt:()=>E});var r=n(59284),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},a=Symbol("NiceModalId"),s={},l=r.createContext(s),c=r.createContext(null),u={},d={},f=0,p=function(){throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},h=function(){return"_nice_modal_"+f++},m=function(e,t){var n,r,i;switch(void 0===e&&(e=s),t.type){case"nice-modal/show":var a=t.payload,l=a.modalId,c=a.args;return o(o({},e),((n={})[l]=o(o({},e[l]),{id:l,args:c,visible:!!d[l],delayVisible:!d[l]}),n));case"nice-modal/hide":return e[l=t.payload.modalId]?o(o({},e),((r={})[l]=o(o({},e[l]),{visible:!1}),r)):e;case"nice-modal/remove":l=t.payload.modalId;var u=o({},e);return delete u[l],u;case"nice-modal/set-flags":var f=t.payload,p=(l=f.modalId,f.flags);return o(o({},e),((i={})[l]=o(o({},e[l]),p),i));default:return e}};var g={},v={},y=function(e){return"string"===typeof e?e:(e[a]||(e[a]=h()),e[a])};function b(e,t){var n=y(e);if("string"===typeof e||u[n]||S(n,e),p(function(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}(n,t)),!g[n]){var r,o,i=new Promise((function(e,t){r=e,o=t}));g[n]={resolve:r,reject:o,promise:i}}return g[n].promise}function w(e){var t=y(e);if(p(function(e){return{type:"nice-modal/hide",payload:{modalId:e}}}(t)),delete g[t],!v[t]){var n,r,o=new Promise((function(e,t){n=e,r=t}));v[t]={resolve:n,reject:r,promise:o}}return v[t].promise}var _=function(e){var t=y(e);p(function(e){return{type:"nice-modal/remove",payload:{modalId:e}}}(t)),delete g[t],delete v[t]};function x(e,t){var n=(0,r.useContext)(l),o=(0,r.useContext)(c),i=null,a=e&&"string"!==typeof e;if(!(i=e?y(e):o))throw new Error("No modal id found in NiceModal.useModal.");var s=i;(0,r.useEffect)((function(){a&&!u[s]&&S(s,e,t)}),[a,s,e,t]);var d=n[s],f=(0,r.useCallback)((function(e){return b(s,e)}),[s]),p=(0,r.useCallback)((function(){return w(s)}),[s]),h=(0,r.useCallback)((function(){return _(s)}),[s]),m=(0,r.useCallback)((function(e){var t;null===(t=g[s])||void 0===t||t.resolve(e),delete g[s]}),[s]),x=(0,r.useCallback)((function(e){var t;null===(t=g[s])||void 0===t||t.reject(e),delete g[s]}),[s]),E=(0,r.useCallback)((function(e){var t;null===(t=v[s])||void 0===t||t.resolve(e),delete v[s]}),[s]);return(0,r.useMemo)((function(){return{id:s,args:null===d||void 0===d?void 0:d.args,visible:!!(null===d||void 0===d?void 0:d.visible),keepMounted:!!(null===d||void 0===d?void 0:d.keepMounted),show:f,hide:p,remove:h,resolve:m,reject:x,resolveHide:E}}),[s,null===d||void 0===d?void 0:d.args,null===d||void 0===d?void 0:d.visible,null===d||void 0===d?void 0:d.keepMounted,f,p,h,m,x,E])}var E=function(e){return function(t){var n,a=t.defaultVisible,s=t.keepMounted,u=t.id,f=i(t,["defaultVisible","keepMounted","id"]),h=x(u),m=h.args,g=h.show,v=(0,r.useContext)(l),y=!!v[u];(0,r.useEffect)((function(){return a&&g(),d[u]=!0,function(){delete d[u]}}),[u,g,a]),(0,r.useEffect)((function(){s&&p(function(e,t){return{type:"nice-modal/set-flags",payload:{modalId:e,flags:t}}}(u,{keepMounted:!0}))}),[u,s]);var b=null===(n=v[u])||void 0===n?void 0:n.delayVisible;return(0,r.useEffect)((function(){b&&g(m)}),[b,m,g]),y?r.createElement(c.Provider,{value:u},r.createElement(e,o({},f,m))):null}},S=function(e,t,n){u[e]?u[e].props=n:u[e]={comp:t,props:n}},k=function(){var e=(0,r.useContext)(l),t=Object.keys(e).filter((function(t){return!!e[t]}));t.forEach((function(e){u[e]||d[e]||console.warn("No modal found for id: "+e+". Please check the id or if it is registered or declared via JSX.")}));var n=t.filter((function(e){return u[e]})).map((function(e){return o({id:e},u[e])}));return r.createElement(r.Fragment,null,n.map((function(e){return r.createElement(e.comp,o({key:e.id,id:e.id},e.props))})))},C=function(e){var t=e.children,n=(0,r.useReducer)(m,s),o=n[0];return p=n[1],r.createElement(l.Provider,{value:o},t,r.createElement(k,null))},O=function(e){var t=e.children,n=e.dispatch,o=e.modals;return n&&o?(p=n,r.createElement(l.Provider,{value:o},t,r.createElement(k,null))):r.createElement(C,null,t)},N=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},T=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}};const I={Provider:O,ModalDef:function(e){var t=e.id,n=e.component;return(0,r.useEffect)((function(){return S(t,n),function(){!function(e){delete u[e]}(t)}}),[t,n]),null},ModalHolder:function(e){var t,n=e.modal,a=e.handler,s=void 0===a?{}:a,l=i(e,["modal","handler"]),c=(0,r.useMemo)((function(){return h()}),[]),d="string"===typeof n?null===(t=u[n])||void 0===t?void 0:t.comp:n;if(!s)throw new Error("No handler found in NiceModal.ModalHolder.");if(!d)throw new Error("No modal found for id: "+n+" in NiceModal.ModalHolder.");return s.show=(0,r.useCallback)((function(e){return b(c,e)}),[c]),s.hide=(0,r.useCallback)((function(){return w(c)}),[c]),r.createElement(d,o({id:c},l))},NiceModalContext:l,create:E,register:S,getModal:function(e){var t;return null===(t=u[e])||void 0===t?void 0:t.comp},show:b,hide:w,remove:_,useModal:x,reducer:m,antdModal:N,antdDrawer:T,muiDialog:function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},bootstrapDialog:function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}}}},22551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STRICT=void 0,t.STRICT=!0},95197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML5_INPUT_FORMATS=t.englishFormats=t.INVALID_DATE_STRING=t.DEFAULT_SYSTEM_DATE_FORMAT=void 0,t.DEFAULT_SYSTEM_DATE_FORMAT="YYYY-MM-DD",t.INVALID_DATE_STRING="Invalid Date",t.englishFormats={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t.HTML5_INPUT_FORMATS={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"}},72328:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(22551),t),o(n(95197),t),o(n(71165),t)},71165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UtcTimeZone=void 0,t.UtcTimeZone="UTC"},40453:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimeUtc=t.dateTime=t.isDateTime=void 0;var i=n(72328),a=o(n(38960)),s=n(62391),l=n(77966),c=n(84080),u=n(13064),d=n(29863),f=n(6597),p=n(16244),h=Symbol("isDateTime"),m=function(){function e(e){this._weekInfo=null,this[h]=!0,this._timestamp=e.ts,this._locale=e.locale,this._timeZone=e.timeZone,this._offset=e.offset,this._c=(0,u.tsToObject)(e.ts,e.offset),this._localeData=e.localeData,this._isValid=e.isValid}return e.isDateTime=function(e){return"object"===typeof e&&e&&h in e&&!0===e[h]||!1},e.prototype.format=function(e){return this.isValid()?void 0===e&&0===this._offset?this.format("YYYY-MM-DDTHH:mm:ss[Z]"):(0,d.formatDate)(this,e,this._localeData):this._localeData.invalidDate||i.INVALID_DATE_STRING},e.prototype.toISOString=function(e){return e?new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",this.format("Z")):this.toDate().toISOString()},e.prototype.utcOffset=function(e,t){var n=void 0!==e&&null!==e;if(!this.isValid())return n?this:NaN;if(n){var r=void 0;if("string"===typeof e){if(null===(r=(0,u.offsetFromString)(e)))return this}else r=Math.abs(e)<16?60*e:e;var o=this.valueOf();return t&&(o-=60*(r-this._offset)*1e3),y({ts:o,timeZone:i.UtcTimeZone,offset:r,locale:this._locale})}return this._offset},e.prototype.timeZone=function(e,t){var n;if(void 0===e)return"system"===this._timeZone?(0,c.guessUserTimeZone)():this._timeZone;if(!this.isValid())return this;var r=(0,c.normalizeTimeZone)(e,l.settings.getDefaultTimeZone()),o=this.valueOf(),i=(0,c.timeZoneOffset)(r,o);return t&&(o+=60*this._offset*1e3,o=(n=(0,c.fixOffset)(o,i,r))[0],i=n[1]),y({ts:o,timeZone:r,offset:i,locale:this._locale})},e.prototype.add=function(e,t){return this.addSubtract(e,t,1)},e.prototype.subtract=function(e,t){return this.addSubtract(e,t,-1)},e.prototype.startOf=function(e){if(!this.isValid())return this;var t={},n=(0,u.normalizeComponent)(e);switch(n){case"year":case"quarter":t.month="quarter"===n?this.month()-this.month()%3:0;case"month":case"weekNumber":case"isoWeekNumber":t.date="weekNumber"===n?this.date()-this.weekday():"isoWeekNumber"===n?this.date()-(this.isoWeekday()-1):1;case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":t.hour=0;case"hour":t.minute=0;case"minute":t.second=0;case"second":t.millisecond=0}return this.set(t)},e.prototype.endOf=function(e){var t;if(!this.isValid())return this;var n={},r=(0,u.normalizeComponent)(e);switch(r){case"year":case"quarter":n.month="quarter"===r?this.month()-this.month()%3+2:11;case"month":case"weekNumber":case"isoWeekNumber":n.date="weekNumber"===r?this.date()-this.weekday()+6:"isoWeekNumber"===r?this.date()-(this.isoWeekday()-1)+6:(0,u.daysInMonth)(this.year(),null!==(t=n.month)&&void 0!==t?t:this.month());case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":n.hour=23;case"hour":n.minute=59;case"minute":n.second=59;case"second":n.millisecond=999}return this.set(n)},e.prototype.local=function(e){return this.timeZone("system",e)},e.prototype.valueOf=function(){return this.isValid()?this._timestamp:NaN},e.prototype.isSame=function(e,t){var n=b(e,"system")[0];return!(!this.isValid()||isNaN(n))&&(!this.isBefore(n,t)&&!this.isAfter(n,t))},e.prototype.isBefore=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.endOf(r).valueOf())<n},e.prototype.isAfter=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.startOf(r).valueOf())>n},e.prototype.isValid=function(){return this._isValid},e.prototype.diff=function(t,n,r){if(!this.isValid())return NaN;var o=e.isDateTime(t)?t.timeZone(this._timeZone):y({ts:b(t,"system")[0],timeZone:this._timeZone,locale:this._locale,offset:this._offset});if(!o.isValid())return NaN;var i=(0,u.normalizeDurationUnit)(n||"millisecond"),a=6e4*(o.utcOffset()-this.utcOffset()),s=0;switch(i){case"years":s=(0,u.monthDiff)(this,o)/12;break;case"quarters":s=(0,u.monthDiff)(this,o)/3;break;case"months":s=(0,u.monthDiff)(this,o);break;case"weeks":s=(this.valueOf()-o.valueOf()-a)/6048e5;break;case"days":s=(this.valueOf()-o.valueOf()-a)/864e5;break;case"hours":s=(this.valueOf()-o.valueOf())/36e5;break;case"minutes":s=(this.valueOf()-o.valueOf())/6e4;break;case"seconds":s=(this.valueOf()-o.valueOf())/1e3;break;default:s=this.valueOf()-o.valueOf()}return r?s:Math.floor(Math.abs(s))*Math.sign(s)||0},e.prototype.fromNow=function(e){return this.from(_({timeZone:this._timeZone,lang:this._locale}),e)},e.prototype.from=function(e,t){return this.isValid()?(0,p.fromTo)(this,e,this._localeData.relativeTime,t,!0):this._localeData.invalidDate||i.INVALID_DATE_STRING},e.prototype.locale=function(e){return e?this.isValid()?y({ts:this.valueOf(),timeZone:this._timeZone,offset:this._offset,locale:a.default.locale(e,void 0,!0)}):this:this._locale},e.prototype.toDate=function(){return new Date(this.valueOf())},e.prototype.unix=function(){return this.isValid()?Math.floor(this.valueOf()/1e3):NaN},e.prototype.utc=function(e){return this.timeZone(i.UtcTimeZone,e)},e.prototype.daysInMonth=function(){return this.isValid()?(0,u.daysInMonth)(this._c.year,this._c.month):NaN},e.prototype.set=function(e,t){var n,o;if(!this.isValid())return this;var a,s=this._c,l=(0,u.normalizeDateComponents)("object"===typeof e?e:((n={})[e]=t,n),u.normalizeComponent),d=void 0!==l.day||void 0!==l.weekNumber||void 0!==l.weekYear||void 0!==l.isoWeekNumber||void 0!==l.weekday||void 0!==l.isoWeekday||void 0!==l.isoWeekYear,f=void 0!==l.dayOfYear,p=void 0!==l.year,h=void 0!==l.month||void 0!==l.date;if(d&&(p||h||f))throw new Error("Can't mix weekYear/weekNumber units with year/month/day");if(f&&h)throw new Error("Can't mix day of year with month/day");if(d){var m=l.weekday,v=l.weekNumber,b=l.weekYear,w=l.isoWeekday,_=l.isoWeekNumber,x=l.isoWeekYear,E=l.day,S=void 0!==m||void 0!==v||void 0!==b;if(S&&(void 0!==w||void 0!==_||void 0!==x||void 0!==E))throw new Error("Can't mix local week with ISO week");var k=this.weekInfo();if(S){var C=g(this._localeData),O=C.minDaysInFirstWeek,N=C.startOfWeek,T={weekday:(null!==m&&void 0!==m?m:k.weekday)+1,weekNumber:null!==v&&void 0!==v?v:k.weekNumber,weekYear:null!==b&&void 0!==b?b:k.weekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,O,N))}else{T={weekday:null!==w&&void 0!==w?w:void 0===E?k.isoWeekday:E||7,weekNumber:null!==_&&void 0!==_?_:k.isoWeekNumber,weekYear:null!==x&&void 0!==x?x:k.isoWeekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,4,1))}}else f?a=r(r(r({},s),l),(0,u.uncomputeOrdinal)(r(r({ordinal:this.dayOfYear()},s),l))):(a=r(r({},s),l),void 0===l.date&&(a.date=Math.min((0,u.daysInMonth)(a.year,a.month),a.date)));var I=(0,u.objToTS)(a),A=this._offset;return this._timeZone===i.UtcTimeZone?I-=60*A*1e3:(I=(o=(0,c.fixOffset)(I,A,this._timeZone))[0],A=o[1]),y({ts:I,timeZone:this._timeZone,offset:A,locale:this._locale})},e.prototype.date=function(e){return"number"===typeof e?this.set("date",e):this.isValid()?this._c.date:NaN},e.prototype.month=function(e){return"number"===typeof e?this.set("month",e):this.isValid()?this._c.month:NaN},e.prototype.quarter=function(e){return"number"===typeof e?this.set("quarter",e):this.isValid()?Math.ceil((this._c.month+1)/3):NaN},e.prototype.year=function(e){return"number"===typeof e?this.set("year",e):this.isValid()?this._c.year:NaN},e.prototype.day=function(e){return"number"===typeof e?this.set("day",e):this.isValid()?this.weekInfo().day:NaN},e.prototype.isoWeekday=function(e){return"number"===typeof e?this.set("isoWeekday",e):this.isValid()?this.weekInfo().isoWeekday:NaN},e.prototype.hour=function(e){return"number"===typeof e?this.set("hour",e):this.isValid()?this._c.hour:NaN},e.prototype.minute=function(e){return"number"===typeof e?this.set("minute",e):this.isValid()?this._c.minute:NaN},e.prototype.second=function(e){return"number"===typeof e?this.set("second",e):this.isValid()?this._c.second:NaN},e.prototype.millisecond=function(e){return"number"===typeof e?this.set("millisecond",e):this.isValid()?this._c.millisecond:NaN},e.prototype.week=function(e){return"number"===typeof e?this.set("week",e):this.isValid()?this.weekInfo().weekNumber:NaN},e.prototype.weekYear=function(e){return"number"===typeof e?this.set("weekYear",e):this.isValid()?this.weekInfo().weekYear:NaN},e.prototype.weeksInYear=function(){var e=g(this._localeData),t=e.minDaysInFirstWeek,n=e.startOfWeek;return this.isValid()?(0,u.weeksInWeekYear)(this.year(),t,n):NaN},e.prototype.isoWeek=function(e){return"number"===typeof e?this.set("isoWeek",e):this.isValid()?this.weekInfo().isoWeekNumber:NaN},e.prototype.isoWeekYear=function(e){return"number"===typeof e?this.set("isoWeekYear",e):this.isValid()?this.weekInfo().isoWeekYear:NaN},e.prototype.isoWeeksInYear=function(){return this.isValid()?(0,u.weeksInWeekYear)(this.year(),4,1):NaN},e.prototype.weekday=function(e){return"number"===typeof e?this.set("weekday",e):this.isValid()?this.weekInfo().weekday:NaN},e.prototype.dayOfYear=function(e){return"number"===typeof e?this.set("dayOfYear",e):this.isValid()?(0,u.computeOrdinal)(this._c):NaN},e.prototype.toString=function(){return this.isValid()?this.toDate().toUTCString():this._localeData.invalidDate||i.INVALID_DATE_STRING},e.prototype.toJSON=function(){return this.isValid()?this.toISOString():null},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.isValid()?"DateTime { ts: ".concat(this.toISOString(),", zone: ").concat(this.timeZone(),", offset: ").concat(this.utcOffset(),", locale: ").concat(this.locale()," }"):"DateTime { ".concat(i.INVALID_DATE_STRING," }")},e.prototype.addSubtract=function(e,t,n){var o;if(!this.isValid())return this;var a=this._timeZone,l=this.valueOf(),d=this._offset,f=(0,s.duration)(e,t),p=(0,u.tsToObject)(l,d),h=v(f.months()+3*f.quarters()+12*f.years()),m=v(f.days()+7*f.weeks()),g=f.milliseconds()+1e3*f.seconds()+60*f.minutes()*1e3+60*f.hours()*60*1e3;if(h||m){var b=p.month+n*h,w=Math.min(p.date,(0,u.daysInMonth)(p.year,b))+n*m;l=(0,u.objToTS)(r(r({},p),{month:b,date:w})),a===i.UtcTimeZone?l-=60*d*1e3:(l=(o=(0,c.fixOffset)(l,d,a))[0],d=o[1])}return g&&(l+=n*g,a!==i.UtcTimeZone&&(d=(0,c.timeZoneOffset)(a,l))),y({ts:l,timeZone:a,offset:d,locale:this._locale})},e.prototype.weekInfo=function(){if(!this._weekInfo){var e=g(this._localeData),t=e.startOfWeek,n=e.minDaysInFirstWeek;this._weekInfo=(0,u.gregorianToWeek)(this._c,n,t)}return this._weekInfo},e}();function g(e){return{startOfWeek:e.weekStart||7,minDaysInFirstWeek:e.yearStart||1}}function v(e){var t=Math.sign(e);return Math.round(t*e)*t}function y(e){var t=e.ts,n=e.timeZone,r=e.offset,o=e.locale||"en",i=a.default.Ls[o],s=!isNaN(Number(new Date(t)));return new m({ts:t,timeZone:n,offset:r,locale:o,localeData:i,isValid:s})}function b(e,t,n,r,o){var s,u,d,p;if(void 0===o&&(o=!1),w(e)||"number"===typeof e||e instanceof Date)d=Number(e);else if(null===e||void 0===e)d=Date.now();else if(Array.isArray(e))d=(s=(0,f.getTimestampFromArray)(e,t))[0],p=s[1];else if("object"===typeof e)d=(u=(0,f.getTimestampFromObject)(e,t))[0],p=u[1];else if(o)d=a.default.utc(e,n,i.STRICT).valueOf();else{var h=a.default.locale(r||l.settings.getLocale(),void 0,!0);d=(n?(0,a.default)(e,n,h,i.STRICT):(0,a.default)(e,void 0,h)).valueOf()}return[d,p=null!==p&&void 0!==p?p:(0,c.timeZoneOffset)(t,d)]}function w(e){return m.isDateTime(e)}function _(e){var t=e||{},n=t.input,r=t.format,o=t.timeZone,i=t.lang,s=(0,c.normalizeTimeZone)(o,l.settings.getDefaultTimeZone()),u=a.default.locale(i||l.settings.getLocale(),void 0,!0),d=b(n,s,r,i);return y({ts:d[0],timeZone:s,offset:d[1],locale:u})}t.isDateTime=w,t.dateTime=_,t.dateTimeUtc=function(e){var t=e||{},n=t.input,r=t.format,o=t.lang,s=a.default.locale(o||l.settings.getLocale(),void 0,!0);return y({ts:b(n,i.UtcTimeZone,r,o,!0)[0],timeZone:i.UtcTimeZone,offset:0,locale:s})}},29863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=t.FORMAT_DEFAULT=t.expandFormat=void 0;var r=n(72328),o=n(77966),i=n(84080);function a(e,t){var n;return void 0===t&&(t=null!==(n=o.settings.getLocaleData().formats)&&void 0!==n?n:r.englishFormats),e.replace(/(\[[^\]]*])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,o){if(o){if(o in r.englishFormats)return t[o]||r.englishFormats[o];var i=o.toUpperCase();return(t[i]||r.englishFormats[i]).replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}return n}))}t.expandFormat=a,t.FORMAT_DEFAULT="YYYY-MM-DDTHH:mm:ssZ";var s=/(\[[^[]*\])|([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|Y{4,6}|YY?|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,l={};function c(e){return e.replace(/^\[([\s\S)]*)\]$/g,"$1")}function u(e){return e%12||12}function d(e){return e||24}function f(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r}function p(e){var t=e.date,n=e.format,r=e.data,o=e.index,i=e.fullData,a=e.maxLength,s="";if(r&&(s="function"===typeof r?r(t,n):r[o]),!s&&i&&(s="function"===typeof i?i(t,n):i[o])&&(s=s.slice(0,a)),s)return s;throw new Error("Invalid locale data")}function h(e,t,n){void 0===n&&(n=!1);var r=String(Math.abs(e)),o="";return e<0?o="-":n&&(o="+"),"".concat(o).concat(r.padStart(t,"0"))}t.formatDate=function(e,n,r){void 0===n&&(n=t.FORMAT_DEFAULT),void 0===r&&(r=o.settings.getLocaleData());var i=a(n,r.formats);return i.replace(s,(function(t){return l[t]?l[t](e,r,i):c(t)}))},l.Y=function(e){var t=e.year();return t<=9999?h(t,4):"+"+t},l.YY=function(e){return h(e.year()%100,2)},l.YYYY=function(e){return h(e.year(),4)},l.YYYYY=function(e){return h(e.year(),5)},l.YYYYYY=function(e){return h(e.year(),6,!0)},l.M=function(e){return"".concat(e.month()+1)},l.MM=function(e){return h(e.month()+1,2)},l.Mo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.month()+1,"M")))},l.MMM=function(e,t,n){var r=e.month();return p({date:e,format:n,data:t.monthsShort,index:r,fullData:t.months,maxLength:3})},l.MMMM=function(e,t,n){var r=e.month();return p({date:e,format:n,data:t.months,index:r})},l.w=function(e){return"".concat(e.week())},l.ww=function(e){return h(e.week(),2)},l.wo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.week(),"w")))},l.W=function(e){return"".concat(e.isoWeek())},l.WW=function(e){return h(e.isoWeek(),2)},l.Wo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.isoWeek(),"W")))},l.d=function(e){return"".concat(e.day())},l.do=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.day(),"d")))},l.dd=function(e,t,n){var r=e.day();return p({date:e,format:n,data:t.weekdaysMin,index:r,fullData:t.weekdays,maxLength:2})},l.ddd=function(e,t,n){var r=e.day();return p({date:e,format:n,data:t.weekdaysShort,index:r,fullData:t.weekdays,maxLength:3})},l.dddd=function(e,t,n){var r=e.day();return p({date:e,format:n,data:t.weekdays,index:r})},l.e=function(e){return"".concat(e.weekday())},l.E=function(e){return"".concat(e.isoWeekday())},l.H=function(e){return"".concat(e.hour())},l.HH=function(e){return h(e.hour(),2)},l.h=function(e){return"".concat(u(e.hour()))},l.hh=function(e){return h(u(e.hour()),2)},l.k=function(e){return"".concat(d(e.hour()))},l.kk=function(e){return h(d(e.hour()),2)},l.hmm=function(e){return"".concat(u(e.hour())).concat(h(e.minute(),2))},l.hmmss=function(e){return"".concat(u(e.hour())).concat(h(e.minute(),2)).concat(h(e.second(),2))},l.Hmm=function(e){return"".concat(e.hour()).concat(h(e.minute(),2))},l.Hmmss=function(e){return"".concat(e.hour()).concat(h(e.minute(),2)).concat(h(e.second(),2))},l.a=function(e,t){return(t.meridiem||f)(e.hour(),e.minute(),!0)},l.A=function(e,t){return(t.meridiem||f)(e.hour(),e.minute(),!1)},l.Z=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(h(~~(t/60),2),":").concat(h(~~t%60,2))},l.ZZ=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(h(~~(t/60),2)).concat(h(~~t%60,2))},l.Q=function(e){return"".concat(e.quarter())},l.Qo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.quarter(),"Q")))},l.D=function(e){return"".concat(e.date())},l.DD=function(e){return h(e.date(),2)},l.Do=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.date(),"D")))},l.m=function(e){return"".concat(e.minute())},l.mm=function(e){return h(e.minute(),2)},l.s=function(e){return"".concat(e.second())},l.ss=function(e){return h(e.second(),2)},l.S=function(e){return"".concat(~~(e.millisecond()/100))},l.SS=function(e){return"".concat(~~(e.millisecond()/10))},l.SSS=function(e){return h(e.millisecond(),3)},l.SSSS=function(e){return h(10*e.millisecond(),4)},l.SSSSS=function(e){return h(100*e.millisecond(),5)},l.SSSSSS=function(e){return h(1e3*e.millisecond(),6)},l.SSSSSSS=function(e){return h(1e4*e.millisecond(),7)},l.SSSSSSSS=function(e){return h(1e5*e.millisecond(),8)},l.SSSSSSSSS=function(e){return h(1e6*e.millisecond(),9)},l.x=function(e){return"".concat(e.valueOf())},l.X=function(e){return"".concat(e.unix())},l.z=function(e){return(0,i.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"short"})},l.zz=function(e){return(0,i.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"long"})},l.DDD=function(e){return"".concat(e.dayOfYear())},l.DDDD=function(e){return h(e.dayOfYear(),3)},l.DDDo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.dayOfYear(),"DDD")))},l.gg=function(e){return h(e.weekYear()%100,2)},l.gggg=function(e){return h(e.weekYear(),4)},l.ggggg=function(e){return h(e.weekYear(),5)},l.GG=function(e){return h(e.isoWeekYear()%100,2)},l.GGGG=function(e){return h(e.isoWeekYear(),4)},l.GGGGG=function(e){return h(e.isoWeekYear(),5)}},60166:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(40453),t),o(n(29863),t)},6597:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTimestampFromObject=t.getTimestampFromArray=void 0;var r=n(84080),o=n(13064);t.getTimestampFromArray=function(e,t){if(0===e.length)return s({},t);var n=e.map(Number),r=n[0],o=n[1],i=void 0===o?0:o,a=n[2],l=void 0===a?1:a,c=n[3],u=void 0===c?0:c,d=n[4],f=void 0===d?0:d,p=n[5],h=void 0===p?0:p,m=n[6];return s({year:r,month:i,date:l,hour:u,minute:f,second:h,millisecond:void 0===m?0:m},t)};var i={year:1,month:1,date:1,hour:0,minute:0,second:0,millisecond:0},a=["year","month","date","hour","minute","second","millisecond"];function s(e,t){var n,s=(0,o.normalizeDateComponents)(e,o.normalizeComponent);s.date=null!==(n=s.day)&&void 0!==n?n:s.date;for(var l=(0,o.tsToObject)(Date.now(),(0,r.timeZoneOffset)(t,Date.now())),c=!1,u=0,d=a;u<d.length;u++){var f=d[u];void 0!==s[f]?c=!0:s[f]=c?i[f]:l[f]}var p=(0,r.fixOffset)((0,o.objToTS)(s),(0,r.timeZoneOffset)(t,Date.now()),t);return[p[0],p[1]]}t.getTimestampFromObject=s},16244:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromTo=void 0;var r=n(40453),o=[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",r:1/0,d:"year"}],i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};t.fromTo=function(e,t,n,a,s){void 0===n&&(n=i),void 0===a&&(a=!1),void 0===s&&(s=!0);for(var l,c=0,u="",d=0;d<o.length;d+=1){var f=o[d];f.d&&(c=s?e.diff(t,f.d,!0):(0,r.dateTime)({input:t}).diff(e,f.d,!0));var p=Math.round(Math.abs(c));if(l=c>0,p<=f.r){p<=1&&d>0&&(f=o[d-1]);var h=n[f.l];u="string"===typeof h?h.replace("%d","".concat(p)):h(p,a,f.l,l);break}}if(a)return u;var m=l?n.future:n.past;return"function"===typeof m?m(u):m.replace("%s",u)}},57855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDateMath=t.parse=t.isLikeRelative=void 0;var r=n(60166),o=["y","Q","M","w","d","h","m","s"];function i(e,t,n){for(var r=e.replace(/\s/g,""),i=t,a=0,s=r.length;a<s;){var l=r.charAt(a++),c=void 0,u=void 0;if("/"===l)c=0;else if("+"===l)c=1;else{if("-"!==l)return;c=2}if(isNaN(parseInt(r.charAt(a),10)))u=1;else if(2===r.length)u=parseInt(r.charAt(a),10);else{for(var d=a;!isNaN(parseInt(r.charAt(a),10));)if(++a>10)return;u=parseInt(r.substring(d,a),10)}if(0===c&&1!==u)return;var f=r.charAt(a++);if(!o.includes(f))return;0===c?i=n?i.endOf(f):i.startOf(f):1===c?i=i.add(u,f):2===c&&(i=i.subtract(u,f))}return i}t.isLikeRelative=function(e){return e.startsWith("now")},t.parse=function(e,t){if(void 0===t&&(t={}),e){var n,o,a,s=t.roundUp,l=t.timeZone,c="";if("now"===e.substring(0,3)?(n=(0,r.dateTime)({timeZone:l}),c=e.substring(3)):(-1===(o=e.indexOf("||"))?(a=e,c=""):(a=e.substring(0,o),c=e.substring(o+2)),n=(0,r.dateTime)({input:a,timeZone:l})),n.isValid())return c.length?i(c,n,s):n}},t.parseDateMath=i},49837:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(57855),t)},38960:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(88409)),i=r(n(54533)),a=r(n(20549)),s=r(n(77354)),l=n(72328);o.default.extend(i.default),o.default.extend(s.default),o.default.extend(a.default),o.default.Ls.en.formats=l.englishFormats,t.default=o.default},50743:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDuration=void 0;var r=n(11345),o=n(57491),i=n(49860),a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]+)?)?S)?)?$/;function s(e){var t=e?parseFloat(e.replace(",",".")):0;return isNaN(t)?0:t}t.createDuration=function(e,t,n){void 0===n&&(n={});var l={},c=null,u=(t&&"object"===typeof t?t:n).lang,d="string"===typeof t?t:"milliseconds";if((0,o.isDuration)(e))return e;if(isNaN(Number(e)))if("string"===typeof e&&(c=a.exec(e))){var f="-"===c[1]?-1:1,p=c[8]&&"-"===c[8][0]?-1:1;l=(0,i.removeZeros)({y:s(c[2])*f,M:s(c[3])*f,w:s(c[4])*f,d:s(c[5])*f,h:s(c[6])*f,m:s(c[7])*f,s:s(c[8])*f,ms:Math.floor(1e3*s(c[9]?"0.".concat(c[9]):c[9]))*p*f})}else{if(!e||"object"!==typeof e)throw new Error("Unknown duration: ".concat(e));l=e}else l[d]=Number(e);return new o.DurationImpl({values:(0,r.normalizeDateComponents)(l,r.normalizeDurationUnit),locale:u})}},57491:function(e,t,n){"use strict";var r,o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.isDuration=t.DurationImpl=void 0;var a=n(60166),s=n(77966),l=n(13064),c=n(16572),u=n(50743),d=n(49860),f=Symbol("isDuration"),p=function(){function e(e){this[r]=!0,this._values=e.values,this._locale=e.locale||s.settings.getLocale(),this._isValid=e.isValid||!0}return e.isDuration=function(e){return"object"===typeof e&&e&&f in e&&!0===e[f]||!1},e.prototype.get=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e);return this._values[t]||0},e.prototype.set=function(t){return this.isValid()?new e({values:o(o({},this._values),(0,l.normalizeDateComponents)(t,l.normalizeDurationUnit)),locale:this._locale}):this},e.prototype.as=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e),n=this.days()+7*this.weeks()+this.hours()/24+this.minutes()/1440+this.seconds()/86400,r=this.months()+3*this.quarters()+12*this.years(),o=this.milliseconds();if("months"===t||"quarters"===t||"years"===t){var i=r+function(e){return 4800*e/146097}(n+o/864e5);switch(t){case"months":return i;case"quarters":return i/3;case"years":return i/12}}var a=n+function(e){return 146097*e/4800}(r);switch(t){case"weeks":return a/7+o/6048e5;case"days":return a+o/864e5;case"hours":return 24*a+o/36e5;case"minutes":return 1440*a+o/6e4;case"seconds":return 86400*a+o/1e3;case"milliseconds":return Math.floor(864e5*a)+o;default:throw new Error("Unknown unit "+t)}},e.prototype.milliseconds=function(){return this.isValid()?this._values.milliseconds||0:NaN},e.prototype.asMilliseconds=function(){return this.as("milliseconds")},e.prototype.seconds=function(){return this.isValid()?this._values.seconds||0:NaN},e.prototype.asSeconds=function(){return this.as("seconds")},e.prototype.minutes=function(){return this.isValid()?this._values.minutes||0:NaN},e.prototype.asMinutes=function(){return this.as("minutes")},e.prototype.hours=function(){return this.isValid()?this._values.hours||0:NaN},e.prototype.asHours=function(){return this.as("hours")},e.prototype.days=function(){return this.isValid()?this._values.days||0:NaN},e.prototype.asDays=function(){return this.as("days")},e.prototype.weeks=function(){return this.isValid()?this._values.weeks||0:NaN},e.prototype.asWeeks=function(){return this.as("weeks")},e.prototype.months=function(){return this.isValid()?this._values.months||0:NaN},e.prototype.asMonths=function(){return this.as("months")},e.prototype.quarters=function(){return this.isValid()?this._values.quarters||0:NaN},e.prototype.asQuarters=function(){return this.as("quarters")},e.prototype.years=function(){return this.isValid()?this._values.years||0:NaN},e.prototype.asYears=function(){return this.as("years")},e.prototype.add=function(t,n){if(!this.isValid())return this;for(var r=this.toObject(),o=(0,u.createDuration)(t,n).toObject(),i=0,a=Object.entries(o);i<a.length;i++){var s=a[i],l=s[0],c=s[1],d=l;r[d]=(r[d]||0)+c}return new e({values:r,locale:this._locale})},e.prototype.subtract=function(e,t){var n=(0,u.createDuration)(e,t).negate();return this.add(n)},e.prototype.negate=function(){for(var t={},n=0,r=Object.entries(this._values);n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a?-a:0}return new e({values:t,locale:this._locale})},e.prototype.normalize=function(t){return this.isValid()?new e({values:(0,d.normalizeValues)(this._values,t),locale:this._locale}):this},e.prototype.shiftTo=function(t,n){if(!this.isValid())return this;var r=t.map((function(e){return(0,l.normalizeDurationUnit)(e)}));return new e({values:(0,d.shiftTo)(this._values,r,n),locale:this._locale})},e.prototype.rescale=function(t){return this.isValid()?new e({values:(0,d.rescale)(this._values,t),locale:this._locale}):this},e.prototype.toISOString=function(){if(!this.isValid())return"Invalid Duration";var e="P";return 0!==this.years()&&(e+=this.years()+"Y"),0===this.months()&&0===this.quarters()||(e+=this.months()+3*this.quarters()+"M"),0!==this.weeks()&&(e+=this.weeks()+"W"),0!==this.days()&&(e+=this.days()+"D"),0===this.hours()&&0===this.minutes()&&0===this.seconds()&&0===this.milliseconds()||(e+="T"),0!==this.hours()&&(e+=this.hours()+"H"),0!==this.minutes()&&(e+=this.minutes()+"M"),0===this.seconds()&&0===this.milliseconds()||(e+=Math.round(1e3*this.seconds()+this.milliseconds())/1e3+"S"),"P"===e&&(e+="T0S"),e},e.prototype.toJSON=function(){return this.toISOString()},e.prototype.toObject=function(){return this.isValid()?o({},this._values):{}},e.prototype.toString=function(){return this.toISOString()},e.prototype.valueOf=function(){return this.asMilliseconds()},e.prototype[(r=f,Symbol.for("nodejs.util.inspect.custom"))]=function(){return this.isValid()?"Duration { values: ".concat(JSON.stringify(this._values)," }"):"Duration { Invalid Duration }"},e.prototype.humanize=function(e){if(!this.isValid())return"Invalid Duration";var t=(0,a.dateTimeUtc)({lang:this._locale});return t.add(this.valueOf(),"ms").from(t,!e)},e.prototype.humanizeIntl=function(e){var t=this;if(void 0===e&&(e={}),!this.isValid())return"Invalid Duration";var n=d.orderedUnits.map((function(n){var r=t._values[n];return void 0===r?null:(0,c.getNumberFormat)(t._locale,o(o({style:"unit",unitDisplay:"long"},e),{unit:n.slice(0,-1)})).format(r)})).filter(Boolean);return(0,c.getListFormat)(this._locale,{type:"conjunction",style:e.listStyle||"narrow"}).format(n)},e.prototype.format=function(e,t){if(void 0===t&&(t={}),!this.isValid())return"Invalid Duration";for(var n,r=/(\[[^[]*\])|y+|M+|w+|d+|h+|m+|s+|S+|./g,a=[],s=[];n=r.exec(e);){var l=n[0],u=n[1],d=h(l[0]);d?(a.push({literal:!1,padTo:l.length,unit:d}),s.push(d)):u?a.push({literal:!0,value:u.slice(1,-1)}):a.push({literal:!0,value:l})}for(var f=this.shiftTo(s),p="",m=t.floor,g=void 0===m||m,v=t.forceSimple,y=i(t,["floor","forceSimple"]),b=!v||Object.keys(y).length>0,w=0,_=a;w<_.length;w++){var x=_[w];if(x.literal)p+=x.value;else{var E=f.get(x.unit);if(b){var S=(0,c.getNumberFormat)(this._locale,o(o({useGrouping:!1},y),{minimumIntegerDigits:x.padTo})),k=g?Math.floor(E):E;p+=S.format(k)}else{k=g?Math.floor(E):Math.round(1e3*E)/1e3;p+="".concat(k<0?"-":"").concat(Math.abs(k).toString().padStart(x.padTo,"0"))}}}return p},e.prototype.isValid=function(){return this._isValid},e.prototype.locale=function(t){return t?new e({values:this._values,locale:t}):this._locale},e}();function h(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}}t.DurationImpl=p,t.isDuration=function(e){return p.isDuration(e)}},62391:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDuration=t.duration=void 0;var r=n(50743);Object.defineProperty(t,"duration",{enumerable:!0,get:function(){return r.createDuration}});var o=n(57491);Object.defineProperty(t,"isDuration",{enumerable:!0,get:function(){return o.isDuration}})},49860:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.rescale=t.shiftTo=t.removeZeros=t.normalizeValues=t.orderedUnits=void 0;var r=365.2425,o=30.436875,i=n({years:{quarters:4,months:12,weeks:52.1775,days:r,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:o,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},{weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}});t.orderedUnits=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];var a=t.orderedUnits.slice(0).reverse();function s(e,r){for(var o,s,l,c,u,d,f,p=(void 0===r?{}:r).roundUp,h=n({},e),m=function(e){for(var t,n=null!==(t=e.milliseconds)&&void 0!==t?t:0,r=0,o=a.slice(1);r<o.length;r++){var s=o[r],l=e[s];l&&(n+=l*i[s].milliseconds)}return n}(e)<0?-1:1,g=null,v=0;v<a.length;v++){if(void 0!==h[_=a[v]]&&null!==h[_])if(g){var y=(null!==(o=h[g])&&void 0!==o?o:0)*m,b=i[_][g],w=Math.floor(y/b);h[_]=(null!==(s=h[_])&&void 0!==s?s:0)+w*m,h[g]=(null!==(l=h[g])&&void 0!==l?l:0)-w*b*m,g=_}else g=_}g=null;for(v=0;v<t.orderedUnits.length;v++){var _;if(void 0!==h[_=t.orderedUnits[v]]&&null!==h[_])if(g){var x=(null!==(c=h[g])&&void 0!==c?c:0)%1;h[g]=(null!==(u=h[g])&&void 0!==u?u:0)-x,h[_]=(null!==(d=h[_])&&void 0!==d?d:0)+x*i[g][_],g=_}else g=_}return p&&g&&h[g]&&(h[g]=Math.round(null!==(f=h[g])&&void 0!==f?f:0)),h}function l(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],a=o[1];0!==a&&(t[i]=a)}return t}function c(e,n,r){var o;if(!n.length)return e;for(var a,l={},c={},u=0,d=t.orderedUnits;u<d.length;u++){var f=d[u];if(n.includes(f)){a=f;for(var p=0,h=0,m=Object.keys(c);h<m.length;h++){var g=m[h];p+=i[g][f]*c[g],c[g]=0}(E=e[f])&&(p+=E);var v=Math.trunc(p);l[f]=v,c[f]=(1e3*p-1e3*v)/1e3}else e[f]&&(c[f]=e[f])}if(a){for(var y=0,b=Object.entries(c);y<b.length;y++){var w=b[y],_=w[0],x=w[1];0!==x&&(l[a]=(null!==(o=l[a])&&void 0!==o?o:0)+(_===a?x:x/i[a][_]))}var E;(E=l[a])&&(l[a]=Math.round(1e3*E)/1e3)}return s(l,r)}t.normalizeValues=s,t.removeZeros=l,t.shiftTo=c,t.rescale=function(e,t){return l(c(s(e),["years","months","weeks","days","hours","minutes","seconds","milliseconds"],t))}},14750:(e,t,n)=>{"use strict";t.p0=t.Pn=t.eP=t.fn=t.bQ=t.cS=t.KQ=void 0,n(77966).settings;var r=n(60166);Object.defineProperty(t,"KQ",{enumerable:!0,get:function(){return r.dateTime}}),Object.defineProperty(t,"cS",{enumerable:!0,get:function(){return r.expandFormat}});var o=n(49837);var i=n(43160);Object.defineProperty(t,"bQ",{enumerable:!0,get:function(){return i.dateTimeParse}}),Object.defineProperty(t,"fn",{enumerable:!0,get:function(){return i.isValid}}),Object.defineProperty(t,"eP",{enumerable:!0,get:function(){return i.isLikeRelative}});var a=n(84080);Object.defineProperty(t,"Pn",{enumerable:!0,get:function(){return a.getTimeZonesList}});var s=n(72328);var l=n(62391);Object.defineProperty(t,"p0",{enumerable:!0,get:function(){return l.duration}})},43160:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(16445),t)},16445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValid=t.dateTimeParse=t.isLikeRelative=void 0;var r=n(60166),o=n(77966);function i(e){return"string"===typeof e&&o.settings.getRelativeParser().isLikeRelative(e)}t.isLikeRelative=i;t.dateTimeParse=function(e,t){if(e){var n=function(e,t){var n;if(i(e)){if(null!==(n=null===t||void 0===t?void 0:t.allowRelative)&&void 0!==n&&!n)return;return o.settings.getRelativeParser().parse(e,t)}var a=t||{},s=a.format,l=a.lang,c=(0,r.dateTime)({input:e,format:s,lang:l,timeZone:null===t||void 0===t?void 0:t.timeZone});return c.isValid()?c:void 0}(e,t);return n}},t.isValid=function(e){if((0,r.isDateTime)(e))return e.isValid();var n=(0,t.dateTimeParse)(e,{allowRelative:!0});return!!n&&n.isValid()}},77966:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(32213),t)},43377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localeLoaders=void 0,t.localeLoaders={af:function(){return n.e(9222).then(n.t.bind(n,89222,23))},am:function(){return n.e(9243).then(n.t.bind(n,59243,23))},"ar-dz":function(){return n.e(6881).then(n.t.bind(n,6881,23))},"ar-iq":function(){return n.e(5685).then(n.t.bind(n,45685,23))},"ar-kw":function(){return n.e(8081).then(n.t.bind(n,88081,23))},"ar-ly":function(){return n.e(8256).then(n.t.bind(n,28256,23))},"ar-ma":function(){return n.e(9697).then(n.t.bind(n,89697,23))},"ar-sa":function(){return n.e(1187).then(n.t.bind(n,1187,23))},"ar-tn":function(){return n.e(4349).then(n.t.bind(n,24349,23))},ar:function(){return n.e(8890).then(n.t.bind(n,58890,23))},az:function(){return n.e(3410).then(n.t.bind(n,3410,23))},be:function(){return n.e(7748).then(n.t.bind(n,97748,23))},bg:function(){return n.e(5950).then(n.t.bind(n,85950,23))},bi:function(){return n.e(1088).then(n.t.bind(n,61088,23))},bm:function(){return n.e(7420).then(n.t.bind(n,97420,23))},"bn-bd":function(){return n.e(2568).then(n.t.bind(n,72568,23))},bn:function(){return n.e(1237).then(n.t.bind(n,1237,23))},bo:function(){return n.e(9174).then(n.t.bind(n,9174,23))},br:function(){return n.e(513).then(n.t.bind(n,90513,23))},bs:function(){return n.e(2626).then(n.t.bind(n,22626,23))},ca:function(){return n.e(3761).then(n.t.bind(n,43761,23))},cs:function(){return n.e(6047).then(n.t.bind(n,46047,23))},cv:function(){return n.e(7348).then(n.t.bind(n,67348,23))},cy:function(){return n.e(8633).then(n.t.bind(n,48633,23))},da:function(){return n.e(5418).then(n.t.bind(n,15418,23))},"de-at":function(){return n.e(8534).then(n.t.bind(n,8534,23))},"de-ch":function(){return n.e(1696).then(n.t.bind(n,41696,23))},de:function(){return n.e(7878).then(n.t.bind(n,47878,23))},dv:function(){return n.e(9523).then(n.t.bind(n,49523,23))},el:function(){return n.e(3952).then(n.t.bind(n,3952,23))},"en-au":function(){return n.e(6625).then(n.t.bind(n,26625,23))},"en-ca":function(){return n.e(5027).then(n.t.bind(n,85027,23))},"en-gb":function(){return n.e(290).then(n.t.bind(n,90290,23))},"en-ie":function(){return n.e(5401).then(n.t.bind(n,65401,23))},"en-il":function(){return n.e(6786).then(n.t.bind(n,36786,23))},"en-in":function(){return n.e(1496).then(n.t.bind(n,51496,23))},"en-nz":function(){return n.e(1627).then(n.t.bind(n,51627,23))},"en-sg":function(){return n.e(3769).then(n.t.bind(n,63769,23))},"en-tt":function(){return n.e(1747).then(n.t.bind(n,81747,23))},en:function(){return n.e(730).then(n.t.bind(n,40730,23))},eo:function(){return n.e(9433).then(n.t.bind(n,79433,23))},"es-do":function(){return n.e(523).then(n.t.bind(n,30523,23))},"es-mx":function(){return n.e(8119).then(n.t.bind(n,88119,23))},"es-pr":function(){return n.e(4324).then(n.t.bind(n,74324,23))},"es-us":function(){return n.e(4730).then(n.t.bind(n,4730,23))},es:function(){return n.e(9725).then(n.t.bind(n,49725,23))},et:function(){return n.e(3672).then(n.t.bind(n,53672,23))},eu:function(){return n.e(5759).then(n.t.bind(n,45759,23))},fa:function(){return n.e(60).then(n.t.bind(n,40060,23))},fi:function(){return n.e(628).then(n.t.bind(n,90628,23))},fo:function(){return n.e(6114).then(n.t.bind(n,86114,23))},"fr-ca":function(){return n.e(7962).then(n.t.bind(n,87962,23))},"fr-ch":function(){return n.e(6833).then(n.t.bind(n,26833,23))},fr:function(){return n.e(7605).then(n.t.bind(n,67605,23))},fy:function(){return n.e(5924).then(n.t.bind(n,95924,23))},ga:function(){return n.e(8517).then(n.t.bind(n,78517,23))},gd:function(){return n.e(9882).then(n.t.bind(n,59882,23))},gl:function(){return n.e(2466).then(n.t.bind(n,92466,23))},"gom-latn":function(){return n.e(7548).then(n.t.bind(n,7548,23))},gu:function(){return n.e(3033).then(n.t.bind(n,93033,23))},he:function(){return n.e(8706).then(n.t.bind(n,88706,23))},hi:function(){return n.e(9606).then(n.t.bind(n,9606,23))},hr:function(){return n.e(9707).then(n.t.bind(n,79707,23))},ht:function(){return n.e(7697).then(n.t.bind(n,77697,23))},hu:function(){return n.e(7970).then(n.t.bind(n,57970,23))},"hy-am":function(){return n.e(1917).then(n.t.bind(n,61917,23))},id:function(){return n.e(6324).then(n.t.bind(n,26324,23))},is:function(){return n.e(4401).then(n.t.bind(n,6782,23))},"it-ch":function(){return n.e(3902).then(n.t.bind(n,3902,23))},it:function(){return n.e(7380).then(n.t.bind(n,37380,23))},ja:function(){return n.e(3008).then(n.t.bind(n,63008,23))},jv:function(){return n.e(2053).then(n.t.bind(n,82053,23))},ka:function(){return n.e(1865).then(n.t.bind(n,61865,23))},kk:function(){return n.e(47).then(n.t.bind(n,40047,23))},km:function(){return n.e(6541).then(n.t.bind(n,46541,23))},kn:function(){return n.e(1956).then(n.t.bind(n,21956,23))},ko:function(){return n.e(7579).then(n.t.bind(n,37579,23))},ku:function(){return n.e(6405).then(n.t.bind(n,56405,23))},ky:function(){return n.e(9025).then(n.t.bind(n,89025,23))},lb:function(){return n.e(3679).then(n.t.bind(n,86060,23))},lo:function(){return n.e(4652).then(n.t.bind(n,84652,23))},lt:function(){return n.e(5853).then(n.t.bind(n,55853,23))},lv:function(){return n.e(5819).then(n.t.bind(n,95819,23))},me:function(){return n.e(1975).then(n.t.bind(n,31975,23))},mi:function(){return n.e(9067).then(n.t.bind(n,49067,23))},mk:function(){return n.e(5453).then(n.t.bind(n,25453,23))},ml:function(){return n.e(6664).then(n.t.bind(n,16664,23))},mn:function(){return n.e(5634).then(n.t.bind(n,5634,23))},mr:function(){return n.e(6358).then(n.t.bind(n,26358,23))},"ms-my":function(){return n.e(7240).then(n.t.bind(n,17240,23))},ms:function(){return n.e(949).then(n.t.bind(n,60949,23))},mt:function(){return n.e(4096).then(n.t.bind(n,44096,23))},my:function(){return n.e(811).then(n.t.bind(n,30811,23))},nb:function(){return n.e(7357).then(n.t.bind(n,67357,23))},ne:function(){return n.e(8008).then(n.t.bind(n,48008,23))},"nl-be":function(){return n.e(5161).then(n.t.bind(n,35161,23))},nl:function(){return n.e(3879).then(n.t.bind(n,73879,23))},nn:function(){return n.e(4441).then(n.t.bind(n,4441,23))},"oc-lnc":function(){return n.e(3321).then(n.t.bind(n,23321,23))},"pa-in":function(){return n.e(3756).then(n.t.bind(n,93756,23))},pl:function(){return n.e(3121).then(n.t.bind(n,3121,23))},"pt-br":function(){return n.e(9922).then(n.t.bind(n,89922,23))},pt:function(){return n.e(4169).then(n.t.bind(n,34169,23))},rn:function(){return n.e(8053).then(n.t.bind(n,78053,23))},ro:function(){return n.e(310).then(n.t.bind(n,10310,23))},ru:function(){return n.e(4180).then(n.t.bind(n,4180,23))},rw:function(){return n.e(2286).then(n.t.bind(n,32286,23))},sd:function(){return n.e(1486).then(n.t.bind(n,71486,23))},se:function(){return n.e(1053).then(n.t.bind(n,21053,23))},si:function(){return n.e(921).then(n.t.bind(n,80921,23))},sk:function(){return n.e(5047).then(n.t.bind(n,85047,23))},sl:function(){return n.e(9801).then(n.t.bind(n,52182,23))},sq:function(){return n.e(3521).then(n.t.bind(n,33521,23))},"sr-cyrl":function(){return n.e(8103).then(n.t.bind(n,38103,23))},sr:function(){return n.e(8840).then(n.t.bind(n,58840,23))},ss:function(){return n.e(5647).then(n.t.bind(n,5647,23))},"sv-fi":function(){return n.e(8704).then(n.t.bind(n,8704,23))},sv:function(){return n.e(9220).then(n.t.bind(n,46839,23))},sw:function(){return n.e(4891).then(n.t.bind(n,74891,23))},ta:function(){return n.e(9466).then(n.t.bind(n,99466,23))},te:function(){return n.e(3510).then(n.t.bind(n,83510,23))},tet:function(){return n.e(2776).then(n.t.bind(n,12776,23))},tg:function(){return n.e(1756).then(n.t.bind(n,71756,23))},th:function(){return n.e(5953).then(n.t.bind(n,85953,23))},tk:function(){return n.e(5816).then(n.t.bind(n,55816,23))},"tl-ph":function(){return n.e(2166).then(n.t.bind(n,32166,23))},tlh:function(){return n.e(4601).then(n.t.bind(n,44601,23))},tr:function(){return n.e(2775).then(n.t.bind(n,72775,23))},tzl:function(){return n.e(5579).then(n.t.bind(n,65579,23))},"tzm-latn":function(){return n.e(108).then(n.t.bind(n,80108,23))},tzm:function(){return n.e(9908).then(n.t.bind(n,59908,23))},"ug-cn":function(){return n.e(4847).then(n.t.bind(n,34847,23))},uk:function(){return n.e(6261).then(n.t.bind(n,6261,23))},ur:function(){return n.e(9518).then(n.t.bind(n,9518,23))},"uz-latn":function(){return n.e(2161).then(n.t.bind(n,34542,23))},uz:function(){return n.e(710).then(n.t.bind(n,40710,23))},vi:function(){return n.e(2612).then(n.t.bind(n,42612,23))},"x-pseudo":function(){return n.e(2984).then(n.t.bind(n,92984,23))},yo:function(){return n.e(3333).then(n.t.bind(n,83333,23))},"zh-cn":function(){return n.e(1657).then(n.t.bind(n,21657,23))},"zh-hk":function(){return n.e(3653).then(n.t.bind(n,63653,23))},"zh-tw":function(){return n.e(221).then(n.t.bind(n,60221,23))},zh:function(){return n.e(6879).then(n.t.bind(n,76879,23))}}},32213:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.settings=void 0;var a=i(n(58671)),s=n(49837),l=i(n(38960)),c=n(84080),u=n(43377),d=function(){function e(){this.loadedLocales=new Set(["en"]),this.defaultLocale="en",this.defaultTimeZone="system",this.parser={parse:s.parse,isLikeRelative:s.isLikeRelative},this.updateLocale({weekStart:1,yearStart:1})}return e.prototype.loadLocale=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:if(this.isLocaleLoaded(e))return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),t=e.toLocaleLowerCase(),[4,(0,u.localeLoaders[t])()];case 2:return n.sent(),this.loadedLocales.add(t),[3,4];case 3:throw n.sent(),new Error("Can't load locale \"".concat(e,'". Either it does not exist, or there was a connection problem. Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale'));case 4:return[2]}}))}))},e.prototype.getLocale=function(){return this.defaultLocale},e.prototype.getLocaleData=function(){var e=l.default.Ls,t=e[this.getLocale()];if(t||(t=e.en),!t)throw new Error("There is something really wrong happening. Locale data is absent.");return(0,a.default)(t)},e.prototype.setLocale=function(e){if(!this.isLocaleLoaded(e))throw new Error('Seems you are trying to set an unloaded locale "'.concat(e,"\". Load it first by calling settings.loadLocale('").concat(e,"'). Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale"));this.defaultLocale=e},e.prototype.updateLocale=function(e){var t=this.getLocale();l.default.updateLocale(t,e)},e.prototype.setDefaultTimeZone=function(e){this.defaultTimeZone=(0,c.normalizeTimeZone)(e,"system")},e.prototype.getDefaultTimeZone=function(){return this.defaultTimeZone},e.prototype.setRelativeParser=function(e){this.parser=e},e.prototype.getRelativeParser=function(){return this.parser},e.prototype.isLocaleLoaded=function(e){var t=e.toLocaleLowerCase();return this.loadedLocales.has(t)},e}();t.settings=new d},84080:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(71765),t)},71765:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseZoneInfo=t.fixOffset=t.normalizeTimeZone=t.timeZoneOffset=t.isValidTimeZone=t.getTimeZonesList=t.guessUserTimeZone=void 0;var o=n(72328),i=n(16572);t.guessUserTimeZone=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone};t.getTimeZonesList=function(){var e;return(null===(e=Intl.supportedValuesOf)||void 0===e?void 0:e.call(Intl,"timeZone"))||[]};var a={};function s(e){if(!e)return!1;if(Object.prototype.hasOwnProperty.call(a,e))return a[e];try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),a[e]=!0,!0}catch(t){return a[e]=!1,!1}}t.isValidTimeZone=s;var l=["year","month","day","hour","minute","second","era"];function c(e,t){var n=new Date(t);if(isNaN(n.valueOf())||"system"!==e&&!s(e))return NaN;if("system"===e)return-n.getTimezoneOffset()||0;for(var r,o={year:1,month:1,day:1,hour:0,minute:0,second:0,era:"AD"},a=0,c=(0,i.getDateTimeFormat)("en-US",{hour12:!1,timeZone:"system"===e?void 0:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}).formatToParts(n);a<c.length;a++){var u=c[a],d=u.type,f=u.value;"era"===d?o.era=f:(r=d,l.includes(r)&&(o[d]=parseInt(f,10)))}var p="BC"===o.era?1-Math.abs(o.year):o.year,h=o.month-1,m=24===o.hour?0:o.hour,g=Date.UTC(p,h,o.day,m,o.minute,o.second,0);if(p<100&&p>=0){var v=new Date(g);v.setUTCFullYear(p,h,o.day),g=v.valueOf()}var y=n.valueOf(),b=y%1e3;return(g-(y-=b>=0?b:1e3+b))/6e4}function u(e,t){if(void 0===e||null===e)return t;var n=e.toLowerCase();if("utc"===n||"gmt"===n)return o.UtcTimeZone;if("system"===n)return"system";if("default"===n)return t;if(s(e))return e;throw new Error("InvalidZone: ".concat(e))}t.timeZoneOffset=c,t.normalizeTimeZone=u,t.fixOffset=function(e,t,n){var r=e-60*t*1e3,o=c(n,r);if(t===o)return[r,t];var i=c(n,r-=60*(o-t)*1e3);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.min(o,i)]},t.parseZoneInfo=function(e){var t=e.timeZone,n=e.ts,o=e.locale,i=e.offsetFormat,a=new Date(n),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};t&&(s.timeZone=u(t,t));var l=r({timeZoneName:i},s),c=new Intl.DateTimeFormat(o,l).formatToParts(a).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:""}},13064:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(11345),t)},16572:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNumberFormat=t.getListFormat=t.getDateTimeFormat=void 0;var n=new Map;t.getDateTimeFormat=function(e,t){void 0===t&&(t={});var r=JSON.stringify([e,t]),o=n.get(r);return o||(o=new Intl.DateTimeFormat(e,t),n.set(r,o)),o};var r=new Map;t.getListFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),o=r.get(n);return o||(o=new Intl.ListFormat(e,t),r.set(n,o)),o};var o=new Map;t.getNumberFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=o.get(n);return r||(r=new Intl.NumberFormat(e,t),o.set(n,r)),r}},11345:(e,t)=>{"use strict";function n(e,t){return e-t*Math.floor(e/t)}function r(e){return e%4===0&&(e%100!==0||e%400===0)}function o(e){return r(e)?366:365}Object.defineProperty(t,"__esModule",{value:!0}),t.monthDiff=t.weekToGregorian=t.weeksInWeekYear=t.gregorianToWeek=t.isoWeekdayToLocal=t.uncomputeOrdinal=t.computeOrdinal=t.offsetFromString=t.normalizeDateComponents=t.normalizeComponent=t.normalizeDurationUnit=t.objToTS=t.tsToObject=t.daysInMonth=t.daysInYear=t.isLeapYear=t.floorMod=void 0,t.floorMod=n,t.isLeapYear=r,t.daysInYear=o,t.daysInMonth=function(e,t){var o=n(t,12);return 1===o?r(e+(t-o)/12)?29:28:[31,-1,31,30,31,30,31,31,30,31,30,31][o]},t.tsToObject=function(e,t){var n=new Date(e+60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth(),date:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}},t.objToTS=function(e){var t=Date.UTC(e.year,e.month,e.date,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){var n=new Date(t);return n.setUTCFullYear(e.year,e.month,e.date),n.valueOf()}return t};var i={y:"years",year:"years",years:"years",Q:"quarters",quarter:"quarters",quarters:"quarters",M:"months",month:"months",months:"months",w:"weeks",week:"weeks",weeks:"weeks",d:"days",day:"days",days:"days",h:"hours",hour:"hours",hours:"hours",m:"minutes",minute:"minutes",minutes:"minutes",s:"seconds",second:"seconds",seconds:"seconds",ms:"milliseconds",millisecond:"milliseconds",milliseconds:"milliseconds"};t.normalizeDurationUnit=function(e){var t=["d","D","m","M","w","W","E","Q"].includes(e)?e:e.toLowerCase();if(t in i)return i[t];throw new Error("Invalid unit ".concat(e))};var a={y:"year",year:"year",years:"year",M:"month",month:"month",months:"month",D:"date",date:"date",dates:"date",h:"hour",hour:"hour",hours:"hour",m:"minute",minute:"minute",minutes:"minute",Q:"quarter",quarter:"quarter",quarters:"quarter",s:"second",second:"second",seconds:"second",ms:"millisecond",millisecond:"millisecond",milliseconds:"millisecond",d:"day",day:"day",days:"day",weeknumber:"weekNumber",w:"weekNumber",week:"weekNumber",weeks:"weekNumber",isoweeknumber:"isoWeekNumber",W:"isoWeekNumber",isoweek:"isoWeekNumber",isoweeks:"isoWeekNumber",E:"isoWeekday",isoweekday:"isoWeekday",isoweekdays:"isoWeekday",weekday:"weekday",weekdays:"weekday",e:"weekday",dayOfYear:"dayOfYear",dayOfYears:"dayOfYear",DDD:"dayOfYear",weekyear:"weekYear",isoweekyear:"isoWeekYear"};function s(e){var t=Number(e);if("boolean"===typeof e||""===e||Number.isNaN(t))throw new Error("Invalid unit value ".concat(e));return t}t.normalizeComponent=function(e){var t=["d","D","m","M","w","W","e","E","Q"].includes(e)?e:e.toLowerCase();if(t in a)return a[t];throw new Error("Invalid unit ".concat(e))},t.normalizeDateComponents=function(e,t){for(var n={},r=0,o=Object.entries(e);r<o.length;r++){var i=o[r],a=i[0],l=i[1];void 0!==l&&null!==l&&(n[t(a)]=s(l))}return n};var l=/Z|[+-]\d\d(?::?\d\d)?/gi,c=/([+-]|\d\d)/gi;function u(e,t,n){var r=new Date(Date.UTC(e,t,n));return e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900),r.getUTCDay()}function d(e,t,n){var r=u(e,t,n);return 0===r?7:r}t.offsetFromString=function(e){var t=(e||"").match(l);if(null===t)return null;var n=t[t.length-1]||"",r=String(n).match(c)||["-",0,0],o=r[0],i=r[1],a=r[2],s=Number(60*Number(i))+(isFinite(Number(a))?Number(a):0);return"+"===o?s:-s};var f=[0,31,59,90,120,151,181,212,243,273,304,334],p=[0,31,60,91,121,152,182,213,244,274,305,335];function h(e){var t=e.year,n=e.month;return e.date+(r(t)?p:f)[n]}function m(e){var t=e.year,n=e.ordinal,o=r(t)?p:f,i=o.findIndex((function(e){return e<n}));return{month:i,date:n-o[i]}}function g(e,t){return(e-t+7)%7+1}function v(e,t,n){var r,o=e.year,i=e.month,a=e.date,s=g(d(o,i,a),n),l=h({year:o,month:i,date:a}),c=Math.floor((l-s+14-t)/7);return c<1?c=b(r=o-1,t,n):c>b(o,t,n)?(r=o+1,c=1):r=o,{weekYear:r,weekNumber:c,weekday:s}}function y(e,t,n){return-g(d(e,0,t),n)+t-1}function b(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r=y(e,t,n),i=y(e+1,t,n);return(o(e)-r+i)/7}t.computeOrdinal=h,t.uncomputeOrdinal=m,t.isoWeekdayToLocal=g,t.gregorianToWeek=function(e,t,n){var r=u(e.year,e.month,e.date),o=v(e,t,n),i=o.weekYear,a=o.weekNumber,s=o.weekday,l=v(e,4,1);return{day:r,weekYear:i,weekNumber:a,weekday:s-1,isoWeekYear:l.weekYear,isoWeekNumber:l.weekNumber,isoWeekday:l.weekday}},t.weeksInWeekYear=b,t.weekToGregorian=function(e,t,n){var r,i=e.weekYear,a=e.weekNumber,s=e.weekday,l=g(d(i,0,t),n),c=o(i),u=7*a+s-l-7+t;u<1?u+=o(r=i-1):u>c?(r=i+1,u-=o(i)):r=i;var f=m({year:r,ordinal:u});return{year:r,month:f.month,date:f.date}},t.monthDiff=function e(t,n){if(t.date()<n.date())return-e(n,t);var r,o=12*(n.year()-t.year())+(n.month()-t.month()),i=t.add(o,"months");if(n.valueOf()-i.valueOf()<0){var a=t.add(o-1,"months");r=(n.valueOf()-i.valueOf())/(i.valueOf()-a.valueOf())}else{a=t.add(o+1,"months");r=(n.valueOf()-i.valueOf())/(a.valueOf()-i.valueOf())}return-(o+r)||0}},1448:(e,t,n)=>{"use strict";n.d(t,{TH:()=>u});const r=/{{(.*?)}}/g;const o=()=>new RegExp(/\$t{([^}]+)}/g);var i;!function(e){e.EmptyKeyset="EMPTY_KEYSET",e.EmptyLanguageData="EMPTY_LANGUAGE_DATA",e.KeysetNotFound="KEYSET_NOT_FOUND",e.MissingKey="MISSING_KEY",e.MissingKeyFor0="MISSING_KEY_FOR_0",e.MissingKeyParamsCount="MISSING_KEY_PARAMS_COUNT",e.MissingKeyPlurals="MISSING_KEY_PLURALS",e.MissingInheritedKey="MISSING_INHERITED_KEY",e.NestedPlural="NESTED_PLURAL",e.ExceedTranslationNestingDepth="EXCEED_TRANSLATION_NESTING_DEPTH",e.NoLanguageData="NO_LANGUAGE_DATA"}(i||(i={}));Object.values(i);var a;function s(e,t){return 0===e?t.None:1===e||-1===e?t.One:t.Many}function l(e,t){const n=Math.abs(e%10),r=Math.abs(e%100);return 0===e?t.None:1===n&&11!==r?t.One:n>1&&n<5&&(r<10||r>20)?t.Few:t.Many}function c({value:e,count:t,lang:n,pluralizers:r,log:o,key:i}){if(!Array.isArray(e))return function(e,t,n){if(e.zero&&0===t)return e.zero;if(!Intl.PluralRules)throw new Error("Intl.PluralRules is not available. Use polyfill.");const r=new Intl.PluralRules(n).select(t);return"other"===r&&"undefined"===typeof e.other?e.many||e.few:e[r]||e.other}(e,t,n)||i;if(!r)return o("Can not use deprecated plural format without pluralizers"),i;if(r[n]||o(`Pluralization is not configured for language '${n}', falling back to the english ruleset`),e.length<3)return o("Missing required plurals"),i;const s=r[n]||r.en;return s?e[s(t,a)]||e[a.Many]||i:(o("Fallback pluralization is not configured!"),i)}!function(e){e[e.One=0]="One",e[e.Few=1]="Few",e[e.Many=2]="Many",e[e.None=3]="None"}(a||(a={}));class u{constructor(e={}){this.data={},this.pluralizers={en:s,ru:l},this.logger=null;const{data:t,fallbackLang:n,lang:r,logger:o=null}=e;this.fallbackLang=n,this.lang=r,this.logger=o,t&&Object.entries(t).forEach((([e,t])=>{this.registerKeysets(e,t)}))}setLang(e){this.lang=e}setFallbackLang(e){this.fallbackLang=e}configurePluralization(e){this.pluralizers=Object.assign({},this.pluralizers,e)}registerKeyset(e,t,n={}){const r=this.data[e]&&Object.prototype.hasOwnProperty.call(this.data[e],t);if(r)throw new Error(`Keyset '${t}' is already registered, aborting!`);r&&this.warn(`Keyset '${t}' is already registered.`),this.data[e]=Object.assign({},this.data[e],{[t]:n})}registerKeysets(e,t){Object.keys(t).forEach((n=>{this.registerKeyset(e,n,t[n])}))}has(e,t,n){var r;const o=this.getLanguageData(n);return Boolean(o&&o[e]&&(null===(r=o[e])||void 0===r?void 0:r[t]))}i18n(e,t,n){if(!this.lang&&!this.fallbackLang)throw new Error('Language is not specified. You should set at least one of these: "lang", "fallbackLang"');let r;return this.lang?r=this._i18n(e,t,this.lang,n):this.warn("Target language is not specified."),void 0===r&&this.fallbackLang&&this.fallbackLang!==this.lang&&(r=this._i18n(e,t,this.fallbackLang,n)),null!==r&&void 0!==r?r:t}keyset(e){return(t,n)=>this.i18n(e,t,n)}warn(e,t,n){var r;let o="";t?(o+=t,n&&(o+=`.${n}`)):o="languageData",null===(r=this.logger)||void 0===r||r.log(`I18n: ${e}`,{level:"info",logger:o,extra:{type:"i18n"}})}getLanguageData(e){const t=e||this.lang;return t?this.data[t]:void 0}_i18n(e,t,n,r){const{text:o,details:a}=new d(this,n,t,e,r).getTranslationData();if(a){const e=function(e){const{code:t,fallbackLang:n,lang:r}=e;let o=`Using language ${r}. `;switch(t){case i.EmptyKeyset:o+="Keyset is empty.";break;case i.EmptyLanguageData:o+="Language data is empty.";break;case i.KeysetNotFound:o+="Keyset not found.";break;case i.MissingKey:o+="Missing key.";break;case i.MissingKeyFor0:return o+="Missing key for 0",o;case i.MissingKeyParamsCount:o+="Missing params.count for key.";break;case i.MissingKeyPlurals:o+="Missing required plurals.";break;case i.NoLanguageData:o=`Language "${r}" is not defined, make sure you call setLang for the same language you called registerKeysets for!`}return n&&(o+=` Trying to use fallback language "${n}"...`),o}({code:a.code,lang:n,fallbackLang:this.fallbackLang===n?void 0:this.fallbackLang});this.warn(e,a.keysetName,a.key)}return o}}class d{constructor(e,t,n,r,o,i){this.i18n=e,this.lang=t,this.key=n,this.keysetName=r,this.params=o,this.nestingDepth=null!==i&&void 0!==i?i:0}getTranslationData(){var e;const{data:t,details:n}=this.getKeyset();if(n)return{details:n};const a=t&&t[this.key],s={};if(void 0===a)return this.getTranslationDataError(i.MissingKey);if("string"!==typeof a){const t=this.nestingDepth>0,n=(e=>e instanceof Array?e:e instanceof Object?Object.values(e):[])(a).some((e=>(e=>{var t;const n=o().exec(e);return(null!==(t=null===n||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0})(e)));if(t||n)return this.getTranslationDataError(i.NestedPlural);const r=Number(null===(e=this.params)||void 0===e?void 0:e.count);if(Number.isNaN(r))return this.getTranslationDataError(i.MissingKeyParamsCount);s.text=c({key:this.key,value:a,count:r,lang:this.lang||"en",pluralizers:this.i18n.pluralizers,log:e=>this.i18n.warn(e,this.keysetName,this.key)})}else s.text=String(a);this.params&&(s.text=function(e,t){let n,o="",i=r.lastIndex=0;for(;n=r.exec(e);){i!==n.index&&(o+=e.slice(i,n.index)),i=r.lastIndex;const[a,s]=n;s&&Object.prototype.hasOwnProperty.call(t,s)?o+=t[s]:o+=a}return i<e.length&&(o+=e.slice(i)),o}(String(s.text),this.params));const l=this.replaceTranslationsInheritance({keyValue:String(s.text)});return l.text?(s.text=l.text,s):l}getTranslationDataError(e){return{details:{code:e,keysetName:this.keysetName,key:this.key}}}getKeyset(){const e=this.i18n.getLanguageData(this.lang);if("undefined"===typeof e)return this.getTranslationDataError(i.NoLanguageData);if(0===Object.keys(e).length)return this.getTranslationDataError(i.EmptyLanguageData);const t=e[this.keysetName];return t?0===Object.keys(t).length?this.getTranslationDataError(i.EmptyKeyset):{data:t}:this.getTranslationDataError(i.KeysetNotFound)}replaceTranslationsInheritance(e){const{keyValue:t}=e,n=o();let r,a="",s=n.lastIndex=0;for(;r=n.exec(t);){s!==r.index&&(a+=t.slice(s,r.index)),s=n.lastIndex;const[e,o]=r;if(o){if(this.nestingDepth+1>1)return this.getTranslationDataError(i.ExceedTranslationNestingDepth);let[e,t]=[o,void 0];const n=o.split("::");if(n.length>1&&([t,e]=[n[0],n[1]]),!e)return this.getTranslationDataError(i.MissingInheritedKey);const r=new d(this.i18n,this.lang,e,null!==t&&void 0!==t?t:this.keysetName,void 0,this.nestingDepth+1).getTranslationData();if(r.details)return this.getTranslationDataError(i.MissingInheritedKey);a+=r.text}else a+=e}return s<t.length&&(a+=t.slice(s)),{text:a}}}},112:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.5A.75.75 0 0 0 10 3h1.94L6.97 7.97a.75.75 0 0 0 1.06 1.06L13 4.06V6a.75.75 0 0 0 1.5 0V2.25a.75.75 0 0 0-.75-.75H10ZM7.5 3.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V9.25a.75.75 0 0 0-1.5 0v2.25a1.5 1.5 0 0 1-1.5 1.5h-6A1.5 1.5 0 0 1 3 11.5v-6A1.5 1.5 0 0 1 4.5 4h2.25a.75.75 0 0 0 .75-.75Z",clipRule:"evenodd"}))},13066:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))},9187:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.53 2.97a.75.75 0 0 1 0 1.06L6.56 8l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}))},38602:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0Z",clipRule:"evenodd"}))},70825:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08l3-4Z",clipRule:"evenodd"}))},43937:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0V8.5Z",clipRule:"evenodd"}))},73633:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM6.44 4.54c.43-.354.994-.565 1.56-.565 1.217 0 2.34.82 2.34 2.14 0 .377-.079.745-.298 1.1-.208.339-.513.614-.875.867-.217.153-.326.257-.379.328-.038.052-.038.07-.038.089a.75.75 0 0 1-1.5 0c0-.794.544-1.286 1.057-1.645.28-.196.4-.332.458-.426a.543.543 0 0 0 .074-.312c0-.3-.243-.641-.839-.641a.997.997 0 0 0-.608.223c-.167.138-.231.287-.231.418a.75.75 0 1 1-1.5 0c0-.674.345-1.22.78-1.577ZM8 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))},7450:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",clipRule:"evenodd"}))},27738:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("g",{clipPath:"url(#a)"},r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.199.199 0 0 1 .271.073l.802 1.388a.199.199 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.199.199 0 0 1 .073.271l-.802 1.388a.199.199 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.199.199 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.199.199 0 0 1-.272-.073l-.8-1.388a.199.199 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.199.199 0 0 1-.073-.271l.801-1.388a.199.199 0 0 1 .272-.073C5.042 5.138 7 4.007 7 2.2c0-.11.089-.199.199-.199ZM5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.699 1.699 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.699 1.699 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.698 1.698 0 0 1-2.32-.622l-.802-1.388a1.699 1.699 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.699 1.699 0 0 1-.622-2.321l.801-1.388a1.699 1.699 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2Zm4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",clipRule:"evenodd"})),r.createElement("defs",null,r.createElement("clipPath",{id:"a"},r.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},66821:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM5.5 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0-5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM7 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm3.5 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",clipRule:"evenodd"}))},27612:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m7.835 6 .76-2.027L9.336 2H5.5a.716.716 0 0 0-.664.45L2.513 8.257a.177.177 0 0 0 .164.243h4.965l-.732 2.013-1.082 2.975a.382.382 0 0 0 .637.392l6.956-7.391A.29.29 0 0 0 13.21 6H7.835Zm1.558-4.154ZM10.563 3l.235-.627A1.386 1.386 0 0 0 9.5.5h-4c-.906 0-1.72.552-2.057 1.393L1.12 7.7A1.677 1.677 0 0 0 2.677 10H5.5l-.545 1.5-.537 1.475a1.882 1.882 0 0 0 3.14 1.933l6.956-7.391A1.79 1.79 0 0 0 13.21 4.5H10l.563-1.5Z",clipRule:"evenodd"}))},94420:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.134 2.994 2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0Zm3.03-.75c-.962-1.665-3.366-1.665-4.328 0L.919 10.749c-.964 1.666.239 3.751 2.164 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751l-4.917-8.505ZM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5Zm1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}))},81240:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))},92209:(e,t,n)=>{"use strict";n.d(t,{N:()=>o,b:()=>i});var r=n(82435);const o="gn-";(0,r.withNaming)({e:"__",m:"_"});const i=(0,r.withNaming)({n:o,e:"__",m:"_"})},49034:(e,t,n)=>{"use strict";n.d(t,{d:()=>F});var r="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var o=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},i="object"==typeof r&&r&&r.Object===Object&&r,a="object"==typeof self&&self&&self.Object===Object&&self,s=i||a||Function("return this")(),l=s,c=function(){return l.Date.now()},u=/\s/;var d=function(e){for(var t=e.length;t--&&u.test(e.charAt(t)););return t},f=/^\s+/;var p=function(e){return e?e.slice(0,d(e)+1).replace(f,""):e},h=s.Symbol,m=h,g=Object.prototype,v=g.hasOwnProperty,y=g.toString,b=m?m.toStringTag:void 0;var w=function(e){var t=v.call(e,b),n=e[b];try{e[b]=void 0;var r=!0}catch(i){}var o=y.call(e);return r&&(t?e[b]=n:delete e[b]),o},_=Object.prototype.toString;var x=w,E=function(e){return _.call(e)},S=h?h.toStringTag:void 0;var k=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?x(e):E(e)},C=function(e){return null!=e&&"object"==typeof e};var O=p,N=o,T=function(e){return"symbol"==typeof e||C(e)&&"[object Symbol]"==k(e)},I=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,P=/^0o[0-7]+$/i,D=parseInt;var R=o,j=c,M=function(e){if("number"==typeof e)return e;if(T(e))return NaN;if(N(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=N(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=O(e);var n=A.test(e);return n||P.test(e)?D(e.slice(2),n?2:8):I.test(e)?NaN:+e},L=Math.max,z=Math.min;var F=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function m(){var e=j();if(h(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?z(n,i-(e-c)):n}(e))}function g(e){return s=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=j(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=M(t)||0,R(n)&&(u=!!n.leading,i=(d="maxWait"in n)?L(M(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(j())},v}},16258:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(0,n(92209).b)("aside-header")},6388:(e,t,n)=>{"use strict";n.d(t,{M3:()=>i,N2:()=>l,NS:()=>s,Q7:()=>a,Uc:()=>u,VU:()=>r,xN:()=>o,zQ:()=>c});const r=1,o=-1,i="left",a="center",s="right",l="fixed",c="moving",u="__index__"},4557:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>D});var r=n(27145),o=n(59284),i=n(56993),a=n.n(i),s=n(82435),l=n(6388);const c=(0,s.withNaming)({e:"__",m:"_"})("data-table");function u({name:e,defaultOrder:t},{sortOrder:n={},sortColumns:o=[]},i=!1,{defaultOrder:a,disableSortReset:s}={}){const c=t||a,u={sortOrder:{},sortColumns:[]};if(!e)return i?{sortOrder:n,sortColumns:o}:u;let d=o;const f=n[e];let p=c;if(f&&(p=f===c||s?f===l.VU?l.xN:l.VU:void 0),!i)return p?{sortOrder:{[e]:p},sortColumns:[e]}:u;const h=n,m=e,g=(h[m],(0,r.Tt)(h,["symbol"===typeof m?m:m+""]));return p?(g[e]=p,new Set(o).has(e)||(d=[...o,e])):d=o.filter((t=>t!==e)),{sortOrder:g,sortColumns:d}}function d(e,t,n={}){const r=t,{sortAscending:o}=e;return"function"===typeof o?(e,t)=>r*o(e,t):(t,o)=>{const i=e._getSortValue(t.row),a=e._getSortValue(o.row);return null==i&&null!=a?n.nullBeforeNumbers?-r:1:null==a&&null!=i?n.nullBeforeNumbers?r:-1:i<a?Number(-r):i>a?Number(r):0}}function f(e,t,{sortOrder:n,sortColumns:r},o){const i={};t.forEach((e=>{n[e.name]?i[e.name]=d(e,n[e.name],o):e.group&&e.autogroup&&(i[e.name]=d(e,l.VU,o))}));const a=t.filter((e=>e.group)),s=a.length>0,c=[...a.map((e=>i[e.name])).filter(Boolean),...r.map((e=>i[e])).filter(Boolean)],u=e.map(((e,t)=>s?{row:e,index:t,span:{}}:{row:e,index:t}));if(c.length&&!o.externalSort&&u.sort(((e,t)=>{let n=0;return c.some((r=>(n=r(e,t),Boolean(n)))),n||e.index-t.index})),u.length>1&&s){const e=[],t=[];u.forEach((n=>{a.every(((r,o)=>{const i=r._getValue(n.row);return e[o]&&i===t[o]?(e[o].span[r.name]+=1,n.span[r.name]=0,!0):(a.slice(o).forEach(((r,i)=>{e[o+i]=n,t[o+i]=r._getValue(n.row),n.span[r.name]=1})),!1)}))}))}return u}function p(e,t){return(Array.isArray(e)?e:[e]).reduce(((e,{columnId:n,order:r})=>u({name:n,defaultOrder:r},e,!0,t)),{sortOrder:{},sortColumns:[]})}function h({getColumn:e,columnIndex:t,columnId:n,minWidth:r,maxWidth:i,onResize:a}){const s=o.useRef(null),[l,u]=o.useState(!1);return o.useEffect((()=>{const o=s.current;if(!o)return;let l,c,d;const f=function(e){let t,n=null;return function(...r){t=r,"number"!==typeof n&&(n=requestAnimationFrame((()=>{e(...t),n=null})))}}((e=>{if(m(e),"number"!==typeof l||"number"!==typeof c)return;const t=e.clientX-l,o=function(e,t=40,n=1/0){return Math.max(t,Math.min(e,n))}(c+t,r,i);o!==d&&(d=o,null===a||void 0===a||a(n,d))})),p=e=>{m(e),void 0!==d&&(null===a||void 0===a||a(n,d)),u(!1),l=void 0,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)},h=n=>{var r;c=null===(r=e(t))||void 0===r?void 0:r.getBoundingClientRect().width,m(n),l=n.clientX,u(!0),document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)};return o.addEventListener("mousedown",h),()=>{o.removeEventListener("mousedown",h),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)}}),[n,a,r,i,e,t]),o.createElement("span",{ref:s,className:c("resize-handler",{resizing:l}),onClick:e=>m(e)})}function m(e){e.preventDefault(),e.stopPropagation()}const g=function(){const e=document.createElement("a").style;return e.cssText="position:sticky; position:-webkit-sticky;",-1!==e.position.indexOf("sticky")}(),v={getSrcElement:()=>null,onHeightChange:()=>{}};class y{constructor(e){this.prevHeight=0,this.params=v,this.checkAndUpdateHeight=()=>{this.node?requestAnimationFrame((()=>{const e=this.node;e?this.updateHeight(e.offsetHeight):this.updateHeight(0)})):this.updateHeight(0)},this.params=Object.assign({},e)}destroy(){this.updateHeight(0),this.params=v}get node(){return this.params.getSrcElement()}updateHeight(e){this.prevHeight!==e&&(this.prevHeight=e,this.params.onHeightChange(e))}}const b=o.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},o.createElement("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})),w=o.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},o.createElement("path",{fill:"currentColor",d:"M0 1h10l-5 5z"})),_={ICON_ASC:b,ICON_DESC:w};const x=({sortOrder:e,sortIndex:t,sortable:n,defaultOrder:r})=>n?o.createElement("span",{className:c("sort-icon",{shadow:!e}),"data-index":t},function(e){switch(e){case l.VU:return _.ICON_ASC;case l.xN:return _.ICON_DESC;default:return!1}}(e||r)):null;class E extends o.PureComponent{constructor(){super(...arguments),this.onClick=e=>{if(this.props.onClick){const{row:t,index:n}=this.props;this.props.onClick(t,n,e)}}}render(){const{className:e,columns:t,row:n,index:r,odd:i,footer:a,span:s,getColSpansOfRow:l,headerData:u}=this.props,d=l?l(this.props):void 0;let f=0;return o.createElement("tr",{className:c("row",{odd:i,footer:a,"header-data":u},e),onClick:this.onClick},t.map(((e,t)=>{if(d){if(--f>0)return null;d[e.name]>1&&(f=d[e.name])}let i;if(s){if(0===s[e.name])return null;i=s[e.name]}const l=e._getValue(n);let c=e.customStyle({row:n,index:r,name:e.name,header:!1,footer:a,headerData:u});return e.resizeable&&(c=Object.assign(Object.assign({},c),{width:e.width,maxWidth:e.width})),o.createElement("td",{key:t,className:e._className,title:e._getTitle(n),style:c,colSpan:d?d[e.name]:void 0,rowSpan:i,onClick:e._getOnClick({row:n,index:r,footer:a,headerData:u})},e._renderValue({value:l,row:n,index:r,footer:a,headerData:u}))})))}}E.defaultProps={footer:!1};class S extends o.Component{constructor(){super(...arguments),this._dataRowsRef=null,this.renderedColumns=[],this.renderHeadCell=e=>{var t;const{onResize:n}=this.props,{column:r,rowSpan:i,colSpan:a}=e,{sortable:s=!1,header:l=r.name,className:u,index:d,columnIndex:f,align:p,name:m,width:g,resizeable:v,resizeMinWidth:y,resizeMaxWidth:b}=r,{headerTitle:w="string"===typeof l&&l||void 0}=r;let _=null===(t=r.customStyle)||void 0===t?void 0:t.call(r,{header:!0,name:m});return v&&(_=Object.assign(Object.assign({},_),{width:g,maxWidth:g})),o.createElement("th",{ref:r.dataColumn?this._getColumnRef(f):null,className:c("th",{sortable:s,align:p},u),key:m,title:w,"data-index":d,colSpan:a,rowSpan:i,style:_,onClick:this._getOnSortClick(r)},o.createElement("div",{className:c("head-cell")},l,o.createElement(x,Object.assign({},r))),v&&o.createElement(h,{getColumn:this._getRenderedColumn,columnIndex:f,onResize:n,columnId:m,minWidth:y,maxWidth:b}))},this.renderHeadLevel=(e,t)=>o.createElement("tr",{key:t,className:c("head-row")},e.map(this.renderHeadCell)),this.dataRowsRef=e=>{var t;this._dataRowsRef=e,e&&(null===(t=this.dataRowsHeightObserver)||void 0===t||t.checkAndUpdateHeight())},this._getColumnRef=e=>t=>{this.renderedColumns[e]=t},this._getRenderedColumn=e=>{if(void 0!==e)return this.renderedColumns[e]}}componentDidMount(){this._calculateColumnsWidth(),"function"===typeof this.props.onDataRowsHeightChange&&(this.dataRowsHeightObserver=new y({getSrcElement:()=>this._dataRowsRef,onHeightChange:e=>{"function"===typeof this.props.onDataRowsHeightChange&&this.props.onDataRowsHeightChange(e)}}))}componentDidUpdate(){var e;this._calculateColumnsWidth(),null===(e=this.dataRowsHeightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.dataRowsHeightObserver)||void 0===e||e.destroy()}render(){const{headColumns:e,dataColumns:t,renderedDataRows:n}=this.props;return this.renderedColumns.length=t.length,o.createElement(o.Fragment,null,o.createElement("thead",{className:c("head")},e.map(this.renderHeadLevel)),void 0===n?null:o.createElement("tbody",{ref:this.dataRowsRef},n))}_calculateColumnsWidth(){const{onColumnsUpdated:e}=this.props;"function"===typeof e&&requestAnimationFrame((()=>{const t=this.renderedColumns.map((e=>e&&e.getBoundingClientRect().width));e(t)}))}onSort(e,t){const{onSort:n}=this.props;"function"===typeof n&&n(e,t)}_getOnSortClick(e){const{sortable:t=!1,name:n}=e;return n===l.Uc?()=>{this.onSort()}:t?t=>{this.onSort(e,t.ctrlKey||t.metaKey)}:void 0}}class k extends o.Component{constructor(){super(...arguments),this.state={style:{top:k.defaultProps.top}},this.onDataRowsHeightChange=e=>{this.props.onDataRowsHeightChange(e+1)},this._nodeRef=e=>{this._node=e}}static getDerivedStateFromProps(e,t){var n;return e.top!==(null===(n=t.style)||void 0===n?void 0:n.top)?void 0===e.top?null:{style:{top:e.top}}:null}render(){const e=this.props,{mode:t,top:n}=e,i=(0,r.Tt)(e,["mode","top"]);if(t===l.zQ){const{style:e}=this.state;return o.createElement("div",{className:c("sticky",{moving:!0,head:!0}),style:e},this.renderHeader(i))}{const{widths:e=[],right:t=0}=this.state,n=e.reduce(((e,t)=>e+t),0);return o.createElement("div",{ref:this._nodeRef,className:c("sticky",{fixed:!0,head:!0}),style:{right:t,display:n?void 0:"none"}},this.renderHeader(i))}}setScrollLeft(e){requestAnimationFrame((()=>{this._node&&(this._node.scrollLeft=e)}))}setRightPosition(e){this.state.right===e||this.props.top||this.props.mode===l.zQ||this.setState({right:e})}renderHeader(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return o.createElement("div",{className:c("table-wrapper",{sticky:!0})},o.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},o.createElement("colgroup",null,t.map(((e,t)=>o.createElement("col",{key:t,style:{width:e}})))),o.createElement(S,Object.assign({},e,{onDataRowsHeightChange:this.onDataRowsHeightChange}))))}updateWidths(e=[]){const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}k.defaultProps={top:0};class C extends o.PureComponent{constructor(){super(...arguments),this.state={style:{bottom:0}},this._nodeFixed=null,this._nodeMoving=null,this._nodeFixedRef=e=>{this._nodeFixed=e},this._nodeMovingRef=e=>{var t;this._nodeMoving=e,e&&(null===(t=this.heightObserver)||void 0===t||t.checkAndUpdateHeight())}}static getDerivedStateFromProps(e,t){var n;return e.bottom!==(null===(n=t.style)||void 0===n?void 0:n.bottom)?void 0===e.bottom?null:{style:{bottom:e.bottom}}:null}componentDidMount(){this.heightObserver=new y({getSrcElement:()=>this._nodeMoving,onHeightChange:this.props.onMovingHeightChange})}componentDidUpdate(){var e;null===(e=this.heightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.heightObserver)||void 0===e||e.destroy()}render(){if(!this.props.renderedRows)return null;const{mode:e,renderedRows:t}=this.props;if(e===l.zQ){const{style:e}=this.state;return o.createElement("div",{ref:this._nodeMovingRef,className:c("sticky",{footer:!0,moving:!0}),style:e},this.renderFooter(t))}{const{widths:e=[],right:n=0}=this.state,r=e.reduce(((e,t)=>e+t),0);return o.createElement("div",{ref:this._nodeFixedRef,className:c("sticky",{footer:!0,fixed:!0}),style:{right:n,display:r?void 0:"none"}},this.renderFooter(t))}}setScrollLeft(e){requestAnimationFrame((()=>{this._nodeFixed&&(this._nodeFixed.scrollLeft=e)}))}setRightPosition(e){this.state.right!==e&&!this.props.bottom&&this._nodeFixed&&this.setState({right:e})}renderFooter(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return o.createElement("div",{className:c("table-wrapper",{sticky:!0})},o.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},o.createElement("colgroup",null,t.map(((e,t)=>o.createElement("col",{key:t,style:{width:e}})))),o.createElement("tbody",null,e)))}updateWidths(e=[]){const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}C.defaultProps={bottom:0};class O extends o.PureComponent{constructor(){super(...arguments),this.state={},this._refBody=e=>{this._body=e},this._refBox=e=>{this._box=e},this._refHead=e=>{this._head=e},this._refStickyHead=e=>{this._stickyHead=e},this._refStickyFooter=e=>{this._stickyFooter=e},this._onBoxScroll=()=>{this._updateBoxConstraints()},this._onColumnsUpdated=e=>{this._stickyHead&&this._stickyHead.updateWidths(e),this._stickyFooter&&this._stickyFooter.updateWidths(e)},this.onMovingHeaderDataRowsHeightChange=e=>{var t;-e!==(null===(t=this.state.movingHeaderStyle)||void 0===t?void 0:t.marginTop)&&this.setState({movingHeaderStyle:{marginTop:-e}})},this.onMovingFooterHeightChange=e=>{var t;-e!==(null===(t=this.state.movingFooterStyle)||void 0===t?void 0:t.marginBottom)&&this.setState({movingFooterStyle:{marginBottom:-e}})},this.renderRow=e=>{const{data:t,onRowClick:n}=this.props,{row:r,index:o,span:i}=t[e];return this.renderRowImpl(r,o,{onRowClick:n,odd:e%2===0,span:i})},this.renderFooterRow=(e,t)=>this.renderRowImpl(e,t,{footer:!0}),this.renderHeaderRow=(e,t)=>this.renderRowImpl(e,t,{headerData:!0}),this.renderRowImpl=(e,t,{onRowClick:n,odd:r,span:i,footer:a,headerData:s}={})=>{const{columns:{dataColumns:l},rowClassName:c,rowKey:u,getColSpansOfRow:d}=this.props,f="function"===typeof c?c(e,t,a,s):"";return o.createElement(E,{getColSpansOfRow:d,key:u(e,t),className:f,columns:l,row:e,index:t,span:i,odd:r,onClick:n,footer:a,headerData:s})},this.renderTable=(e,t)=>{const{footerData:n,columns:{dataColumns:r},settings:{stickyHead:i}}=this.props,{movingHeaderStyle:a,movingFooterStyle:s}=this.state,u=this.getStickyFooterMode();return o.createElement("div",{className:c("table-wrapper"),style:u===l.zQ?s:void 0},o.createElement("table",{className:c("table"),style:i===l.zQ?a:void 0},o.createElement("colgroup",null,r.map((({width:e},t)=>o.createElement("col",{key:t,width:e})))),this.renderHead(),o.createElement("tbody",{ref:t},e.length?e:this._getEmptyRow()),n&&o.createElement("tfoot",{className:c("foot",{"has-sticky-footer":u})},n.map(this.renderFooterRow))))}}componentDidMount(){const{stickyHead:e,syncHeadOnResize:t}=this.props.settings;this._updateBoxConstraints(),e&&t&&!this._onWindowResize&&(this._onWindowResize=()=>{this.syncHeadWidths()},window.addEventListener("resize",this._onWindowResize))}componentDidUpdate(){this._updateBoxConstraints()}componentWillUnmount(){this._onWindowResize&&(window.removeEventListener("resize",this._onWindowResize),delete this._onWindowResize)}render(){const{className:e}=this.props,{stickyHead:t,dynamicRender:n}=this.props.settings,r=this.getStickyFooterMode();return o.createElement("div",{className:e,ref:this._refBody},t&&this.renderStickyHead(),o.createElement("div",{ref:this._refBox,className:c("box",{"sticky-head":t,"sticky-footer":r}),onScroll:this._onBoxScroll},n?this.renderTableDynamic():this.renderTableSimple()),r&&this.renderStickyFooter())}_updateBoxConstraints(){const e=this._stickyHead||this._stickyFooter;if(this._box&&e){const e=this._box.offsetWidth-this._box.clientWidth;this._stickyHead&&(this._stickyHead.setRightPosition(e),this._stickyHead.setScrollLeft(this._box.scrollLeft)),this._stickyFooter&&(this._stickyFooter.setRightPosition(e),this._stickyFooter.setScrollLeft(this._box.scrollLeft))}}syncHeadWidths(){this._head&&this._head._calculateColumnsWidth()}_getEmptyRow(){const{columns:{dataColumns:e},emptyDataMessage:t,renderEmptyRow:n}=this.props;return"function"===typeof n?n(e):o.createElement("tr",{className:c("row")},o.createElement("td",{className:c("td",c("no-data")),colSpan:e.length},t))}renderHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r}=this.props.settings,i=this.renderHeaderRows();return o.createElement(S,Object.assign({ref:this._refHead},e,{displayIndices:Boolean(r),onSort:t,onResize:n,onColumnsUpdated:this._onColumnsUpdated,renderedDataRows:i}))}renderStickyHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r,stickyTop:i,stickyHead:a}=this.props.settings,s="auto"===i&&this._body&&this._body.parentNode?this._body.parentNode.offsetTop:Number(i)||0,l=this.renderHeaderRows();return o.createElement(k,Object.assign({mode:a,top:s,ref:this._refStickyHead},e,{displayIndices:r,onSort:t,onResize:n,renderedDataRows:l,onDataRowsHeightChange:this.onMovingHeaderDataRowsHeightChange}))}renderStickyFooter(){const{columns:e}=this.props,{stickyBottom:t}=this.props.settings;let n=Number(t)||0;if("auto"===t&&this._body&&this._body.parentNode){const e=this._body.parentNode;n=e.offsetTop+e.offsetHeight}const r=this.renderFooterRows();return o.createElement(C,{ref:this._refStickyFooter,mode:this.getStickyFooterMode(),bottom:n,dataColumns:e.dataColumns,renderedRows:r,onMovingHeightChange:this.onMovingFooterHeightChange})}renderTableDynamic(){const{data:e,settings:{dynamicInnerRef:t,dynamicRenderType:n="uniform",dynamicRenderUseStaticSize:r,dynamicRenderThreshold:i,dynamicRenderMinSize:s,dynamicRenderScrollParentGetter:l,dynamicRenderScrollParentViewportSizeGetter:c,dynamicItemSizeEstimator:u,dynamicItemSizeGetter:d}={}}=this.props;return o.createElement(a(),{ref:t,type:n,useStaticSize:r,threshold:i,minSize:s,itemSizeEstimator:u,itemSizeGetter:d,length:e.length,itemRenderer:this.renderRow,itemsRenderer:this.renderTable,scrollParentGetter:l,scrollParentViewportSizeGetter:c})}renderTableSimple(){const{data:e}=this.props,t=e.map(((e,t)=>this.renderRow(t)));return this.renderTable(t,null)}renderHeaderRows(){const{headerData:e}=this.props;return e&&e.map(this.renderHeaderRow)}renderFooterRows(){const{footerData:e}=this.props;return null===e||void 0===e?void 0:e.map(this.renderFooterRow)}getStickyFooterMode(){const{footerData:e}=this.props;if(!(null===e||void 0===e?void 0:e.length))return!1;const{stickyFooter:t}=this.props.settings;return t}}const N=o.memo((function(e){const{column:t,value:n,row:r,index:i,footer:a,headerData:s}=e;return o.createElement(o.Fragment,null,t.render({value:n,row:r,index:i,footer:a,headerData:s}))}));class T extends o.Component{constructor(){super(...arguments),this.state=Object.assign({settings:{}},p(this.props.initialSortOrder,this.props.settings)),this._tableRef=e=>{this.table=e},this.renderMemoizedCell=({column:e,value:t,row:n,index:r,footer:i,headerData:a})=>o.createElement(N,{column:e,value:t,row:n,index:r,footer:i,headerData:a}),this.getColumn=(e,t)=>{var n;const{onResize:r}=this.props,{settings:o}=this.state,{defaultOrder:i}=o,{sortOrder:a={},sortColumns:s,indexColumn:l}=this.state,u=Number(Boolean(l)),d=this.isSortEnabled(),{name:f,accessor:p=e.name,align:h,sortable:m=o.sortable,group:g,autogroup:v=!0}=e,{sortAccessor:y,onClick:b}=e,w=c("td",{align:h},e.className),_=(null!==(n=e.resizeable)&&void 0!==n?n:o.defaultResizeable)&&Boolean(r),x="function"===typeof p?e=>p(e):e=>Object.prototype.hasOwnProperty.call(e,p)?e[p]:void 0,E="function"===typeof e.title?t=>e.title(t):()=>"string"===typeof e.title&&e.title||void 0,S="function"===typeof y?e=>y(e):x,k="function"===typeof e.render?({value:t,row:n,index:r,footer:o,headerData:i})=>this.renderMemoizedCell({column:e,value:t,row:n,index:r,footer:o,headerData:i}):({value:e})=>e,C="function"===typeof e.customStyle?e.customStyle:()=>{},O="function"===typeof b?t=>n=>b(t,e,n):()=>{};return Object.assign(Object.assign({index:t-u,columnIndex:t,dataColumn:!0,defaultOrder:i},e),{resizeable:_,sortable:m&&d,_className:w,_getValue:x,_getTitle:E,_getSortValue:S,_renderValue:k,_getOnClick:O,customStyle:C,group:g,autogroup:v,sortOrder:a[f]||void 0,sortIndex:s.length>1?s.indexOf(f)+1:void 0})},this.isSortEnabled=()=>{const{data:e}=this.props;return Array.isArray(e)&&e.length>1},this.onSort=(e,t)=>{if(e){const{sortOrder:n,sortColumns:r}=u(e,this.state,t,this.props.settings);this.setState({sortOrder:n,sortColumns:r});const{onSort:o}=this.props;if("function"===typeof o){const e=function(e){return Object.keys(e).map((t=>({columnId:t,order:e[t]})))}(n);o(e)}}else{this.setState({sortOrder:{},sortColumns:[]});const{onSort:e}=this.props;"function"===typeof e&&e([])}}}static normalizeStickyHead(e=!1){return e!==l.zQ||g?e:(console.warn("Your browser does not support position: sticky, moving sticky headers will be disabled."),!1)}static calculateSettings(e){return Object.assign(Object.assign(Object.assign({},T.defaultProps.settings),e),{stickyHead:T.normalizeStickyHead(e.stickyHead),stickyFooter:T.normalizeStickyHead(e.stickyFooter)})}static getIndexColumn({startIndex:e,data:t,visibleRowIndex:n}){const r=e+t.length+1;return{name:l.Uc,header:"#",className:c("index"),render:({row:t,index:r,footer:o,headerData:i})=>{var a,s;return i?null!==(a=t.headerIndex)&&void 0!==a?a:e+r:o?null!==(s=t.footerIndex)&&void 0!==s?s:e+r:"function"===typeof n?n(t,r):e+r},sortable:!1,resizeable:!1,width:20+10*Math.ceil(Math.log10(r))}}static getDerivedStateFromProps(e){const t=T.calculateSettings(e.settings);return Object.assign({settings:t,indexColumn:Boolean(t.displayIndices)&&T.getIndexColumn(e)},e.sortOrder?Object.assign({},p(e.sortOrder,e.settings)):void 0)}render(){const{getColSpansOfRow:e,headerData:t,data:n,footerData:r,columns:i,startIndex:a,emptyDataMessage:s,rowClassName:l,rowKey:u,onRowClick:d,onResize:p,theme:h,renderEmptyRow:m,nullBeforeNumbers:g}=this.props,{settings:v,sortOrder:y,sortColumns:b}=this.state,{highlightRows:w=!1,stripedRows:_=!1,headerMod:x=!1}=v,E=c({"highlight-rows":w,"striped-rows":_,header:x,theme:h}),S=this.getComplexColumns(i);return v.dynamicRender&&S.dataColumns.some((e=>e.group))&&console.warn("Simultaneously used grouping cells and dynamic render. The table will render unpredictable."),o.createElement(O,{ref:this._tableRef,getColSpansOfRow:e,className:E,settings:v,startIndex:a,columns:S,emptyDataMessage:s,renderEmptyRow:m,rowClassName:l,rowKey:u||T.defaultProps.rowKey,onRowClick:d,headerData:t,data:f(n,S.dataColumns,{sortOrder:y,sortColumns:b},{nullBeforeNumbers:g,externalSort:null===v||void 0===v?void 0:v.externalSort}),footerData:r,onSort:this.onSort,onResize:p})}getComplexColumns(e){const t=[],n=[],r=[],{indexColumn:o}=this.state,i=o?[o,...e]:e,a=(e,o)=>{t[o]||(t[o]=[]);const i=t[o];return e.reduce(((e,t)=>{let s=1,l=-1,c=t;if(Array.isArray(t.sub))s=a(t.sub,o+1);else{const e=this.getColumn(t,n.length);n.push(e),l=o,c=e}const u={column:c,itemLevel:l,colSpan:s,rowSpan:0};return r.push(u),i.push(u),s+e}),0)};return a(i,0),r.forEach((e=>{e.rowSpan=e.itemLevel<0?1:t.length-e.itemLevel})),{headColumns:t,dataColumns:n}}resize(){this.table&&this.table.syncHeadWidths()}}function I(e){return new Set(e.map((e=>e.name))).size!==e.length}T.defaultProps={startIndex:0,emptyDataMessage:"No data",settings:{displayIndices:!0,dynamicRenderMinSize:1,stickyHead:!1,stickyFooter:!1,sortable:!0,externalSort:!1,defaultOrder:l.VU,defaultResizeable:!1},rowKey:(e,t)=>Object.prototype.hasOwnProperty.call(e,"id")?e.id:t,initialSortOrder:{},initialSortColumns:[],theme:"yandex-cloud"},T.getSortedData=f;const A="It is strongly recommended against using duplicate column names. They act as default accessors and titles, so doing so may lead to confusing titles and the wrong data being extracted.";class P extends o.PureComponent{constructor(){super(...arguments),this.state={},this._tableRef=e=>{this.table=e}}static setCustomIcons(e){_.ICON_ASC=e.ICON_ASC||b,_.ICON_DESC=e.ICON_DESC||w}componentDidMount(){I(this.props.columns)&&console.warn(A)}componentDidUpdate(e){const{columns:t}=this.props;t!==e.columns&&I(t)&&console.warn(A)}componentDidCatch(e){console.error(e),this.setState({error:e});const{onError:t}=this.props;"function"===typeof t&&t(e)}render(){const{error:e}=this.state;return e?o.createElement("pre",{className:c("error")},"DataTable got stuck in invalid state. Please tell developers about it.","\n\n",e.stack&&String(e.stack)||String(e)):o.createElement(T,Object.assign({ref:this._tableRef},this.props))}resize(){this.table&&this.table.resize()}}P.FIXED=l.N2,P.MOVING=l.zQ,P.ASCENDING=l.VU,P.DESCENDING=l.xN,P.LEFT=l.M3,P.CENTER=l.Q7,P.RIGHT=l.NS;const D=P},18650:(e,t,n)=>{"use strict";n.d(t,{m:()=>E});var r=n(27145),o=n(59284),i=n(32084),a=n(81517),s=n(69220);const l={pc:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",return:"enter",mod:"ctrl",control:"ctrl",opt:"alt",option:"alt",cmd:"ctrl",command:"ctrl"},Priority:{shift:200,alt:300,ctrl:400},DisplayName:{up:"\u2191",down:"\u2193",left:"\u2190",right:"\u2192",escape:"Esc",plus:"\uff0b",enter:"Enter",ctrl:"Ctrl",alt:"Alt",shift:"Shift",tab:"Tab",backspace:"Backspace"}},mac:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",enter:"return",mod:"command",ctrl:"control",alt:"option",opt:"option",cmd:"command"},Priority:{command:100,shift:200,option:300,control:400},DisplayName:{up:"\u25b2",down:"\u25bc",left:"\u25c0",right:"\u25b6",escape:"\u238b",plus:"\uff0b",return:"\u23ce",command:"\u2318",option:"\u2325",control:"\u2303",shift:"\u21e7",backspace:"\u232b",tab:"\u21e5"}}};var c=n(98816),u=n.n(c),d=n(11078),f=n.n(d);function p(e,t){return e.trim().split(t).filter(Boolean)}const h=/\s/;function m(e,t){return p(t,h).map((t=>f()(p(t,"+").map(function(e){return function(t){var n;const r=function(e,t){var n;return t=t.toLowerCase(),null!==(n=e.NormalizeMap[t])&&void 0!==n?n:t}(e,t);return{raw:t,id:r,priority:null!==(n=e.Priority[r])&&void 0!==n?n:0,displayName:e.DisplayName[r]}}}(e)).sort(((e,t)=>t.priority-e.priority)),(e=>e.id)).map(g)))}function g(e){var t;return null!==(t=e.displayName)&&void 0!==t?t:u()(e.id)}const v=(0,s.om)("hotkey"),y={BetweenGroups:String.fromCharCode(160),BetweenKeys:String.fromCharCode(8239)},b=o.forwardRef((function(e,t){const{value:n,platform:r,view:i="light",qa:a,style:s,className:c}=e,u=function(e,t){var n;const r=null!==(n=t.platform)&&void 0!==n?n:"undefined"!==typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform)?"mac":"pc",o=l[r];return m(o,e)}(n,{platform:r}),d=[];let f=!1;return u.forEach(((e,t)=>{0!==e.length&&(f?d.push(y.BetweenGroups):f=!0,e.forEach(((e,n)=>{0===n||d.push(y.BetweenKeys,o.createElement("span",{key:`${e}_${t}_${n}_plus`,className:v("plus")},"+"),y.BetweenKeys),d.push(o.createElement("kbd",{key:`${e}_${t}_${n}`},e))})))})),0===d.length?null:o.createElement("kbd",{ref:t,style:s,"data-qa":a,className:v({view:i},c)},d)}));var w=n(39238);const _=["bottom","top"],x=(0,s.om)("action-tooltip");function E(e){const{placement:t=_,title:n,hotkey:s,children:l,className:c,contentClassName:u,description:d,disabled:f=!1,style:p,qa:h,id:m,disablePortal:g}=e,v=(0,r.Tt)(e,["placement","title","hotkey","children","className","contentClassName","description","disabled","style","qa","id","disablePortal"]),[y,E]=o.useState(null),S=(0,a.d)(y,v),k=o.Children.only(l),C=k.ref,O=(0,i.N)(E,C);return o.createElement(o.Fragment,null,o.cloneElement(k,{ref:O}),y?o.createElement(w.z,{id:m,disablePortal:g,role:"tooltip",className:x(null,c),style:p,open:S&&!f,placement:t,anchorRef:{current:y},disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:h},o.createElement("div",{className:x("content",u)},o.createElement("div",{className:x("heading")},o.createElement("div",{className:x("title")},n),s&&o.createElement(b,{view:"dark",value:s,className:x("hotkey")})),d&&o.createElement("div",{className:x("description")},d))):null)}},33705:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(59284),o=n(13066),i=n(99991);const a=(0,n(69220).om)("arrow-toggle");function s({size:e=16,direction:t="bottom",className:n,qa:s}){return r.createElement("span",{style:{width:e,height:e},className:a({direction:t},n),"data-qa":s},r.createElement(i.I,{data:o.A,size:e}))}},84476:(e,t,n)=>{"use strict";n.d(t,{$:()=>m});var r=n(59284),o=n(69220),i=n(10176),a=n(11669),s=n(41668),l=n(27629);const c=(0,o.om)("button");function u(){(0,l.m)('[Button.Icon] Physical values (left, right) of "side" property are deprecated. Use logical values (start, end) instead.')}const d=({side:e,className:t,children:n})=>r.createElement("span",{className:c("icon",{side:f(e)},t)},r.createElement("span",{className:c("icon-inner")},n));function f(e){let t=e;return"left"===t&&(u(),t="start"),"right"===t&&(u(),t="end"),t}d.displayName="Button.Icon";const p=(0,o.om)("button"),h=r.forwardRef((function({view:e="normal",size:t="m",pin:n="round-round",selected:o,disabled:i=!1,loading:s=!1,width:l,title:c,tabIndex:u,type:d="button",component:f,href:h,target:m,rel:g,extraProps:v,onClick:y,onMouseEnter:w,onMouseLeave:_,onFocus:x,onBlur:E,children:S,id:k,style:C,className:O,qa:N},T){const I={title:c,tabIndex:u,onClick:y,onClickCapture:r.useCallback((t=>{a.o.publish({componentId:"Button",eventId:"click",domEvent:t,meta:{content:t.currentTarget.textContent,view:e}})}),[e]),onMouseEnter:w,onMouseLeave:_,onFocus:x,onBlur:E,id:k,style:C,className:p({view:e,size:t,pin:n,selected:o,disabled:i||s,loading:s,width:l},O),"data-qa":N};if("string"===typeof h||f){const e={href:h,target:m,rel:"_blank"!==m||g?g:"noopener noreferrer"};return r.createElement(f||"a",Object.assign(Object.assign(Object.assign(Object.assign({},v),I),f?{}:e),{ref:T,"aria-disabled":i||s}),b(S))}return r.createElement("button",Object.assign({},v,I,{ref:T,type:d,disabled:i||s,"aria-pressed":o}),b(S))}));h.displayName="Button";const m=Object.assign(h,{Icon:d}),g=(0,s.g)(d),v=(0,s.g)("span"),y=RegExp(`^${p("icon")}($|\\s+\\w)`);function b(e){const t=r.Children.toArray(e);if(1===t.length){const e=t[0];return g(e)||v(e)&&y.test(e.props.className||"")?e:(0,i.If)(e)||(0,i.$D)(e)?r.createElement(m.Icon,{key:"icon"},e):r.createElement("span",{key:"text",className:p("text")},e)}{let e,n,o;const a=[];for(const s of t){const t=(0,i.If)(s)||(0,i.$D)(s),o=g(s),l=v(s)&&y.test(s.props.className||"");if(t||o||l)if(e||0!==a.length){if(!n&&0!==a.length){const e="icon-end",i="end";n=t?r.createElement(m.Icon,{key:e,side:i},s):o?r.cloneElement(s,{side:i}):r.cloneElement(s,{className:p("icon",{side:f(i)},s.props.className)})}}else{const n="icon-start",i="start";e=t?r.createElement(m.Icon,{key:n,side:i},s):o?r.cloneElement(s,{side:i}):r.cloneElement(s,{className:p("icon",{side:f(i)},s.props.className)})}else a.push(s)}return a.length>0&&(o=r.createElement("span",{key:"text",className:p("text")},a)),[e,n,o]}}},96873:(e,t,n)=>{"use strict";n.d(t,{b:()=>b});var r=n(27145),o=n(59284),i=n(18650),a=n(84476),s=n(2475),l=n(46700),c=n(69220),u=n(72837);const d=JSON.parse('{"startCopy":"Copy","endCopy":"Copied"}'),f=JSON.parse('{"startCopy":"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c","endCopy":"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e"}'),p=(0,u.N)({en:d,ru:f},"ClipboardButton"),h=(0,c.om)("clipboard-button"),m=1200,g=200,v={xs:12,s:16,m:16,l:16,xl:20},y=e=>{const{size:t="m",hasTooltip:n=!0,tooltipInitialText:l=p("startCopy"),tooltipSuccessText:c=p("endCopy"),status:u,view:d="flat",extraProps:f={},children:m,iconPosition:g="start",closeDelay:y,onMouseEnter:b,onFocus:w}=e,_=(0,r.Tt)(e,["size","hasTooltip","tooltipInitialText","tooltipSuccessText","status","view","extraProps","children","iconPosition","closeDelay","onMouseEnter","onFocus"]),x=o.createElement(a.$.Icon,{className:h("icon")},o.createElement(s.u,{size:v[t],status:u}));return o.createElement(i.m,{title:"success"===u?c:l,disabled:!n,closeDelay:y},o.createElement(a.$,Object.assign({view:d,size:t,extraProps:Object.assign({"aria-label":l},f),onMouseEnter:b,onFocus:w},_),"start"===g?x:null,m,"end"===g?x:null))};function b(e){const{text:t,timeout:n=m,onCopy:i,options:a,hasTooltip:s=!0,onMouseEnter:c,onFocus:u}=e,d=(0,r.Tt)(e,["text","timeout","onCopy","options","hasTooltip","onMouseEnter","onFocus"]),f=o.useRef(),[p,h]=o.useState(void 0),[v,b]=o.useState(!1);o.useEffect((()=>window.clearTimeout(f.current)),[]);const w=o.useCallback(((e,t)=>{null===i||void 0===i||i(e,t),b(!1),h(n),window.clearTimeout(f.current),f.current=window.setTimeout((()=>{b(!0)}),n-g)}),[i,n]),_=o.useCallback((()=>{v&&(b(!1),h(void 0))}),[v]),x=o.useCallback((e=>{null===c||void 0===c||c(e),_()}),[c,_]),E=o.useCallback((e=>{null===u||void 0===u||u(e),_()}),[u,_]);return o.createElement(l.$,{text:t,timeout:n,onCopy:w,options:a},(e=>o.createElement(y,Object.assign({},d,{closeDelay:p,hasTooltip:s&&!v,status:e,onMouseEnter:x,onFocus:E}))))}},2475:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var r=n(27145),o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.5 12c0 .414-.168.79-.44 1.06A1.49 1.49 0 0 1 8 13.5H4a1.49 1.49 0 0 1-1.06-.44A1.496 1.496 0 0 1 2.5 12V8c0-.414.168-.79.44-1.06A1.49 1.49 0 0 1 4 6.5h4c.414 0 .79.168 1.06.44.272.27.44.646.44 1.06v4Zm-1.47-1.03s.001 0 0 0L7.06 10l.97-.97a.75.75 0 0 0-1.06-1.06L6 8.94l-.97-.97a.75.75 0 0 0-1.06 1.06l.97.97-.97.97a.75.75 0 0 0 1.06 1.06c0 .001 0 0 0 0l.97-.97.97.97a.75.75 0 0 0 1.06-1.06ZM6.5 5H8a3 3 0 0 1 3 3v1.5h1A1.498 1.498 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4v1ZM5 4a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3h-1v1a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h1V4Z",clipRule:"evenodd"})),a=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"m8 9.076.085-.107a.751.751 0 1 0-1.171-.937L5.438 9.877 5.03 9.47a.747.747 0 0 0-1.06 0 .75.75 0 0 0 0 1.06l.407.408.593.592a.75.75 0 0 0 1.116-.061l.522-.654h.001L8 9.074Z"}),o.createElement("path",{fillRule:"evenodd",d:"M12 11a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3v-1h1ZM4 6.5A1.5 1.5 0 0 0 2.5 8v4A1.5 1.5 0 0 0 4 13.5h4A1.5 1.5 0 0 0 9.5 12V8A1.498 1.498 0 0 0 8 6.5H4ZM13.5 4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.498 1.498 0 0 0 13.5 8V4Z",clipRule:"evenodd"}))),s=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5ZM11 11h1a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3v-1ZM4 6.5h4A1.5 1.5 0 0 1 9.5 8v4A1.5 1.5 0 0 1 8 13.5H4A1.5 1.5 0 0 1 2.5 12V8A1.5 1.5 0 0 1 4 6.5Z",clipRule:"evenodd"}));var l=n(99991);function c(e){var{status:t}=e,n=(0,r.Tt)(e,["status"]);return"error"===t?o.createElement(l.I,Object.assign({data:i},n)):"success"===t?o.createElement(l.I,Object.assign({data:a},n)):o.createElement(l.I,Object.assign({data:s},n))}},46898:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var r=n(59284);const o=(0,n(69220).om)("control-label"),i=r.forwardRef((({children:e,className:t,labelClassName:n,title:i,style:a,disabled:s=!1,control:l,size:c="m",qa:u},d)=>{const f=r.cloneElement(l,{className:o("indicator",l.props.className)});return r.createElement("label",{ref:d,title:i,style:a,className:o({size:c,disabled:s},t),"data-qa":u},f,e?r.createElement("span",{className:o("text",n)},e):null)}));i.displayName="ControlLabel"},46700:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var r=n(59284),o=n(64255),i=n.n(o);const a="pending";function s(e){const{children:t,text:n,options:o,timeout:s,onCopy:l}=e,[c,u]=r.useState(a),d=r.useRef(),f=r.useMemo((()=>t(c)),[t,c]),p=r.useCallback(((e,t)=>{u(t?"success":"error"),window.clearTimeout(d.current),d.current=window.setTimeout((()=>u(a)),s),null===l||void 0===l||l(e,t)}),[l,s]);if(r.useEffect((()=>()=>window.clearTimeout(d.current)),[]),!r.isValidElement(f))throw new Error("Content must be a valid react element");return r.createElement(i(),{text:n,onCopy:p,options:o},f)}},40336:(e,t,n)=>{"use strict";n.d(t,{u:()=>k});var r=n(59284),o=n(41668),i=n(27629);const a=r.createContext(void 0);function s({direction:e,contentMaxWidth:t,nameMaxWidth:n,children:o}){const i=n?{maxWidth:n,width:n}:{},s="number"===typeof t?{width:t,maxWidth:t}:{};return r.createElement(a.Provider,{value:{keyStyle:i,valueStyle:s,direction:e}},o)}var l=n(69220);const c=(0,l.om)("definition-list");var u=n(96873);function d({copyText:e,children:t}){const n=null!==t&&void 0!==t?t:"\u2014";return e?r.createElement("div",{className:c("copy-container")},n,r.createElement(u.b,{size:"s",text:e,className:c("copy-button"),view:"flat-secondary"})):n}var f=n(27145),p=n(73633),h=n(99991),m=n(84375);const g=(0,l.om)("help-mark");function v(e){var{buttonRef:t,buttonProps:n={},children:o,className:i}=e,a=(0,f.Tt)(e,["buttonRef","buttonProps","children","className"]);return r.createElement(m.A,Object.assign({},a,{delayClosing:300,className:g(null,i),content:o}),(()=>r.createElement("button",Object.assign({ref:t,type:"button"},n,{className:g("button",n.className)}),r.createElement(h.I,{data:p.A,size:16}))))}var y=n(72837);const b=JSON.parse('{"label_note":"Note"}'),w=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),_=(0,y.N)({en:b,ru:w},"DefinitionList");function x({note:e}){if(!e)return null;const t=c("item-note-tooltip");if("string"===typeof e)return r.createElement(v,{className:t,placement:["bottom","top"],buttonProps:{"aria-label":_("label_note")}},e);if("object"===typeof e){const{buttonProps:n}=e,o=(0,f.Tt)(e,["buttonProps"]);return r.createElement(v,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":_("label_note")},n)},o))}return null}function E({note:e,name:t,direction:n}){const o=e?r.createElement(r.Fragment,null,"\xa0",r.createElement(x,{note:e})):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:c("term-wrapper")},t,o),"horizontal"===n&&r.createElement("div",{className:c("dots")}))}function S({name:e,children:t,copyText:n,note:o}){const{direction:i,keyStyle:s,valueStyle:l}=function(){const e=r.useContext(a);if(void 0===e)throw new Error("useDefinitionListAttributes must be used within DefinitionListProvider");return e}();return r.createElement("div",{className:c("item")},r.createElement("dt",{className:c("term-container"),style:s},r.createElement(E,{direction:i,name:e,note:o})),r.createElement("dd",{className:c("definition"),style:Object.assign(Object.assign({},l),{lineBreak:"string"===typeof t&&(u=20,function(e){return e.split(/\s+/).some((e=>e.length>u))})(t)?"anywhere":void 0})},r.createElement(d,{copyText:n},t)));var u}function k({responsive:e,direction:t="horizontal",nameMaxWidth:n,contentMaxWidth:o,className:a,children:l,qa:u}){const d=function(e){const t=r.Children.toArray(e),n=[];for(const r of t){C(r)?n.push(r):(0,i.m)("[DefinitionList] Only <DefinitionList.Item> components is allowed as children")}return n}(l);return r.createElement(s,{direction:t,nameMaxWidth:n,contentMaxWidth:o},r.createElement("dl",{className:c({responsive:e,vertical:"vertical"===t},a),"data-qa":u},d))}S.displayName="DefinitionListItem";const C=(0,o.g)(S);k.Item=S,k.displayName="DefinitionList"},40569:(e,t,n)=>{"use strict";n.d(t,{r:()=>F});var r=n(59284),o=n(7450),i=n(46734),a=n(84476),s=n(99991),l=n(69220);const c=(0,l.om)("dropdown-menu"),u=r.createContext({toggle(){},data:void 0});u.displayName="DropdownMenu.Context";var d=n(27145),f=n(9187),p=n(38602),h=n(90826);const m=(0,l.om)("menu"),g=r.forwardRef((function({label:e,children:t,style:n,className:o,qa:i},a){const s=(0,h.u)();return r.createElement("li",{ref:a,className:m("list-group-item")},r.createElement("div",{style:n,className:m("group",o),"data-qa":i},e&&r.createElement("div",{id:s,className:m("group-label")},e),r.createElement("ul",{role:"group","aria-labelledby":s,className:m("group-list")},t)))}));var v=n(11669);const y=(0,l.om)("menu"),b=r.forwardRef((function({icon:e,iconStart:t=e,iconEnd:n,title:o,disabled:a,active:s,selected:l,href:c,target:u,rel:d,onClick:f,style:p,className:h,theme:m,extraProps:g,children:b,qa:w},_){const{onKeyDown:x}=(0,i.N)(f),E=r.useCallback((e=>{v.o.publish({componentId:"MenuItem",eventId:"click",domEvent:e})}),[]),S={role:"menuitem",onKeyDown:f&&!a?x:void 0},k={title:o,onClick:a?void 0:f,onClickCapture:a?void 0:E,style:p,tabIndex:a?-1:0,className:y("item",{disabled:a,active:s,selected:l,theme:m,interactive:Boolean(f)||Boolean(c)},h),"data-qa":w},C=[t&&r.createElement("div",{key:"icon-start",className:y("item-icon")},t),r.createElement("div",{key:"content",className:y("item-content")},b),n&&r.createElement("div",{key:"icon-end",className:y("item-icon-end")},n)];let O;return O=c?r.createElement("a",Object.assign({},S,g,k,{href:c,target:u,rel:d}),C):r.createElement("div",Object.assign({},S,g,k),C),r.createElement("li",{ref:_,className:y("list-item")},O)})),w=(0,l.om)("menu"),_=r.forwardRef((function({size:e="m",children:t,style:n,className:o,qa:i},a){return r.createElement("ul",{ref:a,role:"menu",style:n,className:w({size:e},o),"data-qa":i},t)}));_.Item=b,_.Group=g;var x=n(54245);function E(e,t,n=1,r){const o=(e.length+t-n%e.length)%e.length;return r&&r(e[o])?E(e,o,1,r):o}function S(e,t,n=1,r){const o=(t+n)%e.length;return r&&r(e[o])?S(e,o,1,r):o}var k=n(39238);const C=[],O=r.createContext({activeMenuPath:C,setActiveMenuPath:()=>{},anchorRef:{current:null}}),N=({anchorRef:e,children:t,disabled:n})=>{const[o,i]=r.useState(C);r.useEffect((()=>{n&&i(C)}),[n]);const a=r.useMemo((()=>({activeMenuPath:o,setActiveMenuPath:i,anchorRef:e})),[o,e]);return r.createElement(O.Provider,{value:a},t)},T={text:"",action:()=>{},path:[]};function I(e){return e===T}function A(e){return e.disabled||I(e)}function P(e){var t;return null!==(t=null===e||void 0===e?void 0:e.join(" "))&&void 0!==t?t:""}const D=({items:e,open:t,anchorRef:n,onClose:o,size:i,menuProps:a,children:s,popupProps:l,path:d=[]})=>{const{toggle:f,data:p}=r.useContext(u),{activeMenuPath:h,setActiveMenuPath:m,anchorRef:g}=r.useContext(O),v=d.length>0,y=r.useCallback((()=>{m(d.slice(0,d.length-1))}),[m,d]),b=r.useCallback((e=>{var t;m(d),null===(t=null===l||void 0===l?void 0:l.onMouseEnter)||void 0===t||t.call(l,e)}),[d,l,m]),w=r.useCallback((e=>{var t;y(),null===(t=null===l||void 0===l?void 0:l.onMouseLeave)||void 0===t||t.call(l,e)}),[y,l]),x=r.useCallback(((e,t)=>{var n;e.items&&e.path?m(e.path):(null===(n=e.action)||void 0===n||n.call(e,t,p),f(!1))}),[p,m,f]),C=r.useCallback(((t,n)=>{switch(n.key){case"Escape":return v&&(n.stopPropagation(),null===y||void 0===y||y()),!1;case"Enter":case" ":{const r=e[t],o=null===r||void 0===r?void 0:r.items;return(v||o)&&(n.stopPropagation(),n.preventDefault()),r&&x(r,n),!1}}return!0}),[y,x,v,e]),N=t&&P(d)===P(h),{activeItemIndex:T,setActiveItemIndex:D,reset:R}=function({items:e,skip:t,pageSize:n,processHomeKey:o=!0,processEndKey:i=!0,anchorRef:a,disabled:s=!1,initialValue:l=-1,onAnchorKeyDown:c}){const[u,d]=r.useState(l),f=r.useCallback((()=>{d(l)}),[l]);return r.useEffect((()=>{e&&f()}),[e,f]),r.useLayoutEffect((()=>{if(s)return;if(!e.some((e=>!(null===t||void 0===t?void 0:t(e)))))return;const r=null===a||void 0===a?void 0:a.current;if(!r)return;const l=r=>{if(!1!==(null===c||void 0===c?void 0:c(u,r)))switch(r.key){case"ArrowDown":r.preventDefault(),d((n=>S(e,n,1,t)));break;case"ArrowUp":r.preventDefault(),d((n=>E(e,n,1,t)));break;case"PageDown":if(!n)return;r.preventDefault(),d((r=>S(e,r,n,t)));break;case"PageUp":if(!n)return;r.preventDefault(),d((r=>E(e,r,n,t)));break;case"Home":if(!o)return;r.preventDefault(),d((n=>E(e,n,n,t)));break;case"End":if(!i)return;r.preventDefault(),d((n=>E(e,n,n+1,t)))}};return r.addEventListener("keydown",l),()=>{r.removeEventListener("keydown",l)}}),[u,a,s,e,c,n,i,o,t]),{activeItemIndex:u,setActiveItemIndex:d,reset:f}}({items:e,skip:A,anchorRef:g,onAnchorKeyDown:C,disabled:!N,initialValue:v?0:-1});return r.useEffect((()=>{t||R()}),[t,R]),r.createElement(k.z,Object.assign({open:t,anchorRef:n,onClose:o},l,{onMouseEnter:b,onMouseLeave:w}),s||r.createElement(_,Object.assign({className:c("menu"),size:i},a),e.map(((e,n)=>{var i;const a=N&&T===n,s=t&&!a&&0!==h.length&&P(e.path)===P(h.slice(0,e.path.length)),u=Object.assign(Object.assign({},e.extraProps),{onMouseEnter:()=>D(n)});return r.createElement(M,Object.assign({key:n,className:c("menu-item",{separator:I(e),"active-parent":s,"with-submenu":Boolean(null===(i=e.items)||void 0===i?void 0:i.length)},e.className),selected:a,popupProps:l,closeMenu:o},e,{extraProps:u}))}))))};function R(e,t){var n;return null!==(n=null===e||void 0===e?void 0:e.every(((e,n)=>e===(null===t||void 0===t?void 0:t[n]))))&&void 0!==n&&n}function j({items:e,path:t}){const{activeMenuPath:n,setActiveMenuPath:o}=r.useContext(O),i=Boolean(t)&&Boolean(null===e||void 0===e?void 0:e.length),a=r.useCallback((()=>{t&&o(t.slice(0,t.length-1))}),[t,o]),s=r.useCallback((()=>{t&&o(t)}),[t,o]);return{hasSubmenu:i,isSubmenuOpen:R(t,n),openSubmenu:s,closeSubmenu:a}}const M=e=>{var{text:t,action:n,items:o,popupProps:i,closeMenu:a,children:l,path:h}=e,m=(0,d.Tt)(e,["text","action","items","popupProps","closeMenu","children","path"]);const{toggle:g,data:v}=r.useContext(u),y=r.useRef(null),b=(0,x.j)(),{hasSubmenu:w,isSubmenuOpen:E,closeSubmenu:S,openSubmenu:k}=j({items:o,path:h}),C=r.useCallback((()=>{const e=()=>{a?a():g(!1)};w?(S(),requestAnimationFrame(e)):e()}),[a,S,w,g]),O=r.useCallback((e=>{w||(null===n||void 0===n||n(e,v),C())}),[n,v,C,w]),N=r.useMemo((()=>Object.assign(Object.assign({},m.extraProps),{onMouseEnter:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseEnter)||void 0===n||n.call(t,e),w&&k()},onMouseLeave:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseLeave)||void 0===n||n.call(t,e),w&&S()}})),[m.extraProps,S,w,k]),T=r.useMemo((()=>"rtl"===b?["left-start","right-start"]:["right-start","left-start"]),[b]),I=r.useMemo((()=>w?r.createElement(s.I,{data:"rtl"===b?f.A:p.A,size:10,className:c("sub-menu-arrow")}):m.iconEnd),[w,b,m.iconEnd]);return r.createElement(r.Fragment,null,r.createElement(_.Item,Object.assign({ref:y},m,{extraProps:N,onClick:O,iconEnd:I}),t||l),w&&o&&r.createElement(D,{popupProps:Object.assign(Object.assign({},i),{className:c("sub-menu",null===i||void 0===i?void 0:i.className),placement:T}),items:o,path:h,open:E,anchorRef:y,onClose:C}))};function L(e,t,n,o=void 0!==e&&void 0!==t){const i=function(e,t){const[n,o]=r.useState(e);return[n,r.useCallback((e=>{"function"===typeof e?o((n=>{const r=e(n);return null===t||void 0===t||t(r),r})):(null===t||void 0===t||t(e),o(e))}),[t])]}(e||n,t);return o?[e,t]:i}function z(e,t,n=[],r=0){const o=[];let i=!1,a=r;for(const s of e)if(Array.isArray(s)){const e=z(s,t,n,a);0!==o.length&&o.push(t),o.push(...e),a+=e.length,i=!0}else{if(s.hidden)continue;i&&o.push(t);const e=Object.assign(Object.assign({},s),{path:[...n,a++]});s.items&&(e.items=z(s.items,t,e.path)),o.push(e),i=!1}return o}const F=Object.assign((({items:e=[],size:t="m",icon:n=r.createElement(s.I,{data:o.A}),open:l,onOpenToggle:d,hideOnScroll:f=!0,data:p,disabled:h,switcher:m,renderSwitcher:g,switcherWrapperClassName:v,defaultSwitcherProps:y,defaultSwitcherClassName:b,onSwitcherClick:w,menuProps:_,popupProps:x,children:E})=>{const S=r.useRef(null),{isPopupShown:k,togglePopup:C,closePopup:O}=function(e,t,n){const[o,i]=L(e,t,!1),a=r.useCallback((e=>{i((t=>"boolean"===typeof e?e:!t))}),[i]),s=r.useCallback((()=>{i(!1)}),[i]);return r.useEffect((()=>{n&&o&&s()}),[s,n,o]),{isPopupShown:o,togglePopup:a,closePopup:s}}(l,d,h);!function(e,t,n){r.useEffect((()=>{if(n)return;const r=n=>{n.target.contains(t.current)&&e(n)};return document.addEventListener("scroll",r,!0),()=>{document.removeEventListener("scroll",r,!0)}}),[t,e,n])}(O,S,!k||!f);const I=r.useMemo((()=>({toggle:C,data:p})),[p,C]),A=r.useMemo((()=>z(e,T)),[e]),P=r.useCallback((e=>{h||(null===w||void 0===w||w(e),C())}),[h,w,C]),{onKeyDown:R}=(0,i.N)(P),j=r.useMemo((()=>({onClick:P,onKeyDown:R})),[P,R]);return r.createElement(u.Provider,{value:I},r.createElement("div",Object.assign({ref:S,className:c("switcher-wrapper",v)},g?{}:j),(null===g||void 0===g?void 0:g(j))||m||r.createElement(a.$,Object.assign({view:"flat",size:t},y,{className:c("switcher-button",b),disabled:h}),n)),r.createElement(N,{anchorRef:S,disabled:!k},r.createElement(D,{items:A,open:k,size:t,menuProps:_,anchorRef:S,onClose:O,popupProps:x},E)))}),{Item:M})},99991:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(59284),o=n(69220);const i={"aria-hidden":!0};function a(e){return"object"===typeof e}function s(e){return"string"===typeof e}const l=(0,o.om)("icon"),c=r.forwardRef((({data:e,width:t,height:n,size:o,className:u,fill:d="currentColor",stroke:f="none",qa:p},h)=>{let m,g,v;if(o&&(m=o,g=o),t&&(m=t),n&&(g=n),a(e))({viewBox:v}=e);else if(s(e))v=function(e){const t=e.match(/viewBox=(["']?)([\d\s,-]+)\1/);return t?t[2]:void 0}(e);else if(function(e){return("object"===typeof e||"function"===typeof e)&&"defaultProps"in e}(e))({viewBox:v}=e.defaultProps);else if(function(e){return"function"===typeof e&&(!e.prototype||!e.prototype.render)}(e)){const t=e({});t&&({viewBox:v}=t.props)}if(v&&(!m||!g)){const e=v.split(/\s+|\s*,\s*/);m||(m=e[2]),g||(g=e[3])}const y=Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:m,height:g,className:l(null,u),fill:d,stroke:f,"data-qa":p},i);if(s(e)){const t=function(e){return e.replace(/<svg[^>]*>/,(e=>e.replace(/(width|height)=(["']?)\d+\2/g,"").replace(/(\s){2,}\b/g,"$1").replace(/(\s)+>/g,">")))}(e);return r.createElement("svg",Object.assign({},y,{ref:h,dangerouslySetInnerHTML:{__html:t}}))}if(a(e)){const t=c.prefix+(e.url||`#${e.id}`);return r.createElement("svg",Object.assign({},y,{viewBox:v,ref:h}),r.createElement("use",{href:t,xlinkHref:t}))}const b=e;return b.defaultProps&&(b.defaultProps.width=b.defaultProps.height=void 0),r.createElement("svg",Object.assign({},y,{ref:h}),r.createElement(b,{width:void 0,height:void 0}))}));c.displayName="Icon",c.prefix=""},47665:(e,t,n)=>{"use strict";n.d(t,{J:()=>u});var r=n(59284),o=n(81240),i=n(2475),a=n(46700),s=n(99991);const l=(0,n(69220).om)("label"),c={xs:{copyIconSize:12,closeIconSize:12},s:{copyIconSize:14,closeIconSize:14},m:{copyIconSize:16,closeIconSize:16}},u=r.forwardRef((function(e,t){const{type:n="default",theme:u="normal",size:d="xs",title:f,icon:p,children:h,onCloseClick:m,className:g,disabled:v,copyText:y,closeButtonLabel:b,copyButtonLabel:w,interactive:_=!1,value:x,onCopy:E,onClick:S,qa:k}=e,C=Boolean(""!==h&&r.Children.count(h)>0),O="close"===n&&C,N="copy"===n&&C,T="function"===typeof S,I=Boolean(N&&y),A=(T||I||_)&&!v,{copyIconSize:P,closeIconSize:D}=c[d],R=p&&r.createElement("div",{className:l("addon",{side:C?"start":void 0,type:"icon"})},p),j=C&&r.createElement("div",{className:l("text")},r.createElement("div",{className:l("content")},h),Boolean(x)&&r.createElement("div",{className:l("value")},r.createElement("div",{className:l("separator")},":"),r.createElement("div",{className:l("key")},x))),M=e=>{let n;return N?n=r.createElement("button",{type:"button","aria-label":w||void 0,onClick:T?S:void 0,disabled:v,className:l("addon",{side:"end",type:"button"})},r.createElement(i.u,{status:e||"pending",size:P})):O&&(n=r.createElement("button",{type:"button",onClick:m,"aria-label":b||void 0,disabled:v,className:l("addon",{side:"end",type:"button"})},r.createElement(s.I,{size:D,data:o.A}))),r.createElement("div",{ref:t,className:l({theme:u,size:d,interactive:A,disabled:v},g),title:f,"data-qa":k},R,T?r.createElement("button",{disabled:v,type:"button",onClick:S,className:l("main-button")},j):j,n)};return I&&y&&!T?r.createElement(a.$,{text:y,onCopy:E,timeout:1e3},(e=>M(e))):M()}))},67884:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(59284),o=n(69220),i=n(11669);const a=(0,o.om)("link"),s=r.forwardRef((function({view:e="normal",visitable:t,underline:n,href:o,target:s,rel:l,title:c,children:u,extraProps:d,onClick:f,onFocus:p,onBlur:h,id:m,style:g,className:v,qa:y},b){const w={title:c,onClick:f,onClickCapture:r.useCallback((e=>{i.o.publish({componentId:"Link",eventId:"click",domEvent:e})}),[]),onFocus:p,onBlur:h,id:m,style:g,className:a({view:e,visitable:t,underline:n},v),"data-qa":y},_="_blank"!==s||l?l:"noopener noreferrer";return r.createElement("a",Object.assign({},d,w,{ref:b,href:o,target:s,rel:_}),u)}))},40091:(e,t,n)=>{"use strict";n.d(t,{B:()=>le});var r=n(59284),o=n(62060),i=n.n(o),a=n(38469),s=n.n(a),l=n(53202);let c;c="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let u=null,d=null;const f=c.clearTimeout,p=c.setTimeout,h=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame,m=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame;function g(e){let t,n,r,o,i,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&u(this.__resizeRAF__),this.__resizeRAF__=d((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){p=c[n],l="-"+p.toLowerCase()+"-",r=f[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,u){if(l)i.attachEvent("onresize",u);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,u=c.getComputedStyle(i);u&&"static"===u.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const f=l.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(d),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==h||null==m?(u=f,d=function(e){return p(e,20)}):(u=function([e,t]){h(e),f(t)},d=function(e){const t=m((function(){f(n),e()})),n=p((function(){h(t),e()}),20);return[t,n]});class v extends r.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=g(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:o=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:p,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return o||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),i||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),a&&(y=!1),(0,r.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}var y=n(58168),b=n(9417),w=n(25540),_=n(77995),x="object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function E(e){cancelAnimationFrame(e.id)}function S(e,t){var n=x();var r={id:requestAnimationFrame((function o(){x()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var k=-1;function C(e){if(void 0===e&&(e=!1),-1===k||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),k=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return k}var O=null;function N(e){if(void 0===e&&(e=!1),null===O||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?O="positive-descending":(t.scrollLeft=1,O=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),O}return O}var T=function(e,t){return e};function I(e){var t,n=e.getItemOffset,o=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=c(r.props,(0,b.A)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,b.A)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=(0,_.A)((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=(0,_.A)((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,o=r.props,a=o.direction,s=o.itemSize,l=o.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),f=i(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,h="rtl"===a,m=p?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=(0,_.A)((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(N()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&E(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=S(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}(0,w.A)(t,e),t.getDerivedStateFromProps=function(e,t){return A(e,t),d(e),null};var f=t.prototype;return f.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?C():0:l.scrollHeight>l.clientHeight?C():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,s))},f.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},f.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(N()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&E(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,c=e.innerTagName,u=e.itemCount,d=e.itemData,f=e.itemKey,p=void 0===f?T:f,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,b=e.useIsScrolling,w=e.width,_=this.state.isScrolling,x="horizontal"===i||"horizontal"===h,E=x?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),k=S[0],C=S[1],O=[];if(u>0)for(var N=k;N<=C;N++)O.push((0,r.createElement)(t,{data:d,key:p(N,d),index:N,isScrolling:b?_:void 0,style:this._getItemStyle(N)}));var I=o(this.props,this._instanceProps);return(0,r.createElement)(m||g||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:(0,y.A)({position:"relative",height:a,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},(0,r.createElement)(l||c||"div",{children:O,ref:s,style:{height:x?"100%":I,pointerEvents:_?"none":void 0,width:x?I:"100%"}}))},f._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"===typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var c=s(this.props,a,this._instanceProps),u=l(this.props,c,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),f=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+f)),c,u]},t}(r.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var A=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},P=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var c=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return o[t]},D=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=P(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},R=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&P(e,n,t).offset<r;)n+=i,i*=2;return D(e,t,Math.min(n,o-1),Math.floor(n/2),r)},j=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},M=I({getItemOffset:function(e,t,n){return P(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:j,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=P(e,t,o),f=j(e,o),p=Math.max(0,Math.min(f-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===n&&(n=r>=h-u&&r<=p+u?"auto":"center"),n){case"start":return p;case"end":return h;case"center":return Math.round(h+(p-h)/2);default:return r>=h&&r<=p?r:r<h?h:p}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?D(e,t,o,0,n):R(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=P(e,t,r),d=n+c,f=u.offset+u.size,p=t;p<a-1&&f<d;)p++,f+=P(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});var L=n(28664),z=n(11507),F=n(54245),B=n(69220),U=n(10176),q=n(29322),$=n(74417);const H=(0,B.om)("list"),W=e=>{const t=r.useRef(null);return(0,q.v)({element:t.current,onIntersect:null===e||void 0===e?void 0:e.onIntersect}),r.createElement("div",{ref:t,className:H("loading-indicator")},r.createElement($.a,{qa:"list-loader"}))};var V=n(66821),G=n(99991),Z=n(11669),K=n(359);const Y="list-active-item",Q=[K.D.TAB],J=(0,B.om)("list"),X=e=>String(e);function ee(e,t){return t?Object.assign(Object.assign({},null===e||void 0===e?void 0:e.draggableProps.style),t):null===e||void 0===e?void 0:e.draggableProps.style}class te extends r.Component{constructor(){super(...arguments),this.node=null,this.getNode=()=>this.node,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.onClick=e=>{this.props.onClick&&this.props.onClick(this.props.item,this.props.itemIndex,!1,e)},this.onClickCapture=e=>{te.publishEvent({domEvent:e,eventId:"click"})},this.onMouseEnter=()=>!this.props.item.disabled&&this.props.onActivate(this.props.itemIndex)}render(){var e,t;const{item:n,height:o,style:i,sortable:a,sortHandleAlign:s,itemClassName:l,selected:c,active:u,role:d="listitem",isDragging:f=!1}=this.props,p=Object.assign(Object.assign({height:o},i),{right:void 0});return r.createElement("div",Object.assign({role:d,"aria-selected":c,"aria-disabled":n.disabled,"data-qa":u?Y:void 0,className:J("item",{sortable:a,active:u,selected:c,inactive:n.disabled,"sort-handle-align":s,dragging:f},l)},null===(e=this.props.provided)||void 0===e?void 0:e.draggableProps,null===(t=this.props.provided)||void 0===t?void 0:t.dragHandleProps,{style:ee(this.props.provided,p),onClick:n.disabled?void 0:this.onClick,onClickCapture:n.disabled?void 0:this.onClickCapture,onMouseEnter:this.onMouseEnter,ref:this.setRef,id:`${this.props.listId}-item-${this.props.itemIndex}`}),this.renderSortIcon(),this.renderContent())}renderSortIcon(){const{sortable:e}=this.props;return e?r.createElement("div",{className:J("item-sort-icon")},r.createElement(G.I,{data:V.A,size:12})):null}renderContent(){const{renderItem:e=X,item:t,active:n,itemIndex:o}=this.props;return r.createElement("div",{className:J("item-content")},e(t,n,o))}}te.publishEvent=Z.o.withEventPublisher("List");var ne=n(36613),re=n.n(ne);function oe(e){return re()(e).reduce(((e,t)=>(e[t]=r.createRef(),e)),{})}class ie extends r.Component{static getDerivedStateFromProps({itemCount:e},t){return e===Object.keys(t.refsList).length?t:{refsList:oe(e)}}constructor(e){super(e),this.node=null,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.state={refsList:oe(e.itemCount)}}render(){const e=r.Children.map(this.props.children,((e,t)=>r.cloneElement(e,{ref:this.state.refsList[t]})));return r.createElement("div",{ref:this.setRef},e)}scrollToItem(e){var t,n,r,o;const i=null===(t=this.state.refsList[e])||void 0===t?void 0:t.current;if(i&&"function"===typeof i.getNode){const e=i.getNode();e&&((null===(r=(n=this.props).onScrollToItem)||void 0===r?void 0:r.call(n,e))||null===(o=e.scrollIntoView)||void 0===o||o.call(e,{block:"nearest"}))}}}const ae=(0,B.om)("list"),se=r.forwardRef(((e,t)=>r.createElement(M,Object.assign({ref:t},e,{direction:(0,F.j)()}))));se.displayName="ListContainer";class le extends r.Component{constructor(){super(...arguments),this.state={items:this.props.items,activeItem:this.props.activeItemIndex,filter:""},this.refFilter=r.createRef(),this.refContainer=r.createRef(),this.blurTimer=null,this.loadingItem={value:"__LIST_ITEM_LOADING__",disabled:!1},this.uniqId=(0,U.zm)(),this.onKeyDown=e=>{const{activeItem:t,pageSize:n}=this.state;if(Q.includes(e.key))return;const r=e.target instanceof HTMLInputElement;switch(e.key){case"ArrowDown":this.handleKeyMove(e,1,-1);break;case"ArrowUp":this.handleKeyMove(e,-1);break;case"PageDown":this.handleKeyMove(e,null!==n&&void 0!==n?n:10);break;case"PageUp":this.handleKeyMove(e,-(null!==n&&void 0!==n?n:10));break;case"Home":if(r)return;this.handleKeyMove(e,this.state.items.length-(t||0));break;case"End":if(r)return;this.handleKeyMove(e,-(t||0)-1);break;case"Enter":"number"===typeof t&&this.props.onItemClick&&this.props.onItemClick(this.state.items[t],t,!0,e);break;default:this.refFilter.current&&this.refFilter.current.focus()}},this.renderItemContent=(e,t,n)=>{const{onLoadMore:o}=this.props;return s()(e)&&"value"in e&&e.value===this.loadingItem.value?r.createElement(W,{onIntersect:0===n?void 0:o}):this.props.renderItem?this.props.renderItem(e,t,n):X(e)},this.renderItem=({index:e,style:t,height:n,provided:o,isDragging:i})=>{var a;const{sortHandleAlign:s,role:l}=this.props,{items:c,activeItem:u}=this.state,d=this.getItemsWithLoading()[e],f=this.props.sortable&&c.length>1&&!this.getFilter(),p=e===u||e===this.props.activeItemIndex,h=Array.isArray(this.props.selectedItemIndex)?this.props.selectedItemIndex.includes(e):e===this.props.selectedItemIndex;return r.createElement(te,{key:e,style:t,height:n,itemIndex:e,item:d,sortable:f,sortHandleAlign:s,renderItem:this.renderItemContent,itemClassName:this.props.itemClassName,active:p,selected:h,onActivate:this.onItemActivate,onClick:this.props.onItemClick,role:"listbox"===l?"option":"listitem",listId:null!==(a=this.props.id)&&void 0!==a?a:this.uniqId,provided:o,isDragging:i})},this.renderVirtualizedItem=({index:e,style:t})=>r.createElement(l.sx,{draggableId:String(e),index:e,key:`item-key-${e}`},(n=>this.renderItem({index:e,style:t,provided:n}))),this.filterItem=e=>t=>String(t).includes(e),this.scrollToIndex=e=>{const t=this.refContainer.current;t&&t.scrollToItem(e)},this.deactivate=()=>{this.blurTimer&&(this.blurTimer=null,this.props.deactivateOnLeave&&this.setState({activeItem:void 0}))},this.handleFocus=()=>{this.blurTimer&&(clearTimeout(this.blurTimer),this.blurTimer=null)},this.handleBlur=()=>{this.blurTimer||(this.blurTimer=setTimeout(this.deactivate,50))},this.onUpdateFilterInternal=e=>{const{items:t,filterItem:n=this.filterItem,onFilterEnd:r}=this.props;this.setState({filter:e,items:e?t.filter(n(e)):t},(()=>{r&&r({items:this.state.items})}))},this.onFilterUpdate=e=>{this.props.onFilterUpdate?this.props.onFilterUpdate(e):this.onUpdateFilterInternal(e)},this.onItemsRendered=({visibleStartIndex:e,visibleStopIndex:t})=>{this.setState({pageSize:t-e})},this.onItemActivate=e=>{this.state.sorting||this.activateItem(e,!1)},this.onMouseLeave=()=>{this.handleBlur()},this.onSortStart=()=>{this.setState({sorting:!0})},this.onSortEnd=e=>{if(!e.destination)return void this.setState({sorting:!1});if(e.source.index===e.destination.index)return void this.setState({sorting:!1});const t=e.source.index,n=e.destination.index;this.props.onSortEnd&&this.props.onSortEnd({oldIndex:t,newIndex:n});const r=((e,t,n)=>{const r=Array.from(e),[o]=r.splice(t,1);return r.splice(n,0,o),r})(this.getItems(),t,n);this.setState({activeItem:n,items:r,sorting:!1})},this.getItemHeight=e=>{const{itemHeight:t}=this.props;if("function"===typeof t){const{items:n}=this.state;return t(n[e],e)}return t},this.getVirtualizedItemHeight=e=>this.getItemHeight(e)||28}static moveListElement(e,t,n){if(t!==n){const[r]=e.splice(t,1);e.splice(n,0,r)}return e}static findNextIndex(e,t,n){const r=e.length;let o=(t+r)%r;for(let i=0;i<r;i+=1){if(e[o]&&!e[o].disabled)return o;o=(o+r+n)%r}}componentDidMount(){this.activateItem(this.props.activeItemIndex,!0)}componentDidUpdate(e,t){if(!i()(this.props.items,e.items)){const e=this.getFilter();e&&!this.props.onFilterUpdate?this.onUpdateFilterInternal(e):this.setState({items:this.props.items})}this.props.activeItemIndex!==e.activeItemIndex&&this.activateItem(this.props.activeItemIndex),this.props.onChangeActive&&this.state.activeItem!==t.activeItem&&this.props.onChangeActive(this.state.activeItem)}componentWillUnmount(){this.blurTimer=null}render(){const{id:e,emptyPlaceholder:t,virtualized:n,className:o,itemsClassName:i,qa:a,role:s="list"}=this.props,{items:l}=this.state;return r.createElement(z.G.Consumer,null,(({mobile:c})=>r.createElement("div",{className:ae({mobile:c},o),"data-qa":a,tabIndex:-1,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.onKeyDown},this.renderFilter(),r.createElement("div",{id:e,className:ae("items",{virtualized:n},i),style:this.getItemsStyle(),onMouseLeave:this.onMouseLeave,role:s},this.renderItems(),0===l.length&&Boolean(t)&&r.createElement("div",{className:ae("empty-placeholder")},t)))))}getItems(){return this.state.items}getItemsWithLoading(){return this.props.sortable?this.getItems():this.props.loading?[...this.state.items,this.loadingItem]:this.getItems()}getActiveItem(){return"number"===typeof this.state.activeItem?this.state.activeItem:null}activateItem(e,t=!0){this.setState({activeItem:e},(()=>{"number"===typeof e&&t&&this.scrollToIndex(e)}))}renderFilter(){const{size:e,filterable:t,filter:n=this.state.filter,filterPlaceholder:o,filterClassName:i="",autoFocus:a}=this.props;return t?r.createElement("div",{className:ae("filter",i)},r.createElement(L.k,{controlRef:this.refFilter,size:e,placeholder:o,value:n,hasClear:!0,onUpdate:this.onFilterUpdate,autoFocus:a})):null}renderSimpleContainer(){const{sortable:e}=this.props,t=this.getItemsWithLoading();return e?r.createElement(l.JY,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.gL,{droppableId:"droppable",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(e=>r.createElement(ie,{ref:this.refContainer,itemCount:t.length,provided:e,onScrollToItem:this.props.onScrollToItem},t.map(((e,t)=>r.createElement(l.sx,{draggableId:String(t),index:t,key:`item-key-${t}`},((e,n)=>this.renderItem({index:t,isDragging:n.isDragging,provided:e,height:this.getItemHeight(t)}))))))))):r.createElement(ie,{itemCount:t.length,ref:this.refContainer,onScrollToItem:this.props.onScrollToItem},t.map(((e,t)=>this.renderItem({index:t,height:this.getItemHeight(t)}))))}renderVirtualizedContainer(){const e=[...this.getItemsWithLoading()];return this.props.sortable?r.createElement(l.JY,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.gL,{droppableId:"droppable",mode:"virtual",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(t=>r.createElement(v,null,(({width:n,height:o})=>r.createElement(se,{ref:this.refContainer,outerRef:t.innerRef,width:n,height:o,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderVirtualizedItem)))))):r.createElement(v,null,(({width:t,height:n})=>r.createElement(se,{ref:this.refContainer,width:t,height:n,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderItem)))}renderItems(){return this.props.virtualized?this.renderVirtualizedContainer():this.renderSimpleContainer()}getFilter(){const{filter:e=this.state.filter}=this.props;return e}getItemsStyle(){let{itemsHeight:e}=this.props;return"function"===typeof e&&(e=e(this.state.items)),e?{height:e}:void 0}handleKeyMove(e,t,n=0){const{activeItem:r=n}=this.state;e.preventDefault();const o=this.getItemsWithLoading();this.activateItem(le.findNextIndex(o,r+t,Math.sign(t)))}}le.defaultProps={items:[],itemClassName:"",filterable:!0,sortable:!1,virtualized:!0,deactivateOnLeave:!0}},74417:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(59284);const o=(0,n(69220).om)("loader");function i({size:e="s",className:t,qa:n}){return r.createElement("div",{className:o({size:e},t),"data-qa":n},r.createElement("div",{className:o("left")}),r.createElement("div",{className:o("center")}),r.createElement("div",{className:o("right")}))}},84375:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(59284),o=n(81240),i=n(84476),a=n(99991),s=n(39238),l=n(54245),c=n(27629);const u=(0,n(69220).om)("popover"),d=(e,t=!1)=>{switch(e){case"special":return t?"normal-contrast":"flat-contrast";case"announcement":return t?"normal-contrast":"outlined";default:return t?"normal":"flat"}},f=({theme:e,tooltipActionButton:t,tooltipCancelButton:n})=>t||n?r.createElement("div",{className:u("tooltip-buttons")},t&&r.createElement(i.$,{view:d(e,!0),width:"max",onClick:t.onClick,className:u("tooltip-button")},t.text),n&&r.createElement(i.$,{view:d(e,!1),width:"max",onClick:n.onClick,className:u("tooltip-button")},n.text)):null,p=({secondary:e,htmlContent:t,content:n,className:o})=>t||n?t?r.createElement("div",{className:u("tooltip-content",{secondary:e},o),dangerouslySetInnerHTML:{__html:t}}):n?r.createElement("div",{className:u("tooltip-content",{secondary:e},o)},n):null:null;var h=n(67884);const m=({links:e})=>0===e.length?null:r.createElement("div",{className:u("tooltip-links")},e.map(((e,t)=>{const{text:n,href:o,target:i="_blank",onClick:a}=e;return r.createElement(r.Fragment,{key:`link-${t}`},r.createElement(h.N,{href:o,target:i,onClick:a,className:u("tooltip-link")},n),r.createElement("br",null))})));var g=n(46734);const v=({open:e,openOnHover:t,disabled:n,className:o,openTooltip:i,closeTooltip:a,closedManually:s,onClick:l,children:c})=>{const u=async r=>{if(n||e&&t)return;if(!(!l||await l(r)))return;e?(a(),s.current=!0):(i(),s.current=!1)},{onKeyDown:d}=(0,g.N)(u);return"function"===typeof c?r.createElement(r.Fragment,null,c({onClick:u,onKeyDown:d,open:e})):r.createElement("div",{className:o,onClick:u,onKeyDown:l?d:void 0},c)};var y=n(63291);const b=({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:o,delayOpening:i,delayClosing:a,behavior:s,shouldBeOpen:l})=>{const c=r.useRef(null),u=r.useRef(null),[d,f]=r.useState(e),p=r.useCallback((()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[]),h=r.useCallback((()=>{u.current&&(clearTimeout(u.current),u.current=null)}),[]);r.useEffect((()=>()=>{p(),h()}),[h,p]);const m=r.useCallback((e=>{f(e),l.current=e,null===o||void 0===o||o(e)}),[o,l]),g=r.useCallback((()=>{p(),m(!0)}),[m,p]),v=r.useCallback((()=>{h(),m(!1)}),[m,h]);r.useEffect((()=>{t&&v()}),[t,v]),((e,t)=>{const n=r.useRef(!0);r.useEffect((()=>{n.current?n.current=!1:e()}),t)})((()=>{n&&!l.current&&v()}),[n,v,l]);const[b,w]=y.J[s],_=r.useCallback((()=>{c.current=setTimeout((()=>{c.current=null,g()}),null!==i&&void 0!==i?i:b)}),[b,i,g]),x=r.useCallback((()=>{u.current=setTimeout((()=>{u.current=null,v()}),null!==a&&void 0!==a?a:w)}),[v,w,a]);return{isOpen:d,closingTimeout:u,openTooltip:g,openTooltipDelayed:_,unsetOpeningTimeout:p,closeTooltip:v,closeTooltipDelayed:x,unsetClosingTimeout:h}},w=r.forwardRef((function({initialOpen:e=!1,disabled:t=!1,autoclosable:n=!0,openOnHover:d=!0,delayOpening:h,delayClosing:g,behavior:w=y.m.Delayed,placement:_,offset:x={},tooltipOffset:E,tooltipClassName:S,tooltipContentClassName:k,theme:C="info",size:O="s",hasArrow:N=!0,hasClose:T=!1,className:I,children:A,title:P,content:D,htmlContent:R,contentClassName:j,links:M,forceLinksAppearance:L=!1,tooltipActionButton:z,tooltipCancelButton:F,onOpenChange:B,onCloseClick:U,onClick:q,anchorRef:$,strategy:H,qa:W,disablePortal:V=!1,tooltipId:G,focusTrap:Z,autoFocus:K,restoreFocusRef:Y,modifiers:Q},J){const X=(0,l.j)(),ee=r.useRef(null),te=r.useRef(!1),ne=r.useRef(e),{isOpen:re,closingTimeout:oe,openTooltip:ie,openTooltipDelayed:ae,unsetOpeningTimeout:se,closeTooltip:le,closeTooltipDelayed:ce,unsetClosingTimeout:ue}=b({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:B,delayOpening:h,delayClosing:g,behavior:w,shouldBeOpen:ne}),de=r.useMemo((()=>_||("rtl"===X?["left","bottom"]:["right","bottom"])),[X,_]);r.useImperativeHandle(J,(()=>({openTooltip:ie,closeTooltip:le})),[ie,le]);const fe=Boolean(P),pe=r.createElement(s.z,{id:G,role:d?"tooltip":"dialog",strategy:H,anchorRef:$||ee,className:u("tooltip",{theme:C,size:O,"with-close":T,"force-links-appearance":L},S),contentClassName:u("tooltip-popup-content",k),open:re,placement:de,hasArrow:N,offset:E,onClose:$?void 0:le,qa:W?`${W}-tooltip`:"",disablePortal:V,focusTrap:Z,autoFocus:K,restoreFocus:!0,restoreFocusRef:Y||ee,modifiers:Q},r.createElement(r.Fragment,null,P&&r.createElement("h3",{className:u("tooltip-title")},P),r.createElement(p,{secondary:!!fe&&"announcement"!==C,content:D,htmlContent:R,className:j}),M&&r.createElement(m,{links:M}),r.createElement(f,{theme:C,tooltipActionButton:z,tooltipCancelButton:F}),T&&r.createElement("div",{className:u("tooltip-close")},r.createElement(i.$,{size:"s",view:"flat-secondary",onClick:async e=>{le(),null===U||void 0===U||U(e)},extraProps:{"aria-label":"Close"}},r.createElement(a.I,{data:o.A,size:16})))));if($)return pe;const he=()=>{ue(),re||t||te.current?ne.current=!0:ae()},me=()=>{!n||te.current||oe.current?ne.current=!1:(se(),ce()),te.current=!1};return!x||"number"!==typeof x.top&&"number"!==typeof x.left||(0,c.m)('[Popover] Physical names (top, left) of "offset" property are deprecated. Use logical names (block, inline) instead.'),r.createElement("div",{ref:ee,className:u({disabled:t},I),onMouseEnter:d?he:void 0,onMouseLeave:d?me:void 0,onFocus:d?he:void 0,onBlur:d?me:void 0,style:{top:x.top,left:x.left,insetBlockStart:x.block,insetInlineStart:x.inline},"data-qa":W},r.createElement(v,{closeTooltip:le,openTooltip:ie,open:re,openOnHover:d,className:u("handler"),disabled:t,onClick:q,closedManually:te},A),pe)}));w.displayName="Popover"},63291:(e,t,n)=>{"use strict";var r;n.d(t,{J:()=>o,m:()=>r}),function(e){e.Immediate="immediate",e.Delayed="delayed",e.DelayedClosing="delayedClosing"}(r||(r={}));const o={[r.Immediate]:[0,0],[r.Delayed]:[300,300],[r.DelayedClosing]:[0,300]}},39238:(e,t,n)=>{"use strict";n.d(t,{z:()=>Be});var r=n(59284),o=n(72630),i=n(32084),a=n(48681);function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function l(e){return e instanceof s(e).Element||e instanceof Element}function c(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function u(e){return"undefined"!==typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}var d=Math.max,f=Math.min,p=Math.round;function h(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function m(){return!/^((?!chrome|android).)*safari/i.test(h())}function g(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&c(e)&&(o=e.offsetWidth>0&&p(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&p(r.height)/e.offsetHeight||1);var a=(l(e)?s(e):window).visualViewport,u=!m()&&n,d=(r.left+(u&&a?a.offsetLeft:0))/o,f=(r.top+(u&&a?a.offsetTop:0))/i,h=r.width/o,g=r.height/i;return{width:h,height:g,top:f,right:d+h,bottom:f+g,left:d,x:d,y:f}}function v(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function y(e){return e?(e.nodeName||"").toLowerCase():null}function b(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function w(e){return g(b(e)).left+v(e).scrollLeft}function _(e){return s(e).getComputedStyle(e)}function x(e){var t=_(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function E(e,t,n){void 0===n&&(n=!1);var r=c(t),o=c(t)&&function(e){var t=e.getBoundingClientRect(),n=p(t.width)/e.offsetWidth||1,r=p(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=b(t),a=g(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==y(t)||x(i))&&(l=function(e){return e!==s(e)&&c(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:v(e);var t}(t)),c(t)?((u=g(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=w(i))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function S(e){var t=g(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(u(e)?e.host:null)||b(e)}function C(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:c(e)&&x(e)?e:C(k(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=C(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=s(r),a=o?[i].concat(i.visualViewport||[],x(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(O(k(a)))}function N(e){return["table","td","th"].indexOf(y(e))>=0}function T(e){return c(e)&&"fixed"!==_(e).position?e.offsetParent:null}function I(e){for(var t=s(e),n=T(e);n&&N(n)&&"static"===_(n).position;)n=T(n);return n&&("html"===y(n)||"body"===y(n)&&"static"===_(n).position)?t:n||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&c(e)&&"fixed"===_(e).position)return null;var n=k(e);for(u(n)&&(n=n.host);c(n)&&["html","body"].indexOf(y(n))<0;){var r=_(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var A="top",P="bottom",D="right",R="left",j="auto",M=[A,P,D,R],L="start",z="end",F="viewport",B="popper",U=M.reduce((function(e,t){return e.concat([t+"-"+L,t+"-"+z])}),[]),q=[].concat(M,[j]).reduce((function(e,t){return e.concat([t,t+"-"+L,t+"-"+z])}),[]),$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function H(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function W(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var V={placement:"bottom",modifiers:[],strategy:"absolute"};function G(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function Z(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?V:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},V,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:o,setOptions:function(n){var s="function"===typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:l(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var d=function(e){var t=H(e);return $.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=d.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var s=i({state:o,name:t,instance:c,options:r}),l=function(){};a.push(s||l)}})),c.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(G(t,n)){o.rects={reference:E(t,I(n),"fixed"===o.options.strategy),popper:S(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,l=i.options,u=void 0===l?{}:l,d=i.name;"function"===typeof a&&(o=a({state:o,options:u,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:W((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){u(),s=!0}};if(!G(e,t))return c;function u(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var K={passive:!0};function Y(e){return e.split("-")[0]}function Q(e){return e.split("-")[1]}function J(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Y(o):null,a=o?Q(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case A:t={x:s,y:n.y-r.height};break;case P:t={x:s,y:n.y+n.height};break;case D:t={x:n.x+n.width,y:l};break;case R:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?J(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case L:t[c]=t[c]-(n[u]/2-r[u]/2);break;case z:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=a.x,m=void 0===h?0:h,g=a.y,v=void 0===g?0:g,y="function"===typeof d?d({x:m,y:v}):{x:m,y:v};m=y.x,v=y.y;var w=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),E=R,S=A,k=window;if(u){var C=I(n),O="clientHeight",N="clientWidth";if(C===s(n)&&"static"!==_(C=b(n)).position&&"absolute"===l&&(O="scrollHeight",N="scrollWidth"),o===A||(o===R||o===D)&&i===z)S=P,v-=(f&&C===k&&k.visualViewport?k.visualViewport.height:C[O])-r.height,v*=c?1:-1;if(o===R||(o===A||o===P)&&i===z)E=D,m-=(f&&C===k&&k.visualViewport?k.visualViewport.width:C[N])-r.width,m*=c?1:-1}var T,j=Object.assign({position:l},u&&ee),M=!0===d?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:p(n*o)/o||0,y:p(r*o)/o||0}}({x:m,y:v},s(n)):{x:m,y:v};return m=M.x,v=M.y,c?Object.assign({},j,((T={})[S]=x?"0":"",T[E]=w?"0":"",T.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",T)):Object.assign({},j,((t={})[S]=x?v+"px":"",t[E]=w?m+"px":"",t.transform="",t))}const ne={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=q.reduce((function(e,n){return e[n]=function(e,t,n){var r=Y(e),o=[R,A].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[R,D].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var re={left:"right",right:"left",bottom:"top",top:"bottom"};function oe(e){return e.replace(/left|right|bottom|top/g,(function(e){return re[e]}))}var ie={start:"end",end:"start"};function ae(e){return e.replace(/start|end/g,(function(e){return ie[e]}))}function se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&u(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ce(e,t,n){return t===F?le(function(e,t){var n=s(e),r=b(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;var u=m();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l+w(e),y:c}}(e,n)):l(t)?function(e,t){var n=g(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):le(function(e){var t,n=b(e),r=v(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=d(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=d(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+w(e),l=-r.scrollTop;return"rtl"===_(o||n).direction&&(s+=d(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(b(e)))}function ue(e,t,n,r){var o="clippingParents"===t?function(e){var t=O(k(e)),n=["absolute","fixed"].indexOf(_(e).position)>=0&&c(e)?I(e):e;return l(n)?t.filter((function(e){return l(e)&&se(e,n)&&"body"!==y(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=ce(e,n,r);return t.top=d(o.top,t.top),t.right=f(o.right,t.right),t.bottom=f(o.bottom,t.bottom),t.left=d(o.left,t.left),t}),ce(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function de(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function fe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function pe(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,c=void 0===s?"clippingParents":s,u=n.rootBoundary,d=void 0===u?F:u,f=n.elementContext,p=void 0===f?B:f,h=n.altBoundary,m=void 0!==h&&h,v=n.padding,y=void 0===v?0:v,w=de("number"!==typeof y?y:fe(y,M)),_=p===B?"reference":B,x=e.rects.popper,E=e.elements[m?_:p],S=ue(l(E)?E:E.contextElement||b(e.elements.popper),c,d,a),k=g(e.elements.reference),C=X({reference:k,element:x,strategy:"absolute",placement:o}),O=le(Object.assign({},x,C)),N=p===B?O:k,T={top:S.top-N.top+w.top,bottom:N.bottom-S.bottom+w.bottom,left:S.left-N.left+w.left,right:N.right-S.right+w.right},I=e.modifiersData.offset;if(p===B&&I){var R=I[o];Object.keys(T).forEach((function(e){var t=[D,P].indexOf(e)>=0?1:-1,n=[A,P].indexOf(e)>=0?"y":"x";T[e]+=R[n]*t}))}return T}const he={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Y(g),y=l||(v===g||!h?[oe(g)]:function(e){if(Y(e)===j)return[];var t=oe(e);return[ae(e),t,ae(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Y(n)===j?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?q:l,u=Q(r),d=u?s?U:U.filter((function(e){return Q(e)===u})):M,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=pe(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Y(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,_=t.rects.popper,x=new Map,E=!0,S=b[0],k=0;k<b.length;k++){var C=b[k],O=Y(C),N=Q(C)===L,T=[A,P].indexOf(O)>=0,I=T?"width":"height",z=pe(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),F=T?N?D:R:N?P:A;w[I]>_[I]&&(F=oe(F));var B=oe(F),$=[];if(i&&$.push(z[O]<=0),s&&$.push(z[F]<=0,z[B]<=0),$.every((function(e){return e}))){S=C,E=!1;break}x.set(C,$)}if(E)for(var H=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},W=h?3:1;W>0;W--){if("break"===H(W))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function me(e,t,n){return d(e,f(t,n))}const ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,v=void 0===g?0:g,y=pe(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),b=Y(t.placement),w=Q(t.placement),_=!w,x=J(b),E="x"===x?"y":"x",k=t.modifiersData.popperOffsets,C=t.rects.reference,O=t.rects.popper,N="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,T="number"===typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(k){if(i){var z,F="y"===x?A:R,B="y"===x?P:D,U="y"===x?"height":"width",q=k[x],$=q+y[F],H=q-y[B],W=m?-O[U]/2:0,V=w===L?C[U]:O[U],G=w===L?-O[U]:-C[U],Z=t.elements.arrow,K=m&&Z?S(Z):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=X[F],te=X[B],ne=me(0,C[U],K[U]),re=_?C[U]/2-W-ne-ee-T.mainAxis:V-ne-ee-T.mainAxis,oe=_?-C[U]/2+W+ne+te+T.mainAxis:G+ne+te+T.mainAxis,ie=t.elements.arrow&&I(t.elements.arrow),ae=ie?"y"===x?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(z=null==j?void 0:j[x])?z:0,le=q+oe-se,ce=me(m?f($,q+re-se-ae):$,q,m?d(H,le):H);k[x]=ce,M[x]=ce-q}if(s){var ue,de="x"===x?A:R,fe="x"===x?P:D,he=k[E],ge="y"===E?"height":"width",ve=he+y[de],ye=he-y[fe],be=-1!==[A,R].indexOf(b),we=null!=(ue=null==j?void 0:j[E])?ue:0,_e=be?ve:he-C[ge]-O[ge]-we+T.altAxis,xe=be?he+C[ge]+O[ge]-we-T.altAxis:ye,Ee=m&&be?function(e,t,n){var r=me(e,t,n);return r>n?n:r}(_e,he,xe):me(m?_e:ve,he,m?xe:ye);k[E]=Ee,M[E]=Ee-he}t.modifiersData[r]=M}},requiresIfExists:["offset"]};const ve={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Y(n.placement),l=J(s),c=[R,D].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return de("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:fe(e,M))}(o.padding,n),d=S(i),f="y"===l?A:R,p="y"===l?P:D,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=I(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=u[f],w=v-d[c]-u[p],_=v/2-d[c]/2+y,x=me(b,_,w),E=l;n.modifiersData[r]=((t={})[E]=x,t.centerOffset=x-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&se(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ye(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function be(e){return[A,D,P,R].some((function(t){return e[t]>=0}))}var we=Z({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,c=s(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,K)})),l&&c.addEventListener("resize",n.update,K),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,K)})),l&&c.removeEventListener("resize",n.update,K)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:Y(t.placement),variation:Q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];c(o)&&y(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});c(r)&&y(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},ne,he,ge,ve,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),l=ye(a,r),c=ye(s,o,i),u=be(l),d=be(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),_e=n(45099),xe=n.n(_e),Ee=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Se="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,ke=[],Ce=function(e,t,n){void 0===n&&(n={});var o=r.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ke},s=r.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],c=s[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);a.flushSync((function(){c({styles:Ee(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Ee(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),d=r.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return xe()(o.current,e)?o.current||e:(o.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),f=r.useRef();return Se((function(){f.current&&f.current.setOptions(d)}),[d]),Se((function(){if(null!=e&&null!=t){var r=(n.createPopper||we)(e,t,d);return f.current=r,function(){r.destroy(),f.current=null}}}),[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},Oe=n(54245);const Ne=["bottom-start","bottom","bottom-end","top-start","top","top-end","right-start","right","right-end","left-start","left","left-end"],Te={name:"rtlOffsetFix",enabled:!0,phase:"main",requires:["offset"],fn({state:e}){var t;if(!e.placement.startsWith("top")&&!e.placement.startsWith("bottom"))return;const n=null===(t=e.modifiersData.offset)||void 0===t?void 0:t[e.placement];n&&(e.modifiersData.popperOffsets.x-=2*n.x)}};var Ie=n(18670),Ae=n(98392),Pe=n(19225),De=n(69220),Re=n(99635),je=n(6826);const Me=(0,De.om)("popup");function Le({styles:e,attributes:t,setArrowRef:n}){return r.createElement("div",Object.assign({"data-popper-arrow":!0,ref:n,className:Me("arrow"),style:e},t),r.createElement("div",{className:Me("arrow-content")},r.createElement("div",{className:Me("arrow-circle-wrapper")},r.createElement("div",{className:Me("arrow-circle",{left:!0})})),r.createElement("div",{className:Me("arrow-circle-wrapper")},r.createElement("div",{className:Me("arrow-circle",{right:!0})}))))}const ze=(0,De.om)("popup"),Fe=8;function Be({keepMounted:e=!1,hasArrow:t=!1,offset:n=[0,4],open:a,placement:s,anchorRef:l,disableEscapeKeyDown:c,disableOutsideClick:u,disableLayer:d,style:f,className:p,contentClassName:h,modifiers:m=[],children:g,onEscapeKeyDown:v,onOutsideClick:y,onClose:b,onClick:w,onMouseEnter:_,onMouseLeave:x,onFocus:E,onBlur:S,onTransitionEnter:k,onTransitionEntered:C,onTransitionExit:O,onTransitionExited:N,disablePortal:T,container:I,strategy:A,qa:P,restoreFocus:D,restoreFocusRef:R,"aria-label":j,"aria-labelledby":M,role:L,id:z,focusTrap:F=!1,autoFocus:B=!1,"aria-modal":U=F}){const q=r.useRef(null);(0,Re.Z)({open:a,disableEscapeKeyDown:c,disableOutsideClick:u,onEscapeKeyDown:v,onOutsideClick:y,onClose:b,contentRefs:[l,q],enabled:!d,type:"popup"});const{attributes:$,styles:H,setPopperRef:W,setArrowRef:V}=function({anchorRef:e,placement:t=Ne,offset:n,modifiers:o=[],strategy:i,altBoundary:a}){const[s,l]=r.useState(null),[c,u]=r.useState(null),d=(0,Oe.j)(),f=r.useMemo((()=>{let e=Array.isArray(t)?t:[t];return"rtl"===d&&(e=e.map((e=>e.replace(/(top|bottom)-(start|end)/g,((e,t,n)=>"start"===n?t+"-end":"end"===n?t+"-start":e))))),e}),[t,d]),{attributes:p,styles:h}=Ce(null===e||void 0===e?void 0:e.current,s,{strategy:i,modifiers:[{name:"arrow",options:{element:c}},{name:"offset",options:{offset:n,altBoundary:a}},{name:"flip",options:{fallbackPlacements:f.slice(1),altBoundary:a}},..."rtl"===d?[Te]:[],...o],placement:f[0]});return{attributes:p,styles:h,setPopperRef:l,setArrowRef:u}}({anchorRef:l,placement:s,offset:t?[n[0],n[1]+Fe]:n,strategy:A,altBoundary:T,modifiers:[{name:"arrow",options:{enabled:t,padding:4}},{name:"preventOverflow",options:{padding:1,altBoundary:T}},...m]}),G=(0,i.N)(W,q,(0,Pe.N)()),Z=(0,Ie.s)({enabled:Boolean(D&&a),restoreFocusRef:R});let K=L;return!0!==U&&"true"!==U||K||(K="dialog"),r.createElement(o.A,{nodeRef:q,in:a,addEndListener:e=>{var t;return null===(t=q.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,je.L)(ze),mountOnEnter:!e,unmountOnExit:!e,appear:!0,onEnter:()=>{null===k||void 0===k||k()},onEntered:()=>{null===C||void 0===C||C()},onExit:()=>{null===O||void 0===O||O()},onExited:()=>{null===N||void 0===N||N()}},r.createElement(Ae.Z,{container:I,disablePortal:T},r.createElement("div",Object.assign({ref:G,style:H.popper},$.popper,Z,{className:ze({open:a},p),"data-qa":P,id:z,role:K,"aria-label":j,"aria-labelledby":M,"aria-modal":U&&a?U:void 0}),r.createElement(Pe.s,{enabled:F&&a,autoFocus:B},r.createElement("div",{onClick:w,onMouseEnter:_,onMouseLeave:x,onFocus:E,onBlur:S,className:ze("content",h),style:f,tabIndex:-1},t&&r.createElement(Le,{styles:H.arrow,attributes:$.arrow,setArrowRef:V}),g)))))}},98392:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(59284),o=n(48681);const i=r.createContext({current:null});i.displayName="PortalContext";var a=n(69118),s=n(46878);const l=(0,n(69220).om)("portal");function c({container:e,children:t,disablePortal:n}){const c=function(){var e;const t=r.useContext(i);let n=null;return"object"===typeof window&&(n=window.document.body),null!==(e=t.current)&&void 0!==e?e:n}(),{scoped:u}=(0,s.w)(),d=null!==e&&void 0!==e?e:c;return n?r.createElement(r.Fragment,null,t):d?o.createPortal(u?r.createElement(a.N,{rootClassName:l("theme-wrapper"),scoped:!0},t):t,d):null}},44433:(e,t,n)=>{"use strict";n.d(t,{a:()=>y});var r=n(59284),o=n(90826),i=n(85736);const a=new Set(["id"]),s=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),l=/^(data-.*)$/;var c=n(794);function u(e){var t,n;const{name:r,value:u,defaultValue:d,options:f=[],disabled:p,onUpdate:h,onChange:m,onFocus:g,onBlur:v}=e,y=(0,o.u)(),[b,w]=(0,i.P)(u,null!==(n=null!==d&&void 0!==d?d:null===(t=f[0])||void 0===t?void 0:t.value)&&void 0!==n?n:null,h),_=(0,c.d)({initialValue:b,onReset:w}),x=e=>{w(e.target.value),m&&m(e)},E=Object.assign(Object.assign({},function(e,t={}){const{labelable:n,propNames:r}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a.has(i)||n&&s.has(i)||(null===r||void 0===r?void 0:r.has(i))||l.test(i))&&(o[i]=e[i]);return o}(e,{labelable:!0})),{role:"radiogroup","aria-disabled":p});return{containerProps:E,optionsProps:f.map((e=>({name:r||y,value:e.value,content:e.content,title:e.title,checked:b===String(e.value),disabled:p||e.disabled,onChange:x,onFocus:g,onBlur:v,ref:_})))}}var d=n(69220),f=n(32084),p=n(11669);var h=n(10176);const m=(0,d.om)("radio-button"),g=r.forwardRef((function(e,t){const{disabled:n=!1,content:a,children:s,title:l}=e,{checked:u,inputProps:d}=function({name:e,value:t,checked:n,defaultChecked:a,disabled:s,controlRef:l,controlProps:u,onUpdate:d,onChange:h,onFocus:m,onBlur:g,id:v}){const y=(0,o.u)(),b=r.useRef(null),[w,_]=(0,i.P)(n,null!==a&&void 0!==a&&a,d),x=(0,c.d)({initialValue:w,onReset:_}),E=(0,f.N)(l,b,x);return{checked:w,inputProps:Object.assign(Object.assign({},u),{name:e||y,value:t,id:v,onFocus:m,onBlur:g,disabled:s,type:"radio",onChange:e=>{_(e.target.checked),h&&h(e)},onChangeCapture:e=>{p.o.publish({componentId:"Radio",eventId:"click",domEvent:e})},checked:n,defaultChecked:a,"aria-checked":w,ref:E})}}(e),g=a||s,v=(0,h.If)(g)||(0,h.$D)(g);return r.createElement("label",{className:m("option",{disabled:n,checked:u}),ref:t,title:l},r.createElement("input",Object.assign({},d,{className:m("option-control")})),r.createElement("span",{className:m("option-outline")}),g&&r.createElement("span",{className:m("option-text",{icon:v})},g))})),v=(0,d.om)("radio-button"),y=r.forwardRef((function(e,t){const{size:n="m",width:o,style:i,className:a,qa:s,children:l}=e;let c=e.options;c||(c=r.Children.toArray(l).map((({props:e})=>({value:e.value,content:e.content||e.children,disabled:e.disabled,title:e.title}))));const d=r.useRef(null),f=r.useRef(),p=r.useCallback((e=>{if(!e)return;const t=d.current;if(!t)return;const n=f.current;if(n&&n!==e){const r=e=>{t.style.left=`${e.offsetLeft}px`,t.style.width=`${e.offsetWidth}px`};r(n),t.hidden=!1,r(e)}f.current=e}),[]),{containerProps:h,optionsProps:m}=u(Object.assign(Object.assign({},e),{options:c}));return r.createElement("div",Object.assign({},h,{ref:t,style:i,className:v({size:n,width:o},a),"data-qa":s}),r.createElement("div",{ref:d,className:v("plate"),onTransitionEnd:e=>{e.currentTarget.hidden=!0},hidden:!0}),m.map((e=>r.createElement(g,Object.assign({},e,{key:e.value,ref:e.checked?p:void 0})))))}));y.Option=g},85589:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(59284),o=n(64222),i=n(46898);const a=(0,n(69220).om)("switch"),s=r.forwardRef((function(e,t){const{size:n="m",disabled:s=!1,content:l,children:c,title:u,style:d,className:f,qa:p}=e,{checked:h,inputProps:m}=(0,o.v)(Object.assign(Object.assign({},e),{controlProps:Object.assign(Object.assign({},e.controlProps),{role:"switch"})})),g=l||c,v=r.createElement("span",{className:a("indicator")},r.createElement("input",Object.assign({},m,{className:a("control")})),r.createElement("span",{className:a("outline")}),r.createElement("span",{className:a("slider")}));return r.createElement(i.m,{ref:t,title:u,style:d,size:n,disabled:s,className:a({size:n,disabled:s,checked:h},f),labelClassName:a("text"),qa:p,control:v},g)}))},23871:(e,t,n)=>{"use strict";n.d(t,{t:()=>p});var r=n(59284),o=n(69220);const i=r.createContext({activeTabId:void 0});i.displayName="TabsContext";var a=n(47665);const s=(0,o.om)("tabs");function l({id:e,className:t,title:n,meta:o,hint:l,icon:c,counter:u,label:d,active:f,disabled:p,hasOverflow:h,extraProps:m,onClick:g}){const{activeTabId:v}=r.useContext(i),y="boolean"===typeof f?f:v===e,b=r.useMemo((()=>void 0!==l?l:"string"===typeof n?n:void 0),[l,n]);return r.createElement("div",Object.assign({},m,{role:"tab","aria-selected":y,"aria-disabled":!0===p,tabIndex:p?-1:0,className:s("item",{active:y,disabled:p,overflow:Boolean(h)},t),title:b,onClick:()=>{g(e)},onKeyDown:t=>{" "===t.key&&g(e)}}),r.createElement("div",{className:s("item-content")},c&&r.createElement("div",{className:s("item-icon")},c),r.createElement("div",{className:s("item-title")},n||e),"number"===typeof u&&r.createElement("div",{className:s("item-counter")},u),d&&r.createElement(a.J,{className:s("item-label"),theme:d.theme},d.content)),o&&r.createElement("div",{className:s("item-meta")},o))}l.displayName="Tabs.Item";const c=(0,o.om)("tabs");var u;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(u||(u={}));const d=[],f=r.forwardRef((({direction:e=u.Horizontal,size:t="m",activeTab:n,allowNotSelected:o=!1,items:a=d,children:s,className:f,onSelectTab:p,wrapTo:h,qa:m},g)=>{const v=((e,t,n)=>{var r;return e||(t||0===(null===n||void 0===n?void 0:n.length)||null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r.id)})(n,o,a),y=r.useMemo((()=>({activeTabId:v})),[v]),b=r.useMemo((()=>{const e=e=>{p&&p(e)};return a.map(((t,n)=>{const o=r.createElement(l,Object.assign({key:t.id},t,{onClick:e}));return h?h(t,o,n):o}))}),[a,p,h]);return r.createElement("div",{role:"tablist",className:c({direction:e,size:t},f),"data-qa":m,ref:g},r.createElement(i.Provider,{value:y},s||b))}));f.displayName="Tabs";const p=Object.assign(f,{Item:l})},98089:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(27145),o=n(59284),i=n(63365);const a=(0,n(69220).om)("text"),s=({variant:e="body-1",ellipsis:t,ellipsisLines:n,whiteSpace:r,wordBreak:o},i)=>a({variant:e,ellipsis:t,ws:r,wb:o,"ellipsis-lines":n},i),l=o.forwardRef((function(e,t){var{as:n,children:a,variant:l,className:c,ellipsis:u,color:d,whiteSpace:f,wordBreak:p,ellipsisLines:h,style:m,qa:g}=e,v=(0,r.Tt)(e,["as","children","variant","className","ellipsis","color","whiteSpace","wordBreak","ellipsisLines","style","qa"]);const y=n||"span",b=Object.assign({},m);return"number"===typeof h&&(b.WebkitLineClamp=h),o.createElement(y,Object.assign({ref:t,className:s({variant:l,ellipsis:u,whiteSpace:f,wordBreak:p,ellipsisLines:"number"===typeof h},d?(0,i.$)({color:d},c):c),style:b,"data-qa":g},v),a)}));l.displayName="Text"},63365:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});const r=(0,n(69220).om)("color-text"),o=({color:e},t)=>r({color:e},t)},28664:(e,t,n)=>{"use strict";n.d(t,{k:()=>D});var r=n(59284),o=n(94420),i=n(85736),a=n(32084),s=n(90826),l=n(794),c=n(6104),u=n.n(c),d=n(61758),f=n.n(d);function p(e,t){const[n,o]=r.useState({width:0,height:0});return r.useLayoutEffect((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;o({width:u()(t.offsetWidth,2),height:u()(t.offsetHeight,2)});const n=new ResizeObserver(f()((e=>{if(!Array.isArray(e))return;const t=e[0];if(t.borderBoxSize){const e=t.borderBoxSize[0]?t.borderBoxSize[0]:t.borderBoxSize;o({width:u()(e.inlineSize,2),height:u()(e.blockSize,2)})}else{const e=t.target;o({width:u()(e.offsetWidth,2),height:u()(e.offsetHeight,2)})}}),16));return n.observe(t),()=>{n.disconnect()}}),[e,t]),n}var h=n(99991),m=n(84375),g=n(69220),v=n(81240),y=n(84476),b=n(72837);const w=JSON.parse('{"label_clear-button":"Clear"}'),_=JSON.parse('{"label_clear-button":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c"}'),x=(0,b.N)({en:w,ru:_},`${g.CU}clear-button`),E=(0,g.om)("clear-button"),S=e=>{switch(e){case"s":return"xs";case"m":return"s";case"l":return"m";case"xl":return"l";default:throw new Error(`Unknown text input size "${e}"`)}},k=e=>{const{size:t,className:n,onClick:o}=e;return r.createElement(y.$,{size:t,className:E(null,n),onClick:o,extraProps:{onMouseDown:e=>{e.preventDefault()},"aria-label":x("label_clear-button")}},r.createElement(h.I,{data:v.A,size:16}))};var C=n(63246),O=n(34379);const N=(0,g.om)("text-input"),T=r.forwardRef((function({placement:e,children:t,onClick:n},o){return t?r.createElement("div",{ref:o,className:N("additional-content",{placement:e}),onClick:n},t):null})),I=(0,g.om)("text-input");function A(e){const{controlProps:t,controlRef:n,type:o,name:i,id:a,tabIndex:s,autoComplete:l,placeholder:c,value:u,defaultValue:d,autoFocus:f,disabled:p,readOnly:h,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w}=e;return r.createElement("input",Object.assign({},t,{ref:n,className:I("control",{type:"input"},t.className),type:o,name:i,id:a,tabIndex:s,placeholder:c,value:u,defaultValue:d,autoFocus:f,autoComplete:l,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w,disabled:null!==p&&void 0!==p?p:t.disabled,readOnly:null!==h&&void 0!==h?h:t.readOnly}))}const P=(0,g.om)("text-input"),D=r.forwardRef((function(e,t){const{view:n="normal",size:c="m",pin:u="round-round",name:d,value:f,defaultValue:g,label:v,disabled:y,readOnly:b,hasClear:w=!1,error:_,errorMessage:x,errorPlacement:E="outside",validationState:N,autoComplete:I,id:D,tabIndex:R,style:j,className:M,qa:L,controlProps:z,leftContent:F,rightContent:B,startContent:U=F,endContent:q=B,unstable_endContent:$,note:H,onUpdate:W,onChange:V}=e,{errorMessage:G,errorPlacement:Z,validationState:K}=(0,O.Av)({error:_,errorMessage:x,errorPlacement:E,validationState:N}),[Y,Q]=(0,i.P)(f,null!==g&&void 0!==g?g:"",W),J=r.useRef(null),X=(0,l.d)({initialValue:Y,onReset:Q}),ee=(0,a.N)(e.controlRef,J,X),te=r.useRef(null),ne=r.useRef(null),re=(0,O.lf)(K),oe=Boolean(v),ie="invalid"===K&&Boolean(G)&&"outside"===Z,ae="invalid"===K&&Boolean(G)&&"inside"===Z,se=Boolean(w&&!y&&!b&&Y),le=Boolean(U),ce=Boolean($),ue=Boolean(q)&&!ce,de=oe&&!D&&!d&&"undefined"===typeof I,fe=(0,s.u)(),pe=oe?D||fe:D,he=p(oe?te:null,c),me=p(le?ne:null,c),ge=(0,s.u)(),ve=(0,s.u)(),ye=[null===z||void 0===z?void 0:z["aria-describedby"],H?ve:void 0,ie?ge:void 0].filter(Boolean).join(" "),be=Object.assign(Object.assign({},z),{style:Object.assign(Object.assign({},null===z||void 0===z?void 0:z.style),oe&&he.width?{paddingInlineStart:`${he.width}px`}:{}),"aria-invalid":"invalid"===K||void 0,"aria-describedby":ye||void 0}),we={id:pe,tabIndex:R,name:d,onChange(e){Q(e.target.value),V&&V(e)},autoComplete:de?"off":(0,O.o$)(I),controlProps:be},_e=e=>{var t,n;const r=!e.currentTarget.contains(document.activeElement)&&e.currentTarget.contains(e.target),o=Boolean(null===(t=document.getSelection())||void 0===t?void 0:t.toString());r&&!o&&(null===(n=J.current)||void 0===n||n.focus())};return r.createElement("span",{ref:t,style:j,className:P({view:n,size:c,disabled:y,state:re,pin:"clear"===n?void 0:u,"has-clear":se,"has-start-content":le,"has-end-content":se||ue||ce,"has-unstable-end-content":ce},M),"data-qa":L},r.createElement("span",{className:P("content")},le&&r.createElement(T,{ref:ne,placement:"start",onClick:_e},U),oe&&r.createElement("label",{ref:te,style:{insetInlineStart:le?me.width:void 0,maxWidth:`calc(50% - ${me.width}px)`},className:P("label"),title:v,htmlFor:pe},`${v}`),r.createElement(A,Object.assign({},e,we,{controlRef:ee})),se&&r.createElement(k,{size:S(c),onClick:e=>{Q("");const t=J.current;if(t){const n=Object.create(e);n.target=t,n.currentTarget=t,t.value="",V&&V(n)}},className:P("clear",{size:c})}),ue&&r.createElement(T,{placement:"end",onClick:_e},q),ae&&r.createElement(m.A,{content:G},r.createElement("span",{"data-qa":O._y},r.createElement(h.I,{data:o.A,className:P("error-icon"),size:"s"===c?12:16}))),ce&&r.createElement(T,{placement:"end",onClick:_e},$)),r.createElement(C.o,{note:H,errorMessage:ie?G:null,noteId:ve,errorMessageId:ge}))}))},63246:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var r=n(59284),o=n(69220),i=n(34379);const a=(0,o.om)("outer-additional-content"),s=({errorMessage:e,note:t,noteId:n,errorMessageId:o})=>e||t?r.createElement("div",{className:a()},e&&r.createElement("div",{className:a("error"),id:o,"data-qa":i.mF},e),t&&r.createElement("div",{className:a("note"),id:n},t)):null},34379:(e,t,n)=>{"use strict";n.d(t,{Av:()=>s,_y:()=>o,lf:()=>a,mF:()=>r,o$:()=>i});const r="control-error-message-qa",o="control-error-icon-qa",i=e=>"boolean"===typeof e?e?"on":"off":e,a=e=>"invalid"===e?"error":void 0,s=e=>{const{error:t,errorMessage:n,errorPlacement:r,validationState:o}=e;let i,a;return"string"===typeof t&&(i=t),n&&(i=n),("invalid"===o||Boolean(t))&&(a="invalid"),{errorMessage:i,errorPlacement:r,validationState:a}}},9296:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(27145),o=n(59284),i=n(69220),a=n(46423);const s=(0,i.om)("box"),l=o.forwardRef((function(e,t){var{as:n,children:i,qa:l,className:c,width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g,style:v,spacing:y,overflow:b}=e,w=(0,r.Tt)(e,["as","children","qa","className","width","height","minWidth","minHeight","maxHeight","maxWidth","position","style","spacing","overflow"]);const _=n||"div",x=Object.assign({width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g},v);return o.createElement(_,Object.assign({},w,{"data-qa":l,style:x,ref:t,className:s({overflow:b},y?(0,a.sp)(y,c):c)}),i)}))},87184:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(27145),o=n(59284),i=n(69220),a=n(9296),s=n(69033),l=n(8944);const c=(0,i.om)("flex"),u=o.forwardRef((function(e,t){const{as:n,direction:i,grow:u,basis:d,children:f,style:p,alignContent:h,alignItems:m,alignSelf:g,justifyContent:v,justifyItems:y,justifySelf:b,shrink:w,wrap:_,inline:x,gap:E,gapRow:S,className:k,space:C,centerContent:O}=e,N=(0,r.Tt)(e,["as","direction","grow","basis","children","style","alignContent","alignItems","alignSelf","justifyContent","justifyItems","justifySelf","shrink","wrap","inline","gap","gapRow","className","space","centerContent"]),T=n||"div",{getClosestMediaProps:I,theme:{spaceBaseSize:A}}=(0,s.L)(),P=e=>"object"===typeof e&&null!==e?I(e):e,D=P(E),R=D?A*Number(D):void 0,j=P(S)||D,M=j?A*Number(j):void 0,L=P(C),z=E||S||!L?void 0:(0,l.si)(L);return o.createElement(a.a,Object.assign({as:T,className:c({"center-content":O,inline:x,s:z},k),ref:t,style:Object.assign({flexDirection:P(i),flexGrow:!0===u?1:u,flexWrap:!0===_?"wrap":_,flexBasis:d,flexShrink:w,columnGap:R,rowGap:M,alignContent:P(h),alignItems:P(m),alignSelf:P(g),justifyContent:P(v),justifyItems:P(y),justifySelf:P(b)},p)},N),C?o.Children.map(f,(e=>e?o.createElement("div",{className:c("wr")},e):e)):f)}))},35719:(e,t,n)=>{"use strict";n.d(t,{W:()=>r,z:()=>o});const r={.5:"half"},o={breakpoints:{s:576,m:768,l:1080,xl:1200,xxl:1400,xxxl:1920},spaceBaseSize:4,components:{container:{gutters:"3",media:{l:{gutters:"5"}}}}}},55330:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(59284),o=n(35719);const i=r.createContext({theme:o.z,activeMediaQuery:"s"})},69033:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(59284),o=n(55330),i=n(8944);const a=()=>{const{activeMediaQuery:e,theme:t}=r.useContext(o.M),{isMediaActive:n,getClosestMediaProps:a}=r.useMemo((()=>({isMediaActive:(0,i.nR)(e),getClosestMediaProps:(0,i.yZ)(e)})),[e]);return{theme:t,activeMediaQuery:e,isMediaActive:n,getClosestMediaProps:a}}},46423:(e,t,n)=>{"use strict";n.d(t,{sp:()=>s,Y:()=>a});var r=n(69220),o=n(8944);const i=(0,r.om)("s"),a=(e,t)=>{const n=[];for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const t=e[r];"undefined"!==typeof t&&n.push(i(`${r}_${(0,o.si)(t)}`))}return t&&n.push(t),n.join(" ")},s=a},8944:(e,t,n)=>{"use strict";n.d(t,{nR:()=>i,si:()=>l,yZ:()=>s});var r=n(35719);const o={s:0,m:1,l:2,xl:3,xxl:4,xxxl:5},i=e=>t=>e in o&&o[e]-o[t]>=0,a=["s","m","l","xl","xxl","xxxl"],s=e=>(t={})=>{if(!e)return;let n=e;for(;n;){if(t[n])return t[n];n=a[o[n]-1]}},l=e=>e in r.W?r.W[e]:String(e)},11507:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});var r=n(59284);const o={mobile:!1,platform:n(67459).O.BROWSER,useHistory:()=>({action:"",replace(){},push(){},goBack(){}}),useLocation:()=>({pathname:"",search:"",hash:""})},i=r.createContext(o)},67459:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var r,o=n(69220);!function(e){e.IOS="ios",e.ANDROID="android",e.BROWSER="browser"}(r||(r={}));(0,o.om)("root")({mobile:!0}).split(/\s+/)[1]},46819:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(59284),o=n(11507);function i(){return r.useContext(o.G).mobile}},42933:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r=n(59284).createContext(void 0);r.displayName="ThemeContext"},69118:(e,t,n)=>{"use strict";n.d(t,{N:()=>O});var r=n(59284),o=n(55330);const i={media:"",matches:!1,onchange:()=>{},addListener:()=>{},removeListener:()=>{},addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:e=>!0},a=e=>"undefined"===typeof window||"function"!==typeof window.matchMedia?i:window.matchMedia(e);class s{constructor(e){this.queryListsDecl=[];const t={s:`(max-width: ${(n=e).m-1}px)`,m:`(min-width: ${n.m}px) and (max-width: ${n.l-1}px)`,l:`(min-width: ${n.l}px) and (max-width: ${n.xl-1}px)`,xl:`(min-width: ${n.xl}px) and (max-width: ${n.xxl-1}px)`,xxl:`(min-width: ${n.xxl}px) and (max-width: ${n.xxxl-1}px)`,xxxl:`(min-width: ${n.xxxl}px)`};var n;this.queryListsDecl=[["s",a(t.s)],["m",a(t.m)],["l",a(t.l)],["xl",a(t.xl)],["xxl",a(t.xxl)],["xxxl",a(t.xxxl)]]}getCurrentActiveMedia(){const e=this.queryListsDecl.find((([e,t])=>t.matches));return e?e[0]:"s"}addListeners(e){this.queryListsDecl.forEach((([t,n])=>n.addEventListener("change",e)))}removeListeners(e){this.queryListsDecl.forEach((([t,n])=>n.removeEventListener("change",e)))}}const l=(e,t="s")=>{const[n,o]=r.useState(t);return r.useLayoutEffect((()=>{const t=new s(e),n=()=>{o(t.getCurrentActiveMedia())};return t.addListeners(n),n(),()=>{t.removeListeners(n)}}),[e]),n};var c=n(17148),u=n.n(c);function d({children:e,config:t,initialMediaQuery:n}){const i=r.useContext(o.M),a=r.useMemo((()=>function({theme:e,override:t}){return u()(e,t)}({theme:i.theme,override:t})),[t,i.theme]),s=l(a.breakpoints,n),c=r.useMemo((()=>({activeMediaQuery:s,theme:a})),[s,a]);return r.createElement(o.M.Provider,{value:c},e)}var f=n(69220),p=n(42933);const h=r.createContext(void 0);h.displayName="ThemeSettingsContext";const m="system",g="light",v="dark",y="root",b="ltr",w=(0,f.om)(y),_=w();function x({theme:e,nativeScrollbar:t=!1,className:n,prevClassName:r}){const o=document.body;if(o.classList.contains(_)||o.classList.add(_),r){r.split(" ").forEach((e=>{e&&o.classList.remove(e)}))}if(n){n.split(" ").forEach((e=>{e&&!o.classList.contains(e)&&o.classList.add(e)}))}[...o.classList].forEach((e=>{e.startsWith((0,f.Nx)(w({theme:!0})))&&o.classList.remove(e)})),o.classList.add((0,f.Nx)(w({theme:e})));const i={"native-scrollbar":t};for(const[a,s]of Object.entries(i))o.classList.toggle((0,f.Nx)(w({[a]:!0})),s)}const E="undefined"!==typeof window&&"function"===typeof window.matchMedia,S=()=>window.matchMedia("(prefers-color-scheme: dark)");function k(){const[e,t]=r.useState(E&&S().matches?"dark":"light");return r.useEffect((()=>{if(!E)return;const e=function(e,t){const n="function"!==typeof e.addEventListener;return n?e.addListener(t):e.addEventListener("change",t),()=>{n?e.removeListener(t):e.removeEventListener("change",t)}}(S(),(function(e){t(e.matches?"dark":"light")}));return()=>e()}),[]),e}const C=(0,f.om)(y);function O({theme:e,systemLightTheme:t,systemDarkTheme:n,direction:o,nativeScrollbar:i,scoped:a=!1,rootClassName:s="",children:l,layout:c}){var u,f,y,w;const _=r.useContext(p.D),E=r.useContext(h),S=void 0!==_||a,O=null!==(u=null===_||void 0===_?void 0:_.theme)&&void 0!==u?u:m,N=null!==e&&void 0!==e?e:O,T=null!==(f=null!==t&&void 0!==t?t:null===E||void 0===E?void 0:E.systemLightTheme)&&void 0!==f?f:g,I=null!==(y=null!==n&&void 0!==n?n:null===E||void 0===E?void 0:E.systemDarkTheme)&&void 0!==y?y:v,A=null!==(w=null===_||void 0===_?void 0:_.direction)&&void 0!==w?w:b,P=null!==o&&void 0!==o?o:A,D="light"===k()?T:I,R="system"===N?D:N,j=r.useRef("");r.useLayoutEffect((()=>{S||(x({theme:R,nativeScrollbar:i,className:s,prevClassName:j.current}),function(e){const t=document.body;e===b?t.removeAttribute("dir"):t.setAttribute("dir",e)}(P),j.current=s)}),[S,R,P,i,s]);const M=r.useMemo((()=>({theme:N,themeValue:R,direction:P,scoped:S})),[N,R,P,S]),L=r.useMemo((()=>({systemLightTheme:T,systemDarkTheme:I})),[T,I]);return r.createElement(d,Object.assign({},c),r.createElement(p.D.Provider,{value:M},r.createElement(h.Provider,{value:L},S?r.createElement("div",{className:C({theme:R,"native-scrollbar":!1!==i},s),dir:P},l):l)))}O.displayName="ThemeProvider"},54245:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(46878);function o(){return(0,r.w)().direction}},46878:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(59284),o=n(42933);function i(){const e=r.useContext(o.D);if(void 0===e)throw new Error("useTheme* hooks must be used within ThemeProvider");return e}},22680:(e,t,n)=>{"use strict";n.d(t,{i:()=>o});var r=n(46878);function o(){return(0,r.w)().themeValue}},19225:(e,t,n)=>{"use strict";n.d(t,{s:()=>x,N:()=>E});var r=n(59284),o=n(83046);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},c=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()},u=function(e){return"Tab"===(null===e||void 0===e?void 0:e.key)||9===(null===e||void 0===e?void 0:e.keyCode)},d=function(e){return u(e)&&!e.shiftKey},f=function(e){return u(e)&&e.shiftKey},p=function(e){return setTimeout(e,0)},h=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},m=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"===typeof e?e.apply(void 0,n):e},g=function(e){return e.target.shadowRoot&&"function"===typeof e.composedPath?e.composedPath()[0]:e.target},v=[],y=function(e,t){var n,r=(null===t||void 0===t?void 0:t.document)||document,i=(null===t||void 0===t?void 0:t.trapStack)||v,s=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:d,isKeyBackward:f},t),y={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},b=function(e,t,n){return e&&void 0!==e[t]?e[t]:s[n||t]},w=function(e,t){var n="function"===typeof(null===t||void 0===t?void 0:t.composedPath)?t.composedPath():void 0;return y.containerGroups.findIndex((function(t){var r=t.container,o=t.tabbableNodes;return r.contains(e)||(null===n||void 0===n?void 0:n.includes(r))||o.find((function(t){return t===e}))}))},_=function(e){var t=s[e];if("function"===typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a=t;if("string"===typeof t&&!(a=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},x=function(){var e=_("initialFocus");if(!1===e)return!1;if(void 0===e||!(0,o.tp)(e,s.tabbableOptions))if(w(r.activeElement)>=0)e=r.activeElement;else{var t=y.tabbableGroups[0];e=t&&t.firstTabbableNode||_("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},E=function(){if(y.containerGroups=y.containers.map((function(e){var t=(0,o.Kr)(e,s.tabbableOptions),n=(0,o.nq)(e,s.tabbableOptions),r=t.length>0?t[0]:void 0,i=t.length>0?t[t.length-1]:void 0,a=n.find((function(e){return(0,o.AO)(e)})),l=n.slice().reverse().find((function(e){return(0,o.AO)(e)})),c=!!t.find((function(e){return(0,o.yT)(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:r,lastTabbableNode:i,firstDomTabbableNode:a,lastDomTabbableNode:l,nextTabbableNode:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find((function(e){return(0,o.AO)(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return(0,o.AO)(e)})):t[i+(r?1:-1)]}}})),y.tabbableGroups=y.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),y.tabbableGroups.length<=0&&!_("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(y.containerGroups.find((function(e){return e.posTabIndexesFound}))&&y.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},S=function e(t){var n=t.activeElement;if(n)return n.shadowRoot&&null!==n.shadowRoot.activeElement?e(n.shadowRoot):n},k=function e(t){!1!==t&&t!==S(document)&&(t&&t.focus?(t.focus({preventScroll:!!s.preventScroll}),y.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select}(t)&&t.select()):e(x()))},C=function(e){var t=_("setReturnFocus",e);return t||!1!==t&&e},O=function(e){var t=e.target,n=e.event,r=e.isBackward,i=void 0!==r&&r;t=t||g(n),E();var a=null;if(y.tabbableGroups.length>0){var l=w(t,n),c=l>=0?y.containerGroups[l]:void 0;if(l<0)a=i?y.tabbableGroups[y.tabbableGroups.length-1].lastTabbableNode:y.tabbableGroups[0].firstTabbableNode;else if(i){var d=h(y.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(d<0&&(c.container===t||(0,o.tp)(t,s.tabbableOptions)&&!(0,o.AO)(t,s.tabbableOptions)&&!c.nextTabbableNode(t,!1))&&(d=l),d>=0){var f=0===d?y.tabbableGroups.length-1:d-1,p=y.tabbableGroups[f];a=(0,o.yT)(t)>=0?p.lastTabbableNode:p.lastDomTabbableNode}else u(n)||(a=c.nextTabbableNode(t,!1))}else{var m=h(y.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(m<0&&(c.container===t||(0,o.tp)(t,s.tabbableOptions)&&!(0,o.AO)(t,s.tabbableOptions)&&!c.nextTabbableNode(t))&&(m=l),m>=0){var v=m===y.tabbableGroups.length-1?0:m+1,b=y.tabbableGroups[v];a=(0,o.yT)(t)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else u(n)||(a=c.nextTabbableNode(t))}}else a=_("fallbackFocus");return a},N=function(e){var t=g(e);w(t,e)>=0||(m(s.clickOutsideDeactivates,e)?n.deactivate({returnFocus:s.returnFocusOnDeactivate}):m(s.allowOutsideClick,e)||e.preventDefault())},T=function(e){var t=g(e),n=w(t,e)>=0;if(n||t instanceof Document)n&&(y.mostRecentlyFocusedNode=t);else{var r;e.stopImmediatePropagation();var i=!0;if(y.mostRecentlyFocusedNode)if((0,o.yT)(y.mostRecentlyFocusedNode)>0){var a=w(y.mostRecentlyFocusedNode),l=y.containerGroups[a].tabbableNodes;if(l.length>0){var c=l.findIndex((function(e){return e===y.mostRecentlyFocusedNode}));c>=0&&(s.isKeyForward(y.recentNavEvent)?c+1<l.length&&(r=l[c+1],i=!1):c-1>=0&&(r=l[c-1],i=!1))}}else y.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return(0,o.yT)(e)>0}))}))||(i=!1);else i=!1;i&&(r=O({target:y.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(y.recentNavEvent)})),k(r||(y.mostRecentlyFocusedNode||x()))}y.recentNavEvent=void 0},I=function(e){if(("Escape"===(null===(t=e)||void 0===t?void 0:t.key)||"Esc"===(null===t||void 0===t?void 0:t.key)||27===(null===t||void 0===t?void 0:t.keyCode))&&!1!==m(s.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();var t;(s.isKeyForward(e)||s.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];y.recentNavEvent=e;var n=O({event:e,isBackward:t});n&&(u(e)&&e.preventDefault(),k(n))}(e,s.isKeyBackward(e))},A=function(e){var t=g(e);w(t,e)>=0||m(s.clickOutsideDeactivates,e)||m(s.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},P=function(){if(y.active)return l(i,n),y.delayInitialFocusTimer=s.delayInitialFocus?p((function(){k(x())})):k(x()),r.addEventListener("focusin",T,!0),r.addEventListener("mousedown",N,{capture:!0,passive:!1}),r.addEventListener("touchstart",N,{capture:!0,passive:!1}),r.addEventListener("click",A,{capture:!0,passive:!1}),r.addEventListener("keydown",I,{capture:!0,passive:!1}),n},D=function(){if(y.active)return r.removeEventListener("focusin",T,!0),r.removeEventListener("mousedown",N,!0),r.removeEventListener("touchstart",N,!0),r.removeEventListener("click",A,!0),r.removeEventListener("keydown",I,!0),n},R="undefined"!==typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===y.mostRecentlyFocusedNode}))}))&&k(x())})):void 0,j=function(){R&&(R.disconnect(),y.active&&!y.paused&&y.containers.map((function(e){R.observe(e,{subtree:!0,childList:!0})})))};return(n={get active(){return y.active},get paused(){return y.paused},activate:function(e){if(y.active)return this;var t=b(e,"onActivate"),n=b(e,"onPostActivate"),o=b(e,"checkCanFocusTrap");o||E(),y.active=!0,y.paused=!1,y.nodeFocusedBeforeActivation=r.activeElement,null===t||void 0===t||t();var i=function(){o&&E(),P(),j(),null===n||void 0===n||n()};return o?(o(y.containers.concat()).then(i,i),this):(i(),this)},deactivate:function(e){if(!y.active)return this;var t=a({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},e);clearTimeout(y.delayInitialFocusTimer),y.delayInitialFocusTimer=void 0,D(),y.active=!1,y.paused=!1,j(),c(i,n);var r=b(t,"onDeactivate"),o=b(t,"onPostDeactivate"),l=b(t,"checkCanReturnFocus"),u=b(t,"returnFocus","returnFocusOnDeactivate");null===r||void 0===r||r();var d=function(){p((function(){u&&k(C(y.nodeFocusedBeforeActivation)),null===o||void 0===o||o()}))};return u&&l?(l(C(y.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){if(y.paused||!y.active)return this;var t=b(e,"onPause"),n=b(e,"onPostPause");return y.paused=!0,null===t||void 0===t||t(),D(),j(),null===n||void 0===n||n(),this},unpause:function(e){if(!y.paused||!y.active)return this;var t=b(e,"onUnpause"),n=b(e,"onPostUnpause");return y.paused=!1,null===t||void 0===t||t(),E(),P(),j(),null===n||void 0===n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return y.containers=t.map((function(e){return"string"===typeof e?r.querySelector(e):e})),y.active&&E(),j(),this}}).updateContainerElements(e),n},b=n(32084),w=n(90826);const _=r.createContext(void 0);function x({children:e,enabled:t=!0,disableAutoFocus:n,autoFocus:o=!0}){const i=r.useRef(null),a=r.useRef(!n&&o);r.useEffect((()=>{a.current=!n&&o}));const s=r.useRef(),l=r.useRef({}),c=r.useCallback((()=>{var e;null===(e=s.current)||void 0===e||e.updateContainerElements([i.current,...Object.values(l.current)])}),[]),u=r.useMemo((()=>({addNode(e,t){var n;l.current[e]===t||(null===(n=i.current)||void 0===n?void 0:n.contains(t))||(l.current[e]=t,c())},removeNode(e){l.current[e]&&(delete l.current[e],c())}})),[c]),d=r.useCallback((e=>{var n;t&&e?(i.current=e,s.current||(s.current=y([],{initialFocus:()=>a.current&&function(e){if(!(document.activeElement instanceof HTMLElement)||!e.contains(document.activeElement))return e.hasAttribute("tabIndex")||e.setAttribute("tabIndex","-1"),e;return document.activeElement}(e),fallbackFocus:()=>e,returnFocusOnDeactivate:!1,escapeDeactivates:!1,clickOutsideDeactivates:!1,allowOutsideClick:!0})),c(),s.current.activate()):(null===(n=s.current)||void 0===n||n.deactivate(),i.current=null)}),[t,c]),f=r.Children.only(e);if(!r.isValidElement(f))throw new Error("Children must contain only one valid element");const p=f.ref,h=(0,b.N)(d,p);return r.createElement(_.Provider,{value:u},r.cloneElement(f,{ref:h}))}function E(){const e=r.useContext(_),t=(0,w.u)();return r.useMemo((()=>{if(e)return n=>{n?e.addNode(t,n):e.removeNode(t)}}),[e,t])}},69220:(e,t,n)=>{"use strict";n.d(t,{CU:()=>o,Nx:()=>a,om:()=>i});var r=n(82435);const o="g-",i=((0,r.withNaming)({e:"__",m:"_"}),(0,r.withNaming)({n:o,e:"__",m:"_"}));function a(e){return e.split(/\s(.*)/)[1]}},10176:(e,t,n)=>{"use strict";n.d(t,{$D:()=>l,If:()=>c,zm:()=>s});var r=n(99991),o=n(69220),i=n(41668);let a=1;function s(){return`${o.CU}uniq-${a++}`}const l=(0,i.g)("svg"),c=(0,i.g)(r.I)},3357:(e,t,n)=>{"use strict";var r;n.d(t,{ZM:()=>s,jK:()=>a,zj:()=>l}),function(e){e.Ru="ru",e.En="en"}(r||(r={}));let o=[];const i={lang:r.En,fallbackLang:r.En},a=e=>{Object.assign(i,e),o.forEach((e=>{e(i)}))},s=e=>(o.push(e),()=>{o=o.filter((t=>t!==e))}),l=()=>i},11669:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(27145),o=n(69220);const i=new class{constructor(e){this.subscriptions=[],this.componentPrefix=e}subscribe(e){this.subscriptions.push(e)}unsubscribe(e){const t=this.subscriptions.indexOf(e);t>-1&&this.subscriptions.splice(t,1)}publish(e){var{componentId:t}=e,n=(0,r.Tt)(e,["componentId"]);this.subscriptions.forEach((e=>e(Object.assign(Object.assign({},n),{componentId:this.componentPrefix?`${this.componentPrefix}${t}`:t}))))}withEventPublisher(e,t){return n=>{this.publish(Object.assign(Object.assign({},n),{componentId:e,qa:t}))}}}(o.CU)},41668:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(59284);function o(e){return function(t){if(!r.isValidElement(t))return!1;const{type:n}=t;if(n===e)return!0;if("string"===typeof e||"string"===typeof n)return!1;const o=n.displayName;return Boolean(o&&o===e.displayName)}}},99635:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(59284),o=n(359),i=n(11669);const a=new class{constructor(){this.stack=[],this.handleDocumentKeyDown=e=>{var t,n,r;if(e.code===o.D.ESCAPE){const r=this.getTopLayer();r.disableEscapeKeyDown||(null===(t=r.onEscapeKeyDown)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"escapeKeyDown"))}if("Enter"===e.code){const t=this.getTopLayer();null===(r=t.onEnterKeyDown)||void 0===r||r.call(t,e)}},this.handleDocumentClick=e=>{var t,n;if(this.isToastClick(e))return;let r,o=null;if(this.mouseDownLayerTarget){if(r=this.mouseDownLayerTarget.layer,o=this.mouseDownLayerTarget.target,this.mouseDownLayerTarget=void 0,!this.stack.includes(r))return}else r=this.getTopLayer();!r.disableOutsideClick&&this.isOutsideClick(r,e,o)&&(null===(t=r.onOutsideClick)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"outsideClick"))},this.handleDocumentMouseDown=e=>{const t=this.getTopLayer();t&&(this.mouseDownLayerTarget={layer:t,target:e.target})}}add(e){this.stack.push(e),1===this.stack.length&&this.addListeners(),this.notifyLayersChange()}remove(e){const t=this.stack.indexOf(e);this.stack.splice(t,1),0===this.stack.length&&this.removeListeners(),this.notifyLayersChange()}getLayersCount(){return this.stack.length}getLayers(){return this.stack.map((({type:e})=>({type:e})))}addListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("click",this.handleDocumentClick,!0),document.addEventListener("mousedown",this.handleDocumentMouseDown,!0)}removeListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("click",this.handleDocumentClick,!0),document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0)}notifyLayersChange(){i.o.publish({componentId:"LayerManager",eventId:"layerschange",meta:{layersCount:this.getLayersCount(),layers:this.getLayers()}})}getTopLayer(){return this.stack[this.stack.length-1]}isOutsideClick(e,t,n=null){const r=e.contentRefs||[],{target:o}=t,i="function"===typeof t.composedPath?t.composedPath():[];if(r.length>0){return!r.some((e=>{var t,r,a,s;return(null===(r=null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.contains)||void 0===r?void 0:r.call(t,o))||(null===(s=null===(a=null===e||void 0===e?void 0:e.current)||void 0===a?void 0:a.contains)||void 0===s?void 0:s.call(a,n))||i.includes(null===e||void 0===e?void 0:e.current)}))}return!1}isToastClick(e){return("function"===typeof e.composedPath?e.composedPath():[]).some((e=>{var t;return Boolean(null===(t=null===e||void 0===e?void 0:e.dataset)||void 0===t?void 0:t.toast)}))}};function s({open:e,disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:o,onEnterKeyDown:i,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u=!0,type:d}){const f=r.useRef({disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:o,onEnterKeyDown:i,onOutsideClick:s,onClose:l,contentRefs:c,type:d});r.useEffect((()=>{Object.assign(f.current,{disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:o,onEnterKeyDown:i,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u})}),[t,n,o,i,s,l,c,u]),r.useEffect((()=>{if(e&&u){const e=f.current;return a.add(e),()=>{a.remove(e)}}}),[e,u])}},6826:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(69220);function o(e){return{appear:(0,r.Nx)(e({appear:!0})),appearActive:(0,r.Nx)(e({appear:"active"})),appearDone:(0,r.Nx)(e({appear:"done"})),enter:(0,r.Nx)(e({enter:!0})),enterActive:(0,r.Nx)(e({enter:"active"})),enterDone:(0,r.Nx)(e({enter:"done"})),exit:(0,r.Nx)(e({exit:!0})),exitActive:(0,r.Nx)(e({exit:"active"})),exitDone:(0,r.Nx)(e({exit:"done"}))}}},27629:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});const r=new Map;function o(e){!e||r.has(e)}},359:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r={BACKSPACE:"Backspace",ENTER:"Enter",TAB:"Tab",SPACEBAR:" ",SPACEBAR_OLD:"Spacebar",ESCAPE:"Escape",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"}},64222:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(59284),o=n(85736),i=n(32084),a=n(11669),s=n(794);function l({name:e,value:t,id:n,defaultChecked:l,checked:c,indeterminate:u,onUpdate:d,onChange:f,controlRef:p,controlProps:h,onFocus:m,onBlur:g,disabled:v}){const y=r.useRef(null),[b,w]=(0,o.P)(c,null!==l&&void 0!==l&&l,d),_=!u&&c,x=u?"mixed":b,E=(0,s.d)({initialValue:b,onReset:w}),S=(0,i.N)(p,y,E);r.useLayoutEffect((()=>{y.current&&(y.current.indeterminate=Boolean(u))}),[u]);const k=r.useCallback((e=>{a.o.publish({componentId:"Checkbox",eventId:"click",domEvent:e,meta:{checked:e.target.checked}})}),[]);return{checked:b,inputProps:Object.assign(Object.assign({},h),{name:e,value:t,id:n,onFocus:m,onBlur:g,disabled:v,type:"checkbox",onChange:e=>{w(e.target.checked),f&&f(e)},onClickCapture:k,defaultChecked:l,checked:_,"aria-checked":x,ref:S})}}},794:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(59284);function o({initialValue:e,onReset:t}){const[n,o]=r.useState(null),i=r.useRef(e);r.useEffect((()=>{if(!n)return;const e=()=>{t(i.current)};return n.addEventListener("reset",e),()=>{n.removeEventListener("reset",e)}}),[n,t]);return r.useCallback((e=>{var t;o(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[])}},18670:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(59284),o=n(83046);function i({enabled:e,restoreFocusRef:t,focusTrapped:n}){const i=r.useRef(null),a=r.useRef(null),s=r.useRef(null);return r.useEffect((()=>{if(!e)return;const t=e=>{const t=e.target;!n&&t instanceof HTMLElement&&(0,o.AO)(t)&&(s.current=t)},r=e=>{const t=e.target;t instanceof HTMLElement&&(0,o.AO)(t)?s.current=t:s.current=null};return window.addEventListener("focusin",t),window.addEventListener("mousedown",r),window.addEventListener("touchstart",r),()=>{window.removeEventListener("focusin",t),window.removeEventListener("mousedown",r),window.removeEventListener("touchstart",r)}}),[e,n]),r.useEffect((()=>{var n;i.current=e&&null!==(n=(null===t||void 0===t?void 0:t.current)||a.current)&&void 0!==n?n:null})),r.useEffect((()=>{if(e)return()=>{let e=i.current;const t=s.current;t&&document.contains(t)&&(0,o.AO)(t)&&(e=t),e&&"function"===typeof e.focus&&document.contains(e)&&(0,o.tp)(e)&&(e!==document.activeElement&&setTimeout((()=>{null===e||void 0===e||e.focus()}),0),a.current=null,s.current=null)}}),[e]),{onFocus:n=>{var r;e&&null===a.current&&(a.current=n.relatedTarget,s.current=a.current,i.current=null!==(r=(null===t||void 0===t?void 0:t.current)||a.current)&&void 0!==r?r:null)}}}},81517:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(59284),o=n(359);const i=(e,{openDelay:t=250,closeDelay:n,preventTriggerOnFocus:i=!1})=>{const[a,s,l]=function(e){const[t,n]=r.useState(e);return[t,r.useCallback((()=>n(!0)),[]),r.useCallback((()=>n(!1)),[]),r.useCallback((()=>n((e=>!e))),[])]}(!1),c=r.useRef(),u=r.useRef(!1);return r.useEffect((()=>{if(e)return e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",a),e.addEventListener("keydown",p),i||(e.addEventListener("focus",d),e.addEventListener("blur",f)),()=>{e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",a),e.removeEventListener("focus",d),e.removeEventListener("blur",f),e.removeEventListener("keydown",p)};function r(){clearTimeout(c.current),c.current=window.setTimeout(s,t)}function a(){clearTimeout(c.current),c.current=window.setTimeout(l,n)}function d(e){u.current||document.activeElement!==e.target||(u.current=!0,clearTimeout(c.current),s())}function f(e){u.current&&!e.currentTarget.contains(e.relatedTarget)&&(u.current=!1,clearTimeout(c.current),l())}function p(e){e.key===o.D.ESCAPE&&(clearTimeout(c.current),l())}}),[e,s,l,t,n,i]),a}},46734:(e,t,n)=>{"use strict";n.d(t,{N:()=>a,h:()=>i});var r=n(59284),o=n(359);function i(e){return t=>{e&&[o.D.ENTER,o.D.SPACEBAR,o.D.SPACEBAR_OLD].includes(t.key)&&(t.preventDefault(),e(t))}}function a(e){return{onKeyDown:r.useMemo((()=>i(e)),[e])}}},14794:(e,t,n)=>{"use strict";n.d(t,{y:()=>c});var r=n(59284),o=n(87924),i=n.n(o);const a=["overflow","paddingRight","paddingBottom"];let s=0,l={};function c({enabled:e}){r.useLayoutEffect((()=>{if(e)return s++,1===s&&function(){const e=window.innerWidth-document.documentElement.clientWidth,t=window.innerHeight-document.documentElement.clientHeight,n=function(){const e=window.getComputedStyle(document.body);return{top:Number.parseFloat(e.paddingTop),right:Number.parseFloat(e.paddingRight),bottom:Number.parseFloat(e.paddingBottom),left:Number.parseFloat(e.paddingLeft)}}();l=function(){const e={};for(const t of a)e[t]=i()(document.body.style,t);return e}(),document.body.style.overflow="hidden",e&&(document.body.style.paddingRight=`${n.right+e}px`);t&&(document.body.style.paddingBottom=`${n.bottom+t}px`)}(),()=>{s--,0===s&&function(){for(const e of a){const t=l[e];t?document.body.style[e]=t:document.body.style.removeProperty(e)}}()}}),[e])}},85736:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(59284);function o(e,t,n){const[o,i]=r.useState(null!==e&&void 0!==e?e:t),a=r.useRef(void 0!==e),s=void 0!==e;r.useEffect((()=>{const e=a.current;e!==s&&console.error(`[useControlledState] A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s}),[s]);let l=s?e:o;const c=r.useCallback(((e,...t)=>{Object.is(l,e)||null===n||void 0===n||n(e,...t),s||(l=e,i(e))}),[s,n,l]);return[l,c]}},42793:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{c:()=>r})},32084:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(59284),o=n(42793);function i(...e){return r.useMemo((()=>e.every((e=>null===e||void 0===e))?null:t=>{for(const n of e)(0,o.c)(n,t)}),e)}},29322:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(59284);const o=({element:e,options:t,onIntersect:n})=>{r.useEffect((()=>{const r=new IntersectionObserver((([e])=>{e.isIntersecting&&(null===n||void 0===n||n())}),t);return e&&r.observe(e),()=>null===e?void 0:r.unobserve(e)}),[e,t,n])}},90826:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(59284),o=n(69220),i=n(10176);const a="function"===typeof r.useId?function(){return`${o.CU}${r.useId()}`}:function(){const e=r.useRef();return void 0===e.current&&(e.current=(0,i.zm)()),e.current}},72837:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(1448),o=n(3357);const{lang:i,fallbackLang:a}=(0,o.zj)(),s=new r.TH({lang:i,fallbackLang:a});function l(e,t){Object.entries(e).forEach((([e,n])=>s.registerKeyset(e,t,n)));return s.keyset(t)}(0,o.ZM)((e=>{s.setLang(e.lang),s.setFallbackLang(e.fallbackLang)}))},59625:(e,t,n)=>{"use strict";n.d(t,{X:()=>re});var r=n(5906),o=n(59284),i=n(87924),a=n.n(i),s=n(48681),l=n(69220);function c(e,t){return e.findIndex((e=>e.name===t))}function u(e,t){return-1!==c(e,t)}function d(e,t){return u(e,t)?e.filter((e=>e.name!==t)):e}const f=o.createContext(null);f.displayName="ToasterContext";const p=o.createContext([]);p.displayName="ToastsContext";const h=o.forwardRef((function({children:e},t){const[n,r]=o.useState([]),i=o.useCallback((e=>{const{name:t}=e;r((n=>{let r=n;return u(n,t)&&(r=d(n,t)),[...r,Object.assign(Object.assign({},e),{addedAt:Date.now(),ref:o.createRef()})]}))}),[]),a=o.useCallback((e=>{r((t=>d(t,e)))}),[]),s=o.useCallback((()=>{r((()=>[]))}),[]),l=o.useCallback(((e,t)=>{r((n=>{if(!u(n,e))return n;const r=c(n,e);return[...n.slice(0,r),Object.assign(Object.assign({},n[r]),t),...n.slice(r+1)]}))}),[]),h=o.useRef(n);o.useEffect((()=>{h.current=n}),[n]);const m=o.useCallback((e=>!!h.current&&u(h.current,e)),[]),g=o.useMemo((()=>({add:i,remove:a,removeAll:s,update:l,has:m})),[i,a,s,l,m]);return o.useImperativeHandle(t,(()=>({add:i,remove:a,removeAll:s,update:l,has:m}))),o.createElement(f.Provider,{value:g},o.createElement(p.Provider,{value:n},e))}));h.displayName="ToasterProvider";var m=n(46819),g=n(98587),v=n(58168),y=n(9417),b=n(25540),w=n(10641);function _(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function x(e,t,n){return null!=n[t]?n[t]:e.props[t]}function E(e,t,n){var r=_(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if((0,o.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:x(s,"exit",e),enter:x(s,"enter",e)})):i[a]=(0,o.cloneElement)(s,{in:!1}):i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:x(s,"exit",e),enter:x(s,"enter",e)})}})),i}var S=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},k=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,y.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,b.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,_(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:x(e,"appear",n),enter:x(e,"enter",n),exit:x(e,"exit",n)})}))):E(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=_(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,v.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,g.A)(e,["component","childFactory"]),i=this.state.contextValue,a=S(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(w.A.Provider,{value:i},a):o.createElement(w.A.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);k.propTypes={},k.defaultProps={component:"div",childFactory:function(e){return e}};const C=k;var O=n(72630),N=n(6826),T=n(43937),I=n(70825),A=n(94420),P=n(27612),D=n(81240);function R({onClose:e,timeout:t}){const[n,r,i]=function(){const[e,t]=o.useState(!1);return[o.useCallback((()=>{t(!0)}),[]),o.useCallback((()=>{t(!1)}),[]),e]}();var a,s;return a=e,s=i?null:t,o.useEffect((()=>{if("number"!==typeof s)return;const e=setTimeout((()=>{a()}),s);return()=>{clearTimeout(e)}}),[a,s]),{onMouseOver:n,onMouseLeave:r}}var j=n(84476),M=n(99991),L=n(72837);const z=JSON.parse('{"label_close-button":"Close"}'),F=JSON.parse('{"label_close-button":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),B=(0,L.N)({en:z,ru:F},"Toaster"),U=(0,l.om)("toast"),q=5e3,$={normal:null,info:T.A,success:I.A,warning:A.A,danger:A.A,utility:P.A};const H=o.forwardRef((function(e,t){const{name:n,content:r,actions:i,title:a,className:s,theme:l="normal",renderIcon:c,autoHiding:u=q,isClosable:d=!0,mobile:f=!1,onClose:p,removeCallback:h}=e,m=o.useCallback((()=>{h(n),p&&p()}),[h,p,n]),g=R({onClose:m,timeout:"number"===typeof u?u:void 0}),v={mobile:f,theme:l},y=Boolean(a),b=Boolean(r),w=c?c(e):function({theme:e}){return e&&$[e]?o.createElement(M.I,{data:$[e],size:20,className:U("icon",{[e]:!0})}):null}({theme:l});return o.createElement("div",Object.assign({ref:t,className:U(v,s)},g,{"data-toast":!0}),w&&o.createElement("div",{className:U("icon-container")},w),o.createElement("div",{className:U("container")},y&&o.createElement("h3",{className:U("title")},a),d&&o.createElement(j.$,{size:"s",view:"flat",className:U("btn-close"),onClick:m,extraProps:{"aria-label":B("label_close-button")}},o.createElement(M.I,{data:D.A})),b&&o.createElement("div",{className:U("content",{"without-title":!y})},r),function({actions:e,onClose:t}){return e&&e.length?o.createElement("div",{className:U("actions")},e.map((({label:e,onClick:n,view:r="outlined",removeAfterClick:i=!0},a)=>o.createElement(j.$,{key:`${e}__${a}`,className:U("action"),onClick:()=>{n(),i&&t()},type:"button",size:"l",view:r,width:"auto"},e)))):null}({actions:i,onClose:m})))})),W=(0,N.L)((0,l.om)("toast-animation-desktop")),V=(0,N.L)((0,l.om)("toast-animation-mobile"));function G(e){const{toasts:t,mobile:n,removeCallback:r}=e;return o.createElement(C,{component:null},t.map((e=>o.createElement(O.A,{key:`${e.name}_${e.addedAt}`,nodeRef:e.ref,classNames:n?V:W,addEndListener:t=>{var n,r;return null===(r=null===(n=e.ref)||void 0===n?void 0:n.current)||void 0===r?void 0:r.addEventListener("animationend",t)},onEnter:()=>Z(e),onExit:()=>Z(e)},o.createElement(H,Object.assign({},e,{mobile:n,removeCallback:r}))))))}function Z(e){var t;(null===(t=e.ref)||void 0===t?void 0:t.current)&&e.ref.current.style.setProperty("--_--item-height",`${e.ref.current.offsetHeight}px`)}var K=n(98392);const Y=(0,l.om)("toaster");function Q({children:e,className:t,mobile:n}){const r=o.useRef("undefined"===typeof document?void 0:document.createElement("div"));return o.useEffect((()=>{const e=r.current;if(e)return document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[]),o.useEffect((()=>{r.current&&(r.current.className=Y({mobile:n},t))}),[t,n]),o.createElement(K.Z,{container:r.current},e)}function J({className:e,mobile:t,hasPortal:n=!0}){const r=(0,m.I)(),{remove:i}=function(){const e=o.useContext(f);if(null===e)throw new Error("Toaster: `useToaster` hook is used out of context");return o.useMemo((()=>e),[e])}(),a=o.useContext(p),s=o.createElement(G,{toasts:a,removeCallback:i,mobile:null!==t&&void 0!==t?t:r});return n?o.createElement(Q,{className:e||"",mobile:null!==t&&void 0!==t?t:r},s):s}Q.displayName="ToasterPortal",J.displayName="ToasterComponent";const X=Symbol("Toaster instance key"),ee=(0,l.om)("toaster");let te;class ne{static injectReactDOMClient(e){te=e}constructor(e){this.className="",this.mobile=!1,this.componentAPI=null,this.add=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.add(e)},this.remove=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.remove(e)},this.removeAll=()=>{var e;null===(e=this.componentAPI)||void 0===e||e.removeAll()},this.update=(e,t)=>{var n;null===(n=this.componentAPI)||void 0===n||n.update(e,t)},this.has=e=>{var t,n;return null!==(n=null===(t=this.componentAPI)||void 0===t?void 0:t.has(e))&&void 0!==n&&n};const t=a()(e,["className"],""),n=a()(e,["mobile"],!1);if(window[X]instanceof ne){const e=window[X];return e.className=t,e.mobile=n,e.setRootNodeClassName(),e}this.className=t,this.mobile=n,this.createRootNode(),this.createReactRoot(),this.render(),window[X]=this}destroy(){s.unmountComponentAtNode(this.rootNode),document.body.removeChild(this.rootNode)}createRootNode(){this.rootNode=document.createElement("div"),this.setRootNodeClassName(),document.body.appendChild(this.rootNode)}createReactRoot(){te&&(this.reactRoot=te.createRoot(this.rootNode))}render(){const e=o.createElement(h,{ref:e=>{this.componentAPI=e}},o.createElement(J,{hasPortal:!1,mobile:this.mobile}));this.reactRoot?this.reactRoot.render(e):s.render(e,this.rootNode,(()=>Promise.resolve()))}setRootNodeClassName(){this.rootNode.className=ee({mobile:this.mobile},this.className)}}ne.injectReactDOMClient(r);const re="object"===typeof window?new ne:{}},50803:(e,t,n)=>{"use strict";var r=n(94701),o=n(68031),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o(n):n}},68031:(e,t,n)=>{"use strict";var r=n(35711),o=n(94701),i=n(46985),a=n(39955),s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(l,s),u=n(78599),d=o("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=c(r,l,arguments);return i(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return c(r,s,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},32133:(e,t,n)=>{"use strict";var r=n(33410),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},22868:(e,t,n)=>{"use strict";var r=n(67796),o={};function i(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}var a="mixins";e.exports=function(e,t,n){var s=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},c={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)f(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=h(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(i(!(n in u),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e)return i("DEFINE_MANY_MERGED"===(c.hasOwnProperty(n)?c[n]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=h(e[n],r));e[n]=r}}}(e,t)},autobind:function(){}};function d(e,t){var n=l.hasOwnProperty(t)?l[t]:null;b.hasOwnProperty(t)&&i("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function f(e,n){if(n){i("function"!==typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),i(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,o=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(a)&&u.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==a){var c=n[s],f=r.hasOwnProperty(s);if(d(f,s),u.hasOwnProperty(s))u[s](e,c);else{var p=l.hasOwnProperty(s);if("function"===typeof c&&!p&&!f&&!1!==n.autobind)o.push(s,c),r[s]=c;else if(f){var g=l[s];i(p&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,s),"DEFINE_MANY_MERGED"===g?r[s]=h(r[s],c):"DEFINE_MANY"===g&&(r[s]=m(r[s],c))}else r[s]=c}}}else;}function p(e,t){for(var n in i(e&&t&&"object"===typeof e&&"object"===typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(i(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function h(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return p(o,n),p(o,r),o}}function m(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function g(e,t){return t.bind(e)}var v={componentDidMount:function(){this.__isMounted=!0}},y={componentWillUnmount:function(){this.__isMounted=!1}},b={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},w=function(){};return r(w.prototype,e.prototype,b),function(e){var t=function(e,r,a){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=g(e,o)}}(this),this.props=e,this.context=r,this.refs=o,this.updater=a||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;i("object"===typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s};for(var r in t.prototype=new w,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],s.forEach(f.bind(null,t)),f(t,v),f(t,e),f(t,y),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[r]||(t.prototype[r]=null);return t}}},14538:(e,t,n)=>{"use strict";var r=n(59284),o=n(22868);if("undefined"===typeof r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,i)},91740:e=>{e.exports=Date.now||function(){return(new Date).getTime()}},88409:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=g;var _="$isDayjsObject",x=function(e){return e instanceof C||!(!e||!e[_])},E=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},S=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},k=y;k.l=E,k.i=x,k.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function g(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!k.u(t)||t,u=k.p(e),p=function(e,t){var o=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},h=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(r?v-w:v+(6-w),g);case s:case f:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case o:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=k.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[f]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[k.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var h=k.p(u),m=function(e){var t=S(p);return k.w(t.date(t.date()+Math.round(e*r)),p)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var g=(f={},f[i]=t,f[a]=n,f[o]=e,f)[h]||1,v=this.$d.getTime()+r*g;return k.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=k.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return k.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return k.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var h,m=this,g=k.p(f),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return k.m(m,v)};switch(g){case d:h=w()/12;break;case c:h=w();break;case u:h=w()/3;break;case l:h=(b-y)/6048e5;break;case s:h=(b-y)/864e5;break;case a:h=b/n;break;case i:h=b/t;break;case o:h=b/e;break;default:h=b}return p?h:k.a(h)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=E(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),O=C.prototype;return S.prototype=O,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",d],["$D",f]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,C,S),e.$i=!0),S},S.locale=E,S.isDayjs=x,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()},54533:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var c=a[l],u=d[c],f=u&&u[0],p=u&&u[1];a[l]=p?{regex:f,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,l=o.parser,c=e.slice(r),u=i.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],c=!0===a[3],u=l||c,d=a[2];c&&(d=a[2]),i=this.$locale(),!l&&d&&(i=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),o=r.year,i=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,h=a||(o||i?1:p.getDate()),m=o||p.getFullYear(),g=0;o&&!i||(g=i>0?i-1:p.getMonth());var v=s||0,y=l||0,b=c||0,w=u||0;return d?new Date(Date.UTC(m,g,h,v,y,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(m,g,h,v,y,b,w)):new Date(m,g,h,v,y,b,w)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},20549:function(e){e.exports=function(){"use strict";return function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach((function(e){r[e]=t[e]})),r}}}()},77354:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),o=i(e).local();return f.call(r,o,t,n)}}}()},41470:(e,t,n)=>{var r=n(91740);e.exports=function(e,t,n){var o,i,a,s,l;function c(){var u=r()-s;u<t&&u>0?o=setTimeout(c,t-u):(o=null,n||(l=e.apply(a,i),o||(a=i=null)))}return null==t&&(t=100),function(){a=this,i=arguments,s=r();var u=n&&!o;return o||(o=setTimeout(c,t)),u&&(l=e.apply(a,i),a=i=null),l}}},77089:(e,t,n)=>{"use strict";var r=n(78599),o=n(78236),i=n(39955),a=n(84363);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new i("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},78599:(e,t,n)=>{"use strict";var r=n(94701)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(o){r=!1}e.exports=r},82461:e=>{"use strict";e.exports=EvalError},73759:e=>{"use strict";e.exports=Error},52530:e=>{"use strict";e.exports=RangeError},19770:e=>{"use strict";e.exports=ReferenceError},78236:e=>{"use strict";e.exports=SyntaxError},39955:e=>{"use strict";e.exports=TypeError},22921:e=>{"use strict";e.exports=URIError},9265:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!==typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),s=n(0,o.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},35711:(e,t,n)=>{"use strict";var r=n(9265);e.exports=Function.prototype.bind||r},94701:(e,t,n)=>{"use strict";var r,o=n(73759),i=n(82461),a=n(52530),s=n(19770),l=n(78236),c=n(39955),u=n(22921),d=Function,f=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(t){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(j){p=null}var h=function(){throw new c},m=p?function(){try{return h}catch(e){try{return p(arguments,"callee").get}catch(t){return h}}}():h,g=n(27199)(),v=n(13776)(),y=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),b={},w="undefined"!==typeof Uint8Array&&y?y(Uint8Array):r,_={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":b,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&g&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&g&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&y?y(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(j){var x=y(y(j));_["%Error.prototype%"]=x}var E=function e(t){var n;if("%AsyncFunction%"===t)n=f("async function () {}");else if("%GeneratorFunction%"===t)n=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=f("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return _[t]=n,n},S={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=n(35711),C=n(86173),O=k.call(Function.call,Array.prototype.concat),N=k.call(Function.apply,Array.prototype.splice),T=k.call(Function.call,String.prototype.replace),I=k.call(Function.call,String.prototype.slice),A=k.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,R=function(e,t){var n,r=e;if(C(S,r)&&(r="%"+(n=S[r])[0]+"%"),C(_,r)){var o=_[r];if(o===b&&(o=E(r)),"undefined"===typeof o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=I(e,0,1),n=I(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return T(e,P,(function(e,t,n,o){r[r.length]=n?T(o,D,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,s=!1,u=o.alias;u&&(r=u[0],N(n,O([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],m=I(h,0,1),g=I(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&f||(s=!0),C(_,i="%"+(r+="."+h)+"%"))a=_[i];else if(null!=a){if(!(h in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&d+1>=n.length){var v=p(a,h);a=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[h]}else f=C(a,h),a=a[h];f&&!s&&(_[i]=a)}}return a}},84363:(e,t,n)=>{"use strict";var r=n(94701)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(o){r=null}e.exports=r},67032:(e,t,n)=>{"use strict";var r=n(78599),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},13776:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},27199:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n(80605);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},80605:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},86173:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(35711);e.exports=i.call(r,o)},45264:(e,t,n)=>{"use strict";n.d(t,{zR:()=>E,TM:()=>T,yJ:()=>m,sC:()=>A,AO:()=>h,Fu:()=>g});var r=n(58168);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&o(e),l=t&&o(t),c=s||l;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?i(a,f):".."===p?(i(a,f),d++):d&&(i(a,f),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),o=s(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(69933);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,r.A)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var w="popstate",_="hashchange";function x(){try{return window.history.state||{}}catch(e){return{}}}function E(e){void 0===e&&(e={}),y||(0,c.A)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,s=void 0!==a&&a,l=i.getUserConfirmation,d=void 0===l?b:l,g=i.keyLength,E=void 0===g?6:g,S=e.basename?p(u(e.basename)):"";function k(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return S&&(i=f(i,S)),m(i,r,n)}function C(){return Math.random().toString(36).substr(2,E)}var O=v();function N(e){(0,r.A)(B,e),B.length=t.length,O.notifyListeners(B.location,B.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||P(k(e.state))}function I(){P(k(x()))}var A=!1;function P(e){if(A)A=!1,N();else{O.confirmTransitionTo(e,"POP",d,(function(t){t?N({action:"POP",location:e}):function(e){var t=B.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(A=!0,M(o))}(e)}))}}var D=k(x()),R=[D.key];function j(e){return S+h(e)}function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?(window.addEventListener(w,T),o&&window.addEventListener(_,I)):0===L&&(window.removeEventListener(w,T),o&&window.removeEventListener(_,I))}var F=!1;var B={length:t.length,action:"POP",location:D,createHref:j,push:function(e,r){var o="PUSH",i=m(e,r,C(),B.location);O.confirmTransitionTo(i,o,d,(function(e){if(e){var r=j(i),a=i.key,l=i.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var c=R.indexOf(B.location.key),u=R.slice(0,c+1);u.push(i.key),R=u,N({action:o,location:i})}else window.location.href=r}}))},replace:function(e,r){var o="REPLACE",i=m(e,r,C(),B.location);O.confirmTransitionTo(i,o,d,(function(e){if(e){var r=j(i),a=i.key,l=i.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var c=R.indexOf(B.location.key);-1!==c&&(R[c]=i.key),N({action:o,location:i})}else window.location.replace(r)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=O.appendListener(e);return z(1),function(){z(-1),t()}}};return B}var S="hashchange",k={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function C(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function O(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function N(e){window.location.replace(C(window.location.href)+"#"+e)}function T(e){void 0===e&&(e={}),y||(0,c.A)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,i=void 0===o?b:o,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?p(u(e.basename)):"",d=k[s],g=d.encodePath,w=d.decodePath;function _(){var e=w(O());return l&&(e=f(e,l)),m(e)}var x=v();function E(e){(0,r.A)(B,e),B.length=t.length,x.notifyListeners(B.location,B.action)}var T=!1,I=null;function A(){var e,t,n=O(),r=g(n);if(n!==r)N(r);else{var o=_(),a=B.location;if(!T&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(I===h(o))return;I=null,function(e){if(T)T=!1,E();else{var t="POP";x.confirmTransitionTo(e,t,i,(function(n){n?E({action:t,location:e}):function(e){var t=B.location,n=j.lastIndexOf(h(t));-1===n&&(n=0);var r=j.lastIndexOf(h(e));-1===r&&(r=0);var o=n-r;o&&(T=!0,M(o))}(e)}))}}(o)}}var P=O(),D=g(P);P!==D&&N(D);var R=_(),j=[h(R)];function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?window.addEventListener(S,A):0===L&&window.removeEventListener(S,A)}var F=!1;var B={length:t.length,action:"POP",location:R,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=C(window.location.href)),n+"#"+g(l+h(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,B.location);x.confirmTransitionTo(r,n,i,(function(e){if(e){var t=h(r),o=g(l+t);if(O()!==o){I=t,function(e){window.location.hash=e}(o);var i=j.lastIndexOf(h(B.location)),a=j.slice(0,i+1);a.push(t),j=a,E({action:n,location:r})}else E()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,B.location);x.confirmTransitionTo(r,n,i,(function(e){if(e){var t=h(r),o=g(l+t);O()!==o&&(I=t,N(o));var i=j.indexOf(h(B.location));-1!==i&&(j[i]=t),E({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=x.appendListener(e);return z(1),function(){z(-1),t()}}};return B}function I(e,t,n){return Math.min(Math.max(e,t),n)}function A(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,u=v();function d(e){(0,r.A)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function f(){return Math.random().toString(36).substr(2,c)}var p=I(s,0,i.length-1),g=i.map((function(e){return m(e,void 0,"string"===typeof e?f():e.key||f())})),y=h;function b(e){var t=I(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:g.length,action:"POP",location:g[p],index:p,entries:g,createHref:y,push:function(e,t){var r="PUSH",o=m(e,t,f(),w.location);u.confirmTransitionTo(o,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=m(e,t,f(),w.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,d({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},5290:(e,t,n)=>{"use strict";var r=n(51700),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!i[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},65144:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function x(e){return _(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||_(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},51700:(e,t,n)=>{"use strict";e.exports=n(65144)},83791:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},70911:e=>{"use strict";const t=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);e.exports=e=>!t.has(e&&e.code)},4786:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},36484:(e,t,n)=>{var r=n(92470)(n(4133),"DataView");e.exports=r},7653:(e,t,n)=>{var r=n(22984),o=n(99806),i=n(68489),a=n(38533),s=n(99661);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},935:(e,t,n)=>{var r=n(93454),o=n(4200),i=n(30507),a=n(74343),s=n(28815);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},37815:(e,t,n)=>{var r=n(92470)(n(4133),"Map");e.exports=r},97269:(e,t,n)=>{var r=n(11320),o=n(22894),i=n(23097),a=n(78453),s=n(24381);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},70364:(e,t,n)=>{var r=n(92470)(n(4133),"Promise");e.exports=r},32361:(e,t,n)=>{var r=n(92470)(n(4133),"Set");e.exports=r},90035:(e,t,n)=>{var r=n(97269),o=n(67596),i=n(78475);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},81382:(e,t,n)=>{var r=n(935),o=n(4212),i=n(64898),a=n(42589),s=n(98545),l=n(26905);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},537:(e,t,n)=>{var r=n(4133).Symbol;e.exports=r},7804:(e,t,n)=>{var r=n(4133).Uint8Array;e.exports=r},41527:(e,t,n)=>{var r=n(92470)(n(4133),"WeakMap");e.exports=r},34657:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},12249:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},61522:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},82789:(e,t,n)=>{var r=n(11275);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},19417:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},20943:(e,t,n)=>{var r=n(30040),o=n(52964),i=n(19305),a=n(20368),s=n(83649),l=n(91159),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&l(e),p=n||u||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},54380:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},59368:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},89728:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},63786:e=>{e.exports=function(e){return e.split("")}},14837:(e,t,n)=>{var r=n(80472),o=n(61872);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},71259:(e,t,n)=>{var r=n(80472),o=n(61872),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},6993:(e,t,n)=>{var r=n(61872);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},63909:(e,t,n)=>{var r=n(62871),o=n(96294);e.exports=function(e,t){return e&&r(t,o(t),e)}},46710:(e,t,n)=>{var r=n(62871),o=n(6737);e.exports=function(e,t){return e&&r(t,o(t),e)}},80472:(e,t,n)=>{var r=n(40691);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},35367:(e,t,n)=>{var r=n(81382),o=n(12249),i=n(71259),a=n(63909),s=n(46710),l=n(49538),c=n(11319),u=n(40279),d=n(91644),f=n(67530),p=n(35725),h=n(43261),m=n(613),g=n(55799),v=n(52497),y=n(19305),b=n(20368),w=n(50490),_=n(38469),x=n(87232),E=n(96294),S=n(6737),k="[object Arguments]",C="[object Function]",O="[object Object]",N={};N[k]=N["[object Array]"]=N["[object ArrayBuffer]"]=N["[object DataView]"]=N["[object Boolean]"]=N["[object Date]"]=N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Map]"]=N["[object Number]"]=N[O]=N["[object RegExp]"]=N["[object Set]"]=N["[object String]"]=N["[object Symbol]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N["[object Error]"]=N[C]=N["[object WeakMap]"]=!1,e.exports=function e(t,n,T,I,A,P){var D,R=1&n,j=2&n,M=4&n;if(T&&(D=A?T(t,I,A,P):T(t)),void 0!==D)return D;if(!_(t))return t;var L=y(t);if(L){if(D=m(t),!R)return c(t,D)}else{var z=h(t),F=z==C||"[object GeneratorFunction]"==z;if(b(t))return l(t,R);if(z==O||z==k||F&&!A){if(D=j||F?{}:v(t),!R)return j?d(t,s(D,t)):u(t,a(D,t))}else{if(!N[z])return A?t:{};D=g(t,z,R)}}P||(P=new r);var B=P.get(t);if(B)return B;P.set(t,D),x(t)?t.forEach((function(r){D.add(e(r,n,T,r,t,P))})):w(t)&&t.forEach((function(r,o){D.set(o,e(r,n,T,o,t,P))}));var U=L?void 0:(M?j?p:f:j?S:E)(t);return o(U||t,(function(r,o){U&&(r=t[o=r]),i(D,o,e(r,n,T,o,t,P))})),D}},50088:(e,t,n)=>{var r=n(38469),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},75125:(e,t,n)=>{var r=n(98137),o=n(94305)(r);e.exports=o},89875:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},84401:(e,t,n)=>{var r=n(31693)();e.exports=r},98137:(e,t,n)=>{var r=n(84401),o=n(96294);e.exports=function(e,t){return e&&r(e,t,o)}},43238:(e,t,n)=>{var r=n(68097),o=n(92061);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},21551:(e,t,n)=>{var r=n(59368),o=n(19305);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},16320:(e,t,n)=>{var r=n(537),o=n(48955),i=n(85406),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},16133:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},11275:(e,t,n)=>{var r=n(89875),o=n(21519),i=n(68055);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,o,n)}},19750:(e,t,n)=>{var r=n(16320),o=n(59698);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},31926:(e,t,n)=>{var r=n(84100),o=n(59698);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,s))}},84100:(e,t,n)=>{var r=n(81382),o=n(63679),i=n(39450),a=n(66217),s=n(43261),l=n(19305),c=n(20368),u=n(91159),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),w=y?f:s(e),_=b?f:s(t),x=(w=w==d?p:w)==p,E=(_=_==d?p:_)==p,S=w==_;if(S&&c(e)){if(!c(t))return!1;y=!0,x=!1}if(S&&!x)return v||(v=new r),y||u(e)?o(e,t,n,m,g,v):i(e,t,w,n,m,g,v);if(!(1&n)){var k=x&&h.call(e,"__wrapped__"),C=E&&h.call(t,"__wrapped__");if(k||C){var O=k?e.value():e,N=C?t.value():t;return v||(v=new r),g(O,N,n,m,v)}}return!!S&&(v||(v=new r),a(e,t,n,m,g,v))}},72220:(e,t,n)=>{var r=n(43261),o=n(59698);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},8543:(e,t,n)=>{var r=n(81382),o=n(31926);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(i)var h=i(d,f,u,e,t,p);if(!(void 0===h?o(f,d,3,i,p):h))return!1}}return!0}},21519:e=>{e.exports=function(e){return e!==e}},84579:(e,t,n)=>{var r=n(36738),o=n(31016),i=n(38469),a=n(45865),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},68414:(e,t,n)=>{var r=n(43261),o=n(59698);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},54573:(e,t,n)=>{var r=n(16320),o=n(72078),i=n(59698),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},28293:(e,t,n)=>{var r=n(85191),o=n(4178),i=n(9112),a=n(19305),s=n(35535);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},71824:(e,t,n)=>{var r=n(48303),o=n(54074),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},24447:(e,t,n)=>{var r=n(38469),o=n(48303),i=n(71325),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},85191:(e,t,n)=>{var r=n(8543),o=n(83216),i=n(89157);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},4178:(e,t,n)=>{var r=n(31926),o=n(87924),i=n(1167),a=n(46626),s=n(17900),l=n(89157),c=n(92061);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},634:(e,t,n)=>{var r=n(81382),o=n(14837),i=n(84401),a=n(66944),s=n(38469),l=n(6737),c=n(76614);e.exports=function e(t,n,u,d,f){t!==n&&i(n,(function(i,l){if(f||(f=new r),s(i))a(t,n,l,u,e,d,f);else{var p=d?d(c(t,l),i,l+"",t,n,f):void 0;void 0===p&&(p=i),o(t,l,p)}}),l)}},66944:(e,t,n)=>{var r=n(14837),o=n(49538),i=n(99889),a=n(11319),s=n(52497),l=n(52964),c=n(19305),u=n(59653),d=n(20368),f=n(36738),p=n(38469),h=n(20011),m=n(91159),g=n(76614),v=n(26180);e.exports=function(e,t,n,y,b,w,_){var x=g(e,n),E=g(t,n),S=_.get(E);if(S)r(e,n,S);else{var k=w?w(x,E,n+"",e,t,_):void 0,C=void 0===k;if(C){var O=c(E),N=!O&&d(E),T=!O&&!N&&m(E);k=E,O||N||T?c(x)?k=x:u(x)?k=a(x):N?(C=!1,k=o(E,!0)):T?(C=!1,k=i(E,!0)):k=[]:h(E)||l(E)?(k=x,l(x)?k=v(x):p(x)&&!f(x)||(k=s(E))):C=!1}C&&(_.set(E,k),b(k,E,y,w,_),_.delete(E)),r(e,n,k)}}},73885:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},49535:(e,t,n)=>{var r=n(43238);e.exports=function(e){return function(t){return r(t,e)}}},44735:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,s=n(t((r-e)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=e,e+=o;return l}},62990:(e,t,n)=>{var r=n(9112),o=n(39069),i=n(72633);e.exports=function(e,t){return i(o(e,t,r),e+"")}},63546:(e,t,n)=>{var r=n(71259),o=n(68097),i=n(83649),a=n(38469),s=n(92061);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,f=e;null!=f&&++c<u;){var p=s(t[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=f[p];void 0===(h=l?l(m,p,f):void 0)&&(h=a(m)?m:i(t[c+1])?[]:{})}r(f,p,h),f=f[p]}return e}},47018:(e,t,n)=>{var r=n(80222),o=n(40691),i=n(9112),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},32112:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},30040:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},85532:(e,t,n)=>{var r=n(537),o=n(54380),i=n(19305),a=n(60242),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},15464:(e,t,n)=>{var r=n(73712),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},57741:e=>{e.exports=function(e){return function(t){return e(t)}}},62509:(e,t,n)=>{var r=n(90035),o=n(82789),i=n(19417),a=n(2859),s=n(43821),l=n(80303);e.exports=function(e,t,n){var c=-1,u=o,d=e.length,f=!0,p=[],h=p;if(n)f=!1,u=i;else if(d>=200){var m=t?null:s(e);if(m)return l(m);f=!1,u=a,h=new r}else h=t?[]:p;e:for(;++c<d;){var g=e[c],v=t?t(g):g;if(g=n||0!==g?g:0,f&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),p.push(g)}else u(h,v,n)||(h!==p&&h.push(v),p.push(g))}return p}},2859:e=>{e.exports=function(e,t){return e.has(t)}},37530:(e,t,n)=>{var r=n(9112);e.exports=function(e){return"function"==typeof e?e:r}},68097:(e,t,n)=>{var r=n(19305),o=n(46626),i=n(35554),a=n(68814);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},19418:(e,t,n)=>{var r=n(32112);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},74413:(e,t,n)=>{var r=n(7804);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},49538:(e,t,n)=>{e=n.nmd(e);var r=n(4133),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},54353:(e,t,n)=>{var r=n(74413);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},72665:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},33120:(e,t,n)=>{var r=n(537),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},99889:(e,t,n)=>{var r=n(74413);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},11319:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},62871:(e,t,n)=>{var r=n(71259),o=n(80472);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},40279:(e,t,n)=>{var r=n(62871),o=n(54736);e.exports=function(e,t){return r(e,o(e),t)}},91644:(e,t,n)=>{var r=n(62871),o=n(12927);e.exports=function(e,t){return r(e,o(e),t)}},31473:(e,t,n)=>{var r=n(4133)["__core-js_shared__"];e.exports=r},35647:(e,t,n)=>{var r=n(62990),o=n(90552);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}},94305:(e,t,n)=>{var r=n(88118);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},31693:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},78195:(e,t,n)=>{var r=n(19418),o=n(9434),i=n(12880),a=n(68814);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},73148:(e,t,n)=>{var r=n(44735),o=n(90552),i=n(29776);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},64205:(e,t,n)=>{var r=n(4133),o=n(33609),i=n(150),a=n(68814),s=r.isFinite,l=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=i(e),(n=null==n?0:l(o(n),292))&&s(e)){var r=(a(e)+"e").split("e"),c=t(r[0]+"e"+(+r[1]+n));return+((r=(a(c)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}},43821:(e,t,n)=>{var r=n(32361),o=n(94454),i=n(80303),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},40691:(e,t,n)=>{var r=n(92470),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},63679:(e,t,n)=>{var r=n(90035),o=n(89728),i=n(2859);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var v=e[h],y=t[h];if(a)var b=c?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},39450:(e,t,n)=>{var r=n(537),o=n(7804),i=n(61872),a=n(63679),s=n(96741),l=n(80303),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=a(p(e),p(t),r,c,d,f);return f.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},66217:(e,t,n)=>{var r=n(67530),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in t:o.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var v=e[f=c[d]],y=t[f];if(i)var b=l?i(y,v,f,t,e,s):i(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,i,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(m=!1)}return s.delete(e),s.delete(t),m}},54528:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},67530:(e,t,n)=>{var r=n(21551),o=n(54736),i=n(96294);e.exports=function(e){return r(e,i,o)}},35725:(e,t,n)=>{var r=n(21551),o=n(12927),i=n(6737);e.exports=function(e){return r(e,i,o)}},85651:(e,t,n)=>{var r=n(19058);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},83216:(e,t,n)=>{var r=n(17900),o=n(96294);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},92470:(e,t,n)=>{var r=n(84579),o=n(98112);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},22807:(e,t,n)=>{var r=n(64503)(Object.getPrototypeOf,Object);e.exports=r},48955:(e,t,n)=>{var r=n(537),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},54736:(e,t,n)=>{var r=n(61522),o=n(82121),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},12927:(e,t,n)=>{var r=n(59368),o=n(22807),i=n(54736),a=n(82121),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},43261:(e,t,n)=>{var r=n(36484),o=n(37815),i=n(70364),a=n(32361),s=n(41527),l=n(16320),c=n(45865),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=c(r),g=c(o),v=c(i),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case g:return u;case v:return d;case y:return f;case b:return p}return t}),e.exports=w},98112:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},78326:(e,t,n)=>{var r=n(68097),o=n(52964),i=n(19305),a=n(83649),s=n(72078),l=n(92061);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var f=l(t[c]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(i(e)||o(e))}},9434:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},22984:(e,t,n)=>{var r=n(57578);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},99806:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},68489:(e,t,n)=>{var r=n(57578),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},38533:(e,t,n)=>{var r=n(57578),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},99661:(e,t,n)=>{var r=n(57578);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},613:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},55799:(e,t,n)=>{var r=n(74413),o=n(54353),i=n(72665),a=n(33120),s=n(99889);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},52497:(e,t,n)=>{var r=n(50088),o=n(22807),i=n(48303);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},83649:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},90552:(e,t,n)=>{var r=n(61872),o=n(88118),i=n(83649),a=n(38469);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},46626:(e,t,n)=>{var r=n(19305),o=n(60242),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},19058:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},31016:(e,t,n)=>{var r=n(31473),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},48303:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},17900:(e,t,n)=>{var r=n(38469);e.exports=function(e){return e===e&&!r(e)}},93454:e=>{e.exports=function(){this.__data__=[],this.size=0}},4200:(e,t,n)=>{var r=n(6993),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},30507:(e,t,n)=>{var r=n(6993);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},74343:(e,t,n)=>{var r=n(6993);e.exports=function(e){return r(this.__data__,e)>-1}},28815:(e,t,n)=>{var r=n(6993);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},11320:(e,t,n)=>{var r=n(7653),o=n(935),i=n(37815);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},22894:(e,t,n)=>{var r=n(85651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},23097:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).get(e)}},78453:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).has(e)}},24381:(e,t,n)=>{var r=n(85651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},96741:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},89157:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},18408:(e,t,n)=>{var r=n(45296);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},57578:(e,t,n)=>{var r=n(92470)(Object,"create");e.exports=r},54074:(e,t,n)=>{var r=n(64503)(Object.keys,Object);e.exports=r},71325:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},73073:(e,t,n)=>{e=n.nmd(e);var r=n(54528),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},85406:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},64503:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},39069:(e,t,n)=>{var r=n(34657),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},4133:(e,t,n)=>{var r=n(54528),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},76614:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},67596:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},78475:e=>{e.exports=function(e){return this.__data__.has(e)}},80303:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},72633:(e,t,n)=>{var r=n(47018),o=n(29355)(r);e.exports=o},29355:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},4212:(e,t,n)=>{var r=n(935);e.exports=function(){this.__data__=new r,this.size=0}},64898:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},42589:e=>{e.exports=function(e){return this.__data__.get(e)}},98545:e=>{e.exports=function(e){return this.__data__.has(e)}},26905:(e,t,n)=>{var r=n(935),o=n(37815),i=n(97269);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},68055:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},12880:(e,t,n)=>{var r=n(63786),o=n(9434),i=n(20878);e.exports=function(e){return o(e)?i(e):r(e)}},35554:(e,t,n)=>{var r=n(18408),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},92061:(e,t,n)=>{var r=n(60242);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},45865:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},73712:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},20878:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+l+")*"),d="(?:"+[i+r+"?",r,a,s,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){return e.match(f)||[]}},98816:(e,t,n)=>{var r=n(68814),o=n(58120);e.exports=function(e){return o(r(e).toLowerCase())}},58671:(e,t,n)=>{var r=n(35367);e.exports=function(e){return r(e,5)}},80222:e=>{e.exports=function(e){return function(){return e}}},43781:(e,t,n)=>{var r=n(38469),o=n(65236),i=n(150),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=u}function w(){var e=o();if(b(e))return _(e);f=setTimeout(w,function(e){var n=t-(e-p);return g?s(n,u-(e-h)):n}(e))}function _(e){return f=void 0,v&&l?y(e):(l=c=void 0,d)}function x(){var e=o(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),m?y(e):d}(p);if(g)return clearTimeout(f),f=setTimeout(w,t),y(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=c=f=void 0},x.flush=function(){return void 0===f?d:_(o())},x}},22735:(e,t,n)=>{e.exports=n(54386)},61872:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},54386:(e,t,n)=>{var r=n(12249),o=n(75125),i=n(37530),a=n(19305);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},87924:(e,t,n)=>{var r=n(43238);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},1167:(e,t,n)=>{var r=n(16133),o=n(78326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},9112:e=>{e.exports=function(e){return e}},52964:(e,t,n)=>{var r=n(19750),o=n(59698),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},19305:e=>{var t=Array.isArray;e.exports=t},88118:(e,t,n)=>{var r=n(36738),o=n(72078);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},59653:(e,t,n)=>{var r=n(88118),o=n(59698);e.exports=function(e){return o(e)&&r(e)}},20368:(e,t,n)=>{e=n.nmd(e);var r=n(4133),o=n(84711),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},905:(e,t,n)=>{var r=n(71824),o=n(43261),i=n(52964),a=n(19305),s=n(88118),l=n(20368),c=n(48303),u=n(91159),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},62060:(e,t,n)=>{var r=n(31926);e.exports=function(e,t){return r(e,t)}},36738:(e,t,n)=>{var r=n(16320),o=n(38469);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},72078:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},50490:(e,t,n)=>{var r=n(72220),o=n(57741),i=n(73073),a=i&&i.isMap,s=a?o(a):r;e.exports=s},38469:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},59698:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},20011:(e,t,n)=>{var r=n(16320),o=n(22807),i=n(59698),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},87232:(e,t,n)=>{var r=n(68414),o=n(57741),i=n(73073),a=i&&i.isSet,s=a?o(a):r;e.exports=s},60242:(e,t,n)=>{var r=n(16320),o=n(59698);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},91159:(e,t,n)=>{var r=n(54573),o=n(57741),i=n(73073),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},96294:(e,t,n)=>{var r=n(20943),o=n(71824),i=n(88118);e.exports=function(e){return i(e)?r(e):o(e)}},6737:(e,t,n)=>{var r=n(20943),o=n(24447),i=n(88118);e.exports=function(e){return i(e)?r(e,!0):o(e)}},45296:(e,t,n)=>{var r=n(97269);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},17148:(e,t,n)=>{var r=n(634),o=n(35647)((function(e,t,n){r(e,t,n)}));e.exports=o},94454:e=>{e.exports=function(){}},65236:(e,t,n)=>{var r=n(4133);e.exports=function(){return r.Date.now()}},35535:(e,t,n)=>{var r=n(73885),o=n(49535),i=n(46626),a=n(92061);e.exports=function(e){return i(e)?r(a(e)):o(e)}},36613:(e,t,n)=>{var r=n(73148)();e.exports=r},6104:(e,t,n)=>{var r=n(64205)("round");e.exports=r},38896:(e,t,n)=>{var r=n(63546);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},82121:e=>{e.exports=function(){return[]}},84711:e=>{e.exports=function(){return!1}},61758:(e,t,n)=>{var r=n(43781),o=n(38469);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},29776:(e,t,n)=>{var r=n(150),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},33609:(e,t,n)=>{var r=n(29776);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},150:(e,t,n)=>{var r=n(15464),o=n(38469),i=n(60242),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},26180:(e,t,n)=>{var r=n(62871),o=n(6737);e.exports=function(e){return r(e,o(e))}},68814:(e,t,n)=>{var r=n(85532);e.exports=function(e){return null==e?"":r(e)}},11078:(e,t,n)=>{var r=n(28293),o=n(62509);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},58120:(e,t,n)=>{var r=n(78195)("toUpperCase");e.exports=r},1445:e=>{"use strict";e.exports=function(e){for(var t=function(e){var t,n=1+(e.length+8>>6),r=new Array(16*n);for(t=0;t<16*n;t++)r[t]=0;for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<(8*e.length+t)%4*8;r[t>>2]|=128<<(8*e.length+t)%4*8;var o=8*e.length;return r[16*n-2]=255&o,r[16*n-2]|=(o>>>8&255)<<8,r[16*n-2]|=(o>>>16&255)<<16,r[16*n-2]|=(o>>>24&255)<<24,r}(e),n=1732584193,r=-271733879,o=-1732584194,s=271733878,f=0;f<t.length;f+=16){var p=n,h=r,m=o,g=s;n=l(n,r,o,s,t[f+0],7,-680876936),s=l(s,n,r,o,t[f+1],12,-389564586),o=l(o,s,n,r,t[f+2],17,606105819),r=l(r,o,s,n,t[f+3],22,-1044525330),n=l(n,r,o,s,t[f+4],7,-176418897),s=l(s,n,r,o,t[f+5],12,1200080426),o=l(o,s,n,r,t[f+6],17,-1473231341),r=l(r,o,s,n,t[f+7],22,-45705983),n=l(n,r,o,s,t[f+8],7,1770035416),s=l(s,n,r,o,t[f+9],12,-1958414417),o=l(o,s,n,r,t[f+10],17,-42063),r=l(r,o,s,n,t[f+11],22,-1990404162),n=l(n,r,o,s,t[f+12],7,1804603682),s=l(s,n,r,o,t[f+13],12,-40341101),o=l(o,s,n,r,t[f+14],17,-1502002290),n=c(n,r=l(r,o,s,n,t[f+15],22,1236535329),o,s,t[f+1],5,-165796510),s=c(s,n,r,o,t[f+6],9,-1069501632),o=c(o,s,n,r,t[f+11],14,643717713),r=c(r,o,s,n,t[f+0],20,-373897302),n=c(n,r,o,s,t[f+5],5,-701558691),s=c(s,n,r,o,t[f+10],9,38016083),o=c(o,s,n,r,t[f+15],14,-660478335),r=c(r,o,s,n,t[f+4],20,-405537848),n=c(n,r,o,s,t[f+9],5,568446438),s=c(s,n,r,o,t[f+14],9,-1019803690),o=c(o,s,n,r,t[f+3],14,-187363961),r=c(r,o,s,n,t[f+8],20,1163531501),n=c(n,r,o,s,t[f+13],5,-1444681467),s=c(s,n,r,o,t[f+2],9,-51403784),o=c(o,s,n,r,t[f+7],14,1735328473),n=u(n,r=c(r,o,s,n,t[f+12],20,-1926607734),o,s,t[f+5],4,-378558),s=u(s,n,r,o,t[f+8],11,-2022574463),o=u(o,s,n,r,t[f+11],16,1839030562),r=u(r,o,s,n,t[f+14],23,-35309556),n=u(n,r,o,s,t[f+1],4,-1530992060),s=u(s,n,r,o,t[f+4],11,1272893353),o=u(o,s,n,r,t[f+7],16,-155497632),r=u(r,o,s,n,t[f+10],23,-1094730640),n=u(n,r,o,s,t[f+13],4,681279174),s=u(s,n,r,o,t[f+0],11,-358537222),o=u(o,s,n,r,t[f+3],16,-722521979),r=u(r,o,s,n,t[f+6],23,76029189),n=u(n,r,o,s,t[f+9],4,-640364487),s=u(s,n,r,o,t[f+12],11,-421815835),o=u(o,s,n,r,t[f+15],16,530742520),n=d(n,r=u(r,o,s,n,t[f+2],23,-995338651),o,s,t[f+0],6,-198630844),s=d(s,n,r,o,t[f+7],10,1126891415),o=d(o,s,n,r,t[f+14],15,-1416354905),r=d(r,o,s,n,t[f+5],21,-57434055),n=d(n,r,o,s,t[f+12],6,1700485571),s=d(s,n,r,o,t[f+3],10,-1894986606),o=d(o,s,n,r,t[f+10],15,-1051523),r=d(r,o,s,n,t[f+1],21,-2054922799),n=d(n,r,o,s,t[f+8],6,1873313359),s=d(s,n,r,o,t[f+15],10,-30611744),o=d(o,s,n,r,t[f+6],15,-1560198380),r=d(r,o,s,n,t[f+13],21,1309151649),n=d(n,r,o,s,t[f+4],6,-145523070),s=d(s,n,r,o,t[f+11],10,-1120210379),o=d(o,s,n,r,t[f+2],15,718787259),r=d(r,o,s,n,t[f+9],21,-343485551),n=i(n,p),r=i(r,h),o=i(o,m),s=i(s,g)}return a(n)+a(r)+a(o)+a(s)};var t="0123456789abcdef";function n(e,t){return(e>>>1|t>>>1)<<1|(1&e|1&t)}function r(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t}function o(e,t){return(e>>>1&t>>>1)<<1|1&e&t}function i(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e){var n,r="";for(n=0;n<=3;n++)r+=t.charAt(e>>8*n+4&15)+t.charAt(e>>8*n&15);return r}function s(e,t,n,r,o,a){return i((s=i(i(t,e),i(r,a)))<<(l=o)|s>>>32-l,n);var s,l}function l(e,t,r,i,a,l,c){return s(n(o(t,r),o(~t,i)),e,t,a,l,c)}function c(e,t,r,i,a,l,c){return s(n(o(t,i),o(r,~i)),e,t,a,l,c)}function u(e,t,n,o,i,a,l){return s(r(r(t,n),o),e,t,i,a,l)}function d(e,t,o,i,a,l,c){return s(r(o,n(t,~i)),e,t,a,l,c)}},77995:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(o=e[n],i=t[n],!(o===i||r(o)&&r(i)))return!1;var o,i;return!0}const i=function(e,t){var n;void 0===t&&(t=o);var r,i=[],a=!1;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return a&&n===this&&t(o,i)||(r=e.apply(this,o),a=!0,n=this,i=o),r}}},97650:function(e,t,n){var r,o,i;o=[n(7139)],void 0===(i="function"===typeof(r=function(e){e.register("locale","bg",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0445\u0438\u043b",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0442\u0440\u043b\u043d"},ordinal:function(e){return""},currency:{symbol:"\u043b\u0432"}}),e.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u4ebf",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"K\u010d"}}),e.register("locale","da-dk",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(e){return"."},currency:{symbol:"DKK"}}),e.register("locale","de-ch",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"CHF"}}),e.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","en-au",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"\xa3"}}),e.register("locale","en-za",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"R"}}),e.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"\u20ac"}}),e.register("locale","es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$"}}),e.register("locale","et",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"$"}}),e.register("locale","fr-ch",{delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"CHF"}}),e.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"\u20ac"}}),e.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:" Ft"}}),e.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u5104",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","lv",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" t\u016bkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","nl-be",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","nl-nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","no",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"kr"}}),e.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(e){return"."},currency:{symbol:"PLN"}}),e.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milh\xf5es",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"R$"}}),e.register("locale","pt-pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20b4"}}),e.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d.",billion:"\u043c\u043b\u0440\u0434.",trillion:"\u0442\u0440\u043b\u043d."},ordinal:function(){return"."},currency:{symbol:"\u0440\u0443\u0431."}}),e.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","sl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mrd",trillion:"trilijon"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","th",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u0e1e\u0e31\u0e19",million:"\u0e25\u0e49\u0e32\u0e19",billion:"\u0e1e\u0e31\u0e19\u0e25\u0e49\u0e32\u0e19",trillion:"\u0e25\u0e49\u0e32\u0e19\u0e25\u0e49\u0e32\u0e19"},ordinal:function(e){return"."},currency:{symbol:"\u0e3f"}}),function(){var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(e){if(0===e)return"'\u0131nc\u0131";var n=e%10,r=e%100-n,o=e>=100?100:null;return t[n]||t[r]||t[o]},currency:{symbol:"\u20ba"}})}(),e.register("locale","uk-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u0438\u0441.",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0431\u043b\u043d"},ordinal:function(){return""},currency:{symbol:"\u20b4"}}),e.register("locale","vi",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:" ngh\xecn",million:" tri\u1ec7u",billion:" t\u1ef7",trillion:" ngh\xecn t\u1ef7"},ordinal:function(){return"."},currency:{symbol:"\u20ab"}})})?r.apply(t,o):r)||(e.exports=i)},7139:function(e,t,n){var r,o;r=function(){var e,t,n="2.0.6",r={},o={},i={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:i.currentLocale,zeroFormat:i.zeroFormat,nullFormat:i.nullFormat,defaultFormat:i.defaultFormat,scalePercentBy100:i.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(n){var o,i,l,c;if(e.isNumeral(n))o=n.value();else if(0===n||"undefined"===typeof n)o=0;else if(null===n||t.isNaN(n))o=null;else if("string"===typeof n)if(a.zeroFormat&&n===a.zeroFormat)o=0;else if(a.nullFormat&&n===a.nullFormat||!n.replace(/[^0-9]+/g,"").length)o=null;else{for(i in r)if((c="function"===typeof r[i].regexps.unformat?r[i].regexps.unformat():r[i].regexps.unformat)&&n.match(c)){l=r[i].unformat;break}o=(l=l||e._.stringToNumber)(n)}else o=Number(n)||null;return new s(n,o)}).version=n,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,r){var i,a,s,l,c,u,d,f=o[e.options.currentLocale],p=!1,h=!1,m=0,g="",v=1e12,y=1e9,b=1e6,w=1e3,_="",x=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(c=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(i=!!(i=n.match(/a(k|m|b|t)?/))&&i[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),a>=v&&!i||"t"===i?(g+=f.abbreviations.trillion,t/=v):a<v&&a>=y&&!i||"b"===i?(g+=f.abbreviations.billion,t/=y):a<y&&a>=b&&!i||"m"===i?(g+=f.abbreviations.million,t/=b):(a<b&&a>=w&&!i||"k"===i)&&(g+=f.abbreviations.thousand,t/=w)),e._.includes(n,"[.]")&&(h=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],l=n.split(".")[1],u=n.indexOf(","),m=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),_=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):_=e._.toFixed(t,l.length,r),s=_.split(".")[0],_=e._.includes(_,".")?f.delimiters.decimal+_.split(".")[1]:"",h&&0===Number(_.slice(1))&&(_="")):s=e._.toFixed(t,0,r),g&&!i&&Number(s)>=1e3&&g!==f.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),x=!0),s.length<m)for(var E=m-s.length;E>0;E--)s="0"+s;return u>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(s=""),d=s+_+(g||""),p?d=(p&&x?"(":"")+d+(p&&x?")":""):c>=0?d=0===c?(x?"-":"+")+d:d+(x?"-":"+"):x&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,i=o[a.currentLocale],s=e,l={thousand:3,million:6,billion:9,trillion:12};if(a.zeroFormat&&e===a.zeroFormat)n=0;else if(a.nullFormat&&e===a.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),l)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),s.match(r)){n*=Math.pow(10,l[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"===typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),o=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{for(;i<o&&!(i in r);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;i<o;i++)i in r&&(n=t(n,r[i],i,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var o,i,a,s,l=e.toString().split("."),c=t-(r||0);return o=2===l.length?Math.min(Math.max(l[1].length,c),t):c,a=Math.pow(10,o),s=(n(e+"e+"+o)/a).toFixed(o),r>t-o&&(i=new RegExp("\\.?0{1,"+(r-(t-o))+"}$"),s=s.replace(i,"")),s}},e.options=a,e.formats=r,e.locales=o,e.locale=function(e){return e&&(a.currentLocale=e.toLowerCase()),a.currentLocale},e.localeData=function(e){if(!e)return o[a.currentLocale];if(e=e.toLowerCase(),!o[e])throw new Error("Unknown locale : "+e);return o[e]},e.reset=function(){for(var e in i)a[e]=i[e]},e.zeroFormat=function(e){a.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){a.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){a.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,o,i,a,s,l,c,u;if("string"!==typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(d){c=e.localeData(e.locale())}return i=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,o="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(u=t.match(/^[^\d]+/))||(t=t.substr(1),u[0]===i))&&(null===(u=t.match(/[^\d]+$/))||(t=t.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(l=new RegExp(o+"{2}"),!t.match(/[^\d.,]/g)&&!((a=t.split(r)).length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/)))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,n){var o,i,s,l=this._value,c=t||a.defaultFormat;if(n=n||Math.round,0===l&&null!==a.zeroFormat)i=a.zeroFormat;else if(null===l&&null!==a.nullFormat)i=a.nullFormat;else{for(o in r)if(c.match(r[o].regexps.format)){s=r[o].format;break}i=(s=s||e._.numberToFormat)(l,c,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,o){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,o){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)*Math.round(n*i)/Math.round(i*i)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)/Math.round(n*i)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var o,i=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,o,i){var a,s,l,c=e._.includes(o,"ib")?n:t,u=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),a=0;a<=c.suffixes.length;a++)if(s=Math.pow(c.base,a),l=Math.pow(c.base,a+1),null===r||0===r||r>=s&&r<l){u+=c.suffixes[a],s>0&&(r/=s);break}return e._.numberToFormat(r,o,i)+u},unformat:function(r){var o,i,a=e._.stringToNumber(r);if(a){for(o=t.suffixes.length-1;o>=0;o--){if(e._.includes(r,t.suffixes[o])){i=Math.pow(t.base,o);break}if(e._.includes(r,n.suffixes[o])){i=Math.pow(n.base,o);break}}a*=i||1}return a}})}(),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var o,i,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),i=0;i<s.before.length;i++)switch(s.before[i]){case"$":o=e._.insert(o,a.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+a.currency.symbol.length-1)}for(i=s.after.length-1;i>=0;i--)switch(s.after[i]){case"$":o=i===s.after.length-1?o+a.currency.symbol:e._.insert(o,a.currency.symbol,-(s.after.length-(1+i)));break;case" ":o=i===s.after.length-1?o+" ":e._.insert(o," ",-(s.after.length-(1+i)+a.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var o=("number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),n,r)+"e"+o[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),o=Number(n[1]);function i(t,n,r,o){var i=e._.correctionFactor(t,n);return t*i*(n*i)/(i*i)}return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([r,Math.pow(10,o)],i,1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var o=e.locales[e.options.currentLocale],i=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,n,r)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var o,i=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),o=Math.floor((e-60*r*60)/60),i=Math.round(e-60*r*60-60*o);return r+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},void 0===(o="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=o)},67796:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},69123:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"===typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,_=String.prototype.toLowerCase,x=RegExp.prototype.test,E=Array.prototype.concat,S=Array.prototype.join,k=Array.prototype.slice,C=Math.floor,O="function"===typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"===typeof Symbol&&"object"===typeof Symbol.iterator,A="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,D=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-C(-e):C(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var j=n(42634),M=j.custom,L=q(M)?M:null;function z(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function F(e){return b.call(String(e),/"/g,""")}function B(e){return"[object Array]"===W(e)&&(!A||!("object"===typeof e&&A in e))}function U(e){return"[object RegExp]"===W(e)&&(!A||!("object"===typeof e&&A in e))}function q(e){if(I)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,o,s){var l=r||{};if(H(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!H(l,"customInspect")||l.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return G(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?R(t,x):x}if("bigint"===typeof t){var C=String(t)+"n";return w?R(t,C):C}var N="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof o&&(o=0),o>=N&&N>0&&"object"===typeof t)return B(t)?"[Array]":"[Object]";var M=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(l,o);if("undefined"===typeof s)s=[];else if(V(s,t)>=0)return"[Circular]";function $(t,n,r){if(n&&(s=k.call(s)).push(n),r){var i={depth:l.depth};return H(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,s)}return e(t,l,o+1,s)}if("function"===typeof t&&!U(t)){var Z=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=X(t,$);return"[Function"+(Z?": "+Z:" (anonymous)")+"]"+(ee.length>0?" { "+S.call(ee,", ")+" }":"")}if(q(t)){var te=I?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!==typeof t||I?te:K(te)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var ne="<"+_.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe<re.length;oe++)ne+=" "+re[oe].name+"="+z(F(re[oe].value),"double",l);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+="</"+_.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ie=X(t,$);return M&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(ie)?"["+J(ie,M)+"]":"[ "+S.call(ie,", ")+" ]"}if(function(e){return"[object Error]"===W(e)&&(!A||!("object"===typeof e&&A in e))}(t)){var ae=X(t,$);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ae,", ")+" }":"{ ["+String(t)+"] "+S.call(E.call("[cause]: "+$(t.cause),ae),", ")+" }"}if("object"===typeof t&&m){if(L&&"function"===typeof t[L]&&j)return j(t,{depth:N-o});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{c.call(e)}catch(ne){return!0}return e instanceof Map}catch(t){}return!1}(t)){var se=[];return a&&a.call(t,(function(e,n){se.push($(n,t,!0)+" => "+$(e,t))})),Q("Map",i.call(t),se,M)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var le=[];return u&&u.call(t,(function(e){le.push($(e,t))})),Q("Set",c.call(t),le,M)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(ne){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return Y("WeakMap");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(ne){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return Y("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return Y("WeakRef");if(function(e){return"[object Number]"===W(e)&&(!A||!("object"===typeof e&&A in e))}(t))return K($(Number(t)));if(function(e){if(!e||"object"!==typeof e||!O)return!1;try{return O.call(e),!0}catch(t){}return!1}(t))return K($(O.call(t)));if(function(e){return"[object Boolean]"===W(e)&&(!A||!("object"===typeof e&&A in e))}(t))return K(h.call(t));if(function(e){return"[object String]"===W(e)&&(!A||!("object"===typeof e&&A in e))}(t))return K($(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===W(e)&&(!A||!("object"===typeof e&&A in e))}(t)&&!U(t)){var ce=X(t,$),ue=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",fe=!ue&&A&&Object(t)===t&&A in t?y.call(W(t),8,-1):de?"Object":"",pe=(ue||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||de?"["+S.call(E.call([],fe||[],de||[]),": ")+"] ":"");return 0===ce.length?pe+"{}":M?pe+"{"+J(ce,M)+"}":pe+"{ "+S.call(ce,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return $.call(e,t)}function W(e){return m.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function G(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return G(y.call(e,0,t.maxStringLength),t)+r}return z(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Z),"single",t)}function Z(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function K(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function Q(e,t,n,r){return e+" ("+t+") {"+(r?J(n,r):S.call(n,", "))+"}"}function J(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function X(e,t){var n=B(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=H(e,o)?t(e[o],e):""}var i,a="function"===typeof N?N(e):[];if(I){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)H(e,l)&&(n&&String(Number(l))===l&&l<e.length||I&&i["$"+l]instanceof Symbol||(x.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof N)for(var c=0;c<a.length;c++)P.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},95166:e=>{e.exports=d,e.exports.match=function(e,t){var n=[];return i(d(e,n,t),n)},e.exports.regexpToFunction=i,e.exports.parse=r,e.exports.compile=function(e,t){return a(r(e,t),t)},e.exports.tokensToFunction=a,e.exports.tokensToRegExp=u;var t="/",n=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function r(e,r){for(var i,a=[],s=0,c=0,u="",d=r&&r.delimiter||t,f=r&&r.whitelist||void 0,p=!1;null!==(i=n.exec(e));){var h=i[0],m=i[1],g=i.index;if(u+=e.slice(c,g),c=g+h.length,m)u+=m[1],p=!0;else{var v="",y=i[2],b=i[3],w=i[4],_=i[5];if(!p&&u.length){var x=u.length-1,E=u[x];(!f||f.indexOf(E)>-1)&&(v=E,u=u.slice(0,x))}u&&(a.push(u),u="",p=!1);var S="+"===_||"*"===_,k="?"===_||"*"===_,C=b||w,O=v||d,N=v||("string"===typeof a[a.length-1]?a[a.length-1]:"");a.push({name:y||s++,prefix:v,delimiter:O,optional:k,repeat:S,pattern:C?l(C):o(O,d,N)})}}return(u||c<e.length)&&a.push(u+e.substr(c)),a}function o(e,t,n){var r="[^"+s(e===t?e:e+t)+"]";return!n||n.indexOf(e)>-1||n.indexOf(t)>-1?r+"+?":s(n)+"|(?:(?!"+s(n)+")"+r+")+?"}function i(e,t){return function(n,r){var o=e.exec(n);if(!o)return!1;for(var i=o[0],a=o.index,s={},l=r&&r.decode||decodeURIComponent,c=1;c<o.length;c++)if(void 0!==o[c]){var u=t[c-1];u.repeat?s[u.name]=o[c].split(u.delimiter).map((function(e){return l(e,u)})):s[u.name]=l(o[c],u)}return{path:i,index:a,params:s}}}function a(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",c(t)));return function(t,r){for(var o="",i=r&&r.encode||encodeURIComponent,a=!r||!1!==r.validate,s=0;s<e.length;s++){var l=e[s];if("string"!==typeof l){var c,u=t?t[l.name]:void 0;if(Array.isArray(u)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but got array');if(0===u.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(c=i(u[d],l),a&&!n[s].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'"');o+=(0===d?l.prefix:l.delimiter)+c}}else if("string"!==typeof u&&"number"!==typeof u&&"boolean"!==typeof u){if(!l.optional)throw new TypeError('Expected "'+l.name+'" to be '+(l.repeat?"an array":"a string"))}else{if(c=i(String(u),l),a&&!n[s].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but got "'+c+'"');o+=l.prefix+c}}else o+=l}return o}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$/()])/g,"\\$1")}function c(e){return e&&e.sensitive?"":"i"}function u(e,n,r){for(var o=(r=r||{}).strict,i=!1!==r.start,a=!1!==r.end,l=r.delimiter||t,u=[].concat(r.endsWith||[]).map(s).concat("$").join("|"),d=i?"^":"",f=0;f<e.length;f++){var p=e[f];if("string"===typeof p)d+=s(p);else{var h=p.repeat?"(?:"+p.pattern+")(?:"+s(p.delimiter)+"(?:"+p.pattern+"))*":p.pattern;n&&n.push(p),p.optional?p.prefix?d+="(?:"+s(p.prefix)+"("+h+"))?":d+="("+h+")?":d+=s(p.prefix)+"("+h+")"}}if(a)o||(d+="(?:"+s(l)+")?"),d+="$"===u?"$":"(?="+u+")";else{var m=e[e.length-1],g="string"===typeof m?m[m.length-1]===l:void 0===m;o||(d+="(?:"+s(l)+"(?="+u+"))?"),g||(d+="(?="+s(l)+"|"+u+")")}return new RegExp(d,c(r))}function d(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return e}(e,t):Array.isArray(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(d(e[o],t,n).source);return new RegExp("(?:"+r.join("|")+")",c(n))}(e,t,n):function(e,t,n){return u(r(e,n),t,n)}(e,t,n)}},77390:(e,t,n)=>{"use strict";var r=n(31445);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},13260:(e,t,n)=>{e.exports=n(77390)()},31445:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7445:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:o}},74309:(e,t,n)=>{"use strict";var r=n(93780),o=n(77146),i=n(7445);e.exports={formats:i,parse:o,stringify:r}},77146:(e,t,n)=>{"use strict";var r=n(73888),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(i))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}if(s){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+i.slice(s.index)+"]")}return function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(u,10);n.parseArrays||""!==u?!isNaN(d)&&s!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(a=[])[d]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset,n="undefined"===typeof e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:"undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"===typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var u="string"===typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<f.length;++u)0===f[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[u]?h="utf-8":"utf8=%26%2310003%3B"===f[u]&&(h="iso-8859-1"),p=u,u=f.length);for(u=0;u<f.length;++u)if(u!==p){var m,g,v=f[u],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,b),a.decoder,h,"key"),g=r.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(g)),v.indexOf("[]=")>-1&&(g=i(g)?[g]:g);var w=o.call(n,m);w&&"combine"===t.duplicates?n[m]=r.combine(n[m],g):w&&"last"!==t.duplicates||(n[m]=g)}return n}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var h=f[p],m=c(h,u[h],n,"string"===typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},93780:(e,t,n)=>{"use strict";var r=n(3584),o=n(73888),i=n(7445),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,i,a,s,c,d,f,m,g,v,y,b,w,_,x,E,S){for(var k,C=t,O=S,N=0,T=!1;void 0!==(O=O.get(h))&&!T;){var I=O.get(t);if(N+=1,"undefined"!==typeof I){if(I===N)throw new RangeError("Cyclic object value");T=!0}"undefined"===typeof O.get(h)&&(N=0)}if("function"===typeof g?C=g(n,C):C instanceof Date?C=b(C):"comma"===i&&l(C)&&(C=o.maybeMap(C,(function(e){return e instanceof Date?b(e):e}))),null===C){if(c)return m&&!x?m(n,p.encoder,E,"key",w):n;C=""}if("string"===typeof(k=C)||"number"===typeof k||"boolean"===typeof k||"symbol"===typeof k||"bigint"===typeof k||o.isBuffer(C))return m?[_(x?n:m(n,p.encoder,E,"key",w))+"="+_(m(C,p.encoder,E,"value",w))]:[_(n)+"="+_(String(C))];var A,P=[];if("undefined"===typeof C)return P;if("comma"===i&&l(C))x&&m&&(C=o.maybeMap(C,m)),A=[{value:C.length>0?C.join(",")||null:void 0}];else if(l(g))A=g;else{var D=Object.keys(C);A=v?D.sort(v):D}var R=f?n.replace(/\./g,"%2E"):n,j=a&&l(C)&&1===C.length?R+"[]":R;if(s&&l(C)&&0===C.length)return j+"[]";for(var M=0;M<A.length;++M){var L=A[M],z="object"===typeof L&&"undefined"!==typeof L.value?L.value:C[L];if(!d||null!==z){var F=y&&f?L.replace(/\./g,"%2E"):L,B=l(C)?"function"===typeof i?i(j,F):j:j+(y?"."+F:"["+F+"]");S.set(t,N);var U=r();U.set(h,S),u(P,e(z,B,i,a,s,c,d,f,"comma"===i&&x&&l(C)?null:m,g,v,y,b,w,_,x,E,U))}}return P};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return p;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if("undefined"!==typeof e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=i.formatters[n],c=p.filter;if(("function"===typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:c,format:n,formatter:o,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"===typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var d=[];if("object"!==typeof o||null===o)return"";var f=s[c.arrayFormat],h="comma"===f&&c.commaRoundTrip;n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var g=r(),v=0;v<n.length;++v){var y=n[v];c.skipNulls&&null===o[y]||u(d,m(o[y],y,f,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var b=d.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},73888:(e,t,n)=>{"use strict";var r=n(7445),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},l=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)"undefined"!==typeof n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;u+=l){for(var d=s.length>=l?s.slice(u,u+l):s,f=[],p=0;p<d.length;++p){var h=d.charCodeAt(p);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===r.RFC1738&&(40===h||41===h)?f[f.length]=d.charAt(p):h<128?f[f.length]=a[h]:h<2048?f[f.length]=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?f[f.length]=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(p+=1,h=65536+((1023&h)<<10|1023&d.charCodeAt(p)),f[f.length]=a[240|h>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}c+=f.join("")}return c},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(i(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"===typeof a&&n&&"object"===typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},53202:(e,t,n)=>{"use strict";n.d(t,{JY:()=>bo,sx:()=>ti,gL:()=>ii});var r=n(59284),o=n(25540),i=n(58168),a=n(96906),s=r.createContext(null);var l=function(e){e()},c=function(){return l};var u={notify:function(){},get:function(){return[]}};function d(e,t){var n,r=u;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=c(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=u)},getListeners:function(){return r}};return a}var f="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;const p=function(e){var t=e.store,n=e.context,o=e.children,i=(0,r.useMemo)((function(){var e=d(t);return{store:t,subscription:e}}),[t]),a=(0,r.useMemo)((function(){return t.getState()}),[t]);f((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var l=n||s;return r.createElement(l.Provider,{value:i},o)};var h=n(98587),m=n(5290),g=n.n(m),v=n(94771),y=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],b=["reactReduxForwardedRef"],w=[],_=[null,null];function x(e,t){var n=e[1];return[t.payload,n+1]}function E(e,t,n){f((function(){return e.apply(void 0,t)}),n)}function S(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function k(e,t,n,r,o,i,a,s,l,c){if(e){var u=!1,d=null,f=function(){if(!u){var e,n,f=t.getState();try{e=r(f,o.current)}catch(p){n=p,d=p}n||(d=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var C=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,l=n.methodName,c=void 0===l?"connectAdvanced":l,u=n.renderCountProp,f=void 0===u?void 0:u,p=n.shouldHandleStateChanges,m=void 0===p||p,O=n.storeKey,N=void 0===O?"store":O,T=(n.withRef,n.forwardRef),I=void 0!==T&&T,A=n.context,P=void 0===A?s:A,D=(0,h.A)(n,y),R=P;return function(t){var n=t.displayName||t.name||"Component",o=a(n),s=(0,i.A)({},D,{getDisplayName:a,methodName:c,renderCountProp:f,shouldHandleStateChanges:m,storeKey:N,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=D.pure;var u=l?r.useMemo:function(e){return e()};function p(n){var o=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,h.A)(n,b);return[n.context,e,t]}),[n]),a=o[0],l=o[1],c=o[2],f=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,v.isContextConsumer)(r.createElement(a.Consumer,null))?a:R}),[a,R]),p=(0,r.useContext)(f),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var y=g?n.store:p.store,O=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,s)}(y)}),[y]),N=(0,r.useMemo)((function(){if(!m)return _;var e=d(y,g?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[y,g,p]),T=N[0],I=N[1],A=(0,r.useMemo)((function(){return g?p:(0,i.A)({},p,{subscription:T})}),[g,p,T]),P=(0,r.useReducer)(x,w,C),D=P[0][0],j=P[1];if(D&&D.error)throw D.error;var M=(0,r.useRef)(),L=(0,r.useRef)(c),z=(0,r.useRef)(),F=(0,r.useRef)(!1),B=u((function(){return z.current&&c===L.current?z.current:O(y.getState(),c)}),[y,D,c]);E(S,[L,M,F,c,B,z,I]),E(k,[m,y,T,O,L,M,F,z,I,j],[y,T,O]);var U=(0,r.useMemo)((function(){return r.createElement(t,(0,i.A)({},B,{ref:l}))}),[l,t,B]);return(0,r.useMemo)((function(){return m?r.createElement(f.Provider,{value:A},U):U}),[f,U,A])}var y=l?r.memo(p):p;if(y.WrappedComponent=t,y.displayName=p.displayName=o,I){var O=r.forwardRef((function(e,t){return r.createElement(y,(0,i.A)({},e,{reactReduxForwardedRef:t}))}));return O.displayName=o,O.WrappedComponent=t,g()(O,t)}return g()(y,t)}}function N(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function T(e,t){if(N(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!N(e[n[o]],t[n[o]]))return!1;return!0}function I(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function A(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function P(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=A(e);var o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=A(o),o=r(t,n)),o},r}}const D=[function(e){return"function"===typeof e?P(e):void 0},function(e){return e?void 0:I((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?I((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"===typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}];const R=[function(e){return"function"===typeof e?P(e):void 0},function(e){return e?void 0:I((function(){return{}}))}];function j(e,t,n){return(0,i.A)({},n,e,t)}const M=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return j}}];var L=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function z(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function F(e,t,n,r,o){var i,a,s,l,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,p=!1;function h(o,p){var h=!d(p,a),m=!u(o,i,p,a);return i=o,a=p,h&&m?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):h?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?function(){var t=e(i,a),r=!f(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(o,u){return p?h(o,u):(s=e(i=o,a=u),l=t(r,a),c=n(s,l,a),p=!0,c)}}function B(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,h.A)(t,L),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?F:z)(a,s,l,e,i)}var U=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function q(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function $(e,t){return e===t}function H(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,o=t.mapStateToPropsFactories,a=void 0===o?R:o,s=t.mapDispatchToPropsFactories,l=void 0===s?D:s,c=t.mergePropsFactories,u=void 0===c?M:c,d=t.selectorFactory,f=void 0===d?B:d;return function(e,t,n,o){void 0===o&&(o={});var s=o,c=s.pure,d=void 0===c||c,p=s.areStatesEqual,m=void 0===p?$:p,g=s.areOwnPropsEqual,v=void 0===g?T:g,y=s.areStatePropsEqual,b=void 0===y?T:y,w=s.areMergedPropsEqual,_=void 0===w?T:w,x=(0,h.A)(s,U),E=q(e,a,"mapStateToProps"),S=q(t,l,"mapDispatchToProps"),k=q(n,u,"mergeProps");return r(f,(0,i.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:S,initMergeProps:k,pure:d,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:_},x))}}const W=H();var V,G=n(48681);function Z(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],o=(0,r.useRef)(!0),i=(0,r.useRef)(n),a=o.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,r.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}V=G.unstable_batchedUpdates,l=V;var K=Z,Y=function(e,t){return Z((function(){return e}),t)},Q=n(69933),J=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},X=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ee=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},te={top:0,right:0,bottom:0,left:0},ne=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?te:n,o=e.border,i=void 0===o?te:o,a=e.padding,s=void 0===a?te:a,l=J(X(t,r)),c=J(ee(t,i)),u=J(ee(c,s));return{marginBox:l,borderBox:J(t),paddingBox:c,contentBox:u,margin:r,border:i,padding:s}},re=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&(0,Q.A)(!1),n},oe=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return ne({borderBox:l,border:i,margin:a,padding:s})},ie=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),oe(e,t)},ae=function(e,t){var n={top:re(t.marginTop),right:re(t.marginRight),bottom:re(t.marginBottom),left:re(t.marginLeft)},r={top:re(t.paddingTop),right:re(t.paddingRight),bottom:re(t.paddingBottom),left:re(t.paddingLeft)},o={top:re(t.borderTopWidth),right:re(t.borderRightWidth),bottom:re(t.borderBottomWidth),left:re(t.borderLeftWidth)};return ne({borderBox:e,margin:n,padding:r,border:o})},se=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ae(t,n)},le=n(77995);const ce=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function ue(e,t){}ue.bind(null,"warn"),ue.bind(null,"error");function de(){}function fe(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,i.A)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var pe=!0,he="Invariant failed";function me(e){this.message=e}function ge(e,t){if(!e)throw new me(pe?he:he+": "+(t||""))}me.prototype.toString=function(){return this.message};var ve=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=de,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof me&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,o.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=fe(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof me))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),ye=function(e){return e+1},be=function(e,t){var n=e.droppableId===t.droppableId,r=ye(e.index),o=ye(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},we=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},_e=function(e){return"\n The item has returned to its starting position\n of "+ye(e.index)+"\n"},xe={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position "+ye(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return be(e.source,t);var n=e.combine;return n?we(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+_e(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+be(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+we(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+_e(e.source)+"\n "}},Ee={x:0,y:0},Se=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},ke=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Ce=function(e,t){return e.x===t.x&&e.y===t.y},Oe=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ne=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Te=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Ie=function(e,t){return Math.min.apply(Math,t.map((function(t){return Te(e,t)})))},Ae=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Pe=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},De=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Re=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=J({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):J(e)},je=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,a=function(e,t){return t?Pe(e,t.scroll.diff.displacement):e}(t.marginBox,o),s=function(e,t,n){var r;return n&&n.increasedBy?(0,i.A)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:Re(s,o)}},Me=function(e,t){e.frame||ge(!1);var n=e.frame,r=ke(t,n.scroll.initial),o=Oe(r),a=(0,i.A)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),s=je({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,i.A)({},e,{frame:a,subject:s})};function Le(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function ze(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Fe(e,t){if(e.find)return e.find(t);var n=ze(e,t);return-1!==n?e[n]:void 0}function Be(e){return Array.prototype.slice.call(e)}var Ue=(0,le.A)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),qe=(0,le.A)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),$e=(0,le.A)((function(e){return Le(e)})),He=(0,le.A)((function(e){return Le(e)})),We=(0,le.A)((function(e,t){var n=He(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function Ve(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Ge(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ze=(0,le.A)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Ke=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Ye={point:Ee,value:0},Qe={invisible:{},visible:{},all:[]},Je={displaced:Qe,displacedBy:Ye,at:null},Xe=function(e,t){return function(n){return e<=n&&n<=t}},et=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||(a&&i||s&&o)}},tt=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},nt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},rt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ot=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Ee;return Pe(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},it=function(e){return ot((0,i.A)({},e,{isVisibleThroughFrameFn:et}))},at=function(e){return ot((0,i.A)({},e,{isVisibleThroughFrameFn:tt}))};function st(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return J(X(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!it({target:s,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate}(l,a,i),u={draggableId:l,shouldAnimate:c};return e.visible[l]=u,e}),{all:[],visible:{},invisible:{}})}function lt(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Qe,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function ct(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=Ke(t,r);if(null==s)return lt({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var u=Fe(n,(function(e){return e.descriptor.index===s}));if(!u)return lt({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var d=Ze(t,n),f=n.indexOf(u);return{displaced:st({afterDragging:d.slice(f),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:l}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function ut(e,t){return Boolean(t.effected[e])}var dt=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||ge(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:ct({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,s=r[a].descriptor.index;return ut(a,i)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==f?null:ct({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})},ft=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Ge(n);o||ge(!1);var i=o.draggableId,a=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return ut(r,n)?i?Ee:Oe(o.point):i?o.point:Ee}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Se(a,s)},pt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},ht=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},mt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ne(t.line,n.marginBox[t.end]+pt(t,r),ht(t,n.marginBox,r))},gt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ne(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),ht(t,n.marginBox,r))},vt=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=We(o.descriptor.id,r),s=n.page,l=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Ne(t.line,n.contentBox[t.start]+pt(t,r),ht(t,n.contentBox,r))}({axis:l,moveInto:o.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=r[d];if(ut(d,i))return gt({axis:l,moveRelativeTo:f.page,isMoving:s});var p=oe(f.page,u.point);return gt({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(ut(h.descriptor.id,i)){var m=oe(h.page,Oe(i.displacedBy.point));return mt({axis:l,moveRelativeTo:m,isMoving:s})}return mt({axis:l,moveRelativeTo:h.page,isMoving:s})},yt=function(e,t){var n=e.frame;return n?Se(t,n.scroll.diff.displacement):t},bt=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?vt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):ft({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?yt(n,t):t},wt=function(e,t){var n=ke(t,e.scroll.initial),r=Oe(n);return{frame:J({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function _t(e,t){return e.map((function(e){return t[e]}))}var xt=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Se(e.scroll.diff.displacement,t)}(e.viewport,t),o=ke(r,n.page.borderBox.center);return Se(n.client.borderBox.center,o)},Et=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,a=e.withDroppableDisplacement,s=e.onlyOnMainAxis,l=void 0!==s&&s,c=ke(r,t.page.borderBox.center),u={target:Pe(t.page.borderBox,c),destination:n,withDroppableDisplacement:a,viewport:o};return l?function(e){return ot((0,i.A)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Xe(e.top,e.bottom),r=Xe(e.left,e.right);return function(e){return t===nt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):at(u)},St=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,a=e.previousImpact,s=e.viewport,l=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var d=We(r.descriptor.id,o),f=Ke(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Ve(a))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,i.A)({},a,{at:t})}var l=a.displaced.all,c=l.length?l[0]:null;if(t)return c?s(c):null;var u=Ze(n,o);if(!c)return u.length?s(u[u.length-1].descriptor.id):null;var d=ze(u,(function(e){return e.descriptor.id===c}));-1===d&&ge(!1);var f=d-1;return f<0?null:s(u[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:d,previousImpact:a})||dt({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:d,previousImpact:a,viewport:s,afterCritical:u});if(!p)return null;var h=bt({impact:p,draggable:n,droppable:r,draggables:o,afterCritical:u});if(Et({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:xt({pageBorderBoxCenter:h,draggable:n,viewport:s}),impact:p,scrollJumpRequest:null};var m=ke(h,l),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,s=wt(n,Se(n.scroll.current,a)),l=r.frame?Me(r,Se(r.frame.scroll.current,a)):r,c=t.displaced,u=st({afterDragging:_t(c.all,o),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:c,forceShouldAnimate:!1}),d=st({afterDragging:_t(c.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:c,forceShouldAnimate:!1}),f={},p={},h=[c,u,d];return c.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,h);t?p[e]=t:f[e]=!0})),(0,i.A)({},t,{displaced:{all:c.all,invisible:f,visible:p}})}({impact:p,viewport:s,destination:r,draggables:o,maxScrollChange:m});return{clientSelection:c,impact:g,scrollJumpRequest:m}},kt=function(e){var t=e.subject.active;return t||ge(!1),t},Ct=function(e,t){var n=e.page.borderBox.center;return ut(e.descriptor.id,t)?ke(n,t.displacedBy.point):n},Ot=function(e,t){var n=e.page.borderBox;return ut(e.descriptor.id,t)?Pe(n,Oe(t.displacedBy.point)):n},Nt=(0,le.A)((function(e,t){var n=t[e.line];return{value:n,point:Ne(e.line,n)}})),Tt=function(e,t){return(0,i.A)({},e,{scroll:(0,i.A)({},e.scroll,{max:t})})},It=function(e,t,n){var r=e.frame;Ke(t,e)&&ge(!1),e.subject.withPlaceholder&&ge(!1);var o=Nt(e.axis,t.displaceBy).point,a=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return Ne(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=We(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:Ne(r.line,i)}(e,o,n),s={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var l=je({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:e.frame});return(0,i.A)({},e,{subject:l})}var c=a?Se(r.scroll.max,a):r.scroll.max,u=Tt(r,c),d=je({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:u});return(0,i.A)({},e,{subject:d,frame:u})},At=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=Xe(a[s.start],a[s.end]),c=$e(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return et(i.frame)(kt(e))})).filter((function(e){var n=kt(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=kt(e),n=Xe(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=kt(e)[s.crossAxisStart],o=kt(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return kt(e)[s.crossAxisStart]===kt(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return Xe(kt(e)[s.start],kt(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return kt(e)[s.start]-kt(t)[s.start]}))[0]:c.sort((function(e,t){var r=Ie(n,De(kt(e))),o=Ie(n,De(kt(t)));return r!==o?r-o:kt(e)[s.start]-kt(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:s});if(!c)return null;var u=We(c.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical,a=o.filter((function(e){return at({target:Ot(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Te(t,yt(r,Ct(e,i))),a=Te(t,yt(r,Ct(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:Qe,displacedBy:Ye,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=bt({impact:c,draggable:o,droppable:a,draggables:i,afterCritical:l}),d=Ke(o,a)?a:It(a,o,i);return Et({draggable:o,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var f=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),p=function(){var e=n.descriptor.index;return n.descriptor.id===o.descriptor.id||f?e:e+1}(),h=Nt(a.axis,o.displaceBy);return ct({draggable:o,insideDestination:r,destination:a,viewport:s,displacedBy:h,last:Qe,index:p})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!f)return null;var p=bt({impact:f,draggable:r,droppable:c,draggables:i,afterCritical:l});return{clientSelection:xt({pageBorderBoxCenter:p,draggable:r,viewport:s}),impact:f,scrollJumpRequest:null}},Pt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Dt=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Pt(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!o)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,h=f.droppables;return l?St({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):At({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function Rt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function jt(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Mt(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=$e(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(jt(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],l=t[i.crossAxisEnd],c=Xe(o[i.crossAxisStart],o[i.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=Ne(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Te(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var Lt=function(e,t){return J(Pe(e,t))};function zt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Ft=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,l=Lt(n.page.borderBox,t),c=Mt({pageBorderBox:l,draggable:n,droppables:o});if(!c)return Je;var u=o[c],d=We(u.descriptor.id,r),f=function(e,t){var n=e.frame;return n?Lt(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=Nt(o.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],f=Fe(Ze(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,i=ut(t,a),l=zt({displaced:r.displaced,id:t});return i?l?d>n[s.start]+o&&d<n[s.end]-o:u>n[s.start]-c+o&&u<n[s.end]-c-o:l?d>n[s.start]+c+o&&d<n[s.end]+c-o:u>n[s.start]+o&&u<n[s.end]-o}));return f?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,c=Nt(r.axis,n.displaceBy),u=c.value,d=t[l.start],f=t[l.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Fe(Ze(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=ut(t,s),o=zt({displaced:i,id:t});return r?o?f<=n:d<n-u:o?f<=n+u:d<n})),inHomeList:Ke(n,r)});return ct({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:c,index:p})}({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:u,insideDestination:d,last:i.displaced,viewport:a,afterCritical:s})},Bt=function(e,t){var n;return(0,i.A)({},e,((n={})[t.descriptor.id]=t,n))},Ut=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Pt(t),a=Pt(n);if(!o)return r;if(o===a)return r;var s=r[o];if(!s.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||ge(!1);var n=e.frame;if(!n){var r=je({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,i.A)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||ge(!1);var a=Tt(n,o),s=je({page:e.subject.page,axis:e.axis,frame:a,withPlaceholder:null});return(0,i.A)({},e,{subject:s,frame:a})}(s);return Bt(r,l)},qt=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,a=e.impact,s=e.scrollJumpRequest,l=o||t.viewport,c=r||t.dimensions,u=n||t.current.client.selection,d=ke(u,t.initial.client.selection),f={offset:d,selection:u,borderBoxCenter:Se(t.initial.client.borderBoxCenter,d)},p={selection:Se(f.selection,l.scroll.current),borderBoxCenter:Se(f.borderBoxCenter,l.scroll.current),offset:Se(f.offset,l.scroll.diff.value)},h={client:f,page:p};if("COLLECTING"===t.phase)return(0,i.A)({phase:"COLLECTING"},t,{dimensions:c,viewport:l,current:h});var m=c.draggables[t.critical.draggable.id],g=a||Ft({pageOffset:p.offset,draggable:m,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=Ut({previousImpact:o,impact:i,droppables:r}),s=Pt(i);if(!s)return a;var l=r[s];if(Ke(t,l))return a;if(l.subject.withPlaceholder)return a;var c=It(l,t,n);return Bt(a,c)}({draggable:m,impact:g,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables});return(0,i.A)({},t,{current:h,dimensions:{draggables:c.draggables,droppables:v},impact:g,viewport:l,scrollJumpRequest:s||null,forceShouldAnimate:!s&&null})};var $t=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,a=e.forceShouldAnimate,s=t.displaced,l=function(e,t){return e.map((function(e){return t[e]}))}(s.all,r),c=st({afterDragging:l,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:s});return(0,i.A)({},t,{displaced:c})},Ht=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=bt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return xt({pageBorderBoxCenter:s,draggable:n,viewport:i})},Wt=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&ge(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=Pt(o);u||ge(!1);var d=l[u],f=$t({impact:o,viewport:i,destination:d,draggables:s}),p=Ht({impact:f,draggable:c,droppable:d,draggables:s,viewport:i,afterCritical:t.afterCritical});return qt({impact:f,clientSelection:p,state:t,dimensions:a,viewport:i})},Vt=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=Nt(n.axis,t.displaceBy),a=We(n.descriptor.id,r),s=a.indexOf(t);-1===s&&ge(!1);var l,c=a.slice(s+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:u};return{impact:{displaced:st({afterDragging:c,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},Gt=function(e){0},Zt=function(e){0},Kt=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||ge(!1),t}(n[t]),s=a.scroll.diff.value,l=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=oe(t.client,n),a=ie(o,r);return(0,i.A)({},t,{placeholder:(0,i.A)({},t.placeholder,{client:o}),client:o,page:a})}({draggable:e,offset:Se(o,s),initialWindowScroll:r.scroll.initial});return l}))},Yt=function(e){return"SNAP"===e.movementMode},Qt=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Bt(e.droppables,t)}}(e.dimensions,t);return!Yt(e)||n?qt({state:e,dimensions:r}):Wt({state:e,dimensions:r})};function Jt(e){return e.isDragging&&"SNAP"===e.movementMode?(0,i.A)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Xt={phase:"IDLE",completed:null,shouldFlush:!1},en=function(e,t){if(void 0===e&&(e=Xt),"FLUSH"===t.type)return(0,i.A)({},Xt,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ge(!1);var n=t.payload,r=n.critical,o=n.clientSelection,a=n.viewport,s=n.dimensions,l=n.movementMode,c=s.draggables[r.draggable.id],u=s.droppables[r.droppable.id],d={selection:o,borderBoxCenter:c.client.borderBox.center,offset:Ee},f={client:d,page:{selection:Se(d.selection,a.scroll.initial),borderBoxCenter:Se(d.selection,a.scroll.initial),offset:Se(d.selection,a.scroll.diff.value)}},p=$e(s.droppables).every((function(e){return!e.isFixedOnPage})),h=Vt({draggable:c,home:u,draggables:s.draggables,viewport:a}),m=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:s,initial:f,current:f,isWindowScrollAllowed:p,impact:m,afterCritical:h.afterCritical,onLiftImpact:m,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ge(!1),(0,i.A)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ge(!1),function(e){var t=e.state,n=e.published;Gt();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Me(n,e.scroll)})),o=(0,i.A)({},t.dimensions.droppables,{},Ue(r)),a=qe(Kt({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),s=(0,i.A)({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete s[e]}));var l={droppables:o,draggables:s},c=Pt(t.impact),u=c?l.droppables[c]:null,d=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],p=Vt({draggable:d,home:f,draggables:s,viewport:t.viewport}),h=p.impact,m=p.afterCritical,g=u&&u.isCombineEnabled?t.impact:h,v=Ft({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:g,viewport:t.viewport,afterCritical:m});Zt();var y=(0,i.A)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:h,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?y:(0,i.A)({phase:"DROP_PENDING"},y,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Rt(e)||ge(!1);var g=t.payload.client;return Ce(g,e.current.client.selection)?e:qt({state:e,clientSelection:g,impact:Yt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Jt(e);if("COLLECTING"===e.phase)return Jt(e);Rt(e)||ge(!1);var v=t.payload,y=v.id,b=v.newScroll,w=e.dimensions.droppables[y];if(!w)return e;var _=Me(w,b);return Qt(e,_,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Rt(e)||ge(!1);var x=t.payload,E=x.id,S=x.isEnabled,k=e.dimensions.droppables[E];k||ge(!1),k.isEnabled===S&&ge(!1);var C=(0,i.A)({},k,{isEnabled:S});return Qt(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Rt(e)||ge(!1);var O=t.payload,N=O.id,T=O.isCombineEnabled,I=e.dimensions.droppables[N];I||ge(!1),I.isCombineEnabled===T&&ge(!1);var A=(0,i.A)({},I,{isCombineEnabled:T});return Qt(e,A,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Rt(e)||ge(!1),e.isWindowScrollAllowed||ge(!1);var P=t.payload.newScroll;if(Ce(e.viewport.scroll.current,P))return Jt(e);var D=wt(e.viewport,P);return Yt(e)?Wt({state:e,viewport:D}):qt({state:e,viewport:D})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Rt(e))return e;var R=t.payload.maxScroll;if(Ce(R,e.viewport.scroll.max))return e;var j=(0,i.A)({},e.viewport,{scroll:(0,i.A)({},e.viewport.scroll,{max:R})});return(0,i.A)({phase:"DRAGGING"},e,{viewport:j})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ge(!1);var M=Dt({state:e,type:t.type});return M?qt({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&ge(!1),(0,i.A)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var z=t.payload,F=z.completed,B=z.dropDuration,U=z.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ge(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:B,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},tn=function(e){return{type:"LIFT",payload:e}},nn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},rn=function(){return{type:"COLLECTION_STARTING",payload:null}},on=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},an=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},sn=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},ln=function(e){return{type:"MOVE",payload:e}},cn=function(){return{type:"MOVE_UP",payload:null}},un=function(){return{type:"MOVE_DOWN",payload:null}},dn=function(){return{type:"MOVE_RIGHT",payload:null}},fn=function(){return{type:"MOVE_LEFT",payload:null}},pn=function(){return{type:"FLUSH",payload:null}},hn=function(e){return{type:"DROP_COMPLETE",payload:e}},mn=function(e){return{type:"DROP",payload:e}},gn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var vn="cubic-bezier(.2,1,.1,1)",yn={drop:0,combining:.7},bn={drop:.75},wn=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",_n={fluid:"opacity "+wn,snap:"transform "+wn+", opacity "+wn,drop:function(e){var t=e+"s "+vn;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+wn,placeholder:"height "+wn+", width "+wn+", margin "+wn},xn=function(e){return Ce(e,Ee)?null:"translate("+e.x+"px, "+e.y+"px)"},En=xn,Sn=function(e,t){var n=xn(e);return n?t?n+" scale("+bn.drop+")":n:null},kn=.33,Cn=.55,On=Cn-kn,Nn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),a=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&ge(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&ge(!1);var s=o.critical,l=o.dimensions,c=l.draggables[o.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,a=e.viewport,s=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,i.A)({},r,{displaced:Qe}),didDropInsideDroppable:!0}:{impact:$t({draggables:t,impact:s,destination:o,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),d=u.impact,f=u.didDropInsideDroppable,p=f?Ve(d):null,h=f?Ge(d):null,m={index:s.draggable.index,droppableId:s.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:p,combine:h},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,s=r.droppables,l=Pt(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=Ht({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:c||u,viewport:o});return ke(d,n.client.borderBox.center)}({impact:d,draggable:c,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),y={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:d};if(!Ce(o.current.client.offset,v)||Boolean(g.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,o=Te(t,n);if(o<=0)return kn;if(o>=1500)return Cn;var i=kn+On*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:v,reason:a});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:b,completed:y}))}else n(hn({completed:y}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},Tn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function In(e){var t=e.onWindowScroll;var n=ce((function(){t(Tn())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=de;function i(){return o!==de}return{start:function(){i()&&ge(!1),o=fe(window,[r])},stop:function(){i()||ge(!1),n.cancel(),o(),o=de},isActive:i}}var An=function(e){var t=In({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Pn=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=ze(e,(function(e){return e.timerId===t}));-1===n&&ge(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Dn=function(e,t){Gt(),t(),Zt()},Rn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},jn=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Mn=function(e,t){var n=function(e,t){var n=Pn(),r=null,o=function(n){r||ge(!1),r=null,Dn(0,(function(){return jn(e().onDragEnd,n,t,xe.onDragEnd)}))};return{beforeCapture:function(t,n){r&&ge(!1),Dn(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&ge(!1),Dn(0,(function(){var r=e().onBeforeDragStart;r&&r(Rn(t,n))}))},start:function(o,i){r&&ge(!1);var a=Rn(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Dn(0,(function(){return jn(e().onDragStart,a,t,xe.onDragStart)}))}))},update:function(o,a){var s=Ve(a),l=Ge(a);r||ge(!1);var c=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);c&&(r.lastCritical=o);var u,d,f=(d=s,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));f&&(r.lastLocation=s);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,l);if(p&&(r.lastCombine=l),c||f||p){var h=(0,i.A)({},Rn(o,r.mode),{combine:l,destination:s});n.add((function(){Dn(0,(function(){return jn(e().onDragUpdate,h,t,xe.onDragUpdate)}))}))}},flush:function(){r||ge(!1),n.flush()},drop:o,abort:function(){if(r){var e=(0,i.A)({},Rn(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Ln=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&ge(!1),e.dispatch(hn({completed:r.completed}))}else t(n)}}},zn=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=fe(window,[i])}))}}}},Fn=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(mn({reason:r.reason})))}}}},Bn=a.Zz,Un=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,s=e.announce,l=e.autoScroller;return(0,a.y$)(en,Bn((0,a.Tw)((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,s=i.clientSelection,l=i.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(hn({completed:c.completed})),"IDLE"!==n().phase&&ge(!1),r(pn()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),f=d.critical,p=d.dimensions,h=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:p,clientSelection:s,movementMode:l,viewport:h}})}else t(o)}}}}(n),Nn,Ln,zn,Fn,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&ge(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),An,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Mn(i,s))))};var qn=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=ke({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},$n=function(){var e=document.documentElement;return e||ge(!1),e},Hn=function(){var e=$n();return qn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Wn=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Gt();var o=function(){var e=Tn(),t=Hn(),n=e.y,r=e.x,o=$n(),i=o.clientWidth,a=o.clientHeight;return{frame:J({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Ee,displacement:Ee}}}}(),i=o.scroll.current,a=t.droppable,s=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),l=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)})),c={draggables:qe(l),droppables:Ue(s)};return Zt(),{dimensions:c,critical:t,viewport:o}};function Vn(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Gn=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,Gt();var e=r,i=e.additions,a=e.removals,s=e.modified,l=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(Ee)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:l,removals:Object.keys(a),modified:c};r={additions:{},removals:{},modified:{}},Zt(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||ge(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Vn(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Vn(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||ge(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||ge(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||ge(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&ge(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},s=e.subscribe(o);return n={critical:a,unsubscribe:s},Wn({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return i},Zn=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},Kn=function(e){window.scrollBy(e.x,e.y)},Yn=(0,le.A)((function(e){return $e(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Qn=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){var n=Fe(Yn(t),(function(t){return t.frame||ge(!1),jt(t.frame.pageMarginBox)(e)}));return n}(t,r);return i},Jn=.25,Xn=.05,er=28,tr=function(e){return Math.pow(e,2)},nr={stopDampeningAt:1200,accelerateAt:360},rr=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},or=nr.accelerateAt,ir=nr.stopDampeningAt,ar=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return er;if(e===t.startScrollingFrom)return 1;var n=rr({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=er*tr(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=ir,o=Date.now()-n;if(o>=ir)return e;if(o<or)return 1;var i=rr({startOfRange:or,endOfRange:r,current:o}),a=e*tr(i);return Math.ceil(a)}(i,r),1):i},sr=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*Jn,maxScrollValueAt:e[t.size]*Xn}}(t,o);return n[o.end]<n[o.start]?ar({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*ar({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},lr=Ae((function(e){return 0===e?0:e})),cr=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=sr({container:n,distanceToEdges:a,dragStartTime:t,axis:nt,shouldUseTimeDampening:i}),l=sr({container:n,distanceToEdges:a,dragStartTime:t,axis:rt,shouldUseTimeDampening:i}),c=lr({x:l,y:s});if(Ce(c,Ee))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?Ce(u,Ee)?null:u:null},ur=Ae((function(e){return 0===e?0:e>0?1:-1})),dr=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,o=t.change,i=Se(n,o),a={x:e(i.x,r.x),y:e(i.y,r.y)};return Ce(a,Ee)?null:a}}(),fr=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=ur(r),a=dr({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},pr=function(e,t){return fr({current:e.scroll.current,max:e.scroll.max,change:t})},hr=function(e,t){var n=e.frame;return!!n&&fr({current:n.scroll.current,max:n.scroll.max,change:t})},mr=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=cr({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&pr(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void o(l)}var c=Qn({center:a,destination:Pt(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=cr({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&hr(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&i(c.descriptor.id,u)}},gr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!hr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&hr(e,t)?dr({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=ke(t,r);return n(e.descriptor.id,o),ke(t,o)},i=function(e,t,n){if(!e)return n;if(!pr(t,n))return n;var o=function(e,t){if(!pr(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return dr({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=ke(n,o);return r(i),ke(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Pt(e.impact);r||ge(!1);var a=o(e.dimensions.droppables[r],n);if(a){var s=e.viewport,l=i(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=Se(e.current.client.selection,n);t({client:r})}(e,l)}}}},vr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=ce(t),o=ce(n),i=null,a=function(e){i||ge(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;mr({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){Gt(),i&&ge(!1);var t=Date.now(),n=!1,r=function(){n=!0};mr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},Zt(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=gr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},yr="data-rbd",br=function(){var e=yr+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),wr=function(){var e=yr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),_r=function(){var e=yr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),xr={contextId:yr+"-scroll-container-context-id"},Er=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Sr=function(e){var t,n=(t=e,function(e){return"["+e+'="'+t+'"]'}),r=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:n(br.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),o=[function(){var e="\n transition: "+_n.outOfTheWay+";\n ";return{selector:n(wr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),r,{selector:n(_r.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Er(o,"always"),resting:Er(o,"resting"),dragging:Er(o,"dragging"),dropAnimating:Er(o,"dropAnimating"),userCancel:Er(o,"userCancel")}},kr="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect,Cr=function(){var e=document.querySelector("head");return e||ge(!1),e},Or=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Nr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Tr(e){return e instanceof Nr(e).HTMLElement}function Ir(e,t){var n="["+br.contextId+'="'+e+'"]',r=Be(document.querySelectorAll(n));if(!r.length)return null;var o=Fe(r,(function(e){return e.getAttribute(br.draggableId)===t}));return o&&Tr(o)?o:null}function Ar(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||ge(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Le(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||ge(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Le(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Pr=r.createContext(null),Dr=function(){var e=document.body;return e||ge(!1),e},Rr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},jr=function(e){return"rbd-announcement-"+e};var Mr=0,Lr={separator:"::"};function zr(e,t){return void 0===t&&(t=Lr),K((function(){return""+e+t.separator+Mr++}),[t.separator,e])}var Fr=r.createContext(null);function Br(e){0}function Ur(e,t){Br()}function qr(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var $r,Hr=(($r={})[13]=!0,$r[9]=!0,$r),Wr=function(e){Hr[e.keyCode]&&e.preventDefault()},Vr=function(){var e="visibilitychange";return"undefined"===typeof document?e:Fe([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Gr,Zr={type:"IDLE"};function Kr(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&ge(!1);var l=s.point;if(c=l,u=a,Math.abs(u.x-c.x)>=5||Math.abs(u.y-c.y)>=5){var c,u;e.preventDefault();var d=s.actions.fluidLift(a);o({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Wr(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&ge(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Vr,fn:t}]}function Yr(){}var Qr=((Gr={})[34]=!0,Gr[33]=!0,Gr[36]=!0,Gr[35]=!0,Gr);function Jr(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Qr[r.keyCode]?r.preventDefault():Wr(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Vr,fn:n}]}var Xr={type:"IDLE"};var eo={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function to(e,t){if(null==t)return!1;if(Boolean(eo[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&to(e,t.parentElement)}function no(e,t){var n=t.target;return!!Tr(n)&&to(e,n)}var ro=function(e){return J(e.getBoundingClientRect()).center};var oo=function(){var e="matches";return"undefined"===typeof document?e:Fe([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function io(e,t){return null==e?null:e[oo](t)?e:io(e.parentElement,t)}function ao(e,t){return e.closest?e.closest(t):io(e,t)}function so(e,t){var n,r=t.target;if(!((n=r)instanceof Nr(n).Element))return null;var o=function(e){return"["+br.contextId+'="'+e+'"]'}(e),i=ao(r,o);return i&&Tr(i)?i:null}function lo(e){e.preventDefault()}function co(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function uo(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!Zn(n.getState(),o))}function fo(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,a=e.draggableId,s=e.forceSensorStop,l=e.sourceEvent;if(!uo({lockAPI:t,store:r,registry:o,draggableId:a}))return null;var c=o.draggable.getById(a),u=function(e,t){var n="["+wr.contextId+'="'+e+'"]',r=Fe(Be(document.querySelectorAll(n)),(function(e){return e.getAttribute(wr.id)===t}));return r&&Tr(r)?r:null}(n,c.descriptor.id);if(!u)return null;if(l&&!c.options.canDragInteractiveElements&&no(u,l))return null;var d=t.claim(s||de),f="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}var m=function(e,t){co({expected:e,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=fe(window,[{eventName:"click",fn:lo,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(mn({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&ge(!1)),r.dispatch(tn(e.liftActionArgs)),f="DRAGGING",(0,i.A)({isActive:function(){return co({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return co({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=ce((function(e){m((function(){return ln({client:e})}))})),n=g({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,i.A)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return m(cn)},moveRight:function(){return m(dn)},moveDown:function(){return m(un)},moveLeft:function(){return m(fn)}};return g({liftActionArgs:{id:a,clientSelection:ro(u),movementMode:"SNAP"},cleanup:de,actions:e})},abort:function(){co({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}}}var po=[function(e){var t=(0,r.useRef)(Zr),n=(0,r.useRef)(de),o=K((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),u(o,i)}}}}}}),[e]),i=K((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=Y((function(){n.current=fe(window,[i,o],{passive:!1,capture:!0})}),[i,o]),s=Y((function(){"IDLE"!==t.current.type&&(t.current=Zr,n.current(),a())}),[a]),l=Y((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=Y((function(){var e=Kr({cancel:l,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=fe(window,e,{capture:!0,passive:!1})}),[l,s]),u=Y((function(e,n){"IDLE"!==t.current.type&&ge(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);kr((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,r.useRef)(Yr),n=K((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var i=e.tryGetLock(r,l,{sourceEvent:n});if(i){n.preventDefault();var a=!0,s=i.snapLift();t.current(),t.current=fe(window,Jr(s,l),{capture:!0,passive:!1})}}}function l(){a||ge(!1),a=!1,t.current(),o()}}}}),[e]),o=Y((function(){t.current=fe(window,[n],{passive:!1,capture:!0})}),[n]);kr((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,r.useRef)(Xr),n=(0,r.useRef)(de),o=Y((function(){return t.current}),[]),i=Y((function(e){t.current=e}),[]),a=K((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,l,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),f(o,a)}}}}}}),[e]),s=Y((function(){n.current=fe(window,[a],{capture:!0,passive:!1})}),[a]),l=Y((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Xr),n.current(),s())}),[s,i]),c=Y((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=Y((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:o},r=fe(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&ge(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:Vr,fn:t}]}(t),e),i=fe(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Vr,fn:t}]}(t),e);n.current=function(){r(),i()}}),[c,o,l]),d=Y((function(){var e=o();"PENDING"!==e.type&&ge(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),f=Y((function(e,t){"IDLE"!==o().type&&ge(!1);var n=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,i,d]);kr((function(){return s(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Xr))}}),[o,s,i]),kr((function(){return fe(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function ho(e){var t=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,s=[].concat(a?po:[],i||[]),l=(0,r.useState)((function(){return function(){var e=null;function t(){e||ge(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ge(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=Y((function(e,t){e.isDragging&&!t.isDragging&&l.tryAbandon()}),[l]);kr((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();c(e,t),e=t}))}),[l,n,c]),kr((function(){return l.tryAbandon}),[l.tryAbandon]);var u=Y((function(e){return uo({lockAPI:l,registry:o,store:n,draggableId:e})}),[l,o,n]),d=Y((function(e,r,i){return fo({lockAPI:l,registry:o,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,l,o,n]),f=Y((function(e){return function(e,t){var n=so(e,t);return n?n.getAttribute(br.draggableId):null}(t,e)}),[t]),p=Y((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=Y((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(pn()))}),[l,n]),m=Y(l.isClaimed,[l]),g=K((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}}),[u,d,f,p,h,m]);Br();for(var v=0;v<s.length;v++)s[v](g)}var mo=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function go(e){return e.current||ge(!1),e.current}function vo(e){var t=e.contextId,n=e.setCallbacks,o=e.sensors,s=e.nonce,l=e.dragHandleUsageInstructions,c=(0,r.useRef)(null);Ur();var u=qr(e),d=Y((function(){return mo(u.current)}),[u]),f=function(e){var t=K((function(){return jr(e)}),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,i.A)(e.style,Rr),Dr().appendChild(e),function(){setTimeout((function(){var t=Dr();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Y((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),h=function(e){var t=e.contextId,n=e.text,o=zr("hidden-text",{separator:"-"}),i=K((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,t]);return(0,r.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",Dr().appendChild(e),function(){var t=Dr();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:l}),m=function(e,t){var n=K((function(){return Sr(e)}),[e]),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=Y((0,le.A)((function(e){var t=i.current;t||ge(!1),t.textContent=e})),[]),s=Y((function(e){var t=o.current;t||ge(!1),t.textContent=e}),[]);kr((function(){(o.current||i.current)&&ge(!1);var r=Or(t),l=Or(t);return o.current=r,i.current=l,r.setAttribute(yr+"-always",e),l.setAttribute(yr+"-dynamic",e),Cr().appendChild(r),Cr().appendChild(l),s(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||ge(!1),Cr().removeChild(t),e.current=null};e(o),e(i)}}),[t,s,a,n.always,n.resting,e]);var l=Y((function(){return a(n.dragging)}),[a,n.dragging]),c=Y((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),u=Y((function(){i.current&&a(n.resting)}),[a,n.resting]);return K((function(){return{dragging:l,dropping:c,resting:u}}),[l,c,u])}(t,s),g=Y((function(e){go(c).dispatch(e)}),[]),v=K((function(){return(0,a.zH)({publishWhileDragging:nn,updateDroppableScroll:on,updateDroppableIsEnabled:an,updateDroppableIsCombineEnabled:sn,collectionStarting:rn},g)}),[g]),y=function(){var e=K(Ar,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),b=K((function(){return Gn(y,v)}),[y,v]),w=K((function(){return vr((0,i.A)({scrollWindow:Kn,scrollDroppable:b.scrollDroppable},(0,a.zH)({move:ln},g)))}),[b.scrollDroppable,g]),_=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(!1),a=Y((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),s=Y((function(t){var n=Ir(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=Y((function(e,t){n.current===e&&(n.current=t)}),[]),c=Y((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=n.current;e&&s(e)})))}),[s]),u=Y((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(br.draggableId)===e&&(n.current=e)}),[]);return kr((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),K((function(){return{register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}}),[a,u,c,l])}(t),x=K((function(){return Un({announce:f,autoScroller:w,dimensionMarshal:b,focusMarshal:_,getResponders:d,styleMarshal:m})}),[f,w,b,_,d,m]);c.current=x;var E=Y((function(){var e=go(c);"IDLE"!==e.getState().phase&&e.dispatch(pn())}),[]),S=Y((function(){var e=go(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(K((function(){return{isDragging:S,tryAbort:E}}),[S,E]));var k=Y((function(e){return Zn(go(c).getState(),e)}),[]),C=Y((function(){return Rt(go(c).getState())}),[]),O=K((function(){return{marshal:b,focus:_,contextId:t,canLift:k,isMovementAllowed:C,dragHandleUsageInstructionsId:h,registry:y}}),[t,b,h,_,k,C,y]);return ho({contextId:t,store:x,registry:y,customSensors:o,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return E}),[E]),r.createElement(Fr.Provider,{value:O},r.createElement(p,{context:Pr,store:x},e.children))}var yo=0;function bo(e){var t=K((function(){return""+yo++}),[]),n=e.dragHandleUsageInstructions||xe.dragHandleUsageInstructions;return r.createElement(ve,null,(function(o){return r.createElement(vo,{nonce:e.nonce,contextId:t,setCallbacks:o,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var wo=function(e){return function(t){return e===t}},_o=wo("scroll"),xo=wo("auto"),Eo=(wo("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),So=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Eo(n,_o)||Eo(n,xo)},ko=function e(t){return null==t||t===document.body||t===document.documentElement?null:So(t)?t:e(t.parentElement)},Co=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Oo=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},No=function(e){return{closestScrollable:ko(e),isFixedOnPage:Oo(e)}},To=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=se(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,s=X({top:r,right:a,bottom:i,left:o},n.border);return ne({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=ie(u,o),f=function(){if(!c)return null;var e=se(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:ie(e,o),scroll:Co(c),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=qn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Ee,displacement:Ee}}}}(),u="vertical"===i?nt:rt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:je({page:s,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:u,page:d,closest:f});return p},Io={passive:!1},Ao={passive:!0},Po=function(e){return e.shouldPublishImmediately?Io:Ao};function Do(e){var t=(0,r.useContext)(e);return t||ge(!1),t}var Ro=function(e){return e&&e.env.closestScrollable||null};function jo(){}var Mo={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Lo=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?Mo:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?_n.placeholder:null}};var zo=r.memo((function(e){var t=(0,r.useRef)(null),n=Y((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),o=e.animate,i=e.onTransitionEnd,a=e.onClose,s=e.contextId,l=(0,r.useState)("open"===e.animate),c=l[0],u=l[1];(0,r.useEffect)((function(){return c?"open"!==o?(n(),u(!1),jo):t.current?jo:(t.current=setTimeout((function(){t.current=null,u(!1)})),n):jo}),[o,c,n]);var d=Y((function(e){"height"===e.propertyName&&(i(),"close"===o&&a())}),[o,a,i]),f=Lo({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return r.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":s,onTransitionEnd:d,ref:e.innerRef})})),Fo=r.createContext(null);var Bo=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(r.PureComponent),Uo=5e3,qo=4500,$o=function(e,t){return t?_n.drop(t.duration):e?_n.snap:_n.fluid},Ho=function(e,t){return e?t?yn.drop:yn.combining:null};function Wo(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),s=Boolean(o),l=s?Sn(n,i):En(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:$o(a,o),transform:l,opacity:Ho(i,s),zIndex:s?qo:Uo,pointerEvents:"none"}}(e):{transform:En((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Vo(e){var t=zr("draggable"),n=e.descriptor,o=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,s=e.shouldRespectForcePress,l=e.isEnabled,c=K((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}}),[a,l,s]),u=Y((function(e){var t=i();return t||ge(!1),function(e,t,n){void 0===n&&(n=Ee);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=ae(o,r),a=ie(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,i]),d=K((function(){return{uniqueId:t,descriptor:n,options:c,getDimension:u}}),[n,u,c,t]),f=(0,r.useRef)(d),p=(0,r.useRef)(!0);kr((function(){return o.draggable.register(f.current),function(){return o.draggable.unregister(f.current)}}),[o.draggable]),kr((function(){if(p.current)p.current=!1;else{var e=f.current;f.current=d,o.draggable.update(d,e)}}),[d,o.draggable])}function Go(e,t,n){Ur()}function Zo(e){e.preventDefault()}var Ko=function(e,t){return e===t},Yo=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Qo(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Jo={mapped:{type:"SECONDARY",offset:Ee,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Qo(null)}};var Xo=W((function(){var e=function(){var e=(0,le.A)((function(e,t){return{x:e,y:t}})),t=(0,le.A)((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=(0,le.A)((function(e,n,r,o,i,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,o,i,a,null)}}}));return function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],s=Pt(r.impact),l=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,s,l,c)}var u;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==o.draggableId)return null;var f=o.isClone,p=r.dimensions.draggables[o.draggableId],h=d.result,m=h.mode,g=Yo(h),v=function(e){return e.combine?e.combine.draggableId:null}(h),y={duration:r.dropDuration,curve:vn,moveTo:r.newHomeClientOffset,opacity:v?yn.drop:null,scale:v?bn.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:y,draggingOver:g,combineWith:v,mode:m,forceShouldAnimate:null,snapshot:t(m,f,g,v,y)}}}return null}}(),t=function(){var e=(0,le.A)((function(e,t){return{x:e,y:t}})),t=(0,le.A)(Qo),n=(0,le.A)((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Ee,e,!0):null},o=function(t,o,i,a){var s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=Ge(i),u=c&&c.draggableId===t?o:null;if(!s){if(!l)return r(u);if(i.displaced.invisible[t])return null;var d=Oe(a.displacedBy.point),f=e(d.x,d.y);return n(f,u,!0)}if(l)return r(u);var p=i.displacedBy.point,h=e(p.x,p.y);return n(h,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(n,r){return e(n,r)||t(n,r)||Jo}}),{dropAnimationFinished:gn},null,{context:Pr,pure:!0,areStatePropsEqual:Ko})((function(e){var t=(0,r.useRef)(null),n=Y((function(e){t.current=e}),[]),o=Y((function(){return t.current}),[]),i=Do(Fr),a=i.contextId,s=i.dragHandleUsageInstructionsId,l=i.registry,c=Do(Fo),u=c.type,d=c.droppableId,f=K((function(){return{id:e.draggableId,index:e.index,type:u,droppableId:d}}),[e.draggableId,e.index,u,d]),p=e.children,h=e.draggableId,m=e.isEnabled,g=e.shouldRespectForcePress,v=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,w=e.dropAnimationFinished;Go(),Br(),y||Vo(K((function(){return{descriptor:f,registry:l,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[f,l,o,v,g,m]));var _=K((function(){return m?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Zo}:null}),[a,s,h,m]),x=Y((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),E=K((function(){var e=Wo(b),t="DRAGGING"===b.type&&b.dropping?x:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:_}}),[a,_,h,b,x,n]),S=K((function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}}),[f.droppableId,f.id,f.index,f.type]);return p(E,b.snapshot,S)}));function ei(e){return Do(Fo).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(Xo,e):null}function ti(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return r.createElement(ei,(0,i.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:o}))}var ni=function(e,t){return e===t.droppable.type},ri=function(e,t){return t.draggables[e.draggable.id]};var oi={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ge(!1),document.body}},ii=W((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,i.A)({},e,{shouldAnimatePlaceholder:!1}),n=(0,le.A)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=(0,le.A)((function(r,o,i,a,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!o)return t;if(!a)return e;var f={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,s=!o.isDropDisabled,l=o.renderClone;if(n.isDragging){var c=n.critical;if(!ni(a,c))return t;var u=ri(c,n.dimensions),d=Pt(n.impact)===i;return r(i,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var f=n.completed;if(!ni(a,f.critical))return t;var p=ri(f.critical,n.dimensions);return r(i,s,Yo(f.result)===i,Pt(f.impact)===i,p,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!ni(a,h.critical))return t;var m=Pt(h.impact)===i,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===i;return m?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Pr,pure:!0,areStatePropsEqual:Ko})((function(e){var t=(0,r.useContext)(Fr);t||ge(!1);var n=t.contextId,o=t.isMovementAllowed,i=(0,r.useRef)(null),a=(0,r.useRef)(null),s=e.children,l=e.droppableId,c=e.type,u=e.mode,d=e.direction,f=e.ignoreContainerClipping,p=e.isDropDisabled,h=e.isCombineEnabled,m=e.snapshot,g=e.useClone,v=e.updateViewportMaxScroll,y=e.getContainerForClone,b=Y((function(){return i.current}),[]),w=Y((function(e){i.current=e}),[]),_=(Y((function(){return a.current}),[]),Y((function(e){a.current=e}),[]));Ur();var x=Y((function(){o()&&v({maxScroll:Hn()})}),[o,v]);!function(e){var t=(0,r.useRef)(null),n=Do(Fr),o=zr("droppable"),i=n.registry,a=n.marshal,s=qr(e),l=K((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,r.useRef)(l),u=K((function(){return(0,le.A)((function(e,n){t.current||ge(!1);var r={x:e,y:n};a.updateDroppableScroll(l.id,r)}))}),[l.id,a]),d=Y((function(){var e=t.current;return e&&e.env.closestScrollable?Co(e.env.closestScrollable):Ee}),[]),f=Y((function(){var e=d();u(e.x,e.y)}),[d,u]),p=K((function(){return ce(f)}),[f]),h=Y((function(){var e=t.current,n=Ro(e);e&&n||ge(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),m=Y((function(e,r){t.current&&ge(!1);var o=s.current,i=o.getDroppableRef();i||ge(!1);var a=No(i),c={ref:i,descriptor:l,env:a,scrollOptions:r};t.current=c;var u=To({ref:i,descriptor:l,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(xr.contextId,n.contextId),d.addEventListener("scroll",h,Po(c.scrollOptions))),u}),[n.contextId,l,h,s]),g=Y((function(){var e=t.current,n=Ro(e);return e&&n||ge(!1),Co(n)}),[]),v=Y((function(){var e=t.current;e||ge(!1);var n=Ro(e);t.current=null,n&&(p.cancel(),n.removeAttribute(xr.contextId),n.removeEventListener("scroll",h,Po(e.scrollOptions)))}),[h,p]),y=Y((function(e){var n=t.current;n||ge(!1);var r=Ro(n);r||ge(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=K((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:y}}),[v,m,g,y]),w=K((function(){return{uniqueId:o,descriptor:l,callbacks:b}}),[b,l,o]);kr((function(){return c.current=w.descriptor,i.droppable.register(w),function(){t.current&&v(),i.droppable.unregister(w)}}),[b,l,v,w,a,i.droppable]),kr((function(){t.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),kr((function(){t.current&&a.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:l,type:c,mode:u,direction:d,isDropDisabled:p,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:b});var E=r.createElement(Bo,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,o=e.data,i=e.animate;return r.createElement(zo,{placeholder:o,onClose:t,innerRef:_,animate:i,contextId:n,onTransitionEnd:x})})),S=K((function(){return{innerRef:w,placeholder:E,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":n}}}),[n,l,E,w]),k=g?g.dragging.draggableId:null,C=K((function(){return{droppableId:l,type:c,isUsingCloneFor:k}}),[l,k,c]);return r.createElement(Fo.Provider,{value:C},s(S,m),function(){if(!g)return null;var e=g.dragging,t=g.render,n=r.createElement(ei,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return G.createPortal(n,y())}())}));ii.defaultProps=oi},32328:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=s(n(59284)),i=s(n(32133)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,n)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(l,e);var t,n,r,s=p(l);function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(h(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,l=n.options,c=o.default.Children.only(s),u=(0,i.default)(r,l);a&&a(r,u),c&&c.props&&"function"===typeof c.props.onClick&&c.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=u(e,a),r=o.default.Children.only(t);return o.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.default.PureComponent);t.CopyToClipboard=v,g(v,"defaultProps",{onCopy:void 0,options:void 0})},64255:(e,t,n)=>{"use strict";var r=n(32328).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},76575:(e,t,n)=>{"use strict";var r=n(59284),o=n(99158);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=R&&e[R]||e["@@iterator"])?e:null}var M,L=Object.assign;function z(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function U(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case x:return"Portal";case k:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case I:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case A:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ee=null,Se=null;function ke(e){if(e=wo(e)){if("function"!==typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Ce(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Oe(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Ne(e,t){return e(t)}function Te(){}var Ie=!1;function Ae(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Ne(e,t,n)}finally{Ie=!1,(null!==Ee||null!==Se)&&(Te(),Oe())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var De=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){De=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){De=!1}function je(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Me=!1,Le=null,ze=!1,Fe=null,Be={onError:function(e){Me=!0,Le=e}};function Ue(e,t,n,r,o,i,a,s,l){Me=!1,Le=null,je.apply(Be,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(qe(e)!==e)throw Error(i(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,Ze=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Qe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Xe=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var _t,xt,Et,St,kt,Ct=!1,Ot=[],Nt=null,Tt=null,It=null,At=new Map,Pt=new Map,Dt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=bo(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void kt(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){zt(e)&&n.delete(t)}function Bt(){Ct=!1,null!==Nt&&zt(Nt)&&(Nt=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==It&&zt(It)&&(It=null),At.forEach(Ft),Pt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function qt(e){function t(t){return Ut(t,e)}if(0<Ot.length){Ut(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Nt&&Ut(Nt,e),null!==Tt&&Ut(Tt,e),null!==It&&Ut(It,e),At.forEach(t),Pt.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Dt.shift()}var $t=w.ReactCurrentBatchConfig,Ht=!0;function Wt(e,t,n,r){var o=bt,i=$t.transition;$t.transition=null;try{bt=1,Gt(e,t,n,r)}finally{bt=o,$t.transition=i}}function Vt(e,t,n,r){var o=bt,i=$t.transition;$t.transition=null;try{bt=4,Gt(e,t,n,r)}finally{bt=o,$t.transition=i}}function Gt(e,t,n,r){if(Ht){var o=Kt(e,t,n,r);if(null===o)Hr(e,t,r,Zt,n),jt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Nt=Mt(Nt,e,t,n,r,o),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,o),!0;case"mouseover":return It=Mt(It,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return At.set(i,Mt(At.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pt.set(i,Mt(Pt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&_t(i),null===(i=Kt(e,t,n,r))&&Hr(e,t,r,Zt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Zt=null;function Kt(e,t,n,r){if(Zt=null,null!==(e=bo(e=_e(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Zt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Jt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Xt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=L({},cn,{view:0,detail:0}),fn=on(dn),pn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(L({},pn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),vn=on(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(L({},cn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function kn(){return Sn}var Cn=L({},dn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(Cn),Nn=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),In=on(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=on(An),Dn=[9,13,27,32],Rn=u&&"CompositionEvent"in window,jn=null;u&&"documentMode"in document&&(jn=document.documentMode);var Mn=u&&"TextEvent"in window&&!jn,Ln=u&&(!Rn||jn&&8<jn&&11>=jn),zn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Wn(e,t,n,r){Ce(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Gn=null;function Zn(e){zr(e,0)}function Kn(e){if(G(_o(e)))return e}function Yn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Jn;if(u){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"===typeof er.oninput}Jn=Xn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Gn=Vn=null)}function nr(e){if("value"===e.propertyName&&Kn(Gn)){var t=[];Wn(t,Gn,e,_e(e)),Ae(Zn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Gn)}function ir(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==Z(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Vr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},Er={},Sr={};function kr(e){if(Er[e])return Er[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Er[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Cr=kr("animationend"),Or=kr("animationiteration"),Nr=kr("animationstart"),Tr=kr("transitionend"),Ir=new Map,Ar="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Ir.set(e,t),l(t,[e])}for(var Dr=0;Dr<Ar.length;Dr++){var Rr=Ar[Dr];Pr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Pr(Cr,"onAnimationEnd"),Pr(Or,"onAnimationIteration"),Pr(Nr,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Tr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,c){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(i(198));var u=Le;Me=!1,Le=null,ze||(ze=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function zr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,s,c),i=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Br("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Yt(t)){case 1:var o=Wt;break;case 4:o=Vt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Ae((function(){var r=i,o=_e(n),a=[];e:{var s=Ir.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Cr:case Or:case Nr:l=vn;break;case Tr:l=In;break;case"scroll":l=fn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Pe(h,f))&&u.push(Wr(h,m,p)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Nn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:_o(l),p=null==c?s:_o(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,bo(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Gr(p))h++;for(p=0,m=f;m;m=Gr(m))p++;for(;0<h-p;)u=Gr(u),h--;for(;0<p-h;)f=Gr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Gr(u),f=Gr(f)}u=null}else u=null;null!==l&&Zr(a,s,l,u,!1),null!==c&&null!==d&&Zr(a,d,c,u,!0)}if("select"===(l=(s=r?_o(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Yn;else if(Hn(s))if(Qn)g=ar;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Wn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?_o(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(y=en()):(Jt="value"in(Qt=o)?Qt.value:Qt.textContent,qn=!0)),0<(v=Vr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Rn&&Bn(e,t)?(e=en(),Xt=Jt=Qt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}zr(a,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Pe(e,n))&&r.unshift(Wr(e,i,o)),null!=(i=Pe(e,t))&&r.push(Wr(e,i,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Zr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Pe(n,i))&&a.unshift(Wr(n,l,s)):o||null!=(l=Pe(n,i))&&a.push(Wr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace(Yr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Xr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);qt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _o(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function xo(e){return e[ho]||null}var Eo=[],So=-1;function ko(e){return{current:e}}function Co(e){0>So||(e.current=Eo[So],Eo[So]=null,So--)}function Oo(e,t){So++,Eo[So]=e.current,e.current=t}var No={},To=ko(No),Io=ko(!1),Ao=No;function Po(e,t){var n=e.type.contextTypes;if(!n)return No;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Do(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ro(){Co(Io),Co(To)}function jo(e,t,n){if(To.current!==No)throw Error(i(168));Oo(To,t),Oo(Io,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,$(e)||"Unknown",o));return L({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,Ao=To.current,Oo(To,e),Oo(Io,Io.current),!0}function zo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Mo(e,t,Ao),r.__reactInternalMemoizedMergedChildContext=e,Co(Io),Co(To),Oo(To,e)):Co(Io),Oo(Io,n)}var Fo=null,Bo=!1,Uo=!1;function qo(e){null===Fo?Fo=[e]:Fo.push(e)}function $o(){if(!Uo&&null!==Fo){Uo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(o){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ge(Xe,$o),o}finally{bt=t,Uo=!1}}return null}var Ho=[],Wo=0,Vo=null,Go=0,Zo=[],Ko=0,Yo=null,Qo=1,Jo="";function Xo(e,t){Ho[Wo++]=Go,Ho[Wo++]=Vo,Vo=e,Go=t}function ei(e,t,n){Zo[Ko++]=Qo,Zo[Ko++]=Jo,Zo[Ko++]=Yo,Yo=e;var r=Qo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Qo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Xo(e,1),ei(e,1,0))}function ni(e){for(;e===Vo;)Vo=Ho[--Wo],Ho[Wo]=null,Go=Ho[--Wo],Ho[Wo]=null;for(;e===Yo;)Yo=Zo[--Ko],Zo[Ko]=null,Jo=Zo[--Ko],Zo[Ko]=null,Qo=Zo[--Ko],Zo[Ko]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Ac(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Qo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ac(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw pi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=co(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=w.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Dc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===P&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Rc(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=jc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Rc(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case x:return(t=zc(t,e.mode,n)).return=e,t;case P:return f(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=jc(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===o?c(e,t,n,r):null;case x:return n.key===o?u(e,t,n,r):null;case P:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||j(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case P:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(o,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(o,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(o,d),ii&&Xo(o,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ii&&Xo(o,m),c}for(d=r(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),ii&&Xo(o,m),c}function g(o,s,l,c){var u=j(l);if("function"!==typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(o,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),ii&&Xo(o,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(o,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return ii&&Xo(o,g),u}for(m=r(o,m);!y.done;g++,y=l.next())null!==(y=h(m,o,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),ii&&Xo(o,g),u}return function e(r,i,a,l){if("object"===typeof a&&null!==a&&a.type===E&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===E){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===P&&bi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=vi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===E?((i=jc(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Rc(a.type,a.key,a.props,null,r.mode,l)).ref=vi(r,i,a),l.return=r,r=l)}return s(r);case x:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=zc(a,r.mode,l)).return=r,r=i}return s(r);case P:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(j(a))return g(r,i,a,l);yi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Lc(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var _i=wi(!0),xi=wi(!1),Ei=ko(null),Si=null,ki=null,Ci=null;function Oi(){Ci=ki=Si=null}function Ni(e){var t=Ei.current;Co(Ei),e._currentValue=t}function Ti(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ii(e,t){Si=e,Ci=ki=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Ai(e){var t=e._currentValue;if(Ci!==e)if(e={context:e,memoizedValue:t,next:null},null===ki){if(null===Si)throw Error(i(308));ki=e,Si.dependencies={lanes:0,firstContext:e}}else ki=ki.next=e;return t}var Pi=null;function Di(e){null===Pi?Pi=[e]:Pi.push(e)}function Ri(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Di(t)):(n.next=o.next,o.next=n),t.interleaved=n,ji(e,r)}function ji(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mi=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Nl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ji(e,n)}return null===(o=r.interleaved)?(t.next=t,Di(r)):(t.next=o.next,o.next=t),r.interleaved=t,ji(e,n)}function Ui(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function qi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $i(e,t,n,r){var o=e.updateQueue;Mi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(p,d,f):h)||void 0===f)break e;d=L({},d,f);break e;case 2:Mi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ml|=a,e.lanes=a,e.memoizedState=d}}function Hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var Wi={},Vi=ko(Wi),Gi=ko(Wi),Zi=ko(Wi);function Ki(e){if(e===Wi)throw Error(i(174));return e}function Yi(e,t){switch(Oo(Zi,t),Oo(Gi,e),Oo(Vi,Wi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Co(Vi),Oo(Vi,t)}function Qi(){Co(Vi),Co(Gi),Co(Zi)}function Ji(e){Ki(Zi.current);var t=Ki(Vi.current),n=le(t,e.type);t!==n&&(Oo(Gi,e),Oo(Vi,n))}function Xi(e){Gi.current===e&&(Co(Vi),Co(Gi))}var ea=ko(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Xa:es,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(da)}if(oa.current=Ja,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(i(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"===typeof t?t(e):t}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,sa.lanes|=d,Ml|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,Ml|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ea(){}function Sa(e,t){var n=sa,r=ba(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,bs=!0),r=r.queue,Ma(Oa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Aa(9,Ca.bind(null,n,r,o,t),void 0,null),null===Tl)throw Error(i(349));0!==(30&aa)||ka(n,t,o)}return o}function ka(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ca(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&Ta(e)}function Oa(e,t,n){return n((function(){Na(t)&&Ta(e)}))}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ta(e){var t=ji(e,1);null!==t&&nc(t,e,1,-1)}function Ia(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Za.bind(null,sa,e),[t.memoizedState,e]}function Aa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pa(){return ba().memoizedState}function Da(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Aa(1|t,n,void 0,void 0===r?null:r)}function Ra(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Aa(t,n,i,r))}sa.flags|=e,o.memoizedState=Aa(1|t,n,i,r)}function ja(e,t){return Da(8390656,8,e,t)}function Ma(e,t){return Ra(2048,8,e,t)}function La(e,t){return Ra(4,2,e,t)}function za(e,t){return Ra(4,4,e,t)}function Fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ra(4,4,Fa.bind(null,t,e),n)}function Ua(){}function qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,Ml|=n,e.baseState=!0),t)}function Wa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Va(){return ba().memoizedState}function Ga(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(e))Ya(t,n);else if(null!==(n=Ri(e,t,n,r))){nc(n,e,r,ec()),Qa(n,t,r)}}function Za(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))Ya(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Di(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ri(e,t,o,r))&&(nc(n,e,r,o=ec()),Qa(n,t,r))}}function Ka(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ya(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:Ai,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Xa={readContext:Ai,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ai,useEffect:ja,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Da(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Ia,useDebugValue:Ua,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=Wa.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Tl)throw Error(i(349));0!==(30&aa)||ka(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,ja(Oa.bind(null,r,a,e),[e]),r.flags|=2048,Aa(9,Ca.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Tl.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ai,useCallback:qa,useContext:Ai,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:$a,useReducer:_a,useRef:Pa,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Ha(ba(),la.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Sa,useId:Va,unstable_isNewReconciler:!1},ts={readContext:Ai,useCallback:qa,useContext:Ai,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:$a,useReducer:xa,useRef:Pa,useState:function(){return xa(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Sa,useId:Va,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Fi(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nc(t,e,o,r),Ui(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Fi(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nc(t,e,o,r),Ui(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Fi(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nc(t,e,r,n),Ui(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=No,i=t.contextType;return"object"===typeof i&&null!==i?i=Ai(i):(o=Do(t)?Ao:To.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Po(e,o):No),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Li(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Ai(i):(i=Do(t)?Ao:To.current,o.context=Po(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),$i(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Wl=r),ds(0,t)},n}function hs(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=kc.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?xi(t,null,n,r):_i(t,e.child,n,r)}function _s(e,t,n,r,o){n=n.render;var i=t.ref;return Ii(t,o),r=ga(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function xs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Pc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Es(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Dc(i,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);0!==(131072&e.flags)&&(bs=!0)}}return Cs(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(Dl,Pl),Pl|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oo(Dl,Pl),Pl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(Dl,Pl),Pl|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(Dl,Pl),Pl|=r;return ws(e,t,o,n),t.child}function ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,o){var i=Do(n)?Ao:To.current;return i=Po(t,i),Ii(t,o),n=ga(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Os(e,t,n,r,o){if(Do(n)){var i=!0;Lo(t)}else i=!1;if(Ii(t,o),null===t.stateNode)$s(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Ai(c):c=Po(t,c=Do(n)?Ao:To.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),Mi=!1;var f=t.memoizedState;a.state=f,$i(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Io.current||Mi?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Mi||is(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,zi(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Ai(l):l=Po(t,l=Do(n)?Ao:To.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Mi=!1,f=t.memoizedState,a.state=f,$i(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Io.current||Mi?("function"===typeof p&&(rs(t,n,p,r),h=t.memoizedState),(c=Mi||is(t,n,c,r,f,h,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ns(e,t,n,r,i,o)}function Ns(e,t,n,r,o,i){ks(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&zo(t,n,!1),Hs(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?jo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jo(0,t.context,!1),Yi(e,t.containerInfo)}function Is(e,t,n,r,o){return hi(),mi(o),t.flags|=256,ws(e,t,n,r),t.child}var As,Ps,Ds,Rs,js={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,o=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Oo(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Mc(l,o,0,null),e=jc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=js,e):zs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Mc({mode:"visible",children:r.children},o,0,null),(a=jc(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&_i(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=js,a);if(0===(1&t.mode))return Fs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=us(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Tl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,ji(e,o),nc(r,e,o,-1))}return mc(),Fs(e,t,s,r=us(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Zo[Ko++]=Qo,Zo[Ko++]=Jo,Zo[Ko++]=Yo,Qo=e.id,Jo=e.overflow,Yo=t),t=zs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Dc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Dc(r,s):(s=jc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=js,o}return e=(s=e.child).sibling,o=Dc(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function zs(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mi(r),_i(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ti(e.return,t,n)}function Us(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function qs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Oo(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Us(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Us(t,!0,n,null,i);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $s(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gs(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Do(t.type)&&Ro(),Vs(t),null;case 3:return r=t.stateNode,Qi(),Co(Io),Co(To),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Ps(e,t),Vs(t),null;case 5:Xi(t);var o=Ki(Zi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Vs(t),null}if(e=Ki(Vi.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<jr.length;o++)Fr(jr[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Y(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":oe(r,a),Fr("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":V(r),X(r,a,!0);break;case"textarea":V(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Xr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[po]=t,e[ho]=r,As(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<jr.length;o++)Fr(jr[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":Y(e,r),o=K(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(a in ye(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fr("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":V(e),X(e,r,!1);break;case"textarea":V(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)Rs(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=Ki(Zi.current),Ki(Vi.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Vs(t),null;case 13:if(Co(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),a=!1}else null!==ai&&(ac(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Rl&&(Rl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return Qi(),Ps(e,t),null===e&&qr(t.stateNode.containerInfo),Vs(t),null;case 10:return Ni(t.type._context),Vs(t),null;case 19:if(Co(ea),null===(a=t.memoizedState))return Vs(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Ws(a,!1);else{if(0!==Rl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ws(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oo(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>ql&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ws(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Vs(t),null}else 2*Qe()-a.renderingStartTime>ql&&1073741824!==n&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,Oo(ea,r?1&n|2:1&n),t):(Vs(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Pl)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Zs(e,t){switch(ni(t),t.tag){case 1:return Do(t.type)&&Ro(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Co(Io),Co(To),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xi(t),null;case 13:if(Co(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Co(ea),null;case 4:return Qi(),null;case 10:return Ni(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}As=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},Ds=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ki(Vi.current);var i,a=null;switch(n){case"input":o=K(e,o),r=K(e,r),a=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Rs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Ys=!1,Qs="function"===typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Ys||Xs(n,t);case 6:var r=ul,o=dl;ul=null,fl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),qt(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Ys&&(Xs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,fl(e,t,n),Ys=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Nc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));pl(a,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Sc(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){Sc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Sc(e,e.return,g)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(g){Sc(e,e.return,g)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(o,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,u)}switch(l){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(g){Sc(e,e.return,g)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(g){Sc(e,e.return,g)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(g){Sc(e,e.return,g)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Ul=Qe())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(u=Ys)||d,ml(t,e),Ys=u):ml(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Sc(r,n,g)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){_l(f);continue}}null!==h?(h.return=p,Js=h):_l(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Sc(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Sc(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&r&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var o=Js,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Ks;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Ks;var c=Ys;if(Ks=a,(Ys=l)&&!c)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?xl(o):null!==l?(l.return=a,Js=l):xl(o);for(;null!==i;)Js=i,bl(i,t,n),i=i.sibling;Js=o,Ks=s,Ys=c}wl(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Js=i):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Hi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Hi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&qt(f)}}}break;default:throw Error(i(163))}Ys||512&t.flags&&ol(t)}catch(p){Sc(t,t.return,p)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function _l(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Sc(t,o,l)}}var i=t.return;try{ol(t)}catch(l){Sc(t,i,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var El,Sl=Math.ceil,kl=w.ReactCurrentDispatcher,Cl=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,Nl=0,Tl=null,Il=null,Al=0,Pl=0,Dl=ko(0),Rl=0,jl=null,Ml=0,Ll=0,zl=0,Fl=null,Bl=null,Ul=0,ql=1/0,$l=null,Hl=!1,Wl=null,Vl=null,Gl=!1,Zl=null,Kl=0,Yl=0,Ql=null,Jl=-1,Xl=0;function ec(){return 0!==(6&Nl)?Qe():-1!==Jl?Jl:Jl=Qe()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Nl)&&0!==Al?Al&-Al:null!==gi.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function nc(e,t,n,r){if(50<Yl)throw Yl=0,Ql=null,Error(i(185));vt(e,n,r),0!==(2&Nl)&&e===Tl||(e===Tl&&(0===(2&Nl)&&(Ll|=n),4===Rl&&sc(e,Al)),rc(e,r),1===n&&0===Nl&&0===(1&t.mode)&&(ql=Qe()+500,Bo&&$o()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Tl?Al:0);if(0===r)null!==n&&Ze(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ze(n),1===t)0===e.tag?function(e){Bo=!0,qo(e)}(lc.bind(null,e)):qo(lc.bind(null,e)),ao((function(){0===(6&Nl)&&$o()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,Xl=0,0!==(6&Nl))throw Error(i(327));var n=e.callbackNode;if(xc()&&e.callbackNode!==n)return null;var r=ft(e,e===Tl?Al:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var o=Nl;Nl|=2;var a=hc();for(Tl===e&&Al===t||($l=null,ql=Qe()+500,fc(e,t));;)try{yc();break}catch(l){pc(e,l)}Oi(),kl.current=a,Nl=o,null!==Il?t=0:(Tl=null,Al=0,t=Rl)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=ic(e,o))),1===t)throw n=jl,fc(e,0),sc(e,r),rc(e,Qe()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gc(e,r))&&(0!==(a=ht(e))&&(r=a,t=ic(e,a))),1===t))throw n=jl,fc(e,0),sc(e,r),rc(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:_c(e,Bl,$l);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Ul+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(_c.bind(null,e,Bl,$l),t);break}_c(e,Bl,$l);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ro(_c.bind(null,e,Bl,$l),r);break}_c(e,Bl,$l);break;default:throw Error(i(329))}}}return rc(e,Qe()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bl,Bl=n,null!==t&&ac(t)),e}function ac(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function sc(e,t){for(t&=~zl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Nl))throw Error(i(327));xc();var t=ft(e,0);if(0===(1&t))return rc(e,Qe()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=jl,fc(e,0),sc(e,t),rc(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_c(e,Bl,$l),rc(e,Qe()),null}function cc(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{0===(Nl=n)&&(ql=Qe()+500,Bo&&$o())}}function uc(e){null!==Zl&&0===Zl.tag&&0===(6&Nl)&&xc();var t=Nl;Nl|=1;var n=Ol.transition,r=bt;try{if(Ol.transition=null,bt=1,e)return e()}finally{bt=r,Ol.transition=n,0===(6&(Nl=t))&&$o()}}function dc(){Pl=Dl.current,Co(Dl)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Il)for(n=Il.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ro();break;case 3:Qi(),Co(Io),Co(To),ra();break;case 5:Xi(r);break;case 4:Qi();break;case 13:case 19:Co(ea);break;case 10:Ni(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Il=e=Dc(e.current,null),Al=Pl=t,Rl=0,jl=null,zl=Ll=Ml=0,Bl=Fl=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function pc(e,t){for(;;){var n=Il;try{if(Oi(),oa.current=Ja,ua){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,fa=0,Cl.current=null,null===n||null===n.return){Rl=1,jl=t,Il=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Al,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(a,u,t),mc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var v=gs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mi(cs(c,l));break e}}a=c=cs(c,l),4!==Rl&&(Rl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qi(a,ps(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Vl||!Vl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Il===n&&null!==n&&(Il=n=n.return);continue}break}}function hc(){var e=kl.current;return kl.current=Ja,null===e?Ja:e}function mc(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===Tl||0===(268435455&Ml)&&0===(268435455&Ll)||sc(Tl,Al)}function gc(e,t){var n=Nl;Nl|=2;var r=hc();for(Tl===e&&Al===t||($l=null,fc(e,t));;)try{vc();break}catch(o){pc(e,o)}if(Oi(),Nl=n,kl.current=r,null!==Il)throw Error(i(261));return Tl=null,Al=0,Rl}function vc(){for(;null!==Il;)bc(Il)}function yc(){for(;null!==Il&&!Ke();)bc(Il)}function bc(e){var t=El(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?wc(e):Il=t,Cl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Gs(n,t,Pl)))return void(Il=n)}else{if(null!==(n=Zs(n,t)))return n.flags&=32767,void(Il=n);if(null===e)return Rl=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Rl&&(Rl=5)}function _c(e,t,n){var r=bt,o=Ol.transition;try{Ol.transition=null,bt=1,function(e,t,n,r){do{xc()}while(null!==Zl);if(0!==(6&Nl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Tl&&(Il=Tl=null,Al=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Gl||(Gl=!0,Tc(tt,(function(){return xc(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Ol.transition,Ol.transition=null;var s=bt;bt=1;var l=Nl;Nl|=4,Cl.current=null,function(e,t){if(eo=Ht,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(_){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(l=s),p===a&&++d===r&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(_){Sc(t,t.return,_)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),gl(n,e),hr(to),Ht=!!eo,to=eo=null,e.current=n,yl(n,e,o),Ye(),Nl=l,bt=s,Ol.transition=a}else e.current=n;if(Gl&&(Gl=!1,Zl=e,Kl=o),a=e.pendingLanes,0===a&&(Vl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=Wl,Wl=null,e;0!==(1&Kl)&&0!==e.tag&&xc(),a=e.pendingLanes,0!==(1&a)?e===Ql?Yl++:(Yl=0,Ql=e):Yl=0,$o()}(e,t,n,r)}finally{Ol.transition=o,bt=r}return null}function xc(){if(null!==Zl){var e=wt(Kl),t=Ol.transition,n=bt;try{if(Ol.transition=null,bt=16>e?16:e,null===Zl)var r=!1;else{if(e=Zl,Zl=null,Kl=0,0!==(6&Nl))throw Error(i(331));var o=Nl;for(Nl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!==(16&Js.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(il(d),d===u){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!==(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(x){Sc(l,l.return,x)}if(l===s){Js=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Js=_;break e}Js=l.return}}if(Nl=o,$o(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(x){}r=!0}return r}finally{bt=n,Ol.transition=t}}return!1}function Ec(e,t,n){e=Bi(e,t=ps(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Bi(t,e=hs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function kc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Al&n)===n&&(4===Rl||3===Rl&&(130023424&Al)===Al&&500>Qe()-Ul?fc(e,0):zl|=n),rc(e,t)}function Cc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=ji(e,t))&&(vt(e,t,n),rc(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Cc(e,n)}function Tc(e,t){return Ge(e,t)}function Ic(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ac(e,t,n,r){return new Ic(e,t,n,r)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var n=e.alternate;return null===n?((n=Ac(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rc(e,t,n,r,o,a){var s=2;if(r=e,"function"===typeof e)Pc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return jc(n.children,o,a,t);case S:s=8,o|=8;break;case k:return(e=Ac(12,n,t,2|o)).elementType=k,e.lanes=a,e;case T:return(e=Ac(13,n,t,o)).elementType=T,e.lanes=a,e;case I:return(e=Ac(19,n,t,o)).elementType=I,e.lanes=a,e;case D:return Mc(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case O:s=9;break e;case N:s=11;break e;case A:s=14;break e;case P:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Ac(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function jc(e,t,n,r){return(e=Ac(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Ac(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Ac(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Ac(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,o,i,a,s,l){return e=new Fc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ac(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function Uc(e){if(!e)return No;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Do(n))return Mo(e,n,t)}return t}function qc(e,t,n,r,o,i,a,s,l){return(e=Bc(n,r,!0,e,0,i,0,s,l)).context=Uc(null),n=e.current,(i=Fi(r=ec(),o=tc(n))).callback=void 0!==t&&null!==t?t:null,Bi(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function $c(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nc(e,o,a,i),Ui(e,o,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Wc(e,t),(e=e.alternate)&&Wc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Io.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),hi();break;case 5:Ji(t);break;case 1:Do(t.type)&&Lo(t);break;case 4:Yi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(Ei,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oo(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(Oo(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);Oo(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return qs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Oo(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,ii&&0!==(1048576&t.flags)&&ei(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$s(e,t),e=t.pendingProps;var o=Po(t,To.current);Ii(t,n),o=ga(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(r)?(a=!0,Lo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Li(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ns(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch($s(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Pc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===A)return 14}return 2}(r),e=ns(r,e),o){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=_s(null,t,r,e,n);break e;case 14:t=xs(null,t,r,ns(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Cs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,Os(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Ts(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,zi(e,t),$i(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Is(e,t,r,n,o=cs(Error(i(423)),t));break e}if(r!==o){t=Is(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=xi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Ji(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),ks(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Ls(e,t,n);case 4:return Yi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_i(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,_s(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Oo(Ei,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Io.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Fi(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Ti(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ti(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ii(t,n),r=r(o=Ai(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),xs(e,t,r,o=ns(r.type,o),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),$s(e,t),t.tag=1,Do(r)?(e=!0,Lo(t)):e=!1,Ii(t,n),as(t,r,o),ls(t,r,o,n),Ns(null,t,r,!0,e,n);case 19:return qs(e,t,n);case 22:return Ss(e,t,n)}throw Error(i(156,t.tag))};var Gc="function"===typeof reportError?reportError:function(e){console.error(e)};function Zc(e){this._internalRoot=e}function Kc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Xc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var s=o;o=function(){var e=Hc(a);s.call(e)}}$c(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Hc(a);i.call(e)}}var a=qc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[mo]=a.current,qr(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[mo]=l.current,qr(8===e.nodeType?e.parentNode:e),uc((function(){$c(t,l,n,r)})),l}(n,t,e,o,r);return Hc(a)}Kc.prototype.render=Zc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));$c(e,t,null,null)},Kc.prototype.unmount=Zc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){$c(null,e,null,null)})),t[mo]=null}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&Lt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Qe()),0===(6&Nl)&&(ql=Qe()+500,$o()))}break;case 13:uc((function(){var t=ji(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Vc(e,1)}},xt=function(e){if(13===e.tag){var t=ji(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},Et=function(e){if(13===e.tag){var t=tc(e),n=ji(e,t);if(null!==n)nc(n,e,t,ec());Vc(e,t)}},St=function(){return bt},kt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(i(90));G(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=cc,Te=uc;var eu={usingClientEntryPoint:!1,Events:[wo,_o,xo,Ce,Oe,cc]},tu={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yc(e))throw Error(i(299));var n=!1,r="",o=Gc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,qr(8===e.nodeType?e.parentNode:e),new Zc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(i(200));return Xc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=Gc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=qc(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,qr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Kc(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(i(200));return Xc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc((function(){Xc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Xc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5906:(e,t,n)=>{"use strict";var r=n(48681);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},48681:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(76575)},45099:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!i(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},61750:(e,t,n)=>{"use strict";n.d(t,{mg:()=>J,vd:()=>W});var r=n(59284),o=n(45099),i=n.n(o),a=n(83791),s=n.n(a),l=n(37737),c=n.n(l),u=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(u||{}),d={rel:["amphtml","canonical","alternate"]},f={type:["application/ld+json"]},p={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},h=Object.values(u),m={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},g=Object.entries(m).reduce(((e,[t,n])=>(e[n]=t,e)),{}),v="data-rh",y="defaultTitle",b="defer",w="encodeSpecialCharacters",_="onChangeClientState",x="titleTemplate",E="prioritizeSeoTags",S=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},k=e=>{let t=S(e,"title");const n=S(e,x);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(()=>t));const r=S(e,y);return t||r||void 0},C=e=>S(e,_)||(()=>{}),O=(e,t)=>t.filter((t=>"undefined"!==typeof t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),N=(e,t)=>t.filter((e=>"undefined"!==typeof e.base)).map((e=>e.base)).reverse().reduce(((t,n)=>{if(!t.length){const r=Object.keys(n);for(let o=0;o<r.length;o+=1){const i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}}return t}),[]),T=(e,t,n)=>{const r={};return n.filter((t=>{return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&(n=`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`,console&&"function"===typeof console.warn&&console.warn(n)),!1);var n})).map((t=>t[e])).reverse().reduce(((e,n)=>{const o={};n.filter((e=>{let n;const i=Object.keys(e);for(let r=0;r<i.length;r+=1){const o=i[r],a=o.toLowerCase();-1===t.indexOf(a)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===a&&"stylesheet"===e[a].toLowerCase()||(n=a),-1===t.indexOf(o)||"innerHTML"!==o&&"cssText"!==o&&"itemprop"!==o||(n=o)}if(!n||!e[n])return!1;const a=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][a]&&(o[n][a]=!0,!0)})).reverse().forEach((t=>e.push(t)));const i=Object.keys(o);for(let t=0;t<i.length;t+=1){const e=i[t],n={...r[e],...o[e]};r[e]=n}return e}),[]).reverse()},I=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},A=e=>Array.isArray(e)?e.join(""):e,P=(e,t)=>Array.isArray(e)?e.reduce(((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e)),{priority:[],default:[]}):{default:e,priority:[]},D=(e,t)=>({...e,[t]:void 0}),R=["noscript","script","style"],j=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),M=e=>Object.keys(e).reduce(((t,n)=>{const r="undefined"!==typeof e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r}),""),L=(e,t={})=>Object.keys(e).reduce(((t,n)=>(t[m[n]||n]=e[n],t)),t),z=(e,t)=>t.map(((t,n)=>{const o={key:n,[v]:!0};return Object.keys(t).forEach((e=>{const n=m[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:e}}else o[n]=t[e]})),r.createElement(e,o)})),F=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const o=L(n,{key:t,[v]:!0});return[r.createElement("title",o,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,r)=>{const o=M(n),i=A(t);return o?`<${e} ${v}="true" ${o}>${j(i,r)}</${e}>`:`<${e} ${v}="true">${j(i,r)}</${e}>`})(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>L(t),toString:()=>M(t)};default:return{toComponent:()=>z(e,t),toString:()=>((e,t,n=!0)=>t.reduce(((t,r)=>{const o=r,i=Object.keys(o).filter((e=>!("innerHTML"===e||"cssText"===e))).reduce(((e,t)=>{const r="undefined"===typeof o[t]?t:`${t}="${j(o[t],n)}"`;return e?`${e} ${r}`:r}),""),a=o.innerHTML||o.cssText||"",s=-1===R.indexOf(e);return`${t}<${e} ${v}="true" ${i}${s?"/>":`>${a}</${e}>`}`}),""))(e,t,n)}}},B=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:i,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:h,scriptTags:m}=e,g={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:g,linkTags:u,metaTags:h,scriptTags:m}=(({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const o=P(e,p),i=P(t,d),a=P(n,f);return{priorityMethods:{toComponent:()=>[...z("meta",o.priority),...z("link",i.priority),...z("script",a.priority)],toString:()=>`${F("meta",o.priority,r)} ${F("link",i.priority,r)} ${F("script",a.priority,r)}`},metaTags:o.default,linkTags:i.default,scriptTags:a.default}})(e)),{priority:g,base:F("base",t,r),bodyAttributes:F("bodyAttributes",n,r),htmlAttributes:F("htmlAttributes",o,r),link:F("link",u,r),meta:F("meta",h,r),noscript:F("noscript",i,r),script:F("script",m,r),style:F("style",a,r),title:F("title",{title:s,titleAttributes:l},r)}},U=[],q=!("undefined"===typeof window||!window.document||!window.document.createElement),$=class{instances=[];canUseDOM=q;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?U:this.instances,add:e=>{(this.canUseDOM?U:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?U:this.instances).indexOf(e);(this.canUseDOM?U:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=B({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},H=r.createContext({}),W=class e extends r.Component{static canUseDOM=q;helmetData;constructor(t){super(t),this.helmetData=new $(this.props.context||{},e.canUseDOM)}render(){return r.createElement(H.Provider,{value:this.helmetData.value},this.props.children)}},V=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${v}]`),o=[].slice.call(r),i=[];let a;return t&&t.length&&t.forEach((t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const r=e,o="undefined"===typeof t[r]?"":t[r];n.setAttribute(e,o)}n.setAttribute(v,"true"),o.some(((e,t)=>(a=t,n.isEqualNode(e))))?o.splice(a,1):i.push(n)})),o.forEach((e=>e.parentNode?.removeChild(e))),i.forEach((e=>n.appendChild(e))),{oldTags:o,newTags:i}},G=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(v),o=r?r.split(","):[],i=[...o],a=Object.keys(t);for(const s of a){const e=t[s]||"";n.getAttribute(s)!==e&&n.setAttribute(s,e),-1===o.indexOf(s)&&o.push(s);const r=i.indexOf(s);-1!==r&&i.splice(r,1)}for(let s=i.length-1;s>=0;s-=1)n.removeAttribute(i[s]);o.length===i.length?n.removeAttribute(v):n.getAttribute(v)!==a.join(",")&&n.setAttribute(v,a.join(","))},Z=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:o,linkTags:i,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;G("body",r),G("html",o),((e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=A(e)),G("title",t)})(d,f);const p={baseTag:V("base",n),linkTags:V("link",i),metaTags:V("meta",a),noscriptTags:V("noscript",s),scriptTags:V("script",c),styleTags:V("style",u)},h={},m={};Object.keys(p).forEach((e=>{const{newTags:t,oldTags:n}=p[e];t.length&&(h[e]=t),n.length&&(m[e]=p[e].oldTags)})),t&&t(),l(e,h,m)},K=null,Y=e=>{K&&cancelAnimationFrame(K),e.defer?K=requestAnimationFrame((()=>{Z(e,(()=>{K=null}))})):(Z(e),K=null)},Q=class extends r.Component{rendered=!1;shouldComponentUpdate(e){return!c()(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(o=e.get().map((e=>{const t={...e.props};return delete t.context,t})),{baseTag:N(["href"],o),bodyAttributes:O("bodyAttributes",o),defer:S(o,b),encode:S(o,w),htmlAttributes:O("htmlAttributes",o),linkTags:T("link",["rel","href"],o),metaTags:T("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:T("noscript",["innerHTML"],o),onChangeClientState:C(o),scriptTags:T("script",["src","innerHTML"],o),styleTags:T("style",["cssText"],o),title:k(o),titleAttributes:O("titleAttributes",o),prioritizeSeoTags:I(o,E)});var o;W.canUseDOM?Y(r):B&&(n=B(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},J=class extends r.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!i()(D(this.props,"helmetData"),D(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach((t=>{n={...n,[t]:e[t]}})),n}warnOnInvalidChildren(e,t){return s()(h.some((t=>e.type===t)),"function"===typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${h.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),s()(!t||"string"===typeof t||Array.isArray(t)&&!t.some((e=>"string"!==typeof e)),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return r.Children.forEach(e,(e=>{if(!e||!e.props)return;const{children:r,...o}=e.props,i=Object.keys(o).reduce(((e,t)=>(e[g[t]||t]=o[t],e)),{});let{type:a}=e;switch("symbol"===typeof a?a=a.toString():this.warnOnInvalidChildren(e,r),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(r,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,i,r);break;default:t=this.mapObjectTypeChildren(e,t,i,r)}})),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:o}=t;if(e&&(n=this.mapChildrenToProps(e,n)),o&&!(o instanceof $)){o=new $(o.context,!0),delete n.helmetData}return o?r.createElement(Q,{...n,context:o.value}):r.createElement(H.Consumer,null,(e=>r.createElement(Q,{...n,context:e})))}}},50711:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116,h=60121,m=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===l}},94771:(e,t,n)=>{"use strict";e.exports=n(50711)},67063:(e,t,n)=>{var r=n(59284),o=n(14538),i=n(13260),a=n(41470),s=r.createElement,l=n(52893),c=n(74073),u=n(46556),d=n(53753),f=n(53205),p=n(23909);e.exports=o({propTypes:{data:i.any.isRequired,search:i.oneOfType([i.func,i.bool]),searchOptions:i.shape({debounceTime:i.number}),onClick:i.func,validateQuery:i.func,isExpanded:i.func,filterOptions:i.shape({cacheResults:i.bool,ignoreCase:i.bool}),query:i.string,verboseShowOriginal:i.bool},getDefaultProps:function(){return{data:null,search:c,searchOptions:{debounceTime:0},className:"",id:"json-"+Date.now(),onClick:p,filterOptions:{cacheResults:!0,ignoreCase:!1},validateQuery:function(e){return e.length>=2},isExpanded:function(e,t){return!1},verboseShowOriginal:!1}},getInitialState:function(){return{query:this.props.query||""}},render:function(){var e=this.props,t=this.state,n=""!==t.query&&e.validateQuery(t.query),r=n?t.filterer(t.query):e.data,o=n&&d(r);return s("div",{className:"json-inspector "+e.className},this.renderToolbar(),o?s("div",{className:"json-inspector__not-found"},"Nothing found"):s(l,{data:r,onClick:e.onClick,id:e.id,getOriginal:this.getOriginal,query:n?new RegExp(t.query,e.filterOptions.ignoreCase?"i":""):null,label:"root",root:!0,isExpanded:e.isExpanded,interactiveLabel:e.interactiveLabel,verboseShowOriginal:e.verboseShowOriginal}))},renderToolbar:function(){var e=this.props.search;if(e)return s("div",{className:"json-inspector__toolbar"},s(e,{onChange:a(this.search,this.props.searchOptions.debounceTime),data:this.props.data,query:this.state.query}))},search:function(e){this.setState({query:e})},componentWillMount:function(){this.createFilterer(this.props.data,this.props.filterOptions)},componentWillReceiveProps:function(e){this.createFilterer(e.data,e.filterOptions),"string"===typeof e.query&&e.query!==this.state.query&&this.setState({query:e.query})},shouldComponentUpdate:function(e,t){return e.query!==this.props.query||t.query!==this.state.query||e.data!==this.props.data||e.onClick!==this.props.onClick},createFilterer:function(e,t){this.setState({filterer:u(e,t)})},getOriginal:function(e){return f(this.props.data,e)}})},46556:(e,t,n)=>{var r=n(40652),o=Object.keys,i=n(63817),a=n(53753);function s(e,t,n){return o(e).reduce((function(o,c){var u,d=e[c];return i(d)?(l(t,c,n)||l(t,d,n))&&(o[c]=d):l(t,c,n)?o[c]=d:(u=s(d,t,n),a(u)||r(o,function(e,t){var n={};return n[e]=t,n}(c,u))),o}),{})}function l(e,t,n){if(t){var r=String(t),o=e;return n.ignoreCase&&(r=r.toLowerCase(),o=o.toLowerCase()),-1!==r.indexOf(o)}}e.exports=function(e,t){t||(t={cacheResults:!0});var n={};return function(r){if(!t.cacheResults)return s(e,r,t);var o;if(!n[r])for(var i=r.length-1;i>0;i-=1)if(o=r.substr(0,i),n[o]){n[r]=s(n[o],r,t);break}return n[r]||(n[r]=s(e,r,t)),n[r]}}},49022:(e,t,n)=>{var r=n(59284),o=n(14538),i=r.createElement;e.exports=o({getDefaultProps:function(){return{string:"",highlight:""}},shouldComponentUpdate:function(e){return e.highlight!==this.props.highlight},render:function(){var e=this.props,t=e.string.search(e.highlight);if(!e.highlight||-1===t)return i("span",null,e.string);var n=e.highlight.source.length,r=e.string.substr(t,n);return i("span",null,e.string.split(e.highlight).map((function(e,t){return i("span",{key:t},t>0?i("span",{className:"json-inspector__hl"},r):null,e)})))}})},53753:e=>{e.exports=function(e){return 0===Object.keys(e).length}},63817:(e,t,n)=>{var r=n(67857);e.exports=function(e){var t=r(e);return"Object"!==t&&"Array"!==t}},52893:(e,t,n)=>{var r=n(59284),o=n(14538),i=n(1445),a=n(68155),s=n(67857),l=n(63817),c=n(49022),u=r.createElement,d=o({getInitialState:function(){return{expanded:this._isInitiallyExpanded(this.props)}},getDefaultProps:function(){return{root:!1,prefix:""}},render:function(){var e="id_"+a(),t=this.props,n={path:this.keypath(),key:t.label.toString(),value:t.data},r=this._onClick.bind(this,n);return u("div",{className:this.getClassName(),id:"leaf-"+this._rootPath()},u("input",{className:"json-inspector__radio",type:"radio",name:t.id,id:e,tabIndex:-1}),u("label",{className:"json-inspector__line",htmlFor:e,onClick:r},u("div",{className:"json-inspector__flatpath"},n.path),u("span",{className:"json-inspector__key"},this.format(n.key),":",this.renderInteractiveLabel(n.key,!0)),this.renderTitle(),this.renderShowOriginalButton()),this.renderChildren())},renderTitle:function(){var e=this.data(),t=s(e);switch(t){case"Array":return u("span",{className:"json-inspector__value json-inspector__value_helper"},"[] "+f(e.length));case"Object":return u("span",{className:"json-inspector__value json-inspector__value_helper"},"{} "+f(Object.keys(e).length));default:return u("span",{className:"json-inspector__value json-inspector__value_"+t.toLowerCase()},this.format(String(e)),this.renderInteractiveLabel(e,!1))}},renderChildren:function(){var e=this.props,t=this._rootPath(),n=this.data();return this.state.expanded&&!l(n)?Object.keys(n).map((function(r){var o=n[r],i=!this.state.original||!!e.verboseShowOriginal&&e.query;return u(d,{data:o,label:r,prefix:t,onClick:e.onClick,id:e.id,query:e.query,getOriginal:i?e.getOriginal:null,key:p(r,o),isExpanded:e.isExpanded,interactiveLabel:e.interactiveLabel,verboseShowOriginal:e.verboseShowOriginal})}),this):null},renderShowOriginalButton:function(){var e=this.props;return l(e.data)||this.state.original||!e.getOriginal||!e.query||h(this.keypath(),e.query)?null:u("span",{className:"json-inspector__show-original",onClick:this._onShowOriginalClick})},renderInteractiveLabel:function(e,t){return"function"===typeof this.props.interactiveLabel?u(this.props.interactiveLabel,{value:String(e),originalValue:e,isKey:t,keypath:this.keypath()}):null},componentWillReceiveProps:function(e){e.query&&this.setState({expanded:!h(e.label,e.query)}),this.props.query&&!e.query&&this.setState({expanded:this._isInitiallyExpanded(e)})},_rootPath:function(){return this.props.prefix+"."+this.props.label},keypath:function(){return this._rootPath().substr(6)},data:function(){return this.state.original||this.props.data},format:function(e){return u(c,{string:e,highlight:this.props.query})},getClassName:function(){var e="json-inspector__leaf";return this.props.root&&(e+=" json-inspector__leaf_root"),this.state.expanded&&(e+=" json-inspector__leaf_expanded"),l(this.props.data)||(e+=" json-inspector__leaf_composite"),e},toggle:function(){this.setState({expanded:!this.state.expanded})},_onClick:function(e,t){this.toggle(),this.props.onClick(e),t.stopPropagation()},_onShowOriginalClick:function(e){this.setState({original:this.props.getOriginal(this.keypath())}),e.stopPropagation()},_isInitiallyExpanded:function(e){var t=this.keypath();return!!e.root||(e.query?!h(t,e.query)&&"function"===typeof e.getOriginal:e.isExpanded(t,e.data))}});function f(e){return e+(1===e?" item":" items")}function p(e,t){return l(t)?e+":"+i(String(t)):e+"["+s(t)+"]"}function h(e,t){return-1!==e.indexOf(t)}e.exports=d},53205:(e,t,n)=>{var r=n(67857);function o(e){return parseInt(e,10)}e.exports=function e(t,n){var i=n.split("."),a=i.shift();if(!a)return t;var s=r(t);return"Array"===s&&t[o(a)]?e(t[o(a)],i.join(".")):"Object"===s&&t[a]?e(t[a],i.join(".")):void 0}},23909:e=>{e.exports=function(){}},74073:(e,t,n)=>{var r=n(59284),o=n(14538),i=r.createElement,a=n(23909);e.exports=o({getDefaultProps:function(){return{onChange:a}},render:function(){return i("input",{className:"json-inspector__search",type:"search",placeholder:"Search",onChange:this.onChange})},onChange:function(e){this.props.onChange(e.target.value)}})},67857:e=>{e.exports=function(e){return Object.prototype.toString.call(e).slice(8,-1)}},68155:e=>{var t=Math.ceil(10*Math.random());e.exports=function(){return++t}},40652:e=>{"use strict";e.exports=Object.assign||function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){n=arguments[i],r=Object.keys(Object(n));for(var a=0;a<r.length;a++)o[r[a]]=n[r[a]]}return o}},56993:function(e,t,n){var r,o,i;"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,o=[n(13260),n(59284)],r=function(t,n){"use strict";var r,o;function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e){var t=v();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t=s(t),n=a(n);var x={x:"clientWidth",y:"clientHeight"},E={x:"clientTop",y:"clientLeft"},S={x:"innerWidth",y:"innerHeight"},k={x:"offsetWidth",y:"offsetHeight"},C={x:"offsetLeft",y:"offsetTop"},O={x:"overflowX",y:"overflowY"},N={x:"scrollWidth",y:"scrollHeight"},T={x:"scrollLeft",y:"scrollTop"},I={x:"width",y:"height"},A=function(){},P=!!function(){if("undefined"===typeof window)return!1;var e=!1;try{document.createElement("div").addEventListener("test",A,{get passive(){return e=!0,!1}})}catch(t){}return e}()&&{passive:!0},D="ReactList failed to reach a stable state.",R=40,j=function(e,t){for(var n in t)if(e[n]!==t[n])return!1;return!0},M=function(e){for(var t=e.props.axis,n=e.getEl(),r=O[t];n=n.parentElement;)switch(window.getComputedStyle(n)[r]){case"auto":case"scroll":case"overlay":return n}return window},L=function(e){var t=e.props.axis,n=e.scrollParent;return n===window?window[S[t]]:n[x[t]]},z=function(e,t){var n=e.length,r=e.minSize,o=e.type,i=t.from,a=t.size,s=t.itemsPerRow,l=(a=Math.max(a,r))%s;return l&&(a+=s-l),a>n&&(a=n),(l=(i="simple"!==o&&i?Math.max(Math.min(i,n-a),0):0)%s)&&(i-=l,a+=l),i===t.from&&a==t.size?t:w(w({},t),{},{from:i,size:a})};e.exports=(o=r=function(e){f(r,e);var t=h(r);function r(e){var n;return c(this,r),(n=t.call(this,e)).state=z(e,{itemsPerRow:1,from:e.initialIndex,size:0}),n.cache={},n.cachedScrollPosition=null,n.prevPrevState={},n.unstable=!1,n.updateCounter=0,n}return d(r,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=z(e,t);return n===t?null:n}}]),d(r,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.props.axis!==e.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>R)return this.unstable=!0,console.error(D);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout((function(){t.updateCounter=0,delete t.updateCounterTimeoutId}),0)),this.updateFrame()}}},{key:"maybeSetState",value:function(e,t){if(j(this.state,e))return t();this.setState(e,t)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,P),this.scrollParent.removeEventListener("mousewheel",A,P)}},{key:"getOffset",value:function(e){var t=this.props.axis,n=e[E[t]]||0,r=C[t];do{n+=e[r]||0}while(e=e.offsetParent);return n}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if("number"===typeof this.cachedScrollPosition)return this.cachedScrollPosition;var e=this.scrollParent,t=this.props.axis,n=T[t],r=e===window?document.body[n]||document.documentElement[n]:e[n],o=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),i=Math.max(0,Math.min(r,o)),a=this.getEl();return this.cachedScrollPosition=this.getOffset(e)+i-this.getOffset(a),this.cachedScrollPosition}},{key:"setScroll",value:function(e){var t=this.scrollParent,n=this.props.axis;if(e+=this.getOffset(this.getEl()),t===window)return window.scrollTo(0,e);e-=this.getOffset(this.scrollParent),t[T[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,r=t.documentElement,o=N[this.props.axis];return e===window?Math.max(n[o],r[o]):e[o]}},{key:"hasDeterminateSize",value:function(){var e=this.props,t=e.itemSizeGetter;return"uniform"===e.type||t}},{key:"getStartAndEnd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.threshold,t=this.getScrollPosition(),n=Math.max(0,t-e),r=t+this.props.scrollParentViewportSizeGetter(this)+e;return this.hasDeterminateSize()&&(r=Math.min(r,this.getSpaceBefore(this.props.length))),{start:n,end:r}}},{key:"getItemSizeAndItemsPerRow",value:function(){var e=this.props,t=e.axis,n=e.useStaticSize,r=this.state,o=r.itemSize,i=r.itemsPerRow;if(n&&o&&i)return{itemSize:o,itemsPerRow:i};var a=this.items.children;if(!a.length)return{};var s=a[0],l=s[k[t]],c=Math.abs(l-o);if((isNaN(c)||c>=1)&&(o=l),!o)return{};for(var u=C[t],d=s[u],f=a[i=1];f&&f[u]===d;f=a[i])++i;return{itemSize:o,itemsPerRow:i}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(e){return this.clearSizeCache(),this.updateFrame(e)}},{key:"updateFrame",value:function(e){switch(this.updateScrollParent(),"function"!=typeof e&&(e=A),this.props.type){case"simple":return this.updateSimpleFrame(e);case"variable":return this.updateVariableFrame(e);case"uniform":return this.updateUniformFrame(e)}}},{key:"updateScrollParent",value:function(){var e=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),e!==this.scrollParent&&(e&&(e.removeEventListener("scroll",this.updateFrameAndClearCache),e.removeEventListener("mousewheel",A)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,P),this.scrollParent.addEventListener("mousewheel",A,P))}},{key:"updateSimpleFrame",value:function(e){var t=this.getStartAndEnd().end,n=this.items.children,r=0;if(n.length){var o=this.props.axis,i=n[0],a=n[n.length-1];r=this.getOffset(a)+a[k[o]]-this.getOffset(i)}if(r>t)return e();var s=this.props,l=s.pageSize,c=s.length,u=Math.min(this.state.size+l,c);this.maybeSetState({size:u},e)}},{key:"updateVariableFrame",value:function(e){this.props.itemSizeGetter||this.cacheSizes();for(var t=this.getStartAndEnd(),n=t.start,r=t.end,o=this.props,i=o.length,a=o.pageSize,s=0,l=0,c=0,u=i-1;l<u;){var d=this.getSizeOfItem(l);if(null==d||s+d>n)break;s+=d,++l}for(var f=i-l;c<f&&s<r;){var p=this.getSizeOfItem(l+c);if(null==p){c=Math.min(c+a,f);break}s+=p,++c}this.maybeSetState(z(this.props,{from:l,itemsPerRow:1,size:c}),e)}},{key:"updateUniformFrame",value:function(e){var t=this.getItemSizeAndItemsPerRow(),n=t.itemSize,r=t.itemsPerRow;if(!n||!r)return e();var o=this.getStartAndEnd(),i=o.start,a=o.end,s=z(this.props,{from:Math.floor(i/n)*r,size:(Math.ceil((a-i)/n)+1)*r,itemsPerRow:r}),l=s.from,c=s.size;return this.maybeSetState({itemsPerRow:r,from:l,itemSize:n,size:c},e)}},{key:"getSpaceBefore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t[e])return t[e];var n=this.state,r=n.itemSize,o=n.itemsPerRow;if(r)return t[e]=Math.floor(e/o)*r;for(var i=e;i>0&&null==t[--i];);for(var a=t[i]||0,s=i;s<e;++s){t[s]=a;var l=this.getSizeOfItem(s);if(null==l)break;a+=l}return t[e]=a}},{key:"cacheSizes",value:function(){for(var e=this.cache,t=this.state.from,n=this.items.children,r=k[this.props.axis],o=0,i=n.length;o<i;++o)e[t+o]=n[o][r]}},{key:"getSizeOfItem",value:function(e){var t=this.cache,n=this.items,r=this.props,o=r.axis,i=r.itemSizeGetter,a=r.itemSizeEstimator,s=r.type,l=this.state,c=l.from,u=l.itemSize,d=l.size;if(u)return u;if(i)return i(e);if(e in t)return t[e];if("simple"===s&&e>=c&&e<c+d&&n){var f=n.children[e-c];if(f)return f[k[o]]}return a?a(e,t):void 0}},{key:"scrollTo",value:function(e){null!=e&&this.setScroll(this.getSpaceBefore(e))}},{key:"scrollAround",value:function(e){var t=this.getScrollPosition(),n=this.getSpaceBefore(e),r=n-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(e),o=Math.min(r,n),i=Math.max(r,n);return t<=o?this.setScroll(o):t>i?this.setScroll(i):void 0}},{key:"getVisibleRange",value:function(){for(var e,t,n=this.state,r=n.from,o=n.size,i=this.getStartAndEnd(0),a=i.start,s=i.end,l={},c=r;c<r+o;++c){var u=this.getSpaceBefore(c,l),d=u+this.getSizeOfItem(c);null==e&&d>a&&(e=c),null!=e&&u<s&&(t=c)}return[e,t]}},{key:"renderItems",value:function(){for(var e=this,t=this.props,n=t.itemRenderer,r=t.itemsRenderer,o=this.state,i=o.from,a=o.size,s=[],l=0;l<a;++l)s.push(n(i+l,l));return r(s,(function(t){return e.items=t}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.axis,o=t.length,i=t.type,a=t.useTranslate3d,s=this.state,l=s.from,c=s.itemsPerRow,u=this.renderItems();if("simple"===i)return u;var d={position:"relative"},f={},p=Math.ceil(o/c)*c,h=this.getSpaceBefore(p,f);h&&(d[I[r]]=h,"x"===r&&(d.overflowX="hidden"));var m=this.getSpaceBefore(l,f),g="x"===r?m:0,v="y"===r?m:0,y=a?"translate3d(".concat(g,"px, ").concat(v,"px, 0)"):"translate(".concat(g,"px, ").concat(v,"px)"),b={msTransform:y,WebkitTransform:y,transform:y};return n.default.createElement("div",{style:d,ref:function(t){return e.el=t}},n.default.createElement("div",{style:b},u))}}]),r}(n.Component),_(r,"displayName","ReactList"),_(r,"propTypes",{axis:t.default.oneOf(["x","y"]),initialIndex:t.default.number,itemRenderer:t.default.func,itemSizeEstimator:t.default.func,itemSizeGetter:t.default.func,itemsRenderer:t.default.func,length:t.default.number,minSize:t.default.number,pageSize:t.default.number,scrollParentGetter:t.default.func,scrollParentViewportSizeGetter:t.default.func,threshold:t.default.number,type:t.default.oneOf(["simple","variable","uniform"]),useStaticSize:t.default.bool,useTranslate3d:t.default.bool}),_(r,"defaultProps",{axis:"y",itemRenderer:function(e,t){return n.default.createElement("div",{key:t},e)},itemsRenderer:function(e,t){return n.default.createElement("div",{ref:t},e)},length:0,minSize:1,pageSize:10,scrollParentGetter:M,scrollParentViewportSizeGetter:L,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1}),o)},void 0===(i="function"===typeof r?r.apply(t,o):r)||(e.exports=i)},52905:(e,t,n)=>{"use strict";n.d(t,{N_:()=>m});var r=n(10755),o=n(25540),i=n(59284),a=n(45264),s=n(58168),l=n(98587),c=n(69933);i.Component;i.Component;var u=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?(0,a.yJ)(e,null,null,t):e},f=function(e){return e},p=i.forwardRef;"undefined"===typeof p&&(p=f);var h=p((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=(0,l.A)(e,["innerRef","navigate","onClick"]),c=a.target,u=(0,s.A)({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==p&&t||n,i.createElement("a",u)}));var m=p((function(e,t){var n=e.component,o=void 0===n?h:n,m=e.replace,g=e.to,v=e.innerRef,y=(0,l.A)(e,["component","replace","to","innerRef"]);return i.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=e.history,r=d(u(g,e.location),e.location),l=r?n.createHref(r):"",h=(0,s.A)({},y,{href:l,navigate:function(){var t=u(g,e.location),r=(0,a.AO)(e.location)===(0,a.AO)(d(t));(m||r?n.replace:n.push)(t)}});return f!==p?h.ref=t||v:h.innerRef=v,i.createElement(o,h)}))})),g=function(e){return e},v=i.forwardRef;"undefined"===typeof v&&(v=g);v((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,a=e.activeClassName,f=void 0===a?"active":a,p=e.activeStyle,h=e.className,y=e.exact,b=e.isActive,w=e.location,_=e.sensitive,x=e.strict,E=e.style,S=e.to,k=e.innerRef,C=(0,l.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=w||e.location,a=d(u(S,n),n),l=a.pathname,O=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),N=O?(0,r.B6)(n.pathname,{path:O,exact:y,sensitive:_,strict:x}):null,T=!!(b?b(N,n):N),I="function"===typeof h?h(T):h,A="function"===typeof E?E(T):E;T&&(I=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(I,f),A=(0,s.A)({},A,p));var P=(0,s.A)({"aria-current":T&&o||null,className:I,style:A,to:a},C);return g!==v?P.ref=t||k:P.innerRef=k,i.createElement(m,P)}))}))},10755:(e,t,n)=>{"use strict";n.d(t,{B6:()=>T,Ix:()=>b,W5:()=>U,W6:()=>z,XZ:()=>y,dO:()=>M,g:()=>B,qh:()=>I,rd:()=>k,zy:()=>F});var r=n(25540),o=n(59284),i=n(13260),a=n.n(i),s=n(45264),l=n(69933),c=n(58168),u=n(13489),d=n.n(u),f=(n(67076),n(98587)),p=(n(5290),1073741823),h="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var m=o.createContext||function(e,t){var n,i,s="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}(0,r.A)(n,e);var o=n.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},o.render=function(){return this.props.children},n}(o.Component);l.childContextTypes=((n={})[s]=a().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.A)(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?p:t},o.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?p:e},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return c.contextTypes=((i={})[s]=a().object,i),{Provider:l,Consumer:c}},g=function(e){var t=m();return t.displayName=e,t},v=g("Router-History"),y=g("Router"),b=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.A)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.Component);o.Component;var w=function(e){function t(){return e.apply(this,arguments)||this}(0,r.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.Component);var _={},x=1e4,E=0;function S(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(_[e])return _[e];var t=d().compile(e);return E<x&&(_[e]=t,E++),t}(e)(t,{pretty:!0})}function k(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.createElement(y.Consumer,null,(function(e){e||(0,l.A)(!1);var r=e.history,a=e.staticContext,u=i?r.push:r.replace,d=(0,s.yJ)(t?"string"===typeof n?S(n,t.params):(0,c.A)({},n,{pathname:S(n.pathname,t.params)}):n);return a?(u(d),null):o.createElement(w,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,s.yJ)(t.to);(0,s.Fu)(n,(0,c.A)({},d,{key:n.key}))||u(d)},to:n})}))}var C={},O=1e4,N=0;function T(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=C[n]||(C[n]={});if(r[e])return r[e];var o=[],i={regexp:d()(e,o,t),keys:o};return N<O&&(r[e]=i,N++),i}(n,{end:i,strict:s,sensitive:c}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],f=l.slice(1),p=e===u;return i&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var I=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return o.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?T(n.pathname,e.props):t.match,i=(0,c.A)({},t,{location:n,match:r}),a=e.props,s=a.children,u=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===o.Children.count(e)}(s)&&(s=null),o.createElement(y.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:u?o.createElement(u,i):d?d(i):null:"function"===typeof s?s(i):null)}))},t}(o.Component);function A(e){return"/"===e.charAt(0)?e:"/"+e}function P(e,t){if(!e)return t;var n=A(e);return 0!==t.pathname.indexOf(n)?t:(0,c.A)({},t,{pathname:t.pathname.substr(n.length)})}function D(e){return"string"===typeof e?e:(0,s.AO)(e)}function R(e){return function(){(0,l.A)(!1)}}function j(){}o.Component;var M=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return o.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n,r,i=e.props.location||t.location;return o.Children.forEach(e.props.children,(function(e){if(null==r&&o.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?T(i.pathname,(0,c.A)({},e.props,{path:a})):t.match}})),r?o.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.Component);var L=o.useContext;function z(){return L(v)}function F(){return L(y).location}function B(){var e=L(y).match;return e?e.params:{}}function U(e){var t=F(),n=L(y).match;return e?T(t.pathname,e):n}},13489:(e,t,n)=>{var r=n(4786);e.exports=h,e.exports.parse=i,e.exports.compile=function(e,t){return l(i(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,s=0,l="",c=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],f=n[1],p=n.index;if(l+=e.slice(s,p),s=p+d.length,f)l+=f[1];else{var h=e[s],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],w=n[7];l&&(r.push(l),l="");var _=null!=m&&null!=h&&h!==m,x="+"===b||"*"===b,E="?"===b||"*"===b,S=m||c,k=v||y,C=m||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:g||i++,prefix:m||"",delimiter:S,optional:E,repeat:x,partial:_,asterisk:!!w,pattern:k?u(k):w?".*":a(S,C)})}}return s<e.length&&(l+=e.substr(s)),l&&r.push(l),r}function a(e,t){return!t||t.indexOf(e)>-1?"[^"+c(e)+"]+?":c(t)+"|(?:(?!"+c(t)+")[^"+c(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"===typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",f(t)));return function(t,o){for(var i="",a=t||{},l=(o||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,f=a[u.name];if(null==f){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=c(l);else{var u=c(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+u+p+")*"),a+=p=l.optional?l.partial?u+"("+p+")?":"(?:"+u+"("+p+"))?":u+"("+p+")"}}var h=c(n.delimiter||"/"),m=a.slice(-h.length)===h;return o||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+h+"|$)",d(new RegExp("^"+a,f(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(h(e[o],t,n).source);return d(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return p(i(e,n),t,n)}(e,t,n)}},29416:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function x(e){return _(e)===d}},67076:(e,t,n)=>{"use strict";n(29416)},72630:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(58168),o=n(98587),i=n(25540);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(59284),l=n(48681);const c=!1;var u=n(10641),d=function(e){return e.scrollTop},f="unmounted",p="exited",h="entering",m="entered",g="exiting",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=p,r.appearStatus=h):o=m:o=t.unmountOnExit||t.mountOnEnter?f:p,r.state={status:o},r.nextCallback=null,r}(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==m&&(t=h):n!==h&&n!==m||(t=g)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this);n&&d(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[l.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:m},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:h},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:m},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:g},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,o.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(u.A.Provider,{value:null},"function"===typeof n?n(e,r):s.cloneElement(s.Children.only(n),r))},t}(s.Component);function y(){}v.contextType=u.A,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},v.UNMOUNTED=f,v.EXITED=p,v.ENTERING=h,v.ENTERED=m,v.EXITING=g;const b=v;var w=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},_=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,i.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&d(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&w(e,r),o&&w(e,o),i&&w(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,o.A)(e,["classNames"]));return s.createElement(b,(0,r.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);_.defaultProps={classNames:""},_.propTypes={};const x=_},10641:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(59284).createContext(null)},67124:(e,t,n)=>{"use strict";var r=n(59284),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.jsx=c,t.jsxs=c},50943:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var _=Array.isArray,x=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:E.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function N(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+N(l,0):i,_(a)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),T(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",_(e))for(var c=0;c<e.length;c++){var u=i+N(s=e[c],c);l+=T(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,o,u=i+N(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function I(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},D={transition:null},R={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:D,ReactCurrentOwner:E};function j(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=j,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=E.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},59284:(e,t,n)=>{"use strict";e.exports=n(50943)},60712:(e,t,n)=>{"use strict";e.exports=n(67124)},49526:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LOCATION_POP="REDUX-LOCATION-POP-ACTION",t.LOCATION_PUSH="REDUX-LOCATION-PUSH-ACTION",t.OBJECT_KEY_DELIMITER="-"},57467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.createReduxLocationActions=function(e,t,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.stateToParams;e[i.RLSCONFIG]&&e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS]&&Object.keys(e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS]).forEach((function(t){(0,i.overrideAccessors)(t,e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS][t])}));var u={};return{locationMiddleware:function(t){return function(r){return function(o){var a=t.getState(),s=r(o),l=t.getState(),d=n.location,f=d.pathname!==u.pathname;if(l!==a||f){u=d;var p=c(e,l,d),h=p.shouldPush,m=p.location;(0,i.isEqual)(m,d)||(h&&!f?n.push(m):n.replace(m))}return s}}},reducersWithLocation:function(n,i){var s=function(n,i){var s=i.type,l=i.payload;if(s!==o.LOCATION_POP||!l)return n;var c=r({},l,{query:(0,a.parseQuery)(e,l)});return t(n,c)}(l(n,i),i);return s!==n?s:n}}};var o=n(49526),i=n(93650),a=n(93694),s=n(92189)},93650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.paramDecoder=t.OVERWRITE_ACCESSORS=t.RLSCONFIG=void 0,t.setParamEncoder=function(e){c=e},t.setParamDecoder=function(e){t.paramDecoder=u=e},t.overrideAccessors=function(e,t){l[e]=t},t.get=function(){return l.get.apply(l,arguments)},t.set=function(){return l.set.apply(l,arguments)},t.isEqual=function(){return l.isEqual.apply(l,arguments)},t.getMatchingDeclaredPath=d,t.createObjectFromConfig=function(e,t){if(!e)return;var n=d(e,t);return e.global?Object.assign({},e.global,e[n]||{}):e[n]},t.getPath=function(){var e=window.location.href,t=e.indexOf("#")+1;if(t&&0===e.substring(t).indexOf("/"))return e.substring(t);return window.location.pathname+window.location.search+window.location.hash},t.createParamsString=function(e){var t=Object.keys(e).reduce((function(t,n){var r=n.toString(),o=e[n];if(function(e){return"undefined"===typeof e||null===e}(o)||Array.isArray(o)&&!o.length)return t;var i=e[n].toString();return[].concat(s(t),[c(r)+"="+c(i)])}),[]);return t.length?"?"+t.join("&"):""},t.parseParams=function(e,t){return e&&e.split("&").reduce((function(e,n){"?"===n[0]&&(n=n.substr(1));var r=t?t(n):n.split("=");return e[u(r[0])]=u(r[1])||"",e}),{})||{}};var r=a(n(87924)),o=a(n(62060)),i=a(n(38896));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.RLSCONFIG="RLSCONFIG",t.OVERWRITE_ACCESSORS="overwrite-accessors";var l={get:r.default,set:i.default,isEqual:o.default},c=encodeURIComponent,u=t.paramDecoder=decodeURIComponent;function d(e,t){var n=t.pathname.split("/");return Object.keys(e).filter((function(e){var t=[].concat(s(n)),r=e.split("/"),o=[].concat(s(r)),i=0;return r.forEach((function(e,n){"*"===e&&(t.splice(n-i,1),o.splice(n-i,1),i++)})),t.join("/")===o.join("/")}))[0]}},19859:(e,t,n)=>{"use strict";var r=n(57467);Object.defineProperty(t,"zx",{enumerable:!0,get:function(){return r.createReduxLocationActions}});var o=n(56029);Object.defineProperty(t,"BL",{enumerable:!0,get:function(){return o.listenForHistoryChange}});var i=n(93650)},56029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listenForHistoryChange=function(e,t){var n=function(e){return{type:r.LOCATION_POP,payload:e}};t.listen((function(){t&&t.action&&"POP"===t.action&&e.dispatch(n(t.location))})),t.listen((function(){t&&t.action&&"PUSH"===t.action&&e.dispatch(function(e){return{type:r.LOCATION_PUSH,payload:e}}(t.location))})),e.dispatch(n(t.location))};var r=n(49526)},93694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQuery=function(e,t){var n=(0,r.createObjectFromConfig)(e,t),i=e[r.RLSCONFIG]&&e[r.RLSCONFIG].queryParser,a=(0,r.parseParams)(t.search,i);if(!n)return t.search;return Object.keys(n).reduce((function(e,t){var i=n[t],s=i.stateKey,l=i.options,c=void 0===l?{}:l,u=i.initialState,d=i.type,f=a[t],p=void 0;return"undefined"===typeof f||null===f?((0,r.set)(e,s,u),e):(p=c.parse?c.parse(f):d?o.typeHandles[d].parse(f,c):f,(0,r.set)(e,s,p),e)}),{})};var r=n(93650),o=n(86540)},92189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.stateToParams=function(e,t,n){var s=(0,i.createObjectFromConfig)(e,n),l=e[i.RLSCONFIG]&&e[i.RLSCONFIG].queryParser,c=(0,i.parseParams)(n.search,l);if(!s)return{location:o({},n)};var u=!1,d=Object.keys(s).reduce((function(e,n){var o=s[n],l=o.stateKey,d=o.options,f=void 0===d?{}:d,p=o.initialState,h=o.type,m=(0,i.get)(t,l),g=void 0;if("date"===h?g=m.toISOString().substring(0,10)===(p&&p.toISOString().substring(0,10)):(m&&"object"===("undefined"===typeof m?"undefined":r(m))&&!Object.keys(m).length&&(m=void 0),g="object"===("undefined"===typeof m?"undefined":r(m))?(0,i.isEqual)(p,m):m===p),("undefined"===typeof m&&!f.serialize||g)&&!f.setAsEmptyItem)return e;if(f.serialize){var v=f.serialize(m);if("undefined"===typeof v)return e;m=v}else h&&(m=a.typeHandles[h].serialize(m,f));return e[n]=m,m!==c[n]&&f.shouldPush&&(u=!0),e}),{});return{location:o({},n,{search:(0,i.createParamsString)(d)}),shouldPush:u}};var i=n(93650),a=n(86540)},86540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeHandles=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(49526),i=n(93650);function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.typeHandles={number:{serialize:function(e,t){return e.toString()},parse:function(e,t){return parseFloat(e)}},date:{serialize:function(e,t){return e.toISOString().substring(0,10)},parse:function(e,t){return new Date(e)}},array:{serialize:function(e,t){return(t.keepOrder?[].concat(a(e)):[].concat(a(e)).sort()).join(t.delimiter||o.OBJECT_KEY_DELIMITER)},parse:function(e,t){return(0,i.paramDecoder)(e).split(t.delimiter||o.OBJECT_KEY_DELIMITER)}},bool:{serialize:function(e,t){return e.toString()},parse:function(e,t){return"true"===e}},object:{serialize:function(e,t){return t.isFlags?Object.keys(e).filter((function(t,n){return e[t]})).join(o.OBJECT_KEY_DELIMITER):Object.keys(e).sort().map((function(t,n){return""+t+o.OBJECT_KEY_DELIMITER+e[t]}))},parse:function(e,t){return t.isFlags?e.split(t.delimiter||o.OBJECT_KEY_DELIMITER).reduce((function(e,t){return""===t||(e[t]=!0),e}),{}):(0,i.paramDecoder)(e).split(",").reduce((function(e,t){var n=t.split(o.OBJECT_KEY_DELIMITER),i=r(n,2),a=i[0],s=i[1];return e[a]=s,e}),{})}}}},91407:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function _(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,D(x);else{var t=r(u);null!==t&&R(_,t.startTime-e)}}function x(e,n){m=!1,g&&(g=!1,y(C),C=-1),h=!0;var i=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!T());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&R(_,d.startTime-n),l=!1}return l}finally{f=null,p=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,k=null,C=-1,O=5,N=-1;function T(){return!(t.unstable_now()-N<O)}function I(){if(null!==k){var e=t.unstable_now();N=e;var n=!0;try{n=k(!0,e)}finally{n?E():(S=!1,k=null)}}else S=!1}if("function"===typeof b)E=function(){b(I)};else if("undefined"!==typeof MessageChannel){var A=new MessageChannel,P=A.port2;A.port1.onmessage=I,E=function(){P.postMessage(null)}}else E=function(){v(I,0)};function D(e){k=e,S||(S=!0,E())}function R(e,n){C=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,D(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(y(C),C=-1):g=!0,R(_,i-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,D(x))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},99158:(e,t,n)=>{"use strict";e.exports=n(91407)},46985:(e,t,n)=>{"use strict";var r=n(94701),o=n(77089),i=n(67032)(),a=n(84363),s=n(39955),l=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},37737:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},3584:(e,t,n)=>{"use strict";var r=n(94701),o=n(50803),i=n(69123),a=n(39955),s=r("%WeakMap%",!0),l=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return c(e,r)}else if(l){if(t)return f(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return d(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,o){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),u(e,r,o)):l?(t||(t=new l),p(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},83046:(e,t,n)=>{"use strict";n.d(t,{AO:()=>S,Kr:()=>x,nq:()=>E,tp:()=>C,yT:()=>f});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],o=r.join(","),i="undefined"===typeof Element,a=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!i&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var o=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&a.call(e,o)&&r.unshift(e),r=r.filter(n)},u=function e(t,n,r){for(var i=[],s=Array.from(t);s.length;){var c=s.shift();if(!l(c,!1))if("SLOT"===c.tagName){var u=c.assignedElements(),d=e(u.length?u:c.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:c,candidates:d})}else{a.call(c,o)&&r.filter(c)&&(n||!t.includes(c))&&i.push(c);var f=c.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(c),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(f&&p){var h=e(!0===f?c.children:f.children,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:c,candidates:h})}else s.unshift.apply(s,c.children)}}return i},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},m=function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},g=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},v=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"===typeof r){for(var i=e;e;){var l=e.parentElement,c=s(e);if(l&&!l.shadowRoot&&!0===r(l))return g(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=i}if(function(e){var t,n,r,o,i=e&&s(e),a=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!==e&&void 0!==e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&a;){var c,u,d;l=!(null===(u=a=null===(c=i=s(a))||void 0===c?void 0:c.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},y=function(e,t){return!(t.disabled||l(t)||function(e){return h(e)&&"hidden"===e.type}(t)||v(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},b=function(e,t){return!(m(t)||f(t)<0||!y(e,t))},w=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},_=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),r.sort(p).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},x=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:b.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:w}):c(e,t.includeContainer,b.bind(null,t)),_(n)},E=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,y.bind(null,t))},S=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,o)&&b(t,e)},k=r.concat("iframe").join(","),C=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,k)&&y(t,e)}},69933:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=!0,o="Invariant failed";function i(e,t){if(!e){if(r)throw new Error(o);var n="function"===typeof t?t():t;throw new Error(n?o+": "+n:o)}}},33410:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},67087:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;const n=e instanceof Array?e[0]:e;return null==n||t||""!==n?n:null}function o(e){const t=r(e);if(null==t)return t;if(""===t)return null;return+t}function i(e){const t=r(e,!0);return null==t?t:String(t)}n.d(t,{NumberParam:()=>s,QueryParamProvider:()=>C,StringParam:()=>a,useQueryParam:()=>D,useQueryParams:()=>A});const a={encode:function(e){return null==e?e:String(e)},decode:i},s={encode:function(e){return null==e?e:String(e)},decode:o};'{}[],":'.split("").map((e=>[e,encodeURIComponent(e)]));function l(e,t){const n={},r=Object.keys(t);for(const o of r){const r=t[o];e[o]?n[o]=e[o].encode(t[o]):n[o]=null==r?r:String(r)}return n}var c=n(59284);const u=new class{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,t,n,r){this.paramsMap.set(e,{stringified:t,decoded:n,decode:r})}has(e,t,n){if(!this.paramsMap.has(e))return!1;const r=this.paramsMap.get(e);return!!r&&(r.stringified===t&&(null==n||r.decode===n))}get(e){var t;if(this.paramsMap.has(e))return null==(t=this.paramsMap.get(e))?void 0:t.decoded}registerParams(e){for(const t of e){const e=this.registeredParams.get(t)||0;this.registeredParams.set(t,e+1)}}unregisterParams(e){for(const t of e){const e=(this.registeredParams.get(t)||0)-1;e<=0?(this.registeredParams.delete(t),this.paramsMap.has(t)&&this.paramsMap.delete(t)):this.registeredParams.set(t,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}};function d(e,t,n,r){var o;if(!n||!t.length)return e;let i={...e},a=!1;for(const s of t)Object.prototype.hasOwnProperty.call(i,s)||(i[s]=null!=(o=n[s])?o:r,a=!0);return a?i:e}const f=Object.prototype.hasOwnProperty;function p(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function h(e,t,n){var r,o;if(p(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let s=0;s<i.length;s++){const a=null!=(o=null==(r=null==n?void 0:n[i[s]])?void 0:r.equals)?o:p;if(!f.call(t,i[s])||!a(e[i[s]],t[i[s]]))return!1}return!0}function m(e,t,n){const r={},o=Object.keys(t);for(const i of o){const o=t[i],a=e[i];let s;if(n.has(i,a,o.decode))s=n.get(i);else{if(s=o.decode(a),o.equals&&n.has(i,a)){const e=n.get(i);o.equals(s,e)&&(s=e)}void 0!==s&&n.set(i,a,s,o.decode)}void 0===s&&void 0!==o.default&&(s=o.default),r[i]=s}return r}function g(){let e;return function(t,n,r){const o=m(t,n,r);return null!=e&&h(e,o)?e:(e=o,o)}}let v,y,b,w={};const _=(e,t,n)=>{if(v===t&&b===e&&y===n)return w;v=t,b=e;const r=e(null!=t?t:"");y=n;const o=function(e){if(e)return Object.fromEntries(e.split("\n").map((e=>e.split("\0"))))}(n);for(let[i,a]of Object.entries(r)){(null==o?void 0:o[i])&&(delete r[i],i=o[i],r[i]=a);const e=w[i];h(a,e)&&(r[i]=e)}return w=r,r};function x(e,t){null==t&&(t={});const n={...e,...t};return t.params&&e.params&&(n.params={...e.params,...t.params}),n}const E={adapter:{},options:{searchStringToObject:function(e){const t=new URLSearchParams(e),n={};for(let[r,o]of t)Object.prototype.hasOwnProperty.call(n,r)?Array.isArray(n[r])?n[r].push(o):n[r]=[n[r],o]:n[r]=o;return n},objectToSearchString:function(e){const t=new URLSearchParams,n=Object.entries(e);for(const[r,o]of n)if(void 0!==o&&null!==o)if(Array.isArray(o))for(const e of o)t.append(r,null!=e?e:"");else t.append(r,o);return t.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},S=c.createContext(E);function k({children:e,adapter:t,options:n}){const{adapter:r,options:o}=c.useContext(S),i=c.useMemo((()=>({adapter:null!=t?t:r,options:x(o,n)})),[t,n,r,o]);return c.createElement(S.Provider,{value:i},e)}function C({children:e,adapter:t,options:n}){const r=t;return r?c.createElement(r,null,(t=>c.createElement(k,{adapter:t,options:n},e))):c.createElement(k,{options:n},e)}function O({changes:e,updateType:t,currentSearchString:n,paramConfigMap:r,options:o}){const{searchStringToObject:i,objectToSearchString:a}=o;let s;null==t&&(t=o.updateType);const c=_(i,n),f=d(r,Object.keys(e),o.params);let p,h;if("function"===typeof e){p=e(m(c,f,u))}else p=e;return s=l(f,p),o.removeDefaultsFromUrl&&function(e,t){var n;for(const r in e)void 0!==(null==(n=t[r])?void 0:n.default)&&void 0!==e[r]&&t[r].encode(t[r].default)===e[r]&&(e[r]=void 0)}(s,f),s=function(e,t){var n;let r={};for(const o in e)null!=(null==(n=t[o])?void 0:n.urlName)?r[t[o].urlName]=e[o]:r[o]=e[o];return r}(s,f),h=a("push"===t||"replace"===t?s:{...c,...s}),(null==h?void 0:h.length)&&"?"!==h[0]&&(h=`?${h}`),null!=h?h:""}const N=e=>e(),T=e=>setTimeout((()=>e()),0),I=[];function A(e,t){const{adapter:n,options:r}=function(){const e=c.useContext(S);if(void 0===e||e===E)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}(),[o]=(0,c.useState)(g),{paramConfigMap:i,options:s}=function(e,t){let n,r;void 0===e?(n={},r=t):Array.isArray(e)?(n=Object.fromEntries(e.map((e=>[e,"inherit"]))),r=t):(n=e,r=t);return{paramConfigMap:n,options:r}}(e,t),l=(0,c.useMemo)((()=>x(r,s)),[r,s]);let f=function(e,t){var n,r,o;const i={};let s=!1;const l=Object.keys(e);let c=l;if(t.includeKnownParams||!1!==t.includeKnownParams&&0===l.length){const e=Object.keys(null!=(n=t.params)?n:{});c.push(...e)}for(const u of c){const n=e[u];null==n||"object"!==typeof n?(s=!0,i[u]=null!=(o=null==(r=t.params)?void 0:r[u])?o:a):i[u]=n}return s?i:e}(i,l);const p=_(l.searchStringToObject,n.location.search,function(e){let t;for(const n in e)if(e[n].urlName){const r=`${e[n].urlName}\0${n}`;t?t.push(r):t=[r]}return t?t.join("\n"):void 0}(f));l.includeAllParams&&(f=d(f,Object.keys(p),l.params,a));const h=o(p,f,u),m=Object.keys(f).join("\0");(0,c.useEffect)((()=>{const e=m.split("\0");return u.registerParams(e),()=>{u.unregisterParams(e)}}),[m]);const v={adapter:n,paramConfigMap:f,options:l},y=(0,c.useRef)(v);null==y.current&&(y.current=v),(0,c.useEffect)((()=>{y.current.adapter=n,y.current.paramConfigMap=f,y.current.options=l}),[n,f,l]);const[b]=(0,c.useState)((()=>(e,t)=>{const{adapter:n,paramConfigMap:r,options:o}=y.current;null==t&&(t=o.updateType),function(e,{immediate:t}={}){I.push(e);let n=t?N:T;1===I.length&&n((()=>{const t=I.slice();I.length=0;const n=t[0].currentSearchString;let r;for(let e=0;e<t.length;++e)r=O(0===e?t[e]:{...t[e],currentSearchString:r});e.options.skipUpdateWhenNoChange&&r===n||function({searchString:e,adapter:t,navigate:n,updateType:r}){const o={...t.location,search:e};n&&("string"===typeof r&&r.startsWith("replace")?t.replace(o):t.push(o))}({searchString:null!=r?r:"",adapter:t[t.length-1].adapter,navigate:!0,updateType:t[t.length-1].updateType})}))}({changes:e,updateType:t,currentSearchString:n.location.search,paramConfigMap:r,options:o,adapter:n},{immediate:!o.enableBatching})}));return[h,b]}var P=A;const D=(e,t,n)=>{const r=(0,c.useMemo)((()=>({[e]:null!=t?t:"inherit"})),[e,t]),[o,i]=P(r,n);return[o[e],(0,c.useCallback)(((t,n)=>i("function"===typeof t?n=>{const r=t(n[e]);return{[e]:r}}:{[e]:t},n)),[e,i])]}},76714:(e,t,n)=>{"use strict";var r=n(59284);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?t:(i=e,a=n)}var i,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,u]);var p=i(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},88730:(e,t,n)=>{"use strict";e.exports=n(76714)},42634:()=>{},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},25540:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>o})},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},44992:(e,t,n)=>{"use strict";n.d(t,{RE:()=>s,hT:()=>I,l0:()=>M,m7:()=>Z});var r=n(96906),o=n(97091),i=n(18214),a=n(53850),s=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(s||{});var l=e=>[].concat(...e);var c=r.Qd;function u(e,t){if(e===t||!(c(e)&&c(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const a of n)i[a]=u(e[a],t[a]),o&&(o=e[a]===i[a]);return o?e:i}var d=class{constructor(e,t=void 0){this.value=e,this.meta=t}};var f=(0,o.VP)("__rtkq/focused"),p=(0,o.VP)("__rtkq/unfocused"),h=(0,o.VP)("__rtkq/online"),m=(0,o.VP)("__rtkq/offline");function g(e){return"query"===e.type}function v(e,t,n,r,o,i){return"function"===typeof e?e(t,n,r,o).map(y).map(i):Array.isArray(e)?e.map(y).map(i):[]}function y(e){return"string"===typeof e?{type:e}:e}function b(e){return null!=e}function w(e){let t=0;for(const n in e)t++;return t}var _=Symbol("forceQueryFn"),x=e=>"function"===typeof e[_];function E(e){return e}function S(e,t,n,r){return v(n[e.meta.arg.endpointName][t],(0,o.sf)(e)?e.payload:void 0,(0,o.WA)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function k(e,t,n){const r=e[t];r&&n(r)}function C(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function O(e,t,n){const r=e[C(t)];r&&n(r)}var N={};function T({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:a,apiUid:s,extractRehydrationInfo:l,hasRehydrationInfo:c},assertTagType:d,config:g}){const v=(0,o.VP)(`${e}/resetApiState`),y=(0,o.Z0)({name:`${e}/queries`,initialState:N,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:(0,o.aA)()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){k(e,t,(e=>{e.data=(0,i.$i)(e.data,n.concat())}))},prepare:(0,o.aA)()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{const r=x(n);e[n.queryCacheKey]??={status:"uninitialized",endpointName:n.endpointName},k(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=r&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{k(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!x(t.arg))return;const{merge:r}=a[t.arg.endpointName];if(e.status="fulfilled",r)if(void 0!==e.data){const{fulfilledTimeStamp:o,arg:a,baseQueryMeta:s,requestId:l}=t;let c=(0,i.jM)(e.data,(e=>r(e,n,{arg:a.originalArgs,baseQueryMeta:s,fulfilledTimeStamp:o,requestId:l})));e.data=c}else e.data=n;else e.data=a[t.arg.endpointName].structuralSharing??1?u((0,i.Qx)(e.data)?(0,i.c2)(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:o,payload:i})=>{k(e,n.queryCacheKey,(e=>{if(t);else{if(e.requestId!==r)return;e.status="rejected",e.error=i??o}}))})).addMatcher(c,((e,t)=>{const{queries:n}=l(t);for(const[r,o]of Object.entries(n))"fulfilled"!==o?.status&&"rejected"!==o?.status||(e[r]=o)}))}}),b=(0,o.Z0)({name:`${e}/mutations`,initialState:N,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=C(t);n in e&&delete e[n]},prepare:(0,o.aA)()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[C(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&O(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&O(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(c,((e,t)=>{const{mutations:n}=l(t);for(const[r,o]of Object.entries(n))"fulfilled"!==o?.status&&"rejected"!==o?.status||r===o?.requestId||(e[r]=o)}))}}),w=(0,o.Z0)({name:`${e}/invalidation`,initialState:N,reducers:{updateProvidedBy:{reducer(e,t){const{queryCacheKey:n,providedTags:r}=t.payload;for(const o of Object.values(e))for(const e of Object.values(o)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}for(const{type:o,id:i}of r){const t=(e[o]??={})[i||"__internal_without_id"]??=[];t.includes(n)||t.push(n)}},prepare:(0,o.aA)()}},extraReducers(e){e.addCase(y.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(c,((e,t)=>{const{provided:n}=l(t);for(const[r,o]of Object.entries(n))for(const[t,n]of Object.entries(o)){const o=(e[r]??={})[t||"__internal_without_id"]??=[];for(const e of n){o.includes(e)||o.push(e)}}})).addMatcher((0,o.i0)((0,o.sf)(t),(0,o.WA)(t)),((e,t)=>{const n=S(t,"providesTags",a,d),{queryCacheKey:r}=t.meta.arg;w.caseReducers.updateProvidedBy(e,w.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))}))}}),_=(0,o.Z0)({name:`${e}/subscriptions`,initialState:N,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),E=(0,o.Z0)({name:`${e}/internalSubscriptions`,initialState:N,reducers:{subscriptionsUpdated:{reducer:(e,t)=>(0,i.$i)(e,t.payload),prepare:(0,o.aA)()}}}),T=(0,o.Z0)({name:`${e}/config`,initialState:{online:"undefined"===typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"===typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...g},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&s===t||"conflict"}},extraReducers:e=>{e.addCase(h,(e=>{e.online=!0})).addCase(m,(e=>{e.online=!1})).addCase(f,(e=>{e.focused=!0})).addCase(p,(e=>{e.focused=!1})).addMatcher(c,(e=>({...e})))}}),I=(0,r.HY)({queries:y.reducer,mutations:b.reducer,provided:w.reducer,subscriptions:E.reducer,config:T.reducer});return{reducer:(e,t)=>I(v.match(t)?void 0:e,t),actions:{...T.actions,...y.actions,..._.actions,...E.actions,...b.actions,...w.actions,resetApiState:v}}}var I=Symbol.for("RTKQ/skipToken"),A={status:"uninitialized"},P=(0,i.jM)(A,(()=>{})),D=(0,i.jM)(A,(()=>{}));var R=WeakMap?new WeakMap:void 0,j=({endpointName:e,queryArgs:t})=>{let n="";const o=R?.get(t);if("string"===typeof o)n=o;else{const e=JSON.stringify(t,((e,t)=>(0,r.Qd)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));(0,r.Qd)(t)&&R?.set(t,e),n=e}return`${e}(${n})`};function M(...e){return function(t){const n=(0,a.X4)((e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"}))),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=j;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"===typeof n?n:j({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},i={endpointDefinitions:{},batch(e){e()},apiUid:(0,o.Ak)(),extractRehydrationInfo:n,hasRehydrationInfo:(0,a.X4)((e=>null!=n(e)))},s={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in i.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error((0,o.gk)(39))}else{i.endpointDefinitions[n]=r;for(const e of l)e.injectEndpoint(n,r)}return s},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const n of e)r.tagTypes.includes(n)||r.tagTypes.push(n);if(t)for(const[n,r]of Object.entries(t))"function"===typeof r?r(i.endpointDefinitions[n]):Object.assign(i.endpointDefinitions[n]||{},r);return s}},l=e.map((e=>e.init(s,r,i)));return s.injectEndpoints({endpoints:t.endpoints})}}var L=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:i})=>{const{removeQueryResult:a,unsubscribeQueryResult:s}=t.internalActions,l=(0,o.i0)(s.match,n.fulfilled,n.rejected);function c(e){const t=i.currentSubscriptions[e];return!!t&&!function(e){for(let t in e)return!1;return!0}(t)}const u={};function d(e,t,n,o){const i=r.endpointDefinitions[t],s=i?.keepUnusedDataFor??o.keepUnusedDataFor;if(s===1/0)return;const l=Math.max(0,Math.min(s,2147482.647));if(!c(e)){const t=u[e];t&&clearTimeout(t),u[e]=setTimeout((()=>{c(e)||n.dispatch(a({queryCacheKey:e})),delete u[e]}),1e3*l)}}return(n,o,i)=>{if(l(n)){const t=o.getState()[e],{queryCacheKey:r}=s.match(n)?n.payload:n.meta.arg;d(r,t.queries[r]?.endpointName,o,t.config)}if(t.util.resetApiState.match(n))for(const[e,t]of Object.entries(u))t&&clearTimeout(t),delete u[e];if(r.hasRehydrationInfo(n)){const t=o.getState()[e],{queries:i}=r.extractRehydrationInfo(n);for(const[e,n]of Object.entries(i))d(e,n?.endpointName,o,t.config)}}},z=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:i,api:a,assertTagType:s,refetchQuery:l,internalState:c})=>{const{removeQueryResult:u}=a.internalActions,d=(0,o.i0)((0,o.sf)(r),(0,o.WA)(r)),f=(0,o.i0)((0,o.sf)(r,i),(0,o.TK)(r,i));let p=[];function h(n,r){const o=r.getState(),i=o[e];if(p.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){for(const t in e.queries)if("pending"===e.queries[t]?.status)return!0;for(const t in e.mutations)if("pending"===e.mutations[t]?.status)return!0;return!1}(i))return;const s=p;if(p=[],0===s.length)return;const d=a.util.selectInvalidatedBy(o,s);t.batch((()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===w(n)?r.dispatch(u({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(l(e,t)))}}))}return(e,t)=>{d(e)?h(S(e,"invalidatesTags",n,s),t):f(e)?h([],t):a.util.invalidateTags.match(e)&&h(v(e.payload,void 0,void 0,void 0,void 0,s),t)}},F=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={};function a({queryCacheKey:t},n){const s=n.getState()[e],l=s.queries[t],u=o.currentSubscriptions[t];if(!l||"uninitialized"===l.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=c(u);if(!Number.isFinite(d))return;const p=i[t];p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+d;i[t]={nextPollTimestamp:h,pollingInterval:d,timeout:setTimeout((()=>{!s.config.focused&&f||n.dispatch(r(l,t)),a({queryCacheKey:t},n)}),d)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=c(s);if(!Number.isFinite(u))return void l(t);const d=i[t],f=Date.now()+u;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function l(e){const t=i[e];t?.timeout&&clearTimeout(t.timeout),delete i[e]}function c(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(i))l(e)}()}},B=new Error("Promise never resolved before cacheEntryRemoved."),U=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:i,internalState:a})=>{const s=(0,o.$S)(r),l=(0,o.$S)(i),c=(0,o.sf)(r,i),u={};function d(t,r,o,i,a){const s=n.endpointDefinitions[t],l=s?.onCacheEntryAdded;if(!l)return;let c={};const d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw B}))]);f.catch((()=>{})),u[o]=c;const p=e.endpoints[t].select("query"===s.type?r:o),h=i.dispatch(((e,t,n)=>n)),m={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:h,updateCachedData:"query"===s.type?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},g=l(r,m);Promise.resolve(g).catch((e=>{if(e!==B)throw e}))}return(n,o,a)=>{const f=function(t){if(s(t))return t.meta.arg.queryCacheKey;if(l(t))return t.meta.arg.fixedCacheKey??t.meta.requestId;return e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?C(t.payload):""}(n);if(r.pending.match(n)){const e=a[t].queries[f],r=o.getState()[t].queries[f];!e&&r&&d(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,o,n.meta.requestId)}else if(i.pending.match(n)){o.getState()[t].mutations[f]&&d(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,o,n.meta.requestId)}else if(c(n)){const e=u[f];e?.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=u[f];e&&(delete u[f],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(u))delete u[e],t.cacheEntryRemoved()}},q=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const i=(0,o.mm)(n,r),a=(0,o.TK)(n,r),s=(0,o.sf)(n,r),l={};return(n,r)=>{if(i(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,s=t.endpointDefinitions[i],c=s?.onQueryStarted;if(c){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),l[o]=t;const u=e.endpoints[i].select("query"===s.type?a:o),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>u(r.getState()),requestId:o,extra:d,updateCachedData:"query"===s.type?t=>r.dispatch(e.util.updateQueryData(i,a,t)):void 0,queryFulfilled:n};c(a,f)}}else if(s(n)){const{requestId:e,baseQueryMeta:t}=n.meta;l[e]?.resolve({data:n.payload,meta:t}),delete l[e]}else if(a(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;l[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete l[e]}}},$=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},H=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,a=null;const{updateSubscriptionOptions:s,unsubscribeQueryResult:l}=e.internalActions,c=()=>n.currentSubscriptions,u={getSubscriptions:c,getSubscriptionCount:e=>w(c()[e]??{}),isRequestSubscribed:(e,t)=>{const n=c();return!!n?.[e]?.[t]}};return(c,d)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return o=n.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,u];const f=((n,r)=>{if(s.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return n?.[e]?.[t]&&(n[e][t]=o),!0}if(l.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,o=n[e.queryCacheKey]??={};return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let o=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;o||=!!e[t],delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:i}}=r;if(e&&t.subscribe){const e=n[t.queryCacheKey]??={};e[i]=t.subscriptionOptions??e[i]??{},o=!0}}return o})(n.currentSubscriptions,c);let p=!0;if(f){a||(a=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=(0,i.vI)(o,(()=>t));d.next(e.internalActions.subscriptionsUpdated(r)),o=t,a=null}),500));const s="string"==typeof c.type&&!!c.type.startsWith(r),l=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;p=!s&&!l}return[p,!1]}};function W(e){const{reducerPath:t,queryThunk:n,api:i,context:a}=e,{apiUid:s}=a,l={invalidateTags:(0,o.VP)(`${t}/invalidateTags`)},c=e=>e.type.startsWith(`${t}/`),u=[$,L,z,F,U,q];return{middleware:n=>{let o=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:d,isThisApiSliceAction:c},p=u.map((e=>e(l))),m=H(l),g=(({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const s=n.getState()[e],l=s.queries,c=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=l[e],o=c[e];o&&t&&((Object.values(o).some((e=>!0===e[a]))||Object.values(o).every((e=>void 0===e[a]))&&s.config[a])&&(0===w(o)?n.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{f.match(e)&&a(t,"refetchOnFocus"),h.match(e)&&a(t,"refetchOnReconnect")}})(l);return e=>l=>{if(!(0,r.ve)(l))return e(l);o||(o=!0,n.dispatch(i.internalActions.middlewareRegistered(s)));const u={...n,next:e},d=n.getState(),[f,h]=m(l,u,d);let v;if(v=f?e(l):h,n.getState()[t]&&(g(l,u,d),c(l)||a.hasRehydrationInfo(l)))for(let e of p)e(l,u,d);return v}},actions:l};function d(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function V(e,...t){return Object.assign(e,...t)}var G=Symbol(),Z=({createSelector:e=a.Mz}={})=>({name:G,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:s,keepUnusedDataFor:c,refetchOnMountOrArgChange:u,refetchOnFocus:S,refetchOnReconnect:k,invalidationBehavior:O},N){(0,i.YT)();const A=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:h,onOffline:m,onFocus:f,onFocusLost:p},util:{}});const{queryThunk:R,mutationThunk:j,patchQueryData:M,updateQueryData:L,upsertQueryData:z,prefetch:F,buildMatchThunkActions:B}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:s}){const l=async(e,{signal:r,abort:i,rejectWithValue:a,fulfillWithValue:s,dispatch:l,getState:u,extra:f})=>{const p=n[e.endpointName];try{let n,a=E;const h={signal:r,abort:i,dispatch:l,getState:u,extra:f,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?c(e,u()):void 0},m="query"===e.type?e[_]:void 0;if(m?n=m():p.query?(n=await t(p.query(e.originalArgs),h,p.extraOptions),p.transformResponse&&(a=p.transformResponse)):n=await p.queryFn(e.originalArgs,h,p.extraOptions,(e=>t(e,h,p.extraOptions))),n.error)throw new d(n.error,n.meta);return s(await a(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[o.cN]:!0})}catch(h){let t=h;if(t instanceof d){let n=E;p.query&&p.transformErrorResponse&&(n=p.transformErrorResponse);try{return a(await n(t.value,t.meta,e.originalArgs),{baseQueryMeta:t.meta,[o.cN]:!0})}catch(m){t=m}}throw console.error(t),t}};function c(t,n){const r=n[e]?.queries?.[t.queryCacheKey],o=n[e]?.config.refetchOnMountOrArgChange,i=r?.fulfilledTimeStamp,a=t.forceRefetch??(t.subscribe&&o);return!!a&&(!0===a||(Number(new Date)-Number(i))/1e3>=a)}const u=(0,o.zD)(`${e}/executeQuery`,l,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[o.cN]:!0}),condition(t,{getState:r}){const o=r(),i=o[e]?.queries?.[t.queryCacheKey],a=i?.fulfilledTimeStamp,s=t.originalArgs,l=i?.originalArgs,u=n[t.endpointName];return!!x(t)||"pending"!==i?.status&&(!!c(t,o)||!(!g(u)||!u?.forceRefetch?.({currentArg:s,previousArg:l,endpointState:i,state:o}))||!a)},dispatchConditionRejection:!0}),f=(0,o.zD)(`${e}/executeMutation`,l,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[o.cN]:!0})});function p(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:u,mutationThunk:f,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,l=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},c=a.endpoints[e].select(t)(o());if(i)r(l());else if(s){const e=c?.fulfilledTimeStamp;if(!e)return void r(l());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(l())}else r(l(!1))},updateQueryData:(e,t,n,r=!0)=>(o,s)=>{const l=a.endpoints[e].select(t)(s());let c,u={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,u.inversePatches,r))};if("uninitialized"===l.status)return u;if("data"in l)if((0,i.a6)(l.data)){const[e,t,r]=(0,i.vI)(l.data,n);u.patches.push(...t),u.inversePatches.push(...r),c=e}else c=n(l.data),u.patches.push({op:"replace",path:[],value:c}),u.inversePatches.push({op:"replace",path:[],value:l.data});return 0===u.patches.length||o(a.util.patchQueryData(e,t,u.patches,r)),u},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[_]:()=>({data:n})})),patchQueryData:(e,t,o,i)=>(l,c)=>{const u=n[e],d=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(l(a.internalActions.queryResultPatched({queryCacheKey:d,patches:o})),!i)return;const f=a.endpoints[e].select(t)(c()),p=v(u.providesTags,f.data,void 0,t,{},s);l(a.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:(0,o.f$)((0,o.mm)(e),p(t)),matchFulfilled:(0,o.f$)((0,o.sf)(e),p(t)),matchRejected:(0,o.f$)((0,o.TK)(e),p(t))}}}}({baseQuery:n,reducerPath:a,context:N,api:t,serializeQueryArgs:s,assertTagType:A}),{reducer:U,actions:q}=T({context:N,queryThunk:R,mutationThunk:j,reducerPath:a,assertTagType:A,config:{refetchOnFocus:S,refetchOnReconnect:k,refetchOnMountOrArgChange:u,keepUnusedDataFor:c,reducerPath:a,invalidationBehavior:O}});V(t.util,{patchQueryData:M,updateQueryData:L,upsertQueryData:z,prefetch:F,resetApiState:q.resetApiState}),V(t.internalActions,q);const{middleware:$,actions:H}=W({reducerPath:a,context:N,queryThunk:R,mutationThunk:j,api:t,assertTagType:A});V(t.util,H),V(t,{reducer:U,middleware:$});const{buildQuerySelector:Z,buildMutationSelector:K,selectInvalidatedBy:Y,selectCachedArgsForQuery:Q}=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>P,o=e=>D;return{buildQuerySelector:function(t,o){return s=>{const l=e({queryArgs:s,endpointDefinition:o,endpointName:t});return n(s===I?r:e=>a(e)?.queries?.[l]??P,i)}},buildMutationSelector:function(){return e=>{let t;return t="object"===typeof e?C(e)??I:e,n(t===I?o:e=>a(e)?.mutations?.[t]??D,i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const t of n.map(y)){const e=r.provided[t.type];if(!e)continue;let n=(void 0!==t.id?e[t.id]:l(Object.values(e)))??[];for(const t of n)o.add(t)}return l(Array.from(o.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>e?.endpointName===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function i(e){return{...e,...(t=e.status,{status:t,isUninitialized:"uninitialized"===t,isLoading:"pending"===t,isSuccess:"fulfilled"===t,isError:"rejected"===t})};var t}function a(e){return e[t]}}({serializeQueryArgs:s,reducerPath:a,createSelector:e});V(t.util,{selectInvalidatedBy:Y,selectCachedArgsForQuery:Q});const{buildInitiateQuery:J,buildInitiateMutation:X,getRunningMutationThunk:ee,getRunningMutationsThunk:te,getRunningQueriesThunk:ne,getRunningQueryThunk:re}=function({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,o){const a=(l,{subscribe:d=!0,forceRefetch:f,subscriptionOptions:p,[_]:h,...m}={})=>(g,v)=>{const y=e({queryArgs:l,endpointDefinition:o,endpointName:n}),b=t({...m,type:"query",subscribe:d,forceRefetch:f,subscriptionOptions:p,endpointName:n,originalArgs:l,queryCacheKey:y,[_]:h}),x=r.endpoints[n].select(l),E=g(b),S=x(v());u(g);const{requestId:k,abort:C}=E,O=S.requestId!==k,N=i.get(g)?.[y],T=()=>x(v()),I=Object.assign(h?E.then(T):O&&!N?Promise.resolve(S):Promise.all([N,E]).then(T),{arg:l,requestId:k,subscriptionOptions:p,queryCacheKey:y,abort:C,async unwrap(){const e=await I;if(e.isError)throw e.error;return e.data},refetch:()=>g(a(l,{subscribe:!1,forceRefetch:!0})),unsubscribe(){d&&g(s({queryCacheKey:y,requestId:k}))},updateSubscriptionOptions(e){I.subscriptionOptions=e,g(c({endpointName:n,requestId:k,queryCacheKey:y,options:e}))}});if(!N&&!O&&!h){const e=i.get(g)||{};e[y]=I,i.set(g,e),I.then((()=>{delete e[y],w(e)||i.delete(g)}))}return I};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,s)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),d=i(c);u(i);const{requestId:f,abort:p,unwrap:h}=d,m=(g=e=>({error:e}),d.unwrap().then((e=>({data:e}))).catch(g));var g;const v=Object.assign(m,{arg:d.arg,requestId:f,abort:p,unwrap:h,reset:()=>{i(l({requestId:f,fixedCacheKey:o}))}}),y=a.get(i)||{};return a.set(i,y),y[f]=v,v.then((()=>{delete y[f],w(y)||a.delete(i)})),o&&(y[o]=v,v.then((()=>{y[o]===v&&(delete y[o],w(y)||a.delete(i))}))),v}},getRunningQueryThunk:function(t,n){return r=>{const a=o.endpointDefinitions[t],s=e({queryArgs:n,endpointDefinition:a,endpointName:t});return i.get(r)?.[s]}},getRunningMutationThunk:function(e,t){return e=>a.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(i.get(e)||{}).filter(b)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(b)}};function u(e){}}({queryThunk:R,mutationThunk:j,api:t,serializeQueryArgs:s,context:N});return V(t.util,{getRunningMutationThunk:ee,getRunningMutationsThunk:te,getRunningQueryThunk:re,getRunningQueriesThunk:ne}),{name:G,injectEndpoint(e,n){const r=t;r.endpoints[e]??={},g(n)?V(r.endpoints[e],{name:e,select:Z(e,n),initiate:J(e,n)},B(R,e)):"mutation"===n.type&&V(r.endpoints[e],{name:e,select:K(),initiate:X(e)},B(j,e))}}}});Z()},97091:(e,t,n)=>{"use strict";n.d(t,{cN:()=>g,U1:()=>x,VP:()=>d,zD:()=>F,Z0:()=>W,gk:()=>ee,f$:()=>O,i0:()=>C,$S:()=>R,sf:()=>D,mm:()=>I,TK:()=>A,WA:()=>P,Ak:()=>S,aA:()=>v});var r=n(18214),o=n(53850),i=n(96906);function a(e){return({dispatch:t,getState:n})=>r=>o=>"function"===typeof o?o(t,n,e):r(o)}var s=a(),l=a,c=(((...e)=>{const t=(0,o.Ad)(...e),n=Object.assign(((...e)=>{const n=t(...e),o=(e,...t)=>n((0,r.Qx)(e)?(0,r.ss)(e):e,...t);return Object.assign(o,n),o}),{withTypes:()=>n})})(o.X4),"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?i.Zz:i.Zz.apply(null,arguments)}),u=("undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"===typeof e.match);function d(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(ee(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>(0,i.ve)(t)&&t.type===e,n}var f=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function p(e){return(0,r.a6)(e)?(0,r.jM)(e,(()=>{})):e}function h(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(ee(10));const r=n.insert(t,e);return e.set(t,r),r}var m=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new f;return t&&("boolean"===typeof t?i.push(s):i.push(l(t.extraArgument))),i},g="RTK_autoBatch",v=()=>e=>({payload:e,meta:{[g]:!0}}),y=e=>t=>{setTimeout(t,e)},b="undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:y(10),w=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new f(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?b:"callback"===e.type?e.queueNotification:y(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>o&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.[g],i=!o,i&&(a||(a=!0,l(c))),r.dispatch(e)}finally{o=!0}}})})("object"===typeof n?n:void 0)),r},_=!0;function x(e){const t=m(),{reducer:n,middleware:r,devTools:o=!0,preloadedState:a,enhancers:s}=e||{};let l,u;if("function"===typeof n)l=n;else{if(!(0,i.Qd)(n))throw new Error(ee(1));l=(0,i.HY)(n)}if(!_&&r&&"function"!==typeof r)throw new Error(ee(2));if("function"===typeof r){if(u=r(t),!_&&!Array.isArray(u))throw new Error(ee(3))}else u=t();if(!_&&u.some((e=>"function"!==typeof e)))throw new Error(ee(4));let d=i.Zz;o&&(d=c({trace:!_,..."object"===typeof o&&o}));const f=(0,i.Tw)(...u),p=w(f);if(!_&&s&&"function"!==typeof s)throw new Error(ee(5));let h="function"===typeof s?s(p):p();if(!_&&!Array.isArray(h))throw new Error(ee(6));if(!_&&h.some((e=>"function"!==typeof e)))throw new Error(ee(7));_||!u.length||h.includes(f)||console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=d(...h);return(0,i.y$)(l,a,g)}function E(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"===typeof e?e:e.type;if(!r)throw new Error(ee(28));if(r in t)throw new Error(ee(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var S=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},k=(e,t)=>u(e)?e.match(t):e(t);function C(...e){return t=>e.some((e=>k(e,t)))}function O(...e){return t=>e.every((e=>k(e,t)))}function N(e,t){if(!e||!e.meta)return!1;const n="string"===typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function T(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function I(...e){return 0===e.length?e=>N(e,["pending"]):T(e)?t=>C(...e.map((e=>e.pending)))(t):I()(e[0])}function A(...e){return 0===e.length?e=>N(e,["rejected"]):T(e)?t=>C(...e.map((e=>e.rejected)))(t):A()(e[0])}function P(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||T(e)?n=>O(A(...e),t)(n):P()(e[0])}function D(...e){return 0===e.length?e=>N(e,["fulfilled"]):T(e)?t=>C(...e.map((e=>e.fulfilled)))(t):D()(e[0])}function R(...e){return 0===e.length?e=>N(e,["pending","fulfilled","rejected"]):T(e)?t=>{const n=[];for(const r of e)n.push(r.pending,r.rejected,r.fulfilled);return C(...n)(t)}:R()(e[0])}var j=["name","message","stack","code"],M=class{constructor(e,t){this.payload=e,this.meta=t}_type},L=class{constructor(e,t){this.payload=e,this.meta=t}_type},z=e=>{if("object"===typeof e&&null!==e){const t={};for(const n of j)"string"===typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},F=(()=>{function e(e,t,n){const r=d(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),o=d(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),i=d(e+"/rejected",((e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||z)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}})));return Object.assign((function(e){return(a,s,l)=>{const c=n?.idGenerator?n.idGenerator(e):S(),u=new AbortController;let d,f;function p(e){f=e,u.abort()}const h=async function(){let h;try{let i=n?.condition?.(e,{getState:s,extra:l});if(null!==(m=i)&&"object"===typeof m&&"function"===typeof m.then&&(i=await i),!1===i||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},u.signal.addEventListener("abort",d)}));a(o(c,e,n?.getPendingMeta?.({requestId:c,arg:e},{getState:s,extra:l}))),h=await Promise.race([g,Promise.resolve(t(e,{dispatch:a,getState:s,extra:l,requestId:c,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new M(e,t),fulfillWithValue:(e,t)=>new L(e,t)})).then((t=>{if(t instanceof M)throw t;return t instanceof L?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(g){h=g instanceof M?i(null,c,e,g.payload,g.meta):i(g,c,e)}finally{d&&u.signal.removeEventListener("abort",d)}var m;return n&&!n.dispatchConditionRejection&&i.match(h)&&h.meta.condition||a(h),h}();return Object.assign(h,{abort:p,requestId:c,arg:e,unwrap:()=>h.then(B)})}}),{pending:o,rejected:i,fulfilled:r,settled:C(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function B(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var U=Symbol.for("rtk-slice-createasyncthunk");function q(e,t){return`${e}/${t}`}function $({creators:e}={}){const t=e?.asyncThunk?.[U];return function(e){const{name:n,reducerPath:o=n}=e;if(!n)throw new Error(ee(11));const i=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(i),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(ee(12));if(n in s.sliceCaseReducersByType)throw new Error(ee(13));return s.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(s.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(s.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(s.sliceCaseReducersByName[e]=t,l)};function c(){const[t={},n=[],o]="function"===typeof e.extraReducers?E(e.extraReducers):[e.extraReducers],i={...t,...s.sliceCaseReducersByType};return function(e,t){let n,[o,i,a]=E(t);if("function"===typeof e)n=()=>p(e());else{const t=p(e);n=()=>t}function s(e=n(),t){let s=[o[t.type],...i.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===s.filter((e=>!!e)).length&&(s=[a]),s.reduce(((e,n)=>{if(n){if((0,r.Qx)(e)){const r=n(e,t);return void 0===r?e:r}if((0,r.a6)(e))return(0,r.jM)(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(ee(9))}return r}}return e}),e)}return s.getInitialState=n,s}(e.initialState,(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of s.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);o&&e.addDefaultCase(o)}))}a.forEach((r=>{const o=i[r],a={reducerName:r,type:q(n,r),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(ee(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?d(e,a):d(e))}(a,o,l):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(ee(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);c&&r.addMatcher(d.settled,c);r.exposeCaseReducer(t,{fulfilled:a||V,pending:s||V,rejected:l||V,settled:c||V})}(a,o,l,t)}));const u=e=>e,f=new Map;let m;function g(e,t){return m||(m=c()),m(e,t)}function v(){return m||(m=c()),m.getInitialState()}function y(t,n=!1){function r(e){let r=e[t];return"undefined"===typeof r&&n&&(r=v()),r}function o(t=u){const r=h(f,n,{insert:()=>new WeakMap});return h(r,t,{insert:()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=H(i,t,v,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const b={name:n,reducer:g,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:v,...y(o),injectInto(e,{reducerPath:t,...n}={}){const r=t??o;return e.inject({reducerPath:r,reducer:g},n),{...b,...y(r,!0)}}};return b}}function H(e,t,n,r){function o(o,...i){let a=t(o);return"undefined"===typeof a&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var W=$();function V(){}var G=(e,t)=>{if("function"!==typeof e)throw new Error(ee(32))};var{assign:Z}=Object,K="listenerMiddleware",Y=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=d(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(ee(21));return G(i),{predicate:o,type:t,effect:i}},Q=Object.assign((e=>{const{type:t,predicate:n,effect:r}=Y(e);return{id:S(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(ee(22))}}}),{withTypes:()=>Q}),J=Object.assign(d(`${K}/add`),{withTypes:()=>J}),X=(d(`${K}/removeAll`),Object.assign(d(`${K}/remove`),{withTypes:()=>X}));Symbol.for("rtk-state-proxy-original");function ee(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},18214:(e,t,n)=>{"use strict";n.d(t,{$i:()=>J,Qx:()=>l,YT:()=>Z,a6:()=>c,c2:()=>f,jM:()=>Y,ss:()=>V,vI:()=>Q});var r=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),i=Symbol.for("immer-state");function a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function l(e){return!!e&&!!e[i]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||y(e)||b(e))}var u=Object.prototype.constructor.toString();function d(e){if(!e||"object"!==typeof e)return!1;const t=s(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===u}function f(e){return l(e)||a(15),e[i].base_}function p(e,t){0===h(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function h(e){const t=e[i];return t?t.type_:Array.isArray(e)?1:y(e)?2:b(e)?3:0}function m(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function g(e,t){return 2===h(e)?e.get(t):e[t]}function v(e,t,n){const r=h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function y(e){return e instanceof Map}function b(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function _(e,t){if(y(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&d(e)){if(!s(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const n=Object.getOwnPropertyDescriptors(e);delete n[i];let r=Reflect.ownKeys(n);for(let o=0;o<r.length;o++){const t=r[o],i=n[t];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[t]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[t]})}return Object.create(s(e),n)}function x(e,t=!1){return S(e)||l(e)||!c(e)||(h(e)>1&&(e.set=e.add=e.clear=e.delete=E),Object.freeze(e),t&&p(e,((e,t)=>x(t,!0)))),e}function E(){a(2)}function S(e){return Object.isFrozen(e)}var k,C={};function O(e){const t=C[e];return t||a(0),t}function N(e,t){C[e]||(C[e]=t)}function T(){return k}function I(e,t){t&&(O("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function A(e){P(e),e.drafts_.forEach(R),e.drafts_=null}function P(e){e===k&&(k=e.parent_)}function D(e){return k={drafts_:[],parent_:k,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function R(e){const t=e[i];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function j(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[i].modified_&&(A(t),a(4)),c(e)&&(e=M(t,e),t.parent_||z(t,e)),t.patches_&&O("Patches").generateReplacementPatches_(n[i].base_,e,t.patches_,t.inversePatches_)):e=M(t,n,[]),A(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function M(e,t,n){if(S(t))return t;const r=t[i];if(!r)return p(t,((o,i)=>L(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return z(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),p(o,((o,a)=>L(e,r,t,o,a,n,i))),z(e,t,!1),n&&e.patches_&&O("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function L(e,t,n,r,o,i,a){if(l(o)){const a=M(e,o,i&&t&&3!==t.type_&&!m(t.assigned_,r)?i.concat(r):void 0);if(v(n,r,a),!l(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(c(o)&&!S(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;M(e,o),t&&t.scope_.parent_||z(e,o)}}function z(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&x(t,n)}var F={get(e,t){if(t===i)return e;const n=w(e);if(!m(n,t))return function(e,t,n){const r=q(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!c(r)?r:r===U(e.base_,t)?(H(e),e.copy_[t]=W(r,e)):r},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,n){const r=q(w(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=U(w(e),t),s=r?.[i];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(a=r)?0!==o||1/o===1/a:o!==o&&a!==a)&&(void 0!==n||m(e.base_,t)))return!0;H(e),$(e)}var o,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==U(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,H(e),$(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=w(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){a(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){a(12)}},B={};function U(e,t){const n=e[i];return(n?w(n):e)[t]}function q(e,t){if(!(t in e))return;let n=s(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=s(n)}}function $(e){e.modified_||(e.modified_=!0,e.parent_&&$(e.parent_))}function H(e){e.copy_||(e.copy_=_(e.base_,e.scope_.immer_.useStrictShallowCopy_))}p(F,((e,t)=>{B[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),B.deleteProperty=function(e,t){return B.set.call(this,e,t,void 0)},B.set=function(e,t,n){return F.set.call(this,e[0],t,n,e[0])};function W(e,t){const n=y(e)?O("MapSet").proxyMap_(e,t):b(e)?O("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:T(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=F;n&&(o=[r],i=B);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:T()).drafts_.push(n),n}function V(e){return l(e)||a(10),G(e)}function G(e){if(!c(e)||S(e))return e;const t=e[i];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=_(e,t.scope_.immer_.useStrictShallowCopy_)}else n=_(e,!0);return p(n,((e,t)=>{v(n,e,G(t))})),t&&(t.finalized_=!1),n}function Z(){const e="replace",t="add",n="remove";function i(e){if(!c(e))return e;if(Array.isArray(e))return e.map(i);if(y(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,i(t)])));if(b(e))return new Set(Array.from(e).map(i));const t=Object.create(s(e));for(const n in e)t[n]=i(e[n]);return m(e,o)&&(t[o]=e[o]),t}function u(e){return l(e)?i(e):e}N("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:s,op:l}=o;let c=r;for(let e=0;e<s.length-1;e++){const t=h(c);let n=s[e];"string"!==typeof n&&"number"!==typeof n&&(n=""+n),0!==t&&1!==t||"__proto__"!==n&&"constructor"!==n||a(19),"function"===typeof c&&"prototype"===n&&a(19),c=g(c,n),"object"!==typeof c&&a(18,s.join("/"))}const u=h(c),d=i(o.value),f=s[s.length-1];switch(l){case e:switch(u){case 2:return c.set(f,d);case 3:a(16);default:return c[f]=d}case t:switch(u){case 1:return"-"===f?c.push(d):c.splice(f,0,d);case 2:return c.set(f,d);case 3:return c.add(d);default:return c[f]=d}case n:switch(u){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(o.value);default:return delete c[f]}default:a(17)}})),r},generatePatches_:function(r,o,i,a){switch(r.type_){case 0:case 2:return function(r,o,i,a){const{base_:s,copy_:l}=r;p(r.assigned_,((r,c)=>{const d=g(s,r),f=g(l,r),p=c?m(s,r)?e:t:n;if(d===f&&p===e)return;const h=o.concat(r);i.push(p===n?{op:p,path:h}:{op:p,path:h,value:f}),a.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:u(d)}:{op:e,path:h,value:u(d)})}))}(r,o,i,a);case 1:return function(r,o,i,a){let{base_:s,assigned_:l}=r,c=r.copy_;c.length<s.length&&([s,c]=[c,s],[i,a]=[a,i]);for(let t=0;t<s.length;t++)if(l[t]&&c[t]!==s[t]){const n=o.concat([t]);i.push({op:e,path:n,value:u(c[t])}),a.push({op:e,path:n,value:u(s[t])})}for(let e=s.length;e<c.length;e++){const n=o.concat([e]);i.push({op:t,path:n,value:u(c[e])})}for(let e=c.length-1;s.length<=e;--e){const t=o.concat([e]);a.push({op:n,path:t})}}(r,o,i,a);case 3:return function(e,r,o,i){let{base_:a,copy_:s}=e,l=0;a.forEach((e=>{if(!s.has(e)){const a=r.concat([l]);o.push({op:n,path:a,value:e}),i.unshift({op:t,path:a,value:e})}l++})),l=0,s.forEach((e=>{if(!a.has(e)){const a=r.concat([l]);o.push({op:t,path:a,value:e}),i.unshift({op:n,path:a,value:e})}l++}))}(r,o,i,a)}},generateReplacementPatches_:function(t,n,o,i){o.push({op:e,path:[],value:n===r?void 0:n}),i.push({op:e,path:[],value:t})}})}var K=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let o;if("function"!==typeof t&&a(6),void 0!==n&&"function"!==typeof n&&a(7),c(e)){const r=D(this),i=W(e,void 0);let a=!0;try{o=t(i),a=!1}finally{a?A(r):P(r)}return I(r,n),j(o,r)}if(!e||"object"!==typeof e){if(o=t(e),void 0===o&&(o=e),o===r&&(o=void 0),this.autoFreeze_&&x(o,!0),n){const t=[],r=[];O("Patches").generateReplacementPatches_(e,o,t,r),n(t,r)}return o}a(1)},this.produceWithPatches=(e,t)=>{if("function"===typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"===typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){c(e)||a(8),l(e)&&(e=V(e));const t=D(this),n=W(e,void 0);return n[i].isManual_=!0,P(t),n}finishDraft(e,t){const n=e&&e[i];n&&n.isManual_||a(9);const{scope_:r}=n;return I(r,t),j(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=O("Patches").applyPatches_;return l(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},Y=K.produce,Q=K.produceWithPatches.bind(K),J=(K.setAutoFreeze.bind(K),K.setUseStrictShallowCopy.bind(K),K.applyPatches.bind(K));K.createDraft.bind(K),K.finishDraft.bind(K)},97434:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>ue,Ng:()=>ce,Pj:()=>fe,bN:()=>V,d4:()=>g,vA:()=>ge,wA:()=>me});var r=n(59284),o=n(88730),i=r,a=Symbol.for("react-redux-context"),s="undefined"!==typeof globalThis?globalThis:{};function l(){if(!i.createContext)return{};const e=s[a]??(s[a]=new Map);let t=e.get(i.createContext);return t||(t=i.createContext(null),e.set(i.createContext,t)),t}var c=l(),u=()=>{throw new Error("uSES not initialized!")};function d(e=c){return function(){return i.useContext(e)}}var f=d(),p=u,h=(e,t)=>e===t;function m(e=c){const t=e===c?f:d(e),n=(e,n={})=>{const{equalityFn:r=h,devModeChecks:o={}}="function"===typeof n?{equalityFn:n}:n;const{store:a,subscription:s,getServerState:l,stabilityCheck:c,identityFunctionCheck:u}=t(),d=(i.useRef(!0),i.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,o.stabilityCheck])),f=p(s.addNestedSub,a.getState,l||a.getState,d,r);return i.useDebugValue(f),f};return Object.assign(n,{withTypes:()=>n}),n}var g=m(),v=Symbol.for("react.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),E=Symbol.for("react.context"),S=Symbol.for("react.server_context"),k=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),I=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),k),A=N;function P(e){if("object"===typeof e&&null!==e){const t=e.$$typeof;switch(t){case v:{const n=e.type;switch(n){case b:case _:case w:case C:case O:return n;default:{const e=n&&n.$$typeof;switch(e){case S:case E:case k:case T:case N:case x:return e;default:return t}}}}case y:return t}}}function D(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,l,c,u,d,f=!1;function p(f,p){const h=!i(p,l),m=!o(f,s,p,l);return s=f,l=p,h&&m?(c=e(s,l),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):h?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):m?function(){const t=e(s,l),r=!a(t,c);return c=t,r&&(d=n(c,u,l)),d}():d}return function(o,i){return f?p(o,i):(s=o,l=i,c=e(s,l),u=t(r,l),d=n(c,u,l),f=!0,d)}}function R(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function j(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function M(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=j(e);let o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=j(o),o=r(t,n)),o},r}}function L(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function z(e,t,n){return{...n,...e,...t}}function F(e){e()}var B={notify(){},get:()=>[]};function U(e,t){let n,r=B,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){F((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function l(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=B)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return c}var q=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),$="undefined"!==typeof navigator&&"ReactNative"===navigator.product,H=q||$?i.useLayoutEffect:i.useEffect;function W(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function V(e,t){if(W(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!W(e[n[o]],t[n[o]]))return!1;return!0}var G={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},K={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Y={[I]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[A]:K};function Q(e){return P(e)===N?K:Y[e.$$typeof]||G}var J=Object.defineProperty,X=Object.getOwnPropertyNames,ee=Object.getOwnPropertySymbols,te=Object.getOwnPropertyDescriptor,ne=Object.getPrototypeOf,re=Object.prototype;function oe(e,t){if("string"!==typeof t){if(re){const n=ne(t);n&&n!==re&&oe(e,n)}let r=X(t);ee&&(r=r.concat(ee(t)));const o=Q(e),i=Q(t);for(let a=0;a<r.length;++a){const s=r[a];if(!Z[s]&&(!i||!i[s])&&(!o||!o[s])){const r=te(t,s);try{J(e,s,r)}catch(n){}}}}return e}var ie=u,ae=[null,null];function se(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function le(e,t){return e===t}var ce=function(e,t,n,{pure:r,areStatesEqual:o=le,areOwnPropsEqual:a=V,areStatePropsEqual:s=V,areMergedPropsEqual:l=V,forwardRef:u=!1,context:d=c}={}){const f=d,p=function(e){return e?"function"===typeof e?M(e):L(e,"mapStateToProps"):R((()=>({})))}(e),h=function(e){return e&&"object"===typeof e?R((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"===typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"===typeof e?M(e):L(e,"mapDispatchToProps"):R((e=>({dispatch:e})))}(t),m=function(e){return e?"function"===typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):L(e,"mergeProps"):()=>z}(n),g=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:g,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:h,initMergeProps:m,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function c(t){const[n,o,a]=i.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),s=i.useMemo((()=>f),[n,f]),l=i.useContext(s),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const d=c?t.store:l.store,p=u?l.getServerState:d.getState,h=i.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return D(t(e,o),n(e,o),r(e,o),e,o)}(d.dispatch,r)),[d]),[m,v]=i.useMemo((()=>{if(!g)return ae;const e=U(d,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,l]),y=i.useMemo((()=>c?l:{...l,subscription:m}),[c,l,m]),b=i.useRef(void 0),w=i.useRef(a),_=i.useRef(void 0),x=i.useRef(!1),E=i.useRef(!1),S=i.useRef(void 0);H((()=>(E.current=!0,()=>{E.current=!1})),[]);const k=i.useMemo((()=>()=>_.current&&a===w.current?_.current:h(d.getState(),a)),[d,a]),C=i.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,s,l,c,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(h){p=h,f=h}p||(f=null),n===i.current?a.current||c():(i.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(g,d,m,h,w,b,x,E,_,v,e):()=>{}),[m]);var O,N,T;let I;O=se,N=[w,b,x,a,_,v],H((()=>O(...N)),T);try{I=ie(C,k,p?()=>h(p(),a):k)}catch(P){throw S.current&&(P.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),P}H((()=>{S.current=void 0,_.current=void 0,b.current=I}));const A=i.useMemo((()=>i.createElement(e,{...I,ref:o})),[o,e,I]);return i.useMemo((()=>g?i.createElement(s.Provider,{value:y},A):A),[s,A,y])}const d=i.memo(c);if(d.WrappedComponent=e,d.displayName=c.displayName=n,u){const t=i.forwardRef((function(e,t){return i.createElement(d,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,oe(t,e)}return oe(d,e)}};var ue=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:a="once"}){const s=i.useMemo((()=>{const t=U(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:a}}),[e,r,o,a]),l=i.useMemo((()=>e.getState()),[e]);H((()=>{const{subscription:t}=s;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),l!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[s,l]);const u=t||c;return i.createElement(u.Provider,{value:s},n)};function de(e=c){const t=e===c?f:d(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var fe=de();function pe(e=c){const t=e===c?fe:de(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var he,me=pe(),ge=F;he=o.useSyncExternalStoreWithSelector,p=he,(e=>{ie=e})(r.useSyncExternalStore)},96906:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>c,Qd:()=>s,Tw:()=>p,Zz:()=>f,ve:()=>h,y$:()=>l,zH:()=>d});var o=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function s(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,n){if("function"!==typeof e)throw new Error(r(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(r(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(r(1));return n(l)(e,t)}let i=e,c=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function m(){if(p)throw new Error(r(3));return c}function g(e){if("function"!==typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),u=null}}}function v(e){if(!s(e))throw new Error(r(7));if("undefined"===typeof e.type)throw new Error(r(8));if("string"!==typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,c=i(c,e)}finally{p=!1}return(u=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:m,replaceReducer:function(e){if("function"!==typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function c(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"===typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:a.INIT}))throw new Error(r(12));if("undefined"===typeof n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(s){i=s}return function(e={},t){if(i)throw i;let a=!1;const s={};for(let i=0;i<o.length;i++){const l=o[i],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(r(14))}s[l]=d,a=a||d!==u}return a=a||o.length!==Object.keys(e).length,a?s:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"===typeof e)return u(e,t);if("object"!==typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"===typeof o&&(n[r]=u(o,t))}return n}function f(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function p(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const s={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map((e=>e(s)));return a=f(...l)(i.dispatch),{...i,dispatch:a}}}function h(e){return s(e)&&"type"in e&&"string"===typeof e.type}},53850:(e,t,n)=>{"use strict";n.d(t,{Ad:()=>m,Mz:()=>g,X4:()=>h,i5:()=>c});var r="NOT_FOUND";function o(e,t="expected a function, instead received "+typeof e){if("function"!==typeof e)throw new TypeError(t)}var i=e=>Array.isArray(e)?e:[e];function a(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"===typeof e))){const n=e.map((e=>"function"===typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var s=(e,t)=>e===t;function l(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;const{length:r}=t;for(let o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}function c(e,t){const n="object"===typeof t?t:{equalityCheck:t},{equalityCheck:o=s,maxSize:i=1,resultEqualityCheck:a}=n,c=l(o);let u=0;const d=1===i?function(e){let t;return{get:n=>t&&e(t.key,n)?t.value:r,put(e,n){t={key:e,value:n}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(c):function(e,t){let n=[];function o(e){const o=n.findIndex((n=>t(e,n.key)));if(o>-1){const e=n[o];return o>0&&(n.splice(o,1),n.unshift(e)),e.value}return r}return{get:o,put:function(t,i){o(t)===r&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(i,c);function f(){let t=d.get(arguments);if(t===r){if(t=e.apply(null,arguments),u++,a){const e=d.getEntries().find((e=>a(e.value,t)));e&&(t=e.value,0!==u&&u--)}d.put(arguments,t)}return t}return f.clearCache=()=>{d.clear(),f.resetResultsCount()},f.resultsCount=()=>u,f.resetResultsCount=()=>{u=0},f}var u="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},d=0,f=1;function p(){return{s:d,v:void 0,o:null,p:null}}function h(e,t={}){let n=p();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"===typeof n||"object"===typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}}const s=t;let l;if(t.s===f?l=t.v:(l=e.apply(null,arguments),i++),s.s=f,r){const e=o?.deref?.()??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--);o="object"===typeof l&&null!==l||"function"===typeof l?new u(l):l}return s.v=l,l}return a.clearCache=()=>{n=p(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function m(e,...t){const n="function"===typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,s=0,l={},c=e.pop();"object"===typeof c&&(l=c,c=e.pop()),o(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:p=h,argsMemoizeOptions:m=[],devModeChecks:g={}}=u,v=i(f),y=i(m),b=a(e),w=d((function(){return r++,c.apply(null,arguments)}),...v);const _=p((function(){s++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(b,arguments);return t=w.apply(null,e),t}),...y);return Object.assign(_,{resultFunc:c,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:d,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var g=m(h),v=Object.assign(((e,t=g)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!==typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>v})},27145:(e,t,n)=>{"use strict";n.d(t,{Tt:()=>r});function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError},370:(e,t,n)=>{"use strict";var r,o;n.d(t,{z:()=>bt}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!==typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"===typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"===typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"===typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"===typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"===typeof t?t.toString():t}(r||(r={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(o||(o={}));const i=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":return Array.isArray(e)?i.array:null===e?i.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?i.promise:"undefined"!==typeof Map&&e instanceof Map?i.map:"undefined"!==typeof Set&&e instanceof Set?i.set:"undefined"!==typeof Date&&e instanceof Date?i.date:i.object;default:return i.unknown}},s=r.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class l extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{let e=n,r=0;for(;r<o.path.length;){const n=o.path[r];r===o.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(o))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof l))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);const c=(e,t)=>{let n;switch(e.code){case s.invalid_type:n=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:n=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case s.invalid_union:n="Invalid input";break;case s.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case s.invalid_enum_value:n=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case s.invalid_arguments:n="Invalid function arguments";break;case s.invalid_return_type:n="Invalid function return type";break;case s.invalid_date:n="Invalid date";break;case s.invalid_string:"object"===typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"===typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:r.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case s.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case s.custom:n="Invalid input";break;case s.invalid_intersection_types:n="Intersection results could not be merged";break;case s.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case s.not_finite:n="Number must be finite";break;default:n=t.defaultError,r.assertNever(e)}return{message:n}};let u=c;function d(){return u}const f=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],a={...o,path:i};if(void 0!==o.message)return{...o,path:i,message:o.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...o,path:i,message:s}};function p(e,t){const n=d(),r=f({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===c?void 0:c].filter((e=>!!e))});e.common.issues.push(r)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return m;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const e=await r.key,t=await r.value;n.push({key:e,value:t})}return h.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:o}=r;if("aborted"===t.status)return m;if("aborted"===o.status)return m;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof o.value&&!r.alwaysSet||(n[t.value]=o.value)}return{status:e.value,value:n}}}const m=Object.freeze({status:"aborted"}),g=e=>({status:"dirty",value:e}),v=e=>({status:"valid",value:e}),y=e=>"aborted"===e.status,b=e=>"dirty"===e.status,w=e=>"valid"===e.status,_=e=>"undefined"!==typeof Promise&&e instanceof Promise;function x(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function E(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}var S,k,C;"function"===typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"===typeof e?{message:e}:e||{},e.toString=e=>"string"===typeof e?e:null===e||void 0===e?void 0:e.message}(S||(S={}));class O{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const N=(e,t)=>{if(w(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new l(e.common.issues);return this._error=t,this._error}}};function T(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:o};return{errorMap:(t,o)=>{var i,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!==s&&void 0!==s?s:o.defaultError}:"undefined"===typeof o.data?{message:null!==(i=null!==s&&void 0!==s?s:r)&&void 0!==i?i:o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:null!==(a=null!==s&&void 0!==s?s:n)&&void 0!==a?a:o.defaultError}},description:o}}class I{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(_(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null===t||void 0===t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null===t||void 0===t?void 0:t.errorMap},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},o=this._parseSync({data:e,path:r.path,parent:r});return N(r,o)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null===t||void 0===t?void 0:t.errorMap,async:!0},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},r=this._parse({data:e,path:n.path,parent:n}),o=await(_(r)?r:Promise.resolve(r));return N(n,o)}refine(e,t){const n=e=>"string"===typeof t||"undefined"===typeof t?{message:t}:"function"===typeof t?t(e):t;return this._refinement(((t,r)=>{const o=e(t),i=()=>r.addIssue({code:s.custom,...n(t)});return"undefined"!==typeof Promise&&o instanceof Promise?o.then((e=>!!e||(i(),!1))):!!o||(i(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"===typeof t?t(n,r):t),!1)))}_refinement(e){return new Se({schema:this,typeName:Me.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ke.create(this,this._def)}nullable(){return Ce.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ie.create(this,this._def)}promise(){return Ee.create(this,this._def)}or(e){return le.create([this,e],this._def)}and(e){return fe.create(this,e,this._def)}transform(e){return new Se({...T(this._def),schema:this,typeName:Me.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new Oe({...T(this._def),innerType:this,defaultValue:t,typeName:Me.ZodDefault})}brand(){return new Ae({typeName:Me.ZodBranded,type:this,...T(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new Ne({...T(this._def),innerType:this,catchValue:t,typeName:Me.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Pe.create(this,e)}readonly(){return De.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const A=/^c[^\s-]{8,}$/i,P=/^[0-9a-z]+$/,D=/^[0-9A-HJKMNP-TV-Z]{26}$/,R=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,j=/^[a-z0-9_-]{21}$/i,M=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,L=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let z;const F=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,B=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,U=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,q="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",$=new RegExp(`^${q}$`);function H(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function W(e){let t=`${q}T${H(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}class V extends I{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==i.string){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.string,received:t.parsedType}),m}const t=new h;let n;for(const i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("max"===i.kind)e.data.length>i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("length"===i.kind){const r=e.data.length>i.value,o=e.data.length<i.value;(r||o)&&(n=this._getOrReturnCtx(e,n),r?p(n,{code:s.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&p(n,{code:s.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),t.dirty())}else if("email"===i.kind)L.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"email",code:s.invalid_string,message:i.message}),t.dirty());else if("emoji"===i.kind)z||(z=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),z.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"emoji",code:s.invalid_string,message:i.message}),t.dirty());else if("uuid"===i.kind)R.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"uuid",code:s.invalid_string,message:i.message}),t.dirty());else if("nanoid"===i.kind)j.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"nanoid",code:s.invalid_string,message:i.message}),t.dirty());else if("cuid"===i.kind)A.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid",code:s.invalid_string,message:i.message}),t.dirty());else if("cuid2"===i.kind)P.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid2",code:s.invalid_string,message:i.message}),t.dirty());else if("ulid"===i.kind)D.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"ulid",code:s.invalid_string,message:i.message}),t.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(l){n=this._getOrReturnCtx(e,n),p(n,{validation:"url",code:s.invalid_string,message:i.message}),t.dirty()}else if("regex"===i.kind){i.regex.lastIndex=0;i.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"regex",code:s.invalid_string,message:i.message}),t.dirty())}else if("trim"===i.kind)e.data=e.data.trim();else if("includes"===i.kind)e.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),t.dirty());else if("toLowerCase"===i.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===i.kind)e.data=e.data.toUpperCase();else if("startsWith"===i.kind)e.data.startsWith(i.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{startsWith:i.value},message:i.message}),t.dirty());else if("endsWith"===i.kind)e.data.endsWith(i.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{endsWith:i.value},message:i.message}),t.dirty());else if("datetime"===i.kind){W(i).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"datetime",message:i.message}),t.dirty())}else if("date"===i.kind){$.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"date",message:i.message}),t.dirty())}else if("time"===i.kind){new RegExp(`^${H(i)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"time",message:i.message}),t.dirty())}else"duration"===i.kind?M.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"duration",code:s.invalid_string,message:i.message}),t.dirty()):"ip"===i.kind?(o=e.data,("v4"!==(a=i.version)&&a||!F.test(o))&&("v6"!==a&&a||!B.test(o))&&(n=this._getOrReturnCtx(e,n),p(n,{validation:"ip",code:s.invalid_string,message:i.message}),t.dirty())):"base64"===i.kind?U.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64",code:s.invalid_string,message:i.message}),t.dirty()):r.assertNever(i);var o,a;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:s.invalid_string,...S.errToObj(n)})}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...S.errToObj(e)})}url(e){return this._addCheck({kind:"url",...S.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...S.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...S.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...S.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...S.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...S.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...S.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...S.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...S.errToObj(e)})}datetime(e){var t,n;return"string"===typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,offset:null!==(t=null===e||void 0===e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null===e||void 0===e?void 0:e.local)&&void 0!==n&&n,...S.errToObj(null===e||void 0===e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"===typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,...S.errToObj(null===e||void 0===e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...S.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...S.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null===t||void 0===t?void 0:t.position,...S.errToObj(null===t||void 0===t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...S.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...S.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...S.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...S.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...S.errToObj(t)})}nonempty(e){return this.min(1,S.errToObj(e))}trim(){return new V({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new V({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new V({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function G(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)}V.create=e=>{var t;return new V({checks:[],typeName:Me.ZodString,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class Z extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==i.number){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.number,received:t.parsedType}),m}let t;const n=new h;for(const o of this._def.checks)if("int"===o.kind)r.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty());else if("min"===o.kind){(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty())}else if("max"===o.kind){(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty())}else"multipleOf"===o.kind?0!==G(e.data,o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_finite,message:o.message}),n.dirty()):r.assertNever(o);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:S.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:S.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:S.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:S.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&r.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Z.create=e=>new Z({checks:[],typeName:Me.ZodNumber,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...T(e)});class K extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==i.bigint){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.bigint,received:t.parsedType}),m}let t;const n=new h;for(const o of this._def.checks)if("min"===o.kind){(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty())}else if("max"===o.kind){(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty())}else"multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):r.assertNever(o);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new K({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new K({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}K.create=e=>{var t;return new K({checks:[],typeName:Me.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class Y extends I{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==i.boolean){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.boolean,received:t.parsedType}),m}return v(e.data)}}Y.create=e=>new Y({typeName:Me.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...T(e)});class Q extends I{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==i.date){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.date,received:t.parsedType}),m}if(isNaN(e.data.getTime())){return p(this._getOrReturnCtx(e),{code:s.invalid_date}),m}const t=new h;let n;for(const o of this._def.checks)"min"===o.kind?e.data.getTime()<o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),t.dirty()):"max"===o.kind?e.data.getTime()>o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),t.dirty()):r.assertNever(o);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:S.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:S.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Q.create=e=>new Q({checks:[],coerce:(null===e||void 0===e?void 0:e.coerce)||!1,typeName:Me.ZodDate,...T(e)});class J extends I{_parse(e){if(this._getType(e)!==i.symbol){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.symbol,received:t.parsedType}),m}return v(e.data)}}J.create=e=>new J({typeName:Me.ZodSymbol,...T(e)});class X extends I{_parse(e){if(this._getType(e)!==i.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.undefined,received:t.parsedType}),m}return v(e.data)}}X.create=e=>new X({typeName:Me.ZodUndefined,...T(e)});class ee extends I{_parse(e){if(this._getType(e)!==i.null){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.null,received:t.parsedType}),m}return v(e.data)}}ee.create=e=>new ee({typeName:Me.ZodNull,...T(e)});class te extends I{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}te.create=e=>new te({typeName:Me.ZodAny,...T(e)});class ne extends I{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}ne.create=e=>new ne({typeName:Me.ZodUnknown,...T(e)});class re extends I{_parse(e){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.never,received:t.parsedType}),m}}re.create=e=>new re({typeName:Me.ZodNever,...T(e)});class oe extends I{_parse(e){if(this._getType(e)!==i.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.void,received:t.parsedType}),m}return v(e.data)}}oe.create=e=>new oe({typeName:Me.ZodVoid,...T(e)});class ie extends I{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==i.array)return p(t,{code:s.invalid_type,expected:i.array,received:t.parsedType}),m;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,o=t.data.length<r.exactLength.value;(e||o)&&(p(t,{code:e?s.too_big:s.too_small,minimum:o?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(p(t,{code:s.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(p(t,{code:s.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new O(t,e,t.path,n))))).then((e=>h.mergeArray(n,e)));const o=[...t.data].map(((e,n)=>r.type._parseSync(new O(t,e,t.path,n))));return h.mergeArray(n,o)}get element(){return this._def.type}min(e,t){return new ie({...this._def,minLength:{value:e,message:S.toString(t)}})}max(e,t){return new ie({...this._def,maxLength:{value:e,message:S.toString(t)}})}length(e,t){return new ie({...this._def,exactLength:{value:e,message:S.toString(t)}})}nonempty(e){return this.min(1,e)}}function ae(e){if(e instanceof se){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=ke.create(ae(r))}return new se({...e._def,shape:()=>t})}return e instanceof ie?new ie({...e._def,type:ae(e.element)}):e instanceof ke?ke.create(ae(e.unwrap())):e instanceof Ce?Ce.create(ae(e.unwrap())):e instanceof pe?pe.create(e.items.map((e=>ae(e)))):e}ie.create=(e,t)=>new ie({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Me.ZodArray,...T(t)});class se extends I{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),m}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof re&&"strip"===this._def.unknownKeys))for(const i in n.data)o.includes(i)||a.push(i);const l=[];for(const i of o){const e=r[i],t=n.data[i];l.push({key:{status:"valid",value:i},value:e._parse(new O(n,t,n.path,i)),alwaysSet:i in n.data})}if(this._def.catchall instanceof re){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of a)l.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)a.length>0&&(p(n,{code:s.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new O(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of l){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>h.mergeObjectSync(t,e))):h.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return S.errToObj,new se({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,o,i,a;const s=null!==(i=null===(o=(r=this._def).errorMap)||void 0===o?void 0:o.call(r,t,n).message)&&void 0!==i?i:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=S.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new se({...this._def,unknownKeys:"strip"})}passthrough(){return new se({...this._def,unknownKeys:"passthrough"})}extend(e){return new se({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new se({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Me.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new se({...this._def,catchall:e})}pick(e){const t={};return r.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new se({...this._def,shape:()=>t})}omit(e){const t={};return r.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new se({...this._def,shape:()=>t})}deepPartial(){return ae(this)}partial(e){const t={};return r.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new se({...this._def,shape:()=>t})}required(e){const t={};return r.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof ke;)e=e._def.innerType;t[n]=e}})),new se({...this._def,shape:()=>t})}keyof(){return we(r.objectKeys(this.shape))}}se.create=(e,t)=>new se({shape:()=>e,unknownKeys:"strip",catchall:re.create(),typeName:Me.ZodObject,...T(t)}),se.strictCreate=(e,t)=>new se({shape:()=>e,unknownKeys:"strict",catchall:re.create(),typeName:Me.ZodObject,...T(t)}),se.lazycreate=(e,t)=>new se({shape:e,unknownKeys:"strip",catchall:re.create(),typeName:Me.ZodObject,...T(t)});class le extends I{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new l(e.ctx.common.issues)));return p(t,{code:s.invalid_union,unionErrors:n}),m}));{let e;const r=[];for(const i of n){const n={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=r.map((e=>new l(e)));return p(t,{code:s.invalid_union,unionErrors:o}),m}}get options(){return this._def.options}}le.create=(e,t)=>new le({options:e,typeName:Me.ZodUnion,...T(t)});const ce=e=>e instanceof ye?ce(e.schema):e instanceof Se?ce(e.innerType()):e instanceof be?[e.value]:e instanceof _e?e.options:e instanceof xe?r.objectValues(e.enum):e instanceof Oe?ce(e._def.innerType):e instanceof X?[void 0]:e instanceof ee?[null]:e instanceof ke?[void 0,...ce(e.unwrap())]:e instanceof Ce?[null,...ce(e.unwrap())]:e instanceof Ae||e instanceof De?ce(e.unwrap()):e instanceof Ne?ce(e._def.innerType):[];class ue extends I{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return p(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),m;const n=this.discriminator,r=t.data[n],o=this.optionsMap.get(r);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const o of t){const t=ce(o.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,o)}}return new ue({typeName:Me.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...T(n)})}}function de(e,t){const n=a(e),o=a(t);if(e===t)return{valid:!0,data:e};if(n===i.object&&o===i.object){const n=r.objectKeys(t),o=r.objectKeys(e).filter((e=>-1!==n.indexOf(e))),i={...e,...t};for(const r of o){const n=de(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(n===i.array&&o===i.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const o=de(e[r],t[r]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}return n===i.date&&o===i.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class fe extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(y(e)||y(r))return m;const o=de(e.value,r.value);return o.valid?((b(e)||b(r))&&t.dirty(),{status:t.value,value:o.data}):(p(n,{code:s.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}fe.create=(e,t,n)=>new fe({left:e,right:t,typeName:Me.ZodIntersection,...T(n)});class pe extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.array)return p(n,{code:s.invalid_type,expected:i.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return p(n,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&n.data.length>this._def.items.length&&(p(n,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new O(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>h.mergeArray(t,e))):h.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new pe({...this._def,rest:e})}}pe.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new pe({items:e,typeName:Me.ZodTuple,rest:null,...T(t)})};class he extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.object)return p(n,{code:s.invalid_type,expected:i.object,received:n.parsedType}),m;const r=[],o=this._def.keyType,a=this._def.valueType;for(const i in n.data)r.push({key:o._parse(new O(n,i,n.path,i)),value:a._parse(new O(n,n.data[i],n.path,i)),alwaysSet:i in n.data});return n.common.async?h.mergeObjectAsync(t,r):h.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new he(t instanceof I?{keyType:e,valueType:t,typeName:Me.ZodRecord,...T(n)}:{keyType:V.create(),valueType:e,typeName:Me.ZodRecord,...T(t)})}}class me extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.map)return p(n,{code:s.invalid_type,expected:i.map,received:n.parsedType}),m;const r=this._def.keyType,o=this._def.valueType,a=[...n.data.entries()].map((([e,t],i)=>({key:r._parse(new O(n,e,n.path,[i,"key"])),value:o._parse(new O(n,t,n.path,[i,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const r=await n.key,o=await n.value;if("aborted"===r.status||"aborted"===o.status)return m;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const r=n.key,o=n.value;if("aborted"===r.status||"aborted"===o.status)return m;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}}}me.create=(e,t,n)=>new me({valueType:t,keyType:e,typeName:Me.ZodMap,...T(n)});class ge extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.set)return p(n,{code:s.invalid_type,expected:i.set,received:n.parsedType}),m;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(p(n,{code:s.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(p(n,{code:s.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const o=this._def.valueType;function a(e){const n=new Set;for(const r of e){if("aborted"===r.status)return m;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const l=[...n.data.values()].map(((e,t)=>o._parse(new O(n,e,n.path,t))));return n.common.async?Promise.all(l).then((e=>a(e))):a(l)}min(e,t){return new ge({...this._def,minSize:{value:e,message:S.toString(t)}})}max(e,t){return new ge({...this._def,maxSize:{value:e,message:S.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ge.create=(e,t)=>new ge({valueType:e,minSize:null,maxSize:null,typeName:Me.ZodSet,...T(t)});class ve extends I{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return p(t,{code:s.invalid_type,expected:i.function,received:t.parsedType}),m;function n(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_arguments,argumentsError:n}})}function r(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_return_type,returnTypeError:n}})}const o={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Ee){const e=this;return v((async function(...t){const i=new l([]),s=await e._def.args.parseAsync(t,o).catch((e=>{throw i.addIssue(n(t,e)),i})),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,o).catch((e=>{throw i.addIssue(r(c,e)),i}))}))}{const e=this;return v((function(...t){const i=e._def.args.safeParse(t,o);if(!i.success)throw new l([n(t,i.error)]);const s=Reflect.apply(a,this,i.data),c=e._def.returns.safeParse(s,o);if(!c.success)throw new l([r(s,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ve({...this._def,args:pe.create(e).rest(ne.create())})}returns(e){return new ve({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new ve({args:e||pe.create([]).rest(ne.create()),returns:t||ne.create(),typeName:Me.ZodFunction,...T(n)})}}class ye extends I{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ye.create=(e,t)=>new ye({getter:e,typeName:Me.ZodLazy,...T(t)});class be extends I{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:s.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function we(e,t){return new _e({values:e,typeName:Me.ZodEnum,...T(t)})}be.create=(e,t)=>new be({value:e,typeName:Me.ZodLiteral,...T(t)});class _e extends I{constructor(){super(...arguments),k.set(this,void 0)}_parse(e){if("string"!==typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{expected:r.joinValues(n),received:t.parsedType,code:s.invalid_type}),m}if(x(this,k,"f")||E(this,k,new Set(this._def.values),"f"),!x(this,k,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{received:t.data,code:s.invalid_enum_value,options:n}),m}return v(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return _e.create(e,{...this._def,...t})}exclude(e,t=this._def){return _e.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}k=new WeakMap,_e.create=we;class xe extends I{constructor(){super(...arguments),C.set(this,void 0)}_parse(e){const t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==i.string&&n.parsedType!==i.number){const e=r.objectValues(t);return p(n,{expected:r.joinValues(e),received:n.parsedType,code:s.invalid_type}),m}if(x(this,C,"f")||E(this,C,new Set(r.getValidEnumValues(this._def.values)),"f"),!x(this,C,"f").has(e.data)){const e=r.objectValues(t);return p(n,{received:n.data,code:s.invalid_enum_value,options:e}),m}return v(e.data)}get enum(){return this._def.values}}C=new WeakMap,xe.create=(e,t)=>new xe({values:e,typeName:Me.ZodNativeEnum,...T(t)});class Ee extends I{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.promise&&!1===t.common.async)return p(t,{code:s.invalid_type,expected:i.promise,received:t.parsedType}),m;const n=t.parsedType===i.promise?t.data:Promise.resolve(t.data);return v(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Ee.create=(e,t)=>new Ee({type:e,typeName:Me.ZodPromise,...T(t)});class Se extends I{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Me.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),o=this._def.effect||null,i={addIssue:e=>{p(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===o.type){const e=o.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return m;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}));{if("aborted"===t.value)return m;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}}if("refinement"===o.type){const e=e=>{const t=o.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?m:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?m:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===o.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!w(e))return e;const r=o.transform(e.value,i);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>w(e)?Promise.resolve(o.transform(e.value,i)).then((e=>({status:t.value,value:e}))):e))}r.assertNever(o)}}Se.create=(e,t,n)=>new Se({schema:e,typeName:Me.ZodEffects,effect:t,...T(n)}),Se.createWithPreprocess=(e,t,n)=>new Se({schema:t,effect:{type:"preprocess",transform:e},typeName:Me.ZodEffects,...T(n)});class ke extends I{_parse(e){return this._getType(e)===i.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ke.create=(e,t)=>new ke({innerType:e,typeName:Me.ZodOptional,...T(t)});class Ce extends I{_parse(e){return this._getType(e)===i.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ce.create=(e,t)=>new Ce({innerType:e,typeName:Me.ZodNullable,...T(t)});class Oe extends I{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===i.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Oe.create=(e,t)=>new Oe({innerType:e,typeName:Me.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...T(t)});class Ne extends I{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return _(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ne.create=(e,t)=>new Ne({innerType:e,typeName:Me.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...T(t)});class Te extends I{_parse(e){if(this._getType(e)!==i.nan){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.nan,received:t.parsedType}),m}return{status:"valid",value:e.data}}}Te.create=e=>new Te({typeName:Me.ZodNaN,...T(e)});const Ie=Symbol("zod_brand");class Ae extends I{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Pe extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),g(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new Pe({in:e,out:t,typeName:Me.ZodPipeline})}}class De extends I{_parse(e){const t=this._def.innerType._parse(e),n=e=>(w(e)&&(e.value=Object.freeze(e.value)),e);return _(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function Re(e,t={},n){return e?te.create().superRefine(((r,o)=>{var i,a;if(!e(r)){const e="function"===typeof t?t(r):"string"===typeof t?{message:t}:t,s=null===(a=null!==(i=e.fatal)&&void 0!==i?i:n)||void 0===a||a,l="string"===typeof e?{message:e}:e;o.addIssue({code:"custom",...l,fatal:s})}})):te.create()}De.create=(e,t)=>new De({innerType:e,typeName:Me.ZodReadonly,...T(t)});const je={object:se.lazycreate};var Me;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Me||(Me={}));const Le=V.create,ze=Z.create,Fe=Te.create,Be=K.create,Ue=Y.create,qe=Q.create,$e=J.create,He=X.create,We=ee.create,Ve=te.create,Ge=ne.create,Ze=re.create,Ke=oe.create,Ye=ie.create,Qe=se.create,Je=se.strictCreate,Xe=le.create,et=ue.create,tt=fe.create,nt=pe.create,rt=he.create,ot=me.create,it=ge.create,at=ve.create,st=ye.create,lt=be.create,ct=_e.create,ut=xe.create,dt=Ee.create,ft=Se.create,pt=ke.create,ht=Ce.create,mt=Se.createWithPreprocess,gt=Pe.create,vt={string:e=>V.create({...e,coerce:!0}),number:e=>Z.create({...e,coerce:!0}),boolean:e=>Y.create({...e,coerce:!0}),bigint:e=>K.create({...e,coerce:!0}),date:e=>Q.create({...e,coerce:!0})},yt=m;var bt=Object.freeze({__proto__:null,defaultErrorMap:c,setErrorMap:function(e){u=e},getErrorMap:d,makeIssue:f,EMPTY_PATH:[],addIssueToContext:p,ParseStatus:h,INVALID:m,DIRTY:g,OK:v,isAborted:y,isDirty:b,isValid:w,isAsync:_,get util(){return r},get objectUtil(){return o},ZodParsedType:i,getParsedType:a,ZodType:I,datetimeRegex:W,ZodString:V,ZodNumber:Z,ZodBigInt:K,ZodBoolean:Y,ZodDate:Q,ZodSymbol:J,ZodUndefined:X,ZodNull:ee,ZodAny:te,ZodUnknown:ne,ZodNever:re,ZodVoid:oe,ZodArray:ie,ZodObject:se,ZodUnion:le,ZodDiscriminatedUnion:ue,ZodIntersection:fe,ZodTuple:pe,ZodRecord:he,ZodMap:me,ZodSet:ge,ZodFunction:ve,ZodLazy:ye,ZodLiteral:be,ZodEnum:_e,ZodNativeEnum:xe,ZodPromise:Ee,ZodEffects:Se,ZodTransformer:Se,ZodOptional:ke,ZodNullable:Ce,ZodDefault:Oe,ZodCatch:Ne,ZodNaN:Te,BRAND:Ie,ZodBranded:Ae,ZodPipeline:Pe,ZodReadonly:De,custom:Re,Schema:I,ZodSchema:I,late:je,get ZodFirstPartyTypeKind(){return Me},coerce:vt,any:Ve,array:Ye,bigint:Be,boolean:Ue,date:qe,discriminatedUnion:et,effect:ft,enum:ct,function:at,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Re((t=>t instanceof e),t),intersection:tt,lazy:st,literal:lt,map:ot,nan:Fe,nativeEnum:ut,never:Ze,null:We,nullable:ht,number:ze,object:Qe,oboolean:()=>Ue().optional(),onumber:()=>ze().optional(),optional:pt,ostring:()=>Le().optional(),pipeline:gt,preprocess:mt,promise:dt,record:rt,set:it,strictObject:Je,string:Le,symbol:$e,transformer:ft,tuple:nt,undefined:He,union:Xe,unknown:Ge,void:Ke,NEVER:yt,ZodIssueCode:s,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:l})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{30:"69969059",47:"54dd12ac",60:"85d957cd",108:"d2d9c180",110:"2c798565",118:"dcb5482c",132:"cf00f1e7",221:"b740df48",225:"fb54318c",246:"13bb9db2",290:"b4f1e118",310:"b23bf6b2",439:"b6c8d07e",513:"46a664ad",523:"17013d4e",628:"70d08de9",654:"863ea445",710:"87e9f2e0",730:"a22f6f5f",734:"3fe325e9",811:"a0c1e1ce",902:"a1b90b1b",921:"0402e36c",949:"12b4714d",957:"08a1c505",1053:"f976b474",1088:"40c16ea2",1112:"981a6700",1187:"c5435886",1203:"25418a7e",1237:"328d0241",1278:"d5c24e15",1299:"c5282a3d",1321:"401aa9b8",1414:"4cfda0bc",1434:"ef10d528",1486:"8a488ae4",1489:"6247c5c2",1496:"18b1eb19",1606:"87e97214",1627:"80c94ebf",1657:"d6f0b340",1696:"6120f4a8",1747:"f01c9fd8",1756:"b612458a",1836:"ea2a4537",1865:"72c933c8",1917:"e3ac9c6d",1956:"c11f9b8a",1975:"e3066826",2016:"397296b7",2042:"81e83eeb",2053:"b4294b46",2161:"865bcd48",2162:"cca3e026",2166:"e382ccb1",2182:"1e53f745",2252:"b5be42b8",2286:"e992ffd4",2308:"9e3a980c",2350:"a7af0a2e",2372:"9bfbe824",2466:"b8b05e16",2518:"ac97d255",2568:"5bec7af3",2612:"55127fa0",2626:"a5b0d58c",2726:"f30887a6",2742:"d5c8fae8",2775:"9105769d",2776:"0f5e87f5",2828:"2fd53975",2854:"48cc58dc",2984:"df749ebe",2994:"6c6016a8",3008:"c8aa656b",3033:"06c03554",3048:"692b5966",3121:"74e9e7dc",3158:"3f2d4e5f",3207:"168a615b",3218:"6f8c9799",3230:"dbae485f",3238:"380762b8",3321:"3370cf83",3333:"eb9ec516",3338:"83fe4e63",3410:"6391755f",3415:"b30ca44e",3478:"480dafa6",3510:"0740f36d",3521:"775b3981",3534:"3f09429a",3638:"ee3efb24",3648:"3a72999a",3653:"06b5272c",3672:"12436dd6",3679:"e293221d",3702:"778880f9",3756:"9a440b73",3761:"dd957fd1",3769:"860e8d58",3822:"00ab6aaa",3872:"b04e09bf",3879:"17f211ad",3902:"973b73c6",3940:"273724e5",3952:"ce1b4fad",3977:"4c33ec16",4096:"33f702a0",4169:"f2243012",4180:"1de6c8ba",4324:"c69948f7",4335:"b2a023a8",4349:"9c8d20fd",4401:"f46d19f6",4441:"2b4963cf",4534:"b98f1389",4542:"18433910",4582:"5bf174ff",4601:"39745c4e",4614:"3993436e",4652:"9a5d2242",4662:"1c10232d",4678:"4e2f4af4",4730:"78e66e9a",4818:"6beda30c",4847:"63c73f0a",4870:"22c3bb79",4872:"abdc9054",4891:"c441be74",5027:"9e6325ef",5047:"ebc9f1b2",5050:"ffa3921f",5161:"20e37d15",5210:"566d9075",5252:"80fc836d",5382:"3a2e6ac6",5401:"dfb63825",5418:"00d0c5d1",5453:"921caa82",5454:"e8f64f1a",5475:"20ce4f75",5542:"7c13d444",5579:"a2c9515c",5634:"0a0bddae",5636:"da9c4c85",5647:"0920ef73",5685:"c0a21a10",5759:"52418ea5",5816:"144b5755",5819:"0ae2eb3d",5853:"0c5ec1d1",5866:"d7ea2c00",5875:"af30e4a7",5888:"4fa64369",5924:"53ba4f49",5950:"28656717",5953:"cb95c45e",5988:"38ef363d",6012:"aac08e72",6047:"328b41a5",6114:"c74edf11",6210:"69d6a30a",6214:"c63fd980",6261:"78de43a8",6262:"44dba84f",6324:"de01edfb",6342:"a2819c87",6358:"2997762b",6374:"be0c5879",6397:"b46d0b55",6405:"b0dd94a9",6447:"08677ae3",6539:"39f8bd0e",6541:"a39e9d6a",6554:"70d080f7",6625:"a8d44d36",6658:"b22172da",6664:"b4dbf019",6708:"4a755add",6786:"28af14f6",6833:"584b7806",6879:"2965a366",6881:"7e6434c9",6947:"0d51a0cf",6989:"23c1d1b9",6990:"d7efc318",7118:"ce0cd05f",7148:"ef54cd41",7206:"6b7278f5",7240:"a674bc94",7329:"a17ffd6a",7348:"eac33db2",7357:"a518ad9e",7380:"38a8eedf",7420:"d0c66c34",7548:"fd5d2b6c",7574:"8ac9803d",7579:"079e5569",7605:"cdc8f605",7638:"5489d672",7642:"39707d60",7692:"af7181c9",7697:"44af783d",7718:"98954359",7748:"3ec14243",7878:"1f9512c4",7946:"3b4cf6fd",7962:"43ffbad7",7970:"80caf61d",8008:"da36f479",8014:"eb9f97f2",8053:"71be175a",8081:"5fafc7dc",8103:"00c9e9c1",8119:"196e82ef",8234:"7512920e",8256:"a2ce240a",8517:"cf981031",8534:"f7aec532",8546:"810f324c",8633:"da605a09",8704:"87492da1",8706:"755fcb81",8821:"fb95fc65",8840:"5eb376ca",8890:"9f3d8f08",8979:"d6e940f4",8986:"5e9e2b69",9010:"4bfaf5fa",9025:"6ae28867",9067:"254af4a9",9174:"ae7682da",9176:"3f08336f",9220:"a9f48eb9",9222:"a1913f85",9243:"cb95c73b",9312:"5eb8d4b1",9394:"ca56f408",9433:"4cf14d1c",9466:"0afe6e6e",9518:"3fffdd45",9523:"ac019963",9582:"c09a3623",9606:"fc9247cb",9697:"bed5988b",9707:"72e68790",9725:"a94823a0",9728:"0d021c0f",9748:"e711e962",9778:"52ad76ce",9801:"b9143d43",9842:"b8ba19ad",9872:"65a6fae7",9882:"b983931a",9908:"4bd3acb1",9922:"367b63b0"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{1203:"5dcd19b9",1489:"6e73d562",2828:"3c5a5933",3207:"6c42f157",3230:"e4288e80",3415:"b2295207",3940:"7f9420b9",4335:"aaba50a9",4614:"16135447",6539:"11185331",6947:"7cffb936",6989:"10e247c3",8593:"397b88bd"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="ydb-embedded-ui:";n.l=(r,o,i,a)=>{if(e[r])e[r].push(o);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[o];var f=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="./",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var o=n.miniCssF(e),i=n.p+o;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var a;if((o=(a=i[r]).getAttribute("data-href"))===e||o===t)return a}})(o,i))return t();((e,t,r,o,i)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)o();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=s,a.parentNode&&a.parentNode.removeChild(a),i(l)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,i,null,t,r)})),t={8792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{1203:1,1489:1,2828:1,3207:1,3230:1,3415:1,3940:1,4335:1,4614:1,6539:1,6947:1,6989:1,8593:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={8792:0};n.f.j=(t,r)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else if(8593!=t){var i=new Promise(((n,r)=>o=e[t]=[n,r]));r.push(o[2]=i);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,o[1](s)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,r)=>{var o,i,[a,s,l]=r,c=0;if(a.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)l(n)}for(t&&t(r);c<a.length;c++)i=a[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(5906),t=n(2764),r=n(42566),o=n(54878);const{store:i,history:a}=(0,o.U1)();var s=n(60712);!async function(){let r;r=await Promise.resolve().then(n.bind(n,2764)).then((({SingleClusterApp:e})=>e));const o=document.getElementById("root");if(!o)throw new Error("Can't find root element");e.createRoot(o).render((0,s.jsx)(t.ErrorBoundary,{children:(0,s.jsx)(r,{store:i,history:a})}))}(),(0,r.A)()})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/main.73969f38.js b/ydb/core/viewer/monitoring/static/js/main.73969f38.js new file mode 100644 index 00000000000..67d9c17f9fd --- /dev/null +++ b/ydb/core/viewer/monitoring/static/js/main.73969f38.js @@ -0,0 +1,2 @@ +/*! For license information please see main.73969f38.js.LICENSE.txt */ +(()=>{var e={71661:(e,t,n)=>{"use strict";n.d(t,{s:()=>l});var r=n(84375),o=n(77506),i=n(60712);const a=(0,o.cn)("ydb-cell-with-popover"),s=100;function l({children:e,className:t,wrapperClassName:n,fullWidth:o,...l}){return(0,i.jsx)("div",{className:a({"full-width":o},n),children:(0,i.jsx)(r.A,{delayClosing:s,delayOpening:s,className:a("popover",{"full-width":o},t),...l,children:e})})}},34271:(e,t,n)=>{"use strict";n.d(t,{I:()=>a,x:()=>s});var r=n(59284),o=n(60712);const i=r.createContext(void 0);function a({children:e,registry:t}){return(0,o.jsx)(i.Provider,{value:t,children:e})}function s(e){const t=r.useContext(i);if(void 0===t)throw new Error("useComponent must be used within ComponentsProvider");return t.get(e)}},1064:(e,t,n)=>{"use strict";n.d(t,{S:()=>v});var r=n(59284),o=n(16332),i=n(2198),a=n(23871),s=n(77506),l=n(25196);const c=(0,n(99006)._)((()=>Promise.all([n.e(6820),n.e(8452),n.e(5438)]).then(n.bind(n,45438))),"ConnectToDBSyntaxHighlighter");var u=n(63636);var d=n(60712);const f=(0,s.cn)("ydb-connect-to-db"),p=[{id:"bash",title:"Bash"},{id:"cpp",title:"C++"},{id:"csharp",title:"C# (.NET)"},{id:"go",title:"Go"},{id:"java",title:"Java"},{id:"javascript",title:"Node JS"},{id:"php",title:"PHP"},{id:"python",title:"Python"}];function h({open:e,onClose:t,database:n,endpoint:o}){const[s,h]=r.useState("bash"),m=function(e,t){switch(e){case"cpp":return function({database:e,endpoint:t}){return`auto connectionParams = TConnectionsParams()\n .SetEndpoint("${null!==t&&void 0!==t?t:"<endpoint>"}")\n .SetDatabase("${null!==e&&void 0!==e?e:"/<database>"}")\n .SetAuthToken(GetEnv("YDB_TOKEN"));\n\nTDriver driver(connectionParams);`}(t);case"csharp":return function({database:e,endpoint:t}){return`var config = new DriverConfig(\n endpoint: "${null!==t&&void 0!==t?t:"<endpoint>"}",\n database: "${null!==e&&void 0!==e?e:"/<database>"}",\n credentials: credentialsProvider\n);\n\nusing var driver = new Driver(\n config: config\n);\n\nawait driver.Initialize();`}(t);case"go":return function({database:e,endpoint:t}){return`package main\n\nimport (\n "context"\n "os"\n\n "github.com/ydb-platform/ydb-go-sdk/v3"\n "github.com/ydb-platform/ydb-go-sdk/v3/table"\n)\n\nfunc main() {\n ctx, cancel := context.WithCancel(context.Background())\n defer cancel()\n db, err := ydb.Open(ctx,\n "${null!==t&&void 0!==t?t:"<endpoint>"}${null!==e&&void 0!==e?e:"/<database>"}",\n ydb.WithAccessTokenCredentials(os.Getenv("YDB_ACCESS_TOKEN_CREDENTIALS")),\n )\n if err != nil {\n panic(err)\n }\n\n defer db.Close(ctx)\n\n err = db.Table().Do(ctx,\n func(ctx context.Context, s table.Session) error {\n _, res, err := s.Execute(\n ctx,\n table.TxControl(table.BeginTx(table.WithOnlineReadOnly()), table.CommitTx()),\n "SELECT 'Hello, world!'",\n nil,\n )\n if err != nil {\n return err\n }\n defer res.Close()\n var val string\n\n for res.NextResultSet(ctx) {\n for res.NextRow() {\n err = res.Scan(&val)\n if err != nil {\n return err\n }\n println(val)\n }\n }\n return res.Err()\n })\n if err != nil {\n panic(err)\n }\n}`}(t);case"java":return function({database:e,endpoint:t}){return`package com.example;\n\nimport java.io.IOException;\nimport java.nio.charset.Charset;\n\nimport tech.ydb.core.grpc.GrpcTransport;\nimport tech.ydb.table.SessionRetryContext;\nimport tech.ydb.table.TableClient;\nimport tech.ydb.table.query.DataQueryResult;\nimport tech.ydb.table.result.ResultSetReader;\nimport tech.ydb.table.transaction.TxControl;\nimport tech.ydb.auth.TokenAuthProvider;\n\npublic class YDBConnect {\n public static void main(String[] args) throws IOException {\n try (GrpcTransport transport = GrpcTransport.forEndpoint(\n "${null!==t&&void 0!==t?t:"<endpoint>"}",\n "${null!==e&&void 0!==e?e:"/<database>"}")\n .withAuthProvider(new TokenAuthProvider(System.getenv("YDB_ACCESS_TOKEN_CREDENTIALS")))\n .build()) {\n try (TableClient tableClient = TableClient.newClient(transport)\n .build()) {\n SessionRetryContext retryCtx = SessionRetryContext.create(tableClient).build();\n DataQueryResult queryResult = retryCtx.supplyResult(\n session -> session.executeDataQuery("SELECT 'Hello, world!'", TxControl.serializableRw())\n ).join().getValue();\n\n ResultSetReader rsReader = queryResult.getResultSet(0);\n while (rsReader.next()) {\n System.out.println(rsReader.getColumn(0).getBytesAsString(Charset.forName("utf8")));\n }\n }\n }\n }\n}`}(t);case"javascript":return function({database:e,endpoint:t}){return`const {Driver, getCredentialsFromEnv, getLogger} = require('ydb-sdk');\n\nconst logger = getLogger({level: 'debug'});\nconst endpoint = '${null!==t&&void 0!==t?t:"<endpoint>"}';\nconst database = '${null!==e&&void 0!==e?e:"/<database>"}';\nconst authService = getCredentialsFromEnv();\nconst driver = new Driver({endpoint, database, authService});\n\nasync function run() {\n if (!await driver.ready(100)) {\n logger.fatal('Driver has not become ready in 10 seconds!');\n process.exit(1);\n }\n\n await driver.tableClient.withSession(async (session) => {\n res = await session.executeQuery("SELECT 'Hello, world!'")\n console.log(res.resultSets[0].rows[0].items[0].bytesValue.toString())\n return\n });\n\n process.exit(0)\n}\n\nrun();`}(t);case"php":return function({database:e,endpoint:t}){return`<?php\n\nuse YdbPlatform\\Ydb\\Ydb;\n\n$config = [\n // Database path\n 'database' => '${null!==e&&void 0!==e?e:"/<database>"}',\n\n // Database endpoint\n 'endpoint' => '${null!==t&&void 0!==t?t:"<endpoint>"}',\n\n // Auto discovery (dedicated server only)\n 'discovery' => false,\n\n // IAM config\n 'iam_config' => [\n // 'root_cert_file' => './CA.pem', Root CA file (uncomment for dedicated server only)\n ],\n\n 'credentials' => new AccessTokenAuthentication('<token>') // use from reference/ydb-sdk/auth\n];\n\n$ydb = new Ydb($config);`}(t);case"python":return function({database:e,endpoint:t}){return`#!/usr/bin/python3\nimport ydb\n\ndriver_config = ydb.DriverConfig(\n '${t||"<endpoint>"}', '${null!==e&&void 0!==e?e:"/<database>"}',\n credentials=ydb.credentials_from_env_variables(),\n)\nprint(driver_config)\nwith ydb.Driver(driver_config) as driver:\n try:\n driver.wait(10)\n session = driver.table_client.session().create()\n with session.transaction() as tx:\n query = "SELECT 'Hello, world!'"\n result_set = tx.execute(query)[0]\n for row in result_set.rows:\n print(row)\n except TimeoutError:\n print("Connect failed to YDB")\n print("Last reported errors by discovery:")\n print(driver.discovery_debug_details())`}(t);default:return function({database:e,endpoint:t}){return`ydb -e ${t||"<endpoint>"} --token-file ~/my_token\n -d ${null!==e&&void 0!==e?e:"/<database>"} table query execute -q 'SELECT "Hello, world!"'`}(t)}}(s,{database:n,endpoint:o}),g=function(e){switch(e){case"bash":return(0,u.A)("docs_bash");case"cpp":return(0,u.A)("docs_cpp");case"csharp":return(0,u.A)("docs_dotnet");case"go":return(0,u.A)("docs_go");case"java":return(0,u.A)("docs_java");case"javascript":return(0,u.A)("docs_nodejs");case"php":return(0,u.A)("docs_php");case"python":return(0,u.A)("docs_python");default:return}}(s);return(0,d.jsxs)(i.l,{open:e,hasCloseButton:!0,onClose:t,size:"l",children:[(0,d.jsx)(i.l.Header,{caption:(0,u.A)("header")}),(0,d.jsxs)(i.l.Body,{children:[(0,d.jsx)("div",{children:(0,u.A)("connection-info-message")}),(0,d.jsx)(a.t,{size:"m",allowNotSelected:!1,activeTab:s,items:p,onSelectTab:e=>h(e),className:f("dialog-tabs")}),(0,d.jsx)("div",{className:f("snippet-container"),children:(0,d.jsx)(c,{language:s,text:m})}),g?(0,d.jsx)(l.K,{className:f("docs"),title:(0,u.A)("documentation"),url:g}):null]}),(0,d.jsx)(i.l.Footer,{onClickButtonCancel:t,textButtonCancel:(0,u.A)("close")})]})}const m=o.Ay.create((e=>{const t=o.Ay.useModal();return(0,d.jsx)(h,{...e,onClose:()=>{t.resolve(!1),t.hide(),t.remove()},open:t.visible})})),g="connect-to-db-dialog";async function v(e){return await o.Ay.show(g,{id:g,...e})}o.Ay.register(g,m)},63636:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(48372);const o=JSON.parse('{"header":"Connect to the database","connection-info-message":"Use the following code to connect to the database","documentation":"Documentation","close":"Close","copy":"Copy","docs_bash":"https://ydb.tech/docs/en/concepts/connect","docs_cpp":"https://ydb.tech/docs/en/dev/example-app/example-cpp","docs_dotnet":"https://ydb.tech/docs/en/dev/example-app/example-dotnet","docs_go":"https://ydb.tech/docs/en/dev/example-app/go","docs_java":"https://ydb.tech/docs/en/dev/example-app/java","docs_nodejs":"https://ydb.tech/docs/en/dev/example-app/example-nodejs","docs_php":"https://ydb.tech/docs/en/dev/example-app/example-php","docs_python":"https://ydb.tech/docs/en/dev/example-app/python"}'),i=(0,r.g4)("ydb-connect-to-db",{en:o})},7889:(e,t,n)=>{"use strict";n.d(t,{p:()=>_,q:()=>E});var r,o,i,a,s,l,c,u,d,f,p,h=n(99991),m=n(77506),g=n(59284);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(null,arguments)}const y=function(e){return g.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 383 396",fill:"none"},e),r||(r=g.createElement("path",{d:"M307.333 168.43c9.4-14.2 14.1-32.6 14.1-55.3 0-34.4-11.7-61.9-35.3-82.2-23.4-20.5-63-30.7-106.7-30.7-13.1 0-24.1.9-34.8 2.7-10.7 1.8-20.1 3.9-28.2 6.3-5.4 1.6-16.1 5.7-23.3 8.6-4.1 1.7-6.9 6-6.9 10.8v39.5c0 8.2 7.8 13.8 14.9 10.5a458.74 458.74 0 001.806-.818c2.367-1.074 4.452-2.02 5.894-2.581 5.7-2.3 12.4-4.2 20.1-5.8 7.7-1.6 16.3-2.4 25.7-2.4 22.2 0 43.1 5 52.3 14.9 9.2 10 13.8 22.499 13.8 37.499 0 13-2.7 24.1-8.2 33.2-5.5 9.1-13.1 18-22.9 26.5-7.9 6.9-15.2 13.5-22 19.8-6.8 6.3-12.6 13.2-17.5 20.7s-8.7 16-11.3 25.3c-1.6 5.6-2.7 20.3-3.3 31-.3 6.6 4.5 12.2 10.7 12.2h51.2c5.4 0 10-4.4 10.6-10.2.6-5.7 2-12.5 5.5-17.8 4-5.9 8.7-11.8 14.7-17.3s13-11 20.9-16.7c8-5.6 16.2-12.1 24.9-19.4 12.8-11.4 23.9-24.1 33.3-38.3zm-167.6 212.7c9 9.5 20.1 14.2 33.4 14.2 6.3 0 12.4-1.3 18.2-4 5.8-2.6 10.9-6 15.2-10.3 4.3-4.3 7.7-9.4 10.2-15.2 2.5-5.8 3.7-12.1 3.7-19 0-6.8-1.2-13.2-3.7-19-2.5-5.8-5.9-10.9-10.2-15.4-4.3-4.5-9.4-7.9-15.2-10.3-5.8-2.4-11.9-3.6-18.2-3.6-13.3 0-24.4 4.6-33.4 13.9s-13.5 20.8-13.5 34.5c0 13.4 4.5 24.8 13.5 34.2z",fill:"#ECF2F9"})),o||(o=g.createElement("path",{d:"M213.933 353.03h-193.5c-10 0-18.2-8.2-18.2-18.2v-125.4c0-10 8.2-18.2 18.2-18.2h193.5c10 0 18.2 8.2 18.2 18.2v125.4c0 10.1-8.2 18.2-18.2 18.2z",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),i||(i=g.createElement("path",{d:"M21.034 214.732a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.899 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.9 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4z",fill:"#2EE5C0"})),a||(a=g.createElement("path",{d:"M2.533 228.129h228.9",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),s||(s=g.createElement("path",{d:"M301.033 264.83l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5V96.93c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#027BF3"})),l||(l=g.createElement("path",{d:"M90.433 107.93c3.4.2 6.1-2.4 6.1-5.8s-2.7-6.3-6.1-6.4c-3.3-.2-6.1 2.4-6.1 5.8s2.7 6.3 6.1 6.4zm19.8.798c3.3.1 6-2.5 6-5.8s-2.7-6.1-6-6.3c-3.3-.1-6 2.5-6 5.8s2.7 6.2 6 6.3zm25.2-4.9c0 3.3-2.6 5.9-5.8 5.7-3.2-.1-5.9-2.9-5.9-6.2 0-3.3 2.6-5.9 5.9-5.7 3.2.1 5.8 2.9 5.8 6.2zm66.001 61.703l19.1-20.9 17.4 19.1-18.9 20.9 18.9 20.5-17.4 19.5-19.1-20.5-19.4 21.5-18.1-19.1 19.6-21.5-19.6-21 18.1-19.5 19.4 21z",fill:"#fff"})),c||(c=g.createElement("path",{d:"M327.433 112.83c0-28.4-21.7-37.1-33.5-37.9-.1 0-33.5 2.3-33.5 45.3 0 25.5 21.2 45.5 46 44.6 7.8-.3 14.9-2.6 21-6.4v-45.6z",fill:"#67B0F8"})),u||(u=g.createElement("path",{d:"M380.534 195.931c-2.9 3.4-7.6 3.7-10.5.8l-38.6-39 11.3-12.2 37.8 39c2.9 3 2.9 8 0 11.4z",fill:"#FF4645"})),d||(d=g.createElement("path",{d:"M342.833 145.629l-11.3 12.2 3.7 3.7c1.9 1.9 4.9 2 6.8.2 1.1-1 2.2-2.1 3.2-3.2.6-.7 1.3-1.4 1.9-2.1 1.6-1.9 1.5-4.8-.3-6.6l-4-4.2z",fill:"#D93654"})),f||(f=g.createElement("path",{d:"M267.633 154.13c-23-21.401-23-57.3 0-78.1 21.9-19.8 55.1-17 74.4 4.3 18.4 20.399 18.4 51.7 0 71.6-19.3 20.8-52.5 22.6-74.4 2.2zm9.4-10.802c15.6 15 39.8 14.2 54.1-.9 13.8-14.6 13.8-37.8 0-52.8-14.3-15.5-38.5-17-54.1-2.5-16.2 15.1-16.2 40.7 0 56.2z",fill:"#00236B"})),p||(p=g.createElement("path",{d:"M41.034 42.73a2 2 0 10-4 0h4zm-4 8.3a2 2 0 004 0h-4zm4 17.2a2 2 0 10-4 0h4zm-4 8.9a2 2 0 004 0h-4zm19.2-15.2a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm-17.9 4a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm15.1-15.2v8.3h4v-8.3h-4zm0 25.5v8.9h4v-8.9h-4zm19.2-10.3h-8.2v4h8.2v-4zm-26.1 0h-8.2v4h8.2v-4z",fill:"#2EE5C0"})))};var b=n(60712);const w=(0,m.cn)("empty-state"),x={s:150,m:250,l:350},_=({image:e,title:t,description:n,actions:r,size:o="m",position:i="center"})=>(0,b.jsx)("div",{className:w({size:o}),children:(0,b.jsxs)("div",{className:w("wrapper",{size:o,position:i}),children:[(0,b.jsx)("div",{className:w("image"),children:e||(0,b.jsx)(h.I,{data:y,width:x[o],height:x[o]})}),(0,b.jsx)("div",{className:w("title",{size:o}),children:t}),(0,b.jsx)("div",{className:w("description"),children:n}),(0,b.jsx)("div",{className:w("actions"),children:r})]})});function E({isEmpty:e,children:t,className:n,...r}){return e?(0,b.jsx)("div",{className:n,children:(0,b.jsx)(_,{...r})}):t}},88632:(e,t,n)=>{"use strict";n.d(t,{tH:()=>L,jt:()=>F,lQ:()=>z});var r=n(59284),o=n(41668),i=n(90826);const a=r.createContext(void 0),s=r.createContext(void 0);function l(e){const{size:t,disabled:n,defaultExpanded:o,arrowPosition:l,summary:c,keepMounted:u,onUpdate:d,expanded:f}=e,[p,h]=r.useState((()=>Boolean(o))),m=void 0!==f,g=(0,i.u)(),v=`disclosure${g}`;return r.createElement(a.Provider,{value:{size:t,disabled:n,summary:c,arrowPosition:l,keepMounted:u,expanded:m?f:p,ariaControls:g,ariaLabelledby:v}},r.createElement(s.Provider,{value:()=>{h((e=>!e));d(m?!f:!p)}},e.children))}function c(){const e=r.useContext(a);if(void 0===e)throw new Error("useDisclosureAttributes must be used within DisclosureProvider");return e}var u=n(72630),d=n(6826);const f=(0,n(69220).om)("disclosure"),p="disclosure-summary",h="disclosure-details";function m({children:e}){const t=r.useRef(null),{ariaControls:n,ariaLabelledby:o,keepMounted:i,expanded:a}=c();return r.createElement(u.A,{nodeRef:t,in:a,addEndListener:e=>{var n;return null===(n=t.current)||void 0===n?void 0:n.addEventListener("animationend",e)},classNames:(0,d.L)(f),mountOnEnter:!i,unmountOnExit:!i,appear:!0},r.createElement("div",{ref:t,id:n,role:"region","aria-labelledby":o,className:f("content",{visible:a}),"data-qa":h},e))}m.displayName="DisclosureDetails";var g=n(33705),v=n(27629);const y={m:14,l:16,xl:20};function b(){(0,v.m)('[Disclosure] Physical values (left, right) of "arrowPosition" property are deprecated. Use logical values (start, end) instead.')}function w({children:e}){const t=function(){const e=r.useContext(s);if(void 0===e)throw new Error("useToggleDisclosure must be used within DisclosureProvider");return e}(),{ariaControls:n,ariaLabelledby:o,expanded:i,disabled:a}=c(),l={onClick:t,ariaControls:n,id:o,expanded:i,disabled:a};return e(l,r.createElement(x,Object.assign({},l)))}function x({onClick:e,ariaControls:t,id:n,expanded:o,disabled:i}){const{size:a,summary:s,arrowPosition:l}=c();let u=l;return"left"===u&&(b(),u="start"),"right"===u&&(b(),u="end"),r.createElement("button",{type:"button","aria-expanded":o,className:f("trigger",{disabled:i,arrow:u}),"aria-controls":t,id:n,onClick:e,disabled:i,"data-qa":p},r.createElement(g.I,{size:y[a],direction:o?"top":"bottom"}),s)}w.displayName="DisclosureSummary";const _=(0,o.g)(w),E=r.forwardRef((function(e,t){const{size:n="m",disabled:o=!1,defaultExpanded:i=!1,arrowPosition:a="start",summary:s="",className:c,keepMounted:u=!0,children:d,onUpdate:p=()=>{},expanded:h,qa:g}=e,[v,y]=function(e){const t=r.Children.toArray(e);let n,o;const i=[];for(const r of t){if(_(r)){if(n)throw new Error("Only one <Disclosure.Summary> component is allowed");n=r}else i.push(r)}i.length>0&&(o=r.createElement(m,null,i));n||(n=r.createElement(w,null,(e=>r.createElement(x,Object.assign({},e)))));return[n,o]}(d);return r.createElement(l,{disabled:o,defaultExpanded:i,expanded:h,keepMounted:u,size:n,summary:s,arrowPosition:a,onUpdate:p},r.createElement("section",{ref:t,className:f({size:n},c),"data-qa":g},v,y))}));E.Summary=w,E.displayName="Disclosure";var S=n(84476);const k=(0,r.createContext)(null),C={didCatch:!1,error:null};class O extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=C}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(C)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(C))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:o}=this.props,{didCatch:i,error:a}=this.state;let s=e;if(i){const e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"===typeof t)s=t(e);else if(n)s=(0,r.createElement)(n,e);else{if(void 0===o)throw a;s=o}}return(0,r.createElement)(k.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}var N=n(77506);var T=n(34271),A=n(78524),I=n(48372);const P=JSON.parse('{"error-title":"Something went wrong","error-description":"We have something broken, but don\'t worry, it won\'t last long","show-details":"Show details","report-problem":"Report a problem","button-reset":"Try again"}'),D=JSON.parse('{"error-title":"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a","error-description":"\u0423 \u043d\u0430\u0441 \u0447\u0442\u043e-\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c, \u043d\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0439\u0442\u0435, \u044d\u0442\u043e \u043d\u0435\u043d\u0430\u0434\u043e\u043b\u0433\u043e","show-details":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u0438","report-problem":"\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435","button-reset":"\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u043d\u043e\u0432\u0430"}'),R=(0,I.g4)("ydb-error-boundary",{ru:D,en:P});var j=n(60712);const M=(0,N.cn)("ydb-error-boundary");function L({children:e}){const t=(0,T.x)("ErrorBoundary");return(0,j.jsx)(t,{children:e})}function z({children:e,useRetry:t=!0,onReportProblem:n}){return(0,j.jsx)(O,{onError:(e,t)=>{var n;!function(e,t,n="error"){var r;"undefined"!==typeof window&&null!==(r=window.Ya)&&void 0!==r&&r.Rum?window.Ya.Rum.logError({additional:{url:window.location.href},type:n,message:t,level:window.Ya.Rum.ERROR_LEVEL.ERROR},e):console.error(e)}(e,null!==(n=t.componentStack)&&void 0!==n?n:void 0,"error-boundary")},fallbackRender:({error:e,resetErrorBoundary:r})=>(0,j.jsx)(F,{error:e,useRetry:t,resetErrorBoundary:r,onReportProblem:n}),children:e})}function F({error:e,resetErrorBoundary:t,useRetry:n,onReportProblem:r}){return(0,j.jsxs)("div",{className:M(),children:[(0,j.jsx)(A.v,{name:"error",className:M("illustration")}),(0,j.jsxs)("div",{className:M("content"),children:[(0,j.jsx)("h2",{className:M("error-title"),children:R("error-title")}),(0,j.jsx)("div",{className:M("error-description"),children:R("error-description")}),(0,j.jsx)(E,{summary:R("show-details"),className:M("show-details"),size:"m",children:(0,j.jsx)("pre",{className:M("error-details"),children:e.stack})}),(0,j.jsxs)("div",{className:M("actions"),children:[n&&(0,j.jsx)(S.$,{view:"outlined",onClick:t,children:R("button-reset")}),r&&(0,j.jsx)(S.$,{view:"outlined",onClick:()=>r(e),children:R("report-problem")})]})]})]})}},59109:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(7889),o=n(78524),i=n(31062),a=n(60712);const s=({title:e,description:t,...n})=>(0,a.jsx)(r.p,{image:(0,a.jsx)(o.v,{name:"403"}),title:e||(0,i.A)("403.title"),description:t||(0,i.A)("403.description"),...n})},64689:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(59284),o=n(81288),i=n(7889),a=n(78524),s=n(59109),l=n(44508),c=n(31062),u=n(60712);function d({title:e,description:t,error:n,children:d,...f}){return(0,o.uP)(n)?null:(0,o.Pq)(n)?(0,u.jsx)(s.O,{title:e,description:t,...f}):n||t?(0,u.jsx)(i.p,{image:(0,u.jsx)(a.v,{name:"error"}),title:e||(0,c.A)("error.title"),description:n?(0,u.jsx)(l.o,{error:n}):t,...f}):(0,u.jsx)(r.Fragment,{children:d})}},79553:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(31062),o=n(60712);const i=({error:e,className:t,defaultMessage:n=(0,r.A)("responseError.defaultMessage")})=>{let i="";return e&&"string"===typeof e&&(i=e),e&&"object"===typeof e&&("data"in e&&"string"===typeof e.data?i=e.data:"statusText"in e&&"string"===typeof e.statusText?i=e.statusText:"message"in e&&"string"===typeof e.message&&(i=e.message)),(0,o.jsx)("div",{className:`error ${t}`,children:i||n})}},44508:(e,t,n)=>{"use strict";n.d(t,{o:()=>r.o});var r=n(79553)},31062:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(48372);const o=JSON.parse('{"403.title":"Access denied","403.description":"You don\u2019t have the necessary roles to view this page.","responseError.defaultMessage":"Response error","error.title":"Error"}'),i=JSON.parse('{"403.title":"\u0414\u043e\u0441\u0442\u0443\u043f \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d","403.description":"\u0423 \u0432\u0430\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0430\u0432 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.","responseError.defaultMessage":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","error.title":"\u041e\u0448\u0438\u0431\u043a\u0430"}'),a=(0,r.g4)("ydb-errors-access-denied",{ru:i,en:o})},78524:(e,t,n)=>{"use strict";n.d(t,{v:()=>c});var r=n(59284),o=n(22680),i=n(77506),a=n(60712);const s={light:{403:()=>n.e(7329).then(n.bind(n,67329)),thumbsUp:()=>n.e(3238).then(n.bind(n,73238)),error:()=>n.e(3872).then(n.bind(n,3872))},dark:{403:()=>n.e(1299).then(n.bind(n,81299)),thumbsUp:()=>n.e(5875).then(n.bind(n,98256)),error:()=>n.e(6990).then(n.bind(n,56990))}},l=(0,i.cn)("kv-illustration"),c=({name:e,className:t,...n})=>{const i=(0,o.i)(),[c,u]=r.useState(""),d=s[i]&&s[i][e];return r.useEffect((()=>{"function"===typeof d&&d().then((e=>u(e.default))).catch((e=>{console.error(e),u("")}))}),[d]),c?(0,a.jsx)("img",{alt:e,src:c,className:l(null,t),...n}):null}},18863:(e,t,n)=>{"use strict";n.d(t,{z:()=>l});var r=n(59284),o=n(77506),i=n(5741),a=n(60712);const s=(0,o.cn)("info-viewer"),l=({title:e,info:t,dots:n=!0,size:o,className:l,multilineLabels:c,renderEmptyState:u})=>t&&t.length||!u?(0,a.jsxs)("div",{className:s({size:o},l),children:[e&&(0,a.jsx)("div",{className:s("title"),children:e}),t&&t.length>0?(0,a.jsx)("div",{className:s("items"),children:t.map(((e,t)=>(0,a.jsxs)("div",{className:s("row"),children:[(0,a.jsxs)("div",{className:s("label"),children:[(0,a.jsx)("div",{className:s("label-text",{multiline:c}),children:e.label}),n&&(0,a.jsx)("div",{className:s("dots")})]}),(0,a.jsx)("div",{className:s("value"),children:e.value})]},t)))}):(0,i.A)("no-data")]}):(0,a.jsx)(r.Fragment,{children:u({title:e,size:o})})},5741:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(48372);const o=JSON.parse('{"common.created":"Created","common.type":"Type","no-data":"No data"}'),i=(0,r.g4)("ydb-components-info-viewer",{en:o})},60073:(e,t,n)=>{"use strict";n.d(t,{Hr:()=>o.H,jl:()=>o.j,z_:()=>r.z});var r=n(18863),o=n(82176)},82176:(e,t,n)=>{"use strict";function r(e,t){var n;return null!==(n=t[e])&&void 0!==n?n:e}function o(e,t,n,r){const o=n[e]||r;return o?o(t):t}function i({values:e,labels:t,defaultValueFormatter:n}){return(i,a)=>({label:r(i,t||{}),value:o(i,a,e||{},n)})}n.d(t,{H:()=>i,j:()=>a});const a=(e,t)=>t?Object.entries(t).map((([t,n])=>e(t,n))).filter((({value:e})=>Boolean(e))):[]},82015:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(52905),o=n(77506),i=n(60712);const a=(0,o.cn)("g-link"),s=({className:e,to:t,onClick:n,...o})=>t?(0,i.jsx)(r.N_,{to:t,onClick:n,className:a({view:"normal"},e),...o}):(0,i.jsx)("span",{className:e,onClick:n,children:o.children})},44294:(e,t,n)=>{"use strict";n.d(t,{E:()=>r.E});var r=n(82015)},25196:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var r=n(59284),o=n(112),i=n(67884),a=n(77506),s=n(44294),l=n(60712);const c=(0,a.cn)("ydb-link-with-icon"),u=({title:e,url:t,external:n=!0,className:a})=>{const u=(0,l.jsxs)(r.Fragment,{children:[e,"\xa0",(0,l.jsx)(o.A,{})]});return n?(0,l.jsx)(i.N,{href:t,target:"_blank",className:c(null,a),children:u}):(0,l.jsx)(s.E,{to:t,className:c(null,a),children:u})}},47334:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(74417),o=n(77506),i=n(66781),a=n(60712);const s=(0,o.cn)("ydb-loader"),l=({size:e="m",delay:t=600,className:n})=>{const[o]=(0,i.y)(t);return o?(0,a.jsx)("div",{className:s(null,n),children:(0,a.jsx)(r.a,{size:e})}):null}},98167:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});n(59284);var r=n(47334),o=n(60712);function i({loading:e,size:t="m",className:n,children:i}){return e?(0,o.jsx)(r.a,{size:t,className:n}):i}},80176:(e,t,n)=>{"use strict";n.d(t,{p:()=>p,HG:()=>b,nL:()=>v,Qz:()=>y});var r=n(40336),o=n(78668),i=n(77506),a=n(90182),s=n(25196),l=n(48372);const c=JSON.parse('{"field_rack":"Rack","field_host":"Host","context_developer-ui":"Developer UI","field_database":"Database","field_roles":"Roles"}'),u=(0,l.g4)("ydb-node-name-tooltip",{en:c});var d=n(60712);const f=(0,i.cn)("ydb-node-endpoints-tooltip-content"),p=({data:e,nodeHref:t})=>{var n,i;const l=(0,a.N4)(o._5),c=[];return null!==e&&void 0!==e&&null!==(n=e.Roles)&&void 0!==n&&n.length&&c.push({name:u("field_roles"),children:e.Roles.join(", "),key:"Roles"}),null!==e&&void 0!==e&&null!==(i=e.Tenants)&&void 0!==i&&i[0]&&c.push({name:u("field_database"),children:e.Tenants[0],key:"Database"}),null!==e&&void 0!==e&&e.Host&&c.push({name:u("field_host"),children:e.Host,copyText:e.Host,key:"Host"}),null!==e&&void 0!==e&&e.Rack&&c.push({name:u("field_rack"),children:e.Rack,key:"Rack"}),null!==e&&void 0!==e&&e.Endpoints&&e.Endpoints.length&&e.Endpoints.forEach((({Name:e,Address:t})=>{e&&t&&c.push({name:e,children:t,key:e})})),l&&t&&c.push({name:"Links",children:(0,d.jsx)(s.K,{title:u("context_developer-ui"),url:t}),key:"developerUi"}),(0,d.jsx)("div",{className:f("list-container"),children:(0,d.jsx)(r.u,{responsive:!0,children:c.map((({children:e,key:t,...n})=>(0,d.jsx)(r.u.Item,{...n,children:(0,d.jsx)("div",{className:f("definition"),children:e})},t)))})})};var h=n(60073),m=n(41826);const g=(0,h.Hr)({values:{ChangeTime:e=>(0,d.jsx)(m.H,{ChangeTime:e})},labels:{TabletId:"Tablet"},defaultValueFormatter:e=>e&&String(e)}),v=({data:e={},className:t})=>{const{TabletId:n,NodeId:r,State:o,Type:i,ChangeTime:a,Generation:s}=e,l=(0,h.jl)(g,{TabletId:n,NodeId:r,State:o,Type:i,ChangeTime:a,Generation:s});return(0,d.jsx)(h.z_,{className:t,info:l,dots:!1,size:"s"})},y=(0,h.Hr)({values:{Usage:e=>e&&`${(100*Number(e)).toFixed(2)} %`},labels:{Name:"Pool"},defaultValueFormatter:e=>e&&String(e)}),b=({data:e={},className:t})=>{const n=(0,h.jl)(y,e);return(0,d.jsx)(h.z_,{className:t,info:n,dots:!1,size:"s"})}},41826:(e,t,n)=>{"use strict";n.d(t,{p:()=>d,H:()=>f});n(59284);var r=n(40336),o=n(76086),i=n(56839),a=n(71661),s=n(48372);const l=JSON.parse('{"start-time":"Start time","disconnect-time":"Disconnect time","change-time":"Change time"}'),c=(0,s.g4)("ydb-uptime-viewer",{en:l});var u=n(60712);function d({StartTime:e,DisconnectTime:t}){let n,s=null;return t?(n=(0,i.wI)(t),s=(0,u.jsx)(r.u.Item,{name:c("disconnect-time"),children:(0,i.r6)(t,{withTimeZone:!0})},"DisconnectTime")):e&&(n=(0,i.H7)(e),s=(0,u.jsx)(r.u.Item,{name:c("start-time"),children:(0,i.r6)(e,{withTimeZone:!0})},"StartTime")),n?(0,u.jsx)(a.s,{placement:["top","auto"],disabled:!s,content:(0,u.jsx)(r.u,{responsive:!0,children:s}),children:n}):o.Pd}function f({ChangeTime:e}){let t;return e&&(t=(0,i.H7)(e)),t?(0,u.jsx)(a.s,{placement:["top","auto"],content:(0,u.jsx)(r.u,{responsive:!0,children:(0,u.jsx)(r.u.Item,{name:c("change-time"),children:(0,i.r6)(e,{withTimeZone:!0})},"changeTime")}),children:t}):o.Pd}},71294:(e,t,n)=>{"use strict";n.d(t,{B:()=>f,s:()=>d});var r=n(59284),o=n(67087),i=n(39567),a=n(58351),s=n(77630);const l=(e=a.Hs,t)=>({getNodeRef:(n={})=>(0,s.Vk)(n,null!==e&&void 0!==e?e:"",t)});var c=n(76086),u=n(90182);function d(){const[e]=(0,o.useQueryParam)("clusterName",o.StringParam),{data:t}=i.ub.useGetClustersListQuery(void 0),n=r.useMemo((()=>(t||[]).find((t=>t.name===e))),[t,e]),{solomon:a,balancer:s,versions:l}=n||{};return{monitoring:a,balancer:s,versions:l,...f({balancer:s})}}function f({balancer:e}){const[t]=(0,u.iK)(c.s2);return{additionalNodesProps:l(e,t),useClusterBalancerAsBackend:t}}},87842:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>o,a:()=>f,bn:()=>u,eC:()=>d});var r=n(92459);const o={overview:"overview",tenants:"tenants",nodes:"nodes",storage:"storage",versions:"versions",tablets:"tablets"},i={id:o.overview,title:"Overview"},a={id:o.tenants,title:"Databases"},s={id:o.nodes,title:"Nodes"},l={id:o.storage,title:"Storage"},c={id:o.versions,title:"Versions"},u=[i,a,s,l,{id:o.tablets,title:"Tablets"},c];function d(e){return Object.values(o).includes(e)}const f=(e,t={})=>(0,r.KY)(r.Ay.cluster,e?{activeTab:e}:void 0,t)},29819:(e,t,n)=>{"use strict";n.d(t,{Gi:()=>u,O3:()=>i,mX:()=>l,q7:()=>a,qn:()=>c,vI:()=>d,wS:()=>s});var r=n(67087),o=n(92459);const i="storage",a="tablets",s="overview",l="structure",c=[{id:s,name:"Overview"},{id:i,name:"Storage"},{id:l,name:"Structure"},{id:a,name:"Tablets"}],u={database:r.StringParam};function d(e,t={},n=s){return(0,o.KY)(o.Ay.node,{id:e,activeTab:n},t)}},54309:(e,t,n)=>{"use strict";n.d(t,{YL:()=>l,nb:()=>s,vh:()=>i,x$:()=>a});var r=n(92459),o=n(52531);const i={summaryTab:"summaryTab",queryTab:"queryTab",diagnosticsTab:"diagnosticsTab",metricsTab:"metricsTab"},a=[{id:o.ml.overview,title:"Overview"},{id:o.ml.acl,title:"ACL"}],s=[{id:o.ml.schema,title:"Schema"}],l=e=>(0,r.KY)(r.Ay.tenant,void 0,e)},11310:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ASIDE_HEADER_COMPACT_KEY:()=>je.LQ,AUTOCOMPLETE_ON_ENTER:()=>je.IO,AUTO_REFRESH_INTERVAL:()=>je.av,AppSlots:()=>r,AsideNavigation:()=>wi,BINARY_DATA_IN_PLAIN_TEXT_DISPLAY:()=>je.RY,CASE_SENSITIVE_JSON_SEARCH:()=>je.iD,CLUSTER_DEFAULT_TITLE:()=>je.QM,DAY_IN_SECONDS:()=>je.tt,DEFAULT_CLUSTER_TAB_KEY:()=>je.fY,DEFAULT_DANGER_THRESHOLD:()=>je.Ed,DEFAULT_IS_QUERY_RESULT_COLLAPSED:()=>je.GV,DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED:()=>je.hh,DEFAULT_IS_TENANT_SUMMARY_COLLAPSED:()=>je.jX,DEFAULT_SIZE_RESULT_PANE_KEY:()=>je.l_,DEFAULT_SIZE_TENANT_KEY:()=>je.jQ,DEFAULT_SIZE_TENANT_SUMMARY_KEY:()=>je.ED,DEFAULT_TABLE_SETTINGS:()=>je.N3,DEFAULT_WARNING_THRESHOLD:()=>je.Hh,DEVELOPER_UI_TITLE:()=>je.T5,DEV_ENABLE_TRACING_FOR_ALL_REQUESTS:()=>je.U0,EMPTY_DATA_PLACEHOLDER:()=>je.Pd,ENABLE_AUTOCOMPLETE:()=>je.LK,ENABLE_NETWORK_TABLE_KEY:()=>je.g5,ErrorBoundary:()=>s.lQ,ErrorBoundaryFallback:()=>s.jt,GIGABYTE:()=>je.J7,HOUR_IN_SECONDS:()=>je.Jg,INVERTED_DISKS_KEY:()=>je.TJ,IS_HOTKEYS_HELP_HIDDEN_KEY:()=>je.Gj,KILOBYTE:()=>je.eh,LANGUAGE_KEY:()=>je.jS,LAST_QUERY_EXECUTION_SETTINGS_KEY:()=>je.fr,LAST_USED_QUERY_ACTION_KEY:()=>je.zk,LOAD_AVERAGE_TIME_INTERVALS:()=>je.GT,Lang:()=>pe.JA,MEGABYTE:()=>je.pg,MINUTE_IN_SECONDS:()=>je.r0,MS_IN_NANOSECONDS:()=>je.zz,MultiClusterApp:()=>Ui,PARTITIONS_HIDDEN_COLUMNS_KEY:()=>je.bs,QUERIES_HISTORY_KEY:()=>je.MB,QUERY_EXECUTION_SETTINGS_KEY:()=>je.c4,QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY:()=>je.YQ,SAVED_QUERIES_KEY:()=>je.ld,SECOND_IN_MS:()=>je.KF,SHOW_DOMAIN_DATABASE_KEY:()=>je.Xm,SingleClusterApp:()=>Si,TENANT_DEFAULT_TITLE:()=>je.oK,TENANT_INITIAL_PAGE_KEY:()=>je.Mt,TENANT_OVERVIEW_TABLES_LIMIT:()=>je.Nz,TENANT_OVERVIEW_TABLES_SETTINGS:()=>je.jp,TERABYTE:()=>je.Db,THEME_KEY:()=>je.k4,USE_CLUSTER_BALANCER_AS_BACKEND_KEY:()=>je.s2,USE_SHOW_PLAN_SVG_KEY:()=>je.lr,WEEK_IN_SECONDS:()=>je.Du,YdbEmbeddedAPI:()=>$i.i,appRoutes:()=>de.Ay,cn:()=>fe.cn,componentsRegistry:()=>xi,configureStore:()=>qi.U1,createApi:()=>$i.x,getMonitoringClusterLink:()=>Ci,getMonitoringLink:()=>ki,getSettingValue:()=>Hi.CN,getTabletLabel:()=>je.bk,getUserSettings:()=>rt,i18n:()=>pe.Ru,parseMonitoringData:()=>Oi,registerKeysets:()=>pe.g4,reportWebVitals:()=>Vi.A,rootReducer:()=>qi.d$,setSettingValue:()=>Hi.gc,settingsManager:()=>hi.f,toaster:()=>Wi.X,useSetting:()=>u.iK,useTypedSelector:()=>u.N4});var r={};n.r(r),n.d(r,{ClusterSlot:()=>yn,ClustersSlot:()=>vn,NodeSlot:()=>wn,PDiskPageSlot:()=>xn,RedirectSlot:()=>Cn,RoutesSlot:()=>kn,StorageGroupSlot:()=>En,TabletSlot:()=>Sn,TenantSlot:()=>bn,VDiskPageSlot:()=>_n});var o=n(59284),i=n(61750),a=n(97434),s=n(88632),l=n(34271),c=n(78668),u=n(90182);function d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"===typeof SuppressedError&&SuppressedError;var f=n(99991),p=n(23871),h=n(28664),m=n(74417),g=n(87184),v=n(92209);function y(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var b=n(49034),w=n(72837),x=n(81240),_=n(98089),E=n(84476),S={button_close:"Close"},k={button_close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"};var C=(0,w.N)({en:S,ru:k},`${v.N}Title`);y(".gn-title{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;min-height:64px;padding:14px 10px 14px 20px}.gn-title_separator{border-bottom:1px solid var(--g-color-line-generic)}.gn-title__text{margin:0 20px 0 0}");const O=(0,v.b)("title"),N=({children:e,closeIconSize:t=23,hasSeparator:n,closeTitle:r=C("button_close"),onClose:i})=>o.createElement("div",{className:O({separator:n})},o.createElement(_.E,{className:O("text"),as:"h3",variant:"subheader-3"},e),i&&o.createElement(E.$,{onClick:i,view:"flat",size:"l",extraProps:{"aria-label":r}},o.createElement(f.I,{data:x.A,size:t})));function T(e){const t=o.useRef();return o.useEffect((()=>(t.current=e,()=>{t.current=void 0})),[e]),o.useCallback(((...e)=>{if("function"===typeof t.current)return t.current(...e)}),[])}function A(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(e,t=""){const n=A(t).replace(/\s+/g,".*?");return P(e,"",new RegExp(n,"i"))}function P(e,t="",n){const r=[],i={};let a=!1,s=!1;return o.Children.forEach(e,(e=>{var l,c;if(o.isValidElement(e))if(e.type===o.Fragment){const{menu:o,pages:a}=P(e.props.children,t,n);r.push(...o),Object.assign(i,a)}else if(e.props.groupTitle){0;const o=`${t}/${null!==(l=e.props.id)&&void 0!==l?l:e.props.groupTitle}`;a=!0;const{menu:s,pages:c}=P(e.props.children,o,n);0,r.push({groupTitle:e.props.groupTitle,items:s}),Object.assign(i,c)}else{s=!0;const o=`${t}/${null!==(c=e.props.id)&&void 0!==c?c:e.props.title}`;0,i[o]=D(e.props.children,n),i[o].id=o,r.push({id:o,title:e.props.title,icon:e.props.icon,withBadge:i[o].withBadge,disabled:i[o].hidden})}})),{menu:r,pages:i}}function D(e,t){const n={id:"",sections:[],hidden:!0};return o.Children.forEach(e,(e=>{if(o.isValidElement(e))if(e.type===o.Fragment){const{sections:r,withBadge:o,hidden:i}=D(e.props.children,t);n.sections.push(...r),n.withBadge=o||n.withBadge,n.hidden=i&&n.hidden}else{const{withBadge:r,showTitle:o=!0}=e.props,{items:i,hidden:a}=R(e.props.children,t);n.withBadge=r||n.withBadge,n.hidden=a&&n.hidden,n.sections.push(Object.assign(Object.assign({},e.props),{withBadge:r,items:i,hidden:a,showTitle:o}))}})),n}function R(e,t){let n=!0;const r=[];return o.Children.forEach(e,(e=>{if(o.isValidElement(e))if(e.type===o.Fragment){const o=R(e.props.children,t);r.push(...o.items),n=n&&o.hidden}else{const o=Object.assign(Object.assign({},e.props),{element:e,hidden:!t.test(e.props.title)});r.push(o),n=n&&o.hidden}})),{items:r,hidden:n}}N.displayName="Title";const j=o.createContext({});function M(e,t){const n=o.useRef(null);return o.useMemo((()=>t?Object.assign({selectedRef:n},function(e,t){if(!t.settingId&&!t.section&&!t.page)return{};for(const n of Object.values(e)){if(!t.settingId&&!t.section){if(t.page!==n.id)continue;return{page:n}}for(const e of n.sections)if(t.settingId){for(const r of e.items)if(r.id===t.settingId)return{page:n,section:e,setting:r}}else if(t.section&&("id"in t.section?t.section.id===e.id:t.section.title===e.title))return{page:n,section:e}}return{}}(e,t)):{selectedRef:n}),[e,t])}j.displayName="SettingsSelectionContext";const L=j.Provider;var z=function(e){return e};y('.gn-settings-menu__group-heading{display:inline-block;font-weight:var(--g-text-accent-font-weight);line-height:18px;margin-bottom:12px;padding:0 20px}.gn-settings-menu__group+.gn-settings-menu__group{margin-top:24px}.gn-settings-menu__item{align-items:center;color:var(--g-color-text-primary);cursor:pointer;display:flex;height:40px;padding:0 20px}.gn-settings-menu__item-icon{color:var(--g-color-text-misc);margin-right:5px}.gn-settings-menu__item:hover,.gn-settings-menu__item_focused{background:var(--g-color-base-simple-hover)}.gn-settings-menu__item_selected{background:var(--g-color-base-selection)}.gn-settings-menu__item_selected.gn-settings-menu__item_focused,.gn-settings-menu__item_selected:hover{background:var(--g-color-base-selection-hover)}.gn-settings-menu__item_disabled{color:var(--g-color-text-secondary);cursor:auto}.gn-settings-menu__item_disabled:hover{background:none}.gn-settings-menu__item_disabled .gn-settings-menu__item-icon{color:var(--g-color-base-misc-heavy)}.gn-settings-menu__item_badge{position:relative}.gn-settings-menu__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:9px;top:calc(50% - 3px);width:6px}');const F=(0,v.b)("settings-menu"),B=o.forwardRef((function({items:e,onChange:t,activeItemId:n},r){const[i,a]=o.useState(),s=o.useRef(null),l=T(t),c=function(e){const t=o.useRef(e);return t.current=e,o.useCallback((()=>t.current),[])}(i);return o.useImperativeHandle(r,(()=>({handleKeyDown(e){if(!s.current)return!1;const t=c();return t&&"Enter"===e.key?(l(t),!0):"ArrowDown"===e.key?(a(q(s.current,t,1)),!0):"ArrowUp"===e.key&&(a(q(s.current,t,-1)),!0)},clearFocus(){a(void 0)}})),[c,l]),o.createElement("div",{ref:s,className:F()},e.map((e=>"groupTitle"in e?o.createElement("div",{key:e.groupTitle,className:F("group")},o.createElement("span",{className:F("group-heading")},e.groupTitle),e.items.map((e=>U(e,t,n,i)))):U(e,t,n,i))))}));function U(e,t,n,r){return o.createElement("span",{key:e.title,className:F("item",{selected:n===e.id,disabled:e.disabled,focused:r===e.id,badge:e.withBadge}),onClick:()=>{e.disabled||t(e.id)},"data-id":e.id},e.icon?o.createElement(f.I,Object.assign({size:16},e.icon,{className:F("item-icon")})):void 0,o.createElement("span",null,e.title))}function q(e,t,n){var r;const o=e.querySelectorAll(`.${F("item")}:not(.${F("item")}_disabled)`);if(0===o.length)return;let i=n>0?-1:0;return t&&(i=Array.prototype.findIndex.call(o,(e=>e.getAttribute("data-id")===t))),i=(o.length+i+n)%o.length,null!==(r=o[i].getAttribute("data-id"))&&void 0!==r?r:void 0}y('.gn-settings-menu-mobile.g-tabs_direction_horizontal{-ms-overflow-style:none;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:none;scrollbar-width:none}.gn-settings-menu-mobile.g-tabs_direction_horizontal::-webkit-scrollbar{display:none}.gn-settings-menu-mobile__item_badge{position:relative}.gn-settings-menu-mobile__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:11px;width:6px}');const $=(0,v.b)("settings-menu-mobile"),H=({items:e,onChange:t,activeItemId:n,className:r})=>{const i=o.useRef(null),a=o.useMemo((()=>{const t=[];return e.forEach((e=>{if("groupTitle"in e)t.push(...e.items.map((({id:e,title:t,disabled:n,withBadge:r})=>({id:e,title:t,disabled:n,className:$("item",{badge:r})}))));else{const{id:n,title:r,disabled:o,withBadge:i}=e;t.push({id:n,title:r,disabled:o,className:$("item",{badge:i})})}})),t}),[e]);return o.createElement("div",{ref:i,onTouchMove:e=>{e.stopPropagation()}},o.createElement(p.t,{items:a,className:$(null,r),size:"l",activeTab:n,onSelectTab:t}))};var W={label_title:"Settings","label_filter-placeholder":"Search settings","label_empty-placeholder":"No results found",label_search:"Search"},V={label_title:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_filter-placeholder":"\u041d\u0430\u0439\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_empty-placeholder":"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e",label_search:"\u041f\u043e\u0438\u0441\u043a"};var K=(0,w.N)({en:W,ru:V},`${v.N}Settings`);const G=(0,v.b)("settings-search");function Y({className:e,initialValue:t,onChange:n,debounce:r=200,inputRef:i,inputSize:a,placeholder:s,autoFocus:l=!0}){const[c,u]=o.useState(null!==t&&void 0!==t?t:""),d=T((0,b.d)(n,r)),f=T((e=>{u(e),d(e)}));return o.createElement("div",{className:G(null,e)},o.createElement(h.k,{value:c,controlRef:i,hasClear:!0,autoFocus:l,size:a,placeholder:s,onUpdate:f,controlProps:{"aria-label":K("label_search")}}))}y('.gn-settings{display:grid;grid-template-columns:216px 1fr;height:100%;width:834px}.gn-settings_view_mobile{display:block;height:calc(80vh - 56px);overflow-x:hidden;width:auto}@supports (height:90dvh){.gn-settings_view_mobile{height:calc(90dvh - 56px)}}.gn-settings_view_mobile.gn-settings_loading{text-align:center}.gn-settings_view_mobile .gn-settings__loader{margin-top:20px}.gn-settings_view_mobile .gn-settings__search{margin:4px 0 16px;padding:0 20px}.gn-settings_view_mobile .gn-settings__page{overflow-y:visible}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:first-child{margin-left:20px}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:last-child{margin-right:20px}.gn-settings_view_mobile .gn-settings__section-heading{font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.gn-settings_view_mobile .gn-settings__section-subheader{color:var(--g-color-text-secondary)}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings-subheader{margin-top:8px}.gn-settings_view_mobile .gn-settings__section-item{margin-top:0}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings__section-item,.gn-settings_view_mobile .gn-settings__section-subheader+.gn-settings__section-item{margin-top:30px}.gn-settings_view_mobile .gn-settings__section-item+.gn-settings__section-item{margin-top:22px}.gn-settings_view_mobile .gn-settings__item:not(.gn-settings_view_mobile .gn-settings__item_mode_row){gap:8px;grid-template-columns:1fr}.gn-settings_view_mobile .gn-settings__item-heading{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.gn-settings_view_mobile .gn-settings__item-description{font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.gn-settings_view_mobile .gn-settings__item_mode_row{grid-template-columns:1fr auto}.gn-settings_view_mobile .gn-settings__item_mode_row .gn-settings__item-heading{padding-right:20px}.gn-settings_view_mobile .gn-settings__item-content{width:100%}.gn-settings_view_mobile .gn-settings__not-found{color:var(--g-color-text-hint);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);justify-items:start;line-height:var(--g-text-body-2-line-height);margin:20px 0 0 20px}.gn-settings_loading{grid-template-columns:auto}.gn-settings__loader{place-self:center}.gn-settings__not-found{display:grid;height:100%;place-items:center}.gn-settings__menu{border-right:1px solid var(--g-color-line-generic)}.gn-settings__heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:20px 20px 0}.gn-settings__search{margin:0 20px 16px}.gn-settings__page{overflow-y:auto}.gn-settings__content{padding:20px}.gn-settings__section-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__section-heading:hover .gn-settings__section-right-adornment_hidden{opacity:1}.gn-settings__section-heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:0}.gn-settings__section-item{margin-top:24px}.gn-settings__section+.gn-settings__section{margin-top:32px}.gn-settings__section_only-child:only-child .gn-settings__section-item:first-of-type{margin-top:0}.gn-settings__section_only-child:only-child .gn-settings__section-heading{display:none}.gn-settings__item{display:grid;grid-template-columns:216px 1fr;justify-items:start}.gn-settings__item_align_top{align-items:start}.gn-settings__item_align_center{align-items:center}.gn-settings__item-title_badge{position:relative}.gn-settings__item-title_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:1px;width:6px}.gn-settings__item-description{color:var(--g-color-text-secondary);display:block;font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height);margin-top:2px;padding-right:20px}.gn-settings__item-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__item:hover .gn-settings__item-right-adornment_hidden{opacity:1}.gn-settings__item_selected,.gn-settings__section_selected{background:var(--g-color-base-selection);border-radius:8px;margin-left:-8px;padding:8px}.gn-settings__found{background:var(--g-color-base-selection);font-weight:var(--g-text-accent-font-weight)}');const Z=(0,v.b)("settings"),Q=o.createContext({}),J=()=>o.useContext(Q);function X(e){var{loading:t,renderLoading:n,children:r,view:i="normal",renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l=!0}=e,c=d(e,["loading","renderLoading","children","view","renderRightAdornment","renderSectionRightAdornment","showRightAdornmentOnHover"]);return t?o.createElement("div",{className:Z({loading:!0,view:i})},"function"===typeof n?n():o.createElement(m.a,{className:Z("loader"),size:"m"})):o.createElement(Q.Provider,{value:{renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l}},o.createElement(te,Object.assign({view:i},c),r))}const ee=(e,t)=>{for(const n of e)if("groupTitle"in n){for(const e of n.items)if(e.id===t)return e.title}else if(n.id===t)return n.title;return""};function te({initialPage:e,initialSearch:t,selection:n,children:r,renderNotFound:i,title:a=K("label_title"),filterPlaceholder:s=K("label_filter-placeholder"),emptyPlaceholder:l=K("label_empty-placeholder"),view:c,onPageChange:u,onClose:d}){var f,p;const{renderSectionRightAdornment:h,showRightAdornmentOnHover:m}=J(),[v,y]=o.useState(null!==t&&void 0!==t?t:""),{menu:b,pages:w}=I(r,v),x=M(w,n),_=Object.keys(w),E=x.page&&_.includes(x.page.id)?x.page.id:void 0,[S,k]=o.useState(E||(e&&_.includes(e)?e:void 0)),C=o.useRef(null),O=o.useRef(null),T="mobile"===c;o.useEffect((()=>{var e;null===(e=O.current)||void 0===e||e.clearFocus()}),[v]),o.useEffect((()=>{const e=()=>{var e;null===(e=O.current)||void 0===e||e.clearFocus()};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[]);let A=S;A&&!(null===(f=w[A])||void 0===f?void 0:f.hidden)||(A=null===(p=Object.values(w).find((({hidden:e})=>!e)))||void 0===p?void 0:p.id);const P=e=>{k((t=>(t!==e&&(null===u||void 0===u||u(e)),e)))};o.useEffect((()=>{A!==S&&P(A)})),o.useEffect((()=>{E&&k(E)}),[E]),o.useEffect((()=>{var e;(null===(e=x.selectedRef)||void 0===e?void 0:e.current)&&x.selectedRef.current.scrollIntoView()}),[x.selectedRef]);const D=(e,t)=>{const n=function(e,t,n){var r;return!(!e.section||e.setting)&&(!(!e.section.id||e.section.id!==n.id)||!((null===(r=e.page)||void 0===r?void 0:r.id)!==t||!e.section.title||e.section.title!==n.title))}(x,e,t);return o.createElement("div",{key:t.title,className:Z("section",{selected:n,"only-child":t.onlyChild}),ref:n?x.selectedRef:void 0},t.showTitle&&o.createElement("h3",{className:Z("section-heading")},h?o.createElement(g.s,{gap:2,alignItems:"center"},t.title,o.createElement("div",{className:Z("section-right-adornment",{hidden:m})},h(t))):t.title),t.header&&(T?o.createElement("div",{className:Z("section-subheader")},t.header):t.header),t.items.map((e=>e.hidden?null:(({title:e,element:t})=>o.createElement("div",{key:e,className:Z("section-item")},o.cloneElement(t,Object.assign(Object.assign({},t.props),{highlightedTitle:v&&e?ne(e,v):e}))))(e))))};return o.createElement(L,{value:x},o.createElement("div",{className:Z({view:c})},T?o.createElement(o.Fragment,null,o.createElement(Y,{inputRef:C,className:Z("search"),initialValue:t,onChange:y,autoFocus:!1,inputSize:"xl"}),o.createElement(H,{items:b,onChange:P,activeItemId:A,className:Z("tabs")})):o.createElement("div",{className:Z("menu"),onClick:()=>{C.current&&C.current.focus()},onKeyDown:e=>{O.current&&O.current.handleKeyDown(e)&&e.preventDefault()}},o.createElement(N,null,a),o.createElement(Y,{inputRef:C,className:Z("search"),initialValue:t,onChange:y,placeholder:s,autoFocus:!0}),o.createElement(B,{ref:O,items:b,onChange:P,activeItemId:A})),o.createElement("div",{className:Z("page")},(e=>{if(!e)return"function"===typeof i?i():o.createElement("div",{className:Z("not-found")},l);const t=w[e].sections.filter((e=>!e.hidden));return o.createElement(o.Fragment,null,!T&&o.createElement(N,{hasSeparator:!0,onClose:d},ee(b,e)),o.createElement("div",{className:Z("content")},t.map((t=>D(e,t)))))})(A))))}function ne(e,t){let n=e.slice(0);const r=[],i=A(t).split(" ").filter(Boolean);let a=0;for(const s of i){const e=new RegExp(s,"ig").exec(n);if(e){const t=e[0],i=e.index;i>0&&r.push(n.slice(0,i)),r.push(o.createElement("strong",{key:a++,className:Z("found")},t)),n=n.slice(i+t.length)}}return n&&r.push(n),r}X.Group=function({children:e}){return o.createElement(o.Fragment,null,e)},X.Page=function({children:e}){return o.createElement(o.Fragment,null,e)},X.Section=function({children:e}){return o.createElement(o.Fragment,null,e)},X.Item=function(e){const{id:t,labelId:n,highlightedTitle:r,children:i,align:a="center",withBadge:s,renderTitleComponent:l=z,mode:c,description:u}=e,d=o.useContext(j),f=d.setting&&d.setting.id===t,{renderRightAdornment:p,showRightAdornmentOnHover:h}=J(),m=o.createElement("span",{className:Z("item-title",{badge:s})},l(r));return o.createElement("div",{className:Z("item",{align:a,mode:c,selected:f}),ref:f?d.selectedRef:void 0},o.createElement("label",{className:Z("item-heading"),id:n},p?o.createElement(g.s,{className:Z("item-title-wrapper"),gap:3},m,o.createElement("div",{className:Z("item-right-adornment",{hidden:h})},p(e))):m,u?o.createElement("span",{className:Z("item-description")},u):null),o.createElement("div",{className:Z("item-content")},i))};var re=n(85589),oe=n(44433),ie=n(60712);const ae=({type:e="switch",settingKey:t,options:n,defaultValue:r,onValueUpdate:o})=>{const[i,a]=(0,u.iK)(t,r),s=e=>{a(e),null===o||void 0===o||o()};switch(e){case"switch":return(0,ie.jsx)(re.d,{checked:Boolean(i),onUpdate:s});case"radio":return n?(0,ie.jsx)(oe.a,{value:String(i),onUpdate:s,children:n.map((({value:e,content:t})=>(0,ie.jsx)(oe.a.Option,{value:e,children:t},e)))}):null;default:return null}},se=({settings:e})=>(0,ie.jsx)(X,{children:e.map((e=>{const{id:t,title:n,icon:r,sections:o=[],showTitle:i}=e;return(0,ie.jsx)(X.Page,{id:t,title:n,icon:r,children:o.map((e=>{const{title:n,settings:r=[]}=e;return(0,ie.jsx)(X.Section,{title:n,showTitle:null===i||void 0===i||i,children:r.map((e=>{if("info"===e.type)return(0,ie.jsx)(X.Item,{...e,children:e.content},e.title);const{description:t,...n}=e;return(0,ie.jsxs)(X.Item,{align:"top",...n,children:[(0,ie.jsx)(ae,{...e}),(0,ie.jsx)(_.E,{color:"secondary",as:"div",children:t})]},e.title)}))},t)}))},t)}))}),le=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H4.75a.75.75 0 0 1 0-1.5h7.69l-1.22-1.22a.75.75 0 0 1 1.06-1.06zM9.5 4.25a.75.75 0 0 1-1.5 0V4a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 4v8A1.5 1.5 0 0 0 4 13.5h2.5A1.5 1.5 0 0 0 8 12v-.25a.75.75 0 0 1 1.5 0V12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h2.5a3 3 0 0 1 3 3z",clipRule:"evenodd"})),ce=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H1.75a.75.75 0 0 1 0-1.5h7.69L8.22 6.03a.75.75 0 0 1 1.06-1.06zM4 11.75a.75.75 0 0 1 1.5 0V12A1.5 1.5 0 0 0 7 13.5h5a1.5 1.5 0 0 0 1.5-1.5V4A1.5 1.5 0 0 0 12 2.5H7A1.5 1.5 0 0 0 5.5 4v.25a.75.75 0 0 1-1.5 0V4a3 3 0 0 1 3-3h5a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3z",clipRule:"evenodd"}));var ue=n(10755),de=n(92459),fe=n(77506),pe=n(48372);const he=JSON.parse('{"navigation-item.documentation":"Documentation","navigation-item.settings":"Settings","navigation-item.account":"Account","account.user":"YDB User","account.login":"Login","account.logout":"Logout"}'),me=(0,pe.g4)("ydb-aside-navigation",{en:he}),ge=(0,fe.cn)("kv-ydb-internal-user");function ve({login:e}){const[t]=c.D_.useLogoutMutation(),n=(0,ue.W6)();return(0,ie.jsxs)("div",{className:ge(),children:[(0,ie.jsxs)("div",{className:ge("user-info-wrapper"),children:[(0,ie.jsx)("div",{className:ge("ydb-internal-user-title"),children:me("account.user")}),e&&(0,ie.jsx)("div",{className:ge("username"),children:e})]}),e?(0,ie.jsx)(E.$,{view:"flat-secondary",title:me("account.logout"),onClick:()=>{t(void 0)},children:(0,ie.jsx)(f.I,{data:le})}):(0,ie.jsx)(E.$,{view:"flat-secondary",title:me("account.login"),onClick:()=>{n.push((0,de.KY)(de.Ay.auth,void 0,{returnUrl:encodeURIComponent(location.href)}))},children:(0,ie.jsx)(f.I,{data:ce})})]})}function ye({children:e,userSettings:t}){const n=(0,l.x)("AsideNavigation"),r=(0,u.N4)(c.mB);return(0,ie.jsx)(n,{settings:(0,ie.jsx)(se,{settings:t}),ydbInternalUser:(0,ie.jsx)(ve,{login:r}),user:r?{login:r}:void 0,content:e})}const be={top:0,right:0,bottom:0,left:0};var we=n(39238),xe=n(49818),_e=n(80176);const Ee=(0,fe.cn)("node-tootltip"),Se=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:Ee(),children:(0,ie.jsx)("table",{children:(0,ie.jsxs)("tbody",{children:[(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ee("label"),children:"ID"}),(0,ie.jsx)("td",{className:Ee("value"),children:t.nodeId||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ee("label"),children:"Rack"}),(0,ie.jsx)("td",{className:Ee("value"),children:t.rack||"?"})]}),t.connected&&t.capacity?(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ee("label"),children:"Net"}),(0,ie.jsx)("td",{className:Ee("value"),children:`${t.connected} / ${t.capacity}`})]}):null]})})})},ke=(0,fe.cn)("histogram-tooltip"),Ce=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:ke(),children:(0,ie.jsx)("table",{children:(0,ie.jsxs)("tbody",{children:[(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"Count"}),(0,ie.jsx)("td",{className:ke("value"),children:t.count||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"From"}),(0,ie.jsx)("td",{className:ke("value"),children:t.leftBound||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:ke("label"),children:"To"}),(0,ie.jsx)("td",{className:ke("value"),children:t.rightBound||"?"})]})]})})})},Oe=(0,fe.cn)("cell-tooltip"),Ne={tablet:e=>(0,ie.jsx)(_e.nL,{data:e}),node:e=>(0,ie.jsx)(Se,{data:e}),histogram:e=>(0,ie.jsx)(Ce,{data:e}),cell:e=>(0,ie.jsx)("div",{className:Oe(),children:e})};const Te=(0,a.Ng)((e=>{const{toolTipVisible:t,currentHoveredRef:n,data:r,templateType:o,additionalData:i,positions:a}=e.tooltip,{popupClassName:s}=i||{};return{toolTipVisible:t,currentHoveredRef:n,data:r,template:Ne[o],additionalData:i,positions:a,popupClassName:s}}),{hideTooltip:xe.w7})((function(e){var t,n;const r=function(e={}){const{rect:t,contextElement:n}=e,r=o.useRef(be),i=o.useRef({contextElement:n,getBoundingClientRect(){const{top:e,right:t,bottom:n,left:o}=r.current;return{top:e,right:t,bottom:n,left:o,width:t-o,height:n-e}}});if(i.current.contextElement=n,t){const{top:e=0,left:n=0,right:o=n,bottom:i=e}=t;r.current={top:e,right:o,bottom:i,left:n}}else r.current=be;return i}({rect:{top:null===(t=e.positions)||void 0===t?void 0:t.top,left:null===(n=e.positions)||void 0===n?void 0:n.left}}),i=o.useCallback((()=>{const{hideTooltip:t,toolTipVisible:n}=e;n&&setTimeout((()=>t()),500)}),[e]);o.useEffect((()=>(window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i)})),[i]);const{className:a="",toolTipVisible:s,currentHoveredRef:l,data:c,additionalData:u,positions:d}=e;return(0,ie.jsx)("div",{className:`redux-tooltip ${a}`,children:d?((t,n,i,a)=>{const{template:s,popupClassName:l,hideTooltip:c}=e;return(0,ie.jsx)(o.Fragment,{children:(0,ie.jsx)(we.z,{open:t,placement:["top","bottom","left","right"],contentClassName:l,anchorRef:r,onOutsideClick:c,children:i&&s(i,a)})})})(s,0,c,u):((t,n,r,o)=>{const{template:i,popupClassName:a,hideTooltip:s}=e;return(0,ie.jsx)(we.z,{open:t,anchorRef:{current:n},hasArrow:!0,placement:["top","bottom","left","right"],className:a,onOutsideClick:s,children:r&&i(r,o)})})(s,l,c,u)})})),Ae=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",d:"M6.886.773C7.29-.231 8.71-.231 9.114.773l1.472 3.667 3.943.268c1.08.073 1.518 1.424.688 2.118L12.185 9.36l.964 3.832c.264 1.05-.886 1.884-1.802 1.31L8 12.4l-3.347 2.101c-.916.575-2.066-.26-1.802-1.309l.964-3.832L.783 6.826c-.83-.694-.391-2.045.688-2.118l3.943-.268z"})),Ie=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.494 13.2c.837-.482 1.006-.946 1.006-1.2 0-.35-.105-.692-.303-.981L9.072 6.435a1.85 1.85 0 0 1-.322-1.044V2.909C8.518 2.968 8.265 3 8 3s-.518-.032-.75-.09v2.48c0 .373-.112.737-.322 1.045L3.803 11.02c-.198.289-.303.63-.303.981 0 .254.169.718 1.006 1.2.813.468 2.043.8 3.494.8s2.68-.332 3.494-.8M8 .5c2 0 2.25 1 2.25 1.5v3.39q0 .11.062.2l3.125 4.584c.367.538.563 1.175.563 1.826 0 2-2.686 3.5-6 3.5S2 14 2 12c0-.652.196-1.288.563-1.826L5.69 5.59a.35.35 0 0 0 .061-.2V2C5.75 1.5 6 .5 8 .5m.084 7.626a.75.75 0 0 1 1.04.208l1.5 2.25a.75.75 0 1 1-1.248.832l-1.5-2.25a.75.75 0 0 1 .208-1.04",clipRule:"evenodd"})),Pe=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.169 6.331a3 3 0 0 0-.833 1.6l-.338 1.912a1 1 0 0 0 1.159 1.159l1.912-.338a3 3 0 0 0 1.6-.833l3.07-3.07 2-2A.9.9 0 0 0 15 4.13 3.13 3.13 0 0 0 11.87 1a.9.9 0 0 0-.632.262l-2 2zm3.936-1.814L7.229 7.392a1.5 1.5 0 0 0-.416.8L6.6 9.4l1.208-.213.057-.01a1.5 1.5 0 0 0 .743-.406l2.875-2.876a1.63 1.63 0 0 0-1.378-1.378m2.558.199a3.14 3.14 0 0 0-1.379-1.38l.82-.82a1.63 1.63 0 0 1 1.38 1.38zM8 2.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3V8.75a.75.75 0 0 0-1.5 0v2.75a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h2.75A.75.75 0 0 0 8 2.25",clipRule:"evenodd"}));var De=n(43937),Re=n(90754),je=n(76086);const Me=JSON.parse('{"page.general":"General","section.appearance":"Appearance","page.experiments":"Experiments","section.experiments":"Experiments","page.editor":"Editor","section.dev-setting":"Development settings","page.about":"About","section.about":"About","settings.editor.autocomplete.title":"Enable autocomplete","settings.editor.autocomplete.description":"You\'re always able to get suggestions by pressing Ctrl+Space.","settings.editor.autocomplete-on-enter.title":"Accept suggestion on Enter","settings.editor.autocomplete-on-enter.description":"Controls whether suggestions should be accepted on Enter, in addition to Tab. Helps to avoid ambiguity between inserting new lines or accepting suggestions.","settings.theme.title":"Interface theme","settings.theme.option-dark":"Dark","settings.theme.option-light":"Light","settings.theme.option-system":"System","settings.language.title":"Interface language","settings.language.option-russian":"Russian","settings.language.option-english":"English","settings.binaryDataInPlainTextDisplay.title":"Display binary data in plain text","settings.invertedDisks.title":"Inverted disks space indicators","settings.enableNetworkTable.title":"Enable network table","settings.useShowPlanToSvg.title":"Execution plan","settings.useShowPlanToSvg.description":" Show \\"Execution plan\\" button in query result widow. Opens svg with execution plan in a new window.","settings.showDomainDatabase.title":"Show domain database","settings.useClusterBalancerAsBackend.title":"Use cluster balancer as backend","settings.useClusterBalancerAsBackend.description":"By default random cluster node is used as backend. It causes saved links to become invalid after some time, when node is restarted. Using balancer as backend fixes it","settings.about.interfaceVersionInfoField.title":"Interface version"}'),Le=(0,pe.g4)("ydb-user-settings",{en:Me}),ze=[{value:"system",content:Le("settings.theme.option-system")},{value:"light",content:Le("settings.theme.option-light")},{value:"dark",content:Le("settings.theme.option-dark")}],Fe={settingKey:je.k4,title:Le("settings.theme.title"),type:"radio",options:ze},Be=(pe.JA.Ru,Le("settings.language.option-russian"),pe.JA.En,Le("settings.language.option-english"),je.jS,Le("settings.language.title"),pe.oK,{settingKey:je.RY,title:Le("settings.binaryDataInPlainTextDisplay.title")}),Ue={settingKey:je.TJ,title:Le("settings.invertedDisks.title")},qe={settingKey:je.g5,title:Le("settings.enableNetworkTable.title")},$e={settingKey:je.lr,title:Le("settings.useShowPlanToSvg.title"),description:Le("settings.useShowPlanToSvg.description")},He={settingKey:je.Xm,title:Le("settings.showDomainDatabase.title")},We={settingKey:je.s2,title:Le("settings.useClusterBalancerAsBackend.title"),description:Le("settings.useClusterBalancerAsBackend.description")},Ve={settingKey:je.LK,title:Le("settings.editor.autocomplete.title"),description:Le("settings.editor.autocomplete.description")},Ke={settingKey:je.IO,title:Le("settings.editor.autocomplete-on-enter.title"),description:Le("settings.editor.autocomplete-on-enter.description")},Ge={title:Le("settings.about.interfaceVersionInfoField.title"),type:"info",content:"8.6.0"},Ye={id:"appearanceSection",title:Le("section.appearance"),settings:[Fe,Ue,Be,He]},Ze={id:"experimentsSection",title:Le("section.experiments"),settings:[qe,$e]},Qe={id:"devSettingsSection",title:Le("section.dev-setting"),settings:[Ve,Ke]},Je={id:"aboutSettingsSection",title:Le("section.about"),settings:[Ge]},Xe={id:"generalPage",title:Le("page.general"),icon:{data:Ae,height:14,width:14},sections:[Ye],showTitle:!1},et={id:"experimentsPage",title:Le("page.experiments"),icon:{data:Ie},sections:[Ze],showTitle:!1},tt={id:"editorPage",title:Le("page.editor"),icon:{data:Pe},sections:[Qe]},nt={id:"aboutPage",title:Le("page.about"),icon:{data:De.A},sections:[Je],showTitle:!1};function rt({singleClusterMode:e}){const t=e?et:(0,Re.jM)(et,(e=>{e.sections[0].settings.push(We)}));return[Xe,tt,t,nt]}var ot=n(64689),it=n(98167);function at(e="unknown"){const t=()=>null;return t.displayName=`Slot(${e})`,t.__slotName=e,t}function st(e){return"function"===typeof e&&"__slotName"in e}class lt{constructor(e){this.children=null,this.slots=void 0;const t=[];this.slots=new Map,o.Children.forEach(e,(e=>{if(n=e,o.isValidElement(n)&&st(n.type)){const{type:t,props:n,ref:r}=e;if(this.slots.has(t))throw new Error(`Duplicate slot elements with name "${t.__slotName}" found.`);this.slots.set(t,{name:t.__slotName,props:n,ref:r,rendered:n.children})}else null!==e&&void 0!==e&&""!==e&&t.push(e);var n}));t.length>0&&(this.children=t)}get(e){if(!st(e))throw new Error('Invalid slot component. Should be a component created using "createSlot".');return this.slots.get(e)}}var ct=n(67028),ut=n(24600),dt=n(28232),ft=n(99006);const pt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.03 1.97a.75.75 0 0 0-1.06 1.06l.83.83A8.2 8.2 0 0 0 .5 6.876l-.26.585a1.33 1.33 0 0 0 0 1.079l.26.585a8.21 8.21 0 0 0 11.434 3.87l1.036 1.035a.75.75 0 1 0 1.06-1.06zm7.788 9.908-1.294-1.293a3 3 0 0 1-4.109-4.109L3.866 4.927A6.7 6.7 0 0 0 1.87 7.486L1.641 8l.23.515a6.71 6.71 0 0 0 8.947 3.363M6.55 7.611A1.502 1.502 0 0 0 8.389 9.45zm1.658-2.604 2.784 2.784a3 3 0 0 0-2.784-2.784m5.92 3.508a6.7 6.7 0 0 1-.915 1.496l1.065 1.066A8.2 8.2 0 0 0 15.5 9.125l.26-.585a1.33 1.33 0 0 0 0-1.08l-.26-.584A8.21 8.21 0 0 0 5.572 2.37L6.81 3.61a6.71 6.71 0 0 1 7.32 3.877l.228.514z",clipRule:"evenodd"})),ht=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.87 8.515 1.641 8l.229-.515a6.708 6.708 0 0 1 12.26 0l.228.515-.229.515a6.708 6.708 0 0 1-12.259 0M.5 6.876l-.26.585a1.33 1.33 0 0 0 0 1.079l.26.584a8.208 8.208 0 0 0 15 0l.26-.584a1.33 1.33 0 0 0 0-1.08l-.26-.584a8.208 8.208 0 0 0-15 0M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"}));var mt,gt,vt=n(67884);function yt(e){return Boolean(e&&"object"===typeof e&&"data"in e&&e.data&&"object"===typeof e.data&&"error"in e.data&&"string"===typeof e.data.error)}function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bt.apply(null,arguments)}const wt=function(e){return o.createElement("svg",bt({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),mt||(mt=o.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16z",fill:"#5282FF"})),gt||(gt=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S19.343 8 21 8s3 .672 3 1.5zM13 19.6v2.7c0 .9 1.3 1.6 3 1.6s3-.7 3-1.6v-2.7c-.8.7-1.9 1-3 1s-2.2-.3-3-1zm5-8.6v-.4c.8.7 1.9 1 3 1s2.2-.3 3-1v2.8c0 .8-1.2 1.5-2.8 1.6l-2.475 2.871c.176.192.275.405.275.629 0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5a.9.9 0 01.232-.58L10.8 15.1C9.3 15 8 14.3 8 13.5v-2.9c.8.7 1.9 1 3 1s2.2-.3 3-1v.4h4zm-.276 6.272A5.27 5.27 0 0016 17c-.265 0-.522.017-.766.05a5.994 5.994 0 00-1.134.25L12 14.9c1.1-.2 2-.8 2-1.5V12h4v1.4c0 .7.7 1.3 1.8 1.5l-2.076 2.372zM14 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S9.343 8 11 8s3 .672 3 1.5z",fill:"#fff"})))},xt=(0,fe.cn)("authentication");const _t=function({closable:e=!1}){const t=(0,ue.W6)(),n=(0,ue.zy)(),[r,{isLoading:i}]=c.D_.useAuthenticateMutation(void 0),{returnUrl:a}=(0,de.mA)(n),[s,l]=o.useState(""),[u,d]=o.useState(""),[p,m]=o.useState(""),[g,v]=o.useState(""),[y,b]=o.useState(!1),w=()=>{r({user:s,password:u}).unwrap().then((()=>{if(a){const e=decodeURIComponent(a.toString()),n=new URL(e),r=n.pathname+n.search;t.replace(r)}})).catch((e=>{(function(e){return yt(e)&&e.data.error.includes("user")})(e)&&m(e.data.error),function(e){return yt(e)&&e.data.error.includes("password")}(e)&&v(e.data.error)}))},_=e=>{13===e.keyCode&&w()};return(0,ie.jsxs)("section",{className:xt(),children:[(0,ie.jsxs)("form",{className:xt("form-wrapper"),children:[(0,ie.jsxs)("div",{className:xt("header"),children:[(0,ie.jsxs)("div",{className:xt("logo"),children:[(0,ie.jsx)(f.I,{data:wt,size:24}),"YDB"]}),(0,ie.jsx)(vt.N,{href:"https://ydb.tech/docs",target:"_blank",children:"Documentation"})]}),(0,ie.jsx)("h2",{className:xt("title"),children:"Sign in"}),(0,ie.jsx)("div",{className:xt("field-wrapper"),children:(0,ie.jsx)(h.k,{value:s,onUpdate:e=>{l(e),m("")},placeholder:"Username",error:p,onKeyDown:_,size:"l",autoFocus:!0})}),(0,ie.jsxs)("div",{className:xt("field-wrapper"),children:[(0,ie.jsx)(h.k,{value:u,onUpdate:e=>{d(e),v("")},type:y?"text":"password",placeholder:"Password",error:g,onKeyDown:_,size:"l"}),(0,ie.jsx)(E.$,{onClick:()=>{b((e=>!e))},size:"l",className:xt("show-password-button"),children:(0,ie.jsx)(f.I,{data:y?pt:ht,size:16})})]}),(0,ie.jsx)(E.$,{view:"action",onClick:w,width:"max",size:"l",disabled:Boolean(!s||p||g),loading:i,className:xt("button-sign-in"),children:"Sign in"})]}),e&&t.length>1&&(0,ie.jsx)(E.$,{onClick:()=>{t.go(-1)},className:xt("close"),children:(0,ie.jsx)(f.I,{data:x.A,size:24})})]})};var Et=n(87842),St=n(49917),kt=n(112),Ct=n(69220);const Ot=(0,Ct.om)("divider"),Nt=o.forwardRef((function(e,t){const{orientation:n="horizontal",className:r,style:i,qa:a,children:s,align:l="start"}=e;return o.createElement("div",{className:Ot({orientation:n,align:l},r),ref:t,style:i,"data-qa":a,role:"separator","aria-orientation":"vertical"===n?"vertical":void 0},s)}));var Tt=n(61758),At=n.n(Tt);const It=(0,Ct.om)("breadcrumbs");function Pt(e){return o.createElement("button",Object.assign({},e,{type:"button",className:It("switcher",{more:!0})}))}const Dt=(0,Ct.om)("breadcrumbs");const Rt=o.memo((function({item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r,renderItem:i}){const a=r?r(e,t,n):e.text;if(i)return i({item:e,children:a,isCurrent:t,isPrevCurrent:n});const s=e.title||e.text;return n||!t?void 0!==e.href?o.createElement(vt.N,{key:e.text,view:"secondary",href:e.href,title:s,onClick:e.action,className:Dt("item",{"prev-current":n})},a):o.createElement(Pt,{key:e.text,title:s,onClick:e.action},a):o.createElement("div",{title:s,className:Dt("item",{current:!0})},a)}));Rt.displayName="Breadcrumbs.Item";var jt=n(40569);const Mt=JSON.parse('{"label_more":"Show more"}'),Lt=JSON.parse('{"label_more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435"}'),zt=(0,w.N)({en:Mt,ru:Lt},"Breadcrumbs"),Ft=(0,Ct.om)("breadcrumbs");function Bt({popupStyle:e,popupPlacement:t,items:n}){return o.createElement(jt.r,{items:n,popupProps:{className:Ft("popup",{staircase:"staircase"===e}),placement:t},renderSwitcher:({onClick:e})=>o.createElement(Pt,{title:zt("label_more"),onClick:e},"...")})}Bt.displayName="Breadcrumbs.More";const Ut=(0,Ct.om)("breadcrumbs");function qt({renderItemDivider:e}){return o.createElement("div",{"aria-hidden":!0,className:Ut("divider")},e?e():"/")}qt.displayName="Breadcrumbs.Separator";const $t=(0,Ct.om)("breadcrumbs");var Ht,Wt;!function(e){e[e.One=1]="One",e[e.Two=2]="Two"}(Ht||(Ht={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One"}(Wt||(Wt={}));class Vt extends o.Component{static prepareInitialState(e){const{firstDisplayedItemsCount:t}=e;return{calculated:!1,rootItem:t?e.items[0]:void 0,visibleItems:e.items.slice(t),hiddenItems:[],allItems:e.items}}static getDerivedStateFromProps(e,t){return t.allItems!==e.items?Vt.prepareInitialState(e):null}constructor(e){super(e),this.handleResize=()=>{const e=Vt.prepareInitialState(this.props);this.setState(e,this.recalculate)},this.handleResize=At()(this.handleResize,200),"undefined"!==typeof window&&(this.resizeObserver=new ResizeObserver(this.handleResize)),this.container=o.createRef(),this.state=Vt.prepareInitialState(e)}componentDidMount(){var e;this.recalculate(),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container.current)}componentDidUpdate(e){e.items!==this.state.allItems&&this.recalculate()}componentWillUnmount(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}render(){const{className:e,qa:t}=this.props,{calculated:n}=this.state;return o.createElement("div",{className:$t({calculated:n?"yes":"no"},e),"data-qa":t},o.createElement("div",{className:$t("inner"),ref:this.container},this.renderRootItem(),this.renderMoreItem(),this.renderVisibleItems()))}renderItem(e,t,n,r){return o.createElement(Rt,{item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r||this.props.renderItemContent,renderItem:this.props.renderItem})}renderItemDivider(){const{renderItemDivider:e}=this.props;return o.createElement(qt,{renderItemDivider:e})}renderRootItem(){const{renderRootContent:e}=this.props,{rootItem:t,visibleItems:n}=this.state,r=0===n.length;return t?this.renderItem(t,r,!1,e):null}renderVisibleItems(){const{visibleItems:e}=this.state;return e.map(((e,t,n)=>{const r=t===n.length-1,i=t===n.length-2;return o.createElement(o.Fragment,{key:t},this.renderItemDivider(),this.renderItem(e,r,i))}))}renderMoreItem(){const{hiddenItems:e}=this.state;if(0===e.length)return null;const{popupStyle:t,popupPlacement:n,renderItemDivider:r}=this.props;return o.createElement(o.Fragment,null,o.createElement(qt,{renderItemDivider:r}),o.createElement(Bt,{items:e,popupPlacement:n,popupStyle:t}))}recalculate(){var e;const{items:t,lastDisplayedItemsCount:n,firstDisplayedItemsCount:r}=this.props;let o=(null===(e=this.container.current)||void 0===e?void 0:e.offsetWidth)||0;if(this.container.current&&o>0){o+=4;const e=Array.from(this.container.current.querySelectorAll(`.${$t("divider")}`)),i=[...Array.from(this.container.current.querySelectorAll(`.${$t("switcher")}`)),...Array.from(this.container.current.querySelectorAll(`.${$t("item")}`))],a=i.map(((e,t)=>e.scrollWidth+(t===i.length-1?4:8))),s=e.map((e=>e.offsetWidth));let l=a.reduce(((e,t,r,o)=>{const i=o.length-1===r,a=n===Ht.Two&&o.length-2===r;return i||a?e+Math.min(t,200):e+t}),0)+s.reduce(((e,t)=>e+t),0),c=1;for(;l>o&&c<i.length-n;)1===c&&(l+=34+s[c]),l-=a[c]+s[c],c++;this.setState({calculated:!0,visibleItems:t.slice(c-(1-r)),hiddenItems:t.slice(r,c-(1-r))})}}}Vt.defaultProps={popupPlacement:["bottom","top"]};var Kt=n(1064),Gt=n(44294),Yt=n(67157),Zt=n(31684);const Qt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 2.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M14 4a3 3 0 1 0-5.895.79L6.15 5.908a3 3 0 1 0 0 4.185l1.955 1.117A3.003 3.003 0 0 0 11 15a3 3 0 1 0-2.15-5.092L6.895 8.79a3 3 0 0 0 0-1.58L8.85 6.092A3 3 0 0 0 14 4m-3 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M2.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0",clipRule:"evenodd"})),Jt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.615 4.888c.814-.375.885-.714.885-.888s-.071-.513-.885-.888S9.538 2.5 8 2.5s-2.799.237-3.615.612C3.57 3.487 3.5 3.826 3.5 4s.071.513.885.888S6.462 5.5 8 5.5s2.799-.237 3.615-.612m.885 1.235C11.4 6.708 9.792 7 8 7s-3.4-.292-4.5-.877V8c0 .174.071.513.885.888S6.462 9.5 8 9.5s2.799-.237 3.615-.612c.814-.375.885-.714.885-.888zm0 4C11.4 10.708 9.792 11 8 11s-3.4-.293-4.5-.877V12c0 .174.071.513.885.887.816.377 2.077.613 3.615.613s2.799-.236 3.615-.613c.814-.374.885-.713.885-.887zM14 4c0-2-2.686-3-6-3S2 2 2 4v8c0 2 2.686 3 6 3s6-1 6-3z",clipRule:"evenodd"})),Xt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 8.5a1.5 1.5 0 0 1 1.5 1.5v1a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 11v-1A1.5 1.5 0 0 1 4 8.5zm.89-1.366L11.488 4.33a1.5 1.5 0 0 0-1.342-.829H5.854a1.5 1.5 0 0 0-1.342.83L3.11 7.133A3 3 0 0 1 4 7h8a3 3 0 0 1 .89.134M15 9.18V11a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V9.18a5 5 0 0 1 .528-2.236L3.17 3.658A3 3 0 0 1 5.854 2h4.292a3 3 0 0 1 2.683 1.658l1.643 3.286A5 5 0 0 1 15 9.18m-6 .57a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})),en=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1.25a.75.75 0 0 0-1.5 0V2.5a3 3 0 0 0-3 3H1.25a.75.75 0 0 0 0 1.5H2.5v2H1.25a.75.75 0 0 0 0 1.5H2.5a3 3 0 0 0 3 3v1.25a.75.75 0 0 0 1.5 0V13.5h2v1.25a.75.75 0 0 0 1.5 0V13.5a3 3 0 0 0 3-3h1.25a.75.75 0 0 0 0-1.5H13.5V7h1.25a.75.75 0 0 0 0-1.5H13.5a3 3 0 0 0-3-3V1.25a.75.75 0 0 0-1.5 0V2.5H7zM10.5 4h-5A1.5 1.5 0 0 0 4 5.5v5A1.5 1.5 0 0 0 5.5 12h5a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 10.5 4m0 2.25a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0-.75.75v3.5a.75.75 0 0 0 .75.75h3.5a.75.75 0 0 0 .75-.75zM7 7h2v2H7z",clipRule:"evenodd"})),tn=(0,fe.cn)("tablet-icon"),nn=({text:e,className:t})=>(0,ie.jsx)("div",{className:tn(null,t),children:(0,ie.jsx)("div",{className:tn("type"),children:e||"T"})});var rn=n(52531),on=n(29819),an=n(54309);const sn=JSON.parse('{"breadcrumbs.tenant":"Tenant","breadcrumbs.node":"Node","breadcrumbs.pDisk":"PDisk","breadcrumbs.vDisk":"VDisk","breadcrumbs.tablet":"Tablet","breadcrumbs.tablets":"Tablets","breadcrumbs.storageGroup":"Storage Group","connect":"Connect"}'),ln=(0,pe.g4)("ydb-header",{en:sn}),cn=(e,t={})=>{const{clusterName:n,clusterTab:r}=e;return[{text:n||je.QM,link:(0,Et.a)(r,t),icon:(0,ie.jsx)(Qt,{})}]},un=(e,t={})=>{const{tenantName:n}=e,r=cn(e,t),o=n?(e=>e.startsWith("/")?e.slice(1):e)(n):ln("breadcrumbs.tenant"),i={text:o,link:n?(0,an.YL)({...t,database:n}):void 0,icon:(0,ie.jsx)(Jt,{})};return r.push(i),r},dn=(e,t={})=>{const{nodeId:n,nodeRole:r,nodeActiveTab:o,tenantName:i}=e,a=(s=o===on.q7?"tablets":"nodes",{[rn.Dt]:rn.Dg.diagnostics,[an.vh.diagnosticsTab]:rn.iJ[s]});var s;const l=i?un(e,{...t,...a}):cn(e,t);let c=ln("breadcrumbs.node");n&&(c+=` ${n}`);const u={text:c,link:n?(0,on.vI)(n,{database:i,...t},o):void 0,icon:fn(r)};return l.push(u),l};function fn(e){switch(e){case"Storage":return(0,ie.jsx)(Xt,{});case"Compute":return(0,ie.jsx)(en,{});default:return}}const pn=(e,t={})=>{const{nodeId:n,pDiskId:r,nodeRole:o}=e,i=dn({...e,nodeRole:null!==o&&void 0!==o?o:"Storage"});let a=ln("breadcrumbs.pDisk");r&&(a+=` ${r}`);const s={text:a,link:r&&n?(0,de.Ck)(r,n,t):void 0};return i.push(s),i},hn={cluster:cn,node:dn,pDisk:pn,tablet:(e,t={})=>{const{tabletId:n,tabletType:r,tenantName:o}=e,i=o?un(e,t):cn(e,t),a={text:n||ln("breadcrumbs.tablet"),icon:(0,ie.jsx)(nn,{text:(0,je.bk)(r)})};return i.push(a),i},tenant:un,vDisk:(e,t={})=>{const{vDiskSlotId:n}=e,r=pn(e,t);let o=ln("breadcrumbs.vDisk");n&&(o+=` ${n}`);const i={text:o};return r.push(i),r},storageGroup:(e,t={})=>{const{groupId:n}=e,r=cn(e,t);let o=ln("breadcrumbs.storageGroup");n&&(o+=` ${n}`);const i={text:o};return r.push(i),r}},mn=(0,fe.cn)("header");const gn=function({mainPage:e}){const{page:t,pageBreadcrumbsOptions:n}=(0,u.N4)((e=>e.header)),r=(0,u.N4)(c._5),i=(0,Yt.Zd)(),a=(0,dt.J)(),s="/tenant"===(0,ue.zy)().pathname,l=i.title||i.name,d=o.useMemo((()=>{const r=[];let o=n;e&&r.push(e),l&&(o={...o,clusterName:l});const i=((e,t,n=[],r={})=>{if(!e)return n;const o=(0,hn[e])(t,r);return[...n,...o]})(t,o,r);return i.map((e=>({...e,action:()=>{}})))}),[l,e,t,n]),p=()=>{const e=[];return s&&a&&e.push((0,ie.jsxs)(E.$,{view:"flat",onClick:()=>(0,Kt.S)({database:a}),children:[(0,ie.jsx)(f.I,{data:St.A}),ln("connect")]})),r&&e.push((0,ie.jsxs)(E.$,{view:"flat",href:(0,Zt.Un)(),target:"_blank",children:[je.T5,(0,ie.jsx)(f.I,{data:kt.A})]})),e.length?(0,ie.jsx)(g.s,{direction:"row",gap:1,children:e.map(((t,n)=>(0,ie.jsxs)(o.Fragment,{children:[t,n===e.length-1?null:(0,ie.jsx)(Nt,{orientation:"vertical"})]},n)))}):null};return(0,ie.jsxs)("header",{className:mn(),children:[(0,ie.jsx)(Vt,{items:d,lastDisplayedItemsCount:1,firstDisplayedItemsCount:1,className:mn("breadcrumbs"),renderItem:({item:e,isCurrent:t})=>{const{icon:n,text:r,link:o}=e;return(0,ie.jsxs)(Gt.E,{className:mn("breadcrumbs-item",{active:t,link:!t}),to:t?void 0:o,children:[n?(0,ie.jsx)("span",{className:mn("breadcrumbs-icon"),children:n}):null,(0,ie.jsx)("span",{children:r})]})}}),p()]})},vn=at("clusters"),yn=at("cluster"),bn=at("tenant"),wn=at("node"),xn=at("pDisk"),_n=at("vDisk"),En=at("storageGroup"),Sn=at("tablet"),kn=at("routes"),Cn=at("redirect"),On=JSON.parse('{"pages.clusters":"All clusters"}'),Nn=JSON.parse('{"pages.clusters":"\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),Tn=(0,pe.g4)("ydb-app-content",{ru:Nn,en:On}),An=(0,fe.cn)("app"),In=[{path:de.Ay.cluster,slot:yn,component:(0,ft._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(856),n.e(9796),n.e(1329),n.e(9300),n.e(2512)]).then(n.bind(n,6488))),"Cluster"),wrapper:jn},{path:de.Ay.tenant,slot:bn,component:(0,ft._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(7341),n.e(6820),n.e(7750),n.e(9796),n.e(1329),n.e(9300),n.e(6548)]).then(n.bind(n,86681))),"Tenant"),wrapper:jn},{path:de.Ay.node,slot:wn,component:(0,ft._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(1329),n.e(371)]).then(n.bind(n,49020))),"Node"),wrapper:jn},{path:de.Ay.pDisk,slot:xn,component:(0,ft._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(684)]).then(n.bind(n,69134))),"PDiskPage"),wrapper:jn},{path:de.Ay.vDisk,slot:_n,component:(0,ft._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(6030)]).then(n.bind(n,80208))),"VDiskPage"),wrapper:jn},{path:de.Ay.storageGroup,slot:En,component:(0,ft._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(4872),n.e(9796),n.e(3812)]).then(n.bind(n,75510))),"StorageGroupPage"),wrapper:jn},{path:de.Ay.tablet,slot:Sn,component:(0,ft._)((()=>Promise.all([n.e(3940),n.e(7341),n.e(535)]).then(n.bind(n,47584))),"Tablet"),wrapper:jn}],Pn=(0,ft._)((()=>Promise.all([n.e(3940),n.e(4130),n.e(3779)]).then(n.bind(n,48288))),"Clusters");function Dn(e,t){return(0,ie.jsx)(ue.qh,{path:t.path,exact:t.exact,render:n=>{var r;const i=e.get(t.slot);let a;if(i)a="function"===typeof i.rendered?i.rendered({component:t.component,...n}):i.rendered;else{const e=t.component;a=(0,ie.jsx)(e,{...n})}const s=null!==(r=t.wrapper)&&void 0!==r?r:o.Fragment;return(0,ie.jsx)("main",{className:An("main"),children:(0,ie.jsx)(s,{children:a})})}},t.path)}function Rn(e){var t;const{singleClusterMode:n}=e,r=function(e){const{children:t}=e;return o.useMemo((()=>new lt(t)),[t])}(e),i=r.get(kn),a=r.get(Cn),s=null!==(t=null===a||void 0===a?void 0:a.props)&&void 0!==t?t:n?{to:(0,Et.a)()}:{to:de.Ay.clusters};let l;return n||(l={text:Tn("pages.clusters"),link:de.Ay.clusters}),(0,ie.jsxs)(ue.dO,{children:[n?null:Dn(r,{path:de.Ay.clusters,exact:!0,component:Pn,slot:vn}),null===i||void 0===i?void 0:i.rendered,(0,ie.jsxs)(ue.qh,{children:[(0,ie.jsx)(gn,{mainPage:l}),(0,ie.jsxs)(ue.dO,{children:[In.map((e=>Dn(r,e))),(0,ie.jsx)(ue.qh,{path:s.from||s.path,exact:s.exact,strict:s.strict,render:()=>(0,ie.jsx)(ue.rd,{to:s.to,push:s.push})})]})]},"single-cluster")]})}function jn({children:e}){return(0,ie.jsxs)(Mn,{children:[(0,ie.jsx)(Ln,{}),(0,ie.jsx)(zn,{children:e})]})}function Mn({children:e}){const t=(0,dt.J)(),{isLoading:n,error:r}=c.D_.useWhoamiQuery({database:t});return(0,ie.jsx)(it.r,{loading:n,size:"l",children:(0,ie.jsx)(ot.A,{error:r,children:e})})}function Ln(){return ut.m.useGetNodesListQuery(void 0),null}function zn({children:e}){(0,ct.e5)();const t=(0,ct.Pm)();return(0,ie.jsx)(it.r,{loading:!t,size:"l",children:e})}const Fn=(0,a.Ng)((function(e){return{isAuthenticated:e.authentication.isAuthenticated,singleClusterMode:e.singleClusterMode}}))((function(e){const{singleClusterMode:t,isAuthenticated:n}=e;return(0,ie.jsxs)(ue.dO,{children:[(0,ie.jsx)(ue.qh,{path:de.Ay.auth,children:(0,ie.jsx)(_t,{closable:!0})}),(0,ie.jsx)(ue.qh,{children:(0,ie.jsx)("div",{className:An({embedded:t}),children:n?e.children:(0,ie.jsx)(_t,{})})})]})}));var Bn=n(16332),Un=n(69118),qn=n(67087);const $n=({children:e})=>{(0,ue.zy)();const t=(0,ue.W6)();return e({replace(e){t.replace(e.search||"?",e.state)},push(e){t.push(e.search||"?",e.state)},get location(){return t.location}})},Hn=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 4.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0m1.5 0a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0m-9 8c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10s3.162.44 4.18 1.041c1.1.65 1.32 1.255 1.32 1.459a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1m5.5-4c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h9a2.5 2.5 0 0 0 2.5-2.5c0-2-3.15-4-7-4",clipRule:"evenodd"}));var Wn=n(73633),Vn=n(27738),Kn=n(98392),Gn=n(18650),Yn=n(40091);const Zn=o.createContext(void 0);Zn.displayName="AsideHeaderInnerContext";const Qn=Zn.Provider,Jn=()=>{const e=o.useContext(Zn);if(void 0===e)throw new Error("AsideHeaderInnerContext is not initialized.\n Please check if you wrapped your component with AsideHeaderInnerContext.Provider");return e},Xn=o.createContext({compact:!1,size:0});Xn.displayName="AsideHeaderContext";const er=Xn.Provider,tr=()=>{const e=o.useContext(Xn);if(void 0===e)throw new Error("AsideHeaderContext is not initialized.\n Please check if you wrapped your component with AsideHeader\n Context.Provider");return e};var nr=n(7450);y('.gn-composite-bar-highlighted-item{--_--background-color:var(--g-color-base-background);--_--item-icon-background-size:38px;--_--item-background-color-hover:var(--g-color-base-selection-hover);--_--item-selected-background-color-active:var(--g-color-base-selection);display:flex;justify-content:center;position:absolute;z-index:10000}.gn-composite-bar-highlighted-item__icon{align-items:center;background-color:var(--gn-aside-header-background-color,var(--_--background-color));border-radius:7px;box-shadow:0 8px 20px 0 var(--g-color-sfx-shadow);cursor:pointer;display:flex;height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));justify-content:center;overflow:hidden;position:relative;transform:translateY(1px);width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-composite-bar-highlighted-item__icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));content:"";height:100%;position:absolute;width:100%;z-index:-1}.gn-composite-bar-highlighted-item__icon:hover:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover))}');const rr=(0,v.b)("composite-bar-highlighted-item"),or=({iconRef:e,iconNode:t,onClick:n,onClickCapture:r})=>{const{openModalSubscriber:i}=Jn(),[{top:a,left:s,width:l,height:c},u]=(0,o.useState)({top:0,left:0,width:0,height:0}),[d,f]=(0,o.useState)(!1),p=(0,o.useMemo)((()=>(0,b.d)((()=>{var t;const{top:n=0,left:r=0,width:o=0,height:i=0}=(null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.getBoundingClientRect())||{};u({top:n+window.scrollY,left:r+window.scrollX,width:o,height:i})}),200,{leading:!0})),[e]),h=(0,o.useCallback)((()=>p()),[p]);return(0,o.useEffect)((()=>{if(d)return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)}),[h,d]),null===i||void 0===i||i((e=>{f(e)})),t&&d?o.createElement(Kn.Z,null,o.createElement("div",{className:rr(),style:{left:s,top:a,width:l,height:c},onClick:n,onClickCapture:r,"data-toast":!0},o.createElement("div",{className:rr("icon")},t))):null};or.displayName="HighlightedItem";const ir="collapse-item-id",ar=["right-start","right-end","right"];function sr(e){if(!ur(e))return 40;switch(e.type){case"action":return 50;case"divider":return 15;default:return 40}}function lr(e){return e.reduce(((e,t)=>e+sr(t)),0)}function cr(e){const t=e.findIndex((({current:e})=>Boolean(e)));return-1===t?void 0:t}function ur(e){return void 0!==(null===e||void 0===e?void 0:e.id)}y('.gn-composite-bar-item{--gn-composite-bar-item-action-size:36px;--_--horizontal-divider-line-color:var(--g-color-line-generic);--_--item-background-color-hover:var(--g-color-base-simple-hover);--_--item-general-icon-color:var(--g-color-text-primary);--_--item-icon-color:var(--g-color-text-misc);--_--item-text-color:var(--g-color-text-primary);--_--item-collapsed-radius:7px;--_--item-selected-text-color:var(--g-color-text-primary);--_--item-selected-background-color-active:var(--g-color-base-selection);align-items:center;cursor:pointer;display:flex;height:100%;min-width:0;width:100%}.gn-composite-bar-item__icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color))}.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-item-icon-color,var(--_--item-icon-color)))}.gn-composite-bar-highlighted-item .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item__icon,.gn-footer-item .gn-composite-bar-item__icon{color:var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color))}.gn-composite-bar-highlighted-item.gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-footer-item.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color)))}.gn-composite-bar-item__icon-tooltip .g-action-tooltip__description{color:var(--g-color-text-light-primary);margin-block-start:0}.gn-composite-bar-item__icon-place{align-items:center;display:flex;flex-shrink:0;height:100%;justify-content:center;width:var(--gn-aside-header-min-width)}.gn-composite-bar-item__title{display:flex;overflow:hidden}.gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-text-color,var(--_--item-text-color));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gn-composite-bar-item_current .gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-current-text-color,var(--_--item-selected-text-color))}.gn-composite-bar-item__title-adornment{margin:0 10px}.gn-composite-bar-item__collapse-item{--_--item-icon-color:var(--g-color-text-misc);align-items:center;cursor:pointer;display:flex;height:100%;padding:0 16px;width:100%}.gn-composite-bar-item__collapse-item-icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color));margin-right:10px}.gn-composite-bar-item__collapse-item .gn-composite-bar-item__title-adornment{margin-right:0}.gn-composite-bar-item__menu-divider{border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));cursor:default;margin:0 8px;width:100%}.gn-composite-bar-item__collapse-items-popup-content{padding:4px 0}.gn-composite-bar-item__link{align-items:center;display:flex;height:100%;width:100%}.gn-composite-bar-item__link,.gn-composite-bar-item__link:active,.gn-composite-bar-item__link:focus,.gn-composite-bar-item__link:hover,.gn-composite-bar-item__link:visited{color:inherit;outline:none;text-decoration:none}.gn-composite-bar-item__btn-icon{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.gn-composite-bar-item_type_action{background:var(--g-color-base-float);border-radius:var(--gn-composite-bar-item-action-size);box-shadow:0 0 0 1px rgba(0,0,0,.03),0 5px 6px rgba(0,0,0,.12);height:var(--gn-composite-bar-item-action-size);justify-content:center;margin:0 10px 8px;transition:transform .1s ease-out,background-color .15s linear}.gn-composite-bar-item_type_action:focus-visible{box-shadow:0 0 0 2px var(--g-color-line-misc)}.gn-composite-bar-item_type_action:hover{background-color:var(--g-color-base-float-hover)}.gn-composite-bar-item_type_action:active{box-shadow:0 1px 2px var(--g-color-sfx-shadow);transform:scale(.96);transition:none}.gn-composite-bar-item_type_action .gn-composite-bar-item__icon-place{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin-right:16px}.gn-composite-bar-item__icon-tooltip_item-type_action{margin-left:10px}.gn-composite-bar-item:not(.gn-composite-bar-item_compact).gn-composite-bar-item_current.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin:0}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}');const dr=(0,v.b)("composite-bar-item");function fr(e){let t=o.createElement("div",{className:dr("title-text")},e.title);return e.rightAdornment&&(t=o.createElement(o.Fragment,null,t,o.createElement("div",{className:dr("title-adornment")},e.rightAdornment))),t}const pr=["right-end"],hr=[-20,8],mr=e=>{const{item:t,className:n,collapseItems:r,onMouseLeave:i,onMouseEnter:a,enableTooltip:s=!0,popupVisible:l=!1,popupAnchor:c,popupPlacement:u=pr,popupOffset:d=hr,popupKeepMounted:p,popupContentClassName:h,renderPopupContent:m,onClosePopup:g,onItemClick:v,onItemClickCapture:y,onCollapseItemClick:b,bringForward:w}=e,{compact:x}=tr(),[_,E]=o.useState(!1),S=o.useRef(null),k=c||S,C=o.useRef(null),O=t.type||"regular",N=t.current||!1,T=t.tooltipText||t.title,A=t.icon,I=t.iconSize||18,P=t.iconQa,D=t.id===ir,R=o.useMemo((()=>[{name:"compact",enabled:!0,options:{compact:x},phase:"main",fn(){}}]),[x]),j=o.useCallback((e=>{var t;e instanceof MouseEvent&&e.target&&(null===(t=S.current)||void 0===t?void 0:t.contains(e.target))||null===g||void 0===g||g()}),[g]);if("divider"===t.type)return o.createElement("div",{className:dr("menu-divider")});const M=e=>x?o.createElement(Gn.m,{title:"",description:T,disabled:!s||D&&_||l,placement:"right",className:dr("icon-tooltip",{"item-type":O})},o.createElement("div",{onMouseEnter:()=>null===a||void 0===a?void 0:a(),onMouseLeave:()=>null===i||void 0===i?void 0:i(),className:dr("btn-icon")},e)):e,L=({icon:e,title:r})=>{const s=o.createElement(o.Fragment,null,o.createElement("div",{className:dr({type:O,current:N,compact:x},n),ref:S,"data-qa":t.qa,onClick:e=>{D?(E(!_),null===b||void 0===b||b()):null===v||void 0===v||v(t,!1,e)},onClickCapture:y,onMouseEnter:()=>{x||null===a||void 0===a||a()},onMouseLeave:()=>{x||null===i||void 0===i||i()}},o.createElement("div",{className:dr("icon-place"),ref:C},M(e)),o.createElement("div",{className:dr("title"),title:"string"===typeof t.title?t.title:void 0},r)),m&&Boolean(null===k||void 0===k?void 0:k.current)&&o.createElement(we.z,{contentClassName:dr("popup",h),open:l,keepMounted:p,placement:u,offset:d,anchorRef:k,onClose:j,modifiers:R},m()));return t.link?o.createElement("a",{href:t.link,className:dr("link")},s):s},z=A?o.createElement(f.I,{qa:P,data:A,size:I,className:dr("icon")}):null,F={icon:z,title:fr(t)};let B,U=null;const q={compact:Boolean(x),collapsed:!1,item:t,ref:S};return"function"===typeof t.itemWrapper?(B=t.itemWrapper(F,L,q),U=w&&t.itemWrapper(F,(({icon:e})=>M(e)),q)):(B=L(F),U=w&&M(z)),o.createElement(o.Fragment,null,w&&o.createElement(or,{iconNode:U,iconRef:C,onClick:e=>null===v||void 0===v?void 0:v(t,!1,e),onClickCapture:y}),B,_&&D&&(null===r||void 0===r?void 0:r.length)&&Boolean(null===k||void 0===k?void 0:k.current)&&o.createElement(gr,Object.assign({},e,{anchorRef:S,onClose:()=>E(!1)})))};function gr({onItemClick:e,collapseItems:t,anchorRef:n,onClose:r}){const{compact:i}=tr();return(null===t||void 0===t?void 0:t.length)?o.createElement(we.z,{placement:ar,open:!0,anchorRef:n,onClose:r},o.createElement("div",{className:dr("collapse-items-popup-content")},o.createElement(Yn.B,{itemClassName:dr("root-collapse-item"),items:t,selectedItemIndex:cr(t),itemHeight:28,itemsHeight:28*t.length,virtualized:!1,filterable:!1,sortable:!1,onItemClick:r,renderItem:t=>{const r=({title:n,icon:r})=>{const i=o.createElement("div",{className:dr("collapse-item"),onClick:n=>{null===e||void 0===e||e(t,!0,n)}},r,n);return t.link?o.createElement("a",{href:t.link,className:dr("link")},i):i},a={title:fr(t),icon:t.icon&&o.createElement(f.I,{data:t.icon,size:14,className:dr("collapse-item-icon")})},s={compact:Boolean(i),collapsed:!0,item:t,ref:n};return"function"===typeof t.itemWrapper?t.itemWrapper(a,r,s):r(a)}}))):null}mr.displayName="Item";n(82435);y(".gn-footer-item{height:40px;width:100%}");const vr=(0,v.b)("footer-item"),yr=e=>{var{item:t}=e,n=d(e,["item"]);return o.createElement(mr,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:vr({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))},br=o.memo((({renderContent:e,size:t})=>o.createElement(o.Fragment,null,e({size:t}))));br.displayName="RenderContent";const wr=({size:e,className:t,cssSizeVariableName:n="--gn-aside-header-size",renderContent:r,children:i})=>o.createElement("div",{className:t,style:Object.assign({},{[n]:`${e}px`})},"function"===typeof r?o.createElement(br,{size:e,renderContent:r}):i);var xr=n(16258);y('.g-root{--gn-aside-top-panel-height:0px}.gn-aside-header{--gn-aside-header-min-width:56px;--_--item-icon-background-size:38px;--_--background-color:var(--g-color-base-background);--_--decoration-collapsed-background-color:var(--g-color-base-warning-light);--_--decoration-expanded-background-color:var(--g-color-base-warning-light);--_--vertical-divider-line-color:var(--g-color-line-generic);--_--horizontal-divider-line-color:var(--g-color-line-generic);background-color:var(--g-color-base-background);height:100%;position:relative;width:100%}.gn-aside-header__aside{background-color:var(--gn-aside-header-expanded-background-color,var(--gn-aside-header-background-color,var(--_--background-color)));box-sizing:border-box;display:flex;flex-direction:column;height:100vh;left:0;margin-top:var(--gn-aside-top-panel-height);max-height:calc(100vh - var(--gn-aside-top-panel-height));position:sticky;top:var(--gn-aside-top-panel-height);width:inherit;z-index:var(--gn-aside-header-z-index,100)}.gn-aside-header__aside:after{background-color:var(--gn-aside-header-divider-vertical-color,var(--_--vertical-divider-line-color));content:"";height:100%;position:absolute;right:0;top:0;width:1px;z-index:2}.gn-aside-header__aside-popup-anchor{inset:0;position:absolute;z-index:1}.gn-aside-header__aside-content{--gradient-height:334px;display:flex;flex-direction:column;height:inherit;overflow-x:hidden;padding-top:var(--gn-aside-header-padding-top);position:relative;user-select:none;width:inherit;z-index:2}.gn-aside-header__aside-content>.gn-aside-header-logo{margin:8px 0}.gn-aside-header__aside-content_with-decoration{background:linear-gradient(180deg,var(--gn-aside-header-decoration-expanded-background-color,var(--_--decoration-expanded-background-color)) calc(var(--gradient-height)*.33),transparent calc(var(--gradient-height)*.88))}.gn-aside-header__aside-custom-background{bottom:0;display:flex;position:absolute;top:0;z-index:-1}.gn-aside-header_compact .gn-aside-header__aside{background-color:var(--gn-aside-header-collapsed-background-color,var(--gn-aside-header-background-color,var(--_--background-color)))}.gn-aside-header_compact .gn-aside-header__aside-content{background:transparent}.gn-aside-header__header{--gn-aside-header-header-divider-height:29px;box-sizing:border-box;flex:none;padding-bottom:22px;padding-top:8px;position:relative;width:100%;z-index:1}.gn-aside-header__header .gn-aside-header__header-divider{bottom:0;color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));display:none;left:0;position:absolute;z-index:-2}.gn-aside-header__header_with-decoration:before{background-color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));content:"";display:none;height:calc(100% - var(--gn-aside-header-header-divider-height));left:0;position:absolute;top:0;width:100%;z-index:-2}.gn-aside-header__header:after{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));bottom:12px;content:"";height:1px;left:0;position:absolute;width:100%;z-index:-2}.gn-aside-header_compact .gn-aside-header__header:before,.gn-aside-header_compact .gn-aside-header__header_with-decoration .gn-aside-header__header-divider{display:block}.gn-aside-header_compact .gn-aside-header__header_with-decoration:after{display:none}.gn-aside-header__logo-button-wrapper{width:var(--gn-aside-header-min-width)}.gn-aside-header__logo-button[class],.gn-aside-header__logo-button[class] .g-button__icon{height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-aside-header__menu-items{flex-grow:1}.gn-aside-header__footer{display:flex;flex-direction:column;flex-shrink:0;margin:8px 0;width:100%}.gn-aside-header__panels{inset:var(--gn-aside-top-panel-height) 0 0;max-height:calc(100vh - var(--gn-aside-top-panel-height));overflow:auto;position:fixed;z-index:var(--gn-aside-header-panel-z-index,98)}.gn-aside-header__panel{height:100%}.gn-aside-header__pane-container{display:flex;flex-direction:row;outline:none;overflow:visible;user-select:text}.gn-aside-header__pane-top-divider{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));height:1px;margin-top:-1px}.gn-aside-header__pane-top{background:var(--g-color-base-background);position:fixed;top:0;width:100%;z-index:var(--gn-aside-header-pane-top-z-index,98)}.gn-aside-header__pane-top-alert_centered{display:flex;justify-content:space-around}.gn-aside-header__pane-top-alert_dense{padding-bottom:var(--g-spacing-2);padding-top:var(--g-spacing-2)}.gn-aside-header__content{margin-top:var(--gn-aside-top-panel-height);width:calc(100% - var(--gn-aside-header-size));z-index:var(--gn-aside-header-content-z-index,95)}');const _r=o.lazy((()=>n.e(99).then(n.bind(n,90099)).then((e=>({default:e.TopPanel}))))),Er=Object.assign((({compact:e,className:t,children:n,topAlert:r})=>{const i=e?56:236,a=(0,o.useMemo)((()=>({size:i,compact:e})),[e,i]);return o.createElement(er,{value:a},o.createElement("div",{className:(0,xr.b)({compact:e},t),style:Object.assign({},{"--gn-aside-header-size":`${i}px`})},r&&o.createElement(o.Suspense,{fallback:null},o.createElement(_r,{topAlert:r})),o.createElement("div",{className:(0,xr.b)("pane-container")},n)))}),{Content:({children:e,renderContent:t})=>{const{size:n}=tr();return o.createElement(wr,{size:n,className:(0,xr.b)("content"),renderContent:t},e)}});var Sr=n(42793);const kr=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.967 1.5 8 1.5s-1.703.169-2.138.394c-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3s1.703-.169 2.139-.394c.374-.194.364-.32.361-.351M8 4.5c.506 0 .99-.04 1.436-.118l.84 2.352.253.707.717.221c.648.2 1.055.44 1.277.65.192.18.227.31.227.438 0 .14-.055.488-.937.878-.869.384-2.2.622-3.813.622s-2.944-.238-3.813-.622c-.882-.39-.937-.738-.937-.878 0-.128.035-.259.227-.439.222-.209.629-.448 1.277-.649l.717-.221.253-.707.84-2.352c.445.079.93.118 1.436.118m4-2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25",clipRule:"evenodd"})),Cr=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.967 1.5 8 1.5s-1.703.169-2.138.394c-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3s1.703-.169 2.139-.394c.374-.194.364-.32.361-.351M12 2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25",clipRule:"evenodd"}));var Or;function Nr(){return Nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nr.apply(null,arguments)}var Tr=function(e){return o.createElement("svg",Nr({width:56,height:29,viewBox:"0 0 56 29",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Or||(Or=o.createElement("path",{d:"M56 0v29c-.8-1-7-6.1-17.7-8.4L13 15.7A16 16 0 0 1 0 0Z"})))},Ar=n(32084),Ir=n(14794),Pr=n(48681);function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dr.apply(null,arguments)}function Rr(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jr(e,t){return jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jr(e,t)}function Mr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jr(e,t)}var Lr,zr,Fr,Br;function Ur(){if(zr)return Lr;zr=1;return Lr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function qr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}(function(){if(Br)return Fr;Br=1;var e=Ur();function t(){}function n(){}return n.resetWarningCache=t,Fr=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}})()();var $r=!1,Hr=o.createContext(null),Wr=function(e){return e.scrollTop},Vr="unmounted",Kr="exited",Gr="entering",Yr="entered",Zr="exiting",Qr=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Kr,r.appearStatus=Gr):o=Yr:o=t.unmountOnExit||t.mountOnEnter?Vr:Kr,r.state={status:o},r.nextCallback=null,r}Mr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Vr?{status:Kr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Gr&&n!==Yr&&(t=Gr):n!==Gr&&n!==Yr||(t=Zr)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Gr){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Pr.findDOMNode(this);n&&Wr(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Kr&&this.setState({status:Vr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Pr.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||$r?this.safeSetState({status:Yr},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Gr},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Yr},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Pr.findDOMNode(this);t&&!$r?(this.props.onExit(r),this.safeSetState({status:Zr},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Kr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Kr},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Pr.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Vr)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Rr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o.createElement(Hr.Provider,{value:null},"function"===typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},t}(o.Component);function Jr(){}Qr.contextType=Hr,Qr.propTypes={},Qr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Jr,onEntering:Jr,onEntered:Jr,onExit:Jr,onExiting:Jr,onExited:Jr},Qr.UNMOUNTED=Vr,Qr.EXITED=Kr,Qr.ENTERING=Gr,Qr.ENTERED=Yr,Qr.EXITING=Zr;var Xr=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},eo=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=qr(n.className,r):n.setAttribute("class",qr(n.className&&n.className.baseVal||"",r)));var n,r}))},to=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Mr(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&Wr(e),r&&(this.appliedClasses[t][n]=r,Xr(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&eo(e,r),o&&eo(e,o),i&&eo(e,i)},n.render=function(){var e=this.props;e.classNames;var t=Rr(e,["classNames"]);return o.createElement(Qr,Dr({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.Component);function no(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function ro(e,t,n){return null!=n[t]?n[t]:e.props[t]}function oo(e,t,n){var r=no(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if((0,o.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:ro(s,"exit",e),enter:ro(s,"enter",e)})):i[a]=(0,o.cloneElement)(s,{in:!1}):i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:ro(s,"exit",e),enter:ro(s,"enter",e)})}})),i}to.defaultProps={classNames:""},to.propTypes={};var io,ao,so=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},lo=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Mr(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,no(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:ro(e,"appear",n),enter:ro(e,"enter",n),exit:ro(e,"exit",n)})}))):oo(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=no(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Dr({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Rr(e,["component","childFactory"]),i=this.state.contextValue,a=so(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(Hr.Provider,{value:i},a):o.createElement(Hr.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);lo.propTypes={},lo.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}Mr(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,a=o.Children.toArray(i)[t];if(a.props[e]&&(r=a.props)[e].apply(r,n),this.props[e]){var s=a.props.nodeRef?void 0:Pr.findDOMNode(this);this.props[e](s)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=Rr(e,["children","in"]),i=o.Children.toArray(t),a=i[0],s=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,o.createElement(lo,r,n?o.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):o.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(o.Component)).propTypes={};var co="out-in",uo="in-out",fo=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},po=((io={})[co]=function(e){var t=e.current,n=e.changeState;return o.cloneElement(t,{in:!1,onExited:fo(t,"onExited",(function(){n(Gr,null)}))})},io[uo]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,o.cloneElement(r,{in:!0,onEntered:fo(r,"onEntered",(function(){n(Gr)}))})]},io),ho=((ao={})[co]=function(e){var t=e.children,n=e.changeState;return o.cloneElement(t,{in:!0,onEntered:fo(t,"onEntered",(function(){n(Yr,o.cloneElement(t,{in:!0}))}))})},ao[uo]=function(e){var t=e.current,n=e.children,r=e.changeState;return[o.cloneElement(t,{in:!1,onExited:fo(t,"onExited",(function(){r(Yr,o.cloneElement(n,{in:!0}))}))}),o.cloneElement(n,{in:!0})]},ao),mo=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:Yr,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Mr(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Gr&&e.mode===uo?{status:Gr}:!t.current||(n=t.current,r=e.children,n===r||o.isValidElement(n)&&o.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:o.cloneElement(e.children,{in:!0})}:{status:Zr};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,a=i.status,s=i.current,l={children:n,current:s,changeState:this.changeState,status:a};switch(a){case Gr:e=ho[r](l);break;case Zr:e=po[r](l);break;case Yr:e=s}return o.createElement(Hr.Provider,{value:{isMounting:!this.appeared}},e)},t}(o.Component);mo.propTypes={},mo.defaultProps={mode:co};const go=200,vo=800;function yo(e){var t,n;return"touches"in e?null!==(n=null===(t=e.touches[0])||void 0===t?void 0:t.clientX)&&void 0!==n?n:0:e.clientX}function bo(e){const{direction:t,width:n,minResizeWidth:r=go,maxResizeWidth:i=vo,onResizeStart:a,onResize:s}=e,[l,c]=o.useState(!1),[u,d]=o.useState(0),[f,p]=o.useState(null!==n&&void 0!==n?n:400),h=o.useCallback((e=>Math.min(Math.max(e,r),i)),[r,i]),m=o.useCallback((e=>h((null!==n&&void 0!==n?n:f)+("right"===t?e:-e))),[n,f,t,h]),g=o.useCallback((()=>{c(!0),d(0),null===a||void 0===a||a()}),[a]),v=o.useCallback((e=>{d(e)}),[]),y=o.useCallback((e=>{const t=m(e);c(!1),p(t),null===s||void 0===s||s(t)}),[m,s]),b=l?m(u):h(null!==n&&void 0!==n?n:f),w=function({onStart:e,onMove:t,onEnd:n}){const r=o.useRef(0),i=o.useRef(0),a=o.useCallback((e=>{const n=yo(e);if(i.current===n)return;i.current=n;const o=r.current-n;t(o)}),[t]),s=o.useCallback((e=>{window.removeEventListener("mousemove",a),window.removeEventListener("touchmove",a),document.body.style.removeProperty("user-select"),document.body.style.removeProperty("-webkit-user-select"),document.body.style.removeProperty("cursor");const t=yo(e),o=r.current-t;n(o)}),[a,n]),l=o.useCallback((t=>{const n=yo(t);r.current=n,i.current=n,window.addEventListener("mouseup",s,{once:!0}),window.addEventListener("touchend",s,{once:!0}),window.addEventListener("touchcancel",s,{once:!0}),window.addEventListener("mousemove",a),window.addEventListener("touchmove",a),document.body.style.setProperty("user-select","none"),document.body.style.setProperty("-webkit-user-select","none"),document.body.style.setProperty("cursor","col-resize"),e()}),[s,a,e]);return{onMouseDown:l,onTouchStart:l}}({onStart:g,onMove:v,onEnd:y});return{resizedWidth:b,resizerHandlers:w}}y(".gn-drawer{--_--item-shadow-default:0 1px 5px 0 var(--g-color-sfx-shadow);--_--resizer-width:8px;--_--resizer-color:var(--g-color-base-generic);--_--resizer-handle-color:var(--g-color-line-generic);--_--resizer-handle-color-hover:var(--g-color-line-generic-hover);--_--resizer-z-index:100;--_--veil-background-color:var(--g-color-sfx-veil);pointer-events:none}.gn-drawer_hideVeil{--_--item-shadow:var(--gn-drawer-item-shadow,var(--_--item-shadow-default))}.gn-drawer__item{background-color:var(--g-color-base-background);bottom:0;box-shadow:var(--_--item-shadow,none);height:100%;left:0;pointer-events:auto;position:absolute;top:0;will-change:transform;z-index:var(--gn-drawer-item-z-index)}.gn-drawer__item_direction_right{left:auto;right:0}.gn-drawer__item-transition-enter{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-enter{transform:translate(100%)}.gn-drawer__item-transition-enter-active,.gn-drawer__item-transition_direction_right-enter-active{transform:translate(0);transition:transform .3s}.gn-drawer__item-transition-enter-done,.gn-drawer__item-transition_direction_right-enter-done{filter:blur(0);transform:translateZ(0)}.gn-drawer__item-transition-exit,.gn-drawer__item-transition_direction_right-exit{transform:translate(0)}.gn-drawer__item-transition-exit-active,.gn-drawer__item-transition_direction_right-exit-active{transition:transform .3s}.gn-drawer__item-transition-exit-active{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-exit-active{transform:translate(100%)}.gn-drawer__item-transition-exit-done,.gn-drawer__item-transition_direction_right-exit-done,.gn-drawer__item_hidden{visibility:hidden}.gn-drawer__veil{background-color:var(--gn-drawer-veil-background-color,var(--_--veil-background-color));inset:0;pointer-events:auto;position:absolute;z-index:var(--gn-drawer-veil-z-index)}.gn-drawer__veil_hidden{display:none}.gn-drawer__veil-transition-enter{opacity:0}.gn-drawer__veil-transition-enter-active{opacity:1;transition:opacity .3s}.gn-drawer__veil-transition-exit{opacity:1}.gn-drawer__veil-transition-exit-active{opacity:0;transition:opacity .3s}.gn-drawer__veil-transition-exit-done{visibility:hidden}.gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color,var(--_--resizer-handle-color));border-radius:2px;height:28px;width:2px}.gn-drawer__resizer{align-items:center;background:var(--gn-drawer-item-resizer-color,var(--_--resizer-color));cursor:col-resize;display:flex;flex-direction:column;height:100%;justify-content:center;position:absolute;top:0;width:var(--gn-drawer-item-resizer-width,var(--_--resizer-width));z-index:var(--gn-drawer-item-resizer-z-index,var(--_--resizer-z-index))}.gn-drawer__resizer_direction_right{left:0}.gn-drawer__resizer_direction_left{right:0}.gn-drawer__resizer:hover .gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color-hover,var(--_--resizer-handle-color-hover))}");const wo=(0,v.b)("drawer"),xo=o.forwardRef((function(e,t){const{visible:n,content:r,children:i,direction:a="left",className:s,resizable:l,width:c,minResizeWidth:u,maxResizeWidth:d,onResizeStart:f,onResize:p,keepMounted:h=!1}=e,[m,g]=o.useState(!0),v=o.useRef(null),y=(0,Ar.N)(t,v),b="left"===a?void 0:a,{resizedWidth:w,resizerHandlers:x}=bo({direction:a,width:c,minResizeWidth:u,maxResizeWidth:d,onResizeStart:f,onResize:p});o.useEffect((()=>{g(!0)}),[a]);const _=l?o.createElement("div",Object.assign({className:wo("resizer",{direction:a})},x),o.createElement("div",{className:wo("resizer-handle")})):null;return o.createElement(to,{in:n,timeout:300,mountOnEnter:!h,unmountOnExit:!h,classNames:wo("item-transition",{direction:b}),nodeRef:v,onEnter:()=>g(!1),onExit:()=>g(!1)},o.createElement("div",{ref:y,className:wo("item",{direction:b,hidden:m&&!n},[s]),style:{width:l?`${w}px`:void 0}},_,null!==i&&void 0!==i?i:r))})),_o=({className:e,veilClassName:t,children:n,style:r,onVeilClick:i,onEscape:a,preventScrollBody:s=!0,hideVeil:l,disablePortal:c=!0,keepMounted:u=!1})=>{let d=!1;o.Children.forEach(n,(e=>{if(o.isValidElement(e)&&e.type===xo){Boolean(e.props.visible)&&(d=!0)}})),o.useEffect((()=>{function e(e){"Escape"===e.key&&(null===a||void 0===a||a())}return d&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[a,d]),(0,Ir.y)({enabled:s&&d});const f=o.useRef(null),p=o.useRef(null),h=o.createElement(Qr,{in:d,timeout:{enter:0,exit:300},mountOnEnter:!u,unmountOnExit:!u,nodeRef:f},(a=>{const s=d&&"entered"===a;return o.createElement("div",{ref:f,className:wo({hideVeil:l},e),style:r},o.createElement(to,{in:s,timeout:300,unmountOnExit:!0,classNames:wo("veil-transition"),nodeRef:p},o.createElement("div",{ref:p,className:wo("veil",{hidden:l},t),onClick:i})),o.Children.map(n,(e=>{if(o.isValidElement(e)&&e.type===xo){const t=Boolean(e.props.visible);return o.cloneElement(e,Object.assign(Object.assign({keepMounted:u},e.props),{visible:t&&s}))}return e})))}));return c?h:o.createElement(Kn.Z,null,h)};y(".gn-all-pages-list-item{align-items:center;column-gap:var(--g-spacing-4);display:flex;height:40px;padding:0 var(--g-spacing-6);width:100%}.gn-all-pages-list-item__text{flex:1}.gn-all-pages-list-item__icon{color:var(--g-color-text-misc)}");const Eo=(0,v.b)("all-pages-list-item"),So=e=>{const{item:t,editMode:n,onToggle:r}=e,i=(0,o.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),r()}),[r]);return o.createElement("div",{className:Eo(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}},t.icon?o.createElement(f.I,{className:Eo("icon"),data:t.icon,size:t.iconSize}):null,o.createElement("span",{className:Eo("text")},t.title),n&&!t.preventUserRemoving&&o.createElement(E.$,{onClick:i,view:t.hidden?"flat-secondary":"flat-action"},o.createElement(E.$.Icon,null,t.hidden?o.createElement(kr,null):o.createElement(Cr,null))))};var ko=(0,w.N)({en:{"menu-item.all-pages.title":"All pages","all-panel.menu.category.allOther":"All other","all-panel.resetToDefault":"Reset to default","all-panel.title.editing":"Editing","all-panel.title.main":"All pages"},ru:{"menu-item.all-pages.title":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b","all-panel.menu.category.allOther":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435","all-panel.resetToDefault":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","all-panel.title.editing":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","all-panel.title.main":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b"}},`${v.N}AllPagesPanel`);const Co="all-pages";y(".gn-all-pages-panel{box-sizing:border-box;height:100%;min-width:300px;padding:var(--g-spacing-4) var(--g-spacing-6)}.gn-all-pages-panel__content{flex:1;margin:0 calc(var(--g-spacing-6)*-1);overflow:auto}.gn-all-pages-panel__category{padding:0 var(--g-spacing-6)}.gn-all-pages-panel__discoverable-feature-wrapper{display:flex}");const Oo=(0,v.b)("all-pages-panel"),No=e=>{const{startEditIcon:t,onEditModeChanged:n,className:r}=e,{menuItems:i,onMenuItemsChanged:a,editMenuProps:s}=Jn(),l=(0,o.useRef)(i);l.current=i;const[c,u]=(0,o.useState)(!1),d=(0,o.useCallback)((()=>{u((e=>!e))}),[]),p=(e=>{const t=(0,o.useMemo)((()=>{const t=e.filter((e=>"divider"!==e.type&&e.id!==Co));return t.sort(((e,t)=>"action"===e.type?1:"action"===t.type?-1:0)),t.reduce(((e,t)=>{const n=t.category||ko("all-panel.menu.category.allOther");return e[n]||(e[n]=[]),e[n].push(t),e}),{})}),[e]);return t})(i);(0,o.useEffect)((()=>{var e;null===n||void 0===n||n(c),c&&(null===(e=null===s||void 0===s?void 0:s.onOpenEditMode)||void 0===e||e.call(s))}),[c,n,s]);const h=(0,o.useCallback)((e=>{var t;null===(t=e.onItemClick)||void 0===t||t.call(e,e,!1)}),[]),m=(0,o.useCallback)((e=>{var t;if(!a)return;const n=Object.assign(Object.assign({},e),{hidden:!e.hidden}),r=l.current.filter((e=>e.id!==Co));null===(t=null===s||void 0===s?void 0:s.onToggleMenuItem)||void 0===t||t.call(s,n),a(r.map((e=>e.id!==n.id?e:n)))}),[a,s]),v=(0,o.useCallback)(((e,t,n)=>o.createElement(So,{item:e,editMode:c,onToggle:()=>m(e)})),[c,m]),y=(0,o.useCallback)((()=>{var e;if(!a)return;null===(e=null===s||void 0===s?void 0:s.onResetSettingsToDefault)||void 0===e||e.call(s);const t=l.current.filter((e=>e.id!==Co));a(t.map((e=>Object.assign(Object.assign({},e),{hidden:!1}))))}),[a,s]);return o.createElement(g.s,{className:Oo(null,r),gap:"5",direction:"column"},o.createElement(g.s,{gap:"4",alignItems:"center",justifyContent:"space-between"},o.createElement(_.E,{variant:"subheader-2"},ko(c?"all-panel.title.editing":"all-panel.title.main")),o.createElement(E.$,{selected:c,view:"normal",onClick:d},t||o.createElement(f.I,{data:Vn.A}))),o.createElement(g.s,{className:Oo("content"),gap:"5",direction:"column"},Object.keys(p).map((e=>o.createElement(g.s,{key:e,direction:"column",gap:"3"},o.createElement(_.E,{className:Oo("category"),variant:"body-1",color:"secondary"},e),o.createElement(Yn.B,{virtualized:!1,filterable:!1,items:p[e],onItemClick:h,renderItem:v}))))),c&&o.createElement(E.$,{onClick:y},ko("all-panel.resetToDefault")))};let To;To="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let Ao=null,Io=null;const Po=To.clearTimeout,Do=To.setTimeout,Ro=To.cancelAnimationFrame||To.mozCancelAnimationFrame||To.webkitCancelAnimationFrame,jo=To.requestAnimationFrame||To.mozRequestAnimationFrame||To.webkitRequestAnimationFrame;function Mo(e){let t,n,r,o,i,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&Ao(this.__resizeRAF__),this.__resizeRAF__=Io((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=To.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==Ro||null==jo?(Ao=Po,Io=function(e){return Do(e,20)}):(Ao=function([e,t]){Ro(e),Po(t)},Io=function(e){const t=jo((function(){Po(n),e()})),n=Do((function(){Ro(t),e()}),20);return[t,n]});class Lo extends o.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=Mo(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:p,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return r||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),i||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),a&&(y=!1),(0,o.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}const zo={active:!1,activeIndex:void 0,hideCollapseItemTooltip:!1,lastClickedItemIndex:void 0,setValue:()=>{}},Fo=o.createContext(zo);class Bo extends o.PureComponent{constructor(){super(...arguments),this.state=Object.assign({},zo),this.setValue=e=>{this.setState(Object.assign({},e))}}render(){const{children:e}=this.props;return o.createElement(Fo.Provider,{value:Object.assign(Object.assign({},this.state),{setValue:this.setValue})},e)}}y('.g-root_theme_dark .gn-multiple-tooltip,.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-100-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(16px)}.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-150-solid)\n )}.g-root_theme_light .gn-multiple-tooltip,.g-root_theme_light-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-black-550-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(12px)}.gn-multiple-tooltip.gn-multiple-tooltip{background-color:transparent;box-shadow:none}.gn-multiple-tooltip:before{background:var(--multiple-tooltip-backdrop-background);box-shadow:none;content:"";filter:var(--multiple-tooltip-backdrop-filter);height:100%;opacity:.7;position:absolute;width:100%;z-index:-1}.gn-multiple-tooltip__items-container{align-items:flex-start;display:flex;flex-direction:column;padding:32px 40px 32px 12px}.gn-multiple-tooltip__item{align-items:center;background-color:var(--multiple-tooltip-item-bg-color);border-radius:5px;box-sizing:border-box;color:var(--g-color-text-light-primary);display:flex;height:30px;margin-bottom:5px;padding:8px 12px;position:relative;transition:transform .1s ease-in-out}.gn-multiple-tooltip__item:first-child,.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider)+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:5px}.gn-multiple-tooltip__item_divider+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:4px}.gn-multiple-tooltip__item_active{background-color:var(--multiple-tooltip-item-active-bg-color);transform:translateX(-12px)}.gn-multiple-tooltip__item_divider{height:15px;margin:0;visibility:hidden}');const Uo=(0,v.b)("multiple-tooltip"),qo=[-32,4],$o=[{name:"preventOverflow",enabled:!1}],Ho=({items:e,open:t,anchorRef:n,placement:r})=>{const{activeIndex:i,hideCollapseItemTooltip:a}=o.useContext(Fo),s=void 0===i?null:e[i];return o.createElement(we.z,{open:t,anchorRef:n,placement:r,offset:qo,contentClassName:Uo(null),modifiers:$o,disableLayer:!0},o.createElement("div",{className:Uo("items-container")},e.filter((({type:e="regular",id:t})=>!a||t!==ir&&"action"!==e)).map(((e,t)=>"divider"===e.type?o.createElement("div",{className:Uo("item",{divider:!0}),key:t},e.title):o.createElement("div",{className:Uo("item",{active:e===s}),key:t},e.title)))))};y(".gn-composite-bar{flex:1 0 auto;min-height:40px;width:100%}.gn-composite-bar .gn-composite-bar__root-menu-item[class]{background-color:transparent}");const Wo=(0,v.b)("composite-bar"),Vo=({type:e,items:t,onItemClick:n,onMoreClick:r,collapseItems:i,multipleTooltip:a=!1})=>{const s=(0,o.useRef)(null),l=(0,o.useRef)(null),{setValue:c,active:u,activeIndex:d,lastClickedItemIndex:f}=(0,o.useContext)(Fo),{compact:p}=tr();o.useEffect((()=>{function e(){a&&u&&c({active:!1})}return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}}),[a,u,c]);const h=(0,o.useCallback)((e=>{a&&p&&!u&&document.hasFocus()&&d!==f&&e.clientX<=56&&(null===c||void 0===c||c({active:!0}))}),[a,p,u,d,f,c]),m=(0,o.useCallback)((()=>{a&&u&&document.hasFocus()&&(null===c||void 0===c||c({active:!1,lastClickedItemIndex:void 0}))}),[a,u,c]),g=(0,o.useCallback)((e=>()=>{if(a&&document.hasFocus()){let t=u;if(u||e===f||(t=!0),d===e&&u===t)return;c({activeIndex:e,active:t})}}),[a,u,f,d,c]),v=(0,o.useCallback)((()=>{var e;p&&document.hasFocus()&&(null===(e=s.current)||void 0===e||e.activateItem(void 0),!a||void 0===d&&void 0===f||c({activeIndex:void 0,lastClickedItemIndex:void 0}))}),[d,p,f,a,c]),y=(0,o.useCallback)((e=>(t,r,o)=>{p&&a&&e!==f&&t.id!==ir&&c({lastClickedItemIndex:e,active:!1}),null===n||void 0===n||n(t,r,o)}),[p,f,a,n,c]);return o.createElement(o.Fragment,null,o.createElement("div",{ref:l,onMouseEnter:h,onMouseLeave:m},o.createElement(Yn.B,{ref:s,items:t,selectedItemIndex:"menu"===e?cr(t):void 0,itemHeight:sr,itemsHeight:lr,itemClassName:Wo("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:(e,t,n)=>{const s=ur(e)?{item:e}:e,l=ur(e)?!a:e.enableTooltip;return o.createElement(mr,Object.assign({},s,{enableTooltip:l,onMouseEnter:g(n),onMouseLeave:v,onItemClick:y(n),onCollapseItemClick:r,collapseItems:i}))}})),"menu"===e&&a&&o.createElement(Ho,{open:p&&u,anchorRef:l,placement:["right-start"],items:t}))},Ko=({type:e,items:t,menuMoreTitle:n,onItemClick:r,onMoreClick:i,multipleTooltip:a=!1})=>{if(0===t.length)return null;let s;if("menu"===e){const e=function(e){const t=function(e){const t=[];for(const n of e)(n.pinned||"divider"===n.type&&t.length>0&&"divider"!==t[t.length-1].type)&&t.push(n);return t}(e),n=e.filter((e=>e.afterMoreButton));return lr(t)+lr(n)+(t.length===e.length?0:40)}(t),l=function(e){return{id:ir,title:e,icon:nr.A,iconSize:18}}(n);s=o.createElement("div",{className:Wo({autosizer:!0}),style:{minHeight:e}},0!==t.length&&o.createElement(Lo,null,(e=>{const n=Number.isNaN(e.width)?0:e.width,s=Number.isNaN(e.height)?0:e.height,{listItems:c,collapseItems:u}=function(e,t,n){var r,o,i;const a=e.filter((e=>e.afterMoreButton)),s=e.filter((e=>!e.afterMoreButton)),l=[...s,...a],c=lr(l);if(c<=t)return{listItems:l,collapseItems:[]};const u=sr(n);l.splice(s.length,0,n);const d=[];let f=c+u,p=l.length;for(;f>t&&0!==p;){p--;const e=l[p];e.pinned||e.id===ir||e.afterMoreButton||("divider"!==e.type?(f-=sr(e),d.unshift(...l.splice(p,1))):p+1<l.length&&"divider"===(null===(r=l[p+1])||void 0===r?void 0:r.type)&&(f-=sr(e),l.splice(p,1)))}return"divider"!==(null===(o=l[p])||void 0===o?void 0:o.type)||0!==p&&"divider"!==(null===(i=l[p-1])||void 0===i?void 0:i.type)||l.splice(p,1),{listItems:l,collapseItems:d}}(t,s,l);return o.createElement("div",{style:{width:n,height:s}},o.createElement(Vo,{type:"menu",items:c,onItemClick:r,onMoreClick:i,collapseItems:u,multipleTooltip:a}))})))}else s=o.createElement("div",{className:Wo({subheader:!0})},o.createElement(Vo,{type:"subheader",items:t,onItemClick:r}));return o.createElement(Bo,null,s)};var Go={button_collapse:"Collapse",button_expand:"Expand",label_more:"More"},Yo={button_collapse:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",button_expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",label_more:"\u0415\u0449\u0451"};var Zo,Qo=(0,w.N)({en:Go,ru:Yo},`${v.N}AsideHeader`);function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jo.apply(null,arguments)}var Xo=function(e){return o.createElement("svg",Jo({width:8,height:8,viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Zo||(Zo=o.createElement("path",{d:"m.72 7.64 6.39-3.2a.5.5 0 0 0 0-.89L.72.36A.5.5 0 0 0 0 .81v6.38c0 .37.4.61.72.45Z"})))};y('.gn-collapse-button{--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;align-items:center;background:none;border:none;border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));box-sizing:content-box;color:inherit;cursor:pointer;display:flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;min-height:20px;outline:none;padding:0;position:relative;width:100%}.gn-collapse-button:before{content:"";inset:0 2px 2px;position:absolute;z-index:-1}.gn-collapse-button:focus-visible:before{outline:var(--_--focus-outline-color) solid 2px;outline-offset:var(--_--focus-outline-offset)}.gn-collapse-button:not(.gn-collapse-button_compact) .gn-collapse-button__icon{transform:rotate(180deg)}.gn-collapse-button:hover .gn-collapse-button__icon{color:var(--g-color-text-primary)}.gn-collapse-button__icon{color:var(--g-color-text-secondary)}');const ei=(0,v.b)("collapse-button"),ti=({className:e})=>{const{onChangeCompact:t,compact:n,expandTitle:r,collapseTitle:i}=Jn(),a=(0,o.useCallback)((()=>{null===t||void 0===t||t(!n)}),[n,t]),s=n?r||Qo("button_expand"):i||Qo("button_collapse");return o.createElement("button",{className:ei({compact:n},e),onClick:a,title:s},o.createElement(f.I,{data:Xo,className:ei("icon"),width:"16",height:"10"}))};y(".gn-logo{height:40px}.gn-logo,.gn-logo__logo-btn-place{align-items:center;display:flex;flex-shrink:0}.gn-logo__logo-btn-place{cursor:pointer;justify-content:center}.gn-logo__logo-btn-place .g-button:before{background-color:transparent}.gn-logo__logo{cursor:pointer;font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height);vertical-align:middle}.gn-logo__logo-link,.gn-logo__logo-link:active,.gn-logo__logo-link:focus,.gn-logo__logo-link:hover,.gn-logo__logo-link:visited{color:inherit;outline:none;text-decoration:none}.g-root .gn-logo__btn-logo.button2_theme_flat.button2_hovered_yes:before{background-color:transparent}");const ni=(0,v.b)("logo"),ri=({text:e,icon:t,iconSrc:n,iconClassName:r,iconSize:i=24,textSize:a=15,href:s,target:l="_self",wrapper:c,onClick:u,compact:d,className:p,buttonWrapperClassName:h,buttonClassName:m,"aria-label":g,"aria-labelledby":v})=>{const y="function"===typeof c;let b;n?b=o.createElement(E.$.Icon,{className:r},o.createElement("img",{alt:"logo icon",src:n,width:i,height:i})):t&&(b=o.createElement(f.I,{data:t,size:i,className:r}));const w=o.createElement(E.$,{view:"flat",size:"l",className:ni("btn-logo",m),component:y?"span":void 0,onClick:u,target:l,rel:"_self"===l?void 0:"noreferrer",href:s,extraProps:{"aria-label":g,"aria-labelledby":v}},b);let x;return x="function"===typeof e?e():o.createElement("div",{className:ni("logo"),style:{fontSize:a}},e),o.createElement("div",{className:ni(null,p)},o.createElement("div",{className:ni("logo-btn-place",h)},y?c(w,Boolean(d)):w),!d&&(y?o.createElement("div",{onClick:u},c(x,Boolean(d))):o.createElement("a",{href:null!==s&&void 0!==s?s:"/",target:l,rel:"_self"===l?void 0:"noreferrer",className:ni("logo-link"),onClick:u},x)))},oi=[],ii=()=>{const{logo:e,onItemClick:t,onClosePanel:n,headerDecoration:r,subheaderItems:i}=Jn(),{compact:a}=tr(),s=(0,o.useCallback)((t=>{var r;null===n||void 0===n||n(),null===(r=null===e||void 0===e?void 0:e.onClick)||void 0===r||r.call(e,t)}),[n,e]);return o.createElement("div",{className:(0,xr.b)("header",{"with-decoration":r})},e&&o.createElement(ri,Object.assign({},e,{onClick:s,compact:a,buttonWrapperClassName:(0,xr.b)("logo-button-wrapper"),buttonClassName:(0,xr.b)("logo-button")})),o.createElement(Ko,{type:"subheader",items:i||oi,onItemClick:t}),r&&o.createElement(f.I,{data:Tr,className:(0,xr.b)("header-divider"),width:56,height:29}))},ai=()=>{const{panelItems:e,onClosePanel:t,size:n}=Jn();return e?o.createElement(_o,{className:(0,xr.b)("panels"),onVeilClick:t,onEscape:t,style:{left:n}},e.map((e=>o.createElement(xo,Object.assign({key:e.id},e))))):null},si=o.forwardRef(((e,t)=>{const{size:n,onItemClick:r,headerDecoration:i,multipleTooltip:a,menuMoreTitle:s,onMenuMoreClick:l,renderFooter:c,compact:u,customBackground:d,customBackgroundClassName:f,className:p,hideCollapseButton:h,qa:m}=Jn(),g=(()=>{const{menuItems:e,allPagesIsAvailable:t}=Jn();return(0,o.useMemo)((()=>{if(!t)return e;let n=0;return e.filter(((e,t,r)=>!e.hidden&&(!(t>0&&"divider"===e.type)||"divider"!==r[n].type&&!r[n].hidden)&&(n=t,!0)))}),[t,e])})(),v=(0,o.useRef)(null);return o.useEffect((()=>{(0,Sr.c)(t,v.current)}),[t]),o.createElement(o.Fragment,null,o.createElement("div",{className:(0,xr.b)("aside",p),style:{width:n},"data-qa":m},o.createElement("div",{className:(0,xr.b)("aside-popup-anchor"),ref:v}),o.createElement("div",{className:(0,xr.b)("aside-content",{"with-decoration":i})},d&&o.createElement("div",{className:(0,xr.b)("aside-custom-background",f)},d),o.createElement(ii,null),(null===g||void 0===g?void 0:g.length)?o.createElement(Ko,{type:"menu",items:g,menuMoreTitle:null!==s&&void 0!==s?s:Qo("label_more"),onItemClick:r,onMoreClick:l,multipleTooltip:a}):o.createElement("div",{className:(0,xr.b)("menu-items")}),o.createElement("div",{className:(0,xr.b)("footer")},null===c||void 0===c?void 0:c({size:n,compact:Boolean(u),asideRef:v})),!h&&o.createElement(ti,null))),o.createElement(ai,null))}));var li;si.displayName="FirstPanel",function(e){e.AllPages="all-pages"}(li||(li={}));const ci=[],ui=e=>{const{size:t,onClosePanel:n,menuItems:r,panelItems:i,onMenuItemsChanged:a,onAllPagesClick:s}=e,[l,c]=(0,o.useState)(),u=o.useMemo((()=>({id:Co,title:ko("menu-item.all-pages.title"),tooltipText:ko("menu-item.all-pages.title"),icon:nr.A})),[]),d=Boolean(a)&&(!r||(null===r||void 0===r?void 0:r.length)>0);(0,o.useEffect)((()=>{(null===i||void 0===i?void 0:i.some((e=>e.visible)))&&c(void 0)}),[i]);const f=(0,o.useCallback)((()=>{c(void 0),null===n||void 0===n||n()}),[n]),p=(0,o.useCallback)(((e,t,r)=>{var o;e.id===u.id?(null===n||void 0===n||n(),c((e=>e===li.AllPages?void 0:li.AllPages))):f(),null===(o=e.onItemClick)||void 0===o||o.call(e,e,t,r)}),[f,u,n]),h=(0,o.useMemo)((()=>d?[...r||ci,Object.assign(Object.assign({},u),{current:l===li.AllPages,onItemClick:s})]:r||ci),[d,r,l,u,s]),m=(0,o.useMemo)((()=>d?[...i||[],{id:li.AllPages,content:o.createElement(No,null),visible:l===li.AllPages}]:i),[d,i,l]);return Object.assign(Object.assign({},e),{onClosePanel:f,allPagesIsAvailable:d,menuItems:h,panelItems:m,size:t,onItemClick:p})},di=o.forwardRef(((e,t)=>{const{size:n,compact:r}=tr(),i=ui(Object.assign({size:n,compact:r},e));return o.createElement(Qn,{value:i},o.createElement(si,{ref:t}))}));di.displayName="PageLayoutAside";const fi=o.forwardRef(((e,t)=>{var{compact:n,className:r,topAlert:i}=e,a=d(e,["compact","className","topAlert"]);return o.createElement(Er,{compact:n,className:r,topAlert:i},o.createElement(di,Object.assign({ref:t},a)),o.createElement(Er.Content,{renderContent:a.renderContent}))}));fi.displayName="AsideHeader";var pi,hi=n(59001);function mi(){return mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mi.apply(null,arguments)}const gi=function(e){return o.createElement("svg",mi({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},e),pi||(pi=o.createElement("path",{d:"M560 448h-48V113.5c0-27.25-21.5-49.5-48-49.5l-112 .01V128h96v384h112c8.875 0 16-7.125 16-15.1v-31.1c0-10.7-7.1-17.8-16-17.8zM280.3 1.007l-192 49.75C73.1 54.51 64 67.76 64 82.88V448H16c-8.875 0-16 7.125-16 15.1v31.1C0 504.9 7.125 512 16 512h304V33.13c0-21.5-19.5-37.373-39.7-32.123zM232 288c-13.25 0-24-14.37-24-31.1 0-17.62 10.75-31.1 24-31.1s24 12.6 24 30.2-10.7 32-24 32z"})))},vi=(0,fe.cn)("kv-navigation");function yi({isCompact:e,popupAnchor:t,user:n,children:r}){var i;const[a,s]=o.useState(!1),l=n?null!==(i=n.icon)&&void 0!==i?i:Hn:gi;return(0,ie.jsx)(yr,{compact:e,item:{id:"user-popup",title:null!==n&&void 0!==n&&n.login?n.login:me("navigation-item.account"),current:a,icon:l,onItemClick:()=>s((e=>!e))},enableTooltip:!a,popupAnchor:t,popupVisible:a,onClosePopup:()=>s(!1),renderPopupContent:()=>(0,ie.jsx)("div",{className:vi("ydb-user-wrapper"),children:r})})}var bi=function(e){return e.UserSettings="UserSettings",e}(bi||{});function wi(e){const t=(0,ue.W6)(),[n,r]=o.useState(),[i,a]=(0,u.iK)(je.LQ);return(0,ie.jsx)(o.Fragment,{children:(0,ie.jsx)(fi,{logo:{text:"YDB",icon:wt,onClick:()=>t.push("/")},menuItems:e.menuItems,compact:i,onChangeCompact:a,className:vi(),renderContent:()=>e.content,renderFooter:({compact:t,asideRef:i})=>(0,ie.jsxs)(o.Fragment,{children:[(0,ie.jsx)(yr,{compact:t,item:{id:"documentation",title:me("navigation-item.documentation"),icon:Wn.A,onItemClick:()=>{window.open("ru"===hi.f.readUserSettingsValue(je.jS,navigator.language)?"https://ydb.tech/docs/ru/":"https://ydb.tech/docs/en/","_blank","noreferrer")}}}),(0,ie.jsx)(yr,{item:{id:"user-settings",title:me("navigation-item.settings"),icon:Vn.A,current:n===bi.UserSettings,onItemClick:()=>{r(n===bi.UserSettings?void 0:bi.UserSettings)}},compact:t}),(0,ie.jsx)(yi,{isCompact:t,popupAnchor:i,user:e.user,children:e.ydbInternalUser})]}),panelItems:[{id:"user-settings",visible:n===bi.UserSettings,content:e.settings}],onClosePanel:()=>{r(void 0)}})})}const xi=(new class{constructor(){this.type=void 0,this.entities={}}set(e,t){return this.entities[e]=t,this}get(e){return this.entities[e]}register(e,t){return this.entities[e]=t,this}}).register("StaffCard",(function({children:e}){return(0,ie.jsx)(o.Fragment,{children:e})})).register("AsideNavigation",wi).register("ErrorBoundary",s.lQ);function _i({store:e,history:t,componentsRegistry:n=xi,children:r}){return(0,ie.jsx)(i.vd,{children:(0,ie.jsx)(a.Kq,{store:e,children:(0,ie.jsx)(ue.Ix,{history:t,children:(0,ie.jsx)(qn.QueryParamProvider,{adapter:$n,children:(0,ie.jsx)(Ei,{children:(0,ie.jsx)(l.I,{registry:n,children:(0,ie.jsx)(Bn.Kq,{children:r})})})})})})})}function Ei({children:e}){const[t]=(0,u.iK)(je.k4);return(0,ie.jsx)(Un.N,{theme:t,children:e})}const Si=(0,a.Ng)((function(e){return{singleClusterMode:e.singleClusterMode}}))((function({store:e,history:t,singleClusterMode:n,children:r,userSettings:o=rt({singleClusterMode:n})}){return(0,ie.jsxs)(_i,{store:e,history:t,children:[(0,ie.jsx)(i.mg,{defaultTitle:"YDB Monitoring",titleTemplate:"%s \u2014 YDB Monitoring"}),(0,ie.jsx)(Fn,{children:(0,ie.jsx)(ye,{userSettings:o,children:(0,ie.jsxs)(s.tH,{children:[(0,ie.jsx)(Rn,{singleClusterMode:n,children:r}),(0,ie.jsx)("div",{id:"fullscreen-root"})]})})}),(0,ie.jsx)(Te,{})]})}));function ki({monitoring:e,dbName:t,dbType:n,clusterName:r}){try{const a=Oi(e);if(a){var o,i;const e=null!==(o=a.host)&&void 0!==o?o:"cluster",s=null!==(i=a.slot)&&void 0!==i?i:"static",l=a.cluster_name||r||"",c=new URL(a.monitoring_url);if(!c.search){const e="Serverless"===n?a.serverless_dashboard:a.dedicated_dashboard;c.pathname+=`/${e}`}return c.searchParams.has("p.cluster")||c.searchParams.set("p.cluster",l),c.searchParams.set("p.host",e),c.searchParams.set("p.slot",s),c.searchParams.set("p.database",t),c.toString()}}catch{}return""}function Ci(e,t){try{const n=Oi(e);if(n){const e=n.cluster_dashboard,r=n.cluster_name||t||"",o=new URL(n.monitoring_url);return!o.search&&e&&(o.pathname+=`/${e}/view`),o.searchParams.has("p.cluster")||o.searchParams.set("p.cluster",r),o.searchParams.set("p.database","-"),o.toString()}}catch{}return""}function Oi(e){try{const t=JSON.parse(e);if("object"===typeof t&&"monitoring_url"in t)return t}catch{}}var Ni=n(96873),Ti=n(40537),Ai=n(69446),Ii=n(77630),Pi=n(71294);const Di=(0,fe.cn)("extended-cluster"),Ri=e=>{const t=(0,Ai.Zd)(e);return{label:"Balancer",value:(0,ie.jsxs)("div",{className:Di("balancer"),children:[t,(0,ie.jsx)(Ni.b,{text:t,size:"s",className:Di("clipboard-button")})]})}},ji=(e,t,n,r)=>{const o={};if(t&&r){const n=r(t,e);n&&(o.links=[{title:"Monitoring",url:n}])}return n&&(o.info=[Ri(n)]),o},Mi=(e=[])=>({getVersionToColorMap:()=>(0,Ti.Vm)((0,Ti.HD)(e))}),Li=(e,t,n,r,o)=>{const i={prepareTenantBackend:e=>{var t;if(n){if(r)return(0,Ai.PG)(n);if(e)return"string"===typeof e?(0,Ii.De)(e,n):null!==(t=(0,Ii.Vk)(e,n,!0))&&void 0!==t?t:void 0}}};return t&&o&&(i.getMonitoringLink=(n,r)=>n&&r?o({monitoring:t,dbName:n,dbType:r,clusterName:e}):null),i};function zi({component:e,getMonitoringLink:t,getMonitoringClusterLink:n}){const{versions:r,useClusterBalancerAsBackend:o,additionalNodesProps:i}=(0,Pi.s)(),{name:a,balancer:s,monitoring:l}=(0,Yt.Zd)();return(0,ie.jsx)("div",{className:Di(),children:(0,ie.jsx)(e,{additionalClusterProps:ji(a,l,s,n),additionalVersionsProps:Mi(r),additionalTenantsProps:Li(a,l,s,o,t),additionalNodesProps:i})})}function Fi({component:e}){const{balancer:t}=(0,Yt.Zd)(),{additionalNodesProps:n}=(0,Pi.B)({balancer:t});return(0,ie.jsx)(e,{additionalNodesProps:n})}function Bi({component:e,getMonitoringLink:t}){const{balancer:n,monitoring:r}=(0,Yt.Zd)(),{additionalNodesProps:o}=(0,Pi.B)({balancer:n}),i={getMonitoringLink:(e,n)=>r&&e&&n&&t?t({monitoring:r,dbName:e,dbType:n}):null};return(0,ie.jsx)(e,{additionalTenantProps:i,additionalNodesProps:o})}function Ui({store:e,history:t,getMonitoringLink:n=ki,getMonitoringClusterLink:r=Ci,userSettings:o,children:i}){return(0,ie.jsxs)(Si,{store:e,history:t,userSettings:o,children:[(0,ie.jsx)(yn,{children:({component:e})=>(0,ie.jsx)(zi,{component:e,getMonitoringLink:n,getMonitoringClusterLink:r})}),(0,ie.jsx)(wn,{children:({component:e})=>(0,ie.jsx)(Fi,{component:e})}),(0,ie.jsx)(bn,{children:({component:e})=>(0,ie.jsx)(Bi,{component:e,getMonitoringLink:n})}),i]})}var qi=n(58351),$i=n(37402),Hi=n(88610),Wi=n(59625),Vi=n(42566)},42566:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=e=>{e&&e instanceof Function&&n.e(2308).then(n.bind(n,62308)).then((({getCLS:t,getFID:n,getFCP:r,getLCP:o,getTTFB:i})=>{t(e),n(e),r(e),o(e),i(e)}))}},92459:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,Ck:()=>v,DM:()=>x,KY:()=>h,Ow:()=>m,_g:()=>b,a3:()=>g,mA:()=>f,qc:()=>w,yX:()=>y});var r=n(905),o=n.n(r),i=n(95166),a=n(74309),s=n.n(a),l=n(67087),c=n(58351);const u={clusters:"/clusters",cluster:"/cluster/:activeTab?",tenant:"/tenant",node:"/node/:id/:activeTab?",pDisk:"/pDisk",vDisk:"/vDisk",storageGroup:"/storageGroup",tablet:"/tablet/:id",tabletsFilters:"/tabletsFilters",auth:"/auth"},d=u,f=e=>s().parse(e.search,{ignoreQueryPrefix:!0}),p=e=>{let t=e;const n=/:\d{3,5}/g,r=e.match(n);if(r){const o=r[0];t=e.replace(n,":\\"+o.slice(1))}return t};function h(e,t,n={}){let r=n;const a="backend"in n&&Boolean(n.backend);c.Hs&&!a&&c.jC&&(r={...n,backend:c.Hs});const l="clusterName"in n&&Boolean(n.clusterName);c.SL&&!l&&c.jC&&(r={...r,clusterName:c.SL});const u=o()(r)?"":`?${s().stringify(r,{encode:!1,arrayFormat:"repeat"})}`,d=p(e);return`${(0,i.compile)(d)(t)}${u}`}const m=(e={})=>h(window.location.pathname,void 0,e);function g(e){const{pathname:t,search:n,hash:r}=new URL(e,"http://localhost");return{pathname:t,search:n,hash:r}}function v(e,t,n={}){return h(u.pDisk,void 0,{...n,nodeId:t,pDiskId:e})}function y(e,t,n,r={}){return h(u.vDisk,void 0,{...r,nodeId:n,pDiskId:t,vDiskSlotId:e})}function b(e,t={}){return h(u.storageGroup,void 0,{...t,groupId:e})}const w={database:l.StringParam,clusterName:l.StringParam,activeTab:l.StringParam};function x(e,t={}){return h(u.tablet,{id:e},{...t})}},37402:(e,t,n)=>{"use strict";n.d(t,{i:()=>wn,x:()=>xn});var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>de,hasStandardBrowserEnv:()=>pe,hasStandardBrowserWebWorkerEnv:()=>he,navigator:()=>fe,origin:()=>me});var o=n(58671),i=n.n(o);function a(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:l}=Object,c=(u=Object.create(null),e=>{const t=s.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,h=f("undefined");const m=d("ArrayBuffer");const g=f("string"),v=f("function"),y=f("number"),b=e=>null!==e&&"object"===typeof e,w=e=>{if("object"!==c(e))return!1;const t=l(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},x=d("Date"),_=d("File"),E=d("Blob"),S=d("FileList"),k=d("URLSearchParams"),[C,O,N,T]=["ReadableStream","Request","Response","Headers"].map(d);function A(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,o;if("object"!==typeof e&&(e=[e]),p(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function I(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const P="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,D=e=>!h(e)&&e!==P;const R=(j="undefined"!==typeof Uint8Array&&l(Uint8Array),e=>j&&e instanceof j);var j;const M=d("HTMLFormElement"),L=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),z=d("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};A(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",U="0123456789",q={DIGIT:U,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+U};const $=d("AsyncFunction"),H=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],P.addEventListener("message",(({source:e,data:t})=>{e===P&&t===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),P.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,v(P.postMessage)),W="undefined"!==typeof queueMicrotask?queueMicrotask.bind(P):"undefined"!==typeof process&&process.nextTick||H,V={isArray:p,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=c(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer),t},isString:g,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isReadableStream:C,isRequest:O,isResponse:N,isHeaders:T,isUndefined:h,isDate:x,isFile:_,isBlob:E,isRegExp:z,isFunction:v,isStream:e=>b(e)&&v(e.pipe),isURLSearchParams:k,isTypedArray:R,isFileList:S,forEach:A,merge:function e(){const{caseless:t}=D(this)&&this||{},n={},r=(r,o)=>{const i=t&&I(n,o)||o;w(n[i])&&w(r)?n[i]=e(n[i],r):w(r)?n[i]=e({},r):p(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&A(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(A(t,((t,r)=>{n&&v(t)?e[r]=a(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:I,global:P,isContextDefined:D,ALPHABET:q,generateString:(e=16,t=q.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=p(e)?[]:{};return A(e,((e,t)=>{const i=n(e,r+1);!h(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:$,isThenable:e=>e&&(b(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:H,asap:W};function K(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}V.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}});const G=K.prototype,Y={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Y[e]={value:e}})),Object.defineProperties(K,Y),Object.defineProperty(G,"isAxiosError",{value:!0}),K.from=(e,t,n,r,o,i)=>{const a=Object.create(G);return V.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),K.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Z=K;function Q(e){return V.isPlainObject(e)||V.isArray(e)}function J(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,n){return e?e.concat(t).map((function(e,t){return e=J(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ee=V.toFlatObject(V,{},null,(function(e){return/^is[A-Z]/.test(e)}));const te=function(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!V.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(V.isDate(e))return e.toISOString();if(!s&&V.isBlob(e))throw new Z("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(e)||V.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(V.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&function(e){return V.isArray(e)&&!e.some(Q)}(e)||(V.isFileList(e)||V.endsWith(n,"[]"))&&(s=V.toArray(e)))return n=J(n),s.forEach((function(e,r){!V.isUndefined(e)&&null!==e&&t.append(!0===a?X([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Q(e)||(t.append(X(o,n,i),l(e)),!1)}const u=[],d=Object.assign(ee,{defaultVisitor:c,convertValue:l,isVisitable:Q});if(!V.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!V.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),V.forEach(n,(function(n,i){!0===(!(V.isUndefined(n)||null===n)&&o.call(t,n,V.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const oe=re.prototype;oe.append=function(e,t){this._pairs.push([e,t])},oe.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ie=re;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function se(e,t,n){if(!t)return e;const r=n&&n.encode||ae;V.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):V.isURLSearchParams(t)?t.toString():new ie(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const le=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){V.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:ie,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},de="undefined"!==typeof window&&"undefined"!==typeof document,fe="object"===typeof navigator&&navigator||void 0,pe=de&&(!fe||["ReactNative","NativeScript","NS"].indexOf(fe.product)<0),he="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,me=de&&window.location.href||"http://localhost",ge={...r,...ue};const ve=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&V.isArray(r)?r.length:i,s)return V.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&V.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&V.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,((e,r)=>{t(function(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const ye={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=V.isObject(e);o&&V.isHTMLForm(e)&&(e=new FormData(e));if(V.isFormData(e))return r?JSON.stringify(ve(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ge.isNode&&V.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=V.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(n){if("SyntaxError"===o.name)throw Z.from(o,Z.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));const be=ye,we=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xe=Symbol("internals");function _e(e){return e&&String(e).trim().toLowerCase()}function Ee(e){return!1===e||null==e?e:V.isArray(e)?e.map(Ee):String(e)}function Se(e,t,n,r,o){return V.isFunction(r)?r.call(this,t,n):(o&&(t=n),V.isString(t)?V.isString(r)?-1!==t.indexOf(r):V.isRegExp(r)?r.test(t):void 0:void 0)}class ke{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=_e(t);if(!o)throw new Error("header name must be a non-empty string");const i=V.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ee(e))}const i=(e,t)=>V.forEach(e,((e,n)=>o(e,n,t)));if(V.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(V.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&we[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(V.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=_e(e)){const n=V.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(V.isFunction(t))return t.call(this,e,n);if(V.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=_e(e)){const n=V.findKey(this,e);return!(!n||void 0===this[n]||t&&!Se(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=_e(e)){const o=V.findKey(n,e);!o||t&&!Se(0,n[o],o,t)||(delete n[o],r=!0)}}return V.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Se(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return V.forEach(this,((r,o)=>{const i=V.findKey(n,o);if(i)return t[i]=Ee(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Ee(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return V.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&V.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[xe]=this[xe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=_e(e);t[r]||(!function(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return V.isArray(e)?e.forEach(r):r(e),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(ke.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),V.freezeMethods(ke);const Ce=ke;function Oe(e,t){const n=this||be,r=t||n,o=Ce.from(r.headers);let i=r.data;return V.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ne(e){return!(!e||!e.__CANCEL__)}function Te(e,t,n){Z.call(this,null==e?"canceled":e,Z.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(Te,Z,{__CANCEL__:!0});const Ae=Te;function Ie(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Z("Request failed with status code "+n.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Pe=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const De=function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]},Re=(e,t,n=3)=>{let r=0;const o=Pe(50,250);return De((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},je=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Me=e=>(...t)=>V.asap((()=>e(...t))),Le=ge.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ge.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,ze=ge.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];V.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),V.isString(r)&&a.push("path="+r),V.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Fe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Be=e=>e instanceof Ce?{...e}:e;function Ue(e,t){t=t||{};const n={};function r(e,t,n,r){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:r},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function o(e,t,n,o){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!V.isUndefined(t))return r(void 0,t)}function a(e,t){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Be(e),Be(t),0,!0)};return V.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);V.isUndefined(a)&&i!==s||(n[r]=a)})),n}const qe=e=>{const t=Ue({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Ce.from(s),t.url=se(Fe(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),V.isFormData(r))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ge.hasStandardBrowserEnv&&(o&&V.isFunction(o)&&(o=o(t)),o||!1!==o&&Le(t.url))){const e=i&&a&&ze.read(a);e&&s.set(i,e)}return t},$e="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=qe(e);let o=r.data;const i=Ce.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Ce.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ie((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Z("Request aborted",Z.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Z("Network Error",Z.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Z(t,o.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&V.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),V.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=Re(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=Re(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ae(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===ge.protocols.indexOf(v)?n(new Z("Unsupported protocol "+v+":",Z.ERR_BAD_REQUEST,e)):m.send(o||null)}))},He=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Z?t:new Ae(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Z(`timeout ${t} of ms exceeded`,Z.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>V.asap(a),s}},We=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ve=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ke=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Ve(e))yield*We(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Ge="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Ye=Ge&&"function"===typeof ReadableStream,Ze=Ge&&("function"===typeof TextEncoder?(Qe=new TextEncoder,e=>Qe.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Qe;const Je=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},Xe=Ye&&Je((()=>{let e=!1;const t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),et=Ye&&Je((()=>V.isReadableStream(new Response("").body))),tt={stream:et&&(e=>e.body)};var nt;Ge&&(nt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!tt[e]&&(tt[e]=V.isFunction(nt[e])?t=>t[e]():(t,n)=>{throw new Z(`Response type '${e}' is not supported`,Z.ERR_NOT_SUPPORT,n)})})));const rt=async(e,t)=>{const n=V.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e)){const t=new Request(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return V.isArrayBufferView(e)||V.isArrayBuffer(e)?e.byteLength:(V.isURLSearchParams(e)&&(e+=""),V.isString(e)?(await Ze(e)).byteLength:void 0)})(t):n},ot={http:null,xhr:$e,fetch:Ge&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=qe(e);c=c?(c+"").toLowerCase():"text";let p,h=He([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Xe&&"get"!==n&&"head"!==n&&0!==(g=await rt(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(V.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=je(g,Re(Me(l)));r=Ke(n.body,65536,e,t)}}V.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(p);const a=et&&("stream"===c||"response"===c);if(et&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=V.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&je(t,Re(Me(s),!0))||[];i=new Response(Ke(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await tt[V.findKey(tt,c)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{Ie(t,n,{data:v,headers:Ce.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,p),{cause:v.cause||v});throw Z.from(v,v&&v.code,e,p)}})};V.forEach(ot,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const it=e=>`- ${e}`,at=e=>V.isFunction(e)||null===e||!1===e,st=e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!at(n)&&(r=ot[(t=String(n)).toLowerCase()],void 0===r))throw new Z(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(it).join("\n"):" "+it(e[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function lt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function ct(e){lt(e),e.headers=Ce.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return st(e.adapter||be.adapter)(e).then((function(t){return lt(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=Ce.from(t.headers),t}),(function(t){return Ne(t)||(lt(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=Ce.from(t.response.headers))),Promise.reject(t)}))}const ut="1.7.9",dt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{dt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ft={};dt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Z(r(o," has been removed"+(t?" in "+t:"")),Z.ERR_DEPRECATED);return t&&!ft[o]&&(ft[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},dt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const pt={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Z("option "+i+" must be "+n,Z.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Z("Unknown option "+i,Z.ERR_BAD_OPTION)}},validators:dt},ht=pt.validators;class mt{constructor(e){this.defaults=e,this.interceptors={request:new le,response:new le}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Ue(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&pt.assertOptions(n,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1),null!=r&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:pt.assertOptions(r,{encode:ht.function,serialize:ht.function},!0)),pt.assertOptions(t,{baseUrl:ht.spelling("baseURL"),withXsrfToken:ht.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&V.merge(o.common,o[t.method]);o&&V.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Ce.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[ct.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=ct.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return se(Fe((e=Ue(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}V.forEach(["delete","get","head","options"],(function(e){mt.prototype[e]=function(t,n){return this.request(Ue(n||{},{method:e,url:t,data:(n||{}).data}))}})),V.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ue(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}mt.prototype[e]=t(),mt.prototype[e+"Form"]=t(!0)}));const gt=mt;class vt{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ae(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new vt((function(t){e=t})),cancel:e}}}const yt=vt;const bt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bt).forEach((([e,t])=>{bt[t]=e}));const wt=bt;const xt=function e(t){const n=new gt(t),r=a(gt.prototype.request,n);return V.extend(r,gt.prototype,n,{allOwnKeys:!0}),V.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ue(t,n))},r}(be);xt.Axios=gt,xt.CanceledError=Ae,xt.CancelToken=yt,xt.isCancel=Ne,xt.VERSION=ut,xt.toFormData=te,xt.AxiosError=Z,xt.Cancel=xt.CanceledError,xt.all=function(e){return Promise.all(e)},xt.spread=function(e){return function(t){return e.apply(null,t)}},xt.isAxiosError=function(e){return V.isObject(e)&&!0===e.isAxiosError},xt.mergeConfig=Ue,xt.AxiosHeaders=Ce,xt.formToJSON=e=>ve(V.isHTMLForm(e)?new FormData(e):e),xt.getAdapter=st,xt.HttpStatusCode=wt,xt.default=xt;const _t=xt,{Axios:Et,AxiosError:St,CanceledError:kt,isCancel:Ct,CancelToken:Ot,VERSION:Nt,all:Tt,Cancel:At,isAxiosError:It,spread:Pt,toFormData:Dt,AxiosHeaders:Rt,HttpStatusCode:jt,formToJSON:Mt,getAdapter:Lt,mergeConfig:zt}=_t;class Ft{constructor(e={}){this.setApiEndpoint=(e="")=>{let t=e;"undefined"!==typeof location&&(t=t.replace("%CURRENT_HOST%",location.host)),this.apiEndpoint=t},this.setCSRFToken=e=>{this._axios.defaults.headers.post[this.csrfHeaderName]=e,this._axios.defaults.headers.put[this.csrfHeaderName]=e,this._axios.defaults.headers.delete[this.csrfHeaderName]=e},this.setDefaultHeader=({name:e,value:t,methods:n})=>{const r=this._axios.defaults.headers;Array.isArray(n)?n.forEach((n=>{const o=r[n];o&&o instanceof Rt&&(o[e]=t)})):r.common[e]=t},this.apiPath=e=>`${this.apiEndpoint}${e}`;const{config:t={},apiEndpoint:n="/api",collector:r={},csrfHeaderName:o="X-CSRF-Token"}=e,a=Object.assign({xsrfCookieName:"",timeout:Ft.DEFAULT_TIMEOUT,withCredentials:!0},t);this._axios=_t.create(a),this._axios.defaults.headers=i()(this._axios.defaults.headers),this.requestTokens={},this.setApiEndpoint(n),this.collectorSettings=r,this.collector={errors:[],requests:[]},this.csrfHeaderName=o}collectRequest({method:e,url:t,data:n,requestStart:r,response:o,responseError:i,error:a=!1,cancelled:s=!1}){const{collectErrors:l,collectRequests:c}=this.collectorSettings;if(!l&&!c)return;const{responseText:u="",responseURL:d=t}=o&&o.request||{},f=a&&i instanceof Error?i.message:"",p={method:e,url:d,time:{start:r,end:Number(new Date)},status:o&&o.status,size:u.length,requestData:n&&JSON.stringify(n,null,2)||"",responseData:o&&o.data&&JSON.stringify(o.data,null,2)||f,isError:a,isCancelled:s};l&&a&&(this.collector.errors=[...this.collector.errors,p].slice(-l)),c&&(this.collector.requests=[...this.collector.requests,p].slice(-c))}getCollectedRequests(){return{errors:[...this.collector.errors],requests:[...this.collector.requests]}}async request(e){const{method:t,url:n,data:r=null,params:o,options:i={},retries:a=0}=e,s=i.requestConfig||{},{concurrentId:l,collectRequest:c=!0,timeout:u,headers:d,onDownloadProgress:f}=i;l&&(this.cancelRequest(l),s.cancelToken=this.createRequestToken(l)),d&&(s.headers=d),"undefined"!==typeof u&&(s.timeout=u);const p=Number(new Date),h={method:t,url:n,data:r,params:o,onDownloadProgress:f};try{const e=await this._axios.request(Object.assign(Object.assign({},s),h));return c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:e})),e.data}catch(m){if(_t.isCancel(m))throw{isCancelled:!0,error:m};let t;return t=m.response?m.response:"function"===typeof m.toJSON?m.toJSON():m,c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:t,error:!0,cancelled:_t.isCancel(m),responseError:m})),this.handleRequestError(t,(()=>this.request(Object.assign(Object.assign({},e),{retries:a+1}))),a,new Error(m instanceof Error?m.message:"Unknown error"))}finally{this.clearRequestToken(l)}}cancelRequest(e){e&&this.requestTokens[e]&&this.requestTokens[e].cancel("Concurrent request")}get(e,t,n={}){return this.request({method:"GET",url:e,params:t,options:n})}post(e,t,n,r={}){return this.request({method:"POST",url:e,data:t,params:n,options:r})}put(e,t,n,r={}){return this.request({method:"PUT",url:e,data:t,params:n,options:r})}patch(e,t,n,r={}){return this.request({method:"PATCH",url:e,data:t,params:n,options:r})}delete(e,t,n,r={}){return this.request({method:"DELETE",url:e,data:t,params:n,options:r})}head(e,t,n={}){return this.request({method:"HEAD",url:e,params:t,options:n})}handleRequestError(e){throw e}createRequestToken(e){if(e){const t=_t.CancelToken.source();return this.requestTokens[e]=t,t.token}}clearRequestToken(e){e&&this.requestTokens[e]&&delete this.requestTokens[e]}}Ft.DEFAULT_TIMEOUT=6e4;var Bt=n(70911);const Ut="axios-retry";function qt(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&Bt(e)))}const $t=["get","head","options"],Ht=$t.concat(["put","delete"]);function Wt(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function Vt(e){return!!e.config?.method&&(Wt(e)&&-1!==Ht.indexOf(e.config.method))}function Kt(e){return qt(e)||Vt(e)}function Gt(e=void 0){const t=e?.response?.headers["retry-after"];if(!t)return 0;let n=1e3*(Number(t)||0);return 0===n&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}const Yt={retries:3,retryCondition:Kt,retryDelay:function(e=0,t=void 0){return Math.max(0,Gt(t))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Zt(e,t,n=!1){const r=function(e,t){return{...Yt,...t,...e[Ut]}}(e,t||{});return r.retryCount=r.retryCount||0,r.lastRequestTime&&!n||(r.lastRequestTime=Date.now()),e[Ut]=r,r}const Qt=(e,t)=>{const n=e.interceptors.request.use((e=>(Zt(e,t,!0),e[Ut]?.validateResponse&&(e.validateStatus=()=>!1),e))),r=e.interceptors.response.use(null,(async n=>{const{config:r}=n;if(!r)return Promise.reject(n);const o=Zt(r,t);return n.response&&o.validateResponse?.(n.response)?n.response:await async function(e,t){const{retries:n,retryCondition:r}=e,o=(e.retryCount||0)<n&&r(t);if("object"===typeof o)try{return!1!==await o}catch(i){return!1}return o}(o,n)?async function(e,t,n,r){t.retryCount+=1;const{retryDelay:o,shouldResetTimeout:i,onRetry:a}=t,s=o(t.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,r),!i&&r.timeout&&t.lastRequestTime){const e=Date.now()-t.lastRequestTime,o=r.timeout-e-s;if(o<=0)return Promise.reject(n);r.timeout=o}return r.transformRequest=[e=>e],await a(t.retryCount,n,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise((t=>{const n=()=>{clearTimeout(o),t(e(r))},o=setTimeout((()=>{t(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",n)}),s);r.signal?.addEventListener&&r.signal.addEventListener("abort",n,{once:!0})}))}(e,o,n,r):(await async function(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}(o,n),Promise.reject(n))}));return{requestInterceptorId:n,responseInterceptorId:r}};Qt.isNetworkError=qt,Qt.isSafeRequestError=function(e){return!!e.config?.method&&(Wt(e)&&-1!==$t.indexOf(e.config.method))},Qt.isIdempotentRequestError=Vt,Qt.isNetworkOrIdempotentRequestError=Kt,Qt.exponentialDelay=function(e=0,t=void 0,n=100){const r=2**e*n,o=Math.max(r,Gt(t));return o+.2*o*Math.random()},Qt.linearDelay=function(e=100){return(t=0,n=void 0)=>{const r=t*e;return Math.max(r,Gt(n))}},Qt.isRetryableError=Wt;const Jt=Qt;var Xt=n(58351),en=n(76086),tn=n(81288),nn=n(59001);class rn extends Ft{constructor(e){super(e),this.DEFAULT_RETRIES_COUNT=0,Jt(this._axios,{retries:this.DEFAULT_RETRIES_COUNT,retryDelay:Jt.exponentialDelay}),this._axios.interceptors.request.use((function(e){return nn.f.readUserSettingsValue(en.U0)&&(e.headers["X-Want-Trace"]=1),e})),this._axios.interceptors.response.use((function(e){if(e.data&&e.data instanceof Object&&!Array.isArray(e.data)&&e.headers.traceresponse){const t=e.headers.traceresponse.split("-")[1];e.data={...e.data,_meta:{...e.data._meta,traceId:t}}}return e})),this._axios.interceptors.response.use(null,(function(e){const t=e.response;return(0,tn.uP)(t)&&window.location.assign(t.data.authUrl),Promise.reject(e)}))}getPath(e){return`${null!==Xt.Hs&&void 0!==Xt.Hs?Xt.Hs:""}${e}`}prepareArrayRequestParam(e){return e.join(",")}}class on extends rn{authenticate(e){return this.post(this.getPath("/login"),e,{})}logout(){return this.post(this.getPath("/logout"),{},{})}}const an=e=>({TenantInfo:null===e||void 0===e?void 0:e.databases});class sn extends rn{getPath(e){return`${null!==Xt.In&&void 0!==Xt.In?Xt.In:""}${e}`}getClustersList(e,{signal:t}={}){return this.get(this.getPath("/meta/clusters"),null,{requestConfig:{signal:t}})}getTenants(e,{signal:t}={}){return this.get(this.getPath("/meta/cp_databases"),{cluster_name:e},{requestConfig:{signal:t}}).then(an)}getClusterBaseInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/meta/db_clusters"),{name:e},{concurrentId:t,requestConfig:{signal:n}}).then((e=>e.clusters[0]))}}class ln extends rn{getOperationList(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/operation/list"),{...e},{concurrentId:t,requestConfig:{signal:n}})}cancelOperation(e,{concurrentId:t,signal:n}={}){return this.post(this.getPath("/operation/cancel"),{},{...e},{concurrentId:t,requestConfig:{signal:n}})}forgetOperation(e,{concurrentId:t,signal:n}={}){return this.post(this.getPath("/operation/forget"),{},{...e},{concurrentId:t,requestConfig:{signal:n}})}}var cn=n(31684);class un extends rn{restartPDisk({nodeId:e,pDiskId:t,force:n}){return this.post(this.getPath("/pdisk/restart"),{},{node_id:e,pdisk_id:t,force:n},{requestConfig:{"axios-retry":{retries:0}}})}changePDiskStatus({nodeId:e,pDiskId:t,force:n,decommissionStatus:r}){return this.post(this.getPath("/pdisk/status"),{decommit_status:r},{node_id:e,pdisk_id:t,force:n},{requestConfig:{"axios-retry":{retries:0}}})}getPDiskInfo({nodeId:e,pDiskId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/pdisk/info"),{node_id:e,pdisk_id:t},{concurrentId:n,requestConfig:{signal:r}})}restartPDiskOld({nodeId:e,pDiskId:t}){const n=(0,cn.ar)({nodeId:e,pDiskId:t,host:this.getPath("")});return this.post(n,"restartPDisk=",{},{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}}class dn extends rn{createSchemaDirectory({database:e,path:t},{signal:n}={}){return this.post(this.getPath("/scheme/directory"),{},{database:e,path:t},{requestConfig:{signal:n}})}}class fn extends rn{getStorageGroups({nodeId:e,pDiskId:t,groupId:n,fieldsRequired:r,filter:o,...i},{concurrentId:a,signal:s}={}){const l=Array.isArray(e)?this.prepareArrayRequestParam(e):e,c=Array.isArray(t)?this.prepareArrayRequestParam(t):t,u=Array.isArray(n)?this.prepareArrayRequestParam(n):n,d=Array.isArray(r)?this.prepareArrayRequestParam(r):r;return this.get(this.getPath("/storage/groups"),{node_id:l,pdisk_id:c,group_id:u,fields_required:d,filter:o||void 0,timeout:2e4,...i},{concurrentId:a,requestConfig:{signal:s}})}}class pn extends rn{evictVDiskOld({groupId:e,groupGeneration:t,failRealmIdx:n,failDomainIdx:r,vDiskIdx:o}){return this.post(this.getPath("/tablets/app?TabletID=72057594037932033&exec=1"),{Command:{ReassignGroupDisk:{GroupId:e,GroupGeneration:t,FailRealmIdx:n,FailDomainIdx:r,VDiskIdx:o}}},{},{headers:{Accept:"application/json"}})}killTablet(e){return this.get(this.getPath(`/tablets?KillTabletID=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}stopTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=StopTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}resumeTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=ResumeTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}getTabletFromHive({id:e,hiveId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/tablets/app"),{TabletID:t,page:"TabletInfo",tablet:e},{concurrentId:n,requestConfig:{signal:r}})}}const hn=4*en.KF,mn=10*en.KF,gn=10*en.KF;class vn extends rn{checkTrace({url:e},{concurrentId:t,signal:n}={}){return this.get(e,{},{concurrentId:t||"checkTrace",requestConfig:{signal:n,timeout:mn,"axios-retry":{retries:30,retryDelay:(e,t)=>{var n;return(0,tn.F0)(t)&&(404===(null===t||void 0===t||null===(n=t.response)||void 0===n?void 0:n.status)||"ERR_NETWORK"===t.code)?hn:gn},shouldResetTimeout:!0,retryCondition:()=>!0}}})}}class yn extends rn{evictVDisk({groupId:e,groupGeneration:t,failRealmIdx:n,failDomainIdx:r,vDiskIdx:o,force:i}){return this.post(this.getPath("/vdisk/evict"),{},{group_id:e,group_generation_id:t,fail_realm_idx:n,fail_domain_idx:r,vdisk_idx:o,force:i},{requestConfig:{"axios-retry":{retries:0}}})}}class bn extends rn{getClusterCapabilities({database:e}){return this.get(this.getPath("/viewer/capabilities"),{database:e},{})}getClusterInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/cluster"),{name:e,tablets:!0},{concurrentId:t||"getClusterInfo",requestConfig:{signal:n}})}getNodeInfo(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/sysinfo?enums=true"),{node_id:e},{concurrentId:t,requestConfig:{signal:n}})}getTenants(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/tenantinfo"),{tablets:!1,storage:!0,cluster_name:e},{concurrentId:t,requestConfig:{signal:n}})}getTenantInfo({path:e,database:t=e},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tenantinfo"),{database:t,path:e,tablets:!1,storage:!0,memory:!0},{concurrentId:n,requestConfig:{signal:r}})}getNodes({type:e="any",tablets:t=!1,database:n,tenant:r,fieldsRequired:o,filter:i,...a},{concurrentId:s,signal:l}={}){const c=Array.isArray(o)?this.prepareArrayRequestParam(o):o;return this.get(this.getPath("/viewer/json/nodes?enums=true"),{type:e,tablets:t,filter:i||void 0,database:n||r,tenant:r||n,fields_required:c,...a},{concurrentId:s,requestConfig:{signal:l}})}getTabletsInfo({nodeId:e,path:t,database:n},{concurrentId:r,signal:o}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{database:n,node_id:e,path:t,enums:!0},{concurrentId:r,requestConfig:{signal:o}})}getSchema({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,backup:!1,private:!0,partition_config:!1,partition_stats:!1,partitioning_info:!1,subs:1},{concurrentId:n,requestConfig:{signal:r}})}getDescribe({path:e,database:t,timeout:n},{concurrentId:r,signal:o}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,partition_stats:!0,subs:0},{concurrentId:r||`getDescribe|${e}`,requestConfig:{signal:o},timeout:n})}getSchemaAcl({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/acl"),{database:t,path:e,merge_rules:!0},{concurrentId:n,requestConfig:{signal:r}})}getHeatmapData({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe"),{database:t,path:e,enums:!0,backup:!1,children:!1,partition_config:!1,partition_stats:!0},{concurrentId:n,requestConfig:{signal:r}})}getNetwork({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/netinfo"),{enums:!0,database:t,path:e},{concurrentId:n,requestConfig:{signal:r}})}getTopic({path:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/describe_topic"),{enums:!0,include_stats:!0,database:t,path:e},{concurrentId:n,requestConfig:{signal:r}})}getConsumer({path:e,consumer:t,database:n},{concurrentId:r,signal:o}={}){return this.get(this.getPath("/viewer/json/describe_consumer"),{enums:!0,include_stats:!0,database:n,path:e,consumer:t},{concurrentId:r||"getConsumer",requestConfig:{signal:o}})}getTablet({id:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,database:t,filter:`(TabletId=${e})`},{concurrentId:n,requestConfig:{signal:r}})}getTabletHistory({id:e,database:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,merge:!1,database:t,filter:`(TabletId=${e})`},{concurrentId:n,requestConfig:{signal:r}})}getNodesList({concurrentId:e,signal:t}={}){return this.get(this.getPath("/viewer/json/nodelist"),{enums:!0},{concurrentId:e,requestConfig:{signal:t}})}getTenantsList({concurrentId:e,signal:t}={}){return this.get(this.getPath("/viewer/json/tenants"),{enums:!0,state:0},{concurrentId:e,requestConfig:{signal:t}})}sendQuery(e,{concurrentId:t,signal:n,withRetries:r}={}){const o=!nn.f.readUserSettingsValue(en.RY,!0);return this.post(this.getPath("/viewer/json/query"),{...e,base64:o},{schema:"multi",base64:o,timeout:e.timeout},{concurrentId:t,timeout:e.timeout,requestConfig:{signal:n,"axios-retry":{retries:r?this.DEFAULT_RETRIES_COUNT:0}},headers:e.tracingLevel?{"X-Trace-Verbosity":e.tracingLevel}:void 0})}getHotKeys({path:e,database:t,enableSampling:n},{concurrentId:r,signal:o}={}){return this.get(this.getPath("/viewer/json/hotkeys"),{database:t,path:e,enable_sampling:n},{concurrentId:r||"getHotKeys",requestConfig:{signal:o}})}getTabletDescribe(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/json/describe"),{schemeshard_id:null===e||void 0===e?void 0:e.SchemeShard,path_id:null===e||void 0===e?void 0:e.PathId},{concurrentId:t,requestConfig:{signal:n}})}getStorageInfo({tenant:e,database:t,nodeId:n,groupId:r,pDiskId:o,filter:i,...a},{concurrentId:s,signal:l}={}){return this.get(this.getPath("/viewer/json/storage?enums=true"),{database:t||e,tenant:e||t,node_id:n,group_id:r,pdisk_id:o,filter:i||void 0,...a},{concurrentId:s,requestConfig:{signal:l}})}getChartData({target:e,from:t,until:n,maxDataPoints:r,database:o},{concurrentId:i,signal:a}={}){const s=`${e}&from=${t}&until=${n}&maxDataPoints=${r}&format=json`;return this.post(this.getPath(`/viewer/json/render?database=${o}`),s,{},{concurrentId:i,headers:{"Content-Type":"application/x-www-form-urlencoded"},requestConfig:{signal:a}})}whoami({database:e}){return this.get(this.getPath("/viewer/json/whoami"),{database:e})}autocomplete(e){const{table:t,...n}=e,r=null===t||void 0===t?void 0:t.join(",");return this.get(this.getPath("/viewer/json/autocomplete"),{...n,table:r},{concurrentId:"sql-autocomplete"})}getClusterConfig(e,{concurrentId:t,signal:n}={}){return this.get(this.getPath("/viewer/feature_flags"),{database:e},{concurrentId:t,requestConfig:{signal:n}})}getVDiskInfo({vDiskSlotId:e,pDiskId:t,nodeId:n},{concurrentId:r,signal:o}={}){return this.get(this.getPath("/viewer/json/vdiskinfo?enums=true"),{node_id:n,filter:`(PDiskId=${t};VDiskSlotId=${e})`},{concurrentId:r,requestConfig:{signal:o}})}getNodeWhiteboardPDiskInfo({nodeId:e,pDiskId:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/pdiskinfo?enums=true"),{filter:`(NodeId=${e}${t?`;PDiskId=${t}`:""})`},{concurrentId:n,requestConfig:{signal:r}})}planToSvg({database:e,plan:t},{signal:n}={}){return this.post(this.getPath("/viewer/plan2svg"),t,{database:e},{requestConfig:{signal:n,responseType:"text",headers:{Accept:"image/svg+xml"}}})}getHealthcheckInfo({database:e,maxLevel:t},{concurrentId:n,signal:r}={}){return this.get(this.getPath("/viewer/json/healthcheck?merge_records=true"),{database:e,tenant:e,max_level:t},{concurrentId:n,requestConfig:{signal:r}})}}class wn{constructor({config:e,webVersion:t}){this.auth=void 0,this.operation=void 0,this.pdisk=void 0,this.scheme=void 0,this.storage=void 0,this.tablets=void 0,this.trace=void 0,this.vdisk=void 0,this.viewer=void 0,this.meta=void 0,this.auth=new on({config:e}),t&&(this.meta=new sn({config:e})),this.operation=new ln({config:e}),this.pdisk=new un({config:e}),this.scheme=new dn({config:e}),this.storage=new fn({config:e}),this.tablets=new pn({config:e}),this.trace=new vn({config:e}),this.vdisk=new yn({config:e}),this.viewer=new bn({config:e})}}function xn({webVersion:e=!1,withCredentials:t=!1}={}){return new wn({config:{withCredentials:t},webVersion:e})}},59001:(e,t,n)=>{"use strict";n.d(t,{c:()=>s,f:()=>l});var r=n(52531),o=n(76086),i=n(11822),a=n(41650);const s={[o.k4]:"system",[o.jS]:void 0,[o.TJ]:!1,[o.RY]:!0,[o.ld]:[],[o.Mt]:r.Dg.query,[o.zk]:i.x5.execute,[o.LQ]:!0,[o.bs]:[],[o.g5]:!1,[o.lr]:!1,[o.s2]:!0,[o.LK]:!0,[o.IO]:!0,[o.Gj]:!1,[o.av]:0,[o.iD]:!1,[o.Xm]:!1,[o.fr]:void 0,[o.YQ]:void 0,[o.c4]:i.jU};const l=new class{constructor(){this.extractSettingsFromLS=e=>Object.entries(e).reduce(((e,[t,n])=>(e[t]=this.readUserSettingsValue(t,n),e)),{}),this.readValueFromLS=e=>{try{const t=localStorage.getItem(e);return(0,a.qF)(t)}catch{return}},this.setValueToLS=(e,t)=>{try{"string"===typeof t?localStorage.setItem(e,t):localStorage.setItem(e,JSON.stringify(t))}catch{}}}readUserSettingsValue(e,t){var n;return null!==(n=this.readValueFromLS(e))&&void 0!==n?n:t}setUserSettingsValue(e,t){return this.setValueToLS(e,t)}}},54878:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>O,P8:()=>N,SL:()=>T,U1:()=>z,In:()=>M,jC:()=>R});var r=n(97091),o=n(45264),i=n(19859),a=n(37402);const s=({href:e,singleClusterMode:t,customBackend:n})=>{if(t){if(n){var r;const t=null!==(r=new URL(e).searchParams.get("backend"))&&void 0!==r?r:void 0;return{basename:"/",backend:t||n}}{const e=window.location.pathname.match(/.*(?=\/monitoring)/)||[],t=e.length>0?e[0]:"";return{basename:[t,"monitoring"].filter(Boolean).join("/"),backend:t||""}}}{var o,i;const t=new URL(e).searchParams;return{basename:"/",backend:null!==(o=t.get("backend"))&&void 0!==o?o:void 0,clusterName:null!==(i=t.get("clusterName"))&&void 0!==i?i:void 0}}};var l=n(81463),c=n(21334),u=n(88610),d=n(49818),f=n(22735),p=n.n(f),h=n(96294),m=n.n(h),g=n(17148),v=n.n(g),y=n(74309),b=n.n(y),w=n(49526),x=n(93650),_=n(93694),E=n(92189),S=n(90565);const k={global:{problemFilter:{stateKey:"settings.problemFilter",initialState:u.ue.problemFilter}},"/tenant":{sort:{stateKey:"heatmap.sort",initialState:S.ue.sort,type:"bool"},heatmap:{stateKey:"heatmap.heatmap",initialState:S.ue.heatmap,type:"bool"},currentMetric:{stateKey:"heatmap.currentMetric",initialState:S.ue.currentMetric},tenantPage:{stateKey:"tenant.tenantPage"},queryTab:{stateKey:"tenant.queryTab"},diagnosticsTab:{stateKey:"tenant.diagnosticsTab"},summaryTab:{stateKey:"tenant.summaryTab"},metricsTab:{stateKey:"tenant.metricsTab"},shardsMode:{stateKey:"shardsWorkload.mode"},shardsDateFrom:{stateKey:"shardsWorkload.from"},shardsDateTo:{stateKey:"shardsWorkload.to"},topQueriesDateFrom:{stateKey:"executeTopQueries.from"},topQueriesDateTo:{stateKey:"executeTopQueries.to"},selectedConsumer:{stateKey:"partitions.selectedConsumer"}},"/cluster/tenants":{search:{stateKey:"tenants.searchValue"}}};function C(e,t){return v()({},e,t.query)}let O,N,T,A="";function I(e,t,n){const r=(0,E.stateToParams)(e,t,n);let{location:o}=r;if(o.search===A)return{location:n,shouldPush:!1};{const e=/\?\w+/;return A=o.search,e.test(n.search)&&(o=function(e,t){const{search:n,...r}=e,o=b().parse(t.search.slice(1)),i=(0,x.getMatchingDeclaredPath)(k,e),a=i&&k[i];p()(m()(a),(e=>{delete o[e]})),p()(m()(k.global||{}),(e=>{delete o[e]}));const s=b().stringify(o,{encoder:encodeURIComponent}),l=n.startsWith("?")?"&":"?";return{search:`${n}${l}${s}`,...r}}(o,n)),{...r,location:o}}}function P(e,t,n){return(r,o)=>{const i=((n,r)=>{const{type:o,payload:i}=r;if(!i)return n;if(w.LOCATION_POP===o||w.LOCATION_PUSH===o){const r=i;return r.query=(0,_.parseQuery)(e,i),t(n,r)}return n})(n(r,o),o);return i!==r?i:r}}function D(e,t,n,o){const{locationMiddleware:a,reducersWithLocation:s}=function(e,t){const{locationMiddleware:n}=(0,i.zx)(k,C,e,t,I);return{locationMiddleware:n,reducersWithLocation:P(k,C,t)}}(t,e),l=(0,r.U1)({reducer:s,preloadedState:n,middleware:e=>e({immutableCheck:{ignoredPaths:["tooltip.currentHoveredRef"]},serializableCheck:{ignoredPaths:["tooltip.currentHoveredRef","api"],ignoredActions:[d.oM,"api/sendQuery/rejected"]}}).concat(a,...o)});return(0,u.N8)(l),l}const R=window.web_version,j=window.custom_backend,M=window.meta_backend,L="undefined"===`${M}`;function z({aRootReducer:e=l.A,singleClusterMode:t=L,api:n=(0,a.x)({webVersion:R,withCredentials:!j})}={}){({backend:O,basename:N,clusterName:T}=s({href:window.location.href,singleClusterMode:t,customBackend:j}));const r=(0,o.zR)({basename:N}),u=D(e,r,{singleClusterMode:t},[c.F.middleware]);return(0,i.BL)(u,r),window.api=n,{history:r,store:u}}},58351:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>r.Hs,In:()=>r.In,P8:()=>r.P8,SL:()=>r.SL,U1:()=>r.U1,d$:()=>o.d,jC:()=>r.jC});var r=n(54878),o=n(81463)},21334:(e,t,n)=>{"use strict";n.d(t,{F:()=>_});var r=n(44992),o=n(97434),i=n(53850),a=n(96906),s=n(97091),l=n(59284);function c(e){return e.replace(e[0],e[0].toUpperCase())}function u(e,...t){return Object.assign(e,...t)}var d=WeakMap?new WeakMap:void 0,f=({endpointName:e,queryArgs:t})=>{let n="";const r=d?.get(t);if("string"===typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>(t="bigint"===typeof t?{$bigint:t.toString()}:t,t=(0,a.Qd)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t)));(0,a.Qd)(t)&&d?.set(t,e),n=e}return`${e}(${n})`},p=Symbol();function h(e,t,n,r){const o=(0,l.useMemo)((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),i=(0,l.useRef)(o);return(0,l.useEffect)((()=>{i.current.serialized!==o.serialized&&(i.current=o)}),[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function m(e){const t=(0,l.useRef)(e);return(0,l.useEffect)((()=>{(0,o.bN)(t.current,e)||(t.current=e)}),[e]),(0,o.bN)(t.current,e)?t.current:e}var g=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),v=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),y=(()=>g||v?l.useLayoutEffect:l.useEffect)(),b=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:r.RE.pending}:e;var w=Symbol();var x=(0,r.l0)((0,r.m7)(),(({batch:e=o.vA,hooks:t={useDispatch:o.wA,useSelector:o.d4,useStore:o.Pj},createSelector:n=i.Mz,unstable__sideEffectsInRender:a=!1,...d}={})=>({name:w,init(i,{serializeQueryArgs:d},g){const v=i,{buildQueryHooks:w,buildMutationHook:x,usePrefetch:_}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:i,useStore:a},unstable__sideEffectsInRender:c,createSelector:u},serializeQueryArgs:d,context:g}){const v=c?e=>e():l.useEffect;return{buildQueryHooks:function(c){const x=(t,{refetchOnReconnect:o,refetchOnFocus:i,refetchOnMountOrArgChange:a,skip:u=!1,pollingInterval:d=0,skipPollingIfUnfocused:p=!1}={})=>{const{initiate:y}=e.endpoints[c],b=n(),w=(0,l.useRef)(void 0);if(!w.current){const t=b(e.internalActions.internal_getRTKQSubscriptions());w.current=t}const x=h(u?r.hT:t,f,g.endpointDefinitions[c],c),_=m({refetchOnReconnect:o,refetchOnFocus:i,pollingInterval:d,skipPollingIfUnfocused:p}),E=(0,l.useRef)(!1),S=(0,l.useRef)(void 0);let{queryCacheKey:k,requestId:C}=S.current||{},O=!1;k&&C&&(O=w.current.isRequestSubscribed(k,C));const N=!O&&E.current;return v((()=>{E.current=O})),v((()=>{N&&(S.current=void 0)}),[N]),v((()=>{const e=S.current;if(x===r.hT)return e?.unsubscribe(),void(S.current=void 0);const t=S.current?.subscriptionOptions;if(e&&e.arg===x)_!==t&&e.updateSubscriptionOptions(_);else{e?.unsubscribe();const t=b(y(x,{subscriptionOptions:_,forceRefetch:a}));S.current=t}}),[b,y,a,x,_,N]),(0,l.useEffect)((()=>()=>{S.current?.unsubscribe(),S.current=void 0}),[]),(0,l.useMemo)((()=>({refetch:()=>{if(!S.current)throw new Error((0,s.gk)(38));return S.current?.refetch()}})),[])},_=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:i=0,skipPollingIfUnfocused:a=!1}={})=>{const{initiate:s}=e.endpoints[c],u=n(),[d,f]=(0,l.useState)(p),h=(0,l.useRef)(void 0),g=m({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:i,skipPollingIfUnfocused:a});v((()=>{const e=h.current?.subscriptionOptions;g!==e&&h.current?.updateSubscriptionOptions(g)}),[g]);const y=(0,l.useRef)(g);v((()=>{y.current=g}),[g]);const b=(0,l.useCallback)((function(e,n=!1){let r;return t((()=>{h.current?.unsubscribe(),h.current=r=u(s(e,{subscriptionOptions:y.current,forceRefetch:!n})),f(e)})),r}),[u,s]),w=(0,l.useCallback)((()=>{h.current?.queryCacheKey&&u(e.internalActions.removeQueryResult({queryCacheKey:h.current?.queryCacheKey}))}),[u]);return(0,l.useEffect)((()=>()=>{h?.current?.unsubscribe()}),[]),(0,l.useEffect)((()=>{d===p||h.current||b(d,!0)}),[d,b]),(0,l.useMemo)((()=>[b,d,{reset:w}]),[b,d,w])},E=(t,{skip:n=!1,selectFromResult:s}={})=>{const{select:f}=e.endpoints[c],p=h(n?r.hT:t,d,g.endpointDefinitions[c],c),m=(0,l.useRef)(void 0),v=(0,l.useMemo)((()=>u([f(p),(e,t)=>t,e=>p],w,{memoizeOptions:{resultEqualityCheck:o.bN}})),[f,p]),b=(0,l.useMemo)((()=>s?u([v],s,{devModeChecks:{identityFunctionCheck:"never"}}):v),[v,s]),x=i((e=>b(e,m.current)),o.bN),_=a(),E=v(_.getState(),m.current);return y((()=>{m.current=E}),[E]),x};return{useQueryState:E,useQuerySubscription:x,useLazyQuerySubscription:_,useLazyQuery(e){const[t,n,{reset:r}]=_(e),o=E(n,{...e,skip:n===p}),i=(0,l.useMemo)((()=>({lastArg:n})),[n]);return(0,l.useMemo)((()=>[t,{...o,reset:r},i]),[t,o,r,i])},useQuery(e,t){const n=x(e,t),o=E(e,{selectFromResult:e===r.hT||t?.skip?void 0:b,...t}),{data:i,status:a,isLoading:s,isSuccess:c,isError:u,error:d}=o;return(0,l.useDebugValue)({data:i,status:a,isLoading:s,isSuccess:c,isError:u,error:d}),(0,l.useMemo)((()=>({...o,...n})),[o,n])}}},buildMutationHook:function(r){return({selectFromResult:a,fixedCacheKey:s}={})=>{const{select:c,initiate:d}=e.endpoints[r],f=n(),[p,h]=(0,l.useState)();(0,l.useEffect)((()=>()=>{p?.arg.fixedCacheKey||p?.reset()}),[p]);const m=(0,l.useCallback)((function(e){const t=f(d(e,{fixedCacheKey:s}));return h(t),t}),[f,d,s]),{requestId:g}=p||{},v=(0,l.useMemo)((()=>c({fixedCacheKey:s,requestId:p?.requestId})),[s,p,c]),y=(0,l.useMemo)((()=>a?u([v],a):v),[a,v]),b=i(y,o.bN),w=null==s?p?.arg.originalArgs:void 0,x=(0,l.useCallback)((()=>{t((()=>{p&&h(void 0),s&&f(e.internalActions.removeMutationResult({requestId:g,fixedCacheKey:s}))}))}),[f,s,p,g]),{endpointName:_,data:E,status:S,isLoading:k,isSuccess:C,isError:O,error:N}=b;(0,l.useDebugValue)({endpointName:_,data:E,status:S,isLoading:k,isSuccess:C,isError:O,error:N});const T=(0,l.useMemo)((()=>({...b,originalArgs:w,reset:x})),[b,w,x]);return(0,l.useMemo)((()=>[m,T]),[m,T])}},usePrefetch:function(t,r){const o=n(),i=m(r);return(0,l.useCallback)(((n,r)=>o(e.util.prefetch(t,n,{...i,...r}))),[t,o,i])}};function w(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,o=g.endpointDefinitions[e];n!==r.hT&&d({queryArgs:t.originalArgs,endpointDefinition:o,endpointName:e})===d({queryArgs:n,endpointDefinition:o,endpointName:e})&&(t=void 0)}let o=e.isSuccess?e.data:t?.data;void 0===o&&(o=e.data);const i=void 0!==o,a=e.isLoading,s=(!t||t.isLoading||t.isUninitialized)&&!i&&a,l=e.isSuccess||i&&(a&&!t?.isError||e.isUninitialized);return{...e,data:o,currentData:e.data,isFetching:a,isLoading:s,isSuccess:l}}}({api:i,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:a,createSelector:n},serializeQueryArgs:d,context:g});return u(v,{usePrefetch:_}),u(g,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:a}=w(e);u(v.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:a}),i[`use${c(e)}Query`]=t,i[`useLazy${c(e)}Query`]=n}else if(function(e){return"mutation"===e.type}(t)){const t=x(e);u(v.endpoints[e],{useMutation:t}),i[`use${c(e)}Mutation`]=t}}}}}))());const _=x({baseQuery:function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")},endpoints:()=>({}),invalidationBehavior:"immediately",tagTypes:["All","PDiskData","PreviewData","StorageData","Tablet","UserData","VDiskData"]});Symbol()},78668:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,D_:()=>f,_5:()=>u,mB:()=>d});var r=n(97091),o=n(81288),i=n(21334);const a=(0,r.Z0)({name:"authentication",initialState:{isAuthenticated:!0,user:""},reducers:{setIsAuthenticated:(e,t)=>{const n=t.payload;e.isAuthenticated=n,n||(e.user="")},setUser:(e,t)=>{const{UserSID:n,AuthType:r,IsMonitoringAllowed:o}=t.payload;e.user="Login"===r?n:void 0,e.isUserAllowedToMakeChanges=!1!==o}},selectors:{selectIsUserAllowedToMakeChanges:e=>e.isUserAllowedToMakeChanges,selectUser:e=>e.user}}),s=a.reducer,{setIsAuthenticated:l,setUser:c}=a.actions,{selectIsUserAllowedToMakeChanges:u,selectUser:d}=a.selectors,f=i.F.injectEndpoints({endpoints:e=>({whoami:e.query({queryFn:async({database:e},{dispatch:t})=>{try{const n=await window.api.viewer.whoami({database:e});return t(c(n)),{data:n}}catch(r){var n;return!(0,o.qP)(r)||401!==r.status||null!==(n=r.data)&&void 0!==n&&n.authUrl||t(l(!1)),{error:r}}},providesTags:["UserData"]}),authenticate:e.mutation({queryFn:async(e,{dispatch:t})=>{try{const n=await window.api.auth.authenticate(e);return t(l(!0)),{data:n}}catch(n){return{error:n}}},invalidatesTags:(e,t)=>t?[]:["UserData"]}),logout:e.mutation({queryFn:async(e,{dispatch:t})=>{try{const e=await window.api.auth.logout();return t(l(!1)),{data:e}}catch(n){return{error:n}}}})}),overrideExisting:"throw"})},68712:(e,t,n)=>{"use strict";n.d(t,{FC:()=>l,Ox:()=>a,RE:()=>o,p2:()=>s});var r=n(53850);const o=n(21334).F.injectEndpoints({endpoints:e=>({getClusterCapabilities:e.query({queryFn:async e=>{try{return{data:await window.api.viewer.getClusterCapabilities(e)}}catch(t){return{error:t}}}})}),overrideExisting:"throw"}),i=(0,r.Mz)((e=>e),(e=>o.endpoints.getClusterCapabilities.select({database:e}))),a=(0,r.Mz)((e=>e),((e,t)=>i(t)),((e,t)=>t(e))),s=(0,r.Mz)((e=>e),((e,t)=>t),((e,t,n)=>n),((e,t,n)=>{var r,o;return null===(r=a(e,n).data)||void 0===r||null===(o=r.Capabilities)||void 0===o?void 0:o[t]}));async function l(e,t,{dispatch:n,getState:r}){const i=o.util.getRunningQueryThunk("getClusterCapabilities",{database:t});return await n(i),s(r(),e)||0}},67028:(e,t,n)=>{"use strict";n.d(t,{DM:()=>m,Ii:()=>c,Oi:()=>d,Pm:()=>s,SA:()=>p,WF:()=>g,YA:()=>f,Ye:()=>h,_Q:()=>v,c2:()=>u,e5:()=>a,fp:()=>y});var r=n(90182),o=n(28232),i=n(68712);function a(){const e=(0,o.J)();i.RE.useGetClusterCapabilitiesQuery({database:e})}function s(){const e=(0,o.J)(),{data:t,error:n}=(0,r.N4)((t=>(0,i.Ox)(t,e)));return Boolean(t||n)}const l=e=>{const t=(0,o.J)();return(0,r.N4)((n=>(0,i.p2)(n,e,t)||0))},c=()=>l("/scheme/directory")>0,u=()=>l("/pdisk/info")>0,d=()=>l("/viewer/query")>2,f=()=>l("/storage/groups")>2,p=()=>l("/storage/groups")>4,h=()=>l("/viewer/nodes")>6,m=()=>l("/viewer/nodes")>11,g=()=>l("/viewer/nodes")>13,v=()=>l("/viewer/feature_flags")>1,y=()=>l("/viewer/cluster")>4},67157:(e,t,n)=>{"use strict";n.d(t,{Zh:()=>k,Ay:()=>S,ds:()=>A,zR:()=>T,Yv:()=>E,Zd:()=>C});var r=n(97091),o=n(53850),i=n(44992),a=n(67087),s=n(87842),l=n(370);const c=l.z.object({url:l.z.string().url()}),u=l.z.object({url:l.z.string().url()});function d({traceCheck:e,traceView:t}){try{return{traceCheck:e?c.parse(JSON.parse(e)):void 0,traceView:t?u.parse(JSON.parse(t)):void 0}}catch(n){console.error("Error parsing trace fields:",n)}return{}}var f=n(98730),p=n(76086),h=n(11822),m=n(21334),g=n(24600);function v(e){const t={};return null===e||void 0===e||e.forEach((e=>{const{PDiskFilter:n,ErasureSpecies:r,CurrentAvailableSize:o,CurrentAllocatedSize:i,CurrentGroupsCreated:a,AvailableGroupsToCreate:s}=e,l=Number(a)||0,c=l+(Number(s)||0),u=Number(i)||0,d=Number(o)||0,f=n&&"string"===typeof n&&(e=>{var t,n;const r=null===(t=e.match(/^Type:(?<type>[A-Za-z]+)/))||void 0===t||null===(n=t.groups)||void 0===n?void 0:n.type;return"ROT"===r?"HDD":r})(n);if(f&&r&&"string"===typeof r&&l){const e={diskType:f,erasure:r,createdGroups:l,totalGroups:c,allocatedSize:u,availableSize:d};if(t[f])if(t[f][r]){const e={...t[f][r]};t[f][r]={diskType:f,erasure:r,createdGroups:e.createdGroups+l,totalGroups:e.totalGroups+c,allocatedSize:e.allocatedSize+u,availableSize:e.availableSize+d}}else t[f][r]=e;else t[f]={[r]:e}}})),t}const y=e=>{var t,n;return v(null===(t=(0,h.fW)(e).resultSets)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.result)};const b=localStorage.getItem(p.fY);let w;w=(0,s.eC)(b)?b:s.Bi.overview;const x={defaultClusterTab:w},_=(0,r.Z0)({name:"cluster",initialState:x,reducers:{setDefaultClusterTab(e,t){e.defaultClusterTab=t.payload}}});function E(e){return t=>{(0,s.eC)(e)&&(localStorage.setItem(p.fY,e),t(_.actions.setDefaultClusterTab(e)))}}const S=_.reducer,k=m.F.injectEndpoints({endpoints:e=>({getClusterInfo:e.query({queryFn:async(e,{signal:t})=>{try{const r=await window.api.viewer.getClusterInfo(e,{signal:t}),o=r.Domain;if(!o)return{data:{clusterData:r}};if((0,f.L)(r))return{data:{clusterData:r,groupsStats:(n=r,v(n.StorageStats))}};try{const e=(e=>`\nSELECT \n PDiskFilter,\n ErasureSpecies,\n CurrentAvailableSize,\n CurrentAllocatedSize,\n CurrentGroupsCreated,\n AvailableGroupsToCreate\n FROM \`${e}/.sys/ds_storage_stats\`\n ORDER BY CurrentGroupsCreated DESC;\n`)(o),t=await window.api.viewer.sendQuery({query:e,database:o,action:"execute-scan"});return(0,h.We)(t)?{data:{clusterData:r}}:{data:{clusterData:r,groupsStats:y(t)}}}catch{return{data:{clusterData:r}}}}catch(r){return{error:r}}var n},providesTags:["All"]}),getClusterBaseInfo:e.query({queryFn:async(e,{signal:t})=>{try{if(!window.api.meta)throw new Error("Method is not implemented.");return{data:await window.api.meta.getClusterBaseInfo(e,{signal:t})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"});function C(){var e;const[t]=(0,a.useQueryParam)("clusterName",a.StringParam),{currentData:n}=k.useGetClusterBaseInfoQuery(null!==t&&void 0!==t?t:i.hT),{solomon:r,name:o,trace_check:s,trace_view:l,...c}=n||{};return{...c,...d({traceCheck:s,traceView:l}),name:null!==(e=null!==o&&void 0!==o?o:t)&&void 0!==e?e:void 0,monitoring:r}}const O=(0,o.Mz)((e=>e),(e=>k.endpoints.getClusterInfo.select(e))),N=(0,o.Mz)((e=>e),((e,t)=>O(t)),((e,t)=>t(e).data)),T=(0,o.Mz)(((e,t)=>t),((e,t)=>N(e,t)),((e,t)=>{var n;return e||function(e){if(!e)return;return(e.startsWith("/")?e.slice(1):e).toUpperCase()}(null===t||void 0===t||null===(n=t.clusterData)||void 0===n?void 0:n.Domain)||p.QM})),A=(0,o.Mz)(((e,t)=>N(e,t)),(e=>(0,g.K)(e)),((e,t)=>{var n;const r=null===e||void 0===e||null===(n=e.clusterData)||void 0===n?void 0:n.SystemTablets;return r?t?r.map((e=>{var n;const r=void 0===e.NodeId||null===(n=t.get(e.NodeId))||void 0===n?void 0:n.Host;return{...e,fqdn:r}})):r:[]}))},39567:(e,t,n)=>{"use strict";n.d(t,{Fe:()=>c,ub:()=>u,Ay:()=>l});var r=n(97091),o=n(21334),i=n(40537);const a=e=>{const{clusters:t=[]}=e;let n=new Map;t.forEach((({versions:e=[]})=>{n=(0,i.HD)(e,n)}));const r=(0,i.Vm)(n);return t.map((e=>({...e,preparedVersions:(0,i.NN)(e.versions,r)})))},s=(0,r.Z0)({name:"clusters",initialState:{clusterName:"",status:[],service:[],version:[]},reducers:{changeClustersFilters:(e,t)=>({...e,...t.payload})}}),l=s.reducer,{changeClustersFilters:c}=s.actions,u=o.F.injectEndpoints({endpoints:e=>({getClustersList:e.query({queryFn:async(e,{signal:t})=>{try{if(window.api.meta){const e=await window.api.meta.getClustersList(void 0,{signal:t});return{data:a(e)}}throw new Error("Method is not implemented.")}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},69053:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h,TX:()=>p,Ke:()=>g});var r=n(14750),o=n(97091),i=n(959),a=n(11822),s=n(21334);const l="EndTime",c="IntervalEnd";function u(e,t){var n,o;const i=[],a=null===(n=(0,r.bQ)(Number(null===t||void 0===t?void 0:t.to)||(null===t||void 0===t?void 0:t.to)))||void 0===n?void 0:n.valueOf(),s=null===(o=(0,r.bQ)(Number(null===t||void 0===t?void 0:t.from)||(null===t||void 0===t?void 0:t.from)))||void 0===o?void 0:o.valueOf();if(s&&a&&s>a)throw new Error("Invalid date range");if(s){const e=a===s?">=":">";i.push(`${l} ${e} Timestamp('${new Date(s).toISOString()}')`)}return a&&i.push(`${l} <= Timestamp('${new Date(a).toISOString()}')`),s||a||i.push(`${c} IN ${(e=>`(\n SELECT\n MAX(${c})\n FROM \`${e}/.sys/top_queries_by_cpu_time_one_hour\`\n)`)(e)}`),null!==t&&void 0!==t&&t.text&&i.push(`(QueryText ILIKE '%${t.text}%' OR UserSID ILIKE '%${t.text}%')`),i.join(" AND ")}const d="/*UI-QUERY-EXCLUDE*/",f=(0,o.Z0)({name:"executeTopQueries",initialState:{},reducers:{setTopQueriesFilters:(e,t)=>({...e,...t.payload})}}),{setTopQueriesFilters:p}=f.actions,h=f.reducer,m=(e,t,n)=>{const r=u(e,t),o=(0,i.JD)(n);return`\nSELECT ${d}\n CPUTime as CPUTimeUs,\n QueryText,\n IntervalEnd,\n EndTime,\n ReadRows,\n ReadBytes,\n UserSID,\n Duration\nFROM \`${e}/.sys/top_queries_by_cpu_time_one_hour\`\nWHERE ${r||"true"} AND QueryText NOT LIKE '%${d}%'\n${o}\nLIMIT 100\n`},g=s.F.injectEndpoints({endpoints:e=>({getTopQueries:e.query({queryFn:async({database:e,filters:t,sortOrder:n},{signal:r})=>{const o={...t,from:(null===t||void 0===t?void 0:t.from)||"now-1h",to:(null===t||void 0===t?void 0:t.to)||"now"};try{const t=await window.api.viewer.sendQuery({query:m(e,o,n),database:e,action:"execute-scan"},{signal:r,withRetries:!0});if((0,a.We)(t))throw t;return{data:(0,a.fW)(t)}}catch(i){return{error:i}}},forceRefetch:({currentArg:e})=>{var t,n,o,i;return!(null!==e&&void 0!==e&&null!==(t=e.filters)&&void 0!==t&&t.from&&null!==e&&void 0!==e&&null!==(n=e.filters)&&void 0!==n&&n.to&&!(0,r.eP)(null===e||void 0===e||null===(o=e.filters)||void 0===o?void 0:o.from)&&!(0,r.eP)(null===e||void 0===e||null===(i=e.filters)||void 0===i?void 0:i.to))},providesTags:["All"]}),getRunningQueries:e.query({queryFn:async({database:e,filters:t,sortOrder:n},{signal:r})=>{try{const o=null!==t&&void 0!==t&&t.text?`Query ILIKE '%${t.text}%' OR UserSID ILIKE '%${t.text}%'`:"",s=(0,i.JD)(n),l=`SELECT ${d}\n UserSID, QueryStartAt, Query as QueryText, ApplicationName\n FROM\n \`.sys/query_sessions\`\n WHERE\n ${o||"true"} AND Query NOT LIKE '%${d}%'\n ${s}\n LIMIT 100`,c=await window.api.viewer.sendQuery({query:l,database:e,action:"execute-scan"},{signal:r,withRetries:!0});if((0,a.We)(c))throw c;return{data:(0,a.fW)(c)}}catch(o){return{error:o}}},forceRefetch:()=>!0,providesTags:["All"]})}),overrideExisting:"throw"})},72976:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,Jf:()=>i,sM:()=>a});const r="ENABLE_FULLSCREEN_MODE",o="DISABLE_FULLSCREEN_MODE";function i(){return{type:r}}function a(){return{type:o}}const s=function(e=false,t){switch(t.type){case o:return!1;case r:return!0;default:return e}}},40174:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,g:()=>i});const r="header/SET_HEADER_BREADCRUMBS",o={pageBreadcrumbsOptions:{}};function i(e,t){return{type:r,page:e,options:t}}const a=(e=o,t)=>t.type===r?{page:t.page,pageBreadcrumbsOptions:t.options}:e},90565:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,f1:()=>c,nd:()=>l,ue:()=>i});var r=n(97091),o=n(21334);const i={currentMetric:void 0,sort:!1,heatmap:!1},a=(0,r.Z0)({name:"heatmap",initialState:i,reducers:{setHeatmapOptions:(e,t)=>({...e,...t.payload})}}),s=a.reducer,{setHeatmapOptions:l}=a.actions,c=o.F.injectEndpoints({endpoints:e=>({getHeatmapTabletsInfo:e.query({queryFn:async({path:e,database:t},{signal:n,getState:r,dispatch:o})=>{try{var i;const a=function([e,t]){const{TabletStateInfo:n=[]}=e,r=new Map,{PathDescription:o={}}=null!==t&&void 0!==t?t:{},{TablePartitions:i=[],TablePartitionStats:a=[],TablePartitionMetrics:s=[]}=o;n.forEach((e=>{e.TabletId&&r.set(e.TabletId,e)})),i.forEach(((e,t)=>{const n=Object.assign({},a[t],s[t]);e.DatashardId&&r.set(e.DatashardId,{...r.get(e.DatashardId),metrics:n})}));const l=Array.from(r.values()),c=l[0]&&l[0].metrics&&Object.keys(l[0].metrics).map((e=>({value:e,content:e})));return{tablets:l,metrics:c}}(await Promise.all([window.api.viewer.getTabletsInfo({path:e,database:t},{signal:n}),window.api.viewer.getHeatmapData({path:e,database:t},{signal:n})]));if(null!==(i=a.metrics)&&void 0!==i&&i.length){const e=r().heatmap.currentMetric;e&&a.metrics.find((t=>t.value===e))||o(l({currentMetric:a.metrics[0].value}))}return{data:a}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"})},81463:(e,t,n)=>{"use strict";n.d(t,{A:()=>E,d:()=>_});var r=n(96906),o=n(21334),i=n(78668),a=n(67157),s=n(39567),l=n(69053),c=n(72976),u=n(40174),d=n(90565),f=n(47058),p=n(10468),h=n(36894),m=n(29078),g=n(88610),v=n(46496);const y=function(e=!0){return e};var b=n(18517),w=n(56674),x=n(49818);const _={[o.F.reducerPath]:o.F.reducer,singleClusterMode:y,cluster:a.Ay,tenant:b.Ay,tooltip:x.Ay,schema:m.Ay,tenants:w.Ay,partitions:f.Ay,query:p.Ay,heatmap:d.Ay,settings:g.Ay,executeTopQueries:l.Ay,shardsWorkload:v.Ay,authentication:i.Ay,header:u.A,queryActions:h.Ay,fullscreen:c.Ay,clusters:s.Ay},E=(0,r.HY)({..._})},24600:(e,t,n)=>{"use strict";n.d(t,{K:()=>s,m:()=>i});var r=n(53850),o=n(78034);const i=n(21334).F.injectEndpoints({endpoints:e=>({getNodesList:e.query({queryFn:async(e,{signal:t})=>{try{return{data:await window.api.viewer.getNodesList({signal:t})}}catch(n){return{error:n}}}})}),overrideExisting:"throw"}),a=i.endpoints.getNodesList.select(void 0),s=(0,r.Mz)((e=>a(e).data),(e=>(0,o.nN)(e)))},47058:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,aD:()=>f,WD:()=>u});var r=n(97091),o=n(21334),i=n(46549),a=n(73891),s=n(41650);const l=e=>{const{partition_offsets:t,store_size_bytes:n="0",last_write_time:r,max_write_time_lag:o,bytes_written:s,partition_node_id:l=0}=e||{},{start:c="0",end:u="0"}=t||{};return{storeSize:n,writeSpeed:(0,i.ey)(s),partitionWriteLag:(0,a.i6)(o),partitionWriteIdleTime:(0,a.MC)(r),startOffset:c,endOffset:u,partitionNodeId:l}},c=(0,r.Z0)({name:"partitions",initialState:{},reducers:{setSelectedConsumer:(e,t)=>{e.selectedConsumer=t.payload}}}),{setSelectedConsumer:u}=c.actions,d=c.reducer,f=o.F.injectEndpoints({endpoints:e=>({getPartitions:e.query({queryFn:async({path:e,database:t,consumerName:n},{signal:r})=>{try{if(n){const o=await window.api.viewer.getConsumer({path:e,database:t,consumer:n},{signal:r}),c=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n,partition_consumer_stats:r}=e,o=l(n),{endOffset:c}=o,{last_read_offset:u="0",committed_offset:d="0",read_session_id:f,last_read_time:p,max_read_time_lag:h,max_write_time_lag:m,bytes_read:g,reader_name:v,connection_node_id:y=0}=r||{},b=(0,s.kf)(c)&&(0,s.kf)(d)?Number(c)-Number(d):0,w=(0,s.kf)(c)&&(0,s.kf)(u)?Number(c)-Number(u):0;return{...o,partitionId:t,readSpeed:(0,i.ey)(g),consumerWriteLag:(0,a.i6)(m),consumerReadLag:(0,a.i6)(h),consumerReadIdleTime:(0,a.MC)(p),uncommitedMessages:b,unreadMessages:w,commitedOffset:d,readSessionId:f,readerName:v,connectionNodeId:y}})))(o.partitions);return{data:c}}{const n=await window.api.viewer.getTopic({path:e,database:t},{signal:r}),o=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n}=e;return{partitionId:t,...l(n)}})))(n.partitions);return{data:o}}}catch(o){return{error:o}}},providesTags:["All"]})}),overrideExisting:"throw"})},10468:(e,t,n)=>{"use strict";n.d(t,{iZ:()=>w,Ay:()=>b,tS:()=>C,JK:()=>k,JO:()=>j,nO:()=>E,py:()=>I,Kz:()=>A,jY:()=>T,wf:()=>D,yJ:()=>P,Wp:()=>R,Ni:()=>N,P7:()=>x,Id:()=>O});var r=n(97091),o=n(59001),i=n(11822);const a={[i.PB.off]:0,[i.PB.toplevel]:4,[i.PB.basic]:9,[i.PB.detailed]:13,[i.PB.diagnostic]:14,[i.PB.trace]:15};var s=n(76086),l=n(41650),c=n(21334);const u=new Set(["PlanNodeId","PlanNodeType","Node Type","Plans"]);function d(e){const t=[];if(e.Operators){const n=[];for(const t of e.Operators){const e={name:t.Name,items:[]};for(const[n,r]of Object.entries(t)){if("Name"===n)continue;const t="string"===typeof r?r:JSON.stringify(r);e.items.push({name:n,value:t})}n.push(e)}t.push({group:"Operators",stats:n})}if("Connection"===e.PlanNodeType){const n=[];for(const[t,r]of Object.entries(e))u.has(t)||n.push({name:t,value:"string"===typeof r?r:JSON.stringify(r)});n.length>0&&t.push({group:"Attributes",stats:n})}if(e.Stats){const n=[];for(const[t,r]of Object.entries(e.Stats))n.push({name:t,value:"string"===typeof r?r:JSON.stringify(r)});t.push({group:"Stats",stats:n})}return t}function f(e){switch(e.PlanNodeType){case"Connection":return"connection";case"ResultSet":return"result";case"Query":return"query";default:return"stage"}}function p(e){const t=[],n=[];const r=e,o={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:f(r),name:r["Node Type"]}};return t.push(o),function e(r=[],o){r.forEach((r=>{var i;const a={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:f(r),name:r["Node Type"],operators:null===(i=r.Operators)||void 0===i?void 0:i.map((e=>e.Name)),stats:d(r),tables:r.Tables}};t.push(a),n.push({from:o,to:a.name}),e(r.Plans,a.name)}))}(r.Plans,o.name),{nodes:t,links:n}}const h=Object.values({v2:"0.2"});const m=o.f.readUserSettingsValue(s.MB,[]),g=m.length-20,v={input:"",history:{queries:m.slice(g<0?0:g).map((function(e){return"string"===typeof e?{queryText:e}:e})),currentIndex:m.length>20?19:m.length-1,filter:""}},y=(0,r.Z0)({name:"query",initialState:v,reducers:{changeUserInput:(e,t)=>{e.input=t.payload.input},setQueryTraceReady:e=>{e.result&&(e.result.isTraceReady=!0)},setQueryResult:(e,t)=>{e.result=t.payload},saveQueryToHistory:(e,t)=>{const{queryText:n,queryId:r}=t.payload,i=[...e.history.queries,{queryText:n,queryId:r}].slice(e.history.queries.length>=20?1:0);o.f.setUserSettingsValue(s.MB,i);const a=i.length-1;e.history={queries:i,currentIndex:a}},updateQueryInHistory:(e,t)=>{const{queryId:n,stats:r}=t.payload;if(!r)return;const i=e.history.queries.findIndex((e=>e.queryId===n));if(-1===i)return;const a=[...e.history.queries],{durationUs:l,endTime:c}=r;a.splice(i,1,{...e.history.queries[i],durationUs:l,endTime:c}),o.f.setUserSettingsValue(s.MB,a),e.history.queries=a},goToPreviousQuery:e=>{const t=e.history.currentIndex;if(t<=0)return;const n=t-1,r=e.history.queries[n];e.input=r.queryText,e.history.currentIndex=n},goToNextQuery:e=>{const t=e.history.currentIndex;if(t>=e.history.queries.length-1)return;const n=t+1,r=e.history.queries[n];e.input=r.queryText,e.history.currentIndex=n},setTenantPath:(e,t)=>{e.tenantPath=t.payload},setQueryHistoryFilter:(e,t)=>{e.history.filter=t.payload}},selectors:{selectQueriesHistoryFilter:e=>e.history.filter||"",selectTenantPath:e=>e.tenantPath,selectResult:e=>e.result,selectQueriesHistory:e=>{var t;const n=e.history.queries,r=null===(t=e.history.filter)||void 0===t?void 0:t.toLowerCase();return r?n.filter((e=>e.queryText.toLowerCase().includes(r))):n},selectUserInput:e=>e.input,selectQueriesHistoryCurrentIndex:e=>{var t;return null===(t=e.history)||void 0===t?void 0:t.currentIndex}}}),b=y.reducer,{changeUserInput:w,setQueryTraceReady:x,setQueryResult:_,saveQueryToHistory:E,updateQueryInHistory:S,goToPreviousQuery:k,goToNextQuery:C,setTenantPath:O,setQueryHistoryFilter:N}=y.actions,{selectQueriesHistoryFilter:T,selectQueriesHistoryCurrentIndex:A,selectQueriesHistory:I,selectTenantPath:P,selectResult:D,selectUserInput:R}=y.selectors,j=c.F.injectEndpoints({endpoints:e=>({useSendQuery:e.mutation({queryFn:async({actionType:e="execute",query:t,database:n,querySettings:r={},enableTracingLevel:o,queryId:s},{signal:c,dispatch:u})=>{u(_({type:e,queryId:s,isLoading:!0}));const{action:d,syntax:f}=function(e="execute",t="query"){let n=e,r="yql_v1";return"pg"===t?(n=`${e}-query`,r="pg"):t&&(n=`${e}-${t}`),{action:n,syntax:r}}(e,null===r||void 0===r?void 0:r.queryMode);try{var m;const g=Date.now(),v=await window.api.viewer.sendQuery({query:t,database:n,action:d,syntax:f,stats:r.statisticsMode,tracingLevel:r.tracingLevel&&o?a[r.tracingLevel]:void 0,limit_rows:(0,l.kf)(r.limitRows)?Number(r.limitRows):void 0,transaction_mode:"implicit"===r.transactionMode?void 0:r.transactionMode,timeout:(0,l.kf)(r.timeout)?1e3*Number(r.timeout):void 0,query_id:s},{signal:c});if((0,i.We)(v))return u(_({type:e,error:v,isLoading:!1,queryId:s})),{error:v};const y=function(e){var t,n,r;const o=(0,i.fW)(e),{plan:a,stats:s}=o;if(a){const{tables:e,meta:t,Plan:n,SimplifiedPlan:r}=(0,i.UF)(a);if(-1===h.indexOf(t.version))return{...o,preparedPlan:{pristine:a,version:t.version}};let s,l=[],c=[];if(n){const e=p(n);l=e.links,c=e.nodes}return r&&(s=function(e){const t=[],n=e.map((e=>({node:e})));for(;n.length>0;){var r;const{node:e,subNodes:o}=n.pop(),i=e.Plans,a=null===(r=e.Operators)||void 0===r?void 0:r[0],s=o||t;if(a){const{"A-Cpu":e,"A-Rows":t,"E-Cost":r,"E-Rows":o,"E-Size":l,SsaProgram:c,Name:u,...d}=a,f={name:u,operationParams:d,aCpu:e,aRows:t,eCost:r,eRows:o,eSize:l,children:[]};if(s.push(f),i)for(let a=i.length-1;a>=0;a--)n.push({node:i[a],subNodes:f.children})}else if(i)for(let t=i.length-1;t>=0;t--)n.push({node:i[t],subNodes:s})}return t}([r])),{...o,preparedPlan:{links:l,nodes:c,tables:e,version:t.version,pristine:a},simplifiedPlan:{plan:s,pristine:r}}}const l=null===s||void 0===s||null===(t=s.Executions)||void 0===t||null===(n=t[0])||void 0===n||null===(r=n.TxPlansWithStats)||void 0===r?void 0:r[0];if(l)try{const e=JSON.parse(l);return{...o,preparedPlan:{...p(e),pristine:e}}}catch{}return o}(v);if(y.traceId=null===v||void 0===v||null===(m=v._meta)||void 0===m?void 0:m.traceId,"execute"===e){const e={};if(y.stats){const{DurationUs:t,Executions:[{FinishTimeMs:n}]=[{}]}=y.stats;e.durationUs=t,e.endTime=n}else{const t=Date.now();e.durationUs=1e3*(t-g),e.endTime=t}u(S({stats:e,queryId:s}))}return u(_({type:e,data:y,isLoading:!1,queryId:s})),{data:null}}catch(g){return u(_({type:e,error:g,isLoading:!1,queryId:s})),{error:g}}}})}),overrideExisting:"throw"})},36894:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,JP:()=>l,NJ:()=>u,Wg:()=>g,aW:()=>f,cu:()=>h,fu:()=>m,gJ:()=>c,xM:()=>p,ys:()=>d});var r=n(97091),o=n(76086),i=n(88610);const a=(0,r.Z0)({name:"queryActions",initialState:{queryName:null,queryAction:"idle",savedQueriesFilter:""},reducers:{setQueryNameToEdit:(e,t)=>{e.queryName=t.payload},clearQueryNameToEdit:e=>{e.queryName=null},setQueryAction:(e,t)=>{e.queryAction=t.payload},setSavedQueriesFilter:(e,t)=>{e.savedQueriesFilter=t.payload}},selectors:{selectQueryName:e=>e.queryName,selectQueryAction:e=>e.queryAction,selectSavedQueriesFilter:e=>e.savedQueriesFilter}}),s=a.reducer,{setQueryNameToEdit:l,clearQueryNameToEdit:c,setQueryAction:u,setSavedQueriesFilter:d}=a.actions,{selectQueryName:f,selectQueryAction:p,selectSavedQueriesFilter:h}=a.selectors;function m(e){return function(t,n){var r;const a=n(),s=(null!==(r=(0,i.CN)(a,o.ld))&&void 0!==r?r:[]).filter((t=>t.name.toLowerCase()!==e.toLowerCase()));t((0,i.gc)(o.ld,s))}}function g(e){return function(t,n){var r;const a=n(),s=null!==(r=(0,i.CN)(a,o.ld))&&void 0!==r?r:[],l=a.query.input;if(null===e)return;const c=[...s],u=c.find((t=>t.name.toLowerCase()===e.toLowerCase()));u?u.body=l:c.push({name:e,body:l}),t((0,i.gc)(o.ld,c))}}},29078:(e,t,n)=>{"use strict";n.d(t,{Ab:()=>u,Ay:()=>l,Tn:()=>p,o:()=>c,sM:()=>d});var r=n(59284),o=n(97091),i=n(21334);const a={loading:!0,data:{},currentSchemaPath:void 0,showPreview:!1},s=(0,o.Z0)({name:"schema",initialState:a,reducers:{setShowPreview:(e,t)=>{e.showPreview=t.payload}},selectors:{selectShowPreview:e=>e.showPreview}}),l=s.reducer,{setShowPreview:c}=s.actions,{selectShowPreview:u}=s.selectors,d=i.F.injectEndpoints({endpoints:e=>({createDirectory:e.mutation({queryFn:async({database:e,path:t},{signal:n})=>{try{return{data:await window.api.scheme.createSchemaDirectory({database:e,path:t},{signal:n})}}catch(r){return{error:r}}}}),getSchema:e.query({queryFn:async({path:e,database:t},{signal:n})=>{try{const r=await window.api.viewer.getSchema({path:e,database:t},{signal:n});return r?{data:{[e]:r,...f(r)}}:{error:new Error("Schema is not available")}}catch(r){return{error:r}}},keepUnusedDataFor:1/0,serializeQueryArgs:({queryArgs:{database:e}})=>({database:e}),merge:(e,t,{arg:{path:n}})=>{const{[n]:r,...o}=t;return r?{...o,...e,[n]:r}:e}})}),overrideExisting:"throw"});function f(e){const t={},{PathDescription:{Children:n=[]}={},Path:r}=e;for(const o of n){const{Name:e=""}=o,n=`${r}/${e}`;t[n]={PathDescription:{Self:o},Path:n,partial:!0}}return t}function p({path:e,database:t}){const{currentData:n,isFetching:o,error:i,refetch:a,originalArgs:s}=d.useGetSchemaQuery({path:e,database:t}),l=null===n||void 0===n?void 0:n[e],c=o&&void 0===l,u=(null===s||void 0===s?void 0:s.path)===e?i:void 0,f=!c&&(!l&&!i||(null===l||void 0===l?void 0:l.partial));return r.useEffect((()=>{f&&a()}),[a,e,f]),{data:l,isLoading:c,error:u}}},88610:(e,t,n)=>{"use strict";n.d(t,{$u:()=>d,Ay:()=>g,CN:()=>f,N8:()=>m,gc:()=>h,s$:()=>a,ue:()=>c,yV:()=>p});var r=n(97091),o=n(59001),i=n(41650);const a={ALL:"All",PROBLEMS:"With problems"},s=o.f.extractSettingsFromLS(o.c),l=window.systemSettings||{},c={problemFilter:a.ALL,userSettings:s,systemSettings:l},u=(0,r.Z0)({name:"settings",initialState:c,reducers:e=>({changeFilter:e.reducer(((e,t)=>{e.problemFilter=t.payload})),setSettingValue:e.reducer(((e,t)=>{e.userSettings[t.payload.name]=t.payload.value}))}),selectors:{getSettingValue:(e,t)=>e.userSettings[t],selectProblemFilter:e=>e.problemFilter}}),{changeFilter:d}=u.actions,{getSettingValue:f,selectProblemFilter:p}=u.selectors,h=(e,t)=>n=>{n(u.actions.setSettingValue({name:e,value:t})),o.f.setUserSettingsValue(e,t)};function m(e){"undefined"!==typeof window&&window.addEventListener("storage",(t=>{if(t.key&&t.key in o.c){const n=t.key;let r=o.c[n];null!==t.newValue&&(r=(0,i.qF)(t.newValue)),e.dispatch(u.actions.setSettingValue({name:n,value:r}))}}))}const g=u.reducer},46496:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,Xx:()=>h,rF:()=>f});var r=n(14750),o=n(97091),i=n(959),a=n(11822),s=n(21334),l=n(87747);function c(e,t,n,o){const a=o?`CAST(SUBSTRING(CAST(Path AS String), ${o.length}) AS Utf8) AS Path`:"Path";let s=`Path='${e}' OR Path LIKE '${e}/%'`;const l=function(e){var t,n;const o=[],i=null===(t=(0,r.bQ)(Number(null===e||void 0===e?void 0:e.to)||(null===e||void 0===e?void 0:e.to)))||void 0===t?void 0:t.valueOf(),a=null===(n=(0,r.bQ)(Number(null===e||void 0===e?void 0:e.from)||(null===e||void 0===e?void 0:e.from)))||void 0===n?void 0:n.valueOf();if(a&&i&&a>i)throw new Error("Invalid date range");if(a){const e=i===a?">=":">";o.push(`IntervalEnd ${e} Timestamp('${new Date(a).toISOString()}')`)}return i&&o.push(`IntervalEnd <= Timestamp('${new Date(i).toISOString()}')`),o.join(" AND ")}(t);l.length&&(s=`(${s}) AND ${l}`);return`SELECT\n ${a},\n TabletId,\n CPUCores,\n DataSize,\n NodeId,\n PeakTime,\n InFlightTxCount,\n IntervalEnd\nFROM \`.sys/top_partitions_one_hour\`\nWHERE ${s}\n${(0,i.JD)(n)}\nLIMIT 20`}function u(e,t,n){return`SELECT\n ${n?`CAST(SUBSTRING(CAST(Path AS String), ${n.length}) AS Utf8) AS Path`:"Path"},\n TabletId,\n CPUCores,\n DataSize,\n NodeId,\n InFlightTxCount\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\n${(0,i.JD)(t)}\nLIMIT 20`}const d=(0,o.Z0)({name:"shardsWorkload",initialState:{},reducers:{setShardsQueryFilters:(e,t)=>({...e,...t.payload})}}),{setShardsQueryFilters:f}=d.actions,p=d.reducer,h=s.F.injectEndpoints({endpoints:e=>({sendShardQuery:e.query({queryFn:async({database:e,path:t="",sortOrder:n,filters:r},{signal:o})=>{try{const i=await window.api.viewer.sendQuery({query:(null===r||void 0===r?void 0:r.mode)===l.h.Immediate?u(t,n,e):c(t,r,n,e),database:e,action:"execute-scan"},{signal:o,withRetries:!0});if((0,a.We)(i))return{error:i};return{data:(0,a.fW)(i)}}catch(i){return{error:i}}},providesTags:["All"],forceRefetch:({currentArg:e})=>{var t,n,o;return"immediate"===(null===e||void 0===e||null===(t=e.filters)||void 0===t?void 0:t.mode)||!(!(0,r.eP)(null===e||void 0===e||null===(n=e.filters)||void 0===n?void 0:n.from)&&!(0,r.eP)(null===e||void 0===e||null===(o=e.filters)||void 0===o?void 0:o.to))}})}),overrideExisting:"throw"})},87747:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});let r=function(e){return e.Immediate="immediate",e.History="history",e}({})},52531:(e,t,n)=>{"use strict";n.d(t,{Dg:()=>o,Dt:()=>r,iJ:()=>a,ml:()=>s,pA:()=>l,tQ:()=>i});const r="tenantPage",o={query:"query",diagnostics:"diagnostics"},i={newQuery:"newQuery",history:"history",saved:"saved"},a={overview:"overview",schema:"schema",topQueries:"topQueries",topShards:"topShards",nodes:"nodes",tablets:"tablets",storage:"storage",network:"network",describe:"describe",hotKeys:"hotKeys",graph:"graph",consumers:"consumers",partitions:"partitions",configs:"configs",operations:"operations"},s={overview:"overview",acl:"acl",schema:"schema"},l={cpu:"cpu",storage:"storage",memory:"memory",healthcheck:"healthcheck"}},18517:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,WO:()=>h,sH:()=>p,Mj:()=>m,es:()=>f,z6:()=>v});var r=n(97091),o=n(59001),i=n(76086),a=n(21334),s=n(370),l=n(52531);const c={tenantPage:s.z.nativeEnum(l.Dg).catch(o.c[i.Mt]).parse(o.f.readUserSettingsValue(i.Mt))},u=(0,r.Z0)({name:"tenant",initialState:c,reducers:{setTenantPage:(e,t)=>{e.tenantPage=t.payload},setQueryTab:(e,t)=>{e.queryTab=t.payload},setDiagnosticsTab:(e,t)=>{e.diagnosticsTab=t.payload},setSummaryTab:(e,t)=>{e.summaryTab=t.payload},setMetricsTab:(e,t)=>{e.metricsTab=t.payload}}}),d=u.reducer,{setTenantPage:f,setQueryTab:p,setDiagnosticsTab:h,setSummaryTab:m,setMetricsTab:g}=u.actions,v=a.F.injectEndpoints({endpoints:e=>({getTenantInfo:e.query({queryFn:async({path:e},{signal:t})=>{try{var n,r;return{data:null!==(n=null===(r=(await window.api.viewer.getTenantInfo({path:e},{signal:t})).TenantInfo)||void 0===r?void 0:r[0])&&void 0!==n?n:null}}catch(o){return{error:o}}},providesTags:["All"]}),getClusterConfig:e.query({queryFn:async({database:e},{signal:t})=>{try{const n=await window.api.viewer.getClusterConfig(e,{signal:t});return{data:n.Databases[0].FeatureFlags}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},8861:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,u:()=>r});const r={Unspecified:"Unspecified",Good:"Good",Warning:"Warning",Danger:"Danger"},o={[r.Unspecified]:0,[r.Good]:1,[r.Warning]:2,[r.Danger]:3}},56674:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,GJ:()=>c,gB:()=>s});var r=n(97091),o=n(21334),i=n(20680);const a=(0,r.Z0)({name:"tenants",initialState:{searchValue:""},reducers:{setSearchValue:(e,t)=>{e.searchValue=t.payload}}}),{setSearchValue:s}=a.actions,l=a.reducer,c=o.F.injectEndpoints({endpoints:e=>({getTenantsInfo:e.query({queryFn:async({clusterName:e},{signal:t,getState:n})=>{try{const r=window.api.meta?await window.api.meta.getTenants(e,{signal:t}):await window.api.viewer.getTenants(e,{signal:t});let o;if(Array.isArray(r.TenantInfo)){const{singleClusterMode:e}=n();o=(0,i.T3)(r.TenantInfo,e)}else o=[];return{data:o}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},20680:(e,t,n)=>{"use strict";n.d(t,{uI:()=>s,sf:()=>u,T3:()=>l});let r=function(e){return e.None="None",e.HDD="HDD",e.SSD="SSD",e}({});var o=n(76086),i=n(41650),a=n(8861);const s=(e={})=>{const{CoresUsed:t,MemoryUsed:n,StorageAllocatedSize:o,MemoryLimit:a,StorageAllocatedLimit:s,PoolStats:l,Metrics:u={},DatabaseQuotas:d={},StorageUsage:f,QuotaUsage:p}=e,h=1e6*Number(t)||0,m=Number(n)||0,g=Number(o)||0,v=Number(u.Storage)||0,y=(0,i.kf)(a)?Number(a):void 0,b=(0,i.kf)(s)?Number(s):void 0,w=(0,i.kf)(d.data_size_soft_quota)?Number(d.data_size_soft_quota):void 0,x=(e=>{if(e)return e.map((e=>{if(e.Name){const t=Number(e.Usage)||0,n=Number(e.Threads),r=n*t;return{name:e.Name,usage:100*t,limit:n,used:r}}})).filter((e=>void 0!==e))})(l);let _,E;_=f?f.map((e=>{const{Type:t,Size:n,Limit:r}=e,o=Number(n),i=Number(r);return{name:t,used:o,limit:i,usage:c(o,i)}})):[{name:r.SSD,used:g,limit:b,usage:c(g,b)}],p?E=p.map((e=>{const{Type:t,Size:n,Limit:r}=e,o=Number(n),i=Number(r);return{name:t,used:o,limit:i,usage:c(o,i)}})):w&&(E=[{name:r.SSD,used:v,limit:w,usage:c(v,w)}]);return{memory:m,blobStorage:g,tabletStorage:v,memoryLimit:y,blobStorageLimit:b,tabletStorageLimit:w,cpu:h,poolsStats:x,memoryStats:[{name:"Process",used:m,limit:y,usage:c(m,y)}],blobStorageStats:_,tabletStorageStats:E}},l=(e,t)=>e.map((n=>{const r=t?(e=>{var t;const n=e.Nodes?e.Nodes[0]:{},r=n.Host&&n.Endpoints?null===(t=n.Endpoints.find((e=>"http-mon"===e.Name)))||void 0===t?void 0:t.Address:void 0;return n.Host?`${n.Host}${r||""}`:void 0})(n):void 0,o=e.find((e=>e.Id===n.ResourceId)),a=null===o||void 0===o?void 0:o.Name,l=null===o||void 0===o?void 0:o.NodeIds,c=(e=>{var t,n;const r=null===(t=e.Name)||void 0===t?void 0:t.split("/"),o=null!==r&&void 0!==r&&r.length?r[r.length-1]:"\u2014",i=null===(n=e.ControlPlane)||void 0===n?void 0:n.name;return null!==i&&void 0!==i?i:o})(n),{cpu:u,memory:d,blobStorage:f}=s(n),{nodesCount:p,groupsCount:h}=(e=>{var t;const{StorageGroups:n,NodeIds:r}=e;return{nodesCount:null!==(t=null===r||void 0===r?void 0:r.length)&&void 0!==t?t:0,groupsCount:(0,i.kf)(n)?Number(n):0}})(n);return{...n,backend:r,sharedTenantName:a,sharedNodeIds:l,controlPlaneName:c,cpu:u,memory:d,storage:f,nodesCount:p,groupsCount:h}}));function c(e,t){if(e&&t)return 100*e/t}function u(e){return e?e>o.Ed?a.u.Danger:e>o.Hh?a.u.Warning:a.u.Good:a.u.Unspecified}},49818:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,DK:()=>c,oM:()=>a,w7:()=>l});var r=n(62060),o=n.n(r);const i="tooltip/HIDE_TOOLTIP",a="tooltip/UPDATE_REF",s={toolTipVisible:!1,currentHoveredRef:void 0,data:void 0,templateType:"cell"},l=()=>({type:i}),c=(e,t,n,r,o)=>({type:a,node:e,data:t,templateType:n,additionalData:r,positions:o}),u=(e=s,t)=>{switch(t.type){case i:return{...e,currentHoveredRef:void 0,toolTipVisible:!1};case a:return"cell"===t.templateType&&o()(t.node,e.currentHoveredRef)?{...e,currentHoveredRef:void 0,toolTipVisible:!1}:{...e,toolTipVisible:!0,currentHoveredRef:t.node,positions:t.positions,data:t.data,additionalData:t.additionalData,templateType:t.templateType};default:return e}}},98730:(e,t,n)=>{"use strict";function r(e){return!!e&&("Version"in e&&"number"===typeof e.Version&&e.Version>=2)}n.d(t,{L:()=>r})},54090:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});let r=function(e){return e.Grey="Grey",e.Green="Green",e.Blue="Blue",e.Yellow="Yellow",e.Orange="Orange",e.Red="Red",e}({})},6354:(e,t,n)=>{"use strict";n.d(t,{e:()=>r,r:()=>o});let r=function(e){return e.Unknown="Unknown",e.OldSchemeShard="OldSchemeShard",e.OldDataShard="OldDataShard",e.OldHive="OldHive",e.OldCoordinator="OldCoordinator",e.Mediator="Mediator",e.OldTxProxy="OldTxProxy",e.OldBSController="OldBSController",e.Dummy="Dummy",e.RTMRPartition="RTMRPartition",e.OldKeyValue="OldKeyValue",e.KeyValue="KeyValue",e.Coordinator="Coordinator",e.Hive="Hive",e.BSController="BSController",e.SchemeShard="SchemeShard",e.TxProxy="TxProxy",e.DataShard="DataShard",e.PersQueue="PersQueue",e.Cms="Cms",e.NodeBroker="NodeBroker",e.TxAllocator="TxAllocator",e.PersQueueReadBalancer="PersQueueReadBalancer",e.BlockStoreVolume="BlockStoreVolume",e.BlockStorePartition="BlockStorePartition",e.TenantSlotBroker="TenantSlotBroker",e.Console="Console",e.Kesus="Kesus",e.BlockStorePartition2="BlockStorePartition2",e.BlockStoreDiskRegistry="BlockStoreDiskRegistry",e.SysViewProcessor="SysViewProcessor",e.FileStore="FileStore",e.ColumnShard="ColumnShard",e.TestShard="TestShard",e.SequenceShard="SequenceShard",e.ReplicationController="ReplicationController",e.BlobDepot="BlobDepot",e.UserTypeStart="UserTypeStart",e.TypeInvalid="TypeInvalid",e}({}),o=function(e){return e.Created="Created",e.ResolveStateStorage="ResolveStateStorage",e.Candidate="Candidate",e.BlockBlobStorage="BlockBlobStorage",e.RebuildGraph="RebuildGraph",e.WriteZeroEntry="WriteZeroEntry",e.Restored="Restored",e.Discover="Discover",e.Lock="Lock",e.Dead="Dead",e.Active="Active",e.ResolveLeader="ResolveLeader",e.Deleted="Deleted",e.Stopped="Stopped",e}({})},15619:(e,t,n)=>{"use strict";n.d(t,{d:()=>l,z:()=>u});var r=n(76086),o=n(56839),i=n(41650),a=n(82621);const s={b:{value:1,label:(0,a.A)("b")},kb:{value:r.eh,label:(0,a.A)("kb")},mb:{value:r.pg,label:(0,a.A)("mb")},gb:{value:r.J7,label:(0,a.A)("gb")},tb:{value:r.Db,label:(0,a.A)("tb")}},l=(e,t)=>{const n=10**t,r=s.tb.value*n,o=s.gb.value*n,i=s.mb.value*n;let a="b";return e>=s.kb.value*n&&(a="kb"),e>=i&&(a="mb"),e>=o&&(a="gb"),e>=r&&(a="tb"),a},c=(e,t,n=i.en)=>e+n+s[t].label,u=({value:e,size:t,withSpeedLabel:n=!1,withSizeLabel:r=!0,significantDigits:u=0,delimiter:d,...f})=>{if(!(0,i.kf)(e))return"";const p=Number(e),h=null!==t&&void 0!==t?t:l(p,u),m=(({value:e,size:t="mb",precision:n=0})=>{const r=(0,o.CR)(Number(e)/s[t].value,n);return(0,o.ZV)(r)})({value:p,size:h,...f});return n?((e,t)=>c(e,t)+(0,a.A)("perSecond"))(m,h):r?c(m,h,d):m}},82621:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(48372);const o=JSON.parse('{"b":"B","kb":"KB","mb":"MB","gb":"GB","tb":"TB","label_thousand":"k","label_million":"m","label_billion":"b","label_trillion":"t","perSecond":"/s"}'),i=(0,r.g4)("ydb-bytes-parsers",{en:o})},46549:(e,t,n)=>{"use strict";n.d(t,{ey:()=>i,z3:()=>r.z,dd:()=>r.d});var r=n(15619),o=n(76086);const i=e=>({perMinute:e&&e.per_minute?Math.round(Number(e.per_minute)/o.r0):0,perHour:e&&e.per_hour?Math.round(Number(e.per_hour)/o.Jg):0,perDay:e&&e.per_day?Math.round(Number(e.per_day)/o.tt):0})},40537:(e,t,n)=>{"use strict";n.d(t,{HD:()=>l,NN:()=>u,Vm:()=>c});var r=n(11078),o=n.n(r),i=n(38596),a=n(66592);const s="__no_color__",l=(e,t=new Map)=>(e.forEach((({version:e,version_base_color_index:n=s})=>{var r;const o=(0,i.U)(e);t.has(n)||t.set(n,new Set),null===(r=t.get(n))||void 0===r||r.add(o)})),t),c=e=>{const t=new Map;for(const[n,r]of e)Array.from(r).sort(((e,t)=>(0,a.s5)(t)-(0,a.s5)(e))).forEach(((e,o)=>{if(n===s)t.set(e,a.OT);else{const i=Number(n)%a.lm.length,s=r.size,l=a.lm[i],c=Math.max(100-o*(100/s),20),u=`${l}${Math.round(255*c/100).toString(16)}`;t.set(e,u)}}));return t},u=(e=[],t)=>{const n=e.filter((e=>e.version));return o()(n,"version").map((e=>({...e,minorVersion:(0,i.U)(e.version)}))).reduce(((e,n)=>{const r=t.get(n.minorVersion);return e.push({...n,color:r}),e}),[])}},77506:(e,t,n)=>{"use strict";n.d(t,{cn:()=>r});const r=(0,n(82435).withNaming)({e:"__",m:"_"})},76086:(e,t,n)=>{"use strict";n.d(t,{Db:()=>l,Du:()=>p,ED:()=>j,Ed:()=>g,GT:()=>b,GV:()=>F,Gj:()=>te,Hh:()=>m,IO:()=>ee,J7:()=>s,Jg:()=>d,KF:()=>c,LK:()=>X,LQ:()=>T,MB:()=>A,Mt:()=>G,N3:()=>U,Nz:()=>w,Pd:()=>x,QM:()=>E,RY:()=>I,T5:()=>_,TJ:()=>O,U0:()=>ne,Xm:()=>Q,YQ:()=>W,av:()=>P,bk:()=>y,bs:()=>K,c4:()=>$,eh:()=>i,fY:()=>B,fr:()=>H,g5:()=>Y,hh:()=>z,iD:()=>D,jQ:()=>M,jS:()=>C,jX:()=>L,jp:()=>q,k4:()=>k,l_:()=>R,ld:()=>N,lr:()=>Z,oK:()=>S,pg:()=>a,r0:()=>u,s2:()=>J,tt:()=>f,zk:()=>V,zz:()=>h});var r=n(4557),o=n(6354);const i=1e3,a=1e6,s=1e9,l=1e12,c=1e3,u=60,d=60*u,f=24*d,p=7*f,h=1e6,m=85,g=95,v={[o.e.OldTxProxy]:"P",[o.e.TxProxy]:"P",[o.e.BSController]:"BS",[o.e.Dummy]:"DY",[o.e.RTMRPartition]:"RP",[o.e.PersQueueReadBalancer]:"PB",[o.e.Cms]:"CM",[o.e.BlockStorePartition]:"BP",[o.e.BlockStoreVolume]:"BV",[o.e.Console]:"CN",[o.e.TenantSlotBroker]:"TB",[o.e.BlockStoreDiskRegistry]:"BDR"},y=e=>{var t;if(!e)return;const n=null===(t=e.match(/[A-Z]/g))||void 0===t?void 0:t.join("");return(e=>e in v)(e)?v[e]:n},b=["1 min","5 min","15 min"],w=5,x="\u2014",_="Developer UI",E="Cluster",S="Database",k="theme",C="language",O="invertedDisks",N="saved_queries",T="asideHeaderCompact",A="queries_history",I="binaryDataInPlainTextDisplay",P="auto-refresh-interval",D="caseSensitiveJsonSearch",R="default-size-result-pane",j="default-size-tenant-summary-pane",M="default-size-tenant-pane",L="default-is-tenant-summary-collapsed",z="default-is-tenant-common-info-collapsed",F="default-is-query-result-collapsed",B="default-cluster-tab",U={displayIndices:!1,stickyHead:r.Ay.MOVING,syncHeadOnResize:!0,dynamicRender:!0,highlightRows:!0},q={...U,stickyHead:"fixed",dynamicRender:!1},$="queryExecutionSettings",H="last_query_execution_settings",W="querySettingsBannerLastClosed",V="last_used_query_action",K="partitionsHiddenColumns",G="saved_tenant_initial_tab",Y="enableNetworkTable",Z="useShowPlanToSvg",Q="showDomainDatabase",J="useClusterBalancerAsBacked",X="enableAutocomplete",ee="autocompleteOnEnter",te="isHotKeysHelpHidden",ne="enable_tracing_for_all_requests"},56839:(e,t,n)=>{"use strict";n.d(t,{tC:()=>v,z3:()=>g,iM:()=>D,r6:()=>R,lr:()=>w,ZV:()=>N,Nd:()=>k,l9:()=>T,Pt:()=>A,j9:()=>S,vX:()=>C,ki:()=>O,Ey:()=>j,wI:()=>_,vN:()=>M,H7:()=>x,CR:()=>I,U9:()=>y});var r=n(14750),o=n(15619),i=n(76086),a=n(79685),s=n(41650);function l(e,t,n,r,o,i,a=!1){let l=t(Number(n),0),c=!0,u=0;(0,s.kf)(r)&&(l=t(Number(r),0),c=a,u=1);return[e({value:n,withSizeLabel:c,size:o||l,precision:u,delimiter:i}),e({value:r,size:o||l,delimiter:i})]}var c=n(82621);const u={thousand:{value:1e3,label:(0,c.A)("label_thousand")},million:{value:1e6,label:(0,c.A)("label_million")},billion:{value:1e9,label:(0,c.A)("label_billion")},trillion:{value:1e12,label:(0,c.A)("label_trillion")}},d=(e,t)=>{const n=10**t;let r="thousand";return e>u.thousand.value*n&&(r="thousand"),e>=u.million.value*n&&(r="million"),e>=u.billion.value*n&&(r="billion"),e>=u.trillion.value*n&&(r="trillion"),r},f=({value:e,size:t,withSizeLabel:n=!0,significantDigits:r=0,delimiter:o,...i})=>{if(!(0,s.kf)(e))return"";const a=Number(e),l=null!==t&&void 0!==t?t:d(a,r),c=(({value:e,size:t="thousand",precision:n=0})=>{const r=I(Number(e)/u[t].value,n);return N(r)})({value:a,size:l,...i});return n?((e,t,n=s.en)=>e+n+u[t].label)(c,l,o):c};var p=n(48372);const h=JSON.parse('{"format-cpu.cores":["core","cores","cores","cores"],"d":"d","s":"s"}'),m=(0,p.g4)("ydb-format-cpu",{en:h}),g=e=>(0,s.kf)(e)?(0,a.p)(e).format("0 b"):"",v=e=>{const t=g(e);return t?t+"/s":""},y=e=>e?Object.values(e).join("-"):"";function b(e){if(!(0,s.kf)(e))return;const t=e<0?"-":"",n=(0,r.p0)(Math.abs(e),"s").rescale();let o;return o=Math.floor(n.asDays())>0?n.format(`d[${m("d")}${s.en}]hh:mm:ss`):n.hours()>0?n.format("h:mm:ss"):n.minutes()>0?n.format("m:ss"):n.format(`s[${m("s")}]`),t+o}const w=e=>b(Number(e)/1e3);function x(e,t){let n=E(e,t);return n=n<0?0:n,b(n)}function _(e,t){let n=E(e,t);return n=n<0?0:n,b(-n)}function E(e,t=(new Date).getTime()){return(Number(t)-Number(e))/1e3}function S(e,t,n,r,i){return l(o.z,o.d,e,t,n,r,i)}function k(e,t,n,r,o){return l(f,d,e,t,n,r,o)}const C=(e,t)=>S(e,t,"gb"),O=(e,t)=>S(e,t,"tb"),N=e=>(0,s.kf)(e)?(0,a.p)(e).format("0,0.[00000]"):"",T=(e,t=2)=>{if(!(0,s.kf)(e))return"";const n=Number(e).toFixed(t);return(0,a.p)(n).format("0.[00]%")},A=e=>{const t=(e/i.Jg).toFixed(2);return`${N(t)} hours`},I=(e,t=0)=>{const n=Math.abs(Number(e));let[r]=String(n).split(".");return Number(n)<1&&(r=""),r.length>=t?Number(Number(e).toFixed(0)):Number(Number(e).toFixed(t-r.length))},P=e=>{const t=Number(e)/1e6;return I(t,3)},D=e=>{if(void 0!==e)return(0,a.p)(P(e)).format("0.[000]")},R=(e,{withTimeZone:t,defaultValue:n=""}={})=>{var o;const i=t?" z":"",a=null===(o=(0,r.bQ)(Number(e)))||void 0===o?void 0:o.format(`YYYY-MM-DD HH:mm${i}`);return null!==a&&void 0!==a?a:n},j=(e,t="")=>{var n;const o=null===(n=(0,r.bQ)(e))||void 0===n?void 0:n.format("YYYY-MM-DD HH:mm:ss.SSS");return null!==o&&void 0!==o?o:t};function M(e){return void 0===e?"":"object"===typeof e?JSON.stringify(e):e.toString()}},31684:(e,t,n)=>{"use strict";n.d(t,{Kx:()=>s,Un:()=>i,Wg:()=>c,_t:()=>u,ar:()=>l,t1:()=>a});var r=n(58351),o=n(41650);function i(e=r.Hs){return e+"/internal"}function a(e=r.Hs){return e+"/monitoring"}const s=(e,t=r.Hs)=>{const n=/\/node\/\d+\/?$/g;return n.test(String(t))?String(t).replace(n,`/node/${e}`):`${null!==t&&void 0!==t?t:""}/node/${e}`},l=({nodeId:e,pDiskId:t,host:n})=>{const r="/actors/pdisks/pdisk"+(0,o.pY)(t);return s(e,n)+r},c=({nodeId:e,pDiskId:t,vDiskSlotId:n,host:r})=>{const i="/actors/vdisks/vdisk"+(0,o.pY)(t)+"_"+(0,o.pY)(n);return s(e,r)+i};function u(e,t,n="TabletID",o=r.Hs){return`${o}/tablets${t?`/${t}`:""}?${n}=${e}`}},90182:(e,t,n)=>{"use strict";n.d(t,{JN:()=>s.JN,Nt:()=>f,A5:()=>h,XS:()=>a.X,e4:()=>u,iK:()=>i.i,GY:()=>s.GY,YQ:()=>o.Y,N4:()=>r.N});var r=n(75022),o=n(51533),i=n(80967),a=n(95312),s=n(959),l=n(10755),c=n(92459);const u=()=>{const e=(0,l.zy)();return(0,c.mA)(e)};var d=n(76086);function f(){return(0,i.i)(d.av,0)}var p=n(59284);function h(e){const t=p.useRef(e);return p.useLayoutEffect((()=>{t.current=e}),[e]),p.useCallback(((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}},28232:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});var r=n(67087);function o(){const[e]=(0,r.useQueryParam)("database",r.StringParam);return null!==e&&void 0!==e?e:void 0}},66781:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(59284);function o(e=600){const[t,n]=r.useState(!1),[o,i]=r.useState(0);r.useEffect((()=>{n(!1);const t=setTimeout((()=>{n(!0)}),e);return()=>{clearTimeout(t)}}),[e,o]);return[t,r.useCallback((()=>{i((e=>e+1))}),[])]}},95312:(e,t,n)=>{"use strict";n.d(t,{X:()=>l});var r=n(59284),o=n(67028),i=n(76086),a=n(11822),s=n(80967);const l=()=>{const e=(0,o.Oi)(),[t,n]=(0,s.i)(i.c4),l=a.dZ.parse(t),[c]=(0,s.i)(i.lr),u=r.useCallback((e=>{n({...e,statisticsMode:c?l.statisticsMode:e.statisticsMode})}),[n,c,l.statisticsMode]);return[{...l,statisticsMode:c?a.pE.full:l.statisticsMode,tracingLevel:e?l.tracingLevel:a.jU.tracingLevel},u]}},80967:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(59284),o=n(88610),i=n(51533),a=n(75022);const s=(e,t)=>{const n=(0,i.Y)();return[(0,a.N)((n=>{var r;return null!==(r=(0,o.CN)(n,e))&&void 0!==r?r:t})),r.useCallback((t=>{n((0,o.gc)(e,t))}),[n,e])]}},959:(e,t,n)=>{"use strict";n.d(t,{GY:()=>a,JD:()=>c,JN:()=>s});var r=n(59284),o=n(62060),i=n.n(o);function a({initialSortColumn:e,initialSortOrder:t=-1,fixedOrderType:n,multiple:o,onSort:a}){const[s,l]=r.useState((()=>{if(e)return[{columnId:e,order:n||t}]}));return[s,r.useCallback((e=>{if(!e||Array.isArray(e)&&!e.length)return void(n||(null===a||void 0===a||a(void 0),l(void 0)));let t=Array.isArray(e)?e:[e];n&&(t=t.map((e=>({columnId:e.columnId,order:n})))),o||(t=t.slice(0,1)),l((e=>t&&!i()(e,t)?(null===a||void 0===a||a(t),t):e))}),[n,o,a])]}function s(e=[],t){const n=e.map((e=>({columnId:t(e.columnId),order:e.order}))).filter((e=>Boolean(e.columnId)));if(n.length)return n}function l({columnId:e,order:t}){return`${e} ${-1===t?"DESC":"ASC"}`}function c(e){return e?`ORDER BY ${e.map(l).join(", ")}`:""}},51533:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});const r=n(97434).wA},75022:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=n(97434).d4},48372:(e,t,n)=>{"use strict";n.d(t,{JA:()=>s,oK:()=>l,Ru:()=>u,g4:()=>d});var r=n(1448),o=n(3357),i=n(59001),a=n(76086),s=function(e){return e.En="en",e.Ru="ru",e}(s||{});const l=s.En,c=i.f.readUserSettingsValue(a.jS,l),u=new r.TH({lang:c,fallbackLang:s.En});function d(e,t){for(const n of Object.keys(t))u.registerKeyset(n,e,t[n]);return u.keyset(e)}(0,o.jK)({lang:c})},7435:(e,t,n)=>{"use strict";n.d(t,{_e:()=>r,f8:()=>o,uk:()=>i});const r=e=>[...Array(e).keys()];function o(e){return null!==e&&void 0!==e}async function i(e,t){return new Promise((n=>{setTimeout((()=>n(t)),e)}))}},99006:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(59284),o=n(74417),i=n(34271),a=n(88632),s=n(60712);function l(e,t,n){const o=r.lazy((()=>e().then((e=>({default:e[t]}))).catch((e=>({default:()=>(0,s.jsx)(a.jt,{error:e})}))))),l=r.forwardRef(((e,t)=>{const a=(0,i.x)("ErrorBoundary");return(0,s.jsx)(a,{children:(0,s.jsx)(r.Suspense,{fallback:null!==n&&void 0!==n?n:(0,s.jsx)(c,{}),children:(0,s.jsx)(o,{ref:t,...e})})})}));return l.displayName=t,l}function c(){return(0,s.jsx)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(o.a,{size:"l"})})}},78034:(e,t,n)=>{"use strict";n.d(t,{AB:()=>h,Bm:()=>c,DG:()=>u,Fo:()=>m,X7:()=>d,cW:()=>l,nN:()=>f,q1:()=>p});var r=n(370),o=n(88610),i=n(54090),a=n(76086),s=n(7435);let l=function(e){return e.All="All",e.SmallUptime="SmallUptime",e}({});const c=r.z.nativeEnum(l).catch(l.All),u={[l.All]:"All",[l.SmallUptime]:"Uptime < 1h"},d=e=>!e.SystemState||e.SystemState===i.m.Grey,f=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>{var n;(0,s.f8)(t.Id)&&e.set(t.Id,{Host:t.Host,DC:null===(n=t.PhysicalLocation)||void 0===n?void 0:n.DataCenterId});return e}),new Map);function p(e={}){var t,n,r,o,i,a;const l=(null===(t=e.Location)||void 0===t?void 0:t.Rack)||e.Rack,c=(null===(n=e.Location)||void 0===n?void 0:n.DataCenter)||e.DataCenter,u=null===e||void 0===e||null===(r=e.Tenants)||void 0===r?void 0:r[0],d=function(e={}){const{LoadAverage:t,NumberOfCpus:n}=e;if((0,s.f8)(t)&&(0,s.f8)(n))return t.map((e=>100*e/n))}(e),f=Number(null===(o=e.SharedCacheStats)||void 0===o?void 0:o.LimitBytes)||void 0,p=(0,s.f8)(null===(i=e.SharedCacheStats)||void 0===i?void 0:i.UsedBytes)?Number(null===(a=e.SharedCacheStats)||void 0===a?void 0:a.UsedBytes):void 0;return{...e,Rack:l,DC:c,LoadAveragePercents:d,TenantName:u,SharedCacheLimit:f,SharedCacheUsed:p}}const h=e=>e===o.s$.PROBLEMS,m=e=>e===l.SmallUptime?a.Jg:void 0},79685:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(7139),o=n.n(r),i=(n(97650),n(48372)),a=n(41650);Object.values(i.JA).forEach((e=>{o().locales[e]&&(o().locales[e].delimiters.thousands=a.en)})),o().locale(i.Ru.lang);const s=o()},69446:(e,t,n)=>{"use strict";n.d(t,{M6:()=>o,PG:()=>r,Zd:()=>i});const r=e=>e.replace(/\/viewer\/json/,""),o=e=>{const t=r((e=>e.replace(/http[s]?:\/\//,""))(e)),n=t.split("/");if(1===n.length)return{balancer:n[0],proxy:void 0};const o=n[0];return{balancer:t.replace(o+"/",""),proxy:o}},i=e=>o(e).balancer.replace(/:\d+$/,"")},77630:(e,t,n)=>{"use strict";n.d(t,{De:()=>i,Vk:()=>a});var r=n(69446);const o="https://",i=(e,t)=>{const n=null!==(i=e)&&void 0!==i&&i.startsWith("vm-")?`u-${i}`:i;var i;const a=(0,r.M6)(t).proxy;return a?o+a+"/"+n:o+n},a=(e,t,n)=>{const{Host:o,Endpoints:a,NodeId:s}=e;if(n&&s){return`${(0,r.PG)(t)}/node/${s}`}if(o&&a){var l;const e=null===(l=a.find((e=>"http-mon"===e.Name)))||void 0===l?void 0:l.Address;if(!e||!o)return null;return i(o+e,t)}return null}},11822:(e,t,n)=>{"use strict";n.d(t,{jU:()=>k,x5:()=>f,ei:()=>p,om:()=>h,pE:()=>l,Pn:()=>c,PB:()=>u,PX:()=>d,Wg:()=>a,_d:()=>s,nh:()=>m,We:()=>b,fW:()=>w,KH:()=>E,Cb:()=>S,UF:()=>x,vi:()=>_,dZ:()=>I,id:()=>A});var r=n(370);let o=function(e){return e.Bool="Bool",e.Int8="Int8",e.Int16="Int16",e.Int32="Int32",e.Int64="Int64",e.Uint8="Uint8",e.Uint16="Uint16",e.Uint32="Uint32",e.Uint64="Uint64",e.Float="Float",e.Double="Double",e.Decimal="Decimal",e.String="String",e.Utf8="Utf8",e.Json="Json",e.JsonDocument="JsonDocument",e.Yson="Yson",e.Uuid="Uuid",e.Date="Date",e.Datetime="Datetime",e.Timestamp="Timestamp",e.Interval="Interval",e.TzDate="TzDate",e.TzDateTime="TzDateTime",e.TzTimestamp="TzTimestamp",e.Date32="Date32",e.Datetime64="Datetime64",e.Timestamp64="Timestamp64",e.Interval64="Interval64",e.TzDate32="TzDate32",e.TzDatetime64="TzDatetime64",e.TzTimestamp64="TzTimestamp64",e}({});var i=n(81288);const a={serializable:"serializable-read-write",stalero:"stale-read-only",onlinero:"online-read-only",snapshot:"snapshot-read-only",implicit:"implicit"},s={[a.serializable]:"Serializable",[a.stalero]:"Stale Read-Only",[a.onlinero]:"Online Read-Only",[a.snapshot]:"Snapshot Read-Only",[a.implicit]:"Implicit"},l={none:"none",basic:"basic",full:"full",profile:"profile"},c={[l.none]:"None",[l.full]:"Full",[l.basic]:"Basic",[l.profile]:"Profile"},u={off:"off",toplevel:"toplevel",basic:"basic",detailed:"detailed",diagnostic:"diagnostic",trace:"trace"},d={[u.off]:"Off",[u.toplevel]:"TopLevel",[u.basic]:"Basic",[u.detailed]:"Detailed",[u.diagnostic]:"Diagnostic",[u.trace]:"Trace"},f={execute:"execute",explain:"explain"},p={scan:"scan",script:"script",data:"data",query:"query",pg:"pg"},h={scan:"Scan",script:"YQL Script",data:"Data",query:"YQL - QueryService",pg:"PostgreSQL"},m=e=>{switch(e.replace(/\?$/,"")){case o.Bool:return"boolean";case o.Int8:case o.Int16:case o.Int32:case o.Int64:case o.Uint8:case o.Uint16:case o.Uint32:case o.Uint64:case o.Float:case o.Double:case o.Decimal:return"number";case o.String:case o.Utf8:case o.Json:case o.JsonDocument:case o.Yson:case o.Uuid:return"string";case o.Date:case o.Datetime:case o.Timestamp:case o.Interval:case o.TzDate:case o.TzDateTime:case o.TzTimestamp:case o.Date32:case o.Datetime64:case o.Timestamp64:case o.Interval64:case o.TzDate32:case o.TzDatetime64:case o.TzTimestamp64:return"date";default:return}},g=e=>{const{result:t,...n}=e;return{resultSets:null===t||void 0===t?void 0:t.map((e=>{const{rows:t,columns:n,truncated:r}=e;let o;return n&&(o=[]),t&&n&&(o=((e,t)=>e.map((e=>e.reduce(((e,n,r)=>{const{name:o}=t[r];return e[o]=n,e}),{}))))(t,n)),{columns:n,result:o,truncated:r}})),...n}},v=e=>Boolean(e&&!Array.isArray(e)&&"result"in e&&Array.isArray(e.result)&&"object"===typeof e.result[0]&&"rows"in e.result[0]&&"columns"in e.result[0]),y=e=>Boolean(!e||"object"!==typeof e||Array.isArray(e)||"result"in e&&!Array.isArray(e.result));function b(e){return Boolean(e&&"object"===typeof e&&"error"in e&&"issues"in e)}function w(e){return y(e)?{}:v(e)?g(e):e}const x=e=>(e=>Boolean(e&&"queries"in e))(e)?e.queries&&e.queries.length?{Plan:e.queries[0].Plan,tables:e.queries[0].tables,meta:e.meta,SimplifiedPlan:e.queries[0].SimplifiedPlan}:{meta:e.meta}:e,_=e=>Array.isArray(e)?e.map((e=>{const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=typeof e[n];null!==e[n]&&"object"===r||"boolean"===r||Array.isArray(e[n])?t[n]=JSON.stringify(e[n]):t[n]=e[n]}return t})):[],E=e=>"string"===typeof e||b(e)?e:(0,i.TX)(e)?e.message:(0,i.qP)(e)?"data"in e&&b(e.data)?e.data:e.statusText:void 0,S=e=>{var t;const n=E(e);return"string"===typeof n?n:null===n||void 0===n||null===(t=n.error)||void 0===t?void 0:t.message},k={queryMode:p.query,transactionMode:a.implicit,timeout:60,limitRows:1e4,statisticsMode:l.none,tracingLevel:u.off},C=r.z.nativeEnum(p),O=r.z.nativeEnum(a),N=r.z.nativeEnum(l),T=r.z.nativeEnum(u),A=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().or(r.z.undefined())),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e5).or(r.z.undefined())),queryMode:C,transactionMode:O,statisticsMode:N,tracingLevel:T}),I=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().optional().catch(k.timeout)),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e5).optional().catch(k.limitRows)),queryMode:C.catch(k.queryMode),transactionMode:O.catch(k.transactionMode),statisticsMode:N.catch(k.statisticsMode),tracingLevel:T.catch(k.tracingLevel)}).catch(k)},81288:(e,t,n)=>{"use strict";n.d(t,{F0:()=>i,Pq:()=>a,TX:()=>r,qP:()=>o,uP:()=>s});const r=e=>Boolean(e&&"object"===typeof e&&"message"in e&&"Network Error"===e.message),o=e=>Boolean(e&&"object"===typeof e&&"status"in e);function i(e){return Boolean(e&&"object"===typeof e&&"name"in e&&"AxiosError"===e.name)}function a(e){return Boolean(e&&"object"===typeof e&&"status"in e&&(403===e.status||401===e.status))}function s(e){return Boolean(a(e)&&401===e.status&&"data"in e&&e.data&&"object"===typeof e.data&&"authUrl"in e.data&&e.data.authUrl&&"string"===typeof e.data.authUrl)}},73891:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>c,Xo:()=>u,i6:()=>h,ee:()=>f,MC:()=>m,Jc:()=>g});var r=n(76086),o=n(56839),i=n(48372);const a=JSON.parse('{"daysHours":"{{days}}\xa0d\xa0{{hours}}\xa0h","hoursMin":"{{hours}}\xa0h\xa0{{minutes}}\xa0m","minSec":"{{minutes}}\xa0m\xa0{{seconds}}\xa0s","secMs":"{{seconds}}\xa0s\xa0{{ms}}\xa0ms","days":"{{days}}\xa0d","hours":"{{hours}}\xa0h","min":"{{minutes}}\xa0m","sec":"{{seconds}}\xa0s","ms":"{{ms}}\xa0ms"}'),s=JSON.parse('{"daysHours":"{{days}}\xa0\u0434\xa0{{hours}}\xa0\u0447","hoursMin":"{{hours}}\xa0\u0447\xa0{{minutes}}\xa0\u043c","minSec":"{{minutes}}\xa0\u043c\xa0{{seconds}}\xa0\u0441","secMs":"{{seconds}}\xa0\u0441\xa0{{ms}}\xa0\u043c\u0441","days":"{{days}}\xa0\u0434","hours":"{{hours}}\xa0\u0447","min":"{{minutes}}\xa0\u043c","sec":"{{seconds}}\xa0\u0441","ms":"{{ms}}\xa0\u043c\u0441"}'),l=(0,i.g4)("ydb-time-parsers",{ru:s,en:a}),c=(e,t=2)=>{const n=e%1e3;let o=Math.floor(e/1e3);const i=Math.floor(o/r.tt);o%=r.tt;const a=Math.floor(o/r.Jg);o%=r.Jg;const s=Math.floor(o/60);o%=60;const c=o,u={days:i,hours:a,minutes:s,seconds:c,ms:n};if(2===t){if(i>0)return l("daysHours",u);if(a>0)return l("hoursMin",u);if(s>0)return l("minSec",u);if(c>0)return l("secMs",u)}if(1===t){if(i>0)return l("days",u);if(a>0)return l("hours",u);if(s>0)return l("min",u);if(c>0)return l("sec",u)}return l("ms",u)},u=e=>l("ms",{ms:(0,o.ZV)(e)}),d=e=>(e.seconds?1e3*Number(e.seconds):0)+(e.nanos?e.nanos/r.zz:0),f=e=>"string"===typeof e?Date.parse(e):d(e);var p=n(41650);const h=e=>e?(e=>"string"===typeof e?1e3*parseInt(e,10):d(e))(e):0,m=e=>{if(!e)return 0;const t=Date.now()-f(e);return t<0?0:t},g=(e,t=0)=>e&&(0,p.kf)(e)?(0,o.CR)(Number(e)/1e3,t):0},41650:(e,t,n)=>{"use strict";function r(e){if(e)try{return JSON.parse(e)}catch{return e}}n.d(t,{O4:()=>a,en:()=>d,kf:()=>c,pY:()=>l,qF:()=>r,wb:()=>s,z0:()=>u});const o=[" B"," KB"," MB"," GB"," TB"," PB"," EB"],i=1e3;function a(e){const t=function(e){const t=Number(e);if(isNaN(t))return"";const n=t/i**2;return n<10?n.toFixed(2)+o[2]:n<100?n.toFixed(1)+o[2]:n.toFixed()+o[2]}(e);return`${t}${t?"ps":""}`}function s(e,t){const n=Number(e);if(isNaN(n))return"N/A";const r=n/1e9;return t?r.toFixed()+o[3]:r<10?r.toFixed(2)+o[3]:r<100?r.toFixed(1)+o[3]:r.toFixed()+o[3]}function l(e){const t=String(e);let n=t;for(let r=t.length;r<9;r++)n="0"+n;return n}function c(e){return"number"===typeof e?!isNaN(e):"string"===typeof e&&(!isNaN(Number(e))&&!isNaN(parseFloat(e)))}function u(e,t){return Number(e).toExponential(t)}const d="\xa0"},66592:(e,t,n)=>{"use strict";n.d(t,{OT:()=>a,_n:()=>s,lm:()=>i,s5:()=>o});var r=n(38596);const o=e=>e.split("").reduce(((e,t)=>{const n=(e<<5)-e+t.charCodeAt(0);return 0|n}),0),i=["#008000","#4169e1","#ffd700","#ff8c00","#808000","#e9967a","#ff1493","#00bfff","#da70d6","#8b4513","#b22222"],a="#3cb371",s=(e=[])=>(e=>{const t=Array.from(e.keys()).map((e=>({version:e,hash:o(e)}))),n=new Map;let r=i.length-1;return t.sort(((e,t)=>e.hash-t.hash)).forEach((t=>{if(/^(\w+-)?stable/.test(t.version)){r=(r+1)%i.length,n.set(t.version,i[r]);const a=Array.from(e.get(t.version)||[]).filter((e=>e!==t.version)).map((e=>({version:e,hash:o(e)}))),s=a.length;a.sort(((e,t)=>t.hash-e.hash)).forEach(((e,t)=>{const o=i[r],a=Math.max(100-t*(100/s),20),l=`${o}${Math.round(255*a/100).toString(16)}`;n.set(e.version,l)}))}else n.set(t.version,a)})),n})(((e,t=new Map)=>(e.forEach((e=>{var n;const o=(0,r.Q)(e),i=(0,r.U)(e);t.has(o)||t.set(o,new Set),null===(n=t.get(o))||void 0===n||n.add(i)})),t))(e))},38596:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o,U:()=>r});const r=e=>{let t=e;/\d{1,}-\d{1,}(-\d){0,}(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/.test(e)&&(t=t.replace(/(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/,""));return/\d{1,}-\d{1,}-\d{1,}-\d{1,}$/.test(e)&&(t=t.replace(/-\d{1,}$/,"")),t},o=e=>{const t=r(e);return/\d{1,}-\d{1,}-\d{1,}/.test(t)?t.replace(/-\d{1,}$/,""):t}},31560:(e,t)=>{"use strict";function n(e){function t(t,o,i,a){var s=o?n+t+e.e+o:n+t,l=s;if(i){var c=" "+l+e.m;for(var u in i)if(i.hasOwnProperty(u)){var d=i[u];!0===d?l+=c+u:d&&(l+=c+u+r+d)}}if(void 0!==a)for(var f=0,p=(a=Array.isArray(a)?a:[a]).length;f<p;f++){var h=a[f];if(h&&"string"==typeof h.valueOf())for(var m=h.valueOf().split(" "),g=0;g<m.length;g++){var v=m[g];v!==s&&(l+=" "+v)}}return l}var n=e.n||"",r=e.v||e.m;return function(e,n){return function(r,o,i){return"string"==typeof r?"string"==typeof o||Array.isArray(o)?t(e,r,void 0,o):t(e,r,o,i):t(e,n,r,o)}}}n({e:"-",m:"_"}),t.withNaming=n},82435:(e,t,n)=>{"use strict";e.exports=n(31560)},16332:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>A,Kq:()=>O,hS:()=>_,kz:()=>S,vt:()=>E});var r=n(59284),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},a=Symbol("NiceModalId"),s={},l=r.createContext(s),c=r.createContext(null),u={},d={},f=0,p=function(){throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},h=function(){return"_nice_modal_"+f++},m=function(e,t){var n,r,i;switch(void 0===e&&(e=s),t.type){case"nice-modal/show":var a=t.payload,l=a.modalId,c=a.args;return o(o({},e),((n={})[l]=o(o({},e[l]),{id:l,args:c,visible:!!d[l],delayVisible:!d[l]}),n));case"nice-modal/hide":return e[l=t.payload.modalId]?o(o({},e),((r={})[l]=o(o({},e[l]),{visible:!1}),r)):e;case"nice-modal/remove":l=t.payload.modalId;var u=o({},e);return delete u[l],u;case"nice-modal/set-flags":var f=t.payload,p=(l=f.modalId,f.flags);return o(o({},e),((i={})[l]=o(o({},e[l]),p),i));default:return e}};var g={},v={},y=function(e){return"string"===typeof e?e:(e[a]||(e[a]=h()),e[a])};function b(e,t){var n=y(e);if("string"===typeof e||u[n]||S(n,e),p(function(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}(n,t)),!g[n]){var r,o,i=new Promise((function(e,t){r=e,o=t}));g[n]={resolve:r,reject:o,promise:i}}return g[n].promise}function w(e){var t=y(e);if(p(function(e){return{type:"nice-modal/hide",payload:{modalId:e}}}(t)),delete g[t],!v[t]){var n,r,o=new Promise((function(e,t){n=e,r=t}));v[t]={resolve:n,reject:r,promise:o}}return v[t].promise}var x=function(e){var t=y(e);p(function(e){return{type:"nice-modal/remove",payload:{modalId:e}}}(t)),delete g[t],delete v[t]};function _(e,t){var n=(0,r.useContext)(l),o=(0,r.useContext)(c),i=null,a=e&&"string"!==typeof e;if(!(i=e?y(e):o))throw new Error("No modal id found in NiceModal.useModal.");var s=i;(0,r.useEffect)((function(){a&&!u[s]&&S(s,e,t)}),[a,s,e,t]);var d=n[s],f=(0,r.useCallback)((function(e){return b(s,e)}),[s]),p=(0,r.useCallback)((function(){return w(s)}),[s]),h=(0,r.useCallback)((function(){return x(s)}),[s]),m=(0,r.useCallback)((function(e){var t;null===(t=g[s])||void 0===t||t.resolve(e),delete g[s]}),[s]),_=(0,r.useCallback)((function(e){var t;null===(t=g[s])||void 0===t||t.reject(e),delete g[s]}),[s]),E=(0,r.useCallback)((function(e){var t;null===(t=v[s])||void 0===t||t.resolve(e),delete v[s]}),[s]);return(0,r.useMemo)((function(){return{id:s,args:null===d||void 0===d?void 0:d.args,visible:!!(null===d||void 0===d?void 0:d.visible),keepMounted:!!(null===d||void 0===d?void 0:d.keepMounted),show:f,hide:p,remove:h,resolve:m,reject:_,resolveHide:E}}),[s,null===d||void 0===d?void 0:d.args,null===d||void 0===d?void 0:d.visible,null===d||void 0===d?void 0:d.keepMounted,f,p,h,m,_,E])}var E=function(e){return function(t){var n,a=t.defaultVisible,s=t.keepMounted,u=t.id,f=i(t,["defaultVisible","keepMounted","id"]),h=_(u),m=h.args,g=h.show,v=(0,r.useContext)(l),y=!!v[u];(0,r.useEffect)((function(){return a&&g(),d[u]=!0,function(){delete d[u]}}),[u,g,a]),(0,r.useEffect)((function(){s&&p(function(e,t){return{type:"nice-modal/set-flags",payload:{modalId:e,flags:t}}}(u,{keepMounted:!0}))}),[u,s]);var b=null===(n=v[u])||void 0===n?void 0:n.delayVisible;return(0,r.useEffect)((function(){b&&g(m)}),[b,m,g]),y?r.createElement(c.Provider,{value:u},r.createElement(e,o({},f,m))):null}},S=function(e,t,n){u[e]?u[e].props=n:u[e]={comp:t,props:n}},k=function(){var e=(0,r.useContext)(l),t=Object.keys(e).filter((function(t){return!!e[t]}));t.forEach((function(e){u[e]||d[e]||console.warn("No modal found for id: "+e+". Please check the id or if it is registered or declared via JSX.")}));var n=t.filter((function(e){return u[e]})).map((function(e){return o({id:e},u[e])}));return r.createElement(r.Fragment,null,n.map((function(e){return r.createElement(e.comp,o({key:e.id,id:e.id},e.props))})))},C=function(e){var t=e.children,n=(0,r.useReducer)(m,s),o=n[0];return p=n[1],r.createElement(l.Provider,{value:o},t,r.createElement(k,null))},O=function(e){var t=e.children,n=e.dispatch,o=e.modals;return n&&o?(p=n,r.createElement(l.Provider,{value:o},t,r.createElement(k,null))):r.createElement(C,null,t)},N=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},T=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}};const A={Provider:O,ModalDef:function(e){var t=e.id,n=e.component;return(0,r.useEffect)((function(){return S(t,n),function(){!function(e){delete u[e]}(t)}}),[t,n]),null},ModalHolder:function(e){var t,n=e.modal,a=e.handler,s=void 0===a?{}:a,l=i(e,["modal","handler"]),c=(0,r.useMemo)((function(){return h()}),[]),d="string"===typeof n?null===(t=u[n])||void 0===t?void 0:t.comp:n;if(!s)throw new Error("No handler found in NiceModal.ModalHolder.");if(!d)throw new Error("No modal found for id: "+n+" in NiceModal.ModalHolder.");return s.show=(0,r.useCallback)((function(e){return b(c,e)}),[c]),s.hide=(0,r.useCallback)((function(){return w(c)}),[c]),r.createElement(d,o({id:c},l))},NiceModalContext:l,create:E,register:S,getModal:function(e){var t;return null===(t=u[e])||void 0===t?void 0:t.comp},show:b,hide:w,remove:x,useModal:_,reducer:m,antdModal:N,antdDrawer:T,muiDialog:function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},bootstrapDialog:function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}}}},22551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STRICT=void 0,t.STRICT=!0},95197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML5_INPUT_FORMATS=t.englishFormats=t.INVALID_DATE_STRING=t.DEFAULT_SYSTEM_DATE_FORMAT=void 0,t.DEFAULT_SYSTEM_DATE_FORMAT="YYYY-MM-DD",t.INVALID_DATE_STRING="Invalid Date",t.englishFormats={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t.HTML5_INPUT_FORMATS={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"}},72328:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(22551),t),o(n(95197),t),o(n(71165),t)},71165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UtcTimeZone=void 0,t.UtcTimeZone="UTC"},40453:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isDateTime=w,t.dateTime=x,t.dateTimeUtc=function(e){var t=e||{},n=t.input,r=t.format,o=t.lang,s=a.default.locale(o||l.settings.getLocale(),void 0,!0);return y({ts:b(n,i.UtcTimeZone,r,o,!0)[0],timeZone:i.UtcTimeZone,offset:0,locale:s})};var i=n(72328),a=o(n(38960)),s=n(62391),l=n(77966),c=n(84080),u=n(13064),d=n(29863),f=n(6597),p=n(16244),h=Symbol("isDateTime"),m=function(){function e(e){this._weekInfo=null,this[h]=!0,this._timestamp=e.ts,this._locale=e.locale,this._timeZone=e.timeZone,this._offset=e.offset,this._c=(0,u.tsToObject)(e.ts,e.offset),this._localeData=e.localeData,this._isValid=e.isValid}return e.isDateTime=function(e){return"object"===typeof e&&e&&h in e&&!0===e[h]||!1},e.prototype.format=function(e){return this.isValid()?void 0===e&&0===this._offset?this.format("YYYY-MM-DDTHH:mm:ss[Z]"):(0,d.formatDate)(this,e,this._localeData):this._localeData.invalidDate||i.INVALID_DATE_STRING},e.prototype.toISOString=function(e){return e?new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",this.format("Z")):this.toDate().toISOString()},e.prototype.utcOffset=function(e,t){var n=void 0!==e&&null!==e;if(!this.isValid())return n?this:NaN;if(n){var r=void 0;if("string"===typeof e){if(null===(r=(0,u.offsetFromString)(e)))return this}else r=Math.abs(e)<16?60*e:e;var o=this.valueOf();return t&&(o-=60*(r-this._offset)*1e3),y({ts:o,timeZone:i.UtcTimeZone,offset:r,locale:this._locale})}return this._offset},e.prototype.timeZone=function(e,t){var n;if(void 0===e)return"system"===this._timeZone?(0,c.guessUserTimeZone)():this._timeZone;if(!this.isValid())return this;var r=(0,c.normalizeTimeZone)(e,l.settings.getDefaultTimeZone()),o=this.valueOf(),i=(0,c.timeZoneOffset)(r,o);return t&&(o+=60*this._offset*1e3,o=(n=(0,c.fixOffset)(o,i,r))[0],i=n[1]),y({ts:o,timeZone:r,offset:i,locale:this._locale})},e.prototype.add=function(e,t){return this.addSubtract(e,t,1)},e.prototype.subtract=function(e,t){return this.addSubtract(e,t,-1)},e.prototype.startOf=function(e){if(!this.isValid())return this;var t={},n=(0,u.normalizeComponent)(e);switch(n){case"year":case"quarter":t.month="quarter"===n?this.month()-this.month()%3:0;case"month":case"weekNumber":case"isoWeekNumber":t.date="weekNumber"===n?this.date()-this.weekday():"isoWeekNumber"===n?this.date()-(this.isoWeekday()-1):1;case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":t.hour=0;case"hour":t.minute=0;case"minute":t.second=0;case"second":t.millisecond=0}return this.set(t)},e.prototype.endOf=function(e){var t;if(!this.isValid())return this;var n={},r=(0,u.normalizeComponent)(e);switch(r){case"year":case"quarter":n.month="quarter"===r?this.month()-this.month()%3+2:11;case"month":case"weekNumber":case"isoWeekNumber":n.date="weekNumber"===r?this.date()-this.weekday()+6:"isoWeekNumber"===r?this.date()-(this.isoWeekday()-1)+6:(0,u.daysInMonth)(this.year(),null!==(t=n.month)&&void 0!==t?t:this.month());case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":n.hour=23;case"hour":n.minute=59;case"minute":n.second=59;case"second":n.millisecond=999}return this.set(n)},e.prototype.local=function(e){return this.timeZone("system",e)},e.prototype.valueOf=function(){return this.isValid()?this._timestamp:NaN},e.prototype.isSame=function(e,t){var n=b(e,"system")[0];return!(!this.isValid()||isNaN(n))&&(!this.isBefore(n,t)&&!this.isAfter(n,t))},e.prototype.isBefore=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.endOf(r).valueOf())<n},e.prototype.isAfter=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.startOf(r).valueOf())>n},e.prototype.isValid=function(){return this._isValid},e.prototype.diff=function(t,n,r){if(!this.isValid())return NaN;var o=e.isDateTime(t)?t.timeZone(this._timeZone):y({ts:b(t,"system")[0],timeZone:this._timeZone,locale:this._locale,offset:this._offset});if(!o.isValid())return NaN;var i=(0,u.normalizeDurationUnit)(n||"millisecond"),a=6e4*(o.utcOffset()-this.utcOffset()),s=0;switch(i){case"years":s=(0,u.monthDiff)(this,o)/12;break;case"quarters":s=(0,u.monthDiff)(this,o)/3;break;case"months":s=(0,u.monthDiff)(this,o);break;case"weeks":s=(this.valueOf()-o.valueOf()-a)/6048e5;break;case"days":s=(this.valueOf()-o.valueOf()-a)/864e5;break;case"hours":s=(this.valueOf()-o.valueOf())/36e5;break;case"minutes":s=(this.valueOf()-o.valueOf())/6e4;break;case"seconds":s=(this.valueOf()-o.valueOf())/1e3;break;default:s=this.valueOf()-o.valueOf()}return r?s:Math.floor(Math.abs(s))*Math.sign(s)||0},e.prototype.fromNow=function(e){return this.from(x({timeZone:this._timeZone,lang:this._locale}),e)},e.prototype.from=function(t,n){if(!this.isValid())return this._localeData.invalidDate||i.INVALID_DATE_STRING;var r=e.isDateTime(t)?t.timeZone(this._timeZone):y({ts:b(t,"system",this._locale)[0],timeZone:this._timeZone,locale:this._locale,offset:this._offset});if(!r.isValid())return this._localeData.invalidDate||i.INVALID_DATE_STRING;var o=r,a=this,l=!1;a.isBefore(o)&&(o=this,a=r,l=!0);var c=a.month()-o.month()+12*(a.year()-o.year());o.add(c,"months").isAfter(a)&&c--;var u=a.valueOf()-o.add(c,"months").valueOf();return l&&(c=-c,u=-u),(0,p.fromTo)((0,s.duration)({months:c,milliseconds:u}),this._localeData.relativeTime,n)},e.prototype.locale=function(e){return e?this.isValid()?y({ts:this.valueOf(),timeZone:this._timeZone,offset:this._offset,locale:a.default.locale(e,void 0,!0)}):this:this._locale},e.prototype.toDate=function(){return new Date(this.valueOf())},e.prototype.unix=function(){return this.isValid()?Math.floor(this.valueOf()/1e3):NaN},e.prototype.utc=function(e){return this.timeZone(i.UtcTimeZone,e)},e.prototype.daysInMonth=function(){return this.isValid()?(0,u.daysInMonth)(this._c.year,this._c.month):NaN},e.prototype.set=function(e,t){var n,o;if(!this.isValid())return this;var a,s=this._c,l=(0,u.normalizeDateComponents)("object"===typeof e?e:((n={})[e]=t,n),u.normalizeComponent),d=void 0!==l.day||void 0!==l.weekNumber||void 0!==l.weekYear||void 0!==l.isoWeekNumber||void 0!==l.weekday||void 0!==l.isoWeekday||void 0!==l.isoWeekYear,f=void 0!==l.dayOfYear,p=void 0!==l.year,h=void 0!==l.month||void 0!==l.date;if(d&&(p||h||f))throw new Error("Can't mix weekYear/weekNumber units with year/month/day");if(f&&h)throw new Error("Can't mix day of year with month/day");if(d){var m=l.weekday,v=l.weekNumber,b=l.weekYear,w=l.isoWeekday,x=l.isoWeekNumber,_=l.isoWeekYear,E=l.day,S=void 0!==m||void 0!==v||void 0!==b;if(S&&(void 0!==w||void 0!==x||void 0!==_||void 0!==E))throw new Error("Can't mix local week with ISO week");var k=this.weekInfo();if(S){var C=g(this._localeData),O=C.minDaysInFirstWeek,N=C.startOfWeek,T={weekday:(null!==m&&void 0!==m?m:k.weekday)+1,weekNumber:null!==v&&void 0!==v?v:k.weekNumber,weekYear:null!==b&&void 0!==b?b:k.weekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,O,N))}else{T={weekday:null!==w&&void 0!==w?w:void 0===E?k.isoWeekday:E||7,weekNumber:null!==x&&void 0!==x?x:k.isoWeekNumber,weekYear:null!==_&&void 0!==_?_:k.isoWeekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(T,4,1))}}else f?a=r(r(r({},s),l),(0,u.uncomputeOrdinal)(r(r({ordinal:this.dayOfYear()},s),l))):(a=r(r({},s),l),void 0===l.date&&(a.date=Math.min((0,u.daysInMonth)(a.year,a.month),a.date)));var A=(0,u.objToTS)(a),I=this._offset;return this._timeZone===i.UtcTimeZone?A-=60*I*1e3:(A=(o=(0,c.fixOffset)(A,I,this._timeZone))[0],I=o[1]),y({ts:A,timeZone:this._timeZone,offset:I,locale:this._locale})},e.prototype.date=function(e){return"number"===typeof e?this.set("date",e):this.isValid()?this._c.date:NaN},e.prototype.month=function(e){return"number"===typeof e?this.set("month",e):this.isValid()?this._c.month:NaN},e.prototype.quarter=function(e){return"number"===typeof e?this.set("quarter",e):this.isValid()?Math.ceil((this._c.month+1)/3):NaN},e.prototype.year=function(e){return"number"===typeof e?this.set("year",e):this.isValid()?this._c.year:NaN},e.prototype.day=function(e){return"number"===typeof e?this.set("day",e):this.isValid()?this.weekInfo().day:NaN},e.prototype.isoWeekday=function(e){return"number"===typeof e?this.set("isoWeekday",e):this.isValid()?this.weekInfo().isoWeekday:NaN},e.prototype.hour=function(e){return"number"===typeof e?this.set("hour",e):this.isValid()?this._c.hour:NaN},e.prototype.minute=function(e){return"number"===typeof e?this.set("minute",e):this.isValid()?this._c.minute:NaN},e.prototype.second=function(e){return"number"===typeof e?this.set("second",e):this.isValid()?this._c.second:NaN},e.prototype.millisecond=function(e){return"number"===typeof e?this.set("millisecond",e):this.isValid()?this._c.millisecond:NaN},e.prototype.week=function(e){return"number"===typeof e?this.set("week",e):this.isValid()?this.weekInfo().weekNumber:NaN},e.prototype.weekYear=function(e){return"number"===typeof e?this.set("weekYear",e):this.isValid()?this.weekInfo().weekYear:NaN},e.prototype.weeksInYear=function(){var e=g(this._localeData),t=e.minDaysInFirstWeek,n=e.startOfWeek;return this.isValid()?(0,u.weeksInWeekYear)(this.year(),t,n):NaN},e.prototype.isoWeek=function(e){return"number"===typeof e?this.set("isoWeek",e):this.isValid()?this.weekInfo().isoWeekNumber:NaN},e.prototype.isoWeekYear=function(e){return"number"===typeof e?this.set("isoWeekYear",e):this.isValid()?this.weekInfo().isoWeekYear:NaN},e.prototype.isoWeeksInYear=function(){return this.isValid()?(0,u.weeksInWeekYear)(this.year(),4,1):NaN},e.prototype.weekday=function(e){return"number"===typeof e?this.set("weekday",e):this.isValid()?this.weekInfo().weekday:NaN},e.prototype.dayOfYear=function(e){return"number"===typeof e?this.set("dayOfYear",e):this.isValid()?(0,u.computeOrdinal)(this._c):NaN},e.prototype.toString=function(){return this.isValid()?this.toDate().toUTCString():this._localeData.invalidDate||i.INVALID_DATE_STRING},e.prototype.toJSON=function(){return this.isValid()?this.toISOString():null},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.isValid()?"DateTime { ts: ".concat(this.toISOString(),", zone: ").concat(this.timeZone(),", offset: ").concat(this.utcOffset(),", locale: ").concat(this.locale()," }"):"DateTime { ".concat(i.INVALID_DATE_STRING," }")},e.prototype.addSubtract=function(e,t,n){var o;if(!this.isValid())return this;var a=this._timeZone,l=this.valueOf(),d=this._offset,f=(0,s.duration)(e,t),p=(0,u.tsToObject)(l,d),h=v(f.months()+3*f.quarters()+12*f.years()),m=v(f.days()+7*f.weeks()),g=f.milliseconds()+1e3*f.seconds()+60*f.minutes()*1e3+60*f.hours()*60*1e3;if(h||m){var b=p.month+n*h,w=Math.min(p.date,(0,u.daysInMonth)(p.year,b))+n*m;l=(0,u.objToTS)(r(r({},p),{month:b,date:w})),a===i.UtcTimeZone?l-=60*d*1e3:(l=(o=(0,c.fixOffset)(l,d,a))[0],d=o[1])}return g&&(l+=n*g,a!==i.UtcTimeZone&&(d=(0,c.timeZoneOffset)(a,l))),y({ts:l,timeZone:a,offset:d,locale:this._locale})},e.prototype.weekInfo=function(){if(!this._weekInfo){var e=g(this._localeData),t=e.startOfWeek,n=e.minDaysInFirstWeek;this._weekInfo=(0,u.gregorianToWeek)(this._c,n,t)}return this._weekInfo},e}();function g(e){return{startOfWeek:e.weekStart||7,minDaysInFirstWeek:e.yearStart||1}}function v(e){var t=Math.sign(e);return Math.round(t*e)*t}function y(e){var t=e.ts,n=e.timeZone,r=e.offset,o=e.locale||"en",i=a.default.Ls[o],s=!isNaN(Number(new Date(t)));return new m({ts:t,timeZone:n,offset:r,locale:o,localeData:i,isValid:s})}function b(e,t,n,r,o){var s,u,d,p;if(void 0===o&&(o=!1),w(e)||"number"===typeof e||e instanceof Date||!isNaN(function(e){if(null===e||void 0===e)return NaN;if("string"===typeof e)return NaN;if("number"===typeof e||"bigint"===typeof e)return Number(e);if("object"===typeof e){var t=e.valueOf();if("number"===typeof t||"bigint"===typeof t)return Number(t)}return NaN}(e)))d=Number(e);else if(null===e||void 0===e)d=Date.now();else if(Array.isArray(e))d=(s=(0,f.getTimestampFromArray)(e,t))[0],p=s[1];else if("object"===typeof e)d=(u=(0,f.getTimestampFromObject)(e,t))[0],p=u[1];else if(o)d=a.default.utc(e,n,i.STRICT).valueOf();else{var h=a.default.locale(r||l.settings.getLocale(),void 0,!0);d=(n?(0,a.default)(e,n,h,i.STRICT):(0,a.default)(e,void 0,h)).valueOf()}return[d,p=null!==p&&void 0!==p?p:(0,c.timeZoneOffset)(t,d)]}function w(e){return m.isDateTime(e)}function x(e){var t=e||{},n=t.input,r=t.format,o=t.timeZone,i=t.lang,s=(0,c.normalizeTimeZone)(o,l.settings.getDefaultTimeZone()),u=a.default.locale(i||l.settings.getLocale(),void 0,!0),d=b(n,s,r,i);return y({ts:d[0],timeZone:s,offset:d[1],locale:u})}},29863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_DEFAULT=void 0,t.expandFormat=l,t.formatDate=function(e,n,r){void 0===n&&(n=t.FORMAT_DEFAULT);void 0===r&&(r=o.settings.getLocaleData());var i=l(n,r.formats);return i.replace(c,(function(t){return u[t]?u[t](e,r,i):d(t)}))};var r=n(72328),o=n(77966),i=n(84080);function a(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}var s=/(\[[^\]]*])|(LTS?|l{1,4}|L{1,4})/g;function l(e,t){var n;void 0===t&&(t=null!==(n=o.settings.getLocaleData().formats)&&void 0!==n?n:r.englishFormats);for(var i=e,l=0;l<5;l++){var c=i.replace(s,(function(e,n,o){if(o){var i=o.toUpperCase();return t[o]||r.englishFormats[o]||a(t[i]||r.englishFormats[i])}return n}));if(c===i)break;i=c}return i}t.FORMAT_DEFAULT="YYYY-MM-DDTHH:mm:ssZ";var c=/(\[[^[]*\])|([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|Y{4,6}|YY?|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,u={};function d(e){return e.replace(/^\[([\s\S)]*)\]$/g,"$1")}function f(e){return e%12||12}function p(e){return e||24}function h(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r}function m(e){var t=e.date,n=e.format,r=e.data,o=e.index,i=e.fullData,a=e.maxLength,s="";if(r&&(s="function"===typeof r?r(t,n):r[o]),!s&&i&&(s="function"===typeof i?i(t,n):i[o])&&(s=s.slice(0,a)),s)return s;throw new Error("Invalid locale data")}function g(e,t,n){void 0===n&&(n=!1);var r=String(Math.abs(e)),o="";return e<0?o="-":n&&(o="+"),"".concat(o).concat(r.padStart(t,"0"))}u.Y=function(e){var t=e.year();return t<=9999?g(t,4):"+"+t},u.YY=function(e){return g(e.year()%100,2)},u.YYYY=function(e){return g(e.year(),4)},u.YYYYY=function(e){return g(e.year(),5)},u.YYYYYY=function(e){return g(e.year(),6,!0)},u.M=function(e){return"".concat(e.month()+1)},u.MM=function(e){return g(e.month()+1,2)},u.Mo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.month()+1,"M")))},u.MMM=function(e,t,n){var r=e.month();return m({date:e,format:n,data:t.monthsShort,index:r,fullData:t.months,maxLength:3})},u.MMMM=function(e,t,n){var r=e.month();return m({date:e,format:n,data:t.months,index:r})},u.w=function(e){return"".concat(e.week())},u.ww=function(e){return g(e.week(),2)},u.wo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.week(),"w")))},u.W=function(e){return"".concat(e.isoWeek())},u.WW=function(e){return g(e.isoWeek(),2)},u.Wo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.isoWeek(),"W")))},u.d=function(e){return"".concat(e.day())},u.do=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.day(),"d")))},u.dd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdaysMin,index:r,fullData:t.weekdays,maxLength:2})},u.ddd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdaysShort,index:r,fullData:t.weekdays,maxLength:3})},u.dddd=function(e,t,n){var r=e.day();return m({date:e,format:n,data:t.weekdays,index:r})},u.e=function(e){return"".concat(e.weekday())},u.E=function(e){return"".concat(e.isoWeekday())},u.H=function(e){return"".concat(e.hour())},u.HH=function(e){return g(e.hour(),2)},u.h=function(e){return"".concat(f(e.hour()))},u.hh=function(e){return g(f(e.hour()),2)},u.k=function(e){return"".concat(p(e.hour()))},u.kk=function(e){return g(p(e.hour()),2)},u.hmm=function(e){return"".concat(f(e.hour())).concat(g(e.minute(),2))},u.hmmss=function(e){return"".concat(f(e.hour())).concat(g(e.minute(),2)).concat(g(e.second(),2))},u.Hmm=function(e){return"".concat(e.hour()).concat(g(e.minute(),2))},u.Hmmss=function(e){return"".concat(e.hour()).concat(g(e.minute(),2)).concat(g(e.second(),2))},u.a=function(e,t){return(t.meridiem||h)(e.hour(),e.minute(),!0)},u.A=function(e,t){return(t.meridiem||h)(e.hour(),e.minute(),!1)},u.Z=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(g(~~(t/60),2),":").concat(g(~~t%60,2))},u.ZZ=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(g(~~(t/60),2)).concat(g(~~t%60,2))},u.Q=function(e){return"".concat(e.quarter())},u.Qo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.quarter(),"Q")))},u.D=function(e){return"".concat(e.date())},u.DD=function(e){return g(e.date(),2)},u.Do=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.date(),"D")))},u.m=function(e){return"".concat(e.minute())},u.mm=function(e){return g(e.minute(),2)},u.s=function(e){return"".concat(e.second())},u.ss=function(e){return g(e.second(),2)},u.S=function(e){return"".concat(~~(e.millisecond()/100))},u.SS=function(e){return"".concat(~~(e.millisecond()/10))},u.SSS=function(e){return g(e.millisecond(),3)},u.SSSS=function(e){return g(10*e.millisecond(),4)},u.SSSSS=function(e){return g(100*e.millisecond(),5)},u.SSSSSS=function(e){return g(1e3*e.millisecond(),6)},u.SSSSSSS=function(e){return g(1e4*e.millisecond(),7)},u.SSSSSSSS=function(e){return g(1e5*e.millisecond(),8)},u.SSSSSSSSS=function(e){return g(1e6*e.millisecond(),9)},u.x=function(e){return"".concat(e.valueOf())},u.X=function(e){return"".concat(e.unix())},u.z=function(e){return(0,i.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"short"})},u.zz=function(e){return(0,i.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"long"})},u.DDD=function(e){return"".concat(e.dayOfYear())},u.DDDD=function(e){return g(e.dayOfYear(),3)},u.DDDo=function(e,t){var n;return d("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.dayOfYear(),"DDD")))},u.gg=function(e){return g(e.weekYear()%100,2)},u.gggg=function(e){return g(e.weekYear(),4)},u.ggggg=function(e){return g(e.weekYear(),5)},u.GG=function(e){return g(e.isoWeekYear()%100,2)},u.GGGG=function(e){return g(e.isoWeekYear(),4)},u.GGGGG=function(e){return g(e.isoWeekYear(),5)}},60166:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(40453),t),o(n(29863),t)},6597:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTimestampFromArray=function(e,t){if(0===e.length)return s({},t);var n=e.map(Number),r=n[0],o=n[1],i=void 0===o?0:o,a=n[2],l=void 0===a?1:a,c=n[3],u=void 0===c?0:c,d=n[4],f=void 0===d?0:d,p=n[5],h=void 0===p?0:p,m=n[6];return s({year:r,month:i,date:l,hour:u,minute:f,second:h,millisecond:void 0===m?0:m},t)},t.getTimestampFromObject=s;var r=n(84080),o=n(13064);var i={year:1,month:1,date:1,hour:0,minute:0,second:0,millisecond:0},a=["year","month","date","hour","minute","second","millisecond"];function s(e,t){var n,s=(0,o.normalizeDateComponents)(e,o.normalizeComponent);s.date=null!==(n=s.day)&&void 0!==n?n:s.date;for(var l=(0,o.tsToObject)(Date.now(),(0,r.timeZoneOffset)(t,Date.now())),c=!1,u=0,d=a;u<d.length;u++){var f=d[u];void 0!==s[f]?c=!0:s[f]=c?i[f]:l[f]}var p=(0,r.fixOffset)((0,o.objToTS)(s),(0,r.timeZoneOffset)(t,Date.now()),t);return[p[0],p[1]]}},16244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromTo=function(e,t,o){void 0===t&&(t=r);void 0===o&&(o=!1);for(var i,a=0,s="",l=0;l<n.length;l+=1){var c=n[l];c.d&&(a=e.as(c.d));var u=Math.round(Math.abs(a));if(i=a>0,u<=c.r){u<=1&&l>0&&(c=n[l-1]);var d=t[c.l];s="string"===typeof d?d.replace("%d","".concat(u)):d(u,o,c.l,i);break}}if(o)return s;var f=i?t.future:t.past;if("function"===typeof f)return f(s);return f.replace("%s",s)};var n=[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",r:1/0,d:"year"}],r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}},57855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLikeRelative=function(e){return e.startsWith("now")},t.parse=function(e,t){void 0===t&&(t={});if(!e)return;var n,o,a,s=t.roundUp,l=t.timeZone,c="";"now"===e.substring(0,3)?(n=(0,r.dateTime)({timeZone:l}),c=e.substring(3)):(-1===(o=e.indexOf("||"))?(a=e,c=""):(a=e.substring(0,o),c=e.substring(o+2)),n=(0,r.dateTime)({input:a,timeZone:l}));if(!n.isValid())return;if(!c.length)return n;return i(c,n,s)},t.parseDateMath=i;var r=n(60166),o=["y","Q","M","w","d","h","m","s"];function i(e,t,n){for(var r=e.replace(/\s/g,""),i=t,a=0,s=r.length;a<s;){var l=r.charAt(a++),c=void 0,u=void 0;if("/"===l)c=0;else if("+"===l)c=1;else{if("-"!==l)return;c=2}if(isNaN(parseInt(r.charAt(a),10)))u=1;else if(2===r.length)u=parseInt(r.charAt(a),10);else{for(var d=a;!isNaN(parseInt(r.charAt(a),10));)if(++a>10)return;u=parseInt(r.substring(d,a),10)}if(0===c&&1!==u)return;var f=r.charAt(a++);if(!o.includes(f))return;0===c?i=n?i.endOf(f):i.startOf(f):1===c?i=i.add(u,f):2===c&&(i=i.subtract(u,f))}return i}},49837:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(57855),t)},38960:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(88409)),i=r(n(54533)),a=r(n(20549)),s=r(n(77354)),l=n(72328);o.default.extend(i.default),o.default.extend(s.default),o.default.extend(a.default),o.default.Ls.en.formats=l.englishFormats,t.default=o.default},50743:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDuration=function(e,t,n){void 0===n&&(n={});var l={},c=null,u=(t&&"object"===typeof t?t:n).lang,d="string"===typeof t?t:"milliseconds";if((0,o.isDuration)(e))return e;if(isNaN(Number(e)))if("string"===typeof e&&(c=a.exec(e))){var f="-"===c[1]?-1:1,p=c[8]&&"-"===c[8][0]?-1:1;l=(0,i.removeZeros)({y:s(c[2])*f,M:s(c[3])*f,w:s(c[4])*f,d:s(c[5])*f,h:s(c[6])*f,m:s(c[7])*f,s:s(c[8])*f,ms:Math.floor(1e3*s(c[9]?"0.".concat(c[9]):c[9]))*p*f})}else{if(!e||"object"!==typeof e)throw new Error("Unknown duration: ".concat(e));l=e}else l[d]=Number(e);return new o.DurationImpl({values:(0,r.normalizeDateComponents)(l,r.normalizeDurationUnit),locale:u})};var r=n(11345),o=n(57491),i=n(49860),a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]+)?)?S)?)?$/;function s(e){var t=e?parseFloat(e.replace(",",".")):0;return isNaN(t)?0:t}},57491:function(e,t,n){"use strict";var r,o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.DurationImpl=void 0,t.isDuration=function(e){return p.isDuration(e)};var a=n(16244),s=n(77966),l=n(13064),c=n(16572),u=n(50743),d=n(49860),f=Symbol("isDuration"),p=function(){function e(e){this[r]=!0,this._values=e.values,this._locale=e.locale||s.settings.getLocale(),this._isValid=e.isValid||!0}return e.isDuration=function(e){return"object"===typeof e&&e&&f in e&&!0===e[f]||!1},e.prototype.get=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e);return this._values[t]||0},e.prototype.set=function(t){return this.isValid()?new e({values:o(o({},this._values),(0,l.normalizeDateComponents)(t,l.normalizeDurationUnit)),locale:this._locale}):this},e.prototype.as=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e),n=this.days()+7*this.weeks()+this.hours()/24+this.minutes()/1440+this.seconds()/86400,r=this.months()+3*this.quarters()+12*this.years(),o=this.milliseconds();if("months"===t||"quarters"===t||"years"===t){var i=r+function(e){return 4800*e/146097}(n+o/864e5);switch(t){case"months":return i;case"quarters":return i/3;case"years":return i/12}}var a=n+function(e){return 146097*e/4800}(r);switch(t){case"weeks":return a/7+o/6048e5;case"days":return a+o/864e5;case"hours":return 24*a+o/36e5;case"minutes":return 1440*a+o/6e4;case"seconds":return 86400*a+o/1e3;case"milliseconds":return Math.floor(864e5*a)+o;default:throw new Error("Unknown unit "+t)}},e.prototype.milliseconds=function(){return this.isValid()?this._values.milliseconds||0:NaN},e.prototype.asMilliseconds=function(){return this.as("milliseconds")},e.prototype.seconds=function(){return this.isValid()?this._values.seconds||0:NaN},e.prototype.asSeconds=function(){return this.as("seconds")},e.prototype.minutes=function(){return this.isValid()?this._values.minutes||0:NaN},e.prototype.asMinutes=function(){return this.as("minutes")},e.prototype.hours=function(){return this.isValid()?this._values.hours||0:NaN},e.prototype.asHours=function(){return this.as("hours")},e.prototype.days=function(){return this.isValid()?this._values.days||0:NaN},e.prototype.asDays=function(){return this.as("days")},e.prototype.weeks=function(){return this.isValid()?this._values.weeks||0:NaN},e.prototype.asWeeks=function(){return this.as("weeks")},e.prototype.months=function(){return this.isValid()?this._values.months||0:NaN},e.prototype.asMonths=function(){return this.as("months")},e.prototype.quarters=function(){return this.isValid()?this._values.quarters||0:NaN},e.prototype.asQuarters=function(){return this.as("quarters")},e.prototype.years=function(){return this.isValid()?this._values.years||0:NaN},e.prototype.asYears=function(){return this.as("years")},e.prototype.add=function(t,n){if(!this.isValid())return this;for(var r=this.toObject(),o=(0,u.createDuration)(t,n).toObject(),i=0,a=Object.entries(o);i<a.length;i++){var s=a[i],l=s[0],c=s[1],d=l;r[d]=(r[d]||0)+c}return new e({values:r,locale:this._locale})},e.prototype.subtract=function(e,t){var n=(0,u.createDuration)(e,t).negate();return this.add(n)},e.prototype.negate=function(){for(var t={},n=0,r=Object.entries(this._values);n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a?-a:0}return new e({values:t,locale:this._locale})},e.prototype.normalize=function(t){return this.isValid()?new e({values:(0,d.normalizeValues)(this._values,t),locale:this._locale}):this},e.prototype.shiftTo=function(t,n){if(!this.isValid())return this;var r=t.map((function(e){return(0,l.normalizeDurationUnit)(e)}));return new e({values:(0,d.shiftTo)(this._values,r,n),locale:this._locale})},e.prototype.rescale=function(t){return this.isValid()?new e({values:(0,d.rescale)(this._values,t),locale:this._locale}):this},e.prototype.toISOString=function(){if(!this.isValid())return"Invalid Duration";var e="P";return 0!==this.years()&&(e+=this.years()+"Y"),0===this.months()&&0===this.quarters()||(e+=this.months()+3*this.quarters()+"M"),0!==this.weeks()&&(e+=this.weeks()+"W"),0!==this.days()&&(e+=this.days()+"D"),0===this.hours()&&0===this.minutes()&&0===this.seconds()&&0===this.milliseconds()||(e+="T"),0!==this.hours()&&(e+=this.hours()+"H"),0!==this.minutes()&&(e+=this.minutes()+"M"),0===this.seconds()&&0===this.milliseconds()||(e+=Math.round(1e3*this.seconds()+this.milliseconds())/1e3+"S"),"P"===e&&(e+="T0S"),e},e.prototype.toJSON=function(){return this.toISOString()},e.prototype.toObject=function(){return this.isValid()?o({},this._values):{}},e.prototype.toString=function(){return this.toISOString()},e.prototype.valueOf=function(){return this.asMilliseconds()},e.prototype[(r=f,Symbol.for("nodejs.util.inspect.custom"))]=function(){return this.isValid()?"Duration { values: ".concat(JSON.stringify(this._values)," }"):"Duration { Invalid Duration }"},e.prototype.humanize=function(e){if(!this.isValid())return"Invalid Duration";var t=(0,c.getLocaleData)(this._locale);return(0,a.fromTo)(this,t.relativeTime,!e)},e.prototype.humanizeIntl=function(e){var t=this;if(void 0===e&&(e={}),!this.isValid())return"Invalid Duration";var n=d.orderedUnits.map((function(n){var r=t._values[n];return void 0===r?null:(0,c.getNumberFormat)(t._locale,o(o({style:"unit",unitDisplay:"long"},e),{unit:n.slice(0,-1)})).format(r)})).filter(Boolean);return(0,c.getListFormat)(this._locale,{type:"conjunction",style:e.listStyle||"narrow"}).format(n)},e.prototype.format=function(e,t){if(void 0===t&&(t={}),!this.isValid())return"Invalid Duration";for(var n,r=/(\[[^[]*\])|y+|M+|w+|d+|h+|m+|s+|S+|./g,a=[],s=[];n=r.exec(e);){var l=n[0],u=n[1],d=h(l[0]);d?(a.push({literal:!1,padTo:l.length,unit:d}),s.push(d)):u?a.push({literal:!0,value:u.slice(1,-1)}):a.push({literal:!0,value:l})}for(var f=this.shiftTo(s),p="",m=t.floor,g=void 0===m||m,v=t.forceSimple,y=i(t,["floor","forceSimple"]),b=!v||Object.keys(y).length>0,w=0,x=a;w<x.length;w++){var _=x[w];if(_.literal)p+=_.value;else{var E=f.get(_.unit);if(b){var S=(0,c.getNumberFormat)(this._locale,o(o({useGrouping:!1},y),{minimumIntegerDigits:_.padTo})),k=g?Math.floor(E):E;p+=S.format(k)}else{k=g?Math.floor(E):Math.round(1e3*E)/1e3;p+="".concat(k<0?"-":"").concat(Math.abs(k).toString().padStart(_.padTo,"0"))}}}return p},e.prototype.isValid=function(){return this._isValid},e.prototype.locale=function(t){return t?new e({values:this._values,locale:t}):this._locale},e}();function h(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}}t.DurationImpl=p},62391:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDuration=t.duration=void 0;var r=n(50743);Object.defineProperty(t,"duration",{enumerable:!0,get:function(){return r.createDuration}});var o=n(57491);Object.defineProperty(t,"isDuration",{enumerable:!0,get:function(){return o.isDuration}})},49860:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.orderedUnits=void 0,t.normalizeValues=s,t.removeZeros=l,t.shiftTo=c,t.rescale=function(e,t){return l(c(s(e),["years","months","weeks","days","hours","minutes","seconds","milliseconds"],t))};var r=365.2425,o=30.436875,i=n({years:{quarters:4,months:12,weeks:52.1775,days:r,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:o,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},{weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}});t.orderedUnits=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];var a=t.orderedUnits.slice(0).reverse();function s(e,r){for(var o,s,l,c,u,d,f,p=(void 0===r?{}:r).roundUp,h=n({},e),m=function(e){for(var t,n=null!==(t=e.milliseconds)&&void 0!==t?t:0,r=0,o=a.slice(1);r<o.length;r++){var s=o[r],l=e[s];l&&(n+=l*i[s].milliseconds)}return n}(e)<0?-1:1,g=null,v=0;v<a.length;v++){if(void 0!==h[x=a[v]]&&null!==h[x])if(g){var y=(null!==(o=h[g])&&void 0!==o?o:0)*m,b=i[x][g],w=Math.floor(y/b);h[x]=(null!==(s=h[x])&&void 0!==s?s:0)+w*m,h[g]=(null!==(l=h[g])&&void 0!==l?l:0)-w*b*m,g=x}else g=x}g=null;for(v=0;v<t.orderedUnits.length;v++){var x;if(void 0!==h[x=t.orderedUnits[v]]&&null!==h[x])if(g){var _=(null!==(c=h[g])&&void 0!==c?c:0)%1;h[g]=(null!==(u=h[g])&&void 0!==u?u:0)-_,h[x]=(null!==(d=h[x])&&void 0!==d?d:0)+_*i[g][x],g=x}else g=x}return p&&g&&h[g]&&(h[g]=Math.round(null!==(f=h[g])&&void 0!==f?f:0)),h}function l(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],a=o[1];0!==a&&(t[i]=a)}return t}function c(e,n,r){var o;if(!n.length)return e;for(var a,l={},c={},u=0,d=t.orderedUnits;u<d.length;u++){var f=d[u];if(n.includes(f)){a=f;for(var p=0,h=0,m=Object.keys(c);h<m.length;h++){var g=m[h];p+=i[g][f]*c[g],c[g]=0}(E=e[f])&&(p+=E);var v=Math.trunc(p);l[f]=v,c[f]=(1e3*p-1e3*v)/1e3}else e[f]&&(c[f]=e[f])}if(a){for(var y=0,b=Object.entries(c);y<b.length;y++){var w=b[y],x=w[0],_=w[1];0!==_&&(l[a]=(null!==(o=l[a])&&void 0!==o?o:0)+(x===a?_:_/i[a][x]))}var E;(E=l[a])&&(l[a]=Math.round(1e3*E)/1e3)}return s(l,r)}},14750:(e,t,n)=>{"use strict";t.p0=t.Pn=t.eP=t.bQ=t.cS=t.KQ=void 0,n(77966).settings;var r=n(60166);Object.defineProperty(t,"KQ",{enumerable:!0,get:function(){return r.dateTime}}),Object.defineProperty(t,"cS",{enumerable:!0,get:function(){return r.expandFormat}});var o=n(49837);var i=n(43160);Object.defineProperty(t,"bQ",{enumerable:!0,get:function(){return i.dateTimeParse}}),Object.defineProperty(t,"eP",{enumerable:!0,get:function(){return i.isLikeRelative}});var a=n(84080);Object.defineProperty(t,"Pn",{enumerable:!0,get:function(){return a.getTimeZonesList}});var s=n(72328);var l=n(62391);Object.defineProperty(t,"p0",{enumerable:!0,get:function(){return l.duration}})},43160:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(16445),t)},16445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimeParse=void 0,t.isLikeRelative=i,t.isValid=function(e){try{if((0,r.isDateTime)(e))return e.isValid();var n=(0,t.dateTimeParse)(e,{allowRelative:!0});return!!n&&n.isValid()}catch(o){return!1}};var r=n(60166),o=n(77966);function i(e){return"string"===typeof e&&o.settings.getRelativeParser().isLikeRelative(e)}t.dateTimeParse=function(e,t){if(void 0!==e){var n=function(e,t){var n;if(i(e)){if(null!==(n=null===t||void 0===t?void 0:t.allowRelative)&&void 0!==n&&!n)return;return o.settings.getRelativeParser().parse(e,t)}var a=t||{},s=a.format,l=a.lang;try{var c=(0,r.dateTime)({input:e,format:s,lang:l,timeZone:null===t||void 0===t?void 0:t.timeZone});return c.isValid()?c:void 0}catch(u){return}}(e,t);return n}}},77966:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(32213),t)},43377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localeLoaders=void 0,t.localeLoaders={af:function(){return n.e(9222).then(n.t.bind(n,89222,23))},am:function(){return n.e(9243).then(n.t.bind(n,59243,23))},"ar-dz":function(){return n.e(6881).then(n.t.bind(n,6881,23))},"ar-iq":function(){return n.e(5685).then(n.t.bind(n,45685,23))},"ar-kw":function(){return n.e(8081).then(n.t.bind(n,88081,23))},"ar-ly":function(){return n.e(8256).then(n.t.bind(n,28256,23))},"ar-ma":function(){return n.e(9697).then(n.t.bind(n,89697,23))},"ar-sa":function(){return n.e(1187).then(n.t.bind(n,1187,23))},"ar-tn":function(){return n.e(4349).then(n.t.bind(n,24349,23))},ar:function(){return n.e(8890).then(n.t.bind(n,58890,23))},az:function(){return n.e(3410).then(n.t.bind(n,3410,23))},be:function(){return n.e(7748).then(n.t.bind(n,97748,23))},bg:function(){return n.e(5950).then(n.t.bind(n,85950,23))},bi:function(){return n.e(1088).then(n.t.bind(n,61088,23))},bm:function(){return n.e(7420).then(n.t.bind(n,97420,23))},"bn-bd":function(){return n.e(2568).then(n.t.bind(n,72568,23))},bn:function(){return n.e(1237).then(n.t.bind(n,1237,23))},bo:function(){return n.e(9174).then(n.t.bind(n,9174,23))},br:function(){return n.e(513).then(n.t.bind(n,90513,23))},bs:function(){return n.e(2626).then(n.t.bind(n,22626,23))},ca:function(){return n.e(3761).then(n.t.bind(n,43761,23))},cs:function(){return n.e(6047).then(n.t.bind(n,46047,23))},cv:function(){return n.e(7348).then(n.t.bind(n,67348,23))},cy:function(){return n.e(8633).then(n.t.bind(n,48633,23))},da:function(){return n.e(5418).then(n.t.bind(n,15418,23))},"de-at":function(){return n.e(8534).then(n.t.bind(n,8534,23))},"de-ch":function(){return n.e(1696).then(n.t.bind(n,41696,23))},de:function(){return n.e(7878).then(n.t.bind(n,47878,23))},dv:function(){return n.e(9523).then(n.t.bind(n,49523,23))},el:function(){return n.e(3952).then(n.t.bind(n,3952,23))},"en-au":function(){return n.e(6625).then(n.t.bind(n,26625,23))},"en-ca":function(){return n.e(5027).then(n.t.bind(n,85027,23))},"en-gb":function(){return n.e(290).then(n.t.bind(n,90290,23))},"en-ie":function(){return n.e(5401).then(n.t.bind(n,65401,23))},"en-il":function(){return n.e(6786).then(n.t.bind(n,36786,23))},"en-in":function(){return n.e(1496).then(n.t.bind(n,51496,23))},"en-nz":function(){return n.e(1627).then(n.t.bind(n,51627,23))},"en-sg":function(){return n.e(3769).then(n.t.bind(n,63769,23))},"en-tt":function(){return n.e(1747).then(n.t.bind(n,81747,23))},en:function(){return n.e(730).then(n.t.bind(n,40730,23))},eo:function(){return n.e(9433).then(n.t.bind(n,79433,23))},"es-do":function(){return n.e(523).then(n.t.bind(n,30523,23))},"es-mx":function(){return n.e(8119).then(n.t.bind(n,88119,23))},"es-pr":function(){return n.e(4324).then(n.t.bind(n,74324,23))},"es-us":function(){return n.e(4730).then(n.t.bind(n,4730,23))},es:function(){return n.e(9725).then(n.t.bind(n,49725,23))},et:function(){return n.e(3672).then(n.t.bind(n,53672,23))},eu:function(){return n.e(5759).then(n.t.bind(n,45759,23))},fa:function(){return n.e(60).then(n.t.bind(n,40060,23))},fi:function(){return n.e(628).then(n.t.bind(n,90628,23))},fo:function(){return n.e(6114).then(n.t.bind(n,86114,23))},"fr-ca":function(){return n.e(7962).then(n.t.bind(n,87962,23))},"fr-ch":function(){return n.e(6833).then(n.t.bind(n,26833,23))},fr:function(){return n.e(7605).then(n.t.bind(n,67605,23))},fy:function(){return n.e(5924).then(n.t.bind(n,95924,23))},ga:function(){return n.e(8517).then(n.t.bind(n,78517,23))},gd:function(){return n.e(9882).then(n.t.bind(n,59882,23))},gl:function(){return n.e(2466).then(n.t.bind(n,92466,23))},"gom-latn":function(){return n.e(7548).then(n.t.bind(n,7548,23))},gu:function(){return n.e(3033).then(n.t.bind(n,93033,23))},he:function(){return n.e(8706).then(n.t.bind(n,88706,23))},hi:function(){return n.e(9606).then(n.t.bind(n,9606,23))},hr:function(){return n.e(9707).then(n.t.bind(n,79707,23))},ht:function(){return n.e(7697).then(n.t.bind(n,77697,23))},hu:function(){return n.e(7970).then(n.t.bind(n,57970,23))},"hy-am":function(){return n.e(1917).then(n.t.bind(n,61917,23))},id:function(){return n.e(6324).then(n.t.bind(n,26324,23))},is:function(){return n.e(4401).then(n.t.bind(n,6782,23))},"it-ch":function(){return n.e(3902).then(n.t.bind(n,3902,23))},it:function(){return n.e(7380).then(n.t.bind(n,37380,23))},ja:function(){return n.e(3008).then(n.t.bind(n,63008,23))},jv:function(){return n.e(2053).then(n.t.bind(n,82053,23))},ka:function(){return n.e(1865).then(n.t.bind(n,61865,23))},kk:function(){return n.e(47).then(n.t.bind(n,40047,23))},km:function(){return n.e(6541).then(n.t.bind(n,46541,23))},kn:function(){return n.e(1956).then(n.t.bind(n,21956,23))},ko:function(){return n.e(7579).then(n.t.bind(n,37579,23))},ku:function(){return n.e(6405).then(n.t.bind(n,56405,23))},ky:function(){return n.e(9025).then(n.t.bind(n,89025,23))},lb:function(){return n.e(3679).then(n.t.bind(n,86060,23))},lo:function(){return n.e(4652).then(n.t.bind(n,84652,23))},lt:function(){return n.e(5853).then(n.t.bind(n,55853,23))},lv:function(){return n.e(5819).then(n.t.bind(n,95819,23))},me:function(){return n.e(1975).then(n.t.bind(n,31975,23))},mi:function(){return n.e(9067).then(n.t.bind(n,49067,23))},mk:function(){return n.e(5453).then(n.t.bind(n,25453,23))},ml:function(){return n.e(6664).then(n.t.bind(n,16664,23))},mn:function(){return n.e(5634).then(n.t.bind(n,5634,23))},mr:function(){return n.e(6358).then(n.t.bind(n,26358,23))},"ms-my":function(){return n.e(7240).then(n.t.bind(n,17240,23))},ms:function(){return n.e(949).then(n.t.bind(n,60949,23))},mt:function(){return n.e(4096).then(n.t.bind(n,44096,23))},my:function(){return n.e(811).then(n.t.bind(n,30811,23))},nb:function(){return n.e(7357).then(n.t.bind(n,67357,23))},ne:function(){return n.e(8008).then(n.t.bind(n,48008,23))},"nl-be":function(){return n.e(5161).then(n.t.bind(n,35161,23))},nl:function(){return n.e(3879).then(n.t.bind(n,73879,23))},nn:function(){return n.e(4441).then(n.t.bind(n,4441,23))},"oc-lnc":function(){return n.e(3321).then(n.t.bind(n,23321,23))},"pa-in":function(){return n.e(3756).then(n.t.bind(n,93756,23))},pl:function(){return n.e(3121).then(n.t.bind(n,3121,23))},"pt-br":function(){return n.e(9922).then(n.t.bind(n,89922,23))},pt:function(){return n.e(4169).then(n.t.bind(n,34169,23))},rn:function(){return n.e(8053).then(n.t.bind(n,78053,23))},ro:function(){return n.e(310).then(n.t.bind(n,10310,23))},ru:function(){return n.e(4180).then(n.t.bind(n,4180,23))},rw:function(){return n.e(2286).then(n.t.bind(n,32286,23))},sd:function(){return n.e(1486).then(n.t.bind(n,71486,23))},se:function(){return n.e(1053).then(n.t.bind(n,21053,23))},si:function(){return n.e(921).then(n.t.bind(n,80921,23))},sk:function(){return n.e(5047).then(n.t.bind(n,85047,23))},sl:function(){return n.e(9801).then(n.t.bind(n,52182,23))},sq:function(){return n.e(3521).then(n.t.bind(n,33521,23))},"sr-cyrl":function(){return n.e(8103).then(n.t.bind(n,38103,23))},sr:function(){return n.e(8840).then(n.t.bind(n,58840,23))},ss:function(){return n.e(5647).then(n.t.bind(n,5647,23))},"sv-fi":function(){return n.e(8704).then(n.t.bind(n,8704,23))},sv:function(){return n.e(9220).then(n.t.bind(n,46839,23))},sw:function(){return n.e(4891).then(n.t.bind(n,74891,23))},ta:function(){return n.e(9466).then(n.t.bind(n,99466,23))},te:function(){return n.e(3510).then(n.t.bind(n,83510,23))},tet:function(){return n.e(2776).then(n.t.bind(n,12776,23))},tg:function(){return n.e(1756).then(n.t.bind(n,71756,23))},th:function(){return n.e(5953).then(n.t.bind(n,85953,23))},tk:function(){return n.e(5816).then(n.t.bind(n,55816,23))},"tl-ph":function(){return n.e(2166).then(n.t.bind(n,32166,23))},tlh:function(){return n.e(4601).then(n.t.bind(n,44601,23))},tr:function(){return n.e(2775).then(n.t.bind(n,72775,23))},tzl:function(){return n.e(5579).then(n.t.bind(n,65579,23))},"tzm-latn":function(){return n.e(108).then(n.t.bind(n,80108,23))},tzm:function(){return n.e(9908).then(n.t.bind(n,59908,23))},"ug-cn":function(){return n.e(4847).then(n.t.bind(n,34847,23))},uk:function(){return n.e(6261).then(n.t.bind(n,6261,23))},ur:function(){return n.e(9518).then(n.t.bind(n,9518,23))},"uz-latn":function(){return n.e(2161).then(n.t.bind(n,34542,23))},uz:function(){return n.e(710).then(n.t.bind(n,40710,23))},vi:function(){return n.e(2612).then(n.t.bind(n,42612,23))},"x-pseudo":function(){return n.e(2984).then(n.t.bind(n,92984,23))},yo:function(){return n.e(3333).then(n.t.bind(n,83333,23))},"zh-cn":function(){return n.e(1657).then(n.t.bind(n,21657,23))},"zh-hk":function(){return n.e(3653).then(n.t.bind(n,63653,23))},"zh-tw":function(){return n.e(221).then(n.t.bind(n,60221,23))},zh:function(){return n.e(6879).then(n.t.bind(n,76879,23))}}},32213:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.settings=void 0;var a=i(n(58671)),s=n(49837),l=i(n(38960)),c=n(84080),u=n(43377),d=function(){function e(){this.loadedLocales=new Set(["en"]),this.defaultLocale="en",this.defaultTimeZone="system",this.parser={parse:s.parse,isLikeRelative:s.isLikeRelative},this.updateLocale({weekStart:1,yearStart:1})}return e.prototype.loadLocale=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:if(this.isLocaleLoaded(e))return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),t=e.toLocaleLowerCase(),[4,(0,u.localeLoaders[t])()];case 2:return n.sent(),this.loadedLocales.add(t),[3,4];case 3:throw n.sent(),new Error("Can't load locale \"".concat(e,'". Either it does not exist, or there was a connection problem. Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale'));case 4:return[2]}}))}))},e.prototype.getLocale=function(){return this.defaultLocale},e.prototype.getLocaleData=function(){var e=l.default.Ls,t=e[this.getLocale()];if(t||(t=e.en),!t)throw new Error("There is something really wrong happening. Locale data is absent.");return(0,a.default)(t)},e.prototype.setLocale=function(e){if(!this.isLocaleLoaded(e))throw new Error('Seems you are trying to set an unloaded locale "'.concat(e,"\". Load it first by calling settings.loadLocale('").concat(e,"'). Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale"));this.defaultLocale=e},e.prototype.updateLocale=function(e){var t=this.getLocale();l.default.updateLocale(t,e)},e.prototype.setDefaultTimeZone=function(e){this.defaultTimeZone=(0,c.normalizeTimeZone)(e,"system")},e.prototype.getDefaultTimeZone=function(){return this.defaultTimeZone},e.prototype.setRelativeParser=function(e){this.parser=e},e.prototype.getRelativeParser=function(){return this.parser},e.prototype.isLocaleLoaded=function(e){var t=e.toLocaleLowerCase();return this.loadedLocales.has(t)},e}();t.settings=new d},84080:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(71765),t)},71765:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getTimeZonesList=t.guessUserTimeZone=void 0,t.isValidTimeZone=s,t.timeZoneOffset=c,t.normalizeTimeZone=u,t.fixOffset=function(e,t,n){var r=e-60*t*1e3,o=c(n,r);if(t===o)return[r,t];var i=c(n,r-=60*(o-t)*1e3);if(o===i)return[r,o];return[e-60*Math.min(o,i)*1e3,Math.min(o,i)]},t.parseZoneInfo=function(e){var t=e.timeZone,n=e.ts,o=e.locale,i=e.offsetFormat,a=new Date(n),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};t&&(s.timeZone=u(t,t));var l=r({timeZoneName:i},s),c=new Intl.DateTimeFormat(o,l).formatToParts(a).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:""};var o=n(72328),i=n(16572);t.guessUserTimeZone=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone};t.getTimeZonesList=function(){var e;return(null===(e=Intl.supportedValuesOf)||void 0===e?void 0:e.call(Intl,"timeZone"))||[]};var a={};function s(e){if(!e)return!1;if(Object.prototype.hasOwnProperty.call(a,e))return a[e];try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),a[e]=!0,!0}catch(t){return a[e]=!1,!1}}var l=["year","month","day","hour","minute","second","era"];function c(e,t){var n=new Date(t);if(isNaN(n.valueOf())||"system"!==e&&!s(e))return NaN;if("system"===e)return-n.getTimezoneOffset()||0;for(var r,o={year:1,month:1,day:1,hour:0,minute:0,second:0,era:"AD"},a=0,c=(0,i.getDateTimeFormat)("en-US",{hour12:!1,timeZone:"system"===e?void 0:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}).formatToParts(n);a<c.length;a++){var u=c[a],d=u.type,f=u.value;"era"===d?o.era=f:(r=d,l.includes(r)&&(o[d]=parseInt(f,10)))}var p="BC"===o.era?1-Math.abs(o.year):o.year,h=o.month-1,m=24===o.hour?0:o.hour,g=Date.UTC(p,h,o.day,m,o.minute,o.second,0);if(p<100&&p>=0){var v=new Date(g);v.setUTCFullYear(p,h,o.day),g=v.valueOf()}var y=n.valueOf(),b=y%1e3;return(g-(y-=b>=0?b:1e3+b))/6e4}function u(e,t){if(void 0===e||null===e)return t;var n=e.toLowerCase();if("utc"===n||"gmt"===n)return o.UtcTimeZone;if("system"===n)return"system";if("default"===n)return t;if(s(e))return e;throw new Error("InvalidZone: ".concat(e))}},13064:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(11345),t)},16572:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDateTimeFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=i.get(n);r||(r=new Intl.DateTimeFormat(e,t),i.set(n,r));return r},t.getListFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=a.get(n);r||(r=new Intl.ListFormat(e,t),a.set(n,r));return r},t.getNumberFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=s.get(n);r||(r=new Intl.NumberFormat(e,t),s.set(n,r));return r},t.getLocaleData=function(e){var t=o.default.Ls[e];if(!t)throw new Error("Locale ".concat(e," is not loaded"));return t};var o=r(n(38960)),i=new Map;var a=new Map;var s=new Map},11345:(e,t)=>{"use strict";function n(e,t){return e-t*Math.floor(e/t)}function r(e){return e%4===0&&(e%100!==0||e%400===0)}function o(e){return r(e)?366:365}Object.defineProperty(t,"__esModule",{value:!0}),t.floorMod=n,t.isLeapYear=r,t.daysInYear=o,t.daysInMonth=function(e,t){var o=n(t,12),i=e+(t-o)/12;return 1===o?r(i)?29:28:[31,-1,31,30,31,30,31,31,30,31,30,31][o]},t.tsToObject=function(e,t){var n=new Date(e+60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth(),date:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}},t.objToTS=function(e){var t=Date.UTC(e.year,e.month,e.date,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){var n=new Date(t);return n.setUTCFullYear(e.year,e.month,e.date),n.valueOf()}return t},t.normalizeDurationUnit=function(e){var t=["d","D","m","M","w","W","E","Q"].includes(e)?e:e.toLowerCase();if(t in i)return i[t];throw new Error("Invalid unit ".concat(e))},t.normalizeComponent=function(e){var t=["d","D","m","M","w","W","e","E","Q"].includes(e)?e:e.toLowerCase();if(t in a)return a[t];throw new Error("Invalid unit ".concat(e))},t.normalizeDateComponents=function(e,t){for(var n={},r=0,o=Object.entries(e);r<o.length;r++){var i=o[r],a=i[0],l=i[1];void 0!==l&&null!==l&&(n[t(a)]=s(l))}return n},t.offsetFromString=function(e){var t=(e||"").match(l);if(null===t)return null;var n=t[t.length-1]||"",r=String(n).match(c)||["-",0,0],o=r[0],i=r[1],a=r[2],s=Number(60*Number(i))+(isFinite(Number(a))?Number(a):0);return"+"===o?s:-s},t.computeOrdinal=h,t.uncomputeOrdinal=m,t.isoWeekdayToLocal=g,t.gregorianToWeek=function(e,t,n){var r=e.year,o=e.month,i=e.date,a=u(r,o,i),s=v(e,t,n),l=s.weekYear,c=s.weekNumber,d=s.weekday,f=v(e,4,1),p=f.weekYear,h=f.weekNumber,m=f.weekday;return{day:a,weekYear:l,weekNumber:c,weekday:d-1,isoWeekYear:p,isoWeekNumber:h,isoWeekday:m}},t.weeksInWeekYear=b,t.weekToGregorian=function(e,t,n){var r,i=e.weekYear,a=e.weekNumber,s=e.weekday,l=g(d(i,0,t),n),c=o(i),u=7*a+s-l-7+t;u<1?u+=o(r=i-1):u>c?(r=i+1,u-=o(i)):r=i;var f=m({year:r,ordinal:u}),p=f.month,h=f.date;return{year:r,month:p,date:h}},t.monthDiff=function e(t,n){if(t.date()<n.date())return-e(n,t);var r,o=12*(n.year()-t.year())+(n.month()-t.month()),i=t.add(o,"months");if(n.valueOf()-i.valueOf()<0){var a=t.add(o-1,"months");r=(n.valueOf()-i.valueOf())/(i.valueOf()-a.valueOf())}else{a=t.add(o+1,"months");r=(n.valueOf()-i.valueOf())/(a.valueOf()-i.valueOf())}return-(o+r)||0};var i={y:"years",year:"years",years:"years",Q:"quarters",quarter:"quarters",quarters:"quarters",M:"months",month:"months",months:"months",w:"weeks",week:"weeks",weeks:"weeks",d:"days",day:"days",days:"days",h:"hours",hour:"hours",hours:"hours",m:"minutes",minute:"minutes",minutes:"minutes",s:"seconds",second:"seconds",seconds:"seconds",ms:"milliseconds",millisecond:"milliseconds",milliseconds:"milliseconds"};var a={y:"year",year:"year",years:"year",M:"month",month:"month",months:"month",D:"date",date:"date",dates:"date",h:"hour",hour:"hour",hours:"hour",m:"minute",minute:"minute",minutes:"minute",Q:"quarter",quarter:"quarter",quarters:"quarter",s:"second",second:"second",seconds:"second",ms:"millisecond",millisecond:"millisecond",milliseconds:"millisecond",d:"day",day:"day",days:"day",weeknumber:"weekNumber",w:"weekNumber",week:"weekNumber",weeks:"weekNumber",isoweeknumber:"isoWeekNumber",W:"isoWeekNumber",isoweek:"isoWeekNumber",isoweeks:"isoWeekNumber",E:"isoWeekday",isoweekday:"isoWeekday",isoweekdays:"isoWeekday",weekday:"weekday",weekdays:"weekday",e:"weekday",dayOfYear:"dayOfYear",dayOfYears:"dayOfYear",DDD:"dayOfYear",weekyear:"weekYear",isoweekyear:"isoWeekYear"};function s(e){var t=Number(e);if("boolean"===typeof e||""===e||Number.isNaN(t))throw new Error("Invalid unit value ".concat(e));return t}var l=/Z|[+-]\d\d(?::?\d\d)?/gi,c=/([+-]|\d\d)/gi;function u(e,t,n){var r=new Date(Date.UTC(e,t,n));return e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900),r.getUTCDay()}function d(e,t,n){var r=u(e,t,n);return 0===r?7:r}var f=[0,31,59,90,120,151,181,212,243,273,304,334],p=[0,31,60,91,121,152,182,213,244,274,305,335];function h(e){var t=e.year,n=e.month;return e.date+(r(t)?p:f)[n]}function m(e){var t=e.year,n=e.ordinal,o=r(t)?p:f,i=o.findIndex((function(e){return e<n}));return{month:i,date:n-o[i]}}function g(e,t){return(e-t+7)%7+1}function v(e,t,n){var r,o=e.year,i=e.month,a=e.date,s=g(d(o,i,a),n),l=h({year:o,month:i,date:a}),c=Math.floor((l-s+14-t)/7);return c<1?c=b(r=o-1,t,n):c>b(o,t,n)?(r=o+1,c=1):r=o,{weekYear:r,weekNumber:c,weekday:s}}function y(e,t,n){return-g(d(e,0,t),n)+t-1}function b(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r=y(e,t,n),i=y(e+1,t,n);return(o(e)-r+i)/7}},1448:(e,t,n)=>{"use strict";n.d(t,{TH:()=>u});const r=/{{(.*?)}}/g;const o=()=>new RegExp(/\$t{([^}]+)}/g);var i;!function(e){e.EmptyKeyset="EMPTY_KEYSET",e.EmptyLanguageData="EMPTY_LANGUAGE_DATA",e.KeysetNotFound="KEYSET_NOT_FOUND",e.MissingKey="MISSING_KEY",e.MissingKeyFor0="MISSING_KEY_FOR_0",e.MissingKeyParamsCount="MISSING_KEY_PARAMS_COUNT",e.MissingKeyPlurals="MISSING_KEY_PLURALS",e.MissingInheritedKey="MISSING_INHERITED_KEY",e.NestedPlural="NESTED_PLURAL",e.ExceedTranslationNestingDepth="EXCEED_TRANSLATION_NESTING_DEPTH",e.NoLanguageData="NO_LANGUAGE_DATA"}(i||(i={}));Object.values(i);var a;function s(e,t){return 0===e?t.None:1===e||-1===e?t.One:t.Many}function l(e,t){const n=Math.abs(e%10),r=Math.abs(e%100);return 0===e?t.None:1===n&&11!==r?t.One:n>1&&n<5&&(r<10||r>20)?t.Few:t.Many}function c({value:e,count:t,lang:n,pluralizers:r,log:o,key:i}){if(!Array.isArray(e))return function(e,t,n){if(e.zero&&0===t)return e.zero;if(!Intl.PluralRules)throw new Error("Intl.PluralRules is not available. Use polyfill.");const r=new Intl.PluralRules(n).select(t);return"other"===r&&"undefined"===typeof e.other?e.many||e.few:e[r]||e.other}(e,t,n)||i;if(!r)return o("Can not use deprecated plural format without pluralizers"),i;if(r[n]||o(`Pluralization is not configured for language '${n}', falling back to the english ruleset`),e.length<3)return o("Missing required plurals"),i;const s=r[n]||r.en;return s?e[s(t,a)]||e[a.Many]||i:(o("Fallback pluralization is not configured!"),i)}!function(e){e[e.One=0]="One",e[e.Few=1]="Few",e[e.Many=2]="Many",e[e.None=3]="None"}(a||(a={}));class u{constructor(e={}){this.data={},this.pluralizers={en:s,ru:l},this.logger=null;const{data:t,fallbackLang:n,lang:r,logger:o=null}=e;this.fallbackLang=n,this.lang=r,this.logger=o,t&&Object.entries(t).forEach((([e,t])=>{this.registerKeysets(e,t)}))}setLang(e){this.lang=e}setFallbackLang(e){this.fallbackLang=e}configurePluralization(e){this.pluralizers=Object.assign({},this.pluralizers,e)}registerKeyset(e,t,n={}){const r=this.data[e]&&Object.prototype.hasOwnProperty.call(this.data[e],t);if(r)throw new Error(`Keyset '${t}' is already registered, aborting!`);r&&this.warn(`Keyset '${t}' is already registered.`),this.data[e]=Object.assign({},this.data[e],{[t]:n})}registerKeysets(e,t){Object.keys(t).forEach((n=>{this.registerKeyset(e,n,t[n])}))}has(e,t,n){var r;const o=this.getLanguageData(n);return Boolean(o&&o[e]&&(null===(r=o[e])||void 0===r?void 0:r[t]))}i18n(e,t,n){if(!this.lang&&!this.fallbackLang)throw new Error('Language is not specified. You should set at least one of these: "lang", "fallbackLang"');let r;return this.lang?r=this._i18n(e,t,this.lang,n):this.warn("Target language is not specified."),void 0===r&&this.fallbackLang&&this.fallbackLang!==this.lang&&(r=this._i18n(e,t,this.fallbackLang,n)),null!==r&&void 0!==r?r:t}keyset(e){return(t,n)=>this.i18n(e,t,n)}warn(e,t,n){var r;let o="";t?(o+=t,n&&(o+=`.${n}`)):o="languageData",null===(r=this.logger)||void 0===r||r.log(`I18n: ${e}`,{level:"info",logger:o,extra:{type:"i18n"}})}getLanguageData(e){const t=e||this.lang;return t?this.data[t]:void 0}_i18n(e,t,n,r){const{text:o,details:a}=new d(this,n,t,e,r).getTranslationData();if(a){const e=function(e){const{code:t,fallbackLang:n,lang:r}=e;let o=`Using language ${r}. `;switch(t){case i.EmptyKeyset:o+="Keyset is empty.";break;case i.EmptyLanguageData:o+="Language data is empty.";break;case i.KeysetNotFound:o+="Keyset not found.";break;case i.MissingKey:o+="Missing key.";break;case i.MissingKeyFor0:return o+="Missing key for 0",o;case i.MissingKeyParamsCount:o+="Missing params.count for key.";break;case i.MissingKeyPlurals:o+="Missing required plurals.";break;case i.NoLanguageData:o=`Language "${r}" is not defined, make sure you call setLang for the same language you called registerKeysets for!`}return n&&(o+=` Trying to use fallback language "${n}"...`),o}({code:a.code,lang:n,fallbackLang:this.fallbackLang===n?void 0:this.fallbackLang});this.warn(e,a.keysetName,a.key)}return o}}class d{constructor(e,t,n,r,o,i){this.i18n=e,this.lang=t,this.key=n,this.keysetName=r,this.params=o,this.nestingDepth=null!==i&&void 0!==i?i:0}getTranslationData(){var e;const{data:t,details:n}=this.getKeyset();if(n)return{details:n};const a=t&&t[this.key],s={};if(void 0===a)return this.getTranslationDataError(i.MissingKey);if("string"!==typeof a){const t=this.nestingDepth>0,n=(e=>e instanceof Array?e:e instanceof Object?Object.values(e):[])(a).some((e=>(e=>{var t;const n=o().exec(e);return(null!==(t=null===n||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0})(e)));if(t||n)return this.getTranslationDataError(i.NestedPlural);const r=Number(null===(e=this.params)||void 0===e?void 0:e.count);if(Number.isNaN(r))return this.getTranslationDataError(i.MissingKeyParamsCount);s.text=c({key:this.key,value:a,count:r,lang:this.lang||"en",pluralizers:this.i18n.pluralizers,log:e=>this.i18n.warn(e,this.keysetName,this.key)})}else s.text=String(a);this.params&&(s.text=function(e,t){let n,o="",i=r.lastIndex=0;for(;n=r.exec(e);){i!==n.index&&(o+=e.slice(i,n.index)),i=r.lastIndex;const[a,s]=n;s&&Object.prototype.hasOwnProperty.call(t,s)?o+=t[s]:o+=a}return i<e.length&&(o+=e.slice(i)),o}(String(s.text),this.params));const l=this.replaceTranslationsInheritance({keyValue:String(s.text)});return l.text?(s.text=l.text,s):l}getTranslationDataError(e){return{details:{code:e,keysetName:this.keysetName,key:this.key}}}getKeyset(){const e=this.i18n.getLanguageData(this.lang);if("undefined"===typeof e)return this.getTranslationDataError(i.NoLanguageData);if(0===Object.keys(e).length)return this.getTranslationDataError(i.EmptyLanguageData);const t=e[this.keysetName];return t?0===Object.keys(t).length?this.getTranslationDataError(i.EmptyKeyset):{data:t}:this.getTranslationDataError(i.KeysetNotFound)}replaceTranslationsInheritance(e){const{keyValue:t}=e,n=o();let r,a="",s=n.lastIndex=0;for(;r=n.exec(t);){s!==r.index&&(a+=t.slice(s,r.index)),s=n.lastIndex;const[e,o]=r;if(o){if(this.nestingDepth+1>1)return this.getTranslationDataError(i.ExceedTranslationNestingDepth);let[e,t]=[o,void 0];const n=o.split("::");if(n.length>1&&([t,e]=[n[0],n[1]]),!e)return this.getTranslationDataError(i.MissingInheritedKey);const r=new d(this.i18n,this.lang,e,null!==t&&void 0!==t?t:this.keysetName,void 0,this.nestingDepth+1).getTranslationData();if(r.details)return this.getTranslationDataError(i.MissingInheritedKey);a+=r.text}else a+=e}return s<t.length&&(a+=t.slice(s)),{text:a}}}},112:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.5A.75.75 0 0 0 10 3h1.94L6.97 7.97a.75.75 0 0 0 1.06 1.06L13 4.06V6a.75.75 0 0 0 1.5 0V2.25a.75.75 0 0 0-.75-.75zM7.5 3.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V9.25a.75.75 0 0 0-1.5 0v2.25a1.5 1.5 0 0 1-1.5 1.5h-6A1.5 1.5 0 0 1 3 11.5v-6A1.5 1.5 0 0 1 4.5 4h2.25a.75.75 0 0 0 .75-.75",clipRule:"evenodd"}))},13066:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06",clipRule:"evenodd"}))},9187:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.53 2.97a.75.75 0 0 1 0 1.06L6.56 8l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0",clipRule:"evenodd"}))},38602:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0",clipRule:"evenodd"}))},70825:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}))},43937:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},73633:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M6.44 4.54c.43-.354.994-.565 1.56-.565 1.217 0 2.34.82 2.34 2.14 0 .377-.078.745-.298 1.1-.208.339-.513.614-.875.867-.217.153-.325.257-.379.328-.038.052-.038.07-.038.089a.75.75 0 0 1-1.5 0c0-.794.544-1.286 1.057-1.645.28-.196.4-.332.458-.426a.54.54 0 0 0 .075-.312c0-.3-.244-.641-.84-.641a1 1 0 0 0-.608.223c-.167.138-.231.287-.231.418a.75.75 0 0 1-1.5 0c0-.674.345-1.22.78-1.577M8 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"}))},51016:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5M11 11h1a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3zM4 6.5h4A1.5 1.5 0 0 1 9.5 8v4A1.5 1.5 0 0 1 8 13.5H4A1.5 1.5 0 0 1 2.5 12V8A1.5 1.5 0 0 1 4 6.5",clipRule:"evenodd"}))},7450:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0",clipRule:"evenodd"}))},27738:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.2.2 0 0 1 .271.073l.802 1.388a.2.2 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.2.2 0 0 1 .073.271l-.802 1.388a.2.2 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.2.2 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.2.2 0 0 1-.272-.073l-.8-1.388a.2.2 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.2.2 0 0 1-.073-.27l.801-1.389a.2.2 0 0 1 .272-.072C5.042 5.138 7 4.007 7 2.199c0-.11.089-.199.199-.199M5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.7 1.7 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.7 1.7 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.7 1.7 0 0 1-2.32-.622l-.802-1.388a1.7 1.7 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.7 1.7 0 0 1-.622-2.32l.801-1.389a1.7 1.7 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2m4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"}))},66821:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M5.5 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M7 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m3.5 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd"}))},49917:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.53 1.53A.75.75 0 0 0 14.47.47l-1.29 1.29a4.24 4.24 0 0 0-5.423.483l-.58.58a.96.96 0 0 0 0 1.354l4.646 4.646a.96.96 0 0 0 1.354 0l.58-.58a4.24 4.24 0 0 0 .484-5.423zm-8.5 4.94a.75.75 0 0 1 0 1.06L5.78 8.78l1.44 1.44 1.25-1.25a.75.75 0 0 1 1.06 1.06l-1.25 1.25.543.543a.96.96 0 0 1 0 1.354l-.58.58a4.24 4.24 0 0 1-5.423.484l-1.29 1.29A.75.75 0 0 1 .47 14.47l1.29-1.29a4.24 4.24 0 0 1 .483-5.423l.58-.58a.96.96 0 0 1 1.354 0l.543.543 1.25-1.25a.75.75 0 0 1 1.06 0M3.5 8.62l-.197.197a2.743 2.743 0 0 0 3.879 3.879l.197-.197zm9.197-1.439-.197.197L8.621 3.5l.197-.197a2.743 2.743 0 0 1 3.879 3.879",clipRule:"evenodd"}))},27612:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m7.836 6 .76-2.027L9.336 2H5.5a.72.72 0 0 0-.664.45L2.513 8.257a.177.177 0 0 0 .164.243h4.965l-.732 2.013-1.082 2.975a.382.382 0 0 0 .637.392l6.956-7.391A.29.29 0 0 0 13.21 6H7.835m2.727-3 .235-.627A1.386 1.386 0 0 0 9.5.5h-4c-.906 0-1.72.552-2.057 1.393L1.12 7.7A1.677 1.677 0 0 0 2.677 10H5.5l-.545 1.5-.537 1.475a1.882 1.882 0 0 0 3.14 1.933l6.956-7.391A1.79 1.79 0 0 0 13.21 4.5H10z",clipRule:"evenodd"}))},94420:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.134 2.994 2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},81240:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(59284);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06",clipRule:"evenodd"}))},92209:(e,t,n)=>{"use strict";n.d(t,{N:()=>o,b:()=>i});var r=n(82435);const o="gn-";(0,r.withNaming)({e:"__",m:"_"});const i=(0,r.withNaming)({n:o,e:"__",m:"_"})},49034:(e,t,n)=>{"use strict";n.d(t,{d:()=>F});var r="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var o=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},i="object"==typeof r&&r&&r.Object===Object&&r,a="object"==typeof self&&self&&self.Object===Object&&self,s=i||a||Function("return this")(),l=s,c=function(){return l.Date.now()},u=/\s/;var d=function(e){for(var t=e.length;t--&&u.test(e.charAt(t)););return t},f=/^\s+/;var p=function(e){return e?e.slice(0,d(e)+1).replace(f,""):e},h=s.Symbol,m=h,g=Object.prototype,v=g.hasOwnProperty,y=g.toString,b=m?m.toStringTag:void 0;var w=function(e){var t=v.call(e,b),n=e[b];try{e[b]=void 0;var r=!0}catch(i){}var o=y.call(e);return r&&(t?e[b]=n:delete e[b]),o},x=Object.prototype.toString;var _=w,E=function(e){return x.call(e)},S=h?h.toStringTag:void 0;var k=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?_(e):E(e)},C=function(e){return null!=e&&"object"==typeof e};var O=p,N=o,T=function(e){return"symbol"==typeof e||C(e)&&"[object Symbol]"==k(e)},A=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,P=/^0o[0-7]+$/i,D=parseInt;var R=o,j=c,M=function(e){if("number"==typeof e)return e;if(T(e))return NaN;if(N(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=N(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=O(e);var n=I.test(e);return n||P.test(e)?D(e.slice(2),n?2:8):A.test(e)?NaN:+e},L=Math.max,z=Math.min;var F=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function m(){var e=j();if(h(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?z(n,i-(e-c)):n}(e))}function g(e){return s=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=j(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=M(t)||0,R(n)&&(u=!!n.leading,i=(d="maxWait"in n)?L(M(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(j())},v}},16258:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(0,n(92209).b)("aside-header")},6388:(e,t,n)=>{"use strict";n.d(t,{M3:()=>i,N2:()=>l,NS:()=>s,Q7:()=>a,Uc:()=>u,VU:()=>r,xN:()=>o,zQ:()=>c});const r=1,o=-1,i="left",a="center",s="right",l="fixed",c="moving",u="__index__"},4557:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>D});var r=n(27145),o=n(59284),i=n(56993),a=n.n(i),s=n(82435),l=n(6388);const c=(0,s.withNaming)({e:"__",m:"_"})("data-table");function u({name:e,defaultOrder:t},{sortOrder:n={},sortColumns:o=[]},i=!1,{defaultOrder:a,disableSortReset:s}={}){const c=t||a,u={sortOrder:{},sortColumns:[]};if(!e)return i?{sortOrder:n,sortColumns:o}:u;let d=o;const f=n[e];let p=c;if(f&&(p=f===c||s?f===l.VU?l.xN:l.VU:void 0),!i)return p?{sortOrder:{[e]:p},sortColumns:[e]}:u;const h=n,m=e,g=(h[m],(0,r.Tt)(h,["symbol"===typeof m?m:m+""]));return p?(g[e]=p,new Set(o).has(e)||(d=[...o,e])):d=o.filter((t=>t!==e)),{sortOrder:g,sortColumns:d}}function d(e,t,n={}){const r=t,{sortAscending:o}=e;return"function"===typeof o?(e,t)=>r*o(e,t):(t,o)=>{const i=e._getSortValue(t.row),a=e._getSortValue(o.row);return null==i&&null!=a?n.nullBeforeNumbers?-r:1:null==a&&null!=i?n.nullBeforeNumbers?r:-1:i<a?Number(-r):i>a?Number(r):0}}function f(e,t,{sortOrder:n,sortColumns:r},o){const i={};t.forEach((e=>{n[e.name]?i[e.name]=d(e,n[e.name],o):e.group&&e.autogroup&&(i[e.name]=d(e,l.VU,o))}));const a=t.filter((e=>e.group)),s=a.length>0,c=[...a.map((e=>i[e.name])).filter(Boolean),...r.map((e=>i[e])).filter(Boolean)],u=e.map(((e,t)=>s?{row:e,index:t,span:{}}:{row:e,index:t}));if(c.length&&!o.externalSort&&u.sort(((e,t)=>{let n=0;return c.some((r=>(n=r(e,t),Boolean(n)))),n||e.index-t.index})),u.length>1&&s){const e=[],t=[];u.forEach((n=>{a.every(((r,o)=>{const i=r._getValue(n.row);return e[o]&&i===t[o]?(e[o].span[r.name]+=1,n.span[r.name]=0,!0):(a.slice(o).forEach(((r,i)=>{e[o+i]=n,t[o+i]=r._getValue(n.row),n.span[r.name]=1})),!1)}))}))}return u}function p(e,t){return(Array.isArray(e)?e:[e]).reduce(((e,{columnId:n,order:r})=>u({name:n,defaultOrder:r},e,!0,t)),{sortOrder:{},sortColumns:[]})}function h({getColumn:e,columnIndex:t,columnId:n,minWidth:r,maxWidth:i,onResize:a}){const s=o.useRef(null),[l,u]=o.useState(!1);return o.useEffect((()=>{const o=s.current;if(!o)return;let l,c,d;const f=function(e){let t,n=null;return function(...r){t=r,"number"!==typeof n&&(n=requestAnimationFrame((()=>{e(...t),n=null})))}}((e=>{if(m(e),"number"!==typeof l||"number"!==typeof c)return;const t=e.clientX-l,o=function(e,t=40,n=1/0){return Math.max(t,Math.min(e,n))}(c+t,r,i);o!==d&&(d=o,null===a||void 0===a||a(n,d))})),p=e=>{m(e),void 0!==d&&(null===a||void 0===a||a(n,d)),u(!1),l=void 0,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)},h=n=>{var r;c=null===(r=e(t))||void 0===r?void 0:r.getBoundingClientRect().width,m(n),l=n.clientX,u(!0),document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)};return o.addEventListener("mousedown",h),()=>{o.removeEventListener("mousedown",h),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)}}),[n,a,r,i,e,t]),o.createElement("span",{ref:s,className:c("resize-handler",{resizing:l}),onClick:e=>m(e)})}function m(e){e.preventDefault(),e.stopPropagation()}const g=function(){const e=document.createElement("a").style;return e.cssText="position:sticky; position:-webkit-sticky;",-1!==e.position.indexOf("sticky")}(),v={getSrcElement:()=>null,onHeightChange:()=>{}};class y{constructor(e){this.prevHeight=0,this.params=v,this.checkAndUpdateHeight=()=>{this.node?requestAnimationFrame((()=>{const e=this.node;e?this.updateHeight(e.offsetHeight):this.updateHeight(0)})):this.updateHeight(0)},this.params=Object.assign({},e)}destroy(){this.updateHeight(0),this.params=v}get node(){return this.params.getSrcElement()}updateHeight(e){this.prevHeight!==e&&(this.prevHeight=e,this.params.onHeightChange(e))}}const b=o.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},o.createElement("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})),w=o.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},o.createElement("path",{fill:"currentColor",d:"M0 1h10l-5 5z"})),x={ICON_ASC:b,ICON_DESC:w};const _=({sortOrder:e,sortIndex:t,sortable:n,defaultOrder:r})=>n?o.createElement("span",{className:c("sort-icon",{shadow:!e}),"data-index":t},function(e){switch(e){case l.VU:return x.ICON_ASC;case l.xN:return x.ICON_DESC;default:return!1}}(e||r)):null;class E extends o.PureComponent{constructor(){super(...arguments),this.onClick=e=>{if(this.props.onClick){const{row:t,index:n}=this.props;this.props.onClick(t,n,e)}}}render(){const{className:e,columns:t,row:n,index:r,odd:i,footer:a,span:s,getColSpansOfRow:l,headerData:u}=this.props,d=l?l(this.props):void 0;let f=0;return o.createElement("tr",{className:c("row",{odd:i,footer:a,"header-data":u},e),onClick:this.onClick},t.map(((e,t)=>{if(d){if(--f>0)return null;d[e.name]>1&&(f=d[e.name])}let i;if(s){if(0===s[e.name])return null;i=s[e.name]}const l=e._getValue(n);let c=e.customStyle({row:n,index:r,name:e.name,header:!1,footer:a,headerData:u});return e.resizeable&&(c=Object.assign(Object.assign({},c),{width:e.width,maxWidth:e.width})),o.createElement("td",{key:t,className:e._className,title:e._getTitle(n),style:c,colSpan:d?d[e.name]:void 0,rowSpan:i,onClick:e._getOnClick({row:n,index:r,footer:a,headerData:u})},e._renderValue({value:l,row:n,index:r,footer:a,headerData:u}))})))}}E.defaultProps={footer:!1};class S extends o.Component{constructor(){super(...arguments),this._dataRowsRef=null,this.renderedColumns=[],this.renderHeadCell=e=>{var t;const{onResize:n}=this.props,{column:r,rowSpan:i,colSpan:a}=e,{sortable:s=!1,header:l=r.name,className:u,index:d,columnIndex:f,align:p,name:m,width:g,resizeable:v,resizeMinWidth:y,resizeMaxWidth:b}=r,{headerTitle:w="string"===typeof l&&l||void 0}=r;let x=null===(t=r.customStyle)||void 0===t?void 0:t.call(r,{header:!0,name:m});return v&&(x=Object.assign(Object.assign({},x),{width:g,maxWidth:g})),o.createElement("th",{ref:r.dataColumn?this._getColumnRef(f):null,className:c("th",{sortable:s,align:p},u),key:m,title:w,"data-index":d,colSpan:a,rowSpan:i,style:x,onClick:this._getOnSortClick(r)},o.createElement("div",{className:c("head-cell")},l,o.createElement(_,Object.assign({},r))),v&&o.createElement(h,{getColumn:this._getRenderedColumn,columnIndex:f,onResize:n,columnId:m,minWidth:y,maxWidth:b}))},this.renderHeadLevel=(e,t)=>o.createElement("tr",{key:t,className:c("head-row")},e.map(this.renderHeadCell)),this.dataRowsRef=e=>{var t;this._dataRowsRef=e,e&&(null===(t=this.dataRowsHeightObserver)||void 0===t||t.checkAndUpdateHeight())},this._getColumnRef=e=>t=>{this.renderedColumns[e]=t},this._getRenderedColumn=e=>{if(void 0!==e)return this.renderedColumns[e]}}componentDidMount(){this._calculateColumnsWidth(),"function"===typeof this.props.onDataRowsHeightChange&&(this.dataRowsHeightObserver=new y({getSrcElement:()=>this._dataRowsRef,onHeightChange:e=>{"function"===typeof this.props.onDataRowsHeightChange&&this.props.onDataRowsHeightChange(e)}}))}componentDidUpdate(){var e;this._calculateColumnsWidth(),null===(e=this.dataRowsHeightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.dataRowsHeightObserver)||void 0===e||e.destroy()}render(){const{headColumns:e,dataColumns:t,renderedDataRows:n}=this.props;return this.renderedColumns.length=t.length,o.createElement(o.Fragment,null,o.createElement("thead",{className:c("head")},e.map(this.renderHeadLevel)),void 0===n?null:o.createElement("tbody",{ref:this.dataRowsRef},n))}_calculateColumnsWidth(){const{onColumnsUpdated:e}=this.props;"function"===typeof e&&requestAnimationFrame((()=>{const t=this.renderedColumns.map((e=>e&&e.getBoundingClientRect().width));e(t)}))}onSort(e,t){const{onSort:n}=this.props;"function"===typeof n&&n(e,t)}_getOnSortClick(e){const{sortable:t=!1,name:n}=e;return n===l.Uc?()=>{this.onSort()}:t?t=>{this.onSort(e,t.ctrlKey||t.metaKey)}:void 0}}class k extends o.Component{constructor(){super(...arguments),this.state={style:{top:k.defaultProps.top}},this.onDataRowsHeightChange=e=>{this.props.onDataRowsHeightChange(e+1)},this._nodeRef=e=>{this._node=e}}static getDerivedStateFromProps(e,t){var n;return e.top!==(null===(n=t.style)||void 0===n?void 0:n.top)?void 0===e.top?null:{style:{top:e.top}}:null}render(){const e=this.props,{mode:t,top:n}=e,i=(0,r.Tt)(e,["mode","top"]);if(t===l.zQ){const{style:e}=this.state;return o.createElement("div",{className:c("sticky",{moving:!0,head:!0}),style:e},this.renderHeader(i))}{const{widths:e=[],right:t=0}=this.state,n=e.reduce(((e,t)=>e+t),0);return o.createElement("div",{ref:this._nodeRef,className:c("sticky",{fixed:!0,head:!0}),style:{right:t,display:n?void 0:"none"}},this.renderHeader(i))}}setScrollLeft(e){requestAnimationFrame((()=>{this._node&&(this._node.scrollLeft=e)}))}setRightPosition(e){this.state.right===e||this.props.top||this.props.mode===l.zQ||this.setState({right:e})}renderHeader(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return o.createElement("div",{className:c("table-wrapper",{sticky:!0})},o.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},o.createElement("colgroup",null,t.map(((e,t)=>o.createElement("col",{key:t,style:{width:e}})))),o.createElement(S,Object.assign({},e,{onDataRowsHeightChange:this.onDataRowsHeightChange}))))}updateWidths(e=[]){const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}k.defaultProps={top:0};class C extends o.PureComponent{constructor(){super(...arguments),this.state={style:{bottom:0}},this._nodeFixed=null,this._nodeMoving=null,this._nodeFixedRef=e=>{this._nodeFixed=e},this._nodeMovingRef=e=>{var t;this._nodeMoving=e,e&&(null===(t=this.heightObserver)||void 0===t||t.checkAndUpdateHeight())}}static getDerivedStateFromProps(e,t){var n;return e.bottom!==(null===(n=t.style)||void 0===n?void 0:n.bottom)?void 0===e.bottom?null:{style:{bottom:e.bottom}}:null}componentDidMount(){this.heightObserver=new y({getSrcElement:()=>this._nodeMoving,onHeightChange:this.props.onMovingHeightChange})}componentDidUpdate(){var e;null===(e=this.heightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.heightObserver)||void 0===e||e.destroy()}render(){if(!this.props.renderedRows)return null;const{mode:e,renderedRows:t}=this.props;if(e===l.zQ){const{style:e}=this.state;return o.createElement("div",{ref:this._nodeMovingRef,className:c("sticky",{footer:!0,moving:!0}),style:e},this.renderFooter(t))}{const{widths:e=[],right:n=0}=this.state,r=e.reduce(((e,t)=>e+t),0);return o.createElement("div",{ref:this._nodeFixedRef,className:c("sticky",{footer:!0,fixed:!0}),style:{right:n,display:r?void 0:"none"}},this.renderFooter(t))}}setScrollLeft(e){requestAnimationFrame((()=>{this._nodeFixed&&(this._nodeFixed.scrollLeft=e)}))}setRightPosition(e){this.state.right!==e&&!this.props.bottom&&this._nodeFixed&&this.setState({right:e})}renderFooter(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return o.createElement("div",{className:c("table-wrapper",{sticky:!0})},o.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},o.createElement("colgroup",null,t.map(((e,t)=>o.createElement("col",{key:t,style:{width:e}})))),o.createElement("tbody",null,e)))}updateWidths(e=[]){const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}C.defaultProps={bottom:0};class O extends o.PureComponent{constructor(){super(...arguments),this.state={},this._refBody=e=>{this._body=e},this._refBox=e=>{this._box=e},this._refHead=e=>{this._head=e},this._refStickyHead=e=>{this._stickyHead=e},this._refStickyFooter=e=>{this._stickyFooter=e},this._onBoxScroll=()=>{this._updateBoxConstraints()},this._onColumnsUpdated=e=>{this._stickyHead&&this._stickyHead.updateWidths(e),this._stickyFooter&&this._stickyFooter.updateWidths(e)},this.onMovingHeaderDataRowsHeightChange=e=>{var t;-e!==(null===(t=this.state.movingHeaderStyle)||void 0===t?void 0:t.marginTop)&&this.setState({movingHeaderStyle:{marginTop:-e}})},this.onMovingFooterHeightChange=e=>{var t;-e!==(null===(t=this.state.movingFooterStyle)||void 0===t?void 0:t.marginBottom)&&this.setState({movingFooterStyle:{marginBottom:-e}})},this.renderRow=e=>{const{data:t,onRowClick:n}=this.props,{row:r,index:o,span:i}=t[e];return this.renderRowImpl(r,o,{onRowClick:n,odd:e%2===0,span:i})},this.renderFooterRow=(e,t)=>this.renderRowImpl(e,t,{footer:!0}),this.renderHeaderRow=(e,t)=>this.renderRowImpl(e,t,{headerData:!0}),this.renderRowImpl=(e,t,{onRowClick:n,odd:r,span:i,footer:a,headerData:s}={})=>{const{columns:{dataColumns:l},rowClassName:c,rowKey:u,getColSpansOfRow:d}=this.props,f="function"===typeof c?c(e,t,a,s):"";return o.createElement(E,{getColSpansOfRow:d,key:u(e,t),className:f,columns:l,row:e,index:t,span:i,odd:r,onClick:n,footer:a,headerData:s})},this.renderTable=(e,t)=>{const{footerData:n,columns:{dataColumns:r},settings:{stickyHead:i}}=this.props,{movingHeaderStyle:a,movingFooterStyle:s}=this.state,u=this.getStickyFooterMode();return o.createElement("div",{className:c("table-wrapper"),style:u===l.zQ?s:void 0},o.createElement("table",{className:c("table"),style:i===l.zQ?a:void 0},o.createElement("colgroup",null,r.map((({width:e},t)=>o.createElement("col",{key:t,width:e})))),this.renderHead(),o.createElement("tbody",{ref:t},e.length?e:this._getEmptyRow()),n&&o.createElement("tfoot",{className:c("foot",{"has-sticky-footer":u})},n.map(this.renderFooterRow))))}}componentDidMount(){const{stickyHead:e,syncHeadOnResize:t}=this.props.settings;this._updateBoxConstraints(),e&&t&&!this._onWindowResize&&(this._onWindowResize=()=>{this.syncHeadWidths()},window.addEventListener("resize",this._onWindowResize))}componentDidUpdate(){this._updateBoxConstraints()}componentWillUnmount(){this._onWindowResize&&(window.removeEventListener("resize",this._onWindowResize),delete this._onWindowResize)}render(){const{className:e}=this.props,{stickyHead:t,dynamicRender:n}=this.props.settings,r=this.getStickyFooterMode();return o.createElement("div",{className:e,ref:this._refBody},t&&this.renderStickyHead(),o.createElement("div",{ref:this._refBox,className:c("box",{"sticky-head":t,"sticky-footer":r}),onScroll:this._onBoxScroll},n?this.renderTableDynamic():this.renderTableSimple()),r&&this.renderStickyFooter())}_updateBoxConstraints(){const e=this._stickyHead||this._stickyFooter;if(this._box&&e){const e=this._box.offsetWidth-this._box.clientWidth;this._stickyHead&&(this._stickyHead.setRightPosition(e),this._stickyHead.setScrollLeft(this._box.scrollLeft)),this._stickyFooter&&(this._stickyFooter.setRightPosition(e),this._stickyFooter.setScrollLeft(this._box.scrollLeft))}}syncHeadWidths(){this._head&&this._head._calculateColumnsWidth()}_getEmptyRow(){const{columns:{dataColumns:e},emptyDataMessage:t,renderEmptyRow:n}=this.props;return"function"===typeof n?n(e):o.createElement("tr",{className:c("row")},o.createElement("td",{className:c("td",c("no-data")),colSpan:e.length},t))}renderHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r}=this.props.settings,i=this.renderHeaderRows();return o.createElement(S,Object.assign({ref:this._refHead},e,{displayIndices:Boolean(r),onSort:t,onResize:n,onColumnsUpdated:this._onColumnsUpdated,renderedDataRows:i}))}renderStickyHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r,stickyTop:i,stickyHead:a}=this.props.settings,s="auto"===i&&this._body&&this._body.parentNode?this._body.parentNode.offsetTop:Number(i)||0,l=this.renderHeaderRows();return o.createElement(k,Object.assign({mode:a,top:s,ref:this._refStickyHead},e,{displayIndices:r,onSort:t,onResize:n,renderedDataRows:l,onDataRowsHeightChange:this.onMovingHeaderDataRowsHeightChange}))}renderStickyFooter(){const{columns:e}=this.props,{stickyBottom:t}=this.props.settings;let n=Number(t)||0;if("auto"===t&&this._body&&this._body.parentNode){const e=this._body.parentNode;n=e.offsetTop+e.offsetHeight}const r=this.renderFooterRows();return o.createElement(C,{ref:this._refStickyFooter,mode:this.getStickyFooterMode(),bottom:n,dataColumns:e.dataColumns,renderedRows:r,onMovingHeightChange:this.onMovingFooterHeightChange})}renderTableDynamic(){const{data:e,settings:{dynamicInnerRef:t,dynamicRenderType:n="uniform",dynamicRenderUseStaticSize:r,dynamicRenderThreshold:i,dynamicRenderMinSize:s,dynamicRenderScrollParentGetter:l,dynamicRenderScrollParentViewportSizeGetter:c,dynamicItemSizeEstimator:u,dynamicItemSizeGetter:d}={}}=this.props;return o.createElement(a(),{ref:t,type:n,useStaticSize:r,threshold:i,minSize:s,itemSizeEstimator:u,itemSizeGetter:d,length:e.length,itemRenderer:this.renderRow,itemsRenderer:this.renderTable,scrollParentGetter:l,scrollParentViewportSizeGetter:c})}renderTableSimple(){const{data:e}=this.props,t=e.map(((e,t)=>this.renderRow(t)));return this.renderTable(t,null)}renderHeaderRows(){const{headerData:e}=this.props;return e&&e.map(this.renderHeaderRow)}renderFooterRows(){const{footerData:e}=this.props;return null===e||void 0===e?void 0:e.map(this.renderFooterRow)}getStickyFooterMode(){const{footerData:e}=this.props;if(!(null===e||void 0===e?void 0:e.length))return!1;const{stickyFooter:t}=this.props.settings;return t}}const N=o.memo((function(e){const{column:t,value:n,row:r,index:i,footer:a,headerData:s}=e;return o.createElement(o.Fragment,null,t.render({value:n,row:r,index:i,footer:a,headerData:s}))}));class T extends o.Component{constructor(){super(...arguments),this.state=Object.assign({settings:{}},p(this.props.initialSortOrder,this.props.settings)),this._tableRef=e=>{this.table=e},this.renderMemoizedCell=({column:e,value:t,row:n,index:r,footer:i,headerData:a})=>o.createElement(N,{column:e,value:t,row:n,index:r,footer:i,headerData:a}),this.getColumn=(e,t)=>{var n;const{onResize:r}=this.props,{settings:o}=this.state,{defaultOrder:i}=o,{sortOrder:a={},sortColumns:s,indexColumn:l}=this.state,u=Number(Boolean(l)),d=this.isSortEnabled(),{name:f,accessor:p=e.name,align:h,sortable:m=o.sortable,group:g,autogroup:v=!0}=e,{sortAccessor:y,onClick:b}=e,w=c("td",{align:h},e.className),x=(null!==(n=e.resizeable)&&void 0!==n?n:o.defaultResizeable)&&Boolean(r),_="function"===typeof p?e=>p(e):e=>Object.prototype.hasOwnProperty.call(e,p)?e[p]:void 0,E="function"===typeof e.title?t=>e.title(t):()=>"string"===typeof e.title&&e.title||void 0,S="function"===typeof y?e=>y(e):_,k="function"===typeof e.render?({value:t,row:n,index:r,footer:o,headerData:i})=>this.renderMemoizedCell({column:e,value:t,row:n,index:r,footer:o,headerData:i}):({value:e})=>e,C="function"===typeof e.customStyle?e.customStyle:()=>{},O="function"===typeof b?t=>n=>b(t,e,n):()=>{};return Object.assign(Object.assign({index:t-u,columnIndex:t,dataColumn:!0,defaultOrder:i},e),{resizeable:x,sortable:m&&d,_className:w,_getValue:_,_getTitle:E,_getSortValue:S,_renderValue:k,_getOnClick:O,customStyle:C,group:g,autogroup:v,sortOrder:a[f]||void 0,sortIndex:s.length>1?s.indexOf(f)+1:void 0})},this.isSortEnabled=()=>{const{data:e}=this.props;return Array.isArray(e)&&e.length>1},this.onSort=(e,t)=>{if(e){const{sortOrder:n,sortColumns:r}=u(e,this.state,t,this.props.settings);this.setState({sortOrder:n,sortColumns:r});const{onSort:o}=this.props;if("function"===typeof o){const e=function(e){return Object.keys(e).map((t=>({columnId:t,order:e[t]})))}(n);o(e)}}else{this.setState({sortOrder:{},sortColumns:[]});const{onSort:e}=this.props;"function"===typeof e&&e([])}}}static normalizeStickyHead(e=!1){return e!==l.zQ||g?e:(console.warn("Your browser does not support position: sticky, moving sticky headers will be disabled."),!1)}static calculateSettings(e){return Object.assign(Object.assign(Object.assign({},T.defaultProps.settings),e),{stickyHead:T.normalizeStickyHead(e.stickyHead),stickyFooter:T.normalizeStickyHead(e.stickyFooter)})}static getIndexColumn({startIndex:e,data:t,visibleRowIndex:n}){const r=e+t.length+1;return{name:l.Uc,header:"#",className:c("index"),render:({row:t,index:r,footer:o,headerData:i})=>{var a,s;return i?null!==(a=t.headerIndex)&&void 0!==a?a:e+r:o?null!==(s=t.footerIndex)&&void 0!==s?s:e+r:"function"===typeof n?n(t,r):e+r},sortable:!1,resizeable:!1,width:20+10*Math.ceil(Math.log10(r))}}static getDerivedStateFromProps(e){const t=T.calculateSettings(e.settings);return Object.assign({settings:t,indexColumn:Boolean(t.displayIndices)&&T.getIndexColumn(e)},e.sortOrder?Object.assign({},p(e.sortOrder,e.settings)):void 0)}render(){const{getColSpansOfRow:e,headerData:t,data:n,footerData:r,columns:i,startIndex:a,emptyDataMessage:s,rowClassName:l,rowKey:u,onRowClick:d,onResize:p,theme:h,renderEmptyRow:m,nullBeforeNumbers:g}=this.props,{settings:v,sortOrder:y,sortColumns:b}=this.state,{highlightRows:w=!1,stripedRows:x=!1,headerMod:_=!1}=v,E=c({"highlight-rows":w,"striped-rows":x,header:_,theme:h}),S=this.getComplexColumns(i);return v.dynamicRender&&S.dataColumns.some((e=>e.group))&&console.warn("Simultaneously used grouping cells and dynamic render. The table will render unpredictable."),o.createElement(O,{ref:this._tableRef,getColSpansOfRow:e,className:E,settings:v,startIndex:a,columns:S,emptyDataMessage:s,renderEmptyRow:m,rowClassName:l,rowKey:u||T.defaultProps.rowKey,onRowClick:d,headerData:t,data:f(n,S.dataColumns,{sortOrder:y,sortColumns:b},{nullBeforeNumbers:g,externalSort:null===v||void 0===v?void 0:v.externalSort}),footerData:r,onSort:this.onSort,onResize:p})}getComplexColumns(e){const t=[],n=[],r=[],{indexColumn:o}=this.state,i=o?[o,...e]:e,a=(e,o)=>{t[o]||(t[o]=[]);const i=t[o];return e.reduce(((e,t)=>{let s=1,l=-1,c=t;if(Array.isArray(t.sub))s=a(t.sub,o+1);else{const e=this.getColumn(t,n.length);n.push(e),l=o,c=e}const u={column:c,itemLevel:l,colSpan:s,rowSpan:0};return r.push(u),i.push(u),s+e}),0)};return a(i,0),r.forEach((e=>{e.rowSpan=e.itemLevel<0?1:t.length-e.itemLevel})),{headColumns:t,dataColumns:n}}resize(){this.table&&this.table.syncHeadWidths()}}function A(e){return new Set(e.map((e=>e.name))).size!==e.length}T.defaultProps={startIndex:0,emptyDataMessage:"No data",settings:{displayIndices:!0,dynamicRenderMinSize:1,stickyHead:!1,stickyFooter:!1,sortable:!0,externalSort:!1,defaultOrder:l.VU,defaultResizeable:!1},rowKey:(e,t)=>Object.prototype.hasOwnProperty.call(e,"id")?e.id:t,initialSortOrder:{},initialSortColumns:[],theme:"yandex-cloud"},T.getSortedData=f;const I="It is strongly recommended against using duplicate column names. They act as default accessors and titles, so doing so may lead to confusing titles and the wrong data being extracted.";class P extends o.PureComponent{constructor(){super(...arguments),this.state={},this._tableRef=e=>{this.table=e}}static setCustomIcons(e){x.ICON_ASC=e.ICON_ASC||b,x.ICON_DESC=e.ICON_DESC||w}componentDidMount(){A(this.props.columns)&&console.warn(I)}componentDidUpdate(e){const{columns:t}=this.props;t!==e.columns&&A(t)&&console.warn(I)}componentDidCatch(e){console.error(e),this.setState({error:e});const{onError:t}=this.props;"function"===typeof t&&t(e)}render(){const{error:e}=this.state;return e?o.createElement("pre",{className:c("error")},"DataTable got stuck in invalid state. Please tell developers about it.","\n\n",e.stack&&String(e.stack)||String(e)):o.createElement(T,Object.assign({ref:this._tableRef},this.props))}resize(){this.table&&this.table.resize()}}P.FIXED=l.N2,P.MOVING=l.zQ,P.ASCENDING=l.VU,P.DESCENDING=l.xN,P.LEFT=l.M3,P.CENTER=l.Q7,P.RIGHT=l.NS;const D=P},18650:(e,t,n)=>{"use strict";n.d(t,{m:()=>S});var r=n(27145),o=n(59284),i=n(32084),a=n(81517),s=n(69220);const l={pc:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",return:"enter",mod:"ctrl",control:"ctrl",opt:"alt",option:"alt",cmd:"ctrl",command:"ctrl"},Priority:{shift:200,alt:300,ctrl:400},DisplayName:{up:"\u2191",down:"\u2193",left:"\u2190",right:"\u2192",escape:"Esc",plus:"\uff0b",enter:"Enter",ctrl:"Ctrl",alt:"Alt",shift:"Shift",tab:"Tab",backspace:"Backspace"}},mac:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",enter:"return",mod:"command",ctrl:"control",alt:"option",opt:"option",cmd:"command"},Priority:{command:100,shift:200,option:300,control:400},DisplayName:{up:"\u25b2",down:"\u25bc",left:"\u25c0",right:"\u25b6",escape:"\u238b",plus:"\uff0b",return:"\u23ce",command:"\u2318",option:"\u2325",control:"\u2303",shift:"\u21e7",backspace:"\u232b",tab:"\u21e5"}}};var c=n(98816),u=n.n(c),d=n(11078),f=n.n(d);function p(e,t){return e.trim().split(t).filter(Boolean)}const h=/\s/;function m(e,t){return p(t,h).map((t=>f()(p(t,"+").map(function(e){return function(t){var n;const r=function(e,t){var n;return t=t.toLowerCase(),null!==(n=e.NormalizeMap[t])&&void 0!==n?n:t}(e,t);return{raw:t,id:r,priority:null!==(n=e.Priority[r])&&void 0!==n?n:0,displayName:e.DisplayName[r]}}}(e)).sort(((e,t)=>t.priority-e.priority)),(e=>e.id)).map(g)))}function g(e){var t;return null!==(t=e.displayName)&&void 0!==t?t:u()(e.id)}const v=(0,s.om)("hotkey"),y={BetweenGroups:String.fromCharCode(160),BetweenKeys:String.fromCharCode(8239)},b=o.forwardRef((function(e,t){const{value:n,platform:r,view:i="light",qa:a,style:s,className:c}=e,u=function(e,t){var n;const r=null!==(n=t.platform)&&void 0!==n?n:"undefined"!==typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform)?"mac":"pc",o=l[r];return m(o,e)}(n,{platform:r}),d=[];let f=!1;return u.forEach(((e,t)=>{0!==e.length&&(f?d.push(y.BetweenGroups):f=!0,e.forEach(((e,n)=>{0===n||d.push(y.BetweenKeys,o.createElement("span",{key:`${e}_${t}_${n}_plus`,className:v("plus")},"+"),y.BetweenKeys),d.push(o.createElement("kbd",{key:`${e}_${t}_${n}`},e))})))})),0===d.length?null:o.createElement("kbd",{ref:t,style:s,"data-qa":a,className:v({view:i},c)},d)}));var w=n(39238),x=n(7412);const _=["bottom","top"],E=(0,s.om)("action-tooltip");function S(e){const{placement:t=_,title:n,hotkey:s,children:l,className:c,contentClassName:u,description:d,disabled:f=!1,style:p,qa:h,id:m,disablePortal:g}=e,v=(0,r.Tt)(e,["placement","title","hotkey","children","className","contentClassName","description","disabled","style","qa","id","disablePortal"]),[y,S]=o.useState(null),k=(0,a.d)(y,v),C=o.Children.only(l),O=(0,x.Q)(C),N=(0,i.N)(S,O);return o.createElement(o.Fragment,null,o.cloneElement(C,{ref:N}),y?o.createElement(w.z,{id:m,disablePortal:g,role:"tooltip",className:E(null,c),style:p,open:k&&!f,placement:t,anchorRef:{current:y},disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:h},o.createElement("div",{className:E("content",u)},o.createElement("div",{className:E("heading")},o.createElement("div",{className:E("title")},n),s&&o.createElement(b,{view:"dark",value:s,className:E("hotkey")})),d&&o.createElement("div",{className:E("description")},d))):null)}},33705:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(59284),o=n(13066),i=n(99991);const a=(0,n(69220).om)("arrow-toggle");function s({size:e=16,direction:t="bottom",className:n,qa:s}){return r.createElement("span",{style:{width:e,height:e},className:a({direction:t},n),"data-qa":s},r.createElement(i.I,{data:o.A,size:e}))}},84476:(e,t,n)=>{"use strict";n.d(t,{$:()=>m});var r=n(59284),o=n(69220),i=n(10176),a=n(11669),s=n(41668),l=n(27629);const c=(0,o.om)("button");function u(){(0,l.m)('[Button.Icon] Physical values (left, right) of "side" property are deprecated. Use logical values (start, end) instead.')}const d=({side:e,className:t,children:n})=>r.createElement("span",{className:c("icon",{side:f(e)},t)},r.createElement("span",{className:c("icon-inner")},n));function f(e){let t=e;return"left"===t&&(u(),t="start"),"right"===t&&(u(),t="end"),t}d.displayName="Button.Icon";const p=(0,o.om)("button"),h=r.forwardRef((function({view:e="normal",size:t="m",pin:n="round-round",selected:o,disabled:i=!1,loading:s=!1,width:l,title:c,tabIndex:u,type:d="button",component:f,href:h,target:m,rel:g,extraProps:v,onClick:y,onMouseEnter:w,onMouseLeave:x,onFocus:_,onBlur:E,children:S,id:k,style:C,className:O,qa:N},T){const A={title:c,tabIndex:u,onClick:y,onClickCapture:r.useCallback((t=>{a.o.publish({componentId:"Button",eventId:"click",domEvent:t,meta:{content:t.currentTarget.textContent,view:e}})}),[e]),onMouseEnter:w,onMouseLeave:x,onFocus:_,onBlur:E,id:k,style:C,className:p({view:e,size:t,pin:n,selected:o,disabled:i||s,loading:s,width:l},O),"data-qa":N};if("string"===typeof h||f){const e={href:h,target:m,rel:"_blank"!==m||g?g:"noopener noreferrer"};return r.createElement(f||"a",Object.assign(Object.assign(Object.assign(Object.assign({},v),A),f?{}:e),{ref:T,"aria-disabled":i||s}),b(S))}return r.createElement("button",Object.assign({},v,A,{ref:T,type:d,disabled:i||s,"aria-pressed":o}),b(S))}));h.displayName="Button";const m=Object.assign(h,{Icon:d}),g=(0,s.g)(d),v=(0,s.g)("span"),y=RegExp(`^${p("icon")}($|\\s+\\w)`);function b(e){const t=r.Children.toArray(e);if(1===t.length){const e=t[0];return g(e)||v(e)&&y.test(e.props.className||"")?e:(0,i.If)(e)||(0,i.$D)(e)?r.createElement(m.Icon,{key:"icon"},e):r.createElement("span",{key:"text",className:p("text")},e)}{let e,n,o;const a=[];for(const s of t){const t=(0,i.If)(s)||(0,i.$D)(s),o=g(s),l=v(s)&&y.test(s.props.className||"");if(t||o||l)if(e||0!==a.length){if(!n&&0!==a.length){const e="icon-end",i="end";n=t?r.createElement(m.Icon,{key:e,side:i},s):o?r.cloneElement(s,{side:i}):r.cloneElement(s,{className:p("icon",{side:f(i)},s.props.className)})}}else{const n="icon-start",i="start";e=t?r.createElement(m.Icon,{key:n,side:i},s):o?r.cloneElement(s,{side:i}):r.cloneElement(s,{className:p("icon",{side:f(i)},s.props.className)})}else a.push(s)}return a.length>0&&(o=r.createElement("span",{key:"text",className:p("text")},a)),[e,n,o]}}},96873:(e,t,n)=>{"use strict";n.d(t,{b:()=>b});var r=n(27145),o=n(59284),i=n(18650),a=n(84476),s=n(48699),l=n(46700),c=n(69220),u=n(72837);const d=JSON.parse('{"startCopy":"Copy","endCopy":"Copied"}'),f=JSON.parse('{"startCopy":"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c","endCopy":"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e"}'),p=(0,u.N)({en:d,ru:f},"ClipboardButton"),h=(0,c.om)("clipboard-button"),m=1200,g=200,v={xs:12,s:16,m:16,l:16,xl:20},y=e=>{const{size:t="m",hasTooltip:n=!0,tooltipInitialText:l=p("startCopy"),tooltipSuccessText:c=p("endCopy"),status:u,view:d="flat",extraProps:f={},children:m,iconPosition:g="start",closeDelay:y,onMouseEnter:b,onFocus:w}=e,x=(0,r.Tt)(e,["size","hasTooltip","tooltipInitialText","tooltipSuccessText","status","view","extraProps","children","iconPosition","closeDelay","onMouseEnter","onFocus"]),_=o.createElement(a.$.Icon,{className:h("icon")},o.createElement(s.u,{size:v[t],status:u}));return o.createElement(i.m,{title:"success"===u?c:l,disabled:!n,closeDelay:y},o.createElement(a.$,Object.assign({view:d,size:t,extraProps:Object.assign({"aria-label":l},f),onMouseEnter:b,onFocus:w},x),"start"===g?_:null,m,"end"===g?_:null))};function b(e){const{text:t,timeout:n=m,onCopy:i,options:a,hasTooltip:s=!0,onMouseEnter:c,onFocus:u}=e,d=(0,r.Tt)(e,["text","timeout","onCopy","options","hasTooltip","onMouseEnter","onFocus"]),f=o.useRef(),[p,h]=o.useState(void 0),[v,b]=o.useState(!1);o.useEffect((()=>window.clearTimeout(f.current)),[]);const w=o.useCallback(((e,t)=>{null===i||void 0===i||i(e,t),b(!1),h(n),window.clearTimeout(f.current),f.current=window.setTimeout((()=>{b(!0)}),n-g)}),[i,n]),x=o.useCallback((()=>{v&&(b(!1),h(void 0))}),[v]),_=o.useCallback((e=>{null===c||void 0===c||c(e),x()}),[c,x]),E=o.useCallback((e=>{null===u||void 0===u||u(e),x()}),[u,x]);return o.createElement(l.$,{text:t,timeout:n,onCopy:w,options:a},(e=>o.createElement(y,Object.assign({},d,{closeDelay:p,hasTooltip:s&&!v,status:e,onMouseEnter:_,onFocus:E}))))}},48699:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var r=n(27145),o=n(59284);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.5 12c0 .414-.168.79-.44 1.06A1.5 1.5 0 0 1 8 13.5H4a1.5 1.5 0 0 1-1.06-.44A1.5 1.5 0 0 1 2.5 12V8c0-.414.168-.79.44-1.06A1.5 1.5 0 0 1 4 6.5h4c.414 0 .79.168 1.06.44.272.27.44.646.44 1.06zm-1.47-1.03L7.06 10l.97-.97a.75.75 0 0 0-1.06-1.06L6 8.94l-.97-.97a.75.75 0 0 0-1.06 1.06l.97.97-.97.97a.75.75 0 0 0 1.06 1.06l.97-.97.97.97a.75.75 0 0 0 1.06-1.06M6.5 5H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4zM5 4a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3h-1v1a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h1z",clipRule:"evenodd"})),a=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"m8 9.076.085-.107a.751.751 0 1 0-1.171-.937L5.438 9.877 5.03 9.47a.747.747 0 0 0-1.06 0 .75.75 0 0 0 0 1.06l.407.408.593.592a.75.75 0 0 0 1.116-.061l.522-.654h.001z"}),o.createElement("path",{fillRule:"evenodd",d:"M12 11a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3v-1zM4 6.5A1.5 1.5 0 0 0 2.5 8v4A1.5 1.5 0 0 0 4 13.5h4A1.5 1.5 0 0 0 9.5 12V8A1.5 1.5 0 0 0 8 6.5zM13.5 4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8z",clipRule:"evenodd"})));var s=n(51016),l=n(99991);function c(e){var{status:t}=e,n=(0,r.Tt)(e,["status"]);return"error"===t?o.createElement(l.I,Object.assign({data:i},n)):"success"===t?o.createElement(l.I,Object.assign({data:a},n)):o.createElement(l.I,Object.assign({data:s.A},n))}},46898:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var r=n(59284);const o=(0,n(69220).om)("control-label"),i=r.forwardRef((({children:e,className:t,labelClassName:n,title:i,style:a,disabled:s=!1,control:l,size:c="m",qa:u},d)=>{const f=r.cloneElement(l,{className:o("indicator",l.props.className)});return r.createElement("label",{ref:d,title:i,style:a,className:o({size:c,disabled:s},t),"data-qa":u},f,e?r.createElement("span",{className:o("text",n)},e):null)}));i.displayName="ControlLabel"},46700:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var r=n(59284),o=n(64255),i=n.n(o);const a="pending";function s(e){const{children:t,text:n,options:o,timeout:s,onCopy:l}=e,[c,u]=r.useState(a),d=r.useRef(),f=r.useMemo((()=>t(c)),[t,c]),p=r.useCallback(((e,t)=>{u(t?"success":"error"),window.clearTimeout(d.current),d.current=window.setTimeout((()=>u(a)),s),null===l||void 0===l||l(e,t)}),[l,s]);if(r.useEffect((()=>()=>window.clearTimeout(d.current)),[]),!r.isValidElement(f))throw new Error("Content must be a valid react element");return r.createElement(i(),{text:n,onCopy:p,options:o},f)}},40336:(e,t,n)=>{"use strict";n.d(t,{u:()=>k});var r=n(59284),o=n(41668),i=n(27629);const a=r.createContext(void 0);function s({direction:e,contentMaxWidth:t,nameMaxWidth:n,children:o}){const i=n?{maxWidth:n,width:n}:{},s="number"===typeof t?{width:t,maxWidth:t}:{};return r.createElement(a.Provider,{value:{keyStyle:i,valueStyle:s,direction:e}},o)}var l=n(69220);const c=(0,l.om)("definition-list");var u=n(96873);function d({copyText:e,children:t}){const n=null!==t&&void 0!==t?t:"\u2014";return e?r.createElement("div",{className:c("copy-container")},n,r.createElement(u.b,{size:"s",text:e,className:c("copy-button"),view:"flat-secondary"})):n}var f=n(27145),p=n(73633),h=n(99991),m=n(84375);const g=(0,l.om)("help-mark");function v(e){var{buttonRef:t,buttonProps:n={},children:o,className:i}=e,a=(0,f.Tt)(e,["buttonRef","buttonProps","children","className"]);return r.createElement(m.A,Object.assign({},a,{delayClosing:300,className:g(null,i),content:o}),(()=>r.createElement("button",Object.assign({ref:t,type:"button"},n,{className:g("button",n.className)}),r.createElement(h.I,{data:p.A,size:16}))))}var y=n(72837);const b=JSON.parse('{"label_note":"Note"}'),w=JSON.parse('{"label_note":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430"}'),x=(0,y.N)({en:b,ru:w},"DefinitionList");function _({note:e}){if(!e)return null;const t=c("item-note-tooltip");if("string"===typeof e)return r.createElement(v,{className:t,placement:["bottom","top"],buttonProps:{"aria-label":x("label_note")}},e);if("object"===typeof e){const{buttonProps:n}=e,o=(0,f.Tt)(e,["buttonProps"]);return r.createElement(v,Object.assign({className:t,placement:["bottom","top"],buttonProps:Object.assign({"aria-label":x("label_note")},n)},o))}return null}function E({note:e,name:t,direction:n}){const o=e?r.createElement(r.Fragment,null,"\xa0",r.createElement(_,{note:e})):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:c("term-wrapper")},t,o),"horizontal"===n&&r.createElement("div",{className:c("dots")}))}function S({name:e,children:t,copyText:n,note:o}){const{direction:i,keyStyle:s,valueStyle:l}=function(){const e=r.useContext(a);if(void 0===e)throw new Error("useDefinitionListAttributes must be used within DefinitionListProvider");return e}();return r.createElement("div",{className:c("item")},r.createElement("dt",{className:c("term-container"),style:s},r.createElement(E,{direction:i,name:e,note:o})),r.createElement("dd",{className:c("definition"),style:Object.assign(Object.assign({},l),{lineBreak:"string"===typeof t&&(u=20,function(e){return e.split(/\s+/).some((e=>e.length>u))})(t)?"anywhere":void 0})},r.createElement(d,{copyText:n},t)));var u}function k({responsive:e,direction:t="horizontal",nameMaxWidth:n,contentMaxWidth:o,className:a,children:l,qa:u}){const d=function(e){const t=r.Children.toArray(e),n=[];for(const r of t){C(r)?n.push(r):(0,i.m)("[DefinitionList] Only <DefinitionList.Item> components is allowed as children")}return n}(l);return r.createElement(s,{direction:t,nameMaxWidth:n,contentMaxWidth:o},r.createElement("dl",{className:c({responsive:e,vertical:"vertical"===t},a),"data-qa":u},d))}S.displayName="DefinitionListItem";const C=(0,o.g)(S);k.Item=S,k.displayName="DefinitionList"},2198:(e,t,n)=>{"use strict";n.d(t,{l:()=>A});var r=n(59284),o=n(72630),i=n(14794),a=n(18670),s=n(98392),l=n(19225),c=n(69220),u=n(99635),d=n(6826);const f=(0,c.om)("modal");function p({open:e=!1,keepMounted:t=!1,disableBodyScrollLock:n=!1,disableEscapeKeyDown:c,disableOutsideClick:p,disableFocusTrap:h,disableAutoFocus:m,focusTrap:g=!0,autoFocus:v=!0,restoreFocusRef:y,onEscapeKeyDown:b,onEnterKeyDown:w,onOutsideClick:x,onClose:_,onTransitionEnter:E,onTransitionEntered:S,onTransitionExit:k,onTransitionExited:C,children:O,style:N,contentOverflow:T="visible",className:A,contentClassName:I,"aria-labelledby":P,"aria-label":D,container:R,qa:j}){const M=r.useRef(null),L=r.useRef(null),[z,F]=r.useState(!1);(0,i.y)({enabled:!n&&(e||z)});const B=(0,a.s)({enabled:e||z,restoreFocusRef:y,focusTrapped:!0});return(0,u.Z)({open:e,disableEscapeKeyDown:c,disableOutsideClick:p,onEscapeKeyDown:b,onEnterKeyDown:w,onOutsideClick:x,onClose:_,contentRefs:[L],type:"modal"}),r.createElement(o.A,{nodeRef:M,in:e,addEndListener:e=>{var t;return null===(t=M.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,d.L)(f),mountOnEnter:!t,unmountOnExit:!t,appear:!0,onEnter:()=>{F(!0),null===E||void 0===E||E()},onExit:()=>{F(!0),null===k||void 0===k||k()},onEntered:()=>{F(!1),null===S||void 0===S||S()},onExited:()=>{F(!1),null===C||void 0===C||C()}},r.createElement(s.Z,{container:R},r.createElement("div",{ref:M,style:N,className:f({open:e},A),"data-qa":j},r.createElement("div",{className:f("content-aligner")},r.createElement("div",{className:f("content-wrapper")},r.createElement(l.s,{enabled:!h&&g&&e&&!z,autoFocus:!m&&v},r.createElement("div",Object.assign({ref:L,tabIndex:-1,role:"dialog","aria-modal":e,"aria-label":D,"aria-labelledby":P,className:f("content",{"has-scroll":"auto"===T},I)},B),O)))))))}var h=n(81240),m=n(84476),g=n(99991),v=n(72837);const y=JSON.parse('{"close":"Close dialog"}'),b=JSON.parse('{"close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e"}'),w=(0,v.N)({en:y,ru:b},"Dialog"),x=(0,c.om)("dialog-btn-close");function _({onClose:e}){return r.createElement("div",{className:x()},r.createElement(m.$,{view:"flat",size:"l",className:x("btn"),onClick:t=>e(t,{isOutsideClick:!1}),extraProps:{"aria-label":w("close")}},r.createElement(g.I,{data:h.A,size:20})))}const E=(0,c.om)("dialog-body");const S=(0,c.om)("dialog-divider");var k=n(39238);const C=(0,c.om)("dialog-footer");class O extends r.Component{constructor(){super(...arguments),this.errorTooltipRef=r.createRef(),this.handleKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.props.onClickButtonApply&&this.props.onClickButtonApply(e))}}componentDidMount(){this.props.listenKeyEnter&&this.attachKeyDownListeners()}componentDidUpdate(e){!this.props.listenKeyEnter&&e.listenKeyEnter&&this.detachKeyDownListeners(),this.props.listenKeyEnter&&!e.listenKeyEnter&&this.attachKeyDownListeners()}componentWillUnmount(){this.detachKeyDownListeners()}render(){const{onClickButtonCancel:e,onClickButtonApply:t,loading:n,textButtonCancel:o,textButtonApply:i,propsButtonCancel:a,propsButtonApply:s,preset:l,children:c,errorText:u,showError:d,renderButtons:f,className:p}=this.props,h=r.createElement("div",{className:C("button",{action:"cancel"})},r.createElement(m.$,Object.assign({view:i?"flat":"normal",size:"l",width:"max",onClick:e,disabled:n},a),o)),g=r.createElement("div",{className:C("button",{action:"apply"})},r.createElement(m.$,Object.assign({ref:this.errorTooltipRef,type:"submit",view:"action",size:"l",width:"max",onClick:t,loading:n,className:C("button-apply",{preset:l})},s),i),u&&r.createElement(k.z,{open:d,anchorRef:this.errorTooltipRef,placement:["bottom","top"],disableLayer:!0,disablePortal:!0,hasArrow:!0},r.createElement("div",{className:C("error")},u)));return r.createElement("div",{className:C(null,p)},r.createElement("div",{className:C("children")},c),r.createElement("div",{className:C("bts-wrapper")},f?f(g,h):r.createElement(r.Fragment,null,o&&h,i&&g)))}attachKeyDownListeners(){setTimeout((()=>{window.addEventListener("keydown",this.handleKeyDown)}),0)}detachKeyDownListeners(){window.removeEventListener("keydown",this.handleKeyDown)}}O.defaultProps={preset:"default",showError:!1,listenKeyEnter:!1};const N=(0,c.om)("dialog-header");const T=(0,c.om)("dialog");class A extends r.Component{constructor(){super(...arguments),this.handleCloseButtonClick=e=>{const{onClose:t}=this.props;t(e.nativeEvent,"closeButtonClick")}}render(){const{container:e,children:t,open:n,disableBodyScrollLock:o,disableEscapeKeyDown:i,disableOutsideClick:a,disableFocusTrap:s,disableAutoFocus:l,restoreFocusRef:c,keepMounted:u,size:d,contentOverflow:f="visible",className:h,modalClassName:m,hasCloseButton:g,onEscapeKeyDown:v,onEnterKeyDown:y,onOutsideClick:b,onClose:w,onTransitionEnter:x,onTransitionEntered:E,onTransitionExit:S,onTransitionExited:k,"aria-label":C,"aria-labelledby":O,qa:N}=this.props;return r.createElement(p,{open:n,contentOverflow:f,disableBodyScrollLock:o,disableEscapeKeyDown:i,disableOutsideClick:a,disableFocusTrap:s,disableAutoFocus:l,restoreFocusRef:c,keepMounted:u,onEscapeKeyDown:v,onEnterKeyDown:y,onOutsideClick:b,onClose:w,onTransitionEnter:x,onTransitionEntered:E,onTransitionExit:S,onTransitionExited:k,className:T("modal",m),"aria-label":C,"aria-labelledby":O,container:e,qa:N},r.createElement("div",{className:T({size:d,"has-close":g,"has-scroll":"auto"===f},h)},t,g&&r.createElement(_,{onClose:this.handleCloseButtonClick})))}}A.defaultProps={disableBodyScrollLock:!1,disableEscapeKeyDown:!1,disableOutsideClick:!1,keepMounted:!1,hasCloseButton:!0},A.Footer=O,A.Header=function(e){const{caption:t="",insertBefore:n,insertAfter:o,className:i,id:a}=e;return r.createElement("div",{className:N(null,i)},n,r.createElement("div",{className:N("caption"),id:a},t),o)},A.Body=function(e){const{className:t,hasBorders:n=!1}=e;return r.createElement("div",{className:E({"has-borders":n},t)},e.children)},A.Divider=function({className:e}){return r.createElement("div",{className:S(null,e)})}},40569:(e,t,n)=>{"use strict";n.d(t,{r:()=>F});var r=n(59284),o=n(7450),i=n(46734),a=n(84476),s=n(99991),l=n(69220);const c=(0,l.om)("dropdown-menu"),u=r.createContext({toggle(){},data:void 0});u.displayName="DropdownMenu.Context";var d=n(27145),f=n(9187),p=n(38602),h=n(90826);const m=(0,l.om)("menu"),g=r.forwardRef((function({label:e,children:t,style:n,className:o,qa:i},a){const s=(0,h.u)();return r.createElement("li",{ref:a,className:m("list-group-item")},r.createElement("div",{style:n,className:m("group",o),"data-qa":i},e&&r.createElement("div",{id:s,className:m("group-label")},e),r.createElement("ul",{role:"group","aria-labelledby":s,className:m("group-list")},t)))}));var v=n(11669);const y=(0,l.om)("menu"),b=r.forwardRef((function({icon:e,iconStart:t=e,iconEnd:n,title:o,disabled:a,active:s,selected:l,href:c,target:u,rel:d,onClick:f,style:p,className:h,theme:m,extraProps:g,children:b,qa:w},x){const{onKeyDown:_}=(0,i.N)(f),E=r.useCallback((e=>{v.o.publish({componentId:"MenuItem",eventId:"click",domEvent:e})}),[]),S={role:"menuitem",onKeyDown:f&&!a?_:void 0},k={title:o,onClick:a?void 0:f,onClickCapture:a?void 0:E,style:p,tabIndex:a?-1:0,className:y("item",{disabled:a,active:s,selected:l,theme:m,interactive:Boolean(f)||Boolean(c)},h),"data-qa":w},C=[t&&r.createElement("div",{key:"icon-start",className:y("item-icon")},t),r.createElement("div",{key:"content",className:y("item-content")},b),n&&r.createElement("div",{key:"icon-end",className:y("item-icon-end")},n)];let O;return O=c?r.createElement("a",Object.assign({},S,g,k,{href:c,target:u,rel:d}),C):r.createElement("div",Object.assign({},S,g,k),C),r.createElement("li",{ref:x,className:y("list-item")},O)})),w=(0,l.om)("menu"),x=r.forwardRef((function({size:e="m",children:t,style:n,className:o,qa:i},a){return r.createElement("ul",{ref:a,role:"menu",style:n,className:w({size:e},o),"data-qa":i},t)}));x.Item=b,x.Group=g;var _=n(54245);function E(e,t,n=1,r){const o=(e.length+t-n%e.length)%e.length;return r&&r(e[o])?E(e,o,1,r):o}function S(e,t,n=1,r){const o=(t+n)%e.length;return r&&r(e[o])?S(e,o,1,r):o}var k=n(39238);const C=[],O=r.createContext({activeMenuPath:C,setActiveMenuPath:()=>{},anchorRef:{current:null}}),N=({anchorRef:e,children:t,disabled:n})=>{const[o,i]=r.useState(C);r.useEffect((()=>{n&&i(C)}),[n]);const a=r.useMemo((()=>({activeMenuPath:o,setActiveMenuPath:i,anchorRef:e})),[o,e]);return r.createElement(O.Provider,{value:a},t)},T={text:"",action:()=>{},path:[]};function A(e){return e===T}function I(e){return e.disabled||A(e)}function P(e){var t;return null!==(t=null===e||void 0===e?void 0:e.join(" "))&&void 0!==t?t:""}const D=({items:e,open:t,anchorRef:n,onClose:o,size:i,menuProps:a,children:s,popupProps:l,path:d=[]})=>{const{toggle:f,data:p}=r.useContext(u),{activeMenuPath:h,setActiveMenuPath:m,anchorRef:g}=r.useContext(O),v=d.length>0,y=r.useCallback((()=>{m(d.slice(0,d.length-1))}),[m,d]),b=r.useCallback((e=>{var t;m(d),null===(t=null===l||void 0===l?void 0:l.onMouseEnter)||void 0===t||t.call(l,e)}),[d,l,m]),w=r.useCallback((e=>{var t;y(),null===(t=null===l||void 0===l?void 0:l.onMouseLeave)||void 0===t||t.call(l,e)}),[y,l]),_=r.useCallback(((e,t)=>{var n;e.items&&e.path?m(e.path):(null===(n=e.action)||void 0===n||n.call(e,t,p),f(!1))}),[p,m,f]),C=r.useCallback(((t,n)=>{switch(n.key){case"Escape":return v&&(n.stopPropagation(),null===y||void 0===y||y()),!1;case"Enter":case" ":{const r=e[t],o=null===r||void 0===r?void 0:r.items;return(v||o)&&(n.stopPropagation(),n.preventDefault()),r&&_(r,n),!1}}return!0}),[y,_,v,e]),N=t&&P(d)===P(h),{activeItemIndex:T,setActiveItemIndex:D,reset:R}=function({items:e,skip:t,pageSize:n,processHomeKey:o=!0,processEndKey:i=!0,anchorRef:a,disabled:s=!1,initialValue:l=-1,onAnchorKeyDown:c}){const[u,d]=r.useState(l),f=r.useCallback((()=>{d(l)}),[l]);return r.useEffect((()=>{e&&f()}),[e,f]),r.useLayoutEffect((()=>{if(s)return;if(!e.some((e=>!(null===t||void 0===t?void 0:t(e)))))return;const r=null===a||void 0===a?void 0:a.current;if(!r)return;const l=r=>{if(!1!==(null===c||void 0===c?void 0:c(u,r)))switch(r.key){case"ArrowDown":r.preventDefault(),d((n=>S(e,n,1,t)));break;case"ArrowUp":r.preventDefault(),d((n=>E(e,n,1,t)));break;case"PageDown":if(!n)return;r.preventDefault(),d((r=>S(e,r,n,t)));break;case"PageUp":if(!n)return;r.preventDefault(),d((r=>E(e,r,n,t)));break;case"Home":if(!o)return;r.preventDefault(),d((n=>E(e,n,n,t)));break;case"End":if(!i)return;r.preventDefault(),d((n=>E(e,n,n+1,t)))}};return r.addEventListener("keydown",l),()=>{r.removeEventListener("keydown",l)}}),[u,a,s,e,c,n,i,o,t]),{activeItemIndex:u,setActiveItemIndex:d,reset:f}}({items:e,skip:I,anchorRef:g,onAnchorKeyDown:C,disabled:!N,initialValue:v?0:-1});return r.useEffect((()=>{t||R()}),[t,R]),r.createElement(k.z,Object.assign({open:t,anchorRef:n,onClose:o},l,{onMouseEnter:b,onMouseLeave:w}),s||r.createElement(x,Object.assign({className:c("menu"),size:i},a),e.map(((e,n)=>{var i;const a=N&&T===n,s=t&&!a&&0!==h.length&&P(e.path)===P(h.slice(0,e.path.length)),u=Object.assign(Object.assign({},e.extraProps),{onMouseEnter:()=>D(n)});return r.createElement(M,Object.assign({key:n,className:c("menu-item",{separator:A(e),"active-parent":s,"with-submenu":Boolean(null===(i=e.items)||void 0===i?void 0:i.length)},e.className),selected:a,popupProps:l,closeMenu:o},e,{extraProps:u}))}))))};function R(e,t){var n;return null!==(n=null===e||void 0===e?void 0:e.every(((e,n)=>e===(null===t||void 0===t?void 0:t[n]))))&&void 0!==n&&n}function j({items:e,path:t}){const{activeMenuPath:n,setActiveMenuPath:o}=r.useContext(O),i=Boolean(t)&&Boolean(null===e||void 0===e?void 0:e.length),a=r.useCallback((()=>{t&&o(t.slice(0,t.length-1))}),[t,o]),s=r.useCallback((()=>{t&&o(t)}),[t,o]);return{hasSubmenu:i,isSubmenuOpen:R(t,n),openSubmenu:s,closeSubmenu:a}}const M=e=>{var{text:t,action:n,items:o,popupProps:i,closeMenu:a,children:l,path:h}=e,m=(0,d.Tt)(e,["text","action","items","popupProps","closeMenu","children","path"]);const{toggle:g,data:v}=r.useContext(u),y=r.useRef(null),b=(0,_.j)(),{hasSubmenu:w,isSubmenuOpen:E,closeSubmenu:S,openSubmenu:k}=j({items:o,path:h}),C=r.useCallback((()=>{const e=()=>{a?a():g(!1)};w?(S(),requestAnimationFrame(e)):e()}),[a,S,w,g]),O=r.useCallback((e=>{w||(null===n||void 0===n||n(e,v),C())}),[n,v,C,w]),N=r.useMemo((()=>Object.assign(Object.assign({},m.extraProps),{onMouseEnter:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseEnter)||void 0===n||n.call(t,e),w&&k()},onMouseLeave:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseLeave)||void 0===n||n.call(t,e),w&&S()}})),[m.extraProps,S,w,k]),T=r.useMemo((()=>"rtl"===b?["left-start","right-start"]:["right-start","left-start"]),[b]),A=r.useMemo((()=>w?r.createElement(s.I,{data:"rtl"===b?f.A:p.A,size:10,className:c("sub-menu-arrow")}):m.iconEnd),[w,b,m.iconEnd]);return r.createElement(r.Fragment,null,r.createElement(x.Item,Object.assign({ref:y},m,{extraProps:N,onClick:O,iconEnd:A}),t||l),w&&o&&r.createElement(D,{popupProps:Object.assign(Object.assign({},i),{className:c("sub-menu",null===i||void 0===i?void 0:i.className),placement:T}),items:o,path:h,open:E,anchorRef:y,onClose:C}))};function L(e,t,n,o=void 0!==e&&void 0!==t){const i=function(e,t){const[n,o]=r.useState(e);return[n,r.useCallback((e=>{"function"===typeof e?o((n=>{const r=e(n);return null===t||void 0===t||t(r),r})):(null===t||void 0===t||t(e),o(e))}),[t])]}(e||n,t);return o?[e,t]:i}function z(e,t,n=[],r=0){const o=[];let i=!1,a=r;for(const s of e)if(Array.isArray(s)){const e=z(s,t,n,a);0!==o.length&&o.push(t),o.push(...e),a+=e.length,i=!0}else{if(s.hidden)continue;i&&o.push(t);const e=Object.assign(Object.assign({},s),{path:[...n,a++]});s.items&&(e.items=z(s.items,t,e.path)),o.push(e),i=!1}return o}const F=Object.assign((({items:e=[],size:t="m",icon:n=r.createElement(s.I,{data:o.A}),open:l,onOpenToggle:d,hideOnScroll:f=!0,data:p,disabled:h,switcher:m,renderSwitcher:g,switcherWrapperClassName:v,defaultSwitcherProps:y,defaultSwitcherClassName:b,onSwitcherClick:w,menuProps:x,popupProps:_,children:E})=>{const S=r.useRef(null),{isPopupShown:k,togglePopup:C,closePopup:O}=function(e,t,n){const[o,i]=L(e,t,!1),a=r.useCallback((e=>{i((t=>"boolean"===typeof e?e:!t))}),[i]),s=r.useCallback((()=>{i(!1)}),[i]);return r.useEffect((()=>{n&&o&&s()}),[s,n,o]),{isPopupShown:o,togglePopup:a,closePopup:s}}(l,d,h);!function(e,t,n){r.useEffect((()=>{if(n)return;const r=n=>{n.target.contains(t.current)&&e(n)};return document.addEventListener("scroll",r,!0),()=>{document.removeEventListener("scroll",r,!0)}}),[t,e,n])}(O,S,!k||!f);const A=r.useMemo((()=>({toggle:C,data:p})),[p,C]),I=r.useMemo((()=>z(e,T)),[e]),P=r.useCallback((e=>{h||(null===w||void 0===w||w(e),C())}),[h,w,C]),{onKeyDown:R}=(0,i.N)(P),j=r.useMemo((()=>({onClick:P,onKeyDown:R})),[P,R]);return r.createElement(u.Provider,{value:A},r.createElement("div",Object.assign({ref:S,className:c("switcher-wrapper",v)},g?{}:j),(null===g||void 0===g?void 0:g(j))||m||r.createElement(a.$,Object.assign({view:"flat",size:t},y,{className:c("switcher-button",b),disabled:h}),n)),r.createElement(N,{anchorRef:S,disabled:!k},r.createElement(D,{items:I,open:k,size:t,menuProps:x,anchorRef:S,onClose:O,popupProps:_},E)))}),{Item:M})},99991:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(59284),o=n(69220);const i={"aria-hidden":!0};function a(e){return"object"===typeof e}function s(e){return"string"===typeof e}const l=(0,o.om)("icon"),c=r.forwardRef((({data:e,width:t,height:n,size:o,className:u,fill:d="currentColor",stroke:f="none",qa:p},h)=>{let m,g,v;if(o&&(m=o,g=o),t&&(m=t),n&&(g=n),a(e))({viewBox:v}=e);else if(s(e))v=function(e){const t=e.match(/viewBox=(["']?)([\d\s,-]+)\1/);return t?t[2]:void 0}(e);else if(function(e){return("object"===typeof e||"function"===typeof e)&&"defaultProps"in e}(e))({viewBox:v}=e.defaultProps);else if(function(e){return"function"===typeof e&&(!e.prototype||!e.prototype.render)}(e)){const t=e({});t&&({viewBox:v}=t.props)}if(v&&(!m||!g)){const e=v.split(/\s+|\s*,\s*/);m||(m=e[2]),g||(g=e[3])}const y=Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:m,height:g,className:l(null,u),fill:d,stroke:f,"data-qa":p},i);if(s(e)){const t=function(e){return e.replace(/<svg[^>]*>/,(e=>e.replace(/(width|height)=(["']?)\d+\2/g,"").replace(/(\s){2,}\b/g,"$1").replace(/(\s)+>/g,">")))}(e);return r.createElement("svg",Object.assign({},y,{ref:h,dangerouslySetInnerHTML:{__html:t}}))}if(a(e)){const t=c.prefix+(e.url||`#${e.id}`);return r.createElement("svg",Object.assign({},y,{viewBox:v,ref:h}),r.createElement("use",{href:t,xlinkHref:t}))}const b=e;return b.defaultProps&&(b.defaultProps.width=b.defaultProps.height=void 0),r.createElement("svg",Object.assign({},y,{ref:h}),r.createElement(b,{width:void 0,height:void 0}))}));c.displayName="Icon",c.prefix=""},47665:(e,t,n)=>{"use strict";n.d(t,{J:()=>u});var r=n(59284),o=n(81240),i=n(48699),a=n(46700),s=n(99991);const l=(0,n(69220).om)("label"),c={xs:{copyIconSize:12,closeIconSize:12},s:{copyIconSize:14,closeIconSize:14},m:{copyIconSize:16,closeIconSize:16}},u=r.forwardRef((function(e,t){const{type:n="default",theme:u="normal",size:d="xs",title:f,icon:p,children:h,onCloseClick:m,className:g,disabled:v,copyText:y,closeButtonLabel:b,copyButtonLabel:w,interactive:x=!1,value:_,onCopy:E,onClick:S,qa:k}=e,C=Boolean(""!==h&&r.Children.count(h)>0),O="close"===n&&C,N="copy"===n&&C,T="function"===typeof S,A=Boolean(N&&y),I=(T||A||x)&&!v,{copyIconSize:P,closeIconSize:D}=c[d],R=p&&r.createElement("div",{className:l("addon",{side:C?"start":void 0,type:"icon"})},p),j=C&&r.createElement("div",{className:l("text")},r.createElement("div",{className:l("content")},h),Boolean(_)&&r.createElement("div",{className:l("value")},r.createElement("div",{className:l("separator")},":"),r.createElement("div",{className:l("key")},_))),M=e=>{let n;return N?n=r.createElement("button",{type:"button","aria-label":w||void 0,onClick:T?S:void 0,disabled:v,className:l("addon",{side:"end",type:"button"})},r.createElement(i.u,{status:e||"pending",size:P})):O&&(n=r.createElement("button",{type:"button",onClick:m,"aria-label":b||void 0,disabled:v,className:l("addon",{side:"end",type:"button"})},r.createElement(s.I,{size:D,data:o.A}))),r.createElement("div",{ref:t,className:l({theme:u,size:d,interactive:I,disabled:v},g),title:f,"data-qa":k},R,T?r.createElement("button",{disabled:v,type:"button",onClick:S,className:l("main-button")},j):j,n)};return A&&y&&!T?r.createElement(a.$,{text:y,onCopy:E,timeout:1e3},(e=>M(e))):M()}))},67884:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(59284),o=n(69220),i=n(11669);const a=(0,o.om)("link"),s=r.forwardRef((function({view:e="normal",visitable:t,underline:n,href:o,target:s,rel:l,title:c,children:u,extraProps:d,onClick:f,onFocus:p,onBlur:h,id:m,style:g,className:v,qa:y},b){const w={title:c,onClick:f,onClickCapture:r.useCallback((e=>{i.o.publish({componentId:"Link",eventId:"click",domEvent:e})}),[]),onFocus:p,onBlur:h,id:m,style:g,className:a({view:e,visitable:t,underline:n},v),"data-qa":y},x="_blank"!==s||l?l:"noopener noreferrer";return r.createElement("a",Object.assign({},d,w,{ref:b,href:o,target:s,rel:x}),u)}))},40091:(e,t,n)=>{"use strict";n.d(t,{B:()=>le});var r=n(59284),o=n(62060),i=n.n(o),a=n(38469),s=n.n(a),l=n(53202);let c;c="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let u=null,d=null;const f=c.clearTimeout,p=c.setTimeout,h=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame,m=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame;function g(e){let t,n,r,o,i,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&u(this.__resizeRAF__),this.__resizeRAF__=d((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){p=c[n],l="-"+p.toLowerCase()+"-",r=f[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,u){if(l)i.attachEvent("onresize",u);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,u=c.getComputedStyle(i);u&&"static"===u.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const f=l.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(d),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==h||null==m?(u=f,d=function(e){return p(e,20)}):(u=function([e,t]){h(e),f(t)},d=function(e){const t=m((function(){f(n),e()})),n=p((function(){h(t),e()}),20);return[t,n]});class v extends r.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=g(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:o=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:p,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return o||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),i||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),a&&(y=!1),(0,r.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}var y=n(58168),b=n(9417),w=n(25540),x=n(77995),_="object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function E(e){cancelAnimationFrame(e.id)}function S(e,t){var n=_();var r={id:requestAnimationFrame((function o(){_()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var k=-1;function C(e){if(void 0===e&&(e=!1),-1===k||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),k=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return k}var O=null;function N(e){if(void 0===e&&(e=!1),null===O||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?O="positive-descending":(t.scrollLeft=1,O=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),O}return O}var T=function(e,t){return e};function A(e){var t,n=e.getItemOffset,o=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=c(r.props,(0,b.A)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,b.A)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=(0,x.A)((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=(0,x.A)((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,o=r.props,a=o.direction,s=o.itemSize,l=o.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),f=i(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,h="rtl"===a,m=p?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=(0,x.A)((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(N()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&E(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=S(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}(0,w.A)(t,e),t.getDerivedStateFromProps=function(e,t){return I(e,t),d(e),null};var f=t.prototype;return f.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?C():0:l.scrollHeight>l.clientHeight?C():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,s))},f.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},f.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(N()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&E(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,c=e.innerTagName,u=e.itemCount,d=e.itemData,f=e.itemKey,p=void 0===f?T:f,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,b=e.useIsScrolling,w=e.width,x=this.state.isScrolling,_="horizontal"===i||"horizontal"===h,E=_?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),k=S[0],C=S[1],O=[];if(u>0)for(var N=k;N<=C;N++)O.push((0,r.createElement)(t,{data:d,key:p(N,d),index:N,isScrolling:b?x:void 0,style:this._getItemStyle(N)}));var A=o(this.props,this._instanceProps);return(0,r.createElement)(m||g||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:(0,y.A)({position:"relative",height:a,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},(0,r.createElement)(l||c||"div",{children:O,ref:s,style:{height:_?"100%":A,pointerEvents:x?"none":void 0,width:_?A:"100%"}}))},f._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"===typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var c=s(this.props,a,this._instanceProps),u=l(this.props,c,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),f=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+f)),c,u]},t}(r.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var I=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},P=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var c=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return o[t]},D=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=P(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},R=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&P(e,n,t).offset<r;)n+=i,i*=2;return D(e,t,Math.min(n,o-1),Math.floor(n/2),r)},j=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},M=A({getItemOffset:function(e,t,n){return P(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:j,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=P(e,t,o),f=j(e,o),p=Math.max(0,Math.min(f-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===n&&(n=r>=h-u&&r<=p+u?"auto":"center"),n){case"start":return p;case"end":return h;case"center":return Math.round(h+(p-h)/2);default:return r>=h&&r<=p?r:r<h?h:p}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?D(e,t,o,0,n):R(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=P(e,t,r),d=n+c,f=u.offset+u.size,p=t;p<a-1&&f<d;)p++,f+=P(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});var L=n(28664),z=n(11507),F=n(54245),B=n(69220),U=n(10176),q=n(29322),$=n(74417);const H=(0,B.om)("list"),W=e=>{const t=r.useRef(null);return(0,q.v)({element:t.current,onIntersect:null===e||void 0===e?void 0:e.onIntersect}),r.createElement("div",{ref:t,className:H("loading-indicator")},r.createElement($.a,{qa:"list-loader"}))};var V=n(66821),K=n(99991),G=n(11669),Y=n(359);const Z="list-active-item",Q=[Y.D.TAB],J=(0,B.om)("list"),X=e=>String(e);function ee(e,t){return t?Object.assign(Object.assign({},null===e||void 0===e?void 0:e.draggableProps.style),t):null===e||void 0===e?void 0:e.draggableProps.style}class te extends r.Component{constructor(){super(...arguments),this.node=null,this.getNode=()=>this.node,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.onClick=e=>{this.props.onClick&&this.props.onClick(this.props.item,this.props.itemIndex,!1,e)},this.onClickCapture=e=>{te.publishEvent({domEvent:e,eventId:"click"})},this.onMouseEnter=()=>!this.props.item.disabled&&this.props.onActivate(this.props.itemIndex)}render(){var e,t;const{item:n,height:o,style:i,sortable:a,sortHandleAlign:s,itemClassName:l,selected:c,active:u,role:d="listitem",isDragging:f=!1}=this.props,p=Object.assign(Object.assign({height:o},i),{right:void 0});return r.createElement("div",Object.assign({role:d,"aria-selected":c,"aria-disabled":n.disabled,"data-qa":u?Z:void 0,className:J("item",{sortable:a,active:u,selected:c,inactive:n.disabled,"sort-handle-align":s,dragging:f},l)},null===(e=this.props.provided)||void 0===e?void 0:e.draggableProps,null===(t=this.props.provided)||void 0===t?void 0:t.dragHandleProps,{style:ee(this.props.provided,p),onClick:n.disabled?void 0:this.onClick,onClickCapture:n.disabled?void 0:this.onClickCapture,onMouseEnter:this.onMouseEnter,ref:this.setRef,id:`${this.props.listId}-item-${this.props.itemIndex}`}),this.renderSortIcon(),this.renderContent())}renderSortIcon(){const{sortable:e}=this.props;return e?r.createElement("div",{className:J("item-sort-icon")},r.createElement(K.I,{data:V.A,size:12})):null}renderContent(){const{renderItem:e=X,item:t,active:n,itemIndex:o}=this.props;return r.createElement("div",{className:J("item-content")},e(t,n,o))}}te.publishEvent=G.o.withEventPublisher("List");var ne=n(36613),re=n.n(ne);function oe(e){return re()(e).reduce(((e,t)=>(e[t]=r.createRef(),e)),{})}class ie extends r.Component{static getDerivedStateFromProps({itemCount:e},t){return e===Object.keys(t.refsList).length?t:{refsList:oe(e)}}constructor(e){super(e),this.node=null,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.state={refsList:oe(e.itemCount)}}render(){const e=r.Children.map(this.props.children,((e,t)=>r.cloneElement(e,{ref:this.state.refsList[t]})));return r.createElement("div",{ref:this.setRef},e)}scrollToItem(e){var t,n,r,o;const i=null===(t=this.state.refsList[e])||void 0===t?void 0:t.current;if(i&&"function"===typeof i.getNode){const e=i.getNode();e&&((null===(r=(n=this.props).onScrollToItem)||void 0===r?void 0:r.call(n,e))||null===(o=e.scrollIntoView)||void 0===o||o.call(e,{block:"nearest"}))}}}const ae=(0,B.om)("list"),se=r.forwardRef(((e,t)=>r.createElement(M,Object.assign({ref:t},e,{direction:(0,F.j)()}))));se.displayName="ListContainer";class le extends r.Component{constructor(){super(...arguments),this.state={items:this.props.items,activeItem:this.props.activeItemIndex,filter:""},this.refFilter=r.createRef(),this.refContainer=r.createRef(),this.blurTimer=null,this.loadingItem={value:"__LIST_ITEM_LOADING__",disabled:!1},this.uniqId=(0,U.zm)(),this.onKeyDown=e=>{const{activeItem:t,pageSize:n}=this.state;if(Q.includes(e.key))return;const r=e.target instanceof HTMLInputElement;switch(e.key){case"ArrowDown":this.handleKeyMove(e,1,-1);break;case"ArrowUp":this.handleKeyMove(e,-1);break;case"PageDown":this.handleKeyMove(e,null!==n&&void 0!==n?n:10);break;case"PageUp":this.handleKeyMove(e,-(null!==n&&void 0!==n?n:10));break;case"Home":if(r)return;this.handleKeyMove(e,this.state.items.length-(t||0));break;case"End":if(r)return;this.handleKeyMove(e,-(t||0)-1);break;case"Enter":"number"===typeof t&&this.props.onItemClick&&this.props.onItemClick(this.state.items[t],t,!0,e);break;default:this.refFilter.current&&this.refFilter.current.focus()}},this.renderItemContent=(e,t,n)=>{const{onLoadMore:o}=this.props;return s()(e)&&"value"in e&&e.value===this.loadingItem.value?r.createElement(W,{onIntersect:0===n?void 0:o}):this.props.renderItem?this.props.renderItem(e,t,n):X(e)},this.renderItem=({index:e,style:t,height:n,provided:o,isDragging:i})=>{var a;const{sortHandleAlign:s,role:l}=this.props,{items:c,activeItem:u}=this.state,d=this.getItemsWithLoading()[e],f=this.props.sortable&&c.length>1&&!this.getFilter(),p=e===u||e===this.props.activeItemIndex,h=Array.isArray(this.props.selectedItemIndex)?this.props.selectedItemIndex.includes(e):e===this.props.selectedItemIndex;return r.createElement(te,{key:e,style:t,height:n,itemIndex:e,item:d,sortable:f,sortHandleAlign:s,renderItem:this.renderItemContent,itemClassName:this.props.itemClassName,active:p,selected:h,onActivate:this.onItemActivate,onClick:this.props.onItemClick,role:"listbox"===l?"option":"listitem",listId:null!==(a=this.props.id)&&void 0!==a?a:this.uniqId,provided:o,isDragging:i})},this.renderVirtualizedItem=({index:e,style:t})=>r.createElement(l.sx,{draggableId:String(e),index:e,key:`item-key-${e}`},(n=>this.renderItem({index:e,style:t,provided:n}))),this.filterItem=e=>t=>String(t).includes(e),this.scrollToIndex=e=>{const t=this.refContainer.current;t&&t.scrollToItem(e)},this.deactivate=()=>{this.blurTimer&&(this.blurTimer=null,this.props.deactivateOnLeave&&this.setState({activeItem:void 0}))},this.handleFocus=()=>{this.blurTimer&&(clearTimeout(this.blurTimer),this.blurTimer=null)},this.handleBlur=()=>{this.blurTimer||(this.blurTimer=setTimeout(this.deactivate,50))},this.onUpdateFilterInternal=e=>{const{items:t,filterItem:n=this.filterItem,onFilterEnd:r}=this.props;this.setState({filter:e,items:e?t.filter(n(e)):t},(()=>{r&&r({items:this.state.items})}))},this.onFilterUpdate=e=>{this.props.onFilterUpdate?this.props.onFilterUpdate(e):this.onUpdateFilterInternal(e)},this.onItemsRendered=({visibleStartIndex:e,visibleStopIndex:t})=>{this.setState({pageSize:t-e})},this.onItemActivate=e=>{this.state.sorting||this.activateItem(e,!1)},this.onMouseLeave=()=>{this.handleBlur()},this.onSortStart=()=>{this.setState({sorting:!0})},this.onSortEnd=e=>{if(!e.destination)return void this.setState({sorting:!1});if(e.source.index===e.destination.index)return void this.setState({sorting:!1});const t=e.source.index,n=e.destination.index;this.props.onSortEnd&&this.props.onSortEnd({oldIndex:t,newIndex:n});const r=((e,t,n)=>{const r=Array.from(e),[o]=r.splice(t,1);return r.splice(n,0,o),r})(this.getItems(),t,n);this.setState({activeItem:n,items:r,sorting:!1})},this.getItemHeight=e=>{const{itemHeight:t}=this.props;if("function"===typeof t){const{items:n}=this.state;return t(n[e],e)}return t},this.getVirtualizedItemHeight=e=>this.getItemHeight(e)||28}static moveListElement(e,t,n){if(t!==n){const[r]=e.splice(t,1);e.splice(n,0,r)}return e}static findNextIndex(e,t,n){const r=e.length;let o=(t+r)%r;for(let i=0;i<r;i+=1){if(e[o]&&!e[o].disabled)return o;o=(o+r+n)%r}}componentDidMount(){this.activateItem(this.props.activeItemIndex,!0)}componentDidUpdate(e,t){if(!i()(this.props.items,e.items)){const e=this.getFilter();e&&!this.props.onFilterUpdate?this.onUpdateFilterInternal(e):this.setState({items:this.props.items})}this.props.activeItemIndex!==e.activeItemIndex&&this.activateItem(this.props.activeItemIndex),this.props.onChangeActive&&this.state.activeItem!==t.activeItem&&this.props.onChangeActive(this.state.activeItem)}componentWillUnmount(){this.blurTimer=null}render(){const{id:e,emptyPlaceholder:t,virtualized:n,className:o,itemsClassName:i,qa:a,role:s="list"}=this.props,{items:l}=this.state;return r.createElement(z.G.Consumer,null,(({mobile:c})=>r.createElement("div",{className:ae({mobile:c},o),"data-qa":a,tabIndex:-1,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.onKeyDown},this.renderFilter(),r.createElement("div",{id:e,className:ae("items",{virtualized:n},i),style:this.getItemsStyle(),onMouseLeave:this.onMouseLeave,role:s},this.renderItems(),0===l.length&&Boolean(t)&&r.createElement("div",{className:ae("empty-placeholder")},t)))))}getItems(){return this.state.items}getItemsWithLoading(){return this.props.sortable?this.getItems():this.props.loading?[...this.state.items,this.loadingItem]:this.getItems()}getActiveItem(){return"number"===typeof this.state.activeItem?this.state.activeItem:null}activateItem(e,t=!0){this.setState({activeItem:e},(()=>{"number"===typeof e&&t&&this.scrollToIndex(e)}))}renderFilter(){const{size:e,filterable:t,filter:n=this.state.filter,filterPlaceholder:o,filterClassName:i="",autoFocus:a}=this.props;return t?r.createElement("div",{className:ae("filter",i)},r.createElement(L.k,{controlRef:this.refFilter,size:e,placeholder:o,value:n,hasClear:!0,onUpdate:this.onFilterUpdate,autoFocus:a})):null}renderSimpleContainer(){const{sortable:e}=this.props,t=this.getItemsWithLoading();return e?r.createElement(l.JY,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.gL,{droppableId:"droppable",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(e=>r.createElement(ie,{ref:this.refContainer,itemCount:t.length,provided:e,onScrollToItem:this.props.onScrollToItem},t.map(((e,t)=>r.createElement(l.sx,{draggableId:String(t),index:t,key:`item-key-${t}`},((e,n)=>this.renderItem({index:t,isDragging:n.isDragging,provided:e,height:this.getItemHeight(t)}))))))))):r.createElement(ie,{itemCount:t.length,ref:this.refContainer,onScrollToItem:this.props.onScrollToItem},t.map(((e,t)=>this.renderItem({index:t,height:this.getItemHeight(t)}))))}renderVirtualizedContainer(){const e=[...this.getItemsWithLoading()];return this.props.sortable?r.createElement(l.JY,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.gL,{droppableId:"droppable",mode:"virtual",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(t=>r.createElement(v,null,(({width:n,height:o})=>r.createElement(se,{ref:this.refContainer,outerRef:t.innerRef,width:n,height:o,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderVirtualizedItem)))))):r.createElement(v,null,(({width:t,height:n})=>r.createElement(se,{ref:this.refContainer,width:t,height:n,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderItem)))}renderItems(){return this.props.virtualized?this.renderVirtualizedContainer():this.renderSimpleContainer()}getFilter(){const{filter:e=this.state.filter}=this.props;return e}getItemsStyle(){let{itemsHeight:e}=this.props;return"function"===typeof e&&(e=e(this.state.items)),e?{height:e}:void 0}handleKeyMove(e,t,n=0){const{activeItem:r=n}=this.state;e.preventDefault();const o=this.getItemsWithLoading();this.activateItem(le.findNextIndex(o,r+t,Math.sign(t)))}}le.defaultProps={items:[],itemClassName:"",filterable:!0,sortable:!1,virtualized:!0,deactivateOnLeave:!0}},74417:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(59284);const o=(0,n(69220).om)("loader");function i({size:e="s",className:t,qa:n}){return r.createElement("div",{className:o({size:e},t),"data-qa":n},r.createElement("div",{className:o("left")}),r.createElement("div",{className:o("center")}),r.createElement("div",{className:o("right")}))}},84375:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(59284),o=n(81240),i=n(90826),a=n(84476),s=n(99991),l=n(39238),c=n(54245),u=n(27629);const d=(0,n(69220).om)("popover"),f=(e,t=!1)=>{switch(e){case"special":return t?"normal-contrast":"flat-contrast";case"announcement":return t?"normal-contrast":"outlined";default:return t?"normal":"flat"}},p=({theme:e,tooltipActionButton:t,tooltipCancelButton:n})=>t||n?r.createElement("div",{className:d("tooltip-buttons")},t&&r.createElement(a.$,{view:f(e,!0),width:"max",onClick:t.onClick,className:d("tooltip-button")},t.text),n&&r.createElement(a.$,{view:f(e,!1),width:"max",onClick:n.onClick,className:d("tooltip-button")},n.text)):null,h=({secondary:e,htmlContent:t,content:n,className:o})=>t||n?t?r.createElement("div",{className:d("tooltip-content",{secondary:e},o),dangerouslySetInnerHTML:{__html:t}}):n?r.createElement("div",{className:d("tooltip-content",{secondary:e},o)},n):null:null;var m=n(67884);const g=({links:e})=>0===e.length?null:r.createElement("div",{className:d("tooltip-links")},e.map(((e,t)=>{const{text:n,href:o,target:i="_blank",onClick:a}=e;return r.createElement(r.Fragment,{key:`link-${t}`},r.createElement(m.N,{href:o,target:i,onClick:a,className:d("tooltip-link")},n),r.createElement("br",null))})));var v=n(46734);const y=({open:e,openOnHover:t,disabled:n,className:o,openTooltip:i,closeTooltip:a,closedManually:s,onClick:l,children:c})=>{const u=async r=>{if(n||e&&t)return;if(!(!l||await l(r)))return;e?(a(),s.current=!0):(i(),s.current=!1)},{onKeyDown:d}=(0,v.N)(u);return"function"===typeof c?r.createElement(r.Fragment,null,c({onClick:u,onKeyDown:d,open:e})):r.createElement("div",{className:o,onClick:u,onKeyDown:l?d:void 0},c)};var b=n(63291);const w=({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:o,delayOpening:i,delayClosing:a,behavior:s,shouldBeOpen:l})=>{const c=r.useRef(null),u=r.useRef(null),[d,f]=r.useState(e),p=r.useCallback((()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[]),h=r.useCallback((()=>{u.current&&(clearTimeout(u.current),u.current=null)}),[]);r.useEffect((()=>()=>{p(),h()}),[h,p]);const m=r.useCallback((e=>{f(e),l.current=e,null===o||void 0===o||o(e)}),[o,l]),g=r.useCallback((()=>{p(),m(!0)}),[m,p]),v=r.useCallback((()=>{h(),m(!1)}),[m,h]);r.useEffect((()=>{t&&v()}),[t,v]),((e,t)=>{const n=r.useRef(!0);r.useEffect((()=>{n.current?n.current=!1:e()}),t)})((()=>{n&&!l.current&&v()}),[n,v,l]);const[y,w]=b.J[s],x=r.useCallback((()=>{c.current=setTimeout((()=>{c.current=null,g()}),null!==i&&void 0!==i?i:y)}),[y,i,g]),_=r.useCallback((()=>{u.current=setTimeout((()=>{u.current=null,v()}),null!==a&&void 0!==a?a:w)}),[v,w,a]);return{isOpen:d,closingTimeout:u,openTooltip:g,openTooltipDelayed:x,unsetOpeningTimeout:p,closeTooltip:v,closeTooltipDelayed:_,unsetClosingTimeout:h}},x=r.forwardRef((function({initialOpen:e=!1,disabled:t=!1,autoclosable:n=!0,openOnHover:f=!0,delayOpening:m,delayClosing:v,behavior:x=b.m.Delayed,placement:_,offset:E={},tooltipOffset:S,tooltipClassName:k,tooltipContentClassName:C,theme:O="info",size:N="s",hasArrow:T=!0,hasClose:A=!1,className:I,children:P,title:D,content:R,htmlContent:j,contentClassName:M,links:L,forceLinksAppearance:z=!1,tooltipActionButton:F,tooltipCancelButton:B,onOpenChange:U,onCloseClick:q,onClick:$,anchorRef:H,strategy:W,qa:V,disablePortal:K=!1,tooltipId:G,focusTrap:Y,autoFocus:Z,restoreFocusRef:Q,modifiers:J},X){const ee=(0,c.j)(),te=r.useRef(null),ne=r.useRef(!1),re=r.useRef(e),{isOpen:oe,closingTimeout:ie,openTooltip:ae,openTooltipDelayed:se,unsetOpeningTimeout:le,closeTooltip:ce,closeTooltipDelayed:ue,unsetClosingTimeout:de}=w({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:U,delayOpening:m,delayClosing:v,behavior:x,shouldBeOpen:re}),fe=r.useMemo((()=>_||("rtl"===ee?["left","bottom"]:["right","bottom"])),[ee,_]);r.useImperativeHandle(X,(()=>({openTooltip:ae,closeTooltip:ce})),[ae,ce]);const pe=Boolean(D),he=`popover-${null!==G&&void 0!==G?G:""}-title-${(0,i.u)()}`,me=r.createElement(l.z,{id:G,role:f?"tooltip":"dialog",strategy:W,anchorRef:H||te,className:d("tooltip",{theme:O,size:N,"with-close":A,"force-links-appearance":z},k),contentClassName:d("tooltip-popup-content",C),open:oe,placement:fe,hasArrow:T,offset:S,onClose:H?void 0:ce,qa:V?`${V}-tooltip`:"",disablePortal:K,focusTrap:Y,autoFocus:Z,restoreFocus:!0,restoreFocusRef:Q||te,modifiers:J,"aria-labelledby":D?he:void 0},r.createElement(r.Fragment,null,D&&r.createElement("h3",{id:he,className:d("tooltip-title")},D),r.createElement(h,{secondary:!!pe&&"announcement"!==O,content:R,htmlContent:j,className:M}),L&&r.createElement(g,{links:L}),r.createElement(p,{theme:O,tooltipActionButton:F,tooltipCancelButton:B}),A&&r.createElement("div",{className:d("tooltip-close")},r.createElement(a.$,{size:"s",view:"flat-secondary",onClick:async e=>{ce(),null===q||void 0===q||q(e)},extraProps:{"aria-label":"Close"}},r.createElement(s.I,{data:o.A,size:16})))));if(H)return me;const ge=()=>{de(),oe||t||ne.current?re.current=!0:se()},ve=()=>{!n||ne.current||ie.current?re.current=!1:(le(),ue()),ne.current=!1};return!E||"number"!==typeof E.top&&"number"!==typeof E.left||(0,u.m)('[Popover] Physical names (top, left) of "offset" property are deprecated. Use logical names (block, inline) instead.'),r.createElement("div",{ref:te,className:d({disabled:t},I),onMouseEnter:f?ge:void 0,onMouseLeave:f?ve:void 0,onFocus:f?ge:void 0,onBlur:f?ve:void 0,style:{top:E.top,left:E.left,insetBlockStart:E.block,insetInlineStart:E.inline},"data-qa":V},r.createElement(y,{closeTooltip:ce,openTooltip:ae,open:oe,openOnHover:f,className:d("handler"),disabled:t,onClick:$,closedManually:ne},P),me)}));x.displayName="Popover"},63291:(e,t,n)=>{"use strict";var r;n.d(t,{J:()=>o,m:()=>r}),function(e){e.Immediate="immediate",e.Delayed="delayed",e.DelayedClosing="delayedClosing"}(r||(r={}));const o={[r.Immediate]:[0,0],[r.Delayed]:[300,300],[r.DelayedClosing]:[0,300]}},39238:(e,t,n)=>{"use strict";n.d(t,{z:()=>Be});var r=n(59284),o=n(72630),i=n(32084),a=n(48681);function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function l(e){return e instanceof s(e).Element||e instanceof Element}function c(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function u(e){return"undefined"!==typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}var d=Math.max,f=Math.min,p=Math.round;function h(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function m(){return!/^((?!chrome|android).)*safari/i.test(h())}function g(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&c(e)&&(o=e.offsetWidth>0&&p(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&p(r.height)/e.offsetHeight||1);var a=(l(e)?s(e):window).visualViewport,u=!m()&&n,d=(r.left+(u&&a?a.offsetLeft:0))/o,f=(r.top+(u&&a?a.offsetTop:0))/i,h=r.width/o,g=r.height/i;return{width:h,height:g,top:f,right:d+h,bottom:f+g,left:d,x:d,y:f}}function v(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function y(e){return e?(e.nodeName||"").toLowerCase():null}function b(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function w(e){return g(b(e)).left+v(e).scrollLeft}function x(e){return s(e).getComputedStyle(e)}function _(e){var t=x(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function E(e,t,n){void 0===n&&(n=!1);var r=c(t),o=c(t)&&function(e){var t=e.getBoundingClientRect(),n=p(t.width)/e.offsetWidth||1,r=p(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=b(t),a=g(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==y(t)||_(i))&&(l=function(e){return e!==s(e)&&c(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:v(e);var t}(t)),c(t)?((u=g(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=w(i))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function S(e){var t=g(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(u(e)?e.host:null)||b(e)}function C(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:c(e)&&_(e)?e:C(k(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=C(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=s(r),a=o?[i].concat(i.visualViewport||[],_(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(O(k(a)))}function N(e){return["table","td","th"].indexOf(y(e))>=0}function T(e){return c(e)&&"fixed"!==x(e).position?e.offsetParent:null}function A(e){for(var t=s(e),n=T(e);n&&N(n)&&"static"===x(n).position;)n=T(n);return n&&("html"===y(n)||"body"===y(n)&&"static"===x(n).position)?t:n||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&c(e)&&"fixed"===x(e).position)return null;var n=k(e);for(u(n)&&(n=n.host);c(n)&&["html","body"].indexOf(y(n))<0;){var r=x(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var I="top",P="bottom",D="right",R="left",j="auto",M=[I,P,D,R],L="start",z="end",F="viewport",B="popper",U=M.reduce((function(e,t){return e.concat([t+"-"+L,t+"-"+z])}),[]),q=[].concat(M,[j]).reduce((function(e,t){return e.concat([t,t+"-"+L,t+"-"+z])}),[]),$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function H(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function W(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var V={placement:"bottom",modifiers:[],strategy:"absolute"};function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function G(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?V:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},V,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:o,setOptions:function(n){var s="function"===typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:l(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var d=function(e){var t=H(e);return $.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=d.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var s=i({state:o,name:t,instance:c,options:r}),l=function(){};a.push(s||l)}})),c.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(K(t,n)){o.rects={reference:E(t,A(n),"fixed"===o.options.strategy),popper:S(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,l=i.options,u=void 0===l?{}:l,d=i.name;"function"===typeof a&&(o=a({state:o,options:u,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:W((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){u(),s=!0}};if(!K(e,t))return c;function u(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Y={passive:!0};function Z(e){return e.split("-")[0]}function Q(e){return e.split("-")[1]}function J(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Z(o):null,a=o?Q(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case I:t={x:s,y:n.y-r.height};break;case P:t={x:s,y:n.y+n.height};break;case D:t={x:n.x+n.width,y:l};break;case R:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?J(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case L:t[c]=t[c]-(n[u]/2-r[u]/2);break;case z:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=a.x,m=void 0===h?0:h,g=a.y,v=void 0===g?0:g,y="function"===typeof d?d({x:m,y:v}):{x:m,y:v};m=y.x,v=y.y;var w=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),E=R,S=I,k=window;if(u){var C=A(n),O="clientHeight",N="clientWidth";if(C===s(n)&&"static"!==x(C=b(n)).position&&"absolute"===l&&(O="scrollHeight",N="scrollWidth"),o===I||(o===R||o===D)&&i===z)S=P,v-=(f&&C===k&&k.visualViewport?k.visualViewport.height:C[O])-r.height,v*=c?1:-1;if(o===R||(o===I||o===P)&&i===z)E=D,m-=(f&&C===k&&k.visualViewport?k.visualViewport.width:C[N])-r.width,m*=c?1:-1}var T,j=Object.assign({position:l},u&&ee),M=!0===d?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:p(n*o)/o||0,y:p(r*o)/o||0}}({x:m,y:v},s(n)):{x:m,y:v};return m=M.x,v=M.y,c?Object.assign({},j,((T={})[S]=_?"0":"",T[E]=w?"0":"",T.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",T)):Object.assign({},j,((t={})[S]=_?v+"px":"",t[E]=w?m+"px":"",t.transform="",t))}const ne={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=q.reduce((function(e,n){return e[n]=function(e,t,n){var r=Z(e),o=[R,I].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[R,D].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var re={left:"right",right:"left",bottom:"top",top:"bottom"};function oe(e){return e.replace(/left|right|bottom|top/g,(function(e){return re[e]}))}var ie={start:"end",end:"start"};function ae(e){return e.replace(/start|end/g,(function(e){return ie[e]}))}function se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&u(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ce(e,t,n){return t===F?le(function(e,t){var n=s(e),r=b(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;var u=m();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l+w(e),y:c}}(e,n)):l(t)?function(e,t){var n=g(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):le(function(e){var t,n=b(e),r=v(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=d(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=d(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+w(e),l=-r.scrollTop;return"rtl"===x(o||n).direction&&(s+=d(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(b(e)))}function ue(e,t,n,r){var o="clippingParents"===t?function(e){var t=O(k(e)),n=["absolute","fixed"].indexOf(x(e).position)>=0&&c(e)?A(e):e;return l(n)?t.filter((function(e){return l(e)&&se(e,n)&&"body"!==y(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=ce(e,n,r);return t.top=d(o.top,t.top),t.right=f(o.right,t.right),t.bottom=f(o.bottom,t.bottom),t.left=d(o.left,t.left),t}),ce(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function de(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function fe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function pe(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,c=void 0===s?"clippingParents":s,u=n.rootBoundary,d=void 0===u?F:u,f=n.elementContext,p=void 0===f?B:f,h=n.altBoundary,m=void 0!==h&&h,v=n.padding,y=void 0===v?0:v,w=de("number"!==typeof y?y:fe(y,M)),x=p===B?"reference":B,_=e.rects.popper,E=e.elements[m?x:p],S=ue(l(E)?E:E.contextElement||b(e.elements.popper),c,d,a),k=g(e.elements.reference),C=X({reference:k,element:_,strategy:"absolute",placement:o}),O=le(Object.assign({},_,C)),N=p===B?O:k,T={top:S.top-N.top+w.top,bottom:N.bottom-S.bottom+w.bottom,left:S.left-N.left+w.left,right:N.right-S.right+w.right},A=e.modifiersData.offset;if(p===B&&A){var R=A[o];Object.keys(T).forEach((function(e){var t=[D,P].indexOf(e)>=0?1:-1,n=[I,P].indexOf(e)>=0?"y":"x";T[e]+=R[n]*t}))}return T}const he={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Z(g),y=l||(v===g||!h?[oe(g)]:function(e){if(Z(e)===j)return[];var t=oe(e);return[ae(e),t,ae(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Z(n)===j?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?q:l,u=Q(r),d=u?s?U:U.filter((function(e){return Q(e)===u})):M,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=pe(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Z(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,E=!0,S=b[0],k=0;k<b.length;k++){var C=b[k],O=Z(C),N=Q(C)===L,T=[I,P].indexOf(O)>=0,A=T?"width":"height",z=pe(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),F=T?N?D:R:N?P:I;w[A]>x[A]&&(F=oe(F));var B=oe(F),$=[];if(i&&$.push(z[O]<=0),s&&$.push(z[F]<=0,z[B]<=0),$.every((function(e){return e}))){S=C,E=!1;break}_.set(C,$)}if(E)for(var H=function(e){var t=b.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},W=h?3:1;W>0;W--){if("break"===H(W))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function me(e,t,n){return d(e,f(t,n))}const ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,v=void 0===g?0:g,y=pe(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),b=Z(t.placement),w=Q(t.placement),x=!w,_=J(b),E="x"===_?"y":"x",k=t.modifiersData.popperOffsets,C=t.rects.reference,O=t.rects.popper,N="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,T="number"===typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(k){if(i){var z,F="y"===_?I:R,B="y"===_?P:D,U="y"===_?"height":"width",q=k[_],$=q+y[F],H=q-y[B],W=m?-O[U]/2:0,V=w===L?C[U]:O[U],K=w===L?-O[U]:-C[U],G=t.elements.arrow,Y=m&&G?S(G):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=X[F],te=X[B],ne=me(0,C[U],Y[U]),re=x?C[U]/2-W-ne-ee-T.mainAxis:V-ne-ee-T.mainAxis,oe=x?-C[U]/2+W+ne+te+T.mainAxis:K+ne+te+T.mainAxis,ie=t.elements.arrow&&A(t.elements.arrow),ae=ie?"y"===_?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(z=null==j?void 0:j[_])?z:0,le=q+oe-se,ce=me(m?f($,q+re-se-ae):$,q,m?d(H,le):H);k[_]=ce,M[_]=ce-q}if(s){var ue,de="x"===_?I:R,fe="x"===_?P:D,he=k[E],ge="y"===E?"height":"width",ve=he+y[de],ye=he-y[fe],be=-1!==[I,R].indexOf(b),we=null!=(ue=null==j?void 0:j[E])?ue:0,xe=be?ve:he-C[ge]-O[ge]-we+T.altAxis,_e=be?he+C[ge]+O[ge]-we-T.altAxis:ye,Ee=m&&be?function(e,t,n){var r=me(e,t,n);return r>n?n:r}(xe,he,_e):me(m?xe:ve,he,m?_e:ye);k[E]=Ee,M[E]=Ee-he}t.modifiersData[r]=M}},requiresIfExists:["offset"]};const ve={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Z(n.placement),l=J(s),c=[R,D].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return de("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:fe(e,M))}(o.padding,n),d=S(i),f="y"===l?I:R,p="y"===l?P:D,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=A(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=u[f],w=v-d[c]-u[p],x=v/2-d[c]/2+y,_=me(b,x,w),E=l;n.modifiersData[r]=((t={})[E]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&se(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ye(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function be(e){return[I,D,P,R].some((function(t){return e[t]>=0}))}var we=G({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,c=s(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Y)})),l&&c.addEventListener("resize",n.update,Y),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Y)})),l&&c.removeEventListener("resize",n.update,Y)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:Z(t.placement),variation:Q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];c(o)&&y(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});c(r)&&y(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},ne,he,ge,ve,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),l=ye(a,r),c=ye(s,o,i),u=be(l),d=be(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),xe=n(45099),_e=n.n(xe),Ee=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Se="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,ke=[],Ce=function(e,t,n){void 0===n&&(n={});var o=r.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ke},s=r.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],c=s[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);a.flushSync((function(){c({styles:Ee(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Ee(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),d=r.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return _e()(o.current,e)?o.current||e:(o.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),f=r.useRef();return Se((function(){f.current&&f.current.setOptions(d)}),[d]),Se((function(){if(null!=e&&null!=t){var r=(n.createPopper||we)(e,t,d);return f.current=r,function(){r.destroy(),f.current=null}}}),[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},Oe=n(54245);const Ne=["bottom-start","bottom","bottom-end","top-start","top","top-end","right-start","right","right-end","left-start","left","left-end"],Te={name:"rtlOffsetFix",enabled:!0,phase:"main",requires:["offset"],fn({state:e}){var t;if(!e.placement.startsWith("top")&&!e.placement.startsWith("bottom"))return;const n=null===(t=e.modifiersData.offset)||void 0===t?void 0:t[e.placement];n&&(e.modifiersData.popperOffsets.x-=2*n.x)}};var Ae=n(18670),Ie=n(98392),Pe=n(19225),De=n(69220),Re=n(99635),je=n(6826);const Me=(0,De.om)("popup");function Le({styles:e,attributes:t,setArrowRef:n}){return r.createElement("div",Object.assign({"data-popper-arrow":!0,ref:n,className:Me("arrow"),style:e},t),r.createElement("div",{className:Me("arrow-content")},r.createElement("div",{className:Me("arrow-circle-wrapper")},r.createElement("div",{className:Me("arrow-circle",{left:!0})})),r.createElement("div",{className:Me("arrow-circle-wrapper")},r.createElement("div",{className:Me("arrow-circle",{right:!0})}))))}const ze=(0,De.om)("popup"),Fe=8;function Be({keepMounted:e=!1,hasArrow:t=!1,offset:n=[0,4],open:a,placement:s,anchorRef:l,disableEscapeKeyDown:c,disableOutsideClick:u,disableLayer:d,style:f,className:p,contentClassName:h,modifiers:m=[],children:g,onEscapeKeyDown:v,onOutsideClick:y,onClose:b,onClick:w,onMouseEnter:x,onMouseLeave:_,onFocus:E,onBlur:S,onTransitionEnter:k,onTransitionEntered:C,onTransitionExit:O,onTransitionExited:N,disablePortal:T,container:A,strategy:I,qa:P,restoreFocus:D,restoreFocusRef:R,"aria-label":j,"aria-labelledby":M,role:L,id:z,focusTrap:F=!1,autoFocus:B=!1,"aria-modal":U=F}){const q=r.useRef(null);(0,Re.Z)({open:a,disableEscapeKeyDown:c,disableOutsideClick:u,onEscapeKeyDown:v,onOutsideClick:y,onClose:b,contentRefs:[l,q],enabled:!d,type:"popup"});const{attributes:$,styles:H,setPopperRef:W,setArrowRef:V}=function({anchorRef:e,placement:t=Ne,offset:n,modifiers:o=[],strategy:i,altBoundary:a}){const[s,l]=r.useState(null),[c,u]=r.useState(null),d=(0,Oe.j)(),f=r.useMemo((()=>{let e=Array.isArray(t)?t:[t];return"rtl"===d&&(e=e.map((e=>e.replace(/(top|bottom)-(start|end)/g,((e,t,n)=>"start"===n?t+"-end":"end"===n?t+"-start":e))))),e}),[t,d]),{attributes:p,styles:h}=Ce(null===e||void 0===e?void 0:e.current,s,{strategy:i,modifiers:[{name:"arrow",options:{element:c}},{name:"offset",options:{offset:n,altBoundary:a}},{name:"flip",options:{fallbackPlacements:f.slice(1),altBoundary:a}},..."rtl"===d?[Te]:[],...o],placement:f[0]});return{attributes:p,styles:h,setPopperRef:l,setArrowRef:u}}({anchorRef:l,placement:s,offset:t?[n[0],n[1]+Fe]:n,strategy:I,altBoundary:T,modifiers:[{name:"arrow",options:{enabled:t,padding:4}},{name:"preventOverflow",options:{padding:1,altBoundary:T}},...m]}),K=(0,i.N)(W,q,(0,Pe.N)()),G=(0,Ae.s)({enabled:Boolean(D&&a),restoreFocusRef:R});let Y=L;return!0!==U&&"true"!==U||Y||(Y="dialog"),r.createElement(o.A,{nodeRef:q,in:a,addEndListener:e=>{var t;return null===(t=q.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,je.L)(ze),mountOnEnter:!e,unmountOnExit:!e,appear:!0,onEnter:()=>{null===k||void 0===k||k()},onEntered:()=>{null===C||void 0===C||C()},onExit:()=>{null===O||void 0===O||O()},onExited:()=>{null===N||void 0===N||N()}},r.createElement(Ie.Z,{container:A,disablePortal:T},r.createElement("div",Object.assign({ref:K,style:H.popper},$.popper,G,{className:ze({open:a},p),"data-qa":P,id:z,role:Y,"aria-label":j,"aria-labelledby":M,"aria-modal":U&&a?U:void 0}),r.createElement(Pe.s,{enabled:F&&a,autoFocus:B},r.createElement("div",{onClick:w,onMouseEnter:x,onMouseLeave:_,onFocus:E,onBlur:S,className:ze("content",h),style:f,tabIndex:-1},t&&r.createElement(Le,{styles:H.arrow,attributes:$.arrow,setArrowRef:V}),g)))))}},98392:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(59284),o=n(48681);const i=r.createContext({current:null});i.displayName="PortalContext";var a=n(69118),s=n(46878);const l=(0,n(69220).om)("portal");function c({container:e,children:t,disablePortal:n}){const c=function(){var e;const t=r.useContext(i);let n=null;return"object"===typeof window&&(n=window.document.body),null!==(e=t.current)&&void 0!==e?e:n}(),{scoped:u}=(0,s.w)(),d=null!==e&&void 0!==e?e:c;return n?r.createElement(r.Fragment,null,t):d?o.createPortal(u?r.createElement(a.N,{rootClassName:l("theme-wrapper"),scoped:!0},t):t,d):null}},44433:(e,t,n)=>{"use strict";n.d(t,{a:()=>y});var r=n(59284),o=n(90826),i=n(85736);const a=new Set(["id"]),s=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),l=/^(data-.*)$/;var c=n(794);function u(e){var t,n;const{name:r,value:u,defaultValue:d,options:f=[],disabled:p,onUpdate:h,onChange:m,onFocus:g,onBlur:v}=e,y=(0,o.u)(),[b,w]=(0,i.P)(u,null!==(n=null!==d&&void 0!==d?d:null===(t=f[0])||void 0===t?void 0:t.value)&&void 0!==n?n:null,h),x=(0,c.d)({initialValue:b,onReset:w}),_=e=>{w(e.target.value),m&&m(e)},E=Object.assign(Object.assign({},function(e,t={}){const{labelable:n,propNames:r}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a.has(i)||n&&s.has(i)||(null===r||void 0===r?void 0:r.has(i))||l.test(i))&&(o[i]=e[i]);return o}(e,{labelable:!0})),{role:"radiogroup","aria-disabled":p});return{containerProps:E,optionsProps:f.map((e=>({name:r||y,value:e.value,content:e.content,title:e.title,checked:b===String(e.value),disabled:p||e.disabled,onChange:_,onFocus:g,onBlur:v,ref:x})))}}var d=n(69220),f=n(32084),p=n(11669);var h=n(10176);const m=(0,d.om)("radio-button"),g=r.forwardRef((function(e,t){const{disabled:n=!1,content:a,children:s,title:l}=e,{checked:u,inputProps:d}=function({name:e,value:t,checked:n,defaultChecked:a,disabled:s,controlRef:l,controlProps:u,onUpdate:d,onChange:h,onFocus:m,onBlur:g,id:v}){const y=(0,o.u)(),b=r.useRef(null),[w,x]=(0,i.P)(n,null!==a&&void 0!==a&&a,d),_=(0,c.d)({initialValue:w,onReset:x}),E=(0,f.N)(l,b,_);return{checked:w,inputProps:Object.assign(Object.assign({},u),{name:e||y,value:t,id:v,onFocus:m,onBlur:g,disabled:s,type:"radio",onChange:e=>{x(e.target.checked),h&&h(e)},onChangeCapture:e=>{p.o.publish({componentId:"Radio",eventId:"click",domEvent:e})},checked:n,defaultChecked:a,"aria-checked":w,ref:E})}}(e),g=a||s,v=(0,h.If)(g)||(0,h.$D)(g);return r.createElement("label",{className:m("option",{disabled:n,checked:u}),ref:t,title:l},r.createElement("input",Object.assign({},d,{className:m("option-control")})),r.createElement("span",{className:m("option-outline")}),g&&r.createElement("span",{className:m("option-text",{icon:v})},g))})),v=(0,d.om)("radio-button"),y=r.forwardRef((function(e,t){const{size:n="m",width:o,style:i,className:a,qa:s,children:l}=e;let c=e.options;c||(c=r.Children.toArray(l).map((({props:e})=>({value:e.value,content:e.content||e.children,disabled:e.disabled,title:e.title}))));const d=r.useRef(null),f=r.useRef(),p=r.useCallback((e=>{if(!e)return;const t=d.current;if(!t)return;const n=f.current;if(n&&n!==e){const r=e=>{t.style.left=`${e.offsetLeft}px`,t.style.width=`${e.offsetWidth}px`};r(n),t.hidden=!1,r(e)}f.current=e}),[]),{containerProps:h,optionsProps:m}=u(Object.assign(Object.assign({},e),{options:c}));return r.createElement("div",Object.assign({},h,{ref:t,style:i,className:v({size:n,width:o},a),"data-qa":s}),r.createElement("div",{ref:d,className:v("plate"),onTransitionEnd:e=>{e.currentTarget.hidden=!0},hidden:!0}),m.map((e=>r.createElement(g,Object.assign({},e,{key:e.value,ref:e.checked?p:void 0})))))}));y.Option=g},85589:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(59284),o=n(64222),i=n(46898);const a=(0,n(69220).om)("switch"),s=r.forwardRef((function(e,t){const{size:n="m",disabled:s=!1,content:l,children:c,title:u,style:d,className:f,qa:p}=e,{checked:h,inputProps:m}=(0,o.v)(Object.assign(Object.assign({},e),{controlProps:Object.assign(Object.assign({},e.controlProps),{role:"switch"})})),g=l||c,v=r.createElement("span",{className:a("indicator")},r.createElement("input",Object.assign({},m,{className:a("control")})),r.createElement("span",{className:a("outline")}),r.createElement("span",{className:a("slider")}));return r.createElement(i.m,{ref:t,title:u,style:d,size:n,disabled:s,className:a({size:n,disabled:s,checked:h},f),labelClassName:a("text"),qa:p,control:v},g)}))},23871:(e,t,n)=>{"use strict";n.d(t,{t:()=>p});var r=n(59284),o=n(69220);const i=r.createContext({activeTabId:void 0});i.displayName="TabsContext";var a=n(47665);const s=(0,o.om)("tabs");function l({id:e,className:t,title:n,meta:o,hint:l,icon:c,counter:u,label:d,active:f,disabled:p,hasOverflow:h,extraProps:m,onClick:g}){const{activeTabId:v}=r.useContext(i),y="boolean"===typeof f?f:v===e,b=r.useMemo((()=>void 0!==l?l:"string"===typeof n?n:void 0),[l,n]);return r.createElement("div",Object.assign({},m,{role:"tab","aria-selected":y,"aria-disabled":!0===p,tabIndex:p?-1:0,className:s("item",{active:y,disabled:p,overflow:Boolean(h)},t),title:b,onClick:()=>{g(e)},onKeyDown:t=>{" "===t.key&&g(e)}}),r.createElement("div",{className:s("item-content")},c&&r.createElement("div",{className:s("item-icon")},c),r.createElement("div",{className:s("item-title")},n||e),void 0!==u&&r.createElement("div",{className:s("item-counter")},u),d&&r.createElement(a.J,{className:s("item-label"),theme:d.theme},d.content)),o&&r.createElement("div",{className:s("item-meta")},o))}l.displayName="Tabs.Item";const c=(0,o.om)("tabs");var u;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(u||(u={}));const d=[],f=r.forwardRef((({direction:e=u.Horizontal,size:t="m",activeTab:n,allowNotSelected:o=!1,items:a=d,children:s,className:f,onSelectTab:p,wrapTo:h,qa:m},g)=>{const v=((e,t,n)=>{var r;return e||(t||0===(null===n||void 0===n?void 0:n.length)||null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r.id)})(n,o,a),y=r.useMemo((()=>({activeTabId:v})),[v]),b=r.useMemo((()=>{const e=e=>{p&&p(e)};return a.map(((t,n)=>{const o=r.createElement(l,Object.assign({key:t.id},t,{onClick:e}));return h?h(t,o,n):o}))}),[a,p,h]);return r.createElement("div",{role:"tablist",className:c({direction:e,size:t},f),"data-qa":m,ref:g},r.createElement(i.Provider,{value:y},s||b))}));f.displayName="Tabs";const p=Object.assign(f,{Item:l})},98089:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(27145),o=n(59284),i=n(63365);const a=(0,n(69220).om)("text"),s=({variant:e="body-1",ellipsis:t,ellipsisLines:n,whiteSpace:r,wordBreak:o},i)=>a({variant:e,ellipsis:t,ws:r,wb:o,"ellipsis-lines":n},i),l=o.forwardRef((function(e,t){var{as:n,children:a,variant:l,className:c,ellipsis:u,color:d,whiteSpace:f,wordBreak:p,ellipsisLines:h,style:m,qa:g}=e,v=(0,r.Tt)(e,["as","children","variant","className","ellipsis","color","whiteSpace","wordBreak","ellipsisLines","style","qa"]);const y=n||"span",b=Object.assign({},m);return"number"===typeof h&&(b.WebkitLineClamp=h),o.createElement(y,Object.assign({ref:t,className:s({variant:l,ellipsis:u,whiteSpace:f,wordBreak:p,ellipsisLines:"number"===typeof h},d?(0,i.$)({color:d},c):c),style:b,"data-qa":g},v),a)}));l.displayName="Text"},63365:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});const r=(0,n(69220).om)("color-text"),o=({color:e},t)=>r({color:e},t)},28664:(e,t,n)=>{"use strict";n.d(t,{k:()=>D});var r=n(59284),o=n(94420),i=n(85736),a=n(32084),s=n(90826),l=n(794),c=n(6104),u=n.n(c),d=n(61758),f=n.n(d);function p(e,t){const[n,o]=r.useState({width:0,height:0});return r.useLayoutEffect((()=>{const t=null===e||void 0===e?void 0:e.current;if(!t)return;o({width:u()(t.offsetWidth,2),height:u()(t.offsetHeight,2)});const n=new ResizeObserver(f()((e=>{if(!Array.isArray(e))return;const t=e[0];if(t.borderBoxSize){const e=t.borderBoxSize[0]?t.borderBoxSize[0]:t.borderBoxSize;o({width:u()(e.inlineSize,2),height:u()(e.blockSize,2)})}else{const e=t.target;o({width:u()(e.offsetWidth,2),height:u()(e.offsetHeight,2)})}}),16));return n.observe(t),()=>{n.disconnect()}}),[e,t]),n}var h=n(99991),m=n(84375),g=n(69220),v=n(81240),y=n(84476),b=n(72837);const w=JSON.parse('{"label_clear-button":"Clear"}'),x=JSON.parse('{"label_clear-button":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c"}'),_=(0,b.N)({en:w,ru:x},`${g.CU}clear-button`),E=(0,g.om)("clear-button"),S=e=>{switch(e){case"s":return"xs";case"m":return"s";case"l":return"m";case"xl":return"l";default:throw new Error(`Unknown text input size "${e}"`)}},k=e=>{const{size:t,className:n,onClick:o}=e;return r.createElement(y.$,{size:t,className:E(null,n),onClick:o,extraProps:{onMouseDown:e=>{e.preventDefault()},"aria-label":_("label_clear-button")}},r.createElement(h.I,{data:v.A,size:16}))};var C=n(63246),O=n(34379);const N=(0,g.om)("text-input"),T=r.forwardRef((function({placement:e,children:t,onClick:n},o){return t?r.createElement("div",{ref:o,className:N("additional-content",{placement:e}),onClick:n},t):null})),A=(0,g.om)("text-input");function I(e){const{controlProps:t,controlRef:n,type:o,name:i,id:a,tabIndex:s,autoComplete:l,placeholder:c,value:u,defaultValue:d,autoFocus:f,disabled:p,readOnly:h,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w}=e;return r.createElement("input",Object.assign({},t,{ref:n,className:A("control",{type:"input"},t.className),type:o,name:i,id:a,tabIndex:s,placeholder:c,value:u,defaultValue:d,autoFocus:f,autoComplete:l,onChange:m,onFocus:g,onBlur:v,onKeyDown:y,onKeyUp:b,onKeyPress:w,disabled:null!==p&&void 0!==p?p:t.disabled,readOnly:null!==h&&void 0!==h?h:t.readOnly}))}const P=(0,g.om)("text-input"),D=r.forwardRef((function(e,t){const{view:n="normal",size:c="m",pin:u="round-round",name:d,value:f,defaultValue:g,label:v,disabled:y,readOnly:b,hasClear:w=!1,error:x,errorMessage:_,errorPlacement:E="outside",validationState:N,autoComplete:A,id:D,tabIndex:R,style:j,className:M,qa:L,controlProps:z,leftContent:F,rightContent:B,startContent:U=F,endContent:q=B,unstable_endContent:$,note:H,onUpdate:W,onChange:V}=e,{errorMessage:K,errorPlacement:G,validationState:Y}=(0,O.Av)({error:x,errorMessage:_,errorPlacement:E,validationState:N}),[Z,Q]=(0,i.P)(f,null!==g&&void 0!==g?g:"",W),J=r.useRef(null),X=(0,l.d)({initialValue:Z,onReset:Q}),ee=(0,a.N)(e.controlRef,J,X),te=r.useRef(null),ne=r.useRef(null),re=(0,O.lf)(Y),oe=Boolean(v),ie="invalid"===Y&&Boolean(K)&&"outside"===G,ae="invalid"===Y&&Boolean(K)&&"inside"===G,se=Boolean(w&&!y&&!b&&Z),le=Boolean(U),ce=Boolean($),ue=Boolean(q)&&!ce,de=oe&&!D&&!d&&"undefined"===typeof A,fe=(0,s.u)(),pe=oe?D||fe:D,he=p(oe?te:null,c),me=p(le?ne:null,c),ge=(0,s.u)(),ve=(0,s.u)(),ye=[null===z||void 0===z?void 0:z["aria-describedby"],H?ve:void 0,ie?ge:void 0].filter(Boolean).join(" "),be=Object.assign(Object.assign({},z),{style:Object.assign(Object.assign({},null===z||void 0===z?void 0:z.style),oe&&he.width?{paddingInlineStart:`${he.width}px`}:{}),"aria-invalid":"invalid"===Y||void 0,"aria-describedby":ye||void 0}),we={id:pe,tabIndex:R,name:d,onChange(e){Q(e.target.value),V&&V(e)},autoComplete:de?"off":(0,O.o$)(A),controlProps:be},xe=e=>{var t,n;const r=!e.currentTarget.contains(document.activeElement)&&e.currentTarget.contains(e.target),o=Boolean(null===(t=document.getSelection())||void 0===t?void 0:t.toString());r&&!o&&(null===(n=J.current)||void 0===n||n.focus())};return r.createElement("span",{ref:t,style:j,className:P({view:n,size:c,disabled:y,state:re,pin:"clear"===n?void 0:u,"has-clear":se,"has-start-content":le,"has-end-content":se||ue||ce,"has-unstable-end-content":ce},M),"data-qa":L},r.createElement("span",{className:P("content")},le&&r.createElement(T,{ref:ne,placement:"start",onClick:xe},U),oe&&r.createElement("label",{ref:te,style:{insetInlineStart:le?me.width:void 0,maxWidth:`calc(50% - ${me.width}px)`},className:P("label"),title:v,htmlFor:pe},`${v}`),r.createElement(I,Object.assign({},e,we,{controlRef:ee})),se&&r.createElement(k,{size:S(c),onClick:e=>{Q("");const t=J.current;if(t){const n=Object.create(e);n.target=t,n.currentTarget=t,t.value="",V&&V(n)}},className:P("clear",{size:c})}),ue&&r.createElement(T,{placement:"end",onClick:xe},q),ae&&r.createElement(m.A,{content:K},r.createElement("span",{"data-qa":O._y},r.createElement(h.I,{data:o.A,className:P("error-icon"),size:"s"===c?12:16}))),ce&&r.createElement(T,{placement:"end",onClick:xe},$)),r.createElement(C.o,{note:H,errorMessage:ie?K:null,noteId:ve,errorMessageId:ge}))}))},63246:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var r=n(59284),o=n(69220),i=n(34379);const a=(0,o.om)("outer-additional-content"),s=({errorMessage:e,note:t,noteId:n,errorMessageId:o})=>e||t?r.createElement("div",{className:a()},e&&r.createElement("div",{className:a("error"),id:o,"data-qa":i.mF},e),t&&r.createElement("div",{className:a("note"),id:n},t)):null},34379:(e,t,n)=>{"use strict";n.d(t,{Av:()=>s,_y:()=>o,lf:()=>a,mF:()=>r,o$:()=>i});const r="control-error-message-qa",o="control-error-icon-qa",i=e=>"boolean"===typeof e?e?"on":"off":e,a=e=>"invalid"===e?"error":void 0,s=e=>{const{error:t,errorMessage:n,errorPlacement:r,validationState:o}=e;let i,a;return"string"===typeof t&&(i=t),n&&(i=n),("invalid"===o||Boolean(t))&&(a="invalid"),{errorMessage:i,errorPlacement:r,validationState:a}}},9296:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(27145),o=n(59284),i=n(69220),a=n(46423);const s=(0,i.om)("box"),l=o.forwardRef((function(e,t){var{as:n,children:i,qa:l,className:c,width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g,style:v,spacing:y,overflow:b}=e,w=(0,r.Tt)(e,["as","children","qa","className","width","height","minWidth","minHeight","maxHeight","maxWidth","position","style","spacing","overflow"]);const x=n||"div",_=Object.assign({width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g},v);return o.createElement(x,Object.assign({},w,{"data-qa":l,style:_,ref:t,className:s({overflow:b},y?(0,a.sp)(y,c):c)}),i)}))},87184:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(27145),o=n(59284),i=n(69220),a=n(9296),s=n(69033),l=n(8944);const c=(0,i.om)("flex"),u=o.forwardRef((function(e,t){const{as:n,direction:i,grow:u,basis:d,children:f,style:p,alignContent:h,alignItems:m,alignSelf:g,justifyContent:v,justifyItems:y,justifySelf:b,shrink:w,wrap:x,inline:_,gap:E,gapRow:S,className:k,space:C,centerContent:O}=e,N=(0,r.Tt)(e,["as","direction","grow","basis","children","style","alignContent","alignItems","alignSelf","justifyContent","justifyItems","justifySelf","shrink","wrap","inline","gap","gapRow","className","space","centerContent"]),T=n||"div",{getClosestMediaProps:A,theme:{spaceBaseSize:I}}=(0,s.L)(),P=e=>"object"===typeof e&&null!==e?A(e):e,D=P(E),R=D?I*Number(D):void 0,j=P(S)||D,M=j?I*Number(j):void 0,L=P(C),z=E||S||!L?void 0:(0,l.si)(L);return o.createElement(a.a,Object.assign({as:T,className:c({"center-content":O,inline:_,s:z},k),ref:t,style:Object.assign({flexDirection:P(i),flexGrow:!0===u?1:u,flexWrap:!0===x?"wrap":x,flexBasis:d,flexShrink:w,columnGap:R,rowGap:M,alignContent:P(h),alignItems:P(m),alignSelf:P(g),justifyContent:P(v),justifyItems:P(y),justifySelf:P(b)},p)},N),C?o.Children.map(f,(e=>e?o.createElement("div",{className:c("wr")},e):e)):f)}))},35719:(e,t,n)=>{"use strict";n.d(t,{W:()=>r,z:()=>o});const r={.5:"half"},o={breakpoints:{s:576,m:768,l:1080,xl:1200,xxl:1400,xxxl:1920},spaceBaseSize:4,components:{container:{gutters:"3",media:{l:{gutters:"5"}}}}}},55330:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(59284),o=n(35719);const i=r.createContext({theme:o.z,activeMediaQuery:"s"})},69033:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(59284),o=n(55330),i=n(8944);const a=()=>{const{activeMediaQuery:e,theme:t}=r.useContext(o.M),{isMediaActive:n,getClosestMediaProps:a}=r.useMemo((()=>({isMediaActive:(0,i.nR)(e),getClosestMediaProps:(0,i.yZ)(e)})),[e]);return{theme:t,activeMediaQuery:e,isMediaActive:n,getClosestMediaProps:a}}},46423:(e,t,n)=>{"use strict";n.d(t,{sp:()=>s,Y:()=>a});var r=n(69220),o=n(8944);const i=(0,r.om)("s"),a=(e,t)=>{const n=[];for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const t=e[r];"undefined"!==typeof t&&n.push(i(`${r}_${(0,o.si)(t)}`))}return t&&n.push(t),n.join(" ")},s=a},8944:(e,t,n)=>{"use strict";n.d(t,{nR:()=>i,si:()=>l,yZ:()=>s});var r=n(35719);const o={s:0,m:1,l:2,xl:3,xxl:4,xxxl:5},i=e=>t=>e in o&&o[e]-o[t]>=0,a=["s","m","l","xl","xxl","xxxl"],s=e=>(t={})=>{if(!e)return;let n=e;for(;n;){if(t[n])return t[n];n=a[o[n]-1]}},l=e=>e in r.W?r.W[e]:String(e)},11507:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});var r=n(59284);const o={mobile:!1,platform:n(67459).O.BROWSER,useHistory:()=>({action:"",replace(){},push(){},goBack(){}}),useLocation:()=>({pathname:"",search:"",hash:""})},i=r.createContext(o)},67459:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var r,o=n(69220);!function(e){e.IOS="ios",e.ANDROID="android",e.BROWSER="browser"}(r||(r={}));(0,o.om)("root")({mobile:!0}).split(/\s+/)[1]},46819:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(59284),o=n(11507);function i(){return r.useContext(o.G).mobile}},42933:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r=n(59284).createContext(void 0);r.displayName="ThemeContext"},69118:(e,t,n)=>{"use strict";n.d(t,{N:()=>O});var r=n(59284),o=n(55330);const i={media:"",matches:!1,onchange:()=>{},addListener:()=>{},removeListener:()=>{},addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:e=>!0},a=e=>"undefined"===typeof window||"function"!==typeof window.matchMedia?i:window.matchMedia(e);class s{constructor(e){this.queryListsDecl=[];const t={s:`(max-width: ${(n=e).m-1}px)`,m:`(min-width: ${n.m}px) and (max-width: ${n.l-1}px)`,l:`(min-width: ${n.l}px) and (max-width: ${n.xl-1}px)`,xl:`(min-width: ${n.xl}px) and (max-width: ${n.xxl-1}px)`,xxl:`(min-width: ${n.xxl}px) and (max-width: ${n.xxxl-1}px)`,xxxl:`(min-width: ${n.xxxl}px)`};var n;this.queryListsDecl=[["s",a(t.s)],["m",a(t.m)],["l",a(t.l)],["xl",a(t.xl)],["xxl",a(t.xxl)],["xxxl",a(t.xxxl)]]}getCurrentActiveMedia(){const e=this.queryListsDecl.find((([e,t])=>t.matches));return e?e[0]:"s"}addListeners(e){this.queryListsDecl.forEach((([t,n])=>n.addEventListener("change",e)))}removeListeners(e){this.queryListsDecl.forEach((([t,n])=>n.removeEventListener("change",e)))}}const l=(e,t="s")=>{const[n,o]=r.useState(t);return r.useLayoutEffect((()=>{const t=new s(e),n=()=>{o(t.getCurrentActiveMedia())};return t.addListeners(n),n(),()=>{t.removeListeners(n)}}),[e]),n};var c=n(17148),u=n.n(c);function d({children:e,config:t,initialMediaQuery:n}){const i=r.useContext(o.M),a=r.useMemo((()=>function({theme:e,override:t}){return u()(e,t)}({theme:i.theme,override:t})),[t,i.theme]),s=l(a.breakpoints,n),c=r.useMemo((()=>({activeMediaQuery:s,theme:a})),[s,a]);return r.createElement(o.M.Provider,{value:c},e)}var f=n(69220),p=n(42933);const h=r.createContext(void 0);h.displayName="ThemeSettingsContext";const m="system",g="light",v="dark",y="root",b="ltr",w=(0,f.om)(y),x=w();function _({theme:e,nativeScrollbar:t=!1,className:n,prevClassName:r}){const o=document.body;if(o.classList.contains(x)||o.classList.add(x),r){r.split(" ").forEach((e=>{e&&o.classList.remove(e)}))}if(n){n.split(" ").forEach((e=>{e&&!o.classList.contains(e)&&o.classList.add(e)}))}[...o.classList].forEach((e=>{e.startsWith((0,f.Nx)(w({theme:!0})))&&o.classList.remove(e)})),o.classList.add((0,f.Nx)(w({theme:e})));const i={"native-scrollbar":t};for(const[a,s]of Object.entries(i))o.classList.toggle((0,f.Nx)(w({[a]:!0})),s)}const E="undefined"!==typeof window&&"function"===typeof window.matchMedia,S=()=>window.matchMedia("(prefers-color-scheme: dark)");function k(){const[e,t]=r.useState(E&&S().matches?"dark":"light");return r.useEffect((()=>{if(!E)return;const e=function(e,t){const n="function"!==typeof e.addEventListener;return n?e.addListener(t):e.addEventListener("change",t),()=>{n?e.removeListener(t):e.removeEventListener("change",t)}}(S(),(function(e){t(e.matches?"dark":"light")}));return()=>e()}),[]),e}const C=(0,f.om)(y);function O({theme:e,systemLightTheme:t,systemDarkTheme:n,direction:o,nativeScrollbar:i,scoped:a=!1,rootClassName:s="",children:l,layout:c}){var u,f,y,w;const x=r.useContext(p.D),E=r.useContext(h),S=void 0!==x||a,O=null!==(u=null===x||void 0===x?void 0:x.theme)&&void 0!==u?u:m,N=null!==e&&void 0!==e?e:O,T=null!==(f=null!==t&&void 0!==t?t:null===E||void 0===E?void 0:E.systemLightTheme)&&void 0!==f?f:g,A=null!==(y=null!==n&&void 0!==n?n:null===E||void 0===E?void 0:E.systemDarkTheme)&&void 0!==y?y:v,I=null!==(w=null===x||void 0===x?void 0:x.direction)&&void 0!==w?w:b,P=null!==o&&void 0!==o?o:I,D="light"===k()?T:A,R="system"===N?D:N,j=r.useRef("");r.useLayoutEffect((()=>{S||(_({theme:R,nativeScrollbar:i,className:s,prevClassName:j.current}),function(e){const t=document.body;e===b?t.removeAttribute("dir"):t.setAttribute("dir",e)}(P),j.current=s)}),[S,R,P,i,s]);const M=r.useMemo((()=>({theme:N,themeValue:R,direction:P,scoped:S})),[N,R,P,S]),L=r.useMemo((()=>({systemLightTheme:T,systemDarkTheme:A})),[T,A]);return r.createElement(d,Object.assign({},c),r.createElement(p.D.Provider,{value:M},r.createElement(h.Provider,{value:L},S?r.createElement("div",{className:C({theme:R,"native-scrollbar":!1!==i},s),dir:P},l):l)))}O.displayName="ThemeProvider"},54245:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(46878);function o(){return(0,r.w)().direction}},46878:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(59284),o=n(42933);function i(){const e=r.useContext(o.D);if(void 0===e)throw new Error("useTheme* hooks must be used within ThemeProvider");return e}},22680:(e,t,n)=>{"use strict";n.d(t,{i:()=>o});var r=n(46878);function o(){return(0,r.w)().themeValue}},19225:(e,t,n)=>{"use strict";n.d(t,{s:()=>S,N:()=>k});var r=n(59284),o=n(83046);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},d=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},f=function(e){return"Tab"===(null===e||void 0===e?void 0:e.key)||9===(null===e||void 0===e?void 0:e.keyCode)},p=function(e){return f(e)&&!e.shiftKey},h=function(e){return f(e)&&e.shiftKey},m=function(e){return setTimeout(e,0)},g=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"===typeof e?e.apply(void 0,n):e},v=function(e){return e.target.shadowRoot&&"function"===typeof e.composedPath?e.composedPath()[0]:e.target},y=[],b=function(e,t){var n,r=(null===t||void 0===t?void 0:t.document)||document,i=(null===t||void 0===t?void 0:t.trapStack)||y,a=l({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:p,isKeyBackward:h},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},b=function(e,t,n){return e&&void 0!==e[t]?e[t]:a[n||t]},w=function(e,t){var n="function"===typeof(null===t||void 0===t?void 0:t.composedPath)?t.composedPath():void 0;return s.containerGroups.findIndex((function(t){var r=t.container,o=t.tabbableNodes;return r.contains(e)||(null===n||void 0===n?void 0:n.includes(r))||o.find((function(t){return t===e}))}))},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,o=void 0!==n&&n,i=t.params,s=void 0===i?[]:i,l=a[e];if("function"===typeof l&&(l=l.apply(void 0,c(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var u=l;if("string"===typeof l){try{u=r.querySelector(l)}catch(d){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(d.message,'"'))}if(!u&&!o)throw new Error("`".concat(e,"` as selector refers to no known node"))}return u},_=function(){var e=x("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,o.tp)(e,a.tabbableOptions))if(w(r.activeElement)>=0)e=r.activeElement;else{var t=s.tabbableGroups[0];e=t&&t.firstTabbableNode||x("fallbackFocus")}else null===e&&(e=x("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},E=function(){if(s.containerGroups=s.containers.map((function(e){var t=(0,o.Kr)(e,a.tabbableOptions),n=(0,o.nq)(e,a.tabbableOptions),r=t.length>0?t[0]:void 0,i=t.length>0?t[t.length-1]:void 0,s=n.find((function(e){return(0,o.AO)(e)})),l=n.slice().reverse().find((function(e){return(0,o.AO)(e)})),c=!!t.find((function(e){return(0,o.yT)(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:r,lastTabbableNode:i,firstDomTabbableNode:s,lastDomTabbableNode:l,nextTabbableNode:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find((function(e){return(0,o.AO)(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return(0,o.AO)(e)})):t[i+(r?1:-1)]}}})),s.tabbableGroups=s.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!x("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find((function(e){return e.posTabIndexesFound}))&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},S=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?S(t.shadowRoot):t},k=function(e){!1!==e&&e!==S(document)&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),s.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select}(e)&&e.select()):k(_()))},C=function(e){var t=x("setReturnFocus",{params:[e]});return t||!1!==t&&e},O=function(e){var t=e.target,n=e.event,r=e.isBackward,i=void 0!==r&&r;t=t||v(n),E();var l=null;if(s.tabbableGroups.length>0){var c=w(t,n),u=c>=0?s.containerGroups[c]:void 0;if(c<0)l=i?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(i){var d=s.tabbableGroups.findIndex((function(e){var n=e.firstTabbableNode;return t===n}));if(d<0&&(u.container===t||(0,o.tp)(t,a.tabbableOptions)&&!(0,o.AO)(t,a.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(d=c),d>=0){var p=0===d?s.tabbableGroups.length-1:d-1,h=s.tabbableGroups[p];l=(0,o.yT)(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else f(n)||(l=u.nextTabbableNode(t,!1))}else{var m=s.tabbableGroups.findIndex((function(e){var n=e.lastTabbableNode;return t===n}));if(m<0&&(u.container===t||(0,o.tp)(t,a.tabbableOptions)&&!(0,o.AO)(t,a.tabbableOptions)&&!u.nextTabbableNode(t))&&(m=c),m>=0){var g=m===s.tabbableGroups.length-1?0:m+1,y=s.tabbableGroups[g];l=(0,o.yT)(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else f(n)||(l=u.nextTabbableNode(t))}}else l=x("fallbackFocus");return l},N=function(e){var t=v(e);w(t,e)>=0||(g(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate}):g(a.allowOutsideClick,e)||e.preventDefault())},T=function(e){var t=v(e),n=w(t,e)>=0;if(n||t instanceof Document)n&&(s.mostRecentlyFocusedNode=t);else{var r;e.stopImmediatePropagation();var i=!0;if(s.mostRecentlyFocusedNode)if((0,o.yT)(s.mostRecentlyFocusedNode)>0){var l=w(s.mostRecentlyFocusedNode),c=s.containerGroups[l].tabbableNodes;if(c.length>0){var u=c.findIndex((function(e){return e===s.mostRecentlyFocusedNode}));u>=0&&(a.isKeyForward(s.recentNavEvent)?u+1<c.length&&(r=c[u+1],i=!1):u-1>=0&&(r=c[u-1],i=!1))}}else s.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return(0,o.yT)(e)>0}))}))||(i=!1);else i=!1;i&&(r=O({target:s.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(s.recentNavEvent)})),k(r||(s.mostRecentlyFocusedNode||_()))}s.recentNavEvent=void 0},A=function(e){(a.isKeyForward(e)||a.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s.recentNavEvent=e;var n=O({event:e,isBackward:t});n&&(f(e)&&e.preventDefault(),k(n))}(e,a.isKeyBackward(e))},I=function(e){var t;"Escape"!==(null===(t=e)||void 0===t?void 0:t.key)&&"Esc"!==(null===t||void 0===t?void 0:t.key)&&27!==(null===t||void 0===t?void 0:t.keyCode)||!1===g(a.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},P=function(e){var t=v(e);w(t,e)>=0||g(a.clickOutsideDeactivates,e)||g(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},D=function(){if(s.active)return u(i,n),s.delayInitialFocusTimer=a.delayInitialFocus?m((function(){k(_())})):k(_()),r.addEventListener("focusin",T,!0),r.addEventListener("mousedown",N,{capture:!0,passive:!1}),r.addEventListener("touchstart",N,{capture:!0,passive:!1}),r.addEventListener("click",P,{capture:!0,passive:!1}),r.addEventListener("keydown",A,{capture:!0,passive:!1}),r.addEventListener("keydown",I),n},R=function(){if(s.active)return r.removeEventListener("focusin",T,!0),r.removeEventListener("mousedown",N,!0),r.removeEventListener("touchstart",N,!0),r.removeEventListener("click",P,!0),r.removeEventListener("keydown",A,!0),r.removeEventListener("keydown",I),n},j="undefined"!==typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===s.mostRecentlyFocusedNode}))}))&&k(_())})):void 0,M=function(){j&&(j.disconnect(),s.active&&!s.paused&&s.containers.map((function(e){j.observe(e,{subtree:!0,childList:!0})})))};return n={get active(){return s.active},get paused(){return s.paused},activate:function(e){if(s.active)return this;var t=b(e,"onActivate"),n=b(e,"onPostActivate"),o=b(e,"checkCanFocusTrap");o||E(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=r.activeElement,null===t||void 0===t||t();var i=function(){o&&E(),D(),M(),null===n||void 0===n||n()};return o?(o(s.containers.concat()).then(i,i),this):(i(),this)},deactivate:function(e){if(!s.active)return this;var t=l({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,R(),s.active=!1,s.paused=!1,M(),d(i,n);var r=b(t,"onDeactivate"),o=b(t,"onPostDeactivate"),c=b(t,"checkCanReturnFocus"),u=b(t,"returnFocus","returnFocusOnDeactivate");null===r||void 0===r||r();var f=function(){m((function(){u&&k(C(s.nodeFocusedBeforeActivation)),null===o||void 0===o||o()}))};return u&&c?(c(C(s.nodeFocusedBeforeActivation)).then(f,f),this):(f(),this)},pause:function(e){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return s.active?(s.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return s.containers=t.map((function(e){return"string"===typeof e?r.querySelector(e):e})),s.active&&E(),M(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(e,t){if(s.paused===e)return this;if(s.paused=e,e){var n=b(t,"onPause"),r=b(t,"onPostPause");null===n||void 0===n||n(),R(),M(),null===r||void 0===r||r()}else{var o=b(t,"onUnpause"),i=b(t,"onPostUnpause");null===o||void 0===o||o(),E(),D(),M(),null===i||void 0===i||i()}return this}}}),n.updateContainerElements(e),n},w=n(32084),x=n(90826),_=n(7412);const E=r.createContext(void 0);function S({children:e,enabled:t=!0,disableAutoFocus:n,autoFocus:o=!0}){const i=r.useRef(null),a=r.useRef(!n&&o);r.useEffect((()=>{a.current=!n&&o}));const s=r.useRef(),l=r.useRef({}),c=r.useCallback((()=>{var e;null===(e=s.current)||void 0===e||e.updateContainerElements([i.current,...Object.values(l.current)])}),[]),u=r.useMemo((()=>({addNode(e,t){var n;l.current[e]===t||(null===(n=i.current)||void 0===n?void 0:n.contains(t))||(l.current[e]=t,c())},removeNode(e){l.current[e]&&(delete l.current[e],c())}})),[c]),d=r.useCallback((e=>{var n;t&&e?(i.current=e,s.current||(s.current=b([],{initialFocus:()=>a.current&&function(e){if(!(document.activeElement instanceof HTMLElement)||!e.contains(document.activeElement))return e.hasAttribute("tabIndex")||e.setAttribute("tabIndex","-1"),e;return document.activeElement}(e),fallbackFocus:()=>e,returnFocusOnDeactivate:!1,escapeDeactivates:!1,clickOutsideDeactivates:!1,allowOutsideClick:!0})),c(),s.current.activate()):(null===(n=s.current)||void 0===n||n.deactivate(),i.current=null)}),[t,c]),f=r.Children.only(e);if(!r.isValidElement(f))throw new Error("Children must contain only one valid element");const p=(0,_.Q)(f),h=(0,w.N)(d,p);return r.createElement(E.Provider,{value:u},r.cloneElement(f,{ref:h}))}function k(){const e=r.useContext(E),t=(0,x.u)();return r.useMemo((()=>{if(e)return n=>{n?e.addNode(t,n):e.removeNode(t)}}),[e,t])}},69220:(e,t,n)=>{"use strict";n.d(t,{CU:()=>o,Nx:()=>a,om:()=>i});var r=n(82435);const o="g-",i=((0,r.withNaming)({e:"__",m:"_"}),(0,r.withNaming)({n:o,e:"__",m:"_"}));function a(e){return e.split(/\s(.*)/)[1]}},10176:(e,t,n)=>{"use strict";n.d(t,{$D:()=>l,If:()=>c,zm:()=>s});var r=n(99991),o=n(69220),i=n(41668);let a=1;function s(){return`${o.CU}uniq-${a++}`}const l=(0,i.g)("svg"),c=(0,i.g)(r.I)},3357:(e,t,n)=>{"use strict";var r;n.d(t,{ZM:()=>s,jK:()=>a,zj:()=>l}),function(e){e.Ru="ru",e.En="en"}(r||(r={}));let o=[];const i={lang:r.En,fallbackLang:r.En},a=e=>{Object.assign(i,e),o.forEach((e=>{e(i)}))},s=e=>(o.push(e),()=>{o=o.filter((t=>t!==e))}),l=()=>i},11669:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(27145),o=n(69220);const i=new class{constructor(e){this.subscriptions=[],this.componentPrefix=e}subscribe(e){this.subscriptions.push(e)}unsubscribe(e){const t=this.subscriptions.indexOf(e);t>-1&&this.subscriptions.splice(t,1)}publish(e){var{componentId:t}=e,n=(0,r.Tt)(e,["componentId"]);this.subscriptions.forEach((e=>e(Object.assign(Object.assign({},n),{componentId:this.componentPrefix?`${this.componentPrefix}${t}`:t}))))}withEventPublisher(e,t){return n=>{this.publish(Object.assign(Object.assign({},n),{componentId:e,qa:t}))}}}(o.CU)},7412:(e,t,n)=>{"use strict";function r(e){var t;return null!==(t=e.props.ref)&&void 0!==t?t:e.ref}n.d(t,{Q:()=>r})},41668:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(59284);function o(e){return function(t){if(!r.isValidElement(t))return!1;const{type:n}=t;if(n===e)return!0;if("string"===typeof e||"string"===typeof n)return!1;const o=n.displayName;return Boolean(o&&o===e.displayName)}}},99635:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(59284),o=n(359),i=n(11669);const a=new class{constructor(){this.stack=[],this.handleDocumentKeyDown=e=>{var t,n,r;if(e.code===o.D.ESCAPE){const r=this.getTopLayer();r.disableEscapeKeyDown||(null===(t=r.onEscapeKeyDown)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"escapeKeyDown"))}if("Enter"===e.code){const t=this.getTopLayer();null===(r=t.onEnterKeyDown)||void 0===r||r.call(t,e)}},this.handleDocumentClick=e=>{var t,n;if(this.isToastClick(e))return;let r,o=null;if(this.mouseDownLayerTarget){if(r=this.mouseDownLayerTarget.layer,o=this.mouseDownLayerTarget.target,this.mouseDownLayerTarget=void 0,!this.stack.includes(r))return}else r=this.getTopLayer();!r.disableOutsideClick&&this.isOutsideClick(r,e,o)&&(null===(t=r.onOutsideClick)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"outsideClick"))},this.handleDocumentMouseDown=e=>{const t=this.getTopLayer();t&&(this.mouseDownLayerTarget={layer:t,target:e.target})}}add(e){this.stack.push(e),1===this.stack.length&&this.addListeners(),this.notifyLayersChange()}remove(e){const t=this.stack.indexOf(e);this.stack.splice(t,1),0===this.stack.length&&this.removeListeners(),this.notifyLayersChange()}getLayersCount(){return this.stack.length}getLayers(){return this.stack.map((({type:e})=>({type:e})))}addListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("click",this.handleDocumentClick,!0),document.addEventListener("mousedown",this.handleDocumentMouseDown,!0)}removeListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("click",this.handleDocumentClick,!0),document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0)}notifyLayersChange(){i.o.publish({componentId:"LayerManager",eventId:"layerschange",meta:{layersCount:this.getLayersCount(),layers:this.getLayers()}})}getTopLayer(){return this.stack[this.stack.length-1]}isOutsideClick(e,t,n=null){const r=e.contentRefs||[],{target:o}=t,i="function"===typeof t.composedPath?t.composedPath():[];if(r.length>0){return!r.some((e=>{var t,r,a,s;return(null===(r=null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.contains)||void 0===r?void 0:r.call(t,o))||(null===(s=null===(a=null===e||void 0===e?void 0:e.current)||void 0===a?void 0:a.contains)||void 0===s?void 0:s.call(a,n))||i.includes(null===e||void 0===e?void 0:e.current)}))}return!1}isToastClick(e){return("function"===typeof e.composedPath?e.composedPath():[]).some((e=>{var t;return Boolean(null===(t=null===e||void 0===e?void 0:e.dataset)||void 0===t?void 0:t.toast)}))}};function s({open:e,disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:o,onEnterKeyDown:i,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u=!0,type:d}){const f=r.useRef({disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:o,onEnterKeyDown:i,onOutsideClick:s,onClose:l,contentRefs:c,type:d});r.useEffect((()=>{Object.assign(f.current,{disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:o,onEnterKeyDown:i,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u})}),[t,n,o,i,s,l,c,u]),r.useEffect((()=>{if(e&&u){const e=f.current;return a.add(e),()=>{a.remove(e)}}}),[e,u])}},6826:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(69220);function o(e){return{appear:(0,r.Nx)(e({appear:!0})),appearActive:(0,r.Nx)(e({appear:"active"})),appearDone:(0,r.Nx)(e({appear:"done"})),enter:(0,r.Nx)(e({enter:!0})),enterActive:(0,r.Nx)(e({enter:"active"})),enterDone:(0,r.Nx)(e({enter:"done"})),exit:(0,r.Nx)(e({exit:!0})),exitActive:(0,r.Nx)(e({exit:"active"})),exitDone:(0,r.Nx)(e({exit:"done"}))}}},27629:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});const r=new Map;function o(e){!e||r.has(e)}},359:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r={BACKSPACE:"Backspace",ENTER:"Enter",TAB:"Tab",SPACEBAR:" ",SPACEBAR_OLD:"Spacebar",ESCAPE:"Escape",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",SHIFT:"Shift",HOME:"Home",END:"End"}},64222:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(59284),o=n(85736),i=n(32084),a=n(11669),s=n(794);function l({name:e,value:t,id:n,defaultChecked:l,checked:c,indeterminate:u,onUpdate:d,onChange:f,controlRef:p,controlProps:h,onFocus:m,onBlur:g,disabled:v}){const y=r.useRef(null),[b,w]=(0,o.P)(c,null!==l&&void 0!==l&&l,d),x=!u&&c,_=u?"mixed":b,E=(0,s.d)({initialValue:b,onReset:w}),S=(0,i.N)(p,y,E);r.useLayoutEffect((()=>{y.current&&(y.current.indeterminate=Boolean(u))}),[u]);const k=r.useCallback((e=>{a.o.publish({componentId:"Checkbox",eventId:"click",domEvent:e,meta:{checked:e.target.checked}})}),[]);return{checked:b,inputProps:Object.assign(Object.assign({},h),{name:e,value:t,id:n,onFocus:m,onBlur:g,disabled:v,type:"checkbox",onChange:e=>{w(e.target.checked),f&&f(e)},onClickCapture:k,defaultChecked:l,checked:x,"aria-checked":_,ref:S})}}},794:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(59284);function o({initialValue:e,onReset:t}){const[n,o]=r.useState(null),i=r.useRef(e);r.useEffect((()=>{if(!n)return;const e=()=>{t(i.current)};return n.addEventListener("reset",e),()=>{n.removeEventListener("reset",e)}}),[n,t]);return r.useCallback((e=>{var t;o(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[])}},18670:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(59284),o=n(83046);function i({enabled:e,restoreFocusRef:t,focusTrapped:n}){const i=r.useRef(null),a=r.useRef(null),s=r.useRef(null);return r.useEffect((()=>{if(!e)return;const t=e=>{const t=e.target;!n&&t instanceof HTMLElement&&(0,o.AO)(t)&&(s.current=t)},r=e=>{const t=e.target;t instanceof HTMLElement&&(0,o.AO)(t)?s.current=t:s.current=null};return window.addEventListener("focusin",t),window.addEventListener("mousedown",r),window.addEventListener("touchstart",r),()=>{window.removeEventListener("focusin",t),window.removeEventListener("mousedown",r),window.removeEventListener("touchstart",r)}}),[e,n]),r.useEffect((()=>{var n;i.current=e&&null!==(n=(null===t||void 0===t?void 0:t.current)||a.current)&&void 0!==n?n:null})),r.useEffect((()=>{if(e)return()=>{let e=i.current;const t=s.current;t&&document.contains(t)&&(0,o.AO)(t)&&(e=t),e&&"function"===typeof e.focus&&document.contains(e)&&(0,o.tp)(e)&&(e!==document.activeElement&&setTimeout((()=>{null===e||void 0===e||e.focus()}),0),a.current=null,s.current=null)}}),[e]),{onFocus:n=>{var r;e&&null===a.current&&(a.current=n.relatedTarget,s.current=a.current,i.current=null!==(r=(null===t||void 0===t?void 0:t.current)||a.current)&&void 0!==r?r:null)}}}},81517:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(59284),o=n(359);const i=(e,{openDelay:t=250,closeDelay:n,preventTriggerOnFocus:i=!1})=>{const[a,s,l]=function(e){const[t,n]=r.useState(e);return[t,r.useCallback((()=>n(!0)),[]),r.useCallback((()=>n(!1)),[]),r.useCallback((()=>n((e=>!e))),[])]}(!1),c=r.useRef(),u=r.useRef(!1);return r.useEffect((()=>{if(e)return e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",a),e.addEventListener("keydown",p),i||(e.addEventListener("focus",d),e.addEventListener("blur",f)),()=>{e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",a),e.removeEventListener("focus",d),e.removeEventListener("blur",f),e.removeEventListener("keydown",p)};function r(){clearTimeout(c.current),c.current=window.setTimeout(s,t)}function a(){clearTimeout(c.current),c.current=window.setTimeout(l,n)}function d(e){u.current||document.activeElement!==e.target||(u.current=!0,clearTimeout(c.current),s())}function f(e){u.current&&!e.currentTarget.contains(e.relatedTarget)&&(u.current=!1,clearTimeout(c.current),l())}function p(e){e.key===o.D.ESCAPE&&(clearTimeout(c.current),l())}}),[e,s,l,t,n,i]),a}},46734:(e,t,n)=>{"use strict";n.d(t,{N:()=>a,h:()=>i});var r=n(59284),o=n(359);function i(e){return t=>{e&&[o.D.ENTER,o.D.SPACEBAR,o.D.SPACEBAR_OLD].includes(t.key)&&(t.preventDefault(),e(t))}}function a(e){return{onKeyDown:r.useMemo((()=>i(e)),[e])}}},14794:(e,t,n)=>{"use strict";n.d(t,{y:()=>u});var r=n(59284);const o="padding-right",i="padding-bottom",a="overflow",s=[a,o,i];let l=0,c={};function u({enabled:e}){r.useLayoutEffect((()=>{if(e)return l++,1===l&&function(){const e=window.innerWidth-document.documentElement.clientWidth,t=window.innerHeight-document.documentElement.clientHeight,n=function(){const e=window.getComputedStyle(document.body);return{top:Number.parseFloat(e.paddingTop),right:Number.parseFloat(e.paddingRight),bottom:Number.parseFloat(e.paddingBottom),left:Number.parseFloat(e.paddingLeft)}}();c=function(){const e={};for(const t of s)e[t]=document.body.style.getPropertyValue(t);return e}(),document.body.style.setProperty(a,"hidden"),e&&document.body.style.setProperty(o,`${n.right+e}px`);t&&document.body.style.setProperty(i,`${n.bottom+t}px`)}(),()=>{l--,0===l&&function(){for(const e of s){const t=c[e];t?document.body.style.setProperty(e,t):document.body.style.removeProperty(e)}}()}}),[e])}},85736:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(59284);function o(e,t,n){const[o,i]=r.useState(null!==e&&void 0!==e?e:t),a=r.useRef(void 0!==e),s=void 0!==e;r.useEffect((()=>{const e=a.current;e!==s&&console.error(`[useControlledState] A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s}),[s]);let l=s?e:o;const c=r.useCallback(((e,...t)=>{Object.is(l,e)||null===n||void 0===n||n(e,...t),s||(l=e,i(e))}),[s,n,l]);return[l,c]}},42793:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{c:()=>r})},32084:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(59284),o=n(42793);function i(...e){return r.useMemo((()=>e.every((e=>null===e||void 0===e))?null:t=>{for(const n of e)(0,o.c)(n,t)}),e)}},29322:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(59284);const o=({element:e,options:t,onIntersect:n})=>{r.useEffect((()=>{const r=new IntersectionObserver((([e])=>{e.isIntersecting&&(null===n||void 0===n||n())}),t);return e&&r.observe(e),()=>null===e?void 0:r.unobserve(e)}),[e,t,n])}},90826:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(59284),o=n(69220),i=n(10176);const a="function"===typeof r.useId?function(){return`${o.CU}${r.useId()}`}:function(){const e=r.useRef();return void 0===e.current&&(e.current=(0,i.zm)()),e.current}},72837:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(1448),o=n(3357);const{lang:i,fallbackLang:a}=(0,o.zj)(),s=new r.TH({lang:i,fallbackLang:a});function l(e,t){Object.entries(e).forEach((([e,n])=>s.registerKeyset(e,t,n)));return s.keyset(t)}(0,o.ZM)((e=>{s.setLang(e.lang),s.setFallbackLang(e.fallbackLang)}))},59625:(e,t,n)=>{"use strict";n.d(t,{X:()=>re});var r=n(5906),o=n(59284),i=n(87924),a=n.n(i),s=n(48681),l=n(69220);function c(e,t){return e.findIndex((e=>e.name===t))}function u(e,t){return-1!==c(e,t)}function d(e,t){return u(e,t)?e.filter((e=>e.name!==t)):e}const f=o.createContext(null);f.displayName="ToasterContext";const p=o.createContext([]);p.displayName="ToastsContext";const h=o.forwardRef((function({children:e},t){const[n,r]=o.useState([]),i=o.useCallback((e=>{const{name:t}=e;r((n=>{let r=n;return u(n,t)&&(r=d(n,t)),[...r,Object.assign(Object.assign({},e),{addedAt:Date.now(),ref:o.createRef()})]}))}),[]),a=o.useCallback((e=>{r((t=>d(t,e)))}),[]),s=o.useCallback((()=>{r((()=>[]))}),[]),l=o.useCallback(((e,t)=>{r((n=>{if(!u(n,e))return n;const r=c(n,e);return[...n.slice(0,r),Object.assign(Object.assign({},n[r]),t),...n.slice(r+1)]}))}),[]),h=o.useRef(n);o.useEffect((()=>{h.current=n}),[n]);const m=o.useCallback((e=>!!h.current&&u(h.current,e)),[]),g=o.useMemo((()=>({add:i,remove:a,removeAll:s,update:l,has:m})),[i,a,s,l,m]);return o.useImperativeHandle(t,(()=>({add:i,remove:a,removeAll:s,update:l,has:m}))),o.createElement(f.Provider,{value:g},o.createElement(p.Provider,{value:n},e))}));h.displayName="ToasterProvider";var m=n(46819),g=n(98587),v=n(58168),y=n(9417),b=n(25540),w=n(10641);function x(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function _(e,t,n){return null!=n[t]?n[t]:e.props[t]}function E(e,t,n){var r=x(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if((0,o.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:_(s,"exit",e),enter:_(s,"enter",e)})):i[a]=(0,o.cloneElement)(s,{in:!1}):i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:_(s,"exit",e),enter:_(s,"enter",e)})}})),i}var S=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},k=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,y.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,b.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,x(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:_(e,"appear",n),enter:_(e,"enter",n),exit:_(e,"exit",n)})}))):E(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=x(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,v.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,g.A)(e,["component","childFactory"]),i=this.state.contextValue,a=S(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(w.A.Provider,{value:i},a):o.createElement(w.A.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);k.propTypes={},k.defaultProps={component:"div",childFactory:function(e){return e}};const C=k;var O=n(72630),N=n(6826),T=n(43937),A=n(70825),I=n(94420),P=n(27612),D=n(81240);function R({onClose:e,timeout:t}){const[n,r,i]=function(){const[e,t]=o.useState(!1);return[o.useCallback((()=>{t(!0)}),[]),o.useCallback((()=>{t(!1)}),[]),e]}();var a,s;return a=e,s=i?null:t,o.useEffect((()=>{if("number"!==typeof s)return;const e=setTimeout((()=>{a()}),s);return()=>{clearTimeout(e)}}),[a,s]),{onMouseOver:n,onMouseLeave:r}}var j=n(84476),M=n(99991),L=n(72837);const z=JSON.parse('{"label_close-button":"Close"}'),F=JSON.parse('{"label_close-button":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),B=(0,L.N)({en:z,ru:F},"Toaster"),U=(0,l.om)("toast"),q=5e3,$={normal:null,info:T.A,success:A.A,warning:I.A,danger:I.A,utility:P.A};const H=o.forwardRef((function(e,t){const{name:n,content:r,actions:i,title:a,className:s,theme:l="normal",renderIcon:c,autoHiding:u=q,isClosable:d=!0,mobile:f=!1,onClose:p,removeCallback:h}=e,m=o.useCallback((()=>{h(n),p&&p()}),[h,p,n]),g=R({onClose:m,timeout:"number"===typeof u?u:void 0}),v={mobile:f,theme:l},y=Boolean(a),b=Boolean(r),w=c?c(e):function({theme:e}){return e&&$[e]?o.createElement(M.I,{data:$[e],size:20,className:U("icon",{[e]:!0})}):null}({theme:l});return o.createElement("div",Object.assign({ref:t,className:U(v,s)},g,{"data-toast":!0}),w&&o.createElement("div",{className:U("icon-container")},w),o.createElement("div",{className:U("container")},y&&o.createElement("h3",{className:U("title")},a),d&&o.createElement(j.$,{size:"s",view:"flat",className:U("btn-close"),onClick:m,extraProps:{"aria-label":B("label_close-button")}},o.createElement(M.I,{data:D.A})),b&&o.createElement("div",{className:U("content",{"without-title":!y})},r),function({actions:e,onClose:t}){return e&&e.length?o.createElement("div",{className:U("actions")},e.map((({label:e,onClick:n,view:r="outlined",removeAfterClick:i=!0},a)=>o.createElement(j.$,{key:`${e}__${a}`,className:U("action"),onClick:()=>{n(),i&&t()},type:"button",size:"l",view:r,width:"auto"},e)))):null}({actions:i,onClose:m})))})),W=(0,N.L)((0,l.om)("toast-animation-desktop")),V=(0,N.L)((0,l.om)("toast-animation-mobile"));function K(e){const{toasts:t,mobile:n,removeCallback:r}=e;return o.createElement(C,{component:null},t.map((e=>o.createElement(O.A,{key:`${e.name}_${e.addedAt}`,nodeRef:e.ref,classNames:n?V:W,addEndListener:t=>{var n,r;return null===(r=null===(n=e.ref)||void 0===n?void 0:n.current)||void 0===r?void 0:r.addEventListener("animationend",t)},onEnter:()=>G(e),onExit:()=>G(e)},o.createElement(H,Object.assign({},e,{mobile:n,removeCallback:r}))))))}function G(e){var t;(null===(t=e.ref)||void 0===t?void 0:t.current)&&e.ref.current.style.setProperty("--_--item-height",`${e.ref.current.offsetHeight}px`)}var Y=n(98392);const Z=(0,l.om)("toaster");function Q({children:e,className:t,mobile:n}){const r=o.useRef("undefined"===typeof document?void 0:document.createElement("div"));return o.useEffect((()=>{const e=r.current;if(e)return document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[]),o.useEffect((()=>{r.current&&(r.current.className=Z({mobile:n},t))}),[t,n]),o.createElement(Y.Z,{container:r.current},e)}function J({className:e,mobile:t,hasPortal:n=!0}){const r=(0,m.I)(),{remove:i}=function(){const e=o.useContext(f);if(null===e)throw new Error("Toaster: `useToaster` hook is used out of context");return o.useMemo((()=>e),[e])}(),a=o.useContext(p),s=o.createElement(K,{toasts:a,removeCallback:i,mobile:null!==t&&void 0!==t?t:r});return n?o.createElement(Q,{className:e||"",mobile:null!==t&&void 0!==t?t:r},s):s}Q.displayName="ToasterPortal",J.displayName="ToasterComponent";const X=Symbol("Toaster instance key"),ee=(0,l.om)("toaster");let te;class ne{static injectReactDOMClient(e){te=e}constructor(e){this.className="",this.mobile=!1,this.componentAPI=null,this.add=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.add(e)},this.remove=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.remove(e)},this.removeAll=()=>{var e;null===(e=this.componentAPI)||void 0===e||e.removeAll()},this.update=(e,t)=>{var n;null===(n=this.componentAPI)||void 0===n||n.update(e,t)},this.has=e=>{var t,n;return null!==(n=null===(t=this.componentAPI)||void 0===t?void 0:t.has(e))&&void 0!==n&&n};const t=a()(e,["className"],""),n=a()(e,["mobile"],!1);if(window[X]instanceof ne){const e=window[X];return e.className=t,e.mobile=n,e.setRootNodeClassName(),e}this.className=t,this.mobile=n,this.createRootNode(),this.createReactRoot(),this.render(),window[X]=this}destroy(){s.unmountComponentAtNode(this.rootNode),document.body.removeChild(this.rootNode)}createRootNode(){this.rootNode=document.createElement("div"),this.setRootNodeClassName(),document.body.appendChild(this.rootNode)}createReactRoot(){te&&(this.reactRoot=te.createRoot(this.rootNode))}render(){const e=o.createElement(h,{ref:e=>{this.componentAPI=e}},o.createElement(J,{hasPortal:!1,mobile:this.mobile}));this.reactRoot?this.reactRoot.render(e):s.render(e,this.rootNode,(()=>Promise.resolve()))}setRootNodeClassName(){this.rootNode.className=ee({mobile:this.mobile},this.className)}}ne.injectReactDOMClient(r);const re="object"===typeof window?new ne:{}},63904:(e,t,n)=>{"use strict";var r=n(35711),o=n(69426),i=n(70084),a=n(98599);e.exports=a||r.call(i,o)},69426:e=>{"use strict";e.exports=Function.prototype.apply},70084:e=>{"use strict";e.exports=Function.prototype.call},31886:(e,t,n)=>{"use strict";var r=n(35711),o=n(39955),i=n(70084),a=n(63904);e.exports=function(e){if(e.length<1||"function"!==typeof e[0])throw new o("a function is required");return a(r,i,e)}},98599:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},90308:(e,t,n)=>{"use strict";var r=n(94701),o=n(31886),i=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o([n]):n}},32133:(e,t,n)=>{"use strict";var r=n(33410),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},88409:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=g;var x="$isDayjsObject",_=function(e){return e instanceof C||!(!e||!e[x])},E=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},k=y;k.l=E,k.i=_,k.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function g(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!k.u(t)||t,u=k.p(e),p=function(e,t){var o=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},h=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(r?v-w:v+(6-w),g);case s:case f:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case o:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=k.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[f]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[k.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var h=k.p(u),m=function(e){var t=S(p);return k.w(t.date(t.date()+Math.round(e*r)),p)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var g=(f={},f[i]=t,f[a]=n,f[o]=e,f)[h]||1,v=this.$d.getTime()+r*g;return k.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=k.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return k.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return k.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var h,m=this,g=k.p(f),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return k.m(m,v)};switch(g){case d:h=w()/12;break;case c:h=w();break;case u:h=w()/3;break;case l:h=(b-y)/6048e5;break;case s:h=(b-y)/864e5;break;case a:h=b/n;break;case i:h=b/t;break;case o:h=b/e;break;default:h=b}return p?h:k.a(h)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=E(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),O=C.prototype;return S.prototype=O,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",d],["$D",f]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,C,S),e.$i=!0),S},S.locale=E,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()},54533:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var c=a[l],u=d[c],f=u&&u[0],p=u&&u[1];a[l]=p?{regex:f,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,l=o.parser,c=e.slice(r),u=i.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],c=!0===a[3],u=l||c,d=a[2];c&&(d=a[2]),i=this.$locale(),!l&&d&&(i=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),o=r.year,i=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,h=a||(o||i?1:p.getDate()),m=o||p.getFullYear(),g=0;o&&!i||(g=i>0?i-1:p.getMonth());var v=s||0,y=l||0,b=c||0,w=u||0;return d?new Date(Date.UTC(m,g,h,v,y,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(m,g,h,v,y,b,w)):new Date(m,g,h,v,y,b,w)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},20549:function(e){e.exports=function(){"use strict";return function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach((function(e){r[e]=t[e]})),r}}}()},77354:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),o=i(e).local();return f.call(r,o,t,n)}}}()},8928:(e,t,n)=>{"use strict";var r,o=n(31886),i=n(84363);try{r=[].__proto__===Array.prototype}catch(c){if(!c||"object"!==typeof c||!("code"in c)||"ERR_PROTO_ACCESS"!==c.code)throw c}var a=!!r&&i&&i(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"===typeof a.get?o([a.get]):"function"===typeof l&&function(e){return l(null==e?e:s(e))}},78599:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}e.exports=t},82461:e=>{"use strict";e.exports=EvalError},73759:e=>{"use strict";e.exports=Error},52530:e=>{"use strict";e.exports=RangeError},19770:e=>{"use strict";e.exports=ReferenceError},78236:e=>{"use strict";e.exports=SyntaxError},39955:e=>{"use strict";e.exports=TypeError},22921:e=>{"use strict";e.exports=URIError},30836:e=>{"use strict";e.exports=Object},9265:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!==typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),s=n(0,o.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},35711:(e,t,n)=>{"use strict";var r=n(9265);e.exports=Function.prototype.bind||r},94701:(e,t,n)=>{"use strict";var r,o=n(30836),i=n(73759),a=n(82461),s=n(52530),l=n(19770),c=n(78236),u=n(39955),d=n(22921),f=n(51682),p=n(45904),h=n(73620),m=n(40538),g=n(7328),v=n(54),y=n(75869),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(t){}},x=n(84363),_=n(78599),E=function(){throw new u},S=x?function(){try{return E}catch(e){try{return x(arguments,"callee").get}catch(t){return E}}}():E,k=n(27199)(),C=n(91268),O=n(39232),N=n(62384),T=n(69426),A=n(70084),I={},P="undefined"!==typeof Uint8Array&&C?C(Uint8Array):r,D={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":k&&C?C([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":I,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&C?C(C([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&k&&C?C((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&k&&C?C((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&C?C(""[Symbol.iterator]()):r,"%Symbol%":k?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":P,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":T,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":O,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":y,"%Reflect.getPrototypeOf%":N};if(C)try{null.error}catch(K){var R=C(C(K));D["%Error.prototype%"]=R}var j=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&C&&(n=C(o.prototype))}return D[t]=n,n},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=n(35711),z=n(86173),F=L.call(A,Array.prototype.concat),B=L.call(T,Array.prototype.splice),U=L.call(A,String.prototype.replace),q=L.call(A,String.prototype.slice),$=L.call(A,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,V=function(e,t){var n,r=e;if(z(M,r)&&(r="%"+(n=M[r])[0]+"%"),z(D,r)){var o=D[r];if(o===I&&(o=j(r)),"undefined"===typeof o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=q(e,0,1),n=q(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return U(e,H,(function(e,t,n,o){r[r.length]=n?U(o,W,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=V("%"+r+"%",t),i=o.name,a=o.value,s=!1,l=o.alias;l&&(r=l[0],B(n,F([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],h=q(p,0,1),m=q(p,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==p&&f||(s=!0),z(D,i="%"+(r+="."+p)+"%"))a=D[i];else if(null!=a){if(!(p in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&d+1>=n.length){var g=x(a,p);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[p]}else f=z(a,p),a=a[p];f&&!s&&(D[i]=a)}}return a}},39232:(e,t,n)=>{"use strict";var r=n(30836);e.exports=r.getPrototypeOf||null},62384:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},91268:(e,t,n)=>{"use strict";var r=n(62384),o=n(39232),i=n(8928);e.exports=r?function(e){return r(e)}:o?function(e){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},55357:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},84363:(e,t,n)=>{"use strict";var r=n(55357);if(r)try{r([],"length")}catch(o){r=null}e.exports=r},27199:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n(80605);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},80605:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},86173:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(35711);e.exports=i.call(r,o)},45264:(e,t,n)=>{"use strict";n.d(t,{zR:()=>E,TM:()=>T,yJ:()=>m,sC:()=>I,AO:()=>h,Fu:()=>g});var r=n(58168);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&o(e),l=t&&o(t),c=s||l;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?i(a,f):".."===p?(i(a,f),d++):d&&(i(a,f),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),o=s(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(68643);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,r.A)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var w="popstate",x="hashchange";function _(){try{return window.history.state||{}}catch(e){return{}}}function E(e){void 0===e&&(e={}),y||(0,c.A)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,s=void 0!==a&&a,l=i.getUserConfirmation,d=void 0===l?b:l,g=i.keyLength,E=void 0===g?6:g,S=e.basename?p(u(e.basename)):"";function k(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return S&&(i=f(i,S)),m(i,r,n)}function C(){return Math.random().toString(36).substr(2,E)}var O=v();function N(e){(0,r.A)(B,e),B.length=t.length,O.notifyListeners(B.location,B.action)}function T(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||P(k(e.state))}function A(){P(k(_()))}var I=!1;function P(e){if(I)I=!1,N();else{O.confirmTransitionTo(e,"POP",d,(function(t){t?N({action:"POP",location:e}):function(e){var t=B.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(I=!0,M(o))}(e)}))}}var D=k(_()),R=[D.key];function j(e){return S+h(e)}function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?(window.addEventListener(w,T),o&&window.addEventListener(x,A)):0===L&&(window.removeEventListener(w,T),o&&window.removeEventListener(x,A))}var F=!1;var B={length:t.length,action:"POP",location:D,createHref:j,push:function(e,r){var o="PUSH",i=m(e,r,C(),B.location);O.confirmTransitionTo(i,o,d,(function(e){if(e){var r=j(i),a=i.key,l=i.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var c=R.indexOf(B.location.key),u=R.slice(0,c+1);u.push(i.key),R=u,N({action:o,location:i})}else window.location.href=r}}))},replace:function(e,r){var o="REPLACE",i=m(e,r,C(),B.location);O.confirmTransitionTo(i,o,d,(function(e){if(e){var r=j(i),a=i.key,l=i.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var c=R.indexOf(B.location.key);-1!==c&&(R[c]=i.key),N({action:o,location:i})}else window.location.replace(r)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=O.appendListener(e);return z(1),function(){z(-1),t()}}};return B}var S="hashchange",k={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function C(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function O(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function N(e){window.location.replace(C(window.location.href)+"#"+e)}function T(e){void 0===e&&(e={}),y||(0,c.A)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,i=void 0===o?b:o,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?p(u(e.basename)):"",d=k[s],g=d.encodePath,w=d.decodePath;function x(){var e=w(O());return l&&(e=f(e,l)),m(e)}var _=v();function E(e){(0,r.A)(B,e),B.length=t.length,_.notifyListeners(B.location,B.action)}var T=!1,A=null;function I(){var e,t,n=O(),r=g(n);if(n!==r)N(r);else{var o=x(),a=B.location;if(!T&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===h(o))return;A=null,function(e){if(T)T=!1,E();else{var t="POP";_.confirmTransitionTo(e,t,i,(function(n){n?E({action:t,location:e}):function(e){var t=B.location,n=j.lastIndexOf(h(t));-1===n&&(n=0);var r=j.lastIndexOf(h(e));-1===r&&(r=0);var o=n-r;o&&(T=!0,M(o))}(e)}))}}(o)}}var P=O(),D=g(P);P!==D&&N(D);var R=x(),j=[h(R)];function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?window.addEventListener(S,I):0===L&&window.removeEventListener(S,I)}var F=!1;var B={length:t.length,action:"POP",location:R,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=C(window.location.href)),n+"#"+g(l+h(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,B.location);_.confirmTransitionTo(r,n,i,(function(e){if(e){var t=h(r),o=g(l+t);if(O()!==o){A=t,function(e){window.location.hash=e}(o);var i=j.lastIndexOf(h(B.location)),a=j.slice(0,i+1);a.push(t),j=a,E({action:n,location:r})}else E()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,B.location);_.confirmTransitionTo(r,n,i,(function(e){if(e){var t=h(r),o=g(l+t);O()!==o&&(A=t,N(o));var i=j.indexOf(h(B.location));-1!==i&&(j[i]=t),E({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=_.appendListener(e);return z(1),function(){z(-1),t()}}};return B}function A(e,t,n){return Math.min(Math.max(e,t),n)}function I(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,u=v();function d(e){(0,r.A)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function f(){return Math.random().toString(36).substr(2,c)}var p=A(s,0,i.length-1),g=i.map((function(e){return m(e,void 0,"string"===typeof e?f():e.key||f())})),y=h;function b(e){var t=A(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:g.length,action:"POP",location:g[p],index:p,entries:g,createHref:y,push:function(e,t){var r="PUSH",o=m(e,t,f(),w.location);u.confirmTransitionTo(o,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=m(e,t,f(),w.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,d({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},5290:(e,t,n)=>{"use strict";var r=n(51700),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!i[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},65144:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||x(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},51700:(e,t,n)=>{"use strict";e.exports=n(65144)},83791:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},70911:e=>{"use strict";const t=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);e.exports=e=>!t.has(e&&e.code)},4786:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},36484:(e,t,n)=>{var r=n(92470)(n(4133),"DataView");e.exports=r},7653:(e,t,n)=>{var r=n(22984),o=n(99806),i=n(68489),a=n(38533),s=n(99661);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},935:(e,t,n)=>{var r=n(93454),o=n(4200),i=n(30507),a=n(74343),s=n(28815);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},37815:(e,t,n)=>{var r=n(92470)(n(4133),"Map");e.exports=r},97269:(e,t,n)=>{var r=n(11320),o=n(22894),i=n(23097),a=n(78453),s=n(24381);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},70364:(e,t,n)=>{var r=n(92470)(n(4133),"Promise");e.exports=r},32361:(e,t,n)=>{var r=n(92470)(n(4133),"Set");e.exports=r},90035:(e,t,n)=>{var r=n(97269),o=n(67596),i=n(78475);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},81382:(e,t,n)=>{var r=n(935),o=n(4212),i=n(64898),a=n(42589),s=n(98545),l=n(26905);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},537:(e,t,n)=>{var r=n(4133).Symbol;e.exports=r},7804:(e,t,n)=>{var r=n(4133).Uint8Array;e.exports=r},41527:(e,t,n)=>{var r=n(92470)(n(4133),"WeakMap");e.exports=r},34657:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},12249:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},61522:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},82789:(e,t,n)=>{var r=n(11275);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},19417:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},20943:(e,t,n)=>{var r=n(30040),o=n(52964),i=n(19305),a=n(20368),s=n(83649),l=n(91159),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&l(e),p=n||u||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},54380:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},59368:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},89728:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},63786:e=>{e.exports=function(e){return e.split("")}},14837:(e,t,n)=>{var r=n(80472),o=n(61872);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},71259:(e,t,n)=>{var r=n(80472),o=n(61872),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},6993:(e,t,n)=>{var r=n(61872);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},63909:(e,t,n)=>{var r=n(62871),o=n(96294);e.exports=function(e,t){return e&&r(t,o(t),e)}},46710:(e,t,n)=>{var r=n(62871),o=n(6737);e.exports=function(e,t){return e&&r(t,o(t),e)}},80472:(e,t,n)=>{var r=n(40691);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},35367:(e,t,n)=>{var r=n(81382),o=n(12249),i=n(71259),a=n(63909),s=n(46710),l=n(49538),c=n(11319),u=n(40279),d=n(91644),f=n(67530),p=n(35725),h=n(43261),m=n(613),g=n(55799),v=n(52497),y=n(19305),b=n(20368),w=n(50490),x=n(38469),_=n(87232),E=n(96294),S=n(6737),k="[object Arguments]",C="[object Function]",O="[object Object]",N={};N[k]=N["[object Array]"]=N["[object ArrayBuffer]"]=N["[object DataView]"]=N["[object Boolean]"]=N["[object Date]"]=N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Map]"]=N["[object Number]"]=N[O]=N["[object RegExp]"]=N["[object Set]"]=N["[object String]"]=N["[object Symbol]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N["[object Error]"]=N[C]=N["[object WeakMap]"]=!1,e.exports=function e(t,n,T,A,I,P){var D,R=1&n,j=2&n,M=4&n;if(T&&(D=I?T(t,A,I,P):T(t)),void 0!==D)return D;if(!x(t))return t;var L=y(t);if(L){if(D=m(t),!R)return c(t,D)}else{var z=h(t),F=z==C||"[object GeneratorFunction]"==z;if(b(t))return l(t,R);if(z==O||z==k||F&&!I){if(D=j||F?{}:v(t),!R)return j?d(t,s(D,t)):u(t,a(D,t))}else{if(!N[z])return I?t:{};D=g(t,z,R)}}P||(P=new r);var B=P.get(t);if(B)return B;P.set(t,D),_(t)?t.forEach((function(r){D.add(e(r,n,T,r,t,P))})):w(t)&&t.forEach((function(r,o){D.set(o,e(r,n,T,o,t,P))}));var U=L?void 0:(M?j?p:f:j?S:E)(t);return o(U||t,(function(r,o){U&&(r=t[o=r]),i(D,o,e(r,n,T,o,t,P))})),D}},50088:(e,t,n)=>{var r=n(38469),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},75125:(e,t,n)=>{var r=n(98137),o=n(94305)(r);e.exports=o},89875:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},84401:(e,t,n)=>{var r=n(31693)();e.exports=r},98137:(e,t,n)=>{var r=n(84401),o=n(96294);e.exports=function(e,t){return e&&r(e,t,o)}},43238:(e,t,n)=>{var r=n(68097),o=n(92061);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},21551:(e,t,n)=>{var r=n(59368),o=n(19305);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},16320:(e,t,n)=>{var r=n(537),o=n(48955),i=n(85406),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},16133:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},11275:(e,t,n)=>{var r=n(89875),o=n(21519),i=n(68055);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,o,n)}},19750:(e,t,n)=>{var r=n(16320),o=n(59698);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},31926:(e,t,n)=>{var r=n(84100),o=n(59698);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,s))}},84100:(e,t,n)=>{var r=n(81382),o=n(63679),i=n(39450),a=n(66217),s=n(43261),l=n(19305),c=n(20368),u=n(91159),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),w=y?f:s(e),x=b?f:s(t),_=(w=w==d?p:w)==p,E=(x=x==d?p:x)==p,S=w==x;if(S&&c(e)){if(!c(t))return!1;y=!0,_=!1}if(S&&!_)return v||(v=new r),y||u(e)?o(e,t,n,m,g,v):i(e,t,w,n,m,g,v);if(!(1&n)){var k=_&&h.call(e,"__wrapped__"),C=E&&h.call(t,"__wrapped__");if(k||C){var O=k?e.value():e,N=C?t.value():t;return v||(v=new r),g(O,N,n,m,v)}}return!!S&&(v||(v=new r),a(e,t,n,m,g,v))}},72220:(e,t,n)=>{var r=n(43261),o=n(59698);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},8543:(e,t,n)=>{var r=n(81382),o=n(31926);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(i)var h=i(d,f,u,e,t,p);if(!(void 0===h?o(f,d,3,i,p):h))return!1}}return!0}},21519:e=>{e.exports=function(e){return e!==e}},84579:(e,t,n)=>{var r=n(36738),o=n(31016),i=n(38469),a=n(45865),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},68414:(e,t,n)=>{var r=n(43261),o=n(59698);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},54573:(e,t,n)=>{var r=n(16320),o=n(72078),i=n(59698),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},28293:(e,t,n)=>{var r=n(85191),o=n(4178),i=n(9112),a=n(19305),s=n(35535);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},71824:(e,t,n)=>{var r=n(48303),o=n(54074),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},24447:(e,t,n)=>{var r=n(38469),o=n(48303),i=n(71325),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},85191:(e,t,n)=>{var r=n(8543),o=n(83216),i=n(89157);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},4178:(e,t,n)=>{var r=n(31926),o=n(87924),i=n(1167),a=n(46626),s=n(17900),l=n(89157),c=n(92061);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},634:(e,t,n)=>{var r=n(81382),o=n(14837),i=n(84401),a=n(66944),s=n(38469),l=n(6737),c=n(76614);e.exports=function e(t,n,u,d,f){t!==n&&i(n,(function(i,l){if(f||(f=new r),s(i))a(t,n,l,u,e,d,f);else{var p=d?d(c(t,l),i,l+"",t,n,f):void 0;void 0===p&&(p=i),o(t,l,p)}}),l)}},66944:(e,t,n)=>{var r=n(14837),o=n(49538),i=n(99889),a=n(11319),s=n(52497),l=n(52964),c=n(19305),u=n(59653),d=n(20368),f=n(36738),p=n(38469),h=n(20011),m=n(91159),g=n(76614),v=n(26180);e.exports=function(e,t,n,y,b,w,x){var _=g(e,n),E=g(t,n),S=x.get(E);if(S)r(e,n,S);else{var k=w?w(_,E,n+"",e,t,x):void 0,C=void 0===k;if(C){var O=c(E),N=!O&&d(E),T=!O&&!N&&m(E);k=E,O||N||T?c(_)?k=_:u(_)?k=a(_):N?(C=!1,k=o(E,!0)):T?(C=!1,k=i(E,!0)):k=[]:h(E)||l(E)?(k=_,l(_)?k=v(_):p(_)&&!f(_)||(k=s(E))):C=!1}C&&(x.set(E,k),b(k,E,y,w,x),x.delete(E)),r(e,n,k)}}},73885:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},49535:(e,t,n)=>{var r=n(43238);e.exports=function(e){return function(t){return r(t,e)}}},44735:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,s=n(t((r-e)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=e,e+=o;return l}},62990:(e,t,n)=>{var r=n(9112),o=n(39069),i=n(72633);e.exports=function(e,t){return i(o(e,t,r),e+"")}},63546:(e,t,n)=>{var r=n(71259),o=n(68097),i=n(83649),a=n(38469),s=n(92061);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,f=e;null!=f&&++c<u;){var p=s(t[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=f[p];void 0===(h=l?l(m,p,f):void 0)&&(h=a(m)?m:i(t[c+1])?[]:{})}r(f,p,h),f=f[p]}return e}},47018:(e,t,n)=>{var r=n(80222),o=n(40691),i=n(9112),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},32112:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},30040:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},85532:(e,t,n)=>{var r=n(537),o=n(54380),i=n(19305),a=n(60242),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},15464:(e,t,n)=>{var r=n(73712),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},57741:e=>{e.exports=function(e){return function(t){return e(t)}}},62509:(e,t,n)=>{var r=n(90035),o=n(82789),i=n(19417),a=n(2859),s=n(43821),l=n(80303);e.exports=function(e,t,n){var c=-1,u=o,d=e.length,f=!0,p=[],h=p;if(n)f=!1,u=i;else if(d>=200){var m=t?null:s(e);if(m)return l(m);f=!1,u=a,h=new r}else h=t?[]:p;e:for(;++c<d;){var g=e[c],v=t?t(g):g;if(g=n||0!==g?g:0,f&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),p.push(g)}else u(h,v,n)||(h!==p&&h.push(v),p.push(g))}return p}},2859:e=>{e.exports=function(e,t){return e.has(t)}},37530:(e,t,n)=>{var r=n(9112);e.exports=function(e){return"function"==typeof e?e:r}},68097:(e,t,n)=>{var r=n(19305),o=n(46626),i=n(35554),a=n(68814);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},19418:(e,t,n)=>{var r=n(32112);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},74413:(e,t,n)=>{var r=n(7804);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},49538:(e,t,n)=>{e=n.nmd(e);var r=n(4133),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},54353:(e,t,n)=>{var r=n(74413);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},72665:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},33120:(e,t,n)=>{var r=n(537),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},99889:(e,t,n)=>{var r=n(74413);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},11319:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},62871:(e,t,n)=>{var r=n(71259),o=n(80472);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},40279:(e,t,n)=>{var r=n(62871),o=n(54736);e.exports=function(e,t){return r(e,o(e),t)}},91644:(e,t,n)=>{var r=n(62871),o=n(12927);e.exports=function(e,t){return r(e,o(e),t)}},31473:(e,t,n)=>{var r=n(4133)["__core-js_shared__"];e.exports=r},35647:(e,t,n)=>{var r=n(62990),o=n(90552);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}},94305:(e,t,n)=>{var r=n(88118);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},31693:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},78195:(e,t,n)=>{var r=n(19418),o=n(9434),i=n(12880),a=n(68814);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},73148:(e,t,n)=>{var r=n(44735),o=n(90552),i=n(29776);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},64205:(e,t,n)=>{var r=n(4133),o=n(33609),i=n(150),a=n(68814),s=r.isFinite,l=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=i(e),(n=null==n?0:l(o(n),292))&&s(e)){var r=(a(e)+"e").split("e"),c=t(r[0]+"e"+(+r[1]+n));return+((r=(a(c)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}},43821:(e,t,n)=>{var r=n(32361),o=n(94454),i=n(80303),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},40691:(e,t,n)=>{var r=n(92470),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},63679:(e,t,n)=>{var r=n(90035),o=n(89728),i=n(2859);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var v=e[h],y=t[h];if(a)var b=c?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},39450:(e,t,n)=>{var r=n(537),o=n(7804),i=n(61872),a=n(63679),s=n(96741),l=n(80303),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=a(p(e),p(t),r,c,d,f);return f.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},66217:(e,t,n)=>{var r=n(67530),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in t:o.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var v=e[f=c[d]],y=t[f];if(i)var b=l?i(y,v,f,t,e,s):i(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,i,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},54528:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},67530:(e,t,n)=>{var r=n(21551),o=n(54736),i=n(96294);e.exports=function(e){return r(e,i,o)}},35725:(e,t,n)=>{var r=n(21551),o=n(12927),i=n(6737);e.exports=function(e){return r(e,i,o)}},85651:(e,t,n)=>{var r=n(19058);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},83216:(e,t,n)=>{var r=n(17900),o=n(96294);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},92470:(e,t,n)=>{var r=n(84579),o=n(98112);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},22807:(e,t,n)=>{var r=n(64503)(Object.getPrototypeOf,Object);e.exports=r},48955:(e,t,n)=>{var r=n(537),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},54736:(e,t,n)=>{var r=n(61522),o=n(82121),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},12927:(e,t,n)=>{var r=n(59368),o=n(22807),i=n(54736),a=n(82121),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},43261:(e,t,n)=>{var r=n(36484),o=n(37815),i=n(70364),a=n(32361),s=n(41527),l=n(16320),c=n(45865),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=c(r),g=c(o),v=c(i),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case g:return u;case v:return d;case y:return f;case b:return p}return t}),e.exports=w},98112:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},78326:(e,t,n)=>{var r=n(68097),o=n(52964),i=n(19305),a=n(83649),s=n(72078),l=n(92061);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var f=l(t[c]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(i(e)||o(e))}},9434:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},22984:(e,t,n)=>{var r=n(57578);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},99806:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},68489:(e,t,n)=>{var r=n(57578),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},38533:(e,t,n)=>{var r=n(57578),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},99661:(e,t,n)=>{var r=n(57578);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},613:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},55799:(e,t,n)=>{var r=n(74413),o=n(54353),i=n(72665),a=n(33120),s=n(99889);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},52497:(e,t,n)=>{var r=n(50088),o=n(22807),i=n(48303);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},83649:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},90552:(e,t,n)=>{var r=n(61872),o=n(88118),i=n(83649),a=n(38469);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},46626:(e,t,n)=>{var r=n(19305),o=n(60242),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},19058:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},31016:(e,t,n)=>{var r=n(31473),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},48303:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},17900:(e,t,n)=>{var r=n(38469);e.exports=function(e){return e===e&&!r(e)}},93454:e=>{e.exports=function(){this.__data__=[],this.size=0}},4200:(e,t,n)=>{var r=n(6993),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},30507:(e,t,n)=>{var r=n(6993);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},74343:(e,t,n)=>{var r=n(6993);e.exports=function(e){return r(this.__data__,e)>-1}},28815:(e,t,n)=>{var r=n(6993);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},11320:(e,t,n)=>{var r=n(7653),o=n(935),i=n(37815);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},22894:(e,t,n)=>{var r=n(85651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},23097:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).get(e)}},78453:(e,t,n)=>{var r=n(85651);e.exports=function(e){return r(this,e).has(e)}},24381:(e,t,n)=>{var r=n(85651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},96741:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},89157:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},18408:(e,t,n)=>{var r=n(45296);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},57578:(e,t,n)=>{var r=n(92470)(Object,"create");e.exports=r},54074:(e,t,n)=>{var r=n(64503)(Object.keys,Object);e.exports=r},71325:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},73073:(e,t,n)=>{e=n.nmd(e);var r=n(54528),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},85406:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},64503:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},39069:(e,t,n)=>{var r=n(34657),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},4133:(e,t,n)=>{var r=n(54528),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},76614:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},67596:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},78475:e=>{e.exports=function(e){return this.__data__.has(e)}},80303:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},72633:(e,t,n)=>{var r=n(47018),o=n(29355)(r);e.exports=o},29355:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},4212:(e,t,n)=>{var r=n(935);e.exports=function(){this.__data__=new r,this.size=0}},64898:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},42589:e=>{e.exports=function(e){return this.__data__.get(e)}},98545:e=>{e.exports=function(e){return this.__data__.has(e)}},26905:(e,t,n)=>{var r=n(935),o=n(37815),i=n(97269);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},68055:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},12880:(e,t,n)=>{var r=n(63786),o=n(9434),i=n(20878);e.exports=function(e){return o(e)?i(e):r(e)}},35554:(e,t,n)=>{var r=n(18408),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},92061:(e,t,n)=>{var r=n(60242);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},45865:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},73712:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},20878:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+l+")*"),d="(?:"+[i+r+"?",r,a,s,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){return e.match(f)||[]}},98816:(e,t,n)=>{var r=n(68814),o=n(58120);e.exports=function(e){return o(r(e).toLowerCase())}},58671:(e,t,n)=>{var r=n(35367);e.exports=function(e){return r(e,5)}},80222:e=>{e.exports=function(e){return function(){return e}}},43781:(e,t,n)=>{var r=n(38469),o=n(65236),i=n(150),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=u}function w(){var e=o();if(b(e))return x(e);f=setTimeout(w,function(e){var n=t-(e-p);return g?s(n,u-(e-h)):n}(e))}function x(e){return f=void 0,v&&l?y(e):(l=c=void 0,d)}function _(){var e=o(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),m?y(e):d}(p);if(g)return clearTimeout(f),f=setTimeout(w,t),y(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=c=f=void 0},_.flush=function(){return void 0===f?d:x(o())},_}},22735:(e,t,n)=>{e.exports=n(54386)},61872:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},54386:(e,t,n)=>{var r=n(12249),o=n(75125),i=n(37530),a=n(19305);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},87924:(e,t,n)=>{var r=n(43238);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},1167:(e,t,n)=>{var r=n(16133),o=n(78326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},9112:e=>{e.exports=function(e){return e}},52964:(e,t,n)=>{var r=n(19750),o=n(59698),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},19305:e=>{var t=Array.isArray;e.exports=t},88118:(e,t,n)=>{var r=n(36738),o=n(72078);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},59653:(e,t,n)=>{var r=n(88118),o=n(59698);e.exports=function(e){return o(e)&&r(e)}},20368:(e,t,n)=>{e=n.nmd(e);var r=n(4133),o=n(84711),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},905:(e,t,n)=>{var r=n(71824),o=n(43261),i=n(52964),a=n(19305),s=n(88118),l=n(20368),c=n(48303),u=n(91159),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},62060:(e,t,n)=>{var r=n(31926);e.exports=function(e,t){return r(e,t)}},36738:(e,t,n)=>{var r=n(16320),o=n(38469);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},72078:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},50490:(e,t,n)=>{var r=n(72220),o=n(57741),i=n(73073),a=i&&i.isMap,s=a?o(a):r;e.exports=s},38469:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},59698:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},20011:(e,t,n)=>{var r=n(16320),o=n(22807),i=n(59698),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},87232:(e,t,n)=>{var r=n(68414),o=n(57741),i=n(73073),a=i&&i.isSet,s=a?o(a):r;e.exports=s},60242:(e,t,n)=>{var r=n(16320),o=n(59698);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},91159:(e,t,n)=>{var r=n(54573),o=n(57741),i=n(73073),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},96294:(e,t,n)=>{var r=n(20943),o=n(71824),i=n(88118);e.exports=function(e){return i(e)?r(e):o(e)}},6737:(e,t,n)=>{var r=n(20943),o=n(24447),i=n(88118);e.exports=function(e){return i(e)?r(e,!0):o(e)}},45296:(e,t,n)=>{var r=n(97269);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},17148:(e,t,n)=>{var r=n(634),o=n(35647)((function(e,t,n){r(e,t,n)}));e.exports=o},94454:e=>{e.exports=function(){}},65236:(e,t,n)=>{var r=n(4133);e.exports=function(){return r.Date.now()}},35535:(e,t,n)=>{var r=n(73885),o=n(49535),i=n(46626),a=n(92061);e.exports=function(e){return i(e)?r(a(e)):o(e)}},36613:(e,t,n)=>{var r=n(73148)();e.exports=r},6104:(e,t,n)=>{var r=n(64205)("round");e.exports=r},38896:(e,t,n)=>{var r=n(63546);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},82121:e=>{e.exports=function(){return[]}},84711:e=>{e.exports=function(){return!1}},61758:(e,t,n)=>{var r=n(43781),o=n(38469);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},29776:(e,t,n)=>{var r=n(150),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},33609:(e,t,n)=>{var r=n(29776);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},150:(e,t,n)=>{var r=n(15464),o=n(38469),i=n(60242),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},26180:(e,t,n)=>{var r=n(62871),o=n(6737);e.exports=function(e){return r(e,o(e))}},68814:(e,t,n)=>{var r=n(85532);e.exports=function(e){return null==e?"":r(e)}},11078:(e,t,n)=>{var r=n(28293),o=n(62509);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},58120:(e,t,n)=>{var r=n(78195)("toUpperCase");e.exports=r},51682:e=>{"use strict";e.exports=Math.abs},45904:e=>{"use strict";e.exports=Math.floor},58899:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},73620:e=>{"use strict";e.exports=Math.max},40538:e=>{"use strict";e.exports=Math.min},7328:e=>{"use strict";e.exports=Math.pow},54:e=>{"use strict";e.exports=Math.round},75869:(e,t,n)=>{"use strict";var r=n(58899);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},77995:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(o=e[n],i=t[n],!(o===i||r(o)&&r(i)))return!1;var o,i;return!0}const i=function(e,t){var n;void 0===t&&(t=o);var r,i=[],a=!1;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return a&&n===this&&t(o,i)||(r=e.apply(this,o),a=!0,n=this,i=o),r}}},97650:function(e,t,n){var r,o,i;o=[n(7139)],void 0===(i="function"===typeof(r=function(e){e.register("locale","bg",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0445\u0438\u043b",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0442\u0440\u043b\u043d"},ordinal:function(e){return""},currency:{symbol:"\u043b\u0432"}}),e.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u4ebf",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"K\u010d"}}),e.register("locale","da-dk",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(e){return"."},currency:{symbol:"DKK"}}),e.register("locale","de-ch",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"CHF"}}),e.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","en-au",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"\xa3"}}),e.register("locale","en-za",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"R"}}),e.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"\u20ac"}}),e.register("locale","es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$"}}),e.register("locale","et",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"$"}}),e.register("locale","fr-ch",{delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"CHF"}}),e.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"\u20ac"}}),e.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:" Ft"}}),e.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u5104",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","lv",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" t\u016bkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","nl-be",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","nl-nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","no",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"kr"}}),e.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(e){return"."},currency:{symbol:"PLN"}}),e.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milh\xf5es",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"R$"}}),e.register("locale","pt-pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20b4"}}),e.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d.",billion:"\u043c\u043b\u0440\u0434.",trillion:"\u0442\u0440\u043b\u043d."},ordinal:function(){return"."},currency:{symbol:"\u0440\u0443\u0431."}}),e.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","sl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mrd",trillion:"trilijon"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","th",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u0e1e\u0e31\u0e19",million:"\u0e25\u0e49\u0e32\u0e19",billion:"\u0e1e\u0e31\u0e19\u0e25\u0e49\u0e32\u0e19",trillion:"\u0e25\u0e49\u0e32\u0e19\u0e25\u0e49\u0e32\u0e19"},ordinal:function(e){return"."},currency:{symbol:"\u0e3f"}}),function(){var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(e){if(0===e)return"'\u0131nc\u0131";var n=e%10,r=e%100-n,o=e>=100?100:null;return t[n]||t[r]||t[o]},currency:{symbol:"\u20ba"}})}(),e.register("locale","uk-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u0438\u0441.",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0431\u043b\u043d"},ordinal:function(){return""},currency:{symbol:"\u20b4"}}),e.register("locale","vi",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:" ngh\xecn",million:" tri\u1ec7u",billion:" t\u1ef7",trillion:" ngh\xecn t\u1ef7"},ordinal:function(){return"."},currency:{symbol:"\u20ab"}})})?r.apply(t,o):r)||(e.exports=i)},7139:function(e,t,n){var r,o;r=function(){var e,t,n="2.0.6",r={},o={},i={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:i.currentLocale,zeroFormat:i.zeroFormat,nullFormat:i.nullFormat,defaultFormat:i.defaultFormat,scalePercentBy100:i.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(n){var o,i,l,c;if(e.isNumeral(n))o=n.value();else if(0===n||"undefined"===typeof n)o=0;else if(null===n||t.isNaN(n))o=null;else if("string"===typeof n)if(a.zeroFormat&&n===a.zeroFormat)o=0;else if(a.nullFormat&&n===a.nullFormat||!n.replace(/[^0-9]+/g,"").length)o=null;else{for(i in r)if((c="function"===typeof r[i].regexps.unformat?r[i].regexps.unformat():r[i].regexps.unformat)&&n.match(c)){l=r[i].unformat;break}o=(l=l||e._.stringToNumber)(n)}else o=Number(n)||null;return new s(n,o)}).version=n,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,r){var i,a,s,l,c,u,d,f=o[e.options.currentLocale],p=!1,h=!1,m=0,g="",v=1e12,y=1e9,b=1e6,w=1e3,x="",_=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(c=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(i=!!(i=n.match(/a(k|m|b|t)?/))&&i[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),a>=v&&!i||"t"===i?(g+=f.abbreviations.trillion,t/=v):a<v&&a>=y&&!i||"b"===i?(g+=f.abbreviations.billion,t/=y):a<y&&a>=b&&!i||"m"===i?(g+=f.abbreviations.million,t/=b):(a<b&&a>=w&&!i||"k"===i)&&(g+=f.abbreviations.thousand,t/=w)),e._.includes(n,"[.]")&&(h=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],l=n.split(".")[1],u=n.indexOf(","),m=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),x=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):x=e._.toFixed(t,l.length,r),s=x.split(".")[0],x=e._.includes(x,".")?f.delimiters.decimal+x.split(".")[1]:"",h&&0===Number(x.slice(1))&&(x="")):s=e._.toFixed(t,0,r),g&&!i&&Number(s)>=1e3&&g!==f.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),_=!0),s.length<m)for(var E=m-s.length;E>0;E--)s="0"+s;return u>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(s=""),d=s+x+(g||""),p?d=(p&&_?"(":"")+d+(p&&_?")":""):c>=0?d=0===c?(_?"-":"+")+d:d+(_?"-":"+"):_&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,i=o[a.currentLocale],s=e,l={thousand:3,million:6,billion:9,trillion:12};if(a.zeroFormat&&e===a.zeroFormat)n=0;else if(a.nullFormat&&e===a.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),l)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),s.match(r)){n*=Math.pow(10,l[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"===typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),o=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{for(;i<o&&!(i in r);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;i<o;i++)i in r&&(n=t(n,r[i],i,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var o,i,a,s,l=e.toString().split("."),c=t-(r||0);return o=2===l.length?Math.min(Math.max(l[1].length,c),t):c,a=Math.pow(10,o),s=(n(e+"e+"+o)/a).toFixed(o),r>t-o&&(i=new RegExp("\\.?0{1,"+(r-(t-o))+"}$"),s=s.replace(i,"")),s}},e.options=a,e.formats=r,e.locales=o,e.locale=function(e){return e&&(a.currentLocale=e.toLowerCase()),a.currentLocale},e.localeData=function(e){if(!e)return o[a.currentLocale];if(e=e.toLowerCase(),!o[e])throw new Error("Unknown locale : "+e);return o[e]},e.reset=function(){for(var e in i)a[e]=i[e]},e.zeroFormat=function(e){a.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){a.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){a.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,o,i,a,s,l,c,u;if("string"!==typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(d){c=e.localeData(e.locale())}return i=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,o="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(u=t.match(/^[^\d]+/))||(t=t.substr(1),u[0]===i))&&(null===(u=t.match(/[^\d]+$/))||(t=t.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(l=new RegExp(o+"{2}"),!t.match(/[^\d.,]/g)&&!((a=t.split(r)).length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/)))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,n){var o,i,s,l=this._value,c=t||a.defaultFormat;if(n=n||Math.round,0===l&&null!==a.zeroFormat)i=a.zeroFormat;else if(null===l&&null!==a.nullFormat)i=a.nullFormat;else{for(o in r)if(c.match(r[o].regexps.format)){s=r[o].format;break}i=(s=s||e._.numberToFormat)(l,c,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,o){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,o){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)*Math.round(n*i)/Math.round(i*i)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)/Math.round(n*i)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var o,i=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,o,i){var a,s,l,c=e._.includes(o,"ib")?n:t,u=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),a=0;a<=c.suffixes.length;a++)if(s=Math.pow(c.base,a),l=Math.pow(c.base,a+1),null===r||0===r||r>=s&&r<l){u+=c.suffixes[a],s>0&&(r/=s);break}return e._.numberToFormat(r,o,i)+u},unformat:function(r){var o,i,a=e._.stringToNumber(r);if(a){for(o=t.suffixes.length-1;o>=0;o--){if(e._.includes(r,t.suffixes[o])){i=Math.pow(t.base,o);break}if(e._.includes(r,n.suffixes[o])){i=Math.pow(n.base,o);break}}a*=i||1}return a}})}(),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var o,i,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),i=0;i<s.before.length;i++)switch(s.before[i]){case"$":o=e._.insert(o,a.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+a.currency.symbol.length-1)}for(i=s.after.length-1;i>=0;i--)switch(s.after[i]){case"$":o=i===s.after.length-1?o+a.currency.symbol:e._.insert(o,a.currency.symbol,-(s.after.length-(1+i)));break;case" ":o=i===s.after.length-1?o+" ":e._.insert(o," ",-(s.after.length-(1+i)+a.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var o=("number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),n,r)+"e"+o[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),o=Number(n[1]);function i(t,n,r,o){var i=e._.correctionFactor(t,n);return t*i*(n*i)/(i*i)}return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([r,Math.pow(10,o)],i,1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var o=e.locales[e.options.currentLocale],i=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,n,r)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var o,i=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),o=Math.floor((e-60*r*60)/60),i=Math.round(e-60*r*60-60*o);return r+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},void 0===(o="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=o)},69123:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"===typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,_=RegExp.prototype.test,E=Array.prototype.concat,S=Array.prototype.join,k=Array.prototype.slice,C=Math.floor,O="function"===typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"===typeof Symbol&&"object"===typeof Symbol.iterator,I="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,D=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-C(-e):C(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var j=n(42634),M=j.custom,L=H(M)?M:null,z={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(e,t,n){var r=n.quoteStyle||t,o=z[r];return o+e+o}function U(e){return b.call(String(e),/"/g,""")}function q(e){return"[object Array]"===K(e)&&(!I||!("object"===typeof e&&I in e))}function $(e){return"[object RegExp]"===K(e)&&(!I||!("object"===typeof e&&I in e))}function H(e){if(A)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,o,s){var l=r||{};if(V(l,"quoteStyle")&&!V(z,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!V(l,"customInspect")||l.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return Y(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?R(t,_):_}if("bigint"===typeof t){var C=String(t)+"n";return w?R(t,C):C}var N="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof o&&(o=0),o>=N&&N>0&&"object"===typeof t)return q(t)?"[Array]":"[Object]";var M=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(l,o);if("undefined"===typeof s)s=[];else if(G(s,t)>=0)return"[Circular]";function F(t,n,r){if(n&&(s=k.call(s)).push(n),r){var i={depth:l.depth};return V(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,s)}return e(t,l,o+1,s)}if("function"===typeof t&&!$(t)){var W=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),Z=te(t,F);return"[Function"+(W?": "+W:" (anonymous)")+"]"+(Z.length>0?" { "+S.call(Z,", ")+" }":"")}if(H(t)){var ne=A?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!==typeof t||A?ne:Q(ne)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var re="<"+x.call(String(t.nodeName)),oe=t.attributes||[],ie=0;ie<oe.length;ie++)re+=" "+oe[ie].name+"="+B(U(oe[ie].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+x.call(String(t.nodeName))+">"}if(q(t)){if(0===t.length)return"[]";var ae=te(t,F);return M&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(ae)?"["+ee(ae,M)+"]":"[ "+S.call(ae,", ")+" ]"}if(function(e){return"[object Error]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t)){var se=te(t,F);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(se,", ")+" }":"{ ["+String(t)+"] "+S.call(E.call("[cause]: "+F(t.cause),se),", ")+" }"}if("object"===typeof t&&m){if(L&&"function"===typeof t[L]&&j)return j(t,{depth:N-o});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{c.call(e)}catch(re){return!0}return e instanceof Map}catch(t){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,n){le.push(F(n,t,!0)+" => "+F(e,t))})),X("Map",i.call(t),le,M)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(F(e,t))})),X("Set",c.call(t),ce,M)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(re){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return J("WeakMap");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(re){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return J("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return J("WeakRef");if(function(e){return"[object Number]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Q(F(Number(t)));if(function(e){if(!e||"object"!==typeof e||!O)return!1;try{return O.call(e),!0}catch(t){}return!1}(t))return Q(F(O.call(t)));if(function(e){return"[object Boolean]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Q(h.call(t));if(function(e){return"[object String]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t))return Q(F(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&t===globalThis||"undefined"!==typeof n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===K(e)&&(!I||!("object"===typeof e&&I in e))}(t)&&!$(t)){var ue=te(t,F),de=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",pe=!de&&I&&Object(t)===t&&I in t?y.call(K(t),8,-1):fe?"Object":"",he=(de||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||fe?"["+S.call(E.call([],pe||[],fe||[]),": ")+"] ":"");return 0===ue.length?he+"{}":M?he+"{"+ee(ue,M)+"}":he+"{ "+S.call(ue,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return W.call(e,t)}function K(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Y(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(y.call(e,0,t.maxStringLength),t)+r}var o=F[t.quoteStyle||"single"];return o.lastIndex=0,B(b.call(b.call(e,o,"\\$1"),/[\x00-\x1f]/g,Z),"single",t)}function Z(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Q(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?ee(n,r):S.call(n,", "))+"}"}function ee(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function te(e,t){var n=q(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=V(e,o)?t(e[o],e):""}var i,a="function"===typeof N?N(e):[];if(A){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)V(e,l)&&(n&&String(Number(l))===l&&l<e.length||A&&i["$"+l]instanceof Symbol||(_.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof N)for(var c=0;c<a.length;c++)P.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},95166:e=>{e.exports=d,e.exports.match=function(e,t){var n=[];return i(d(e,n,t),n)},e.exports.regexpToFunction=i,e.exports.parse=r,e.exports.compile=function(e,t){return a(r(e,t),t)},e.exports.tokensToFunction=a,e.exports.tokensToRegExp=u;var t="/",n=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function r(e,r){for(var i,a=[],s=0,c=0,u="",d=r&&r.delimiter||t,f=r&&r.whitelist||void 0,p=!1;null!==(i=n.exec(e));){var h=i[0],m=i[1],g=i.index;if(u+=e.slice(c,g),c=g+h.length,m)u+=m[1],p=!0;else{var v="",y=i[2],b=i[3],w=i[4],x=i[5];if(!p&&u.length){var _=u.length-1,E=u[_];(!f||f.indexOf(E)>-1)&&(v=E,u=u.slice(0,_))}u&&(a.push(u),u="",p=!1);var S="+"===x||"*"===x,k="?"===x||"*"===x,C=b||w,O=v||d,N=v||("string"===typeof a[a.length-1]?a[a.length-1]:"");a.push({name:y||s++,prefix:v,delimiter:O,optional:k,repeat:S,pattern:C?l(C):o(O,d,N)})}}return(u||c<e.length)&&a.push(u+e.substr(c)),a}function o(e,t,n){var r="[^"+s(e===t?e:e+t)+"]";return!n||n.indexOf(e)>-1||n.indexOf(t)>-1?r+"+?":s(n)+"|(?:(?!"+s(n)+")"+r+")+?"}function i(e,t){return function(n,r){var o=e.exec(n);if(!o)return!1;for(var i=o[0],a=o.index,s={},l=r&&r.decode||decodeURIComponent,c=1;c<o.length;c++)if(void 0!==o[c]){var u=t[c-1];u.repeat?s[u.name]=o[c].split(u.delimiter).map((function(e){return l(e,u)})):s[u.name]=l(o[c],u)}return{path:i,index:a,params:s}}}function a(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",c(t)));return function(t,r){for(var o="",i=r&&r.encode||encodeURIComponent,a=!r||!1!==r.validate,s=0;s<e.length;s++){var l=e[s];if("string"!==typeof l){var c,u=t?t[l.name]:void 0;if(Array.isArray(u)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but got array');if(0===u.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(c=i(u[d],l),a&&!n[s].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'"');o+=(0===d?l.prefix:l.delimiter)+c}}else if("string"!==typeof u&&"number"!==typeof u&&"boolean"!==typeof u){if(!l.optional)throw new TypeError('Expected "'+l.name+'" to be '+(l.repeat?"an array":"a string"))}else{if(c=i(String(u),l),a&&!n[s].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but got "'+c+'"');o+=l.prefix+c}}else o+=l}return o}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$/()])/g,"\\$1")}function c(e){return e&&e.sensitive?"":"i"}function u(e,n,r){for(var o=(r=r||{}).strict,i=!1!==r.start,a=!1!==r.end,l=r.delimiter||t,u=[].concat(r.endsWith||[]).map(s).concat("$").join("|"),d=i?"^":"",f=0;f<e.length;f++){var p=e[f];if("string"===typeof p)d+=s(p);else{var h=p.repeat?"(?:"+p.pattern+")(?:"+s(p.delimiter)+"(?:"+p.pattern+"))*":p.pattern;n&&n.push(p),p.optional?p.prefix?d+="(?:"+s(p.prefix)+"("+h+"))?":d+="("+h+")?":d+=s(p.prefix)+"("+h+")"}}if(a)o||(d+="(?:"+s(l)+")?"),d+="$"===u?"$":"(?="+u+")";else{var m=e[e.length-1],g="string"===typeof m?m[m.length-1]===l:void 0===m;o||(d+="(?:"+s(l)+"(?="+u+"))?"),g||(d+="(?="+s(l)+"|"+u+")")}return new RegExp(d,c(r))}function d(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return e}(e,t):Array.isArray(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(d(e[o],t,n).source);return new RegExp("(?:"+r.join("|")+")",c(n))}(e,t,n):function(e,t,n){return u(r(e,n),t,n)}(e,t,n)}},77390:(e,t,n)=>{"use strict";var r=n(31445);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},13260:(e,t,n)=>{e.exports=n(77390)()},31445:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7445:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:o}},74309:(e,t,n)=>{"use strict";var r=n(93780),o=n(77146),i=n(7445);e.exports={formats:i,parse:o,stringify:r}},77146:(e,t,n)=>{"use strict";var r=n(73888),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(i))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}if(s){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+i.slice(s.index)+"]")}return function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{a=n.plainObjects?{__proto__:null}:{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(u,10);n.parseArrays||""!==u?!isNaN(d)&&s!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(a=[])[d]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset,n="undefined"===typeof e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:"undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"===typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?{__proto__:null}:{};for(var u="string"===typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<f.length;++u)0===f[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[u]?h="utf-8":"utf8=%26%2310003%3B"===f[u]&&(h="iso-8859-1"),p=u,u=f.length);for(u=0;u<f.length;++u)if(u!==p){var m,g,v=f[u],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,b),a.decoder,h,"key"),g=r.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(String(g))),v.indexOf("[]=")>-1&&(g=i(g)?[g]:g);var w=o.call(n,m);w&&"combine"===t.duplicates?n[m]=r.combine(n[m],g):w&&"last"!==t.duplicates||(n[m]=g)}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},f=Object.keys(u),p=0;p<f.length;++p){var h=f[p],m=c(h,u[h],n,"string"===typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},93780:(e,t,n)=>{"use strict";var r=n(3584),o=n(73888),i=n(7445),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,i,a,s,c,d,f,m,g,v,y,b,w,x,_,E,S){for(var k,C=t,O=S,N=0,T=!1;void 0!==(O=O.get(h))&&!T;){var A=O.get(t);if(N+=1,"undefined"!==typeof A){if(A===N)throw new RangeError("Cyclic object value");T=!0}"undefined"===typeof O.get(h)&&(N=0)}if("function"===typeof g?C=g(n,C):C instanceof Date?C=b(C):"comma"===i&&l(C)&&(C=o.maybeMap(C,(function(e){return e instanceof Date?b(e):e}))),null===C){if(c)return m&&!_?m(n,p.encoder,E,"key",w):n;C=""}if("string"===typeof(k=C)||"number"===typeof k||"boolean"===typeof k||"symbol"===typeof k||"bigint"===typeof k||o.isBuffer(C))return m?[x(_?n:m(n,p.encoder,E,"key",w))+"="+x(m(C,p.encoder,E,"value",w))]:[x(n)+"="+x(String(C))];var I,P=[];if("undefined"===typeof C)return P;if("comma"===i&&l(C))_&&m&&(C=o.maybeMap(C,m)),I=[{value:C.length>0?C.join(",")||null:void 0}];else if(l(g))I=g;else{var D=Object.keys(C);I=v?D.sort(v):D}var R=f?String(n).replace(/\./g,"%2E"):String(n),j=a&&l(C)&&1===C.length?R+"[]":R;if(s&&l(C)&&0===C.length)return j+"[]";for(var M=0;M<I.length;++M){var L=I[M],z="object"===typeof L&&L&&"undefined"!==typeof L.value?L.value:C[L];if(!d||null!==z){var F=y&&f?String(L).replace(/\./g,"%2E"):String(L),B=l(C)?"function"===typeof i?i(j,F):j:j+(y?"."+F:"["+F+"]");S.set(t,N);var U=r();U.set(h,S),u(P,e(z,B,i,a,s,c,d,f,"comma"===i&&_&&l(C)?null:m,g,v,y,b,w,x,_,E,U))}}return P};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return p;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if("undefined"!==typeof e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=i.formatters[n],c=p.filter;if(("function"===typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:c,format:n,formatter:o,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"===typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var d=[];if("object"!==typeof o||null===o)return"";var f=s[c.arrayFormat],h="comma"===f&&c.commaRoundTrip;n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var g=r(),v=0;v<n.length;++v){var y=n[v],b=o[y];c.skipNulls&&null===b||u(d,m(b,y,f,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var w=d.join(c.delimiter),x=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),w.length>0?x+w:""}},73888:(e,t,n)=>{"use strict";var r=n(7445),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},l=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)"undefined"!==typeof n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;u+=l){for(var d=s.length>=l?s.slice(u,u+l):s,f=[],p=0;p<d.length;++p){var h=d.charCodeAt(p);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===r.RFC1738&&(40===h||41===h)?f[f.length]=d.charAt(p):h<128?f[f.length]=a[h]:h<2048?f[f.length]=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?f[f.length]=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(p+=1,h=65536+((1023&h)<<10|1023&d.charCodeAt(p)),f[f.length]=a[240|h>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}c+=f.join("")}return c},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n&&"function"!==typeof n){if(i(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"===typeof a&&n&&"object"===typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},53202:(e,t,n)=>{"use strict";n.d(t,{JY:()=>bo,sx:()=>ti,gL:()=>ii});var r=n(59284),o=n(25540),i=n(58168),a=n(96906),s=r.createContext(null);var l=function(e){e()},c=function(){return l};var u={notify:function(){},get:function(){return[]}};function d(e,t){var n,r=u;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=c(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=u)},getListeners:function(){return r}};return a}var f="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;const p=function(e){var t=e.store,n=e.context,o=e.children,i=(0,r.useMemo)((function(){var e=d(t);return{store:t,subscription:e}}),[t]),a=(0,r.useMemo)((function(){return t.getState()}),[t]);f((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var l=n||s;return r.createElement(l.Provider,{value:i},o)};var h=n(98587),m=n(5290),g=n.n(m),v=n(94771),y=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],b=["reactReduxForwardedRef"],w=[],x=[null,null];function _(e,t){var n=e[1];return[t.payload,n+1]}function E(e,t,n){f((function(){return e.apply(void 0,t)}),n)}function S(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function k(e,t,n,r,o,i,a,s,l,c){if(e){var u=!1,d=null,f=function(){if(!u){var e,n,f=t.getState();try{e=r(f,o.current)}catch(p){n=p,d=p}n||(d=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var C=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,l=n.methodName,c=void 0===l?"connectAdvanced":l,u=n.renderCountProp,f=void 0===u?void 0:u,p=n.shouldHandleStateChanges,m=void 0===p||p,O=n.storeKey,N=void 0===O?"store":O,T=(n.withRef,n.forwardRef),A=void 0!==T&&T,I=n.context,P=void 0===I?s:I,D=(0,h.A)(n,y),R=P;return function(t){var n=t.displayName||t.name||"Component",o=a(n),s=(0,i.A)({},D,{getDisplayName:a,methodName:c,renderCountProp:f,shouldHandleStateChanges:m,storeKey:N,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=D.pure;var u=l?r.useMemo:function(e){return e()};function p(n){var o=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,h.A)(n,b);return[n.context,e,t]}),[n]),a=o[0],l=o[1],c=o[2],f=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,v.isContextConsumer)(r.createElement(a.Consumer,null))?a:R}),[a,R]),p=(0,r.useContext)(f),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var y=g?n.store:p.store,O=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,s)}(y)}),[y]),N=(0,r.useMemo)((function(){if(!m)return x;var e=d(y,g?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[y,g,p]),T=N[0],A=N[1],I=(0,r.useMemo)((function(){return g?p:(0,i.A)({},p,{subscription:T})}),[g,p,T]),P=(0,r.useReducer)(_,w,C),D=P[0][0],j=P[1];if(D&&D.error)throw D.error;var M=(0,r.useRef)(),L=(0,r.useRef)(c),z=(0,r.useRef)(),F=(0,r.useRef)(!1),B=u((function(){return z.current&&c===L.current?z.current:O(y.getState(),c)}),[y,D,c]);E(S,[L,M,F,c,B,z,A]),E(k,[m,y,T,O,L,M,F,z,A,j],[y,T,O]);var U=(0,r.useMemo)((function(){return r.createElement(t,(0,i.A)({},B,{ref:l}))}),[l,t,B]);return(0,r.useMemo)((function(){return m?r.createElement(f.Provider,{value:I},U):U}),[f,U,I])}var y=l?r.memo(p):p;if(y.WrappedComponent=t,y.displayName=p.displayName=o,A){var O=r.forwardRef((function(e,t){return r.createElement(y,(0,i.A)({},e,{reactReduxForwardedRef:t}))}));return O.displayName=o,O.WrappedComponent=t,g()(O,t)}return g()(y,t)}}function N(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function T(e,t){if(N(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!N(e[n[o]],t[n[o]]))return!1;return!0}function A(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function I(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function P(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=I(e);var o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=I(o),o=r(t,n)),o},r}}const D=[function(e){return"function"===typeof e?P(e):void 0},function(e){return e?void 0:A((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?A((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"===typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}];const R=[function(e){return"function"===typeof e?P(e):void 0},function(e){return e?void 0:A((function(){return{}}))}];function j(e,t,n){return(0,i.A)({},n,e,t)}const M=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return j}}];var L=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function z(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function F(e,t,n,r,o){var i,a,s,l,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,p=!1;function h(o,p){var h=!d(p,a),m=!u(o,i,p,a);return i=o,a=p,h&&m?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):h?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?function(){var t=e(i,a),r=!f(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(o,u){return p?h(o,u):(s=e(i=o,a=u),l=t(r,a),c=n(s,l,a),p=!0,c)}}function B(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,h.A)(t,L),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?F:z)(a,s,l,e,i)}var U=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function q(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function $(e,t){return e===t}function H(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,o=t.mapStateToPropsFactories,a=void 0===o?R:o,s=t.mapDispatchToPropsFactories,l=void 0===s?D:s,c=t.mergePropsFactories,u=void 0===c?M:c,d=t.selectorFactory,f=void 0===d?B:d;return function(e,t,n,o){void 0===o&&(o={});var s=o,c=s.pure,d=void 0===c||c,p=s.areStatesEqual,m=void 0===p?$:p,g=s.areOwnPropsEqual,v=void 0===g?T:g,y=s.areStatePropsEqual,b=void 0===y?T:y,w=s.areMergedPropsEqual,x=void 0===w?T:w,_=(0,h.A)(s,U),E=q(e,a,"mapStateToProps"),S=q(t,l,"mapDispatchToProps"),k=q(n,u,"mergeProps");return r(f,(0,i.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:S,initMergeProps:k,pure:d,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:x},_))}}const W=H();var V,K=n(48681);function G(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],o=(0,r.useRef)(!0),i=(0,r.useRef)(n),a=o.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,r.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}V=K.unstable_batchedUpdates,l=V;var Y=G,Z=function(e,t){return G((function(){return e}),t)},Q=n(68643),J=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},X=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ee=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},te={top:0,right:0,bottom:0,left:0},ne=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?te:n,o=e.border,i=void 0===o?te:o,a=e.padding,s=void 0===a?te:a,l=J(X(t,r)),c=J(ee(t,i)),u=J(ee(c,s));return{marginBox:l,borderBox:J(t),paddingBox:c,contentBox:u,margin:r,border:i,padding:s}},re=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&(0,Q.A)(!1),n},oe=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return ne({borderBox:l,border:i,margin:a,padding:s})},ie=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),oe(e,t)},ae=function(e,t){var n={top:re(t.marginTop),right:re(t.marginRight),bottom:re(t.marginBottom),left:re(t.marginLeft)},r={top:re(t.paddingTop),right:re(t.paddingRight),bottom:re(t.paddingBottom),left:re(t.paddingLeft)},o={top:re(t.borderTopWidth),right:re(t.borderRightWidth),bottom:re(t.borderBottomWidth),left:re(t.borderLeftWidth)};return ne({borderBox:e,margin:n,padding:r,border:o})},se=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ae(t,n)},le=n(77995);const ce=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function ue(e,t){}ue.bind(null,"warn"),ue.bind(null,"error");function de(){}function fe(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,i.A)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var pe=!0,he="Invariant failed";function me(e){this.message=e}function ge(e,t){if(!e)throw new me(pe?he:he+": "+(t||""))}me.prototype.toString=function(){return this.message};var ve=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=de,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof me&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,o.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=fe(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof me))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),ye=function(e){return e+1},be=function(e,t){var n=e.droppableId===t.droppableId,r=ye(e.index),o=ye(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},we=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},xe=function(e){return"\n The item has returned to its starting position\n of "+ye(e.index)+"\n"},_e={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position "+ye(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return be(e.source,t);var n=e.combine;return n?we(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+xe(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+be(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+we(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+xe(e.source)+"\n "}},Ee={x:0,y:0},Se=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},ke=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Ce=function(e,t){return e.x===t.x&&e.y===t.y},Oe=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ne=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Te=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Ae=function(e,t){return Math.min.apply(Math,t.map((function(t){return Te(e,t)})))},Ie=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Pe=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},De=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Re=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=J({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):J(e)},je=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,a=function(e,t){return t?Pe(e,t.scroll.diff.displacement):e}(t.marginBox,o),s=function(e,t,n){var r;return n&&n.increasedBy?(0,i.A)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:Re(s,o)}},Me=function(e,t){e.frame||ge(!1);var n=e.frame,r=ke(t,n.scroll.initial),o=Oe(r),a=(0,i.A)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),s=je({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,i.A)({},e,{frame:a,subject:s})};function Le(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function ze(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Fe(e,t){if(e.find)return e.find(t);var n=ze(e,t);return-1!==n?e[n]:void 0}function Be(e){return Array.prototype.slice.call(e)}var Ue=(0,le.A)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),qe=(0,le.A)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),$e=(0,le.A)((function(e){return Le(e)})),He=(0,le.A)((function(e){return Le(e)})),We=(0,le.A)((function(e,t){var n=He(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function Ve(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Ke(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ge=(0,le.A)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Ye=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Ze={point:Ee,value:0},Qe={invisible:{},visible:{},all:[]},Je={displaced:Qe,displacedBy:Ze,at:null},Xe=function(e,t){return function(n){return e<=n&&n<=t}},et=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||(a&&i||s&&o)}},tt=function(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},nt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},rt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ot=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Ee;return Pe(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},it=function(e){return ot((0,i.A)({},e,{isVisibleThroughFrameFn:et}))},at=function(e){return ot((0,i.A)({},e,{isVisibleThroughFrameFn:tt}))};function st(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return J(X(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!it({target:s,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate}(l,a,i),u={draggableId:l,shouldAnimate:c};return e.visible[l]=u,e}),{all:[],visible:{},invisible:{}})}function lt(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Qe,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function ct(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=Ye(t,r);if(null==s)return lt({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var u=Fe(n,(function(e){return e.descriptor.index===s}));if(!u)return lt({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var d=Ge(t,n),f=n.indexOf(u);return{displaced:st({afterDragging:d.slice(f),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:l}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function ut(e,t){return Boolean(t.effected[e])}var dt=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||ge(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:ct({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,s=r[a].descriptor.index;return ut(a,i)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==f?null:ct({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})},ft=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Ke(n);o||ge(!1);var i=o.draggableId,a=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return ut(r,n)?i?Ee:Oe(o.point):i?o.point:Ee}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Se(a,s)},pt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},ht=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},mt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ne(t.line,n.marginBox[t.end]+pt(t,r),ht(t,n.marginBox,r))},gt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ne(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),ht(t,n.marginBox,r))},vt=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=We(o.descriptor.id,r),s=n.page,l=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Ne(t.line,n.contentBox[t.start]+pt(t,r),ht(t,n.contentBox,r))}({axis:l,moveInto:o.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=r[d];if(ut(d,i))return gt({axis:l,moveRelativeTo:f.page,isMoving:s});var p=oe(f.page,u.point);return gt({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(ut(h.descriptor.id,i)){var m=oe(h.page,Oe(i.displacedBy.point));return mt({axis:l,moveRelativeTo:m,isMoving:s})}return mt({axis:l,moveRelativeTo:h.page,isMoving:s})},yt=function(e,t){var n=e.frame;return n?Se(t,n.scroll.diff.displacement):t},bt=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?vt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):ft({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?yt(n,t):t},wt=function(e,t){var n=ke(t,e.scroll.initial),r=Oe(n);return{frame:J({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function xt(e,t){return e.map((function(e){return t[e]}))}var _t=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Se(e.scroll.diff.displacement,t)}(e.viewport,t),o=ke(r,n.page.borderBox.center);return Se(n.client.borderBox.center,o)},Et=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,a=e.withDroppableDisplacement,s=e.onlyOnMainAxis,l=void 0!==s&&s,c=ke(r,t.page.borderBox.center),u={target:Pe(t.page.borderBox,c),destination:n,withDroppableDisplacement:a,viewport:o};return l?function(e){return ot((0,i.A)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Xe(e.top,e.bottom),r=Xe(e.left,e.right);return function(e){return t===nt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):at(u)},St=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,a=e.previousImpact,s=e.viewport,l=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var d=We(r.descriptor.id,o),f=Ye(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Ve(a))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,i.A)({},a,{at:t})}var l=a.displaced.all,c=l.length?l[0]:null;if(t)return c?s(c):null;var u=Ge(n,o);if(!c)return u.length?s(u[u.length-1].descriptor.id):null;var d=ze(u,(function(e){return e.descriptor.id===c}));-1===d&&ge(!1);var f=d-1;return f<0?null:s(u[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:d,previousImpact:a})||dt({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:d,previousImpact:a,viewport:s,afterCritical:u});if(!p)return null;var h=bt({impact:p,draggable:n,droppable:r,draggables:o,afterCritical:u});if(Et({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:_t({pageBorderBoxCenter:h,draggable:n,viewport:s}),impact:p,scrollJumpRequest:null};var m=ke(h,l),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,s=wt(n,Se(n.scroll.current,a)),l=r.frame?Me(r,Se(r.frame.scroll.current,a)):r,c=t.displaced,u=st({afterDragging:xt(c.all,o),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:c,forceShouldAnimate:!1}),d=st({afterDragging:xt(c.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:c,forceShouldAnimate:!1}),f={},p={},h=[c,u,d];return c.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,h);t?p[e]=t:f[e]=!0})),(0,i.A)({},t,{displaced:{all:c.all,invisible:f,visible:p}})}({impact:p,viewport:s,destination:r,draggables:o,maxScrollChange:m});return{clientSelection:c,impact:g,scrollJumpRequest:m}},kt=function(e){var t=e.subject.active;return t||ge(!1),t},Ct=function(e,t){var n=e.page.borderBox.center;return ut(e.descriptor.id,t)?ke(n,t.displacedBy.point):n},Ot=function(e,t){var n=e.page.borderBox;return ut(e.descriptor.id,t)?Pe(n,Oe(t.displacedBy.point)):n},Nt=(0,le.A)((function(e,t){var n=t[e.line];return{value:n,point:Ne(e.line,n)}})),Tt=function(e,t){return(0,i.A)({},e,{scroll:(0,i.A)({},e.scroll,{max:t})})},At=function(e,t,n){var r=e.frame;Ye(t,e)&&ge(!1),e.subject.withPlaceholder&&ge(!1);var o=Nt(e.axis,t.displaceBy).point,a=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return Ne(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=We(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:Ne(r.line,i)}(e,o,n),s={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var l=je({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:e.frame});return(0,i.A)({},e,{subject:l})}var c=a?Se(r.scroll.max,a):r.scroll.max,u=Tt(r,c),d=je({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:u});return(0,i.A)({},e,{subject:d,frame:u})},It=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=Xe(a[s.start],a[s.end]),c=$e(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return et(i.frame)(kt(e))})).filter((function(e){var n=kt(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=kt(e),n=Xe(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=kt(e)[s.crossAxisStart],o=kt(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return kt(e)[s.crossAxisStart]===kt(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return Xe(kt(e)[s.start],kt(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return kt(e)[s.start]-kt(t)[s.start]}))[0]:c.sort((function(e,t){var r=Ae(n,De(kt(e))),o=Ae(n,De(kt(t)));return r!==o?r-o:kt(e)[s.start]-kt(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:s});if(!c)return null;var u=We(c.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical,a=o.filter((function(e){return at({target:Ot(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Te(t,yt(r,Ct(e,i))),a=Te(t,yt(r,Ct(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:Qe,displacedBy:Ze,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=bt({impact:c,draggable:o,droppable:a,draggables:i,afterCritical:l}),d=Ye(o,a)?a:At(a,o,i);return Et({draggable:o,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var f=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),p=function(){var e=n.descriptor.index;return n.descriptor.id===o.descriptor.id||f?e:e+1}(),h=Nt(a.axis,o.displaceBy);return ct({draggable:o,insideDestination:r,destination:a,viewport:s,displacedBy:h,last:Qe,index:p})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!f)return null;var p=bt({impact:f,draggable:r,droppable:c,draggables:i,afterCritical:l});return{clientSelection:_t({pageBorderBoxCenter:p,draggable:r,viewport:s}),impact:f,scrollJumpRequest:null}},Pt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Dt=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Pt(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!o)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,h=f.droppables;return l?St({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):It({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function Rt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function jt(e){var t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Mt(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=$e(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(jt(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],l=t[i.crossAxisEnd],c=Xe(o[i.crossAxisStart],o[i.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=Ne(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Te(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var Lt=function(e,t){return J(Pe(e,t))};function zt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Ft=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,l=Lt(n.page.borderBox,t),c=Mt({pageBorderBox:l,draggable:n,droppables:o});if(!c)return Je;var u=o[c],d=We(u.descriptor.id,r),f=function(e,t){var n=e.frame;return n?Lt(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=Nt(o.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],f=Fe(Ge(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,i=ut(t,a),l=zt({displaced:r.displaced,id:t});return i?l?d>n[s.start]+o&&d<n[s.end]-o:u>n[s.start]-c+o&&u<n[s.end]-c-o:l?d>n[s.start]+c+o&&d<n[s.end]+c-o:u>n[s.start]+o&&u<n[s.end]-o}));return f?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,c=Nt(r.axis,n.displaceBy),u=c.value,d=t[l.start],f=t[l.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Fe(Ge(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=ut(t,s),o=zt({displaced:i,id:t});return r?o?f<=n:d<n-u:o?f<=n+u:d<n})),inHomeList:Ye(n,r)});return ct({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:c,index:p})}({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:u,insideDestination:d,last:i.displaced,viewport:a,afterCritical:s})},Bt=function(e,t){var n;return(0,i.A)({},e,((n={})[t.descriptor.id]=t,n))},Ut=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Pt(t),a=Pt(n);if(!o)return r;if(o===a)return r;var s=r[o];if(!s.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||ge(!1);var n=e.frame;if(!n){var r=je({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,i.A)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||ge(!1);var a=Tt(n,o),s=je({page:e.subject.page,axis:e.axis,frame:a,withPlaceholder:null});return(0,i.A)({},e,{subject:s,frame:a})}(s);return Bt(r,l)},qt=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,a=e.impact,s=e.scrollJumpRequest,l=o||t.viewport,c=r||t.dimensions,u=n||t.current.client.selection,d=ke(u,t.initial.client.selection),f={offset:d,selection:u,borderBoxCenter:Se(t.initial.client.borderBoxCenter,d)},p={selection:Se(f.selection,l.scroll.current),borderBoxCenter:Se(f.borderBoxCenter,l.scroll.current),offset:Se(f.offset,l.scroll.diff.value)},h={client:f,page:p};if("COLLECTING"===t.phase)return(0,i.A)({phase:"COLLECTING"},t,{dimensions:c,viewport:l,current:h});var m=c.draggables[t.critical.draggable.id],g=a||Ft({pageOffset:p.offset,draggable:m,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=Ut({previousImpact:o,impact:i,droppables:r}),s=Pt(i);if(!s)return a;var l=r[s];if(Ye(t,l))return a;if(l.subject.withPlaceholder)return a;var c=At(l,t,n);return Bt(a,c)}({draggable:m,impact:g,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables});return(0,i.A)({},t,{current:h,dimensions:{draggables:c.draggables,droppables:v},impact:g,viewport:l,scrollJumpRequest:s||null,forceShouldAnimate:!s&&null})};var $t=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,a=e.forceShouldAnimate,s=t.displaced,l=function(e,t){return e.map((function(e){return t[e]}))}(s.all,r),c=st({afterDragging:l,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:s});return(0,i.A)({},t,{displaced:c})},Ht=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=bt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return _t({pageBorderBoxCenter:s,draggable:n,viewport:i})},Wt=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&ge(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=Pt(o);u||ge(!1);var d=l[u],f=$t({impact:o,viewport:i,destination:d,draggables:s}),p=Ht({impact:f,draggable:c,droppable:d,draggables:s,viewport:i,afterCritical:t.afterCritical});return qt({impact:f,clientSelection:p,state:t,dimensions:a,viewport:i})},Vt=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=Nt(n.axis,t.displaceBy),a=We(n.descriptor.id,r),s=a.indexOf(t);-1===s&&ge(!1);var l,c=a.slice(s+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:u};return{impact:{displaced:st({afterDragging:c,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},Kt=function(e){0},Gt=function(e){0},Yt=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||ge(!1),t}(n[t]),s=a.scroll.diff.value,l=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=oe(t.client,n),a=ie(o,r);return(0,i.A)({},t,{placeholder:(0,i.A)({},t.placeholder,{client:o}),client:o,page:a})}({draggable:e,offset:Se(o,s),initialWindowScroll:r.scroll.initial});return l}))},Zt=function(e){return"SNAP"===e.movementMode},Qt=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Bt(e.droppables,t)}}(e.dimensions,t);return!Zt(e)||n?qt({state:e,dimensions:r}):Wt({state:e,dimensions:r})};function Jt(e){return e.isDragging&&"SNAP"===e.movementMode?(0,i.A)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Xt={phase:"IDLE",completed:null,shouldFlush:!1},en=function(e,t){if(void 0===e&&(e=Xt),"FLUSH"===t.type)return(0,i.A)({},Xt,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ge(!1);var n=t.payload,r=n.critical,o=n.clientSelection,a=n.viewport,s=n.dimensions,l=n.movementMode,c=s.draggables[r.draggable.id],u=s.droppables[r.droppable.id],d={selection:o,borderBoxCenter:c.client.borderBox.center,offset:Ee},f={client:d,page:{selection:Se(d.selection,a.scroll.initial),borderBoxCenter:Se(d.selection,a.scroll.initial),offset:Se(d.selection,a.scroll.diff.value)}},p=$e(s.droppables).every((function(e){return!e.isFixedOnPage})),h=Vt({draggable:c,home:u,draggables:s.draggables,viewport:a}),m=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:s,initial:f,current:f,isWindowScrollAllowed:p,impact:m,afterCritical:h.afterCritical,onLiftImpact:m,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ge(!1),(0,i.A)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ge(!1),function(e){var t=e.state,n=e.published;Kt();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Me(n,e.scroll)})),o=(0,i.A)({},t.dimensions.droppables,{},Ue(r)),a=qe(Yt({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),s=(0,i.A)({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete s[e]}));var l={droppables:o,draggables:s},c=Pt(t.impact),u=c?l.droppables[c]:null,d=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],p=Vt({draggable:d,home:f,draggables:s,viewport:t.viewport}),h=p.impact,m=p.afterCritical,g=u&&u.isCombineEnabled?t.impact:h,v=Ft({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:g,viewport:t.viewport,afterCritical:m});Gt();var y=(0,i.A)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:h,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?y:(0,i.A)({phase:"DROP_PENDING"},y,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Rt(e)||ge(!1);var g=t.payload.client;return Ce(g,e.current.client.selection)?e:qt({state:e,clientSelection:g,impact:Zt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Jt(e);if("COLLECTING"===e.phase)return Jt(e);Rt(e)||ge(!1);var v=t.payload,y=v.id,b=v.newScroll,w=e.dimensions.droppables[y];if(!w)return e;var x=Me(w,b);return Qt(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Rt(e)||ge(!1);var _=t.payload,E=_.id,S=_.isEnabled,k=e.dimensions.droppables[E];k||ge(!1),k.isEnabled===S&&ge(!1);var C=(0,i.A)({},k,{isEnabled:S});return Qt(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Rt(e)||ge(!1);var O=t.payload,N=O.id,T=O.isCombineEnabled,A=e.dimensions.droppables[N];A||ge(!1),A.isCombineEnabled===T&&ge(!1);var I=(0,i.A)({},A,{isCombineEnabled:T});return Qt(e,I,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Rt(e)||ge(!1),e.isWindowScrollAllowed||ge(!1);var P=t.payload.newScroll;if(Ce(e.viewport.scroll.current,P))return Jt(e);var D=wt(e.viewport,P);return Zt(e)?Wt({state:e,viewport:D}):qt({state:e,viewport:D})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Rt(e))return e;var R=t.payload.maxScroll;if(Ce(R,e.viewport.scroll.max))return e;var j=(0,i.A)({},e.viewport,{scroll:(0,i.A)({},e.viewport.scroll,{max:R})});return(0,i.A)({phase:"DRAGGING"},e,{viewport:j})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ge(!1);var M=Dt({state:e,type:t.type});return M?qt({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&ge(!1),(0,i.A)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var z=t.payload,F=z.completed,B=z.dropDuration,U=z.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ge(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:B,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},tn=function(e){return{type:"LIFT",payload:e}},nn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},rn=function(){return{type:"COLLECTION_STARTING",payload:null}},on=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},an=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},sn=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},ln=function(e){return{type:"MOVE",payload:e}},cn=function(){return{type:"MOVE_UP",payload:null}},un=function(){return{type:"MOVE_DOWN",payload:null}},dn=function(){return{type:"MOVE_RIGHT",payload:null}},fn=function(){return{type:"MOVE_LEFT",payload:null}},pn=function(){return{type:"FLUSH",payload:null}},hn=function(e){return{type:"DROP_COMPLETE",payload:e}},mn=function(e){return{type:"DROP",payload:e}},gn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var vn="cubic-bezier(.2,1,.1,1)",yn={drop:0,combining:.7},bn={drop:.75},wn=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",xn={fluid:"opacity "+wn,snap:"transform "+wn+", opacity "+wn,drop:function(e){var t=e+"s "+vn;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+wn,placeholder:"height "+wn+", width "+wn+", margin "+wn},_n=function(e){return Ce(e,Ee)?null:"translate("+e.x+"px, "+e.y+"px)"},En=_n,Sn=function(e,t){var n=_n(e);return n?t?n+" scale("+bn.drop+")":n:null},kn=.33,Cn=.55,On=Cn-kn,Nn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),a=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&ge(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&ge(!1);var s=o.critical,l=o.dimensions,c=l.draggables[o.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,a=e.viewport,s=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,i.A)({},r,{displaced:Qe}),didDropInsideDroppable:!0}:{impact:$t({draggables:t,impact:s,destination:o,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),d=u.impact,f=u.didDropInsideDroppable,p=f?Ve(d):null,h=f?Ke(d):null,m={index:s.draggable.index,droppableId:s.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:p,combine:h},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,s=r.droppables,l=Pt(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=Ht({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:c||u,viewport:o});return ke(d,n.client.borderBox.center)}({impact:d,draggable:c,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),y={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:d};if(!Ce(o.current.client.offset,v)||Boolean(g.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,o=Te(t,n);if(o<=0)return kn;if(o>=1500)return Cn;var i=kn+On*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:v,reason:a});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:b,completed:y}))}else n(hn({completed:y}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},Tn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function An(e){var t=e.onWindowScroll;var n=ce((function(){t(Tn())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=de;function i(){return o!==de}return{start:function(){i()&&ge(!1),o=fe(window,[r])},stop:function(){i()||ge(!1),n.cancel(),o(),o=de},isActive:i}}var In=function(e){var t=An({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Pn=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=ze(e,(function(e){return e.timerId===t}));-1===n&&ge(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Dn=function(e,t){Kt(),t(),Gt()},Rn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},jn=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Mn=function(e,t){var n=function(e,t){var n=Pn(),r=null,o=function(n){r||ge(!1),r=null,Dn(0,(function(){return jn(e().onDragEnd,n,t,_e.onDragEnd)}))};return{beforeCapture:function(t,n){r&&ge(!1),Dn(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&ge(!1),Dn(0,(function(){var r=e().onBeforeDragStart;r&&r(Rn(t,n))}))},start:function(o,i){r&&ge(!1);var a=Rn(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Dn(0,(function(){return jn(e().onDragStart,a,t,_e.onDragStart)}))}))},update:function(o,a){var s=Ve(a),l=Ke(a);r||ge(!1);var c=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);c&&(r.lastCritical=o);var u,d,f=(d=s,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));f&&(r.lastLocation=s);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,l);if(p&&(r.lastCombine=l),c||f||p){var h=(0,i.A)({},Rn(o,r.mode),{combine:l,destination:s});n.add((function(){Dn(0,(function(){return jn(e().onDragUpdate,h,t,_e.onDragUpdate)}))}))}},flush:function(){r||ge(!1),n.flush()},drop:o,abort:function(){if(r){var e=(0,i.A)({},Rn(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Ln=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&ge(!1),e.dispatch(hn({completed:r.completed}))}else t(n)}}},zn=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=fe(window,[i])}))}}}},Fn=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(mn({reason:r.reason})))}}}},Bn=a.Zz,Un=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,s=e.announce,l=e.autoScroller;return(0,a.y$)(en,Bn((0,a.Tw)((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,s=i.clientSelection,l=i.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(hn({completed:c.completed})),"IDLE"!==n().phase&&ge(!1),r(pn()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),f=d.critical,p=d.dimensions,h=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:p,clientSelection:s,movementMode:l,viewport:h}})}else t(o)}}}}(n),Nn,Ln,zn,Fn,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&ge(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),In,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Mn(i,s))))};var qn=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=ke({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},$n=function(){var e=document.documentElement;return e||ge(!1),e},Hn=function(){var e=$n();return qn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Wn=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Kt();var o=function(){var e=Tn(),t=Hn(),n=e.y,r=e.x,o=$n(),i=o.clientWidth,a=o.clientHeight;return{frame:J({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Ee,displacement:Ee}}}}(),i=o.scroll.current,a=t.droppable,s=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),l=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)})),c={draggables:qe(l),droppables:Ue(s)};return Gt(),{dimensions:c,critical:t,viewport:o}};function Vn(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Kn=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,Kt();var e=r,i=e.additions,a=e.removals,s=e.modified,l=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(Ee)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:l,removals:Object.keys(a),modified:c};r={additions:{},removals:{},modified:{}},Gt(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||ge(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Vn(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Vn(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||ge(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||ge(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||ge(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&ge(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},s=e.subscribe(o);return n={critical:a,unsubscribe:s},Wn({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return i},Gn=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},Yn=function(e){window.scrollBy(e.x,e.y)},Zn=(0,le.A)((function(e){return $e(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Qn=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){var n=Fe(Zn(t),(function(t){return t.frame||ge(!1),jt(t.frame.pageMarginBox)(e)}));return n}(t,r);return i},Jn=.25,Xn=.05,er=28,tr=function(e){return Math.pow(e,2)},nr={stopDampeningAt:1200,accelerateAt:360},rr=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},or=nr.accelerateAt,ir=nr.stopDampeningAt,ar=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return er;if(e===t.startScrollingFrom)return 1;var n=rr({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=er*tr(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=ir,o=Date.now()-n;if(o>=ir)return e;if(o<or)return 1;var i=rr({startOfRange:or,endOfRange:r,current:o}),a=e*tr(i);return Math.ceil(a)}(i,r),1):i},sr=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*Jn,maxScrollValueAt:e[t.size]*Xn}}(t,o);return n[o.end]<n[o.start]?ar({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*ar({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},lr=Ie((function(e){return 0===e?0:e})),cr=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=sr({container:n,distanceToEdges:a,dragStartTime:t,axis:nt,shouldUseTimeDampening:i}),l=sr({container:n,distanceToEdges:a,dragStartTime:t,axis:rt,shouldUseTimeDampening:i}),c=lr({x:l,y:s});if(Ce(c,Ee))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?Ce(u,Ee)?null:u:null},ur=Ie((function(e){return 0===e?0:e>0?1:-1})),dr=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,o=t.change,i=Se(n,o),a={x:e(i.x,r.x),y:e(i.y,r.y)};return Ce(a,Ee)?null:a}}(),fr=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=ur(r),a=dr({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},pr=function(e,t){return fr({current:e.scroll.current,max:e.scroll.max,change:t})},hr=function(e,t){var n=e.frame;return!!n&&fr({current:n.scroll.current,max:n.scroll.max,change:t})},mr=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=cr({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&pr(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void o(l)}var c=Qn({center:a,destination:Pt(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=cr({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&hr(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&i(c.descriptor.id,u)}},gr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!hr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&hr(e,t)?dr({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=ke(t,r);return n(e.descriptor.id,o),ke(t,o)},i=function(e,t,n){if(!e)return n;if(!pr(t,n))return n;var o=function(e,t){if(!pr(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return dr({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=ke(n,o);return r(i),ke(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Pt(e.impact);r||ge(!1);var a=o(e.dimensions.droppables[r],n);if(a){var s=e.viewport,l=i(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=Se(e.current.client.selection,n);t({client:r})}(e,l)}}}},vr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=ce(t),o=ce(n),i=null,a=function(e){i||ge(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;mr({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){Kt(),i&&ge(!1);var t=Date.now(),n=!1,r=function(){n=!0};mr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},Gt(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=gr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},yr="data-rbd",br=function(){var e=yr+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),wr=function(){var e=yr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),xr=function(){var e=yr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),_r={contextId:yr+"-scroll-container-context-id"},Er=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Sr=function(e){var t,n=(t=e,function(e){return"["+e+'="'+t+'"]'}),r=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:n(br.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),o=[function(){var e="\n transition: "+xn.outOfTheWay+";\n ";return{selector:n(wr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),r,{selector:n(xr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Er(o,"always"),resting:Er(o,"resting"),dragging:Er(o,"dragging"),dropAnimating:Er(o,"dropAnimating"),userCancel:Er(o,"userCancel")}},kr="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect,Cr=function(){var e=document.querySelector("head");return e||ge(!1),e},Or=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Nr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Tr(e){return e instanceof Nr(e).HTMLElement}function Ar(e,t){var n="["+br.contextId+'="'+e+'"]',r=Be(document.querySelectorAll(n));if(!r.length)return null;var o=Fe(r,(function(e){return e.getAttribute(br.draggableId)===t}));return o&&Tr(o)?o:null}function Ir(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||ge(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Le(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||ge(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Le(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Pr=r.createContext(null),Dr=function(){var e=document.body;return e||ge(!1),e},Rr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},jr=function(e){return"rbd-announcement-"+e};var Mr=0,Lr={separator:"::"};function zr(e,t){return void 0===t&&(t=Lr),Y((function(){return""+e+t.separator+Mr++}),[t.separator,e])}var Fr=r.createContext(null);function Br(e){0}function Ur(e,t){Br()}function qr(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var $r,Hr=(($r={})[13]=!0,$r[9]=!0,$r),Wr=function(e){Hr[e.keyCode]&&e.preventDefault()},Vr=function(){var e="visibilitychange";return"undefined"===typeof document?e:Fe([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Kr,Gr={type:"IDLE"};function Yr(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);if("PENDING"!==s.type&&ge(!1),function(e,t){return Math.abs(t.x-e.x)>=5||Math.abs(t.y-e.y)>=5}(s.point,a)){e.preventDefault();var l=s.actions.fluidLift(a);o({type:"DRAGGING",actions:l})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Wr(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&ge(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Vr,fn:t}]}function Zr(){}var Qr=((Kr={})[34]=!0,Kr[33]=!0,Kr[36]=!0,Kr[35]=!0,Kr);function Jr(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Qr[r.keyCode]?r.preventDefault():Wr(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Vr,fn:n}]}var Xr={type:"IDLE"};var eo={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function to(e,t){if(null==t)return!1;if(Boolean(eo[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&to(e,t.parentElement)}function no(e,t){var n=t.target;return!!Tr(n)&&to(e,n)}var ro=function(e){return J(e.getBoundingClientRect()).center};var oo=function(){var e="matches";return"undefined"===typeof document?e:Fe([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function io(e,t){return null==e?null:e[oo](t)?e:io(e.parentElement,t)}function ao(e,t){return e.closest?e.closest(t):io(e,t)}function so(e,t){var n,r=t.target;if(!((n=r)instanceof Nr(n).Element))return null;var o=function(e){return"["+br.contextId+'="'+e+'"]'}(e),i=ao(r,o);return i&&Tr(i)?i:null}function lo(e){e.preventDefault()}function co(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function uo(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!Gn(n.getState(),o))}function fo(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,a=e.draggableId,s=e.forceSensorStop,l=e.sourceEvent;if(!uo({lockAPI:t,store:r,registry:o,draggableId:a}))return null;var c=o.draggable.getById(a),u=function(e,t){var n="["+wr.contextId+'="'+e+'"]',r=Fe(Be(document.querySelectorAll(n)),(function(e){return e.getAttribute(wr.id)===t}));return r&&Tr(r)?r:null}(n,c.descriptor.id);if(!u)return null;if(l&&!c.options.canDragInteractiveElements&&no(u,l))return null;var d=t.claim(s||de),f="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}var m=function(e,t){co({expected:e,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=fe(window,[{eventName:"click",fn:lo,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(mn({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&ge(!1)),r.dispatch(tn(e.liftActionArgs)),f="DRAGGING",(0,i.A)({isActive:function(){return co({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return co({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=ce((function(e){m((function(){return ln({client:e})}))})),n=g({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,i.A)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return m(cn)},moveRight:function(){return m(dn)},moveDown:function(){return m(un)},moveLeft:function(){return m(fn)}};return g({liftActionArgs:{id:a,clientSelection:ro(u),movementMode:"SNAP"},cleanup:de,actions:e})},abort:function(){co({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}}}var po=[function(e){var t=(0,r.useRef)(Gr),n=(0,r.useRef)(de),o=Y((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),u(o,i)}}}}}}),[e]),i=Y((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=Z((function(){n.current=fe(window,[i,o],{passive:!1,capture:!0})}),[i,o]),s=Z((function(){"IDLE"!==t.current.type&&(t.current=Gr,n.current(),a())}),[a]),l=Z((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=Z((function(){var e=Yr({cancel:l,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=fe(window,e,{capture:!0,passive:!1})}),[l,s]),u=Z((function(e,n){"IDLE"!==t.current.type&&ge(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);kr((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,r.useRef)(Zr),n=Y((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var i=e.tryGetLock(r,l,{sourceEvent:n});if(i){n.preventDefault();var a=!0,s=i.snapLift();t.current(),t.current=fe(window,Jr(s,l),{capture:!0,passive:!1})}}}function l(){a||ge(!1),a=!1,t.current(),o()}}}}),[e]),o=Z((function(){t.current=fe(window,[n],{passive:!1,capture:!0})}),[n]);kr((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,r.useRef)(Xr),n=(0,r.useRef)(de),o=Z((function(){return t.current}),[]),i=Z((function(e){t.current=e}),[]),a=Y((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,l,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),f(o,a)}}}}}}),[e]),s=Z((function(){n.current=fe(window,[a],{capture:!0,passive:!1})}),[a]),l=Z((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Xr),n.current(),s())}),[s,i]),c=Z((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=Z((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:o},r=fe(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&ge(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:Vr,fn:t}]}(t),e),i=fe(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Vr,fn:t}]}(t),e);n.current=function(){r(),i()}}),[c,o,l]),d=Z((function(){var e=o();"PENDING"!==e.type&&ge(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),f=Z((function(e,t){"IDLE"!==o().type&&ge(!1);var n=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,i,d]);kr((function(){return s(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Xr))}}),[o,s,i]),kr((function(){return fe(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function ho(e){var t=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,s=[].concat(a?po:[],i||[]),l=(0,r.useState)((function(){return function(){var e=null;function t(){e||ge(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ge(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=Z((function(e,t){e.isDragging&&!t.isDragging&&l.tryAbandon()}),[l]);kr((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();c(e,t),e=t}))}),[l,n,c]),kr((function(){return l.tryAbandon}),[l.tryAbandon]);var u=Z((function(e){return uo({lockAPI:l,registry:o,store:n,draggableId:e})}),[l,o,n]),d=Z((function(e,r,i){return fo({lockAPI:l,registry:o,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,l,o,n]),f=Z((function(e){return function(e,t){var n=so(e,t);return n?n.getAttribute(br.draggableId):null}(t,e)}),[t]),p=Z((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=Z((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(pn()))}),[l,n]),m=Z(l.isClaimed,[l]),g=Y((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}}),[u,d,f,p,h,m]);Br();for(var v=0;v<s.length;v++)s[v](g)}var mo=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function go(e){return e.current||ge(!1),e.current}function vo(e){var t=e.contextId,n=e.setCallbacks,o=e.sensors,s=e.nonce,l=e.dragHandleUsageInstructions,c=(0,r.useRef)(null);Ur();var u=qr(e),d=Z((function(){return mo(u.current)}),[u]),f=function(e){var t=Y((function(){return jr(e)}),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,i.A)(e.style,Rr),Dr().appendChild(e),function(){setTimeout((function(){var t=Dr();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Z((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),h=function(e){var t=e.contextId,n=e.text,o=zr("hidden-text",{separator:"-"}),i=Y((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,t]);return(0,r.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",Dr().appendChild(e),function(){var t=Dr();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:l}),m=function(e,t){var n=Y((function(){return Sr(e)}),[e]),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=Z((0,le.A)((function(e){var t=i.current;t||ge(!1),t.textContent=e})),[]),s=Z((function(e){var t=o.current;t||ge(!1),t.textContent=e}),[]);kr((function(){(o.current||i.current)&&ge(!1);var r=Or(t),l=Or(t);return o.current=r,i.current=l,r.setAttribute(yr+"-always",e),l.setAttribute(yr+"-dynamic",e),Cr().appendChild(r),Cr().appendChild(l),s(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||ge(!1),Cr().removeChild(t),e.current=null};e(o),e(i)}}),[t,s,a,n.always,n.resting,e]);var l=Z((function(){return a(n.dragging)}),[a,n.dragging]),c=Z((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),u=Z((function(){i.current&&a(n.resting)}),[a,n.resting]);return Y((function(){return{dragging:l,dropping:c,resting:u}}),[l,c,u])}(t,s),g=Z((function(e){go(c).dispatch(e)}),[]),v=Y((function(){return(0,a.zH)({publishWhileDragging:nn,updateDroppableScroll:on,updateDroppableIsEnabled:an,updateDroppableIsCombineEnabled:sn,collectionStarting:rn},g)}),[g]),y=function(){var e=Y(Ir,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),b=Y((function(){return Kn(y,v)}),[y,v]),w=Y((function(){return vr((0,i.A)({scrollWindow:Yn,scrollDroppable:b.scrollDroppable},(0,a.zH)({move:ln},g)))}),[b.scrollDroppable,g]),x=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(!1),a=Z((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),s=Z((function(t){var n=Ar(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=Z((function(e,t){n.current===e&&(n.current=t)}),[]),c=Z((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=n.current;e&&s(e)})))}),[s]),u=Z((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(br.draggableId)===e&&(n.current=e)}),[]);return kr((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),Y((function(){return{register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}}),[a,u,c,l])}(t),_=Y((function(){return Un({announce:f,autoScroller:w,dimensionMarshal:b,focusMarshal:x,getResponders:d,styleMarshal:m})}),[f,w,b,x,d,m]);c.current=_;var E=Z((function(){var e=go(c);"IDLE"!==e.getState().phase&&e.dispatch(pn())}),[]),S=Z((function(){var e=go(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Y((function(){return{isDragging:S,tryAbort:E}}),[S,E]));var k=Z((function(e){return Gn(go(c).getState(),e)}),[]),C=Z((function(){return Rt(go(c).getState())}),[]),O=Y((function(){return{marshal:b,focus:x,contextId:t,canLift:k,isMovementAllowed:C,dragHandleUsageInstructionsId:h,registry:y}}),[t,b,h,x,k,C,y]);return ho({contextId:t,store:_,registry:y,customSensors:o,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return E}),[E]),r.createElement(Fr.Provider,{value:O},r.createElement(p,{context:Pr,store:_},e.children))}var yo=0;function bo(e){var t=Y((function(){return""+yo++}),[]),n=e.dragHandleUsageInstructions||_e.dragHandleUsageInstructions;return r.createElement(ve,null,(function(o){return r.createElement(vo,{nonce:e.nonce,contextId:t,setCallbacks:o,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var wo=function(e){return function(t){return e===t}},xo=wo("scroll"),_o=wo("auto"),Eo=(wo("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),So=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Eo(n,xo)||Eo(n,_o)},ko=function e(t){return null==t||t===document.body||t===document.documentElement?null:So(t)?t:e(t.parentElement)},Co=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Oo=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},No=function(e){return{closestScrollable:ko(e),isFixedOnPage:Oo(e)}},To=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=se(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,s=X({top:r,right:a,bottom:i,left:o},n.border);return ne({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=ie(u,o),f=function(){if(!c)return null;var e=se(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:ie(e,o),scroll:Co(c),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=qn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Ee,displacement:Ee}}}}(),u="vertical"===i?nt:rt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:je({page:s,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:u,page:d,closest:f});return p},Ao={passive:!1},Io={passive:!0},Po=function(e){return e.shouldPublishImmediately?Ao:Io};function Do(e){var t=(0,r.useContext)(e);return t||ge(!1),t}var Ro=function(e){return e&&e.env.closestScrollable||null};function jo(){}var Mo={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Lo=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?Mo:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?xn.placeholder:null}};var zo=r.memo((function(e){var t=(0,r.useRef)(null),n=Z((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),o=e.animate,i=e.onTransitionEnd,a=e.onClose,s=e.contextId,l=(0,r.useState)("open"===e.animate),c=l[0],u=l[1];(0,r.useEffect)((function(){return c?"open"!==o?(n(),u(!1),jo):t.current?jo:(t.current=setTimeout((function(){t.current=null,u(!1)})),n):jo}),[o,c,n]);var d=Z((function(e){"height"===e.propertyName&&(i(),"close"===o&&a())}),[o,a,i]),f=Lo({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return r.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":s,onTransitionEnd:d,ref:e.innerRef})})),Fo=r.createContext(null);var Bo=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(r.PureComponent),Uo=5e3,qo=4500,$o=function(e,t){return t?xn.drop(t.duration):e?xn.snap:xn.fluid},Ho=function(e,t){return e?t?yn.drop:yn.combining:null};function Wo(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),s=Boolean(o),l=s?Sn(n,i):En(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:$o(a,o),transform:l,opacity:Ho(i,s),zIndex:s?qo:Uo,pointerEvents:"none"}}(e):{transform:En((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Vo(e){var t=zr("draggable"),n=e.descriptor,o=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,s=e.shouldRespectForcePress,l=e.isEnabled,c=Y((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}}),[a,l,s]),u=Z((function(e){var t=i();return t||ge(!1),function(e,t,n){void 0===n&&(n=Ee);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=ae(o,r),a=ie(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,i]),d=Y((function(){return{uniqueId:t,descriptor:n,options:c,getDimension:u}}),[n,u,c,t]),f=(0,r.useRef)(d),p=(0,r.useRef)(!0);kr((function(){return o.draggable.register(f.current),function(){return o.draggable.unregister(f.current)}}),[o.draggable]),kr((function(){if(p.current)p.current=!1;else{var e=f.current;f.current=d,o.draggable.update(d,e)}}),[d,o.draggable])}function Ko(e,t,n){Ur()}function Go(e){e.preventDefault()}var Yo=function(e,t){return e===t},Zo=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Qo(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Jo={mapped:{type:"SECONDARY",offset:Ee,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Qo(null)}};var Xo=W((function(){var e=function(){var e=(0,le.A)((function(e,t){return{x:e,y:t}})),t=(0,le.A)((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=(0,le.A)((function(e,n,r,o,i,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,o,i,a,null)}}}));return function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],s=Pt(r.impact),l=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,s,l,c)}var u;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==o.draggableId)return null;var f=o.isClone,p=r.dimensions.draggables[o.draggableId],h=d.result,m=h.mode,g=Zo(h),v=function(e){return e.combine?e.combine.draggableId:null}(h),y={duration:r.dropDuration,curve:vn,moveTo:r.newHomeClientOffset,opacity:v?yn.drop:null,scale:v?bn.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:y,draggingOver:g,combineWith:v,mode:m,forceShouldAnimate:null,snapshot:t(m,f,g,v,y)}}}return null}}(),t=function(){var e=(0,le.A)((function(e,t){return{x:e,y:t}})),t=(0,le.A)(Qo),n=(0,le.A)((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Ee,e,!0):null},o=function(t,o,i,a){var s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=Ke(i),u=c&&c.draggableId===t?o:null;if(!s){if(!l)return r(u);if(i.displaced.invisible[t])return null;var d=Oe(a.displacedBy.point),f=e(d.x,d.y);return n(f,u,!0)}if(l)return r(u);var p=i.displacedBy.point,h=e(p.x,p.y);return n(h,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(n,r){return e(n,r)||t(n,r)||Jo}}),{dropAnimationFinished:gn},null,{context:Pr,pure:!0,areStatePropsEqual:Yo})((function(e){var t=(0,r.useRef)(null),n=Z((function(e){t.current=e}),[]),o=Z((function(){return t.current}),[]),i=Do(Fr),a=i.contextId,s=i.dragHandleUsageInstructionsId,l=i.registry,c=Do(Fo),u=c.type,d=c.droppableId,f=Y((function(){return{id:e.draggableId,index:e.index,type:u,droppableId:d}}),[e.draggableId,e.index,u,d]),p=e.children,h=e.draggableId,m=e.isEnabled,g=e.shouldRespectForcePress,v=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,w=e.dropAnimationFinished;Ko(),Br(),y||Vo(Y((function(){return{descriptor:f,registry:l,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[f,l,o,v,g,m]));var x=Y((function(){return m?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Go}:null}),[a,s,h,m]),_=Z((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),E=Y((function(){var e=Wo(b),t="DRAGGING"===b.type&&b.dropping?_:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:x}}),[a,x,h,b,_,n]),S=Y((function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}}),[f.droppableId,f.id,f.index,f.type]);return p(E,b.snapshot,S)}));function ei(e){return Do(Fo).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(Xo,e):null}function ti(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return r.createElement(ei,(0,i.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:o}))}var ni=function(e,t){return e===t.droppable.type},ri=function(e,t){return t.draggables[e.draggable.id]};var oi={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ge(!1),document.body}},ii=W((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,i.A)({},e,{shouldAnimatePlaceholder:!1}),n=(0,le.A)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=(0,le.A)((function(r,o,i,a,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!o)return t;if(!a)return e;var f={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,s=!o.isDropDisabled,l=o.renderClone;if(n.isDragging){var c=n.critical;if(!ni(a,c))return t;var u=ri(c,n.dimensions),d=Pt(n.impact)===i;return r(i,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var f=n.completed;if(!ni(a,f.critical))return t;var p=ri(f.critical,n.dimensions);return r(i,s,Zo(f.result)===i,Pt(f.impact)===i,p,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!ni(a,h.critical))return t;var m=Pt(h.impact)===i,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===i;return m?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Pr,pure:!0,areStatePropsEqual:Yo})((function(e){var t=(0,r.useContext)(Fr);t||ge(!1);var n=t.contextId,o=t.isMovementAllowed,i=(0,r.useRef)(null),a=(0,r.useRef)(null),s=e.children,l=e.droppableId,c=e.type,u=e.mode,d=e.direction,f=e.ignoreContainerClipping,p=e.isDropDisabled,h=e.isCombineEnabled,m=e.snapshot,g=e.useClone,v=e.updateViewportMaxScroll,y=e.getContainerForClone,b=Z((function(){return i.current}),[]),w=Z((function(e){i.current=e}),[]),x=(Z((function(){return a.current}),[]),Z((function(e){a.current=e}),[]));Ur();var _=Z((function(){o()&&v({maxScroll:Hn()})}),[o,v]);!function(e){var t=(0,r.useRef)(null),n=Do(Fr),o=zr("droppable"),i=n.registry,a=n.marshal,s=qr(e),l=Y((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,r.useRef)(l),u=Y((function(){return(0,le.A)((function(e,n){t.current||ge(!1);var r={x:e,y:n};a.updateDroppableScroll(l.id,r)}))}),[l.id,a]),d=Z((function(){var e=t.current;return e&&e.env.closestScrollable?Co(e.env.closestScrollable):Ee}),[]),f=Z((function(){var e=d();u(e.x,e.y)}),[d,u]),p=Y((function(){return ce(f)}),[f]),h=Z((function(){var e=t.current,n=Ro(e);e&&n||ge(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),m=Z((function(e,r){t.current&&ge(!1);var o=s.current,i=o.getDroppableRef();i||ge(!1);var a=No(i),c={ref:i,descriptor:l,env:a,scrollOptions:r};t.current=c;var u=To({ref:i,descriptor:l,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(_r.contextId,n.contextId),d.addEventListener("scroll",h,Po(c.scrollOptions))),u}),[n.contextId,l,h,s]),g=Z((function(){var e=t.current,n=Ro(e);return e&&n||ge(!1),Co(n)}),[]),v=Z((function(){var e=t.current;e||ge(!1);var n=Ro(e);t.current=null,n&&(p.cancel(),n.removeAttribute(_r.contextId),n.removeEventListener("scroll",h,Po(e.scrollOptions)))}),[h,p]),y=Z((function(e){var n=t.current;n||ge(!1);var r=Ro(n);r||ge(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=Y((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:y}}),[v,m,g,y]),w=Y((function(){return{uniqueId:o,descriptor:l,callbacks:b}}),[b,l,o]);kr((function(){return c.current=w.descriptor,i.droppable.register(w),function(){t.current&&v(),i.droppable.unregister(w)}}),[b,l,v,w,a,i.droppable]),kr((function(){t.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),kr((function(){t.current&&a.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:l,type:c,mode:u,direction:d,isDropDisabled:p,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:b});var E=r.createElement(Bo,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,o=e.data,i=e.animate;return r.createElement(zo,{placeholder:o,onClose:t,innerRef:x,animate:i,contextId:n,onTransitionEnd:_})})),S=Y((function(){return{innerRef:w,placeholder:E,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":n}}}),[n,l,E,w]),k=g?g.dragging.draggableId:null,C=Y((function(){return{droppableId:l,type:c,isUsingCloneFor:k}}),[l,k,c]);return r.createElement(Fo.Provider,{value:C},s(S,m),function(){if(!g)return null;var e=g.dragging,t=g.render,n=r.createElement(ei,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return K.createPortal(n,y())}())}));ii.defaultProps=oi},32328:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=s(n(59284)),i=s(n(32133)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,n)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(l,e);var t,n,r,s=p(l);function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(h(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,l=n.options,c=o.default.Children.only(s),u=(0,i.default)(r,l);a&&a(r,u),c&&c.props&&"function"===typeof c.props.onClick&&c.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=u(e,a),r=o.default.Children.only(t);return o.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.default.PureComponent);t.CopyToClipboard=v,g(v,"defaultProps",{onCopy:void 0,options:void 0})},64255:(e,t,n)=>{"use strict";var r=n(32328).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},76575:(e,t,n)=>{"use strict";var r=n(59284),o=n(99158);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),_=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=R&&e[R]||e["@@iterator"])?e:null}var M,L=Object.assign;function z(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function U(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case _:return"Portal";case k:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Ee=null,Se=null;function ke(e){if(e=wo(e)){if("function"!==typeof _e)throw Error(i(280));var t=e.stateNode;t&&(t=_o(t),_e(e.stateNode,e.type,t))}}function Ce(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Oe(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Ne(e,t){return e(t)}function Te(){}var Ae=!1;function Ie(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Ne(e,t,n)}finally{Ae=!1,(null!==Ee||null!==Se)&&(Te(),Oe())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=_o(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var De=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){De=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){De=!1}function je(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Me=!1,Le=null,ze=!1,Fe=null,Be={onError:function(e){Me=!0,Le=e}};function Ue(e,t,n,r,o,i,a,s,l){Me=!1,Le=null,je.apply(Be,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(qe(e)!==e)throw Error(i(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Ke=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Ze=o.unstable_requestPaint,Qe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Xe=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,_t,Et,St,kt,Ct=!1,Ot=[],Nt=null,Tt=null,At=null,It=new Map,Pt=new Map,Dt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&_t(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=bo(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void kt(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){zt(e)&&n.delete(t)}function Bt(){Ct=!1,null!==Nt&&zt(Nt)&&(Nt=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==At&&zt(At)&&(At=null),It.forEach(Ft),Pt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function qt(e){function t(t){return Ut(t,e)}if(0<Ot.length){Ut(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Nt&&Ut(Nt,e),null!==Tt&&Ut(Tt,e),null!==At&&Ut(At,e),It.forEach(t),Pt.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Dt.shift()}var $t=w.ReactCurrentBatchConfig,Ht=!0;function Wt(e,t,n,r){var o=bt,i=$t.transition;$t.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=o,$t.transition=i}}function Vt(e,t,n,r){var o=bt,i=$t.transition;$t.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=o,$t.transition=i}}function Kt(e,t,n,r){if(Ht){var o=Yt(e,t,n,r);if(null===o)Hr(e,t,r,Gt,n),jt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Nt=Mt(Nt,e,t,n,r,o),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,o),!0;case"mouseover":return At=Mt(At,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Mt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pt.set(i,Mt(Pt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Yt(e,t,n,r))&&Hr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function Yt(e,t,n,r){if(Gt=null,null!==(e=bo(e=xe(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Zt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Jt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Xt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=L({},cn,{view:0,detail:0}),fn=on(dn),pn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(L({},pn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),vn=on(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(L({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function kn(){return Sn}var Cn=L({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(Cn),Nn=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),An=on(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=on(In),Dn=[9,13,27,32],Rn=u&&"CompositionEvent"in window,jn=null;u&&"documentMode"in document&&(jn=document.documentMode);var Mn=u&&"TextEvent"in window&&!jn,Ln=u&&(!Rn||jn&&8<jn&&11>=jn),zn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Wn(e,t,n,r){Ce(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Kn=null;function Gn(e){zr(e,0)}function Yn(e){if(K(xo(e)))return e}function Zn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Jn;if(u){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"===typeof er.oninput}Jn=Xn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Kn=Vn=null)}function nr(e){if("value"===e.propertyName&&Yn(Kn)){var t=[];Wn(t,Kn,e,xe(e)),Ie(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Kn)}function ir(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Vr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Er={},Sr={};function kr(e){if(Er[e])return Er[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return Er[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var Cr=kr("animationend"),Or=kr("animationiteration"),Nr=kr("animationstart"),Tr=kr("transitionend"),Ar=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Ar.set(e,t),l(t,[e])}for(var Dr=0;Dr<Ir.length;Dr++){var Rr=Ir[Dr];Pr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Pr(Cr,"onAnimationEnd"),Pr(Or,"onAnimationIteration"),Pr(Nr,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Tr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,c){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(i(198));var u=Le;Me=!1,Le=null,ze||(ze=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function zr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,s,c),i=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Br("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Zt(t)){case 1:var o=Wt;break;case 4:o=Vt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Ie((function(){var r=i,o=xe(n),a=[];e:{var s=Ar.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Cr:case Or:case Nr:l=vn;break;case Tr:l=An;break;case"scroll":l=fn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Pe(h,f))&&u.push(Wr(h,m,p)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Nn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:xo(l),p=null==c?s:xo(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,bo(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Kr(p))h++;for(p=0,m=f;m;m=Kr(m))p++;for(;0<h-p;)u=Kr(u),h--;for(;0<p-h;)f=Kr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Kr(u),f=Kr(f)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(s=r?xo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Zn;else if(Hn(s))if(Qn)g=ar;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Wn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?xo(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(y=en()):(Jt="value"in(Qt=o)?Qt.value:Qt.textContent,qn=!0)),0<(v=Vr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Rn&&Bn(e,t)?(e=en(),Xt=Jt=Qt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}zr(a,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Pe(e,n))&&r.unshift(Wr(e,i,o)),null!=(i=Pe(e,t))&&r.push(Wr(e,i,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Pe(n,i))&&a.unshift(Wr(n,l,s)):o||null!=(l=Pe(n,i))&&a.push(Wr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Zr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Xr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);qt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function _o(e){return e[ho]||null}var Eo=[],So=-1;function ko(e){return{current:e}}function Co(e){0>So||(e.current=Eo[So],Eo[So]=null,So--)}function Oo(e,t){So++,Eo[So]=e.current,e.current=t}var No={},To=ko(No),Ao=ko(!1),Io=No;function Po(e,t){var n=e.type.contextTypes;if(!n)return No;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Do(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ro(){Co(Ao),Co(To)}function jo(e,t,n){if(To.current!==No)throw Error(i(168));Oo(To,t),Oo(Ao,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,$(e)||"Unknown",o));return L({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,Io=To.current,Oo(To,e),Oo(Ao,Ao.current),!0}function zo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Mo(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,Co(Ao),Co(To),Oo(To,e)):Co(Ao),Oo(Ao,n)}var Fo=null,Bo=!1,Uo=!1;function qo(e){null===Fo?Fo=[e]:Fo.push(e)}function $o(){if(!Uo&&null!==Fo){Uo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(o){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ke(Xe,$o),o}finally{bt=t,Uo=!1}}return null}var Ho=[],Wo=0,Vo=null,Ko=0,Go=[],Yo=0,Zo=null,Qo=1,Jo="";function Xo(e,t){Ho[Wo++]=Ko,Ho[Wo++]=Vo,Vo=e,Ko=t}function ei(e,t,n){Go[Yo++]=Qo,Go[Yo++]=Jo,Go[Yo++]=Zo,Zo=e;var r=Qo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Qo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Xo(e,1),ei(e,1,0))}function ni(e){for(;e===Vo;)Vo=Ho[--Wo],Ho[Wo]=null,Ko=Ho[--Wo],Ho[Wo]=null;for(;e===Zo;)Zo=Go[--Yo],Go[Yo]=null,Jo=Go[--Yo],Go[Yo]=null,Qo=Go[--Yo],Go[Yo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zo?{id:Qo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw pi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=co(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=w.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Dc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===P&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Rc(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=jc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Rc(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case _:return(t=zc(t,e.mode,n)).return=e,t;case P:return f(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=jc(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?c(e,t,n,r):null;case _:return n.key===o?u(e,t,n,r):null;case P:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||j(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case P:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(o,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(o,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(o,d),ii&&Xo(o,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ii&&Xo(o,m),c}for(d=r(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),ii&&Xo(o,m),c}function g(o,s,l,c){var u=j(l);if("function"!==typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(o,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),ii&&Xo(o,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(o,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return ii&&Xo(o,g),u}for(m=r(o,m);!y.done;g++,y=l.next())null!==(y=h(m,o,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),ii&&Xo(o,g),u}return function e(r,i,a,l){if("object"===typeof a&&null!==a&&a.type===E&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===E){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===P&&bi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=vi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===E?((i=jc(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Rc(a.type,a.key,a.props,null,r.mode,l)).ref=vi(r,i,a),l.return=r,r=l)}return s(r);case _:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=zc(a,r.mode,l)).return=r,r=i}return s(r);case P:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(j(a))return g(r,i,a,l);yi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Lc(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var xi=wi(!0),_i=wi(!1),Ei=ko(null),Si=null,ki=null,Ci=null;function Oi(){Ci=ki=Si=null}function Ni(e){var t=Ei.current;Co(Ei),e._currentValue=t}function Ti(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ai(e,t){Si=e,Ci=ki=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Ii(e){var t=e._currentValue;if(Ci!==e)if(e={context:e,memoizedValue:t,next:null},null===ki){if(null===Si)throw Error(i(308));ki=e,Si.dependencies={lanes:0,firstContext:e}}else ki=ki.next=e;return t}var Pi=null;function Di(e){null===Pi?Pi=[e]:Pi.push(e)}function Ri(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Di(t)):(n.next=o.next,o.next=n),t.interleaved=n,ji(e,r)}function ji(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mi=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Nl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ji(e,n)}return null===(o=r.interleaved)?(t.next=t,Di(r)):(t.next=o.next,o.next=t),r.interleaved=t,ji(e,n)}function Ui(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function qi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $i(e,t,n,r){var o=e.updateQueue;Mi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(p,d,f):h)||void 0===f)break e;d=L({},d,f);break e;case 2:Mi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ml|=a,e.lanes=a,e.memoizedState=d}}function Hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var Wi={},Vi=ko(Wi),Ki=ko(Wi),Gi=ko(Wi);function Yi(e){if(e===Wi)throw Error(i(174));return e}function Zi(e,t){switch(Oo(Gi,t),Oo(Ki,e),Oo(Vi,Wi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Co(Vi),Oo(Vi,t)}function Qi(){Co(Vi),Co(Ki),Co(Gi)}function Ji(e){Yi(Gi.current);var t=Yi(Vi.current),n=le(t,e.type);t!==n&&(Oo(Ki,e),Oo(Vi,n))}function Xi(e){Ki.current===e&&(Co(Vi),Co(Ki))}var ea=ko(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Xa:es,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(da)}if(oa.current=Ja,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(i(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,sa.lanes|=d,Ml|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,Ml|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ea(){}function Sa(e,t){var n=sa,r=ba(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,bs=!0),r=r.queue,Ma(Oa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Ia(9,Ca.bind(null,n,r,o,t),void 0,null),null===Tl)throw Error(i(349));0!==(30&aa)||ka(n,t,o)}return o}function ka(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ca(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&Ta(e)}function Oa(e,t,n){return n((function(){Na(t)&&Ta(e)}))}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ta(e){var t=ji(e,1);null!==t&&nc(t,e,1,-1)}function Aa(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pa(){return ba().memoizedState}function Da(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function Ra(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Ia(t,n,i,r))}sa.flags|=e,o.memoizedState=Ia(1|t,n,i,r)}function ja(e,t){return Da(8390656,8,e,t)}function Ma(e,t){return Ra(2048,8,e,t)}function La(e,t){return Ra(4,2,e,t)}function za(e,t){return Ra(4,4,e,t)}function Fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ra(4,4,Fa.bind(null,t,e),n)}function Ua(){}function qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,Ml|=n,e.baseState=!0),t)}function Wa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Va(){return ba().memoizedState}function Ka(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ya(e))Za(t,n);else if(null!==(n=Ri(e,t,n,r))){nc(n,e,r,ec()),Qa(n,t,r)}}function Ga(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ya(e))Za(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Di(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ri(e,t,o,r))&&(nc(n,e,r,o=ec()),Qa(n,t,r))}}function Ya(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Za(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:Ii,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Xa={readContext:Ii,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ii,useEffect:ja,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Da(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Aa,useDebugValue:Ua,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Aa(!1),t=e[0];return e=Wa.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Tl)throw Error(i(349));0!==(30&aa)||ka(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,ja(Oa.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,Ca.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Tl.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ii,useCallback:qa,useContext:Ii,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:$a,useReducer:xa,useRef:Pa,useState:function(){return xa(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Ha(ba(),la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Sa,useId:Va,unstable_isNewReconciler:!1},ts={readContext:Ii,useCallback:qa,useContext:Ii,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:$a,useReducer:_a,useRef:Pa,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Sa,useId:Va,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Fi(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nc(t,e,o,r),Ui(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Fi(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nc(t,e,o,r),Ui(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Fi(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nc(t,e,r,n),Ui(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=No,i=t.contextType;return"object"===typeof i&&null!==i?i=Ii(i):(o=Do(t)?Io:To.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Po(e,o):No),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Li(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Ii(i):(i=Do(t)?Io:To.current,o.context=Po(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),$i(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Wl=r),ds(0,t)},n}function hs(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=kc.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?_i(t,null,n,r):xi(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var i=t.ref;return Ai(t,o),r=ga(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function _s(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Pc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Es(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Dc(i,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);0!==(131072&e.flags)&&(bs=!0)}}return Cs(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(Dl,Pl),Pl|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oo(Dl,Pl),Pl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(Dl,Pl),Pl|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(Dl,Pl),Pl|=r;return ws(e,t,o,n),t.child}function ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,o){var i=Do(n)?Io:To.current;return i=Po(t,i),Ai(t,o),n=ga(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Os(e,t,n,r,o){if(Do(n)){var i=!0;Lo(t)}else i=!1;if(Ai(t,o),null===t.stateNode)$s(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Ii(c):c=Po(t,c=Do(n)?Io:To.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),Mi=!1;var f=t.memoizedState;a.state=f,$i(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Ao.current||Mi?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Mi||is(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,zi(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Ii(l):l=Po(t,l=Do(n)?Io:To.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Mi=!1,f=t.memoizedState,a.state=f,$i(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Ao.current||Mi?("function"===typeof p&&(rs(t,n,p,r),h=t.memoizedState),(c=Mi||is(t,n,c,r,f,h,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ns(e,t,n,r,i,o)}function Ns(e,t,n,r,o,i){ks(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&zo(t,n,!1),Hs(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?jo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jo(0,t.context,!1),Zi(e,t.containerInfo)}function As(e,t,n,r,o){return hi(),mi(o),t.flags|=256,ws(e,t,n,r),t.child}var Is,Ps,Ds,Rs,js={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,o=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Oo(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Mc(l,o,0,null),e=jc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=js,e):zs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Mc({mode:"visible",children:r.children},o,0,null),(a=jc(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&xi(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=js,a);if(0===(1&t.mode))return Fs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=us(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Tl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,ji(e,o),nc(r,e,o,-1))}return mc(),Fs(e,t,s,r=us(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Yo++]=Qo,Go[Yo++]=Jo,Go[Yo++]=Zo,Qo=e.id,Jo=e.overflow,Zo=t),t=zs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Dc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Dc(r,s):(s=jc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=js,o}return e=(s=e.child).sibling,o=Dc(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function zs(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mi(r),xi(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ti(e.return,t,n)}function Us(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function qs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Oo(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Us(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Us(t,!0,n,null,i);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $s(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Do(t.type)&&Ro(),Vs(t),null;case 3:return r=t.stateNode,Qi(),Co(Ao),Co(To),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Ps(e,t),Vs(t),null;case 5:Xi(t);var o=Yi(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Vs(t),null}if(e=Yi(Vi.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<jr.length;o++)Fr(jr[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Z(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":oe(r,a),Fr("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":V(r),X(r,a,!0);break;case"textarea":V(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Xr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[po]=t,e[ho]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<jr.length;o++)Fr(jr[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":Z(e,r),o=Y(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(a in ye(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fr("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":V(e),X(e,r,!1);break;case"textarea":V(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)Rs(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=Yi(Gi.current),Yi(Vi.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Vs(t),null;case 13:if(Co(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),a=!1}else null!==ai&&(ac(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Rl&&(Rl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return Qi(),Ps(e,t),null===e&&qr(t.stateNode.containerInfo),Vs(t),null;case 10:return Ni(t.type._context),Vs(t),null;case 19:if(Co(ea),null===(a=t.memoizedState))return Vs(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Ws(a,!1);else{if(0!==Rl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ws(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oo(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>ql&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ws(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Vs(t),null}else 2*Qe()-a.renderingStartTime>ql&&1073741824!==n&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,Oo(ea,r?1&n|2:1&n),t):(Vs(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Pl)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gs(e,t){switch(ni(t),t.tag){case 1:return Do(t.type)&&Ro(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Co(Ao),Co(To),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xi(t),null;case 13:if(Co(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Co(ea),null;case 4:return Qi(),null;case 10:return Ni(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},Ds=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Yi(Vi.current);var i,a=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),a=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Rs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Zs=!1,Qs="function"===typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Zs||Xs(n,t);case 6:var r=ul,o=dl;ul=null,fl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),qt(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Zs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Zs&&(Xs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Zs=(r=Zs)||null!==n.memoizedState,fl(e,t,n),Zs=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Nc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));pl(a,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Sc(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){Sc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Sc(e,e.return,g)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(g){Sc(e,e.return,g)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(o,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,u)}switch(l){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(g){Sc(e,e.return,g)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(g){Sc(e,e.return,g)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(g){Sc(e,e.return,g)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Ul=Qe())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Zs=(u=Zs)||d,ml(t,e),Zs=u):ml(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Sc(r,n,g)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){xl(f);continue}}null!==h?(h.return=p,Js=h):xl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Sc(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Sc(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&r&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var o=Js,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Ys;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Zs;s=Ys;var c=Zs;if(Ys=a,(Zs=l)&&!c)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?_l(o):null!==l?(l.return=a,Js=l):_l(o);for(;null!==i;)Js=i,bl(i,t,n),i=i.sibling;Js=o,Ys=s,Zs=c}wl(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Js=i):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Zs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Zs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Hi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Hi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&qt(f)}}}break;default:throw Error(i(163))}Zs||512&t.flags&&ol(t)}catch(p){Sc(t,t.return,p)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function _l(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Sc(t,o,l)}}var i=t.return;try{ol(t)}catch(l){Sc(t,i,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var El,Sl=Math.ceil,kl=w.ReactCurrentDispatcher,Cl=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,Nl=0,Tl=null,Al=null,Il=0,Pl=0,Dl=ko(0),Rl=0,jl=null,Ml=0,Ll=0,zl=0,Fl=null,Bl=null,Ul=0,ql=1/0,$l=null,Hl=!1,Wl=null,Vl=null,Kl=!1,Gl=null,Yl=0,Zl=0,Ql=null,Jl=-1,Xl=0;function ec(){return 0!==(6&Nl)?Qe():-1!==Jl?Jl:Jl=Qe()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Nl)&&0!==Il?Il&-Il:null!==gi.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Zt(e.type)}function nc(e,t,n,r){if(50<Zl)throw Zl=0,Ql=null,Error(i(185));vt(e,n,r),0!==(2&Nl)&&e===Tl||(e===Tl&&(0===(2&Nl)&&(Ll|=n),4===Rl&&sc(e,Il)),rc(e,r),1===n&&0===Nl&&0===(1&t.mode)&&(ql=Qe()+500,Bo&&$o()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Tl?Il:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Bo=!0,qo(e)}(lc.bind(null,e)):qo(lc.bind(null,e)),ao((function(){0===(6&Nl)&&$o()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,Xl=0,0!==(6&Nl))throw Error(i(327));var n=e.callbackNode;if(_c()&&e.callbackNode!==n)return null;var r=ft(e,e===Tl?Il:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var o=Nl;Nl|=2;var a=hc();for(Tl===e&&Il===t||($l=null,ql=Qe()+500,fc(e,t));;)try{yc();break}catch(l){pc(e,l)}Oi(),kl.current=a,Nl=o,null!==Al?t=0:(Tl=null,Il=0,t=Rl)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=ic(e,o))),1===t)throw n=jl,fc(e,0),sc(e,r),rc(e,Qe()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gc(e,r))&&(0!==(a=ht(e))&&(r=a,t=ic(e,a))),1===t))throw n=jl,fc(e,0),sc(e,r),rc(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xc(e,Bl,$l);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Ul+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xc.bind(null,e,Bl,$l),t);break}xc(e,Bl,$l);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,Bl,$l),r);break}xc(e,Bl,$l);break;default:throw Error(i(329))}}}return rc(e,Qe()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bl,Bl=n,null!==t&&ac(t)),e}function ac(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function sc(e,t){for(t&=~zl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Nl))throw Error(i(327));_c();var t=ft(e,0);if(0===(1&t))return rc(e,Qe()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=jl,fc(e,0),sc(e,t),rc(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Bl,$l),rc(e,Qe()),null}function cc(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{0===(Nl=n)&&(ql=Qe()+500,Bo&&$o())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&Nl)&&_c();var t=Nl;Nl|=1;var n=Ol.transition,r=bt;try{if(Ol.transition=null,bt=1,e)return e()}finally{bt=r,Ol.transition=n,0===(6&(Nl=t))&&$o()}}function dc(){Pl=Dl.current,Co(Dl)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ro();break;case 3:Qi(),Co(Ao),Co(To),ra();break;case 5:Xi(r);break;case 4:Qi();break;case 13:case 19:Co(ea);break;case 10:Ni(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Al=e=Dc(e.current,null),Il=Pl=t,Rl=0,jl=null,zl=Ll=Ml=0,Bl=Fl=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function pc(e,t){for(;;){var n=Al;try{if(Oi(),oa.current=Ja,ua){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,fa=0,Cl.current=null,null===n||null===n.return){Rl=1,jl=t,Al=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(a,u,t),mc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var v=gs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mi(cs(c,l));break e}}a=c=cs(c,l),4!==Rl&&(Rl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qi(a,ps(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Vl||!Vl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Al===n&&null!==n&&(Al=n=n.return);continue}break}}function hc(){var e=kl.current;return kl.current=Ja,null===e?Ja:e}function mc(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===Tl||0===(268435455&Ml)&&0===(268435455&Ll)||sc(Tl,Il)}function gc(e,t){var n=Nl;Nl|=2;var r=hc();for(Tl===e&&Il===t||($l=null,fc(e,t));;)try{vc();break}catch(o){pc(e,o)}if(Oi(),Nl=n,kl.current=r,null!==Al)throw Error(i(261));return Tl=null,Il=0,Rl}function vc(){for(;null!==Al;)bc(Al)}function yc(){for(;null!==Al&&!Ye();)bc(Al)}function bc(e){var t=El(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?wc(e):Al=t,Cl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ks(n,t,Pl)))return void(Al=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Rl=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Rl&&(Rl=5)}function xc(e,t,n){var r=bt,o=Ol.transition;try{Ol.transition=null,bt=1,function(e,t,n,r){do{_c()}while(null!==Gl);if(0!==(6&Nl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Tl&&(Al=Tl=null,Il=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Kl||(Kl=!0,Tc(tt,(function(){return _c(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Ol.transition,Ol.transition=null;var s=bt;bt=1;var l=Nl;Nl|=4,Cl.current=null,function(e,t){if(eo=Ht,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(l=s),p===a&&++d===r&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(x){Sc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),gl(n,e),hr(to),Ht=!!eo,to=eo=null,e.current=n,yl(n,e,o),Ze(),Nl=l,bt=s,Ol.transition=a}else e.current=n;if(Kl&&(Kl=!1,Gl=e,Yl=o),a=e.pendingLanes,0===a&&(Vl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=Wl,Wl=null,e;0!==(1&Yl)&&0!==e.tag&&_c(),a=e.pendingLanes,0!==(1&a)?e===Ql?Zl++:(Zl=0,Ql=e):Zl=0,$o()}(e,t,n,r)}finally{Ol.transition=o,bt=r}return null}function _c(){if(null!==Gl){var e=wt(Yl),t=Ol.transition,n=bt;try{if(Ol.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Yl=0,0!==(6&Nl))throw Error(i(331));var o=Nl;for(Nl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!==(16&Js.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(il(d),d===u){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!==(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(_){Sc(l,l.return,_)}if(l===s){Js=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Js=x;break e}Js=l.return}}if(Nl=o,$o(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(_){}r=!0}return r}finally{bt=n,Ol.transition=t}}return!1}function Ec(e,t,n){e=Bi(e,t=ps(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Bi(t,e=hs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function kc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Il&n)===n&&(4===Rl||3===Rl&&(130023424&Il)===Il&&500>Qe()-Ul?fc(e,0):zl|=n),rc(e,t)}function Cc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=ji(e,t))&&(vt(e,t,n),rc(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Cc(e,n)}function Tc(e,t){return Ke(e,t)}function Ac(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,n,r){return new Ac(e,t,n,r)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rc(e,t,n,r,o,a){var s=2;if(r=e,"function"===typeof e)Pc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return jc(n.children,o,a,t);case S:s=8,o|=8;break;case k:return(e=Ic(12,n,t,2|o)).elementType=k,e.lanes=a,e;case T:return(e=Ic(13,n,t,o)).elementType=T,e.lanes=a,e;case A:return(e=Ic(19,n,t,o)).elementType=A,e.lanes=a,e;case D:return Mc(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case O:s=9;break e;case N:s=11;break e;case I:s=14;break e;case P:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function jc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,o,i,a,s,l){return e=new Fc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ic(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function Uc(e){if(!e)return No;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Do(n))return Mo(e,n,t)}return t}function qc(e,t,n,r,o,i,a,s,l){return(e=Bc(n,r,!0,e,0,i,0,s,l)).context=Uc(null),n=e.current,(i=Fi(r=ec(),o=tc(n))).callback=void 0!==t&&null!==t?t:null,Bi(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function $c(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nc(e,o,a,i),Ui(e,o,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Wc(e,t),(e=e.alternate)&&Wc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ao.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),hi();break;case 5:Ji(t);break;case 1:Do(t.type)&&Lo(t);break;case 4:Zi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(Ei,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oo(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(Oo(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);Oo(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return qs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Oo(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,ii&&0!==(1048576&t.flags)&&ei(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$s(e,t),e=t.pendingProps;var o=Po(t,To.current);Ai(t,n),o=ga(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(r)?(a=!0,Lo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Li(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ns(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch($s(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Pc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===I)return 14}return 2}(r),e=ns(r,e),o){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=_s(null,t,r,ns(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Cs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,Os(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Ts(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,zi(e,t),$i(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=As(e,t,r,n,o=cs(Error(i(423)),t));break e}if(r!==o){t=As(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=_i(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Ji(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),ks(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Ls(e,t,n);case 4:return Zi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Oo(Ei,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Ao.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Fi(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Ti(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ti(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ai(t,n),r=r(o=Ii(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),_s(e,t,r,o=ns(r.type,o),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),$s(e,t),t.tag=1,Do(r)?(e=!0,Lo(t)):e=!1,Ai(t,n),as(t,r,o),ls(t,r,o,n),Ns(null,t,r,!0,e,n);case 19:return qs(e,t,n);case 22:return Ss(e,t,n)}throw Error(i(156,t.tag))};var Kc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Xc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var s=o;o=function(){var e=Hc(a);s.call(e)}}$c(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Hc(a);i.call(e)}}var a=qc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[mo]=a.current,qr(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[mo]=l.current,qr(8===e.nodeType?e.parentNode:e),uc((function(){$c(t,l,n,r)})),l}(n,t,e,o,r);return Hc(a)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));$c(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){$c(null,e,null,null)})),t[mo]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&Lt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Qe()),0===(6&Nl)&&(ql=Qe()+500,$o()))}break;case 13:uc((function(){var t=ji(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Vc(e,1)}},_t=function(e){if(13===e.tag){var t=ji(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},Et=function(e){if(13===e.tag){var t=tc(e),n=ji(e,t);if(null!==n)nc(n,e,t,ec());Vc(e,t)}},St=function(){return bt},kt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},_e=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=_o(r);if(!o)throw Error(i(90));K(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=cc,Te=uc;var eu={usingClientEntryPoint:!1,Events:[wo,xo,_o,Ce,Oe,cc]},tu={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Zc(e))throw Error(i(299));var n=!1,r="",o=Kc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,qr(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(i(200));return Xc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Zc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=Kc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=qc(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,qr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Yc(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(i(200));return Xc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc((function(){Xc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Xc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5906:(e,t,n)=>{"use strict";var r=n(48681);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},48681:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(76575)},45099:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!i(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},61750:(e,t,n)=>{"use strict";n.d(t,{mg:()=>J,vd:()=>W});var r=n(59284),o=n(45099),i=n.n(o),a=n(83791),s=n.n(a),l=n(37737),c=n.n(l),u=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(u||{}),d={rel:["amphtml","canonical","alternate"]},f={type:["application/ld+json"]},p={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},h=Object.values(u),m={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},g=Object.entries(m).reduce(((e,[t,n])=>(e[n]=t,e)),{}),v="data-rh",y="defaultTitle",b="defer",w="encodeSpecialCharacters",x="onChangeClientState",_="titleTemplate",E="prioritizeSeoTags",S=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},k=e=>{let t=S(e,"title");const n=S(e,_);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(()=>t));const r=S(e,y);return t||r||void 0},C=e=>S(e,x)||(()=>{}),O=(e,t)=>t.filter((t=>"undefined"!==typeof t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),N=(e,t)=>t.filter((e=>"undefined"!==typeof e.base)).map((e=>e.base)).reverse().reduce(((t,n)=>{if(!t.length){const r=Object.keys(n);for(let o=0;o<r.length;o+=1){const i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}}return t}),[]),T=(e,t,n)=>{const r={};return n.filter((t=>{return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&(n=`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`,console&&"function"===typeof console.warn&&console.warn(n)),!1);var n})).map((t=>t[e])).reverse().reduce(((e,n)=>{const o={};n.filter((e=>{let n;const i=Object.keys(e);for(let r=0;r<i.length;r+=1){const o=i[r],a=o.toLowerCase();-1===t.indexOf(a)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===a&&"stylesheet"===e[a].toLowerCase()||(n=a),-1===t.indexOf(o)||"innerHTML"!==o&&"cssText"!==o&&"itemprop"!==o||(n=o)}if(!n||!e[n])return!1;const a=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][a]&&(o[n][a]=!0,!0)})).reverse().forEach((t=>e.push(t)));const i=Object.keys(o);for(let t=0;t<i.length;t+=1){const e=i[t],n={...r[e],...o[e]};r[e]=n}return e}),[]).reverse()},A=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},I=e=>Array.isArray(e)?e.join(""):e,P=(e,t)=>Array.isArray(e)?e.reduce(((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e)),{priority:[],default:[]}):{default:e,priority:[]},D=(e,t)=>({...e,[t]:void 0}),R=["noscript","script","style"],j=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),M=e=>Object.keys(e).reduce(((t,n)=>{const r="undefined"!==typeof e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r}),""),L=(e,t={})=>Object.keys(e).reduce(((t,n)=>(t[m[n]||n]=e[n],t)),t),z=(e,t)=>t.map(((t,n)=>{const o={key:n,[v]:!0};return Object.keys(t).forEach((e=>{const n=m[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:e}}else o[n]=t[e]})),r.createElement(e,o)})),F=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const o=L(n,{key:t,[v]:!0});return[r.createElement("title",o,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,r)=>{const o=M(n),i=I(t);return o?`<${e} ${v}="true" ${o}>${j(i,r)}</${e}>`:`<${e} ${v}="true">${j(i,r)}</${e}>`})(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>L(t),toString:()=>M(t)};default:return{toComponent:()=>z(e,t),toString:()=>((e,t,n=!0)=>t.reduce(((t,r)=>{const o=r,i=Object.keys(o).filter((e=>!("innerHTML"===e||"cssText"===e))).reduce(((e,t)=>{const r="undefined"===typeof o[t]?t:`${t}="${j(o[t],n)}"`;return e?`${e} ${r}`:r}),""),a=o.innerHTML||o.cssText||"",s=-1===R.indexOf(e);return`${t}<${e} ${v}="true" ${i}${s?"/>":`>${a}</${e}>`}`}),""))(e,t,n)}}},B=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:i,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:h,scriptTags:m}=e,g={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:g,linkTags:u,metaTags:h,scriptTags:m}=(({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const o=P(e,p),i=P(t,d),a=P(n,f);return{priorityMethods:{toComponent:()=>[...z("meta",o.priority),...z("link",i.priority),...z("script",a.priority)],toString:()=>`${F("meta",o.priority,r)} ${F("link",i.priority,r)} ${F("script",a.priority,r)}`},metaTags:o.default,linkTags:i.default,scriptTags:a.default}})(e)),{priority:g,base:F("base",t,r),bodyAttributes:F("bodyAttributes",n,r),htmlAttributes:F("htmlAttributes",o,r),link:F("link",u,r),meta:F("meta",h,r),noscript:F("noscript",i,r),script:F("script",m,r),style:F("style",a,r),title:F("title",{title:s,titleAttributes:l},r)}},U=[],q=!("undefined"===typeof window||!window.document||!window.document.createElement),$=class{instances=[];canUseDOM=q;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?U:this.instances,add:e=>{(this.canUseDOM?U:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?U:this.instances).indexOf(e);(this.canUseDOM?U:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=B({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},H=r.createContext({}),W=class e extends r.Component{static canUseDOM=q;helmetData;constructor(t){super(t),this.helmetData=new $(this.props.context||{},e.canUseDOM)}render(){return r.createElement(H.Provider,{value:this.helmetData.value},this.props.children)}},V=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${v}]`),o=[].slice.call(r),i=[];let a;return t&&t.length&&t.forEach((t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const r=e,o="undefined"===typeof t[r]?"":t[r];n.setAttribute(e,o)}n.setAttribute(v,"true"),o.some(((e,t)=>(a=t,n.isEqualNode(e))))?o.splice(a,1):i.push(n)})),o.forEach((e=>e.parentNode?.removeChild(e))),i.forEach((e=>n.appendChild(e))),{oldTags:o,newTags:i}},K=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(v),o=r?r.split(","):[],i=[...o],a=Object.keys(t);for(const s of a){const e=t[s]||"";n.getAttribute(s)!==e&&n.setAttribute(s,e),-1===o.indexOf(s)&&o.push(s);const r=i.indexOf(s);-1!==r&&i.splice(r,1)}for(let s=i.length-1;s>=0;s-=1)n.removeAttribute(i[s]);o.length===i.length?n.removeAttribute(v):n.getAttribute(v)!==a.join(",")&&n.setAttribute(v,a.join(","))},G=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:o,linkTags:i,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;K("body",r),K("html",o),((e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=I(e)),K("title",t)})(d,f);const p={baseTag:V("base",n),linkTags:V("link",i),metaTags:V("meta",a),noscriptTags:V("noscript",s),scriptTags:V("script",c),styleTags:V("style",u)},h={},m={};Object.keys(p).forEach((e=>{const{newTags:t,oldTags:n}=p[e];t.length&&(h[e]=t),n.length&&(m[e]=p[e].oldTags)})),t&&t(),l(e,h,m)},Y=null,Z=e=>{Y&&cancelAnimationFrame(Y),e.defer?Y=requestAnimationFrame((()=>{G(e,(()=>{Y=null}))})):(G(e),Y=null)},Q=class extends r.Component{rendered=!1;shouldComponentUpdate(e){return!c()(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(o=e.get().map((e=>{const t={...e.props};return delete t.context,t})),{baseTag:N(["href"],o),bodyAttributes:O("bodyAttributes",o),defer:S(o,b),encode:S(o,w),htmlAttributes:O("htmlAttributes",o),linkTags:T("link",["rel","href"],o),metaTags:T("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:T("noscript",["innerHTML"],o),onChangeClientState:C(o),scriptTags:T("script",["src","innerHTML"],o),styleTags:T("style",["cssText"],o),title:k(o),titleAttributes:O("titleAttributes",o),prioritizeSeoTags:A(o,E)});var o;W.canUseDOM?Z(r):B&&(n=B(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},J=class extends r.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!i()(D(this.props,"helmetData"),D(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach((t=>{n={...n,[t]:e[t]}})),n}warnOnInvalidChildren(e,t){return s()(h.some((t=>e.type===t)),"function"===typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${h.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),s()(!t||"string"===typeof t||Array.isArray(t)&&!t.some((e=>"string"!==typeof e)),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return r.Children.forEach(e,(e=>{if(!e||!e.props)return;const{children:r,...o}=e.props,i=Object.keys(o).reduce(((e,t)=>(e[g[t]||t]=o[t],e)),{});let{type:a}=e;switch("symbol"===typeof a?a=a.toString():this.warnOnInvalidChildren(e,r),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(r,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,i,r);break;default:t=this.mapObjectTypeChildren(e,t,i,r)}})),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:o}=t;if(e&&(n=this.mapChildrenToProps(e,n)),o&&!(o instanceof $)){o=new $(o.context,!0),delete n.helmetData}return o?r.createElement(Q,{...n,context:o.value}):r.createElement(H.Consumer,null,(e=>r.createElement(Q,{...n,context:e})))}}},50711:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116,h=60121,m=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===l}},94771:(e,t,n)=>{"use strict";e.exports=n(50711)},56993:function(e,t,n){var r,o,i;"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,o=[t,n(59284),n(60712)],r=function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t=d(t),l(e,u()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function l(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=y(e,"string");return"symbol"==r(t)?t:t+""}function y(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var b={x:"clientWidth",y:"clientHeight"},w={x:"clientTop",y:"clientLeft"},x={x:"innerWidth",y:"innerHeight"},_={x:"offsetWidth",y:"offsetHeight"},E={x:"offsetLeft",y:"offsetTop"},S={x:"overflowX",y:"overflowY"},k={x:"scrollWidth",y:"scrollHeight"},C={x:"scrollLeft",y:"scrollTop"},O={x:"width",y:"height"},N=function(){},T=!!function(){if("undefined"===typeof window)return!1;var e=!1;try{document.createElement("div").addEventListener("test",N,{get passive(){return e=!0,!1}})}catch(t){}return e}()&&{passive:!0},A="ReactList failed to reach a stable state.",I=40,P=function(e,t){for(var n in t)if(e[n]!==t[n])return!1;return!0},D=function(e){for(var t=e.props.axis,n=e.getEl(),r=S[t];n=n.parentElement;)switch(window.getComputedStyle(n)[r]){case"auto":case"scroll":case"overlay":return n}return window},R=function(e){var t=e.props.axis,n=e.scrollParent;return n===window?window[x[t]]:n[b[t]]},j=function(e,t){var n=e.length,r=e.minSize,o=e.type,i=t.from,a=t.size,s=t.itemsPerRow,l=(a=Math.max(a,r))%s;return l&&(a+=s-l),a>n&&(a=n),(l=(i="simple"!==o&&i?Math.max(Math.min(i,n-a),0):0)%s)&&(i-=l,a+=l),i===t.from&&a===t.size?t:m(m({},t),{},{from:i,size:a})},M=e.default=function(e){function t(e){var n;return o(this,t),(n=s(this,t,[e])).state=j(e,{itemsPerRow:1,from:e.initialIndex,size:0}),n.cache={},n.cachedScrollPosition=null,n.prevPrevState={},n.unstable=!1,n.updateCounter=0,n}return f(t,e),a(t,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.props.axis!==e.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>I)return this.unstable=!0,console.error(A);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout((function(){t.updateCounter=0,delete t.updateCounterTimeoutId}),0)),this.updateFrame()}}},{key:"maybeSetState",value:function(e,t){if(P(this.state,e))return t();this.setState(e,t)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,T),this.scrollParent.removeEventListener("mousewheel",N,T)}},{key:"getOffset",value:function(e){var t=this.props.axis,n=e[w[t]]||0,r=E[t];do{n+=e[r]||0}while(e=e.offsetParent);return n}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if("number"===typeof this.cachedScrollPosition)return this.cachedScrollPosition;var e=this.scrollParent,t=this.props.axis,n=C[t],r=e===window?document.body[n]||document.documentElement[n]:e[n],o=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),i=Math.max(0,Math.min(r,o)),a=this.getEl();return this.cachedScrollPosition=this.getOffset(e)+i-this.getOffset(a),this.cachedScrollPosition}},{key:"setScroll",value:function(e){var t=this.scrollParent,n=this.props.axis;if(e+=this.getOffset(this.getEl()),t===window)return window.scrollTo(0,e);e-=this.getOffset(this.scrollParent),t[C[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,r=t.documentElement,o=k[this.props.axis];return e===window?Math.max(n[o],r[o]):e[o]}},{key:"hasDeterminateSize",value:function(){var e=this.props,t=e.itemSizeGetter;return"uniform"===e.type||t}},{key:"getStartAndEnd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.threshold,t=this.getScrollPosition(),n=Math.max(0,t-e),r=t+this.props.scrollParentViewportSizeGetter(this)+e;return this.hasDeterminateSize()&&(r=Math.min(r,this.getSpaceBefore(this.props.length))),{start:n,end:r}}},{key:"getItemSizeAndItemsPerRow",value:function(){var e=this.props,t=e.axis,n=e.useStaticSize,r=this.state,o=r.itemSize,i=r.itemsPerRow;if(n&&o&&i)return{itemSize:o,itemsPerRow:i};var a=this.items.children;if(!a.length)return{};var s=a[0],l=s[_[t]],c=Math.abs(l-o);if((isNaN(c)||c>=1)&&(o=l),!o)return{};for(var u=E[t],d=s[u],f=a[i=1];f&&f[u]===d;f=a[i])++i;return{itemSize:o,itemsPerRow:i}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(e){return this.clearSizeCache(),this.updateFrame(e)}},{key:"updateFrame",value:function(e){switch(this.updateScrollParent(),"function"!==typeof e&&(e=N),this.props.type){case"simple":return this.updateSimpleFrame(e);case"variable":return this.updateVariableFrame(e);case"uniform":return this.updateUniformFrame(e)}}},{key:"updateScrollParent",value:function(){var e=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),e!==this.scrollParent&&(e&&(e.removeEventListener("scroll",this.updateFrameAndClearCache),e.removeEventListener("mousewheel",N)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,T),this.scrollParent.addEventListener("mousewheel",N,T))}},{key:"updateSimpleFrame",value:function(e){var t=this.getStartAndEnd().end,n=this.items.children,r=0;if(n.length){var o=this.props.axis,i=n[0],a=n[n.length-1];r=this.getOffset(a)+a[_[o]]-this.getOffset(i)}if(r>t)return e();var s=this.props,l=s.pageSize,c=s.length,u=Math.min(this.state.size+l,c);this.maybeSetState({size:u},e)}},{key:"updateVariableFrame",value:function(e){this.props.itemSizeGetter||this.cacheSizes();for(var t=this.getStartAndEnd(),n=t.start,r=t.end,o=this.props,i=o.length,a=o.pageSize,s=0,l=0,c=0,u=i-1;l<u;){var d=this.getSizeOfItem(l);if(null==d||s+d>n)break;s+=d,++l}for(var f=i-l;c<f&&s<r;){var p=this.getSizeOfItem(l+c);if(null==p){c=Math.min(c+a,f);break}s+=p,++c}this.maybeSetState(j(this.props,{from:l,itemsPerRow:1,size:c}),e)}},{key:"updateUniformFrame",value:function(e){var t=this.getItemSizeAndItemsPerRow(),n=t.itemSize,r=t.itemsPerRow;if(!n||!r)return e();var o=this.getStartAndEnd(),i=o.start,a=o.end,s=j(this.props,{from:Math.floor(i/n)*r,size:(Math.ceil((a-i)/n)+1)*r,itemsPerRow:r}),l=s.from,c=s.size;return this.maybeSetState({itemsPerRow:r,from:l,itemSize:n,size:c},e)}},{key:"getSpaceBefore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t[e])return t[e];var n=this.state,r=n.itemSize,o=n.itemsPerRow;if(r)return t[e]=Math.floor(e/o)*r;for(var i=e;i>0&&null==t[--i];);for(var a=t[i]||0,s=i;s<e;++s){t[s]=a;var l=this.getSizeOfItem(s);if(null==l)break;a+=l}return t[e]=a}},{key:"cacheSizes",value:function(){for(var e=this.cache,t=this.state.from,n=this.items.children,r=_[this.props.axis],o=0,i=n.length;o<i;++o)e[t+o]=n[o][r]}},{key:"getSizeOfItem",value:function(e){var t=this.cache,n=this.items,r=this.props,o=r.axis,i=r.itemSizeGetter,a=r.itemSizeEstimator,s=r.type,l=this.state,c=l.from,u=l.itemSize,d=l.size;if(u)return u;if(i)return i(e);if(e in t)return t[e];if("simple"===s&&e>=c&&e<c+d&&n){var f=n.children[e-c];if(f)return f[_[o]]}return a?a(e,t):void 0}},{key:"scrollTo",value:function(e){null!=e&&this.setScroll(this.getSpaceBefore(e))}},{key:"scrollAround",value:function(e){var t=this.getScrollPosition(),n=this.getSpaceBefore(e),r=n-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(e),o=Math.min(r,n),i=Math.max(r,n);return t<=o?this.setScroll(o):t>i?this.setScroll(i):void 0}},{key:"getVisibleRange",value:function(){for(var e,t,n=this.state,r=n.from,o=n.size,i=this.getStartAndEnd(0),a=i.start,s=i.end,l={},c=r;c<r+o;++c){var u=this.getSpaceBefore(c,l),d=u+this.getSizeOfItem(c);null==e&&d>a&&(e=c),null!=e&&u<s&&(t=c)}return[e,t]}},{key:"renderItems",value:function(){for(var e=this,t=this.props,n=t.itemRenderer,r=t.itemsRenderer,o=this.state,i=o.from,a=o.size,s=[],l=0;l<a;++l)s.push(n(i+l,l));return r(s,(function(t){return e.items=t}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.axis,o=t.length,i=t.type,a=t.useTranslate3d,s=this.state,l=s.from,c=s.itemsPerRow,u=this.renderItems();if("simple"===i)return u;var d={position:"relative"},f={},p=Math.ceil(o/c)*c,h=this.getSpaceBefore(p,f);h&&(d[O[r]]=h,"x"===r&&(d.overflowX="hidden"));var m=this.getSpaceBefore(l,f),g="x"===r?m:0,v="y"===r?m:0,y=a?"translate3d(".concat(g,"px, ").concat(v,"px, 0)"):"translate(".concat(g,"px, ").concat(v,"px)"),b={msTransform:y,WebkitTransform:y,transform:y};return(0,n.jsx)("div",{style:d,ref:function(t){return e.el=t},children:(0,n.jsx)("div",{style:b,children:u})})}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=j(e,t);return n===t?null:n}}])}(t.Component);g(M,"displayName","ReactList"),g(M,"defaultProps",{axis:"y",itemRenderer:function(e,t){return(0,n.jsx)("div",{children:e},t)},itemsRenderer:function(e,t){return(0,n.jsx)("div",{ref:t,children:e})},length:0,minSize:1,pageSize:10,scrollParentGetter:D,scrollParentViewportSizeGetter:R,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})},void 0===(i="function"===typeof r?r.apply(t,o):r)||(e.exports=i)},52905:(e,t,n)=>{"use strict";n.d(t,{N_:()=>m});var r=n(10755),o=n(25540),i=n(59284),a=n(45264),s=n(58168),l=n(98587),c=n(68643);i.Component;i.Component;var u=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?(0,a.yJ)(e,null,null,t):e},f=function(e){return e},p=i.forwardRef;"undefined"===typeof p&&(p=f);var h=p((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=(0,l.A)(e,["innerRef","navigate","onClick"]),c=a.target,u=(0,s.A)({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==p&&t||n,i.createElement("a",u)}));var m=p((function(e,t){var n=e.component,o=void 0===n?h:n,m=e.replace,g=e.to,v=e.innerRef,y=(0,l.A)(e,["component","replace","to","innerRef"]);return i.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=e.history,r=d(u(g,e.location),e.location),l=r?n.createHref(r):"",h=(0,s.A)({},y,{href:l,navigate:function(){var t=u(g,e.location),r=(0,a.AO)(e.location)===(0,a.AO)(d(t));(m||r?n.replace:n.push)(t)}});return f!==p?h.ref=t||v:h.innerRef=v,i.createElement(o,h)}))})),g=function(e){return e},v=i.forwardRef;"undefined"===typeof v&&(v=g);v((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,a=e.activeClassName,f=void 0===a?"active":a,p=e.activeStyle,h=e.className,y=e.exact,b=e.isActive,w=e.location,x=e.sensitive,_=e.strict,E=e.style,S=e.to,k=e.innerRef,C=(0,l.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=w||e.location,a=d(u(S,n),n),l=a.pathname,O=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),N=O?(0,r.B6)(n.pathname,{path:O,exact:y,sensitive:x,strict:_}):null,T=!!(b?b(N,n):N),A="function"===typeof h?h(T):h,I="function"===typeof E?E(T):E;T&&(A=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(A,f),I=(0,s.A)({},I,p));var P=(0,s.A)({"aria-current":T&&o||null,className:A,style:I,to:a},C);return g!==v?P.ref=t||k:P.innerRef=k,i.createElement(m,P)}))}))},10755:(e,t,n)=>{"use strict";n.d(t,{B6:()=>T,Ix:()=>b,W5:()=>U,W6:()=>z,XZ:()=>y,dO:()=>M,g:()=>B,qh:()=>A,rd:()=>k,zy:()=>F});var r=n(25540),o=n(59284),i=n(13260),a=n.n(i),s=n(45264),l=n(68643),c=n(58168),u=n(13489),d=n.n(u),f=(n(67076),n(98587)),p=(n(5290),1073741823),h="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var m=o.createContext||function(e,t){var n,i,s="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}(0,r.A)(n,e);var o=n.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},o.render=function(){return this.props.children},n}(o.Component);l.childContextTypes=((n={})[s]=a().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.A)(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?p:t},o.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?p:e},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return c.contextTypes=((i={})[s]=a().object,i),{Provider:l,Consumer:c}},g=function(e){var t=m();return t.displayName=e,t},v=g("Router-History"),y=g("Router"),b=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.A)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.Component);o.Component;var w=function(e){function t(){return e.apply(this,arguments)||this}(0,r.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.Component);var x={},_=1e4,E=0;function S(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(x[e])return x[e];var t=d().compile(e);return E<_&&(x[e]=t,E++),t}(e)(t,{pretty:!0})}function k(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.createElement(y.Consumer,null,(function(e){e||(0,l.A)(!1);var r=e.history,a=e.staticContext,u=i?r.push:r.replace,d=(0,s.yJ)(t?"string"===typeof n?S(n,t.params):(0,c.A)({},n,{pathname:S(n.pathname,t.params)}):n);return a?(u(d),null):o.createElement(w,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,s.yJ)(t.to);(0,s.Fu)(n,(0,c.A)({},d,{key:n.key}))||u(d)},to:n})}))}var C={},O=1e4,N=0;function T(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=C[n]||(C[n]={});if(r[e])return r[e];var o=[],i={regexp:d()(e,o,t),keys:o};return N<O&&(r[e]=i,N++),i}(n,{end:i,strict:s,sensitive:c}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],f=l.slice(1),p=e===u;return i&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var A=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return o.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?T(n.pathname,e.props):t.match,i=(0,c.A)({},t,{location:n,match:r}),a=e.props,s=a.children,u=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===o.Children.count(e)}(s)&&(s=null),o.createElement(y.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:u?o.createElement(u,i):d?d(i):null:"function"===typeof s?s(i):null)}))},t}(o.Component);function I(e){return"/"===e.charAt(0)?e:"/"+e}function P(e,t){if(!e)return t;var n=I(e);return 0!==t.pathname.indexOf(n)?t:(0,c.A)({},t,{pathname:t.pathname.substr(n.length)})}function D(e){return"string"===typeof e?e:(0,s.AO)(e)}function R(e){return function(){(0,l.A)(!1)}}function j(){}o.Component;var M=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return o.createElement(y.Consumer,null,(function(t){t||(0,l.A)(!1);var n,r,i=e.props.location||t.location;return o.Children.forEach(e.props.children,(function(e){if(null==r&&o.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?T(i.pathname,(0,c.A)({},e.props,{path:a})):t.match}})),r?o.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.Component);var L=o.useContext;function z(){return L(v)}function F(){return L(y).location}function B(){var e=L(y).match;return e?e.params:{}}function U(e){var t=F(),n=L(y).match;return e?T(t.pathname,e):n}},13489:(e,t,n)=>{var r=n(4786);e.exports=h,e.exports.parse=i,e.exports.compile=function(e,t){return l(i(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,s=0,l="",c=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],f=n[1],p=n.index;if(l+=e.slice(s,p),s=p+d.length,f)l+=f[1];else{var h=e[s],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],w=n[7];l&&(r.push(l),l="");var x=null!=m&&null!=h&&h!==m,_="+"===b||"*"===b,E="?"===b||"*"===b,S=m||c,k=v||y,C=m||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:g||i++,prefix:m||"",delimiter:S,optional:E,repeat:_,partial:x,asterisk:!!w,pattern:k?u(k):w?".*":a(S,C)})}}return s<e.length&&(l+=e.substr(s)),l&&r.push(l),r}function a(e,t){return!t||t.indexOf(e)>-1?"[^"+c(e)+"]+?":c(t)+"|(?:(?!"+c(t)+")[^"+c(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"===typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",f(t)));return function(t,o){for(var i="",a=t||{},l=(o||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,f=a[u.name];if(null==f){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=c(l);else{var u=c(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+u+p+")*"),a+=p=l.optional?l.partial?u+"("+p+")?":"(?:"+u+"("+p+"))?":u+"("+p+")"}}var h=c(n.delimiter||"/"),m=a.slice(-h.length)===h;return o||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+h+"|$)",d(new RegExp("^"+a,f(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(h(e[o],t,n).source);return d(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return p(i(e,n),t,n)}(e,t,n)}},29416:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return x(e)===d}},67076:(e,t,n)=>{"use strict";n(29416)},72630:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(58168),o=n(98587),i=n(25540);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(59284),l=n(48681);const c=!1;var u=n(10641),d=function(e){return e.scrollTop},f="unmounted",p="exited",h="entering",m="entered",g="exiting",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=p,r.appearStatus=h):o=m:o=t.unmountOnExit||t.mountOnEnter?f:p,r.state={status:o},r.nextCallback=null,r}(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==m&&(t=h):n!==h&&n!==m||(t=g)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this);n&&d(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[l.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:m},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:h},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:m},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:g},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,o.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(u.A.Provider,{value:null},"function"===typeof n?n(e,r):s.cloneElement(s.Children.only(n),r))},t}(s.Component);function y(){}v.contextType=u.A,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},v.UNMOUNTED=f,v.EXITED=p,v.ENTERING=h,v.ENTERED=m,v.EXITING=g;const b=v;var w=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,i.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&d(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&w(e,r),o&&w(e,o),i&&w(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,o.A)(e,["classNames"]));return s.createElement(b,(0,r.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);x.defaultProps={classNames:""},x.propTypes={};const _=x},10641:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(59284).createContext(null)},67124:(e,t,n)=>{"use strict";var r=n(59284),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},50943:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:E.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function N(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+N(l,0):i,x(a)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),T(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+N(s=e[c],c);l+=T(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,o,u=i+N(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function A(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},D={transition:null},R={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:D,ReactCurrentOwner:E};function j(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=j,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=E.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},59284:(e,t,n)=>{"use strict";e.exports=n(50943)},60712:(e,t,n)=>{"use strict";e.exports=n(67124)},49526:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LOCATION_POP="REDUX-LOCATION-POP-ACTION",t.LOCATION_PUSH="REDUX-LOCATION-PUSH-ACTION",t.OBJECT_KEY_DELIMITER="-"},57467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.createReduxLocationActions=function(e,t,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.stateToParams;e[i.RLSCONFIG]&&e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS]&&Object.keys(e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS]).forEach((function(t){(0,i.overrideAccessors)(t,e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS][t])}));var u={};return{locationMiddleware:function(t){return function(r){return function(o){var a=t.getState(),s=r(o),l=t.getState(),d=n.location,f=d.pathname!==u.pathname;if(l!==a||f){u=d;var p=c(e,l,d),h=p.shouldPush,m=p.location;(0,i.isEqual)(m,d)||(h&&!f?n.push(m):n.replace(m))}return s}}},reducersWithLocation:function(n,i){var s=function(n,i){var s=i.type,l=i.payload;if(s!==o.LOCATION_POP||!l)return n;var c=r({},l,{query:(0,a.parseQuery)(e,l)});return t(n,c)}(l(n,i),i);return s!==n?s:n}}};var o=n(49526),i=n(93650),a=n(93694),s=n(92189)},93650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.paramDecoder=t.OVERWRITE_ACCESSORS=t.RLSCONFIG=void 0,t.setParamEncoder=function(e){c=e},t.setParamDecoder=function(e){t.paramDecoder=u=e},t.overrideAccessors=function(e,t){l[e]=t},t.get=function(){return l.get.apply(l,arguments)},t.set=function(){return l.set.apply(l,arguments)},t.isEqual=function(){return l.isEqual.apply(l,arguments)},t.getMatchingDeclaredPath=d,t.createObjectFromConfig=function(e,t){if(!e)return;var n=d(e,t);return e.global?Object.assign({},e.global,e[n]||{}):e[n]},t.getPath=function(){var e=window.location.href,t=e.indexOf("#")+1;if(t&&0===e.substring(t).indexOf("/"))return e.substring(t);return window.location.pathname+window.location.search+window.location.hash},t.createParamsString=function(e){var t=Object.keys(e).reduce((function(t,n){var r=n.toString(),o=e[n];if(function(e){return"undefined"===typeof e||null===e}(o)||Array.isArray(o)&&!o.length)return t;var i=e[n].toString();return[].concat(s(t),[c(r)+"="+c(i)])}),[]);return t.length?"?"+t.join("&"):""},t.parseParams=function(e,t){return e&&e.split("&").reduce((function(e,n){"?"===n[0]&&(n=n.substr(1));var r=t?t(n):n.split("=");return e[u(r[0])]=u(r[1])||"",e}),{})||{}};var r=a(n(87924)),o=a(n(62060)),i=a(n(38896));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.RLSCONFIG="RLSCONFIG",t.OVERWRITE_ACCESSORS="overwrite-accessors";var l={get:r.default,set:i.default,isEqual:o.default},c=encodeURIComponent,u=t.paramDecoder=decodeURIComponent;function d(e,t){var n=t.pathname.split("/");return Object.keys(e).filter((function(e){var t=[].concat(s(n)),r=e.split("/"),o=[].concat(s(r)),i=0;return r.forEach((function(e,n){"*"===e&&(t.splice(n-i,1),o.splice(n-i,1),i++)})),t.join("/")===o.join("/")}))[0]}},19859:(e,t,n)=>{"use strict";var r=n(57467);Object.defineProperty(t,"zx",{enumerable:!0,get:function(){return r.createReduxLocationActions}});var o=n(56029);Object.defineProperty(t,"BL",{enumerable:!0,get:function(){return o.listenForHistoryChange}});var i=n(93650)},56029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listenForHistoryChange=function(e,t){var n=function(e){return{type:r.LOCATION_POP,payload:e}};t.listen((function(){t&&t.action&&"POP"===t.action&&e.dispatch(n(t.location))})),t.listen((function(){t&&t.action&&"PUSH"===t.action&&e.dispatch(function(e){return{type:r.LOCATION_PUSH,payload:e}}(t.location))})),e.dispatch(n(t.location))};var r=n(49526)},93694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQuery=function(e,t){var n=(0,r.createObjectFromConfig)(e,t),i=e[r.RLSCONFIG]&&e[r.RLSCONFIG].queryParser,a=(0,r.parseParams)(t.search,i);if(!n)return t.search;return Object.keys(n).reduce((function(e,t){var i=n[t],s=i.stateKey,l=i.options,c=void 0===l?{}:l,u=i.initialState,d=i.type,f=a[t],p=void 0;return"undefined"===typeof f||null===f?((0,r.set)(e,s,u),e):(p=c.parse?c.parse(f):d?o.typeHandles[d].parse(f,c):f,(0,r.set)(e,s,p),e)}),{})};var r=n(93650),o=n(86540)},92189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.stateToParams=function(e,t,n){var s=(0,i.createObjectFromConfig)(e,n),l=e[i.RLSCONFIG]&&e[i.RLSCONFIG].queryParser,c=(0,i.parseParams)(n.search,l);if(!s)return{location:o({},n)};var u=!1,d=Object.keys(s).reduce((function(e,n){var o=s[n],l=o.stateKey,d=o.options,f=void 0===d?{}:d,p=o.initialState,h=o.type,m=(0,i.get)(t,l),g=void 0;if("date"===h?g=m.toISOString().substring(0,10)===(p&&p.toISOString().substring(0,10)):(m&&"object"===("undefined"===typeof m?"undefined":r(m))&&!Object.keys(m).length&&(m=void 0),g="object"===("undefined"===typeof m?"undefined":r(m))?(0,i.isEqual)(p,m):m===p),("undefined"===typeof m&&!f.serialize||g)&&!f.setAsEmptyItem)return e;if(f.serialize){var v=f.serialize(m);if("undefined"===typeof v)return e;m=v}else h&&(m=a.typeHandles[h].serialize(m,f));return e[n]=m,m!==c[n]&&f.shouldPush&&(u=!0),e}),{});return{location:o({},n,{search:(0,i.createParamsString)(d)}),shouldPush:u}};var i=n(93650),a=n(86540)},86540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeHandles=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(49526),i=n(93650);function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.typeHandles={number:{serialize:function(e,t){return e.toString()},parse:function(e,t){return parseFloat(e)}},date:{serialize:function(e,t){return e.toISOString().substring(0,10)},parse:function(e,t){return new Date(e)}},array:{serialize:function(e,t){return(t.keepOrder?[].concat(a(e)):[].concat(a(e)).sort()).join(t.delimiter||o.OBJECT_KEY_DELIMITER)},parse:function(e,t){return(0,i.paramDecoder)(e).split(t.delimiter||o.OBJECT_KEY_DELIMITER)}},bool:{serialize:function(e,t){return e.toString()},parse:function(e,t){return"true"===e}},object:{serialize:function(e,t){return t.isFlags?Object.keys(e).filter((function(t,n){return e[t]})).join(o.OBJECT_KEY_DELIMITER):Object.keys(e).sort().map((function(t,n){return""+t+o.OBJECT_KEY_DELIMITER+e[t]}))},parse:function(e,t){return t.isFlags?e.split(t.delimiter||o.OBJECT_KEY_DELIMITER).reduce((function(e,t){return""===t||(e[t]=!0),e}),{}):(0,i.paramDecoder)(e).split(",").reduce((function(e,t){var n=t.split(o.OBJECT_KEY_DELIMITER),i=r(n,2),a=i[0],s=i[1];return e[a]=s,e}),{})}}}},91407:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,D(_);else{var t=r(u);null!==t&&R(x,t.startTime-e)}}function _(e,n){m=!1,g&&(g=!1,y(C),C=-1),h=!0;var i=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!T());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&R(x,d.startTime-n),l=!1}return l}finally{f=null,p=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,k=null,C=-1,O=5,N=-1;function T(){return!(t.unstable_now()-N<O)}function A(){if(null!==k){var e=t.unstable_now();N=e;var n=!0;try{n=k(!0,e)}finally{n?E():(S=!1,k=null)}}else S=!1}if("function"===typeof b)E=function(){b(A)};else if("undefined"!==typeof MessageChannel){var I=new MessageChannel,P=I.port2;I.port1.onmessage=A,E=function(){P.postMessage(null)}}else E=function(){v(A,0)};function D(e){k=e,S||(S=!0,E())}function R(e,n){C=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,D(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(y(C),C=-1):g=!0,R(x,i-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,D(_))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},99158:(e,t,n)=>{"use strict";e.exports=n(91407)},37737:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},93339:(e,t,n)=>{"use strict";var r=n(69123),o=n(39955),i=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return i(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=i(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},5635:(e,t,n)=>{"use strict";var r=n(94701),o=n(90308),i=n(69123),a=n(39955),s=r("%Map%",!0),l=o("Map.prototype.get",!0),c=o("Map.prototype.set",!0),u=o("Map.prototype.has",!0),d=o("Map.prototype.delete",!0),f=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var n=d(e,t);return 0===f(e)&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new s),c(e,t,n)}};return t}},46343:(e,t,n)=>{"use strict";var r=n(94701),o=n(90308),i=n(69123),a=n(5635),s=n(39955),l=r("%WeakMap%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),f=o("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+i(e))},delete:function(n){if(l&&n&&("object"===typeof n||"function"===typeof n)){if(e)return f(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return l&&n&&("object"===typeof n||"function"===typeof n)&&e?c(e,n):t&&t.get(n)},has:function(n){return l&&n&&("object"===typeof n||"function"===typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){l&&n&&("object"===typeof n||"function"===typeof n)?(e||(e=new l),u(e,n,r)):a&&(t||(t=a()),t.set(n,r))}};return n}:a},3584:(e,t,n)=>{"use strict";var r=n(39955),o=n(69123),i=n(93339),a=n(5635),s=n(46343)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},83046:(e,t,n)=>{"use strict";n.d(t,{AO:()=>S,Kr:()=>_,nq:()=>E,tp:()=>C,yT:()=>f});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],o=r.join(","),i="undefined"===typeof Element,a=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!i&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var o=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&a.call(e,o)&&r.unshift(e),r=r.filter(n)},u=function e(t,n,r){for(var i=[],s=Array.from(t);s.length;){var c=s.shift();if(!l(c,!1))if("SLOT"===c.tagName){var u=c.assignedElements(),d=e(u.length?u:c.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:c,candidates:d})}else{a.call(c,o)&&r.filter(c)&&(n||!t.includes(c))&&i.push(c);var f=c.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(c),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(f&&p){var h=e(!0===f?c.children:f.children,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:c,candidates:h})}else s.unshift.apply(s,c.children)}}return i},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},m=function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},g=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},v=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"===typeof r){for(var i=e;e;){var l=e.parentElement,c=s(e);if(l&&!l.shadowRoot&&!0===r(l))return g(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=i}if(function(e){var t,n,r,o,i=e&&s(e),a=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!==e&&void 0!==e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&a;){var c,u,d;l=!(null===(u=a=null===(c=i=s(a))||void 0===c?void 0:c.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},y=function(e,t){return!(t.disabled||l(t)||function(e){return h(e)&&"hidden"===e.type}(t)||v(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},b=function(e,t){return!(m(t)||f(t)<0||!y(e,t))},w=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},x=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),r.sort(p).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},_=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:b.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:w}):c(e,t.includeContainer,b.bind(null,t)),x(n)},E=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,y.bind(null,t))},S=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,o)&&b(t,e)},k=r.concat("iframe").join(","),C=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,k)&&y(t,e)}},33410:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},67087:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;const n=e instanceof Array?e[0]:e;return null==n||t||""!==n?n:null}function o(e){const t=r(e);if(null==t)return t;if(""===t)return null;return+t}function i(e){const t=r(e,!0);return null==t?t:String(t)}n.d(t,{NumberParam:()=>s,QueryParamProvider:()=>C,StringParam:()=>a,useQueryParam:()=>D,useQueryParams:()=>I});const a={encode:function(e){return null==e?e:String(e)},decode:i},s={encode:function(e){return null==e?e:String(e)},decode:o};'{}[],":'.split("").map((e=>[e,encodeURIComponent(e)]));function l(e,t){const n={},r=Object.keys(t);for(const o of r){const r=t[o];e[o]?n[o]=e[o].encode(t[o]):n[o]=null==r?r:String(r)}return n}var c=n(59284);const u=new class{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,t,n,r){this.paramsMap.set(e,{stringified:t,decoded:n,decode:r})}has(e,t,n){if(!this.paramsMap.has(e))return!1;const r=this.paramsMap.get(e);return!!r&&(r.stringified===t&&(null==n||r.decode===n))}get(e){var t;if(this.paramsMap.has(e))return null==(t=this.paramsMap.get(e))?void 0:t.decoded}registerParams(e){for(const t of e){const e=this.registeredParams.get(t)||0;this.registeredParams.set(t,e+1)}}unregisterParams(e){for(const t of e){const e=(this.registeredParams.get(t)||0)-1;e<=0?(this.registeredParams.delete(t),this.paramsMap.has(t)&&this.paramsMap.delete(t)):this.registeredParams.set(t,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}};function d(e,t,n,r){var o;if(!n||!t.length)return e;let i={...e},a=!1;for(const s of t)Object.prototype.hasOwnProperty.call(i,s)||(i[s]=null!=(o=n[s])?o:r,a=!0);return a?i:e}const f=Object.prototype.hasOwnProperty;function p(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function h(e,t,n){var r,o;if(p(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let s=0;s<i.length;s++){const a=null!=(o=null==(r=null==n?void 0:n[i[s]])?void 0:r.equals)?o:p;if(!f.call(t,i[s])||!a(e[i[s]],t[i[s]]))return!1}return!0}function m(e,t,n){const r={},o=Object.keys(t);for(const i of o){const o=t[i],a=e[i];let s;if(n.has(i,a,o.decode))s=n.get(i);else{if(s=o.decode(a),o.equals&&n.has(i,a)){const e=n.get(i);o.equals(s,e)&&(s=e)}void 0!==s&&n.set(i,a,s,o.decode)}void 0===s&&void 0!==o.default&&(s=o.default),r[i]=s}return r}function g(){let e;return function(t,n,r){const o=m(t,n,r);return null!=e&&h(e,o)?e:(e=o,o)}}let v,y,b,w={};const x=(e,t,n)=>{if(v===t&&b===e&&y===n)return w;v=t,b=e;const r=e(null!=t?t:"");y=n;const o=function(e){if(e)return Object.fromEntries(e.split("\n").map((e=>e.split("\0"))))}(n);for(let[i,a]of Object.entries(r)){(null==o?void 0:o[i])&&(delete r[i],i=o[i],r[i]=a);const e=w[i];h(a,e)&&(r[i]=e)}return w=r,r};function _(e,t){null==t&&(t={});const n={...e,...t};return t.params&&e.params&&(n.params={...e.params,...t.params}),n}const E={adapter:{},options:{searchStringToObject:function(e){const t=new URLSearchParams(e),n={};for(let[r,o]of t)Object.prototype.hasOwnProperty.call(n,r)?Array.isArray(n[r])?n[r].push(o):n[r]=[n[r],o]:n[r]=o;return n},objectToSearchString:function(e){const t=new URLSearchParams,n=Object.entries(e);for(const[r,o]of n)if(void 0!==o&&null!==o)if(Array.isArray(o))for(const e of o)t.append(r,null!=e?e:"");else t.append(r,o);return t.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},S=c.createContext(E);function k({children:e,adapter:t,options:n}){const{adapter:r,options:o}=c.useContext(S),i=c.useMemo((()=>({adapter:null!=t?t:r,options:_(o,n)})),[t,n,r,o]);return c.createElement(S.Provider,{value:i},e)}function C({children:e,adapter:t,options:n}){const r=t;return r?c.createElement(r,null,(t=>c.createElement(k,{adapter:t,options:n},e))):c.createElement(k,{options:n},e)}function O({changes:e,updateType:t,currentSearchString:n,paramConfigMap:r,options:o}){const{searchStringToObject:i,objectToSearchString:a}=o;let s;null==t&&(t=o.updateType);const c=x(i,n),f=d(r,Object.keys(e),o.params);let p,h;if("function"===typeof e){p=e(m(c,f,u))}else p=e;return s=l(f,p),o.removeDefaultsFromUrl&&function(e,t){var n;for(const r in e)void 0!==(null==(n=t[r])?void 0:n.default)&&void 0!==e[r]&&t[r].encode(t[r].default)===e[r]&&(e[r]=void 0)}(s,f),s=function(e,t){var n;let r={};for(const o in e)null!=(null==(n=t[o])?void 0:n.urlName)?r[t[o].urlName]=e[o]:r[o]=e[o];return r}(s,f),h=a("push"===t||"replace"===t?s:{...c,...s}),(null==h?void 0:h.length)&&"?"!==h[0]&&(h=`?${h}`),null!=h?h:""}const N=e=>e(),T=e=>setTimeout((()=>e()),0),A=[];function I(e,t){const{adapter:n,options:r}=function(){const e=c.useContext(S);if(void 0===e||e===E)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}(),[o]=(0,c.useState)(g),{paramConfigMap:i,options:s}=function(e,t){let n,r;void 0===e?(n={},r=t):Array.isArray(e)?(n=Object.fromEntries(e.map((e=>[e,"inherit"]))),r=t):(n=e,r=t);return{paramConfigMap:n,options:r}}(e,t),l=(0,c.useMemo)((()=>_(r,s)),[r,s]);let f=function(e,t){var n,r,o;const i={};let s=!1;const l=Object.keys(e);let c=l;if(t.includeKnownParams||!1!==t.includeKnownParams&&0===l.length){const e=Object.keys(null!=(n=t.params)?n:{});c.push(...e)}for(const u of c){const n=e[u];null==n||"object"!==typeof n?(s=!0,i[u]=null!=(o=null==(r=t.params)?void 0:r[u])?o:a):i[u]=n}return s?i:e}(i,l);const p=x(l.searchStringToObject,n.location.search,function(e){let t;for(const n in e)if(e[n].urlName){const r=`${e[n].urlName}\0${n}`;t?t.push(r):t=[r]}return t?t.join("\n"):void 0}(f));l.includeAllParams&&(f=d(f,Object.keys(p),l.params,a));const h=o(p,f,u),m=Object.keys(f).join("\0");(0,c.useEffect)((()=>{const e=m.split("\0");return u.registerParams(e),()=>{u.unregisterParams(e)}}),[m]);const v={adapter:n,paramConfigMap:f,options:l},y=(0,c.useRef)(v);null==y.current&&(y.current=v),(0,c.useEffect)((()=>{y.current.adapter=n,y.current.paramConfigMap=f,y.current.options=l}),[n,f,l]);const[b]=(0,c.useState)((()=>(e,t)=>{const{adapter:n,paramConfigMap:r,options:o}=y.current;null==t&&(t=o.updateType),function(e,{immediate:t}={}){A.push(e);let n=t?N:T;1===A.length&&n((()=>{const t=A.slice();A.length=0;const n=t[0].currentSearchString;let r;for(let e=0;e<t.length;++e)r=O(0===e?t[e]:{...t[e],currentSearchString:r});e.options.skipUpdateWhenNoChange&&r===n||function({searchString:e,adapter:t,navigate:n,updateType:r}){const o={...t.location,search:e};n&&("string"===typeof r&&r.startsWith("replace")?t.replace(o):t.push(o))}({searchString:null!=r?r:"",adapter:t[t.length-1].adapter,navigate:!0,updateType:t[t.length-1].updateType})}))}({changes:e,updateType:t,currentSearchString:n.location.search,paramConfigMap:r,options:o,adapter:n},{immediate:!o.enableBatching})}));return[h,b]}var P=I;const D=(e,t,n)=>{const r=(0,c.useMemo)((()=>({[e]:null!=t?t:"inherit"})),[e,t]),[o,i]=P(r,n);return[o[e],(0,c.useCallback)(((t,n)=>i("function"===typeof t?n=>{const r=t(n[e]);return{[e]:r}}:{[e]:t},n)),[e,i])]}},6032:(e,t,n)=>{"use strict";var r=n(59284);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?(i=e,t):(i=e,a=n)}var i,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,u]);var p=i(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},88730:(e,t,n)=>{"use strict";e.exports=n(6032)},42634:()=>{},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},25540:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>o})},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},44992:(e,t,n)=>{"use strict";n.d(t,{RE:()=>s,hT:()=>A,l0:()=>M,m7:()=>G});var r=n(96906),o=n(97091),i=n(90754),a=n(53850),s=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(s||{});var l=r.Qd;function c(e,t){if(e===t||!(l(e)&&l(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const a of n)i[a]=c(e[a],t[a]),o&&(o=e[a]===i[a]);return o?e:i}function u(e){let t=0;for(const n in e)t++;return t}var d=e=>[].concat(...e);function f(e){return null!=e}var p=class{constructor(e,t=void 0){this.value=e,this.meta=t}};var h=(0,o.VP)("__rtkq/focused"),m=(0,o.VP)("__rtkq/unfocused"),g=(0,o.VP)("__rtkq/online"),v=(0,o.VP)("__rtkq/offline");function y(e){return"query"===e.type}function b(e,t,n,r,o,i){return"function"===typeof e?e(t,n,r,o).filter(f).map(w).map(i):Array.isArray(e)?e.map(w).map(i):[]}function w(e){return"string"===typeof e?{type:e}:e}var x=Symbol("forceQueryFn"),_=e=>"function"===typeof e[x];function E(e){return e}function S(e,t,n,r){return b(n[e.meta.arg.endpointName][t],(0,o.sf)(e)?e.payload:void 0,(0,o.WA)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function k(e,t,n){const r=e[t];r&&n(r)}function C(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function O(e,t,n){const r=e[C(t)];r&&n(r)}var N={};function T({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:a,context:{endpointDefinitions:s,apiUid:l,extractRehydrationInfo:u,hasRehydrationInfo:d},assertTagType:f,config:p}){const y=(0,o.VP)(`${e}/resetApiState`);function b(e,t,n,r){e[t.queryCacheKey]??={status:"uninitialized",endpointName:t.endpointName},k(e,t.queryCacheKey,(e=>{e.status="pending",e.requestId=n&&e.requestId?e.requestId:r.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=r.startedTimeStamp}))}function w(e,t,n){k(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!_(t.arg))return;const{merge:r}=s[t.arg.endpointName];if(e.status="fulfilled",r)if(void 0!==e.data){const{fulfilledTimeStamp:o,arg:a,baseQueryMeta:s,requestId:l}=t;let c=(0,i.jM)(e.data,(e=>r(e,n,{arg:a.originalArgs,baseQueryMeta:s,fulfilledTimeStamp:o,requestId:l})));e.data=c}else e.data=n;else e.data=s[t.arg.endpointName].structuralSharing??1?c((0,i.Qx)(e.data)?(0,i.c2)(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))}const x=(0,o.Z0)({name:`${e}/queries`,initialState:N,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:(0,o.aA)()},cacheEntriesUpserted:{reducer(e,t){for(const n of t.payload){const{queryDescription:r,value:o}=n;b(e,r,!0,{arg:r,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),w(e,{arg:r,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},o)}},prepare:e=>({payload:e.map((e=>{const{endpointName:t,arg:n,value:r}=e,o=s[t];return{queryDescription:{type:"query",endpointName:t,originalArgs:e.arg,queryCacheKey:a({queryArgs:n,endpointDefinition:o,endpointName:t})},value:r}})),meta:{[o.cN]:!0,requestId:(0,o.Ak)(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){k(e,t,(e=>{e.data=(0,i.$i)(e.data,n.concat())}))},prepare:(0,o.aA)()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{b(e,n,_(n),t)})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{w(e,t,n)})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:o,payload:i})=>{k(e,n.queryCacheKey,(e=>{if(t);else{if(e.requestId!==r)return;e.status="rejected",e.error=i??o}}))})).addMatcher(d,((e,t)=>{const{queries:n}=u(t);for(const[r,o]of Object.entries(n))"fulfilled"!==o?.status&&"rejected"!==o?.status||(e[r]=o)}))}}),E=(0,o.Z0)({name:`${e}/mutations`,initialState:N,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=C(t);n in e&&delete e[n]},prepare:(0,o.aA)()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[C(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&O(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&O(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(d,((e,t)=>{const{mutations:n}=u(t);for(const[r,o]of Object.entries(n))"fulfilled"!==o?.status&&"rejected"!==o?.status||r===o?.requestId||(e[r]=o)}))}}),T=(0,o.Z0)({name:`${e}/invalidation`,initialState:N,reducers:{updateProvidedBy:{reducer(e,t){const{queryCacheKey:n,providedTags:r}=t.payload;for(const o of Object.values(e))for(const e of Object.values(o)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}for(const{type:o,id:i}of r){const t=(e[o]??={})[i||"__internal_without_id"]??=[];t.includes(n)||t.push(n)}},prepare:(0,o.aA)()}},extraReducers(e){e.addCase(x.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(d,((e,t)=>{const{provided:n}=u(t);for(const[r,o]of Object.entries(n))for(const[t,n]of Object.entries(o)){const o=(e[r]??={})[t||"__internal_without_id"]??=[];for(const e of n){o.includes(e)||o.push(e)}}})).addMatcher((0,o.i0)((0,o.sf)(t),(0,o.WA)(t)),((e,t)=>{const n=S(t,"providesTags",s,f),{queryCacheKey:r}=t.meta.arg;T.caseReducers.updateProvidedBy(e,T.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))}))}}),A=(0,o.Z0)({name:`${e}/subscriptions`,initialState:N,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),I=(0,o.Z0)({name:`${e}/internalSubscriptions`,initialState:N,reducers:{subscriptionsUpdated:{reducer:(e,t)=>(0,i.$i)(e,t.payload),prepare:(0,o.aA)()}}}),P=(0,o.Z0)({name:`${e}/config`,initialState:{online:"undefined"===typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"===typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...p},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&l===t||"conflict"}},extraReducers:e=>{e.addCase(g,(e=>{e.online=!0})).addCase(v,(e=>{e.online=!1})).addCase(h,(e=>{e.focused=!0})).addCase(m,(e=>{e.focused=!1})).addMatcher(d,(e=>({...e})))}}),D=(0,r.HY)({queries:x.reducer,mutations:E.reducer,provided:T.reducer,subscriptions:I.reducer,config:P.reducer});return{reducer:(e,t)=>D(y.match(t)?void 0:e,t),actions:{...P.actions,...x.actions,...A.actions,...I.actions,...E.actions,...T.actions,resetApiState:y}}}var A=Symbol.for("RTKQ/skipToken"),I={status:"uninitialized"},P=(0,i.jM)(I,(()=>{})),D=(0,i.jM)(I,(()=>{}));var R=WeakMap?new WeakMap:void 0,j=({endpointName:e,queryArgs:t})=>{let n="";const o=R?.get(t);if("string"===typeof o)n=o;else{const e=JSON.stringify(t,((e,t)=>(t="bigint"===typeof t?{$bigint:t.toString()}:t,t=(0,r.Qd)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t)));(0,r.Qd)(t)&&R?.set(t,e),n=e}return`${e}(${n})`};function M(...e){return function(t){const n=(0,a.X4)((e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"}))),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=j;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"===typeof n?n:j({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},i={endpointDefinitions:{},batch(e){e()},apiUid:(0,o.Ak)(),extractRehydrationInfo:n,hasRehydrationInfo:(0,a.X4)((e=>null!=n(e)))},s={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in i.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error((0,o.gk)(39))}else{i.endpointDefinitions[n]=r;for(const e of l)e.injectEndpoint(n,r)}return s},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const n of e)r.tagTypes.includes(n)||r.tagTypes.push(n);if(t)for(const[n,r]of Object.entries(t))"function"===typeof r?r(i.endpointDefinitions[n]):Object.assign(i.endpointDefinitions[n]||{},r);return s}},l=e.map((e=>e.init(s,r,i)));return s.injectEndpoints({endpoints:t.endpoints})}}function L(e,...t){return Object.assign(e,...t)}var z=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,a=null;const{updateSubscriptionOptions:s,unsubscribeQueryResult:l}=e.internalActions,c=()=>n.currentSubscriptions,d={getSubscriptions:c,getSubscriptionCount:e=>u(c()[e]??{}),isRequestSubscribed:(e,t)=>{const n=c();return!!n?.[e]?.[t]}};return(c,u)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return o=n.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,d];const f=((n,r)=>{if(s.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return n?.[e]?.[t]&&(n[e][t]=o),!0}if(l.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,o=n[e.queryCacheKey]??={};return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let o=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;o||=!!e[t],delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:i}}=r;if(e&&t.subscribe){const e=n[t.queryCacheKey]??={};e[i]=t.subscriptionOptions??e[i]??{},o=!0}}return o})(n.currentSubscriptions,c);let p=!0;if(f){a||(a=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=(0,i.vI)(o,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),o=t,a=null}),500));const s="string"==typeof c.type&&!!c.type.startsWith(r),l=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;p=!s&&!l}return[p,!1]}};var F=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:i})=>{const{removeQueryResult:a,unsubscribeQueryResult:s,cacheEntriesUpserted:l}=t.internalActions,c=(0,o.i0)(s.match,n.fulfilled,n.rejected,l.match);function u(e){const t=i.currentSubscriptions[e];return!!t&&!function(e){for(const t in e)return!1;return!0}(t)}const d={};function f(e,t,n,o){const i=r.endpointDefinitions[t],s=i?.keepUnusedDataFor??o.keepUnusedDataFor;if(s===1/0)return;const l=Math.max(0,Math.min(s,2147482.647));if(!u(e)){const t=d[e];t&&clearTimeout(t),d[e]=setTimeout((()=>{u(e)||n.dispatch(a({queryCacheKey:e})),delete d[e]}),1e3*l)}}return(n,o,i)=>{if(c(n)){const t=o.getState()[e];let r;if(l.match(n))r=n.payload.map((e=>e.queryDescription.queryCacheKey));else{const{queryCacheKey:e}=s.match(n)?n.payload:n.meta.arg;r=[e]}for(const e of r)f(e,t.queries[e]?.endpointName,o,t.config)}if(t.util.resetApiState.match(n))for(const[e,t]of Object.entries(d))t&&clearTimeout(t),delete d[e];if(r.hasRehydrationInfo(n)){const t=o.getState()[e],{queries:i}=r.extractRehydrationInfo(n);for(const[e,n]of Object.entries(i))f(e,n?.endpointName,o,t.config)}}},B=new Error("Promise never resolved before cacheEntryRemoved."),U=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:i,internalState:a})=>{const s=(0,o.$S)(r),l=(0,o.$S)(i),c=(0,o.sf)(r,i),u={};function d(e,t,n){const r=u[e];r?.valueResolved&&(r.valueResolved({data:t,meta:n}),delete r.valueResolved)}function f(e){const t=u[e];t&&(delete u[e],t.cacheEntryRemoved())}function p(t,r,o,i,a){const s=n.endpointDefinitions[t],l=s?.onCacheEntryAdded;if(!l)return;const c={},d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw B}))]);f.catch((()=>{})),u[o]=c;const p=e.endpoints[t].select("query"===s.type?r:o),h=i.dispatch(((e,t,n)=>n)),m={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:h,updateCachedData:"query"===s.type?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},g=l(r,m);Promise.resolve(g).catch((e=>{if(e!==B)throw e}))}return(n,o,a)=>{const h=function(t){if(s(t))return t.meta.arg.queryCacheKey;if(l(t))return t.meta.arg.fixedCacheKey??t.meta.requestId;return e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?C(t.payload):""}(n);function m(e,n,r,i){const s=a[t].queries[n],l=o.getState()[t].queries[n];!s&&l&&p(e,i,n,o,r)}if(r.pending.match(n))m(n.meta.arg.endpointName,h,n.meta.requestId,n.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(n))for(const{queryDescription:e,value:t}of n.payload){const{endpointName:r,originalArgs:o,queryCacheKey:i}=e;m(r,i,n.meta.requestId,o),d(i,t,{})}else if(i.pending.match(n)){o.getState()[t].mutations[h]&&p(n.meta.arg.endpointName,n.meta.arg.originalArgs,h,o,n.meta.requestId)}else if(c(n))d(h,n.payload,n.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n))f(h);else if(e.util.resetApiState.match(n))for(const e of Object.keys(u))f(e)}},q=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},$=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:i,api:a,assertTagType:s,refetchQuery:l,internalState:c})=>{const{removeQueryResult:d}=a.internalActions,f=(0,o.i0)((0,o.sf)(r),(0,o.WA)(r)),p=(0,o.i0)((0,o.sf)(r,i),(0,o.TK)(r,i));let h=[];function m(n,r){const o=r.getState(),i=o[e];if(h.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){for(const t in e.queries)if("pending"===e.queries[t]?.status)return!0;for(const t in e.mutations)if("pending"===e.mutations[t]?.status)return!0;return!1}(i))return;const s=h;if(h=[],0===s.length)return;const f=a.util.selectInvalidatedBy(o,s);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===u(n)?r.dispatch(d({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(l(e)))}}))}return(e,t)=>{f(e)?m(S(e,"invalidatesTags",n,s),t):p(e)?m([],t):a.util.invalidateTags.match(e)&&m(b(e.payload,void 0,void 0,void 0,void 0,s),t)}},H=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={};function a({queryCacheKey:t},n){const s=n.getState()[e],l=s.queries[t],u=o.currentSubscriptions[t];if(!l||"uninitialized"===l.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=c(u);if(!Number.isFinite(d))return;const p=i[t];p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+d;i[t]={nextPollTimestamp:h,pollingInterval:d,timeout:setTimeout((()=>{!s.config.focused&&f||n.dispatch(r(l)),a({queryCacheKey:t},n)}),d)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=c(s);if(!Number.isFinite(u))return void l(t);const d=i[t],f=Date.now()+u;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function l(e){const t=i[e];t?.timeout&&clearTimeout(t.timeout),delete i[e]}function c(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(i))l(e)}()}},W=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const i=(0,o.mm)(n,r),a=(0,o.TK)(n,r),s=(0,o.sf)(n,r),l={};return(n,r)=>{if(i(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,s=t.endpointDefinitions[i],c=s?.onQueryStarted;if(c){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),l[o]=t;const u=e.endpoints[i].select("query"===s.type?a:o),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>u(r.getState()),requestId:o,extra:d,updateCachedData:"query"===s.type?t=>r.dispatch(e.util.updateQueryData(i,a,t)):void 0,queryFulfilled:n};c(a,f)}}else if(s(n)){const{requestId:e,baseQueryMeta:t}=n.meta;l[e]?.resolve({data:n.payload,meta:t}),delete l[e]}else if(a(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;l[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete l[e]}}};function V(e){const{reducerPath:t,queryThunk:n,api:i,context:a}=e,{apiUid:s}=a,l={invalidateTags:(0,o.VP)(`${t}/invalidateTags`)},c=e=>e.type.startsWith(`${t}/`),d=[q,F,$,H,U,W];return{middleware:n=>{let o=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:f,isThisApiSliceAction:c},p=d.map((e=>e(l))),m=z(l),v=(({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const s=n.getState()[e],l=s.queries,c=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=l[e],o=c[e];o&&t&&((Object.values(o).some((e=>!0===e[a]))||Object.values(o).every((e=>void 0===e[a]))&&s.config[a])&&(0===u(o)?n.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t))))}}))}return(e,t)=>{h.match(e)&&a(t,"refetchOnFocus"),g.match(e)&&a(t,"refetchOnReconnect")}})(l);return e=>l=>{if(!(0,r.ve)(l))return e(l);o||(o=!0,n.dispatch(i.internalActions.middlewareRegistered(s)));const u={...n,next:e},d=n.getState(),[f,h]=m(l,u,d);let g;if(g=f?e(l):h,n.getState()[t]&&(v(l,u,d),c(l)||a.hasRehydrationInfo(l)))for(const e of p)e(l,u,d);return g}},actions:l};function f(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}var K=Symbol(),G=({createSelector:e=a.Mz}={})=>({name:K,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:s,keepUnusedDataFor:l,refetchOnMountOrArgChange:c,refetchOnFocus:S,refetchOnReconnect:k,invalidationBehavior:O},N){(0,i.YT)();const I=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:g,onOffline:v,onFocus:h,onFocusLost:m},util:{}});const{queryThunk:R,mutationThunk:j,patchQueryData:M,updateQueryData:z,upsertQueryData:F,prefetch:B,buildMatchThunkActions:U}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:s}){const l=async(e,{signal:r,abort:i,rejectWithValue:a,fulfillWithValue:s,dispatch:l,getState:u,extra:d})=>{const f=n[e.endpointName];try{let n,a=E;const h={signal:r,abort:i,dispatch:l,getState:u,extra:d,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?c(e,u()):void 0,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0},m="query"===e.type?e[x]:void 0;if(m?n=m():f.query?(n=await t(f.query(e.originalArgs),h,f.extraOptions),f.transformResponse&&(a=f.transformResponse)):n=await f.queryFn(e.originalArgs,h,f.extraOptions,(e=>t(e,h,f.extraOptions))),n.error)throw new p(n.error,n.meta);return s(await a(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[o.cN]:!0})}catch(h){let t=h;if(t instanceof p){let n=E;f.query&&f.transformErrorResponse&&(n=f.transformErrorResponse);try{return a(await n(t.value,t.meta,e.originalArgs),{baseQueryMeta:t.meta,[o.cN]:!0})}catch(m){t=m}}throw console.error(t),t}};function c(t,n){const r=n[e]?.queries?.[t.queryCacheKey],o=n[e]?.config.refetchOnMountOrArgChange,i=r?.fulfilledTimeStamp,a=t.forceRefetch??(t.subscribe&&o);return!!a&&(!0===a||(Number(new Date)-Number(i))/1e3>=a)}const u=(0,o.zD)(`${e}/executeQuery`,l,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[o.cN]:!0}),condition(t,{getState:r}){const o=r(),i=o[e]?.queries?.[t.queryCacheKey],a=i?.fulfilledTimeStamp,s=t.originalArgs,l=i?.originalArgs,u=n[t.endpointName];return!!_(t)||"pending"!==i?.status&&(!!c(t,o)||!(!y(u)||!u?.forceRefetch?.({currentArg:s,previousArg:l,endpointState:i,state:o}))||!a)},dispatchConditionRejection:!0}),d=(0,o.zD)(`${e}/executeMutation`,l,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[o.cN]:!0})});function f(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:u,mutationThunk:d,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,l=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},c=a.endpoints[e].select(t)(o());if(i)r(l());else if(s){const e=c?.fulfilledTimeStamp;if(!e)return void r(l());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(l())}else r(l(!1))},updateQueryData:(e,t,n,r=!0)=>(o,s)=>{const l=a.endpoints[e].select(t)(s()),c={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,c.inversePatches,r))};if("uninitialized"===l.status)return c;let u;if("data"in l)if((0,i.a6)(l.data)){const[e,t,r]=(0,i.vI)(l.data,n);c.patches.push(...t),c.inversePatches.push(...r),u=e}else u=n(l.data),c.patches.push({op:"replace",path:[],value:u}),c.inversePatches.push({op:"replace",path:[],value:l.data});return 0===c.patches.length||o(a.util.patchQueryData(e,t,c.patches,r)),c},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[x]:()=>({data:n})})),patchQueryData:(e,t,o,i)=>(l,c)=>{const u=n[e],d=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(l(a.internalActions.queryResultPatched({queryCacheKey:d,patches:o})),!i)return;const f=a.endpoints[e].select(t)(c()),p=b(u.providesTags,f.data,void 0,t,{},s);l(a.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:(0,o.f$)((0,o.mm)(e),f(t)),matchFulfilled:(0,o.f$)((0,o.sf)(e),f(t)),matchRejected:(0,o.f$)((0,o.TK)(e),f(t))}}}}({baseQuery:n,reducerPath:a,context:N,api:t,serializeQueryArgs:s,assertTagType:I}),{reducer:q,actions:$}=T({context:N,queryThunk:R,mutationThunk:j,serializeQueryArgs:s,reducerPath:a,assertTagType:I,config:{refetchOnFocus:S,refetchOnReconnect:k,refetchOnMountOrArgChange:c,keepUnusedDataFor:l,reducerPath:a,invalidationBehavior:O}});L(t.util,{patchQueryData:M,updateQueryData:z,upsertQueryData:F,prefetch:B,resetApiState:$.resetApiState,upsertQueryEntries:$.cacheEntriesUpserted}),L(t.internalActions,$);const{middleware:H,actions:W}=V({reducerPath:a,context:N,queryThunk:R,mutationThunk:j,api:t,assertTagType:I});L(t.util,W),L(t,{reducer:q,middleware:H});const{buildQuerySelector:G,buildMutationSelector:Y,selectInvalidatedBy:Z,selectCachedArgsForQuery:Q}=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>P,o=e=>D;return{buildQuerySelector:function(t,o){return s=>{if(s===A)return n(r,i);const l=e({queryArgs:s,endpointDefinition:o,endpointName:t});return n((e=>a(e)?.queries?.[l]??P),i)}},buildMutationSelector:function(){return e=>{let t;return t="object"===typeof e?C(e)??A:e,n(t===A?o:e=>a(e)?.mutations?.[t]??D,i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const t of n.filter(f).map(w)){const e=r.provided[t.type];if(!e)continue;let n=(void 0!==t.id?e[t.id]:d(Object.values(e)))??[];for(const t of n)o.add(t)}return d(Array.from(o.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>e?.endpointName===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function i(e){return{...e,...(t=e.status,{status:t,isUninitialized:"uninitialized"===t,isLoading:"pending"===t,isSuccess:"fulfilled"===t,isError:"rejected"===t})};var t}function a(e){return e[t]}}({serializeQueryArgs:s,reducerPath:a,createSelector:e});L(t.util,{selectInvalidatedBy:Z,selectCachedArgsForQuery:Q});const{buildInitiateQuery:J,buildInitiateMutation:X,getRunningMutationThunk:ee,getRunningMutationsThunk:te,getRunningQueriesThunk:ne,getRunningQueryThunk:re}=function({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,o){const a=(l,{subscribe:f=!0,forceRefetch:p,subscriptionOptions:h,[x]:m,...g}={})=>(v,y)=>{const b=e({queryArgs:l,endpointDefinition:o,endpointName:n}),w=t({...g,type:"query",subscribe:f,forceRefetch:p,subscriptionOptions:h,endpointName:n,originalArgs:l,queryCacheKey:b,[x]:m}),_=r.endpoints[n].select(l),E=v(w),S=_(y());d(v);const{requestId:k,abort:C}=E,O=S.requestId!==k,N=i.get(v)?.[b],T=()=>_(y()),A=Object.assign(m?E.then(T):O&&!N?Promise.resolve(S):Promise.all([N,E]).then(T),{arg:l,requestId:k,subscriptionOptions:h,queryCacheKey:b,abort:C,async unwrap(){const e=await A;if(e.isError)throw e.error;return e.data},refetch:()=>v(a(l,{subscribe:!1,forceRefetch:!0})),unsubscribe(){f&&v(s({queryCacheKey:b,requestId:k}))},updateSubscriptionOptions(e){A.subscriptionOptions=e,v(c({endpointName:n,requestId:k,queryCacheKey:b,options:e}))}});if(!N&&!O&&!m){const e=(P=v,D={},(I=i).has(P)?I.get(P):I.set(P,D).get(P));e[b]=A,A.then((()=>{delete e[b],u(e)||i.delete(v)}))}var I,P,D;return A};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,s)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),f=i(c);d(i);const{requestId:p,abort:h,unwrap:m}=f,g=(v=e=>({error:e}),f.unwrap().then((e=>({data:e}))).catch(v));var v;const y=Object.assign(g,{arg:f.arg,requestId:p,abort:h,unwrap:m,reset:()=>{i(l({requestId:p,fixedCacheKey:o}))}}),b=a.get(i)||{};return a.set(i,b),b[p]=y,y.then((()=>{delete b[p],u(b)||a.delete(i)})),o&&(b[o]=y,y.then((()=>{b[o]===y&&(delete b[o],u(b)||a.delete(i))}))),y}},getRunningQueryThunk:function(t,n){return r=>{const a=o.endpointDefinitions[t],s=e({queryArgs:n,endpointDefinition:a,endpointName:t});return i.get(r)?.[s]}},getRunningMutationThunk:function(e,t){return e=>a.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(i.get(e)||{}).filter(f)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(f)}};function d(e){}}({queryThunk:R,mutationThunk:j,api:t,serializeQueryArgs:s,context:N});return L(t.util,{getRunningMutationThunk:ee,getRunningMutationsThunk:te,getRunningQueryThunk:re,getRunningQueriesThunk:ne}),{name:K,injectEndpoint(e,n){const r=t;r.endpoints[e]??={},y(n)?L(r.endpoints[e],{name:e,select:G(e,n),initiate:J(e,n)},U(R,e)):"mutation"===n.type&&L(r.endpoints[e],{name:e,select:Y(),initiate:X(e)},U(j,e))}}}});G()},97091:(e,t,n)=>{"use strict";n.d(t,{cN:()=>m,U1:()=>b,VP:()=>u,zD:()=>M,Z0:()=>q,gk:()=>W,f$:()=>E,i0:()=>_,$S:()=>A,sf:()=>T,mm:()=>C,TK:()=>O,WA:()=>N,Ak:()=>I,aA:()=>g});var r=n(96906);function o(e){return({dispatch:t,getState:n})=>r=>o=>"function"===typeof o?o(t,n,e):r(o)}var i=o(),a=o,s=n(90754),l="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?r.Zz:r.Zz.apply(null,arguments)},c=("undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"===typeof e.match);function u(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(W(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>(0,r.ve)(t)&&t.type===e,n}var d=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function f(e){return(0,s.a6)(e)?(0,s.jM)(e,(()=>{})):e}function p(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var h=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let s=new d;return t&&("boolean"===typeof t?s.push(i):s.push(a(t.extraArgument))),s},m="RTK_autoBatch",g=()=>e=>({payload:e,meta:{[m]:!0}}),v=e=>t=>{setTimeout(t,e)},y=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new d(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:v(10):"callback"===e.type?e.queueNotification:v(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>o&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.[m],i=!o,i&&(a||(a=!0,l(c))),r.dispatch(e)}finally{o=!0}}})})("object"===typeof n?n:void 0)),r};function b(e){const t=h(),{reducer:n,middleware:o,devTools:i=!0,preloadedState:a,enhancers:s}=e||{};let c,u;if("function"===typeof n)c=n;else{if(!(0,r.Qd)(n))throw new Error(W(1));c=(0,r.HY)(n)}u="function"===typeof o?o(t):t();let d=r.Zz;i&&(d=l({trace:!1,..."object"===typeof i&&i}));const f=(0,r.Tw)(...u),p=y(f);const m=d(..."function"===typeof s?s(p):p());return(0,r.y$)(c,a,m)}function w(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"===typeof e?e:e.type;if(!r)throw new Error(W(28));if(r in t)throw new Error(W(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var x=(e,t)=>c(e)?e.match(t):e(t);function _(...e){return t=>e.some((e=>x(e,t)))}function E(...e){return t=>e.every((e=>x(e,t)))}function S(e,t){if(!e||!e.meta)return!1;const n="string"===typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function k(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function C(...e){return 0===e.length?e=>S(e,["pending"]):k(e)?_(...e.map((e=>e.pending))):C()(e[0])}function O(...e){return 0===e.length?e=>S(e,["rejected"]):k(e)?_(...e.map((e=>e.rejected))):O()(e[0])}function N(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||k(e)?E(O(...e),t):N()(e[0])}function T(...e){return 0===e.length?e=>S(e,["fulfilled"]):k(e)?_(...e.map((e=>e.fulfilled))):T()(e[0])}function A(...e){return 0===e.length?e=>S(e,["pending","fulfilled","rejected"]):k(e)?_(...e.flatMap((e=>[e.pending,e.rejected,e.fulfilled]))):A()(e[0])}var I=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},P=["name","message","stack","code"],D=class{constructor(e,t){this.payload=e,this.meta=t}_type},R=class{constructor(e,t){this.payload=e,this.meta=t}_type},j=e=>{if("object"===typeof e&&null!==e){const t={};for(const n of P)"string"===typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},M=(()=>{function e(e,t,n){const r=u(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),o=u(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),i=u(e+"/rejected",((e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||j)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}})));return Object.assign((function(e){return(a,s,l)=>{const c=n?.idGenerator?n.idGenerator(e):I(),u=new AbortController;let d,f;function p(e){f=e,u.abort()}const h=async function(){let h;try{let i=n?.condition?.(e,{getState:s,extra:l});if(null!==(m=i)&&"object"===typeof m&&"function"===typeof m.then&&(i=await i),!1===i||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},u.signal.addEventListener("abort",d)}));a(o(c,e,n?.getPendingMeta?.({requestId:c,arg:e},{getState:s,extra:l}))),h=await Promise.race([g,Promise.resolve(t(e,{dispatch:a,getState:s,extra:l,requestId:c,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new D(e,t),fulfillWithValue:(e,t)=>new R(e,t)})).then((t=>{if(t instanceof D)throw t;return t instanceof R?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(g){h=g instanceof D?i(null,c,e,g.payload,g.meta):i(g,c,e)}finally{d&&u.signal.removeEventListener("abort",d)}var m;return n&&!n.dispatchConditionRejection&&i.match(h)&&h.meta.condition||a(h),h}();return Object.assign(h,{abort:p,requestId:c,arg:e,unwrap:()=>h.then(L)})}}),{pending:o,rejected:i,fulfilled:r,settled:_(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function L(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var z=Symbol.for("rtk-slice-createasyncthunk");function F(e,t){return`${e}/${t}`}function B({creators:e}={}){const t=e?.asyncThunk?.[z];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(W(11));const o=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(W(12));if(n in a.sliceCaseReducersByType)throw new Error(W(13));return a.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(a.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,l)};function c(){const[t={},n=[],r]="function"===typeof e.extraReducers?w(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,o,i]=w(t);if("function"===typeof e)n=()=>f(e());else{const t=f(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...o.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===a.filter((e=>!!e)).length&&(a=[i]),a.reduce(((e,n)=>{if(n){if((0,s.Qx)(e)){const r=n(e,t);return void 0===r?e:r}if((0,s.a6)(e))return(0,s.jM)(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e}),e)}return a.getInitialState=n,a}(e.initialState,(e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}i.forEach((r=>{const i=o[r],a={reducerName:r,type:F(n,r),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(W(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?u(e,a):u(e))}(a,i,l):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(W(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);c&&r.addMatcher(d.settled,c);r.exposeCaseReducer(t,{fulfilled:a||$,pending:s||$,rejected:l||$,settled:c||$})}(a,i,l,t)}));const d=e=>e,h=new Map;let m;function g(e,t){return m||(m=c()),m(e,t)}function v(){return m||(m=c()),m.getInitialState()}function y(t,n=!1){function r(e){let r=e[t];return"undefined"===typeof r&&n&&(r=v()),r}function o(t=d){const r=p(h,n,(()=>new WeakMap));return p(r,t,(()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=U(i,t,v,n);return r}))}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const b={name:n,reducer:g,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:v,...y(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:g},n),{...b,...y(o,!0)}}};return b}}function U(e,t,n,r){function o(o,...i){let a=t(o);return"undefined"===typeof a&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var q=B();function $(){}var{assign:H}=Object;Symbol.for("rtk-state-proxy-original");function W(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},90754:(e,t,n)=>{"use strict";n.d(t,{$i:()=>Q,Qx:()=>l,YT:()=>K,a6:()=>c,c2:()=>f,jM:()=>Y,vI:()=>Z});var r=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),i=Symbol.for("immer-state");function a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function l(e){return!!e&&!!e[i]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||y(e)||b(e))}var u=Object.prototype.constructor.toString();function d(e){if(!e||"object"!==typeof e)return!1;const t=s(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===u}function f(e){return l(e)||a(15),e[i].base_}function p(e,t){0===h(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function h(e){const t=e[i];return t?t.type_:Array.isArray(e)?1:y(e)?2:b(e)?3:0}function m(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function g(e,t){return 2===h(e)?e.get(t):e[t]}function v(e,t,n){const r=h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function y(e){return e instanceof Map}function b(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function x(e,t){if(y(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=d(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[i];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(s(e),t)}{const t=s(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function _(e,t=!1){return S(e)||l(e)||!c(e)||(h(e)>1&&(e.set=e.add=e.clear=e.delete=E),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>_(t,!0)))),e}function E(){a(2)}function S(e){return Object.isFrozen(e)}var k,C={};function O(e){const t=C[e];return t||a(0),t}function N(e,t){C[e]||(C[e]=t)}function T(){return k}function A(e,t){t&&(O("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function I(e){P(e),e.drafts_.forEach(R),e.drafts_=null}function P(e){e===k&&(k=e.parent_)}function D(e){return k={drafts_:[],parent_:k,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function R(e){const t=e[i];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function j(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[i].modified_&&(I(t),a(4)),c(e)&&(e=M(t,e),t.parent_||z(t,e)),t.patches_&&O("Patches").generateReplacementPatches_(n[i].base_,e,t.patches_,t.inversePatches_)):e=M(t,n,[]),I(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function M(e,t,n){if(S(t))return t;const r=t[i];if(!r)return p(t,((o,i)=>L(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return z(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),p(o,((o,a)=>L(e,r,t,o,a,n,i))),z(e,t,!1),n&&e.patches_&&O("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function L(e,t,n,r,o,i,a){if(l(o)){const a=M(e,o,i&&t&&3!==t.type_&&!m(t.assigned_,r)?i.concat(r):void 0);if(v(n,r,a),!l(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(c(o)&&!S(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;M(e,o),t&&t.scope_.parent_||"symbol"===typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||z(e,o)}}function z(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_(t,n)}var F={get(e,t){if(t===i)return e;const n=w(e);if(!m(n,t))return function(e,t,n){const r=q(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!c(r)?r:r===U(e.base_,t)?(H(e),e.copy_[t]=W(r,e)):r},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,n){const r=q(w(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=U(w(e),t),s=r?.[i];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(a=r)?0!==o||1/o===1/a:o!==o&&a!==a)&&(void 0!==n||m(e.base_,t)))return!0;H(e),$(e)}var o,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==U(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,H(e),$(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=w(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){a(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){a(12)}},B={};function U(e,t){const n=e[i];return(n?w(n):e)[t]}function q(e,t){if(!(t in e))return;let n=s(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=s(n)}}function $(e){e.modified_||(e.modified_=!0,e.parent_&&$(e.parent_))}function H(e){e.copy_||(e.copy_=x(e.base_,e.scope_.immer_.useStrictShallowCopy_))}p(F,((e,t)=>{B[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),B.deleteProperty=function(e,t){return B.set.call(this,e,t,void 0)},B.set=function(e,t,n){return F.set.call(this,e[0],t,n,e[0])};function W(e,t){const n=y(e)?O("MapSet").proxyMap_(e,t):b(e)?O("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:T(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=F;n&&(o=[r],i=B);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:T()).drafts_.push(n),n}function V(e){if(!c(e)||S(e))return e;const t=e[i];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=x(e,t.scope_.immer_.useStrictShallowCopy_)}else n=x(e,!0);return p(n,((e,t)=>{v(n,e,V(t))})),t&&(t.finalized_=!1),n}function K(){const e="replace",t="add",n="remove";function i(e){if(!c(e))return e;if(Array.isArray(e))return e.map(i);if(y(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,i(t)])));if(b(e))return new Set(Array.from(e).map(i));const t=Object.create(s(e));for(const n in e)t[n]=i(e[n]);return m(e,o)&&(t[o]=e[o]),t}function u(e){return l(e)?i(e):e}N("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:s,op:l}=o;let c=r;for(let e=0;e<s.length-1;e++){const t=h(c);let n=s[e];"string"!==typeof n&&"number"!==typeof n&&(n=""+n),0!==t&&1!==t||"__proto__"!==n&&"constructor"!==n||a(19),"function"===typeof c&&"prototype"===n&&a(19),c=g(c,n),"object"!==typeof c&&a(18,s.join("/"))}const u=h(c),d=i(o.value),f=s[s.length-1];switch(l){case e:switch(u){case 2:return c.set(f,d);case 3:a(16);default:return c[f]=d}case t:switch(u){case 1:return"-"===f?c.push(d):c.splice(f,0,d);case 2:return c.set(f,d);case 3:return c.add(d);default:return c[f]=d}case n:switch(u){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(o.value);default:return delete c[f]}default:a(17)}})),r},generatePatches_:function(r,o,i,a){switch(r.type_){case 0:case 2:return function(r,o,i,a){const{base_:s,copy_:l}=r;p(r.assigned_,((r,c)=>{const d=g(s,r),f=g(l,r),p=c?m(s,r)?e:t:n;if(d===f&&p===e)return;const h=o.concat(r);i.push(p===n?{op:p,path:h}:{op:p,path:h,value:f}),a.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:u(d)}:{op:e,path:h,value:u(d)})}))}(r,o,i,a);case 1:return function(r,o,i,a){let{base_:s,assigned_:l}=r,c=r.copy_;c.length<s.length&&([s,c]=[c,s],[i,a]=[a,i]);for(let t=0;t<s.length;t++)if(l[t]&&c[t]!==s[t]){const n=o.concat([t]);i.push({op:e,path:n,value:u(c[t])}),a.push({op:e,path:n,value:u(s[t])})}for(let e=s.length;e<c.length;e++){const n=o.concat([e]);i.push({op:t,path:n,value:u(c[e])})}for(let e=c.length-1;s.length<=e;--e){const t=o.concat([e]);a.push({op:n,path:t})}}(r,o,i,a);case 3:return function(e,r,o,i){let{base_:a,copy_:s}=e,l=0;a.forEach((e=>{if(!s.has(e)){const a=r.concat([l]);o.push({op:n,path:a,value:e}),i.unshift({op:t,path:a,value:e})}l++})),l=0,s.forEach((e=>{if(!a.has(e)){const a=r.concat([l]);o.push({op:t,path:a,value:e}),i.unshift({op:n,path:a,value:e})}l++}))}(r,o,i,a)}},generateReplacementPatches_:function(t,n,o,i){o.push({op:e,path:[],value:n===r?void 0:n}),i.push({op:e,path:[],value:t})}})}var G=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let o;if("function"!==typeof t&&a(6),void 0!==n&&"function"!==typeof n&&a(7),c(e)){const r=D(this),i=W(e,void 0);let a=!0;try{o=t(i),a=!1}finally{a?I(r):P(r)}return A(r,n),j(o,r)}if(!e||"object"!==typeof e){if(o=t(e),void 0===o&&(o=e),o===r&&(o=void 0),this.autoFreeze_&&_(o,!0),n){const t=[],r=[];O("Patches").generateReplacementPatches_(e,o,t,r),n(t,r)}return o}a(1)},this.produceWithPatches=(e,t)=>{if("function"===typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"===typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){c(e)||a(8),l(e)&&(e=function(e){l(e)||a(10);return V(e)}(e));const t=D(this),n=W(e,void 0);return n[i].isManual_=!0,P(t),n}finishDraft(e,t){const n=e&&e[i];n&&n.isManual_||a(9);const{scope_:r}=n;return A(r,t),j(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=O("Patches").applyPatches_;return l(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},Y=G.produce,Z=G.produceWithPatches.bind(G),Q=(G.setAutoFreeze.bind(G),G.setUseStrictShallowCopy.bind(G),G.applyPatches.bind(G));G.createDraft.bind(G),G.finishDraft.bind(G)},97434:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>te,Ng:()=>ee,Pj:()=>ie,bN:()=>R,d4:()=>ue,vA:()=>de,wA:()=>se});var r=n(59284),o=n(88730),i=r.version.startsWith("19"),a=Symbol.for(i?"react.transitional.element":"react.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=p,b=g;function w(e){if("object"===typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case a:switch(e=e.type){case l:case u:case c:case h:case m:return e;default:switch(e=e&&e.$$typeof){case f:case p:case v:case g:case d:return e;default:return t}}case s:return t}}}function x(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,l,c,u,d,f=!1;function p(f,p){const h=!i(p,l),m=!o(f,s,p,l);return s=f,l=p,h&&m?(c=e(s,l),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):h?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):m?function(){const t=e(s,l),r=!a(t,c);return c=t,r&&(d=n(c,u,l)),d}():d}return function(o,i){return f?p(o,i):(s=o,l=i,c=e(s,l),u=t(r,l),d=n(c,u,l),f=!0,d)}}function _(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function E(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function S(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=E(e);let o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=E(o),o=r(t,n)),o},r}}function k(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function C(e,t,n){return{...n,...e,...t}}function O(e){e()}var N={notify(){},get:()=>[]};function T(e,t){let n,r=N,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){O((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function l(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=N)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return c}var A=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),I=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),P=(()=>A||I?r.useLayoutEffect:r.useEffect)();function D(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function R(e,t){if(D(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!D(e[n[o]],t[n[o]]))return!1;return!0}var j={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},M={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},L={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z={[y]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[b]:L};function F(e){return w(e)===g?L:z[e.$$typeof]||j}var B=Object.defineProperty,U=Object.getOwnPropertyNames,q=Object.getOwnPropertySymbols,$=Object.getOwnPropertyDescriptor,H=Object.getPrototypeOf,W=Object.prototype;function V(e,t){if("string"!==typeof t){if(W){const n=H(t);n&&n!==W&&V(e,n)}let r=U(t);q&&(r=r.concat(q(t)));const o=F(e),i=F(t);for(let a=0;a<r.length;++a){const s=r[a];if(!M[s]&&(!i||!i[s])&&(!o||!o[s])){const r=$(t,s);try{B(e,s,r)}catch(n){}}}}return e}var K=Symbol.for("react-redux-context"),G="undefined"!==typeof globalThis?globalThis:{};function Y(){if(!r.createContext)return{};const e=G[K]??=new Map;let t=e.get(r.createContext);return t||(t=r.createContext(null),e.set(r.createContext,t)),t}var Z=Y(),Q=[null,null];function J(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function X(e,t){return e===t}var ee=function(e,t,n,{pure:o,areStatesEqual:i=X,areOwnPropsEqual:a=R,areStatePropsEqual:s=R,areMergedPropsEqual:l=R,forwardRef:c=!1,context:u=Z}={}){const d=u,f=function(e){return e?"function"===typeof e?S(e):k(e,"mapStateToProps"):_((()=>({})))}(e),p=function(e){return e&&"object"===typeof e?_((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"===typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"===typeof e?S(e):k(e,"mapDispatchToProps"):_((e=>({dispatch:e})))}(t),h=function(e){return e?"function"===typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):k(e,"mergeProps"):()=>C}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,o={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function u(t){const[n,i,a]=r.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),s=r.useMemo((()=>d),[n,d]),l=r.useContext(s),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const f=c?t.store:l.store,p=u?l.getServerState:f.getState,h=r.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return x(t(e,o),n(e,o),r(e,o),e,o)}(f.dispatch,o)),[f]),[g,v]=r.useMemo((()=>{if(!m)return Q;const e=T(f,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,c,l]),y=r.useMemo((()=>c?l:{...l,subscription:g}),[c,l,g]),b=r.useRef(void 0),w=r.useRef(a),_=r.useRef(void 0),E=r.useRef(!1),S=r.useRef(!1),k=r.useRef(void 0);P((()=>(S.current=!0,()=>{S.current=!1})),[]);const C=r.useMemo((()=>()=>_.current&&a===w.current?_.current:h(f.getState(),a)),[f,a]),O=r.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,s,l,c,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(h){p=h,f=h}p||(f=null),n===i.current?a.current||c():(i.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(m,f,g,h,w,b,E,S,_,v,e):()=>{}),[g]);var N,A,I;let D;N=J,A=[w,b,E,a,_,v],P((()=>N(...A)),I);try{D=r.useSyncExternalStore(O,C,p?()=>h(p(),a):C)}catch(j){throw k.current&&(j.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),j}P((()=>{k.current=void 0,_.current=void 0,b.current=D}));const R=r.useMemo((()=>r.createElement(e,{...D,ref:i})),[i,e,D]);return r.useMemo((()=>m?r.createElement(s.Provider,{value:y},R):R),[s,R,y])}const g=r.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){const t=r.forwardRef((function(e,t){return r.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,V(t,e)}return V(g,e)}};var te=function(e){const{children:t,context:n,serverState:o,store:i}=e,a=r.useMemo((()=>{const e=T(i);return{store:i,subscription:e,getServerState:o?()=>o:void 0}}),[i,o]),s=r.useMemo((()=>i.getState()),[i]);P((()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,s]);const l=n||Z;return r.createElement(l.Provider,{value:a},t)};function ne(e=Z){return function(){return r.useContext(e)}}var re=ne();function oe(e=Z){const t=e===Z?re:ne(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var ie=oe();function ae(e=Z){const t=e===Z?ie:oe(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var se=ae(),le=(e,t)=>e===t;function ce(e=Z){const t=e===Z?re:ne(e),n=(e,n={})=>{const{equalityFn:i=le}="function"===typeof n?{equalityFn:n}:n;const a=t(),{store:s,subscription:l,getServerState:c}=a,u=(r.useRef(!0),r.useCallback({[e.name]:t=>e(t)}[e.name],[e])),d=(0,o.useSyncExternalStoreWithSelector)(l.addNestedSub,s.getState,c||s.getState,u,i);return r.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var ue=ce(),de=O},96906:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>c,Qd:()=>s,Tw:()=>p,Zz:()=>f,ve:()=>h,y$:()=>l,zH:()=>d});var o=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function s(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,n){if("function"!==typeof e)throw new Error(r(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(r(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(r(1));return n(l)(e,t)}let i=e,c=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function m(){if(p)throw new Error(r(3));return c}function g(e){if("function"!==typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),u=null}}}function v(e){if(!s(e))throw new Error(r(7));if("undefined"===typeof e.type)throw new Error(r(8));if("string"!==typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,c=i(c,e)}finally{p=!1}return(u=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:m,replaceReducer:function(e){if("function"!==typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function c(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"===typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:a.INIT}))throw new Error(r(12));if("undefined"===typeof n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(s){i=s}return function(e={},t){if(i)throw i;let a=!1;const s={};for(let i=0;i<o.length;i++){const l=o[i],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(r(14))}s[l]=d,a=a||d!==u}return a=a||o.length!==Object.keys(e).length,a?s:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"===typeof e)return u(e,t);if("object"!==typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"===typeof o&&(n[r]=u(o,t))}return n}function f(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function p(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const s={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map((e=>e(s)));return a=f(...l)(i.dispatch),{...i,dispatch:a}}}function h(e){return s(e)&&"type"in e&&"string"===typeof e.type}},53850:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>g,X4:()=>h,i5:()=>c});var r=Symbol("NOT_FOUND");function o(e,t="expected a function, instead received "+typeof e){if("function"!==typeof e)throw new TypeError(t)}var i=e=>Array.isArray(e)?e:[e];function a(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"===typeof e))){const n=e.map((e=>"function"===typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var s=(e,t)=>e===t;function l(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;const{length:r}=t;for(let o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}function c(e,t){const n="object"===typeof t?t:{equalityCheck:t},{equalityCheck:o=s,maxSize:i=1,resultEqualityCheck:a}=n,c=l(o);let u=0;const d=i<=1?function(e){let t;return{get:n=>t&&e(t.key,n)?t.value:r,put(e,n){t={key:e,value:n}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(c):function(e,t){let n=[];function o(e){const o=n.findIndex((n=>t(e,n.key)));if(o>-1){const e=n[o];return o>0&&(n.splice(o,1),n.unshift(e)),e.value}return r}return{get:o,put:function(t,i){o(t)===r&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(i,c);function f(){let t=d.get(arguments);if(t===r){if(t=e.apply(null,arguments),u++,a){const e=d.getEntries().find((e=>a(e.value,t)));e&&(t=e.value,0!==u&&u--)}d.put(arguments,t)}return t}return f.clearCache=()=>{d.clear(),f.resetResultsCount()},f.resultsCount=()=>u,f.resetResultsCount=()=>{u=0},f}var u="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},d=0,f=1;function p(){return{s:d,v:void 0,o:null,p:null}}function h(e,t={}){let n=p();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"===typeof n||"object"===typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}}const s=t;let l;if(t.s===f)l=t.v;else if(l=e.apply(null,arguments),i++,r){const e=o?.deref?.()??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--);o="object"===typeof l&&null!==l||"function"===typeof l?new u(l):l}return s.s=f,s.v=l,l}return a.clearCache=()=>{n=p(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function m(e,...t){const n="function"===typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,s=0,l={},c=e.pop();"object"===typeof c&&(l=c,c=e.pop()),o(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:p=h,argsMemoizeOptions:m=[],devModeChecks:g={}}=u,v=i(f),y=i(m),b=a(e),w=d((function(){return r++,c.apply(null,arguments)}),...v);const x=p((function(){s++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(b,arguments);return t=w.apply(null,e),t}),...y);return Object.assign(x,{resultFunc:c,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:d,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var g=m(h),v=Object.assign(((e,t=g)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!==typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>v})},68643:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=!0,o="Invariant failed";function i(e,t){if(!e){if(r)throw new Error(o);var n="function"===typeof t?t():t,i=n?"".concat(o,": ").concat(n):o;throw new Error(i)}}},27145:(e,t,n)=>{"use strict";n.d(t,{Tt:()=>r});function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError},370:(e,t,n)=>{"use strict";var r,o;n.d(t,{z:()=>kt}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!==typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"===typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"===typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"===typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"===typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"===typeof t?t.toString():t}(r||(r={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(o||(o={}));const i=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":return Array.isArray(e)?i.array:null===e?i.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?i.promise:"undefined"!==typeof Map&&e instanceof Map?i.map:"undefined"!==typeof Set&&e instanceof Set?i.set:"undefined"!==typeof Date&&e instanceof Date?i.date:i.object;default:return i.unknown}},s=r.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class l extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{let e=n,r=0;for(;r<o.path.length;){const n=o.path[r];r===o.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(o))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof l))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);const c=(e,t)=>{let n;switch(e.code){case s.invalid_type:n=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:n=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case s.invalid_union:n="Invalid input";break;case s.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case s.invalid_enum_value:n=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case s.invalid_arguments:n="Invalid function arguments";break;case s.invalid_return_type:n="Invalid function return type";break;case s.invalid_date:n="Invalid date";break;case s.invalid_string:"object"===typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"===typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:r.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case s.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case s.custom:n="Invalid input";break;case s.invalid_intersection_types:n="Intersection results could not be merged";break;case s.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case s.not_finite:n="Number must be finite";break;default:n=t.defaultError,r.assertNever(e)}return{message:n}};let u=c;function d(){return u}const f=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],a={...o,path:i};if(void 0!==o.message)return{...o,path:i,message:o.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...o,path:i,message:s}};function p(e,t){const n=d(),r=f({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===c?void 0:c].filter((e=>!!e))});e.common.issues.push(r)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return m;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const e=await r.key,t=await r.value;n.push({key:e,value:t})}return h.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:o}=r;if("aborted"===t.status)return m;if("aborted"===o.status)return m;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof o.value&&!r.alwaysSet||(n[t.value]=o.value)}return{status:e.value,value:n}}}const m=Object.freeze({status:"aborted"}),g=e=>({status:"dirty",value:e}),v=e=>({status:"valid",value:e}),y=e=>"aborted"===e.status,b=e=>"dirty"===e.status,w=e=>"valid"===e.status,x=e=>"undefined"!==typeof Promise&&e instanceof Promise;function _(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function E(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}var S,k,C;"function"===typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"===typeof e?{message:e}:e||{},e.toString=e=>"string"===typeof e?e:null===e||void 0===e?void 0:e.message}(S||(S={}));class O{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const N=(e,t)=>{if(w(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new l(e.common.issues);return this._error=t,this._error}}};function T(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:o};return{errorMap:(t,o)=>{var i,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!==s&&void 0!==s?s:o.defaultError}:"undefined"===typeof o.data?{message:null!==(i=null!==s&&void 0!==s?s:r)&&void 0!==i?i:o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:null!==(a=null!==s&&void 0!==s?s:n)&&void 0!==a?a:o.defaultError}},description:o}}class A{get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(x(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null===t||void 0===t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null===t||void 0===t?void 0:t.errorMap},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},o=this._parseSync({data:e,path:r.path,parent:r});return N(r,o)}"~validate"(e){var t,n;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)};if(!this["~standard"].async)try{const t=this._parseSync({data:e,path:[],parent:r});return w(t)?{value:t.value}:{issues:r.common.issues}}catch(o){(null===(n=null===(t=null===o||void 0===o?void 0:o.message)||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then((e=>w(e)?{value:e.value}:{issues:r.common.issues}))}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null===t||void 0===t?void 0:t.errorMap,async:!0},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},r=this._parse({data:e,path:n.path,parent:n}),o=await(x(r)?r:Promise.resolve(r));return N(n,o)}refine(e,t){const n=e=>"string"===typeof t||"undefined"===typeof t?{message:t}:"function"===typeof t?t(e):t;return this._refinement(((t,r)=>{const o=e(t),i=()=>r.addIssue({code:s.custom,...n(t)});return"undefined"!==typeof Promise&&o instanceof Promise?o.then((e=>!!e||(i(),!1))):!!o||(i(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"===typeof t?t(n,r):t),!1)))}_refinement(e){return new Ae({schema:this,typeName:qe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Ie.create(this,this._def)}nullable(){return Pe.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return de.create(this)}promise(){return Te.create(this,this._def)}or(e){return he.create([this,e],this._def)}and(e){return ye.create(this,e,this._def)}transform(e){return new Ae({...T(this._def),schema:this,typeName:qe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new De({...T(this._def),innerType:this,defaultValue:t,typeName:qe.ZodDefault})}brand(){return new Le({typeName:qe.ZodBranded,type:this,...T(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new Re({...T(this._def),innerType:this,catchValue:t,typeName:qe.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return ze.create(this,e)}readonly(){return Fe.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const I=/^c[^\s-]{8,}$/i,P=/^[0-9a-z]+$/,D=/^[0-9A-HJKMNP-TV-Z]{26}$/i,R=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,j=/^[a-z0-9_-]{21}$/i,M=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,L=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,z=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let F;const B=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,U=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,q=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,$=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,H=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,W=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,V="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",K=new RegExp(`^${V}$`);function G(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function Y(e){let t=`${V}T${G(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Z(e,t){if(!M.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(r));return"object"===typeof o&&null!==o&&(!(!o.typ||!o.alg)&&(!t||o.alg===t))}catch(n){return!1}}function Q(e,t){return!("v4"!==t&&t||!U.test(e))||!("v6"!==t&&t||!$.test(e))}class J extends A{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==i.string){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.string,received:t.parsedType}),m}const t=new h;let n;for(const i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("max"===i.kind)e.data.length>i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("length"===i.kind){const r=e.data.length>i.value,o=e.data.length<i.value;(r||o)&&(n=this._getOrReturnCtx(e,n),r?p(n,{code:s.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&p(n,{code:s.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),t.dirty())}else if("email"===i.kind)z.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"email",code:s.invalid_string,message:i.message}),t.dirty());else if("emoji"===i.kind)F||(F=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),F.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"emoji",code:s.invalid_string,message:i.message}),t.dirty());else if("uuid"===i.kind)R.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"uuid",code:s.invalid_string,message:i.message}),t.dirty());else if("nanoid"===i.kind)j.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"nanoid",code:s.invalid_string,message:i.message}),t.dirty());else if("cuid"===i.kind)I.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid",code:s.invalid_string,message:i.message}),t.dirty());else if("cuid2"===i.kind)P.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid2",code:s.invalid_string,message:i.message}),t.dirty());else if("ulid"===i.kind)D.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"ulid",code:s.invalid_string,message:i.message}),t.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(l){n=this._getOrReturnCtx(e,n),p(n,{validation:"url",code:s.invalid_string,message:i.message}),t.dirty()}else if("regex"===i.kind){i.regex.lastIndex=0;i.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"regex",code:s.invalid_string,message:i.message}),t.dirty())}else if("trim"===i.kind)e.data=e.data.trim();else if("includes"===i.kind)e.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),t.dirty());else if("toLowerCase"===i.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===i.kind)e.data=e.data.toUpperCase();else if("startsWith"===i.kind)e.data.startsWith(i.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{startsWith:i.value},message:i.message}),t.dirty());else if("endsWith"===i.kind)e.data.endsWith(i.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{endsWith:i.value},message:i.message}),t.dirty());else if("datetime"===i.kind){Y(i).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"datetime",message:i.message}),t.dirty())}else if("date"===i.kind){K.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"date",message:i.message}),t.dirty())}else if("time"===i.kind){new RegExp(`^${G(i)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"time",message:i.message}),t.dirty())}else"duration"===i.kind?L.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"duration",code:s.invalid_string,message:i.message}),t.dirty()):"ip"===i.kind?(o=e.data,("v4"!==(a=i.version)&&a||!B.test(o))&&("v6"!==a&&a||!q.test(o))&&(n=this._getOrReturnCtx(e,n),p(n,{validation:"ip",code:s.invalid_string,message:i.message}),t.dirty())):"jwt"===i.kind?Z(e.data,i.alg)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"jwt",code:s.invalid_string,message:i.message}),t.dirty()):"cidr"===i.kind?Q(e.data,i.version)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cidr",code:s.invalid_string,message:i.message}),t.dirty()):"base64"===i.kind?H.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64",code:s.invalid_string,message:i.message}),t.dirty()):"base64url"===i.kind?W.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64url",code:s.invalid_string,message:i.message}),t.dirty()):r.assertNever(i);var o,a;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:s.invalid_string,...S.errToObj(n)})}_addCheck(e){return new J({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...S.errToObj(e)})}url(e){return this._addCheck({kind:"url",...S.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...S.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...S.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...S.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...S.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...S.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...S.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...S.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...S.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...S.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...S.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...S.errToObj(e)})}datetime(e){var t,n;return"string"===typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,offset:null!==(t=null===e||void 0===e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null===e||void 0===e?void 0:e.local)&&void 0!==n&&n,...S.errToObj(null===e||void 0===e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"===typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,...S.errToObj(null===e||void 0===e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...S.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...S.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null===t||void 0===t?void 0:t.position,...S.errToObj(null===t||void 0===t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...S.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...S.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...S.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...S.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...S.errToObj(t)})}nonempty(e){return this.min(1,S.errToObj(e))}trim(){return new J({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isCIDR(){return!!this._def.checks.find((e=>"cidr"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get isBase64url(){return!!this._def.checks.find((e=>"base64url"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function X(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)}J.create=e=>{var t;return new J({checks:[],typeName:qe.ZodString,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class ee extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==i.number){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.number,received:t.parsedType}),m}let t;const n=new h;for(const o of this._def.checks)if("int"===o.kind)r.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty());else if("min"===o.kind){(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty())}else if("max"===o.kind){(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty())}else"multipleOf"===o.kind?0!==X(e.data,o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_finite,message:o.message}),n.dirty()):r.assertNever(o);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new ee({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:S.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:S.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:S.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:S.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&r.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ee.create=e=>new ee({checks:[],typeName:qe.ZodNumber,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...T(e)});class te extends A{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch(o){return this._getInvalidInput(e)}if(this._getType(e)!==i.bigint)return this._getInvalidInput(e);let t;const n=new h;for(const i of this._def.checks)if("min"===i.kind){(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty())}else if("max"===i.kind){(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty())}else"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):r.assertNever(i);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new te({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new te({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}te.create=e=>{var t;return new te({checks:[],typeName:qe.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class ne extends A{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==i.boolean){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.boolean,received:t.parsedType}),m}return v(e.data)}}ne.create=e=>new ne({typeName:qe.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...T(e)});class re extends A{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==i.date){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.date,received:t.parsedType}),m}if(isNaN(e.data.getTime())){return p(this._getOrReturnCtx(e),{code:s.invalid_date}),m}const t=new h;let n;for(const o of this._def.checks)"min"===o.kind?e.data.getTime()<o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),t.dirty()):"max"===o.kind?e.data.getTime()>o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),t.dirty()):r.assertNever(o);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new re({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:S.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:S.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}re.create=e=>new re({checks:[],coerce:(null===e||void 0===e?void 0:e.coerce)||!1,typeName:qe.ZodDate,...T(e)});class oe extends A{_parse(e){if(this._getType(e)!==i.symbol){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.symbol,received:t.parsedType}),m}return v(e.data)}}oe.create=e=>new oe({typeName:qe.ZodSymbol,...T(e)});class ie extends A{_parse(e){if(this._getType(e)!==i.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.undefined,received:t.parsedType}),m}return v(e.data)}}ie.create=e=>new ie({typeName:qe.ZodUndefined,...T(e)});class ae extends A{_parse(e){if(this._getType(e)!==i.null){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.null,received:t.parsedType}),m}return v(e.data)}}ae.create=e=>new ae({typeName:qe.ZodNull,...T(e)});class se extends A{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}se.create=e=>new se({typeName:qe.ZodAny,...T(e)});class le extends A{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}le.create=e=>new le({typeName:qe.ZodUnknown,...T(e)});class ce extends A{_parse(e){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.never,received:t.parsedType}),m}}ce.create=e=>new ce({typeName:qe.ZodNever,...T(e)});class ue extends A{_parse(e){if(this._getType(e)!==i.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.void,received:t.parsedType}),m}return v(e.data)}}ue.create=e=>new ue({typeName:qe.ZodVoid,...T(e)});class de extends A{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==i.array)return p(t,{code:s.invalid_type,expected:i.array,received:t.parsedType}),m;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,o=t.data.length<r.exactLength.value;(e||o)&&(p(t,{code:e?s.too_big:s.too_small,minimum:o?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(p(t,{code:s.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(p(t,{code:s.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new O(t,e,t.path,n))))).then((e=>h.mergeArray(n,e)));const o=[...t.data].map(((e,n)=>r.type._parseSync(new O(t,e,t.path,n))));return h.mergeArray(n,o)}get element(){return this._def.type}min(e,t){return new de({...this._def,minLength:{value:e,message:S.toString(t)}})}max(e,t){return new de({...this._def,maxLength:{value:e,message:S.toString(t)}})}length(e,t){return new de({...this._def,exactLength:{value:e,message:S.toString(t)}})}nonempty(e){return this.min(1,e)}}function fe(e){if(e instanceof pe){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ie.create(fe(r))}return new pe({...e._def,shape:()=>t})}return e instanceof de?new de({...e._def,type:fe(e.element)}):e instanceof Ie?Ie.create(fe(e.unwrap())):e instanceof Pe?Pe.create(fe(e.unwrap())):e instanceof be?be.create(e.items.map((e=>fe(e)))):e}de.create=(e,t)=>new de({type:e,minLength:null,maxLength:null,exactLength:null,typeName:qe.ZodArray,...T(t)});class pe extends A{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),m}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof ce&&"strip"===this._def.unknownKeys))for(const i in n.data)o.includes(i)||a.push(i);const l=[];for(const i of o){const e=r[i],t=n.data[i];l.push({key:{status:"valid",value:i},value:e._parse(new O(n,t,n.path,i)),alwaysSet:i in n.data})}if(this._def.catchall instanceof ce){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of a)l.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)a.length>0&&(p(n,{code:s.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new O(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of l){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>h.mergeObjectSync(t,e))):h.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return S.errToObj,new pe({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,o,i,a;const s=null!==(i=null===(o=(r=this._def).errorMap)||void 0===o?void 0:o.call(r,t,n).message)&&void 0!==i?i:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=S.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new pe({...this._def,unknownKeys:"strip"})}passthrough(){return new pe({...this._def,unknownKeys:"passthrough"})}extend(e){return new pe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new pe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:qe.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new pe({...this._def,catchall:e})}pick(e){const t={};return r.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new pe({...this._def,shape:()=>t})}omit(e){const t={};return r.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new pe({...this._def,shape:()=>t})}deepPartial(){return fe(this)}partial(e){const t={};return r.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new pe({...this._def,shape:()=>t})}required(e){const t={};return r.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Ie;)e=e._def.innerType;t[n]=e}})),new pe({...this._def,shape:()=>t})}keyof(){return Ce(r.objectKeys(this.shape))}}pe.create=(e,t)=>new pe({shape:()=>e,unknownKeys:"strip",catchall:ce.create(),typeName:qe.ZodObject,...T(t)}),pe.strictCreate=(e,t)=>new pe({shape:()=>e,unknownKeys:"strict",catchall:ce.create(),typeName:qe.ZodObject,...T(t)}),pe.lazycreate=(e,t)=>new pe({shape:e,unknownKeys:"strip",catchall:ce.create(),typeName:qe.ZodObject,...T(t)});class he extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new l(e.ctx.common.issues)));return p(t,{code:s.invalid_union,unionErrors:n}),m}));{let e;const r=[];for(const i of n){const n={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=r.map((e=>new l(e)));return p(t,{code:s.invalid_union,unionErrors:o}),m}}get options(){return this._def.options}}he.create=(e,t)=>new he({options:e,typeName:qe.ZodUnion,...T(t)});const me=e=>e instanceof Se?me(e.schema):e instanceof Ae?me(e.innerType()):e instanceof ke?[e.value]:e instanceof Oe?e.options:e instanceof Ne?r.objectValues(e.enum):e instanceof De?me(e._def.innerType):e instanceof ie?[void 0]:e instanceof ae?[null]:e instanceof Ie?[void 0,...me(e.unwrap())]:e instanceof Pe?[null,...me(e.unwrap())]:e instanceof Le||e instanceof Fe?me(e.unwrap()):e instanceof Re?me(e._def.innerType):[];class ge extends A{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return p(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),m;const n=this.discriminator,r=t.data[n],o=this.optionsMap.get(r);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const o of t){const t=me(o.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,o)}}return new ge({typeName:qe.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...T(n)})}}function ve(e,t){const n=a(e),o=a(t);if(e===t)return{valid:!0,data:e};if(n===i.object&&o===i.object){const n=r.objectKeys(t),o=r.objectKeys(e).filter((e=>-1!==n.indexOf(e))),i={...e,...t};for(const r of o){const n=ve(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(n===i.array&&o===i.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const o=ve(e[r],t[r]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}return n===i.date&&o===i.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class ye extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(y(e)||y(r))return m;const o=ve(e.value,r.value);return o.valid?((b(e)||b(r))&&t.dirty(),{status:t.value,value:o.data}):(p(n,{code:s.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ye.create=(e,t,n)=>new ye({left:e,right:t,typeName:qe.ZodIntersection,...T(n)});class be extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.array)return p(n,{code:s.invalid_type,expected:i.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return p(n,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&n.data.length>this._def.items.length&&(p(n,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new O(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>h.mergeArray(t,e))):h.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new be({...this._def,rest:e})}}be.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new be({items:e,typeName:qe.ZodTuple,rest:null,...T(t)})};class we extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.object)return p(n,{code:s.invalid_type,expected:i.object,received:n.parsedType}),m;const r=[],o=this._def.keyType,a=this._def.valueType;for(const i in n.data)r.push({key:o._parse(new O(n,i,n.path,i)),value:a._parse(new O(n,n.data[i],n.path,i)),alwaysSet:i in n.data});return n.common.async?h.mergeObjectAsync(t,r):h.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new we(t instanceof A?{keyType:e,valueType:t,typeName:qe.ZodRecord,...T(n)}:{keyType:J.create(),valueType:e,typeName:qe.ZodRecord,...T(t)})}}class xe extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.map)return p(n,{code:s.invalid_type,expected:i.map,received:n.parsedType}),m;const r=this._def.keyType,o=this._def.valueType,a=[...n.data.entries()].map((([e,t],i)=>({key:r._parse(new O(n,e,n.path,[i,"key"])),value:o._parse(new O(n,t,n.path,[i,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const r=await n.key,o=await n.value;if("aborted"===r.status||"aborted"===o.status)return m;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const r=n.key,o=n.value;if("aborted"===r.status||"aborted"===o.status)return m;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}}}xe.create=(e,t,n)=>new xe({valueType:t,keyType:e,typeName:qe.ZodMap,...T(n)});class _e extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.set)return p(n,{code:s.invalid_type,expected:i.set,received:n.parsedType}),m;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(p(n,{code:s.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(p(n,{code:s.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const o=this._def.valueType;function a(e){const n=new Set;for(const r of e){if("aborted"===r.status)return m;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const l=[...n.data.values()].map(((e,t)=>o._parse(new O(n,e,n.path,t))));return n.common.async?Promise.all(l).then((e=>a(e))):a(l)}min(e,t){return new _e({...this._def,minSize:{value:e,message:S.toString(t)}})}max(e,t){return new _e({...this._def,maxSize:{value:e,message:S.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}_e.create=(e,t)=>new _e({valueType:e,minSize:null,maxSize:null,typeName:qe.ZodSet,...T(t)});class Ee extends A{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return p(t,{code:s.invalid_type,expected:i.function,received:t.parsedType}),m;function n(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_arguments,argumentsError:n}})}function r(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_return_type,returnTypeError:n}})}const o={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Te){const e=this;return v((async function(...t){const i=new l([]),s=await e._def.args.parseAsync(t,o).catch((e=>{throw i.addIssue(n(t,e)),i})),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,o).catch((e=>{throw i.addIssue(r(c,e)),i}))}))}{const e=this;return v((function(...t){const i=e._def.args.safeParse(t,o);if(!i.success)throw new l([n(t,i.error)]);const s=Reflect.apply(a,this,i.data),c=e._def.returns.safeParse(s,o);if(!c.success)throw new l([r(s,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ee({...this._def,args:be.create(e).rest(le.create())})}returns(e){return new Ee({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Ee({args:e||be.create([]).rest(le.create()),returns:t||le.create(),typeName:qe.ZodFunction,...T(n)})}}class Se extends A{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Se.create=(e,t)=>new Se({getter:e,typeName:qe.ZodLazy,...T(t)});class ke extends A{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:s.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Ce(e,t){return new Oe({values:e,typeName:qe.ZodEnum,...T(t)})}ke.create=(e,t)=>new ke({value:e,typeName:qe.ZodLiteral,...T(t)});class Oe extends A{constructor(){super(...arguments),k.set(this,void 0)}_parse(e){if("string"!==typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{expected:r.joinValues(n),received:t.parsedType,code:s.invalid_type}),m}if(_(this,k,"f")||E(this,k,new Set(this._def.values),"f"),!_(this,k,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{received:t.data,code:s.invalid_enum_value,options:n}),m}return v(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Oe.create(e,{...this._def,...t})}exclude(e,t=this._def){return Oe.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}k=new WeakMap,Oe.create=Ce;class Ne extends A{constructor(){super(...arguments),C.set(this,void 0)}_parse(e){const t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==i.string&&n.parsedType!==i.number){const e=r.objectValues(t);return p(n,{expected:r.joinValues(e),received:n.parsedType,code:s.invalid_type}),m}if(_(this,C,"f")||E(this,C,new Set(r.getValidEnumValues(this._def.values)),"f"),!_(this,C,"f").has(e.data)){const e=r.objectValues(t);return p(n,{received:n.data,code:s.invalid_enum_value,options:e}),m}return v(e.data)}get enum(){return this._def.values}}C=new WeakMap,Ne.create=(e,t)=>new Ne({values:e,typeName:qe.ZodNativeEnum,...T(t)});class Te extends A{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.promise&&!1===t.common.async)return p(t,{code:s.invalid_type,expected:i.promise,received:t.parsedType}),m;const n=t.parsedType===i.promise?t.data:Promise.resolve(t.data);return v(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Te.create=(e,t)=>new Te({type:e,typeName:qe.ZodPromise,...T(t)});class Ae extends A{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),o=this._def.effect||null,i={addIssue:e=>{p(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===o.type){const e=o.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return m;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}));{if("aborted"===t.value)return m;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}}if("refinement"===o.type){const e=e=>{const t=o.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?m:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?m:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===o.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!w(e))return e;const r=o.transform(e.value,i);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>w(e)?Promise.resolve(o.transform(e.value,i)).then((e=>({status:t.value,value:e}))):e))}r.assertNever(o)}}Ae.create=(e,t,n)=>new Ae({schema:e,typeName:qe.ZodEffects,effect:t,...T(n)}),Ae.createWithPreprocess=(e,t,n)=>new Ae({schema:t,effect:{type:"preprocess",transform:e},typeName:qe.ZodEffects,...T(n)});class Ie extends A{_parse(e){return this._getType(e)===i.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ie.create=(e,t)=>new Ie({innerType:e,typeName:qe.ZodOptional,...T(t)});class Pe extends A{_parse(e){return this._getType(e)===i.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Pe.create=(e,t)=>new Pe({innerType:e,typeName:qe.ZodNullable,...T(t)});class De extends A{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===i.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:qe.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...T(t)});class Re extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return x(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Re.create=(e,t)=>new Re({innerType:e,typeName:qe.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...T(t)});class je extends A{_parse(e){if(this._getType(e)!==i.nan){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.nan,received:t.parsedType}),m}return{status:"valid",value:e.data}}}je.create=e=>new je({typeName:qe.ZodNaN,...T(e)});const Me=Symbol("zod_brand");class Le extends A{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class ze extends A{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),g(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new ze({in:e,out:t,typeName:qe.ZodPipeline})}}class Fe extends A{_parse(e){const t=this._def.innerType._parse(e),n=e=>(w(e)&&(e.value=Object.freeze(e.value)),e);return x(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function Be(e,t={},n){return e?se.create().superRefine(((r,o)=>{var i,a;if(!e(r)){const e="function"===typeof t?t(r):"string"===typeof t?{message:t}:t,s=null===(a=null!==(i=e.fatal)&&void 0!==i?i:n)||void 0===a||a,l="string"===typeof e?{message:e}:e;o.addIssue({code:"custom",...l,fatal:s})}})):se.create()}Fe.create=(e,t)=>new Fe({innerType:e,typeName:qe.ZodReadonly,...T(t)});const Ue={object:pe.lazycreate};var qe;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(qe||(qe={}));const $e=J.create,He=ee.create,We=je.create,Ve=te.create,Ke=ne.create,Ge=re.create,Ye=oe.create,Ze=ie.create,Qe=ae.create,Je=se.create,Xe=le.create,et=ce.create,tt=ue.create,nt=de.create,rt=pe.create,ot=pe.strictCreate,it=he.create,at=ge.create,st=ye.create,lt=be.create,ct=we.create,ut=xe.create,dt=_e.create,ft=Ee.create,pt=Se.create,ht=ke.create,mt=Oe.create,gt=Ne.create,vt=Te.create,yt=Ae.create,bt=Ie.create,wt=Pe.create,xt=Ae.createWithPreprocess,_t=ze.create,Et={string:e=>J.create({...e,coerce:!0}),number:e=>ee.create({...e,coerce:!0}),boolean:e=>ne.create({...e,coerce:!0}),bigint:e=>te.create({...e,coerce:!0}),date:e=>re.create({...e,coerce:!0})},St=m;var kt=Object.freeze({__proto__:null,defaultErrorMap:c,setErrorMap:function(e){u=e},getErrorMap:d,makeIssue:f,EMPTY_PATH:[],addIssueToContext:p,ParseStatus:h,INVALID:m,DIRTY:g,OK:v,isAborted:y,isDirty:b,isValid:w,isAsync:x,get util(){return r},get objectUtil(){return o},ZodParsedType:i,getParsedType:a,ZodType:A,datetimeRegex:Y,ZodString:J,ZodNumber:ee,ZodBigInt:te,ZodBoolean:ne,ZodDate:re,ZodSymbol:oe,ZodUndefined:ie,ZodNull:ae,ZodAny:se,ZodUnknown:le,ZodNever:ce,ZodVoid:ue,ZodArray:de,ZodObject:pe,ZodUnion:he,ZodDiscriminatedUnion:ge,ZodIntersection:ye,ZodTuple:be,ZodRecord:we,ZodMap:xe,ZodSet:_e,ZodFunction:Ee,ZodLazy:Se,ZodLiteral:ke,ZodEnum:Oe,ZodNativeEnum:Ne,ZodPromise:Te,ZodEffects:Ae,ZodTransformer:Ae,ZodOptional:Ie,ZodNullable:Pe,ZodDefault:De,ZodCatch:Re,ZodNaN:je,BRAND:Me,ZodBranded:Le,ZodPipeline:ze,ZodReadonly:Fe,custom:Be,Schema:A,ZodSchema:A,late:Ue,get ZodFirstPartyTypeKind(){return qe},coerce:Et,any:Je,array:nt,bigint:Ve,boolean:Ke,date:Ge,discriminatedUnion:at,effect:yt,enum:mt,function:ft,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Be((t=>t instanceof e),t),intersection:st,lazy:pt,literal:ht,map:ut,nan:We,nativeEnum:gt,never:et,null:Qe,nullable:wt,number:He,object:rt,oboolean:()=>Ke().optional(),onumber:()=>He().optional(),optional:bt,ostring:()=>$e().optional(),pipeline:_t,preprocess:xt,promise:vt,record:ct,set:dt,strictObject:ot,string:$e,symbol:Ye,transformer:yt,tuple:lt,undefined:Ze,union:it,unknown:Xe,void:tt,NEVER:St,ZodIssueCode:s,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:l})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{30:"69969059",47:"54dd12ac",60:"85d957cd",99:"dd803d0d",108:"d2d9c180",110:"2c798565",118:"112f7e2f",132:"cf00f1e7",221:"b740df48",225:"cf362439",246:"13bb9db2",290:"b4f1e118",310:"b23bf6b2",371:"adb771f2",513:"46a664ad",523:"17013d4e",535:"ee345954",628:"70d08de9",654:"863ea445",684:"7c31509b",710:"87e9f2e0",730:"a22f6f5f",734:"3fe325e9",811:"a0c1e1ce",856:"78147a4f",902:"a1b90b1b",921:"0402e36c",949:"12b4714d",957:"08a1c505",1053:"f976b474",1088:"40c16ea2",1094:"b5bb2475",1187:"c5435886",1237:"328d0241",1278:"d5c24e15",1299:"aaedb42e",1321:"401aa9b8",1329:"de2ec2cf",1414:"4cfda0bc",1486:"8a488ae4",1496:"18b1eb19",1606:"0041ed7d",1627:"80c94ebf",1657:"d6f0b340",1696:"6120f4a8",1747:"f01c9fd8",1756:"b612458a",1836:"1c94b54f",1865:"72c933c8",1917:"e3ac9c6d",1956:"c11f9b8a",1975:"e3066826",2016:"397296b7",2042:"81e83eeb",2053:"b4294b46",2161:"865bcd48",2162:"cca3e026",2166:"e382ccb1",2182:"1e53f745",2286:"e992ffd4",2308:"9e3a980c",2350:"a7af0a2e",2372:"880a31f6",2466:"b8b05e16",2512:"732a0e0c",2518:"ac97d255",2568:"5bec7af3",2612:"55127fa0",2626:"a5b0d58c",2726:"e753cb7c",2742:"d5c8fae8",2775:"9105769d",2776:"0f5e87f5",2854:"48cc58dc",2984:"df749ebe",2994:"6c6016a8",3008:"c8aa656b",3033:"06c03554",3048:"692b5966",3121:"74e9e7dc",3158:"3f2d4e5f",3238:"a9505f7f",3321:"3370cf83",3333:"eb9ec516",3338:"83fe4e63",3410:"6391755f",3478:"480dafa6",3510:"0740f36d",3521:"775b3981",3534:"3f09429a",3638:"ee3efb24",3648:"3a72999a",3653:"06b5272c",3672:"12436dd6",3679:"e293221d",3702:"778880f9",3756:"9a440b73",3761:"dd957fd1",3769:"860e8d58",3779:"9f31a4d0",3812:"325f3251",3822:"00ab6aaa",3872:"a25d87b5",3879:"17f211ad",3902:"973b73c6",3940:"f5079e40",3952:"ce1b4fad",3977:"4c33ec16",4024:"021c61dd",4096:"33f702a0",4130:"e9433987",4169:"f2243012",4180:"1de6c8ba",4324:"c69948f7",4349:"9c8d20fd",4401:"f46d19f6",4441:"2b4963cf",4534:"b98f1389",4542:"18433910",4582:"5bf174ff",4601:"39745c4e",4652:"9a5d2242",4662:"1c10232d",4678:"4e2f4af4",4730:"78e66e9a",4818:"6beda30c",4847:"63c73f0a",4870:"1916a88d",4872:"2eea7e0a",4891:"c441be74",5027:"9e6325ef",5047:"ebc9f1b2",5050:"ffa3921f",5161:"20e37d15",5252:"991dcab8",5382:"3a2e6ac6",5401:"dfb63825",5418:"00d0c5d1",5438:"179dc201",5453:"921caa82",5454:"e8f64f1a",5475:"20ce4f75",5542:"7c13d444",5579:"a2c9515c",5634:"0a0bddae",5636:"da9c4c85",5647:"0920ef73",5685:"c0a21a10",5759:"52418ea5",5816:"144b5755",5819:"0ae2eb3d",5853:"0c5ec1d1",5866:"14d27c8c",5875:"f8a190bf",5888:"4fa64369",5924:"53ba4f49",5950:"28656717",5953:"cb95c45e",5988:"38ef363d",6012:"aac08e72",6030:"95d317e6",6047:"328b41a5",6114:"c74edf11",6210:"69d6a30a",6214:"a9a481a7",6261:"78de43a8",6262:"44dba84f",6324:"de01edfb",6342:"a2819c87",6358:"2997762b",6374:"be0c5879",6397:"b8cf6fae",6405:"b0dd94a9",6447:"2c0d9bda",6541:"a39e9d6a",6548:"72446369",6554:"6dfab136",6625:"a8d44d36",6658:"b22172da",6664:"b4dbf019",6786:"28af14f6",6820:"73ff230e",6833:"584b7806",6879:"2965a366",6881:"7e6434c9",6990:"70257b9b",7118:"ce0cd05f",7148:"ef54cd41",7206:"6b7278f5",7240:"a674bc94",7329:"514640a4",7341:"6e678529",7348:"eac33db2",7357:"a518ad9e",7380:"38a8eedf",7420:"d0c66c34",7548:"fd5d2b6c",7574:"8ac9803d",7579:"079e5569",7605:"cdc8f605",7614:"00d00ded",7638:"5489d672",7642:"39707d60",7692:"af7181c9",7697:"44af783d",7718:"f897f8ca",7748:"3ec14243",7750:"1fea5741",7878:"1f9512c4",7946:"3b4cf6fd",7962:"43ffbad7",7970:"80caf61d",8008:"da36f479",8014:"eb9f97f2",8053:"71be175a",8081:"5fafc7dc",8103:"00c9e9c1",8119:"196e82ef",8234:"7512920e",8256:"a2ce240a",8452:"551c16c8",8517:"cf981031",8534:"f7aec532",8633:"da605a09",8704:"87492da1",8706:"755fcb81",8821:"96eeccd6",8840:"5eb376ca",8868:"a9031705",8890:"9f3d8f08",8979:"0c0acc31",8986:"de287636",9010:"4bfaf5fa",9025:"6ae28867",9067:"254af4a9",9174:"ae7682da",9176:"3f08336f",9220:"a9f48eb9",9222:"a1913f85",9243:"cb95c73b",9300:"277e4f3f",9312:"5eb8d4b1",9394:"ca56f408",9433:"4cf14d1c",9466:"0afe6e6e",9507:"14872b99",9518:"3fffdd45",9523:"ac019963",9582:"c09a3623",9606:"fc9247cb",9697:"bed5988b",9707:"72e68790",9725:"a94823a0",9728:"7cc957e4",9748:"e711e962",9778:"52ad76ce",9796:"8870e3ef",9801:"b9143d43",9842:"b8ba19ad",9872:"65a6fae7",9882:"b983931a",9908:"4bd3acb1",9922:"367b63b0"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{99:"7cffb936",371:"01f04f12",535:"c6fb8cd9",684:"90fbb646",2512:"19e3e12f",3779:"66c0ef83",3812:"440ff245",3940:"0971684f",5438:"615bd68a",6030:"fd13e90a",6548:"ca5780af",7750:"8e5e0423",8593:"397b88bd",9796:"828f7385"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="ydb-embedded-ui:";n.l=(r,o,i,a)=>{if(e[r])e[r].push(o);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[o];var f=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="./",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var o=n.miniCssF(e),i=n.p+o;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var a;if((o=(a=i[r]).getAttribute("data-href"))===e||o===t)return a}})(o,i))return t();((e,t,r,o,i)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)o();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=s,a.parentNode&&a.parentNode.removeChild(a),i(l)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,i,null,t,r)})),t={8792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{99:1,371:1,535:1,684:1,2512:1,3779:1,3812:1,3940:1,5438:1,6030:1,6548:1,7750:1,8593:1,9796:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={8792:0};n.f.j=(t,r)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else if(8593!=t){var i=new Promise(((n,r)=>o=e[t]=[n,r]));r.push(o[2]=i);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,o[1](s)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,r)=>{var o,i,[a,s,l]=r,c=0;if(a.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)l(n)}for(t&&t(r);c<a.length;c++)i=a[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=globalThis.webpackChunkydb_embedded_ui=globalThis.webpackChunkydb_embedded_ui||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(5906),t=n(11310),r=n(42566),o=n(54878);const{store:i,history:a}=(0,o.U1)();var s=n(60712);!async function(){let r;r=await Promise.resolve().then(n.bind(n,11310)).then((({SingleClusterApp:e})=>e));const o=document.getElementById("root");if(!o)throw new Error("Can't find root element");e.createRoot(o).render((0,s.jsx)(t.ErrorBoundary,{children:(0,s.jsx)(r,{store:i,history:a})}))}(),(0,r.A)()})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/monitoring/static/js/main.3b2c9faf.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/main.73969f38.js.LICENSE.txt index f63f93dcd2f..ab1d0ae2701 100644 --- a/ydb/core/viewer/monitoring/static/js/main.3b2c9faf.js.LICENSE.txt +++ b/ydb/core/viewer/monitoring/static/js/main.73969f38.js.LICENSE.txt @@ -1,11 +1,5 @@ -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/ - /*! -* focus-trap 7.5.4 +* focus-trap 7.6.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE */ @@ -71,9 +65,9 @@ object-assign /** * @license React - * use-sync-external-store-with-selector.production.min.js + * use-sync-external-store-with-selector.production.js * - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/ydb/core/viewer/monitoring/static/media/codicon.762fced46d6cddbda272.ttf b/ydb/core/viewer/monitoring/static/media/codicon.f6283f7ccaed1249d9eb.ttf Binary files differindex 57eda48f1db..27ee4c68cae 100644 --- a/ydb/core/viewer/monitoring/static/media/codicon.762fced46d6cddbda272.ttf +++ b/ydb/core/viewer/monitoring/static/media/codicon.f6283f7ccaed1249d9eb.ttf diff --git a/ydb/core/viewer/monitoring/ts.worker.js b/ydb/core/viewer/monitoring/ts.worker.js index 1644bd35717..27b29f255af 100644 --- a/ydb/core/viewer/monitoring/ts.worker.js +++ b/ydb/core/viewer/monitoring/ts.worker.js @@ -1,7 +1,7 @@ /*! For license information please see ts.worker.js.LICENSE.txt */ -(()=>{"use strict";var e={};e.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}();const n=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(s.isErrorNoTelemetry(e))throw new s(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((n=>{n(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function t(e){a(e)||n.onUnexpectedError(e)}function r(e){if(e instanceof Error){const{name:n,message:t}=e;return{$isError:!0,name:n,message:t,stack:e.stacktrace||e.stack,noTelemetry:s.isErrorNoTelemetry(e)}}return e}const i="Canceled";function a(e){return e instanceof o||e instanceof Error&&e.name===i&&e.message===i}class o extends Error{constructor(){super(i),this.name=this.message}}Error;class s extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof s)return e;const n=new s;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class c extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,c.prototype)}}function l(e,n){const t=this;let r,i=!1;return function(){if(i)return r;if(i=!0,n)try{r=e.apply(t,arguments)}finally{n()}else r=e.apply(t,arguments);return r}}var d;!function(e){function n(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=n;const t=Object.freeze([]);function*r(e){yield e}e.empty=function(){return t},e.single=r,e.wrap=function(e){return n(e)?e:r(e)},e.from=function(e){return e||t},e.reverse=function*(e){for(let n=e.length-1;n>=0;n--)yield e[n]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,n){for(const t of e)if(n(t))return!0;return!1},e.find=function(e,n){for(const t of e)if(n(t))return t},e.filter=function*(e,n){for(const t of e)n(t)&&(yield t)},e.map=function*(e,n){let t=0;for(const r of e)yield n(r,t++)},e.concat=function*(...e){for(const n of e)yield*n},e.reduce=function(e,n,t){let r=t;for(const i of e)r=n(r,i);return r},e.slice=function*(e,n,t=e.length){for(n<0&&(n+=e.length),t<0?t+=e.length:t>e.length&&(t=e.length);n<t;n++)yield e[n]},e.consume=function(n,t=Number.POSITIVE_INFINITY){const r=[];if(0===t)return[r,n];const i=n[Symbol.iterator]();for(let a=0;a<t;a++){const n=i.next();if(n.done)return[r,e.empty()];r.push(n.value)}return[r,{[Symbol.iterator]:()=>i}]},e.asyncToArray=async function(e){const n=[];for await(const t of e)n.push(t);return Promise.resolve(n)}}(d||(d={}));let u=null;function _(e){return null===u||void 0===u||u.trackDisposable(e),e}function p(e){null===u||void 0===u||u.markAsDisposed(e)}function f(e,n){null===u||void 0===u||u.setParent(e,n)}function m(e){if(d.is(e)){const t=[];for(const r of e)if(r)try{r.dispose()}catch(n){t.push(n)}if(1===t.length)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function h(...e){const n=g((()=>m(e)));return function(e,n){if(u)for(const t of e)u.setParent(t,n)}(e,n),n}function g(e){const n=_({dispose:l((()=>{p(n),e()}))});return n}class y{constructor(){this._toDispose=new Set,this._isDisposed=!1,_(this)}dispose(){this._isDisposed||(p(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{m(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return f(e,this),this._isDisposed?y.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),f(e,null))}}y.DISABLE_DISPOSED_WARNING=!1;class v{constructor(){this._store=new y,_(this),f(this._store,this)}dispose(){p(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}v.None=Object.freeze({dispose(){}});Symbol.iterator;class b{constructor(e){this.element=e,this.next=b.Undefined,this.prev=b.Undefined}}b.Undefined=new b(void 0);class E{constructor(){this._first=b.Undefined,this._last=b.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===b.Undefined}clear(){let e=this._first;for(;e!==b.Undefined;){const n=e.next;e.prev=b.Undefined,e.next=b.Undefined,e=n}this._first=b.Undefined,this._last=b.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const t=new b(e);if(this._first===b.Undefined)this._first=t,this._last=t;else if(n){const e=this._last;this._last=t,t.prev=e,e.next=t}else{const e=this._first;this._first=t,t.next=e,e.prev=t}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(t))}}shift(){if(this._first!==b.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==b.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==b.Undefined&&e.next!==b.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===b.Undefined&&e.next===b.Undefined?(this._first=b.Undefined,this._last=b.Undefined):e.next===b.Undefined?(this._last=this._last.prev,this._last.next=b.Undefined):e.prev===b.Undefined&&(this._first=this._first.next,this._first.prev=b.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==b.Undefined;)yield e.element,e=e.next}}const T=globalThis.performance&&"function"===typeof globalThis.performance.now;class x{static create(e){return new x(e)}constructor(e){this._now=T&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}var S;!function(e){function n(e){false}function t(e){return(n,t=null,r)=>{let i,a=!1;return i=e((e=>{if(!a)return i?i.dispose():a=!0,n.call(t,e)}),null,r),a&&i.dispose(),i}}function r(e,n,t){return a(((t,r=null,i)=>e((e=>t.call(r,n(e))),null,i)),t)}function i(e,n,t){return a(((t,r=null,i)=>e((e=>n(e)&&t.call(r,e)),null,i)),t)}function a(e,t){let r;const i={onWillAddFirstListener(){r=e(a.fire,a)},onDidRemoveLastListener(){null===r||void 0===r||r.dispose()}};t||n();const a=new w(i);return null===t||void 0===t||t.add(a),a.event}function o(e,t,r=100,i=!1,a=!1,o,s){let c,l,d,u,_=0;const p={leakWarningThreshold:o,onWillAddFirstListener(){c=e((e=>{_++,l=t(l,e),i&&!d&&(f.fire(l),l=void 0),u=()=>{const e=l;l=void 0,d=void 0,(!i||_>1)&&f.fire(e),_=0},"number"===typeof r?(clearTimeout(d),d=setTimeout(u,r)):void 0===d&&(d=0,queueMicrotask(u))}))},onWillRemoveListener(){a&&_>0&&(null===u||void 0===u||u())},onDidRemoveLastListener(){u=void 0,c.dispose()}};s||n();const f=new w(p);return null===s||void 0===s||s.add(f),f.event}e.None=()=>v.None,e.defer=function(e,n){return o(e,(()=>{}),0,void 0,!0,void 0,n)},e.once=t,e.map=r,e.forEach=function(e,n,t){return a(((t,r=null,i)=>e((e=>{n(e),t.call(r,e)}),null,i)),t)},e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(n,t=null,r)=>function(e,n){n instanceof Array?n.push(e):n&&n.add(e);return e}(h(...e.map((e=>e((e=>n.call(t,e)))))),r)},e.reduce=function(e,n,t,i){let a=t;return r(e,(e=>(a=n(a,e),a)),i)},e.debounce=o,e.accumulate=function(n,t=0,r){return e.debounce(n,((e,n)=>e?(e.push(n),e):[n]),t,void 0,!0,void 0,r)},e.latch=function(e,n=(e,n)=>e===n,t){let r,a=!0;return i(e,(e=>{const t=a||!n(e,r);return a=!1,r=e,t}),t)},e.split=function(n,t,r){return[e.filter(n,t,r),e.filter(n,(e=>!t(e)),r)]},e.buffer=function(e,n=!1,t=[],r){let i=t.slice(),a=e((e=>{i?i.push(e):s.fire(e)}));r&&r.add(a);const o=()=>{null===i||void 0===i||i.forEach((e=>s.fire(e))),i=null},s=new w({onWillAddFirstListener(){a||(a=e((e=>s.fire(e))),r&&r.add(a))},onDidAddFirstListener(){i&&(n?setTimeout(o):o())},onDidRemoveLastListener(){a&&a.dispose(),a=null}});return r&&r.add(s),s.event},e.chain=function(e,n){return(t,r,i)=>{const a=n(new c);return e((function(e){const n=a.evaluate(e);n!==s&&t.call(r,n)}),void 0,i)}};const s=Symbol("HaltChainable");class c{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((n=>(e(n),n))),this}filter(e){return this.steps.push((n=>e(n)?n:s)),this}reduce(e,n){let t=n;return this.steps.push((n=>(t=e(t,n),t))),this}latch(e=(e,n)=>e===n){let n,t=!0;return this.steps.push((r=>{const i=t||!e(r,n);return t=!1,n=r,i?r:s})),this}evaluate(e){for(const n of this.steps)if((e=n(e))===s)break;return e}}e.fromNodeEventEmitter=function(e,n,t=e=>e){const r=(...e)=>i.fire(t(...e)),i=new w({onWillAddFirstListener:()=>e.on(n,r),onDidRemoveLastListener:()=>e.removeListener(n,r)});return i.event},e.fromDOMEventEmitter=function(e,n,t=e=>e){const r=(...e)=>i.fire(t(...e)),i=new w({onWillAddFirstListener:()=>e.addEventListener(n,r),onDidRemoveLastListener:()=>e.removeEventListener(n,r)});return i.event},e.toPromise=function(e){return new Promise((n=>t(e)(n)))},e.fromPromise=function(e){const n=new w;return e.then((e=>{n.fire(e)}),(()=>{n.fire(void 0)})).finally((()=>{n.dispose()})),n.event},e.runAndSubscribe=function(e,n,t){return n(t),e((e=>n(e)))};class l{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;const r={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};t||n(),this.emitter=new w(r),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,n){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,n){return new l(e,n).emitter.event},e.fromObservableLight=function(e){return(n,t,r)=>{let i=0,a=!1;const o={beginUpdate(){i++},endUpdate(){i--,0===i&&(e.reportChanges(),a&&(a=!1,n.call(t)))},handlePossibleChange(){},handleChange(){a=!0}};e.addObserver(o),e.reportChanges();const s={dispose(){e.removeObserver(o)}};return r instanceof y?r.add(s):Array.isArray(r)&&r.push(s),s}}}(S||(S={}));class A{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${A._idPool++}`,A.all.add(this)}start(e){this._stopWatch=new x,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}A.all=new Set,A._idPool=0;class L{constructor(e,n=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=n,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,n){const t=this.threshold;if(t<=0||n<t)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){let e;this._warnCountdown=.5*t;let r=0;for(const[n,t]of this._stacks)(!e||r<t)&&(e=n,r=t);console.warn(`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${r}):`),console.warn(e)}return()=>{const n=this._stacks.get(e.value)||0;this._stacks.set(e.value,n-1)}}}class C{static create(){var e;return new C(null!==(e=(new Error).stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class k{constructor(e){this.value=e}}const I=void 0;class w{constructor(e){var n,t,r,i,a;this._size=0,this._options=e,this._leakageMon=(null===(n=this._options)||void 0===n?void 0:n.leakWarningThreshold)?new L(null!==(r=null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)&&void 0!==r?r:-1):void 0,this._perfMon=(null===(i=this._options)||void 0===i?void 0:i._profName)?new A(this._options._profName):void 0,this._deliveryQueue=null===(a=this._options)||void 0===a?void 0:a.deliveryQueue}dispose(){var e,n,t,r;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(t=null===(n=this._options)||void 0===n?void 0:n.onDidRemoveLastListener)||void 0===t||t.call(n),null===(r=this._leakageMon)||void 0===r||r.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,n,t)=>{var r,i,a,o,s;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),v.None;if(this._disposed)return v.None;n&&(e=e.bind(n));const c=new k(e);let l;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(c.stack=C.create(),l=this._leakageMon.check(c.stack,this._size+1)),this._listeners?this._listeners instanceof k?(null!==(s=this._deliveryQueue)&&void 0!==s||(this._deliveryQueue=new R),this._listeners=[this._listeners,c]):this._listeners.push(c):(null===(i=null===(r=this._options)||void 0===r?void 0:r.onWillAddFirstListener)||void 0===i||i.call(r,this),this._listeners=c,null===(o=null===(a=this._options)||void 0===a?void 0:a.onDidAddFirstListener)||void 0===o||o.call(a,this)),this._size++;const d=g((()=>{null===I||void 0===I||I.unregister(d),null===l||void 0===l||l(),this._removeListener(c)}));if(t instanceof y?t.add(d):Array.isArray(t)&&t.push(d),I){const e=(new Error).stack.split("\n").slice(2).join("\n").trim();I.register(d,e,d)}return d}),this._event}_removeListener(e){var n,t,r,i;if(null===(t=null===(n=this._options)||void 0===n?void 0:n.onWillRemoveListener)||void 0===t||t.call(n,this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,null===(i=null===(r=this._options)||void 0===r?void 0:r.onDidRemoveLastListener)||void 0===i||i.call(r,this),void(this._size=0);const a=this._listeners,o=a.indexOf(e);if(-1===o)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,a[o]=void 0;const s=this._deliveryQueue.current===this;if(2*this._size<=a.length){let e=0;for(let n=0;n<a.length;n++)a[n]?a[e++]=a[n]:s&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);a.length=e}}_deliver(e,n){var r;if(!e)return;const i=(null===(r=this._options)||void 0===r?void 0:r.onListenerError)||t;if(i)try{e.value(n)}catch(a){i(a)}else e.value(n)}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){var n,t,r,i;if((null===(n=this._deliveryQueue)||void 0===n?void 0:n.current)&&(this._deliverQueue(this._deliveryQueue),null===(t=this._perfMon)||void 0===t||t.stop()),null===(r=this._perfMon)||void 0===r||r.start(this._size),this._listeners)if(this._listeners instanceof k)this._deliver(this._listeners,e);else{const n=this._deliveryQueue;n.enqueue(this,e,this._listeners.length),this._deliverQueue(n)}else;null===(i=this._perfMon)||void 0===i||i.stop()}hasListeners(){return this._size>0}}class R{constructor(){this.i=-1,this.end=0}enqueue(e,n,t){this.i=0,this.end=t,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}Object.prototype.hasOwnProperty;function N(e){const n=[];for(const t of function(e){let n=[];for(;Object.prototype!==e;)n=n.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return n}(e))"function"===typeof e[t]&&n.push(t);return n}let D="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function O(e,n){let t;return t=0===n.length?e:e.replace(/\{(\d+)\}/g,((e,t)=>{const r=t[0],i=n[r];let a=e;return"string"===typeof i?a=i:"number"!==typeof i&&"boolean"!==typeof i&&void 0!==i&&null!==i||(a=String(i)),a})),D&&(t="\uff3b"+t.replace(/[aouei]/g,"$&$&")+"\uff3d"),t}function M(e,n,...t){return O(n,t)}var P,F;const G="en";let B,U,V=!1,j=!1,H=!1,K=!1,W=!1,z=!1,q=!1,J=!1,X=!1,Y=!1,$=null,Q=null,Z=null;const ee=globalThis;let ne;"undefined"!==typeof ee.vscode&&"undefined"!==typeof ee.vscode.process?ne=ee.vscode.process:"undefined"!==typeof process&&"string"===typeof(null===(P=null===process||void 0===process?void 0:process.versions)||void 0===P?void 0:P.node)&&(ne=process);const te="string"===typeof(null===(F=null===ne||void 0===ne?void 0:ne.versions)||void 0===F?void 0:F.electron),re=te&&"renderer"===(null===ne||void 0===ne?void 0:ne.type);if("object"===typeof ne){V="win32"===ne.platform,j="darwin"===ne.platform,H="linux"===ne.platform,K=H&&!!ne.env.SNAP&&!!ne.env.SNAP_REVISION,q=te,X=!!ne.env.CI||!!ne.env.BUILD_ARTIFACTSTAGINGDIRECTORY,B=G,$=G;const e=ne.env.VSCODE_NLS_CONFIG;if(e)try{const n=JSON.parse(e),t=n.availableLanguages["*"];B=n.locale,Q=n.osLocale,$=t||G,Z=n._translationsConfigFile}catch(Sa){}W=!0}else if("object"!==typeof navigator||re)console.error("Unable to resolve platform.");else{U=navigator.userAgent,V=U.indexOf("Windows")>=0,j=U.indexOf("Macintosh")>=0,J=(U.indexOf("Macintosh")>=0||U.indexOf("iPad")>=0||U.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,H=U.indexOf("Linux")>=0,Y=(null===U||void 0===U?void 0:U.indexOf("Mobi"))>=0,z=!0;B=void M(0,"_")||G,$=B,Q=navigator.language}let ie=0;j?ie=1:V?ie=3:H&&(ie=2);const ae=V,oe=j,se=(z&&"function"===typeof ee.importScripts&&ee.origin,U),ce="function"===typeof ee.postMessage&&!ee.importScripts;(()=>{if(ce){const e=[];ee.addEventListener("message",(n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let t=0,r=e.length;t<r;t++){const r=e[t];if(r.id===n.data.vscodeScheduleAsyncWork)return e.splice(t,1),void r.callback()}}));let n=0;return t=>{const r=++n;e.push({id:r,callback:t}),ee.postMessage({vscodeScheduleAsyncWork:r},"*")}}})();const le=!!(se&&se.indexOf("Chrome")>=0);se&&se.indexOf("Firefox"),!le&&se&&se.indexOf("Safari"),se&&se.indexOf("Edg/"),se&&se.indexOf("Android");class de{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var ue;function _e(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function pe(e){return e>=65&&e<=90}function fe(e){return 55296<=e&&e<=56319}function me(e){return 56320<=e&&e<=57343}function he(e,n){return n-56320+(e-55296<<10)+65536}function ge(e,n,t){const r=e.charCodeAt(t);if(fe(r)&&t+1<n){const n=e.charCodeAt(t+1);if(me(n))return he(r,n)}return r}const ye=/^[\t\n\r\x20-\x7E]*$/;String.fromCharCode(65279);class ve{static getInstance(){return ve._INSTANCE||(ve._INSTANCE=new ve),ve._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const n=this._data,t=n.length/3;let r=1;for(;r<=t;)if(e<n[3*r])r*=2;else{if(!(e>n[3*r+1]))return n[3*r+2];r=2*r+1}return 0}}ve._INSTANCE=null;class be{static getInstance(e){return ue.cache.get(Array.from(e))}static getLocales(){return ue._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}ue=be,be.ambiguousCharacterData=new de((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),be.cache=new class{constructor(e,n=JSON.stringify){this.fn=e,this._computeKey=n,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(e)),this.lastCache}}((e=>{function n(e){const n=new Map;for(let t=0;t<e.length;t+=2)n.set(e[t],e[t+1]);return n}function t(e,n){if(!e)return n;const t=new Map;for(const[r,i]of e)n.has(r)&&t.set(r,i);return t}const r=ue.ambiguousCharacterData.value;let i,a=e.filter((e=>!e.startsWith("_")&&e in r));0===a.length&&(a=["_default"]);for(const s of a){i=t(i,n(r[s]))}const o=function(e,n){const t=new Map(e);for(const[r,i]of n)t.set(r,i);return t}(n(r._common),i);return new ue(o)})),be._locales=new de((()=>Object.keys(ue.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class Ee{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(Ee.getRawData())),this._data}static isInvisibleCharacter(e){return Ee.getData().has(e)}static get codePoints(){return Ee.getData()}}Ee._data=void 0;const Te="$initialize";let xe;class Se{constructor(e,n,t,r){this.vsWorker=e,this.req=n,this.method=t,this.args=r,this.type=0}}class Ae{constructor(e,n,t,r){this.vsWorker=e,this.seq=n,this.res=t,this.err=r,this.type=1}}class Le{constructor(e,n,t,r){this.vsWorker=e,this.req=n,this.eventName=t,this.arg=r,this.type=2}}class Ce{constructor(e,n,t){this.vsWorker=e,this.req=n,this.event=t,this.type=3}}class ke{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class Ie{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,n){const t=String(++this._lastSentReq);return new Promise(((r,i)=>{this._pendingReplies[t]={resolve:r,reject:i},this._send(new Se(this._workerId,t,e,n))}))}listen(e,n){let t=null;const r=new w({onWillAddFirstListener:()=>{t=String(++this._lastSentReq),this._pendingEmitters.set(t,r),this._send(new Le(this._workerId,t,e,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(t),this._send(new ke(this._workerId,t)),t=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let t=e.err;return e.err.$isError&&(t=new Error,t.name=e.err.name,t.message=e.err.message,t.stack=e.err.stack),void n.reject(t)}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new Ae(this._workerId,n,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=r(e.detail)),this._send(new Ae(this._workerId,n,void 0,r(e)))}))}_handleSubscribeEventMessage(e){const n=e.req,t=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new Ce(this._workerId,n,e))}));this._pendingEvents.set(n,t)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const n=[];if(0===e.type)for(let t=0;t<e.args.length;t++)e.args[t]instanceof ArrayBuffer&&n.push(e.args[t]);else 1===e.type&&e.res instanceof ArrayBuffer&&n.push(e.res);this._handler.sendMessage(e,n)}}function we(e){return"o"===e[0]&&"n"===e[1]&&pe(e.charCodeAt(2))}function Re(e){return/^onDynamic/.test(e)&&pe(e.charCodeAt(9))}function Ne(e,n,t){const r=e=>function(){const t=Array.prototype.slice.call(arguments,0);return n(e,t)},i=e=>function(n){return t(e,n)},a={};for(const o of e)Re(o)?a[o]=i(o):we(o)?a[o]=t(o,void 0):a[o]=r(o);return a}class De{constructor(e,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Ie({sendMessage:(n,t)=>{e(n,t)},handleMessage:(e,n)=>this._handleMessage(e,n),handleEvent:(e,n)=>this._handleEvent(e,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n){if(e===Te)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||"function"!==typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,n))}catch(Sa){return Promise.reject(Sa)}}_handleEvent(e,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Re(e)){const t=this._requestHandler[e].call(this._requestHandler,n);if("function"!==typeof t)throw new Error(`Missing dynamic event ${e} on request handler.`);return t}if(we(e)){const n=this._requestHandler[e];if("function"!==typeof n)throw new Error(`Missing event ${e} on request handler.`);return n}throw new Error(`Malformed event name ${e}`)}initialize(e,n,t,r){this._protocol.setWorkerId(e);const i=Ne(r,((e,n)=>this._protocol.sendMessage(e,n)),((e,n)=>this._protocol.listen(e,n)));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(i),Promise.resolve(N(this._requestHandler))):(n&&("undefined"!==typeof n.baseUrl&&delete n.baseUrl,"undefined"!==typeof n.paths&&"undefined"!==typeof n.paths.vs&&delete n.paths.vs,"undefined"!==typeof n.trustedTypesPolicy&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise(((e,n)=>{(0,globalThis.require)([t],(t=>{this._requestHandler=t.create(i),this._requestHandler?e(N(this._requestHandler)):n(new Error("No RequestHandler!"))}),n)})))}}class Oe{constructor(e,n,t,r){this.originalStart=e,this.originalLength=n,this.modifiedStart=t,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Me(e,n){return(n<<5)-n+e|0}function Pe(e,n){n=Me(149417,n);for(let t=0,r=e.length;t<r;t++)n=Me(e.charCodeAt(t),n);return n}function Fe(e,n,t=32){const r=t-n;return(e<<n|(~((1<<r)-1)&e)>>>r)>>>0}function Ge(e,n=0,t=e.byteLength,r=0){for(let i=0;i<t;i++)e[n+i]=r}function Be(e,n=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,n,t="0"){for(;e.length<n;)e=t+e;return e}((e>>>0).toString(16),n/4)}class Ue{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const n=e.length;if(0===n)return;const t=this._buff;let r,i,a=this._buffLen,o=this._leftoverHighSurrogate;for(0!==o?(r=o,i=-1,o=0):(r=e.charCodeAt(0),i=0);;){let s=r;if(fe(r)){if(!(i+1<n)){o=r;break}{const n=e.charCodeAt(i+1);me(n)?(i++,s=he(r,n)):s=65533}}else me(r)&&(s=65533);if(a=this._push(t,a,s),i++,!(i<n))break;r=e.charCodeAt(i)}this._buffLen=a,this._leftoverHighSurrogate=o}_push(e,n,t){return t<128?e[n++]=t:t<2048?(e[n++]=192|(1984&t)>>>6,e[n++]=128|(63&t)>>>0):t<65536?(e[n++]=224|(61440&t)>>>12,e[n++]=128|(4032&t)>>>6,e[n++]=128|(63&t)>>>0):(e[n++]=240|(1835008&t)>>>18,e[n++]=128|(258048&t)>>>12,e[n++]=128|(4032&t)>>>6,e[n++]=128|(63&t)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Be(this._h0)+Be(this._h1)+Be(this._h2)+Be(this._h3)+Be(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Ge(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Ge(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=Ue._bigBlock32,n=this._buffDV;for(let d=0;d<64;d+=4)e.setUint32(d,n.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,Fe(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let t,r,i,a=this._h0,o=this._h1,s=this._h2,c=this._h3,l=this._h4;for(let d=0;d<80;d++)d<20?(t=o&s|~o&c,r=1518500249):d<40?(t=o^s^c,r=1859775393):d<60?(t=o&s|o&c|s&c,r=2400959708):(t=o^s^c,r=3395469782),i=Fe(a,5)+t+l+r+e.getUint32(4*d,!1)&4294967295,l=c,c=s,s=Fe(o,30),o=a,a=i;this._h0=this._h0+a&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+l&4294967295}}Ue._bigBlock32=new DataView(new ArrayBuffer(320));class Ve{constructor(e){this.source=e}getElements(){const e=this.source,n=new Int32Array(e.length);for(let t=0,r=e.length;t<r;t++)n[t]=e.charCodeAt(t);return n}}function je(e,n,t){return new ze(new Ve(e),new Ve(n)).ComputeDiff(t).changes}class He{static Assert(e,n){if(!e)throw new Error(n)}}class Ke{static Copy(e,n,t,r,i){for(let a=0;a<i;a++)t[r+a]=e[n+a]}static Copy2(e,n,t,r,i){for(let a=0;a<i;a++)t[r+a]=e[n+a]}}class We{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Oe(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class ze{constructor(e,n,t=null){this.ContinueProcessingPredicate=t,this._originalSequence=e,this._modifiedSequence=n;const[r,i,a]=ze._getElements(e),[o,s,c]=ze._getElements(n);this._hasStrings=a&&c,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=o,this._modifiedElementsOrHash=s,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const n=e.getElements();if(ze._isStringArray(n)){const e=new Int32Array(n.length);for(let t=0,r=n.length;t<r;t++)e[t]=Pe(n[t],0);return[n,e,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(e,n){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[n]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[n])}ElementsAreStrictEqual(e,n){if(!this.ElementsAreEqual(e,n))return!1;return ze._getStrictElement(this._originalSequence,e)===ze._getStrictElement(this._modifiedSequence,n)}static _getStrictElement(e,n){return"function"===typeof e.getStrictElement?e.getStrictElement(n):null}OriginalElementsAreEqual(e,n){return this._originalElementsOrHash[e]===this._originalElementsOrHash[n]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[n])}ModifiedElementsAreEqual(e,n){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[n]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[n])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,n,t,r,i){const a=[!1];let o=this.ComputeDiffRecursive(e,n,t,r,a);return i&&(o=this.PrettifyChanges(o)),{quitEarly:a[0],changes:o}}ComputeDiffRecursive(e,n,t,r,i){for(i[0]=!1;e<=n&&t<=r&&this.ElementsAreEqual(e,t);)e++,t++;for(;n>=e&&r>=t&&this.ElementsAreEqual(n,r);)n--,r--;if(e>n||t>r){let i;return t<=r?(He.Assert(e===n+1,"originalStart should only be one more than originalEnd"),i=[new Oe(e,0,t,r-t+1)]):e<=n?(He.Assert(t===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[new Oe(e,n-e+1,t,0)]):(He.Assert(e===n+1,"originalStart should only be one more than originalEnd"),He.Assert(t===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i}const a=[0],o=[0],s=this.ComputeRecursionPoint(e,n,t,r,a,o,i),c=a[0],l=o[0];if(null!==s)return s;if(!i[0]){const a=this.ComputeDiffRecursive(e,c,t,l,i);let o=[];return o=i[0]?[new Oe(c+1,n-(c+1)+1,l+1,r-(l+1)+1)]:this.ComputeDiffRecursive(c+1,n,l+1,r,i),this.ConcatenateChanges(a,o)}return[new Oe(e,n-e+1,t,r-t+1)]}WALKTRACE(e,n,t,r,i,a,o,s,c,l,d,u,_,p,f,m,h,g){let y=null,v=null,b=new We,E=n,T=t,x=_[0]-m[0]-r,S=-1073741824,A=this.m_forwardHistory.length-1;do{const n=x+e;n===E||n<T&&c[n-1]<c[n+1]?(p=(d=c[n+1])-x-r,d<S&&b.MarkNextChange(),S=d,b.AddModifiedElement(d+1,p),x=n+1-e):(p=(d=c[n-1]+1)-x-r,d<S&&b.MarkNextChange(),S=d-1,b.AddOriginalElement(d,p+1),x=n-1-e),A>=0&&(e=(c=this.m_forwardHistory[A])[0],E=1,T=c.length-1)}while(--A>=-1);if(y=b.getReverseChanges(),g[0]){let e=_[0]+1,n=m[0]+1;if(null!==y&&y.length>0){const t=y[y.length-1];e=Math.max(e,t.getOriginalEnd()),n=Math.max(n,t.getModifiedEnd())}v=[new Oe(e,u-e+1,n,f-n+1)]}else{b=new We,E=a,T=o,x=_[0]-m[0]-s,S=1073741824,A=h?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=x+i;e===E||e<T&&l[e-1]>=l[e+1]?(p=(d=l[e+1]-1)-x-s,d>S&&b.MarkNextChange(),S=d+1,b.AddOriginalElement(d+1,p+1),x=e+1-i):(p=(d=l[e-1])-x-s,d>S&&b.MarkNextChange(),S=d,b.AddModifiedElement(d+1,p+1),x=e-1-i),A>=0&&(i=(l=this.m_reverseHistory[A])[0],E=1,T=l.length-1)}while(--A>=-1);v=b.getChanges()}return this.ConcatenateChanges(y,v)}ComputeRecursionPoint(e,n,t,r,i,a,o){let s=0,c=0,l=0,d=0,u=0,_=0;e--,t--,i[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const p=n-e+(r-t),f=p+1,m=new Int32Array(f),h=new Int32Array(f),g=r-t,y=n-e,v=e-t,b=n-r,E=(y-g)%2===0;m[g]=e,h[y]=n,o[0]=!1;for(let T=1;T<=p/2+1;T++){let p=0,x=0;l=this.ClipDiagonalBound(g-T,T,g,f),d=this.ClipDiagonalBound(g+T,T,g,f);for(let e=l;e<=d;e+=2){s=e===l||e<d&&m[e-1]<m[e+1]?m[e+1]:m[e-1]+1,c=s-(e-g)-v;const t=s;for(;s<n&&c<r&&this.ElementsAreEqual(s+1,c+1);)s++,c++;if(m[e]=s,s+c>p+x&&(p=s,x=c),!E&&Math.abs(e-y)<=T-1&&s>=h[e])return i[0]=s,a[0]=c,t<=h[e]&&T<=1448?this.WALKTRACE(g,l,d,v,y,u,_,b,m,h,s,n,i,c,r,a,E,o):null}const S=(p-e+(x-t)-T)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(p,S))return o[0]=!0,i[0]=p,a[0]=x,S>0&&T<=1448?this.WALKTRACE(g,l,d,v,y,u,_,b,m,h,s,n,i,c,r,a,E,o):(e++,t++,[new Oe(e,n-e+1,t,r-t+1)]);u=this.ClipDiagonalBound(y-T,T,y,f),_=this.ClipDiagonalBound(y+T,T,y,f);for(let f=u;f<=_;f+=2){s=f===u||f<_&&h[f-1]>=h[f+1]?h[f+1]-1:h[f-1],c=s-(f-y)-b;const p=s;for(;s>e&&c>t&&this.ElementsAreEqual(s,c);)s--,c--;if(h[f]=s,E&&Math.abs(f-g)<=T&&s<=m[f])return i[0]=s,a[0]=c,p>=m[f]&&T<=1448?this.WALKTRACE(g,l,d,v,y,u,_,b,m,h,s,n,i,c,r,a,E,o):null}if(T<=1447){let e=new Int32Array(d-l+2);e[0]=g-l+1,Ke.Copy2(m,l,e,1,d-l+1),this.m_forwardHistory.push(e),e=new Int32Array(_-u+2),e[0]=y-u+1,Ke.Copy2(h,u,e,1,_-u+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(g,l,d,v,y,u,_,b,m,h,s,n,i,c,r,a,E,o)}PrettifyChanges(e){for(let n=0;n<e.length;n++){const t=e[n],r=n<e.length-1?e[n+1].originalStart:this._originalElementsOrHash.length,i=n<e.length-1?e[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=t.originalLength>0,o=t.modifiedLength>0;for(;t.originalStart+t.originalLength<r&&t.modifiedStart+t.modifiedLength<i&&(!a||this.OriginalElementsAreEqual(t.originalStart,t.originalStart+t.originalLength))&&(!o||this.ModifiedElementsAreEqual(t.modifiedStart,t.modifiedStart+t.modifiedLength));){const e=this.ElementsAreStrictEqual(t.originalStart,t.modifiedStart);if(this.ElementsAreStrictEqual(t.originalStart+t.originalLength,t.modifiedStart+t.modifiedLength)&&!e)break;t.originalStart++,t.modifiedStart++}const s=[null];n<e.length-1&&this.ChangesOverlap(e[n],e[n+1],s)&&(e[n]=s[0],e.splice(n+1,1),n--)}for(let n=e.length-1;n>=0;n--){const t=e[n];let r=0,i=0;if(n>0){const t=e[n-1];r=t.originalStart+t.originalLength,i=t.modifiedStart+t.modifiedLength}const a=t.originalLength>0,o=t.modifiedLength>0;let s=0,c=this._boundaryScore(t.originalStart,t.originalLength,t.modifiedStart,t.modifiedLength);for(let e=1;;e++){const n=t.originalStart-e,l=t.modifiedStart-e;if(n<r||l<i)break;if(a&&!this.OriginalElementsAreEqual(n,n+t.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(l,l+t.modifiedLength))break;const d=(n===r&&l===i?5:0)+this._boundaryScore(n,t.originalLength,l,t.modifiedLength);d>c&&(c=d,s=e)}t.originalStart-=s,t.modifiedStart-=s;const l=[null];n>0&&this.ChangesOverlap(e[n-1],e[n],l)&&(e[n-1]=l[0],e.splice(n,1),n++)}if(this._hasStrings)for(let n=1,t=e.length;n<t;n++){const t=e[n-1],r=e[n],i=r.originalStart-t.originalStart-t.originalLength,a=t.originalStart,o=r.originalStart+r.originalLength,s=o-a,c=t.modifiedStart,l=r.modifiedStart+r.modifiedLength,d=l-c;if(i<5&&s<20&&d<20){const e=this._findBetterContiguousSequence(a,s,c,d,i);if(e){const[n,a]=e;n===t.originalStart+t.originalLength&&a===t.modifiedStart+t.modifiedLength||(t.originalLength=n-t.originalStart,t.modifiedLength=a-t.modifiedStart,r.originalStart=n+i,r.modifiedStart=a+i,r.originalLength=o-r.originalStart,r.modifiedLength=l-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,n,t,r,i){if(n<i||r<i)return null;const a=e+n-i+1,o=t+r-i+1;let s=0,c=0,l=0;for(let d=e;d<a;d++)for(let e=t;e<o;e++){const n=this._contiguousSequenceScore(d,e,i);n>0&&n>s&&(s=n,c=d,l=e)}return s>0?[c,l]:null}_contiguousSequenceScore(e,n,t){let r=0;for(let i=0;i<t;i++){if(!this.ElementsAreEqual(e+i,n+i))return 0;r+=this._originalStringElements[e+i].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const t=e+n;if(this._OriginalIsBoundary(t-1)||this._OriginalIsBoundary(t))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const t=e+n;if(this._ModifiedIsBoundary(t-1)||this._ModifiedIsBoundary(t))return!0}return!1}_boundaryScore(e,n,t,r){return(this._OriginalRegionIsBoundary(e,n)?1:0)+(this._ModifiedRegionIsBoundary(t,r)?1:0)}ConcatenateChanges(e,n){const t=[];if(0===e.length||0===n.length)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],t)){const r=new Array(e.length+n.length-1);return Ke.Copy(e,0,r,0,e.length-1),r[e.length-1]=t[0],Ke.Copy(n,1,r,e.length,n.length-1),r}{const t=new Array(e.length+n.length);return Ke.Copy(e,0,t,0,e.length),Ke.Copy(n,0,t,e.length,n.length),t}}ChangesOverlap(e,n,t){if(He.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),He.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const r=e.originalStart;let i=e.originalLength;const a=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(i=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-e.modifiedStart),t[0]=new Oe(r,i,a,o),!0}return t[0]=null,!1}ClipDiagonalBound(e,n,t,r){if(e>=0&&e<r)return e;const i=n%2===0;if(e<0){return i===(t%2===0)?0:1}return i===((r-t-1)%2===0)?r-1:r-2}}const qe=globalThis.vscode;if("undefined"!==typeof qe&&"undefined"!==typeof qe.process){const e=qe.process;xe={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else xe="undefined"!==typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return ae?"win32":oe?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const Je=xe.cwd,Xe=(xe.env,xe.platform),Ye=46,$e=47,Qe=92,Ze=58;class en extends Error{constructor(e,n,t){let r;"string"===typeof n&&0===n.indexOf("not ")?(r="must not be",n=n.replace(/^not /,"")):r="must be";const i=-1!==e.indexOf(".")?"property":"argument";let a=`The "${e}" ${i} ${r} of type ${n}`;a+=". Received type "+typeof t,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function nn(e,n){if("string"!==typeof e)throw new en(n,"string",e)}const tn="win32"===Xe;function rn(e){return e===$e||e===Qe}function an(e){return e===$e}function on(e){return e>=65&&e<=90||e>=97&&e<=122}function sn(e,n,t,r){let i="",a=0,o=-1,s=0,c=0;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else{if(r(c))break;c=$e}if(r(c)){if(o===l-1||1===s);else if(2===s){if(i.length<2||2!==a||i.charCodeAt(i.length-1)!==Ye||i.charCodeAt(i.length-2)!==Ye){if(i.length>2){const e=i.lastIndexOf(t);-1===e?(i="",a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(t)),o=l,s=0;continue}if(0!==i.length){i="",a=0,o=l,s=0;continue}}n&&(i+=i.length>0?`${t}..`:"..",a=2)}else i.length>0?i+=`${t}${e.slice(o+1,l)}`:i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else c===Ye&&-1!==s?++s:s=-1}return i}function cn(e,n){!function(e,n){if(null===e||"object"!==typeof e)throw new en(n,"Object",e)}(n,"pathObject");const t=n.dir||n.root,r=n.base||`${n.name||""}${n.ext||""}`;return t?t===n.root?`${t}${r}`:`${t}${e}${r}`:r}const ln={resolve(...e){let n="",t="",r=!1;for(let i=e.length-1;i>=-1;i--){let a;if(i>=0){if(a=e[i],nn(a,"path"),0===a.length)continue}else 0===n.length?a=Je():(a={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${n}`]||Je(),(void 0===a||a.slice(0,2).toLowerCase()!==n.toLowerCase()&&a.charCodeAt(2)===Qe)&&(a=`${n}\\`));const o=a.length;let s=0,c="",l=!1;const d=a.charCodeAt(0);if(1===o)rn(d)&&(s=1,l=!0);else if(rn(d))if(l=!0,rn(a.charCodeAt(1))){let e=2,n=e;for(;e<o&&!rn(a.charCodeAt(e));)e++;if(e<o&&e!==n){const t=a.slice(n,e);for(n=e;e<o&&rn(a.charCodeAt(e));)e++;if(e<o&&e!==n){for(n=e;e<o&&!rn(a.charCodeAt(e));)e++;e!==o&&e===n||(c=`\\\\${t}\\${a.slice(n,e)}`,s=e)}}}else s=1;else on(d)&&a.charCodeAt(1)===Ze&&(c=a.slice(0,2),s=2,o>2&&rn(a.charCodeAt(2))&&(l=!0,s=3));if(c.length>0)if(n.length>0){if(c.toLowerCase()!==n.toLowerCase())continue}else n=c;if(r){if(n.length>0)break}else if(t=`${a.slice(s)}\\${t}`,r=l,l&&n.length>0)break}return t=sn(t,!r,"\\",rn),r?`${n}\\${t}`:`${n}${t}`||"."},normalize(e){nn(e,"path");const n=e.length;if(0===n)return".";let t,r=0,i=!1;const a=e.charCodeAt(0);if(1===n)return an(a)?"\\":e;if(rn(a))if(i=!0,rn(e.charCodeAt(1))){let i=2,a=i;for(;i<n&&!rn(e.charCodeAt(i));)i++;if(i<n&&i!==a){const o=e.slice(a,i);for(a=i;i<n&&rn(e.charCodeAt(i));)i++;if(i<n&&i!==a){for(a=i;i<n&&!rn(e.charCodeAt(i));)i++;if(i===n)return`\\\\${o}\\${e.slice(a)}\\`;i!==a&&(t=`\\\\${o}\\${e.slice(a,i)}`,r=i)}}}else r=1;else on(a)&&e.charCodeAt(1)===Ze&&(t=e.slice(0,2),r=2,n>2&&rn(e.charCodeAt(2))&&(i=!0,r=3));let o=r<n?sn(e.slice(r),!i,"\\",rn):"";return 0!==o.length||i||(o="."),o.length>0&&rn(e.charCodeAt(n-1))&&(o+="\\"),void 0===t?i?`\\${o}`:o:i?`${t}\\${o}`:`${t}${o}`},isAbsolute(e){nn(e,"path");const n=e.length;if(0===n)return!1;const t=e.charCodeAt(0);return rn(t)||n>2&&on(t)&&e.charCodeAt(1)===Ze&&rn(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let n,t;for(let a=0;a<e.length;++a){const r=e[a];nn(r,"path"),r.length>0&&(void 0===n?n=t=r:n+=`\\${r}`)}if(void 0===n)return".";let r=!0,i=0;if("string"===typeof t&&rn(t.charCodeAt(0))){++i;const e=t.length;e>1&&rn(t.charCodeAt(1))&&(++i,e>2&&(rn(t.charCodeAt(2))?++i:r=!1))}if(r){for(;i<n.length&&rn(n.charCodeAt(i));)i++;i>=2&&(n=`\\${n.slice(i)}`)}return ln.normalize(n)},relative(e,n){if(nn(e,"from"),nn(n,"to"),e===n)return"";const t=ln.resolve(e),r=ln.resolve(n);if(t===r)return"";if((e=t.toLowerCase())===(n=r.toLowerCase()))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===Qe;)i++;let a=e.length;for(;a-1>i&&e.charCodeAt(a-1)===Qe;)a--;const o=a-i;let s=0;for(;s<n.length&&n.charCodeAt(s)===Qe;)s++;let c=n.length;for(;c-1>s&&n.charCodeAt(c-1)===Qe;)c--;const l=c-s,d=o<l?o:l;let u=-1,_=0;for(;_<d;_++){const t=e.charCodeAt(i+_);if(t!==n.charCodeAt(s+_))break;t===Qe&&(u=_)}if(_!==d){if(-1===u)return r}else{if(l>d){if(n.charCodeAt(s+_)===Qe)return r.slice(s+_+1);if(2===_)return r.slice(s+_)}o>d&&(e.charCodeAt(i+_)===Qe?u=_:2===_&&(u=3)),-1===u&&(u=0)}let p="";for(_=i+u+1;_<=a;++_)_!==a&&e.charCodeAt(_)!==Qe||(p+=0===p.length?"..":"\\..");return s+=u,p.length>0?`${p}${r.slice(s,c)}`:(r.charCodeAt(s)===Qe&&++s,r.slice(s,c))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const n=ln.resolve(e);if(n.length<=2)return e;if(n.charCodeAt(0)===Qe){if(n.charCodeAt(1)===Qe){const e=n.charCodeAt(2);if(63!==e&&e!==Ye)return`\\\\?\\UNC\\${n.slice(2)}`}}else if(on(n.charCodeAt(0))&&n.charCodeAt(1)===Ze&&n.charCodeAt(2)===Qe)return`\\\\?\\${n}`;return e},dirname(e){nn(e,"path");const n=e.length;if(0===n)return".";let t=-1,r=0;const i=e.charCodeAt(0);if(1===n)return rn(i)?e:".";if(rn(i)){if(t=r=1,rn(e.charCodeAt(1))){let i=2,a=i;for(;i<n&&!rn(e.charCodeAt(i));)i++;if(i<n&&i!==a){for(a=i;i<n&&rn(e.charCodeAt(i));)i++;if(i<n&&i!==a){for(a=i;i<n&&!rn(e.charCodeAt(i));)i++;if(i===n)return e;i!==a&&(t=r=i+1)}}}}else on(i)&&e.charCodeAt(1)===Ze&&(t=n>2&&rn(e.charCodeAt(2))?3:2,r=t);let a=-1,o=!0;for(let s=n-1;s>=r;--s)if(rn(e.charCodeAt(s))){if(!o){a=s;break}}else o=!1;if(-1===a){if(-1===t)return".";a=t}return e.slice(0,a)},basename(e,n){void 0!==n&&nn(n,"ext"),nn(e,"path");let t,r=0,i=-1,a=!0;if(e.length>=2&&on(e.charCodeAt(0))&&e.charCodeAt(1)===Ze&&(r=2),void 0!==n&&n.length>0&&n.length<=e.length){if(n===e)return"";let o=n.length-1,s=-1;for(t=e.length-1;t>=r;--t){const c=e.charCodeAt(t);if(rn(c)){if(!a){r=t+1;break}}else-1===s&&(a=!1,s=t+1),o>=0&&(c===n.charCodeAt(o)?-1===--o&&(i=t):(o=-1,i=s))}return r===i?i=s:-1===i&&(i=e.length),e.slice(r,i)}for(t=e.length-1;t>=r;--t)if(rn(e.charCodeAt(t))){if(!a){r=t+1;break}}else-1===i&&(a=!1,i=t+1);return-1===i?"":e.slice(r,i)},extname(e){nn(e,"path");let n=0,t=-1,r=0,i=-1,a=!0,o=0;e.length>=2&&e.charCodeAt(1)===Ze&&on(e.charCodeAt(0))&&(n=r=2);for(let s=e.length-1;s>=n;--s){const n=e.charCodeAt(s);if(rn(n)){if(!a){r=s+1;break}}else-1===i&&(a=!1,i=s+1),n===Ye?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?"":e.slice(t,i)},format:cn.bind(null,"\\"),parse(e){nn(e,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;const t=e.length;let r=0,i=e.charCodeAt(0);if(1===t)return rn(i)?(n.root=n.dir=e,n):(n.base=n.name=e,n);if(rn(i)){if(r=1,rn(e.charCodeAt(1))){let n=2,i=n;for(;n<t&&!rn(e.charCodeAt(n));)n++;if(n<t&&n!==i){for(i=n;n<t&&rn(e.charCodeAt(n));)n++;if(n<t&&n!==i){for(i=n;n<t&&!rn(e.charCodeAt(n));)n++;n===t?r=n:n!==i&&(r=n+1)}}}}else if(on(i)&&e.charCodeAt(1)===Ze){if(t<=2)return n.root=n.dir=e,n;if(r=2,rn(e.charCodeAt(2))){if(3===t)return n.root=n.dir=e,n;r=3}}r>0&&(n.root=e.slice(0,r));let a=-1,o=r,s=-1,c=!0,l=e.length-1,d=0;for(;l>=r;--l)if(i=e.charCodeAt(l),rn(i)){if(!c){o=l+1;break}}else-1===s&&(c=!1,s=l+1),i===Ye?-1===a?a=l:1!==d&&(d=1):-1!==a&&(d=-1);return-1!==s&&(-1===a||0===d||1===d&&a===s-1&&a===o+1?n.base=n.name=e.slice(o,s):(n.name=e.slice(o,a),n.base=e.slice(o,s),n.ext=e.slice(a,s))),n.dir=o>0&&o!==r?e.slice(0,o-1):n.root,n},sep:"\\",delimiter:";",win32:null,posix:null},dn=(()=>{if(tn){const e=/\\/g;return()=>{const n=Je().replace(e,"/");return n.slice(n.indexOf("/"))}}return()=>Je()})(),un={resolve(...e){let n="",t=!1;for(let r=e.length-1;r>=-1&&!t;r--){const i=r>=0?e[r]:dn();nn(i,"path"),0!==i.length&&(n=`${i}/${n}`,t=i.charCodeAt(0)===$e)}return n=sn(n,!t,"/",an),t?`/${n}`:n.length>0?n:"."},normalize(e){if(nn(e,"path"),0===e.length)return".";const n=e.charCodeAt(0)===$e,t=e.charCodeAt(e.length-1)===$e;return 0===(e=sn(e,!n,"/",an)).length?n?"/":t?"./":".":(t&&(e+="/"),n?`/${e}`:e)},isAbsolute:e=>(nn(e,"path"),e.length>0&&e.charCodeAt(0)===$e),join(...e){if(0===e.length)return".";let n;for(let t=0;t<e.length;++t){const r=e[t];nn(r,"path"),r.length>0&&(void 0===n?n=r:n+=`/${r}`)}return void 0===n?".":un.normalize(n)},relative(e,n){if(nn(e,"from"),nn(n,"to"),e===n)return"";if((e=un.resolve(e))===(n=un.resolve(n)))return"";const t=e.length,r=t-1,i=n.length-1,a=r<i?r:i;let o=-1,s=0;for(;s<a;s++){const t=e.charCodeAt(1+s);if(t!==n.charCodeAt(1+s))break;t===$e&&(o=s)}if(s===a)if(i>a){if(n.charCodeAt(1+s)===$e)return n.slice(1+s+1);if(0===s)return n.slice(1+s)}else r>a&&(e.charCodeAt(1+s)===$e?o=s:0===s&&(o=0));let c="";for(s=1+o+1;s<=t;++s)s!==t&&e.charCodeAt(s)!==$e||(c+=0===c.length?"..":"/..");return`${c}${n.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(nn(e,"path"),0===e.length)return".";const n=e.charCodeAt(0)===$e;let t=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===$e){if(!r){t=i;break}}else r=!1;return-1===t?n?"/":".":n&&1===t?"//":e.slice(0,t)},basename(e,n){void 0!==n&&nn(n,"ext"),nn(e,"path");let t,r=0,i=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n===e)return"";let o=n.length-1,s=-1;for(t=e.length-1;t>=0;--t){const c=e.charCodeAt(t);if(c===$e){if(!a){r=t+1;break}}else-1===s&&(a=!1,s=t+1),o>=0&&(c===n.charCodeAt(o)?-1===--o&&(i=t):(o=-1,i=s))}return r===i?i=s:-1===i&&(i=e.length),e.slice(r,i)}for(t=e.length-1;t>=0;--t)if(e.charCodeAt(t)===$e){if(!a){r=t+1;break}}else-1===i&&(a=!1,i=t+1);return-1===i?"":e.slice(r,i)},extname(e){nn(e,"path");let n=-1,t=0,r=-1,i=!0,a=0;for(let o=e.length-1;o>=0;--o){const s=e.charCodeAt(o);if(s!==$e)-1===r&&(i=!1,r=o+1),s===Ye?-1===n?n=o:1!==a&&(a=1):-1!==n&&(a=-1);else if(!i){t=o+1;break}}return-1===n||-1===r||0===a||1===a&&n===r-1&&n===t+1?"":e.slice(n,r)},format:cn.bind(null,"/"),parse(e){nn(e,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;const t=e.charCodeAt(0)===$e;let r;t?(n.root="/",r=1):r=0;let i=-1,a=0,o=-1,s=!0,c=e.length-1,l=0;for(;c>=r;--c){const n=e.charCodeAt(c);if(n!==$e)-1===o&&(s=!1,o=c+1),n===Ye?-1===i?i=c:1!==l&&(l=1):-1!==i&&(l=-1);else if(!s){a=c+1;break}}if(-1!==o){const r=0===a&&t?1:a;-1===i||0===l||1===l&&i===o-1&&i===a+1?n.base=n.name=e.slice(r,o):(n.name=e.slice(r,i),n.base=e.slice(r,o),n.ext=e.slice(i,o))}return a>0?n.dir=e.slice(0,a-1):t&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};un.win32=ln.win32=ln,un.posix=ln.posix=un;tn?ln.normalize:un.normalize,tn?ln.resolve:un.resolve,tn?ln.relative:un.relative,tn?ln.dirname:un.dirname,tn?ln.basename:un.basename,tn?ln.extname:un.extname,tn?ln.sep:un.sep;const _n=/^\w[\w\d+.-]*$/,pn=/^\//,fn=/^\/\//;const mn="",hn="/",gn=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class yn{static isUri(e){return e instanceof yn||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,n,t,r,i,a=!1){"object"===typeof e?(this.scheme=e.scheme||mn,this.authority=e.authority||mn,this.path=e.path||mn,this.query=e.query||mn,this.fragment=e.fragment||mn):(this.scheme=function(e,n){return e||n?e:"file"}(e,a),this.authority=n||mn,this.path=function(e,n){switch(e){case"https":case"http":case"file":n?n[0]!==hn&&(n=hn+n):n=hn}return n}(this.scheme,t||mn),this.query=r||mn,this.fragment=i||mn,function(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!_n.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!pn.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(fn.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,a))}get fsPath(){return Sn(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:t,path:r,query:i,fragment:a}=e;return void 0===n?n=this.scheme:null===n&&(n=mn),void 0===t?t=this.authority:null===t&&(t=mn),void 0===r?r=this.path:null===r&&(r=mn),void 0===i?i=this.query:null===i&&(i=mn),void 0===a?a=this.fragment:null===a&&(a=mn),n===this.scheme&&t===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new bn(n,t,r,i,a)}static parse(e,n=!1){const t=gn.exec(e);return t?new bn(t[2]||mn,kn(t[4]||mn),kn(t[5]||mn),kn(t[7]||mn),kn(t[9]||mn),n):new bn(mn,mn,mn,mn,mn)}static file(e){let n=mn;if(ae&&(e=e.replace(/\\/g,hn)),e[0]===hn&&e[1]===hn){const t=e.indexOf(hn,2);-1===t?(n=e.substring(2),e=hn):(n=e.substring(2,t),e=e.substring(t)||hn)}return new bn("file",n,e,mn,mn)}static from(e,n){return new bn(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let t;return t=ae&&"file"===e.scheme?yn.file(ln.join(Sn(e,!0),...n)).path:un.join(e.path,...n),e.with({path:t})}toString(e=!1){return An(this,e)}toJSON(){return this}static revive(e){var n,t;if(e){if(e instanceof yn)return e;{const r=new bn(e);return r._formatted=null!==(n=e.external)&&void 0!==n?n:null,r._fsPath=e._sep===vn&&null!==(t=e.fsPath)&&void 0!==t?t:null,r}}return e}}const vn=ae?1:void 0;class bn extends yn{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Sn(this,!1)),this._fsPath}toString(e=!1){return e?An(this,!0):(this._formatted||(this._formatted=An(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=vn),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const En={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Tn(e,n,t){let r,i=-1;for(let a=0;a<e.length;a++){const o=e.charCodeAt(a);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||n&&47===o||t&&91===o||t&&93===o||t&&58===o)-1!==i&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),void 0!==r&&(r+=e.charAt(a));else{void 0===r&&(r=e.substr(0,a));const n=En[o];void 0!==n?(-1!==i&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=n):-1===i&&(i=a)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function xn(e){let n;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);35===r||63===r?(void 0===n&&(n=e.substr(0,t)),n+=En[r]):void 0!==n&&(n+=e[t])}return void 0!==n?n:e}function Sn(e,n){let t;return t=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?n?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,ae&&(t=t.replace(/\//g,"\\")),t}function An(e,n){const t=n?xn:Tn;let r="",{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=":"),(a||"file"===i)&&(r+=hn,r+=hn),a){let e=a.indexOf("@");if(-1!==e){const n=a.substr(0,e);a=a.substr(e+1),e=n.lastIndexOf(":"),-1===e?r+=t(n,!1,!1):(r+=t(n.substr(0,e),!1,!1),r+=":",r+=t(n.substr(e+1),!1,!0)),r+="@"}a=a.toLowerCase(),e=a.lastIndexOf(":"),-1===e?r+=t(a,!1,!0):(r+=t(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=t(o,!0,!1)}return s&&(r+="?",r+=t(s,!1,!1)),c&&(r+="#",r+=n?c:Tn(c,!1,!1)),r}function Ln(e){try{return decodeURIComponent(e)}catch(P){return e.length>3?e.substr(0,3)+Ln(e.substr(3)):e}}const Cn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function kn(e){return e.match(Cn)?e.replace(Cn,(e=>Ln(e))):e}class In{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new In(e,n)}delta(e=0,n=0){return this.with(this.lineNumber+e,this.column+n)}equals(e){return In.equals(this,e)}static equals(e,n){return!e&&!n||!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return In.isBefore(this,e)}static isBefore(e,n){return e.lineNumber<n.lineNumber||!(n.lineNumber<e.lineNumber)&&e.column<n.column}isBeforeOrEqual(e){return In.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,n){return e.lineNumber<n.lineNumber||!(n.lineNumber<e.lineNumber)&&e.column<=n.column}static compare(e,n){const t=0|e.lineNumber,r=0|n.lineNumber;if(t===r){return(0|e.column)-(0|n.column)}return t-r}clone(){return new In(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new In(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}class wn{constructor(e,n,t,r){e>t||e===t&&n>r?(this.startLineNumber=t,this.startColumn=r,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=t,this.endColumn=r)}isEmpty(){return wn.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return wn.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber)&&(!(n.lineNumber===e.startLineNumber&&n.column<e.startColumn)&&!(n.lineNumber===e.endLineNumber&&n.column>e.endColumn))}static strictContainsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber)&&(!(n.lineNumber===e.startLineNumber&&n.column<=e.startColumn)&&!(n.lineNumber===e.endLineNumber&&n.column>=e.endColumn))}containsRange(e){return wn.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber)&&(!(n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber)&&(!(n.startLineNumber===e.startLineNumber&&n.startColumn<e.startColumn)&&!(n.endLineNumber===e.endLineNumber&&n.endColumn>e.endColumn)))}strictContainsRange(e){return wn.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber)&&(!(n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber)&&(!(n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn)&&!(n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)))}plusRange(e){return wn.plusRange(this,e)}static plusRange(e,n){let t,r,i,a;return n.startLineNumber<e.startLineNumber?(t=n.startLineNumber,r=n.startColumn):n.startLineNumber===e.startLineNumber?(t=n.startLineNumber,r=Math.min(n.startColumn,e.startColumn)):(t=e.startLineNumber,r=e.startColumn),n.endLineNumber>e.endLineNumber?(i=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(i=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(i=e.endLineNumber,a=e.endColumn),new wn(t,r,i,a)}intersectRanges(e){return wn.intersectRanges(this,e)}static intersectRanges(e,n){let t=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,a=e.endColumn;const o=n.startLineNumber,s=n.startColumn,c=n.endLineNumber,l=n.endColumn;return t<o?(t=o,r=s):t===o&&(r=Math.max(r,s)),i>c?(i=c,a=l):i===c&&(a=Math.min(a,l)),t>i||t===i&&r>a?null:new wn(t,r,i,a)}equalsRange(e){return wn.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n||!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return wn.getEndPosition(this)}static getEndPosition(e){return new In(e.endLineNumber,e.endColumn)}getStartPosition(){return wn.getStartPosition(this)}static getStartPosition(e){return new In(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new wn(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new wn(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return wn.collapseToStart(this)}static collapseToStart(e){return new wn(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return wn.collapseToEnd(this)}static collapseToEnd(e){return new wn(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new wn(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,n=e){return new wn(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new wn(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn)&&!(n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn)}static areIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<=n.startColumn)&&!(n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,n){if(e&&n){const t=0|e.startLineNumber,r=0|n.startLineNumber;if(t===r){const t=0|e.startColumn,r=0|n.startColumn;if(t===r){const t=0|e.endLineNumber,r=0|n.endLineNumber;if(t===r){return(0|e.endColumn)-(0|n.endColumn)}return t-r}return t-r}return t-r}return(e?1:0)-(n?1:0)}static compareRangesUsingEnds(e,n){return e.endLineNumber===n.endLineNumber?e.endColumn===n.endColumn?e.startLineNumber===n.startLineNumber?e.startColumn-n.startColumn:e.startLineNumber-n.startLineNumber:e.endColumn-n.endColumn:e.endLineNumber-n.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}var Rn;function Nn(e,n){return(t,r)=>n(e(t),e(r))}!function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(Rn||(Rn={}));const Dn=(e,n)=>e-n;class On{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((n=>(e.push(n),!0))),e}filter(e){return new On((n=>this.iterate((t=>!e(t)||n(t)))))}map(e){return new On((n=>this.iterate((t=>n(e(t))))))}findLast(e){let n;return this.iterate((t=>(e(t)&&(n=t),!0))),n}findLastMaxBy(e){let n,t=!0;return this.iterate((r=>((t||Rn.isGreaterThan(e(r,n)))&&(t=!1,n=r),!0))),n}}On.empty=new On((e=>{}));function Mn(e){return e<0?0:e>255?255:0|e}function Pn(e){return e<0?0:e>4294967295?4294967295:0|e}class Fn{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,n){e=Pn(e);const t=this.values,r=this.prefixSum,i=n.length;return 0!==i&&(this.values=new Uint32Array(t.length+i),this.values.set(t.subarray(0,e),0),this.values.set(t.subarray(e),e+i),this.values.set(n,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,n){return e=Pn(e),n=Pn(n),this.values[e]!==n&&(this.values[e]=n,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,n){e=Pn(e),n=Pn(n);const t=this.values,r=this.prefixSum;if(e>=t.length)return!1;const i=t.length-e;return n>=i&&(n=i),0!==n&&(this.values=new Uint32Array(t.length-n),this.values.set(t.subarray(0,e),0),this.values.set(t.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Pn(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;0===n&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let t=n;t<=e;t++)this.prefixSum[t]=this.prefixSum[t-1]+this.values[t];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,t=this.values.length-1,r=0,i=0,a=0;for(;n<=t;)if(r=n+(t-n)/2|0,i=this.prefixSum[r],a=i-this.values[r],e<a)t=r-1;else{if(!(e>=i))break;n=r+1}return new Gn(r,e-a)}}class Gn{constructor(e,n){this.index=e,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=n}}class Bn{constructor(e,n,t,r){this._uri=e,this._lines=n,this._eol=t,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const n=e.changes;for(const t of n)this._acceptDeleteRange(t.range),this._acceptInsertText(new In(t.range.startLineNumber,t.range.startColumn),t.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,n=this._lines.length,t=new Uint32Array(n);for(let r=0;r<n;r++)t[r]=this._lines[r].length+e;this._lineStarts=new Fn(t)}}_setLineText(e,n){this._lines[e]=n,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,n){if(0===n.length)return;const t=n.split(/\r\n|\r|\n/);if(1===t.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+t[0]+this._lines[e.lineNumber-1].substring(e.column-1));t[t.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+t[0]);const r=new Uint32Array(t.length-1);for(let i=1;i<t.length;i++)this._lines.splice(e.lineNumber+i-1,0,t[i]),r[i-1]=t[i].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}const Un=function(e=""){let n="(-?\\d*\\.\\d\\w*)|([^";for(const t of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(t)>=0||(n+="\\"+t);return n+="\\s]+)",new RegExp(n,"g")}();function Vn(e){let n=Un;if(e&&e instanceof RegExp)if(e.global)n=e;else{let t="g";e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),n=new RegExp(e.source,t)}return n.lastIndex=0,n}const jn=new E;function Hn(e,n,t,r,i){if(n=Vn(n),i||(i=d.first(jn)),t.length>i.maxLen){let a=e-i.maxLen/2;return a<0?a=0:r+=a,Hn(e,n,t=t.substring(a,e+i.maxLen/2),r,i)}const a=Date.now(),o=e-1-r;let s=-1,c=null;for(let l=1;!(Date.now()-a>=i.timeBudget);l++){const e=o-i.windowSize*l;n.lastIndex=Math.max(0,e);const r=Kn(n,t,o,s);if(!r&&c)break;if(c=r,e<=0)break;s=e}if(c){const e={word:c[0],startColumn:r+1+c.index,endColumn:r+1+c.index+c[0].length};return n.lastIndex=0,e}return null}function Kn(e,n,t,r){let i;for(;i=e.exec(n);){const n=i.index||0;if(n<=t&&e.lastIndex>=t)return i;if(r>0&&n>r)return null}return null}jn.unshift({maxLen:1e3,windowSize:15,timeBudget:150});class Wn{constructor(e){const n=Mn(e);this._defaultValue=n,this._asciiMap=Wn._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const t=Mn(n);e>=0&&e<256?this._asciiMap[e]=t:this._map.set(e,t)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class zn{constructor(e,n,t){const r=new Uint8Array(e*n);for(let i=0,a=e*n;i<a;i++)r[i]=t;this._data=r,this.rows=e,this.cols=n}get(e,n){return this._data[e*this.cols+n]}set(e,n,t){this._data[e*this.cols+n]=t}}class qn{constructor(e){let n=0,t=0;for(let i=0,a=e.length;i<a;i++){const[r,a,o]=e[i];a>n&&(n=a),r>t&&(t=r),o>t&&(t=o)}n++,t++;const r=new zn(t,n,0);for(let i=0,a=e.length;i<a;i++){const[n,t,a]=e[i];r.set(n,t,a)}this._states=r,this._maxCharCode=n}nextState(e,n){return n<0||n>=this._maxCharCode?0:this._states.get(e,n)}}let Jn=null;let Xn=null;class Yn{static _createLink(e,n,t,r,i){let a=i-1;do{const t=n.charCodeAt(a);if(2!==e.get(t))break;a--}while(a>r);if(r>0){const e=n.charCodeAt(r-1),t=n.charCodeAt(a);(40===e&&41===t||91===e&&93===t||123===e&&125===t)&&a--}return{range:{startLineNumber:t,startColumn:r+1,endLineNumber:t,endColumn:a+2},url:n.substring(r,a+1)}}static computeLinks(e,n=function(){return null===Jn&&(Jn=new qn([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Jn}()){const t=function(){if(null===Xn){Xn=new Wn(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let t=0;t<e.length;t++)Xn.set(e.charCodeAt(t),1);const n=".,;:";for(let t=0;t<n.length;t++)Xn.set(n.charCodeAt(t),2)}return Xn}(),r=[];for(let i=1,a=e.getLineCount();i<=a;i++){const a=e.getLineContent(i),o=a.length;let s=0,c=0,l=0,d=1,u=!1,_=!1,p=!1,f=!1;for(;s<o;){let e=!1;const o=a.charCodeAt(s);if(13===d){let n;switch(o){case 40:u=!0,n=0;break;case 41:n=u?0:1;break;case 91:p=!0,_=!0,n=0;break;case 93:p=!1,n=_?0:1;break;case 123:f=!0,n=0;break;case 125:n=f?0:1;break;case 39:case 34:case 96:n=l===o?1:39===l||34===l||96===l?0:1;break;case 42:n=42===l?1:0;break;case 124:n=124===l?1:0;break;case 32:n=p?0:1;break;default:n=t.get(o)}1===n&&(r.push(Yn._createLink(t,a,i,c,s)),e=!0)}else if(12===d){let n;91===o?(_=!0,n=0):n=t.get(o),1===n?e=!0:d=13}else d=n.nextState(d,o),0===d&&(e=!0);e&&(d=1,u=!1,_=!1,f=!1,c=s+1,l=o),s++}13===d&&r.push(Yn._createLink(t,a,i,c,o))}return r}}class $n{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,n,t,r,i){if(e&&n){const t=this.doNavigateValueSet(n,i);if(t)return{range:e,value:t}}if(t&&r){const e=this.doNavigateValueSet(r,i);if(e)return{range:t,value:e}}return null}doNavigateValueSet(e,n){const t=this.numberReplace(e,n);return null!==t?t:this.textReplace(e,n)}numberReplace(e,n){const t=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const i=parseFloat(e);return isNaN(r)||isNaN(i)||r!==i?null:0!==r||n?(r=Math.floor(r*t),r+=n?t:-t,String(r/t)):null}textReplace(e,n){return this.valueSetsReplace(this._defaultValueSet,e,n)}valueSetsReplace(e,n,t){let r=null;for(let i=0,a=e.length;null===r&&i<a;i++)r=this.valueSetReplace(e[i],n,t);return r}valueSetReplace(e,n,t){let r=e.indexOf(n);return r>=0?(r+=t?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}$n.INSTANCE=new $n;const Qn=Object.freeze((function(e,n){const t=setTimeout(e.bind(n),0);return{dispose(){clearTimeout(t)}}}));var Zn;!function(e){e.isCancellationToken=function(n){return n===e.None||n===e.Cancelled||(n instanceof et||!(!n||"object"!==typeof n)&&("boolean"===typeof n.isCancellationRequested&&"function"===typeof n.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:S.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Qn})}(Zn||(Zn={}));class et{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Qn:(this._emitter||(this._emitter=new w),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class nt{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new et),this._token}cancel(){this._token?this._token instanceof et&&this._token.cancel():this._token=Zn.Cancelled}dispose(e=!1){var n;e&&this.cancel(),null===(n=this._parentListener)||void 0===n||n.dispose(),this._token?this._token instanceof et&&this._token.dispose():this._token=Zn.None}}class tt{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const rt=new tt,it=new tt,at=new tt,ot=new Array(230),st={},ct=[],lt=Object.create(null),dt=Object.create(null),ut=[],_t=[];for(let Aa=0;Aa<=193;Aa++)ut[Aa]=-1;for(let Aa=0;Aa<=132;Aa++)_t[Aa]=-1;var pt;!function(){const e="",n=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],t=[],r=[];for(const i of n){const[e,n,a,o,s,c,l,d,u]=i;if(r[n]||(r[n]=!0,ct[n]=a,lt[a]=n,dt[a.toLowerCase()]=n,e&&(ut[n]=o,0!==o&&3!==o&&5!==o&&4!==o&&6!==o&&57!==o&&(_t[o]=n))),!t[o]){if(t[o]=!0,!s)throw new Error(`String representation missing for key code ${o} around scan code ${a}`);rt.define(o,s),it.define(o,d||s),at.define(o,u||d||s)}c&&(ot[c]=o),l&&(st[l]=o)}_t[3]=46}(),function(e){e.toString=function(e){return rt.keyCodeToStr(e)},e.fromString=function(e){return rt.strToKeyCode(e)},e.toUserSettingsUS=function(e){return it.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return at.keyCodeToStr(e)},e.fromUserSettings=function(e){return it.strToKeyCode(e)||at.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return rt.keyCodeToStr(e)}}(pt||(pt={}));class ft extends wn{constructor(e,n,t,r){super(e,n,t,r),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=t,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return ft.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return 0===this.getDirection()?new ft(this.startLineNumber,this.startColumn,e,n):new ft(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new In(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new In(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return 0===this.getDirection()?new ft(e,n,this.endLineNumber,this.endColumn):new ft(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new ft(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return 0===n?new ft(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new ft(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new ft(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let t=0,r=e.length;t<r;t++)if(!this.selectionsEqual(e[t],n[t]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,n,t,r,i){return 0===i?new ft(e,n,t,r):new ft(t,r,e,n)}}function mt(e){return"string"===typeof e}const ht=Object.create(null);function gt(e,n){if(mt(n)){const t=ht[n];if(void 0===t)throw new Error(`${e} references an unknown codicon: ${n}`);n=t}return ht[e]=n,{id:e}}const yt={...{add:gt("add",6e4),plus:gt("plus",6e4),gistNew:gt("gist-new",6e4),repoCreate:gt("repo-create",6e4),lightbulb:gt("lightbulb",60001),lightBulb:gt("light-bulb",60001),repo:gt("repo",60002),repoDelete:gt("repo-delete",60002),gistFork:gt("gist-fork",60003),repoForked:gt("repo-forked",60003),gitPullRequest:gt("git-pull-request",60004),gitPullRequestAbandoned:gt("git-pull-request-abandoned",60004),recordKeys:gt("record-keys",60005),keyboard:gt("keyboard",60005),tag:gt("tag",60006),gitPullRequestLabel:gt("git-pull-request-label",60006),tagAdd:gt("tag-add",60006),tagRemove:gt("tag-remove",60006),person:gt("person",60007),personFollow:gt("person-follow",60007),personOutline:gt("person-outline",60007),personFilled:gt("person-filled",60007),gitBranch:gt("git-branch",60008),gitBranchCreate:gt("git-branch-create",60008),gitBranchDelete:gt("git-branch-delete",60008),sourceControl:gt("source-control",60008),mirror:gt("mirror",60009),mirrorPublic:gt("mirror-public",60009),star:gt("star",60010),starAdd:gt("star-add",60010),starDelete:gt("star-delete",60010),starEmpty:gt("star-empty",60010),comment:gt("comment",60011),commentAdd:gt("comment-add",60011),alert:gt("alert",60012),warning:gt("warning",60012),search:gt("search",60013),searchSave:gt("search-save",60013),logOut:gt("log-out",60014),signOut:gt("sign-out",60014),logIn:gt("log-in",60015),signIn:gt("sign-in",60015),eye:gt("eye",60016),eyeUnwatch:gt("eye-unwatch",60016),eyeWatch:gt("eye-watch",60016),circleFilled:gt("circle-filled",60017),primitiveDot:gt("primitive-dot",60017),closeDirty:gt("close-dirty",60017),debugBreakpoint:gt("debug-breakpoint",60017),debugBreakpointDisabled:gt("debug-breakpoint-disabled",60017),debugHint:gt("debug-hint",60017),terminalDecorationSuccess:gt("terminal-decoration-success",60017),primitiveSquare:gt("primitive-square",60018),edit:gt("edit",60019),pencil:gt("pencil",60019),info:gt("info",60020),issueOpened:gt("issue-opened",60020),gistPrivate:gt("gist-private",60021),gitForkPrivate:gt("git-fork-private",60021),lock:gt("lock",60021),mirrorPrivate:gt("mirror-private",60021),close:gt("close",60022),removeClose:gt("remove-close",60022),x:gt("x",60022),repoSync:gt("repo-sync",60023),sync:gt("sync",60023),clone:gt("clone",60024),desktopDownload:gt("desktop-download",60024),beaker:gt("beaker",60025),microscope:gt("microscope",60025),vm:gt("vm",60026),deviceDesktop:gt("device-desktop",60026),file:gt("file",60027),fileText:gt("file-text",60027),more:gt("more",60028),ellipsis:gt("ellipsis",60028),kebabHorizontal:gt("kebab-horizontal",60028),mailReply:gt("mail-reply",60029),reply:gt("reply",60029),organization:gt("organization",60030),organizationFilled:gt("organization-filled",60030),organizationOutline:gt("organization-outline",60030),newFile:gt("new-file",60031),fileAdd:gt("file-add",60031),newFolder:gt("new-folder",60032),fileDirectoryCreate:gt("file-directory-create",60032),trash:gt("trash",60033),trashcan:gt("trashcan",60033),history:gt("history",60034),clock:gt("clock",60034),folder:gt("folder",60035),fileDirectory:gt("file-directory",60035),symbolFolder:gt("symbol-folder",60035),logoGithub:gt("logo-github",60036),markGithub:gt("mark-github",60036),github:gt("github",60036),terminal:gt("terminal",60037),console:gt("console",60037),repl:gt("repl",60037),zap:gt("zap",60038),symbolEvent:gt("symbol-event",60038),error:gt("error",60039),stop:gt("stop",60039),variable:gt("variable",60040),symbolVariable:gt("symbol-variable",60040),array:gt("array",60042),symbolArray:gt("symbol-array",60042),symbolModule:gt("symbol-module",60043),symbolPackage:gt("symbol-package",60043),symbolNamespace:gt("symbol-namespace",60043),symbolObject:gt("symbol-object",60043),symbolMethod:gt("symbol-method",60044),symbolFunction:gt("symbol-function",60044),symbolConstructor:gt("symbol-constructor",60044),symbolBoolean:gt("symbol-boolean",60047),symbolNull:gt("symbol-null",60047),symbolNumeric:gt("symbol-numeric",60048),symbolNumber:gt("symbol-number",60048),symbolStructure:gt("symbol-structure",60049),symbolStruct:gt("symbol-struct",60049),symbolParameter:gt("symbol-parameter",60050),symbolTypeParameter:gt("symbol-type-parameter",60050),symbolKey:gt("symbol-key",60051),symbolText:gt("symbol-text",60051),symbolReference:gt("symbol-reference",60052),goToFile:gt("go-to-file",60052),symbolEnum:gt("symbol-enum",60053),symbolValue:gt("symbol-value",60053),symbolRuler:gt("symbol-ruler",60054),symbolUnit:gt("symbol-unit",60054),activateBreakpoints:gt("activate-breakpoints",60055),archive:gt("archive",60056),arrowBoth:gt("arrow-both",60057),arrowDown:gt("arrow-down",60058),arrowLeft:gt("arrow-left",60059),arrowRight:gt("arrow-right",60060),arrowSmallDown:gt("arrow-small-down",60061),arrowSmallLeft:gt("arrow-small-left",60062),arrowSmallRight:gt("arrow-small-right",60063),arrowSmallUp:gt("arrow-small-up",60064),arrowUp:gt("arrow-up",60065),bell:gt("bell",60066),bold:gt("bold",60067),book:gt("book",60068),bookmark:gt("bookmark",60069),debugBreakpointConditionalUnverified:gt("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:gt("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:gt("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:gt("debug-breakpoint-data-unverified",60072),debugBreakpointData:gt("debug-breakpoint-data",60073),debugBreakpointDataDisabled:gt("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:gt("debug-breakpoint-log-unverified",60074),debugBreakpointLog:gt("debug-breakpoint-log",60075),debugBreakpointLogDisabled:gt("debug-breakpoint-log-disabled",60075),briefcase:gt("briefcase",60076),broadcast:gt("broadcast",60077),browser:gt("browser",60078),bug:gt("bug",60079),calendar:gt("calendar",60080),caseSensitive:gt("case-sensitive",60081),check:gt("check",60082),checklist:gt("checklist",60083),chevronDown:gt("chevron-down",60084),chevronLeft:gt("chevron-left",60085),chevronRight:gt("chevron-right",60086),chevronUp:gt("chevron-up",60087),chromeClose:gt("chrome-close",60088),chromeMaximize:gt("chrome-maximize",60089),chromeMinimize:gt("chrome-minimize",60090),chromeRestore:gt("chrome-restore",60091),circleOutline:gt("circle-outline",60092),circle:gt("circle",60092),debugBreakpointUnverified:gt("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:gt("terminal-decoration-incomplete",60092),circleSlash:gt("circle-slash",60093),circuitBoard:gt("circuit-board",60094),clearAll:gt("clear-all",60095),clippy:gt("clippy",60096),closeAll:gt("close-all",60097),cloudDownload:gt("cloud-download",60098),cloudUpload:gt("cloud-upload",60099),code:gt("code",60100),collapseAll:gt("collapse-all",60101),colorMode:gt("color-mode",60102),commentDiscussion:gt("comment-discussion",60103),creditCard:gt("credit-card",60105),dash:gt("dash",60108),dashboard:gt("dashboard",60109),database:gt("database",60110),debugContinue:gt("debug-continue",60111),debugDisconnect:gt("debug-disconnect",60112),debugPause:gt("debug-pause",60113),debugRestart:gt("debug-restart",60114),debugStart:gt("debug-start",60115),debugStepInto:gt("debug-step-into",60116),debugStepOut:gt("debug-step-out",60117),debugStepOver:gt("debug-step-over",60118),debugStop:gt("debug-stop",60119),debug:gt("debug",60120),deviceCameraVideo:gt("device-camera-video",60121),deviceCamera:gt("device-camera",60122),deviceMobile:gt("device-mobile",60123),diffAdded:gt("diff-added",60124),diffIgnored:gt("diff-ignored",60125),diffModified:gt("diff-modified",60126),diffRemoved:gt("diff-removed",60127),diffRenamed:gt("diff-renamed",60128),diff:gt("diff",60129),diffSidebyside:gt("diff-sidebyside",60129),discard:gt("discard",60130),editorLayout:gt("editor-layout",60131),emptyWindow:gt("empty-window",60132),exclude:gt("exclude",60133),extensions:gt("extensions",60134),eyeClosed:gt("eye-closed",60135),fileBinary:gt("file-binary",60136),fileCode:gt("file-code",60137),fileMedia:gt("file-media",60138),filePdf:gt("file-pdf",60139),fileSubmodule:gt("file-submodule",60140),fileSymlinkDirectory:gt("file-symlink-directory",60141),fileSymlinkFile:gt("file-symlink-file",60142),fileZip:gt("file-zip",60143),files:gt("files",60144),filter:gt("filter",60145),flame:gt("flame",60146),foldDown:gt("fold-down",60147),foldUp:gt("fold-up",60148),fold:gt("fold",60149),folderActive:gt("folder-active",60150),folderOpened:gt("folder-opened",60151),gear:gt("gear",60152),gift:gt("gift",60153),gistSecret:gt("gist-secret",60154),gist:gt("gist",60155),gitCommit:gt("git-commit",60156),gitCompare:gt("git-compare",60157),compareChanges:gt("compare-changes",60157),gitMerge:gt("git-merge",60158),githubAction:gt("github-action",60159),githubAlt:gt("github-alt",60160),globe:gt("globe",60161),grabber:gt("grabber",60162),graph:gt("graph",60163),gripper:gt("gripper",60164),heart:gt("heart",60165),home:gt("home",60166),horizontalRule:gt("horizontal-rule",60167),hubot:gt("hubot",60168),inbox:gt("inbox",60169),issueReopened:gt("issue-reopened",60171),issues:gt("issues",60172),italic:gt("italic",60173),jersey:gt("jersey",60174),json:gt("json",60175),kebabVertical:gt("kebab-vertical",60176),key:gt("key",60177),law:gt("law",60178),lightbulbAutofix:gt("lightbulb-autofix",60179),linkExternal:gt("link-external",60180),link:gt("link",60181),listOrdered:gt("list-ordered",60182),listUnordered:gt("list-unordered",60183),liveShare:gt("live-share",60184),loading:gt("loading",60185),location:gt("location",60186),mailRead:gt("mail-read",60187),mail:gt("mail",60188),markdown:gt("markdown",60189),megaphone:gt("megaphone",60190),mention:gt("mention",60191),milestone:gt("milestone",60192),gitPullRequestMilestone:gt("git-pull-request-milestone",60192),mortarBoard:gt("mortar-board",60193),move:gt("move",60194),multipleWindows:gt("multiple-windows",60195),mute:gt("mute",60196),noNewline:gt("no-newline",60197),note:gt("note",60198),octoface:gt("octoface",60199),openPreview:gt("open-preview",60200),package:gt("package",60201),paintcan:gt("paintcan",60202),pin:gt("pin",60203),play:gt("play",60204),run:gt("run",60204),plug:gt("plug",60205),preserveCase:gt("preserve-case",60206),preview:gt("preview",60207),project:gt("project",60208),pulse:gt("pulse",60209),question:gt("question",60210),quote:gt("quote",60211),radioTower:gt("radio-tower",60212),reactions:gt("reactions",60213),references:gt("references",60214),refresh:gt("refresh",60215),regex:gt("regex",60216),remoteExplorer:gt("remote-explorer",60217),remote:gt("remote",60218),remove:gt("remove",60219),replaceAll:gt("replace-all",60220),replace:gt("replace",60221),repoClone:gt("repo-clone",60222),repoForcePush:gt("repo-force-push",60223),repoPull:gt("repo-pull",60224),repoPush:gt("repo-push",60225),report:gt("report",60226),requestChanges:gt("request-changes",60227),rocket:gt("rocket",60228),rootFolderOpened:gt("root-folder-opened",60229),rootFolder:gt("root-folder",60230),rss:gt("rss",60231),ruby:gt("ruby",60232),saveAll:gt("save-all",60233),saveAs:gt("save-as",60234),save:gt("save",60235),screenFull:gt("screen-full",60236),screenNormal:gt("screen-normal",60237),searchStop:gt("search-stop",60238),server:gt("server",60240),settingsGear:gt("settings-gear",60241),settings:gt("settings",60242),shield:gt("shield",60243),smiley:gt("smiley",60244),sortPrecedence:gt("sort-precedence",60245),splitHorizontal:gt("split-horizontal",60246),splitVertical:gt("split-vertical",60247),squirrel:gt("squirrel",60248),starFull:gt("star-full",60249),starHalf:gt("star-half",60250),symbolClass:gt("symbol-class",60251),symbolColor:gt("symbol-color",60252),symbolConstant:gt("symbol-constant",60253),symbolEnumMember:gt("symbol-enum-member",60254),symbolField:gt("symbol-field",60255),symbolFile:gt("symbol-file",60256),symbolInterface:gt("symbol-interface",60257),symbolKeyword:gt("symbol-keyword",60258),symbolMisc:gt("symbol-misc",60259),symbolOperator:gt("symbol-operator",60260),symbolProperty:gt("symbol-property",60261),wrench:gt("wrench",60261),wrenchSubaction:gt("wrench-subaction",60261),symbolSnippet:gt("symbol-snippet",60262),tasklist:gt("tasklist",60263),telescope:gt("telescope",60264),textSize:gt("text-size",60265),threeBars:gt("three-bars",60266),thumbsdown:gt("thumbsdown",60267),thumbsup:gt("thumbsup",60268),tools:gt("tools",60269),triangleDown:gt("triangle-down",60270),triangleLeft:gt("triangle-left",60271),triangleRight:gt("triangle-right",60272),triangleUp:gt("triangle-up",60273),twitter:gt("twitter",60274),unfold:gt("unfold",60275),unlock:gt("unlock",60276),unmute:gt("unmute",60277),unverified:gt("unverified",60278),verified:gt("verified",60279),versions:gt("versions",60280),vmActive:gt("vm-active",60281),vmOutline:gt("vm-outline",60282),vmRunning:gt("vm-running",60283),watch:gt("watch",60284),whitespace:gt("whitespace",60285),wholeWord:gt("whole-word",60286),window:gt("window",60287),wordWrap:gt("word-wrap",60288),zoomIn:gt("zoom-in",60289),zoomOut:gt("zoom-out",60290),listFilter:gt("list-filter",60291),listFlat:gt("list-flat",60292),listSelection:gt("list-selection",60293),selection:gt("selection",60293),listTree:gt("list-tree",60294),debugBreakpointFunctionUnverified:gt("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:gt("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:gt("debug-breakpoint-function-disabled",60296),debugStackframeActive:gt("debug-stackframe-active",60297),circleSmallFilled:gt("circle-small-filled",60298),debugStackframeDot:gt("debug-stackframe-dot",60298),terminalDecorationMark:gt("terminal-decoration-mark",60298),debugStackframe:gt("debug-stackframe",60299),debugStackframeFocused:gt("debug-stackframe-focused",60299),debugBreakpointUnsupported:gt("debug-breakpoint-unsupported",60300),symbolString:gt("symbol-string",60301),debugReverseContinue:gt("debug-reverse-continue",60302),debugStepBack:gt("debug-step-back",60303),debugRestartFrame:gt("debug-restart-frame",60304),debugAlt:gt("debug-alt",60305),callIncoming:gt("call-incoming",60306),callOutgoing:gt("call-outgoing",60307),menu:gt("menu",60308),expandAll:gt("expand-all",60309),feedback:gt("feedback",60310),gitPullRequestReviewer:gt("git-pull-request-reviewer",60310),groupByRefType:gt("group-by-ref-type",60311),ungroupByRefType:gt("ungroup-by-ref-type",60312),account:gt("account",60313),gitPullRequestAssignee:gt("git-pull-request-assignee",60313),bellDot:gt("bell-dot",60314),debugConsole:gt("debug-console",60315),library:gt("library",60316),output:gt("output",60317),runAll:gt("run-all",60318),syncIgnored:gt("sync-ignored",60319),pinned:gt("pinned",60320),githubInverted:gt("github-inverted",60321),serverProcess:gt("server-process",60322),serverEnvironment:gt("server-environment",60323),pass:gt("pass",60324),issueClosed:gt("issue-closed",60324),stopCircle:gt("stop-circle",60325),playCircle:gt("play-circle",60326),record:gt("record",60327),debugAltSmall:gt("debug-alt-small",60328),vmConnect:gt("vm-connect",60329),cloud:gt("cloud",60330),merge:gt("merge",60331),export:gt("export",60332),graphLeft:gt("graph-left",60333),magnet:gt("magnet",60334),notebook:gt("notebook",60335),redo:gt("redo",60336),checkAll:gt("check-all",60337),pinnedDirty:gt("pinned-dirty",60338),passFilled:gt("pass-filled",60339),circleLargeFilled:gt("circle-large-filled",60340),circleLarge:gt("circle-large",60341),circleLargeOutline:gt("circle-large-outline",60341),combine:gt("combine",60342),gather:gt("gather",60342),table:gt("table",60343),variableGroup:gt("variable-group",60344),typeHierarchy:gt("type-hierarchy",60345),typeHierarchySub:gt("type-hierarchy-sub",60346),typeHierarchySuper:gt("type-hierarchy-super",60347),gitPullRequestCreate:gt("git-pull-request-create",60348),runAbove:gt("run-above",60349),runBelow:gt("run-below",60350),notebookTemplate:gt("notebook-template",60351),debugRerun:gt("debug-rerun",60352),workspaceTrusted:gt("workspace-trusted",60353),workspaceUntrusted:gt("workspace-untrusted",60354),workspaceUnknown:gt("workspace-unknown",60355),terminalCmd:gt("terminal-cmd",60356),terminalDebian:gt("terminal-debian",60357),terminalLinux:gt("terminal-linux",60358),terminalPowershell:gt("terminal-powershell",60359),terminalTmux:gt("terminal-tmux",60360),terminalUbuntu:gt("terminal-ubuntu",60361),terminalBash:gt("terminal-bash",60362),arrowSwap:gt("arrow-swap",60363),copy:gt("copy",60364),personAdd:gt("person-add",60365),filterFilled:gt("filter-filled",60366),wand:gt("wand",60367),debugLineByLine:gt("debug-line-by-line",60368),inspect:gt("inspect",60369),layers:gt("layers",60370),layersDot:gt("layers-dot",60371),layersActive:gt("layers-active",60372),compass:gt("compass",60373),compassDot:gt("compass-dot",60374),compassActive:gt("compass-active",60375),azure:gt("azure",60376),issueDraft:gt("issue-draft",60377),gitPullRequestClosed:gt("git-pull-request-closed",60378),gitPullRequestDraft:gt("git-pull-request-draft",60379),debugAll:gt("debug-all",60380),debugCoverage:gt("debug-coverage",60381),runErrors:gt("run-errors",60382),folderLibrary:gt("folder-library",60383),debugContinueSmall:gt("debug-continue-small",60384),beakerStop:gt("beaker-stop",60385),graphLine:gt("graph-line",60386),graphScatter:gt("graph-scatter",60387),pieChart:gt("pie-chart",60388),bracket:gt("bracket",60175),bracketDot:gt("bracket-dot",60389),bracketError:gt("bracket-error",60390),lockSmall:gt("lock-small",60391),azureDevops:gt("azure-devops",60392),verifiedFilled:gt("verified-filled",60393),newline:gt("newline",60394),layout:gt("layout",60395),layoutActivitybarLeft:gt("layout-activitybar-left",60396),layoutActivitybarRight:gt("layout-activitybar-right",60397),layoutPanelLeft:gt("layout-panel-left",60398),layoutPanelCenter:gt("layout-panel-center",60399),layoutPanelJustify:gt("layout-panel-justify",60400),layoutPanelRight:gt("layout-panel-right",60401),layoutPanel:gt("layout-panel",60402),layoutSidebarLeft:gt("layout-sidebar-left",60403),layoutSidebarRight:gt("layout-sidebar-right",60404),layoutStatusbar:gt("layout-statusbar",60405),layoutMenubar:gt("layout-menubar",60406),layoutCentered:gt("layout-centered",60407),target:gt("target",60408),indent:gt("indent",60409),recordSmall:gt("record-small",60410),errorSmall:gt("error-small",60411),terminalDecorationError:gt("terminal-decoration-error",60411),arrowCircleDown:gt("arrow-circle-down",60412),arrowCircleLeft:gt("arrow-circle-left",60413),arrowCircleRight:gt("arrow-circle-right",60414),arrowCircleUp:gt("arrow-circle-up",60415),layoutSidebarRightOff:gt("layout-sidebar-right-off",60416),layoutPanelOff:gt("layout-panel-off",60417),layoutSidebarLeftOff:gt("layout-sidebar-left-off",60418),blank:gt("blank",60419),heartFilled:gt("heart-filled",60420),map:gt("map",60421),mapHorizontal:gt("map-horizontal",60421),foldHorizontal:gt("fold-horizontal",60421),mapFilled:gt("map-filled",60422),mapHorizontalFilled:gt("map-horizontal-filled",60422),foldHorizontalFilled:gt("fold-horizontal-filled",60422),circleSmall:gt("circle-small",60423),bellSlash:gt("bell-slash",60424),bellSlashDot:gt("bell-slash-dot",60425),commentUnresolved:gt("comment-unresolved",60426),gitPullRequestGoToChanges:gt("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:gt("git-pull-request-new-changes",60428),searchFuzzy:gt("search-fuzzy",60429),commentDraft:gt("comment-draft",60430),send:gt("send",60431),sparkle:gt("sparkle",60432),insert:gt("insert",60433),mic:gt("mic",60434),thumbsdownFilled:gt("thumbsdown-filled",60435),thumbsupFilled:gt("thumbsup-filled",60436),coffee:gt("coffee",60437),snake:gt("snake",60438),game:gt("game",60439),vr:gt("vr",60440),chip:gt("chip",60441),piano:gt("piano",60442),music:gt("music",60443),micFilled:gt("mic-filled",60444),repoFetch:gt("repo-fetch",60445),copilot:gt("copilot",60446),lightbulbSparkle:gt("lightbulb-sparkle",60447),robot:gt("robot",60448),sparkleFilled:gt("sparkle-filled",60449),diffSingle:gt("diff-single",60450),diffMultiple:gt("diff-multiple",60451),surroundWith:gt("surround-with",60452),share:gt("share",60453),gitStash:gt("git-stash",60454),gitStashApply:gt("git-stash-apply",60455),gitStashPop:gt("git-stash-pop",60456),vscode:gt("vscode",60457),vscodeInsiders:gt("vscode-insiders",60458),codeOss:gt("code-oss",60459),runCoverage:gt("run-coverage",60460),runAllCoverage:gt("run-all-coverage",60461),coverage:gt("coverage",60462),githubProject:gt("github-project",60463),mapVertical:gt("map-vertical",60464),foldVertical:gt("fold-vertical",60464),mapVerticalFilled:gt("map-vertical-filled",60465),foldVerticalFilled:gt("fold-vertical-filled",60465)},...{dialogError:gt("dialog-error","error"),dialogWarning:gt("dialog-warning","warning"),dialogInfo:gt("dialog-info","info"),dialogClose:gt("dialog-close","close"),treeItemExpanded:gt("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:gt("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:gt("tree-filter-on-type-off","list-selection"),treeFilterClear:gt("tree-filter-clear","close"),treeItemLoading:gt("tree-item-loading","loading"),menuSelection:gt("menu-selection","check"),menuSubmenu:gt("menu-submenu","chevron-right"),menuBarMore:gt("menubar-more","more"),scrollbarButtonLeft:gt("scrollbar-button-left","triangle-left"),scrollbarButtonRight:gt("scrollbar-button-right","triangle-right"),scrollbarButtonUp:gt("scrollbar-button-up","triangle-up"),scrollbarButtonDown:gt("scrollbar-button-down","triangle-down"),toolBarMore:gt("toolbar-more","more"),quickInputBack:gt("quick-input-back","arrow-left"),dropDownButton:gt("drop-down-button",60084),symbolCustomColor:gt("symbol-customcolor",60252),exportIcon:gt("export",60332),workspaceUnspecified:gt("workspace-unspecified",60355),newLine:gt("newline",60394),thumbsDownFilled:gt("thumbsdown-filled",60435),thumbsUpFilled:gt("thumbsup-filled",60436),gitFetch:gt("git-fetch",60445),lightbulbSparkleAutofix:gt("lightbulb-sparkle-autofix",60447),debugBreakpointPending:gt("debug-breakpoint-pending",60377)}};class vt extends v{get isResolved(){return this._isResolved}constructor(e,n,t){super(),this._registry=e,this._languageId=n,this._factory=t,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class bt{constructor(e,n,t){this.offset=e,this.type=n,this.language=t,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Et,Tt,xt,St,At;!function(e){const n=new Map;n.set(0,yt.symbolMethod),n.set(1,yt.symbolFunction),n.set(2,yt.symbolConstructor),n.set(3,yt.symbolField),n.set(4,yt.symbolVariable),n.set(5,yt.symbolClass),n.set(6,yt.symbolStruct),n.set(7,yt.symbolInterface),n.set(8,yt.symbolModule),n.set(9,yt.symbolProperty),n.set(10,yt.symbolEvent),n.set(11,yt.symbolOperator),n.set(12,yt.symbolUnit),n.set(13,yt.symbolValue),n.set(15,yt.symbolEnum),n.set(14,yt.symbolConstant),n.set(15,yt.symbolEnum),n.set(16,yt.symbolEnumMember),n.set(17,yt.symbolKeyword),n.set(27,yt.symbolSnippet),n.set(18,yt.symbolText),n.set(19,yt.symbolColor),n.set(20,yt.symbolFile),n.set(21,yt.symbolReference),n.set(22,yt.symbolCustomColor),n.set(23,yt.symbolFolder),n.set(24,yt.symbolTypeParameter),n.set(25,yt.account),n.set(26,yt.issues),e.toIcon=function(e){let t=n.get(e);return t||(console.info("No codicon found for CompletionItemKind "+e),t=yt.symbolProperty),t};const t=new Map;t.set("method",0),t.set("function",1),t.set("constructor",2),t.set("field",3),t.set("variable",4),t.set("class",5),t.set("struct",6),t.set("interface",7),t.set("module",8),t.set("property",9),t.set("event",10),t.set("operator",11),t.set("unit",12),t.set("value",13),t.set("constant",14),t.set("enum",15),t.set("enum-member",16),t.set("enumMember",16),t.set("keyword",17),t.set("snippet",27),t.set("text",18),t.set("color",19),t.set("file",20),t.set("reference",21),t.set("customcolor",22),t.set("folder",23),t.set("type-parameter",24),t.set("typeParameter",24),t.set("account",25),t.set("issue",26),e.fromString=function(e,n){let r=t.get(e);return"undefined"!==typeof r||n||(r=9),r}}(Et||(Et={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(Tt||(Tt={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(xt||(xt={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(St||(St={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(At||(At={}));M(0,"array"),M(0,"boolean"),M(0,"class"),M(0,"constant"),M(0,"constructor"),M(0,"enumeration"),M(0,"enumeration member"),M(0,"event"),M(0,"field"),M(0,"file"),M(0,"function"),M(0,"interface"),M(0,"key"),M(0,"method"),M(0,"module"),M(0,"namespace"),M(0,"null"),M(0,"number"),M(0,"object"),M(0,"operator"),M(0,"package"),M(0,"property"),M(0,"string"),M(0,"struct"),M(0,"type parameter"),M(0,"variable");var Lt,Ct,kt,It;!function(e){const n=new Map;n.set(0,yt.symbolFile),n.set(1,yt.symbolModule),n.set(2,yt.symbolNamespace),n.set(3,yt.symbolPackage),n.set(4,yt.symbolClass),n.set(5,yt.symbolMethod),n.set(6,yt.symbolProperty),n.set(7,yt.symbolField),n.set(8,yt.symbolConstructor),n.set(9,yt.symbolEnum),n.set(10,yt.symbolInterface),n.set(11,yt.symbolFunction),n.set(12,yt.symbolVariable),n.set(13,yt.symbolConstant),n.set(14,yt.symbolString),n.set(15,yt.symbolNumber),n.set(16,yt.symbolBoolean),n.set(17,yt.symbolArray),n.set(18,yt.symbolObject),n.set(19,yt.symbolKey),n.set(20,yt.symbolNull),n.set(21,yt.symbolEnumMember),n.set(22,yt.symbolStruct),n.set(23,yt.symbolEvent),n.set(24,yt.symbolOperator),n.set(25,yt.symbolTypeParameter),e.toIcon=function(e){let t=n.get(e);return t||(console.info("No codicon found for SymbolKind "+e),t=yt.symbolProperty),t}}(Lt||(Lt={}));class wt{static fromValue(e){switch(e){case"comment":return wt.Comment;case"imports":return wt.Imports;case"region":return wt.Region}return new wt(e)}constructor(e){this.value=e}}wt.Comment=new wt("comment"),wt.Imports=new wt("imports"),wt.Region=new wt("region"),function(e){e[e.AIGenerated=1]="AIGenerated"}(Ct||(Ct={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(kt||(kt={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(It||(It={}));new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new w,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,n){return this._tokenizationSupports.set(e,n),this.handleChange([e]),g((()=>{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){var t;null===(t=this._factories.get(e))||void 0===t||t.dispose();const r=new vt(this,e,n);return this._factories.set(e,r),g((()=>{const n=this._factories.get(e);n&&n===r&&(this._factories.delete(e),n.dispose())}))}async getOrCreate(e){const n=this.get(e);if(n)return n;const t=this._factories.get(e);return!t||t.isResolved?null:(await t.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const n=this._factories.get(e);return!(n&&!n.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};var Rt,Nt,Dt,Ot,Mt,Pt,Ft,Gt,Bt,Ut,Vt,jt,Ht,Kt,Wt,zt,qt,Jt,Xt,Yt,$t,Qt,Zt,er,nr,tr,rr,ir,ar,or,sr,cr,lr,dr,ur,_r,pr,fr,mr,hr,gr,yr,vr,br,Er,Tr,xr;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Rt||(Rt={})),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(Nt||(Nt={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(Dt||(Dt={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(Ot||(Ot={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(Mt||(Mt={})),function(e){e[e.Deprecated=1]="Deprecated"}(Pt||(Pt={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(Ft||(Ft={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(Gt||(Gt={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(Bt||(Bt={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Ut||(Ut={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Vt||(Vt={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(jt||(jt={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",e[e.quickSuggestions=89]="quickSuggestions",e[e.quickSuggestionsDelay=90]="quickSuggestionsDelay",e[e.readOnly=91]="readOnly",e[e.readOnlyMessage=92]="readOnlyMessage",e[e.renameOnType=93]="renameOnType",e[e.renderControlCharacters=94]="renderControlCharacters",e[e.renderFinalNewline=95]="renderFinalNewline",e[e.renderLineHighlight=96]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=98]="renderValidationDecorations",e[e.renderWhitespace=99]="renderWhitespace",e[e.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",e[e.roundedSelection=101]="roundedSelection",e[e.rulers=102]="rulers",e[e.scrollbar=103]="scrollbar",e[e.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=105]="scrollBeyondLastLine",e[e.scrollPredominantAxis=106]="scrollPredominantAxis",e[e.selectionClipboard=107]="selectionClipboard",e[e.selectionHighlight=108]="selectionHighlight",e[e.selectOnLineNumbers=109]="selectOnLineNumbers",e[e.showFoldingControls=110]="showFoldingControls",e[e.showUnused=111]="showUnused",e[e.snippetSuggestions=112]="snippetSuggestions",e[e.smartSelect=113]="smartSelect",e[e.smoothScrolling=114]="smoothScrolling",e[e.stickyScroll=115]="stickyScroll",e[e.stickyTabStops=116]="stickyTabStops",e[e.stopRenderingLineAfter=117]="stopRenderingLineAfter",e[e.suggest=118]="suggest",e[e.suggestFontSize=119]="suggestFontSize",e[e.suggestLineHeight=120]="suggestLineHeight",e[e.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",e[e.suggestSelection=122]="suggestSelection",e[e.tabCompletion=123]="tabCompletion",e[e.tabIndex=124]="tabIndex",e[e.unicodeHighlighting=125]="unicodeHighlighting",e[e.unusualLineTerminators=126]="unusualLineTerminators",e[e.useShadowDOM=127]="useShadowDOM",e[e.useTabStops=128]="useTabStops",e[e.wordBreak=129]="wordBreak",e[e.wordSegmenterLocales=130]="wordSegmenterLocales",e[e.wordSeparators=131]="wordSeparators",e[e.wordWrap=132]="wordWrap",e[e.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=135]="wordWrapColumn",e[e.wordWrapOverride1=136]="wordWrapOverride1",e[e.wordWrapOverride2=137]="wordWrapOverride2",e[e.wrappingIndent=138]="wrappingIndent",e[e.wrappingStrategy=139]="wrappingStrategy",e[e.showDeprecated=140]="showDeprecated",e[e.inlayHints=141]="inlayHints",e[e.editorClassName=142]="editorClassName",e[e.pixelRatio=143]="pixelRatio",e[e.tabFocusMode=144]="tabFocusMode",e[e.layoutInfo=145]="layoutInfo",e[e.wrappingInfo=146]="wrappingInfo",e[e.defaultColorDecorators=147]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"}(Ht||(Ht={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Kt||(Kt={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(Wt||(Wt={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(zt||(zt={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(qt||(qt={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Jt||(Jt={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(Xt||(Xt={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(Yt||(Yt={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}($t||($t={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(Qt||(Qt={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(Zt||(Zt={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(er||(er={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(nr||(nr={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(tr||(tr={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(rr||(rr={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(ir||(ir={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(ar||(ar={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(or||(or={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(sr||(sr={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(cr||(cr={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(lr||(lr={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(dr||(dr={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(ur||(ur={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(_r||(_r={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(pr||(pr={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(fr||(fr={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(mr||(mr={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(hr||(hr={})),function(e){e[e.Deprecated=1]="Deprecated"}(gr||(gr={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(yr||(yr={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(vr||(vr={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(br||(br={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(Er||(Er={}));class Sr{static chord(e,n){return function(e,n){return(e|(65535&n)<<16>>>0)>>>0}(e,n)}}Sr.CtrlCmd=2048,Sr.Shift=1024,Sr.Alt=512,Sr.WinCtrl=256;class Ar{constructor(e,n){this.uri=e,this.value=n}}class Lr{constructor(e,n){if(this[Tr]="ResourceMap",e instanceof Lr)this.map=new Map(e.map),this.toKey=null!==n&&void 0!==n?n:Lr.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=null!==n&&void 0!==n?n:Lr.defaultToKey;for(const[n,t]of e)this.set(n,t)}else this.map=new Map,this.toKey=null!==e&&void 0!==e?e:Lr.defaultToKey}set(e,n){return this.map.set(this.toKey(e),new Ar(e,n)),this}get(e){var n;return null===(n=this.map.get(this.toKey(e)))||void 0===n?void 0:n.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,n){"undefined"!==typeof n&&(e=e.bind(n));for(const[t,r]of this.map)e(r.value,r.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(Tr=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}Lr.defaultToKey=e=>e.toString();class Cr{constructor(){this[xr]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,n=0){const t=this._map.get(e);if(t)return 0!==n&&this.touch(t,n),t.value}set(e,n,t=0){let r=this._map.get(e);if(r)r.value=n,0!==t&&this.touch(r,t);else{switch(r={key:e,value:n,next:void 0,previous:void 0},t){case 0:case 2:default:this.addItemLast(r);break;case 1:this.addItemFirst(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){const t=this._state;let r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==t)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,n=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return r}values(){const e=this,n=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return r}entries(){const e=this,n=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return r}[(xr=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let n=this._head,t=this.size;for(;n&&t>e;)this._map.delete(n.key),n=n.next,t--;this._head=n,this._size=t,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const n=e.next,t=e.previous;if(!n||!t)throw new Error("Invalid list");n.previous=t,t.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===n||2===n)if(1===n){if(e===this._head)return;const n=e.next,t=e.previous;e===this._tail?(t.next=void 0,this._tail=t):(n.previous=t,t.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===n){if(e===this._tail)return;const n=e.next,t=e.previous;e===this._head?(n.previous=void 0,this._head=n):(n.previous=t,t.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((n,t)=>{e.push([t,n])})),e}fromJSON(e){this.clear();for(const[n,t]of e)this.set(n,t)}}class kr{constructor(){this.map=new Map}add(e,n){let t=this.map.get(e);t||(t=new Set,this.map.set(e,t)),t.add(n)}delete(e,n){const t=this.map.get(e);t&&(t.delete(n),0===t.size&&this.map.delete(e))}forEach(e,n){const t=this.map.get(e);t&&t.forEach(n)}get(e){const n=this.map.get(e);return n||new Set}}new class extends Cr{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}(10);var Ir,wr,Rr;!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Ir||(Ir={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(wr||(wr={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Rr||(Rr={}));function Nr(e,n,t,r,i){return function(e,n,t,r,i){if(0===r)return!0;const a=n.charCodeAt(r-1);if(0!==e.get(a))return!0;if(13===a||10===a)return!0;if(i>0){const t=n.charCodeAt(r);if(0!==e.get(t))return!0}return!1}(e,n,0,r,i)&&function(e,n,t,r,i){if(r+i===t)return!0;const a=n.charCodeAt(r+i);if(0!==e.get(a))return!0;if(13===a||10===a)return!0;if(i>0){const t=n.charCodeAt(r+i-1);if(0!==e.get(t))return!0}return!1}(e,n,t,r,i)}class Dr{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let t;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(t=this._searchRegex.exec(e),!t)return null;const r=t.index,i=t[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength){if(0===i){ge(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||Nr(this._wordSeparators,e,n,r,i))return t}while(t);return null}}function Or(e,n="Unreachable"){throw new Error(n)}function Mr(e){e()||(e(),t(new c("Assertion Failed")))}function Pr(e,n){let t=0;for(;t<e.length-1;){if(!n(e[t],e[t+1]))return!1;t++}return!0}class Fr{static computeUnicodeHighlights(e,n,t){const r=t?t.startLineNumber:1,i=t?t.endLineNumber:e.getLineCount(),a=new Gr(n),o=a.getCandidateCodePoints();let s;s="allNonBasicAscii"===o?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+`[${_e(Array.from(o).map((e=>String.fromCodePoint(e))).join(""))}]`,"g");const c=new Dr(null,s),l=[];let d,u=!1,_=0,p=0,f=0;e:for(let m=r,h=i;m<=h;m++){const n=e.getLineContent(m),t=n.length;c.reset(0);do{if(d=c.next(n),d){let e=d.index,r=d.index+d[0].length;if(e>0){fe(n.charCodeAt(e-1))&&e--}if(r+1<t){fe(n.charCodeAt(r-1))&&r++}const i=n.substring(e,r);let o=Hn(e+1,Un,n,0);o&&o.endColumn<=e+1&&(o=null);const s=a.shouldHighlightNonBasicASCII(i,o?o.word:null);if(0!==s){3===s?_++:2===s?p++:1===s?f++:Or();const n=1e3;if(l.length>=n){u=!0;break e}l.push(new wn(m,e+1,m,r+1))}}}while(d)}return{ranges:l,hasMore:u,ambiguousCharacterCount:_,invisibleCharacterCount:p,nonBasicAsciiCharacterCount:f}}static computeUnicodeHighlightReason(e,n){const t=new Gr(n);switch(t.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),i=t.ambiguousCharacters.getPrimaryConfusable(r),a=be.getLocales().filter((e=>!be.getInstance(new Set([...n.allowedLocales,e])).isAmbiguous(r)));return{kind:0,confusableWith:String.fromCodePoint(i),notAmbiguousInLocales:a}}case 1:return{kind:2}}}}class Gr{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=be.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of Ee.codePoints)Br(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const t=e.codePointAt(0);if(this.allowedCodePoints.has(t))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,i=!1;if(n)for(const o of n){const e=o.codePointAt(0),n=(a=o,ye.test(a));r=r||n,n||this.ambiguousCharacters.isAmbiguous(e)||Ee.isInvisibleCharacter(e)||(i=!0)}var a;return!r&&i?0:this.options.invisibleCharacters&&!Br(e)&&Ee.isInvisibleCharacter(t)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(t)?3:0}}function Br(e){return" "===e||"\n"===e||"\t"===e}class Ur{constructor(e,n,t){this.changes=e,this.moves=n,this.hitTimeout=t}}class Vr{constructor(e,n){this.lineRangeMapping=e,this.changes=n}}class jr{static addRange(e,n){let t=0;for(;t<n.length&&n[t].endExclusive<e.start;)t++;let r=t;for(;r<n.length&&n[r].start<=e.endExclusive;)r++;if(t===r)n.splice(t,0,e);else{const i=Math.min(e.start,n[t].start),a=Math.max(e.endExclusive,n[r-1].endExclusive);n.splice(t,r-t,new jr(i,a))}}static tryCreate(e,n){if(!(e>n))return new jr(e,n)}static ofLength(e){return new jr(0,e)}static ofStartAndLength(e,n){return new jr(e,e+n)}constructor(e,n){if(this.start=e,this.endExclusive=n,e>n)throw new c(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new jr(this.start+e,this.endExclusive+e)}deltaStart(e){return new jr(this.start+e,this.endExclusive)}deltaEnd(e){return new jr(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new jr(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const n=Math.max(this.start,e.start),t=Math.min(this.endExclusive,e.endExclusive);if(n<=t)return new jr(n,t)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new c(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new c(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let n=this.start;n<this.endExclusive;n++)e(n)}}function Hr(e,n){const t=Kr(e,n);return-1===t?void 0:e[t]}function Kr(e,n,t=0,r=e.length){let i=t,a=r;for(;i<a;){const t=Math.floor((i+a)/2);n(e[t])?i=t+1:a=t}return i-1}function Wr(e,n,t=0,r=e.length){let i=t,a=r;for(;i<a;){const t=Math.floor((i+a)/2);n(e[t])?a=t:i=t+1}return i}class zr{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(zr.assertInvariants){if(this._prevFindLastPredicate)for(const n of this._array)if(this._prevFindLastPredicate(n)&&!e(n))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const n=Kr(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,-1===n?void 0:this._array[n]}}zr.assertInvariants=!1;class qr{static fromRangeInclusive(e){return new qr(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let n=new Jr(e[0].slice());for(let t=1;t<e.length;t++)n=n.getUnion(new Jr(e[t].slice()));return n.ranges}static join(e){if(0===e.length)throw new c("lineRanges cannot be empty");let n=e[0].startLineNumber,t=e[0].endLineNumberExclusive;for(let r=1;r<e.length;r++)n=Math.min(n,e[r].startLineNumber),t=Math.max(t,e[r].endLineNumberExclusive);return new qr(n,t)}static ofLength(e,n){return new qr(e,e+n)}static deserialize(e){return new qr(e[0],e[1])}constructor(e,n){if(e>n)throw new c(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=e,this.endLineNumberExclusive=n}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new qr(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new qr(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new qr(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const n=Math.max(this.startLineNumber,e.startLineNumber),t=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(n<=t)return new qr(n,t)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new wn(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new wn(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const n=[];for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)n.push(e(t));return n}forEach(e){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)e(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new jr(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class Jr{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const n=Wr(this._normalizedRanges,(n=>n.endLineNumberExclusive>=e.startLineNumber)),t=Kr(this._normalizedRanges,(n=>n.startLineNumber<=e.endLineNumberExclusive))+1;if(n===t)this._normalizedRanges.splice(n,0,e);else if(n===t-1){const t=this._normalizedRanges[n];this._normalizedRanges[n]=t.join(e)}else{const r=this._normalizedRanges[n].join(this._normalizedRanges[t-1]).join(e);this._normalizedRanges.splice(n,t-n,r)}}contains(e){const n=Hr(this._normalizedRanges,(n=>n.startLineNumber<=e));return!!n&&n.endLineNumberExclusive>e}intersects(e){const n=Hr(this._normalizedRanges,(n=>n.startLineNumber<e.endLineNumberExclusive));return!!n&&n.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const n=[];let t=0,r=0,i=null;for(;t<this._normalizedRanges.length||r<e._normalizedRanges.length;){let a=null;if(t<this._normalizedRanges.length&&r<e._normalizedRanges.length){const n=this._normalizedRanges[t],i=e._normalizedRanges[r];n.startLineNumber<i.startLineNumber?(a=n,t++):(a=i,r++)}else t<this._normalizedRanges.length?(a=this._normalizedRanges[t],t++):(a=e._normalizedRanges[r],r++);null===i?i=a:i.endLineNumberExclusive>=a.startLineNumber?i=new qr(i.startLineNumber,Math.max(i.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(i),i=a)}return null!==i&&n.push(i),new Jr(n)}subtractFrom(e){const n=Wr(this._normalizedRanges,(n=>n.endLineNumberExclusive>=e.startLineNumber)),t=Kr(this._normalizedRanges,(n=>n.startLineNumber<=e.endLineNumberExclusive))+1;if(n===t)return new Jr([e]);const r=[];let i=e.startLineNumber;for(let a=n;a<t;a++){const e=this._normalizedRanges[a];e.startLineNumber>i&&r.push(new qr(i,e.startLineNumber)),i=e.endLineNumberExclusive}return i<e.endLineNumberExclusive&&r.push(new qr(i,e.endLineNumberExclusive)),new Jr(r)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const n=[];let t=0,r=0;for(;t<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const i=this._normalizedRanges[t],a=e._normalizedRanges[r],o=i.intersect(a);o&&!o.isEmpty&&n.push(o),i.endLineNumberExclusive<a.endLineNumberExclusive?t++:r++}return new Jr(n)}getWithDelta(e){return new Jr(this._normalizedRanges.map((n=>n.delta(e))))}}class Xr{static inverse(e,n,t){const r=[];let i=1,a=1;for(const s of e){const e=new Xr(new qr(i,s.original.startLineNumber),new qr(a,s.modified.startLineNumber));e.modified.isEmpty||r.push(e),i=s.original.endLineNumberExclusive,a=s.modified.endLineNumberExclusive}const o=new Xr(new qr(i,n+1),new qr(a,t+1));return o.modified.isEmpty||r.push(o),r}static clip(e,n,t){const r=[];for(const i of e){const e=i.original.intersect(n),a=i.modified.intersect(t);e&&!e.isEmpty&&a&&!a.isEmpty&&r.push(new Xr(e,a))}return r}constructor(e,n){this.original=e,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Xr(this.modified,this.original)}join(e){return new Xr(this.original.join(e.original),this.modified.join(e.modified))}}class Yr extends Xr{static fromRangeMappings(e){const n=qr.join(e.map((e=>qr.fromRangeInclusive(e.originalRange)))),t=qr.join(e.map((e=>qr.fromRangeInclusive(e.modifiedRange))));return new Yr(n,t,e)}constructor(e,n,t){super(e,n),this.innerChanges=t}flip(){var e;return new Yr(this.modified,this.original,null===(e=this.innerChanges)||void 0===e?void 0:e.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new Yr(this.original,this.modified,[new $r(this.original.toExclusiveRange(),this.modified.toExclusiveRange())])}}class $r{constructor(e,n){this.originalRange=e,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new $r(this.modifiedRange,this.originalRange)}}class Qr{computeDiff(e,n,t){var r;const i=new ii(e,n,{maxComputationTime:t.maxComputationTimeMs,shouldIgnoreTrimWhitespace:t.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[];let o=null;for(const s of i.changes){let e,n;e=0===s.originalEndLineNumber?new qr(s.originalStartLineNumber+1,s.originalStartLineNumber+1):new qr(s.originalStartLineNumber,s.originalEndLineNumber+1),n=0===s.modifiedEndLineNumber?new qr(s.modifiedStartLineNumber+1,s.modifiedStartLineNumber+1):new qr(s.modifiedStartLineNumber,s.modifiedEndLineNumber+1);let t=new Yr(e,n,null===(r=s.charChanges)||void 0===r?void 0:r.map((e=>new $r(new wn(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new wn(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));o&&(o.modified.endLineNumberExclusive!==t.modified.startLineNumber&&o.original.endLineNumberExclusive!==t.original.startLineNumber||(t=new Yr(o.original.join(t.original),o.modified.join(t.modified),o.innerChanges&&t.innerChanges?o.innerChanges.concat(t.innerChanges):void 0),a.pop())),a.push(t),o=t}return Mr((()=>Pr(a,((e,n)=>n.original.startLineNumber-e.original.endLineNumberExclusive===n.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<n.original.startLineNumber&&e.modified.endLineNumberExclusive<n.modified.startLineNumber)))),new Ur(a,[],i.quitEarly)}}function Zr(e,n,t,r){return new ze(e,n,t).ComputeDiff(r)}class ei{constructor(e){const n=[],t=[];for(let r=0,i=e.length;r<i;r++)n[r]=ai(e[r],1),t[r]=oi(e[r],1);this.lines=e,this._startColumns=n,this._endColumns=t}getElements(){const e=[];for(let n=0,t=this.lines.length;n<t;n++)e[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,n,t){const r=[],i=[],a=[];let o=0;for(let s=n;s<=t;s++){const n=this.lines[s],c=e?this._startColumns[s]:1,l=e?this._endColumns[s]:n.length+1;for(let e=c;e<l;e++)r[o]=n.charCodeAt(e-1),i[o]=s+1,a[o]=e,o++;!e&&s<t&&(r[o]=10,i[o]=s+1,a[o]=n.length+1,o++)}return new ni(r,i,a)}}class ni{constructor(e,n,t){this._charCodes=e,this._lineNumbers=n,this._columns=t}toString(){return"["+this._charCodes.map(((e,n)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[n]},${this._columns[n]})`)).join(", ")+"]"}_assertIndex(e,n){if(e<0||e>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class ti{constructor(e,n,t,r,i,a,o,s){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=t,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=s}static createFromDiffChange(e,n,t){const r=n.getStartLineNumber(e.originalStart),i=n.getStartColumn(e.originalStart),a=n.getEndLineNumber(e.originalStart+e.originalLength-1),o=n.getEndColumn(e.originalStart+e.originalLength-1),s=t.getStartLineNumber(e.modifiedStart),c=t.getStartColumn(e.modifiedStart),l=t.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),d=t.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new ti(r,i,a,o,s,c,l,d)}}class ri{constructor(e,n,t,r,i){this.originalStartLineNumber=e,this.originalEndLineNumber=n,this.modifiedStartLineNumber=t,this.modifiedEndLineNumber=r,this.charChanges=i}static createFromDiffResult(e,n,t,r,i,a,o){let s,c,l,d,u;if(0===n.originalLength?(s=t.getStartLineNumber(n.originalStart)-1,c=0):(s=t.getStartLineNumber(n.originalStart),c=t.getEndLineNumber(n.originalStart+n.originalLength-1)),0===n.modifiedLength?(l=r.getStartLineNumber(n.modifiedStart)-1,d=0):(l=r.getStartLineNumber(n.modifiedStart),d=r.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&i()){const a=t.createCharSequence(e,n.originalStart,n.originalStart+n.originalLength-1),s=r.createCharSequence(e,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(a.getElements().length>0&&s.getElements().length>0){let e=Zr(a,s,i,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const n=[e[0]];let t=n[0];for(let r=1,i=e.length;r<i;r++){const i=e[r],a=i.originalStart-(t.originalStart+t.originalLength),o=i.modifiedStart-(t.modifiedStart+t.modifiedLength);Math.min(a,o)<3?(t.originalLength=i.originalStart+i.originalLength-t.originalStart,t.modifiedLength=i.modifiedStart+i.modifiedLength-t.modifiedStart):(n.push(i),t=i)}return n}(e)),u=[];for(let n=0,t=e.length;n<t;n++)u.push(ti.createFromDiffChange(e[n],a,s))}}return new ri(s,c,l,d,u)}}class ii{constructor(e,n,t){this.shouldComputeCharChanges=t.shouldComputeCharChanges,this.shouldPostProcessCharChanges=t.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=t.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=t.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=n,this.original=new ei(e),this.modified=new ei(n),this.continueLineDiff=si(t.maxComputationTime),this.continueCharDiff=si(0===t.maxComputationTime?0:Math.min(t.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=Zr(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=e.changes,t=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let t=0,r=n.length;t<r;t++)e.push(ri.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[t],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:t,changes:e}}const r=[];let i=0,a=0;for(let o=-1,s=n.length;o<s;o++){const e=o+1<s?n[o+1]:null,t=e?e.originalStart:this.originalLines.length,c=e?e.modifiedStart:this.modifiedLines.length;for(;i<t&&a<c;){const e=this.originalLines[i],n=this.modifiedLines[a];if(e!==n){{let t=ai(e,1),o=ai(n,1);for(;t>1&&o>1;){if(e.charCodeAt(t-2)!==n.charCodeAt(o-2))break;t--,o--}(t>1||o>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,t,a+1,1,o)}{let t=oi(e,1),o=oi(n,1);const s=e.length+1,c=n.length+1;for(;t<s&&o<c;){if(e.charCodeAt(t-1)!==e.charCodeAt(o-1))break;t++,o++}(t<s||o<c)&&this._pushTrimWhitespaceCharChange(r,i+1,t,s,a+1,o,c)}}i++,a++}e&&(r.push(ri.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=e.originalLength,a+=e.modifiedLength)}return{quitEarly:t,changes:r}}_pushTrimWhitespaceCharChange(e,n,t,r,i,a,o){if(this._mergeTrimWhitespaceCharChange(e,n,t,r,i,a,o))return;let s;this.shouldComputeCharChanges&&(s=[new ti(n,t,n,r,i,a,i,o)]),e.push(new ri(n,n,i,i,s))}_mergeTrimWhitespaceCharChange(e,n,t,r,i,a,o){const s=e.length;if(0===s)return!1;const c=e[s-1];return 0!==c.originalEndLineNumber&&0!==c.modifiedEndLineNumber&&(c.originalEndLineNumber===n&&c.modifiedEndLineNumber===i?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new ti(n,t,n,r,i,a,i,o)),!0):c.originalEndLineNumber+1===n&&c.modifiedEndLineNumber+1===i&&(c.originalEndLineNumber=n,c.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new ti(n,t,n,r,i,a,i,o)),!0))}}function ai(e,n){const t=function(e){for(let n=0,t=e.length;n<t;n++){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===t?n:t+1}function oi(e,n){const t=function(e,n=e.length-1){for(let t=n;t>=0;t--){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}(e);return-1===t?n:t+2}function si(e){if(0===e)return()=>!0;const n=Date.now();return()=>Date.now()-n<e}class ci{static trivial(e,n){return new ci([new li(jr.ofLength(e.length),jr.ofLength(n.length))],!1)}static trivialTimedOut(e,n){return new ci([new li(jr.ofLength(e.length),jr.ofLength(n.length))],!0)}constructor(e,n){this.diffs=e,this.hitTimeout=n}}class li{static invert(e,n){const t=[];return function(e,n){for(let t=0;t<=e.length;t++)n(0===t?void 0:e[t-1],t===e.length?void 0:e[t])}(e,((e,r)=>{t.push(li.fromOffsetPairs(e?e.getEndExclusives():di.zero,r?r.getStarts():new di(n,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+n)))})),t}static fromOffsetPairs(e,n){return new li(new jr(e.offset1,n.offset1),new jr(e.offset2,n.offset2))}constructor(e,n){this.seq1Range=e,this.seq2Range=n}swap(){return new li(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new li(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new li(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new li(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new li(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const n=this.seq1Range.intersect(e.seq1Range),t=this.seq2Range.intersect(e.seq2Range);if(n&&t)return new li(n,t)}getStarts(){return new di(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new di(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class di{constructor(e,n){this.offset1=e,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new di(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}di.zero=new di(0,0),di.max=new di(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class ui{isValid(){return!0}}ui.instance=new ui;class _i{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new c("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class pi{constructor(e,n){this.width=e,this.height=n,this.array=[],this.array=new Array(e*n)}get(e,n){return this.array[e+n*this.width]}set(e,n,t){this.array[e+n*this.width]=t}}function fi(e){return 32===e||9===e}class mi{static getKey(e){let n=this.chrKeys.get(e);return void 0===n&&(n=this.chrKeys.size,this.chrKeys.set(e,n)),n}constructor(e,n,t){this.range=e,this.lines=n,this.source=t,this.histogram=[];let r=0;for(let i=e.startLineNumber-1;i<e.endLineNumberExclusive-1;i++){const e=n[i];for(let n=0;n<e.length;n++){r++;const t=e[n],i=mi.getKey(t);this.histogram[i]=(this.histogram[i]||0)+1}r++;const t=mi.getKey("\n");this.histogram[t]=(this.histogram[t]||0)+1}this.totalCount=r}computeSimilarity(e){var n,t;let r=0;const i=Math.max(this.histogram.length,e.histogram.length);for(let a=0;a<i;a++)r+=Math.abs((null!==(n=this.histogram[a])&&void 0!==n?n:0)-(null!==(t=e.histogram[a])&&void 0!==t?t:0));return 1-r/(this.totalCount+e.totalCount)}}mi.chrKeys=new Map;class hi{compute(e,n,t=ui.instance,r){if(0===e.length||0===n.length)return ci.trivial(e,n);const i=new pi(e.length,n.length),a=new pi(e.length,n.length),o=new pi(e.length,n.length);for(let p=0;p<e.length;p++)for(let s=0;s<n.length;s++){if(!t.isValid())return ci.trivialTimedOut(e,n);const c=0===p?0:i.get(p-1,s),l=0===s?0:i.get(p,s-1);let d;e.getElement(p)===n.getElement(s)?(d=0===p||0===s?0:i.get(p-1,s-1),p>0&&s>0&&3===a.get(p-1,s-1)&&(d+=o.get(p-1,s-1)),d+=r?r(p,s):1):d=-1;const u=Math.max(c,l,d);if(u===d){const e=p>0&&s>0?o.get(p-1,s-1):0;o.set(p,s,e+1),a.set(p,s,3)}else u===c?(o.set(p,s,0),a.set(p,s,1)):u===l&&(o.set(p,s,0),a.set(p,s,2));i.set(p,s,u)}const s=[];let c=e.length,l=n.length;function d(e,n){e+1===c&&n+1===l||s.push(new li(new jr(e+1,c),new jr(n+1,l))),c=e,l=n}let u=e.length-1,_=n.length-1;for(;u>=0&&_>=0;)3===a.get(u,_)?(d(u,_),u--,_--):1===a.get(u,_)?u--:_--;return d(-1,-1),s.reverse(),new ci(s,!1)}}class gi{compute(e,n,t=ui.instance){if(0===e.length||0===n.length)return ci.trivial(e,n);const r=e,i=n;function a(e,n){for(;e<r.length&&n<i.length&&r.getElement(e)===i.getElement(n);)e++,n++;return e}let o=0;const s=new vi;s.set(0,a(0,0));const c=new bi;c.set(0,0===s.get(0)?null:new yi(null,0,0,s.get(0)));let l=0;e:for(;;){if(o++,!t.isValid())return ci.trivialTimedOut(r,i);const e=-Math.min(o,i.length+o%2),n=Math.min(o,r.length+o%2);for(l=e;l<=n;l+=2){let t=0;const o=l===n?-1:s.get(l+1),d=l===e?-1:s.get(l-1)+1;t++;const u=Math.min(Math.max(o,d),r.length),_=u-l;if(t++,u>r.length||_>i.length)continue;const p=a(u,_);s.set(l,p);const f=u===o?c.get(l+1):c.get(l-1);if(c.set(l,p!==u?new yi(f,u,_,p-u):f),s.get(l)===r.length&&s.get(l)-l===i.length)break e}}let d=c.get(l);const u=[];let _=r.length,p=i.length;for(;;){const e=d?d.x+d.length:0,n=d?d.y+d.length:0;if(e===_&&n===p||u.push(new li(new jr(e,_),new jr(n,p))),!d)break;_=d.x,p=d.y,d=d.prev}return u.reverse(),new ci(u,!1)}}class yi{constructor(e,n,t,r){this.prev=e,this.x=n,this.y=t,this.length=r}}class vi{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=n}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=n}}}class bi{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){e<0?(e=-e-1,this.negativeArr[e]=n):this.positiveArr[e]=n}}class Ei{constructor(e,n,t){this.lines=e,this.considerWhitespaceChanges=t,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let r=!1;n.start>0&&n.endExclusive>=e.length&&(n=new jr(n.start-1,n.endExclusive),r=!0),this.lineRange=n,this.firstCharOffsetByLine[0]=0;for(let i=this.lineRange.start;i<this.lineRange.endExclusive;i++){let n=e[i],a=0;if(r)a=n.length,n="",r=!1;else if(!t){const e=n.trimStart();a=n.length-e.length,n=e.trimEnd()}this.additionalOffsetByLine.push(a);for(let e=0;e<n.length;e++)this.elements.push(n.charCodeAt(e));i<e.length-1&&(this.elements.push("\n".charCodeAt(0)),this.firstCharOffsetByLine[i-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new jr(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const n=Ai(e>0?this.elements[e-1]:-1),t=Ai(e<this.elements.length?this.elements[e]:-1);if(7===n&&8===t)return 0;if(8===n)return 150;let r=0;return n!==t&&(r+=10,0===n&&1===t&&(r+=1)),r+=Si(n),r+=Si(t),r}translateOffset(e){if(this.lineRange.isEmpty)return new In(this.lineRange.start+1,1);const n=Kr(this.firstCharOffsetByLine,(n=>n<=e));return new In(this.lineRange.start+n+1,e-this.firstCharOffsetByLine[n]+this.additionalOffsetByLine[n]+1)}translateRange(e){return wn.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!Ti(this.elements[e]))return;let n=e;for(;n>0&&Ti(this.elements[n-1]);)n--;let t=e;for(;t<this.elements.length&&Ti(this.elements[t]);)t++;return new jr(n,t)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,n){return this.elements[e]===this.elements[n]}extendToFullLines(e){var n,t;const r=null!==(n=Hr(this.firstCharOffsetByLine,(n=>n<=e.start)))&&void 0!==n?n:0,i=null!==(t=function(e,n){const t=Wr(e,n);return t===e.length?void 0:e[t]}(this.firstCharOffsetByLine,(n=>e.endExclusive<=n)))&&void 0!==t?t:this.elements.length;return new jr(r,i)}}function Ti(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const xi={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Si(e){return xi[e]}function Ai(e){return 10===e?8:13===e?7:fi(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function Li(e,n,t,r,i,a){let{moves:o,excludedChanges:s}=function(e,n,t,r){const i=[],a=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new mi(e.original,n,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new mi(e.modified,t,e)))),s=new Set;for(const c of a){let e,n=-1;for(const t of o){const r=c.computeSimilarity(t);r>n&&(n=r,e=t)}if(n>.9&&e&&(o.delete(e),i.push(new Xr(c.range,e.range)),s.add(c.source),s.add(e.source)),!r.isValid())return{moves:i,excludedChanges:s}}return{moves:i,excludedChanges:s}}(e,n,t,a);if(!a.isValid())return[];const c=function(e,n,t,r,i,a){const o=[],s=new kr;for(const p of e)for(let e=p.original.startLineNumber;e<p.original.endLineNumberExclusive-2;e++){const t=`${n[e-1]}:${n[e+1-1]}:${n[e+2-1]}`;s.add(t,{range:new qr(e,e+3)})}const c=[];e.sort(Nn((e=>e.modified.startLineNumber),Dn));for(const p of e){let e=[];for(let n=p.modified.startLineNumber;n<p.modified.endLineNumberExclusive-2;n++){const r=`${t[n-1]}:${t[n+1-1]}:${t[n+2-1]}`,i=new qr(n,n+3),a=[];s.forEach(r,(({range:n})=>{for(const r of e)if(r.originalLineRange.endLineNumberExclusive+1===n.endLineNumberExclusive&&r.modifiedLineRange.endLineNumberExclusive+1===i.endLineNumberExclusive)return r.originalLineRange=new qr(r.originalLineRange.startLineNumber,n.endLineNumberExclusive),r.modifiedLineRange=new qr(r.modifiedLineRange.startLineNumber,i.endLineNumberExclusive),void a.push(r);const t={modifiedLineRange:i,originalLineRange:n};c.push(t),a.push(t)})),e=a}if(!a.isValid())return[]}c.sort((l=Nn((e=>e.modifiedLineRange.length),Dn),(e,n)=>-l(e,n)));var l;const d=new Jr,u=new Jr;for(const p of c){const e=p.modifiedLineRange.startLineNumber-p.originalLineRange.startLineNumber,n=d.subtractFrom(p.modifiedLineRange),t=u.subtractFrom(p.originalLineRange).getWithDelta(e),r=n.getIntersection(t);for(const i of r.ranges){if(i.length<3)continue;const n=i,t=i.delta(-e);o.push(new Xr(t,n)),d.addRange(n),u.addRange(t)}}o.sort(Nn((e=>e.original.startLineNumber),Dn));const _=new zr(e);for(let p=0;p<o.length;p++){const n=o[p],t=_.findLastMonotonous((e=>e.original.startLineNumber<=n.original.startLineNumber)),s=Hr(e,(e=>e.modified.startLineNumber<=n.modified.startLineNumber)),c=Math.max(n.original.startLineNumber-t.original.startLineNumber,n.modified.startLineNumber-s.modified.startLineNumber),l=_.findLastMonotonous((e=>e.original.startLineNumber<n.original.endLineNumberExclusive)),f=Hr(e,(e=>e.modified.startLineNumber<n.modified.endLineNumberExclusive)),m=Math.max(l.original.endLineNumberExclusive-n.original.endLineNumberExclusive,f.modified.endLineNumberExclusive-n.modified.endLineNumberExclusive);let h,g;for(h=0;h<c;h++){const e=n.original.startLineNumber-h-1,t=n.modified.startLineNumber-h-1;if(e>r.length||t>i.length)break;if(d.contains(t)||u.contains(e))break;if(!Ci(r[e-1],i[t-1],a))break}for(h>0&&(u.addRange(new qr(n.original.startLineNumber-h,n.original.startLineNumber)),d.addRange(new qr(n.modified.startLineNumber-h,n.modified.startLineNumber))),g=0;g<m;g++){const e=n.original.endLineNumberExclusive+g,t=n.modified.endLineNumberExclusive+g;if(e>r.length||t>i.length)break;if(d.contains(t)||u.contains(e))break;if(!Ci(r[e-1],i[t-1],a))break}g>0&&(u.addRange(new qr(n.original.endLineNumberExclusive,n.original.endLineNumberExclusive+g)),d.addRange(new qr(n.modified.endLineNumberExclusive,n.modified.endLineNumberExclusive+g))),(h>0||g>0)&&(o[p]=new Xr(new qr(n.original.startLineNumber-h,n.original.endLineNumberExclusive+g),new qr(n.modified.startLineNumber-h,n.modified.endLineNumberExclusive+g)))}return o}(e.filter((e=>!s.has(e))),r,i,n,t,a);return function(e,n){for(const t of n)e.push(t)}(o,c),o=function(e){if(0===e.length)return e;e.sort(Nn((e=>e.original.startLineNumber),Dn));const n=[e[0]];for(let t=1;t<e.length;t++){const r=n[n.length-1],i=e[t],a=i.original.startLineNumber-r.original.endLineNumberExclusive,o=i.modified.startLineNumber-r.modified.endLineNumberExclusive;a>=0&&o>=0&&a+o<=2?n[n.length-1]=r.join(i):n.push(i)}return n}(o),o=o.filter((e=>{const t=e.original.toOffsetRange().slice(n).map((e=>e.trim()));return t.join("\n").length>=15&&function(e,n){let t=0;for(const r of e)n(r)&&t++;return t}(t,(e=>e.length>=2))>=2})),o=function(e,n){const t=new zr(e);return n=n.filter((n=>(t.findLastMonotonous((e=>e.original.startLineNumber<n.original.endLineNumberExclusive))||new Xr(new qr(1,1),new qr(1,1)))!==Hr(e,(e=>e.modified.startLineNumber<n.modified.endLineNumberExclusive)))),n}(e,o),o}function Ci(e,n,t){if(e.trim()===n.trim())return!0;if(e.length>300&&n.length>300)return!1;const r=(new gi).compute(new Ei([e],new jr(0,1),!1),new Ei([n],new jr(0,1),!1),t);let i=0;const a=li.invert(r.diffs,e.length);for(const s of a)s.seq1Range.forEach((n=>{fi(e.charCodeAt(n))||i++}));const o=function(n){let t=0;for(let r=0;r<e.length;r++)fi(n.charCodeAt(r))||t++;return t}(e.length>n.length?e:n);return i/o>.6&&o>10}function ki(e,n,t){let r=t;return r=Ii(e,n,r),r=Ii(e,n,r),r=function(e,n,t){if(!e.getBoundaryScore||!n.getBoundaryScore)return t;for(let r=0;r<t.length;r++){const i=r>0?t[r-1]:void 0,a=t[r],o=r+1<t.length?t[r+1]:void 0,s=new jr(i?i.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),c=new jr(i?i.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:n.length);a.seq1Range.isEmpty?t[r]=wi(a,e,n,s,c):a.seq2Range.isEmpty&&(t[r]=wi(a.swap(),n,e,c,s).swap())}return t}(e,n,r),r}function Ii(e,n,t){if(0===t.length)return t;const r=[];r.push(t[0]);for(let a=1;a<t.length;a++){const i=r[r.length-1];let o=t[a];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const t=o.seq1Range.start-i.seq1Range.endExclusive;let a;for(a=1;a<=t&&(e.getElement(o.seq1Range.start-a)===e.getElement(o.seq1Range.endExclusive-a)&&n.getElement(o.seq2Range.start-a)===n.getElement(o.seq2Range.endExclusive-a));a++);if(a--,a===t){r[r.length-1]=new li(new jr(i.seq1Range.start,o.seq1Range.endExclusive-t),new jr(i.seq2Range.start,o.seq2Range.endExclusive-t));continue}o=o.delta(-a)}r.push(o)}const i=[];for(let a=0;a<r.length-1;a++){const t=r[a+1];let o=r[a];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const i=t.seq1Range.start-o.seq1Range.endExclusive;let s;for(s=0;s<i&&(e.isStronglyEqual(o.seq1Range.start+s,o.seq1Range.endExclusive+s)&&n.isStronglyEqual(o.seq2Range.start+s,o.seq2Range.endExclusive+s));s++);if(s===i){r[a+1]=new li(new jr(o.seq1Range.start+i,t.seq1Range.endExclusive),new jr(o.seq2Range.start+i,t.seq2Range.endExclusive));continue}s>0&&(o=o.delta(s))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function wi(e,n,t,r,i){let a=1;for(;e.seq1Range.start-a>=r.start&&e.seq2Range.start-a>=i.start&&t.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;e.seq1Range.start+o<r.endExclusive&&e.seq2Range.endExclusive+o<i.endExclusive&&t.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===a&&0===o)return e;let s=0,c=-1;for(let l=-a;l<=o;l++){const r=e.seq2Range.start+l,i=e.seq2Range.endExclusive+l,a=e.seq1Range.start+l,o=n.getBoundaryScore(a)+t.getBoundaryScore(r)+t.getBoundaryScore(i);o>c&&(c=o,s=l)}return e.delta(s)}class Ri{constructor(e,n){this.trimmedHash=e,this.lines=n}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:Ni(this.lines[e-1]))+(e===this.lines.length?0:Ni(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,n){return this.lines[e]===this.lines[n]}}function Ni(e){let n=0;for(;n<e.length&&(32===e.charCodeAt(n)||9===e.charCodeAt(n));)n++;return n}class Di{constructor(){this.dynamicProgrammingDiffing=new hi,this.myersDiffingAlgorithm=new gi}computeDiff(e,n,t){if(e.length<=1&&function(e,n,t=(e,n)=>e===n){if(e===n)return!0;if(!e||!n)return!1;if(e.length!==n.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!t(e[r],n[r]))return!1;return!0}(e,n,((e,n)=>e===n)))return new Ur([],[],!1);if(1===e.length&&0===e[0].length||1===n.length&&0===n[0].length)return new Ur([new Yr(new qr(1,e.length+1),new qr(1,n.length+1),[new $r(new wn(1,1,e.length,e[0].length+1),new wn(1,1,n.length,n[0].length+1))])],[],!1);const r=0===t.maxComputationTimeMs?ui.instance:new _i(t.maxComputationTimeMs),i=!t.ignoreTrimWhitespace,a=new Map;function o(e){let n=a.get(e);return void 0===n&&(n=a.size,a.set(e,n)),n}const s=e.map((e=>o(e.trim()))),c=n.map((e=>o(e.trim()))),l=new Ri(s,e),d=new Ri(c,n),u=(()=>l.length+d.length<1700?this.dynamicProgrammingDiffing.compute(l,d,r,((t,r)=>e[t]===n[r]?0===n[r].length?.1:1+Math.log(1+n[r].length):.99)):this.myersDiffingAlgorithm.compute(l,d))();let _=u.diffs,p=u.hitTimeout;_=ki(l,d,_),_=function(e,n,t){let r=t;if(0===r.length)return r;let i,a=0;do{i=!1;const o=[r[0]];for(let s=1;s<r.length;s++){const c=r[s],l=o[o.length-1];function d(n,t){const r=new jr(l.seq1Range.endExclusive,c.seq1Range.start);return e.getText(r).replace(/\s/g,"").length<=4&&(n.seq1Range.length+n.seq2Range.length>5||t.seq1Range.length+t.seq2Range.length>5)}d(l,c)?(i=!0,o[o.length-1]=o[o.length-1].join(c)):o.push(c)}r=o}while(a++<10&&i);return r}(l,0,_);const f=[],m=t=>{if(i)for(let a=0;a<t;a++){const t=h+a,o=g+a;if(e[t]!==n[o]){const a=this.refineDiff(e,n,new li(new jr(t,t+1),new jr(o,o+1)),r,i);for(const e of a.mappings)f.push(e);a.hitTimeout&&(p=!0)}}};let h=0,g=0;for(const b of _){Mr((()=>b.seq1Range.start-h===b.seq2Range.start-g));m(b.seq1Range.start-h),h=b.seq1Range.endExclusive,g=b.seq2Range.endExclusive;const t=this.refineDiff(e,n,b,r,i);t.hitTimeout&&(p=!0);for(const e of t.mappings)f.push(e)}m(e.length-h);const y=Oi(f,e,n);let v=[];return t.computeMoves&&(v=this.computeMoves(y,e,n,s,c,r,i)),Mr((()=>{function t(e,n){if(e.lineNumber<1||e.lineNumber>n.length)return!1;const t=n[e.lineNumber-1];return!(e.column<1||e.column>t.length+1)}function r(e,n){return!(e.startLineNumber<1||e.startLineNumber>n.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>n.length+1)}for(const i of y){if(!i.innerChanges)return!1;for(const r of i.innerChanges){if(!(t(r.modifiedRange.getStartPosition(),n)&&t(r.modifiedRange.getEndPosition(),n)&&t(r.originalRange.getStartPosition(),e)&&t(r.originalRange.getEndPosition(),e)))return!1}if(!r(i.modified,n)||!r(i.original,e))return!1}return!0})),new Ur(y,v,p)}computeMoves(e,n,t,r,i,a,o){return Li(e,n,t,r,i,a).map((e=>{const r=Oi(this.refineDiff(n,t,new li(e.original.toOffsetRange(),e.modified.toOffsetRange()),a,o).mappings,n,t,!0);return new Vr(e,r)}))}refineDiff(e,n,t,r,i){const a=new Ei(e,t.seq1Range,i),o=new Ei(n,t.seq2Range,i),s=a.length+o.length<500?this.dynamicProgrammingDiffing.compute(a,o,r):this.myersDiffingAlgorithm.compute(a,o,r);let c=s.diffs;c=ki(a,o,c),c=function(e,n,t){const r=li.invert(t,e.length),i=[];let a=new di(0,0);function o(t,o){if(t.offset1<a.offset1||t.offset2<a.offset2)return;const s=e.findWordContaining(t.offset1),c=n.findWordContaining(t.offset2);if(!s||!c)return;let l=new li(s,c);const d=l.intersect(o);let u=d.seq1Range.length,_=d.seq2Range.length;for(;r.length>0;){const t=r[0];if(!t.seq1Range.intersects(l.seq1Range)&&!t.seq2Range.intersects(l.seq2Range))break;const i=e.findWordContaining(t.seq1Range.start),a=n.findWordContaining(t.seq2Range.start),o=new li(i,a),s=o.intersect(t);if(u+=s.seq1Range.length,_+=s.seq2Range.length,l=l.join(o),!(l.seq1Range.endExclusive>=t.seq1Range.endExclusive))break;r.shift()}u+_<2*(l.seq1Range.length+l.seq2Range.length)/3&&i.push(l),a=l.getEndExclusives()}for(;r.length>0;){const e=r.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,n){const t=[];for(;e.length>0||n.length>0;){const r=e[0],i=n[0];let a;a=r&&(!i||r.seq1Range.start<i.seq1Range.start)?e.shift():n.shift(),t.length>0&&t[t.length-1].seq1Range.endExclusive>=a.seq1Range.start?t[t.length-1]=t[t.length-1].join(a):t.push(a)}return t}(t,i)}(a,o,c),c=function(e,n,t){const r=[];for(const i of t){const e=r[r.length-1];e&&(i.seq1Range.start-e.seq1Range.endExclusive<=2||i.seq2Range.start-e.seq2Range.endExclusive<=2)?r[r.length-1]=new li(e.seq1Range.join(i.seq1Range),e.seq2Range.join(i.seq2Range)):r.push(i)}return r}(0,0,c),c=function(e,n,t){let r=t;if(0===r.length)return r;let i,a=0;do{i=!1;const s=[r[0]];for(let c=1;c<r.length;c++){const l=r[c],d=s[s.length-1];function u(t,r){const i=new jr(d.seq1Range.endExclusive,l.seq1Range.start);if(e.countLinesIn(i)>5||i.length>500)return!1;const a=e.getText(i).trim();if(a.length>20||a.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(t.seq1Range),s=t.seq1Range.length,c=n.countLinesIn(t.seq2Range),u=t.seq2Range.length,_=e.countLinesIn(r.seq1Range),p=r.seq1Range.length,f=n.countLinesIn(r.seq2Range),m=r.seq2Range.length;function h(e){return Math.min(e,130)}return Math.pow(Math.pow(h(40*o+s),1.5)+Math.pow(h(40*c+u),1.5),1.5)+Math.pow(Math.pow(h(40*_+p),1.5)+Math.pow(h(40*f+m),1.5),1.5)>74184.96480721243}u(d,l)?(i=!0,s[s.length-1]=s[s.length-1].join(l)):s.push(l)}r=s}while(a++<10&&i);const o=[];return function(e,n){for(let t=0;t<e.length;t++)n(0===t?void 0:e[t-1],e[t],t+1===e.length?void 0:e[t+1])}(r,((n,t,r)=>{let i=t;function a(e){return e.length>0&&e.trim().length<=3&&t.seq1Range.length+t.seq2Range.length>100}const s=e.extendToFullLines(t.seq1Range),c=e.getText(new jr(s.start,t.seq1Range.start));a(c)&&(i=i.deltaStart(-c.length));const l=e.getText(new jr(t.seq1Range.endExclusive,s.endExclusive));a(l)&&(i=i.deltaEnd(l.length));const d=li.fromOffsetPairs(n?n.getEndExclusives():di.zero,r?r.getStarts():di.max),u=i.intersect(d);o.length>0&&u.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(u):o.push(u)})),o}(a,o,c);return{mappings:c.map((e=>new $r(a.translateRange(e.seq1Range),o.translateRange(e.seq2Range)))),hitTimeout:s.hitTimeout}}}function Oi(e,n,t,r=!1){const i=[];for(const a of function*(e,n){let t,r;for(const i of e)void 0!==r&&n(r,i)?t.push(i):(t&&(yield t),t=[i]),r=i;t&&(yield t)}(e.map((e=>function(e,n,t){let r=0,i=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1);e.modifiedRange.startColumn-1>=t[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=n[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);const a=new qr(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),o=new qr(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new Yr(a,o,[e])}(e,n,t))),((e,n)=>e.original.overlapOrTouch(n.original)||e.modified.overlapOrTouch(n.modified)))){const e=a[0],n=a[a.length-1];i.push(new Yr(e.original.join(n.original),e.modified.join(n.modified),a.map((e=>e.innerChanges[0]))))}return Mr((()=>{if(!r&&i.length>0){if(i[0].modified.startLineNumber!==i[0].original.startLineNumber)return!1;if(t.length-i[i.length-1].modified.endLineNumberExclusive!==n.length-i[i.length-1].original.endLineNumberExclusive)return!1}return Pr(i,((e,n)=>n.original.startLineNumber-e.original.endLineNumberExclusive===n.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<n.original.startLineNumber&&e.modified.endLineNumberExclusive<n.modified.startLineNumber))})),i}const Mi=()=>new Qr,Pi=()=>new Di;function Fi(e,n){const t=Math.pow(10,n);return Math.round(e*t)/t}class Gi{constructor(e,n,t,r=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,n)),this.b=0|Math.min(255,Math.max(0,t)),this.a=Fi(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.r===n.r&&e.g===n.g&&e.b===n.b&&e.a===n.a}}class Bi{constructor(e,n,t,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Fi(Math.max(Math.min(1,n),0),3),this.l=Fi(Math.max(Math.min(1,t),0),3),this.a=Fi(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.l===n.l&&e.a===n.a}static fromRGBA(e){const n=e.r/255,t=e.g/255,r=e.b/255,i=e.a,a=Math.max(n,t,r),o=Math.min(n,t,r);let s=0,c=0;const l=(o+a)/2,d=a-o;if(d>0){switch(c=Math.min(l<=.5?d/(2*l):d/(2-2*l),1),a){case n:s=(t-r)/d+(t<r?6:0);break;case t:s=(r-n)/d+2;break;case r:s=(n-t)/d+4}s*=60,s=Math.round(s)}return new Bi(s,c,l,i)}static _hue2rgb(e,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+6*(n-e)*t:t<.5?n:t<2/3?e+(n-e)*(2/3-t)*6:e}static toRGBA(e){const n=e.h/360,{s:t,l:r,a:i}=e;let a,o,s;if(0===t)a=o=s=r;else{const e=r<.5?r*(1+t):r+t-r*t,i=2*r-e;a=Bi._hue2rgb(i,e,n+1/3),o=Bi._hue2rgb(i,e,n),s=Bi._hue2rgb(i,e,n-1/3)}return new Gi(Math.round(255*a),Math.round(255*o),Math.round(255*s),i)}}class Ui{constructor(e,n,t,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Fi(Math.max(Math.min(1,n),0),3),this.v=Fi(Math.max(Math.min(1,t),0),3),this.a=Fi(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.v===n.v&&e.a===n.a}static fromRGBA(e){const n=e.r/255,t=e.g/255,r=e.b/255,i=Math.max(n,t,r),a=i-Math.min(n,t,r),o=0===i?0:a/i;let s;return s=0===a?0:i===n?((t-r)/a%6+6)%6:i===t?(r-n)/a+2:(n-t)/a+4,new Ui(Math.round(60*s),o,i,e.a)}static toRGBA(e){const{h:n,s:t,v:r,a:i}=e,a=r*t,o=a*(1-Math.abs(n/60%2-1)),s=r-a;let[c,l,d]=[0,0,0];return n<60?(c=a,l=o):n<120?(c=o,l=a):n<180?(l=a,d=o):n<240?(l=o,d=a):n<300?(c=o,d=a):n<=360&&(c=a,d=o),c=Math.round(255*(c+s)),l=Math.round(255*(l+s)),d=Math.round(255*(d+s)),new Gi(c,l,d,i)}}class Vi{static fromHex(e){return Vi.Format.CSS.parseHex(e)||Vi.red}static equals(e,n){return!e&&!n||!(!e||!n)&&e.equals(n)}get hsla(){return this._hsla?this._hsla:Bi.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Ui.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof Gi)this.rgba=e;else if(e instanceof Bi)this._hsla=e,this.rgba=Bi.toRGBA(e);else{if(!(e instanceof Ui))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=Ui.toRGBA(e)}}equals(e){return!!e&&Gi.equals(this.rgba,e.rgba)&&Bi.equals(this.hsla,e.hsla)&&Ui.equals(this.hsva,e.hsva)}getRelativeLuminance(){return Fi(.2126*Vi._relativeLuminanceForComponent(this.rgba.r)+.7152*Vi._relativeLuminanceForComponent(this.rgba.g)+.0722*Vi._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const n=e/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new Vi(new Bi(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new Vi(new Bi(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:n,g:t,b:r,a:i}=this.rgba;return new Vi(new Gi(n,t,r,i*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new Vi(new Gi(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:n,g:t,b:r,a:i}=this.rgba;return new Vi(new Gi(e.rgba.r-i*(e.rgba.r-n),e.rgba.g-i*(e.rgba.g-t),e.rgba.b-i*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=Vi.Format.CSS.format(this)),this._toString}static getLighterColor(e,n,t){if(e.isLighterThan(n))return e;t=t||.5;const r=e.getRelativeLuminance(),i=n.getRelativeLuminance();return t=t*(i-r)/i,e.lighten(t)}static getDarkerColor(e,n,t){if(e.isDarkerThan(n))return e;t=t||.5;const r=e.getRelativeLuminance();return t=t*(r-n.getRelativeLuminance())/r,e.darken(t)}}function ji(e){const n=[];for(const t of e){const e=Number(t);(e||0===e&&""!==t.replace(/\s/g,""))&&n.push(e)}return n}function Hi(e,n,t,r){return{red:e/255,blue:t/255,green:n/255,alpha:r}}function Ki(e,n){const t=n.index,r=n[0].length;if(!t)return;const i=e.positionAt(t);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Wi(e,n){if(!e)return;const t=Vi.Format.CSS.parseHex(n);return t?{range:e,color:Hi(t.rgba.r,t.rgba.g,t.rgba.b,t.rgba.a)}:void 0}function zi(e,n,t){if(!e||1!==n.length)return;const r=ji(n[0].values());return{range:e,color:Hi(r[0],r[1],r[2],t?r[3]:1)}}function qi(e,n,t){if(!e||1!==n.length)return;const r=ji(n[0].values()),i=new Vi(new Bi(r[0],r[1]/100,r[2]/100,t?r[3]:1));return{range:e,color:Hi(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}function Ji(e,n){return"string"===typeof e?[...e.matchAll(n)]:e.findMatches(n)}function Xi(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const n=[],t=Ji(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(t.length>0)for(const r of t){const t=r.filter((e=>void 0!==e)),i=t[1],a=t[2];if(!a)continue;let o;if("rgb"===i){const n=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=zi(Ki(e,r),Ji(a,n),!1)}else if("rgba"===i){const n=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=zi(Ki(e,r),Ji(a,n),!0)}else if("hsl"===i){const n=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=qi(Ki(e,r),Ji(a,n),!1)}else if("hsla"===i){const n=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=qi(Ki(e,r),Ji(a,n),!0)}else"#"===i&&(o=Wi(Ki(e,r),i+a));o&&n.push(o)}return n}(e):[]}Vi.white=new Vi(new Gi(255,255,255,1)),Vi.black=new Vi(new Gi(0,0,0,1)),Vi.red=new Vi(new Gi(255,0,0,1)),Vi.blue=new Vi(new Gi(0,0,255,1)),Vi.green=new Vi(new Gi(0,255,0,1)),Vi.cyan=new Vi(new Gi(0,255,255,1)),Vi.lightgrey=new Vi(new Gi(211,211,211,1)),Vi.transparent=new Vi(new Gi(0,0,0,0)),function(e){let n;!function(n){let t;!function(n){function t(e){const n=e.toString(16);return 2!==n.length?"0"+n:n}function r(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}n.formatRGB=function(n){return 1===n.rgba.a?`rgb(${n.rgba.r}, ${n.rgba.g}, ${n.rgba.b})`:e.Format.CSS.formatRGBA(n)},n.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},n.formatHSL=function(n){return 1===n.hsla.a?`hsl(${n.hsla.h}, ${(100*n.hsla.s).toFixed(2)}%, ${(100*n.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(n)},n.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},n.formatHex=function(e){return`#${t(e.rgba.r)}${t(e.rgba.g)}${t(e.rgba.b)}`},n.formatHexA=function(n,r=!1){return r&&1===n.rgba.a?e.Format.CSS.formatHex(n):`#${t(n.rgba.r)}${t(n.rgba.g)}${t(n.rgba.b)}${t(Math.round(255*n.rgba.a))}`},n.format=function(n){return n.isOpaque()?e.Format.CSS.formatHex(n):e.Format.CSS.formatRGBA(n)},n.parseHex=function(n){const t=n.length;if(0===t)return null;if(35!==n.charCodeAt(0))return null;if(7===t){const t=16*r(n.charCodeAt(1))+r(n.charCodeAt(2)),i=16*r(n.charCodeAt(3))+r(n.charCodeAt(4)),a=16*r(n.charCodeAt(5))+r(n.charCodeAt(6));return new e(new Gi(t,i,a,1))}if(9===t){const t=16*r(n.charCodeAt(1))+r(n.charCodeAt(2)),i=16*r(n.charCodeAt(3))+r(n.charCodeAt(4)),a=16*r(n.charCodeAt(5))+r(n.charCodeAt(6)),o=16*r(n.charCodeAt(7))+r(n.charCodeAt(8));return new e(new Gi(t,i,a,o/255))}if(4===t){const t=r(n.charCodeAt(1)),i=r(n.charCodeAt(2)),a=r(n.charCodeAt(3));return new e(new Gi(16*t+t,16*i+i,16*a+a))}if(5===t){const t=r(n.charCodeAt(1)),i=r(n.charCodeAt(2)),a=r(n.charCodeAt(3)),o=r(n.charCodeAt(4));return new e(new Gi(16*t+t,16*i+i,16*a+a,(16*o+o)/255))}return null}}(t=n.CSS||(n.CSS={}))}(n=e.Format||(e.Format={}))}(Vi||(Vi={}));const Yi=/\bMARK:\s*(.*)$/d,$i=/^-+|-+$/g;function Qi(e,n){var t;let r=[];if(n.findRegionSectionHeaders&&(null===(t=n.foldingRules)||void 0===t?void 0:t.markers)){const t=function(e,n){const t=[],r=e.getLineCount();for(let i=1;i<=r;i++){const r=e.getLineContent(i),a=r.match(n.foldingRules.markers.start);if(a){const e={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:r.length+1};if(e.endColumn>e.startColumn){const n={range:e,...ea(r.substring(a[0].length)),shouldBeInComments:!1};(n.text||n.hasSeparatorLine)&&t.push(n)}}}return t}(e,n);r=r.concat(t)}if(n.findMarkSectionHeaders){const n=function(e){const n=[],t=e.getLineCount();for(let r=1;r<=t;r++){Zi(e.getLineContent(r),r,n)}return n}(e);r=r.concat(n)}return r}function Zi(e,n,t){Yi.lastIndex=0;const r=Yi.exec(e);if(r){const e={startLineNumber:n,startColumn:r.indices[1][0]+1,endLineNumber:n,endColumn:r.indices[1][1]+1};if(e.endColumn>e.startColumn){const n={range:e,...ea(r[1]),shouldBeInComments:!0};(n.text||n.hasSeparatorLine)&&t.push(n)}}}function ea(e){const n=(e=e.trim()).startsWith("-");return{text:e=e.replace($i,""),hasSeparatorLine:n}}class na extends Bn{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const n=[];for(let t=0;t<this._lines.length;t++){const r=this._lines[t],i=this.offsetAt(new In(t+1,1)),a=r.matchAll(e);for(const e of a)(e.index||0===e.index)&&(e.index=e.index+i),n.push(e)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,n){const t=Hn(e.column,Vn(n),this._lines[e.lineNumber-1],0);return t?new wn(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn):null}words(e){const n=this._lines,t=this._wordenize.bind(this);let r=0,i="",a=0,o=[];return{*[Symbol.iterator](){for(;;)if(a<o.length){const e=i.substring(o[a].start,o[a].end);a+=1,yield e}else{if(!(r<n.length))break;i=n[r],o=t(i,e),a=0,r+=1}}}}getLineWords(e,n){const t=this._lines[e-1],r=this._wordenize(t,n),i=[];for(const a of r)i.push({word:t.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return i}_wordenize(e,n){const t=[];let r;for(n.lastIndex=0;(r=n.exec(e))&&0!==r[0].length;)t.push({start:r.index,end:r.index+r[0].length});return t}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const n=this._eol,t=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[t].substring(e.startColumn-1));for(let a=t+1;a<r;a++)i.push(this._lines[a]);return i.push(this._lines[r].substring(0,e.endColumn-1)),i.join(n)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(e),t=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,t)}}_validateRange(e){const n=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),t=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return n.lineNumber!==e.startLineNumber||n.column!==e.startColumn||t.lineNumber!==e.endLineNumber||t.column!==e.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:t.lineNumber,endColumn:t.column}:e}_validatePosition(e){if(!In.isIPosition(e))throw new Error("bad position");let{lineNumber:n,column:t}=e,r=!1;if(n<1)n=1,t=1,r=!0;else if(n>this._lines.length)n=this._lines.length,t=this._lines[n-1].length+1,r=!0;else{const e=this._lines[n-1].length+1;t<1?(t=1,r=!0):t>e&&(t=e,r=!0)}return r?{lineNumber:n,column:t}:e}}class ta{constructor(e,n){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((n=>e.push(this._models[n]))),e}acceptNewModel(e){this._models[e.url]=new na(yn.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,n){if(!this._models[e])return;this._models[e].onEvents(n)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,n,t){const r=this._getModel(e);return r?Fr.computeUnicodeHighlights(r,n,t):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,n){const t=this._getModel(e);return t?Qi(t,n):[]}async computeDiff(e,n,t,r){const i=this._getModel(e),a=this._getModel(n);if(!i||!a)return null;return ta.computeDiff(i,a,t,r)}static computeDiff(e,n,t,r){const i="advanced"===r?Pi():Mi(),a=e.getLinesContent(),o=n.getLinesContent(),s=i.computeDiff(a,o,t);function c(e){return e.map((e=>{var n;return[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,null===(n=e.innerChanges)||void 0===n?void 0:n.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]}))}return{identical:!(s.changes.length>0)&&this._modelsAreIdentical(e,n),quitEarly:s.hitTimeout,changes:c(s.changes),moves:s.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,c(e.changes)]))}}static _modelsAreIdentical(e,n){const t=e.getLineCount();if(t!==n.getLineCount())return!1;for(let r=1;r<=t;r++){if(e.getLineContent(r)!==n.getLineContent(r))return!1}return!0}async computeMoreMinimalEdits(e,n,t){const r=this._getModel(e);if(!r)return n;const i=[];let a;n=n.slice(0).sort(((e,n)=>{if(e.range&&n.range)return wn.compareRangesUsingStarts(e.range,n.range);return(e.range?0:1)-(n.range?0:1)}));let o=0;for(let s=1;s<n.length;s++)wn.getEndPosition(n[o].range).equals(wn.getStartPosition(n[s].range))?(n[o].range=wn.fromPositions(wn.getStartPosition(n[o].range),wn.getEndPosition(n[s].range)),n[o].text+=n[s].text):(o++,n[o]=n[s]);n.length=o+1;for(let{range:s,text:c,eol:l}of n){if("number"===typeof l&&(a=l),wn.isEmpty(s)&&!c)continue;const e=r.getValueInRange(s);if(c=c.replace(/\r\n|\n|\r/g,r.eol),e===c)continue;if(Math.max(c.length,e.length)>ta._diffLimit){i.push({range:s,text:c});continue}const n=je(e,c,t),o=r.offsetAt(wn.lift(s).getStartPosition());for(const t of n){const e=r.positionAt(o+t.originalStart),n=r.positionAt(o+t.originalStart+t.originalLength),a={text:c.substr(t.modifiedStart,t.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:n.lineNumber,endColumn:n.column}};r.getValueInRange(a.range)!==a.text&&i.push(a)}}return"number"===typeof a&&i.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}async computeLinks(e){const n=this._getModel(e);return n?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?Yn.computeLinks(e):[]}(n):null}async computeDefaultDocumentColors(e){const n=this._getModel(e);return n?Xi(n):null}async textualSuggest(e,n,t,r){const i=new x,a=new RegExp(t,r),o=new Set;e:for(const s of e){const e=this._getModel(s);if(e)for(const t of e.words(a))if(t!==n&&isNaN(Number(t))&&(o.add(t),o.size>ta._suggestionsLimit))break e}return{words:Array.from(o),duration:i.elapsed()}}async computeWordRanges(e,n,t,r){const i=this._getModel(e);if(!i)return Object.create(null);const a=new RegExp(t,r),o=Object.create(null);for(let s=n.startLineNumber;s<n.endLineNumber;s++){const e=i.getLineWords(s,a);for(const n of e){if(!isNaN(Number(n.word)))continue;let e=o[n.word];e||(e=[],o[n.word]=e),e.push({startLineNumber:s,startColumn:n.startColumn,endLineNumber:s,endColumn:n.endColumn})}}return o}async navigateValueSet(e,n,t,r,i){const a=this._getModel(e);if(!a)return null;const o=new RegExp(r,i);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const s=a.getValueInRange(n),c=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},o);if(!c)return null;const l=a.getValueInRange(c);return $n.INSTANCE.navigateValueSet(n,s,c,l,t)}loadForeignModule(e,n,t){const r=function(e,n){const t=e=>function(){const t=Array.prototype.slice.call(arguments,0);return n(e,t)},r={};for(const i of e)r[i]=t(i);return r}(t,((e,n)=>this._host.fhr(e,n))),i={host:r,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,n),Promise.resolve(N(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,n){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,n))}catch(Sa){return Promise.reject(Sa)}}}ta._diffLimit=1e5,ta._suggestionsLimit=1e4,"function"===typeof importScripts&&(globalThis.monaco={editor:void 0,languages:void 0,CancellationTokenSource:nt,Emitter:w,KeyCode:Qt,KeyMod:Sr,Position:In,Range:wn,Selection:ft,SelectionDirection:pr,MarkerSeverity:Zt,MarkerTag:er,Uri:yn,Token:bt});let ra=!1;function ia(e){if(ra)return;ra=!0;const n=new De((e=>{globalThis.postMessage(e)}),(n=>new ta(n,e)));globalThis.onmessage=e=>{n.onmessage(e.data)}}globalThis.onmessage=e=>{ra||ia(null)};var aa="/index.js",oa=Object.defineProperty,sa={};((e,n)=>{for(var t in n)oa(e,t,{get:n[t],enumerable:!0})})(sa,{EndOfLineState:()=>fa,IndentStyle:()=>ha,ScriptKind:()=>ga,ScriptTarget:()=>ya,TokenClass:()=>va,createClassifier:()=>ua,createLanguageService:()=>_a,displayPartsToString:()=>pa,flattenDiagnosticMessageText:()=>ma,typescript:()=>ba});var ca=void 0,la={exports:{}},da=(()=>{var n,t,r,i,a,o,s,c,l,d,u,_,p,f,m,h,g,y,v=Object.defineProperty,b=Object.getOwnPropertyNames,E=(e,n)=>function(){return e&&(n=(0,e[b(e)[0]])(e=0)),n},T=(e,n)=>{for(var t in n)v(e,t,{get:n[t],enumerable:!0})},x=E({"src/compiler/corePublic.ts"(){n="5.0",t="5.0.2",r=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(r||{})}});function S(e){return e?e.length:0}function A(e,n){if(e)for(let t=0;t<e.length;t++){const r=n(e[t],t);if(r)return r}}function L(e,n){if(e)for(let t=e.length-1;t>=0;t--){const r=n(e[t],t);if(r)return r}}function C(e,n){if(void 0!==e)for(let t=0;t<e.length;t++){const r=n(e[t],t);if(void 0!==r)return r}}function k(e,n){for(const t of e){const e=n(t);if(void 0!==e)return e}}function I(e,n,t){let r=t;if(e){let t=0;for(const i of e)r=n(r,i,t),t++}return r}function w(e,n,t){const r=[];Nt.assertEqual(e.length,n.length);for(let i=0;i<e.length;i++)r.push(t(e[i],n[i],i));return r}function R(e,n){if(e.length<=1)return e;const t=[];for(let r=0,i=e.length;r<i;r++)r&&t.push(n),t.push(e[r]);return t}function N(e,n){if(e)for(let t=0;t<e.length;t++)if(!n(e[t],t))return!1;return!0}function D(e,n,t){if(void 0!==e)for(let r=null!=t?t:0;r<e.length;r++){const t=e[r];if(n(t,r))return t}}function O(e,n,t){if(void 0!==e)for(let r=null!=t?t:e.length-1;r>=0;r--){const t=e[r];if(n(t,r))return t}}function M(e,n,t){if(void 0===e)return-1;for(let r=null!=t?t:0;r<e.length;r++)if(n(e[r],r))return r;return-1}function P(e,n,t){if(void 0===e)return-1;for(let r=null!=t?t:e.length-1;r>=0;r--)if(n(e[r],r))return r;return-1}function F(e,n){for(let t=0;t<e.length;t++){const r=n(e[t],t);if(r)return r}return Nt.fail()}function G(e,n,t=Pn){if(e)for(const r of e)if(t(r,n))return!0;return!1}function B(e,n,t=Pn){return e.length===n.length&&e.every(((e,r)=>t(e,n[r])))}function U(e,n,t){for(let r=t||0;r<e.length;r++)if(G(n,e.charCodeAt(r)))return r;return-1}function V(e,n){let t=0;if(e)for(let r=0;r<e.length;r++){n(e[r],r)&&t++}return t}function j(e,n){if(e){const t=e.length;let r=0;for(;r<t&&n(e[r]);)r++;if(r<t){const i=e.slice(0,r);for(r++;r<t;){const t=e[r];n(t)&&i.push(t),r++}return i}}return e}function H(e,n){let t=0;for(let r=0;r<e.length;r++)n(e[r],r,e)&&(e[t]=e[r],t++);e.length=t}function K(e){e.length=0}function W(e,n){let t;if(e){t=[];for(let r=0;r<e.length;r++)t.push(n(e[r],r))}return t}function*z(e,n){for(const t of e)yield n(t)}function q(e,n){if(e)for(let t=0;t<e.length;t++){const r=e[t],i=n(r,t);if(r!==i){const r=e.slice(0,t);for(r.push(i),t++;t<e.length;t++)r.push(n(e[t],t));return r}}return e}function J(e){const n=[];for(const t of e)t&&(gn(t)?Ae(n,t):n.push(t));return n}function X(e,n){let t;if(e)for(let r=0;r<e.length;r++){const i=n(e[r],r);i&&(t=gn(i)?Ae(t,i):Te(t,i))}return t||i}function Y(e,n){const t=[];if(e)for(let r=0;r<e.length;r++){const i=n(e[r],r);i&&(gn(i)?Ae(t,i):t.push(i))}return t}function*$(e,n){for(const t of e){const e=n(t);e&&(yield*e)}}function Q(e,n){let t;if(e)for(let r=0;r<e.length;r++){const i=e[r],a=n(i,r);(t||i!==a||gn(a))&&(t||(t=e.slice(0,r)),gn(a)?Ae(t,a):t.push(a))}return t||e}function Z(e,n){const t=[];for(let r=0;r<e.length;r++){const i=n(e[r],r);if(void 0===i)return;t.push(i)}return t}function ee(e,n){const t=[];if(e)for(let r=0;r<e.length;r++){const i=n(e[r],r);void 0!==i&&t.push(i)}return t}function*ne(e,n){for(const t of e){const e=n(t);void 0!==e&&(yield e)}}function te(e,n){if(!e)return;const t=new Map;return e.forEach(((e,r)=>{const i=n(r,e);if(void 0!==i){const[e,n]=i;void 0!==e&&void 0!==n&&t.set(e,n)}})),t}function re(e,n,t){if(e.has(n))return e.get(n);const r=t();return e.set(n,r),r}function ie(e,n){return!e.has(n)&&(e.add(n),!0)}function*ae(e){yield e}function oe(e,n,t){let r;if(e){r=[];const i=e.length;let a,o,s=0,c=0;for(;s<i;){for(;c<i;){if(o=n(e[c],c),0===c)a=o;else if(o!==a)break;c++}if(s<c){const n=t(e.slice(s,c),a,s,c);n&&r.push(n),s=c}a=o,c++}}return r}function se(e,n){if(!e)return;const t=new Map;return e.forEach(((e,r)=>{const[i,a]=n(r,e);t.set(i,a)})),t}function ce(e,n){if(e){if(!n)return e.length>0;for(const t of e)if(n(t))return!0}return!1}function le(e,n,t){let r;for(let i=0;i<e.length;i++)n(e[i])?r=void 0===r?i:r:void 0!==r&&(t(r,i),r=void 0);void 0!==r&&t(r,e.length)}function de(e,n){return ce(n)?ce(e)?[...e,...n]:n:e}function ue(e,n){return n}function _e(e){return e.map(ue)}function pe(e,n,t){return 0===e.length?[]:1===e.length?e.slice():t?function(e,n,t){const r=_e(e);ke(e,r,t);let i=e[r[0]];const a=[r[0]];for(let o=1;o<r.length;o++){const t=r[o],s=e[t];n(i,s)||(a.push(t),i=s)}return a.sort(),a.map((n=>e[n]))}(e,n,t):function(e,n){const t=[];for(const r of e)Le(t,r,n);return t}(e,n)}function fe(){return[]}function me(e,n,t,r){if(0===e.length)return e.push(n),!0;const i=He(e,n,Cn,t);return i<0?(e.splice(~i,0,n),!0):!!r&&(e.splice(i,0,n),!0)}function he(e,n,t){return function(e,n){if(0===e.length)return i;let t=e[0];const r=[t];for(let i=1;i<e.length;i++){const a=e[i];switch(n(a,t)){case!0:case 0:continue;case-1:return Nt.fail("Array is unsorted.")}r.push(t=a)}return r}(Ie(e,n),t||n||Wn)}function ge(e,n){if(e.length<2)return!0;for(let t=1,r=e.length;t<r;t++)if(1===n(e[t-1],e[t]))return!1;return!0}function ye(e,n,t,r){let i=3;if(e.length<2)return i;let a=n(e[0]);for(let o=1,s=e.length;o<s&&0!==i;o++){const s=n(e[o]);1&i&&t(a,s)>0&&(i&=-2),2&i&&r(a,s)>0&&(i&=-3),a=s}return i}function ve(e,n,t=Pn){if(!e||!n)return e===n;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(!t(e[r],n[r],r))return!1;return!0}function be(e){let n;if(e)for(let t=0;t<e.length;t++){const r=e[t];!n&&r||(n||(n=e.slice(0,t)),r&&n.push(r))}return n||e}function Ee(e,n,t){if(!n||!e||0===n.length||0===e.length)return n;const r=[];e:for(let i=0,a=0;a<n.length;a++){a>0&&Nt.assertGreaterThanOrEqual(t(n[a],n[a-1]),0);n:for(const o=i;i<e.length;i++)switch(i>o&&Nt.assertGreaterThanOrEqual(t(e[i],e[i-1]),0),t(n[a],e[i])){case-1:r.push(n[a]);continue e;case 0:continue e;case 1:continue n}}return r}function Te(e,n){return void 0===n?e:void 0===e?[n]:(e.push(n),e)}function xe(e,n){return void 0===e?n:void 0===n?e:gn(e)?gn(n)?de(e,n):Te(e,n):gn(n)?Te(n,e):[e,n]}function Se(e,n){return n<0?e.length+n:n}function Ae(e,n,t,r){if(void 0===n||0===n.length)return e;if(void 0===e)return n.slice(t,r);t=void 0===t?0:Se(n,t),r=void 0===r?n.length:Se(n,r);for(let i=t;i<r&&i<n.length;i++)void 0!==n[i]&&e.push(n[i]);return e}function Le(e,n,t){return!G(e,n,t)&&(e.push(n),!0)}function Ce(e,n,t){return e?(Le(e,n,t),e):[n]}function ke(e,n,t){n.sort(((n,r)=>t(e[n],e[r])||Un(n,r)))}function Ie(e,n){return 0===e.length?e:e.slice().sort(n)}function*we(e){for(let n=e.length-1;n>=0;n--)yield e[n]}function Re(e,n){const t=_e(e);return ke(e,t,n),t.map((n=>e[n]))}function Ne(e,n,t,r){for(;t<r;){if(e[t]!==n[t])return!1;t++}return!0}function De(e){return void 0===e||0===e.length?void 0:e[0]}function Oe(e){if(e)for(const n of e)return n}function Me(e){return Nt.assert(0!==e.length),e[0]}function Pe(e){for(const n of e)return n;Nt.fail("iterator is empty")}function Fe(e){return void 0===e||0===e.length?void 0:e[e.length-1]}function Ge(e){return Nt.assert(0!==e.length),e[e.length-1]}function Be(e){return e&&1===e.length?e[0]:void 0}function Ue(e){return Nt.checkDefined(Be(e))}function Ve(e){return e&&1===e.length?e[0]:e}function je(e,n,t){const r=e.slice(0);return r[n]=t,r}function He(e,n,t,r,i){return Ke(e,t(n),t,r,i)}function Ke(e,n,t,r,i){if(!ce(e))return-1;let a=i||0,o=e.length-1;for(;a<=o;){const i=a+(o-a>>1);switch(r(t(e[i],i),n)){case-1:a=i+1;break;case 0:return i;case 1:o=i-1}}return~a}function We(e,n,t,r,i){if(e&&e.length>0){const a=e.length;if(a>0){let o=void 0===r||r<0?0:r;const s=void 0===i||o+i>a-1?a-1:o+i;let c;for(arguments.length<=2?(c=e[o],o++):c=t;o<=s;)c=n(c,e[o],o),o++;return c}}return t}function ze(e,n){return l.call(e,n)}function qe(e,n){return l.call(e,n)?e[n]:void 0}function Je(e){const n=[];for(const t in e)l.call(e,t)&&n.push(t);return n}function Xe(e){const n=[];do{const t=Object.getOwnPropertyNames(e);for(const e of t)Le(n,e)}while(e=Object.getPrototypeOf(e));return n}function Ye(e){const n=[];for(const t in e)l.call(e,t)&&n.push(e[t]);return n}function $e(e,n){const t=new Array(e);for(let r=0;r<e;r++)t[r]=n(r);return t}function Qe(e,n){const t=[];for(const r of e)t.push(n?n(r):r);return t}function Ze(e,...n){for(const t of n)if(void 0!==t)for(const n in t)ze(t,n)&&(e[n]=t[n]);return e}function en(e,n,t=Pn){if(e===n)return!0;if(!e||!n)return!1;for(const r in e)if(l.call(e,r)){if(!l.call(n,r))return!1;if(!t(e[r],n[r]))return!1}for(const r in n)if(l.call(n,r)&&!l.call(e,r))return!1;return!0}function nn(e,n,t=Cn){const r=new Map;for(const i of e){const e=n(i);void 0!==e&&r.set(e,t(i))}return r}function tn(e,n,t=Cn){const r=[];for(const i of e)r[n(i)]=t(i);return r}function rn(e,n,t=Cn){const r=un();for(const i of e)r.add(n(i),t(i));return r}function an(e,n,t=Cn){return Qe(rn(e,n).values(),t)}function on(e,n){var t;const r={};if(e)for(const i of e){const e=`${n(i)}`;(null!=(t=r[e])?t:r[e]=[]).push(i)}return r}function sn(e){const n={};for(const t in e)l.call(e,t)&&(n[t]=e[t]);return n}function cn(e,n){const t={};for(const r in n)l.call(n,r)&&(t[r]=n[r]);for(const r in e)l.call(e,r)&&(t[r]=e[r]);return t}function ln(e,n){for(const t in n)l.call(n,t)&&(e[t]=n[t])}function dn(e,n){return n?n.bind(e):void 0}function un(){const e=new Map;return e.add=_n,e.remove=pn,e}function _n(e,n){let t=this.get(e);return t?t.push(n):this.set(e,t=[n]),t}function pn(e,n){const t=this.get(e);t&&(ct(t,n),t.length||this.delete(e))}function fn(){return un()}function mn(e){const n=(null==e?void 0:e.slice())||[];let t=0;function r(){return t===n.length}return{enqueue:function(...e){n.push(...e)},dequeue:function(){if(r())throw new Error("Queue is empty");const e=n[t];if(n[t]=void 0,t++,t>100&&t>n.length>>1){const e=n.length-t;n.copyWithin(0,t),n.length=e,t=0}return e},isEmpty:r}}function hn(e,n){const t=new Map;let r=0;function*i(){for(const e of t.values())gn(e)?yield*e:yield e}const a={has(r){const i=e(r);if(!t.has(i))return!1;const a=t.get(i);if(!gn(a))return n(a,r);for(const e of a)if(n(e,r))return!0;return!1},add(i){const a=e(i);if(t.has(a)){const e=t.get(a);if(gn(e))G(e,i,n)||(e.push(i),r++);else{const o=e;n(o,i)||(t.set(a,[o,i]),r++)}}else t.set(a,i),r++;return this},delete(i){const a=e(i);if(!t.has(a))return!1;const o=t.get(a);if(gn(o)){for(let e=0;e<o.length;e++)if(n(o[e],i))return 1===o.length?t.delete(a):2===o.length?t.set(a,o[1-e]):st(o,e),r--,!0}else{if(n(o,i))return t.delete(a),r--,!0}return!1},clear(){t.clear(),r=0},get size(){return r},forEach(e){for(const n of Qe(t.values()))if(gn(n))for(const t of n)e(t,t,a);else{e(n,n,a)}},keys:()=>i(),values:()=>i(),*entries(){for(const e of i())yield[e,e]},[Symbol.iterator]:()=>i(),[Symbol.toStringTag]:t[Symbol.toStringTag]};return a}function gn(e){return Array.isArray(e)}function yn(e){return gn(e)?e:[e]}function vn(e){return"string"===typeof e}function bn(e){return"number"===typeof e}function En(e,n){return void 0!==e&&n(e)?e:void 0}function Tn(e,n){return void 0!==e&&n(e)?e:Nt.fail(`Invalid cast. The supplied value ${e} did not pass the test '${Nt.getFunctionName(n)}'.`)}function xn(e){}function Sn(){return!1}function An(){return!0}function Ln(){}function Cn(e){return e}function kn(e){return e.toLowerCase()}function In(e){return u.test(e)?e.replace(u,kn):e}function wn(){throw new Error("Not implemented")}function Rn(e){let n;return()=>(e&&(n=e(),e=void 0),n)}function Nn(e){const n=new Map;return t=>{const r=`${typeof t}:${t}`;let i=n.get(r);return void 0!==i||n.has(r)||(i=e(t),n.set(r,i)),i}}function Dn(e){const n=new WeakMap;return t=>{let r=n.get(t);return void 0!==r||n.has(t)||(r=e(t),n.set(t,r)),r}}function On(e,n){return(...t)=>{let r=n.get(t);return void 0!==r||n.has(t)||(r=e(...t),n.set(t,r)),r}}function Mn(e,n,t,r,i){if(i){const e=[];for(let n=0;n<arguments.length;n++)e[n]=arguments[n];return n=>We(e,((e,n)=>n(e)),n)}return r?i=>r(t(n(e(i)))):t?r=>t(n(e(r))):n?t=>n(e(t)):e?n=>e(n):e=>e}function Pn(e,n){return e===n}function Fn(e,n){return e===n||void 0!==e&&void 0!==n&&e.toUpperCase()===n.toUpperCase()}function Gn(e,n){return Pn(e,n)}function Bn(e,n){return e===n?0:void 0===e?-1:void 0===n?1:e<n?-1:1}function Un(e,n){return Bn(e,n)}function Vn(e,n){return Un(null==e?void 0:e.start,null==n?void 0:n.start)||Un(null==e?void 0:e.length,null==n?void 0:n.length)}function jn(e,n){return We(e,((e,t)=>-1===n(e,t)?e:t))}function Hn(e,n){return e===n?0:void 0===e?-1:void 0===n?1:(e=e.toUpperCase())<(n=n.toUpperCase())?-1:e>n?1:0}function Kn(e,n){return e===n?0:void 0===e?-1:void 0===n?1:(e=e.toLowerCase())<(n=n.toLowerCase())?-1:e>n?1:0}function Wn(e,n){return Bn(e,n)}function zn(e){return e?Hn:Wn}function qn(){return m}function Jn(e){m!==e&&(m=e,f=void 0)}function Xn(e,n){return(f||(f=p(m)))(e,n)}function Yn(e,n,t,r){return e===n?0:void 0===e?-1:void 0===n?1:r(e[t],n[t])}function $n(e,n){return Un(e?1:0,n?1:0)}function Qn(e,n,t){const r=Math.max(2,Math.floor(.34*e.length));let i,a=Math.floor(.4*e.length)+1;for(const o of n){const n=t(o);if(void 0!==n&&Math.abs(n.length-e.length)<=r){if(n===e)continue;if(n.length<3&&n.toLowerCase()!==e.toLowerCase())continue;const t=Zn(e,n,a-.1);if(void 0===t)continue;Nt.assert(t<a),a=t,i=o}}return i}function Zn(e,n,t){let r=new Array(n.length+1),i=new Array(n.length+1);const a=t+.01;for(let s=0;s<=n.length;s++)r[s]=s;for(let s=1;s<=e.length;s++){const o=e.charCodeAt(s-1),c=Math.ceil(s>t?s-t:1),l=Math.floor(n.length>t+s?t+s:n.length);i[0]=s;let d=s;for(let e=1;e<c;e++)i[e]=a;for(let t=c;t<=l;t++){const a=e[s-1].toLowerCase()===n[t-1].toLowerCase()?r[t-1]+.1:r[t-1]+2,c=o===n.charCodeAt(t-1)?r[t-1]:Math.min(r[t]+1,i[t-1]+1,a);i[t]=c,d=Math.min(d,c)}for(let e=l+1;e<=n.length;e++)i[e]=a;if(d>t)return;const u=r;r=i,i=u}const o=r[n.length];return o>t?void 0:o}function et(e,n){const t=e.length-n.length;return t>=0&&e.indexOf(n,t)===t}function nt(e,n){return et(e,n)?e.slice(0,e.length-n.length):e}function tt(e,n){return et(e,n)?e.slice(0,e.length-n.length):void 0}function rt(e,n){return-1!==e.indexOf(n)}function it(e){let n=e.length;for(let t=n-1;t>0;t--){let r=e.charCodeAt(t);if(r>=48&&r<=57)do{--t,r=e.charCodeAt(t)}while(t>0&&r>=48&&r<=57);else{if(!(t>4)||110!==r&&78!==r)break;if(--t,r=e.charCodeAt(t),105!==r&&73!==r)break;if(--t,r=e.charCodeAt(t),109!==r&&77!==r)break;--t,r=e.charCodeAt(t)}if(45!==r&&46!==r)break;n=t}return n===e.length?e:e.slice(0,n)}function at(e,n){for(let t=0;t<e.length;t++)if(e[t]===n)return ot(e,t),!0;return!1}function ot(e,n){for(let t=n;t<e.length-1;t++)e[t]=e[t+1];e.pop()}function st(e,n){e[n]=e[e.length-1],e.pop()}function ct(e,n){return function(e,n){for(let t=0;t<e.length;t++)if(n(e[t]))return st(e,t),!0;return!1}(e,(e=>e===n))}function lt(e){return e?Cn:In}function dt({prefix:e,suffix:n}){return`${e}*${n}`}function ut(e,n){return Nt.assert(ht(e,n)),n.substring(e.prefix.length,n.length-e.suffix.length)}function _t(e,n,t){let r,i=-1;for(const a of e){const e=n(a);ht(e,t)&&e.prefix.length>i&&(i=e.prefix.length,r=a)}return r}function pt(e,n){return 0===e.lastIndexOf(n,0)}function ft(e,n){return pt(e,n)?e.substr(n.length):e}function mt(e,n,t=Cn){return pt(t(e),t(n))?e.substring(n.length):void 0}function ht({prefix:e,suffix:n},t){return t.length>=e.length+n.length&&pt(t,e)&&et(t,n)}function gt(e,n){return t=>e(t)&&n(t)}function yt(...e){return(...n)=>{let t;for(const r of e)if(t=r(...n),t)return t;return t}}function vt(e){return(...n)=>!e(...n)}function bt(e){}function Et(e){return void 0===e?void 0:[e]}function Tt(e,n,t,r,i,a){a=a||xn;let o=0,s=0;const c=e.length,l=n.length;let d=!1;for(;o<c&&s<l;){const c=e[o],l=n[s],u=t(c,l);-1===u?(r(c),o++,d=!0):1===u?(i(l),s++,d=!0):(a(l,c),o++,s++)}for(;o<c;)r(e[o++]),d=!0;for(;s<l;)i(n[s++]),d=!0;return d}function xt(e){const n=[];return St(e,n,void 0,0),n}function St(e,n,t,r){for(const i of e[r]){let a;t?(a=t.slice(),a.push(i)):a=[i],r===e.length-1?n.push(a):St(e,n,a,r+1)}}function At(e,n,t=" "){return n<=e.length?e:t.repeat(n-e.length)+e}function Lt(e,n,t=" "){return n<=e.length?e:e+t.repeat(n-e.length)}function Ct(e,n){if(e){const t=e.length;let r=0;for(;r<t&&n(e[r]);)r++;return e.slice(0,r)}}function kt(e,n){if(e){const t=e.length;let r=0;for(;r<t&&n(e[r]);)r++;return e.slice(r)}}function It(e){let n=e.length-1;for(;n>=0&&As(e.charCodeAt(n));)n--;return e.slice(0,n+1)}function wt(){return"undefined"!==typeof process&&process.nextTick&&!process.browser&&"object"===typeof la}var Rt,Nt,Dt,Ot,Mt,Pt,Ft,Gt,Bt,Ut,Vt,jt,Ht,Kt,Wt,zt,qt=E({"src/compiler/core.ts"(){lq(),i=[],a=new Map,o=new Set,s=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(s||{}),c=Array.prototype.at?(e,n)=>null==e?void 0:e.at(n):(e,n)=>{if(e&&(n=Se(e,n))<e.length)return e[n]},l=Object.prototype.hasOwnProperty,d={push:xn,length:0},u=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g,_=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(_||{}),p=(()=>{let e,n;const t=function(){if("object"===typeof Intl&&"function"===typeof Intl.Collator)return i;if("function"===typeof String.prototype.localeCompare&&"function"===typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0)return a;return o}();return function(r){return void 0===r?e||(e=t(r)):"en-US"===r?n||(n=t(r)):t(r)};function r(e,n,t){if(e===n)return 0;if(void 0===e)return-1;if(void 0===n)return 1;const r=t(e,n);return r<0?-1:r>0?1:0}function i(e){const n=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return(e,t)=>r(e,t,n)}function a(e){return void 0!==e?o():(e,t)=>r(e,t,n);function n(e,n){return e.localeCompare(n)}}function o(){return(n,t)=>r(n,t,e);function e(e,t){return n(e.toUpperCase(),t.toUpperCase())||n(e,t)}function n(e,n){return e<n?-1:e>n?1:0}}})(),h=String.prototype.trim?e=>e.trim():e=>g(y(e)),g=String.prototype.trimEnd?e=>e.trimEnd():It,y=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),Jt=E({"src/compiler/debug.ts"(){lq(),lq(),Rt=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(Rt||{}),(e=>{let n=0;function t(n){return e.currentLogLevel<=n}function r(n,r){e.loggingHost&&t(n)&&e.loggingHost.log(n,r)}function i(e){r(3,e)}var a;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=t,e.log=i,(a=i=e.log||(e.log={})).error=function(e){r(1,e)},a.warn=function(e){r(2,e)},a.log=function(e){r(3,e)},a.trace=function(e){r(4,e)};const o={};function s(e){return n>=e}function c(n,t){return!!s(n)||(o[t]={level:n,assertion:e[t]},e[t]=xn,!1)}function l(e,n){const t=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(t,n||l),t}function d(e,n,t,r){e||(n=n?`False expression: ${n}`:"False expression.",t&&(n+="\r\nVerbose Debug Information: "+("string"===typeof t?t:t())),l(n,r||d))}function u(e,n,t){void 0!==e&&null!==e||l(n,t||u)}function _(e,n,t){for(const r of e)u(r,n,t||_)}function p(e,n="Illegal value:",t){return l(`${n} ${"object"===typeof e&&ze(e,"kind")&&ze(e,"pos")?"SyntaxKind: "+y(e.kind):JSON.stringify(e)}`,t||p)}function f(e){}function m(e){if("function"!==typeof e)return"";if(ze(e,"name"))return e.name;{const n=Function.prototype.toString.call(e),t=/^function\s+([\w\$]+)\s*\(/.exec(n);return t?t[1]:""}}function h(e=0,n,t){const r=function(e){const n=g.get(e);if(n)return n;const t=[];for(const i in e){const n=e[i];"number"===typeof n&&t.push([n,i])}const r=Re(t,((e,n)=>Un(e[0],n[0])));return g.set(e,r),r}(n);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(t){const n=[];let t=e;for(const[i,a]of r){if(i>e)break;0!==i&&i&e&&(n.push(a),t&=~i)}if(0===t)return n.join("|")}else for(const[i,a]of r)if(i===e)return a;return e.toString()}e.getAssertionLevel=function(){return n},e.setAssertionLevel=function(t){const r=n;if(n=t,t>r)for(const n of Je(o)){const r=o[n];void 0!==r&&e[n]!==r.assertion&&t>=r.level&&(e[n]=r,o[n]=void 0)}},e.shouldAssert=s,e.fail=l,e.failBadSyntaxKind=function e(n,t,r){return l(`${t||"Unexpected node."}\r\nNode ${y(n.kind)} was unexpected.`,r||e)},e.assert=d,e.assertEqual=function e(n,t,r,i,a){if(n!==t){l(`Expected ${n} === ${t}. ${r?i?`${r} ${i}`:r:""}`,a||e)}},e.assertLessThan=function e(n,t,r,i){n>=t&&l(`Expected ${n} < ${t}. ${r||""}`,i||e)},e.assertLessThanOrEqual=function e(n,t,r){n>t&&l(`Expected ${n} <= ${t}`,r||e)},e.assertGreaterThanOrEqual=function e(n,t,r){n<t&&l(`Expected ${n} >= ${t}`,r||e)},e.assertIsDefined=u,e.checkDefined=function e(n,t,r){return u(n,t,r||e),n},e.assertEachIsDefined=_,e.checkEachDefined=function e(n,t,r){return _(n,t,r||e),n},e.assertNever=p,e.assertEachNode=function e(n,t,r,i){c(1,"assertEachNode")&&d(void 0===t||N(n,t),r||"Unexpected node.",(()=>`Node array did not pass test '${m(t)}'.`),i||e)},e.assertNode=function e(n,t,r,i){c(1,"assertNode")&&d(void 0!==n&&(void 0===t||t(n)),r||"Unexpected node.",(()=>`Node ${y(null==n?void 0:n.kind)} did not pass test '${m(t)}'.`),i||e)},e.assertNotNode=function e(n,t,r,i){c(1,"assertNotNode")&&d(void 0===n||void 0===t||!t(n),r||"Unexpected node.",(()=>`Node ${y(n.kind)} should not have passed test '${m(t)}'.`),i||e)},e.assertOptionalNode=function e(n,t,r,i){c(1,"assertOptionalNode")&&d(void 0===t||void 0===n||t(n),r||"Unexpected node.",(()=>`Node ${y(null==n?void 0:n.kind)} did not pass test '${m(t)}'.`),i||e)},e.assertOptionalToken=function e(n,t,r,i){c(1,"assertOptionalToken")&&d(void 0===t||void 0===n||n.kind===t,r||"Unexpected node.",(()=>`Node ${y(null==n?void 0:n.kind)} was not a '${y(t)}' token.`),i||e)},e.assertMissingNode=function e(n,t,r){c(1,"assertMissingNode")&&d(void 0===n,t||"Unexpected node.",(()=>`Node ${y(n.kind)} was unexpected'.`),r||e)},e.type=f,e.getFunctionName=m,e.formatSymbol=function(e){return`{ name: ${Bc(e.escapedName)}; flags: ${x(e.flags)}; declarations: ${W(e.declarations,(e=>y(e.kind)))} }`},e.formatEnum=h;const g=new Map;function y(e){return h(e,Wr,!1)}function v(e){return h(e,zr,!0)}function b(e){return h(e,qr,!0)}function E(e){return h(e,$i,!0)}function T(e){return h(e,Zi,!0)}function x(e){return h(e,hi,!0)}function S(e){return h(e,Ei,!0)}function A(e){return h(e,ki,!0)}function L(e){return h(e,Ti,!0)}function C(e){return h(e,Qr,!0)}e.formatSyntaxKind=y,e.formatSnippetKind=function(e){return h(e,Qi,!1)},e.formatNodeFlags=v,e.formatModifierFlags=b,e.formatTransformFlags=E,e.formatEmitFlags=T,e.formatSymbolFlags=x,e.formatTypeFlags=S,e.formatSignatureFlags=A,e.formatObjectFlags=L,e.formatFlowFlags=C,e.formatRelationComparisonResult=function(e){return h(e,Xr,!0)},e.formatCheckMode=function(e){return h(e,KG,!0)},e.formatSignatureCheckMode=function(e){return h(e,WG,!0)},e.formatTypeFacts=function(e){return h(e,jG,!0)};let k,I,R=!1;function D(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",n=-2048&this.flags;return`${e}${n?` (${C(n)})`:""}`}},__debugFlowFlags:{get(){return h(this.flags,Qr,!0)}},__debugToString:{value(){return P(this)}}})}function O(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){R&&("function"===typeof Object.setPrototypeOf?(k||(k=Object.create(Object.prototype),D(k)),Object.setPrototypeOf(e,k)):D(e))},e.attachNodeArrayDebugInfo=function(e){R&&("function"===typeof Object.setPrototypeOf?(I||(I=Object.create(Array.prototype),O(I)),Object.setPrototypeOf(e,I)):O(e))},e.enableDebugInfo=function(){if(R)return;const e=new WeakMap,n=new WeakMap;Object.defineProperties(F_.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",n=-33554433&this.flags;return`${e} '${jc(this)}'${n?` (${x(n)})`:""}`}},__debugFlags:{get(){return x(this.flags)}}}),Object.defineProperties(F_.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?`IntrinsicType ${this.intrinsicName}`:1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",n=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${jc(this.symbol)}'`:""}${n?` (${L(n)})`:""}`}},__debugFlags:{get(){return S(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?L(this.objectFlags):""}},__debugTypeToString:{value(){let n=e.get(this);return void 0===n&&(n=this.checker.typeToString(this),e.set(this,n)),n}}}),Object.defineProperties(F_.getSignatureConstructor().prototype,{__debugFlags:{get(){return A(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const t=[F_.getNodeConstructor(),F_.getIdentifierConstructor(),F_.getTokenConstructor(),F_.getSourceFileConstructor()];for(const r of t)ze(r.prototype,"__debugKind")||Object.defineProperties(r.prototype,{__tsDebuggerDisplay:{value(){return`${yd(this)?"GeneratedIdentifier":IC(this)?`Identifier '${Uc(this)}'`:wC(this)?`PrivateIdentifier '${Uc(this)}'`:_C(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:dC(this)?`NumericLiteral ${this.text}`:uC(this)?`BigIntLiteral ${this.text}n`:zC(this)?"TypeParameterDeclaration":qC(this)?"ParameterDeclaration":ek(this)?"ConstructorDeclaration":nk(this)?"GetAccessorDeclaration":tk(this)?"SetAccessorDeclaration":rk(this)?"CallSignatureDeclaration":ik(this)?"ConstructSignatureDeclaration":ak(this)?"IndexSignatureDeclaration":ok(this)?"TypePredicateNode":sk(this)?"TypeReferenceNode":ck(this)?"FunctionTypeNode":lk(this)?"ConstructorTypeNode":dk(this)?"TypeQueryNode":uk(this)?"TypeLiteralNode":_k(this)?"ArrayTypeNode":pk(this)?"TupleTypeNode":mk(this)?"OptionalTypeNode":hk(this)?"RestTypeNode":gk(this)?"UnionTypeNode":yk(this)?"IntersectionTypeNode":vk(this)?"ConditionalTypeNode":bk(this)?"InferTypeNode":Ek(this)?"ParenthesizedTypeNode":Tk(this)?"ThisTypeNode":xk(this)?"TypeOperatorNode":Sk(this)?"IndexedAccessTypeNode":Ak(this)?"MappedTypeNode":Lk(this)?"LiteralTypeNode":fk(this)?"NamedTupleMember":Ck(this)?"ImportTypeNode":y(this.kind)}${this.flags?` (${v(this.flags)})`:""}`}},__debugKind:{get(){return y(this.kind)}},__debugNodeFlags:{get(){return v(this.flags)}},__debugModifierFlags:{get(){return b(wb(this))}},__debugTransformFlags:{get(){return E(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Pc(this)}},__debugEmitFlags:{get(){return T(df(this))}},__debugGetText:{value(e){if($y(this))return"";let t=n.get(this);if(void 0===t){const r=Fc(this),i=r&&Dp(r);t=i?rf(i,r,e):"",n.set(this,t)}return t}}});R=!0},e.formatVariance=function(e){const n=7&e;let t=0===n?"in out":3===n?"[bivariant]":2===n?"in":1===n?"out":4===n?"[independent]":"";return 8&e?t+=" (unmeasurable)":16&e&&(t+=" (unreliable)"),t};class M{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return w(this.sources,this.targets||W(this.sources,(()=>"any")),((e,n)=>`${e.__debugTypeToString()} -> ${"string"===typeof n?n:n.__debugTypeToString()}`)).join(", ");case 2:return w(this.sources,this.targets,((e,n)=>`${e.__debugTypeToString()} -> ${n().__debugTypeToString()}`)).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return p(this)}}}function P(e){let n,t=-1;function r(e){return e.id||(e.id=t,t--),e.id}var i;let a;var o;(i=n||(n={})).lr="\u2500",i.ud="\u2502",i.dr="\u256d",i.dl="\u256e",i.ul="\u256f",i.ur="\u2570",i.udr="\u251c",i.udl="\u2524",i.dlr="\u252c",i.ulr="\u2534",i.udlr="\u256b",(o=a||(a={}))[o.None=0]="None",o[o.Up=1]="Up",o[o.Down=2]="Down",o[o.Left=4]="Left",o[o.Right=8]="Right",o[o.UpDown=3]="UpDown",o[o.LeftRight=12]="LeftRight",o[o.UpLeft=5]="UpLeft",o[o.UpRight=9]="UpRight",o[o.DownLeft=6]="DownLeft",o[o.DownRight=10]="DownRight",o[o.UpDownLeft=7]="UpDownLeft",o[o.UpDownRight=11]="UpDownRight",o[o.UpLeftRight=13]="UpLeftRight",o[o.DownLeftRight=14]="DownLeftRight",o[o.UpDownLeftRight=15]="UpDownLeftRight",o[o.NoChildren=16]="NoChildren";const s=Object.create(null),c=[],l=[],d=m(e,new Set);for(const x of c)x.text=v(x.flowNode,x.circular),g(x);const u=function e(n){let t=0;for(const r of p(n))t=Math.max(t,e(r));return t+1}(d),_=function(e){const n=E(Array(e),0);for(const t of c)n[t.level]=Math.max(n[t.level],t.text.length);return n}(u);return function e(n,t){if(-1===n.lane){n.lane=t,n.endLane=t;const r=p(n);for(let i=0;i<r.length;i++){i>0&&t++;const a=r[i];e(a,t),a.endLane>n.endLane&&(t=a.endLane)}n.endLane=t}}(d,0),function(){const e=_.length,n=c.reduce(((e,n)=>Math.max(e,n.lane)),0)+1,t=E(Array(n),""),r=_.map((()=>Array(n))),i=_.map((()=>E(Array(n),0)));for(const o of c){r[o.level][o.lane]=o;const e=p(o);for(let t=0;t<e.length;t++){const n=e[t];let r=8;n.lane===o.lane&&(r|=4),t>0&&(r|=1),t<e.length-1&&(r|=2),i[o.level][n.lane]|=r}0===e.length&&(i[o.level][o.lane]|=16);const n=f(o);for(let t=0;t<n.length;t++){const e=n[t];let r=4;t>0&&(r|=1),t<n.length-1&&(r|=2),i[o.level-1][e.lane]|=r}}for(let o=0;o<e;o++)for(let e=0;e<n;e++){const n=o>0?i[o-1][e]:0,t=e>0?i[o][e-1]:0;let r=i[o][e];r||(8&n&&(r|=12),2&t&&(r|=3),i[o][e]=r)}for(let o=0;o<e;o++)for(let n=0;n<t.length;n++){const t=i[o][n],s=4&t?"\u2500":" ",c=r[o][n];c?(a(n,c.text),o<e-1&&(a(n," "),a(n,T(s,_[o]-c.text.length)))):o<e-1&&a(n,T(s,_[o]+1)),a(n,b(t)),a(n,8&t&&o<e-1&&!r[o+1][n]?"\u2500":" ")}return`\n${t.join("\n")}\n`;function a(e,n){t[e]+=n}}();function p(e){const n=[];for(const t of e.edges)t.source===e&&n.push(t.target);return n}function f(e){const n=[];for(const t of e.edges)t.target===e&&n.push(t.source);return n}function m(e,n){const t=r(e);let i=s[t];if(i&&n.has(e))return i.circular=!0,i={id:-1,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},c.push(i),i;if(n.add(e),!i)if(s[t]=i={id:t,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},c.push(i),12&(a=e).flags&&a.antecedents)for(const r of e.antecedents)h(i,r,n);else(function(e){return!!(2032&e.flags)})(e)&&h(i,e.antecedent,n);var a;return n.delete(e),i}function h(e,n,t){const r=m(n,t),i={source:e,target:r};l.push(i),e.edges.push(i),r.edges.push(i)}function g(e){if(-1!==e.level)return e.level;let n=0;for(const t of f(e))n=Math.max(n,g(t)+1);return e.level=n}function y(e){return rf(Dp(e),e,!1)}function v(e,n){let t=function(e){if(2&e)return"Start";if(4&e)return"Branch";if(8&e)return"Loop";if(16&e)return"Assignment";if(32&e)return"True";if(64&e)return"False";if(128&e)return"SwitchClause";if(256&e)return"ArrayMutation";if(512&e)return"Call";if(1024&e)return"ReduceLabel";if(1&e)return"Unreachable";throw new Error}(e.flags);if(n&&(t=`${t}#${r(e)}`),882&e.flags)e.node&&(t+=` (${y(e.node)})`);else if(function(e){return!!(128&e.flags)}(e)){const n=[];for(let t=e.clauseStart;t<e.clauseEnd;t++){const r=e.switchStatement.caseBlock.clauses[t];Ew(r)?n.push("default"):n.push(y(r.expression))}t+=` (${n.join(", ")})`}return"circularity"===n?`Circular(${t})`:t}function b(e){switch(e){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256f";case 9:return"\u2570";case 6:return"\u256e";case 10:return"\u256d";case 7:return"\u2524";case 11:return"\u251c";case 13:return"\u2534";case 14:return"\u252c";case 15:return"\u256b"}return" "}function E(e,n){if(e.fill)e.fill(n);else for(let t=0;t<e.length;t++)e[t]=n;return e}function T(e,n){if(e.repeat)return n>0?e.repeat(n):"";let t="";for(;t.length<n;)t+=e;return t}}e.DebugTypeMapper=M,e.attachDebugPrototypeIfDebug=function(n){return e.isDebugging?Object.setPrototypeOf(n,M.prototype):n},e.printControlFlowGraph=function(e){return console.log(P(e))},e.formatControlFlowGraph=P})(Nt||(Nt={}))}});function Xt(e){const n=Dt.exec(e);if(!n)return;const[,t,r="0",i="0",a="",o=""]=n;return a&&!Ot.test(a)||o&&!Pt.test(o)?void 0:{major:parseInt(t,10),minor:parseInt(r,10),patch:parseInt(i,10),prerelease:a,build:o}}function Yt(e){const n=[];for(let t of h(e).split(jt)){if(!t)continue;const e=[];t=h(t);const r=Wt.exec(t);if(r){if(!Qt(r[1],r[2],e))return}else for(const n of t.split(Ht)){const t=zt.exec(h(n));if(!t||!Zt(t[1],t[2],e))return}n.push(e)}return n}function $t(e){const n=Kt.exec(e);if(!n)return;const[,t,r="*",i="*",a,o]=n;return{version:new Ut(er(t)?0:parseInt(t,10),er(t)||er(r)?0:parseInt(r,10),er(t)||er(r)||er(i)?0:parseInt(i,10),a,o),major:t,minor:r,patch:i}}function Qt(e,n,t){const r=$t(e);if(!r)return!1;const i=$t(n);return!!i&&(er(r.major)||t.push(nr(">=",r.version)),er(i.major)||t.push(er(i.minor)?nr("<",i.version.increment("major")):er(i.patch)?nr("<",i.version.increment("minor")):nr("<=",i.version)),!0)}function Zt(e,n,t){const r=$t(n);if(!r)return!1;const{version:i,major:a,minor:o,patch:s}=r;if(er(a))"<"!==e&&">"!==e||t.push(nr("<",Ut.zero));else switch(e){case"~":t.push(nr(">=",i)),t.push(nr("<",i.increment(er(o)?"major":"minor")));break;case"^":t.push(nr(">=",i)),t.push(nr("<",i.increment(i.major>0||er(o)?"major":i.minor>0||er(s)?"minor":"patch")));break;case"<":case">=":t.push(er(o)||er(s)?nr(e,i.with({prerelease:"0"})):nr(e,i));break;case"<=":case">":t.push(er(o)?nr("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):er(s)?nr("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):nr(e,i));break;case"=":case void 0:er(o)||er(s)?(t.push(nr(">=",i.with({prerelease:"0"}))),t.push(nr("<",i.increment(er(o)?"major":"minor").with({prerelease:"0"})))):t.push(nr("=",i));break;default:return!1}return!0}function er(e){return"*"===e||"x"===e||"X"===e}function nr(e,n){return{operator:e,operand:n}}function tr(e,n){for(const t of n)if(!rr(e,t.operator,t.operand))return!1;return!0}function rr(e,n,t){const r=e.compareTo(t);switch(n){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return Nt.assertNever(n)}}function ir(e){return W(e,ar).join(" ")}function ar(e){return`${e.operator}${e.operand}`}var or,sr,cr,lr=E({"src/compiler/semver.ts"(){lq(),Dt=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Ot=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Mt=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,Pt=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Ft=/^[a-z0-9-]+$/i,Gt=/^(0|[1-9]\d*)$/,(Ut=Bt=class{constructor(e,n=0,t=0,r="",a=""){if("string"===typeof e){const i=Nt.checkDefined(Xt(e),"Invalid version");({major:e,minor:n,patch:t,prerelease:r,build:a}=i)}Nt.assert(e>=0,"Invalid argument: major"),Nt.assert(n>=0,"Invalid argument: minor"),Nt.assert(t>=0,"Invalid argument: patch");const o=r?gn(r)?r:r.split("."):i,s=a?gn(a)?a:a.split("."):i;Nt.assert(N(o,(e=>Mt.test(e))),"Invalid argument: prerelease"),Nt.assert(N(s,(e=>Ft.test(e))),"Invalid argument: build"),this.major=e,this.minor=n,this.patch=t,this.prerelease=o,this.build=s}static tryParse(e){const n=Xt(e);if(!n)return;const{major:t,minor:r,patch:i,prerelease:a,build:o}=n;return new Bt(t,r,i,a,o)}compareTo(e){return this===e?0:void 0===e?1:Un(this.major,e.major)||Un(this.minor,e.minor)||Un(this.patch,e.patch)||function(e,n){if(e===n)return 0;if(0===e.length)return 0===n.length?0:1;if(0===n.length)return-1;const t=Math.min(e.length,n.length);for(let r=0;r<t;r++){const t=e[r],i=n[r];if(t===i)continue;const a=Gt.test(t),o=Gt.test(i);if(a||o){if(a!==o)return a?-1:1;const e=Un(+t,+i);if(e)return e}else{const e=Wn(t,i);if(e)return e}}return Un(e.length,n.length)}(this.prerelease,e.prerelease)}increment(e){switch(e){case"major":return new Bt(this.major+1,0,0);case"minor":return new Bt(this.major,this.minor+1,0);case"patch":return new Bt(this.major,this.minor,this.patch+1);default:return Nt.assertNever(e)}}with(e){const{major:n=this.major,minor:t=this.minor,patch:r=this.patch,prerelease:i=this.prerelease,build:a=this.build}=e;return new Bt(n,t,r,i,a)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return ce(this.prerelease)&&(e+=`-${this.prerelease.join(".")}`),ce(this.build)&&(e+=`+${this.build.join(".")}`),e}}).zero=new Bt(0,0,0,["0"]),Vt=class{constructor(e){this._alternatives=e?Nt.checkDefined(Yt(e),"Invalid range spec."):i}static tryParse(e){const n=Yt(e);if(n){const e=new Vt("");return e._alternatives=n,e}}test(e){return"string"===typeof e&&(e=new Ut(e)),function(e,n){if(0===n.length)return!0;for(const t of n)if(tr(e,t))return!0;return!1}(e,this._alternatives)}toString(){return W(this._alternatives,ir).join(" || ")||"*"}},jt=/\|\|/g,Ht=/\s+/g,Kt=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Wt=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,zt=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function dr(e,n){return"object"===typeof e&&"number"===typeof e.timeOrigin&&"function"===typeof e.mark&&"function"===typeof e.measure&&"function"===typeof e.now&&"function"===typeof e.clearMarks&&"function"===typeof e.clearMeasures&&"function"===typeof n}function ur(){return or}var _r,pr,fr,mr,hr,gr,yr,vr,br,Er,Tr,xr,Sr=E({"src/compiler/performanceCore.ts"(){lq(),or=function(){if("object"===typeof performance&&"function"===typeof PerformanceObserver&&dr(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if(wt())try{let e;const{performance:n,PerformanceObserver:t}=ca("perf_hooks");if(dr(n,t)){e=n;const r=new Ut(process.versions.node);return new Vt("<12.16.3 || 13 <13.13").test(r)&&(e={get timeOrigin(){return n.timeOrigin},now:()=>n.now(),mark:e=>n.mark(e),measure(e,t="nodeStart",r){void 0===r&&(r="__performance.measure-fix__",n.mark(r)),n.measure(e,t,r),"__performance.measure-fix__"===r&&n.clearMarks("__performance.measure-fix__")},clearMarks:e=>n.clearMarks(e),clearMeasures:e=>n.clearMeasures(e)}),{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}}catch(Sa){}}(),sr=null==or?void 0:or.performance,cr=sr?()=>sr.now():Date.now?Date.now:()=>+new Date}}),Ar=E({"src/compiler/perfLogger.ts"(){lq(),_r={logEvent:xn,logErrEvent:xn,logPerfEvent:xn,logInfoEvent:xn,logStartCommand:xn,logStopCommand:xn,logStartUpdateProgram:xn,logStopUpdateProgram:xn,logStartUpdateGraph:xn,logStopUpdateGraph:xn,logStartResolveModule:xn,logStopResolveModule:xn,logStartParseSourceFile:xn,logStopParseSourceFile:xn,logStartReadFile:xn,logStopReadFile:xn,logStartBindFile:xn,logStopBindFile:xn,logStartScheduledOperation:xn,logStopScheduledOperation:xn};try{const e=null!=(fr={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TS_ETW_MODULE_PATH)?fr:"./node_modules/@microsoft/typescript-etw";pr=ca(e)}catch(Sa){pr=void 0}mr=(null==pr?void 0:pr.logEvent)?pr:_r}});function Lr(e,n,t,r){return e?Cr(n,t,r):yr}function Cr(e,n,t){let r=0;return{enter:function(){1===++r&&kr(n)},exit:function(){0===--r?(kr(t),Ir(e,n,t)):r<0&&Nt.fail("enter/exit count does not match.")}}}function kr(e){var n;if(vr){const t=null!=(n=Tr.get(e))?n:0;Tr.set(e,t+1),Er.set(e,cr()),null==gr||gr.mark(e),"function"===typeof onProfilerEvent&&onProfilerEvent(e)}}function Ir(e,n,t){var r,i;if(vr){const a=null!=(r=void 0!==t?Er.get(t):void 0)?r:cr(),o=null!=(i=void 0!==n?Er.get(n):void 0)?i:br,s=xr.get(e)||0;xr.set(e,s+(a-o)),null==gr||gr.measure(e,n,t)}}function wr(e){return Tr.get(e)||0}function Rr(e){return xr.get(e)||0}function Nr(e){xr.forEach(((n,t)=>e(t,n)))}function Dr(e){Er.forEach(((n,t)=>e(t)))}function Or(e){void 0!==e?xr.delete(e):xr.clear(),null==gr||gr.clearMeasures(e)}function Mr(e){void 0!==e?(Tr.delete(e),Er.delete(e)):(Tr.clear(),Er.clear()),null==gr||gr.clearMarks(e)}function Pr(){return vr}function Fr(e=Aa){var n;return vr||(vr=!0,hr||(hr=ur()),hr&&(br=hr.performance.timeOrigin,(hr.shouldWriteNativeEvents||(null==(n=null==e?void 0:e.cpuProfilingEnabled)?void 0:n.call(e))||(null==e?void 0:e.debugMode))&&(gr=hr.performance))),!0}function Gr(){vr&&(Er.clear(),Tr.clear(),xr.clear(),gr=void 0,vr=!1)}var Br=E({"src/compiler/performance.ts"(){lq(),yr={enter:xn,exit:xn},vr=!1,br=cr(),Er=new Map,Tr=new Map,xr=new Map}}),Ur={};T(Ur,{clearMarks:()=>Mr,clearMeasures:()=>Or,createTimer:()=>Cr,createTimerIf:()=>Lr,disable:()=>Gr,enable:()=>Fr,forEachMark:()=>Dr,forEachMeasure:()=>Nr,getCount:()=>wr,getDuration:()=>Rr,isEnabled:()=>Pr,mark:()=>kr,measure:()=>Ir,nullTimer:()=>yr});var Vr,jr,Hr,Kr,Wr,zr,qr,Jr,Xr,Yr,$r,Qr,Zr,ei,ni,ti,ri,ii,ai,oi,si,ci,li,di,ui,_i,pi,fi,mi,hi,gi,yi,vi,bi,Ei,Ti,xi,Si,Ai,Li,Ci,ki,Ii,wi,Ri,Ni,Di,Oi,Mi,Pi,Fi,Gi,Bi,Ui,Vi,ji,Hi,Ki,Wi,zi,qi,Ji,Xi,Yi,$i,Qi,Zi,ea,na,ta,ra,ia,oa,sa,da,ua,_a=E({"src/compiler/_namespaces/ts.performance.ts"(){Br()}}),pa=E({"src/compiler/tracing.ts"(){lq(),_a(),(e=>{let n,t,r=0,i=0;const a=[];let o;const s=[];let c;var l;e.startTracing=function(c,l,d){if(Nt.assert(!Vr,"Tracing already started"),void 0===n)try{n=ca("fs")}catch(Sa){throw new Error(`tracing requires having fs\n(original error: ${Sa.message||Sa})`)}t=c,a.length=0,void 0===o&&(o=Eo(l,"legend.json")),n.existsSync(l)||n.mkdirSync(l,{recursive:!0});const u="build"===t?`.${process.pid}-${++r}`:"server"===t?`.${process.pid}`:"",_=Eo(l,`trace${u}.json`),p=Eo(l,`types${u}.json`);s.push({configFilePath:d,tracePath:_,typesPath:p}),i=n.openSync(_,"w"),Vr=e;const f={cat:"__metadata",ph:"M",ts:1e3*cr(),pid:1,tid:1};n.writeSync(i,"[\n"+[{name:"process_name",args:{name:"tsc"},...f},{name:"thread_name",args:{name:"Main"},...f},{name:"TracingStartedInBrowser",...f,cat:"disabled-by-default-devtools.timeline"}].map((e=>JSON.stringify(e))).join(",\n"))},e.stopTracing=function(){Nt.assert(Vr,"Tracing is not in progress"),Nt.assert(!!a.length===("server"!==t)),n.writeSync(i,"\n]\n"),n.closeSync(i),Vr=void 0,a.length?function(e){var t,r,i,a,o,c,l,d,u,_,p,m,h,g,y,v,b,E,T,x,S,A;kr("beginDumpTypes");const L=s[s.length-1].typesPath,C=n.openSync(L,"w"),k=new Map;n.writeSync(C,"[");const I=e.length;for(let s=0;s<I;s++){const L=e[s],w=L.objectFlags,R=null!=(t=L.aliasSymbol)?t:L.symbol;let N;if(16&w|2944&L.flags)try{N=null==(r=L.checker)?void 0:r.typeToString(L)}catch(Sa){N=void 0}let D={};if(8388608&L.flags){const e=L;D={indexedAccessObjectType:null==(i=e.objectType)?void 0:i.id,indexedAccessIndexType:null==(a=e.indexType)?void 0:a.id}}let O={};if(4&w){const e=L;O={instantiatedType:null==(o=e.target)?void 0:o.id,typeArguments:null==(c=e.resolvedTypeArguments)?void 0:c.map((e=>e.id)),referenceLocation:f(e.node)}}let M={};if(16777216&L.flags){const e=L;M={conditionalCheckType:null==(l=e.checkType)?void 0:l.id,conditionalExtendsType:null==(d=e.extendsType)?void 0:d.id,conditionalTrueType:null!=(_=null==(u=e.resolvedTrueType)?void 0:u.id)?_:-1,conditionalFalseType:null!=(m=null==(p=e.resolvedFalseType)?void 0:p.id)?m:-1}}let P={};if(33554432&L.flags){const e=L;P={substitutionBaseType:null==(h=e.baseType)?void 0:h.id,constraintType:null==(g=e.constraint)?void 0:g.id}}let F={};if(1024&w){const e=L;F={reverseMappedSourceType:null==(y=e.source)?void 0:y.id,reverseMappedMappedType:null==(v=e.mappedType)?void 0:v.id,reverseMappedConstraintType:null==(b=e.constraintType)?void 0:b.id}}let G,B={};if(256&w){const e=L;B={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(E=e.finalArrayType)?void 0:E.id}}const U=L.checker.getRecursionIdentity(L);U&&(G=k.get(U),G||(G=k.size,k.set(U,G)));const V={id:L.id,intrinsicName:L.intrinsicName,symbolName:(null==R?void 0:R.escapedName)&&Bc(R.escapedName),recursionId:G,isTuple:!!(8&w)||void 0,unionTypes:1048576&L.flags?null==(T=L.types)?void 0:T.map((e=>e.id)):void 0,intersectionTypes:2097152&L.flags?L.types.map((e=>e.id)):void 0,aliasTypeArguments:null==(x=L.aliasTypeArguments)?void 0:x.map((e=>e.id)),keyofType:4194304&L.flags?null==(S=L.type)?void 0:S.id:void 0,...D,...O,...M,...P,...F,...B,destructuringPattern:f(L.pattern),firstDeclaration:f(null==(A=null==R?void 0:R.declarations)?void 0:A[0]),flags:Nt.formatTypeFlags(L.flags).split("|"),display:N};n.writeSync(C,JSON.stringify(V)),s<I-1&&n.writeSync(C,",\n")}n.writeSync(C,"]\n"),n.closeSync(C),kr("endDumpTypes"),Ir("Dump types","beginDumpTypes","endDumpTypes")}(a):s[s.length-1].typesPath=void 0},e.recordType=function(e){"server"!==t&&a.push(e)},(l=c=e.Phase||(e.Phase={})).Parse="parse",l.Program="program",l.Bind="bind",l.Check="check",l.CheckTypes="checkTypes",l.Emit="emit",l.Session="session",e.instant=function(e,n,t){p("I",e,n,t,'"s":"g"')};const d=[];e.push=function(e,n,t,r=!1){r&&p("B",e,n,t),d.push({phase:e,name:n,args:t,time:1e3*cr(),separateBeginAndEnd:r})},e.pop=function(e){Nt.assert(d.length>0),_(d.length-1,1e3*cr(),e),d.length--},e.popAll=function(){const e=1e3*cr();for(let n=d.length-1;n>=0;n--)_(n,e);d.length=0};const u=1e4;function _(e,n,t){const{phase:r,name:i,args:a,time:o,separateBeginAndEnd:s}=d[e];s?(Nt.assert(!t,"`results` are not supported for events with `separateBeginAndEnd`"),p("E",r,i,a,void 0,n)):u-o%u<=n-o&&p("X",r,i,{...a,results:t},'"dur":'+(n-o),o)}function p(e,r,a,o,s,c=1e3*cr()){"server"===t&&"checkTypes"===r||(kr("beginTracing"),n.writeSync(i,`,\n{"pid":1,"tid":1,"ph":"${e}","cat":"${r}","ts":${c},"name":"${a}"`),s&&n.writeSync(i,`,${s}`),o&&n.writeSync(i,`,"args":${JSON.stringify(o)}`),n.writeSync(i,"}"),kr("endTracing"),Ir("Tracing","beginTracing","endTracing"))}function f(e){const n=Dp(e);return n?{path:n.path,start:t(Ss(n,e.pos)),end:t(Ss(n,e.end))}:void 0;function t(e){return{line:e.line+1,character:e.character+1}}}e.dumpLegend=function(){o&&n.writeFileSync(o,JSON.stringify(s))}})(jr||(jr={})),Hr=jr.startTracing,Kr=jr.dumpLegend}});function fa(e,n=!0){const t=Mi[e.category];return n?t.toLowerCase():t}var ma,ha,ga,ya,va,ba,Ea,Ta,xa,Aa,La=E({"src/compiler/types.ts"(){Wr=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.HashToken=62]="HashToken",e[e.EqualsToken=63]="EqualsToken",e[e.PlusEqualsToken=64]="PlusEqualsToken",e[e.MinusEqualsToken=65]="MinusEqualsToken",e[e.AsteriskEqualsToken=66]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=68]="SlashEqualsToken",e[e.PercentEqualsToken=69]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=73]="AmpersandEqualsToken",e[e.BarEqualsToken=74]="BarEqualsToken",e[e.BarBarEqualsToken=75]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=78]="CaretEqualsToken",e[e.Identifier=79]="Identifier",e[e.PrivateIdentifier=80]="PrivateIdentifier",e[e.BreakKeyword=81]="BreakKeyword",e[e.CaseKeyword=82]="CaseKeyword",e[e.CatchKeyword=83]="CatchKeyword",e[e.ClassKeyword=84]="ClassKeyword",e[e.ConstKeyword=85]="ConstKeyword",e[e.ContinueKeyword=86]="ContinueKeyword",e[e.DebuggerKeyword=87]="DebuggerKeyword",e[e.DefaultKeyword=88]="DefaultKeyword",e[e.DeleteKeyword=89]="DeleteKeyword",e[e.DoKeyword=90]="DoKeyword",e[e.ElseKeyword=91]="ElseKeyword",e[e.EnumKeyword=92]="EnumKeyword",e[e.ExportKeyword=93]="ExportKeyword",e[e.ExtendsKeyword=94]="ExtendsKeyword",e[e.FalseKeyword=95]="FalseKeyword",e[e.FinallyKeyword=96]="FinallyKeyword",e[e.ForKeyword=97]="ForKeyword",e[e.FunctionKeyword=98]="FunctionKeyword",e[e.IfKeyword=99]="IfKeyword",e[e.ImportKeyword=100]="ImportKeyword",e[e.InKeyword=101]="InKeyword",e[e.InstanceOfKeyword=102]="InstanceOfKeyword",e[e.NewKeyword=103]="NewKeyword",e[e.NullKeyword=104]="NullKeyword",e[e.ReturnKeyword=105]="ReturnKeyword",e[e.SuperKeyword=106]="SuperKeyword",e[e.SwitchKeyword=107]="SwitchKeyword",e[e.ThisKeyword=108]="ThisKeyword",e[e.ThrowKeyword=109]="ThrowKeyword",e[e.TrueKeyword=110]="TrueKeyword",e[e.TryKeyword=111]="TryKeyword",e[e.TypeOfKeyword=112]="TypeOfKeyword",e[e.VarKeyword=113]="VarKeyword",e[e.VoidKeyword=114]="VoidKeyword",e[e.WhileKeyword=115]="WhileKeyword",e[e.WithKeyword=116]="WithKeyword",e[e.ImplementsKeyword=117]="ImplementsKeyword",e[e.InterfaceKeyword=118]="InterfaceKeyword",e[e.LetKeyword=119]="LetKeyword",e[e.PackageKeyword=120]="PackageKeyword",e[e.PrivateKeyword=121]="PrivateKeyword",e[e.ProtectedKeyword=122]="ProtectedKeyword",e[e.PublicKeyword=123]="PublicKeyword",e[e.StaticKeyword=124]="StaticKeyword",e[e.YieldKeyword=125]="YieldKeyword",e[e.AbstractKeyword=126]="AbstractKeyword",e[e.AccessorKeyword=127]="AccessorKeyword",e[e.AsKeyword=128]="AsKeyword",e[e.AssertsKeyword=129]="AssertsKeyword",e[e.AssertKeyword=130]="AssertKeyword",e[e.AnyKeyword=131]="AnyKeyword",e[e.AsyncKeyword=132]="AsyncKeyword",e[e.AwaitKeyword=133]="AwaitKeyword",e[e.BooleanKeyword=134]="BooleanKeyword",e[e.ConstructorKeyword=135]="ConstructorKeyword",e[e.DeclareKeyword=136]="DeclareKeyword",e[e.GetKeyword=137]="GetKeyword",e[e.InferKeyword=138]="InferKeyword",e[e.IntrinsicKeyword=139]="IntrinsicKeyword",e[e.IsKeyword=140]="IsKeyword",e[e.KeyOfKeyword=141]="KeyOfKeyword",e[e.ModuleKeyword=142]="ModuleKeyword",e[e.NamespaceKeyword=143]="NamespaceKeyword",e[e.NeverKeyword=144]="NeverKeyword",e[e.OutKeyword=145]="OutKeyword",e[e.ReadonlyKeyword=146]="ReadonlyKeyword",e[e.RequireKeyword=147]="RequireKeyword",e[e.NumberKeyword=148]="NumberKeyword",e[e.ObjectKeyword=149]="ObjectKeyword",e[e.SatisfiesKeyword=150]="SatisfiesKeyword",e[e.SetKeyword=151]="SetKeyword",e[e.StringKeyword=152]="StringKeyword",e[e.SymbolKeyword=153]="SymbolKeyword",e[e.TypeKeyword=154]="TypeKeyword",e[e.UndefinedKeyword=155]="UndefinedKeyword",e[e.UniqueKeyword=156]="UniqueKeyword",e[e.UnknownKeyword=157]="UnknownKeyword",e[e.FromKeyword=158]="FromKeyword",e[e.GlobalKeyword=159]="GlobalKeyword",e[e.BigIntKeyword=160]="BigIntKeyword",e[e.OverrideKeyword=161]="OverrideKeyword",e[e.OfKeyword=162]="OfKeyword",e[e.QualifiedName=163]="QualifiedName",e[e.ComputedPropertyName=164]="ComputedPropertyName",e[e.TypeParameter=165]="TypeParameter",e[e.Parameter=166]="Parameter",e[e.Decorator=167]="Decorator",e[e.PropertySignature=168]="PropertySignature",e[e.PropertyDeclaration=169]="PropertyDeclaration",e[e.MethodSignature=170]="MethodSignature",e[e.MethodDeclaration=171]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=172]="ClassStaticBlockDeclaration",e[e.Constructor=173]="Constructor",e[e.GetAccessor=174]="GetAccessor",e[e.SetAccessor=175]="SetAccessor",e[e.CallSignature=176]="CallSignature",e[e.ConstructSignature=177]="ConstructSignature",e[e.IndexSignature=178]="IndexSignature",e[e.TypePredicate=179]="TypePredicate",e[e.TypeReference=180]="TypeReference",e[e.FunctionType=181]="FunctionType",e[e.ConstructorType=182]="ConstructorType",e[e.TypeQuery=183]="TypeQuery",e[e.TypeLiteral=184]="TypeLiteral",e[e.ArrayType=185]="ArrayType",e[e.TupleType=186]="TupleType",e[e.OptionalType=187]="OptionalType",e[e.RestType=188]="RestType",e[e.UnionType=189]="UnionType",e[e.IntersectionType=190]="IntersectionType",e[e.ConditionalType=191]="ConditionalType",e[e.InferType=192]="InferType",e[e.ParenthesizedType=193]="ParenthesizedType",e[e.ThisType=194]="ThisType",e[e.TypeOperator=195]="TypeOperator",e[e.IndexedAccessType=196]="IndexedAccessType",e[e.MappedType=197]="MappedType",e[e.LiteralType=198]="LiteralType",e[e.NamedTupleMember=199]="NamedTupleMember",e[e.TemplateLiteralType=200]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=201]="TemplateLiteralTypeSpan",e[e.ImportType=202]="ImportType",e[e.ObjectBindingPattern=203]="ObjectBindingPattern",e[e.ArrayBindingPattern=204]="ArrayBindingPattern",e[e.BindingElement=205]="BindingElement",e[e.ArrayLiteralExpression=206]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=207]="ObjectLiteralExpression",e[e.PropertyAccessExpression=208]="PropertyAccessExpression",e[e.ElementAccessExpression=209]="ElementAccessExpression",e[e.CallExpression=210]="CallExpression",e[e.NewExpression=211]="NewExpression",e[e.TaggedTemplateExpression=212]="TaggedTemplateExpression",e[e.TypeAssertionExpression=213]="TypeAssertionExpression",e[e.ParenthesizedExpression=214]="ParenthesizedExpression",e[e.FunctionExpression=215]="FunctionExpression",e[e.ArrowFunction=216]="ArrowFunction",e[e.DeleteExpression=217]="DeleteExpression",e[e.TypeOfExpression=218]="TypeOfExpression",e[e.VoidExpression=219]="VoidExpression",e[e.AwaitExpression=220]="AwaitExpression",e[e.PrefixUnaryExpression=221]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=222]="PostfixUnaryExpression",e[e.BinaryExpression=223]="BinaryExpression",e[e.ConditionalExpression=224]="ConditionalExpression",e[e.TemplateExpression=225]="TemplateExpression",e[e.YieldExpression=226]="YieldExpression",e[e.SpreadElement=227]="SpreadElement",e[e.ClassExpression=228]="ClassExpression",e[e.OmittedExpression=229]="OmittedExpression",e[e.ExpressionWithTypeArguments=230]="ExpressionWithTypeArguments",e[e.AsExpression=231]="AsExpression",e[e.NonNullExpression=232]="NonNullExpression",e[e.MetaProperty=233]="MetaProperty",e[e.SyntheticExpression=234]="SyntheticExpression",e[e.SatisfiesExpression=235]="SatisfiesExpression",e[e.TemplateSpan=236]="TemplateSpan",e[e.SemicolonClassElement=237]="SemicolonClassElement",e[e.Block=238]="Block",e[e.EmptyStatement=239]="EmptyStatement",e[e.VariableStatement=240]="VariableStatement",e[e.ExpressionStatement=241]="ExpressionStatement",e[e.IfStatement=242]="IfStatement",e[e.DoStatement=243]="DoStatement",e[e.WhileStatement=244]="WhileStatement",e[e.ForStatement=245]="ForStatement",e[e.ForInStatement=246]="ForInStatement",e[e.ForOfStatement=247]="ForOfStatement",e[e.ContinueStatement=248]="ContinueStatement",e[e.BreakStatement=249]="BreakStatement",e[e.ReturnStatement=250]="ReturnStatement",e[e.WithStatement=251]="WithStatement",e[e.SwitchStatement=252]="SwitchStatement",e[e.LabeledStatement=253]="LabeledStatement",e[e.ThrowStatement=254]="ThrowStatement",e[e.TryStatement=255]="TryStatement",e[e.DebuggerStatement=256]="DebuggerStatement",e[e.VariableDeclaration=257]="VariableDeclaration",e[e.VariableDeclarationList=258]="VariableDeclarationList",e[e.FunctionDeclaration=259]="FunctionDeclaration",e[e.ClassDeclaration=260]="ClassDeclaration",e[e.InterfaceDeclaration=261]="InterfaceDeclaration",e[e.TypeAliasDeclaration=262]="TypeAliasDeclaration",e[e.EnumDeclaration=263]="EnumDeclaration",e[e.ModuleDeclaration=264]="ModuleDeclaration",e[e.ModuleBlock=265]="ModuleBlock",e[e.CaseBlock=266]="CaseBlock",e[e.NamespaceExportDeclaration=267]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=268]="ImportEqualsDeclaration",e[e.ImportDeclaration=269]="ImportDeclaration",e[e.ImportClause=270]="ImportClause",e[e.NamespaceImport=271]="NamespaceImport",e[e.NamedImports=272]="NamedImports",e[e.ImportSpecifier=273]="ImportSpecifier",e[e.ExportAssignment=274]="ExportAssignment",e[e.ExportDeclaration=275]="ExportDeclaration",e[e.NamedExports=276]="NamedExports",e[e.NamespaceExport=277]="NamespaceExport",e[e.ExportSpecifier=278]="ExportSpecifier",e[e.MissingDeclaration=279]="MissingDeclaration",e[e.ExternalModuleReference=280]="ExternalModuleReference",e[e.JsxElement=281]="JsxElement",e[e.JsxSelfClosingElement=282]="JsxSelfClosingElement",e[e.JsxOpeningElement=283]="JsxOpeningElement",e[e.JsxClosingElement=284]="JsxClosingElement",e[e.JsxFragment=285]="JsxFragment",e[e.JsxOpeningFragment=286]="JsxOpeningFragment",e[e.JsxClosingFragment=287]="JsxClosingFragment",e[e.JsxAttribute=288]="JsxAttribute",e[e.JsxAttributes=289]="JsxAttributes",e[e.JsxSpreadAttribute=290]="JsxSpreadAttribute",e[e.JsxExpression=291]="JsxExpression",e[e.CaseClause=292]="CaseClause",e[e.DefaultClause=293]="DefaultClause",e[e.HeritageClause=294]="HeritageClause",e[e.CatchClause=295]="CatchClause",e[e.AssertClause=296]="AssertClause",e[e.AssertEntry=297]="AssertEntry",e[e.ImportTypeAssertionContainer=298]="ImportTypeAssertionContainer",e[e.PropertyAssignment=299]="PropertyAssignment",e[e.ShorthandPropertyAssignment=300]="ShorthandPropertyAssignment",e[e.SpreadAssignment=301]="SpreadAssignment",e[e.EnumMember=302]="EnumMember",e[e.UnparsedPrologue=303]="UnparsedPrologue",e[e.UnparsedPrepend=304]="UnparsedPrepend",e[e.UnparsedText=305]="UnparsedText",e[e.UnparsedInternalText=306]="UnparsedInternalText",e[e.UnparsedSyntheticReference=307]="UnparsedSyntheticReference",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.UnparsedSource=310]="UnparsedSource",e[e.InputFiles=311]="InputFiles",e[e.JSDocTypeExpression=312]="JSDocTypeExpression",e[e.JSDocNameReference=313]="JSDocNameReference",e[e.JSDocMemberName=314]="JSDocMemberName",e[e.JSDocAllType=315]="JSDocAllType",e[e.JSDocUnknownType=316]="JSDocUnknownType",e[e.JSDocNullableType=317]="JSDocNullableType",e[e.JSDocNonNullableType=318]="JSDocNonNullableType",e[e.JSDocOptionalType=319]="JSDocOptionalType",e[e.JSDocFunctionType=320]="JSDocFunctionType",e[e.JSDocVariadicType=321]="JSDocVariadicType",e[e.JSDocNamepathType=322]="JSDocNamepathType",e[e.JSDoc=323]="JSDoc",e[e.JSDocComment=323]="JSDocComment",e[e.JSDocText=324]="JSDocText",e[e.JSDocTypeLiteral=325]="JSDocTypeLiteral",e[e.JSDocSignature=326]="JSDocSignature",e[e.JSDocLink=327]="JSDocLink",e[e.JSDocLinkCode=328]="JSDocLinkCode",e[e.JSDocLinkPlain=329]="JSDocLinkPlain",e[e.JSDocTag=330]="JSDocTag",e[e.JSDocAugmentsTag=331]="JSDocAugmentsTag",e[e.JSDocImplementsTag=332]="JSDocImplementsTag",e[e.JSDocAuthorTag=333]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=334]="JSDocDeprecatedTag",e[e.JSDocClassTag=335]="JSDocClassTag",e[e.JSDocPublicTag=336]="JSDocPublicTag",e[e.JSDocPrivateTag=337]="JSDocPrivateTag",e[e.JSDocProtectedTag=338]="JSDocProtectedTag",e[e.JSDocReadonlyTag=339]="JSDocReadonlyTag",e[e.JSDocOverrideTag=340]="JSDocOverrideTag",e[e.JSDocCallbackTag=341]="JSDocCallbackTag",e[e.JSDocOverloadTag=342]="JSDocOverloadTag",e[e.JSDocEnumTag=343]="JSDocEnumTag",e[e.JSDocParameterTag=344]="JSDocParameterTag",e[e.JSDocReturnTag=345]="JSDocReturnTag",e[e.JSDocThisTag=346]="JSDocThisTag",e[e.JSDocTypeTag=347]="JSDocTypeTag",e[e.JSDocTemplateTag=348]="JSDocTemplateTag",e[e.JSDocTypedefTag=349]="JSDocTypedefTag",e[e.JSDocSeeTag=350]="JSDocSeeTag",e[e.JSDocPropertyTag=351]="JSDocPropertyTag",e[e.JSDocThrowsTag=352]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=353]="JSDocSatisfiesTag",e[e.SyntaxList=354]="SyntaxList",e[e.NotEmittedStatement=355]="NotEmittedStatement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.MergeDeclarationMarker=358]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=359]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=360]="SyntheticReferenceExpression",e[e.Count=361]="Count",e[e.FirstAssignment=63]="FirstAssignment",e[e.LastAssignment=78]="LastAssignment",e[e.FirstCompoundAssignment=64]="FirstCompoundAssignment",e[e.LastCompoundAssignment=78]="LastCompoundAssignment",e[e.FirstReservedWord=81]="FirstReservedWord",e[e.LastReservedWord=116]="LastReservedWord",e[e.FirstKeyword=81]="FirstKeyword",e[e.LastKeyword=162]="LastKeyword",e[e.FirstFutureReservedWord=117]="FirstFutureReservedWord",e[e.LastFutureReservedWord=125]="LastFutureReservedWord",e[e.FirstTypeNode=179]="FirstTypeNode",e[e.LastTypeNode=202]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=78]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=162]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=78]="LastBinaryOperator",e[e.FirstStatement=240]="FirstStatement",e[e.LastStatement=256]="LastStatement",e[e.FirstNode=163]="FirstNode",e[e.FirstJSDocNode=312]="FirstJSDocNode",e[e.LastJSDocNode=353]="LastJSDocNode",e[e.FirstJSDocTagNode=330]="FirstJSDocTagNode",e[e.LastJSDocTagNode=353]="LastJSDocTagNode",e[e.FirstContextualKeyword=126]="FirstContextualKeyword",e[e.LastContextualKeyword=162]="LastContextualKeyword",e))(Wr||{}),zr=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=131072]="ThisNodeHasError",e[e.JavaScriptFile=262144]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=1048576]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",e[e.JSDoc=8388608]="JSDoc",e[e.Ambient=16777216]="Ambient",e[e.InWithStatement=33554432]="InWithStatement",e[e.JsonFile=67108864]="JsonFile",e[e.TypeCached=134217728]="TypeCached",e[e.Deprecated=268435456]="Deprecated",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=50720768]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=128]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=2048]="IdentifierIsInJSDocNamespace",e))(zr||{}),qr=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))(qr||{}),Jr=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(Jr||{}),Xr=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(Xr||{}),Yr=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(Yr||{}),$r=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",e))($r||{}),Qr=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Qr||{}),Zr=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Zr||{}),ei=class{},ni=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(ni||{}),ti=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(ti||{}),ri=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(ri||{}),ii=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(ii||{}),ai=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(ai||{}),oi=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(oi||{}),si=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(si||{}),ci=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(ci||{}),li=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(li||{}),di=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(di||{}),ui=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(ui||{}),_i=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(_i||{}),pi=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(pi||{}),fi=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(fi||{}),mi=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(mi||{}),hi=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(hi||{}),gi=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(gi||{}),yi=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(yi||{}),vi=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))(vi||{}),bi=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=65536]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=131072]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=262144]="NeedsLoopOutParameter",e[e.AssignmentsMarked=524288]="AssignmentsMarked",e[e.ClassWithConstructorReference=1048576]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=2097152]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=4194304]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=8388608]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=16777216]="InCheckIdentifier",e))(bi||{}),Ei=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=134348796]="Primitive",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=205258751]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",e))(Ei||{}),Ti=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(Ti||{}),xi=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(xi||{}),Si=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(Si||{}),Ai=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(Ai||{}),Li=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(Li||{}),Ci=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Ci||{}),ki=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.PropagatingFlags=39]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(ki||{}),Ii=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(Ii||{}),wi=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(wi||{}),Ri=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(Ri||{}),Ni=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(Ni||{}),Di=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(Di||{}),Oi=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(Oi||{}),Mi=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(Mi||{}),Pi=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Pi||{}),Fi=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(Fi||{}),Gi=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(Gi||{}),Bi=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Bi||{}),Ui=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(Ui||{}),Vi=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(Vi||{}),ji=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(ji||{}),Hi=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(Hi||{}),Ki=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Ki||{}),Wi=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(Wi||{}),zi=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(zi||{}),qi=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(qi||{}),Ji=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(Ji||{}),Xi=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(Xi||{}),Yi=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Yi||{}),$i=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))($i||{}),Qi=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Qi||{}),Zi=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.HasEndOfDeclarationMarker=8388608]="HasEndOfDeclarationMarker",e[e.Iterator=16777216]="Iterator",e[e.NoAsciiEscaping=33554432]="NoAsciiEscaping",e))(Zi||{}),ea=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(ea||{}),na=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(na||{}),ta=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))(ta||{}),ra=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(ra||{}),ia=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(ia||{}),oa=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(oa||{}),sa=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(sa||{}),da=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(da||{}),ua={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}});function Ca(e){let n=5381;for(let t=0;t<e.length;t++)n=(n<<5)+n+e.charCodeAt(t);return n.toString()}function ka(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function Ia(e,n){return e.getModifiedTime(n)||ga}function wa(e){return{250:e.Low,500:e.Medium,2e3:e.High}}function Ra(e){if(!e.getEnvironmentVariable)return;const n=function(e,n){const r=t(e);if(r)return i("Low"),i("Medium"),i("High"),!0;return!1;function i(e){n[e]=r[e]||n[e]}}("TSC_WATCH_POLLINGINTERVAL",ha);function t(n){let t;return r("Low"),r("Medium"),r("High"),t;function r(r){const i=function(n,t){return e.getEnvironmentVariable(`${n}_${t.toUpperCase()}`)}(n,r);i&&((t||(t={}))[r]=Number(i))}}function r(e,r){const i=t(e);return(n||i)&&wa(i?{...r,...i}:r)}va=r("TSC_WATCH_POLLINGCHUNKSIZE",ya)||va,ba=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",ya)||ba}function Na(e,n,t,r,i){let a=t;for(let s=n.length;r&&s;o(),s--){const o=n[t];if(!o)continue;if(o.isClosed){n[t]=void 0;continue}r--;const s=Pa(o,Ia(e,o.fileName));o.isClosed?n[t]=void 0:(null==i||i(o,t,s),n[t]&&(a<t&&(n[a]=o,n[t]=void 0),a++))}return t;function o(){++t===n.length&&(a<t&&(n.length=a),t=0,a=0)}}function Da(e){const n=[],t=[],r=o(250),i=o(500),a=o(2e3);return function(t,r,i){const a={fileName:t,callback:r,unchangedPolls:0,mtime:Ia(e,t)};return n.push(a),u(a,i),{close:()=>{a.isClosed=!0,ct(n,a)}}};function o(e){const n=[];return n.pollingInterval=e,n.pollIndex=0,n.pollScheduled=!1,n}function s(e){e.pollIndex=l(e,e.pollingInterval,e.pollIndex,va[e.pollingInterval]),e.length?p(e.pollingInterval):(Nt.assert(0===e.pollIndex),e.pollScheduled=!1)}function c(e){l(t,250,0,t.length),s(e),!e.pollScheduled&&t.length&&p(250)}function l(n,r,i,a){return Na(e,n,i,a,(function(e,i,a){a?(e.unchangedPolls=0,n!==t&&(n[i]=void 0,o=e,t.push(o),_(250))):e.unchangedPolls!==ba[r]?e.unchangedPolls++:n===t?(e.unchangedPolls=1,n[i]=void 0,u(e,250)):2e3!==r&&(e.unchangedPolls++,n[i]=void 0,u(e,250===r?500:2e3));var o}))}function d(e){switch(e){case 250:return r;case 500:return i;case 2e3:return a}}function u(e,n){d(n).push(e),_(n)}function _(e){d(e).pollScheduled||p(e)}function p(n){d(n).pollScheduled=e.setTimeout(250===n?c:s,n,d(n))}}function Oa(e,n){const t=un(),r=new Map,i=lt(n);return function(n,a,o,s){const c=i(n);t.add(c,a);const l=po(c)||".",d=r.get(l)||function(n,a,o){const s=e(n,1,((e,r,a)=>{if(!vn(r))return;const o=So(r,n),s=o&&t.get(i(o));if(s)for(const n of s)n(o,1,a)}),!1,500,o);return s.referenceCount=0,r.set(a,s),s}(po(n)||".",l,s);return d.referenceCount++,{close:()=>{1===d.referenceCount?(d.close(),r.delete(l)):d.referenceCount--,t.remove(c,a)}}}}function Ma(e,n,t,r,i){const a=lt(n)(t),o=e.get(a);return o?o.callbacks.push(r):e.set(a,{watcher:i(((n,t,r)=>{var i;return null==(i=e.get(a))?void 0:i.callbacks.slice().forEach((e=>e(n,t,r)))})),callbacks:[r]}),{close:()=>{const n=e.get(a);n&&at(n.callbacks,r)&&!n.callbacks.length&&(e.delete(a),Wj(n))}}}function Pa(e,n){const t=e.mtime.getTime(),r=n.getTime();return t!==r&&(e.mtime=n,e.callback(e.fileName,Fa(t,r),n),!0)}function Fa(e,n){return 0===e?0:0===n?2:1}function Ga(e){return Ta(e)}function Ba(e){Ta=e}function Ua({watchDirectory:e,useCaseSensitiveFileNames:n,getCurrentDirectory:t,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:a,realpath:o,setTimeout:s,clearTimeout:c}){const l=new Map,d=un(),u=new Map;let _;const p=zn(!n),f=lt(n);return(n,t,r,i)=>r?m(n,i,t):e(n,t,r,i);function m(n,t,r){const o=f(n);let p=l.get(o);p?p.refCount++:(p={watcher:e(n,(e=>{b(e,t)||((null==t?void 0:t.synchronousWatchDirectory)?(h(o,e),v(n,o,t)):function(e,n,t,r){const i=l.get(n);if(i&&a(e,1))return void function(e,n,t,r){const i=u.get(n);i?i.fileNames.push(t):u.set(n,{dirName:e,options:r,fileNames:[t]});_&&(c(_),_=void 0);_=s(g,1e3)}(e,n,t,r);h(n,t),y(i)}(n,o,e,t))}),!1,t),refCount:1,childWatches:i},l.set(o,p),v(n,o,t));const m=r&&{dirName:n,callback:r};return m&&d.add(o,m),{dirName:n,close:()=>{const e=Nt.checkDefined(l.get(o));m&&d.remove(o,m),e.refCount--,e.refCount||(l.delete(o),Wj(e),e.childWatches.forEach(PE))}}}function h(e,n,t){let r,i;vn(n)?r=n:i=n,d.forEach(((n,a)=>{if((!i||!0!==i.get(a))&&(a===e||pt(e,a)&&e[a.length]===za))if(i)if(t){const e=i.get(a);e?e.push(...t):i.set(a,t.slice())}else i.set(a,!0);else n.forEach((({callback:e})=>e(r)))}))}function g(){_=void 0,Ga(`sysLog:: onTimerToUpdateChildWatches:: ${u.size}`);const e=cr(),n=new Map;for(;!_&&u.size;){const e=u.entries().next();Nt.assert(!e.done);const{value:[t,{dirName:r,options:i,fileNames:a}]}=e;u.delete(t);const o=v(r,t,i);h(t,n,o?void 0:a)}Ga(`sysLog:: invokingWatchers:: Elapsed:: ${cr()-e}ms:: ${u.size}`),d.forEach(((e,t)=>{const r=n.get(t);r&&e.forEach((({callback:e,dirName:n})=>{gn(r)?r.forEach(e):e(n)}))}));Ga(`sysLog:: Elapsed:: ${cr()-e}ms:: onTimerToUpdateChildWatches:: ${u.size} ${_}`)}function y(e){if(!e)return;const n=e.childWatches;e.childWatches=i;for(const t of n)t.close(),y(l.get(f(t.dirName)))}function v(e,n,t){const s=l.get(n);if(!s)return!1;let c;const d=Tt(a(e,1)?ee(r(e),(n=>{const r=So(n,e);return b(r,t)||0!==p(r,Ao(o(r)))?void 0:r})):i,s.childWatches,((e,n)=>p(e,n.dirName)),(function(e){u(m(e,t))}),PE,u);return s.childWatches=c||i,d;function u(e){(c||(c=[])).push(e)}}function b(e,r){return ce(Ea,(t=>function(e,t){return!!rt(e,t)||!n&&rt(f(e),t)}(e,t)))||Va(e,r,n,t)}}function Va(e,n,t,r){return((null==n?void 0:n.excludeDirectories)||(null==n?void 0:n.excludeFiles))&&(XM(e,null==n?void 0:n.excludeFiles,t,r())||XM(e,null==n?void 0:n.excludeDirectories,t,r()))}function ja(e,n,t,r,i){return(a,o)=>{if("rename"===a){const a=o?Ao(Eo(e,o)):e;o&&Va(a,t,r,i)||n(a)}}}function Ha({pollingWatchFileWorker:e,getModifiedTime:n,setTimeout:t,clearTimeout:r,fsWatchWorker:i,fileSystemEntryExists:a,useCaseSensitiveFileNames:o,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:c,getAccessibleSortedChildDirectories:l,realpath:d,tscWatchFile:u,useNonPollingWatchers:_,tscWatchDirectory:p,inodeWatching:f,sysLog:m}){const h=new Map,g=new Map,y=new Map;let v,b,E,T,x=!1;return{watchFile:S,watchDirectory:function(e,n,i,u){if(c)return w(e,1,ja(e,n,u,o,s),i,500,Kj(u));T||(T=Ua({useCaseSensitiveFileNames:o,getCurrentDirectory:s,fileSystemEntryExists:a,getAccessibleSortedChildDirectories:l,watchDirectory:k,realpath:d,setTimeout:t,clearTimeout:r}));return T(e,n,i,u)}};function S(e,t,r,i){i=function(e,n){if(e&&void 0!==e.watchFile)return e;switch(u){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return C(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return C(4,2,e);case"UseFsEventsOnParentDirectory":n=!0;default:return n?C(5,1,e):{watchFile:4}}}(i,_);const a=Nt.checkDefined(i.watchFile);switch(a){case 0:return I(e,t,250,void 0);case 1:return I(e,t,r,void 0);case 2:return A()(e,t,r,void 0);case 3:return L()(e,t,void 0,void 0);case 4:return w(e,0,function(e,n,t){return(r,i,a)=>{"rename"===r?(a||(a=t(e)||ga),n(e,a!==ga?0:2,a)):n(e,1,a)}}(e,t,n),!1,r,Kj(i));case 5:return E||(E=Oa(w,o)),E(e,t,r,Kj(i));default:Nt.assertNever(a)}}function A(){return v||(v=Da({getModifiedTime:n,setTimeout:t}))}function L(){return b||(b=function(e){const n=[];let t,r=0;return function(t,r){const i={fileName:t,callback:r,mtime:Ia(e,t)};return n.push(i),a(),{close:()=>{i.isClosed=!0,ct(n,i)}}};function i(){t=void 0,r=Na(e,n,r,va[250]),a()}function a(){n.length&&!t&&(t=e.setTimeout(i,2e3))}}({getModifiedTime:n,setTimeout:t}))}function C(e,n,t){const r=null==t?void 0:t.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?n:r}}function k(e,n,t,r){Nt.assert(!t);const i=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(p){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const n=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==n?n:void 0}}}(r),a=Nt.checkDefined(i.watchDirectory);switch(a){case 1:return I(e,(()=>n(e)),500,void 0);case 2:return A()(e,(()=>n(e)),500,void 0);case 3:return L()(e,(()=>n(e)),void 0,void 0);case 0:return w(e,1,ja(e,n,r,o,s),t,500,Kj(i));default:Nt.assertNever(a)}}function I(n,t,r,i){return Ma(h,o,n,t,(t=>e(n,t,r,i)))}function w(e,t,r,s,c,l){return Ma(s?y:g,o,e,r,(r=>function(e,t,r,o,s,c){let l,d;f&&(l=e.substring(e.lastIndexOf(za)),d=l.slice(za.length));let u=a(e,t)?p():y();return{close:()=>{u&&(u.close(),u=void 0)}};function _(n){u&&(m(`sysLog:: ${e}:: Changing watcher to ${n===p?"Present":"Missing"}FileSystemEntryWatcher`),u.close(),u=n())}function p(){if(x)return m(`sysLog:: ${e}:: Defaulting to watchFile`),g();try{const n=i(e,o,f?h:r);return n.on("error",(()=>{r("rename",""),_(y)})),n}catch(Sa){return x||(x="ENOSPC"===Sa.code),m(`sysLog:: ${e}:: Changing to watchFile`),g()}}function h(t,i){let a;if(i&&et(i,"~")&&(a=i,i=i.slice(0,i.length-1)),"rename"!==t||i&&i!==d&&!et(i,l))a&&r(t,a),r(t,i);else{const o=n(e)||ga;a&&r(t,a,o),r(t,i,o),f?_(o===ga?y:p):o===ga&&_(y)}}function g(){return S(e,function(e){return(n,t,r)=>e(1===t?"change":"rename","",r)}(r),s,c)}function y(){return S(e,((t,i,a)=>{0===i&&(a||(a=n(e)||ga),a!==ga&&(r("rename","",a),_(p)))}),s,c)}}(e,t,r,s,c,l)))}}function Ka(e){const n=e.writeFile;e.writeFile=(t,r,i)=>Uv(t,r,!!i,((t,r,i)=>n.call(e,t,r,i)),(n=>e.createDirectory(n)),(n=>e.directoryExists(n)))}function Wa(e){Aa=e}var za,qa,Ja,Xa,Ya,$a=E({"src/compiler/sys.ts"(){lq(),ma=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(ma||{}),ha=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(ha||{}),ga=new Date(0),va=wa(ya={Low:32,Medium:64,High:256}),ba=wa(ya),Ea=["/node_modules/.","/.git","/.#"],Ta=xn,xa=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(xa||{}),Aa=(()=>{let n;return wt()&&(n=function(){const n=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,t=ca("fs"),r=ca("path"),i=ca("os");let a,o;try{a=ca("crypto")}catch(Sa){a=void 0}let s="./profile.cpuprofile";const c=ca("buffer").Buffer,l="linux"===process.platform||"darwin"===process.platform,d=i.platform(),u=function(){return"win32"!==d&&"win64"!==d&&!S((e=aa,e.replace(/\w/g,(e=>{const n=e.toUpperCase();return e===n?e.toLowerCase():n}))));var e}(),_=t.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,p=aa.endsWith("sys.js")?r.join(r.dirname("/"),"__fake__.js"):aa,f="win32"===process.platform||"darwin"===process.platform,m=Rn((()=>process.cwd())),{watchFile:h,watchDirectory:g}=Ha({pollingWatchFileWorker:function(e,n,r){let i;return t.watchFile(e,{persistent:!0,interval:r},a),{close:()=>t.unwatchFile(e,a)};function a(t,r){const a=0===+r.mtime||2===i;if(0===+t.mtime){if(a)return;i=2}else if(a)i=0;else{if(+t.mtime===+r.mtime)return;i=1}n(e,i,t.mtime)}},getModifiedTime:L,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,f?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:u,getCurrentDirectory:m,fileSystemEntryExists:x,fsSupportsRecursiveFsWatch:f,getAccessibleSortedChildDirectories:e=>T(e).directories,realpath:A,tscWatchFile:{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TSC_WATCHFILE,useNonPollingWatchers:{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TSC_NONPOLLING_WATCHER,tscWatchDirectory:{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TSC_WATCHDIRECTORY,inodeWatching:l,sysLog:Ga}),y={args:process.argv.slice(2),newLine:i.EOL,useCaseSensitiveFileNames:u,write(e){process.stdout.write(e)},getWidthOfTerminal:()=>process.stdout.columns,writeOutputIsTTY:()=>process.stdout.isTTY,readFile:function(e,n){mr.logStartReadFile(e);const r=function(e){let n;try{n=t.readFileSync(e)}catch(Sa){return}let r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(let e=0;e<r;e+=2){const t=n[e];n[e]=n[e+1],n[e+1]=t}return n.toString("utf16le",2)}return r>=2&&255===n[0]&&254===n[1]?n.toString("utf16le",2):r>=3&&239===n[0]&&187===n[1]&&191===n[2]?n.toString("utf8",3):n.toString("utf8")}(e);return mr.logStopReadFile(),r},writeFile:function(e,n,r){let i;mr.logEvent("WriteFile: "+e),r&&(n="\ufeff"+n);try{i=t.openSync(e,"w"),t.writeSync(i,n,void 0,"utf8")}finally{void 0!==i&&t.closeSync(i)}},watchFile:h,watchDirectory:g,resolvePath:e=>r.resolve(e),fileExists:S,directoryExists:function(e){return x(e,1)},createDirectory(e){if(!y.directoryExists(e))try{t.mkdirSync(e)}catch(Sa){if("EEXIST"!==Sa.code)throw Sa}},getExecutingFilePath:()=>p,getCurrentDirectory:m,getDirectories:function(e){return T(e).directories.slice()},getEnvironmentVariable:e=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[e]||""),readDirectory:function(e,n,t,r,i){return Dx(e,n,t,r,u,process.cwd(),i,T,A)},getModifiedTime:L,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch(Sa){return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch(Sa){return}},createHash:a?C:Ca,createSHA256Hash:a?C:void 0,getMemoryUsage:()=>(e.g.gc&&e.g.gc(),process.memoryUsage().heapUsed),getFileSize(e){try{const n=v(e);if(null==n?void 0:n.isFile())return n.size}catch(Sa){}return 0},exit(e){b((()=>process.exit(e)))},enableCPUProfiler:function(e,n){if(o)return n(),!1;const t=ca("inspector");if(!t||!t.Session)return n(),!1;const r=new t.Session;return r.connect(),r.post("Profiler.enable",(()=>{r.post("Profiler.start",(()=>{o=r,s=e,n()}))})),!0},disableCPUProfiler:b,cpuProfilingEnabled:()=>!!o||G(process.execArgv,"--cpu-prof")||G(process.execArgv,"--prof"),realpath:A,debugMode:!!{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.NODE_INSPECTOR_IPC||!!{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_INSPECTOR_OPTIONS||ce(process.execArgv,(e=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e))),tryEnableSourceMapsForHost(){try{ca("source-map-support").install()}catch(Sa){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:()=>{process.stdout.write("\x1bc")},setBlocking:()=>{process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:E,base64decode:e=>E(e,"base64").toString("utf8"),base64encode:e=>E(e).toString("base64"),require:(e,n)=>{try{const t=YP(n,e,y);return{module:ca(t),modulePath:t,error:void 0}}catch(t){return{module:void 0,modulePath:void 0,error:t}}}};return y;function v(e){return t.statSync(e,{throwIfNoEntry:!1})}function b(e){if(o&&"stopping"!==o){const i=o;return o.post("Profiler.stop",((a,{profile:c})=>{var l;if(!a){try{(null==(l=v(s))?void 0:l.isDirectory())&&(s=r.join(s,`${(new Date).toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch(Sa){}try{t.mkdirSync(r.dirname(s),{recursive:!0})}catch(Sa){}t.writeFileSync(s,JSON.stringify(function(e){let t=0;const i=new Map,a=vo(r.dirname(p)),o=`file://${1===_o(a)?"":"/"}${a}`;for(const r of e.nodes)if(r.callFrame.url){const e=vo(r.callFrame.url);Po(o,e,u)?r.callFrame.url=jo(o,e,o,lt(u),!0):n.test(e)||(r.callFrame.url=(i.has(e)?i:i.set(e,`external${t}.js`)).get(e),t++)}return e}(c)))}o=void 0,i.disconnect(),e()})),o="stopping",!0}return e(),!1}function E(e,n){return c.from&&c.from!==Int8Array.from?c.from(e,n):new c(e,n)}function T(e){mr.logEvent("ReadDir: "+(e||"."));try{const n=t.readdirSync(e||".",{withFileTypes:!0}),r=[],i=[];for(const t of n){const n="string"===typeof t?t:t.name;if("."===n||".."===n)continue;let a;if("string"===typeof t||t.isSymbolicLink()){const t=Eo(e,n);try{if(a=v(t),!a)continue}catch(Sa){continue}}else a=t;a.isFile()?r.push(n):a.isDirectory()&&i.push(n)}return r.sort(),i.sort(),{files:r,directories:i}}catch(Sa){return op}}function x(e,n){const t=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const t=v(e);if(!t)return!1;switch(n){case 0:return t.isFile();case 1:return t.isDirectory();default:return!1}}catch(Sa){return!1}finally{Error.stackTraceLimit=t}}function S(e){return x(e,0)}function A(e){try{return _(e)}catch(Sa){return e}}function L(e){var n;const t=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return null==(n=v(e))?void 0:n.mtime}catch(Sa){return}finally{Error.stackTraceLimit=t}}function C(e){const n=a.createHash("sha256");return n.update(e),n.digest("hex")}}()),n&&Ka(n),n})(),Aa&&Aa.getEnvironmentVariable&&(Ra(Aa),Nt.setAssertionLevel(/^development$/i.test(Aa.getEnvironmentVariable("NODE_ENV"))?1:0)),Aa&&Aa.debugMode&&(Nt.isDebugging=!0)}});function Qa(e){return 47===e||92===e}function Za(e){return uo(e)<0}function eo(e){return uo(e)>0}function no(e){const n=uo(e);return n>0&&n===e.length}function to(e){return 0!==uo(e)}function ro(e){return/^\.\.?($|[\\/])/.test(e)}function io(e){return!to(e)&&!ro(e)}function ao(e){return rt(fo(e),".")}function oo(e,n){return e.length>n.length&&et(e,n)}function so(e,n){for(const t of n)if(oo(e,t))return!0;return!1}function co(e){return e.length>0&&Qa(e.charCodeAt(e.length-1))}function lo(e){return e>=97&&e<=122||e>=65&&e<=90}function uo(e){if(!e)return 0;const n=e.charCodeAt(0);if(47===n||92===n){if(e.charCodeAt(1)!==n)return 1;const t=e.indexOf(47===n?za:qa,2);return t<0?e.length:t+1}if(lo(n)&&58===e.charCodeAt(1)){const n=e.charCodeAt(2);if(47===n||92===n)return 3;if(2===e.length)return 2}const t=e.indexOf(Ja);if(-1!==t){const n=t+Ja.length,r=e.indexOf(za,n);if(-1!==r){const i=e.slice(0,t),a=e.slice(n,r);if("file"===i&&(""===a||"localhost"===a)&&lo(e.charCodeAt(r+1))){const n=function(e,n){const t=e.charCodeAt(n);if(58===t)return n+1;if(37===t&&51===e.charCodeAt(n+1)){const t=e.charCodeAt(n+2);if(97===t||65===t)return n+3}return-1}(e,r+2);if(-1!==n){if(47===e.charCodeAt(n))return~(n+1);if(n===e.length)return~n}}return~(r+1)}return~e.length}return 0}function _o(e){const n=uo(e);return n<0?~n:n}function po(e){const n=_o(e=vo(e));return n===e.length?e:(e=ko(e)).slice(0,Math.max(n,e.lastIndexOf(za)))}function fo(e,n,t){if(_o(e=vo(e))===e.length)return"";const r=(e=ko(e)).slice(Math.max(_o(e),e.lastIndexOf(za)+1)),i=void 0!==n&&void 0!==t?ho(r,n,t):void 0;return i?r.slice(0,r.length-i.length):r}function mo(e,n,t){if(pt(n,".")||(n="."+n),e.length>=n.length&&46===e.charCodeAt(e.length-n.length)){const r=e.slice(e.length-n.length);if(t(r,n))return r}}function ho(e,n,t){if(n)return function(e,n,t){if("string"===typeof n)return mo(e,n,t)||"";for(const r of n){const n=mo(e,r,t);if(n)return n}return""}(ko(e),n,t?Fn:Gn);const r=fo(e),i=r.lastIndexOf(".");return i>=0?r.substring(i):""}function go(e,n=""){return function(e,n){const t=e.substring(0,n),r=e.substring(n).split(za);return r.length&&!Fe(r)&&r.pop(),[t,...r]}(e=Eo(n,e),_o(e))}function yo(e){if(0===e.length)return"";return(e[0]&&Io(e[0]))+e.slice(1).join(za)}function vo(e){return-1!==e.indexOf("\\")?e.replace(Xa,za):e}function bo(e){if(!ce(e))return[];const n=[e[0]];for(let t=1;t<e.length;t++){const r=e[t];if(r&&"."!==r){if(".."===r)if(n.length>1){if(".."!==n[n.length-1]){n.pop();continue}}else if(n[0])continue;n.push(r)}}return n}function Eo(e,...n){e&&(e=vo(e));for(let t of n)t&&(t=vo(t),e=e&&0===_o(t)?Io(e)+t:t);return e}function To(e,...n){return Ao(ce(n)?Eo(e,...n):vo(e))}function xo(e,n){return bo(go(e,n))}function So(e,n){return yo(xo(e,n))}function Ao(e){if(e=vo(e),!Ya.test(e))return e;const n=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(n!==e&&(e=n,!Ya.test(e)))return e;const t=yo(bo(go(e)));return t&&co(e)?Io(t):t}function Lo(e,n){return 0===(t=xo(e,n)).length?"":t.slice(1).join(za);var t}function Co(e,n,t){return t(eo(e)?Ao(e):So(e,n))}function ko(e){return co(e)?e.substr(0,e.length-1):e}function Io(e){return co(e)?e:e+za}function wo(e){return to(e)||ro(e)?e:"./"+e}function Ro(e,n,t,r){const i=void 0!==t&&void 0!==r?ho(e,t,r):ho(e);return i?e.slice(0,e.length-i.length)+(pt(n,".")?n:"."+n):e}function No(e,n,t){if(e===n)return 0;if(void 0===e)return-1;if(void 0===n)return 1;const r=e.substring(0,_o(e)),i=n.substring(0,_o(n)),a=Hn(r,i);if(0!==a)return a;const o=e.substring(r.length),s=n.substring(i.length);if(!Ya.test(o)&&!Ya.test(s))return t(o,s);const c=bo(go(e)),l=bo(go(n)),d=Math.min(c.length,l.length);for(let u=1;u<d;u++){const e=t(c[u],l[u]);if(0!==e)return e}return Un(c.length,l.length)}function Do(e,n){return No(e,n,Wn)}function Oo(e,n){return No(e,n,Hn)}function Mo(e,n,t,r){return"string"===typeof t?(e=Eo(t,e),n=Eo(t,n)):"boolean"===typeof t&&(r=t),No(e,n,zn(r))}function Po(e,n,t,r){if("string"===typeof t?(e=Eo(t,e),n=Eo(t,n)):"boolean"===typeof t&&(r=t),void 0===e||void 0===n)return!1;if(e===n)return!0;const i=bo(go(e)),a=bo(go(n));if(a.length<i.length)return!1;const o=r?Fn:Gn;for(let s=0;s<i.length;s++){if(!(0===s?Fn:o)(i[s],a[s]))return!1}return!0}function Fo(e,n,t){const r=t(e),i=t(n);return pt(r,i+"/")||pt(r,i+"\\")}function Go(e,n,t,r){const i=bo(go(e)),a=bo(go(n));let o;for(o=0;o<i.length&&o<a.length;o++){if(!(0===o?Fn:t)(r(i[o]),r(a[o])))break}if(0===o)return a;const s=a.slice(o),c=[];for(;o<i.length;o++)c.push("..");return["",...c,...s]}function Bo(e,n,t){Nt.assert(_o(e)>0===_o(n)>0,"Paths must either both be absolute or both be relative");return yo(Go(e,n,"boolean"===typeof t&&t?Fn:Gn,"function"===typeof t?t:Cn))}function Uo(e,n,t){return eo(e)?jo(n,e,n,t,!1):e}function Vo(e,n,t){return wo(Bo(po(e),n,t))}function jo(e,n,t,r,i){const a=Go(To(t,e),To(t,n),Gn,r),o=a[0];if(i&&eo(o)){const e=o.charAt(0)===za?"file://":"file:///";a[0]=e+o}return yo(a)}function Ho(e,n){for(;;){const t=n(e);if(void 0!==t)return t;const r=po(e);if(r===e)return;e=r}}function Ko(e){return et(e,"/node_modules")}var Wo,zo=E({"src/compiler/path.ts"(){lq(),za="/",qa="\\",Ja="://",Xa=/\\/g,Ya=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function qo(e,n,t,r,i,a,o){return{code:e,category:n,key:t,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:a,reportsDeprecated:o}}var Jo,Xo,Yo,$o,Qo,Zo,es,ns,ts,rs,is,as,os,ss,cs,ls,ds=E({"src/compiler/diagnosticInformationMap.generated.ts"(){La(),Wo={Unterminated_string_literal:qo(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:qo(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:qo(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:qo(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:qo(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:qo(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:qo(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:qo(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:qo(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:qo(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:qo(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:qo(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:qo(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:qo(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:qo(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:qo(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:qo(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:qo(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:qo(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:qo(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:qo(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:qo(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:qo(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:qo(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:qo(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:qo(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:qo(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:qo(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:qo(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:qo(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:qo(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:qo(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:qo(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:qo(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:qo(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:qo(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:qo(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:qo(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:qo(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:qo(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:qo(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:qo(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:qo(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:qo(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:qo(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:qo(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:qo(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:qo(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:qo(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:qo(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:qo(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:qo(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:qo(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:qo(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:qo(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:qo(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:qo(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:qo(1085,1,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:qo(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:qo(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:qo(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:qo(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:qo(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:qo(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:qo(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:qo(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:qo(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:qo(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:qo(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:qo(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:qo(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:qo(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:qo(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:qo(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:qo(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:qo(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:qo(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:qo(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:qo(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:qo(1110,1,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:qo(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:qo(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:qo(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:qo(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:qo(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:qo(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:qo(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:qo(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:qo(1121,1,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:qo(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:qo(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:qo(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:qo(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:qo(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:qo(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:qo(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:qo(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:qo(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:qo(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:qo(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:qo(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:qo(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:qo(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:qo(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:qo(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:qo(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:qo(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:qo(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:qo(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:qo(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:qo(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:qo(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:qo(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:qo(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:qo(1155,1,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:qo(1156,1,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:qo(1157,1,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:qo(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:qo(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:qo(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:qo(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:qo(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:qo(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:qo(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:qo(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:qo(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:qo(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:qo(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:qo(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:qo(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:qo(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:qo(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:qo(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:qo(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:qo(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:qo(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:qo(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:qo(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:qo(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:qo(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:qo(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:qo(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:qo(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:qo(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:qo(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:qo(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:qo(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:qo(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:qo(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:qo(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:qo(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:qo(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:qo(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:qo(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:qo(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:qo(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:qo(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:qo(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:qo(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:qo(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:qo(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:qo(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:qo(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:qo(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:qo(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:qo(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:qo(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:qo(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:qo(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:qo(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:qo(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:qo(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:qo(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:qo(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:qo(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:qo(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:qo(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:qo(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:qo(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:qo(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:qo(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:qo(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:qo(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:qo(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:qo(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:qo(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:qo(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:qo(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:qo(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:qo(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:qo(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:qo(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:qo(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:qo(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:qo(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:qo(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:qo(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:qo(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:qo(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:qo(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:qo(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:qo(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:qo(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:qo(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:qo(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:qo(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:qo(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:qo(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:qo(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:qo(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:qo(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:qo(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:qo(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:qo(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:qo(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:qo(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:qo(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:qo(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:qo(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:qo(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:qo(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:qo(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:qo(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:qo(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:qo(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:qo(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:qo(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:qo(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:qo(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:qo(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:qo(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:qo(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:qo(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:qo(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:qo(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:qo(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:qo(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:qo(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:qo(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:qo(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:qo(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:qo(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:qo(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:qo(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:qo(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:qo(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:qo(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:qo(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:qo(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:qo(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:qo(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:qo(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:qo(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:qo(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:qo(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:qo(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:qo(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:qo(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:qo(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:qo(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:qo(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:qo(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:qo(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:qo(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:qo(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:qo(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:qo(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:qo(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:qo(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:qo(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:qo(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:qo(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:qo(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:qo(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:qo(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:qo(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:qo(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:qo(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:qo(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:qo(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:qo(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:qo(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:qo(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:qo(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:qo(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:qo(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:qo(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:qo(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:qo(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:qo(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:qo(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:qo(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:qo(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:qo(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:qo(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:qo(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:qo(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:qo(1373,3,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:qo(1374,3,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:qo(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:qo(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:qo(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:qo(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:qo(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:qo(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:qo(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:qo(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:qo(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:qo(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:qo(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:qo(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:qo(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:qo(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:qo(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:qo(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:qo(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:qo(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:qo(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:qo(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:qo(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:qo(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:qo(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:qo(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:qo(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:qo(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:qo(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:qo(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:qo(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:qo(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:qo(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:qo(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:qo(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:qo(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:qo(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:qo(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:qo(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:qo(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:qo(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:qo(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:qo(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:qo(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:qo(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:qo(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:qo(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:qo(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:qo(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:qo(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:qo(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:qo(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:qo(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:qo(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:qo(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:qo(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:qo(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:qo(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:qo(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:qo(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:qo(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:qo(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:qo(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:qo(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:qo(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:qo(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:qo(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:qo(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:qo(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:qo(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:qo(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:qo(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:qo(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:qo(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:qo(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:qo(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:qo(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:qo(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:qo(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:qo(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:qo(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:qo(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:qo(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:qo(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:qo(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:qo(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:qo(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:qo(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:qo(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:qo(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:qo(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:qo(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:qo(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:qo(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:qo(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:qo(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:qo(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:qo(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:qo(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:qo(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:qo(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),The_types_of_0_are_incompatible_between_these_types:qo(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:qo(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:qo(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:qo(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:qo(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:qo(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:qo(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:qo(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:qo(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:qo(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:qo(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:qo(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:qo(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:qo(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:qo(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:qo(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:qo(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:qo(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:qo(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:qo(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:qo(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:qo(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:qo(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:qo(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:qo(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:qo(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:qo(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:qo(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:qo(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:qo(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:qo(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:qo(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:qo(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:qo(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:qo(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:qo(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:qo(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:qo(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:qo(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:qo(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:qo(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:qo(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:qo(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:qo(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:qo(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:qo(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:qo(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:qo(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:qo(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:qo(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:qo(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:qo(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:qo(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:qo(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:qo(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:qo(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:qo(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:qo(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:qo(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:qo(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:qo(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:qo(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:qo(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:qo(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:qo(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:qo(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:qo(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:qo(2355,1,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:qo(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:qo(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:qo(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:qo(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:qo(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:qo(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:qo(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:qo(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:qo(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:qo(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:qo(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:qo(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:qo(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:qo(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:qo(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:qo(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:qo(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:qo(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:qo(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:qo(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:qo(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:qo(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:qo(2380,1,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:qo(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:qo(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:qo(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:qo(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:qo(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:qo(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:qo(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:qo(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:qo(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:qo(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:qo(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:qo(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:qo(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:qo(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:qo(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:qo(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:qo(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:qo(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:qo(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:qo(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:qo(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:qo(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:qo(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:qo(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:qo(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:qo(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:qo(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:qo(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:qo(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:qo(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:qo(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:qo(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:qo(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:qo(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:qo(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:qo(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:qo(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:qo(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:qo(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:qo(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:qo(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:qo(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:qo(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:qo(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:qo(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:qo(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:qo(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:qo(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:qo(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:qo(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:qo(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:qo(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:qo(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:qo(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:qo(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:qo(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:qo(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:qo(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:qo(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:qo(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:qo(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:qo(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:qo(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:qo(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:qo(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:qo(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:qo(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:qo(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:qo(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:qo(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:qo(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:qo(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:qo(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:qo(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:qo(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:qo(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:qo(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:qo(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:qo(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:qo(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:qo(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:qo(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:qo(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:qo(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:qo(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:qo(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:qo(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:qo(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:qo(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:qo(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:qo(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:qo(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:qo(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:qo(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:qo(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:qo(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:qo(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:qo(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:qo(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:qo(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:qo(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:qo(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:qo(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:qo(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:qo(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:qo(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:qo(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:qo(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:qo(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:qo(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:qo(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:qo(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:qo(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:qo(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:qo(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:qo(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:qo(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:qo(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:qo(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:qo(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:qo(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:qo(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:qo(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:qo(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:qo(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:qo(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:qo(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:qo(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:qo(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:qo(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:qo(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:qo(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:qo(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:qo(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:qo(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:qo(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:qo(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:qo(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:qo(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:qo(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:qo(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:qo(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:qo(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:qo(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:qo(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:qo(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:qo(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:qo(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:qo(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:qo(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:qo(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:qo(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:qo(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:qo(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:qo(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:qo(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:qo(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:qo(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:qo(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:qo(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:qo(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:qo(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:qo(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:qo(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:qo(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:qo(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:qo(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:qo(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:qo(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:qo(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:qo(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:qo(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:qo(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:qo(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:qo(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:qo(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:qo(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:qo(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:qo(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:qo(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:qo(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:qo(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:qo(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:qo(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:qo(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:qo(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:qo(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:qo(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:qo(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:qo(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:qo(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:qo(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:qo(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:qo(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:qo(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:qo(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:qo(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:qo(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:qo(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:qo(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:qo(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:qo(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:qo(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:qo(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:qo(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:qo(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:qo(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:qo(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:qo(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:qo(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:qo(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:qo(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:qo(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:qo(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:qo(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:qo(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:qo(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:qo(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:qo(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:qo(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:qo(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:qo(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:qo(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:qo(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:qo(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:qo(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:qo(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:qo(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:qo(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:qo(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:qo(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:qo(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:qo(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:qo(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:qo(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:qo(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:qo(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:qo(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:qo(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:qo(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:qo(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:qo(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:qo(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:qo(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:qo(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:qo(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:qo(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:qo(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:qo(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:qo(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:qo(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:qo(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:qo(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:qo(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:qo(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:qo(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:qo(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:qo(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:qo(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:qo(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:qo(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:qo(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:qo(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:qo(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:qo(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:qo(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:qo(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:qo(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:qo(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:qo(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:qo(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:qo(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:qo(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:qo(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:qo(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:qo(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:qo(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:qo(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:qo(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:qo(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:qo(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:qo(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:qo(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:qo(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:qo(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:qo(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:qo(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:qo(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:qo(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:qo(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:qo(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:qo(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:qo(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:qo(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:qo(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:qo(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:qo(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:qo(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:qo(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:qo(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:qo(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:qo(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:qo(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:qo(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:qo(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:qo(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:qo(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:qo(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:qo(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:qo(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:qo(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:qo(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:qo(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:qo(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:qo(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:qo(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:qo(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:qo(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:qo(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:qo(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:qo(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:qo(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:qo(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:qo(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:qo(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:qo(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:qo(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:qo(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:qo(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:qo(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:qo(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:qo(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:qo(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:qo(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:qo(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:qo(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:qo(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:qo(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:qo(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:qo(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:qo(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:qo(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:qo(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:qo(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:qo(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:qo(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:qo(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:qo(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:qo(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:qo(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:qo(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:qo(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:qo(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:qo(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:qo(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:qo(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:qo(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:qo(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:qo(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:qo(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:qo(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:qo(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:qo(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:qo(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:qo(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:qo(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:qo(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:qo(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:qo(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:qo(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:qo(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:qo(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:qo(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:qo(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:qo(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:qo(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:qo(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:qo(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:qo(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:qo(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:qo(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:qo(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:qo(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:qo(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:qo(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:qo(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:qo(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:qo(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:qo(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:qo(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:qo(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:qo(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:qo(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:qo(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:qo(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:qo(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:qo(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:qo(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:qo(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:qo(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:qo(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:qo(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:qo(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:qo(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:qo(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:qo(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:qo(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:qo(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:qo(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:qo(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),Import_declaration_0_is_using_private_name_1:qo(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:qo(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:qo(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:qo(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:qo(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:qo(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:qo(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:qo(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:qo(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:qo(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:qo(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:qo(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:qo(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:qo(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:qo(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:qo(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:qo(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:qo(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:qo(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:qo(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:qo(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:qo(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:qo(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:qo(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:qo(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:qo(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:qo(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:qo(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:qo(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:qo(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:qo(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:qo(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:qo(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:qo(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:qo(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:qo(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:qo(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:qo(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:qo(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:qo(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:qo(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:qo(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:qo(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:qo(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:qo(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:qo(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:qo(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:qo(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:qo(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:qo(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:qo(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:qo(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:qo(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:qo(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:qo(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:qo(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:qo(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:qo(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:qo(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:qo(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:qo(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:qo(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:qo(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:qo(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:qo(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:qo(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:qo(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:qo(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:qo(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:qo(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:qo(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:qo(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:qo(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:qo(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:qo(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:qo(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:qo(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:qo(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:qo(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:qo(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:qo(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:qo(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:qo(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:qo(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:qo(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:qo(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:qo(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:qo(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:qo(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:qo(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:qo(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:qo(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:qo(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:qo(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:qo(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:qo(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:qo(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:qo(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:qo(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:qo(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:qo(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:qo(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:qo(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:qo(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:qo(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:qo(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:qo(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:qo(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:qo(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:qo(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:qo(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:qo(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:qo(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:qo(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:qo(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:qo(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:qo(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:qo(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:qo(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:qo(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:qo(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:qo(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:qo(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:qo(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:qo(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:qo(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:qo(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:qo(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:qo(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:qo(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:qo(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:qo(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:qo(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:qo(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:qo(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:qo(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:qo(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:qo(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:qo(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:qo(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:qo(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:qo(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:qo(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:qo(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:qo(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:qo(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:qo(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:qo(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:qo(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:qo(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:qo(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:qo(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:qo(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:qo(5084,1,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:qo(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:qo(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:qo(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:qo(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:qo(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:qo(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:qo(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:qo(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:qo(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:qo(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:qo(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:qo(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:qo(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:qo(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:qo(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:qo(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:qo(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:qo(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:qo(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:qo(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:qo(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:qo(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:qo(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:qo(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:qo(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:qo(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:qo(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:qo(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:qo(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:qo(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:qo(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:qo(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:qo(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:qo(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:qo(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:qo(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:qo(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:qo(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:qo(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:qo(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:qo(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:qo(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:qo(6024,3,"options_6024","options"),file:qo(6025,3,"file_6025","file"),Examples_Colon_0:qo(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:qo(6027,3,"Options_Colon_6027","Options:"),Version_0:qo(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:qo(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:qo(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:qo(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:qo(6034,3,"KIND_6034","KIND"),FILE:qo(6035,3,"FILE_6035","FILE"),VERSION:qo(6036,3,"VERSION_6036","VERSION"),LOCATION:qo(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:qo(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:qo(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:qo(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:qo(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:qo(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:qo(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:qo(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:qo(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:qo(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:qo(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:qo(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:qo(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:qo(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:qo(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:qo(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:qo(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:qo(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:qo(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:qo(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:qo(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:qo(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:qo(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:qo(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:qo(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:qo(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:qo(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:qo(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:qo(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:qo(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:qo(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:qo(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:qo(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:qo(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:qo(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:qo(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:qo(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:qo(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:qo(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:qo(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:qo(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:qo(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:qo(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:qo(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:qo(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:qo(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:qo(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:qo(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:qo(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:qo(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:qo(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:qo(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:qo(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:qo(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:qo(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:qo(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:qo(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:qo(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:qo(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:qo(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:qo(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:qo(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:qo(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:qo(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:qo(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:qo(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:qo(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:qo(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:qo(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:qo(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:qo(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:qo(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:qo(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:qo(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:qo(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:qo(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:qo(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:qo(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:qo(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:qo(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:qo(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:qo(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:qo(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:qo(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:qo(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:qo(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:qo(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:qo(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:qo(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:qo(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:qo(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:qo(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:qo(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:qo(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:qo(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:qo(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:qo(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:qo(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:qo(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:qo(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:qo(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:qo(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:qo(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:qo(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:qo(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:qo(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:qo(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:qo(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:qo(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:qo(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:qo(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:qo(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:qo(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:qo(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:qo(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:qo(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:qo(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:qo(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:qo(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:qo(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:qo(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:qo(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:qo(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:qo(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:qo(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:qo(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:qo(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:qo(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:qo(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:qo(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:qo(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:qo(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:qo(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:qo(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:qo(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:qo(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:qo(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:qo(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:qo(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:qo(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:qo(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:qo(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:qo(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:qo(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:qo(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:qo(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:qo(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:qo(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:qo(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:qo(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:qo(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:qo(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:qo(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:qo(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:qo(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:qo(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:qo(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:qo(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:qo(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:qo(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:qo(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:qo(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:qo(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:qo(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:qo(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:qo(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:qo(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:qo(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:qo(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:qo(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:qo(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:qo(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:qo(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:qo(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:qo(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:qo(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:qo(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:qo(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:qo(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:qo(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:qo(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:qo(6244,3,"Modules_6244","Modules"),File_Management:qo(6245,3,"File_Management_6245","File Management"),Emit:qo(6246,3,"Emit_6246","Emit"),JavaScript_Support:qo(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:qo(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:qo(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:qo(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:qo(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:qo(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:qo(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:qo(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:qo(6255,3,"Projects_6255","Projects"),Output_Formatting:qo(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:qo(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:qo(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:qo(6259,3,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:qo(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:qo(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:qo(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:qo(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:qo(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:qo(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:qo(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:qo(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:qo(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:qo(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:qo(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:qo(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:qo(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:qo(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Enable_project_compilation:qo(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:qo(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:qo(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:qo(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:qo(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:qo(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:qo(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:qo(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:qo(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:qo(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:qo(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:qo(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:qo(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:qo(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:qo(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:qo(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:qo(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:qo(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:qo(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:qo(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:qo(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:qo(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:qo(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:qo(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:qo(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:qo(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:qo(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:qo(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:qo(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:qo(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:qo(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:qo(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:qo(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:qo(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:qo(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:qo(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:qo(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:qo(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:qo(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:qo(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:qo(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:qo(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:qo(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:qo(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:qo(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:qo(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:qo(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:qo(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:qo(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:qo(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:qo(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:qo(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:qo(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:qo(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:qo(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:qo(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:qo(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:qo(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:qo(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:qo(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:qo(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:qo(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:qo(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:qo(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:qo(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:qo(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:qo(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:qo(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:qo(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:qo(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:qo(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:qo(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:qo(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:qo(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:qo(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:qo(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:qo(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:qo(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:qo(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:qo(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:qo(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:qo(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:qo(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:qo(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:qo(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:qo(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:qo(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:qo(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:qo(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:qo(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:qo(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:qo(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:qo(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:qo(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:qo(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:qo(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:qo(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:qo(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:qo(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:qo(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:qo(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:qo(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:qo(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:qo(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:qo(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:qo(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:qo(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:qo(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:qo(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:qo(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:qo(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:qo(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:qo(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:qo(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:qo(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:qo(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:qo(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:qo(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:qo(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:qo(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:qo(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:qo(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:qo(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:qo(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:qo(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:qo(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:qo(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:qo(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:qo(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:qo(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:qo(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:qo(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:qo(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:qo(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:qo(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:qo(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:qo(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:qo(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:qo(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:qo(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:qo(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:qo(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:qo(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:qo(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:qo(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:qo(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:qo(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:qo(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:qo(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:qo(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:qo(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:qo(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:qo(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:qo(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:qo(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:qo(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:qo(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:qo(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:qo(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:qo(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:qo(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:qo(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:qo(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:qo(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:qo(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:qo(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:qo(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:qo(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:qo(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:qo(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:qo(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:qo(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:qo(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:qo(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:qo(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:qo(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:qo(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:qo(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:qo(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:qo(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:qo(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:qo(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:qo(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:qo(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:qo(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:qo(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:qo(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:qo(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:qo(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:qo(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:qo(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:qo(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:qo(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:qo(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:qo(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:qo(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:qo(6902,3,"type_Colon_6902","type:"),default_Colon:qo(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:qo(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:qo(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:qo(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:qo(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:qo(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:qo(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:qo(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:qo(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:qo(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:qo(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:qo(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:qo(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:qo(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:qo(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:qo(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:qo(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:qo(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:qo(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:qo(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:qo(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:qo(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:qo(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:qo(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:qo(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:qo(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:qo(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:qo(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:qo(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:qo(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:qo(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:qo(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:qo(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:qo(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:qo(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:qo(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:qo(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:qo(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:qo(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:qo(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:qo(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:qo(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:qo(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:qo(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:qo(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:qo(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:qo(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:qo(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:qo(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:qo(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:qo(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:qo(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:qo(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:qo(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:qo(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:qo(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:qo(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:qo(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:qo(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:qo(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:qo(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:qo(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:qo(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:qo(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:qo(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:qo(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:qo(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:qo(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:qo(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:qo(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:qo(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:qo(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:qo(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:qo(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:qo(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:qo(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:qo(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:qo(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:qo(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:qo(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:qo(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:qo(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:qo(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:qo(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:qo(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:qo(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:qo(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:qo(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:qo(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:qo(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:qo(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:qo(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:qo(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:qo(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:qo(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:qo(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:qo(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:qo(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:qo(8017,1,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:qo(8018,1,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:qo(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:qo(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:qo(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:qo(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:qo(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:qo(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:qo(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:qo(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:qo(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:qo(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:qo(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:qo(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:qo(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:qo(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:qo(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:qo(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:qo(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:qo(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:qo(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:qo(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:qo(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:qo(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:qo(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:qo(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:qo(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:qo(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:qo(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:qo(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:qo(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:qo(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:qo(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:qo(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:qo(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:qo(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:qo(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:qo(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:qo(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:qo(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:qo(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:qo(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:qo(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:qo(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:qo(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:qo(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:qo(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:qo(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:qo(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:qo(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:qo(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:qo(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:qo(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:qo(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:qo(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:qo(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:qo(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:qo(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:qo(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:qo(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:qo(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:qo(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:qo(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:qo(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:qo(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:qo(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:qo(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:qo(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:qo(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:qo(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:qo(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:qo(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:qo(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:qo(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:qo(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:qo(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:qo(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:qo(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:qo(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:qo(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:qo(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:qo(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:qo(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:qo(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:qo(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:qo(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:qo(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:qo(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:qo(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:qo(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:qo(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:qo(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:qo(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:qo(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:qo(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:qo(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:qo(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:qo(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:qo(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:qo(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:qo(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:qo(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:qo(95005,3,"Extract_function_95005","Extract function"),Extract_constant:qo(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:qo(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:qo(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:qo(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:qo(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:qo(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:qo(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:qo(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:qo(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:qo(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:qo(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:qo(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:qo(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:qo(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:qo(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:qo(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:qo(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:qo(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:qo(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:qo(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:qo(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:qo(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:qo(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:qo(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:qo(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:qo(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:qo(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:qo(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:qo(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:qo(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:qo(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:qo(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:qo(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:qo(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:qo(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:qo(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:qo(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:qo(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:qo(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:qo(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:qo(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:qo(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:qo(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:qo(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:qo(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:qo(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:qo(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:qo(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:qo(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:qo(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:qo(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:qo(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:qo(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:qo(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:qo(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:qo(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:qo(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:qo(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:qo(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:qo(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:qo(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:qo(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:qo(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:qo(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:qo(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:qo(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:qo(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:qo(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:qo(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:qo(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:qo(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:qo(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:qo(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:qo(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:qo(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:qo(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:qo(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:qo(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:qo(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:qo(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:qo(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:qo(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:qo(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:qo(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:qo(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:qo(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:qo(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:qo(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:qo(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:qo(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:qo(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:qo(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:qo(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:qo(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:qo(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:qo(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:qo(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:qo(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:qo(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:qo(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:qo(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:qo(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:qo(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:qo(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:qo(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:qo(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:qo(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:qo(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:qo(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:qo(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:qo(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:qo(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:qo(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:qo(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:qo(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:qo(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:qo(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:qo(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:qo(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:qo(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:qo(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:qo(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:qo(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:qo(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:qo(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:qo(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:qo(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:qo(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:qo(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:qo(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:qo(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:qo(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:qo(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:qo(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:qo(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:qo(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:qo(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:qo(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:qo(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:qo(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:qo(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:qo(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:qo(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:qo(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:qo(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:qo(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:qo(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:qo(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:qo(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:qo(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:qo(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:qo(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:qo(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:qo(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:qo(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:qo(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:qo(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:qo(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:qo(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:qo(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:qo(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:qo(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:qo(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:qo(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:qo(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:qo(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:qo(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:qo(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:qo(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:qo(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:qo(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:qo(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:qo(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:qo(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:qo(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:qo(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:qo(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:qo(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:qo(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:qo(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:qo(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:qo(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:qo(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:qo(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:qo(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:qo(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:qo(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:qo(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:qo(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:qo(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:qo(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:qo(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:qo(18037,1,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:qo(18038,1,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:qo(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:qo(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:qo(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:qo(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:qo(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:qo(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:qo(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:qo(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:qo(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:qo(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:qo(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:qo(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string.")}}});function us(e){return e>=79}function _s(e){return 31===e||us(e)}function ps(e,n){if(e<n[0])return!1;let t,r=0,i=n.length;for(;r+1<i;){if(t=r+(i-r)/2,t-=t%2,n[t]<=e&&e<=n[t+1])return!0;e<n[t]?i=t:r=t+2}return!1}function fs(e,n){return ps(e,n>=2?ns:1===n?Zo:$o)}function ms(e){return as[e]}function hs(e){return Yo.get(e)}function gs(e){const n=[];let t=0,r=0;for(;t<e.length;){const i=e.charCodeAt(t);switch(t++,i){case 13:10===e.charCodeAt(t)&&t++;case 10:n.push(r),r=t;break;default:i>127&&Cs(i)&&(n.push(r),r=t)}}return n.push(r),n}function ys(e,n,t,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(n,t,r):vs(bs(e),n,t,e.text,r)}function vs(e,n,t,r,i){(n<0||n>=e.length)&&(i?n=n<0?0:n>=e.length?e.length-1:n:Nt.fail(`Bad line number. Line: ${n}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?B(e,gs(r)):"unknown"}`));const a=e[n]+t;return i?a>e[n+1]?e[n+1]:"string"===typeof r&&a>r.length?r.length:a:(n<e.length-1?Nt.assert(a<e[n+1]):void 0!==r&&Nt.assert(a<=r.length),a)}function bs(e){return e.lineMap||(e.lineMap=gs(e.text))}function Es(e,n){const t=Ts(e,n);return{line:t,character:n-e[t]}}function Ts(e,n,t){let r=He(e,n,Cn,Un,t);return r<0&&(r=~r-1,Nt.assert(-1!==r,"position cannot precede the beginning of the file")),r}function xs(e,n,t){if(n===t)return 0;const r=bs(e),i=Math.min(n,t),a=i===t,o=a?n:t,s=Ts(r,i),c=Ts(r,o,s);return a?s-c:c-s}function Ss(e,n){return Es(bs(e),n)}function As(e){return Ls(e)||Cs(e)}function Ls(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Cs(e){return 10===e||13===e||8232===e||8233===e}function ks(e){return e>=48&&e<=57}function Is(e){return ks(e)||e>=65&&e<=70||e>=97&&e<=102}function ws(e){return e>=48&&e<=55}function Rs(e,n){const t=e.charCodeAt(n);switch(t){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===n;default:return t>127}}function Ns(e,n,t,r,i){if(Zx(n))return n;let a=!1;for(;;){const o=e.charCodeAt(n);switch(o){case 13:10===e.charCodeAt(n+1)&&n++;case 10:if(n++,t)return n;a=!!i;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(r)break;if(47===e.charCodeAt(n+1)){for(n+=2;n<e.length&&!Cs(e.charCodeAt(n));)n++;a=!1;continue}if(42===e.charCodeAt(n+1)){for(n+=2;n<e.length;){if(42===e.charCodeAt(n)&&47===e.charCodeAt(n+1)){n+=2;break}n++}a=!1;continue}break;case 60:case 124:case 61:case 62:if(Ds(e,n)){n=Os(e,n),a=!1;continue}break;case 35:if(0===n&&Ms(e,n)){n=Ps(e,n),a=!1;continue}break;case 42:if(a){n++,a=!1;continue}break;default:if(o>127&&As(o)){n++;continue}}return n}}function Ds(e,n){if(Nt.assert(n>=0),0===n||Cs(e.charCodeAt(n-1))){const t=e.charCodeAt(n);if(n+os<e.length){for(let r=0;r<os;r++)if(e.charCodeAt(n+r)!==t)return!1;return 61===t||32===e.charCodeAt(n+os)}}return!1}function Os(e,n,t){t&&t(Wo.Merge_conflict_marker_encountered,n,os);const r=e.charCodeAt(n),i=e.length;if(60===r||62===r)for(;n<i&&!Cs(e.charCodeAt(n));)n++;else for(Nt.assert(124===r||61===r);n<i;){const t=e.charCodeAt(n);if((61===t||62===t)&&t!==r&&Ds(e,n))break;n++}return n}function Ms(e,n){return Nt.assert(0===n),ss.test(e)}function Ps(e,n){return n+=ss.exec(e)[0].length}function Fs(e,n,t,r,i,a,o){let s,c,l,d,u=!1,_=r,p=o;if(0===t){_=!0;const e=Ws(n);e&&(t=e.length)}e:for(;t>=0&&t<n.length;){const o=n.charCodeAt(t);switch(o){case 13:10===n.charCodeAt(t+1)&&t++;case 10:if(t++,r)break e;_=!0,u&&(d=!0);continue;case 9:case 11:case 12:case 32:t++;continue;case 47:const f=n.charCodeAt(t+1);let m=!1;if(47===f||42===f){const r=47===f?2:3,o=t;if(t+=2,47===f)for(;t<n.length;){if(Cs(n.charCodeAt(t))){m=!0;break}t++}else for(;t<n.length;){if(42===n.charCodeAt(t)&&47===n.charCodeAt(t+1)){t+=2;break}t++}if(_){if(u&&(p=i(s,c,l,d,a,p),!e&&p))return p;s=o,c=t,l=r,d=m,u=!0}continue}break e;default:if(o>127&&As(o)){u&&Cs(o)&&(d=!0),t++;continue}break e}}return u&&(p=i(s,c,l,d,a,p)),p}function Gs(e,n,t,r){return Fs(!1,e,n,!1,t,r)}function Bs(e,n,t,r){return Fs(!1,e,n,!0,t,r)}function Us(e,n,t,r,i){return Fs(!0,e,n,!1,t,r,i)}function Vs(e,n,t,r,i){return Fs(!0,e,n,!0,t,r,i)}function js(e,n,t,r,i,a=[]){return a.push({kind:t,pos:e,end:n,hasTrailingNewLine:r}),a}function Hs(e,n){return Us(e,n,js,void 0,void 0)}function Ks(e,n){return Vs(e,n,js,void 0,void 0)}function Ws(e){const n=ss.exec(e);if(n)return n[0]}function zs(e,n){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&fs(e,n)}function qs(e,n,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===t&&(45===e||58===e)||e>127&&function(e,n){return ps(e,n>=2?ts:1===n?es:Qo)}(e,n)}function Js(e,n,t){let r=cs(e,0);if(!zs(r,n))return!1;for(let i=Ys(r);i<e.length;i+=Ys(r))if(!qs(r=cs(e,i),n,t))return!1;return!0}function Xs(e,n,t=0,r,i,a,o){var s,c,l,d,u,_,p,f,m=r,h=0;K(m,a,o);var g={getStartPos:()=>l,getTextPos:()=>s,getToken:()=>u,getTokenPos:()=>d,getTokenText:()=>m.substring(d,s),getTokenValue:()=>_,hasUnicodeEscape:()=>0!==(1024&p),hasExtendedUnicodeEscape:()=>0!==(8&p),hasPrecedingLineBreak:()=>0!==(1&p),hasPrecedingJSDocComment:()=>0!==(2&p),isIdentifier:()=>79===u||u>116,isReservedWord:()=>u>=81&&u<=116,isUnterminated:()=>0!==(4&p),getCommentDirectives:()=>f,getNumericLiteralFlags:()=>1008&p,getTokenFlags:()=>p,reScanGreaterToken:function(){if(31===u){if(62===m.charCodeAt(s))return 62===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=72):(s+=2,u=49):61===m.charCodeAt(s+1)?(s+=2,u=71):(s++,u=48);if(61===m.charCodeAt(s))return s++,u=33}return u},reScanAsteriskEqualsToken:function(){return Nt.assert(66===u,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=d+1,u=63},reScanSlashToken:function(){if(43===u||68===u){let n=d+1,t=!1,r=!1;for(;;){if(n>=c){p|=4,v(Wo.Unterminated_regular_expression_literal);break}const e=m.charCodeAt(n);if(Cs(e)){p|=4,v(Wo.Unterminated_regular_expression_literal);break}if(t)t=!1;else{if(47===e&&!r){n++;break}91===e?r=!0:92===e?t=!0:93===e&&(r=!1)}n++}for(;n<c&&qs(m.charCodeAt(n),e);)n++;s=n,_=m.substring(d,s),u=13}return u},reScanTemplateToken:function(e){return Nt.assert(19===u,"'reScanTemplateToken' should only be called on a '}'"),s=d,u=k(e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return s=d,u=k(!0)},scanJsxIdentifier:function(){if(us(u)){let e=!1;for(;s<c;){const n=m.charCodeAt(s);if(45===n){_+="-",s++;continue}if(58===n&&!e){_+=":",s++,e=!0,u=79;continue}const t=s;if(_+=O(),s===t)break}return":"===_.slice(-1)&&(_=_.slice(0,-1),s--),M()}return u},scanJsxAttributeValue:j,reScanJsxAttributeValue:function(){return s=d=l,j()},reScanJsxToken:function(e=!0){return s=d=l,u=V(e)},reScanLessThanToken:function(){if(47===u)return s=d+1,u=29;return u},reScanHashToken:function(){if(80===u)return s=d+1,u=62;return u},reScanQuestionToken:function(){return Nt.assert(60===u,"'reScanQuestionToken' should only be called on a '??'"),s=d+1,u=57},reScanInvalidIdentifier:function(){Nt.assert(0===u,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),s=d=l,p=0;const e=cs(m,s),n=B(e,99);if(n)return u=n;return s+=Ys(e),u},scanJsxToken:V,scanJsDocToken:function(){if(l=d=s,p=0,s>=c)return u=1;const n=cs(m,s);switch(s+=Ys(n),n){case 9:case 11:case 12:case 32:for(;s<c&&Ls(m.charCodeAt(s));)s++;return u=5;case 64:return u=59;case 13:10===m.charCodeAt(s)&&s++;case 10:return p|=1,u=4;case 42:return u=41;case 123:return u=18;case 125:return u=19;case 91:return u=22;case 93:return u=23;case 60:return u=29;case 62:return u=31;case 61:return u=63;case 44:return u=27;case 46:return u=24;case 96:return u=61;case 35:return u=62;case 92:s--;const n=D();if(n>=0&&zs(n,e))return s+=3,p|=8,_=R()+O(),u=M();const t=N();return t>=0&&zs(t,e)?(s+=6,p|=1024,_=String.fromCharCode(t)+O(),u=M()):(s++,u=0)}if(zs(n,e)){let t=n;for(;s<c&&qs(t=cs(m,s),e)||45===m.charCodeAt(s);)s+=Ys(t);return _=m.substring(d,s),92===t&&(_+=O()),u=M()}return u=0},scan:G,getText:function(){return m},clearCommentDirectives:function(){f=void 0},setText:K,setScriptTarget:function(n){e=n},setLanguageVariant:function(e){t=e},setOnError:function(e){i=e},setTextPos:W,setInJSDocType:function(e){h+=e?1:-1},tryScan:function(e){return H(e,!1)},lookAhead:function(e){return H(e,!0)},scanRange:function(e,n,t){const r=c,i=s,a=l,o=d,h=u,g=_,y=p,v=f;K(m,e,n);const b=t();return c=r,s=i,l=a,d=o,u=h,_=g,p=y,f=v,b}};return Nt.isDebugging&&Object.defineProperty(g,"__debugShowCurrentPositionInText",{get:()=>{const e=g.getText();return e.slice(0,g.getStartPos())+"\u2551"+e.slice(g.getStartPos())}}),g;function v(e,n=s,t){if(i){const r=s;s=n,i(e,t||0),s=r}}function b(){let e=s,n=!1,t=!1,r="";for(;;){const i=m.charCodeAt(s);if(95!==i){if(!ks(i))break;n=!0,t=!1,s++}else p|=512,n?(n=!1,t=!0,r+=m.substring(e,s)):v(t?Wo.Multiple_consecutive_numeric_separators_are_not_permitted:Wo.Numeric_separators_are_not_allowed_here,s,1),e=++s}return 95===m.charCodeAt(s-1)&&v(Wo.Numeric_separators_are_not_allowed_here,s-1,1),r+m.substring(e,s)}function E(){const e=s,n=b();let t,r;46===m.charCodeAt(s)&&(s++,t=b());let i,a=s;if(69===m.charCodeAt(s)||101===m.charCodeAt(s)){s++,p|=16,43!==m.charCodeAt(s)&&45!==m.charCodeAt(s)||s++;const e=s,n=b();n?(r=m.substring(a,e)+n,a=s):v(Wo.Digit_expected)}if(512&p?(i=n,t&&(i+="."+t),r&&(i+=r)):i=m.substring(e,a),void 0!==t||16&p)return T(e,void 0===t&&!!(16&p)),{type:8,value:""+ +i};{_=i;const n=F();return T(e),{type:n,value:_}}}function T(n,t){if(!zs(cs(m,s),e))return;const r=s,{length:i}=O();1===i&&"n"===m[r]?v(t?Wo.A_bigint_literal_cannot_use_exponential_notation:Wo.A_bigint_literal_must_be_an_integer,n,r-n+1):(v(Wo.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,r,i),s=r)}function x(){const e=s;for(;ws(m.charCodeAt(s));)s++;return+m.substring(e,s)}function S(e,n){const t=L(e,!1,n);return t?parseInt(t,16):-1}function A(e,n){return L(e,!0,n)}function L(e,n,t){let r=[],i=!1,a=!1;for(;r.length<e||n;){let e=m.charCodeAt(s);if(t&&95===e)p|=512,i?(i=!1,a=!0):v(a?Wo.Multiple_consecutive_numeric_separators_are_not_permitted:Wo.Numeric_separators_are_not_allowed_here,s,1),s++;else{if(i=t,e>=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,a=!1}}return r.length<e&&(r=[]),95===m.charCodeAt(s-1)&&v(Wo.Numeric_separators_are_not_allowed_here,s-1,1),String.fromCharCode(...r)}function C(e=!1){const n=m.charCodeAt(s);let t="",r=++s;for(;;){if(s>=c){t+=m.substring(r,s),p|=4,v(Wo.Unterminated_string_literal);break}const i=m.charCodeAt(s);if(i===n){t+=m.substring(r,s),s++;break}if(92!==i||e){if(Cs(i)&&!e){t+=m.substring(r,s),p|=4,v(Wo.Unterminated_string_literal);break}s++}else t+=m.substring(r,s),t+=I(),r=s}return t}function k(e){const n=96===m.charCodeAt(s);let t,r=++s,i="";for(;;){if(s>=c){i+=m.substring(r,s),p|=4,v(Wo.Unterminated_template_literal),t=n?14:17;break}const a=m.charCodeAt(s);if(96===a){i+=m.substring(r,s),s++,t=n?14:17;break}if(36===a&&s+1<c&&123===m.charCodeAt(s+1)){i+=m.substring(r,s),s+=2,t=n?15:16;break}92!==a?13!==a?s++:(i+=m.substring(r,s),++s<c&&10===m.charCodeAt(s)&&s++,i+="\n",r=s):(i+=m.substring(r,s),i+=I(e),r=s)}return Nt.assert(void 0!==t),_=i,t}function I(e){const n=s;if(++s>=c)return v(Wo.Unexpected_end_of_text),"";const t=m.charCodeAt(s);switch(s++,t){case 48:return e&&s<c&&ks(m.charCodeAt(s))?(s++,p|=2048,m.substring(n,s)):"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(e)for(let e=s;e<s+4;e++)if(e<c&&!Is(m.charCodeAt(e))&&123!==m.charCodeAt(e))return s=e,p|=2048,m.substring(n,s);if(s<c&&123===m.charCodeAt(s)){if(s++,e&&!Is(m.charCodeAt(s)))return p|=2048,m.substring(n,s);if(e){const e=s,t=A(1,!1),r=t?parseInt(t,16):-1;if(!(r<=1114111&&125===m.charCodeAt(s)))return p|=2048,m.substring(n,s);s=e}return p|=8,R()}return p|=1024,w(4);case 120:if(e){if(!Is(m.charCodeAt(s)))return p|=2048,m.substring(n,s);if(!Is(m.charCodeAt(s+1)))return s++,p|=2048,m.substring(n,s)}return w(2);case 13:s<c&&10===m.charCodeAt(s)&&s++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(t)}}function w(e){const n=S(e,!1);return n>=0?String.fromCharCode(n):(v(Wo.Hexadecimal_digit_expected),"")}function R(){const e=A(1,!1),n=e?parseInt(e,16):-1;let t=!1;return n<0?(v(Wo.Hexadecimal_digit_expected),t=!0):n>1114111&&(v(Wo.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),t=!0),s>=c?(v(Wo.Unexpected_end_of_text),t=!0):125===m.charCodeAt(s)?s++:(v(Wo.Unterminated_Unicode_escape_sequence),t=!0),t?"":Qs(n)}function N(){if(s+5<c&&117===m.charCodeAt(s+1)){const e=s;s+=2;const n=S(4,!1);return s=e,n}return-1}function D(){if(117===cs(m,s+1)&&123===cs(m,s+2)){const e=s;s+=3;const n=A(1,!1),t=n?parseInt(n,16):-1;return s=e,t}return-1}function O(){let n="",t=s;for(;s<c;){let r=cs(m,s);if(qs(r,e))s+=Ys(r);else{if(92!==r)break;if(r=D(),r>=0&&qs(r,e)){s+=3,p|=8,n+=R(),t=s;continue}if(r=N(),!(r>=0&&qs(r,e)))break;p|=1024,n+=m.substring(t,s),n+=Qs(r),t=s+=6}}return n+=m.substring(t,s),n}function M(){const e=_.length;if(e>=2&&e<=12){const e=_.charCodeAt(0);if(e>=97&&e<=122){const e=Xo.get(_);if(void 0!==e)return u=e}}return u=79}function P(e){let n="",t=!1,r=!1;for(;;){const i=m.charCodeAt(s);if(95!==i){if(t=!0,!ks(i)||i-48>=e)break;n+=m[s],s++,r=!1}else p|=512,t?(t=!1,r=!0):v(r?Wo.Multiple_consecutive_numeric_separators_are_not_permitted:Wo.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===m.charCodeAt(s-1)&&v(Wo.Numeric_separators_are_not_allowed_here,s-1,1),n}function F(){if(110===m.charCodeAt(s))return _+="n",384&p&&(_=fS(_)+"n"),s++,9;{const e=128&p?parseInt(_.slice(2),2):256&p?parseInt(_.slice(2),8):+_;return _=""+e,8}}function G(){l=s,p=0;let r=!1;for(;;){if(d=s,s>=c)return u=1;const i=cs(m,s);if(35===i&&0===s&&Ms(m,s)){if(s=Ps(m,s),n)continue;return u=6}switch(i){case 10:case 13:if(p|=1,n){s++;continue}return 13===i&&s+1<c&&10===m.charCodeAt(s+1)?s+=2:s++,u=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(n){s++;continue}for(;s<c&&Ls(m.charCodeAt(s));)s++;return u=5;case 33:return 61===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=37):(s+=2,u=35):(s++,u=53);case 34:case 39:return _=C(),u=10;case 96:return u=k(!1);case 37:return 61===m.charCodeAt(s+1)?(s+=2,u=69):(s++,u=44);case 38:return 38===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=76):(s+=2,u=55):61===m.charCodeAt(s+1)?(s+=2,u=73):(s++,u=50);case 40:return s++,u=20;case 41:return s++,u=21;case 42:if(61===m.charCodeAt(s+1))return s+=2,u=66;if(42===m.charCodeAt(s+1))return 61===m.charCodeAt(s+2)?(s+=3,u=67):(s+=2,u=42);if(s++,h&&!r&&1&p){r=!0;continue}return u=41;case 43:return 43===m.charCodeAt(s+1)?(s+=2,u=45):61===m.charCodeAt(s+1)?(s+=2,u=64):(s++,u=39);case 44:return s++,u=27;case 45:return 45===m.charCodeAt(s+1)?(s+=2,u=46):61===m.charCodeAt(s+1)?(s+=2,u=65):(s++,u=40);case 46:return ks(m.charCodeAt(s+1))?(_=E().value,u=8):46===m.charCodeAt(s+1)&&46===m.charCodeAt(s+2)?(s+=3,u=25):(s++,u=24);case 47:if(47===m.charCodeAt(s+1)){for(s+=2;s<c&&!Cs(m.charCodeAt(s));)s++;if(f=U(f,m.slice(d,s),rs,d),n)continue;return u=2}if(42===m.charCodeAt(s+1)){s+=2,42===m.charCodeAt(s)&&47!==m.charCodeAt(s+1)&&(p|=2);let e=!1,t=d;for(;s<c;){const n=m.charCodeAt(s);if(42===n&&47===m.charCodeAt(s+1)){s+=2,e=!0;break}s++,Cs(n)&&(t=s,p|=1)}if(f=U(f,m.slice(t,s),is,t),e||v(Wo.Asterisk_Slash_expected),n)continue;return e||(p|=4),u=3}return 61===m.charCodeAt(s+1)?(s+=2,u=68):(s++,u=43);case 48:if(s+2<c&&(88===m.charCodeAt(s+1)||120===m.charCodeAt(s+1)))return s+=2,(_=A(1,!0))||(v(Wo.Hexadecimal_digit_expected),_="0"),_="0x"+_,p|=64,u=F();if(s+2<c&&(66===m.charCodeAt(s+1)||98===m.charCodeAt(s+1)))return s+=2,(_=P(2))||(v(Wo.Binary_digit_expected),_="0"),_="0b"+_,p|=128,u=F();if(s+2<c&&(79===m.charCodeAt(s+1)||111===m.charCodeAt(s+1)))return s+=2,(_=P(8))||(v(Wo.Octal_digit_expected),_="0"),_="0o"+_,p|=256,u=F();if(s+1<c&&ws(m.charCodeAt(s+1)))return _=""+x(),p|=32,u=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return({type:u,value:_}=E()),u;case 58:return s++,u=58;case 59:return s++,u=26;case 60:if(Ds(m,s)){if(s=Os(m,s,v),n)continue;return u=7}return 60===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=70):(s+=2,u=47):61===m.charCodeAt(s+1)?(s+=2,u=32):1===t&&47===m.charCodeAt(s+1)&&42!==m.charCodeAt(s+2)?(s+=2,u=30):(s++,u=29);case 61:if(Ds(m,s)){if(s=Os(m,s,v),n)continue;return u=7}return 61===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=36):(s+=2,u=34):62===m.charCodeAt(s+1)?(s+=2,u=38):(s++,u=63);case 62:if(Ds(m,s)){if(s=Os(m,s,v),n)continue;return u=7}return s++,u=31;case 63:return 46!==m.charCodeAt(s+1)||ks(m.charCodeAt(s+2))?63===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=77):(s+=2,u=60):(s++,u=57):(s+=2,u=28);case 91:return s++,u=22;case 93:return s++,u=23;case 94:return 61===m.charCodeAt(s+1)?(s+=2,u=78):(s++,u=52);case 123:return s++,u=18;case 124:if(Ds(m,s)){if(s=Os(m,s,v),n)continue;return u=7}return 124===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=75):(s+=2,u=56):61===m.charCodeAt(s+1)?(s+=2,u=74):(s++,u=51);case 125:return s++,u=19;case 126:return s++,u=54;case 64:return s++,u=59;case 92:const a=D();if(a>=0&&zs(a,e))return s+=3,p|=8,_=R()+O(),u=M();const o=N();return o>=0&&zs(o,e)?(s+=6,p|=1024,_=String.fromCharCode(o)+O(),u=M()):(v(Wo.Invalid_character),s++,u=0);case 35:if(0!==s&&"!"===m[s+1])return v(Wo.can_only_be_used_at_the_start_of_a_file),s++,u=0;const l=cs(m,s+1);if(92===l){s++;const n=D();if(n>=0&&zs(n,e))return s+=3,p|=8,_="#"+R()+O(),u=80;const t=N();if(t>=0&&zs(t,e))return s+=6,p|=1024,_="#"+String.fromCharCode(t)+O(),u=80;s--}return zs(l,e)?(s++,B(l,e)):(_="#",v(Wo.Invalid_character,s++,Ys(i))),u=80;default:const g=B(i,e);if(g)return u=g;if(Ls(i)){s+=Ys(i);continue}if(Cs(i)){p|=1,s+=Ys(i);continue}const y=Ys(i);return v(Wo.Invalid_character,s,y),s+=y,u=0}}}function B(e,n){let t=e;if(zs(t,n)){for(s+=Ys(t);s<c&&qs(t=cs(m,s),n);)s+=Ys(t);return _=m.substring(d,s),92===t&&(_+=O()),M()}}function U(e,n,t,r){const i=function(e,n){const t=n.exec(e);if(!t)return;switch(t[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}return}(y(n),t);return void 0===i?e:Te(e,{range:{pos:r,end:s},type:i})}function V(e=!0){if(l=d=s,s>=c)return u=1;let n=m.charCodeAt(s);if(60===n)return 47===m.charCodeAt(s+1)?(s+=2,u=30):(s++,u=29);if(123===n)return s++,u=18;let t=0;for(;s<c&&(n=m.charCodeAt(s),123!==n);){if(60===n){if(Ds(m,s))return s=Os(m,s,v),u=7;break}if(62===n&&v(Wo.Unexpected_token_Did_you_mean_or_gt,s,1),125===n&&v(Wo.Unexpected_token_Did_you_mean_or_rbrace,s,1),Cs(n)&&0===t)t=-1;else{if(!e&&Cs(n)&&t>0)break;As(n)||(t=s)}s++}return _=m.substring(l,s),-1===t?12:11}function j(){switch(l=s,m.charCodeAt(s)){case 34:case 39:return _=C(!0),u=10;default:return G()}}function H(e,n){const t=s,r=l,i=d,a=u,o=_,c=p,f=e();return f&&!n||(s=t,l=r,d=i,u=a,_=o,p=c),f}function K(e,n,t){m=e||"",c=void 0===t?m.length:n+t,W(n||0)}function W(e){Nt.assert(e>=0),s=e,l=e,d=e,u=0,_=void 0,p=0}}function Ys(e){return e>=65536?2:1}function $s(e){if(Nt.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const n=Math.floor((e-65536)/1024)+55296,t=(e-65536)%1024+56320;return String.fromCharCode(n,t)}function Qs(e){return ls(e)}var Zs,ec,nc,tc=E({"src/compiler/scanner.ts"(){lq(),Jo={abstract:126,accessor:127,any:131,as:128,asserts:129,assert:130,bigint:160,boolean:134,break:81,case:82,catch:83,class:84,continue:86,const:85,constructor:135,debugger:87,declare:136,default:88,delete:89,do:90,else:91,enum:92,export:93,extends:94,false:95,finally:96,for:97,from:158,function:98,get:137,if:99,implements:117,import:100,in:101,infer:138,instanceof:102,interface:118,intrinsic:139,is:140,keyof:141,let:119,module:142,namespace:143,never:144,new:103,null:104,number:148,object:149,package:120,private:121,protected:122,public:123,override:161,out:145,readonly:146,require:147,global:159,return:105,satisfies:150,set:151,static:124,string:152,super:106,switch:107,symbol:153,this:108,throw:109,true:110,try:111,type:154,typeof:112,undefined:155,unique:156,unknown:157,var:113,void:114,while:115,with:116,yield:125,async:132,await:133,of:162},Xo=new Map(Object.entries(Jo)),Yo=new Map(Object.entries({...Jo,"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61})),$o=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Qo=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],Zo=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],es=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],ns=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],ts=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],rs=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,is=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,as=function(e){const n=[];return e.forEach(((e,t)=>{n[e]=t})),n}(Yo),os=7,ss=/^#!.*/,cs=String.prototype.codePointAt?(e,n)=>e.codePointAt(n):function(e,n){const t=e.length;if(n<0||n>=t)return;const r=e.charCodeAt(n);if(r>=55296&&r<=56319&&t>n+1){const t=e.charCodeAt(n+1);if(t>=56320&&t<=57343)return 1024*(r-55296)+t-56320+65536}return r},ls=String.fromCodePoint?e=>String.fromCodePoint(e):$s}});function rc(e){return ro(e)||eo(e)}function ic(e){return he(e,MT)}function ac(e){switch(HT(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function oc(e){return e.start+e.length}function sc(e){return 0===e.length}function cc(e,n){return n>=e.start&&n<oc(e)}function lc(e,n){return n>=e.pos&&n<=e.end}function dc(e,n){return n.start>=e.start&&oc(n)<=oc(e)}function uc(e,n){return void 0!==_c(e,n)}function _c(e,n){const t=gc(e,n);return t&&0===t.length?void 0:t}function pc(e,n){return mc(e.start,e.length,n.start,n.length)}function fc(e,n,t){return mc(e.start,e.length,n,t)}function mc(e,n,t,r){return t<=e+n&&t+r>=e}function hc(e,n){return n<=oc(e)&&n>=e.start}function gc(e,n){const t=Math.max(e.start,n.start),r=Math.min(oc(e),oc(n));return t<=r?vc(t,r):void 0}function yc(e,n){if(e<0)throw new Error("start < 0");if(n<0)throw new Error("length < 0");return{start:e,length:n}}function vc(e,n){return yc(e,n-e)}function bc(e){return yc(e.span.start,e.newLength)}function Ec(e){return sc(e.span)&&0===e.newLength}function Tc(e,n){if(n<0)throw new Error("newLength < 0");return{span:e,newLength:n}}function xc(e){if(0===e.length)return Zs;if(1===e.length)return e[0];const n=e[0];let t=n.span.start,r=oc(n.span),i=t+n.newLength;for(let a=1;a<e.length;a++){const n=e[a],o=t,s=r,c=i,l=n.span.start,d=oc(n.span),u=l+n.newLength;t=Math.min(o,l),r=Math.max(s,s+(d-c)),i=Math.max(u,u+(c-d))}return Tc(vc(t,r),i-t)}function Sc(e){if(e&&165===e.kind)for(let n=e;n;n=n.parent)if(Id(n)||Fd(n)||261===n.kind)return n}function Ac(e,n){return qC(e)&&fb(e,16476)&&173===n.kind}function Lc(e){return!!Jd(e)&&N(e.elements,Cc)}function Cc(e){return!!tI(e)||Lc(e.name)}function kc(e){let n=e.parent;for(;Nk(n.parent);)n=n.parent.parent;return n.parent}function Ic(e,n){Nk(e)&&(e=kc(e));let t=n(e);return 257===e.kind&&(e=e.parent),e&&258===e.kind&&(t|=n(e),e=e.parent),e&&240===e.kind&&(t|=n(e)),t}function wc(e){return Ic(e,Lb)}function Rc(e){return Ic(e,Cb)}function Nc(e){return Ic(e,(e=>e.flags))}function Dc(e,n,t){const r=e.toLowerCase(),i=/^([a-z]+)([_\-]([a-z]+))?$/.exec(r);if(!i)return void(t&&t.push(wT(Wo.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp")));const a=i[1],o=i[3];function s(e,t,r){let i=Eo(po(Ao(n.getExecutingFilePath())),e);if(t&&(i=i+"-"+t),i=n.resolvePath(Eo(i,"diagnosticMessages.generated.json")),!n.fileExists(i))return!1;let a="";try{a=n.readFile(i)}catch(Sa){return r&&r.push(wT(Wo.Unable_to_open_file_0,i)),!1}try{ET(JSON.parse(a))}catch(Sa){return r&&r.push(wT(Wo.Corrupted_locale_file_0,i)),!1}return!0}G(ec,r)&&!s(a,o,t)&&s(a,void 0,t),Jn(e)}function Oc(e,n){if(e)for(;void 0!==e.original;)e=e.original;return e&&n?n(e)?e:void 0:e}function Mc(e,n){for(;e;){const t=n(e);if("quit"===t)return;if(t)return e;e=e.parent}}function Pc(e){return 0===(8&e.flags)}function Fc(e,n){if(void 0===e||Pc(e))return e;for(e=e.original;e;){if(Pc(e))return!n||n(e)?e:void 0;e=e.original}}function Gc(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function Bc(e){const n=e;return n.length>=3&&95===n.charCodeAt(0)&&95===n.charCodeAt(1)&&95===n.charCodeAt(2)?n.substr(1):n}function Uc(e){return Bc(e.escapedText)}function Vc(e){const n=hs(e.escapedText);return n?En(n,by):void 0}function jc(e){return e.valueDeclaration&&bd(e.valueDeclaration)?Uc(e.valueDeclaration.name):Bc(e.escapedName)}function Hc(e){const n=e.parent.parent;if(n){if(Pu(n))return Kc(n);switch(n.kind){case 240:if(n.declarationList&&n.declarationList.declarations[0])return Kc(n.declarationList.declarations[0]);break;case 241:let e=n.expression;switch(223===e.kind&&63===e.operatorToken.kind&&(e=e.left),e.kind){case 208:return e.name;case 209:const n=e.argumentExpression;if(IC(n))return n}break;case 214:return Kc(n.expression);case 253:if(Pu(n.statement)||mu(n.statement))return Kc(n.statement)}}}function Kc(e){const n=Xc(e);return n&&IC(n)?n:void 0}function Wc(e,n){return!(!qc(e)||!IC(e.name)||Uc(e.name)!==Uc(n))||!(!fI(e)||!ce(e.declarationList.declarations,(e=>Wc(e,n))))}function zc(e){return e.name||Hc(e)}function qc(e){return!!e.name}function Jc(e){switch(e.kind){case 79:return e;case 351:case 344:{const{name:n}=e;if(163===n.kind)return n.right;break}case 210:case 223:{const n=e;switch(eg(n)){case 1:case 4:case 5:case 3:return cg(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}}case 349:return zc(e);case 343:return Hc(e);case 274:{const{expression:n}=e;return IC(n)?n:void 0}case 209:const n=e;if(ag(n))return n.argumentExpression}return e.name}function Xc(e){if(void 0!==e)return Jc(e)||(jk(e)||Hk(e)||nI(e)?Yc(e):void 0)}function Yc(e){if(e.parent){if(Sw(e.parent)||Nk(e.parent))return e.parent.name;if(Yk(e.parent)&&e===e.parent.right){if(IC(e.parent.left))return e.parent.left;if(iT(e.parent.left))return cg(e.parent.left)}else if(NI(e.parent)&&IC(e.parent.name))return e.parent.name}}function $c(e){if(Tb(e))return j(e.modifiers,JC)}function Qc(e){if(fb(e,126975))return j(e.modifiers,Ad)}function Zc(e,n){if(e.name){if(IC(e.name)){const t=e.name.escapedText;return kl(e.parent,n).filter((e=>cR(e)&&IC(e.name)&&e.name.escapedText===t))}{const t=e.parent.parameters.indexOf(e);Nt.assert(t>-1,"Parameters should always be in their parents' parameter list");const r=kl(e.parent,n).filter(cR);if(t<r.length)return[r[t]]}}return i}function el(e){return Zc(e,!1)}function nl(e){return Zc(e,!0)}function tl(e,n){const t=e.name.escapedText;return kl(e.parent,n).filter((e=>_R(e)&&e.typeParameters.some((e=>e.name.escapedText===t))))}function rl(e){return tl(e,!1)}function il(e){return tl(e,!0)}function al(e){return!!Rl(e,cR)}function ol(e){return Rl(e,Xw)}function sl(e){return Nl(e,hR)}function cl(e){return Rl(e,$w)}function ll(e){return Rl(e,Zw)}function dl(e){return Rl(e,Zw,!0)}function ul(e){return Rl(e,eR)}function _l(e){return Rl(e,eR,!0)}function pl(e){return Rl(e,nR)}function fl(e){return Rl(e,nR,!0)}function ml(e){return Rl(e,tR)}function hl(e){return Rl(e,tR,!0)}function gl(e){return Rl(e,rR,!0)}function yl(e){return Rl(e,aR)}function vl(e){return Rl(e,aR,!0)}function bl(e){return Rl(e,sR)}function El(e){return Rl(e,dR)}function Tl(e){return Rl(e,lR)}function xl(e){return Rl(e,_R)}function Sl(e){return Rl(e,gR)}function Al(e){const n=Rl(e,uR);if(n&&n.typeExpression&&n.typeExpression.type)return n}function Ll(e){let n=Rl(e,uR);return!n&&qC(e)&&(n=D(el(e),(e=>!!e.typeExpression))),n&&n.typeExpression&&n.typeExpression.type}function Cl(e){const n=Tl(e);if(n&&n.typeExpression)return n.typeExpression.type;const t=Al(e);if(t&&t.typeExpression){const e=t.typeExpression.type;if(uk(e)){const n=D(e.members,rk);return n&&n.type}if(ck(e)||Hw(e))return e.type}}function kl(e,n){var t;if(!Ng(e))return i;let r=null==(t=e.jsDoc)?void 0:t.jsDocCache;if(void 0===r||n){const t=Dg(e,n);Nt.assert(t.length<2||t[0]!==t[1]),r=X(t,(e=>zw(e)?e.tags:e)),n||(null!=e.jsDoc||(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function Il(e){return kl(e,!1)}function wl(e){return kl(e,!0)}function Rl(e,n,t){return D(kl(e,t),n)}function Nl(e,n){return Il(e).filter(n)}function Dl(e,n){return Il(e).filter((e=>e.kind===n))}function Ol(e){return"string"===typeof e?e:null==e?void 0:e.map((e=>324===e.kind?e.text:function(e){const n=327===e.kind?"link":328===e.kind?"linkcode":"linkplain",t=e.name?zf(e.name):"",r=e.name&&e.text.startsWith("://")?"":" ";return`{@${n} ${t}${r}${e.text}}`}(e))).join("")}function Ml(e){if(Jw(e)){if(iR(e.parent)){const n=jg(e.parent);if(n&&S(n.tags))return X(n.tags,(e=>_R(e)?e.typeParameters:void 0))}return i}if(Ag(e))return Nt.assert(323===e.parent.kind),X(e.parent.tags,(e=>_R(e)?e.typeParameters:void 0));if(e.typeParameters)return e.typeParameters;if(pN(e)&&e.typeParameters)return e.typeParameters;if(Ih(e)){const n=nb(e);if(n.length)return n;const t=Ll(e);if(t&&ck(t)&&t.typeParameters)return t.typeParameters}return i}function Pl(e){return e.constraint?e.constraint:_R(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Fl(e){return 79===e.kind||80===e.kind}function Gl(e){return 175===e.kind||174===e.kind}function Bl(e){return Mk(e)&&!!(32&e.flags)}function Ul(e){return Pk(e)&&!!(32&e.flags)}function Vl(e){return Fk(e)&&!!(32&e.flags)}function jl(e){const n=e.kind;return!!(32&e.flags)&&(208===n||209===n||210===n||232===n)}function Hl(e){return jl(e)&&!oI(e)&&!!e.questionDotToken}function Kl(e){return Hl(e.parent)&&e.parent.expression===e}function Wl(e){return!jl(e.parent)||Hl(e.parent)||e!==e.parent.expression}function zl(e){return 223===e.kind&&60===e.operatorToken.kind}function ql(e){return sk(e)&&IC(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function Jl(e){return qR(e,8)}function Xl(e){return oI(e)&&!!(32&e.flags)}function Yl(e){return 249===e.kind||248===e.kind}function $l(e){return 277===e.kind||276===e.kind}function Ql(e){switch(e.kind){case 305:case 306:return!0;default:return!1}}function Zl(e){return Ql(e)||303===e.kind||307===e.kind}function ed(e){return 351===e.kind||344===e.kind}function nd(e){return td(e.kind)}function td(e){return e>=163}function rd(e){return e>=0&&e<=162}function id(e){return rd(e.kind)}function ad(e){return ze(e,"pos")&&ze(e,"end")}function od(e){return 8<=e&&e<=14}function sd(e){return od(e.kind)}function cd(e){switch(e.kind){case 207:case 206:case 13:case 215:case 228:return!0}return!1}function ld(e){return 14<=e&&e<=17}function dd(e){return ld(e.kind)}function ud(e){const n=e.kind;return 16===n||17===n}function _d(e){return QI(e)||tw(e)}function pd(e){switch(e.kind){case 273:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 271:return e.parent.isTypeOnly;case 270:case 268:return e.isTypeOnly}return!1}function fd(e){switch(e.kind){case 278:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 275:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 277:return e.parent.isTypeOnly}return!1}function md(e){return pd(e)||fd(e)}function hd(e){return _C(e)||IC(e)}function gd(e){return 10===e.kind||ld(e.kind)}function yd(e){var n;return IC(e)&&void 0!==(null==(n=e.emitNode)?void 0:n.autoGenerate)}function vd(e){var n;return wC(e)&&void 0!==(null==(n=e.emitNode)?void 0:n.autoGenerate)}function bd(e){return(YC(e)||Ud(e))&&wC(e.name)}function Ed(e){return Mk(e)&&wC(e.name)}function Td(e){switch(e){case 126:case 127:case 132:case 85:case 136:case 88:case 93:case 101:case 123:case 121:case 122:case 146:case 124:case 145:case 161:return!0}return!1}function xd(e){return!!(16476&Db(e))}function Sd(e){return xd(e)||124===e||161===e||127===e}function Ad(e){return Td(e.kind)}function Ld(e){const n=e.kind;return 163===n||79===n}function Cd(e){const n=e.kind;return 79===n||80===n||10===n||8===n||164===n}function kd(e){const n=e.kind;return 79===n||203===n||204===n}function Id(e){return!!e&&Od(e.kind)}function wd(e){return!!e&&(Od(e.kind)||ZC(e))}function Rd(e){return e&&Dd(e.kind)}function Nd(e){return 110===e.kind||95===e.kind}function Dd(e){switch(e){case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function Od(e){switch(e){case 170:case 176:case 326:case 177:case 178:case 181:case 320:case 182:return!0;default:return Dd(e)}}function Md(e){return Iw(e)||UI(e)||pI(e)&&Id(e.parent)}function Pd(e){const n=e.kind;return 173===n||169===n||171===n||174===n||175===n||178===n||172===n||237===n}function Fd(e){return e&&(260===e.kind||228===e.kind)}function Gd(e){return e&&(174===e.kind||175===e.kind)}function Bd(e){return YC(e)&&bb(e)}function Ud(e){switch(e.kind){case 171:case 174:case 175:return!0;default:return!1}}function Vd(e){switch(e.kind){case 171:case 174:case 175:case 169:return!0;default:return!1}}function jd(e){return Ad(e)||JC(e)}function Hd(e){const n=e.kind;return 177===n||176===n||168===n||170===n||178===n||174===n||175===n}function Kd(e){return Hd(e)||Pd(e)}function Wd(e){const n=e.kind;return 299===n||300===n||301===n||171===n||174===n||175===n}function zd(e){return rT(e.kind)}function qd(e){switch(e.kind){case 181:case 182:return!0}return!1}function Jd(e){if(e){const n=e.kind;return 204===n||203===n}return!1}function Xd(e){const n=e.kind;return 206===n||207===n}function Yd(e){const n=e.kind;return 205===n||229===n}function $d(e){switch(e.kind){case 257:case 166:case 205:return!0}return!1}function Qd(e){return NI(e)||qC(e)||nu(e)||ru(e)}function Zd(e){return eu(e)||tu(e)}function eu(e){switch(e.kind){case 203:case 207:return!0}return!1}function nu(e){switch(e.kind){case 205:case 299:case 300:case 301:return!0}return!1}function tu(e){switch(e.kind){case 204:case 206:return!0}return!1}function ru(e){switch(e.kind){case 205:case 229:case 227:case 206:case 207:case 79:case 208:case 209:return!0}return Hb(e,!0)}function iu(e){const n=e.kind;return 208===n||163===n||202===n}function au(e){const n=e.kind;return 208===n||163===n}function ou(e){switch(e.kind){case 283:case 282:case 210:case 211:case 212:case 167:return!0;default:return!1}}function su(e){return 210===e.kind||211===e.kind}function cu(e){const n=e.kind;return 225===n||14===n}function lu(e){return du(Jl(e).kind)}function du(e){switch(e){case 208:case 209:case 211:case 210:case 281:case 282:case 285:case 212:case 206:case 214:case 207:case 228:case 215:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 225:case 95:case 104:case 108:case 110:case 106:case 232:case 230:case 233:case 100:case 279:return!0;default:return!1}}function uu(e){return _u(Jl(e).kind)}function _u(e){switch(e){case 221:case 222:case 217:case 218:case 219:case 220:case 213:return!0;default:return du(e)}}function pu(e){switch(e.kind){case 222:return!0;case 221:return 45===e.operator||46===e.operator;default:return!1}}function fu(e){switch(e.kind){case 104:case 110:case 95:case 221:return!0;default:return sd(e)}}function mu(e){return function(e){switch(e){case 224:case 226:case 216:case 223:case 227:case 231:case 229:case 357:case 356:case 235:return!0;default:return _u(e)}}(Jl(e).kind)}function hu(e){const n=e.kind;return 213===n||231===n}function gu(e){return iw(e)||lI(e)}function yu(e,n){switch(e.kind){case 245:case 246:case 247:case 243:case 244:return!0;case 253:return n&&yu(e.statement,n)}return!1}function vu(e){return ZI(e)||ew(e)}function bu(e){return ce(e,vu)}function Eu(e){return!Gf(e)&&!ZI(e)&&!fb(e,1)&&!yf(e)}function Tu(e){return Gf(e)||ZI(e)||fb(e,1)}function xu(e){return 246===e.kind||247===e.kind}function Su(e){return pI(e)||mu(e)}function Au(e){return pI(e)}function Lu(e){return DI(e)||mu(e)}function Cu(e){const n=e.kind;return 265===n||264===n||79===n}function ku(e){const n=e.kind;return 265===n||264===n}function Iu(e){const n=e.kind;return 79===n||264===n}function wu(e){const n=e.kind;return 272===n||271===n}function Ru(e){return 264===e.kind||263===e.kind}function Nu(e){switch(e.kind){case 216:case 223:case 205:case 210:case 176:case 260:case 228:case 172:case 173:case 182:case 177:case 209:case 263:case 302:case 274:case 275:case 278:case 259:case 215:case 181:case 174:case 79:case 270:case 268:case 273:case 178:case 261:case 341:case 343:case 320:case 344:case 351:case 326:case 349:case 325:case 288:case 289:case 290:case 197:case 171:case 170:case 264:case 199:case 277:case 267:case 271:case 211:case 14:case 8:case 207:case 166:case 208:case 299:case 169:case 168:case 175:case 300:case 308:case 301:case 10:case 262:case 184:case 165:case 257:return!0;default:return!1}}function Du(e){switch(e.kind){case 216:case 238:case 176:case 266:case 295:case 172:case 191:case 173:case 182:case 177:case 245:case 246:case 247:case 259:case 215:case 181:case 174:case 178:case 341:case 343:case 320:case 326:case 349:case 197:case 171:case 170:case 264:case 175:case 308:case 262:return!0;default:return!1}}function Ou(e){return 259===e||279===e||260===e||261===e||262===e||263===e||264===e||269===e||268===e||275===e||274===e||267===e}function Mu(e){return 249===e||248===e||256===e||243===e||241===e||239===e||246===e||247===e||245===e||242===e||253===e||250===e||252===e||254===e||255===e||240===e||244===e||251===e||355===e||359===e||358===e}function Pu(e){return 165===e.kind?e.parent&&348!==e.parent.kind||Ih(e):216===(n=e.kind)||205===n||260===n||228===n||172===n||173===n||263===n||302===n||278===n||259===n||215===n||174===n||270===n||268===n||273===n||261===n||288===n||171===n||170===n||264===n||267===n||271===n||277===n||166===n||299===n||169===n||168===n||175===n||300===n||262===n||165===n||257===n||349===n||341===n||351===n;var n}function Fu(e){return Ou(e.kind)}function Gu(e){return Mu(e.kind)}function Bu(e){const n=e.kind;return Mu(n)||Ou(n)||function(e){if(238!==e.kind)return!1;if(void 0!==e.parent&&(255===e.parent.kind||295===e.parent.kind))return!1;return!Fm(e)}(e)}function Uu(e){const n=e.kind;return Mu(n)||Ou(n)||238===n}function Vu(e){const n=e.kind;return 280===n||163===n||79===n}function ju(e){const n=e.kind;return 108===n||79===n||208===n}function Hu(e){const n=e.kind;return 281===n||291===n||282===n||11===n||285===n}function Ku(e){const n=e.kind;return 288===n||290===n}function Wu(e){const n=e.kind;return 10===n||291===n}function zu(e){const n=e.kind;return 283===n||282===n}function qu(e){const n=e.kind;return 292===n||293===n}function Ju(e){return e.kind>=312&&e.kind<=353}function Xu(e){return 323===e.kind||322===e.kind||324===e.kind||s_(e)||Yu(e)||qw(e)||Jw(e)}function Yu(e){return e.kind>=330&&e.kind<=353}function $u(e){return 175===e.kind}function Qu(e){return 174===e.kind}function Zu(e){if(!Ng(e))return!1;const{jsDoc:n}=e;return!!n&&n.length>0}function e_(e){return!!e.type}function n_(e){return!!e.initializer}function t_(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:case 302:return!0;default:return!1}}function r_(e){return 288===e.kind||290===e.kind||Wd(e)}function i_(e){return 180===e.kind||230===e.kind}function a_(e){let n=nc;for(const t of e){if(!t.length)continue;let e=0;for(;e<t.length&&e<n&&As(t.charCodeAt(e));e++);if(e<n&&(n=e),0===n)return 0}return n===nc?void 0:n}function o_(e){return 10===e.kind||14===e.kind}function s_(e){return 327===e.kind||328===e.kind||329===e.kind}function c_(e){const n=Fe(e.parameters);return!!n&&l_(n)}function l_(e){const n=cR(e)?e.typeExpression&&e.typeExpression.type:e.type;return void 0!==e.dotDotDotToken||!!n&&321===n.kind}var d_,u_,__,p_,f_,m_,h_,g_,y_,v_,b_,E_,T_,x_,S_,A_,L_,C_,k_,I_,w_,R_,N_,D_,O_,M_,P_,F_,G_,B_,U_,V_,j_,H_,K_,W_,z_,q_,J_,X_,Y_,$_,Q_,Z_,ep,np,tp,rp,ip,ap,op,sp=E({"src/compiler/utilitiesPublic.ts"(){lq(),Zs=Tc(yc(0,0),0),ec=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],nc=1073741823}});function cp(e,n){const t=e.declarations;if(t)for(const r of t)if(r.kind===n)return r}function lp(e,n){return j(e.declarations||i,(e=>e.kind===n))}function dp(e){const n=new Map;if(e)for(const t of e)n.set(t.escapedName,t);return n}function up(e){return 0!==(33554432&e.flags)}function _p(e,n){return e.configFilePath!==n.configFilePath||pp(e,n)}function pp(e,n){return mp(e,n,oO)}function fp(e,n){return mp(e,n,cO)}function mp(e,n,t){return e!==n&&t.some((t=>!pS(mx(e,t),mx(n,t))))}function hp(e,n){for(;;){const t=n(e);if("quit"===t)return;if(void 0!==t)return t;if(Iw(e))return;e=e.parent}}function gp(e,n){const t=e.entries();for(const[r,i]of t){const e=n(i,r);if(e)return e}}function yp(e,n){const t=e.keys();for(const r of t){const e=n(r);if(e)return e}}function vp(e,n){e.forEach(((e,t)=>{n.set(t,e)}))}function bp(e){const n=f_.getText();try{return e(f_),f_.getText()}finally{f_.clear(),f_.writeKeyword(n)}}function Ep(e){return e.end-e.pos}function Tp(e,n,t){var r,i;return null==(i=null==(r=null==e?void 0:e.resolvedModules)?void 0:r.get(n,t))?void 0:i.resolvedModule}function xp(e,n,t,r){e.resolvedModules||(e.resolvedModules=BP()),e.resolvedModules.set(n,r,t)}function Sp(e,n,t,r){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=BP()),e.resolvedTypeReferenceDirectiveNames.set(n,r,t)}function Ap(e,n,t){var r,i;return null==(i=null==(r=null==e?void 0:e.resolvedTypeReferenceDirectiveNames)?void 0:r.get(n,t))?void 0:i.resolvedTypeReferenceDirective}function Lp(e,n){return e.path===n.path&&!e.prepend===!n.prepend&&!e.circular===!n.circular}function Cp(e,n){return e===n||e.resolvedModule===n.resolvedModule||!!e.resolvedModule&&!!n.resolvedModule&&e.resolvedModule.isExternalLibraryImport===n.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===n.resolvedModule.extension&&e.resolvedModule.resolvedFileName===n.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===n.resolvedModule.originalPath&&(t=e.resolvedModule.packageId,r=n.resolvedModule.packageId,t===r||!!t&&!!r&&t.name===r.name&&t.subModuleName===r.subModuleName&&t.version===r.version);var t,r}function kp({name:e,subModuleName:n}){return n?`${e}/${n}`:e}function Ip(e){return`${kp(e)}@${e.version}`}function wp(e,n){return e===n||e.resolvedTypeReferenceDirective===n.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!n.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===n.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary===!!n.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===n.resolvedTypeReferenceDirective.originalPath}function Rp(e,n,t,r,i,a){Nt.assert(e.length===t.length);for(let o=0;o<e.length;o++){const s=t[o],c=e[o],l=a.getName(c),d=a.getMode(c,n),u=r&&r.get(l,d);if(u?!s||!i(u,s):s)return!0}return!1}function Np(e){return function(e){if(!(1048576&e.flags)){(0!==(131072&e.flags)||CD(e,Np))&&(e.flags|=524288),e.flags|=1048576}}(e),0!==(524288&e.flags)}function Dp(e){for(;e&&308!==e.kind;)e=e.parent;return e}function Op(e){return Dp(e.valueDeclaration||Cf(e))}function Mp(e,n){return!!e&&(1===e.scriptKind||2===e.scriptKind)&&!e.checkJsDirective&&void 0===n}function Pp(e){switch(e.kind){case 238:case 266:case 245:case 246:case 247:return!0}return!1}function Fp(e,n){return Nt.assert(e>=0),bs(n)[e]}function Gp(e){const n=Dp(e),t=Ss(n,e.pos);return`${n.fileName}(${t.line+1},${t.character+1})`}function Bp(e,n){Nt.assert(e>=0);const t=bs(n),r=e,i=n.text;if(r+1===t.length)return i.length-1;{const e=t[r];let n=t[r+1]-1;for(Nt.assert(Cs(i.charCodeAt(n)));e<=n&&Cs(i.charCodeAt(n));)n--;return n}}function Up(e,n,t){return!(t&&t(n))&&!e.identifiers.has(n)}function Vp(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function jp(e){return!Vp(e)}function Hp(e,n){return zC(e)?n===e.expression:ZC(e)?n===e.modifiers:XC(e)?n===e.initializer:YC(e)?n===e.questionToken&&Bd(e):Sw(e)?n===e.modifiers||n===e.questionToken||n===e.exclamationToken||Kp(e.modifiers,n,jd):Aw(e)?n===e.equalsToken||n===e.modifiers||n===e.questionToken||n===e.exclamationToken||Kp(e.modifiers,n,jd):QC(e)?n===e.exclamationToken:ek(e)?n===e.typeParameters||n===e.type||Kp(e.typeParameters,n,zC):nk(e)?n===e.typeParameters||Kp(e.typeParameters,n,zC):tk(e)?n===e.typeParameters||n===e.type||Kp(e.typeParameters,n,zC):!!jI(e)&&(n===e.modifiers||Kp(e.modifiers,n,jd))}function Kp(e,n,t){return!(!e||gn(n)||!t(n))&&G(e,n)}function Wp(e,n,t){if(void 0===n||0===n.length)return e;let r=0;for(;r<e.length&&t(e[r]);++r);return e.splice(r,0,...n),e}function zp(e,n,t){if(void 0===n)return e;let r=0;for(;r<e.length&&t(e[r]);++r);return e.splice(r,0,n),e}function qp(e){return hm(e)||!!(2097152&df(e))}function Jp(e,n){return Wp(e,n,hm)}function Xp(e,n){return Wp(e,n,qp)}function Yp(e,n){return zp(e,n,hm)}function $p(e,n){return zp(e,n,qp)}function Qp(e,n,t){if(47===e.charCodeAt(n+1)&&n+2<t&&47===e.charCodeAt(n+2)){const r=e.substring(n,t);return!!(h_.test(r)||y_.test(r)||g_.test(r)||v_.test(r))}return!1}function Zp(e,n){return 42===e.charCodeAt(n+1)&&33===e.charCodeAt(n+2)}function ef(e,n){const t=new Map(n.map((n=>[`${Ss(e,n.range.end).line}`,n]))),r=new Map;return{getUnusedExpectations:function(){return Qe(t.entries()).filter((([e,n])=>0===n.type&&!r.get(e))).map((([e,n])=>n))},markUsed:function(e){if(!t.has(`${e}`))return!1;return r.set(`${e}`,!0),!0}}}function nf(e,n,t){return Vp(e)?e.pos:Ju(e)||11===e.kind?Ns((n||Dp(e)).text,e.pos,!1,!0):t&&Zu(e)?nf(e.jsDoc[0],n):354===e.kind&&e._children.length>0?nf(e._children[0],n,t):Ns((n||Dp(e)).text,e.pos,!1,!1,Nh(e))}function tf(e,n){const t=!Vp(e)&&jN(e)?O(e.modifiers,JC):void 0;return t?Ns((n||Dp(e)).text,t.end):nf(e,n)}function rf(e,n,t=!1){return of(e.text,n,t)}function af(e){return!!(ew(e)&&e.exportClause&&YI(e.exportClause)&&"default"===e.exportClause.name.escapedText)}function of(e,n,t=!1){if(Vp(n))return"";let r=e.substring(t?n.pos:Ns(e,n.pos),n.end);return function(e){return!!Mc(e,Nw)}(n)&&(r=r.split(/\r\n|\n|\r/).map((e=>y(e.replace(/^\s*\*/,"")))).join("\n")),r}function sf(e,n=!1){return rf(Dp(e),e,n)}function cf(e){return e.pos}function lf(e,n){return He(e,n,cf,Un)}function df(e){const n=e.emitNode;return n&&n.flags||0}function uf(e){const n=e.emitNode;return n&&n.internalFlags||0}function _f(){return new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:i})),AsyncIterator:new Map(Object.entries({es2015:i})),Atomics:new Map(Object.entries({es2017:i})),SharedArrayBuffer:new Map(Object.entries({es2017:i})),AsyncIterable:new Map(Object.entries({es2018:i})),AsyncIterableIterator:new Map(Object.entries({es2018:i})),AsyncGenerator:new Map(Object.entries({es2018:i})),AsyncGeneratorFunction:new Map(Object.entries({es2018:i})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:i,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:i})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:i,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:i,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))}function pf(e,n,t){var r;if(n&&function(e,n){if($y(e)||!e.parent||4&n&&e.isUnterminated)return!1;if(dC(e)&&512&e.numericLiteralFlags)return!!(8&n);return!uC(e)}(e,t))return rf(n,e);switch(e.kind){case 10:{const n=2&t?pv:1&t||33554432&df(e)?dv:uv;return e.singleQuote?"'"+n(e.text,39)+"'":'"'+n(e.text,34)+'"'}case 14:case 15:case 16:case 17:{const n=1&t||33554432&df(e)?dv:uv,i=null!=(r=e.rawText)?r:n(e.text,96).replace(S_,"\\${");switch(e.kind){case 14:return"`"+i+"`";case 15:return"`"+i+"${";case 16:return"}"+i+"${";case 17:return"}"+i+"`"}break}case 8:case 9:return e.text;case 13:return 4&t&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return Nt.fail(`Literal kind '${e.kind}' not accounted for.`)}function ff(e){return vn(e)?'"'+uv(e)+'"':""+e}function mf(e){return fo(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function hf(e){return 0!==(3&Nc(e))||gf(e)}function gf(e){const n=Xy(e);return 257===n.kind&&295===n.parent.kind}function yf(e){return BI(e)&&(10===e.name.kind||Sf(e))}function vf(e){return BI(e)&&10===e.name.kind}function bf(e){return BI(e)&&_C(e.name)}function Ef(e){return BI(e)||IC(e)}function Tf(e){return!!(n=e.valueDeclaration)&&264===n.kind&&!n.body;var n}function xf(e){return 308===e.kind||264===e.kind||wd(e)}function Sf(e){return!!(1024&e.flags)}function Af(e){return yf(e)&&Lf(e)}function Lf(e){switch(e.parent.kind){case 308:return OD(e.parent);case 265:return yf(e.parent.parent)&&Iw(e.parent.parent.parent)&&!OD(e.parent.parent.parent)}return!1}function Cf(e){var n;return null==(n=e.declarations)?void 0:n.find((e=>!Af(e)&&!(BI(e)&&Sf(e))))}function kf(e,n){return OD(e)||XT(n)||(1===(t=KT(n))||100===t||199===t)&&!!e.commonJsModuleIndicator;var t}function If(e,n){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!e.isDeclarationFile&&(!!lx(n,"alwaysStrict")||(!!VR(e.statements)||!(!OD(e)&&!XT(n))&&(KT(n)>=5||!n.noImplicitUseStrict)))}function wf(e){return!!(16777216&e.flags)||fb(e,2)}function Rf(e,n){switch(e.kind){case 308:case 266:case 295:case 264:case 245:case 246:case 247:case 173:case 171:case 174:case 175:case 259:case 215:case 216:case 169:case 172:return!0;case 238:return!wd(n)}return!1}function Nf(e){switch(Nt.type(e),e.kind){case 341:case 349:case 326:return!0;default:return Df(e)}}function Df(e){switch(Nt.type(e),e.kind){case 176:case 177:case 170:case 178:case 181:case 182:case 320:case 260:case 228:case 261:case 262:case 348:case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function Of(e){switch(e.kind){case 269:case 268:return!0;default:return!1}}function Mf(e){return Of(e)||Ph(e)}function Pf(e){switch(e.kind){case 269:case 268:case 240:case 260:case 259:case 264:case 262:case 261:case 263:return!0;default:return!1}}function Ff(e){return Gf(e)||BI(e)||Ck(e)||pm(e)}function Gf(e){return Of(e)||ew(e)}function Bf(e){return Mc(e.parent,(e=>Rf(e,e.parent)))}function Uf(e,n){let t=Bf(e);for(;t;)n(t),t=Bf(t)}function Vf(e){return e&&0!==Ep(e)?sf(e):"(Missing)"}function jf(e){return e.declaration?Vf(e.declaration.parameters[0].name):void 0}function Hf(e){return 164===e.kind&&!wy(e.expression)}function Kf(e){var n;switch(e.kind){case 79:case 80:return(null==(n=e.emitNode)?void 0:n.autoGenerate)?void 0:e.escapedText;case 10:case 8:case 14:return Gc(e.text);case 164:return wy(e.expression)?Gc(e.expression.text):void 0;default:return Nt.assertNever(e)}}function Wf(e){return Nt.checkDefined(Kf(e))}function zf(e){switch(e.kind){case 108:return"this";case 80:case 79:return 0===Ep(e)?Uc(e):sf(e);case 163:return zf(e.left)+"."+zf(e.right);case 208:return IC(e.name)||wC(e.name)?zf(e.expression)+"."+zf(e.name):Nt.assertNever(e.name);case 314:return zf(e.left)+zf(e.right);default:return Nt.assertNever(e)}}function qf(e,n,t,r,i,a){return Xf(Dp(e),e,n,t,r,i,a)}function Jf(e,n,t,r,i,a,o){const s=Ns(e.text,n.pos);return kT(e,s,n.end-s,t,r,i,a,o)}function Xf(e,n,t,r,i,a,o){const s=am(e,n);return kT(e,s.start,s.length,t,r,i,a,o)}function Yf(e,n,t,r){const i=am(e,n);return Zf(e,i.start,i.length,t,r)}function $f(e,n,t,r){const i=Ns(e.text,n.pos);return Zf(e,i,n.end-i,t,r)}function Qf(e,n,t){Nt.assertGreaterThanOrEqual(n,0),Nt.assertGreaterThanOrEqual(t,0),e&&(Nt.assertLessThanOrEqual(n,e.text.length),Nt.assertLessThanOrEqual(n+t,e.text.length))}function Zf(e,n,t,r,i){return Qf(e,n,t),{file:e,start:n,length:t,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i}}function em(e,n,t){return{file:e,start:0,length:0,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:t}}function nm(e){return"string"===typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function tm(e,n,t){return{file:e,start:n.pos,length:n.end-n.pos,code:t.code,category:t.category,messageText:t.message}}function rm(e,n){const t=Xs(e.languageVersion,!0,e.languageVariant,e.text,void 0,n);t.scan();return vc(t.getTokenPos(),t.getTextPos())}function im(e,n){const t=Xs(e.languageVersion,!0,e.languageVariant,e.text,void 0,n);return t.scan(),t.getToken()}function am(e,n){let t=n;switch(n.kind){case 308:const r=Ns(e.text,0,!1);return r===e.text.length?yc(0,0):rm(e,r);case 257:case 205:case 260:case 228:case 261:case 264:case 263:case 302:case 259:case 215:case 171:case 174:case 175:case 262:case 169:case 168:case 271:t=n.name;break;case 216:return function(e,n){const t=Ns(e.text,n.pos);if(n.body&&238===n.body.kind){const{line:r}=Ss(e,n.body.pos),{line:i}=Ss(e,n.body.end);if(r<i)return yc(t,Bp(r,e)-t+1)}return vc(t,n.end)}(e,n);case 292:case 293:return vc(Ns(e.text,n.pos),n.statements.length>0?n.statements[0].pos:n.end)}if(void 0===t)return rm(e,n.pos);Nt.assert(!zw(t));const r=Vp(t),i=r||pC(n)?t.pos:Ns(e.text,t.pos);return r?(Nt.assert(i===t.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),Nt.assert(i===t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(Nt.assert(i>=t.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),Nt.assert(i<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),vc(i,t.end)}function om(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function sm(e){return 6===e.scriptKind}function cm(e){return!!(2048&wc(e))}function lm(e){return!(!(64&wc(e))||Ac(e,e.parent))}function dm(e){return!!(2&Nc(e))}function um(e){return!!(1&Nc(e))}function _m(e){return 210===e.kind&&106===e.expression.kind}function pm(e){return 210===e.kind&&100===e.expression.kind}function fm(e){return sI(e)&&100===e.keywordToken&&"meta"===e.name.escapedText}function mm(e){return Ck(e)&&Lk(e.argument)&&_C(e.argument.literal)}function hm(e){return 241===e.kind&&10===e.expression.kind}function gm(e){return!!(2097152&df(e))}function ym(e){return gm(e)&&OI(e)}function vm(e){return IC(e.name)&&!e.initializer}function bm(e){return gm(e)&&fI(e)&&N(e.declarationList.declarations,vm)}function Em(e,n){return 11!==e.kind?Hs(n.text,e.pos):void 0}function Tm(e,n){return j(166===e.kind||165===e.kind||215===e.kind||216===e.kind||214===e.kind||257===e.kind||278===e.kind?de(Ks(n,e.pos),Hs(n,e.pos)):Hs(n,e.pos),(e=>42===n.charCodeAt(e.pos+1)&&42===n.charCodeAt(e.pos+2)&&47!==n.charCodeAt(e.pos+3)))}function xm(e){if(179<=e.kind&&e.kind<=202)return!0;switch(e.kind){case 131:case 157:case 148:case 160:case 152:case 134:case 153:case 149:case 155:case 144:return!0;case 114:return 219!==e.parent.kind;case 230:return Tw(e.parent)&&!zb(e);case 165:return 197===e.parent.kind||192===e.parent.kind;case 79:(163===e.parent.kind&&e.parent.right===e||208===e.parent.kind&&e.parent.name===e)&&(e=e.parent),Nt.assert(79===e.kind||163===e.kind||208===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 163:case 208:case 108:{const{parent:n}=e;if(183===n.kind)return!1;if(202===n.kind)return!n.isTypeOf;if(179<=n.kind&&n.kind<=202)return!0;switch(n.kind){case 230:return Tw(n.parent)&&!zb(n);case 165:case 348:return e===n.constraint;case 169:case 168:case 166:case 257:case 259:case 215:case 216:case 173:case 171:case 170:case 174:case 175:case 176:case 177:case 178:case 213:return e===n.type;case 210:case 211:return G(n.typeArguments,e);case 212:return!1}}}return!1}function Sm(e,n){for(;e;){if(e.kind===n)return!0;e=e.parent}return!1}function Am(e,n){return function e(t){switch(t.kind){case 250:return n(t);case 266:case 238:case 242:case 243:case 244:case 245:case 246:case 247:case 251:case 252:case 292:case 293:case 253:case 255:case 295:return CD(t,e)}}(e)}function Lm(e,n){return function e(t){switch(t.kind){case 226:n(t);const r=t.expression;return void(r&&e(r));case 263:case 261:case 264:case 262:return;default:if(Id(t)){if(t.name&&164===t.name.kind)return void e(t.name.expression)}else xm(t)||CD(t,e)}}(e)}function Cm(e){return e&&185===e.kind?e.elementType:e&&180===e.kind?Be(e.typeArguments):void 0}function km(e){switch(e.kind){case 261:case 260:case 228:case 184:return e.members;case 207:return e.properties}}function Im(e){if(e)switch(e.kind){case 205:case 302:case 166:case 299:case 169:case 168:case 300:case 257:return!0}return!1}function wm(e){return Im(e)||Gd(e)}function Rm(e){return 258===e.parent.kind&&240===e.parent.parent.kind}function Nm(e){return!!Ih(e)&&(Ok(e.parent)&&Yk(e.parent.parent)&&2===eg(e.parent.parent)||Dm(e.parent))}function Dm(e){return!!Ih(e)&&(Yk(e)&&1===eg(e))}function Om(e){return(NI(e)?dm(e)&&IC(e.name)&&Rm(e):YC(e)?Eb(e)&&hb(e):XC(e)&&Eb(e))||Dm(e)}function Mm(e){switch(e.kind){case 171:case 170:case 173:case 174:case 175:case 259:case 215:return!0}return!1}function Pm(e,n){for(;;){if(n&&n(e),253!==e.statement.kind)return e.statement;e=e.statement}}function Fm(e){return e&&238===e.kind&&Id(e.parent)}function Gm(e){return e&&171===e.kind&&207===e.parent.kind}function Bm(e){return(171===e.kind||174===e.kind||175===e.kind)&&(207===e.parent.kind||228===e.parent.kind)}function Um(e){return e&&1===e.kind}function Vm(e){return e&&0===e.kind}function jm(e,n,t){return e.properties.filter((e=>{if(299===e.kind){const r=Kf(e.name);return n===r||!!t&&t===r}return!1}))}function Hm(e,n,t){return C(jm(e,n),(e=>Dk(e.initializer)?D(e.initializer.elements,(e=>_C(e)&&e.text===t)):void 0))}function Km(e){if(e&&e.statements.length){return En(e.statements[0].expression,Ok)}}function Wm(e,n,t){return C(zm(e,n),(e=>Dk(e.initializer)?D(e.initializer.elements,(e=>_C(e)&&e.text===t)):void 0))}function zm(e,n){const t=Km(e);return t?jm(t,n):i}function qm(e){return Mc(e.parent,Id)}function Jm(e){return Mc(e.parent,Rd)}function Xm(e){return Mc(e.parent,Fd)}function Ym(e){return Mc(e.parent,(e=>Fd(e)||Id(e)?"quit":ZC(e)))}function $m(e){return Mc(e.parent,wd)}function Qm(e,n,t){for(Nt.assert(308!==e.kind);;){if(!(e=e.parent))return Nt.fail();switch(e.kind){case 164:if(t&&Fd(e.parent.parent))return e;e=e.parent.parent;break;case 167:166===e.parent.kind&&Pd(e.parent.parent)?e=e.parent.parent:Pd(e.parent)&&(e=e.parent);break;case 216:if(!n)continue;case 259:case 215:case 264:case 172:case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 176:case 177:case 178:case 263:case 308:return e}}}function Zm(e){switch(e.kind){case 216:case 259:case 215:case 169:return!0;case 238:switch(e.parent.kind){case 173:case 171:case 174:case 175:return!0;default:return!1}default:return!1}}function eh(e){IC(e)&&(MI(e.parent)||OI(e.parent))&&e.parent.name===e&&(e=e.parent);return Iw(Qm(e,!0,!1))}function nh(e){const n=Qm(e,!1,!1);if(n)switch(n.kind){case 173:case 259:case 215:return n}}function th(e,n){for(;;){if(!(e=e.parent))return;switch(e.kind){case 164:e=e.parent;break;case 259:case 215:case 216:if(!n)continue;case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 172:return e;case 167:166===e.parent.kind&&Pd(e.parent.parent)?e=e.parent.parent:Pd(e.parent)&&(e=e.parent)}}}function rh(e){if(215===e.kind||216===e.kind){let n=e,t=e.parent;for(;214===t.kind;)n=t,t=t.parent;if(210===t.kind&&t.expression===n)return t}}function ih(e){return 106===e.kind||ah(e)}function ah(e){const n=e.kind;return(208===n||209===n)&&106===e.expression.kind}function oh(e){const n=e.kind;return(208===n||209===n)&&108===e.expression.kind}function sh(e){var n;return!!e&&NI(e)&&108===(null==(n=e.initializer)?void 0:n.kind)}function ch(e){return!!e&&(Aw(e)||Sw(e))&&Yk(e.parent.parent)&&63===e.parent.parent.operatorToken.kind&&108===e.parent.parent.right.kind}function lh(e){switch(e.kind){case 180:return e.typeName;case 230:return qb(e.expression)?e.expression:void 0;case 79:case 163:return e}}function dh(e){switch(e.kind){case 212:return e.tag;case 283:case 282:return e.tagName;default:return e.expression}}function uh(e,n,t,r){if(e&&qc(n)&&wC(n.name))return!1;switch(n.kind){case 260:return!0;case 228:return!e;case 169:return void 0!==t&&(e?MI(t):Fd(t)&&!yb(n)&&!vb(n));case 174:case 175:case 171:return void 0!==n.body&&void 0!==t&&(e?MI(t):Fd(t));case 166:return!!e&&(void 0!==t&&void 0!==t.body&&(173===t.kind||171===t.kind||175===t.kind)&&zv(t)!==n&&void 0!==r&&260===r.kind)}return!1}function _h(e,n,t,r){return Tb(n)&&uh(e,n,t,r)}function ph(e,n,t,r){return _h(e,n,t,r)||fh(e,n,t)}function fh(e,n,t){switch(n.kind){case 260:return ce(n.members,(r=>ph(e,r,n,t)));case 228:return!e&&ce(n.members,(r=>ph(e,r,n,t)));case 171:case 175:case 173:return ce(n.parameters,(r=>_h(e,r,n,t)));default:return!1}}function mh(e,n){if(_h(e,n))return!0;const t=Hv(n);return!!t&&fh(e,t,n)}function hh(e,n,t){let r;if(Gd(n)){const{firstAccessor:e,secondAccessor:i,setAccessor:a}=$v(t.members,n),o=Tb(e)?e:i&&Tb(i)?i:void 0;if(!o||n!==o)return!1;r=null==a?void 0:a.parameters}else QC(n)&&(r=n.parameters);if(_h(e,n,t))return!0;if(r)for(const i of r)if(!qv(i)&&_h(e,i,n,t))return!0;return!1}function gh(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 10:return gh(e.textSourceNode);case 14:return""===e.text}return!1}return""===e.text}function yh(e){const{parent:n}=e;return(283===n.kind||282===n.kind||284===n.kind)&&n.tagName===e}function vh(e){switch(e.kind){case 106:case 104:case 110:case 95:case 13:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 231:case 213:case 235:case 232:case 214:case 215:case 228:case 216:case 219:case 217:case 218:case 221:case 222:case 223:case 224:case 227:case 225:case 229:case 281:case 282:case 285:case 226:case 220:case 233:return!0;case 230:return!Tw(e.parent)&&!Xw(e.parent);case 163:for(;163===e.parent.kind;)e=e.parent;return 183===e.parent.kind||s_(e.parent)||Dw(e.parent)||Ow(e.parent)||yh(e);case 314:for(;Ow(e.parent);)e=e.parent;return 183===e.parent.kind||s_(e.parent)||Dw(e.parent)||Ow(e.parent)||yh(e);case 80:return Yk(e.parent)&&e.parent.left===e&&101===e.parent.operatorToken.kind;case 79:if(183===e.parent.kind||s_(e.parent)||Dw(e.parent)||Ow(e.parent)||yh(e))return!0;case 8:case 9:case 10:case 14:case 108:return bh(e);default:return!1}}function bh(e){const{parent:n}=e;switch(n.kind){case 257:case 166:case 169:case 168:case 302:case 299:case 205:return n.initializer===e;case 241:case 242:case 243:case 244:case 250:case 251:case 252:case 292:case 254:return n.expression===e;case 245:const t=n;return t.initializer===e&&258!==t.initializer.kind||t.condition===e||t.incrementor===e;case 246:case 247:const r=n;return r.initializer===e&&258!==r.initializer.kind||r.expression===e;case 213:case 231:case 236:case 164:case 235:return e===n.expression;case 167:case 291:case 290:case 301:return!0;case 230:return n.expression===e&&!xm(n);case 300:return n.objectAssignmentInitializer===e;default:return vh(n)}}function Eh(e){for(;163===e.kind||79===e.kind;)e=e.parent;return 183===e.kind}function Th(e){return YI(e)&&!!e.parent.moduleSpecifier}function xh(e){return 268===e.kind&&280===e.moduleReference.kind}function Sh(e){return Nt.assert(xh(e)),e.moduleReference.expression}function Ah(e){return Ph(e)&&cT(e.initializer).arguments[0]}function Lh(e){return 268===e.kind&&280!==e.moduleReference.kind}function Ch(e){return Ih(e)}function kh(e){return!Ih(e)}function Ih(e){return!!e&&!!(262144&e.flags)}function wh(e){return!!e&&!!(67108864&e.flags)}function Rh(e){return!sm(e)}function Nh(e){return!!e&&!!(8388608&e.flags)}function Dh(e){return sk(e)&&IC(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(152===e.typeArguments[0].kind||148===e.typeArguments[0].kind)}function Oh(e,n){if(210!==e.kind)return!1;const{expression:t,arguments:r}=e;if(79!==t.kind||"require"!==t.escapedText)return!1;if(1!==r.length)return!1;const i=r[0];return!n||o_(i)}function Mh(e){return Gh(e,!1)}function Ph(e){return Gh(e,!0)}function Fh(e){return Nk(e)&&Ph(e.parent.parent)}function Gh(e,n){return NI(e)&&!!e.initializer&&Oh(n?cT(e.initializer):e.initializer,!0)}function Bh(e){return fI(e)&&e.declarationList.declarations.length>0&&N(e.declarationList.declarations,(e=>Mh(e)))}function Uh(e){return 39===e||34===e}function Vh(e,n){return 34===rf(n,e).charCodeAt(0)}function jh(e){return Yk(e)||iT(e)||IC(e)||Fk(e)}function Hh(e){return Ih(e)&&e.initializer&&Yk(e.initializer)&&(56===e.initializer.operatorToken.kind||60===e.initializer.operatorToken.kind)&&e.name&&qb(e.name)&&Xh(e.name,e.initializer.left)?e.initializer.right:e.initializer}function Kh(e){const n=Hh(e);return n&&zh(n,Qb(e.name))}function Wh(e){if(e&&e.parent&&Yk(e.parent)&&63===e.parent.operatorToken.kind){const n=Qb(e.parent.left);return zh(e.parent.right,n)||function(e,n,t){const r=Yk(n)&&(56===n.operatorToken.kind||60===n.operatorToken.kind)&&zh(n.right,t);if(r&&Xh(e,n.left))return r}(e.parent.left,e.parent.right,n)}if(e&&Fk(e)&&ng(e)){const n=function(e,n){return A(e.properties,(e=>Sw(e)&&IC(e.name)&&"value"===e.name.escapedText&&e.initializer&&zh(e.initializer,n)))}(e.arguments[2],"prototype"===e.arguments[1].text);if(n)return n}}function zh(e,n){if(Fk(e)){const n=ey(e.expression);return 215===n.kind||216===n.kind?e:void 0}return 215===e.kind||228===e.kind||216===e.kind||Ok(e)&&(0===e.properties.length||n)?e:void 0}function qh(e){const n=NI(e.parent)?e.parent.name:Yk(e.parent)&&63===e.parent.operatorToken.kind?e.parent.left:void 0;return n&&zh(e.right,Qb(n))&&qb(n)&&Xh(n,e.left)}function Jh(e){if(Yk(e.parent)){const n=56!==e.parent.operatorToken.kind&&60!==e.parent.operatorToken.kind||!Yk(e.parent.parent)?e.parent:e.parent.parent;if(63===n.operatorToken.kind&&IC(n.left))return n.left}else if(NI(e.parent))return e.parent.name}function Xh(e,n){return My(e)&&My(n)?Py(e)===Py(n):Fl(e)&&tg(n)&&(108===n.expression.kind||IC(n.expression)&&("window"===n.expression.escapedText||"self"===n.expression.escapedText||"global"===n.expression.escapedText))?Xh(e,sg(n)):!(!tg(e)||!tg(n))&&(lg(e)===lg(n)&&Xh(e.expression,n.expression))}function Yh(e){for(;Hb(e,!0);)e=e.right;return e}function $h(e){return IC(e)&&"exports"===e.escapedText}function Qh(e){return IC(e)&&"module"===e.escapedText}function Zh(e){return(Mk(e)||rg(e))&&Qh(e.expression)&&"exports"===lg(e)}function eg(e){const n=function(e){if(Fk(e)){if(!ng(e))return 0;const n=e.arguments[0];return $h(n)||Zh(n)?8:ig(n)&&"prototype"===lg(n)?9:7}if(63!==e.operatorToken.kind||!iT(e.left)||(n=Yh(e),zk(n)&&dC(n.expression)&&"0"===n.expression.text))return 0;var n;if(og(e.left.expression,!0)&&"prototype"===lg(e.left)&&Ok(ug(e)))return 6;return dg(e.left)}(e);return 5===n||Ih(e)?n:0}function ng(e){return 3===S(e.arguments)&&Mk(e.expression)&&IC(e.expression.expression)&&"Object"===Uc(e.expression.expression)&&"defineProperty"===Uc(e.expression.name)&&wy(e.arguments[1])&&og(e.arguments[0],!0)}function tg(e){return Mk(e)||rg(e)}function rg(e){return Pk(e)&&wy(e.argumentExpression)}function ig(e,n){return Mk(e)&&(!n&&108===e.expression.kind||IC(e.name)&&og(e.expression,!0))||ag(e,n)}function ag(e,n){return rg(e)&&(!n&&108===e.expression.kind||qb(e.expression)||ig(e.expression,!0))}function og(e,n){return qb(e)||ig(e,n)}function sg(e){return Mk(e)?e.name:e.argumentExpression}function cg(e){if(Mk(e))return e.name;const n=ey(e.argumentExpression);return dC(n)||o_(n)?n:e}function lg(e){const n=cg(e);if(n){if(IC(n))return n.escapedText;if(o_(n)||dC(n))return Gc(n.text)}}function dg(e){if(108===e.expression.kind)return 4;if(Zh(e))return 2;if(og(e.expression,!0)){if(Qb(e.expression))return 3;let n=e;for(;!IC(n.expression);)n=n.expression;const t=n.expression;if(("exports"===t.escapedText||"module"===t.escapedText&&"exports"===lg(n))&&ig(e))return 1;if(og(e,!0)||Pk(e)&&Dy(e))return 5}return 0}function ug(e){for(;Yk(e.right);)e=e.right;return e.right}function _g(e){return Yk(e)&&3===eg(e)}function pg(e){return Ih(e)&&e.parent&&241===e.parent.kind&&(!Pk(e)||rg(e))&&!!Al(e.parent)}function fg(e,n){const{valueDeclaration:t}=e;(!t||(!(16777216&n.flags)||Ih(n)||16777216&t.flags)&&jh(t)&&!jh(n)||t.kind!==n.kind&&Ef(t))&&(e.valueDeclaration=n)}function mg(e){if(!e||!e.valueDeclaration)return!1;const n=e.valueDeclaration;return 259===n.kind||NI(n)&&n.initializer&&Id(n.initializer)}function hg(e){var n,t;switch(e.kind){case 257:case 205:return null==(n=Mc(e.initializer,(e=>Oh(e,!0))))?void 0:n.arguments[0];case 269:return En(e.moduleSpecifier,o_);case 268:return En(null==(t=En(e.moduleReference,cw))?void 0:t.expression,o_);case 270:case 277:return En(e.parent.moduleSpecifier,o_);case 271:case 278:return En(e.parent.parent.moduleSpecifier,o_);case 273:return En(e.parent.parent.parent.moduleSpecifier,o_);default:Nt.assertNever(e)}}function gg(e){return yg(e)||Nt.failBadSyntaxKind(e.parent)}function yg(e){switch(e.parent.kind){case 269:case 275:return e.parent;case 280:return e.parent.parent;case 210:return pm(e.parent)||Oh(e.parent,!1)?e.parent:void 0;case 198:return Nt.assert(_C(e)),En(e.parent.parent,Ck);default:return}}function vg(e){switch(e.kind){case 269:case 275:return e.moduleSpecifier;case 268:return 280===e.moduleReference.kind?e.moduleReference.expression:void 0;case 202:return mm(e)?e.argument.literal:void 0;case 210:return e.arguments[0];case 264:return 10===e.name.kind?e.name:void 0;default:return Nt.assertNever(e)}}function bg(e){switch(e.kind){case 269:return e.importClause&&En(e.importClause.namedBindings,XI);case 268:return e;case 275:return e.exportClause&&En(e.exportClause,YI);default:return Nt.assertNever(e)}}function Eg(e){return 269===e.kind&&!!e.importClause&&!!e.importClause.name}function Tg(e,n){if(e.name){const t=n(e);if(t)return t}if(e.namedBindings){const t=XI(e.namedBindings)?n(e.namedBindings):A(e.namedBindings.elements,n);if(t)return t}}function xg(e){if(e)switch(e.kind){case 166:case 171:case 170:case 300:case 299:case 169:case 168:return void 0!==e.questionToken}return!1}function Sg(e){const n=Hw(e)?De(e.parameters):void 0,t=En(n&&n.name,IC);return!!t&&"new"===t.escapedText}function Ag(e){return 349===e.kind||341===e.kind||343===e.kind}function Lg(e){return Ag(e)||FI(e)}function Cg(e){return hI(e)&&Yk(e.expression)&&0!==eg(e.expression)&&Yk(e.expression.right)&&(56===e.expression.right.operatorToken.kind||60===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function kg(e){switch(e.kind){case 240:const n=Ig(e);return n&&n.initializer;case 169:case 299:return e.initializer}}function Ig(e){return fI(e)?De(e.declarationList.declarations):void 0}function wg(e){return BI(e)&&e.body&&264===e.body.kind?e.body:void 0}function Rg(e){if(e.kind>=240&&e.kind<=256)return!0;switch(e.kind){case 79:case 108:case 106:case 163:case 233:case 209:case 208:case 205:case 215:case 216:case 171:case 174:case 175:return!0;default:return!1}}function Ng(e){switch(e.kind){case 216:case 223:case 238:case 249:case 176:case 292:case 260:case 228:case 172:case 173:case 182:case 177:case 248:case 256:case 243:case 209:case 239:case 1:case 263:case 302:case 274:case 275:case 278:case 241:case 246:case 247:case 245:case 259:case 215:case 181:case 174:case 79:case 242:case 269:case 268:case 178:case 261:case 320:case 326:case 253:case 171:case 170:case 264:case 199:case 267:case 207:case 166:case 214:case 208:case 299:case 169:case 168:case 250:case 175:case 300:case 301:case 252:case 254:case 255:case 262:case 165:case 257:case 240:case 244:case 251:return!0;default:return!1}}function Dg(e,n){let t;Im(e)&&n_(e)&&Zu(e.initializer)&&(t=Ae(t,Og(e,Ge(e.initializer.jsDoc))));let r=e;for(;r&&r.parent;){if(Zu(r)&&(t=Ae(t,Og(e,Ge(r.jsDoc)))),166===r.kind){t=Ae(t,(n?nl:el)(r));break}if(165===r.kind){t=Ae(t,(n?il:rl)(r));break}r=Pg(r)}return t||i}function Og(e,n){if(zw(n)){const t=j(n.tags,(n=>Mg(e,n)));return n.tags===t?[n]:t}return Mg(e,n)?[n]:void 0}function Mg(e,n){return!(uR(n)||gR(n))||!n.parent||!zw(n.parent)||!Vk(n.parent.parent)||n.parent.parent===e}function Pg(e){const n=e.parent;return 299===n.kind||274===n.kind||169===n.kind||241===n.kind&&208===e.kind||250===n.kind||wg(n)||Yk(e)&&63===e.operatorToken.kind?n:n.parent&&(Ig(n.parent)===e||Yk(n)&&63===n.operatorToken.kind)?n.parent:n.parent&&n.parent.parent&&(Ig(n.parent.parent)||kg(n.parent.parent)===e||Cg(n.parent.parent))?n.parent.parent:void 0}function Fg(e){if(e.symbol)return e.symbol;if(!IC(e.name))return;const n=e.name.escapedText,t=Bg(e);if(!t)return;const r=D(t.parameters,(e=>79===e.name.kind&&e.name.escapedText===n));return r&&r.symbol}function Gg(e){if(zw(e.parent)&&e.parent.tags){const n=D(e.parent.tags,Ag);if(n)return n}return Bg(e)}function Bg(e){const n=Ug(e);if(n)return XC(n)&&n.type&&Id(n.type)?n.type:Id(n)?n:void 0}function Ug(e){const n=Vg(e);if(n)return Cg(n)||function(e){return hI(e)&&Yk(e.expression)&&63===e.expression.operatorToken.kind?Yh(e.expression):void 0}(n)||kg(n)||Ig(n)||wg(n)||n}function Vg(e){const n=jg(e);if(!n)return;const t=n.parent;return t&&t.jsDoc&&n===Fe(t.jsDoc)?t:void 0}function jg(e){return Mc(e.parent,zw)}function Hg(e){const n=e.name.escapedText,{typeParameters:t}=e.parent.parent.parent;return t&&D(t,(e=>e.name.escapedText===n))}function Kg(e){return!!e.typeArguments}function Wg(e){let n=e.parent;for(;;){switch(n.kind){case 223:const t=n.operatorToken.kind;return Ub(t)&&n.left===e?63===t||Pb(t)?1:2:0;case 221:case 222:const r=n.operator;return 45===r||46===r?2:0;case 246:case 247:return n.initializer===e?1:0;case 214:case 206:case 227:case 232:e=n;break;case 301:e=n.parent;break;case 300:if(n.name!==e)return 0;e=n.parent;break;case 299:if(n.name===e)return 0;e=n.parent;break;default:return 0}n=e.parent}}function zg(e){return 0!==Wg(e)}function qg(e){switch(e.kind){case 238:case 240:case 251:case 242:case 252:case 266:case 292:case 293:case 253:case 245:case 246:case 247:case 243:case 244:case 255:case 295:return!0}return!1}function Jg(e){return jk(e)||Hk(e)||Ud(e)||OI(e)||ek(e)}function Xg(e,n){for(;e&&e.kind===n;)e=e.parent;return e}function Yg(e){return Xg(e,193)}function $g(e){return Xg(e,214)}function Qg(e){let n;for(;e&&193===e.kind;)n=e,e=e.parent;return[n,e]}function Zg(e){for(;Ek(e);)e=e.type;return e}function ey(e,n){return qR(e,n?17:1)}function ny(e){return(208===e.kind||209===e.kind)&&((e=$g(e.parent))&&217===e.kind)}function ty(e,n){for(;e;){if(e===n)return!0;e=e.parent}return!1}function ry(e){return!Iw(e)&&!Jd(e)&&Pu(e.parent)&&e.parent.name===e}function iy(e){const n=e.parent;switch(e.kind){case 10:case 14:case 8:if(WC(n))return n.parent;case 79:if(Pu(n))return n.name===e?n:void 0;if(KC(n)){const e=n.parent;return cR(e)&&e.name===n?e:void 0}{const t=n.parent;return Yk(t)&&0!==eg(t)&&(t.left.symbol||t.symbol)&&Xc(t)===e?t:void 0}case 80:return Pu(n)&&n.name===e?n:void 0;default:return}}function ay(e){return wy(e)&&164===e.parent.kind&&Pu(e.parent.parent)}function oy(e){const n=e.parent;switch(n.kind){case 169:case 168:case 171:case 170:case 174:case 175:case 302:case 299:case 208:return n.name===e;case 163:return n.right===e;case 205:case 273:return n.propertyName===e;case 278:case 288:case 282:case 283:case 284:return!0}return!1}function sy(e){return!!(268===e.kind||267===e.kind||270===e.kind&&e.name||271===e.kind||277===e.kind||273===e.kind||278===e.kind||274===e.kind&&dy(e))||Ih(e)&&(Yk(e)&&2===eg(e)&&dy(e)||Mk(e)&&Yk(e.parent)&&e.parent.left===e&&63===e.parent.operatorToken.kind&&ly(e.parent.right))}function cy(e){switch(e.parent.kind){case 270:case 273:case 271:case 278:case 274:case 268:case 277:return e.parent;case 163:do{e=e.parent}while(163===e.parent.kind);return cy(e)}}function ly(e){return qb(e)||nI(e)}function dy(e){return ly(uy(e))}function uy(e){return ZI(e)?e.expression:e.right}function _y(e){return 300===e.kind?e.name:299===e.kind?e.initializer:e.parent.right}function py(e){const n=fy(e);if(n&&Ih(e)){const n=ol(e);if(n)return n.class}return n}function fy(e){const n=yy(e.heritageClauses,94);return n&&n.types.length>0?n.types[0]:void 0}function my(e){if(Ih(e))return sl(e).map((e=>e.class));{const n=yy(e.heritageClauses,117);return null==n?void 0:n.types}}function hy(e){return PI(e)?gy(e)||i:Fd(e)&&de(Et(py(e)),my(e))||i}function gy(e){const n=yy(e.heritageClauses,94);return n?n.types:void 0}function yy(e,n){if(e)for(const t of e)if(t.token===n)return t}function vy(e,n){for(;e;){if(e.kind===n)return e;e=e.parent}}function by(e){return 81<=e&&e<=162}function Ey(e){return 126<=e&&e<=162}function Ty(e){return by(e)&&!Ey(e)}function xy(e){return 117<=e&&e<=125}function Sy(e){const n=hs(e);return void 0!==n&&Ty(n)}function Ay(e){const n=hs(e);return void 0!==n&&by(n)}function Ly(e){const n=Vc(e);return!!n&&!Ey(n)}function Cy(e){return 2<=e&&e<=7}function ky(e){if(!e)return 4;let n=0;switch(e.kind){case 259:case 215:case 171:e.asteriskToken&&(n|=1);case 216:fb(e,512)&&(n|=2)}return e.body||(n|=4),n}function Iy(e){switch(e.kind){case 259:case 215:case 216:case 171:return void 0!==e.body&&void 0===e.asteriskToken&&fb(e,512)}return!1}function wy(e){return o_(e)||dC(e)}function Ry(e){return Jk(e)&&(39===e.operator||40===e.operator)&&dC(e.operand)}function Ny(e){const n=Xc(e);return!!n&&Dy(n)}function Dy(e){if(164!==e.kind&&209!==e.kind)return!1;const n=Pk(e)?ey(e.argumentExpression):e.expression;return!wy(n)&&!Ry(n)}function Oy(e){switch(e.kind){case 79:case 80:return e.escapedText;case 10:case 8:return Gc(e.text);case 164:const n=e.expression;return wy(n)?Gc(n.text):Ry(n)?40===n.operator?ms(n.operator)+n.operand.text:n.operand.text:void 0;default:return Nt.assertNever(e)}}function My(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function Py(e){return Fl(e)?Uc(e):e.text}function Fy(e){return Fl(e)?e.escapedText:Gc(e.text)}function Gy(e){return`__@${eB(e)}@${e.escapedName}`}function By(e,n){return`__#${eB(e)}@${n}`}function Uy(e){return pt(e.escapedName,"__@")}function Vy(e){return pt(e.escapedName,"__#")}function jy(e){return 79===e.kind&&"Symbol"===e.escapedText}function Hy(e){return IC(e)?"__proto__"===Uc(e):_C(e)&&"__proto__"===e.text}function Ky(e,n){switch((e=qR(e)).kind){case 228:case 215:if(e.name)return!1;break;case 216:break;default:return!1}return"function"!==typeof n||n(e)}function Wy(e){switch(e.kind){case 299:return!Hy(e.name);case 300:return!!e.objectAssignmentInitializer;case 257:return IC(e.name)&&!!e.initializer;case 166:case 205:return IC(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 169:return!!e.initializer;case 223:switch(e.operatorToken.kind){case 63:case 76:case 75:case 77:return IC(e.left)}break;case 274:return!0}return!1}function zy(e,n){if(!Wy(e))return!1;switch(e.kind){case 299:case 257:case 166:case 205:case 169:return Ky(e.initializer,n);case 300:return Ky(e.objectAssignmentInitializer,n);case 223:return Ky(e.right,n);case 274:return Ky(e.expression,n)}}function qy(e){return"push"===e.escapedText||"unshift"===e.escapedText}function Jy(e){return 166===Xy(e).kind}function Xy(e){for(;205===e.kind;)e=e.parent.parent;return e}function Yy(e){const n=e.kind;return 173===n||215===n||259===n||216===n||171===n||174===n||175===n||264===n||308===n}function $y(e){return Zx(e.pos)||Zx(e.end)}function Qy(e){return Fc(e,Iw)||e}function Zy(e){const n=tv(e),t=211===e.kind&&void 0!==e.arguments;return ev(e.kind,n,t)}function ev(e,n,t){switch(e){case 211:return t?0:1;case 221:case 218:case 219:case 217:case 220:case 224:case 226:return 1;case 223:switch(n){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}function nv(e){const n=tv(e),t=211===e.kind&&void 0!==e.arguments;return rv(e.kind,n,t)}function tv(e){return 223===e.kind?e.operatorToken.kind:221===e.kind||222===e.kind?e.operator:e.kind}function rv(e,n,t){switch(e){case 357:return 0;case 227:return 1;case 226:return 2;case 224:return 4;case 223:switch(n){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return iv(n)}case 213:case 232:case 221:case 218:case 219:case 217:case 220:return 16;case 222:return 17;case 210:return 18;case 211:return t?19:18;case 212:case 208:case 209:case 233:return 19;case 231:case 235:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 206:case 207:case 215:case 216:case 228:case 13:case 14:case 225:case 214:case 229:case 281:case 282:case 285:return 20;default:return-1}}function iv(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}function av(e){return j(e,(e=>{switch(e.kind){case 291:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))}function ov(){let e=[];const n=[],t=new Map;let r=!1;return{add:function(i){let a;i.file?(a=t.get(i.file.fileName),a||(a=[],t.set(i.file.fileName,a),me(n,i.file.fileName,Wn))):(r&&(r=!1,e=e.slice()),a=e);me(a,i,PT)},lookup:function(n){let r;r=n.file?t.get(n.file.fileName):e;if(!r)return;const i=He(r,n,Cn,PT);if(i>=0)return r[i];return},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return t.get(r)||[];const i=Y(n,(e=>t.get(e)));if(!e.length)return i;return i.unshift(...e),i}}}function sv(e){return e&&!!(mC(e)?e.templateFlags:e.head.templateFlags||ce(e.templateSpans,(e=>!!e.literal.templateFlags)))}function cv(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function lv(e,n,t){if(0===e.charCodeAt(0)){const r=t.charCodeAt(n+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return k_.get(e)||cv(e.charCodeAt(0))}function dv(e,n){const t=96===n?C_:39===n?L_:A_;return e.replace(t,lv)}function uv(e,n){return e=dv(e,n),I_.test(e)?e.replace(I_,(e=>cv(e.charCodeAt(0)))):e}function _v(e){return 0===e.charCodeAt(0)?"�":N_.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function pv(e,n){const t=39===n?R_:w_;return e.replace(t,_v)}function fv(e){const n=e.length;return n>=2&&e.charCodeAt(0)===e.charCodeAt(n-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,n-1):e;var t}function mv(e){const n=e.charCodeAt(0);return n>=97&&n<=122||rt(e,"-")||rt(e,":")}function hv(e){const n=D_[1];for(let t=D_.length;t<=e;t++)D_.push(D_[t-1]+n);return D_[e]}function gv(){return D_[1].length}function yv(){return rt(t,"-dev")||rt(t,"-insiders")}function vv(e){var n,t,r,i,a,o=!1;function s(e){const t=gs(e);t.length>1?(i=i+t.length-1,a=n.length-e.length+Ge(t),r=a-n.length===0):r=!1}function c(e){e&&e.length&&(r&&(e=hv(t)+e,r=!1),n+=e,s(e))}function l(e){e&&(o=!1),c(e)}function d(){n="",t=0,r=!0,i=0,a=0,o=!1}return d(),{write:l,rawWrite:function(e){void 0!==e&&(n+=e,s(e),o=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(t){r&&!t||(i++,a=(n+=e).length,r=!0,o=!1)},increaseIndent:()=>{t++},decreaseIndent:()=>{t--},getIndent:()=>t,getTextPos:()=>n.length,getLine:()=>i,getColumn:()=>r?t*gv():n.length-a,getText:()=>n,isAtStartOfLine:()=>r,hasTrailingComment:()=>o,hasTrailingWhitespace:()=>!!n.length&&As(n.charCodeAt(n.length-1)),clear:d,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:(e,n)=>l(e),writeTrailingSemicolon:l,writeComment:function(e){e&&(o=!0),c(e)},getTextPosWithWriteLine:function(){return r?n.length:n.length+e.length}}}function bv(e){let n=!1;function t(){n&&(e.writeTrailingSemicolon(";"),n=!1)}return{...e,writeTrailingSemicolon(){n=!0},writeLiteral(n){t(),e.writeLiteral(n)},writeStringLiteral(n){t(),e.writeStringLiteral(n)},writeSymbol(n,r){t(),e.writeSymbol(n,r)},writePunctuation(n){t(),e.writePunctuation(n)},writeKeyword(n){t(),e.writeKeyword(n)},writeOperator(n){t(),e.writeOperator(n)},writeParameter(n){t(),e.writeParameter(n)},writeSpace(n){t(),e.writeSpace(n)},writeProperty(n){t(),e.writeProperty(n)},writeComment(n){t(),e.writeComment(n)},writeLine(){t(),e.writeLine()},increaseIndent(){t(),e.increaseIndent()},decreaseIndent(){t(),e.decreaseIndent()}}}function Ev(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Tv(e){return lt(Ev(e))}function xv(e,n,t){return n.moduleName||Lv(e,n.fileName,t&&t.fileName)}function Sv(e,n){return e.getCanonicalFileName(So(n,e.getCurrentDirectory()))}function Av(e,n,t){const r=n.getExternalModuleFileFromDeclaration(t);if(!r||r.isDeclarationFile)return;const i=vg(t);return i&&o_(i)&&!ro(i.text)&&-1===Sv(e,r.path).indexOf(Sv(e,Io(e.getCommonSourceDirectory())))?void 0:xv(e,r)}function Lv(e,n,t){const r=n=>e.getCanonicalFileName(n),i=Co(t?po(t):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),a=qx(jo(i,So(n,e.getCurrentDirectory()),i,r,!1));return t?wo(a):a}function Cv(e,n,t){const r=n.getCompilerOptions();let i;return i=r.outDir?qx(Pv(e,n,r.outDir)):qx(e),i+t}function kv(e,n){return Iv(e,n.getCompilerOptions(),n.getCurrentDirectory(),n.getCommonSourceDirectory(),(e=>n.getCanonicalFileName(e)))}function Iv(e,n,t,r,i){const a=n.declarationDir||n.outDir,o=a?Fv(e,a,t,r,i):e,s=wv(o);return qx(o)+s}function wv(e){return so(e,[".mjs",".mts"])?".d.mts":so(e,[".cjs",".cts"])?".d.cts":so(e,[".json"])?".d.json.ts":".d.ts"}function Rv(e){return so(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:so(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:so(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Nv(e){return e.outFile||e.out}function Dv(e,n){var t,r;if(e.paths)return null!=(r=e.baseUrl)?r:Nt.checkDefined(e.pathsBasePath||(null==(t=n.getCurrentDirectory)?void 0:t.call(n)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Ov(e,n,t){const r=e.getCompilerOptions();if(Nv(r)){const n=KT(r),i=r.emitDeclarationOnly||2===n||4===n;return j(e.getSourceFiles(),(n=>(i||!OD(n))&&Mv(n,e,t)))}return j(void 0===n?e.getSourceFiles():[n],(n=>Mv(n,e,t)))}function Mv(e,n,t){return!(n.getCompilerOptions().noEmitForJsFiles&&Ch(e))&&!e.isDeclarationFile&&!n.isSourceFileFromExternalLibrary(e)&&(t||!(sm(e)&&n.getResolvedProjectReferenceToRedirect(e.fileName))&&!n.isSourceOfProjectReferenceRedirect(e.fileName))}function Pv(e,n,t){return Fv(e,t,n.getCurrentDirectory(),n.getCommonSourceDirectory(),(e=>n.getCanonicalFileName(e)))}function Fv(e,n,t,r,i){let a=So(e,t);return a=0===i(a).indexOf(i(r))?a.substring(r.length):a,Eo(n,a)}function Gv(e,n,t,r,i,a,o){e.writeFile(t,r,i,(e=>{n.add(wT(Wo.Could_not_write_file_0_Colon_1,t,e))}),a,o)}function Bv(e,n,t){if(e.length>_o(e)&&!t(e)){Bv(po(e),n,t),n(e)}}function Uv(e,n,t,r,i,a){try{r(e,n,t)}catch(Sa){Bv(po(Ao(e)),i,a),r(e,n,t)}}function Vv(e,n){return Ts(bs(e),n)}function jv(e,n){return Ts(e,n)}function Hv(e){return D(e.members,(e=>ek(e)&&jp(e.body)))}function Kv(e){if(e&&e.parameters.length>0){const n=2===e.parameters.length&&qv(e.parameters[0]);return e.parameters[n?1:0]}}function Wv(e){const n=Kv(e);return n&&n.type}function zv(e){if(e.parameters.length&&!Jw(e)){const n=e.parameters[0];if(qv(n))return n}}function qv(e){return Jv(e.name)}function Jv(e){return!!e&&79===e.kind&&Yv(e)}function Xv(e){if(!Jv(e))return!1;for(;KC(e.parent)&&e.parent.left===e;)e=e.parent;return 183===e.parent.kind}function Yv(e){return"this"===e.escapedText}function $v(e,n){let t,r,i,a;return Ny(n)?(t=n,174===n.kind?i=n:175===n.kind?a=n:Nt.fail("Accessor has wrong kind")):A(e,(e=>{if(Gd(e)&&mb(e)===mb(n)){Oy(e.name)===Oy(n.name)&&(t?r||(r=e):t=e,174!==e.kind||i||(i=e),175!==e.kind||a||(a=e))}})),{firstAccessor:t,secondAccessor:r,getAccessor:i,setAccessor:a}}function Qv(e){if(!Ih(e)&&OI(e))return;const n=e.type;return n||!Ih(e)?n:ed(e)?e.typeExpression&&e.typeExpression.type:Ll(e)}function Zv(e){return e.type}function eb(e){return Jw(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Ih(e)?Cl(e):void 0)}function nb(e){return X(Il(e),(e=>function(e){return _R(e)&&!(323===e.parent.kind&&(e.parent.tags.some(Ag)||e.parent.tags.some(iR)))}(e)?e.typeParameters:void 0))}function tb(e){const n=Kv(e);return n&&Qv(n)}function rb(e,n,t,r){ib(e,n,t.pos,r)}function ib(e,n,t,r){r&&r.length&&t!==r[0].pos&&jv(e,t)!==jv(e,r[0].pos)&&n.writeLine()}function ab(e,n,t,r){t!==r&&jv(e,t)!==jv(e,r)&&n.writeLine()}function ob(e,n,t,r,i,a,o,s){if(r&&r.length>0){i&&t.writeSpace(" ");let c=!1;for(const i of r)c&&(t.writeSpace(" "),c=!1),s(e,n,t,i.pos,i.end,o),i.hasTrailingNewLine?t.writeLine():c=!0;c&&a&&t.writeSpace(" ")}}function sb(e,n,t,r,i,a,o){let s,c;if(o?0===i.pos&&(s=j(Hs(e,i.pos),(function(n){return Zp(e,n.pos)}))):s=Hs(e,i.pos),s){const o=[];let l;for(const e of s){if(l){const t=jv(n,l.end);if(jv(n,e.pos)>=t+2)break}o.push(e),l=e}if(o.length){const l=jv(n,Ge(o).end);jv(n,Ns(e,i.pos))>=l+2&&(rb(n,t,i,s),ob(e,n,t,o,!1,!0,a,r),c={nodePos:i.pos,detachedCommentEndPos:Ge(o).end})}}return c}function cb(e,n,t,r,i,a){if(42===e.charCodeAt(r+1)){const o=Es(n,r),s=n.length;let c;for(let l=r,d=o.line;l<i;d++){const u=d+1===s?e.length+1:n[d+1];if(l!==r){void 0===c&&(c=db(e,n[o.line],r));const i=t.getIndent()*gv()-c+db(e,l,u);if(i>0){let e=i%gv();const n=hv((i-e)/gv());for(t.rawWrite(n);e;)t.rawWrite(" "),e--}else t.rawWrite("")}lb(e,i,t,a,l,u),l=u}}else t.writeComment(e.substring(r,i))}function lb(e,n,t,r,i,a){const o=Math.min(n,a-1),s=h(e.substring(i,o));s?(t.writeComment(s),o!==n&&t.writeLine()):t.rawWrite(r)}function db(e,n,t){let r=0;for(;n<t&&Ls(e.charCodeAt(n));n++)9===e.charCodeAt(n)?r+=gv()-r%gv():r++;return r}function ub(e){return 0!==Lb(e)}function _b(e){return 0!==kb(e)}function pb(e,n){return!!xb(e,n)}function fb(e,n){return!!Sb(e,n)}function mb(e){return Pd(e)&&hb(e)||ZC(e)}function hb(e){return fb(e,32)}function gb(e){return pb(e,16384)}function yb(e){return fb(e,256)}function vb(e){return fb(e,2)}function bb(e){return fb(e,128)}function Eb(e){return pb(e,64)}function Tb(e){return fb(e,131072)}function xb(e,n){return Lb(e)&n}function Sb(e,n){return kb(e)&n}function Ab(e,n,t){return e.kind>=0&&e.kind<=162?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Rb(e)),!n||4096&e.modifierFlagsCache||!t&&!Ih(e)||!e.parent||(e.modifierFlagsCache|=4096|Ib(e)),-536875009&e.modifierFlagsCache)}function Lb(e){return Ab(e,!0)}function Cb(e){return Ab(e,!0,!0)}function kb(e){return Ab(e,!1)}function Ib(e){let n=0;return e.parent&&!qC(e)&&(Ih(e)&&(dl(e)&&(n|=4),_l(e)&&(n|=8),fl(e)&&(n|=16),hl(e)&&(n|=64),gl(e)&&(n|=16384)),vl(e)&&(n|=8192)),n}function wb(e){return Rb(e)|Ib(e)}function Rb(e){let n=jN(e)?Nb(e.modifiers):0;return(4&e.flags||79===e.kind&&2048&e.flags)&&(n|=1),n}function Nb(e){let n=0;if(e)for(const t of e)n|=Db(t.kind);return n}function Db(e){switch(e){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 256;case 127:return 128;case 93:return 1;case 136:return 2;case 85:return 2048;case 88:return 1024;case 132:return 512;case 146:return 64;case 161:return 16384;case 101:return 32768;case 145:return 65536;case 167:return 131072}return 0}function Ob(e){return 56===e||55===e}function Mb(e){return Ob(e)||53===e}function Pb(e){return 75===e||76===e||77===e}function Fb(e){return Yk(e)&&Pb(e.operatorToken.kind)}function Gb(e){return Ob(e)||60===e}function Bb(e){return Yk(e)&&Gb(e.operatorToken.kind)}function Ub(e){return e>=63&&e<=78}function Vb(e){const n=jb(e);return n&&!n.isImplements?n.class:void 0}function jb(e){if(rI(e)){if(Tw(e.parent)&&Fd(e.parent.parent))return{class:e.parent.parent,isImplements:117===e.parent.token};if(Xw(e.parent)){const n=Ug(e.parent);if(n&&Fd(n))return{class:n,isImplements:!1}}}}function Hb(e,n){return Yk(e)&&(n?63===e.operatorToken.kind:Ub(e.operatorToken.kind))&&lu(e.left)}function Kb(e){return Hb(e.parent)&&e.parent.left===e}function Wb(e){if(Hb(e,!0)){const n=e.left.kind;return 207===n||206===n}return!1}function zb(e){return void 0!==Vb(e)}function qb(e){return 79===e.kind||Yb(e)}function Jb(e){switch(e.kind){case 79:return e;case 163:do{e=e.left}while(79!==e.kind);return e;case 208:do{e=e.expression}while(79!==e.kind);return e}}function Xb(e){return 79===e.kind||108===e.kind||106===e.kind||233===e.kind||208===e.kind&&Xb(e.expression)||214===e.kind&&Xb(e.expression)}function Yb(e){return Mk(e)&&IC(e.name)&&qb(e.expression)}function $b(e){if(Mk(e)){const n=$b(e.expression);if(void 0!==n)return n+"."+zf(e.name)}else if(Pk(e)){const n=$b(e.expression);if(void 0!==n&&Cd(e.argumentExpression))return n+"."+Oy(e.argumentExpression)}else if(IC(e))return Bc(e.escapedText)}function Qb(e){return ig(e)&&"prototype"===lg(e)}function Zb(e){return 163===e.parent.kind&&e.parent.right===e||208===e.parent.kind&&e.parent.name===e}function eE(e){return Mk(e.parent)&&e.parent.name===e||Pk(e.parent)&&e.parent.argumentExpression===e}function nE(e){return KC(e.parent)&&e.parent.right===e||Mk(e.parent)&&e.parent.name===e||Ow(e.parent)&&e.parent.right===e}function tE(e){return 207===e.kind&&0===e.properties.length}function rE(e){return 206===e.kind&&0===e.elements.length}function iE(e){if(function(e){return e&&S(e.declarations)>0&&fb(e.declarations[0],1024)}(e)&&e.declarations)for(const n of e.declarations)if(n.localSymbol)return n.localSymbol}function aE(e){return D($_,(n=>oo(e,n)))}function oE(e){let n="";const t=function(e){const n=[],t=e.length;for(let r=0;r<t;r++){const t=e.charCodeAt(r);t<128?n.push(t):t<2048?(n.push(t>>6|192),n.push(63&t|128)):t<65536?(n.push(t>>12|224),n.push(t>>6&63|128),n.push(63&t|128)):t<131072?(n.push(t>>18|240),n.push(t>>12&63|128),n.push(t>>6&63|128),n.push(63&t|128)):Nt.assert(!1,"Unexpected code point")}return n}(e);let r=0;const i=t.length;let a,o,s,c;for(;r<i;)a=t[r]>>2,o=(3&t[r])<<4|t[r+1]>>4,s=(15&t[r+1])<<2|t[r+2]>>6,c=63&t[r+2],r+1>=i?s=c=64:r+2>=i&&(c=64),n+=O_.charAt(a)+O_.charAt(o)+O_.charAt(s)+O_.charAt(c),r+=3;return n}function sE(e,n){return e&&e.base64encode?e.base64encode(n):oE(n)}function cE(e,n){if(e&&e.base64decode)return e.base64decode(n);const t=n.length,r=[];let i=0;for(;i<t&&n.charCodeAt(i)!==O_.charCodeAt(64);){const e=O_.indexOf(n[i]),t=O_.indexOf(n[i+1]),a=O_.indexOf(n[i+2]),o=O_.indexOf(n[i+3]),s=(63&e)<<2|t>>4&3,c=(15&t)<<4|a>>2&15,l=(3&a)<<6|63&o;0===c&&0!==a?r.push(s):0===l&&0!==o?r.push(s,c):r.push(s,c,l),i+=4}return function(e){let n="",t=0;const r=e.length;for(;t<r;){const r=e[t];if(r<128)n+=String.fromCharCode(r),t++;else if(192===(192&r)){let i=63&r;t++;let a=e[t];for(;128===(192&a);)i=i<<6|63&a,t++,a=e[t];n+=String.fromCharCode(i)}else n+=String.fromCharCode(r),t++}return n}(r)}function lE(e,n){const t=vn(n)?n:n.readFile(e);if(!t)return;const r=YO(e,t);return r.error?void 0:r.config}function dE(e,n){return lE(e,n)||{}}function uE(e,n){return!n.directoryExists||n.directoryExists(e)}function _E(e){switch(e.newLine){case 0:return M_;case 1:case void 0:return P_}}function pE(e,n=e){return Nt.assert(n>=e||-1===n),{pos:e,end:n}}function fE(e,n){return pE(e.pos,n)}function mE(e,n){return pE(n,e.end)}function hE(e){const n=jN(e)?O(e.modifiers,JC):void 0;return n&&!Zx(n.end)?mE(e,n.end):e}function gE(e){if(YC(e)||QC(e))return mE(e,e.name.pos);const n=jN(e)?Fe(e.modifiers):void 0;return n&&!Zx(n.end)?mE(e,n.end):hE(e)}function yE(e){return e.pos===e.end}function vE(e,n){return pE(e,e+ms(n).length)}function bE(e,n){return xE(e,e,n)}function EE(e,n,t){return kE(IE(e,t,!1),IE(n,t,!1),t)}function TE(e,n,t){return kE(e.end,n.end,t)}function xE(e,n,t){return kE(IE(e,t,!1),n.end,t)}function SE(e,n,t){return kE(e.end,IE(n,t,!1),t)}function AE(e,n,t,r){const i=IE(n,t,r);return xs(t,e.end,i)}function LE(e,n,t){return xs(t,e.end,n.end)}function CE(e,n){return!kE(e.pos,e.end,n)}function kE(e,n,t){return 0===xs(t,e,n)}function IE(e,n,t){return Zx(e.pos)?-1:Ns(n.text,e.pos,!1,t)}function wE(e,n,t,r){const i=Ns(t.text,e,!1,r),a=function(e,n=0,t){for(;e-- >n;)if(!As(t.text.charCodeAt(e)))return e}(i,n,t);return xs(t,null!=a?a:n,i)}function RE(e,n,t,r){const i=Ns(t.text,e,!1,r);return xs(t,e,Math.min(n,i))}function NE(e){const n=Fc(e);if(n)switch(n.parent.kind){case 263:case 264:return n===n.parent.name}return!1}function DE(e){return j(e.declarations,OE)}function OE(e){return NI(e)&&void 0!==e.initializer}function ME(e){return e.watch&&ze(e,"watch")}function PE(e){e.close()}function FE(e){return 33554432&e.flags?e.links.checkFlags:0}function GE(e,n=!1){if(e.valueDeclaration){const t=wc(n&&e.declarations&&D(e.declarations,tk)||32768&e.flags&&D(e.declarations,nk)||e.valueDeclaration);return e.parent&&32&e.parent.flags?t:-29&t}if(6&FE(e)){const n=e.links.checkFlags;return(1024&n?8:256&n?4:16)|(2048&n?32:0)}return 4194304&e.flags?36:0}function BE(e,n){return 2097152&e.flags?n.getAliasedSymbol(e):e}function UE(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function VE(e){return 1===HE(e)}function jE(e){return 0!==HE(e)}function HE(e){const{parent:n}=e;if(!n)return 0;switch(n.kind){case 214:case 206:return HE(n);case 222:case 221:const{operator:r}=n;return 45===r||46===r?t():0;case 223:const{left:i,operatorToken:a}=n;return i===e&&Ub(a.kind)?63===a.kind?1:t():0;case 208:return n.name!==e?0:HE(n);case 299:{const t=HE(n.parent);return e===n.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return Nt.assertNever(e)}}(t):t}case 300:return e===n.objectAssignmentInitializer?0:HE(n.parent);default:return 0}function t(){return n.parent&&241===$g(n.parent).kind?1:2}}function KE(e,n){if(!e||!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const t in e)if("object"===typeof e[t]){if(!KE(e[t],n[t]))return!1}else if("function"!==typeof e[t]&&e[t]!==n[t])return!1;return!0}function WE(e,n){e.forEach(n),e.clear()}function zE(e,n,t){const{onDeleteValue:r,onExistingValue:i}=t;e.forEach(((t,a)=>{const o=n.get(a);void 0===o?(e.delete(a),r(t,a)):i&&i(t,o,a)}))}function qE(e,n,t){zE(e,n,t);const{createNewValue:r}=t;n.forEach(((n,t)=>{e.has(t)||e.set(t,r(t,n))}))}function JE(e){if(32&e.flags){const n=XE(e);return!!n&&fb(n,256)}return!1}function XE(e){var n;return null==(n=e.declarations)?void 0:n.find(Fd)}function YE(e){return 3899393&e.flags?e.objectFlags:0}function $E(e,n){return!!Ho(e,(e=>!!n(e)||void 0))}function QE(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&jI(e.declarations[0])}function ZE({moduleSpecifier:e}){return _C(e)?e.text:sf(e)}function eT(e){let n;return CD(e,(e=>{jp(e)&&(n=e)}),(e=>{for(let t=e.length-1;t>=0;t--)if(jp(e[t])){n=e[t];break}})),n}function nT(e,n,t=!0){return!e.has(n)&&(e.set(n,t),!0)}function tT(e){return Fd(e)||PI(e)||uk(e)}function rT(e){return e>=179&&e<=202||131===e||157===e||148===e||160===e||149===e||134===e||152===e||153===e||114===e||155===e||144===e||139===e||230===e||315===e||316===e||317===e||318===e||319===e||320===e||321===e}function iT(e){return 208===e.kind||209===e.kind}function aT(e){return 208===e.kind?e.name:(Nt.assert(209===e.kind),e.argumentExpression)}function oT(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function sT(e){return 272===e.kind||276===e.kind}function cT(e){for(;iT(e);)e=e.expression;return e}function lT(e,n){if(iT(e.parent)&&eE(e))return function e(t){if(208===t.kind){const e=n(t.name);if(void 0!==e)return e}else if(209===t.kind){if(!IC(t.argumentExpression)&&!o_(t.argumentExpression))return;{const e=n(t.argumentExpression);if(void 0!==e)return e}}if(iT(t.expression))return e(t.expression);if(IC(t.expression))return n(t.expression);return}(e.parent)}function dT(e,n){for(;;){switch(e.kind){case 222:e=e.operand;continue;case 223:e=e.left;continue;case 224:e=e.condition;continue;case 212:e=e.tag;continue;case 210:if(n)return e;case 231:case 209:case 208:case 232:case 356:case 235:e=e.expression;continue}return e}}function uT(e,n){this.flags=e,this.escapedName=n,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function _T(e,n){this.flags=n,(Nt.isDebugging||Vr)&&(this.checker=e)}function pT(e,n){this.flags=n,Nt.isDebugging&&(this.checker=e)}function fT(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function mT(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function hT(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function gT(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t||(e=>e)}function yT(e){G_.push(e),e(F_)}function vT(e){Object.assign(F_,e),A(G_,(e=>e(F_)))}function bT(e,n,t=0){return e.replace(/{(\d+)}/g,((e,r)=>""+Nt.checkDefined(n[+r+t])))}function ET(e){B_=e}function TT(e){!B_&&e&&(B_=e())}function xT(e){return B_&&B_[e.key]||e.message}function ST(e,n,t,r){Qf(void 0,n,t);let i=xT(r);return arguments.length>4&&(i=bT(i,arguments,4)),{file:void 0,start:n,length:t,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,fileName:e}}function AT(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"===typeof e.fileName}function LT(e,n){const t=n.fileName||"",r=n.text.length;Nt.assertEqual(e.fileName,t),Nt.assertLessThanOrEqual(e.start,r),Nt.assertLessThanOrEqual(e.start+e.length,r);const i={file:n,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){i.relatedInformation=[];for(const a of e.relatedInformation)AT(a)&&a.fileName===t?(Nt.assertLessThanOrEqual(a.start,r),Nt.assertLessThanOrEqual(a.start+a.length,r),i.relatedInformation.push(LT(a,n))):i.relatedInformation.push(a)}return i}function CT(e,n){const t=[];for(const r of e)t.push(LT(r,n));return t}function kT(e,n,t,r){Qf(e,n,t);let i=xT(r);return arguments.length>4&&(i=bT(i,arguments,4)),{file:e,start:n,length:t,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function IT(e,n){let t=xT(n);return arguments.length>2&&(t=bT(t,arguments,2)),t}function wT(e){let n=xT(e);return arguments.length>1&&(n=bT(n,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function RT(e,n){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:n}}function NT(e,n){let t=xT(n);return arguments.length>2&&(t=bT(t,arguments,2)),{messageText:t,category:n.category,code:n.code,next:void 0===e||Array.isArray(e)?e:[e]}}function DT(e,n){let t=e;for(;t.next;)t=t.next[0];t.next=[n]}function OT(e){return e.file?e.file.path:void 0}function MT(e,n){return PT(e,n)||function(e,n){if(!e.relatedInformation&&!n.relatedInformation)return 0;if(e.relatedInformation&&n.relatedInformation)return Un(e.relatedInformation.length,n.relatedInformation.length)||A(e.relatedInformation,((e,t)=>MT(e,n.relatedInformation[t])))||0;return e.relatedInformation?-1:1}(e,n)||0}function PT(e,n){return Wn(OT(e),OT(n))||Un(e.start,n.start)||Un(e.length,n.length)||Un(e.code,n.code)||FT(e.messageText,n.messageText)||0}function FT(e,n){if("string"===typeof e&&"string"===typeof n)return Wn(e,n);if("string"===typeof e)return-1;if("string"===typeof n)return 1;let t=Wn(e.messageText,n.messageText);if(t)return t;if(!e.next&&!n.next)return 0;if(!e.next)return-1;if(!n.next)return 1;const r=Math.min(e.next.length,n.next.length);for(let i=0;i<r;i++)if(t=FT(e.next[i],n.next[i]),t)return t;return e.next.length<n.next.length?-1:e.next.length>n.next.length?1:0}function GT(e){return 4===e||2===e||1===e||6===e?1:0}function BT(e){if(2&e.transformFlags)return zu(e)||pw(e)?e:CD(e,BT)}function UT(e){return e.isDeclarationFile?void 0:BT(e)}function VT(e){return!(99!==e.impliedNodeFormat&&!so(e.fileName,[".cjs",".cts",".mjs",".mts"])||e.isDeclarationFile)||void 0}function jT(e){switch(qT(e)){case 3:return e=>{e.externalModuleIndicator=sD(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=sD(e)};case 2:const n=[sD];4!==e.jsx&&5!==e.jsx||n.push(UT),n.push(VT);const t=yt(...n);return e=>{e.externalModuleIndicator=t(e)}}}function HT(e){var n;return null!=(n=e.target)?n:(100===e.module?9:199===e.module&&99)||1}function KT(e){return"number"===typeof e.module?e.module:HT(e)>=2?5:1}function WT(e){return e>=5&&e<=99}function zT(e){let n=e.moduleResolution;if(void 0===n)switch(KT(e)){case 1:n=2;break;case 100:n=3;break;case 199:n=99;break;default:n=1}return n}function qT(e){return e.moduleDetection||(100===KT(e)||199===KT(e)?3:2)}function JT(e){switch(KT(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function XT(e){return!(!e.isolatedModules&&!e.verbatimModuleSyntax)}function YT(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function $T(e){return!1===e.allowUnreachableCode}function QT(e){return!1===e.allowUnusedLabels}function ZT(e){return!(!ox(e)||!e.declarationMap)}function ex(e){if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(KT(e)){case 100:case 199:return!0}}function nx(e){return void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:ex(e)||4===KT(e)||100===zT(e)}function tx(e){return e>=3&&e<=99||100===e}function rx(e){const n=zT(e);if(!tx(n))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(n){case 3:case 99:case 100:return!0}return!1}function ix(e){const n=zT(e);if(!tx(n))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(n){case 3:case 99:case 100:return!0}return!1}function ax(e){return void 0!==e.resolveJsonModule?e.resolveJsonModule:100===zT(e)}function ox(e){return!(!e.declaration&&!e.composite)}function sx(e){return!(!e.preserveConstEnums&&!XT(e))}function cx(e){return!(!e.incremental&&!e.composite)}function lx(e,n){return void 0===e[n]?!!e.strict:!!e[n]}function dx(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function ux(e){return void 0===e.useDefineForClassFields?HT(e)>=9:e.useDefineForClassFields}function _x(e,n){return mp(n,e,rO)}function px(e,n){return mp(n,e,iO)}function fx(e,n){return mp(n,e,aO)}function mx(e,n){return n.strictFlag?lx(e,n.name):e[n.name]}function hx(e){const n=e.jsx;return 2===n||4===n||5===n}function gx(e,n){const t=null==n?void 0:n.pragmas.get("jsximportsource"),r=gn(t)?t[t.length-1]:t;return 4===e.jsx||5===e.jsx||e.jsxImportSource||r?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function yx(e,n){return e?`${e}/${5===n.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function vx(e){let n=!1;for(let t=0;t<e.length;t++)if(42===e.charCodeAt(t)){if(n)return!1;n=!0}return!0}function bx(e,n){let t,r,a,o=!1;return{getSymlinkedFiles:()=>a,getSymlinkedDirectories:()=>t,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,n)=>(a||(a=new Map)).set(e,n),setSymlinkedDirectory:(i,a)=>{let o=Co(i,e,n);DS(o)||(o=Io(o),!1===a||(null==t?void 0:t.has(o))||(r||(r=un())).add(Io(a.realPath),i),(t||(t=new Map)).set(o,a))},setSymlinksFromResolutions(e,n){var t,r;Nt.assert(!o),o=!0;for(const i of e)null==(t=i.resolvedModules)||t.forEach((e=>s(this,e.resolvedModule))),null==(r=i.resolvedTypeReferenceDirectiveNames)||r.forEach((e=>s(this,e.resolvedTypeReferenceDirective)));n.forEach((e=>s(this,e.resolvedTypeReferenceDirective)))},hasProcessedResolutions:()=>o};function s(t,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:a,originalPath:o}=r;t.setSymlinkedFile(Co(o,e,n),a);const[s,c]=function(e,n,t,r){const i=go(So(e,t)),a=go(So(n,t));let o=!1;for(;i.length>=2&&a.length>=2&&!Ex(i[i.length-2],r)&&!Ex(a[a.length-2],r)&&r(i[i.length-1])===r(a[a.length-1]);)i.pop(),a.pop(),o=!0;return o?[yo(i),yo(a)]:void 0}(a,o,e,n)||i;s&&c&&t.setSymlinkedDirectory(c,{real:s,realPath:Co(s,e,n)})}}function Ex(e,n){return void 0!==e&&("node_modules"===n(e)||pt(e,"@"))}function Tx(e,n,t){const r=mt(e,n,t);return void 0===r?void 0:Qa((i=r).charCodeAt(0))?i.slice(1):void 0;var i}function xx(e){return e.replace(U_,Sx)}function Sx(e){return"\\"+e}function Ax(e,n,t){const r=Lx(e,n,t);if(!r||!r.length)return;return`^(${r.map((e=>`(${e})`)).join("|")})${"exclude"===t?"($|/)":"$"}`}function Lx(e,n,t){if(void 0!==e&&0!==e.length)return X(e,(e=>e&&Ix(e,n,t,q_[t])))}function Cx(e){return!/[.*?]/.test(e)}function kx(e,n,t){const r=e&&Ix(e,n,t,q_[t]);return r&&`^(${r})${"exclude"===t?"($|/)":"$"}`}function Ix(e,n,t,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:i,replaceWildcardCharacter:a}){let o="",s=!1;const c=xo(e,n),l=Ge(c);if("exclude"!==t&&"**"===l)return;c[0]=ko(c[0]),Cx(l)&&c.push("**","*");let d=0;for(let u of c){if("**"===u)o+=i;else if("directories"===t&&(o+="(",d++),s&&(o+=za),"exclude"!==t){let e="";42===u.charCodeAt(0)?(e+="([^./]"+r+")?",u=u.substr(1)):63===u.charCodeAt(0)&&(e+="[^./]",u=u.substr(1)),e+=u.replace(U_,a),e!==u&&(o+=H_),o+=e}else o+=u.replace(U_,a);s=!0}for(;d>0;)o+=")?",d--;return o}function wx(e,n){return"*"===e?n:"?"===e?"[^/]":"\\"+e}function Rx(e,n,t,r,i){e=Ao(e);const a=Eo(i=Ao(i),e);return{includeFilePatterns:W(Lx(t,a,"files"),(e=>`^${e}$`)),includeFilePattern:Ax(t,a,"files"),includeDirectoryPattern:Ax(t,a,"directories"),excludePattern:Ax(n,a,"exclude"),basePaths:Ox(e,t,r)}}function Nx(e,n){return new RegExp(e,n?"":"i")}function Dx(e,n,t,r,i,a,o,s,c){e=Ao(e),a=Ao(a);const l=Rx(e,t,r,i,a),d=l.includeFilePatterns&&l.includeFilePatterns.map((e=>Nx(e,i))),u=l.includeDirectoryPattern&&Nx(l.includeDirectoryPattern,i),_=l.excludePattern&&Nx(l.excludePattern,i),p=d?d.map((()=>[])):[[]],f=new Map,m=lt(i);for(const g of l.basePaths)h(g,Eo(a,g),o);return J(p);function h(e,t,r){const i=m(c(t));if(f.has(i))return;f.set(i,!0);const{files:a,directories:o}=s(e);for(const s of Ie(a,Wn)){const r=Eo(e,s),i=Eo(t,s);if((!n||so(r,n))&&(!_||!_.test(i)))if(d){const e=M(d,(e=>e.test(i)));-1!==e&&p[e].push(r)}else p[0].push(r)}if(void 0===r||0!==--r)for(const n of Ie(o,Wn)){const i=Eo(e,n),a=Eo(t,n);u&&!u.test(a)||_&&_.test(a)||h(i,a,r)}}}function Ox(e,n,t){const r=[e];if(n){const i=[];for(const t of n){const n=eo(t)?t:Ao(Eo(e,t));i.push(Mx(n))}i.sort(zn(!t));for(const n of i)N(r,(r=>!Po(r,n,e,!t)))&&r.push(n)}return r}function Mx(e){const n=U(e,V_);return n<0?ao(e)?ko(po(e)):e:e.substring(0,e.lastIndexOf(za,n))}function Px(e,n){return n||Fx(e)||3}function Fx(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function Gx(e,n){const t=e&&dx(e);if(!n||0===n.length)return t?ep:J_;const r=t?ep:J_,i=J(r);return[...r,...ee(n,(e=>{return 7===e.scriptKind||t&&(1===(n=e.scriptKind)||2===n)&&-1===i.indexOf(e.extension)?[e.extension]:void 0;var n}))]}function Bx(e,n){return e&&ax(e)?n===ep?np:n===J_?Y_:[...n,[".json"]]:n}function Ux(e){return ce(Z_,(n=>oo(e,n)))}function Vx(e){return ce(X_,(n=>oo(e,n)))}function jx({imports:e},n=yt(Ux,Vx)){return C(e,(({text:e})=>ro(e)?n(e):void 0))||!1}function Hx(e,n,t,r){return"js"===e||99===n?VF(t)&&2!==a()?3:2:"minimal"===e?0:"index"===e?1:VF(t)?a():jx(r)?2:0;function a(){let e=!1;const n=r.imports.length?r.imports.map((e=>e.text)):Ch(r)?function(e){let n,t=0;for(const r of e.statements){if(t>3)break;Bh(r)?n=de(n,r.declarationList.declarations.map((e=>e.initializer))):hI(r)&&Oh(r.expression,!0)?n=Te(n,r.expression):t++}return n||i}(r).map((e=>e.arguments[0].text)):i;for(const t of n)if(ro(t)){if(Vx(t))return 3;Ux(t)&&(e=!0)}return e?2:0}}function Kx(e,n,t){if(!e)return!1;const r=Gx(n,t);for(const i of J(Bx(n,r)))if(oo(e,i))return!0;return!1}function Wx(e){const n=e.match(/\//g);return n?n.length:0}function zx(e,n){return Un(Wx(e),Wx(n))}function qx(e){for(const n of ap){const t=Jx(e,n);if(void 0!==t)return t}return e}function Jx(e,n){return oo(e,n)?Xx(e,n):void 0}function Xx(e,n){return e.substring(0,e.length-n.length)}function Yx(e,n){return Ro(e,n,ap,!1)}function $x(e){const n=e.indexOf("*");return-1===n?e:-1!==e.indexOf("*",n+1)?void 0:{prefix:e.substr(0,n),suffix:e.substr(n+1)}}function Qx(e){return ee(Je(e),(e=>$x(e)))}function Zx(e){return!(e>=0)}function eS(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||pt(e,".d.")&&et(e,".ts")}function nS(e){return eS(e)||".json"===e}function tS(e){const n=iS(e);return void 0!==n?n:Nt.fail(`File ${e} has unknown extension.`)}function rS(e){return void 0!==iS(e)}function iS(e){return D(ap,(n=>oo(e,n)))}function aS(e,n){return e.checkJsDirective?e.checkJsDirective.enabled:n.checkJs}function oS(e,n){const t=[];for(const r of e){if(r===n)return n;vn(r)||t.push(r)}return _t(t,(e=>e),n)}function sS(e,n){const t=e.indexOf(n);return Nt.assert(-1!==t),e.slice(t)}function cS(e,...n){return n.length?(e.relatedInformation||(e.relatedInformation=[]),Nt.assert(e.relatedInformation!==i,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...n),e):e}function lS(e,n){Nt.assert(0!==e.length);let t=n(e[0]),r=t;for(let i=1;i<e.length;i++){const a=n(e[i]);a<t?t=a:a>r&&(r=a)}return{min:t,max:r}}function dS(e){return{pos:nf(e),end:e.end}}function uS(e,n){return{pos:n.pos-1,end:Math.min(e.text.length,Ns(e.text,n.end)+1)}}function _S(e,n,t){return n.skipLibCheck&&e.isDeclarationFile||n.skipDefaultLibCheck&&e.hasNoDefaultLib||t.isSourceOfProjectReferenceRedirect(e.fileName)}function pS(e,n){return e===n||"object"===typeof e&&null!==e&&"object"===typeof n&&null!==n&&en(e,n,pS)}function fS(e){let n;switch(e.charCodeAt(1)){case 98:case 66:n=1;break;case 111:case 79:n=3;break;case 120:case 88:n=4;break;default:const t=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,t)||"0"}const t=e.length-1,r=(t-2)*n,i=new Uint16Array((r>>>4)+(15&r?1:0));for(let c=t-1,l=0;c>=2;c--,l+=n){const n=l>>>4,t=e.charCodeAt(c),r=(t<=57?t-48:10+t-(t<=70?65:97))<<(15&l);i[n]|=r;const a=r>>>16;a&&(i[n+1]|=a)}let a="",o=i.length-1,s=!0;for(;s;){let e=0;s=!1;for(let n=o;n>=0;n--){const t=e<<16|i[n],r=t/10|0;i[n]=r,e=t-10*r,r&&!s&&(o=n,s=!0)}a=e+a}return a}function mS({negative:e,base10Value:n}){return(e&&"0"!==n?"-":"")+n}function hS(e){if(yS(e,!1))return gS(e)}function gS(e){const n=e.startsWith("-");return{negative:n,base10Value:fS(`${n?e.slice(1):e}n`)}}function yS(e,n){if(""===e)return!1;const t=Xs(99,!1);let r=!0;t.setOnError((()=>r=!1)),t.setText(e+"n");let i=t.scan();const a=40===i;a&&(i=t.scan());const o=t.getTokenFlags();return r&&9===i&&t.getTextPos()===e.length+1&&!(512&o)&&(!n||e===mS({negative:a,base10Value:fS(t.getTokenValue())}))}function vS(e){return!!(16777216&e.flags)||Eh(e)||function(e){if(79!==e.kind)return!1;const n=Mc(e.parent,(e=>{switch(e.kind){case 294:return!0;case 208:case 230:return!1;default:return"quit"}}));return 117===(null==n?void 0:n.token)||261===(null==n?void 0:n.parent.kind)}(e)||function(e){for(;79===e.kind||208===e.kind;)e=e.parent;if(164!==e.kind)return!1;if(fb(e.parent,256))return!0;const n=e.parent.parent.kind;return 261===n||184===n}(e)||!(vh(e)||function(e){return IC(e)&&Aw(e.parent)&&e.parent.name===e}(e))}function bS(e){return sk(e)&&IC(e.typeName)}function ES(e,n=Pn){if(e.length<2)return!0;const t=e[0];for(let r=1,i=e.length;r<i;r++){if(!n(t,e[r]))return!1}return!0}function TS(e,n){return e.pos=n,e}function xS(e,n){return e.end=n,e}function SS(e,n,t){return xS(TS(e,n),t)}function AS(e,n,t){return SS(e,n,n+t)}function LS(e,n){return e&&(e.flags=n),e}function CS(e,n){return e&&n&&(e.parent=n),e}function kS(e,n){if(e)for(const t of e)CS(t,n);return e}function IS(e,n){return e?(kD(e,Ju(e)?t:function(e,n){return t(e,n)||function(e){if(Zu(e))for(const n of e.jsDoc)t(n,e),kD(n,t)}(e)}),e):e;function t(e,t){if(n&&e.parent===t)return"skip";CS(e,t)}}function wS(e){return!tI(e)}function RS(e){return Dk(e)&&N(e.elements,wS)}function NS(e){for(Nt.assertIsDefined(e.parent);;){const n=e.parent;if(Vk(n))e=n;else{if(hI(n)||zk(n)||bI(n)&&(n.initializer===e||n.incrementor===e))return!0;if(dI(n)){if(e!==Ge(n.elements))return!0;e=n}else{if(!Yk(n)||27!==n.operatorToken.kind)return!1;if(e===n.left)return!0;e=n}}}}function DS(e){return ce(Ea,(n=>rt(e,n)))}function OS(e){if(!e.parent)return;switch(e.kind){case 165:const{parent:n}=e;return 192===n.kind?void 0:n.typeParameters;case 166:return e.parent.parameters;case 201:case 236:return e.parent.templateSpans;case 167:{const{parent:n}=e;return HN(n)?n.modifiers:void 0}case 294:return e.parent.heritageClauses}const{parent:n}=e;if(Yu(e))return qw(e.parent)?void 0:e.parent.tags;switch(n.kind){case 184:case 261:return Hd(e)?n.members:void 0;case 189:case 190:return n.types;case 186:case 206:case 357:case 272:case 276:return n.elements;case 207:case 289:return n.properties;case 210:case 211:return zd(e)?n.typeArguments:n.expression===e?void 0:n.arguments;case 281:case 285:return Hu(e)?n.children:void 0;case 283:case 282:return zd(e)?n.typeArguments:void 0;case 238:case 292:case 293:case 265:case 308:return n.statements;case 266:return n.clauses;case 260:case 228:return Pd(e)?n.members:void 0;case 263:return Cw(e)?n.members:void 0}}function MS(e){if(!e.typeParameters){if(ce(e.parameters,(e=>!Qv(e))))return!0;if(216!==e.kind){const n=De(e.parameters);if(!n||!qv(n))return!0}}return!1}function PS(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function FS(e){return 257===e.kind&&295===e.parent.kind}function GS(e){const n=e.valueDeclaration&&Xy(e.valueDeclaration);return!!n&&(qC(n)||FS(n))}function BS(e){return 215===e.kind||216===e.kind}function US(e){return e.replace(/\$/gm,(()=>"\\$"))}function VS(e){return(+e).toString()===e}function jS(e,n,t,r){return Js(e,n)?gA.createIdentifier(e):!r&&VS(e)&&+e>=0?gA.createNumericLiteral(+e):gA.createStringLiteral(e,!!t)}function HS(e){return!!(262144&e.flags&&e.isThisType)}function KS(e){let n,t=0,r=0,i=0,a=0;var o;(o=n||(n={}))[o.BeforeNodeModules=0]="BeforeNodeModules",o[o.NodeModules=1]="NodeModules",o[o.Scope=2]="Scope",o[o.PackageContent=3]="PackageContent";let s=0,c=0,l=0;for(;c>=0;)switch(s=c,c=e.indexOf("/",s+1),l){case 0:e.indexOf(lP,s)===s&&(t=s,r=c,l=1);break;case 1:case 2:1===l&&"@"===e.charAt(s+1)?l=2:(i=c,l=3);break;case 3:l=e.indexOf(lP,s)===s?1:3}return a=s,l>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:a}:void 0}function WS(e){var n;return 344===e.kind?null==(n=e.typeExpression)?void 0:n.type:e.type}function zS(e){switch(e.kind){case 165:case 260:case 261:case 262:case 263:case 349:case 341:case 343:return!0;case 270:return e.isTypeOnly;case 273:case 278:return e.parent.parent.isTypeOnly;default:return!1}}function qS(e){return GI(e)||fI(e)||OI(e)||MI(e)||PI(e)||zS(e)||BI(e)&&!Af(e)&&!Sf(e)}function JS(e){if(!ed(e))return!1;const{isBracketed:n,typeExpression:t}=e;return n||!!t&&319===t.type.kind}function XS(e,n){if(0===e.length)return!1;const t=e.charCodeAt(0);return 35===t?e.length>1&&zs(e.charCodeAt(1),n):zs(t,n)}function YS(e){var n;return 0===(null==(n=fL(e))?void 0:n.kind)}function $S(e){return Ih(e)&&(e.type&&319===e.type.kind||el(e).some((({isBracketed:e,typeExpression:n})=>e||!!n&&319===n.type.kind)))}function QS(e){switch(e.kind){case 169:case 168:return!!e.questionToken;case 166:return!!e.questionToken||$S(e);case 351:case 344:return JS(e);default:return!1}}function ZS(e){const n=e.kind;return(208===n||209===n)&&oI(e.expression)}function eA(e){return Ih(e)&&Vk(e)&&Zu(e)&&!!Sl(e)}function nA(e){return Nt.checkDefined(tA(e))}function tA(e){const n=Sl(e);return n&&n.typeExpression&&n.typeExpression.type}var rA=E({"src/compiler/utilities.ts"(){lq(),d_=[],u_="tslib",__=160,p_=1e6,f_=function(){var e="";const n=n=>e+=n;return{getText:()=>e,write:n,rawWrite:n,writeKeyword:n,writeOperator:n,writePunctuation:n,writeSpace:n,writeStringLiteral:n,writeLiteral:n,writeParameter:n,writeProperty:n,writeSymbol:(e,t)=>n(e),writeTrailingSemicolon:n,writeComment:n,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&As(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:xn,decreaseIndent:xn,clear:()=>e=""}}(),m_=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(m_||{}),h_=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,g_=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,y_=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,v_=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,b_=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(b_||{}),E_=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(E_||{}),T_=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(T_||{}),x_=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(x_||{}),S_=/\$\{/g,A_=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,L_=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,C_=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,k_=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),I_=/[^\u0000-\u007F]/g,w_=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,R_=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,N_=new Map(Object.entries({'"':""","'":"'"})),D_=[""," "],O_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",M_="\r\n",P_="\n",F_={getNodeConstructor:()=>fT,getTokenConstructor:()=>mT,getIdentifierConstructor:()=>hT,getPrivateIdentifierConstructor:()=>fT,getSourceFileConstructor:()=>fT,getSymbolConstructor:()=>uT,getTypeConstructor:()=>_T,getSignatureConstructor:()=>pT,getSourceMapSourceConstructor:()=>gT},G_=[],U_=/[^\w\s\/]/g,V_=[42,63],H_=`(?!(${(j_=["node_modules","bower_components","jspm_packages"]).join("|")})(/|$))`,q_={files:K_={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${H_}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>wx(e,K_.singleAsteriskRegexFragment)},directories:W_={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${H_}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>wx(e,W_.singleAsteriskRegexFragment)},exclude:z_={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>wx(e,z_.singleAsteriskRegexFragment)}},X_=J(J_=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]]),Y_=[...J_,[".json"]],$_=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"],Z_=J(Q_=[[".js",".jsx"],[".mjs"],[".cjs"]]),ep=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],np=[...ep,[".json"]],tp=[".d.ts",".d.cts",".d.mts"],rp=[".ts",".cts",".mts",".tsx"],ip=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(ip||{}),ap=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],op={files:i,directories:i}}});function iA(){let e,n,t,r,i;return{createBaseSourceFileNode:function(e){return new(i||(i=F_.getSourceFileConstructor()))(e,-1,-1)},createBaseIdentifierNode:function(e){return new(t||(t=F_.getIdentifierConstructor()))(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(r||(r=F_.getPrivateIdentifierConstructor()))(e,-1,-1)},createBaseTokenNode:function(e){return new(n||(n=F_.getTokenConstructor()))(e,-1,-1)},createBaseNode:function(n){return new(e||(e=F_.getNodeConstructor()))(n,-1,-1)}}}var aA,oA=E({"src/compiler/factory/baseNodeFactory.ts"(){lq()}});function sA(e){let n,t;return{getParenthesizeLeftSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);t||(t=n=>a(e,n),n.set(e,t));return t},getParenthesizeRightSideOfBinaryForOperator:function(e){t||(t=new Map);let n=t.get(e);n||(n=n=>o(e,void 0,n),t.set(e,n));return n},parenthesizeLeftSideOfBinary:a,parenthesizeRightSideOfBinary:o,parenthesizeExpressionOfComputedPropertyName:function(n){return HR(n)?e.createParenthesizedExpression(n):n},parenthesizeConditionOfConditionalExpression:function(n){const t=rv(224,57),r=Jl(n);if(1!==Un(nv(r),t))return e.createParenthesizedExpression(n);return n},parenthesizeBranchOfConditionalExpression:function(n){return HR(Jl(n))?e.createParenthesizedExpression(n):n},parenthesizeExpressionOfExportDefault:function(n){const t=Jl(n);let r=HR(t);if(!r)switch(dT(t,!1).kind){case 228:case 215:r=!0}return r?e.createParenthesizedExpression(n):n},parenthesizeExpressionOfNew:function(n){const t=dT(n,!0);switch(t.kind){case 210:return e.createParenthesizedExpression(n);case 211:return t.arguments?n:e.createParenthesizedExpression(n)}return s(n)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(n){return lu(n)?n:VN(e.createParenthesizedExpression(n),n)},parenthesizeOperandOfPrefixUnary:function(n){return uu(n)?n:VN(e.createParenthesizedExpression(n),n)},parenthesizeExpressionsOfCommaDelimitedList:function(n){const t=q(n,c);return VN(e.createNodeArray(t,n.hasTrailingComma),n)},parenthesizeExpressionForDisallowedComma:c,parenthesizeExpressionOfExpressionStatement:function(n){const t=Jl(n);if(Fk(t)){const r=t.expression,i=Jl(r).kind;if(215===i||216===i){const i=e.updateCallExpression(t,VN(e.createParenthesizedExpression(r),r),t.typeArguments,t.arguments);return e.restoreOuterExpressions(n,i,8)}}const r=dT(t,!1).kind;if(207===r||215===r)return VN(e.createParenthesizedExpression(n),n);return n},parenthesizeConciseBodyOfArrowFunction:function(n){if(!pI(n)&&(HR(n)||207===dT(n,!1).kind))return VN(e.createParenthesizedExpression(n),n);return n},parenthesizeCheckTypeOfConditionalType:l,parenthesizeExtendsTypeOfConditionalType:function(n){if(191===n.kind)return e.createParenthesizedType(n);return n},parenthesizeConstituentTypesOfUnionType:function(n){return e.createNodeArray(q(n,d))},parenthesizeConstituentTypeOfUnionType:d,parenthesizeConstituentTypesOfIntersectionType:function(n){return e.createNodeArray(q(n,u))},parenthesizeConstituentTypeOfIntersectionType:u,parenthesizeOperandOfTypeOperator:_,parenthesizeOperandOfReadonlyTypeOperator:function(n){if(195===n.kind)return e.createParenthesizedType(n);return _(n)},parenthesizeNonArrayTypeOfPostfixType:p,parenthesizeElementTypesOfTupleType:function(n){return e.createNodeArray(q(n,f))},parenthesizeElementTypeOfTupleType:f,parenthesizeTypeOfOptionalType:function(n){return m(n)?e.createParenthesizedType(n):p(n)},parenthesizeTypeArguments:function(n){if(ce(n))return e.createNodeArray(q(n,g))},parenthesizeLeadingTypeArgument:h};function r(e){if(od((e=Jl(e)).kind))return e.kind;if(223===e.kind&&39===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const n=r(e.left),t=od(n)&&n===r(e.right)?n:0;return e.cachedLiteralKind=t,t}return 0}function i(n,t,i,a){return 214===Jl(t).kind?t:function(e,n,t,i){const a=rv(223,e),o=ev(223,e),s=Jl(n);if(!t&&216===n.kind&&a>3)return!0;switch(Un(nv(s),a)){case-1:return!(!t&&1===o&&226===n.kind);case 1:return!1;case 0:if(t)return 1===o;if(Yk(s)&&s.operatorToken.kind===e){if(function(e){return 41===e||51===e||50===e||52===e||27===e}(e))return!1;if(39===e){const e=i?r(i):0;if(od(e)&&e===r(s))return!1}}return 0===Zy(s)}}(n,t,i,a)?e.createParenthesizedExpression(t):t}function a(e,n){return i(e,n,!0)}function o(e,n,t){return i(e,t,!1,n)}function s(n,t){const r=Jl(n);return!lu(r)||211===r.kind&&!r.arguments||!t&&jl(r)?VN(e.createParenthesizedExpression(n),n):n}function c(n){return nv(Jl(n))>rv(223,27)?n:VN(e.createParenthesizedExpression(n),n)}function l(n){switch(n.kind){case 181:case 182:case 191:return e.createParenthesizedType(n)}return n}function d(n){switch(n.kind){case 189:case 190:return e.createParenthesizedType(n)}return l(n)}function u(n){switch(n.kind){case 189:case 190:return e.createParenthesizedType(n)}return d(n)}function _(n){return 190===n.kind?e.createParenthesizedType(n):u(n)}function p(n){switch(n.kind){case 192:case 195:case 183:return e.createParenthesizedType(n)}return _(n)}function f(n){return m(n)?e.createParenthesizedType(n):n}function m(e){return Uw(e)?e.postfix:fk(e)||ck(e)||lk(e)||xk(e)?m(e.type):vk(e)?m(e.falseType):gk(e)||yk(e)?m(Ge(e.types)):!!bk(e)&&(!!e.typeParameter.constraint&&m(e.typeParameter.constraint))}function h(n){return qd(n)&&n.typeParameters?e.createParenthesizedType(n):n}function g(e,n){return 0===n?h(e):e}}var cA,lA=E({"src/compiler/factory/parenthesizerRules.ts"(){lq(),aA={getParenthesizeLeftSideOfBinaryForOperator:e=>Cn,getParenthesizeRightSideOfBinaryForOperator:e=>Cn,parenthesizeLeftSideOfBinary:(e,n)=>n,parenthesizeRightSideOfBinary:(e,n,t)=>t,parenthesizeExpressionOfComputedPropertyName:Cn,parenthesizeConditionOfConditionalExpression:Cn,parenthesizeBranchOfConditionalExpression:Cn,parenthesizeExpressionOfExportDefault:Cn,parenthesizeExpressionOfNew:e=>Tn(e,lu),parenthesizeLeftSideOfAccess:e=>Tn(e,lu),parenthesizeOperandOfPostfixUnary:e=>Tn(e,lu),parenthesizeOperandOfPrefixUnary:e=>Tn(e,uu),parenthesizeExpressionsOfCommaDelimitedList:e=>Tn(e,ad),parenthesizeExpressionForDisallowedComma:Cn,parenthesizeExpressionOfExpressionStatement:Cn,parenthesizeConciseBodyOfArrowFunction:Cn,parenthesizeCheckTypeOfConditionalType:Cn,parenthesizeExtendsTypeOfConditionalType:Cn,parenthesizeConstituentTypesOfUnionType:e=>Tn(e,ad),parenthesizeConstituentTypeOfUnionType:Cn,parenthesizeConstituentTypesOfIntersectionType:e=>Tn(e,ad),parenthesizeConstituentTypeOfIntersectionType:Cn,parenthesizeOperandOfTypeOperator:Cn,parenthesizeOperandOfReadonlyTypeOperator:Cn,parenthesizeNonArrayTypeOfPostfixType:Cn,parenthesizeElementTypesOfTupleType:e=>Tn(e,ad),parenthesizeElementTypeOfTupleType:Cn,parenthesizeTypeOfOptionalType:Cn,parenthesizeTypeArguments:e=>e&&Tn(e,ad),parenthesizeLeadingTypeArgument:Cn}}});function dA(e){return{convertToFunctionBlock:function(n,t){if(pI(n))return n;const r=e.createReturnStatement(n);VN(r,n);const i=e.createBlock([r],t);return VN(i,n),i},convertToFunctionExpression:function(n){if(!n.body)return Nt.fail("Cannot convert a FunctionDeclaration without a body");const t=e.createFunctionExpression(Qc(n),n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body);FA(t,n),VN(t,n),YA(n)&&$A(t,!0);return t},convertToArrayAssignmentElement:n,convertToObjectAssignmentElement:t,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:a,convertToAssignmentElementTarget:o};function n(n){if(Nk(n)){if(n.dotDotDotToken)return Nt.assertNode(n.name,IC),FA(VN(e.createSpreadElement(n.name),n),n);const t=o(n.name);return n.initializer?FA(VN(e.createAssignment(t,n.initializer),n),n):t}return Tn(n,mu)}function t(n){if(Nk(n)){if(n.dotDotDotToken)return Nt.assertNode(n.name,IC),FA(VN(e.createSpreadAssignment(n.name),n),n);if(n.propertyName){const t=o(n.name);return FA(VN(e.createPropertyAssignment(n.propertyName,n.initializer?e.createAssignment(t,n.initializer):t),n),n)}return Nt.assertNode(n.name,IC),FA(VN(e.createShorthandPropertyAssignment(n.name,n.initializer),n),n)}return Tn(n,Wd)}function r(e){switch(e.kind){case 204:case 206:return a(e);case 203:case 207:return i(e)}}function i(n){return wk(n)?FA(VN(e.createObjectLiteralExpression(W(n.elements,t)),n),n):Tn(n,Ok)}function a(t){return Rk(t)?FA(VN(e.createArrayLiteralExpression(W(t.elements,n)),t),t):Tn(t,Dk)}function o(e){return Jd(e)?r(e):Tn(e,mu)}}var uA,_A,pA,fA,mA,hA,gA,yA,vA=E({"src/compiler/factory/nodeConverters.ts"(){lq(),cA={convertToFunctionBlock:wn,convertToFunctionExpression:wn,convertToArrayAssignmentElement:wn,convertToObjectAssignmentElement:wn,convertToAssignmentPattern:wn,convertToObjectAssignmentPattern:wn,convertToArrayAssignmentPattern:wn,convertToAssignmentElementTarget:wn}}});function bA(e){pA.push(e)}function EA(e,n){const t=8&e?TA:xA,r=Rn((()=>1&e?aA:sA(y))),a=Rn((()=>2&e?cA:dA(y))),o=Nn((e=>(n,t)=>Dn(n,e,t))),s=Nn((e=>n=>In(e,n))),c=Nn((e=>n=>wn(n,e))),l=Nn((e=>()=>function(e){return b(e)}(e))),d=Nn((e=>n=>sr(e,n))),u=Nn((e=>(n,r)=>function(e,n,r){return n.type!==r?t(sr(e,r),n):n}(e,n,r))),_=Nn((e=>(n,t)=>or(e,n,t))),p=Nn((e=>(n,r)=>function(e,n,r){return n.type!==r?t(or(e,r,n.postfix),n):n}(e,n,r))),f=Nn((e=>(n,t)=>Ir(e,n,t))),m=Nn((e=>(n,r,i)=>function(e,n,r=_r(n),i){return n.tagName!==r||n.comment!==i?t(Ir(e,r,i),n):n}(e,n,r,i))),h=Nn((e=>(n,t,r)=>wr(e,n,t,r))),g=Nn((e=>(n,r,i,a)=>function(e,n,r=_r(n),i,a){return n.tagName!==r||n.typeExpression!==i||n.comment!==a?t(wr(e,r,i,a),n):n}(e,n,r,i,a))),y={get parenthesizer(){return r()},get converters(){return a()},baseFactory:n,flags:e,createNodeArray:v,createNumericLiteral:x,createBigIntLiteral:S,createStringLiteral:C,createStringLiteralFromNode:function(e){const n=L(Py(e),void 0);return n.textSourceNode=e,n},createRegularExpressionLiteral:k,createLiteralLikeNode:function(e,n){switch(e){case 8:return x(n,0);case 9:return S(n);case 10:return C(n,void 0);case 11:return Ur(n,!1);case 12:return Ur(n,!0);case 13:return k(n);case 14:return Un(e,n,void 0,0)}},createIdentifier:R,createTempVariable:D,createLoopVariable:function(e){let n=2;e&&(n|=8);return w("",n,void 0,void 0)},createUniqueName:function(e,n=0,t,r){return Nt.assert(!(7&n),"Argument out of range: flags"),Nt.assert(32!==(48&n),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),w(e,3|n,t,r)},getGeneratedNameForNode:O,createPrivateIdentifier:function(e){pt(e,"#")||Nt.fail("First character of private identifier must be #: "+e);return M(Gc(e))},createUniquePrivateName:function(e,n,t){e&&!pt(e,"#")&&Nt.fail("First character of private identifier must be #: "+e);return P(null!=e?e:"",8|(e?3:1),n,t)},getGeneratedPrivateNameForNode:function(e,n,t){const r=Fl(e)?NN(!0,n,e,t,Uc):`#generated@${ZG(e)}`,i=P(r,4|(n||t?16:0),n,t);return i.original=e,i},createToken:G,createSuper:function(){return G(106)},createThis:B,createNull:function(){return G(104)},createTrue:U,createFalse:V,createModifier:j,createModifiersFromModifierFlags:H,createQualifiedName:K,updateQualifiedName:function(e,n,r){return e.left!==n||e.right!==r?t(K(n,r),e):e},createComputedPropertyName:W,updateComputedPropertyName:function(e,n){return e.expression!==n?t(W(n),e):e},createTypeParameterDeclaration:z,updateTypeParameterDeclaration:q,createParameterDeclaration:J,updateParameterDeclaration:X,createDecorator:Y,updateDecorator:function(e,n){return e.expression!==n?t(Y(n),e):e},createPropertySignature:$,updatePropertySignature:Z,createPropertyDeclaration:ee,updatePropertyDeclaration:ne,createMethodSignature:te,updateMethodSignature:re,createMethodDeclaration:ie,updateMethodDeclaration:ae,createConstructorDeclaration:se,updateConstructorDeclaration:le,createGetAccessorDeclaration:de,updateGetAccessorDeclaration:ue,createSetAccessorDeclaration:_e,updateSetAccessorDeclaration:pe,createCallSignature:fe,updateCallSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?T(fe(n,t,r),e):e},createConstructSignature:me,updateConstructSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?T(me(n,t,r),e):e},createIndexSignature:he,updateIndexSignature:ge,createClassStaticBlockDeclaration:oe,updateClassStaticBlockDeclaration:function(e,n){return e.body!==n?function(e,n){e!==n&&(e.modifiers=n.modifiers);return t(e,n)}(oe(n),e):e},createTemplateLiteralTypeSpan:ye,updateTemplateLiteralTypeSpan:function(e,n,r){return e.type!==n||e.literal!==r?t(ye(n,r),e):e},createKeywordTypeNode:function(e){return G(e)},createTypePredicateNode:ve,updateTypePredicateNode:function(e,n,r,i){return e.assertsModifier!==n||e.parameterName!==r||e.type!==i?t(ve(n,r,i),e):e},createTypeReferenceNode:be,updateTypeReferenceNode:function(e,n,r){return e.typeName!==n||e.typeArguments!==r?t(be(n,r),e):e},createFunctionTypeNode:Ee,updateFunctionTypeNode:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?function(e,n){e!==n&&(e.modifiers=n.modifiers);return T(e,n)}(Ee(n,t,r),e):e},createConstructorTypeNode:xe,updateConstructorTypeNode:function(...e){return 5===e.length?Ae(...e):4===e.length?function(e,n,t,r){return Ae(e,e.modifiers,n,t,r)}(...e):Nt.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Le,updateTypeQueryNode:function(e,n,r){return e.exprName!==n||e.typeArguments!==r?t(Le(n,r),e):e},createTypeLiteralNode:Ce,updateTypeLiteralNode:function(e,n){return e.members!==n?t(Ce(n),e):e},createArrayTypeNode:ke,updateArrayTypeNode:function(e,n){return e.elementType!==n?t(ke(n),e):e},createTupleTypeNode:Ie,updateTupleTypeNode:function(e,n){return e.elements!==n?t(Ie(n),e):e},createNamedTupleMember:we,updateNamedTupleMember:function(e,n,r,i,a){return e.dotDotDotToken!==n||e.name!==r||e.questionToken!==i||e.type!==a?t(we(n,r,i,a),e):e},createOptionalTypeNode:Re,updateOptionalTypeNode:function(e,n){return e.type!==n?t(Re(n),e):e},createRestTypeNode:Ne,updateRestTypeNode:function(e,n){return e.type!==n?t(Ne(n),e):e},createUnionTypeNode:function(e){return De(189,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,n){return Oe(e,n,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return De(190,e,r().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,n){return Oe(e,n,r().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Me,updateConditionalTypeNode:function(e,n,r,i,a){return e.checkType!==n||e.extendsType!==r||e.trueType!==i||e.falseType!==a?t(Me(n,r,i,a),e):e},createInferTypeNode:Pe,updateInferTypeNode:function(e,n){return e.typeParameter!==n?t(Pe(n),e):e},createImportTypeNode:Ue,updateImportTypeNode:function(e,n,r,i,a,o=e.isTypeOf){return e.argument!==n||e.assertions!==r||e.qualifier!==i||e.typeArguments!==a||e.isTypeOf!==o?t(Ue(n,r,i,a,o),e):e},createParenthesizedType:Ve,updateParenthesizedType:function(e,n){return e.type!==n?t(Ve(n),e):e},createThisTypeNode:function(){const e=b(194);return e.transformFlags=1,e},createTypeOperatorNode:je,updateTypeOperatorNode:function(e,n){return e.type!==n?t(je(e.operator,n),e):e},createIndexedAccessTypeNode:He,updateIndexedAccessTypeNode:function(e,n,r){return e.objectType!==n||e.indexType!==r?t(He(n,r),e):e},createMappedTypeNode:Ke,updateMappedTypeNode:function(e,n,r,i,a,o,s){return e.readonlyToken!==n||e.typeParameter!==r||e.nameType!==i||e.questionToken!==a||e.type!==o||e.members!==s?t(Ke(n,r,i,a,o,s),e):e},createLiteralTypeNode:qe,updateLiteralTypeNode:function(e,n){return e.literal!==n?t(qe(n),e):e},createTemplateLiteralType:Ge,updateTemplateLiteralType:function(e,n,r){return e.head!==n||e.templateSpans!==r?t(Ge(n,r),e):e},createObjectBindingPattern:Je,updateObjectBindingPattern:function(e,n){return e.elements!==n?t(Je(n),e):e},createArrayBindingPattern:Xe,updateArrayBindingPattern:function(e,n){return e.elements!==n?t(Xe(n),e):e},createBindingElement:Ye,updateBindingElement:function(e,n,r,i,a){return e.propertyName!==r||e.dotDotDotToken!==n||e.name!==i||e.initializer!==a?t(Ye(n,r,i,a),e):e},createArrayLiteralExpression:$e,updateArrayLiteralExpression:function(e,n){return e.elements!==n?t($e(n,e.multiLine),e):e},createObjectLiteralExpression:Qe,updateObjectLiteralExpression:function(e,n){return e.properties!==n?t(Qe(n,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,n)=>jA(en(e,n),262144):en,updatePropertyAccessExpression:function(e,n,r){if(Bl(e))return tn(e,n,e.questionDotToken,Tn(r,IC));return e.expression!==n||e.name!==r?t(en(n,r),e):e},createPropertyAccessChain:4&e?(e,n,t)=>jA(nn(e,n,t),262144):nn,updatePropertyAccessChain:tn,createElementAccessExpression:an,updateElementAccessExpression:function(e,n,r){if(Ul(e))return sn(e,n,e.questionDotToken,r);return e.expression!==n||e.argumentExpression!==r?t(an(n,r),e):e},createElementAccessChain:on,updateElementAccessChain:sn,createCallExpression:ln,updateCallExpression:function(e,n,r,i){if(Vl(e))return un(e,n,e.questionDotToken,r,i);return e.expression!==n||e.typeArguments!==r||e.arguments!==i?t(ln(n,r,i),e):e},createCallChain:dn,updateCallChain:un,createNewExpression:_n,updateNewExpression:function(e,n,r,i){return e.expression!==n||e.typeArguments!==r||e.arguments!==i?t(_n(n,r,i),e):e},createTaggedTemplateExpression:pn,updateTaggedTemplateExpression:function(e,n,r,i){return e.tag!==n||e.typeArguments!==r||e.template!==i?t(pn(n,r,i),e):e},createTypeAssertion:fn,updateTypeAssertion:mn,createParenthesizedExpression:hn,updateParenthesizedExpression:yn,createFunctionExpression:vn,updateFunctionExpression:bn,createArrowFunction:En,updateArrowFunction:xn,createDeleteExpression:Sn,updateDeleteExpression:function(e,n){return e.expression!==n?t(Sn(n),e):e},createTypeOfExpression:Ln,updateTypeOfExpression:function(e,n){return e.expression!==n?t(Ln(n),e):e},createVoidExpression:Cn,updateVoidExpression:function(e,n){return e.expression!==n?t(Cn(n),e):e},createAwaitExpression:kn,updateAwaitExpression:function(e,n){return e.expression!==n?t(kn(n),e):e},createPrefixUnaryExpression:In,updatePrefixUnaryExpression:function(e,n){return e.operand!==n?t(In(e.operator,n),e):e},createPostfixUnaryExpression:wn,updatePostfixUnaryExpression:function(e,n){return e.operand!==n?t(wn(n,e.operator),e):e},createBinaryExpression:Dn,updateBinaryExpression:function(e,n,r,i){return e.left!==n||e.operatorToken!==r||e.right!==i?t(Dn(n,r,i),e):e},createConditionalExpression:Mn,updateConditionalExpression:function(e,n,r,i,a,o){return e.condition!==n||e.questionToken!==r||e.whenTrue!==i||e.colonToken!==a||e.whenFalse!==o?t(Mn(n,r,i,a,o),e):e},createTemplateExpression:Pn,updateTemplateExpression:function(e,n,r){return e.head!==n||e.templateSpans!==r?t(Pn(n,r),e):e},createTemplateHead:function(e,n,t){return Un(15,e=Fn(15,e,n,t),n,t)},createTemplateMiddle:function(e,n,t){return Un(16,e=Fn(15,e,n,t),n,t)},createTemplateTail:function(e,n,t){return Un(17,e=Fn(15,e,n,t),n,t)},createNoSubstitutionTemplateLiteral:function(e,n,t){return Bn(14,e=Fn(15,e,n,t),n,t)},createTemplateLiteralLikeNode:Un,createYieldExpression:Vn,updateYieldExpression:function(e,n,r){return e.expression!==r||e.asteriskToken!==n?t(Vn(n,r),e):e},createSpreadElement:jn,updateSpreadElement:function(e,n){return e.expression!==n?t(jn(n),e):e},createClassExpression:Hn,updateClassExpression:Kn,createOmittedExpression:function(){return b(229)},createExpressionWithTypeArguments:Wn,updateExpressionWithTypeArguments:function(e,n,r){return e.expression!==n||e.typeArguments!==r?t(Wn(n,r),e):e},createAsExpression:zn,updateAsExpression:qn,createNonNullExpression:Jn,updateNonNullExpression:Xn,createSatisfiesExpression:Yn,updateSatisfiesExpression:$n,createNonNullChain:Qn,updateNonNullChain:Zn,createMetaProperty:et,updateMetaProperty:function(e,n){return e.name!==n?t(et(e.keywordToken,n),e):e},createTemplateSpan:nt,updateTemplateSpan:function(e,n,r){return e.expression!==n||e.literal!==r?t(nt(n,r),e):e},createSemicolonClassElement:function(){const e=b(237);return e.transformFlags|=1024,e},createBlock:tt,updateBlock:function(e,n){return e.statements!==n?t(tt(n,e.multiLine),e):e},createVariableStatement:rt,updateVariableStatement:it,createEmptyStatement:at,createExpressionStatement:ot,updateExpressionStatement:function(e,n){return e.expression!==n?t(ot(n),e):e},createIfStatement:st,updateIfStatement:function(e,n,r,i){return e.expression!==n||e.thenStatement!==r||e.elseStatement!==i?t(st(n,r,i),e):e},createDoStatement:ct,updateDoStatement:function(e,n,r){return e.statement!==n||e.expression!==r?t(ct(n,r),e):e},createWhileStatement:lt,updateWhileStatement:function(e,n,r){return e.expression!==n||e.statement!==r?t(lt(n,r),e):e},createForStatement:dt,updateForStatement:function(e,n,r,i,a){return e.initializer!==n||e.condition!==r||e.incrementor!==i||e.statement!==a?t(dt(n,r,i,a),e):e},createForInStatement:ut,updateForInStatement:function(e,n,r,i){return e.initializer!==n||e.expression!==r||e.statement!==i?t(ut(n,r,i),e):e},createForOfStatement:_t,updateForOfStatement:function(e,n,r,i,a){return e.awaitModifier!==n||e.initializer!==r||e.expression!==i||e.statement!==a?t(_t(n,r,i,a),e):e},createContinueStatement:ft,updateContinueStatement:function(e,n){return e.label!==n?t(ft(n),e):e},createBreakStatement:mt,updateBreakStatement:function(e,n){return e.label!==n?t(mt(n),e):e},createReturnStatement:ht,updateReturnStatement:function(e,n){return e.expression!==n?t(ht(n),e):e},createWithStatement:gt,updateWithStatement:function(e,n,r){return e.expression!==n||e.statement!==r?t(gt(n,r),e):e},createSwitchStatement:yt,updateSwitchStatement:function(e,n,r){return e.expression!==n||e.caseBlock!==r?t(yt(n,r),e):e},createLabeledStatement:vt,updateLabeledStatement:bt,createThrowStatement:Et,updateThrowStatement:function(e,n){return e.expression!==n?t(Et(n),e):e},createTryStatement:Tt,updateTryStatement:function(e,n,r,i){return e.tryBlock!==n||e.catchClause!==r||e.finallyBlock!==i?t(Tt(n,r,i),e):e},createDebuggerStatement:function(){const e=b(256);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:xt,updateVariableDeclaration:function(e,n,r,i,a){return e.name!==n||e.type!==i||e.exclamationToken!==r||e.initializer!==a?t(xt(n,r,i,a),e):e},createVariableDeclarationList:St,updateVariableDeclarationList:function(e,n){return e.declarations!==n?t(St(n,e.flags),e):e},createFunctionDeclaration:At,updateFunctionDeclaration:Lt,createClassDeclaration:Ct,updateClassDeclaration:kt,createInterfaceDeclaration:It,updateInterfaceDeclaration:wt,createTypeAliasDeclaration:Rt,updateTypeAliasDeclaration:Dt,createEnumDeclaration:Ot,updateEnumDeclaration:Mt,createModuleDeclaration:Pt,updateModuleDeclaration:Ft,createModuleBlock:Gt,updateModuleBlock:function(e,n){return e.statements!==n?t(Gt(n),e):e},createCaseBlock:Bt,updateCaseBlock:function(e,n){return e.clauses!==n?t(Bt(n),e):e},createNamespaceExportDeclaration:Ut,updateNamespaceExportDeclaration:function(e,n){return e.name!==n?function(e,n){e!==n&&(e.modifiers=n.modifiers);return t(e,n)}(Ut(n),e):e},createImportEqualsDeclaration:Vt,updateImportEqualsDeclaration:jt,createImportDeclaration:Ht,updateImportDeclaration:Kt,createImportClause:Wt,updateImportClause:function(e,n,r,i){return e.isTypeOnly!==n||e.name!==r||e.namedBindings!==i?t(Wt(n,r,i),e):e},createAssertClause:zt,updateAssertClause:function(e,n,r){return e.elements!==n||e.multiLine!==r?t(zt(n,r),e):e},createAssertEntry:qt,updateAssertEntry:function(e,n,r){return e.name!==n||e.value!==r?t(qt(n,r),e):e},createImportTypeAssertionContainer:Jt,updateImportTypeAssertionContainer:function(e,n,r){return e.assertClause!==n||e.multiLine!==r?t(Jt(n,r),e):e},createNamespaceImport:Xt,updateNamespaceImport:function(e,n){return e.name!==n?t(Xt(n),e):e},createNamespaceExport:Yt,updateNamespaceExport:function(e,n){return e.name!==n?t(Yt(n),e):e},createNamedImports:$t,updateNamedImports:function(e,n){return e.elements!==n?t($t(n),e):e},createImportSpecifier:Qt,updateImportSpecifier:function(e,n,r,i){return e.isTypeOnly!==n||e.propertyName!==r||e.name!==i?t(Qt(n,r,i),e):e},createExportAssignment:Zt,updateExportAssignment:er,createExportDeclaration:nr,updateExportDeclaration:tr,createNamedExports:rr,updateNamedExports:function(e,n){return e.elements!==n?t(rr(n),e):e},createExportSpecifier:ir,updateExportSpecifier:function(e,n,r,i){return e.isTypeOnly!==n||e.propertyName!==r||e.name!==i?t(ir(n,r,i),e):e},createMissingDeclaration:function(){const e=E(279);return e.jsDoc=void 0,e},createExternalModuleReference:ar,updateExternalModuleReference:function(e,n){return e.expression!==n?t(ar(n),e):e},get createJSDocAllType(){return l(315)},get createJSDocUnknownType(){return l(316)},get createJSDocNonNullableType(){return _(318)},get updateJSDocNonNullableType(){return p(318)},get createJSDocNullableType(){return _(317)},get updateJSDocNullableType(){return p(317)},get createJSDocOptionalType(){return d(319)},get updateJSDocOptionalType(){return u(319)},get createJSDocVariadicType(){return d(321)},get updateJSDocVariadicType(){return u(321)},get createJSDocNamepathType(){return d(322)},get updateJSDocNamepathType(){return u(322)},createJSDocFunctionType:cr,updateJSDocFunctionType:function(e,n,r){return e.parameters!==n||e.type!==r?t(cr(n,r),e):e},createJSDocTypeLiteral:lr,updateJSDocTypeLiteral:function(e,n,r){return e.jsDocPropertyTags!==n||e.isArrayType!==r?t(lr(n,r),e):e},createJSDocTypeExpression:dr,updateJSDocTypeExpression:function(e,n){return e.type!==n?t(dr(n),e):e},createJSDocSignature:ur,updateJSDocSignature:function(e,n,r,i){return e.typeParameters!==n||e.parameters!==r||e.type!==i?t(ur(n,r,i),e):e},createJSDocTemplateTag:mr,updateJSDocTemplateTag:function(e,n=_r(e),r,i,a){return e.tagName!==n||e.constraint!==r||e.typeParameters!==i||e.comment!==a?t(mr(n,r,i,a),e):e},createJSDocTypedefTag:hr,updateJSDocTypedefTag:function(e,n=_r(e),r,i,a){return e.tagName!==n||e.typeExpression!==r||e.fullName!==i||e.comment!==a?t(hr(n,r,i,a),e):e},createJSDocParameterTag:gr,updateJSDocParameterTag:function(e,n=_r(e),r,i,a,o,s){return e.tagName!==n||e.name!==r||e.isBracketed!==i||e.typeExpression!==a||e.isNameFirst!==o||e.comment!==s?t(gr(n,r,i,a,o,s),e):e},createJSDocPropertyTag:yr,updateJSDocPropertyTag:function(e,n=_r(e),r,i,a,o,s){return e.tagName!==n||e.name!==r||e.isBracketed!==i||e.typeExpression!==a||e.isNameFirst!==o||e.comment!==s?t(yr(n,r,i,a,o,s),e):e},createJSDocCallbackTag:vr,updateJSDocCallbackTag:function(e,n=_r(e),r,i,a){return e.tagName!==n||e.typeExpression!==r||e.fullName!==i||e.comment!==a?t(vr(n,r,i,a),e):e},createJSDocOverloadTag:br,updateJSDocOverloadTag:function(e,n=_r(e),r,i){return e.tagName!==n||e.typeExpression!==r||e.comment!==i?t(br(n,r,i),e):e},createJSDocAugmentsTag:Er,updateJSDocAugmentsTag:function(e,n=_r(e),r,i){return e.tagName!==n||e.class!==r||e.comment!==i?t(Er(n,r,i),e):e},createJSDocImplementsTag:Tr,updateJSDocImplementsTag:function(e,n=_r(e),r,i){return e.tagName!==n||e.class!==r||e.comment!==i?t(Tr(n,r,i),e):e},createJSDocSeeTag:xr,updateJSDocSeeTag:function(e,n,r,i){return e.tagName!==n||e.name!==r||e.comment!==i?t(xr(n,r,i),e):e},createJSDocNameReference:Sr,updateJSDocNameReference:function(e,n){return e.name!==n?t(Sr(n),e):e},createJSDocMemberName:Ar,updateJSDocMemberName:function(e,n,r){return e.left!==n||e.right!==r?t(Ar(n,r),e):e},createJSDocLink:Lr,updateJSDocLink:function(e,n,r){return e.name!==n?t(Lr(n,r),e):e},createJSDocLinkCode:Cr,updateJSDocLinkCode:function(e,n,r){return e.name!==n?t(Cr(n,r),e):e},createJSDocLinkPlain:kr,updateJSDocLinkPlain:function(e,n,r){return e.name!==n?t(kr(n,r),e):e},get createJSDocTypeTag(){return h(347)},get updateJSDocTypeTag(){return g(347)},get createJSDocReturnTag(){return h(345)},get updateJSDocReturnTag(){return g(345)},get createJSDocThisTag(){return h(346)},get updateJSDocThisTag(){return g(346)},get createJSDocAuthorTag(){return f(333)},get updateJSDocAuthorTag(){return m(333)},get createJSDocClassTag(){return f(335)},get updateJSDocClassTag(){return m(335)},get createJSDocPublicTag(){return f(336)},get updateJSDocPublicTag(){return m(336)},get createJSDocPrivateTag(){return f(337)},get updateJSDocPrivateTag(){return m(337)},get createJSDocProtectedTag(){return f(338)},get updateJSDocProtectedTag(){return m(338)},get createJSDocReadonlyTag(){return f(339)},get updateJSDocReadonlyTag(){return m(339)},get createJSDocOverrideTag(){return f(340)},get updateJSDocOverrideTag(){return m(340)},get createJSDocDeprecatedTag(){return f(334)},get updateJSDocDeprecatedTag(){return m(334)},get createJSDocThrowsTag(){return h(352)},get updateJSDocThrowsTag(){return g(352)},get createJSDocSatisfiesTag(){return h(353)},get updateJSDocSatisfiesTag(){return g(353)},createJSDocEnumTag:Nr,updateJSDocEnumTag:function(e,n=_r(e),r,i){return e.tagName!==n||e.typeExpression!==r||e.comment!==i?t(Nr(n,r,i),e):e},createJSDocUnknownTag:Rr,updateJSDocUnknownTag:function(e,n,r){return e.tagName!==n||e.comment!==r?t(Rr(n,r),e):e},createJSDocText:Dr,updateJSDocText:function(e,n){return e.text!==n?t(Dr(n),e):e},createJSDocComment:Or,updateJSDocComment:function(e,n,r){return e.comment!==n||e.tags!==r?t(Or(n,r),e):e},createJsxElement:Mr,updateJsxElement:function(e,n,r,i){return e.openingElement!==n||e.children!==r||e.closingElement!==i?t(Mr(n,r,i),e):e},createJsxSelfClosingElement:Pr,updateJsxSelfClosingElement:function(e,n,r,i){return e.tagName!==n||e.typeArguments!==r||e.attributes!==i?t(Pr(n,r,i),e):e},createJsxOpeningElement:Fr,updateJsxOpeningElement:function(e,n,r,i){return e.tagName!==n||e.typeArguments!==r||e.attributes!==i?t(Fr(n,r,i),e):e},createJsxClosingElement:Gr,updateJsxClosingElement:function(e,n){return e.tagName!==n?t(Gr(n),e):e},createJsxFragment:Br,createJsxText:Ur,updateJsxText:function(e,n,r){return e.text!==n||e.containsOnlyTriviaWhiteSpaces!==r?t(Ur(n,r),e):e},createJsxOpeningFragment:function(){const e=b(286);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=b(287);return e.transformFlags|=2,e},updateJsxFragment:function(e,n,r,i){return e.openingFragment!==n||e.children!==r||e.closingFragment!==i?t(Br(n,r,i),e):e},createJsxAttribute:Vr,updateJsxAttribute:function(e,n,r){return e.name!==n||e.initializer!==r?t(Vr(n,r),e):e},createJsxAttributes:jr,updateJsxAttributes:function(e,n){return e.properties!==n?t(jr(n),e):e},createJsxSpreadAttribute:Hr,updateJsxSpreadAttribute:function(e,n){return e.expression!==n?t(Hr(n),e):e},createJsxExpression:Kr,updateJsxExpression:function(e,n){return e.expression!==n?t(Kr(e.dotDotDotToken,n),e):e},createCaseClause:Wr,updateCaseClause:function(e,n,r){return e.expression!==n||e.statements!==r?t(Wr(n,r),e):e},createDefaultClause:zr,updateDefaultClause:function(e,n){return e.statements!==n?t(zr(n),e):e},createHeritageClause:qr,updateHeritageClause:function(e,n){return e.types!==n?t(qr(e.token,n),e):e},createCatchClause:Jr,updateCatchClause:function(e,n,r){return e.variableDeclaration!==n||e.block!==r?t(Jr(n,r),e):e},createPropertyAssignment:Xr,updatePropertyAssignment:function(e,n,r){return e.name!==n||e.initializer!==r?function(e,n){e!==n&&(e.modifiers=n.modifiers,e.questionToken=n.questionToken,e.exclamationToken=n.exclamationToken);return t(e,n)}(Xr(n,r),e):e},createShorthandPropertyAssignment:Yr,updateShorthandPropertyAssignment:function(e,n,r){return e.name!==n||e.objectAssignmentInitializer!==r?function(e,n){e!==n&&(e.modifiers=n.modifiers,e.questionToken=n.questionToken,e.exclamationToken=n.exclamationToken,e.equalsToken=n.equalsToken);return t(e,n)}(Yr(n,r),e):e},createSpreadAssignment:$r,updateSpreadAssignment:function(e,n){return e.expression!==n?t($r(n),e):e},createEnumMember:Qr,updateEnumMember:function(e,n,r){return e.name!==n||e.initializer!==r?t(Qr(n,r),e):e},createSourceFile:function(e,t,r){const i=n.createBaseSourceFileNode(308);return i.statements=v(e),i.endOfFileToken=t,i.flags|=r,i.text="",i.fileName="",i.path="",i.resolvedPath="",i.originalFileName="",i.languageVersion=0,i.languageVariant=0,i.scriptKind=0,i.isDeclarationFile=!1,i.hasNoDefaultLib=!1,i.transformFlags|=kA(i.statements)|CA(i.endOfFileToken),i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.nodeCount=0,i.identifierCount=0,i.symbolCount=0,i.parseDiagnostics=void 0,i.bindDiagnostics=void 0,i.bindSuggestionDiagnostics=void 0,i.lineMap=void 0,i.externalModuleIndicator=void 0,i.setExternalModuleIndicator=void 0,i.pragmas=void 0,i.checkJsDirective=void 0,i.referencedFiles=void 0,i.typeReferenceDirectives=void 0,i.libReferenceDirectives=void 0,i.amdDependencies=void 0,i.commentDirectives=void 0,i.identifiers=void 0,i.packageJsonLocations=void 0,i.packageJsonScope=void 0,i.imports=void 0,i.moduleAugmentations=void 0,i.ambientModuleNames=void 0,i.resolvedModules=void 0,i.classifiableNames=void 0,i.impliedNodeFormat=void 0,i},updateSourceFile:function(e,n,r=e.isDeclarationFile,i=e.referencedFiles,a=e.typeReferenceDirectives,o=e.hasNoDefaultLib,s=e.libReferenceDirectives){return e.statements!==n||e.isDeclarationFile!==r||e.referencedFiles!==i||e.typeReferenceDirectives!==a||e.hasNoDefaultLib!==o||e.libReferenceDirectives!==s?t(function(e,n,t,r,i,a,o){const s=ei(e);return s.statements=v(n),s.isDeclarationFile=t,s.referencedFiles=r,s.typeReferenceDirectives=i,s.hasNoDefaultLib=a,s.libReferenceDirectives=o,s.transformFlags=kA(s.statements)|CA(s.endOfFileToken),s}(e,n,r,i,a,o,s),e):e},createRedirectedSourceFile:Zr,createBundle:ni,updateBundle:function(e,n,r=i){return e.sourceFiles!==n||e.prepends!==r?t(ni(n,r),e):e},createUnparsedSource:function(e,n,t){const r=b(310);return r.prologues=e,r.syntheticReferences=n,r.texts=t,r.fileName="",r.text="",r.referencedFiles=i,r.libReferenceDirectives=i,r.getLineAndCharacterOfPosition=e=>Ss(r,e),r},createUnparsedPrologue:function(e){return ti(303,e)},createUnparsedPrepend:function(e,n){const t=ti(304,e);return t.texts=n,t},createUnparsedTextLike:function(e,n){return ti(n?306:305,e)},createUnparsedSyntheticReference:function(e){const n=b(307);return n.data=e.data,n.section=e,n},createInputFiles:function(){const e=b(311);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,n=!1,t){const r=b(234);return r.type=e,r.isSpread=n,r.tupleNameSource=t,r},createSyntaxList:function(e){const n=b(354);return n._children=e,n},createNotEmittedStatement:function(e){const n=b(355);return n.original=e,VN(n,e),n},createPartiallyEmittedExpression:ri,updatePartiallyEmittedExpression:ii,createCommaListExpression:oi,updateCommaListExpression:function(e,n){return e.elements!==n?t(oi(n),e):e},createEndOfDeclarationMarker:function(e){const n=b(359);return n.emitNode={},n.original=e,n},createMergeDeclarationMarker:function(e){const n=b(358);return n.emitNode={},n.original=e,n},createSyntheticReferenceExpression:si,updateSyntheticReferenceExpression:function(e,n,r){return e.expression!==n||e.thisArg!==r?t(si(n,r),e):e},cloneNode:ci,get createComma(){return o(27)},get createAssignment(){return o(63)},get createLogicalOr(){return o(56)},get createLogicalAnd(){return o(55)},get createBitwiseOr(){return o(51)},get createBitwiseXor(){return o(52)},get createBitwiseAnd(){return o(50)},get createStrictEquality(){return o(36)},get createStrictInequality(){return o(37)},get createEquality(){return o(34)},get createInequality(){return o(35)},get createLessThan(){return o(29)},get createLessThanEquals(){return o(32)},get createGreaterThan(){return o(31)},get createGreaterThanEquals(){return o(33)},get createLeftShift(){return o(47)},get createRightShift(){return o(48)},get createUnsignedRightShift(){return o(49)},get createAdd(){return o(39)},get createSubtract(){return o(40)},get createMultiply(){return o(41)},get createDivide(){return o(43)},get createModulo(){return o(44)},get createExponent(){return o(42)},get createPrefixPlus(){return s(39)},get createPrefixMinus(){return s(40)},get createPrefixIncrement(){return s(45)},get createPrefixDecrement(){return s(46)},get createBitwiseNot(){return s(54)},get createLogicalNot(){return s(53)},get createPostfixIncrement(){return c(45)},get createPostfixDecrement(){return c(46)},createImmediatelyInvokedFunctionExpression:function(e,n,t){return ln(vn(void 0,void 0,void 0,void 0,n?[n]:[],void 0,tt(e,!0)),void 0,t?[t]:[])},createImmediatelyInvokedArrowFunction:function(e,n,t){return ln(En(void 0,void 0,n?[n]:[],void 0,void 0,tt(e,!0)),void 0,t?[t]:[])},createVoidZero:li,createExportDefault:function(e){return Zt(void 0,!1,e)},createExternalModuleExport:function(e){return nr(void 0,!1,rr([ir(!1,void 0,e)]))},createTypeCheck:function(e,n){return"undefined"===n?y.createStrictEquality(e,li()):y.createStrictEquality(Ln(e),C(n))},createMethodCall:di,createGlobalMethodCall:ui,createFunctionBindCall:function(e,n,t){return di(e,"bind",[n,...t])},createFunctionCallCall:function(e,n,t){return di(e,"call",[n,...t])},createFunctionApplyCall:function(e,n,t){return di(e,"apply",[n,t])},createArraySliceCall:function(e,n){return di(e,"slice",void 0===n?[]:[xi(n)])},createArrayConcatCall:function(e,n){return di(e,"concat",n)},createObjectDefinePropertyCall:function(e,n,t){return ui("Object","defineProperty",[e,xi(n),t])},createObjectGetOwnPropertyDescriptorCall:function(e,n){return ui("Object","getOwnPropertyDescriptor",[e,xi(n)])},createReflectGetCall:function(e,n,t){return ui("Reflect","get",t?[e,n,t]:[e,n])},createReflectSetCall:function(e,n,t,r){return ui("Reflect","set",r?[e,n,t,r]:[e,n,t])},createPropertyDescriptor:function(e,n){const t=[];_i(t,"enumerable",xi(e.enumerable)),_i(t,"configurable",xi(e.configurable));let r=_i(t,"writable",xi(e.writable));r=_i(t,"value",e.value)||r;let i=_i(t,"get",e.get);return i=_i(t,"set",e.set)||i,Nt.assert(!(r&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Qe(t,!n)},createCallBinding:function(e,n,t,i=!1){const a=qR(e,15);let o,s;ah(a)?(o=B(),s=a):VC(a)?(o=B(),s=void 0!==t&&t<2?VN(R("_super"),a):a):8192&df(a)?(o=li(),s=r().parenthesizeLeftSideOfAccess(a,!1)):Mk(a)?pi(a.expression,i)?(o=D(n),s=en(VN(y.createAssignment(o,a.expression),a.expression),a.name),VN(s,a)):(o=a.expression,s=a):Pk(a)?pi(a.expression,i)?(o=D(n),s=an(VN(y.createAssignment(o,a.expression),a.expression),a.argumentExpression),VN(s,a)):(o=a.expression,s=a):(o=li(),s=r().parenthesizeLeftSideOfAccess(e,!1));return{target:s,thisArg:o}},createAssignmentTargetWrapper:function(e,n){return en(hn(Qe([_e(void 0,"value",[J(void 0,void 0,e,void 0,void 0,void 0)],tt([ot(n)]))])),"value")},inlineExpressions:function(e){return e.length>10?oi(e):We(e,y.createComma)},getInternalName:function(e,n,t){return fi(e,n,t,98304)},getLocalName:function(e,n,t){return fi(e,n,t,32768)},getExportName:mi,getDeclarationName:function(e,n,t){return fi(e,n,t)},getNamespaceMemberName:hi,getExternalModuleOrNamespaceExportName:function(e,n,t,r){if(e&&fb(n,1))return hi(e,fi(n),t,r);return mi(n,t,r)},restoreOuterExpressions:function e(n,t,r=15){if(n&&zR(n,r)&&(i=n,!(Vk(i)&&$y(i)&&$y(zA(i))&&$y(QA(i)))||ce(eL(i))||ce(rL(i))))return function(e,n){switch(e.kind){case 214:return yn(e,n);case 213:return mn(e,e.type,n);case 231:return qn(e,n,e.type);case 235:return $n(e,n,e.type);case 232:return Xn(e,n);case 356:return ii(e,n)}}(n,e(n.expression,t));var i;return t},restoreEnclosingLabel:function e(n,t,r){if(!t)return n;const i=bt(t,t.label,kI(t.statement)?e(n,t.statement):n);r&&r(t);return i},createUseStrictPrologue:gi,copyPrologue:function(e,n,t,r){const i=yi(e,n,0,t);return vi(e,n,i,r)},copyStandardPrologue:yi,copyCustomPrologue:vi,ensureUseStrict:function(e){if(!UR(e))return VN(v([gi(),...e]),e);return e},liftToBlock:function(e){return Nt.assert(N(e,Uu),"Cannot lift nodes to a Block."),Be(e)||tt(e)},mergeLexicalEnvironment:function(e,n){if(!ce(n))return e;const t=bi(e,hm,0),r=bi(e,ym,t),i=bi(e,bm,r),a=bi(n,hm,0),o=bi(n,ym,a),s=bi(n,bm,o),c=bi(n,gm,s);Nt.assert(c===n.length,"Expected declarations to be valid standard or custom prologues");const l=ad(e)?e.slice():e;c>s&&l.splice(i,0,...n.slice(s,c));s>o&&l.splice(r,0,...n.slice(o,s));o>a&&l.splice(t,0,...n.slice(a,o));if(a>0)if(0===t)l.splice(0,0,...n.slice(0,a));else{const r=new Map;for(let n=0;n<t;n++){const t=e[n];r.set(t.expression.text,!0)}for(let e=a-1;e>=0;e--){const t=n[e];r.has(t.expression.text)||l.unshift(t)}}if(ad(e))return VN(v(l,e.hasTrailingComma),e);return e},updateModifiers:function(e,n){var t;let r;r="number"===typeof n?H(n):n;return zC(e)?q(e,r,e.name,e.constraint,e.default):qC(e)?X(e,r,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):lk(e)?Ae(e,r,e.typeParameters,e.parameters,e.type):XC(e)?Z(e,r,e.name,e.questionToken,e.type):YC(e)?ne(e,r,e.name,null!=(t=e.questionToken)?t:e.exclamationToken,e.type,e.initializer):$C(e)?re(e,r,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):QC(e)?ae(e,r,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):ek(e)?le(e,r,e.parameters,e.body):nk(e)?ue(e,r,e.name,e.parameters,e.type,e.body):tk(e)?pe(e,r,e.name,e.parameters,e.body):ak(e)?ge(e,r,e.parameters,e.type):jk(e)?bn(e,r,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):Hk(e)?xn(e,r,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):nI(e)?Kn(e,r,e.name,e.typeParameters,e.heritageClauses,e.members):fI(e)?it(e,r,e.declarationList):OI(e)?Lt(e,r,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):MI(e)?kt(e,r,e.name,e.typeParameters,e.heritageClauses,e.members):PI(e)?wt(e,r,e.name,e.typeParameters,e.heritageClauses,e.members):FI(e)?Dt(e,r,e.name,e.typeParameters,e.type):GI(e)?Mt(e,r,e.name,e.members):BI(e)?Ft(e,r,e.name,e.body):HI(e)?jt(e,r,e.isTypeOnly,e.name,e.moduleReference):KI(e)?Kt(e,r,e.importClause,e.moduleSpecifier,e.assertClause):ZI(e)?er(e,r,e.expression):ew(e)?tr(e,r,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.assertClause):Nt.assertNever(e)}};return A(pA,(e=>e(y))),y;function v(e,n){if(void 0===e||e===i)e=[];else if(ad(e)){if(void 0===n||e.hasTrailingComma===n)return void 0===e.transformFlags&&IA(e),Nt.attachNodeArrayDebugInfo(e),e;const t=e.slice();return t.pos=e.pos,t.end=e.end,t.hasTrailingComma=n,t.transformFlags=e.transformFlags,Nt.attachNodeArrayDebugInfo(t),t}const t=e.length,r=t>=1&&t<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!n,r.transformFlags=0,IA(r),Nt.attachNodeArrayDebugInfo(r),r}function b(e){return n.createBaseNode(e)}function E(e){const n=b(e);return n.symbol=void 0,n.localSymbol=void 0,n}function T(e,n){return e!==n&&(e.typeArguments=n.typeArguments),t(e,n)}function x(e,n=0){const t=E(8);return t.text="number"===typeof e?e+"":e,t.numericLiteralFlags=n,384&n&&(t.transformFlags|=1024),t}function S(e){const n=F(9);return n.text="string"===typeof e?e:mS(e)+"n",n.transformFlags|=4,n}function L(e,n){const t=E(10);return t.text=e,t.singleQuote=n,t}function C(e,n,t){const r=L(e,n);return r.hasExtendedUnicodeEscape=t,t&&(r.transformFlags|=1024),r}function k(e){const n=F(13);return n.text=e,n}function I(e){const t=n.createBaseIdentifierNode(79);return t.escapedText=e,t.jsDoc=void 0,t.flowNode=void 0,t.symbol=void 0,t}function w(e,n,t,r){const i=I(Gc(e));return EL(i,{flags:n,id:uA,prefix:t,suffix:r}),uA++,i}function R(e,n,t){void 0===n&&e&&(n=hs(e)),79===n&&(n=void 0);const r=I(Gc(e));return t&&(r.flags|=128),"await"===r.escapedText&&(r.transformFlags|=67108864),128&r.flags&&(r.transformFlags|=1024),r}function D(e,n,t,r){let i=1;n&&(i|=8);const a=w("",i,t,r);return e&&e(a),a}function O(e,n=0,t,r){Nt.assert(!(7&n),"Argument out of range: flags");(t||r)&&(n|=16);const i=w(e?Fl(e)?NN(!1,t,e,r,Uc):`generated@${ZG(e)}`:"",4|n,t,r);return i.original=e,i}function M(e){const t=n.createBasePrivateIdentifierNode(80);return t.escapedText=e,t.transformFlags|=16777216,t}function P(e,n,t,r){const i=M(Gc(e));return EL(i,{flags:n,id:uA,prefix:t,suffix:r}),uA++,i}function F(e){return n.createBaseTokenNode(e)}function G(e){Nt.assert(e>=0&&e<=162,"Invalid token"),Nt.assert(e<=14||e>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),Nt.assert(e<=8||e>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),Nt.assert(79!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const n=F(e);let t=0;switch(e){case 132:t=384;break;case 123:case 121:case 122:case 146:case 126:case 136:case 85:case 131:case 148:case 160:case 144:case 149:case 101:case 145:case 161:case 152:case 134:case 153:case 114:case 157:case 155:t=1;break;case 106:t=134218752,n.flowNode=void 0;break;case 124:t=1024;break;case 127:t=16777216;break;case 108:t=16384,n.flowNode=void 0}return t&&(n.transformFlags|=t),n}function B(){return G(108)}function U(){return G(110)}function V(){return G(95)}function j(e){return G(e)}function H(e){const n=[];return 1&e&&n.push(j(93)),2&e&&n.push(j(136)),1024&e&&n.push(j(88)),2048&e&&n.push(j(85)),4&e&&n.push(j(123)),8&e&&n.push(j(121)),16&e&&n.push(j(122)),256&e&&n.push(j(126)),32&e&&n.push(j(124)),16384&e&&n.push(j(161)),64&e&&n.push(j(146)),128&e&&n.push(j(127)),512&e&&n.push(j(132)),32768&e&&n.push(j(101)),65536&e&&n.push(j(145)),n.length?n:void 0}function K(e,n){const t=b(163);return t.left=e,t.right=Ti(n),t.transformFlags|=CA(t.left)|LA(t.right),t.flowNode=void 0,t}function W(e){const n=b(164);return n.expression=r().parenthesizeExpressionOfComputedPropertyName(e),n.transformFlags|=132096|CA(n.expression),n}function z(e,n,t,r){const i=E(165);return i.modifiers=Ei(e),i.name=Ti(n),i.constraint=t,i.default=r,i.transformFlags=1,i.expression=void 0,i.jsDoc=void 0,i}function q(e,n,r,i,a){return e.modifiers!==n||e.name!==r||e.constraint!==i||e.default!==a?t(z(n,r,i,a),e):e}function J(e,n,t,r,i,a){var o,s;const c=E(166);return c.modifiers=Ei(e),c.dotDotDotToken=n,c.name=Ti(t),c.questionToken=r,c.type=i,c.initializer=Si(a),Jv(c.name)?c.transformFlags=1:c.transformFlags=kA(c.modifiers)|CA(c.dotDotDotToken)|AA(c.name)|CA(c.questionToken)|CA(c.initializer)|((null!=(o=c.questionToken)?o:c.type)?1:0)|((null!=(s=c.dotDotDotToken)?s:c.initializer)?1024:0)|(16476&Nb(c.modifiers)?8192:0),c.jsDoc=void 0,c}function X(e,n,r,i,a,o,s){return e.modifiers!==n||e.dotDotDotToken!==r||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?t(J(n,r,i,a,o,s),e):e}function Y(e){const n=b(167);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.transformFlags|=33562625|CA(n.expression),n}function $(e,n,t,r){const i=E(168);return i.modifiers=Ei(e),i.name=Ti(n),i.type=r,i.questionToken=t,i.transformFlags=1,i.initializer=void 0,i.jsDoc=void 0,i}function Z(e,n,r,i,a){return e.modifiers!==n||e.name!==r||e.questionToken!==i||e.type!==a?function(e,n){e!==n&&(e.initializer=n.initializer);return t(e,n)}($(n,r,i,a),e):e}function ee(e,n,t,r,i){const a=E(169);a.modifiers=Ei(e),a.name=Ti(n),a.questionToken=t&&AC(t)?t:void 0,a.exclamationToken=t&&SC(t)?t:void 0,a.type=r,a.initializer=Si(i);const o=16777216&a.flags||2&Nb(a.modifiers);return a.transformFlags=kA(a.modifiers)|AA(a.name)|CA(a.initializer)|(o||a.questionToken||a.exclamationToken||a.type?1:0)|(WC(a.name)||32&Nb(a.modifiers)&&a.initializer?8192:0)|16777216,a.jsDoc=void 0,a}function ne(e,n,r,i,a,o){return e.modifiers!==n||e.name!==r||e.questionToken!==(void 0!==i&&AC(i)?i:void 0)||e.exclamationToken!==(void 0!==i&&SC(i)?i:void 0)||e.type!==a||e.initializer!==o?t(ee(n,r,i,a,o),e):e}function te(e,n,t,r,i,a){const o=E(170);return o.modifiers=Ei(e),o.name=Ti(n),o.questionToken=t,o.typeParameters=Ei(r),o.parameters=Ei(i),o.type=a,o.transformFlags=1,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.typeArguments=void 0,o}function re(e,n,t,r,i,a,o){return e.modifiers!==n||e.name!==t||e.questionToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o?T(te(n,t,r,i,a,o),e):e}function ie(e,n,t,r,i,a,o,s){const c=E(171);if(c.modifiers=Ei(e),c.asteriskToken=n,c.name=Ti(t),c.questionToken=r,c.exclamationToken=void 0,c.typeParameters=Ei(i),c.parameters=v(a),c.type=o,c.body=s,c.body){const e=512&Nb(c.modifiers),n=!!c.asteriskToken,t=e&&n;c.transformFlags=kA(c.modifiers)|CA(c.asteriskToken)|AA(c.name)|CA(c.questionToken)|kA(c.typeParameters)|kA(c.parameters)|CA(c.type)|-67108865&CA(c.body)|(t?128:e?256:n?2048:0)|(c.questionToken||c.typeParameters||c.type?1:0)|1024}else c.transformFlags=1;return c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function ae(e,n,r,i,a,o,s,c,l){return e.modifiers!==n||e.asteriskToken!==r||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==l?function(e,n){e!==n&&(e.exclamationToken=n.exclamationToken);return t(e,n)}(ie(n,r,i,a,o,s,c,l),e):e}function oe(e){const n=E(172);return n.body=e,n.transformFlags=16777216|CA(e),n.modifiers=void 0,n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.endFlowNode=void 0,n.returnFlowNode=void 0,n}function se(e,n,t){const r=E(173);return r.modifiers=Ei(e),r.parameters=v(n),r.body=t,r.transformFlags=kA(r.modifiers)|kA(r.parameters)|-67108865&CA(r.body)|1024,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function le(e,n,t,r){return e.modifiers!==n||e.parameters!==t||e.body!==r?function(e,n){e!==n&&(e.typeParameters=n.typeParameters,e.type=n.type);return T(e,n)}(se(n,t,r),e):e}function de(e,n,t,r,i){const a=E(174);return a.modifiers=Ei(e),a.name=Ti(n),a.parameters=v(t),a.type=r,a.body=i,a.body?a.transformFlags=kA(a.modifiers)|AA(a.name)|kA(a.parameters)|CA(a.type)|-67108865&CA(a.body)|(a.type?1:0):a.transformFlags=1,a.typeArguments=void 0,a.typeParameters=void 0,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.flowNode=void 0,a.endFlowNode=void 0,a.returnFlowNode=void 0,a}function ue(e,n,t,r,i,a){return e.modifiers!==n||e.name!==t||e.parameters!==r||e.type!==i||e.body!==a?function(e,n){e!==n&&(e.typeParameters=n.typeParameters);return T(e,n)}(de(n,t,r,i,a),e):e}function _e(e,n,t,r){const i=E(175);return i.modifiers=Ei(e),i.name=Ti(n),i.parameters=v(t),i.body=r,i.body?i.transformFlags=kA(i.modifiers)|AA(i.name)|kA(i.parameters)|-67108865&CA(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.type=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function pe(e,n,t,r,i){return e.modifiers!==n||e.name!==t||e.parameters!==r||e.body!==i?function(e,n){e!==n&&(e.typeParameters=n.typeParameters,e.type=n.type);return T(e,n)}(_e(n,t,r,i),e):e}function fe(e,n,t){const r=E(176);return r.typeParameters=Ei(e),r.parameters=Ei(n),r.type=t,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function me(e,n,t){const r=E(177);return r.typeParameters=Ei(e),r.parameters=Ei(n),r.type=t,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function he(e,n,t){const r=E(178);return r.modifiers=Ei(e),r.parameters=Ei(n),r.type=t,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ge(e,n,t,r){return e.parameters!==t||e.type!==r||e.modifiers!==n?T(he(n,t,r),e):e}function ye(e,n){const t=b(201);return t.type=e,t.literal=n,t.transformFlags=1,t}function ve(e,n,t){const r=b(179);return r.assertsModifier=e,r.parameterName=Ti(n),r.type=t,r.transformFlags=1,r}function be(e,n){const t=b(180);return t.typeName=Ti(e),t.typeArguments=n&&r().parenthesizeTypeArguments(v(n)),t.transformFlags=1,t}function Ee(e,n,t){const r=E(181);return r.typeParameters=Ei(e),r.parameters=Ei(n),r.type=t,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function xe(...e){return 4===e.length?Se(...e):3===e.length?function(e,n,t){return Se(void 0,e,n,t)}(...e):Nt.fail("Incorrect number of arguments specified.")}function Se(e,n,t,r){const i=E(182);return i.modifiers=Ei(e),i.typeParameters=Ei(n),i.parameters=Ei(t),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.typeArguments=void 0,i}function Ae(e,n,t,r,i){return e.modifiers!==n||e.typeParameters!==t||e.parameters!==r||e.type!==i?T(xe(n,t,r,i),e):e}function Le(e,n){const t=b(183);return t.exprName=e,t.typeArguments=n&&r().parenthesizeTypeArguments(n),t.transformFlags=1,t}function Ce(e){const n=E(184);return n.members=v(e),n.transformFlags=1,n}function ke(e){const n=b(185);return n.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.transformFlags=1,n}function Ie(e){const n=b(186);return n.elements=v(r().parenthesizeElementTypesOfTupleType(e)),n.transformFlags=1,n}function we(e,n,t,r){const i=E(199);return i.dotDotDotToken=e,i.name=n,i.questionToken=t,i.type=r,i.transformFlags=1,i.jsDoc=void 0,i}function Re(e){const n=b(187);return n.type=r().parenthesizeTypeOfOptionalType(e),n.transformFlags=1,n}function Ne(e){const n=b(188);return n.type=e,n.transformFlags=1,n}function De(e,n,t){const r=b(e);return r.types=y.createNodeArray(t(n)),r.transformFlags=1,r}function Oe(e,n,r){return e.types!==n?t(De(e.kind,n,r),e):e}function Me(e,n,t,i){const a=b(191);return a.checkType=r().parenthesizeCheckTypeOfConditionalType(e),a.extendsType=r().parenthesizeExtendsTypeOfConditionalType(n),a.trueType=t,a.falseType=i,a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Pe(e){const n=b(192);return n.typeParameter=e,n.transformFlags=1,n}function Ge(e,n){const t=b(200);return t.head=e,t.templateSpans=v(n),t.transformFlags=1,t}function Ue(e,n,t,i,a=!1){const o=b(202);return o.argument=e,o.assertions=n,o.qualifier=t,o.typeArguments=i&&r().parenthesizeTypeArguments(i),o.isTypeOf=a,o.transformFlags=1,o}function Ve(e){const n=b(193);return n.type=e,n.transformFlags=1,n}function je(e,n){const t=b(195);return t.operator=e,t.type=146===e?r().parenthesizeOperandOfReadonlyTypeOperator(n):r().parenthesizeOperandOfTypeOperator(n),t.transformFlags=1,t}function He(e,n){const t=b(196);return t.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.indexType=n,t.transformFlags=1,t}function Ke(e,n,t,r,i,a){const o=E(197);return o.readonlyToken=e,o.typeParameter=n,o.nameType=t,o.questionToken=r,o.type=i,o.members=a&&v(a),o.transformFlags=1,o.locals=void 0,o.nextContainer=void 0,o}function qe(e){const n=b(198);return n.literal=e,n.transformFlags=1,n}function Je(e){const n=b(203);return n.elements=v(e),n.transformFlags|=525312|kA(n.elements),32768&n.transformFlags&&(n.transformFlags|=65664),n}function Xe(e){const n=b(204);return n.elements=v(e),n.transformFlags|=525312|kA(n.elements),n}function Ye(e,n,t,r){const i=E(205);return i.dotDotDotToken=e,i.propertyName=Ti(n),i.name=Ti(t),i.initializer=Si(r),i.transformFlags|=CA(i.dotDotDotToken)|AA(i.propertyName)|AA(i.name)|CA(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function $e(e,n){const t=b(206),i=e&&Fe(e),a=v(e,!(!i||!tI(i))||void 0);return t.elements=r().parenthesizeExpressionsOfCommaDelimitedList(a),t.multiLine=n,t.transformFlags|=kA(t.elements),t}function Qe(e,n){const t=E(207);return t.properties=v(e),t.multiLine=n,t.transformFlags|=kA(t.properties),t.jsDoc=void 0,t}function Ze(e,n,t){const r=E(208);return r.expression=e,r.questionDotToken=n,r.name=t,r.transformFlags=CA(r.expression)|CA(r.questionDotToken)|(IC(r.name)?LA(r.name):536870912|CA(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function en(e,n){const t=Ze(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Ti(n));return VC(e)&&(t.transformFlags|=384),t}function nn(e,n,t){const i=Ze(r().parenthesizeLeftSideOfAccess(e,!0),n,Ti(t));return i.flags|=32,i.transformFlags|=32,i}function tn(e,n,r,i){return Nt.assert(!!(32&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==n||e.questionDotToken!==r||e.name!==i?t(nn(n,r,i),e):e}function rn(e,n,t){const r=E(209);return r.expression=e,r.questionDotToken=n,r.argumentExpression=t,r.transformFlags|=CA(r.expression)|CA(r.questionDotToken)|CA(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function an(e,n){const t=rn(r().parenthesizeLeftSideOfAccess(e,!1),void 0,xi(n));return VC(e)&&(t.transformFlags|=384),t}function on(e,n,t){const i=rn(r().parenthesizeLeftSideOfAccess(e,!0),n,xi(t));return i.flags|=32,i.transformFlags|=32,i}function sn(e,n,r,i){return Nt.assert(!!(32&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==n||e.questionDotToken!==r||e.argumentExpression!==i?t(on(n,r,i),e):e}function cn(e,n,t,r){const i=E(210);return i.expression=e,i.questionDotToken=n,i.typeArguments=t,i.arguments=r,i.transformFlags|=CA(i.expression)|CA(i.questionDotToken)|kA(i.typeArguments)|kA(i.arguments),i.typeArguments&&(i.transformFlags|=1),ah(i.expression)&&(i.transformFlags|=16384),i}function ln(e,n,t){const i=cn(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Ei(n),r().parenthesizeExpressionsOfCommaDelimitedList(v(t)));return jC(i.expression)&&(i.transformFlags|=8388608),i}function dn(e,n,t,i){const a=cn(r().parenthesizeLeftSideOfAccess(e,!0),n,Ei(t),r().parenthesizeExpressionsOfCommaDelimitedList(v(i)));return a.flags|=32,a.transformFlags|=32,a}function un(e,n,r,i,a){return Nt.assert(!!(32&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==n||e.questionDotToken!==r||e.typeArguments!==i||e.arguments!==a?t(dn(n,r,i,a),e):e}function _n(e,n,t){const i=E(211);return i.expression=r().parenthesizeExpressionOfNew(e),i.typeArguments=Ei(n),i.arguments=t?r().parenthesizeExpressionsOfCommaDelimitedList(t):void 0,i.transformFlags|=CA(i.expression)|kA(i.typeArguments)|kA(i.arguments)|32,i.typeArguments&&(i.transformFlags|=1),i}function pn(e,n,t){const i=b(212);return i.tag=r().parenthesizeLeftSideOfAccess(e,!1),i.typeArguments=Ei(n),i.template=t,i.transformFlags|=CA(i.tag)|kA(i.typeArguments)|CA(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),sv(i.template)&&(i.transformFlags|=128),i}function fn(e,n){const t=b(213);return t.expression=r().parenthesizeOperandOfPrefixUnary(n),t.type=e,t.transformFlags|=CA(t.expression)|CA(t.type)|1,t}function mn(e,n,r){return e.type!==n||e.expression!==r?t(fn(n,r),e):e}function hn(e){const n=b(214);return n.expression=e,n.transformFlags=CA(n.expression),n.jsDoc=void 0,n}function yn(e,n){return e.expression!==n?t(hn(n),e):e}function vn(e,n,t,r,i,a,o){const s=E(215);s.modifiers=Ei(e),s.asteriskToken=n,s.name=Ti(t),s.typeParameters=Ei(r),s.parameters=v(i),s.type=a,s.body=o;const c=512&Nb(s.modifiers),l=!!s.asteriskToken,d=c&&l;return s.transformFlags=kA(s.modifiers)|CA(s.asteriskToken)|AA(s.name)|kA(s.typeParameters)|kA(s.parameters)|CA(s.type)|-67108865&CA(s.body)|(d?128:c?256:l?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function bn(e,n,t,r,i,a,o,s){return e.name!==r||e.modifiers!==n||e.asteriskToken!==t||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?T(vn(n,t,r,i,a,o,s),e):e}function En(e,n,t,i,a,o){const s=E(216);s.modifiers=Ei(e),s.typeParameters=Ei(n),s.parameters=v(t),s.type=i,s.equalsGreaterThanToken=null!=a?a:G(38),s.body=r().parenthesizeConciseBodyOfArrowFunction(o);const c=512&Nb(s.modifiers);return s.transformFlags=kA(s.modifiers)|kA(s.typeParameters)|kA(s.parameters)|CA(s.type)|CA(s.equalsGreaterThanToken)|-67108865&CA(s.body)|(s.typeParameters||s.type?1:0)|(c?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function xn(e,n,t,r,i,a,o){return e.modifiers!==n||e.typeParameters!==t||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?T(En(n,t,r,i,a,o),e):e}function Sn(e){const n=b(217);return n.expression=r().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=CA(n.expression),n}function Ln(e){const n=b(218);return n.expression=r().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=CA(n.expression),n}function Cn(e){const n=b(219);return n.expression=r().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=CA(n.expression),n}function kn(e){const n=b(220);return n.expression=r().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=2097536|CA(n.expression),n}function In(e,n){const t=b(221);return t.operator=e,t.operand=r().parenthesizeOperandOfPrefixUnary(n),t.transformFlags|=CA(t.operand),45!==e&&46!==e||!IC(t.operand)||yd(t.operand)||FR(t.operand)||(t.transformFlags|=268435456),t}function wn(e,n){const t=b(222);return t.operator=n,t.operand=r().parenthesizeOperandOfPostfixUnary(e),t.transformFlags|=CA(t.operand),!IC(t.operand)||yd(t.operand)||FR(t.operand)||(t.transformFlags|=268435456),t}function Dn(e,n,t){const i=E(223),a="number"===typeof(o=n)?G(o):o;var o;const s=a.kind;return i.left=r().parenthesizeLeftSideOfBinary(s,e),i.operatorToken=a,i.right=r().parenthesizeRightSideOfBinary(s,i.left,t),i.transformFlags|=CA(i.left)|CA(i.operatorToken)|CA(i.right),60===s?i.transformFlags|=32:63===s?Ok(i.left)?i.transformFlags|=5248|On(i.left):Dk(i.left)&&(i.transformFlags|=5120|On(i.left)):42===s||67===s?i.transformFlags|=512:Pb(s)&&(i.transformFlags|=16),101===s&&wC(i.left)&&(i.transformFlags|=536870912),i.jsDoc=void 0,i}function On(e){return BN(e)?65536:0}function Mn(e,n,t,i,a){const o=b(224);return o.condition=r().parenthesizeConditionOfConditionalExpression(e),o.questionToken=null!=n?n:G(57),o.whenTrue=r().parenthesizeBranchOfConditionalExpression(t),o.colonToken=null!=i?i:G(58),o.whenFalse=r().parenthesizeBranchOfConditionalExpression(a),o.transformFlags|=CA(o.condition)|CA(o.questionToken)|CA(o.whenTrue)|CA(o.colonToken)|CA(o.whenFalse),o}function Pn(e,n){const t=b(225);return t.head=e,t.templateSpans=v(n),t.transformFlags|=CA(t.head)|kA(t.templateSpans)|1024,t}function Fn(e,n,t,r=0){let i;if(Nt.assert(!(-2049&r),"Unsupported template flags."),void 0!==t&&t!==n&&(i=function(e,n){fA||(fA=Xs(99,!1,0));switch(e){case 14:fA.setText("`"+n+"`");break;case 15:fA.setText("`"+n+"${");break;case 16:fA.setText("}"+n+"${");break;case 17:fA.setText("}"+n+"`")}let t,r=fA.scan();19===r&&(r=fA.reScanTemplateToken(!1));if(fA.isUnterminated())return fA.setText(void 0),mA;switch(r){case 14:case 15:case 16:case 17:t=fA.getTokenValue()}if(void 0===t||1!==fA.scan())return fA.setText(void 0),mA;return fA.setText(void 0),t}(e,t),"object"===typeof i))return Nt.fail("Invalid raw text");if(void 0===n){if(void 0===i)return Nt.fail("Arguments 'text' and 'rawText' may not both be undefined.");n=i}else void 0!==i&&Nt.assert(n===i,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return n}function Gn(e){let n=1024;return e&&(n|=128),n}function Bn(e,n,t,r){const i=E(e);return i.text=n,i.rawText=t,i.templateFlags=2048&r,i.transformFlags=Gn(i.templateFlags),i}function Un(e,n,t,r){return 14===e?Bn(e,n,t,r):function(e,n,t,r){const i=F(e);return i.text=n,i.rawText=t,i.templateFlags=2048&r,i.transformFlags=Gn(i.templateFlags),i}(e,n,t,r)}function Vn(e,n){Nt.assert(!e||!!n,"A `YieldExpression` with an asteriskToken must have an expression.");const t=b(226);return t.expression=n&&r().parenthesizeExpressionForDisallowedComma(n),t.asteriskToken=e,t.transformFlags|=1049728|(CA(t.expression)|CA(t.asteriskToken)),t}function jn(e){const n=b(227);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.transformFlags|=33792|CA(n.expression),n}function Hn(e,n,t,r,i){const a=E(228);return a.modifiers=Ei(e),a.name=Ti(n),a.typeParameters=Ei(t),a.heritageClauses=Ei(r),a.members=v(i),a.transformFlags|=kA(a.modifiers)|AA(a.name)|kA(a.typeParameters)|kA(a.heritageClauses)|kA(a.members)|(a.typeParameters?1:0)|1024,a.jsDoc=void 0,a}function Kn(e,n,r,i,a,o){return e.modifiers!==n||e.name!==r||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?t(Hn(n,r,i,a,o),e):e}function Wn(e,n){const t=b(230);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.typeArguments=n&&r().parenthesizeTypeArguments(n),t.transformFlags|=CA(t.expression)|kA(t.typeArguments)|1024,t}function zn(e,n){const t=b(231);return t.expression=e,t.type=n,t.transformFlags|=CA(t.expression)|CA(t.type)|1,t}function qn(e,n,r){return e.expression!==n||e.type!==r?t(zn(n,r),e):e}function Jn(e){const n=b(232);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.transformFlags|=1|CA(n.expression),n}function Xn(e,n){return Xl(e)?Zn(e,n):e.expression!==n?t(Jn(n),e):e}function Yn(e,n){const t=b(235);return t.expression=e,t.type=n,t.transformFlags|=CA(t.expression)|CA(t.type)|1,t}function $n(e,n,r){return e.expression!==n||e.type!==r?t(Yn(n,r),e):e}function Qn(e){const n=b(232);return n.flags|=32,n.expression=r().parenthesizeLeftSideOfAccess(e,!0),n.transformFlags|=1|CA(n.expression),n}function Zn(e,n){return Nt.assert(!!(32&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==n?t(Qn(n),e):e}function et(e,n){const t=b(233);switch(t.keywordToken=e,t.name=n,t.transformFlags|=CA(t.name),e){case 103:t.transformFlags|=1024;break;case 100:t.transformFlags|=4;break;default:return Nt.assertNever(e)}return t.flowNode=void 0,t}function nt(e,n){const t=b(236);return t.expression=e,t.literal=n,t.transformFlags|=CA(t.expression)|CA(t.literal)|1024,t}function tt(e,n){const t=b(238);return t.statements=v(e),t.multiLine=n,t.transformFlags|=kA(t.statements),t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t}function rt(e,n){const t=b(240);return t.modifiers=Ei(e),t.declarationList=gn(n)?St(n):n,t.transformFlags|=kA(t.modifiers)|CA(t.declarationList),2&Nb(t.modifiers)&&(t.transformFlags=1),t.jsDoc=void 0,t.flowNode=void 0,t}function it(e,n,r){return e.modifiers!==n||e.declarationList!==r?t(rt(n,r),e):e}function at(){const e=b(239);return e.jsDoc=void 0,e}function ot(e){const n=b(241);return n.expression=r().parenthesizeExpressionOfExpressionStatement(e),n.transformFlags|=CA(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function st(e,n,t){const r=b(242);return r.expression=e,r.thenStatement=Ai(n),r.elseStatement=Ai(t),r.transformFlags|=CA(r.expression)|CA(r.thenStatement)|CA(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function ct(e,n){const t=b(243);return t.statement=Ai(e),t.expression=n,t.transformFlags|=CA(t.statement)|CA(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function lt(e,n){const t=b(244);return t.expression=e,t.statement=Ai(n),t.transformFlags|=CA(t.expression)|CA(t.statement),t.jsDoc=void 0,t.flowNode=void 0,t}function dt(e,n,t,r){const i=b(245);return i.initializer=e,i.condition=n,i.incrementor=t,i.statement=Ai(r),i.transformFlags|=CA(i.initializer)|CA(i.condition)|CA(i.incrementor)|CA(i.statement),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function ut(e,n,t){const r=b(246);return r.initializer=e,r.expression=n,r.statement=Ai(t),r.transformFlags|=CA(r.initializer)|CA(r.expression)|CA(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function _t(e,n,t,i){const a=b(247);return a.awaitModifier=e,a.initializer=n,a.expression=r().parenthesizeExpressionForDisallowedComma(t),a.statement=Ai(i),a.transformFlags|=CA(a.awaitModifier)|CA(a.initializer)|CA(a.expression)|CA(a.statement)|1024,e&&(a.transformFlags|=128),a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.flowNode=void 0,a}function ft(e){const n=b(248);return n.label=Ti(e),n.transformFlags|=4194304|CA(n.label),n.jsDoc=void 0,n.flowNode=void 0,n}function mt(e){const n=b(249);return n.label=Ti(e),n.transformFlags|=4194304|CA(n.label),n.jsDoc=void 0,n.flowNode=void 0,n}function ht(e){const n=b(250);return n.expression=e,n.transformFlags|=4194432|CA(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function gt(e,n){const t=b(251);return t.expression=e,t.statement=Ai(n),t.transformFlags|=CA(t.expression)|CA(t.statement),t.jsDoc=void 0,t.flowNode=void 0,t}function yt(e,n){const t=b(252);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.caseBlock=n,t.transformFlags|=CA(t.expression)|CA(t.caseBlock),t.jsDoc=void 0,t.flowNode=void 0,t.possiblyExhaustive=!1,t}function vt(e,n){const t=b(253);return t.label=Ti(e),t.statement=Ai(n),t.transformFlags|=CA(t.label)|CA(t.statement),t.jsDoc=void 0,t.flowNode=void 0,t}function bt(e,n,r){return e.label!==n||e.statement!==r?t(vt(n,r),e):e}function Et(e){const n=b(254);return n.expression=e,n.transformFlags|=CA(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function Tt(e,n,t){const r=b(255);return r.tryBlock=e,r.catchClause=n,r.finallyBlock=t,r.transformFlags|=CA(r.tryBlock)|CA(r.catchClause)|CA(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function xt(e,n,t,r){var i;const a=E(257);return a.name=Ti(e),a.exclamationToken=n,a.type=t,a.initializer=Si(r),a.transformFlags|=AA(a.name)|CA(a.initializer)|((null!=(i=a.exclamationToken)?i:a.type)?1:0),a.jsDoc=void 0,a}function St(e,n=0){const t=b(258);return t.flags|=3&n,t.declarations=v(e),t.transformFlags|=4194304|kA(t.declarations),3&n&&(t.transformFlags|=263168),t}function At(e,n,t,r,i,a,o){const s=E(259);if(s.modifiers=Ei(e),s.asteriskToken=n,s.name=Ti(t),s.typeParameters=Ei(r),s.parameters=v(i),s.type=a,s.body=o,!s.body||2&Nb(s.modifiers))s.transformFlags=1;else{const e=512&Nb(s.modifiers),n=!!s.asteriskToken,t=e&&n;s.transformFlags=kA(s.modifiers)|CA(s.asteriskToken)|AA(s.name)|kA(s.typeParameters)|kA(s.parameters)|CA(s.type)|-67108865&CA(s.body)|(t?128:e?256:n?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Lt(e,n,t,r,i,a,o,s){return e.modifiers!==n||e.asteriskToken!==t||e.name!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?function(e,n){e!==n&&e.modifiers===n.modifiers&&(e.modifiers=n.modifiers);return T(e,n)}(At(n,t,r,i,a,o,s),e):e}function Ct(e,n,t,r,i){const a=E(260);return a.modifiers=Ei(e),a.name=Ti(n),a.typeParameters=Ei(t),a.heritageClauses=Ei(r),a.members=v(i),2&Nb(a.modifiers)?a.transformFlags=1:(a.transformFlags|=kA(a.modifiers)|AA(a.name)|kA(a.typeParameters)|kA(a.heritageClauses)|kA(a.members)|(a.typeParameters?1:0)|1024,8192&a.transformFlags&&(a.transformFlags|=1)),a.jsDoc=void 0,a}function kt(e,n,r,i,a,o){return e.modifiers!==n||e.name!==r||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?t(Ct(n,r,i,a,o),e):e}function It(e,n,t,r,i){const a=E(261);return a.modifiers=Ei(e),a.name=Ti(n),a.typeParameters=Ei(t),a.heritageClauses=Ei(r),a.members=v(i),a.transformFlags=1,a.jsDoc=void 0,a}function wt(e,n,r,i,a,o){return e.modifiers!==n||e.name!==r||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?t(It(n,r,i,a,o),e):e}function Rt(e,n,t,r){const i=E(262);return i.modifiers=Ei(e),i.name=Ti(n),i.typeParameters=Ei(t),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Dt(e,n,r,i,a){return e.modifiers!==n||e.name!==r||e.typeParameters!==i||e.type!==a?t(Rt(n,r,i,a),e):e}function Ot(e,n,t){const r=E(263);return r.modifiers=Ei(e),r.name=Ti(n),r.members=v(t),r.transformFlags|=kA(r.modifiers)|CA(r.name)|kA(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Mt(e,n,r,i){return e.modifiers!==n||e.name!==r||e.members!==i?t(Ot(n,r,i),e):e}function Pt(e,n,t,r=0){const i=E(264);return i.modifiers=Ei(e),i.flags|=1044&r,i.name=n,i.body=t,2&Nb(i.modifiers)?i.transformFlags=1:i.transformFlags|=kA(i.modifiers)|CA(i.name)|CA(i.body)|1,i.transformFlags&=-67108865,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Ft(e,n,r,i){return e.modifiers!==n||e.name!==r||e.body!==i?t(Pt(n,r,i,e.flags),e):e}function Gt(e){const n=b(265);return n.statements=v(e),n.transformFlags|=kA(n.statements),n.jsDoc=void 0,n}function Bt(e){const n=b(266);return n.clauses=v(e),n.transformFlags|=kA(n.clauses),n.locals=void 0,n.nextContainer=void 0,n}function Ut(e){const n=E(267);return n.name=Ti(e),n.transformFlags|=1|LA(n.name),n.modifiers=void 0,n.jsDoc=void 0,n}function Vt(e,n,t,r){const i=E(268);return i.modifiers=Ei(e),i.name=Ti(t),i.isTypeOnly=n,i.moduleReference=r,i.transformFlags|=kA(i.modifiers)|LA(i.name)|CA(i.moduleReference),cw(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function jt(e,n,r,i,a){return e.modifiers!==n||e.isTypeOnly!==r||e.name!==i||e.moduleReference!==a?t(Vt(n,r,i,a),e):e}function Ht(e,n,t,r){const i=b(269);return i.modifiers=Ei(e),i.importClause=n,i.moduleSpecifier=t,i.assertClause=r,i.transformFlags|=CA(i.importClause)|CA(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Kt(e,n,r,i,a){return e.modifiers!==n||e.importClause!==r||e.moduleSpecifier!==i||e.assertClause!==a?t(Ht(n,r,i,a),e):e}function Wt(e,n,t){const r=E(270);return r.isTypeOnly=e,r.name=n,r.namedBindings=t,r.transformFlags|=CA(r.name)|CA(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function zt(e,n){const t=b(296);return t.elements=v(e),t.multiLine=n,t.transformFlags|=4,t}function qt(e,n){const t=b(297);return t.name=e,t.value=n,t.transformFlags|=4,t}function Jt(e,n){const t=b(298);return t.assertClause=e,t.multiLine=n,t}function Xt(e){const n=E(271);return n.name=e,n.transformFlags|=CA(n.name),n.transformFlags&=-67108865,n}function Yt(e){const n=E(277);return n.name=e,n.transformFlags|=4|CA(n.name),n.transformFlags&=-67108865,n}function $t(e){const n=b(272);return n.elements=v(e),n.transformFlags|=kA(n.elements),n.transformFlags&=-67108865,n}function Qt(e,n,t){const r=E(273);return r.isTypeOnly=e,r.propertyName=n,r.name=t,r.transformFlags|=CA(r.propertyName)|CA(r.name),r.transformFlags&=-67108865,r}function Zt(e,n,t){const i=E(274);return i.modifiers=Ei(e),i.isExportEquals=n,i.expression=n?r().parenthesizeRightSideOfBinary(63,void 0,t):r().parenthesizeExpressionOfExportDefault(t),i.transformFlags|=kA(i.modifiers)|CA(i.expression),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function er(e,n,r){return e.modifiers!==n||e.expression!==r?t(Zt(n,e.isExportEquals,r),e):e}function nr(e,n,t,r,i){const a=E(275);return a.modifiers=Ei(e),a.isTypeOnly=n,a.exportClause=t,a.moduleSpecifier=r,a.assertClause=i,a.transformFlags|=kA(a.modifiers)|CA(a.exportClause)|CA(a.moduleSpecifier),a.transformFlags&=-67108865,a.jsDoc=void 0,a}function tr(e,n,r,i,a,o){return e.modifiers!==n||e.isTypeOnly!==r||e.exportClause!==i||e.moduleSpecifier!==a||e.assertClause!==o?function(e,n){e!==n&&e.modifiers===n.modifiers&&(e.modifiers=n.modifiers);return t(e,n)}(nr(n,r,i,a,o),e):e}function rr(e){const n=b(276);return n.elements=v(e),n.transformFlags|=kA(n.elements),n.transformFlags&=-67108865,n}function ir(e,n,t){const r=b(278);return r.isTypeOnly=e,r.propertyName=Ti(n),r.name=Ti(t),r.transformFlags|=CA(r.propertyName)|CA(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function ar(e){const n=b(280);return n.expression=e,n.transformFlags|=CA(n.expression),n.transformFlags&=-67108865,n}function or(e,n,t=!1){const i=sr(e,t?n&&r().parenthesizeNonArrayTypeOfPostfixType(n):n);return i.postfix=t,i}function sr(e,n){const t=b(e);return t.type=n,t}function cr(e,n){const t=E(320);return t.parameters=Ei(e),t.type=n,t.transformFlags=kA(t.parameters)|(t.type?1:0),t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.typeArguments=void 0,t}function lr(e,n=!1){const t=E(325);return t.jsDocPropertyTags=Ei(e),t.isArrayType=n,t}function dr(e){const n=b(312);return n.type=e,n}function ur(e,n,t){const r=E(326);return r.typeParameters=Ei(e),r.parameters=v(n),r.type=t,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function _r(e){const n=SA(e.kind);return e.tagName.escapedText===Gc(n)?e.tagName:R(n)}function pr(e,n,t){const r=b(e);return r.tagName=n,r.comment=t,r}function fr(e,n,t){const r=E(e);return r.tagName=n,r.comment=t,r}function mr(e,n,t,r){const i=pr(348,null!=e?e:R("template"),r);return i.constraint=n,i.typeParameters=v(t),i}function hr(e,n,t,r){const i=fr(349,null!=e?e:R("typedef"),r);return i.typeExpression=n,i.fullName=t,i.name=uN(t),i.locals=void 0,i.nextContainer=void 0,i}function gr(e,n,t,r,i,a){const o=fr(344,null!=e?e:R("param"),a);return o.typeExpression=r,o.name=n,o.isNameFirst=!!i,o.isBracketed=t,o}function yr(e,n,t,r,i,a){const o=fr(351,null!=e?e:R("prop"),a);return o.typeExpression=r,o.name=n,o.isNameFirst=!!i,o.isBracketed=t,o}function vr(e,n,t,r){const i=fr(341,null!=e?e:R("callback"),r);return i.typeExpression=n,i.fullName=t,i.name=uN(t),i.locals=void 0,i.nextContainer=void 0,i}function br(e,n,t){const r=pr(342,null!=e?e:R("overload"),t);return r.typeExpression=n,r}function Er(e,n,t){const r=pr(331,null!=e?e:R("augments"),t);return r.class=n,r}function Tr(e,n,t){const r=pr(332,null!=e?e:R("implements"),t);return r.class=n,r}function xr(e,n,t){const r=pr(350,null!=e?e:R("see"),t);return r.name=n,r}function Sr(e){const n=b(313);return n.name=e,n}function Ar(e,n){const t=b(314);return t.left=e,t.right=n,t.transformFlags|=CA(t.left)|CA(t.right),t}function Lr(e,n){const t=b(327);return t.name=e,t.text=n,t}function Cr(e,n){const t=b(328);return t.name=e,t.text=n,t}function kr(e,n){const t=b(329);return t.name=e,t.text=n,t}function Ir(e,n,t){return pr(e,null!=n?n:R(SA(e)),t)}function wr(e,n,t,r){const i=pr(e,null!=n?n:R(SA(e)),r);return i.typeExpression=t,i}function Rr(e,n){return pr(330,e,n)}function Nr(e,n,t){const r=fr(343,null!=e?e:R(SA(343)),t);return r.typeExpression=n,r.locals=void 0,r.nextContainer=void 0,r}function Dr(e){const n=b(324);return n.text=e,n}function Or(e,n){const t=b(323);return t.comment=e,t.tags=Ei(n),t}function Mr(e,n,t){const r=b(281);return r.openingElement=e,r.children=v(n),r.closingElement=t,r.transformFlags|=CA(r.openingElement)|kA(r.children)|CA(r.closingElement)|2,r}function Pr(e,n,t){const r=b(282);return r.tagName=e,r.typeArguments=Ei(n),r.attributes=t,r.transformFlags|=CA(r.tagName)|kA(r.typeArguments)|CA(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function Fr(e,n,t){const r=b(283);return r.tagName=e,r.typeArguments=Ei(n),r.attributes=t,r.transformFlags|=CA(r.tagName)|kA(r.typeArguments)|CA(r.attributes)|2,n&&(r.transformFlags|=1),r}function Gr(e){const n=b(284);return n.tagName=e,n.transformFlags|=2|CA(n.tagName),n}function Br(e,n,t){const r=b(285);return r.openingFragment=e,r.children=v(n),r.closingFragment=t,r.transformFlags|=CA(r.openingFragment)|kA(r.children)|CA(r.closingFragment)|2,r}function Ur(e,n){const t=b(11);return t.text=e,t.containsOnlyTriviaWhiteSpaces=!!n,t.transformFlags|=2,t}function Vr(e,n){const t=E(288);return t.name=e,t.initializer=n,t.transformFlags|=CA(t.name)|CA(t.initializer)|2,t}function jr(e){const n=E(289);return n.properties=v(e),n.transformFlags|=2|kA(n.properties),n}function Hr(e){const n=b(290);return n.expression=e,n.transformFlags|=2|CA(n.expression),n}function Kr(e,n){const t=b(291);return t.dotDotDotToken=e,t.expression=n,t.transformFlags|=CA(t.dotDotDotToken)|CA(t.expression)|2,t}function Wr(e,n){const t=b(292);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.statements=v(n),t.transformFlags|=CA(t.expression)|kA(t.statements),t.jsDoc=void 0,t}function zr(e){const n=b(293);return n.statements=v(e),n.transformFlags=kA(n.statements),n}function qr(e,n){const t=b(294);switch(t.token=e,t.types=v(n),t.transformFlags|=kA(t.types),e){case 94:t.transformFlags|=1024;break;case 117:t.transformFlags|=1;break;default:return Nt.assertNever(e)}return t}function Jr(e,n){const t=b(295);return t.variableDeclaration=function(e){if("string"===typeof e||e&&!NI(e))return xt(e,void 0,void 0,void 0);return e}(e),t.block=n,t.transformFlags|=CA(t.variableDeclaration)|CA(t.block)|(e?0:64),t.locals=void 0,t.nextContainer=void 0,t}function Xr(e,n){const t=E(299);return t.name=Ti(e),t.initializer=r().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=AA(t.name)|CA(t.initializer),t.modifiers=void 0,t.questionToken=void 0,t.exclamationToken=void 0,t.jsDoc=void 0,t}function Yr(e,n){const t=E(300);return t.name=Ti(e),t.objectAssignmentInitializer=n&&r().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=LA(t.name)|CA(t.objectAssignmentInitializer)|1024,t.equalsToken=void 0,t.modifiers=void 0,t.questionToken=void 0,t.exclamationToken=void 0,t.jsDoc=void 0,t}function $r(e){const n=E(301);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.transformFlags|=65664|CA(n.expression),n.jsDoc=void 0,n}function Qr(e,n){const t=E(302);return t.name=Ti(e),t.initializer=n&&r().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=CA(t.name)|CA(t.initializer)|1,t.jsDoc=void 0,t}function Zr(e){const n=Object.create(e.redirectTarget);return Object.defineProperties(n,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),n.redirectInfo=e,n}function ei(e){const t=e.redirectInfo?function(e){const n=Zr(e.redirectInfo);return n.flags|=-9&e.flags,n.fileName=e.fileName,n.path=e.path,n.resolvedPath=e.resolvedPath,n.originalFileName=e.originalFileName,n.packageJsonLocations=e.packageJsonLocations,n.packageJsonScope=e.packageJsonScope,n.emitNode=void 0,n}(e):function(e){const t=n.createBaseSourceFileNode(308);t.flags|=-9&e.flags;for(const n in e)!ze(t,n)&&ze(e,n)&&("emitNode"!==n?t[n]=e[n]:t.emitNode=void 0);return t}(e);return FA(t,e),t}function ni(e,n=i){const t=b(309);return t.prepends=n,t.sourceFiles=e,t.syntheticFileReferences=void 0,t.syntheticTypeReferences=void 0,t.syntheticLibReferences=void 0,t.hasNoDefaultLib=void 0,t}function ti(e,n){const t=b(e);return t.data=n,t}function ri(e,n){const t=b(356);return t.expression=e,t.original=n,t.transformFlags|=1|CA(t.expression),VN(t,n),t}function ii(e,n){return e.expression!==n?t(ri(n,e.original),e):e}function ai(e){if($y(e)&&!Pc(e)&&!e.original&&!e.emitNode&&!e.id){if(dI(e))return e.elements;if(Yk(e)&&bC(e.operatorToken))return[e.left,e.right]}return e}function oi(e){const n=b(357);return n.elements=v(Q(e,ai)),n.transformFlags|=kA(n.elements),n}function si(e,n){const t=b(360);return t.expression=e,t.thisArg=n,t.transformFlags|=CA(t.expression)|CA(t.thisArg),t}function ci(e){if(void 0===e)return e;if(Iw(e))return ei(e);if(yd(e))return function(e){const n=I(e.escapedText);return n.flags|=-9&e.flags,n.transformFlags=e.transformFlags,FA(n,e),EL(n,{...e.emitNode.autoGenerate}),n}(e);if(IC(e))return function(e){const n=I(e.escapedText);n.flags|=-9&e.flags,n.jsDoc=e.jsDoc,n.flowNode=e.flowNode,n.symbol=e.symbol,n.transformFlags=e.transformFlags,FA(n,e);const t=bL(e);return t&&vL(n,t),n}(e);if(vd(e))return function(e){const n=M(e.escapedText);return n.flags|=-9&e.flags,n.transformFlags=e.transformFlags,FA(n,e),EL(n,{...e.emitNode.autoGenerate}),n}(e);if(wC(e))return function(e){const n=M(e.escapedText);return n.flags|=-9&e.flags,n.transformFlags=e.transformFlags,FA(n,e),n}(e);const t=td(e.kind)?n.createBaseNode(e.kind):n.createBaseTokenNode(e.kind);t.flags|=-9&e.flags,t.transformFlags=e.transformFlags,FA(t,e);for(const n in e)!ze(t,n)&&ze(e,n)&&(t[n]=e[n]);return t}function li(){return Cn(x("0"))}function di(e,n,t){return Vl(e)?dn(nn(e,void 0,n),void 0,void 0,t):ln(en(e,n),void 0,t)}function ui(e,n,t){return di(R(e),n,t)}function _i(e,n,t){return!!t&&(e.push(Xr(n,t)),!0)}function pi(e,n){const t=ey(e);switch(t.kind){case 79:return n;case 108:case 8:case 9:case 10:return!1;case 206:return 0!==t.elements.length;case 207:return t.properties.length>0;default:return!0}}function fi(e,n,t,r=0){const i=Xc(e);if(i&&IC(i)&&!yd(i)){const e=CS(VN(ci(i),i),i.parent);return r|=df(i),t||(r|=96),n||(r|=3072),r&&jA(e,r),e}return O(e)}function mi(e,n,t){return fi(e,n,t,16384)}function hi(e,n,t,r){const i=en(e,$y(n)?n:ci(n));VN(i,n);let a=0;return r||(a|=96),t||(a|=3072),a&&jA(i,a),i}function gi(){return YR(ot(C("use strict")))}function yi(e,n,t=0,r){Nt.assert(0===n.length,"Prologue directives should be at the first statement in the target statements array");let i=!1;const a=e.length;for(;t<a;){const r=e[t];if(!hm(r))break;_C((o=r).expression)&&"use strict"===o.expression.text&&(i=!0),n.push(r),t++}var o;return r&&!i&&n.push(gi()),t}function vi(e,n,t,r,i=An){const a=e.length;for(;void 0!==t&&t<a;){const a=e[t];if(!(2097152&df(a)&&i(a)))break;Te(n,r?uB(a,r,Bu):a),t++}return t}function bi(e,n,t){let r=t;for(;r<e.length&&n(e[r]);)r++;return r}function Ei(e){return e?v(e):void 0}function Ti(e){return"string"===typeof e?R(e):e}function xi(e){return"string"===typeof e?C(e):"number"===typeof e?x(e):"boolean"===typeof e?e?U():V():e}function Si(e){return e&&r().parenthesizeExpressionForDisallowedComma(e)}function Ai(e){return e&&iw(e)?VN(FA(at(),e),e):e}}function TA(e,n){return e!==n&&VN(e,n),e}function xA(e,n){return e!==n&&(FA(e,n),VN(e,n)),e}function SA(e){switch(e){case 347:return"type";case 345:return"returns";case 346:return"this";case 343:return"enum";case 333:return"author";case 335:return"class";case 336:return"public";case 337:return"private";case 338:return"protected";case 339:return"readonly";case 340:return"override";case 348:return"template";case 349:return"typedef";case 344:return"param";case 351:return"prop";case 341:return"callback";case 342:return"overload";case 331:return"augments";case 332:return"implements";default:return Nt.fail(`Unsupported kind: ${Nt.formatSyntaxKind(e)}`)}}function AA(e){return e&&IC(e)?LA(e):CA(e)}function LA(e){return-67108865&CA(e)}function CA(e){if(!e)return 0;const n=e.transformFlags&~wA(e.kind);return qc(e)&&Cd(e.name)?(t=e.name,n|134234112&t.transformFlags):n;var t}function kA(e){return e?e.transformFlags:0}function IA(e){let n=0;for(const t of e)n|=CA(t);e.transformFlags=n}function wA(e){if(e>=179&&e<=202)return-2;switch(e){case 210:case 211:case 206:case 203:case 204:return-2147450880;case 264:return-1941676032;case 166:case 213:case 235:case 231:case 356:case 214:case 106:case 208:case 209:default:return-2147483648;case 216:return-2072174592;case 215:case 259:return-1937940480;case 258:return-2146893824;case 260:case 228:return-2147344384;case 173:return-1937948672;case 169:return-2013249536;case 171:case 174:case 175:return-2005057536;case 131:case 148:case 160:case 144:case 152:case 149:case 134:case 153:case 114:case 165:case 168:case 170:case 176:case 177:case 178:case 261:case 262:return-2;case 207:return-2147278848;case 295:return-2147418112}}function RA(e){return e.flags|=8,e}function NA(e,n,t){let r,a,o,s,c,l,d,u,_,p;vn(e)?(o="",s=e,c=e.length,l=n,d=t):(Nt.assert("js"===n||"dts"===n),o=("js"===n?e.javascriptPath:e.declarationPath)||"",l="js"===n?e.javascriptMapPath:e.declarationMapPath,u=()=>"js"===n?e.javascriptText:e.declarationText,_=()=>"js"===n?e.javascriptMapText:e.declarationMapText,c=()=>u().length,e.buildInfo&&e.buildInfo.bundle&&(Nt.assert(void 0===t||"boolean"===typeof t),r=t,a="js"===n?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,p=e.oldFileOfCurrentEmit));const f=p?function(e){let n,t;for(const i of e.sections)switch(i.kind){case"internal":case"text":n=Te(n,VN(gA.createUnparsedTextLike(i.data,"internal"===i.kind),i));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":t=Te(t,VN(gA.createUnparsedSyntheticReference(i),i));break;case"prologue":case"emitHelpers":case"prepend":break;default:Nt.assertNever(i)}const r=gA.createUnparsedSource(i,t,null!=n?n:i);return kS(t,r),kS(n,r),r.helpers=W(e.sources&&e.sources.helpers,(e=>sC().get(e))),r}(Nt.checkDefined(a)):function(e,n,t){let r,a,o,s,c,l,d,u;for(const p of e?e.sections:i)switch(p.kind){case"prologue":r=Te(r,VN(gA.createUnparsedPrologue(p.data),p));break;case"emitHelpers":a=Te(a,sC().get(p.data));break;case"no-default-lib":u=!0;break;case"reference":o=Te(o,{pos:-1,end:-1,fileName:p.data});break;case"type":s=Te(s,{pos:-1,end:-1,fileName:p.data});break;case"type-import":s=Te(s,{pos:-1,end:-1,fileName:p.data,resolutionMode:99});break;case"type-require":s=Te(s,{pos:-1,end:-1,fileName:p.data,resolutionMode:1});break;case"lib":c=Te(c,{pos:-1,end:-1,fileName:p.data});break;case"prepend":let e;for(const t of p.texts)n&&"internal"===t.kind||(e=Te(e,VN(gA.createUnparsedTextLike(t.data,"internal"===t.kind),t)));l=Ae(l,e),d=Te(d,gA.createUnparsedPrepend(p.data,null!=e?e:i));break;case"internal":if(n){d||(d=[]);break}case"text":d=Te(d,VN(gA.createUnparsedTextLike(p.data,"internal"===p.kind),p));break;default:Nt.assertNever(p)}if(!d){const e=gA.createUnparsedTextLike(void 0,!1);AS(e,0,"function"===typeof t?t():t),d=[e]}const _=YN.createUnparsedSource(null!=r?r:i,void 0,d);return kS(r,_),kS(d,_),kS(l,_),_.hasNoDefaultLib=u,_.helpers=a,_.referencedFiles=o||i,_.typeReferenceDirectives=s,_.libReferenceDirectives=c||i,_}(a,r,c);return f.fileName=o,f.sourceMapPath=l,f.oldFileOfCurrentEmit=p,u&&_?(Object.defineProperty(f,"text",{get:u}),Object.defineProperty(f,"sourceMapText",{get:_})):(Nt.assert(!p),f.text=null!=s?s:"",f.sourceMapText=d),f}function DA(e,n,t,r,i,a){return vn(e)?MA(void 0,e,t,r,void 0,n,i,a):OA(e,n,t,r,i,a)}function OA(e,n,t,r,i,a,o,s){const c=YN.createInputFiles();c.javascriptPath=n,c.javascriptMapPath=t,c.declarationPath=r,c.declarationMapPath=i,c.buildInfoPath=a;const l=new Map,d=n=>{if(void 0===n)return;let t=l.get(n);return void 0===t&&(t=e(n),l.set(n,void 0!==t&&t)),!1!==t?t:void 0},u=e=>{const n=d(e);return void 0!==n?n:`/* Input file ${e} was missing */\r\n`};let _;return Object.defineProperties(c,{javascriptText:{get:()=>u(n)},javascriptMapText:{get:()=>d(t)},declarationText:{get:()=>u(Nt.checkDefined(r))},declarationMapText:{get:()=>d(i)},buildInfo:{get:()=>{var e,n;if(void 0===_&&a)if(null==o?void 0:o.getBuildInfo)_=null!=(e=o.getBuildInfo(a,s.configFilePath))&&e;else{const e=d(a);_=void 0!==e&&(null!=(n=Aj(a,e))&&n)}return _||void 0}}}),c}function MA(e,n,t,r,i,a,o,s,c,l,d){const u=YN.createInputFiles();return u.javascriptPath=e,u.javascriptText=n,u.javascriptMapPath=t,u.javascriptMapText=r,u.declarationPath=i,u.declarationText=a,u.declarationMapPath=o,u.declarationMapText=s,u.buildInfoPath=c,u.buildInfo=l,u.oldFileOfCurrentEmit=d,u}function PA(e,n,t){return new(yA||(yA=F_.getSourceMapSourceConstructor()))(e,n,t)}function FA(e,n){if(e.original=n,n){const t=n.emitNode;t&&(e.emitNode=function(e,n){const{flags:t,internalFlags:r,leadingComments:i,trailingComments:a,commentRange:o,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:l,helpers:d,startsOnNewLine:u,snippetElement:_}=e;n||(n={});i&&(n.leadingComments=Ae(i.slice(),n.leadingComments));a&&(n.trailingComments=Ae(a.slice(),n.trailingComments));t&&(n.flags=t);r&&(n.internalFlags=-9&r);o&&(n.commentRange=o);s&&(n.sourceMapRange=s);c&&(n.tokenSourceMapRanges=function(e,n){n||(n=[]);for(const t in e)n[t]=e[t];return n}(c,n.tokenSourceMapRanges));void 0!==l&&(n.constantValue=l);if(d)for(const p of d)n.helpers=Ce(n.helpers,p);void 0!==u&&(n.startsOnNewLine=u);void 0!==_&&(n.snippetElement=_);return n}(t,e.emitNode))}return e}var GA=E({"src/compiler/factory/nodeFactory.ts"(){lq(),uA=0,_A=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(_A||{}),pA=[],mA={},hA=iA(),gA=EA(4,{createBaseSourceFileNode:e=>RA(hA.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>RA(hA.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>RA(hA.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>RA(hA.createBaseTokenNode(e)),createBaseNode:e=>RA(hA.createBaseNode(e))})}});function BA(e){var n;if(e.emitNode)Nt.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(Pc(e)){if(308===e.kind)return e.emitNode={annotatedNodes:[e]};BA(null!=(n=Dp(Fc(Dp(e))))?n:Nt.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function UA(e){var n,t;const r=null==(t=null==(n=Dp(Fc(e)))?void 0:n.emitNode)?void 0:t.annotatedNodes;if(r)for(const i of r)i.emitNode=void 0}function VA(e){const n=BA(e);return n.flags|=3072,n.leadingComments=void 0,n.trailingComments=void 0,e}function jA(e,n){return BA(e).flags=n,e}function HA(e,n){const t=BA(e);return t.flags=t.flags|n,e}function KA(e,n){return BA(e).internalFlags=n,e}function WA(e,n){const t=BA(e);return t.internalFlags=t.internalFlags|n,e}function zA(e){var n,t;return null!=(t=null==(n=e.emitNode)?void 0:n.sourceMapRange)?t:e}function qA(e,n){return BA(e).sourceMapRange=n,e}function JA(e,n){var t,r;return null==(r=null==(t=e.emitNode)?void 0:t.tokenSourceMapRanges)?void 0:r[n]}function XA(e,n,t){var r;const i=BA(e);return(null!=(r=i.tokenSourceMapRanges)?r:i.tokenSourceMapRanges=[])[n]=t,e}function YA(e){var n;return null==(n=e.emitNode)?void 0:n.startsOnNewLine}function $A(e,n){return BA(e).startsOnNewLine=n,e}function QA(e){var n,t;return null!=(t=null==(n=e.emitNode)?void 0:n.commentRange)?t:e}function ZA(e,n){return BA(e).commentRange=n,e}function eL(e){var n;return null==(n=e.emitNode)?void 0:n.leadingComments}function nL(e,n){return BA(e).leadingComments=n,e}function tL(e,n,t,r){return nL(e,Te(eL(e),{kind:n,pos:-1,end:-1,hasTrailingNewLine:r,text:t}))}function rL(e){var n;return null==(n=e.emitNode)?void 0:n.trailingComments}function iL(e,n){return BA(e).trailingComments=n,e}function aL(e,n,t,r){return iL(e,Te(rL(e),{kind:n,pos:-1,end:-1,hasTrailingNewLine:r,text:t}))}function oL(e,n){nL(e,eL(n)),iL(e,rL(n));const t=BA(n);return t.leadingComments=void 0,t.trailingComments=void 0,e}function sL(e){var n;return null==(n=e.emitNode)?void 0:n.constantValue}function cL(e,n){return BA(e).constantValue=n,e}function lL(e,n){const t=BA(e);return t.helpers=Te(t.helpers,n),e}function dL(e,n){if(ce(n)){const t=BA(e);for(const e of n)t.helpers=Ce(t.helpers,e)}return e}function uL(e,n){var t;const r=null==(t=e.emitNode)?void 0:t.helpers;return!!r&&at(r,n)}function _L(e){var n;return null==(n=e.emitNode)?void 0:n.helpers}function pL(e,n,t){const r=e.emitNode,i=r&&r.helpers;if(!ce(i))return;const a=BA(n);let o=0;for(let s=0;s<i.length;s++){const e=i[s];t(e)?(o++,a.helpers=Ce(a.helpers,e)):o>0&&(i[s-o]=e)}o>0&&(i.length-=o)}function fL(e){var n;return null==(n=e.emitNode)?void 0:n.snippetElement}function mL(e,n){return BA(e).snippetElement=n,e}function hL(e){return BA(e).internalFlags|=4,e}function gL(e,n){return BA(e).typeNode=n,e}function yL(e){var n;return null==(n=e.emitNode)?void 0:n.typeNode}function vL(e,n){return BA(e).identifierTypeArguments=n,e}function bL(e){var n;return null==(n=e.emitNode)?void 0:n.identifierTypeArguments}function EL(e,n){return BA(e).autoGenerate=n,e}function TL(e){var n;return null==(n=e.emitNode)?void 0:n.autoGenerate}function xL(e,n){return BA(e).generatedImportReference=n,e}function SL(e){var n;return null==(n=e.emitNode)?void 0:n.generatedImportReference}var AL,LL,CL,kL,IL,wL,RL,NL,DL,OL,ML,PL,FL,GL,BL,UL,VL,jL,HL,KL,WL,zL,qL,JL,XL,YL,$L,QL,ZL,eC,nC,tC,rC=E({"src/compiler/factory/emitNode.ts"(){lq()}});function iC(e){const n=e.factory,t=Rn((()=>KA(n.createTrue(),8))),r=Rn((()=>KA(n.createFalse(),8)));return{getUnscopedHelperName:i,createDecorateHelper:function(t,r,a,o){e.requestEmitHelper(LL);const s=[];s.push(n.createArrayLiteralExpression(t,!0)),s.push(r),a&&(s.push(a),o&&s.push(o));return n.createCallExpression(i("__decorate"),void 0,s)},createMetadataHelper:function(t,r){return e.requestEmitHelper(CL),n.createCallExpression(i("__metadata"),void 0,[n.createStringLiteral(t),r])},createParamHelper:function(t,r,a){return e.requestEmitHelper(kL),VN(n.createCallExpression(i("__param"),void 0,[n.createNumericLiteral(r+""),t]),a)},createESDecorateHelper:function(t,r,a,s,c,l){return e.requestEmitHelper(IL),n.createCallExpression(i("__esDecorate"),void 0,[null!=t?t:n.createNull(),null!=r?r:n.createNull(),a,o(s),c,l])},createRunInitializersHelper:function(t,r,a){return e.requestEmitHelper(wL),n.createCallExpression(i("__runInitializers"),void 0,a?[t,r,a]:[t,r])},createAssignHelper:function(t){if(HT(e.getCompilerOptions())>=2)return n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"assign"),void 0,t);return e.requestEmitHelper(RL),n.createCallExpression(i("__assign"),void 0,t)},createAwaitHelper:function(t){return e.requestEmitHelper(NL),n.createCallExpression(i("__await"),void 0,[t])},createAsyncGeneratorHelper:function(t,r){return e.requestEmitHelper(NL),e.requestEmitHelper(DL),(t.emitNode||(t.emitNode={})).flags|=1572864,n.createCallExpression(i("__asyncGenerator"),void 0,[r?n.createThis():n.createVoidZero(),n.createIdentifier("arguments"),t])},createAsyncDelegatorHelper:function(t){return e.requestEmitHelper(NL),e.requestEmitHelper(OL),n.createCallExpression(i("__asyncDelegator"),void 0,[t])},createAsyncValuesHelper:function(t){return e.requestEmitHelper(ML),n.createCallExpression(i("__asyncValues"),void 0,[t])},createRestHelper:function(t,r,a,o){e.requestEmitHelper(PL);const s=[];let c=0;for(let e=0;e<r.length-1;e++){const t=sN(r[e]);if(t)if(WC(t)){Nt.assertIsDefined(a,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const e=a[c];c++,s.push(n.createConditionalExpression(n.createTypeCheck(e,"symbol"),void 0,e,void 0,n.createAdd(e,n.createStringLiteral(""))))}else s.push(n.createStringLiteralFromNode(t))}return n.createCallExpression(i("__rest"),void 0,[t,VN(n.createArrayLiteralExpression(s),o)])},createAwaiterHelper:function(t,r,a,o){e.requestEmitHelper(FL);const s=n.createFunctionExpression(void 0,n.createToken(41),void 0,void 0,[],void 0,o);return(s.emitNode||(s.emitNode={})).flags|=1572864,n.createCallExpression(i("__awaiter"),void 0,[t?n.createThis():n.createVoidZero(),r?n.createIdentifier("arguments"):n.createVoidZero(),a?NR(n,a):n.createVoidZero(),s])},createExtendsHelper:function(t){return e.requestEmitHelper(GL),n.createCallExpression(i("__extends"),void 0,[t,n.createUniqueName("_super",48)])},createTemplateObjectHelper:function(t,r){return e.requestEmitHelper(BL),n.createCallExpression(i("__makeTemplateObject"),void 0,[t,r])},createSpreadArrayHelper:function(a,o,s){return e.requestEmitHelper(VL),n.createCallExpression(i("__spreadArray"),void 0,[a,o,s?t():r()])},createPropKeyHelper:function(t){return e.requestEmitHelper(jL),n.createCallExpression(i("__propKey"),void 0,[t])},createSetFunctionNameHelper:function(n,t,r){return e.requestEmitHelper(HL),e.factory.createCallExpression(i("__setFunctionName"),void 0,r?[n,t,e.factory.createStringLiteral(r)]:[n,t])},createValuesHelper:function(t){return e.requestEmitHelper(KL),n.createCallExpression(i("__values"),void 0,[t])},createReadHelper:function(t,r){return e.requestEmitHelper(UL),n.createCallExpression(i("__read"),void 0,void 0!==r?[t,n.createNumericLiteral(r+"")]:[t])},createGeneratorHelper:function(t){return e.requestEmitHelper(WL),n.createCallExpression(i("__generator"),void 0,[n.createThis(),t])},createCreateBindingHelper:function(t,r,a){return e.requestEmitHelper(zL),n.createCallExpression(i("__createBinding"),void 0,[n.createIdentifier("exports"),t,r,...a?[a]:[]])},createImportStarHelper:function(t){return e.requestEmitHelper(JL),n.createCallExpression(i("__importStar"),void 0,[t])},createImportStarCallbackHelper:function(){return e.requestEmitHelper(JL),i("__importStar")},createImportDefaultHelper:function(t){return e.requestEmitHelper(XL),n.createCallExpression(i("__importDefault"),void 0,[t])},createExportStarHelper:function(t,r=n.createIdentifier("exports")){return e.requestEmitHelper(YL),e.requestEmitHelper(zL),n.createCallExpression(i("__exportStar"),void 0,[t,r])},createClassPrivateFieldGetHelper:function(t,r,a,o){let s;e.requestEmitHelper($L),s=o?[t,r,n.createStringLiteral(a),o]:[t,r,n.createStringLiteral(a)];return n.createCallExpression(i("__classPrivateFieldGet"),void 0,s)},createClassPrivateFieldSetHelper:function(t,r,a,o,s){let c;e.requestEmitHelper(QL),c=s?[t,r,a,n.createStringLiteral(o),s]:[t,r,a,n.createStringLiteral(o)];return n.createCallExpression(i("__classPrivateFieldSet"),void 0,c)},createClassPrivateFieldInHelper:function(t,r){return e.requestEmitHelper(ZL),n.createCallExpression(i("__classPrivateFieldIn"),void 0,[t,r])}};function i(e){return jA(n.createIdentifier(e),8196)}function a(e,t){const r=[];return r.push(function(e){const t=e.computed?e.name:IC(e.name)?n.createStringLiteralFromNode(e.name):e.name;return n.createPropertyAssignment("has",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj"))],void 0,void 0,n.createBinaryExpression(t,101,n.createIdentifier("obj"))))}(e)),t.get&&r.push(function(e){const t=e.computed?n.createElementAccessExpression(n.createIdentifier("obj"),e.name):n.createPropertyAccessExpression(n.createIdentifier("obj"),e.name);return n.createPropertyAssignment("get",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj"))],void 0,void 0,t))}(e)),t.set&&r.push(function(e){const t=e.computed?n.createElementAccessExpression(n.createIdentifier("obj"),e.name):n.createPropertyAccessExpression(n.createIdentifier("obj"),e.name);return n.createPropertyAssignment("set",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,n.createIdentifier("obj")),n.createParameterDeclaration(void 0,void 0,n.createIdentifier("value"))],void 0,void 0,n.createBlock([n.createExpressionStatement(n.createAssignment(t,n.createIdentifier("value")))])))}(e)),n.createObjectLiteralExpression(r)}function o(e){return"class"===e.kind?function(e){return n.createObjectLiteralExpression([n.createPropertyAssignment(n.createIdentifier("kind"),n.createStringLiteral("class")),n.createPropertyAssignment(n.createIdentifier("name"),e.name)])}(e):function(e){return n.createObjectLiteralExpression([n.createPropertyAssignment(n.createIdentifier("kind"),n.createStringLiteral(e.kind)),n.createPropertyAssignment(n.createIdentifier("name"),e.name.computed?e.name.name:n.createStringLiteralFromNode(e.name.name)),n.createPropertyAssignment(n.createIdentifier("static"),e.static?n.createTrue():n.createFalse()),n.createPropertyAssignment(n.createIdentifier("private"),e.private?n.createTrue():n.createFalse()),n.createPropertyAssignment(n.createIdentifier("access"),a(e.name,e.access))])}(e)}}function aC(e,n){return e===n||e.priority===n.priority?0:void 0===e.priority?1:void 0===n.priority?-1:Un(e.priority,n.priority)}function oC(e,...n){return t=>{let r="";for(let i=0;i<n.length;i++)r+=e[i],r+=t(n[i]);return r+=e[e.length-1],r}}function sC(){return eC||(eC=nn([LL,CL,kL,IL,wL,RL,NL,DL,OL,ML,PL,FL,GL,BL,VL,KL,UL,jL,HL,WL,JL,XL,YL,$L,QL,ZL,zL,qL],(e=>e.name)))}function cC(e,n){return Fk(e)&&IC(e.expression)&&0!==(8192&df(e.expression))&&e.expression.escapedText===n}var lC=E({"src/compiler/factory/emitHelpers.ts"(){lq(),AL=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(AL||{}),LL={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},CL={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},kL={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},IL={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.push(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.push(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},wL={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},RL={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},DL={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[NL={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"}],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},OL={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[NL],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n };'},ML={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},PL={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},FL={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},GL={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},BL={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},UL={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},VL={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},jL={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},HL={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},KL={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},WL={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},JL={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[zL={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},qL={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},XL={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},YL={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[zL],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},$L={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},QL={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},ZL={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},nC={name:"typescript:async-super",scoped:!0,text:oC` - const ${"_superIndex"} = name => super[name];`},tC={name:"typescript:advanced-async-super",scoped:!0,text:oC` +(()=>{var e={9861:(e,t,n)=>{"use strict";function r(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r++)if(!n(e[r],t[r]))return!1;return!0}function*o(e,t){let n,r;for(const o of e)void 0!==r&&t(r,o)?n.push(o):(n&&(yield n),n=[o]),r=o;n&&(yield n)}function i(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function a(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function s(e,t=e=>e){const n=new Set;return e.filter((e=>{const r=t(e);return!n.has(r)&&(n.add(r),!0)}))}function l(e,t){return e.length>0?e[0]:t}function c(e,t,n){const r=e.slice(0,t),o=e.slice(t);return r.concat(n,o)}function d(e,t){for(const n of t)e.push(n)}var u;function p(e,t){return(n,r)=>t(e(n),e(r))}n.d(t,{E4:()=>d,Fy:()=>l,Hw:()=>m,U9:()=>f,VE:()=>p,aI:()=>r,c1:()=>h,dM:()=>s,j3:()=>_,kj:()=>a,n:()=>o,nK:()=>c,pN:()=>i}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(u||(u={}));const f=(e,t)=>e-t;function m(e){return(t,n)=>-e(t,n)}class _{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class h{static{this.empty=new h((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new h((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new h((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((r=>((n||u.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0))),t}}},6041:(e,t,n)=>{"use strict";function r(e,t){const n=function(e,t,n=e.length-1){for(let r=n;r>=0;r--){if(t(e[r]))return r}return-1}(e,t);if(-1!==n)return e[n]}function o(e,t){const n=i(e,t);return-1===n?void 0:e[n]}function i(e,t,n=0,r=e.length){let o=n,i=r;for(;o<i;){const n=Math.floor((o+i)/2);t(e[n])?o=n+1:i=n}return o-1}function a(e,t){const n=s(e,t);return n===e.length?void 0:e[n]}function s(e,t,n=0,r=e.length){let o=n,i=r;for(;o<i;){const n=Math.floor((o+i)/2);t(e[n])?i=n:o=n+1}return o}n.d(t,{Uk:()=>r,XP:()=>a,hw:()=>s,iM:()=>i,lx:()=>o,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=i(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},6782:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>a,Xo:()=>s,ok:()=>o,xb:()=>i});var r=n(4383);function o(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function i(e,t="Unreachable"){throw new Error(t)}function a(e){e()||(e(),(0,r.dz)(new r.D7("Assertion Failed")))}function s(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},1940:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>c,Qg:()=>s,$6:()=>d});n(8447);var r=n(4383),o=n(1234),i=n(1484),a=n(8067);Symbol("MicrotaskDelay");function s(e){return!!e&&"function"===typeof e.then}class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new r.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const o=n.setInterval((()=>{e()}),t);this.disposable=(0,i.s)((()=>{n.clearInterval(o),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class c{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let d,u;u="function"!==typeof globalThis.requestIdleCallback||"function"!==typeof globalThis.cancelIdleCallback?(e,t)=>{(0,a._p)((()=>{if(n)return;const e=Date.now()+15,r={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(r))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const r=e.requestIdleCallback(t,"number"===typeof n?{timeout:n}:void 0);let o=!1;return{dispose(){o||(o=!0,e.cancelIdleCallback(r))}}},d=e=>u(globalThis,e);var p;!function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if("undefined"!==typeof t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(r){n(r)}}))}}(p||(p={}));class f{static fromArray(e){return new f((t=>{t.emitMany(e)}))}static fromPromise(e){return new f((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new f((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new f((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=f.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new o.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await o.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new f((async n=>{for await(const r of e)n.emitOne(t(r))}))}map(e){return f.map(this,e)}static filter(e,t){return new f((async n=>{for await(const r of e)t(r)&&n.emitOne(r)}))}filter(e){return f.filter(this,e)}static coalesce(e){return f.filter(e,(e=>!!e))}coalesce(){return f.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return f.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},1674:(e,t,n)=>{"use strict";n.d(t,{$l:()=>s,Gs:()=>p,MB:()=>a,Sw:()=>d,bb:()=>c,gN:()=>l,pJ:()=>u});var r=n(1090);const o="undefined"!==typeof Buffer;new r.d((()=>new Uint8Array(256)));let i;class a{static wrap(e){return o&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new a(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return o?this.buffer.toString():(i||(i=new TextDecoder),i.decode(this.buffer))}}function s(e,t){return(e[t+0]|0)>>>0|e[t+1]<<8>>>0}function l(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function c(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function d(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function u(e,t){return e[t]}function p(e,t,n){e[n]=t}},1788:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{VV:()=>i,o5:()=>o});class o{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"===typeof e?(this._fn=e,this._computeKey=r):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class i{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"===typeof e?(this._fn=e,this._computeKey=r):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},8447:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>s});var r=n(1234);const o=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var i;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof a||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o})}(i||(i={}));class a{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new r.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class s{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new a),this._token}cancel(){this._token?this._token instanceof a&&this._token.cancel():this._token=i.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof a&&this._token.dispose():this._token=i.None}}},9493:(e,t,n)=>{"use strict";n.d(t,{W:()=>a});var r=n(631);const o=Object.create(null);function i(e,t){if((0,r.Kg)(t)){const n=o[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return o[e]=t,{id:e}}const a={...{add:i("add",6e4),plus:i("plus",6e4),gistNew:i("gist-new",6e4),repoCreate:i("repo-create",6e4),lightbulb:i("lightbulb",60001),lightBulb:i("light-bulb",60001),repo:i("repo",60002),repoDelete:i("repo-delete",60002),gistFork:i("gist-fork",60003),repoForked:i("repo-forked",60003),gitPullRequest:i("git-pull-request",60004),gitPullRequestAbandoned:i("git-pull-request-abandoned",60004),recordKeys:i("record-keys",60005),keyboard:i("keyboard",60005),tag:i("tag",60006),gitPullRequestLabel:i("git-pull-request-label",60006),tagAdd:i("tag-add",60006),tagRemove:i("tag-remove",60006),person:i("person",60007),personFollow:i("person-follow",60007),personOutline:i("person-outline",60007),personFilled:i("person-filled",60007),gitBranch:i("git-branch",60008),gitBranchCreate:i("git-branch-create",60008),gitBranchDelete:i("git-branch-delete",60008),sourceControl:i("source-control",60008),mirror:i("mirror",60009),mirrorPublic:i("mirror-public",60009),star:i("star",60010),starAdd:i("star-add",60010),starDelete:i("star-delete",60010),starEmpty:i("star-empty",60010),comment:i("comment",60011),commentAdd:i("comment-add",60011),alert:i("alert",60012),warning:i("warning",60012),search:i("search",60013),searchSave:i("search-save",60013),logOut:i("log-out",60014),signOut:i("sign-out",60014),logIn:i("log-in",60015),signIn:i("sign-in",60015),eye:i("eye",60016),eyeUnwatch:i("eye-unwatch",60016),eyeWatch:i("eye-watch",60016),circleFilled:i("circle-filled",60017),primitiveDot:i("primitive-dot",60017),closeDirty:i("close-dirty",60017),debugBreakpoint:i("debug-breakpoint",60017),debugBreakpointDisabled:i("debug-breakpoint-disabled",60017),debugHint:i("debug-hint",60017),terminalDecorationSuccess:i("terminal-decoration-success",60017),primitiveSquare:i("primitive-square",60018),edit:i("edit",60019),pencil:i("pencil",60019),info:i("info",60020),issueOpened:i("issue-opened",60020),gistPrivate:i("gist-private",60021),gitForkPrivate:i("git-fork-private",60021),lock:i("lock",60021),mirrorPrivate:i("mirror-private",60021),close:i("close",60022),removeClose:i("remove-close",60022),x:i("x",60022),repoSync:i("repo-sync",60023),sync:i("sync",60023),clone:i("clone",60024),desktopDownload:i("desktop-download",60024),beaker:i("beaker",60025),microscope:i("microscope",60025),vm:i("vm",60026),deviceDesktop:i("device-desktop",60026),file:i("file",60027),fileText:i("file-text",60027),more:i("more",60028),ellipsis:i("ellipsis",60028),kebabHorizontal:i("kebab-horizontal",60028),mailReply:i("mail-reply",60029),reply:i("reply",60029),organization:i("organization",60030),organizationFilled:i("organization-filled",60030),organizationOutline:i("organization-outline",60030),newFile:i("new-file",60031),fileAdd:i("file-add",60031),newFolder:i("new-folder",60032),fileDirectoryCreate:i("file-directory-create",60032),trash:i("trash",60033),trashcan:i("trashcan",60033),history:i("history",60034),clock:i("clock",60034),folder:i("folder",60035),fileDirectory:i("file-directory",60035),symbolFolder:i("symbol-folder",60035),logoGithub:i("logo-github",60036),markGithub:i("mark-github",60036),github:i("github",60036),terminal:i("terminal",60037),console:i("console",60037),repl:i("repl",60037),zap:i("zap",60038),symbolEvent:i("symbol-event",60038),error:i("error",60039),stop:i("stop",60039),variable:i("variable",60040),symbolVariable:i("symbol-variable",60040),array:i("array",60042),symbolArray:i("symbol-array",60042),symbolModule:i("symbol-module",60043),symbolPackage:i("symbol-package",60043),symbolNamespace:i("symbol-namespace",60043),symbolObject:i("symbol-object",60043),symbolMethod:i("symbol-method",60044),symbolFunction:i("symbol-function",60044),symbolConstructor:i("symbol-constructor",60044),symbolBoolean:i("symbol-boolean",60047),symbolNull:i("symbol-null",60047),symbolNumeric:i("symbol-numeric",60048),symbolNumber:i("symbol-number",60048),symbolStructure:i("symbol-structure",60049),symbolStruct:i("symbol-struct",60049),symbolParameter:i("symbol-parameter",60050),symbolTypeParameter:i("symbol-type-parameter",60050),symbolKey:i("symbol-key",60051),symbolText:i("symbol-text",60051),symbolReference:i("symbol-reference",60052),goToFile:i("go-to-file",60052),symbolEnum:i("symbol-enum",60053),symbolValue:i("symbol-value",60053),symbolRuler:i("symbol-ruler",60054),symbolUnit:i("symbol-unit",60054),activateBreakpoints:i("activate-breakpoints",60055),archive:i("archive",60056),arrowBoth:i("arrow-both",60057),arrowDown:i("arrow-down",60058),arrowLeft:i("arrow-left",60059),arrowRight:i("arrow-right",60060),arrowSmallDown:i("arrow-small-down",60061),arrowSmallLeft:i("arrow-small-left",60062),arrowSmallRight:i("arrow-small-right",60063),arrowSmallUp:i("arrow-small-up",60064),arrowUp:i("arrow-up",60065),bell:i("bell",60066),bold:i("bold",60067),book:i("book",60068),bookmark:i("bookmark",60069),debugBreakpointConditionalUnverified:i("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:i("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:i("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:i("debug-breakpoint-data-unverified",60072),debugBreakpointData:i("debug-breakpoint-data",60073),debugBreakpointDataDisabled:i("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:i("debug-breakpoint-log-unverified",60074),debugBreakpointLog:i("debug-breakpoint-log",60075),debugBreakpointLogDisabled:i("debug-breakpoint-log-disabled",60075),briefcase:i("briefcase",60076),broadcast:i("broadcast",60077),browser:i("browser",60078),bug:i("bug",60079),calendar:i("calendar",60080),caseSensitive:i("case-sensitive",60081),check:i("check",60082),checklist:i("checklist",60083),chevronDown:i("chevron-down",60084),chevronLeft:i("chevron-left",60085),chevronRight:i("chevron-right",60086),chevronUp:i("chevron-up",60087),chromeClose:i("chrome-close",60088),chromeMaximize:i("chrome-maximize",60089),chromeMinimize:i("chrome-minimize",60090),chromeRestore:i("chrome-restore",60091),circleOutline:i("circle-outline",60092),circle:i("circle",60092),debugBreakpointUnverified:i("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:i("terminal-decoration-incomplete",60092),circleSlash:i("circle-slash",60093),circuitBoard:i("circuit-board",60094),clearAll:i("clear-all",60095),clippy:i("clippy",60096),closeAll:i("close-all",60097),cloudDownload:i("cloud-download",60098),cloudUpload:i("cloud-upload",60099),code:i("code",60100),collapseAll:i("collapse-all",60101),colorMode:i("color-mode",60102),commentDiscussion:i("comment-discussion",60103),creditCard:i("credit-card",60105),dash:i("dash",60108),dashboard:i("dashboard",60109),database:i("database",60110),debugContinue:i("debug-continue",60111),debugDisconnect:i("debug-disconnect",60112),debugPause:i("debug-pause",60113),debugRestart:i("debug-restart",60114),debugStart:i("debug-start",60115),debugStepInto:i("debug-step-into",60116),debugStepOut:i("debug-step-out",60117),debugStepOver:i("debug-step-over",60118),debugStop:i("debug-stop",60119),debug:i("debug",60120),deviceCameraVideo:i("device-camera-video",60121),deviceCamera:i("device-camera",60122),deviceMobile:i("device-mobile",60123),diffAdded:i("diff-added",60124),diffIgnored:i("diff-ignored",60125),diffModified:i("diff-modified",60126),diffRemoved:i("diff-removed",60127),diffRenamed:i("diff-renamed",60128),diff:i("diff",60129),diffSidebyside:i("diff-sidebyside",60129),discard:i("discard",60130),editorLayout:i("editor-layout",60131),emptyWindow:i("empty-window",60132),exclude:i("exclude",60133),extensions:i("extensions",60134),eyeClosed:i("eye-closed",60135),fileBinary:i("file-binary",60136),fileCode:i("file-code",60137),fileMedia:i("file-media",60138),filePdf:i("file-pdf",60139),fileSubmodule:i("file-submodule",60140),fileSymlinkDirectory:i("file-symlink-directory",60141),fileSymlinkFile:i("file-symlink-file",60142),fileZip:i("file-zip",60143),files:i("files",60144),filter:i("filter",60145),flame:i("flame",60146),foldDown:i("fold-down",60147),foldUp:i("fold-up",60148),fold:i("fold",60149),folderActive:i("folder-active",60150),folderOpened:i("folder-opened",60151),gear:i("gear",60152),gift:i("gift",60153),gistSecret:i("gist-secret",60154),gist:i("gist",60155),gitCommit:i("git-commit",60156),gitCompare:i("git-compare",60157),compareChanges:i("compare-changes",60157),gitMerge:i("git-merge",60158),githubAction:i("github-action",60159),githubAlt:i("github-alt",60160),globe:i("globe",60161),grabber:i("grabber",60162),graph:i("graph",60163),gripper:i("gripper",60164),heart:i("heart",60165),home:i("home",60166),horizontalRule:i("horizontal-rule",60167),hubot:i("hubot",60168),inbox:i("inbox",60169),issueReopened:i("issue-reopened",60171),issues:i("issues",60172),italic:i("italic",60173),jersey:i("jersey",60174),json:i("json",60175),kebabVertical:i("kebab-vertical",60176),key:i("key",60177),law:i("law",60178),lightbulbAutofix:i("lightbulb-autofix",60179),linkExternal:i("link-external",60180),link:i("link",60181),listOrdered:i("list-ordered",60182),listUnordered:i("list-unordered",60183),liveShare:i("live-share",60184),loading:i("loading",60185),location:i("location",60186),mailRead:i("mail-read",60187),mail:i("mail",60188),markdown:i("markdown",60189),megaphone:i("megaphone",60190),mention:i("mention",60191),milestone:i("milestone",60192),gitPullRequestMilestone:i("git-pull-request-milestone",60192),mortarBoard:i("mortar-board",60193),move:i("move",60194),multipleWindows:i("multiple-windows",60195),mute:i("mute",60196),noNewline:i("no-newline",60197),note:i("note",60198),octoface:i("octoface",60199),openPreview:i("open-preview",60200),package:i("package",60201),paintcan:i("paintcan",60202),pin:i("pin",60203),play:i("play",60204),run:i("run",60204),plug:i("plug",60205),preserveCase:i("preserve-case",60206),preview:i("preview",60207),project:i("project",60208),pulse:i("pulse",60209),question:i("question",60210),quote:i("quote",60211),radioTower:i("radio-tower",60212),reactions:i("reactions",60213),references:i("references",60214),refresh:i("refresh",60215),regex:i("regex",60216),remoteExplorer:i("remote-explorer",60217),remote:i("remote",60218),remove:i("remove",60219),replaceAll:i("replace-all",60220),replace:i("replace",60221),repoClone:i("repo-clone",60222),repoForcePush:i("repo-force-push",60223),repoPull:i("repo-pull",60224),repoPush:i("repo-push",60225),report:i("report",60226),requestChanges:i("request-changes",60227),rocket:i("rocket",60228),rootFolderOpened:i("root-folder-opened",60229),rootFolder:i("root-folder",60230),rss:i("rss",60231),ruby:i("ruby",60232),saveAll:i("save-all",60233),saveAs:i("save-as",60234),save:i("save",60235),screenFull:i("screen-full",60236),screenNormal:i("screen-normal",60237),searchStop:i("search-stop",60238),server:i("server",60240),settingsGear:i("settings-gear",60241),settings:i("settings",60242),shield:i("shield",60243),smiley:i("smiley",60244),sortPrecedence:i("sort-precedence",60245),splitHorizontal:i("split-horizontal",60246),splitVertical:i("split-vertical",60247),squirrel:i("squirrel",60248),starFull:i("star-full",60249),starHalf:i("star-half",60250),symbolClass:i("symbol-class",60251),symbolColor:i("symbol-color",60252),symbolConstant:i("symbol-constant",60253),symbolEnumMember:i("symbol-enum-member",60254),symbolField:i("symbol-field",60255),symbolFile:i("symbol-file",60256),symbolInterface:i("symbol-interface",60257),symbolKeyword:i("symbol-keyword",60258),symbolMisc:i("symbol-misc",60259),symbolOperator:i("symbol-operator",60260),symbolProperty:i("symbol-property",60261),wrench:i("wrench",60261),wrenchSubaction:i("wrench-subaction",60261),symbolSnippet:i("symbol-snippet",60262),tasklist:i("tasklist",60263),telescope:i("telescope",60264),textSize:i("text-size",60265),threeBars:i("three-bars",60266),thumbsdown:i("thumbsdown",60267),thumbsup:i("thumbsup",60268),tools:i("tools",60269),triangleDown:i("triangle-down",60270),triangleLeft:i("triangle-left",60271),triangleRight:i("triangle-right",60272),triangleUp:i("triangle-up",60273),twitter:i("twitter",60274),unfold:i("unfold",60275),unlock:i("unlock",60276),unmute:i("unmute",60277),unverified:i("unverified",60278),verified:i("verified",60279),versions:i("versions",60280),vmActive:i("vm-active",60281),vmOutline:i("vm-outline",60282),vmRunning:i("vm-running",60283),watch:i("watch",60284),whitespace:i("whitespace",60285),wholeWord:i("whole-word",60286),window:i("window",60287),wordWrap:i("word-wrap",60288),zoomIn:i("zoom-in",60289),zoomOut:i("zoom-out",60290),listFilter:i("list-filter",60291),listFlat:i("list-flat",60292),listSelection:i("list-selection",60293),selection:i("selection",60293),listTree:i("list-tree",60294),debugBreakpointFunctionUnverified:i("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:i("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:i("debug-breakpoint-function-disabled",60296),debugStackframeActive:i("debug-stackframe-active",60297),circleSmallFilled:i("circle-small-filled",60298),debugStackframeDot:i("debug-stackframe-dot",60298),terminalDecorationMark:i("terminal-decoration-mark",60298),debugStackframe:i("debug-stackframe",60299),debugStackframeFocused:i("debug-stackframe-focused",60299),debugBreakpointUnsupported:i("debug-breakpoint-unsupported",60300),symbolString:i("symbol-string",60301),debugReverseContinue:i("debug-reverse-continue",60302),debugStepBack:i("debug-step-back",60303),debugRestartFrame:i("debug-restart-frame",60304),debugAlt:i("debug-alt",60305),callIncoming:i("call-incoming",60306),callOutgoing:i("call-outgoing",60307),menu:i("menu",60308),expandAll:i("expand-all",60309),feedback:i("feedback",60310),gitPullRequestReviewer:i("git-pull-request-reviewer",60310),groupByRefType:i("group-by-ref-type",60311),ungroupByRefType:i("ungroup-by-ref-type",60312),account:i("account",60313),gitPullRequestAssignee:i("git-pull-request-assignee",60313),bellDot:i("bell-dot",60314),debugConsole:i("debug-console",60315),library:i("library",60316),output:i("output",60317),runAll:i("run-all",60318),syncIgnored:i("sync-ignored",60319),pinned:i("pinned",60320),githubInverted:i("github-inverted",60321),serverProcess:i("server-process",60322),serverEnvironment:i("server-environment",60323),pass:i("pass",60324),issueClosed:i("issue-closed",60324),stopCircle:i("stop-circle",60325),playCircle:i("play-circle",60326),record:i("record",60327),debugAltSmall:i("debug-alt-small",60328),vmConnect:i("vm-connect",60329),cloud:i("cloud",60330),merge:i("merge",60331),export:i("export",60332),graphLeft:i("graph-left",60333),magnet:i("magnet",60334),notebook:i("notebook",60335),redo:i("redo",60336),checkAll:i("check-all",60337),pinnedDirty:i("pinned-dirty",60338),passFilled:i("pass-filled",60339),circleLargeFilled:i("circle-large-filled",60340),circleLarge:i("circle-large",60341),circleLargeOutline:i("circle-large-outline",60341),combine:i("combine",60342),gather:i("gather",60342),table:i("table",60343),variableGroup:i("variable-group",60344),typeHierarchy:i("type-hierarchy",60345),typeHierarchySub:i("type-hierarchy-sub",60346),typeHierarchySuper:i("type-hierarchy-super",60347),gitPullRequestCreate:i("git-pull-request-create",60348),runAbove:i("run-above",60349),runBelow:i("run-below",60350),notebookTemplate:i("notebook-template",60351),debugRerun:i("debug-rerun",60352),workspaceTrusted:i("workspace-trusted",60353),workspaceUntrusted:i("workspace-untrusted",60354),workspaceUnknown:i("workspace-unknown",60355),terminalCmd:i("terminal-cmd",60356),terminalDebian:i("terminal-debian",60357),terminalLinux:i("terminal-linux",60358),terminalPowershell:i("terminal-powershell",60359),terminalTmux:i("terminal-tmux",60360),terminalUbuntu:i("terminal-ubuntu",60361),terminalBash:i("terminal-bash",60362),arrowSwap:i("arrow-swap",60363),copy:i("copy",60364),personAdd:i("person-add",60365),filterFilled:i("filter-filled",60366),wand:i("wand",60367),debugLineByLine:i("debug-line-by-line",60368),inspect:i("inspect",60369),layers:i("layers",60370),layersDot:i("layers-dot",60371),layersActive:i("layers-active",60372),compass:i("compass",60373),compassDot:i("compass-dot",60374),compassActive:i("compass-active",60375),azure:i("azure",60376),issueDraft:i("issue-draft",60377),gitPullRequestClosed:i("git-pull-request-closed",60378),gitPullRequestDraft:i("git-pull-request-draft",60379),debugAll:i("debug-all",60380),debugCoverage:i("debug-coverage",60381),runErrors:i("run-errors",60382),folderLibrary:i("folder-library",60383),debugContinueSmall:i("debug-continue-small",60384),beakerStop:i("beaker-stop",60385),graphLine:i("graph-line",60386),graphScatter:i("graph-scatter",60387),pieChart:i("pie-chart",60388),bracket:i("bracket",60175),bracketDot:i("bracket-dot",60389),bracketError:i("bracket-error",60390),lockSmall:i("lock-small",60391),azureDevops:i("azure-devops",60392),verifiedFilled:i("verified-filled",60393),newline:i("newline",60394),layout:i("layout",60395),layoutActivitybarLeft:i("layout-activitybar-left",60396),layoutActivitybarRight:i("layout-activitybar-right",60397),layoutPanelLeft:i("layout-panel-left",60398),layoutPanelCenter:i("layout-panel-center",60399),layoutPanelJustify:i("layout-panel-justify",60400),layoutPanelRight:i("layout-panel-right",60401),layoutPanel:i("layout-panel",60402),layoutSidebarLeft:i("layout-sidebar-left",60403),layoutSidebarRight:i("layout-sidebar-right",60404),layoutStatusbar:i("layout-statusbar",60405),layoutMenubar:i("layout-menubar",60406),layoutCentered:i("layout-centered",60407),target:i("target",60408),indent:i("indent",60409),recordSmall:i("record-small",60410),errorSmall:i("error-small",60411),terminalDecorationError:i("terminal-decoration-error",60411),arrowCircleDown:i("arrow-circle-down",60412),arrowCircleLeft:i("arrow-circle-left",60413),arrowCircleRight:i("arrow-circle-right",60414),arrowCircleUp:i("arrow-circle-up",60415),layoutSidebarRightOff:i("layout-sidebar-right-off",60416),layoutPanelOff:i("layout-panel-off",60417),layoutSidebarLeftOff:i("layout-sidebar-left-off",60418),blank:i("blank",60419),heartFilled:i("heart-filled",60420),map:i("map",60421),mapHorizontal:i("map-horizontal",60421),foldHorizontal:i("fold-horizontal",60421),mapFilled:i("map-filled",60422),mapHorizontalFilled:i("map-horizontal-filled",60422),foldHorizontalFilled:i("fold-horizontal-filled",60422),circleSmall:i("circle-small",60423),bellSlash:i("bell-slash",60424),bellSlashDot:i("bell-slash-dot",60425),commentUnresolved:i("comment-unresolved",60426),gitPullRequestGoToChanges:i("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:i("git-pull-request-new-changes",60428),searchFuzzy:i("search-fuzzy",60429),commentDraft:i("comment-draft",60430),send:i("send",60431),sparkle:i("sparkle",60432),insert:i("insert",60433),mic:i("mic",60434),thumbsdownFilled:i("thumbsdown-filled",60435),thumbsupFilled:i("thumbsup-filled",60436),coffee:i("coffee",60437),snake:i("snake",60438),game:i("game",60439),vr:i("vr",60440),chip:i("chip",60441),piano:i("piano",60442),music:i("music",60443),micFilled:i("mic-filled",60444),repoFetch:i("repo-fetch",60445),copilot:i("copilot",60446),lightbulbSparkle:i("lightbulb-sparkle",60447),robot:i("robot",60448),sparkleFilled:i("sparkle-filled",60449),diffSingle:i("diff-single",60450),diffMultiple:i("diff-multiple",60451),surroundWith:i("surround-with",60452),share:i("share",60453),gitStash:i("git-stash",60454),gitStashApply:i("git-stash-apply",60455),gitStashPop:i("git-stash-pop",60456),vscode:i("vscode",60457),vscodeInsiders:i("vscode-insiders",60458),codeOss:i("code-oss",60459),runCoverage:i("run-coverage",60460),runAllCoverage:i("run-all-coverage",60461),coverage:i("coverage",60462),githubProject:i("github-project",60463),mapVertical:i("map-vertical",60464),foldVertical:i("fold-vertical",60464),mapVerticalFilled:i("map-vertical-filled",60465),foldVerticalFilled:i("fold-vertical-filled",60465),goToSearch:i("go-to-search",60466),percentage:i("percentage",60467),sortPercentage:i("sort-percentage",60467),attach:i("attach",60468)},...{dialogError:i("dialog-error","error"),dialogWarning:i("dialog-warning","warning"),dialogInfo:i("dialog-info","info"),dialogClose:i("dialog-close","close"),treeItemExpanded:i("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:i("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:i("tree-filter-on-type-off","list-selection"),treeFilterClear:i("tree-filter-clear","close"),treeItemLoading:i("tree-item-loading","loading"),menuSelection:i("menu-selection","check"),menuSubmenu:i("menu-submenu","chevron-right"),menuBarMore:i("menubar-more","more"),scrollbarButtonLeft:i("scrollbar-button-left","triangle-left"),scrollbarButtonRight:i("scrollbar-button-right","triangle-right"),scrollbarButtonUp:i("scrollbar-button-up","triangle-up"),scrollbarButtonDown:i("scrollbar-button-down","triangle-down"),toolBarMore:i("toolbar-more","more"),quickInputBack:i("quick-input-back","arrow-left"),dropDownButton:i("drop-down-button",60084),symbolCustomColor:i("symbol-customcolor",60252),exportIcon:i("export",60332),workspaceUnspecified:i("workspace-unspecified",60355),newLine:i("newline",60394),thumbsDownFilled:i("thumbsdown-filled",60435),thumbsUpFilled:i("thumbsup-filled",60436),gitFetch:i("git-fetch",60445),lightbulbSparkleAutofix:i("lightbulb-sparkle-autofix",60447),debugBreakpointPending:i("debug-breakpoint-pending",60377)}}},7661:(e,t,n)=>{"use strict";function r(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>s,bU:()=>o,hB:()=>i});class o{constructor(e,t,n,o=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=r(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class i{constructor(e,t,n,o){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.l=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,r=e.b/255,o=e.a,a=Math.max(t,n,r),s=Math.min(t,n,r);let l=0,c=0;const d=(s+a)/2,u=a-s;if(u>0){switch(c=Math.min(d<=.5?u/(2*d):u/(2-2*d),1),a){case t:l=(n-r)/u+(n<r?6:0);break;case n:l=(r-t)/u+2;break;case r:l=(t-n)/u+4}l*=60,l=Math.round(l)}return new i(l,c,d,o)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:r,a:a}=e;let s,l,c;if(0===n)s=l=c=r;else{const e=r<.5?r*(1+n):r+n-r*n,o=2*r-e;s=i._hue2rgb(o,e,t+1/3),l=i._hue2rgb(o,e,t),c=i._hue2rgb(o,e,t-1/3)}return new o(Math.round(255*s),Math.round(255*l),Math.round(255*c),a)}}class a{constructor(e,t,n,o){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.v=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,r=e.b/255,o=Math.max(t,n,r),i=o-Math.min(t,n,r),s=0===o?0:i/o;let l;return l=0===i?0:o===t?((n-r)/i%6+6)%6:o===n?(r-t)/i+2:(t-n)/i+4,new a(Math.round(60*l),s,o,e.a)}static toRGBA(e){const{h:t,s:n,v:r,a:i}=e,a=r*n,s=a*(1-Math.abs(t/60%2-1)),l=r-a;let[c,d,u]=[0,0,0];return t<60?(c=a,d=s):t<120?(c=s,d=a):t<180?(d=a,u=s):t<240?(d=s,u=a):t<300?(c=s,u=a):t<=360&&(c=a,u=s),c=Math.round(255*(c+l)),d=Math.round(255*(d+l)),u=Math.round(255*(u+l)),new o(c,d,u,i)}}class s{static fromHex(e){return s.Format.CSS.parseHex(e)||s.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:i.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:a.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof o)this.rgba=e;else if(e instanceof i)this._hsla=e,this.rgba=i.toRGBA(e);else{if(!(e instanceof a))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=a.toRGBA(e)}}equals(e){return!!e&&o.equals(this.rgba,e.rgba)&&i.equals(this.hsla,e.hsla)&&a.equals(this.hsva,e.hsva)}getRelativeLuminance(){return r(.2126*s._relativeLuminanceForComponent(this.rgba.r)+.7152*s._relativeLuminanceForComponent(this.rgba.g)+.0722*s._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new s(new i(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new s(new i(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:r,a:i}=this.rgba;return new s(new o(t,n,r,i*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new s(new o(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:r,a:i}=this.rgba;return new s(new o(e.rgba.r-i*(e.rgba.r-t),e.rgba.g-i*(e.rgba.g-n),e.rgba.b-i*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=s.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const r=e.getRelativeLuminance(),o=t.getRelativeLuminance();return n=n*(o-r)/o,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const r=e.getRelativeLuminance();return n=n*(r-t.getRelativeLuminance())/r,e.darken(n)}static{this.white=new s(new o(255,255,255,1))}static{this.black=new s(new o(0,0,0,1))}static{this.red=new s(new o(255,0,0,1))}static{this.blue=new s(new o(0,0,255,1))}static{this.green=new s(new o(0,255,0,1))}static{this.cyan=new s(new o(0,255,255,1))}static{this.lightgrey=new s(new o(211,211,211,1))}static{this.transparent=new s(new o(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function r(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,r=!1){return r&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),i=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),a=16*r(t.charCodeAt(5))+r(t.charCodeAt(6));return new e(new o(n,i,a,1))}if(9===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),i=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),a=16*r(t.charCodeAt(5))+r(t.charCodeAt(6)),s=16*r(t.charCodeAt(7))+r(t.charCodeAt(8));return new e(new o(n,i,a,s/255))}if(4===n){const n=r(t.charCodeAt(1)),i=r(t.charCodeAt(2)),a=r(t.charCodeAt(3));return new e(new o(16*n+n,16*i+i,16*a+a))}if(5===n){const n=r(t.charCodeAt(1)),i=r(t.charCodeAt(2)),a=r(t.charCodeAt(3)),s=r(t.charCodeAt(4));return new e(new o(16*n+n,16*i+i,16*a+a,(16*s+s)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(s||(s={}))},4383:(e,t,n)=>{"use strict";n.d(t,{D7:()=>f,EM:()=>u,Qg:()=>c,cU:()=>i,dz:()=>o,iH:()=>d});const r=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function o(e){s(e)||r.onUnexpectedError(e)}function i(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const a="Canceled";function s(e){return e instanceof l||e instanceof Error&&e.name===a&&e.message===a}class l extends Error{constructor(){super(a),this.name=this.message}}function c(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function d(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class u extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class f extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,f.prototype)}}},1234:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>a,vl:()=>m});var r=n(4383),o=n(1484),i=(n(8925),n(8381));var a;!function(e){function t(e){false}function n(e){return(t,n=null,r)=>{let o,i=!1;return o=e((e=>{if(!i)return o?o.dispose():i=!0,t.call(n,e)}),null,r),i&&o.dispose(),o}}function r(e,t,n){return a(((n,r=null,o)=>e((e=>n.call(r,t(e))),null,o)),n)}function i(e,t,n){return a(((n,r=null,o)=>e((e=>t(e)&&n.call(r,e)),null,o)),n)}function a(e,n){let r;const o={onWillAddFirstListener(){r=e(i.fire,i)},onDidRemoveLastListener(){r?.dispose()}};n||t();const i=new m(o);return n?.add(i),i.event}function s(e,n,r=100,o=!1,i=!1,a,s){let l,c,d,u,p=0;const f={leakWarningThreshold:a,onWillAddFirstListener(){l=e((e=>{p++,c=n(c,e),o&&!d&&(_.fire(c),c=void 0),u=()=>{const e=c;c=void 0,d=void 0,(!o||p>1)&&_.fire(e),p=0},"number"===typeof r?(clearTimeout(d),d=setTimeout(u,r)):void 0===d&&(d=0,queueMicrotask(u))}))},onWillRemoveListener(){i&&p>0&&u?.()},onDidRemoveLastListener(){u=void 0,l.dispose()}};s||t();const _=new m(f);return s?.add(_),_.event}e.None=()=>o.jG.None,e.defer=function(e,t){return s(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=n,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=r,e.forEach=function(e,t,n){return a(((n,r=null,o)=>e((e=>{t(e),n.call(r,e)}),null,o)),n)},e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>function(e,t){t instanceof Array?t.push(e):t&&t.add(e);return e}((0,o.qE)(...e.map((e=>e((e=>t.call(n,e)))))),r)},e.reduce=function(e,t,n,o){let i=n;return r(e,(e=>(i=t(i,e),i)),o)},e.debounce=s,e.accumulate=function(t,n=0,r){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,r)},e.latch=function(e,t=(e,t)=>e===t,n){let r,o=!0;return i(e,(e=>{const n=o||!t(e,r);return o=!1,r=e,n}),n)},e.split=function(t,n,r){return[e.filter(t,n,r),e.filter(t,(e=>!n(e)),r)]},e.buffer=function(e,t=!1,n=[],r){let o=n.slice(),i=e((e=>{o?o.push(e):s.fire(e)}));r&&r.add(i);const a=()=>{o?.forEach((e=>s.fire(e))),o=null},s=new m({onWillAddFirstListener(){i||(i=e((e=>s.fire(e))),r&&r.add(i))},onDidAddFirstListener(){o&&(t?setTimeout(a):a())},onDidRemoveLastListener(){i&&i.dispose(),i=null}});return r&&r.add(s),s.event},e.chain=function(e,t){return(n,r,o)=>{const i=t(new c);return e((function(e){const t=i.evaluate(e);t!==l&&n.call(r,t)}),void 0,o)}};const l=Symbol("HaltChainable");class c{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:l)),this}reduce(e,t){let n=t;return this.steps.push((t=>(n=e(n,t),n))),this}latch(e=(e,t)=>e===t){let t,n=!0;return this.steps.push((r=>{const o=n||!e(r,t);return n=!1,t=r,o?r:l})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===l)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const r=(...e)=>o.fire(n(...e)),o=new m({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return o.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const r=(...e)=>o.fire(n(...e)),o=new m({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return o.event},e.toPromise=function(e){return new Promise((t=>n(e)(t)))},e.fromPromise=function(e){const t=new m;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class d{constructor(e,n){this._observable=e,this._counter=0,this._hasChanged=!1;const r={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};n||t(),this.emitter=new m(r),n&&n.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new d(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,r)=>{let i=0,a=!1;const s={beginUpdate(){i++},endUpdate(){i--,0===i&&(e.reportChanges(),a&&(a=!1,t.call(n)))},handlePossibleChange(){},handleChange(){a=!0}};e.addObserver(s),e.reportChanges();const l={dispose(){e.removeObserver(s)}};return r instanceof o.Cm?r.add(l):Array.isArray(r)&&r.push(l),l}}}(a||(a={}));class s{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${s._idPool++}`,s.all.add(this)}start(e){this._stopWatch=new i.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,r]=this.getMostFrequentStack(),o=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(o),console.warn(e);const i=new d(o,e);this._errorHandler(i)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,r]of this._stacks)(!e||t<r)&&(e=[n,r],t=r);return e}}class c{static create(){const e=new Error;return new c(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class d extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class u extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class p{constructor(e){this.value=e}}let f;class m{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??r.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new s(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new u(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||r.dz)(n),o.jG.None}if(this._disposed)return o.jG.None;t&&(e=e.bind(t));const i=new p(e);let a;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(i.stack=c.create(),a=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof p?(this._deliveryQueue??=new _,this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._size++;const s=(0,o.s)((()=>{f?.unregister(s),a?.(),this._removeListener(i)}));if(n instanceof o.Cm?n.add(s):Array.isArray(n)&&n.push(s),f){const e=(new Error).stack.split("\n").slice(2,3).join("\n").trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);f.register(s,t?.[2]??e,s)}return s},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const r=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||r.dz;if(n)try{e.value(t)}catch(o){n(o)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof p)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}else;this._perfMon?.stop()}hasListeners(){return this._size>0}}class _{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}},9326:(e,t,n)=>{"use strict";n.d(t,{TH:()=>a,Zn:()=>l,_1:()=>c,kb:()=>s});var r=n(8821),o=(n(8067),n(1508));function i(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,r.SA.sep)}function s(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t=r.SA.sep){if(!e)return"";const n=e.length,o=e.charCodeAt(0);if(i(o)){if(i(e.charCodeAt(1))&&!i(e.charCodeAt(2))){let r=3;const o=r;for(;r<n&&!i(e.charCodeAt(r));r++);if(o!==r&&!i(e.charCodeAt(r+1)))for(r+=1;r<n;r++)if(i(e.charCodeAt(r)))return e.slice(0,r+1).replace(/[\\/]/g,t)}return t}if(d(o)&&58===e.charCodeAt(1))return i(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let a=e.indexOf("://");if(-1!==a)for(a+=3;a<n;a++)if(i(e.charCodeAt(a)))return e.slice(0,a+1);return""}function c(e,t,n,i=r.Vn){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!(0,o.ns)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===i&&n--,e.charAt(n)===i}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t)}function d(e){return e>=65&&e<=90||e>=97&&e<=122}},6958:(e,t,n)=>{"use strict";n.d(t,{YW:()=>N,qg:()=>M});var r=n(1940),o=n(9326),i=n(4320),a=n(8821),s=n(8067),l=n(1508);const c="**",d="/",u="[/\\\\]",p="[^/\\\\]",f=/\//g;function m(e,t){switch(e){case 0:return"";case 1:return`${p}*?`;default:return`(?:${u}|${p}+${u}${t?`|${u}${p}+`:""})*?`}}function _(e,t){if(!e)return[];const n=[];let r=!1,o=!1,i="";for(const a of e){switch(a){case t:if(!r&&!o){n.push(i),i="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":o=!0;break;case"]":o=!1}i+=a}return i&&n.push(i),n}function h(e){if(!e)return"";let t="";const n=_(e,d);if(n.every((e=>e===c)))t=".*";else{let e=!1;n.forEach(((r,o)=>{if(r===c){if(e)return;t+=m(2,o===n.length-1)}else{let e=!1,i="",a=!1,s="";for(const n of r)if("}"!==n&&e)i+=n;else if(!a||"]"===n&&s)switch(n){case"{":e=!0;continue;case"[":a=!0;continue;case"}":{const n=`(?:${_(i,",").map((e=>h(e))).join("|")})`;t+=n,e=!1,i="";break}case"]":t+="["+s+"]",a=!1,s="";break;case"?":t+=p;continue;case"*":t+=m(1);continue;default:t+=(0,l.bm)(n)}else{let e;e="-"===n?n:"^"!==n&&"!"!==n||s?n===d?"":(0,l.bm)(n):"^",s+=e}o<n.length-1&&(n[o+1]!==c||o+2<n.length)&&(t+=u)}e=r===c}))}return t}const g=/^\*\*\/\*\.[\w\.-]+$/,y=/^\*\*\/([\w\.-]+)\/?$/,v=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,b=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,E=/^\*\*((\/[\w\.-]+)+)\/?$/,S=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,T=new i.qK(1e4),x=function(){return!1},A=function(){return null};function I(e,t){if(!e)return A;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const r=`${n}_${!!t.trimForExclusions}`;let o,i=T.get(r);return i||(i=g.test(n)?function(e,t){return function(n,r){return"string"===typeof n&&n.endsWith(e)?t:null}}(n.substr(4),n):(o=y.exec(C(n,t)))?function(e,t){const n=`/${e}`,r=`\\${e}`,o=function(o,i){return"string"!==typeof o?null:i?i===e?t:null:o===e||o.endsWith(n)||o.endsWith(r)?t:null},i=[e];return o.basenames=i,o.patterns=[t],o.allBasenames=i,o}(o[1],n):(t.trimForExclusions?b:v).test(n)?function(e,t){const n=L(e.slice(1,-1).split(",").map((e=>I(e,t))).filter((e=>e!==A)),e),r=n.length;if(!r)return A;if(1===r)return n[0];const o=function(t,r){for(let o=0,i=n.length;o<i;o++)if(n[o](t,r))return e;return null},i=n.find((e=>!!e.allBasenames));i&&(o.allBasenames=i.allBasenames);const a=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);a.length&&(o.allPaths=a);return o}(n,t):(o=E.exec(C(n,t)))?D(o[1].substr(1),n,!0):(o=S.exec(C(n,t)))?D(o[1],n,!1):function(e){try{const t=new RegExp(`^${h(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return A}}(n),T.set(r,i)),R(i,e)}function R(e,t){if("string"===typeof t)return e;const n=function(n,r){return(0,o._1)(n,t.base,!s.j9)?e((0,l.NB)(n.substr(t.base.length),a.Vn),r):null};return n.allBasenames=e.allBasenames,n.allPaths=e.allPaths,n.basenames=e.basenames,n.patterns=e.patterns,n}function C(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function D(e,t,n){const r=a.Vn===a.SA.sep,o=r?e:e.replace(f,a.Vn),i=a.Vn+o,s=a.SA.sep+e;let l;return l=n?function(n,a){return"string"!==typeof n||n!==o&&!n.endsWith(i)&&(r||n!==e&&!n.endsWith(s))?null:t}:function(n,i){return"string"!==typeof n||n!==o&&(r||n!==e)?null:t},l.allPaths=[(n?"*/":"./")+e],l}function N(e,t,n){return!(!e||"string"!==typeof t)&&M(e)(t,void 0,n)}function M(e,t={}){if(!e)return x;if("string"===typeof e||function(e){const t=e;if(!t)return!1;return"string"===typeof t.base&&"string"===typeof t.pattern}(e)){const n=I(e,t);if(n===A)return x;const r=function(e,t){return!!n(e,t)};return n.allBasenames&&(r.allBasenames=n.allBasenames),n.allPaths&&(r.allPaths=n.allPaths),r}return function(e,t){const n=L(Object.getOwnPropertyNames(e).map((n=>function(e,t,n){if(!1===t)return A;const o=I(e,n);if(o===A)return A;if("boolean"===typeof t)return o;if(t){const n=t.when;if("string"===typeof n){const t=(t,i,a,s)=>{if(!s||!o(t,i))return null;const l=s(n.replace("$(basename)",(()=>a)));return(0,r.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return o}(n,e[n],t))).filter((e=>e!==A))),o=n.length;if(!o)return A;if(!n.some((e=>!!e.requiresSiblings))){if(1===o)return n[0];const e=function(e,t){let o;for(let i=0,a=n.length;i<a;i++){const a=n[i](e,t);if("string"===typeof a)return a;(0,r.Qg)(a)&&(o||(o=[]),o.push(a))}return o?(async()=>{for(const e of o){const t=await e;if("string"===typeof t)return t}return null})():null},t=n.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const i=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return i.length&&(e.allPaths=i),e}const i=function(e,t,o){let i,s;for(let l=0,c=n.length;l<c;l++){const c=n[l];c.requiresSiblings&&o&&(t||(t=(0,a.P8)(e)),i||(i=t.substr(0,t.length-(0,a.LC)(e).length)));const d=c(e,t,i,o);if("string"===typeof d)return d;(0,r.Qg)(d)&&(s||(s=[]),s.push(d))}return s?(async()=>{for(const e of s){const t=await e;if("string"===typeof t)return t}return null})():null},s=n.find((e=>!!e.allBasenames));s&&(i.allBasenames=s.allBasenames);const l=n.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(i.allPaths=l);return i}(e,t)}function L(e,t){const n=e.filter((e=>!!e.basenames));if(n.length<2)return e;const r=n.reduce(((e,t)=>{const n=t.basenames;return n?e.concat(n):e}),[]);let o;if(t){o=[];for(let e=0,n=r.length;e<n;e++)o.push(t)}else o=n.reduce(((e,t)=>{const n=t.patterns;return n?e.concat(n):e}),[]);const i=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=r.indexOf(t);return-1!==n?o[n]:null};i.basenames=r,i.patterns=o,i.allBasenames=r;const a=e.filter((e=>!e.basenames));return a.push(i),a}},5600:(e,t,n)=>{"use strict";n.d(t,{e2:()=>a,sN:()=>o,v7:()=>d});var r=n(1508);function o(e,t){switch(typeof e){case"object":return null===e?i(349,t):Array.isArray(e)?(n=e,r=i(104579,r=t),n.reduce(((e,t)=>o(t,e)),r)):function(e,t){return t=i(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=a(n,t),o(e[n],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return i(e?433:863,t)}(e,t);case"number":return i(e,t);case"undefined":return i(937,t);default:return i(617,t)}var n,r}function i(e,t){return(t<<5)-t+e|0}function a(e,t){t=i(149417,t);for(let n=0,r=e.length;n<r;n++)t=i(e.charCodeAt(n),t);return t}function s(e,t,n=32){const r=n-t;return(e<<t|(~((1<<r)-1)&e)>>>r)>>>0}function l(e,t=0,n=e.byteLength,r=0){for(let o=0;o<n;o++)e[t+o]=r}function c(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class d{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let o,i,a=this._buffLen,s=this._leftoverHighSurrogate;for(0!==s?(o=s,i=-1,s=0):(o=e.charCodeAt(0),i=0);;){let l=o;if(r.pc(o)){if(!(i+1<t)){s=o;break}{const t=e.charCodeAt(i+1);r.LJ(t)?(i++,l=r.z_(o,t)):l=65533}}else r.LJ(o)&&(l=65533);if(a=this._push(n,a,l),i++,!(i<t))break;o=e.charCodeAt(i)}this._buffLen=a,this._leftoverHighSurrogate=s}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),c(this._h0)+c(this._h1)+c(this._h2)+c(this._h3)+c(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=d._bigBlock32,t=this._buffDV;for(let s=0;s<64;s+=4)e.setUint32(s,t.getUint32(s,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,s(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let n,r,o,i=this._h0,a=this._h1,l=this._h2,c=this._h3,u=this._h4;for(let d=0;d<80;d++)d<20?(n=a&l|~a&c,r=1518500249):d<40?(n=a^l^c,r=1859775393):d<60?(n=a&l|a&c|l&c,r=2400959708):(n=a^l^c,r=3395469782),o=s(i,5)+n+u+r+e.getUint32(4*d,!1)&4294967295,u=c,c=l,l=s(a,30),a=i,i=o;this._h0=this._h0+i&4294967295,this._h1=this._h1+a&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+u&4294967295}}},2522:(e,t,n)=>{"use strict";var r;n.d(t,{f:()=>r}),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*r(e){yield e}e.empty=function(){return n},e.single=r,e.wrap=function(e){return t(e)?e:r(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const r of e)if(t(r,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},e.flatMap=function*(e,t){let n=0;for(const r of e)yield*t(r,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let r=n;for(const o of e)r=t(r,o);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const r=[];if(0===n)return[r,t];const o=t[Symbol.iterator]();for(let i=0;i<n;i++){const t=o.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>o}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(r||(r={}))},1090:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});class r{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},1484:(e,t,n)=>{"use strict";function r(e,t){const n=this;let r,o=!1;return function(){if(o)return r;if(o=!0,t)try{r=e.apply(n,arguments)}finally{t()}else r=e.apply(n,arguments);return r}}n.d(t,{jG:()=>f,$w:()=>_,Cm:()=>p,HE:()=>m,qE:()=>d,AS:()=>c,VD:()=>s,s:()=>u,Ay:()=>a});var o=n(2522);let i=null;function a(e){return i?.trackDisposable(e),e}function s(e){i?.markAsDisposed(e)}function l(e,t){i?.setParent(e,t)}function c(e){if(o.f.is(e)){const n=[];for(const r of e)if(r)try{r.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new AggregateError(n,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function d(...e){const t=u((()=>c(e)));return function(e,t){if(i)for(const n of e)i.setParent(n,t)}(e,t),t}function u(e){const t=a({dispose:r((()=>{s(t),e()}))});return t}class p{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,a(this)}dispose(){this._isDisposed||(s(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{c(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class f{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new p,a(this),l(this._store,this)}dispose(){s(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class m{constructor(){this._isDisposed=!1,a(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,s(this),this._value?.dispose(),this._value=void 0}}class _{constructor(){this._store=new Map,this._isDisposed=!1,a(this)}dispose(){s(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{c(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},8925:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});class r{static{this.Undefined=new r(void 0)}constructor(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}}class o{constructor(){this._first=r.Undefined,this._last=r.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===r.Undefined}clear(){let e=this._first;for(;e!==r.Undefined;){const t=e.next;e.prev=r.Undefined,e.next=r.Undefined,e=t}this._first=r.Undefined,this._last=r.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new r(e);if(this._first===r.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(n))}}shift(){if(this._first!==r.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==r.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==r.Undefined&&e.next!==r.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===r.Undefined&&e.next===r.Undefined?(this._first=r.Undefined,this._last=r.Undefined):e.next===r.Undefined?(this._last=this._last.prev,this._last.next=r.Undefined):e.prev===r.Undefined&&(this._first=this._first.next,this._first.prev=r.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==r.Undefined;)yield e.element,e=e.next}}},4320:(e,t,n)=>{"use strict";var r,o;n.d(t,{cO:()=>d,db:()=>u,fT:()=>a,qK:()=>c});class i{constructor(e,t){this.uri=e,this.value=t}}class a{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[r]="ResourceMap",e instanceof a)this.map=new Map(e.map),this.toKey=t??a.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??a.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??a.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new i(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(const[n,r]of this.map)e(r.value,r.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(r=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class s{constructor(){this[o]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(r);break;case 1:this.addItemFirst(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}values(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}entries(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}[(o=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends s{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class c extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class d{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class u{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}},1939:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});const r=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},6456:(e,t,n)=>{"use strict";n.d(t,{ny:()=>r,v$:()=>c,zl:()=>p});var r,o=n(4383),i=n(8067),a=n(1508),s=n(9400),l=n(8821);function c(e,t){return s.r.isUri(e)?(0,a.Q_)(e.scheme,t):(0,a.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(r||(r={}));const d=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,r.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(d){return o.dz(d),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const a=this._ports[t],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"===typeof l&&(c+=`&tkn=${encodeURIComponent(l)}`),s.r.from({scheme:i.HZ?this._preferredWebSchema:r.vscodeRemoteResource,authority:`${n}:${a}`,path:this._remoteResourcesPath,query:c})}};class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===r.vscodeRemote?d.rewrite(e):e.scheme!==r.file||!i.ib&&i.lg!==`${r.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:r.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(s.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return s.r.joinPath(s.r.parse(t,!0),e);const n=l.fj(t,e);return s.r.file(n)}return s.r.parse(t.toUrl(e))}}const p=new u;var f;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let r;"string"===typeof e?r=new URL(e).searchParams:e instanceof URL?r=e.searchParams:s.r.isUri(e)&&(r=new URL(e.toString(!0)).searchParams);const o=r?.get(n);if(o)return t.get(o)},e.addSearchParam=function(e,t,r){if(!globalThis.crossOriginIsolated)return;const o=t&&r?"3":r?"2":"1";e instanceof URLSearchParams?e.set(n,o):e[n]=o}}(f||(f={}))},146:(e,t,n)=>{"use strict";n.d(t,{V0:()=>o,aI:()=>r,kT:()=>i});Object.prototype.hasOwnProperty;function r(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,o;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else{const i=[];for(o in e)i.push(o);i.sort();const a=[];for(o in t)a.push(o);if(a.sort(),!r(i,a))return!1;for(n=0;n<i.length;n++)if(!r(e[i[n]],t[i[n]]))return!1}return!0}function o(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"===typeof e[n]&&t.push(n);return t}function i(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r={};for(const o of e)r[o]=n(o);return r}},8821:(e,t,n)=>{"use strict";n.d(t,{P8:()=>C,pD:()=>R,LC:()=>D,fj:()=>x,S8:()=>T,SA:()=>S,V8:()=>I,hd:()=>A,Vn:()=>N,IN:()=>b});var r=n(8067);let o;const i=globalThis.vscode;if("undefined"!==typeof i&&"undefined"!==typeof i.process){const e=i.process;o={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else o="undefined"!==typeof process&&"string"===typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}},cwd:()=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_CWD||process.cwd())}:{get platform(){return r.uF?"win32":r.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const a=o.cwd,s=(o.env,o.platform),l=46,c=47,d=92,u=58;class p extends Error{constructor(e,t,n){let r;"string"===typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const o=-1!==e.indexOf(".")?"property":"argument";let i=`The "${e}" ${o} ${r} of type ${t}`;i+=". Received type "+typeof n,super(i),this.code="ERR_INVALID_ARG_TYPE"}}function f(e,t){if("string"!==typeof e)throw new p(t,"string",e)}const m="win32"===s;function _(e){return e===c||e===d}function h(e){return e===c}function g(e){return e>=65&&e<=90||e>=97&&e<=122}function y(e,t,n,r){let o="",i=0,a=-1,s=0,d=0;for(let u=0;u<=e.length;++u){if(u<e.length)d=e.charCodeAt(u);else{if(r(d))break;d=c}if(r(d)){if(a===u-1||1===s);else if(2===s){if(o.length<2||2!==i||o.charCodeAt(o.length-1)!==l||o.charCodeAt(o.length-2)!==l){if(o.length>2){const e=o.lastIndexOf(n);-1===e?(o="",i=0):(o=o.slice(0,e),i=o.length-1-o.lastIndexOf(n)),a=u,s=0;continue}if(0!==o.length){o="",i=0,a=u,s=0;continue}}t&&(o+=o.length>0?`${n}..`:"..",i=2)}else o.length>0?o+=`${n}${e.slice(a+1,u)}`:o=e.slice(a+1,u),i=u-a-1;a=u,s=0}else d===l&&-1!==s?++s:s=-1}return o}function v(e,t){!function(e,t){if(null===e||"object"!==typeof e)throw new p(t,"Object",e)}(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${o=t.ext,o?`${"."===o[0]?"":"."}${o}`:""}`;var o;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const b={resolve(...e){let t="",n="",r=!1;for(let o=e.length-1;o>=-1;o--){let i;if(o>=0){if(i=e[o],f(i,`paths[${o}]`),0===i.length)continue}else 0===t.length?i=a():(i={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[`=${t}`]||a(),(void 0===i||i.slice(0,2).toLowerCase()!==t.toLowerCase()&&i.charCodeAt(2)===d)&&(i=`${t}\\`));const s=i.length;let l=0,c="",p=!1;const m=i.charCodeAt(0);if(1===s)_(m)&&(l=1,p=!0);else if(_(m))if(p=!0,_(i.charCodeAt(1))){let e=2,t=e;for(;e<s&&!_(i.charCodeAt(e));)e++;if(e<s&&e!==t){const n=i.slice(t,e);for(t=e;e<s&&_(i.charCodeAt(e));)e++;if(e<s&&e!==t){for(t=e;e<s&&!_(i.charCodeAt(e));)e++;e!==s&&e===t||(c=`\\\\${n}\\${i.slice(t,e)}`,l=e)}}}else l=1;else g(m)&&i.charCodeAt(1)===u&&(c=i.slice(0,2),l=2,s>2&&_(i.charCodeAt(2))&&(p=!0,l=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(r){if(t.length>0)break}else if(n=`${i.slice(l)}\\${n}`,r=p,p&&t.length>0)break}return n=y(n,!r,"\\",_),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){f(e,"path");const t=e.length;if(0===t)return".";let n,r=0,o=!1;const i=e.charCodeAt(0);if(1===t)return h(i)?"\\":e;if(_(i))if(o=!0,_(e.charCodeAt(1))){let o=2,i=o;for(;o<t&&!_(e.charCodeAt(o));)o++;if(o<t&&o!==i){const a=e.slice(i,o);for(i=o;o<t&&_(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&!_(e.charCodeAt(o));)o++;if(o===t)return`\\\\${a}\\${e.slice(i)}\\`;o!==i&&(n=`\\\\${a}\\${e.slice(i,o)}`,r=o)}}}else r=1;else g(i)&&e.charCodeAt(1)===u&&(n=e.slice(0,2),r=2,t>2&&_(e.charCodeAt(2))&&(o=!0,r=3));let a=r<t?y(e.slice(r),!o,"\\",_):"";return 0!==a.length||o||(a="."),a.length>0&&_(e.charCodeAt(t-1))&&(a+="\\"),void 0===n?o?`\\${a}`:a:o?`${n}\\${a}`:`${n}${a}`},isAbsolute(e){f(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return _(n)||t>2&&g(n)&&e.charCodeAt(1)===u&&_(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let i=0;i<e.length;++i){const r=e[i];f(r,"path"),r.length>0&&(void 0===t?t=n=r:t+=`\\${r}`)}if(void 0===t)return".";let r=!0,o=0;if("string"===typeof n&&_(n.charCodeAt(0))){++o;const e=n.length;e>1&&_(n.charCodeAt(1))&&(++o,e>2&&(_(n.charCodeAt(2))?++o:r=!1))}if(r){for(;o<t.length&&_(t.charCodeAt(o));)o++;o>=2&&(t=`\\${t.slice(o)}`)}return b.normalize(t)},relative(e,t){if(f(e,"from"),f(t,"to"),e===t)return"";const n=b.resolve(e),r=b.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let o=0;for(;o<e.length&&e.charCodeAt(o)===d;)o++;let i=e.length;for(;i-1>o&&e.charCodeAt(i-1)===d;)i--;const a=i-o;let s=0;for(;s<t.length&&t.charCodeAt(s)===d;)s++;let l=t.length;for(;l-1>s&&t.charCodeAt(l-1)===d;)l--;const c=l-s,u=a<c?a:c;let p=-1,m=0;for(;m<u;m++){const n=e.charCodeAt(o+m);if(n!==t.charCodeAt(s+m))break;n===d&&(p=m)}if(m!==u){if(-1===p)return r}else{if(c>u){if(t.charCodeAt(s+m)===d)return r.slice(s+m+1);if(2===m)return r.slice(s+m)}a>u&&(e.charCodeAt(o+m)===d?p=m:2===m&&(p=3)),-1===p&&(p=0)}let _="";for(m=o+p+1;m<=i;++m)m!==i&&e.charCodeAt(m)!==d||(_+=0===_.length?"..":"\\..");return s+=p,_.length>0?`${_}${r.slice(s,l)}`:(r.charCodeAt(s)===d&&++s,r.slice(s,l))},toNamespacedPath(e){if("string"!==typeof e||0===e.length)return e;const t=b.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===d){if(t.charCodeAt(1)===d){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(g(t.charCodeAt(0))&&t.charCodeAt(1)===u&&t.charCodeAt(2)===d)return`\\\\?\\${t}`;return e},dirname(e){f(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const o=e.charCodeAt(0);if(1===t)return _(o)?e:".";if(_(o)){if(n=r=1,_(e.charCodeAt(1))){let o=2,i=o;for(;o<t&&!_(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&_(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&!_(e.charCodeAt(o));)o++;if(o===t)return e;o!==i&&(n=r=o+1)}}}}else g(o)&&e.charCodeAt(1)===u&&(n=t>2&&_(e.charCodeAt(2))?3:2,r=n);let i=-1,a=!0;for(let s=t-1;s>=r;--s)if(_(e.charCodeAt(s))){if(!a){i=s;break}}else a=!1;if(-1===i){if(-1===n)return".";i=n}return e.slice(0,i)},basename(e,t){void 0!==t&&f(t,"suffix"),f(e,"path");let n,r=0,o=-1,i=!0;if(e.length>=2&&g(e.charCodeAt(0))&&e.charCodeAt(1)===u&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,s=-1;for(n=e.length-1;n>=r;--n){const l=e.charCodeAt(n);if(_(l)){if(!i){r=n+1;break}}else-1===s&&(i=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(o=n):(a=-1,o=s))}return r===o?o=s:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=r;--n)if(_(e.charCodeAt(n))){if(!i){r=n+1;break}}else-1===o&&(i=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname(e){f(e,"path");let t=0,n=-1,r=0,o=-1,i=!0,a=0;e.length>=2&&e.charCodeAt(1)===u&&g(e.charCodeAt(0))&&(t=r=2);for(let s=e.length-1;s>=t;--s){const t=e.charCodeAt(s);if(_(t)){if(!i){r=s+1;break}}else-1===o&&(i=!1,o=s+1),t===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return-1===n||-1===o||0===a||1===a&&n===o-1&&n===r+1?"":e.slice(n,o)},format:v.bind(null,"\\"),parse(e){f(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,o=e.charCodeAt(0);if(1===n)return _(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(_(o)){if(r=1,_(e.charCodeAt(1))){let t=2,o=t;for(;t<n&&!_(e.charCodeAt(t));)t++;if(t<n&&t!==o){for(o=t;t<n&&_(e.charCodeAt(t));)t++;if(t<n&&t!==o){for(o=t;t<n&&!_(e.charCodeAt(t));)t++;t===n?r=t:t!==o&&(r=t+1)}}}}else if(g(o)&&e.charCodeAt(1)===u){if(n<=2)return t.root=t.dir=e,t;if(r=2,_(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let i=-1,a=r,s=-1,c=!0,d=e.length-1,p=0;for(;d>=r;--d)if(o=e.charCodeAt(d),_(o)){if(!c){a=d+1;break}}else-1===s&&(c=!1,s=d+1),o===l?-1===i?i=d:1!==p&&(p=1):-1!==i&&(p=-1);return-1!==s&&(-1===i||0===p||1===p&&i===s-1&&i===a+1?t.base=t.name=e.slice(a,s):(t.name=e.slice(a,i),t.base=e.slice(a,s),t.ext=e.slice(i,s))),t.dir=a>0&&a!==r?e.slice(0,a-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},E=(()=>{if(m){const e=/\\/g;return()=>{const t=a().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>a()})(),S={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:E();f(o,`paths[${r}]`),0!==o.length&&(t=`${o}/${t}`,n=o.charCodeAt(0)===c)}return t=y(t,!n,"/",h),n?`/${t}`:t.length>0?t:"."},normalize(e){if(f(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return 0===(e=y(e,!t,"/",h)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(f(e,"path"),e.length>0&&e.charCodeAt(0)===c),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];f(r,"path"),r.length>0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":S.normalize(t)},relative(e,t){if(f(e,"from"),f(t,"to"),e===t)return"";if((e=S.resolve(e))===(t=S.resolve(t)))return"";const n=e.length,r=n-1,o=t.length-1,i=r<o?r:o;let a=-1,s=0;for(;s<i;s++){const n=e.charCodeAt(1+s);if(n!==t.charCodeAt(1+s))break;n===c&&(a=s)}if(s===i)if(o>i){if(t.charCodeAt(1+s)===c)return t.slice(1+s+1);if(0===s)return t.slice(1+s)}else r>i&&(e.charCodeAt(1+s)===c?a=s:0===s&&(a=0));let l="";for(s=1+a+1;s<=n;++s)s!==n&&e.charCodeAt(s)!==c||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(f(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let n=-1,r=!0;for(let o=e.length-1;o>=1;--o)if(e.charCodeAt(o)===c){if(!r){n=o;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&f(t,"ext"),f(e,"path");let n,r=0,o=-1,i=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,s=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===c){if(!i){r=n+1;break}}else-1===s&&(i=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(o=n):(a=-1,o=s))}return r===o?o=s:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!i){r=n+1;break}}else-1===o&&(i=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname(e){f(e,"path");let t=-1,n=0,r=-1,o=!0,i=0;for(let a=e.length-1;a>=0;--a){const s=e.charCodeAt(a);if(s!==c)-1===r&&(o=!1,r=a+1),s===l?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)},format:v.bind(null,"/"),parse(e){f(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===c;let r;n?(t.root="/",r=1):r=0;let o=-1,i=0,a=-1,s=!0,d=e.length-1,u=0;for(;d>=r;--d){const t=e.charCodeAt(d);if(t!==c)-1===a&&(s=!1,a=d+1),t===l?-1===o?o=d:1!==u&&(u=1):-1!==o&&(u=-1);else if(!s){i=d+1;break}}if(-1!==a){const r=0===i&&n?1:i;-1===o||0===u||1===u&&o===a-1&&o===i+1?t.base=t.name=e.slice(r,a):(t.name=e.slice(r,o),t.base=e.slice(r,a),t.ext=e.slice(o,a))}return i>0?t.dir=e.slice(0,i-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};S.win32=b.win32=b,S.posix=b.posix=S;const T=m?b.normalize:S.normalize,x=m?b.join:S.join,A=m?b.resolve:S.resolve,I=m?b.relative:S.relative,R=m?b.dirname:S.dirname,C=m?b.basename:S.basename,D=m?b.extname:S.extname,N=m?b.sep:S.sep},8067:(e,t,n)=>{"use strict";n.d(t,{H8:()=>W,HZ:()=>D,OS:()=>P,UP:()=>G,_p:()=>k,cm:()=>F,gm:()=>z,ib:()=>C,j9:()=>R,lg:()=>N,nr:()=>B,uF:()=>A,zx:()=>I});var r=n(8209);const o="en";let i,a,s=!1,l=!1,c=!1,d=!1,u=!1,p=!1,f=!1,m=!1,_=!1,h=!1,g=null,y=null,v=null;const b=globalThis;let E;"undefined"!==typeof b.vscode&&"undefined"!==typeof b.vscode.process?E=b.vscode.process:"undefined"!==typeof process&&"string"===typeof process?.versions?.node&&(E=process);const S="string"===typeof E?.versions?.electron,T=S&&"renderer"===E?.type;if("object"===typeof E){s="win32"===E.platform,l="darwin"===E.platform,c="linux"===E.platform,d=c&&!!E.env.SNAP&&!!E.env.SNAP_REVISION,f=S,_=!!E.env.CI||!!E.env.BUILD_ARTIFACTSTAGINGDIRECTORY,i=o,g=o;const e=E.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);i=t.userLocale,y=t.osLocale,g=t.resolvedLanguage||o,v=t.languagePack?.translationsConfigFile}catch(j){}u=!0}else"object"!==typeof navigator||T?console.error("Unable to resolve platform."):(a=navigator.userAgent,s=a.indexOf("Windows")>=0,l=a.indexOf("Macintosh")>=0,m=(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=a.indexOf("Linux")>=0,h=a?.indexOf("Mobi")>=0,p=!0,g=r.i8()||o,i=navigator.language.toLowerCase(),y=i);let x=0;l?x=1:s?x=3:c&&(x=2);const A=s,I=l,R=c,C=u,D=p,N=p&&"function"===typeof b.importScripts?b.origin:void 0,M=a,L="function"===typeof b.postMessage&&!b.importScripts,k=(()=>{if(L){const e=[];b.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void r.callback()}}));let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),b.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),P=l||m?2:s?1:3;let w=!0,O=!1;function F(){if(!O){O=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);w=513===t[0]}return w}const W=!!(M&&M.indexOf("Chrome")>=0),z=!!(M&&M.indexOf("Firefox")>=0),B=!!(!W&&M&&M.indexOf("Safari")>=0),G=!!(M&&M.indexOf("Edg/")>=0);M&&M.indexOf("Android")},9403:(e,t,n)=>{"use strict";n.d(t,{B6:()=>_,P8:()=>p});var r=n(9326),o=n(6456),i=n(8821),a=n(8067),s=n(1508),l=n(9400);function c(e){return(0,l.I)(e,!0)}class d{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,s.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===o.ny.file)return r._1(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(f(e.authority,t.authority))return r._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return i.SA.basename(e.path)}extname(e){return i.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===o.ny.file?t=l.r.file(i.pD(c(e))).path:(t=i.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===o.ny.file?l.r.file(i.S8(c(e))).path:i.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!f(e.authority,t.authority))return;if(e.scheme===o.ny.file){const n=i.V8(c(e),c(t));return a.uF?r.TH(n):n}let n=e.path||"/";const s=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,s.length);e<t&&(n.charCodeAt(e)===s.charCodeAt(e)||n.charAt(e).toLowerCase()===s.charAt(e).toLowerCase());e++);n=s.substr(0,e)+n.substr(e)}return i.SA.relative(n,s)}resolvePath(e,t){if(e.scheme===o.ny.file){const n=l.r.file(i.hd(c(e),t));return e.with({authority:n.authority,path:n.path})}return t=r.kb(t),e.with({path:i.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,s.Q_)(e,t)}hasTrailingPathSeparator(e,t=i.Vn){if(e.scheme===o.ny.file){const n=c(e);return n.length>r.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=i.Vn){return m(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=i.Vn){let n=!1;if(e.scheme===o.ny.file){const o=c(e);n=void 0!==o&&o.length===r.Zn(o).length&&o[o.length-1]===t}else{t="/";const r=e.path;n=1===r.length&&47===r.charCodeAt(r.length-1)}return n||m(e,t)?e:e.with({path:e.path+"/"})}}const u=new d((()=>!1)),p=(new d((e=>e.scheme!==o.ny.file||!a.j9)),new d((e=>!0)),u.isEqual.bind(u),u.isEqualOrParent.bind(u),u.getComparisonKey.bind(u),u.basenameOrAuthority.bind(u),u.basename.bind(u)),f=(u.extname.bind(u),u.dirname.bind(u),u.joinPath.bind(u),u.normalizePath.bind(u),u.relativePath.bind(u),u.resolvePath.bind(u),u.isAbsolutePath.bind(u),u.isEqualAuthority.bind(u)),m=u.hasTrailingPathSeparator.bind(u);u.removeTrailingPathSeparator.bind(u),u.addTrailingPathSeparator.bind(u);var _;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,r]=e.split(":");t&&r&&n.set(t,r)}));const r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(_||(_={}))},8381:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});const r=globalThis.performance&&"function"===typeof globalThis.performance.now;class o{static create(e){return new o(e)}constructor(e){this._now=r&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},1508:(e,t,n)=>{"use strict";n.d(t,{$X:()=>L,AV:()=>i,E_:()=>C,HG:()=>p,LJ:()=>S,LU:()=>O,NB:()=>l,OS:()=>c,Q_:()=>v,Ss:()=>P,UD:()=>m,Wv:()=>y,Z5:()=>x,_J:()=>M,aC:()=>N,bm:()=>s,eY:()=>d,jy:()=>a,km:()=>I,lT:()=>f,ne:()=>k,ns:()=>b,pc:()=>E,r_:()=>w,tk:()=>F,tl:()=>B,uz:()=>u,y_:()=>G,z_:()=>T});var r=n(1788),o=n(1090);function i(e){return!e||"string"!==typeof e||0===e.trim().length}function a(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function s(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let r=0;for(;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function c(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=s(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(e,r)}function d(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function u(e){return e.split(/\r\n|\r|\n/)}function p(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function f(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function m(e,t){return e<t?-1:e>t?1:0}function _(e,t,n=0,r=e.length,o=0,i=t.length){for(;n<r&&o<i;n++,o++){const r=e.charCodeAt(n),i=t.charCodeAt(o);if(r<i)return-1;if(r>i)return 1}const a=r-n,s=i-o;return a<s?-1:a>s?1:0}function h(e,t,n=0,r=e.length,o=0,i=t.length){for(;n<r&&o<i;n++,o++){let a=e.charCodeAt(n),s=t.charCodeAt(o);if(a===s)continue;if(a>=128||s>=128)return _(e.toLowerCase(),t.toLowerCase(),n,r,o,i);g(a)&&(a-=32),g(s)&&(s-=32);const l=a-s;if(0!==l)return l}const a=r-n,s=i-o;return a<s?-1:a>s?1:0}function g(e){return e>=97&&e<=122}function y(e){return e>=65&&e<=90}function v(e,t){return e.length===t.length&&0===h(e,t)}function b(e,t){const n=t.length;return!(t.length>e.length)&&0===h(e,t,0,n)}function E(e){return 55296<=e&&e<=56319}function S(e){return 56320<=e&&e<=57343}function T(e,t){return t-56320+(e-55296<<10)+65536}function x(e,t,n){const r=e.charCodeAt(n);if(E(r)&&n+1<t){const t=e.charCodeAt(n+1);if(S(t))return T(r,t)}return r}class A{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(S(n)&&t>1){const r=e.charCodeAt(t-2);if(E(r))return T(r,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=x(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class I{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new A(e,t)}nextGraphemeLength(){const e=z.getInstance(),t=this._iterator,n=t.offset;let r=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,o=e.getGraphemeBreakType(t.nextCodePoint());if(W(r,o)){t.setOffset(n);break}r=o}return t.offset-n}prevGraphemeLength(){const e=z.getInstance(),t=this._iterator,n=t.offset;let r=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,o=e.getGraphemeBreakType(t.prevCodePoint());if(W(o,r)){t.setOffset(n);break}r=o}return n-t.offset}eol(){return this._iterator.eol()}}let R;function C(e){return R||(R=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),R.test(e)}const D=/^[\t\n\r\x20-\x7E]*$/;function N(e){return D.test(e)}const M=/[\u2028\u2029]/;function L(e){return M.test(e)}function k(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function P(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const w=String.fromCharCode(65279);function O(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function F(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function W(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class z{static{this._INSTANCE=null}static getInstance(){return z._INSTANCE||(z._INSTANCE=new z),z._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let r=1;for(;r<=n;)if(e<t[3*r])r*=2;else{if(!(e>t[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}class B{static{this.ambiguousCharacterData=new o.d((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')))}static{this.cache=new r.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[r,o]of e)t.has(r)&&n.set(r,o);return n}const r=this.ambiguousCharacterData.value;let o,i=e.filter((e=>!e.startsWith("_")&&e in r));0===i.length&&(i=["_default"]);for(const s of i){o=n(o,t(r[s]))}const a=function(e,t){const n=new Map(e);for(const[r,o]of t)n.set(r,o);return n}(t(r._common),o);return new B(a)}))}static getInstance(e){return B.cache.get(Array.from(e))}static{this._locales=new o.d((()=>Object.keys(B.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return B._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}class G{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(G.getRawData())),this._data}static isInvisibleCharacter(e){return G.getData().has(e)}static get codePoints(){return G.getData()}}},631:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e}function o(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function i(e){return"undefined"===typeof e}function a(e){return i(e)||null===e}n.d(t,{Gv:()=>o,Kg:()=>r,b0:()=>i,z:()=>a})},5152:(e,t,n)=>{"use strict";function r(e){return e<0?0:e>255?255:0|e}function o(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>r,j:()=>o})},9400:(e,t,n)=>{"use strict";n.d(t,{I:()=>g,r:()=>u});var r=n(8821),o=n(8067);const i=/^\w[\w\d+.-]*$/,a=/^\//,s=/^\/\//;const l="",c="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(e){return e instanceof u||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}constructor(e,t,n,r,o,d=!1){"object"===typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,d),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||l),this.query=r||l,this.fragment=o||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!i.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!a.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,d))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:o,fragment:i}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===r?r=this.path:null===r&&(r=l),void 0===o?o=this.query:null===o&&(o=l),void 0===i?i=this.fragment:null===i&&(i=l),t===this.scheme&&n===this.authority&&r===this.path&&o===this.query&&i===this.fragment?this:new f(t,n,r,o,i)}static parse(e,t=!1){const n=d.exec(e);return n?new f(n[2]||l,E(n[4]||l),E(n[5]||l),E(n[7]||l),E(n[9]||l),t):new f(l,l,l,l,l)}static file(e){let t=l;if(o.uF&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){const n=e.indexOf(c,2);-1===n?(t=e.substring(2),e=c):(t=e.substring(2,n),e=e.substring(n)||c)}return new f("file",t,e,l,l)}static from(e,t){return new f(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=o.uF&&"file"===e.scheme?u.file(r.IN.join(g(e,!0),...t)).path:r.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return y(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new f(e);return t._formatted=e.external??null,t._fsPath=e._sep===p?e.fsPath??null:null,t}}return e}}const p=o.uF?1:void 0;class f extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?y(this,!0):(this._formatted||(this._formatted=y(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=p),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _(e,t,n){let r,o=-1;for(let i=0;i<e.length;i++){const a=e.charCodeAt(i);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||45===a||46===a||95===a||126===a||t&&47===a||n&&91===a||n&&93===a||n&&58===a)-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),void 0!==r&&(r+=e.charAt(i));else{void 0===r&&(r=e.substr(0,i));const t=m[a];void 0!==t?(-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),r+=t):-1===o&&(o=i)}}return-1!==o&&(r+=encodeURIComponent(e.substring(o))),void 0!==r?r:e}function h(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=m[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function g(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o.uF&&(n=n.replace(/\//g,"\\")),n}function y(e,t){const n=t?h:_;let r="",{scheme:o,authority:i,path:a,query:s,fragment:l}=e;if(o&&(r+=o,r+=":"),(i||"file"===o)&&(r+=c,r+=c),i){let e=i.indexOf("@");if(-1!==e){const t=i.substr(0,e);i=i.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}i=i.toLowerCase(),e=i.lastIndexOf(":"),-1===e?r+=n(i,!1,!0):(r+=n(i.substr(0,e),!1,!0),r+=i.substr(e))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){const e=a.charCodeAt(1);e>=65&&e<=90&&(a=`/${String.fromCharCode(e+32)}:${a.substr(3)}`)}else if(a.length>=2&&58===a.charCodeAt(1)){const e=a.charCodeAt(0);e>=65&&e<=90&&(a=`${String.fromCharCode(e+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return s&&(r+="?",r+=n(s,!1,!1)),l&&(r+="#",r+=t?l:_(l,!1,!1)),r}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}const b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(e){return e.match(b)?e.replace(b,(e=>v(e))):e}},1929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>v,SimpleWorkerServer:()=>S,create:()=>T,logOnceWebWorkerWarning:()=>p});var r=n(4383),o=n(1234),i=n(1484),a=n(6456),s=n(8067),l=n(1508);const c="default",d="$initialize";let u=!1;function p(e){s.HZ&&(u||(u=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class f{constructor(e,t,n,r,o){this.vsWorker=e,this.req=t,this.channel=n,this.method=r,this.args=o,this.type=0}}class m{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class _{constructor(e,t,n,r,o){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=r,this.arg=o,this.type=2}}class h{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class g{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class y{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const r=String(++this._lastSentReq);return new Promise(((o,i)=>{this._pendingReplies[r]={resolve:o,reject:i},this._send(new f(this._workerId,r,e,t,n))}))}listen(e,t,n){let r=null;const i=new o.vl({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new _(this._workerId,r,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new g(this._workerId,r)),r=null}});return i.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,r)=>("string"!==typeof r||n[r]||(E(r)?n[r]=t=>this.listen(e,r,t):b(r)?n[r]=this.listen(e,r,void 0):36===r.charCodeAt(0)&&(n[r]=async(...n)=>(await(t?.()),this.sendMessage(e,r,n)))),n[r])};return new Proxy(Object.create(null),n)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new m(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,r.cU)(e.detail)),this._send(new m(this._workerId,t,void 0,(0,r.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new h(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class v extends i.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,r.dz)(e)}))),this._protocol=new y({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const o=globalThis.require;"undefined"!==typeof o&&"function"===typeof o.getConfig?n=o.getConfig():"undefined"!==typeof globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(c,d,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(c,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const r=this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!==typeof r[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(r[t].apply(r,n))}catch(o){return Promise.reject(o)}}_handleEvent(e,t,n){const r=this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on main thread`);if(E(t)){const o=r[t].call(r,n);if("function"!==typeof o)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return o}if(b(t)){const n=r[t];if("function"!==typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function b(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function E(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class S{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new y({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===c&&t===d)return this.initialize(n[0],n[1],n[2]);const r=e===c?this._requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!==typeof r[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(r[t].apply(r,n))}catch(o){return Promise.reject(o)}}_handleEvent(e,t,n){const r=e===c?this._requestHandler:this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on worker thread`);if(E(t)){const e=r[t].call(r,n);if("function"!==typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(b(t)){const e=r[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,r){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&("undefined"!==typeof t.baseUrl&&delete t.baseUrl,"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths.vs,"undefined"!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=a.zl.asBrowserUri(`${r}.js`).toString(!0);return n(5890)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function T(e){return new S(e,null)}},534:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});var r=n(5152);class o{constructor(e){const t=(0,r.W)(e);this._defaultValue=t,this._asciiMap=o._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,r.W)(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}},7119:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>g,aZ:()=>h,l5:()=>E,lQ:()=>v,s7:()=>x,sH:()=>S,sN:()=>y,ss:()=>b,yI:()=>_,zp:()=>T});var r=n(8209),o=n(7661),i=n(5845),a=n(5724);const s=(0,i.x1A)("editor.lineHighlightBackground",null,r.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),l=((0,i.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:i.b1q},r.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),(0,i.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},r.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,i.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:i.buw,hcLight:i.buw},r.kg("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,i.x1A)("editor.symbolHighlightBackground",{dark:i.Ubg,light:i.Ubg,hcDark:null,hcLight:null},r.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,i.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:i.buw,hcLight:i.buw},r.kg("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,i.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:o.Q1.black,hcDark:o.Q1.white,hcLight:"#0F4A85"},r.kg("caret","Color of the editor cursor."))),c=(0,i.x1A)("editorCursor.background",null,r.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),d=((0,i.x1A)("editorMultiCursor.primary.foreground",l,r.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),(0,i.x1A)("editorMultiCursor.primary.background",c,r.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,i.x1A)("editorMultiCursor.secondary.foreground",l,r.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),(0,i.x1A)("editorMultiCursor.secondary.background",c,r.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),(0,i.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},r.kg("editorWhitespaces","Color of whitespace characters in the editor."))),u=((0,i.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:o.Q1.white,hcLight:"#292929"},r.kg("editorLineNumbers","Color of editor line numbers.")),(0,i.x1A)("editorIndentGuide.background",d,r.kg("editorIndentGuides","Color of the editor indentation guides."),!1,r.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead."))),p=(0,i.x1A)("editorIndentGuide.activeBackground",d,r.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,r.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),f=((0,i.x1A)("editorIndentGuide.background1",u,r.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),(0,i.x1A)("editorIndentGuide.background2","#00000000",r.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),(0,i.x1A)("editorIndentGuide.background3","#00000000",r.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),(0,i.x1A)("editorIndentGuide.background4","#00000000",r.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),(0,i.x1A)("editorIndentGuide.background5","#00000000",r.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),(0,i.x1A)("editorIndentGuide.background6","#00000000",r.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),(0,i.x1A)("editorIndentGuide.activeBackground1",p,r.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),(0,i.x1A)("editorIndentGuide.activeBackground2","#00000000",r.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),(0,i.x1A)("editorIndentGuide.activeBackground3","#00000000",r.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),(0,i.x1A)("editorIndentGuide.activeBackground4","#00000000",r.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),(0,i.x1A)("editorIndentGuide.activeBackground5","#00000000",r.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),(0,i.x1A)("editorIndentGuide.activeBackground6","#00000000",r.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),(0,i.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:i.buw,hcLight:i.buw},r.kg("editorActiveLineNumber","Color of editor active line number"),!1,r.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."))),m=((0,i.x1A)("editorLineNumber.activeForeground",f,r.kg("editorActiveLineNumber","Color of editor active line number")),(0,i.x1A)("editorLineNumber.dimmedForeground",null,r.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),(0,i.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:o.Q1.lightgrey,hcDark:o.Q1.white,hcLight:"#292929"},r.kg("editorRuler","Color of the editor rulers.")),(0,i.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},r.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,i.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},r.kg("editorBracketMatchBackground","Background color behind matching brackets")),(0,i.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:i.b1q,hcLight:i.b1q},r.kg("editorBracketMatchBorder","Color for matching brackets boxes")),(0,i.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},r.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),(0,i.x1A)("editorOverviewRuler.background",null,r.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),(0,i.x1A)("editorGutter.background",i.YtV,r.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,i.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:o.Q1.fromHex("#fff").transparent(.8),hcLight:i.b1q},r.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,i.x1A)("editorUnnecessaryCode.opacity",{dark:o.Q1.fromHex("#000a"),light:o.Q1.fromHex("#0007"),hcDark:null,hcLight:null},r.kg("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),(0,i.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:o.Q1.fromHex("#fff").transparent(.8),hcLight:o.Q1.fromHex("#292929").transparent(.8)},r.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,i.x1A)("editorGhostText.foreground",{dark:o.Q1.fromHex("#ffffff56"),light:o.Q1.fromHex("#0007"),hcDark:null,hcLight:null},r.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,i.x1A)("editorGhostText.background",null,r.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),new o.Q1(new o.bU(0,122,204,.6))),_=((0,i.x1A)("editorOverviewRuler.rangeHighlightForeground",m,r.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),(0,i.x1A)("editorOverviewRuler.errorForeground",{dark:new o.Q1(new o.bU(255,18,18,.7)),light:new o.Q1(new o.bU(255,18,18,.7)),hcDark:new o.Q1(new o.bU(255,50,50,1)),hcLight:"#B5200D"},r.kg("overviewRuleError","Overview ruler marker color for errors."))),h=(0,i.x1A)("editorOverviewRuler.warningForeground",{dark:i.Hng,light:i.Hng,hcDark:i.Stt,hcLight:i.Stt},r.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),g=(0,i.x1A)("editorOverviewRuler.infoForeground",{dark:i.pOz,light:i.pOz,hcDark:i.IIb,hcLight:i.IIb},r.kg("overviewRuleInfo","Overview ruler marker color for infos.")),y=(0,i.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},r.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),v=(0,i.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},r.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),b=(0,i.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},r.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),E=(0,i.x1A)("editorBracketHighlight.foreground4","#00000000",r.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),S=(0,i.x1A)("editorBracketHighlight.foreground5","#00000000",r.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),T=(0,i.x1A)("editorBracketHighlight.foreground6","#00000000",r.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),x=(0,i.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new o.Q1(new o.bU(255,18,18,.8)),light:new o.Q1(new o.bU(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},r.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));(0,i.x1A)("editorBracketPairGuide.background1","#00000000",r.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background2","#00000000",r.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background3","#00000000",r.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background4","#00000000",r.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background5","#00000000",r.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.background6","#00000000",r.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground1","#00000000",r.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground2","#00000000",r.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground3","#00000000",r.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground4","#00000000",r.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground5","#00000000",r.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),(0,i.x1A)("editorBracketPairGuide.activeBackground6","#00000000",r.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),(0,i.x1A)("editorUnicodeHighlight.border",i.Hng,r.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,i.x1A)("editorUnicodeHighlight.background",i.whs,r.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,a.zy)(((e,t)=>{const n=e.getColor(i.YtV),r=e.getColor(s),o=r&&!r.isTransparent()?r:n;o&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${o}; }`)}))},4454:(e,t,n)=>{"use strict";function r(e){let t=0,n=0,r=0,o=0;for(let i=0,a=e.length;i<a;i++){const s=e.charCodeAt(i);13===s?(0===t&&(n=i),t++,i+1<a&&10===e.charCodeAt(i+1)?(o|=2,i++):o|=3,r=i+1):10===s&&(o|=1,0===t&&(n=i),t++,r=i+1)}return 0===t&&(n=e.length),[t,n,e.length-r,o]}n.d(t,{W:()=>r})},6571:(e,t,n)=>{"use strict";n.d(t,{M:()=>s,S:()=>l});var r=n(4383),o=n(4444),i=n(6677),a=n(6041);class s{static fromRangeInclusive(e){return new s(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new r.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let r=1;r<e.length;r++)t=Math.min(t,e[r].startLineNumber),n=Math.max(n,e[r].endLineNumberExclusive);return new s(t,n)}static ofLength(e,t){return new s(e,e+t)}static deserialize(e){return new s(e[0],e[1])}constructor(e,t){if(e>t)throw new r.D7(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new s(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new s(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new s(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new s(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new i.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new i.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new o.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,a.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,a.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const r=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,r)}}contains(e){const t=(0,a.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,a.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,r=0,o=null;for(;n<this._normalizedRanges.length||r<e._normalizedRanges.length;){let i=null;if(n<this._normalizedRanges.length&&r<e._normalizedRanges.length){const t=this._normalizedRanges[n],o=e._normalizedRanges[r];t.startLineNumber<o.startLineNumber?(i=t,n++):(i=o,r++)}else n<this._normalizedRanges.length?(i=this._normalizedRanges[n],n++):(i=e._normalizedRanges[r],r++);null===o?o=i:o.endLineNumberExclusive>=i.startLineNumber?o=new s(o.startLineNumber,Math.max(o.endLineNumberExclusive,i.endLineNumberExclusive)):(t.push(o),o=i)}return null!==o&&t.push(o),new l(t)}subtractFrom(e){const t=(0,a.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,a.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const r=[];let o=e.startLineNumber;for(let i=t;i<n;i++){const e=this._normalizedRanges[i];e.startLineNumber>o&&r.push(new s(o,e.startLineNumber)),o=e.endLineNumberExclusive}return o<e.endLineNumberExclusive&&r.push(new s(o,e.endLineNumberExclusive)),new l(r)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,r=0;for(;n<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const o=this._normalizedRanges[n],i=e._normalizedRanges[r],a=o.intersect(i);a&&!a.isEmpty&&t.push(a),o.endLineNumberExclusive<i.endLineNumberExclusive?n++:r++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}},4444:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(4383);class o{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let r=n;for(;r<t.length&&t[r].start<=e.endExclusive;)r++;if(n===r)t.splice(n,0,e);else{const i=Math.min(e.start,t[n].start),a=Math.max(e.endExclusive,t[r-1].endExclusive);t.splice(n,r-n,new o(i,a))}}static tryCreate(e,t){if(!(e>t))return new o(e,t)}static ofLength(e){return new o(0,e)}static ofStartAndLength(e,t){return new o(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new r.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new o(this.start+e,this.endExclusive+e)}deltaStart(e){return new o(this.start+e,this.endExclusive)}deltaEnd(e){return new o(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new o(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new o(t,n)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new r.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new r.D7(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}},3069:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});class r{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new r(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return r.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return r.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return r.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,r=0|t.lineNumber;if(n===r){return(0|e.column)-(0|t.column)}return n-r}clone(){return new r(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new r(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},6677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(3069);class o{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return o.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return o.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<=e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>=e.endColumn))}containsRange(e){return o.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return o.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return o.plusRange(this,e)}static plusRange(e,t){let n,r,i,a;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,r=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,r=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,r=e.startColumn),t.endLineNumber>e.endLineNumber?(i=t.endLineNumber,a=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,a=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,a=e.endColumn),new o(n,r,i,a)}intersectRanges(e){return o.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,a=e.endColumn;const s=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,d=t.endColumn;return n<s?(n=s,r=l):n===s&&(r=Math.max(r,l)),i>c?(i=c,a=d):i===c&&(a=Math.min(a,d)),n>i||n===i&&r>a?null:new o(n,r,i,a)}equalsRange(e){return o.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return o.getEndPosition(this)}static getEndPosition(e){return new r.y(e.endLineNumber,e.endColumn)}getStartPosition(){return o.getStartPosition(this)}static getStartPosition(e){return new r.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new o(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new o(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return o.collapseToStart(this)}static collapseToStart(e){return new o(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return o.collapseToEnd(this)}static collapseToEnd(e){return new o(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new o(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new o(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){const n=0|e.startColumn,r=0|t.startColumn;if(n===r){const n=0|e.endLineNumber,r=0|t.endLineNumber;if(n===r){return(0|e.endColumn)-(0|t.endColumn)}return n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}},5326:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(3069),o=n(6677);class i extends o.Q{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return i.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new i(this.startLineNumber,this.startColumn,e,t):new i(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new r.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new r.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new i(e,t,this.endLineNumber,this.endColumn):new i(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new i(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new i(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new i(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new i(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,r,o){return 0===o?new i(e,t,n,r):new i(n,r,e,t)}}},973:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(3069),o=n(6677);class i{static{this.zero=new i(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new i(0,t.column-e.column):new i(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return i.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const r of e)"\n"===r?(t++,n=0):n++;return new i(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new o.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new o.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new r.y(e.lineNumber,e.column+this.columnCount):new r.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},6486:(e,t,n)=>{"use strict";n.d(t,{Io:()=>a,Ld:()=>i,Th:()=>l});var r=n(2522),o=n(8925);const i=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function a(e){let t=i;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const s=new o.w;function l(e,t,n,o,i){if(t=a(t),i||(i=r.f.first(s)),n.length>i.maxLen){let r=e-i.maxLen/2;return r<0?r=0:o+=r,l(e,t,n=n.substring(r,e+i.maxLen/2),o,i)}const d=Date.now(),u=e-1-o;let p=-1,f=null;for(let r=1;!(Date.now()-d>=i.timeBudget);r++){const e=u-i.windowSize*r;t.lastIndex=Math.max(0,e);const o=c(t,n,u,p);if(!o&&f)break;if(f=o,e<=0)break;p=e}if(f){const e={word:f[0],startColumn:o+1+f.index,endColumn:o+1+f.index+f[0].length};return t.lastIndex=0,e}return null}function c(e,t,n,r){let o;for(;o=e.exec(t);){const t=o.index||0;if(t<=n&&e.lastIndex>=n)return o;if(r>0&&t>r)return null}return null}s.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},5982:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});class r{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!==(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),8&n&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),r=this.getFontStyle(e);let o=`color: ${t[n]};`;1&r&&(o+="font-style: italic;"),2&r&&(o+="font-weight: bold;");let i="";return 4&r&&(i+=" underline"),8&r&&(i+=" line-through"),i&&(o+=`text-decoration:${i};`),o}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&n),bold:Boolean(2&n),underline:Boolean(4&n),strikethrough:Boolean(8&n)}}}},2083:(e,t,n)=>{"use strict";n.d(t,{rY:()=>h,ou:()=>_,dG:()=>T,OB:()=>x});var r=n(9493),o=(n(9400),n(1234)),i=n(1484);class a{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new o.vl,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,i.s)((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();const n=new s(this,e,t);return this._factories.set(e,n),(0,i.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class s extends i.jG{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,c,d,u,p,f,m=n(8209);class _{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class h{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,r.W.symbolMethod),t.set(1,r.W.symbolFunction),t.set(2,r.W.symbolConstructor),t.set(3,r.W.symbolField),t.set(4,r.W.symbolVariable),t.set(5,r.W.symbolClass),t.set(6,r.W.symbolStruct),t.set(7,r.W.symbolInterface),t.set(8,r.W.symbolModule),t.set(9,r.W.symbolProperty),t.set(10,r.W.symbolEvent),t.set(11,r.W.symbolOperator),t.set(12,r.W.symbolUnit),t.set(13,r.W.symbolValue),t.set(15,r.W.symbolEnum),t.set(14,r.W.symbolConstant),t.set(15,r.W.symbolEnum),t.set(16,r.W.symbolEnumMember),t.set(17,r.W.symbolKeyword),t.set(27,r.W.symbolSnippet),t.set(18,r.W.symbolText),t.set(19,r.W.symbolColor),t.set(20,r.W.symbolFile),t.set(21,r.W.symbolReference),t.set(22,r.W.symbolCustomColor),t.set(23,r.W.symbolFolder),t.set(24,r.W.symbolTypeParameter),t.set(25,r.W.account),t.set(26,r.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=r.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let r=n.get(e);return"undefined"!==typeof r||t||(r=9),r}}(c||(c={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(d||(d={}));!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(u||(u={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(p||(p={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(f||(f={}));(0,m.kg)("Array","array"),(0,m.kg)("Boolean","boolean"),(0,m.kg)("Class","class"),(0,m.kg)("Constant","constant"),(0,m.kg)("Constructor","constructor"),(0,m.kg)("Enum","enumeration"),(0,m.kg)("EnumMember","enumeration member"),(0,m.kg)("Event","event"),(0,m.kg)("Field","field"),(0,m.kg)("File","file"),(0,m.kg)("Function","function"),(0,m.kg)("Interface","interface"),(0,m.kg)("Key","key"),(0,m.kg)("Method","method"),(0,m.kg)("Module","module"),(0,m.kg)("Namespace","namespace"),(0,m.kg)("Null","null"),(0,m.kg)("Number","number"),(0,m.kg)("Object","object"),(0,m.kg)("Operator","operator"),(0,m.kg)("Package","package"),(0,m.kg)("Property","property"),(0,m.kg)("String","string"),(0,m.kg)("Struct","struct"),(0,m.kg)("TypeParameter","type parameter"),(0,m.kg)("Variable","variable");var g,y,v,b,E;!function(e){const t=new Map;t.set(0,r.W.symbolFile),t.set(1,r.W.symbolModule),t.set(2,r.W.symbolNamespace),t.set(3,r.W.symbolPackage),t.set(4,r.W.symbolClass),t.set(5,r.W.symbolMethod),t.set(6,r.W.symbolProperty),t.set(7,r.W.symbolField),t.set(8,r.W.symbolConstructor),t.set(9,r.W.symbolEnum),t.set(10,r.W.symbolInterface),t.set(11,r.W.symbolFunction),t.set(12,r.W.symbolVariable),t.set(13,r.W.symbolConstant),t.set(14,r.W.symbolString),t.set(15,r.W.symbolNumber),t.set(16,r.W.symbolBoolean),t.set(17,r.W.symbolArray),t.set(18,r.W.symbolObject),t.set(19,r.W.symbolKey),t.set(20,r.W.symbolNull),t.set(21,r.W.symbolEnumMember),t.set(22,r.W.symbolStruct),t.set(23,r.W.symbolEvent),t.set(24,r.W.symbolOperator),t.set(25,r.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=r.W.symbolProperty),n}}(g||(g={}));class S{static{this.Comment=new S("comment")}static{this.Imports=new S("imports")}static{this.Region=new S("region")}static fromValue(e){switch(e){case"comment":return S.Comment;case"imports":return S.Imports;case"region":return S.Region}return new S(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(y||(y={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(v||(v={})),function(e){e.is=function(e){return!(!e||"object"!==typeof e)&&("string"===typeof e.id&&"string"===typeof e.title)}}(b||(b={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(E||(E={}));const T=new a,x=new a;var A;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(A||(A={}))},154:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});const r=(0,n(3591).u1)("languageService")},3941:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,vH:()=>c});var r=n(8209),o=n(1234),i=n(6359),a=n(1939),s=n(1646);const l=new class{constructor(){this._onDidChangeLanguages=new o.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return this._languages}};i.O.add("editor.modesRegistry",l);const c="plaintext";l.registerLanguage({id:c,extensions:[".txt"],aliases:[r.kg("plainText.alias","Plain Text"),"text"],mimetypes:[a.K.text]}),i.O.as(s.Fd.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}])},6223:(e,t,n)=>{"use strict";n.d(t,{A5:()=>r,Dg:()=>l,F4:()=>p,L5:()=>u,Wo:()=>d,X2:()=>s,ZS:()=>o,nk:()=>c,vd:()=>f});var r,o,i,a=n(146);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(r||(r={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(o||(o={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(i||(i={}));class s{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,a.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function c(e){return e&&"function"===typeof e.read}class d{constructor(e,t,n,r,o,i){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=r,this.isAutoWhitespaceEdit=o,this._isTracked=i}}class u{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class p{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function f(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},7729:(e,t,n)=>{"use strict";n.d(t,{lt:()=>u,W5:()=>h,hB:()=>m,dr:()=>p,wC:()=>_});var r=n(1508),o=n(4320),i=n(534);class a extends i.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let n=0,r=e.length;n<r;n++)this.set(e.charCodeAt(n),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const r of this._getIntlSegmenterWordsOnLine(e)){if(r.index>t)break;n=r}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const s=new o.qK(10);var l=n(3069),c=n(6677),d=n(6223);class u{constructor(e,t,n,r){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=r}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(10===r)return!0;if(92===r){if(t++,t>=n)break;const r=e.charCodeAt(t);if(110===r||114===r||87===r)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=r.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(o){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new d.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let r=s.get(n);return r||(r=new a(e,t),s.set(n,r)),r}(this.wordSeparators,[]):null,n?this.searchString:null)}}function p(e,t,n){if(!n)return new d.Dg(e,null);const r=[];for(let o=0,i=t.length;o<i;o++)r[o]=t[o];return new d.Dg(e,r)}class f{constructor(e){const t=[];let n=0;for(let r=0,o=e.length;r<o;r++)10===e.charCodeAt(r)&&(t[n++]=r);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,r=t.length-1;if(-1===r)return 0;if(e<=t[0])return 0;for(;n<r;){const o=n+((r-n)/2|0);t[o]>=e?r=o-1:t[o+1]>=e?(n=o,r=o):n=o+1}return n+1}}class m{static findMatches(e,t,n,r,o){const i=t.parseSearchRequest();return i?i.regex.multiline?this._doFindMatchesMultiline(e,n,new h(i.wordSeparators,i.regex),r,o):this._doFindMatchesLineByLine(e,n,i,r,o):[]}static _getMultilineMatchRange(e,t,n,r,o,i){let a,s,l=0;if(r?(l=r.findLineFeedCountBeforeOffset(o),a=t+o+l):a=t+o,r){const e=r.findLineFeedCountBeforeOffset(o+i.length)-l;s=a+i.length+e}else s=a+i.length;const d=e.getPositionAt(a),u=e.getPositionAt(s);return new c.Q(d.lineNumber,d.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,n,r,o){const i=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),s="\r\n"===e.getEOL()?new f(a):null,l=[];let c,d=0;for(n.reset(0);c=n.next(a);)if(l[d++]=p(this._getMultilineMatchRange(e,i,a,s,c.index,c[0]),c,r),d>=o)return l;return l}static _doFindMatchesLineByLine(e,t,n,r,o){const i=[];let a=0;if(t.startLineNumber===t.endLineNumber){const s=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return a=this._findMatchesInLine(n,s,t.startLineNumber,t.startColumn-1,a,i,r,o),i}const s=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);a=this._findMatchesInLine(n,s,t.startLineNumber,t.startColumn-1,a,i,r,o);for(let l=t.startLineNumber+1;l<t.endLineNumber&&a<o;l++)a=this._findMatchesInLine(n,e.getLineContent(l),l,0,a,i,r,o);if(a<o){const s=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);a=this._findMatchesInLine(n,s,t.endLineNumber,0,a,i,r,o)}return i}static _findMatchesInLine(e,t,n,r,o,i,a,s){const l=e.wordSeparators;if(!a&&e.simpleSearch){const a=e.simpleSearch,u=a.length,p=t.length;let f=-u;for(;-1!==(f=t.indexOf(a,f+u));)if((!l||_(l,t,p,f,u))&&(i[o++]=new d.Dg(new c.Q(n,f+1+r,n,f+1+u+r),null),o>=s))return o;return o}const u=new h(e.wordSeparators,e.regex);let f;u.reset(0);do{if(f=u.next(t),f&&(i[o++]=p(new c.Q(n,f.index+1+r,n,f.index+1+f[0].length+r),f,a),o>=s))return o}while(f);return o}static findNextMatch(e,t,n,r){const o=t.parseSearchRequest();if(!o)return null;const i=new h(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,n,i,r):this._doFindNextMatchLineByLine(e,n,i,r)}static _doFindNextMatchMultiline(e,t,n,r){const o=new l.y(t.lineNumber,1),i=e.getOffsetAt(o),a=e.getLineCount(),s=e.getValueInRange(new c.Q(o.lineNumber,o.column,a,e.getLineMaxColumn(a)),1),d="\r\n"===e.getEOL()?new f(s):null;n.reset(t.column-1);const u=n.next(s);return u?p(this._getMultilineMatchRange(e,i,s,d,u.index,u[0]),u,r):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,r):null}static _doFindNextMatchLineByLine(e,t,n,r){const o=e.getLineCount(),i=t.lineNumber,a=e.getLineContent(i),s=this._findFirstMatchInLine(n,a,i,t.column,r);if(s)return s;for(let l=1;l<=o;l++){const t=(i+l-1)%o,a=e.getLineContent(t+1),s=this._findFirstMatchInLine(n,a,t+1,1,r);if(s)return s}return null}static _findFirstMatchInLine(e,t,n,r,o){e.reset(r-1);const i=e.next(t);return i?p(new c.Q(n,i.index+1,n,i.index+1+i[0].length),i,o):null}static findPreviousMatch(e,t,n,r){const o=t.parseSearchRequest();if(!o)return null;const i=new h(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,n,i,r):this._doFindPreviousMatchLineByLine(e,n,i,r)}static _doFindPreviousMatchMultiline(e,t,n,r){const o=this._doFindMatchesMultiline(e,new c.Q(1,1,t.lineNumber,t.column),n,r,9990);if(o.length>0)return o[o.length-1];const i=e.getLineCount();return t.lineNumber!==i||t.column!==e.getLineMaxColumn(i)?this._doFindPreviousMatchMultiline(e,new l.y(i,e.getLineMaxColumn(i)),n,r):null}static _doFindPreviousMatchLineByLine(e,t,n,r){const o=e.getLineCount(),i=t.lineNumber,a=e.getLineContent(i).substring(0,t.column-1),s=this._findLastMatchInLine(n,a,i,r);if(s)return s;for(let l=1;l<=o;l++){const t=(o+i-l-1)%o,a=e.getLineContent(t+1),s=this._findLastMatchInLine(n,a,t+1,r);if(s)return s}return null}static _findLastMatchInLine(e,t,n,r){let o,i=null;for(e.reset(0);o=e.next(t);)i=p(new c.Q(n,o.index+1,n,o.index+1+o[0].length),o,r);return i}}function _(e,t,n,r,o){return function(e,t,n,r,o){if(0===r)return!0;const i=t.charCodeAt(r-1);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(o>0){const n=t.charCodeAt(r);if(0!==e.get(n))return!0}return!1}(e,t,0,r,o)&&function(e,t,n,r,o){if(r+o===n)return!0;const i=t.charCodeAt(r+o);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(o>0){const n=t.charCodeAt(r+o-1);if(0!==e.get(n))return!0}return!1}(e,t,n,r,o)}class h{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const o=n.index,i=n[0].length;if(o===this._prevMatchStartIndex&&i===this._prevMatchLength){if(0===i){r.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=o,this._prevMatchLength=i,!this._wordSeparators||_(this._wordSeparators,e,t,o,i))return n}while(n);return null}}},4272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>me,createMonacoBaseAPI:()=>_e});var r=n(8447),o=n(1234);class i{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const a=new i,s=new i,l=new i,c=new Array(230),d={},u=[],p=Object.create(null),f=Object.create(null),m=[],_=[];for(let he=0;he<=193;he++)m[he]=-1;for(let he=0;he<=132;he++)_[he]=-1;var h;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const o of t){const[e,t,i,h,g,y,v,b,E]=o;if(r[t]||(r[t]=!0,u[t]=i,p[i]=t,f[i.toLowerCase()]=t,e&&(m[t]=h,0!==h&&3!==h&&5!==h&&4!==h&&6!==h&&57!==h&&(_[h]=t))),!n[h]){if(n[h]=!0,!g)throw new Error(`String representation missing for key code ${h} around scan code ${i}`);a.define(h,g),s.define(h,b||g),l.define(h,E||b||g)}y&&(c[y]=h),v&&(d[v]=h)}_[3]=46}(),function(e){e.toString=function(e){return a.keyCodeToStr(e)},e.fromString=function(e){return a.strToKeyCode(e)},e.toUserSettingsUS=function(e){return s.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return s.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return a.keyCodeToStr(e)}}(h||(h={}));var g,y,v,b,E,S,T,x,A,I,R,C,D,N,M,L,k,P,w,O,F,W,z,B,G,j,V,U,H,K,q,J,X,$,Y,Q,Z,ee,te,ne,re,oe,ie,ae,se,le,ce=n(9400),de=n(3069),ue=n(6677),pe=n(5326),fe=n(2083);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(g||(g={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(y||(y={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(v||(v={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(b||(b={})),function(e){e[e.Deprecated=1]="Deprecated"}(E||(E={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(S||(S={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(T||(T={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(x||(x={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(A||(A={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(I||(I={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(R||(R={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(C||(C={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(D||(D={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(N||(N={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(M||(M={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(L||(L={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(k||(k={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(P||(P={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(w||(w={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(O||(O={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(F||(F={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(W||(W={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(z||(z={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(B||(B={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(G||(G={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(j||(j={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(V||(V={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(U||(U={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(H||(H={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(K||(K={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(q||(q={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(J||(J={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(X||(X={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}($||($={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(Y||(Y={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Q||(Q={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Z||(Z={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(re||(re={})),function(e){e[e.Deprecated=1]="Deprecated"}(oe||(oe={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(ie||(ie={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(ae||(ae={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(se||(se={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class me{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function _e(){return{editor:void 0,languages:void 0,CancellationTokenSource:r.Qi,Emitter:o.vl,KeyCode:W,KeyMod:me,Position:de.y,Range:ue.Q,Selection:pe.L,SelectionDirection:ee,MarkerSeverity:z,MarkerTag:B,Uri:ce.r,Token:fe.ou}}},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>We,EditorSimpleWorker:()=>ze,create:()=>Be});class r{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var o=n(5600);class i{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t}}function a(e,t,n){return new d(new i(e),new i(t)).ComputeDiff(n).changes}class s{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[t+i]}static Copy2(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[t+i]}}class c{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new r(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class d{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,o,i]=d._getElements(e),[a,s,l]=d._getElements(t);this._hasStrings=i&&l,this._originalStringElements=r,this._originalElementsOrHash=o,this._modifiedStringElements=a,this._modifiedElementsOrHash=s,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(d._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=(0,o.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;return d._getStrictElement(this._originalSequence,e)===d._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,o){const i=[!1];let a=this.ComputeDiffRecursive(e,t,n,r,i);return o&&(a=this.PrettifyChanges(a)),{quitEarly:i[0],changes:a}}ComputeDiffRecursive(e,t,n,o,i){for(i[0]=!1;e<=t&&n<=o&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&o>=n&&this.ElementsAreEqual(t,o);)t--,o--;if(e>t||n>o){let i;return n<=o?(s.Assert(e===t+1,"originalStart should only be one more than originalEnd"),i=[new r(e,0,n,o-n+1)]):e<=t?(s.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),i=[new r(e,t-e+1,n,0)]):(s.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i}const a=[0],l=[0],c=this.ComputeRecursionPoint(e,t,n,o,a,l,i),d=a[0],u=l[0];if(null!==c)return c;if(!i[0]){const a=this.ComputeDiffRecursive(e,d,n,u,i);let s=[];return s=i[0]?[new r(d+1,t-(d+1)+1,u+1,o-(u+1)+1)]:this.ComputeDiffRecursive(d+1,t,u+1,o,i),this.ConcatenateChanges(a,s)}return[new r(e,t-e+1,n,o-n+1)]}WALKTRACE(e,t,n,o,i,a,s,l,d,u,p,f,m,_,h,g,y,v){let b=null,E=null,S=new c,T=t,x=n,A=m[0]-g[0]-o,I=-1073741824,R=this.m_forwardHistory.length-1;do{const t=A+e;t===T||t<x&&d[t-1]<d[t+1]?(_=(p=d[t+1])-A-o,p<I&&S.MarkNextChange(),I=p,S.AddModifiedElement(p+1,_),A=t+1-e):(_=(p=d[t-1]+1)-A-o,p<I&&S.MarkNextChange(),I=p-1,S.AddOriginalElement(p,_+1),A=t-1-e),R>=0&&(e=(d=this.m_forwardHistory[R])[0],T=1,x=d.length-1)}while(--R>=-1);if(b=S.getReverseChanges(),v[0]){let e=m[0]+1,t=g[0]+1;if(null!==b&&b.length>0){const n=b[b.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}E=[new r(e,f-e+1,t,h-t+1)]}else{S=new c,T=a,x=s,A=m[0]-g[0]-l,I=1073741824,R=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=A+i;e===T||e<x&&u[e-1]>=u[e+1]?(_=(p=u[e+1]-1)-A-l,p>I&&S.MarkNextChange(),I=p+1,S.AddOriginalElement(p+1,_+1),A=e+1-i):(_=(p=u[e-1])-A-l,p>I&&S.MarkNextChange(),I=p,S.AddModifiedElement(p+1,_+1),A=e-1-i),R>=0&&(i=(u=this.m_reverseHistory[R])[0],T=1,x=u.length-1)}while(--R>=-1);E=S.getChanges()}return this.ConcatenateChanges(b,E)}ComputeRecursionPoint(e,t,n,o,i,a,s){let c=0,d=0,u=0,p=0,f=0,m=0;e--,n--,i[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const _=t-e+(o-n),h=_+1,g=new Int32Array(h),y=new Int32Array(h),v=o-n,b=t-e,E=e-n,S=t-o,T=(b-v)%2===0;g[v]=e,y[b]=t,s[0]=!1;for(let x=1;x<=_/2+1;x++){let _=0,A=0;u=this.ClipDiagonalBound(v-x,x,v,h),p=this.ClipDiagonalBound(v+x,x,v,h);for(let e=u;e<=p;e+=2){c=e===u||e<p&&g[e-1]<g[e+1]?g[e+1]:g[e-1]+1,d=c-(e-v)-E;const n=c;for(;c<t&&d<o&&this.ElementsAreEqual(c+1,d+1);)c++,d++;if(g[e]=c,c+d>_+A&&(_=c,A=d),!T&&Math.abs(e-b)<=x-1&&c>=y[e])return i[0]=c,a[0]=d,n<=y[e]&&x<=1448?this.WALKTRACE(v,u,p,E,b,f,m,S,g,y,c,t,i,d,o,a,T,s):null}const I=(_-e+(A-n)-x)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(_,I))return s[0]=!0,i[0]=_,a[0]=A,I>0&&x<=1448?this.WALKTRACE(v,u,p,E,b,f,m,S,g,y,c,t,i,d,o,a,T,s):(e++,n++,[new r(e,t-e+1,n,o-n+1)]);f=this.ClipDiagonalBound(b-x,x,b,h),m=this.ClipDiagonalBound(b+x,x,b,h);for(let r=f;r<=m;r+=2){c=r===f||r<m&&y[r-1]>=y[r+1]?y[r+1]-1:y[r-1],d=c-(r-b)-S;const l=c;for(;c>e&&d>n&&this.ElementsAreEqual(c,d);)c--,d--;if(y[r]=c,T&&Math.abs(r-v)<=x&&c<=g[r])return i[0]=c,a[0]=d,l>=g[r]&&x<=1448?this.WALKTRACE(v,u,p,E,b,f,m,S,g,y,c,t,i,d,o,a,T,s):null}if(x<=1447){let e=new Int32Array(p-u+2);e[0]=v-u+1,l.Copy2(g,u,e,1,p-u+1),this.m_forwardHistory.push(e),e=new Int32Array(m-f+2),e[0]=b-f+1,l.Copy2(y,f,e,1,m-f+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(v,u,p,E,b,f,m,S,g,y,c,t,i,d,o,a,T,s)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],r=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,o=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,i=n.originalLength>0,a=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<o&&(!i||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!a||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const s=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],s)&&(e[t]=s[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let r=0,o=0;if(t>0){const n=e[t-1];r=n.originalStart+n.originalLength,o=n.modifiedStart+n.modifiedLength}const i=n.originalLength>0,a=n.modifiedLength>0;let s=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<r||c<o)break;if(i&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(a&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const d=(t===r&&c===o?5:0)+this._boundaryScore(t,n.originalLength,c,n.modifiedLength);d>l&&(l=d,s=e)}n.originalStart-=s,n.modifiedStart-=s;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],r=e[t],o=r.originalStart-n.originalStart-n.originalLength,i=n.originalStart,a=r.originalStart+r.originalLength,s=a-i,l=n.modifiedStart,c=r.modifiedStart+r.modifiedLength,d=c-l;if(o<5&&s<20&&d<20){const e=this._findBetterContiguousSequence(i,s,l,d,o);if(e){const[t,i]=e;t===n.originalStart+n.originalLength&&i===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=i-n.modifiedStart,r.originalStart=t+o,r.modifiedStart=i+o,r.originalLength=a-r.originalStart,r.modifiedLength=c-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,o){if(t<o||r<o)return null;const i=e+t-o+1,a=n+r-o+1;let s=0,l=0,c=0;for(let d=e;d<i;d++)for(let e=n;e<a;e++){const t=this._contiguousSequenceScore(d,e,o);t>0&&t>s&&(s=t,l=d,c=e)}return s>0?[l,c]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let o=0;o<n;o++){if(!this.ElementsAreEqual(e+o,t+o))return 0;r+=this._originalStringElements[e+o].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return l.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],l.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(s.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),s.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const o=e.originalStart;let i=e.originalLength;const a=e.modifiedStart;let s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new r(o,i,a,s),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;const o=t%2===0;if(e<0){return o===(n%2===0)?0:1}return o===((r-n-1)%2===0)?r-1:r-2}}var u=n(6677),p=n(534);class f{constructor(e,t,n){const r=new Uint8Array(e*t);for(let o=0,i=e*t;o<i;o++)r[o]=n;this._data=r,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class m{constructor(e){let t=0,n=0;for(let o=0,i=e.length;o<i;o++){const[r,i,a]=e[o];i>t&&(t=i),r>n&&(n=r),a>n&&(n=a)}t++,n++;const r=new f(n,t,0);for(let o=0,i=e.length;o<i;o++){const[t,n,i]=e[o];r.set(t,n,i)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let _=null;let h=null;class g{static _createLink(e,t,n,r,o){let i=o-1;do{const n=t.charCodeAt(i);if(2!==e.get(n))break;i--}while(i>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(i);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&i--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:i+2},url:t.substring(r,i+1)}}static computeLinks(e,t=function(){return null===_&&(_=new m([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),_}()){const n=function(){if(null===h){h=new p.V(0);const e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\u2018\u3008\u300c\u300e\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u300f\u300d\u3009\u2019\uff40\uff5e\u2026";for(let n=0;n<e.length;n++)h.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)h.set(t.charCodeAt(n),2)}return h}(),r=[];for(let o=1,i=e.getLineCount();o<=i;o++){const i=e.getLineContent(o),a=i.length;let s=0,l=0,c=0,d=1,u=!1,p=!1,f=!1,m=!1;for(;s<a;){let e=!1;const a=i.charCodeAt(s);if(13===d){let t;switch(a){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:f=!0,p=!0,t=0;break;case 93:f=!1,t=p?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=c===a?1:39===c||34===c||96===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=f?0:1;break;default:t=n.get(a)}1===t&&(r.push(g._createLink(n,i,o,l,s)),e=!0)}else if(12===d){let t;91===a?(p=!0,t=0):t=n.get(a),1===t?e=!0:d=13}else d=t.nextState(d,a),0===d&&(e=!0);e&&(d=1,u=!1,p=!1,m=!1,l=s+1,c=a),s++}13===d&&r.push(g._createLink(n,i,o,l,a))}return r}}class y{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new y}navigateValueSet(e,t,n,r,o){if(e&&t){const n=this.doNavigateValueSet(t,o);if(n)return{range:e,value:n}}if(n&&r){const e=this.doNavigateValueSet(r,o);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const o=parseFloat(e);return isNaN(r)||isNaN(o)||r!==o?null:0!==r||t?(r=Math.floor(r*n),r+=t?n:-n,String(r/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let r=null;for(let o=0,i=e.length;null===r&&o<i;o++)r=this.valueSetReplace(e[o],t,n);return r}valueSetReplace(e,t,n){let r=e.indexOf(t);return r>=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}var v=n(4272),b=n(718),E=n(8381),S=n(4855);class T{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class x{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var A=n(4383),I=n(6571),R=n(3069),C=n(6782),D=n(4444);n(973);class N{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class M{static inverse(e,t,n){const r=[];let o=1,i=1;for(const s of e){const e=new M(new I.M(o,s.original.startLineNumber),new I.M(i,s.modified.startLineNumber));e.modified.isEmpty||r.push(e),o=s.original.endLineNumberExclusive,i=s.modified.endLineNumberExclusive}const a=new M(new I.M(o,t+1),new I.M(i,n+1));return a.modified.isEmpty||r.push(a),r}static clip(e,t,n){const r=[];for(const o of e){const e=o.original.intersect(t),i=o.modified.intersect(n);e&&!e.isEmpty&&i&&!i.isEmpty&&r.push(new M(e,i))}return r}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new M(this.modified,this.original)}join(e){return new M(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new w(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new A.D7("not a valid diff");return new w(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new w(new u.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new u.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(k(this.original.endLineNumberExclusive,e)&&k(this.modified.endLineNumberExclusive,t))return new w(new u.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new u.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new w(u.Q.fromPositions(new R.y(this.original.startLineNumber,1),L(new R.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(new R.y(this.modified.startLineNumber,1),L(new R.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new w(u.Q.fromPositions(L(new R.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),L(new R.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),u.Q.fromPositions(L(new R.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),L(new R.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new A.D7}}function L(e,t){if(e.lineNumber<1)return new R.y(1,1);if(e.lineNumber>t.length)return new R.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new R.y(e.lineNumber,n.length+1):e}function k(e,t){return e>=1&&e<=t.length}class P extends M{static fromRangeMappings(e){const t=I.M.join(e.map((e=>I.M.fromRangeInclusive(e.originalRange)))),n=I.M.join(e.map((e=>I.M.fromRangeInclusive(e.modifiedRange))));return new P(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new P(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new P(this.original,this.modified,[this.toRangeMapping()])}}class w{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],r=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition()))throw new A.D7("Range mappings must be sorted")}}constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new w(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new N(this.originalRange,t)}}var O=n(1508);class F{computeDiff(e,t,n){const r=new V(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let i=null;for(const a of r.changes){let e,t;e=0===a.originalEndLineNumber?new I.M(a.originalStartLineNumber+1,a.originalStartLineNumber+1):new I.M(a.originalStartLineNumber,a.originalEndLineNumber+1),t=0===a.modifiedEndLineNumber?new I.M(a.modifiedStartLineNumber+1,a.modifiedStartLineNumber+1):new I.M(a.modifiedStartLineNumber,a.modifiedEndLineNumber+1);let n=new P(e,t,a.charChanges?.map((e=>new w(new u.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new u.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));i&&(i.modified.endLineNumberExclusive!==n.modified.startLineNumber&&i.original.endLineNumberExclusive!==n.original.startLineNumber||(n=new P(i.original.join(n.original),i.modified.join(n.modified),i.innerChanges&&n.innerChanges?i.innerChanges.concat(n.innerChanges):void 0),o.pop())),o.push(n),i=n}return(0,C.Ft)((()=>(0,C.Xo)(o,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new T(o,[],r.quitEarly)}}function W(e,t,n,r){return new d(e,t,n).ComputeDiff(r)}class z{constructor(e){const t=[],n=[];for(let r=0,o=e.length;r<o;r++)t[r]=U(e[r],1),n[r]=H(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const r=[],o=[],i=[];let a=0;for(let s=t;s<=n;s++){const t=this.lines[s],l=e?this._startColumns[s]:1,c=e?this._endColumns[s]:t.length+1;for(let e=l;e<c;e++)r[a]=t.charCodeAt(e-1),o[a]=s+1,i[a]=e,a++;!e&&s<n&&(r[a]=10,o[a]=s+1,i[a]=t.length+1,a++)}return new B(r,o,i)}}class B{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class G{constructor(e,t,n,r,o,i,a,s){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=o,this.modifiedStartColumn=i,this.modifiedEndLineNumber=a,this.modifiedEndColumn=s}static createFromDiffChange(e,t,n){const r=t.getStartLineNumber(e.originalStart),o=t.getStartColumn(e.originalStart),i=t.getEndLineNumber(e.originalStart+e.originalLength-1),a=t.getEndColumn(e.originalStart+e.originalLength-1),s=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),d=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new G(r,o,i,a,s,l,c,d)}}class j{constructor(e,t,n,r,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=o}static createFromDiffResult(e,t,n,r,o,i,a){let s,l,c,d,u;if(0===t.originalLength?(s=n.getStartLineNumber(t.originalStart)-1,l=0):(s=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=r.getStartLineNumber(t.modifiedStart)-1,d=0):(c=r.getStartLineNumber(t.modifiedStart),d=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),i&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){const i=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),s=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(i.getElements().length>0&&s.getElements().length>0){let e=W(i,s,o,!0).changes;a&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,o=e.length;r<o;r++){const o=e[r],i=o.originalStart-(n.originalStart+n.originalLength),a=o.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(i,a)<3?(n.originalLength=o.originalStart+o.originalLength-n.originalStart,n.modifiedLength=o.modifiedStart+o.modifiedLength-n.modifiedStart):(t.push(o),n=o)}return t}(e)),u=[];for(let t=0,n=e.length;t<n;t++)u.push(G.createFromDiffChange(e[t],i,s))}}return new j(s,l,c,d,u)}}class V{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new z(e),this.modified=new z(t),this.continueLineDiff=K(n.maxComputationTime),this.continueCharDiff=K(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=W(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(j.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const r=[];let o=0,i=0;for(let a=-1,s=t.length;a<s;a++){const e=a+1<s?t[a+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;for(;o<n&&i<l;){const e=this.originalLines[o],t=this.modifiedLines[i];if(e!==t){{let n=U(e,1),a=U(t,1);for(;n>1&&a>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(a-2))break;n--,a--}(n>1||a>1)&&this._pushTrimWhitespaceCharChange(r,o+1,1,n,i+1,1,a)}{let n=H(e,1),a=H(t,1);const s=e.length+1,l=t.length+1;for(;n<s&&a<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(a-1))break;n++,a++}(n<s||a<l)&&this._pushTrimWhitespaceCharChange(r,o+1,n,s,i+1,a,l)}}o++,i++}e&&(r.push(j.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),o+=e.originalLength,i+=e.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,o,i,a){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,o,i,a))return;let s;this.shouldComputeCharChanges&&(s=[new G(t,n,t,r,o,i,o,a)]),e.push(new j(t,t,o,o,s))}_mergeTrimWhitespaceCharChange(e,t,n,r,o,i,a){const s=e.length;if(0===s)return!1;const l=e[s-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===o?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new G(t,n,t,r,o,i,o,a)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===o&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=o,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new G(t,n,t,r,o,i,o,a)),!0))}}function U(e,t){const n=O.HG(e);return-1===n?t:n+1}function H(e,t){const n=O.lT(e);return-1===n?t:n+2}function K(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var q=n(9861);class J{static trivial(e,t){return new J([new X(D.L.ofLength(e.length),D.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new J([new X(D.L.ofLength(e.length),D.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class X{static invert(e,t){const n=[];return(0,q.pN)(e,((e,r)=>{n.push(X.fromOffsetPairs(e?e.getEndExclusives():$.zero,r?r.getStarts():new $(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new X(new D.L(e.offset1,t.offset1),new D.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new A.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new X(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new X(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new X(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new X(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new X(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new X(t,n)}getStarts(){return new $(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new $(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class ${static{this.zero=new $(0,0)}static{this.max=new $(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new $(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class Y{static{this.instance=new Y}isValid(){return!0}}class Q{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new A.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class Z{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}}function ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let r=0;for(let o=e.startLineNumber-1;o<e.endLineNumberExclusive-1;o++){const e=t[o];for(let t=0;t<e.length;t++){r++;const n=e[t],o=te.getKey(n);this.histogram[o]=(this.histogram[o]||0)+1}r++;const n=te.getKey("\n");this.histogram[n]=(this.histogram[n]||0)+1}this.totalCount=r}computeSimilarity(e){let t=0;const n=Math.max(this.histogram.length,e.histogram.length);for(let r=0;r<n;r++)t+=Math.abs((this.histogram[r]??0)-(e.histogram[r]??0));return 1-t/(this.totalCount+e.totalCount)}}class ne{compute(e,t,n=Y.instance,r){if(0===e.length||0===t.length)return J.trivial(e,t);const o=new Z(e.length,t.length),i=new Z(e.length,t.length),a=new Z(e.length,t.length);for(let f=0;f<e.length;f++)for(let s=0;s<t.length;s++){if(!n.isValid())return J.trivialTimedOut(e,t);const l=0===f?0:o.get(f-1,s),c=0===s?0:o.get(f,s-1);let d;e.getElement(f)===t.getElement(s)?(d=0===f||0===s?0:o.get(f-1,s-1),f>0&&s>0&&3===i.get(f-1,s-1)&&(d+=a.get(f-1,s-1)),d+=r?r(f,s):1):d=-1;const u=Math.max(l,c,d);if(u===d){const e=f>0&&s>0?a.get(f-1,s-1):0;a.set(f,s,e+1),i.set(f,s,3)}else u===l?(a.set(f,s,0),i.set(f,s,1)):u===c&&(a.set(f,s,0),i.set(f,s,2));o.set(f,s,u)}const s=[];let l=e.length,c=t.length;function d(e,t){e+1===l&&t+1===c||s.push(new X(new D.L(e+1,l),new D.L(t+1,c))),l=e,c=t}let u=e.length-1,p=t.length-1;for(;u>=0&&p>=0;)3===i.get(u,p)?(d(u,p),u--,p--):1===i.get(u,p)?u--:p--;return d(-1,-1),s.reverse(),new J(s,!1)}}class re{compute(e,t,n=Y.instance){if(0===e.length||0===t.length)return J.trivial(e,t);const r=e,o=t;function i(e,t){for(;e<r.length&&t<o.length&&r.getElement(e)===o.getElement(t);)e++,t++;return e}let a=0;const s=new ie;s.set(0,i(0,0));const l=new ae;l.set(0,0===s.get(0)?null:new oe(null,0,0,s.get(0)));let c=0;e:for(;;){if(a++,!n.isValid())return J.trivialTimedOut(r,o);const e=-Math.min(a,o.length+a%2),t=Math.min(a,r.length+a%2);for(c=e;c<=t;c+=2){let n=0;const a=c===t?-1:s.get(c+1),d=c===e?-1:s.get(c-1)+1;n++;const u=Math.min(Math.max(a,d),r.length),p=u-c;if(n++,u>r.length||p>o.length)continue;const f=i(u,p);s.set(c,f);const m=u===a?l.get(c+1):l.get(c-1);if(l.set(c,f!==u?new oe(m,u,p,f-u):m),s.get(c)===r.length&&s.get(c)-c===o.length)break e}}let d=l.get(c);const u=[];let p=r.length,f=o.length;for(;;){const e=d?d.x+d.length:0,t=d?d.y+d.length:0;if(e===p&&t===f||u.push(new X(new D.L(e,p),new D.L(t,f))),!d)break;p=d.x,f=d.y,d=d.prev}return u.reverse(),new J(u,!1)}}class oe{constructor(e,t,n,r){this.prev=e,this.x=t,this.y=n,this.length=r}}class ie{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class ae{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}var se=n(6041),le=n(4320);class ce{constructor(e,t,n){this.lines=e,this.range=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let r=this.range.startLineNumber;r<=this.range.endLineNumber;r++){let t=e[r-1],o=0;r===this.range.startLineNumber&&this.range.startColumn>1&&(o=this.range.startColumn-1,t=t.substring(o)),this.lineStartOffsets.push(o);let i=0;if(!n){const e=t.trimStart();i=t.length-e.length,t=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(i);const a=r===this.range.endLineNumber?Math.min(this.range.endColumn-1-o-i,t.length):t.length;for(let e=0;e<a;e++)this.elements.push(t.charCodeAt(e));r<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new D.L(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=fe(e>0?this.elements[e-1]:-1),n=fe(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let r=0;return t!==n&&(r+=10,0===t&&1===n&&(r+=1)),r+=pe(t),r+=pe(n),r}translateOffset(e,t="right"){const n=(0,se.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),r=e-this.firstElementOffsetByLineIdx[n];return new R.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+r+(0===r&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?u.Q.fromPositions(n,n):u.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!de(this.elements[e]))return;let t=e;for(;t>0&&de(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&de(this.elements[n]);)n++;return new D.L(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){const t=(0,se.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,se.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new D.L(t,n)}}function de(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const ue={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function pe(e){return ue[e]}function fe(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function me(e,t,n,r,o,i){let{moves:a,excludedChanges:s}=function(e,t,n,r){const o=[],i=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),a=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),s=new Set;for(const l of i){let e,t=-1;for(const n of a){const r=l.computeSimilarity(n);r>t&&(t=r,e=n)}if(t>.9&&e&&(a.delete(e),o.push(new M(l.range,e.range)),s.add(l.source),s.add(e.source)),!r.isValid())return{moves:o,excludedChanges:s}}return{moves:o,excludedChanges:s}}(e,t,n,i);if(!i.isValid())return[];const l=function(e,t,n,r,o,i){const a=[],s=new le.db;for(const p of e)for(let e=p.original.startLineNumber;e<p.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;s.add(n,{range:new I.M(e,e+3)})}const l=[];e.sort((0,q.VE)((e=>e.modified.startLineNumber),q.U9));for(const p of e){let e=[];for(let t=p.modified.startLineNumber;t<p.modified.endLineNumberExclusive-2;t++){const r=`${n[t-1]}:${n[t+1-1]}:${n[t+2-1]}`,o=new I.M(t,t+3),i=[];s.forEach(r,(({range:t})=>{for(const r of e)if(r.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&r.modifiedLineRange.endLineNumberExclusive+1===o.endLineNumberExclusive)return r.originalLineRange=new I.M(r.originalLineRange.startLineNumber,t.endLineNumberExclusive),r.modifiedLineRange=new I.M(r.modifiedLineRange.startLineNumber,o.endLineNumberExclusive),void i.push(r);const n={modifiedLineRange:o,originalLineRange:t};l.push(n),i.push(n)})),e=i}if(!i.isValid())return[]}l.sort((0,q.Hw)((0,q.VE)((e=>e.modifiedLineRange.length),q.U9)));const c=new I.S,d=new I.S;for(const p of l){const e=p.modifiedLineRange.startLineNumber-p.originalLineRange.startLineNumber,t=c.subtractFrom(p.modifiedLineRange),n=d.subtractFrom(p.originalLineRange).getWithDelta(e),r=t.getIntersection(n);for(const o of r.ranges){if(o.length<3)continue;const t=o,n=o.delta(-e);a.push(new M(n,t)),c.addRange(t),d.addRange(n)}}a.sort((0,q.VE)((e=>e.original.startLineNumber),q.U9));const u=new se.vJ(e);for(let p=0;p<a.length;p++){const t=a[p],n=u.findLastMonotonous((e=>e.original.startLineNumber<=t.original.startLineNumber)),s=(0,se.lx)(e,(e=>e.modified.startLineNumber<=t.modified.startLineNumber)),l=Math.max(t.original.startLineNumber-n.original.startLineNumber,t.modified.startLineNumber-s.modified.startLineNumber),f=u.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive)),m=(0,se.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)),_=Math.max(f.original.endLineNumberExclusive-t.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-t.modified.endLineNumberExclusive);let h,g;for(h=0;h<l;h++){const e=t.original.startLineNumber-h-1,n=t.modified.startLineNumber-h-1;if(e>r.length||n>o.length)break;if(c.contains(n)||d.contains(e))break;if(!_e(r[e-1],o[n-1],i))break}for(h>0&&(d.addRange(new I.M(t.original.startLineNumber-h,t.original.startLineNumber)),c.addRange(new I.M(t.modified.startLineNumber-h,t.modified.startLineNumber))),g=0;g<_;g++){const e=t.original.endLineNumberExclusive+g,n=t.modified.endLineNumberExclusive+g;if(e>r.length||n>o.length)break;if(c.contains(n)||d.contains(e))break;if(!_e(r[e-1],o[n-1],i))break}g>0&&(d.addRange(new I.M(t.original.endLineNumberExclusive,t.original.endLineNumberExclusive+g)),c.addRange(new I.M(t.modified.endLineNumberExclusive,t.modified.endLineNumberExclusive+g))),(h>0||g>0)&&(a[p]=new M(new I.M(t.original.startLineNumber-h,t.original.endLineNumberExclusive+g),new I.M(t.modified.startLineNumber-h,t.modified.endLineNumberExclusive+g)))}return a}(e.filter((e=>!s.has(e))),r,o,t,n,i);return(0,q.E4)(a,l),a=function(e){if(0===e.length)return e;e.sort((0,q.VE)((e=>e.original.startLineNumber),q.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],o=e[n],i=o.original.startLineNumber-r.original.endLineNumberExclusive,a=o.modified.startLineNumber-r.modified.endLineNumberExclusive;i>=0&&a>=0&&i+a<=2?t[t.length-1]=r.join(o):t.push(o)}return t}(a),a=a.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const r of e)t(r)&&n++;return n}(n,(e=>e.length>=2))>=2})),a=function(e,t){const n=new se.vJ(e);return t=t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new M(new I.M(1,1),new I.M(1,1)))!==(0,se.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive)))),t}(e,a),a}function _e(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const r=(new re).compute(new ce([e],new u.Q(1,1,1,e.length),!1),new ce([t],new u.Q(1,1,1,t.length),!1),n);let o=0;const i=X.invert(r.diffs,e.length);for(const s of i)s.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||o++}));const a=function(t){let n=0;for(let r=0;r<e.length;r++)ee(t.charCodeAt(r))||n++;return n}(e.length>t.length?e:t);return o/a>.6&&a>10}function he(e,t,n){let r=n;return r=ge(e,t,r),r=ge(e,t,r),r=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const o=r>0?n[r-1]:void 0,i=n[r],a=r+1<n.length?n[r+1]:void 0,s=new D.L(o?o.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),l=new D.L(o?o.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);i.seq1Range.isEmpty?n[r]=ye(i,e,t,s,l):i.seq2Range.isEmpty&&(n[r]=ye(i.swap(),t,e,l,s).swap())}return n}(e,t,r),r}function ge(e,t,n){if(0===n.length)return n;const r=[];r.push(n[0]);for(let i=1;i<n.length;i++){const o=r[r.length-1];let a=n[i];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){const n=a.seq1Range.start-o.seq1Range.endExclusive;let i;for(i=1;i<=n&&(e.getElement(a.seq1Range.start-i)===e.getElement(a.seq1Range.endExclusive-i)&&t.getElement(a.seq2Range.start-i)===t.getElement(a.seq2Range.endExclusive-i));i++);if(i--,i===n){r[r.length-1]=new X(new D.L(o.seq1Range.start,a.seq1Range.endExclusive-n),new D.L(o.seq2Range.start,a.seq2Range.endExclusive-n));continue}a=a.delta(-i)}r.push(a)}const o=[];for(let i=0;i<r.length-1;i++){const n=r[i+1];let a=r[i];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){const o=n.seq1Range.start-a.seq1Range.endExclusive;let s;for(s=0;s<o&&(e.isStronglyEqual(a.seq1Range.start+s,a.seq1Range.endExclusive+s)&&t.isStronglyEqual(a.seq2Range.start+s,a.seq2Range.endExclusive+s));s++);if(s===o){r[i+1]=new X(new D.L(a.seq1Range.start+o,n.seq1Range.endExclusive),new D.L(a.seq2Range.start+o,n.seq2Range.endExclusive));continue}s>0&&(a=a.delta(s))}o.push(a)}return r.length>0&&o.push(r[r.length-1]),o}function ye(e,t,n,r,o){let i=1;for(;e.seq1Range.start-i>=r.start&&e.seq2Range.start-i>=o.start&&n.isStronglyEqual(e.seq2Range.start-i,e.seq2Range.endExclusive-i)&&i<100;)i++;i--;let a=0;for(;e.seq1Range.start+a<r.endExclusive&&e.seq2Range.endExclusive+a<o.endExclusive&&n.isStronglyEqual(e.seq2Range.start+a,e.seq2Range.endExclusive+a)&&a<100;)a++;if(0===i&&0===a)return e;let s=0,l=-1;for(let c=-i;c<=a;c++){const r=e.seq2Range.start+c,o=e.seq2Range.endExclusive+c,i=e.seq1Range.start+c,a=t.getBoundaryScore(i)+n.getBoundaryScore(r)+n.getBoundaryScore(o);a>l&&(l=a,s=c)}return e.delta(s)}class ve{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:be(this.lines[e-1]))+(e===this.lines.length?0:be(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function be(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class Ee{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new re}computeDiff(e,t,n){if(e.length<=1&&(0,q.aI)(e,t,((e,t)=>e===t)))return new T([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new T([new P(new I.M(1,e.length+1),new I.M(1,t.length+1),[new w(new u.Q(1,1,e.length,e[e.length-1].length+1),new u.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const r=0===n.maxComputationTimeMs?Y.instance:new Q(n.maxComputationTimeMs),o=!n.ignoreTrimWhitespace,i=new Map;function a(e){let t=i.get(e);return void 0===t&&(t=i.size,i.set(e,t)),t}const s=e.map((e=>a(e.trim()))),l=t.map((e=>a(e.trim()))),c=new ve(s,e),d=new ve(l,t),p=(()=>c.length+d.length<1700?this.dynamicProgrammingDiffing.compute(c,d,r,((n,r)=>e[n]===t[r]?0===t[r].length?.1:1+Math.log(1+t[r].length):.99)):this.myersDiffingAlgorithm.compute(c,d,r))();let f=p.diffs,m=p.hitTimeout;f=he(c,d,f),f=function(e,t,n){let r=n;if(0===r.length)return r;let o,i=0;do{o=!1;const a=[r[0]];for(let s=1;s<r.length;s++){const l=r[s],c=a[a.length-1];function d(t,n){const r=new D.L(c.seq1Range.endExclusive,l.seq1Range.start);return e.getText(r).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}d(c,l)?(o=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}r=a}while(i++<10&&o);return r}(c,0,f);const _=[],h=n=>{if(o)for(let i=0;i<n;i++){const n=g+i,a=y+i;if(e[n]!==t[a]){const i=this.refineDiff(e,t,new X(new D.L(n,n+1),new D.L(a,a+1)),r,o);for(const e of i.mappings)_.push(e);i.hitTimeout&&(m=!0)}}};let g=0,y=0;for(const u of f){(0,C.Ft)((()=>u.seq1Range.start-g===u.seq2Range.start-y));h(u.seq1Range.start-g),g=u.seq1Range.endExclusive,y=u.seq2Range.endExclusive;const n=this.refineDiff(e,t,u,r,o);n.hitTimeout&&(m=!0);for(const e of n.mappings)_.push(e)}h(e.length-g);const v=Se(_,e,t);let b=[];return n.computeMoves&&(b=this.computeMoves(v,e,t,s,l,r,o)),(0,C.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function r(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const o of v){if(!o.innerChanges)return!1;for(const r of o.innerChanges){if(!(n(r.modifiedRange.getStartPosition(),t)&&n(r.modifiedRange.getEndPosition(),t)&&n(r.originalRange.getStartPosition(),e)&&n(r.originalRange.getEndPosition(),e)))return!1}if(!r(o.modified,t)||!r(o.original,e))return!1}return!0})),new T(v,b,m)}computeMoves(e,t,n,r,o,i,a){return me(e,t,n,r,o,i).map((e=>{const r=Se(this.refineDiff(t,n,new X(e.original.toOffsetRange(),e.modified.toOffsetRange()),i,a).mappings,t,n,!0);return new x(e,r)}))}refineDiff(e,t,n,r,o){var i;const a=(i=n,new M(new I.M(i.seq1Range.start+1,i.seq1Range.endExclusive+1),new I.M(i.seq2Range.start+1,i.seq2Range.endExclusive+1))).toRangeMapping2(e,t),s=new ce(e,a.originalRange,o),l=new ce(t,a.modifiedRange,o),c=s.length+l.length<500?this.dynamicProgrammingDiffing.compute(s,l,r):this.myersDiffingAlgorithm.compute(s,l,r),d=!1;let u=c.diffs;u=he(s,l,u),u=function(e,t,n){const r=X.invert(n,e.length),o=[];let i=new $(0,0);function a(n,a){if(n.offset1<i.offset1||n.offset2<i.offset2)return;const s=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!s||!l)return;let c=new X(s,l);const d=c.intersect(a);let u=d.seq1Range.length,p=d.seq2Range.length;for(;r.length>0;){const n=r[0];if(!n.seq1Range.intersects(c.seq1Range)&&!n.seq2Range.intersects(c.seq2Range))break;const o=e.findWordContaining(n.seq1Range.start),i=t.findWordContaining(n.seq2Range.start),a=new X(o,i),s=a.intersect(n);if(u+=s.seq1Range.length,p+=s.seq2Range.length,c=c.join(a),!(c.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;r.shift()}u+p<2*(c.seq1Range.length+c.seq2Range.length)/3&&o.push(c),i=c.getEndExclusives()}for(;r.length>0;){const e=r.shift();e.seq1Range.isEmpty||(a(e.getStarts(),e),a(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],o=t[0];let i;i=r&&(!o||r.seq1Range.start<o.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=i.seq1Range.start?n[n.length-1]=n[n.length-1].join(i):n.push(i)}return n}(n,o)}(s,l,u),u=function(e,t,n){const r=[];for(const o of n){const e=r[r.length-1];e&&(o.seq1Range.start-e.seq1Range.endExclusive<=2||o.seq2Range.start-e.seq2Range.endExclusive<=2)?r[r.length-1]=new X(e.seq1Range.join(o.seq1Range),e.seq2Range.join(o.seq2Range)):r.push(o)}return r}(0,0,u),u=function(e,t,n){let r=n;if(0===r.length)return r;let o,i=0;do{o=!1;const s=[r[0]];for(let l=1;l<r.length;l++){const c=r[l],d=s[s.length-1];function u(n,r){const o=new D.L(d.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(o)>5||o.length>500)return!1;const i=e.getText(o).trim();if(i.length>20||i.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(n.seq1Range),s=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),u=n.seq2Range.length,p=e.countLinesIn(r.seq1Range),f=r.seq1Range.length,m=t.countLinesIn(r.seq2Range),_=r.seq2Range.length;function h(e){return Math.min(e,130)}return Math.pow(Math.pow(h(40*a+s),1.5)+Math.pow(h(40*l+u),1.5),1.5)+Math.pow(Math.pow(h(40*p+f),1.5)+Math.pow(h(40*m+_),1.5),1.5)>74184.96480721243}u(d,c)?(o=!0,s[s.length-1]=s[s.length-1].join(c)):s.push(c)}r=s}while(i++<10&&o);const a=[];return(0,q.kj)(r,((t,n,r)=>{let o=n;function i(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const s=e.extendToFullLines(n.seq1Range),l=e.getText(new D.L(s.start,n.seq1Range.start));i(l)&&(o=o.deltaStart(-l.length));const c=e.getText(new D.L(n.seq1Range.endExclusive,s.endExclusive));i(c)&&(o=o.deltaEnd(c.length));const d=X.fromOffsetPairs(t?t.getEndExclusives():$.zero,r?r.getStarts():$.max),u=o.intersect(d);a.length>0&&u.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(u):a.push(u)})),a}(s,l,u);const p=u.map((e=>new w(s.translateRange(e.seq1Range),l.translateRange(e.seq2Range))));return{mappings:p,hitTimeout:c.hitTimeout}}}function Se(e,t,n,r=!1){const o=[];for(const i of(0,q.n)(e.map((e=>function(e,t,n){let r=0,o=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(o=-1);e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+o&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+o&&(r=1);const i=new I.M(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+o),a=new I.M(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+o);return new P(i,a,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=i[0],t=i[i.length-1];o.push(new P(e.original.join(t.original),e.modified.join(t.modified),i.map((e=>e.innerChanges[0]))))}return(0,C.Ft)((()=>{if(!r&&o.length>0){if(o[0].modified.startLineNumber!==o[0].original.startLineNumber)return!1;if(n.length-o[o.length-1].modified.endLineNumberExclusive!==t.length-o[o.length-1].original.endLineNumberExclusive)return!1}return(0,C.Xo)(o,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),o}const Te=()=>new F,xe=()=>new Ee;var Ae=n(146),Ie=n(6456),Re=n(7661);function Ce(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function De(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Ne(e,t){const n=t.index,r=t[0].length;if(!n)return;const o=e.positionAt(n);return{startLineNumber:o.lineNumber,startColumn:o.column,endLineNumber:o.lineNumber,endColumn:o.column+r}}function Me(e,t){if(!e)return;const n=Re.Q1.Format.CSS.parseHex(t);return n?{range:e,color:De(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Le(e,t,n){if(!e||1!==t.length)return;const r=Ce(t[0].values());return{range:e,color:De(r[0],r[1],r[2],n?r[3]:1)}}function ke(e,t,n){if(!e||1!==t.length)return;const r=Ce(t[0].values()),o=new Re.Q1(new Re.hB(r[0],r[1]/100,r[2]/100,n?r[3]:1));return{range:e,color:De(o.rgba.r,o.rgba.g,o.rgba.b,o.rgba.a)}}function Pe(e,t){return"string"===typeof e?[...e.matchAll(t)]:e.findMatches(t)}function we(e){return e&&"function"===typeof e.getValue&&"function"===typeof e.positionAt?function(e){const t=[],n=Pe(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(const r of n){const n=r.filter((e=>void 0!==e)),o=n[1],i=n[2];if(!i)continue;let a;if("rgb"===o){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;a=Le(Ne(e,r),Pe(i,t),!1)}else if("rgba"===o){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;a=Le(Ne(e,r),Pe(i,t),!0)}else if("hsl"===o){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;a=ke(Ne(e,r),Pe(i,t),!1)}else if("hsla"===o){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;a=ke(Ne(e,r),Pe(i,t),!0)}else"#"===o&&(a=Me(Ne(e,r),o+i));a&&t.push(a)}return t}(e):[]}var Oe=n(6691),Fe=n(796);class We{constructor(){this._workerTextModelSyncServer=new Fe.WorkerTextModelSyncServer}dispose(){}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,n){const r=this._getModel(e);return r?S.UnicodeTextModelHighlighter.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Oe.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,r){const o=this._getModel(e),i=this._getModel(t);if(!o||!i)return null;return ze.computeDiff(o,i,n,r)}static computeDiff(e,t,n,r){const o="advanced"===r?xe():Te(),i=e.getLinesContent(),a=t.getLinesContent(),s=o.computeDiff(i,a,n);function l(e){return e.map((e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]))}return{identical:!(s.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:s.hitTimeout,changes:l(s.changes),moves:s.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++){if(e.getLineContent(r)!==t.getLineContent(r))return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,n){const r=this._getModel(e);if(!r)return t;const o=[];let i;t=t.slice(0).sort(((e,t)=>{if(e.range&&t.range)return u.Q.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)}));let s=0;for(let a=1;a<t.length;a++)u.Q.getEndPosition(t[s].range).equals(u.Q.getStartPosition(t[a].range))?(t[s].range=u.Q.fromPositions(u.Q.getStartPosition(t[s].range),u.Q.getEndPosition(t[a].range)),t[s].text+=t[a].text):(s++,t[s]=t[a]);t.length=s+1;for(let{range:l,text:c,eol:d}of t){if("number"===typeof d&&(i=d),u.Q.isEmpty(l)&&!c)continue;const e=r.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,r.eol),e===c)continue;if(Math.max(c.length,e.length)>ze._diffLimit){o.push({range:l,text:c});continue}const t=a(e,c,n),s=r.offsetAt(u.Q.lift(l).getStartPosition());for(const n of t){const e=r.positionAt(s+n.originalStart),t=r.positionAt(s+n.originalStart+n.originalLength),i={text:c.substr(n.modifiedStart,n.modifiedLength),range:{startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:t.lineNumber,endColumn:t.column}};r.getValueInRange(i.range)!==i.text&&o.push(i)}}return"number"===typeof i&&o.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?g.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?we(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,r){const o=new E.W,i=new RegExp(n,r),a=new Set;e:for(const s of e){const e=this._getModel(s);if(e)for(const n of e.words(i))if(n!==t&&isNaN(Number(n))&&(a.add(n),a.size>ze._suggestionsLimit))break e}return{words:Array.from(a),duration:o.elapsed()}}async $computeWordRanges(e,t,n,r){const o=this._getModel(e);if(!o)return Object.create(null);const i=new RegExp(n,r),a=Object.create(null);for(let s=t.startLineNumber;s<t.endLineNumber;s++){const e=o.getLineWords(s,i);for(const t of e){if(!isNaN(Number(t.word)))continue;let e=a[t.word];e||(e=[],a[t.word]=e),e.push({startLineNumber:s,startColumn:t.startColumn,endLineNumber:s,endColumn:t.endColumn})}}return a}async $navigateValueSet(e,t,n,r,o){const i=this._getModel(e);if(!i)return null;const a=new RegExp(r,o);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const s=i.getValueInRange(t),l=i.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},a);if(!l)return null;const c=i.getValueInRange(l);return y.INSTANCE.navigateValueSet(t,s,l,c,n)}}class ze extends We{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,r){const o={host:(0,Ae.kT)(r,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,t),Promise.resolve((0,Ae.V0)(this._foreignModule))):new Promise(((r,i)=>{const a=e=>{this._foreignModule=e.create(o,t),r((0,Ae.V0)(this._foreignModule))};{const t=Ie.zl.asBrowserUri(`${e}.js`).toString(!0);n(9204)(`${t}`).then(a).catch(i)}}))}$fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}function Be(e){return new ze(b.EditorWorkerHost.getChannel(e),null)}"function"===typeof importScripts&&(globalThis.monaco=(0,v.createMonacoBaseAPI)())},920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IEditorWorkerService:()=>r});const r=(0,n(3591).u1)("editorWorkerService")},718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>r});class r{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(r.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(r.CHANNEL_NAME,t)}}},6691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>i});const r=new RegExp("\\bMARK:\\s*(.*)$","d"),o=/^-+|-+$/g;function i(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const r=function(e,t){const n=[],r=e.getLineCount();for(let o=1;o<=r;o++){const r=e.getLineContent(o),i=r.match(t.foldingRules.markers.start);if(i){const e={startLineNumber:o,startColumn:i[0].length+1,endLineNumber:o,endColumn:r.length+1};if(e.endColumn>e.startColumn){const t={range:e,...s(r.substring(i[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let r=1;r<=n;r++){a(e.getLineContent(r),r,t)}return t}(e);n=n.concat(t)}return n}function a(e,t,n){r.lastIndex=0;const o=r.exec(e);if(o){const e={startLineNumber:t,startColumn:o.indices[1][0]+1,endLineNumber:t,endColumn:o.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...s(o[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function s(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(o,""),hasSeparatorLine:t}}},5628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getIconClasses:()=>p});var r,o=n(6456),i=n(9403),a=n(9400),s=n(3941);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(r||(r={}));var l,c,d=n(9493);!function(e){e.isThemeColor=function(e){return e&&"object"===typeof e&&"string"===typeof e.id}}(l||(l={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){const r=t.exec(e.id);if(!r)return n(d.W.error);const[,o,i]=r,a=["codicon","codicon-"+o];return i&&a.push("codicon-modifier-"+i.substring(1)),a}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")},e.isThemeIcon=function(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||l.isThemeColor(e.color))};const r=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=r.exec(e);if(!t)return;const[,n]=t;return{id:n}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let n=e.id;const r=n.lastIndexOf("~");return-1!==r&&(n=n.substring(0,r)),t&&(n=`${n}~${t}`),{id:n}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){return e.id===t.id&&e.color?.id===t.color?.id}}(c||(c={}));const u=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function p(e,t,n,l,d){if(c.isThemeIcon(d))return[`codicon-${d.id}`,"predefined-file-icon"];if(a.r.isUri(d))return[];const p=l===r.ROOT_FOLDER?["rootfolder-icon"]:l===r.FOLDER?["folder-icon"]:["file-icon"];if(n){let a;if(n.scheme===o.ny.data){a=i.B6.parseMetaData(n).get(i.B6.META_DATA_LABEL)}else{const e=n.path.match(u);e?(a=f(e[2].toLowerCase()),e[1]&&p.push(`${f(e[1].toLowerCase())}-name-dir-icon`)):a=f(n.authority.toLowerCase())}if(l===r.ROOT_FOLDER)p.push(`${a}-root-name-folder-icon`);else if(l===r.FOLDER)p.push(`${a}-name-folder-icon`);else{if(a){if(p.push(`${a}-name-file-icon`),p.push("name-file-icon"),a.length<=255){const e=a.split(".");for(let t=1;t<e.length;t++)p.push(`${e.slice(t).join(".")}-ext-file-icon`)}p.push("ext-file-icon")}const r=function(e,t,n){if(!n)return null;let r=null;if(n.scheme===o.ny.data){const e=i.B6.parseMetaData(n).get(i.B6.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{const t=e.getModel(n);t&&(r=t.getLanguageId())}if(r&&r!==s.vH)return r;return t.guessLanguageIdByFilepathOrFirstLine(n)}(e,t,n);r&&p.push(`${f(r)}-lang-file-icon`)}}return p}function f(e){return e.replace(/[\s]/g,"/")}},8709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeatureDebounceService:()=>_,LanguageFeatureDebounceService:()=>v});var r=n(5600),o=n(4320);function i(e,t,n){return Math.min(Math.max(e,t),n)}class a{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class s{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}var l=n(3591);const c=(0,l.u1)("environmentService");var d=n(4621),u=n(3511),p=n(6456),f=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},m=function(e,t){return function(n,r){t(n,r,e)}};const _=(0,l.u1)("ILanguageFeatureDebounceService");var h;!function(e){const t=new WeakMap;let n=0;e.of=function(e){let r=t.get(e);return void 0===r&&(r=++n,t.set(e,r)),r}}(h||(h={}));class g{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class y{constructor(e,t,n,r,i,a){this._logService=e,this._name=t,this._registry=n,this._default=r,this._min=i,this._max=a,this._cache=new o.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,r.sN)(h.of(t),e)),0)}get(e){const t=this._key(e),n=this._cache.get(t);return n?i(n.value,this._min,this._max):this.default()}update(e,t){const n=this._key(e);let r=this._cache.get(n);r||(r=new s(6),this._cache.set(n,r));const o=i(r.update(t),this._min,this._max);return(0,p.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${o}ms`),o}_overall(){const e=new a;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){return i(0|this._overall()||this._default,this._min,this._max)}}let v=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,n){const r=n?.min??50,o=n?.max??r**2,i=n?.key??void 0,a=`${h.of(e)},${r}${i?","+i:""}`;let s=this._data.get(a);return s||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),s=new g(1.5*r)):s=new y(this._logService,t,e,0|this._overallAverage()||1.5*r,r,o),this._data.set(a,s)),s}_overallAverage(){const e=new a;for(const t of this._data.values())e.update(t.default());return e.value}};v=f([m(0,u.rr),m(1,c)],v),(0,d.v)(_,v,1)},6942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ILanguageFeaturesService:()=>r});const r=(0,n(3591).u1)("ILanguageFeaturesService")},2661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageFeaturesService:()=>_});var r=n(1234),o=n(1484),i=n(6223),a=n(6958),s=n(8821);function l(e,t,n,r,o,i){if(Array.isArray(e)){let a=0;for(const s of e){const e=l(s,t,n,r,o,i);if(10===e)return e;e>a&&(a=e)}return a}if("string"===typeof e)return r?"*"===e?5:e===n?10:0:0;if(e){const{language:l,pattern:c,scheme:d,hasAccessToAllModels:u,notebookType:p}=e;if(!r&&!u)return 0;p&&o&&(t=o);let f=0;if(d)if(d===t.scheme)f=10;else{if("*"!==d)return 0;f=5}if(l)if(l===n)f=10;else{if("*"!==l)return 0;f=Math.max(f,5)}if(p)if(p===i)f=10;else{if("*"!==p||void 0===i)return 0;f=Math.max(f,5)}if(c){let e;if(e="string"===typeof c?c:{...c,base:(0,s.S8)(c.base)},e!==t.fsPath&&!(0,a.YW)(e,t.fsPath))return 0;f=10}return f}return 0}function c(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(c):!!e.exclusive)}class d{constructor(e,t,n,r,o){this.uri=e,this.languageId=t,this.notebookUri=n,this.notebookType=r,this.recursive=o}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class u{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new r.vl,this.onDidChange=this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,o.s)((()=>{if(n){const e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);const t=[];for(const n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e,t=!1){const n=[];return this._orderedForEach(e,t,(e=>n.push(e.provider))),n}orderedGroups(e){const t=[];let n,r;return this._orderedForEach(e,!1,(e=>{n&&r===e._score?n.push(e.provider):(r=e._score,n=[e.provider],t.push(n))})),t}_orderedForEach(e,t,n){this._updateScores(e,t);for(const r of this._entries)r._score>0&&n(r)}_updateScores(e,t){const n=this._notebookInfoResolver?.(e.uri),r=n?new d(e.uri,e.getLanguageId(),n.uri,n.type,t):new d(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(r)){this._lastCandidate=r;for(const n of this._entries)if(n._score=l(n.selector,r.uri,r.languageId,(0,i.vd)(e),r.notebookUri,r.notebookType),c(n.selector)&&n._score>0){if(!t){for(const e of this._entries)e._score=0;n._score=1e3;break}n._score=0}this._entries.sort(u._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:p(e.selector)&&!p(t.selector)?1:!p(e.selector)&&p(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function p(e){return"string"!==typeof e&&(Array.isArray(e)?e.some(p):Boolean(e.isBuiltin))}var f=n(6942),m=n(4621);class _{constructor(){this.referenceProvider=new u(this._score.bind(this)),this.renameProvider=new u(this._score.bind(this)),this.newSymbolNamesProvider=new u(this._score.bind(this)),this.codeActionProvider=new u(this._score.bind(this)),this.definitionProvider=new u(this._score.bind(this)),this.typeDefinitionProvider=new u(this._score.bind(this)),this.declarationProvider=new u(this._score.bind(this)),this.implementationProvider=new u(this._score.bind(this)),this.documentSymbolProvider=new u(this._score.bind(this)),this.inlayHintsProvider=new u(this._score.bind(this)),this.colorProvider=new u(this._score.bind(this)),this.codeLensProvider=new u(this._score.bind(this)),this.documentFormattingEditProvider=new u(this._score.bind(this)),this.documentRangeFormattingEditProvider=new u(this._score.bind(this)),this.onTypeFormattingEditProvider=new u(this._score.bind(this)),this.signatureHelpProvider=new u(this._score.bind(this)),this.hoverProvider=new u(this._score.bind(this)),this.documentHighlightProvider=new u(this._score.bind(this)),this.multiDocumentHighlightProvider=new u(this._score.bind(this)),this.selectionRangeProvider=new u(this._score.bind(this)),this.foldingRangeProvider=new u(this._score.bind(this)),this.linkProvider=new u(this._score.bind(this)),this.inlineCompletionsProvider=new u(this._score.bind(this)),this.inlineEditProvider=new u(this._score.bind(this)),this.completionProvider=new u(this._score.bind(this)),this.linkedEditingRangeProvider=new u(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new u(this._score.bind(this)),this.documentSemanticTokensProvider=new u(this._score.bind(this)),this.documentDropEditProvider=new u(this._score.bind(this)),this.documentPasteEditProvider=new u(this._score.bind(this))}_score(e){return this._notebookTypeResolver?.(e)}}(0,m.v)(f.ILanguageFeaturesService,_,1)},7596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageService:()=>L});var r=n(1234),o=n(1484),i=n(9259),a=n(9861),s=n(2083),l=n(3941);const c=(e,t)=>e===t;new WeakMap;class d{constructor(e,t,n){this.owner=e,this.debugNameSource=t,this.referenceFn=n}getDebugName(e){return function(e,t){const n=p.get(e);if(n)return n;const r=function(e,t){const n=p.get(e);if(n)return n;const r=t.owner?function(e){const t=m.get(e);if(t)return t;const n=function(e){const t=e.constructor;if(t)return t.name;return"Object"}(e);let r=f.get(n)??0;r++,f.set(n,r);const o=1===r?n:`${n}#${r}`;return m.set(e,o),o}(t.owner)+".":"";let o;const i=t.debugNameSource;if(void 0!==i){if("function"!==typeof i)return r+i;if(o=i(),void 0!==o)return r+o}const a=t.referenceFn;if(void 0!==a&&(o=_(a),void 0!==o))return r+o;if(void 0!==t.owner){const n=function(e,t){for(const n in e)if(e[n]===t)return n;return}(t.owner,e);if(void 0!==n)return r+n}return}(e,t);if(r){let t=u.get(r)??0;t++,u.set(r,t);const n=1===t?r:`${r}#${t}`;return p.set(e,n),n}return}(e,this)}}const u=new Map,p=new WeakMap;const f=new Map,m=new WeakMap;function _(e){const t=e.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),r=n?n[1]:void 0;return r?.trim()}let h,g,y,v;function b(){return h}class E{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const n=void 0===t?void 0:e,r=void 0===t?e:t;return v({owner:n,debugName:()=>{const e=_(r);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(r.toString());return t?`${this.debugName}.${t[2]}`:n?void 0:`${this.debugName} (mapped)`},debugReferenceFn:r},(e=>r(this.read(e),e)))}flatten(){return v({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},(e=>this.read(e).read(e)))}recomputeInitiallyAndOnChange(e,t){return e.add(g(this,t)),this}keepObserved(e){return e.add(y(this)),this}}class S extends E{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function T(e,t){const n=new x(e,t);try{e(n)}finally{n.finish()}}class x{constructor(e,t){this._fn=e,this._getDebugName=t,this.updatingObservers=[],b()?.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():_(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;for(let t=0;t<e.length;t++){const{observer:n,observable:r}=e[t];n.endUpdate(r)}this.updatingObservers=null,b()?.handleEndTransaction()}}var A=n(6782);!function(e){v=e}((function(e,t){return new I(new d(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??c)}));class I extends S{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,r,o=void 0,i){super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=n,this._handleChange=r,this._handleLastObserverRemoved=o,this._equalityComparator=i,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=this.createChangeSummary?.(),b()?.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),this._handleLastObserverRemoved?.()}get(){if(0===this.observers.size){const e=this._computeFn(this,this.createChangeSummary?.());return this.onLastObserverRemoved(),e}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e;const t=0!==this.state,n=this.value;this.state=3;const r=this.changeSummary;this.changeSummary=this.createChangeSummary?.();try{this.value=this._computeFn(this,r)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const o=t&&!this._equalityComparator(n,this.value);if(b()?.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:o,hadValue:t}),o)for(const i of this.observers)i.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const n of this.observers)n.handlePossibleChange(this);if(t)for(const n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,A.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const n=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),r=3===this.state;if(n&&(1===this.state||r)&&(this.state=2,r))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}function R(e){return new C(new d(void 0,void 0,e),e,void 0,void 0)}class C{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,n,r){this._debugNameData=e,this._runFn=t,this.createChangeSummary=n,this._handleChange=r,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=this.createChangeSummary?.(),b()?.handleAutorunCreated(this),this._runIfNeeded(),(0,o.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,o.VD)(this)}_runIfNeeded(){if(3===this.state)return;const e=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=e,this.state=3;const t=this.disposed;try{if(!t){b()?.handleAutorunTriggered(this);const e=this.changeSummary;this.changeSummary=this.createChangeSummary?.(),this._runFn(this,e)}}finally{t||b()?.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,A.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=C}(R||(R={}));function D(...e){let t,n,r;return 3===e.length?[t,n,r]=e:[n,r]=e,new N(new d(t,void 0,r),n,r,(()=>N.globalTransaction),c)}class N extends S{constructor(e,t,n,r,o){super(),this._debugNameData=e,this.event=t,this._getValue=n,this._getTransaction=r,this._equalityComparator=o,this.hasValue=!1,this.handleEvent=e=>{const t=this._getValue(e),n=this.value,r=!this.hasValue||!this._equalityComparator(n,t);let o=!1;r&&(this.value=t,this.hasValue&&(o=!0,function(e,t,n){e?t(e):T(t,n)}(this._getTransaction(),(e=>{b()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:r,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),o||b()?.handleFromEventObservableTriggered(this,{oldValue:n,newValue:t,change:void 0,didChange:r,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){if(this.subscription)return this.hasValue||this.handleEvent(void 0),this.value;return this._getValue(void 0)}}!function(e){e.Observer=N,e.batchEventsGlobally=function(e,t){let n=!1;void 0===N.globalTransaction&&(N.globalTransaction=e,n=!0);try{t()}finally{n&&(N.globalTransaction=void 0)}}}(D||(D={}));!function(e){y=e}((function(e){const t=new M(!1,void 0);return e.addObserver(t),(0,o.s)((()=>{e.removeObserver(t)}))})),function(e){g=e}((function(e,t){const n=new M(!0,t);return e.addObserver(n),t?t(e.get()):e.reportChanges(),(0,o.s)((()=>{e.removeObserver(n)}))}));class M{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}n(4383);class L extends o.jG{static{this.instanceCount=0}constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new r.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new r.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new r.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,L.instanceCount++,this._registry=this._register(new i.LanguagesRegistry(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){L.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const n=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,a.Fy)(n,null)}createById(e){return new k(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new k(this.onDidChange,(()=>{const n=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(n)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=l.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),s.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}class k{constructor(e,t){this._value=D(this,e,(()=>t())),this.onDidChange=r.Jh.fromObservable(this._value)}get languageId(){return this._value.get()}}},9908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPlatformLanguageAssociations:()=>m,getLanguageIds:()=>_,registerPlatformLanguageAssociation:()=>f});var r=n(6958),o=n(1939),i=n(6456),a=n(8821),s=n(9403),l=n(1508),c=n(3941);let d=[],u=[],p=[];function f(e,t=!1){!function(e,t,n){const o=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,r.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(a.SA.sep)>=0}}(e,t);d.push(o),o.userConfigured?p.push(o):u.push(o);n&&!o.userConfigured&&d.forEach((e=>{e.mime===o.mime||e.userConfigured||(o.extension&&e.extension===o.extension&&console.warn(`Overwriting extension <<${o.extension}>> to now point to mime <<${o.mime}>>`),o.filename&&e.filename===o.filename&&console.warn(`Overwriting filename <<${o.filename}>> to now point to mime <<${o.mime}>>`),o.filepattern&&e.filepattern===o.filepattern&&console.warn(`Overwriting filepattern <<${o.filepattern}>> to now point to mime <<${o.mime}>>`),o.firstline&&e.firstline===o.firstline&&console.warn(`Overwriting firstline <<${o.firstline}>> to now point to mime <<${o.mime}>>`))}))}(e,!1,t)}function m(){d=d.filter((e=>e.userConfigured)),u=[]}function _(e,t){return function(e,t){let n;if(e)switch(e.scheme){case i.ny.file:n=e.fsPath;break;case i.ny.data:n=s.B6.parseMetaData(e).get(s.B6.META_DATA_LABEL);break;case i.ny.vscodeNotebookCell:n=void 0;break;default:n=e.path}if(!n)return[{id:"unknown",mime:o.K.unknown}];n=n.toLowerCase();const r=(0,a.P8)(n),f=h(n,r,p);if(f)return[f,{id:c.vH,mime:o.K.text}];const m=h(n,r,u);if(m)return[m,{id:c.vH,mime:o.K.text}];if(t){const e=function(e){(0,l.LU)(e)&&(e=e.substr(1));if(e.length>0)for(let t=d.length-1;t>=0;t--){const n=d[t];if(!n.firstline)continue;const r=e.match(n.firstline);if(r&&r.length>0)return n}return}(t);if(e)return[e,{id:c.vH,mime:o.K.text}]}return[{id:"unknown",mime:o.K.unknown}]}(e,t).map((e=>e.id))}function h(e,t,n){let r,o,i;for(let a=n.length-1;a>=0;a--){const s=n[a];if(t===s.filenameLowercase){r=s;break}if(s.filepattern&&(!o||s.filepattern.length>o.filepattern.length)){const n=s.filepatternOnPath?e:t;s.filepatternLowercase?.(n)&&(o=s)}s.extension&&(!i||s.extension.length>i.extension.length)&&t.endsWith(s.extensionLowercase)&&(i=s)}return r||(o||(i||void 0))}},9259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageIdCodec:()=>p,LanguagesRegistry:()=>f});var r=n(1234),o=n(1484),i=n(1508),a=n(9908),s=n(3941),l=n(1646),c=n(6359);const d=Object.prototype.hasOwnProperty,u="vs.editor.nullLanguage";class p{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(u,0),this._register(s.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||u}}class f extends o.jG{static{this.instanceCount=0}constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event,f.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new p,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(s.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){f.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},(0,a.clearPlatformLanguageAssociations)();const e=[].concat(s.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),c.O.as(l.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let n;d.call(this._languages,t)?n=this._languages[t]:(this.languageIdCodec.register(t),n={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let r=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),r=t.mimetypes[0]),r||(r=`text/x-${n}`,e.mimetypes.push(r)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)(0,a.registerPlatformLanguageAssociation)({id:n,mime:r,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const i of t.filenames)(0,a.registerPlatformLanguageAssociation)({id:n,mime:r,filename:i},this._warnOnOverwrite),e.filenames.push(i);if(Array.isArray(t.filenamePatterns))for(const i of t.filenamePatterns)(0,a.registerPlatformLanguageAssociation)({id:n,mime:r,filepattern:i},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,i.eY)(t)||(0,a.registerPlatformLanguageAssociation)({id:n,mime:r,firstline:t},this._warnOnOverwrite)}catch(l){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,l)}}e.aliases.push(n);let o=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(o=0===t.aliases.length?[null]:t.aliases),null!==o)for(const i of o)i&&0!==i.length&&e.aliases.push(i);const s=null!==o&&o.length>0;if(s&&null===o[0]);else{const t=(s?o[0]:null)||n;!s&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&d.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return d.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&d.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?(0,a.getLanguageIds)(e,t):[]}}},7550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMarkerDecorationsService:()=>r});const r=(0,n(3591).u1)("markerDecorationsService")},448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MarkerDecorationsService:()=>T});var r,o=n(1508);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(r||(r={})),function(e){const t="error",n="warning",r="info";e.fromValue=function(i){return i?o.Q_(t,i)?e.Error:o.Q_(n,i)||o.Q_("warn",i)?e.Warning:o.Q_(r,i)?e.Info:e.Ignore:e.Ignore},e.toString=function(o){switch(o){case e.Error:return t;case e.Warning:return n;case e.Info:return r;default:return"ignore"}}}(r||(r={}));const i=r;var a,s,l=n(8209),c=n(3591);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(a||(a={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,l.kg)("sev.error","Error"),t[e.Warning]=(0,l.kg)("sev.warning","Warning"),t[e.Info]=(0,l.kg)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case i.Error:return e.Error;case i.Warning:return e.Warning;case i.Info:return e.Info;case i.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return i.Error;case e.Warning:return i.Warning;case e.Info:return i.Info;case e.Hint:return i.Ignore}}}(a||(a={})),function(e){const t="";function n(e,n){const r=[t];return e.source?r.push(e.source.replace("\xa6","\\\xa6")):r.push(t),e.code?"string"===typeof e.code?r.push(e.code.replace("\xa6","\\\xa6")):r.push(e.code.value.replace("\xa6","\\\xa6")):r.push(t),void 0!==e.severity&&null!==e.severity?r.push(a.toString(e.severity)):r.push(t),e.message&&n?r.push(e.message.replace("\xa6","\\\xa6")):r.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?r.push(e.startLineNumber.toString()):r.push(t),void 0!==e.startColumn&&null!==e.startColumn?r.push(e.startColumn.toString()):r.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?r.push(e.endLineNumber.toString()):r.push(t),void 0!==e.endColumn&&null!==e.endColumn?r.push(e.endColumn.toString()):r.push(t),r.push(t),r.join("\xa6")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(s||(s={}));const d=(0,c.u1)("markerService");var u=n(1484),p=n(6223),f=n(5724),m=n(7119),_=n(3750),h=n(6677),g=n(6456),y=n(1234),v=n(5845),b=n(4320);var E=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},S=function(e,t){return function(n,r){t(n,r,e)}};let T=class extends u.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new y.vl),this._markerDecorations=new b.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new x(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==g.ny.inMemory&&e.uri.scheme!==g.ny.internal&&e.uri.scheme!==g.ny.vscode||this._markerService?.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};T=E([S(0,_.IModelService),S(1,d)],T);class x extends u.jG{constructor(e){super(),this.model=e,this._map=new b.cO,this._register((0,u.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:n}=function(e,t){const n=[],r=[];for(const o of e)t.has(o)||n.push(o);for(const o of t)e.has(o)||r.push(o);return{removed:n,added:r}}(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===n.length)return!1;const r=n.map((e=>this._map.get(e))),o=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),i=this.model.deltaDecorations(r,o);for(const a of n)this._map.delete(a);for(let a=0;a<i.length;a++)this._map.set(t[a],i[a]);return!0}getMarker(e){return this._map.getKey(e.id)}_createDecorationRange(e,t){let n=h.Q.lift(t);if(t.severity!==a.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);if(1===t||n.endColumn>=t)return n;const r=e.getWordAtPosition(n.getStartPosition());r&&(n=new h.Q(n.startLineNumber,r.startColumn,n.endLineNumber,r.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){const r=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);r<n.endColumn&&(n=new h.Q(n.startLineNumber,r,n.endLineNumber,n.endColumn),t.startColumn=r)}return n}_createDecorationOption(e){let t,n,r,o,i;switch(e.severity){case a.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",r=0;break;case a.Info:t="squiggly-info",n=(0,f.Yf)(m.AQ),r=10,i={color:(0,f.Yf)(v.KoI),position:1};break;case a.Warning:t="squiggly-warning",n=(0,f.Yf)(m.aZ),r=20,i={color:(0,f.Yf)(v.uMG),position:1};break;case a.Error:default:t="squiggly-error",n=(0,f.Yf)(m.yI),r=30,i={color:(0,f.Yf)(v.yLC),position:1}}return e.tags&&(-1!==e.tags.indexOf(1)&&(o="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(o="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:n,position:p.A5.Right},minimap:i,zIndex:r,inlineClassName:o}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}}},3750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IModelService:()=>r});const r=(0,n(3591).u1)("modelService")},1773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultModelSHA1Computer:()=>To,ModelService:()=>So});var r=n(1234),o=n(1484),i=n(8067),a=n(9861),s=n(7661),l=n(4383),c=n(1508),d=n(9400),u=n(4454);class p{static _nextVisibleColumn(e,t,n){return 9===e?p.nextRenderTabStop(t,n):c.ne(e)||c.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const r=Math.min(t-1,e.length),o=e.substring(0,r),i=new c.km(o);let a=0;for(;!i.eol();){const e=c.Z5(o,r,i.offset);i.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,n)}return a}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const r=e.length,o=new c.km(e);let i=0,a=1;for(;!o.eol();){const s=c.Z5(e,r,o.offset);o.nextGraphemeLength();const l=this._nextVisibleColumn(s,i,n),d=o.offset+1;if(l>=t){return l-t<t-i?d:a}i=l,a=d}return r+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function f(e,t,n){let r=c.HG(e);return-1===r&&(r=e.length),function(e,t,n){let r=0;for(let i=0;i<e.length;i++)"\t"===e.charAt(i)?r=p.nextIndentTabStop(r,t):r++;let o="";if(!n){const e=Math.floor(r/t);r%=t;for(let t=0;t<e;t++)o+="\t"}for(let i=0;i<r;i++)o+=" ";return o}(e.substring(0,r),t,n)+e.substring(r)}var m=n(3069),_=n(6677),h=n(5326);const g={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var y,v=n(154),b=n(6486);!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(y||(y={}));class E{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),r=e.getStandardTokenType(n);return this.isOK(r)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class S{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)T(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),T(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),T(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),T(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&T(this.autoClosingPairsCloseSingleChar,t.close,t)}}function T(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class x{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new E(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new E({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new E({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"===typeof e.autoCloseBefore?e.autoCloseBefore:x.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"===typeof e.autoCloseBefore?e.autoCloseBefore:x.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}function A(e){return 0!==(3&e)}var I=n(1674);let R,C,D;function N(){return R||(R=new TextDecoder("UTF-16LE")),R}function M(){return D||(D=i.cm()?N():(C||(C=new TextDecoder("UTF-16BE")),C)),D}function L(e,t,n){const r=new Uint16Array(e.buffer,t,n);return n>0&&(65279===r[0]||65534===r[0])?function(e,t,n){const r=[];let o=0;for(let i=0;i<n;i++){const n=I.$l(e,t);t+=2,r[o++]=String.fromCharCode(n)}return r.join("")}(e,t,n):N().decode(r)}class k{constructor(e,t,n,r,o,i){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=r,this.forwardRegex=o,this.reversedRegex=i,this._openSet=k._toSet(this.open),this._closeSet=k._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class P{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const n=[];for(let a=0;a<t;a++)n[a]=a;const r=(e,t)=>{const[n,r]=e,[o,i]=t;return n===o||n===i||r===o||r===i},o=(e,r)=>{const o=Math.min(e,r),i=Math.max(e,r);for(let a=0;a<t;a++)n[a]===i&&(n[a]=o)};for(let a=0;a<t;a++){const i=e[a];for(let s=a+1;s<t;s++)r(i,e[s])&&o(n[a],n[s])}const i=[];for(let a=0;a<t;a++){const r=[],o=[];for(let i=0;i<t;i++)if(n[i]===a){const[t,n]=e[i];r.push(t),o.push(n)}r.length>0&&i.push({open:r,close:o})}return i}(t);this.brackets=n.map(((t,r)=>new k(e,r,t.open,t.close,function(e,t,n,r){let o=[];o=o.concat(e),o=o.concat(t);for(let i=0,a=o.length;i<a;i++)w(o[i],n,r,o);return o=F(o),o.sort(O),o.reverse(),z(o)}(t.open,t.close,n,r),function(e,t,n,r){let o=[];o=o.concat(e),o=o.concat(t);for(let i=0,a=o.length;i<a;i++)w(o[i],n,r,o);return o=F(o),o.sort(O),o.reverse(),z(o.map(B))}(t.open,t.close,n,r)))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),z(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=F(t),z(t.map(B))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const r of this.brackets){for(const e of r.open)this.textIsBracket[e]=r,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of r.close)this.textIsBracket[e]=r,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function w(e,t,n,r){for(let o=0,i=t.length;o<i;o++){if(o===n)continue;const i=t[o];for(const t of i.open)t.indexOf(e)>=0&&r.push(t);for(const t of i.close)t.indexOf(e)>=0&&r.push(t)}}function O(e,t){return e.length-t.length}function F(e){if(e.length<=1)return e;const t=[],n=new Set;for(const r of e)n.has(r)||(t.push(r),n.add(r));return t}function W(e){const t=/^[\w ]+$/.test(e);return e=c.bm(e),t?`\\b${e}\\b`:e}function z(e,t){const n=`(${e.map(W).join(")|(")})`;return c.OS(n,!0,t)}const B=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let r=e.length-1;r>=0;r--)t[n++]=e.charCodeAt(r);return M().decode(t)}(e)),t}}();class G{static _findPrevBracketInText(e,t,n,r){const o=n.match(e);if(!o)return null;const i=n.length-(o.index||0),a=o[0].length,s=r+i;return new _.Q(t,s-a+1,t,s+1)}static findPrevBracketInRange(e,t,n,r,o){const i=B(n).substring(n.length-o,n.length-r);return this._findPrevBracketInText(e,t,i,r)}static findNextBracketInText(e,t,n,r){const o=n.match(e);if(!o)return null;const i=o.index||0,a=o[0].length;if(0===a)return null;const s=r+i;return new _.Q(t,s+1,t,s+1+a)}static findNextBracketInRange(e,t,n,r,o){const i=n.substring(r,o);return this.findNextBracketInText(e,t,i,r)}}class j{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,a.dM)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const r=t.findTokenIndexAtOffset(n-1);if(A(t.getStandardTokenType(r)))return null;const o=this._richEditBrackets.reversedRegex,i=t.getLineContent().substring(0,n-1)+e,a=G.findPrevBracketInRange(o,1,i,0,i.length);if(!a)return null;const s=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[s])return null;const l=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:s}:null}}function V(e){return e.global&&(e.lastIndex=0),!0}class U{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&V(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&V(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&V(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&V(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class H{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=H._createOpenBracketRegExp(e[0]),n=H._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,r){if(e>=3)for(let o=0,i=this._regExpRules.length;o<i;o++){const e=this._regExpRules[o];if([{reg:e.beforeText,text:n},{reg:e.afterText,text:r},{reg:e.previousLineText,text:t}].every((e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return e.action}if(e>=2&&n.length>0&&r.length>0)for(let o=0,i=this._brackets.length;o<i;o++){const e=this._brackets[o];if(e.openRegExp.test(n)&&e.closeRegExp.test(r))return{indentAction:y.IndentOutdent}}if(e>=2&&n.length>0)for(let o=0,i=this._brackets.length;o<i;o++){if(this._brackets[o].openRegExp.test(n))return{indentAction:y.Indent}}return null}static _createOpenBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",H._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=c.bm(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,H._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return(0,l.dz)(t),null}}}var K=n(3591),q=n(4001),J=n(4621),X=n(3941),$=n(1788);class Y{constructor(e,t){this.languageId=e;const n=t.brackets?Q(t.brackets):[],r=new $.VV((e=>{const t=new Set;return{info:new ee(this,e,t),closing:t}})),o=new $.VV((e=>{const t=new Set,n=new Set;return{info:new te(this,e,t,n),opening:t,openingColorized:n}}));for(const[a,s]of n){const e=r.get(a),t=o.get(s);e.closing.add(t.info),t.opening.add(e.info)}const i=t.colorizedBracketPairs?Q(t.colorizedBracketPairs):n.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[a,s]of i){const e=r.get(a),t=o.get(s);e.closing.add(t.info),t.openingColorized.add(e.info),t.opening.add(e.info)}this._openingBrackets=new Map([...r.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...o.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){return z(Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]),e)}}function Q(e){return e.filter((([e,t])=>""!==e&&""!==t))}class Z{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class ee extends Z{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class te extends Z{constructor(e,t,n,r){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=r,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var ne=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},re=function(e,t){return function(n,r){t(n,r,e)}};class oe{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const ie=(0,K.u1)("languageConfigurationService");let ae=class extends o.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new fe),this.onDidChangeEmitter=this._register(new r.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(se));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>n.has(e))),r=e.change.overrides.filter((([e,t])=>t.some((e=>n.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new oe(void 0));else for(const n of r)this.languageService.isRegisteredLanguageId(n)&&(this.configurations.delete(n),this.onDidChangeEmitter.fire(new oe(n)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new oe(e.languageId))})))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,r){let o=t.getLanguageConfiguration(e);if(!o){if(!r.isRegisteredLanguageId(e))return new me(e,{});o=new me(e,{})}const i=function(e,t){const n=t.getValue(se.brackets,{overrideIdentifier:e}),r=t.getValue(se.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:le(n),colorizedBracketPairs:le(r)}}(o.languageId,n),a=de([o.underlyingConfig,i]);return new me(o.languageId,a)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};ae=ne([re(0,q.pG),re(1,v.L)],ae);const se={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function le(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}class ce{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new ue(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,o.s)((()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}}))}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new me(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(ue.cmp),de(this._entries.map((e=>e.configuration))))}}function de(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class ue{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class pe{constructor(e){this.languageId=e}}class fe extends o.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(X.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let r=this._entries.get(e);r||(r=new ce(e),this._entries.set(e,r));const i=r.register(t,n);return this._onDidChange.fire(new pe(e)),(0,o.s)((()=>{i.dispose(),this._onDidChange.fire(new pe(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class me{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new H(this.underlyingConfig):null,this.comments=me._handleComments(this.underlyingConfig),this.characterPair=new x(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||b.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new U(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new Y(e,this.underlyingConfig)}getWordDefinition(){return(0,b.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new P(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new j(this.brackets)),this._electricCharacter}onEnter(e,t,n,r){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,r):null}getAutoClosingPairs(){return new S(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,r]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=r}return n}}(0,J.v)(ie,ae,1);var _e=n(6223);class he{constructor(e,t,n,r){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=n,this.isInvalid=r}}class ge{constructor(e,t,n,r,o,i){this.range=e,this.openingBracketRange=t,this.closingBracketRange=n,this.nestingLevel=r,this.nestingLevelOfEqualBracketType=o,this.bracketPairNode=i}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class ye extends ge{constructor(e,t,n,r,o,i,a){super(e,t,n,r,o,i),this.minVisibleColumnIndentation=a}}var ve=n(973);function be(e){return 0===e}const Ee=2**26;function Se(e,t){return e*Ee+t}function Te(e){const t=e,n=Math.floor(t/Ee),r=t-n*Ee;return new ve.W(n,r)}function xe(e,t){let n=e+t;return t>=Ee&&(n-=e%Ee),n}function Ae(e,t){return e.reduce(((e,n)=>xe(e,t(n))),0)}function Ie(e,t){return e===t}function Re(e,t){const n=e,r=t;if(r-n<=0)return 0;const o=Math.floor(n/Ee),i=Math.floor(r/Ee),a=r-i*Ee;if(o===i){return Se(0,a-(n-o*Ee))}return Se(i-o,a)}function Ce(e,t){return e<t}function De(e,t){return e<=t}function Ne(e,t){return e>=t}function Me(e){return Se(e.lineNumber-1,e.column-1)}function Le(e,t){const n=e,r=Math.floor(n/Ee),o=n-r*Ee,i=t,a=Math.floor(i/Ee),s=i-a*Ee;return new _.Q(r+1,o+1,a+1,s+1)}class ke{static fromModelContentChanges(e){return e.map((e=>{const t=_.Q.lift(e.range);return new ke(Me(t.getStartPosition()),Me(t.getEndPosition()),function(e){const t=(0,c.uz)(e);return Se(t.length-1,t[t.length-1].length)}(e.text))})).reverse()}constructor(e,t,n){this.startOffset=e,this.endOffset=t,this.newLength=n}toString(){return`[${Te(this.startOffset)}...${Te(this.endOffset)}) -> ${Te(this.newLength)}`}}class Pe{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>we.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],n=t?this.translateOldToCur(t.offsetObj):null;return null===n?null:Re(e,n)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?Se(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):Se(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=Te(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?Se(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):Se(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){const t=this.edits[this.nextEditIdx],n=this.translateOldToCur(t.endOffsetAfterObj);if(!De(n,e))break;{this.nextEditIdx++;const e=Te(n),r=Te(this.translateOldToCur(t.endOffsetBeforeObj)),o=e.lineCount-r.lineCount;this.deltaOldToNewLineCount+=o;const i=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,a=e.columnCount-r.columnCount;this.deltaOldToNewColumnCount=i+a,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}}class we{static from(e){return new we(e.startOffset,e.endOffset,e.newLength)}constructor(e,t,n){this.endOffsetBeforeObj=Te(t),this.endOffsetAfterObj=Te(xe(e,n)),this.offsetObj=Te(e)}}const Oe=[];class Fe{static{this.cache=new Array(129)}static create(e,t){if(e<=128&&0===t.length){let n=Fe.cache[e];return n||(n=new Fe(e,t),Fe.cache[e]=n),n}return new Fe(e,t)}static{this.empty=Fe.create(0,Oe)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const n=t.getKey(e);let r=n>>5;if(0===r){const e=1<<n|this.items;return e===this.items?this:Fe.create(e,this.additionalItems)}r--;const o=this.additionalItems.slice(0);for(;o.length<r;)o.push(0);return o[r]|=1<<(31&n),Fe.create(this.items,o)}merge(e){const t=this.items|e.items;if(this.additionalItems===Oe&&e.additionalItems===Oe)return t===this.items?this:t===e.items?e:Fe.create(t,Oe);const n=[];for(let r=0;r<Math.max(this.additionalItems.length,e.additionalItems.length);r++){const t=this.additionalItems[r]||0,o=e.additionalItems[r]||0;n.push(t|o)}return Fe.create(t,n)}intersects(e){if(0!==(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!==(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}const We={getKey:e=>e};class ze{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}class Be{get length(){return this._length}constructor(e){this._length=e}}class Ge extends Be{static create(e,t,n){let r=e.length;return t&&(r=xe(r,t.length)),n&&(r=xe(r,n.length)),new Ge(r,e,t,n,t?t.missingOpeningBracketIds:Fe.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,r,o){super(e),this.openingBracket=t,this.child=n,this.closingBracket=r,this.missingOpeningBracketIds=o}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new Ge(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation(xe(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class je extends Be{static create23(e,t,n,r=!1){let o=e.length,i=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(o=xe(o,t.length),i=i.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");o=xe(o,n.length),i=i.merge(n.missingOpeningBracketIds)}return r?new Ue(o,e.listHeight+1,e,t,n,i):new Ve(o,e.listHeight+1,e,t,n,i)}static getEmpty(){return new Ke(0,0,[],Fe.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){this.throwIfImmutable();if(0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new l.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let r=1;r<e;r++){const e=this.getChild(r);t=xe(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,r=e;for(let o=0;o<this.childrenLength;o++){const e=this.getChild(o);e&&(n=Math.min(n,e.computeMinIndentation(r,t)),r=xe(r,e.length))}return this.cachedMinIndentation=n,n}}class Ve extends je{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case 2:return this._item3}throw new Error("Invalid child index")}setChild(e,t){switch(e){case 0:return void(this._item1=t);case 1:return void(this._item2=t);case 2:return void(this._item3=t)}throw new Error("Invalid child index")}get children(){return this._item3?[this._item1,this._item2,this._item3]:[this._item1,this._item2]}get item1(){return this._item1}get item2(){return this._item2}get item3(){return this._item3}constructor(e,t,n,r,o,i){super(e,t,i),this._item1=n,this._item2=r,this._item3=o}deepClone(){return new Ve(this.length,this.listHeight,this._item1.deepClone(),this._item2.deepClone(),this._item3?this._item3.deepClone():null,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){if(this._item3)throw new Error("Cannot append to a full (2,3) tree node");this.throwIfImmutable(),this._item3=e,this.handleChildrenChanged()}unappendChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item3;return this._item3=null,this.handleChildrenChanged(),e}prependChildOfSameHeight(e){if(this._item3)throw new Error("Cannot prepend to a full (2,3) tree node");this.throwIfImmutable(),this._item3=this._item2,this._item2=this._item1,this._item1=e,this.handleChildrenChanged()}unprependChild(){if(!this._item3)throw new Error("Cannot remove from a non-full (2,3) tree node");this.throwIfImmutable();const e=this._item1;return this._item1=this._item2,this._item2=this._item3,this._item3=null,this.handleChildrenChanged(),e}toMutable(){return this}}class Ue extends Ve{toMutable(){return new Ve(this.length,this.listHeight,this.item1,this.item2,this.item3,this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}class He extends je{get childrenLength(){return this._children.length}getChild(e){return this._children[e]}setChild(e,t){this._children[e]=t}get children(){return this._children}constructor(e,t,n,r){super(e,t,r),this._children=n}deepClone(){const e=new Array(this._children.length);for(let t=0;t<this._children.length;t++)e[t]=this._children[t].deepClone();return new He(this.length,this.listHeight,e,this.missingOpeningBracketIds)}appendChildOfSameHeight(e){this.throwIfImmutable(),this._children.push(e),this.handleChildrenChanged()}unappendChild(){this.throwIfImmutable();const e=this._children.pop();return this.handleChildrenChanged(),e}prependChildOfSameHeight(e){this.throwIfImmutable(),this._children.unshift(e),this.handleChildrenChanged()}unprependChild(){this.throwIfImmutable();const e=this._children.shift();return this.handleChildrenChanged(),e}toMutable(){return this}}class Ke extends He{toMutable(){return new He(this.length,this.listHeight,[...this.children],this.missingOpeningBracketIds)}throwIfImmutable(){throw new Error("this instance is immutable")}}const qe=[];class Je extends Be{get listHeight(){return 0}get childrenLength(){return 0}getChild(e){return null}get children(){return qe}deepClone(){return this}}class Xe extends Je{get kind(){return 0}get missingOpeningBracketIds(){return Fe.getEmpty()}canBeReused(e){return!0}computeMinIndentation(e,t){const n=Te(e),r=(0===n.columnCount?n.lineCount:n.lineCount+1)+1,o=(i=xe(e,this.length),Math.floor(i/Ee)+1);var i;let a=Number.MAX_SAFE_INTEGER;for(let s=r;s<=o;s++){const e=t.getLineFirstNonWhitespaceColumn(s),n=t.getLineContent(s);if(0===e)continue;const r=p.visibleColumnFromColumn(n,e,t.getOptions().tabSize);a=Math.min(a,r)}return a}}class $e extends Je{static create(e,t,n){return new $e(e,t,n)}get kind(){return 1}get missingOpeningBracketIds(){return Fe.getEmpty()}constructor(e,t,n){super(e),this.bracketInfo=t,this.bracketIds=n}get text(){return this.bracketInfo.bracketText}get languageId(){return this.bracketInfo.languageId}canBeReused(e){return!1}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}class Ye extends Je{get kind(){return 3}constructor(e,t){super(t),this.missingOpeningBracketIds=e}canBeReused(e){return!e.intersects(this.missingOpeningBracketIds)}computeMinIndentation(e,t){return Number.MAX_SAFE_INTEGER}}var Qe=n(5982);class Ze{constructor(e,t,n,r,o){this.length=e,this.kind=t,this.bracketId=n,this.bracketIds=r,this.astNode=o}}class et{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new tt(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return Se(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=xe(this._offset,e);const t=Te(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=xe(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class tt{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=e.length,e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let n=0;for(;;){const r=this.lineTokens,o=r.getCount();let i=null;if(this.lineTokenOffset<o){const a=r.getMetadata(this.lineTokenOffset);for(;this.lineTokenOffset+1<o&&a===r.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;const s=0===Qe.x.getTokenType(a),l=Qe.x.containsBalancedBrackets(a),c=r.getEndOffset(this.lineTokenOffset);if(l&&s&&this.lineCharOffset<c){const e=r.getLanguageId(this.lineTokenOffset),t=this.line.substring(this.lineCharOffset,c),n=this.bracketTokens.getSingleLanguageBracketTokens(e),o=n.regExpGlobal;if(o){o.lastIndex=0;const e=o.exec(t);e&&(i=n.getToken(e[0]),i&&(this.lineCharOffset+=e.index))}}if(n+=c-this.lineCharOffset,i){if(e!==this.lineIdx||t!==this.lineCharOffset){this.peekedToken=i;break}return this.lineCharOffset+=i.length,i}this.lineTokenOffset++,this.lineCharOffset=c}else{if(this.lineIdx===this.textBufferLineCount-1)break;if(this.lineIdx++,this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,n+=33,n>1e3)break}if(n>1500)break}const r=(o=e,i=t,a=this.lineIdx,s=this.lineCharOffset,o!==a?Se(a-o,s):Se(0,s-i));var o,i,a,s;return new Ze(r,0,-1,Fe.getEmpty(),new Xe(r))}}class nt{constructor(e,t){this.text=e,this._offset=0,this.idx=0;const n=t.getRegExpStr(),r=n?new RegExp(n+"|\n","gi"):null,o=[];let i,a=0,s=0,l=0,c=0;const d=[];for(let f=0;f<60;f++)d.push(new Ze(Se(0,f),0,-1,Fe.getEmpty(),new Xe(Se(0,f))));const u=[];for(let f=0;f<60;f++)u.push(new Ze(Se(1,f),0,-1,Fe.getEmpty(),new Xe(Se(1,f))));if(r)for(r.lastIndex=0;null!==(i=r.exec(e));){const e=i.index,n=i[0];if("\n"===n)a++,s=e+1;else{if(l!==e){let t;if(c===a){const n=e-l;if(n<d.length)t=d[n];else{const e=Se(0,n);t=new Ze(e,0,-1,Fe.getEmpty(),new Xe(e))}}else{const n=a-c,r=e-s;if(1===n&&r<u.length)t=u[r];else{const e=Se(n,r);t=new Ze(e,0,-1,Fe.getEmpty(),new Xe(e))}}o.push(t)}o.push(t.getToken(n)),l=e+n.length,c=a}}const p=e.length;if(l!==p){const e=c===a?Se(0,p-l):Se(a-c,p-s);o.push(new Ze(e,0,-1,Fe.getEmpty(),new Xe(e)))}this.length=Se(a,p-s),this.tokens=o}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new l.EM}}class rt{static createFromLanguage(e,t){function n(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const r=new Map;for(const o of e.bracketsNew.openingBrackets){const e=Se(0,o.bracketText.length),t=n(o),i=Fe.getEmpty().add(t,We);r.set(o.bracketText,new Ze(e,1,t,i,$e.create(e,o,i)))}for(const o of e.bracketsNew.closingBrackets){const e=Se(0,o.bracketText.length);let t=Fe.getEmpty();const i=o.getOpeningBrackets();for(const r of i)t=t.add(n(r),We);r.set(o.bracketText,new Ze(e,2,n(i[0]),t,$e.create(e,o,t)))}return new rt(r)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,c.bm)(e);/^[\w ]+/.test(e)&&(t=`\\b${t}`);/[\w ]+$/.test(e)&&(t=`${t}\\b`);return t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,n]of this.map)if(2===n.kind&&n.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class ot{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=rt.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}function it(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let n=e.length;for(;n>3;){const r=n>>1;for(let o=0;o<r;o++){const r=o<<1;e[o]=je.create23(e[r],e[r+1],r+3===n?e[r+2]:null,t)}n=r}return je.create23(e[0],e[1],n>=3?e[2]:null,t)}function at(e,t){return Math.abs(e.listHeight-t.listHeight)}function st(e,t){return e.listHeight===t.listHeight?je.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let n=e=e.toMutable();const r=[];let o;for(;;){if(t.listHeight===n.listHeight){o=t;break}if(4!==n.kind)throw new Error("unexpected");r.push(n),n=n.makeLastElementMutable()}for(let i=r.length-1;i>=0;i--){const e=r[i];o?e.childrenLength>=3?o=je.create23(e.unappendChild(),o,null,!1):(e.appendChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?je.create23(e,o,null,!1):e}(e,t):function(e,t){let n=e=e.toMutable();const r=[];for(;t.listHeight!==n.listHeight;){if(4!==n.kind)throw new Error("unexpected");r.push(n),n=n.makeFirstElementMutable()}let o=t;for(let i=r.length-1;i>=0;i--){const e=r[i];o?e.childrenLength>=3?o=je.create23(o,e.unprependChild(),null,!1):(e.prependChildOfSameHeight(o),o=void 0):e.handleChildrenChanged()}return o?je.create23(o,e,null,!1):e}(t,e)}class lt{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(Ce(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const n=dt(this.nextNodes);if(!n)return;const r=dt(this.offsets);if(Ce(e,r))return;if(Ce(r,e))if(xe(r,n.length)<=e)this.nextNodeAfterCurrent();else{const e=ct(n);-1!==e?(this.nextNodes.push(n.getChild(e)),this.offsets.push(r),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(n))return this.nextNodeAfterCurrent(),n;{const e=ct(n);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(n.getChild(e)),this.offsets.push(r),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=dt(this.offsets),t=dt(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const n=dt(this.nextNodes),r=ct(n,this.idxs[this.idxs.length-1]);if(-1!==r){this.nextNodes.push(n.getChild(r)),this.offsets.push(xe(e,t.length)),this.idxs[this.idxs.length-1]=r;break}this.idxs.pop()}}}function ct(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function dt(e){return e.length>0?e[e.length-1]:void 0}function ut(e,t,n,r){return new pt(e,t,n,r).parseDocument()}class pt{constructor(e,t,n,r){if(this.tokenizer=e,this.createImmutableLists=r,this._itemsConstructed=0,this._itemsFromCache=0,n&&r)throw new Error("Not supported");this.oldNodeReader=n?new lt(n):void 0,this.positionMapper=new Pe(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(Fe.getEmpty(),0);return e||(e=je.getEmpty()),e}parseList(e,t){const n=[];for(;;){let r=this.tryReadChildFromCache(e);if(!r){const n=this.tokenizer.peek();if(!n||2===n.kind&&n.bracketIds.intersects(e))break;r=this.parseChild(e,t+1)}4===r.kind&&0===r.childrenLength||n.push(r)}const r=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function n(){if(t>=e.length)return null;const n=t,r=e[n].listHeight;for(t++;t<e.length&&e[t].listHeight===r;)t++;return t-n>=2?it(0===n&&t===e.length?e:e.slice(n,t),!1):e[n]}let r=n(),o=n();if(!o)return r;for(let i=n();i;i=n())at(r,o)<=at(o,i)?(r=st(r,o),o=i):o=st(o,i);return st(r,o)}(n):it(n,this.createImmutableLists);return r}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!be(t)){const n=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(n=>{if(null!==t&&!Ce(n.length,t))return!1;return n.canBeReused(e)}));if(n)return this._itemsFromCache++,this.tokenizer.skip(n.length),n}}}parseChild(e,t){this._itemsConstructed++;const n=this.tokenizer.read();switch(n.kind){case 2:return new Ye(n.bracketIds,n.length);case 0:return n.astNode;case 1:{if(t>300)return new Xe(n.length);const r=e.merge(n.bracketIds),o=this.parseList(r,t+1),i=this.tokenizer.peek();return i&&2===i.kind&&(i.bracketId===n.bracketId||i.bracketIds.intersects(n.bracketIds))?(this.tokenizer.read(),Ge.create(n.astNode,o,i.astNode)):Ge.create(n.astNode,o,null)}default:throw new Error("unexpected")}}}function ft(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=new a.j3(_t(e)),r=_t(t);r.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let o=n.dequeue();function i(e){if(void 0===e){const e=n.takeWhile((e=>!0))||[];return o&&e.unshift(o),e}const t=[];for(;o&&!be(e);){const[r,i]=o.splitAt(e);t.push(r),e=Re(r.lengthAfter,e),o=i??n.dequeue()}return be(e)||t.push(new mt(!1,e,e)),t}const s=[];function l(e,t,n){if(s.length>0&&Ie(s[s.length-1].endOffset,e)){const e=s[s.length-1];s[s.length-1]=new ke(e.startOffset,t,xe(e.newLength,n))}else s.push({startOffset:e,endOffset:t,newLength:n})}let c=0;for(const a of r){const e=i(a.lengthBefore);if(a.modified){const t=xe(c,Ae(e,(e=>e.lengthBefore)));l(c,t,a.lengthAfter),c=t}else for(const t of e){const e=c;c=xe(c,t.lengthBefore),t.modified&&l(e,c,t.lengthAfter)}}return s}class mt{constructor(e,t,n){this.modified=e,this.lengthBefore=t,this.lengthAfter=n}splitAt(e){const t=Re(e,this.lengthAfter);return Ie(t,0)?[this,void 0]:this.modified?[new mt(this.modified,this.lengthBefore,e),new mt(this.modified,0,t)]:[new mt(this.modified,e,e),new mt(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${Te(this.lengthBefore)} -> ${Te(this.lengthAfter)}`}}function _t(e){const t=[];let n=0;for(const r of e){const e=Re(n,r.startOffset);be(e)||t.push(new mt(!1,e,e));const o=Re(r.startOffset,r.endOffset);t.push(new mt(!0,o,r.newLength)),n=r.endOffset}return t}class ht extends o.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new r.vl,this.denseKeyProvider=new ze,this.brackets=new ot(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new nt(this.textModel.getValue(),e);this.initialAstWithoutTokens=ut(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new ke(Se(e.fromLineNumber-1,0),Se(e.toLineNumber,0),Se(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=ke.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const n=ft(this.queuedTextEdits,e);this.queuedTextEdits=n,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=ft(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,n){const r=t;return ut(new et(this.textModel,this.brackets),e,r,n)}getBracketsInRange(e,t){this.flushQueue();const n=Se(e.startLineNumber-1,e.startColumn-1),r=Se(e.endLineNumber-1,e.endColumn-1);return new a.c1((e=>{const o=this.initialAstWithoutTokens||this.astWithTokens;vt(o,0,o.length,n,r,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const n=Me(e.getStartPosition()),r=Me(e.getEndPosition());return new a.c1((e=>{const o=this.initialAstWithoutTokens||this.astWithTokens,i=new bt(e,t,this.textModel);Et(o,0,o.length,n,r,i,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return yt(t,0,t.length,Me(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return gt(t,0,t.length,Me(e))}}function gt(e,t,n,r){if(4===e.kind||2===e.kind){const o=[];for(const r of e.children)n=xe(t,r.length),o.push({nodeOffsetStart:t,nodeOffsetEnd:n}),t=n;for(let t=o.length-1;t>=0;t--){const{nodeOffsetStart:n,nodeOffsetEnd:i}=o[t];if(Ce(n,r)){const o=gt(e.children[t],n,i,r);if(o)return o}}return null}if(3===e.kind)return null;if(1===e.kind){const r=Le(t,n);return{bracketInfo:e.bracketInfo,range:r}}return null}function yt(e,t,n,r){if(4===e.kind||2===e.kind){for(const o of e.children){if(Ce(r,n=xe(t,o.length))){const e=yt(o,t,n,r);if(e)return e}t=n}return null}if(3===e.kind)return null;if(1===e.kind){const r=Le(t,n);return{bracketInfo:e.bracketInfo,range:r}}return null}function vt(e,t,n,r,o,i,a,s,l,c,d=!1){if(a>200)return!0;e:for(;;)switch(e.kind){case 4:{const s=e.childrenLength;for(let d=0;d<s;d++){const s=e.getChild(d);if(s){if(n=xe(t,s.length),De(t,o)&&Ne(n,r)){if(Ne(n,o)){e=s;continue e}if(!vt(s,t,n,r,o,i,a,0,l,c))return!1}t=n}}return!0}case 2:{const d=!c||!e.closingBracket||e.closingBracket.bracketInfo.closesColorized(e.openingBracket.bracketInfo);let u=0;if(l){let t=l.get(e.openingBracket.text);void 0===t&&(t=0),u=t,d&&(t++,l.set(e.openingBracket.text,t))}const p=e.childrenLength;for(let f=0;f<p;f++){const p=e.getChild(f);if(p){if(n=xe(t,p.length),De(t,o)&&Ne(n,r)){if(Ne(n,o)&&1!==p.kind){e=p,d?(a++,s=u+1):s=u;continue e}if(d||1!==p.kind||!e.closingBracket){if(!vt(p,t,n,r,o,i,d?a+1:a,d?u+1:u,l,c,!e.closingBracket))return!1}}t=n}}return l?.set(e.openingBracket.text,u),!0}case 3:{const e=Le(t,n);return i(new he(e,a-1,0,!0))}case 1:{const e=Le(t,n);return i(new he(e,a-1,s-1,d))}case 0:return!0}}class bt{constructor(e,t,n){this.push=e,this.includeMinIndentation=t,this.textModel=n}}function Et(e,t,n,r,o,i,a,s){if(a>200)return!0;let l=!0;if(2===e.kind){let c=0;if(s){let t=s.get(e.openingBracket.text);void 0===t&&(t=0),c=t,t++,s.set(e.openingBracket.text,t)}const d=xe(t,e.openingBracket.length);let u=-1;if(i.includeMinIndentation&&(u=e.computeMinIndentation(t,i.textModel)),l=i.push(new ye(Le(t,n),Le(t,d),e.closingBracket?Le(xe(d,e.child?.length||0),n):void 0,a,c,e,u)),t=d,l&&e.child){const c=e.child;if(n=xe(t,c.length),De(t,o)&&Ne(n,r)&&(l=Et(c,t,n,r,o,i,a+1,s),!l))return!1}s?.set(e.openingBracket.text,c)}else{let n=t;for(const t of e.children){const e=n;if(n=xe(n,t.length),De(e,o)&&De(r,n)&&(l=Et(t,e,n,r,o,i,a,s),!l))return!1}}return l}class St extends o.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new o.HE),this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){e.languageId&&!this.bracketPairsTree.value?.object.didLanguageChange(e.languageId)||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){this.bracketPairsTree.value?.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){this.bracketPairsTree.value?.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){this.bracketPairsTree.value?.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const n=new o.Cm;this.bracketPairsTree.value=(e=n.add(new ht(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=n,{object:e,dispose:()=>t?.dispose()}),n.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!1)||a.c1.empty}getBracketPairsInRangeWithMinIndentation(e){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketPairsInRange(e,!0)||a.c1.empty}getBracketsInRange(e,t=!1){return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getBracketsInRange(e,t)||a.c1.empty}findMatchingBracketUp(e,t,n){const r=this.textModel.validatePosition(t),o=this.textModel.getLanguageIdAtPosition(r.lineNumber,r.column);if(this.canBuildAST){const n=this.languageConfigurationService.getLanguageConfiguration(o).bracketsNew.getClosingBracketInfo(e);if(!n)return null;const r=this.getBracketPairsInRange(_.Q.fromPositions(t,t)).findLast((e=>n.closes(e.openingBracketInfo)));return r?r.openingBracketRange:null}{const t=e.toLowerCase(),i=this.languageConfigurationService.getLanguageConfiguration(o).brackets;if(!i)return null;const a=i.textIsBracket[t];return a?At(this._findMatchingBracketUp(a,r,Tt(n))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(_.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,a.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),_.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const n=Tt(t);return this._matchBracket(this.textModel.validatePosition(e),n)}}_establishBracketSearchOffsets(e,t,n,r){const o=t.getCount(),i=t.getLanguageId(r);let a=Math.max(0,e.column-1-n.maxBracketLength);for(let l=r-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=a)break;if(A(t.getStandardTokenType(l))||t.getLanguageId(l)!==i){a=e;break}}let s=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=r+1;l<o;l++){const e=t.getStartOffset(l);if(e>=s)break;if(A(t.getStandardTokenType(l))||t.getLanguageId(l)!==i){s=e;break}}return{searchStartOffset:a,searchEndOffset:s}}_matchBracket(e,t){const n=e.lineNumber,r=this.textModel.tokenization.getLineTokens(n),o=this.textModel.getLineContent(n),i=r.findTokenIndexAtOffset(e.column-1);if(i<0)return null;const a=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId(i)).brackets;if(a&&!A(r.getStandardTokenType(i))){let{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,r,a,i),c=null;for(;;){const r=G.findNextBracketInRange(a.forwardRegex,n,o,s,l);if(!r)break;if(r.startColumn<=e.column&&e.column<=r.endColumn){const e=o.substring(r.startColumn-1,r.endColumn-1).toLowerCase(),n=this._matchFoundBracket(r,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(n){if(n instanceof xt)return null;c=n}}s=r.endColumn-1}if(c)return c}if(i>0&&r.getStartOffset(i)===e.column-1){const a=i-1,s=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId(a)).brackets;if(s&&!A(r.getStandardTokenType(a))){const{searchStartOffset:i,searchEndOffset:l}=this._establishBracketSearchOffsets(e,r,s,a),c=G.findPrevBracketInRange(s.reversedRegex,n,o,i,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=o.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),n=this._matchFoundBracket(c,s.textIsBracket[e],s.textIsOpenBracket[e],t);if(n)return n instanceof xt?null:n}}}return null}_matchFoundBracket(e,t,n,r){if(!t)return null;const o=n?this._findMatchingBracketDown(t,e.getEndPosition(),r):this._findMatchingBracketUp(t,e.getStartPosition(),r);return o?o instanceof xt?o:[e,o]:null}_findMatchingBracketUp(e,t,n){const r=e.languageId,o=e.reversedRegex;let i=-1,a=0;const s=(t,r,s,l)=>{for(;;){if(n&&++a%100===0&&!n())return xt.INSTANCE;const c=G.findPrevBracketInRange(o,t,r,s,l);if(!c)break;const d=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(d)?i++:e.isClose(d)&&i--,0===i)return c;l=c.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this.textModel.tokenization.getLineTokens(l),n=e.getCount(),o=this.textModel.getLineContent(l);let i=n-1,a=o.length,c=o.length;l===t.lineNumber&&(i=e.findTokenIndexAtOffset(t.column-1),a=t.column-1,c=t.column-1);let d=!0;for(;i>=0;i--){const t=e.getLanguageId(i)===r&&!A(e.getStandardTokenType(i));if(t)d?a=e.getStartOffset(i):(a=e.getStartOffset(i),c=e.getEndOffset(i));else if(d&&a!==c){const e=s(l,o,a,c);if(e)return e}d=t}if(d&&a!==c){const e=s(l,o,a,c);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const r=e.languageId,o=e.forwardRegex;let i=1,a=0;const s=(t,r,s,l)=>{for(;;){if(n&&++a%100===0&&!n())return xt.INSTANCE;const c=G.findNextBracketInRange(o,t,r,s,l);if(!c)break;const d=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(d)?i++:e.isClose(d)&&i--,0===i)return c;s=c.endColumn-1}return null},l=this.textModel.getLineCount();for(let c=t.lineNumber;c<=l;c++){const e=this.textModel.tokenization.getLineTokens(c),n=e.getCount(),o=this.textModel.getLineContent(c);let i=0,a=0,l=0;c===t.lineNumber&&(i=e.findTokenIndexAtOffset(t.column-1),a=t.column-1,l=t.column-1);let d=!0;for(;i<n;i++){const t=e.getLanguageId(i)===r&&!A(e.getStandardTokenType(i));if(t)d||(a=e.getStartOffset(i)),l=e.getEndOffset(i);else if(d&&a!==l){const e=s(c,o,a,l);if(e)return e}d=t}if(d&&a!==l){const e=s(c,o,a,l);if(e)return e}}return null}findPrevBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketBefore(t)||null;let n=null,r=null,o=null;for(let i=t.lineNumber;i>=1;i--){const e=this.textModel.tokenization.getLineTokens(i),a=e.getCount(),s=this.textModel.getLineContent(i);let l=a-1,c=s.length,d=s.length;if(i===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,d=t.column-1;const i=e.getLanguageId(l);n!==i&&(n=i,r=this.languageConfigurationService.getLanguageConfiguration(n).brackets,o=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let u=!0;for(;l>=0;l--){const t=e.getLanguageId(l);if(n!==t){if(r&&o&&u&&c!==d){const e=G.findPrevBracketInRange(r.reversedRegex,i,s,c,d);if(e)return this._toFoundBracket(o,e);u=!1}n=t,r=this.languageConfigurationService.getLanguageConfiguration(n).brackets,o=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const a=!!r&&!A(e.getStandardTokenType(l));if(a)u?c=e.getStartOffset(l):(c=e.getStartOffset(l),d=e.getEndOffset(l));else if(o&&r&&u&&c!==d){const e=G.findPrevBracketInRange(r.reversedRegex,i,s,c,d);if(e)return this._toFoundBracket(o,e)}u=a}if(o&&r&&u&&c!==d){const e=G.findPrevBracketInRange(r.reversedRegex,i,s,c,d);if(e)return this._toFoundBracket(o,e)}}return null}findNextBracket(e){const t=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),this.bracketPairsTree.value?.object.getFirstBracketAfter(t)||null;const n=this.textModel.getLineCount();let r=null,o=null,i=null;for(let a=t.lineNumber;a<=n;a++){const e=this.textModel.tokenization.getLineTokens(a),n=e.getCount(),s=this.textModel.getLineContent(a);let l=0,c=0,d=0;if(a===t.lineNumber){l=e.findTokenIndexAtOffset(t.column-1),c=t.column-1,d=t.column-1;const n=e.getLanguageId(l);r!==n&&(r=n,o=this.languageConfigurationService.getLanguageConfiguration(r).brackets,i=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew)}let u=!0;for(;l<n;l++){const t=e.getLanguageId(l);if(r!==t){if(i&&o&&u&&c!==d){const e=G.findNextBracketInRange(o.forwardRegex,a,s,c,d);if(e)return this._toFoundBracket(i,e);u=!1}r=t,o=this.languageConfigurationService.getLanguageConfiguration(r).brackets,i=this.languageConfigurationService.getLanguageConfiguration(r).bracketsNew}const n=!!o&&!A(e.getStandardTokenType(l));if(n)u||(c=e.getStartOffset(l)),d=e.getEndOffset(l);else if(i&&o&&u&&c!==d){const e=G.findNextBracketInRange(o.forwardRegex,a,s,c,d);if(e)return this._toFoundBracket(i,e)}u=n}if(i&&o&&u&&c!==d){const e=G.findNextBracketInRange(o.forwardRegex,a,s,c,d);if(e)return this._toFoundBracket(i,e)}}return null}findEnclosingBrackets(e,t){const n=this.textModel.validatePosition(e);if(this.canBuildAST){const e=_.Q.fromPositions(n),t=this.getBracketPairsInRange(_.Q.fromPositions(n,n)).findLast((t=>void 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const r=Tt(t),o=this.textModel.getLineCount(),i=new Map;let a=[];const s=(e,t)=>{if(!i.has(e)){const n=[];for(let e=0,r=t?t.brackets.length:0;e<r;e++)n[e]=0;i.set(e,n)}a=i.get(e)};let l=0;const c=(e,t,n,o,i)=>{for(;;){if(r&&++l%100===0&&!r())return xt.INSTANCE;const s=G.findNextBracketInRange(e.forwardRegex,t,n,o,i);if(!s)break;const c=n.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),d=e.textIsBracket[c];if(d&&(d.isOpen(c)?a[d.index]++:d.isClose(c)&&a[d.index]--,-1===a[d.index]))return this._matchFoundBracket(s,d,!1,r);o=s.endColumn-1}return null};let d=null,u=null;for(let p=n.lineNumber;p<=o;p++){const e=this.textModel.tokenization.getLineTokens(p),t=e.getCount(),r=this.textModel.getLineContent(p);let o=0,i=0,a=0;if(p===n.lineNumber){o=e.findTokenIndexAtOffset(n.column-1),i=n.column-1,a=n.column-1;const t=e.getLanguageId(o);d!==t&&(d=t,u=this.languageConfigurationService.getLanguageConfiguration(d).brackets,s(d,u))}let l=!0;for(;o<t;o++){const t=e.getLanguageId(o);if(d!==t){if(u&&l&&i!==a){const e=c(u,p,r,i,a);if(e)return At(e);l=!1}d=t,u=this.languageConfigurationService.getLanguageConfiguration(d).brackets,s(d,u)}const n=!!u&&!A(e.getStandardTokenType(o));if(n)l||(i=e.getStartOffset(o)),a=e.getEndOffset(o);else if(u&&l&&i!==a){const e=c(u,p,r,i,a);if(e)return At(e)}l=n}if(u&&l&&i!==a){const e=c(u,p,r,i,a);if(e)return At(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.textModel.getValueInRange(t);n=n.toLowerCase();const r=e.getBracketInfo(n);return r?{range:t,bracketInfo:r}:null}}function Tt(e){if("undefined"===typeof e)return()=>!0;{const t=Date.now();return()=>Date.now()-t<=e}}class xt{static{this.INSTANCE=new xt}constructor(){this._searchCanceledBrand=void 0}}function At(e){return e instanceof xt?null:e}var It=n(7119),Rt=n(5724);class Ct extends o.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new Dt,this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,n,r){if(r)return[];if(void 0===t)return[];if(!this.colorizationOptions.enabled)return[];return this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray()}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new _.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class Dt{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,Rt.zy)(((e,t)=>{const n=[It.sN,It.lQ,It.ss,It.l5,It.sH,It.zp],r=new Dt;t.addRule(`.monaco-editor .${r.unexpectedClosingBracketClassName} { color: ${e.getColor(It.s7)}; }`);const o=n.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let i=0;i<30;i++){const e=o[i%o.length];t.addRule(`.monaco-editor .${r.getInlineClassNameOfLevel(i)} { color: ${e}; }`)}}));var Nt=n(8209);function Mt(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class Lt{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,r){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=r}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${Mt(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${Mt(this.oldText)}")`:`(replace@${this.oldPosition} "${Mt(this.oldText)}" with "${Mt(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const r=t.length;I.Sw(e,r,n),n+=4;for(let o=0;o<r;o++)I.gN(e,t.charCodeAt(o),n),n+=2;return n}static _readString(e,t){const n=I.bb(e,t);return L(e,t+=4,n)}writeSize(){return 8+Lt._writeStringSize(this.oldText)+Lt._writeStringSize(this.newText)}write(e,t){return I.Sw(e,this.oldPosition,t),t+=4,I.Sw(e,this.newPosition,t),t+=4,t=Lt._writeString(e,this.oldText,t),t=Lt._writeString(e,this.newText,t)}static read(e,t,n){const r=I.bb(e,t);t+=4;const o=I.bb(e,t);t+=4;const i=Lt._readString(e,t);t+=Lt._writeStringSize(i);const a=Lt._readString(e,t);return t+=Lt._writeStringSize(a),n.push(new Lt(r,i,o,a)),t}}class kt{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),r=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(r),r=this._getCurr(++t);continue}if(null===r){this._acceptPrev(n),n=this._getPrev(++e);continue}if(r.oldEnd<=n.newPosition){this._acceptCurr(r),r=this._getCurr(++t);continue}if(n.newEnd<=r.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(r.oldPosition<n.newPosition){const[e,t]=kt._splitCurr(r,n.newPosition-r.oldPosition);this._acceptCurr(e),r=t;continue}if(n.newPosition<r.oldPosition){const[e,t]=kt._splitPrev(n,r.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let o,i;if(r.oldEnd===n.newEnd)o=n,i=r,n=this._getPrev(++e),r=this._getCurr(++t);else if(r.oldEnd<n.newEnd){const[e,a]=kt._splitPrev(n,r.oldLength);o=e,i=r,n=a,r=this._getCurr(++t)}else{const[t,a]=kt._splitCurr(r,n.newLength);o=n,i=t,n=this._getPrev(++e),r=a}this._result[this._resultLen++]=new Lt(o.oldPosition,o.oldText,i.newPosition,i.newText),this._prevDeltaOffset+=o.newLength-o.oldLength,this._currDeltaOffset+=i.newLength-i.oldLength}const o=kt._merge(this._result);return kt._removeNoOps(o)}_acceptCurr(e){this._result[this._resultLen++]=kt._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=kt._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Lt(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Lt(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),r=e.newText.substr(t);return[new Lt(e.oldPosition,e.oldText,e.newPosition,n),new Lt(e.oldEnd,"",e.newPosition+t,r)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),r=e.oldText.substr(t);return[new Lt(e.oldPosition,n,e.newPosition,e.newText),new Lt(e.oldPosition+t,r,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,r=e[0];for(let o=1;o<e.length;o++){const i=e[o];r.oldEnd===i.oldPosition?r=new Lt(r.oldPosition,r.oldText+i.oldText,r.newPosition,r.newText+i.newText):(t[n++]=r,r=i)}return t[n++]=r,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let r=0;r<e.length;r++){const o=e[r];o.oldText!==o.newText&&(t[n++]=o)}return t}}var Pt=n(9403);function wt(e){return e.toString()}class Ot{static create(e,t){const n=e.getAlternativeVersionId(),r=zt(e);return new Ot(n,n,r,r,t,t,[])}constructor(e,t,n,r,o,i,a){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=r,this.beforeCursorState=o,this.afterCursorState=i,this.changes=a}append(e,t,n,r,o){var i,a;t.length>0&&(this.changes=(i=this.changes,a=t,null===i||0===i.length?a:new kt(i,a).compress())),this.afterEOL=n,this.afterVersionId=r,this.afterCursorState=o}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(I.Sw(e,t?t.length:0,n),n+=4,t)for(const r of t)I.Sw(e,r.selectionStartLineNumber,n),n+=4,I.Sw(e,r.selectionStartColumn,n),n+=4,I.Sw(e,r.positionLineNumber,n),n+=4,I.Sw(e,r.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const r=I.bb(e,t);t+=4;for(let o=0;o<r;o++){const r=I.bb(e,t);t+=4;const o=I.bb(e,t);t+=4;const i=I.bb(e,t);t+=4;const a=I.bb(e,t);t+=4,n.push(new h.L(r,o,i,a))}return t}serialize(){let e=10+Ot._writeSelectionsSize(this.beforeCursorState)+Ot._writeSelectionsSize(this.afterCursorState)+4;for(const r of this.changes)e+=r.writeSize();const t=new Uint8Array(e);let n=0;I.Sw(t,this.beforeVersionId,n),n+=4,I.Sw(t,this.afterVersionId,n),n+=4,I.Gs(t,this.beforeEOL,n),n+=1,I.Gs(t,this.afterEOL,n),n+=1,n=Ot._writeSelections(t,this.beforeCursorState,n),n=Ot._writeSelections(t,this.afterCursorState,n),I.Sw(t,this.changes.length,n),n+=4;for(const r of this.changes)n=r.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const r=I.bb(t,n);n+=4;const o=I.bb(t,n);n+=4;const i=I.pJ(t,n);n+=1;const a=I.pJ(t,n);n+=1;const s=[];n=Ot._readSelections(t,n,s);const l=[];n=Ot._readSelections(t,n,l);const c=I.bb(t,n);n+=4;const d=[];for(let u=0;u<c;u++)n=Lt.read(t,n,d);return new Ot(r,o,i,a,s,l,d)}}class Ft{get type(){return 0}get resource(){return d.r.isUri(this.model)?this.model:this.model.uri}constructor(e,t,n,r){this.label=e,this.code=t,this.model=n,this._data=Ot.create(n,r)}toString(){return(this._data instanceof Ot?this._data:Ot.deserialize(this._data)).changes.map((e=>e.toString())).join(", ")}matchesResource(e){return(d.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Ot}append(e,t,n,r,o){this._data instanceof Ot&&this._data.append(e,t,n,r,o)}close(){this._data instanceof Ot&&(this._data=this._data.serialize())}open(){this._data instanceof Ot||(this._data=Ot.deserialize(this._data))}undo(){if(d.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ot&&(this._data=this._data.serialize());const e=Ot.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(d.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Ot&&(this._data=this._data.serialize());const e=Ot.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof Ot&&(this._data=this._data.serialize()),this._data.byteLength+168}}class Wt{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,n){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=n.slice(0),this._editStackElementsMap=new Map;for(const r of this._editStackElementsArr){const e=wt(r.resource);this._editStackElementsMap.set(e,r)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=wt(e);return this._editStackElementsMap.has(t)}setModel(e){const t=wt(d.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=wt(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,r,o){const i=wt(e.uri);this._editStackElementsMap.get(i).append(e,t,n,r,o)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=wt(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,Pt.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function zt(e){return"\n"===e.getEOL()?0:1}function Bt(e){return!!e&&(e instanceof Ft||e instanceof Wt)}class Gt{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Bt(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Bt(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const n=this._undoRedoService.getLastElement(this._model.uri);if(Bt(n)&&n.canAppend(this._model))return n;const r=new Ft(Nt.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(r,t),r}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],zt(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n,r){const o=this._getOrCreateEditStackElement(e,r),i=this._model.applyEdits(t,!0),a=Gt._computeCursorState(n,i),s=i.map(((e,t)=>({index:t,textChange:e.textChange})));return s.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),o.append(this._model,s.map((e=>e.textChange)),zt(this._model),this._model.getAlternativeVersionId(),a),a}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return(0,l.dz)(n),null}}}var jt,Vt=n(6041);class Ut extends o.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}!function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(jt||(jt={}));class Ht{constructor(e,t,n,r,o,i){if(this.visibleColumn=e,this.column=t,this.className=n,this.horizontalLine=r,this.forWrappedLinesAfterColumn=o,this.forWrappedLinesBeforeOrAtColumn=i,-1!==e===(-1!==t))throw new Error}}class Kt{constructor(e,t){this.top=e,this.endColumn=t}}class qt extends Ut{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return function(e,t){let n=0,r=0;const o=e.length;for(;r<o;){const o=e.charCodeAt(r);if(32===o)n++;else{if(9!==o)break;n=n-n%t+t}r++}return r===o?-1:n}(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,n){this.assertNotDisposed();const r=this.textModel.getLineCount();if(e<1||e>r)throw new l.D7("Illegal value for lineNumber");const o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,i=Boolean(o&&o.offSide);let a=-2,s=-1,c=-2,d=-1;const u=e=>{if(-1!==a&&(-2===a||a>e-1)){a=-1,s=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){a=t,s=e;break}}}if(-2===c){c=-1,d=-1;for(let t=e;t<r;t++){const e=this._computeIndentLevel(t);if(e>=0){c=t,d=e;break}}}};let p=-2,f=-1,m=-2,_=-1;const h=e=>{if(-2===p){p=-1,f=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){p=t,f=e;break}}}if(-1!==m&&(-2===m||m<e-1)){m=-1,_=-1;for(let t=e;t<r;t++){const e=this._computeIndentLevel(t);if(e>=0){m=t,_=e;break}}}};let g=0,y=!0,v=0,b=!0,E=0,S=0;for(let l=0;y||b;l++){const o=e-l,a=e+l;l>1&&(o<1||o<t)&&(y=!1),l>1&&(a>r||a>n)&&(b=!1),l>5e4&&(y=!1,b=!1);let m=-1;if(y&&o>=1){const e=this._computeIndentLevel(o-1);e>=0?(c=o-1,d=e,m=Math.ceil(e/this.textModel.getOptions().indentSize)):(u(o),m=this._getIndentLevelForWhitespaceLine(i,s,d))}let T=-1;if(b&&a<=r){const e=this._computeIndentLevel(a-1);e>=0?(p=a-1,f=e,T=Math.ceil(e/this.textModel.getOptions().indentSize)):(h(a),T=this._getIndentLevelForWhitespaceLine(i,f,_))}if(0!==l){if(1===l){if(a<=r&&T>=0&&S+1===T){y=!1,g=a,v=a,E=T;continue}if(o>=1&&m>=0&&m-1===S){b=!1,g=o,v=o,E=m;continue}if(g=e,v=e,E=S,0===E)return{startLineNumber:g,endLineNumber:v,indent:E}}y&&(m>=E?g=o:y=!1),b&&(T>=E?v=a:b=!1)}else S=m}return{startLineNumber:g,endLineNumber:v,indent:E}}getLinesBracketGuides(e,t,n,r){const o=[];for(let c=e;c<=t;c++)o.push([]);const i=!0,a=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new _.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let s;if(n&&a.length>0){const r=(e<=n.lineNumber&&n.lineNumber<=t?a:this.textModel.bracketPairs.getBracketPairsInRange(_.Q.fromPositions(n)).toArray()).filter((e=>_.Q.strictContainsPosition(e.range,n)));s=(0,Vt.Uk)(r,(e=>i))?.range}const l=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,d=new Jt;for(const u of a){if(!u.closingBracketRange)continue;const n=s&&u.range.equalsRange(s);if(!n&&!r.includeInactive)continue;const i=d.getInlineClassName(u.nestingLevel,u.nestingLevelOfEqualBracketType,l)+(r.highlightActive&&n?" "+d.activeClassName:""),a=u.openingBracketRange.getStartPosition(),p=u.closingBracketRange.getStartPosition(),f=r.horizontalGuides===jt.Enabled||r.horizontalGuides===jt.EnabledForActive&&n;if(u.range.startLineNumber===u.range.endLineNumber){f&&o[u.range.startLineNumber-e].push(new Ht(-1,u.openingBracketRange.getEndPosition().column,i,new Kt(!1,p.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(p),_=this.getVisibleColumnFromPosition(u.openingBracketRange.getStartPosition()),h=Math.min(_,m,u.minVisibleColumnIndentation+1);let g=!1;c.HG(this.textModel.getLineContent(u.closingBracketRange.startLineNumber))<u.closingBracketRange.startColumn-1&&(g=!0);const y=Math.max(a.lineNumber,e),v=Math.min(p.lineNumber,t),b=g?1:0;for(let t=y;t<v+b;t++)o[t-e].push(new Ht(h,-1,i,null,t===a.lineNumber?a.column:-1,t===p.lineNumber?p.column:-1));f&&(a.lineNumber>=e&&_>h&&o[a.lineNumber-e].push(new Ht(h,-1,i,new Kt(!1,a.column),-1,-1)),p.lineNumber<=t&&m>h&&o[p.lineNumber-e].push(new Ht(h,-1,i,new Kt(!g,p.column),-1,-1)))}for(const c of o)c.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return o}getVisibleColumnFromPosition(e){return p.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const r=this.textModel.getOptions(),o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,i=Boolean(o&&o.offSide),a=new Array(t-e+1);let s=-2,l=-1,c=-2,d=-1;for(let u=e;u<=t;u++){const t=u-e,o=this._computeIndentLevel(u-1);if(o>=0)s=u-1,l=o,a[t]=Math.ceil(o/r.indentSize);else{if(-2===s){s=-1,l=-1;for(let e=u-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){s=e,l=t;break}}}if(-1!==c&&(-2===c||c<u-1)){c=-1,d=-1;for(let e=u;e<n;e++){const t=this._computeIndentLevel(e);if(t>=0){c=e,d=t;break}}}a[t]=this._getIndentLevelForWhitespaceLine(i,l,d)}}return a}_getIndentLevelForWhitespaceLine(e,t,n){const r=this.textModel.getOptions();return-1===t||-1===n?0:t<n?1+Math.floor(t/r.indentSize):t===n||e?Math.ceil(n/r.indentSize):1+Math.floor(n/r.indentSize)}}class Jt{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,n){return this.getInlineClassNameOfLevel(n?t:e)}getInlineClassNameOfLevel(e){return"bracket-indent-guide lvl-"+e%30}}class Xt{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function $t(e,t,n,r,o){let i;for(o.spacesDiff=0,o.looksLikeAlignment=!1,i=0;i<t&&i<r;i++){if(e.charCodeAt(i)!==n.charCodeAt(i))break}let a=0,s=0;for(let p=i;p<t;p++){32===e.charCodeAt(p)?a++:s++}let l=0,c=0;for(let p=i;p<r;p++){32===n.charCodeAt(p)?l++:c++}if(a>0&&s>0)return;if(l>0&&c>0)return;const d=Math.abs(s-c),u=Math.abs(a-l);if(0===d)return o.spacesDiff=u,void(u>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(o.looksLikeAlignment=!0));u%d!==0||(o.spacesDiff=u/d)}function Yt(e,t,n){const r=Math.min(e.getLineCount(),1e4);let o=0,i=0,a="",s=0;const l=[2,4,6,8,3,5,7],c=[0,0,0,0,0,0,0,0,0],d=new Xt;for(let f=1;f<=r;f++){const r=e.getLineLength(f),l=e.getLineContent(f),u=r<=65536;let p=!1,m=0,_=0,h=0;for(let t=0,n=r;t<n;t++){const n=u?l.charCodeAt(t):e.getLineCharCode(f,t);if(9===n)h++;else{if(32!==n){p=!0,m=t;break}_++}}if(!p)continue;if(h>0?o++:_>1&&i++,$t(a,s,l,m,d),d.looksLikeAlignment&&(!n||t!==d.spacesDiff))continue;const g=d.spacesDiff;g<=8&&c[g]++,a=l,s=m}let u=n;o!==i&&(u=o<i);let p=t;if(u){let e=u?0:.1*r;l.forEach((t=>{const n=c[t];n>e&&(e=n,p=t)})),4===p&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(p=2)}return{insertSpaces:u,tabSize:p}}function Qt(e){return(1&e.metadata)>>>0}function Zt(e,t){e.metadata=254&e.metadata|t}function en(e){return(2&e.metadata)>>>1===1}function tn(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function nn(e){return(4&e.metadata)>>>2===1}function rn(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function on(e){return(64&e.metadata)>>>6===1}function an(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function sn(e,t){e.metadata=231&e.metadata|t<<3}function ln(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class cn{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Zt(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,rn(this,!1),an(this,!1),sn(this,1),ln(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,tn(this,!1)}reset(e,t,n,r){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=r}setOptions(e){this.options=e;const t=this.options.className;rn(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),an(this,null!==this.options.glyphMarginClassName),sn(this,this.options.stickiness),ln(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const dn=new cn(null,0,0);dn.parent=dn,dn.left=dn,dn.right=dn,Zt(dn,0);class un{constructor(){this.root=dn,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,r,o,i){return this.root===dn?[]:function(e,t,n,r,o,i,a){let s=e.root,l=0,c=0,d=0,u=0;const p=[];let f=0;for(;s!==dn;)if(en(s))tn(s.left,!1),tn(s.right,!1),s===s.parent.right&&(l-=s.parent.delta),s=s.parent;else{if(!en(s.left)){if(c=l+s.maxEnd,c<t){tn(s,!0);continue}if(s.left!==dn){s=s.left;continue}}if(d=l+s.start,d>n)tn(s,!0);else{if(u=l+s.end,u>=t){s.setCachedOffsets(d,u,i);let e=!0;r&&s.ownerId&&s.ownerId!==r&&(e=!1),o&&nn(s)&&(e=!1),a&&!on(s)&&(e=!1),e&&(p[f++]=s)}tn(s,!0),s.right===dn||en(s.right)||(l+=s.delta,s=s.right)}}return tn(e.root,!1),p}(this,e,t,n,r,o,i)}search(e,t,n,r){return this.root===dn?[]:function(e,t,n,r,o){let i=e.root,a=0,s=0,l=0;const c=[];let d=0;for(;i!==dn;){if(en(i)){tn(i.left,!1),tn(i.right,!1),i===i.parent.right&&(a-=i.parent.delta),i=i.parent;continue}if(i.left!==dn&&!en(i.left)){i=i.left;continue}s=a+i.start,l=a+i.end,i.setCachedOffsets(s,l,r);let e=!0;t&&i.ownerId&&i.ownerId!==t&&(e=!1),n&&nn(i)&&(e=!1),o&&!on(i)&&(e=!1),e&&(c[d++]=i),tn(i,!0),i.right===dn||en(i.right)||(a+=i.delta,i=i.right)}return tn(e.root,!1),c}(this,e,t,n,r)}collectNodesFromOwner(e){return function(e,t){let n=e.root;const r=[];let o=0;for(;n!==dn;)en(n)?(tn(n.left,!1),tn(n.right,!1),n=n.parent):n.left===dn||en(n.left)?(n.ownerId===t&&(r[o++]=n),tn(n,!0),n.right===dn||en(n.right)||(n=n.right)):n=n.left;return tn(e.root,!1),r}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const n=[];let r=0;for(;t!==dn;)en(t)?(tn(t.left,!1),tn(t.right,!1),t=t.parent):t.left===dn||en(t.left)?t.right===dn||en(t.right)?(n[r++]=t,tn(t,!0)):t=t.right:t=t.left;return tn(e.root,!1),n}(this)}insert(e){mn(this,e),this._normalizeDeltaIfNecessary()}delete(e){_n(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let r=0;for(;e!==this.root;)e===e.parent.right&&(r+=e.parent.delta),e=e.parent;const o=n.start+r,i=n.end+r;n.setCachedOffsets(o,i,t)}acceptReplace(e,t,n,r){const o=function(e,t,n){let r=e.root,o=0,i=0,a=0,s=0;const l=[];let c=0;for(;r!==dn;)if(en(r))tn(r.left,!1),tn(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),r=r.parent;else{if(!en(r.left)){if(i=o+r.maxEnd,i<t){tn(r,!0);continue}if(r.left!==dn){r=r.left;continue}}a=o+r.start,a>n?tn(r,!0):(s=o+r.end,s>=t&&(r.setCachedOffsets(a,s,0),l[c++]=r),tn(r,!0),r.right===dn||en(r.right)||(o+=r.delta,r=r.right))}return tn(e.root,!1),l}(this,e,e+t);for(let i=0,a=o.length;i<a;i++){_n(this,o[i])}this._normalizeDeltaIfNecessary(),function(e,t,n,r){let o=e.root,i=0,a=0,s=0;const l=r-(n-t);for(;o!==dn;)if(en(o))tn(o.left,!1),tn(o.right,!1),o===o.parent.right&&(i-=o.parent.delta),bn(o),o=o.parent;else{if(!en(o.left)){if(a=i+o.maxEnd,a<t){tn(o,!0);continue}if(o.left!==dn){o=o.left;continue}}s=i+o.start,s>n?(o.start+=l,o.end+=l,o.delta+=l,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),tn(o,!0)):(tn(o,!0),o.right===dn||en(o.right)||(i+=o.delta,o=o.right))}tn(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let i=0,a=o.length;i<a;i++){const a=o[i];a.start=a.cachedAbsoluteStart,a.end=a.cachedAbsoluteEnd,fn(a,e,e+t,n,r),a.maxEnd=a.end,mn(this,a)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==dn;)t.left===dn||en(t.left)?t.right===dn||en(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,bn(t),tn(t,!0),tn(t.left,!1),tn(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;tn(e.root,!1)}(this))}}function pn(e,t,n,r){return e<n||!(e>n)&&(1!==r&&(2===r||t))}function fn(e,t,n,r,o){const i=function(e){return(24&e.metadata)>>>3}(e),a=0===i||2===i,s=1===i||2===i,l=n-t,c=r,d=Math.min(l,c),u=e.start;let p=!1;const f=e.end;let m=!1;t<=u&&f<=n&&function(e){return(32&e.metadata)>>>5===1}(e)&&(e.start=t,p=!0,e.end=t,m=!0);{const e=o?1:l>0?2:0;!p&&pn(u,a,t,e)&&(p=!0),!m&&pn(f,s,t,e)&&(m=!0)}if(d>0&&!o){const e=l>c?2:0;!p&&pn(u,a,t+d,e)&&(p=!0),!m&&pn(f,s,t+d,e)&&(m=!0)}{const r=o?1:0;!p&&pn(u,a,n,r)&&(e.start=t+c,p=!0),!m&&pn(f,s,n,r)&&(e.end=t+c,m=!0)}const _=c-l;p||(e.start=Math.max(0,u+_)),m||(e.end=Math.max(0,f+_)),e.start>e.end&&(e.end=e.start)}function mn(e,t){if(e.root===dn)return t.parent=dn,t.left=dn,t.right=dn,Zt(t,0),e.root=t,e.root;!function(e,t){let n=0,r=e.root;const o=t.start,i=t.end;for(;;){if(Sn(o,i,r.start+n,r.end+n)<0){if(r.left===dn){t.start-=n,t.end-=n,t.maxEnd-=n,r.left=t;break}r=r.left}else{if(r.right===dn){t.start-=n+r.delta,t.end-=n+r.delta,t.maxEnd-=n+r.delta,r.right=t;break}n+=r.delta,r=r.right}}t.parent=r,t.left=dn,t.right=dn,Zt(t,1)}(e,t),En(t.parent);let n=t;for(;n!==e.root&&1===Qt(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Qt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,gn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),yn(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Qt(t)?(Zt(n.parent,0),Zt(t,0),Zt(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,yn(e,n)),Zt(n.parent,0),Zt(n.parent.parent,1),gn(e,n.parent.parent))}return Zt(e.root,0),t}function _n(e,t){let n,r;if(t.left===dn?(n=t.right,r=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===dn?(n=t.left,r=t):(r=function(e){for(;e.left!==dn;)e=e.left;return e}(t.right),n=r.right,n.start+=r.delta,n.end+=r.delta,n.delta+=r.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),r.start+=t.delta,r.end+=t.delta,r.delta=t.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0)),r===e.root)return e.root=n,Zt(n,0),t.detach(),hn(),bn(n),void(e.root.parent=dn);const o=1===Qt(r);if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?n.parent=r.parent:(r.parent===t?n.parent=r:n.parent=r.parent,r.left=t.left,r.right=t.right,r.parent=t.parent,Zt(r,Qt(t)),t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==dn&&(r.left.parent=r),r.right!==dn&&(r.right.parent=r)),t.detach(),o)return En(n.parent),r!==t&&(En(r),En(r.parent)),void hn();let i;for(En(n),En(n.parent),r!==t&&(En(r),En(r.parent));n!==e.root&&0===Qt(n);)n===n.parent.left?(i=n.parent.right,1===Qt(i)&&(Zt(i,0),Zt(n.parent,1),gn(e,n.parent),i=n.parent.right),0===Qt(i.left)&&0===Qt(i.right)?(Zt(i,1),n=n.parent):(0===Qt(i.right)&&(Zt(i.left,0),Zt(i,1),yn(e,i),i=n.parent.right),Zt(i,Qt(n.parent)),Zt(n.parent,0),Zt(i.right,0),gn(e,n.parent),n=e.root)):(i=n.parent.left,1===Qt(i)&&(Zt(i,0),Zt(n.parent,1),yn(e,n.parent),i=n.parent.left),0===Qt(i.left)&&0===Qt(i.right)?(Zt(i,1),n=n.parent):(0===Qt(i.left)&&(Zt(i.right,0),Zt(i,1),gn(e,i),i=n.parent.left),Zt(i,Qt(n.parent)),Zt(n.parent,0),Zt(i.left,0),yn(e,n.parent),n=e.root));Zt(n,0),hn()}function hn(){dn.parent=dn,dn.delta=0,dn.start=0,dn.end=0}function gn(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==dn&&(n.left.parent=t),n.parent=t.parent,t.parent===dn?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,bn(t),bn(n)}function yn(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==dn&&(n.right.parent=t),n.parent=t.parent,t.parent===dn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,bn(t),bn(n)}function vn(e){let t=e.end;if(e.left!==dn){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==dn){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function bn(e){e.maxEnd=vn(e)}function En(e){for(;e!==dn;){const t=vn(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Sn(e,t,n,r){return e===n?t-r:e-n}class Tn{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==xn)return An(this.right);let e=this;for(;e.parent!==xn&&e.parent.left!==e;)e=e.parent;return e.parent===xn?xn:e.parent}prev(){if(this.left!==xn)return In(this.left);let e=this;for(;e.parent!==xn&&e.parent.right!==e;)e=e.parent;return e.parent===xn?xn:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const xn=new Tn(null,0);function An(e){for(;e.left!==xn;)e=e.left;return e}function In(e){for(;e.right!==xn;)e=e.right;return e}function Rn(e){return e===xn?0:e.size_left+e.piece.length+Rn(e.right)}function Cn(e){return e===xn?0:e.lf_left+e.piece.lineFeedCnt+Cn(e.right)}function Dn(){xn.parent=xn}function Nn(e,t){const n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==xn&&(n.left.parent=t),n.parent=t.parent,t.parent===xn?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function Mn(e,t){const n=t.left;t.left=n.right,n.right!==xn&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===xn?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Ln(e,t){let n,r;if(t.left===xn?(r=t,n=r.right):t.right===xn?(r=t,n=r.left):(r=An(t.right),n=r.right),r===e.root)return e.root=n,n.color=0,t.detach(),Dn(),void(e.root.parent=xn);const o=1===r.color;if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?(n.parent=r.parent,wn(e,n)):(r.parent===t?n.parent=r:n.parent=r.parent,wn(e,n),r.left=t.left,r.right=t.right,r.parent=t.parent,r.color=t.color,t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==xn&&(r.left.parent=r),r.right!==xn&&(r.right.parent=r),r.size_left=t.size_left,r.lf_left=t.lf_left,wn(e,r)),t.detach(),n.parent.left===n){const t=Rn(n),r=Cn(n);if(t!==n.parent.size_left||r!==n.parent.lf_left){const o=t-n.parent.size_left,i=r-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=r,Pn(e,n.parent,o,i)}}if(wn(e,n.parent),o)return void Dn();let i;for(;n!==e.root&&0===n.color;)n===n.parent.left?(i=n.parent.right,1===i.color&&(i.color=0,n.parent.color=1,Nn(e,n.parent),i=n.parent.right),0===i.left.color&&0===i.right.color?(i.color=1,n=n.parent):(0===i.right.color&&(i.left.color=0,i.color=1,Mn(e,i),i=n.parent.right),i.color=n.parent.color,n.parent.color=0,i.right.color=0,Nn(e,n.parent),n=e.root)):(i=n.parent.left,1===i.color&&(i.color=0,n.parent.color=1,Mn(e,n.parent),i=n.parent.left),0===i.left.color&&0===i.right.color?(i.color=1,n=n.parent):(0===i.left.color&&(i.right.color=0,i.color=1,Nn(e,i),i=n.parent.left),i.color=n.parent.color,n.parent.color=0,i.left.color=0,Mn(e,n.parent),n=e.root));n.color=0,Dn()}function kn(e,t){for(wn(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Nn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Mn(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Mn(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Nn(e,t.parent.parent))}e.root.color=0}function Pn(e,t,n,r){for(;t!==e.root&&t!==xn;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}function wn(e,t){let n=0,r=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(n=Rn((t=t.parent).left)-t.size_left,r=Cn(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=r;t!==e.root&&(0!==n||0!==r);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}}xn.parent=xn,xn.left=xn,xn.right=xn,xn.color=0;var On=n(7729);const Fn=65535;function Wn(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class zn{constructor(e,t,n,r,o){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=r,this.isBasicASCII=o}}function Bn(e,t=!0){const n=[0];let r=1;for(let o=0,i=e.length;o<i;o++){const t=e.charCodeAt(o);13===t?o+1<i&&10===e.charCodeAt(o+1)?(n[r++]=o+2,o++):n[r++]=o+1:10===t&&(n[r++]=o+1)}return t?Wn(n):n}class Gn{constructor(e,t,n,r,o){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=r,this.length=o}}class jn{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Vn{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==xn&&e.iterate(e.root,(e=>(e!==xn&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Un{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const n=this._cache;for(let r=0;r<n.length;r++){const o=n[r];(null===o.node.parent||o.nodeStartOffset>=e)&&(n[r]=null,t=!0)}if(t){const e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class Hn{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new jn("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=xn,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let r=null;for(let o=0,i=e.length;o<i;o++)if(e[o].buffer.length>0){e[o].lineStarts||(e[o].lineStarts=Bn(e[o].buffer));const t=new Gn(o+1,{line:0,column:0},{line:e[o].lineStarts.length-1,column:e[o].buffer.length-e[o].lineStarts[e[o].lineStarts.length-1]},e[o].lineStarts.length-1,e[o].buffer.length);this._buffers.push(e[o]),r=this.rbInsertRight(r,t)}this._searchCache=new Un(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=Fn,n=t-Math.floor(21845),r=2*n;let o="",i=0;const a=[];if(this.iterate(this.root,(t=>{const s=this.getNodeContent(t),l=s.length;if(i<=n||i+l<r)return o+=s,i+=l,!0;const c=o.replace(/\r\n|\r|\n/g,e);return a.push(new jn(c,Bn(c))),o=s,i=l,!0})),i>0){const t=o.replace(/\r\n|\r|\n/g,e);a.push(new jn(t,Bn(t)))}this.create(a,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Vn(this,e)}getOffsetAt(e,t){let n=0,r=this.root;for(;r!==xn;)if(r.left!==xn&&r.lf_left+1>=e)r=r.left;else{if(r.lf_left+r.piece.lineFeedCnt+1>=e){n+=r.size_left;return n+(this.getAccumulatedValue(r,e-r.lf_left-2)+t-1)}e-=r.lf_left+r.piece.lineFeedCnt,n+=r.size_left+r.piece.length,r=r.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0;const r=e;for(;t!==xn;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const o=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+o.index,0===o.index){const e=r-this.getOffsetAt(n+1,1);return new m.y(n+1,e+1)}return new m.y(n+1,o.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===xn){const t=r-e-this.getOffsetAt(n+1,1);return new m.y(n+1,t+1)}t=t.right}return new m.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const n=this.nodeAt2(e.startLineNumber,e.startColumn),r=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(n,r);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o}getValueInRange2(e,t){if(e.node===t.node){const n=e.node,r=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r.substring(o+e.remainder,o+t.remainder)}let n=e.node;const r=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);let i=r.substring(o+e.remainder,o+n.piece.length);for(n=n.next();n!==xn;){const e=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){i+=e.substring(r,r+t.remainder);break}i+=e.substr(r,n.piece.length),n=n.next()}return i}getLinesContent(){const e=[];let t=0,n="",r=!1;return this.iterate(this.root,(o=>{if(o===xn)return!0;const i=o.piece;let a=i.length;if(0===a)return!0;const s=this._buffers[i.bufferIndex].buffer,l=this._buffers[i.bufferIndex].lineStarts,c=i.start.line,d=i.end.line;let u=l[c]+i.start.column;if(r&&(10===s.charCodeAt(u)&&(u++,a--),e[t++]=n,n="",r=!1,0===a))return!0;if(c===d)return this._EOLNormalized||13!==s.charCodeAt(u+a-1)?n+=s.substr(u,a):(r=!0,n+=s.substr(u,a-1)),!0;n+=this._EOLNormalized?s.substring(u,Math.max(u,l[c+1]-this._EOLLength)):s.substring(u,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let r=c+1;r<d;r++)n=this._EOLNormalized?s.substring(l[r],l[r+1]-this._EOLLength):s.substring(l[r],l[r+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==s.charCodeAt(l[d]+i.end.column-1)?n=s.substr(l[d],i.end.column):(r=!0,0===i.end.column?t--:n=s.substr(l[d],i.end.column-1)),!0})),r&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){const t=e.node.next();if(!t)return 0;const n=this._buffers[t.piece.bufferIndex],r=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(r)}{const t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){const n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){const t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,r,o,i,a,s,l,c,d){const u=this._buffers[e.piece.bufferIndex],p=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),f=this.offsetInBuffer(e.piece.bufferIndex,o),m=this.offsetInBuffer(e.piece.bufferIndex,i);let h;const g={line:0,column:0};let y,v;t._wordSeparators?(y=u.buffer.substring(f,m),v=e=>e+f,t.reset(0)):(y=u.buffer,v=e=>e,t.reset(f));do{if(h=t.next(y),h){if(v(h.index)>=m)return c;this.positionInBuffer(e,v(h.index)-p,g);const t=this.getLineFeedCnt(e.piece.bufferIndex,o,g),i=g.line===o.line?g.column-o.column+r:g.column+1,a=i+h[0].length;if(d[c++]=(0,On.dr)(new _.Q(n+t,i,n+t,a),h,s),v(h.index)+h[0].length>=m)return c;if(c>=l)return c}}while(h);return c}findMatchesLineByLine(e,t,n,r){const o=[];let i=0;const a=new On.W5(t.wordSeparators,t.regex);let s=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===s)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(s.node,s.remainder);const d=this.positionInBuffer(l.node,l.remainder);if(s.node===l.node)return this.findMatchesInNode(s.node,a,e.startLineNumber,e.startColumn,c,d,t,n,r,i,o),o;let u=e.startLineNumber,p=s.node;for(;p!==l.node;){const l=this.getLineFeedCnt(p.piece.bufferIndex,c,p.piece.end);if(l>=1){const s=this._buffers[p.piece.bufferIndex].lineStarts,d=this.offsetInBuffer(p.piece.bufferIndex,p.piece.start),f=s[c.line+l],m=u===e.startLineNumber?e.startColumn:1;if(i=this.findMatchesInNode(p,a,u,m,c,this.positionInBuffer(p,f-d),t,n,r,i,o),i>=r)return o;u+=l}const d=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const s=this.getLineContent(u).substring(d,e.endColumn-1);return i=this._findMatchesInLine(t,a,s,e.endLineNumber,d,i,o,n,r),o}if(i=this._findMatchesInLine(t,a,this.getLineContent(u).substr(d),u,d,i,o,n,r),i>=r)return o;u++,s=this.nodeAt2(u,1),p=s.node,c=this.positionInBuffer(s.node,s.remainder)}if(u===e.endLineNumber){const s=u===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(u).substring(s,e.endColumn-1);return i=this._findMatchesInLine(t,a,l,e.endLineNumber,s,i,o,n,r),o}const f=u===e.startLineNumber?e.startColumn:1;return i=this.findMatchesInNode(l.node,a,u,f,c,d,t,n,r,i,o),o}_findMatchesInLine(e,t,n,r,o,i,a,s,l){const c=e.wordSeparators;if(!s&&e.simpleSearch){const t=e.simpleSearch,s=t.length,d=n.length;let u=-s;for(;-1!==(u=n.indexOf(t,u+s));)if((!c||(0,On.wC)(c,n,d,u,s))&&(a[i++]=new _e.Dg(new _.Q(r,u+1+o,r,u+1+s+o),null),i>=l))return i;return i}let d;t.reset(0);do{if(d=t.next(n),d&&(a[i++]=(0,On.dr)(new _.Q(r,d.index+1+o,r,d.index+1+d[0].length+o),d,s),i>=l))return i}while(d);return i}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==xn){const{node:n,remainder:r,nodeStartOffset:o}=this.nodeAt(e),i=n.piece,a=i.bufferIndex,s=this.positionInBuffer(n,r);if(0===n.piece.bufferIndex&&i.end.line===this._lastChangeBufferPos.line&&i.end.column===this._lastChangeBufferPos.column&&o+i.length===e&&t.length<Fn)return this.appendToNode(n,t),void this.computeBufferMetadata();if(o===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(o+n.piece.length>e){const e=[];let o=new Gn(i.bufferIndex,s,i.end,this.getLineFeedCnt(i.bufferIndex,s,i.end),this.offsetInBuffer(a,i.end)-this.offsetInBuffer(a,s));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,r)){const e={line:o.start.line+1,column:0};o=new Gn(o.bufferIndex,e,o.end,this.getLineFeedCnt(o.bufferIndex,e,o.end),o.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,r-1)){const o=this.positionInBuffer(n,r-1);this.deleteNodeTail(n,o),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,s)}else this.deleteNodeTail(n,s);const l=this.createNewPieces(t);o.length>0&&this.rbInsertRight(n,o);let c=n;for(let t=0;t<l.length;t++)c=this.rbInsertRight(c,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{const e=this.createNewPieces(t);let n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===xn)return;const n=this.nodeAt(e),r=this.nodeAt(e+t),o=n.node,i=r.node;if(o===i){const i=this.positionInBuffer(o,n.remainder),a=this.positionInBuffer(o,r.remainder);if(n.nodeStartOffset===e){if(t===o.piece.length){const e=o.next();return Ln(this,o),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(o,a),this._searchCache.validate(e),this.validateCRLFWithPrevNode(o),void this.computeBufferMetadata()}return n.nodeStartOffset+o.piece.length===e+t?(this.deleteNodeTail(o,i),this.validateCRLFWithNextNode(o),void this.computeBufferMetadata()):(this.shrinkNode(o,i,a),void this.computeBufferMetadata())}const a=[],s=this.positionInBuffer(o,n.remainder);this.deleteNodeTail(o,s),this._searchCache.validate(e),0===o.piece.length&&a.push(o);const l=this.positionInBuffer(i,r.remainder);this.deleteNodeHead(i,l),0===i.piece.length&&a.push(i);for(let d=o.next();d!==xn&&d!==i;d=d.next())a.push(d);const c=0===o.piece.length?o.prev():o;this.deleteNodes(a),this.validateCRLFWithNextNode(c),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){const n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){const r=t.piece,o={line:r.start.line+1,column:0},i=new Gn(r.bufferIndex,o,r.end,this.getLineFeedCnt(r.bufferIndex,o,r.end),r.length-1);t.piece=i,e+="\n",Pn(this,t,-1,-1),0===t.piece.length&&n.push(t)}const r=this.createNewPieces(e);let o=this.rbInsertLeft(t,r[r.length-1]);for(let i=r.length-2;i>=0;i--)o=this.rbInsertLeft(o,r[i]);this.validateCRLFWithPrevNode(o),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const n=this.createNewPieces(e),r=this.rbInsertRight(t,n[0]);let o=r;for(let i=1;i<n.length;i++)o=this.rbInsertRight(o,n[i]);this.validateCRLFWithPrevNode(r)}positionInBuffer(e,t,n){const r=e.piece,o=e.piece.bufferIndex,i=this._buffers[o].lineStarts,a=i[r.start.line]+r.start.column+t;let s=r.start.line,l=r.end.line,c=0,d=0,u=0;for(;s<=l&&(c=s+(l-s)/2|0,u=i[c],c!==l);)if(d=i[c+1],a<u)l=c-1;else{if(!(a>=d))break;s=c+1}return n?(n.line=c,n.column=a-u,null):{line:c,column:a-u}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;const r=this._buffers[e].lineStarts;if(n.line===r.length-1)return n.line-t.line;const o=r[n.line+1],i=r[n.line]+n.column;if(o>i+1)return n.line-t.line;const a=i-1;return 13===this._buffers[e].buffer.charCodeAt(a)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Ln(this,e[t])}createNewPieces(e){if(e.length>Fn){const t=[];for(;e.length>Fn;){const n=e.charCodeAt(65534);let r;13===n||n>=55296&&n<=56319?(r=e.substring(0,65534),e=e.substring(65534)):(r=e.substring(0,Fn),e=e.substring(Fn));const o=Bn(r);t.push(new Gn(this._buffers.length,{line:0,column:0},{line:o.length-1,column:r.length-o[o.length-1]},o.length-1,r.length)),this._buffers.push(new jn(r,o))}const n=Bn(e);return t.push(new Gn(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new jn(e,n)),t}let t=this._buffers[0].buffer.length;const n=Bn(e,!1);let r=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},r=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const o=this._buffers[0].buffer.length,i=this._buffers[0].lineStarts.length-1,a={line:i,column:o-this._buffers[0].lineStarts[i]},s=new Gn(0,r,a,this.getLineFeedCnt(0,r,a),o-t);return this._lastChangeBufferPos=a,[s]}getLineRawContent(e,t=0){let n=this.root,r="";const o=this._searchCache.get2(e);if(o){n=o.node;const i=this.getAccumulatedValue(n,e-o.nodeStartLineNumber-1),a=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(o.nodeStartLineNumber+n.piece.lineFeedCnt!==e){const r=this.getAccumulatedValue(n,e-o.nodeStartLineNumber);return a.substring(s+i,s+r-t)}r=a.substring(s+i,s+n.piece.length)}else{let o=0;const i=e;for(;n!==xn;)if(n.left!==xn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const r=this.getAccumulatedValue(n,e-n.lf_left-2),a=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return o+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:o,nodeStartLineNumber:i-(e-1-n.lf_left)}),s.substring(l+r,l+a-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(n,e-n.lf_left-2),o=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r=o.substring(i+t,i+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,o+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==xn;){const e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){const o=this.getAccumulatedValue(n,0),i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=e.substring(i,i+o-t),r}{const t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r+=e.substr(t,n.piece.length)}n=n.next()}return r}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==xn;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){const n=e.piece,r=this.positionInBuffer(e,t),o=r.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,r);if(t!==o)return{index:t,remainder:0}}return{index:o,remainder:r.column}}getAccumulatedValue(e,t){if(t<0)return 0;const n=e.piece,r=this._buffers[n.bufferIndex].lineStarts,o=n.start.line+t+1;return o>n.end.line?r[n.end.line]+n.end.column-r[n.start.line]-n.start.column:r[o]-r[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,r=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.end),i=t,a=this.offsetInBuffer(n.bufferIndex,i),s=this.getLineFeedCnt(n.bufferIndex,n.start,i),l=s-r,c=a-o,d=n.length+c;e.piece=new Gn(n.bufferIndex,n.start,i,s,d),Pn(this,e,c,l)}deleteNodeHead(e,t){const n=e.piece,r=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.start),i=t,a=this.getLineFeedCnt(n.bufferIndex,i,n.end),s=a-r,l=o-this.offsetInBuffer(n.bufferIndex,i),c=n.length+l;e.piece=new Gn(n.bufferIndex,i,n.end,a,c),Pn(this,e,l,s)}shrinkNode(e,t,n){const r=e.piece,o=r.start,i=r.end,a=r.length,s=r.lineFeedCnt,l=t,c=this.getLineFeedCnt(r.bufferIndex,r.start,l),d=this.offsetInBuffer(r.bufferIndex,t)-this.offsetInBuffer(r.bufferIndex,o);e.piece=new Gn(r.bufferIndex,r.start,l,c,d),Pn(this,e,d-a,c-s);const u=new Gn(r.bufferIndex,n,i,this.getLineFeedCnt(r.bufferIndex,n,i),this.offsetInBuffer(r.bufferIndex,i)-this.offsetInBuffer(r.bufferIndex,n)),p=this.rbInsertRight(e,u);this.validateCRLFWithPrevNode(p)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),r=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const o=Bn(t,!1);for(let u=0;u<o.length;u++)o[u]+=r;if(n){const e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:r-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(o.slice(1));const i=this._buffers[0].lineStarts.length-1,a={line:i,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[i]},s=e.piece.length+t.length,l=e.piece.lineFeedCnt,c=this.getLineFeedCnt(0,e.piece.start,a),d=c-l;e.piece=new Gn(e.piece.bufferIndex,e.piece.start,a,c,s),this._lastChangeBufferPos=a,Pn(this,e,t.length,d)}nodeAt(e){let t=this.root;const n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let r=0;for(;t!==xn;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){r+=t.size_left;const n={node:t,remainder:e-t.size_left,nodeStartOffset:r};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,r+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,r=0;for(;n!==xn;)if(n.left!==xn&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){const o=this.getAccumulatedValue(n,e-n.lf_left-2),i=this.getAccumulatedValue(n,e-n.lf_left-1);return r+=n.size_left,{node:n,remainder:Math.min(o+t-1,i),nodeStartOffset:r}}if(n.lf_left+n.piece.lineFeedCnt===e-1){const o=this.getAccumulatedValue(n,e-n.lf_left-2);if(o+t-1<=n.piece.length)return{node:n,remainder:o+t-1,nodeStartOffset:r};t-=n.piece.length-o;break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==xn;){if(n.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(n,0),r=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:r}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const n=this._buffers[e.piece.bufferIndex],r=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(r)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===xn||0===e.piece.lineFeedCnt)return!1;const t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,r=t.start.line,o=n[r]+t.start.column;if(r===n.length-1)return!1;return!(n[r+1]>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==xn&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const n=[],r=this._buffers[e.piece.bufferIndex].lineStarts;let o;o=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const i=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new Gn(e.piece.bufferIndex,e.piece.start,o,a,i),Pn(this,e,-1,-1),0===e.piece.length&&n.push(e);const s={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,s,t.piece.end);t.piece=new Gn(t.piece.bufferIndex,s,t.piece.end,c,l),Pn(this,t,-1,-1),0===t.piece.length&&n.push(t);const d=this.createNewPieces("\r\n");this.rbInsertRight(e,d[0]);for(let u=0;u<n.length;u++)Ln(this,n[u])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Ln(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},r=e.length-1,o=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new Gn(e.bufferIndex,t,e.end,o,r),Pn(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===xn)return t(xn);const n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===xn)return"";const t=this._buffers[e.piece.bufferIndex],n=e.piece,r=this.offsetInBuffer(n.bufferIndex,n.start),o=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(r,o)}getPieceContent(e){const t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),r=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,r)}rbInsertRight(e,t){const n=new Tn(t,1);n.left=xn,n.right=xn,n.parent=xn,n.size_left=0,n.lf_left=0;if(this.root===xn)this.root=n,n.color=0;else if(e.right===xn)e.right=n,n.parent=e;else{const t=An(e.right);t.left=n,n.parent=t}return kn(this,n),n}rbInsertLeft(e,t){const n=new Tn(t,1);if(n.left=xn,n.right=xn,n.parent=xn,n.size_left=0,n.lf_left=0,this.root===xn)this.root=n,n.color=0;else if(e.left===xn)e.left=n,n.parent=e;else{const t=In(e.left);t.right=n,n.parent=t}return kn(this,n),n}}class Kn extends o.jG{constructor(e,t,n,o,i,a,s){super(),this._onDidChangeContent=this._register(new r.vl),this._BOM=t,this._mightContainNonBasicASCII=!a,this._mightContainRTL=o,this._mightContainUnusualLineTerminators=i,this._pieceTree=new Hn(e,n,s)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const n=e+t,r=this.getPositionAt(e),o=this.getPositionAt(n);return new _.Q(r.lineNumber,r.column,o.lineNumber,o.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const n=this.getOffsetAt(e.startLineNumber,e.startColumn),r=this.getOffsetAt(e.endLineNumber,e.endColumn);let o=0;const i=this._getEndOfLine(t),a=this.getEOL();if(i.length!==a.length){o=(i.length-a.length)*(e.endLineNumber-e.startLineNumber)}return r-n+o}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const r=e.startLineNumber,o=e.endLineNumber;for(let t=r;t<=o;t++){const i=this.getLineContent(t),a=t===r?e.startColumn-1:0,s=t===o?e.endColumn-1:i.length;for(let e=a;e<s;e++)c.pc(i.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(o-r),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=c.HG(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=c.lT(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let r=this._mightContainRTL,o=this._mightContainUnusualLineTerminators,i=this._mightContainNonBasicASCII,a=!0,s=[];for(let h=0;h<e.length;h++){const t=e[h];a&&t._isTracked&&(a=!1);const n=t.range;if(t.text){let e=!0;i||(e=!c.aC(t.text),i=e),!r&&e&&(r=c.E_(t.text)),!o&&e&&(o=c.$X(t.text))}let l="",d=0,p=0,f=0;if(t.text){let e;[d,p,f,e]=(0,u.W)(t.text);const n=this.getEOL();l=0===e||e===("\r\n"===n?2:1)?t.text:t.text.replace(/\r\n|\r|\n/g,n)}s[h]={sortIndex:h,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:d,firstLineLength:p,lastLineLength:f,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}s.sort(Kn._sortOpsAscending);let l=!1;for(let c=0,u=s.length-1;c<u;c++){const e=s[c].range.getEndPosition(),t=s[c+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}a&&(s=this._reduceOperations(s));const d=n||t?Kn._getInverseEditRanges(s):[],p=[];if(t)for(let u=0;u<s.length;u++){const e=s[u],t=d[u];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let r="";n===t.startLineNumber&&(r=this.getLineContent(e.range.startLineNumber),-1!==c.HG(r))||p.push({lineNumber:n,oldContent:r})}}let f=null;if(n){let e=0;f=[];for(let t=0;t<s.length;t++){const n=s[t],r=d[t],o=this.getValueInRange(n.range),i=n.rangeOffset+e;e+=n.text.length-o.length,f[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:r,text:o,textChange:new Lt(n.rangeOffset,o,i,n.text)}}l||f.sort(((e,t)=>e.sortIndex-t.sortIndex))}this._mightContainRTL=r,this._mightContainUnusualLineTerminators=o,this._mightContainNonBasicASCII=i;const m=this._doApplyEdits(s);let _=null;if(t&&p.length>0){p.sort(((e,t)=>t.lineNumber-e.lineNumber)),_=[];for(let e=0,t=p.length;e<t;e++){const t=p[e].lineNumber;if(e>0&&p[e-1].lineNumber===t)continue;const n=p[e].oldContent,r=this.getLineContent(t);0!==r.length&&r!==n&&-1===c.HG(r)&&_.push(t)}}return this._onDidChangeContent.fire(),new _e.F4(f,m,_)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,r=e[e.length-1].range,o=new _.Q(n.startLineNumber,n.startColumn,r.endLineNumber,r.endColumn);let i=n.startLineNumber,a=n.startColumn;const s=[];for(let u=0,f=e.length;u<f;u++){const n=e[u],r=n.range;t=t||n.forceMoveMarkers,s.push(this.getValueInRange(new _.Q(i,a,r.startLineNumber,r.startColumn))),n.text.length>0&&s.push(n.text),i=r.endLineNumber,a=r.endColumn}const l=s.join(""),[c,d,p]=(0,u.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),text:l,eolCount:c,firstLineLength:d,lastLineLength:p,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Kn._sortOpsDescending);const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=r.range.startLineNumber,i=r.range.startColumn,a=r.range.endLineNumber,s=r.range.endColumn;if(o===a&&i===s&&0===r.text.length)continue;r.text?(this._pieceTree.delete(r.rangeOffset,r.rangeLength),this._pieceTree.insert(r.rangeOffset,r.text,!0)):this._pieceTree.delete(r.rangeOffset,r.rangeLength);const l=new _.Q(o,i,a,s);t.push({range:l,rangeLength:r.rangeLength,text:r.text,rangeOffset:r.rangeOffset,forceMoveMarkers:r.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,r){return this._pieceTree.findMatchesLineByLine(e,t,n,r)}static _getInverseEditRanges(e){const t=[];let n=0,r=0,o=null;for(let i=0,a=e.length;i<a;i++){const a=e[i];let s,l,c;if(o?o.range.endLineNumber===a.range.startLineNumber?(s=n,l=r+(a.range.startColumn-o.range.endColumn)):(s=n+(a.range.startLineNumber-o.range.endLineNumber),l=a.range.startColumn):(s=a.range.startLineNumber,l=a.range.startColumn),a.text.length>0){const e=a.eolCount+1;c=1===e?new _.Q(s,l,s,l+a.firstLineLength):new _.Q(s,l,s+e-1,a.lastLineLength+1)}else c=new _.Q(s,l,s,l);n=c.endLineNumber,r=c.endColumn,t.push(c),o=a}return t}static _sortOpsAscending(e,t){const n=_.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){const n=_.Q.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class qn{constructor(e,t,n,r,o,i,a,s,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=r,this._crlf=o,this._containsRTL=i,this._containsUnusualLineTerminators=a,this._isBasicASCII=s,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let o=0,i=n.length;o<i;o++){const e=n[o].buffer.replace(/\r\n|\r|\n/g,t),r=Bn(e);n[o]=new jn(e,r)}const r=new Kn(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:r,disposable:r}}}class Jn{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&c.LU(e)&&(this.BOM=c.r_,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,r=0,o=0,i=0,a=!0;for(let l=0,c=t.length;l<c;l++){const s=t.charCodeAt(l);13===s?l+1<c&&10===t.charCodeAt(l+1)?(i++,e[n++]=l+2,l++):(r++,e[n++]=l+1):10===s?(o++,e[n++]=l+1):a&&9!==s&&(s<32||s>126)&&(a=!1)}const s=new zn(Wn(e),r,o,i,a);return e.length=0,s}(this._tmpLineStarts,e);this.chunks.push(new jn(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=c.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=c.$X(e)))}finish(e=!0){return this._finish(),new qn(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Bn(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Xn=n(6571),$n=n(2083),Yn=n(1940),Qn=n(8381),Zn=n(4444);const er=new class{clone(){return this}equals(e){return this===e}};class tr{constructor(e){this._default=e,this._store=[]}get(e){return e<this._store.length?this._store[e]:this._default}set(e,t){for(;e>=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,n){if(e>=this._store.length)return;if(0===t)return void this.insert(e,n);if(0===n)return void this.delete(e,t);const r=this._store.slice(0,e),o=this._store.slice(e+t),i=function(e,t){const n=[];for(let r=0;r<e;r++)n[r]=t;return n}(n,this._default);this._store=r.concat(i,o)}delete(e,t){0===t||e>=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const n=[];for(let r=0;r<t;r++)n[r]=this._default;this._store=(0,a.nK)(this._store,e,n)}}class nr{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(e,t){this._startLineNumber=e,this._tokens=t}getLineTokens(e){return this._tokens[e-this._startLineNumber]}appendLineTokens(e){this._tokens.push(e)}}class rr{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){const n=this._tokens[this._tokens.length-1];if(n.endLineNumber+1===e)return void n.appendLineTokens(t)}this._tokens.push(new nr(e,[t]))}finalize(){return this._tokens}}class or{static{this.defaultTokenMetadata=33587200}static createEmpty(e,t){const n=or.defaultTokenMetadata,r=new Uint32Array(2);return r[0]=e.length,r[1]=n,new or(r,e,t)}static createFromTextAndMetadata(e,t){let n=0,r="";const o=new Array;for(const{text:i,metadata:a}of e)o.push(n+i.length,a),n+=i.length,r+=i;return new or(new Uint32Array(o),r,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=n}equals(e){return e instanceof or&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const r=t<<1,o=r+(n<<1);for(let i=r;i<o;i++)if(this._tokens[i]!==e._tokens[i])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],n=Qe.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return Qe.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return Qe.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return Qe.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return Qe.x.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return Qe.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return or.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new ir(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let r=0;r<n;r++)e[r<<1]=e[r+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,r=(e.length>>>1)-1;for(;n<r;){const o=n+Math.floor((r-n)/2),i=e[o<<1];if(i===t)return o+1;i<t?n=o+1:i>t&&(r=o)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,r="";const o=new Array;let i=0;for(;;){const a=t<this._tokensCount?this._tokens[t<<1]:-1,s=n<e.length?e[n]:null;if(-1!==a&&(null===s||a<=s.offset)){r+=this._text.substring(i,a);const e=this._tokens[1+(t<<1)];o.push(r.length,e),t++,i=a}else{if(!s)break;if(s.offset>i){r+=this._text.substring(i,s.offset);const e=this._tokens[1+(t<<1)];o.push(r.length,e),i=s.offset}r+=s.text,o.push(r.length,s.tokenMetadata),n++}}return new or(new Uint32Array(o),r,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),n=this.getEndOffset(e);return this._text.substring(t,n)}forEach(e){const t=this.getCount();for(let n=0;n<t;n++)e(n)}}class ir{constructor(e,t,n,r){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=r,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this.languageIdCodec=e.languageIdCodec,this._tokensCount=0;for(let o=this._firstTokenIndex,i=e.getCount();o<i;o++){if(e.getStartOffset(o)>=n)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof ir&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,n=this._source.getStartOffset(t),r=this._source.getEndOffset(t);let o=this._source.getTokenText(t);return n<this._startOffset&&(o=o.substring(this._startOffset-n)),r>this._endOffset&&(o=o.substring(0,o.length-(r-this._endOffset))),o}forEach(e){for(let t=0;t<this.getCount();t++)e(t)}}class ar{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new lr(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class sr extends ar{constructor(e,t,n,r){super(e,t),this._textModel=n,this._languageIdCodec=r}updateTokensUntilLine(e,t){const n=this._textModel.getLanguageId();for(;;){const r=this.getFirstInvalidLine();if(!r||r.lineNumber>t)break;const o=this._textModel.getLineContent(r.lineNumber),i=ur(this._languageIdCodec,n,this.tokenizationSupport,o,!0,r.startState);e.add(r.lineNumber,i.tokens),this.store.setEndState(r.lineNumber,i.endState)}}getTokenTypeIfInsertingCharacter(e,t){const n=this.getStartState(e.lineNumber);if(!n)return 0;const r=this._textModel.getLanguageId(),o=this._textModel.getLineContent(e.lineNumber),i=o.substring(0,e.column-1)+t+o.substring(e.column-1),a=ur(this._languageIdCodec,r,this.tokenizationSupport,i,!0,n),s=new or(a.tokens,i,this._languageIdCodec);if(0===s.getCount())return 0;const l=s.findTokenIndexAtOffset(e.column-1);return s.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,n){const r=e.lineNumber,o=e.column,i=this.getStartState(r);if(!i)return null;const a=this._textModel.getLineContent(r),s=a.substring(0,o-1)+n+a.substring(o-1+t),l=this._textModel.getLanguageIdAtPosition(r,0),c=ur(this._languageIdCodec,l,this.tokenizationSupport,s,!0,i);return new or(c.tokens,s,this._languageIdCodec)}hasAccurateTokensForLine(e){return e<this.store.getFirstInvalidEndStateLineNumberOrMax()}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e<t||e===t&&this._textModel.getLineLength(e)<2048}tokenizeHeuristically(e,t,n){if(n<=this.store.getFirstInvalidEndStateLineNumberOrMax())return{heuristicTokens:!1};if(t<=this.store.getFirstInvalidEndStateLineNumberOrMax())return this.updateTokensUntilLine(e,n),{heuristicTokens:!1};let r=this.guessStartState(t);const o=this._textModel.getLanguageId();for(let i=t;i<=n;i++){const t=this._textModel.getLineContent(i),n=ur(this._languageIdCodec,o,this.tokenizationSupport,t,!0,r);e.add(i,n.tokens),r=n.endState}return{heuristicTokens:!0}}guessStartState(e){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);const n=[];let r=null;for(let a=e-1;t>1&&a>=1;a--){const e=this._textModel.getLineFirstNonWhitespaceColumn(a);if(0!==e&&(e<t&&(n.push(this._textModel.getLineContent(a)),t=e,r=this.getStartState(a),r)))break}r||(r=this.tokenizationSupport.getInitialState()),n.reverse();const o=this._textModel.getLanguageId();let i=r;for(const a of n){i=ur(this._languageIdCodec,o,this.tokenizationSupport,a,!1,i).endState}return i}}class lr{constructor(e){this.lineCount=e,this._tokenizationStateStore=new cr,this._invalidEndStatesLineNumbers=new dr,this._invalidEndStatesLineNumbers.addRange(new Zn.L(1,e+1))}getEndState(e){return this._tokenizationStateStore.getEndState(e)}setEndState(e,t){if(!t)throw new l.D7("Cannot set null/undefined state");this._invalidEndStatesLineNumbers.delete(e);const n=this._tokenizationStateStore.setEndState(e,t);return n&&e<this.lineCount&&this._invalidEndStatesLineNumbers.addRange(new Zn.L(e+1,e+2)),n}acceptChange(e,t){this.lineCount+=t-e.length,this._tokenizationStateStore.acceptChange(e,t),this._invalidEndStatesLineNumbers.addRangeAndResize(new Zn.L(e.startLineNumber,e.endLineNumberExclusive),t)}acceptChanges(e){for(const t of e){const[e]=(0,u.W)(t.text);this.acceptChange(new Xn.M(t.range.startLineNumber,t.range.endLineNumber+1),e+1)}}invalidateEndStateRange(e){this._invalidEndStatesLineNumbers.addRange(new Zn.L(e.startLineNumber,e.endLineNumberExclusive))}getFirstInvalidEndStateLineNumber(){return this._invalidEndStatesLineNumbers.min}getFirstInvalidEndStateLineNumberOrMax(){return this.getFirstInvalidEndStateLineNumber()||Number.MAX_SAFE_INTEGER}allStatesValid(){return null===this._invalidEndStatesLineNumbers.min}getStartState(e,t){return 1===e?t:this.getEndState(e-1)}getFirstInvalidLine(e){const t=this.getFirstInvalidEndStateLineNumber();if(null===t)return null;const n=this.getStartState(t,e);if(!n)throw new l.D7("Start state must be defined");return{lineNumber:t,startState:n}}}class cr{constructor(){this._lineEndStates=new tr(null)}getEndState(e){return this._lineEndStates.get(e)}setEndState(e,t){const n=this._lineEndStates.get(e);return(!n||!n.equals(t))&&(this._lineEndStates.set(e,t),!0)}acceptChange(e,t){let n=e.length;t>0&&n>0&&(n--,t--),this._lineEndStates.replace(e.startLineNumber,n,t)}}class dr{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const n=this._ranges[t];n.start===e?n.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Zn.L(e+1,n.endExclusive):n.endExclusive===e+1?this._ranges[t]=new Zn.L(n.start,e):this._ranges.splice(t,1,new Zn.L(n.start,e),new Zn.L(e+1,n.endExclusive))}}addRange(e){Zn.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let n=0;for(;!(n>=this._ranges.length||e.start<=this._ranges[n].endExclusive);)n++;let r=n;for(;!(r>=this._ranges.length||e.endExclusive<this._ranges[r].start);)r++;const o=t-e.length;for(let i=r;i<this._ranges.length;i++)this._ranges[i]=this._ranges[i].delta(o);if(n===r){const r=new Zn.L(e.start,e.start+t);r.isEmpty||this._ranges.splice(n,0,r)}else{const t=Math.min(e.start,this._ranges[n].start),i=Math.max(e.endExclusive,this._ranges[r-1].endExclusive),a=new Zn.L(t,i+o);a.isEmpty?this._ranges.splice(n,r-n):this._ranges.splice(n,r-n,a)}}toString(){return this._ranges.map((e=>e.toString())).join(" + ")}}function ur(e,t,n,r,o,i){let a=null;if(n)try{a=n.tokenizeEncoded(r,o,i.clone())}catch(s){(0,l.dz)(s)}return a||(a=function(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new $n.rY(n,null===t?er:t)}(e.encodeLanguageId(t),i)),or.convertToEndOffset(a.tokens,r.length),a}class pr{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,Yn.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),n=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()<t?(0,i._p)(n):this._beginBackgroundTokenization())};n()}_backgroundTokenizeForAtLeast1ms(){const e=this._tokenizerWithStateStore._textModel.getLineCount(),t=new rr,n=Qn.W.create(!1);do{if(n.elapsed()>1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){const t=this._tokenizerWithStateStore?.getFirstInvalidLine();return t?(this._tokenizerWithStateStore.updateTokensUntilLine(e,t.lineNumber),t.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Xn.M(e,t))}}class fr{constructor(){this._onDidChangeVisibleRanges=new r.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new mr((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class mr{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const n=e.map((e=>new Xn.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:n,stabilized:t})}}class _r extends o.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new Yn.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,a.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}class hr extends o.jG{get backgroundTokenizationState(){return this._backgroundTokenizationState}constructor(e,t,n){super(),this._languageIdCodec=e,this._textModel=t,this.getLanguageId=n,this._backgroundTokenizationState=1,this._onDidChangeBackgroundTokenizationState=this._register(new r.vl),this.onDidChangeBackgroundTokenizationState=this._onDidChangeBackgroundTokenizationState.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}}class gr extends hr{constructor(e,t,n,r){super(t,n,r),this._treeSitterService=e,this._tokenizationSupport=null,this._initialize()}_initialize(){const e=this.getLanguageId();this._tokenizationSupport&&this._lastLanguageId===e||(this._lastLanguageId=e,this._tokenizationSupport=$n.OB.get(e))}getLineTokens(e){const t=this._textModel.getLineContent(e);if(this._tokenizationSupport){const n=this._tokenizationSupport.tokenizeEncoded(e,this._textModel);if(n)return new or(n,t,this._languageIdCodec)}return or.createEmpty(t,this._languageIdCodec)}resetTokenization(e=!0){e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]}),this._initialize()}handleDidChangeAttached(){}handleDidChangeContent(e){e.isFlush&&this.resetTokenization(!1)}forceTokenization(e){}hasAccurateTokensForLine(e){return!0}isCheapToTokenize(e){return!0}getTokenTypeIfInsertingCharacter(e,t,n){return 0}tokenizeLineWithEdit(e,t,n){return null}get hasTokens(){return void 0!==this._treeSitterService.getParseResult(this._textModel)}}var yr=n(4432);const vr=new Uint32Array(0).buffer;class br{static deleteBeginning(e,t){return null===e||e===vr?e:br.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===vr)return e;const n=Er(e),r=n[n.length-2];return br.delete(e,t,r)}static delete(e,t,n){if(null===e||e===vr||t===n)return e;const r=Er(e),o=r.length>>>1;if(0===t&&r[r.length-2]===n)return vr;const i=or.findIndexInTokensArray(r,t),a=i>0?r[i-1<<1]:0;if(n<r[i<<1]){const a=n-t;for(let e=i;e<o;e++)r[e<<1]-=a;return e}let s,l;a!==t?(r[i<<1]=t,s=i+1<<1,l=t):(s=i<<1,l=a);const c=n-t;for(let u=i+1;u<o;u++){const e=r[u<<1]-c;e>l&&(r[s++]=e,r[s++]=r[1+(u<<1)],l=e)}if(s===r.length)return e;const d=new Uint32Array(s);return d.set(r.subarray(0,s),0),d.buffer}static append(e,t){if(t===vr)return e;if(e===vr)return t;if(null===e)return e;if(null===t)return null;const n=Er(e),r=Er(t),o=r.length>>>1,i=new Uint32Array(n.length+r.length);i.set(n,0);let a=n.length;const s=n[n.length-2];for(let l=0;l<o;l++)i[a++]=r[l<<1]+s,i[a++]=r[1+(l<<1)];return i.buffer}static insert(e,t,n){if(null===e||e===vr)return e;const r=Er(e),o=r.length>>>1;let i=or.findIndexInTokensArray(r,t);if(i>0){r[i-1<<1]===t&&i--}for(let a=i;a<o;a++)r[a<<1]+=n;return e}}function Er(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class Sr{constructor(e){this._lineTokens=[],this._len=0,this._languageIdCodec=e}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(e,t,n){let r=null;if(t<this._len&&(r=this._lineTokens[t]),null!==r&&r!==vr)return new or(Er(r),n,this._languageIdCodec);const o=new Uint32Array(2);return o[0]=n.length,o[1]=Tr(this._languageIdCodec.encodeLanguageId(e)),new or(o,n,this._languageIdCodec)}static _massageTokens(e,t,n){const r=n?Er(n):null;if(0===t){let t=!1;if(r&&r.length>1&&(t=Qe.x.getLanguageId(r[1])!==e),!t)return vr}if(!r||0===r.length){const n=new Uint32Array(2);return n[0]=t,n[1]=Tr(e),n.buffer}return r[r.length-2]=t,0===r.byteOffset&&r.byteLength===r.buffer.byteLength?r.buffer:r}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const n=[];for(let r=0;r<t;r++)n[r]=null;this._lineTokens=a.nK(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,r,o){const i=Sr._massageTokens(this._languageIdCodec.encodeLanguageId(e),n,r);this._ensureLine(t);const a=this._lineTokens[t];return this._lineTokens[t]=i,!!o&&!Sr._equals(a,i)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=Er(e),r=Er(t);if(n.length!==r.length)return!1;for(let o=0,i=n.length;o<i;o++)if(n[o]!==r[o])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new m.y(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=br.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=br.deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let r=null;n<this._len&&(r=br.deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=br.append(this._lineTokens[t],r),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const r=e.lineNumber-1;r>=this._len||(0!==t?(this._lineTokens[r]=br.deleteEnding(this._lineTokens[r],e.column-1),this._lineTokens[r]=br.insert(this._lineTokens[r],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[r]=br.insert(this._lineTokens[r],e.column-1,n))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const n=[];for(let r=0,o=e.length;r<o;r++){const o=e[r];let i=0,a=0,s=!1;for(let e=o.startLineNumber;e<=o.endLineNumber;e++)if(s)this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),o.getLineTokens(e),!1),a=e;else{this.setTokens(t.getLanguageId(),e-1,t.getLineLength(e),o.getLineTokens(e),!0)&&(s=!0,i=e,a=e)}s&&n.push({fromLineNumber:i,toLineNumber:a})}return{changes:n}}}function Tr(e){return(32768|e|2<<24|1024)>>>0}class xr{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const r=t[0].getRange(),o=t[t.length-1].getRange();if(!r||!o)return e;n=e.plusRange(r).plusRange(o)}let r=null;for(let o=0,i=this._pieces.length;o<i;o++){const e=this._pieces[o];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){r=r||{index:o};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(o,1),o--,i--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){r=r||{index:o};continue}const[t,a]=e.split(n);t.isEmpty()?r=r||{index:o}:a.isEmpty()||(this._pieces.splice(o,1,t,a),o++,i++,r=r||{index:o})}return r=r||{index:this._pieces.length},t.length>0&&(this._pieces=a.nK(this._pieces,r.index,t)),n}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const n=this._pieces;if(0===n.length)return t;const r=n[xr._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!r)return t;const o=t.getCount(),i=r.getCount();let a=0;const s=[];let l=0,c=0;const d=(e,t)=>{e!==c&&(c=e,s[l++]=e,s[l++]=t)};for(let u=0;u<i;u++){const e=r.getStartCharacter(u),n=r.getEndCharacter(u),i=r.getMetadata(u),s=((1&i?2048:0)|(2&i?4096:0)|(4&i?8192:0)|(8&i?16384:0)|(16&i?16744448:0)|(32&i?4278190080:0))>>>0,l=~s>>>0;for(;a<o&&t.getEndOffset(a)<=e;)d(t.getEndOffset(a),t.getMetadata(a)),a++;for(a<o&&t.getStartOffset(a)<e&&d(e,t.getMetadata(a));a<o&&t.getEndOffset(a)<n;)d(t.getEndOffset(a),t.getMetadata(a)&l|i&s),a++;if(a<o)d(n,t.getMetadata(a)&l|i&s),t.getEndOffset(a)===n&&a++;else{const e=Math.min(Math.max(0,a-1),o-1);d(n,t.getMetadata(e)&l|i&s)}}for(;a<o;)d(t.getEndOffset(a),t.getMetadata(a)),a++;return new or(new Uint32Array(s),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let n=0,r=e.length-1;for(;n<r;){let o=n+Math.floor((r-n)/2);if(e[o].endLineNumber<t)n=o+1;else{if(!(e[o].startLineNumber>t)){for(;o>n&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber;)o--;return o}r=o-1}}return n}acceptEdit(e,t,n,r,o){for(const i of this._pieces)i.acceptEdit(e,t,n,r,o)}}var Ar,Ir=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Rr=function(e,t){return function(n,r){t(n,r,e)}};let Cr=Ar=class extends Ut{constructor(e,t,n,i,a,s,l){super(),this._textModel=e,this._bracketPairsTextModelPart=t,this._languageId=n,this._attachedViews=i,this._languageService=a,this._languageConfigurationService=s,this._treeSitterService=l,this._semanticTokens=new xr(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new r.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new r.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this._tokensDisposables=this._register(new o.Cm),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(r.Jh.filter($n.OB.onDidChange,(e=>e.changedLanguages.includes(this._languageId)))((()=>{this.createPreferredTokenProvider()}))),this.createPreferredTokenProvider()}createGrammarTokens(){return this._register(new Dr(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews))}createTreeSitterTokens(){return this._register(new gr(this._treeSitterService,this._languageService.languageIdCodec,this._textModel,(()=>this._languageId)))}createTokens(e){const t=void 0!==this._tokens;this._tokens?.dispose(),this._tokens=e?this.createTreeSitterTokens():this.createGrammarTokens(),this._tokensDisposables.clear(),this._tokensDisposables.add(this._tokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._tokensDisposables.add(this._tokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))),t&&this._tokens.resetTokenization()}createPreferredTokenProvider(){$n.OB.get(this._languageId)?this._tokens instanceof gr||this.createTokens(!0):this._tokens instanceof Dr||this.createTokens(!1)}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,n,r]=(0,u.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,n,r,t.text.length>0?t.text.charCodeAt(0):0)}this._tokens.handleDidChangeContent(e)}handleDidChangeAttached(){this._tokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this._tokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new l.D7("Illegal value for lineNumber")}get hasTokens(){return this._tokens.hasTokens}resetTokenization(){this._tokens.resetTokenization()}get backgroundTokenizationState(){return this._tokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this._tokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this._tokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this._tokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this._tokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,n){return this._tokens.getTokenTypeIfInsertingCharacter(e,t,n)}tokenizeLineWithEdit(e,t,n){return this._tokens.tokenizeLineWithEdit(e,t,n)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),n=this._textModel.getLineContent(t.lineNumber),r=this.getLineTokens(t.lineNumber),o=r.findTokenIndexAtOffset(t.column-1),[i,a]=Ar._findLanguageBoundaries(r,o),s=(0,b.Th)(t.column,this.getLanguageConfiguration(r.getLanguageId(o)).getWordDefinition(),n.substring(i,a),i);if(s&&s.startColumn<=e.column&&e.column<=s.endColumn)return s;if(o>0&&i===t.column-1){const[i,a]=Ar._findLanguageBoundaries(r,o-1),s=(0,b.Th)(t.column,this.getLanguageConfiguration(r.getLanguageId(o-1)).getWordDefinition(),n.substring(i,a),i);if(s&&s.startColumn<=e.column&&e.column<=s.endColumn)return s}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let r=0;for(let i=t;i>=0&&e.getLanguageId(i)===n;i--)r=e.getStartOffset(i);let o=e.getLineContent().length;for(let i=t,a=e.getCount();i<a&&e.getLanguageId(i)===n;i++)o=e.getEndOffset(i);return[r,o]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}getLanguageId(){return this._languageId}getLanguageIdAtPosition(e,t){const n=this._textModel.validatePosition(new m.y(e,t)),r=this.getLineTokens(n.lineNumber);return r.getLanguageId(r.findTokenIndexAtOffset(n.column-1))}setLanguageId(e,t="api"){if(this._languageId===e)return;const n={oldLanguage:this._languageId,newLanguage:e,source:t};this._languageId=e,this._bracketPairsTextModelPart.handleDidChangeLanguage(n),this._tokens.resetTokenization(),this.createPreferredTokenProvider(),this._onDidChangeLanguage.fire(n),this._onDidChangeLanguageConfiguration.fire({})}};Cr=Ar=Ir([Rr(4,v.L),Rr(5,ie),Rr(6,yr.ITreeSitterParserService)],Cr);class Dr extends hr{constructor(e,t,n,r){super(e,t,n),this._tokenizer=null,this._defaultBackgroundTokenizer=null,this._backgroundTokenizer=this._register(new o.HE),this._tokens=new Sr(this._languageIdCodec),this._debugBackgroundTokenizer=this._register(new o.HE),this._attachedViewStates=this._register(new o.$w),this._register($n.dG.onDidChange((e=>{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(r.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let n=this._attachedViewStates.get(e);n||(n=new _r((()=>this.refreshRanges(n.lineRanges))),this._attachedViewStates.set(e,n)),n.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){this._tokens.flush(),this._debugBackgroundTokens?.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new lr(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[t,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=$n.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(n){return(0,l.dz)(n),[null,null]}return[e,t]})();if(this._tokenizer=t&&n?new sr(this._textModel.getLineCount(),t,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{if(2===this._backgroundTokenizationState)return;this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(e,t)=>{if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&this._tokenizer?.store.setEndState(e,t)}};t&&t.createBackgroundTokenizer&&!t.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new pr(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),t?.backgroundTokenizerShouldOnlyVerifyTokens&&t.createBackgroundTokenizer?(this._debugBackgroundTokens=new Sr(this._languageIdCodec),this._debugBackgroundStates=new lr(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=t.createBackgroundTokenizer(this._textModel,{setTokens:e=>{this._debugBackgroundTokens?.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{this._debugBackgroundStates?.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){this._defaultBackgroundTokenizer?.handleChanges()}handleDidChangeContent(e){if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const t of e.changes){const[e,n]=(0,u.W)(t.text);this._tokens.acceptEdit(t.range,e,n),this._debugBackgroundTokens?.acceptEdit(t.range,e,n)}this._debugBackgroundStates?.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),this._defaultBackgroundTokenizer?.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=Xn.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const n=new rr,{heuristicTokens:r}=this._tokenizer.tokenizeHeuristically(n,e,t),o=this.setTokens(n.finalize());if(r)for(const i of o.changes)this._backgroundTokenizer.value?.requestTokens(i.fromLineNumber,i.toLineNumber+1);this._defaultBackgroundTokenizer?.checkFinished()}forceTokenization(e){const t=new rr;this._tokenizer?.updateTokensUntilLine(t,e),this.setTokens(t.finalize()),this._defaultBackgroundTokenizer?.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}getLineTokens(e){const t=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,t);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const r=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,t);!n.equals(r)&&this._debugBackgroundTokenizer.value?.reportMismatchingTokens&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,n){if(!this._tokenizer)return 0;const r=this._textModel.validatePosition(new m.y(e,t));return this.forceTokenization(r.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(r,n)}tokenizeLineWithEdit(e,t,n){if(!this._tokenizer)return null;const r=this._textModel.validatePosition(e);return this.forceTokenization(r.lineNumber),this._tokenizer.tokenizeLineWithEdit(r,t,n)}get hasTokens(){return this._tokens.hasTokens}}class Nr{constructor(){this.changeType=1}}class Mr{static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",r=0;for(const o of t)n+=e.substring(r,o.column-1),r=o.column-1,n+=o.options.content;return n+=e.substring(r),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new Mr(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new Mr(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,n,r,o){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=r,this.order=o}}class Lr{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class kr{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class Pr{constructor(e,t,n,r){this.changeType=4,this.injectedTexts=r,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class wr{constructor(){this.changeType=5}}class Or{constructor(e,t,n,r){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=r,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),r=t.versionId,o=e.isUndoing||t.isUndoing,i=e.isRedoing||t.isRedoing;return new Or(n,r,o,i)}}class Fr{constructor(e){this.changes=e}}class Wr{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=Or.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Wr._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Wr(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),r=t.eol,o=t.versionId,i=e.isUndoing||t.isUndoing,a=e.isRedoing||t.isRedoing,s=e.isFlush||t.isFlush;return{changes:n,eol:r,isEolChange:e.isEolChange&&t.isEolChange,versionId:o,isUndoing:i,isRedoing:a,isFlush:s}}}const zr=(0,K.u1)("undoRedoService");class Br{static{this._ID=0}constructor(){this.id=Br._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Br}}class Gr{static{this._ID=0}constructor(){this.id=Gr._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}static{this.None=new Gr}}var jr,Vr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ur=function(e,t){return function(n,r){t(n,r,e)}};function Hr(e,t){let n;return n="string"===typeof e?function(e){const t=new Jn;return t.acceptChunk(e),t.finish()}(e):_e.nk(e)?function(e){const t=new Jn;let n;for(;"string"===typeof(n=e.read());)t.acceptChunk(n);return t.finish()}(e):e,n.create(t)}let Kr=0;class qr{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,n=0;for(;;){const r=this._source.read();if(null===r)return this._eos=!0,0===t?null:e.join("");if(r.length>0&&(e[t++]=r,n+=r.length),n>=65536)return e.join("")}}}const Jr=()=>{throw new Error("Invalid change accessor")};let Xr=class extends o.jG{static{jr=this}static{this._MODEL_SYNC_LIMIT=52428800}static{this.LARGE_FILE_SIZE_THRESHOLD=20971520}static{this.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5}static{this.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456}static{this.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:g.tabSize,indentSize:g.indentSize,insertSpaces:g.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:g.trimAutoWhitespace,largeFileOptimizations:g.largeFileOptimizations,bracketPairColorizationOptions:g.bracketPairColorizationOptions}}static resolveOptions(e,t){if(t.detectIndentation){const n=Yt(e,t.tabSize,t.insertSpaces);return new _e.X2({tabSize:n.tabSize,indentSize:"tabSize",insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new _e.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,o.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,n,i=null,a,s,l,u){super(),this._undoRedoService=a,this._languageService=s,this._languageConfigurationService=l,this.instantiationService=u,this._onWillDispose=this._register(new r.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new lo((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new r.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new r.vl),this._eventEmitter=this._register(new co),this._languageSelectionListener=this._register(new o.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new fr,Kr++,this.id="$model"+Kr,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource="undefined"===typeof i||null===i?d.r.parse("inmemory://model/"+Kr):i,this._attachedEditorCount=0;const{textBuffer:p,disposable:f}=Hr(e,n.defaultEOL);this._buffer=p,this._bufferDisposable=f,this._options=jr.resolveOptions(this._buffer,n);const m="string"===typeof t?t:t.languageId;"string"!==typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new St(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new qt(this,this._languageConfigurationService)),this._decorationProvider=this._register(new Ct(this)),this._tokenizationTextModelPart=this.instantiationService.createInstance(Cr,this,this._bracketPairs,m,this._attachedViews);const h=this._buffer.getLineCount(),g=this._buffer.getValueLengthInRange(new _.Q(1,1,h,this._buffer.getLineLength(h)+1),0);n.largeFileOptimizations?(this._isTooLargeForTokenization=g>jr.LARGE_FILE_SIZE_THRESHOLD||h>jr.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=g>jr.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=g>jr._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=c.tk(Kr),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Qr,this._commandManager=new Gt(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(m),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Kn([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=o.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new l.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new Wr(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e||void 0===e)throw(0,l.Qg)();const{textBuffer:t,disposable:n}=Hr(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,r,o,i,a,s){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:r}],eol:this._buffer.getEOL(),isEolChange:s,versionId:this.getVersionId(),isUndoing:o,isRedoing:i,isFlush:a}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),r=this.getValueLengthInRange(n),o=this.getLineCount(),i=this.getLineMaxColumn(o);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Qr,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Or([new Nr],this._versionId,!1,!1),this._createContentChanged2(new _.Q(1,1,o,i),0,r,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),r=this.getValueLengthInRange(n),o=this.getLineCount(),i=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Or([new wr],this._versionId,!1,!1),this._createContentChanged2(new _.Q(1,1,o,i),0,r,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,r=t.length;n<r;n++){const r=t[n],o=r.range,i=r.cachedAbsoluteStart-r.start,a=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),s=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);r.cachedAbsoluteStart=a,r.cachedAbsoluteEnd=s,r.cachedVersionId=e,r.start=a-i,r.end=s-i,bn(r)}}onBeforeAttached(){return this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(e){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(e)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let r=1;r<=n;r++){const n=this._buffer.getLineLength(r);n>=1e4?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.originalIndentSize,r="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,o="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,i="undefined"!==typeof e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,a=new _e.X2({tabSize:t,indentSize:n,insertSpaces:r,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o,bracketPairColorizationOptions:i});if(this._options.equals(a))return;const s=this._options.createChangeEvent(a);this._options=a,this._bracketPairs.handleDidChangeOptions(s),this._decorationProvider.handleDidChangeOptions(s),this._onDidChangeOptions.fire(s)}detectIndentation(e,t){this._assertNotDisposed();const n=Yt(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),f(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(c._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");const n=this.getFullModelRange(),r=this.getValueInRange(n,e);return t?this._buffer.getBOM()+r:r}createSnapshot(e=!1){return new qr(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),r=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+r:r}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new l.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new l.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,r=e.startColumn;let o=Math.floor("number"!==typeof n||isNaN(n)?1:n),i=Math.floor("number"!==typeof r||isNaN(r)?1:r);if(o<1)o=1,i=1;else if(o>t)o=t,i=this.getLineMaxColumn(o);else if(i<=1)i=1;else{const e=this.getLineMaxColumn(o);i>=e&&(i=e)}const a=e.endLineNumber,s=e.endColumn;let l=Math.floor("number"!==typeof a||isNaN(a)?1:a),c=Math.floor("number"!==typeof s||isNaN(s)?1:s);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{const e=this.getLineMaxColumn(l);c>=e&&(c=e)}return n===o&&r===i&&a===l&&s===c&&e instanceof _.Q&&!(e instanceof h.L)?e:new _.Q(o,i,l,c)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(c.pc(n))return!1}return!0}_validatePosition(e,t,n){const r=Math.floor("number"!==typeof e||isNaN(e)?1:e),o=Math.floor("number"!==typeof t||isNaN(t)?1:t),i=this._buffer.getLineCount();if(r<1)return new m.y(1,1);if(r>i)return new m.y(i,this.getLineMaxColumn(i));if(o<=1)return new m.y(r,1);const a=this.getLineMaxColumn(r);if(o>=a)return new m.y(r,a);if(1===n){const e=this._buffer.getLineCharCode(r,o-2);if(c.pc(e))return new m.y(r,o-1)}return new m.y(r,o)}validatePosition(e){return this._assertNotDisposed(),e instanceof m.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,r=e.startColumn,o=e.endLineNumber,i=e.endColumn;if(!this._isValidPosition(n,r,0))return!1;if(!this._isValidPosition(o,i,0))return!1;if(1===t){const e=r>1?this._buffer.getLineCharCode(n,r-2):0,t=i>1&&i<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,i-2):0,a=c.pc(e),s=c.pc(t);return!a&&!s}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof _.Q&&!(e instanceof h.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),r=t.lineNumber,o=t.column,i=n.lineNumber,a=n.column;{const e=o>1?this._buffer.getLineCharCode(r,o-2):0,t=a>1&&a<=this._buffer.getLineLength(i)?this._buffer.getLineCharCode(i,a-2):0,n=c.pc(e),s=c.pc(t);return n||s?r===i&&o===a?new _.Q(r,o-1,i,a-1):n&&s?new _.Q(r,o-1,i,a+1):n?new _.Q(r,o-1,i,a):new _.Q(r,o,i,a+1):new _.Q(r,o,i,a)}}modifyPosition(e,t){this._assertNotDisposed();const n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new _.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,r){return this._buffer.findMatchesLineByLine(e,t,n,r)}findMatches(e,t,n,r,o,i,a=999){this._assertNotDisposed();let s=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>_.Q.isIRange(e)))&&(s=t.map((e=>this.validateRange(e))))),null===s&&(s=[this.getFullModelRange()]),s=s.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let c;if(l.push(s.reduce(((e,t)=>_.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!n&&e.indexOf("\n")<0){const t=new On.lt(e,n,r,o).parseSearchRequest();if(!t)return[];c=e=>this.findMatchesLineByLine(e,t,i,a)}else c=t=>On.hB.findMatches(this,new On.lt(e,n,r,o),t,i,a);return l.map(c).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,n,r,o,i){this._assertNotDisposed();const a=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new On.lt(e,n,r,o).parseSearchRequest();if(!t)return null;const s=this.getLineCount();let l=new _.Q(a.lineNumber,a.column,s,this.getLineMaxColumn(s)),c=this.findMatchesLineByLine(l,t,i,1);return On.hB.findNextMatch(this,new On.lt(e,n,r,o),a,i),c.length>0?c[0]:(l=new _.Q(1,1,a.lineNumber,this.getLineMaxColumn(a.lineNumber)),c=this.findMatchesLineByLine(l,t,i,1),c.length>0?c[0]:null)}return On.hB.findNextMatch(this,new On.lt(e,n,r,o),a,i)}findPreviousMatch(e,t,n,r,o,i){this._assertNotDisposed();const a=this.validatePosition(t);return On.hB.findPreviousMatch(this,new On.lt(e,n,r,o),a,i)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof _e.Wo?e:new _e.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,r=e.length;n<r;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n,r){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n,r)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n,r){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const n=t.map((e=>({range:this.validateRange(e.range),text:e.text})));let r=!0;if(e)for(let t=0,o=e.length;t<o;t++){const o=e[t];let i=!1;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,r=t.startLineNumber>o.endLineNumber,a=o.startLineNumber>t.endLineNumber;if(!r&&!a){i=!0;break}}if(!i){r=!1;break}}if(r)for(let e=0,o=this._trimAutoWhitespaceLines.length;e<o;e++){const r=this._trimAutoWhitespaceLines[e],o=this.getLineMaxColumn(r);let i=!0;for(let e=0,t=n.length;e<t;e++){const t=n[e].range,a=n[e].text;if(!(r<t.startLineNumber||r>t.endLineNumber)&&(!(r===t.startLineNumber&&t.startColumn===o&&t.isEmpty()&&a&&a.length>0&&"\n"===a.charAt(0))&&!(r===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&a&&a.length>0&&"\n"===a.charAt(a.length-1)))){i=!1;break}}if(i){const e=new _.Q(r,1,r,o);t.push(new _e.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n,r)}_applyUndo(e,t,n,r){const o=e.map((e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new _.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}}));this._applyUndoRedoEdits(o,t,!0,!1,n,r)}_applyRedo(e,t,n,r){const o=e.map((e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new _.Q(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}}));this._applyUndoRedoEdits(o,t,!1,!0,n,r)}_applyUndoRedoEdits(e,t,n,r,o,i){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=r,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(o)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(i),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),r=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),i=r.changes;if(this._trimAutoWhitespaceLines=r.trimAutoWhitespaceLineNumbers,0!==i.length){for(let n=0,r=i.length;n<r;n++){const e=i[n];this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}const e=[];this._increaseVersionId();let t=n;for(let n=0,r=i.length;n<r;n++){const r=i[n],[s]=(0,u.W)(r.text);this._onDidChangeDecorations.fire();const l=r.range.startLineNumber,c=r.range.endLineNumber,d=c-l,p=s,f=Math.min(d,p),_=p-d,h=o-t-_+l,g=h,y=h+p,v=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new m.y(g,1)),this.getOffsetAt(new m.y(y,this.getLineMaxColumn(y))),0),b=Mr.fromDecorations(v),E=new a.j3(b);for(let t=f;t>=0;t--){const n=l+t,r=h+t;E.takeFromEndWhile((e=>e.lineNumber>r));const o=E.takeFromEndWhile((e=>e.lineNumber===r));e.push(new Lr(n,this.getLineContent(r),o))}if(f<d){const t=l+f;e.push(new kr(t+1,c))}if(f<p){const n=new a.j3(b),r=l+f,i=p-f,s=o-t-i+r+1,c=[],d=[];for(let e=0;e<i;e++){const t=s+e;d[e]=this.getLineContent(t),n.takeWhile((e=>e.lineNumber<t)),c[e]=n.takeWhile((e=>e.lineNumber===t))}e.push(new Pr(r+1,l+p,d,c))}t+=_}this._emitContentChangedEvent(new Or(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:i,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===r.reverseEdits?void 0:r.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new Lr(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new Fr(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,so(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)};let r=null;try{r=t(n)}catch(o){(0,l.dz)(o)}return n.addDecoration=Jr,n.changeDecoration=Jr,n.changeDecorationOptions=Jr,n.removeDecoration=Jr,n.deltaDecorations=Jr,r}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,l.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const r=e?this._decorations[e]:null;if(!r)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:ao[n]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(r),delete this._decorations[r.id],null;const o=this._validateRangeRelaxedNoAllocations(t),i=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),a=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(r),r.reset(this.getVersionId(),i,a,o),r.setOptions(ao[n]),this._decorationsTree.insert(r),r.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,r=t.length;n<r;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,r=!1,o=!1){const i=this.getLineCount(),s=Math.min(i,Math.max(1,e)),l=Math.min(i,Math.max(1,t)),c=this.getLineMaxColumn(l),d=new _.Q(s,1,l,c),u=this._getDecorationsInRange(d,n,r,o);return(0,a.E4)(u,this._decorationProvider.getDecorationsInRange(d,n,r)),u}getDecorationsInRange(e,t=0,n=!1,r=!1,o=!1){const i=this.validateRange(e),s=this._getDecorationsInRange(i,t,n,o);return(0,a.E4)(s,this._decorationProvider.getDecorationsInRange(i,t,n,r)),s}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),r=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Mr.fromDecorations(r).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let n=this._decorationsTree.getAll(this,e,t,!1,!1);return n=n.concat(this._decorationProvider.getAllDecorations(e,t)),n}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,n,r){const o=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),i=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,o,i,t,n,r)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const r=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),i=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),o,i,r),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const r=!(!n.options.overviewRuler||!n.options.overviewRuler.color),o=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const i=r!==o,a=function(e){return!!e.after||!!e.before}(t)!==Yr(n);i||a?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n,r=!1){const o=this.getVersionId(),i=t.length;let a=0;const s=n.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const c=new Array(s);for(;a<i||l<s;){let d=null;if(a<i){do{d=this._decorations[t[a++]]}while(!d&&a<i);if(d){if(d.options.after){const e=this._decorationsTree.getNodeRange(this,d);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(d.options.before){const e=this._decorationsTree.getNodeRange(this,d);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(d),r||this._onDidChangeDecorations.checkAffectedAndFire(d.options)}}if(l<s){if(!d){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;d=new cn(t,0,0),this._decorations[t]=d}const t=n[l],i=this._validateRangeRelaxedNoAllocations(t.range),a=so(t.options),s=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),u=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);d.ownerId=e,d.reset(o,s,u,i),d.setOptions(a),d.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber),d.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.startLineNumber),r||this._onDidChangeDecorations.checkAffectedAndFire(a),this._decorationsTree.insert(d),c[l]=d.id,l++}else d&&delete this._decorations[d.id]}return c}finally{this._onDidChangeDecorations.endDeferredEmit()}}getLanguageId(){return this.tokenization.getLanguageId()}setLanguage(e,t){"string"===typeof e?(this._languageSelectionListener.clear(),this._setLanguage(e,t)):(this._languageSelectionListener.value=e.onDidChange((()=>this._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}(this.getLineContent(e))+1}};function $r(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function Yr(e){return!!e.options.after||!!e.options.before}Xr=jr=Vr([Ur(4,zr),Ur(5,v.L),Ur(6,ie),Ur(7,K._Y)],Xr);class Qr{constructor(){this._decorationsTree0=new un,this._decorationsTree1=new un,this._injectedTextDecorationsTree=new un}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,r,o,i){const a=e.getVersionId(),s=this._intervalSearch(t,n,r,o,a,i);return this._ensureNodesHaveRanges(e,s)}_intervalSearch(e,t,n,r,o,i){const a=this._decorationsTree0.intervalSearch(e,t,n,r,o,i),s=this._decorationsTree1.intervalSearch(e,t,n,r,o,i),l=this._injectedTextDecorationsTree.intervalSearch(e,t,n,r,o,i);return a.concat(s).concat(l)}getInjectedTextInInterval(e,t,n,r){const o=e.getVersionId(),i=this._injectedTextDecorationsTree.intervalSearch(t,n,r,!1,o,!1);return this._ensureNodesHaveRanges(e,i).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const n=e.getVersionId(),r=this._injectedTextDecorationsTree.search(t,!1,n,!1);return this._ensureNodesHaveRanges(e,r).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,n,r,o){const i=e.getVersionId(),a=this._search(t,n,r,i,o);return this._ensureNodesHaveRanges(e,a)}_search(e,t,n,r,o){if(n)return this._decorationsTree1.search(e,t,r,o);{const n=this._decorationsTree0.search(e,t,r,o),i=this._decorationsTree1.search(e,t,r,o),a=this._injectedTextDecorationsTree.search(e,t,r,o);return n.concat(i).concat(a)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),r=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(r)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){Yr(e)?this._injectedTextDecorationsTree.insert(e):$r(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){Yr(e)?this._injectedTextDecorationsTree.delete(e):$r(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){Yr(e)?this._injectedTextDecorationsTree.resolveNode(e,t):$r(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,r){this._decorationsTree0.acceptReplace(e,t,n,r),this._decorationsTree1.acceptReplace(e,t,n,r),this._injectedTextDecorationsTree.acceptReplace(e,t,n,r)}}function Zr(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class eo{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class to extends eo{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:_e.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;const n=e?t.getColor(e.id):null;return n?n.toString():""}}class no{constructor(e){this.position=e?.position??_e.ZS.Center,this.persistLane=e?.persistLane}}class ro extends eo{constructor(e){super(e),this.position=e.position,this.sectionHeaderStyle=e.sectionHeaderStyle??null,this.sectionHeaderText=e.sectionHeaderText??null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?s.Q1.fromHex(e):t.getColor(e.id)}}class oo{static from(e){return e instanceof oo?e:new oo(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class io{static register(e){return new io(e)}static createDynamic(e){return new io(e)}constructor(e){this.description=e.description,this.blockClassName=e.blockClassName?Zr(e.blockClassName):null,this.blockDoesNotCollapse=e.blockDoesNotCollapse??null,this.blockIsAfterEnd=e.blockIsAfterEnd??null,this.blockPadding=e.blockPadding??null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Zr(e.className):null,this.shouldFillLineOnLineBreak=e.shouldFillLineOnLineBreak??null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new to(e.overviewRuler):null,this.minimap=e.minimap?new ro(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new no(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Zr(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Zr(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Zr(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?c.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Zr(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Zr(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Zr(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Zr(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Zr(e.afterContentClassName):null,this.after=e.after?oo.from(e.after):null,this.before=e.before?oo.from(e.before):null,this.hideInCommentTokens=e.hideInCommentTokens??!1,this.hideInStringTokens=e.hideInStringTokens??!1}}io.EMPTY=io.register({description:"empty"});const ao=[io.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),io.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),io.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),io.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function so(e){return e instanceof io?e:io.createDynamic(e)}class lo extends o.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new r.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),this._affectedInjectedTextLines?.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||=!!e.minimap?.position,this._affectsOverviewRuler||=!!e.overviewRuler?.color,this._affectsGlyphMargin||=!!e.glyphMarginClassName,this._affectsLineNumber||=!!e.lineNumberClassName,this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class co extends o.jG{constructor(){super(),this._fastEmitter=this._register(new r.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}var uo,po=n(360),fo=n(5600),mo=n(6456),_o=n(146),ho=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},go=function(e,t){return function(n,r){t(n,r,e)}};function yo(e){return e.toString()}class vo{constructor(e,t,n){this.model=e,this._modelEventListeners=new o.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>n(e,t))))}dispose(){this._modelEventListeners.dispose()}}const bo=i.j9||i.zx?1:2;class Eo{constructor(e,t,n,r,o,i,a,s){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=r,this.heapSize=o,this.sha1=i,this.versionId=a,this.alternativeVersionId=s}}let So=class extends o.jG{static{uo=this}static{this.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520}constructor(e,t,n,o){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=n,this._instantiationService=o,this._onModelAdded=this._register(new r.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new r.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new r.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){let n=g.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let r="tabSize";if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(r=Math.max(t,1))}let o=g.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(o="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let i=bo;const a=e.eol;"\r\n"===a?i=2:"\n"===a&&(i=1);let s=g.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(s="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=g.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let c=g.largeFileOptimizations;e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(c="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let d=g.bracketPairColorizationOptions;return e.editor?.bracketPairColorization&&"object"===typeof e.editor.bracketPairColorization&&(d={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:r,insertSpaces:o,detectIndentation:l,defaultEOL:i,trimAutoWhitespace:s,largeFileOptimizations:c,bracketPairColorizationOptions:d}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===i.OS||2===i.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(e,t,n){const r="string"===typeof e?e:e.languageId;let o=this._modelCreationOptionsByLanguageAndResource[r+t];if(!o){const e=this._configurationService.getValue("editor",{overrideIdentifier:r,resource:t}),i=this._getEOL(t,r);o=uo._readModelOptions({editor:e,eol:i},n),this._modelCreationOptionsByLanguageAndResource[r+t]=o}return o}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let r=0,o=n.length;r<o;r++){const o=n[r],i=this._models[o],a=i.model.getLanguageId(),s=i.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:a,resource:s})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:a,resource:s}))continue;const l=t[a+s],c=this.getCreationOptions(a,s,i.model.isForSimpleWidget);uo._setModelOptionsForModel(i.model,c,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace&&(0,_o.aI)(n.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(yo(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(yo(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(yo(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,r){const o=this.getCreationOptions(t,n,r),i=this._instantiationService.createInstance(Xr,e,t,o,n);if(n&&this._disposedModels.has(yo(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),r=this._getSHA1Computer(),o=!!r.canComputeSHA1(i)&&r.computeSHA1(i)===e.sha1;if(o||e.sharesUndoRedoStack){for(const e of t.past)Bt(e)&&e.matchesResource(n)&&e.setModel(i);for(const e of t.future)Bt(e)&&e.matchesResource(n)&&e.setModel(i);this._undoRedoService.setElementsValidFlag(n,!0,(e=>Bt(e)&&e.matchesResource(n))),o&&(i._overwriteVersionId(e.versionId),i._overwriteAlternativeVersionId(e.alternativeVersionId),i._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const a=yo(i.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");const s=new vo(i,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[a]=s,s}createModel(e,t,n,r=!1){let o;return o=t?this._createModelData(e,t,n,r):this._createModelData(e,X.vH,n,r),this._onModelAdded.fire(o.model),o.model}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,r=t.length;n<r;n++){const r=t[n];e.push(this._models[r].model)}return e}getModel(e){const t=yo(e),n=this._models[t];return n?n.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===mo.ny.file||e.scheme===mo.ny.vscodeRemote||e.scheme===mo.ny.vscodeUserData||e.scheme===mo.ny.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){const t=yo(e.uri),n=this._models[t],r=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString();let o=!1,i=0;if(r||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){const t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(const n of t.past)Bt(n)&&n.matchesResource(e.uri)&&(o=!0,i+=n.heapSize(e.uri),n.setModel(e.uri));for(const n of t.future)Bt(n)&&n.matchesResource(e.uri)&&(o=!0,i+=n.heapSize(e.uri),n.setModel(e.uri))}}const a=uo.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,s=this._getSHA1Computer();if(o)if(r||!(i>a)&&s.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(a-i),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>Bt(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new Eo(e.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),r,i,s.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!r){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const n=t.oldLanguage,r=e.getLanguageId(),o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),i=this.getCreationOptions(r,e.uri,e.isForSimpleWidget);uo._setModelOptionsForModel(e,i,o),this._onModelModeChanged.fire({model:e,oldLanguageId:n})}_getSHA1Computer(){return new To}};So=uo=ho([go(0,q.pG),go(1,po.ITextResourcePropertiesService),go(2,zr),go(3,K._Y)],So);class To{static{this.MAX_MODEL_SIZE=10485760}canComputeSHA1(e){return e.getValueLength()<=To.MAX_MODEL_SIZE}computeSHA1(e){const t=new fo.v7,n=e.createSnapshot();let r;for(;r=n.read();)t.update(r);return t.digest()}}},8938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextModelService:()=>r});const r=(0,n(3591).u1)("textModelService")},8232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeSemanticTokensDto:()=>i});var r=n(1674),o=n(8067);function i(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const r of e.deltas)t[n++]=r.start,t[n++]=r.deleteCount,r.data?(t[n++]=r.data.length,t.set(r.data,n),n+=r.data.length):t[n++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return o.cm()||function(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],r=e[t+1],o=e[t+2],i=e[t+3];e[t+0]=i,e[t+1]=o,e[t+2]=r,e[t+3]=n}}(t),r.MB.wrap(t)}(t)}},5538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensProviderStyling:()=>_,toMultilineTokens2:()=>h});n(5982);var r=n(5724),o=n(3511),i=n(3069),a=n(6677),s=n(4454);class l{static create(e,t){return new l(e,new c(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new a.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber,[r,o,i]=this._tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new l(this._startLineNumber,r),new l(this._startLineNumber+i,o)]}applyEdit(e,t){const[n,r,o]=(0,s.W)(t);this.acceptEdit(e,n,r,o,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,r,o){this._acceptDeleteRange(e),this._acceptInsertText(new i.y(e.startLineNumber,e.startColumn),t,n,r,o),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,n=e.endLineNumber-this._startLineNumber;if(n<0){const e=n-t;return void(this._startLineNumber-=e)}const r=this._tokens.getMaxDeltaLine();if(!(t>=r+1)){if(t<0&&n>=r+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const r=-t;this._startLineNumber-=r,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,r,o){if(0===t&&0===n)return;const i=e.lineNumber-this._startLineNumber;if(i<0)return void(this._startLineNumber+=t);i>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(i,e.column-1,t,n,r,o)}}class c{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),r=this._getEndCharacter(e-1);return new a.Q(0,t+1,n,r+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const r=t+Math.floor((n-t)/2),o=this._getDeltaLine(r);if(o<e)t=r+1;else{if(!(o>e)){let o=r;for(;o>t&&this._getDeltaLine(o-1)===e;)o--;let i=r;for(;i<n&&this._getDeltaLine(i+1)===e;)i++;return new d(this._tokens.subarray(4*o,4*i+4))}n=r-1}}return this._getDeltaLine(t)===e?new d(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,r){const o=this._tokens,i=this._tokenCount;let a=0,s=!1,l=0;for(let c=0;c<i;c++){const i=4*c,d=o[i],u=o[i+1],p=o[i+2],f=o[i+3];if((d>e||d===e&&p>=t)&&(d<n||d===n&&u<=r))s=!0;else{if(0===a&&(l=d),s){const e=4*a;o[e]=d-l,o[e+1]=u,o[e+2]=p,o[e+3]=f}a++}}return this._tokenCount=a,l}split(e,t,n,r){const o=this._tokens,i=this._tokenCount,a=[],s=[];let l=a,d=0,u=0;for(let c=0;c<i;c++){const i=4*c,a=o[i],p=o[i+1],f=o[i+2],m=o[i+3];if(a>e||a===e&&f>=t){if(a<n||a===n&&p<=r)continue;l!==s&&(l=s,d=0,u=a)}l[d++]=a-u,l[d++]=p,l[d++]=f,l[d++]=m}return[new c(new Uint32Array(a)),new c(new Uint32Array(s)),u]}acceptDeleteRange(e,t,n,r,o){const i=this._tokens,a=this._tokenCount,s=r-t;let l=0,c=!1;for(let d=0;d<a;d++){const u=4*d;let p=i[u],f=i[u+1],m=i[u+2];const _=i[u+3];if(p<t||p===t&&m<=n){l++;continue}if(p===t&&f<n)p===r&&m>o?m-=o-n:m=n;else if(p===t&&f===n){if(!(p===r&&m>o)){c=!0;continue}m-=o-n}else if(p<r||p===r&&f<o){if(!(p===r&&m>o)){c=!0;continue}p=t,f=n,m=f+(m-o)}else if(p>r){if(0===s&&!c){l=a;break}p-=s}else{if(!(p===r&&f>=o))throw new Error("Not possible!");e&&0===p&&(f+=e,m+=e),p-=s,f-=o-n,m-=o-n}const h=4*l;i[h]=p,i[h+1]=f,i[h+2]=m,i[h+3]=_,l++}this._tokenCount=l}acceptInsertText(e,t,n,r,o,i){const a=0===n&&1===r&&(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122),s=this._tokens,l=this._tokenCount;for(let c=0;c<l;c++){const i=4*c;let l=s[i],d=s[i+1],u=s[i+2];if(!(l<e||l===e&&u<t)){if(l===e&&u===t){if(!a)continue;u+=1}else if(l===e&&d<t&&t<u)0===n?u+=r:u=t;else{if(l===e&&d===t&&a)continue;if(l===e)if(l+=n,0===n)d+=r,u+=r;else{const e=u-d;d=o+(d-t),u=d+e}else l+=n}s[i]=l,s[i+1]=d,s[i+2]=u}}}}class d{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}var u=n(154),p=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},f=function(e,t){return function(n,r){t(n,r,e)}};const m=!1;let _=class{constructor(e,t,n,r){this._legend=e,this._themeService=t,this._languageService=n,this._logService=r,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new y}getMetadata(e,t,n){const r=this._languageService.languageIdCodec.encodeLanguageId(n),o=this._hashTable.get(e,t,r);let i;if(o)i=o.metadata;else{let o=this._legend.tokenTypes[e];const a=[];if(o){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&a.push(this._legend.tokenModifiers[t]),e>>=1;m;const r=this._themeService.getColorTheme().getTokenStyleMetadata(o,a,n);if("undefined"===typeof r)i=2147483647;else{if(i=0,"undefined"!==typeof r.italic){i|=1|(r.italic?1:0)<<11}if("undefined"!==typeof r.bold){i|=2|(r.bold?2:0)<<11}if("undefined"!==typeof r.underline){i|=4|(r.underline?4:0)<<11}if("undefined"!==typeof r.strikethrough){i|=8|(r.strikethrough?8:0)<<11}if(r.foreground){i|=16|r.foreground<<15}0===i&&(i=2147483647)}}else i=2147483647,o="not-in-legend";this._hashTable.add(e,t,r,i)}return i}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,n,r,o){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${n}: The provided start offset ${r} is outside the previous data (length ${o}).`))}};function h(e,t,n){const r=e.data,o=e.data.length/5|0,i=Math.max(Math.ceil(o/1024),400),a=[];let s=0,c=1,d=0;for(;s<o;){const e=s;let u=Math.min(e+i,o);if(u<o){let t=u;for(;t-1>e&&0===r[5*t];)t--;if(t-1===e){let e=u;for(;e+1<o&&0===r[5*e];)e++;u=e}else u=t}let p=new Uint32Array(4*(u-e)),f=0,m=0,_=0,h=0;for(;s<u;){const e=5*s,o=r[e],i=r[e+1],a=c+o|0,l=0===o?d+i|0:i,u=l+r[e+2]|0,g=r[e+3],y=r[e+4];if(u<=l)t.warnInvalidLengthSemanticTokens(a,l+1);else if(_===a&&h>l)t.warnOverlappingSemanticTokens(a,l+1);else{const e=t.getMetadata(g,y,n);2147483647!==e&&(0===m&&(m=a),p[f]=a-m,p[f+1]=l,p[f+2]=u,p[f+3]=e,f+=4,_=a,h=u)}c=a,d=l,s++}f!==p.length&&(p=p.subarray(0,f));const g=l.create(m,p);a.push(g)}return a}_=p([f(1,r.Gy),f(2,u.L),f(3,o.rr)],_);class g{constructor(e,t,n,r){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=r,this.next=null}}class y{static{this._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]}constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=y._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<y._SIZES.length?2/3*this._currentLength:0),this._elements=[],y._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const r=this._hashFunc(e,t,n);let o=this._elements[r];for(;o;){if(o.tokenTypeIndex===e&&o.tokenModifierSet===t&&o.languageId===n)return o;o=o.next}return null}add(e,t,n,r){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=y._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<y._SIZES.length?2/3*this._currentLength:0),this._elements=[],y._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new g(e,t,n,r))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}},4243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ISemanticTokensStylingService:()=>r});const r=(0,n(3591).u1)("semanticTokensStylingService")},7004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SemanticTokensStylingService:()=>p});var r=n(1484),o=n(154),i=n(5724),a=n(3511),s=n(5538),l=n(4243),c=n(4621),d=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},u=function(e,t){return function(n,r){t(n,r,e)}};let p=class extends r.jG{constructor(e,t,n){super(),this._themeService=e,this._logService=t,this._languageService=n,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new s.SemanticTokensProviderStyling(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};p=d([u(0,i.Gy),u(1,a.rr),u(2,o.L)],p),(0,c.v)(l.ISemanticTokensStylingService,p,1)},796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>g,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>m,WorkerTextModelSyncClient:()=>_,WorkerTextModelSyncServer:()=>h});var r=n(1940),o=n(1484),i=n(9400),a=n(3069),s=n(6677),l=n(6486),c=n(1508),d=(n(9861),n(5152));class u{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,d.j)(e);const n=this.values,r=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,d.j)(e),t=(0,d.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,d.j)(e),t=(0,d.j)(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;const o=n.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,d.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0,o=0,i=0;for(;t<=n;)if(r=t+(n-t)/2|0,o=this.prefixSum[r],i=o-this.values[r],e<i)n=r-1;else{if(!(e>=o))break;t=r+1}return new p(r,e-i)}}class p{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class f{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new a.y(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new u(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,c.uz)(t);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);const r=new Uint32Array(n.length-1);for(let o=1;o<n.length;o++)this._lines.splice(e.lineNumber+o-1,0,n[o]),r[o-1]=n[o].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}const m=6e4;class _ extends o.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new r.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(m/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,o.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>m&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const r=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const i=new o.Cm;i.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(r.toString(),e)}))),i.add(n.onWillDispose((()=>{this._stopModelSync(r)}))),i.add((0,o.s)((()=>{this._proxy.$acceptRemovedModel(r)}))),this._syncedModels[r]=i}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,o.AS)(t)}}class h{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new g(i.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class g extends f{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const r=this._lines[n],o=this.offsetAt(new a.y(n+1,1)),i=r.matchAll(e);for(const e of i)(e.index||0===e.index)&&(e.index=e.index+o),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new s.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,o="",i=0,a=[];return{*[Symbol.iterator](){for(;;)if(i<a.length){const e=o.substring(a[i].start,a[i].end);i+=1,yield e}else{if(!(r<t.length))break;o=t[r],a=n(o,e),i=0,r+=1}}}}getLineWords(e,t){const n=this._lines[e-1],r=this._wordenize(n,t),o=[];for(const i of r)o.push({word:n.substring(i.start,i.end),startColumn:i.start+1,endColumn:i.end+1});return o}_wordenize(e,t){const n=[];let r;for(t.lastIndex=0;(r=t.exec(e))&&0!==r[0].length;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,o=[];o.push(this._lines[n].substring(e.startColumn-1));for(let i=n+1;i<r;i++)o.push(this._lines[i]);return o.push(this._lines[r].substring(0,e.endColumn-1)),o.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!a.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,r=!1;if(t<1)t=1,n=1,r=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}}},8868:(e,t,n)=>{"use strict";n.r(t)},360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITextResourceConfigurationService:()=>o,ITextResourcePropertiesService:()=>i});var r=n(3591);const o=(0,r.u1)("textResourceConfigurationService"),i=(0,r.u1)("textResourcePropertiesService")},4432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeSitterParserService:()=>r});const r=(0,n(3591).u1)("treeSitterParserService")},6723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DraggedTreeItemsIdentifier:()=>o,TreeViewsDnDService:()=>r});class r{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class o{constructor(e){this.identifier=e}}},9100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ITreeViewsDnDService:()=>a});var r=n(4621),o=n(3591),i=n(6723);const a=(0,o.u1)("treeViewsDndService");(0,r.v)(a,i.TreeViewsDnDService,1)},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var r=n(6677),o=n(7729),i=n(1508),a=n(6782),s=n(6486);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,d=n?n.endLineNumber:e.getLineCount(),u=new c(t),p=u.getCandidateCodePoints();let f;var m;f="allNonBasicAscii"===p?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp(""+(m=Array.from(p),`[${i.bm(m.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const _=new o.W5(null,f),h=[];let g,y=!1,v=0,b=0,E=0;e:for(let o=l,c=d;o<=c;o++){const t=e.getLineContent(o),n=t.length;_.reset(0);do{if(g=_.next(t),g){let e=g.index,l=g.index+g[0].length;if(e>0){const n=t.charCodeAt(e-1);i.pc(n)&&e--}if(l+1<n){const e=t.charCodeAt(l-1);i.pc(e)&&l++}const c=t.substring(e,l);let d=(0,s.Th)(e+1,s.Ld,t,0);d&&d.endColumn<=e+1&&(d=null);const p=u.shouldHighlightNonBasicASCII(c,d?d.word:null);if(0!==p){3===p?v++:2===p?b++:1===p?E++:(0,a.xb)(p);const t=1e3;if(h.length>=t){y=!0;break e}h.push(new r.Q(o,e+1,o,l+1))}}}while(g)}return{ranges:h,hasMore:y,ambiguousCharacterCount:v,invisibleCharacterCount:b,nonBasicAsciiCharacterCount:E}}static computeUnicodeHighlightReason(e,t){const n=new c(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),o=n.ambiguousCharacters.getPrimaryConfusable(r),a=i.tl.getLocales().filter((e=>!i.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r)));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:a}}case 1:return{kind:2}}}}class c{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=i.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of i.y_.codePoints)d(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,o=!1;if(t)for(const a of t){const e=a.codePointAt(0),t=i.aC(a);r=r||t,t||this.ambiguousCharacters.isAmbiguous(e)||i.y_.isInvisibleCharacter(e)||(o=!0)}return!r&&o?0:this.options.invisibleCharacters&&!d(e)&&i.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function d(e){return" "===e||"\n"===e||"\t"===e}},8209:(e,t,n)=>{"use strict";function r(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>r,kg:()=>a});const o="pseudo"===r()||"undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function i(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const r=n[0],o=t[r];let i=e;return"string"===typeof o?i=o:"number"!==typeof o&&"boolean"!==typeof o&&void 0!==o&&null!==o||(i=String(o)),i})),o&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function a(e,t,...n){return i("number"===typeof e?s(e,t):t,n)}function s(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!==typeof n){if("string"===typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}},4001:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>o,pG:()=>r});const r=(0,n(3591).u1)("configurationService");function o(e){return e.replace(/[\[\]]/g,"")}},1646:(e,t,n)=>{"use strict";n.d(t,{Fd:()=>d});var r=n(9861),o=n(1234),i=n(631),a=n(8209),s=n(4001),l=n(8748),c=n(6359);const d={Configuration:"base.contributions.configuration"},u={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},_={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},g="vscode://schemas/settings/resourceLanguage",y=c.O.as(l.F.JSONContribution);const v="\\[([^\\]]+)\\]",b=new RegExp(v,"g"),E=`^(${v})+$`,S=new RegExp(E);function T(e){const t=[];if(S.test(e)){let n=b.exec(e);for(;n?.length;){const r=n[1].trim();r&&t.push(r),n=b.exec(e)}}return(0,r.dM)(t)}const x=new class{constructor(){this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=new o.vl,this._onDidUpdateConfiguration=new o.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:a.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},y.registerSchema(g,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),y.registerSchema(g,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const n=[];for(const{overrides:r,source:o}of e)for(const e in r){t.add(e);const i=this.configurationDefaultsOverrides.get(e)??this.configurationDefaultsOverrides.set(e,{configurationDefaultOverrides:[]}).get(e),a=r[e];if(i.configurationDefaultOverrides.push({value:a,source:o}),S.test(e)){const t=this.mergeDefaultConfigurationsForOverrideIdentifier(e,a,o,i.configurationDefaultOverrideValue);if(!t)continue;i.configurationDefaultOverrideValue=t,this.updateDefaultOverrideProperty(e,t,o),n.push(...T(e))}else{const t=this.mergeDefaultConfigurationsForConfigurationProperty(e,a,o,i.configurationDefaultOverrideValue);if(!t)continue;i.configurationDefaultOverrideValue=t;const n=this.configurationProperties[e];n&&(this.updatePropertyDefaultValue(e,n),this.updateSchema(e,n))}}this.doRegisterOverrideIdentifiers(n)}updateDefaultOverrideProperty(e,t,n){const r={type:"object",default:t.value,description:a.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",(0,s.Mo)(e)),$ref:g,defaultDefaultValue:t.value,source:n,defaultValueSource:n};this.configurationProperties[e]=r,this.defaultLanguageConfigurationOverridesNode.properties[e]=r}mergeDefaultConfigurationsForOverrideIdentifier(e,t,n,r){const o=r?.value||{},a=r?.source??new Map;if(a instanceof Map){for(const e of Object.keys(t)){const r=t[e];if(i.Gv(r)&&(i.b0(o[e])||i.Gv(o[e]))){if(o[e]={...o[e]??{},...r},n)for(const t in r)a.set(`${e}.${t}`,n)}else o[e]=r,n?a.set(e,n):a.delete(e)}return{value:o,source:a}}console.error("objectConfigurationSources is not a Map")}mergeDefaultConfigurationsForConfigurationProperty(e,t,n,r){const o=this.configurationProperties[e],a=r?.value??o?.defaultDefaultValue;let s=n;if(i.Gv(t)&&(void 0!==o&&"object"===o.type||void 0===o&&(i.b0(a)||i.Gv(a)))){if(s=r?.source??new Map,!(s instanceof Map))return void console.error("defaultValueSource is not a Map");for(const r in t)n&&s.set(`${e}.${r}`,n);t={...i.Gv(a)?a:{},...t}}return{value:t,source:s}}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,n),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,n,r,o=3,a){o=i.z(e.scope)?o:e.scope;const s=e.properties;if(s)for(const c in s){const e=s[c];t&&A(c,e)?delete s[c]:(e.source=n,e.defaultDefaultValue=s[c].default,this.updatePropertyDefaultValue(c,e),S.test(c)?e.scope=void 0:(e.scope=i.z(e.scope)?o:e.scope,e.restricted=i.z(e.restricted)?!!r?.includes(c):e.restricted),!s[c].hasOwnProperty("included")||s[c].included?(this.configurationProperties[c]=s[c],s[c].policy?.name&&this.policyConfigurations.set(s[c].policy.name,c),!s[c].deprecationMessage&&s[c].markdownDeprecationMessage&&(s[c].deprecationMessage=s[c].markdownDeprecationMessage),a.add(c)):(this.excludedConfigurationProperties[c]=s[c],delete s[c]))}const l=e.allOf;if(l)for(const i of l)this.validateAndRegisterProperties(i,t,n,r,o,a)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);const r=e.allOf;r?.forEach(t)};t(e)}updateSchema(e,t){switch(u.properties[e]=t,t.scope){case 1:p.properties[e]=t;break;case 2:f.properties[e]=t;break;case 6:m.properties[e]=t;break;case 3:_.properties[e]=t;break;case 4:h.properties[e]=t;break;case 5:h.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:a.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:a.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:g};this.updatePropertyDefaultValue(t,n),u.properties[t]=n,p.properties[t]=n,f.properties[t]=n,m.properties[t]=n,_.properties[t]=n,h.properties[t]=n}}registerOverridePropertyPatternKey(){const e={type:"object",description:a.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:a.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:g};u.patternProperties[E]=e,p.patternProperties[E]=e,f.patternProperties[E]=e,m.patternProperties[E]=e,_.patternProperties[E]=e,h.patternProperties[E]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let r,o;!n||t.disallowConfigurationDefault&&n.source||(r=n.value,o=n.source),i.b0(r)&&(r=t.defaultDefaultValue,o=void 0),i.b0(r)&&(r=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=r,t.defaultValueSource=o}};function A(e,t){return e.trim()?S.test(e)?a.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==x.getConfigurationProperties()[e]?a.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):t.policy?.name&&void 0!==x.getPolicyConfigurations().get(t.policy?.name)?a.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,t.policy?.name,x.getPolicyConfigurations().get(t.policy?.name)):null:a.kg("config.property.empty","Cannot register an empty property")}c.O.add(d.Configuration,x)},4621:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});class r{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const o=[];function i(e,t,n){t instanceof r||(t=new r(t,[],Boolean(n))),o.push([e,t])}},3591:(e,t,n)=>{"use strict";var r;n.d(t,{_Y:()=>o,u1:()=>i}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(r||(r={}));const o=i("instantiationService");function i(e){if(r.serviceIds.has(e))return r.serviceIds.get(e);const t=function(e,n,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[r.DI_TARGET]===t?t[r.DI_DEPENDENCIES].push({id:e,index:n}):(t[r.DI_DEPENDENCIES]=[{id:e,index:n}],t[r.DI_TARGET]=t)}(t,e,o)};return t.toString=()=>e,r.serviceIds.set(e,t),t}},8748:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});var r=n(1234),o=n(6359);const i={JSONContribution:"base.contributions.json"};const a=new class{constructor(){this._onDidChangeSchema=new r.vl,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};o.O.add(i.JSONContribution,a)},3511:(e,t,n)=>{"use strict";n.d(t,{rr:()=>X,$b:()=>$});n(1234);var r=n(1484),o=n(8067),i=n(1508),a=n(4383),s=n(8209);function l(...e){switch(e.length){case 1:return(0,s.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,s.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,s.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const c=(0,s.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),d=(0,s.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class u{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,a.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0))))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;switch(this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(l("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(l("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(l("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&(this._input.charCodeAt(this._current)===e&&(this._current++,!0))}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),r={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(r)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=u._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(c):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(d);const r=this._input.charCodeAt(e);if(t)t=!1;else{if(47===r&&!n){e++;break}91===r?n=!0:92===r?t=!0:93===r&&(n=!1)}e++}for(;e<this._input.length&&u._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const r=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:r,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}var p=n(3591);const f=new Map;f.set("false",!1),f.set("true",!0),f.set("isMac",o.zx),f.set("isLinux",o.j9),f.set("isWindows",o.uF),f.set("isWeb",o.HZ),f.set("isMacNative",o.zx&&!o.HZ),f.set("isEdge",o.UP),f.set("isFirefox",o.gm),f.set("isChrome",o.H8),f.set("isSafari",o.nr);const m=Object.prototype.hasOwnProperty,_={regexParsingWithErrorRecovery:!0},h=(0,s.kg)("contextkey.parser.error.emptyString","Empty context key expression"),g=(0,s.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),y=(0,s.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,s.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),b=(0,s.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),E=(0,s.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),S=(0,s.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),T=(0,s.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class x{static{this._parseError=new Error}constructor(e=_){this._config=e,this._scanner=new u,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?E:void 0;throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:u.getLexeme(e),additionalInfo:t}),x._parseError}return e}catch(t){if(t!==x._parseError)throw t;return}}else this._parsingErrors.push({message:h,offset:0,lexeme:"",additionalInfo:g})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:A.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:A.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),R.INSTANCE;case 12:return this._advance(),C.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),e?.negate()}case 17:return this._advance(),P.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),A.true();case 12:return this._advance(),A.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const r=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const n=e.lexeme,o=n.lastIndexOf("/"),i=o===n.length-1?void 0:this._removeFlagsGY(n.substring(o+1));let a;try{a=new RegExp(n.substring(1,o),i)}catch(t){throw this._errExpectedButGot("REGEX",e)}return B.create(r,a)}switch(e.type){case 10:case 19:{const n=[e.lexeme];this._advance();let o=this._peek(),i=0;for(let t=0;t<e.lexeme.length;t++)40===e.lexeme.charCodeAt(t)?i++:41===e.lexeme.charCodeAt(t)&&i--;for(;!this._isAtEnd()&&15!==o.type&&16!==o.type;){switch(o.type){case 0:i++;break;case 1:i--;break;case 10:case 18:for(let t=0;t<o.lexeme.length;t++)40===o.lexeme.charCodeAt(t)?i++:41===e.lexeme.charCodeAt(t)&&i--}if(i<0)break;n.push(u.getLexeme(o)),this._advance(),o=this._peek()}const a=n.join(""),s=a.lastIndexOf("/"),l=s===a.length-1?void 0:this._removeFlagsGY(a.substring(s+1));let c;try{c=new RegExp(a.substring(1,s),l)}catch(t){throw this._errExpectedButGot("REGEX",e)}return A.regex(r,c)}case 18:{const t=e.lexeme;this._advance();let o=null;if(!(0,i.AV)(t)){const r=t.indexOf("/"),i=t.lastIndexOf("/");if(r!==i&&r>=0){const a=t.slice(r+1,i),s="i"===t[i+1]?"i":"";try{o=new RegExp(a,s)}catch(n){throw this._errExpectedButGot("REGEX",e)}}}if(null===o)throw this._errExpectedButGot("REGEX",e);return B.create(r,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,y);const e=this._value();return A.notIn(r,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return A.equals(r,e);switch(e){case"true":return A.has(r);case"false":return A.not(r);default:return A.equals(r,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return A.notEquals(r,e);switch(e){case"true":return A.not(r);case"false":return A.has(r);default:return A.notEquals(r,e)}}case 5:return this._advance(),W.create(r,this._value());case 6:return this._advance(),z.create(r,this._value());case 7:return this._advance(),O.create(r,this._value());case 8:return this._advance(),F.create(r,this._value());case 13:return this._advance(),A.in(r,this._value());default:return A.has(r)}}case 20:throw this._parsingErrors.push({message:S,offset:e.offset,lexeme:"",additionalInfo:T}),x._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const r=(0,s.kg)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,u.getLexeme(t)),o=t.offset,i=u.getLexeme(t);return this._parsingErrors.push({message:r,offset:o,lexeme:i,additionalInfo:n}),x._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}class A{static false(){return R.INSTANCE}static true(){return C.INSTANCE}static has(e){return D.create(e)}static equals(e,t){return N.create(e,t)}static notEquals(e,t){return k.create(e,t)}static regex(e,t){return B.create(e,t)}static in(e,t){return M.create(e,t)}static notIn(e,t){return L.create(e,t)}static not(e){return P.create(e)}static and(...e){return V.create(e,null,!0)}static or(...e){return U.create(e,null,!0)}static{this._parser=new x({regexParsingWithErrorRecovery:!1})}static deserialize(e){if(void 0===e||null===e)return;return this._parser.parse(e)}}function I(e,t){return e.cmp(t)}class R{static{this.INSTANCE=new R}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return C.INSTANCE}}class C{static{this.INSTANCE=new C}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return R.INSTANCE}}class D{static create(e,t=null){const n=f.get(e);return"boolean"===typeof n?n?C.INSTANCE:R.INSTANCE:new D(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=f.get(this.key);return"boolean"===typeof e?e?C.INSTANCE:R.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this)),this.negated}}class N{static create(e,t,n=null){if("boolean"===typeof t)return t?D.create(e,n):P.create(e,n);const r=f.get(e);if("boolean"===typeof r){return t===(r?"true":"false")?C.INSTANCE:R.INSTANCE}return new N(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=f.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?C.INSTANCE:R.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this.value,this)),this.negated}}class M{static create(e,t){return new M(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):"string"===typeof n&&"object"===typeof t&&null!==t&&m.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=L.create(this.key,this.valueKey)),this.negated}}class L{static create(e,t){return new L(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=M.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class k{static create(e,t,n=null){if("boolean"===typeof t)return t?P.create(e,n):D.create(e,n);const r=f.get(e);if("boolean"===typeof r){return t===(r?"true":"false")?R.INSTANCE:C.INSTANCE}return new k(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=f.get(this.key);if("boolean"===typeof e){const t=e?"true":"false";return this.value===t?R.INSTANCE:C.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this.key,this.value,this)),this.negated}}class P{static create(e,t=null){const n=f.get(e);return"boolean"===typeof n?n?R.INSTANCE:C.INSTANCE:new P(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:K(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=f.get(this.key);return"boolean"===typeof e?e?R.INSTANCE:C.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this)),this.negated}}function w(e,t){if("string"===typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"===typeof e||"number"===typeof e?t(e):R.INSTANCE}class O{static create(e,t,n=null){return w(t,(t=>new O(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,n=null){return w(t,(t=>new F(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this.key,this.value,this)),this.negated}}class W{static create(e,t,n=null){return w(t,(t=>new W(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class z{static create(e,t,n=null){return w(t,(t=>new z(e,t,n)))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!==typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class B{static create(e,t){return new B(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=G.create(this)),this.negated}}class G{static create(e){return new G(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function j(e){let t=null;for(let n=0,r=e.length;n<r;n++){const r=e[n].substituteConstants();if(e[n]!==r&&null===t){t=[];for(let r=0;r<n;r++)t[r]=e[r]}null!==t&&(t[n]=r)}return null===t?e:t}class V{static create(e,t,n){return V._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=I(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=j(this.expr);return e===this.expr?this:V.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,n){const r=[];let o=!1;for(const i of e)if(i)if(1!==i.type){if(0===i.type)return R.INSTANCE;6!==i.type?r.push(i):r.push(...i.expr)}else o=!0;if(0===r.length&&o)return C.INSTANCE;if(0!==r.length){if(1===r.length)return r[0];r.sort(I);for(let e=1;e<r.length;e++)r[e-1].equals(r[e])&&(r.splice(e,1),e--);if(1===r.length)return r[0];for(;r.length>1;){const e=r[r.length-1];if(9!==e.type)break;r.pop();const t=r.pop(),o=0===r.length,i=U.create(e.expr.map((e=>V.create([e,t],null,n))),null,o);i&&(r.push(i),r.sort(I))}if(1===r.length)return r[0];if(n){for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)if(r[e].negate().equals(r[t]))return R.INSTANCE;if(1===r.length)return r[0]}return new V(r,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,n){return U._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=I(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=j(this.expr);return e===this.expr?this:U.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let r=[],o=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return C.INSTANCE;9!==n.type?r.push(n):r=r.concat(n.expr)}else o=!0}if(0===r.length&&o)return R.INSTANCE;r.sort(I)}if(0!==r.length){if(1===r.length)return r[0];for(let e=1;e<r.length;e++)r[e-1].equals(r[e])&&(r.splice(e,1),e--);if(1===r.length)return r[0];if(n){for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)if(r[e].negate().equals(r[t]))return C.INSTANCE;if(1===r.length)return r[0]}return new U(r,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),r=[];for(const e of J(t))for(const t of J(n))r.push(V.create([e,t],null,!1));e.unshift(U.create(r,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class H extends D{static{this._info=[]}static all(){return H._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,"object"===typeof n?H._info.push({...n,key:e}):!0!==n&&H._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return N.create(this.key,e)}}(0,p.u1)("contextKeyService");function K(e,t){return e<t?-1:e>t?1:0}function q(e,t,n,r){return e<n?-1:e>n?1:t<r?-1:t>r?1:0}function J(e){return 9===e.type?e.expr:[e]}const X=(0,p.u1)("logService");var $;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}($||($={}));$.Info;r.jG;new H("logLevel",function(e){switch(e){case $.Trace:return"trace";case $.Debug:return"debug";case $.Info:return"info";case $.Warning:return"warn";case $.Error:return"error";case $.Off:return"off"}}($.Info))},6359:(e,t,n)=>{"use strict";n.d(t,{O:()=>i});var r=n(6782),o=n(631);const i=new class{constructor(){this.data=new Map}add(e,t){r.ok(o.Kg(e)),r.ok(o.Gv(t)),r.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},5845:(e,t,n)=>{"use strict";n.d(t,{buw:()=>A,b1q:()=>x,YtV:()=>M,Ubg:()=>j,IIb:()=>B,pOz:()=>z,whs:()=>O,Stt:()=>W,Hng:()=>F,yLC:()=>le,KoI:()=>ae,uMG:()=>se,x1A:()=>u});var r=n(6782),o=n(1940),i=n(7661),a=n(1234),s=n(8748),l=n(6359),c=n(8209);const d=new class{constructor(){this._onDidChangeSchema=new a.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,r=!1,o){const i={id:e,description:n,defaults:t,needsTransparency:r,deprecationMessage:o};this.colorsById[e]=i;const a={type:"string",format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(a.deprecationMessage=o),r&&(a.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",a.patternErrorMessage=c.kg("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={description:n,oneOf:[a,{type:"string",const:"default",description:c.kg("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n?.defaults){return g(null!==(r=n.defaults)&&"object"===typeof r&&"light"in r&&"dark"in r?n.defaults[t.type]:n.defaults,t)}var r}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const n=-1===e.indexOf(".")?0:1,r=-1===t.indexOf(".")?0:1;return n!==r?n-r:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function u(e,t,n,r,o){return d.registerColor(e,t,n,r,o)}function p(e,t){return{op:0,value:e,factor:t}}function f(e,t){return{op:1,value:e,factor:t}}function m(e,t){return{op:2,value:e,factor:t}}function _(...e){return{op:4,values:e}}function h(e,t,n,r){return{op:5,value:e,background:t,factor:n,transparency:r}}function g(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?i.Q1.fromHex(e):t.getColor(e):e instanceof i.Q1?e:"object"===typeof e?function(e,t){switch(e.op){case 0:return g(e.value,t)?.darken(e.factor);case 1:return g(e.value,t)?.lighten(e.factor);case 2:return g(e.value,t)?.transparent(e.factor);case 3:{const n=g(e.background,t);return n?g(e.value,t)?.makeOpaque(n):g(e.value,t)}case 4:for(const n of e.values){const e=g(n,t);if(e)return e}return;case 6:return g(t.defines(e.if)?e.then:e.else,t);case 5:{const n=g(e.value,t);if(!n)return;const r=g(e.background,t);return r?n.isDarkerThan(r)?i.Q1.getLighterColor(n,r,e.factor).transparent(e.transparency):i.Q1.getDarkerColor(n,r,e.factor).transparent(e.transparency):n.transparent(e.factor*e.transparency)}default:throw(0,r.xb)(e)}}(e,t):void 0}l.O.add("base.contributions.colors",d);const y="vscode://schemas/workbench-colors",v=l.O.as(s.F.JSONContribution);v.registerSchema(y,d.getColorSchema());const b=new o.uC((()=>v.notifySchemaChanged(y)),200);d.onDidChangeSchema((()=>{b.isScheduled()||b.schedule()}));const E=u("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),S=(u("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},c.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),u("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),u("descriptionForeground",{light:"#717171",dark:m(E,.7),hcDark:m(E,.7),hcLight:m(E,.7)},c.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),u("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},c.kg("iconForeground","The default color for icons in the workbench."))),T=u("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},c.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),x=u("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},c.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),A=u("contrastActiveBorder",{light:null,dark:null,hcDark:T,hcLight:T},c.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),I=(u("selection.background",null,c.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),u("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkForeground","Foreground color for links in text.")),u("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},c.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),u("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:i.Q1.black,hcLight:"#292929"},c.kg("textSeparatorForeground","Color for text separators.")),u("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},c.kg("textPreformatForeground","Foreground color for preformatted text segments.")),u("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},c.kg("textPreformatBackground","Background color for preformatted text segments.")),u("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},c.kg("textBlockQuoteBackground","Background color for block quotes in text.")),u("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:i.Q1.white,hcLight:"#292929"},c.kg("textBlockQuoteBorder","Border color for block quotes in text.")),u("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:i.Q1.black,hcLight:"#F2F2F2"},c.kg("textCodeBlockBackground","Background color for code blocks in text.")),u("sash.hoverBorder",T,c.kg("sashActiveBorder","Border color of active sashes.")),u("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:i.Q1.black,hcLight:"#0F4A85"},c.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),R=(u("badge.foreground",{dark:i.Q1.white,light:"#333",hcDark:i.Q1.white,hcLight:i.Q1.white},c.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),u("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},c.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),C=u("scrollbarSlider.background",{dark:i.Q1.fromHex("#797979").transparent(.4),light:i.Q1.fromHex("#646464").transparent(.4),hcDark:m(x,.6),hcLight:m(x,.4)},c.kg("scrollbarSliderBackground","Scrollbar slider background color.")),D=u("scrollbarSlider.hoverBackground",{dark:i.Q1.fromHex("#646464").transparent(.7),light:i.Q1.fromHex("#646464").transparent(.7),hcDark:m(x,.8),hcLight:m(x,.8)},c.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),N=u("scrollbarSlider.activeBackground",{dark:i.Q1.fromHex("#BFBFBF").transparent(.4),light:i.Q1.fromHex("#000000").transparent(.6),hcDark:x,hcLight:x},c.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),M=(u("progressBar.background",{dark:i.Q1.fromHex("#0E70C0"),light:i.Q1.fromHex("#0E70C0"),hcDark:x,hcLight:x},c.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),u("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("editorBackground","Editor background color."))),L=(u("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:i.Q1.white,hcLight:E},c.kg("editorForeground","Editor default foreground color.")),u("editorStickyScroll.background",M,c.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),u("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:i.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),u("editorStickyScroll.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),u("editorStickyScroll.shadow",R,c.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),u("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:i.Q1.white},c.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),k=u("editorWidget.foreground",E,c.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),P=u("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:x,hcLight:x},c.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),w=(u("editorWidget.resizeBorder",null,c.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),u("editorError.background",null,c.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},c.kg("editorError.foreground","Foreground color of error squigglies in the editor."))),O=(u("editorError.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},c.kg("errorBorder","If set, color of double underlines for errors in the editor.")),u("editorWarning.background",null,c.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0)),F=u("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},c.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),W=u("editorWarning.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#FFCC00").transparent(.8),hcLight:i.Q1.fromHex("#FFCC00").transparent(.8)},c.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),z=(u("editorInfo.background",null,c.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},c.kg("editorInfo.foreground","Foreground color of info squigglies in the editor."))),B=u("editorInfo.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},c.kg("infoBorder","If set, color of double underlines for infos in the editor.")),G=(u("editorHint.foreground",{dark:i.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},c.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),u("editorHint.border",{dark:null,light:null,hcDark:i.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},c.kg("hintBorder","If set, color of double underlines for hints in the editor.")),u("editorLink.activeForeground",{dark:"#4E94CE",light:i.Q1.blue,hcDark:i.Q1.cyan,hcLight:"#292929"},c.kg("activeLinkForeground","Color of active links.")),u("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},c.kg("editorSelectionBackground","Color of the editor selection."))),j=(u("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:i.Q1.white},c.kg("editorSelectionForeground","Color of the selected text for high contrast.")),u("editor.inactiveSelectionBackground",{light:m(G,.5),dark:m(G,.5),hcDark:m(G,.7),hcLight:m(G,.5)},c.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBackground",{light:h(G,M,.3,.6),dark:h(G,M,.3,.6),hcDark:null,hcLight:null},c.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:A,hcLight:A},c.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),u("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},c.kg("editorFindMatch","Color of the current search match.")),u("editor.findMatchForeground",null,c.kg("editorFindMatchForeground","Text color of the current search match.")),u("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},c.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),V=(u("editor.findMatchHighlightForeground",null,c.kg("findMatchHighlightForeground","Foreground color of the other search matches."),!0),u("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},c.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.findMatchBorder",{light:null,dark:null,hcDark:A,hcLight:A},c.kg("editorFindMatchBorder","Border color of the current search match.")),u("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:A,hcLight:A},c.kg("findMatchHighlightBorder","Border color of the other search matches."))),U=(u("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:m(A,.4),hcLight:m(A,.4)},c.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),u("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},c.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorHoverWidget.background",L,c.kg("hoverBackground","Background color of the editor hover."))),H=(u("editorHoverWidget.foreground",k,c.kg("hoverForeground","Foreground color of the editor hover.")),u("editorHoverWidget.border",P,c.kg("hoverBorder","Border color of the editor hover.")),u("editorHoverWidget.statusBarBackground",{dark:f(U,.2),light:p(U,.05),hcDark:L,hcLight:L},c.kg("statusBarBackground","Background color of the editor hover status bar.")),u("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:i.Q1.white,hcLight:i.Q1.black},c.kg("editorInlayHintForeground","Foreground color of inline hints"))),K=u("editorInlayHint.background",{dark:m(I,.1),light:m(I,.1),hcDark:m(i.Q1.white,.1),hcLight:m(I,.1)},c.kg("editorInlayHintBackground","Background color of inline hints")),q=(u("editorInlayHint.typeForeground",H,c.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),u("editorInlayHint.typeBackground",K,c.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),u("editorInlayHint.parameterForeground",H,c.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),u("editorInlayHint.parameterBackground",K,c.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),u("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},c.kg("editorLightBulbForeground","The color used for the lightbulb actions icon."))),J=(u("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},c.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),u("editorLightBulbAi.foreground",q,c.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),u("editor.snippetTabstopHighlightBackground",{dark:new i.Q1(new i.bU(124,124,124,.3)),light:new i.Q1(new i.bU(10,50,100,.2)),hcDark:new i.Q1(new i.bU(124,124,124,.3)),hcLight:new i.Q1(new i.bU(10,50,100,.2))},c.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),u("editor.snippetTabstopHighlightBorder",null,c.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),u("editor.snippetFinalTabstopHighlightBackground",null,c.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),u("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new i.Q1(new i.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},c.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new i.Q1(new i.bU(155,185,85,.2))),X=new i.Q1(new i.bU(255,0,0,.2)),$=(u("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},c.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},c.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.insertedLineBackground",{dark:J,light:J,hcDark:null,hcLight:null},c.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditor.removedLineBackground",{dark:X,light:X,hcDark:null,hcLight:null},c.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),u("diffEditorGutter.insertedLineBackground",null,c.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),u("diffEditorGutter.removedLineBackground",null,c.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),u("diffEditorOverview.insertedForeground",null,c.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),u("diffEditorOverview.removedForeground",null,c.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),u("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},c.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),u("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},c.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),u("diffEditor.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("diffEditorBorder","Border color between the two text editors.")),u("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},c.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),u("diffEditor.unchangedRegionBackground","sideBar.background",c.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedRegionForeground","foreground",c.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),u("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},c.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),u("widget.shadow",{dark:m(i.Q1.black,.36),light:m(i.Q1.black,.16),hcDark:null,hcLight:null},c.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),Y=(u("widget.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),u("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"))),Q=(u("toolbar.hoverOutline",{dark:null,light:null,hcDark:A,hcLight:A},c.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),u("toolbar.activeBackground",{dark:f(Y,.1),light:p(Y,.1),hcDark:null,hcLight:null},c.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),u("breadcrumb.foreground",m(E,.8),c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.background",M,c.kg("breadcrumbsBackground","Background color of breadcrumb items.")),u("breadcrumb.focusForeground",{light:p(E,.2),dark:f(E,.1),hcDark:f(E,.1),hcLight:f(E,.1)},c.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),u("breadcrumb.activeSelectionForeground",{light:p(E,.2),dark:f(E,.1),hcDark:f(E,.1),hcLight:f(E,.1)},c.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),u("breadcrumbPicker.background",L,c.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),i.Q1.fromHex("#40C8AE").transparent(.5)),Z=i.Q1.fromHex("#40A6FF").transparent(.5),ee=i.Q1.fromHex("#606060").transparent(.4),te=u("merge.currentHeaderBackground",{dark:Q,light:Q,hcDark:null,hcLight:null},c.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ne=(u("merge.currentContentBackground",m(te,.4),c.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.incomingHeaderBackground",{dark:Z,light:Z,hcDark:null,hcLight:null},c.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),re=(u("merge.incomingContentBackground",m(ne,.4),c.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.commonHeaderBackground",{dark:ee,light:ee,hcDark:null,hcLight:null},c.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),oe=(u("merge.commonContentBackground",m(re,.4),c.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),u("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},c.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),ie=(u("editorOverviewRuler.currentContentForeground",{dark:m(te,1),light:m(te,1),hcDark:oe,hcLight:oe},c.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.incomingContentForeground",{dark:m(ne,1),light:m(ne,1),hcDark:oe,hcLight:oe},c.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.commonContentForeground",{dark:m(re,1),light:m(re,1),hcDark:oe,hcLight:oe},c.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),u("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:"#AB5A00"},c.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),u("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",c.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u("problemsErrorIcon.foreground",w,c.kg("problemsErrorIconForeground","The color used for the problems error icon.")),u("problemsWarningIcon.foreground",F,c.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),u("problemsInfoIcon.foreground",z,c.kg("problemsInfoIconForeground","The color used for the problems info icon.")),u("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},c.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),ae=(u("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),u("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},c.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),u("minimap.infoHighlight",{dark:z,light:z,hcDark:B,hcLight:B},c.kg("minimapInfo","Minimap marker color for infos."))),se=u("minimap.warningHighlight",{dark:F,light:F,hcDark:W,hcLight:W},c.kg("overviewRuleWarning","Minimap marker color for warnings.")),le=u("minimap.errorHighlight",{dark:new i.Q1(new i.bU(255,18,18,.7)),light:new i.Q1(new i.bU(255,18,18,.7)),hcDark:new i.Q1(new i.bU(255,50,50,1)),hcLight:"#B5200D"},c.kg("minimapError","Minimap marker color for errors.")),ce=(u("minimap.background",null,c.kg("minimapBackground","Minimap background color.")),u("minimap.foregroundOpacity",i.Q1.fromHex("#000f"),c.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),u("minimapSlider.background",m(C,.5),c.kg("minimapSliderBackground","Minimap slider background color.")),u("minimapSlider.hoverBackground",m(D,.5),c.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),u("minimapSlider.activeBackground",m(N,.5),c.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),u("charts.foreground",E,c.kg("chartsForeground","The foreground color used in charts.")),u("charts.lines",m(E,.5),c.kg("chartsLines","The color used for horizontal lines in charts.")),u("charts.red",w,c.kg("chartsRed","The red color used in chart visualizations.")),u("charts.blue",z,c.kg("chartsBlue","The blue color used in chart visualizations.")),u("charts.yellow",F,c.kg("chartsYellow","The yellow color used in chart visualizations.")),u("charts.orange",ie,c.kg("chartsOrange","The orange color used in chart visualizations.")),u("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},c.kg("chartsGreen","The green color used in chart visualizations.")),u("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},c.kg("chartsPurple","The purple color used in chart visualizations.")),u("input.background",{dark:"#3C3C3C",light:i.Q1.white,hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("inputBoxBackground","Input box background.")),u("input.foreground",E,c.kg("inputBoxForeground","Input box foreground.")),u("input.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("inputBoxBorder","Input box border.")),u("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:x,hcLight:x},c.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields."))),de=u("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},c.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),ue=u("inputOption.activeBackground",{dark:m(T,.4),light:m(T,.2),hcDark:i.Q1.transparent,hcLight:i.Q1.transparent},c.kg("inputOption.activeBackground","Background hover color of options in input fields.")),pe=u("inputOption.activeForeground",{dark:i.Q1.white,light:i.Q1.black,hcDark:E,hcLight:E},c.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),fe=(u("input.placeholderForeground",{light:m(E,.5),dark:m(E,.5),hcDark:m(E,.7),hcLight:m(E,.7)},c.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),u("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("inputValidationInfoBackground","Input validation background color for information severity.")),u("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:E},c.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),u("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:x,hcLight:x},c.kg("inputValidationInfoBorder","Input validation border color for information severity.")),u("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),u("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:E},c.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),u("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:x,hcLight:x},c.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),u("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("inputValidationErrorBackground","Input validation background color for error severity.")),u("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:E},c.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),u("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:x,hcLight:x},c.kg("inputValidationErrorBorder","Input validation border color for error severity.")),u("dropdown.background",{dark:"#3C3C3C",light:i.Q1.white,hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("dropdownBackground","Dropdown background."))),me=(u("dropdown.listBackground",{dark:null,light:null,hcDark:i.Q1.black,hcLight:i.Q1.white},c.kg("dropdownListBackground","Dropdown list background.")),u("dropdown.foreground",{dark:"#F0F0F0",light:E,hcDark:i.Q1.white,hcLight:E},c.kg("dropdownForeground","Dropdown foreground."))),_e=u("dropdown.border",{dark:fe,light:"#CECECE",hcDark:x,hcLight:x},c.kg("dropdownBorder","Dropdown border.")),he=u("button.foreground",i.Q1.white,c.kg("buttonForeground","Button foreground color.")),ge=(u("button.separator",m(he,.4),c.kg("buttonSeparator","Button separator color.")),u("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},c.kg("buttonBackground","Button background color."))),ye=(u("button.hoverBackground",{dark:f(ge,.2),light:p(ge,.2),hcDark:ge,hcLight:ge},c.kg("buttonHoverBackground","Button background color when hovering.")),u("button.border",x,c.kg("buttonBorder","Button border color.")),u("button.secondaryForeground",{dark:i.Q1.white,light:i.Q1.white,hcDark:i.Q1.white,hcLight:E},c.kg("buttonSecondaryForeground","Secondary button foreground color.")),u("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:i.Q1.white},c.kg("buttonSecondaryBackground","Secondary button background color."))),ve=(u("button.secondaryHoverBackground",{dark:f(ye,.2),light:p(ye,.2),hcDark:null,hcLight:null},c.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),u("radio.activeForeground",pe,c.kg("radioActiveForeground","Foreground color of active radio option."))),be=(u("radio.activeBackground",ue,c.kg("radioBackground","Background color of active radio option.")),u("radio.activeBorder",ce,c.kg("radioActiveBorder","Border color of the active radio option.")),u("radio.inactiveForeground",null,c.kg("radioInactiveForeground","Foreground color of inactive radio option.")),u("radio.inactiveBackground",null,c.kg("radioInactiveBackground","Background color of inactive radio option.")),u("radio.inactiveBorder",{light:m(ve,.2),dark:m(ve,.2),hcDark:m(ve,.4),hcLight:m(ve,.2)},c.kg("radioInactiveBorder","Border color of the inactive radio option.")),u("radio.inactiveHoverBackground",de,c.kg("radioHoverBackground","Background color of inactive active radio option when hovering.")),u("checkbox.background",fe,c.kg("checkbox.background","Background color of checkbox widget.")),u("checkbox.selectBackground",L,c.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),u("checkbox.foreground",me,c.kg("checkbox.foreground","Foreground color of checkbox widget.")),u("checkbox.border",_e,c.kg("checkbox.border","Border color of checkbox widget.")),u("checkbox.selectBorder",S,c.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),u("keybindingLabel.background",{dark:new i.Q1(new i.bU(128,128,128,.17)),light:new i.Q1(new i.bU(221,221,221,.4)),hcDark:i.Q1.transparent,hcLight:i.Q1.transparent},c.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.foreground",{dark:i.Q1.fromHex("#CCCCCC"),light:i.Q1.fromHex("#555555"),hcDark:i.Q1.white,hcLight:E},c.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.border",{dark:new i.Q1(new i.bU(51,51,51,.6)),light:new i.Q1(new i.bU(204,204,204,.4)),hcDark:new i.Q1(new i.bU(111,195,223)),hcLight:x},c.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),u("keybindingLabel.bottomBorder",{dark:new i.Q1(new i.bU(68,68,68,.6)),light:new i.Q1(new i.bU(187,187,187,.4)),hcDark:new i.Q1(new i.bU(111,195,223)),hcLight:E},c.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),u("list.focusBackground",null,c.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusForeground",null,c.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusOutline",{dark:T,light:T,hcDark:A,hcLight:A},c.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),u("list.focusAndSelectionOutline",null,c.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),u("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:i.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."))),Ee=u("list.activeSelectionForeground",{dark:i.Q1.white,light:i.Q1.white,hcDark:null,hcLight:null},c.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Se=u("list.activeSelectionIconForeground",null,c.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Te=(u("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:i.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionForeground",null,c.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveSelectionIconForeground",null,c.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusBackground",null,c.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.inactiveFocusOutline",null,c.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),u("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:i.Q1.white.transparent(.1),hcLight:i.Q1.fromHex("#0F4A85").transparent(.1)},c.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),u("list.hoverForeground",null,c.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),u("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},c.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),u("list.dropBetweenBackground",{dark:S,light:S,hcDark:null,hcLight:null},c.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),u("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:T,hcLight:T},c.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")));u("list.focusHighlightForeground",{dark:Te,light:(xe=be,Ae=Te,Ie="#BBE7FF",{op:6,if:xe,then:Ae,else:Ie}),hcDark:Te,hcLight:Te},c.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var xe,Ae,Ie;u("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},c.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),u("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},c.kg("listErrorForeground","Foreground color of list items containing errors.")),u("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},c.kg("listWarningForeground","Foreground color of list items containing warnings.")),u("listFilterWidget.background",{light:p(L,0),dark:f(L,0),hcDark:L,hcLight:L},c.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),u("listFilterWidget.outline",{dark:i.Q1.transparent,light:i.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},c.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),u("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:x,hcLight:x},c.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),u("listFilterWidget.shadow",$,c.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),u("list.filterMatchBackground",{dark:j,light:j,hcDark:null,hcLight:null},c.kg("listFilterMatchHighlight","Background color of the filtered match.")),u("list.filterMatchBorder",{dark:V,light:V,hcDark:x,hcLight:A},c.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),u("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},c.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));const Re=u("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},c.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ce=(u("tree.inactiveIndentGuidesStroke",m(Re,.4),c.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),u("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},c.kg("tableColumnsBorder","Table border color between columns.")),u("tree.tableOddRowsBackground",{dark:m(E,.04),light:m(E,.04),hcDark:null,hcLight:null},c.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),u("editorActionList.background",L,c.kg("editorActionListBackground","Action List background color.")),u("editorActionList.foreground",k,c.kg("editorActionListForeground","Action List foreground color.")),u("editorActionList.focusForeground",Ee,c.kg("editorActionListFocusForeground","Action List foreground color for the focused item.")),u("editorActionList.focusBackground",be,c.kg("editorActionListFocusBackground","Action List background color for the focused item.")),u("menu.border",{dark:null,light:null,hcDark:x,hcLight:x},c.kg("menuBorder","Border color of menus.")),u("menu.foreground",me,c.kg("menuForeground","Foreground color of menu items.")),u("menu.background",fe,c.kg("menuBackground","Background color of menu items.")),u("menu.selectionForeground",Ee,c.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),u("menu.selectionBackground",be,c.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),u("menu.selectionBorder",{dark:null,light:null,hcDark:A,hcLight:A},c.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),u("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:x,hcLight:x},c.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),u("quickInput.background",L,c.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),u("quickInput.foreground",k,c.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),u("quickInputTitle.background",{dark:new i.Q1(new i.bU(255,255,255,.105)),light:new i.Q1(new i.bU(0,0,0,.06)),hcDark:"#000000",hcLight:i.Q1.white},c.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),u("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:i.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupForeground","Quick picker color for grouping labels.")),u("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:i.Q1.white,hcLight:"#0F4A85"},c.kg("pickerGroupBorder","Quick picker color for grouping borders.")),u("quickInput.list.focusBackground",null,"",void 0,c.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")));u("quickInputList.focusForeground",Ee,c.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),u("quickInputList.focusIconForeground",Se,c.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),u("quickInputList.focusBackground",{dark:_(Ce,be),light:_(Ce,be),hcDark:null,hcLight:null},c.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),u("search.resultsInfoForeground",{light:E,dark:m(E,.65),hcDark:E,hcLight:E},c.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),u("searchEditor.findMatchBackground",{light:m(j,.66),dark:m(j,.66),hcDark:j,hcLight:j},c.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),u("searchEditor.findMatchBorder",{light:m(V,.66),dark:m(V,.66),hcDark:V,hcLight:V},c.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},5724:(e,t,n)=>{"use strict";n.d(t,{Gy:()=>l,zy:()=>u,Yf:()=>c});var r,o=n(1234),i=n(1484),a=n(3591),s=n(6359);!function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(r||(r={}));const l=(0,a.u1)("themeService");function c(e){return{id:e}}const d=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new o.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,i.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function u(e){return d.onColorThemeChange(e)}s.O.add("base.contributions.theming",d);i.jG},5890:(e,t,n)=>{var r={"./simpleWorker":1929,"./simpleWorker.js":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker":1929,"monaco-editor/esm/vs/base/common/worker/simpleWorker.js":1929};function o(e){return Promise.resolve().then((()=>{if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(r[e])}))}o.keys=()=>Object.keys(r),o.id=5890,e.exports=o},9204:(e,t,n)=>{var r={"./editorBaseApi":[4272],"./editorBaseApi.js":[4272],"./editorSimpleWorker":[5196],"./editorSimpleWorker.js":[5196],"./editorWorker":[920,792],"./editorWorker.js":[920,792],"./editorWorkerHost":[718],"./editorWorkerHost.js":[718],"./findSectionHeaders":[6691],"./findSectionHeaders.js":[6691],"./getIconClasses":[5628,792],"./getIconClasses.js":[5628,792],"./languageFeatureDebounce":[8709,792],"./languageFeatureDebounce.js":[8709,792],"./languageFeatures":[6942,792],"./languageFeatures.js":[6942,792],"./languageFeaturesService":[2661,792],"./languageFeaturesService.js":[2661,792],"./languageService":[7596,792],"./languageService.js":[7596,792],"./languagesAssociations":[9908,792],"./languagesAssociations.js":[9908,792],"./languagesRegistry":[9259,792],"./languagesRegistry.js":[9259,792],"./markerDecorations":[7550,792],"./markerDecorations.js":[7550,792],"./markerDecorationsService":[448,792],"./markerDecorationsService.js":[448,792],"./model":[3750,792],"./model.js":[3750,792],"./modelService":[1773,792],"./modelService.js":[1773,792],"./resolverService":[8938,792],"./resolverService.js":[8938,792],"./semanticTokensDto":[8232,792],"./semanticTokensDto.js":[8232,792],"./semanticTokensProviderStyling":[5538,792],"./semanticTokensProviderStyling.js":[5538,792],"./semanticTokensStyling":[4243,792],"./semanticTokensStyling.js":[4243,792],"./semanticTokensStylingService":[7004,792],"./semanticTokensStylingService.js":[7004,792],"./textModelSync/textModelSync.impl":[796],"./textModelSync/textModelSync.impl.js":[796],"./textModelSync/textModelSync.protocol":[8868,792],"./textModelSync/textModelSync.protocol.js":[8868,792],"./textResourceConfiguration":[360,792],"./textResourceConfiguration.js":[360,792],"./treeSitterParserService":[4432,792],"./treeSitterParserService.js":[4432,792],"./treeViewsDnd":[6723,792],"./treeViewsDnd.js":[6723,792],"./treeViewsDndService":[9100,792],"./treeViewsDndService.js":[9100,792],"./unicodeTextModelHighlighter":[4855],"./unicodeTextModelHighlighter.js":[4855],"monaco-editor/esm/vs/editor/common/services/editorBaseApi":[4272],"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":[4272],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":[5196],"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":[5196],"monaco-editor/esm/vs/editor/common/services/editorWorker":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorker.js":[920,792],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":[718],"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":[718],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":[6691],"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":[6691],"monaco-editor/esm/vs/editor/common/services/getIconClasses":[5628,792],"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":[5628,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":[8709,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":[6942,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":[2661,792],"monaco-editor/esm/vs/editor/common/services/languageService":[7596,792],"monaco-editor/esm/vs/editor/common/services/languageService.js":[7596,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":[9908,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry":[9259,792],"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":[9259,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":[7550,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":[448,792],"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":[448,792],"monaco-editor/esm/vs/editor/common/services/model":[3750,792],"monaco-editor/esm/vs/editor/common/services/model.js":[3750,792],"monaco-editor/esm/vs/editor/common/services/modelService":[1773,792],"monaco-editor/esm/vs/editor/common/services/modelService.js":[1773,792],"monaco-editor/esm/vs/editor/common/services/resolverService":[8938,792],"monaco-editor/esm/vs/editor/common/services/resolverService.js":[8938,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":[8232,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":[5538,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":[4243,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":[7004,792],"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":[7004,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":[796],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":[8868,792],"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":[8868,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":[360,792],"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":[360,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":[4432,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":[6723,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":[9100,792],"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":[9100,792],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":[4855],"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":[4855]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(o)))}o.keys=()=>Object.keys(r),o.id=9204,e.exports=o},7614:(e,t,n)=>{var r={"./editorBaseApi":4272,"./editorBaseApi.js":4272,"./editorSimpleWorker":5196,"./editorSimpleWorker.js":5196,"./editorWorker":920,"./editorWorker.js":920,"./editorWorkerHost":718,"./editorWorkerHost.js":718,"./findSectionHeaders":6691,"./findSectionHeaders.js":6691,"./getIconClasses":5628,"./getIconClasses.js":5628,"./languageFeatureDebounce":8709,"./languageFeatureDebounce.js":8709,"./languageFeatures":6942,"./languageFeatures.js":6942,"./languageFeaturesService":2661,"./languageFeaturesService.js":2661,"./languageService":7596,"./languageService.js":7596,"./languagesAssociations":9908,"./languagesAssociations.js":9908,"./languagesRegistry":9259,"./languagesRegistry.js":9259,"./markerDecorations":7550,"./markerDecorations.js":7550,"./markerDecorationsService":448,"./markerDecorationsService.js":448,"./model":3750,"./model.js":3750,"./modelService":1773,"./modelService.js":1773,"./resolverService":8938,"./resolverService.js":8938,"./semanticTokensDto":8232,"./semanticTokensDto.js":8232,"./semanticTokensProviderStyling":5538,"./semanticTokensProviderStyling.js":5538,"./semanticTokensStyling":4243,"./semanticTokensStyling.js":4243,"./semanticTokensStylingService":7004,"./semanticTokensStylingService.js":7004,"./textModelSync/textModelSync.impl":796,"./textModelSync/textModelSync.impl.js":796,"./textModelSync/textModelSync.protocol":8868,"./textModelSync/textModelSync.protocol.js":8868,"./textResourceConfiguration":360,"./textResourceConfiguration.js":360,"./treeSitterParserService":4432,"./treeSitterParserService.js":4432,"./treeViewsDnd":6723,"./treeViewsDnd.js":6723,"./treeViewsDndService":9100,"./treeViewsDndService.js":9100,"./unicodeTextModelHighlighter":4855,"./unicodeTextModelHighlighter.js":4855,"monaco-editor/esm/vs/editor/common/services/editorBaseApi":4272,"monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":4272,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker":5196,"monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js":5196,"monaco-editor/esm/vs/editor/common/services/editorWorker":920,"monaco-editor/esm/vs/editor/common/services/editorWorker.js":920,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost":718,"monaco-editor/esm/vs/editor/common/services/editorWorkerHost.js":718,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders":6691,"monaco-editor/esm/vs/editor/common/services/findSectionHeaders.js":6691,"monaco-editor/esm/vs/editor/common/services/getIconClasses":5628,"monaco-editor/esm/vs/editor/common/services/getIconClasses.js":5628,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js":8709,"monaco-editor/esm/vs/editor/common/services/languageFeatures":6942,"monaco-editor/esm/vs/editor/common/services/languageFeatures.js":6942,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService":2661,"monaco-editor/esm/vs/editor/common/services/languageFeaturesService.js":2661,"monaco-editor/esm/vs/editor/common/services/languageService":7596,"monaco-editor/esm/vs/editor/common/services/languageService.js":7596,"monaco-editor/esm/vs/editor/common/services/languagesAssociations":9908,"monaco-editor/esm/vs/editor/common/services/languagesAssociations.js":9908,"monaco-editor/esm/vs/editor/common/services/languagesRegistry":9259,"monaco-editor/esm/vs/editor/common/services/languagesRegistry.js":9259,"monaco-editor/esm/vs/editor/common/services/markerDecorations":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorations.js":7550,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService":448,"monaco-editor/esm/vs/editor/common/services/markerDecorationsService.js":448,"monaco-editor/esm/vs/editor/common/services/model":3750,"monaco-editor/esm/vs/editor/common/services/model.js":3750,"monaco-editor/esm/vs/editor/common/services/modelService":1773,"monaco-editor/esm/vs/editor/common/services/modelService.js":1773,"monaco-editor/esm/vs/editor/common/services/resolverService":8938,"monaco-editor/esm/vs/editor/common/services/resolverService.js":8938,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensDto.js":8232,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":5538,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js":4243,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService":7004,"monaco-editor/esm/vs/editor/common/services/semanticTokensStylingService.js":7004,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js":796,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol":8868,"monaco-editor/esm/vs/editor/common/services/textModelSync/textModelSync.protocol.js":8868,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration":360,"monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js":360,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService":4432,"monaco-editor/esm/vs/editor/common/services/treeSitterParserService.js":4432,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDnd.js":6723,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService":9100,"monaco-editor/esm/vs/editor/common/services/treeViewsDndService.js":9100,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter":4855,"monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js":4855};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=7614}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.e=()=>Promise.resolve(),n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1929),t=n(5196),r=n(718);let o=!1;function i(n){if(o)return;o=!0;const i=new e.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(e=>new t.EditorSimpleWorker(r.EditorWorkerHost.getChannel(e),n)));globalThis.onmessage=e=>{i.onmessage(e.data)}}globalThis.onmessage=e=>{o||i(null)};var a="/index.js",s=Object.defineProperty,l={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(l,{EndOfLineState:()=>_,IndentStyle:()=>g,ScriptKind:()=>y,ScriptTarget:()=>v,TokenClass:()=>b,createClassifier:()=>p,createLanguageService:()=>f,displayPartsToString:()=>m,flattenDiagnosticMessageText:()=>h,typescript:()=>E});var c=void 0,d={exports:{}},u=(()=>{var e,t,r,o,i,s,l,u,p,f,m,_,h,g,y=Object.defineProperty,v=Object.getOwnPropertyNames,b=(e,t)=>function(){return e&&(t=(0,e[v(e)[0]])(e=0)),t},E=(e,t)=>{for(var n in t)y(e,n,{get:t[n],enumerable:!0})},S=b({"src/compiler/corePublic.ts"(){e="5.4",t="5.4.5",r=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(r||{})}});function T(e){return e?e.length:0}function x(e,t){if(e)for(let n=0;n<e.length;n++){const r=t(e[n],n);if(r)return r}}function A(e,t){if(e)for(let n=e.length-1;n>=0;n--){const r=t(e[n],n);if(r)return r}}function I(e,t){if(void 0!==e)for(let n=0;n<e.length;n++){const r=t(e[n],n);if(void 0!==r)return r}}function R(e,t){for(const n of e){const e=t(n);if(void 0!==e)return e}}function C(e,t,n){let r=n;if(e){let n=0;for(const o of e)r=t(r,o,n),n++}return r}function D(e,t,n){const r=[];In.assertEqual(e.length,t.length);for(let o=0;o<e.length;o++)r.push(n(e[o],t[o],o));return r}function N(e,t){if(e.length<=1)return e;const n=[];for(let r=0,o=e.length;r<o;r++)r&&n.push(t),n.push(e[r]);return n}function M(e,t){if(e)for(let n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function L(e,t,n){if(void 0!==e)for(let r=n??0;r<e.length;r++){const n=e[r];if(t(n,r))return n}}function k(e,t,n){if(void 0!==e)for(let r=n??e.length-1;r>=0;r--){const n=e[r];if(t(n,r))return n}}function P(e,t,n){if(void 0===e)return-1;for(let r=n??0;r<e.length;r++)if(t(e[r],r))return r;return-1}function w(e,t,n){if(void 0===e)return-1;for(let r=n??e.length-1;r>=0;r--)if(t(e[r],r))return r;return-1}function O(e,t){for(let n=0;n<e.length;n++){const r=t(e[n],n);if(r)return r}return In.fail()}function F(e,t,n=kt){if(e)for(const r of e)if(n(r,t))return!0;return!1}function W(e,t,n=kt){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}function z(e,t,n){for(let r=n||0;r<e.length;r++)if(F(t,e.charCodeAt(r)))return r;return-1}function B(e,t){let n=0;if(e)for(let r=0;r<e.length;r++){t(e[r],r)&&n++}return n}function G(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;if(r<n){const o=e.slice(0,r);for(r++;r<n;){const n=e[r];t(n)&&o.push(n),r++}return o}}return e}function j(e,t){let n=0;for(let r=0;r<e.length;r++)t(e[r],r,e)&&(e[n]=e[r],n++);e.length=n}function V(e){e.length=0}function U(e,t){let n;if(e){n=[];for(let r=0;r<e.length;r++)n.push(t(e[r],r))}return n}function*H(e,t){for(const n of e)yield t(n)}function K(e,t){if(e)for(let n=0;n<e.length;n++){const r=e[n],o=t(r,n);if(r!==o){const r=e.slice(0,n);for(r.push(o),n++;n<e.length;n++)r.push(t(e[n],n));return r}}return e}function q(e){const t=[];for(const n of e)n&&(mt(n)?xe(t,n):t.push(n));return t}function J(e,t){let n;if(e)for(let r=0;r<e.length;r++){const o=t(e[r],r);o&&(n=mt(o)?xe(n,o):Ee(n,o))}return n||o}function X(e,t){const n=[];if(e)for(let r=0;r<e.length;r++){const o=t(e[r],r);o&&(mt(o)?xe(n,o):n.push(o))}return n}function*$(e,t){for(const n of e){const e=t(n);e&&(yield*e)}}function Y(e,t){let n;if(e)for(let r=0;r<e.length;r++){const o=e[r],i=t(o,r);(n||o!==i||mt(i))&&(n||(n=e.slice(0,r)),mt(i)?xe(n,i):n.push(i))}return n||e}function Q(e,t){const n=[];for(let r=0;r<e.length;r++){const o=t(e[r],r);if(void 0===o)return;n.push(o)}return n}function Z(e,t){const n=[];if(e)for(let r=0;r<e.length;r++){const o=t(e[r],r);void 0!==o&&n.push(o)}return n}function*ee(e,t){for(const n of e){const e=t(n);void 0!==e&&(yield e)}}function te(e,t){if(!e)return;const n=new Map;return e.forEach(((e,r)=>{const o=t(r,e);if(void 0!==o){const[e,t]=o;void 0!==e&&void 0!==t&&n.set(e,t)}})),n}function ne(e,t,n){if(e.has(t))return e.get(t);const r=n();return e.set(t,r),r}function re(e,t){return!e.has(t)&&(e.add(t),!0)}function*oe(e){yield e}function ie(e,t,n){let r;if(e){r=[];const o=e.length;let i,a,s=0,l=0;for(;s<o;){for(;l<o;){if(a=t(e[l],l),0===l)i=a;else if(a!==i)break;l++}if(s<l){const t=n(e.slice(s,l),i,s,l);t&&r.push(t),s=l}i=a,l++}}return r}function ae(e,t){if(!e)return;const n=new Map;return e.forEach(((e,r)=>{const[o,i]=t(r,e);n.set(o,i)})),n}function se(e,t){if(e){if(!t)return e.length>0;for(const n of e)if(t(n))return!0}return!1}function le(e,t,n){let r;for(let o=0;o<e.length;o++)t(e[o])?r=void 0===r?o:r:void 0!==r&&(n(r,o),r=void 0);void 0!==r&&n(r,e.length)}function ce(e,t){return se(t)?se(e)?[...e,...t]:t:e}function de(e,t){return t}function ue(e){return e.map(de)}function pe(e,t,n){return 0===e.length?[]:1===e.length?e.slice():n?function(e,t,n){const r=ue(e);Re(e,r,n);let o=e[r[0]];const i=[r[0]];for(let a=1;a<r.length;a++){const n=r[a],s=e[n];t(o,s)||(i.push(n),o=s)}return i.sort(),i.map((t=>e[t]))}(e,t,n):function(e,t){const n=[];for(const r of e)Ae(n,r,t);return n}(e,t)}function fe(){return[]}function me(e,t,n,r){if(0===e.length)return e.push(t),!0;const o=je(e,t,xt,n);return o<0?(e.splice(~o,0,t),!0):!!r&&(e.splice(o,0,t),!0)}function _e(e,t,n){return function(e,t){if(0===e.length)return o;let n=e[0];const r=[n];for(let o=1;o<e.length;o++){const i=e[o];switch(t(i,n)){case!0:case 0:continue;case-1:return In.fail("Array is unsorted.")}r.push(n=i)}return r}(Ce(e,t),n||t||jt)}function he(e,t){if(e.length<2)return!0;for(let n=1,r=e.length;n<r;n++)if(1===t(e[n-1],e[n]))return!1;return!0}function ge(e,t,n,r){let o=3;if(e.length<2)return o;let i=t(e[0]);for(let a=1,s=e.length;a<s&&0!==o;a++){const s=t(e[a]);1&o&&n(i,s)>0&&(o&=-2),2&o&&r(i,s)>0&&(o&=-3),i=s}return o}function ye(e,t,n=kt){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r],r))return!1;return!0}function ve(e){let t;if(e)for(let n=0;n<e.length;n++){const r=e[n];!t&&r||(t||(t=e.slice(0,n)),r&&t.push(r))}return t||e}function be(e,t,n){if(!t||!e||0===t.length||0===e.length)return t;const r=[];e:for(let o=0,i=0;i<t.length;i++){i>0&&In.assertGreaterThanOrEqual(n(t[i],t[i-1]),0);t:for(const a=o;o<e.length;o++)switch(o>a&&In.assertGreaterThanOrEqual(n(e[o],e[o-1]),0),n(t[i],e[o])){case-1:r.push(t[i]);continue e;case 0:continue e;case 1:continue t}}return r}function Ee(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function Se(e,t){return void 0===e?t:void 0===t?e:mt(e)?mt(t)?ce(e,t):Ee(e,t):mt(t)?Ee(t,e):[e,t]}function Te(e,t){return t<0?e.length+t:t}function xe(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:Te(t,n),r=void 0===r?t.length:Te(t,r);for(let o=n;o<r&&o<t.length;o++)void 0!==t[o]&&e.push(t[o]);return e}function Ae(e,t,n){return!F(e,t,n)&&(e.push(t),!0)}function Ie(e,t,n){return e?(Ae(e,t,n),e):[t]}function Re(e,t,n){t.sort(((t,r)=>n(e[t],e[r])||Ft(t,r)))}function Ce(e,t){return 0===e.length?e:e.slice().sort(t)}function*De(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Ne(e,t){const n=ue(e);return Re(e,n,t),n.map((t=>e[t]))}function Me(e,t,n,r){for(;n<r;){if(e[n]!==t[n])return!1;n++}return!0}function Le(e){return void 0===e||0===e.length?void 0:e[0]}function ke(e){if(e)for(const t of e)return t}function Pe(e){return In.assert(0!==e.length),e[0]}function we(e){for(const t of e)return t;In.fail("iterator is empty")}function Oe(e){return void 0===e||0===e.length?void 0:e[e.length-1]}function Fe(e){return In.assert(0!==e.length),e[e.length-1]}function We(e){return e&&1===e.length?e[0]:void 0}function ze(e){return In.checkDefined(We(e))}function Be(e){return e&&1===e.length?e[0]:e}function Ge(e,t,n){const r=e.slice(0);return r[t]=n,r}function je(e,t,n,r,o){return Ve(e,n(t),n,r,o)}function Ve(e,t,n,r,o){if(!se(e))return-1;let i=o||0,a=e.length-1;for(;i<=a;){const o=i+(a-i>>1);switch(r(n(e[o],o),t)){case-1:i=o+1;break;case 0:return o;case 1:a=o-1}}return~i}function Ue(e,t,n,r,o){if(e&&e.length>0){const i=e.length;if(i>0){let a=void 0===r||r<0?0:r;const s=void 0===o||a+o>i-1?i-1:a+o;let l;for(arguments.length<=2?(l=e[a],a++):l=n;a<=s;)l=t(l,e[a],a),a++;return l}}return n}function He(e,t){return p.call(e,t)}function Ke(e,t){return p.call(e,t)?e[t]:void 0}function qe(e){const t=[];for(const n in e)p.call(e,n)&&t.push(n);return t}function Je(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const e of n)Ae(t,e)}while(e=Object.getPrototypeOf(e));return t}function Xe(e){const t=[];for(const n in e)p.call(e,n)&&t.push(e[n]);return t}function $e(e,t){const n=new Array(e);for(let r=0;r<e;r++)n[r]=t(r);return n}function Ye(e,t){const n=[];for(const r of e)n.push(t?t(r):r);return n}function Qe(e,...t){for(const n of t)if(void 0!==n)for(const t in n)He(n,t)&&(e[t]=n[t]);return e}function Ze(e,t,n=kt){if(e===t)return!0;if(!e||!t)return!1;for(const r in e)if(p.call(e,r)){if(!p.call(t,r))return!1;if(!n(e[r],t[r]))return!1}for(const r in t)if(p.call(t,r)&&!p.call(e,r))return!1;return!0}function et(e,t,n=xt){const r=new Map;for(const o of e){const e=t(o);void 0!==e&&r.set(e,n(o))}return r}function tt(e,t,n=xt){const r=[];for(const o of e)r[t(o)]=n(o);return r}function nt(e,t,n=xt){const r=ct();for(const o of e)r.add(t(o),n(o));return r}function rt(e,t,n=xt){return Ye(nt(e,t).values(),n)}function ot(e,t){const n={};if(e)for(const r of e){const e=`${t(r)}`;(n[e]??(n[e]=[])).push(r)}return n}function it(e){const t={};for(const n in e)p.call(e,n)&&(t[n]=e[n]);return t}function at(e,t){const n={};for(const r in t)p.call(t,r)&&(n[r]=t[r]);for(const r in e)p.call(e,r)&&(n[r]=e[r]);return n}function st(e,t){for(const n in t)p.call(t,n)&&(e[n]=t[n])}function lt(e,t){return t?t.bind(e):void 0}function ct(){const e=new Map;return e.add=dt,e.remove=ut,e}function dt(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}function ut(e,t){const n=this.get(e);n&&(on(n,t),n.length||this.delete(e))}function pt(e){const t=(null==e?void 0:e.slice())||[];let n=0;function r(){return n===t.length}return{enqueue:function(...e){t.push(...e)},dequeue:function(){if(r())throw new Error("Queue is empty");const e=t[n];if(t[n]=void 0,n++,n>100&&n>t.length>>1){const e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e},isEmpty:r}}function ft(e,t){const n=new Map;let r=0;function*o(){for(const e of n.values())mt(e)?yield*e:yield e}const i={has(r){const o=e(r);if(!n.has(o))return!1;const i=n.get(o);if(!mt(i))return t(i,r);for(const e of i)if(t(e,r))return!0;return!1},add(o){const i=e(o);if(n.has(i)){const e=n.get(i);if(mt(e))F(e,o,t)||(e.push(o),r++);else{const a=e;t(a,o)||(n.set(i,[a,o]),r++)}}else n.set(i,o),r++;return this},delete(o){const i=e(o);if(!n.has(i))return!1;const a=n.get(i);if(mt(a)){for(let e=0;e<a.length;e++)if(t(a[e],o))return 1===a.length?n.delete(i):2===a.length?n.set(i,a[1-e]):rn(a,e),r--,!0}else{if(t(a,o))return n.delete(i),r--,!0}return!1},clear(){n.clear(),r=0},get size(){return r},forEach(e){for(const t of Ye(n.values()))if(mt(t))for(const n of t)e(n,n,i);else{e(t,t,i)}},keys:()=>o(),values:()=>o(),*entries(){for(const e of o())yield[e,e]},[Symbol.iterator]:()=>o(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return i}function mt(e){return Array.isArray(e)}function _t(e){return mt(e)?e:[e]}function ht(e){return"string"===typeof e}function gt(e){return"number"===typeof e}function yt(e,t){return void 0!==e&&t(e)?e:void 0}function vt(e,t){return void 0!==e&&t(e)?e:In.fail(`Invalid cast. The supplied value ${e} did not pass the test '${In.getFunctionName(t)}'.`)}function bt(e){}function Et(){return!1}function St(){return!0}function Tt(){}function xt(e){return e}function At(e){return e.toLowerCase()}function It(e){return f.test(e)?e.replace(f,At):e}function Rt(){throw new Error("Not implemented")}function Ct(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Dt(e){const t=new Map;return n=>{const r=`${typeof n}:${n}`;let o=t.get(r);return void 0!==o||t.has(r)||(o=e(n),t.set(r,o)),o}}function Nt(e){const t=new WeakMap;return n=>{let r=t.get(n);return void 0!==r||t.has(n)||(r=e(n),t.set(n,r)),r}}function Mt(e,t){return(...n)=>{let r=t.get(n);return void 0!==r||t.has(n)||(r=e(...n),t.set(n,r)),r}}function Lt(e,t,n,r,o){if(o){const e=[];for(let t=0;t<arguments.length;t++)e[t]=arguments[t];return t=>Ue(e,((e,t)=>t(e)),t)}return r?o=>r(n(t(e(o)))):n?r=>n(t(e(r))):t?n=>t(e(n)):e?t=>e(t):e=>e}function kt(e,t){return e===t}function Pt(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function wt(e,t){return kt(e,t)}function Ot(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function Ft(e,t){return Ot(e,t)}function Wt(e,t){return Ft(null==e?void 0:e.start,null==t?void 0:t.start)||Ft(null==e?void 0:e.length,null==t?void 0:t.length)}function zt(e,t){return Ue(e,((e,n)=>-1===t(e,n)?e:n))}function Bt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function Gt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toLowerCase())<(t=t.toLowerCase())?-1:e>t?1:0}function jt(e,t){return Ot(e,t)}function Vt(e){return e?Bt:jt}function Ut(){return g}function Ht(e){g!==e&&(g=e,h=void 0)}function Kt(e,t){return(h||(h=_(g)))(e,t)}function qt(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])}function Jt(e,t){return Ft(e?1:0,t?1:0)}function Xt(e,t,n){const r=Math.max(2,Math.floor(.34*e.length));let o,i=Math.floor(.4*e.length)+1;for(const a of t){const t=n(a);if(void 0!==t&&Math.abs(t.length-e.length)<=r){if(t===e)continue;if(t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;const n=$t(e,t,i-.1);if(void 0===n)continue;In.assert(n<i),i=n,o=a}}return o}function $t(e,t,n){let r=new Array(t.length+1),o=new Array(t.length+1);const i=n+.01;for(let s=0;s<=t.length;s++)r[s]=s;for(let s=1;s<=e.length;s++){const a=e.charCodeAt(s-1),l=Math.ceil(s>n?s-n:1),c=Math.floor(t.length>n+s?n+s:t.length);o[0]=s;let d=s;for(let e=1;e<l;e++)o[e]=i;for(let n=l;n<=c;n++){const i=e[s-1].toLowerCase()===t[n-1].toLowerCase()?r[n-1]+.1:r[n-1]+2,l=a===t.charCodeAt(n-1)?r[n-1]:Math.min(r[n]+1,o[n-1]+1,i);o[n]=l,d=Math.min(d,l)}for(let e=c+1;e<=t.length;e++)o[e]=i;if(d>n)return;const u=r;r=o,o=u}const a=r[t.length];return a>n?void 0:a}function Yt(e,t,n){const r=e.length-t.length;return r>=0&&(n?Pt(e.slice(r),t):e.indexOf(t,r)===r)}function Qt(e,t){return Yt(e,t)?e.slice(0,e.length-t.length):e}function Zt(e,t){return Yt(e,t)?e.slice(0,e.length-t.length):void 0}function en(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do{--n,r=e.charCodeAt(n)}while(n>0&&r>=48&&r<=57);else{if(!(n>4)||110!==r&&78!==r)break;if(--n,r=e.charCodeAt(n),105!==r&&73!==r)break;if(--n,r=e.charCodeAt(n),109!==r&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)}function tn(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return nn(e,n),!0;return!1}function nn(e,t){for(let n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}function rn(e,t){e[t]=e[e.length-1],e.pop()}function on(e,t){return function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return rn(e,n),!0;return!1}(e,(e=>e===t))}function an(e){return e?xt:It}function sn({prefix:e,suffix:t}){return`${e}*${t}`}function ln(e,t){return In.assert(fn(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function cn(e,t,n){let r,o=-1;for(const i of e){const e=t(i);fn(e,n)&&e.prefix.length>o&&(o=e.prefix.length,r=i)}return r}function dn(e,t,n){return n?Pt(e.slice(0,t.length),t):0===e.lastIndexOf(t,0)}function un(e,t){return dn(e,t)?e.substr(t.length):e}function pn(e,t,n=xt){return dn(n(e),n(t))?e.substring(t.length):void 0}function fn({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&dn(n,e)&&Yt(n,t)}function mn(e,t){return n=>e(n)&&t(n)}function _n(...e){return(...t)=>{let n;for(const r of e)if(n=r(...t),n)return n;return n}}function hn(e){return(...t)=>!e(...t)}function gn(e){}function yn(e){return void 0===e?void 0:[e]}function vn(e,t,n,r,o,i){i=i||bt;let a=0,s=0;const l=e.length,c=t.length;let d=!1;for(;a<l&&s<c;){const l=e[a],c=t[s],u=n(l,c);-1===u?(r(l),a++,d=!0):1===u?(o(c),s++,d=!0):(i(c,l),a++,s++)}for(;a<l;)r(e[a++]),d=!0;for(;s<c;)o(t[s++]),d=!0;return d}function bn(e){const t=[];return En(e,t,void 0,0),t}function En(e,t,n,r){for(const o of e[r]){let i;n?(i=n.slice(),i.push(o)):i=[o],r===e.length-1?t.push(i):En(e,t,i,r+1)}}function Sn(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;return e.slice(0,r)}}function Tn(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;return e.slice(r)}}function xn(){return"undefined"!==typeof process&&!!process.nextTick&&!process.browser&&"object"===typeof d}var An,In,Rn,Cn,Dn,Nn,Mn,Ln,kn,Pn,wn,On,Fn,Wn,zn,Bn,Gn=b({"src/compiler/core.ts"(){JJ(),o=[],i=new Map,s=new Set,l=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(l||{}),u=Array.prototype.at?(e,t)=>null==e?void 0:e.at(t):(e,t)=>{if(e&&(t=Te(e,t))<e.length)return e[t]},p=Object.prototype.hasOwnProperty,f=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g,m=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(m||{}),_=(()=>function(e){const t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return(e,n)=>function(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=n(e,t);return r<0?-1:r>0?1:0}(e,n,t)})()}}),jn=b({"src/compiler/debug.ts"(){JJ(),JJ(),An=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(An||{}),(e=>{let t=0;function n(t){return e.currentLogLevel<=t}function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function o(e){r(3,e)}var i;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=n,e.log=o,(i=o=e.log||(e.log={})).error=function(e){r(1,e)},i.warn=function(e){r(2,e)},i.log=function(e){r(3,e)},i.trace=function(e){r(4,e)};const a={};function s(e){return t>=e}function l(t,n){return!!s(t)||(a[n]={level:t,assertion:e[n]},e[n]=bt,!1)}function c(e,t){const n=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||c),n}function d(e,t,n,r){e||(t=t?`False expression: ${t}`:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"===typeof n?n:n())),c(t,r||d))}function u(e,t,n){void 0!==e&&null!==e||c(t,n||u)}function p(e,t,n){for(const r of e)u(r,t,n||p)}function f(e,t="Illegal value:",n){return c(`${t} ${"object"===typeof e&&He(e,"kind")&&He(e,"pos")?"SyntaxKind: "+y(e.kind):JSON.stringify(e)}`,n||f)}function m(e){}function _(e){if("function"!==typeof e)return"";if(He(e,"name"))return e.name;{const t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:""}}function h(e=0,t,n){const r=function(e){const t=g.get(e);if(t)return t;const n=[];for(const o in e){const t=e[o];"number"===typeof t&&n.push([t,o])}const r=Ne(n,((e,t)=>Ft(e[0],t[0])));return g.set(e,r),r}(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){const t=[];let n=e;for(const[o,i]of r){if(o>e)break;0!==o&&o&e&&(t.push(i),n&=~o)}if(0===n)return t.join("|")}else for(const[o,i]of r)if(o===e)return i;return e.toString()}e.getAssertionLevel=function(){return t},e.setAssertionLevel=function(n){const r=t;if(t=n,n>r)for(const t of qe(a)){const r=a[t];void 0!==r&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}},e.shouldAssert=s,e.fail=c,e.failBadSyntaxKind=function e(t,n,r){return c(`${n||"Unexpected node."}\r\nNode ${y(t.kind)} was unexpected.`,r||e)},e.assert=d,e.assertEqual=function e(t,n,r,o,i){if(t!==n){c(`Expected ${t} === ${n}. ${r?o?`${r} ${o}`:r:""}`,i||e)}},e.assertLessThan=function e(t,n,r,o){t>=n&&c(`Expected ${t} < ${n}. ${r||""}`,o||e)},e.assertLessThanOrEqual=function e(t,n,r){t>n&&c(`Expected ${t} <= ${n}`,r||e)},e.assertGreaterThanOrEqual=function e(t,n,r){t<n&&c(`Expected ${t} >= ${n}`,r||e)},e.assertIsDefined=u,e.checkDefined=function e(t,n,r){return u(t,n,r||e),t},e.assertEachIsDefined=p,e.checkEachDefined=function e(t,n,r){return p(t,n,r||e),t},e.assertNever=f,e.assertEachNode=function e(t,n,r,o){l(1,"assertEachNode")&&d(void 0===n||M(t,n),r||"Unexpected node.",(()=>`Node array did not pass test '${_(n)}'.`),o||e)},e.assertNode=function e(t,n,r,o){l(1,"assertNode")&&d(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${_(n)}'.`),o||e)},e.assertNotNode=function e(t,n,r,o){l(1,"assertNotNode")&&d(void 0===t||void 0===n||!n(t),r||"Unexpected node.",(()=>`Node ${y(t.kind)} should not have passed test '${_(n)}'.`),o||e)},e.assertOptionalNode=function e(t,n,r,o){l(1,"assertOptionalNode")&&d(void 0===n||void 0===t||n(t),r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${_(n)}'.`),o||e)},e.assertOptionalToken=function e(t,n,r,o){l(1,"assertOptionalToken")&&d(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} was not a '${y(n)}' token.`),o||e)},e.assertMissingNode=function e(t,n,r){l(1,"assertMissingNode")&&d(void 0===t,n||"Unexpected node.",(()=>`Node ${y(t.kind)} was unexpected'.`),r||e)},e.type=m,e.getFunctionName=_,e.formatSymbol=function(e){return`{ name: ${Ll(e.escapedName)}; flags: ${T(e.flags)}; declarations: ${U(e.declarations,(e=>y(e.kind)))} }`},e.formatEnum=h;const g=new Map;function y(e){return h(e,Fr,!1)}function v(e){return h(e,Wr,!0)}function b(e){return h(e,zr,!0)}function E(e){return h(e,Ho,!0)}function S(e){return h(e,qo,!0)}function T(e){return h(e,lo,!0)}function x(e){return h(e,mo,!0)}function A(e){return h(e,So,!0)}function I(e){return h(e,_o,!0)}function R(e){return h(e,Ur,!0)}e.formatSyntaxKind=y,e.formatSnippetKind=function(e){return h(e,Ko,!1)},e.formatScriptKind=function(e){return h(e,zo,!1)},e.formatNodeFlags=v,e.formatModifierFlags=b,e.formatTransformFlags=E,e.formatEmitFlags=S,e.formatSymbolFlags=T,e.formatTypeFlags=x,e.formatSignatureFlags=A,e.formatObjectFlags=I,e.formatFlowFlags=R,e.formatRelationComparisonResult=function(e){return h(e,Gr,!0)},e.formatCheckMode=function(e){return h(e,Oz,!0)},e.formatSignatureCheckMode=function(e){return h(e,Fz,!0)},e.formatTypeFacts=function(e){return h(e,Pz,!0)};let C,N,L=!1;function k(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${R(t)})`:""}`}},__debugFlowFlags:{get(){return h(this.flags,Ur,!0)}},__debugToString:{value(){return O(this)}}})}function P(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){L&&("function"===typeof Object.setPrototypeOf?(C||(C=Object.create(Object.prototype),k(C)),Object.setPrototypeOf(e,C)):k(e))},e.attachNodeArrayDebugInfo=function(e){L&&("function"===typeof Object.setPrototypeOf?(N||(N=Object.create(Array.prototype),P(N)),Object.setPrototypeOf(e,N)):P(e))},e.enableDebugInfo=function(){if(L)return;const e=new WeakMap,t=new WeakMap;Object.defineProperties(Wp.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${wl(this)}'${t?` (${T(t)})`:""}`}},__debugFlags:{get(){return T(this.flags)}}}),Object.defineProperties(Wp.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=67359327&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${wl(this.symbol)}'`:""}${t?` (${I(t)})`:""}`}},__debugFlags:{get(){return x(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?I(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(Wp.getSignatureConstructor().prototype,{__debugFlags:{get(){return A(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[Wp.getNodeConstructor(),Wp.getIdentifierConstructor(),Wp.getTokenConstructor(),Wp.getSourceFileConstructor()];for(const r of n)He(r.prototype,"__debugKind")||Object.defineProperties(r.prototype,{__tsDebuggerDisplay:{value(){return`${ud(this)?"GeneratedIdentifier":nC(this)?`Identifier '${kl(this)}'`:rC(this)?`PrivateIdentifier '${kl(this)}'`:zR(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:FR(this)?`NumericLiteral ${this.text}`:WR(this)?`BigIntLiteral ${this.text}n`:vC(this)?"TypeParameterDeclaration":bC(this)?"ParameterDeclaration":RC(this)?"ConstructorDeclaration":CC(this)?"GetAccessorDeclaration":DC(this)?"SetAccessorDeclaration":NC(this)?"CallSignatureDeclaration":MC(this)?"ConstructSignatureDeclaration":LC(this)?"IndexSignatureDeclaration":kC(this)?"TypePredicateNode":PC(this)?"TypeReferenceNode":wC(this)?"FunctionTypeNode":OC(this)?"ConstructorTypeNode":FC(this)?"TypeQueryNode":WC(this)?"TypeLiteralNode":zC(this)?"ArrayTypeNode":BC(this)?"TupleTypeNode":jC(this)?"OptionalTypeNode":VC(this)?"RestTypeNode":UC(this)?"UnionTypeNode":HC(this)?"IntersectionTypeNode":KC(this)?"ConditionalTypeNode":qC(this)?"InferTypeNode":JC(this)?"ParenthesizedTypeNode":XC(this)?"ThisTypeNode":$C(this)?"TypeOperatorNode":YC(this)?"IndexedAccessTypeNode":QC(this)?"MappedTypeNode":ZC(this)?"LiteralTypeNode":GC(this)?"NamedTupleMember":eD(this)?"ImportTypeNode":y(this.kind)}${this.flags?` (${v(this.flags)})`:""}`}},__debugKind:{get(){return y(this.kind)}},__debugNodeFlags:{get(){return v(this.flags)}},__debugModifierFlags:{get(){return b(oE(this))}},__debugTransformFlags:{get(){return E(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Dl(this)}},__debugEmitFlags:{get(){return S(Rm(this))}},__debugGetText:{value(e){if(Sv(this))return"";let n=t.get(this);if(void 0===n){const r=Nl(this),o=r&&Yf(r);n=o?Em(o,r,e):"",t.set(this,n)}return n}}});L=!0},e.formatVariance=function(e){const t=7&e;let n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};class w{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return D(this.sources,this.targets||U(this.sources,(()=>"any")),((e,t)=>`${e.__debugTypeToString()} -> ${"string"===typeof t?t:t.__debugTypeToString()}`)).join(", ");case 2:return D(this.sources,this.targets,((e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`)).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return f(this)}}}function O(e){let t,n=-1;function r(e){return e.id||(e.id=n,n--),e.id}var o;let i;var a;(o=t||(t={})).lr="\u2500",o.ud="\u2502",o.dr="\u256d",o.dl="\u256e",o.ul="\u256f",o.ur="\u2570",o.udr="\u251c",o.udl="\u2524",o.dlr="\u252c",o.ulr="\u2534",o.udlr="\u256b",(a=i||(i={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=Object.create(null),l=[],c=[],d=_(e,new Set);for(const T of l)T.text=v(T.flowNode,T.circular),g(T);const u=function e(t){let n=0;for(const r of f(t))n=Math.max(n,e(r));return n+1}(d),p=function(e){const t=E(Array(e),0);for(const n of l)t[n.level]=Math.max(t[n.level],n.text.length);return t}(u);return function e(t,n){if(-1===t.lane){t.lane=n,t.endLane=n;const r=f(t);for(let o=0;o<r.length;o++){o>0&&n++;const i=r[o];e(i,n),i.endLane>t.endLane&&(n=i.endLane)}t.endLane=n}}(d,0),function(){const e=p.length,t=l.reduce(((e,t)=>Math.max(e,t.lane)),0)+1,n=E(Array(t),""),r=p.map((()=>Array(t))),o=p.map((()=>E(Array(t),0)));for(const a of l){r[a.level][a.lane]=a;const e=f(a);for(let n=0;n<e.length;n++){const t=e[n];let r=8;t.lane===a.lane&&(r|=4),n>0&&(r|=1),n<e.length-1&&(r|=2),o[a.level][t.lane]|=r}0===e.length&&(o[a.level][a.lane]|=16);const t=m(a);for(let n=0;n<t.length;n++){const e=t[n];let r=4;n>0&&(r|=1),n<t.length-1&&(r|=2),o[a.level-1][e.lane]|=r}}for(let a=0;a<e;a++)for(let e=0;e<t;e++){const t=a>0?o[a-1][e]:0,n=e>0?o[a][e-1]:0;let r=o[a][e];r||(8&t&&(r|=12),2&n&&(r|=3),o[a][e]=r)}for(let a=0;a<e;a++)for(let t=0;t<n.length;t++){const n=o[a][t],s=4&n?"\u2500":" ",l=r[a][t];l?(i(t,l.text),a<e-1&&(i(t," "),i(t,S(s,p[a]-l.text.length)))):a<e-1&&i(t,S(s,p[a]+1)),i(t,b(n)),i(t,8&n&&a<e-1&&!r[a+1][t]?"\u2500":" ")}return`\n${n.join("\n")}\n`;function i(e,t){n[e]+=t}}();function f(e){const t=[];for(const n of e.edges)n.source===e&&t.push(n.target);return t}function m(e){const t=[];for(const n of e.edges)n.target===e&&t.push(n.source);return t}function _(e,t){const n=r(e);let o=s[n];if(o&&t.has(e))return o.circular=!0,o={id:-1,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},l.push(o),o;if(t.add(e),!o)if(s[n]=o={id:n,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},l.push(o),12&(i=e).flags&&i.antecedents)for(const r of e.antecedents)h(o,r,t);else(function(e){return!!(2032&e.flags)})(e)&&h(o,e.antecedent,t);var i;return t.delete(e),o}function h(e,t,n){const r=_(t,n),o={source:e,target:r};c.push(o),e.edges.push(o),r.edges.push(o)}function g(e){if(-1!==e.level)return e.level;let t=0;for(const n of m(e))t=Math.max(t,g(n)+1);return e.level=t}function y(e){return Em(Yf(e),e,!1)}function v(e,t){let n=function(e){if(2&e)return"Start";if(4&e)return"Branch";if(8&e)return"Loop";if(16&e)return"Assignment";if(32&e)return"True";if(64&e)return"False";if(128&e)return"SwitchClause";if(256&e)return"ArrayMutation";if(512&e)return"Call";if(1024&e)return"ReduceLabel";if(1&e)return"Unreachable";throw new Error}(e.flags);if(t&&(n=`${n}#${r(e)}`),882&e.flags)e.node&&(n+=` (${y(e.node)})`);else if(function(e){return!!(128&e.flags)}(e)){const t=[];for(let n=e.clauseStart;n<e.clauseEnd;n++){const r=e.switchStatement.caseBlock.clauses[n];XN(r)?t.push("default"):t.push(y(r.expression))}n+=` (${t.join(", ")})`}return"circularity"===t?`Circular(${n})`:n}function b(e){switch(e){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256f";case 9:return"\u2570";case 6:return"\u256e";case 10:return"\u256d";case 7:return"\u2524";case 11:return"\u251c";case 13:return"\u2534";case 14:return"\u252c";case 15:return"\u256b"}return" "}function E(e,t){if(e.fill)e.fill(t);else for(let n=0;n<e.length;n++)e[n]=t;return e}function S(e,t){if(e.repeat)return t>0?e.repeat(t):"";let n="";for(;n.length<t;)n+=e;return n}}e.DebugTypeMapper=w,e.attachDebugPrototypeIfDebug=function(t){return e.isDebugging?Object.setPrototypeOf(t,w.prototype):t},e.printControlFlowGraph=function(e){return console.log(O(e))},e.formatControlFlowGraph=O})(In||(In={}))}});function Vn(e){const t=Rn.exec(e);if(!t)return;const[,n,r="0",o="0",i="",a=""]=t;return i&&!Cn.test(i)||a&&!Nn.test(a)?void 0:{major:parseInt(n,10),minor:parseInt(r,10),patch:parseInt(o,10),prerelease:i,build:a}}function Un(e){const t=[];for(let n of e.trim().split(On)){if(!n)continue;const e=[];n=n.trim();const r=zn.exec(n);if(r){if(!Kn(r[1],r[2],e))return}else for(const t of n.split(Fn)){const n=Bn.exec(t.trim());if(!n||!qn(n[1],n[2],e))return}t.push(e)}return t}function Hn(e){const t=Wn.exec(e);if(!t)return;const[,n,r="*",o="*",i,a]=t;return{version:new Pn(Jn(n)?0:parseInt(n,10),Jn(n)||Jn(r)?0:parseInt(r,10),Jn(n)||Jn(r)||Jn(o)?0:parseInt(o,10),i,a),major:n,minor:r,patch:o}}function Kn(e,t,n){const r=Hn(e);if(!r)return!1;const o=Hn(t);return!!o&&(Jn(r.major)||n.push(Xn(">=",r.version)),Jn(o.major)||n.push(Jn(o.minor)?Xn("<",o.version.increment("major")):Jn(o.patch)?Xn("<",o.version.increment("minor")):Xn("<=",o.version)),!0)}function qn(e,t,n){const r=Hn(t);if(!r)return!1;const{version:o,major:i,minor:a,patch:s}=r;if(Jn(i))"<"!==e&&">"!==e||n.push(Xn("<",Pn.zero));else switch(e){case"~":n.push(Xn(">=",o)),n.push(Xn("<",o.increment(Jn(a)?"major":"minor")));break;case"^":n.push(Xn(">=",o)),n.push(Xn("<",o.increment(o.major>0||Jn(a)?"major":o.minor>0||Jn(s)?"minor":"patch")));break;case"<":case">=":n.push(Jn(a)||Jn(s)?Xn(e,o.with({prerelease:"0"})):Xn(e,o));break;case"<=":case">":n.push(Jn(a)?Xn("<="===e?"<":">=",o.increment("major").with({prerelease:"0"})):Jn(s)?Xn("<="===e?"<":">=",o.increment("minor").with({prerelease:"0"})):Xn(e,o));break;case"=":case void 0:Jn(a)||Jn(s)?(n.push(Xn(">=",o.with({prerelease:"0"}))),n.push(Xn("<",o.increment(Jn(a)?"major":"minor").with({prerelease:"0"})))):n.push(Xn("=",o));break;default:return!1}return!0}function Jn(e){return"*"===e||"x"===e||"X"===e}function Xn(e,t){return{operator:e,operand:t}}function $n(e,t){for(const n of t)if(!Yn(e,n.operator,n.operand))return!1;return!0}function Yn(e,t,n){const r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return In.assertNever(t)}}function Qn(e){return U(e,Zn).join(" ")}function Zn(e){return`${e.operator}${e.operand}`}var er,tr,nr,rr=b({"src/compiler/semver.ts"(){JJ(),Rn=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Cn=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Dn=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,Nn=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Mn=/^[a-z0-9-]+$/i,Ln=/^(0|[1-9]\d*)$/,(kn=class e{constructor(e,t=0,n=0,r="",i=""){if("string"===typeof e){const o=In.checkDefined(Vn(e),"Invalid version");({major:e,minor:t,patch:n,prerelease:r,build:i}=o)}In.assert(e>=0,"Invalid argument: major"),In.assert(t>=0,"Invalid argument: minor"),In.assert(n>=0,"Invalid argument: patch");const a=r?mt(r)?r:r.split("."):o,s=i?mt(i)?i:i.split("."):o;In.assert(M(a,(e=>Dn.test(e))),"Invalid argument: prerelease"),In.assert(M(s,(e=>Mn.test(e))),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=a,this.build=s}static tryParse(t){const n=Vn(t);if(!n)return;const{major:r,minor:o,patch:i,prerelease:a,build:s}=n;return new e(r,o,i,a,s)}compareTo(e){return this===e?0:void 0===e?1:Ft(this.major,e.major)||Ft(this.minor,e.minor)||Ft(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=e[r],o=t[r];if(n===o)continue;const i=Ln.test(n),a=Ln.test(o);if(i||a){if(i!==a)return i?-1:1;const e=Ft(+n,+o);if(e)return e}else{const e=jt(n,o);if(e)return e}}return Ft(e.length,t.length)}(this.prerelease,e.prerelease)}increment(t){switch(t){case"major":return new e(this.major+1,0,0);case"minor":return new e(this.major,this.minor+1,0);case"patch":return new e(this.major,this.minor,this.patch+1);default:return In.assertNever(t)}}with(t){const{major:n=this.major,minor:r=this.minor,patch:o=this.patch,prerelease:i=this.prerelease,build:a=this.build}=t;return new e(n,r,o,i,a)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return se(this.prerelease)&&(e+=`-${this.prerelease.join(".")}`),se(this.build)&&(e+=`+${this.build.join(".")}`),e}}).zero=new kn(0,0,0,["0"]),Pn=kn,wn=class e{constructor(e){this._alternatives=e?In.checkDefined(Un(e),"Invalid range spec."):o}static tryParse(t){const n=Un(t);if(n){const t=new e("");return t._alternatives=n,t}}test(e){return"string"===typeof e&&(e=new Pn(e)),function(e,t){if(0===t.length)return!0;for(const n of t)if($n(e,n))return!0;return!1}(e,this._alternatives)}toString(){return U(this._alternatives,Qn).join(" || ")||"*"}},On=/\|\|/g,Fn=/\s+/g,Wn=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,zn=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Bn=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function or(e,t){return"object"===typeof e&&"number"===typeof e.timeOrigin&&"function"===typeof e.mark&&"function"===typeof e.measure&&"function"===typeof e.now&&"function"===typeof e.clearMarks&&"function"===typeof e.clearMeasures&&"function"===typeof t}function ir(){return er}var ar,sr,lr,cr,dr,ur,pr,fr,mr,_r,hr=b({"src/compiler/performanceCore.ts"(){JJ(),er=function(){if("object"===typeof performance&&"function"===typeof PerformanceObserver&&or(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if(xn())try{const{performance:e,PerformanceObserver:t}=c("perf_hooks");if(or(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}(),tr=null==er?void 0:er.performance,nr=tr?()=>tr.now():Date.now?Date.now:()=>+new Date}}),gr=b({"src/compiler/perfLogger.ts"(){try{ar=c({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw")}catch(e){ar=void 0}sr=(null==ar?void 0:ar.logEvent)?ar:void 0}});function yr(e,t,n,r){return e?vr(t,n,r):dr}function vr(e,t,n){let r=0;return{enter:function(){1===++r&&br(t)},exit:function(){0===--r?(br(n),Er(e,t,n)):r<0&&In.fail("enter/exit count does not match.")}}}function br(e){if(ur){const t=mr.get(e)??0;mr.set(e,t+1),fr.set(e,nr()),null==cr||cr.mark(e),"function"===typeof onProfilerEvent&&onProfilerEvent(e)}}function Er(e,t,n){if(ur){const r=(void 0!==n?fr.get(n):void 0)??nr(),o=(void 0!==t?fr.get(t):void 0)??pr,i=_r.get(e)||0;_r.set(e,i+(r-o)),null==cr||cr.measure(e,t,n)}}function Sr(e){return mr.get(e)||0}function Tr(e){return _r.get(e)||0}function xr(e){_r.forEach(((t,n)=>e(n,t)))}function Ar(e){fr.forEach(((t,n)=>e(n)))}function Ir(e){void 0!==e?_r.delete(e):_r.clear(),null==cr||cr.clearMeasures(e)}function Rr(e){void 0!==e?(mr.delete(e),fr.delete(e)):(mr.clear(),fr.clear()),null==cr||cr.clearMarks(e)}function Cr(){return ur}function Dr(e=hi){var t;return ur||(ur=!0,lr||(lr=ir()),lr&&(pr=lr.performance.timeOrigin,(lr.shouldWriteNativeEvents||(null==(t=null==e?void 0:e.cpuProfilingEnabled)?void 0:t.call(e))||(null==e?void 0:e.debugMode))&&(cr=lr.performance))),!0}function Nr(){ur&&(fr.clear(),mr.clear(),_r.clear(),cr=void 0,ur=!1)}var Mr=b({"src/compiler/performance.ts"(){JJ(),dr={enter:bt,exit:bt},ur=!1,pr=nr(),fr=new Map,mr=new Map,_r=new Map}}),Lr={};E(Lr,{clearMarks:()=>Rr,clearMeasures:()=>Ir,createTimer:()=>vr,createTimerIf:()=>yr,disable:()=>Nr,enable:()=>Dr,forEachMark:()=>Ar,forEachMeasure:()=>xr,getCount:()=>Sr,getDuration:()=>Tr,isEnabled:()=>Cr,mark:()=>br,measure:()=>Er,nullTimer:()=>dr});var kr,Pr,wr,Or,Fr,Wr,zr,Br,Gr,jr,Vr,Ur,Hr,Kr,qr,Jr,Xr,$r,Yr,Qr,Zr,eo,to,no,ro,oo,io,ao,so,lo,co,uo,po,fo,mo,_o,ho,go,yo,vo,bo,Eo,So,To,xo,Ao,Io,Ro,Co,Do,No,Mo,Lo,ko,Po,wo,Oo,Fo,Wo,zo,Bo,Go,jo,Vo,Uo,Ho,Ko,qo,Jo,Xo,$o,Yo,Qo,Zo,ei,ti,ni,ri,oi=b({"src/compiler/_namespaces/ts.performance.ts"(){Mr()}}),ii=b({"src/compiler/tracing.ts"(){JJ(),oi(),(e=>{let t,n,r=0,o=0;const i=[];let a;const s=[];let l;var d;e.startTracing=function(l,d,u){if(In.assert(!kr,"Tracing already started"),void 0===t)try{t=c("fs")}catch(h){throw new Error(`tracing requires having fs\n(original error: ${h.message||h})`)}n=l,i.length=0,void 0===a&&(a=ua(d,"legend.json")),t.existsSync(d)||t.mkdirSync(d,{recursive:!0});const p="build"===n?`.${process.pid}-${++r}`:"server"===n?`.${process.pid}`:"",f=ua(d,`trace${p}.json`),m=ua(d,`types${p}.json`);s.push({configFilePath:u,tracePath:f,typesPath:m}),o=t.openSync(f,"w"),kr=e;const _={cat:"__metadata",ph:"M",ts:1e3*nr(),pid:1,tid:1};t.writeSync(o,"[\n"+[{name:"process_name",args:{name:"tsc"},..._},{name:"thread_name",args:{name:"Main"},..._},{name:"TracingStartedInBrowser",..._,cat:"disabled-by-default-devtools.timeline"}].map((e=>JSON.stringify(e))).join(",\n"))},e.stopTracing=function(){In.assert(kr,"Tracing is not in progress"),In.assert(!!i.length===("server"!==n)),t.writeSync(o,"\n]\n"),t.closeSync(o),kr=void 0,i.length?function(e){var n,r,o,i,a,l,c,d,u,p,f,m,h,g,y,v,b,E,S;br("beginDumpTypes");const T=s[s.length-1].typesPath,x=t.openSync(T,"w"),A=new Map;t.writeSync(x,"[");const I=e.length;for(let s=0;s<I;s++){const T=e[s],R=T.objectFlags,C=T.aliasSymbol??T.symbol;let D;if(16&R|2944&T.flags)try{D=null==(n=T.checker)?void 0:n.typeToString(T)}catch{D=void 0}let N={};if(8388608&T.flags){const e=T;N={indexedAccessObjectType:null==(r=e.objectType)?void 0:r.id,indexedAccessIndexType:null==(o=e.indexType)?void 0:o.id}}let M={};if(4&R){const e=T;M={instantiatedType:null==(i=e.target)?void 0:i.id,typeArguments:null==(a=e.resolvedTypeArguments)?void 0:a.map((e=>e.id)),referenceLocation:_(e.node)}}let L={};if(16777216&T.flags){const e=T;L={conditionalCheckType:null==(l=e.checkType)?void 0:l.id,conditionalExtendsType:null==(c=e.extendsType)?void 0:c.id,conditionalTrueType:(null==(d=e.resolvedTrueType)?void 0:d.id)??-1,conditionalFalseType:(null==(u=e.resolvedFalseType)?void 0:u.id)??-1}}let k={};if(33554432&T.flags){const e=T;k={substitutionBaseType:null==(p=e.baseType)?void 0:p.id,constraintType:null==(f=e.constraint)?void 0:f.id}}let P={};if(1024&R){const e=T;P={reverseMappedSourceType:null==(m=e.source)?void 0:m.id,reverseMappedMappedType:null==(h=e.mappedType)?void 0:h.id,reverseMappedConstraintType:null==(g=e.constraintType)?void 0:g.id}}let w,O={};if(256&R){const e=T;O={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(y=e.finalArrayType)?void 0:y.id}}const F=T.checker.getRecursionIdentity(T);F&&(w=A.get(F),w||(w=A.size,A.set(F,w)));const W={id:T.id,intrinsicName:T.intrinsicName,symbolName:(null==C?void 0:C.escapedName)&&Ll(C.escapedName),recursionId:w,isTuple:!!(8&R)||void 0,unionTypes:1048576&T.flags?null==(v=T.types)?void 0:v.map((e=>e.id)):void 0,intersectionTypes:2097152&T.flags?T.types.map((e=>e.id)):void 0,aliasTypeArguments:null==(b=T.aliasTypeArguments)?void 0:b.map((e=>e.id)),keyofType:4194304&T.flags?null==(E=T.type)?void 0:E.id:void 0,...N,...M,...L,...k,...P,...O,destructuringPattern:_(T.pattern),firstDeclaration:_(null==(S=null==C?void 0:C.declarations)?void 0:S[0]),flags:In.formatTypeFlags(T.flags).split("|"),display:D};t.writeSync(x,JSON.stringify(W)),s<I-1&&t.writeSync(x,",\n")}t.writeSync(x,"]\n"),t.closeSync(x),br("endDumpTypes"),Er("Dump types","beginDumpTypes","endDumpTypes")}(i):s[s.length-1].typesPath=void 0},e.recordType=function(e){"server"!==n&&i.push(e)},(d=l=e.Phase||(e.Phase={})).Parse="parse",d.Program="program",d.Bind="bind",d.Check="check",d.CheckTypes="checkTypes",d.Emit="emit",d.Session="session",e.instant=function(e,t,n){m("I",e,t,n,'"s":"g"')};const u=[];e.push=function(e,t,n,r=!1){r&&m("B",e,t,n),u.push({phase:e,name:t,args:n,time:1e3*nr(),separateBeginAndEnd:r})},e.pop=function(e){In.assert(u.length>0),f(u.length-1,1e3*nr(),e),u.length--},e.popAll=function(){const e=1e3*nr();for(let t=u.length-1;t>=0;t--)f(t,e);u.length=0};const p=1e4;function f(e,t,n){const{phase:r,name:o,args:i,time:a,separateBeginAndEnd:s}=u[e];s?(In.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),m("E",r,o,i,void 0,t)):p-a%p<=t-a&&m("X",r,o,{...i,results:n},'"dur":'+(t-a),a)}function m(e,r,i,a,s,l=1e3*nr()){"server"===n&&"checkTypes"===r||(br("beginTracing"),t.writeSync(o,`,\n{"pid":1,"tid":1,"ph":"${e}","cat":"${r}","ts":${l},"name":"${i}"`),s&&t.writeSync(o,`,${s}`),a&&t.writeSync(o,`,"args":${JSON.stringify(a)}`),t.writeSync(o,"}"),br("endTracing"),Er("Tracing","beginTracing","endTracing"))}function _(e){const t=Yf(e);return t?{path:t.path,start:n(_s(t,e.pos)),end:n(_s(t,e.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}e.dumpLegend=function(){a&&t.writeFileSync(a,JSON.stringify(s))}})(Pr||(Pr={})),wr=Pr.startTracing,Or=Pr.dumpLegend}});function ai(e,t=!0){const n=Do[e.category];return t?n.toLowerCase():n}var si,li,ci,di,ui,pi,fi,mi,_i,hi,gi=b({"src/compiler/types.ts"(){Fr=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(Fr||{}),Wr=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(Wr||{}),zr=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(zr||{}),Br=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(Br||{}),Gr=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(Gr||{}),jr=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(jr||{}),Vr=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(Vr||{}),Ur=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Ur||{}),Hr=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Hr||{}),Kr=class{},qr=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(qr||{}),Jr=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(Jr||{}),Xr=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(Xr||{}),$r=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))($r||{}),Yr=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(Yr||{}),Qr=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Qr||{}),Zr=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Zr||{}),eo=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(eo||{}),to=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(to||{}),no=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(no||{}),ro=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(ro||{}),oo=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(oo||{}),io=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(io||{}),ao=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(ao||{}),so=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(so||{}),lo=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(lo||{}),co=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(co||{}),uo=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(uo||{}),po=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(po||{}),fo=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(fo||{}),mo=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(mo||{}),_o=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(_o||{}),ho=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(ho||{}),go=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(go||{}),yo=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(yo||{}),vo=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(vo||{}),bo=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(bo||{}),Eo=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Eo||{}),So=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(So||{}),To=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(To||{}),xo=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(xo||{}),Ao=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(Ao||{}),Io=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(Io||{}),Ro=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(Ro||{}),Co=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(Co||{}),Do=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(Do||{}),No=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(No||{}),Mo=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(Mo||{}),Lo=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(Lo||{}),ko=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(ko||{}),Po=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(Po||{}),wo=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(wo||{}),Oo=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(Oo||{}),Fo=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(Fo||{}),Wo=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Wo||{}),zo=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(zo||{}),Bo=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Bo||{}),Go=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Go||{}),jo=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(jo||{}),Vo=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(Vo||{}),Uo=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Uo||{}),Ho=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Ho||{}),Ko=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Ko||{}),qo=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(qo||{}),Jo=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(Jo||{}),Xo=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(Xo||{}),$o=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))($o||{}),Yo=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(Yo||{}),Qo=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(Qo||{}),Zo=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(Zo||{}),ei=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(ei||{}),ti=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(ti||{}),ni={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},ri=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(ri||{})}});function yi(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n);return t.toString()}function vi(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function bi(e,t){return e.getModifiedTime(t)||ci}function Ei(e){return{250:e.Low,500:e.Medium,2e3:e.High}}function Si(e){if(!e.getEnvironmentVariable)return;const t=function(e,t){const r=n(e);if(r)return o("Low"),o("Medium"),o("High"),!0;return!1;function o(e){t[e]=r[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",li);function n(t){let n;return r("Low"),r("Medium"),r("High"),n;function r(r){const o=function(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}(t,r);o&&((n||(n={}))[r]=Number(o))}}function r(e,r){const o=n(e);return(t||o)&&Ei(o?{...r,...o}:r)}ui=r("TSC_WATCH_POLLINGCHUNKSIZE",di)||ui,pi=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",di)||pi}function Ti(e,t,n,r,o){let i=n;for(let s=t.length;r&&s;a(),s--){const a=t[n];if(!a)continue;if(a.isClosed){t[n]=void 0;continue}r--;const s=Ri(a,bi(e,a.fileName));a.isClosed?t[n]=void 0:(null==o||o(a,n,s),t[n]&&(i<n&&(t[i]=a,t[n]=void 0),i++))}return n;function a(){++n===t.length&&(i<n&&(t.length=i),n=0,i=0)}}function xi(e){const t=[],n=[],r=a(250),o=a(500),i=a(2e3);return function(n,r,o){const i={fileName:n,callback:r,unchangedPolls:0,mtime:bi(e,n)};return t.push(i),u(i,o),{close:()=>{i.isClosed=!0,on(t,i)}}};function a(e){const t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e,t){t.pollIndex=c(t,t.pollingInterval,t.pollIndex,ui[t.pollingInterval]),t.length?f(t.pollingInterval):(In.assert(0===t.pollIndex),t.pollScheduled=!1)}function l(e,t){c(n,250,0,n.length),s(0,t),!t.pollScheduled&&n.length&&f(250)}function c(t,r,o,i){return Ti(e,t,o,i,(function(e,o,i){i?(e.unchangedPolls=0,t!==n&&(t[o]=void 0,a=e,n.push(a),p(250))):e.unchangedPolls!==pi[r]?e.unchangedPolls++:t===n?(e.unchangedPolls=1,t[o]=void 0,u(e,250)):2e3!==r&&(e.unchangedPolls++,t[o]=void 0,u(e,250===r?500:2e3));var a}))}function d(e){switch(e){case 250:return r;case 500:return o;case 2e3:return i}}function u(e,t){d(t).push(e),p(t)}function p(e){d(e).pollScheduled||f(e)}function f(t){d(t).pollScheduled=e.setTimeout(250===t?l:s,t,250===t?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",d(t))}}function Ai(e,t,n,r){const o=ct(),i=r?new Map:void 0,a=new Map,s=an(t);return function(t,r,l,c){const d=s(t);1===o.add(d,r).length&&i&&i.set(d,n(t)||ci);const u=ra(d)||".",p=a.get(u)||function(t,r,l){const c=e(t,1,((e,r)=>{if(!ht(r))return;const a=ma(r,t),l=s(a),c=a&&o.get(l);if(c){let t,r=1;if(i){const o=i.get(l);if("change"===e&&(t=n(a)||ci,t.getTime()===o.getTime()))return;t||(t=n(a)||ci),i.set(l,t),o===ci?r=0:t===ci&&(r=2)}for(const e of c)e(a,r,t)}}),!1,500,l);return c.referenceCount=0,a.set(r,c),c}(ra(t)||".",u,c);return p.referenceCount++,{close:()=>{1===p.referenceCount?(p.close(),a.delete(u)):p.referenceCount--,o.remove(d,r)}}}}function Ii(e,t,n,r,o){const i=an(t)(n),a=e.get(i);return a?a.callbacks.push(r):e.set(i,{watcher:o(((t,n,r)=>{var o;return null==(o=e.get(i))?void 0:o.callbacks.slice().forEach((e=>e(t,n,r)))})),callbacks:[r]}),{close:()=>{const t=e.get(i);t&&tn(t.callbacks,r)&&!t.callbacks.length&&(e.delete(i),lU(t))}}}function Ri(e,t){const n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,Ci(n,r),t),!0)}function Ci(e,t){return 0===e?0:0===t?2:1}function Di(e){return mi(e)}function Ni(e){mi=e}function Mi({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:i,realpath:a,setTimeout:s,clearTimeout:l}){const c=new Map,d=ct(),u=new Map;let p;const f=Vt(!t),m=an(t);return(t,n,r,o)=>r?_(t,o,n):e(t,n,r,o);function _(t,n,r){const a=m(t);let f=c.get(a);f?f.refCount++:(f={watcher:e(t,(e=>{b(e,n)||((null==n?void 0:n.synchronousWatchDirectory)?(h(a,e),v(t,a,n)):function(e,t,n,r){const o=c.get(t);if(o&&i(e,1))return void function(e,t,n,r){const o=u.get(t);o?o.fileNames.push(n):u.set(t,{dirName:e,options:r,fileNames:[n]});p&&(l(p),p=void 0);p=s(g,1e3,"timerToUpdateChildWatches")}(e,t,n,r);h(t,n),y(o)}(t,a,e,n))}),!1,n),refCount:1,childWatches:o},c.set(a,f),v(t,a,n));const _=r&&{dirName:t,callback:r};return _&&d.add(a,_),{dirName:t,close:()=>{const e=In.checkDefined(c.get(a));_&&d.remove(a,_),e.refCount--,e.refCount||(c.delete(a),lU(e),e.childWatches.forEach(fS))}}}function h(e,t,n){let r,o;ht(t)?r=t:o=t,d.forEach(((t,i)=>{if((!o||!0!==o.get(i))&&(i===e||dn(e,i)&&e[i.length]===Fi))if(o)if(n){const e=o.get(i);e?e.push(...n):o.set(i,n.slice())}else o.set(i,!0);else t.forEach((({callback:e})=>e(r)))}))}function g(){p=void 0,Di(`sysLog:: onTimerToUpdateChildWatches:: ${u.size}`);const e=nr(),t=new Map;for(;!p&&u.size;){const e=u.entries().next();In.assert(!e.done);const{value:[n,{dirName:r,options:o,fileNames:i}]}=e;u.delete(n);const a=v(r,n,o);h(n,t,a?void 0:i)}Di(`sysLog:: invokingWatchers:: Elapsed:: ${nr()-e}ms:: ${u.size}`),d.forEach(((e,n)=>{const r=t.get(n);r&&e.forEach((({callback:e,dirName:t})=>{mt(r)?r.forEach(e):e(t)}))}));Di(`sysLog:: Elapsed:: ${nr()-e}ms:: onTimerToUpdateChildWatches:: ${u.size} ${p}`)}function y(e){if(!e)return;const t=e.childWatches;e.childWatches=o;for(const n of t)n.close(),y(c.get(m(n.dirName)))}function v(e,t,n){const s=c.get(t);if(!s)return!1;let l;const d=vn(i(e,1)?Z(r(e),(t=>{const r=ma(t,e);return b(r,n)||0!==f(r,_a(a(r)))?void 0:r})):o,s.childWatches,((e,t)=>f(e,t.dirName)),(function(e){u(_(e,n))}),fS,u);return s.childWatches=l||o,d;function u(e){(l||(l=[])).push(e)}}function b(e,r){return se(fi,(n=>function(e,n){return!!e.includes(n)||!t&&m(e).includes(n)}(e,n)))||Li(e,r,t,n)}}function Li(e,t,n,r){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(NO(e,null==t?void 0:t.excludeFiles,n,r())||NO(e,null==t?void 0:t.excludeDirectories,n,r()))}function ki(e,t,n,r,o){return(i,a)=>{if("rename"===i){const i=a?_a(ua(e,a)):e;a&&Li(i,n,r,o)||t(i)}}}function Pi({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:o,fileSystemEntryExists:i,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:l,getAccessibleSortedChildDirectories:c,realpath:d,tscWatchFile:u,useNonPollingWatchers:p,tscWatchDirectory:f,inodeWatching:m,fsWatchWithTimestamp:_,sysLog:h}){const g=new Map,y=new Map,v=new Map;let b,E,S,T,x=!1;return{watchFile:A,watchDirectory:function(e,t,o,u){if(l)return M(e,1,ki(e,t,u,a,s),o,500,sU(u));T||(T=Mi({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:i,getAccessibleSortedChildDirectories:c,watchDirectory:D,realpath:d,setTimeout:n,clearTimeout:r}));return T(e,t,o,u)}};function A(e,n,r,o){o=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(u){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return C(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return C(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?C(5,1,e):{watchFile:4}}}(o,p);const i=In.checkDefined(o.watchFile);switch(i){case 0:return N(e,n,250,void 0);case 1:return N(e,n,r,void 0);case 2:return I()(e,n,r,void 0);case 3:return R()(e,n,void 0,void 0);case 4:return M(e,0,function(e,t,n){return(r,o,i)=>{"rename"===r?(i||(i=n(e)||ci),t(e,i!==ci?0:2,i)):t(e,1,i)}}(e,n,t),!1,r,sU(o));case 5:return S||(S=Ai(M,a,t,_)),S(e,n,r,sU(o));default:In.assertNever(i)}}function I(){return b||(b=xi({getModifiedTime:t,setTimeout:n}))}function R(){return E||(E=function(e){const t=[];let n,r=0;return function(n,r){const o={fileName:n,callback:r,mtime:bi(e,n)};return t.push(o),i(),{close:()=>{o.isClosed=!0,on(t,o)}}};function o(){n=void 0,r=Ti(e,t,r,ui[250]),i()}function i(){t.length&&!n&&(n=e.setTimeout(o,2e3,"pollQueue"))}}({getModifiedTime:t,setTimeout:n}))}function C(e,t,n){const r=null==n?void 0:n.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function D(e,t,n,r){In.assert(!n);const o=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(f){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(r),i=In.checkDefined(o.watchDirectory);switch(i){case 1:return N(e,(()=>t(e)),500,void 0);case 2:return I()(e,(()=>t(e)),500,void 0);case 3:return R()(e,(()=>t(e)),void 0,void 0);case 0:return M(e,1,ki(e,t,r,a,s),n,500,sU(o));default:In.assertNever(i)}}function N(t,n,r,o){return Ii(g,a,t,n,(n=>e(t,n,r,o)))}function M(e,n,r,s,l,c){return Ii(s?v:y,a,e,r,(r=>function(e,n,r,a,s,l){let c,d;m&&(c=e.substring(e.lastIndexOf(Fi)),d=c.slice(Fi.length));let u=i(e,n)?f():v();return{close:()=>{u&&(u.close(),u=void 0)}};function p(t){u&&(h(`sysLog:: ${e}:: Changing watcher to ${t===f?"Present":"Missing"}FileSystemEntryWatcher`),u.close(),u=t())}function f(){if(x)return h(`sysLog:: ${e}:: Defaulting to watchFile`),y();try{const t=(1!==n&&_?L:o)(e,a,m?g:r);return t.on("error",(()=>{r("rename",""),p(v)})),t}catch(t){return x||(x="ENOSPC"===t.code),h(`sysLog:: ${e}:: Changing to watchFile`),y()}}function g(n,o){let i;if(o&&Yt(o,"~")&&(i=o,o=o.slice(0,o.length-1)),"rename"!==n||o&&o!==d&&!Yt(o,c))i&&r(n,i),r(n,o);else{const a=t(e)||ci;i&&r(n,i,a),r(n,o,a),m?p(a===ci?v:f):a===ci&&p(v)}}function y(){return A(e,function(e){return(t,n,r)=>e(1===n?"change":"rename","",r)}(r),s,l)}function v(){return A(e,((n,o,i)=>{0===o&&(i||(i=t(e)||ci),i!==ci&&(r("rename","",i),p(f)))}),s,l)}}(e,n,r,s,l,c)))}function L(e,n,r){let i=t(e)||ci;return o(e,n,((n,o,a)=>{"change"===n&&(a||(a=t(e)||ci),a.getTime()===i.getTime())||(i=a||t(e)||ci,r(n,o,i))}))}}function wi(e){const t=e.writeFile;e.writeFile=(n,r,o)=>pb(n,r,!!o,((n,r,o)=>t.call(e,n,r,o)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t)))}function Oi(e){hi=e}var Fi,Wi,zi,Bi,Gi,ji=b({"src/compiler/sys.ts"(){JJ(),si=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(si||{}),li=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(li||{}),ci=new Date(0),ui=Ei(di={Low:32,Medium:64,High:256}),pi=Ei(di),fi=["/node_modules/.","/.git","/.#"],mi=bt,_i=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(_i||{}),(hi=(()=>{let e;return xn()&&(e=function(){const e=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,t=c("fs"),r=c("path"),o=c("os");let i,s;try{i=c("crypto")}catch{i=void 0}let l="./profile.cpuprofile";const d=c("buffer").Buffer,u="darwin"===process.platform,p="linux"===process.platform||u,f=o.platform(),m=function(){return"win32"!==f&&"win64"!==f&&!R((e=a,e.replace(/\w/g,(e=>{const t=e.toUpperCase();return e===t?e.toLowerCase():t}))));var e}(),_=t.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,h=a.endsWith("sys.js")?r.join(r.dirname("/"),"__fake__.js"):a,g="win32"===process.platform||u,y=Ct((()=>process.cwd())),{watchFile:v,watchDirectory:b}=Pi({pollingWatchFileWorker:function(e,n,r){let o;return t.watchFile(e,{persistent:!0,interval:r},i),{close:()=>t.unwatchFile(e,i)};function i(t,r){const i=0===+r.mtime||2===o;if(0===+t.mtime){if(i)return;o=2}else if(i)o=0;else{if(+t.mtime===+r.mtime)return;o=1}n(e,o,t.mtime)}},getModifiedTime:D,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,g?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:m,getCurrentDirectory:y,fileSystemEntryExists:I,fsSupportsRecursiveFsWatch:g,getAccessibleSortedChildDirectories:e=>A(e).directories,realpath:C,tscWatchFile:{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TSC_WATCHFILE,useNonPollingWatchers:!!{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TSC_NONPOLLING_WATCHER,tscWatchDirectory:{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.TSC_WATCHDIRECTORY,inodeWatching:p,fsWatchWithTimestamp:u,sysLog:Di}),E={args:process.argv.slice(2),newLine:o.EOL,useCaseSensitiveFileNames:m,write(e){process.stdout.write(e)},getWidthOfTerminal:()=>process.stdout.columns,writeOutputIsTTY:()=>process.stdout.isTTY,readFile:function(e,n){var r,o;null==(r=sr)||r.logStartReadFile(e);const i=function(e){let n;try{n=t.readFileSync(e)}catch(o){return}let r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(let e=0;e<r;e+=2){const t=n[e];n[e]=n[e+1],n[e+1]=t}return n.toString("utf16le",2)}return r>=2&&255===n[0]&&254===n[1]?n.toString("utf16le",2):r>=3&&239===n[0]&&187===n[1]&&191===n[2]?n.toString("utf8",3):n.toString("utf8")}(e);return null==(o=sr)||o.logStopReadFile(),i},writeFile:function(e,n,r){var o;let i;null==(o=sr)||o.logEvent("WriteFile: "+e),r&&(n="\ufeff"+n);try{i=t.openSync(e,"w"),t.writeSync(i,n,void 0,"utf8")}finally{void 0!==i&&t.closeSync(i)}},watchFile:v,watchDirectory:b,resolvePath:e=>r.resolve(e),fileExists:R,directoryExists:function(e){return I(e,1)},getAccessibleFileSystemEntries:A,createDirectory(e){if(!E.directoryExists(e))try{t.mkdirSync(e)}catch(n){if("EEXIST"!==n.code)throw n}},getExecutingFilePath:()=>h,getCurrentDirectory:y,getDirectories:function(e){return A(e).directories.slice()},getEnvironmentVariable:e=>({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}[e]||""),readDirectory:function(e,t,n,r,o){return XT(e,t,n,r,m,process.cwd(),o,A,C)},getModifiedTime:D,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch(r){return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch(n){return}},createHash:i?N:yi,createSHA256Hash:i?N:void 0,getMemoryUsage:()=>(n.g.gc&&n.g.gc(),process.memoryUsage().heapUsed),getFileSize(e){try{const t=S(e);if(null==t?void 0:t.isFile())return t.size}catch{}return 0},exit(e){T((()=>process.exit(e)))},enableCPUProfiler:function(e,t){if(s)return t(),!1;const n=c("inspector");if(!n||!n.Session)return t(),!1;const r=new n.Session;return r.connect(),r.post("Profiler.enable",(()=>{r.post("Profiler.start",(()=>{s=r,l=e,t()}))})),!0},disableCPUProfiler:T,cpuProfilingEnabled:()=>!!s||F(process.execArgv,"--cpu-prof")||F(process.execArgv,"--prof"),realpath:C,debugMode:!!{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.NODE_INSPECTOR_IPC||!!{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BACKEND:"http://localhost:8765",REACT_APP_META_BACKEND:"undefined"}.VSCODE_INSPECTOR_OPTIONS||se(process.execArgv,(e=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{c("source-map-support").install()}catch{}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:()=>{process.stdout.write("\x1bc")},setBlocking:()=>{var e;const t=null==(e=process.stdout)?void 0:e._handle;t&&t.setBlocking&&t.setBlocking(!0)},bufferFrom:x,base64decode:e=>x(e,"base64").toString("utf8"),base64encode:e=>x(e).toString("base64"),require:(e,t)=>{try{const n=FF(t,e,E);return{module:c(n),modulePath:n,error:void 0}}catch(n){return{module:void 0,modulePath:void 0,error:n}}}};return E;function S(e){return t.statSync(e,{throwIfNoEntry:!1})}function T(n){if(s&&"stopping"!==s){const o=s;return s.post("Profiler.stop",((i,{profile:a})=>{var c;if(!i){try{(null==(c=S(l))?void 0:c.isDirectory())&&(l=r.join(l,`${(new Date).toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{t.mkdirSync(r.dirname(l),{recursive:!0})}catch{}t.writeFileSync(l,JSON.stringify(function(t){let n=0;const o=new Map,i=ca(r.dirname(h)),a=`file://${1===na(i)?"":"/"}${i}`;for(const r of t.nodes)if(r.callFrame.url){const t=ca(r.callFrame.url);Ra(a,t,m)?r.callFrame.url=ka(a,t,a,an(m),!0):e.test(t)||(r.callFrame.url=(o.has(t)?o:o.set(t,`external${n}.js`)).get(t),n++)}return t}(a)))}s=void 0,o.disconnect(),n()})),s="stopping",!0}return n(),!1}function x(e,t){return d.from&&d.from!==Int8Array.from?d.from(e,t):new d(e,t)}function A(e){var n;null==(n=sr)||n.logEvent("ReadDir: "+(e||"."));try{const n=t.readdirSync(e||".",{withFileTypes:!0}),o=[],i=[];for(const t of n){const n="string"===typeof t?t:t.name;if("."===n||".."===n)continue;let a;if("string"===typeof t||t.isSymbolicLink()){const t=ua(e,n);try{if(a=S(t),!a)continue}catch(r){continue}}else a=t;a.isFile()?o.push(n):a.isDirectory()&&i.push(n)}return o.sort(),i.sort(),{files:o,directories:i}}catch(r){return If}}function I(e,t){const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const n=S(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(r){return!1}finally{Error.stackTraceLimit=n}}function R(e){return I(e,0)}function C(e){try{return _(e)}catch{return e}}function D(e){var t;const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return null==(t=S(e))?void 0:t.mtime}catch(r){return}finally{Error.stackTraceLimit=n}}function N(e){const t=i.createHash("sha256");return t.update(e),t.digest("hex")}}()),e&&wi(e),e})())&&hi.getEnvironmentVariable&&(Si(hi),In.setAssertionLevel(/^development$/i.test(hi.getEnvironmentVariable("NODE_ENV"))?1:0)),hi&&hi.debugMode&&(In.isDebugging=!0)}});function Vi(e){return 47===e||92===e}function Ui(e){return ta(e)<0}function Hi(e){return ta(e)>0}function Ki(e){const t=ta(e);return t>0&&t===e.length}function qi(e){return 0!==ta(e)}function Ji(e){return/^\.\.?($|[\\/])/.test(e)}function Xi(e){return!qi(e)&&!Ji(e)}function $i(e){return oa(e).includes(".")}function Yi(e,t){return e.length>t.length&&Yt(e,t)}function Qi(e,t){for(const n of t)if(Yi(e,n))return!0;return!1}function Zi(e){return e.length>0&&Vi(e.charCodeAt(e.length-1))}function ea(e){return e>=97&&e<=122||e>=65&&e<=90}function ta(e){if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?Fi:Wi,2);return n<0?e.length:n+1}if(ea(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf(zi);if(-1!==n){const t=n+zi.length,r=e.indexOf(Fi,t);if(-1!==r){const o=e.slice(0,n),i=e.slice(t,r);if("file"===o&&(""===i||"localhost"===i)&&ea(e.charCodeAt(r+1))){const t=function(e,t){const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function na(e){const t=ta(e);return t<0?~t:t}function ra(e){const t=na(e=ca(e));return t===e.length?e:(e=ya(e)).slice(0,Math.max(t,e.lastIndexOf(Fi)))}function oa(e,t,n){if(na(e=ca(e))===e.length)return"";const r=(e=ya(e)).slice(Math.max(na(e),e.lastIndexOf(Fi)+1)),o=void 0!==t&&void 0!==n?aa(r,t,n):void 0;return o?r.slice(0,r.length-o.length):r}function ia(e,t,n){if(dn(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){const r=e.slice(e.length-t.length);if(n(r,t))return r}}function aa(e,t,n){if(t)return function(e,t,n){if("string"===typeof t)return ia(e,t,n)||"";for(const r of t){const t=ia(e,r,n);if(t)return t}return""}(ya(e),t,n?Pt:wt);const r=oa(e),o=r.lastIndexOf(".");return o>=0?r.substring(o):""}function sa(e,t=""){return function(e,t){const n=e.substring(0,t),r=e.substring(t).split(Fi);return r.length&&!Oe(r)&&r.pop(),[n,...r]}(e=ua(t,e),na(e))}function la(e,t){if(0===e.length)return"";return(e[0]&&va(e[0]))+e.slice(1,t).join(Fi)}function ca(e){return e.includes("\\")?e.replace(Bi,Fi):e}function da(e){if(!se(e))return[];const t=[e[0]];for(let n=1;n<e.length;n++){const r=e[n];if(r&&"."!==r){if(".."===r)if(t.length>1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function ua(e,...t){e&&(e=ca(e));for(let n of t)n&&(n=ca(n),e=e&&0===na(n)?va(e)+n:n);return e}function pa(e,...t){return _a(se(t)?ua(e,...t):ca(e))}function fa(e,t){return da(sa(e,t))}function ma(e,t){return la(fa(e,t))}function _a(e){if(e=ca(e),!Gi.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Gi.test(e)))return e;const n=la(da(sa(e)));return n&&Zi(e)?va(n):n}function ha(e,t){return 0===(n=fa(e,t)).length?"":n.slice(1).join(Fi);var n}function ga(e,t,n){return n(Hi(e)?_a(e):ma(e,t))}function ya(e){return Zi(e)?e.substr(0,e.length-1):e}function va(e){return Zi(e)?e:e+Fi}function ba(e){return qi(e)||Ji(e)?e:"./"+e}function Ea(e,t,n,r){const o=void 0!==n&&void 0!==r?aa(e,n,r):aa(e);return o?e.slice(0,e.length-o.length)+(dn(t,".")?t:"."+t):e}function Sa(e,t){const n=hP(e);return n?e.slice(0,e.length-n.length)+(dn(t,".")?t:"."+t):Ea(e,t)}function Ta(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=e.substring(0,na(e)),o=t.substring(0,na(t)),i=Bt(r,o);if(0!==i)return i;const a=e.substring(r.length),s=t.substring(o.length);if(!Gi.test(a)&&!Gi.test(s))return n(a,s);const l=da(sa(e)),c=da(sa(t)),d=Math.min(l.length,c.length);for(let u=1;u<d;u++){const e=n(l[u],c[u]);if(0!==e)return e}return Ft(l.length,c.length)}function xa(e,t){return Ta(e,t,jt)}function Aa(e,t){return Ta(e,t,Bt)}function Ia(e,t,n,r){return"string"===typeof n?(e=ua(n,e),t=ua(n,t)):"boolean"===typeof n&&(r=n),Ta(e,t,Vt(r))}function Ra(e,t,n,r){if("string"===typeof n?(e=ua(n,e),t=ua(n,t)):"boolean"===typeof n&&(r=n),void 0===e||void 0===t)return!1;if(e===t)return!0;const o=da(sa(e)),i=da(sa(t));if(i.length<o.length)return!1;const a=r?Pt:wt;for(let s=0;s<o.length;s++){if(!(0===s?Pt:a)(o[s],i[s]))return!1}return!0}function Ca(e,t,n){const r=n(e),o=n(t);return dn(r,o+"/")||dn(r,o+"\\")}function Da(e,t,n,r){const o=da(sa(e)),i=da(sa(t));let a;for(a=0;a<o.length&&a<i.length;a++){if(!(0===a?Pt:n)(r(o[a]),r(i[a])))break}if(0===a)return i;const s=i.slice(a),l=[];for(;a<o.length;a++)l.push("..");return["",...l,...s]}function Na(e,t,n){In.assert(na(e)>0===na(t)>0,"Paths must either both be absolute or both be relative");return la(Da(e,t,"boolean"===typeof n&&n?Pt:wt,"function"===typeof n?n:xt))}function Ma(e,t,n){return Hi(e)?ka(t,e,t,n,!1):e}function La(e,t,n){return ba(Na(ra(e),t,n))}function ka(e,t,n,r,o){const i=Da(pa(n,e),pa(n,t),wt,r),a=i[0];if(o&&Hi(a)){const e=a.charAt(0)===Fi?"file://":"file:///";i[0]=e+a}return la(i)}function Pa(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=ra(e);if(r===e)return;e=r}}function wa(e){return Yt(e,"/node_modules")}var Oa,Fa=b({"src/compiler/path.ts"(){JJ(),Fi="/",Wi="\\",zi="://",Bi=/\\/g,Gi=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function Wa(e,t,n,r,o,i,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:o,elidedInCompatabilityPyramid:i,reportsDeprecated:a}}var za,Ba,Ga,ja,Va,Ua,Ha,Ka,qa,Ja,Xa,$a,Ya,Qa,Za,es,ts=b({"src/compiler/diagnosticInformationMap.generated.ts"(){gi(),Oa={Unterminated_string_literal:Wa(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:Wa(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:Wa(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:Wa(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:Wa(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:Wa(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:Wa(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:Wa(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:Wa(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:Wa(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:Wa(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:Wa(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:Wa(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:Wa(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:Wa(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:Wa(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:Wa(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:Wa(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:Wa(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:Wa(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:Wa(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:Wa(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:Wa(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:Wa(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:Wa(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:Wa(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:Wa(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:Wa(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:Wa(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:Wa(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:Wa(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:Wa(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:Wa(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:Wa(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:Wa(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:Wa(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:Wa(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:Wa(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:Wa(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:Wa(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:Wa(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:Wa(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:Wa(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Wa(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:Wa(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:Wa(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:Wa(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:Wa(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:Wa(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:Wa(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:Wa(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:Wa(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:Wa(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:Wa(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:Wa(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:Wa(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:Wa(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:Wa(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:Wa(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:Wa(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:Wa(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:Wa(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:Wa(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:Wa(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:Wa(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:Wa(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:Wa(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:Wa(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:Wa(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:Wa(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:Wa(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:Wa(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Wa(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:Wa(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:Wa(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:Wa(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:Wa(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:Wa(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:Wa(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:Wa(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:Wa(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:Wa(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:Wa(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:Wa(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:Wa(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:Wa(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:Wa(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:Wa(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:Wa(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:Wa(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:Wa(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:Wa(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:Wa(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:Wa(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:Wa(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:Wa(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:Wa(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:Wa(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:Wa(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:Wa(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:Wa(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:Wa(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:Wa(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:Wa(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:Wa(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:Wa(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:Wa(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:Wa(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:Wa(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:Wa(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:Wa(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:Wa(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:Wa(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:Wa(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:Wa(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:Wa(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:Wa(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:Wa(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:Wa(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:Wa(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:Wa(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:Wa(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Wa(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:Wa(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Wa(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Wa(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Wa(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:Wa(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:Wa(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:Wa(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:Wa(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:Wa(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:Wa(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:Wa(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:Wa(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:Wa(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:Wa(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:Wa(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:Wa(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:Wa(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:Wa(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:Wa(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:Wa(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:Wa(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:Wa(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:Wa(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:Wa(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:Wa(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:Wa(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:Wa(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:Wa(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:Wa(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:Wa(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:Wa(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:Wa(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:Wa(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:Wa(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:Wa(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:Wa(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:Wa(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:Wa(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:Wa(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:Wa(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:Wa(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:Wa(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:Wa(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Wa(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:Wa(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:Wa(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:Wa(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:Wa(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:Wa(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:Wa(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:Wa(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:Wa(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:Wa(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:Wa(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:Wa(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:Wa(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:Wa(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:Wa(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:Wa(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:Wa(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:Wa(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:Wa(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:Wa(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:Wa(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:Wa(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:Wa(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:Wa(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:Wa(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:Wa(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:Wa(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:Wa(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:Wa(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:Wa(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:Wa(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:Wa(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:Wa(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:Wa(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:Wa(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Wa(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:Wa(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:Wa(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:Wa(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:Wa(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:Wa(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:Wa(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:Wa(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:Wa(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:Wa(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:Wa(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:Wa(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:Wa(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:Wa(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:Wa(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:Wa(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:Wa(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:Wa(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:Wa(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:Wa(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:Wa(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:Wa(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:Wa(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:Wa(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:Wa(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:Wa(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:Wa(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:Wa(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:Wa(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:Wa(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Wa(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Wa(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Wa(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Wa(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:Wa(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:Wa(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Wa(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:Wa(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:Wa(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:Wa(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:Wa(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:Wa(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Wa(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:Wa(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:Wa(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:Wa(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:Wa(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:Wa(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:Wa(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:Wa(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:Wa(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:Wa(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Wa(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Wa(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Wa(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:Wa(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:Wa(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:Wa(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:Wa(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:Wa(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:Wa(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:Wa(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:Wa(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:Wa(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:Wa(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:Wa(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:Wa(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:Wa(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:Wa(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:Wa(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:Wa(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:Wa(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:Wa(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:Wa(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:Wa(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:Wa(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:Wa(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:Wa(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:Wa(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:Wa(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:Wa(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:Wa(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:Wa(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:Wa(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:Wa(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:Wa(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:Wa(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:Wa(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:Wa(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:Wa(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:Wa(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:Wa(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:Wa(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:Wa(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:Wa(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:Wa(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:Wa(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:Wa(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:Wa(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:Wa(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:Wa(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Wa(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:Wa(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:Wa(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:Wa(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:Wa(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:Wa(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:Wa(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:Wa(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:Wa(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:Wa(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Wa(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Wa(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:Wa(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:Wa(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:Wa(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:Wa(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:Wa(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:Wa(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:Wa(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:Wa(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:Wa(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:Wa(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:Wa(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:Wa(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:Wa(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:Wa(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:Wa(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:Wa(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:Wa(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:Wa(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:Wa(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:Wa(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:Wa(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:Wa(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:Wa(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:Wa(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:Wa(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:Wa(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:Wa(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:Wa(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:Wa(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:Wa(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:Wa(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:Wa(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:Wa(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:Wa(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:Wa(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:Wa(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:Wa(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:Wa(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:Wa(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:Wa(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:Wa(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Wa(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:Wa(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:Wa(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:Wa(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:Wa(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:Wa(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:Wa(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:Wa(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:Wa(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:Wa(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:Wa(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:Wa(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:Wa(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Wa(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Wa(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:Wa(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:Wa(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:Wa(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:Wa(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:Wa(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:Wa(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:Wa(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:Wa(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:Wa(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:Wa(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:Wa(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:Wa(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:Wa(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:Wa(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:Wa(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:Wa(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:Wa(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:Wa(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Wa(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:Wa(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:Wa(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:Wa(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:Wa(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:Wa(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:Wa(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:Wa(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:Wa(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:Wa(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:Wa(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Wa(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Wa(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:Wa(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:Wa(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:Wa(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:Wa(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:Wa(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:Wa(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:Wa(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:Wa(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:Wa(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:Wa(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:Wa(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:Wa(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:Wa(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:Wa(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:Wa(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:Wa(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:Wa(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:Wa(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:Wa(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:Wa(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:Wa(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:Wa(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:Wa(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:Wa(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:Wa(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Wa(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:Wa(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:Wa(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:Wa(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:Wa(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:Wa(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:Wa(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:Wa(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:Wa(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:Wa(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:Wa(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:Wa(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:Wa(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:Wa(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:Wa(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:Wa(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:Wa(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:Wa(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:Wa(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:Wa(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:Wa(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:Wa(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:Wa(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:Wa(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:Wa(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:Wa(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:Wa(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:Wa(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:Wa(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:Wa(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:Wa(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:Wa(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:Wa(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:Wa(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:Wa(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:Wa(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:Wa(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:Wa(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:Wa(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:Wa(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:Wa(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:Wa(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:Wa(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:Wa(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:Wa(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:Wa(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:Wa(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:Wa(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:Wa(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:Wa(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:Wa(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:Wa(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:Wa(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:Wa(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:Wa(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:Wa(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:Wa(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:Wa(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:Wa(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:Wa(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:Wa(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:Wa(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:Wa(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:Wa(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:Wa(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:Wa(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:Wa(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:Wa(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:Wa(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:Wa(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:Wa(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:Wa(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:Wa(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:Wa(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:Wa(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:Wa(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:Wa(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:Wa(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:Wa(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:Wa(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:Wa(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:Wa(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:Wa(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:Wa(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:Wa(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:Wa(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:Wa(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:Wa(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:Wa(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:Wa(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:Wa(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:Wa(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:Wa(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:Wa(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:Wa(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:Wa(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:Wa(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:Wa(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:Wa(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:Wa(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:Wa(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:Wa(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:Wa(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:Wa(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:Wa(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:Wa(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:Wa(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:Wa(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:Wa(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:Wa(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:Wa(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:Wa(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:Wa(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:Wa(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:Wa(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:Wa(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Wa(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:Wa(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:Wa(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:Wa(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:Wa(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:Wa(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:Wa(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:Wa(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:Wa(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:Wa(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:Wa(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:Wa(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:Wa(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:Wa(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:Wa(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:Wa(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:Wa(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:Wa(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:Wa(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:Wa(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:Wa(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:Wa(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:Wa(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:Wa(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:Wa(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:Wa(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:Wa(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:Wa(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:Wa(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:Wa(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:Wa(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:Wa(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:Wa(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:Wa(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:Wa(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:Wa(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:Wa(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:Wa(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:Wa(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:Wa(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:Wa(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:Wa(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:Wa(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:Wa(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:Wa(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:Wa(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:Wa(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:Wa(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:Wa(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:Wa(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:Wa(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:Wa(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:Wa(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:Wa(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:Wa(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:Wa(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:Wa(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:Wa(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:Wa(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:Wa(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:Wa(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:Wa(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:Wa(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:Wa(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:Wa(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:Wa(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:Wa(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:Wa(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:Wa(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Wa(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:Wa(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:Wa(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:Wa(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:Wa(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:Wa(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:Wa(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:Wa(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:Wa(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:Wa(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:Wa(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:Wa(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:Wa(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:Wa(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:Wa(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:Wa(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:Wa(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:Wa(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:Wa(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:Wa(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:Wa(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:Wa(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:Wa(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:Wa(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:Wa(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:Wa(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:Wa(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:Wa(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:Wa(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:Wa(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:Wa(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:Wa(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:Wa(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:Wa(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:Wa(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:Wa(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:Wa(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:Wa(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:Wa(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:Wa(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:Wa(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:Wa(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:Wa(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:Wa(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:Wa(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:Wa(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:Wa(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:Wa(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:Wa(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:Wa(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:Wa(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:Wa(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:Wa(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:Wa(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:Wa(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:Wa(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:Wa(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:Wa(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:Wa(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:Wa(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:Wa(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:Wa(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:Wa(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:Wa(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:Wa(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:Wa(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:Wa(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:Wa(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:Wa(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:Wa(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:Wa(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:Wa(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:Wa(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:Wa(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:Wa(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:Wa(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:Wa(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:Wa(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:Wa(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:Wa(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:Wa(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Wa(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:Wa(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Wa(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:Wa(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:Wa(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:Wa(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:Wa(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:Wa(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:Wa(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:Wa(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:Wa(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:Wa(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:Wa(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:Wa(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:Wa(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:Wa(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:Wa(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Wa(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:Wa(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:Wa(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:Wa(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:Wa(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:Wa(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:Wa(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:Wa(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:Wa(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:Wa(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:Wa(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:Wa(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:Wa(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:Wa(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:Wa(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:Wa(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:Wa(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:Wa(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:Wa(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:Wa(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:Wa(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:Wa(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:Wa(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:Wa(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:Wa(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:Wa(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:Wa(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:Wa(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:Wa(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:Wa(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:Wa(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:Wa(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:Wa(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:Wa(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:Wa(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:Wa(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:Wa(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:Wa(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:Wa(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:Wa(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:Wa(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:Wa(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:Wa(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:Wa(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:Wa(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:Wa(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:Wa(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:Wa(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:Wa(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:Wa(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:Wa(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:Wa(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:Wa(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:Wa(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:Wa(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:Wa(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:Wa(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:Wa(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:Wa(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:Wa(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:Wa(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:Wa(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:Wa(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:Wa(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Wa(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:Wa(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:Wa(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:Wa(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:Wa(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:Wa(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:Wa(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:Wa(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Wa(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:Wa(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:Wa(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:Wa(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:Wa(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:Wa(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Wa(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Wa(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:Wa(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:Wa(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:Wa(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:Wa(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:Wa(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:Wa(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:Wa(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:Wa(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:Wa(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:Wa(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:Wa(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:Wa(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:Wa(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:Wa(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:Wa(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:Wa(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:Wa(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:Wa(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:Wa(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:Wa(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:Wa(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:Wa(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:Wa(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:Wa(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:Wa(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:Wa(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:Wa(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:Wa(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:Wa(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:Wa(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:Wa(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:Wa(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:Wa(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:Wa(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:Wa(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:Wa(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:Wa(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:Wa(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:Wa(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:Wa(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:Wa(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:Wa(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:Wa(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:Wa(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:Wa(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Wa(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:Wa(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:Wa(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:Wa(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Wa(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:Wa(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:Wa(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:Wa(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:Wa(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:Wa(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:Wa(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:Wa(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:Wa(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:Wa(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:Wa(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:Wa(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:Wa(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:Wa(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:Wa(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:Wa(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:Wa(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:Wa(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:Wa(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:Wa(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:Wa(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:Wa(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:Wa(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:Wa(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:Wa(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:Wa(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:Wa(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:Wa(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:Wa(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:Wa(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:Wa(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:Wa(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:Wa(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:Wa(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:Wa(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:Wa(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:Wa(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:Wa(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:Wa(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:Wa(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:Wa(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:Wa(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:Wa(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:Wa(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:Wa(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:Wa(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:Wa(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:Wa(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:Wa(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:Wa(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:Wa(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:Wa(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:Wa(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:Wa(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:Wa(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:Wa(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:Wa(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:Wa(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:Wa(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:Wa(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:Wa(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:Wa(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:Wa(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:Wa(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:Wa(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:Wa(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:Wa(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:Wa(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:Wa(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:Wa(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:Wa(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Wa(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:Wa(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:Wa(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:Wa(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:Wa(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:Wa(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:Wa(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Wa(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Wa(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:Wa(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:Wa(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:Wa(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:Wa(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:Wa(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:Wa(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:Wa(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:Wa(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:Wa(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:Wa(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:Wa(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:Wa(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:Wa(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:Wa(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:Wa(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:Wa(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:Wa(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:Wa(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:Wa(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Wa(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:Wa(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:Wa(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:Wa(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:Wa(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:Wa(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:Wa(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:Wa(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:Wa(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:Wa(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:Wa(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:Wa(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:Wa(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Wa(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:Wa(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:Wa(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wa(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:Wa(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wa(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:Wa(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wa(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:Wa(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Wa(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Wa(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:Wa(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Wa(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Wa(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:Wa(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wa(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:Wa(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Wa(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:Wa(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:Wa(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:Wa(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:Wa(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Wa(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:Wa(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:Wa(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:Wa(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:Wa(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:Wa(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:Wa(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:Wa(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:Wa(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:Wa(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:Wa(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:Wa(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:Wa(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wa(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:Wa(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Wa(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:Wa(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:Wa(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:Wa(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:Wa(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:Wa(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:Wa(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wa(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:Wa(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:Wa(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:Wa(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:Wa(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:Wa(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:Wa(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Wa(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:Wa(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:Wa(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:Wa(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Wa(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Wa(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:Wa(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:Wa(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:Wa(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:Wa(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:Wa(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:Wa(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:Wa(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:Wa(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:Wa(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:Wa(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:Wa(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:Wa(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:Wa(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:Wa(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:Wa(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:Wa(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:Wa(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:Wa(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:Wa(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:Wa(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:Wa(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:Wa(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:Wa(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:Wa(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:Wa(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:Wa(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:Wa(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:Wa(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:Wa(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:Wa(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:Wa(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:Wa(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:Wa(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:Wa(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:Wa(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:Wa(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:Wa(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:Wa(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:Wa(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:Wa(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:Wa(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:Wa(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:Wa(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:Wa(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:Wa(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:Wa(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:Wa(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:Wa(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:Wa(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:Wa(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:Wa(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:Wa(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:Wa(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:Wa(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:Wa(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:Wa(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:Wa(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:Wa(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:Wa(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:Wa(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:Wa(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:Wa(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:Wa(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:Wa(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:Wa(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:Wa(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:Wa(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:Wa(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:Wa(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:Wa(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:Wa(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:Wa(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:Wa(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:Wa(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:Wa(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:Wa(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:Wa(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:Wa(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:Wa(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:Wa(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:Wa(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:Wa(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:Wa(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:Wa(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:Wa(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:Wa(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:Wa(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:Wa(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:Wa(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:Wa(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:Wa(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:Wa(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:Wa(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:Wa(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:Wa(6024,3,"options_6024","options"),file:Wa(6025,3,"file_6025","file"),Examples_Colon_0:Wa(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:Wa(6027,3,"Options_Colon_6027","Options:"),Version_0:Wa(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:Wa(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:Wa(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:Wa(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:Wa(6034,3,"KIND_6034","KIND"),FILE:Wa(6035,3,"FILE_6035","FILE"),VERSION:Wa(6036,3,"VERSION_6036","VERSION"),LOCATION:Wa(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:Wa(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:Wa(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:Wa(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:Wa(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:Wa(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:Wa(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:Wa(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:Wa(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:Wa(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:Wa(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:Wa(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:Wa(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:Wa(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:Wa(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:Wa(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:Wa(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:Wa(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:Wa(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:Wa(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:Wa(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:Wa(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:Wa(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:Wa(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:Wa(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:Wa(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:Wa(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:Wa(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:Wa(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:Wa(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:Wa(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:Wa(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:Wa(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:Wa(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:Wa(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:Wa(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:Wa(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:Wa(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:Wa(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:Wa(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:Wa(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:Wa(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:Wa(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:Wa(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:Wa(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:Wa(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:Wa(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:Wa(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:Wa(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:Wa(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:Wa(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:Wa(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:Wa(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:Wa(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:Wa(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:Wa(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:Wa(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:Wa(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:Wa(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:Wa(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:Wa(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:Wa(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:Wa(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:Wa(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:Wa(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:Wa(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:Wa(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:Wa(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:Wa(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:Wa(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:Wa(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:Wa(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:Wa(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:Wa(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:Wa(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:Wa(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:Wa(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:Wa(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:Wa(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:Wa(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:Wa(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:Wa(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:Wa(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:Wa(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:Wa(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:Wa(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:Wa(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:Wa(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:Wa(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:Wa(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:Wa(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:Wa(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:Wa(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:Wa(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:Wa(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:Wa(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:Wa(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:Wa(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:Wa(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:Wa(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:Wa(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:Wa(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:Wa(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:Wa(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:Wa(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:Wa(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:Wa(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:Wa(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:Wa(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:Wa(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:Wa(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:Wa(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:Wa(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:Wa(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:Wa(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:Wa(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:Wa(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:Wa(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:Wa(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:Wa(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:Wa(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:Wa(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:Wa(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Wa(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Wa(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:Wa(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:Wa(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:Wa(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:Wa(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:Wa(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:Wa(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:Wa(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:Wa(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:Wa(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:Wa(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:Wa(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:Wa(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:Wa(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:Wa(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:Wa(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:Wa(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:Wa(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:Wa(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:Wa(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:Wa(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:Wa(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:Wa(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:Wa(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:Wa(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:Wa(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:Wa(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:Wa(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:Wa(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:Wa(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:Wa(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:Wa(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:Wa(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:Wa(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:Wa(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:Wa(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:Wa(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:Wa(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:Wa(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:Wa(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:Wa(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:Wa(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:Wa(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:Wa(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:Wa(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:Wa(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:Wa(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:Wa(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:Wa(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:Wa(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:Wa(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:Wa(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:Wa(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:Wa(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:Wa(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:Wa(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:Wa(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:Wa(6244,3,"Modules_6244","Modules"),File_Management:Wa(6245,3,"File_Management_6245","File Management"),Emit:Wa(6246,3,"Emit_6246","Emit"),JavaScript_Support:Wa(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:Wa(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:Wa(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:Wa(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:Wa(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:Wa(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:Wa(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:Wa(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:Wa(6255,3,"Projects_6255","Projects"),Output_Formatting:Wa(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:Wa(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:Wa(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:Wa(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:Wa(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:Wa(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:Wa(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:Wa(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:Wa(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:Wa(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:Wa(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:Wa(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:Wa(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:Wa(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:Wa(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:Wa(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:Wa(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:Wa(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:Wa(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:Wa(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:Wa(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:Wa(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),Enable_project_compilation:Wa(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:Wa(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:Wa(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:Wa(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:Wa(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:Wa(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:Wa(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:Wa(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:Wa(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:Wa(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:Wa(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:Wa(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:Wa(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:Wa(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:Wa(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:Wa(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:Wa(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:Wa(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:Wa(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:Wa(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:Wa(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:Wa(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:Wa(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:Wa(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:Wa(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:Wa(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:Wa(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:Wa(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:Wa(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:Wa(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:Wa(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:Wa(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:Wa(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:Wa(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:Wa(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:Wa(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:Wa(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:Wa(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:Wa(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:Wa(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:Wa(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:Wa(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:Wa(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Wa(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Wa(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Wa(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:Wa(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:Wa(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:Wa(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:Wa(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:Wa(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:Wa(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:Wa(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:Wa(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:Wa(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:Wa(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:Wa(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:Wa(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:Wa(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:Wa(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:Wa(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:Wa(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:Wa(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:Wa(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:Wa(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:Wa(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:Wa(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:Wa(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:Wa(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:Wa(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:Wa(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:Wa(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:Wa(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:Wa(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:Wa(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:Wa(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:Wa(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:Wa(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:Wa(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:Wa(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:Wa(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:Wa(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:Wa(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:Wa(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:Wa(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:Wa(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:Wa(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:Wa(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:Wa(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:Wa(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:Wa(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:Wa(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:Wa(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:Wa(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:Wa(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:Wa(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:Wa(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:Wa(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:Wa(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:Wa(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:Wa(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:Wa(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:Wa(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:Wa(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:Wa(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:Wa(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:Wa(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:Wa(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:Wa(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:Wa(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:Wa(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:Wa(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:Wa(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:Wa(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:Wa(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:Wa(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:Wa(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:Wa(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:Wa(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:Wa(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:Wa(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:Wa(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:Wa(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:Wa(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:Wa(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:Wa(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:Wa(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:Wa(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:Wa(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:Wa(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:Wa(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:Wa(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:Wa(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:Wa(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:Wa(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:Wa(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:Wa(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:Wa(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:Wa(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:Wa(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:Wa(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:Wa(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:Wa(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:Wa(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:Wa(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:Wa(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:Wa(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:Wa(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:Wa(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:Wa(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:Wa(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:Wa(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:Wa(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:Wa(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:Wa(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:Wa(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:Wa(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:Wa(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:Wa(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:Wa(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:Wa(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:Wa(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:Wa(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:Wa(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:Wa(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:Wa(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:Wa(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:Wa(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:Wa(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:Wa(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:Wa(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:Wa(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:Wa(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:Wa(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:Wa(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:Wa(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:Wa(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:Wa(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:Wa(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:Wa(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:Wa(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:Wa(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:Wa(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:Wa(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:Wa(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:Wa(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:Wa(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:Wa(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:Wa(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:Wa(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:Wa(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:Wa(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:Wa(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:Wa(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:Wa(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:Wa(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:Wa(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:Wa(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:Wa(6902,3,"type_Colon_6902","type:"),default_Colon:Wa(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:Wa(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:Wa(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:Wa(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:Wa(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:Wa(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:Wa(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:Wa(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:Wa(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:Wa(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:Wa(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:Wa(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:Wa(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:Wa(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:Wa(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:Wa(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:Wa(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:Wa(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:Wa(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:Wa(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:Wa(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:Wa(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:Wa(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:Wa(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:Wa(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:Wa(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:Wa(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:Wa(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:Wa(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:Wa(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:Wa(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:Wa(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:Wa(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:Wa(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:Wa(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:Wa(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:Wa(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:Wa(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:Wa(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:Wa(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:Wa(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:Wa(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:Wa(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:Wa(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:Wa(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:Wa(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:Wa(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:Wa(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:Wa(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:Wa(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:Wa(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:Wa(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:Wa(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:Wa(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:Wa(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:Wa(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:Wa(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:Wa(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:Wa(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:Wa(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:Wa(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:Wa(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:Wa(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:Wa(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:Wa(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Wa(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Wa(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Wa(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:Wa(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Wa(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:Wa(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:Wa(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:Wa(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:Wa(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:Wa(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:Wa(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:Wa(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:Wa(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:Wa(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:Wa(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:Wa(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:Wa(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:Wa(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:Wa(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:Wa(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:Wa(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:Wa(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:Wa(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:Wa(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:Wa(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:Wa(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:Wa(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:Wa(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:Wa(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:Wa(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:Wa(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:Wa(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:Wa(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:Wa(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:Wa(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:Wa(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:Wa(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:Wa(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:Wa(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:Wa(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:Wa(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:Wa(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:Wa(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:Wa(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:Wa(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:Wa(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:Wa(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:Wa(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:Wa(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:Wa(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:Wa(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:Wa(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:Wa(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:Wa(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:Wa(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:Wa(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:Wa(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:Wa(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:Wa(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:Wa(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:Wa(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:Wa(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:Wa(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:Wa(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:Wa(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:Wa(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:Wa(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:Wa(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:Wa(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:Wa(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:Wa(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:Wa(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:Wa(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:Wa(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:Wa(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Wa(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Wa(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:Wa(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:Wa(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:Wa(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:Wa(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:Wa(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:Wa(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:Wa(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:Wa(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:Wa(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:Wa(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:Wa(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:Wa(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:Wa(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:Wa(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:Wa(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:Wa(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:Wa(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:Wa(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:Wa(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:Wa(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:Wa(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:Wa(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:Wa(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:Wa(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:Wa(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:Wa(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:Wa(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:Wa(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:Wa(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:Wa(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:Wa(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:Wa(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:Wa(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:Wa(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:Wa(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:Wa(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:Wa(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:Wa(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:Wa(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:Wa(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:Wa(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:Wa(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:Wa(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:Wa(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:Wa(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:Wa(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:Wa(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:Wa(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:Wa(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:Wa(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:Wa(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:Wa(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:Wa(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:Wa(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:Wa(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:Wa(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:Wa(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:Wa(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:Wa(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:Wa(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:Wa(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:Wa(95005,3,"Extract_function_95005","Extract function"),Extract_constant:Wa(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:Wa(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:Wa(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:Wa(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:Wa(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:Wa(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:Wa(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:Wa(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:Wa(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:Wa(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:Wa(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:Wa(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:Wa(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:Wa(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:Wa(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:Wa(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:Wa(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:Wa(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:Wa(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:Wa(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:Wa(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:Wa(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:Wa(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:Wa(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:Wa(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:Wa(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:Wa(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:Wa(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:Wa(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:Wa(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:Wa(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:Wa(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:Wa(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:Wa(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:Wa(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:Wa(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:Wa(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:Wa(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:Wa(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:Wa(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:Wa(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:Wa(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:Wa(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:Wa(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:Wa(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:Wa(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:Wa(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:Wa(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:Wa(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:Wa(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:Wa(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:Wa(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:Wa(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:Wa(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:Wa(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:Wa(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:Wa(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:Wa(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:Wa(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:Wa(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:Wa(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:Wa(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:Wa(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:Wa(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:Wa(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:Wa(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:Wa(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:Wa(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:Wa(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:Wa(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:Wa(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:Wa(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:Wa(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:Wa(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:Wa(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:Wa(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:Wa(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:Wa(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:Wa(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:Wa(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:Wa(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:Wa(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:Wa(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:Wa(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:Wa(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:Wa(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:Wa(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:Wa(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:Wa(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:Wa(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:Wa(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:Wa(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:Wa(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:Wa(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:Wa(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:Wa(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:Wa(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:Wa(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:Wa(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:Wa(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:Wa(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:Wa(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:Wa(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:Wa(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:Wa(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:Wa(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:Wa(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:Wa(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:Wa(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:Wa(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:Wa(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:Wa(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:Wa(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:Wa(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:Wa(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:Wa(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:Wa(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:Wa(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:Wa(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:Wa(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:Wa(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:Wa(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:Wa(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:Wa(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:Wa(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:Wa(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:Wa(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:Wa(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:Wa(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:Wa(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:Wa(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:Wa(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:Wa(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:Wa(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:Wa(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:Wa(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:Wa(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:Wa(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:Wa(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:Wa(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:Wa(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:Wa(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:Wa(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:Wa(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:Wa(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:Wa(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:Wa(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:Wa(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:Wa(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:Wa(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:Wa(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:Wa(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:Wa(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:Wa(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:Wa(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:Wa(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:Wa(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:Wa(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:Wa(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:Wa(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:Wa(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:Wa(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:Wa(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:Wa(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:Wa(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:Wa(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:Wa(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:Wa(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:Wa(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:Wa(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:Wa(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:Wa(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:Wa(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:Wa(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:Wa(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:Wa(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:Wa(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:Wa(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:Wa(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:Wa(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:Wa(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:Wa(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:Wa(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:Wa(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:Wa(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:Wa(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:Wa(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:Wa(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:Wa(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:Wa(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:Wa(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:Wa(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:Wa(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:Wa(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:Wa(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:Wa(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:Wa(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:Wa(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:Wa(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:Wa(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:Wa(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:Wa(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:Wa(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:Wa(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:Wa(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:Wa(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:Wa(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:Wa(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:Wa(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:Wa(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:Wa(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:Wa(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:Wa(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:Wa(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:Wa(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:Wa(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:Wa(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:Wa(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:Wa(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:Wa(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:Wa(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:Wa(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:Wa(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:Wa(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:Wa(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:Wa(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:Wa(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function ns(e){return e>=80}function rs(e){return 32===e||ns(e)}function os(e,t){if(e<t[0])return!1;let n,r=0,o=t.length;for(;r+1<o;){if(n=r+(o-r)/2,n-=n%2,t[n]<=e&&e<=t[n+1])return!0;e<t[n]?o=n:r=n+2}return!1}function is(e,t){return os(e,t>=2?Ka:1===t?Ua:ja)}function as(e){return Ya[e]}function ss(e){return Ga.get(e)}function ls(e){const t=[];let n=0,r=0;for(;n<e.length;){const o=e.charCodeAt(n);switch(n++,o){case 13:10===e.charCodeAt(n)&&n++;case 10:t.push(r),r=n;break;default:o>127&&ys(o)&&(t.push(r),r=n)}}return t.push(r),t}function cs(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):ds(us(e),t,n,e.text,r)}function ds(e,t,n,r,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:In.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?W(e,ls(r)):"unknown"}`));const i=e[t]+n;return o?i>e[t+1]?e[t+1]:"string"===typeof r&&i>r.length?r.length:i:(t<e.length-1?In.assert(i<e[t+1]):void 0!==r&&In.assert(i<=r.length),i)}function us(e){return e.lineMap||(e.lineMap=ls(e.text))}function ps(e,t){const n=fs(e,t);return{line:n,character:t-e[n]}}function fs(e,t,n){let r=je(e,t,xt,Ft,n);return r<0&&(r=~r-1,In.assert(-1!==r,"position cannot precede the beginning of the file")),r}function ms(e,t,n){if(t===n)return 0;const r=us(e),o=Math.min(t,n),i=o===n,a=i?t:n,s=fs(r,o),l=fs(r,a,s);return i?s-l:l-s}function _s(e,t){return ps(us(e),t)}function hs(e){return gs(e)||ys(e)}function gs(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function ys(e){return 10===e||13===e||8232===e||8233===e}function vs(e){return e>=48&&e<=57}function bs(e){return vs(e)||e>=65&&e<=70||e>=97&&e<=102}function Es(e){return e>=48&&e<=55}function Ss(e,t){const n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function Ts(e,t,n,r,o){if(_x(t))return t;let i=!1;for(;;){const a=e.charCodeAt(t);switch(a){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;i=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t<e.length&&!ys(e.charCodeAt(t));)t++;i=!1;continue}if(42===e.charCodeAt(t+1)){for(t+=2;t<e.length;){if(42===e.charCodeAt(t)&&47===e.charCodeAt(t+1)){t+=2;break}t++}i=!1;continue}break;case 60:case 124:case 61:case 62:if(xs(e,t)){t=As(e,t),i=!1;continue}break;case 35:if(0===t&&Is(e,t)){t=Rs(e,t),i=!1;continue}break;case 42:if(i){t++,i=!1;continue}break;default:if(a>127&&hs(a)){t++;continue}}return t}}function xs(e,t){if(In.assert(t>=0),0===t||ys(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+Qa<e.length){for(let r=0;r<Qa;r++)if(e.charCodeAt(t+r)!==n)return!1;return 61===n||32===e.charCodeAt(t+Qa)}}return!1}function As(e,t,n){n&&n(Oa.Merge_conflict_marker_encountered,t,Qa);const r=e.charCodeAt(t),o=e.length;if(60===r||62===r)for(;t<o&&!ys(e.charCodeAt(t));)t++;else for(In.assert(124===r||61===r);t<o;){const n=e.charCodeAt(t);if((61===n||62===n)&&n!==r&&xs(e,t))break;t++}return t}function Is(e,t){return In.assert(0===t),Za.test(e)}function Rs(e,t){return t+=Za.exec(e)[0].length}function Cs(e,t,n,r,o,i,a){let s,l,c,d,u=!1,p=r,f=a;if(0===n){p=!0;const e=Os(t);e&&(n=e.length)}e:for(;n>=0&&n<t.length;){const a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)break e;p=!0,u&&(d=!0);continue;case 9:case 11:case 12:case 32:n++;continue;case 47:const m=t.charCodeAt(n+1);let _=!1;if(47===m||42===m){const r=47===m?2:3,a=n;if(n+=2,47===m)for(;n<t.length;){if(ys(t.charCodeAt(n))){_=!0;break}n++}else for(;n<t.length;){if(42===t.charCodeAt(n)&&47===t.charCodeAt(n+1)){n+=2;break}n++}if(p){if(u&&(f=o(s,l,c,d,i,f),!e&&f))return f;s=a,l=n,c=r,d=_,u=!0}continue}break e;default:if(a>127&&hs(a)){u&&ys(a)&&(d=!0),n++;continue}break e}}return u&&(f=o(s,l,c,d,i,f)),f}function Ds(e,t,n,r){return Cs(!1,e,t,!1,n,r)}function Ns(e,t,n,r){return Cs(!1,e,t,!0,n,r)}function Ms(e,t,n,r,o){return Cs(!0,e,t,!1,n,r,o)}function Ls(e,t,n,r,o){return Cs(!0,e,t,!0,n,r,o)}function ks(e,t,n,r,o,i=[]){return i.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),i}function Ps(e,t){return Ms(e,t,ks,void 0,void 0)}function ws(e,t){return Ls(e,t,ks,void 0,void 0)}function Os(e){const t=Za.exec(e);if(t)return t[0]}function Fs(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&is(e,t)}function Ws(e,t,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return os(e,t>=2?qa:1===t?Ha:Va)}(e,t)}function zs(e,t,n){let r=Gs(e,0);if(!Fs(r,t))return!1;for(let o=js(r);o<e.length;o+=js(r))if(!Ws(r=Gs(e,o),t,n))return!1;return!0}function Bs(e,t,n=0,r,o,i,a){var s,l,c,d,u,p,f,m,_=r,h=0,g=0,y=0;U(_,i,a);var v={getTokenFullStart:()=>c,getStartPos:()=>c,getTokenEnd:()=>s,getTextPos:()=>s,getToken:()=>u,getTokenStart:()=>d,getTokenPos:()=>d,getTokenText:()=>_.substring(d,s),getTokenValue:()=>p,hasUnicodeEscape:()=>0!==(1024&f),hasExtendedUnicodeEscape:()=>0!==(8&f),hasPrecedingLineBreak:()=>0!==(1&f),hasPrecedingJSDocComment:()=>0!==(2&f),isIdentifier:()=>80===u||u>118,isReservedWord:()=>u>=83&&u<=118,isUnterminated:()=>0!==(4&f),getCommentDirectives:()=>m,getNumericLiteralFlags:()=>25584&f,getTokenFlags:()=>f,reScanGreaterToken:function(){if(32===u){if(62===_.charCodeAt(s))return 62===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=73):(s+=2,u=50):61===_.charCodeAt(s+1)?(s+=2,u=72):(s++,u=49);if(61===_.charCodeAt(s))return s++,u=34}return u},reScanAsteriskEqualsToken:function(){return In.assert(67===u,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=d+1,u=64},reScanSlashToken:function(){if(44===u||69===u){let t=d+1,n=!1,r=!1;for(;;){if(t>=l){f|=4,b(Oa.Unterminated_regular_expression_literal);break}const e=_.charCodeAt(t);if(ys(e)){f|=4,b(Oa.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===e&&!r){t++;break}91===e?r=!0:92===e?n=!0:93===e&&(r=!1)}t++}for(;t<l&&Ws(_.charCodeAt(t),e);)t++;s=t,p=_.substring(d,s),u=14}return u},reScanTemplateToken:function(e){return s=d,u=R(!e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return s=d,u=R(!0)},scanJsxIdentifier:function(){if(ns(u)){for(;s<l;){if(45===_.charCodeAt(s)){p+="-",s++;continue}const e=s;if(p+=L(),s===e)break}return k()}return u},scanJsxAttributeValue:G,reScanJsxAttributeValue:function(){return s=d=c,G()},reScanJsxToken:function(e=!0){return s=d=c,u=B(e)},reScanLessThanToken:function(){if(48===u)return s=d+1,u=30;return u},reScanHashToken:function(){if(81===u)return s=d+1,u=63;return u},reScanQuestionToken:function(){return In.assert(61===u,"'reScanQuestionToken' should only be called on a '??'"),s=d+1,u=58},reScanInvalidIdentifier:function(){In.assert(0===u,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),s=d=c,f=0;const e=Gs(_,s),t=W(e,99);if(t)return u=t;return s+=js(e),u},scanJsxToken:B,scanJsDocToken:j,scanJSDocCommentTextToken:function(e){if(c=d=s,f=0,s>=l)return u=1;for(let t=_.charCodeAt(s);s<l&&!ys(t)&&96!==t;t=Gs(_,++s))if(!e){if(123===t)break;if(64===t&&s-1>=0&&gs(_.charCodeAt(s-1))&&!(s+1<l&&hs(_.charCodeAt(s+1))))break}if(s===d)return j();return p=_.substring(d,s),u=82},scan:O,getText:function(){return _},clearCommentDirectives:function(){m=void 0},setText:U,setScriptTarget:function(t){e=t},setLanguageVariant:function(e){n=e},setScriptKind:function(e){g=e},setJSDocParsingMode:function(e){y=e},setOnError:function(e){o=e},resetTokenState:H,setTextPos:H,setInJSDocType:function(e){h+=e?1:-1},tryScan:function(e){return V(e,!1)},lookAhead:function(e){return V(e,!0)},scanRange:function(e,t,n){const r=l,o=s,i=c,a=d,h=u,g=p,y=f,v=m;U(_,e,t);const b=n();return l=r,s=o,c=i,d=a,u=h,p=g,f=y,m=v,b}};return In.isDebugging&&Object.defineProperty(v,"__debugShowCurrentPositionInText",{get:()=>{const e=v.getText();return e.slice(0,v.getTokenFullStart())+"\u2551"+e.slice(v.getTokenFullStart())}}),v;function b(e,t=s,n,r){if(o){const i=s;s=t,o(e,n||0,r),s=i}}function E(){let e=s,t=!1,n=!1,r="";for(;;){const o=_.charCodeAt(s);if(95!==o){if(!vs(o))break;t=!0,n=!1,s++}else f|=512,t?(t=!1,n=!0,r+=_.substring(e,s)):(f|=16384,b(n?Oa.Multiple_consecutive_numeric_separators_are_not_permitted:Oa.Numeric_separators_are_not_allowed_here,s,1)),e=++s}return 95===_.charCodeAt(s-1)&&(f|=16384,b(Oa.Numeric_separators_are_not_allowed_here,s-1,1)),r+_.substring(e,s)}function S(){let e,t,n,r=s;if(48===_.charCodeAt(s))if(s++,95===_.charCodeAt(s))f|=16896,b(Oa.Numeric_separators_are_not_allowed_here,s,1),s--,e=E();else if(function(){const e=s;let t=!0;for(;vs(_.charCodeAt(s));)Es(_.charCodeAt(s))||(t=!1),s++;return p=_.substring(e,s),t}()){if(p){p=""+parseInt(p,8),f|=32;const e=41===u,t=(e?"-":"")+"0o"+(+p).toString(8);return e&&r--,b(Oa.Octal_literals_are_not_allowed_Use_the_syntax_0,r,s-r,t),9}e="0"}else f|=8192,e=""+ +p;else e=E();46===_.charCodeAt(s)&&(s++,t=E());let o,i=s;if(69===_.charCodeAt(s)||101===_.charCodeAt(s)){s++,f|=16,43!==_.charCodeAt(s)&&45!==_.charCodeAt(s)||s++;const e=s,t=E();t?(n=_.substring(i,e)+t,i=s):b(Oa.Digit_expected)}if(512&f?(o=e,t&&(o+="."+t),n&&(o+=n)):o=_.substring(r,i),8192&f)return b(Oa.Decimals_with_leading_zeros_are_not_allowed,r,i-r),p=""+ +o,9;if(void 0!==t||16&f)return T(r,void 0===t&&!!(16&f)),p=""+ +o,9;{p=o;const e=w();return T(r),e}}function T(t,n){if(!Fs(Gs(_,s),e))return;const r=s,{length:o}=L();1===o&&"n"===_[r]?b(n?Oa.A_bigint_literal_cannot_use_exponential_notation:Oa.A_bigint_literal_must_be_an_integer,t,r-t+1):(b(Oa.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,r,o),s=r)}function x(e,t){return A(e,!0,t)}function A(e,t,n){let r=[],o=!1,i=!1;for(;r.length<e||t;){let e=_.charCodeAt(s);if(n&&95===e)f|=512,o?(o=!1,i=!0):b(i?Oa.Multiple_consecutive_numeric_separators_are_not_permitted:Oa.Numeric_separators_are_not_allowed_here,s,1),s++;else{if(o=n,e>=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,i=!1}}return r.length<e&&(r=[]),95===_.charCodeAt(s-1)&&b(Oa.Numeric_separators_are_not_allowed_here,s-1,1),String.fromCharCode(...r)}function I(e=!1){const t=_.charCodeAt(s);let n="",r=++s;for(;;){if(s>=l){n+=_.substring(r,s),f|=4,b(Oa.Unterminated_string_literal);break}const o=_.charCodeAt(s);if(o===t){n+=_.substring(r,s),s++;break}if(92!==o||e){if((10===o||13===o)&&!e){n+=_.substring(r,s),f|=4,b(Oa.Unterminated_string_literal);break}s++}else n+=_.substring(r,s),n+=C(!0),r=s}return n}function R(e){const t=96===_.charCodeAt(s);let n,r=++s,o="";for(;;){if(s>=l){o+=_.substring(r,s),f|=4,b(Oa.Unterminated_template_literal),n=t?15:18;break}const i=_.charCodeAt(s);if(96===i){o+=_.substring(r,s),s++,n=t?15:18;break}if(36===i&&s+1<l&&123===_.charCodeAt(s+1)){o+=_.substring(r,s),s+=2,n=t?16:17;break}92!==i?13!==i?s++:(o+=_.substring(r,s),++s<l&&10===_.charCodeAt(s)&&s++,o+="\n",r=s):(o+=_.substring(r,s),o+=C(e),r=s)}return In.assert(void 0!==n),p=o,n}function C(e){const t=s;if(++s>=l)return b(Oa.Unexpected_end_of_text),"";const n=_.charCodeAt(s);switch(s++,n){case 48:if(s>=l||!vs(_.charCodeAt(s)))return"\0";case 49:case 50:case 51:s<l&&Es(_.charCodeAt(s))&&s++;case 52:case 53:case 54:case 55:if(s<l&&Es(_.charCodeAt(s))&&s++,f|=2048,e){const e=parseInt(_.substring(t+1,s),8);return b(Oa.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,t,s-t,"\\x"+e.toString(16).padStart(2,"0")),String.fromCharCode(e)}return _.substring(t,s);case 56:case 57:return f|=2048,e?(b(Oa.Escape_sequence_0_is_not_allowed,t,s-t,_.substring(t,s)),String.fromCharCode(n)):_.substring(t,s);case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(s<l&&123===_.charCodeAt(s)){s++;const n=x(1,!1),r=n?parseInt(n,16):-1;return r<0?(f|=2048,e&&b(Oa.Hexadecimal_digit_expected),_.substring(t,s)):r<=1114111?s>=l?(f|=2048,e&&b(Oa.Unexpected_end_of_text),_.substring(t,s)):125!==_.charCodeAt(s)?(f|=2048,e&&b(Oa.Unterminated_Unicode_escape_sequence),_.substring(t,s)):(s++,f|=8,Us(r)):(f|=2048,e&&b(Oa.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),_.substring(t,s))}for(;s<t+6;s++)if(!(s<l&&bs(_.charCodeAt(s))))return f|=2048,e&&b(Oa.Hexadecimal_digit_expected),_.substring(t,s);return f|=1024,String.fromCharCode(parseInt(_.substring(t+2,s),16));case 120:for(;s<t+4;s++)if(!(s<l&&bs(_.charCodeAt(s))))return f|=2048,e&&b(Oa.Hexadecimal_digit_expected),_.substring(t,s);return f|=4096,String.fromCharCode(parseInt(_.substring(t+2,s),16));case 13:s<l&&10===_.charCodeAt(s)&&s++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function D(){const e=x(1,!1),t=e?parseInt(e,16):-1;let n=!1;return t<0?(b(Oa.Hexadecimal_digit_expected),n=!0):t>1114111&&(b(Oa.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),s>=l?(b(Oa.Unexpected_end_of_text),n=!0):125===_.charCodeAt(s)?s++:(b(Oa.Unterminated_Unicode_escape_sequence),n=!0),n?"":Us(t)}function N(){if(s+5<l&&117===_.charCodeAt(s+1)){const e=s;s+=2;const t=function(e,t){const n=A(e,!1,t);return n?parseInt(n,16):-1}(4,!1);return s=e,t}return-1}function M(){if(117===Gs(_,s+1)&&123===Gs(_,s+2)){const e=s;s+=3;const t=x(1,!1),n=t?parseInt(t,16):-1;return s=e,n}return-1}function L(){let t="",n=s;for(;s<l;){let r=Gs(_,s);if(Ws(r,e))s+=js(r);else{if(92!==r)break;if(r=M(),r>=0&&Ws(r,e)){s+=3,f|=8,t+=D(),n=s;continue}if(r=N(),!(r>=0&&Ws(r,e)))break;f|=1024,t+=_.substring(n,s),t+=Us(r),n=s+=6}}return t+=_.substring(n,s),t}function k(){const e=p.length;if(e>=2&&e<=12){const e=p.charCodeAt(0);if(e>=97&&e<=122){const e=Ba.get(p);if(void 0!==e)return u=e}}return u=80}function P(e){let t="",n=!1,r=!1;for(;;){const o=_.charCodeAt(s);if(95!==o){if(n=!0,!vs(o)||o-48>=e)break;t+=_[s],s++,r=!1}else f|=512,n?(n=!1,r=!0):b(r?Oa.Multiple_consecutive_numeric_separators_are_not_permitted:Oa.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===_.charCodeAt(s-1)&&b(Oa.Numeric_separators_are_not_allowed_here,s-1,1),t}function w(){if(110===_.charCodeAt(s))return p+="n",384&f&&(p=Nx(p)+"n"),s++,10;{const e=128&f?parseInt(p.slice(2),2):256&f?parseInt(p.slice(2),8):+p;return p=""+e,9}}function O(){c=s,f=0;let r=!1;for(;;){if(d=s,s>=l)return u=1;const o=Gs(_,s);if(0===s){if(_.slice(0,256).includes("\ufffd"))return b(Oa.File_appears_to_be_binary),s=l,u=8;if(35===o&&Is(_,s)){if(s=Rs(_,s),t)continue;return u=6}}switch(o){case 10:case 13:if(f|=1,t){s++;continue}return 13===o&&s+1<l&&10===_.charCodeAt(s+1)?s+=2:s++,u=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(t){s++;continue}for(;s<l&&gs(_.charCodeAt(s));)s++;return u=5;case 33:return 61===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=38):(s+=2,u=36):(s++,u=54);case 34:case 39:return p=I(),u=11;case 96:return u=R(!1);case 37:return 61===_.charCodeAt(s+1)?(s+=2,u=70):(s++,u=45);case 38:return 38===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=77):(s+=2,u=56):61===_.charCodeAt(s+1)?(s+=2,u=74):(s++,u=51);case 40:return s++,u=21;case 41:return s++,u=22;case 42:if(61===_.charCodeAt(s+1))return s+=2,u=67;if(42===_.charCodeAt(s+1))return 61===_.charCodeAt(s+2)?(s+=3,u=68):(s+=2,u=43);if(s++,h&&!r&&1&f){r=!0;continue}return u=42;case 43:return 43===_.charCodeAt(s+1)?(s+=2,u=46):61===_.charCodeAt(s+1)?(s+=2,u=65):(s++,u=40);case 44:return s++,u=28;case 45:return 45===_.charCodeAt(s+1)?(s+=2,u=47):61===_.charCodeAt(s+1)?(s+=2,u=66):(s++,u=41);case 46:return vs(_.charCodeAt(s+1))?(S(),u=9):46===_.charCodeAt(s+1)&&46===_.charCodeAt(s+2)?(s+=3,u=26):(s++,u=25);case 47:if(47===_.charCodeAt(s+1)){for(s+=2;s<l&&!ys(_.charCodeAt(s));)s++;if(m=z(m,_.slice(d,s),Ja,d),t)continue;return u=2}if(42===_.charCodeAt(s+1)){s+=2;const e=42===_.charCodeAt(s)&&47!==_.charCodeAt(s+1);let n=!1,r=d;for(;s<l;){const e=_.charCodeAt(s);if(42===e&&47===_.charCodeAt(s+1)){s+=2,n=!0;break}s++,ys(e)&&(r=s,f|=1)}if(e&&F()&&(f|=2),m=z(m,_.slice(r,s),Xa,r),n||b(Oa.Asterisk_Slash_expected),t)continue;return n||(f|=4),u=3}return 61===_.charCodeAt(s+1)?(s+=2,u=69):(s++,u=44);case 48:if(s+2<l&&(88===_.charCodeAt(s+1)||120===_.charCodeAt(s+1)))return s+=2,(p=x(1,!0))||(b(Oa.Hexadecimal_digit_expected),p="0"),p="0x"+p,f|=64,u=w();if(s+2<l&&(66===_.charCodeAt(s+1)||98===_.charCodeAt(s+1)))return s+=2,(p=P(2))||(b(Oa.Binary_digit_expected),p="0"),p="0b"+p,f|=128,u=w();if(s+2<l&&(79===_.charCodeAt(s+1)||111===_.charCodeAt(s+1)))return s+=2,(p=P(8))||(b(Oa.Octal_digit_expected),p="0"),p="0o"+p,f|=256,u=w();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return u=S();case 58:return s++,u=59;case 59:return s++,u=27;case 60:if(xs(_,s)){if(s=As(_,s,b),t)continue;return u=7}return 60===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=71):(s+=2,u=48):61===_.charCodeAt(s+1)?(s+=2,u=33):1===n&&47===_.charCodeAt(s+1)&&42!==_.charCodeAt(s+2)?(s+=2,u=31):(s++,u=30);case 61:if(xs(_,s)){if(s=As(_,s,b),t)continue;return u=7}return 61===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=37):(s+=2,u=35):62===_.charCodeAt(s+1)?(s+=2,u=39):(s++,u=64);case 62:if(xs(_,s)){if(s=As(_,s,b),t)continue;return u=7}return s++,u=32;case 63:return 46!==_.charCodeAt(s+1)||vs(_.charCodeAt(s+2))?63===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=78):(s+=2,u=61):(s++,u=58):(s+=2,u=29);case 91:return s++,u=23;case 93:return s++,u=24;case 94:return 61===_.charCodeAt(s+1)?(s+=2,u=79):(s++,u=53);case 123:return s++,u=19;case 124:if(xs(_,s)){if(s=As(_,s,b),t)continue;return u=7}return 124===_.charCodeAt(s+1)?61===_.charCodeAt(s+2)?(s+=3,u=76):(s+=2,u=57):61===_.charCodeAt(s+1)?(s+=2,u=75):(s++,u=52);case 125:return s++,u=20;case 126:return s++,u=55;case 64:return s++,u=60;case 92:const i=M();if(i>=0&&Fs(i,e))return s+=3,f|=8,p=D()+L(),u=k();const a=N();return a>=0&&Fs(a,e)?(s+=6,f|=1024,p=String.fromCharCode(a)+L(),u=k()):(b(Oa.Invalid_character),s++,u=0);case 35:if(0!==s&&"!"===_[s+1])return b(Oa.can_only_be_used_at_the_start_of_a_file),s++,u=0;const c=Gs(_,s+1);if(92===c){s++;const t=M();if(t>=0&&Fs(t,e))return s+=3,f|=8,p="#"+D()+L(),u=81;const n=N();if(n>=0&&Fs(n,e))return s+=6,f|=1024,p="#"+String.fromCharCode(n)+L(),u=81;s--}return Fs(c,e)?(s++,W(c,e)):(p="#",b(Oa.Invalid_character,s++,js(o))),u=81;default:const g=W(o,e);if(g)return u=g;if(gs(o)){s+=js(o);continue}if(ys(o)){f|=1,s+=js(o);continue}const y=js(o);return b(Oa.Invalid_character,s,y),s+=y,u=0}}}function F(){switch(y){case 0:return!0;case 1:return!1}return 3!==g&&4!==g||3!==y&&$a.test(_.slice(c,s))}function W(e,t){let n=e;if(Fs(n,t)){for(s+=js(n);s<l&&Ws(n=Gs(_,s),t);)s+=js(n);return p=_.substring(d,s),92===n&&(p+=L()),k()}}function z(e,t,n,r){const o=function(e,t){const n=t.exec(e);if(!n)return;switch(n[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}return}(t.trimStart(),n);return void 0===o?e:Ee(e,{range:{pos:r,end:s},type:o})}function B(e=!0){if(c=d=s,s>=l)return u=1;let t=_.charCodeAt(s);if(60===t)return 47===_.charCodeAt(s+1)?(s+=2,u=31):(s++,u=30);if(123===t)return s++,u=19;let n=0;for(;s<l&&(t=_.charCodeAt(s),123!==t);){if(60===t){if(xs(_,s))return s=As(_,s,b),u=7;break}if(62===t&&b(Oa.Unexpected_token_Did_you_mean_or_gt,s,1),125===t&&b(Oa.Unexpected_token_Did_you_mean_or_rbrace,s,1),ys(t)&&0===n)n=-1;else{if(!e&&ys(t)&&n>0)break;hs(t)||(n=s)}s++}return p=_.substring(c,s),-1===n?13:12}function G(){switch(c=s,_.charCodeAt(s)){case 34:case 39:return p=I(!0),u=11;default:return O()}}function j(){if(c=d=s,f=0,s>=l)return u=1;const t=Gs(_,s);switch(s+=js(t),t){case 9:case 11:case 12:case 32:for(;s<l&&gs(_.charCodeAt(s));)s++;return u=5;case 64:return u=60;case 13:10===_.charCodeAt(s)&&s++;case 10:return f|=1,u=4;case 42:return u=42;case 123:return u=19;case 125:return u=20;case 91:return u=23;case 93:return u=24;case 60:return u=30;case 62:return u=32;case 61:return u=64;case 44:return u=28;case 46:return u=25;case 96:return u=62;case 35:return u=63;case 92:s--;const t=M();if(t>=0&&Fs(t,e))return s+=3,f|=8,p=D()+L(),u=k();const n=N();return n>=0&&Fs(n,e)?(s+=6,f|=1024,p=String.fromCharCode(n)+L(),u=k()):(s++,u=0)}if(Fs(t,e)){let n=t;for(;s<l&&Ws(n=Gs(_,s),e)||45===_.charCodeAt(s);)s+=js(n);return p=_.substring(d,s),92===n&&(p+=L()),u=k()}return u=0}function V(e,t){const n=s,r=c,o=d,i=u,a=p,l=f,m=e();return m&&!t||(s=n,c=r,d=o,u=i,p=a,f=l),m}function U(e,t,n){_=e||"",l=void 0===n?_.length:t+n,H(t||0)}function H(e){In.assert(e>=0),s=e,c=e,d=e,u=0,p=void 0,f=0}}function Gs(e,t){return e.codePointAt(t)}function js(e){return e>=65536?2:1}function Vs(e){if(In.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}function Us(e){return es(e)}var Hs,Ks,qs,Js=b({"src/compiler/scanner.ts"(){JJ(),za={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Ba=new Map(Object.entries(za)),Ga=new Map(Object.entries({...za,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,"</":31,">>":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),ja=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Va=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ua=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ha=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ka=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],qa=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],Ja=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Xa=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,$a=/@(?:see|link)/i,Ya=function(e){const t=[];return e.forEach(((e,n)=>{t[e]=n})),t}(Ga),Qa=7,Za=/^#!.*/,es=String.fromCodePoint?e=>String.fromCodePoint(e):Vs}});function Xs(e){return Ji(e)||Hi(e)}function $s(e){return _e(e,pT)}function Ys(e){switch(jp(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function Qs(e){return e.start+e.length}function Zs(e){return 0===e.length}function el(e,t){return t>=e.start&&t<Qs(e)}function tl(e,t){return t>=e.pos&&t<=e.end}function nl(e,t){return t.start>=e.start&&Qs(t)<=Qs(e)}function rl(e,t){return void 0!==ol(e,t)}function ol(e,t){const n=cl(e,t);return n&&0===n.length?void 0:n}function il(e,t){return sl(e.start,e.length,t.start,t.length)}function al(e,t,n){return sl(e.start,e.length,t,n)}function sl(e,t,n,r){return n<=e+t&&n+r>=e}function ll(e,t){return t<=Qs(e)&&t>=e.start}function cl(e,t){const n=Math.max(e.start,t.start),r=Math.min(Qs(e),Qs(t));return n<=r?ul(n,r):void 0}function dl(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function ul(e,t){return dl(e,t-e)}function pl(e){return dl(e.span.start,e.newLength)}function fl(e){return Zs(e.span)&&0===e.newLength}function ml(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function _l(e){if(0===e.length)return Hs;if(1===e.length)return e[0];const t=e[0];let n=t.span.start,r=Qs(t.span),o=n+t.newLength;for(let i=1;i<e.length;i++){const t=e[i],a=n,s=r,l=o,c=t.span.start,d=Qs(t.span),u=c+t.newLength;n=Math.min(a,c),r=Math.max(s,s+(d-l)),o=Math.max(u,u+(l-d))}return ml(ul(n,r),o-n)}function hl(e){if(e&&168===e.kind)for(let t=e;t;t=t.parent)if(Td(t)||Md(t)||264===t.kind)return t}function gl(e,t){return bC(e)&&Gb(e,31)&&176===t.kind}function yl(e){return!!Vd(e)&&M(e.elements,vl)}function vl(e){return!!DD(e)||yl(e.name)}function bl(e){let t=e.parent;for(;iD(t.parent);)t=t.parent.parent;return t.parent}function El(e,t){iD(e)&&(e=bl(e));let n=t(e);return 260===e.kind&&(e=e.parent),e&&261===e.kind&&(n|=t(e),e=e.parent),e&&243===e.kind&&(n|=t(e)),n}function Sl(e){return El(e,Zb)}function Tl(e){return El(e,eE)}function xl(e){return El(e,Al)}function Al(e){return e.flags}function Il(e,t,n){const r=e.toLowerCase(),o=/^([a-z]+)([_-]([a-z]+))?$/.exec(r);if(!o)return void(n&&n.push(sT(Oa.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp")));const i=o[1],a=o[3];function s(e,n,r){let o=ua(ra(_a(t.getExecutingFilePath())),e);if(n&&(o=o+"-"+n),o=t.resolvePath(ua(o,"diagnosticMessages.generated.json")),!t.fileExists(o))return!1;let i="";try{i=t.readFile(o)}catch(a){return r&&r.push(sT(Oa.Unable_to_open_file_0,o)),!1}try{QS(JSON.parse(i))}catch{return r&&r.push(sT(Oa.Corrupted_locale_file_0,o)),!1}return!0}F(Ks,r)&&!s(i,a,n)&&s(i,void 0,n),Ht(e)}function Rl(e,t){if(e)for(;void 0!==e.original;)e=e.original;return e&&t?t(e)?e:void 0:e}function Cl(e,t){for(;e;){const n=t(e);if("quit"===n)return;if(n)return e;e=e.parent}}function Dl(e){return 0===(16&e.flags)}function Nl(e,t){if(void 0===e||Dl(e))return e;for(e=e.original;e;){if(Dl(e))return!t||t(e)?e:void 0;e=e.original}}function Ml(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function Ll(e){const t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function kl(e){return Ll(e.escapedText)}function Pl(e){const t=ss(e.escapedText);return t?yt(t,Vy):void 0}function wl(e){return e.valueDeclaration&&md(e.valueDeclaration)?kl(e.valueDeclaration.name):Ll(e.escapedName)}function Ol(e){const t=e.parent.parent;if(t){if(Lu(t))return Fl(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return Fl(t.declarationList.declarations[0]);break;case 244:let e=t.expression;switch(226===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 211:return e.name;case 212:const t=e.argumentExpression;if(nC(t))return t}break;case 217:return Fl(t.expression);case 256:if(Lu(t.statement)||uu(t.statement))return Fl(t.statement)}}}function Fl(e){const t=jl(e);return t&&nC(t)?t:void 0}function Wl(e,t){return!(!Bl(e)||!nC(e.name)||kl(e.name)!==kl(t))||!(!GD(e)||!se(e.declarationList.declarations,(e=>Wl(e,t))))}function zl(e){return e.name||Ol(e)}function Bl(e){return!!e.name}function Gl(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:t}=e;if(166===t.kind)return t.right;break}case 213:case 226:{const t=e;switch(Eg(t)){case 1:case 4:case 5:case 3:return Dg(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 353:return zl(e);case 347:return Ol(e);case 277:{const{expression:t}=e;return nC(t)?t:void 0}case 212:const t=e;if(Ig(t))return t.argumentExpression}return e.name}function jl(e){if(void 0!==e)return Gl(e)||(_D(e)||hD(e)||CD(e)?Vl(e):void 0)}function Vl(e){if(e.parent){if(QN(e.parent)||iD(e.parent))return e.parent.name;if(TD(e.parent)&&e===e.parent.right){if(nC(e.parent.left))return e.parent.left;if(wS(e.parent.left))return Dg(e.parent.left)}else if(iN(e.parent)&&nC(e.parent.name))return e.parent.name}}function Ul(e){if(Xb(e))return G(e.modifiers,EC)}function Hl(e){if(Gb(e,98303))return G(e.modifiers,vd)}function Kl(e,t){if(e.name){if(nC(e.name)){const n=e.name.escapedText;return Ec(e.parent,t).filter((e=>OM(e)&&nC(e.name)&&e.name.escapedText===n))}{const n=e.parent.parameters.indexOf(e);In.assert(n>-1,"Parameters should always be in their parents' parameter list");const r=Ec(e.parent,t).filter(OM);if(n<r.length)return[r[n]]}}return o}function ql(e){return Kl(e,!1)}function Jl(e){return Kl(e,!0)}function Xl(e,t){const n=e.name.escapedText;return Ec(e.parent,t).filter((e=>BM(e)&&e.typeParameters.some((e=>e.name.escapedText===n))))}function $l(e){return Xl(e,!1)}function Yl(e){return Xl(e,!0)}function Ql(e){return!!xc(e,OM)}function Zl(e){return xc(e,TM)}function ec(e){return Ac(e,UM)}function tc(e){return xc(e,AM)}function nc(e){return xc(e,RM)}function rc(e){return xc(e,RM,!0)}function oc(e){return xc(e,CM)}function ic(e){return xc(e,CM,!0)}function ac(e){return xc(e,DM)}function sc(e){return xc(e,DM,!0)}function lc(e){return xc(e,NM)}function cc(e){return xc(e,NM,!0)}function dc(e){return xc(e,MM,!0)}function uc(e){return xc(e,kM)}function pc(e){return xc(e,kM,!0)}function fc(e){return xc(e,wM)}function mc(e){return xc(e,WM)}function _c(e){return xc(e,FM)}function hc(e){return xc(e,BM)}function gc(e){return xc(e,HM)}function yc(e){const t=xc(e,zM);if(t&&t.typeExpression&&t.typeExpression.type)return t}function vc(e){let t=xc(e,zM);return!t&&bC(e)&&(t=L(ql(e),(e=>!!e.typeExpression))),t&&t.typeExpression&&t.typeExpression.type}function bc(e){const t=_c(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=yc(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if(WC(e)){const t=L(e.members,NC);return t&&t.type}if(wC(e)||gM(e))return e.type}}function Ec(e,t){var n;if(!Zg(e))return o;let r=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===r||t){const n=ey(e,t);In.assert(n.length<2||n[0]!==n[1]),r=J(n,(e=>bM(e)?e.tags:e)),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function Sc(e){return Ec(e,!1)}function Tc(e){return Ec(e,!0)}function xc(e,t,n){return L(Ec(e,n),t)}function Ac(e,t){return Sc(e).filter(t)}function Ic(e,t){return Sc(e).filter((e=>e.kind===t))}function Rc(e){return"string"===typeof e?e:null==e?void 0:e.map((e=>328===e.kind?e.text:function(e){const t=331===e.kind?"link":332===e.kind?"linkcode":"linkplain",n=e.name?c_(e.name):"",r=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${n}${r}${e.text}}`}(e))).join("")}function Cc(e){if(SM(e)){if(LM(e.parent)){const t=cy(e.parent);if(t&&T(t.tags))return J(t.tags,(e=>BM(e)?e.typeParameters:void 0))}return o}if(Kg(e))return In.assert(327===e.parent.kind),J(e.parent.tags,(e=>BM(e)?e.typeParameters:void 0));if(e.typeParameters)return e.typeParameters;if(GL(e)&&e.typeParameters)return e.typeParameters;if($h(e)){const t=Cb(e);if(t.length)return t;const n=vc(e);if(n&&wC(n)&&n.typeParameters)return n.typeParameters}return o}function Dc(e){return e.constraint?e.constraint:BM(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Nc(e){return 80===e.kind||81===e.kind}function Mc(e){return 178===e.kind||177===e.kind}function Lc(e){return lD(e)&&!!(64&e.flags)}function kc(e){return cD(e)&&!!(64&e.flags)}function Pc(e){return dD(e)&&!!(64&e.flags)}function wc(e){const t=e.kind;return!!(64&e.flags)&&(211===t||212===t||213===t||235===t)}function Oc(e){return wc(e)&&!kD(e)&&!!e.questionDotToken}function Fc(e){return Oc(e.parent)&&e.parent.expression===e}function Wc(e){return!wc(e.parent)||Oc(e.parent)||e!==e.parent.expression}function zc(e){return 226===e.kind&&61===e.operatorToken.kind}function Bc(e){return PC(e)&&nC(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function Gc(e){return EL(e,8)}function jc(e){return kD(e)&&!!(64&e.flags)}function Vc(e){return 252===e.kind||251===e.kind}function Uc(e){return 280===e.kind||279===e.kind}function Hc(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function Kc(e){return Hc(e)||307===e.kind||311===e.kind}function qc(e){return 355===e.kind||348===e.kind}function Jc(e){return Xc(e.kind)}function Xc(e){return e>=166}function $c(e){return e>=0&&e<=165}function Yc(e){return $c(e.kind)}function Qc(e){return He(e,"pos")&&He(e,"end")}function Zc(e){return 9<=e&&e<=15}function ed(e){return Zc(e.kind)}function td(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function nd(e){return 15<=e&&e<=18}function rd(e){return nd(e.kind)}function od(e){const t=e.kind;return 17===t||18===t}function id(e){return RN(e)||MN(e)}function ad(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function sd(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function ld(e){return ad(e)||sd(e)}function cd(e){return 11===e.kind||nd(e.kind)}function dd(e){return zR(e)||nC(e)}function ud(e){var t;return nC(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function pd(e){var t;return rC(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function fd(e){const t=e.emitNode.autoGenerate.flags;return!!(32&t)&&!!(16&t)&&!!(8&t)}function md(e){return(TC(e)||wd(e))&&rC(e.name)}function _d(e){return lD(e)&&rC(e.name)}function hd(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function gd(e){return!!(31&sE(e))}function yd(e){return gd(e)||126===e||164===e||129===e}function vd(e){return hd(e.kind)}function bd(e){const t=e.kind;return 166===t||80===t}function Ed(e){const t=e.kind;return 80===t||81===t||11===t||9===t||167===t}function Sd(e){const t=e.kind;return 80===t||206===t||207===t}function Td(e){return!!e&&Cd(e.kind)}function xd(e){return!!e&&(Cd(e.kind)||IC(e))}function Ad(e){return e&&Rd(e.kind)}function Id(e){return 112===e.kind||97===e.kind}function Rd(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Cd(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return Rd(e)}}function Dd(e){return rM(e)||fN(e)||BD(e)&&Td(e.parent)}function Nd(e){const t=e.kind;return 176===t||172===t||174===t||177===t||178===t||181===t||175===t||240===t}function Md(e){return e&&(263===e.kind||231===e.kind)}function Ld(e){return e&&(177===e.kind||178===e.kind)}function kd(e){return TC(e)&&qb(e)}function Pd(e){return $h(e)&&IA(e)?(!Ag(e)||!IE(e.expression))&&!Rg(e,!0):e.parent&&Md(e.parent)&&TC(e)&&!qb(e)}function wd(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Od(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function Fd(e){return vd(e)||EC(e)}function Wd(e){const t=e.kind;return 180===t||179===t||171===t||173===t||181===t||177===t||178===t}function zd(e){return Wd(e)||Nd(e)}function Bd(e){const t=e.kind;return 303===t||304===t||305===t||174===t||177===t||178===t}function Gd(e){return PS(e.kind)}function jd(e){switch(e.kind){case 184:case 185:return!0}return!1}function Vd(e){if(e){const t=e.kind;return 207===t||206===t}return!1}function Ud(e){const t=e.kind;return 209===t||210===t}function Hd(e){const t=e.kind;return 208===t||232===t}function Kd(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function qd(e){return iN(e)||bC(e)||$d(e)||Qd(e)}function Jd(e){return Xd(e)||Yd(e)}function Xd(e){switch(e.kind){case 206:case 210:return!0}return!1}function $d(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function Yd(e){switch(e.kind){case 207:case 209:return!0}return!1}function Qd(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return gE(e,!0)}function Zd(e){const t=e.kind;return 211===t||166===t||205===t}function eu(e){const t=e.kind;return 211===t||166===t}function tu(e){return nu(e)||eA(e)}function nu(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function ru(e){return 213===e.kind||214===e.kind}function ou(e){const t=e.kind;return 228===t||15===t}function iu(e){return au(Gc(e).kind)}function au(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function su(e){return lu(Gc(e).kind)}function lu(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return au(e)}}function cu(e){switch(e.kind){case 225:return!0;case 224:return 46===e.operator||47===e.operator;default:return!1}}function du(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return ed(e)}}function uu(e){return function(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return lu(e)}}(Gc(e).kind)}function pu(e){const t=e.kind;return 216===t||234===t}function fu(e){return kN(e)||OD(e)}function mu(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&mu(e.statement,t)}return!1}function _u(e){return CN(e)||DN(e)}function hu(e){return se(e,_u)}function gu(e){return!e_(e)&&!CN(e)&&!Gb(e,32)&&!Pm(e)}function yu(e){return e_(e)||CN(e)||Gb(e,32)}function vu(e){return 249===e.kind||250===e.kind}function bu(e){return BD(e)||uu(e)}function Eu(e){return BD(e)}function Su(e){return aN(e)||uu(e)}function Tu(e){const t=e.kind;return 268===t||267===t||80===t}function xu(e){const t=e.kind;return 268===t||267===t}function Au(e){const t=e.kind;return 80===t||267===t}function Iu(e){const t=e.kind;return 275===t||274===t}function Ru(e){return 267===e.kind||266===e.kind}function Cu(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function Du(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function Nu(e){return 262===e||282===e||263===e||264===e||265===e||266===e||267===e||272===e||271===e||278===e||277===e||270===e}function Mu(e){return 252===e||251===e||259===e||246===e||244===e||242===e||249===e||250===e||248===e||245===e||256===e||253===e||255===e||257===e||258===e||243===e||247===e||254===e||359===e}function Lu(e){return 168===e.kind?e.parent&&352!==e.parent.kind||$h(e):219===(t=e.kind)||208===t||263===t||231===t||175===t||176===t||266===t||306===t||281===t||262===t||218===t||177===t||273===t||271===t||276===t||264===t||291===t||174===t||173===t||267===t||270===t||274===t||280===t||169===t||303===t||172===t||171===t||178===t||304===t||265===t||168===t||260===t||353===t||345===t||355===t;var t}function ku(e){return Nu(e.kind)}function Pu(e){return Mu(e.kind)}function wu(e){const t=e.kind;return Mu(t)||Nu(t)||function(e){if(241!==e.kind)return!1;if(void 0!==e.parent&&(258===e.parent.kind||299===e.parent.kind))return!1;return!rh(e)}(e)}function Ou(e){const t=e.kind;return Mu(t)||Nu(t)||241===t}function Fu(e){const t=e.kind;return 283===t||166===t||80===t}function Wu(e){const t=e.kind;return 110===t||80===t||211===t||295===t}function zu(e){const t=e.kind;return 284===t||294===t||285===t||12===t||288===t}function Bu(e){const t=e.kind;return 291===t||293===t}function Gu(e){const t=e.kind;return 11===t||294===t}function ju(e){const t=e.kind;return 286===t||285===t}function Vu(e){const t=e.kind;return 296===t||297===t}function Uu(e){return e.kind>=316&&e.kind<=357}function Hu(e){return 327===e.kind||326===e.kind||328===e.kind||rp(e)||Ku(e)||EM(e)||SM(e)}function Ku(e){return e.kind>=334&&e.kind<=357}function qu(e){return 178===e.kind}function Ju(e){return 177===e.kind}function Xu(e){if(!Zg(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function $u(e){return!!e.type}function Yu(e){return!!e.initializer}function Qu(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function Zu(e){return 291===e.kind||293===e.kind||Bd(e)}function ep(e){return 183===e.kind||233===e.kind}function tp(e){let t=qs;for(const n of e){if(!n.length)continue;let e=0;for(;e<n.length&&e<t&&hs(n.charCodeAt(e));e++);if(e<t&&(t=e),0===t)return 0}return t===qs?void 0:t}function np(e){return 11===e.kind||15===e.kind}function rp(e){return 331===e.kind||332===e.kind||333===e.kind}function op(e){const t=Oe(e.parameters);return!!t&&ip(t)}function ip(e){const t=OM(e)?e.typeExpression&&e.typeExpression.type:e.type;return void 0!==e.dotDotDotToken||!!t&&325===t.kind}function ap(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function sp(e,t){t??(t=Yf(e));const n=Nl(e);if(n&&169===n.kind){const r=n.parent.parameters.indexOf(n),o=r>0?n.parent.parameters[r-1]:void 0,i=t.text,a=o?ce(ws(i,Ts(i,o.end+1,!1,!0)),Ps(i,e.pos)):ws(i,Ts(i,e.pos,!1,!0));return se(a)&&ap(Fe(a),t)}return!!x(n&&B_(n,t),(e=>ap(e,t)))}var lp,cp,dp,up,pp,fp,mp,_p,hp,gp,yp,vp,bp,Ep,Sp,Tp,xp,Ap,Ip,Rp,Cp,Dp,Np,Mp,Lp,kp,Pp,wp,Op,Fp,Wp,zp,Bp,Gp,jp,Vp,Up,Hp,Kp,qp,Jp,Xp,$p,Yp,Qp,Zp,ef,tf,nf,rf,of,af,sf,lf,cf,df,uf,pf,ff,mf,_f,hf,gf,yf,vf,bf,Ef,Sf,Tf,xf,Af,If,Rf,Cf=b({"src/compiler/utilitiesPublic.ts"(){JJ(),Hs=ml(dl(0,0),0),Ks=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],qs=1073741823}});function Df(e,t){const n=e.declarations;if(n)for(const r of n)if(r.kind===t)return r}function Nf(e,t){return G(e.declarations||o,(e=>e.kind===t))}function Mf(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function Lf(e){return 0!==(33554432&e.flags)}function kf(e,t){return e.configFilePath!==t.configFilePath||Pf(e,t)}function Pf(e,t){return Of(e,t,WP)}function wf(e,t){return Of(e,t,BP)}function Of(e,t,n){return e!==t&&n.some((n=>!Dx(MT(e,n),MT(t,n))))}function Ff(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if(rM(e))return;e=e.parent}}function Wf(e,t){const n=e.entries();for(const[r,o]of n){const e=t(o,r);if(e)return e}}function zf(e,t){const n=e.keys();for(const r of n){const e=t(r);if(e)return e}}function Bf(e,t){e.forEach(((e,n)=>{t.set(n,e)}))}function Gf(e){const t=pp.getText();try{return e(pp),pp.getText()}finally{pp.clear(),pp.writeKeyword(t)}}function jf(e){return e.end-e.pos}function Vf(e,t){return e.path===t.path&&!e.prepend===!t.prepend&&!e.circular===!t.circular}function Uf(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&(n=e.resolvedModule.packageId,r=t.resolvedModule.packageId,n===r||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version)&&e.alternateResult===t.alternateResult;var n,r}function Hf(e,t,n,r,o){var i;const a=null==(i=t.getResolvedModule(e,n,r))?void 0:i.alternateResult,s=a&&(2===Up(t.getCompilerOptions())?[Oa.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[a]]:[Oa.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[a,a.includes(HO+"@types/")?`@types/${xW(o)}`:o]]),l=s?cT(void 0,s[0],...s[1]):t.typesPackageExists(o)?cT(void 0,Oa.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o,xW(o)):t.packageBundlesTypes(o)?cT(void 0,Oa.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,n):cT(void 0,Oa.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,xW(o));return l&&(l.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:o===n?void 0:o})),l}function Kf({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function qf(e){return`${Kf(e)}@${e.version}`}function Jf(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary===!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function Xf(e,t,n,r){In.assert(e.length===t.length);for(let o=0;o<e.length;o++){const i=t[o],a=n(e[o]);if(a?!i||!r(a,i):i)return!0}return!1}function $f(e){return function(e){if(!(2097152&e.flags)){(0!==(262144&e.flags)||oP(e,$f))&&(e.flags|=1048576),e.flags|=2097152}}(e),0!==(1048576&e.flags)}function Yf(e){for(;e&&312!==e.kind;)e=e.parent;return e}function Qf(e){return Yf(e.valueDeclaration||Vm(e))}function Zf(e,t){return!!e&&(1===e.scriptKind||2===e.scriptKind)&&!e.checkJsDirective&&void 0===t}function em(e){switch(e.kind){case 241:case 269:case 248:case 249:case 250:return!0}return!1}function tm(e,t){return In.assert(e>=0),us(t)[e]}function nm(e){const t=Yf(e),n=_s(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function rm(e,t){In.assert(e>=0);const n=us(t),r=e,o=t.text;if(r+1===n.length)return o.length-1;{const e=n[r];let t=n[r+1]-1;for(In.assert(ys(o.charCodeAt(t)));e<=t&&ys(o.charCodeAt(t));)t--;return t}}function om(e,t,n){return!(n&&n(t))&&!e.identifiers.has(t)}function im(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function am(e){return!im(e)}function sm(e,t){return vC(e)?t===e.expression:IC(e)?t===e.modifiers:SC(e)?t===e.initializer:TC(e)?t===e.questionToken&&kd(e):QN(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||lm(e.modifiers,t,Fd):ZN(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||lm(e.modifiers,t,Fd):AC(e)?t===e.exclamationToken:RC(e)?t===e.typeParameters||t===e.type||lm(e.typeParameters,t,vC):CC(e)?t===e.typeParameters||lm(e.typeParameters,t,vC):DC(e)?t===e.typeParameters||t===e.type||lm(e.typeParameters,t,vC):!!_N(e)&&(t===e.modifiers||lm(e.modifiers,t,Fd))}function lm(e,t,n){return!(!e||mt(t)||!n(t))&&F(e,t)}function cm(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r<e.length&&n(e[r]);++r);return e.splice(r,0,...t),e}function dm(e,t,n){if(void 0===t)return e;let r=0;for(;r<e.length&&n(e[r]);++r);return e.splice(r,0,t),e}function um(e){return w_(e)||!!(2097152&Rm(e))}function pm(e,t){return cm(e,t,w_)}function fm(e,t){return cm(e,t,um)}function mm(e,t){return dm(e,t,w_)}function _m(e,t){return dm(e,t,um)}function hm(e,t,n){if(47===e.charCodeAt(t+1)&&t+2<n&&47===e.charCodeAt(t+2)){const r=e.substring(t,n);return!!(_p.test(r)||yp.test(r)||vp.test(r)||hp.test(r)||gp.test(r)||bp.test(r))}return!1}function gm(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function ym(e,t){const n=new Map(t.map((t=>[`${_s(e,t.range.end).line}`,t]))),r=new Map;return{getUnusedExpectations:function(){return Ye(n.entries()).filter((([e,t])=>0===t.type&&!r.get(e))).map((([e,t])=>t))},markUsed:function(e){if(!n.has(`${e}`))return!1;return r.set(`${e}`,!0),!0}}}function vm(e,t,n){return im(e)?e.pos:Uu(e)||12===e.kind?Ts((t||Yf(e)).text,e.pos,!1,!0):n&&Xu(e)?vm(e.jsDoc[0],t):358===e.kind&&e._children.length>0?vm(e._children[0],t,n):Ts((t||Yf(e)).text,e.pos,!1,!1,Zh(e))}function bm(e,t){const n=!im(e)&&vk(e)?k(e.modifiers,EC):void 0;return n?Ts((t||Yf(e)).text,n.end):vm(e,t)}function Em(e,t,n=!1){return Tm(e.text,t,n)}function Sm(e){return!!(DN(e)&&e.exportClause&&AN(e.exportClause)&&"default"===e.exportClause.name.escapedText)}function Tm(e,t,n=!1){if(im(t))return"";let r=e.substring(n?t.pos:Ts(e,t.pos),t.end);return function(e){return!!Cl(e,aM)}(t)&&(r=r.split(/\r\n|\n|\r/).map((e=>e.replace(/^\s*\*/,"").trimStart())).join("\n")),r}function xm(e,t=!1){return Em(Yf(e),e,t)}function Am(e){return e.pos}function Im(e,t){return je(e,t,Am,Ft)}function Rm(e){const t=e.emitNode;return t&&t.flags||0}function Cm(e){const t=e.emitNode;return t&&t.internalFlags||0}function Dm(e,t,n){if(t&&function(e,t){if(Sv(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(FR(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&t)}return!WR(e)}(e,n))return Em(t,e);switch(e.kind){case 11:{const t=2&n?Bv:1&n||16777216&Rm(e)?Fv:Wv;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const t=1&n||16777216&Rm(e)?Fv:Wv,r=e.rawText??Lv(t(e.text,96));switch(e.kind){case 15:return"`"+r+"`";case 16:return"`"+r+"${";case 17:return"}"+r+"${";case 18:return"}"+r+"`"}break}case 9:case 10:return e.text;case 14:return 4&n&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return In.fail(`Literal kind '${e.kind}' not accounted for.`)}function Nm(e){return ht(e)?'"'+Wv(e)+'"':""+e}function Mm(e){return oa(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function Lm(e){return 0!==(7&xl(e))||km(e)}function km(e){const t=bv(e);return 260===t.kind&&299===t.parent.kind}function Pm(e){return pN(e)&&(11===e.name.kind||Bm(e))}function wm(e){return pN(e)&&11===e.name.kind}function Om(e){return pN(e)&&zR(e.name)}function Fm(e){return pN(e)||nC(e)}function Wm(e){return!!(t=e.valueDeclaration)&&267===t.kind&&!t.body;var t}function zm(e){return 312===e.kind||267===e.kind||xd(e)}function Bm(e){return!!(2048&e.flags)}function Gm(e){return Pm(e)&&jm(e)}function jm(e){switch(e.parent.kind){case 312:return uP(e.parent);case 268:return Pm(e.parent.parent)&&rM(e.parent.parent.parent)&&!uP(e.parent.parent.parent)}return!1}function Vm(e){var t;return null==(t=e.declarations)?void 0:t.find((e=>!Gm(e)&&!(pN(e)&&Bm(e))))}function Um(e,t){return uP(e)||(1===(n=Vp(t))||100===n||199===n)&&!!e.commonJsModuleIndicator;var n}function Hm(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!e.isDeclarationFile&&(!!IT(t,"alwaysStrict")||(!!_L(e.statements)||!(!uP(e)&&!Kp(t))&&(Vp(t)>=5||!t.noImplicitUseStrict)))}function Km(e){return!!(33554432&e.flags)||Gb(e,128)}function qm(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!xd(t)}return!1}function Jm(e){switch(In.type(e),e.kind){case 345:case 353:case 330:return!0;default:return Xm(e)}}function Xm(e){switch(In.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function $m(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Ym(e){return $m(e)||rg(e)}function Qm(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Zm(e){return e_(e)||pN(e)||eD(e)||L_(e)}function e_(e){return $m(e)||DN(e)}function t_(e){return Cl(e.parent,(e=>!!(1&qW(e))))}function n_(e){return Cl(e.parent,(e=>qm(e,e.parent)))}function r_(e,t){let n=n_(e);for(;n;)t(n),n=n_(n)}function o_(e){return e&&0!==jf(e)?xm(e):"(Missing)"}function i_(e){return e.declaration?o_(e.declaration.parameters[0].name):void 0}function a_(e){return 167===e.kind&&!tv(e.expression)}function s_(e){var t;switch(e.kind){case 80:case 81:return(null==(t=e.emitNode)?void 0:t.autoGenerate)?void 0:e.escapedText;case 11:case 9:case 15:return Ml(e.text);case 167:return tv(e.expression)?Ml(e.expression.text):void 0;case 295:return EA(e);default:return In.assertNever(e)}}function l_(e){return In.checkDefined(s_(e))}function c_(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===jf(e)?kl(e):xm(e);case 166:return c_(e.left)+"."+c_(e.right);case 211:return nC(e.name)||rC(e.name)?c_(e.expression)+"."+c_(e.name):In.assertNever(e.name);case 318:return c_(e.left)+c_(e.right);case 295:return c_(e.namespace)+":"+c_(e.name);default:return In.assertNever(e)}}function d_(e,t,...n){return p_(Yf(e),e,t,...n)}function u_(e,t,n,...r){const o=Ts(e.text,t.pos);return iT(e,o,t.end-o,n,...r)}function p_(e,t,n,...r){const o=S_(e,t);return iT(e,o.start,o.length,n,...r)}function f_(e,t,n,r){const o=S_(e,t);return h_(e,o.start,o.length,n,r)}function m_(e,t,n,r){const o=Ts(e.text,t.pos);return h_(e,o,t.end-o,n,r)}function __(e,t,n){In.assertGreaterThanOrEqual(t,0),In.assertGreaterThanOrEqual(n,0),In.assertLessThanOrEqual(t,e.length),In.assertLessThanOrEqual(t+n,e.length)}function h_(e,t,n,r,o){return __(e.text,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:o}}function g_(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function y_(e){return"string"===typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function v_(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function b_(e,t){const n=Bs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();return ul(n.getTokenStart(),n.getTokenEnd())}function E_(e,t){const n=Bs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function S_(e,t){let n=t;switch(t.kind){case 312:{const t=Ts(e.text,0,!1);return t===e.text.length?dl(0,0):b_(e,t)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:n=t.name;break;case 219:return function(e,t){const n=Ts(e.text,t.pos);if(t.body&&241===t.body.kind){const{line:r}=_s(e,t.body.pos),{line:o}=_s(e,t.body.end);if(r<o)return dl(n,rm(r,e)-n+1)}return ul(n,t.end)}(e,t);case 296:case 297:return ul(Ts(e.text,t.pos),t.statements.length>0?t.statements[0].pos:t.end);case 253:case 229:return b_(e,Ts(e.text,t.pos));case 238:return b_(e,Ts(e.text,t.expression.end));case 357:return b_(e,Ts(e.text,t.tagName.pos))}if(void 0===n)return b_(e,t.pos);In.assert(!bM(n));const r=im(n),o=r||BR(t)?n.pos:Ts(e.text,n.pos);return r?(In.assert(o===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),In.assert(o===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(In.assert(o>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),In.assert(o<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),ul(o,n.end)}function T_(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function x_(e){return 6===e.scriptKind}function A_(e){return!!(4096&Sl(e))}function I_(e){return!(!(8&Sl(e))||gl(e,e.parent))}function R_(e){return 6===(7&xl(e))}function C_(e){return 4===(7&xl(e))}function D_(e){return 2===(7&xl(e))}function N_(e){return 1===(7&xl(e))}function M_(e){return 213===e.kind&&108===e.expression.kind}function L_(e){return 213===e.kind&&102===e.expression.kind}function k_(e){return PD(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function P_(e){return eD(e)&&ZC(e.argument)&&zR(e.argument.literal)}function w_(e){return 244===e.kind&&11===e.expression.kind}function O_(e){return!!(2097152&Rm(e))}function F_(e){return O_(e)&&sN(e)}function W_(e){return nC(e.name)&&!e.initializer}function z_(e){return O_(e)&&GD(e)&&M(e.declarationList.declarations,W_)}function B_(e,t){return 12!==e.kind?Ps(t.text,e.pos):void 0}function G_(e,t){return G(169===e.kind||168===e.kind||218===e.kind||219===e.kind||217===e.kind||260===e.kind||281===e.kind?ce(ws(t,e.pos),Ps(t,e.pos)):Ps(t,e.pos),(e=>42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)))}function j_(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return 222!==e.parent.kind;case 233:return V_(e);case 168:return 200===e.parent.kind||195===e.parent.kind;case 80:(166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e)&&(e=e.parent),In.assert(80===e.kind||166===e.kind||211===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(186===t.kind)return!1;if(205===t.kind)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return V_(t);case 168:case 352:return e===t.constraint;case 172:case 171:case 169:case 260:case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:case 179:case 180:case 181:case 216:return e===t.type;case 213:case 214:case 215:return F(t.typeArguments,e)}}}return!1}function V_(e){return UM(e.parent)||TM(e.parent)||$N(e.parent)&&!bE(e)}function U_(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function H_(e,t){return function e(n){switch(n.kind){case 253:return t(n);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return oP(n,e)}}(e)}function K_(e,t){return function e(n){switch(n.kind){case 229:t(n);const r=n.expression;return void(r&&e(r));case 266:case 264:case 267:case 265:return;default:if(Td(n)){if(n.name&&167===n.name.kind)return void e(n.name.expression)}else j_(n)||oP(n,e)}}(e)}function q_(e){return e&&188===e.kind?e.elementType:e&&183===e.kind?We(e.typeArguments):void 0}function J_(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function X_(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function $_(e){return X_(e)||Ld(e)}function Y_(e){return 261===e.parent.kind&&243===e.parent.parent.kind}function Q_(e){return!!$h(e)&&(sD(e.parent)&&TD(e.parent.parent)&&2===Eg(e.parent.parent)||Z_(e.parent))}function Z_(e){return!!$h(e)&&(TD(e)&&1===Eg(e))}function eh(e){return(iN(e)?D_(e)&&nC(e.name)&&Y_(e):TC(e)?Jb(e)&&Vb(e):SC(e)&&Jb(e))||Z_(e)}function th(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function nh(e,t){for(;;){if(t&&t(e),256!==e.statement.kind)return e.statement;e=e.statement}}function rh(e){return e&&241===e.kind&&Td(e.parent)}function oh(e){return e&&174===e.kind&&210===e.parent.kind}function ih(e){return(174===e.kind||177===e.kind||178===e.kind)&&(210===e.parent.kind||231===e.parent.kind)}function ah(e){return e&&1===e.kind}function sh(e){return e&&0===e.kind}function lh(e,t,n,r){return x(null==e?void 0:e.properties,(e=>{if(!QN(e))return;const o=s_(e.name);return t===o||r&&r===o?n(e):void 0}))}function ch(e,t,n){return lh(e,t,(e=>aD(e.initializer)?L(e.initializer.elements,(e=>zR(e)&&e.text===n)):void 0))}function dh(e){if(e&&e.statements.length){return yt(e.statements[0].expression,sD)}}function uh(e,t,n){return ph(e,t,(e=>aD(e.initializer)?L(e.initializer.elements,(e=>zR(e)&&e.text===n)):void 0))}function ph(e,t,n){return lh(dh(e),t,n)}function fh(e){return Cl(e.parent,Td)}function mh(e){return Cl(e.parent,Ad)}function _h(e){return Cl(e.parent,Md)}function hh(e){return Cl(e.parent,(e=>Md(e)||Td(e)?"quit":IC(e)))}function gh(e){return Cl(e.parent,xd)}function yh(e){const t=Cl(e.parent,(e=>Md(e)?"quit":EC(e)));return t&&Md(t.parent)?_h(t.parent):_h(t??e)}function vh(e,t,n){for(In.assert(312!==e.kind);;){if(!(e=e.parent))return In.fail();switch(e.kind){case 167:if(n&&Md(e.parent.parent))return e;e=e.parent.parent;break;case 170:169===e.parent.kind&&Nd(e.parent.parent)?e=e.parent.parent:Nd(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function bh(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function Eh(e){nC(e)&&(lN(e.parent)||sN(e.parent))&&e.parent.name===e&&(e=e.parent);return rM(vh(e,!0,!1))}function Sh(e){const t=vh(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function Th(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:169===e.parent.kind&&Nd(e.parent.parent)?e=e.parent.parent:Nd(e.parent)&&(e=e.parent)}}}function xh(e){if(218===e.kind||219===e.kind){let t=e,n=e.parent;for(;217===n.kind;)t=n,n=n.parent;if(213===n.kind&&n.expression===t)return n}}function Ah(e){return 108===e.kind||Ih(e)}function Ih(e){const t=e.kind;return(211===t||212===t)&&108===e.expression.kind}function Rh(e){const t=e.kind;return(211===t||212===t)&&110===e.expression.kind}function Ch(e){var t;return!!e&&iN(e)&&110===(null==(t=e.initializer)?void 0:t.kind)}function Dh(e){return!!e&&(ZN(e)||QN(e))&&TD(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function Nh(e){switch(e.kind){case 183:return e.typeName;case 233:return EE(e.expression)?e.expression:void 0;case 80:case 166:return e}}function Mh(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function Lh(e,t,n,r){if(e&&Bl(t)&&rC(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return void 0!==n&&(e?lN(n):Md(n)&&!Hb(t)&&!Kb(t));case 177:case 178:case 174:return void 0!==t.body&&void 0!==n&&(e?lN(n):Md(n));case 169:return!!e&&(void 0!==n&&void 0!==n.body&&(176===n.kind||174===n.kind||178===n.kind)&&yb(n)!==t&&void 0!==r&&263===r.kind)}return!1}function kh(e,t,n,r){return Xb(t)&&Lh(e,t,n,r)}function Ph(e,t,n,r){return kh(e,t,n,r)||wh(e,t,n)}function wh(e,t,n){switch(t.kind){case 263:return se(t.members,(r=>Ph(e,r,t,n)));case 231:return!e&&se(t.members,(r=>Ph(e,r,t,n)));case 174:case 178:case 176:return se(t.parameters,(r=>kh(e,r,t,n)));default:return!1}}function Oh(e,t){if(kh(e,t))return!0;const n=_b(t);return!!n&&wh(e,n,t)}function Fh(e,t,n){let r;if(Ld(t)){const{firstAccessor:e,secondAccessor:o,setAccessor:i}=xb(n.members,t),a=Xb(e)?e:o&&Xb(o)?o:void 0;if(!a||t!==a)return!1;r=null==i?void 0:i.parameters}else AC(t)&&(r=t.parameters);if(kh(e,t,n))return!0;if(r)for(const o of r)if(!vb(o)&&kh(e,o,t,n))return!0;return!1}function Wh(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Wh(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function zh(e){const{parent:t}=e;return(286===t.kind||285===t.kind||287===t.kind)&&t.tagName===e}function Bh(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!$N(e.parent)&&!TM(e.parent);case 166:for(;166===e.parent.kind;)e=e.parent;return 186===e.parent.kind||rp(e.parent)||sM(e.parent)||lM(e.parent)||zh(e);case 318:for(;lM(e.parent);)e=e.parent;return 186===e.parent.kind||rp(e.parent)||sM(e.parent)||lM(e.parent)||zh(e);case 81:return TD(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(186===e.parent.kind||rp(e.parent)||sM(e.parent)||lM(e.parent)||zh(e))return!0;case 9:case 10:case 11:case 15:case 110:return Gh(e);default:return!1}}function Gh(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const n=t;return n.initializer===e&&261!==n.initializer.kind||n.condition===e||n.incrementor===e;case 249:case 250:const r=t;return r.initializer===e&&261!==r.initializer.kind||r.expression===e;case 216:case 234:case 239:case 167:case 238:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!j_(t);case 304:return t.objectAssignmentInitializer===e;default:return Bh(t)}}function jh(e){for(;166===e.kind||80===e.kind;)e=e.parent;return 186===e.kind}function Vh(e){return AN(e)&&!!e.parent.moduleSpecifier}function Uh(e){return 271===e.kind&&283===e.moduleReference.kind}function Hh(e){return In.assert(Uh(e)),e.moduleReference.expression}function Kh(e){return rg(e)&&zS(e.initializer).arguments[0]}function qh(e){return 271===e.kind&&283!==e.moduleReference.kind}function Jh(e){return $h(e)}function Xh(e){return!$h(e)}function $h(e){return!!e&&!!(524288&e.flags)}function Yh(e){return!!e&&!!(134217728&e.flags)}function Qh(e){return!x_(e)}function Zh(e){return!!e&&!!(16777216&e.flags)}function eg(e){return PC(e)&&nC(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function tg(e,t){if(213!==e.kind)return!1;const{expression:n,arguments:r}=e;if(80!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;const o=r[0];return!t||np(o)}function ng(e){return ig(e,!1)}function rg(e){return ig(e,!0)}function og(e){return iD(e)&&rg(e.parent.parent)}function ig(e,t){return iN(e)&&!!e.initializer&&tg(t?zS(e.initializer):e.initializer,!0)}function ag(e){return GD(e)&&e.declarationList.declarations.length>0&&M(e.declarationList.declarations,(e=>ng(e)))}function sg(e){return 39===e||34===e}function lg(e,t){return 34===Em(t,e).charCodeAt(0)}function cg(e){return TD(e)||wS(e)||nC(e)||dD(e)}function dg(e){return $h(e)&&e.initializer&&TD(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&EE(e.name)&&hg(e.name,e.initializer.left)?e.initializer.right:e.initializer}function ug(e){const t=dg(e);return t&&fg(t,IE(e.name))}function pg(e){if(e&&e.parent&&TD(e.parent)&&64===e.parent.operatorToken.kind){const t=IE(e.parent.left);return fg(e.parent.right,t)||function(e,t,n){const r=TD(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&fg(t.right,n);if(r&&hg(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&dD(e)&&Sg(e)){const t=function(e,t){return x(e.properties,(e=>QN(e)&&nC(e.name)&&"value"===e.name.escapedText&&e.initializer&&fg(e.initializer,t)))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function fg(e,t){if(dD(e)){const t=Ty(e.expression);return 218===t.kind||219===t.kind?e:void 0}return 218===e.kind||231===e.kind||219===e.kind||sD(e)&&(0===e.properties.length||t)?e:void 0}function mg(e){const t=iN(e.parent)?e.parent.name:TD(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&fg(e.right,IE(t))&&EE(t)&&hg(t,e.left)}function _g(e){if(TD(e.parent)){const t=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!TD(e.parent.parent)?e.parent:e.parent.parent;if(64===t.operatorToken.kind&&nC(t.left))return t.left}else if(iN(e.parent))return e.parent.name}function hg(e,t){return av(e)&&av(t)?sv(e)===sv(t):Nc(e)&&Tg(t)&&(110===t.expression.kind||nC(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?hg(e,Cg(t)):!(!Tg(e)||!Tg(t))&&(Ng(e)===Ng(t)&&hg(e.expression,t.expression))}function gg(e){for(;gE(e,!0);)e=e.right;return e}function yg(e){return nC(e)&&"exports"===e.escapedText}function vg(e){return nC(e)&&"module"===e.escapedText}function bg(e){return(lD(e)||xg(e))&&vg(e.expression)&&"exports"===Ng(e)}function Eg(e){const t=function(e){if(dD(e)){if(!Sg(e))return 0;const t=e.arguments[0];return yg(t)||bg(t)?8:Ag(t)&&"prototype"===Ng(t)?9:7}if(64!==e.operatorToken.kind||!wS(e.left)||(t=gg(e),vD(t)&&FR(t.expression)&&"0"===t.expression.text))return 0;var t;if(Rg(e.left.expression,!0)&&"prototype"===Ng(e.left)&&sD(Lg(e)))return 6;return Mg(e.left)}(e);return 5===t||$h(e)?t:0}function Sg(e){return 3===T(e.arguments)&&lD(e.expression)&&nC(e.expression.expression)&&"Object"===kl(e.expression.expression)&&"defineProperty"===kl(e.expression.name)&&tv(e.arguments[1])&&Rg(e.arguments[0],!0)}function Tg(e){return lD(e)||xg(e)}function xg(e){return cD(e)&&tv(e.argumentExpression)}function Ag(e,t){return lD(e)&&(!t&&110===e.expression.kind||nC(e.name)&&Rg(e.expression,!0))||Ig(e,t)}function Ig(e,t){return xg(e)&&(!t&&110===e.expression.kind||EE(e.expression)||Ag(e.expression,!0))}function Rg(e,t){return EE(e)||Ag(e,t)}function Cg(e){return lD(e)?e.name:e.argumentExpression}function Dg(e){if(lD(e))return e.name;const t=Ty(e.argumentExpression);return FR(t)||np(t)?t:e}function Ng(e){const t=Dg(e);if(t){if(nC(t))return t.escapedText;if(np(t)||FR(t))return Ml(t.text)}}function Mg(e){if(110===e.expression.kind)return 4;if(bg(e))return 2;if(Rg(e.expression,!0)){if(IE(e.expression))return 3;let t=e;for(;!nC(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===Ng(t))&&Ag(e))return 1;if(Rg(e,!0)||cD(e)&&ov(e))return 5}return 0}function Lg(e){for(;TD(e.right);)e=e.right;return e.right}function kg(e){return TD(e)&&3===Eg(e)}function Pg(e){return $h(e)&&e.parent&&244===e.parent.kind&&(!cD(e)||xg(e))&&!!yc(e.parent)}function wg(e,t){const{valueDeclaration:n}=e;(!n||(!(33554432&t.flags)||$h(t)||33554432&n.flags)&&cg(n)&&!cg(t)||n.kind!==t.kind&&Fm(n))&&(e.valueDeclaration=t)}function Og(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 262===t.kind||iN(t)&&t.initializer&&Td(t.initializer)}function Fg(e){var t,n;switch(e.kind){case 260:case 208:return null==(t=Cl(e.initializer,(e=>tg(e,!0))))?void 0:t.arguments[0];case 272:case 278:return yt(e.moduleSpecifier,np);case 271:return yt(null==(n=yt(e.moduleReference,wN))?void 0:n.expression,np);case 273:case 280:return yt(e.parent.moduleSpecifier,np);case 274:case 281:return yt(e.parent.parent.moduleSpecifier,np);case 276:return yt(e.parent.parent.parent.moduleSpecifier,np);case 205:return P_(e)?e.argument.literal:void 0;default:In.assertNever(e)}}function Wg(e){return zg(e)||In.failBadSyntaxKind(e.parent)}function zg(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return L_(e.parent)||tg(e.parent,!1)?e.parent:void 0;case 201:return In.assert(zR(e)),yt(e.parent.parent,eD);default:return}}function Bg(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return 283===e.moduleReference.kind?e.moduleReference.expression:void 0;case 205:return P_(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return 11===e.name.kind?e.name:void 0;default:return In.assertNever(e)}}function Gg(e){switch(e.kind){case 272:return e.importClause&&yt(e.importClause.namedBindings,xN);case 271:return e;case 278:return e.exportClause&&yt(e.exportClause,AN);default:return In.assertNever(e)}}function jg(e){return 272===e.kind&&!!e.importClause&&!!e.importClause.name}function Vg(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=xN(e.namedBindings)?t(e.namedBindings):x(e.namedBindings.elements,t);if(n)return n}}function Ug(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return void 0!==e.questionToken}return!1}function Hg(e){const t=gM(e)?Le(e.parameters):void 0,n=yt(t&&t.name,nC);return!!n&&"new"===n.escapedText}function Kg(e){return 353===e.kind||345===e.kind||347===e.kind}function qg(e){return Kg(e)||dN(e)}function Jg(e){return VD(e)&&TD(e.expression)&&0!==Eg(e.expression)&&TD(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function Xg(e){switch(e.kind){case 243:const t=$g(e);return t&&t.initializer;case 172:case 303:return e.initializer}}function $g(e){return GD(e)?Le(e.declarationList.declarations):void 0}function Yg(e){return pN(e)&&e.body&&267===e.body.kind?e.body:void 0}function Qg(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function Zg(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function ey(e,t){let n;X_(e)&&Yu(e)&&Xu(e.initializer)&&(n=xe(n,ty(e,e.initializer.jsDoc)));let r=e;for(;r&&r.parent;){if(Xu(r)&&(n=xe(n,ty(e,r.jsDoc))),169===r.kind){n=xe(n,(t?Jl:ql)(r));break}if(168===r.kind){n=xe(n,(t?Yl:$l)(r));break}r=ny(r)}return n||o}function ty(e,t){const n=Fe(t);return J(t,(t=>{if(t===n){const n=G(t.tags,(t=>function(e,t){return!(zM(t)||HM(t))||!t.parent||!bM(t.parent)||!mD(t.parent.parent)||t.parent.parent===e}(e,t)));return t.tags===n?[t]:n}return G(t.tags,LM)}))}function ny(e){const t=e.parent;return 303===t.kind||277===t.kind||172===t.kind||244===t.kind&&211===e.kind||253===t.kind||Yg(t)||gE(e)?t:t.parent&&($g(t.parent)===e||gE(t))?t.parent:t.parent&&t.parent.parent&&($g(t.parent.parent)||Xg(t.parent.parent)===e||Jg(t.parent.parent))?t.parent.parent:void 0}function ry(e){if(e.symbol)return e.symbol;if(!nC(e.name))return;const t=e.name.escapedText,n=ay(e);if(!n)return;const r=L(n.parameters,(e=>80===e.name.kind&&e.name.escapedText===t));return r&&r.symbol}function oy(e){if(bM(e.parent)&&e.parent.tags){const t=L(e.parent.tags,Kg);if(t)return t}return ay(e)}function iy(e){return Ac(e,LM)}function ay(e){const t=sy(e);if(t)return SC(t)&&t.type&&Td(t.type)?t.type:Td(t)?t:void 0}function sy(e){const t=ly(e);if(t)return Jg(t)||function(e){return VD(e)&&TD(e.expression)&&64===e.expression.operatorToken.kind?gg(e.expression):void 0}(t)||Xg(t)||$g(t)||Yg(t)||t}function ly(e){const t=cy(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===Oe(n.jsDoc)?n:void 0}function cy(e){return Cl(e.parent,bM)}function dy(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&L(n,(e=>e.name.escapedText===t))}function uy(e){return!!e.typeArguments}function py(e){let t=e.parent;for(;;){switch(t.kind){case 226:const n=t;return mE(n.operatorToken.kind)&&n.left===e?n:void 0;case 224:case 225:const r=t,o=r.operator;return 46===o||47===o?r:void 0;case 249:case 250:const i=t;return i.initializer===e?i:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function fy(e){const t=py(e);if(!t)return 0;switch(t.kind){case 226:const e=t.operatorToken.kind;return 64===e||dE(e)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function my(e){return!!py(e)}function _y(e){const t=py(e);return!!t&&gE(t,!0)&&function(e){const t=Ty(e.right);return 226===t.kind&&$L(t.operatorToken.kind)}(t)}function hy(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function gy(e){return _D(e)||hD(e)||wd(e)||sN(e)||RC(e)}function yy(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function vy(e){return yy(e,196)}function by(e){return yy(e,217)}function Ey(e){let t;for(;e&&196===e.kind;)t=e,e=e.parent;return[t,e]}function Sy(e){for(;JC(e);)e=e.type;return e}function Ty(e,t){return EL(e,t?17:1)}function xy(e){return(211===e.kind||212===e.kind)&&((e=by(e.parent))&&220===e.kind)}function Ay(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Iy(e){return!rM(e)&&!Vd(e)&&Lu(e.parent)&&e.parent.name===e}function Ry(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(yC(t))return t.parent;case 80:if(Lu(t))return t.name===e?t:void 0;if(gC(t)){const e=t.parent;return OM(e)&&e.name===t?e:void 0}{const n=t.parent;return TD(n)&&0!==Eg(n)&&(n.left.symbol||n.symbol)&&jl(n)===e?n:void 0}case 81:return Lu(t)&&t.name===e?t:void 0;default:return}}function Cy(e){return tv(e)&&167===e.parent.kind&&Lu(e.parent.parent)}function Dy(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function Ny(e){return!!(271===e.kind||270===e.kind||273===e.kind&&e.name||274===e.kind||280===e.kind||276===e.kind||281===e.kind||277===e.kind&&ky(e))||$h(e)&&(TD(e)&&2===Eg(e)&&ky(e)||lD(e)&&TD(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&Ly(e.parent.right))}function My(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do{e=e.parent}while(166===e.parent.kind);return My(e)}}function Ly(e){return EE(e)||CD(e)}function ky(e){return Ly(Py(e))}function Py(e){return CN(e)?e.expression:e.right}function wy(e){return 304===e.kind?e.name:303===e.kind?e.initializer:e.parent.right}function Oy(e){const t=Fy(e);if(t&&$h(e)){const t=Zl(e);if(t)return t.class}return t}function Fy(e){const t=Gy(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function Wy(e){if($h(e))return ec(e).map((e=>e.class));{const t=Gy(e.heritageClauses,119);return null==t?void 0:t.types}}function zy(e){return cN(e)?By(e)||o:Md(e)&&ce(yn(Oy(e)),Wy(e))||o}function By(e){const t=Gy(e.heritageClauses,96);return t?t.types:void 0}function Gy(e,t){if(e)for(const n of e)if(n.token===t)return n}function jy(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Vy(e){return 83<=e&&e<=165}function Uy(e){return 19<=e&&e<=79}function Hy(e){return Vy(e)||Uy(e)}function Ky(e){return 128<=e&&e<=165}function qy(e){return Vy(e)&&!Ky(e)}function Jy(e){return 119<=e&&e<=127}function Xy(e){const t=ss(e);return void 0!==t&&qy(t)}function $y(e){const t=ss(e);return void 0!==t&&Vy(t)}function Yy(e){const t=Pl(e);return!!t&&!Ky(t)}function Qy(e){return 2<=e&&e<=7}function Zy(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Gb(e,1024)&&(t|=2)}return e.body||(t|=4),t}function ev(e){switch(e.kind){case 262:case 218:case 219:case 174:return void 0!==e.body&&void 0===e.asteriskToken&&Gb(e,1024)}return!1}function tv(e){return np(e)||FR(e)}function nv(e){return ED(e)&&(40===e.operator||41===e.operator)&&FR(e.operand)}function rv(e){const t=jl(e);return!!t&&ov(t)}function ov(e){if(167!==e.kind&&212!==e.kind)return!1;const t=cD(e)?Ty(e.argumentExpression):e.expression;return!tv(t)&&!nv(t)}function iv(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return Ml(e.text);case 167:const t=e.expression;return tv(t)?Ml(t.text):nv(t)?41===t.operator?as(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return EA(e);default:return In.assertNever(e)}}function av(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function sv(e){return Nc(e)?kl(e):qN(e)?SA(e):e.text}function lv(e){return Nc(e)?e.escapedText:qN(e)?EA(e):Ml(e.text)}function cv(e){return`__@${Kz(e)}@${e.escapedName}`}function dv(e,t){return`__#${Kz(e)}@${t}`}function uv(e){return dn(e.escapedName,"__@")}function pv(e){return dn(e.escapedName,"__#")}function fv(e){return 80===e.kind&&"Symbol"===e.escapedText}function mv(e){return nC(e)?"__proto__"===kl(e):zR(e)&&"__proto__"===e.text}function _v(e,t){switch((e=EL(e)).kind){case 231:if(zG(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return"function"!==typeof t||t(e)}function hv(e){switch(e.kind){case 303:return!mv(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return nC(e.name)&&!!e.initializer;case 169:case 208:return nC(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return nC(e.left)}break;case 277:return!0}return!1}function gv(e,t){if(!hv(e))return!1;switch(e.kind){case 303:case 260:case 169:case 208:case 172:return _v(e.initializer,t);case 304:return _v(e.objectAssignmentInitializer,t);case 226:return _v(e.right,t);case 277:return _v(e.expression,t)}}function yv(e){return"push"===e.escapedText||"unshift"===e.escapedText}function vv(e){return 169===bv(e).kind}function bv(e){for(;208===e.kind;)e=e.parent.parent;return e}function Ev(e){const t=e.kind;return 176===t||218===t||262===t||219===t||174===t||177===t||178===t||267===t||312===t}function Sv(e){return _x(e.pos)||_x(e.end)}function Tv(e){return Nl(e,rM)||e}function xv(e){const t=Rv(e),n=214===e.kind&&void 0!==e.arguments;return Av(e.kind,t,n)}function Av(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function Iv(e){const t=Rv(e),n=214===e.kind&&void 0!==e.arguments;return Cv(e.kind,t,n)}function Rv(e){return 226===e.kind?e.operatorToken.kind:224===e.kind||225===e.kind?e.operator:e.kind}function Cv(e,t,n){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return Dv(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function Dv(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function Nv(e){return G(e,(e=>{switch(e.kind){case 294:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))}function Mv(){let e=[];const t=[],n=new Map;let r=!1;return{add:function(o){let i;o.file?(i=n.get(o.file.fileName),i||(i=[],n.set(o.file.fileName,i),me(t,o.file.fileName,jt))):(r&&(r=!1,e=e.slice()),i=e);me(i,o,fT)},lookup:function(t){let r;r=t.file?n.get(t.file.fileName):e;if(!r)return;const o=je(r,t,xt,fT);if(o>=0)return r[o];return},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return n.get(r)||[];const o=X(t,(e=>n.get(e)));if(!e.length)return o;return o.unshift(...e),o}}}function Lv(e){return e.replace(Ap,"\\${")}function kv(e){return!!(2048&(e.templateFlags||0))}function Pv(e){return e&&!!(jR(e)?kv(e):kv(e.head)||se(e.templateSpans,(e=>kv(e.literal))))}function wv(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Ov(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Dp.get(e)||wv(e.charCodeAt(0))}function Fv(e,t){const n=96===t?Cp:39===t?Rp:Ip;return e.replace(n,Ov)}function Wv(e,t){return e=Fv(e,t),Np.test(e)?e.replace(Np,(e=>wv(e.charCodeAt(0)))):e}function zv(e){return 0===e.charCodeAt(0)?"�":kp.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Bv(e,t){const n=39===t?Lp:Mp;return e.replace(n,zv)}function Gv(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e;var n}function jv(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function Vv(e){const t=Pp[1];for(let n=Pp.length;n<=e;n++)Pp.push(Pp[n-1]+t);return Pp[e]}function Uv(){return Pp[1].length}function Hv(e){var t,n,r,o,i,a=!1;function s(e){const n=ls(e);n.length>1?(o=o+n.length-1,i=t.length-e.length+Fe(n),r=i-t.length===0):r=!1}function l(e){e&&e.length&&(r&&(e=Vv(n)+e,r=!1),t+=e,s(e))}function c(e){e&&(a=!1),l(e)}function d(){t="",n=0,r=!0,o=0,i=0,a=!1}return d(),{write:c,rawWrite:function(e){void 0!==e&&(t+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&c(e)},writeLine:function(n){r&&!n||(o++,i=(t+=e).length,r=!0,a=!1)},increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>r?n*Uv():t.length-i,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&hs(t.charCodeAt(t.length-1)),clear:d,writeKeyword:c,writeOperator:c,writeParameter:c,writeProperty:c,writePunctuation:c,writeSpace:c,writeStringLiteral:c,writeSymbol:(e,t)=>c(e),writeTrailingSemicolon:c,writeComment:function(e){e&&(a=!0),l(e)},getTextPosWithWriteLine:function(){return r?t.length:t.length+e.length}}}function Kv(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(t){n(),e.writeLiteral(t)},writeStringLiteral(t){n(),e.writeStringLiteral(t)},writeSymbol(t,r){n(),e.writeSymbol(t,r)},writePunctuation(t){n(),e.writePunctuation(t)},writeKeyword(t){n(),e.writeKeyword(t)},writeOperator(t){n(),e.writeOperator(t)},writeParameter(t){n(),e.writeParameter(t)},writeSpace(t){n(),e.writeSpace(t)},writeProperty(t){n(),e.writeProperty(t)},writeComment(t){n(),e.writeComment(t)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function qv(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Jv(e){return an(qv(e))}function Xv(e,t,n){return t.moduleName||Qv(e,t.fileName,n&&n.fileName)}function $v(e,t){return e.getCanonicalFileName(ma(t,e.getCurrentDirectory()))}function Yv(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const o=Bg(n);return!o||!np(o)||Ji(o.text)||$v(e,r.path).includes($v(e,va(e.getCommonSourceDirectory())))?Xv(e,r):void 0}function Qv(e,t,n){const r=t=>e.getCanonicalFileName(t),o=ga(n?ra(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),i=cx(ka(o,ma(t,e.getCurrentDirectory()),o,r,!1));return n?ba(i):i}function Zv(e,t,n){const r=t.getCompilerOptions();let o;return o=r.outDir?cx(lb(e,t,r.outDir)):cx(e),o+n}function eb(e,t){return tb(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function tb(e,t,n,r,o){const i=t.declarationDir||t.outDir,a=i?cb(e,i,n,r,o):e,s=nb(a);return cx(a)+s}function nb(e){return Qi(e,[".mjs",".mts"])?".d.mts":Qi(e,[".cjs",".cts"])?".d.cts":Qi(e,[".json"])?".d.json.ts":".d.ts"}function rb(e){return Qi(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Qi(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Qi(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function ob(e){return e.outFile||e.out}function ib(e,t){var n;if(e.paths)return e.baseUrl??In.checkDefined(e.pathsBasePath||(null==(n=t.getCurrentDirectory)?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function ab(e,t,n){const r=e.getCompilerOptions();if(ob(r)){const t=Vp(r),o=r.emitDeclarationOnly||2===t||4===t;return G(e.getSourceFiles(),(t=>(o||!uP(t))&&sb(t,e,n)))}return G(void 0===t?e.getSourceFiles():[t],(t=>sb(t,e,n)))}function sb(e,t,n){const r=t.getCompilerOptions();if(r.noEmitForJsFiles&&Jh(e))return!1;if(e.isDeclarationFile)return!1;if(t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!x_(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(ob(r))return!0;if(!r.outDir)return!1;if(r.rootDir||r.composite&&r.configFilePath){const n=ma(wV(r,(()=>[]),t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),o=cb(e.fileName,r.outDir,t.getCurrentDirectory(),n,t.getCanonicalFileName);if(0===Ia(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()))return!1}return!0}function lb(e,t,n){return cb(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function cb(e,t,n,r,o){let i=ma(e,n);return i=0===o(i).indexOf(o(r))?i.substring(r.length):i,ua(t,i)}function db(e,t,n,r,o,i,a){e.writeFile(n,r,o,(e=>{t.add(sT(Oa.Could_not_write_file_0_Colon_1,n,e))}),i,a)}function ub(e,t,n){if(e.length>na(e)&&!n(e)){ub(ra(e),t,n),t(e)}}function pb(e,t,n,r,o,i){try{r(e,t,n)}catch{ub(ra(_a(e)),o,i),r(e,t,n)}}function fb(e,t){return fs(us(e),t)}function mb(e,t){return fs(e,t)}function _b(e){return L(e.members,(e=>RC(e)&&am(e.body)))}function hb(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&vb(e.parameters[0]);return e.parameters[t?1:0]}}function gb(e){const t=hb(e);return t&&t.type}function yb(e){if(e.parameters.length&&!SM(e)){const t=e.parameters[0];if(vb(t))return t}}function vb(e){return bb(e.name)}function bb(e){return!!e&&80===e.kind&&Tb(e)}function Eb(e){return!!Cl(e,(e=>186===e.kind||80!==e.kind&&166!==e.kind&&"quit"))}function Sb(e){if(!bb(e))return!1;for(;gC(e.parent)&&e.parent.left===e;)e=e.parent;return 186===e.parent.kind}function Tb(e){return"this"===e.escapedText}function xb(e,t){let n,r,o,i;return rv(t)?(n=t,177===t.kind?o=t:178===t.kind?i=t:In.fail("Accessor has wrong kind")):x(e,(e=>{if(Ld(e)&&jb(e)===jb(t)){iv(e.name)===iv(t.name)&&(n?r||(r=e):n=e,177!==e.kind||o||(o=e),178!==e.kind||i||(i=e))}})),{firstAccessor:n,secondAccessor:r,getAccessor:o,setAccessor:i}}function Ab(e){if(!$h(e)&&sN(e))return;const t=e.type;return t||!$h(e)?t:qc(e)?e.typeExpression&&e.typeExpression.type:vc(e)}function Ib(e){return e.type}function Rb(e){return SM(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||($h(e)?bc(e):void 0)}function Cb(e){return J(Sc(e),(e=>function(e){return BM(e)&&!(327===e.parent.kind&&(e.parent.tags.some(Kg)||e.parent.tags.some(LM)))}(e)?e.typeParameters:void 0))}function Db(e){const t=hb(e);return t&&Ab(t)}function Nb(e,t,n,r){Mb(e,t,n.pos,r)}function Mb(e,t,n,r){r&&r.length&&n!==r[0].pos&&mb(e,n)!==mb(e,r[0].pos)&&t.writeLine()}function Lb(e,t,n,r){n!==r&&mb(e,n)!==mb(e,r)&&t.writeLine()}function kb(e,t,n,r,o,i,a,s){if(r&&r.length>0){o&&n.writeSpace(" ");let l=!1;for(const o of r)l&&(n.writeSpace(" "),l=!1),s(e,t,n,o.pos,o.end,a),o.hasTrailingNewLine?n.writeLine():l=!0;l&&i&&n.writeSpace(" ")}}function Pb(e,t,n,r,o,i,a){let s,l;if(a?0===o.pos&&(s=G(Ps(e,o.pos),(function(t){return gm(e,t.pos)}))):s=Ps(e,o.pos),s){const a=[];let c;for(const e of s){if(c){const n=mb(t,c.end);if(mb(t,e.pos)>=n+2)break}a.push(e),c=e}if(a.length){const c=mb(t,Fe(a).end);mb(t,Ts(e,o.pos))>=c+2&&(Nb(t,n,o,s),kb(e,t,n,a,!1,!0,i,r),l={nodePos:o.pos,detachedCommentEndPos:Fe(a).end})}}return l}function wb(e,t,n,r,o,i){if(42===e.charCodeAt(r+1)){const a=ps(t,r),s=t.length;let l;for(let c=r,d=a.line;c<o;d++){const u=d+1===s?e.length+1:t[d+1];if(c!==r){void 0===l&&(l=Fb(e,t[a.line],r));const o=n.getIndent()*Uv()-l+Fb(e,c,u);if(o>0){let e=o%Uv();const t=Vv((o-e)/Uv());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}Ob(e,o,n,i,c,u),c=u}}else n.writeComment(e.substring(r,o))}function Ob(e,t,n,r,o,i){const a=Math.min(t,i-1),s=e.substring(o,a).trim();s?(n.writeComment(s),a!==t&&n.writeLine()):n.rawWrite(r)}function Fb(e,t,n){let r=0;for(;t<n&&gs(e.charCodeAt(t));t++)9===e.charCodeAt(t)?r+=Uv()-r%Uv():r++;return r}function Wb(e){return 0!==Zb(e)}function zb(e){return 0!==tE(e)}function Bb(e,t){return!!$b(e,t)}function Gb(e,t){return!!Yb(e,t)}function jb(e){return Nd(e)&&Vb(e)||IC(e)}function Vb(e){return Gb(e,256)}function Ub(e){return Bb(e,16)}function Hb(e){return Gb(e,64)}function Kb(e){return Gb(e,128)}function qb(e){return Gb(e,512)}function Jb(e){return Bb(e,8)}function Xb(e){return Gb(e,32768)}function $b(e,t){return Zb(e)&t}function Yb(e,t){return tE(e)&t}function Qb(e,t,n){return e.kind>=0&&e.kind<=165?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|iE(e)),n||t&&$h(e)?(268435456&e.modifierFlagsCache||!e.parent||(e.modifierFlagsCache|=268435456|nE(e)),rE(e.modifierFlagsCache)):65535&e.modifierFlagsCache)}function Zb(e){return Qb(e,!0)}function eE(e){return Qb(e,!0,!0)}function tE(e){return Qb(e,!1)}function nE(e){let t=0;return e.parent&&!bC(e)&&($h(e)&&(rc(e)&&(t|=8388608),ic(e)&&(t|=16777216),sc(e)&&(t|=33554432),cc(e)&&(t|=67108864),dc(e)&&(t|=134217728)),pc(e)&&(t|=65536)),t}function rE(e){return 131071&e|(260046848&e)>>>23}function oE(e){return iE(e)|function(e){return rE(nE(e))}(e)}function iE(e){let t=vk(e)?aE(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=32),t}function aE(e){let t=0;if(e)for(const n of e)t|=sE(n.kind);return t}function sE(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function lE(e){return 57===e||56===e}function cE(e){return lE(e)||54===e}function dE(e){return 76===e||77===e||78===e}function uE(e){return TD(e)&&dE(e.operatorToken.kind)}function pE(e){return lE(e)||61===e}function fE(e){return TD(e)&&pE(e.operatorToken.kind)}function mE(e){return e>=64&&e<=79}function _E(e){const t=hE(e);return t&&!t.isImplements?t.class:void 0}function hE(e){if(ND(e)){if($N(e.parent)&&Md(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(TM(e.parent)){const t=sy(e.parent);if(t&&Md(t))return{class:t,isImplements:!1}}}}function gE(e,t){return TD(e)&&(t?64===e.operatorToken.kind:mE(e.operatorToken.kind))&&iu(e.left)}function yE(e){return gE(e.parent)&&e.parent.left===e}function vE(e){if(gE(e,!0)){const t=e.left.kind;return 210===t||209===t}return!1}function bE(e){return void 0!==_E(e)}function EE(e){return 80===e.kind||xE(e)}function SE(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{e=e.expression}while(80!==e.kind);return e}}function TE(e){return 80===e.kind||110===e.kind||108===e.kind||236===e.kind||211===e.kind&&TE(e.expression)||217===e.kind&&TE(e.expression)}function xE(e){return lD(e)&&nC(e.name)&&EE(e.expression)}function AE(e){if(lD(e)){const t=AE(e.expression);if(void 0!==t)return t+"."+c_(e.name)}else if(cD(e)){const t=AE(e.expression);if(void 0!==t&&Ed(e.argumentExpression))return t+"."+iv(e.argumentExpression)}else{if(nC(e))return Ll(e.escapedText);if(qN(e))return SA(e)}}function IE(e){return Ag(e)&&"prototype"===Ng(e)}function RE(e){return 166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e||236===e.parent.kind&&e.parent.name===e}function CE(e){return!!e.parent&&(lD(e.parent)&&e.parent.name===e||cD(e.parent)&&e.parent.argumentExpression===e)}function DE(e){return gC(e.parent)&&e.parent.right===e||lD(e.parent)&&e.parent.name===e||lM(e.parent)&&e.parent.right===e}function NE(e){return TD(e)&&104===e.operatorToken.kind}function ME(e){return NE(e.parent)&&e===e.parent.right}function LE(e){return 210===e.kind&&0===e.properties.length}function kE(e){return 209===e.kind&&0===e.elements.length}function PE(e){if(function(e){return e&&T(e.declarations)>0&&Gb(e.declarations[0],2048)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function wE(e){return L(hf,(t=>Yi(e,t)))}function OE(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r<n;r++){const n=e.charCodeAt(r);n<128?t.push(n):n<2048?(t.push(n>>6|192),t.push(63&n|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):In.assert(!1,"Unexpected code point")}return t}(e);let r=0;const o=n.length;let i,a,s,l;for(;r<o;)i=n[r]>>2,a=(3&n[r])<<4|n[r+1]>>4,s=(15&n[r+1])<<2|n[r+2]>>6,l=63&n[r+2],r+1>=o?s=l=64:r+2>=o&&(l=64),t+=wp.charAt(i)+wp.charAt(a)+wp.charAt(s)+wp.charAt(l),r+=3;return t}function FE(e,t){return e&&e.base64encode?e.base64encode(t):OE(t)}function WE(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let o=0;for(;o<n&&t.charCodeAt(o)!==wp.charCodeAt(64);){const e=wp.indexOf(t[o]),n=wp.indexOf(t[o+1]),i=wp.indexOf(t[o+2]),a=wp.indexOf(t[o+3]),s=(63&e)<<2|n>>4&3,l=(15&n)<<4|i>>2&15,c=(3&i)<<6|63&a;0===l&&0!==i?r.push(s):0===c&&0!==a?r.push(s,l):r.push(s,l,c),o+=4}return function(e){let t="",n=0;const r=e.length;for(;n<r;){const r=e[n];if(r<128)t+=String.fromCharCode(r),n++;else if(192===(192&r)){let o=63&r;n++;let i=e[n];for(;128===(192&i);)o=o<<6|63&i,n++,i=e[n];t+=String.fromCharCode(o)}else t+=String.fromCharCode(r),n++}return t}(r)}function zE(e,t){const n=ht(t)?t:t.readFile(e);if(!n)return;const r=Mw(e,n);return r.error?void 0:r.config}function BE(e,t){return zE(e,t)||{}}function GE(e){try{return JSON.parse(e)}catch{return}}function jE(e,t){return!t.directoryExists||t.directoryExists(e)}function VE(e){switch(e.newLine){case 0:return Op;case 1:case void 0:return Fp}}function UE(e,t=e){return In.assert(t>=e||-1===t),{pos:e,end:t}}function HE(e,t){return UE(e.pos,t)}function KE(e,t){return UE(t,e.end)}function qE(e){const t=vk(e)?k(e.modifiers,EC):void 0;return t&&!_x(t.end)?KE(e,t.end):e}function JE(e){if(TC(e)||AC(e))return KE(e,e.name.pos);const t=vk(e)?Oe(e.modifiers):void 0;return t&&!_x(t.end)?KE(e,t.end):qE(e)}function XE(e){return e.pos===e.end}function $E(e,t){return UE(e,e+as(t).length)}function YE(e,t){return eS(e,e,t)}function QE(e,t,n){return iS(aS(e,n,!1),aS(t,n,!1),n)}function ZE(e,t,n){return iS(e.end,t.end,n)}function eS(e,t,n){return iS(aS(e,n,!1),t.end,n)}function tS(e,t,n){return iS(e.end,aS(t,n,!1),n)}function nS(e,t,n,r){const o=aS(t,n,r);return ms(n,e.end,o)}function rS(e,t,n){return ms(n,e.end,t.end)}function oS(e,t){return!iS(e.pos,e.end,t)}function iS(e,t,n){return 0===ms(n,e,t)}function aS(e,t,n){return _x(e.pos)?-1:Ts(t.text,e.pos,!1,n)}function sS(e,t,n,r){const o=Ts(n.text,e,!1,r),i=function(e,t=0,n){for(;e-- >t;)if(!hs(n.text.charCodeAt(e)))return e}(o,t,n);return ms(n,i??t,o)}function lS(e,t,n,r){const o=Ts(n.text,e,!1,r);return ms(n,e,Math.min(t,o))}function cS(e){const t=Nl(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function dS(e){return G(e.declarations,uS)}function uS(e){return iN(e)&&void 0!==e.initializer}function pS(e){return e.watch&&He(e,"watch")}function fS(e){e.close()}function mS(e){return 33554432&e.flags?e.links.checkFlags:0}function _S(e,t=!1){if(e.valueDeclaration){const n=Sl(t&&e.declarations&&L(e.declarations,DC)||32768&e.flags&&L(e.declarations,CC)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-8&n}if(6&mS(e)){const t=e.links.checkFlags;return(1024&t?2:256&t?1:4)|(2048&t?256:0)}return 4194304&e.flags?257:0}function hS(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function gS(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function yS(e){return 1===bS(e)}function vS(e){return 0!==bS(e)}function bS(e){const{parent:t}=e;switch(null==t?void 0:t.kind){case 217:case 209:return bS(t);case 225:case 224:const{operator:n}=t;return 46===n||47===n?2:0;case 226:const{left:r,operatorToken:o}=t;return r===e&&mE(o.kind)?64===o.kind?1:2:0;case 211:return t.name!==e?0:bS(t);case 303:{const n=bS(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return In.assertNever(e)}}(n):n}case 304:return e===t.objectAssignmentInitializer?0:bS(t.parent);default:return 0}}function ES(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if("object"===typeof e[n]){if(!ES(e[n],t[n]))return!1}else if("function"!==typeof e[n]&&e[n]!==t[n])return!1;return!0}function SS(e,t){e.forEach(t),e.clear()}function TS(e,t,n){const{onDeleteValue:r,onExistingValue:o}=n;e.forEach(((n,i)=>{var a;(null==t?void 0:t.has(i))?o&&o(n,null==(a=t.get)?void 0:a.call(t,i),i):(e.delete(i),r(n,i))}))}function xS(e,t,n){TS(e,t,n);const{createNewValue:r}=n;null==t||t.forEach(((t,n)=>{e.has(n)||e.set(n,r(n,t))}))}function AS(e){if(32&e.flags){const t=IS(e);return!!t&&Gb(t,64)}return!1}function IS(e){var t;return null==(t=e.declarations)?void 0:t.find(Md)}function RS(e){return 3899393&e.flags?e.objectFlags:0}function CS(e,t){return!!Pa(e,(e=>!!t(e)||void 0))}function DS(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&_N(e.declarations[0])}function NS({moduleSpecifier:e}){return zR(e)?e.text:xm(e)}function MS(e){let t;return oP(e,(e=>{am(e)&&(t=e)}),(e=>{for(let n=e.length-1;n>=0;n--)if(am(e[n])){t=e[n];break}})),t}function LS(e,t,n=!0){return!e.has(t)&&(e.set(t,n),!0)}function kS(e){return Md(e)||cN(e)||WC(e)}function PS(e){return e>=182&&e<=205||133===e||159===e||150===e||163===e||151===e||136===e||154===e||155===e||116===e||157===e||146===e||141===e||233===e||319===e||320===e||321===e||322===e||323===e||324===e||325===e}function wS(e){return 211===e.kind||212===e.kind}function OS(e){return 211===e.kind?e.name:(In.assert(212===e.kind),e.argumentExpression)}function FS(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function WS(e){return 275===e.kind||279===e.kind}function zS(e){for(;wS(e);)e=e.expression;return e}function BS(e,t){if(wS(e.parent)&&CE(e))return function e(n){if(211===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(212===n.kind){if(!nC(n.argumentExpression)&&!np(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}if(wS(n.expression))return e(n.expression);if(nC(n.expression))return t(n.expression);return}(e.parent)}function GS(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function jS(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function VS(e,t){this.flags=t,(In.isDebugging||kr)&&(this.checker=e)}function US(e,t){this.flags=t,In.isDebugging&&(this.checker=e)}function HS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function KS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function qS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function JS(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}function XS(e){zp.push(e),e(Wp)}function $S(e){Object.assign(Wp,e),x(zp,(e=>e(Wp)))}function YS(e,t){return e.replace(/{(\d+)}/g,((e,n)=>""+In.checkDefined(t[+n])))}function QS(e){Bp=e}function ZS(e){!Bp&&e&&(Bp=e())}function eT(e){return Bp&&Bp[e.key]||e.message}function tT(e,t,n,r,o,...i){n+r>t.length&&(r=t.length-n),__(t,n,r);let a=eT(o);return se(i)&&(a=YS(a,i)),{file:void 0,start:n,length:r,messageText:a,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function nT(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"===typeof e.fileName}function rT(e,t){const n=t.fileName||"",r=t.text.length;In.assertEqual(e.fileName,n),In.assertLessThanOrEqual(e.start,r),In.assertLessThanOrEqual(e.start+e.length,r);const o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(const i of e.relatedInformation)nT(i)&&i.fileName===n?(In.assertLessThanOrEqual(i.start,r),In.assertLessThanOrEqual(i.start+i.length,r),o.relatedInformation.push(rT(i,t))):o.relatedInformation.push(i)}return o}function oT(e,t){const n=[];for(const r of e)n.push(rT(r,t));return n}function iT(e,t,n,r,...o){__(e.text,t,n);let i=eT(r);return se(o)&&(i=YS(i,o)),{file:e,start:t,length:n,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function aT(e,...t){let n=eT(e);return se(t)&&(n=YS(n,t)),n}function sT(e,...t){let n=eT(e);return se(t)&&(n=YS(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function lT(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function cT(e,t,...n){let r=eT(t);return se(n)&&(r=YS(r,n)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function dT(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function uT(e){return e.file?e.file.path:void 0}function pT(e,t){return fT(e,t)||function(e,t){if(!e.relatedInformation&&!t.relatedInformation)return 0;if(e.relatedInformation&&t.relatedInformation)return Ft(e.relatedInformation.length,t.relatedInformation.length)||x(e.relatedInformation,((e,n)=>pT(e,t.relatedInformation[n])))||0;return e.relatedInformation?-1:1}(e,t)||0}function fT(e,t){return jt(uT(e),uT(t))||Ft(e.start,t.start)||Ft(e.length,t.length)||Ft(e.code,t.code)||mT(e.messageText,t.messageText)||0}function mT(e,t){if("string"===typeof e&&"string"===typeof t)return jt(e,t);if("string"===typeof e)return-1;if("string"===typeof t)return 1;let n=jt(e.messageText,t.messageText);if(n)return n;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const r=Math.min(e.next.length,t.next.length);for(let o=0;o<r;o++)if(n=mT(e.next[o],t.next[o]),n)return n;return e.next.length<t.next.length?-1:e.next.length>t.next.length?1:0}function _T(e){return 4===e||2===e||1===e||6===e?1:0}function hT(e){if(2&e.transformFlags)return ju(e)||BN(e)?e:oP(e,hT)}function gT(e){return e.isDeclarationFile?void 0:hT(e)}function yT(e){return!(99!==e.impliedNodeFormat&&!Qi(e.fileName,[".cjs",".cts",".mjs",".mts"])||e.isDeclarationFile)||void 0}function vT(e){switch(Hp(e)){case 3:return e=>{e.externalModuleIndicator=Wk(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=Wk(e)};case 2:const t=[Wk];4!==e.jsx&&5!==e.jsx||t.push(gT),t.push(yT);const n=_n(...t);return e=>{e.externalModuleIndicator=n(e)}}}function bT(e){return e>=5&&e<=99}function ET(e){switch(Vp(e)){case 0:case 4:case 3:return!1}return!0}function ST(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function TT(e){return!1===e.allowUnreachableCode}function xT(e){return!1===e.allowUnusedLabels}function AT(e){return e>=3&&e<=99||100===e}function IT(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function RT(e){return!1!==e.useDefineForClassFields&&jp(e)>=9}function CT(e,t){return Of(t,e,wP)}function DT(e,t){return Of(t,e,OP)}function NT(e,t){return Of(t,e,FP)}function MT(e,t){return t.strictFlag?IT(e,t.name):t.allowJsFlag?nf(e):e[t.name]}function LT(e){const t=e.jsx;return 2===t||4===t||5===t}function kT(e,t){const n=null==t?void 0:t.pragmas.get("jsximportsource"),r=mt(n)?n[n.length-1]:n;return 4===e.jsx||5===e.jsx||e.jsxImportSource||r?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function PT(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function wT(e){let t=!1;for(let n=0;n<e.length;n++)if(42===e.charCodeAt(n)){if(t)return!1;t=!0}return!0}function OT(e,t){let n,r,i,a=!1;return{getSymlinkedFiles:()=>i,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,t)=>(i||(i=new Map)).set(e,t),setSymlinkedDirectory:(o,i)=>{let a=ga(o,e,t);Xx(a)||(a=va(a),!1===i||(null==n?void 0:n.has(a))||(r||(r=ct())).add(i.realPath,o),(n||(n=new Map)).set(a,i))},setSymlinksFromResolutions(e,t,n){In.assert(!a),a=!0,e((e=>s(this,e.resolvedModule))),t((e=>s(this,e.resolvedTypeReferenceDirective))),n.forEach((e=>s(this,e.resolvedTypeReferenceDirective)))},hasProcessedResolutions:()=>a};function s(n,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:i,originalPath:a}=r;n.setSymlinkedFile(ga(a,e,t),i);const[s,l]=function(e,t,n,r){const o=sa(ma(e,n)),i=sa(ma(t,n));let a=!1;for(;o.length>=2&&i.length>=2&&!FT(o[o.length-2],r)&&!FT(i[i.length-2],r)&&r(o[o.length-1])===r(i[i.length-1]);)o.pop(),i.pop(),a=!0;return a?[la(o),la(i)]:void 0}(i,a,e,t)||o;s&&l&&n.setSymlinkedDirectory(l,{real:va(s),realPath:va(ga(s,e,t))})}}function FT(e,t){return void 0!==e&&("node_modules"===t(e)||dn(e,"@"))}function WT(e,t,n){const r=pn(e,t,n);return void 0===r?void 0:Vi((o=r).charCodeAt(0))?o.slice(1):void 0;var o}function zT(e){return e.replace(of,BT)}function BT(e){return"\\"+e}function GT(e,t,n){const r=jT(e,t,n);if(!r||!r.length)return;return`^(${r.map((e=>`(${e})`)).join("|")})${"exclude"===n?"($|/)":"$"}`}function jT(e,t,n){if(void 0!==e&&0!==e.length)return J(e,(e=>e&&HT(e,t,n,pf[n])))}function VT(e){return!/[.*?]/.test(e)}function UT(e,t,n){const r=e&&HT(e,t,n,pf[n]);return r&&`^(${r})${"exclude"===n?"($|/)":"$"}`}function HT(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:i}=pf[n]){let a="",s=!1;const l=fa(e,t),c=Fe(l);if("exclude"!==n&&"**"===c)return;l[0]=ya(l[0]),VT(c)&&l.push("**","*");let d=0;for(let u of l){if("**"===u)a+=o;else if("directories"===n&&(a+="(",d++),s&&(a+=Fi),"exclude"!==n){let e="";42===u.charCodeAt(0)?(e+="([^./]"+r+")?",u=u.substr(1)):63===u.charCodeAt(0)&&(e+="[^./]",u=u.substr(1)),e+=u.replace(of,i),e!==u&&(a+=lf),a+=e}else a+=u.replace(of,i);s=!0}for(;d>0;)a+=")?",d--;return a}function KT(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function qT(e,t,n,r,o){e=_a(e);const i=ua(o=_a(o),e);return{includeFilePatterns:U(jT(n,i,"files"),(e=>`^${e}$`)),includeFilePattern:GT(n,i,"files"),includeDirectoryPattern:GT(n,i,"directories"),excludePattern:GT(t,i,"exclude"),basePaths:$T(e,n,r)}}function JT(e,t){return new RegExp(e,t?"":"i")}function XT(e,t,n,r,o,i,a,s,l){e=_a(e),i=_a(i);const c=qT(e,n,r,o,i),d=c.includeFilePatterns&&c.includeFilePatterns.map((e=>JT(e,o))),u=c.includeDirectoryPattern&&JT(c.includeDirectoryPattern,o),p=c.excludePattern&&JT(c.excludePattern,o),f=d?d.map((()=>[])):[[]],m=new Map,_=an(o);for(const g of c.basePaths)h(g,ua(i,g),a);return q(f);function h(e,n,r){const o=_(l(n));if(m.has(o))return;m.set(o,!0);const{files:i,directories:a}=s(e);for(const s of Ce(i,jt)){const r=ua(e,s),o=ua(n,s);if((!t||Qi(r,t))&&(!p||!p.test(o)))if(d){const e=P(d,(e=>e.test(o)));-1!==e&&f[e].push(r)}else f[0].push(r)}if(void 0===r||0!==--r)for(const t of Ce(a,jt)){const o=ua(e,t),i=ua(n,t);u&&!u.test(i)||p&&p.test(i)||h(o,i,r)}}}function $T(e,t,n){const r=[e];if(t){const o=[];for(const n of t){const t=Hi(n)?n:_a(ua(e,n));o.push(YT(t))}o.sort(Vt(!n));for(const t of o)M(r,(r=>!Ra(r,t,e,!n)))&&r.push(t)}return r}function YT(e){const t=z(e,af);return t<0?$i(e)?ya(ra(e)):e:e.substring(0,e.lastIndexOf(Fi,t))}function QT(e,t){return t||ZT(e)||3}function ZT(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function ex(e,t){const n=e&&nf(e);if(!t||0===t.length)return n?vf:ff;const r=n?vf:ff,o=q(r);return[...r,...Z(t,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&!o.includes(e.extension)?[e.extension]:void 0;var t}))]}function tx(e,t){return e&&Yp(e)?t===vf?bf:t===ff?_f:[...t,[".json"]]:t}function nx(e){return se(yf,(t=>Yi(e,t)))}function rx(e){return se(mf,(t=>Yi(e,t)))}function ox({imports:e},t=_n(nx,rx)){return I(e,(({text:e})=>Ji(e)&&!Qi(e,Tf)?t(e):void 0))||!1}function ix(e,t,n,r){const i=Up(n),a=3<=i&&i<=99;return"js"===e||99===t&&a?NW(n)&&2!==s()?3:2:"minimal"===e?0:"index"===e?1:NW(n)?s():ox(r)?2:0;function s(){let e=!1;const i=r.imports.length?r.imports:Jh(r)?function(e){let t,n=0;for(const r of e.statements){if(n>3)break;ag(r)?t=ce(t,r.declarationList.declarations.map((e=>e.initializer))):VD(r)&&tg(r.expression,!0)?t=Ee(t,r.expression):n++}return t||o}(r).map((e=>e.arguments[0])):o;for(const o of i)if(Ji(o.text)){if(a&&1===t&&99===VU(r,o,n))continue;if(Qi(o.text,Tf))continue;if(rx(o.text))return 3;nx(o.text)&&(e=!0)}return e?2:0}}function ax(e,t,n){if(!e)return!1;const r=ex(t,n);for(const o of q(tx(t,r)))if(Yi(e,o))return!0;return!1}function sx(e){const t=e.match(/\//g);return t?t.length:0}function lx(e,t){return Ft(sx(e),sx(t))}function cx(e){for(const t of Af){const n=dx(e,t);if(void 0!==n)return n}return e}function dx(e,t){return Yi(e,t)?ux(e,t):void 0}function ux(e,t){return e.substring(0,e.length-t.length)}function px(e,t){return Ea(e,t,Af,!1)}function fx(e){const t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function mx(e){return Z(qe(e),(e=>fx(e)))}function _x(e){return!(e>=0)}function hx(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||dn(e,".d.")&&Yt(e,".ts")}function gx(e){return hx(e)||".json"===e}function yx(e){const t=bx(e);return void 0!==t?t:In.fail(`File ${e} has unknown extension.`)}function vx(e){return void 0!==bx(e)}function bx(e){return L(Af,(t=>Yi(e,t)))}function Ex(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function Sx(e,t){const n=[];for(const r of e){if(r===t)return t;ht(r)||n.push(r)}return cn(n,(e=>e),t)}function Tx(e,t){const n=e.indexOf(t);return In.assert(-1!==n),e.slice(n)}function xx(e,...t){return t.length?(e.relatedInformation||(e.relatedInformation=[]),In.assert(e.relatedInformation!==o,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t),e):e}function Ax(e,t){In.assert(0!==e.length);let n=t(e[0]),r=n;for(let o=1;o<e.length;o++){const i=t(e[o]);i<n?n=i:i>r&&(r=i)}return{min:n,max:r}}function Ix(e){return{pos:vm(e),end:e.end}}function Rx(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,Ts(e.text,t.end)+1)}}function Cx(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||n.isSourceOfProjectReferenceRedirect(e.fileName)}function Dx(e,t){return e===t||"object"===typeof e&&null!==e&&"object"===typeof t&&null!==t&&Ze(e,t,Dx)}function Nx(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const n=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}const n=e.length-1,r=(n-2)*t,o=new Uint16Array((r>>>4)+(15&r?1:0));for(let l=n-1,c=0;l>=2;l--,c+=t){const t=c>>>4,n=e.charCodeAt(l),r=(n<=57?n-48:10+n-(n<=70?65:97))<<(15&c);o[t]|=r;const i=r>>>16;i&&(o[t+1]|=i)}let i="",a=o.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=a;t>=0;t--){const n=e<<16|o[t],r=n/10|0;o[t]=r,e=n-10*r,r&&!s&&(a=t,s=!0)}i=e+i}return i}function Mx({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function Lx(e){if(Px(e,!1))return kx(e)}function kx(e){const t=e.startsWith("-");return{negative:t,base10Value:Nx(`${t?e.slice(1):e}n`)}}function Px(e,t){if(""===e)return!1;const n=Bs(99,!1);let r=!0;n.setOnError((()=>r=!1)),n.setText(e+"n");let o=n.scan();const i=41===o;i&&(o=n.scan());const a=n.getTokenFlags();return r&&10===o&&n.getTokenEnd()===e.length+1&&!(512&a)&&(!t||e===Mx({negative:i,base10Value:Nx(n.getTokenValue())}))}function wx(e){return!!(33554432&e.flags)||jh(e)||function(e){if(80!==e.kind)return!1;const t=Cl(e.parent,(e=>{switch(e.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}}));return 119===(null==t?void 0:t.token)||264===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;80===e.kind||211===e.kind;)e=e.parent;if(167!==e.kind)return!1;if(Gb(e.parent,64))return!0;const t=e.parent.parent.kind;return 264===t||187===t}(e)||!(Bh(e)||function(e){return nC(e)&&ZN(e.parent)&&e.parent.name===e}(e))}function Ox(e){return PC(e)&&nC(e.typeName)}function Fx(e,t=kt){if(e.length<2)return!0;const n=e[0];for(let r=1,o=e.length;r<o;r++){if(!t(n,e[r]))return!1}return!0}function Wx(e,t){return e.pos=t,e}function zx(e,t){return e.end=t,e}function Bx(e,t,n){return zx(Wx(e,t),n)}function Gx(e,t,n){return Bx(e,t,t+n)}function jx(e,t){return e&&(e.flags=t),e}function Vx(e,t){return e&&t&&(e.parent=t),e}function Ux(e,t){if(e)for(const n of e)Vx(n,t);return e}function Hx(e,t){return e?(iP(e,Uu(e)?n:function(e,t){return n(e,t)||function(e){if(Xu(e))for(const t of e.jsDoc)n(t,e),iP(t,n)}(e)}),e):e;function n(e,n){if(t&&e.parent===n)return"skip";Vx(e,n)}}function Kx(e){return!DD(e)}function qx(e){return aD(e)&&M(e.elements,Kx)}function Jx(e){for(In.assertIsDefined(e.parent);;){const t=e.parent;if(mD(t))e=t;else{if(VD(t)||vD(t)||qD(t)&&(t.initializer===e||t.incrementor===e))return!0;if(FD(t)){if(e!==Fe(t.elements))return!0;e=t}else{if(!TD(t)||28!==t.operatorToken.kind)return!1;if(e===t.left)return!0;e=t}}}}function Xx(e){return se(fi,(t=>e.includes(t)))}function $x(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:t}=e;return 195===t.kind?void 0:t.typeParameters;case 169:return e.parent.parameters;case 204:case 239:return e.parent.templateSpans;case 170:{const{parent:t}=e;return bk(t)?t.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(Ku(e))return EM(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return Wd(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return Gd(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return zu(e)?t.children:void 0;case 286:case 285:return Gd(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:case 312:return t.statements;case 269:return t.clauses;case 263:case 231:return Nd(e)?t.members:void 0;case 266:return tM(e)?t.members:void 0}}function Yx(e){if(!e.typeParameters){if(se(e.parameters,(e=>!Ab(e))))return!0;if(219!==e.kind){const t=Le(e.parameters);if(!t||!vb(t))return!0}}return!1}function Qx(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function Zx(e){return 260===e.kind&&299===e.parent.kind}function eA(e){return 218===e.kind||219===e.kind}function tA(e){return e.replace(/\$/gm,(()=>"\\$"))}function nA(e){return(+e).toString()===e}function rA(e,t,n,r,o){const i=o&&"new"===e;return!i&&zs(e,t)?UA.createIdentifier(e):!r&&!i&&nA(e)&&+e>=0?UA.createNumericLiteral(+e):UA.createStringLiteral(e,!!n)}function oA(e){return!!(262144&e.flags&&e.isThisType)}function iA(e){let t,n=0,r=0,o=0,i=0;var a;(a=t||(t={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,l=0,c=0;for(;l>=0;)switch(s=l,l=e.indexOf("/",s+1),c){case 0:e.indexOf(HO,s)===s&&(n=s,r=l,c=1);break;case 1:case 2:1===c&&"@"===e.charAt(s+1)?c=2:(o=l,c=3);break;case 3:c=e.indexOf(HO,s)===s?1:3}return i=s,c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:o,fileNameIndex:i}:void 0}function aA(e){var t;return 348===e.kind?null==(t=e.typeExpression)?void 0:t.type:e.type}function sA(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function lA(e){return uN(e)||GD(e)||sN(e)||lN(e)||cN(e)||sA(e)||pN(e)&&!Gm(e)&&!Bm(e)}function cA(e){if(!qc(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&323===n.type.kind}function dA(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&Fs(e.charCodeAt(1),t):Fs(n,t)}function uA(e){var t;return 0===(null==(t=zI(e))?void 0:t.kind)}function pA(e){return $h(e)&&(e.type&&323===e.type.kind||ql(e).some((({isBracketed:e,typeExpression:t})=>e||!!t&&323===t.type.kind)))}function fA(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||pA(e);case 355:case 348:return cA(e);default:return!1}}function mA(e){const t=e.kind;return(211===t||212===t)&&kD(e.expression)}function _A(e){return $h(e)&&mD(e)&&Xu(e)&&!!gc(e)}function hA(e){return In.checkDefined(gA(e))}function gA(e){const t=gc(e);return t&&t.typeExpression&&t.typeExpression.type}function yA(e){return nC(e)?e.escapedText:EA(e)}function vA(e){return nC(e)?kl(e):SA(e)}function bA(e){const t=e.kind;return 80===t||295===t}function EA(e){return`${e.namespace.escapedText}:${kl(e.name)}`}function SA(e){return`${kl(e.namespace)}:${kl(e.name)}`}function TA(e){return nC(e)?kl(e):SA(e)}function xA(e){return!!(8576&e.flags)}function AA(e){return 8192&e.flags?e.escapedName:384&e.flags?Ml(""+e.value):In.fail()}function IA(e){return!!e&&(lD(e)||cD(e)||TD(e))}function RA(e){return void 0!==e&&!!HU(e.attributes)}function CA(e,t){return Rf.call(e,"*",t)}function DA(e){return nC(e.name)?e.name.escapedText:Ml(e.name.text)}var NA=b({"src/compiler/utilities.ts"(){JJ(),lp=[],cp="tslib",dp=160,up=1e6,pp=function(){var e="";const t=t=>e+=t;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(e,n)=>t(e),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&hs(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:bt,decreaseIndent:bt,clear:()=>e=""}}(),fp=Ct((()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:o})),AsyncIterator:new Map(Object.entries({es2015:o})),Atomics:new Map(Object.entries({es2017:o})),SharedArrayBuffer:new Map(Object.entries({es2017:o})),AsyncIterable:new Map(Object.entries({es2018:o})),AsyncIterableIterator:new Map(Object.entries({es2018:o})),AsyncGenerator:new Map(Object.entries({es2018:o})),AsyncGeneratorFunction:new Map(Object.entries({es2018:o})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:o,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:o})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:o,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:o,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))})))),mp=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(mp||{}),_p=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,hp=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,gp=/^(\/\/\/\s*<reference\s+lib\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,yp=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,vp=/^\/\/\/\s*<amd-module\s+.*?\/>/,bp=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,Ep=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(Ep||{}),Sp=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Sp||{}),Tp=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(Tp||{}),xp=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(xp||{}),Ap=/\$\{/g,Ip=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Rp=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Cp=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Dp=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),Np=/[^\u0000-\u007F]/g,Mp=/["\u0000-\u001f\u2028\u2029\u0085]/g,Lp=/['\u0000-\u001f\u2028\u2029\u0085]/g,kp=new Map(Object.entries({'"':""","'":"'"})),Pp=[""," "],wp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Op="\r\n",Fp="\n",Wp={getNodeConstructor:()=>HS,getTokenConstructor:()=>KS,getIdentifierConstructor:()=>qS,getPrivateIdentifierConstructor:()=>HS,getSourceFileConstructor:()=>HS,getSymbolConstructor:()=>jS,getTypeConstructor:()=>VS,getSignatureConstructor:()=>US,getSourceMapSourceConstructor:()=>JS},zp=[],jp=(Gp={target:{dependencies:["module"],computeValue:e=>e.target??((100===e.module?9:199===e.module&&99)||1)},module:{dependencies:["target"],computeValue:e=>"number"===typeof e.module?e.module:Gp.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(void 0===t)switch(Gp.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(100===Gp.module.computeValue(e)||199===Gp.module.computeValue(e)?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!(!e.isolatedModules&&!e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(Gp.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:Gp.esModuleInterop.computeValue(e)||4===Gp.module.computeValue(e)||100===Gp.moduleResolution.computeValue(e)},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=Gp.moduleResolution.computeValue(e);if(!AT(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=Gp.moduleResolution.computeValue(e);if(!AT(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>void 0!==e.resolveJsonModule?e.resolveJsonModule:100===Gp.moduleResolution.computeValue(e)},declaration:{dependencies:["composite"],computeValue:e=>!(!e.declaration&&!e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!(!e.preserveConstEnums&&!Gp.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!(!e.incremental&&!e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!(!e.declarationMap||!Gp.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>void 0===e.allowJs?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>void 0===e.useDefineForClassFields?Gp.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>IT(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>IT(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>IT(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>IT(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>IT(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>IT(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>IT(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>IT(e,"useUnknownInCatchVariables")}}).target.computeValue,Vp=Gp.module.computeValue,Up=Gp.moduleResolution.computeValue,Hp=Gp.moduleDetection.computeValue,Kp=Gp.isolatedModules.computeValue,qp=Gp.esModuleInterop.computeValue,Jp=Gp.allowSyntheticDefaultImports.computeValue,Xp=Gp.resolvePackageJsonExports.computeValue,$p=Gp.resolvePackageJsonImports.computeValue,Yp=Gp.resolveJsonModule.computeValue,Qp=Gp.declaration.computeValue,Zp=Gp.preserveConstEnums.computeValue,ef=Gp.incremental.computeValue,tf=Gp.declarationMap.computeValue,nf=Gp.allowJs.computeValue,rf=Gp.useDefineForClassFields.computeValue,of=/[^\w\s/]/g,af=[42,63],lf=`(?!(${(sf=["node_modules","bower_components","jspm_packages"]).join("|")})(/|$))`,pf={files:cf={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${lf}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>KT(e,cf.singleAsteriskRegexFragment)},directories:df={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${lf}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>KT(e,df.singleAsteriskRegexFragment)},exclude:uf={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>KT(e,uf.singleAsteriskRegexFragment)}},mf=q(ff=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]]),_f=[...ff,[".json"]],hf=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],yf=q(gf=[[".js",".jsx"],[".mjs"],[".cjs"]]),vf=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],bf=[...vf,[".json"]],Ef=[".d.ts",".d.cts",".d.mts"],Sf=[".ts",".cts",".mts",".tsx"],Tf=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],xf=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(xf||{}),Af=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],If={files:o,directories:o},Rf=String.prototype.replace}});function MA(){let e,t,n,r,o;return{createBaseSourceFileNode:function(e){return new(o||(o=Wp.getSourceFileConstructor()))(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n||(n=Wp.getIdentifierConstructor()))(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(r||(r=Wp.getPrivateIdentifierConstructor()))(e,-1,-1)},createBaseTokenNode:function(e){return new(t||(t=Wp.getTokenConstructor()))(e,-1,-1)},createBaseNode:function(t){return new(e||(e=Wp.getNodeConstructor()))(t,-1,-1)}}}var LA,kA=b({"src/compiler/factory/baseNodeFactory.ts"(){JJ()}});function PA(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(e){t||(t=new Map);let n=t.get(e);n||(n=t=>i(e,t),t.set(e,n));return n},getParenthesizeRightSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);t||(t=t=>a(e,void 0,t),n.set(e,t));return t},parenthesizeLeftSideOfBinary:i,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(t){return gL(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=Cv(227,58),r=Gc(t);if(1!==Ft(Iv(r),n))return e.createParenthesizedExpression(t);return t},parenthesizeBranchOfConditionalExpression:function(t){return gL(Gc(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=Gc(t);let r=gL(n);if(!r)switch(GS(n,!1).kind){case 231:case 218:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=GS(t,!0);switch(n.kind){case 213:return e.createParenthesizedExpression(t);case 214:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return iu(t)?t:yk(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return su(t)?t:yk(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=K(t,l);return yk(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:l,parenthesizeExpressionOfExpressionStatement:function(t){const n=Gc(t);if(dD(n)){const r=n.expression,o=Gc(r).kind;if(218===o||219===o){const o=e.updateCallExpression(n,yk(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,o,8)}}const r=GS(n,!1).kind;if(210===r||218===r)return yk(e.createParenthesizedExpression(t),t);return t},parenthesizeConciseBodyOfArrowFunction:function(t){if(!BD(t)&&(gL(t)||210===GS(t,!1).kind))return yk(e.createParenthesizedExpression(t),t);return t},parenthesizeCheckTypeOfConditionalType:c,parenthesizeExtendsTypeOfConditionalType:function(t){if(194===t.kind)return e.createParenthesizedType(t);return t},parenthesizeConstituentTypesOfUnionType:function(t){return e.createNodeArray(K(t,d))},parenthesizeConstituentTypeOfUnionType:d,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.createNodeArray(K(t,u))},parenthesizeConstituentTypeOfIntersectionType:u,parenthesizeOperandOfTypeOperator:p,parenthesizeOperandOfReadonlyTypeOperator:function(t){if(198===t.kind)return e.createParenthesizedType(t);return p(t)},parenthesizeNonArrayTypeOfPostfixType:f,parenthesizeElementTypesOfTupleType:function(t){return e.createNodeArray(K(t,m))},parenthesizeElementTypeOfTupleType:m,parenthesizeTypeOfOptionalType:function(t){return _(t)?e.createParenthesizedType(t):f(t)},parenthesizeTypeArguments:function(t){if(se(t))return e.createNodeArray(K(t,g))},parenthesizeLeadingTypeArgument:h};function r(e){if(Zc((e=Gc(e)).kind))return e.kind;if(226===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=Zc(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function o(t,n,o,i){return 217===Gc(n).kind?n:function(e,t,n,o){const i=Cv(226,e),a=Av(226,e),s=Gc(t);if(!n&&219===t.kind&&i>3)return!0;switch(Ft(Iv(s),i)){case-1:return!(!n&&1===a&&229===t.kind);case 1:return!1;case 0:if(n)return 1===a;if(TD(s)&&s.operatorToken.kind===e){if(function(e){return 42===e||52===e||51===e||53===e||28===e}(e))return!1;if(40===e){const e=o?r(o):0;if(Zc(e)&&e===r(s))return!1}}return 0===xv(s)}}(t,n,o,i)?e.createParenthesizedExpression(n):n}function i(e,t){return o(e,t,!0)}function a(e,t,n){return o(e,n,!1,t)}function s(t,n){const r=Gc(t);return!iu(r)||214===r.kind&&!r.arguments||!n&&wc(r)?yk(e.createParenthesizedExpression(t),t):t}function l(t){return Iv(Gc(t))>Cv(226,28)?t:yk(e.createParenthesizedExpression(t),t)}function c(t){switch(t.kind){case 184:case 185:case 194:return e.createParenthesizedType(t)}return t}function d(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return c(t)}function u(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return d(t)}function p(t){return 193===t.kind?e.createParenthesizedType(t):u(t)}function f(t){switch(t.kind){case 195:case 198:case 186:return e.createParenthesizedType(t)}return p(t)}function m(t){return _(t)?e.createParenthesizedType(t):t}function _(e){return mM(e)?e.postfix:GC(e)||wC(e)||OC(e)||$C(e)?_(e.type):KC(e)?_(e.falseType):UC(e)||HC(e)?_(Fe(e.types)):!!qC(e)&&(!!e.typeParameter.constraint&&_(e.typeParameter.constraint))}function h(t){return jd(t)&&t.typeParameters?e.createParenthesizedType(t):t}function g(e,t){return 0===t?h(e):e}}var wA,OA=b({"src/compiler/factory/parenthesizerRules.ts"(){JJ(),LA={getParenthesizeLeftSideOfBinaryForOperator:e=>xt,getParenthesizeRightSideOfBinaryForOperator:e=>xt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:xt,parenthesizeConditionOfConditionalExpression:xt,parenthesizeBranchOfConditionalExpression:xt,parenthesizeExpressionOfExportDefault:xt,parenthesizeExpressionOfNew:e=>vt(e,iu),parenthesizeLeftSideOfAccess:e=>vt(e,iu),parenthesizeOperandOfPostfixUnary:e=>vt(e,iu),parenthesizeOperandOfPrefixUnary:e=>vt(e,su),parenthesizeExpressionsOfCommaDelimitedList:e=>vt(e,Qc),parenthesizeExpressionForDisallowedComma:xt,parenthesizeExpressionOfExpressionStatement:xt,parenthesizeConciseBodyOfArrowFunction:xt,parenthesizeCheckTypeOfConditionalType:xt,parenthesizeExtendsTypeOfConditionalType:xt,parenthesizeConstituentTypesOfUnionType:e=>vt(e,Qc),parenthesizeConstituentTypeOfUnionType:xt,parenthesizeConstituentTypesOfIntersectionType:e=>vt(e,Qc),parenthesizeConstituentTypeOfIntersectionType:xt,parenthesizeOperandOfTypeOperator:xt,parenthesizeOperandOfReadonlyTypeOperator:xt,parenthesizeNonArrayTypeOfPostfixType:xt,parenthesizeElementTypesOfTupleType:e=>vt(e,Qc),parenthesizeElementTypeOfTupleType:xt,parenthesizeTypeOfOptionalType:xt,parenthesizeTypeArguments:e=>e&&vt(e,Qc),parenthesizeLeadingTypeArgument:xt}}});function FA(e){return{convertToFunctionBlock:function(t,n){if(BD(t))return t;const r=e.createReturnStatement(t);yk(r,t);const o=e.createBlock([r],n);return yk(o,t),o},convertToFunctionExpression:function(t){var n;if(!t.body)return In.fail("Cannot convert a FunctionDeclaration without a body");const r=e.createFunctionExpression(null==(n=Hl(t))?void 0:n.filter((e=>!oC(e)&&!iC(e))),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);lI(r,t),yk(r,t),EI(t)&&SI(r,!0);return r},convertToClassExpression:function(t){var n;const r=e.createClassExpression(null==(n=t.modifiers)?void 0:n.filter((e=>!oC(e)&&!iC(e))),t.name,t.typeParameters,t.heritageClauses,t.members);lI(r,t),yk(r,t),EI(t)&&SI(r,!0);return r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:o,convertToArrayAssignmentPattern:i,convertToAssignmentElementTarget:a};function t(t){if(iD(t)){if(t.dotDotDotToken)return In.assertNode(t.name,nC),lI(yk(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?lI(yk(e.createAssignment(n,t.initializer),t),t):n}return vt(t,uu)}function n(t){if(iD(t)){if(t.dotDotDotToken)return In.assertNode(t.name,nC),lI(yk(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return lI(yk(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return In.assertNode(t.name,nC),lI(yk(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return vt(t,Bd)}function r(e){switch(e.kind){case 207:case 209:return i(e);case 206:case 210:return o(e)}}function o(t){return rD(t)?lI(yk(e.createObjectLiteralExpression(U(t.elements,n)),t),t):vt(t,sD)}function i(n){return oD(n)?lI(yk(e.createArrayLiteralExpression(U(n.elements,t)),n),n):vt(n,aD)}function a(e){return Vd(e)?r(e):vt(e,uu)}}var WA,zA,BA,GA,jA,VA,UA,HA,KA=b({"src/compiler/factory/nodeConverters.ts"(){JJ(),wA={convertToFunctionBlock:Rt,convertToFunctionExpression:Rt,convertToClassExpression:Rt,convertToArrayAssignmentElement:Rt,convertToObjectAssignmentElement:Rt,convertToAssignmentPattern:Rt,convertToObjectAssignmentPattern:Rt,convertToArrayAssignmentPattern:Rt,convertToAssignmentElementTarget:Rt}}});function qA(e){BA.push(e)}function JA(e,t){const n=8&e?xt:lI,r=Ct((()=>1&e?LA:PA(y))),i=Ct((()=>2&e?wA:FA(y))),a=Dt((e=>(t,n)=>Pt(t,e,n))),s=Dt((e=>t=>Lt(e,t))),l=Dt((e=>t=>kt(t,e))),c=Dt((e=>()=>function(e){return b(e)}(e))),d=Dt((e=>t=>ur(e,t))),u=Dt((e=>(t,n)=>function(e,t,n){return t.type!==n?ko(ur(e,n),t):t}(e,t,n))),p=Dt((e=>(t,n)=>dr(e,t,n))),f=Dt((e=>(t,n)=>function(e,t,n){return t.type!==n?ko(dr(e,n,t.postfix),t):t}(e,t,n))),m=Dt((e=>(t,n)=>kr(e,t,n))),_=Dt((e=>(t,n,r)=>function(e,t,n=hr(t),r){return t.tagName!==n||t.comment!==r?ko(kr(e,n,r),t):t}(e,t,n,r))),h=Dt((e=>(t,n,r)=>Pr(e,t,n,r))),g=Dt((e=>(t,n,r,o)=>function(e,t,n=hr(t),r,o){return t.tagName!==n||t.typeExpression!==r||t.comment!==o?ko(Pr(e,n,r,o),t):t}(e,t,n,r,o))),y={get parenthesizer(){return r()},get converters(){return i()},baseFactory:t,flags:e,createNodeArray:v,createNumericLiteral:T,createBigIntLiteral:A,createStringLiteral:R,createStringLiteralFromNode:function(e){const t=I(sv(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:C,createLiteralLikeNode:function(e,t){switch(e){case 9:return T(t,0);case 10:return A(t);case 11:return R(t,void 0);case 12:return Ur(t,!1);case 13:return Ur(t,!0);case 14:return C(t);case 15:return Gt(e,t,void 0,0)}},createIdentifier:L,createTempVariable:k,createLoopVariable:function(e){let t=2;e&&(t|=8);return N("",t,void 0,void 0)},createUniqueName:function(e,t=0,n,r){return In.assert(!(7&t),"Argument out of range: flags"),In.assert(32!==(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),N(e,3|t,n,r)},getGeneratedNameForNode:P,createPrivateIdentifier:function(e){dn(e,"#")||In.fail("First character of private identifier must be #: "+e);return w(Ml(e))},createUniquePrivateName:function(e,t,n){e&&!dn(e,"#")&&In.fail("First character of private identifier must be #: "+e);return O(e??"",8|(e?3:1),t,n)},getGeneratedPrivateNameForNode:function(e,t,n){const r=Nc(e)?ck(!0,t,e,n,kl):`#generated@${Hz(e)}`,o=O(r,4|(t||n?16:0),t,n);return o.original=e,o},createToken:W,createSuper:function(){return W(108)},createThis:z,createNull:B,createTrue:G,createFalse:j,createModifier:V,createModifiersFromModifierFlags:U,createQualifiedName:H,updateQualifiedName:function(e,t,n){return e.left!==t||e.right!==n?ko(H(t,n),e):e},createComputedPropertyName:K,updateComputedPropertyName:function(e,t){return e.expression!==t?ko(K(t),e):e},createTypeParameterDeclaration:q,updateTypeParameterDeclaration:J,createParameterDeclaration:X,updateParameterDeclaration:$,createDecorator:Q,updateDecorator:function(e,t){return e.expression!==t?ko(Q(t),e):e},createPropertySignature:Z,updatePropertySignature:ee,createPropertyDeclaration:te,updatePropertyDeclaration:ne,createMethodSignature:re,updateMethodSignature:oe,createMethodDeclaration:ie,updateMethodDeclaration:ae,createConstructorDeclaration:ce,updateConstructorDeclaration:de,createGetAccessorDeclaration:ue,updateGetAccessorDeclaration:pe,createSetAccessorDeclaration:fe,updateSetAccessorDeclaration:me,createCallSignature:_e,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?S(_e(t,n,r),e):e},createConstructSignature:he,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?S(he(t,n,r),e):e},createIndexSignature:ge,updateIndexSignature:ye,createClassStaticBlockDeclaration:le,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?function(e,t){e!==t&&(e.modifiers=t.modifiers);return ko(e,t)}(le(t),e):e},createTemplateLiteralTypeSpan:ve,updateTemplateLiteralTypeSpan:function(e,t,n){return e.type!==t||e.literal!==n?ko(ve(t,n),e):e},createKeywordTypeNode:function(e){return W(e)},createTypePredicateNode:be,updateTypePredicateNode:function(e,t,n,r){return e.assertsModifier!==t||e.parameterName!==n||e.type!==r?ko(be(t,n,r),e):e},createTypeReferenceNode:Se,updateTypeReferenceNode:function(e,t,n){return e.typeName!==t||e.typeArguments!==n?ko(Se(t,n),e):e},createFunctionTypeNode:Te,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?function(e,t){e!==t&&(e.modifiers=t.modifiers);return S(e,t)}(Te(t,n,r),e):e},createConstructorTypeNode:xe,updateConstructorTypeNode:function(...e){return 5===e.length?Ie(...e):4===e.length?function(e,t,n,r){return Ie(e,e.modifiers,t,n,r)}(...e):In.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Re,updateTypeQueryNode:function(e,t,n){return e.exprName!==t||e.typeArguments!==n?ko(Re(t,n),e):e},createTypeLiteralNode:Ce,updateTypeLiteralNode:function(e,t){return e.members!==t?ko(Ce(t),e):e},createArrayTypeNode:De,updateArrayTypeNode:function(e,t){return e.elementType!==t?ko(De(t),e):e},createTupleTypeNode:Ne,updateTupleTypeNode:function(e,t){return e.elements!==t?ko(Ne(t),e):e},createNamedTupleMember:Me,updateNamedTupleMember:function(e,t,n,r,o){return e.dotDotDotToken!==t||e.name!==n||e.questionToken!==r||e.type!==o?ko(Me(t,n,r,o),e):e},createOptionalTypeNode:Le,updateOptionalTypeNode:function(e,t){return e.type!==t?ko(Le(t),e):e},createRestTypeNode:ke,updateRestTypeNode:function(e,t){return e.type!==t?ko(ke(t),e):e},createUnionTypeNode:function(e){return Pe(192,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return we(e,t,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Pe(193,e,r().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return we(e,t,r().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Fe,updateConditionalTypeNode:function(e,t,n,r,o){return e.checkType!==t||e.extendsType!==n||e.trueType!==r||e.falseType!==o?ko(Fe(t,n,r,o),e):e},createInferTypeNode:ze,updateInferTypeNode:function(e,t){return e.typeParameter!==t?ko(ze(t),e):e},createImportTypeNode:Ge,updateImportTypeNode:function(e,t,n,r,o,i=e.isTypeOf){return e.argument!==t||e.attributes!==n||e.qualifier!==r||e.typeArguments!==o||e.isTypeOf!==i?ko(Ge(t,n,r,o,i),e):e},createParenthesizedType:je,updateParenthesizedType:function(e,t){return e.type!==t?ko(je(t),e):e},createThisTypeNode:function(){const e=b(197);return e.transformFlags=1,e},createTypeOperatorNode:Ve,updateTypeOperatorNode:function(e,t){return e.type!==t?ko(Ve(e.operator,t),e):e},createIndexedAccessTypeNode:Ke,updateIndexedAccessTypeNode:function(e,t,n){return e.objectType!==t||e.indexType!==n?ko(Ke(t,n),e):e},createMappedTypeNode:qe,updateMappedTypeNode:function(e,t,n,r,o,i,a){return e.readonlyToken!==t||e.typeParameter!==n||e.nameType!==r||e.questionToken!==o||e.type!==i||e.members!==a?ko(qe(t,n,r,o,i,a),e):e},createLiteralTypeNode:Je,updateLiteralTypeNode:function(e,t){return e.literal!==t?ko(Je(t),e):e},createTemplateLiteralType:Be,updateTemplateLiteralType:function(e,t,n){return e.head!==t||e.templateSpans!==n?ko(Be(t,n),e):e},createObjectBindingPattern:Xe,updateObjectBindingPattern:function(e,t){return e.elements!==t?ko(Xe(t),e):e},createArrayBindingPattern:$e,updateArrayBindingPattern:function(e,t){return e.elements!==t?ko($e(t),e):e},createBindingElement:Ye,updateBindingElement:function(e,t,n,r,o){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==r||e.initializer!==o?ko(Ye(t,n,r,o),e):e},createArrayLiteralExpression:Qe,updateArrayLiteralExpression:function(e,t){return e.elements!==t?ko(Qe(t,e.multiLine),e):e},createObjectLiteralExpression:Ze,updateObjectLiteralExpression:function(e,t){return e.properties!==t?ko(Ze(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>fI(tt(e,t),262144):tt,updatePropertyAccessExpression:function(e,t,n){if(Lc(e))return rt(e,t,e.questionDotToken,vt(n,nC));return e.expression!==t||e.name!==n?ko(tt(t,n),e):e},createPropertyAccessChain:4&e?(e,t,n)=>fI(nt(e,t,n),262144):nt,updatePropertyAccessChain:rt,createElementAccessExpression:it,updateElementAccessExpression:function(e,t,n){if(kc(e))return st(e,t,e.questionDotToken,n);return e.expression!==t||e.argumentExpression!==n?ko(it(t,n),e):e},createElementAccessChain:at,updateElementAccessChain:st,createCallExpression:ct,updateCallExpression:function(e,t,n,r){if(Pc(e))return ut(e,t,e.questionDotToken,n,r);return e.expression!==t||e.typeArguments!==n||e.arguments!==r?ko(ct(t,n,r),e):e},createCallChain:dt,updateCallChain:ut,createNewExpression:pt,updateNewExpression:function(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?ko(pt(t,n,r),e):e},createTaggedTemplateExpression:ft,updateTaggedTemplateExpression:function(e,t,n,r){return e.tag!==t||e.typeArguments!==n||e.template!==r?ko(ft(t,n,r),e):e},createTypeAssertion:_t,updateTypeAssertion:ht,createParenthesizedExpression:gt,updateParenthesizedExpression:yt,createFunctionExpression:bt,updateFunctionExpression:Et,createArrowFunction:Tt,updateArrowFunction:At,createDeleteExpression:It,updateDeleteExpression:function(e,t){return e.expression!==t?ko(It(t),e):e},createTypeOfExpression:Rt,updateTypeOfExpression:function(e,t){return e.expression!==t?ko(Rt(t),e):e},createVoidExpression:Nt,updateVoidExpression:function(e,t){return e.expression!==t?ko(Nt(t),e):e},createAwaitExpression:Mt,updateAwaitExpression:function(e,t){return e.expression!==t?ko(Mt(t),e):e},createPrefixUnaryExpression:Lt,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?ko(Lt(e.operator,t),e):e},createPostfixUnaryExpression:kt,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?ko(kt(t,e.operator),e):e},createBinaryExpression:Pt,updateBinaryExpression:function(e,t,n,r){return e.left!==t||e.operatorToken!==n||e.right!==r?ko(Pt(t,n,r),e):e},createConditionalExpression:Ot,updateConditionalExpression:function(e,t,n,r,o,i){return e.condition!==t||e.questionToken!==n||e.whenTrue!==r||e.colonToken!==o||e.whenFalse!==i?ko(Ot(t,n,r,o,i),e):e},createTemplateExpression:Ft,updateTemplateExpression:function(e,t,n){return e.head!==t||e.templateSpans!==n?ko(Ft(t,n),e):e},createTemplateHead:function(e,t,n){return Gt(16,e=Wt(16,e,t,n),t,n)},createTemplateMiddle:function(e,t,n){return Gt(17,e=Wt(16,e,t,n),t,n)},createTemplateTail:function(e,t,n){return Gt(18,e=Wt(16,e,t,n),t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Bt(15,e=Wt(16,e,t,n),t,n)},createTemplateLiteralLikeNode:Gt,createYieldExpression:jt,updateYieldExpression:function(e,t,n){return e.expression!==n||e.asteriskToken!==t?ko(jt(t,n),e):e},createSpreadElement:Vt,updateSpreadElement:function(e,t){return e.expression!==t?ko(Vt(t),e):e},createClassExpression:Ut,updateClassExpression:Ht,createOmittedExpression:function(){return b(232)},createExpressionWithTypeArguments:Kt,updateExpressionWithTypeArguments:function(e,t,n){return e.expression!==t||e.typeArguments!==n?ko(Kt(t,n),e):e},createAsExpression:qt,updateAsExpression:Jt,createNonNullExpression:Xt,updateNonNullExpression:$t,createSatisfiesExpression:Yt,updateSatisfiesExpression:Qt,createNonNullChain:Zt,updateNonNullChain:en,createMetaProperty:tn,updateMetaProperty:function(e,t){return e.name!==t?ko(tn(e.keywordToken,t),e):e},createTemplateSpan:nn,updateTemplateSpan:function(e,t,n){return e.expression!==t||e.literal!==n?ko(nn(t,n),e):e},createSemicolonClassElement:function(){const e=b(240);return e.transformFlags|=1024,e},createBlock:rn,updateBlock:function(e,t){return e.statements!==t?ko(rn(t,e.multiLine),e):e},createVariableStatement:on,updateVariableStatement:an,createEmptyStatement:sn,createExpressionStatement:ln,updateExpressionStatement:function(e,t){return e.expression!==t?ko(ln(t),e):e},createIfStatement:cn,updateIfStatement:function(e,t,n,r){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==r?ko(cn(t,n,r),e):e},createDoStatement:un,updateDoStatement:function(e,t,n){return e.statement!==t||e.expression!==n?ko(un(t,n),e):e},createWhileStatement:pn,updateWhileStatement:function(e,t,n){return e.expression!==t||e.statement!==n?ko(pn(t,n),e):e},createForStatement:fn,updateForStatement:function(e,t,n,r,o){return e.initializer!==t||e.condition!==n||e.incrementor!==r||e.statement!==o?ko(fn(t,n,r,o),e):e},createForInStatement:mn,updateForInStatement:function(e,t,n,r){return e.initializer!==t||e.expression!==n||e.statement!==r?ko(mn(t,n,r),e):e},createForOfStatement:_n,updateForOfStatement:function(e,t,n,r,o){return e.awaitModifier!==t||e.initializer!==n||e.expression!==r||e.statement!==o?ko(_n(t,n,r,o),e):e},createContinueStatement:hn,updateContinueStatement:function(e,t){return e.label!==t?ko(hn(t),e):e},createBreakStatement:gn,updateBreakStatement:function(e,t){return e.label!==t?ko(gn(t),e):e},createReturnStatement:yn,updateReturnStatement:function(e,t){return e.expression!==t?ko(yn(t),e):e},createWithStatement:vn,updateWithStatement:function(e,t,n){return e.expression!==t||e.statement!==n?ko(vn(t,n),e):e},createSwitchStatement:bn,updateSwitchStatement:function(e,t,n){return e.expression!==t||e.caseBlock!==n?ko(bn(t,n),e):e},createLabeledStatement:En,updateLabeledStatement:Sn,createThrowStatement:Tn,updateThrowStatement:function(e,t){return e.expression!==t?ko(Tn(t),e):e},createTryStatement:xn,updateTryStatement:function(e,t,n,r){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==r?ko(xn(t,n,r),e):e},createDebuggerStatement:function(){const e=b(259);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:An,updateVariableDeclaration:function(e,t,n,r,o){return e.name!==t||e.type!==r||e.exclamationToken!==n||e.initializer!==o?ko(An(t,n,r,o),e):e},createVariableDeclarationList:Rn,updateVariableDeclarationList:function(e,t){return e.declarations!==t?ko(Rn(t,e.flags),e):e},createFunctionDeclaration:Cn,updateFunctionDeclaration:Dn,createClassDeclaration:Nn,updateClassDeclaration:Mn,createInterfaceDeclaration:Ln,updateInterfaceDeclaration:kn,createTypeAliasDeclaration:Pn,updateTypeAliasDeclaration:wn,createEnumDeclaration:On,updateEnumDeclaration:Fn,createModuleDeclaration:Wn,updateModuleDeclaration:zn,createModuleBlock:Bn,updateModuleBlock:function(e,t){return e.statements!==t?ko(Bn(t),e):e},createCaseBlock:Gn,updateCaseBlock:function(e,t){return e.clauses!==t?ko(Gn(t),e):e},createNamespaceExportDeclaration:jn,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?function(e,t){e!==t&&(e.modifiers=t.modifiers);return ko(e,t)}(jn(t),e):e},createImportEqualsDeclaration:Vn,updateImportEqualsDeclaration:Un,createImportDeclaration:Hn,updateImportDeclaration:Kn,createImportClause:qn,updateImportClause:function(e,t,n,r){return e.isTypeOnly!==t||e.name!==n||e.namedBindings!==r?ko(qn(t,n,r),e):e},createAssertClause:Jn,updateAssertClause:function(e,t,n){return e.elements!==t||e.multiLine!==n?ko(Jn(t,n),e):e},createAssertEntry:Xn,updateAssertEntry:function(e,t,n){return e.name!==t||e.value!==n?ko(Xn(t,n),e):e},createImportTypeAssertionContainer:$n,updateImportTypeAssertionContainer:function(e,t,n){return e.assertClause!==t||e.multiLine!==n?ko($n(t,n),e):e},createImportAttributes:Yn,updateImportAttributes:function(e,t,n){return e.elements!==t||e.multiLine!==n?ko(Yn(t,n,e.token),e):e},createImportAttribute:Qn,updateImportAttribute:function(e,t,n){return e.name!==t||e.value!==n?ko(Qn(t,n),e):e},createNamespaceImport:Zn,updateNamespaceImport:function(e,t){return e.name!==t?ko(Zn(t),e):e},createNamespaceExport:er,updateNamespaceExport:function(e,t){return e.name!==t?ko(er(t),e):e},createNamedImports:tr,updateNamedImports:function(e,t){return e.elements!==t?ko(tr(t),e):e},createImportSpecifier:nr,updateImportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?ko(nr(t,n,r),e):e},createExportAssignment:rr,updateExportAssignment:or,createExportDeclaration:ir,updateExportDeclaration:ar,createNamedExports:sr,updateNamedExports:function(e,t){return e.elements!==t?ko(sr(t),e):e},createExportSpecifier:lr,updateExportSpecifier:function(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?ko(lr(t,n,r),e):e},createMissingDeclaration:function(){const e=E(282);return e.jsDoc=void 0,e},createExternalModuleReference:cr,updateExternalModuleReference:function(e,t){return e.expression!==t?ko(cr(t),e):e},get createJSDocAllType(){return c(319)},get createJSDocUnknownType(){return c(320)},get createJSDocNonNullableType(){return p(322)},get updateJSDocNonNullableType(){return f(322)},get createJSDocNullableType(){return p(321)},get updateJSDocNullableType(){return f(321)},get createJSDocOptionalType(){return d(323)},get updateJSDocOptionalType(){return u(323)},get createJSDocVariadicType(){return d(325)},get updateJSDocVariadicType(){return u(325)},get createJSDocNamepathType(){return d(326)},get updateJSDocNamepathType(){return u(326)},createJSDocFunctionType:pr,updateJSDocFunctionType:function(e,t,n){return e.parameters!==t||e.type!==n?ko(pr(t,n),e):e},createJSDocTypeLiteral:fr,updateJSDocTypeLiteral:function(e,t,n){return e.jsDocPropertyTags!==t||e.isArrayType!==n?ko(fr(t,n),e):e},createJSDocTypeExpression:mr,updateJSDocTypeExpression:function(e,t){return e.type!==t?ko(mr(t),e):e},createJSDocSignature:_r,updateJSDocSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?ko(_r(t,n,r),e):e},createJSDocTemplateTag:vr,updateJSDocTemplateTag:function(e,t=hr(e),n,r,o){return e.tagName!==t||e.constraint!==n||e.typeParameters!==r||e.comment!==o?ko(vr(t,n,r,o),e):e},createJSDocTypedefTag:br,updateJSDocTypedefTag:function(e,t=hr(e),n,r,o){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==o?ko(br(t,n,r,o),e):e},createJSDocParameterTag:Er,updateJSDocParameterTag:function(e,t=hr(e),n,r,o,i,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==o||e.isNameFirst!==i||e.comment!==a?ko(Er(t,n,r,o,i,a),e):e},createJSDocPropertyTag:Sr,updateJSDocPropertyTag:function(e,t=hr(e),n,r,o,i,a){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==o||e.isNameFirst!==i||e.comment!==a?ko(Sr(t,n,r,o,i,a),e):e},createJSDocCallbackTag:Tr,updateJSDocCallbackTag:function(e,t=hr(e),n,r,o){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==o?ko(Tr(t,n,r,o),e):e},createJSDocOverloadTag:xr,updateJSDocOverloadTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?ko(xr(t,n,r),e):e},createJSDocAugmentsTag:Ar,updateJSDocAugmentsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?ko(Ar(t,n,r),e):e},createJSDocImplementsTag:Ir,updateJSDocImplementsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?ko(Ir(t,n,r),e):e},createJSDocSeeTag:Rr,updateJSDocSeeTag:function(e,t,n,r){return e.tagName!==t||e.name!==n||e.comment!==r?ko(Rr(t,n,r),e):e},createJSDocNameReference:Cr,updateJSDocNameReference:function(e,t){return e.name!==t?ko(Cr(t),e):e},createJSDocMemberName:Dr,updateJSDocMemberName:function(e,t,n){return e.left!==t||e.right!==n?ko(Dr(t,n),e):e},createJSDocLink:Nr,updateJSDocLink:function(e,t,n){return e.name!==t?ko(Nr(t,n),e):e},createJSDocLinkCode:Mr,updateJSDocLinkCode:function(e,t,n){return e.name!==t?ko(Mr(t,n),e):e},createJSDocLinkPlain:Lr,updateJSDocLinkPlain:function(e,t,n){return e.name!==t?ko(Lr(t,n),e):e},get createJSDocTypeTag(){return h(351)},get updateJSDocTypeTag(){return g(351)},get createJSDocReturnTag(){return h(349)},get updateJSDocReturnTag(){return g(349)},get createJSDocThisTag(){return h(350)},get updateJSDocThisTag(){return g(350)},get createJSDocAuthorTag(){return m(337)},get updateJSDocAuthorTag(){return _(337)},get createJSDocClassTag(){return m(339)},get updateJSDocClassTag(){return _(339)},get createJSDocPublicTag(){return m(340)},get updateJSDocPublicTag(){return _(340)},get createJSDocPrivateTag(){return m(341)},get updateJSDocPrivateTag(){return _(341)},get createJSDocProtectedTag(){return m(342)},get updateJSDocProtectedTag(){return _(342)},get createJSDocReadonlyTag(){return m(343)},get updateJSDocReadonlyTag(){return _(343)},get createJSDocOverrideTag(){return m(344)},get updateJSDocOverrideTag(){return _(344)},get createJSDocDeprecatedTag(){return m(338)},get updateJSDocDeprecatedTag(){return _(338)},get createJSDocThrowsTag(){return h(356)},get updateJSDocThrowsTag(){return g(356)},get createJSDocSatisfiesTag(){return h(357)},get updateJSDocSatisfiesTag(){return g(357)},createJSDocEnumTag:Or,updateJSDocEnumTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?ko(Or(t,n,r),e):e},createJSDocUnknownTag:wr,updateJSDocUnknownTag:function(e,t,n){return e.tagName!==t||e.comment!==n?ko(wr(t,n),e):e},createJSDocText:Fr,updateJSDocText:function(e,t){return e.text!==t?ko(Fr(t),e):e},createJSDocComment:Wr,updateJSDocComment:function(e,t,n){return e.comment!==t||e.tags!==n?ko(Wr(t,n),e):e},createJsxElement:zr,updateJsxElement:function(e,t,n,r){return e.openingElement!==t||e.children!==n||e.closingElement!==r?ko(zr(t,n,r),e):e},createJsxSelfClosingElement:Br,updateJsxSelfClosingElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?ko(Br(t,n,r),e):e},createJsxOpeningElement:Gr,updateJsxOpeningElement:function(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?ko(Gr(t,n,r),e):e},createJsxClosingElement:jr,updateJsxClosingElement:function(e,t){return e.tagName!==t?ko(jr(t),e):e},createJsxFragment:Vr,createJsxText:Ur,updateJsxText:function(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?ko(Ur(t,n),e):e},createJsxOpeningFragment:function(){const e=b(289);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=b(290);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,n,r){return e.openingFragment!==t||e.children!==n||e.closingFragment!==r?ko(Vr(t,n,r),e):e},createJsxAttribute:Hr,updateJsxAttribute:function(e,t,n){return e.name!==t||e.initializer!==n?ko(Hr(t,n),e):e},createJsxAttributes:Kr,updateJsxAttributes:function(e,t){return e.properties!==t?ko(Kr(t),e):e},createJsxSpreadAttribute:qr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?ko(qr(t),e):e},createJsxExpression:Jr,updateJsxExpression:function(e,t){return e.expression!==t?ko(Jr(e.dotDotDotToken,t),e):e},createJsxNamespacedName:Xr,updateJsxNamespacedName:function(e,t,n){return e.namespace!==t||e.name!==n?ko(Xr(t,n),e):e},createCaseClause:$r,updateCaseClause:function(e,t,n){return e.expression!==t||e.statements!==n?ko($r(t,n),e):e},createDefaultClause:Yr,updateDefaultClause:function(e,t){return e.statements!==t?ko(Yr(t),e):e},createHeritageClause:Qr,updateHeritageClause:function(e,t){return e.types!==t?ko(Qr(e.token,t),e):e},createCatchClause:Zr,updateCatchClause:function(e,t,n){return e.variableDeclaration!==t||e.block!==n?ko(Zr(t,n),e):e},createPropertyAssignment:eo,updatePropertyAssignment:to,createShorthandPropertyAssignment:no,updateShorthandPropertyAssignment:function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?function(e,t){e!==t&&(e.modifiers=t.modifiers,e.questionToken=t.questionToken,e.exclamationToken=t.exclamationToken,e.equalsToken=t.equalsToken);return ko(e,t)}(no(t,n),e):e},createSpreadAssignment:ro,updateSpreadAssignment:function(e,t){return e.expression!==t?ko(ro(t),e):e},createEnumMember:oo,updateEnumMember:function(e,t,n){return e.name!==t||e.initializer!==n?ko(oo(t,n),e):e},createSourceFile:function(e,n,r){const o=t.createBaseSourceFileNode(312);return o.statements=v(e),o.endOfFileToken=n,o.flags|=r,o.text="",o.fileName="",o.path="",o.resolvedPath="",o.originalFileName="",o.languageVersion=0,o.languageVariant=0,o.scriptKind=0,o.isDeclarationFile=!1,o.hasNoDefaultLib=!1,o.transformFlags|=ZA(o.statements)|QA(o.endOfFileToken),o.locals=void 0,o.nextContainer=void 0,o.endFlowNode=void 0,o.nodeCount=0,o.identifierCount=0,o.symbolCount=0,o.parseDiagnostics=void 0,o.bindDiagnostics=void 0,o.bindSuggestionDiagnostics=void 0,o.lineMap=void 0,o.externalModuleIndicator=void 0,o.setExternalModuleIndicator=void 0,o.pragmas=void 0,o.checkJsDirective=void 0,o.referencedFiles=void 0,o.typeReferenceDirectives=void 0,o.libReferenceDirectives=void 0,o.amdDependencies=void 0,o.commentDirectives=void 0,o.identifiers=void 0,o.packageJsonLocations=void 0,o.packageJsonScope=void 0,o.imports=void 0,o.moduleAugmentations=void 0,o.ambientModuleNames=void 0,o.classifiableNames=void 0,o.impliedNodeFormat=void 0,o},updateSourceFile:function(e,t,n=e.isDeclarationFile,r=e.referencedFiles,o=e.typeReferenceDirectives,i=e.hasNoDefaultLib,a=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==n||e.referencedFiles!==r||e.typeReferenceDirectives!==o||e.hasNoDefaultLib!==i||e.libReferenceDirectives!==a?ko(function(e,t,n,r,o,i,a){const s=ao(e);return s.statements=v(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=o,s.hasNoDefaultLib=i,s.libReferenceDirectives=a,s.transformFlags=ZA(s.statements)|QA(s.endOfFileToken),s}(e,t,n,r,o,i,a),e):e},createRedirectedSourceFile:io,createBundle:so,updateBundle:function(e,t,n=o){return e.sourceFiles!==t||e.prepends!==n?ko(so(t,n),e):e},createUnparsedSource:function(e,t,n){const r=b(314);return r.prologues=e,r.syntheticReferences=t,r.texts=n,r.fileName="",r.text="",r.referencedFiles=o,r.libReferenceDirectives=o,r.getLineAndCharacterOfPosition=e=>_s(r,e),r},createUnparsedPrologue:function(e){return lo(307,e)},createUnparsedPrepend:function(e,t){const n=lo(308,e);return n.texts=t,n},createUnparsedTextLike:function(e,t){return lo(t?310:309,e)},createUnparsedSyntheticReference:function(e){const t=b(311);return t.data=e.data,t.section=e,t},createInputFiles:function(){const e=b(315);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t=!1,n){const r=b(237);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=b(358);return t._children=e,t},createNotEmittedStatement:function(e){const t=b(359);return t.original=e,yk(t,e),t},createPartiallyEmittedExpression:co,updatePartiallyEmittedExpression:uo,createCommaListExpression:fo,updateCommaListExpression:function(e,t){return e.elements!==t?ko(fo(t),e):e},createSyntheticReferenceExpression:mo,updateSyntheticReferenceExpression:function(e,t,n){return e.expression!==t||e.thisArg!==n?ko(mo(t,n),e):e},cloneNode:_o,get createComma(){return a(28)},get createAssignment(){return a(64)},get createLogicalOr(){return a(57)},get createLogicalAnd(){return a(56)},get createBitwiseOr(){return a(52)},get createBitwiseXor(){return a(53)},get createBitwiseAnd(){return a(51)},get createStrictEquality(){return a(37)},get createStrictInequality(){return a(38)},get createEquality(){return a(35)},get createInequality(){return a(36)},get createLessThan(){return a(30)},get createLessThanEquals(){return a(33)},get createGreaterThan(){return a(32)},get createGreaterThanEquals(){return a(34)},get createLeftShift(){return a(48)},get createRightShift(){return a(49)},get createUnsignedRightShift(){return a(50)},get createAdd(){return a(40)},get createSubtract(){return a(41)},get createMultiply(){return a(42)},get createDivide(){return a(44)},get createModulo(){return a(45)},get createExponent(){return a(43)},get createPrefixPlus(){return s(40)},get createPrefixMinus(){return s(41)},get createPrefixIncrement(){return s(46)},get createPrefixDecrement(){return s(47)},get createBitwiseNot(){return s(55)},get createLogicalNot(){return s(54)},get createPostfixIncrement(){return l(46)},get createPostfixDecrement(){return l(47)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return ct(bt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,rn(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return ct(Tt(void 0,void 0,t?[t]:[],void 0,void 0,rn(e,!0)),void 0,n?[n]:[])},createVoidZero:ho,createExportDefault:function(e){return rr(void 0,!1,e)},createExternalModuleExport:function(e){return ir(void 0,!1,sr([lr(!1,void 0,e)]))},createTypeCheck:function(e,t){return"null"===t?y.createStrictEquality(e,B()):"undefined"===t?y.createStrictEquality(e,ho()):y.createStrictEquality(Rt(e),R(t))},createIsNotTypeCheck:function(e,t){return"null"===t?y.createStrictInequality(e,B()):"undefined"===t?y.createStrictInequality(e,ho()):y.createStrictInequality(Rt(e),R(t))},createMethodCall:go,createGlobalMethodCall:yo,createFunctionBindCall:function(e,t,n){return go(e,"bind",[t,...n])},createFunctionCallCall:function(e,t,n){return go(e,"call",[t,...n])},createFunctionApplyCall:function(e,t,n){return go(e,"apply",[t,n])},createArraySliceCall:function(e,t){return go(e,"slice",void 0===t?[]:[No(t)])},createArrayConcatCall:function(e,t){return go(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return yo("Object","defineProperty",[e,No(t),n])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return yo("Object","getOwnPropertyDescriptor",[e,No(t)])},createReflectGetCall:function(e,t,n){return yo("Reflect","get",n?[e,t,n]:[e,t])},createReflectSetCall:function(e,t,n,r){return yo("Reflect","set",r?[e,t,n,r]:[e,t,n])},createPropertyDescriptor:function(e,t){const n=[];vo(n,"enumerable",No(e.enumerable)),vo(n,"configurable",No(e.configurable));let r=vo(n,"writable",No(e.writable));r=vo(n,"value",e.value)||r;let o=vo(n,"get",e.get);return o=vo(n,"set",e.set)||o,In.assert(!(r&&o),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ze(n,!t)},createCallBinding:function(e,t,n,o=!1){const i=EL(e,15);let a,s;Ih(i)?(a=z(),s=i):mC(i)?(a=z(),s=void 0!==n&&n<2?yk(L("_super"),i):i):8192&Rm(i)?(a=ho(),s=r().parenthesizeLeftSideOfAccess(i,!1)):lD(i)?bo(i.expression,o)?(a=k(t),s=tt(yk(y.createAssignment(a,i.expression),i.expression),i.name),yk(s,i)):(a=i.expression,s=i):cD(i)?bo(i.expression,o)?(a=k(t),s=it(yk(y.createAssignment(a,i.expression),i.expression),i.argumentExpression),yk(s,i)):(a=i.expression,s=i):(a=ho(),s=r().parenthesizeLeftSideOfAccess(e,!1));return{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return tt(gt(Ze([fe(void 0,"value",[X(void 0,void 0,e,void 0,void 0,void 0)],rn([ln(t)]))])),"value")},inlineExpressions:function(e){return e.length>10?fo(e):Ue(e,y.createComma)},getInternalName:function(e,t,n){return Eo(e,t,n,98304)},getLocalName:function(e,t,n,r){return Eo(e,t,n,32768,r)},getExportName:So,getDeclarationName:function(e,t,n){return Eo(e,t,n)},getNamespaceMemberName:To,getExternalModuleOrNamespaceExportName:function(e,t,n,r){if(e&&Gb(t,32))return To(e,Eo(t),n,r);return So(t,n,r)},restoreOuterExpressions:function e(t,n,r=15){if(t&&bL(t,r)&&(o=t,!(mD(o)&&Sv(o)&&Sv(gI(o))&&Sv(TI(o)))||se(AI(o))||se(CI(o))))return function(e,t){switch(e.kind){case 217:return yt(e,t);case 216:return ht(e,e.type,t);case 234:return Jt(e,t,e.type);case 238:return Qt(e,t,e.type);case 235:return $t(e,t);case 360:return uo(e,t)}}(t,e(t.expression,n));var o;return n},restoreEnclosingLabel:function e(t,n,r){if(!n)return t;const o=Sn(n,n.label,tN(n.statement)?e(t,n.statement):t);r&&r(n);return o},createUseStrictPrologue:xo,copyPrologue:function(e,t,n,r){const o=Ao(e,t,0,n);return Io(e,t,o,r)},copyStandardPrologue:Ao,copyCustomPrologue:Io,ensureUseStrict:function(e){if(!mL(e))return yk(v([xo(),...e]),e);return e},liftToBlock:function(e){return In.assert(M(e,Ou),"Cannot lift nodes to a Block."),We(e)||rn(e)},mergeLexicalEnvironment:function(e,t){if(!se(t))return e;const n=Ro(e,w_,0),r=Ro(e,F_,n),o=Ro(e,z_,r),i=Ro(t,w_,0),a=Ro(t,F_,i),s=Ro(t,z_,a),l=Ro(t,O_,s);In.assert(l===t.length,"Expected declarations to be valid standard or custom prologues");const c=Qc(e)?e.slice():e;l>s&&c.splice(o,0,...t.slice(s,l));s>a&&c.splice(r,0,...t.slice(a,s));a>i&&c.splice(n,0,...t.slice(i,a));if(i>0)if(0===n)c.splice(0,0,...t.slice(0,i));else{const r=new Map;for(let t=0;t<n;t++){const n=e[t];r.set(n.expression.text,!0)}for(let e=i-1;e>=0;e--){const n=t[e];r.has(n.expression.text)||c.unshift(n)}}if(Qc(e))return yk(v(c,e.hasTrailingComma),e);return e},replaceModifiers:function(e,t){let n;n="number"===typeof t?U(t):t;return vC(e)?J(e,n,e.name,e.constraint,e.default):bC(e)?$(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):OC(e)?Ie(e,n,e.typeParameters,e.parameters,e.type):SC(e)?ee(e,n,e.name,e.questionToken,e.type):TC(e)?ne(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):xC(e)?oe(e,n,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):AC(e)?ae(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):RC(e)?de(e,n,e.parameters,e.body):CC(e)?pe(e,n,e.name,e.parameters,e.type,e.body):DC(e)?me(e,n,e.name,e.parameters,e.body):LC(e)?ye(e,n,e.parameters,e.type):_D(e)?Et(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):hD(e)?At(e,n,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):CD(e)?Ht(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):GD(e)?an(e,n,e.declarationList):sN(e)?Dn(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):lN(e)?Mn(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):cN(e)?kn(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):dN(e)?wn(e,n,e.name,e.typeParameters,e.type):uN(e)?Fn(e,n,e.name,e.members):pN(e)?zn(e,n,e.name,e.body):hN(e)?Un(e,n,e.isTypeOnly,e.name,e.moduleReference):gN(e)?Kn(e,n,e.importClause,e.moduleSpecifier,e.attributes):CN(e)?or(e,n,e.expression):DN(e)?ar(e,n,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):In.assertNever(e)},replaceDecoratorsAndModifiers:function(e,t){return bC(e)?$(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):TC(e)?ne(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):AC(e)?ae(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):CC(e)?pe(e,t,e.name,e.parameters,e.type,e.body):DC(e)?me(e,t,e.name,e.parameters,e.body):CD(e)?Ht(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):lN(e)?Mn(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):In.assertNever(e)},replacePropertyName:function(e,t){switch(e.kind){case 177:return pe(e,e.modifiers,t,e.parameters,e.type,e.body);case 178:return me(e,e.modifiers,t,e.parameters,e.body);case 174:return ae(e,e.modifiers,e.asteriskToken,t,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 173:return oe(e,e.modifiers,t,e.questionToken,e.typeParameters,e.parameters,e.type);case 172:return ne(e,e.modifiers,t,e.questionToken??e.exclamationToken,e.type,e.initializer);case 171:return ee(e,e.modifiers,t,e.questionToken,e.type);case 303:return to(e,t,e.initializer)}}};return x(BA,(e=>e(y))),y;function v(e,t){if(void 0===e||e===o)e=[];else if(Qc(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&eI(e),In.attachNodeArrayDebugInfo(e),e;const n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,In.attachNodeArrayDebugInfo(n),n}const n=e.length,r=n>=1&&n<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!t,r.transformFlags=0,eI(r),In.attachNodeArrayDebugInfo(r),r}function b(e){return t.createBaseNode(e)}function E(e){const t=b(e);return t.symbol=void 0,t.localSymbol=void 0,t}function S(e,t){return e!==t&&(e.typeArguments=t.typeArguments),ko(e,t)}function T(e,t=0){const n="number"===typeof e?e+"":e;In.assert(45!==n.charCodeAt(0),"Negative numbers should be created in combination with createPrefixUnaryExpression");const r=E(9);return r.text=n,r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function A(e){const t=F(10);return t.text="string"===typeof e?e:Mx(e)+"n",t.transformFlags|=32,t}function I(e,t){const n=E(11);return n.text=e,n.singleQuote=t,n}function R(e,t,n){const r=I(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function C(e){const t=F(14);return t.text=e,t}function D(e){const n=t.createBaseIdentifierNode(80);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function N(e,t,n,r){const o=D(Ml(e));return KI(o,{flags:t,id:WA,prefix:n,suffix:r}),WA++,o}function L(e,t,n){void 0===t&&e&&(t=ss(e)),80===t&&(t=void 0);const r=D(Ml(e));return n&&(r.flags|=256),"await"===r.escapedText&&(r.transformFlags|=67108864),256&r.flags&&(r.transformFlags|=1024),r}function k(e,t,n,r){let o=1;t&&(o|=8);const i=N("",o,n,r);return e&&e(i),i}function P(e,t=0,n,r){In.assert(!(7&t),"Argument out of range: flags");(n||r)&&(t|=16);const o=N(e?Nc(e)?ck(!1,n,e,r,kl):`generated@${Hz(e)}`:"",4|t,n,r);return o.original=e,o}function w(e){const n=t.createBasePrivateIdentifierNode(81);return n.escapedText=e,n.transformFlags|=16777216,n}function O(e,t,n,r){const o=w(Ml(e));return KI(o,{flags:t,id:WA,prefix:n,suffix:r}),WA++,o}function F(e){return t.createBaseTokenNode(e)}function W(e){In.assert(e>=0&&e<=165,"Invalid token"),In.assert(e<=15||e>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),In.assert(e<=9||e>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),In.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const t=F(e);let n=0;switch(e){case 134:n=384;break;case 160:n=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:n=1;break;case 108:n=134218752,t.flowNode=void 0;break;case 126:n=1024;break;case 129:n=16777216;break;case 110:n=16384,t.flowNode=void 0}return n&&(t.transformFlags|=n),t}function z(){return W(110)}function B(){return W(106)}function G(){return W(112)}function j(){return W(97)}function V(e){return W(e)}function U(e){const t=[];return 32&e&&t.push(V(95)),128&e&&t.push(V(138)),2048&e&&t.push(V(90)),4096&e&&t.push(V(87)),1&e&&t.push(V(125)),2&e&&t.push(V(123)),4&e&&t.push(V(124)),64&e&&t.push(V(128)),256&e&&t.push(V(126)),16&e&&t.push(V(164)),8&e&&t.push(V(148)),512&e&&t.push(V(129)),1024&e&&t.push(V(134)),8192&e&&t.push(V(103)),16384&e&&t.push(V(147)),t.length?t:void 0}function H(e,t){const n=b(166);return n.left=e,n.right=Do(t),n.transformFlags|=QA(n.left)|YA(n.right),n.flowNode=void 0,n}function K(e){const t=b(167);return t.expression=r().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|QA(t.expression),t}function q(e,t,n,r){const o=E(168);return o.modifiers=Co(e),o.name=Do(t),o.constraint=n,o.default=r,o.transformFlags=1,o.expression=void 0,o.jsDoc=void 0,o}function J(e,t,n,r,o){return e.modifiers!==t||e.name!==n||e.constraint!==r||e.default!==o?ko(q(t,n,r,o),e):e}function X(e,t,n,r,o,i){const a=E(169);return a.modifiers=Co(e),a.dotDotDotToken=t,a.name=Do(n),a.questionToken=r,a.type=o,a.initializer=Mo(i),bb(a.name)?a.transformFlags=1:a.transformFlags=ZA(a.modifiers)|QA(a.dotDotDotToken)|$A(a.name)|QA(a.questionToken)|QA(a.initializer)|(a.questionToken??a.type?1:0)|(a.dotDotDotToken??a.initializer?1024:0)|(31&aE(a.modifiers)?8192:0),a.jsDoc=void 0,a}function $(e,t,n,r,o,i,a){return e.modifiers!==t||e.dotDotDotToken!==n||e.name!==r||e.questionToken!==o||e.type!==i||e.initializer!==a?ko(X(t,n,r,o,i,a),e):e}function Q(e){const t=b(170);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|QA(t.expression),t}function Z(e,t,n,r){const o=E(171);return o.modifiers=Co(e),o.name=Do(t),o.type=r,o.questionToken=n,o.transformFlags=1,o.initializer=void 0,o.jsDoc=void 0,o}function ee(e,t,n,r,o){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==o?function(e,t){e!==t&&(e.initializer=t.initializer);return ko(e,t)}(Z(t,n,r,o),e):e}function te(e,t,n,r,o){const i=E(172);i.modifiers=Co(e),i.name=Do(t),i.questionToken=n&&QR(n)?n:void 0,i.exclamationToken=n&&YR(n)?n:void 0,i.type=r,i.initializer=Mo(o);const a=33554432&i.flags||128&aE(i.modifiers);return i.transformFlags=ZA(i.modifiers)|$A(i.name)|QA(i.initializer)|(a||i.questionToken||i.exclamationToken||i.type?1:0)|(yC(i.name)||256&aE(i.modifiers)&&i.initializer?8192:0)|16777216,i.jsDoc=void 0,i}function ne(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.questionToken!==(void 0!==r&&QR(r)?r:void 0)||e.exclamationToken!==(void 0!==r&&YR(r)?r:void 0)||e.type!==o||e.initializer!==i?ko(te(t,n,r,o,i),e):e}function re(e,t,n,r,o,i){const a=E(173);return a.modifiers=Co(e),a.name=Do(t),a.questionToken=n,a.typeParameters=Co(r),a.parameters=Co(o),a.type=i,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function oe(e,t,n,r,o,i,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==o||e.parameters!==i||e.type!==a?S(re(t,n,r,o,i,a),e):e}function ie(e,t,n,r,o,i,a,s){const l=E(174);if(l.modifiers=Co(e),l.asteriskToken=t,l.name=Do(n),l.questionToken=r,l.exclamationToken=void 0,l.typeParameters=Co(o),l.parameters=v(i),l.type=a,l.body=s,l.body){const e=1024&aE(l.modifiers),t=!!l.asteriskToken,n=e&&t;l.transformFlags=ZA(l.modifiers)|QA(l.asteriskToken)|$A(l.name)|QA(l.questionToken)|ZA(l.typeParameters)|ZA(l.parameters)|QA(l.type)|-67108865&QA(l.body)|(n?128:e?256:t?2048:0)|(l.questionToken||l.typeParameters||l.type?1:0)|1024}else l.transformFlags=1;return l.typeArguments=void 0,l.jsDoc=void 0,l.locals=void 0,l.nextContainer=void 0,l.flowNode=void 0,l.endFlowNode=void 0,l.returnFlowNode=void 0,l}function ae(e,t,n,r,o,i,a,s,l){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.questionToken!==o||e.typeParameters!==i||e.parameters!==a||e.type!==s||e.body!==l?function(e,t){e!==t&&(e.exclamationToken=t.exclamationToken);return ko(e,t)}(ie(t,n,r,o,i,a,s,l),e):e}function le(e){const t=E(175);return t.body=e,t.transformFlags=16777216|QA(e),t.modifiers=void 0,t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.endFlowNode=void 0,t.returnFlowNode=void 0,t}function ce(e,t,n){const r=E(176);return r.modifiers=Co(e),r.parameters=v(t),r.body=n,r.transformFlags=ZA(r.modifiers)|ZA(r.parameters)|-67108865&QA(r.body)|1024,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function de(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?function(e,t){e!==t&&(e.typeParameters=t.typeParameters,e.type=t.type);return S(e,t)}(ce(t,n,r),e):e}function ue(e,t,n,r,o){const i=E(177);return i.modifiers=Co(e),i.name=Do(t),i.parameters=v(n),i.type=r,i.body=o,i.body?i.transformFlags=ZA(i.modifiers)|$A(i.name)|ZA(i.parameters)|QA(i.type)|-67108865&QA(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function pe(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==o||e.body!==i?function(e,t){e!==t&&(e.typeParameters=t.typeParameters);return S(e,t)}(ue(t,n,r,o,i),e):e}function fe(e,t,n,r){const o=E(178);return o.modifiers=Co(e),o.name=Do(t),o.parameters=v(n),o.body=r,o.body?o.transformFlags=ZA(o.modifiers)|$A(o.name)|ZA(o.parameters)|-67108865&QA(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.type=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function me(e,t,n,r,o){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==o?function(e,t){e!==t&&(e.typeParameters=t.typeParameters,e.type=t.type);return S(e,t)}(fe(t,n,r,o),e):e}function _e(e,t,n){const r=E(179);return r.typeParameters=Co(e),r.parameters=Co(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function he(e,t,n){const r=E(180);return r.typeParameters=Co(e),r.parameters=Co(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ge(e,t,n){const r=E(181);return r.modifiers=Co(e),r.parameters=Co(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ye(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?S(ge(t,n,r),e):e}function ve(e,t){const n=b(204);return n.type=e,n.literal=t,n.transformFlags=1,n}function be(e,t,n){const r=b(182);return r.assertsModifier=e,r.parameterName=Do(t),r.type=n,r.transformFlags=1,r}function Se(e,t){const n=b(183);return n.typeName=Do(e),n.typeArguments=t&&r().parenthesizeTypeArguments(v(t)),n.transformFlags=1,n}function Te(e,t,n){const r=E(184);return r.typeParameters=Co(e),r.parameters=Co(t),r.type=n,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function xe(...e){return 4===e.length?Ae(...e):3===e.length?function(e,t,n){return Ae(void 0,e,t,n)}(...e):In.fail("Incorrect number of arguments specified.")}function Ae(e,t,n,r){const o=E(185);return o.modifiers=Co(e),o.typeParameters=Co(t),o.parameters=Co(n),o.type=r,o.transformFlags=1,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.typeArguments=void 0,o}function Ie(e,t,n,r,o){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==o?S(xe(t,n,r,o),e):e}function Re(e,t){const n=b(186);return n.exprName=e,n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags=1,n}function Ce(e){const t=E(187);return t.members=v(e),t.transformFlags=1,t}function De(e){const t=b(188);return t.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Ne(e){const t=b(189);return t.elements=v(r().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Me(e,t,n,r){const o=E(202);return o.dotDotDotToken=e,o.name=t,o.questionToken=n,o.type=r,o.transformFlags=1,o.jsDoc=void 0,o}function Le(e){const t=b(190);return t.type=r().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function ke(e){const t=b(191);return t.type=e,t.transformFlags=1,t}function Pe(e,t,n){const r=b(e);return r.types=y.createNodeArray(n(t)),r.transformFlags=1,r}function we(e,t,n){return e.types!==t?ko(Pe(e.kind,t,n),e):e}function Fe(e,t,n,o){const i=b(194);return i.checkType=r().parenthesizeCheckTypeOfConditionalType(e),i.extendsType=r().parenthesizeExtendsTypeOfConditionalType(t),i.trueType=n,i.falseType=o,i.transformFlags=1,i.locals=void 0,i.nextContainer=void 0,i}function ze(e){const t=b(195);return t.typeParameter=e,t.transformFlags=1,t}function Be(e,t){const n=b(203);return n.head=e,n.templateSpans=v(t),n.transformFlags=1,n}function Ge(e,t,n,o,i=!1){const a=b(205);return a.argument=e,a.attributes=t,a.assertions&&a.assertions.assertClause&&a.attributes&&(a.assertions.assertClause=a.attributes),a.qualifier=n,a.typeArguments=o&&r().parenthesizeTypeArguments(o),a.isTypeOf=i,a.transformFlags=1,a}function je(e){const t=b(196);return t.type=e,t.transformFlags=1,t}function Ve(e,t){const n=b(198);return n.operator=e,n.type=148===e?r().parenthesizeOperandOfReadonlyTypeOperator(t):r().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function Ke(e,t){const n=b(199);return n.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function qe(e,t,n,r,o,i){const a=E(200);return a.readonlyToken=e,a.typeParameter=t,a.nameType=n,a.questionToken=r,a.type=o,a.members=i&&v(i),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Je(e){const t=b(201);return t.literal=e,t.transformFlags=1,t}function Xe(e){const t=b(206);return t.elements=v(e),t.transformFlags|=525312|ZA(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function $e(e){const t=b(207);return t.elements=v(e),t.transformFlags|=525312|ZA(t.elements),t}function Ye(e,t,n,r){const o=E(208);return o.dotDotDotToken=e,o.propertyName=Do(t),o.name=Do(n),o.initializer=Mo(r),o.transformFlags|=QA(o.dotDotDotToken)|$A(o.propertyName)|$A(o.name)|QA(o.initializer)|(o.dotDotDotToken?32768:0)|1024,o.flowNode=void 0,o}function Qe(e,t){const n=b(209),o=e&&Oe(e),i=v(e,!(!o||!DD(o))||void 0);return n.elements=r().parenthesizeExpressionsOfCommaDelimitedList(i),n.multiLine=t,n.transformFlags|=ZA(n.elements),n}function Ze(e,t){const n=E(210);return n.properties=v(e),n.multiLine=t,n.transformFlags|=ZA(n.properties),n.jsDoc=void 0,n}function et(e,t,n){const r=E(211);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=QA(r.expression)|QA(r.questionDotToken)|(nC(r.name)?YA(r.name):536870912|QA(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function tt(e,t){const n=et(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Do(t));return mC(e)&&(n.transformFlags|=384),n}function nt(e,t,n){const o=et(r().parenthesizeLeftSideOfAccess(e,!0),t,Do(n));return o.flags|=64,o.transformFlags|=32,o}function rt(e,t,n,r){return In.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==n||e.name!==r?ko(nt(t,n,r),e):e}function ot(e,t,n){const r=E(212);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=QA(r.expression)|QA(r.questionDotToken)|QA(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function it(e,t){const n=ot(r().parenthesizeLeftSideOfAccess(e,!1),void 0,No(t));return mC(e)&&(n.transformFlags|=384),n}function at(e,t,n){const o=ot(r().parenthesizeLeftSideOfAccess(e,!0),t,No(n));return o.flags|=64,o.transformFlags|=32,o}function st(e,t,n,r){return In.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==n||e.argumentExpression!==r?ko(at(t,n,r),e):e}function lt(e,t,n,r){const o=E(213);return o.expression=e,o.questionDotToken=t,o.typeArguments=n,o.arguments=r,o.transformFlags|=QA(o.expression)|QA(o.questionDotToken)|ZA(o.typeArguments)|ZA(o.arguments),o.typeArguments&&(o.transformFlags|=1),Ih(o.expression)&&(o.transformFlags|=16384),o}function ct(e,t,n){const o=lt(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Co(t),r().parenthesizeExpressionsOfCommaDelimitedList(v(n)));return _C(o.expression)&&(o.transformFlags|=8388608),o}function dt(e,t,n,o){const i=lt(r().parenthesizeLeftSideOfAccess(e,!0),t,Co(n),r().parenthesizeExpressionsOfCommaDelimitedList(v(o)));return i.flags|=64,i.transformFlags|=32,i}function ut(e,t,n,r,o){return In.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==n||e.typeArguments!==r||e.arguments!==o?ko(dt(t,n,r,o),e):e}function pt(e,t,n){const o=E(214);return o.expression=r().parenthesizeExpressionOfNew(e),o.typeArguments=Co(t),o.arguments=n?r().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,o.transformFlags|=QA(o.expression)|ZA(o.typeArguments)|ZA(o.arguments)|32,o.typeArguments&&(o.transformFlags|=1),o}function ft(e,t,n){const o=b(215);return o.tag=r().parenthesizeLeftSideOfAccess(e,!1),o.typeArguments=Co(t),o.template=n,o.transformFlags|=QA(o.tag)|ZA(o.typeArguments)|QA(o.template)|1024,o.typeArguments&&(o.transformFlags|=1),Pv(o.template)&&(o.transformFlags|=128),o}function _t(e,t){const n=b(216);return n.expression=r().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=QA(n.expression)|QA(n.type)|1,n}function ht(e,t,n){return e.type!==t||e.expression!==n?ko(_t(t,n),e):e}function gt(e){const t=b(217);return t.expression=e,t.transformFlags=QA(t.expression),t.jsDoc=void 0,t}function yt(e,t){return e.expression!==t?ko(gt(t),e):e}function bt(e,t,n,r,o,i,a){const s=E(218);s.modifiers=Co(e),s.asteriskToken=t,s.name=Do(n),s.typeParameters=Co(r),s.parameters=v(o),s.type=i,s.body=a;const l=1024&aE(s.modifiers),c=!!s.asteriskToken,d=l&&c;return s.transformFlags=ZA(s.modifiers)|QA(s.asteriskToken)|$A(s.name)|ZA(s.typeParameters)|ZA(s.parameters)|QA(s.type)|-67108865&QA(s.body)|(d?128:l?256:c?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Et(e,t,n,r,o,i,a,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==o||e.parameters!==i||e.type!==a||e.body!==s?S(bt(t,n,r,o,i,a,s),e):e}function Tt(e,t,n,o,i,a){const s=E(219);s.modifiers=Co(e),s.typeParameters=Co(t),s.parameters=v(n),s.type=o,s.equalsGreaterThanToken=i??W(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(a);const l=1024&aE(s.modifiers);return s.transformFlags=ZA(s.modifiers)|ZA(s.typeParameters)|ZA(s.parameters)|QA(s.type)|QA(s.equalsGreaterThanToken)|-67108865&QA(s.body)|(s.typeParameters||s.type?1:0)|(l?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function At(e,t,n,r,o,i,a){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==o||e.equalsGreaterThanToken!==i||e.body!==a?S(Tt(t,n,r,o,i,a),e):e}function It(e){const t=b(220);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=QA(t.expression),t}function Rt(e){const t=b(221);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=QA(t.expression),t}function Nt(e){const t=b(222);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=QA(t.expression),t}function Mt(e){const t=b(223);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|QA(t.expression),t}function Lt(e,t){const n=b(224);return n.operator=e,n.operand=r().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=QA(n.operand),46!==e&&47!==e||!nC(n.operand)||ud(n.operand)||uL(n.operand)||(n.transformFlags|=268435456),n}function kt(e,t){const n=b(225);return n.operator=t,n.operand=r().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=QA(n.operand),!nC(n.operand)||ud(n.operand)||uL(n.operand)||(n.transformFlags|=268435456),n}function Pt(e,t,n){const o=E(226),i="number"===typeof(a=t)?W(a):a;var a;const s=i.kind;return o.left=r().parenthesizeLeftSideOfBinary(s,e),o.operatorToken=i,o.right=r().parenthesizeRightSideOfBinary(s,o.left,n),o.transformFlags|=QA(o.left)|QA(o.operatorToken)|QA(o.right),61===s?o.transformFlags|=32:64===s?sD(o.left)?o.transformFlags|=5248|wt(o.left):aD(o.left)&&(o.transformFlags|=5120|wt(o.left)):43===s||68===s?o.transformFlags|=512:dE(s)&&(o.transformFlags|=16),103===s&&rC(o.left)&&(o.transformFlags|=536870912),o.jsDoc=void 0,o}function wt(e){return hk(e)?65536:0}function Ot(e,t,n,o,i){const a=b(227);return a.condition=r().parenthesizeConditionOfConditionalExpression(e),a.questionToken=t??W(58),a.whenTrue=r().parenthesizeBranchOfConditionalExpression(n),a.colonToken=o??W(59),a.whenFalse=r().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=QA(a.condition)|QA(a.questionToken)|QA(a.whenTrue)|QA(a.colonToken)|QA(a.whenFalse),a}function Ft(e,t){const n=b(228);return n.head=e,n.templateSpans=v(t),n.transformFlags|=QA(n.head)|ZA(n.templateSpans)|1024,n}function Wt(e,t,n,r=0){let o;if(In.assert(!(-7177&r),"Unsupported template flags."),void 0!==n&&n!==t&&(o=function(e,t){GA||(GA=Bs(99,!1,0));switch(e){case 15:GA.setText("`"+t+"`");break;case 16:GA.setText("`"+t+"${");break;case 17:GA.setText("}"+t+"${");break;case 18:GA.setText("}"+t+"`")}let n,r=GA.scan();20===r&&(r=GA.reScanTemplateToken(!1));if(GA.isUnterminated())return GA.setText(void 0),jA;switch(r){case 15:case 16:case 17:case 18:n=GA.getTokenValue()}if(void 0===n||1!==GA.scan())return GA.setText(void 0),jA;return GA.setText(void 0),n}(e,n),"object"===typeof o))return In.fail("Invalid raw text");if(void 0===t){if(void 0===o)return In.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=o}else void 0!==o&&In.assert(t===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return t}function zt(e){let t=1024;return e&&(t|=128),t}function Bt(e,t,n,r){const o=E(e);return o.text=t,o.rawText=n,o.templateFlags=7176&r,o.transformFlags=zt(o.templateFlags),o}function Gt(e,t,n,r){return 15===e?Bt(e,t,n,r):function(e,t,n,r){const o=F(e);return o.text=t,o.rawText=n,o.templateFlags=7176&r,o.transformFlags=zt(o.templateFlags),o}(e,t,n,r)}function jt(e,t){In.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");const n=b(229);return n.expression=t&&r().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=1049728|(QA(n.expression)|QA(n.asteriskToken)),n}function Vt(e){const t=b(230);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|QA(t.expression),t}function Ut(e,t,n,r,o){const i=E(231);return i.modifiers=Co(e),i.name=Do(t),i.typeParameters=Co(n),i.heritageClauses=Co(r),i.members=v(o),i.transformFlags|=ZA(i.modifiers)|$A(i.name)|ZA(i.typeParameters)|ZA(i.heritageClauses)|ZA(i.members)|(i.typeParameters?1:0)|1024,i.jsDoc=void 0,i}function Ht(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==o||e.members!==i?ko(Ut(t,n,r,o,i),e):e}function Kt(e,t){const n=b(233);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags|=QA(n.expression)|ZA(n.typeArguments)|1024,n}function qt(e,t){const n=b(234);return n.expression=e,n.type=t,n.transformFlags|=QA(n.expression)|QA(n.type)|1,n}function Jt(e,t,n){return e.expression!==t||e.type!==n?ko(qt(t,n),e):e}function Xt(e){const t=b(235);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|QA(t.expression),t}function $t(e,t){return jc(e)?en(e,t):e.expression!==t?ko(Xt(t),e):e}function Yt(e,t){const n=b(238);return n.expression=e,n.type=t,n.transformFlags|=QA(n.expression)|QA(n.type)|1,n}function Qt(e,t,n){return e.expression!==t||e.type!==n?ko(Yt(t,n),e):e}function Zt(e){const t=b(235);return t.flags|=64,t.expression=r().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|QA(t.expression),t}function en(e,t){return In.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?ko(Zt(t),e):e}function tn(e,t){const n=b(236);switch(n.keywordToken=e,n.name=t,n.transformFlags|=QA(n.name),e){case 105:n.transformFlags|=1024;break;case 102:n.transformFlags|=32;break;default:return In.assertNever(e)}return n.flowNode=void 0,n}function nn(e,t){const n=b(239);return n.expression=e,n.literal=t,n.transformFlags|=QA(n.expression)|QA(n.literal)|1024,n}function rn(e,t){const n=b(241);return n.statements=v(e),n.multiLine=t,n.transformFlags|=ZA(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function on(e,t){const n=b(243);return n.modifiers=Co(e),n.declarationList=mt(t)?Rn(t):t,n.transformFlags|=ZA(n.modifiers)|QA(n.declarationList),128&aE(n.modifiers)&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function an(e,t,n){return e.modifiers!==t||e.declarationList!==n?ko(on(t,n),e):e}function sn(){const e=b(242);return e.jsDoc=void 0,e}function ln(e){const t=b(244);return t.expression=r().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=QA(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function cn(e,t,n){const r=b(245);return r.expression=e,r.thenStatement=Lo(t),r.elseStatement=Lo(n),r.transformFlags|=QA(r.expression)|QA(r.thenStatement)|QA(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function un(e,t){const n=b(246);return n.statement=Lo(e),n.expression=t,n.transformFlags|=QA(n.statement)|QA(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function pn(e,t){const n=b(247);return n.expression=e,n.statement=Lo(t),n.transformFlags|=QA(n.expression)|QA(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function fn(e,t,n,r){const o=b(248);return o.initializer=e,o.condition=t,o.incrementor=n,o.statement=Lo(r),o.transformFlags|=QA(o.initializer)|QA(o.condition)|QA(o.incrementor)|QA(o.statement),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function mn(e,t,n){const r=b(249);return r.initializer=e,r.expression=t,r.statement=Lo(n),r.transformFlags|=QA(r.initializer)|QA(r.expression)|QA(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function _n(e,t,n,o){const i=b(250);return i.awaitModifier=e,i.initializer=t,i.expression=r().parenthesizeExpressionForDisallowedComma(n),i.statement=Lo(o),i.transformFlags|=QA(i.awaitModifier)|QA(i.initializer)|QA(i.expression)|QA(i.statement)|1024,e&&(i.transformFlags|=128),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function hn(e){const t=b(251);return t.label=Do(e),t.transformFlags|=4194304|QA(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function gn(e){const t=b(252);return t.label=Do(e),t.transformFlags|=4194304|QA(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function yn(e){const t=b(253);return t.expression=e,t.transformFlags|=4194432|QA(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function vn(e,t){const n=b(254);return n.expression=e,n.statement=Lo(t),n.transformFlags|=QA(n.expression)|QA(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function bn(e,t){const n=b(255);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=QA(n.expression)|QA(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function En(e,t){const n=b(256);return n.label=Do(e),n.statement=Lo(t),n.transformFlags|=QA(n.label)|QA(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function Sn(e,t,n){return e.label!==t||e.statement!==n?ko(En(t,n),e):e}function Tn(e){const t=b(257);return t.expression=e,t.transformFlags|=QA(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function xn(e,t,n){const r=b(258);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=QA(r.tryBlock)|QA(r.catchClause)|QA(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function An(e,t,n,r){const o=E(260);return o.name=Do(e),o.exclamationToken=t,o.type=n,o.initializer=Mo(r),o.transformFlags|=$A(o.name)|QA(o.initializer)|(o.exclamationToken??o.type?1:0),o.jsDoc=void 0,o}function Rn(e,t=0){const n=b(261);return n.flags|=7&t,n.declarations=v(e),n.transformFlags|=4194304|ZA(n.declarations),7&t&&(n.transformFlags|=263168),4&t&&(n.transformFlags|=4),n}function Cn(e,t,n,r,o,i,a){const s=E(262);if(s.modifiers=Co(e),s.asteriskToken=t,s.name=Do(n),s.typeParameters=Co(r),s.parameters=v(o),s.type=i,s.body=a,!s.body||128&aE(s.modifiers))s.transformFlags=1;else{const e=1024&aE(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=ZA(s.modifiers)|QA(s.asteriskToken)|$A(s.name)|ZA(s.typeParameters)|ZA(s.parameters)|QA(s.type)|-67108865&QA(s.body)|(n?128:e?256:t?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Dn(e,t,n,r,o,i,a,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==o||e.parameters!==i||e.type!==a||e.body!==s?function(e,t){e!==t&&e.modifiers===t.modifiers&&(e.modifiers=t.modifiers);return S(e,t)}(Cn(t,n,r,o,i,a,s),e):e}function Nn(e,t,n,r,o){const i=E(263);return i.modifiers=Co(e),i.name=Do(t),i.typeParameters=Co(n),i.heritageClauses=Co(r),i.members=v(o),128&aE(i.modifiers)?i.transformFlags=1:(i.transformFlags|=ZA(i.modifiers)|$A(i.name)|ZA(i.typeParameters)|ZA(i.heritageClauses)|ZA(i.members)|(i.typeParameters?1:0)|1024,8192&i.transformFlags&&(i.transformFlags|=1)),i.jsDoc=void 0,i}function Mn(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==o||e.members!==i?ko(Nn(t,n,r,o,i),e):e}function Ln(e,t,n,r,o){const i=E(264);return i.modifiers=Co(e),i.name=Do(t),i.typeParameters=Co(n),i.heritageClauses=Co(r),i.members=v(o),i.transformFlags=1,i.jsDoc=void 0,i}function kn(e,t,n,r,o,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==o||e.members!==i?ko(Ln(t,n,r,o,i),e):e}function Pn(e,t,n,r){const o=E(265);return o.modifiers=Co(e),o.name=Do(t),o.typeParameters=Co(n),o.type=r,o.transformFlags=1,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o}function wn(e,t,n,r,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.type!==o?ko(Pn(t,n,r,o),e):e}function On(e,t,n){const r=E(266);return r.modifiers=Co(e),r.name=Do(t),r.members=v(n),r.transformFlags|=ZA(r.modifiers)|QA(r.name)|ZA(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Fn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.members!==r?ko(On(t,n,r),e):e}function Wn(e,t,n,r=0){const o=E(267);return o.modifiers=Co(e),o.flags|=2088&r,o.name=t,o.body=n,128&aE(o.modifiers)?o.transformFlags=1:o.transformFlags|=ZA(o.modifiers)|QA(o.name)|QA(o.body)|1,o.transformFlags&=-67108865,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o}function zn(e,t,n,r){return e.modifiers!==t||e.name!==n||e.body!==r?ko(Wn(t,n,r,e.flags),e):e}function Bn(e){const t=b(268);return t.statements=v(e),t.transformFlags|=ZA(t.statements),t.jsDoc=void 0,t}function Gn(e){const t=b(269);return t.clauses=v(e),t.transformFlags|=ZA(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function jn(e){const t=E(270);return t.name=Do(e),t.transformFlags|=1|YA(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function Vn(e,t,n,r){const o=E(271);return o.modifiers=Co(e),o.name=Do(n),o.isTypeOnly=t,o.moduleReference=r,o.transformFlags|=ZA(o.modifiers)|YA(o.name)|QA(o.moduleReference),wN(o.moduleReference)||(o.transformFlags|=1),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function Un(e,t,n,r,o){return e.modifiers!==t||e.isTypeOnly!==n||e.name!==r||e.moduleReference!==o?ko(Vn(t,n,r,o),e):e}function Hn(e,t,n,r){const o=b(272);return o.modifiers=Co(e),o.importClause=t,o.moduleSpecifier=n,o.attributes=o.assertClause=r,o.transformFlags|=QA(o.importClause)|QA(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function Kn(e,t,n,r,o){return e.modifiers!==t||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==o?ko(Hn(t,n,r,o),e):e}function qn(e,t,n){const r=E(273);return r.isTypeOnly=e,r.name=t,r.namedBindings=n,r.transformFlags|=QA(r.name)|QA(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Jn(e,t){const n=b(300);return n.elements=v(e),n.multiLine=t,n.token=132,n.transformFlags|=4,n}function Xn(e,t){const n=b(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function $n(e,t){const n=b(302);return n.assertClause=e,n.multiLine=t,n}function Yn(e,t,n){const r=b(300);return r.token=n??118,r.elements=v(e),r.multiLine=t,r.transformFlags|=4,r}function Qn(e,t){const n=b(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function Zn(e){const t=E(274);return t.name=e,t.transformFlags|=QA(t.name),t.transformFlags&=-67108865,t}function er(e){const t=E(280);return t.name=e,t.transformFlags|=32|QA(t.name),t.transformFlags&=-67108865,t}function tr(e){const t=b(275);return t.elements=v(e),t.transformFlags|=ZA(t.elements),t.transformFlags&=-67108865,t}function nr(e,t,n){const r=E(276);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=QA(r.propertyName)|QA(r.name),r.transformFlags&=-67108865,r}function rr(e,t,n){const o=E(277);return o.modifiers=Co(e),o.isExportEquals=t,o.expression=t?r().parenthesizeRightSideOfBinary(64,void 0,n):r().parenthesizeExpressionOfExportDefault(n),o.transformFlags|=ZA(o.modifiers)|QA(o.expression),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function or(e,t,n){return e.modifiers!==t||e.expression!==n?ko(rr(t,e.isExportEquals,n),e):e}function ir(e,t,n,r,o){const i=E(278);return i.modifiers=Co(e),i.isTypeOnly=t,i.exportClause=n,i.moduleSpecifier=r,i.attributes=i.assertClause=o,i.transformFlags|=ZA(i.modifiers)|QA(i.exportClause)|QA(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function ar(e,t,n,r,o,i){return e.modifiers!==t||e.isTypeOnly!==n||e.exportClause!==r||e.moduleSpecifier!==o||e.attributes!==i?function(e,t){e!==t&&e.modifiers===t.modifiers&&(e.modifiers=t.modifiers);return ko(e,t)}(ir(t,n,r,o,i),e):e}function sr(e){const t=b(279);return t.elements=v(e),t.transformFlags|=ZA(t.elements),t.transformFlags&=-67108865,t}function lr(e,t,n){const r=b(281);return r.isTypeOnly=e,r.propertyName=Do(t),r.name=Do(n),r.transformFlags|=QA(r.propertyName)|QA(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function cr(e){const t=b(283);return t.expression=e,t.transformFlags|=QA(t.expression),t.transformFlags&=-67108865,t}function dr(e,t,n=!1){const o=ur(e,n?t&&r().parenthesizeNonArrayTypeOfPostfixType(t):t);return o.postfix=n,o}function ur(e,t){const n=b(e);return n.type=t,n}function pr(e,t){const n=E(324);return n.parameters=Co(e),n.type=t,n.transformFlags=ZA(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function fr(e,t=!1){const n=E(329);return n.jsDocPropertyTags=Co(e),n.isArrayType=t,n}function mr(e){const t=b(316);return t.type=e,t}function _r(e,t,n){const r=E(330);return r.typeParameters=Co(e),r.parameters=v(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function hr(e){const t=XA(e.kind);return e.tagName.escapedText===Ml(t)?e.tagName:L(t)}function gr(e,t,n){const r=b(e);return r.tagName=t,r.comment=n,r}function yr(e,t,n){const r=E(e);return r.tagName=t,r.comment=n,r}function vr(e,t,n,r){const o=gr(352,e??L("template"),r);return o.constraint=t,o.typeParameters=v(n),o}function br(e,t,n,r){const o=yr(353,e??L("typedef"),r);return o.typeExpression=t,o.fullName=n,o.name=zL(n),o.locals=void 0,o.nextContainer=void 0,o}function Er(e,t,n,r,o,i){const a=yr(348,e??L("param"),i);return a.typeExpression=r,a.name=t,a.isNameFirst=!!o,a.isBracketed=n,a}function Sr(e,t,n,r,o,i){const a=yr(355,e??L("prop"),i);return a.typeExpression=r,a.name=t,a.isNameFirst=!!o,a.isBracketed=n,a}function Tr(e,t,n,r){const o=yr(345,e??L("callback"),r);return o.typeExpression=t,o.fullName=n,o.name=zL(n),o.locals=void 0,o.nextContainer=void 0,o}function xr(e,t,n){const r=gr(346,e??L("overload"),n);return r.typeExpression=t,r}function Ar(e,t,n){const r=gr(335,e??L("augments"),n);return r.class=t,r}function Ir(e,t,n){const r=gr(336,e??L("implements"),n);return r.class=t,r}function Rr(e,t,n){const r=gr(354,e??L("see"),n);return r.name=t,r}function Cr(e){const t=b(317);return t.name=e,t}function Dr(e,t){const n=b(318);return n.left=e,n.right=t,n.transformFlags|=QA(n.left)|QA(n.right),n}function Nr(e,t){const n=b(331);return n.name=e,n.text=t,n}function Mr(e,t){const n=b(332);return n.name=e,n.text=t,n}function Lr(e,t){const n=b(333);return n.name=e,n.text=t,n}function kr(e,t,n){return gr(e,t??L(XA(e)),n)}function Pr(e,t,n,r){const o=gr(e,t??L(XA(e)),r);return o.typeExpression=n,o}function wr(e,t){return gr(334,e,t)}function Or(e,t,n){const r=yr(347,e??L(XA(347)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function Fr(e){const t=b(328);return t.text=e,t}function Wr(e,t){const n=b(327);return n.comment=e,n.tags=Co(t),n}function zr(e,t,n){const r=b(284);return r.openingElement=e,r.children=v(t),r.closingElement=n,r.transformFlags|=QA(r.openingElement)|ZA(r.children)|QA(r.closingElement)|2,r}function Br(e,t,n){const r=b(285);return r.tagName=e,r.typeArguments=Co(t),r.attributes=n,r.transformFlags|=QA(r.tagName)|ZA(r.typeArguments)|QA(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function Gr(e,t,n){const r=b(286);return r.tagName=e,r.typeArguments=Co(t),r.attributes=n,r.transformFlags|=QA(r.tagName)|ZA(r.typeArguments)|QA(r.attributes)|2,t&&(r.transformFlags|=1),r}function jr(e){const t=b(287);return t.tagName=e,t.transformFlags|=2|QA(t.tagName),t}function Vr(e,t,n){const r=b(288);return r.openingFragment=e,r.children=v(t),r.closingFragment=n,r.transformFlags|=QA(r.openingFragment)|ZA(r.children)|QA(r.closingFragment)|2,r}function Ur(e,t){const n=b(12);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function Hr(e,t){const n=E(291);return n.name=e,n.initializer=t,n.transformFlags|=QA(n.name)|QA(n.initializer)|2,n}function Kr(e){const t=E(292);return t.properties=v(e),t.transformFlags|=2|ZA(t.properties),t}function qr(e){const t=b(293);return t.expression=e,t.transformFlags|=2|QA(t.expression),t}function Jr(e,t){const n=b(294);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=QA(n.dotDotDotToken)|QA(n.expression)|2,n}function Xr(e,t){const n=b(295);return n.namespace=e,n.name=t,n.transformFlags|=QA(n.namespace)|QA(n.name)|2,n}function $r(e,t){const n=b(296);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.statements=v(t),n.transformFlags|=QA(n.expression)|ZA(n.statements),n.jsDoc=void 0,n}function Yr(e){const t=b(297);return t.statements=v(e),t.transformFlags=ZA(t.statements),t}function Qr(e,t){const n=b(298);switch(n.token=e,n.types=v(t),n.transformFlags|=ZA(n.types),e){case 96:n.transformFlags|=1024;break;case 119:n.transformFlags|=1;break;default:return In.assertNever(e)}return n}function Zr(e,t){const n=b(299);return n.variableDeclaration=function(e){if("string"===typeof e||e&&!iN(e))return An(e,void 0,void 0,void 0);return e}(e),n.block=t,n.transformFlags|=QA(n.variableDeclaration)|QA(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function eo(e,t){const n=E(303);return n.name=Do(e),n.initializer=r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=$A(n.name)|QA(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function to(e,t,n){return e.name!==t||e.initializer!==n?function(e,t){e!==t&&(e.modifiers=t.modifiers,e.questionToken=t.questionToken,e.exclamationToken=t.exclamationToken);return ko(e,t)}(eo(t,n),e):e}function no(e,t){const n=E(304);return n.name=Do(e),n.objectAssignmentInitializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=YA(n.name)|QA(n.objectAssignmentInitializer)|1024,n.equalsToken=void 0,n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function ro(e){const t=E(305);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|QA(t.expression),t.jsDoc=void 0,t}function oo(e,t){const n=E(306);return n.name=Do(e),n.initializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=QA(n.name)|QA(n.initializer)|1,n.jsDoc=void 0,n}function io(e){const t=Object.create(e.redirectTarget);return Object.defineProperties(t,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),t.redirectInfo=e,t}function ao(e){const r=e.redirectInfo?function(e){const t=io(e.redirectInfo);return t.flags|=-17&e.flags,t.fileName=e.fileName,t.path=e.path,t.resolvedPath=e.resolvedPath,t.originalFileName=e.originalFileName,t.packageJsonLocations=e.packageJsonLocations,t.packageJsonScope=e.packageJsonScope,t.emitNode=void 0,t}(e):function(e){const n=t.createBaseSourceFileNode(312);n.flags|=-17&e.flags;for(const t in e)!He(n,t)&&He(e,t)&&("emitNode"!==t?n[t]=e[t]:n.emitNode=void 0);return n}(e);return n(r,e),r}function so(e,t=o){const n=b(313);return n.prepends=t,n.sourceFiles=e,n.syntheticFileReferences=void 0,n.syntheticTypeReferences=void 0,n.syntheticLibReferences=void 0,n.hasNoDefaultLib=void 0,n}function lo(e,t){const n=b(e);return n.data=t,n}function co(e,t){const n=b(360);return n.expression=e,n.original=t,n.transformFlags|=1|QA(n.expression),yk(n,t),n}function uo(e,t){return e.expression!==t?ko(co(t,e.original),e):e}function po(e){if(Sv(e)&&!Dl(e)&&!e.original&&!e.emitNode&&!e.id){if(FD(e))return e.elements;if(TD(e)&&qR(e.operatorToken))return[e.left,e.right]}return e}function fo(e){const t=b(361);return t.elements=v(Y(e,po)),t.transformFlags|=ZA(t.elements),t}function mo(e,t){const n=b(362);return n.expression=e,n.thisArg=t,n.transformFlags|=QA(n.expression)|QA(n.thisArg),n}function _o(e){if(void 0===e)return e;if(rM(e))return ao(e);if(ud(e))return function(e){const t=D(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),KI(t,{...e.emitNode.autoGenerate}),t}(e);if(nC(e))return function(e){const t=D(e.escapedText);t.flags|=-17&e.flags,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,n(t,e);const r=HI(e);return r&&UI(t,r),t}(e);if(pd(e))return function(e){const t=w(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),KI(t,{...e.emitNode.autoGenerate}),t}(e);if(rC(e))return function(e){const t=w(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),t}(e);const r=Xc(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);r.flags|=-17&e.flags,r.transformFlags=e.transformFlags,n(r,e);for(const t in e)!He(r,t)&&He(e,t)&&(r[t]=e[t]);return r}function ho(){return Nt(T("0"))}function go(e,t,n){return Pc(e)?dt(nt(e,void 0,t),void 0,void 0,n):ct(tt(e,t),void 0,n)}function yo(e,t,n){return go(L(e),t,n)}function vo(e,t,n){return!!n&&(e.push(eo(t,n)),!0)}function bo(e,t){const n=Ty(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 209:return 0!==n.elements.length;case 210:return n.properties.length>0;default:return!0}}function Eo(e,t,n,r=0,o){const i=o?e&&Gl(e):jl(e);if(i&&nC(i)&&!ud(i)){const e=Vx(yk(_o(i),i),i.parent);return r|=Rm(i),n||(r|=96),t||(r|=3072),r&&fI(e,r),e}return P(e)}function So(e,t,n){return Eo(e,t,n,16384)}function To(e,t,n,r){const o=tt(e,Sv(t)?t:_o(t));yk(o,t);let i=0;return r||(i|=96),n||(i|=3072),i&&fI(o,i),o}function xo(){return xL(ln(R("use strict")))}function Ao(e,t,n=0,r){In.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");let o=!1;const i=e.length;for(;n<i;){const r=e[n];if(!w_(r))break;zR((a=r).expression)&&"use strict"===a.expression.text&&(o=!0),t.push(r),n++}var a;return r&&!o&&t.push(xo()),n}function Io(e,t,n,r,o=St){const i=e.length;for(;void 0!==n&&n<i;){const i=e[n];if(!(2097152&Rm(i)&&o(i)))break;Ee(t,r?rB(i,r,wu):i),n++}return n}function Ro(e,t,n){let r=n;for(;r<e.length&&t(e[r]);)r++;return r}function Co(e){return e?v(e):void 0}function Do(e){return"string"===typeof e?L(e):e}function No(e){return"string"===typeof e?R(e):"number"===typeof e?T(e):"boolean"===typeof e?e?G():j():e}function Mo(e){return e&&r().parenthesizeExpressionForDisallowedComma(e)}function Lo(e){return e&&kN(e)?yk(n(sn(),e),e):e}function ko(e,t){return e!==t&&(n(e,t),yk(e,t)),e}}function XA(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return In.fail(`Unsupported kind: ${In.formatSyntaxKind(e)}`)}}function $A(e){return e&&nC(e)?YA(e):QA(e)}function YA(e){return-67108865&QA(e)}function QA(e){if(!e)return 0;const t=e.transformFlags&~tI(e.kind);return Bl(e)&&Ed(e.name)?(n=e.name,t|134234112&n.transformFlags):t;var n}function ZA(e){return e?e.transformFlags:0}function eI(e){let t=0;for(const n of e)t|=QA(n);e.transformFlags=t}function tI(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:case 206:case 207:return-2147450880;case 267:return-1941676032;case 169:case 216:case 238:case 234:case 360:case 217:case 108:case 211:case 212:default:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112}}function nI(e){return e.flags|=16,e}function rI(e,t,n){let r,i,a,s,l,c,d,u,p,f;ht(e)?(a="",s=e,l=e.length,c=t,d=n):(In.assert("js"===t||"dts"===t),a=("js"===t?e.javascriptPath:e.declarationPath)||"",c="js"===t?e.javascriptMapPath:e.declarationMapPath,u=()=>"js"===t?e.javascriptText:e.declarationText,p=()=>"js"===t?e.javascriptMapText:e.declarationMapText,l=()=>u().length,e.buildInfo&&e.buildInfo.bundle&&(In.assert(void 0===n||"boolean"===typeof n),r=n,i="js"===t?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,f=e.oldFileOfCurrentEmit));const m=f?function(e){let t,n;for(const o of e.sections)switch(o.kind){case"internal":case"text":t=Ee(t,yk(UA.createUnparsedTextLike(o.data,"internal"===o.kind),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=Ee(n,yk(UA.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:In.assertNever(o)}const r=UA.createUnparsedSource(o,n,t??o);return Ux(n,r),Ux(t,r),r.helpers=U(e.sources&&e.sources.helpers,(e=>PR().get(e))),r}(In.checkDefined(i)):function(e,t,n){let r,i,a,s,l,c,d,u;for(const f of e?e.sections:o)switch(f.kind){case"prologue":r=Ee(r,yk(UA.createUnparsedPrologue(f.data),f));break;case"emitHelpers":i=Ee(i,PR().get(f.data));break;case"no-default-lib":u=!0;break;case"reference":a=Ee(a,{pos:-1,end:-1,fileName:f.data});break;case"type":s=Ee(s,{pos:-1,end:-1,fileName:f.data});break;case"type-import":s=Ee(s,{pos:-1,end:-1,fileName:f.data,resolutionMode:99});break;case"type-require":s=Ee(s,{pos:-1,end:-1,fileName:f.data,resolutionMode:1});break;case"lib":l=Ee(l,{pos:-1,end:-1,fileName:f.data});break;case"prepend":let e;for(const n of f.texts)t&&"internal"===n.kind||(e=Ee(e,yk(UA.createUnparsedTextLike(n.data,"internal"===n.kind),n)));c=xe(c,e),d=Ee(d,UA.createUnparsedPrepend(f.data,e??o));break;case"internal":if(t){d||(d=[]);break}case"text":d=Ee(d,yk(UA.createUnparsedTextLike(f.data,"internal"===f.kind),f));break;default:In.assertNever(f)}if(!d){const e=UA.createUnparsedTextLike(void 0,!1);Gx(e,0,"function"===typeof n?n():n),d=[e]}const p=Rk.createUnparsedSource(r??o,void 0,d);return Ux(r,p),Ux(d,p),Ux(c,p),p.hasNoDefaultLib=u,p.helpers=i,p.referencedFiles=a||o,p.typeReferenceDirectives=s,p.libReferenceDirectives=l||o,p}(i,r,l);return m.fileName=a,m.sourceMapPath=c,m.oldFileOfCurrentEmit=f,u&&p?(Object.defineProperty(m,"text",{get:u}),Object.defineProperty(m,"sourceMapText",{get:p})):(In.assert(!f),m.text=s??"",m.sourceMapText=d),m}function oI(e,t,n,r,o,i){return ht(e)?aI(void 0,e,n,r,void 0,t,o,i):iI(e,t,n,r,o,i)}function iI(e,t,n,r,o,i,a,s){const l=Rk.createInputFiles();l.javascriptPath=t,l.javascriptMapPath=n,l.declarationPath=r,l.declarationMapPath=o,l.buildInfoPath=i;const c=new Map,d=t=>{if(void 0===t)return;let n=c.get(t);return void 0===n&&(n=e(t),c.set(t,void 0!==n&&n)),!1!==n?n:void 0},u=e=>{const t=d(e);return void 0!==t?t:`/* Input file ${e} was missing */\r\n`};let p;return Object.defineProperties(l,{javascriptText:{get:()=>u(t)},javascriptMapText:{get:()=>d(n)},declarationText:{get:()=>u(In.checkDefined(r))},declarationMapText:{get:()=>d(o)},buildInfo:{get:()=>{if(void 0===p&&i)if(null==a?void 0:a.getBuildInfo)p=a.getBuildInfo(i,s.configFilePath)??!1;else{const e=d(i);p=void 0!==e&&(VV(i,e)??!1)}return p||void 0}}}),l}function aI(e,t,n,r,o,i,a,s,l,c,d){const u=Rk.createInputFiles();return u.javascriptPath=e,u.javascriptText=t,u.javascriptMapPath=n,u.javascriptMapText=r,u.declarationPath=o,u.declarationText=i,u.declarationMapPath=a,u.declarationMapText=s,u.buildInfoPath=l,u.buildInfo=c,u.oldFileOfCurrentEmit=d,u}function sI(e,t,n){return new(HA||(HA=Wp.getSourceMapSourceConstructor()))(e,t,n)}function lI(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=function(e,t){const{flags:n,internalFlags:r,leadingComments:o,trailingComments:i,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:l,constantValue:c,helpers:d,startsOnNewLine:u,snippetElement:p,classThis:f,assignedName:m}=e;t||(t={});n&&(t.flags=n);r&&(t.internalFlags=-9&r);o&&(t.leadingComments=xe(o.slice(),t.leadingComments));i&&(t.trailingComments=xe(i.slice(),t.trailingComments));a&&(t.commentRange=a);s&&(t.sourceMapRange=s);l&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}(l,t.tokenSourceMapRanges));void 0!==c&&(t.constantValue=c);if(d)for(const _ of d)t.helpers=Ie(t.helpers,_);void 0!==u&&(t.startsOnNewLine=u);void 0!==p&&(t.snippetElement=p);f&&(t.classThis=f);m&&(t.assignedName=m);return t}(n,e.emitNode))}return e}var cI=b({"src/compiler/factory/nodeFactory.ts"(){JJ(),WA=0,zA=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(zA||{}),BA=[],jA={},VA=MA(),UA=JA(4,{createBaseSourceFileNode:e=>nI(VA.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>nI(VA.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>nI(VA.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>nI(VA.createBaseTokenNode(e)),createBaseNode:e=>nI(VA.createBaseNode(e))})}});function dI(e){if(e.emitNode)In.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(Dl(e)){if(312===e.kind)return e.emitNode={annotatedNodes:[e]};dI(Yf(Nl(Yf(e)))??In.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function uI(e){var t,n;const r=null==(n=null==(t=Yf(Nl(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const o of r)o.emitNode=void 0}function pI(e){const t=dI(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function fI(e,t){return dI(e).flags=t,e}function mI(e,t){const n=dI(e);return n.flags=n.flags|t,e}function _I(e,t){return dI(e).internalFlags=t,e}function hI(e,t){const n=dI(e);return n.internalFlags=n.internalFlags|t,e}function gI(e){var t;return(null==(t=e.emitNode)?void 0:t.sourceMapRange)??e}function yI(e,t){return dI(e).sourceMapRange=t,e}function vI(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}function bI(e,t,n){const r=dI(e);return(r.tokenSourceMapRanges??(r.tokenSourceMapRanges=[]))[t]=n,e}function EI(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function SI(e,t){return dI(e).startsOnNewLine=t,e}function TI(e){var t;return(null==(t=e.emitNode)?void 0:t.commentRange)??e}function xI(e,t){return dI(e).commentRange=t,e}function AI(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function II(e,t){return dI(e).leadingComments=t,e}function RI(e,t,n,r){return II(e,Ee(AI(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function CI(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function DI(e,t){return dI(e).trailingComments=t,e}function NI(e,t,n,r){return DI(e,Ee(CI(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function MI(e,t){II(e,AI(t)),DI(e,CI(t));const n=dI(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function LI(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function kI(e,t){return dI(e).constantValue=t,e}function PI(e,t){const n=dI(e);return n.helpers=Ee(n.helpers,t),e}function wI(e,t){if(se(t)){const n=dI(e);for(const e of t)n.helpers=Ie(n.helpers,e)}return e}function OI(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&tn(r,t)}function FI(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function WI(e,t,n){const r=e.emitNode,o=r&&r.helpers;if(!se(o))return;const i=dI(t);let a=0;for(let s=0;s<o.length;s++){const e=o[s];n(e)?(a++,i.helpers=Ie(i.helpers,e)):a>0&&(o[s-a]=e)}a>0&&(o.length-=a)}function zI(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function BI(e,t){return dI(e).snippetElement=t,e}function GI(e){return dI(e).internalFlags|=4,e}function jI(e,t){return dI(e).typeNode=t,e}function VI(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function UI(e,t){return dI(e).identifierTypeArguments=t,e}function HI(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function KI(e,t){return dI(e).autoGenerate=t,e}function qI(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function JI(e,t){return dI(e).generatedImportReference=t,e}function XI(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var $I,YI,QI,ZI,eR,tR,nR,rR,oR,iR,aR,sR,lR,cR,dR,uR,pR,fR,mR,_R,hR,gR,yR,vR,bR,ER,SR,TR,xR,AR,IR,RR,CR,DR,NR=b({"src/compiler/factory/emitNode.ts"(){JJ()}});function MR(e){const t=e.factory,n=Ct((()=>_I(t.createTrue(),8))),r=Ct((()=>_I(t.createFalse(),8)));return{getUnscopedHelperName:o,createDecorateHelper:function(n,r,i,a){e.requestEmitHelper(YI);const s=[];s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),i&&(s.push(i),a&&s.push(a));return t.createCallExpression(o("__decorate"),void 0,s)},createMetadataHelper:function(n,r){return e.requestEmitHelper(QI),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,i){return e.requestEmitHelper(ZI),yk(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(r+""),n]),i)},createESDecorateHelper:function(n,r,i,s,l,c){return e.requestEmitHelper(eR),t.createCallExpression(o("__esDecorate"),void 0,[n??t.createNull(),r??t.createNull(),i,a(s),l,c])},createRunInitializersHelper:function(n,r,i){return e.requestEmitHelper(tR),t.createCallExpression(o("__runInitializers"),void 0,i?[n,r,i]:[n,r])},createAssignHelper:function(n){if(jp(e.getCompilerOptions())>=2)return t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n);return e.requestEmitHelper(nR),t.createCallExpression(o("__assign"),void 0,n)},createAwaitHelper:function(n){return e.requestEmitHelper(rR),t.createCallExpression(o("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper(rR),e.requestEmitHelper(oR),(n.emitNode||(n.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return e.requestEmitHelper(rR),e.requestEmitHelper(iR),t.createCallExpression(o("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(aR),t.createCallExpression(o("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,i,a){e.requestEmitHelper(sR);const s=[];let l=0;for(let e=0;e<r.length-1;e++){const n=wL(r[e]);if(n)if(yC(n)){In.assertIsDefined(i,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const e=i[l];l++,s.push(t.createConditionalExpression(t.createTypeCheck(e,"symbol"),void 0,e,void 0,t.createAdd(e,t.createStringLiteral(""))))}else s.push(t.createStringLiteralFromNode(n))}return t.createCallExpression(o("__rest"),void 0,[n,yk(t.createArrayLiteralExpression(s),a)])},createAwaiterHelper:function(n,r,i,a,s){e.requestEmitHelper(lR);const l=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,a??[],void 0,s);return(l.emitNode||(l.emitNode={})).flags|=1572864,t.createCallExpression(o("__awaiter"),void 0,[n?t.createThis():t.createVoidZero(),r??t.createVoidZero(),i?aL(t,i):t.createVoidZero(),l])},createExtendsHelper:function(n){return e.requestEmitHelper(cR),t.createCallExpression(o("__extends"),void 0,[n,t.createUniqueName("_super",48)])},createTemplateObjectHelper:function(n,r){return e.requestEmitHelper(dR),t.createCallExpression(o("__makeTemplateObject"),void 0,[n,r])},createSpreadArrayHelper:function(i,a,s){return e.requestEmitHelper(pR),t.createCallExpression(o("__spreadArray"),void 0,[i,a,s?n():r()])},createPropKeyHelper:function(n){return e.requestEmitHelper(fR),t.createCallExpression(o("__propKey"),void 0,[n])},createSetFunctionNameHelper:function(t,n,r){return e.requestEmitHelper(mR),e.factory.createCallExpression(o("__setFunctionName"),void 0,r?[t,n,e.factory.createStringLiteral(r)]:[t,n])},createValuesHelper:function(n){return e.requestEmitHelper(_R),t.createCallExpression(o("__values"),void 0,[n])},createReadHelper:function(n,r){return e.requestEmitHelper(uR),t.createCallExpression(o("__read"),void 0,void 0!==r?[n,t.createNumericLiteral(r+"")]:[n])},createGeneratorHelper:function(n){return e.requestEmitHelper(hR),t.createCallExpression(o("__generator"),void 0,[t.createThis(),n])},createCreateBindingHelper:function(n,r,i){return e.requestEmitHelper(gR),t.createCallExpression(o("__createBinding"),void 0,[t.createIdentifier("exports"),n,r,...i?[i]:[]])},createImportStarHelper:function(n){return e.requestEmitHelper(vR),t.createCallExpression(o("__importStar"),void 0,[n])},createImportStarCallbackHelper:function(){return e.requestEmitHelper(vR),o("__importStar")},createImportDefaultHelper:function(n){return e.requestEmitHelper(bR),t.createCallExpression(o("__importDefault"),void 0,[n])},createExportStarHelper:function(n,r=t.createIdentifier("exports")){return e.requestEmitHelper(ER),e.requestEmitHelper(gR),t.createCallExpression(o("__exportStar"),void 0,[n,r])},createClassPrivateFieldGetHelper:function(n,r,i,a){let s;e.requestEmitHelper(SR),s=a?[n,r,t.createStringLiteral(i),a]:[n,r,t.createStringLiteral(i)];return t.createCallExpression(o("__classPrivateFieldGet"),void 0,s)},createClassPrivateFieldSetHelper:function(n,r,i,a,s){let l;e.requestEmitHelper(TR),l=s?[n,r,i,t.createStringLiteral(a),s]:[n,r,i,t.createStringLiteral(a)];return t.createCallExpression(o("__classPrivateFieldSet"),void 0,l)},createClassPrivateFieldInHelper:function(n,r){return e.requestEmitHelper(xR),t.createCallExpression(o("__classPrivateFieldIn"),void 0,[n,r])},createAddDisposableResourceHelper:function(n,r,i){return e.requestEmitHelper(AR),t.createCallExpression(o("__addDisposableResource"),void 0,[n,r,i?t.createTrue():t.createFalse()])},createDisposeResourcesHelper:function(n){return e.requestEmitHelper(IR),t.createCallExpression(o("__disposeResources"),void 0,[n])}};function o(e){return fI(t.createIdentifier(e),8196)}function i(e,n){const r=[];return r.push(function(e){const n=e.computed?e.name:nC(e.name)?t.createStringLiteralFromNode(e.name):e.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(n,103,t.createIdentifier("obj"))))}(e)),n.get&&r.push(function(e){const n=e.computed?t.createElementAccessExpression(t.createIdentifier("obj"),e.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),e.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,n))}(e)),n.set&&r.push(function(e){const n=e.computed?t.createElementAccessExpression(t.createIdentifier("obj"),e.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),e.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(n,t.createIdentifier("value")))])))}(e)),t.createObjectLiteralExpression(r)}function a(e){return"class"===e.kind?function(e){const n=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),e.name),t.createPropertyAssignment(t.createIdentifier("metadata"),e.metadata)];return t.createObjectLiteralExpression(n)}(e):function(e){const n=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(e.kind)),t.createPropertyAssignment(t.createIdentifier("name"),e.name.computed?e.name.name:t.createStringLiteralFromNode(e.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),e.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),e.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),i(e.name,e.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),e.metadata)];return t.createObjectLiteralExpression(n)}(e)}}function LR(e,t){return e===t||e.priority===t.priority?0:void 0===e.priority?1:void 0===t.priority?-1:Ft(e.priority,t.priority)}function kR(e,...t){return n=>{let r="";for(let o=0;o<t.length;o++)r+=e[o],r+=n(t[o]);return r+=e[e.length-1],r}}function PR(){return RR||(RR=et([YI,QI,ZI,eR,tR,nR,rR,oR,iR,aR,sR,lR,cR,dR,pR,_R,uR,fR,mR,hR,vR,bR,ER,SR,TR,xR,gR,yR,AR,IR],(e=>e.name)))}function wR(e,t){return dD(e)&&nC(e.expression)&&0!==(8192&Rm(e.expression))&&e.expression.escapedText===t}var OR=b({"src/compiler/factory/emitHelpers.ts"(){JJ(),$I=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))($I||{}),YI={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},QI={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},ZI={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},eR={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},tR={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},nR={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},oR={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[rR={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"}],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},iR={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[rR],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n };'},aR={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},sR={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},lR={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},cR={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},dR={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},uR={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},pR={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},fR={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},mR={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},_R={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},hR={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},vR={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[gR={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},yR={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},bR={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},ER={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[gR],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},SR={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},TR={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},xR={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},AR={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:'\n var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");\n var dispose;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");\n dispose = value[Symbol.dispose];\n }\n if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n };'},IR={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:'\n var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {\n return function (env) {\n function fail(e) {\n env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n env.hasError = true;\n }\n function next() {\n while (env.stack.length) {\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n catch (e) {\n fail(e);\n }\n }\n if (env.hasError) throw env.error;\n }\n return next();\n };\n })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n });'},CR={name:"typescript:async-super",scoped:!0,text:kR` + const ${"_superIndex"} = name => super[name];`},DR={name:"typescript:advanced-async-super",scoped:!0,text:kR` const ${"_superIndex"} = (function (geti, seti) { const cache = Object.create(null); return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); - })(name => super[name], (name, value) => super[name] = value);`}}});function dC(e){return 8===e.kind}function uC(e){return 9===e.kind}function _C(e){return 10===e.kind}function pC(e){return 11===e.kind}function fC(e){return 13===e.kind}function mC(e){return 14===e.kind}function hC(e){return 15===e.kind}function gC(e){return 16===e.kind}function yC(e){return 17===e.kind}function vC(e){return 25===e.kind}function bC(e){return 27===e.kind}function EC(e){return 39===e.kind}function TC(e){return 40===e.kind}function xC(e){return 41===e.kind}function SC(e){return 53===e.kind}function AC(e){return 57===e.kind}function LC(e){return 58===e.kind}function CC(e){return 28===e.kind}function kC(e){return 38===e.kind}function IC(e){return 79===e.kind}function wC(e){return 80===e.kind}function RC(e){return 93===e.kind}function NC(e){return 88===e.kind}function DC(e){return 132===e.kind}function OC(e){return 129===e.kind}function MC(e){return 133===e.kind}function PC(e){return 146===e.kind}function FC(e){return 124===e.kind}function GC(e){return 126===e.kind}function BC(e){return 161===e.kind}function UC(e){return 127===e.kind}function VC(e){return 106===e.kind}function jC(e){return 100===e.kind}function HC(e){return 82===e.kind}function KC(e){return 163===e.kind}function WC(e){return 164===e.kind}function zC(e){return 165===e.kind}function qC(e){return 166===e.kind}function JC(e){return 167===e.kind}function XC(e){return 168===e.kind}function YC(e){return 169===e.kind}function $C(e){return 170===e.kind}function QC(e){return 171===e.kind}function ZC(e){return 172===e.kind}function ek(e){return 173===e.kind}function nk(e){return 174===e.kind}function tk(e){return 175===e.kind}function rk(e){return 176===e.kind}function ik(e){return 177===e.kind}function ak(e){return 178===e.kind}function ok(e){return 179===e.kind}function sk(e){return 180===e.kind}function ck(e){return 181===e.kind}function lk(e){return 182===e.kind}function dk(e){return 183===e.kind}function uk(e){return 184===e.kind}function _k(e){return 185===e.kind}function pk(e){return 186===e.kind}function fk(e){return 199===e.kind}function mk(e){return 187===e.kind}function hk(e){return 188===e.kind}function gk(e){return 189===e.kind}function yk(e){return 190===e.kind}function vk(e){return 191===e.kind}function bk(e){return 192===e.kind}function Ek(e){return 193===e.kind}function Tk(e){return 194===e.kind}function xk(e){return 195===e.kind}function Sk(e){return 196===e.kind}function Ak(e){return 197===e.kind}function Lk(e){return 198===e.kind}function Ck(e){return 202===e.kind}function kk(e){return 201===e.kind}function Ik(e){return 200===e.kind}function wk(e){return 203===e.kind}function Rk(e){return 204===e.kind}function Nk(e){return 205===e.kind}function Dk(e){return 206===e.kind}function Ok(e){return 207===e.kind}function Mk(e){return 208===e.kind}function Pk(e){return 209===e.kind}function Fk(e){return 210===e.kind}function Gk(e){return 211===e.kind}function Bk(e){return 212===e.kind}function Uk(e){return 213===e.kind}function Vk(e){return 214===e.kind}function jk(e){return 215===e.kind}function Hk(e){return 216===e.kind}function Kk(e){return 217===e.kind}function Wk(e){return 218===e.kind}function zk(e){return 219===e.kind}function qk(e){return 220===e.kind}function Jk(e){return 221===e.kind}function Xk(e){return 222===e.kind}function Yk(e){return 223===e.kind}function $k(e){return 224===e.kind}function Qk(e){return 225===e.kind}function Zk(e){return 226===e.kind}function eI(e){return 227===e.kind}function nI(e){return 228===e.kind}function tI(e){return 229===e.kind}function rI(e){return 230===e.kind}function iI(e){return 231===e.kind}function aI(e){return 235===e.kind}function oI(e){return 232===e.kind}function sI(e){return 233===e.kind}function cI(e){return 234===e.kind}function lI(e){return 356===e.kind}function dI(e){return 357===e.kind}function uI(e){return 236===e.kind}function _I(e){return 237===e.kind}function pI(e){return 238===e.kind}function fI(e){return 240===e.kind}function mI(e){return 239===e.kind}function hI(e){return 241===e.kind}function gI(e){return 242===e.kind}function yI(e){return 243===e.kind}function vI(e){return 244===e.kind}function bI(e){return 245===e.kind}function EI(e){return 246===e.kind}function TI(e){return 247===e.kind}function xI(e){return 248===e.kind}function SI(e){return 249===e.kind}function AI(e){return 250===e.kind}function LI(e){return 251===e.kind}function CI(e){return 252===e.kind}function kI(e){return 253===e.kind}function II(e){return 254===e.kind}function wI(e){return 255===e.kind}function RI(e){return 256===e.kind}function NI(e){return 257===e.kind}function DI(e){return 258===e.kind}function OI(e){return 259===e.kind}function MI(e){return 260===e.kind}function PI(e){return 261===e.kind}function FI(e){return 262===e.kind}function GI(e){return 263===e.kind}function BI(e){return 264===e.kind}function UI(e){return 265===e.kind}function VI(e){return 266===e.kind}function jI(e){return 267===e.kind}function HI(e){return 268===e.kind}function KI(e){return 269===e.kind}function WI(e){return 270===e.kind}function zI(e){return 298===e.kind}function qI(e){return 296===e.kind}function JI(e){return 297===e.kind}function XI(e){return 271===e.kind}function YI(e){return 277===e.kind}function $I(e){return 272===e.kind}function QI(e){return 273===e.kind}function ZI(e){return 274===e.kind}function ew(e){return 275===e.kind}function nw(e){return 276===e.kind}function tw(e){return 278===e.kind}function rw(e){return 279===e.kind}function iw(e){return 355===e.kind}function aw(e){return 360===e.kind}function ow(e){return 358===e.kind}function sw(e){return 359===e.kind}function cw(e){return 280===e.kind}function lw(e){return 281===e.kind}function dw(e){return 282===e.kind}function uw(e){return 283===e.kind}function _w(e){return 284===e.kind}function pw(e){return 285===e.kind}function fw(e){return 286===e.kind}function mw(e){return 287===e.kind}function hw(e){return 288===e.kind}function gw(e){return 289===e.kind}function yw(e){return 290===e.kind}function vw(e){return 291===e.kind}function bw(e){return 292===e.kind}function Ew(e){return 293===e.kind}function Tw(e){return 294===e.kind}function xw(e){return 295===e.kind}function Sw(e){return 299===e.kind}function Aw(e){return 300===e.kind}function Lw(e){return 301===e.kind}function Cw(e){return 302===e.kind}function kw(e){return 304===e.kind}function Iw(e){return 308===e.kind}function ww(e){return 309===e.kind}function Rw(e){return 310===e.kind}function Nw(e){return 312===e.kind}function Dw(e){return 313===e.kind}function Ow(e){return 314===e.kind}function Mw(e){return 327===e.kind}function Pw(e){return 328===e.kind}function Fw(e){return 329===e.kind}function Gw(e){return 315===e.kind}function Bw(e){return 316===e.kind}function Uw(e){return 317===e.kind}function Vw(e){return 318===e.kind}function jw(e){return 319===e.kind}function Hw(e){return 320===e.kind}function Kw(e){return 321===e.kind}function Ww(e){return 322===e.kind}function zw(e){return 323===e.kind}function qw(e){return 325===e.kind}function Jw(e){return 326===e.kind}function Xw(e){return 331===e.kind}function Yw(e){return 333===e.kind}function $w(e){return 335===e.kind}function Qw(e){return 341===e.kind}function Zw(e){return 336===e.kind}function eR(e){return 337===e.kind}function nR(e){return 338===e.kind}function tR(e){return 339===e.kind}function rR(e){return 340===e.kind}function iR(e){return 342===e.kind}function aR(e){return 334===e.kind}function oR(e){return 350===e.kind}function sR(e){return 343===e.kind}function cR(e){return 344===e.kind}function lR(e){return 345===e.kind}function dR(e){return 346===e.kind}function uR(e){return 347===e.kind}function _R(e){return 348===e.kind}function pR(e){return 349===e.kind}function fR(e){return 330===e.kind}function mR(e){return 351===e.kind}function hR(e){return 332===e.kind}function gR(e){return 353===e.kind}function yR(e){return 352===e.kind}function vR(e){return 354===e.kind}var bR,ER,TR=E({"src/compiler/factory/nodeTests.ts"(){lq()}});function xR(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function SR(e,n,t,r){if(WC(t))return VN(e.createElementAccessExpression(n,t.expression),r);{const r=VN(Fl(t)?e.createPropertyAccessExpression(n,t):e.createElementAccessExpression(n,t),t);return HA(r,128),r}}function AR(e,n){const t=YN.createIdentifier(e||"React");return CS(t,Fc(n)),t}function LR(e,n,t){if(KC(n)){const r=LR(e,n.left,t),i=e.createIdentifier(Uc(n.right));return i.escapedText=n.right.escapedText,e.createPropertyAccessExpression(r,i)}return AR(Uc(n),t)}function CR(e,n,t,r){return n?LR(e,n,r):e.createPropertyAccessExpression(AR(t,r),"createElement")}function kR(e,n,t,r,i,a){const o=[t];if(r&&o.push(r),i&&i.length>0)if(r||o.push(e.createNull()),i.length>1)for(const s of i)YR(s),o.push(s);else o.push(i[0]);return VN(e.createCallExpression(n,void 0,o),a)}function IR(e,n,t,r,i,a,o){const s=function(e,n,t,r){return n?LR(e,n,r):e.createPropertyAccessExpression(AR(t,r),"Fragment")}(e,t,r,a),c=[s,e.createNull()];if(i&&i.length>0)if(i.length>1)for(const l of i)YR(l),c.push(l);else c.push(i[0]);return VN(e.createCallExpression(CR(e,n,r,a),void 0,c),o)}function wR(e,n,t){if(DI(n)){const r=Me(n.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,void 0,t);return VN(e.createVariableStatement(void 0,e.updateVariableDeclarationList(n,[i])),n)}{const r=VN(e.createAssignment(n,t),n);return VN(e.createExpressionStatement(r),n)}}function RR(e,n,t){return pI(n)?e.updateBlock(n,VN(e.createNodeArray([t,...n.statements]),n.statements)):e.createBlock(e.createNodeArray([n,t]),!0)}function NR(e,n){if(KC(n)){const t=NR(e,n.left),r=CS(VN(e.cloneNode(n.right),n.right),n.right.parent);return VN(e.createPropertyAccessExpression(t,r),n)}return CS(VN(e.cloneNode(n),n),n.parent)}function DR(e,n){return IC(n)?e.createStringLiteralFromNode(n):WC(n)?CS(VN(e.cloneNode(n.expression),n.expression),n.expression.parent):CS(VN(e.cloneNode(n),n),n.parent)}function OR(e,n,t,r){switch(t.name&&wC(t.name)&&Nt.failBadSyntaxKind(t.name,"Private identifiers are not allowed in object literals."),t.kind){case 174:case 175:return function(e,n,t,r,i){const{firstAccessor:a,getAccessor:o,setAccessor:s}=$v(n,t);if(t===a)return VN(e.createObjectDefinePropertyCall(r,DR(e,t.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:o&&VN(FA(e.createFunctionExpression(Qc(o),void 0,void 0,void 0,o.parameters,void 0,o.body),o),o),set:s&&VN(FA(e.createFunctionExpression(Qc(s),void 0,void 0,void 0,s.parameters,void 0,s.body),s),s)},!i)),a)}(e,n.properties,t,r,!!n.multiLine);case 299:return function(e,n,t){return FA(VN(e.createAssignment(SR(e,t,n.name,n.name),n.initializer),n),n)}(e,t,r);case 300:return function(e,n,t){return FA(VN(e.createAssignment(SR(e,t,n.name,n.name),e.cloneNode(n.name)),n),n)}(e,t,r);case 171:return function(e,n,t){return FA(VN(e.createAssignment(SR(e,t,n.name,n.name),FA(VN(e.createFunctionExpression(Qc(n),n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n)}(e,t,r)}}function MR(e,n,t,r,i){const a=n.operator;Nt.assert(45===a||46===a,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const o=e.createTempVariable(r);VN(t=e.createAssignment(o,t),n.operand);let s=Jk(n)?e.createPrefixUnaryExpression(a,o):e.createPostfixUnaryExpression(o,a);return VN(s,n),i&&(s=e.createAssignment(i,s),VN(s,n)),VN(t=e.createComma(t,s),n),Xk(n)&&VN(t=e.createComma(t,o),n),t}function PR(e){return 0!==(65536&df(e))}function FR(e){return 0!==(32768&df(e))}function GR(e){return 0!==(16384&df(e))}function BR(e){return _C(e.expression)&&"use strict"===e.expression.text}function UR(e){for(const n of e){if(!hm(n))break;if(BR(n))return n}}function VR(e){const n=De(e);return void 0!==n&&hm(n)&&BR(n)}function jR(e){return 223===e.kind&&27===e.operatorToken.kind}function HR(e){return jR(e)||dI(e)}function KR(e){return Vk(e)&&Ih(e)&&!!Al(e)}function WR(e){const n=Ll(e);return Nt.assertIsDefined(n),n}function zR(e,n=15){switch(e.kind){case 214:return!(16&n&&KR(e))&&0!==(1&n);case 213:case 231:case 230:case 235:return 0!==(2&n);case 232:return 0!==(4&n);case 356:return 0!==(8&n)}return!1}function qR(e,n=15){for(;zR(e,n);)e=e.expression;return e}function JR(e,n=15){let t=e.parent;for(;zR(t,n);)t=t.parent,Nt.assert(t);return t}function XR(e){return qR(e,6)}function YR(e){return $A(e,!0)}function $R(e){const n=Oc(e,Iw),t=n&&n.emitNode;return t&&t.externalHelpersModuleName}function QR(e){const n=Oc(e,Iw),t=n&&n.emitNode;return!!t&&(!!t.externalHelpersModuleName||!!t.externalHelpers)}function ZR(e,n,t,r,i,a,o){if(r.importHelpers&&kf(t,r)){let s;const c=KT(r);if(c>=5&&c<=99||99===t.impliedNodeFormat){const r=_L(t);if(r){const i=[];for(const e of r)if(!e.scoped){const n=e.importName;n&&Le(i,n)}if(ce(i)){i.sort(Wn),s=e.createNamedImports(W(i,(r=>Up(t,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),n.getUnscopedHelperName(r)))));BA(Oc(t,Iw)).externalHelpers=!0}}}else{const n=eN(e,t,r,i,a||o);n&&(s=e.createNamespaceImport(n))}if(s){const n=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,s),e.createStringLiteral(u_),void 0);return WA(n,2),n}}}function eN(e,n,t,r,i){if(t.importHelpers&&kf(n,t)){const a=$R(n);if(a)return a;const o=KT(t);let s=(r||ex(t)&&i)&&4!==o&&(o<5||1===n.impliedNodeFormat);if(!s){const e=_L(n);if(e)for(const n of e)if(!n.scoped){s=!0;break}}if(s){const t=BA(Oc(n,Iw));return t.externalHelpersModuleName||(t.externalHelpersModuleName=e.createUniqueName(u_))}}}function nN(e,n,t){const r=bg(n);if(r&&!Eg(n)&&!af(n)){const n=r.name;return yd(n)?n:e.createIdentifier(rf(t,n)||Uc(n))}return 269===n.kind&&n.importClause||275===n.kind&&n.moduleSpecifier?e.getGeneratedNameForNode(n):void 0}function tN(e,n,t,r,i,a){const o=vg(n);if(o&&_C(o))return function(e,n,t,r,i){return rN(t,r.getExternalModuleFileFromDeclaration(e),n,i)}(n,r,e,i,a)||function(e,n,t){const r=t.renamedDependencies&&t.renamedDependencies.get(n.text);return r?e.createStringLiteral(r):void 0}(e,o,t)||e.cloneNode(o)}function rN(e,n,t,r){if(n)return n.moduleName?e.createStringLiteral(n.moduleName):!n.isDeclarationFile&&Nv(r)?e.createStringLiteral(Lv(t,n.fileName)):void 0}function iN(e){if($d(e))return e.initializer;if(Sw(e)){const n=e.initializer;return Hb(n,!0)?n.right:void 0}return Aw(e)?e.objectAssignmentInitializer:Hb(e,!0)?e.right:eI(e)?iN(e.expression):void 0}function aN(e){if($d(e))return e.name;if(!Wd(e))return Hb(e,!0)?aN(e.left):eI(e)?aN(e.expression):e;switch(e.kind){case 299:return aN(e.initializer);case 300:return e.name;case 301:return aN(e.expression)}}function oN(e){switch(e.kind){case 166:case 205:return e.dotDotDotToken;case 227:case 301:return e}}function sN(e){const n=cN(e);return Nt.assert(!!n||Lw(e),"Invalid property name for binding element."),n}function cN(e){switch(e.kind){case 205:if(e.propertyName){const n=e.propertyName;return wC(n)?Nt.failBadSyntaxKind(n):WC(n)&&lN(n.expression)?n.expression:n}break;case 299:if(e.name){const n=e.name;return wC(n)?Nt.failBadSyntaxKind(n):WC(n)&&lN(n.expression)?n.expression:n}break;case 301:return e.name&&wC(e.name)?Nt.failBadSyntaxKind(e.name):e.name}const n=aN(e);if(n&&Cd(n))return n}function lN(e){const n=e.kind;return 10===n||8===n}function dN(e){switch(e.kind){case 203:case 204:case 206:return e.elements;case 207:return e.properties}}function uN(e){if(e){let n=e;for(;;){if(IC(n)||!n.body)return IC(n)?n:n.name;n=n.body}}}function _N(e){const n=e.kind;return 173===n||175===n}function pN(e){const n=e.kind;return 173===n||174===n||175===n}function fN(e){const n=e.kind;return 299===n||300===n||259===n||173===n||178===n||172===n||279===n||240===n||261===n||262===n||263===n||264===n||268===n||269===n||267===n||275===n||274===n}function mN(e){const n=e.kind;return 172===n||299===n||300===n||279===n||267===n}function hN(e){return AC(e)||SC(e)}function gN(e){return IC(e)||Tk(e)}function yN(e){return PC(e)||EC(e)||TC(e)}function vN(e){return AC(e)||EC(e)||TC(e)}function bN(e){return IC(e)||_C(e)}function EN(e){const n=e.kind;return 104===n||110===n||95===n||sd(e)||Jk(e)}function TN(e){return function(e){return 60===e||function(e){return function(e){return 55===e||56===e}(e)||function(e){return function(e){return 50===e||51===e||52===e}(e)||function(e){return function(e){return 34===e||36===e||35===e||37===e}(e)||function(e){return function(e){return 29===e||32===e||31===e||33===e||102===e||101===e}(e)||function(e){return function(e){return 47===e||48===e||49===e}(e)||function(e){return function(e){return 39===e||40===e}(e)||function(e){return function(e){return 42===e}(e)||function(e){return 41===e||43===e||44===e}(e)}(e)}(e)}(e)}(e)}(e)}(e)}(e)||Ub(e)}(e)||27===e}function xN(e){return TN(e.kind)}function SN(e,n,t,r,i,a){const o=new ER(e,n,t,r,i,a);return function(e,n){const t={value:void 0},r=[bR.enter],i=[e],a=[void 0];let s=0;for(;r[s]!==bR.done;)s=r[s](o,s,r,i,a,t,n);return Nt.assertEqual(s,0),t.value}}function AN(e){return 93===e||88===e}function LN(e){return AN(e.kind)}function CN(e){const n=e.kind;return Td(n)&&!AN(n)}function kN(e,n){if(void 0!==n)return 0===n.length?n:VN(e.createNodeArray([],n.hasTrailingComma),n)}function IN(e){var n;const t=e.emitNode.autoGenerate;if(4&t.flags){const r=t.id;let i=e,a=i.original;for(;a;){i=a;const e=null==(n=i.emitNode)?void 0:n.autoGenerate;if(Fl(i)&&(void 0===e||4&e.flags&&e.id!==r))break;a=i.original}return i}return e}function wN(e,n){return"object"===typeof e?NN(!1,e.prefix,e.node,e.suffix,n):"string"===typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function RN(e,n){return"string"===typeof e?e:function(e,n){return vd(e)?n(e).slice(1):yd(e)?n(e):wC(e)?e.escapedText.slice(1):Uc(e)}(e,Nt.checkDefined(n))}function NN(e,n,t,r,i){return n=wN(n,i),r=wN(r,i),`${e?"#":""}${n}${t=RN(t,i)}${r}`}function DN(e,n,t,r){return e.updatePropertyDeclaration(n,t,e.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage"),void 0,void 0,r)}function ON(e,n,t,r){return e.createGetAccessorDeclaration(t,r,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage")))]))}function MN(e,n,t,r){return e.createSetAccessorDeclaration(t,r,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(n.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function PN(e){let n=e.expression;for(;;)if(n=qR(n),dI(n))n=Ge(n.elements);else{if(!jR(n)){if(Hb(n,!0)&&yd(n.left))return n;break}n=n.right}}function FN(e,n){if(function(e){return Vk(e)&&$y(e)&&!e.emitNode}(e))FN(e.expression,n);else if(jR(e))FN(e.left,n),FN(e.right,n);else if(dI(e))for(const t of e.elements)FN(t,n);else n.push(e)}function GN(e){const n=[];return FN(e,n),n}function BN(e){if(65536&e.transformFlags)return!0;if(128&e.transformFlags)for(const n of dN(e)){const e=aN(n);if(e&&Xd(e)){if(65536&e.transformFlags)return!0;if(128&e.transformFlags&&BN(e))return!0}}return!1}var UN=E({"src/compiler/factory/utilities.ts"(){lq(),(e=>{function n(e,t,r,i,a,o,c){const l=t>0?a[t-1]:void 0;return Nt.assertEqual(r[t],n),a[t]=e.onEnter(i[t],l,c),r[t]=s(e,n),t}function t(e,n,r,i,a,o,d){Nt.assertEqual(r[n],t),Nt.assertIsDefined(e.onLeft),r[n]=s(e,t);const u=e.onLeft(i[n].left,a[n],i[n]);return u?(l(n,i,u),c(n,r,i,a,u)):n}function r(e,n,t,i,a,o,c){return Nt.assertEqual(t[n],r),Nt.assertIsDefined(e.onOperator),t[n]=s(e,r),e.onOperator(i[n].operatorToken,a[n],i[n]),n}function i(e,n,t,r,a,o,d){Nt.assertEqual(t[n],i),Nt.assertIsDefined(e.onRight),t[n]=s(e,i);const u=e.onRight(r[n].right,a[n],r[n]);return u?(l(n,r,u),c(n,t,r,a,u)):n}function a(e,n,t,r,i,o,c){Nt.assertEqual(t[n],a),t[n]=s(e,a);const l=e.onExit(r[n],i[n]);if(n>0){if(n--,e.foldState){const r=t[n]===a?"right":"left";i[n]=e.foldState(i[n],l,r)}}else o.value=l;return n}function o(e,n,t,r,i,a,s){return Nt.assertEqual(t[n],o),n}function s(e,s){switch(s){case n:if(e.onLeft)return t;case t:if(e.onOperator)return r;case r:if(e.onRight)return i;case i:return a;case a:case o:return o;default:Nt.fail("Invalid state")}}function c(e,t,r,i,a){return t[++e]=n,r[e]=a,i[e]=void 0,e}function l(e,n,t){if(Nt.shouldAssert(2))for(;e>=0;)Nt.assert(n[e]!==t,"Circular traversal detected."),e--}e.enter=n,e.left=t,e.operator=r,e.right=i,e.exit=a,e.done=o,e.nextState=s})(bR||(bR={})),ER=class{constructor(e,n,t,r,i,a){this.onEnter=e,this.onLeft=n,this.onOperator=t,this.onRight=r,this.onExit=i,this.foldState=a}}}});function VN(e,n){return n?SS(e,n.pos,n.end):e}function jN(e){const n=e.kind;return 165===n||166===n||168===n||169===n||170===n||171===n||173===n||174===n||175===n||178===n||182===n||215===n||216===n||228===n||240===n||259===n||260===n||261===n||262===n||263===n||264===n||268===n||269===n||274===n||275===n}function HN(e){const n=e.kind;return 166===n||169===n||171===n||174===n||175===n||228===n||260===n}var KN,WN,zN,qN,JN,XN,YN,$N,QN,ZN,eD,nD,tD,rD=E({"src/compiler/factory/utilitiesPublic.ts"(){lq()}});function iD(e,n){return n&&e(n)}function aD(e,n,t){if(t){if(n)return n(t);for(const n of t){const t=e(n);if(t)return t}}}function oD(e,n){return 42===e.charCodeAt(n+1)&&42===e.charCodeAt(n+2)&&47!==e.charCodeAt(n+3)}function sD(e){return A(e.statements,cD)||function(e){return 4194304&e.flags?lD(e):void 0}(e)}function cD(e){return jN(e)&&function(e,n){return ce(e.modifiers,(e=>e.kind===n))}(e,93)||HI(e)&&cw(e.moduleReference)||KI(e)||ZI(e)||ew(e)?e:void 0}function lD(e){return function(e){return sI(e)&&100===e.keywordToken&&"meta"===e.name.escapedText}(e)?e:CD(e,lD)}function dD(e,n,t){return aD(n,t,e.typeParameters)||aD(n,t,e.parameters)||iD(n,e.type)}function uD(e,n,t){return aD(n,t,e.types)}function _D(e,n,t){return iD(n,e.type)}function pD(e,n,t){return aD(n,t,e.elements)}function fD(e,n,t){return iD(n,e.expression)||iD(n,e.questionDotToken)||aD(n,t,e.typeArguments)||aD(n,t,e.arguments)}function mD(e,n,t){return aD(n,t,e.statements)}function hD(e,n,t){return iD(n,e.label)}function gD(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||aD(n,t,e.typeParameters)||aD(n,t,e.heritageClauses)||aD(n,t,e.members)}function yD(e,n,t){return aD(n,t,e.elements)}function vD(e,n,t){return iD(n,e.propertyName)||iD(n,e.name)}function bD(e,n,t){return iD(n,e.tagName)||aD(n,t,e.typeArguments)||iD(n,e.attributes)}function ED(e,n,t){return iD(n,e.type)}function TD(e,n,t){return iD(n,e.tagName)||(e.isNameFirst?iD(n,e.name)||iD(n,e.typeExpression):iD(n,e.typeExpression)||iD(n,e.name))||("string"===typeof e.comment?void 0:aD(n,t,e.comment))}function xD(e,n,t){return iD(n,e.tagName)||iD(n,e.typeExpression)||("string"===typeof e.comment?void 0:aD(n,t,e.comment))}function SD(e,n,t){return iD(n,e.name)}function AD(e,n,t){return iD(n,e.tagName)||("string"===typeof e.comment?void 0:aD(n,t,e.comment))}function LD(e,n,t){return iD(n,e.expression)}function CD(e,n,t){if(void 0===e||e.kind<=162)return;const r=$N[e.kind];return void 0===r?void 0:r(e,n,t)}function kD(e,n,t){const r=ID(e),i=[];for(;i.length<r.length;)i.push(e);for(;0!==r.length;){const e=r.pop(),a=i.pop();if(gn(e)){if(t){const n=t(e,a);if(n){if("skip"===n)continue;return n}}for(let n=e.length-1;n>=0;--n)r.push(e[n]),i.push(a)}else{const t=n(e,a);if(t){if("skip"===t)continue;return t}if(e.kind>=163)for(const n of ID(e))r.push(n),i.push(e)}}}function ID(e){const n=[];return CD(e,t,t),n;function t(e){n.unshift(e)}}function wD(e){e.externalModuleIndicator=sD(e)}function RD(e,n,t,r=!1,i){var a,o;let s;null==(a=Vr)||a.push(Vr.Phase.Parse,"createSourceFile",{path:e},!0),kr("beforeParse"),mr.logStartParseSourceFile(e);const{languageVersion:c,setExternalModuleIndicator:l,impliedNodeFormat:d}="object"===typeof t?t:{languageVersion:t};if(100===c)s=QN.parseSourceFile(e,n,c,void 0,r,6,xn);else{const t=void 0===d?l:e=>(e.impliedNodeFormat=d,(l||wD)(e));s=QN.parseSourceFile(e,n,c,void 0,r,i,t)}return mr.logStopParseSourceFile(),kr("afterParse"),Ir("Parse","beforeParse","afterParse"),null==(o=Vr)||o.pop(),s}function ND(e,n){return QN.parseIsolatedEntityName(e,n)}function DD(e,n){return QN.parseJsonText(e,n)}function OD(e){return void 0!==e.externalModuleIndicator}function MD(e,n,t,r=!1){const i=ZN.updateSourceFile(e,n,t,r);return i.flags|=6291456&e.flags,i}function PD(e,n,t){const r=QN.JSDocParser.parseIsolatedJSDocComment(e,n,t);return r&&r.jsDoc&&QN.fixupParentReferences(r.jsDoc),r}function FD(e,n,t){return QN.JSDocParser.parseJSDocTypeExpressionForTests(e,n,t)}function GD(e){return so(e,tp)||oo(e,".ts")&&rt(fo(e),".d.")}function BD(e,n){const t=[];for(const r of Hs(n,0)||i){jD(t,r,n.substring(r.pos,r.end))}e.pragmas=new Map;for(const r of t)if(e.pragmas.has(r.name)){const n=e.pragmas.get(r.name);n instanceof Array?n.push(r.args):e.pragmas.set(r.name,[n,r.args])}else e.pragmas.set(r.name,r.args)}function UD(e,n){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach(((t,r)=>{switch(r){case"reference":{const r=e.referencedFiles,i=e.typeReferenceDirectives,a=e.libReferenceDirectives;A(yn(t),(t=>{const{types:o,lib:s,path:c,"resolution-mode":l}=t.arguments;if(t.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(o){const e=function(e,n,t,r){if(e)return"import"===e?99:"require"===e?1:void r(n,t-n,Wo.resolution_mode_should_be_either_require_or_import)}(l,o.pos,o.end,n);i.push({pos:o.pos,end:o.end,fileName:o.value,...e?{resolutionMode:e}:{}})}else s?a.push({pos:s.pos,end:s.end,fileName:s.value}):c?r.push({pos:c.pos,end:c.end,fileName:c.value}):n(t.range.pos,t.range.end-t.range.pos,Wo.Invalid_reference_directive_syntax)}));break}case"amd-dependency":e.amdDependencies=W(yn(t),(e=>({name:e.arguments.name,path:e.arguments.path})));break;case"amd-module":if(t instanceof Array)for(const r of t)e.moduleName&&n(r.range.pos,r.range.end-r.range.pos,Wo.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=r.arguments.name;else e.moduleName=t.arguments.name;break;case"ts-nocheck":case"ts-check":A(yn(t),(n=>{(!e.checkJsDirective||n.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:"ts-check"===r,end:n.range.end,pos:n.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:Nt.fail("Unhandled pragma kind")}}))}function VD(e){if(eD.has(e))return eD.get(e);const n=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return eD.set(e,n),n}function jD(e,n,t){const r=2===n.kind&&nD.exec(t);if(r){const i=r[1].toLowerCase(),a=ua[i];if(!a||!(1&a.kind))return;if(a.args){const r={};for(const e of a.args){const i=VD(e.name).exec(t);if(!i&&!e.optional)return;if(i){const t=i[2]||i[3];if(e.captureSpan){const a=n.pos+i.index+i[1].length+1;r[e.name]={value:t,pos:a,end:a+t.length}}else r[e.name]=t}}e.push({name:i,args:{arguments:r,range:n}})}else e.push({name:i,args:{arguments:{},range:n}});return}const i=2===n.kind&&tD.exec(t);if(i)return HD(e,n,2,i);if(3===n.kind){const r=/@(\S+)(\s+.*)?$/gim;let i;for(;i=r.exec(t);)HD(e,n,4,i)}}function HD(e,n,t,r){if(!r)return;const i=r[1].toLowerCase(),a=ua[i];if(!a||!(a.kind&t))return;const o=function(e,n){if(!n)return{};if(!e.args)return{};const t=h(n).split(/\s+/),r={};for(let i=0;i<e.args.length;i++){const n=e.args[i];if(!t[i]&&!n.optional)return"fail";if(n.captureSpan)return Nt.fail("Capture spans not yet implemented for non-xml pragmas");r[n.name]=t[i]}return r}(a,r[2]);"fail"!==o&&e.push({name:i,args:{arguments:o,range:n}})}function KD(e,n){return e.kind===n.kind&&(79===e.kind?e.escapedText===n.escapedText:108===e.kind||e.name.escapedText===n.name.escapedText&&KD(e.expression,n.expression))}var WD,zD,qD,JD,XD,YD,$D,QD,ZD,eO,nO,tO,rO,iO,aO,oO,sO,cO,lO,dO,uO,_O,pO,fO,mO,hO,gO,yO,vO,bO,EO,TO,xO,SO,AO,LO,CO,kO,IO,wO,RO=E({"src/compiler/parser.ts"(){lq(),lq(),_a(),YN=EA(1,XN={createBaseSourceFileNode:e=>new(JN||(JN=F_.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(zN||(zN=F_.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(qN||(qN=F_.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(WN||(WN=F_.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(KN||(KN=F_.getNodeConstructor()))(e,-1,-1)}),$N={163:function(e,n,t){return iD(n,e.left)||iD(n,e.right)},165:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||iD(n,e.constraint)||iD(n,e.default)||iD(n,e.expression)},300:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||iD(n,e.questionToken)||iD(n,e.exclamationToken)||iD(n,e.equalsToken)||iD(n,e.objectAssignmentInitializer)},301:function(e,n,t){return iD(n,e.expression)},166:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.dotDotDotToken)||iD(n,e.name)||iD(n,e.questionToken)||iD(n,e.type)||iD(n,e.initializer)},169:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||iD(n,e.questionToken)||iD(n,e.exclamationToken)||iD(n,e.type)||iD(n,e.initializer)},168:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||iD(n,e.questionToken)||iD(n,e.type)||iD(n,e.initializer)},299:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||iD(n,e.questionToken)||iD(n,e.exclamationToken)||iD(n,e.initializer)},257:function(e,n,t){return iD(n,e.name)||iD(n,e.exclamationToken)||iD(n,e.type)||iD(n,e.initializer)},205:function(e,n,t){return iD(n,e.dotDotDotToken)||iD(n,e.propertyName)||iD(n,e.name)||iD(n,e.initializer)},178:function(e,n,t){return aD(n,t,e.modifiers)||aD(n,t,e.typeParameters)||aD(n,t,e.parameters)||iD(n,e.type)},182:function(e,n,t){return aD(n,t,e.modifiers)||aD(n,t,e.typeParameters)||aD(n,t,e.parameters)||iD(n,e.type)},181:function(e,n,t){return aD(n,t,e.modifiers)||aD(n,t,e.typeParameters)||aD(n,t,e.parameters)||iD(n,e.type)},176:dD,177:dD,171:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.asteriskToken)||iD(n,e.name)||iD(n,e.questionToken)||iD(n,e.exclamationToken)||aD(n,t,e.typeParameters)||aD(n,t,e.parameters)||iD(n,e.type)||iD(n,e.body)},170:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||iD(n,e.questionToken)||aD(n,t,e.typeParameters)||aD(n,t,e.parameters)||iD(n,e.type)},173:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||aD(n,t,e.typeParameters)||aD(n,t,e.parameters)||iD(n,e.type)||iD(n,e.body)},174:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||aD(n,t,e.typeParameters)||aD(n,t,e.parameters)||iD(n,e.type)||iD(n,e.body)},175:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||aD(n,t,e.typeParameters)||aD(n,t,e.parameters)||iD(n,e.type)||iD(n,e.body)},259:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.asteriskToken)||iD(n,e.name)||aD(n,t,e.typeParameters)||aD(n,t,e.parameters)||iD(n,e.type)||iD(n,e.body)},215:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.asteriskToken)||iD(n,e.name)||aD(n,t,e.typeParameters)||aD(n,t,e.parameters)||iD(n,e.type)||iD(n,e.body)},216:function(e,n,t){return aD(n,t,e.modifiers)||aD(n,t,e.typeParameters)||aD(n,t,e.parameters)||iD(n,e.type)||iD(n,e.equalsGreaterThanToken)||iD(n,e.body)},172:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.body)},180:function(e,n,t){return iD(n,e.typeName)||aD(n,t,e.typeArguments)},179:function(e,n,t){return iD(n,e.assertsModifier)||iD(n,e.parameterName)||iD(n,e.type)},183:function(e,n,t){return iD(n,e.exprName)||aD(n,t,e.typeArguments)},184:function(e,n,t){return aD(n,t,e.members)},185:function(e,n,t){return iD(n,e.elementType)},186:function(e,n,t){return aD(n,t,e.elements)},189:uD,190:uD,191:function(e,n,t){return iD(n,e.checkType)||iD(n,e.extendsType)||iD(n,e.trueType)||iD(n,e.falseType)},192:function(e,n,t){return iD(n,e.typeParameter)},202:function(e,n,t){return iD(n,e.argument)||iD(n,e.assertions)||iD(n,e.qualifier)||aD(n,t,e.typeArguments)},298:function(e,n,t){return iD(n,e.assertClause)},193:_D,195:_D,196:function(e,n,t){return iD(n,e.objectType)||iD(n,e.indexType)},197:function(e,n,t){return iD(n,e.readonlyToken)||iD(n,e.typeParameter)||iD(n,e.nameType)||iD(n,e.questionToken)||iD(n,e.type)||aD(n,t,e.members)},198:function(e,n,t){return iD(n,e.literal)},199:function(e,n,t){return iD(n,e.dotDotDotToken)||iD(n,e.name)||iD(n,e.questionToken)||iD(n,e.type)},203:pD,204:pD,206:function(e,n,t){return aD(n,t,e.elements)},207:function(e,n,t){return aD(n,t,e.properties)},208:function(e,n,t){return iD(n,e.expression)||iD(n,e.questionDotToken)||iD(n,e.name)},209:function(e,n,t){return iD(n,e.expression)||iD(n,e.questionDotToken)||iD(n,e.argumentExpression)},210:fD,211:fD,212:function(e,n,t){return iD(n,e.tag)||iD(n,e.questionDotToken)||aD(n,t,e.typeArguments)||iD(n,e.template)},213:function(e,n,t){return iD(n,e.type)||iD(n,e.expression)},214:function(e,n,t){return iD(n,e.expression)},217:function(e,n,t){return iD(n,e.expression)},218:function(e,n,t){return iD(n,e.expression)},219:function(e,n,t){return iD(n,e.expression)},221:function(e,n,t){return iD(n,e.operand)},226:function(e,n,t){return iD(n,e.asteriskToken)||iD(n,e.expression)},220:function(e,n,t){return iD(n,e.expression)},222:function(e,n,t){return iD(n,e.operand)},223:function(e,n,t){return iD(n,e.left)||iD(n,e.operatorToken)||iD(n,e.right)},231:function(e,n,t){return iD(n,e.expression)||iD(n,e.type)},232:function(e,n,t){return iD(n,e.expression)},235:function(e,n,t){return iD(n,e.expression)||iD(n,e.type)},233:function(e,n,t){return iD(n,e.name)},224:function(e,n,t){return iD(n,e.condition)||iD(n,e.questionToken)||iD(n,e.whenTrue)||iD(n,e.colonToken)||iD(n,e.whenFalse)},227:function(e,n,t){return iD(n,e.expression)},238:mD,265:mD,308:function(e,n,t){return aD(n,t,e.statements)||iD(n,e.endOfFileToken)},240:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.declarationList)},258:function(e,n,t){return aD(n,t,e.declarations)},241:function(e,n,t){return iD(n,e.expression)},242:function(e,n,t){return iD(n,e.expression)||iD(n,e.thenStatement)||iD(n,e.elseStatement)},243:function(e,n,t){return iD(n,e.statement)||iD(n,e.expression)},244:function(e,n,t){return iD(n,e.expression)||iD(n,e.statement)},245:function(e,n,t){return iD(n,e.initializer)||iD(n,e.condition)||iD(n,e.incrementor)||iD(n,e.statement)},246:function(e,n,t){return iD(n,e.initializer)||iD(n,e.expression)||iD(n,e.statement)},247:function(e,n,t){return iD(n,e.awaitModifier)||iD(n,e.initializer)||iD(n,e.expression)||iD(n,e.statement)},248:hD,249:hD,250:function(e,n,t){return iD(n,e.expression)},251:function(e,n,t){return iD(n,e.expression)||iD(n,e.statement)},252:function(e,n,t){return iD(n,e.expression)||iD(n,e.caseBlock)},266:function(e,n,t){return aD(n,t,e.clauses)},292:function(e,n,t){return iD(n,e.expression)||aD(n,t,e.statements)},293:function(e,n,t){return aD(n,t,e.statements)},253:function(e,n,t){return iD(n,e.label)||iD(n,e.statement)},254:function(e,n,t){return iD(n,e.expression)},255:function(e,n,t){return iD(n,e.tryBlock)||iD(n,e.catchClause)||iD(n,e.finallyBlock)},295:function(e,n,t){return iD(n,e.variableDeclaration)||iD(n,e.block)},167:function(e,n,t){return iD(n,e.expression)},260:gD,228:gD,261:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||aD(n,t,e.typeParameters)||aD(n,t,e.heritageClauses)||aD(n,t,e.members)},262:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||aD(n,t,e.typeParameters)||iD(n,e.type)},263:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||aD(n,t,e.members)},302:function(e,n,t){return iD(n,e.name)||iD(n,e.initializer)},264:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||iD(n,e.body)},268:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)||iD(n,e.moduleReference)},269:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.importClause)||iD(n,e.moduleSpecifier)||iD(n,e.assertClause)},270:function(e,n,t){return iD(n,e.name)||iD(n,e.namedBindings)},296:function(e,n,t){return aD(n,t,e.elements)},297:function(e,n,t){return iD(n,e.name)||iD(n,e.value)},267:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.name)},271:function(e,n,t){return iD(n,e.name)},277:function(e,n,t){return iD(n,e.name)},272:yD,276:yD,275:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.exportClause)||iD(n,e.moduleSpecifier)||iD(n,e.assertClause)},273:vD,278:vD,274:function(e,n,t){return aD(n,t,e.modifiers)||iD(n,e.expression)},225:function(e,n,t){return iD(n,e.head)||aD(n,t,e.templateSpans)},236:function(e,n,t){return iD(n,e.expression)||iD(n,e.literal)},200:function(e,n,t){return iD(n,e.head)||aD(n,t,e.templateSpans)},201:function(e,n,t){return iD(n,e.type)||iD(n,e.literal)},164:function(e,n,t){return iD(n,e.expression)},294:function(e,n,t){return aD(n,t,e.types)},230:function(e,n,t){return iD(n,e.expression)||aD(n,t,e.typeArguments)},280:function(e,n,t){return iD(n,e.expression)},279:function(e,n,t){return aD(n,t,e.modifiers)},357:function(e,n,t){return aD(n,t,e.elements)},281:function(e,n,t){return iD(n,e.openingElement)||aD(n,t,e.children)||iD(n,e.closingElement)},285:function(e,n,t){return iD(n,e.openingFragment)||aD(n,t,e.children)||iD(n,e.closingFragment)},282:bD,283:bD,289:function(e,n,t){return aD(n,t,e.properties)},288:function(e,n,t){return iD(n,e.name)||iD(n,e.initializer)},290:function(e,n,t){return iD(n,e.expression)},291:function(e,n,t){return iD(n,e.dotDotDotToken)||iD(n,e.expression)},284:function(e,n,t){return iD(n,e.tagName)},187:ED,188:ED,312:ED,318:ED,317:ED,319:ED,321:ED,320:function(e,n,t){return aD(n,t,e.parameters)||iD(n,e.type)},323:function(e,n,t){return("string"===typeof e.comment?void 0:aD(n,t,e.comment))||aD(n,t,e.tags)},350:function(e,n,t){return iD(n,e.tagName)||iD(n,e.name)||("string"===typeof e.comment?void 0:aD(n,t,e.comment))},313:function(e,n,t){return iD(n,e.name)},314:function(e,n,t){return iD(n,e.left)||iD(n,e.right)},344:TD,351:TD,333:function(e,n,t){return iD(n,e.tagName)||("string"===typeof e.comment?void 0:aD(n,t,e.comment))},332:function(e,n,t){return iD(n,e.tagName)||iD(n,e.class)||("string"===typeof e.comment?void 0:aD(n,t,e.comment))},331:function(e,n,t){return iD(n,e.tagName)||iD(n,e.class)||("string"===typeof e.comment?void 0:aD(n,t,e.comment))},348:function(e,n,t){return iD(n,e.tagName)||iD(n,e.constraint)||aD(n,t,e.typeParameters)||("string"===typeof e.comment?void 0:aD(n,t,e.comment))},349:function(e,n,t){return iD(n,e.tagName)||(e.typeExpression&&312===e.typeExpression.kind?iD(n,e.typeExpression)||iD(n,e.fullName)||("string"===typeof e.comment?void 0:aD(n,t,e.comment)):iD(n,e.fullName)||iD(n,e.typeExpression)||("string"===typeof e.comment?void 0:aD(n,t,e.comment)))},341:function(e,n,t){return iD(n,e.tagName)||iD(n,e.fullName)||iD(n,e.typeExpression)||("string"===typeof e.comment?void 0:aD(n,t,e.comment))},345:xD,347:xD,346:xD,343:xD,353:xD,352:xD,342:xD,326:function(e,n,t){return A(e.typeParameters,n)||A(e.parameters,n)||iD(n,e.type)},327:SD,328:SD,329:SD,325:function(e,n,t){return A(e.jsDocPropertyTags,n)},330:AD,335:AD,336:AD,337:AD,338:AD,339:AD,334:AD,340:AD,356:LD},(e=>{var n,t,r,o,s,c=Xs(99,!0),l=20480;function d(e){return E++,e}var u,_,p,f,m,h,g,y,v,b,E,T,x,S,A,L,C=EA(11,{createBaseSourceFileNode:e=>d(new s(e,0,0)),createBaseIdentifierNode:e=>d(new r(e,0,0)),createBasePrivateIdentifierNode:e=>d(new o(e,0,0)),createBaseTokenNode:e=>d(new t(e,0,0)),createBaseNode:e=>d(new n(e,0,0))}),{createNodeArray:k,createNumericLiteral:I,createStringLiteral:w,createLiteralLikeNode:R,createIdentifier:N,createPrivateIdentifier:D,createToken:O,createArrayLiteralExpression:P,createObjectLiteralExpression:F,createPropertyAccessExpression:G,createPropertyAccessChain:B,createElementAccessExpression:U,createElementAccessChain:V,createCallExpression:j,createCallChain:H,createNewExpression:K,createParenthesizedExpression:W,createBlock:z,createVariableStatement:q,createExpressionStatement:J,createIfStatement:X,createWhileStatement:Y,createForStatement:$,createForOfStatement:Q,createVariableDeclaration:Z,createVariableDeclarationList:ne}=C,te=!0,re=!1;function ie(e,n,t=2,r,i=!1){ae(e,n,t,r,6),_=L,ze();const a=Ve();let o,s;if(1===He())o=En([],a,a),s=hn();else{let e;for(;1!==He();){let n;switch(He()){case 22:n=si();break;case 110:case 95:case 104:n=hn();break;case 40:n=nn((()=>8===ze()&&58!==ze()))?Pr():li();break;case 8:case 10:if(nn((()=>58!==ze()))){n=mt();break}default:n=li()}e&&gn(e)?e.push(n):e?e=[e,n]:(e=n,1!==He()&&Me(Wo.Unexpected_token))}const n=gn(e)?Tn(P(e),a):Nt.checkDefined(e),t=J(n);Tn(t,a),o=En([t],a),s=mn(1,Wo.Unexpected_token)}const c=pe(e,2,6,!1,o,s,_,xn);i&&_e(c),c.nodeCount=E,c.identifierCount=x,c.identifiers=T,c.parseDiagnostics=CT(g,c),y&&(c.jsDocDiagnostics=CT(y,c));const l=c;return oe(),l}function ae(e,i,a,l,d){switch(n=F_.getNodeConstructor(),t=F_.getTokenConstructor(),r=F_.getIdentifierConstructor(),o=F_.getPrivateIdentifierConstructor(),s=F_.getSourceFileConstructor(),u=Ao(e),p=i,f=a,v=l,m=d,h=GT(d),g=[],S=0,T=new Map,x=0,E=0,_=0,te=!0,m){case 1:case 2:L=262144;break;case 6:L=67371008;break;default:L=0}re=!1,c.setText(p),c.setOnError(Ue),c.setScriptTarget(f),c.setLanguageVariant(h)}function oe(){c.clearCommentDirectives(),c.setText(""),c.setOnError(void 0),p=void 0,f=void 0,v=void 0,m=void 0,h=void 0,_=0,g=void 0,y=void 0,S=0,T=void 0,A=void 0,te=!0}function se(e,n){return n?ue(e):e}e.parseSourceFile=function(e,n,t,r,o=!1,s,l){var d;if(6===(s=Px(e,s))){const s=ie(e,n,t,r,o);return oM(s,null==(d=s.statements[0])?void 0:d.expression,s.parseDiagnostics,!1,void 0,void 0),s.referencedFiles=i,s.typeReferenceDirectives=i,s.libReferenceDirectives=i,s.amdDependencies=i,s.hasNoDefaultLib=!1,s.pragmas=a,s}ae(e,n,t,r,s);const f=function(e,n,t,r){const i=GD(u);i&&(L|=16777216);_=L,ze();const a=Yn(0,Ci);Nt.assert(1===He());const o=ue(hn()),s=pe(u,e,t,i,a,o,_,r);BD(s,p),UD(s,l),s.commentDirectives=c.getCommentDirectives(),s.nodeCount=E,s.identifierCount=x,s.identifiers=T,s.parseDiagnostics=CT(g,s),y&&(s.jsDocDiagnostics=CT(y,s));n&&_e(s);return s;function l(e,n,t){g.push(ST(u,e,n,t))}}(t,o,s,l||wD);return oe(),f},e.parseIsolatedEntityName=function(e,n){ae("",e,n,void 0,1),ze();const t=ot(!0),r=1===He()&&!g.length;return oe(),r?t:void 0},e.parseJsonText=ie;let le=!1;function ue(e){Nt.assert(!e.jsDoc);const n=ee(Tm(e,p),(n=>Ca.parseJSDocComment(e,n.pos,n.end-n.pos)));return n.length&&(e.jsDoc=n),le&&(le=!1,e.flags|=268435456),e}function _e(e){IS(e,!0)}function pe(e,n,t,r,i,a,o,s){let l=C.createSourceFile(i,a,o);return AS(l,0,p.length),d(l),!r&&OD(l)&&67108864&l.transformFlags&&(l=function(e){const n=v,t=ZN.createSyntaxCursor(e);v={currentNode:function(e){const n=t.currentNode(e);return te&&n&&s(n)&&(n.intersectsChange=!0),n}};const r=[],i=g;g=[];let a=0,o=l(e.statements,0);for(;-1!==o;){const n=e.statements[a],t=e.statements[o];Ae(r,e.statements,a,o),a=d(e.statements,o);const s=M(i,(e=>e.start>=n.pos)),u=s>=0?M(i,(e=>e.start>=t.pos),s):-1;s>=0&&Ae(g,i,s,u>=0?u:void 0),en((()=>{const n=L;for(L|=32768,c.setTextPos(t.pos),ze();1!==He();){const n=c.getStartPos(),t=$n(0,Ci);if(r.push(t),n===c.getStartPos()&&ze(),a>=0){const n=e.statements[a];if(t.end===n.pos)break;t.end>n.pos&&(a=d(e.statements,a+1))}}L=n}),2),o=a>=0?l(e.statements,a):-1}if(a>=0){const n=e.statements[a];Ae(r,e.statements,a);const t=M(i,(e=>e.start>=n.pos));t>=0&&Ae(g,i,t)}return v=n,C.updateSourceFile(e,VN(k(r),e.statements));function s(e){return!(32768&e.flags)&&!!(67108864&e.transformFlags)}function l(e,n){for(let t=n;t<e.length;t++)if(s(e[t]))return t;return-1}function d(e,n){for(let t=n;t<e.length;t++)if(!s(e[t]))return t;return-1}}(l),d(l)),l;function d(i){i.text=p,i.bindDiagnostics=[],i.bindSuggestionDiagnostics=void 0,i.languageVersion=n,i.fileName=e,i.languageVariant=GT(t),i.isDeclarationFile=r,i.scriptKind=t,s(i),i.setExternalModuleIndicator=s}}function fe(e,n){e?L|=n:L&=~n}function me(e){fe(e,4096)}function he(e){fe(e,8192)}function ge(e){fe(e,16384)}function ye(e){fe(e,32768)}function ve(e,n){const t=e&L;if(t){fe(!1,t);const e=n();return fe(!0,t),e}return n()}function be(e,n){const t=e&~L;if(t){fe(!0,t);const e=n();return fe(!1,t),e}return n()}function Ee(e){return ve(4096,e)}function xe(e){return ve(65536,e)}function Se(e){return be(65536,e)}function Le(e){return be(32768,e)}function Ce(e){return ve(32768,e)}function ke(e){return 0!==(L&e)}function Ie(){return ke(8192)}function we(){return ke(4096)}function Re(){return ke(65536)}function Ne(){return ke(16384)}function Oe(){return ke(32768)}function Me(e,n){return Ge(c.getTokenPos(),c.getTextPos(),e,n)}function Pe(e,n,t,r){const i=Fe(g);let a;return i&&e===i.start||(a=ST(u,e,n,t,r),g.push(a)),re=!0,a}function Ge(e,n,t,r){return Pe(e,n-e,t,r)}function Be(e,n,t){Ge(e.pos,e.end,n,t)}function Ue(e,n){Pe(c.getTextPos(),n,e)}function Ve(){return c.getStartPos()}function je(){return c.hasPrecedingJSDocComment()}function He(){return b}function Ke(){return b=c.scan()}function We(e){return ze(),e()}function ze(){return by(b)&&(c.hasUnicodeEscape()||c.hasExtendedUnicodeEscape())&&Ge(c.getTokenPos(),c.getTextPos(),Wo.Keywords_cannot_contain_escape_characters),Ke()}function qe(){return b=c.scanJsDocToken()}function Je(){return b=c.reScanGreaterToken()}function Xe(){return b=c.reScanTemplateHeadOrNoSubstitutionTemplate()}function Ye(){return b=c.reScanLessThanToken()}function $e(){return b=c.reScanHashToken()}function Qe(){return b=c.scanJsxIdentifier()}function Ze(){return b=c.scanJsxToken()}function en(e,n){const t=b,r=g.length,i=re,a=L,o=0!==n?c.lookAhead(e):c.tryScan(e);return Nt.assert(a===L),o&&0===n||(b=t,2!==n&&(g.length=r),re=i),o}function nn(e){return en(e,1)}function tn(e){return en(e,0)}function rn(){return 79===He()||He()>116}function an(){return 79===He()||(125!==He()||!Ie())&&((133!==He()||!Oe())&&He()>116)}function on(e,n,t=!0){return He()===e?(t&&ze(),!0):(n?Me(n):Me(Wo._0_expected,ms(e)),!1)}e.fixupParentReferences=_e;const sn=Object.keys(Jo).filter((e=>e.length>2));function cn(e){var n;if(Bk(e))return void Ge(Ns(p,e.template.pos),e.template.end,Wo.Module_declaration_names_may_only_use_or_quoted_strings);const t=IC(e)?Uc(e):void 0;if(!t||!Js(t,f))return void Me(Wo._0_expected,ms(26));const r=Ns(p,e.pos);switch(t){case"const":case"let":case"var":return void Ge(r,e.end,Wo.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void ln(Wo.Interface_name_cannot_be_0,Wo.Interface_must_be_given_a_name,18);case"is":return void Ge(r,c.getTextPos(),Wo.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void ln(Wo.Namespace_name_cannot_be_0,Wo.Namespace_must_be_given_a_name,18);case"type":return void ln(Wo.Type_alias_name_cannot_be_0,Wo.Type_alias_must_be_given_a_name,63)}const i=null!=(n=Qn(t,sn,(e=>e)))?n:function(e){for(const n of sn)if(e.length>n.length+2&&pt(e,n))return`${n} ${e.slice(n.length)}`;return}(t);i?Ge(r,e.end,Wo.Unknown_keyword_or_identifier_Did_you_mean_0,i):0!==He()&&Ge(r,e.end,Wo.Unexpected_keyword_or_identifier)}function ln(e,n,t){He()===t?Me(n):Me(e,c.getTokenValue())}function dn(e){return He()===e?(qe(),!0):(Me(Wo._0_expected,ms(e)),!1)}function un(e,n,t,r){if(He()===n)return void ze();const i=Me(Wo._0_expected,ms(n));t&&i&&cS(i,ST(u,r,1,Wo.The_parser_expected_to_find_a_1_to_match_the_0_token_here,ms(e),ms(n)))}function _n(e){return He()===e&&(ze(),!0)}function pn(e){if(He()===e)return hn()}function fn(e){if(He()===e)return function(){const e=Ve(),n=He();return qe(),Tn(O(n),e)}()}function mn(e,n,t){return pn(e)||Sn(e,!1,n||Wo._0_expected,t||ms(e))}function hn(){const e=Ve(),n=He();return ze(),Tn(O(n),e)}function yn(){return 26===He()||(19===He()||1===He()||c.hasPrecedingLineBreak())}function vn(){return!!yn()&&(26===He()&&ze(),!0)}function bn(){return vn()||on(26)}function En(e,n,t,r){const i=k(e,r);return SS(i,n,null!=t?t:c.getStartPos()),i}function Tn(e,n,t){return SS(e,n,null!=t?t:c.getStartPos()),L&&(e.flags|=L),re&&(re=!1,e.flags|=131072),e}function Sn(e,n,t,r){n?Pe(c.getStartPos(),0,t,r):t&&Me(t,r);const i=Ve();return Tn(79===e?N("",void 0):ld(e)?C.createTemplateLiteralLikeNode(e,"","",void 0):8===e?I("",void 0):10===e?w("",void 0):279===e?C.createMissingDeclaration():O(e),i)}function An(e){let n=T.get(e);return void 0===n&&T.set(e,n=e),n}function Ln(e,n,t){if(e){x++;const e=Ve(),n=He(),t=An(c.getTokenValue()),r=c.hasExtendedUnicodeEscape();return Ke(),Tn(N(t,n,r),e)}if(80===He())return Me(t||Wo.Private_identifiers_are_not_allowed_outside_class_bodies),Ln(!0);if(0===He()&&c.tryScan((()=>79===c.reScanInvalidIdentifier())))return Ln(!0);x++;const r=1===He(),i=c.isReservedWord(),a=c.getTokenText(),o=i?Wo.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:Wo.Identifier_expected;return Sn(79,r,n||o,a)}function Cn(e){return Ln(rn(),void 0,e)}function kn(e,n){return Ln(an(),e,n)}function In(e){return Ln(us(He()),e)}function wn(){return us(He())||10===He()||8===He()}function Rn(e){if(10===He()||8===He()){const e=mt();return e.text=An(e.text),e}return e&&22===He()?function(){const e=Ve();on(22);const n=Ee(Tr);return on(23),Tn(C.createComputedPropertyName(n),e)}():80===He()?Dn():In()}function Nn(){return Rn(!0)}function Dn(){const e=Ve(),n=D(An(c.getTokenValue()));return ze(),Tn(n,e)}function On(e){return He()===e&&tn(Pn)}function Mn(){return ze(),!c.hasPrecedingLineBreak()&&Bn()}function Pn(){switch(He()){case 85:return 92===ze();case 93:return ze(),88===He()?nn(Un):154===He()?nn(Gn):Fn();case 88:return Un();case 124:case 137:case 151:return ze(),Bn();default:return Mn()}}function Fn(){return 59===He()||41!==He()&&128!==He()&&18!==He()&&Bn()}function Gn(){return ze(),Fn()}function Bn(){return 22===He()||18===He()||41===He()||25===He()||wn()}function Un(){return ze(),84===He()||98===He()||118===He()||59===He()||126===He()&&nn(bi)||132===He()&&nn(Ei)}function Vn(e,n){if(Zn(e))return!0;switch(e){case 0:case 1:case 3:return!(26===He()&&n)&&Ai();case 2:return 82===He()||88===He();case 4:return nn(Bt);case 5:return nn(Ji)||26===He()&&!n;case 6:return 22===He()||wn();case 12:switch(He()){case 22:case 41:case 25:case 24:return!0;default:return wn()}case 18:return wn();case 9:return 22===He()||25===He()||wn();case 24:return us(He())||10===He();case 7:return 18===He()?nn(jn):n?an()&&!zn():br()&&!zn();case 8:return Mi();case 10:return 27===He()||25===He()||Mi();case 19:return 101===He()||85===He()||an();case 15:switch(He()){case 27:case 24:return!0}case 11:return 25===He()||Er();case 16:return Ct(!1);case 17:return Ct(!0);case 20:case 21:return 27===He()||ir();case 22:return ca();case 23:return us(He());case 13:return us(He())||18===He();case 14:return!0}return Nt.fail("Non-exhaustive case in 'isListElement'.")}function jn(){if(Nt.assert(18===He()),19===ze()){const e=ze();return 27===e||18===e||94===e||117===e}return!0}function Hn(){return ze(),an()}function Kn(){return ze(),us(He())}function Wn(){return ze(),_s(He())}function zn(){return(117===He()||94===He())&&nn(qn)}function qn(){return ze(),Er()}function Jn(){return ze(),ir()}function Xn(e){if(1===He())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 19===He();case 3:return 19===He()||82===He()||88===He();case 7:return 18===He()||94===He()||117===He();case 8:return function(){if(yn())return!0;if(Rr(He()))return!0;if(38===He())return!0;return!1}();case 19:return 31===He()||20===He()||18===He()||94===He()||117===He();case 11:return 21===He()||26===He();case 15:case 21:case 10:return 23===He();case 17:case 16:case 18:return 21===He()||23===He();case 20:return 27!==He();case 22:return 18===He()||19===He();case 13:return 31===He()||43===He();case 14:return 29===He()&&nn(ma);default:return!1}}function Yn(e,n){const t=S;S|=1<<e;const r=[],i=Ve();for(;!Xn(e);)if(Vn(e,!1))r.push($n(e,n));else if(nt(e))break;return S=t,En(r,i)}function $n(e,n){const t=Zn(e);return t?et(t):n()}function Zn(e,n){var t;if(!v||!function(e){switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}(e)||re)return;const r=v.currentNode(null!=n?n:c.getStartPos());if(Vp(r)||r.intersectsChange||Np(r))return;return(50720768&r.flags)===L&&function(e,n){switch(n){case 5:return function(e){if(e)switch(e.kind){case 173:case 178:case 174:case 175:case 169:case 237:return!0;case 171:const n=e;return!(79===n.name.kind&&"constructor"===n.name.escapedText)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 292:case 293:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 259:case 240:case 238:case 242:case 241:case 254:case 250:case 252:case 249:case 248:case 246:case 247:case 245:case 244:case 251:case 239:case 255:case 253:case 243:case 256:case 269:case 268:case 275:case 274:case 264:case 260:case 261:case 263:case 262:return!0}return!1}(e);case 6:return function(e){return 302===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 177:case 170:case 178:case 168:case 176:return!0}return!1}(e);case 8:return function(e){if(257!==e.kind)return!1;const n=e;return void 0===n.initializer}(e);case 17:case 16:return function(e){if(166!==e.kind)return!1;const n=e;return void 0===n.initializer}(e)}return!1}(r,e)?(Ng(r)&&(null==(t=r.jsDoc)?void 0:t.jsDocCache)&&(r.jsDoc.jsDocCache=void 0),r):void 0}function et(e){return c.setTextPos(e.end),ze(),e}function nt(e){return function(e){switch(e){case 0:return 88===He()?Me(Wo._0_expected,ms(93)):Me(Wo.Declaration_or_statement_expected);case 1:return Me(Wo.Declaration_or_statement_expected);case 2:return Me(Wo.case_or_default_expected);case 3:return Me(Wo.Statement_expected);case 18:case 4:return Me(Wo.Property_or_signature_expected);case 5:return Me(Wo.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Me(Wo.Enum_member_expected);case 7:return Me(Wo.Expression_expected);case 8:return by(He())?Me(Wo._0_is_not_allowed_as_a_variable_declaration_name,ms(He())):Me(Wo.Variable_declaration_expected);case 9:return Me(Wo.Property_destructuring_pattern_expected);case 10:return Me(Wo.Array_element_destructuring_pattern_expected);case 11:return Me(Wo.Argument_expression_expected);case 12:return Me(Wo.Property_assignment_expected);case 15:return Me(Wo.Expression_or_comma_expected);case 17:return Me(Wo.Parameter_declaration_expected);case 16:return by(He())?Me(Wo._0_is_not_allowed_as_a_parameter_name,ms(He())):Me(Wo.Parameter_declaration_expected);case 19:return Me(Wo.Type_parameter_declaration_expected);case 20:return Me(Wo.Type_argument_expected);case 21:return Me(Wo.Type_expected);case 22:return Me(Wo.Unexpected_token_expected);case 23:case 13:case 14:return Me(Wo.Identifier_expected);case 24:return Me(Wo.Identifier_or_string_literal_expected);case 25:return Nt.fail("ParsingContext.Count used as a context");default:Nt.assertNever(e)}}(e),!!function(){for(let e=0;e<25;e++)if(S&1<<e&&(Vn(e,!0)||Xn(e)))return!0;return!1}()||(ze(),!1)}function tt(e,n,t){const r=S;S|=1<<e;const i=[],a=Ve();let o=-1;for(;;)if(Vn(e,!1)){const a=c.getStartPos(),s=$n(e,n);if(!s)return void(S=r);if(i.push(s),o=c.getTokenPos(),_n(27))continue;if(o=-1,Xn(e))break;on(27,rt(e)),t&&26===He()&&!c.hasPrecedingLineBreak()&&ze(),a===c.getStartPos()&&ze()}else{if(Xn(e))break;if(nt(e))break}return S=r,En(i,a,void 0,o>=0)}function rt(e){return 6===e?Wo.An_enum_member_name_must_be_followed_by_a_or:void 0}function it(){const e=En([],Ve());return e.isMissingList=!0,e}function at(e,n,t,r){if(on(t)){const t=tt(e,n);return on(r),t}return it()}function ot(e,n){const t=Ve();let r=e?In(n):kn(n);for(;_n(24)&&29!==He();)r=Tn(C.createQualifiedName(r,ct(e,!1)),t);return r}function st(e,n){return Tn(C.createQualifiedName(e,n),e.pos)}function ct(e,n){if(c.hasPrecedingLineBreak()&&us(He())){if(nn(vi))return Sn(79,!0,Wo.Identifier_expected)}if(80===He()){const e=Dn();return n?e:Sn(79,!0,Wo.Identifier_expected)}return e?In():kn()}function lt(e){const n=Ve();return Tn(C.createTemplateExpression(ht(e),function(e){const n=Ve(),t=[];let r;do{r=ft(e),t.push(r)}while(16===r.literal.kind);return En(t,n)}(e)),n)}function dt(){const e=Ve();return Tn(C.createTemplateLiteralType(ht(!1),function(){const e=Ve(),n=[];let t;do{t=ut(),n.push(t)}while(16===t.literal.kind);return En(n,e)}()),e)}function ut(){const e=Ve();return Tn(C.createTemplateLiteralTypeSpan(yr(),_t(!1)),e)}function _t(e){return 19===He()?(function(e){b=c.reScanTemplateToken(e)}(e),function(){const e=gt(He());return Nt.assert(16===e.kind||17===e.kind,"Template fragment has wrong token kind"),e}()):mn(17,Wo._0_expected,ms(19))}function ft(e){const n=Ve();return Tn(C.createTemplateSpan(Ee(Tr),_t(e)),n)}function mt(){return gt(He())}function ht(e){e&&Xe();const n=gt(He());return Nt.assert(15===n.kind,"Template head has wrong token kind"),n}function gt(e){const n=Ve(),t=ld(e)?C.createTemplateLiteralLikeNode(e,c.getTokenValue(),function(e){const n=14===e||17===e,t=c.getTokenText();return t.substring(1,t.length-(c.isUnterminated()?0:n?1:2))}(e),2048&c.getTokenFlags()):8===e?I(c.getTokenValue(),c.getNumericLiteralFlags()):10===e?w(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):od(e)?R(e,c.getTokenValue()):Nt.fail();return c.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(t.isUnterminated=!0),ze(),Tn(t,n)}function yt(){return ot(!0,Wo.Type_expected)}function vt(){if(!c.hasPrecedingLineBreak()&&29===Ye())return at(20,yr,29,31)}function bt(){const e=Ve();return Tn(C.createTypeReferenceNode(yt(),vt()),e)}function Et(e){switch(e.kind){case 180:return Vp(e.typeName);case 181:case 182:{const{parameters:n,type:t}=e;return!!n.isMissingList||Et(t)}case 193:return Et(e.type);default:return!1}}function Tt(){const e=Ve();return ze(),Tn(C.createThisTypeNode(),e)}function xt(){const e=Ve();let n;return 108!==He()&&103!==He()||(n=In(),on(58)),Tn(C.createParameterDeclaration(void 0,void 0,n,void 0,St(),void 0),e)}function St(){c.setInJSDocType(!0);const e=Ve();if(_n(142)){const n=C.createJSDocNamepathType(void 0);e:for(;;)switch(He()){case 19:case 1:case 27:case 5:break e;default:qe()}return c.setInJSDocType(!1),Tn(n,e)}const n=_n(25);let t=hr();return c.setInJSDocType(!1),n&&(t=Tn(C.createJSDocVariadicType(t),e)),63===He()?(ze(),Tn(C.createJSDocOptionalType(t),e)):t}function At(){const e=Ve(),n=Zi(!1,!0),t=kn();let r,i;_n(94)&&(ir()||!Er()?r=yr():i=Fr());const a=_n(63)?yr():void 0,o=C.createTypeParameterDeclaration(n,t,r,a);return o.expression=i,Tn(o,e)}function Lt(){if(29===He())return at(19,At,29,31)}function Ct(e){return 25===He()||Mi()||Td(He())||59===He()||ir(!e)}function kt(e){return It(e)}function It(e,n=!0){const t=Ve(),r=je(),i=e?Le((()=>Zi(!0))):Ce((()=>Zi(!0)));if(108===He()){const e=C.createParameterDeclaration(i,void 0,Ln(!0),void 0,vr(),void 0),n=De(i);return n&&Be(n,Wo.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),se(Tn(e,t),r)}const a=te;te=!1;const o=pn(25);if(!n&&!rn()&&22!==He()&&18!==He())return;const s=se(Tn(C.createParameterDeclaration(i,o,function(e){const n=Pi(Wo.Private_identifiers_cannot_be_used_as_parameters);return 0===Ep(n)&&!ce(e)&&Td(He())&&ze(),n}(i),pn(57),vr(),xr()),t),r);return te=a,s}function wt(e,n){if(function(e,n){if(38===e)return on(e),!0;if(_n(58))return!0;if(n&&38===He())return Me(Wo._0_expected,ms(58)),ze(),!0;return!1}(e,n))return xe(hr)}function Rt(e,n){const t=Ie(),r=Oe();he(!!(1&e)),ye(!!(2&e));const i=32&e?tt(17,xt):tt(16,(()=>n?kt(r):It(r,!1)));return he(t),ye(r),i}function Dt(e){if(!on(20))return it();const n=Rt(e,!0);return on(21),n}function Ot(){_n(27)||bn()}function Mt(e){const n=Ve(),t=je();177===e&&on(103);const r=Lt(),i=Dt(4),a=wt(58,!0);Ot();return se(Tn(176===e?C.createCallSignature(r,i,a):C.createConstructSignature(r,i,a),n),t)}function Pt(){return 22===He()&&nn(Ft)}function Ft(){if(ze(),25===He()||23===He())return!0;if(Td(He())){if(ze(),an())return!0}else{if(!an())return!1;ze()}return 58===He()||27===He()||57===He()&&(ze(),58===He()||27===He()||23===He())}function Gt(e,n,t){const r=at(16,(()=>kt(!1)),22,23),i=vr();Ot();return se(Tn(C.createIndexSignature(t,r,i),e),n)}function Bt(){if(20===He()||29===He()||137===He()||151===He())return!0;let e=!1;for(;Td(He());)e=!0,ze();return 22===He()||(wn()&&(e=!0,ze()),!!e&&(20===He()||29===He()||57===He()||58===He()||27===He()||yn()))}function Ut(){if(20===He()||29===He())return Mt(176);if(103===He()&&nn(Vt))return Mt(177);const e=Ve(),n=je(),t=Zi(!1);return On(137)?qi(e,n,t,174,4):On(151)?qi(e,n,t,175,4):Pt()?Gt(e,n,t):function(e,n,t){const r=Nn(),i=pn(57);let a;if(20===He()||29===He()){const e=Lt(),n=Dt(4),o=wt(58,!0);a=C.createMethodSignature(t,r,i,e,n,o)}else{const e=vr();a=C.createPropertySignature(t,r,i,e),63===He()&&(a.initializer=xr())}return Ot(),se(Tn(a,e),n)}(e,n,t)}function Vt(){return ze(),20===He()||29===He()}function jt(){return 24===ze()}function Ht(){switch(ze()){case 20:case 29:case 24:return!0}return!1}function Kt(){let e;return on(18)?(e=Yn(4,Ut),on(19)):e=it(),e}function Wt(){return ze(),39===He()||40===He()?146===ze():(146===He()&&ze(),22===He()&&Hn()&&101===ze())}function zt(){const e=Ve();let n;on(18),146!==He()&&39!==He()&&40!==He()||(n=hn(),146!==n.kind&&on(146)),on(22);const t=function(){const e=Ve(),n=In();on(101);const t=yr();return Tn(C.createTypeParameterDeclaration(void 0,n,t,void 0),e)}(),r=_n(128)?yr():void 0;let i;on(23),57!==He()&&39!==He()&&40!==He()||(i=hn(),57!==i.kind&&on(57));const a=vr();bn();const o=Yn(4,Ut);return on(19),Tn(C.createMappedTypeNode(n,t,r,i,a,o),e)}function qt(){const e=Ve();if(_n(25))return Tn(C.createRestTypeNode(yr()),e);const n=yr();if(Uw(n)&&n.pos===n.type.pos){const e=C.createOptionalTypeNode(n.type);return VN(e,n),e.flags=n.flags,e}return n}function Jt(){return 58===ze()||57===He()&&58===ze()}function Xt(){return 25===He()?us(ze())&&Jt():us(He())&&Jt()}function Yt(){if(nn(Xt)){const e=Ve(),n=je(),t=pn(25),r=In(),i=pn(57);on(58);const a=qt();return se(Tn(C.createNamedTupleMember(t,r,i,a),e),n)}return qt()}function $t(){const e=Ve(),n=je(),t=function(){let e;if(126===He()){const n=Ve();ze(),e=En([Tn(O(126),n)],n)}return e}(),r=_n(103);Nt.assert(!t||r,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const i=Lt(),a=Dt(4),o=wt(38,!1);return se(Tn(r?C.createConstructorTypeNode(t,i,a,o):C.createFunctionTypeNode(i,a,o),e),n)}function Qt(){const e=hn();return 24===He()?void 0:e}function Zt(e){const n=Ve();e&&ze();let t=110===He()||95===He()||104===He()?hn():gt(He());return e&&(t=Tn(C.createPrefixUnaryExpression(40,t),n)),Tn(C.createLiteralTypeNode(t),n)}function er(){return ze(),100===He()}function nr(){_|=2097152;const e=Ve(),n=_n(112);on(100),on(20);const t=yr();let r;_n(27)&&(r=function(){const e=Ve(),n=c.getTokenPos();on(18);const t=c.hasPrecedingLineBreak();on(130),on(58);const r=ga(!0);if(!on(19)){const e=Fe(g);e&&e.code===Wo._0_expected.code&&cS(e,ST(u,n,1,Wo.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Tn(C.createImportTypeAssertionContainer(r,t),e)}()),on(21);const i=_n(24)?yt():void 0,a=vt();return Tn(C.createImportTypeNode(t,r,i,a,n),e)}function tr(){return ze(),8===He()||9===He()}function rr(){switch(He()){case 131:case 157:case 152:case 148:case 160:case 153:case 134:case 155:case 144:case 149:return tn(Qt)||bt();case 66:c.reScanAsteriskEqualsToken();case 41:return function(){const e=Ve();return ze(),Tn(C.createJSDocAllType(),e)}();case 60:c.reScanQuestionToken();case 57:return function(){const e=Ve();return ze(),27===He()||19===He()||21===He()||31===He()||63===He()||51===He()?Tn(C.createJSDocUnknownType(),e):Tn(C.createJSDocNullableType(yr(),!1),e)}();case 98:return function(){const e=Ve(),n=je();if(nn(pa)){ze();const t=Dt(36),r=wt(58,!1);return se(Tn(C.createJSDocFunctionType(t,r),e),n)}return Tn(C.createTypeReferenceNode(In(),void 0),e)}();case 53:return function(){const e=Ve();return ze(),Tn(C.createJSDocNonNullableType(rr(),!1),e)}();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Zt();case 40:return nn(tr)?Zt(!0):bt();case 114:return hn();case 108:{const n=Tt();return 140!==He()||c.hasPrecedingLineBreak()?n:(e=n,ze(),Tn(C.createTypePredicateNode(void 0,e,yr()),e.pos))}case 112:return nn(er)?nr():function(){const e=Ve();on(112);const n=ot(!0),t=c.hasPrecedingLineBreak()?void 0:sa();return Tn(C.createTypeQueryNode(n,t),e)}();case 18:return nn(Wt)?zt():function(){const e=Ve();return Tn(C.createTypeLiteralNode(Kt()),e)}();case 22:return function(){const e=Ve();return Tn(C.createTupleTypeNode(at(21,Yt,22,23)),e)}();case 20:return function(){const e=Ve();on(20);const n=yr();return on(21),Tn(C.createParenthesizedType(n),e)}();case 100:return nr();case 129:return nn(vi)?function(){const e=Ve(),n=mn(129),t=108===He()?Tt():kn(),r=_n(140)?yr():void 0;return Tn(C.createTypePredicateNode(n,t,r),e)}():bt();case 15:return dt();default:return bt()}var e}function ir(e){switch(He()){case 131:case 157:case 152:case 148:case 160:case 134:case 146:case 153:case 156:case 114:case 155:case 104:case 108:case 112:case 144:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 149:case 41:case 57:case 53:case 25:case 138:case 100:case 129:case 14:case 15:return!0;case 98:return!e;case 40:return!e&&nn(tr);case 20:return!e&&nn(ar);default:return an()}}function ar(){return ze(),21===He()||Ct(!1)||ir()}function or(){const e=Ve();let n=rr();for(;!c.hasPrecedingLineBreak();)switch(He()){case 53:ze(),n=Tn(C.createJSDocNonNullableType(n,!0),e);break;case 57:if(nn(Jn))return n;ze(),n=Tn(C.createJSDocNullableType(n,!0),e);break;case 22:if(on(22),ir()){const t=yr();on(23),n=Tn(C.createIndexedAccessTypeNode(n,t),e)}else on(23),n=Tn(C.createArrayTypeNode(n),e);break;default:return n}return n}function sr(){if(_n(94)){const e=Se(yr);if(Re()||57!==He())return e}}function cr(){const e=Ve();return on(138),Tn(C.createInferTypeNode(function(){const e=Ve(),n=kn(),t=tn(sr);return Tn(C.createTypeParameterDeclaration(void 0,n,t),e)}()),e)}function lr(){const e=He();switch(e){case 141:case 156:case 146:return function(e){const n=Ve();return on(e),Tn(C.createTypeOperatorNode(e,lr()),n)}(e);case 138:return cr()}return xe(or)}function dr(e){if(fr()){const n=$t();let t;return t=ck(n)?e?Wo.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:Wo.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?Wo.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:Wo.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Be(n,t),n}}function ur(e,n,t){const r=Ve(),i=51===e,a=_n(e);let o=a&&dr(i)||n();if(He()===e||a){const a=[o];for(;_n(e);)a.push(dr(i)||n());o=Tn(t(En(a,r)),r)}return o}function _r(){return ur(50,lr,C.createIntersectionTypeNode)}function pr(){return ze(),103===He()}function fr(){return 29===He()||(!(20!==He()||!nn(mr))||(103===He()||126===He()&&nn(pr)))}function mr(){if(ze(),21===He()||25===He())return!0;if(function(){if(Td(He())&&Zi(!1),an()||108===He())return ze(),!0;if(22===He()||18===He()){const e=g.length;return Pi(),e===g.length}return!1}()){if(58===He()||27===He()||57===He()||63===He())return!0;if(21===He()&&(ze(),38===He()))return!0}return!1}function hr(){const e=Ve(),n=an()&&tn(gr),t=yr();return n?Tn(C.createTypePredicateNode(void 0,n,t),e):t}function gr(){const e=kn();if(140===He()&&!c.hasPrecedingLineBreak())return ze(),e}function yr(){if(40960&L)return ve(40960,yr);if(fr())return $t();const e=Ve(),n=ur(51,_r,C.createUnionTypeNode);if(!Re()&&!c.hasPrecedingLineBreak()&&_n(94)){const t=Se(yr);on(57);const r=xe(yr);on(58);const i=xe(yr);return Tn(C.createConditionalTypeNode(n,t,r,i),e)}return n}function vr(){return _n(58)?yr():void 0}function br(){switch(He()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return nn(Ht);default:return an()}}function Er(){if(br())return!0;switch(He()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 133:case 125:case 80:case 59:return!0;default:return!!Dr()||an()}}function Tr(){const e=Ne();e&&ge(!1);const n=Ve();let t,r=Sr(!0);for(;t=pn(27);)r=Or(r,t,Sr(!0),n);return e&&ge(!0),r}function xr(){return _n(63)?Sr(!0):void 0}function Sr(e){if(function(){if(125===He())return!!Ie()||nn(Ti);return!1}())return function(){const e=Ve();return ze(),c.hasPrecedingLineBreak()||41!==He()&&!Er()?Tn(C.createYieldExpression(void 0,void 0),e):Tn(C.createYieldExpression(pn(41),Sr(!0)),e)}();const n=function(e){const n=function(){if(20===He()||29===He()||132===He())return nn(Lr);if(38===He())return 1;return 0}();if(0===n)return;return 1===n?kr(!0,!0):tn((()=>function(e){const n=c.getTokenPos();if(null==A?void 0:A.has(n))return;const t=kr(!1,e);t||(A||(A=new Set)).add(n);return t}(e)))}(e)||function(e){if(132===He()&&1===nn(Cr)){const n=Ve(),t=ea();return Ar(n,wr(0),e,t)}return}(e);if(n)return n;const t=Ve(),r=wr(0);return 79===r.kind&&38===He()?Ar(t,r,e,void 0):lu(r)&&Ub(Je())?Or(r,hn(),Sr(e),t):function(e,n,t){const r=pn(57);if(!r)return e;let i;return Tn(C.createConditionalExpression(e,r,ve(l,(()=>Sr(!1))),i=mn(58),jp(i)?Sr(t):Sn(79,!1,Wo._0_expected,ms(58))),n)}(r,t,e)}function Ar(e,n,t,r){Nt.assert(38===He(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const i=C.createParameterDeclaration(void 0,void 0,n,void 0,void 0,void 0);Tn(i,n.pos);const a=En([i],i.pos,i.end),o=mn(38),s=Ir(!!r,t);return ue(Tn(C.createArrowFunction(r,void 0,a,void 0,o,s),e))}function Lr(){if(132===He()){if(ze(),c.hasPrecedingLineBreak())return 0;if(20!==He()&&29!==He())return 0}const e=He(),n=ze();if(20===e){if(21===n){switch(ze()){case 38:case 58:case 18:return 1;default:return 0}}if(22===n||18===n)return 2;if(25===n)return 1;if(Td(n)&&132!==n&&nn(Hn))return 128===ze()?0:1;if(!an()&&108!==n)return 0;switch(ze()){case 58:return 1;case 57:return ze(),58===He()||27===He()||63===He()||21===He()?1:0;case 27:case 63:case 21:return 2}return 0}if(Nt.assert(29===e),!an()&&85!==He())return 0;if(1===h){return nn((()=>{_n(85);const e=ze();if(94===e){switch(ze()){case 63:case 31:case 43:return!1;default:return!0}}else if(27===e||63===e)return!0;return!1}))?1:0}return 2}function Cr(){if(132===He()){if(ze(),c.hasPrecedingLineBreak()||38===He())return 0;const e=wr(0);if(!c.hasPrecedingLineBreak()&&79===e.kind&&38===He())return 1}return 0}function kr(e,n){const t=Ve(),r=je(),i=ea(),a=ce(i,DC)?2:0,o=Lt();let s;if(on(20)){if(e)s=Rt(a,e);else{const n=Rt(a,e);if(!n)return;s=n}if(!on(21)&&!e)return}else{if(!e)return;s=it()}const c=58===He(),l=wt(58,!1);if(l&&!e&&Et(l))return;let d=l;for(;193===(null==d?void 0:d.kind);)d=d.type;const u=d&&Hw(d);if(!e&&38!==He()&&(u||18!==He()))return;const _=He(),p=mn(38),f=38===_||18===_?Ir(ce(i,DC),n):kn();if(!n&&c&&58!==He())return;return se(Tn(C.createArrowFunction(i,o,s,l,p,f),t),r)}function Ir(e,n){if(18===He())return pi(e?2:0);if(26!==He()&&98!==He()&&84!==He()&&Ai()&&(18===He()||98===He()||84===He()||59===He()||!Er()))return pi(16|(e?2:0));const t=te;te=!1;const r=e?Le((()=>Sr(n))):Ce((()=>Sr(n)));return te=t,r}function wr(e){const n=Ve();return Nr(e,Fr(),n)}function Rr(e){return 101===e||162===e}function Nr(e,n,t){for(;;){Je();const a=iv(He());if(!(42===He()?a>=e:a>e))break;if(101===He()&&we())break;if(128===He()||150===He()){if(c.hasPrecedingLineBreak())break;{const e=He();ze(),n=150===e?(r=n,i=yr(),Tn(C.createSatisfiesExpression(r,i),r.pos)):Mr(n,yr())}}else n=Or(n,hn(),wr(a),t)}var r,i;return n}function Dr(){return(!we()||101!==He())&&iv(He())>0}function Or(e,n,t,r){return Tn(C.createBinaryExpression(e,n,t),r)}function Mr(e,n){return Tn(C.createAsExpression(e,n),e.pos)}function Pr(){const e=Ve();return Tn(C.createPrefixUnaryExpression(He(),We(Gr)),e)}function Fr(){if(function(){switch(He()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 133:return!1;case 29:if(1!==h)return!1;default:return!0}}()){const e=Ve(),n=Br();return 42===He()?Nr(iv(He()),n,e):n}const e=He(),n=Gr();if(42===He()){const t=Ns(p,n.pos),{end:r}=n;213===n.kind?Ge(t,r,Wo.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):Ge(t,r,Wo.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,ms(e))}return n}function Gr(){switch(He()){case 39:case 40:case 54:case 53:return Pr();case 89:return function(){const e=Ve();return Tn(C.createDeleteExpression(We(Gr)),e)}();case 112:return function(){const e=Ve();return Tn(C.createTypeOfExpression(We(Gr)),e)}();case 114:return function(){const e=Ve();return Tn(C.createVoidExpression(We(Gr)),e)}();case 29:return 1===h?jr(!0):function(){Nt.assert(1!==h,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const e=Ve();on(29);const n=yr();on(31);const t=Gr();return Tn(C.createTypeAssertion(n,t),e)}();case 133:if(133===He()&&(Oe()||nn(Ti)))return function(){const e=Ve();return Tn(C.createAwaitExpression(We(Gr)),e)}();default:return Br()}}function Br(){if(45===He()||46===He()){const e=Ve();return Tn(C.createPrefixUnaryExpression(He(),We(Ur)),e)}if(1===h&&29===He()&&nn(Wn))return jr(!0);const e=Ur();if(Nt.assert(lu(e)),(45===He()||46===He())&&!c.hasPrecedingLineBreak()){const n=He();return ze(),Tn(C.createPostfixUnaryExpression(e,n),e.pos)}return e}function Ur(){const e=Ve();let n;return 100===He()?nn(Vt)?(_|=2097152,n=hn()):nn(jt)?(ze(),ze(),n=Tn(C.createMetaProperty(100,In()),e),_|=4194304):n=Vr():n=106===He()?function(){const e=Ve();let n=hn();if(29===He()){const e=Ve(),t=tn(ri);void 0!==t&&(Ge(e,Ve(),Wo.super_may_not_use_type_arguments),Zr()||(n=C.createExpressionWithTypeArguments(n,t)))}if(20===He()||24===He()||22===He())return n;return mn(24,Wo.super_must_be_followed_by_an_argument_list_or_member_access),Tn(G(n,ct(!0,!0)),e)}():Vr(),ni(e,n)}function Vr(){return Qr(Ve(),ii(),!0)}function jr(e,n,t){const r=Ve(),i=function(e){const n=Ve();if(on(29),31===He())return Ze(),Tn(C.createJsxOpeningFragment(),n);const t=Wr(),r=0===(262144&L)?sa():void 0,i=function(){const e=Ve();return Tn(C.createJsxAttributes(Yn(13,qr)),e)}();let a;31===He()?(Ze(),a=C.createJsxOpeningElement(t,r,i)):(on(43),on(31,void 0,!1)&&(e?ze():Ze()),a=C.createJsxSelfClosingElement(t,r,i));return Tn(a,n)}(e);let a;if(283===i.kind){let n,o=Kr(i);const s=o[o.length-1];if(281===(null==s?void 0:s.kind)&&!KD(s.openingElement.tagName,s.closingElement.tagName)&&KD(i.tagName,s.closingElement.tagName)){const e=s.children.end,t=Tn(C.createJsxElement(s.openingElement,s.children,Tn(C.createJsxClosingElement(Tn(N(""),e,e)),e,e)),s.openingElement.pos,e);o=En([...o.slice(0,o.length-1),t],o.pos,e),n=s.closingElement}else n=function(e,n){const t=Ve();on(30);const r=Wr();on(31,void 0,!1)&&(n||!KD(e.tagName,r)?ze():Ze());return Tn(C.createJsxClosingElement(r),t)}(i,e),KD(i.tagName,n.tagName)||(t&&uw(t)&&KD(n.tagName,t.tagName)?Be(i.tagName,Wo.JSX_element_0_has_no_corresponding_closing_tag,of(p,i.tagName)):Be(n.tagName,Wo.Expected_corresponding_JSX_closing_tag_for_0,of(p,i.tagName)));a=Tn(C.createJsxElement(i,o,n),r)}else 286===i.kind?a=Tn(C.createJsxFragment(i,Kr(i),function(e){const n=Ve();on(30),on(31,Wo.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?ze():Ze());return Tn(C.createJsxJsxClosingFragment(),n)}(e)),r):(Nt.assert(282===i.kind),a=i);if(e&&29===He()){const e="undefined"===typeof n?a.pos:n,t=tn((()=>jr(!0,e)));if(t){const n=Sn(27,!1);return AS(n,t.pos,0),Ge(Ns(p,e),t.end,Wo.JSX_expressions_must_have_one_parent_element),Tn(C.createBinaryExpression(a,n,t),r)}}return a}function Hr(e,n){switch(n){case 1:if(fw(e))Be(e,Wo.JSX_fragment_has_no_corresponding_closing_tag);else{const n=e.tagName;Ge(Ns(p,n.pos),n.end,Wo.JSX_element_0_has_no_corresponding_closing_tag,of(p,e.tagName))}return;case 30:case 7:return;case 11:case 12:return function(){const e=Ve(),n=C.createJsxText(c.getTokenValue(),12===b);return b=c.scanJsxToken(),Tn(n,e)}();case 18:return zr(!1);case 29:return jr(!1,void 0,e);default:return Nt.assertNever(n)}}function Kr(e){const n=[],t=Ve(),r=S;for(S|=16384;;){const t=Hr(e,b=c.reScanJsxToken());if(!t)break;if(n.push(t),uw(e)&&281===(null==t?void 0:t.kind)&&!KD(t.openingElement.tagName,t.closingElement.tagName)&&KD(e.tagName,t.closingElement.tagName))break}return S=r,En(n,t)}function Wr(){const e=Ve();Qe();let n=108===He()?hn():In();for(;_n(24);)n=Tn(G(n,ct(!0,!1)),e);return n}function zr(e){const n=Ve();if(!on(18))return;let t,r;return 19!==He()&&(t=pn(25),r=Tr()),e?on(19):on(19,void 0,!1)&&Ze(),Tn(C.createJsxExpression(t,r),n)}function qr(){if(18===He())return function(){const e=Ve();on(18),on(25);const n=Tr();return on(19),Tn(C.createJsxSpreadAttribute(n),e)}();Qe();const e=Ve();return Tn(C.createJsxAttribute(In(),function(){if(63===He()){if(10===(b=c.scanJsxAttributeValue()))return mt();if(18===He())return zr(!0);if(29===He())return jr(!0);Me(Wo.or_JSX_element_expected)}return}()),e)}function Jr(){return ze(),us(He())||22===He()||Zr()}function Xr(e){if(32&e.flags)return!0;if(oI(e)){let n=e.expression;for(;oI(n)&&!(32&n.flags);)n=n.expression;if(32&n.flags){for(;oI(e);)e.flags|=32,e=e.expression;return!0}}return!1}function Yr(e,n,t){const r=ct(!0,!0),i=t||Xr(n),a=i?B(n,t,r):G(n,r);if(i&&wC(a.name)&&Be(a.name,Wo.An_optional_chain_cannot_contain_private_identifiers),rI(n)&&n.typeArguments){Ge(n.typeArguments.pos-1,Ns(p,n.typeArguments.end)+1,Wo.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Tn(a,e)}function $r(e,n,t){let r;if(23===He())r=Sn(79,!0,Wo.An_element_access_expression_should_take_an_argument);else{const e=Ee(Tr);wy(e)&&(e.text=An(e.text)),r=e}on(23);return Tn(t||Xr(n)?V(n,t,r):U(n,r),e)}function Qr(e,n,t){for(;;){let r,i=!1;if(t&&28===He()&&nn(Jr)?(r=mn(28),i=us(He())):i=_n(24),i)n=Yr(e,n,r);else if(!r&&Ne()||!_n(22)){if(!Zr()){if(!r){if(53===He()&&!c.hasPrecedingLineBreak()){ze(),n=Tn(C.createNonNullExpression(n),e);continue}const t=tn(ri);if(t){n=Tn(C.createExpressionWithTypeArguments(n,t),e);continue}}return n}n=r||230!==n.kind?ei(e,n,r,void 0):ei(e,n.expression,r,n.typeArguments)}else n=$r(e,n,r)}}function Zr(){return 14===He()||15===He()}function ei(e,n,t,r){const i=C.createTaggedTemplateExpression(n,r,14===He()?(Xe(),mt()):lt(!0));return(t||32&n.flags)&&(i.flags|=32),i.questionDotToken=t,Tn(i,e)}function ni(e,n){for(;;){let t;n=Qr(e,n,!0);const r=pn(28);if(r&&(t=tn(ri),Zr()))n=ei(e,n,r,t);else{if(!t&&20!==He()){if(r){const t=Sn(79,!1,Wo.Identifier_expected);n=Tn(B(n,r,t),e)}break}{r||230!==n.kind||(t=n.typeArguments,n=n.expression);const i=ti();n=Tn(r||Xr(n)?H(n,r,t,i):j(n,t,i),e)}}}return n}function ti(){on(20);const e=tt(11,oi);return on(21),e}function ri(){if(0!==(262144&L))return;if(29!==Ye())return;ze();const e=tt(20,yr);return 31===Je()?(ze(),e&&function(){switch(He()){case 20:case 14:case 15:return!0;case 29:case 31:case 39:case 40:return!1}return c.hasPrecedingLineBreak()||Dr()||!Er()}()?e:void 0):void 0}function ii(){switch(He()){case 8:case 9:case 10:case 14:return mt();case 108:case 106:case 104:case 110:case 95:return hn();case 20:return function(){const e=Ve(),n=je();on(20);const t=Ee(Tr);return on(21),se(Tn(W(t),e),n)}();case 22:return si();case 18:return li();case 132:if(!nn(Ei))break;return di();case 59:return function(){const e=Ve(),n=je(),t=Zi(!0);if(84===He())return ra(e,n,t,228);const r=Sn(279,!0,Wo.Expression_expected);return TS(r,e),r.modifiers=t,r}();case 84:return ra(Ve(),je(),void 0,228);case 98:return di();case 103:return function(){const e=Ve();if(on(103),_n(24)){const n=In();return Tn(C.createMetaProperty(103,n),e)}let n,t=Qr(Ve(),ii(),!1);230===t.kind&&(n=t.typeArguments,t=t.expression);28===He()&&Me(Wo.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,of(p,t));const r=20===He()?ti():void 0;return Tn(K(t,n,r),e)}();case 43:case 68:if(13===(b=c.reScanSlashToken()))return mt();break;case 15:return lt(!1);case 80:return Dn()}return kn(Wo.Expression_expected)}function ai(){return 25===He()?function(){const e=Ve();on(25);const n=Sr(!0);return Tn(C.createSpreadElement(n),e)}():27===He()?Tn(C.createOmittedExpression(),Ve()):Sr(!0)}function oi(){return ve(l,ai)}function si(){const e=Ve(),n=c.getTokenPos(),t=on(22),r=c.hasPrecedingLineBreak(),i=tt(15,ai);return un(22,23,t,n),Tn(P(i,r),e)}function ci(){const e=Ve(),n=je();if(pn(25)){const t=Sr(!0);return se(Tn(C.createSpreadAssignment(t),e),n)}const t=Zi(!0);if(On(137))return qi(e,n,t,174,0);if(On(151))return qi(e,n,t,175,0);const r=pn(41),i=an(),a=Nn(),o=pn(57),s=pn(53);if(r||20===He()||29===He())return Ki(e,n,t,r,a,o,s);let c;if(i&&58!==He()){const e=pn(63),n=e?Ee((()=>Sr(!0))):void 0;c=C.createShorthandPropertyAssignment(a,n),c.equalsToken=e}else{on(58);const e=Ee((()=>Sr(!0)));c=C.createPropertyAssignment(a,e)}return c.modifiers=t,c.questionToken=o,c.exclamationToken=s,se(Tn(c,e),n)}function li(){const e=Ve(),n=c.getTokenPos(),t=on(18),r=c.hasPrecedingLineBreak(),i=tt(12,ci,!0);return un(18,19,t,n),Tn(F(i,r),e)}function di(){const e=Ne();ge(!1);const n=Ve(),t=je(),r=Zi(!1);on(98);const i=pn(41),a=i?1:0,o=ce(r,DC)?2:0,s=a&&o?be(40960,ui):a?function(e){return be(8192,e)}(ui):o?Le(ui):ui();const c=Lt(),l=Dt(a|o),d=wt(58,!1),u=pi(a|o);ge(e);return se(Tn(C.createFunctionExpression(r,i,s,c,l,d,u),n),t)}function ui(){return rn()?Cn():void 0}function _i(e,n){const t=Ve(),r=je(),i=c.getTokenPos(),a=on(18,n);if(a||e){const e=c.hasPrecedingLineBreak(),n=Yn(1,Ci);un(18,19,a,i);const o=se(Tn(z(n,e),t),r);return 63===He()&&(Me(Wo.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),ze()),o}{const e=it();return se(Tn(z(e,void 0),t),r)}}function pi(e,n){const t=Ie();he(!!(1&e));const r=Oe();ye(!!(2&e));const i=te;te=!1;const a=Ne();a&&ge(!1);const o=_i(!!(16&e),n);return a&&ge(!0),te=i,he(t),ye(r),o}function fi(){const e=Ve(),n=je();on(97);const t=pn(133);let r;let i;if(on(20),26!==He()&&(r=113===He()||119===He()||85===He()?Bi(!0):be(4096,Tr)),t?on(162):_n(162)){const e=Ee((()=>Sr(!0)));on(21),i=Q(t,r,e,Ci())}else if(_n(101)){const e=Ee(Tr);on(21),i=C.createForInStatement(r,e,Ci())}else{on(26);const e=26!==He()&&21!==He()?Ee(Tr):void 0;on(26);const n=21!==He()?Ee(Tr):void 0;on(21),i=$(r,e,n,Ci())}return se(Tn(i,e),n)}function mi(e){const n=Ve(),t=je();on(249===e?81:86);const r=yn()?void 0:kn();bn();return se(Tn(249===e?C.createBreakStatement(r):C.createContinueStatement(r),n),t)}function hi(){return 82===He()?function(){const e=Ve(),n=je();on(82);const t=Ee(Tr);on(58);const r=Yn(3,Ci);return se(Tn(C.createCaseClause(t,r),e),n)}():function(){const e=Ve();on(88),on(58);const n=Yn(3,Ci);return Tn(C.createDefaultClause(n),e)}()}function gi(){const e=Ve(),n=je();on(107),on(20);const t=Ee(Tr);on(21);const r=function(){const e=Ve();on(18);const n=Yn(2,hi);return on(19),Tn(C.createCaseBlock(n),e)}();return se(Tn(C.createSwitchStatement(t,r),e),n)}function yi(){const e=Ve(),n=je();on(111);const t=_i(!1),r=83===He()?function(){const e=Ve();let n;on(83),_n(20)?(n=Gi(),on(21)):n=void 0;const t=_i(!1);return Tn(C.createCatchClause(n,t),e)}():void 0;let i;return r&&96!==He()||(on(96,Wo.catch_or_finally_expected),i=_i(!1)),se(Tn(C.createTryStatement(t,r,i),e),n)}function vi(){return ze(),us(He())&&!c.hasPrecedingLineBreak()}function bi(){return ze(),84===He()&&!c.hasPrecedingLineBreak()}function Ei(){return ze(),98===He()&&!c.hasPrecedingLineBreak()}function Ti(){return ze(),(us(He())||8===He()||9===He()||10===He())&&!c.hasPrecedingLineBreak()}function xi(){for(;;)switch(He()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 154:return ze(),!c.hasPrecedingLineBreak()&&an();case 142:case 143:return Ri();case 126:case 127:case 132:case 136:case 121:case 122:case 123:case 146:if(ze(),c.hasPrecedingLineBreak())return!1;continue;case 159:return ze(),18===He()||79===He()||93===He();case 100:return ze(),10===He()||41===He()||18===He()||us(He());case 93:let e=ze();if(154===e&&(e=nn(ze)),63===e||41===e||18===e||88===e||128===e||59===e)return!0;continue;case 124:ze();continue;default:return!1}}function Si(){return nn(xi)}function Ai(){switch(He()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:case 132:case 136:case 118:case 142:case 143:case 154:case 159:return!0;case 100:return Si()||nn(Ht);case 85:case 93:return Si();case 127:case 123:case 121:case 122:case 124:case 146:return Si()||!nn(vi);default:return Er()}}function Li(){return ze(),rn()||18===He()||22===He()}function Ci(){switch(He()){case 26:return function(){const e=Ve(),n=je();return on(26),se(Tn(C.createEmptyStatement(),e),n)}();case 18:return _i(!1);case 113:return Vi(Ve(),je(),void 0);case 119:if(nn(Li))return Vi(Ve(),je(),void 0);break;case 98:return ji(Ve(),je(),void 0);case 84:return ta(Ve(),je(),void 0);case 99:return function(){const e=Ve(),n=je();on(99);const t=c.getTokenPos(),r=on(20),i=Ee(Tr);un(20,21,r,t);const a=Ci(),o=_n(91)?Ci():void 0;return se(Tn(X(i,a,o),e),n)}();case 90:return function(){const e=Ve(),n=je();on(90);const t=Ci();on(115);const r=c.getTokenPos(),i=on(20),a=Ee(Tr);return un(20,21,i,r),_n(26),se(Tn(C.createDoStatement(t,a),e),n)}();case 115:return function(){const e=Ve(),n=je();on(115);const t=c.getTokenPos(),r=on(20),i=Ee(Tr);un(20,21,r,t);const a=Ci();return se(Tn(Y(i,a),e),n)}();case 97:return fi();case 86:return mi(248);case 81:return mi(249);case 105:return function(){const e=Ve(),n=je();on(105);const t=yn()?void 0:Ee(Tr);return bn(),se(Tn(C.createReturnStatement(t),e),n)}();case 116:return function(){const e=Ve(),n=je();on(116);const t=c.getTokenPos(),r=on(20),i=Ee(Tr);un(20,21,r,t);const a=be(33554432,Ci);return se(Tn(C.createWithStatement(i,a),e),n)}();case 107:return gi();case 109:return function(){const e=Ve(),n=je();on(109);let t=c.hasPrecedingLineBreak()?void 0:Ee(Tr);return void 0===t&&(x++,t=Tn(N(""),Ve())),vn()||cn(t),se(Tn(C.createThrowStatement(t),e),n)}();case 111:case 83:case 96:return yi();case 87:return function(){const e=Ve(),n=je();return on(87),bn(),se(Tn(C.createDebuggerStatement(),e),n)}();case 59:return Ii();case 132:case 118:case 154:case 142:case 143:case 136:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 127:case 124:case 146:case 159:if(Si())return Ii()}return function(){const e=Ve();let n,t=je();const r=20===He(),i=Ee(Tr);return IC(i)&&_n(58)?n=C.createLabeledStatement(i,Ci()):(vn()||cn(i),n=J(i),r&&(t=!1)),se(Tn(n,e),t)}()}function ki(e){return 136===e.kind}function Ii(){const e=Ve(),n=je(),t=Zi(!0);if(ce(t,ki)){const r=function(e){return be(16777216,(()=>{const n=Zn(S,e);if(n)return et(n)}))}(e);if(r)return r;for(const e of t)e.flags|=16777216;return be(16777216,(()=>wi(e,n,t)))}return wi(e,n,t)}function wi(e,n,t){switch(He()){case 113:case 119:case 85:return Vi(e,n,t);case 98:return ji(e,n,t);case 84:return ta(e,n,t);case 118:return function(e,n,t){on(118);const r=kn(),i=Lt(),a=ia(),o=Kt();return se(Tn(C.createInterfaceDeclaration(t,r,i,a,o),e),n)}(e,n,t);case 154:return function(e,n,t){on(154);const r=kn(),i=Lt();on(63);const a=139===He()&&tn(Qt)||yr();bn();return se(Tn(C.createTypeAliasDeclaration(t,r,i,a),e),n)}(e,n,t);case 92:return function(e,n,t){on(92);const r=kn();let i;on(18)?(i=ve(40960,(()=>tt(6,la))),on(19)):i=it();return se(Tn(C.createEnumDeclaration(t,r,i),e),n)}(e,n,t);case 159:case 142:case 143:return function(e,n,t){let r=0;if(159===He())return _a(e,n,t);if(_n(143))r|=16;else if(on(142),10===He())return _a(e,n,t);return ua(e,n,t,r)}(e,n,t);case 100:return function(e,n,t){on(100);const r=c.getStartPos();let i;an()&&(i=kn());let a,o=!1;158===He()||"type"!==(null==i?void 0:i.escapedText)||!an()&&41!==He()&&18!==He()||(o=!0,i=an()?kn():void 0);if(i&&27!==He()&&158!==He())return function(e,n,t,r,i){on(63);const a=147===He()&&nn(pa)?function(){const e=Ve();on(147),on(20);const n=ya();return on(21),Tn(C.createExternalModuleReference(n),e)}():ot(!1);bn();const o=C.createImportEqualsDeclaration(t,i,r,a),s=se(Tn(o,e),n);return s}(e,n,t,i,o);(i||41===He()||18===He())&&(a=function(e,n,t){let r;e&&!_n(27)||(r=41===He()?function(){const e=Ve();on(41),on(128);const n=kn();return Tn(C.createNamespaceImport(n),e)}():va(272));return Tn(C.createImportClause(t,e,r),n)}(i,r,o),on(158));const s=ya();let l;130!==He()||c.hasPrecedingLineBreak()||(l=ga());bn();return se(Tn(C.createImportDeclaration(t,a,s,l),e),n)}(e,n,t);case 93:switch(ze(),He()){case 88:case 63:return function(e,n,t){const r=Oe();let i;ye(!0),_n(63)?i=!0:on(88);const a=Sr(!0);bn(),ye(r);return se(Tn(C.createExportAssignment(t,i,a),e),n)}(e,n,t);case 128:return function(e,n,t){on(128),on(143);const r=kn();bn();const i=C.createNamespaceExportDeclaration(r);return i.modifiers=t,se(Tn(i,e),n)}(e,n,t);default:return function(e,n,t){const r=Oe();let i,a,o;ye(!0);const s=_n(154),l=Ve();_n(41)?(_n(128)&&(i=function(e){return Tn(C.createNamespaceExport(In()),e)}(l)),on(158),a=ya()):(i=va(276),(158===He()||10===He()&&!c.hasPrecedingLineBreak())&&(on(158),a=ya()));a&&130===He()&&!c.hasPrecedingLineBreak()&&(o=ga());bn(),ye(r);return se(Tn(C.createExportDeclaration(t,s,i,a,o),e),n)}(e,n,t)}default:if(t){const n=Sn(279,!0,Wo.Declaration_expected);return TS(n,e),n.modifiers=t,n}return}}function Ri(){return ze(),!c.hasPrecedingLineBreak()&&(an()||10===He())}function Ni(e,n){if(18!==He()){if(4&e)return void Ot();if(yn())return void bn()}return pi(e,n)}function Di(){const e=Ve();if(27===He())return Tn(C.createOmittedExpression(),e);const n=pn(25),t=Pi(),r=xr();return Tn(C.createBindingElement(n,void 0,t,r),e)}function Oi(){const e=Ve(),n=pn(25),t=rn();let r,i=Nn();t&&58!==He()?(r=i,i=void 0):(on(58),r=Pi());const a=xr();return Tn(C.createBindingElement(n,i,r,a),e)}function Mi(){return 18===He()||22===He()||80===He()||rn()}function Pi(e){return 22===He()?function(){const e=Ve();on(22);const n=tt(10,Di);return on(23),Tn(C.createArrayBindingPattern(n),e)}():18===He()?function(){const e=Ve();on(18);const n=tt(9,Oi);return on(19),Tn(C.createObjectBindingPattern(n),e)}():Cn(e)}function Fi(){return Gi(!0)}function Gi(e){const n=Ve(),t=je(),r=Pi(Wo.Private_identifiers_are_not_allowed_in_variable_declarations);let i;e&&79===r.kind&&53===He()&&!c.hasPrecedingLineBreak()&&(i=hn());const a=vr(),o=Rr(He())?void 0:xr();return se(Tn(Z(r,i,a,o),n),t)}function Bi(e){const n=Ve();let t,r=0;switch(He()){case 113:break;case 119:r|=1;break;case 85:r|=2;break;default:Nt.fail()}if(ze(),162===He()&&nn(Ui))t=it();else{const n=we();me(e),t=tt(8,e?Gi:Fi),me(n)}return Tn(ne(t,r),n)}function Ui(){return Hn()&&21===ze()}function Vi(e,n,t){const r=Bi(!1);bn();return se(Tn(q(t,r),e),n)}function ji(e,n,t){const r=Oe(),i=Nb(t);on(98);const a=pn(41),o=1024&i?ui():Cn(),s=a?1:0,c=512&i?2:0,l=Lt();1&i&&ye(!0);const d=Dt(s|c),u=wt(58,!1),_=Ni(s|c,Wo.or_expected);ye(r);return se(Tn(C.createFunctionDeclaration(t,a,o,l,d,u,_),e),n)}function Hi(e,n,t){return tn((()=>{if(135===He()?on(135):10===He()&&20===nn(ze)?tn((()=>{const e=mt();return"constructor"===e.text?e:void 0})):void 0){const r=Lt(),i=Dt(0),a=wt(58,!1),o=Ni(0,Wo.or_expected),s=C.createConstructorDeclaration(t,i,o);return s.typeParameters=r,s.type=a,se(Tn(s,e),n)}}))}function Ki(e,n,t,r,i,a,o,s){const c=r?1:0,l=ce(t,DC)?2:0,d=Lt(),u=Dt(c|l),_=wt(58,!1),p=Ni(c|l,s),f=C.createMethodDeclaration(t,r,i,a,d,u,_,p);return f.exclamationToken=o,se(Tn(f,e),n)}function Wi(e,n,t,r,i){const a=i||c.hasPrecedingLineBreak()?void 0:pn(53),o=vr(),s=ve(45056,xr);!function(e,n,t){if(59!==He()||c.hasPrecedingLineBreak())return 20===He()?(Me(Wo.Cannot_start_a_function_call_in_a_type_annotation),void ze()):void(!n||yn()?vn()||(t?Me(Wo._0_expected,ms(26)):cn(e)):t?Me(Wo._0_expected,ms(26)):Me(Wo.Expected_for_property_initializer));Me(Wo.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(r,o,s);return se(Tn(C.createPropertyDeclaration(t,r,i||a,o,s),e),n)}function zi(e,n,t){const r=pn(41),i=Nn(),a=pn(57);return r||20===He()||29===He()?Ki(e,n,t,r,i,a,void 0,Wo.or_expected):Wi(e,n,t,i,a)}function qi(e,n,t,r,i){const a=Nn(),o=Lt(),s=Dt(0),c=wt(58,!1),l=Ni(i),d=174===r?C.createGetAccessorDeclaration(t,a,s,c,l):C.createSetAccessorDeclaration(t,a,s,l);return d.typeParameters=o,tk(d)&&(d.type=c),se(Tn(d,e),n)}function Ji(){let e;if(59===He())return!0;for(;Td(He());){if(e=He(),Sd(e))return!0;ze()}if(41===He())return!0;if(wn()&&(e=He(),ze()),22===He())return!0;if(void 0!==e){if(!by(e)||151===e||137===e)return!0;switch(He()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return yn()}}return!1}function Xi(e,n,t){mn(124);const r=function(){const e=Ie(),n=Oe();he(!1),ye(!0);const t=_i(!1);return he(e),ye(n),t}(),i=se(Tn(C.createClassStaticBlockDeclaration(r),e),n);return i.modifiers=t,i}function Yi(){if(Oe()&&133===He()){const e=Ve(),n=kn(Wo.Expression_expected);ze();return ni(e,Qr(e,n,!0))}return Ur()}function $i(){const e=Ve();if(!_n(59))return;const n=be(16384,Yi);return Tn(C.createDecorator(n),e)}function Qi(e,n,t){const r=Ve(),i=He();if(85===He()&&n){if(!tn(Mn))return}else{if(t&&124===He()&&nn(fa))return;if(e&&124===He())return;if(!Td(He())||!tn(Pn))return}return Tn(O(i),r)}function Zi(e,n,t){const r=Ve();let i,a,o,s=!1,c=!1,l=!1;if(e&&59===He())for(;a=$i();)i=Te(i,a);for(;o=Qi(s,n,t);)124===o.kind&&(s=!0),i=Te(i,o),c=!0;if(c&&e&&59===He())for(;a=$i();)i=Te(i,a),l=!0;if(l)for(;o=Qi(s,n,t);)124===o.kind&&(s=!0),i=Te(i,o);return i&&En(i,r)}function ea(){let e;if(132===He()){const n=Ve();ze();e=En([Tn(O(132),n)],n)}return e}function na(){const e=Ve();if(26===He())return ze(),Tn(C.createSemicolonClassElement(),e);const n=je(),t=Zi(!0,!0,!0);if(124===He()&&nn(fa))return Xi(e,n,t);if(On(137))return qi(e,n,t,174,0);if(On(151))return qi(e,n,t,175,0);if(135===He()||10===He()){const r=Hi(e,n,t);if(r)return r}if(Pt())return Gt(e,n,t);if(us(He())||10===He()||8===He()||41===He()||22===He()){if(ce(t,ki)){for(const e of t)e.flags|=16777216;return be(16777216,(()=>zi(e,n,t)))}return zi(e,n,t)}if(t){const r=Sn(79,!0,Wo.Declaration_expected);return Wi(e,n,t,r,void 0)}return Nt.fail("Should not have attempted to parse class member declaration.")}function ta(e,n,t){return ra(e,n,t,260)}function ra(e,n,t,r){const i=Oe();on(84);const a=!rn()||117===He()&&nn(Kn)?void 0:Ln(rn()),o=Lt();ce(t,RC)&&ye(!0);const s=ia();let c;on(18)?(c=Yn(5,na),on(19)):c=it(),ye(i);return se(Tn(260===r?C.createClassDeclaration(t,a,o,s,c):C.createClassExpression(t,a,o,s,c),e),n)}function ia(){if(ca())return Yn(22,aa)}function aa(){const e=Ve(),n=He();Nt.assert(94===n||117===n),ze();const t=tt(7,oa);return Tn(C.createHeritageClause(n,t),e)}function oa(){const e=Ve(),n=Ur();if(230===n.kind)return n;const t=sa();return Tn(C.createExpressionWithTypeArguments(n,t),e)}function sa(){return 29===He()?at(20,yr,29,31):void 0}function ca(){return 94===He()||117===He()}function la(){const e=Ve(),n=je(),t=Nn(),r=Ee(xr);return se(Tn(C.createEnumMember(t,r),e),n)}function da(){const e=Ve();let n;return on(18)?(n=Yn(1,Ci),on(19)):n=it(),Tn(C.createModuleBlock(n),e)}function ua(e,n,t,r){const i=16&r,a=kn(),o=_n(24)?ua(Ve(),!1,void 0,4|i):da();return se(Tn(C.createModuleDeclaration(t,a,o,r),e),n)}function _a(e,n,t){let r,i,a=0;159===He()?(r=kn(),a|=1024):(r=mt(),r.text=An(r.text)),18===He()?i=da():bn();return se(Tn(C.createModuleDeclaration(t,r,i,a),e),n)}function pa(){return 20===ze()}function fa(){return 18===ze()}function ma(){return 43===ze()}function ha(){const e=Ve(),n=us(He())?In():gt(10);on(58);const t=Sr(!0);return Tn(C.createAssertEntry(n,t),e)}function ga(e){const n=Ve();e||on(130);const t=c.getTokenPos();if(on(18)){const e=c.hasPrecedingLineBreak(),r=tt(24,ha,!0);if(!on(19)){const e=Fe(g);e&&e.code===Wo._0_expected.code&&cS(e,ST(u,t,1,Wo.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Tn(C.createAssertClause(r,e),n)}{const e=En([],Ve(),void 0,!1);return Tn(C.createAssertClause(e,!1),n)}}function ya(){if(10===He()){const e=mt();return e.text=An(e.text),e}return Tr()}function va(e){const n=Ve();return Tn(272===e?C.createNamedImports(at(23,Ea,18,19)):C.createNamedExports(at(23,ba,18,19)),n)}function ba(){const e=je();return se(Ta(278),e)}function Ea(){return Ta(273)}function Ta(e){const n=Ve();let t,r=by(He())&&!an(),i=c.getTokenPos(),a=c.getTextPos(),o=!1,s=!0,l=In();if("type"===l.escapedText)if(128===He()){const e=In();if(128===He()){const n=In();us(He())?(o=!0,t=e,l=d(),s=!1):(t=l,l=n,s=!1)}else us(He())?(t=l,s=!1,l=d()):(o=!0,l=e)}else us(He())&&(o=!0,l=d());s&&128===He()&&(t=l,on(128),l=d()),273===e&&r&&Ge(i,a,Wo.Identifier_expected);return Tn(273===e?C.createImportSpecifier(o,t,l):C.createExportSpecifier(o,t,l),n);function d(){return r=by(He())&&!an(),i=c.getTokenPos(),a=c.getTextPos(),In()}}let xa;var Sa;let Aa;var La;let Ca;(Sa=xa||(xa={}))[Sa.SourceElements=0]="SourceElements",Sa[Sa.BlockStatements=1]="BlockStatements",Sa[Sa.SwitchClauses=2]="SwitchClauses",Sa[Sa.SwitchClauseStatements=3]="SwitchClauseStatements",Sa[Sa.TypeMembers=4]="TypeMembers",Sa[Sa.ClassMembers=5]="ClassMembers",Sa[Sa.EnumMembers=6]="EnumMembers",Sa[Sa.HeritageClauseElement=7]="HeritageClauseElement",Sa[Sa.VariableDeclarations=8]="VariableDeclarations",Sa[Sa.ObjectBindingElements=9]="ObjectBindingElements",Sa[Sa.ArrayBindingElements=10]="ArrayBindingElements",Sa[Sa.ArgumentExpressions=11]="ArgumentExpressions",Sa[Sa.ObjectLiteralMembers=12]="ObjectLiteralMembers",Sa[Sa.JsxAttributes=13]="JsxAttributes",Sa[Sa.JsxChildren=14]="JsxChildren",Sa[Sa.ArrayLiteralMembers=15]="ArrayLiteralMembers",Sa[Sa.Parameters=16]="Parameters",Sa[Sa.JSDocParameters=17]="JSDocParameters",Sa[Sa.RestProperties=18]="RestProperties",Sa[Sa.TypeParameters=19]="TypeParameters",Sa[Sa.TypeArguments=20]="TypeArguments",Sa[Sa.TupleElementTypes=21]="TupleElementTypes",Sa[Sa.HeritageClauses=22]="HeritageClauses",Sa[Sa.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Sa[Sa.AssertEntries=24]="AssertEntries",Sa[Sa.Count=25]="Count",(La=Aa||(Aa={}))[La.False=0]="False",La[La.True=1]="True",La[La.Unknown=2]="Unknown",(e=>{function n(e){const n=Ve(),t=(e?_n:on)(18),r=be(8388608,St);e&&!t||dn(19);const i=C.createJSDocTypeExpression(r);return _e(i),Tn(i,n)}function t(){const e=Ve(),n=_n(18),t=Ve();let r=ot(!1);for(;80===He();)$e(),qe(),r=Tn(C.createJSDocMemberName(r,kn()),t);n&&dn(19);const i=C.createJSDocNameReference(r);return _e(i),Tn(i,e)}let r;var i;let a;var o;function s(e=0,r){const i=p,a=void 0===r?i.length:e+r;if(r=a-e,Nt.assert(e>=0),Nt.assert(e<=a),Nt.assert(a<=i.length),!oD(i,e))return;let o,s,l,d,_,f=[];const m=[];return c.scanRange(e+3,r-5,(()=>{let n,t=1,r=e-(i.lastIndexOf("\n",e)+1)+4;function u(e){n||(n=r),f.push(e),r+=e.length}for(qe();q(5););q(4)&&(t=0,r=0);e:for(;;){switch(He()){case 59:0===t||1===t?(g(f),_||(_=Ve()),w(E(r)),t=0,n=void 0):u(c.getTokenText());break;case 4:f.push(c.getTokenText()),t=0,r=0;break;case 41:const i=c.getTokenText();1===t||2===t?(t=2,u(i)):(t=1,r+=i.length);break;case 5:const a=c.getTokenText();2===t?f.push(a):void 0!==n&&r+a.length>n&&f.push(a.slice(n-r)),r+=a.length;break;case 1:break e;case 18:t=2;const o=c.getStartPos(),s=L(c.getTextPos()-1);if(s){d||h(f),m.push(Tn(C.createJSDocText(f.join("")),null!=d?d:e,o)),m.push(s),f=[],d=c.getTextPos();break}default:t=2,u(c.getTokenText())}qe()}g(f),m.length&&f.length&&m.push(Tn(C.createJSDocText(f.join("")),null!=d?d:e,_)),m.length&&o&&Nt.assertIsDefined(_,"having parsed tags implies that the end of the comment span should be set");const p=o&&En(o,s,l);return Tn(C.createJSDocComment(m.length?En(m,e,_):f.length?f.join(""):void 0,p),e,a)}));function h(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function g(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function y(){for(;;){if(qe(),1===He())return!0;if(5!==He()&&4!==He())return!1}}function v(){if(5!==He()&&4!==He()||!nn(y))for(;5===He()||4===He();)qe()}function b(){if((5===He()||4===He())&&nn(y))return"";let e=c.hasPrecedingLineBreak(),n=!1,t="";for(;e&&41===He()||5===He()||4===He();)t+=c.getTokenText(),4===He()?(e=!0,n=!0,t=""):41===He()&&(e=!1),qe();return n?t:""}function E(e){Nt.assert(59===He());const r=c.getTokenPos();qe();const i=J(void 0),a=b();let s;switch(i.escapedText){case"author":s=function(e,n,t,r){const i=Ve(),a=function(){const e=[];let n=!1,t=c.getToken();for(;1!==t&&4!==t;){if(29===t)n=!0;else{if(59===t&&!n)break;if(31===t&&n){e.push(c.getTokenText()),c.setTextPos(c.getTokenPos()+1);break}}e.push(c.getTokenText()),t=qe()}return C.createJSDocText(e.join(""))}();let o=c.getStartPos();const s=T(e,o,t,r);s||(o=c.getStartPos());const l="string"!==typeof s?En(de([Tn(a,i,o)],s),i):a.text+s;return Tn(C.createJSDocAuthorTag(n,l),e)}(r,i,e,a);break;case"implements":s=function(e,n,t,r){const i=F();return Tn(C.createJSDocImplementsTag(n,i,T(e,Ve(),t,r)),e)}(r,i,e,a);break;case"augments":case"extends":s=function(e,n,t,r){const i=F();return Tn(C.createJSDocAugmentsTag(n,i,T(e,Ve(),t,r)),e)}(r,i,e,a);break;case"class":case"constructor":s=B(r,C.createJSDocClassTag,i,e,a);break;case"public":s=B(r,C.createJSDocPublicTag,i,e,a);break;case"private":s=B(r,C.createJSDocPrivateTag,i,e,a);break;case"protected":s=B(r,C.createJSDocProtectedTag,i,e,a);break;case"readonly":s=B(r,C.createJSDocReadonlyTag,i,e,a);break;case"override":s=B(r,C.createJSDocOverrideTag,i,e,a);break;case"deprecated":le=!0,s=B(r,C.createJSDocDeprecatedTag,i,e,a);break;case"this":s=function(e,t,r,i){const a=n(!0);return v(),Tn(C.createJSDocThisTag(t,a,T(e,Ve(),r,i)),e)}(r,i,e,a);break;case"enum":s=function(e,t,r,i){const a=n(!0);return v(),Tn(C.createJSDocEnumTag(t,a,T(e,Ve(),r,i)),e)}(r,i,e,a);break;case"arg":case"argument":case"param":return M(r,i,2,e);case"return":case"returns":s=function(e,n,t,r){ce(o,lR)&&Ge(n.pos,c.getTokenPos(),Wo._0_tag_already_specified,n.escapedText);const i=R();return Tn(C.createJSDocReturnTag(n,i,T(e,Ve(),t,r)),e)}(r,i,e,a);break;case"template":s=function(e,t,r,i){const a=18===He()?n():void 0,o=function(){const e=Ve(),n=[];do{v();const e=z();void 0!==e&&n.push(e),b()}while(q(27));return En(n,e)}();return Tn(C.createJSDocTemplateTag(t,a,o,T(e,Ve(),r,i)),e)}(r,i,e,a);break;case"type":s=P(r,i,e,a);break;case"typedef":s=function(e,n,t,r){var i;let a=R();b();const o=U();v();let s,c=S(t);if(!a||O(a.type)){let n,r,i,o=!1;for(;n=tn((()=>H(t)));)if(o=!0,347===n.kind){if(r){const e=Me(Wo.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&cS(e,ST(u,0,0,Wo.The_tag_was_first_specified_here));break}r=n}else i=Te(i,n);if(o){const n=a&&185===a.type.kind,t=C.createJSDocTypeLiteral(i,n);a=r&&r.typeExpression&&!O(r.typeExpression.type)?r.typeExpression:Tn(t,e),s=a.end}}s=s||void 0!==c?Ve():(null!=(i=null!=o?o:a)?i:n).end,c||(c=T(e,s,t,r));const l=C.createJSDocTypedefTag(n,a,o,c);return Tn(l,e,s)}(r,i,e,a);break;case"callback":s=function(e,n,t,r){const i=U();v();let a=S(t);const o=V(e,t);a||(a=T(e,Ve(),t,r));const s=void 0!==a?Ve():o.end;return Tn(C.createJSDocCallbackTag(n,o,i,a),e,s)}(r,i,e,a);break;case"overload":s=function(e,n,t,r){v();let i=S(t);const a=V(e,t);i||(i=T(e,Ve(),t,r));const o=void 0!==i?Ve():a.end;return Tn(C.createJSDocOverloadTag(n,a,i),e,o)}(r,i,e,a);break;case"satisfies":s=function(e,t,r,i){const a=n(!1),o=void 0!==r&&void 0!==i?T(e,Ve(),r,i):void 0;return Tn(C.createJSDocSatisfiesTag(t,a,o),e)}(r,i,e,a);break;case"see":s=function(e,n,r,i){const a=22===He()||nn((()=>59===qe()&&us(qe())&&I(c.getTokenValue())))?void 0:t(),o=void 0!==r&&void 0!==i?T(e,Ve(),r,i):void 0;return Tn(C.createJSDocSeeTag(n,a,o),e)}(r,i,e,a);break;case"exception":case"throws":s=function(e,n,t,r){const i=R(),a=T(e,Ve(),t,r);return Tn(C.createJSDocThrowsTag(n,i,a),e)}(r,i,e,a);break;default:s=function(e,n,t,r){return Tn(C.createJSDocUnknownTag(n,T(e,Ve(),t,r)),e)}(r,i,e,a)}return s}function T(e,n,t,r){return r||(t+=n-e),S(t,r.slice(t))}function S(e,n){const t=Ve();let r=[];const i=[];let a,o,s=0,l=!0;function d(n){o||(o=e),r.push(n),e+=n.length}void 0!==n&&(""!==n&&d(n),s=1);let u=He();e:for(;;){switch(u){case 4:s=0,r.push(c.getTokenText()),e=0;break;case 59:if(3===s||2===s&&(!l||nn(A))){r.push(c.getTokenText());break}c.setTextPos(c.getTextPos()-1);case 1:break e;case 5:if(2===s||3===s)d(c.getTokenText());else{const n=c.getTokenText();void 0!==o&&e+n.length>o&&r.push(n.slice(o-e)),e+=n.length}break;case 18:s=2;const n=c.getStartPos(),u=L(c.getTextPos()-1);u?(i.push(Tn(C.createJSDocText(r.join("")),null!=a?a:t,n)),i.push(u),r=[],a=c.getTextPos()):d(c.getTokenText());break;case 61:s=3===s?2:3,d(c.getTokenText());break;case 41:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),d(c.getTokenText())}l=5===He(),u=qe()}return h(r),g(r),i.length?(r.length&&i.push(Tn(C.createJSDocText(r.join("")),null!=a?a:t)),En(i,t,c.getTextPos())):r.length?r.join(""):void 0}function A(){const e=qe();return 5===e||4===e}function L(e){const n=tn(k);if(!n)return;qe(),v();const t=Ve();let r=us(He())?ot(!0):void 0;if(r)for(;80===He();)$e(),qe(),r=Tn(C.createJSDocMemberName(r,kn()),t);const i=[];for(;19!==He()&&4!==He()&&1!==He();)i.push(c.getTokenText()),qe();return Tn(("link"===n?C.createJSDocLink:"linkcode"===n?C.createJSDocLinkCode:C.createJSDocLinkPlain)(r,i.join("")),e,c.getTextPos())}function k(){if(b(),18===He()&&59===qe()&&us(qe())){const e=c.getTokenValue();if(I(e))return e}}function I(e){return"link"===e||"linkcode"===e||"linkplain"===e}function w(e){e&&(o?o.push(e):(o=[e],s=e.pos),l=e.end)}function R(){return b(),18===He()?n():void 0}function D(){const e=q(22);e&&v();const n=q(61),t=function(){let e=J();_n(22)&&on(23);for(;_n(24);){const n=J();_n(22)&&on(23),e=st(e,n)}return e}();var r;return n&&(fn(r=61)||Sn(r,!1,Wo._0_expected,ms(r))),e&&(v(),pn(63)&&Tr(),on(23)),{name:t,isBracketed:e}}function O(e){switch(e.kind){case 149:return!0;case 185:return O(e.elementType);default:return sk(e)&&IC(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function M(e,n,t,r){let i=R(),a=!i;b();const{name:o,isBracketed:s}=D(),c=b();a&&!nn(k)&&(i=R());const l=T(e,Ve(),r,c),d=4!==t&&function(e,n,t,r){if(e&&O(e.type)){const i=Ve();let a,o;for(;a=tn((()=>K(t,r,n)));)344!==a.kind&&351!==a.kind||(o=Te(o,a));if(o){const n=Tn(C.createJSDocTypeLiteral(o,185===e.type.kind),i);return Tn(C.createJSDocTypeExpression(n),i)}}}(i,o,t,r);d&&(i=d,a=!0);return Tn(1===t?C.createJSDocPropertyTag(n,o,s,i,a,l):C.createJSDocParameterTag(n,o,s,i,a,l),e)}function P(e,t,r,i){ce(o,uR)&&Ge(t.pos,c.getTokenPos(),Wo._0_tag_already_specified,t.escapedText);const a=n(!0),s=void 0!==r&&void 0!==i?T(e,Ve(),r,i):void 0;return Tn(C.createJSDocTypeTag(t,a,s),e)}function F(){const e=_n(18),n=Ve(),t=function(){const e=Ve();let n=J();for(;_n(24);){const t=J();n=Tn(G(n,t),e)}return n}(),r=sa(),i=Tn(C.createExpressionWithTypeArguments(t,r),n);return e&&on(19),i}function B(e,n,t,r,i){return Tn(n(t,T(e,Ve(),r,i)),e)}function U(e){const n=c.getTokenPos();if(!us(He()))return;const t=J();if(_n(24)){const r=U(!0);return Tn(C.createModuleDeclaration(void 0,t,r,e?4:void 0),n)}return e&&(t.flags|=2048),t}function V(e,n){const t=function(e){const n=Ve();let t,r;for(;t=tn((()=>K(4,e)));)r=Te(r,t);return En(r||[],n)}(n),r=tn((()=>{if(q(59)){const e=E(n);if(e&&345===e.kind)return e}}));return Tn(C.createJSDocSignature(void 0,t,r),e)}function j(e,n){for(;!IC(e)||!IC(n);){if(IC(e)||IC(n)||e.right.escapedText!==n.right.escapedText)return!1;e=e.left,n=n.left}return e.escapedText===n.escapedText}function H(e){return K(1,e)}function K(e,n,t){let r=!0,i=!1;for(;;)switch(qe()){case 59:if(r){const r=W(e,n);return!(r&&(344===r.kind||351===r.kind)&&4!==e&&t&&(IC(r.name)||!j(t,r.name.left)))&&r}i=!1;break;case 4:r=!0,i=!1;break;case 41:i&&(r=!1),i=!0;break;case 79:r=!1;break;case 1:return!1}}function W(e,n){Nt.assert(59===He());const t=c.getStartPos();qe();const r=J();let i;switch(v(),r.escapedText){case"type":return 1===e&&P(t,r);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(e&i)&&M(t,r,e,n)}function z(){const e=Ve(),n=q(22);n&&v();const t=J(Wo.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let r;if(n&&(v(),on(63),r=be(8388608,St),on(23)),!Vp(t))return Tn(C.createTypeParameterDeclaration(void 0,t,void 0,r),e)}function q(e){return He()===e&&(qe(),!0)}function J(e){if(!us(He()))return Sn(79,!e,e||Wo.Identifier_expected);x++;const n=c.getTokenPos(),t=c.getTextPos(),r=He(),i=An(c.getTokenValue()),a=Tn(N(i,r),n,t);return qe(),a}}e.parseJSDocTypeExpressionForTests=function(e,t,r){ae("file.js",e,99,void 0,1),c.setText(e,t,r),b=c.scan();const i=n(),a=pe("file.js",99,1,!1,[],O(1),0,xn),o=CT(g,a);return y&&(a.jsDocDiagnostics=CT(y,a)),oe(),i?{jsDocTypeExpression:i,diagnostics:o}:void 0},e.parseJSDocTypeExpression=n,e.parseJSDocNameReference=t,e.parseIsolatedJSDocComment=function(e,n,t){ae("",e,99,void 0,1);const r=be(8388608,(()=>s(n,t))),i=CT(g,{languageVariant:0,text:e});return oe(),r?{jsDoc:r,diagnostics:i}:void 0},e.parseJSDocComment=function(e,n,t){const r=b,i=g.length,a=re,o=be(8388608,(()=>s(n,t)));return CS(o,e),262144&L&&(y||(y=[]),y.push(...g)),b=r,g.length=i,re=a,o},(i=r||(r={}))[i.BeginningOfLine=0]="BeginningOfLine",i[i.SawAsterisk=1]="SawAsterisk",i[i.SavingComments=2]="SavingComments",i[i.SavingBackticks=3]="SavingBackticks",(o=a||(a={}))[o.Property=1]="Property",o[o.Parameter=2]="Parameter",o[o.CallbackParameter=4]="CallbackParameter"})(Ca=e.JSDocParser||(e.JSDocParser={}))})(QN||(QN={})),(e=>{function n(e,n,r,a,o,s){return void(n?l(e):c(e));function c(e){let n="";if(s&&t(e)&&(n=a.substring(e.pos,e.end)),e._children&&(e._children=void 0),SS(e,e.pos+r,e.end+r),s&&t(e)&&Nt.assert(n===o.substring(e.pos,e.end)),CD(e,c,l),Zu(e))for(const t of e.jsDoc)c(t);i(e,s)}function l(e){e._children=void 0,SS(e,e.pos+r,e.end+r);for(const n of e)c(n)}}function t(e){switch(e.kind){case 10:case 8:case 79:return!0}return!1}function r(e,n,t,r,i){Nt.assert(e.end>=n,"Adjusting an element that was entirely before the change range"),Nt.assert(e.pos<=t,"Adjusting an element that was entirely after the change range"),Nt.assert(e.pos<=e.end);const a=Math.min(e.pos,r),o=e.end>=t?e.end+i:Math.min(e.end,r);Nt.assert(a<=o),e.parent&&(Nt.assertGreaterThanOrEqual(a,e.parent.pos),Nt.assertLessThanOrEqual(o,e.parent.end)),SS(e,a,o)}function i(e,n){if(n){let n=e.pos;const t=e=>{Nt.assert(e.pos>=n),n=e.end};if(Zu(e))for(const r of e.jsDoc)t(r);CD(e,t),Nt.assert(n<=e.end)}}function a(e,n){let t,r=e;if(CD(e,(function e(i){if(Vp(i))return;if(!(i.pos<=n))return Nt.assert(i.pos>n),!0;if(i.pos>=r.pos&&(r=i),n<i.end)return CD(i,e),!0;Nt.assert(i.end<=n),t=i})),t){const e=function(e){for(;;){const n=eT(e);if(!n)return e;e=n}}(t);e.pos>r.pos&&(r=e)}return r}function o(e,n,t,r){const i=e.text;if(t&&(Nt.assert(i.length-t.span.length+t.newLength===n.length),r||Nt.shouldAssert(3))){const e=i.substr(0,t.span.start),r=n.substr(0,t.span.start);Nt.assert(e===r);const a=i.substring(oc(t.span),i.length),o=n.substring(oc(bc(t)),n.length);Nt.assert(a===o)}}function s(e){let n=e.statements,t=0;Nt.assert(t<n.length);let r=n[t],i=-1;return{currentNode:a=>(a!==i&&(r&&r.end===a&&t<n.length-1&&(t++,r=n[t]),r&&r.pos===a||function(i){return n=void 0,t=-1,r=void 0,void CD(e,a,o);function a(e){return i>=e.pos&&i<e.end&&(CD(e,a,o),!0)}function o(e){if(i>=e.pos&&i<e.end)for(let s=0;s<e.length;s++){const c=e[s];if(c){if(c.pos===i)return n=e,t=s,r=c,!0;if(c.pos<i&&i<c.end)return CD(c,a,o),!0}}return!1}}(a)),i=a,Nt.assert(!r||r.pos===a),r)}}let c;var l;e.updateSourceFile=function(e,t,c,l){if(o(e,t,c,l=l||Nt.shouldAssert(2)),Ec(c))return e;if(0===e.statements.length)return QN.parseSourceFile(e.fileName,t,e.languageVersion,void 0,!0,e.scriptKind,e.setExternalModuleIndicator);const d=e;Nt.assert(!d.hasBeenIncrementallyParsed),d.hasBeenIncrementallyParsed=!0,QN.fixupParentReferences(d);const u=e.text,_=s(e),p=function(e,n){const t=1;let r=n.span.start;for(let s=0;r>0&&s<=t;s++){const n=a(e,r);Nt.assert(n.pos<=r);const t=n.pos;r=Math.max(0,t-1)}const i=vc(r,oc(n.span)),o=n.newLength+(n.span.start-r);return Tc(i,o)}(e,c);o(e,t,p,l),Nt.assert(p.span.start<=c.span.start),Nt.assert(oc(p.span)===oc(c.span)),Nt.assert(oc(bc(p))===oc(bc(c)));const f=bc(p).length-p.span.length;!function(e,t,a,o,s,c,l,d){return void u(e);function u(e){if(Nt.assert(e.pos<=e.end),e.pos>a)return void n(e,!1,s,c,l,d);const p=e.end;if(p>=t){if(e.intersectsChange=!0,e._children=void 0,r(e,t,a,o,s),CD(e,u,_),Zu(e))for(const n of e.jsDoc)u(n);i(e,d)}else Nt.assert(p<t)}function _(e){if(Nt.assert(e.pos<=e.end),e.pos>a)return void n(e,!0,s,c,l,d);const i=e.end;if(i>=t){e.intersectsChange=!0,e._children=void 0,r(e,t,a,o,s);for(const n of e)u(n)}else Nt.assert(i<t)}}(d,p.span.start,oc(p.span),oc(bc(p)),f,u,t,l);const m=QN.parseSourceFile(e.fileName,t,e.languageVersion,_,!0,e.scriptKind,e.setExternalModuleIndicator);return m.commentDirectives=function(e,n,t,r,i,a,o,s){if(!e)return n;let c,l=!1;for(const u of e){const{range:e,type:n}=u;if(e.end<t)c=Te(c,u);else if(e.pos>r){d();const t={range:{pos:e.pos+i,end:e.end+i},type:n};c=Te(c,t),s&&Nt.assert(a.substring(e.pos,e.end)===o.substring(t.range.pos,t.range.end))}}return d(),c;function d(){l||(l=!0,c?n&&c.push(...n):c=n)}}(e.commentDirectives,m.commentDirectives,p.span.start,oc(p.span),f,u,t,l),m.impliedNodeFormat=e.impliedNodeFormat,m},e.createSyntaxCursor=s,(l=c||(c={}))[l.Value=-1]="Value"})(ZN||(ZN={})),eD=new Map,nD=/^\/\/\/\s*<(\S+)\s.*?\/>/im,tD=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im}});function NO(e){const n=new Map,t=new Map;return A(e,(e=>{n.set(e.name.toLowerCase(),e),e.shortName&&t.set(e.shortName,e.name)})),{optionsNameMap:n,shortOptionNames:t}}function DO(){return pO||(pO=NO(tO))}function OO(e){return MO(e,wT)}function MO(e,n){const t=Qe(e.type.keys()),r=(e.deprecatedKeys?t.filter((n=>!e.deprecatedKeys.has(n))):t).map((e=>`'${e}'`)).join(", ");return n(Wo.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,r)}function PO(e,n,t){return KM(e,h(n||""),t)}function FO(e,n="",t){if(pt(n=h(n),"-"))return;if("listOrElement"===e.type&&!rt(n,","))return HM(e,n,t);if(""===n)return[];const r=n.split(",");switch(e.element.type){case"number":return ee(r,(n=>HM(e.element,parseInt(n),t)));case"string":return ee(r,(n=>HM(e.element,n||"",t)));case"boolean":case"object":return Nt.fail(`List of ${e.element.type} is not yet supported.`);default:return ee(r,(n=>PO(e.element,n,t)))}}function GO(e){return e.name}function BO(e,n,t,r){var i;if(null==(i=n.alternateMode)?void 0:i.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return t(n.alternateMode.diagnostic,e);const a=Qn(e,n.optionDeclarations,GO);return a?t(n.unknownDidYouMeanDiagnostic,r||e,a.name):t(n.unknownOptionDiagnostic,r||e)}function UO(e,n,t){const r={};let i;const a=[],o=[];return s(n),{options:r,watchOptions:i,fileNames:a,errors:o};function s(n){let t=0;for(;t<n.length;){const s=n[t];if(t++,64===s.charCodeAt(0))c(s.slice(1));else if(45===s.charCodeAt(0)){const a=s.slice(45===s.charCodeAt(1)?2:1),c=KO(e.getOptionsNameMap,a,!0);if(c)t=VO(n,t,e,c,r,o);else{const r=KO(TO.getOptionsNameMap,a,!0);r?t=VO(n,t,TO,r,i||(i={}),o):o.push(BO(a,e,wT,s))}}else a.push(s)}}function c(e){const n=QO(e,t||(e=>Aa.readFile(e)));if(!vn(n))return void o.push(n);const r=[];let i=0;for(;;){for(;i<n.length&&n.charCodeAt(i)<=32;)i++;if(i>=n.length)break;const t=i;if(34===n.charCodeAt(t)){for(i++;i<n.length&&34!==n.charCodeAt(i);)i++;i<n.length?(r.push(n.substring(t+1,i)),i++):o.push(wT(Wo.Unterminated_quoted_string_in_response_file_0,e))}else{for(;n.charCodeAt(i)>32;)i++;r.push(n.substring(t,i))}}s(r)}}function VO(e,n,t,r,i,a){if(r.isTSConfigOnly){const t=e[n];"null"===t?(i[r.name]=void 0,n++):"boolean"===r.type?"false"===t?(i[r.name]=HM(r,!1,a),n++):("true"===t&&n++,a.push(wT(Wo.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(a.push(wT(Wo.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,r.name)),t&&!pt(t,"-")&&n++)}else if(e[n]||"boolean"===r.type||a.push(wT(t.optionTypeMismatchDiagnostic,r.name,sM(r))),"null"!==e[n])switch(r.type){case"number":i[r.name]=HM(r,parseInt(e[n]),a),n++;break;case"boolean":const t=e[n];i[r.name]=HM(r,"false"!==t,a),"false"!==t&&"true"!==t||n++;break;case"string":i[r.name]=HM(r,e[n]||"",a),n++;break;case"list":const o=FO(r,e[n],a);i[r.name]=o||[],o&&n++;break;case"listOrElement":Nt.fail("listOrElement not supported here");break;default:i[r.name]=PO(r,e[n],a),n++}else i[r.name]=void 0,n++;return n}function jO(e,n){return UO(hO,e,n)}function HO(e,n){return KO(DO,e,n)}function KO(e,n,t=!1){n=n.toLowerCase();const{optionsNameMap:r,shortOptionNames:i}=e();if(t){const e=i.get(n);void 0!==e&&(n=e)}return r.get(n)}function WO(){return gO||(gO=NO(uO))}function zO(e){const{options:n,watchOptions:t,fileNames:r,errors:i}=UO(vO,e),a=n;return 0===r.length&&r.push("."),a.clean&&a.force&&i.push(wT(Wo.Options_0_and_1_cannot_be_combined,"clean","force")),a.clean&&a.verbose&&i.push(wT(Wo.Options_0_and_1_cannot_be_combined,"clean","verbose")),a.clean&&a.watch&&i.push(wT(Wo.Options_0_and_1_cannot_be_combined,"clean","watch")),a.watch&&a.dry&&i.push(wT(Wo.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:a,watchOptions:t,projects:r,errors:i}}function qO(e,...n){return wT.apply(void 0,arguments).messageText}function JO(e,n,t,r,i,a){const o=QO(e,(e=>t.readFile(e)));if(!vn(o))return void t.onUnRecoverableConfigFileDiagnostic(o);const s=DD(e,o),c=t.getCurrentDirectory();return s.path=Co(e,c,lt(t.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,TM(s,t,So(po(e),c),n,So(e,c),void 0,a,r,i)}function XO(e,n){const t=QO(e,n);return vn(t)?YO(e,t):{config:{},error:t}}function YO(e,n){const t=DD(e,n);return{config:iM(t,t.parseDiagnostics,!1,void 0),error:t.parseDiagnostics.length?t.parseDiagnostics[0]:void 0}}function $O(e,n){const t=QO(e,n);return vn(t)?DD(e,t):{fileName:e,parseDiagnostics:[t]}}function QO(e,n){let t;try{t=n(e)}catch(Sa){return wT(Wo.Cannot_read_file_0_Colon_1,e,Sa.message)}return void 0===t?wT(Wo.Cannot_read_file_0,e):t}function ZO(e){return nn(e,GO)}function eM(){return EO||(EO=NO($D))}function nM(){return xO||(xO=ZO(tO))}function tM(){return SO||(SO=ZO($D))}function rM(){return AO||(AO=ZO(_O))}function iM(e,n,t,r){var i;const a=null==(i=e.statements[0])?void 0:i.expression,o=t?(void 0===CO&&(CO={name:void 0,type:"object",elementOptions:ZO([{name:"compilerOptions",type:"object",elementOptions:nM(),extraKeyDiagnostics:hO},{name:"watchOptions",type:"object",elementOptions:tM(),extraKeyDiagnostics:TO},{name:"typeAcquisition",type:"object",elementOptions:rM(),extraKeyDiagnostics:bO},LO,{name:"references",type:"list",element:{name:"references",type:"object"},category:Wo.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:Wo.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:Wo.File_Management,defaultValueDescription:Wo.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:Wo.File_Management,defaultValueDescription:Wo.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},WD])}),CO):void 0;if(a&&207!==a.kind){if(n.push(Xf(e,a,Wo.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===fo(e.fileName)?"jsconfig.json":"tsconfig.json")),Dk(a)){const t=D(a.elements,Ok);if(t)return oM(e,t,n,!0,o,r)}return{}}return oM(e,a,n,!0,o,r)}function aM(e,n){var t;return oM(e,null==(t=e.statements[0])?void 0:t.expression,n,!0,void 0,void 0)}function oM(e,n,t,r,i,a){return n?c(n,i):r?{}:void 0;function o(e){return i&&i.elementOptions===e}function s(n,i,s,d){const u=r?{}:void 0;for(const _ of n.properties){if(299!==_.kind){t.push(Xf(e,_,Wo.Property_assignment_expected));continue}_.questionToken&&t.push(Xf(e,_.questionToken,Wo.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),l(_.name)||t.push(Xf(e,_.name,Wo.String_literal_with_double_quotes_expected));const n=Hf(_.name)?void 0:Wf(_.name),p=n&&Bc(n),f=p&&i?i.get(p):void 0;p&&s&&!f&&(i?t.push(BO(p,s,((n,t,r)=>Xf(e,_.name,n,t,r)))):t.push(Xf(e,_.name,s.unknownOptionDiagnostic,p)));const m=c(_.initializer,f);if("undefined"!==typeof p&&(r&&(u[p]=m),a&&(d||o(i)))){const e=cM(f,m);d?e&&a.onSetValidOptionKeyValueInParent(d,f,m):o(i)&&(e?a.onSetValidOptionKeyValueInRoot(p,_.name,m,_.initializer):f||a.onSetUnknownOptionKeyValueInRoot(p,_.name,m,_.initializer))}}return u}function c(n,i){let a;switch(n.kind){case 110:return d(i&&"boolean"!==i.type&&("listOrElement"!==i.type||"boolean"!==i.element.type)),o(!0);case 95:return d(i&&"boolean"!==i.type&&("listOrElement"!==i.type||"boolean"!==i.element.type)),o(!1);case 104:return d(i&&"extends"===i.name),o(null);case 10:l(n)||t.push(Xf(e,n,Wo.String_literal_with_double_quotes_expected)),d(i&&vn(i.type)&&"string"!==i.type&&("listOrElement"!==i.type||vn(i.element.type)&&"string"!==i.element.type));const u=n.text;if(i&&Nt.assert("listOrElement"!==i.type||"string"===i.element.type,"Only string or array of string is handled for now"),i&&!vn(i.type)){const r=i;r.type.has(u.toLowerCase())||(t.push(MO(r,((t,r,i)=>Xf(e,n,t,r,i)))),a=!0)}return o(u);case 8:return d(i&&"number"!==i.type&&("listOrElement"!==i.type||"number"!==i.element.type)),o(Number(n.text));case 221:if(40!==n.operator||8!==n.operand.kind)break;return d(i&&"number"!==i.type&&("listOrElement"!==i.type||"number"!==i.element.type)),o(-Number(n.operand.text));case 207:d(i&&"object"!==i.type&&("listOrElement"!==i.type||"object"!==i.element.type));const _=n;if(i){const{elementOptions:e,extraKeyDiagnostics:n,name:t}=i;return o(s(_,e,n,t))}return o(s(_,void 0,void 0,void 0));case 206:return d(i&&"list"!==i.type&&"listOrElement"!==i.type),o(function(e,n){if(r)return j(e.map((e=>c(e,n))),(e=>void 0!==e));e.forEach((e=>c(e,n)))}(n.elements,i&&i.element))}return void(i?d(!0):t.push(Xf(e,n,Wo.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function o(r){var o;if(!a){const a=null==(o=null==i?void 0:i.extraValidation)?void 0:o.call(i,r);if(a)return void t.push(Xf(e,n,...a))}return r}function d(r){r&&(t.push(Xf(e,n,Wo.Compiler_option_0_requires_a_value_of_type_1,i.name,sM(i))),a=!0)}}function l(n){return _C(n)&&Vh(n,e)}}function sM(e){return"listOrElement"===e.type?`${sM(e.element)} or Array`:"list"===e.type?"Array":vn(e.type)?e.type:"string"}function cM(e,n){if(e){if(SM(n))return!0;if("list"===e.type)return gn(n);if("listOrElement"===e.type)return gn(n)||cM(e.element,n);return typeof n===(vn(e.type)?e.type:"string")}return!1}function lM(e,n,t){var r,i,a;const o=lt(t.useCaseSensitiveFileNames),s=W(j(e.fileNames,(null==(i=null==(r=e.options.configFile)?void 0:r.configFileSpecs)?void 0:i.validatedIncludeSpecs)?function(e,n,t,r){if(!n)return An;const i=Rx(e,t,n,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),a=i.excludePattern&&Nx(i.excludePattern,r.useCaseSensitiveFileNames),o=i.includeFilePattern&&Nx(i.includeFilePattern,r.useCaseSensitiveFileNames);if(o)return a?e=>!(o.test(e)&&!a.test(e)):e=>!o.test(e);if(a)return e=>a.test(e);return An}(n,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,t):An),(e=>Vo(So(n,t.getCurrentDirectory()),So(e,t.getCurrentDirectory()),o))),c=fM(e.options,{configFilePath:So(n,t.getCurrentDirectory()),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames}),l=e.watchOptions&&mM(e.watchOptions,eM());return{compilerOptions:{...dM(c),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:l&&dM(l),references:W(e.projectReferences,(e=>({...e,path:e.originalPath?e.originalPath:"",originalPath:void 0}))),files:S(s)?s:void 0,...(null==(a=e.options.configFile)?void 0:a.configFileSpecs)?{include:uM(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:!!e.compileOnSave||void 0}}function dM(e){return{...Qe(e.entries()).reduce(((e,n)=>({...e,[n[0]]:n[1]})),{})}}function uM(e){if(S(e)){if(1!==S(e))return e;if(e[0]!==kO)return e}}function _M(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return _M(e.element);default:return e.type}}function pM(e,n){return gp(n,((n,t)=>{if(n===e)return t}))}function fM(e,n){return mM(e,DO(),n)}function mM(e,{optionsNameMap:n},t){const r=new Map,i=t&<(t.useCaseSensitiveFileNames);for(const a in e)if(ze(e,a)){if(n.has(a)&&(n.get(a).category===Wo.Command_line_Options||n.get(a).category===Wo.Output_Formatting))continue;const o=e[a],s=n.get(a.toLowerCase());if(s){Nt.assert("listOrElement"!==s.type);const e=_M(s);e?"list"===s.type?r.set(a,o.map((n=>pM(n,e)))):r.set(a,pM(o,e)):t&&s.isFilePath?r.set(a,Vo(t.configFilePath,So(o,po(t.configFilePath)),i)):r.set(a,o)}}return r}function hM(e,n){const t=gM(e);return function(){const e=[],r=(i=2,Array(i+1).join(" "));var i;return nO.forEach((n=>{if(!t.has(n.name))return;const i=t.get(n.name),a=aP(n);i!==a?e.push(`${r}${n.name}: ${i}`):ze(mO,n.name)&&e.push(`${r}${n.name}: ${a}`)})),e.join(n)+n}()}function gM(e){return fM(cn(e,mO))}function yM(e,n,t){const r=gM(e);return function(){const e=new Map;e.set(Wo.Projects,[]),e.set(Wo.Language_and_Environment,[]),e.set(Wo.Modules,[]),e.set(Wo.JavaScript_Support,[]),e.set(Wo.Emit,[]),e.set(Wo.Interop_Constraints,[]),e.set(Wo.Type_Checking,[]),e.set(Wo.Completeness,[]);for(const n of tO)if(a(n)){let t=e.get(n.category);t||e.set(n.category,t=[]),t.push(n)}let o=0,s=0;const c=[];e.forEach(((e,n)=>{0!==c.length&&c.push({value:""}),c.push({value:`/* ${xT(n)} */`});for(const t of e){let e;e=r.has(t.name)?`"${t.name}": ${JSON.stringify(r.get(t.name))}${(s+=1)===r.size?"":","}`:`// "${t.name}": ${JSON.stringify(aP(t))},`,c.push({value:e,description:`/* ${t.description&&xT(t.description)||t.name} */`}),o=Math.max(e.length,o)}}));const l=i(2),d=[];d.push("{"),d.push(`${l}"compilerOptions": {`),d.push(`${l}${l}/* ${xT(Wo.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),d.push("");for(const n of c){const{value:e,description:t=""}=n;d.push(e&&`${l}${l}${e}${t&&i(o-e.length+2)+t}`)}if(n.length){d.push(`${l}},`),d.push(`${l}"files": [`);for(let e=0;e<n.length;e++)d.push(`${l}${l}${JSON.stringify(n[e])}${e===n.length-1?"":","}`);d.push(`${l}]`)}else d.push(`${l}}`);return d.push("}"),d.join(t)+t}();function i(e){return Array(e+1).join(" ")}function a({category:e,name:n,isCommandLineOnly:t}){const i=[Wo.Command_line_Options,Wo.Editor_Support,Wo.Compiler_Diagnostics,Wo.Backwards_Compatibility,Wo.Watch_and_Build_Modes,Wo.Output_Formatting];return!t&&void 0!==e&&(!i.includes(e)||r.has(n))}}function vM(e,n){const t={},r=DO().optionsNameMap;for(const i in e)ze(e,i)&&(t[i]=bM(r.get(i.toLowerCase()),e[i],n));return t.configFilePath&&(t.configFilePath=n(t.configFilePath)),t}function bM(e,n,t){if(e&&!SM(n)){if("list"===e.type){const r=n;if(e.element.isFilePath&&r.length)return r.map(t)}else if(e.isFilePath)return t(n);Nt.assert("listOrElement"!==e.type)}return n}function EM(e,n,t,r,i,a,o,s,c){return LM(e,void 0,n,t,r,c,i,a,o,s)}function TM(e,n,t,r,i,a,o,s,c){var l,d;null==(l=Vr)||l.push(Vr.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const u=LM(void 0,e,n,t,r,c,i,a,o,s);return null==(d=Vr)||d.pop(),u}function xM(e,n){n&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:n})}function SM(e){return void 0===e||null===e}function AM(e,n){return po(So(e,n))}function LM(e,n,t,r,i={},a,o,s=[],c=[],l){Nt.assert(void 0===e&&void 0!==n||void 0!==e&&void 0===n);const d=[],u=RM(e,n,t,r,o,s,d,l),{raw:_}=u,p=cn(i,u.options||{}),f=a&&u.watchOptions?cn(a,u.watchOptions):u.watchOptions||a;p.configFilePath=o&&vo(o);const m=function(){const e=v("references",(e=>"object"===typeof e),"object"),t=g(y("files"));if(t){const r="no-prop"===e||gn(e)&&0===e.length,i=ze(_,"extends");if(0===t.length&&r&&!i)if(n){const e=o||"tsconfig.json",t=Wo.The_files_list_in_config_file_0_is_empty,r=C(zm(n,"files"),(e=>e.initializer)),i=r?Xf(n,r,t,e):wT(t,e);d.push(i)}else b(Wo.The_files_list_in_config_file_0_is_empty,o||"tsconfig.json")}let r=g(y("include"));const i=y("exclude");let a,s,c=!1,l=g(i);if("no-prop"===i&&_.compilerOptions){const e=_.compilerOptions.outDir,n=_.compilerOptions.declarationDir;(e||n)&&(l=[e,n].filter((e=>!!e)))}void 0===t&&void 0===r&&(r=[kO],c=!0);r&&(a=$M(r,d,!0,n,"include"));l&&(s=$M(l,d,!1,n,"exclude"));return{filesSpecs:t,includeSpecs:r,excludeSpecs:l,validatedFilesSpec:j(t,vn),validatedIncludeSpecs:a,validatedExcludeSpecs:s,pathPatterns:void 0,isDefaultIncludeSpec:c}}();n&&(n.configFileSpecs=m),xM(p,n);const h=Ao(o?AM(o,r):r);return{options:p,watchOptions:f,fileNames:function(e){const n=zM(m,e,p,t,c);kM(n,IM(_),s)&&d.push(CM(m,o));return n}(h),projectReferences:function(e){let n;const t=v("references",(e=>"object"===typeof e),"object");if(gn(t))for(const r of t)"string"!==typeof r.path?b(Wo.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(n||(n=[])).push({path:So(r.path,e),originalPath:r.path,prepend:r.prepend,circular:r.circular});return n}(h),typeAcquisition:u.typeAcquisition||FM(),raw:_,errors:d,wildcardDirectories:ZM(m,h,t.useCaseSensitiveFileNames),compileOnSave:!!_.compileOnSave};function g(e){return gn(e)?e:void 0}function y(e){return v(e,vn,"string")}function v(e,t,r){if(ze(_,e)&&!SM(_[e])){if(gn(_[e])){const i=_[e];return n||N(i,t)||d.push(wT(Wo.Compiler_option_0_requires_a_value_of_type_1,e,r)),i}return b(Wo.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}return"no-prop"}function b(e,t,r){n||d.push(wT(e,t,r))}}function CM({includeSpecs:e,excludeSpecs:n},t){return wT(Wo.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,t||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(n||[]))}function kM(e,n,t){return 0===e.length&&n&&(!t||0===t.length)}function IM(e){return!ze(e,"files")&&!ze(e,"references")}function wM(e,n,t,r,i){const a=r.length;return kM(e,i)?r.push(CM(t,n)):H(r,(e=>!function(e){return e.code===Wo.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(e))),a!==r.length}function RM(e,n,t,r,i,a,o,s){var c;const l=So(i||"",r=vo(r));if(a.indexOf(l)>=0)return o.push(wT(Wo.Circularity_detected_while_resolving_configuration_Colon_0,[...a,l].join(" -> "))),{raw:e||aM(n,o)};const d=e?function(e,n,t,r,i){ze(e,"excludes")&&i.push(wT(Wo.Unknown_option_excludes_Did_you_mean_exclude));const a=PM(e.compilerOptions,t,i,r),o=GM(e.typeAcquisition,t,i,r),s=function(e,n,t){return BM(tM(),e,n,void 0,TO,t)}(e.watchOptions,t,i);let c;if(e.compileOnSave=function(e,n,t){if(!ze(e,WD.name))return!1;const r=UM(WD,e.compileOnSave,n,t);return"boolean"===typeof r&&r}(e,t,i),e.extends||""===e.extends)if(cM(LO,e.extends)){const a=r?AM(r,t):t;if(vn(e.extends))c=NM(e.extends,n,a,i,wT);else{c=[];for(const t of e.extends)vn(t)?c=Te(c,NM(t,n,a,i,wT)):i.push(wT(Wo.Compiler_option_0_requires_a_value_of_type_1,"extends",sM(LO.element)))}}else i.push(wT(Wo.Compiler_option_0_requires_a_value_of_type_1,"extends",sM(LO)));return{raw:e,options:a,watchOptions:s,typeAcquisition:o,extendedConfigPath:c}}(e,t,r,i,o):function(e,n,t,r,i){const a=MM(r);let o,s,c,l;const d={onSetValidOptionKeyValueInParent(e,n,i){let c;switch(e){case"compilerOptions":c=a;break;case"watchOptions":c=s||(s={});break;case"typeAcquisition":c=o||(o=FM(r));break;default:Nt.fail("Unknown option")}c[n.name]=VM(n,t,i)},onSetValidOptionKeyValueInRoot(a,o,s,l){if("extends"!==a);else{const a=r?AM(r,t):t;if(vn(s))c=NM(s,n,a,i,((n,t)=>Xf(e,l,n,t)));else{c=[];for(let t=0;t<s.length;t++){const r=s[t];vn(r)&&(c=Te(c,NM(r,n,a,i,((n,r)=>Xf(e,l.elements[t],n,r)))))}}}},onSetUnknownOptionKeyValueInRoot(n,t,r,a){"excludes"===n&&i.push(Xf(e,t,Wo.Unknown_option_excludes_Did_you_mean_exclude)),D(nO,(e=>e.name===n))&&(l=Te(l,t))}},u=iM(e,i,!0,d);o||(o=FM(r));l&&u&&void 0===u.compilerOptions&&i.push(Xf(e,l[0],Wo._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,Wf(l[0])));return{raw:u,options:a,watchOptions:s,typeAcquisition:o,extendedConfigPath:c}}(n,t,r,i,o);if((null==(c=d.options)?void 0:c.paths)&&(d.options.pathsBasePath=r),d.extendedConfigPath){a=a.concat([l]);const e={options:{}};vn(d.extendedConfigPath)?u(e,d.extendedConfigPath):d.extendedConfigPath.forEach((n=>u(e,n))),!d.raw.include&&e.include&&(d.raw.include=e.include),!d.raw.exclude&&e.exclude&&(d.raw.exclude=e.exclude),!d.raw.files&&e.files&&(d.raw.files=e.files),void 0===d.raw.compileOnSave&&e.compileOnSave&&(d.raw.compileOnSave=e.compileOnSave),n&&e.extendedSourceFiles&&(n.extendedSourceFiles=Qe(e.extendedSourceFiles.keys())),d.options=Ze(e.options,d.options),d.watchOptions=d.watchOptions&&e.watchOptions?Ze(e.watchOptions,d.watchOptions):d.watchOptions||e.watchOptions}return d;function u(e,i){const c=function(e,n,t,r,i,a,o){var s;const c=t.useCaseSensitiveFileNames?n:In(n);let l,d,u;a&&(l=a.get(c))?({extendedResult:d,extendedConfig:u}=l):(d=$O(n,(e=>t.readFile(e))),d.parseDiagnostics.length||(u=RM(void 0,d,t,po(n),fo(n),r,i,a)),a&&a.set(c,{extendedResult:d,extendedConfig:u}));if(e&&((null!=(s=o.extendedSourceFiles)?s:o.extendedSourceFiles=new Set).add(d.fileName),d.extendedSourceFiles))for(const _ of d.extendedSourceFiles)o.extendedSourceFiles.add(_);if(d.parseDiagnostics.length)return void i.push(...d.parseDiagnostics);return u}(n,i,t,a,o,s,e);if(c&&c.options){const n=c.raw;let a;const o=o=>{n[o]&&(e[o]=W(n[o],(e=>eo(e)?e:Eo(a||(a=Uo(po(i),r,lt(t.useCaseSensitiveFileNames))),e))))};o("include"),o("exclude"),o("files"),void 0!==n.compileOnSave&&(e.compileOnSave=n.compileOnSave),Ze(e.options,c.options),e.watchOptions=e.watchOptions&&c.watchOptions?Ze({},e.watchOptions,c.watchOptions):e.watchOptions||c.watchOptions}}}function NM(e,n,t,r,i){if(eo(e=vo(e))||pt(e,"./")||pt(e,"../")){let a=So(e,t);return n.fileExists(a)||et(a,".json")||(a=`${a}.json`,n.fileExists(a))?a:void r.push(i(Wo.File_0_not_found,e))}const a=eF(e,Eo(t,"tsconfig.json"),n);if(a.resolvedModule)return a.resolvedModule.resolvedFileName;""===e?r.push(i(Wo.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):r.push(i(Wo.File_0_not_found,e))}function DM(e,n,t){const r=[];return{options:PM(e,n,r,t),errors:r}}function OM(e,n,t){const r=[];return{options:GM(e,n,r,t),errors:r}}function MM(e){return e&&"jsconfig.json"===fo(e)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function PM(e,n,t,r){const i=MM(r);return BM(nM(),e,n,i,hO,t),r&&(i.configFilePath=vo(r)),i}function FM(e){return{enable:!!e&&"jsconfig.json"===fo(e),include:[],exclude:[]}}function GM(e,n,t,r){const i=FM(r);return BM(rM(),e,n,i,bO,t),i}function BM(e,n,t,r,i,a){if(n){for(const o in n){const s=e.get(o);s?(r||(r={}))[s.name]=UM(s,n[o],t,a):a.push(BO(o,i,wT))}return r}}function UM(e,n,t,r){if(cM(e,n)){const i=e.type;if("list"===i&&gn(n))return WM(e,n,t,r);if("listOrElement"===i)return gn(n)?WM(e,n,t,r):UM(e.element,n,t,r);if(!vn(e.type))return KM(e,n,r);const a=HM(e,n,r);return SM(a)?a:jM(e,t,a)}r.push(wT(Wo.Compiler_option_0_requires_a_value_of_type_1,e.name,sM(e)))}function VM(e,n,t){if(!SM(t)){if("listOrElement"===e.type&&!gn(t))return VM(e.element,n,t);if("list"===e.type||"listOrElement"===e.type){const r=e;return r.element.isFilePath||!vn(r.element.type)?j(W(t,(e=>VM(r.element,n,e))),(e=>!!r.listPreserveFalsyValues||!!e)):t}return vn(e.type)?jM(e,n,t):e.type.get(vn(t)?t.toLowerCase():t)}}function jM(e,n,t){return e.isFilePath&&""===(t=So(t,n))&&(t="."),t}function HM(e,n,t){var r;if(SM(n))return;const i=null==(r=e.extraValidation)?void 0:r.call(e,n);if(!i)return n;t.push(wT(...i))}function KM(e,n,t){if(SM(n))return;const r=n.toLowerCase(),i=e.type.get(r);if(void 0!==i)return HM(e,i,t);t.push(OO(e))}function WM(e,n,t,r){return j(W(n,(n=>UM(e.element,n,t,r))),(n=>!!e.listPreserveFalsyValues||!!n))}function zM(e,n,t,r,a=i){n=Ao(n);const o=lt(r.useCaseSensitiveFileNames),s=new Map,c=new Map,l=new Map,{validatedFilesSpec:d,validatedIncludeSpecs:u,validatedExcludeSpecs:_}=e,p=Gx(t,a),f=Bx(t,p);if(d)for(const i of d){const e=So(i,n);s.set(o(e),e)}let m;if(u&&u.length>0)for(const y of r.readDirectory(n,J(f),_,u,void 0)){if(oo(y,".json")){if(!m){const e=W(Lx(u.filter((e=>et(e,".json"))),n,"files"),(e=>`^${e}$`));m=e?e.map((e=>Nx(e,r.useCaseSensitiveFileNames))):i}if(-1!==M(m,(e=>e.test(y)))){const e=o(y);s.has(e)||l.has(e)||l.set(e,y)}continue}if(nP(y,s,c,p,o))continue;tP(y,c,p,o);const e=o(y);s.has(e)||c.has(e)||c.set(e,y)}const h=Qe(s.values()),g=Qe(c.values());return h.concat(g,Qe(l.values()))}function qM(e,n,t,r,i){const{validatedFilesSpec:a,validatedIncludeSpecs:o,validatedExcludeSpecs:s}=n;if(!S(o)||!S(s))return!1;t=Ao(t);const c=lt(r);if(a)for(const l of a)if(c(So(l,t))===e)return!1;return YM(e,s,r,i,t)}function JM(e){const n=pt(e,"**/")?0:e.indexOf("/**/");if(-1===n)return!1;return(et(e,"/..")?e.length:e.lastIndexOf("/../"))>n}function XM(e,n,t,r){return YM(e,j(n,(e=>!JM(e))),t,r)}function YM(e,n,t,r,i){const a=Ax(n,Eo(Ao(r),i),"exclude"),o=a&&Nx(a,t);return!!o&&(!!o.test(e)||!ao(e)&&o.test(Io(e)))}function $M(e,n,t,r,i){return e.filter((e=>{if(!vn(e))return!1;const a=QM(e,t);return void 0!==a&&n.push(function(e,n){const t=Wm(r,i,n);return t?Xf(r,t,e,n):wT(e,n)}(...a)),void 0===a}))}function QM(e,n){return Nt.assert("string"===typeof e),n&&IO.test(e)?[Wo.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:JM(e)?[Wo.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function ZM({validatedIncludeSpecs:e,validatedExcludeSpecs:n},t,r){const i=Ax(n,t,"exclude"),a=i&&new RegExp(i,r?"":"i"),o={};if(void 0!==e){const n=[];for(const i of e){const e=Ao(Eo(t,i));if(a&&a.test(e))continue;const s=eP(e,r);if(s){const{key:e,flags:t}=s,r=o[e];(void 0===r||r<t)&&(o[e]=t,1===t&&n.push(e))}}for(const e in o)if(ze(o,e))for(const i of n)e!==i&&Po(i,e,t,!r)&&delete o[e]}return o}function eP(e,n){const t=wO.exec(e);if(t){const r=e.indexOf("?"),i=e.indexOf("*"),a=e.lastIndexOf(za);return{key:n?t[0]:In(t[0]),flags:-1!==r&&r<a||-1!==i&&i<a?1:0}}if(Cx(e.substring(e.lastIndexOf(za)+1)))return{key:ko(n?e:In(e)),flags:1}}function nP(e,n,t,r,i){const a=A(r,(n=>so(e,n)?n:void 0));if(!a)return!1;for(const o of a){if(oo(e,o))return!1;const r=i(Yx(e,o));if(n.has(r)||t.has(r)){if(".d.ts"===o&&(oo(e,".js")||oo(e,".jsx")))continue;return!0}}return!1}function tP(e,n,t,r){const i=A(t,(n=>so(e,n)?n:void 0));if(i)for(let a=i.length-1;a>=0;a--){const t=i[a];if(oo(e,t))return;const o=r(Yx(e,t));n.delete(o)}}function rP(e){const n={};for(const t in e)if(ze(e,t)){const r=HO(t);void 0!==r&&(n[t]=iP(e[t],r))}return n}function iP(e,n){switch(n.type){case"object":case"string":return"";case"number":return"number"===typeof e?e:"";case"boolean":return"boolean"===typeof e?e:"";case"listOrElement":if(!gn(e))return iP(e,n.element);case"list":const t=n.element;return gn(e)?e.map((e=>iP(e,t))):"";default:return gp(n.type,((n,t)=>{if(n===e)return t}))}}function aP(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const n=e.defaultValueDescription;return e.isFilePath?`./${n&&"string"===typeof n?n:""}`:"";case"list":return[];case"listOrElement":return aP(e.element);case"object":return{};default:const t=Oe(e.type.keys());return void 0!==t?t:Nt.fail("Expected 'option.type' to have entries.")}}var oP,sP,cP,lP,dP,uP=E({"src/compiler/commandLineParser.ts"(){lq(),WD={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},zD=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),qD=new Map(z(zD.entries(),(([e,n])=>[""+n,e]))),XD=(JD=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]]).map((e=>e[0])),YD=new Map(JD),$D=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:Wo.Watch_and_Build_Modes,description:Wo.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:Wo.Watch_and_Build_Modes,description:Wo.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:Wo.Watch_and_Build_Modes,description:Wo.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:Wo.Watch_and_Build_Modes,description:Wo.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:QM},category:Wo.Watch_and_Build_Modes,description:Wo.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:QM},category:Wo.Watch_and_Build_Modes,description:Wo.Remove_a_list_of_files_from_the_watch_mode_s_processing}],QD=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:Wo.Command_line_Options,description:Wo.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:Wo.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:Wo.Command_line_Options,description:Wo.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:Wo.Output_Formatting,description:Wo.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:Wo.Compiler_Diagnostics,description:Wo.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:Wo.Compiler_Diagnostics,description:Wo.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:Wo.Compiler_Diagnostics,description:Wo.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:Wo.Output_Formatting,description:Wo.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:Wo.Compiler_Diagnostics,description:Wo.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:Wo.Compiler_Diagnostics,description:Wo.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:Wo.Compiler_Diagnostics,description:Wo.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:Wo.FILE_OR_DIRECTORY,category:Wo.Compiler_Diagnostics,description:Wo.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:Wo.DIRECTORY,category:Wo.Compiler_Diagnostics,description:Wo.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:Wo.Projects,description:Wo.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:Wo.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Wo.Emit,transpileOptionValue:void 0,description:Wo.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:Wo.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Wo.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:Wo.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Wo.Emit,description:Wo.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Wo.Emit,defaultValueDescription:!1,description:Wo.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:Wo.Emit,description:Wo.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Wo.Watch_and_Build_Modes,description:Wo.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:Wo.Command_line_Options,isCommandLineOnly:!0,description:Wo.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:Wo.Platform_specific}],ZD={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:Wo.VERSION,showInSimplifiedHelpView:!0,category:Wo.Language_and_Environment,description:Wo.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},eO={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199})),affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:Wo.KIND,showInSimplifiedHelpView:!0,category:Wo.Modules,description:Wo.Specify_what_module_code_is_generated,defaultValueDescription:void 0},nO=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:Wo.Command_line_Options,description:Wo.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:Wo.Command_line_Options,description:Wo.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:Wo.Command_line_Options,description:Wo.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:Wo.Command_line_Options,paramType:Wo.FILE_OR_DIRECTORY,description:Wo.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:Wo.Command_line_Options,description:Wo.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:Wo.Command_line_Options,isCommandLineOnly:!0,description:Wo.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:Wo.Command_line_Options,isCommandLineOnly:!0,description:Wo.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},ZD,eO,{name:"lib",type:"list",element:{name:"lib",type:YD,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:Wo.Language_and_Environment,description:Wo.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:Wo.JavaScript_Support,description:Wo.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:Wo.JavaScript_Support,description:Wo.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:zD,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,paramType:Wo.KIND,showInSimplifiedHelpView:!0,category:Wo.Language_and_Environment,description:Wo.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Wo.FILE,showInSimplifiedHelpView:!0,category:Wo.Emit,description:Wo.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Wo.DIRECTORY,showInSimplifiedHelpView:!0,category:Wo.Emit,description:Wo.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Wo.LOCATION,category:Wo.Modules,description:Wo.Specify_the_root_folder_within_your_source_files,defaultValueDescription:Wo.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:Wo.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:Wo.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:Wo.FILE,category:Wo.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:Wo.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Wo.Emit,defaultValueDescription:!1,description:Wo.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:Wo.Emit,description:Wo.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Wo.Emit,description:Wo.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Emit,description:Wo.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Wo.Emit,description:Wo.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:Wo.Interop_Constraints,description:Wo.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:Wo.Interop_Constraints,description:Wo.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Wo.Type_Checking,description:Wo.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Wo.Type_Checking,description:Wo.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:Wo.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Wo.Type_Checking,description:Wo.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:Wo.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Wo.Type_Checking,description:Wo.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:Wo.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Wo.Type_Checking,description:Wo.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:Wo.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Wo.Type_Checking,description:Wo.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:Wo.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Wo.Type_Checking,description:Wo.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:Wo.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Wo.Type_Checking,description:Wo.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:Wo.Type_Checking,description:Wo.Ensure_use_strict_is_always_emitted,defaultValueDescription:Wo.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Type_Checking,description:Wo.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Type_Checking,description:Wo.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Type_Checking,description:Wo.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Type_Checking,description:Wo.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Type_Checking,description:Wo.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Type_Checking,description:Wo.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Type_Checking,description:Wo.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:Wo.Type_Checking,description:Wo.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsModuleResolution:!0,paramType:Wo.STRATEGY,category:Wo.Modules,description:Wo.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:Wo.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:Wo.Modules,description:Wo.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:Wo.Modules,description:Wo.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:Wo.Modules,description:Wo.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:Wo.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:Wo.Modules,description:Wo.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:Wo.Modules,description:Wo.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Interop_Constraints,description:Wo.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:Wo.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Wo.Interop_Constraints,description:Wo.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:Wo.Interop_Constraints,description:Wo.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Modules,description:Wo.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:Wo.Modules,description:Wo.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,category:Wo.Modules,description:Wo.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:Wo.Modules,description:Wo.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:Wo.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:Wo.Modules,description:Wo.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:Wo.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:Wo.Modules,description:Wo.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:Wo.LOCATION,category:Wo.Emit,description:Wo.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:Wo.LOCATION,category:Wo.Emit,description:Wo.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Wo.Emit,description:Wo.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Language_and_Environment,description:Wo.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Wo.Language_and_Environment,description:Wo.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:Wo.Language_and_Environment,description:Wo.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:Wo.Language_and_Environment,description:Wo.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:Wo.Language_and_Environment,description:Wo.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:Wo.Modules,description:Wo.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:Wo.Modules,description:Wo.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:Wo.Backwards_Compatibility,paramType:Wo.FILE,transpileOptionValue:void 0,description:Wo.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:Wo.Language_and_Environment,description:Wo.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:Wo.Completeness,description:Wo.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:Wo.Backwards_Compatibility,description:Wo.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Wo.Emit,description:Wo.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:Wo.NEWLINE,category:Wo.Emit,description:Wo.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Output_Formatting,description:Wo.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:Wo.Language_and_Environment,affectsProgramStructure:!0,description:Wo.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:Wo.Modules,description:Wo.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Wo.Emit,description:Wo.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:Wo.Editor_Support,description:Wo.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:Wo.Projects,description:Wo.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:Wo.Projects,description:Wo.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:Wo.Projects,description:Wo.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Backwards_Compatibility,description:Wo.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Wo.Emit,description:Wo.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Wo.Emit,transpileOptionValue:void 0,description:Wo.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Wo.Emit,description:Wo.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Wo.DIRECTORY,category:Wo.Emit,transpileOptionValue:void 0,description:Wo.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:Wo.Completeness,description:Wo.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Type_Checking,description:Wo.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Type_Checking,description:Wo.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Backwards_Compatibility,description:Wo.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Backwards_Compatibility,description:Wo.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:Wo.Interop_Constraints,description:Wo.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:Wo.JavaScript_Support,description:Wo.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Wo.Backwards_Compatibility,description:Wo.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Wo.Language_and_Environment,description:Wo.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:Wo.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Wo.Emit,description:Wo.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:Wo.Backwards_Compatibility,description:Wo.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:Wo.Specify_a_list_of_language_service_plugins_to_include,category:Wo.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsModuleResolution:!0,description:Wo.Control_what_method_is_used_to_detect_module_format_JS_files,category:Wo.Language_and_Environment,defaultValueDescription:Wo.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],tO=[...QD,...nO],rO=tO.filter((e=>!!e.affectsSemanticDiagnostics)),iO=tO.filter((e=>!!e.affectsEmit)),aO=tO.filter((e=>!!e.affectsDeclarationPath)),oO=tO.filter((e=>!!e.affectsModuleResolution)),sO=tO.filter((e=>!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics)),cO=tO.filter((e=>!!e.affectsProgramStructure)),lO=tO.filter((e=>ze(e,"transpileOptionValue"))),dO=[{name:"verbose",shortName:"v",category:Wo.Command_line_Options,description:Wo.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:Wo.Command_line_Options,description:Wo.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:Wo.Command_line_Options,description:Wo.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:Wo.Command_line_Options,description:Wo.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],uO=[...QD,...dO],_O=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],fO={diagnostic:Wo.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:WO},mO={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},hO={alternateMode:fO,getOptionsNameMap:DO,optionDeclarations:tO,unknownOptionDiagnostic:Wo.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:Wo.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Wo.Compiler_option_0_expects_an_argument},yO={diagnostic:Wo.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:DO},vO={alternateMode:yO,getOptionsNameMap:WO,optionDeclarations:uO,unknownOptionDiagnostic:Wo.Unknown_build_option_0,unknownDidYouMeanDiagnostic:Wo.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Wo.Build_option_0_requires_a_value_of_type_1},bO={optionDeclarations:_O,unknownOptionDiagnostic:Wo.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:Wo.Unknown_type_acquisition_option_0_Did_you_mean_1},TO={getOptionsNameMap:eM,optionDeclarations:$D,unknownOptionDiagnostic:Wo.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:Wo.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Wo.Watch_option_0_requires_a_value_of_type_1},LO={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:Wo.File_Management},kO="**/*",IO=/(^|\/)\*\*\/?$/,wO=/^[^*?]*(?=\/[^/]*[*?])/}});function _P(e){e.trace(IT.apply(void 0,arguments))}function pP(e,n){return!!e.traceResolution&&void 0!==n.trace}function fP(e,n){let t;if(n&&e){const r=e.contents.packageJsonContent;"string"===typeof r.name&&"string"===typeof r.version&&(t={name:r.name,subModuleName:n.path.slice(e.packageDirectory.length+za.length),version:r.version})}return n&&{path:n.path,extension:n.ext,packageId:t,resolvedUsingTsExtension:n.resolvedUsingTsExtension}}function mP(e){return fP(void 0,e)}function hP(e){if(e)return Nt.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function gP(e){const n=[];return 1&e&&n.push("TypeScript"),2&e&&n.push("JavaScript"),4&e&&n.push("Declaration"),8&e&&n.push("JSON"),n.join(", ")}function yP(e){if(e)return Nt.assert(eS(e.extension)),{fileName:e.path,packageId:e.packageId}}function vP(e,n,t,r,i,a,o,s){if(!o.resultFromCache&&!o.compilerOptions.preserveSymlinks&&n&&t&&!n.originalPath&&!rc(e)){const{resolvedFileName:e,originalPath:t}=kP(n.path,o.host,o.traceEnabled);t&&(n={...n,path:e,originalPath:t})}return bP(n,t,r,i,a,o.resultFromCache,s)}function bP(e,n,t,r,i,a,o){return a?(a.failedLookupLocations=TP(a.failedLookupLocations,t),a.affectingLocations=TP(a.affectingLocations,r),a.resolutionDiagnostics=TP(a.resolutionDiagnostics,i),a):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:n,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:EP(t),affectingLocations:EP(r),resolutionDiagnostics:EP(i),node10Result:o}}function EP(e){return e.length?e:void 0}function TP(e,n){return(null==n?void 0:n.length)?(null==e?void 0:e.length)?(e.push(...n),e):n:e}function xP(e,n,t,r){if(!ze(e,n))return void(r.traceEnabled&&_P(r.host,Wo.package_json_does_not_have_a_0_field,n));const i=e[n];if(typeof i===t&&null!==i)return i;r.traceEnabled&&_P(r.host,Wo.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,t,null===i?"null":typeof i)}function SP(e,n,t,r){const i=xP(e,n,"string",r);if(void 0===i)return;if(!i)return void(r.traceEnabled&&_P(r.host,Wo.package_json_had_a_falsy_0_field,n));const a=Ao(Eo(t,i));return r.traceEnabled&&_P(r.host,Wo.package_json_has_0_field_1_that_references_2,n,i,a),a}function AP(e,t){const r=function(e,n){const t=xP(e,"typesVersions","object",n);if(void 0!==t)return n.traceEnabled&&_P(n.host,Wo.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),t}(e,t);if(void 0===r)return;if(t.traceEnabled)for(const n in r)ze(r,n)&&!Vt.tryParse(n)&&_P(t.host,Wo.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,n);const i=LP(r);if(!i)return void(t.traceEnabled&&_P(t.host,Wo.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,n));const{version:a,paths:o}=i;if("object"===typeof o)return i;t.traceEnabled&&_P(t.host,Wo.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${a}']`,"object",typeof o)}function LP(e){oP||(oP=new Ut(t));for(const n in e){if(!ze(e,n))continue;const t=Vt.tryParse(n);if(void 0!==t&&t.test(oP))return{version:n,paths:e[n]}}}function CP(e,n){if(e.typeRoots)return e.typeRoots;let t;return e.configFilePath?t=po(e.configFilePath):n.getCurrentDirectory&&(t=n.getCurrentDirectory()),void 0!==t?function(e,n){if(!n.directoryExists)return[Eo(e,sP)];let t;return Ho(Ao(e),(e=>{const r=Eo(e,sP);n.directoryExists(r)&&(t||(t=[])).push(r)})),t}(t,n):void 0}function kP(e,n,t){const r=function(e,n,t){if(!n.realpath)return e;const r=Ao(n.realpath(e));t&&_P(n,Wo.Resolving_real_path_for_0_result_1,e,r);return Nt.assert(n.fileExists(r),`${e} linked to nonexistent file ${r}`),r}(e,n,t),i=function(e,n,t){return 0===Mo(e,n,!("function"===typeof t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():t.useCaseSensitiveFileNames))}(e,r,n);return{resolvedFileName:i?e:r,originalPath:i?void 0:e}}function IP(e,n,t,r,i,a,o){Nt.assert("string"===typeof e,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const s=pP(t,r);i&&(t=i.commandLine.options);const c=n?po(n):void 0;let l=c?null==a?void 0:a.getFromDirectoryCache(e,o,c,i):void 0;if(l||!c||rc(e)||(l=null==a?void 0:a.getFromNonRelativeNameCache(e,o,c,i)),l)return s&&(_P(r,Wo.Resolving_type_reference_directive_0_containing_file_1,e,n),i&&_P(r,Wo.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName),_P(r,Wo.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,c),b(l)),l;const d=CP(t,r);s&&(void 0===n?void 0===d?_P(r,Wo.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):_P(r,Wo.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,d):void 0===d?_P(r,Wo.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,n):_P(r,Wo.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,n,d),i&&_P(r,Wo.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));const u=[],_=[];let p=wP(t);99!==o||3!==zT(t)&&99!==zT(t)||(p|=32);const f=8&p?RP(t,!!(32&p)):[],m=[],h={compilerOptions:t,host:r,traceEnabled:s,failedLookupLocations:u,affectingLocations:_,packageJsonInfoCache:a,features:p,conditions:f,requestContainingDirectory:c,reportDiagnostic:e=>{m.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let g,y=function(){if(d&&d.length)return s&&_P(r,Wo.Resolving_with_primary_search_path_0,d.join(", ")),C(d,(n=>{const t=Eo(n,e),i=po(t),a=uE(i,r);return!a&&s&&_P(r,Wo.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),yP(fF(4,t,!a,h))}));s&&_P(r,Wo.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),v=!0;if(y||(y=function(){const t=n&&po(n);if(void 0!==t){let n;if(s&&_P(r,Wo.Looking_up_in_node_modules_folder_initial_location_0,t),rc(e)){const{path:r}=tF(t,e);n=rF(4,r,!1,h,!0)}else{const r=wF(4,e,t,h,void 0,void 0);n=r&&r.value}return yP(n)}s&&_P(r,Wo.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),v=!1),y){const{fileName:e,packageId:n}=y;let i,a=e;t.preserveSymlinks||({resolvedFileName:a,originalPath:i}=kP(e,r,s)),g={primary:v,resolvedFileName:a,originalPath:i,packageId:n,isExternalLibraryImport:iF(e)}}return l={resolvedTypeReferenceDirective:g,failedLookupLocations:EP(u),affectingLocations:EP(_),resolutionDiagnostics:EP(m)},c&&(null==a||a.getOrCreateCacheForDirectory(c,i).set(e,o,l),rc(e)||null==a||a.getOrCreateCacheForNonRelativeName(e,o,i).set(c,l)),s&&b(l),l;function b(n){var t;(null==(t=n.resolvedTypeReferenceDirective)?void 0:t.resolvedFileName)?n.resolvedTypeReferenceDirective.packageId?_P(r,Wo.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,n.resolvedTypeReferenceDirective.resolvedFileName,Ip(n.resolvedTypeReferenceDirective.packageId),n.resolvedTypeReferenceDirective.primary):_P(r,Wo.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,n.resolvedTypeReferenceDirective.resolvedFileName,n.resolvedTypeReferenceDirective.primary):_P(r,Wo.Type_reference_directive_0_was_not_resolved,e)}}function wP(e){let n=0;switch(zT(e)){case 3:case 99:case 100:n=30}return e.resolvePackageJsonExports?n|=8:!1===e.resolvePackageJsonExports&&(n&=-9),e.resolvePackageJsonImports?n|=2:!1===e.resolvePackageJsonImports&&(n&=-3),n}function RP(e,n){const t=n||100===zT(e)?["import"]:["require"];return e.noDtsResolution||t.push("types"),100!==zT(e)&&t.push("node"),de(t,e.customConditions)}function NP(e,n,t,r,i){const a=gF(null==i?void 0:i.getPackageJsonInfoCache(),r,t);return Ho(n,(n=>{if("node_modules"!==fo(n)){const t=Eo(n,"node_modules");return bF(Eo(t,e),!1,a)}}))}function DP(e,n){if(e.types)return e.types;const t=[];if(n.directoryExists&&n.getDirectories){const r=CP(e,n);if(r)for(const e of r)if(n.directoryExists(e))for(const r of n.getDirectories(e)){const i=Ao(r),a=Eo(e,i,"package.json");if(!(n.fileExists(a)&&null===dE(a,n).typings)){const e=fo(i);46!==e.charCodeAt(0)&&t.push(e)}}}return t}function OP(e){var n;if(null===e||"object"!==typeof e)return""+e;if(gn(e))return`[${null==(n=e.map((e=>OP(e))))?void 0:n.join(",")}]`;let t="{";for(const r in e)ze(e,r)&&(t+=`${r}: ${OP(e[r])}`);return t+"}"}function MP(e,n){return n.map((n=>OP(mx(e,n)))).join("|")+(e.pathsBasePath?`|${e.pathsBasePath}`:void 0)}function PP(e){const n=new Map,t=new Map,r=new Map;let i=new Map;return e&&n.set(e,i),{getMapOfCacheRedirects:function(e){return e?a(e.commandLine.options,!1):i},getOrCreateMapOfCacheRedirects:function(e){return e?a(e.commandLine.options,!0):i},update:function(t){e!==t&&(e?i=a(t,!0):n.set(t,i),e=t)},clear:function(){const a=e&&t.get(e);i.clear(),n.clear(),t.clear(),r.clear(),e&&(a&&t.set(e,a),n.set(e,i))}};function a(t,a){let s=n.get(t);if(s)return s;const c=o(t);if(s=r.get(c),!s){if(e){const n=o(e);n===c?s=i:r.has(n)||r.set(n,i)}a&&(null!=s||(s=new Map)),s&&r.set(c,s)}return s&&n.set(t,s),s}function o(e){let n=t.get(e);return n||t.set(e,n=MP(e,oO)),n}}function FP(e,n,t,r){const i=e.getOrCreateMapOfCacheRedirects(n);let a=i.get(t);return a||(a=r(),i.set(t,a)),a}function GP(e,n){return void 0===n?e:`${n}|${e}`}function BP(){const e=new Map,n=new Map,t={get:(n,t)=>e.get(r(n,t)),set:(n,i,a)=>(e.set(r(n,i),a),t),delete:(n,i)=>(e.delete(r(n,i)),t),has:(n,t)=>e.has(r(n,t)),forEach:t=>e.forEach(((e,r)=>{const[i,a]=n.get(r);return t(e,i,a)})),size:()=>e.size};return t;function r(e,t){const r=GP(e,t);return n.set(r,[e,t]),r}}function UP(e,n,t,r){Nt.assert(n.length===t.length);const i=BP();for(let a=0;a<n.length;++a){const o=n[a];i.set(r.getName(o),r.getMode(o,e),t[a])}return i}function VP(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function jP(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function HP(e,n,t,r){const i=PP(t);return{getFromNonRelativeNameCache:function(e,n,t,r){var a,o;return Nt.assert(!rc(e)),null==(o=null==(a=i.getMapOfCacheRedirects(r))?void 0:a.get(GP(e,n)))?void 0:o.get(t)},getOrCreateCacheForNonRelativeName:function(e,n,t){return Nt.assert(!rc(e)),FP(i,t,GP(e,n),a)},clear:function(){i.clear()},update:function(e){i.update(e)}};function a(){const t=new Map;return{get:function(r){return t.get(Co(r,e,n))},set:function(i,a){const o=Co(i,e,n);if(t.has(o))return;t.set(o,a);const s=r(a),c=s&&function(t,r){const i=Co(po(r),e,n);let a=0;const o=Math.min(t.length,i.length);for(;a<o&&t.charCodeAt(a)===i.charCodeAt(a);)a++;if(a===t.length&&(i.length===a||i[a]===za))return t;const s=_o(t);if(a<s)return;const c=t.lastIndexOf(za,a-1);if(-1===c)return;return t.substr(0,Math.max(c,s))}(o,s);let l=o;for(;l!==c;){const e=po(l);if(e===l||t.has(e))break;t.set(e,a),l=e}}}}}function KP(e,n,t,r,i){const a=function(e,n,t){const r=PP(t);return{getFromDirectoryCache:function(t,i,a,o){var s,c;const l=Co(a,e,n);return null==(c=null==(s=r.getMapOfCacheRedirects(o))?void 0:s.get(l))?void 0:c.get(t,i)},getOrCreateCacheForDirectory:function(t,i){const a=Co(t,e,n);return FP(r,i,a,(()=>BP()))},clear:function(){r.clear()},update:function(e){r.update(e)}}}(e,n,t),o=HP(e,n,t,i);return null!=r||(r=function(e,n){let t;return{getPackageJsonInfo:function(r){return null==t?void 0:t.get(Co(r,e,n))},setPackageJsonInfo:function(r,i){(t||(t=new Map)).set(Co(r,e,n),i)},clear:function(){t=void 0},entries:function(){const e=null==t?void 0:t.entries();return e?Qe(e):[]},getInternalMap:function(){return t}}}(e,n)),{...r,...a,...o,clear:function(){s(),r.clear()},update:function(e){a.update(e),o.update(e)},getPackageJsonInfoCache:()=>r,clearAllExceptPackageJsonInfoCache:s};function s(){a.clear(),o.clear()}}function WP(e,n,t){const r=KP(e,n,t,void 0,VP);return r.getOrCreateCacheForModuleName=(e,n,t)=>r.getOrCreateCacheForNonRelativeName(e,n,t),r}function zP(e,n,t,r){return KP(e,n,t,r,jP)}function qP(e,n,t,r){const i=po(n);return t.getFromDirectoryCache(e,r,i,void 0)}function JP(e,n,t,r,i,a,o){const s=pP(t,r);a&&(t=a.commandLine.options),s&&(_P(r,Wo.Resolving_module_0_from_1,e,n),a&&_P(r,Wo.Using_compiler_options_of_project_reference_redirect_0,a.sourceFile.fileName));const c=po(n);let l=null==i?void 0:i.getFromDirectoryCache(e,o,c,a);if(l)s&&_P(r,Wo.Resolution_for_module_0_was_found_in_cache_from_location_1,e,c);else{let d=t.moduleResolution;if(void 0===d){switch(KT(t)){case 1:d=2;break;case 100:d=3;break;case 199:d=99;break;default:d=1}s&&_P(r,Wo.Module_resolution_kind_is_not_specified_using_0,Pi[d])}else s&&_P(r,Wo.Explicitly_specified_module_resolution_kind_Colon_0,Pi[d]);switch(mr.logStartResolveModule(e),d){case 3:case 99:l=function(e,n,t,r,i,a,o){return $P(30,e,n,t,r,i,a,o)}(e,n,t,r,i,a,o);break;case 2:l=ZP(e,n,t,r,i,a);break;case 1:l=UF(e,n,t,r,i,a);break;case 100:l=QP(e,n,t,r,i,a);break;default:return Nt.fail(`Unexpected moduleResolution: ${d}`)}l&&l.resolvedModule&&mr.logInfoEvent(`Module "${e}" resolved to "${l.resolvedModule.resolvedFileName}"`),mr.logStopResolveModule(l&&l.resolvedModule?""+l.resolvedModule.resolvedFileName:"null"),null==i||i.getOrCreateCacheForDirectory(c,a).set(e,o,l),rc(e)||null==i||i.getOrCreateCacheForNonRelativeName(e,o,a).set(c,l)}return s&&(l.resolvedModule?l.resolvedModule.packageId?_P(r,Wo.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,l.resolvedModule.resolvedFileName,Ip(l.resolvedModule.packageId)):_P(r,Wo.Module_name_0_was_successfully_resolved_to_1,e,l.resolvedModule.resolvedFileName):_P(r,Wo.Module_name_0_was_not_resolved,e)),l}function XP(e,n,t,r,i){const a=function(e,n,t,r){var i;const{baseUrl:a,paths:o,configFile:s}=r.compilerOptions;if(o&&!ro(n)){r.traceEnabled&&(a&&_P(r.host,Wo.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,a,n),_P(r.host,Wo.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n));return OF(e,n,Dv(r.compilerOptions,r.host),o,(null==s?void 0:s.configFileSpecs)?(i=s.configFileSpecs).pathPatterns||(i.pathPatterns=Qx(o)):void 0,t,!1,r)}}(e,n,r,i);return a?a.value:rc(n)?function(e,n,t,r,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&_P(i.host,Wo.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);const a=Ao(Eo(t,n));let o,s;for(const c of i.compilerOptions.rootDirs){let e=Ao(c);et(e,za)||(e+=za);const n=pt(a,e)&&(void 0===s||s.length<e.length);i.traceEnabled&&_P(i.host,Wo.Checking_if_0_is_the_longest_matching_prefix_for_1_2,e,a,n),n&&(s=e,o=c)}if(s){i.traceEnabled&&_P(i.host,Wo.Longest_matching_prefix_for_0_is_1,a,s);const n=a.substr(s.length);i.traceEnabled&&_P(i.host,Wo.Loading_0_from_the_root_dir_1_candidate_location_2,n,s,a);const c=r(e,a,!uE(t,i.host),i);if(c)return c;i.traceEnabled&&_P(i.host,Wo.Trying_other_entries_in_rootDirs);for(const t of i.compilerOptions.rootDirs){if(t===o)continue;const a=Eo(Ao(t),n);i.traceEnabled&&_P(i.host,Wo.Loading_0_from_the_root_dir_1_candidate_location_2,n,t,a);const s=r(e,a,!uE(po(a),i.host),i);if(s)return s}i.traceEnabled&&_P(i.host,Wo.Module_resolution_using_rootDirs_has_failed)}return}(e,n,t,r,i):function(e,n,t,r){const{baseUrl:i}=r.compilerOptions;if(!i)return;r.traceEnabled&&_P(r.host,Wo.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,n);const a=Ao(Eo(i,n));r.traceEnabled&&_P(r.host,Wo.Resolving_module_name_0_relative_to_base_url_1_2,n,i,a);return t(e,a,!uE(po(a),r.host),r)}(e,n,r,i)}function YP(e,n,t){const{resolvedModule:r,failedLookupLocations:i}=function(e,n,t){return nF(0,e,n,{moduleResolution:2,allowJs:!0},t,void 0,2,!1,void 0)}(e,n,t);if(!r)throw new Error(`Could not resolve JS module '${e}' starting at '${n}'. Looked in: ${null==i?void 0:i.join(", ")}`);return r.resolvedFileName}function $P(e,n,t,r,i,a,o,s){const c=po(t),l=99===s?32:0;let d=r.noDtsResolution?3:7;return ax(r)&&(d|=8),nF(e|l,n,c,r,i,a,d,!1,o)}function QP(e,n,t,r,i,a){const o=po(n);let s=t.noDtsResolution?3:7;return ax(t)&&(s|=8),nF(wP(t),e,o,t,r,i,s,!1,a)}function ZP(e,n,t,r,i,a,o){let s;return o?s=8:t.noDtsResolution?(s=3,ax(t)&&(s|=8)):s=ax(t)?15:7,nF(0,e,po(n),t,r,i,s,!!o,a)}function eF(e,n,t){return nF(8,e,po(n),{moduleResolution:99},t,void 0,8,!0,void 0)}function nF(e,n,t,r,i,a,o,s,c){var l,d,u,_;const p=pP(r,i),f=[],m=[],h=RP(r,!!(32&e)),g=[],y={compilerOptions:r,host:i,traceEnabled:p,failedLookupLocations:f,affectingLocations:m,packageJsonInfoCache:a,features:e,conditions:h,requestContainingDirectory:t,reportDiagnostic:e=>{g.push(e)},isConfigLookup:s,candidateIsFromPackageJsonField:!1};let v,b;if(p&&tx(zT(r))&&_P(i,Wo.Resolving_in_0_mode_with_conditions_1,32&e?"ESM":"CJS",h.map((e=>`'${e}'`)).join(", ")),2===zT(r)){const e=5&o,n=-6&o;v=e&&E(e,y)||n&&E(n,y)||void 0}else v=E(o,y);if((null==(l=null==v?void 0:v.value)?void 0:l.isExternalLibraryImport)&&!s&&5&o&&8&e&&!rc(n)&&!TF(5,v.value.resolved.extension)&&h.indexOf("import")>-1){KF(y,Wo.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const e=E(5&o,{...y,features:-9&y.features,failedLookupLocations:[],affectingLocations:[],reportDiagnostic:xn});(null==(d=null==e?void 0:e.value)?void 0:d.isExternalLibraryImport)&&(b=e.value.resolved.path)}return vP(n,null==(u=null==v?void 0:v.value)?void 0:u.resolved,null==(_=null==v?void 0:v.value)?void 0:_.isExternalLibraryImport,f,m,g,y,b);function E(r,o){const s=XP(r,n,t,((e,n,t,r)=>rF(e,n,t,r,!0)),o);if(s)return HF({resolved:s,isExternalLibraryImport:iF(s.path)});if(rc(n)){const{path:e,parts:i}=tF(t,n),a=rF(r,e,!1,o,!0);return a&&HF({resolved:a,isExternalLibraryImport:G(i,"node_modules")})}{let s;return 2&e&&pt(n,"#")&&(s=function(e,n,t,r,i,a){var o,s;if("#"===n||pt(n,"#/"))return r.traceEnabled&&_P(r.host,Wo.Invalid_import_specifier_0_has_no_possible_resolutions,n),HF(void 0);const c=So(Eo(t,"dummy"),null==(s=(o=r.host).getCurrentDirectory)?void 0:s.call(o)),l=yF(c,r);if(!l)return r.traceEnabled&&_P(r.host,Wo.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,c),HF(void 0);if(!l.contents.packageJsonContent.imports)return r.traceEnabled&&_P(r.host,Wo.package_json_scope_0_has_no_imports_defined,l.packageDirectory),HF(void 0);const d=CF(e,r,i,a,n,l.contents.packageJsonContent.imports,l,!0);if(d)return d;r.traceEnabled&&_P(r.host,Wo.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,l.packageDirectory);return HF(void 0)}(r,n,t,o,a,c)),!s&&4&e&&(s=function(e,n,t,r,i,a){var o,s;const c=So(Eo(t,"dummy"),null==(s=(o=r.host).getCurrentDirectory)?void 0:s.call(o)),l=yF(c,r);if(!l||!l.contents.packageJsonContent.exports)return;if("string"!==typeof l.contents.packageJsonContent.name)return;const d=go(n),u=go(l.contents.packageJsonContent.name);if(!N(u,((e,n)=>d[n]===e)))return;const _=d.slice(u.length),p=S(_)?`.${za}${_.join(za)}`:".",f=5&e,m=-6&e;return AF(l,f,p,r,i,a)||AF(l,m,p,r,i,a)}(r,n,t,o,a,c)),s||(p&&_P(i,Wo.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,n,gP(r)),s=wF(r,n,t,o,a,c)),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function tF(e,n){const t=Eo(e,n),r=go(t),i=Fe(r);return{path:"."===i||".."===i?Io(Ao(t)):Ao(t),parts:r}}function rF(e,n,t,r,i){if(r.traceEnabled&&_P(r.host,Wo.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,n,gP(e)),!co(n)){if(!t){const e=po(n);uE(e,r.host)||(r.traceEnabled&&_P(r.host,Wo.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),t=!0)}const a=cF(e,n,t,r);if(a){const e=i?aF(a.path):void 0;return fP(e?bF(e,!1,r):void 0,a)}}if(!t){uE(n,r.host)||(r.traceEnabled&&_P(r.host,Wo.Directory_0_does_not_exist_skipping_all_lookups_in_it,n),t=!0)}if(!(32&r.features))return fF(e,n,t,r,i)}function iF(e){return rt(e,lP)}function aF(e){const n=Ao(e),t=n.lastIndexOf(lP);if(-1===t)return;const r=t+lP.length;let i=oF(n,r);return 64===n.charCodeAt(r)&&(i=oF(n,i)),n.slice(0,i)}function oF(e,n){const t=e.indexOf(za,n+1);return-1===t?n:t}function sF(e,n,t,r){return mP(cF(e,n,t,r))}function cF(e,n,t,r){const i=lF(e,n,t,r);if(i)return i;if(!(32&r.features)){const i=uF(n,e,"",t,r);if(i)return i}}function lF(e,n,t,r){if(-1===fo(n).indexOf("."))return;let i=qx(n);i===n&&(i=n.substring(0,n.lastIndexOf(".")));const a=n.substring(i.length);return r.traceEnabled&&_P(r.host,Wo.File_name_0_has_a_1_extension_stripping_it,n,a),uF(i,e,a,t,r)}function dF(e,n,t,r){if(1&e&&so(n,rp)||4&e&&so(n,tp)){return void 0!==_F(n,t,r)?{path:n,ext:aE(n),resolvedUsingTsExtension:void 0}:void 0}if(r.isConfigLookup&&8===e&&oo(n,".json")){return void 0!==_F(n,t,r)?{path:n,ext:".json",resolvedUsingTsExtension:void 0}:void 0}return lF(e,n,t,r)}function uF(e,n,t,r,i){if(!r){const n=po(e);n&&(r=!uE(n,i.host))}switch(t){case".mjs":case".mts":case".d.mts":return 1&n&&a(".mts",".mts"===t||".d.mts"===t)||4&n&&a(".d.mts",".mts"===t||".d.mts"===t)||2&n&&a(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return 1&n&&a(".cts",".cts"===t||".d.cts"===t)||4&n&&a(".d.cts",".cts"===t||".d.cts"===t)||2&n&&a(".cjs")||void 0;case".json":return 4&n&&a(".d.json.ts")||8&n&&a(".json")||void 0;case".tsx":case".jsx":return 1&n&&(a(".tsx",".tsx"===t)||a(".ts",".tsx"===t))||4&n&&a(".d.ts",".tsx"===t)||2&n&&(a(".jsx")||a(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return 1&n&&(a(".ts",".ts"===t||".d.ts"===t)||a(".tsx",".ts"===t||".d.ts"===t))||4&n&&a(".d.ts",".ts"===t||".d.ts"===t)||2&n&&(a(".js")||a(".jsx"))||i.isConfigLookup&&a(".json")||void 0;default:return 4&n&&!GD(e+t)&&a(`.d${t}.ts`)||void 0}function a(n,t){const a=_F(e+n,r,i);return void 0===a?void 0:{path:a,ext:n,resolvedUsingTsExtension:!i.candidateIsFromPackageJsonField&&t}}}function _F(e,n,t){var r,i;if(!(null==(r=t.compilerOptions.moduleSuffixes)?void 0:r.length))return pF(e,n,t);const a=null!=(i=iS(e))?i:"",o=a?Xx(e,a):e;return A(t.compilerOptions.moduleSuffixes,(e=>pF(o+e+a,n,t)))}function pF(e,n,t){if(!n){if(t.host.fileExists(e))return t.traceEnabled&&_P(t.host,Wo.File_0_exists_use_it_as_a_name_resolution_result,e),e;t.traceEnabled&&_P(t.host,Wo.File_0_does_not_exist,e)}t.failedLookupLocations.push(e)}function fF(e,n,t,r,i=!0){const a=i?bF(n,t,r):void 0;return fP(a,EF(e,n,t,r,a&&a.contents.packageJsonContent,a&&vF(a,r)))}function mF(e,n,t,r,i){if(!i&&void 0!==e.contents.resolvedEntrypoints)return e.contents.resolvedEntrypoints;let a;const o=5|(i?2:0),s=wP(n),c=gF(null==r?void 0:r.getPackageJsonInfoCache(),t,n);c.conditions=RP(n),c.requestContainingDirectory=e.packageDirectory;const l=EF(o,e.packageDirectory,!1,c,e.contents.packageJsonContent,vF(e,c));if(a=Te(a,null==l?void 0:l.path),8&s&&e.contents.packageJsonContent.exports){const t=pe([RP(n,!0),RP(n,!1)],ve);for(const n of t){const t={...c,failedLookupLocations:[],conditions:n},r=hF(e,e.contents.packageJsonContent.exports,t,o);if(r)for(const e of r)a=Ce(a,e.path)}}return e.contents.resolvedEntrypoints=a||!1}function hF(e,n,t,r){let i;if(gn(n))for(const o of n)a(o);else if("object"===typeof n&&null!==n&&SF(n))for(const o in n)a(n[o]);else a(n);return i;function a(n){var o,s;if("string"===typeof n&&pt(n,"./")&&-1===n.indexOf("*")){const a=go(n).slice(2);if(a.indexOf("..")>=0||a.indexOf(".")>=0||a.indexOf("node_modules")>=0)return!1;const c=So(Eo(e.packageDirectory,n),null==(s=(o=t.host).getCurrentDirectory)?void 0:s.call(o)),l=dF(r,c,!1,t);if(l)return i=Ce(i,l,((e,n)=>e.path===n.path)),!0}else if(Array.isArray(n))for(const e of n){if(a(e))return!0}else if("object"===typeof n&&null!==n)return A(Je(n),(e=>{if("default"===e||G(t.conditions,e)||IF(t.conditions,e))return a(n[e]),!0}))}}function gF(e,n,t){return{host:n,compilerOptions:t,traceEnabled:pP(t,n),failedLookupLocations:d,affectingLocations:d,packageJsonInfoCache:e,features:0,conditions:i,requestContainingDirectory:void 0,reportDiagnostic:xn,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function yF(e,n){const t=go(e);for(t.pop();t.length>0;){const e=bF(yo(t),!1,n);if(e)return e;t.pop()}}function vF(e,n){return void 0===e.contents.versionPaths&&(e.contents.versionPaths=AP(e.contents.packageJsonContent,n)||!1),e.contents.versionPaths||void 0}function bF(e,n,t){var r,i,a;const{host:o,traceEnabled:s}=t,c=Eo(e,"package.json");if(n)return void t.failedLookupLocations.push(c);const l=null==(r=t.packageJsonInfoCache)?void 0:r.getPackageJsonInfo(c);if(void 0!==l)return"boolean"!==typeof l?(s&&_P(o,Wo.File_0_exists_according_to_earlier_cached_lookups,c),t.affectingLocations.push(c),l.packageDirectory===e?l:{packageDirectory:e,contents:l.contents}):(l&&s&&_P(o,Wo.File_0_does_not_exist_according_to_earlier_cached_lookups,c),void t.failedLookupLocations.push(c));const d=uE(e,o);if(d&&o.fileExists(c)){const n=dE(c,o);s&&_P(o,Wo.Found_package_json_at_0,c);const r={packageDirectory:e,contents:{packageJsonContent:n,versionPaths:void 0,resolvedEntrypoints:void 0}};return null==(i=t.packageJsonInfoCache)||i.setPackageJsonInfo(c,r),t.affectingLocations.push(c),r}d&&s&&_P(o,Wo.File_0_does_not_exist,c),null==(a=t.packageJsonInfoCache)||a.setPackageJsonInfo(c,d),t.failedLookupLocations.push(c)}function EF(e,n,r,i,a,o){let s;a&&(s=i.isConfigLookup?function(e,n,t){return SP(e,"tsconfig",n,t)}(a,n,i):4&e&&function(e,n,t){return SP(e,"typings",n,t)||SP(e,"types",n,t)}(a,n,i)||7&e&&function(e,n,t){return SP(e,"main",n,t)}(a,n,i)||void 0);const c=(e,n,t,r)=>{const i=_F(n,t,r);if(i){const n=function(e,n,t){const r=iS(n);return void 0!==r&&TF(e,r)?{path:n,ext:r,resolvedUsingTsExtension:t}:void 0}(e,i);if(n)return mP(n);r.traceEnabled&&_P(r.host,Wo.File_0_has_an_unsupported_extension_so_skipping_it,i)}const o=4===e?5:e,s=r.features,c=r.candidateIsFromPackageJsonField;r.candidateIsFromPackageJsonField=!0,"module"!==(null==a?void 0:a.type)&&(r.features&=-33);const l=rF(o,n,t,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=c,l},l=s?!uE(po(s),i.host):void 0,d=r||!uE(n,i.host),u=Eo(n,i.isConfigLookup?"tsconfig":"index");if(o&&(!s||Po(n,s))){const r=Bo(n,s||u,!1);i.traceEnabled&&_P(i.host,Wo.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,t,r);const a=OF(e,r,n,o.paths,void 0,c,l||d,i);if(a)return hP(a.value)}const _=s&&hP(c(e,s,l,i));return _||(32&i.features?void 0:cF(e,u,d,i))}function TF(e,n){return 2&e&&(".js"===n||".jsx"===n||".mjs"===n||".cjs"===n)||1&e&&(".ts"===n||".tsx"===n||".mts"===n||".cts"===n)||4&e&&(".d.ts"===n||".d.mts"===n||".d.cts"===n)||8&e&&".json"===n||!1}function xF(e){let n=e.indexOf(za);return"@"===e[0]&&(n=e.indexOf(za,n+1)),-1===n?{packageName:e,rest:""}:{packageName:e.slice(0,n),rest:e.slice(n+1)}}function SF(e){return N(Je(e),(e=>pt(e,".")))}function AF(e,n,t,r,i,a){if(e.contents.packageJsonContent.exports){if("."===t){let o;if("string"===typeof e.contents.packageJsonContent.exports||Array.isArray(e.contents.packageJsonContent.exports)||"object"===typeof e.contents.packageJsonContent.exports&&!ce(Je(e.contents.packageJsonContent.exports),(e=>pt(e,".")))?o=e.contents.packageJsonContent.exports:ze(e.contents.packageJsonContent.exports,".")&&(o=e.contents.packageJsonContent.exports["."]),o){return kF(n,r,i,a,t,e,!1)(o,"",!1,".")}}else if(SF(e.contents.packageJsonContent.exports)){if("object"!==typeof e.contents.packageJsonContent.exports)return r.traceEnabled&&_P(r.host,Wo.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,e.packageDirectory),HF(void 0);const o=CF(n,r,i,a,t,e.contents.packageJsonContent.exports,e,!1);if(o)return o}return r.traceEnabled&&_P(r.host,Wo.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,e.packageDirectory),HF(void 0)}}function LF(e,n){const t=e.indexOf("*"),r=n.indexOf("*"),i=-1===t?e.length:t+1,a=-1===r?n.length:r+1;return i>a?-1:a>i||-1===t?1:-1===r||e.length>n.length?-1:n.length>e.length?1:0}function CF(e,n,t,r,i,a,o,s){const c=kF(e,n,t,r,i,o,s);if(!et(i,za)&&-1===i.indexOf("*")&&ze(a,i)){return c(a[i],"",!1,i)}const l=Ie(j(Je(a),(e=>-1!==e.indexOf("*")||et(e,"/"))),LF);for(const u of l){if(16&n.features&&d(u,i)){const e=a[u],n=u.indexOf("*");return c(e,i.substring(u.substring(0,n).length,i.length-(u.length-1-n)),!0,u)}if(et(u,"*")&&pt(i,u.substring(0,u.length-1))){return c(a[u],i.substring(u.length-1),!0,u)}if(pt(i,u)){return c(a[u],i.substring(u.length),!1,u)}}function d(e,n){if(et(e,"*"))return!1;const t=e.indexOf("*");return-1!==t&&(pt(n,e.substring(0,t))&&et(n,e.substring(t+1)))}}function kF(e,n,t,r,i,a,o){return function s(c,l,d,u){if("string"===typeof c){if(!d&&l.length>0&&!et(c,"/"))return n.traceEnabled&&_P(n.host,Wo.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,i),HF(void 0);if(!pt(c,"./")){if(o&&!pt(c,"../")&&!pt(c,"/")&&!eo(c)){const i=d?c.replace(/\*/g,l):c+l;KF(n,Wo.Using_0_subpath_1_with_target_2,"imports",u,i),KF(n,Wo.Resolving_module_0_from_1,i,a.packageDirectory+"/");const o=nF(n.features,i,a.packageDirectory+"/",n.compilerOptions,n.host,t,e,!1,r);return HF(o.resolvedModule?{path:o.resolvedModule.resolvedFileName,extension:o.resolvedModule.extension,packageId:o.resolvedModule.packageId,originalPath:o.resolvedModule.originalPath,resolvedUsingTsExtension:o.resolvedModule.resolvedUsingTsExtension}:void 0)}return n.traceEnabled&&_P(n.host,Wo.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,i),HF(void 0)}const s=(ro(c)?go(c).slice(1):go(c)).slice(1);if(s.indexOf("..")>=0||s.indexOf(".")>=0||s.indexOf("node_modules")>=0)return n.traceEnabled&&_P(n.host,Wo.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,i),HF(void 0);const m=Eo(a.packageDirectory,c),h=go(l);if(h.indexOf("..")>=0||h.indexOf(".")>=0||h.indexOf("node_modules")>=0)return n.traceEnabled&&_P(n.host,Wo.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,i),HF(void 0);n.traceEnabled&&_P(n.host,Wo.Using_0_subpath_1_with_target_2,o?"imports":"exports",u,d?c.replace(/\*/g,l):c+l);const g=_(d?m.replace(/\*/g,l):m+l),y=function(t,r,i,o){var s,c,l,d;if(!n.isConfigLookup&&(n.compilerOptions.declarationDir||n.compilerOptions.outDir)&&-1===t.indexOf("/node_modules/")&&(!n.compilerOptions.configFile||Po(a.packageDirectory,_(n.compilerOptions.configFile.fileName),!f()))){const p=Tv({useCaseSensitiveFileNames:f}),m=[];if(n.compilerOptions.rootDir||n.compilerOptions.composite&&n.compilerOptions.configFilePath){const e=_(gj(n.compilerOptions,(()=>[]),(null==(c=(s=n.host).getCurrentDirectory)?void 0:c.call(s))||"",p));m.push(e)}else if(n.requestContainingDirectory){const e=_(Eo(n.requestContainingDirectory,"index.ts")),t=_(gj(n.compilerOptions,(()=>[e,_(i)]),(null==(d=(l=n.host).getCurrentDirectory)?void 0:d.call(l))||"",p));m.push(t);let r=Io(t);for(;r&&r.length>1;){const e=go(r);e.pop();const n=yo(e);m.unshift(n),r=Io(n)}}m.length>1&&n.reportDiagnostic(wT(o?Wo.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:Wo.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===r?".":r,i));for(const r of m){const i=u(r);for(const o of i)if(Po(o,t,!f())){const i=Eo(r,t.slice(o.length+1)),s=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const t of s)if(oo(i,t)){const r=Rv(i);for(const o of r){if(!TF(e,o))continue;const r=Ro(i,o,t,!f());if(n.host.fileExists(r))return HF(fP(a,dF(e,r,!1,n)))}}}}}return;function u(e){var t,r;const i=n.compilerOptions.configFile?(null==(r=(t=n.host).getCurrentDirectory)?void 0:r.call(t))||"":e,a=[];return n.compilerOptions.declarationDir&&a.push(_(p(i,n.compilerOptions.declarationDir))),n.compilerOptions.outDir&&n.compilerOptions.outDir!==n.compilerOptions.declarationDir&&a.push(_(p(i,n.compilerOptions.outDir))),a}}(g,l,Eo(a.packageDirectory,"package.json"),o);return y||HF(fP(a,dF(e,g,!1,n)))}if("object"===typeof c&&null!==c){if(!Array.isArray(c)){KF(n,Wo.Entering_conditional_exports);for(const e of Je(c))if("default"===e||n.conditions.indexOf(e)>=0||IF(n.conditions,e)){KF(n,Wo.Matched_0_condition_1,o?"imports":"exports",e);const t=c[e],r=s(t,l,d,u);if(r)return KF(n,Wo.Resolved_under_condition_0,e),KF(n,Wo.Exiting_conditional_exports),r;KF(n,Wo.Failed_to_resolve_under_condition_0,e)}else KF(n,Wo.Saw_non_matching_condition_0,e);return void KF(n,Wo.Exiting_conditional_exports)}if(!S(c))return n.traceEnabled&&_P(n.host,Wo.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,i),HF(void 0);for(const e of c){const n=s(e,l,d,u);if(n)return n}}else if(null===c)return n.traceEnabled&&_P(n.host,Wo.package_json_scope_0_explicitly_maps_specifier_1_to_null,a.packageDirectory,i),HF(void 0);n.traceEnabled&&_P(n.host,Wo.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,i);return HF(void 0);function _(e){var t,r;return void 0===e?e:So(e,null==(r=(t=n.host).getCurrentDirectory)?void 0:r.call(t))}function p(e,n){return Io(Eo(e,n))}function f(){return!n.host.useCaseSensitiveFileNames||("boolean"===typeof n.host.useCaseSensitiveFileNames?n.host.useCaseSensitiveFileNames:n.host.useCaseSensitiveFileNames())}}}function IF(e,n){if(-1===e.indexOf("types"))return!1;if(!pt(n,"types@"))return!1;const r=Vt.tryParse(n.substring(6));return!!r&&r.test(t)}function wF(e,n,t,r,i,a){return RF(e,n,t,r,!1,i,a)}function RF(e,n,t,r,i,a,o){const s=0===r.features?void 0:32&r.features?99:1,c=5&e,l=-6&e;if(c){const e=d(c);if(e)return e}if(l&&!i)return d(l);function d(e){return Ho(vo(t),(t=>{if("node_modules"!==fo(t)){const c=BF(a,n,s,t,o,r);return c||HF(NF(e,n,t,r,i,a,o))}}))}}function NF(e,n,t,r,i,a,o){const s=Eo(t,"node_modules"),c=uE(s,r.host);if(!c&&r.traceEnabled&&_P(r.host,Wo.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!i){const t=DF(e,n,s,c,r,a,o);if(t)return t}if(4&e){const e=Eo(s,"@types");let t=c;return c&&!uE(e,r.host)&&(r.traceEnabled&&_P(r.host,Wo.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),t=!1),DF(4,function(e,n){const t=PF(e);n.traceEnabled&&t!==e&&_P(n.host,Wo.Scoped_package_detected_looking_in_0,t);return t}(n,r),e,t,r,a,o)}}function DF(e,n,r,a,o,s,c){var l,d,u;const _=Ao(Eo(r,n)),{packageName:p,rest:f}=xF(n),m=Eo(r,p);let h,g=bF(_,!a,o);if(""!==f&&g&&(!(8&o.features)||!ze(null!=(d=null==(l=h=bF(m,!a,o))?void 0:l.contents.packageJsonContent)?d:i,"exports"))){const n=cF(e,_,!a,o);if(n)return mP(n);const t=EF(e,_,!a,o,g.contents.packageJsonContent,vF(g,o));return fP(g,t)}const y=(e,n,t,r)=>{let i=cF(e,n,t,r)||EF(e,n,t,r,g&&g.contents.packageJsonContent,g&&vF(g,r));return!i&&g&&(void 0===g.contents.packageJsonContent.exports||null===g.contents.packageJsonContent.exports)&&32&r.features&&(i=cF(e,Eo(n,"index.js"),t,r)),fP(g,i)};if(""!==f&&(g=null!=h?h:bF(m,!a,o)),g&&g.contents.packageJsonContent.exports&&8&o.features)return null==(u=AF(g,e,Eo(".",f),o,s,c))?void 0:u.value;const v=""!==f&&g?vF(g,o):void 0;if(v){o.traceEnabled&&_P(o.host,Wo.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,v.version,t,f);const n=a&&uE(m,o.host),r=OF(e,f,m,v.paths,void 0,y,!n,o);if(r)return r.value}return y(e,_,!a,o)}function OF(e,n,t,r,i,a,o,s){i||(i=Qx(r));const c=oS(i,n);if(c){const i=vn(c)?void 0:ut(c,n),l=vn(c)?c:dt(c);s.traceEnabled&&_P(s.host,Wo.Module_name_0_matched_pattern_1,n,l);return{value:A(r[l],(n=>{const r=i?n.replace("*",i):n,c=Ao(Eo(t,r));s.traceEnabled&&_P(s.host,Wo.Trying_substitution_0_candidate_module_location_Colon_1,n,r);const l=iS(n);if(void 0!==l){const e=_F(c,o,s);if(void 0!==e)return mP({path:e,ext:l,resolvedUsingTsExtension:void 0})}return a(e,c,o||!uE(po(c),s.host),s)}))}}}function MF(e){return`@types/${PF(e)}`}function PF(e){if(pt(e,"@")){const n=e.replace(za,dP);if(n!==e)return n.slice(1)}return e}function FF(e){const n=ft(e,"@types/");return n!==e?GF(n):e}function GF(e){return rt(e,dP)?"@"+e.replace(dP,za):e}function BF(e,n,t,r,i,a){const o=e&&e.getFromNonRelativeNameCache(n,t,r,i);if(o)return a.traceEnabled&&_P(a.host,Wo.Resolution_for_module_0_was_found_in_cache_from_location_1,n,r),a.resultFromCache=o,{value:o.resolvedModule&&{path:o.resolvedModule.resolvedFileName,originalPath:o.resolvedModule.originalPath||!0,extension:o.resolvedModule.extension,packageId:o.resolvedModule.packageId,resolvedUsingTsExtension:o.resolvedModule.resolvedUsingTsExtension}}}function UF(e,n,t,r,i,a){const o=pP(t,r),s=[],c=[],l=po(n),d=[],u={compilerOptions:t,host:r,traceEnabled:o,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:i,features:0,conditions:[],requestContainingDirectory:l,reportDiagnostic:e=>{d.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1},_=p(5)||p(2|(t.resolveJsonModule?8:0));return vP(e,_&&_.value,(null==_?void 0:_.value)&&iF(_.value.path),s,c,d,u);function p(n){const t=XP(n,e,l,sF,u);if(t)return{value:t};if(rc(e)){const t=Ao(Eo(l,e));return HF(sF(n,t,!1,u))}{const t=Ho(l,(t=>{const r=BF(i,e,void 0,t,a,u);if(r)return r;const o=Ao(Eo(t,e));return HF(sF(n,o,!1,u))}));if(t)return t;if(5&n)return function(e,n,t){return RF(4,e,n,t,!0,void 0,void 0)}(e,l,u)}}}function VF(e,n){return!!e.allowImportingTsExtensions||n&&GD(n)}function jF(e,n,t,r,i,a){const o=pP(t,r);o&&_P(r,Wo.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,n,e,i);const s=[],c=[],l=[],d={compilerOptions:t,host:r,traceEnabled:o,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:a,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>{l.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1};return bP(NF(4,e,i,d,!1,void 0,void 0),!0,s,c,l,d.resultFromCache)}function HF(e){return void 0!==e?{value:e}:void 0}function KF(e,n,...t){e.traceEnabled&&_P(e.host,n,...t)}var WF,zF,qF=E({"src/compiler/moduleNameResolver.ts"(){lq(),sP=Eo("node_modules","@types"),cP=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(cP||{}),lP="/node_modules/",dP="__"}});function JF(e,n){return e.body&&!e.body.parent&&(CS(e.body,e),IS(e.body,!1)),e.body?XF(e.body,n):1}function XF(e,n=new Map){const t=ZG(e);if(n.has(t))return n.get(t)||0;n.set(t,void 0);const r=function(e,n){switch(e.kind){case 261:case 262:return 0;case 263:if(cm(e))return 2;break;case 269:case 268:if(!fb(e,1))return 0;break;case 275:const t=e;if(!t.moduleSpecifier&&t.exportClause&&276===t.exportClause.kind){let e=0;for(const r of t.exportClause.elements){const t=YF(r,n);if(t>e&&(e=t),1===e)return e}return e}break;case 265:{let t=0;return CD(e,(e=>{const r=XF(e,n);switch(r){case 0:return;case 2:return void(t=2);case 1:return t=1,!0;default:Nt.assertNever(r)}})),t}case 264:return JF(e,n);case 79:if(2048&e.flags)return 0}return 1}(e,n);return n.set(t,r),r}function YF(e,n){const t=e.propertyName||e.name;let r=e.parent;for(;r;){if(pI(r)||UI(r)||Iw(r)){const e=r.statements;let i;for(const a of e)if(Wc(a,t)){a.parent||(CS(a,r),IS(a,!1));const e=XF(a,n);if((void 0===i||e>i)&&(i=e),1===i)return i}if(void 0!==i)return i}r=r.parent}return 1}function $F(e){return Nt.attachFlowNodeDebugInfo(e),e}function QF(e,n){kr("beforeBind"),mr.logStartBindFile(""+e.fileName),zF(e,n),mr.logStopBindFile(),kr("afterBind"),Ir("Bind","beforeBind","afterBind")}function ZF(){var e,n,t,r,i,a,o,s,c,l,d,u,_,p,f,m,h,g,y,v,b,E,T,x,L=!1,C=0,k={flags:1},I={flags:1},w=function(){return SN((function(e,n){if(n){n.stackIndex++,CS(e,r);const t=E;je(e);const i=r;r=e,n.skip=!1,n.inStrictModeStack[n.stackIndex]=t,n.parentStack[n.stackIndex]=i}else n={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const t=e.operatorToken.kind;if(Gb(t)||Pb(t)){if(oe(e)){const n=X();ye(e,n,n),d=ie(n)}else ye(e,f,m);n.skip=!0}return n}),(function(n,t,r){if(!t.skip){const t=e(n);return 27===r.operatorToken.kind&&me(n),t}}),(function(e,n,t){n.skip||Ge(e)}),(function(n,t,r){if(!t.skip){const t=e(n);return 27===r.operatorToken.kind&&me(n),t}}),(function(e,n){if(!n.skip){const n=e.operatorToken.kind;if(Ub(n)&&!zg(e)&&(ge(e.left),63===n&&209===e.left.kind)){J(e.left.expression)&&(d=te(256,d,e))}}const t=n.inStrictModeStack[n.stackIndex],i=n.parentStack[n.stackIndex];void 0!==t&&(E=t);void 0!==i&&(r=i);n.skip=!1,n.stackIndex--}),void 0);function e(e){if(e&&Yk(e)&&!Wb(e))return e;Ge(e)}}();return function(g,S){var A,w;e=g,t=HT(n=S),E=function(e,n){return!(!lx(n,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}(e,S),x=new Set,C=0,T=F_.getSymbolConstructor(),Nt.attachFlowNodeDebugInfo(k),Nt.attachFlowNodeDebugInfo(I),e.locals||(null==(A=Vr)||A.push(Vr.Phase.Bind,"bindSourceFile",{path:e.path},!0),Ge(e),null==(w=Vr)||w.pop(),e.symbolCount=C,e.classifiableNames=x,function(){if(!c)return;const n=i,t=s,a=o,l=r,u=d;for(const s of c){const n=s.parent.parent;i=Mc(n.parent,(e=>!!(1&tG(e))))||e,o=Bf(n)||e,d=$F({flags:2}),r=s,Ge(s.typeExpression);const t=Xc(s);if((sR(s)||!s.fullName)&&t&&Yb(t.parent)){const n=en(t.parent);if(n){Qe(e.symbol,t.parent,n,!!Mc(t,(e=>Mk(e)&&"prototype"===e.name.escapedText)),!1);const r=i;switch(dg(t.parent)){case 1:case 2:i=om(e)?e:void 0;break;case 4:i=t.parent.expression;break;case 3:i=t.parent.expression.name;break;case 5:i=nG(e,t.parent.expression)?e:Mk(t.parent.expression)?t.parent.expression.name:t.parent.expression;break;case 0:return Nt.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}i&&B(s,524288,788968),i=r}}else sR(s)||!s.fullName||79===s.fullName.kind?(r=s.parent,Re(s,524288,788968)):Ge(s.fullName)}i=n,s=t,o=a,r=l,d=u}());e=void 0,n=void 0,t=void 0,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0,c=void 0,l=!1,d=void 0,u=void 0,_=void 0,p=void 0,f=void 0,m=void 0,h=void 0,y=void 0,v=!1,L=!1,b=0};function R(n,t,r,i,a){return Xf(Dp(n)||e,n,t,r,i,a)}function D(e,n){return C++,new T(e,n)}function O(e,n,t){e.flags|=t,n.symbol=e,e.declarations=Ce(e.declarations,n),1955&t&&!e.exports&&(e.exports=dp()),6240&t&&!e.members&&(e.members=dp()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&t&&fg(e,n)}function M(e){if(274===e.kind)return e.isExportEquals?"export=":"default";const n=Xc(e);if(n){if(yf(e)){const t=Py(n);return Sf(e)?"__global":`"${t}"`}if(164===n.kind){const e=n.expression;if(wy(e))return Gc(e.text);if(Ry(e))return ms(e.operator)+e.operand.text;Nt.fail("Only computed properties with literal names have declaration names")}if(wC(n)){const t=Xm(e);if(!t)return;return By(t.symbol,n.escapedText)}return My(n)?Fy(n):void 0}switch(e.kind){case 173:return"__constructor";case 181:case 176:case 326:return"__call";case 182:case 177:return"__new";case 178:return"__index";case 275:return"__export";case 308:return"export=";case 223:if(2===eg(e))return"export=";Nt.fail("Unknown binary declaration kind");break;case 320:return Sg(e)?"__new":"__call";case 166:Nt.assert(320===e.parent.kind,"Impossible parameter parent kind",(()=>`parent is: ${Nt.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`));return"arg"+e.parent.parameters.indexOf(e)}}function P(e){return qc(e)?Vf(e.name):Bc(Nt.checkDefined(M(e)))}function F(n,t,r,i,a,o,s){Nt.assert(s||!Ny(r));const c=fb(r,1024)||tw(r)&&"default"===r.name.escapedText,l=s?"__computed":c&&t?"default":M(r);let d;if(void 0===l)d=D(0,"__missing");else if(d=n.get(l),2885600&i&&x.add(l),d){if(o&&!d.isReplaceableByMethod)return d;if(d.flags&a)if(d.isReplaceableByMethod)n.set(l,d=D(0,l));else if(!(3&i&&67108864&d.flags)){qc(r)&&CS(r.name,r);let n=2&d.flags?Wo.Cannot_redeclare_block_scoped_variable_0:Wo.Duplicate_identifier_0,t=!0;(384&d.flags||384&i)&&(n=Wo.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,t=!1);let a=!1;S(d.declarations)&&(c||d.declarations&&d.declarations.length&&274===r.kind&&!r.isExportEquals)&&(n=Wo.A_module_cannot_have_multiple_default_exports,t=!1,a=!0);const o=[];FI(r)&&Vp(r.type)&&fb(r,1)&&2887656&d.flags&&o.push(R(r,Wo.Did_you_mean_0,`export type { ${Bc(r.name.escapedText)} }`));const s=Xc(r)||r;A(d.declarations,((r,i)=>{const c=Xc(r)||r,l=R(c,n,t?P(r):void 0);e.bindDiagnostics.push(a?cS(l,R(s,0===i?Wo.Another_export_default_is_here:Wo.and_here)):l),a&&o.push(R(c,Wo.The_first_export_default_is_here))}));const u=R(s,n,t?P(r):void 0);e.bindDiagnostics.push(cS(u,...o)),d=D(0,l)}}else n.set(l,d=D(0,l)),o&&(d.isReplaceableByMethod=!0);return O(d,r,i),d.parent?Nt.assert(d.parent===t,"Existing symbol parent should match new one"):d.parent=t,d}function B(e,n,t){const r=!!(1&wc(e))||function(e){e.parent&&BI(e)&&(e=e.parent);if(!Ag(e))return!1;if(!sR(e)&&e.fullName)return!0;const n=Xc(e);return!!n&&(!(!Yb(n.parent)||!en(n.parent))||!!(Pu(n.parent)&&1&wc(n.parent)))}(e);if(2097152&n)return 278===e.kind||268===e.kind&&r?F(i.symbol.exports,i.symbol,e,n,t):(Nt.assertNode(i,Du),F(i.locals,void 0,e,n,t));if(Ag(e)&&Nt.assert(Ih(e)),!yf(e)&&(r||64&i.flags)){if(!Du(i)||!i.locals||fb(e,1024)&&!M(e))return F(i.symbol.exports,i.symbol,e,n,t);const r=111551&n?1048576:0,a=F(i.locals,void 0,e,r,t);return a.exportSymbol=F(i.symbol.exports,i.symbol,e,n,t),e.localSymbol=a,a}return Nt.assertNode(i,Du),F(i.locals,void 0,e,n,t)}function U(e){V(e,(e=>259===e.kind?Ge(e):void 0)),V(e,(e=>259!==e.kind?Ge(e):void 0))}function V(e,n=Ge){void 0!==e&&A(e,n)}function j(e){CD(e,Ge,V)}function H(e){const t=L;if(L=!1,function(e){if(!(1&d.flags))return!1;if(d===k){const t=Gu(e)&&239!==e.kind||260===e.kind||264===e.kind&&function(e){const t=JF(e);return 1===t||2===t&&sx(n)}(e);if(t&&(d=I,!n.allowUnreachableCode)){const t=$T(n)&&!(16777216&e.flags)&&(!fI(e)||!!(3&Nc(e.declarationList))||e.declarationList.declarations.some((e=>!!e.initializer)));!function(e,n){if(Bu(e)&&eG(e)&&pI(e.parent)){const{statements:t}=e.parent,r=sS(t,e);le(r,eG,((e,t)=>n(r[e],r[t-1])))}else n(e,e)}(e,((e,n)=>Fe(t,e,n,Wo.Unreachable_code_detected)))}}return!0}(e))return j(e),Be(e),void(L=t);switch(e.kind>=240&&e.kind<=256&&!n.allowUnreachableCode&&(e.flowNode=d),e.kind){case 244:!function(e){const n=pe(e,Y()),t=X(),r=X();Z(n,d),d=n,ue(e.expression,t,r),d=ie(t),_e(e.statement,r,n),Z(n,d),d=ie(r)}(e);break;case 243:!function(e){const n=Y(),t=pe(e,X()),r=X();Z(n,d),d=n,_e(e.statement,r,t),Z(t,d),d=ie(t),ue(e.expression,n,r),d=ie(r)}(e);break;case 245:!function(e){const n=pe(e,Y()),t=X(),r=X();Ge(e.initializer),Z(n,d),d=n,ue(e.condition,t,r),d=ie(t),_e(e.statement,r,n),Ge(e.incrementor),Z(n,d),d=ie(r)}(e);break;case 246:case 247:!function(e){const n=pe(e,Y()),t=X();Ge(e.expression),Z(n,d),d=n,247===e.kind&&Ge(e.awaitModifier);Z(t,d),Ge(e.initializer),258!==e.initializer.kind&&ge(e.initializer);_e(e.statement,t,n),Z(n,d),d=ie(t)}(e);break;case 242:!function(e){const n=X(),t=X(),r=X();ue(e.expression,n,t),d=ie(n),Ge(e.thenStatement),Z(r,d),d=ie(t),Ge(e.elseStatement),Z(r,d),d=ie(r)}(e);break;case 250:case 254:!function(e){Ge(e.expression),250===e.kind&&(v=!0,p&&Z(p,d));d=k}(e);break;case 249:case 248:!function(e){if(Ge(e.label),e.label){const n=function(e){for(let n=y;n;n=n.next)if(n.name===e)return n;return}(e.label.escapedText);n&&(n.referenced=!0,fe(e,n.breakTarget,n.continueTarget))}else fe(e,u,_)}(e);break;case 255:!function(e){const n=p,t=h,r=X(),i=X();let a=X();e.finallyBlock&&(p=i);Z(a,d),h=a,Ge(e.tryBlock),Z(r,d),e.catchClause&&(d=ie(a),a=X(),Z(a,d),h=a,Ge(e.catchClause),Z(r,d));if(p=n,h=t,e.finallyBlock){const n=X();n.antecedents=de(de(r.antecedents,a.antecedents),i.antecedents),d=n,Ge(e.finallyBlock),1&d.flags?d=k:(p&&i.antecedents&&Z(p,$(n,i.antecedents,d)),h&&a.antecedents&&Z(h,$(n,a.antecedents,d)),d=r.antecedents?$(n,r.antecedents,d):k)}else d=ie(r)}(e);break;case 252:!function(e){const n=X();Ge(e.expression);const t=u,r=g;u=n,g=d,Ge(e.caseBlock),Z(n,d);const i=A(e.caseBlock.clauses,(e=>293===e.kind));e.possiblyExhaustive=!i&&!n.antecedents,i||Z(n,ne(g,e,0,0));u=t,g=r,d=ie(n)}(e);break;case 266:!function(e){const t=e.clauses,r=K(e.parent.expression);let i=k;for(let a=0;a<t.length;a++){const o=a;for(;!t[a].statements.length&&a+1<t.length;)Ge(t[a]),a++;const s=X();Z(s,r?ne(g,e.parent,o,a+1):g),Z(s,i),d=ie(s);const c=t[a];Ge(c),i=d,1&d.flags||a===t.length-1||!n.noFallthroughCasesInSwitch||(c.fallthroughFlowNode=d)}}(e);break;case 292:!function(e){const n=d;d=g,Ge(e.expression),d=n,V(e.statements)}(e);break;case 241:!function(e){Ge(e.expression),me(e.expression)}(e);break;case 253:!function(e){const t=X();y={next:y,name:e.label.escapedText,breakTarget:t,continueTarget:void 0,referenced:!1},Ge(e.label),Ge(e.statement),y.referenced||n.allowUnusedLabels||function(e,n,t){Fe(e,n,n,t)}(QT(n),e.label,Wo.Unused_label);y=y.next,Z(t,d),d=ie(t)}(e);break;case 221:!function(e){if(53===e.operator){const n=f;f=m,m=n,j(e),m=f,f=n}else j(e),45!==e.operator&&46!==e.operator||ge(e.operand)}(e);break;case 222:!function(e){j(e),(45===e.operator||46===e.operator)&&ge(e.operand)}(e);break;case 223:if(Wb(e))return L=t,void function(e){L?(L=!1,Ge(e.operatorToken),Ge(e.right),L=!0,Ge(e.left)):(L=!0,Ge(e.left),L=!1,Ge(e.operatorToken),Ge(e.right));ge(e.left)}(e);w(e);break;case 217:!function(e){j(e),208===e.expression.kind&&ge(e.expression)}(e);break;case 224:!function(e){const n=X(),t=X(),r=X();ue(e.condition,n,t),d=ie(n),Ge(e.questionToken),Ge(e.whenTrue),Z(r,d),d=ie(t),Ge(e.colonToken),Ge(e.whenFalse),Z(r,d),d=ie(r)}(e);break;case 257:!function(e){j(e),(e.initializer||xu(e.parent.parent))&&ve(e)}(e);break;case 208:case 209:!function(e){jl(e)?Se(e):j(e)}(e);break;case 210:!function(e){if(jl(e))Se(e);else{const n=ey(e.expression);215===n.kind||216===n.kind?(V(e.typeArguments),V(e.arguments),Ge(e.expression)):(j(e),106===e.expression.kind&&(d=re(d,e)))}if(208===e.expression.kind){const n=e.expression;IC(n.name)&&J(n.expression)&&qy(n.name)&&(d=te(256,d,e))}}(e);break;case 232:!function(e){jl(e)?Se(e):j(e)}(e);break;case 349:case 341:case 343:!function(e){Ge(e.tagName),343!==e.kind&&e.fullName&&(CS(e.fullName,e),IS(e.fullName,!1));"string"!==typeof e.comment&&V(e.comment)}(e);break;case 308:U(e.statements),Ge(e.endOfFileToken);break;case 238:case 265:U(e.statements);break;case 205:!function(e){Ge(e.dotDotDotToken),Ge(e.propertyName),be(e.initializer),Ge(e.name)}(e);break;case 166:!function(e){V(e.modifiers),Ge(e.dotDotDotToken),Ge(e.questionToken),Ge(e.type),be(e.initializer),Ge(e.name)}(e);break;case 207:case 206:case 299:case 227:L=t;default:j(e)}Be(e),L=t}function K(e){switch(e.kind){case 79:case 80:case 108:case 208:case 209:return z(e);case 210:return function(e){if(e.arguments)for(const n of e.arguments)if(z(n))return!0;if(208===e.expression.kind&&z(e.expression.expression))return!0;return!1}(e);case 214:case 232:case 218:return K(e.expression);case 223:return function(e){switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return z(e.left);case 34:case 35:case 36:case 37:return J(e.left)||J(e.right)||q(e.right,e.left)||q(e.left,e.right);case 102:return J(e.left);case 101:case 27:return K(e.right)}return!1}(e);case 221:return 53===e.operator&&K(e.operand)}return!1}function W(e){return Xb(e)||(Mk(e)||oI(e)||Vk(e))&&W(e.expression)||Yk(e)&&27===e.operatorToken.kind&&W(e.right)||Pk(e)&&(wy(e.argumentExpression)||qb(e.argumentExpression))&&W(e.expression)||Hb(e)&&W(e.left)}function z(e){return W(e)||jl(e)&&z(e.expression)}function q(e,n){return Wk(e)&&J(e.expression)&&o_(n)}function J(e){switch(e.kind){case 214:return J(e.expression);case 223:switch(e.operatorToken.kind){case 63:return J(e.left);case 27:return J(e.right)}}return z(e)}function X(){return $F({flags:4,antecedents:void 0})}function Y(){return $F({flags:8,antecedents:void 0})}function $(e,n,t){return $F({flags:1024,target:e,antecedents:n,antecedent:t})}function Q(e){e.flags|=2048&e.flags?4096:2048}function Z(e,n){1&n.flags||G(e.antecedents,n)||((e.antecedents||(e.antecedents=[])).push(n),Q(n))}function ee(e,n,t){return 1&n.flags?n:t?!(110===t.kind&&64&e||95===t.kind&&32&e)||Kl(t)||zl(t.parent)?K(t)?(Q(n),$F({flags:e,antecedent:n,node:t})):n:k:32&e?n:k}function ne(e,n,t,r){return Q(e),$F({flags:128,antecedent:e,switchStatement:n,clauseStart:t,clauseEnd:r})}function te(e,n,t){Q(n);const r=$F({flags:e,antecedent:n,node:t});return h&&Z(h,r),r}function re(e,n){return Q(e),$F({flags:512,antecedent:e,node:n})}function ie(e){const n=e.antecedents;return n?1===n.length?n[0]:e:k}function ae(e){for(;;)if(214===e.kind)e=e.expression;else{if(221!==e.kind||53!==e.operator)return Bb(e);e=e.operand}}function oe(e){for(;Vk(e.parent)||Jk(e.parent)&&53===e.parent.operator;)e=e.parent;return!function(e){const n=e.parent;switch(n.kind){case 242:case 244:case 243:return n.expression===e;case 245:case 224:return n.condition===e}return!1}(e)&&!ae(e.parent)&&!(jl(e.parent)&&e.parent.expression===e)}function se(e,n,t,r){const i=f,a=m;f=t,m=r,e(n),f=i,m=a}function ue(e,n,t){se(Ge,e,n,t),e&&(function(e){return Fb(ey(e))}(e)||ae(e)||jl(e)&&Wl(e))||(Z(n,ee(32,d,e)),Z(t,ee(64,d,e)))}function _e(e,n,t){const r=u,i=_;u=n,_=t,Ge(e),u=r,_=i}function pe(e,n){let t=y;for(;t&&253===e.parent.kind;)t.continueTarget=n,t=t.next,e=e.parent;return n}function fe(e,n,t){const r=249===e.kind?n:t;r&&(Z(r,d),d=k)}function me(e){if(210===e.kind){const n=e;106!==n.expression.kind&&Xb(n.expression)&&(d=re(d,n))}}function he(e){223===e.kind&&63===e.operatorToken.kind?ge(e.left):ge(e)}function ge(e){if(W(e))d=te(16,d,e);else if(206===e.kind)for(const n of e.elements)227===n.kind?ge(n.expression):he(n);else if(207===e.kind)for(const n of e.properties)299===n.kind?he(n.initializer):300===n.kind?ge(n.name):301===n.kind&&ge(n.expression)}function ye(e,n,t){const r=X();55===e.operatorToken.kind||76===e.operatorToken.kind?ue(e.left,r,t):ue(e.left,n,r),d=ie(r),Ge(e.operatorToken),Pb(e.operatorToken.kind)?(se(Ge,e.right,n,t),ge(e.left),Z(n,ee(32,d,e)),Z(t,ee(64,d,e))):ue(e.right,n,t)}function ve(e){const n=tI(e)?void 0:e.name;if(Jd(n))for(const t of n.elements)ve(t);else d=te(16,d,e)}function be(e){if(!e)return;const n=d;if(Ge(e),n===k||n===d)return;const t=X();Z(t,n),Z(t,d),d=ie(t)}function Ee(e){switch(e.kind){case 208:Ge(e.questionDotToken),Ge(e.name);break;case 209:Ge(e.questionDotToken),Ge(e.argumentExpression);break;case 210:Ge(e.questionDotToken),V(e.typeArguments),V(e.arguments)}}function xe(e,n,t){const r=Hl(e)?X():void 0;!function(e,n,t){se(Ge,e,n,t),jl(e)&&!Wl(e)||(Z(n,ee(32,d,e)),Z(t,ee(64,d,e)))}(e.expression,r||n,t),r&&(d=ie(r)),se(Ee,e,n,t),Wl(e)&&(Z(n,ee(32,d,e)),Z(t,ee(64,d,e)))}function Se(e){if(oe(e)){const n=X();xe(e,n,n),d=ie(n)}else xe(e,f,m)}function Ae(e){s&&(s.nextContainer=e),s=e}function Le(n,t,r){switch(i.kind){case 264:return B(n,t,r);case 308:return function(n,t,r){return OD(e)?B(n,t,r):F(e.locals,void 0,n,t,r)}(n,t,r);case 228:case 260:return function(e,n,t){return mb(e)?F(i.symbol.exports,i.symbol,e,n,t):F(i.symbol.members,i.symbol,e,n,t)}(n,t,r);case 263:return F(i.symbol.exports,i.symbol,n,t,r);case 184:case 325:case 207:case 261:case 289:return F(i.symbol.members,i.symbol,n,t,r);case 181:case 182:case 176:case 177:case 326:case 178:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 320:case 172:case 262:case 197:return i.locals&&Nt.assertNode(i,Du),F(i.locals,void 0,n,t,r)}}function ke(e){16777216&e.flags&&!function(e){const n=Iw(e)?e:En(e.body,UI);return!!n&&n.statements.some((e=>ew(e)||ZI(e)))}(e)?e.flags|=64:e.flags&=-65}function Ie(e){const n=JF(e),t=0!==n;return Le(e,t?512:1024,t?110735:0),n}function we(e,n,t){const r=D(n,t);return 106508&n&&(r.parent=i.symbol),O(r,e,n),r}function Re(e,n,t){switch(o.kind){case 264:B(e,n,t);break;case 308:if(om(i)){B(e,n,t);break}default:Nt.assertNode(o,Du),o.locals||(o.locals=dp(),Ae(o)),F(o.locals,void 0,e,n,t)}}function Ne(n){if(!e.parseDiagnostics.length&&!(16777216&n.flags)&&!(8388608&n.flags)&&!oy(n)){const t=Vc(n);if(void 0===t)return;E&&t>=117&&t<=125?e.bindDiagnostics.push(R(n,function(n){if(Xm(n))return Wo.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(e.externalModuleIndicator)return Wo.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return Wo.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(n),Vf(n))):133===t?OD(e)&&eh(n)?e.bindDiagnostics.push(R(n,Wo.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Vf(n))):32768&n.flags&&e.bindDiagnostics.push(R(n,Wo.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Vf(n))):125===t&&8192&n.flags&&e.bindDiagnostics.push(R(n,Wo.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Vf(n)))}}function De(n,t){if(t&&79===t.kind){const i=t;if(IC(r=i)&&("eval"===r.escapedText||"arguments"===r.escapedText)){const r=am(e,t);e.bindDiagnostics.push(kT(e,r.start,r.length,function(n){if(Xm(n))return Wo.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode;if(e.externalModuleIndicator)return Wo.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return Wo.Invalid_use_of_0_in_strict_mode}(n),Uc(i)))}}var r}function Oe(e){E&&De(e,e.name)}function Me(n){if(t<2&&308!==o.kind&&264!==o.kind&&!wd(o)){const t=am(e,n);e.bindDiagnostics.push(kT(e,t.start,t.length,function(n){return Xm(n)?Wo.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?Wo.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:Wo.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(n)))}}function Pe(n,t,r,i,a){const o=rm(e,n.pos);e.bindDiagnostics.push(kT(e,o.start,o.length,t,r,i,a))}function Fe(n,t,r,i){!function(n,t,r){const i=kT(e,t.pos,t.end-t.pos,r);n?e.bindDiagnostics.push(i):e.bindSuggestionDiagnostics=Te(e.bindSuggestionDiagnostics,{...i,category:2})}(n,{pos:nf(t,e),end:r.end},i)}function Ge(n){if(!n)return;CS(n,r),Vr&&(n.tracingPath=e.path);const t=E;if(je(n),n.kind>162){const e=r;r=n;const t=tG(n);0===t?H(n):function(e,n){const t=i,r=a,s=o;if(1&n?(216!==e.kind&&(a=i),i=o=e,32&n&&(i.locals=dp(),Ae(i))):2&n&&(o=e,32&n&&(o.locals=void 0)),4&n){const t=d,r=u,i=_,a=p,o=h,s=y,c=v,l=16&n&&!fb(e,512)&&!e.asteriskToken&&!!rh(e)||172===e.kind;l||(d=$F({flags:2}),144&n&&(d.node=e)),p=l||173===e.kind||Ih(e)&&(259===e.kind||215===e.kind)?X():void 0,h=void 0,u=void 0,_=void 0,y=void 0,v=!1,H(e),e.flags&=-2817,!(1&d.flags)&&8&n&&jp(e.body)&&(e.flags|=256,v&&(e.flags|=512),e.endFlowNode=d),308===e.kind&&(e.flags|=b,e.endFlowNode=d),p&&(Z(p,d),d=ie(p),(173===e.kind||172===e.kind||Ih(e)&&(259===e.kind||215===e.kind))&&(e.returnFlowNode=d)),l||(d=t),u=r,_=i,p=a,h=o,y=s,v=c}else 64&n?(l=!1,H(e),Nt.assertNotNode(e,IC),e.flags=l?128|e.flags:-129&e.flags):H(e);i=t,a=r,o=s}(n,t),r=e}else{const e=r;1===n.kind&&(r=n),Be(n),r=e}E=t}function Be(e){if(Zu(e))if(Ih(e))for(const n of e.jsDoc)Ge(n);else for(const n of e.jsDoc)CS(n,e),IS(n,!1)}function Ue(e){if(!E)for(const n of e){if(!hm(n))return;if(Ve(n))return void(E=!0)}}function Ve(n){const t=rf(e,n.expression);return'"use strict"'===t||"'use strict'"===t}function je(a){switch(a.kind){case 79:if(2048&a.flags){let e=a.parent;for(;e&&!Ag(e);)e=e.parent;Re(e,524288,788968);break}case 108:return d&&(mu(a)||300===r.kind)&&(a.flowNode=d),Ne(a);case 163:d&&Eh(a)&&(a.flowNode=d);break;case 233:case 106:a.flowNode=d;break;case 80:return function(n){"#constructor"===n.escapedText&&(e.parseDiagnostics.length||e.bindDiagnostics.push(R(n,Wo.constructor_is_a_reserved_word,Vf(n))))}(a);case 208:case 209:const s=a;d&&W(s)&&(s.flowNode=d),pg(s)&&function(e){108===e.expression.kind?qe(e):ig(e)&&308===e.parent.parent.kind&&(Qb(e.expression)?Ye(e,e.parent):$e(e))}(s),Ih(s)&&e.commonJsModuleIndicator&&Zh(s)&&!rG(o,"module")&&F(e.locals,void 0,s.expression,134217729,111550);break;case 223:switch(eg(a)){case 1:We(a);break;case 2:!function(n){if(!Ke(n))return;const t=Yh(n.right);if(tE(t)||i===e&&nG(e,t))return;if(Ok(t)&&N(t.properties,Aw))return void A(t.properties,ze);const r=dy(n)?2097152:1049092,a=F(e.symbol.exports,e.symbol,n,67108864|r,0);fg(a,n)}(a);break;case 3:Ye(a.left,a);break;case 6:!function(e){CS(e.left,e),CS(e.right,e),nn(e.left.expression,e.left,!1,!0)}(a);break;case 4:qe(a);break;case 5:const n=a.left.expression;if(Ih(a)&&IC(n)){const e=rG(o,n.escapedText);if(sh(null==e?void 0:e.valueDeclaration)){qe(a);break}}!function(n){var t;const r=tn(n.left.expression,i)||tn(n.left.expression,o);if(!Ih(n)&&!mg(r))return;const a=cT(n.left);if(IC(a)&&2097152&(null==(t=rG(i,a.escapedText))?void 0:t.flags))return;if(CS(n.left,n),CS(n.right,n),IC(n.left.expression)&&i===e&&nG(e,n.left.expression))We(n);else if(Ny(n)){we(n,67108868,"__computed");Xe(n,Qe(r,n.left.expression,en(n.left),!1,!1))}else $e(Tn(n.left,og))}(a);break;case 0:break;default:Nt.fail("Unknown binary expression special property assignment kind")}return function(e){E&&lu(e.left)&&Ub(e.operatorToken.kind)&&De(e,e.left)}(a);case 295:return function(e){E&&e.variableDeclaration&&De(e,e.variableDeclaration.name)}(a);case 217:return function(n){if(E&&79===n.expression.kind){const t=am(e,n.expression);e.bindDiagnostics.push(kT(e,t.start,t.length,Wo.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(a);case 8:return function(n){t<1&&E&&32&n.numericLiteralFlags&&e.bindDiagnostics.push(R(n,Wo.Octal_literals_are_not_allowed_in_strict_mode))}(a);case 222:return function(e){E&&De(e,e.operand)}(a);case 221:return function(e){E&&(45!==e.operator&&46!==e.operator||De(e,e.operand))}(a);case 251:return function(e){E&&Pe(e,Wo.with_statements_are_not_allowed_in_strict_mode)}(a);case 253:return function(e){E&&HT(n)>=2&&(Fu(e.statement)||fI(e.statement))&&Pe(e.label,Wo.A_label_is_not_allowed_here)}(a);case 194:return void(l=!0);case 179:break;case 165:return function(e){if(_R(e.parent)){const n=Gg(e.parent);n?(Nt.assertNode(n,Du),null!=n.locals||(n.locals=dp()),F(n.locals,void 0,e,262144,526824)):Le(e,262144,526824)}else if(192===e.parent.kind){const n=function(e){const n=Mc(e,(e=>e.parent&&vk(e.parent)&&e.parent.extendsType===e));return n&&n.parent}(e.parent);n?(Nt.assertNode(n,Du),null!=n.locals||(n.locals=dp()),F(n.locals,void 0,e,262144,526824)):we(e,262144,M(e))}else Le(e,262144,526824)}(a);case 166:return on(a);case 257:return an(a);case 205:return a.flowNode=d,an(a);case 169:case 168:return function(e){const n=Bd(e),t=n?13247:0;return sn(e,(n?98304:4)|(e.questionToken?16777216:0),t)}(a);case 299:case 300:return sn(a,4,0);case 302:return sn(a,8,900095);case 176:case 177:case 178:return Le(a,131072,0);case 171:case 170:return sn(a,8192|(a.questionToken?16777216:0),Gm(a)?0:103359);case 259:return function(n){e.isDeclarationFile||16777216&n.flags||Iy(n)&&(b|=2048);Oe(n),E?(Me(n),Re(n,16,110991)):Le(n,16,110991)}(a);case 173:return Le(a,16384,0);case 174:return sn(a,32768,46015);case 175:return sn(a,65536,78783);case 181:case 320:case 326:case 182:return function(e){const n=D(131072,M(e));O(n,e,131072);const t=D(2048,"__type");O(t,e,2048),t.members=dp(),t.members.set(n.escapedName,n)}(a);case 184:case 325:case 197:return function(e){return we(e,2048,"__type")}(a);case 335:return function(e){j(e);const n=Bg(e);n&&171!==n.kind&&O(n.symbol,n,32)}(a);case 207:return function(e){return we(e,4096,"__object")}(a);case 215:case 216:return function(n){e.isDeclarationFile||16777216&n.flags||Iy(n)&&(b|=2048);d&&(n.flowNode=d);Oe(n);const t=n.name?n.name.escapedText:"__function";return we(n,16,t)}(a);case 210:switch(eg(a)){case 7:return function(e){let n=tn(e.arguments[0]);const t=308===e.parent.parent.kind;n=Qe(n,e.arguments[0],t,!1,!1),Ze(e,n,!1)}(a);case 8:return function(e){if(!Ke(e))return;const n=rn(e.arguments[0],void 0,((e,n)=>(n&&O(n,e,67110400),n)));if(n){const t=1048580;F(n.exports,n,e,t,0)}}(a);case 9:return function(e){const n=tn(e.arguments[0].expression);n&&n.valueDeclaration&&O(n,n.valueDeclaration,32);Ze(e,n,!0)}(a);case 0:break;default:return Nt.fail("Unknown call expression assignment declaration kind")}Ih(a)&&function(n){!e.commonJsModuleIndicator&&Oh(n,!1)&&Ke(n)}(a);break;case 228:case 260:return E=!0,function(n){if(260===n.kind)Re(n,32,899503);else{we(n,32,n.name?n.name.escapedText:"__class"),n.name&&x.add(n.name.escapedText)}const{symbol:t}=n,r=D(4194308,"prototype"),i=t.exports.get(r.escapedName);i&&(n.name&&CS(n.name,n),e.bindDiagnostics.push(R(i.declarations[0],Wo.Duplicate_identifier_0,jc(r))));t.exports.set(r.escapedName,r),r.parent=t}(a);case 261:return Re(a,64,788872);case 262:return Re(a,524288,788968);case 263:return function(e){return cm(e)?Re(e,128,899967):Re(e,256,899327)}(a);case 264:return function(n){if(ke(n),yf(n))if(fb(n,1)&&Pe(n,Wo.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),Lf(n))Ie(n);else{let t;if(10===n.name.kind){const{text:e}=n.name;t=$x(e),void 0===t&&Pe(n.name,Wo.Pattern_0_can_have_at_most_one_Asterisk_character,e)}const r=Le(n,512,110735);e.patternAmbientModules=Te(e.patternAmbientModules,t&&!vn(t)?{pattern:t,symbol:r}:void 0)}else{const e=Ie(n);if(0!==e){const{symbol:t}=n;t.constEnumOnlyModule=!(304&t.flags)&&2===e&&!1!==t.constEnumOnlyModule}}}(a);case 289:return function(e){return we(e,4096,"__jsxAttributes")}(a);case 288:return function(e,n,t){return Le(e,n,t)}(a,4,0);case 268:case 271:case 273:case 278:return Le(a,2097152,2097152);case 267:return function(n){ce(n.modifiers)&&e.bindDiagnostics.push(R(n,Wo.Modifiers_cannot_appear_here));const t=Iw(n.parent)?OD(n.parent)?n.parent.isDeclarationFile?void 0:Wo.Global_module_exports_may_only_appear_in_declaration_files:Wo.Global_module_exports_may_only_appear_in_module_files:Wo.Global_module_exports_may_only_appear_at_top_level;t?e.bindDiagnostics.push(R(n,t)):(e.symbol.globalExports=e.symbol.globalExports||dp(),F(e.symbol.globalExports,e.symbol,n,2097152,2097152))}(a);case 270:return function(e){e.name&&Le(e,2097152,2097152)}(a);case 275:return function(e){i.symbol&&i.symbol.exports?e.exportClause?YI(e.exportClause)&&(CS(e.exportClause,e),F(i.symbol.exports,i.symbol,e.exportClause,2097152,2097152)):F(i.symbol.exports,i.symbol,e,8388608,0):we(e,8388608,M(e))}(a);case 274:return function(e){if(i.symbol&&i.symbol.exports){const n=dy(e)?2097152:4,t=F(i.symbol.exports,i.symbol,e,n,67108863);e.isExportEquals&&fg(t,e)}else we(e,111551,M(e))}(a);case 308:return Ue(a.statements),function(){if(ke(e),OD(e))He();else if(sm(e)){He();const n=e.symbol;F(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=n}}();case 238:if(!wd(a.parent))return;case 265:return Ue(a.statements);case 344:if(326===a.parent.kind)return on(a);if(325!==a.parent.kind)break;case 351:const u=a;return Le(u,u.isBracketed||u.typeExpression&&319===u.typeExpression.type.kind?16777220:4,0);case 349:case 341:case 343:return(c||(c=[])).push(a);case 342:return Ge(a.typeExpression)}}function He(){we(e,512,`"${qx(e.fileName)}"`)}function Ke(n){return(!e.externalModuleIndicator||!0===e.externalModuleIndicator)&&(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=n,e.externalModuleIndicator||He()),!0)}function We(e){if(!Ke(e))return;const n=rn(e.left.expression,void 0,((e,n)=>(n&&O(n,e,67110400),n)));if(n){const t=ly(e.right)&&($h(e.left.expression)||Zh(e.left.expression))?2097152:1048580;CS(e.left,e),F(n.exports,n,e.left,t,0)}}function ze(n){F(e.symbol.exports,e.symbol,n,69206016,0)}function qe(e){Nt.assert(Ih(e));if(Yk(e)&&Mk(e.left)&&wC(e.left.name)||Mk(e)&&wC(e.name))return;const n=Qm(e,!1,!1);switch(n.kind){case 259:case 215:let t=n.symbol;if(Yk(n.parent)&&63===n.parent.operatorToken.kind){const e=n.parent.left;ig(e)&&Qb(e.expression)&&(t=tn(e.expression.expression,a))}t&&t.valueDeclaration&&(t.members=t.members||dp(),Ny(e)?Je(e,t,t.members):F(t.members,t,e,67108868,0),O(t,t.valueDeclaration,32));break;case 173:case 169:case 171:case 174:case 175:case 172:const r=n.parent,i=mb(n)?r.symbol.exports:r.symbol.members;Ny(e)?Je(e,r.symbol,i):F(i,r.symbol,e,67108868,0,!0);break;case 308:if(Ny(e))break;n.commonJsModuleIndicator?F(n.symbol.exports,n.symbol,e,1048580,0):Le(e,1,111550);break;default:Nt.failBadSyntaxKind(n)}}function Je(e,n,t){F(t,n,e,4,0,!0,!0),Xe(e,n)}function Xe(e,n){n&&(n.assignmentDeclarationMembers||(n.assignmentDeclarationMembers=new Map)).set(ZG(e),e)}function Ye(e,n){const t=e.expression,r=t.expression;CS(r,t),CS(t,e),CS(e,n),nn(r,e,!0,!0)}function $e(e){Nt.assert(!IC(e)),CS(e.expression,e),nn(e.expression,e,!1,!1)}function Qe(n,t,r,i,a){if(2097152&(null==n?void 0:n.flags))return n;if(r&&!i){const r=67110400,i=110735;n=rn(t,n,((n,t,a)=>{if(t)return O(t,n,r),t;return F(a?a.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=dp()),a,n,r,i)}))}return a&&n&&n.valueDeclaration&&O(n,n.valueDeclaration,32),n}function Ze(e,n,t){if(!n||!function(e){if(1072&e.flags)return!0;const n=e.valueDeclaration;if(n&&Fk(n))return!!Wh(n);let t=n?NI(n)?n.initializer:Yk(n)?n.right:Mk(n)&&Yk(n.parent)?n.parent.right:void 0:void 0;if(t=t&&Yh(t),t){const e=Qb(NI(n)?n.name:Yk(n)?n.left:n);return!!zh(!Yk(t)||56!==t.operatorToken.kind&&60!==t.operatorToken.kind?t:t.right,e)}return!1}(n))return;const r=t?n.members||(n.members=dp()):n.exports||(n.exports=dp());let i=0,a=0;Rd(Wh(e))?(i=8192,a=103359):Fk(e)&&ng(e)&&(ce(e.arguments[2].properties,(e=>{const n=Xc(e);return!!n&&IC(n)&&"set"===Uc(n)}))&&(i|=65540,a|=78783),ce(e.arguments[2].properties,(e=>{const n=Xc(e);return!!n&&IC(n)&&"get"===Uc(n)}))&&(i|=32772,a|=46015)),0===i&&(i=4,a=0),F(r,n,e,67108864|i,-67108865&a)}function en(e){return Yk(e.parent)?308===function(e){for(;Yk(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:308===e.parent.parent.kind}function nn(e,n,t,r){let a=tn(e,i)||tn(e,o);const s=en(n);a=Qe(a,n.expression,s,t,r),Ze(n,a,t)}function tn(e,n=i){if(IC(e))return rG(n,e.escapedText);{const n=tn(e.expression);return n&&n.exports&&n.exports.get(lg(e))}}function rn(n,t,r){if(nG(e,n))return e.symbol;if(IC(n))return r(n,tn(n),t);{const e=rn(n.expression,t,r),i=sg(n);return wC(i)&&Nt.fail("unexpected PrivateIdentifier"),r(i,e&&e.exports&&e.exports.get(lg(n)),e)}}function an(e){if(E&&De(e,e.name),!Jd(e.name)){const t=257===e.kind?e:e.parent.parent;!Ih(e)||100===zT(n)||!Ph(t)||Al(e)||1&wc(e)?hf(e)?Re(e,2,111551):Jy(e)?Le(e,1,111551):Le(e,1,111550):Le(e,2097152,2097152)}}function on(e){if((344!==e.kind||326===i.kind)&&(!E||16777216&e.flags||De(e,e.name),Jd(e.name)?we(e,1,"__"+e.parent.parameters.indexOf(e)):Le(e,1,111551),Ac(e,e.parent))){const n=e.parent.parent;F(n.symbol.members,n.symbol,e,4|(e.questionToken?16777216:0),0)}}function sn(n,t,r){return e.isDeclarationFile||16777216&n.flags||!Iy(n)||(b|=2048),d&&Bm(n)&&(n.flowNode=d),Ny(n)?we(n,t,"__computed"):Le(n,t,r)}}function eG(e){return!OI(e)&&!function(e){switch(e.kind){case 261:case 262:return!0;case 264:return 1!==JF(e);case 263:return fb(e,2048);default:return!1}}(e)&&!GI(e)&&!(fI(e)&&!(3&Nc(e))&&e.declarationList.declarations.some((e=>!e.initializer)))}function nG(e,n){let t=0;const r=mn();for(r.enqueue(n);!r.isEmpty()&&t<100;){if(t++,$h(n=r.dequeue())||Zh(n))return!0;if(IC(n)){const t=rG(e,n.escapedText);if(t&&t.valueDeclaration&&NI(t.valueDeclaration)&&t.valueDeclaration.initializer){const e=t.valueDeclaration.initializer;r.enqueue(e),Hb(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function tG(e){switch(e.kind){case 228:case 260:case 263:case 207:case 184:case 325:case 289:return 1;case 261:return 65;case 264:case 262:case 197:case 178:return 33;case 308:return 37;case 174:case 175:case 171:if(Bm(e))return 173;case 173:case 259:case 170:case 176:case 326:case 320:case 181:case 177:case 182:case 172:return 45;case 215:case 216:return 61;case 265:return 4;case 169:return e.initializer?4:0;case 295:case 245:case 246:case 247:case 266:return 34;case 238:return Id(e.parent)||ZC(e.parent)?0:34}return 0}function rG(e,n){var t,r,i,a,o;const s=null==(r=null==(t=En(e,Du))?void 0:t.locals)?void 0:r.get(n);return s?null!=(i=s.exportSymbol)?i:s:Iw(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(n)?e.jsGlobalAugmentations.get(n):Nu(e)?null==(o=null==(a=e.symbol)?void 0:a.exports)?void 0:o.get(n):void 0}var iG=E({"src/compiler/binder.ts"(){lq(),_a(),WF=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(WF||{}),zF=ZF()}});function aG(e,n,t,r,i,a,o,s,c,l){return function(d=()=>!0){const u=[],_=[];return{walkType:e=>{try{return p(e),{visitedTypes:Ye(u),visitedSymbols:Ye(_)}}finally{K(u),K(_)}},walkSymbol:e=>{try{return h(e),{visitedTypes:Ye(u),visitedSymbols:Ye(_)}}finally{K(u),K(_)}}};function p(e){if(!e)return;if(u[e.id])return;u[e.id]=e;if(!h(e.symbol)){if(524288&e.flags){const t=e,i=t.objectFlags;4&i&&function(e){p(e.target),A(l(e),p)}(e),32&i&&function(e){p(e.typeParameter),p(e.constraintType),p(e.templateType),p(e.modifiersType)}(e),3&i&&(m(n=e),A(n.typeParameters,p),A(r(n),p),p(n.thisType)),24&i&&m(t)}var n;262144&e.flags&&function(e){p(s(e))}(e),3145728&e.flags&&function(e){A(e.types,p)}(e),4194304&e.flags&&function(e){p(e.type)}(e),8388608&e.flags&&function(e){p(e.objectType),p(e.indexType),p(e.constraint)}(e)}}function f(r){const i=n(r);i&&p(i.type),A(r.typeParameters,p);for(const e of r.parameters)h(e);p(e(r)),p(t(r))}function m(e){const n=i(e);for(const t of n.indexInfos)p(t.keyType),p(t.type);for(const t of n.callSignatures)f(t);for(const t of n.constructSignatures)f(t);for(const t of n.properties)h(t)}function h(e){if(!e)return!1;const n=eB(e);if(_[n])return!1;if(_[n]=e,!d(e))return!0;return p(a(e)),e.exports&&e.exports.forEach(h),A(e.declarations,(e=>{if(e.type&&183===e.type.kind){const n=e.type;h(o(c(n.exprName)))}})),!1}}}var oG=E({"src/compiler/symbolWalker.ts"(){lq()}});function sG({importModuleSpecifierPreference:e,importModuleSpecifierEnding:n},t,r,i){const a=function(){if(void 0!==i){if(Ux(i))return 2;if(et(i,"/index"))return 1}return Hx(n,r.impliedNodeFormat,t,r)}();return{relativePreference:void 0!==i?rc(i)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{if(99===(null!=e?e:r.impliedNodeFormat))return VF(t,r.fileName)?[3,2]:[2];if(1===zT(t))return[1,2];switch(a){case 2:return[2,0,1];case 3:return[3,0,2,1];case 1:return[1,0,2];case 0:return[0,1,2];default:Nt.assertNever(a)}}}}function cG(e,n,t,r,i,a,o={}){const s=uG(e,n,t,r,i,sG({},e,n,a),{},o);if(s!==a)return s}function lG(e,n,t,r,i,a={}){return uG(e,n,t,r,i,sG({},e,n),{},a)}function dG(e,n,t,r,i,a={}){const o=hG(n.path,r);return C(TG(n.path,t,r,i,a),(t=>LG(t,o,n,r,e,i,!0,a.overrideImportMode)))}function uG(e,n,t,r,i,a,o,s={}){const c=hG(t,i);return C(TG(t,r,i,o,s),(t=>LG(t,c,n,i,e,o,void 0,s.overrideImportMode)))||gG(r,c,e,i,s.overrideImportMode||n.impliedNodeFormat,a)}function _G(e,n,t,r,i={}){return pG(e,n,t,r,i)[0]}function pG(e,n,t,r,a={}){var o;const s=Op(e);if(!s)return i;const c=null==(o=t.getModuleSpecifierCache)?void 0:o.call(t),l=null==c?void 0:c.get(n.path,s.path,r,a);return[null==l?void 0:l.moduleSpecifiers,s,null==l?void 0:l.modulePaths,c]}function fG(e,n,t,r,i,a,o={}){return mG(e,n,t,r,i,a,o).moduleSpecifiers}function mG(e,n,t,r,a,o,s={}){let c=!1;const l=function(e,n){var t;const r=null==(t=e.declarations)?void 0:t.find((e=>bf(e)&&(!Af(e)||!rc(Py(e.name)))));if(r)return r.name.text;const i=ee(e.declarations,(e=>{var t,r,i,a;if(!BI(e))return;const o=l(e);if(!((null==(t=null==o?void 0:o.parent)?void 0:t.parent)&&UI(o.parent)&&yf(o.parent.parent)&&Iw(o.parent.parent.parent)))return;const s=null==(a=null==(i=null==(r=o.parent.parent.symbol.exports)?void 0:r.get("export="))?void 0:i.valueDeclaration)?void 0:a.expression;if(!s)return;const c=n.getSymbolAtLocation(s);if(!c)return;if((2097152&(null==c?void 0:c.flags)?n.getAliasedSymbol(c):c)===e.symbol)return o.parent.parent;function l(e){for(;4&e.flags;)e=e.parent;return e}})),a=i[0];if(a)return a.name.text}(e,n);if(l)return{moduleSpecifiers:[l],computedWithoutCache:c};let[d,u,_,p]=pG(e,r,a,o,s);if(d)return{moduleSpecifiers:d,computedWithoutCache:c};if(!u)return{moduleSpecifiers:i,computedWithoutCache:c};c=!0,_||(_=xG(r.path,u.originalFileName,a));const f=function(e,n,t,r,i,a={}){const o=hG(t.path,r),s=sG(i,n,t),c=A(e,(e=>A(r.getFileIncludeReasons().get(Co(e.path,r.getCurrentDirectory(),o.getCanonicalFileName)),(e=>{if(3!==e.kind||e.file!==t.path)return;if(t.impliedNodeFormat&&t.impliedNodeFormat!==SH(t,e.index))return;const n=YH(t,e.index).text;return 1===s.relativePreference&&ro(n)?void 0:n}))));if(c){return[c]}const l=ce(e,(e=>e.isInNodeModules));let d,u,_,p;for(const f of e){const e=f.isInNodeModules?LG(f,o,t,r,n,i,void 0,a.overrideImportMode):void 0;if(d=Te(d,e),e&&f.isRedirect)return d;if(!e){const e=gG(f.path,o,n,r,a.overrideImportMode||t.impliedNodeFormat,s,f.isRedirect);if(!e)continue;f.isRedirect?_=Te(_,e):io(e)?u=Te(u,e):l&&!f.isInNodeModules||(p=Te(p,e))}}return(null==u?void 0:u.length)?u:(null==_?void 0:_.length)?_:(null==d?void 0:d.length)?d:Nt.checkDefined(p)}(_,t,r,a,o,s);return null==p||p.set(r.path,u.path,o,s,_,f),{moduleSpecifiers:f,computedWithoutCache:c}}function hG(e,n){return{getCanonicalFileName:lt(!n.useCaseSensitiveFileNames||n.useCaseSensitiveFileNames()),importingSourceFileName:e,sourceDirectory:po(e)}}function gG(e,n,t,r,i,{getAllowedEndingsInPreferredOrder:a,relativePreference:o},s){const{baseUrl:c,paths:l,rootDirs:d}=t;if(s&&!l)return;const{sourceDirectory:u,getCanonicalFileName:_}=n,p=a(i),f=d&&function(e,n,t,r,i,a){const o=CG(n,e,r);if(void 0===o)return;const s=CG(t,e,r),c=X(s,(e=>W(o,(n=>wo(Bo(e,n,r)))))),l=jn(c,zx);if(!l)return;return kG(l,i,a)}(d,e,u,_,p,t)||kG(wo(Bo(u,e,_)),p,t);if(!c&&!l||0===o)return s?void 0:f;const m=NG(e,So(Dv(t,r)||c,r.getCurrentDirectory()),_);if(!m)return s?void 0:f;const h=l&&SG(m,l,p,r,t);if(s)return h;const g=void 0===h&&void 0!==c?kG(m,p,t):h;if(!g)return f;if(1===o&&!ro(g))return g;if(3===o&&!ro(g)){const i=t.configFilePath?Co(po(t.configFilePath),r.getCurrentDirectory(),n.getCanonicalFileName):n.getCanonicalFileName(r.getCurrentDirectory()),a=Co(e,i,_),o=pt(u,i),s=pt(a,i);if(o&&!s||!o&&s)return g;const c=bG(r,po(a));return bG(r,u)!==c?g:f}return DG(g)||yG(f)<yG(g)?f:g}function yG(e){let n=0;for(let t=pt(e,"./")?2:0;t<e.length;t++)47===e.charCodeAt(t)&&n++;return n}function vG(e,n){return $n(n.isRedirect,e.isRedirect)||zx(e.path,n.path)}function bG(e,n){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(n):!!Ho(n,(n=>!!e.fileExists(Eo(n,"package.json"))||void 0))}function EG(e,n,t,r,a){var o;const s=Tv(t),c=t.getCurrentDirectory(),l=t.isSourceOfProjectReferenceRedirect(n)?t.getProjectReferenceRedirect(n):void 0,d=Co(n,c,s),u=t.redirectTargetsMap.get(d)||i,_=[...l?[l]:i,n,...u].map((e=>So(e,c)));let p=!N(_,DS);if(!r){const e=A(_,(e=>!(p&&DS(e))&&a(e,l===e)));if(e)return e}const f=null==(o=t.getSymlinkCache)?void 0:o.call(t).getSymlinkedDirectoriesByRealpath(),m=So(n,c),h=f&&Ho(po(m),(n=>{const t=f.get(Io(Co(n,c,s)));if(t)return!Fo(e,n,s)&&A(_,(e=>{if(!Fo(e,n,s))return;const r=Bo(n,e,s);for(const n of t){const t=To(n,r),i=a(t,e===l);if(p=!0,i)return i}}))}));return h||(r?A(_,(e=>p&&DS(e)?void 0:a(e,e===l))):void 0)}function TG(e,n,t,r,i={}){var a;const o=Co(n,t.getCurrentDirectory(),Tv(t)),s=null==(a=t.getModuleSpecifierCache)?void 0:a.call(t);if(s){const n=s.get(e,o,r,i);if(null==n?void 0:n.modulePaths)return n.modulePaths}const c=xG(e,n,t);return s&&s.setModulePaths(e,o,r,i,c),c}function xG(e,n,t){const r=Tv(t),i=new Map;let a=!1;EG(e,n,t,!0,((e,n)=>{const t=iF(e);i.set(e,{path:r(e),isRedirect:n,isInNodeModules:t}),a=a||t}));const o=[];for(let s=po(e);0!==i.size;){const e=Io(s);let n;i.forEach((({path:t,isRedirect:r,isInNodeModules:a},o)=>{pt(t,e)&&((n||(n=[])).push({path:o,isRedirect:r,isInNodeModules:a}),i.delete(o))})),n&&(n.length>1&&n.sort(vG),o.push(...n));const t=po(s);if(t===s)break;s=t}if(i.size){const e=Qe(i.values());e.length>1&&e.sort(vG),o.push(...e)}return o}function SG(e,n,t,r,i){for(const o in n)for(const r of n[o]){const n=Ao(r),s=n.indexOf("*"),c=t.map((n=>({ending:n,value:kG(e,[n],i)})));if(iS(n)&&c.push({ending:void 0,value:e}),-1!==s){const e=n.substring(0,s),t=n.substring(s+1);for(const{ending:n,value:r}of c)if(r.length>=e.length+t.length&&pt(r,e)&&et(r,t)&&a({ending:n,value:r})){const n=r.substring(e.length,r.length-t.length);return o.replace("*",n)}}else if(ce(c,(e=>0!==e.ending&&n===e.value))||ce(c,(e=>0===e.ending&&n===e.value&&a(e))))return o}function a({ending:n,value:t}){return 0!==n||t===kG(e,[n],i,r)}}function AG(e,n,t,r,i,a,o=0){if("string"===typeof i){const a=So(Eo(t,i),void 0),s=Vx(n)?qx(n)+RG(n,e):void 0;switch(o){case 0:if(0===Mo(n,a)||s&&0===Mo(s,a))return{moduleFileToTry:r};break;case 1:if(Po(a,n)){const e=Bo(a,n,!1);return{moduleFileToTry:So(Eo(Eo(r,i),e),void 0)}}break;case 2:const e=a.indexOf("*"),t=a.slice(0,e),o=a.slice(e+1);if(pt(n,t)&&et(n,o)){const e=n.slice(t.length,n.length-o.length);return{moduleFileToTry:r.replace("*",e)}}if(s&&pt(s,t)&&et(s,o)){const e=s.slice(t.length,s.length-o.length);return{moduleFileToTry:r.replace("*",e)}}}}else{if(Array.isArray(i))return A(i,(i=>AG(e,n,t,r,i,a)));if("object"===typeof i&&null!==i){if(SF(i))return A(Je(i),(o=>{const s=So(Eo(r,o),void 0),c=et(o,"/")?1:rt(o,"*")?2:0;return AG(e,n,t,s,i[o],a,c)}));for(const o of Je(i))if("default"===o||a.indexOf(o)>=0||IF(a,o)){const s=i[o],c=AG(e,n,t,r,s,a);if(c)return c}}}}function LG({path:e,isRedirect:n},{getCanonicalFileName:t,sourceDirectory:r},i,a,o,s,c,l){if(!a.fileExists||!a.readFile)return;const d=KS(e);if(!d)return;const u=sG(s,o,i).getAllowedEndingsInPreferredOrder();let _=e,p=!1;if(!c){let n,t=d.packageRootIndex;for(;;){const{moduleFileToTry:r,packageRootPath:i,blockedByExports:s,verbatimFromExports:c}=y(t);if(1!==zT(o)){if(s)return;if(c)return r}if(i){_=i,p=!0;break}if(n||(n=r),t=e.indexOf(za,t+1),-1===t){_=kG(n,u,o,a);break}}}if(n&&!p)return;const f=a.getGlobalTypingsCacheLocation&&a.getGlobalTypingsCacheLocation(),m=t(_.substring(0,d.topLevelNodeModulesIndex));if(!(pt(r,m)||f&&pt(t(f),m)))return;const h=_.substring(d.topLevelPackageNameIndex+1),g=FF(h);return 1===zT(o)&&g===h?void 0:g;function y(n){var r,s;const c=e.substring(0,n),_=Eo(c,"package.json");let p=e,f=!1;const m=null==(s=null==(r=a.getPackageJsonInfoCache)?void 0:r.call(a))?void 0:s.getPackageJsonInfo(_);if("object"===typeof m||void 0===m&&a.fileExists(_)){const n=(null==m?void 0:m.contents.packageJsonContent)||JSON.parse(a.readFile(_)),r=l||i.impliedNodeFormat;if(rx(o)){const t=FF(c.substring(d.topLevelPackageNameIndex+1)),i=RP(o,99===r),a=n.exports?AG(o,e,c,t,n.exports,i):void 0;if(a){return{...Vx(a.moduleFileToTry)?{moduleFileToTry:qx(a.moduleFileToTry)+RG(a.moduleFileToTry,o)}:a,verbatimFromExports:!0}}if(n.exports)return{moduleFileToTry:e,blockedByExports:!0}}const s=n.typesVersions?LP(n.typesVersions):void 0;if(s){const n=SG(e.slice(c.length+1),s.paths,u,a,o);void 0===n?f=!0:p=Eo(c,n)}const h=n.typings||n.types||n.main||"index.js";if(vn(h)&&(!f||!oS(Qx(s.paths),h))){if(qx(Co(h,c,t))===qx(t(p)))return{packageRootPath:c,moduleFileToTry:p}}}else{const e=t(p.substring(d.packageRootIndex+1));if("index.d.ts"===e||"index.js"===e||"index.ts"===e||"index.tsx"===e)return{moduleFileToTry:p,packageRootPath:c}}return{moduleFileToTry:p}}}function CG(e,n,t){return ee(n,(n=>{const r=NG(e,n,t);return void 0!==r&&DG(r)?void 0:r}))}function kG(e,n,t,r){if(so(e,[".json",".mjs",".cjs"]))return e;const i=qx(e);if(e===i)return e;if(so(e,[".d.mts",".mts",".d.cts",".cts"]))return i+wG(e,t);if(!so(e,[".d.ts"])&&so(e,[".ts"])&&rt(e,".d."))return IG(e);switch(n[0]){case 0:const a=nt(i,"/index");return r&&a!==i&&function(e,n){if(!e.fileExists)return;const t=J(Gx({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const r of t){const t=n+r;if(e.fileExists(t))return t}}(r,a)?i:a;case 1:return i;case 2:return i+wG(e,t);case 3:if(GD(e)){const r=n.findIndex((e=>0===e||1===e)),a=n.indexOf(2);return-1!==r&&r<a?i:i+wG(e,t)}return e;default:return Nt.assertNever(n[0])}}function IG(e){const n=fo(e);if(!et(e,".ts")||!rt(n,".d.")||so(n,[".d.ts"]))return;const t=Xx(e,".ts"),r=t.substring(t.lastIndexOf("."));return t.substring(0,t.indexOf(".d."))+r}function wG(e,n){var t;return null!=(t=RG(e,n))?t:Nt.fail(`Extension ${tS(e)} is unsupported:: FileName:: ${e}`)}function RG(e,n){const t=iS(e);switch(t){case".ts":case".d.ts":return".js";case".tsx":return 1===n.jsx?".jsx":".js";case".js":case".jsx":case".json":return t;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function NG(e,n,t){const r=jo(n,e,n,t,!1);return eo(r)?void 0:r}function DG(e){return pt(e,"..")}var OG=E({"src/compiler/moduleSpecifiers.ts"(){lq()}}),MG={};T(MG,{countPathComponents:()=>yG,forEachFileNameOfModule:()=>EG,getModuleSpecifier:()=>lG,getModuleSpecifiers:()=>fG,getModuleSpecifiersWithCacheInfo:()=>mG,getNodeModulesPackageName:()=>dG,tryGetJSExtensionForFile:()=>RG,tryGetModuleSpecifiersFromCache:()=>_G,tryGetRealFileNameForNonJsDeclarationFileName:()=>IG,updateModuleSpecifier:()=>cG});var PG,FG,GG,BG,UG,VG,jG,HG,KG,WG,zG,qG,JG,XG,YG,$G=E({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){OG()}});function QG(){this.flags=0}function ZG(e){return e.id||(e.id=BG,BG++),e.id}function eB(e){return e.id||(e.id=GG,GG++),e.id}function nB(e,n){const t=JF(e);return 1===t||n&&2===t}function tB(e){var n,t,r,a,o,s=Rn((()=>{var n=new Map;return e.getSourceFiles().forEach((e=>{e.resolvedModules&&e.resolvedModules.forEach((({resolvedModule:e})=>{(null==e?void 0:e.packageId)&&n.set(e.packageId.name,".d.ts"===e.extension||!!n.get(e.packageId.name))}))})),n})),c=[],l=e=>{c.push(e)},d=new Set,u=F_.getSymbolConstructor(),_=F_.getTypeConstructor(),p=F_.getSignatureConstructor(),f=0,m=0,h=0,g=0,y=0,v=0,b=!1,E=dp(),T=[1],x=e.getCompilerOptions(),L=HT(x),k=KT(x),I=!!x.experimentalDecorators,w=ux(x),R=nx(x),F=lx(x,"strictNullChecks"),U=lx(x,"strictFunctionTypes"),H=lx(x,"strictBindCallApply"),z=lx(x,"strictPropertyInitialization"),Y=lx(x,"noImplicitAny"),$=lx(x,"noImplicitThis"),Q=lx(x,"useUnknownInCatchVariables"),Z=!!x.keyofStringsOnly,ne=x.suppressExcessPropertyErrors?0:8192,te=x.exactOptionalPropertyTypes,ae=function(){const e=SN((function(e,n,r){n?(n.stackIndex++,n.skip=!1,t(n,void 0),i(n,void 0)):n={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]};if(Ih(e)&&Wh(e))return n.skip=!0,i(n,ZO(e.right,r)),n;!function(e){const{left:n,operatorToken:t,right:r}=e;60===t.kind&&(!Yk(n)||56!==n.operatorToken.kind&&55!==n.operatorToken.kind||QB(n,Wo._0_and_1_operations_cannot_be_mixed_without_parentheses,ms(n.operatorToken.kind),ms(t.kind)),!Yk(r)||56!==r.operatorToken.kind&&55!==r.operatorToken.kind||QB(r,Wo._0_and_1_operations_cannot_be_mixed_without_parentheses,ms(r.operatorToken.kind),ms(t.kind)))}(e);if(63===e.operatorToken.kind&&(207===e.left.kind||206===e.left.kind))return n.skip=!0,i(n,LO(e.left,ZO(e.right,r),r,108===e.right.kind)),n;return n}),(function(e,t,r){if(!t.skip)return n(t,e)}),(function(e,n,a){if(!n.skip){const o=r(n);Nt.assertIsDefined(o),t(n,o),i(n,void 0);const s=e.kind;if(Gb(s)){let e=a.parent;for(;214===e.kind||Bb(e);)e=e.parent;(55===s||gI(e))&&TP(a.left,o,gI(e)?e.thenStatement:void 0),xP(o,a.left)}}}),(function(e,t,r){if(!t.skip)return n(t,e)}),(function(e,n){let a;if(n.skip)a=r(n);else{const t=function(e){return e.typeStack[e.stackIndex]}(n);Nt.assertIsDefined(t);const i=r(n);Nt.assertIsDefined(i),a=IO(e.left,e.operatorToken,e.right,t,i,e)}return n.skip=!1,t(n,void 0),i(n,void 0),n.stackIndex--,a}),(function(e,n,t){return i(e,n),e}));return(n,t)=>{const r=e(n,t);return Nt.assertIsDefined(r),r};function n(e,n){if(Yk(n))return n;i(e,ZO(n,e.checkMode))}function t(e,n){e.typeStack[e.stackIndex]=n}function r(e){return e.typeStack[e.stackIndex+1]}function i(e,n){e.typeStack[e.stackIndex+1]=n}}(),oe=function(){const n=e.getResolvedTypeReferenceDirectives();let t;n&&(t=new Map,n.forEach((({resolvedTypeReferenceDirective:n},t,r)=>{if(!(null==n?void 0:n.resolvedFileName))return;const a=e.getSourceFile(n.resolvedFileName);a&&i(a,t,r)})));return{getReferencedExportContainer:SG,getReferencedImportDeclaration:AG,getReferencedDeclarationWithCollidingName:CG,isDeclarationWithCollidingName:kG,isValueAliasDeclaration:e=>{const n=Fc(e);return!n||IG(n)},hasGlobalName:mB,isReferencedAliasDeclaration:(e,n)=>{const t=Fc(e);return!t||DG(t,n)},getNodeCheckFlags:e=>{const n=Fc(e);return n?KG(n):0},isTopLevelValueImportEqualsWithEntityName:wG,isDeclarationVisible:Zs,isImplementationOfOverload:OG,isRequiredInitializedParameter:MG,isOptionalUninitializedParameterProperty:GG,isExpandoFunctionDeclaration:BG,getPropertiesOfContainerFunction:jG,createTypeOfDeclaration:dB,createReturnTypeOfSignatureDeclaration:pB,createTypeOfExpression:fB,createLiteralConstValue:vB,isSymbolAccessible:ws,isEntityNameVisible:Fs,getConstantValue:e=>{const n=Fc(e,$G);return n?tB(n):void 0},collectLinkedAliases:ec,getReferencedValueDeclaration:gB,getTypeReferenceSerializationKind:lB,isOptionalParameter:fp,moduleExportsSomeValue:xG,isArgumentsLocalBinding:TG,getExternalModuleFileFromDeclaration:e=>{const n=Fc(e,Ff);return n&&xB(n)},getTypeReferenceDirectivesForEntityName:function(e){if(!t)return;let n;164===e.parent.kind?n=1160127:(n=790504,(79===e.kind&&HA(e)||208===e.kind&&!function(e){return e.parent&&230===e.parent.kind&&e.parent.parent&&294===e.parent.parent.kind}(e))&&(n=1160127));const i=No(e,n,!0);return i&&i!==on?r(i,n):void 0},getTypeReferenceDirectivesForSymbol:r,isLiteralConstDeclaration:yB,isLateBound:e=>{const n=Fc(e,Pu),t=n&&Qo(n);return!!(t&&4096&FE(t))},getJsxFactoryEntity:bB,getJsxFragmentFactoryEntity:TB,getAllAccessorDeclarations(e){const n=175===(e=Fc(e,Gl)).kind?174:175,t=cp(Qo(e),n);return{firstAccessor:t&&t.pos<e.pos?t:e,secondAccessor:t&&t.pos<e.pos?e:t,setAccessor:175===e.kind?e:t,getAccessor:174===e.kind?e:t}},getSymbolOfExternalModuleSpecifier:e=>Po(e,e,void 0),isBindingCapturedByNode:(e,n)=>{const t=Fc(e),r=Fc(n);return!!t&&!!r&&(NI(r)||Nk(r))&&function(e,n){const t=Ra(e);return!!t&&G(t.capturedBlockScopeBindings,Qo(n))}(t,r)},getDeclarationStatementsForSourceFile:(e,n,t,r)=>{const i=Fc(e);Nt.assert(i&&308===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");const a=Qo(e);return a?a.exports?se.symbolTableToDeclarationStatements(a.exports,e,n,t,r):[]:e.locals?se.symbolTableToDeclarationStatements(e.locals,e,n,t,r):[]},isImportRequiredByAugmentation:function(e){const n=Dp(e);if(!n.symbol)return!1;const t=xB(e);if(!t)return!1;if(t===n)return!1;const r=Jo(n.symbol);for(const i of Qe(r.values()))if(i.mergeId){const e=$o(i);if(e.declarations)for(const n of e.declarations){if(Dp(n)===t)return!0}}return!1}};function r(e,n){if(!t||!function(e){if(!e.declarations)return!1;let n=e;for(;;){const e=es(n);if(!e)break;n=e}if(n.valueDeclaration&&308===n.valueDeclaration.kind&&512&n.flags)return!1;for(const r of e.declarations){const e=Dp(r);if(t.has(e.path))return!0}return!1}(e))return;let r;for(const i of e.declarations)if(i.symbol&&i.symbol.flags&n){const e=Dp(i),n=t.get(e.path);if(!n)return;(r||(r=[])).push(n)}return r}function i(n,r,a){if(!t.has(n.path)){t.set(n.path,[r,a]);for(const{fileName:t,resolutionMode:a}of n.referencedFiles){const o=sH(t,n.fileName),s=e.getSourceFile(o);s&&i(s,r,a||n.impliedNodeFormat)}}}}(),se=function(){return{typeToTypeNode:(e,n,r,i)=>t(n,r,i,(n=>a(e,n))),indexInfoToIndexSignatureDeclaration:(e,n,r,i)=>t(n,r,i,(n=>u(e,n,void 0))),signatureToSignatureDeclaration:(e,n,r,i,a)=>t(r,i,a,(t=>_(e,n,t))),symbolToEntityName:(e,n,r,i,a)=>t(r,i,a,(t=>O(e,t,n,!1))),symbolToExpression:(e,n,r,i,a)=>t(r,i,a,(t=>P(e,t,n))),symbolToTypeParameterDeclarations:(e,n,r,i)=>t(n,r,i,(n=>v(e,n))),symbolToParameterDeclaration:(e,n,r,i)=>t(n,r,i,(n=>m(e,n))),typeParameterToDeclaration:(e,n,r,i)=>t(n,r,i,(n=>f(e,n))),symbolTableToDeclarationStatements:(e,n,r,o,s)=>t(n,r,o,(n=>function(e,n,t){const r=ye(gA.createPropertyDeclaration,171,!0),o=ye(((e,n,t,r)=>gA.createPropertySignature(e,n,t,r)),170,!1),s=n.enclosingDeclaration;let c=[];const l=new Set,d=[],p=n;n={...p,usedSymbolNames:new Set(p.usedSymbolNames),remappedSymbolNames:new Map,tracker:void 0};const m={...p.tracker.inner,trackSymbol:(e,t,r)=>{var i;if(0===ws(e,t,r,!1).accessibility){const t=y(e,n,r);4&e.flags||K(t[0])}else if(null==(i=p.tracker.inner)?void 0:i.trackSymbol)return p.tracker.inner.trackSymbol(e,t,r);return!1}};n.tracker=new YG(n,m,p.tracker.moduleResolverHost),gp(e,((e,n)=>{Ce(e,Bc(n))}));let h=!t;const g=e.get("export=");g&&e.size>1&&2097152&g.flags&&(e=dp()).set("export=",g);return G(e),w(c);function v(e){return!!e&&79===e.kind}function b(e){return fI(e)?j(W(e.declarationList.declarations,Xc),v):j([Xc(e)],v)}function E(e){const n=D(e,ZI),t=M(e,BI);let r=-1!==t?e[t]:void 0;if(r&&n&&n.isExportEquals&&IC(n.expression)&&IC(r.name)&&Uc(r.name)===Uc(n.expression)&&r.body&&UI(r.body)){const i=j(e,(e=>!!(1&Lb(e)))),a=r.name;let o=r.body;if(S(i)&&(r=gA.updateModuleDeclaration(r,r.modifiers,r.name,o=gA.updateModuleBlock(o,gA.createNodeArray([...r.body.statements,gA.createExportDeclaration(void 0,!1,gA.createNamedExports(W(X(i,(e=>b(e))),(e=>gA.createExportSpecifier(!1,void 0,e)))),void 0)]))),e=[...e.slice(0,t),r,...e.slice(t+1)]),!D(e,(e=>e!==r&&Wc(e,a)))){c=[];const t=!ce(o.statements,(e=>fb(e,1)||ZI(e)||ew(e)));A(o.statements,(e=>{q(e,t?1:0)})),e=[...j(e,(e=>e!==r&&e!==n)),...c]}}return e}function k(e){const n=j(e,(e=>ew(e)&&!e.moduleSpecifier&&!!e.exportClause&&nw(e.exportClause)));if(S(n)>1){e=[...j(e,(e=>!ew(e)||!!e.moduleSpecifier||!e.exportClause)),gA.createExportDeclaration(void 0,!1,gA.createNamedExports(X(n,(e=>Tn(e.exportClause,nw).elements))),void 0)]}const t=j(e,(e=>ew(e)&&!!e.moduleSpecifier&&!!e.exportClause&&nw(e.exportClause)));if(S(t)>1){const n=an(t,(e=>_C(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">"));if(n.length!==t.length)for(const t of n)t.length>1&&(e=[...j(e,(e=>-1===t.indexOf(e))),gA.createExportDeclaration(void 0,!1,gA.createNamedExports(X(t,(e=>Tn(e.exportClause,nw).elements))),t[0].moduleSpecifier)])}return e}function I(e){const n=M(e,(e=>ew(e)&&!e.moduleSpecifier&&!e.assertClause&&!!e.exportClause&&nw(e.exportClause)));if(n>=0){const t=e[n],r=ee(t.exportClause.elements,(n=>{if(!n.propertyName){const t=j(_e(e),(t=>Wc(e[t],n.name)));if(S(t)&&N(t,(n=>qS(e[n])))){for(const n of t)e[n]=R(e[n]);return}}return n}));S(r)?e[n]=gA.updateExportDeclaration(t,t.modifiers,t.isTypeOnly,gA.updateNamedExports(t.exportClause,r),t.moduleSpecifier,t.assertClause):ot(e,n)}return e}function w(e){return e=I(e=k(e=E(e))),s&&(Iw(s)&&om(s)||BI(s))&&(!ce(e,Tu)||!bu(e)&&ce(e,Eu))&&e.push(xR(gA)),e}function R(e){const n=-3&Lb(e)|1;return gA.updateModifiers(e,n)}function F(e){const n=-2&Lb(e);return gA.updateModifiers(e,n)}function G(e,n,t){n||d.push(new Map),e.forEach((e=>{B(e,!1,!!t)})),n||(d[d.length-1].forEach((e=>{B(e,!0,!!t)})),d.pop())}function B(e,t,r){const i=$o(e);if(l.has(eB(i)))return;l.add(eB(i));if(!t||S(e.declarations)&&ce(e.declarations,(e=>!!Mc(e,(e=>e===s))))){const i=n;n=function(e){const n={...e};n.typeParameterNames&&(n.typeParameterNames=new Map(n.typeParameterNames));n.typeParameterNamesByText&&(n.typeParameterNamesByText=new Set(n.typeParameterNamesByText));n.typeParameterSymbolList&&(n.typeParameterSymbolList=new Set(n.typeParameterSymbolList));return n.tracker=new YG(n,n.tracker.inner,n.tracker.moduleResolverHost),n}(n),V(e,t,r),n.reportedDiagnostic&&(p.reportedDiagnostic=n.reportedDiagnostic),n=i}}function V(e,r,i){var a,o,c,l;const d=Bc(e.escapedName),u="default"===e.escapedName;if(r&&!(131072&n.flags)&&Sy(d)&&!u)return void(n.encounteredError=!0);let _=u&&!!(-113&e.flags||16&e.flags&&S(b_(Sl(e))))&&!(2097152&e.flags),p=!_&&!r&&Sy(d)&&!u;(_||p)&&(r=!0);const f=(r?0:1)|(u&&!_?1024:0),m=1536&e.flags&&7&e.flags&&"export="!==e.escapedName,h=m&&ge(Sl(e),e);if((8208&e.flags||h)&&ae(Sl(e),e,Ce(e,d),f),524288&e.flags&&Q(e,d,f),7&e.flags&&"export="!==e.escapedName&&!(4194304&e.flags)&&!(32&e.flags)&&!(8192&e.flags)&&!h)if(i){he(e)&&(p=!1,_=!1)}else{const i=Sl(e),u=Ce(e,d);if(16&e.flags||!ge(i,e)){const d=2&e.flags?pC(e)?2:1:(null==(a=e.parent)?void 0:a.valueDeclaration)&&Iw(null==(o=e.parent)?void 0:o.valueDeclaration)?2:void 0,m=!_&&4&e.flags?Ae(u,e):u;let h=e.declarations&&D(e.declarations,(e=>NI(e)));h&&DI(h.parent)&&1===h.parent.declarations.length&&(h=h.parent.parent);const g=null==(c=e.declarations)?void 0:c.find(Mk);if(g&&Yk(g.parent)&&IC(g.parent.right)&&(null==(l=i.symbol)?void 0:l.valueDeclaration)&&Iw(i.symbol.valueDeclaration)){const e=u===g.parent.right.escapedText?void 0:g.parent.right;q(gA.createExportDeclaration(void 0,!1,gA.createNamedExports([gA.createExportSpecifier(!1,e,u)])),0),n.tracker.trackSymbol(i.symbol,n.enclosingDeclaration,111551)}else{q(VN(gA.createVariableStatement(void 0,gA.createVariableDeclarationList([gA.createVariableDeclaration(m,void 0,J(n,i,e,s,K,t))],d)),h),m!==u?-2&f:f),m===u||r||(q(gA.createExportDeclaration(void 0,!1,gA.createNamedExports([gA.createExportSpecifier(!1,m,u)])),0),p=!1,_=!1)}}else ae(i,e,u,f)}if(384&e.flags&&ie(e,d,f),32&e.flags&&(4&e.flags&&e.valueDeclaration&&Yk(e.valueDeclaration.parent)&&nI(e.valueDeclaration.parent.right)?fe(e,Ce(e,d),f):ue(e,Ce(e,d),f)),(1536&e.flags&&(!m||te(e))||h)&&re(e,d,f),64&e.flags&&!(32&e.flags)&&Z(e,d,f),2097152&e.flags&&fe(e,Ce(e,d),f),4&e.flags&&"export="===e.escapedName&&he(e),8388608&e.flags&&e.declarations)for(const t of e.declarations){const e=Oo(t,t.moduleSpecifier);e&&q(gA.createExportDeclaration(void 0,t.isTypeOnly,void 0,gA.createStringLiteral(T(e,n))),0)}_?q(gA.createExportAssignment(void 0,!1,gA.createIdentifier(Ce(e,d))),0):p&&q(gA.createExportDeclaration(void 0,!1,gA.createNamedExports([gA.createExportSpecifier(!1,Ce(e,d),d)])),0)}function K(e){if(ce(e.declarations,Jy))return;Nt.assertIsDefined(d[d.length-1]),Ae(Bc(e.escapedName),e);const n=!!(2097152&e.flags)&&!ce(e.declarations,(e=>!!Mc(e,ew)||YI(e)||HI(e)&&!cw(e.moduleReference)));d[n?0:d.length-1].set(eB(e),e)}function z(e){return Iw(e)&&(om(e)||sm(e))||yf(e)&&!Sf(e)}function q(e,t){if(jN(e)){let r=0;const i=n.enclosingDeclaration&&(Ag(n.enclosingDeclaration)?Dp(n.enclosingDeclaration):n.enclosingDeclaration);1&t&&i&&(z(i)||BI(i))&&qS(e)&&(r|=1),!h||1&r||i&&16777216&i.flags||!(GI(e)||fI(e)||OI(e)||MI(e)||BI(e))||(r|=2),1024&t&&(MI(e)||PI(e)||OI(e))&&(r|=1024),r&&(e=gA.updateModifiers(e,r|Lb(e)))}c.push(e)}function Q(e,r,i){var o;const s=od(e),c=W(wa(e).typeParameters,(e=>f(e,n))),l=null==(o=e.declarations)?void 0:o.find(Ag),d=Ol(l?l.comment||l.parent.comment:void 0),u=n.flags;n.flags|=8388608;const _=n.enclosingDeclaration;n.enclosingDeclaration=l;const p=l&&l.typeExpression&&Nw(l.typeExpression)&&$(n,l.typeExpression.type,K,t)||a(s,n);q(nL(gA.createTypeAliasDeclaration(void 0,Ce(e,r),c,p),d?[{kind:3,text:"*\n * "+d.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),i),n.flags=u,n.enclosingDeclaration=_}function Z(e,t,r){const i=ad(e),a=W(Ul(e),(e=>f(e,n))),o=td(i),s=S(o)?hy(o):void 0,c=X(b_(i),(e=>ve(e,s))),l=be(0,i,s,176),d=be(1,i,s,177),u=Ee(i,s),_=S(o)?[gA.createHeritageClause(94,ee(o,(e=>xe(e,111551))))]:void 0;q(gA.createInterfaceDeclaration(void 0,Ce(e,t),a,_,[...u,...d,...l,...c]),r)}function ne(e){return e.exports?j(Qe(e.exports.values()),le):[]}function te(e){return N(ne(e),(e=>!(111551&xo(bo(e)))))}function re(e,t,r){const a=rn(ne(e),(n=>n.parent&&n.parent===e?"real":"merged")),o=a.get("real")||i,s=a.get("merged")||i;if(S(o)){se(o,Ce(e,t),r,!!(67108880&e.flags))}if(S(s)){const r=Dp(n.enclosingDeclaration),i=Ce(e,t),a=gA.createModuleBlock([gA.createExportDeclaration(void 0,!1,gA.createNamedExports(ee(j(s,(e=>"export="!==e.escapedName)),(t=>{var i,a;const o=Bc(t.escapedName),s=Ce(t,o),c=t.declarations&&Xa(t);if(r&&(c?r!==Dp(c):!ce(t.declarations,(e=>Dp(e)===r))))return void(null==(a=null==(i=n.tracker)?void 0:i.reportNonlocalAugmentation)||a.call(i,r,e,t));const l=c&&yo(c,!0);K(l||t);const d=l?Ce(l,Bc(l.escapedName)):s;return gA.createExportSpecifier(!1,o===d?void 0:d,o)}))))]);q(gA.createModuleDeclaration(void 0,gA.createIdentifier(i),a,16),0)}}function ie(e,n,t){q(gA.createEnumDeclaration(gA.createModifiersFromModifierFlags(TO(e)?2048:0),Ce(e,n),W(j(b_(Sl(e)),(e=>!!(8&e.flags))),(e=>{const n=e.declarations&&e.declarations[0]&&Cw(e.declarations[0])?tB(e.declarations[0]):void 0;return gA.createEnumMember(Bc(e.escapedName),void 0===n?void 0:"string"===typeof n?gA.createStringLiteral(n):gA.createNumericLiteral(n))}))),t)}function ae(e,r,i,a){const o=Y_(e,0);for(const s of o){q(VN(_(s,259,n,{name:gA.createIdentifier(i),privateSymbolVisitor:K,bundledImports:t}),oe(s)),a)}if(!(1536&r.flags&&r.exports&&r.exports.size)){se(j(b_(e),le),i,a,!0)}}function oe(e){if(e.declaration&&e.declaration.parent){if(Yk(e.declaration.parent)&&5===eg(e.declaration.parent))return e.declaration.parent;if(NI(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}function se(e,t,r,a){if(S(e)){const o=rn(e,(e=>!S(e.declarations)||ce(e.declarations,(e=>Dp(e)===Dp(n.enclosingDeclaration)))?"local":"remote")).get("local")||i;let l=YN.createModuleDeclaration(void 0,gA.createIdentifier(t),gA.createModuleBlock([]),16);CS(l,s),l.locals=dp(e),l.symbol=e[0].parent;const d=c;c=[];const u=h;h=!1;const _={...n,enclosingDeclaration:l},p=n;n=_,G(dp(o),a,!0),n=p,h=u;const f=c;c=d;const m=W(f,(e=>ZI(e)&&!e.isExportEquals&&IC(e.expression)?gA.createExportDeclaration(void 0,!1,gA.createNamedExports([gA.createExportSpecifier(!1,e.expression,gA.createIdentifier("default"))])):e)),g=N(m,(e=>fb(e,1)))?W(m,F):m;l=gA.updateModuleDeclaration(l,l.modifiers,l.name,gA.createModuleBlock(g)),q(l,r)}}function le(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&mb(e.valueDeclaration)&&Fd(e.valueDeclaration.parent))}function de(e){const r=ee(e,(e=>{const r=n.enclosingDeclaration;n.enclosingDeclaration=e;let i=e.expression;if(qb(i)){if(IC(i)&&""===Uc(i))return o(void 0);let e;if(({introducesError:e,node:i}=Y(i,n,K)),e)return o(void 0)}return o(gA.createExpressionWithTypeArguments(i,W(e.typeArguments,(e=>$(n,e,K,t)||a(Fb(e),n)))));function o(e){return n.enclosingDeclaration=r,e}}));if(r.length===e.length)return r}function ue(e,t,a){var o,s;const c=null==(o=e.declarations)?void 0:o.find(Fd),l=n.enclosingDeclaration;n.enclosingDeclaration=c||l;const d=W(Ul(e),(e=>f(e,n))),u=ad(e),_=td(u),p=c&&my(c),m=p&&de(p)||ee(function(e){let n=i;if(e.symbol.declarations)for(const t of e.symbol.declarations){const e=my(t);if(e)for(const t of e){const e=Fb(t);_c(e)||(n===i?n=[e]:n.push(e))}}return n}(u),Se),h=Sl(e),g=!!(null==(s=h.symbol)?void 0:s.valueDeclaration)&&Fd(h.symbol.valueDeclaration),y=g?Zl(h):un,v=[...S(_)?[gA.createHeritageClause(94,W(_,(e=>Te(e,y,t))))]:[],...S(m)?[gA.createHeritageClause(117,m)]:[]],b=function(e,n,t){if(!S(n))return t;const r=new Map;A(t,(e=>{r.set(e.escapedName,e)}));for(const i of n){const n=b_(nu(i,e.thisType));for(const e of n){const n=r.get(e.escapedName);n&&e.parent===n.parent&&r.delete(e.escapedName)}}return Qe(r.values())}(u,_,b_(u)),E=j(b,(e=>{const n=e.valueDeclaration;return!!n&&!(qc(n)&&wC(n.name))})),T=ce(b,(e=>{const n=e.valueDeclaration;return!!n&&qc(n)&&wC(n.name)}))?[gA.createPropertyDeclaration(void 0,gA.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:i,x=X(E,(e=>r(e,!1,_[0]))),L=X(j(b_(h),(e=>!(4194304&e.flags)&&"prototype"!==e.escapedName&&!le(e))),(e=>r(e,!0,y))),C=!g&&!!e.valueDeclaration&&Ih(e.valueDeclaration)&&!ce(Y_(h,1))?[gA.createConstructorDeclaration(gA.createModifiersFromModifierFlags(8),[],void 0)]:be(1,h,y,173),k=Ee(u,_[0]);n.enclosingDeclaration=l,q(VN(gA.createClassDeclaration(void 0,t,d,v,[...k,...L,...C,...x,...T]),e.declarations&&j(e.declarations,(e=>MI(e)||nI(e)))[0]),a)}function pe(e){return C(e,(e=>{if(QI(e)||tw(e))return Uc(e.propertyName||e.name);if(Yk(e)||ZI(e)){const n=ZI(e)?e.expression:e.right;if(Mk(n))return Uc(n.name)}if(Ya(e)){const n=Xc(e);if(n&&IC(n))return Uc(n)}}))}function fe(e,r,i){var a,o,s,c,l;const d=Xa(e);if(!d)return Nt.fail();const u=$o(yo(d,!0));if(!u)return;let _=Tf(u)&&pe(e.declarations)||Bc(u.escapedName);"export="===_&&(ex(x)||x.allowSyntheticDefaultImports)&&(_="default");const p=Ce(u,_);switch(K(u),d.kind){case 205:if(257===(null==(o=null==(a=d.parent)?void 0:a.parent)?void 0:o.kind)){const e=T(u.parent||u,n),{propertyName:t}=d;q(gA.createImportDeclaration(void 0,gA.createImportClause(!1,void 0,gA.createNamedImports([gA.createImportSpecifier(!1,t&&IC(t)?gA.createIdentifier(Uc(t)):void 0,gA.createIdentifier(r))])),gA.createStringLiteral(e),void 0),0);break}Nt.failBadSyntaxKind((null==(s=d.parent)?void 0:s.parent)||d,"Unhandled binding element grandparent kind in declaration serialization");break;case 300:223===(null==(l=null==(c=d.parent)?void 0:c.parent)?void 0:l.kind)&&me(Bc(e.escapedName),p);break;case 257:if(Mk(d.initializer)){const e=d.initializer,t=gA.createUniqueName(r),a=T(u.parent||u,n);q(gA.createImportEqualsDeclaration(void 0,!1,t,gA.createExternalModuleReference(gA.createStringLiteral(a))),0),q(gA.createImportEqualsDeclaration(void 0,!1,gA.createIdentifier(r),gA.createQualifiedName(t,e.name)),i);break}case 268:if("export="===u.escapedName&&ce(u.declarations,(e=>Iw(e)&&sm(e)))){he(e);break}const f=!(512&u.flags)&&!NI(d);q(gA.createImportEqualsDeclaration(void 0,!1,gA.createIdentifier(r),f?O(u,n,67108863,!1):gA.createExternalModuleReference(gA.createStringLiteral(T(u,n)))),f?i:0);break;case 267:q(gA.createNamespaceExportDeclaration(Uc(d.name)),0);break;case 270:{const e=T(u.parent||u,n),i=t?gA.createStringLiteral(e):d.parent.moduleSpecifier;q(gA.createImportDeclaration(void 0,gA.createImportClause(!1,gA.createIdentifier(r),void 0),i,d.parent.assertClause),0);break}case 271:{const e=T(u.parent||u,n),i=t?gA.createStringLiteral(e):d.parent.parent.moduleSpecifier;q(gA.createImportDeclaration(void 0,gA.createImportClause(!1,void 0,gA.createNamespaceImport(gA.createIdentifier(r))),i,d.parent.parent.assertClause),0);break}case 277:q(gA.createExportDeclaration(void 0,!1,gA.createNamespaceExport(gA.createIdentifier(r)),gA.createStringLiteral(T(u,n))),0);break;case 273:{const e=T(u.parent||u,n),i=t?gA.createStringLiteral(e):d.parent.parent.parent.moduleSpecifier;q(gA.createImportDeclaration(void 0,gA.createImportClause(!1,void 0,gA.createNamedImports([gA.createImportSpecifier(!1,r!==_?gA.createIdentifier(_):void 0,gA.createIdentifier(r))])),i,d.parent.parent.parent.assertClause),0);break}case 278:const m=d.parent.parent.moduleSpecifier;me(Bc(e.escapedName),m?_:p,m&&o_(m)?gA.createStringLiteral(m.text):void 0);break;case 274:he(e);break;case 223:case 208:case 209:"default"===e.escapedName||"export="===e.escapedName?he(e):me(r,p);break;default:return Nt.failBadSyntaxKind(d,"Unhandled alias declaration kind in symbol serializer!")}}function me(e,n,t){q(gA.createExportDeclaration(void 0,!1,gA.createNamedExports([gA.createExportSpecifier(!1,e!==n?n:void 0,e)]),t),0)}function he(e){if(4194304&e.flags)return!1;const r=Bc(e.escapedName),i="export="===r,a=i||"default"===r,o=e.declarations&&Xa(e),l=o&&yo(o,!0);if(l&&S(l.declarations)&&ce(l.declarations,(e=>Dp(e)===Dp(s)))){const t=o&&(ZI(o)||Yk(o)?uy(o):_y(o)),d=t&&qb(t)?function(e){switch(e.kind){case 79:return e;case 163:do{e=e.left}while(79!==e.kind);return e;case 208:do{if(Zh(e.expression)&&!wC(e.name))return e.name;e=e.expression}while(79!==e.kind);return e}}(t):void 0,u=d&&No(d,67108863,!0,!0,s);(u||l)&&K(u||l);const _=n.tracker.disableTrackSymbol;if(n.tracker.disableTrackSymbol=!0,a)c.push(gA.createExportAssignment(void 0,i,P(l,n,67108863)));else if(d===t&&d)me(r,Uc(d));else if(t&&nI(t))me(r,Ce(l,jc(l)));else{const t=Ae(r,e);q(gA.createImportEqualsDeclaration(void 0,!1,gA.createIdentifier(t),O(l,n,67108863,!1)),0),me(r,t)}return n.tracker.disableTrackSymbol=_,!0}{const o=Ae(r,e),d=DS(Sl($o(e)));if(ge(d,e))ae(d,e,o,a?0:1);else{q(gA.createVariableStatement(void 0,gA.createVariableDeclarationList([gA.createVariableDeclaration(o,void 0,J(n,d,e,s,K,t))],2)),l&&4&l.flags&&"export="===l.escapedName?2:r===o?1:0)}return a?(c.push(gA.createExportAssignment(void 0,i,gA.createIdentifier(o))),!0):r!==o&&(me(r,o),!0)}}function ge(e,t){const r=Dp(n.enclosingDeclaration);return 48&YE(e)&&!S(np(e))&&!Ws(e)&&!(!S(j(b_(e),le))&&!S(Y_(e,0)))&&!S(Y_(e,1))&&!H(t,s)&&!(e.symbol&&ce(e.symbol.declarations,(e=>Dp(e)!==r)))&&!ce(b_(e),(e=>Hd(e.escapedName)))&&!ce(b_(e),(e=>ce(e.declarations,(e=>Dp(e)!==r))))&&N(b_(e),(e=>Js(jc(e),L)))}function ye(e,r,i){return function(a,o,c){var l,d,u,p,f;const m=GE(a),h=!!(8&m);if(o&&2887656&a.flags)return[];if(4194304&a.flags||c&&J_(c,a.escapedName)&&uO(J_(c,a.escapedName))===uO(a)&&(16777216&a.flags)===(16777216&J_(c,a.escapedName).flags)&&OE(Sl(a),dc(c,a.escapedName)))return[];const g=-513&m|(o?32:0),y=U(a,n),v=null==(l=a.declarations)?void 0:l.find(yt(YC,Gd,NI,XC,Yk,Mk));if(98304&a.flags&&i){const e=[];if(65536&a.flags&&e.push(VN(gA.createSetAccessorDeclaration(gA.createModifiersFromModifierFlags(g),y,[gA.createParameterDeclaration(void 0,void 0,"arg",void 0,h?void 0:J(n,Sl(a),a,s,K,t))],void 0),(null==(d=a.declarations)?void 0:d.find($u))||v)),32768&a.flags){const r=8&m;e.push(VN(gA.createGetAccessorDeclaration(gA.createModifiersFromModifierFlags(g),y,[],r?void 0:J(n,Sl(a),a,s,K,t),void 0),(null==(u=a.declarations)?void 0:u.find(Qu))||v))}return e}if(98311&a.flags)return VN(e(gA.createModifiersFromModifierFlags((uO(a)?64:0)|g),y,16777216&a.flags?gA.createToken(57):void 0,h?void 0:J(n,xl(a),a,s,K,t),void 0),(null==(p=a.declarations)?void 0:p.find(yt(YC,NI)))||v);if(8208&a.flags){const t=Y_(Sl(a),0);if(8&g)return VN(e(gA.createModifiersFromModifierFlags((uO(a)?64:0)|g),y,16777216&a.flags?gA.createToken(57):void 0,void 0,void 0),(null==(f=a.declarations)?void 0:f.find(Rd))||t[0]&&t[0].declaration||a.declarations&&a.declarations[0]);const i=[];for(const e of t){const t=_(e,r,n,{name:y,questionToken:16777216&a.flags?gA.createToken(57):void 0,modifiers:g?gA.createModifiersFromModifierFlags(g):void 0}),o=e.declaration&&_g(e.declaration.parent)?e.declaration.parent:e.declaration;i.push(VN(t,o))}return i}return Nt.fail(`Unhandled class member kind! ${a.__debugFlags||a.flags}`)}}function ve(e,n){return o(e,!1,n)}function be(e,t,r,i){const a=Y_(t,e);if(1===e){if(!r&&N(a,(e=>0===S(e.parameters))))return[];if(r){const e=Y_(r,1);if(!S(e)&&N(a,(e=>0===S(e.parameters))))return[];if(e.length===a.length){let n=!1;for(let t=0;t<e.length;t++)if(!fx(a[t],e[t],!1,!1,!0,ME)){n=!0;break}if(!n)return[]}}let e=0;for(const n of a)n.declaration&&(e|=xb(n.declaration,24));if(e)return[VN(gA.createConstructorDeclaration(gA.createModifiersFromModifierFlags(e),[],void 0),a[0].declaration)]}const o=[];for(const s of a){const e=_(s,i,n);o.push(VN(e,s.declaration))}return o}function Ee(e,t){const r=[];for(const i of np(e)){if(t){const e=tp(t,i.keyType);if(e&&OE(i.type,e.type))continue}r.push(u(i,n,void 0))}return r}function Te(e,t,r){const i=xe(e,111551);if(i)return i;const o=Ae(`${r}_base`);return q(gA.createVariableStatement(void 0,gA.createVariableDeclarationList([gA.createVariableDeclaration(o,void 0,a(t,n))],2)),0),gA.createExpressionWithTypeArguments(gA.createIdentifier(o),void 0)}function xe(e,t){let r,i;if(e.target&&ks(e.target.symbol,s,t)?(r=W(bf(e),(e=>a(e,n))),i=P(e.target.symbol,n,788968)):e.symbol&&ks(e.symbol,s,t)&&(i=P(e.symbol,n,788968)),i)return gA.createExpressionWithTypeArguments(i,r)}function Se(e){const t=xe(e,788968);return t||(e.symbol?gA.createExpressionWithTypeArguments(P(e.symbol,n,788968),void 0):void 0)}function Ae(e,t){var r,i;const a=t?eB(t):void 0;if(a&&n.remappedSymbolNames.has(a))return n.remappedSymbolNames.get(a);t&&(e=Le(t,e));let o=0;const s=e;for(;null==(r=n.usedSymbolNames)?void 0:r.has(e);)o++,e=`${s}_${o}`;return null==(i=n.usedSymbolNames)||i.add(e),a&&n.remappedSymbolNames.set(a,e),e}function Le(e,t){if("default"===t||"__class"===t||"__function"===t){const r=n.flags;n.flags|=16777216;const i=Qs(e,n);n.flags=r,t=i.length>0&&Uh(i.charCodeAt(0))?fv(i):i}return"default"===t?t="_default":"export="===t&&(t="_exports"),t=Js(t,L)&&!Sy(t)?t:"_"+t.replace(/[^a-zA-Z0-9]/g,"_")}function Ce(e,t){const r=eB(e);return n.remappedSymbolNames.has(r)?n.remappedSymbolNames.get(r):(t=Le(e,t),n.remappedSymbolNames.set(r,t),t)}}(e,n,s))),symbolToNode:(e,n,r,i,a)=>t(r,i,a,(t=>function(e,n,t){if(1073741824&n.flags){if(e.valueDeclaration){const n=Xc(e.valueDeclaration);if(n&&WC(n))return n}const r=wa(e).nameType;if(r&&9216&r.flags)return n.enclosingDeclaration=r.symbol.valueDeclaration,gA.createComputedPropertyName(P(r.symbol,n,t))}return P(e,n,t)}(e,t,n)))};function t(n,t,r,i){Nt.assert(void 0===n||0===(8&n.flags));const a=(null==r?void 0:r.trackSymbol)?r.moduleResolverHost:134217728&t?function(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:dn(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var n;return null==(n=e.getPackageJsonInfoCache)?void 0:n.call(e)},useCaseSensitiveFileNames:dn(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:n=>e.getProjectReferenceRedirect(n),isSourceOfProjectReferenceRedirect:n=>e.isSourceOfProjectReferenceRedirect(n),fileExists:n=>e.fileExists(n),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?n=>e.readFile(n):void 0}}(e):void 0,o={enclosingDeclaration:n,flags:t||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};o.tracker=new YG(o,r,a);const s=i(o);return o.truncating&&1&o.flags&&o.tracker.reportTruncationError(),o.encounteredError?void 0:s}function r(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>(1&e.flags?p_:__)}function a(e,t){const c=t.flags,f=function(e,t){var c,f;n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();const m=8388608&t.flags;if(t.flags&=-8388609,!e)return 262144&t.flags?(t.approximateLength+=3,gA.createKeywordTypeNode(131)):void(t.encounteredError=!0);536870912&t.flags||(e=H_(e));if(1&e.flags)return e.aliasSymbol?gA.createTypeReferenceNode(k(e.aliasSymbol),d(e.aliasTypeArguments,t)):e===hn?tL(gA.createKeywordTypeNode(131),3,"unresolved"):(t.approximateLength+=3,gA.createKeywordTypeNode(e===bn?139:131));if(2&e.flags)return gA.createKeywordTypeNode(157);if(4&e.flags)return t.approximateLength+=6,gA.createKeywordTypeNode(152);if(8&e.flags)return t.approximateLength+=6,gA.createKeywordTypeNode(148);if(64&e.flags)return t.approximateLength+=6,gA.createKeywordTypeNode(160);if(16&e.flags&&!e.aliasSymbol)return t.approximateLength+=7,gA.createKeywordTypeNode(134);if(1056&e.flags){if(8&e.symbol.flags){const n=es(e.symbol),r=I(n,t,788968);if(hd(n)===e)return r;const i=jc(e.symbol);return Js(i,0)?C(r,gA.createTypeReferenceNode(i,void 0)):Ck(r)?(r.isTypeOf=!0,gA.createIndexedAccessTypeNode(r,gA.createLiteralTypeNode(gA.createStringLiteral(i)))):sk(r)?gA.createIndexedAccessTypeNode(gA.createTypeQueryNode(r.typeName),gA.createLiteralTypeNode(gA.createStringLiteral(i))):Nt.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return I(e.symbol,t,788968)}if(128&e.flags)return t.approximateLength+=e.value.length+2,gA.createLiteralTypeNode(jA(gA.createStringLiteral(e.value,!!(268435456&t.flags)),33554432));if(256&e.flags){const n=e.value;return t.approximateLength+=(""+n).length,gA.createLiteralTypeNode(n<0?gA.createPrefixUnaryExpression(40,gA.createNumericLiteral(-n)):gA.createNumericLiteral(n))}if(2048&e.flags)return t.approximateLength+=mS(e.value).length+1,gA.createLiteralTypeNode(gA.createBigIntLiteral(e.value));if(512&e.flags)return t.approximateLength+=e.intrinsicName.length,gA.createLiteralTypeNode("true"===e.intrinsicName?gA.createTrue():gA.createFalse());if(8192&e.flags){if(!(1048576&t.flags)){if(Ls(e.symbol,t.enclosingDeclaration))return t.approximateLength+=6,I(e.symbol,t,111551);t.tracker.reportInaccessibleUniqueSymbolError&&t.tracker.reportInaccessibleUniqueSymbolError()}return t.approximateLength+=13,gA.createTypeOperatorNode(156,gA.createKeywordTypeNode(153))}if(16384&e.flags)return t.approximateLength+=4,gA.createKeywordTypeNode(114);if(32768&e.flags)return t.approximateLength+=9,gA.createKeywordTypeNode(155);if(65536&e.flags)return t.approximateLength+=4,gA.createLiteralTypeNode(gA.createNull());if(131072&e.flags)return t.approximateLength+=5,gA.createKeywordTypeNode(144);if(4096&e.flags)return t.approximateLength+=6,gA.createKeywordTypeNode(153);if(67108864&e.flags)return t.approximateLength+=6,gA.createKeywordTypeNode(149);if(HS(e))return 4194304&t.flags&&(t.encounteredError||32768&t.flags||(t.encounteredError=!0),null==(f=(c=t.tracker).reportInaccessibleThisError)||f.call(c)),t.approximateLength+=4,gA.createThisTypeNode();if(!m&&e.aliasSymbol&&(16384&t.flags||As(e.aliasSymbol,t.enclosingDeclaration))){const n=d(e.aliasTypeArguments,t);return!fs(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?1===S(n)&&e.aliasSymbol===qt.symbol?gA.createArrayTypeNode(n[0]):I(e.aliasSymbol,t,788968,n):gA.createTypeReferenceNode(gA.createIdentifier(""),n)}const h=YE(e);if(4&h)return Nt.assert(!!(524288&e.flags)),e.node?T(e,L):L(e);if(262144&e.flags||3&h){if(262144&e.flags&&G(t.inferTypeParameters,e)){let n;t.approximateLength+=jc(e.symbol).length+6;const r=T_(e);if(r){const i=tf(e,!0);i&&OE(r,i)||(t.approximateLength+=9,n=r&&a(r,t))}return gA.createInferTypeNode(p(e,t,n))}if(4&t.flags&&262144&e.flags&&!As(e.symbol,t.enclosingDeclaration)){const n=R(e,t);return t.approximateLength+=Uc(n).length,gA.createTypeReferenceNode(gA.createIdentifier(Uc(n)),void 0)}if(e.symbol)return I(e.symbol,t,788968);const n=(e===Ft||e===Gt)&&o&&o.symbol?(e===Gt?"sub-":"super-")+jc(o.symbol):"?";return gA.createTypeReferenceNode(gA.createIdentifier(n),void 0)}1048576&e.flags&&e.origin&&(e=e.origin);if(3145728&e.flags){const n=1048576&e.flags?function(e){const n=[];let t=0;for(let r=0;r<e.length;r++){const i=e[r];if(t|=i.flags,!(98304&i.flags)){if(1568&i.flags){const t=512&i.flags?Hn:ld(i);if(1048576&t.flags){const i=t.types.length;if(r+i<=e.length&&Sb(e[r+i-1])===Sb(t.types[i-1])){n.push(t),r+=i-1;continue}}}n.push(i)}}65536&t&&n.push(wn);32768&t&&n.push(An);return n||e}(e.types):e.types;if(1===S(n))return a(n[0],t);const r=d(n,t,!0);return r&&r.length>0?1048576&e.flags?gA.createUnionTypeNode(r):gA.createIntersectionTypeNode(r):void(t.encounteredError||262144&t.flags||(t.encounteredError=!0))}if(48&h)return Nt.assert(!!(524288&e.flags)),E(e);if(4194304&e.flags){const n=e.type;t.approximateLength+=6;const r=a(n,t);return gA.createTypeOperatorNode(141,r)}if(134217728&e.flags){const n=e.texts,r=e.types,i=gA.createTemplateHead(n[0]),o=gA.createNodeArray(W(r,((e,i)=>gA.createTemplateLiteralTypeSpan(a(e,t),(i<r.length-1?gA.createTemplateMiddle:gA.createTemplateTail)(n[i+1])))));return t.approximateLength+=2,gA.createTemplateLiteralType(i,o)}if(268435456&e.flags){const n=a(e.type,t);return I(e.symbol,t,788968,[n])}if(8388608&e.flags){const n=a(e.objectType,t),r=a(e.indexType,t);return t.approximateLength+=2,gA.createIndexedAccessTypeNode(n,r)}if(16777216&e.flags)return T(e,(e=>g(e)));if(33554432&e.flags)return a(e.baseType,t);return Nt.fail("Should be unreachable.");function g(e){const n=a(e.checkType,t);if(t.approximateLength+=15,4&t.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)){const r=ps(va(262144,"T")),i=R(r,t),o=gA.createTypeReferenceNode(i);t.approximateLength+=37;const s=pE(e.root.checkType,r,e.mapper),c=t.inferTypeParameters;t.inferTypeParameters=e.root.inferTypeParameters;const l=a(AE(e.root.extendsType,s),t);t.inferTypeParameters=c;const d=y(AE(Fb(e.root.node.trueType),s)),u=y(AE(Fb(e.root.node.falseType),s));return gA.createConditionalTypeNode(n,gA.createInferTypeNode(gA.createTypeParameterDeclaration(void 0,gA.cloneNode(o.typeName))),gA.createConditionalTypeNode(gA.createTypeReferenceNode(gA.cloneNode(i)),a(e.checkType,t),gA.createConditionalTypeNode(o,l,d,u),gA.createKeywordTypeNode(144)),gA.createKeywordTypeNode(144))}const r=t.inferTypeParameters;t.inferTypeParameters=e.root.inferTypeParameters;const i=a(e.extendsType,t);t.inferTypeParameters=r;const o=y(Fv(e)),s=y(Gv(e));return gA.createConditionalTypeNode(n,i,o,s)}function y(e){var n,r,i;return 1048576&e.flags?(null==(n=t.visitedTypes)?void 0:n.has(Eg(e)))?(131072&t.flags||(t.encounteredError=!0,null==(i=null==(r=t.tracker)?void 0:r.reportCyclicStructureError)||i.call(r)),s(t)):T(e,(e=>a(e,t))):a(e,t)}function v(e){return Xu(e)&&!(262144&Yu(e).flags)}function b(e){Nt.assert(!!(524288&e.flags));const n=e.declaration.readonlyToken?gA.createToken(e.declaration.readonlyToken.kind):void 0,r=e.declaration.questionToken?gA.createToken(e.declaration.questionToken.kind):void 0;let i,o;if(Xu(e)){if(v(e)&&4&t.flags){const e=R(ps(va(262144,"T")),t);o=gA.createTypeReferenceNode(e)}i=gA.createTypeOperatorNode(141,o||a(Yu(e),t))}else i=a(ju(e),t);const s=p(Vu(e),t,i),c=e.declaration.nameType?a(Hu(e),t):void 0,l=a(oS(Wu(e),!!(4&r_(e))),t),d=gA.createMappedTypeNode(n,s,c,r,l,void 0);t.approximateLength+=10;const u=jA(d,1);if(v(e)&&4&t.flags){const n=AE(T_(Fb(e.declaration.typeParameter.constraint.type))||xn,e.mapper);return gA.createConditionalTypeNode(a(Yu(e),t),gA.createInferTypeNode(gA.createTypeParameterDeclaration(void 0,gA.cloneNode(o.typeName),2&n.flags?void 0:a(n,t))),u,gA.createKeywordTypeNode(144))}return u}function E(e){var n,r;const i=e.id,a=e.symbol;if(a){const r=Ws(e)?788968:111551;if(JN(a.valueDeclaration))return I(a,t,r);if(32&a.flags&&!fl(a)&&(!(a.valueDeclaration&&Fd(a.valueDeclaration)&&2048&t.flags)||MI(a.valueDeclaration)&&0===ws(a,t.enclosingDeclaration,r,!1).accessibility)||896&a.flags||o())return I(a,t,r);if(null==(n=t.visitedTypes)?void 0:n.has(i)){const n=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){const n=Yg(e.symbol.declarations[0].parent);if(FI(n))return Qo(n)}return}(e);return n?I(n,t,788968):s(t)}return T(e,x)}if(!!(8388608&YE(e))){const n=e;if(dk(n.node)){const e=$(t,n.node);if(e)return e}return(null==(r=t.visitedTypes)?void 0:r.has(i))?s(t):T(e,x)}return x(e);function o(){var e;const n=!!(8192&a.flags)&&ce(a.declarations,(e=>mb(e))),r=!!(16&a.flags)&&(a.parent||A(a.declarations,(e=>308===e.parent.kind||265===e.parent.kind)));if(n||r)return(!!(4096&t.flags)||(null==(e=t.visitedTypes)?void 0:e.has(i)))&&(!(8&t.flags)||Ls(a,t.enclosingDeclaration))}}function T(e,n){var r,i;const a=e.id,o=16&YE(e)&&e.symbol&&32&e.symbol.flags,c=4&YE(e)&&e.node?"N"+ZG(e.node):16777216&e.flags?"N"+ZG(e.root.node):e.symbol?(o?"+":"")+eB(e.symbol):void 0;t.visitedTypes||(t.visitedTypes=new Set),c&&!t.symbolDepth&&(t.symbolDepth=new Map);const l=t.enclosingDeclaration&&Ra(t.enclosingDeclaration),d=`${Eg(e)}|${t.flags}`;l&&(l.serializedTypes||(l.serializedTypes=new Map));const u=null==(r=null==l?void 0:l.serializedTypes)?void 0:r.get(d);if(u)return u.truncating&&(t.truncating=!0),t.approximateLength+=u.addedLength,h(u.node);let _;if(c){if(_=t.symbolDepth.get(c)||0,_>10)return s(t);t.symbolDepth.set(c,_+1)}t.visitedTypes.add(a);const p=t.approximateLength,f=n(e),m=t.approximateLength-p;return t.reportedDiagnostic||t.encounteredError||null==(i=null==l?void 0:l.serializedTypes)||i.set(d,{node:f,truncating:t.truncating,addedLength:m}),t.visitedTypes.delete(a),c&&t.symbolDepth.set(c,_),f;function h(e){return $y(e)||Fc(e)!==e?VN(gA.cloneNode(EB(e,h,UV,g)),e):e}function g(e,n,t,r,i){return e&&0===e.length?VN(gA.createNodeArray(void 0,e.hasTrailingComma),e):_B(e,n,t,r,i)}}function x(e){if(m_(e)||e.containsError)return b(e);const n=h_(e);if(!n.properties.length&&!n.indexInfos.length){if(!n.callSignatures.length&&!n.constructSignatures.length)return t.approximateLength+=2,jA(gA.createTypeLiteralNode(void 0),1);if(1===n.callSignatures.length&&!n.constructSignatures.length){return _(n.callSignatures[0],181,t)}if(1===n.constructSignatures.length&&!n.callSignatures.length){return _(n.constructSignatures[0],182,t)}}const r=j(n.constructSignatures,(e=>!!(4&e.flags)));if(ce(r)){const e=W(r,Jp);return n.callSignatures.length+(n.constructSignatures.length-r.length)+n.indexInfos.length+(2048&t.flags?V(n.properties,(e=>!(4194304&e.flags))):S(n.properties))&&e.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;const n=j(e.constructSignatures,(e=>!(4&e.flags)));if(e.constructSignatures===n)return e;const t=vs(e.symbol,e.members,e.callSignatures,ce(n)?n:i,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=t,t.objectTypeWithoutAbstractConstructSignatures=t,t}(n)),a(hy(e),t)}const o=t.flags;t.flags|=4194304;const s=N(n);t.flags=o;const c=gA.createTypeLiteralNode(s);return t.approximateLength+=2,jA(c,1024&t.flags?0:1),c}function L(e){let n=bf(e);if(e.target===qt||e.target===Jt){if(2&t.flags){const r=a(n[0],t);return gA.createTypeReferenceNode(e.target===qt?"Array":"ReadonlyArray",[r])}const r=a(n[0],t),i=gA.createArrayTypeNode(r);return e.target===qt?i:gA.createTypeOperatorNode(146,i)}if(!(8&e.target.objectFlags)){if(2048&t.flags&&e.symbol.valueDeclaration&&Fd(e.symbol.valueDeclaration)&&!Ls(e.symbol,t.enclosingDeclaration))return E(e);{const r=e.target.outerTypeParameters;let a,o,s=0;if(r){const e=r.length;for(;s<e;){const i=s,o=af(r[s]);do{s++}while(s<e&&af(r[s])===o);if(!Ne(r,n,i,s)){const e=d(n.slice(i,s),t),r=t.flags;t.flags|=16;const c=I(o,t,788968,e);t.flags=r,a=a?C(a,c):c}}}if(n.length>0){const r=(e.target.typeParameters||i).length;o=d(n.slice(s,r),t)}const c=t.flags;t.flags|=16;const l=I(e.symbol,t,788968,o);return t.flags=c,a?C(a,l):l}}if(n=q(n,((n,t)=>oS(n,!!(2&e.target.elementFlags[t])))),n.length>0){const r=Ef(e),i=d(n.slice(0,r),t);if(i){if(e.target.labeledElementDeclarations)for(let t=0;t<i.length;t++){const n=e.target.elementFlags[t];i[t]=gA.createNamedTupleMember(12&n?gA.createToken(25):void 0,gA.createIdentifier(Bc(gD(e.target.labeledElementDeclarations[t]))),2&n?gA.createToken(57):void 0,4&n?gA.createArrayTypeNode(i[t]):i[t])}else for(let t=0;t<Math.min(r,i.length);t++){const n=e.target.elementFlags[t];i[t]=12&n?gA.createRestTypeNode(4&n?gA.createArrayTypeNode(i[t]):i[t]):2&n?gA.createOptionalTypeNode(i[t]):i[t]}const n=jA(gA.createTupleTypeNode(i),1);return e.target.readonly?gA.createTypeOperatorNode(146,n):n}}if(t.encounteredError||524288&t.flags){const n=jA(gA.createTupleTypeNode([]),1);return e.target.readonly?gA.createTypeOperatorNode(146,n):n}t.encounteredError=!0}function C(e,n){if(Ck(e)){let t=e.typeArguments,r=e.qualifier;r&&(IC(r)?t!==bL(r)&&(r=vL(gA.cloneNode(r),t)):t!==bL(r.right)&&(r=gA.updateQualifiedName(r,r.left,vL(gA.cloneNode(r.right),t)))),t=n.typeArguments;const i=w(n);for(const e of i)r=r?gA.createQualifiedName(r,e):e;return gA.updateImportTypeNode(e,e.argument,e.assertions,r,t,e.isTypeOf)}{let t=e.typeArguments,r=e.typeName;IC(r)?t!==bL(r)&&(r=vL(gA.cloneNode(r),t)):t!==bL(r.right)&&(r=gA.updateQualifiedName(r,r.left,vL(gA.cloneNode(r.right),t))),t=n.typeArguments;const i=w(n);for(const e of i)r=gA.createQualifiedName(r,e);return gA.updateTypeReferenceNode(e,r,t)}}function w(e){let n=e.typeName;const t=[];for(;!IC(n);)t.unshift(n.right),n=n.left;return t.unshift(n),t}function N(e){if(r(t))return[gA.createPropertySignature(void 0,"...",void 0,void 0)];const n=[];for(const r of e.callSignatures)n.push(_(r,176,t));for(const r of e.constructSignatures)4&r.flags||n.push(_(r,177,t));for(const r of e.indexInfos)n.push(u(r,t,1024&e.objectFlags?s(t):void 0));const i=e.properties;if(!i)return n;let a=0;for(const o of i){if(a++,2048&t.flags){if(4194304&o.flags)continue;24&GE(o)&&t.tracker.reportPrivateInBaseOfClassExpression&&t.tracker.reportPrivateInBaseOfClassExpression(Bc(o.escapedName))}if(r(t)&&a+2<i.length-1){n.push(gA.createPropertySignature(void 0,`... ${i.length-a} more ...`,void 0,void 0)),l(i[i.length-1],t,n);break}l(o,t,n)}return n.length?n:void 0}}(e,t);return t.flags=c,f}function s(e){return e.approximateLength+=3,1&e.flags?gA.createKeywordTypeNode(131):gA.createTypeReferenceNode(gA.createIdentifier("..."),void 0)}function c(e,n){var t;return!!(8192&FE(e))&&(G(n.reverseMappedStack,e)||(null==(t=n.reverseMappedStack)?void 0:t[0])&&!(16&YE(Ge(n.reverseMappedStack).links.propertyType)))}function l(e,n,t){var r;const i=!!(8192&FE(e)),a=c(e,n)?un:Cl(e),o=n.enclosingDeclaration;if(n.enclosingDeclaration=void 0,n.tracker.canTrackSymbol&&Hd(e.escapedName))if(e.declarations){const t=Me(e.declarations);if(Kd(t))if(Yk(t)){const e=Xc(t);e&&Pk(e)&&Yb(e.argumentExpression)&&h(e.argumentExpression,o,n)}else h(t.name.expression,o,n)}else n.tracker.reportNonSerializableProperty(Gs(e));n.enclosingDeclaration=e.valueDeclaration||(null==(r=e.declarations)?void 0:r[0])||o;const l=U(e,n);n.enclosingDeclaration=o,n.approximateLength+=jc(e).length+1;const d=16777216&e.flags?gA.createToken(57):void 0;if(8208&e.flags&&!g_(a).length&&!uO(e)){const e=Y_(PL(a,(e=>!(32768&e.flags))),0);for(const r of e){const e=_(r,170,n,{name:l,questionToken:d});t.push(u(e))}}else{let r;c(e,n)?r=s(n):(i&&(n.reverseMappedStack||(n.reverseMappedStack=[]),n.reverseMappedStack.push(e)),r=a?J(n,a,e,o):gA.createKeywordTypeNode(131),i&&n.reverseMappedStack.pop());const _=uO(e)?[gA.createToken(146)]:void 0;_&&(n.approximateLength+=9);const p=gA.createPropertySignature(_,l,d,r);t.push(u(p))}function u(n){var t;if(ce(e.declarations,(e=>351===e.kind))){const r=Ol((null==(t=e.declarations)?void 0:t.find((e=>351===e.kind))).comment);r&&nL(n,[{kind:3,text:"*\n * "+r.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else e.valueDeclaration&&ZA(n,e.valueDeclaration);return n}}function d(e,n,t){if(ce(e)){if(r(n)){if(!t)return[gA.createTypeReferenceNode("...",void 0)];if(e.length>2)return[a(e[0],n),gA.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),a(e[e.length-1],n)]}const i=!(64&n.flags)?fn():void 0,o=[];let s=0;for(const t of e){if(s++,r(n)&&s+2<e.length-1){o.push(gA.createTypeReferenceNode(`... ${e.length-s} more ...`,void 0));const t=a(e[e.length-1],n);t&&o.push(t);break}n.approximateLength+=2;const c=a(t,n);c&&(o.push(c),i&&bS(c)&&i.add(c.typeName.escapedText,[t,o.length-1]))}if(i){const e=n.flags;n.flags|=64,i.forEach((e=>{if(!ES(e,(([e],[n])=>function(e,n){return e===n||!!e.symbol&&e.symbol===n.symbol||!!e.aliasSymbol&&e.aliasSymbol===n.aliasSymbol}(e,n))))for(const[t,r]of e)o[r]=a(t,n)})),n.flags=e}return o}}function u(e,n,t){const r=jf(e)||"x",i=a(e.keyType,n),o=gA.createParameterDeclaration(void 0,void 0,r,void 0,i,void 0);return t||(t=a(e.type||un,n)),e.type||2097152&n.flags||(n.encounteredError=!0),n.approximateLength+=r.length+4,gA.createIndexSignature(e.isReadonly?[gA.createToken(146)]:void 0,[o],t)}function _(e,n,t,r){var o,s,c,l,d;const u=256&t.flags;let _,p;u&&(t.flags&=-257),t.approximateLength+=3,32&t.flags&&e.target&&e.mapper&&e.target.typeParameters?p=e.target.typeParameters.map((n=>a(AE(n,e.mapper),t))):_=e.typeParameters&&e.typeParameters.map((e=>f(e,t)));const h=uu(e,!0)[0];let g;if(t.enclosingDeclaration&&e.declaration&&e.declaration!==t.enclosingDeclaration&&!Ih(e.declaration)&&ce(h)){const e=Ra(t.enclosingDeclaration).fakeScopeForSignatureDeclaration?t.enclosingDeclaration:void 0;Nt.assertOptionalNode(e,pI);const n=null!=(o=null==e?void 0:e.locals)?o:dp();let r;for(const t of h)n.has(t.escapedName)||(r=Te(r,t.escapedName),n.set(t.escapedName,t));if(r){let a=function(){A(r,(e=>n.delete(e)))};if(e)g=a;else{const e=YN.createBlock(i);Ra(e).fakeScopeForSignatureDeclaration=!0,e.locals=n;const r=t.enclosingDeclaration;CS(e,r),t.enclosingDeclaration=e,g=()=>{t.enclosingDeclaration=r,a()}}}}const y=(ce(h,(e=>e!==h[h.length-1]&&!!(32768&FE(e))))?e.parameters:h).map((e=>m(e,t,173===n,null==r?void 0:r.privateSymbolVisitor,null==r?void 0:r.bundledImports))),v=33554432&t.flags?void 0:function(e,n){if(e.thisParameter)return m(e.thisParameter,n);if(e.declaration&&Ih(e.declaration)){const t=El(e.declaration);if(t&&t.typeExpression)return gA.createParameterDeclaration(void 0,void 0,"this",void 0,a(Fb(t.typeExpression),n))}}(e,t);let b;v&&y.unshift(v);const E=Ip(e);if(E){const e=2===E.kind||3===E.kind?gA.createToken(129):void 0,n=1===E.kind||3===E.kind?jA(gA.createIdentifier(E.parameterName),33554432):gA.createThisTypeNode(),r=E.type&&a(E.type,t);b=gA.createTypePredicateNode(e,n,r)}else{const n=Rp(e);!n||u&&uc(n)?u||(b=gA.createKeywordTypeNode(131)):b=function(e,n,t,r,i){if(!_c(n)&&e.enclosingDeclaration){const a=t.declaration&&eb(t.declaration),o=z(e.enclosingDeclaration);if(Mc(a,(e=>e===o))&&a){const o=Fb(a);if((262144&o.flags&&o.isThisType?AE(o,t.mapper):o)===n&&K(a,n)){const n=$(e,a,r,i);if(n)return n}}}return a(n,e)}(t,n,e,null==r?void 0:r.privateSymbolVisitor,null==r?void 0:r.bundledImports)}let T=null==r?void 0:r.modifiers;if(182===n&&4&e.flags){const e=Nb(T);T=gA.createModifiersFromModifierFlags(256|e)}const x=176===n?gA.createCallSignature(_,y,b):177===n?gA.createConstructSignature(_,y,b):170===n?gA.createMethodSignature(T,null!=(s=null==r?void 0:r.name)?s:gA.createIdentifier(""),null==r?void 0:r.questionToken,_,y,b):171===n?gA.createMethodDeclaration(T,void 0,null!=(c=null==r?void 0:r.name)?c:gA.createIdentifier(""),void 0,_,y,b,void 0):173===n?gA.createConstructorDeclaration(T,y,void 0):174===n?gA.createGetAccessorDeclaration(T,null!=(l=null==r?void 0:r.name)?l:gA.createIdentifier(""),y,b,void 0):175===n?gA.createSetAccessorDeclaration(T,null!=(d=null==r?void 0:r.name)?d:gA.createIdentifier(""),y,void 0):178===n?gA.createIndexSignature(T,y,b):320===n?gA.createJSDocFunctionType(y,b):181===n?gA.createFunctionTypeNode(_,y,null!=b?b:gA.createTypeReferenceNode(gA.createIdentifier(""))):182===n?gA.createConstructorTypeNode(T,_,y,null!=b?b:gA.createTypeReferenceNode(gA.createIdentifier(""))):259===n?gA.createFunctionDeclaration(T,void 0,(null==r?void 0:r.name)?Tn(r.name,IC):gA.createIdentifier(""),_,y,b,void 0):215===n?gA.createFunctionExpression(T,void 0,(null==r?void 0:r.name)?Tn(r.name,IC):gA.createIdentifier(""),_,y,b,gA.createBlock([])):216===n?gA.createArrowFunction(T,_,y,b,void 0,gA.createBlock([])):Nt.assertNever(n);return p&&(x.typeArguments=gA.createNodeArray(p)),null==g||g(),x}function p(e,n,t){const r=n.flags;n.flags&=-513;const i=gA.createModifiersFromModifierFlags(YT(e)),o=R(e,n),s=D_(e),c=s&&a(s,n);return n.flags=r,gA.createTypeParameterDeclaration(i,o,t,c)}function f(e,n,t=T_(e)){return p(e,n,t&&a(t,n))}function m(e,n,t,r,i){let a=cp(e,166);a||up(e)||(a=cp(e,344));let o=Sl(e);a&&MG(a)&&(o=$x(o));const s=J(n,o,e,n.enclosingDeclaration,r,i),c=!(8192&n.flags)&&t&&a&&jN(a)?W(Qc(a),gA.cloneNode):void 0,l=a&&l_(a)||32768&FE(e)?gA.createToken(25):void 0,d=a&&a.name?79===a.name.kind?jA(gA.cloneNode(a.name),33554432):163===a.name.kind?jA(gA.cloneNode(a.name.right),33554432):function e(t){n.tracker.canTrackSymbol&&WC(t)&&jd(t)&&h(t.expression,n.enclosingDeclaration,n);let r=EB(t,e,UV,void 0,e);return Nk(r)&&(r=gA.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),$y(r)||(r=gA.cloneNode(r)),jA(r,33554433)}(a.name):jc(e);const u=a&&fp(a)||16384&FE(e)?gA.createToken(57):void 0,_=gA.createParameterDeclaration(c,l,d,u,s,void 0);return n.approximateLength+=jc(e).length+3,_}function h(e,n,t){if(!t.tracker.canTrackSymbol)return;const r=Jb(e),i=Fa(r,r.escapedText,1160127,void 0,void 0,!0);i&&t.tracker.trackSymbol(i,n,111551)}function g(e,n,t,r){return n.tracker.trackSymbol(e,n.enclosingDeclaration,t),y(e,n,t,r)}function y(e,n,t,r){let i;return 262144&e.flags||!(n.enclosingDeclaration||64&n.flags)||134217728&n.flags?i=[e]:(i=Nt.checkDefined(function e(t,i,a){let o,s=Ts(t,n.enclosingDeclaration,i,!!(128&n.flags));if(!s||xs(s[0],n.enclosingDeclaration,1===s.length?i:Es(i))){const r=ns(s?s[0]:t,n.enclosingDeclaration,i);if(S(r)){o=r.map((e=>ce(e.declarations,Ms)?T(e,n):void 0));const a=r.map(((e,n)=>n));a.sort(c);const l=a.map((e=>r[e]));for(const n of l){const r=e(n,Es(i),!1);if(r){if(n.exports&&n.exports.get("export=")&&is(n.exports.get("export="),t)){s=r;break}s=r.concat(s||[rs(n,t)||t]);break}}}}if(s)return s;if(a||!(6144&t.flags)){if(!a&&!r&&A(t.declarations,Ms))return;return[t]}function c(e,n){const t=o[e],r=o[n];if(t&&r){const e=ro(r);return ro(t)===e?yG(t)-yG(r):e?-1:1}return 0}}(e,t,!0)),Nt.assert(i&&i.length>0)),i}function v(e,n){let t;return 524384&hF(e).flags&&(t=gA.createNodeArray(W(Ul(e),(e=>f(e,n))))),t}function b(e,n,t){var r;Nt.assert(e&&0<=n&&n<e.length);const i=e[n],a=eB(i);if(null==(r=t.typeParameterSymbolList)?void 0:r.has(a))return;let o;if((t.typeParameterSymbolList||(t.typeParameterSymbolList=new Set)).add(a),512&t.flags&&n<e.length-1){const r=i,a=e[n+1];if(1&FE(a)){const e=function(e){return de(Bl(e),Ul(e))}(2097152&r.flags?To(r):r);o=d(W(e,(e=>oE(e,a.links.mapper))),t)}else o=v(i,t)}return o}function E(e){return Sk(e.objectType)?E(e.objectType):e}function T(e,n,t){let r=cp(e,308);if(!r){const n=C(e.declarations,(n=>ts(n,e)));n&&(r=cp(n,308))}if(r&&void 0!==r.moduleName)return r.moduleName;if(!r){if(n.tracker.trackReferencedAmbientModule){const t=j(e.declarations,yf);if(S(t))for(const r of t)n.tracker.trackReferencedAmbientModule(r,e)}if(PG.test(e.escapedName))return e.escapedName.substring(1,e.escapedName.length-1)}if(!n.enclosingDeclaration||!n.tracker.moduleResolverHost)return PG.test(e.escapedName)?e.escapedName.substring(1,e.escapedName.length-1):Dp(Cf(e)).fileName;const i=Dp(Oc(n.enclosingDeclaration)),a=t||(null==i?void 0:i.impliedNodeFormat),o=GP(i.path,a),s=wa(e);let c=s.specifierCache&&s.specifierCache.get(o);if(!c){const r=!!Nv(x),{moduleResolverHost:l}=n.tracker,d=r?{...x,baseUrl:l.getCommonSourceDirectory()}:x;c=Me(fG(e,ve,d,i,l,{importModuleSpecifierPreference:r?"non-relative":"project-relative",importModuleSpecifierEnding:r?"minimal":99===a?"js":void 0},{overrideImportMode:t})),null!=s.specifierCache||(s.specifierCache=new Map),s.specifierCache.set(o,c)}return c}function k(e){const n=gA.createIdentifier(Bc(e.escapedName));return e.parent?gA.createQualifiedName(k(e.parent),n):n}function I(e,n,t,r){var i,a,o,s;const c=g(e,n,t,!(16384&n.flags)),l=111551===t;if(ce(c[0].declarations,Ms)){const e=c.length>1?u(c,c.length-1,1):void 0,t=r||b(c,0,n),d=Dp(Oc(n.enclosingDeclaration)),_=Op(c[0]);let p,f;if(3!==zT(x)&&99!==zT(x)||99===(null==_?void 0:_.impliedNodeFormat)&&_.impliedNodeFormat!==(null==d?void 0:d.impliedNodeFormat)&&(p=T(c[0],n,99),f=gA.createImportTypeAssertionContainer(gA.createAssertClause(gA.createNodeArray([gA.createAssertEntry(gA.createStringLiteral("resolution-mode"),gA.createStringLiteral("import"))]))),null==(a=(i=n.tracker).reportImportTypeNodeResolutionModeOverride)||a.call(i)),p||(p=T(c[0],n)),!(67108864&n.flags)&&1!==zT(x)&&p.indexOf("/node_modules/")>=0){const e=p;if(3===zT(x)||99===zT(x)){const t=99===(null==d?void 0:d.impliedNodeFormat)?1:99;p=T(c[0],n,t),p.indexOf("/node_modules/")>=0?p=e:(f=gA.createImportTypeAssertionContainer(gA.createAssertClause(gA.createNodeArray([gA.createAssertEntry(gA.createStringLiteral("resolution-mode"),gA.createStringLiteral(99===t?"import":"require"))]))),null==(s=(o=n.tracker).reportImportTypeNodeResolutionModeOverride)||s.call(o))}f||(n.encounteredError=!0,n.tracker.reportLikelyUnsafeImportRequiredError&&n.tracker.reportLikelyUnsafeImportRequiredError(e))}const m=gA.createLiteralTypeNode(gA.createStringLiteral(p));if(n.tracker.trackExternalModuleSymbolOfImportTypeNode&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(c[0]),n.approximateLength+=p.length+10,!e||Ld(e)){if(e){vL(IC(e)?e:e.right,void 0)}return gA.createImportTypeNode(m,f,e,t,l)}{const n=E(e),r=n.objectType.typeName;return gA.createIndexedAccessTypeNode(gA.createImportTypeNode(m,f,r,t,l),n.indexType)}}const d=u(c,c.length-1,0);if(Sk(d))return d;if(l)return gA.createTypeQueryNode(d);{const e=IC(d)?d:d.right,n=bL(e);return vL(e,void 0),gA.createTypeReferenceNode(d,n)}function u(e,t,i){const a=t===e.length-1?r:b(e,t,n),o=e[t],s=e[t-1];let c;if(0===t)n.flags|=16777216,c=Qs(o,n),n.approximateLength+=(c?c.length:0)+1,n.flags^=16777216;else if(s&&qo(s)){gp(qo(s),((e,n)=>{if(is(e,o)&&!Hd(n)&&"export="!==n)return c=Bc(n),!0}))}if(void 0===c){const r=C(o.declarations,Xc);if(r&&WC(r)&&Ld(r.expression)){const n=u(e,t-1,i);return Ld(n)?gA.createIndexedAccessTypeNode(gA.createParenthesizedType(gA.createTypeQueryNode(n)),gA.createTypeQueryNode(r.expression)):n}c=Qs(o,n)}if(n.approximateLength+=c.length+1,!(16&n.flags)&&s&&Zd(s)&&Zd(s).get(o.escapedName)&&is(Zd(s).get(o.escapedName),o)){const n=u(e,t-1,i);return Sk(n)?gA.createIndexedAccessTypeNode(n,gA.createLiteralTypeNode(gA.createStringLiteral(c))):gA.createIndexedAccessTypeNode(gA.createTypeReferenceNode(n,a),gA.createLiteralTypeNode(gA.createStringLiteral(c)))}const l=jA(gA.createIdentifier(c),33554432);if(a&&vL(l,gA.createNodeArray(a)),l.symbol=o,t>i){const n=u(e,t-1,i);return Ld(n)?gA.createQualifiedName(n,l):Nt.fail("Impossible construct - an export of an indexed access cannot be reachable")}return l}}function w(e,n,t){const r=Fa(n.enclosingDeclaration,e,788968,void 0,e,!1);return!!r&&!(262144&r.flags&&r===t.symbol)}function R(e,n){var t,r;if(4&n.flags&&n.typeParameterNames){const t=n.typeParameterNames.get(Eg(e));if(t)return t}let i=O(e.symbol,n,788968,!0);if(!(79&i.kind))return gA.createIdentifier("(Missing type parameter)");if(4&n.flags){const a=i.escapedText;let o=(null==(t=n.typeParameterNamesByTextNextNameCount)?void 0:t.get(a))||0,s=a;for(;(null==(r=n.typeParameterNamesByText)?void 0:r.has(s))||w(s,n,e);)o++,s=`${a}_${o}`;if(s!==a){const e=bL(i);i=gA.createIdentifier(s),vL(i,e)}(n.typeParameterNamesByTextNextNameCount||(n.typeParameterNamesByTextNextNameCount=new Map)).set(a,o),(n.typeParameterNames||(n.typeParameterNames=new Map)).set(Eg(e),i),(n.typeParameterNamesByText||(n.typeParameterNamesByText=new Set)).add(a)}return i}function O(e,n,t,r){const i=g(e,n,t);return!r||1===i.length||n.encounteredError||65536&n.flags||(n.encounteredError=!0),function e(t,r){const i=b(t,r,n),a=t[r];0===r&&(n.flags|=16777216);const o=Qs(a,n);0===r&&(n.flags^=16777216);const s=jA(gA.createIdentifier(o),33554432);i&&vL(s,gA.createNodeArray(i));return s.symbol=a,r>0?gA.createQualifiedName(e(t,r-1),s):s}(i,i.length-1)}function P(e,n,t){const r=g(e,n,t);return function e(t,r){const i=b(t,r,n),a=t[r];0===r&&(n.flags|=16777216);let o=Qs(a,n);0===r&&(n.flags^=16777216);let s=o.charCodeAt(0);if(Uh(s)&&ce(a.declarations,Ms))return gA.createStringLiteral(T(a,n));if(0===r||XS(o,L)){const n=jA(gA.createIdentifier(o),33554432);return i&&vL(n,gA.createNodeArray(i)),n.symbol=a,r>0?gA.createPropertyAccessExpression(e(t,r-1),n):n}{let n;if(91===s&&(o=o.substring(1,o.length-1),s=o.charCodeAt(0)),!Uh(s)||8&a.flags?""+ +o===o&&(n=gA.createNumericLiteral(+o)):n=gA.createStringLiteral(fv(o).replace(/\\./g,(e=>e.substring(1))),39===s),!n){const e=jA(gA.createIdentifier(o),33554432);i&&vL(e,gA.createNodeArray(i)),e.symbol=a,n=e}return gA.createElementAccessExpression(e(t,r-1),n)}}(r,r.length-1)}function F(e){const n=Xc(e);return!!n&&_C(n)}function B(e){const n=Xc(e);return!!(n&&_C(n)&&(n.singleQuote||!$y(n)&&pt(sf(n,!1),"'")))}function U(e,n){const t=!!S(e.declarations)&&N(e.declarations,F),r=!!S(e.declarations)&&N(e.declarations,B),i=function(e,n,t,r){const i=wa(e).nameType;if(i){if(384&i.flags){const e=""+i.value;return Js(e,HT(x))||!r&&VS(e)?VS(e)&&pt(e,"-")?gA.createComputedPropertyName(gA.createNumericLiteral(+e)):jS(e,HT(x)):gA.createStringLiteral(e,!!t)}if(8192&i.flags)return gA.createComputedPropertyName(P(i.symbol,n,111551))}}(e,n,r,t);if(i)return i;return jS(Bc(e.escapedName),HT(x),r,t)}function H(e,n){return e.declarations&&D(e.declarations,(e=>!!Qv(e)&&(!n||!!Mc(e,(e=>e===n)))))}function K(e,n){return!(4&YE(n))||!sk(e)||S(e.typeArguments)>=hp(n.target.typeParameters)}function z(e){return Ra(e).fakeScopeForSignatureDeclaration?e.parent:e}function J(e,n,t,r,i,o){if(!_c(n)&&r){const a=H(t,z(r));if(a&&!Rd(a)&&!nk(a)){const t=Qv(a);if(function(e,n,t){const r=Fb(e);if(r===t)return!0;if(qC(n)&&n.questionToken)return uL(t,524288)===r;return!1}(t,a,n)&&K(t,n)){const n=$(e,t,i,o);if(n)return n}}}const s=e.flags;8192&n.flags&&n.symbol===t&&(!e.enclosingDeclaration||ce(t.declarations,(n=>Dp(n)===Dp(e.enclosingDeclaration))))&&(e.flags|=1048576);const c=a(n,e);return e.flags=s,c}function Y(e,n,t){let r=!1;const i=Jb(e);if(Ih(e)&&($h(i)||Zh(i.parent)||KC(i.parent)&&Qh(i.parent.left)&&$h(i.parent.right)))return r=!0,{introducesError:r,node:e};const a=No(i,67108863,!0,!0);if(a&&(0!==ws(a,n.enclosingDeclaration,67108863,!1).accessibility?r=!0:(n.tracker.trackSymbol(a,n.enclosingDeclaration,67108863),null==t||t(a)),IC(e))){const t=hd(a),i=262144&a.flags&&!As(t.symbol,n.enclosingDeclaration)?R(t,n):gA.cloneNode(e);return i.symbol=a,{introducesError:r,node:jA(FA(i,e),33554432)}}return{introducesError:r,node:e}}function $(t,r,i,o){n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();let s=!1;const c=Dp(r),l=uB(r,(function n(r){if(Gw(r)||322===r.kind)return gA.createKeywordTypeNode(131);if(Bw(r))return gA.createKeywordTypeNode(157);if(Uw(r))return gA.createUnionTypeNode([uB(r.type,n,zd),gA.createLiteralTypeNode(gA.createNull())]);if(jw(r))return gA.createUnionTypeNode([uB(r.type,n,zd),gA.createKeywordTypeNode(155)]);if(Vw(r))return uB(r.type,n);if(Kw(r))return gA.createArrayTypeNode(uB(r.type,n,zd));if(qw(r))return gA.createTypeLiteralNode(W(r.jsDocPropertyTags,(e=>{const i=IC(e.name)?e.name:e.name.right,o=dc(Fb(r),i.escapedText),s=o&&e.typeExpression&&Fb(e.typeExpression.type)!==o?a(o,t):void 0;return gA.createPropertySignature(void 0,i,e.isBracketed||e.typeExpression&&jw(e.typeExpression.type)?gA.createToken(57):void 0,s||e.typeExpression&&uB(e.typeExpression.type,n,zd)||gA.createKeywordTypeNode(131))})));if(sk(r)&&IC(r.typeName)&&""===r.typeName.escapedText)return FA(gA.createKeywordTypeNode(131),r);if((rI(r)||sk(r))&&Dh(r))return gA.createTypeLiteralNode([gA.createIndexSignature(void 0,[gA.createParameterDeclaration(void 0,void 0,"x",void 0,uB(r.typeArguments[0],n,zd))],uB(r.typeArguments[1],n,zd))]);if(Hw(r)){if(Sg(r)){let e;return gA.createConstructorTypeNode(void 0,_B(r.typeParameters,n,zC),ee(r.parameters,((t,r)=>t.name&&IC(t.name)&&"new"===t.name.escapedText?void(e=t.type):gA.createParameterDeclaration(void 0,l(t),d(t,r),t.questionToken,uB(t.type,n,zd),void 0))),uB(e||r.type,n,zd)||gA.createKeywordTypeNode(131))}return gA.createFunctionTypeNode(_B(r.typeParameters,n,zC),W(r.parameters,((e,t)=>gA.createParameterDeclaration(void 0,l(e),d(e,t),e.questionToken,uB(e.type,n,zd),void 0))),uB(r.type,n,zd)||gA.createKeywordTypeNode(131))}if(sk(r)&&Nh(r)&&(!K(r,Fb(r))||tm(r)||on===Df(r,788968,!0)))return FA(a(Fb(r),t),r);if(mm(r)){const i=Ra(r).resolvedSymbol;return!Nh(r)||!i||(r.isTypeOf||788968&i.flags)&&S(r.typeArguments)>=hp(Ul(i))?gA.updateImportTypeNode(r,gA.updateLiteralTypeNode(r.argument,function(n,r){if(o){if(t.tracker&&t.tracker.moduleResolverHost){const r=xB(n);if(r){const n=xv({getCanonicalFileName:lt(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>t.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>t.tracker.moduleResolverHost.getCommonSourceDirectory()},r);return gA.createStringLiteral(n)}}}else if(t.tracker&&t.tracker.trackExternalModuleSymbolOfImportTypeNode){const e=Po(r,r,void 0);e&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(e)}return r}(r,r.argument.literal)),r.assertions,r.qualifier,_B(r.typeArguments,n,zd),r.isTypeOf):FA(a(Fb(r),t),r)}if(Ld(r)||qb(r)){const{introducesError:e,node:n}=Y(r,t,i);if(s=s||e,n!==r)return n}c&&pk(r)&&Ss(c,r.pos).line===Ss(c,r.end).line&&jA(r,1);return EB(r,n,UV);function l(e){return e.dotDotDotToken||(e.type&&Kw(e.type)?gA.createToken(25):void 0)}function d(e,n){return e.name&&IC(e.name)&&"this"===e.name.escapedText?"this":l(e)?"args":`arg${n}`}}),zd);if(!s)return l===r?VN(gA.cloneNode(r),r):l}}(),le=dp(),ue=va(4,"undefined");ue.declarations=[];var fe=va(1536,"globalThis",8);fe.exports=le,fe.declarations=[],le.set(fe.escapedName,fe);var me,he=va(4,"arguments"),ge=va(4,"require"),ye=x.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules";const ve={getNodeCount:()=>We(e.getSourceFiles(),((e,n)=>e+n.nodeCount),0),getIdentifierCount:()=>We(e.getSourceFiles(),((e,n)=>e+n.identifierCount),0),getSymbolCount:()=>We(e.getSourceFiles(),((e,n)=>e+n.symbolCount),m),getTypeCount:()=>f,getInstantiationCount:()=>h,getRelationCacheSizes:()=>({assignable:Zi.size,identity:na.size,subtype:$i.size,strictSubtype:Qi.size}),isUndefinedSymbol:e=>e===ue,isArgumentsSymbol:e=>e===he,isUnknownSymbol:e=>e===on,getMergedSymbol:$o,getDiagnostics:tG,getGlobalDiagnostics:function(){return rG(),Ji.getGlobalDiagnostics()},getRecursionIdentity:_x,getUnmatchedProperties:hA,getTypeOfSymbolAtLocation:(e,n)=>{const t=Fc(n);return t?function(e,n){if(e=as(e),(79===n.kind||80===n.kind)&&(Zb(n)&&(n=n.parent),vh(n)&&(!zg(n)||jE(n)))){const t=YO(n);if(as(Ra(n).resolvedSymbol)===e)return t}if(ry(n)&&$u(n.parent)&&dl(n.parent))return pl(n.parent.symbol);return Cl(e)}(e,t):mn},getTypeOfSymbol:Sl,getSymbolsOfParameterPropertyDeclaration:(e,n)=>{const t=Fc(e,qC);return void 0===t?Nt.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(Nt.assert(Ac(t,t.parent)),function(e,n){const t=e.parent,r=e.parent.parent,i=Da(t.locals,n,111551),a=Da(Zd(r.symbol),n,111551);if(i&&a)return[i,a];return Nt.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(t,Gc(n)))},getDeclaredTypeOfSymbol:hd,getPropertiesOfType:b_,getPropertyOfType:(e,n)=>J_(e,Gc(n)),getPrivateIdentifierPropertyOfType:(e,n,t)=>{const r=Fc(t);if(!r)return;const i=yR(Gc(n),r);return i?ER(e,i):void 0},getTypeOfPropertyOfType:(e,n)=>dc(e,Gc(n)),getIndexInfoOfType:(e,n)=>tp(e,0===n?Dn:On),getIndexInfosOfType:np,getIndexInfosOfIndexSymbol:Zp,getSignaturesOfType:Y_,getIndexTypeOfType:(e,n)=>rp(e,0===n?Dn:On),getIndexType:e=>Hy(e),getBaseTypes:td,getBaseTypeOfLiteralType:Mx,getWidenedType:DS,getTypeFromTypeNode:e=>{const n=Fc(e,zd);return n?Fb(n):mn},getParameterType:TD,getParameterIdentifierNameAtPosition:function(e,n){var t;if(320===(null==(t=e.declaration)?void 0:t.kind))return;const r=e.parameters.length-(sB(e)?1:0);if(n<r){const t=e.parameters[n];return vD(t)?[t.escapedName,!1]:void 0}const i=e.parameters[r]||on;if(!vD(i))return;const a=Sl(i);if(Vx(a)){const e=a.target.labeledElementDeclarations,t=null==e?void 0:e[n-r],i=!!(null==t?void 0:t.dotDotDotToken);return t?[gD(t),i]:void 0}if(n===r)return[i.escapedName,!0];return},getPromisedTypeOfPromise:AM,getAwaitedType:e=>NM(e),getReturnTypeOfSignature:Rp,isNullableType:eR,getNullableType:Yx,getNonNullableType:Qx,getNonOptionalType:eS,getTypeArguments:bf,typeToTypeNode:se.typeToTypeNode,indexInfoToIndexSignatureDeclaration:se.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:se.signatureToSignatureDeclaration,symbolToEntityName:se.symbolToEntityName,symbolToExpression:se.symbolToExpression,symbolToNode:se.symbolToNode,symbolToTypeParameterDeclarations:se.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:se.symbolToParameterDeclaration,typeParameterToDeclaration:se.typeParameterToDeclaration,getSymbolsInScope:(e,n)=>{const t=Fc(e);return t?function(e,n){if(33554432&e.flags)return[];const t=dp();let r=!1;return i(),t.delete("this"),_p(t);function i(){for(;e;){switch(Du(e)&&e.locals&&!Na(e)&&o(e.locals,n),e.kind){case 308:if(!OD(e))break;case 264:s(Qo(e).exports,2623475&n);break;case 263:o(Qo(e).exports,8&n);break;case 228:e.name&&a(e.symbol,n);case 260:case 261:r||o(Zd(Qo(e)),788968&n);break;case 215:e.name&&a(e.symbol,n)}Mm(e)&&a(he,n),r=mb(e),e=e.parent}o(le,n)}function a(e,n){if(UE(e)&n){const n=e.escapedName;t.has(n)||t.set(n,e)}}function o(e,n){n&&e.forEach((e=>{a(e,n)}))}function s(e,n){n&&e.forEach((e=>{cp(e,278)||cp(e,277)||a(e,n)}))}}(t,n):[]},getSymbolAtLocation:e=>{const n=Fc(e);return n?_G(n,!0):void 0},getIndexInfosAtLocation:e=>{const n=Fc(e);return n?function(e){if(IC(e)&&Mk(e.parent)&&e.parent.name===e){const n=Ly(e),t=YO(e.parent.expression);return X(1048576&t.flags?t.types:[t],(e=>j(np(e),(e=>Z_(n,e.keyType)))))}return}(n):void 0},getShorthandAssignmentValueSymbol:e=>{const n=Fc(e);return n?function(e){if(e&&300===e.kind)return No(e.name,2208703);return}(n):void 0},getExportSpecifierLocalTargetSymbol:e=>{const n=Fc(e,tw);return n?function(e){return tw(e)?e.parent.parent.moduleSpecifier?_o(e.parent.parent,e):No(e.propertyName||e.name,2998271):No(e,2998271)}(n):void 0},getExportSymbolOfSymbol:e=>$o(e.exportSymbol||e),getTypeAtLocation:e=>{const n=Fc(e);return n?pG(n):mn},getTypeOfAssignmentPattern:e=>{const n=Fc(e,Xd);return n&&mG(n)||mn},getPropertySymbolOfDestructuringAssignment:e=>{const n=Fc(e,IC);return n?function(e){const n=mG(Tn(e.parent.parent,Xd));return n&&J_(n,e.escapedText)}(n):void 0},signatureToString:(e,n,t,r)=>Bs(e,Fc(n),t,r),typeToString:(e,n,t)=>Us(e,Fc(n),t),symbolToString:(e,n,t,r)=>Gs(e,Fc(n),t,r),typePredicateToString:(e,n,t)=>zs(e,Fc(n),t),writeSignature:(e,n,t,r,i)=>Bs(e,Fc(n),t,r,i),writeType:(e,n,t,r)=>Us(e,Fc(n),t,r),writeSymbol:(e,n,t,r,i)=>Gs(e,Fc(n),t,r,i),writeTypePredicate:(e,n,t,r)=>zs(e,Fc(n),t,r),getAugmentedPropertiesOfType:bG,getRootSymbols:function e(n){const t=function(e){if(6&FE(e))return ee(wa(e).containingType.types,(n=>J_(n,e.escapedName)));if(33554432&e.flags){const{links:{leftSpread:n,rightSpread:t,syntheticOrigin:r}}=e;return n?[n,t]:r?[r]:Et(function(e){let n,t=e;for(;t=wa(t).target;)n=t;return n}(e))}return}(n);return t?X(t,e):[n]},getSymbolOfExpando:$N,getContextualType:(e,n)=>{const t=Fc(e,mu);if(t)return 4&n?xe(t,(()=>Xk(t,n))):Xk(t,n)},getContextualTypeForObjectLiteralElement:e=>{const n=Fc(e,Wd);return n?vk(n,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,n)=>{const t=Fc(e,ou);return t&&VC(t,n)},getContextualTypeForJsxAttribute:e=>{const n=Fc(e,Ku);return n&&Ak(n,void 0)},isContextSensitive:wE,getTypeOfPropertyOfContextualType:gk,getFullyQualifiedName:Ro,getResolvedSignature:(e,n,t)=>Se(e,n,t,0),getResolvedSignatureForStringLiteralCompletions:(e,n,t)=>xe(n,(()=>Se(e,t,void 0,32))),getResolvedSignatureForSignatureHelp:(e,n,t)=>be(e,(()=>Se(e,n,t,16))),getExpandedParameters:uu,hasEffectiveRestParameter:ID,containsArgumentsReference:Ap,getConstantValue:e=>{const n=Fc(e,$G);return n?tB(n):void 0},isValidPropertyAccess:(e,n)=>{const t=Fc(e,iu);return!!t&&function(e,n){switch(e.kind){case 208:return jR(e,106===e.expression.kind,n,DS(ZO(e.expression)));case 163:return jR(e,!1,n,DS(ZO(e.left)));case 202:return jR(e,!1,n,Fb(e))}}(t,Gc(n))},isValidPropertyAccessForCompletions:(e,n,t)=>{const r=Fc(e,Mk);return!!r&&VR(r,n,t)},getSignatureFromDeclaration:e=>{const n=Fc(e,Id);return n?xp(n):void 0},isImplementationOfOverload:e=>{const n=Fc(e,Id);return n?OG(n):void 0},getImmediateAliasedSymbol:II,getAliasedSymbol:To,getEmitResolver:function(e,n){return tG(e,n),oe},getExportsOfModule:Ho,getExportsAndPropertiesOfModule:function(e){const n=Ho(e),t=Bo(e);if(t!==e){const e=Sl(t);zo(e)&&Ae(n,b_(e))}return n},forEachExportAndPropertyOfModule:function(e,n){Jo(e).forEach(((e,t)=>{fs(t)||n(e,t)}));const t=Bo(e);if(t!==e){const e=Sl(t);zo(e)&&function(e,n){e=B_(e),3670016&e.flags&&h_(e).members.forEach(((e,t)=>{gs(e,t)&&n(e,t)}))}(e,((e,t)=>{n(e,t)}))}},getSymbolWalker:aG((function(e){return Bp(e)||un}),Ip,Rp,td,h_,Sl,VA,T_,Jb,bf),getAmbientModules:function(){Ut||(Ut=[],le.forEach(((e,n)=>{PG.test(n)&&Ut.push(e)})));return Ut},getJsxIntrinsicTagNamesAt:function(e){const n=rw(XG.IntrinsicElements,e);return n?b_(n):i},isOptionalParameter:e=>{const n=Fc(e,qC);return!!n&&fp(n)},tryGetMemberInModuleExports:(e,n)=>Ko(Gc(e),n),tryGetMemberInModuleExportsAndProperties:(e,n)=>function(e,n){const t=Ko(e,n);if(t)return t;const r=Bo(n);if(r===n)return;const i=Sl(r);return zo(i)?J_(i,e):void 0}(Gc(e),n),tryFindAmbientModule:e=>pp(e,!0),tryFindAmbientModuleWithoutAugmentations:e=>pp(e,!1),getApparentType:G_,getUnionType:Pg,isTypeAssignableTo:WE,createAnonymousType:vs,createSignature:ru,createSymbol:va,createIndexInfo:$p,getAnyType:()=>un,getStringType:()=>Dn,getNumberType:()=>On,createPromiseType:$D,createArrayType:Mh,getElementTypeOfArrayType:Sx,getBooleanType:()=>Hn,getFalseType:e=>e?Fn:Gn,getTrueType:e=>e?Bn:Vn,getVoidType:()=>Wn,getUndefinedType:()=>An,getNullType:()=>wn,getESSymbolType:()=>Kn,getNeverType:()=>zn,getOptionalType:()=>In,getPromiseType:()=>Wm(!1),getPromiseLikeType:()=>zm(!1),getAsyncIterableType:()=>{const e=Ym(!1);if(e!==kt)return e},isSymbolAccessible:ws,isArrayType:bx,isTupleType:Vx,isArrayLikeType:Ax,isEmptyAnonymousObjectType:gT,isTypeInvalidDueToUnionDiscriminant:function(e,n){return n.properties.some((n=>{const t=n.name&&Ly(n.name),r=t&&Vd(t)?Yd(t):void 0,i=void 0===r?void 0:dc(e,r);return!!i&&Ox(i)&&!WE(pG(n),i)}))},getExactOptionalProperties:function(e){return b_(e).filter((e=>sS(Sl(e))))},getAllPossiblePropertiesOfTypes:function(e){const n=Pg(e);if(!(1048576&n.flags))return bG(n);const t=dp();for(const r of e)for(const{escapedName:e}of bG(r))if(!t.has(e)){const r=U_(n,e);r&&t.set(e,r)}return Qe(t.values())},getSuggestedSymbolForNonexistentProperty:NR,getSuggestionForNonexistentProperty:OR,getSuggestedSymbolForNonexistentJSXAttribute:DR,getSuggestedSymbolForNonexistentSymbol:(e,n,t)=>MR(e,Gc(n),t),getSuggestionForNonexistentSymbol:(e,n,t)=>function(e,n,t){const r=MR(e,n,t);return r&&jc(r)}(e,Gc(n),t),getSuggestedSymbolForNonexistentModule:PR,getSuggestionForNonexistentExport:function(e,n){const t=PR(e,n);return t&&jc(t)},getSuggestedSymbolForNonexistentClassMember:RR,getBaseConstraintOfType:k_,getDefaultFromTypeParameter:e=>e&&262144&e.flags?D_(e):void 0,resolveName:(e,n,t,r)=>Fa(n,Gc(e),t,void 0,void 0,!1,r),getJsxNamespace:e=>Bc(sa(e)),getJsxFragmentFactory:e=>{const n=TB(e);return n&&Bc(Jb(n).escapedText)},getAccessibleSymbolChain:Ts,getTypePredicateOfSignature:Ip,resolveExternalModuleName:e=>{const n=Fc(e,mu);return n&&Oo(n,n,!0)},resolveExternalModuleSymbol:Bo,tryGetThisTypeAt:(e,n,t)=>{const r=Fc(e);return r&&CC(r,n,t)},getTypeArgumentConstraint:e=>{const n=Fc(e,zd);return n&&function(e){const n=En(e.parent,i_);if(!n)return;const t=fM(n);if(!t)return;const r=T_(t[n.typeArguments.indexOf(e)]);return r&&AE(r,rE(t,_M(n,t)))}(n)},getSuggestionDiagnostics:(t,r)=>{const a=Fc(t,Iw)||Nt.fail("Could not determine parsed source file.");if(_S(a,x,e))return i;let o;try{return n=r,iG(a),Nt.assert(!!(1&Ra(a).flags)),o=Ae(o,Xi.getDiagnostics(a.fileName)),JM(nG(a),((e,n,t)=>{Np(e)||eG(n,!!(16777216&e.flags))||(o||(o=[])).push({...t,category:2})})),o||i}finally{n=void 0}},runWithCancellationToken:(e,t)=>{try{return n=e,t(ve)}finally{n=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Ul,isDeclarationVisible:Zs,isPropertyAccessible:zR,getTypeOnlyAliasDeclaration:Co,getMemberOverrideModifierStatus:function(e,n,t){if(!n.name)return 0;const r=Qo(e),i=hd(r),a=nu(i),o=Sl(r),s=py(e)&&td(i),c=(null==s?void 0:s.length)?nu(Me(s),i.thisType):void 0,l=Zl(i),d=n.parent?gb(n):fb(n,16384);return fF(e,o,l,c,i,a,d,yb(n),mb(n),!1,jc(t))},isTypeParameterPossiblyReferenced:yE,typeHasCallOrConstructSignatures:EG};function be(e,n){const t=Mc(e,ou),r=t&&Ra(t).resolvedSignature;t&&(Ra(t).resolvedSignature=void 0);const i=n();return t&&(Ra(t).resolvedSignature=r),i}function xe(e,n){const t=Mc(e,ou);if(t){let n=e;do{Ra(n).skipDirectInference=!0,n=n.parent}while(n&&n!==t)}b=!0;const r=be(e,n);if(b=!1,t){let n=e;do{Ra(n).skipDirectInference=void 0,n=n.parent}while(n&&n!==t)}return r}function Se(e,n,t,r){const i=Fc(e,ou);me=t;const a=i?qN(i,n,r):void 0;return me=void 0,a}var ke=new Map,Ie=new Map,we=new Map,Re=new Map,Be=new Map,Ue=new Map,Ve=new Map,Ke=new Map,ze=new Map,qe=new Map,Je=new Map,Xe=new Map,Ye=new Map,Ze=new Map,en=[],nn=new Map,tn=new Set,on=va(4,"unknown"),sn=va(0,"__resolving__"),cn=new Map,ln=new Map,un=us(1,"any"),_n=us(1,"any",262144),pn=us(1,"any"),mn=us(1,"error"),hn=us(1,"unresolved"),yn=us(1,"any",65536),bn=us(1,"intrinsic"),xn=us(2,"unknown"),Sn=us(2,"unknown"),An=us(32768,"undefined"),Ln=F?An:us(32768,"undefined",65536),Cn=us(32768,"undefined"),kn=te?Cn:An,In=us(32768,"undefined"),wn=us(65536,"null"),Nn=F?wn:us(65536,"null",65536),Dn=us(4,"string"),On=us(8,"number"),Mn=us(64,"bigint"),Fn=us(512,"false"),Gn=us(512,"false"),Bn=us(512,"true"),Vn=us(512,"true");Bn.regularType=Vn,Bn.freshType=Bn,Vn.regularType=Vn,Vn.freshType=Bn,Fn.regularType=Gn,Fn.freshType=Fn,Gn.regularType=Gn,Gn.freshType=Fn;var jn,Hn=Pg([Gn,Vn]),Kn=us(4096,"symbol"),Wn=us(16384,"void"),zn=us(131072,"never"),qn=us(131072,"never",262144),Jn=us(131072,"never"),Xn=us(131072,"never"),Yn=us(67108864,"object"),$n=Pg([Dn,On]),Zn=Pg([Dn,On,Kn]),nt=Z?Dn:Zn,tt=Pg([On,Mn]),it=Pg([Dn,On,Hn,Mn,wn,An]),at=zy(["",""],[On]),st=cE((e=>{return 262144&e.flags?!(n=e).constraint&&!nf(n)||n.constraint===wt?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=ps(n.symbol),n.restrictiveInstantiation.constraint=wt,n.restrictiveInstantiation):e;var n}),(()=>"(restrictive mapper)")),ct=cE((e=>262144&e.flags?pn:e),(()=>"(permissive mapper)")),dt=us(131072,"never"),ut=cE((e=>262144&e.flags?dt:e),(()=>"(unique literal mapper)")),mt=cE((e=>(!jn||e!==Ot&&e!==Mt&&e!==Pt||jn(!0),e)),(()=>"(unmeasurable reporter)")),ht=cE((e=>(!jn||e!==Ot&&e!==Mt&&e!==Pt||jn(!1),e)),(()=>"(unreliable reporter)")),bt=vs(void 0,E,i,i,i),Tt=vs(void 0,E,i,i,i);Tt.objectFlags|=2048;var St=va(2048,"__type");St.members=dp();var At=vs(St,E,i,i,i),Lt=vs(void 0,E,i,i,i),Ct=F?Pg([An,wn,Lt]):xn,kt=vs(void 0,E,i,i,i);kt.instantiations=new Map;var It=vs(void 0,E,i,i,i);It.objectFlags|=262144;var wt=vs(void 0,E,i,i,i),Rt=vs(void 0,E,i,i,i),Dt=vs(void 0,E,i,i,i),Ot=ps(),Mt=ps();Mt.constraint=Ot;var Pt=ps(),Ft=ps(),Gt=ps();Gt.constraint=Ft;var Bt,Ut,Vt,jt,Ht,Kt,Wt,zt,qt,Jt,Xt,Yt,$t,Qt,Zt,er,nr,tr,rr,ir,ar,or,sr,cr,lr,dr,ur,_r,pr,fr,mr,hr,gr,yr,vr,br,Er,Tr,xr,Sr,Ar,Lr,Cr,wr,Rr,Nr,Dr,Or,Mr,Pr,Fr,Gr,Br,Ur,jr,Hr,Kr,Wr,zr,qr,Jr=mp(1,"<<unresolved>>",0,un),Xr=ru(void 0,void 0,void 0,i,un,void 0,0,0),Yr=ru(void 0,void 0,void 0,i,mn,void 0,0,0),$r=ru(void 0,void 0,void 0,i,un,void 0,0,0),Qr=ru(void 0,void 0,void 0,i,qn,void 0,0,0),Zr=$p(On,Dn,!0),ei=new Map,ni={get yieldType(){return Nt.fail("Not supported")},get returnType(){return Nt.fail("Not supported")},get nextType(){return Nt.fail("Not supported")}},ti=RP(un,un,un),ri=RP(un,un,xn),ii=RP(zn,un,An),ai={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return vr||(vr=Pm("AsyncIterator",3,e))||kt},getGlobalIterableType:Ym,getGlobalIterableIteratorType:function(e){return br||(br=Pm("AsyncIterableIterator",1,e))||kt},getGlobalGeneratorType:function(e){return Er||(Er=Pm("AsyncGenerator",3,e))||kt},resolveIterationType:NM,mustHaveANextMethodDiagnostic:Wo.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:Wo.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:Wo.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},oi={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return pr||(pr=Pm("Iterator",3,e))||kt},getGlobalIterableType:ih,getGlobalIterableIteratorType:function(e){return fr||(fr=Pm("IterableIterator",1,e))||kt},getGlobalGeneratorType:function(e){return mr||(mr=Pm("Generator",3,e))||kt},resolveIterationType:(e,n)=>e,mustHaveANextMethodDiagnostic:Wo.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:Wo.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:Wo.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},si=new Map,ci=!1,li=new Map,di=0,ui=0,_i=0,pi=!1,fi=0,mi=[],hi=[],gi=[],yi=0,vi=[],bi=[],Ei=0,Ti=Cb(""),xi=kb(0),Si=Ib({negative:!1,base10Value:"0"}),Ai=[],Li=[],Ci=[],ki=0,Ii=10,wi=[],Ri=[],Ni=[],Di=[],Oi=[],Mi=[],Pi=[],Fi=[],Gi=[],Bi=[],Ui=[],ji=[],Hi=[],Ki=[],Wi=[],zi=[],qi=[],Ji=ov(),Xi=ov(),Yi=Pg(Qe(HG.keys(),Cb)),$i=new Map,Qi=new Map,Zi=new Map,ea=new Map,na=new Map,ta=new Map,ra=dp();ra.set(ue.escapedName,ue);var ia=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===x.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(const i of e.getSourceFiles())QF(i,x);let n;Bt=new Map;for(const i of e.getSourceFiles())if(!i.redirectInfo){if(!om(i)){const e=i.locals.get("globalThis");if(null==e?void 0:e.declarations)for(const n of e.declarations)Ji.add(qf(n,Wo.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));ka(le,i.locals)}if(i.jsGlobalAugmentations&&ka(le,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(Vt=de(Vt,i.patternAmbientModules)),i.moduleAugmentations.length&&(n||(n=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports){i.symbol.globalExports.forEach(((e,n)=>{le.has(n)||le.set(n,e)}))}}if(n)for(const e of n)for(const n of e)Sf(n.parent)&&Ia(n);t=le,r=ra,a=Wo.Declaration_name_conflicts_with_built_in_global_identifier_0,void r.forEach(((e,n)=>{const r=t.get(n);r?A(r.declarations,function(e,n){return t=>Ji.add(qf(t,n,e))}(Bc(n),a)):t.set(n,e)})),wa(ue).type=Ln,wa(he).type=Pm("IArguments",0,!0),wa(on).type=mn,wa(fe).type=_s(16,fe),qt=Pm("Array",1,!0),Ht=Pm("Object",0,!0),Kt=Pm("Function",0,!0),Wt=H&&Pm("CallableFunction",0,!0)||Kt,zt=H&&Pm("NewableFunction",0,!0)||Kt,Xt=Pm("String",0,!0),Yt=Pm("Number",0,!0),$t=Pm("Boolean",0,!0),Qt=Pm("RegExp",0,!0),er=Mh(un),(nr=Mh(_n))===bt&&(nr=vs(void 0,E,i,i,i));var t,r,a;if(Jt=ph("ReadonlyArray",1)||qt,tr=Jt?gh(Jt,[un]):er,Zt=ph("ThisType",1),n)for(const e of n)for(const n of e)Sf(n.parent)||Ia(n);Bt.forEach((({firstFile:e,secondFile:n,conflictingSymbols:t})=>{if(t.size<8)t.forEach((({isBlockScoped:e,firstFileLocations:n,secondFileLocations:t},r)=>{const i=e?Wo.Cannot_redeclare_block_scoped_variable_0:Wo.Duplicate_identifier_0;for(const a of n)Ca(a,i,r,t);for(const a of t)Ca(a,i,r,n)}));else{const r=Qe(t.keys()).join(", ");Ji.add(cS(qf(e,Wo.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),qf(n,Wo.Conflicts_are_in_this_file))),Ji.add(cS(qf(n,Wo.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),qf(e,Wo.Conflicts_are_in_this_file)))}})),Bt=void 0}(),ve;function aa(e){return e?Ze.get(e):void 0}function oa(e,n){return e&&Ze.set(e,n),n}function sa(e){if(e){const n=Dp(e);if(n)if(fw(e)){if(n.localJsxFragmentNamespace)return n.localJsxFragmentNamespace;const t=n.pragmas.get("jsxfrag");if(t){const e=gn(t)?t[0]:t;if(n.localJsxFragmentFactory=ND(e.arguments.factory,L),uB(n.localJsxFragmentFactory,la,Ld),n.localJsxFragmentFactory)return n.localJsxFragmentNamespace=Jb(n.localJsxFragmentFactory).escapedText}const r=TB(e);if(r)return n.localJsxFragmentFactory=r,n.localJsxFragmentNamespace=Jb(r).escapedText}else{const e=ca(n);if(e)return n.localJsxNamespace=e}}return zr||(zr="React",x.jsxFactory?(uB(qr=ND(x.jsxFactory,L),la),qr&&(zr=Jb(qr).escapedText)):x.reactNamespace&&(zr=Gc(x.reactNamespace))),qr||(qr=gA.createQualifiedName(gA.createIdentifier(Bc(zr)),"createElement")),zr}function ca(e){if(e.localJsxNamespace)return e.localJsxNamespace;const n=e.pragmas.get("jsx");if(n){const t=gn(n)?n[0]:n;if(e.localJsxFactory=ND(t.arguments.factory,L),uB(e.localJsxFactory,la,Ld),e.localJsxFactory)return e.localJsxNamespace=Jb(e.localJsxFactory).escapedText}}function la(e){return SS(e,-1,-1),EB(e,la,UV)}function da(e,n,t,r,i,a,o){const s=_a(n,t,r,i,a,o);return s.skippedOn=e,s}function ua(e,n,t,r,i,a){return e?qf(e,n,t,r,i,a):wT(n,t,r,i,a)}function _a(e,n,t,r,i,a){const o=ua(e,n,t,r,i,a);return Ji.add(o),o}function pa(e,n){e?Ji.add(n):Xi.add({...n,category:2})}function fa(e,n,t,r,i,a,o){if(n.pos<0||n.end<0){if(!e)return;const s=Dp(n);pa(e,"message"in t?kT(s,0,0,t,r,i,a,o):em(s,t))}else pa(e,"message"in t?qf(n,t,r,i,a,o):Yf(Dp(n),n,t))}function ma(e,n,t,r,i,a,o){const s=_a(e,t,r,i,a,o);if(n){cS(s,qf(e,Wo.Did_you_forget_to_use_await))}return s}function ha(e,n){const t=Array.isArray(e)?A(e,yl):yl(e);return t&&cS(n,qf(t,Wo.The_declaration_was_marked_as_deprecated_here)),Xi.add(n),n}function ga(e){if(S(e.declarations)>1){const n=es(e);if(n&&64&n.flags)return ce(e.declarations,(e=>!!(268435456&Nc(e))))}return!!(268435456&Fw(e))}function ya(e,n,t){return ha(n,qf(e,Wo._0_is_deprecated,t))}function va(e,n,t){m++;const r=new u(33554432|e,n);return r.links=new JG,r.links.checkFlags=t||0,r}function ba(e,n){const t=va(1,e);return t.links.type=n,t}function Ea(e,n){const t=va(4,e);return t.links.type=n,t}function Ta(e){let n=0;return 2&e&&(n|=111551),1&e&&(n|=111550),4&e&&(n|=0),8&e&&(n|=900095),16&e&&(n|=110991),32&e&&(n|=899503),64&e&&(n|=788872),256&e&&(n|=899327),128&e&&(n|=899967),512&e&&(n|=110735),8192&e&&(n|=103359),32768&e&&(n|=46015),65536&e&&(n|=78783),262144&e&&(n|=526824),524288&e&&(n|=788968),2097152&e&&(n|=2097152),n}function xa(e,n){n.mergeId||(n.mergeId=UG,UG++),wi[n.mergeId]=e}function Sa(e){const n=va(e.flags,e.escapedName);return n.declarations=e.declarations?e.declarations.slice():[],n.parent=e.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(n.constEnumOnlyModule=!0),e.members&&(n.members=new Map(e.members)),e.exports&&(n.exports=new Map(e.exports)),xa(n,e),n}function Aa(e,n,t=!1){if(!(e.flags&Ta(n.flags))||67108864&(n.flags|e.flags)){if(n===e)return e;if(!(33554432&e.flags)){const t=bo(e);if(t===on)return n;e=Sa(t)}512&n.flags&&512&e.flags&&e.constEnumOnlyModule&&!n.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=n.flags,n.valueDeclaration&&fg(e,n.valueDeclaration),Ae(e.declarations,n.declarations),n.members&&(e.members||(e.members=dp()),ka(e.members,n.members,t)),n.exports&&(e.exports||(e.exports=dp()),ka(e.exports,n.exports,t)),t||xa(e,n)}else if(1024&e.flags)e!==fe&&_a(n.declarations&&Xc(n.declarations[0]),Wo.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Gs(e));else{const t=!!(384&e.flags||384&n.flags),i=!!(2&e.flags||2&n.flags),a=t?Wo.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:i?Wo.Cannot_redeclare_block_scoped_variable_0:Wo.Duplicate_identifier_0,o=n.declarations&&Dp(n.declarations[0]),s=e.declarations&&Dp(e.declarations[0]),c=Mp(o,x.checkJs),l=Mp(s,x.checkJs),d=Gs(n);if(o&&s&&Bt&&!t&&o!==s){const t=-1===Mo(o.path,s.path)?o:s,a=t===o?s:o,u=re(Bt,`${t.path}|${a.path}`,(()=>({firstFile:t,secondFile:a,conflictingSymbols:new Map}))),_=re(u.conflictingSymbols,d,(()=>({isBlockScoped:i,firstFileLocations:[],secondFileLocations:[]})));c||r(_.firstFileLocations,n),l||r(_.secondFileLocations,e)}else c||La(n,a,d,e),l||La(e,a,d,n)}return e;function r(e,n){if(n.declarations)for(const t of n.declarations)Le(e,t)}}function La(e,n,t,r){A(e.declarations,(e=>{Ca(e,n,t,r.declarations)}))}function Ca(e,n,t,r){const a=(zh(e,!1)?Jh(e):Xc(e))||e,o=function(e,n,t,r,i,a){const o=e?qf(e,n,t,r,i,a):wT(n,t,r,i,a);return Ji.lookup(o)||(Ji.add(o),o)}(a,n,t);for(const s of r||i){const e=(zh(s,!1)?Jh(s):Xc(s))||s;if(e===a)continue;o.relatedInformation=o.relatedInformation||[];const n=qf(e,Wo._0_was_also_declared_here,t),r=qf(e,Wo.and_here);S(o.relatedInformation)>=5||ce(o.relatedInformation,(e=>0===MT(e,r)||0===MT(e,n)))||cS(o,S(o.relatedInformation)?r:n)}}function ka(e,n,t=!1){n.forEach(((n,r)=>{const i=e.get(r);e.set(r,i?Aa(i,n,t):$o(n))}))}function Ia(e){var n,t,r;const i=e.parent;if((null==(n=i.symbol.declarations)?void 0:n[0])===i)if(Sf(i))ka(le,i.symbol.exports);else{let n=Po(e,e,16777216&e.parent.parent.flags?void 0:Wo.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!n)return;if(n=Bo(n),1920&n.flags)if(ce(Vt,(e=>n===e.symbol))){const t=Aa(i.symbol,n,!0);jt||(jt=new Map),jt.set(e.text,t)}else{if((null==(t=n.exports)?void 0:t.get("__export"))&&(null==(r=i.symbol.exports)?void 0:r.size)){const e=Qd(n,"resolvedExports");for(const[t,r]of Qe(i.symbol.exports.entries()))e.has(t)&&!n.exports.has(t)&&Aa(e.get(t),r)}Aa(n,i.symbol)}else _a(e,Wo.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else Nt.assert(i.symbol.declarations.length>1)}function wa(e){var n;if(33554432&e.flags)return e.links;const t=eB(e);return null!=(n=Ri[t])?n:Ri[t]=new JG}function Ra(e){const n=ZG(e);return Ni[n]||(Ni[n]=new QG)}function Na(e){return 308===e.kind&&!om(e)}function Da(e,n,t){if(t){const r=$o(e.get(n));if(r){if(Nt.assert(0===(1&FE(r)),"Should never get an instantiated symbol here."),r.flags&t)return r;if(2097152&r.flags){if(xo(r)&t)return r}}}}function Oa(n,t){const r=Dp(n),i=Dp(t),a=Bf(n);if(r!==i){if(k&&(r.externalModuleIndicator||i.externalModuleIndicator)||!Nv(x)||HA(t)||16777216&n.flags)return!0;if(o(t,n))return!0;const a=e.getSourceFiles();return a.indexOf(r)<=a.indexOf(i)}if(n.pos<=t.pos&&(!YC(n)||!oh(t.parent)||n.initializer||n.exclamationToken)){if(205===n.kind){const e=vy(t,205);return e?Mc(e,Nk)!==Mc(n,Nk)||n.pos<e.pos:Oa(vy(n,257),t)}return 257===n.kind?!function(e,n){switch(e.parent.parent.kind){case 240:case 245:case 247:if(qa(n,e,a))return!0}const t=e.parent.parent;return xu(t)&&qa(n,t.expression,a)}(n,t):MI(n)?!Mc(t,(e=>WC(e)&&e.parent.parent===n)):YC(n)?!s(n,t,!1):!Ac(n,n.parent)||!(99===HT(x)&&w&&Xm(n)===Xm(t)&&o(t,n))}return!!(278===t.parent.kind||274===t.parent.kind&&t.parent.isExportEquals)||(!(274!==t.kind||!t.isExportEquals)||(!!(8388608&t.flags||HA(t)||KA(t))||!!o(t,n)&&(99!==HT(x)||!w||!Xm(n)||!YC(n)&&!Ac(n,n.parent)||!s(n,t,!0))));function o(e,n){return!!Mc(e,(t=>{if(t===a)return"quit";if(Id(t))return!0;if(ZC(t))return n.pos<e.pos;const r=En(t.parent,YC);if(r){if(r.initializer===t)if(mb(t.parent)){if(171===n.kind)return!0;if(YC(n)&&Xm(e)===Xm(n)){const e=n.name;if(IC(e)||wC(e)){if(function(e,n,t,r,i){for(const a of t)if(a.pos>=r&&a.pos<=i){const t=gA.createPropertyAccessExpression(gA.createThis(),e);CS(t.expression,t),CS(t,a),t.flowNode=a.returnFlowNode;if(!yT(sC(t,n,$x(n))))return!0}return!1}(e,Sl(Qo(n)),j(n.parent.members,ZC),n.parent.pos,t.pos))return!0}}}else{if(!(169===n.kind&&!mb(n))||Xm(e)!==Xm(n))return!0}}return!1}))}function s(e,n,t){if(n.end>e.end)return!1;return void 0===Mc(n,(n=>{if(n===e)return"quit";switch(n.kind){case 216:return!0;case 169:return!t||!(YC(e)&&n.parent===e.parent||Ac(e,e.parent)&&n.parent===e.parent.parent)||"quit";case 238:switch(n.parent.kind){case 174:case 171:case 175:return!0;default:return!1}default:return!1}}))}}function Ma(e,n,t){const r=HT(x),i=n;if(qC(t)&&i.body&&e.valueDeclaration&&e.valueDeclaration.pos>=i.body.pos&&e.valueDeclaration.end<=i.body.end&&r>=2){const e=Ra(i);return void 0===e.declarationRequiresScopeChange&&(e.declarationRequiresScopeChange=A(i.parameters,(function(e){return a(e.name)||!!e.initializer&&a(e.initializer)}))||!1),!e.declarationRequiresScopeChange}return!1;function a(e){switch(e.kind){case 216:case 215:case 259:case 173:return!1;case 171:case 174:case 175:case 299:return a(e.name);case 169:return hb(e)?r<99||!w:a(e.name);default:return zl(e)||jl(e)?r<7:Nk(e)&&e.dotDotDotToken&&wk(e.parent)?r<4:!zd(e)&&(CD(e,a)||!1)}}}function Pa(e){return hu(e)&&ql(e.type)||uR(e)&&ql(e.typeExpression)}function Fa(e,n,t,r,i,a,o=!1,s=!0){return Ga(e,n,t,r,i,a,o,s,Da)}function Ga(e,n,t,r,i,a,o,s,c){var d,u,_;const p=e;let f,m,h,g,y,v=!1;const b=e;let T,A=!1;e:for(;e;){if("const"===n&&Pa(e))return;if(Du(e)&&e.locals&&!Na(e)&&(f=c(e.locals,n,t))){let n=!0;if(Id(e)&&m&&m!==e.body?(t&f.flags&788968&&323!==m.kind&&(n=!!(262144&f.flags)&&(m===e.type||166===m.kind||344===m.kind||345===m.kind||165===m.kind)),t&f.flags&3&&(Ma(f,e,m)?n=!1:1&f.flags&&(n=166===m.kind||m===e.type&&!!Mc(f.valueDeclaration,qC)))):191===e.kind&&(n=m===e.trueType),n)break e;f=void 0}switch(v=v||Ua(e,m),e.kind){case 308:if(!om(e))break;A=!0;case 264:const i=(null==(d=Qo(e))?void 0:d.exports)||E;if(308===e.kind||BI(e)&&16777216&e.flags&&!Sf(e)){if(f=i.get("default")){const e=iE(f);if(e&&f.flags&t&&e.escapedName===n)break e;f=void 0}const e=i.get(n);if(e&&2097152===e.flags&&(cp(e,278)||cp(e,277)))break}if("default"!==n&&(f=c(i,n,2623475&t))){if(!Iw(e)||!e.commonJsModuleIndicator||(null==(u=f.declarations)?void 0:u.some(Ag)))break e;f=void 0}break;case 263:if(f=c((null==(_=Qo(e))?void 0:_.exports)||E,n,8&t)){!r||!XT(x)||16777216&e.flags||Dp(e)===Dp(f.valueDeclaration)||_a(b,Wo.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Bc(n),ye,`${Bc(Zo(e).escapedName)}.${Bc(n)}`);break e}break;case 169:if(!mb(e)){const r=ss(e.parent);r&&r.locals&&c(r.locals,n,111551&t)&&(Nt.assertNode(e,YC),g=e)}break;case 260:case 228:case 261:if(f=c(Qo(e).members||E,n,788968&t)){if(!Ha(f,e)){f=void 0;break}if(m&&mb(m))return void(r&&_a(b,Wo.Static_members_cannot_reference_class_type_parameters));break e}if(nI(e)&&32&t){const t=e.name;if(t&&n===t.escapedText){f=e.symbol;break e}}break;case 230:if(m===e.expression&&94===e.parent.token){const i=e.parent.parent;if(Fd(i)&&(f=c(Qo(i).members,n,788968&t)))return void(r&&_a(b,Wo.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 164:if(T=e.parent.parent,(Fd(T)||261===T.kind)&&(f=c(Qo(T).members,n,788968&t)))return void(r&&_a(b,Wo.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type));break;case 216:if(HT(x)>=2)break;case 171:case 173:case 174:case 175:case 259:if(3&t&&"arguments"===n){f=he;break e}break;case 215:if(3&t&&"arguments"===n){f=he;break e}if(16&t){const t=e.name;if(t&&n===t.escapedText){f=e.symbol;break e}}break;case 167:e.parent&&166===e.parent.kind&&(e=e.parent),e.parent&&(Pd(e.parent)||260===e.parent.kind)&&(e=e.parent);break;case 349:case 341:case 343:const a=jg(e);a&&(e=a.parent);break;case 166:m&&(m===e.initializer||m===e.name&&Jd(m))&&(y||(y=e));break;case 205:m&&(m===e.initializer||m===e.name&&Jd(m))&&Jy(e)&&!y&&(y=e);break;case 192:if(262144&t){const t=e.typeParameter.name;if(t&&n===t.escapedText){f=e.typeParameter.symbol;break e}}}Va(e)&&(h=e),m=e,e=_R(e)?Gg(e)||e.parent:(cR(e)||lR(e))&&Bg(e)||e.parent}if(!a||!f||h&&f===h.symbol||(f.isReferenced|=t),!f){if(m&&(Nt.assertNode(m,Iw),m.commonJsModuleIndicator&&"exports"===n&&t&m.symbol.flags))return m.symbol;o||(f=c(le,n,t))}if(!f&&p&&Ih(p)&&p.parent&&Oh(p.parent,!1))return ge;function L(){return!(!g||w&&HT(x)>=9)&&(_a(b,b&&g.type&&lc(g.type,b.pos)?Wo.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Wo.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Vf(g.name),ja(i)),!0)}if(f){if(!r||!L())return r&&l((()=>{if(b&&(2&t||(32&t||384&t)&&111551===(111551&t))){const e=as(f);(2&e.flags||32&e.flags||384&e.flags)&&function(e,n){var t;if(Nt.assert(!!(2&e.flags||32&e.flags||384&e.flags)),67108881&e.flags&&32&e.flags)return;const r=null==(t=e.declarations)?void 0:t.find((e=>hf(e)||Fd(e)||263===e.kind));if(void 0===r)return Nt.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(16777216&r.flags)&&!Oa(r,n)){let t;const i=Vf(Xc(r));2&e.flags?t=_a(n,Wo.Block_scoped_variable_0_used_before_its_declaration,i):32&e.flags?t=_a(n,Wo.Class_0_used_before_its_declaration,i):256&e.flags?t=_a(n,Wo.Enum_0_used_before_its_declaration,i):(Nt.assert(!!(128&e.flags)),sx(x)&&(t=_a(n,Wo.Enum_0_used_before_its_declaration,i))),t&&cS(t,qf(r,Wo._0_is_declared_here,i))}}(e,b)}if(f&&A&&111551===(111551&t)&&!(8388608&p.flags)){const e=$o(f);S(e.declarations)&&N(e.declarations,(e=>jI(e)||Iw(e)&&!!e.symbol.globalExports))&&fa(!x.allowUmdGlobalAccess,b,Wo._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Bc(n))}if(f&&y&&!v&&111551===(111551&t)){const e=$o(eu(f)),n=Xy(y);e===Qo(y)?_a(b,Wo.Parameter_0_cannot_reference_itself,Vf(y.name)):e.valueDeclaration&&e.valueDeclaration.pos>y.pos&&n.parent.locals&&c(n.parent.locals,e.escapedName,t)===e&&_a(b,Wo.Parameter_0_cannot_reference_identifier_1_declared_after_it,Vf(y.name),Vf(b))}if(f&&b&&111551&t&&2097152&f.flags&&!(111551&f.flags)&&!vS(b)){const e=Co(f,111551);if(e){const t=278===e.kind||275===e.kind||277===e.kind?Wo._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:Wo._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=Bc(n);Ba(_a(b,t,r),e,r)}}})),f}else r&&l((()=>{if(!b||!function(e,n,t){if(!IC(e)||e.escapedText!==n||oG(e)||HA(e))return!1;const r=Qm(e,!1,!1);let i=r;for(;i;){if(Fd(i.parent)){const a=Qo(i.parent);if(!a)break;if(J_(Sl(a),n))return _a(e,Wo.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,ja(t),Gs(a)),!0;if(i===r&&!mb(i)){if(J_(hd(a).thisType,n))return _a(e,Wo.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,ja(t)),!0}}i=i.parent}return!1}(b,n,i)&&!L()&&!Ka(b)&&!function(e,n,t){const r=1920|(Ih(e)?111551:0);if(t===r){const t=bo(Fa(e,n,788968&~r,void 0,void 0,!1)),i=e.parent;if(t){if(KC(i)){Nt.assert(i.left===e,"Should only be resolving left side of qualified name as a namespace");const r=i.right.escapedText;if(J_(hd(t),r))return _a(i,Wo.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Bc(n),Bc(r)),!0}return _a(e,Wo._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Bc(n)),!0}}return!1}(b,n,t)&&!function(e,n){if(za(n)&&278===e.parent.kind)return _a(e,Wo.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,n),!0;return!1}(b,n)&&!function(e,n,t){if(111127&t){if(bo(Fa(e,n,1024,void 0,void 0,!1)))return _a(e,Wo.Cannot_use_namespace_0_as_a_value,Bc(n)),!0}else if(788544&t){if(bo(Fa(e,n,1536,void 0,void 0,!1)))return _a(e,Wo.Cannot_use_namespace_0_as_a_type,Bc(n)),!0}return!1}(b,n,t)&&!function(e,n,t){if(111551&t){if(za(n))return!function(e){const n=e.parent.parent,t=n.parent;if(n&&t){const e=Tw(n)&&94===n.token,r=PI(t);return e&&r}return!1}(e)?_a(e,Wo._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Bc(n)):_a(e,Wo.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,Bc(n)),!0;const t=bo(Fa(e,n,788544,void 0,void 0,!1)),r=t&&xo(t);if(t&&void 0!==r&&!(111551&r)){const r=Bc(n);return!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(n)?!function(e,n){const t=Mc(e.parent,(e=>!WC(e)&&!XC(e)&&(uk(e)||"quit")));if(t&&1===t.members.length){const e=hd(n);return!!(1048576&e.flags)&&bO(e,384,!0)}return!1}(e,t)?_a(e,Wo._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r):_a(e,Wo._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,"K"===r?"P":"K"):_a(e,Wo._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,r),!0}}return!1}(b,n,t)&&!function(e,n,t){if(788584&t){const t=bo(Fa(e,n,111127,void 0,void 0,!1));if(t&&!(1920&t.flags))return _a(e,Wo._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Bc(n)),!0}return!1}(b,n,t)){let e,a;if(i&&(a=function(e){const n=ja(e),t=_f().get(n);return t&&Pe(t.keys())}(i),a&&_a(b,r,ja(i),a)),!a&&s&&ki<Ii){e=MR(p,n,t);if((null==e?void 0:e.valueDeclaration)&&yf(e.valueDeclaration)&&Sf(e.valueDeclaration)&&(e=void 0),e){const n=Gs(e),r=AR(p,e,!1),a=1920===t||i&&"string"!==typeof i&&$y(i)?Wo.Cannot_find_namespace_0_Did_you_mean_1:r?Wo.Could_not_find_name_0_Did_you_mean_1:Wo.Cannot_find_name_0_Did_you_mean_1,o=ua(b,a,ja(i),n);pa(!r,o),e.valueDeclaration&&cS(o,qf(e.valueDeclaration,Wo._0_is_declared_here,n))}}e||a||!i||_a(b,r,ja(i)),ki++}}))}function Ba(e,n,t){return n?cS(e,qf(n,278===n.kind||275===n.kind||277===n.kind?Wo._0_was_exported_here:Wo._0_was_imported_here,t)):e}function Ua(e,n){return 216!==e.kind&&215!==e.kind?dk(e)||(Rd(e)||169===e.kind&&!mb(e))&&(!n||n!==e.name):(!n||n!==e.name)&&(!(!e.asteriskToken&&!fb(e,512))||!rh(e))}function Va(e){switch(e.kind){case 259:case 260:case 261:case 263:case 262:case 264:return!0;default:return!1}}function ja(e){return vn(e)?Bc(e):Vf(e)}function Ha(e,n){if(e.declarations)for(const t of e.declarations)if(165===t.kind){if((_R(t.parent)?Vg(t.parent):t.parent)===n)return!(_R(t.parent)&&D(t.parent.parent.tags,Ag))}return!1}function Ka(e){const n=Wa(e);return!(!n||!No(n,64,!0))&&(_a(e,Wo.Cannot_extend_an_interface_0_Did_you_mean_implements,sf(n)),!0)}function Wa(e){switch(e.kind){case 79:case 208:return e.parent?Wa(e.parent):void 0;case 230:if(qb(e.expression))return e.expression;default:return}}function za(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function qa(e,n,t){return!!n&&!!Mc(e,(e=>e===n||!(e!==t&&(!Id(e)||rh(e)&&!Iy(e)))&&"quit"))}function Ja(e){switch(e.kind){case 268:return e;case 270:return e.parent;case 271:return e.parent.parent;case 273:return e.parent.parent.parent;default:return}}function Xa(e){return e.declarations&&O(e.declarations,Ya)}function Ya(e){return 268===e.kind||267===e.kind||270===e.kind&&!!e.name||271===e.kind||277===e.kind||273===e.kind||278===e.kind||274===e.kind&&dy(e)||Yk(e)&&2===eg(e)&&dy(e)||iT(e)&&Yk(e.parent)&&e.parent.left===e&&63===e.parent.operatorToken.kind&&$a(e.parent.right)||300===e.kind||299===e.kind&&$a(e.initializer)||257===e.kind&&Ph(e)||205===e.kind&&Ph(e.parent.parent)}function $a(e){return ly(e)||jk(e)&&JN(e)}function Qa(e,n){const t=mo(e);if(t){const e=cT(t.expression).arguments[0];return IC(t.name)?bo(J_(Cp(e),t.name.escapedText)):void 0}if(NI(e)||280===e.moduleReference.kind){const n=Oo(e,Ah(e)||Sh(e)),t=Bo(n);return Ao(e,n,t,!1),t}const r=wo(e.moduleReference,n);return function(e,n){if(Ao(e,void 0,n,!1)&&!e.isTypeOnly){const n=Co(Qo(e)),t=278===n.kind||275===n.kind,r=t?Wo.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:Wo.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=t?Wo._0_was_exported_here:Wo._0_was_imported_here,a=275===n.kind?"*":Bc(n.name.escapedText);cS(_a(e.moduleReference,r),qf(n,i,a))}}(e,r),r}function Za(e,n,t,r){const i=e.exports.get("export="),a=i?J_(Sl(i),n,!0):e.exports.get(n),o=bo(a,r);return Ao(t,a,o,!1),o}function eo(e){return ZI(e)&&!e.isExportEquals||fb(e,1024)||tw(e)}function no(e){return o_(e)?LH(Dp(e),e):void 0}function to(e,n){return 99===e&&1===n}function io(e){return 99===no(e)&&et(e.text,".json")}function co(e,n,t,r){const i=e&&no(r);if(e&&void 0!==i){const n=to(i,e.impliedNodeFormat);if(99===i||n)return n}if(!R)return!1;if(!e||e.isDeclarationFile){const e=Za(n,"default",void 0,!0);return(!e||!ce(e.declarations,eo))&&!Za(n,Gc("__esModule"),void 0,t)}return Ch(e)?"object"!==typeof e.externalModuleIndicator&&!Za(n,Gc("__esModule"),void 0,t):jo(n)}function lo(e,n,t){var r;let i;i=Tf(e)?e:Za(e,"default",n,t);const a=null==(r=e.declarations)?void 0:r.find(Iw),o=uo(n);if(!o)return i;const s=io(o),c=co(a,e,t,o);if(i||c||s){if(c||s){const r=Bo(e,t)||bo(e,t);return Ao(n,e,r,!1),r}}else if(!jo(e)||nx(x)||ex(x))WI(n)?function(e,n){var t,r,i;if(null==(t=e.exports)?void 0:t.has(n.symbol.escapedName))_a(n.name,Wo.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Gs(e),Gs(n.symbol));else{const t=_a(n.name,Wo.Module_0_has_no_default_export,Gs(e)),a=null==(r=e.exports)?void 0:r.get("__export");if(a){const e=null==(i=a.declarations)?void 0:i.find((e=>{var n,t;return!!(ew(e)&&e.moduleSpecifier&&(null==(t=null==(n=Oo(e,e.moduleSpecifier))?void 0:n.exports)?void 0:t.has("default")))}));e&&cS(t,qf(e,Wo.export_Asterisk_does_not_re_export_a_default))}}}(e,n):fo(e,e,n,_d(n)&&n.propertyName||n.name);else{const t=k>=5?"allowSyntheticDefaultImports":"esModuleInterop",r=e.exports.get("export=").valueDeclaration,i=_a(n.name,Wo.Module_0_can_only_be_default_imported_using_the_1_flag,Gs(e),t);r&&cS(i,qf(r,Wo.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,t))}return Ao(n,i,void 0,!1),i}function uo(e){switch(e.kind){case 270:return e.parent.moduleSpecifier;case 268:return cw(e.moduleReference)?e.moduleReference.expression:void 0;case 271:case 278:return e.parent.parent.moduleSpecifier;case 273:return e.parent.parent.parent.moduleSpecifier;default:return Nt.assertNever(e)}}function _o(e,n,t=!1){var r;const i=Ah(e)||e.moduleSpecifier,a=Oo(e,i),o=!Mk(n)&&n.propertyName||n.name;if(!IC(o))return;const s=Uo(a,i,!1,"default"===o.escapedText&&!(!x.allowSyntheticDefaultImports&&!ex(x)));if(s&&o.escapedText){if(Tf(a))return a;let c;c=a&&a.exports&&a.exports.get("export=")?J_(Sl(s),o.escapedText,!0):function(e,n){if(3&e.flags){const t=e.valueDeclaration.type;if(t)return bo(J_(Fb(t),n))}}(s,o.escapedText),c=bo(c,t);let l=function(e,n,t,r){var i;if(1536&e.flags){const a=qo(e).get(n.escapedText),o=bo(a,r);return Ao(t,a,o,!1,null==(i=wa(e).typeOnlyExportStarMap)?void 0:i.get(n.escapedText),n.escapedText),o}}(s,o,n,t);if(void 0===l&&"default"===o.escapedText){const e=null==(r=a.declarations)?void 0:r.find(Iw);(io(i)||co(e,a,t,i))&&(l=Bo(a,t)||bo(a,t))}const d=l&&c&&l!==c?function(e,n){if(e===on&&n===on)return on;if(790504&e.flags)return e;const t=va(e.flags|n.flags,e.escapedName);return Nt.assert(e.declarations||n.declarations),t.declarations=pe(de(e.declarations,n.declarations),Pn),t.parent=e.parent||n.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),n.members&&(t.members=new Map(n.members)),e.exports&&(t.exports=new Map(e.exports)),t}(c,l):l||c;return d||fo(a,s,e,o),d}}function fo(e,n,t,r){var i;const a=Ro(e,t),o=Vf(r),s=PR(r,n);if(void 0!==s){const e=Gs(s),n=_a(r,Wo._0_has_no_exported_member_named_1_Did_you_mean_2,a,o,e);s.valueDeclaration&&cS(n,qf(s.valueDeclaration,Wo._0_is_declared_here,e))}else(null==(i=e.exports)?void 0:i.has("default"))?_a(r,Wo.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,a,o):function(e,n,t,r,i){var a,o;const s=null==(o=null==(a=En(r.valueDeclaration,Du))?void 0:a.locals)?void 0:o.get(n.escapedText),c=r.exports;if(s){const r=null==c?void 0:c.get("export=");if(r)is(r,s)?function(e,n,t,r){if(k>=5){_a(n,ex(x)?Wo._0_can_only_be_imported_by_using_a_default_import:Wo._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,t)}else if(Ih(e)){_a(n,ex(x)?Wo._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:Wo._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,t)}else{_a(n,ex(x)?Wo._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:Wo._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,t,t,r)}}(e,n,t,i):_a(n,Wo.Module_0_has_no_exported_member_1,i,t);else{const e=c?D(_p(c),(e=>!!is(e,s))):void 0,r=e?_a(n,Wo.Module_0_declares_1_locally_but_it_is_exported_as_2,i,t,Gs(e)):_a(n,Wo.Module_0_declares_1_locally_but_it_is_not_exported,i,t);s.declarations&&cS(r,...W(s.declarations,((e,n)=>qf(e,0===n?Wo._0_is_declared_here:Wo.and_here,t))))}}else _a(n,Wo.Module_0_has_no_exported_member_1,i,t)}(t,r,o,e,a)}function mo(e){if(NI(e)&&e.initializer&&Mk(e.initializer))return e.initializer}function ho(e,n,t){if("default"===Uc(e.propertyName||e.name)){const n=uo(e),r=n&&Oo(e,n);if(r)return lo(r,e,!!t)}const r=e.parent.parent.moduleSpecifier?_o(e.parent.parent,e,t):No(e.propertyName||e.name,n,!1,t);return Ao(e,void 0,r,!1),r}function go(e,n){if(nI(e))return OO(e).symbol;if(!Ld(e)&&!qb(e))return;const t=No(e,901119,!0,n);return t||(OO(e),Ra(e).resolvedSymbol)}function yo(e,n=!1){switch(e.kind){case 268:case 257:return Qa(e,n);case 270:return function(e,n){const t=Oo(e,e.parent.moduleSpecifier);if(t)return lo(t,e,n)}(e,n);case 271:return function(e,n){const t=e.parent.parent.moduleSpecifier,r=Oo(e,t),i=Uo(r,t,n,!1);return Ao(e,r,i,!1),i}(e,n);case 277:return function(e,n){const t=e.parent.moduleSpecifier,r=t&&Oo(e,t),i=t&&Uo(r,t,n,!1);return Ao(e,r,i,!1),i}(e,n);case 273:case 205:return function(e,n){if(QI(e)&&"default"===Uc(e.propertyName||e.name)){const t=uo(e),r=t&&Oo(e,t);if(r)return lo(r,e,n)}const t=Nk(e)?Xy(e):e.parent.parent.parent,r=mo(t),i=_o(t,r||e,n),a=e.propertyName||e.name;return r&&i&&IC(a)?bo(J_(Sl(i),a.escapedText),n):(Ao(e,void 0,i,!1),i)}(e,n);case 278:return ho(e,901119,n);case 274:case 223:return function(e,n){const t=go(ZI(e)?e.expression:e.right,n);return Ao(e,void 0,t,!1),t}(e,n);case 267:return function(e,n){if(Nu(e.parent)){const t=Bo(e.parent.symbol,n);return Ao(e,void 0,t,!1),t}}(e,n);case 300:return No(e.name,901119,!0,n);case 299:return go(e.initializer,n);case 209:case 208:return function(e,n){if(Yk(e.parent)&&e.parent.left===e&&63===e.parent.operatorToken.kind)return go(e.parent.right,n)}(e,n);default:return Nt.fail()}}function vo(e,n=901119){return!!e&&(2097152===(e.flags&(2097152|n))||!!(2097152&e.flags&&67108864&e.flags))}function bo(e,n){return!n&&vo(e)?To(e):e}function To(e){Nt.assert(0!==(2097152&e.flags),"Should only get Alias here.");const n=wa(e);if(n.aliasTarget)n.aliasTarget===sn&&(n.aliasTarget=on);else{n.aliasTarget=sn;const t=Xa(e);if(!t)return Nt.fail();const r=yo(t);n.aliasTarget===sn?n.aliasTarget=r||on:_a(t,Wo.Circular_definition_of_import_alias_0,Gs(e))}return n.aliasTarget}function xo(e){let n,t=e.flags;for(;2097152&e.flags;){const r=To(e);if(r===on)return 67108863;if(r===e||(null==n?void 0:n.has(r)))break;2097152&r.flags&&(n?n.add(r):n=new Set([e,r])),t|=r.flags,e=r}return t}function Ao(e,n,t,r,i,a){if(!e||Mk(e))return!1;const o=Qo(e);if(md(e)){return wa(o).typeOnlyDeclaration=e,!0}if(i){const e=wa(o);return e.typeOnlyDeclaration=i,o.escapedName!==a&&(e.typeOnlyExportStarName=a),!0}const s=wa(o);return Lo(s,n,r)||Lo(s,t,r)}function Lo(e,n,t){var r,i,a;if(n&&(void 0===e.typeOnlyDeclaration||t&&!1===e.typeOnlyDeclaration)){const t=null!=(i=null==(r=n.exports)?void 0:r.get("export="))?i:n,o=t.declarations&&D(t.declarations,md);e.typeOnlyDeclaration=null!=(a=null!=o?o:wa(t).typeOnlyDeclaration)&&a}return!!e.typeOnlyDeclaration}function Co(e,n){if(!(2097152&e.flags))return;const t=wa(e);if(void 0===n)return t.typeOnlyDeclaration||void 0;if(t.typeOnlyDeclaration){return xo(275===t.typeOnlyDeclaration.kind?bo(Jo(t.typeOnlyDeclaration.symbol.parent).get(t.typeOnlyExportStarName||e.escapedName)):To(t.typeOnlyDeclaration.symbol))&n?t.typeOnlyDeclaration:void 0}}function ko(e){if(x.verbatimModuleSyntax)return;const n=Qo(e),t=To(n);if(t){(t===on||111551&xo(t)&&!NG(t)&&!Co(n,111551))&&Io(n)}}function Io(e){Nt.assert(!x.verbatimModuleSyntax);const n=wa(e);if(!n.referenced){n.referenced=!0;const t=Xa(e);if(!t)return Nt.fail();Lh(t)&&111551&xo(bo(e))&&OO(t.moduleReference)}}function wo(e,n){return 79===e.kind&&Zb(e)&&(e=e.parent),79===e.kind||163===e.parent.kind?No(e,1920,!1,n):(Nt.assert(268===e.parent.kind),No(e,901119,!1,n))}function Ro(e,n){return e.parent?Ro(e.parent,n)+"."+Gs(e):Gs(e,n,void 0,36)}function No(e,n,t,r,i){if(Vp(e))return;const a=1920|(Ih(e)?111551&n:0);let o;if(79===e.kind){const r=n===a||$y(e)?Wo.Cannot_find_namespace_0:UA(Jb(e)),s=Ih(e)&&!$y(e)?function(e,n){if(Qf(e.parent)){const t=function(e){if(Mc(e,(e=>Ju(e)||8388608&e.flags?Ag(e):"quit")))return;const n=Vg(e);if(n&&hI(n)&&_g(n.expression)){const e=Qo(n.expression.left);if(e)return Do(e)}if(n&&jk(n)&&_g(n.parent)&&hI(n.parent.parent)){const e=Qo(n.parent.left);if(e)return Do(e)}if(n&&(Gm(n)||Sw(n))&&Yk(n.parent.parent)&&6===eg(n.parent.parent)){const e=Qo(n.parent.parent.left);if(e)return Do(e)}const t=Ug(e);if(t&&Id(t)){const e=Qo(t);return e&&e.valueDeclaration}}(e.parent);if(t)return Fa(t,e.escapedText,n,void 0,e,!0)}}(e,n):void 0;if(o=$o(Fa(i||e,e.escapedText,n,t||s?void 0:r,e,!0,!1)),!o)return $o(s)}else{if(163!==e.kind&&208!==e.kind)throw Nt.assertNever(e,"Unknown entity name kind.");{const r=163===e.kind?e.left:e.expression,s=163===e.kind?e.right:e.name;let c=No(r,a,t,!1,i);if(!c||Vp(s))return;if(c===on)return c;if(c.valueDeclaration&&Ih(c.valueDeclaration)&&100!==zT(x)&&NI(c.valueDeclaration)&&c.valueDeclaration.initializer&&aD(c.valueDeclaration.initializer)){const e=c.valueDeclaration.initializer.arguments[0],n=Oo(e,e);if(n){const e=Bo(n);e&&(c=e)}}if(o=$o(Da(qo(c),s.escapedText,n)),!o){if(!t){const t=Ro(c),r=Vf(s),i=PR(s,c);if(i)return void _a(s,Wo._0_has_no_exported_member_named_1_Did_you_mean_2,t,r,Gs(i));const a=KC(e)&&function(e){for(;KC(e.parent);)e=e.parent;return e}(e),o=Ht&&788968&n&&a&&!Wk(a.parent)&&function(e){let n=Jb(e),t=Fa(n,n.escapedText,111551,void 0,n,!0);if(t){for(;KC(n.parent);){if(t=J_(Sl(t),n.parent.right.escapedText),!t)return;n=n.parent}return t}}(a);if(o)return void _a(a,Wo._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,zf(a));if(1920&n&&KC(e.parent)){const n=$o(Da(qo(c),s.escapedText,788968));if(n)return void _a(e.parent.right,Wo.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Gs(n),Bc(e.parent.right.escapedText))}_a(s,Wo.Namespace_0_has_no_exported_member_1,t,r)}return}}}return Nt.assert(0===(1&FE(o)),"Should never get an instantiated symbol here."),!$y(e)&&Ld(e)&&(2097152&o.flags||274===e.parent.kind)&&Ao(cy(e),o,void 0,!0),o.flags&n||r?o:To(o)}function Do(e){const n=e.parent.valueDeclaration;if(!n)return;return(jh(n)?Wh(n):t_(n)?Kh(n):void 0)||n}function Oo(e,n,t){const r=1===zT(x)?Wo.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:Wo.Cannot_find_module_0_or_its_corresponding_type_declarations;return Po(e,n,t?void 0:r)}function Po(e,n,t,r=!1){return o_(n)?Fo(e,n.text,t,n,r):void 0}function Fo(n,t,r,i,a=!1){var o,s,c,l,d,u,_,p,f;if(pt(t,"@types/")){_a(i,Wo.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,ft(t,"@types/"),t)}const m=pp(t,!0);if(m)return m;const h=Dp(n),g=o_(n)?n:(null==(o=Mc(n,pm))?void 0:o.arguments[0])||(null==(s=Mc(n,KI))?void 0:s.moduleSpecifier)||(null==(c=Mc(n,xh))?void 0:c.moduleReference.expression)||(null==(l=Mc(n,ew))?void 0:l.moduleSpecifier)||(null==(d=BI(n)?n:n.parent&&BI(n.parent)&&n.parent.name===n?n.parent:void 0)?void 0:d.name)||(null==(u=mm(n)?n:void 0)?void 0:u.argument.literal),y=g&&o_(g)?LH(h,g):h.impliedNodeFormat,v=zT(x),b=Tp(h,t,y),E=b&&JH(x,b,h),T=b&&(!E||E===Wo.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(b.resolvedFileName);if(T){if(E&&_a(i,E,t,b.resolvedFileName),b.resolvedUsingTsExtension&&GD(t)){const e=(null==(_=Mc(n,KI))?void 0:_.importClause)||Mc(n,yt(HI,ew));(e&&!e.isTypeOnly||Mc(n,pm))&&_a(i,Wo.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){const n=Xx(t,e);if(WT(k)||99===y){const r=GD(t)&&VF(x);return n+(".mts"===e||".d.mts"===e?r?".mts":".mjs":".cts"===e||".d.mts"===e?r?".cts":".cjs":r?".ts":".js")}return n}(Nt.checkDefined(aE(t))))}else if(b.resolvedUsingTsExtension&&!VF(x,h.fileName)){const e=Nt.checkDefined(aE(t));_a(i,Wo.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}if(T.symbol){if(b.isExternalLibraryImport&&!nS(b.extension)&&Go(!1,i,h,y,b,t),3===v||99===v){const e=1===h.impliedNodeFormat&&!Mc(n,pm)||!!Mc(n,HI),r=Mc(n,(e=>Ck(e)||ew(e)||KI(e))),a=r&&Ck(r)?null==(p=r.assertions)?void 0:p.assertClause:null==r?void 0:r.assertClause;if(e&&99===T.impliedNodeFormat&&!CH(a))if(Mc(n,HI))_a(i,Wo.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,t);else{let e;const n=iS(h.fileName);if(".ts"===n||".js"===n||".tsx"===n||".jsx"===n){const t=h.packageJsonScope,r=".ts"===n?".mts":".js"===n?".mjs":void 0;e=t&&!t.contents.packageJsonContent.type?r?NT(void 0,Wo.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,Eo(t.packageDirectory,"package.json")):NT(void 0,Wo.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Eo(t.packageDirectory,"package.json")):r?NT(void 0,Wo.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,r):NT(void 0,Wo.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Ji.add(Yf(Dp(i),i,NT(e,Wo.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,t)))}}return $o(T.symbol)}r&&_a(i,Wo.File_0_is_not_a_module,T.fileName)}else{if(Vt){const e=_t(Vt,(e=>e.pattern),t);if(e){const n=jt&&jt.get(t);return $o(n?n:e.symbol)}}if((!b||nS(b.extension)||void 0!==E)&&E!==Wo.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(r){if(b){const n=e.getProjectReferenceRedirect(b.resolvedFileName);if(n)return void _a(i,Wo.Output_file_0_has_not_been_built_from_source_file_1,n,b.resolvedFileName)}if(E)_a(i,E,t,b.resolvedFileName);else{const n=ro(t)&&!ao(t),a=3===v||99===v;if(!ax(x)&&oo(t,".json")&&1!==v&&JT(x))_a(i,Wo.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,t);else if(99===y&&a&&n){const n=So(t,po(h.path)),r=null==(f=ia.find((([t,r])=>e.fileExists(n+t))))?void 0:f[1];r?_a(i,Wo.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,t+r):_a(i,Wo.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else _a(i,r,t)}}return}if(a){_a(i,Wo.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,t,b.resolvedFileName)}else Go(Y&&!!r,i,h,y,b,t)}}function Go(e,n,t,r,{packageId:i,resolvedFileName:a},o){var c,l;let d;if(!rc(o)&&i){const e=null==(l=null==(c=t.resolvedModules)?void 0:c.get(o,r))?void 0:l.node10Result;d=e?NT(void 0,Wo.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,e,e.indexOf(lP+"@types/")>-1?`@types/${PF(i.name)}`:i.name):(u=i.name,s().has(MF(u))?NT(void 0,Wo.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,i.name,PF(i.name)):function(e){return!!s().get(e)}(i.name)?NT(void 0,Wo.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i.name,o):NT(void 0,Wo.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,o,PF(i.name)))}var u;fa(e,n,NT(d,Wo.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,o,a))}function Bo(e,n){if(null==e?void 0:e.exports){const t=function(e,n){if(!e||e===on||e===n||1===n.exports.size||2097152&e.flags)return e;const t=wa(e);if(t.cjsExportMerged)return t.cjsExportMerged;const r=33554432&e.flags?e:Sa(e);r.flags=512|r.flags,void 0===r.exports&&(r.exports=dp());return n.exports.forEach(((e,n)=>{"export="!==n&&r.exports.set(n,r.exports.has(n)?Aa(r.exports.get(n),e):e)})),wa(r).cjsExportMerged=r,t.cjsExportMerged=r}($o(bo(e.exports.get("export="),n)),$o(e));return $o(t)||e}}function Uo(e,n,t,r){var i;const a=Bo(e,t);if(!t&&a){if(!r&&!(1539&a.flags)&&!cp(a,308)){const e=k>=5?"allowSyntheticDefaultImports":"esModuleInterop";return _a(n,Wo.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),a}const t=n.parent;if(KI(t)&&bg(t)||pm(t)){const n=pm(t)?t.arguments[0]:t.moduleSpecifier,r=Sl(a),o=rD(r,a,e,n);if(o)return Vo(a,o,t);const s=null==(i=null==e?void 0:e.declarations)?void 0:i.find(Iw),c=s&&to(no(n),s.impliedNodeFormat);if(ex(x)||c){let i=X_(r,0);if(i&&i.length||(i=X_(r,1)),i&&i.length||J_(r,"default",!0)||c){return Vo(a,iD(r,a,e,n),t)}}}}return a}function Vo(e,n,t){const r=va(e.flags,e.escapedName);r.declarations=e.declarations?e.declarations.slice():[],r.parent=e.parent,r.links.target=e,r.links.originatingImport=t,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),e.members&&(r.members=new Map(e.members)),e.exports&&(r.exports=new Map(e.exports));const a=h_(n);return r.links.type=vs(r,a.members,i,i,a.indexInfos),r}function jo(e){return void 0!==e.exports.get("export=")}function Ho(e){return _p(Jo(e))}function Ko(e,n){const t=Jo(n);if(t)return t.get(e)}function zo(e){return!(134348796&e.flags||1&YE(e)||bx(e)||Vx(e))}function qo(e){return 6256&e.flags?Qd(e,"resolvedExports"):1536&e.flags?Jo(e):e.exports||E}function Jo(e){const n=wa(e);if(!n.resolvedExports){const{exports:t,typeOnlyExportStarMap:r}=Yo(e);n.resolvedExports=t,n.typeOnlyExportStarMap=r}return n.resolvedExports}function Xo(e,n,t,r){n&&n.forEach(((n,i)=>{if("default"===i)return;const a=e.get(i);if(a){if(t&&r&&a&&bo(a)!==bo(n)){const e=t.get(i);e.exportsWithDuplicate?e.exportsWithDuplicate.push(r):e.exportsWithDuplicate=[r]}}else e.set(i,n),t&&r&&t.set(i,{specifierText:sf(r.moduleSpecifier)})}))}function Yo(e){const n=[];let t;const r=new Set,i=function e(i,a,o){!o&&(null==i?void 0:i.exports)&&i.exports.forEach(((e,n)=>r.add(n)));if(!(i&&i.exports&&Le(n,i)))return;const s=new Map(i.exports),c=i.exports.get("__export");if(c){const n=dp(),t=new Map;if(c.declarations)for(const r of c.declarations){const i=Oo(r,r.moduleSpecifier);Xo(n,e(i,r,o||r.isTypeOnly),t,r)}t.forEach((({exportsWithDuplicate:e},n)=>{if("export="!==n&&e&&e.length&&!s.has(n))for(const r of e)Ji.add(qf(r,Wo.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,t.get(n).specifierText,Bc(n)))})),Xo(s,n)}(null==a?void 0:a.isTypeOnly)&&(null!=t||(t=new Map),s.forEach(((e,n)=>t.set(n,a))));return s}(e=Bo(e))||E;return t&&r.forEach((e=>t.delete(e))),{exports:i,typeOnlyExportStarMap:t}}function $o(e){let n;return e&&e.mergeId&&(n=wi[e.mergeId])?n:e}function Qo(e){return $o(e.symbol&&eu(e.symbol))}function Zo(e){return Nu(e)?Qo(e):void 0}function es(e){return $o(e.parent&&eu(e.parent))}function ns(n,t,r){const a=es(n);if(a&&!(262144&n.flags)){const o=ee(a.declarations,(function(e){return a&&ts(e,a)})),s=t&&function(n,t){const r=Dp(t),a=ZG(r),o=wa(n);let s;if(o.extendedContainersByFile&&(s=o.extendedContainersByFile.get(a)))return s;if(r&&r.imports){for(const e of r.imports){if($y(e))continue;const r=Oo(t,e,!0);r&&(rs(r,n)&&(s=Te(s,r)))}if(S(s))return(o.extendedContainersByFile||(o.extendedContainersByFile=new Map)).set(a,s),s}if(o.extendedContainers)return o.extendedContainers;const c=e.getSourceFiles();for(const e of c){if(!OD(e))continue;const t=Qo(e);rs(t,n)&&(s=Te(s,t))}return o.extendedContainers=s||i}(n,t),c=function(e,n){const t=!!S(e.declarations)&&Me(e.declarations);if(111551&n&&t&&t.parent&&NI(t.parent)&&(Ok(t)&&t===t.parent.initializer||uk(t)&&t===t.parent.type))return Qo(t.parent)}(a,r);if(t&&a.flags&Es(r)&&Ts(a,t,1920,!1))return Te(de(de([a],o),s),c);const l=!(a.flags&Es(r))&&788968&a.flags&&524288&hd(a).flags&&111551===r?bs(t,(e=>gp(e,(e=>{if(e.flags&Es(r)&&Sl(e)===hd(a))return e})))):void 0;let d=l?[l,...o,a]:[...o,a];return d=Te(d,c),d=Ae(d,s),d}const o=ee(n.declarations,(e=>{if(!yf(e)&&e.parent){if(Ms(e.parent))return Qo(e.parent);if(UI(e.parent)&&e.parent.parent&&Bo(Qo(e.parent.parent))===n)return Qo(e.parent.parent)}if(nI(e)&&Yk(e.parent)&&63===e.parent.operatorToken.kind&&iT(e.parent.left)&&qb(e.parent.left.expression))return Zh(e.parent.left)||$h(e.parent.left.expression)?Qo(Dp(e)):(OO(e.parent.left.expression),Ra(e.parent.left.expression).resolvedSymbol)}));if(S(o))return ee(o,(e=>rs(e,n)?e:void 0))}function ts(e,n){const t=Ds(e),r=t&&t.exports&&t.exports.get("export=");return r&&is(r,n)?t:void 0}function rs(e,n){if(e===es(n))return n;const t=e.exports&&e.exports.get("export=");if(t&&is(t,n))return e;const r=qo(e),i=r.get(n.escapedName);return i&&is(i,n)?i:gp(r,(e=>{if(is(e,n))return e}))}function is(e,n){if($o(bo($o(e)))===$o(bo($o(n))))return e}function as(e){return $o(e&&0!==(1048576&e.flags)&&e.exportSymbol||e)}function os(e,n){return!!(111551&e.flags||2097152&e.flags&&111551&xo(e)&&(n||!Co(e)))}function ss(e){const n=e.members;for(const t of n)if(173===t.kind&&jp(t.body))return t}function cs(e){var n;const t=new _(ve,e);return f++,t.id=f,null==(n=Vr)||n.recordType(t),t}function ls(e,n){const t=cs(e);return t.symbol=n,t}function ds(e){return new _(ve,e)}function us(e,n,t=0){const r=cs(e);return r.intrinsicName=n,r.objectFlags=t,r}function _s(e,n){const t=ls(524288,n);return t.objectFlags=e,t.members=void 0,t.properties=void 0,t.callSignatures=void 0,t.constructSignatures=void 0,t.indexInfos=void 0,t}function ps(e){return ls(262144,e)}function fs(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function hs(e){let n;return e.forEach(((e,t)=>{gs(e,t)&&(n||(n=[])).push(e)})),n||i}function gs(e,n){return!fs(n)&&os(e)}function ys(e,n,t,r,a){const o=e;return o.members=n,o.properties=i,o.callSignatures=t,o.constructSignatures=r,o.indexInfos=a,n!==E&&(o.properties=hs(n)),o}function vs(e,n,t,r,i){return ys(_s(16,e),n,t,r,i)}function bs(e,n){let t;for(let r=e;r;r=r.parent){if(Du(r)&&r.locals&&!Na(r)&&(t=n(r.locals,void 0,!0,r)))return t;switch(r.kind){case 308:if(!om(r))break;case 264:const e=Qo(r);if(t=n((null==e?void 0:e.exports)||E,void 0,!0,r))return t;break;case 260:case 228:case 261:let i;if((Qo(r).members||E).forEach(((e,n)=>{788968&e.flags&&(i||(i=dp())).set(n,e)})),i&&(t=n(i,void 0,!1,r)))return t}}return n(le,void 0,!0)}function Es(e){return 111551===e?111551:1920}function Ts(e,n,t,r,i=new Map){if(!e||function(e){if(e.declarations&&e.declarations.length){for(const n of e.declarations)switch(n.kind){case 169:case 171:case 174:case 175:continue;default:return!1}return!0}return!1}(e))return;const a=wa(e),o=a.accessibleChainCache||(a.accessibleChainCache=new Map),s=bs(n,((e,n,t,r)=>r)),c=`${r?0:1}|${s&&ZG(s)}|${t}`;if(o.has(c))return o.get(c);const l=eB(e);let d=i.get(l);d||i.set(l,d=[]);const u=bs(n,_);return o.set(c,u),u;function _(t,i,a){if(!Le(d,t))return;const o=function(t,i,a){if(f(t.get(e.escapedName),void 0,i))return[e];const o=gp(t,(t=>{if(2097152&t.flags&&"export="!==t.escapedName&&"default"!==t.escapedName&&!(QE(t)&&n&&OD(Dp(n)))&&(!r||ce(t.declarations,xh))&&(!a||!ce(t.declarations,Th))&&(i||!cp(t,278))){const e=m(t,To(t),i);if(e)return e}if(t.escapedName===e.escapedName&&t.exportSymbol&&f($o(t.exportSymbol),void 0,i))return[e]}));return o||(t===le?m(fe,fe,i):void 0)}(t,i,a);return d.pop(),o}function p(e,t){return!xs(e,n,t)||!!Ts(e.parent,n,Es(t),r,i)}function f(n,r,i){return(e===(r||n)||$o(e)===$o(r||n))&&!ce(n.declarations,Ms)&&(i||p($o(n),t))}function m(e,n,r){if(f(e,n,r))return[e];const i=qo(n),a=i&&_(i,!0);return a&&p(e,Es(t))?[e].concat(a):void 0}}function xs(e,n,t){let r=!1;return bs(n,(n=>{let i=$o(n.get(e.escapedName));if(!i)return!1;if(i===e)return!0;const a=2097152&i.flags&&!cp(i,278);i=a?To(i):i;return!!((a?xo(i):i.flags)&t)&&(r=!0,!0)})),r}function As(e,n){return 0===Rs(e,n,788968,!1,!0).accessibility}function Ls(e,n){return 0===Rs(e,n,111551,!1,!0).accessibility}function ks(e,n,t){return 0===Rs(e,n,t,!1,!1).accessibility}function Is(e,n,t,r,i,a){if(!S(e))return;let o,s=!1;for(const c of e){const e=Ts(c,n,r,!1);if(e){o=c;const n=Ps(e[0],i);if(n)return n}if(a&&ce(c.declarations,Ms)){if(i){s=!0;continue}return{accessibility:0}}const l=Is(ns(c,n,r),n,t,t===c?Es(r):r,i,a);if(l)return l}return s?{accessibility:0}:o?{accessibility:1,errorSymbolName:Gs(t,n,r),errorModuleName:o!==t?Gs(o,n,1920):void 0}:void 0}function ws(e,n,t,r){return Rs(e,n,t,r,!0)}function Rs(e,n,t,r,i){if(e&&n){const a=Is([e],n,e,t,r,i);if(a)return a;const o=A(e.declarations,Ds);if(o){if(o!==Ds(n))return{accessibility:2,errorSymbolName:Gs(e,n,t),errorModuleName:Gs(o),errorNode:Ih(n)?n:void 0}}return{accessibility:1,errorSymbolName:Gs(e,n,t)}}return{accessibility:0}}function Ds(e){const n=Mc(e,Os);return n&&Qo(n)}function Os(e){return yf(e)||308===e.kind&&om(e)}function Ms(e){return vf(e)||308===e.kind&&om(e)}function Ps(e,n){let t;if(N(j(e.declarations,(e=>79!==e.kind)),(function(n){var t,i;if(!Zs(n)){const a=Ja(n);if(a&&!fb(a,1)&&Zs(a.parent))return r(n,a);if(NI(n)&&fI(n.parent.parent)&&!fb(n.parent.parent,1)&&Zs(n.parent.parent.parent))return r(n,n.parent.parent);if(Pf(n)&&!fb(n,1)&&Zs(n.parent))return r(n,n);if(Nk(n)){if(2097152&e.flags&&Ih(n)&&(null==(t=n.parent)?void 0:t.parent)&&NI(n.parent.parent)&&(null==(i=n.parent.parent.parent)?void 0:i.parent)&&fI(n.parent.parent.parent.parent)&&!fb(n.parent.parent.parent.parent,1)&&n.parent.parent.parent.parent.parent&&Zs(n.parent.parent.parent.parent.parent))return r(n,n.parent.parent.parent.parent);if(2&e.flags){const e=Mc(n,fI);return!!fb(e,1)||!!Zs(e.parent)&&r(n,e)}}return!1}return!0})))return{accessibility:0,aliasesToMakeVisible:t};function r(e,r){return n&&(Ra(e).isVisible=!0,t=Ce(t,r)),!0}}function Fs(e,n){let t;t=183===e.parent.kind||230===e.parent.kind&&!xm(e.parent)||164===e.parent.kind?1160127:163===e.kind||208===e.kind||268===e.parent.kind?1920:788968;const r=Jb(e),i=Fa(n,r.escapedText,t,void 0,void 0,!1);return i&&262144&i.flags&&788968&t||!i&&Jv(r)&&0===ws(Qo(Qm(r,!1,!1)),r,t,!1).accessibility?{accessibility:0}:i&&Ps(i,!0)||{accessibility:1,errorSymbolName:sf(r),errorNode:r}}function Gs(e,n,t,r=4,i){let a=70221824;2&r&&(a|=128),1&r&&(a|=512),8&r&&(a|=16384),32&r&&(a|=134217728),16&r&&(a|=1073741824);const o=4&r?se.symbolToNode:se.symbolToEntityName;return i?s(i).getText():bp(s);function s(r){const i=o(e,t,n,a),s=308===(null==n?void 0:n.kind)?nj():ej(),c=n&&Dp(n);return s.writeNode(4,i,c,r),r}}function Bs(e,n,t=0,r,i){return i?a(i).getText():bp(a);function a(i){let a;a=262144&t?1===r?182:181:1===r?177:176;const o=se.signatureToSignatureDeclaration(e,a,n,70222336|Ks(t)),s=tj(),c=n&&Dp(n);return s.writeNode(4,o,c,bv(i)),i}}function Us(e,n,t=1064960,r=vv("")){const i=x.noErrorTruncation||1&t,a=se.typeToTypeNode(e,n,70221824|Ks(t)|(i?1:0));if(void 0===a)return Nt.fail("should always get typenode");const o=e!==hn?ej():ZV(),s=n&&Dp(n);o.writeNode(4,a,s,r);const c=r.getText(),l=i?2*p_:2*__;return l&&c&&c.length>=l?c.substr(0,l-3)+"...":c}function Vs(e,n){let t=Hs(e.symbol)?Us(e,e.symbol.valueDeclaration):Us(e),r=Hs(n.symbol)?Us(n,n.symbol.valueDeclaration):Us(n);return t===r&&(t=js(e),r=js(n)),[t,r]}function js(e){return Us(e,void 0,64)}function Hs(e){return e&&!!e.valueDeclaration&&mu(e.valueDeclaration)&&!wE(e.valueDeclaration)}function Ks(e=0){return 848330091&e}function Ws(e){return!!e.symbol&&!!(32&e.symbol.flags)&&(e===ad(e.symbol)||!!(524288&e.flags)&&!!(16777216&YE(e)))}function zs(e,n,t=16384,r){return r?i(r).getText():bp(i);function i(r){const i=gA.createTypePredicateNode(2===e.kind||3===e.kind?gA.createToken(129):void 0,1===e.kind||3===e.kind?gA.createIdentifier(e.parameterName):gA.createThisTypeNode(),e.type&&se.typeToTypeNode(e.type,n,70222336|Ks(t))),a=ej(),o=n&&Dp(n);return a.writeNode(4,i,o,r),r}}function qs(e){return 8===e?"private":16===e?"protected":"public"}function Xs(e){return e&&e.parent&&265===e.parent.kind&&Af(e.parent.parent)}function Ys(e){return 308===e.kind||yf(e)}function $s(e,n){const t=wa(e).nameType;if(t){if(384&t.flags){const e=""+t.value;return Js(e,HT(x))||VS(e)?VS(e)&&pt(e,"-")?`[${e}]`:e:`"${dv(e,34)}"`}if(8192&t.flags)return`[${Qs(t.symbol,n)}]`}}function Qs(e,n){if(n&&"default"===e.escapedName&&!(16384&n.flags)&&(!(16777216&n.flags)||!e.declarations||n.enclosingDeclaration&&Mc(e.declarations[0],Ys)!==Mc(n.enclosingDeclaration,Ys)))return"default";if(e.declarations&&e.declarations.length){let t=C(e.declarations,(e=>Xc(e)?e:void 0));const r=t&&Xc(t);if(t&&r){if(Fk(t)&&ng(t))return jc(e);if(WC(r)&&!(4096&FE(e))){const t=wa(e).nameType;if(t&&384&t.flags){const t=$s(e,n);if(void 0!==t)return t}}return Vf(r)}if(t||(t=e.declarations[0]),t.parent&&257===t.parent.kind)return Vf(t.parent.name);switch(t.kind){case 228:case 215:case 216:return!n||n.encounteredError||131072&n.flags||(n.encounteredError=!0),228===t.kind?"(Anonymous class)":"(Anonymous function)"}}const t=$s(e,n);return void 0!==t?t:jc(e)}function Zs(e){if(e){const n=Ra(e);return void 0===n.isVisible&&(n.isVisible=!!function(){switch(e.kind){case 341:case 349:case 343:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&Iw(e.parent.parent.parent));case 205:return Zs(e.parent.parent);case 257:if(Jd(e.name)&&!e.name.elements.length)return!1;case 264:case 260:case 261:case 262:case 259:case 263:case 268:if(Af(e))return!0;const n=sc(e);return 1&wc(e)||268!==e.kind&&308!==n.kind&&16777216&n.flags?Zs(n):Na(n);case 169:case 168:case 174:case 175:case 171:case 170:if(pb(e,24))return!1;case 173:case 177:case 176:case 178:case 166:case 265:case 181:case 182:case 184:case 180:case 185:case 186:case 189:case 190:case 193:case 199:return Zs(e.parent);case 270:case 271:case 273:return!1;case 165:case 308:case 267:return!0;default:return!1}}()),n.isVisible}return!1}function ec(e,n){let t,r,i;return e.parent&&274===e.parent.kind?t=Fa(e,e.escapedText,2998271,void 0,e,!1):278===e.parent.kind&&(t=ho(e.parent,2998271)),t&&(i=new Set,i.add(eB(t)),function e(t){A(t,(t=>{const a=Ja(t)||t;if(n?Ra(t).isVisible=!0:(r=r||[],Le(r,a)),Lh(t)){const n=Fa(t,Jb(t.moduleReference).escapedText,901119,void 0,void 0,!1);n&&i&&ie(i,eB(n))&&e(n.declarations)}}))}(t.declarations)),r}function nc(e,n){const t=tc(e,n);if(t>=0){const{length:e}=Ai;for(let n=t;n<e;n++)Li[n]=!1;return!1}return Ai.push(e),Li.push(!0),Ci.push(n),!0}function tc(e,n){for(let t=Ai.length-1;t>=0;t--){if(ic(Ai[t],Ci[t]))return-1;if(Ai[t]===e&&Ci[t]===n)return t}return-1}function ic(e,n){switch(n){case 0:return!!wa(e).type;case 5:return!!Ra(e).resolvedEnumType;case 2:return!!wa(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 6:return!!e.resolvedTypeArguments;case 7:return!!e.baseTypesResolved;case 8:return!!wa(e).writeType;case 9:return void 0!==Ra(e).parameterInitializerContainsUndefined}return Nt.assertNever(n)}function ac(){return Ai.pop(),Ci.pop(),Li.pop()}function sc(e){return Mc(Xy(e),(e=>{switch(e.kind){case 257:case 258:case 273:case 272:case 271:case 270:return!1;default:return!0}})).parent}function dc(e,n){const t=J_(e,n);return t?Sl(t):void 0}function uc(e){return e&&0!==(1&e.flags)}function _c(e){return e===mn||!!(1&e.flags&&e.aliasSymbol)}function pc(e,n){if(0!==n)return Lc(e,!1,n);const t=Qo(e);return t&&wa(t).type||Lc(e,!1,n)}function fc(e,n,t){if(131072&(e=PL(e,(e=>!(98304&e.flags)))).flags)return bt;if(1048576&e.flags)return BL(e,(e=>fc(e,n,t)));let r=Pg(W(n,Ly));const a=[],o=[];for(const i of b_(e)){const e=Cy(i,8576);WE(e,r)||24&GE(i)||!sb(i)?o.push(e):a.push(i)}if(pv(e)||hv(r)){if(o.length&&(r=Pg([r,...o])),131072&r.flags)return e;const n=(Cr||(Cr=Em("Omit",2,!0)||on),Cr===on?void 0:Cr);return n?If(n,[e,r]):mn}const s=dp();for(const i of a)s.set(i.escapedName,cb(i,!1));const c=vs(t,s,i,i,np(e));return c.objectFlags|=4194304,c}function mc(e){return!!(465829888&e.flags)&&yO(k_(e)||xn,32768)}function hc(e){return uL(OL(e,mc)?BL(e,(e=>465829888&e.flags?I_(e):e)):e,524288)}function gc(e,n){const t=yc(e);return t?sC(t,n):n}function yc(e){const n=function(e){const n=e.parent.parent;switch(n.kind){case 205:case 299:return yc(n);case 206:return yc(e.parent);case 257:return n.initializer;case 223:return n.right}}(e);if(n&&Rg(n)&&n.flowNode){const t=vc(e);if(t){const r=VN(YN.createStringLiteral(t),e),i=lu(n)?n:YN.createParenthesizedExpression(n),a=VN(YN.createElementAccessExpression(i,r),e);return CS(r,a),CS(a,e),i!==n&&CS(i,a),a.flowNode=n.flowNode,a}}}function vc(e){const n=e.parent;return 205===e.kind&&203===n.kind?bc(e.propertyName||e.name):299===e.kind||300===e.kind?bc(e.name):""+n.elements.indexOf(e)}function bc(e){const n=Ly(e);return 384&n.flags?""+n.value:void 0}function Ec(e,n){if(uc(n))return n;const t=e.parent;let r;if(F&&16777216&e.flags&&Jy(e)?n=Qx(n):!F||!t.parent.initializer||65536&dL(AL(t.parent.initializer))||(n=uL(n,524288)),203===t.kind)if(e.dotDotDotToken){if(2&(n=H_(n)).flags||!RI(n))return _a(e,Wo.Rest_types_may_only_be_created_from_object_types),mn;const i=[];for(const e of t.elements)e.dotDotDotToken||i.push(e.propertyName||e.name);r=fc(n,i,e.symbol)}else{const t=e.propertyName||e.name;r=gc(e,Lv(n,Ly(t),32,t))}else{const i=kP(65|(e.dotDotDotToken?0:128),n,An,t),a=t.elements.indexOf(e);if(e.dotDotDotToken){const e=I_(n);r=ML(e,Vx)?BL(e,(e=>mg(e,a))):Mh(i)}else if(Ax(n)){r=gc(e,kv(n,kb(a),32|(yI(e)?16:0),e.name)||mn)}else r=i}return e.initializer?Qv(kc(e))?!F||16777216&dL(PO(e,0))?r:hc(r):FO(e,Pg([hc(r),PO(e,0)],2)):r}function Tc(e){const n=Ll(e);if(n)return Fb(n)}function xc(e){const n=ey(e,!0);return 206===n.kind&&0===n.elements.length}function Sc(e,n=!1,t=!0){return F&&t?$x(e,n):e}function Lc(e,n,t){if(NI(e)&&246===e.parent.parent.kind){const n=Hy(nR(ZO(e.parent.parent.expression,t)));return 4456448&n.flags?Ky(n):Dn}if(NI(e)&&247===e.parent.parent.kind){return CP(e.parent.parent)||un}if(Jd(e.parent))return function(e){const n=e.dotDotDotToken?64:0,t=pc(e.parent.parent,n);return t&&Ec(e,t)}(e);const r=YC(e)&&!bb(e)||XC(e)||mR(e),i=n&&QS(e),a=sl(e);if(gf(e))return a?uc(a)||a===xn?a:mn:Q?xn:un;if(a)return Sc(a,r,i);if((Y||Ih(e))&&NI(e)&&!Jd(e.name)&&!(1&wc(e))&&!(16777216&e.flags)){if(!(2&Nc(e))&&(!e.initializer||function(e){const n=ey(e,!0);return 104===n.kind||79===n.kind&&VA(n)===ue}(e.initializer)))return _n;if(e.initializer&&xc(e.initializer))return nr}if(qC(e)){const n=e.parent;if(175===n.kind&&qd(n)){const t=cp(Qo(e.parent),174);if(t){const r=xp(t),i=UB(n);return i&&e===i?(Nt.assert(!i.type),Sl(r.thisParameter)):Rp(r)}}const t=function(e,n){const t=Sp(e);if(!t)return;const r=e.parameters.indexOf(n);return n.dotDotDotToken?SD(t,r):TD(t,r)}(n,e);if(t)return t;const r="this"===e.symbol.escapedName?OC(n):MC(e);if(r)return Sc(r,!1,i)}if(t_(e)&&e.initializer){if(Ih(e)&&!qC(e)){const n=Kc(e,Qo(e),Kh(e));if(n)return n}return Sc(FO(e,PO(e,t)),r,i)}if(YC(e)&&(Y||Ih(e))){if(hb(e)){const n=j(e.parent.members,ZC),t=n.length?function(e,n){const t=pt(e.escapedName,"__#")?gA.createPrivateIdentifier(e.escapedName.split("@")[1]):Bc(e.escapedName);for(const r of n){const n=gA.createPropertyAccessExpression(gA.createThis(),t);CS(n.expression,n),CS(n,r),n.flowNode=r.returnFlowNode;const i=Pc(n,e);if(!Y||i!==_n&&i!==nr||_a(e.valueDeclaration,Wo.Member_0_implicitly_has_an_1_type,Gs(e),Us(i)),!ML(i,eR))return mP(i)}}(e.symbol,n):2&Lb(e)?ix(e.symbol):void 0;return t&&Sc(t,!0,i)}{const n=ss(e.parent),t=n?Dc(e.symbol,n):2&Lb(e)?ix(e.symbol):void 0;return t&&Sc(t,!0,i)}}return hw(e)?Bn:Jd(e.name)?nl(e.name,!1,!0):void 0}function Cc(e){if(e.valueDeclaration&&Yk(e.valueDeclaration)){const n=wa(e);return void 0===n.isConstructorDeclaredProperty&&(n.isConstructorDeclaredProperty=!1,n.isConstructorDeclaredProperty=!!Rc(e)&&N(e.declarations,(n=>Yk(n)&&ak(n)&&(209!==n.left.kind||wy(n.left.argumentExpression))&&!zc(void 0,n,e,n)))),n.isConstructorDeclaredProperty}return!1}function Ic(e){const n=e.valueDeclaration;return n&&YC(n)&&!Qv(n)&&!n.initializer&&(Y||Ih(n))}function Rc(e){if(e.declarations)for(const n of e.declarations){const e=Qm(n,!1,!1);if(e&&(173===e.kind||JN(e)))return e}}function Dc(e,n){const t=pt(e.escapedName,"__#")?gA.createPrivateIdentifier(e.escapedName.split("@")[1]):Bc(e.escapedName),r=gA.createPropertyAccessExpression(gA.createThis(),t);CS(r.expression,r),CS(r,n),r.flowNode=n.returnFlowNode;const i=Pc(r,e);return!Y||i!==_n&&i!==nr||_a(e.valueDeclaration,Wo.Member_0_implicitly_has_an_1_type,Gs(e),Us(i)),ML(i,eR)?void 0:mP(i)}function Pc(e,n){const t=(null==n?void 0:n.valueDeclaration)&&(!Ic(n)||2&Lb(n.valueDeclaration))&&ix(n)||An;return sC(e,_n,t)}function Hc(e,n){const t=Wh(e.valueDeclaration);if(t){const n=Ih(t)?Al(t):void 0;if(n&&n.typeExpression)return Fb(n.typeExpression);return e.valueDeclaration&&Kc(e.valueDeclaration,e,t)||Fx(OO(t))}let r,i=!1,a=!1;if(Cc(e)&&(r=Dc(e,Rc(e))),!r){let t;if(e.declarations){let o;for(const r of e.declarations){const s=Yk(r)||Fk(r)?r:iT(r)?Yk(r.parent)?r.parent:r:void 0;if(!s)continue;const c=iT(s)?dg(s):eg(s);(4===c||Yk(s)&&ak(s,c))&&(Yc(s)?i=!0:a=!0),Fk(s)||(o=zc(o,s,e,r)),o||(t||(t=[])).push(Yk(s)||Fk(s)?Jc(e,n,s,c):zn)}r=o}if(!r){if(!S(t))return mn;let n=i&&e.declarations?function(e,n){return Nt.assert(e.length===n.length),e.filter(((e,t)=>{const r=n[t],i=Yk(r)?r:Yk(r.parent)?r.parent:void 0;return i&&Yc(i)}))}(t,e.declarations):void 0;if(a){const t=ix(e);t&&((n||(n=[])).push(t),i=!0)}r=Pg(ce(n,(e=>!!(-98305&e.flags)))?n:t)}}const o=DS(Sc(r,!1,a&&!i));return e.valueDeclaration&&PL(o,(e=>!!(-98305&e.flags)))===zn?(US(e.valueDeclaration,un),un):o}function Kc(e,n,t){var r,a;if(!Ih(e)||!t||!Ok(t)||t.properties.length)return;const o=dp();for(;Yk(e)||Mk(e);){const n=Zo(e);(null==(r=null==n?void 0:n.exports)?void 0:r.size)&&ka(o,n.exports),e=Yk(e)?e.parent:e.parent.parent}const s=Zo(e);(null==(a=null==s?void 0:s.exports)?void 0:a.size)&&ka(o,s.exports);const c=vs(n,o,i,i,i);return c.objectFlags|=4096,c}function zc(e,n,t,r){var i;const a=Qv(n.parent);if(a){const n=DS(Fb(a));if(!e)return n;_c(e)||_c(n)||OE(e,n)||gP(void 0,e,r,n)}if(null==(i=t.parent)?void 0:i.valueDeclaration){const e=Qv(t.parent.valueDeclaration);if(e){const n=J_(Fb(e),t.escapedName);if(n)return Cl(n)}}return e}function Jc(e,n,t,r){if(Fk(t)){if(n)return Sl(n);const e=OO(t.arguments[2]),r=dc(e,"value");if(r)return r;const i=dc(e,"get");if(i){const e=sN(i);if(e)return Rp(e)}const a=dc(e,"set");if(a){const e=sN(a);if(e)return DD(e)}return un}if(function(e,n){return Mk(e)&&108===e.expression.kind&&kD(n,(n=>zA(e,n)))}(t.left,t.right))return un;const i=1===r&&(Mk(t.left)||Pk(t.left))&&(Zh(t.left.expression)||IC(t.left.expression)&&$h(t.left.expression)),a=n?Sl(n):i?Sb(OO(t.right)):Fx(OO(t.right));if(524288&a.flags&&2===r&&"export="===e.escapedName){const t=h_(a),r=dp();vp(t.members,r);const i=r.size;n&&!n.exports&&(n.exports=dp()),(n||e).exports.forEach(((e,n)=>{var t;const i=r.get(n);if(!i||i===e||2097152&e.flags)r.set(n,e);else if(111551&e.flags&&111551&i.flags){if(e.valueDeclaration&&i.valueDeclaration&&Dp(e.valueDeclaration)!==Dp(i.valueDeclaration)){const n=Bc(e.escapedName),r=(null==(t=En(i.valueDeclaration,qc))?void 0:t.name)||i.valueDeclaration;cS(_a(e.valueDeclaration,Wo.Duplicate_identifier_0,n),qf(r,Wo._0_was_also_declared_here,n)),cS(_a(r,Wo.Duplicate_identifier_0,n),qf(e.valueDeclaration,Wo._0_was_also_declared_here,n))}const a=va(e.flags|i.flags,n);a.links.type=Pg([Sl(e),Sl(i)]),a.valueDeclaration=i.valueDeclaration,a.declarations=de(i.declarations,e.declarations),r.set(n,a)}else r.set(n,Aa(e,i))}));const o=vs(i!==r.size?void 0:t.symbol,r,t.callSignatures,t.constructSignatures,t.indexInfos);if(i===r.size&&(a.aliasSymbol&&(o.aliasSymbol=a.aliasSymbol,o.aliasTypeArguments=a.aliasTypeArguments),4&YE(a))){o.aliasSymbol=a.symbol;const e=bf(a);o.aliasTypeArguments=S(e)?e:void 0}return o.objectFlags|=4096&YE(a),o.symbol&&32&o.symbol.flags&&a===ad(o.symbol)&&(o.objectFlags|=16777216),o}return kx(a)?(US(t,er),er):a}function Yc(e){const n=Qm(e,!1,!1);return 173===n.kind||259===n.kind||215===n.kind&&!_g(n.parent)}function Zc(e,n,t){if(e.initializer){return Sc(FO(e,PO(e,0,Jd(e.name)?nl(e.name,!0,!1):xn)))}return Jd(e.name)?nl(e.name,n,t):(t&&!ol(e)&&US(e,un),n?yn:un)}function nl(e,n=!1,t=!1){return 203===e.kind?function(e,n,t){const r=dp();let a,o=131200;A(e.elements,(e=>{const i=e.propertyName||e.name;if(e.dotDotDotToken)return void(a=$p(Dn,un,!1));const s=Ly(i);if(!Vd(s))return void(o|=512);const c=Yd(s),l=va(4|(e.initializer?16777216:0),c);l.links.type=Zc(e,n,t),l.links.bindingElement=e,r.set(l.escapedName,l)}));const s=vs(void 0,r,i,i,a?[a]:i);return s.objectFlags|=o,n&&(s.pattern=e,s.objectFlags|=131072),s}(e,n,t):function(e,n,t){const r=e.elements,i=Fe(r),a=i&&205===i.kind&&i.dotDotDotToken?i:void 0;if(0===r.length||1===r.length&&a)return L>=2?Rh(un):er;const o=W(r,(e=>tI(e)?un:Zc(e,n,t))),s=P(r,(e=>!(e===a||tI(e)||yI(e))),r.length-1)+1;let c=ig(o,W(r,((e,n)=>e===a?4:n>=s?2:1)));return n&&(c=ff(c),c.pattern=e,c.objectFlags|=131072),c}(e,n,t)}function tl(e,n){return il(Lc(e,!0,0),e,n)}function rl(e){const n=Zo(e),t=(r=!1,ar||(ar=bm("SymbolConstructor",r)));var r;return t&&n&&n===t}function il(e,n,t){return e?(4096&e.flags&&rl(n.parent)&&(e=Rb(n)),t&&KS(n,e),8192&e.flags&&(Nk(n)||!n.type)&&e.symbol!==Qo(n)&&(e=Kn),DS(e)):(e=qC(n)&&n.dotDotDotToken?er:un,t&&(ol(n)||US(n,e)),e)}function ol(e){const n=Xy(e);return bM(166===n.kind?n.parent:n)}function sl(e){const n=Qv(e);if(n)return Fb(n)}function ll(e){const n=wa(e);if(!n.type){const t=function(e){if(4194304&e.flags)return function(e){const n=hd(es(e));return n.typeParameters?pf(n,W(n.typeParameters,(e=>un))):n}(e);if(e===ge)return un;if(134217728&e.flags&&e.valueDeclaration){const n=Qo(Dp(e.valueDeclaration)),t=va(n.flags,"exports");t.declarations=n.declarations?n.declarations.slice():[],t.parent=e,t.links.target=n,n.valueDeclaration&&(t.valueDeclaration=n.valueDeclaration),n.members&&(t.members=new Map(n.members)),n.exports&&(t.exports=new Map(n.exports));const r=dp();return r.set("exports",t),vs(e,r,i,i,i)}Nt.assertIsDefined(e.valueDeclaration);const n=e.valueDeclaration;if(Iw(n)&&sm(n))return n.statements.length?DS(Fx(ZO(n.statements[0].expression))):bt;if(Gd(n))return _l(e);if(!nc(e,0))return 512&e.flags&&!(67108864&e.flags)?ml(e):vl(e);let t;if(274===n.kind)t=il(sl(n)||OO(n.expression),n);else if(Yk(n)||Ih(n)&&(Fk(n)||(Mk(n)||ag(n))&&Yk(n.parent)))t=Hc(e);else if(Mk(n)||Pk(n)||IC(n)||o_(n)||dC(n)||MI(n)||OI(n)||QC(n)&&!Gm(n)||$C(n)||Iw(n)){if(9136&e.flags)return ml(e);t=Yk(n.parent)?Hc(e):sl(n)||un}else if(Sw(n))t=sl(n)||VO(n);else if(hw(n))t=sl(n)||qI(n);else if(Aw(n))t=sl(n)||UO(n.name,0);else if(Gm(n))t=sl(n)||jO(n,0);else if(qC(n)||YC(n)||XC(n)||NI(n)||Nk(n)||ed(n))t=tl(n,!0);else if(GI(n))t=ml(e);else{if(!Cw(n))return Nt.fail("Unhandled declaration kind! "+Nt.formatSyntaxKind(n.kind)+" for "+Nt.formatSymbol(e));t=hl(e)}if(!ac())return 512&e.flags&&!(67108864&e.flags)?ml(e):vl(e);return t}(e);return n.type||function(e){let n=e.valueDeclaration;return!!n&&(Nk(n)&&(n=kc(n)),!!qC(n)&&NE(n.parent))}(e)||(n.type=t),t}return n.type}function dl(e){if(e)switch(e.kind){case 174:return eb(e);case 175:return tb(e);case 169:Nt.assert(bb(e));return Qv(e)}}function ul(e){const n=dl(e);return n&&Fb(n)}function _l(e){const n=wa(e);if(!n.type){if(!nc(e,0))return mn;const t=cp(e,174),r=cp(e,175),i=En(cp(e,169),Bd);let a=t&&Ih(t)&&Tc(t)||ul(t)||ul(r)||ul(i)||t&&t.body&&eO(t)||i&&i.initializer&&tl(i,!0);a||(r&&!bM(r)?fa(Y,r,Wo.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Gs(e)):t&&!bM(t)?fa(Y,t,Wo.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Gs(e)):i&&!bM(i)&&fa(Y,i,Wo.Member_0_implicitly_has_an_1_type,Gs(e),"any"),a=un),ac()||(dl(t)?_a(t,Wo._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Gs(e)):dl(r)||dl(i)?_a(r,Wo._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Gs(e)):t&&Y&&_a(t,Wo._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Gs(e)),a=un),n.type=a}return n.type}function pl(e){var n;const t=wa(e);if(!t.writeType){if(!nc(e,8))return mn;const r=null!=(n=cp(e,175))?n:En(cp(e,169),Bd);let i=ul(r);ac()||(dl(r)&&_a(r,Wo._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Gs(e)),i=un),t.writeType=i||_l(e)}return t.writeType}function fl(e){const n=Zl(ad(e));return 8650752&n.flags?n:2097152&n.flags?D(n.types,(e=>!!(8650752&e.flags))):void 0}function ml(e){let n=wa(e);const t=n;if(!n.type){const r=e.valueDeclaration&&$N(e.valueDeclaration,!1);if(r){const t=XN(e,r);t&&(e=t,n=t.links)}t.type=n.type=function(e){const n=e.valueDeclaration;if(1536&e.flags&&Tf(e))return un;if(n&&(223===n.kind||iT(n)&&223===n.parent.kind))return Hc(e);if(512&e.flags&&n&&Iw(n)&&n.commonJsModuleIndicator){const n=Bo(e);if(n!==e){if(!nc(e,0))return mn;const t=$o(e.exports.get("export=")),r=Hc(t,t===n?void 0:n);return ac()?r:vl(e)}}const t=_s(16,e);if(32&e.flags){const n=fl(e);return n?hy([t,n]):t}return F&&16777216&e.flags?$x(t):t}(e)}return n.type}function hl(e){const n=wa(e);return n.type||(n.type=pd(e))}function gl(e){const n=wa(e);if(!n.type){const t=To(e),r=e.declarations&&yo(Xa(e),!0),i=C(null==r?void 0:r.declarations,(e=>ZI(e)?sl(e):void 0));n.type=(null==r?void 0:r.declarations)&&WF(r.declarations)&&e.declarations.length?function(e){const n=Dp(e.declarations[0]),t=Bc(e.escapedName),r=e.declarations.every((e=>Ih(e)&&iT(e)&&Zh(e.expression))),i=r?gA.createPropertyAccessExpression(gA.createPropertyAccessExpression(gA.createIdentifier("module"),gA.createIdentifier("exports")),t):gA.createPropertyAccessExpression(gA.createIdentifier("exports"),t);return r&&CS(i.expression.expression,i.expression),CS(i.expression,i),CS(i,n),i.flowNode=n.endFlowNode,sC(i,_n,An)}(r):WF(e.declarations)?_n:i||(111551&xo(t)?Sl(t):mn)}return n.type}function vl(e){const n=e.valueDeclaration;return Qv(n)?(_a(e.valueDeclaration,Wo._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Gs(e)),mn):(Y&&(166!==n.kind||n.initializer)&&_a(e.valueDeclaration,Wo._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Gs(e)),un)}function Tl(e){const n=wa(e);return n.type||(Nt.assertIsDefined(n.deferralParent),Nt.assertIsDefined(n.deferralConstituents),n.type=1048576&n.deferralParent.flags?Pg(n.deferralConstituents):hy(n.deferralConstituents)),n.type}function xl(e){const n=FE(e);return 4&e.flags?2&n?65536&n?function(e){const n=wa(e);return!n.writeType&&n.deferralWriteConstituents&&(Nt.assertIsDefined(n.deferralParent),Nt.assertIsDefined(n.deferralConstituents),n.writeType=1048576&n.deferralParent.flags?Pg(n.deferralWriteConstituents):hy(n.deferralWriteConstituents)),n.writeType}(e)||Tl(e):e.links.writeType||e.links.type:Sl(e):98304&e.flags?1&n?function(e){const n=wa(e);return n.writeType||(n.writeType=AE(xl(n.target),n.mapper))}(e):pl(e):Sl(e)}function Sl(e){const n=FE(e);return 65536&n?Tl(e):1&n?function(e){const n=wa(e);return n.type||(n.type=AE(Sl(n.target),n.mapper))}(e):262144&n?function(e){if(!e.links.type){const n=e.links.mappedType;if(!nc(e,0))return n.containsError=!0,mn;const t=AE(Wu(n.target||n),fE(n.mapper,Vu(n),e.links.keyType));let r=F&&16777216&e.flags&&!yO(t,49152)?$x(t,!0):524288&e.links.checkFlags?pS(t):t;ac()||(_a(a,Wo.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Gs(e),Us(n)),r=mn),e.links.type=r}return e.links.type}(e):8192&n?function(e){const n=wa(e);n.type||(n.type=mA(e.links.propertyType,e.links.mappedType,e.links.constraintType));return n.type}(e):7&e.flags?ll(e):9136&e.flags?ml(e):8&e.flags?hl(e):98304&e.flags?_l(e):2097152&e.flags?gl(e):mn}function Cl(e){return oS(Sl(e),!!(16777216&e.flags))}function kl(e,n){return void 0!==e&&void 0!==n&&0!==(4&YE(e))&&e.target===n}function wl(e){return 4&YE(e)?e.target:e}function Rl(e,n){return function e(t){if(7&YE(t)){const r=wl(t);return r===n||ce(td(r),e)}if(2097152&t.flags)return ce(t.types,e);return!1}(e)}function Dl(e,n){for(const t of n)e=Ce(e,fd(Qo(t)));return e}function Fl(e,n){for(;;){if((e=e.parent)&&Yk(e)){const n=eg(e);if(6===n||3===n){const n=Qo(e.left);n&&n.parent&&!Mc(n.parent.valueDeclaration,(n=>e===n))&&(e=n.parent.valueDeclaration)}}if(!e)return;switch(e.kind){case 260:case 228:case 261:case 176:case 177:case 170:case 181:case 182:case 320:case 259:case 171:case 215:case 216:case 262:case 348:case 349:case 343:case 341:case 197:case 191:{const t=Fl(e,n);if(197===e.kind)return Te(t,fd(Qo(e.typeParameter)));if(191===e.kind)return de(t,Bv(e));const r=Dl(t,Ml(e)),i=n&&(260===e.kind||228===e.kind||261===e.kind||JN(e))&&ad(Qo(e)).thisType;return i?Te(r,i):r}case 344:const t=Fg(e);t&&(e=t.valueDeclaration);break;case 323:{const t=Fl(e,n);return e.tags?Dl(t,X(e.tags,(e=>_R(e)?e.typeParameters:void 0))):t}}}}function Bl(e){var n;const t=32&e.flags||16&e.flags?e.valueDeclaration:null==(n=e.declarations)?void 0:n.find((e=>{if(261===e.kind)return!0;if(257!==e.kind)return!1;const n=e.initializer;return!!n&&(215===n.kind||216===n.kind)}));return Nt.assert(!!t,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Fl(t)}function Ul(e){if(!e.declarations)return;let n;for(const t of e.declarations)if(261===t.kind||260===t.kind||228===t.kind||JN(t)||Lg(t)){n=Dl(n,Ml(t))}return n}function Jl(e){const n=Y_(e,1);if(1===n.length){const e=n[0];if(!e.typeParameters&&1===e.parameters.length&&sB(e)){const n=hD(e.parameters[0]);return uc(n)||Sx(n)===un}}return!1}function Xl(e){if(Y_(e,1).length>0)return!0;if(8650752&e.flags){const n=k_(e);return!!n&&Jl(n)}return!1}function Yl(e){const n=XE(e.symbol);return n&&py(n)}function $l(e,n,t){const r=S(n),i=Ih(t);return j(Y_(e,1),(e=>(i||r>=hp(e.typeParameters))&&r<=S(e.typeParameters)))}function Ql(e,n,t){const r=$l(e,n,t),i=W(n,Fb);return q(r,(e=>ce(e.typeParameters)?Up(e,i,Ih(t)):e))}function Zl(e){if(!e.resolvedBaseConstructorType){const n=XE(e.symbol),t=n&&py(n),r=Yl(e);if(!r)return e.resolvedBaseConstructorType=An;if(!nc(e,1))return mn;const i=ZO(r.expression);if(t&&r!==t&&(Nt.assert(!t.typeArguments),ZO(t.expression)),2621440&i.flags&&h_(i),!ac())return _a(e.symbol.valueDeclaration,Wo._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Gs(e.symbol)),e.resolvedBaseConstructorType=mn;if(!(1&i.flags)&&i!==Nn&&!Xl(i)){const n=_a(r.expression,Wo.Type_0_is_not_a_constructor_function_type,Us(i));if(262144&i.flags){const e=rf(i);let t=xn;if(e){const n=Y_(e,1);n[0]&&(t=Rp(n[0]))}i.symbol.declarations&&cS(n,qf(i.symbol.declarations[0],Wo.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Gs(i.symbol),Us(t)))}return e.resolvedBaseConstructorType=mn}e.resolvedBaseConstructorType=i}return e.resolvedBaseConstructorType}function nd(e,n){_a(e,Wo.Type_0_recursively_references_itself_as_a_base_type,Us(n,void 0,2))}function td(e){if(!e.baseTypesResolved){if(nc(e,7)&&(8&e.objectFlags?e.resolvedBaseTypes=[rd(e)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=d_;const n=G_(Zl(e));if(!(2621441&n.flags))return e.resolvedBaseTypes=i;const t=Yl(e);let r;const a=n.symbol?hd(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&function(e){const n=e.outerTypeParameters;if(n){const t=n.length-1,r=bf(e);return n[t].symbol!==r[t].symbol}return!0}(a))r=Lf(t,n.symbol);else if(1&n.flags)r=n;else{const a=Ql(n,t.typeArguments,t);if(!a.length)return _a(t.expression,Wo.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=i;r=Rp(a[0])}if(_c(r))return e.resolvedBaseTypes=i;const o=H_(r);if(!id(o)){const n=NT(q_(void 0,r),Wo.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Us(o));return Ji.add(Yf(Dp(t.expression),t.expression,n)),e.resolvedBaseTypes=i}if(e===o||Rl(o,e))return _a(e.symbol.valueDeclaration,Wo.Type_0_recursively_references_itself_as_a_base_type,Us(e,void 0,2)),e.resolvedBaseTypes=i;e.resolvedBaseTypes===d_&&(e.members=void 0);e.resolvedBaseTypes=[o]}(e),64&e.symbol.flags&&function(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||i,e.symbol.declarations)for(const n of e.symbol.declarations)if(261===n.kind&&gy(n))for(const t of gy(n)){const r=H_(Fb(t));_c(r)||(id(r)?e===r||Rl(r,e)?nd(n,e):e.resolvedBaseTypes===i?e.resolvedBaseTypes=[r]:e.resolvedBaseTypes.push(r):_a(t,Wo.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(e)):Nt.fail("type must be class or interface"),!ac()&&e.symbol.declarations))for(const n of e.symbol.declarations)260!==n.kind&&261!==n.kind||nd(n,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function rd(e){return Mh(Pg(q(e.typeParameters,((n,t)=>8&e.elementFlags[t]?Lv(n,On):n))||i),e.readonly)}function id(e){if(262144&e.flags){const n=k_(e);if(n)return id(n)}return!!(67633153&e.flags&&!m_(e)||2097152&e.flags&&N(e.types,id))}function ad(e){let n=wa(e);const t=n;if(!n.declaredType){const r=32&e.flags?1:2,i=XN(e,e.valueDeclaration&&function(e){var n;const t=e&&$N(e,!0),r=null==(n=null==t?void 0:t.exports)?void 0:n.get("prototype"),i=(null==r?void 0:r.valueDeclaration)&&function(e){if(!e.parent)return!1;let n=e.parent;for(;n&&208===n.kind;)n=n.parent;if(n&&Yk(n)&&Qb(n.left)&&63===n.operatorToken.kind){const e=ug(n);return Ok(e)&&e}}(r.valueDeclaration);return i?Qo(i):void 0}(e.valueDeclaration));i&&(e=i,n=i.links);const a=t.declaredType=n.declaredType=_s(r,e),o=Bl(e),s=Ul(e);(o||s||1===r||!function(e){if(!e.declarations)return!0;for(const n of e.declarations)if(261===n.kind){if(128&n.flags)return!1;const e=gy(n);if(e)for(const n of e)if(qb(n.expression)){const e=No(n.expression,788968,!0);if(!e||!(64&e.flags)||ad(e).thisType)return!1}}return!0}(e))&&(a.objectFlags|=4,a.typeParameters=de(o,s),a.outerTypeParameters=o,a.localTypeParameters=s,a.instantiations=new Map,a.instantiations.set(of(a.typeParameters),a),a.target=a,a.resolvedTypeArguments=a.typeParameters,a.thisType=ps(e),a.thisType.isThisType=!0,a.thisType.constraint=a)}return n.declaredType}function od(e){var n;const t=wa(e);if(!t.declaredType){if(!nc(e,2))return mn;const r=Nt.checkDefined(null==(n=e.declarations)?void 0:n.find(Lg),"Type alias symbol with no valid declaration found"),i=Ag(r)?r.typeExpression:r.type;let a=i?Fb(i):mn;if(ac()){const n=Ul(e);n&&(t.typeParameters=n,t.instantiations=new Map,t.instantiations.set(of(n),a))}else a=mn,343===r.kind?_a(r.typeExpression.type,Wo.Type_alias_0_circularly_references_itself,Gs(e)):_a(qc(r)&&r.name||r,Wo.Type_alias_0_circularly_references_itself,Gs(e));t.declaredType=a}return t.declaredType}function ld(e){return 1056&e.flags&&8&e.symbol.flags?hd(es(e.symbol)):e}function dd(e){const n=wa(e);if(!n.declaredType){const t=[];if(e.declarations)for(const n of e.declarations)if(263===n.kind)for(const r of n.members)if(qd(r)){const n=Qo(r),i=WG(r),a=db(void 0!==i?wb(i,eB(e),n):ud(n));wa(n).declaredType=a,t.push(Sb(a))}const r=t.length?Pg(t,1,e,void 0):ud(e);1048576&r.flags&&(r.flags|=1024,r.symbol=e),n.declaredType=r}return n.declaredType}function ud(e){const n=ls(32,e),t=ls(32,e);return n.regularType=n,n.freshType=t,t.regularType=n,t.freshType=t,n}function pd(e){const n=wa(e);if(!n.declaredType){const t=dd(es(e));n.declaredType||(n.declaredType=t)}return n.declaredType}function fd(e){const n=wa(e);return n.declaredType||(n.declaredType=ps(e))}function hd(e){return gd(e)||mn}function gd(e){return 96&e.flags?ad(e):524288&e.flags?od(e):262144&e.flags?fd(e):384&e.flags?dd(e):8&e.flags?pd(e):2097152&e.flags?function(e){const n=wa(e);return n.declaredType||(n.declaredType=hd(To(e)))}(e):void 0}function vd(e){switch(e.kind){case 131:case 157:case 152:case 148:case 160:case 134:case 153:case 149:case 114:case 155:case 144:case 198:return!0;case 185:return vd(e.elementType);case 180:return!e.typeArguments||e.typeArguments.every(vd)}return!1}function Td(e){const n=Pl(e);return!n||vd(n)}function xd(e){const n=Qv(e);return n?vd(n):!n_(e)}function Sd(e){if(e.declarations&&1===e.declarations.length){const n=e.declarations[0];if(n)switch(n.kind){case 169:case 168:return xd(n);case 171:case 170:case 173:case 174:case 175:return function(e){const n=eb(e),t=Ml(e);return(173===e.kind||!!n&&vd(n))&&e.parameters.every(xd)&&t.every(Td)}(n)}}return!1}function kd(e,n,t){const r=dp();for(const i of e)r.set(i.escapedName,t&&Sd(i)?i:gE(i,n));return r}function Dd(e,n){for(const t of n)e.has(t.escapedName)||Od(t)||e.set(t.escapedName,t)}function Od(e){return!!e.valueDeclaration&&bd(e.valueDeclaration)&&mb(e.valueDeclaration)}function Ud(e){if(!e.declaredProperties){const n=e.symbol,t=Zd(n);e.declaredProperties=hs(t),e.declaredCallSignatures=i,e.declaredConstructSignatures=i,e.declaredIndexInfos=i,e.declaredCallSignatures=Lp(t.get("__call")),e.declaredConstructSignatures=Lp(t.get("__new")),e.declaredIndexInfos=Qp(n)}return e}function Vd(e){return!!(8576&e.flags)}function jd(e){if(!WC(e)&&!Pk(e))return!1;const n=WC(e)?e.expression:e.argumentExpression;return qb(n)&&Vd(WC(e)?AI(e):OO(n))}function Hd(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function Kd(e){const n=Xc(e);return!!n&&jd(n)}function qd(e){return!Ny(e)||Kd(e)}function Yd(e){return 8192&e.flags?e.escapedName:384&e.flags?Gc(""+e.value):Nt.fail()}function $d(e,n,t,r){Nt.assert(!!r.symbol,"The member is expected to have a symbol.");const i=Ra(r);if(!i.resolvedSymbol){i.resolvedSymbol=r.symbol;const a=Yk(r)?r.left:r.name,o=Pk(a)?OO(a.argumentExpression):AI(a);if(Vd(o)){const s=Yd(o),c=r.symbol.flags;let l=t.get(s);l||t.set(s,l=va(0,s,4096));const d=n&&n.get(s);if(l.flags&Ta(c)||d){const e=d?de(d.declarations,l.declarations):l.declarations,n=!(8192&o.flags)&&Bc(s)||Vf(a);A(e,(e=>_a(Xc(e)||e,Wo.Property_0_was_also_declared_here,n))),_a(a||r,Wo.Duplicate_property_0,n),l=va(0,s,4096)}return l.links.nameType=o,function(e,n,t){Nt.assert(!!(4096&FE(e)),"Expected a late-bound symbol."),e.flags|=t,wa(n.symbol).lateSymbol=e,e.declarations?n.symbol.isReplaceableByMethod||e.declarations.push(n):e.declarations=[n],111551&t&&(e.valueDeclaration&&e.valueDeclaration.kind===n.kind||(e.valueDeclaration=n))}(l,r,c),l.parent?Nt.assert(l.parent===e,"Existing symbol parent should match new one"):l.parent=e,i.resolvedSymbol=l}}return i.resolvedSymbol}function Qd(e,n){const t=wa(e);if(!t[n]){const r="resolvedExports"===n,a=r?1536&e.flags?Yo(e).exports:e.exports:e.members;t[n]=a||E;const o=dp();for(const n of e.declarations||i){const t=km(n);if(t)for(const n of t)r===hb(n)&&Kd(n)&&$d(e,a,o,n)}const s=e.assignmentDeclarationMembers;if(s){const n=Qe(s.values());for(const t of n){const n=eg(t);r===!(3===n||Yk(t)&&ak(t,n)||9===n||6===n)&&Kd(t)&&$d(e,a,o,t)}}t[n]=function(e,n){if(!(null==e?void 0:e.size))return n;if(!(null==n?void 0:n.size))return e;const t=dp();return ka(t,e),ka(t,n),t}(a,o)||E}return t[n]}function Zd(e){return 6256&e.flags?Qd(e,"resolvedMembers"):e.members||E}function eu(e){if(106500&e.flags&&"__computed"===e.escapedName){const n=wa(e);if(!n.lateSymbol&&ce(e.declarations,Kd)){const n=$o(e.parent);ce(e.declarations,hb)?qo(n):Zd(n)}return n.lateSymbol||(n.lateSymbol=e)}return e}function nu(e,n,t){if(4&YE(e)){const r=e.target,i=bf(e);if(S(r.typeParameters)===S(i)){const e=pf(r,de(i,[n||r.thisType]));return t?G_(e):e}}else if(2097152&e.flags){const r=q(e.types,(e=>nu(e,n,t)));return r!==e.types?hy(r):e}return t?G_(e):e}function tu(e,n,t,r){let i,a,o,s,c;Ne(t,r,0,t.length)?(a=n.symbol?Zd(n.symbol):dp(n.declaredProperties),o=n.declaredCallSignatures,s=n.declaredConstructSignatures,c=n.declaredIndexInfos):(i=rE(t,r),a=kd(n.declaredProperties,i,1===t.length),o=eE(n.declaredCallSignatures,i),s=eE(n.declaredConstructSignatures,i),c=tE(n.declaredIndexInfos,i));const l=td(n);if(l.length){n.symbol&&a===Zd(n.symbol)&&(a=dp(n.declaredProperties)),ys(e,a,o,s,c);const t=Fe(r);for(const e of l){const n=t?nu(AE(e,i),t):e;Dd(a,b_(n)),o=de(o,Y_(n,0)),s=de(s,Y_(n,1));const r=n!==un?np(n):[$p(Dn,un,!1)];c=de(c,j(r,(e=>!$_(c,e.keyType))))}}ys(e,a,o,s,c)}function ru(e,n,t,r,i,a,o,s){const c=new p(ve,s);return c.declaration=e,c.typeParameters=n,c.parameters=r,c.thisParameter=t,c.resolvedReturnType=i,c.resolvedTypePredicate=a,c.minArgumentCount=o,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function au(e){const n=ru(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,39&e.flags);return n.target=e.target,n.mapper=e.mapper,n.compositeSignatures=e.compositeSignatures,n.compositeKind=e.compositeKind,n}function cu(e,n){const t=au(e);return t.compositeSignatures=n,t.compositeKind=1048576,t.target=void 0,t.mapper=void 0,t}function du(e,n){if((24&e.flags)===n)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});const t=8===n?"inner":"outer";return e.optionalCallSignatureCache[t]||(e.optionalCallSignatureCache[t]=function(e,n){Nt.assert(8===n||16===n,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const t=au(e);return t.flags|=n,t}(e,n))}function uu(e,n){if(sB(e)){const r=e.parameters.length-1,i=Sl(e.parameters[r]);if(Vx(i))return[t(i,r)];if(!n&&1048576&i.flags&&N(i.types,Vx))return W(i.types,(e=>t(e,r)))}return[e.parameters];function t(n,t){const r=bf(n),i=n.target.labeledElementDeclarations,a=W(r,((r,a)=>{const o=!!i&&gD(i[a])||yD(e,t+a,n),s=n.target.elementFlags[a],c=va(1,o,12&s?32768:2&s?16384:0);return c.links.type=4&s?Mh(r):r,c}));return de(e.parameters.slice(0,t),a)}}function _u(e,n,t,r,i){for(const a of e)if(fx(a,n,t,r,i,t?BE:ME))return a}function pu(e,n,t){if(n.typeParameters){if(t>0)return;for(let t=1;t<e.length;t++)if(!_u(e[t],n,!1,!1,!1))return;return[n]}let r;for(let i=0;i<e.length;i++){const a=i===t?n:_u(e[i],n,!0,!1,!0);if(!a)return;r=Ce(r,a)}return r}function fu(e){let n,t;for(let r=0;r<e.length;r++){if(0===e[r].length)return i;e[r].length>1&&(t=void 0===t?r:-1);for(const t of e[r])if(!n||!_u(n,t,!1,!1,!0)){const i=pu(e,t,r);if(i){let e=t;if(i.length>1){let n=t.thisParameter;const r=A(i,(e=>e.thisParameter));if(r){n=TS(r,hy(ee(i,(e=>e.thisParameter&&Sl(e.thisParameter)))))}e=cu(t,i),e.thisParameter=n}(n||(n=[])).push(e)}}}if(!S(n)&&-1!==t){const r=e[void 0!==t?t:0];let i=r.slice();for(const n of e)if(n!==r){const e=n[0];if(Nt.assert(!!e,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),i=e.typeParameters&&ce(i,(n=>!!n.typeParameters&&!gu(e.typeParameters,n.typeParameters)))?void 0:W(i,(n=>vu(n,e))),!i)break}n=i}return n||i}function gu(e,n){if(S(e)!==S(n))return!1;if(!e||!n)return!0;const t=rE(n,e);for(let r=0;r<e.length;r++){const i=e[r],a=n[r];if(i!==a&&!OE(rf(i)||xn,AE(rf(a)||xn,t)))return!1}return!0}function vu(e,n){const t=e.typeParameters||n.typeParameters;let r;e.typeParameters&&n.typeParameters&&(r=rE(n.typeParameters,e.typeParameters));const i=e.declaration,a=function(e,n,t){const r=AD(e),i=AD(n),a=r>=i?e:n,o=a===e?n:e,s=a===e?r:i,c=ID(e)||ID(n),l=c&&!ID(a),d=new Array(s+(l?1:0));for(let u=0;u<s;u++){let _=xD(a,u);a===n&&(_=AE(_,t));let p=xD(o,u)||xn;o===n&&(p=AE(p,t));const f=hy([_,p]),m=c&&!l&&u===s-1,h=u>=LD(a)&&u>=LD(o),g=u>=r?void 0:yD(e,u),y=u>=i?void 0:yD(n,u),v=va(1|(h&&!m?16777216:0),(g===y?g:g?y?void 0:g:y)||`arg${u}`);v.links.type=m?Mh(f):f,d[u]=v}if(l){const e=va(1,"args");e.links.type=Mh(TD(o,s)),o===n&&(e.links.type=AE(e.links.type,t)),d[s]=e}return d}(e,n,r),o=function(e,n,t){return e&&n?TS(e,hy([Sl(e),AE(Sl(n),t)])):e||n}(e.thisParameter,n.thisParameter,r),s=ru(i,t,o,a,void 0,void 0,Math.max(e.minArgumentCount,n.minArgumentCount),39&(e.flags|n.flags));return s.compositeKind=1048576,s.compositeSignatures=de(2097152!==e.compositeKind&&e.compositeSignatures||[e],[n]),r&&(s.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?_E(e.mapper,r):r),s}function Su(e){const n=np(e[0]);if(n){const t=[];for(const r of n){const n=r.keyType;N(e,(e=>!!tp(e,n)))&&t.push($p(n,Pg(W(e,(e=>rp(e,n)))),ce(e,(e=>tp(e,n).isReadonly))))}return t}return i}function Au(e,n){return e?n?hy([e,n]):e:n}function Lu(e){const n=V(e,(e=>Y_(e,1).length>0)),t=W(e,Jl);if(n>0&&n===V(t,(e=>e))){const e=t.indexOf(!0);t[e]=!1}return t}function Cu(e,n,t,r){const i=[];for(let a=0;a<n.length;a++)a===r?i.push(e):t[a]&&i.push(Rp(Y_(n[a],1)[0]));return hy(i)}function ku(e,n){for(const t of n)e&&!N(e,(e=>!fx(e,t,!1,!1,!1,ME)))||(e=Te(e,t));return e}function Iu(e,n,t){if(e)for(let r=0;r<e.length;r++){const i=e[r];if(i.keyType===n.keyType)return e[r]=$p(i.keyType,t?Pg([i.type,n.type]):hy([i.type,n.type]),t?i.isReadonly||n.isReadonly:i.isReadonly&&n.isReadonly),e}return Te(e,n)}function wu(e){if(e.target){ys(e,E,i,i,i);return void ys(e,kd(g_(e.target),e.mapper,!1),eE(Y_(e.target,0),e.mapper),eE(Y_(e.target,1),e.mapper),tE(np(e.target),e.mapper))}const n=$o(e.symbol);if(2048&n.flags){ys(e,E,i,i,i);const t=Zd(n),r=Lp(t.get("__call")),a=Lp(t.get("__new"));return void ys(e,t,r,a,Qp(n))}let t,r,a=E;if(n.exports&&(a=qo(n),n===fe)){const e=new Map;a.forEach((n=>{var t;418&n.flags||512&n.flags&&(null==(t=n.declarations)?void 0:t.length)&&N(n.declarations,yf)||e.set(n.escapedName,n)})),a=e}if(ys(e,a,i,i,i),32&n.flags){const e=Zl(ad(n));11272192&e.flags?(a=dp(function(e){const n=hs(e),t=Yp(e);return t?de(n,[t]):n}(a)),Dd(a,b_(e))):e===un&&(r=$p(Dn,un,!1))}const o=Yp(a);if(o?t=Zp(o):(r&&(t=Te(t,r)),384&n.flags&&(32&hd(n).flags||ce(e.properties,(e=>!!(296&Sl(e).flags))))&&(t=Te(t,Zr))),ys(e,a,i,i,t||i),8208&n.flags&&(e.callSignatures=Lp(n)),32&n.flags){const t=ad(n);let r=n.members?Lp(n.members.get("__constructor")):i;16&n.flags&&(r=Ae(r.slice(),ee(e.callSignatures,(e=>JN(e.declaration)?ru(e.declaration,e.typeParameters,e.thisParameter,e.parameters,t,void 0,e.minArgumentCount,39&e.flags):void 0)))),r.length||(r=function(e){const n=Y_(Zl(e),1),t=XE(e.symbol),r=!!t&&fb(t,256);if(0===n.length)return[ru(void 0,e.localTypeParameters,void 0,i,e,void 0,0,r?4:0)];const a=Yl(e),o=Ih(a),s=hm(a),c=S(s),l=[];for(const i of n){const n=hp(i.typeParameters),t=S(i.typeParameters);if(o||c>=n&&c<=t){const a=t?Kp(i,Ep(s,i.typeParameters,n,o)):au(i);a.typeParameters=e.localTypeParameters,a.resolvedReturnType=e,a.flags=r?4|a.flags:-5&a.flags,l.push(a)}}return l}(t)),e.constructSignatures=r}}function Ou(e,n,t){return AE(e,rE([n.indexType,n.objectType],[kb(0),ig([t])]))}function Mu(e){if(4194304&e.flags){const n=G_(e.type);return jx(n)?gg(n):Hy(n)}if(16777216&e.flags){if(e.root.isDistributive){const n=e.checkType,t=Mu(n);if(t!==n)return SE(e,pE(e.root.checkType,t,e.mapper))}return e}if(1048576&e.flags)return BL(e,Mu,!0);if(2097152&e.flags){const n=e.types;return 2===n.length&&76&n[0].flags&&n[1]===At?e:hy(q(e.types,Mu))}return e}function Fu(e){return 4096&FE(e)}function Gu(e,n,t,r){for(const i of b_(e))r(Cy(i,n));if(1&e.flags)r(Dn);else for(const i of np(e))(!t||134217732&i.keyType.flags)&&r(i.keyType)}function Uu(e){const n=dp();let t;ys(e,E,i,i,i);const r=Vu(e),a=ju(e),o=Hu(e.target||e),s=o&&WE(o,r),c=Wu(e.target||e),l=G_(Yu(e)),d=r_(e),u=Z?128:8576;function _(i){DL(o?AE(o,fE(e.mapper,r,i)):i,(a=>function(i,a){if(Vd(a)){const t=Yd(a),r=n.get(t);if(r)r.links.nameType=Pg([r.links.nameType,a]),r.links.keyType=Pg([r.links.keyType,i]);else{const r=Vd(i)?J_(l,Yd(i)):void 0,c=!!(4&d||!(8&d)&&r&&16777216&r.flags),u=!!(1&d||!(2&d)&&r&&uO(r)),_=F&&!c&&r&&16777216&r.flags,p=va(4|(c?16777216:0),t,262144|(r?Fu(r):0)|(u?8:0)|(_?524288:0));p.links.mappedType=e,p.links.nameType=a,p.links.keyType=i,r&&(p.links.syntheticOrigin=r,p.declarations=!o||s?r.declarations:void 0),n.set(t,p)}}else if(ef(a)||33&a.flags){const n=$p(5&a.flags?Dn:40&a.flags?On:a,AE(c,fE(e.mapper,r,i)),!!(1&d));t=Iu(t,n,!0)}}(i,a)))}Xu(e)?Gu(l,u,Z,_):DL(Mu(a),_),ys(e,n,i,i,t||i)}function Vu(e){return e.typeParameter||(e.typeParameter=fd(Qo(e.declaration.typeParameter)))}function ju(e){return e.constraintType||(e.constraintType=T_(Vu(e))||mn)}function Hu(e){return e.declaration.nameType?e.nameType||(e.nameType=AE(Fb(e.declaration.nameType),e.mapper)):void 0}function Wu(e){return e.templateType||(e.templateType=e.declaration.type?AE(Sc(Fb(e.declaration.type),!0,!!(4&r_(e))),e.mapper):mn)}function qu(e){return Pl(e.declaration.typeParameter)}function Xu(e){const n=qu(e);return 195===n.kind&&141===n.operator}function Yu(e){if(!e.modifiersType)if(Xu(e))e.modifiersType=AE(Fb(qu(e).type),e.mapper);else{const n=ju(wv(e.declaration)),t=n&&262144&n.flags?T_(n):n;e.modifiersType=t&&4194304&t.flags?AE(t.type,e.mapper):xn}return e.modifiersType}function r_(e){const n=e.declaration;return(n.readonlyToken?40===n.readonlyToken.kind?2:1:0)|(n.questionToken?40===n.questionToken.kind?8:4:0)}function a_(e){const n=r_(e);return 8&n?-1:4&n?1:0}function f_(e){const n=a_(e),t=Yu(e);return n||(m_(t)?a_(t):0)}function m_(e){if(32&YE(e)){const n=ju(e);if(hv(n))return!0;const t=Hu(e);if(t&&hv(AE(t,sE(Vu(e),n))))return!0}return!1}function h_(e){return e.members||(524288&e.flags?4&e.objectFlags?function(e){const n=Ud(e.target),t=de(n.typeParameters,[n.thisType]),r=bf(e);tu(e,n,t,r.length===t.length?r:de(r,[e]))}(e):3&e.objectFlags?function(e){tu(e,Ud(e),i,i)}(e):1024&e.objectFlags?function(e){const n=tp(e.source,Dn),t=r_(e.mappedType),r=!(1&t),a=4&t?0:16777216,o=n?[$p(Dn,mA(n.type,e.mappedType,e.constraintType),r&&n.isReadonly)]:i,s=dp();for(const i of b_(e.source)){const n=8192|(r&&uO(i)?8:0),t=va(4|i.flags&a,i.escapedName,n);if(t.declarations=i.declarations,t.links.nameType=wa(i).nameType,t.links.propertyType=Sl(i),8388608&e.constraintType.type.flags&&262144&e.constraintType.type.objectType.flags&&262144&e.constraintType.type.indexType.flags){const n=e.constraintType.type.objectType,r=Ou(e.mappedType,e.constraintType.type,n);t.links.mappedType=r,t.links.constraintType=Hy(n)}else t.links.mappedType=e.mappedType,t.links.constraintType=e.constraintType;s.set(i.escapedName,t)}ys(e,s,i,i,o)}(e):16&e.objectFlags?wu(e):32&e.objectFlags?Uu(e):Nt.fail("Unhandled object type "+Nt.formatObjectFlags(e.objectFlags)):1048576&e.flags?function(e){const n=fu(W(e.types,(e=>e===Kt?[Yr]:Y_(e,0)))),t=fu(W(e.types,(e=>Y_(e,1)))),r=Su(e.types);ys(e,E,n,t,r)}(e):2097152&e.flags?function(e){let n,t,r;const a=e.types,o=Lu(a),s=V(o,(e=>e));for(let i=0;i<a.length;i++){const c=e.types[i];if(!o[i]){let e=Y_(c,1);e.length&&s>0&&(e=W(e,(e=>{const n=au(e);return n.resolvedReturnType=Cu(Rp(e),a,o,i),n}))),t=ku(t,e)}n=ku(n,Y_(c,0)),r=We(np(c),((e,n)=>Iu(e,n,!1)),r)}ys(e,E,n||i,t||i,r||i)}(e):Nt.fail("Unhandled type "+Nt.formatTypeFlags(e.flags))),e}function g_(e){return 524288&e.flags?h_(e).properties:i}function y_(e,n){if(524288&e.flags){const t=h_(e).members.get(n);if(t&&os(t))return t}}function v_(e){if(!e.resolvedProperties){const n=dp();for(const t of e.types){for(const r of b_(t))if(!n.has(r.escapedName)){const t=j_(e,r.escapedName);t&&n.set(r.escapedName,t)}if(1048576&e.flags&&0===np(t).length)break}e.resolvedProperties=hs(n)}return e.resolvedProperties}function b_(e){return 3145728&(e=B_(e)).flags?v_(e):g_(e)}function E_(e){return 262144&e.flags?T_(e):8388608&e.flags?function(e){return w_(e)?function(e){if(P_(e))return Av(e.objectType,e.indexType);const n=S_(e.indexType);if(n&&n!==e.indexType){const t=kv(e.objectType,n,e.accessFlags);if(t)return t}const t=S_(e.objectType);if(t&&t!==e.objectType)return kv(t,e.indexType,e.accessFlags);return}(e):void 0}(e):16777216&e.flags?function(e){return w_(e)?C_(e):void 0}(e):k_(e)}function T_(e){return w_(e)?rf(e):void 0}function x_(e){var n;return!!(262144&e.flags&&ce(null==(n=e.symbol)?void 0:n.declarations,(e=>fb(e,2048)))||jx(e)&&M(bf(e),((n,t)=>!!(8&e.target.elementFlags[t])&&x_(n)))>=0||8388608&e.flags&&x_(e.objectType))}function S_(e){const n=Ev(e,!1);return n!==e?n:E_(e)}function A_(e){if(!e.resolvedDefaultConstraint){const n=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?AE(Fb(e.root.node.trueType),e.combinedMapper):Fv(e))}(e),t=Gv(e);e.resolvedDefaultConstraint=uc(n)?t:uc(t)?n:Pg([n,t])}return e.resolvedDefaultConstraint}function L_(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){const n=Ev(e.checkType,!1),t=n===e.checkType?E_(n):n;if(t&&t!==e.checkType){const n=SE(e,pE(e.root.checkType,t,e.mapper));if(!(131072&n.flags))return n}}}function C_(e){return L_(e)||A_(e)}function k_(e){if(464781312&e.flags){const n=R_(e);return n!==wt&&n!==Rt?n:void 0}return 4194304&e.flags?nt:void 0}function I_(e){return k_(e)||e}function w_(e){return R_(e)!==Rt}function R_(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;const n=[];return e.resolvedBaseConstraint=nu(t(e),e);function t(e){if(!e.immediateBaseConstraint){if(!nc(e,4))return Rt;let t;const i=_x(e);if((n.length<10||n.length<50&&!G(n,i))&&(n.push(i),t=function(e){if(262144&e.flags){const n=rf(e);return e.isThisType||!n?n:r(n)}if(3145728&e.flags){const n=e.types,t=[];let i=!1;for(const e of n){const n=r(e);n?(n!==e&&(i=!0),t.push(n)):i=!0}return i?1048576&e.flags&&t.length===n.length?Pg(t):2097152&e.flags&&t.length?hy(t):void 0:e}if(4194304&e.flags)return nt;if(134217728&e.flags){const n=e.types,t=ee(n,r);return t.length===n.length?zy(e.texts,t):Dn}if(268435456&e.flags){const n=r(e.type);return n&&n!==e.type?Zy(e.symbol,n):Dn}if(8388608&e.flags){if(P_(e))return r(Av(e.objectType,e.indexType));const n=r(e.objectType),t=r(e.indexType),i=n&&t&&kv(n,t,e.accessFlags);return i&&r(i)}if(16777216&e.flags){const n=C_(e);return n&&r(n)}if(33554432&e.flags)return r(Gf(e));return e}(Ev(e,!1)),n.pop()),!ac()){if(262144&e.flags){const n=nf(e);if(n){const t=_a(n,Wo.Type_parameter_0_has_a_circular_constraint,Us(e));!a||ty(n,a)||ty(a,n)||cS(t,qf(a,Wo.Circularity_originates_in_type_at_this_location))}}t=Rt}e.immediateBaseConstraint=t||wt}return e.immediateBaseConstraint}function r(e){const n=t(e);return n!==wt&&n!==Rt?n:void 0}}function N_(e){if(e.default)e.default===Dt&&(e.default=Rt);else if(e.target){const n=N_(e.target);e.default=n?AE(n,e.mapper):wt}else{e.default=Dt;const n=e.symbol&&A(e.symbol.declarations,(e=>zC(e)&&e.default)),t=n?Fb(n):wt;e.default===Dt&&(e.default=t)}return e.default}function D_(e){const n=N_(e);return n!==wt&&n!==Rt?n:void 0}function O_(e){return!(!e.symbol||!A(e.symbol.declarations,(e=>zC(e)&&e.default)))}function M_(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){const n=vE(e);if(n&&!e.declaration.nameType){const t=T_(n);if(t&&Tx(t))return AE(e,pE(n,t,e.mapper))}return e}(e))}function P_(e){let n;return!(!(8388608&e.flags&&32&YE(n=e.objectType)&&!m_(n)&&hv(e.indexType))||8&r_(n)||n.declaration.nameType)}function G_(e){const n=465829888&e.flags?k_(e)||xn:e;return 32&YE(n)?M_(n):2097152&n.flags?function(e){return e.resolvedApparentType||(e.resolvedApparentType=nu(e,e,!0))}(n):402653316&n.flags?Xt:296&n.flags?Yt:2112&n.flags?Rr||(Rr=Pm("BigInt",0,!1))||bt:528&n.flags?$t:12288&n.flags?Km():67108864&n.flags?bt:4194304&n.flags?nt:2&n.flags&&!F?bt:n}function B_(e){return H_(G_(H_(e)))}function U_(e,n,t){var r,i,a;let o,s,c;const l=1048576&e.flags;let d,u=4,_=l?0:8,p=!1;for(const x of e.types){const e=G_(x);if(!(_c(e)||131072&e.flags)){const r=J_(e,n,t),i=r?GE(r):0;if(r){if(106500&r.flags&&(null!=d||(d=l?0:16777216),l?d|=16777216&r.flags:d&=r.flags),o){if(r!==o){if((hF(r)||r)===(hF(o)||o)&&-1===px(o,r,((e,n)=>e===n?-1:0)))p=!!o.parent&&!!S(Ul(o.parent));else{s||(s=new Map,s.set(eB(o),o));const e=eB(r);s.has(e)||s.set(e,r)}}}else o=r;l&&uO(r)?_|=8:l||uO(r)||(_&=-9),_|=(24&i?0:256)|(16&i?512:0)|(8&i?1024:0)|(32&i?2048:0),Ww(r)||(u=2)}else if(l){const t=!Hd(n)&&op(e,n);t?(_|=32|(t.isReadonly?8:0),c=Te(c,Vx(e)?Kx(e)||An:t.type)):!NA(e)||2097152&YE(e)?_|=16:(_|=32,c=Te(c,An))}}}if(!o||l&&(s||48&_)&&1536&_&&(!s||!function(e){let n;for(const t of e){if(!t.declarations)return;if(n){if(n.forEach((e=>{G(t.declarations,e)||n.delete(e)})),0===n.size)return}else n=new Set(t.declarations)}return n}(s.values())))return;if(!s&&!(16&_)&&!c){if(p){const n=null==(r=En(o,up))?void 0:r.links,t=TS(o,null==n?void 0:n.type);return t.parent=null==(a=null==(i=o.valueDeclaration)?void 0:i.symbol)?void 0:a.parent,t.links.containingType=e,t.links.mapper=null==n?void 0:n.mapper,t}return o}const f=s?Qe(s.values()):[o];let m,h,g;const y=[];let v,b,E=!1;for(const x of f){b?x.valueDeclaration&&x.valueDeclaration!==b&&(E=!0):b=x.valueDeclaration,m=Ae(m,x.declarations);const e=Sl(x);h||(h=e,g=wa(x).nameType);const n=xl(x);v||n!==e?v=Te(v||y.slice(),n):e!==h&&(_|=64),(Ox(e)||uv(e)||e===dt)&&(_|=128),131072&e.flags&&e!==dt&&(_|=131072),y.push(e)}Ae(y,c);const T=va(4|(null!=d?d:0),n,u|_);return T.links.containingType=e,!E&&b&&(T.valueDeclaration=b,b.symbol.parent&&(T.parent=b.symbol.parent)),T.declarations=m,T.links.nameType=g,y.length>2?(T.links.checkFlags|=65536,T.links.deferralParent=e,T.links.deferralConstituents=y,T.links.deferralWriteConstituents=v):(T.links.type=l?Pg(y):hy(y),v&&(T.links.writeType=l?Pg(v):hy(v))),T}function V_(e,n,t){var r,i;let a=(null==(r=e.propertyCacheWithoutObjectFunctionPropertyAugment)?void 0:r.get(n))||!t?null==(i=e.propertyCache)?void 0:i.get(n):void 0;if(!a&&(a=U_(e,n,t),a)){(t?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=dp()):e.propertyCache||(e.propertyCache=dp())).set(n,a)}return a}function j_(e,n,t){const r=V_(e,n,t);return!r||16&FE(r)?void 0:r}function H_(e){return 1048576&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){const n=q(e.types,H_);if(n===e.types)return e;const t=Pg(n);1048576&t.flags&&(t.resolvedReducedType=t);return t}(e)):2097152&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|(ce(v_(e),K_)?33554432:0)),33554432&e.objectFlags?zn:e):e}function K_(e){return W_(e)||z_(e)}function W_(e){return!(16777216&e.flags)&&192===(131264&FE(e))&&!!(131072&Sl(e).flags)}function z_(e){return!e.valueDeclaration&&!!(1024&FE(e))}function q_(e,n){if(2097152&n.flags&&33554432&YE(n)){const t=D(v_(n),W_);if(t)return NT(e,Wo.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Us(n,void 0,536870912),Gs(t));const r=D(v_(n),z_);if(r)return NT(e,Wo.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Us(n,void 0,536870912),Gs(r))}return e}function J_(e,n,t,r){if(524288&(e=B_(e)).flags){const i=h_(e),a=i.members.get(n);if(a&&os(a,r))return a;if(t)return;const o=i===It?Kt:i.callSignatures.length?Wt:i.constructSignatures.length?zt:void 0;if(o){const e=y_(o,n);if(e)return e}return y_(Ht,n)}if(3145728&e.flags)return j_(e,n,t)}function X_(e,n){if(3670016&e.flags){const t=h_(e);return 0===n?t.callSignatures:t.constructSignatures}return i}function Y_(e,n){return X_(B_(e),n)}function $_(e,n){return D(e,(e=>e.keyType===n))}function Q_(e,n){let t,r,i;for(const a of e)a.keyType===Dn?t=a:Z_(n,a.keyType)&&(r?(i||(i=[r])).push(a):r=a);return i?$p(xn,hy(W(i,(e=>e.type))),We(i,((e,n)=>e&&n.isReadonly),!0)):r||(t&&Z_(n,Dn)?t:void 0)}function Z_(e,n){return WE(e,n)||n===Dn&&WE(e,On)||n===On&&(e===at||!!(128&e.flags)&&VS(e.value))}function ep(e){if(3670016&e.flags){return h_(e).indexInfos}return i}function np(e){return ep(B_(e))}function tp(e,n){return $_(np(e),n)}function rp(e,n){var t;return null==(t=tp(e,n))?void 0:t.type}function ip(e,n){return np(e).filter((e=>Z_(n,e.keyType)))}function ap(e,n){return Q_(np(e),n)}function op(e,n){return ap(e,Hd(n)?Kn:Cb(Bc(n)))}function sp(e){var n;let t;for(const r of Ml(e))t=Ce(t,fd(r.symbol));return(null==t?void 0:t.length)?t:OI(e)?null==(n=Sp(e))?void 0:n.typeParameters:void 0}function _p(e){const n=[];return e.forEach(((e,t)=>{fs(t)||n.push(e)})),n}function pp(e,n){if(rc(e))return;const t=Da(le,'"'+e+'"',512);return t&&n?$o(t):t}function fp(e){if(xg(e)||JS(e)||$S(e))return!0;if(e.initializer){const n=xp(e.parent),t=e.parent.parameters.indexOf(e);return Nt.assert(t>=0),t>=LD(n,3)}const n=rh(e.parent);return!!n&&(!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=n.arguments.length)}function mp(e,n,t,r){return{kind:e,parameterName:n,parameterIndex:t,type:r}}function hp(e){let n=0;if(e)for(let t=0;t<e.length;t++)O_(e[t])||(n=t+1);return n}function Ep(e,n,t,r){const i=S(n);if(!i)return[];const a=S(e);if(r||a>=t&&a<=i){const t=e?e.slice():[];for(let e=a;e<i;e++)t[e]=mn;const o=GA(r);for(let e=a;e<i;e++){let i=D_(n[e]);r&&i&&(OE(i,xn)||OE(i,bt))&&(i=un),t[e]=i?AE(i,rE(n,t)):o}return t.length=n.length,t}return e&&e.slice()}function xp(e){const n=Ra(e);if(!n.resolvedSignature){const t=[];let r,i=0,a=0,o=!1;const s=rh(e),c=Sg(e);!s&&Ih(e)&&Jg(e)&&!al(e)&&!Ll(e)&&(i|=32);for(let n=c?1:0;n<e.parameters.length;n++){const c=e.parameters[n];let l=c.symbol;const d=cR(c)?c.typeExpression&&c.typeExpression.type:c.type;if(l&&4&l.flags&&!Jd(c.name)){l=Fa(c,l.escapedName,111551,void 0,void 0,!1)}0===n&&"this"===l.escapedName?(o=!0,r=c.symbol):t.push(l),d&&198===d.kind&&(i|=2);JS(c)||c.initializer||c.questionToken||l_(c)||s&&t.length>s.arguments.length&&!d||$S(c)||(a=t.length)}if((174===e.kind||175===e.kind)&&qd(e)&&(!o||!r)){const n=174===e.kind?175:174,t=cp(Qo(e),n);t&&(r=function(e){const n=UB(e);return n&&n.symbol}(t))}if(Ih(e)){const n=El(e);n&&n.typeExpression&&(r=TS(va(1,"this"),Fb(n.typeExpression)))}const l=173===e.kind?ad($o(e.parent.symbol)):void 0,d=l?l.localTypeParameters:sp(e);(c_(e)||Ih(e)&&function(e,n){if(Jw(e)||!Ap(e))return!1;const t=Fe(e.parameters),r=t?el(t):Il(e).filter(cR),i=C(r,(e=>e.typeExpression&&Kw(e.typeExpression.type)?e.typeExpression.type:void 0)),a=va(3,"args",32768);i?a.links.type=Mh(Fb(i.type)):(a.links.checkFlags|=65536,a.links.deferralParent=zn,a.links.deferralConstituents=[er],a.links.deferralWriteConstituents=[er]);i&&n.pop();return n.push(a),!0}(e,t))&&(i|=1),(lk(e)&&fb(e,256)||ek(e)&&fb(e.parent,256))&&(i|=4),n.resolvedSignature=ru(e,d,r,t,void 0,void 0,a,i)}return n.resolvedSignature}function Sp(e){if(!Ih(e)||!Rd(e))return;const n=Al(e);return(null==n?void 0:n.typeExpression)&&sN(Fb(n.typeExpression))}function Ap(e){const n=Ra(e);return void 0===n.containsArgumentsReference&&(512&n.flags?n.containsArgumentsReference=!0:n.containsArgumentsReference=function e(n){if(!n)return!1;switch(n.kind){case 79:return n.escapedText===he.escapedName&&hB(n)===he;case 169:case 171:case 174:case 175:return 164===n.name.kind&&e(n.name);case 208:case 209:return e(n.expression);case 299:return e(n.initializer);default:return!Yy(n)&&!xm(n)&&!!CD(n,e)}}(e.body)),n.containsArgumentsReference}function Lp(e){if(!e||!e.declarations)return i;const n=[];for(let t=0;t<e.declarations.length;t++){const r=e.declarations[t];if(Id(r)){if(t>0&&r.body){const n=e.declarations[t-1];if(r.parent===n.parent&&r.kind===n.kind&&r.pos===n.end)continue}if(Ih(r)&&r.jsDoc){let e=!1;for(const t of r.jsDoc)if(t.tags)for(const i of t.tags)if(iR(i)){const t=i.typeExpression;void 0!==t.type||ek(r)||US(t,un),n.push(xp(t)),e=!0}if(e)continue}n.push(!BS(r)&&!Gm(r)&&Sp(r)||xp(r))}}return n}function Cp(e){const n=Oo(e,e);if(n){const e=Bo(n);if(e)return Sl(e)}return un}function kp(e){if(e.thisParameter)return Sl(e.thisParameter)}function Ip(e){if(!e.resolvedTypePredicate){if(e.target){const r=Ip(e.target);e.resolvedTypePredicate=r?(n=r,t=e.mapper,mp(n.kind,n.parameterName,n.parameterIndex,AE(n.type,t))):Jr}else if(e.compositeSignatures)e.resolvedTypePredicate=function(e,n){let t;const r=[];for(const a of e){const e=Ip(a);if(!e||2===e.kind||3===e.kind){if(2097152!==n)continue;return}if(t){if(!Kg(t,e))return}else t=e;r.push(e.type)}if(!t)return;const i=wp(r,n);return mp(t.kind,t.parameterName,t.parameterIndex,i)}(e.compositeSignatures,e.compositeKind)||Jr;else{const n=e.declaration&&eb(e.declaration);let t;if(!n){const n=Sp(e.declaration);n&&e!==n&&(t=Ip(n))}e.resolvedTypePredicate=n&&ok(n)?function(e,n){const t=e.parameterName,r=e.type&&Fb(e.type);return 194===t.kind?mp(e.assertsModifier?2:0,void 0,void 0,r):mp(e.assertsModifier?3:1,t.escapedText,M(n.parameters,(e=>e.escapedName===t.escapedText)),r)}(n,e):t||Jr}Nt.assert(!!e.resolvedTypePredicate)}var n,t;return e.resolvedTypePredicate===Jr?void 0:e.resolvedTypePredicate}function wp(e,n,t){return 2097152!==n?Pg(e,t):hy(e)}function Rp(e){if(!e.resolvedReturnType){if(!nc(e,3))return mn;let n=e.target?AE(Rp(e.target),e.mapper):e.compositeSignatures?AE(wp(W(e.compositeSignatures,Rp),e.compositeKind,2),e.mapper):Fp(e.declaration)||(Vp(e.declaration.body)?un:eO(e.declaration));if(8&e.flags?n=Zx(n):16&e.flags&&(n=$x(n)),!ac()){if(e.declaration){const n=eb(e.declaration);if(n)_a(n,Wo.Return_type_annotation_circularly_references_itself);else if(Y){const n=e.declaration,t=Xc(n);t?_a(t,Wo._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Vf(t)):_a(n,Wo.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}n=un}e.resolvedReturnType=n}return e.resolvedReturnType}function Fp(e){if(173===e.kind)return ad($o(e.parent.symbol));if(Jw(e)){const n=jg(e);if(n&&ek(n.parent))return ad($o(n.parent.parent.symbol))}if(Sg(e))return Fb(e.parameters[0].type);const n=eb(e);if(n)return Fb(n);if(174===e.kind&&qd(e)){const n=Ih(e)&&Tc(e);if(n)return n;const t=ul(cp(Qo(e),175));if(t)return t}return function(e){const n=Sp(e);return n&&Rp(n)}(e)}function Gp(e){return!e.resolvedReturnType&&tc(e,3)>=0}function Bp(e){if(sB(e)){const n=Sl(e.parameters[e.parameters.length-1]),t=Vx(n)?Kx(n):n;return t&&rp(t,On)}}function Up(e,n,t,r){const i=Hp(e,Ep(n,e.typeParameters,hp(e.typeParameters),t));if(r){const e=cN(Rp(i));if(e){const n=au(e);n.typeParameters=r;const t=au(i);return t.resolvedReturnType=Jp(n),t}}return i}function Hp(e,n){const t=e.instantiations||(e.instantiations=new Map),r=of(n);let i=t.get(r);return i||t.set(r,i=Kp(e,n)),i}function Kp(e,n){return hE(e,function(e,n){return rE(e.typeParameters,n)}(e,n),!0)}function Wp(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return hE(e,uE(e.typeParameters),!0)}(e)):e}function zp(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=function(e){return Up(e,W(e.typeParameters,(e=>e.target&&!T_(e.target)?e.target:e)),Ih(e.declaration))}(e)):e}function qp(e){const n=e.typeParameters;if(n){if(e.baseSignatureCache)return e.baseSignatureCache;const t=uE(n),r=rE(n,W(n,(e=>T_(e)||xn)));let i=W(n,(e=>AE(e,r)||xn));for(let e=0;e<n.length-1;e++)i=Wb(i,r);return i=Wb(i,t),e.baseSignatureCache=hE(e,rE(n,i),!0)}return e}function Jp(e){var n;if(!e.isolatedSignatureType){const t=null==(n=e.declaration)?void 0:n.kind,r=void 0===t||173===t||177===t||182===t,a=_s(16);a.members=E,a.properties=i,a.callSignatures=r?i:[e],a.constructSignatures=r?[e]:i,a.indexInfos=i,e.isolatedSignatureType=a}return e.isolatedSignatureType}function Xp(e){return e.members?Yp(e.members):void 0}function Yp(e){return e.get("__index")}function $p(e,n,t,r){return{keyType:e,type:n,isReadonly:t,declaration:r}}function Qp(e){const n=Xp(e);return n?Zp(n):i}function Zp(e){if(e.declarations){const n=[];for(const t of e.declarations)if(1===t.parameters.length){const e=t.parameters[0];e.type&&DL(Fb(e.type),(e=>{ef(e)&&!$_(n,e)&&n.push($p(e,t.type?Fb(t.type):un,pb(t,64),t))}))}return n}return i}function ef(e){return!!(4108&e.flags)||uv(e)||!!(2097152&e.flags)&&!_v(e)&&ce(e.types,ef)}function nf(e){return ee(j(e.symbol&&e.symbol.declarations,zC),Pl)[0]}function tf(e,n){var t;let r;if(null==(t=e.symbol)?void 0:t.declarations)for(const i of e.symbol.declarations)if(192===i.parent.kind){const[t=i.parent,a]=Qg(i.parent.parent);if(180!==a.kind||n){if(166===a.kind&&a.dotDotDotToken||188===a.kind||199===a.kind&&a.dotDotDotToken)r=Te(r,Mh(xn));else if(201===a.kind)r=Te(r,Dn);else if(165===a.kind&&197===a.parent.kind)r=Te(r,nt);else if(197===a.kind&&a.type&&ey(a.type)===i.parent&&191===a.parent.kind&&a.parent.extendsType===a&&197===a.parent.checkType.kind&&a.parent.checkType.type){const e=a.parent.checkType;r=Te(r,AE(Fb(e.type),sE(fd(Qo(e.typeParameter)),e.typeParameter.constraint?Fb(e.typeParameter.constraint):nt)))}}else{const n=a,i=fM(n);if(i){const a=n.typeArguments.indexOf(t);if(a<i.length){const t=T_(i[a]);if(t){const a=AE(t,lE(i,i.map(((e,t)=>()=>uM(n,i,t)))));a!==e&&(r=Te(r,a))}}}}}return r&&hy(r)}function rf(e){if(!e.constraint)if(e.target){const n=T_(e.target);e.constraint=n?AE(n,e.mapper):wt}else{const n=nf(e);if(n){let t=Fb(n);1&t.flags&&!_c(t)&&(t=197===n.parent.parent.kind?nt:xn),e.constraint=t}else e.constraint=tf(e)||wt}return e.constraint===wt?void 0:e.constraint}function af(e){const n=cp(e.symbol,165),t=_R(n.parent)?Gg(n.parent):n.parent;return t&&Zo(t)}function of(e){let n="";if(e){const t=e.length;let r=0;for(;r<t;){const i=e[r].id;let a=1;for(;r+a<t&&e[r+a].id===i+a;)a++;n.length&&(n+=","),n+=i,a>1&&(n+=":"+a),r+=a}}return n}function cf(e,n){return e?`@${eB(e)}`+(n?`:${of(n)}`:""):""}function df(e,n){let t=0;for(const r of e)void 0!==n&&r.flags&n||(t|=YE(r));return 458752&t}function uf(e,n){return ce(n)&&e===kt?xn:pf(e,n)}function pf(e,n){const t=of(n);let r=e.instantiations.get(t);return r||(r=_s(4,e.symbol),e.instantiations.set(t,r),r.objectFlags|=n?df(n):0,r.target=e,r.resolvedTypeArguments=n),r}function ff(e){const n=ls(e.flags,e.symbol);return n.objectFlags=e.objectFlags,n.target=e.target,n.resolvedTypeArguments=e.resolvedTypeArguments,n}function mf(e,n,t,r,i){if(!r){const e=Zv(r=Yv(n));i=t?Wb(e,t):e}const a=_s(4,e.symbol);return a.target=e,a.node=n,a.mapper=t,a.aliasSymbol=r,a.aliasTypeArguments=i,a}function bf(e){var n,t;if(!e.resolvedTypeArguments){if(!nc(e,6))return(null==(n=e.target.localTypeParameters)?void 0:n.map((()=>mn)))||i;const r=e.node,o=r?180===r.kind?de(e.target.outerTypeParameters,_M(r,e.target.localTypeParameters)):185===r.kind?[Fb(r.elementType)]:W(r.elements,Fb):i;ac()?e.resolvedTypeArguments=e.mapper?Wb(o,e.mapper):o:(e.resolvedTypeArguments=(null==(t=e.target.localTypeParameters)?void 0:t.map((()=>mn)))||i,_a(e.node||a,e.target.symbol?Wo.Type_arguments_for_0_circularly_reference_themselves:Wo.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&Gs(e.target.symbol)))}return e.resolvedTypeArguments}function Ef(e){return S(e.target.typeParameters)}function Lf(e,n){const t=hd($o(n)),r=t.localTypeParameters;if(r){const n=S(e.typeArguments),i=hp(r),a=Ih(e);if(!(!Y&&a)&&(n<i||n>r.length)){const n=a&&rI(e)&&!Xw(e.parent);if(_a(e,i===r.length?n?Wo.Expected_0_type_arguments_provide_these_with_an_extends_tag:Wo.Generic_type_0_requires_1_type_argument_s:n?Wo.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:Wo.Generic_type_0_requires_between_1_and_2_type_arguments,Us(t,void 0,2),i,r.length),!a)return mn}if(180===e.kind&&Yh(e,S(e.typeArguments)!==r.length))return mf(t,e,void 0);return pf(t,de(t.outerTypeParameters,Ep(hm(e),r,i,a)))}return Zf(e,n)?t:mn}function If(e,n,t,r){const i=hd(e);if(i===bn&&qG.has(e.escapedName)&&n&&1===n.length)return Zy(e,n[0]);const a=wa(e),o=a.typeParameters,s=of(n)+cf(t,r);let c=a.instantiations.get(s);return c||a.instantiations.set(s,c=LE(i,rE(o,Ep(n,o,hp(o),Ih(e.valueDeclaration))),t,r)),c}function wf(e){var n;const t=null==(n=e.declarations)?void 0:n.find(Lg);return!(!t||!qm(t))}function Rf(e){return e.parent?`${Rf(e.parent)}.${e.escapedName}`:e.escapedName}function Nf(e){const n=(163===e.kind?e.right:208===e.kind?e.name:e).escapedText;if(n){const t=163===e.kind?Nf(e.left):208===e.kind?Nf(e.expression):void 0,r=t?`${Rf(t)}.${n}`:n;let i=cn.get(r);return i||(cn.set(r,i=va(524288,n,1048576)),i.parent=t,i.links.declaredType=hn),i}return on}function Df(e,n,t){const r=function(e){switch(e.kind){case 180:return e.typeName;case 230:const n=e.expression;if(qb(n))return n}}(e);if(!r)return on;const i=No(r,n,t);return i&&i!==on?i:t?on:Nf(r)}function Of(e,n){if(n===on)return mn;if(96&(n=function(e){const n=e.valueDeclaration;if(!n||!Ih(n)||524288&e.flags||zh(n,!1))return;const t=NI(n)?Kh(n):Wh(n);if(t){const n=Zo(t);if(n)return XN(n,e)}}(n)||n).flags)return Lf(e,n);if(524288&n.flags)return function(e,n){if(1048576&FE(n)){const t=hm(e),r=cf(n,t);let i=ln.get(r);return i||(i=us(1,"error"),i.aliasSymbol=n,i.aliasTypeArguments=t,ln.set(r,i)),i}const t=hd(n),r=wa(n).typeParameters;if(r){const t=S(e.typeArguments),i=hp(r);if(t<i||t>r.length)return _a(e,i===r.length?Wo.Generic_type_0_requires_1_type_argument_s:Wo.Generic_type_0_requires_between_1_and_2_type_arguments,Gs(n),i,r.length),mn;const a=Yv(e);let o,s=!a||!wf(n)&&wf(a)?void 0:a;if(s)o=Zv(s);else if(i_(e)){const n=Df(e,2097152,!0);if(n&&n!==on){const t=To(n);t&&524288&t.flags&&(s=t,o=hm(e)||(r?[]:void 0))}}return If(n,hm(e),s,o)}return Zf(e,n)?t:mn}(e,n);const t=gd(n);if(t)return Zf(e,n)?Sb(t):mn;if(111551&n.flags&&Qf(e)){const t=function(e,n){const t=Ra(e);if(!t.resolvedJSDocType){const r=Sl(n);let i=r;if(n.valueDeclaration){const t=202===e.kind&&e.qualifier;r.symbol&&r.symbol!==n&&t&&(i=Of(e,r.symbol))}t.resolvedJSDocType=i}return t.resolvedJSDocType}(e,n);return t||(Df(e,788968),Sl(n))}return mn}function Mf(e,n){if(3&n.flags||n===e||1&e.flags)return e;const t=`${Eg(e)}>${Eg(n)}`,r=Je.get(t);if(r)return r;const i=cs(33554432);return i.baseType=e,i.constraint=n,Je.set(t,i),i}function Gf(e){return hy([e.constraint,e.baseType])}function Kf(e){return 186===e.kind&&1===e.elements.length}function Xf(e,n,t){return Kf(n)&&Kf(t)?Xf(e,n.elements[0],t.elements[0]):Rv(Fb(n))===Rv(e)?Fb(t):void 0}function Qf(e){return!!(8388608&e.flags)&&(180===e.kind||202===e.kind)}function Zf(e,n){return!e.typeArguments||(_a(e,Wo.Type_0_is_not_generic,n?Gs(n):e.typeName?Vf(e.typeName):FG),!1)}function tm(e){if(IC(e.typeName)){const n=e.typeArguments;switch(e.typeName.escapedText){case"String":return Zf(e),Dn;case"Number":return Zf(e),On;case"Boolean":return Zf(e),Hn;case"Void":return Zf(e),Wn;case"Undefined":return Zf(e),An;case"Null":return Zf(e),wn;case"Function":case"function":return Zf(e),Kt;case"array":return n&&n.length||Y?void 0:er;case"promise":return n&&n.length||Y?void 0:$D(un);case"Object":if(n&&2===n.length){if(Dh(e)){const e=Fb(n[0]),t=Fb(n[1]),r=e===Dn||e===On?[$p(e,t,!1)]:i;return vs(void 0,E,i,i,r)}return un}return Zf(e),Y?void 0:un}}}function fm(e){const n=Ra(e);if(!n.resolvedType){if(ql(e)&&hu(e.parent))return n.resolvedSymbol=on,n.resolvedType=OO(e.parent.expression);let t,r;const i=788968;Qf(e)&&(r=tm(e),r||(t=Df(e,i,!0),t===on?t=Df(e,111551|i):Df(e,i),r=Of(e,t))),r||(t=Df(e,i),r=Of(e,t)),n.resolvedSymbol=t,n.resolvedType=r}return n.resolvedType}function hm(e){return W(e.typeArguments,Fb)}function gm(e){const n=Ra(e);if(!n.resolvedType){const t=dD(e);n.resolvedType=Sb(DS(t))}return n.resolvedType}function ym(e,n){function t(e){const n=e.declarations;if(n)for(const t of n)switch(t.kind){case 260:case 261:case 263:return t}}if(!e)return n?kt:bt;const r=hd(e);return 524288&r.flags?S(r.typeParameters)!==n?(_a(t(e),Wo.Global_type_0_must_have_1_type_parameter_s,jc(e),n),n?kt:bt):r:(_a(t(e),Wo.Global_type_0_must_be_a_class_or_interface_type,jc(e)),n?kt:bt)}function vm(e,n){return Tm(e,111551,n?Wo.Cannot_find_global_value_0:void 0)}function bm(e,n){return Tm(e,788968,n?Wo.Cannot_find_global_type_0:void 0)}function Em(e,n,t){const r=Tm(e,788968,t?Wo.Cannot_find_global_type_0:void 0);if(!r||(hd(r),S(wa(r).typeParameters)===n))return r;_a(r.declarations&&D(r.declarations,FI),Wo.Global_type_0_must_have_1_type_parameter_s,jc(r),n)}function Tm(e,n,t){return Fa(void 0,e,n,t,e,!1,!1,!1)}function Pm(e,n,t){const r=bm(e,t);return r||t?ym(r,n):void 0}function Fm(){return xr||(xr=Pm("ImportMeta",0,!0)||bt)}function Vm(){if(!Sr){const e=va(0,"ImportMetaExpression"),n=Fm(),t=va(4,"meta",8);t.parent=e,t.links.type=n;const r=dp([t]);e.members=r,Sr=vs(e,r,i,i,i)}return Sr}function jm(e){return Ar||(Ar=Pm("ImportCallOptions",0,e))||bt}function Hm(e){return ir||(ir=vm("Symbol",e))}function Km(){return or||(or=Pm("Symbol",0,!1))||bt}function Wm(e){return cr||(cr=Pm("Promise",1,e))||kt}function zm(e){return lr||(lr=Pm("PromiseLike",1,e))||kt}function Jm(e){return dr||(dr=vm("Promise",e))}function Ym(e){return yr||(yr=Pm("AsyncIterable",1,e))||kt}function ih(e){return _r||(_r=Pm("Iterable",1,e))||kt}function ph(e,n=0){const t=Tm(e,788968,void 0);return t&&ym(t,n)}function fh(e){return wr||(wr=Em("Awaited",1,e)||(e?on:void 0)),wr===on?void 0:wr}function gh(e,n){return e!==kt?pf(e,n):bt}function kh(e){return gh(sr||(sr=Pm("TypedPropertyDescriptor",1,!0)||kt),[e])}function Rh(e){return gh(ih(!0),[e])}function Mh(e,n){return gh(n?Jt:qt,[e])}function Gh(e){switch(e.kind){case 187:return 2;case 188:return Bh(e);case 199:return e.questionToken?2:e.dotDotDotToken?Bh(e):1;default:return 1}}function Bh(e){return Pb(e.type)?4:8}function Vh(e){const n=function(e){return xk(e)&&146===e.operator}(e.parent);if(Pb(e))return n?Jt:qt;return sg(W(e.elements,Gh),n,ce(e.elements,(e=>199!==e.kind))?void 0:e.elements)}function Yh(e,n){return!!Yv(e)||tg(e)&&(185===e.kind?rg(e.elementType):186===e.kind?ce(e.elements,rg):n||ce(e.typeArguments,rg))}function tg(e){const n=e.parent;switch(n.kind){case 193:case 199:case 180:case 189:case 190:case 196:case 191:case 195:case 185:case 186:return tg(n);case 262:return!0}return!1}function rg(e){switch(e.kind){case 180:return Qf(e)||!!(524288&Df(e,788968).flags);case 183:return!0;case 195:return 156!==e.operator&&rg(e.type);case 193:case 187:case 199:case 319:case 317:case 318:case 312:return rg(e.type);case 188:return 185!==e.type.kind||rg(e.type.elementType);case 189:case 190:return ce(e.types,rg);case 196:return rg(e.objectType)||rg(e.indexType);case 191:return rg(e.checkType)||rg(e.extendsType)||rg(e.trueType)||rg(e.falseType)}return!1}function ig(e,n,t=!1,r){const i=sg(n||W(e,(e=>1)),t,r);return i===kt?bt:e.length?cg(i,e):i}function sg(e,n,t){if(1===e.length&&4&e[0])return n?Jt:qt;const r=W(e,(e=>1&e?"#":2&e?"?":4&e?".":"*")).join()+(n?"R":"")+(t&&t.length?","+W(t,ZG).join(","):"");let a=ke.get(r);return a||ke.set(r,a=function(e,n,t){const r=e.length,a=V(e,(e=>!!(9&e)));let o;const s=[];let c=0;if(r){o=new Array(r);for(let i=0;i<r;i++){const r=o[i]=ps(),a=e[i];if(c|=a,!(12&c)){const e=va(4|(2&a?16777216:0),""+i,n?8:0);e.links.tupleLabelDeclaration=null==t?void 0:t[i],e.links.type=r,s.push(e)}}}const l=s.length,d=va(4,"length",n?8:0);if(12&c)d.links.type=On;else{const e=[];for(let n=a;n<=r;n++)e.push(kb(n));d.links.type=Pg(e)}s.push(d);const u=_s(12);return u.typeParameters=o,u.outerTypeParameters=void 0,u.localTypeParameters=o,u.instantiations=new Map,u.instantiations.set(of(u.typeParameters),u),u.target=u,u.resolvedTypeArguments=u.typeParameters,u.thisType=ps(),u.thisType.isThisType=!0,u.thisType.constraint=u,u.declaredProperties=s,u.declaredCallSignatures=i,u.declaredConstructSignatures=i,u.declaredIndexInfos=i,u.elementFlags=e,u.minLength=a,u.fixedLength=l,u.hasRestElement=!!(12&c),u.combinedFlags=c,u.readonly=n,u.labeledElementDeclarations=t,u}(e,n,t)),a}function cg(e,n){return 8&e.objectFlags?pg(e,n):pf(e,n)}function pg(e,n){var t,r,i;if(!(14&e.combinedFlags))return pf(e,n);if(8&e.combinedFlags){const t=M(n,((n,t)=>!!(8&e.elementFlags[t]&&1179648&n.flags)));if(t>=0)return by(W(n,((n,t)=>8&e.elementFlags[t]?n:xn)))?BL(n[t],(r=>pg(e,je(n,t,r)))):mn}const o=[],s=[];let c=[],l=-1,d=-1,u=-1;for(let f=0;f<n.length;f++){const s=n[f],c=e.elementFlags[f];if(8&c)if(58982400&s.flags||m_(s))p(s,8,null==(t=e.labeledElementDeclarations)?void 0:t[f]);else if(Vx(s)){const e=bf(s);if(e.length+o.length>=1e4)return _a(a,xm(a)?Wo.Type_produces_a_tuple_type_that_is_too_large_to_represent:Wo.Expression_produces_a_tuple_type_that_is_too_large_to_represent),mn;A(e,((e,n)=>{var t;return p(e,s.target.elementFlags[n],null==(t=s.target.labeledElementDeclarations)?void 0:t[n])}))}else p(Ax(s)&&rp(s,On)||mn,4,null==(r=e.labeledElementDeclarations)?void 0:r[f]);else p(s,c,null==(i=e.labeledElementDeclarations)?void 0:i[f])}for(let a=0;a<l;a++)2&s[a]&&(s[a]=1);d>=0&&d<u&&(o[d]=Pg(q(o.slice(d,u+1),((e,n)=>8&s[d+n]?Lv(e,On):e))),o.splice(d+1,u-d),s.splice(d+1,u-d),null==c||c.splice(d+1,u-d));const _=sg(s,e.readonly,c);return _===kt?bt:s.length?pf(_,o):_;function p(e,n,t){1&n&&(l=s.length),4&n&&d<0&&(d=s.length),6&n&&(u=s.length),o.push(2&n?Sc(e,!0):e),s.push(n),c&&t?c.push(t):c=void 0}}function mg(e,n,t=0){const r=e.target,a=Ef(e)-t;return n>r.fixedLength?function(e){const n=Kx(e);return n&&Mh(n)}(e)||ig(i):ig(bf(e).slice(n,a),r.elementFlags.slice(n,a),!1,r.labeledElementDeclarations&&r.labeledElementDeclarations.slice(n,a))}function gg(e){return Pg(Te($e(e.target.fixedLength,(e=>Cb(""+e))),Hy(e.target.readonly?Jt:qt)))}function yg(e,n){return e.elementFlags.length-P(e.elementFlags,(e=>!(e&n)))-1}function Eg(e){return e.id}function Cg(e,n){return He(e,n,Eg,Un)>=0}function kg(e,n){const t=He(e,n,Eg,Un);return t<0&&(e.splice(~t,0,n),!0)}function wg(e,n,t){const r=t.flags;if(1048576&r)return Dg(e,n|(function(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}(t)?1048576:0),t.types);if(!(131072&r))if(n|=205258751&r,465829888&r&&(n|=33554432),t===pn&&(n|=8388608),!F&&98304&r)65536&YE(t)||(n|=4194304);else{const n=e.length,r=n&&t.id>e[n-1].id?~n:He(e,t,Eg,Un);r<0&&e.splice(~r,0,t)}return n}function Dg(e,n,t){for(const r of t)n=wg(e,n,r);return n}function Og(e,n){for(const t of n)if(1048576&t.flags){const n=t.origin;t.aliasSymbol||n&&!(1048576&n.flags)?Le(e,t):n&&1048576&n.flags&&Og(e,n.types)}}function Mg(e,n){const t=ds(e);return t.types=n,t}function Pg(e,n=1,t,r,i){if(0===e.length)return zn;if(1===e.length)return e[0];let o=[];const s=Dg(o,0,e);if(0!==n){if(3&s)return 1&s?8388608&s?pn:un:65536&s||Cg(o,xn)?xn:Sn;if(32768&s&&o.length>=2&&o[0]===An&&o[1]===Cn&&ot(o,1),(402664352&s||16384&s&&32768&s)&&function(e,n,t){let r=e.length;for(;r>0;){r--;const i=e[r],a=i.flags;(402653312&a&&4&n||256&a&&8&n||2048&a&&64&n||8192&a&&4096&n||t&&32768&a&&16384&n||Ab(i)&&Cg(e,i.regularType))&&ot(e,r)}}(o,s,!!(2&n)),128&s&&134217728&s&&function(e){const n=j(e,(e=>!!(134217728&e.flags)&&uv(e)));if(n.length){let t=e.length;for(;t>0;){t--;const r=e[t];128&r.flags&&ce(n,(e=>LA(r,e)))&&ot(e,t)}}}(o),2===n&&(o=function(e,n){var t;if(e.length<2)return e;const r=of(e),i=Xe.get(r);if(i)return i;const o=n&&ce(e,(e=>!!(524288&e.flags)&&!m_(e)&&mT(h_(e)))),s=e.length;let c=s,l=0;for(;c>0;){c--;const n=e[c];if(o||469499904&n.flags){const r=61603840&n.flags?D(b_(n),(e=>Nx(Sl(e)))):void 0,i=r&&Sb(Sl(r));for(const o of e)if(n!==o){if(1e5===l&&l/(s-c)*s>1e6)return null==(t=Vr)||t.instant(Vr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:e.map((e=>e.id))}),void _a(a,Wo.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,r&&61603840&o.flags){const e=dc(o,r.escapedName);if(e&&Nx(e)&&Sb(e)!==i)continue}if(TT(n,o,Qi)&&(!(1&YE(wl(n)))||!(1&YE(wl(o)))||zE(n,o))){ot(e,c);break}}}}return Xe.set(r,e),e}(o,!!(524288&s)),!o))return mn;if(0===o.length)return 65536&s?4194304&s?wn:Nn:32768&s?4194304&s?An:Ln:zn}if(!i&&1048576&s){const n=[];Og(n,e);const r=[];for(const e of o)ce(n,(n=>Cg(n.types,e)))||r.push(e);if(!t&&1===n.length&&0===r.length)return n[0];if(We(n,((e,n)=>e+n.types.length),0)+r.length===o.length){for(const e of n)kg(r,e);i=Mg(1048576,r)}}return qg(o,(36323363&s?0:32768)|(2097152&s?16777216:0),t,r,i)}function Kg(e,n){return e.kind===n.kind&&e.parameterIndex===n.parameterIndex}function qg(e,n,t,r,i){if(0===e.length)return zn;if(1===e.length)return e[0];const a=(i?1048576&i.flags?`|${of(i.types)}`:2097152&i.flags?`&${of(i.types)}`:`#${i.type.id}|${of(e)}`:of(e))+cf(t,r);let o=Ie.get(a);return o||(o=cs(1048576),o.objectFlags=n|df(e,98304),o.types=e,o.origin=i,o.aliasSymbol=t,o.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(o.flags|=16,o.intrinsicName="boolean"),Ie.set(a,o)),o}function Xg(e,n,t){const r=t.flags;return 2097152&r?Zg(e,n,t.types):(gT(t)?16777216&n||(n|=16777216,e.set(t.id.toString(),t)):(3&r?t===pn&&(n|=8388608):!F&&98304&r||(t===Cn&&(n|=262144,t=An),e.has(t.id.toString())||(109472&t.flags&&109472&n&&(n|=67108864),e.set(t.id.toString(),t))),n|=205258751&r),n)}function Zg(e,n,t){for(const r of t)n=Xg(e,n,Sb(r));return n}function iy(e,n){for(const t of e)if(!Cg(t.types,n)){const e=128&n.flags?Dn:256&n.flags?On:2048&n.flags?Mn:8192&n.flags?Kn:void 0;if(!e||!Cg(t.types,e))return!1}return!0}function oy(e,n){return N(e,(e=>!!(1048576&e.flags)&&ce(e.types,(e=>!!(e.flags&n)))))}function sy(e,n){for(let t=0;t<e.length;t++)e[t]=PL(e[t],(e=>!(e.flags&n)))}function hy(e,n,t,r){const i=new Map,a=Zg(i,0,e),o=Qe(i.values());if(131072&a)return G(o,qn)?qn:zn;if(F&&98304&a&&84410368&a||67108864&a&&402783228&a||402653316&a&&67238776&a||296&a&&469891796&a||2112&a&&469889980&a||12288&a&&469879804&a||49152&a&&469842940&a)return zn;if(134217728&a&&128&a&&function(e){let n=e.length;const t=j(e,(e=>!!(128&e.flags)));for(;n>0;){n--;const r=e[n];if(134217728&r.flags)for(const i of t){if(HE(i,r)){ot(e,n);break}if(uv(r))return!0}}return!1}(o))return zn;if(1&a)return 8388608&a?pn:un;if(!F&&98304&a)return 16777216&a?zn:32768&a?An:wn;if((4&a&&402653312&a||8&a&&256&a||64&a&&2048&a||4096&a&&8192&a||16384&a&&32768&a||16777216&a&&470302716&a)&&(r||function(e,n){let t=e.length;for(;t>0;){t--;const r=e[t];(4&r.flags&&402653312&n||8&r.flags&&256&n||64&r.flags&&2048&n||4096&r.flags&&8192&n||16384&r.flags&&32768&n||gT(r)&&470302716&n)&&ot(e,t)}}(o,a)),262144&a&&(o[o.indexOf(An)]=Cn),0===o.length)return xn;if(1===o.length)return o[0];const s=of(o)+cf(n,t);let c=we.get(s);if(!c){if(1048576&a)if(function(e){let n;const t=M(e,(e=>!!(32768&YE(e))));if(t<0)return!1;let r=t+1;for(;r<e.length;){const i=e[r];32768&YE(i)?((n||(n=[e[t]])).push(i),ot(e,r)):r++}if(!n)return!1;const i=[],a=[];for(const o of n)for(const e of o.types)kg(i,e)&&iy(n,e)&&kg(a,e);return e[t]=qg(a,32768),!0}(o))c=hy(o,n,t);else if(oy(o,32768)){const e=ce(o,sS)?Cn:An;sy(o,32768),c=Pg([hy(o),e],1,n,t)}else if(oy(o,65536))sy(o,65536),c=Pg([hy(o),wn],1,n,t);else{if(!by(o))return mn;const e=function(e){const n=yy(e),t=[];for(let r=0;r<n;r++){const n=e.slice();let i=r;for(let t=e.length-1;t>=0;t--)if(1048576&e[t].flags){const r=e[t].types,a=r.length;n[t]=r[i%a],i=Math.floor(i/a)}const a=hy(n);131072&a.flags||t.push(a)}return t}(o);c=Pg(e,1,n,t,ce(e,(e=>!!(2097152&e.flags)))&&Ty(e)>Ty(o)?Mg(2097152,o):void 0)}else c=function(e,n,t){const r=cs(2097152);return r.objectFlags=df(e,98304),r.types=e,r.aliasSymbol=n,r.aliasTypeArguments=t,r}(o,n,t);we.set(s,c)}return c}function yy(e){return We(e,((e,n)=>1048576&n.flags?e*n.types.length:131072&n.flags?0:e),1)}function by(e){var n;const t=yy(e);return!(t>=1e5)||(null==(n=Vr)||n.instant(Vr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map((e=>e.id)),size:t}),_a(a,Wo.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function Ey(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?Ey(e.origin):Ty(e.types):1}function Ty(e){return We(e,((e,n)=>e+Ey(n)),0)}function xy(e,n){const t=cs(4194304);return t.type=e,t.stringsOnly=n,t}function Ay(e,n){return n?e.resolvedStringIndexType||(e.resolvedStringIndexType=xy(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=xy(e,!1))}function Ly(e){return wC(e)?zn:IC(e)?Cb(Bc(e.escapedText)):Sb(WC(e)?AI(e):ZO(e))}function Cy(e,n,t){if(t||!(24&GE(e))){let t=wa(eu(e)).nameType;if(!t){const n=Xc(e.valueDeclaration);t="default"===e.escapedName?Cb("default"):n&&Ly(n)||(Uy(e)?void 0:Cb(jc(e)))}if(t&&t.flags&n)return t}return zn}function Ry(e,n){return!!(e.flags&n||2097152&e.flags&&ce(e.types,(e=>Ry(e,n))))}function Gy(e,n,t){const r=t&&(7&YE(e)||e.aliasSymbol)?function(e){const n=ds(4194304);return n.type=e,n}(e):void 0;return Pg(de(W(b_(e),(e=>Cy(e,n))),W(np(e),(e=>e!==Zr&&Ry(e.keyType,n)?e.keyType===Dn&&8&n?$n:e.keyType:zn))),1,void 0,void 0,r)}function Vy(e){const n=function(e){return 134479871&e.flags?e:e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=AE(e,ut))}(e);return H_(n)!==n}function jy(e){return!!(58982400&e.flags||jx(e)||m_(e)&&!function(e){const n=Vu(e);return function e(t){return!!(202375167&t.flags)||(16777216&t.flags?t.root.isDistributive&&t.checkType===n:137363456&t.flags?N(t.types,e):8388608&t.flags?e(t.objectType)&&e(t.indexType):33554432&t.flags?e(t.baseType)&&e(t.constraint):!!(268435456&t.flags)&&e(t.type))}(Hu(e)||n)}(e)||1048576&e.flags&&ce(e.types,Vy)||2097152&e.flags&&yO(e,465829888)&&ce(e.types,gT))}function Hy(e,n=Z,t){return jy(e=H_(e))?Ay(e,n):1048576&e.flags?hy(W(e.types,(e=>Hy(e,n,t)))):2097152&e.flags?Pg(W(e.types,(e=>Hy(e,n,t)))):32&YE(e)?function(e,n,t){const r=Vu(e),i=ju(e),a=Hu(e.target||e);if(!a&&!t)return i;const o=[];if(Xu(e)){if(hv(i))return Ay(e,n);Gu(G_(Yu(e)),8576,n,c)}else DL(Mu(i),c);hv(i)&&DL(i,c);const s=t?PL(Pg(o),(e=>!(5&e.flags))):Pg(o);return 1048576&s.flags&&1048576&i.flags&&of(s.types)===of(i.types)?i:s;function c(n){const t=a?AE(a,fE(e.mapper,r,n)):n;o.push(t===Dn?$n:t)}}(e,n,t):e===pn?pn:2&e.flags?zn:131073&e.flags?nt:Gy(e,(t?128:402653316)|(n?0:12584),n===Z&&!t)}function Ky(e){if(Z)return e;const n=(Lr||(Lr=Em("Extract",2,!0)||on),Lr===on?void 0:Lr);return n?If(n,[e,Dn]):Dn}function zy(e,n){const t=M(n,(e=>!!(1179648&e.flags)));if(t>=0)return by(n)?BL(n[t],(r=>zy(e,je(n,t,r)))):mn;if(G(n,pn))return pn;const r=[],i=[];let a=e[0];if(!function e(n,t){const o=gn(n);for(let s=0;s<t.length;s++){const c=t[s],l=o?n[s+1]:n;if(101248&c.flags){if(a+=Qy(c)||"",a+=l,!o)return!0}else if(134217728&c.flags){if(a+=c.texts[0],!e(c.texts,c.types))return!1;if(a+=l,!o)return!0}else if(hv(c)||lv(c))r.push(c),i.push(a),a=l;else if(2097152&c.flags){if(!e(n[s+1],c.types))return!1}else if(o)return!1}return!0}(e,n))return Dn;if(0===r.length)return Cb(a);if(i.push(a),N(i,(e=>""===e))){if(N(r,(e=>!!(4&e.flags))))return Dn;if(1===r.length&&uv(r[0]))return r[0]}const o=`${of(r)}|${W(i,(e=>e.length)).join(",")}|${i.join("")}`;let s=ze.get(o);return s||ze.set(o,s=function(e,n){const t=cs(134217728);return t.texts=e,t.types=n,t}(i,r)),s}function Qy(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?mS(e.value):98816&e.flags?e.intrinsicName:void 0}function Zy(e,n){return 1179648&n.flags?BL(n,(n=>Zy(e,n))):128&n.flags?Cb(ev(e,n.value)):134217728&n.flags?zy(...function(e,n,t){switch(qG.get(e.escapedName)){case 0:return[n.map((e=>e.toUpperCase())),t.map((n=>Zy(e,n)))];case 1:return[n.map((e=>e.toLowerCase())),t.map((n=>Zy(e,n)))];case 2:return[""===n[0]?n:[n[0].charAt(0).toUpperCase()+n[0].slice(1),...n.slice(1)],""===n[0]?[Zy(e,t[0]),...t.slice(1)]:t];case 3:return[""===n[0]?n:[n[0].charAt(0).toLowerCase()+n[0].slice(1),...n.slice(1)],""===n[0]?[Zy(e,t[0]),...t.slice(1)]:t]}return[n,t]}(e,n.texts,n.types)):268435456&n.flags&&e===n.symbol?n:268435461&n.flags||hv(n)?nv(e,n):lv(n)?nv(e,zy(["",""],[n])):n}function ev(e,n){switch(qG.get(e.escapedName)){case 0:return n.toUpperCase();case 1:return n.toLowerCase();case 2:return n.charAt(0).toUpperCase()+n.slice(1);case 3:return n.charAt(0).toLowerCase()+n.slice(1)}return n}function nv(e,n){const t=`${eB(e)},${Eg(n)}`;let r=qe.get(t);return r||qe.set(t,r=function(e,n){const t=ls(268435456,e);return t.type=n,t}(e,n)),r}function tv(e){if(Y)return!1;if(4096&YE(e))return!0;if(1048576&e.flags)return N(e.types,tv);if(2097152&e.flags)return ce(e.types,tv);if(465829888&e.flags){const n=R_(e);return n!==e&&tv(n)}return!1}function rv(e,n){return Vd(e)?Yd(e):n&&Cd(n)?Oy(n):void 0}function iv(e,n){if(8208&n.flags){const t=Mc(e.parent,(e=>!iT(e)))||e.parent;return ou(t)?su(t)&&IC(e)&&oL(t,e):N(n.declarations,(e=>!Id(e)||!!(268435456&Nc(e))))}return!0}function sv(e,n,t,r,i,a){var o;const s=i&&209===i.kind?i:void 0,c=i&&wC(i)?void 0:rv(t,i);if(void 0!==c){if(256&a)return gk(n,c)||un;const e=J_(n,c);if(e){if(64&a&&i&&e.declarations&&ga(e)&&iv(i,e)){ya(null!=(o=null==s?void 0:s.argumentExpression)?o:Sk(i)?i.indexType:i,e.declarations,c)}if(s){if(GR(e,s,BR(s.expression,n.symbol)),_O(s,e,Wg(s)))return void _a(s.argumentExpression,Wo.Cannot_assign_to_0_because_it_is_a_read_only_property,Gs(e));if(8&a&&(Ra(i).resolvedSymbol=e),TR(s,e))return _n}const t=Sl(e);return s&&1!==Wg(s)?sC(s,t):i&&Sk(i)&&sS(t)?Pg([t,An]):t}if(ML(n,Vx)&&VS(c)){const e=+c;if(i&&ML(n,(e=>!e.target.hasRestElement))&&!(16&a)){const t=cv(i);if(Vx(n)){if(e<0)return _a(t,Wo.A_tuple_type_cannot_be_indexed_with_a_negative_value),An;_a(t,Wo.Tuple_type_0_of_length_1_has_no_element_at_index_2,Us(n),Ef(n),Bc(c))}else _a(t,Wo.Property_0_does_not_exist_on_type_1,Bc(c),Us(n))}if(e>=0)return l(tp(n,On)),BL(n,(e=>{const n=Kx(e)||An;return 1&a?Pg([n,Cn]):n}))}}if(!(98304&t.flags)&&vO(t,402665900)){if(131073&n.flags)return n;const o=ap(n,t)||tp(n,Dn);if(o){if(2&a&&o.keyType!==On)return void(s&&_a(s,Wo.Type_0_cannot_be_used_to_index_type_1,Us(t),Us(e)));if(i&&o.keyType===Dn&&!vO(t,12)){return _a(cv(i),Wo.Type_0_cannot_be_used_as_an_index_type,Us(t)),1&a?Pg([o.type,Cn]):o.type}return l(o),1&a&&!(n.symbol&&384&n.symbol.flags&&t.symbol&&1024&t.flags&&es(t.symbol)===n.symbol)?Pg([o.type,Cn]):o.type}if(131072&t.flags)return zn;if(tv(n))return un;if(s&&!EO(n)){if(NA(n)){if(Y&&384&t.flags)return Ji.add(qf(s,Wo.Property_0_does_not_exist_on_type_1,t.value,Us(n))),An;if(12&t.flags){return Pg(Te(W(n.properties,(e=>Sl(e))),An))}}if(n.symbol===fe&&void 0!==c&&fe.exports.has(c)&&418&fe.exports.get(c).flags)_a(s,Wo.Property_0_does_not_exist_on_type_1,Bc(c),Us(n));else if(Y&&!x.suppressImplicitAnyIndexErrors&&!(128&a))if(void 0!==c&&wR(c,n)){const e=Us(n);_a(s,Wo.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,c,e,e+"["+sf(s.argumentExpression)+"]")}else if(rp(n,On))_a(s.argumentExpression,Wo.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==c&&(e=OR(c,n)))void 0!==e&&_a(s.argumentExpression,Wo.Property_0_does_not_exist_on_type_1_Did_you_mean_2,c,Us(n),e);else{const e=function(e,n,t){function r(n){const r=y_(e,n);if(r){const e=sN(Sl(r));return!!e&&LD(e)>=1&&WE(t,TD(e,0))}return!1}const i=zg(n)?"set":"get";if(!r(i))return;let a=$b(n.expression);void 0===a?a=i:a+="."+i;return a}(n,s,t);if(void 0!==e)_a(s,Wo.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Us(n),e);else{let e;if(1024&t.flags)e=NT(void 0,Wo.Property_0_does_not_exist_on_type_1,"["+Us(t)+"]",Us(n));else if(8192&t.flags){const r=Ro(t.symbol,s);e=NT(void 0,Wo.Property_0_does_not_exist_on_type_1,"["+r+"]",Us(n))}else 128&t.flags||256&t.flags?e=NT(void 0,Wo.Property_0_does_not_exist_on_type_1,t.value,Us(n)):12&t.flags&&(e=NT(void 0,Wo.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Us(t),Us(n)));e=NT(e,Wo.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Us(r),Us(n)),Ji.add(Yf(Dp(s),s,e))}}}return}}if(tv(n))return un;if(i){const e=cv(i);384&t.flags?_a(e,Wo.Property_0_does_not_exist_on_type_1,""+t.value,Us(n)):12&t.flags?_a(e,Wo.Type_0_has_no_matching_index_signature_for_type_1,Us(n),Us(t)):_a(e,Wo.Type_0_cannot_be_used_as_an_index_type,Us(t))}return uc(t)?t:void 0;function l(e){e&&e.isReadonly&&s&&(zg(s)||ny(s))&&_a(s,Wo.Index_signature_in_type_0_only_permits_reading,Us(n))}}function cv(e){return 209===e.kind?e.argumentExpression:196===e.kind?e.indexType:164===e.kind?e.expression:e}function lv(e){return!!(77&e.flags)||uv(e)}function uv(e){return!!(134217728&e.flags)&&N(e.types,lv)||!!(268435456&e.flags)&&lv(e.type)}function _v(e){return!!gv(e)}function pv(e){return!!(4194304&gv(e))}function hv(e){return!!(8388608&gv(e))}function gv(e){return 3145728&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|We(e.types,((e,n)=>e|gv(n)),0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|gv(e.baseType)|gv(e.constraint)),12582912&e.objectFlags):(58982400&e.flags||m_(e)||jx(e)?4194304:0)|(465829888&e.flags&&!uv(e)?8388608:0)}function Ev(e,n){return 8388608&e.flags?function(e,n){const t=n?"simplifiedForWriting":"simplifiedForReading";if(e[t])return e[t]===Rt?e:e[t];e[t]=Rt;const r=Ev(e.objectType,n),i=Ev(e.indexType,n),a=function(e,n,t){if(1048576&n.flags){const r=W(n.types,(n=>Ev(Lv(e,n),t)));return t?hy(r):Pg(r)}}(r,i,n);if(a)return e[t]=a;if(!(465829888&i.flags)){const a=Tv(r,i,n);if(a)return e[t]=a}if(jx(r)&&296&i.flags){const a=Wx(r,8&i.flags?0:r.target.fixedLength,0,n);if(a)return e[t]=a}if(m_(r)){const i=Hu(r);if(!i||WE(i,Vu(r)))return e[t]=BL(Av(r,e.indexType),(e=>Ev(e,n)))}return e[t]=e}(e,n):16777216&e.flags?function(e,n){const t=e.checkType,r=e.extendsType,i=Fv(e),a=Gv(e);if(131072&a.flags&&Rv(i)===Rv(t)){if(1&t.flags||WE(kE(t),kE(r)))return Ev(i,n);if(Sv(t,r))return zn}else if(131072&i.flags&&Rv(a)===Rv(t)){if(!(1&t.flags)&&WE(kE(t),kE(r)))return zn;if(1&t.flags||Sv(t,r))return Ev(a,n)}return e}(e,n):e}function Tv(e,n,t){if(1048576&e.flags||2097152&e.flags&&!jy(e)){const r=W(e.types,(e=>Ev(Lv(e,n),t)));return 2097152&e.flags||t?hy(r):Pg(r)}}function Sv(e,n){return!!(131072&Pg([Au(e,n),zn]).flags)}function Av(e,n){const t=rE([Vu(e)],[n]),r=_E(e.mapper,t);return AE(Wu(e.target||e),r)}function Lv(e,n,t=0,r,i,a){return kv(e,n,t,r,i,a)||(r?mn:xn)}function Cv(e,n){return ML(e,(e=>{if(384&e.flags){const t=Yd(e);if(VS(t)){const e=+t;return e>=0&&e<n}}return!1}))}function kv(e,n,t=0,r,i,a){if(e===pn||n===pn)return pn;if(!vT(e)||98304&n.flags||!vO(n,12)||(n=Dn),x.noUncheckedIndexedAccess&&32&t&&(t|=1),hv(n)||(r&&196!==r.kind?jx(e)&&!Cv(n,e.target.fixedLength):pv(e)&&(!Vx(e)||!Cv(n,e.target.fixedLength)))){if(3&e.flags)return e;const r=1&t,o=e.id+","+n.id+","+r+cf(i,a);let s=Ke.get(o);return s||Ke.set(o,s=function(e,n,t,r,i){const a=cs(8388608);return a.objectType=e,a.indexType=n,a.accessFlags=t,a.aliasSymbol=r,a.aliasTypeArguments=i,a}(e,n,r,i,a)),s}const o=B_(e);if(1048576&n.flags&&!(16&n.flags)){const s=[];let c=!1;for(const i of n.types){const a=sv(e,o,i,n,r,t|(c?128:0));if(a)s.push(a);else{if(!r)return;c=!0}}if(c)return;return 4&t?hy(s,i,a):Pg(s,1,i,a)}return sv(e,o,n,n,r,72|t)}function Iv(e){const n=Ra(e);if(!n.resolvedType){const t=Fb(e.objectType),r=Fb(e.indexType),i=Yv(e);n.resolvedType=Lv(t,r,0,e,i,Zv(i))}return n.resolvedType}function wv(e){const n=Ra(e);if(!n.resolvedType){const t=_s(32,e.symbol);t.declaration=e,t.aliasSymbol=Yv(e),t.aliasTypeArguments=Zv(t.aliasSymbol),n.resolvedType=t,ju(t)}return n.resolvedType}function Rv(e){return 33554432&e.flags?Rv(e.baseType):8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?Lv(Rv(e.objectType),Rv(e.indexType)):e}function Dv(e){const n=T_(e);return n&&(pv(n)||hv(n))?mE(e):e}function Ov(e){return pk(e)&&S(e.elements)>0&&!ce(e.elements,(e=>mk(e)||hk(e)||fk(e)&&!(!e.questionToken&&!e.dotDotDotToken)))}function Mv(e,n){return _v(e)||n&&Vx(e)&&ce(bf(e),_v)}function Pv(e,n,t,r){let i,o,s=0;for(;;){if(1e3===s){_a(a,Wo.Type_instantiation_is_excessively_deep_and_possibly_infinite),i=mn;break}const l=Ov(e.node.checkType)&&Ov(e.node.extendsType)&&S(e.node.checkType.elements)===S(e.node.extendsType.elements),d=AE(Rv(e.checkType),n),u=Mv(d,l),_=AE(e.extendsType,n);if(d===pn||_===pn)return pn;let p;if(e.inferTypeParameters){const t=q(e.inferTypeParameters,Dv),r=t!==e.inferTypeParameters?rE(e.inferTypeParameters,t):void 0,i=rA(t,void 0,0);if(r){const i=_E(n,r);for(const n of t)-1===e.inferTypeParameters.indexOf(n)&&(n.mapper=i)}u||IA(i.inferences,d,AE(_,r),1536);const a=_E(r,i.mapper);p=n?_E(a,n):a}const f=p?AE(e.extendsType,p):_;if(!u&&!Mv(f,l)){if(!(3&f.flags)&&(1&d.flags||!WE(CE(d),CE(f)))){1&d.flags&&(o||(o=[])).push(AE(Fb(e.node.trueType),p||n));const t=Fb(e.node.falseType);if(16777216&t.flags){const r=t.root;if(r.node.parent===e.node&&(!r.isDistributive||r.checkType===e.checkType)){e=r;continue}if(c(t,n))continue}i=AE(t,n);break}if(3&f.flags||WE(kE(d),kE(f))){const t=Fb(e.node.trueType),r=p||n;if(c(t,r))continue;i=AE(t,r);break}}i=cs(16777216),i.root=e,i.checkType=AE(e.checkType,n),i.extendsType=AE(e.extendsType,n),i.mapper=n,i.combinedMapper=p,i.aliasSymbol=t||e.aliasSymbol,i.aliasTypeArguments=t?r:Wb(e.aliasTypeArguments,n);break}return o?Pg(Te(o,i)):i;function c(i,a){if(16777216&i.flags&&a){const o=i.root;if(o.outerTypeParameters){const c=_E(i.mapper,a),l=W(o.outerTypeParameters,(e=>oE(e,c))),d=rE(o.outerTypeParameters,l),u=o.isDistributive?oE(o.checkType,d):void 0;if(!u||u===o.checkType||!(1179648&u.flags))return e=o,n=d,t=void 0,r=void 0,o.aliasSymbol&&s++,!0}}return!1}}function Fv(e){return e.resolvedTrueType||(e.resolvedTrueType=AE(Fb(e.root.node.trueType),e.mapper))}function Gv(e){return e.resolvedFalseType||(e.resolvedFalseType=AE(Fb(e.root.node.falseType),e.mapper))}function Bv(e){let n;return e.locals&&e.locals.forEach((e=>{262144&e.flags&&(n=Te(n,hd(e)))})),n}function Uv(e){return IC(e)?[e]:Te(Uv(e.left),e.right)}function Vv(e){var n;const t=Ra(e);if(!t.resolvedType){if(!mm(e))return _a(e.argument,Wo.String_literal_expected),t.resolvedSymbol=on,t.resolvedType=mn;const r=e.isTypeOf?111551:8388608&e.flags?900095:788968,i=Oo(e,e.argument.literal);if(!i)return t.resolvedSymbol=on,t.resolvedType=mn;const a=!!(null==(n=i.exports)?void 0:n.get("export=")),o=Bo(i,!1);if(Vp(e.qualifier))if(o.flags&r)t.resolvedType=jv(e,t,o,r);else{_a(e,111551===r?Wo.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:Wo.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),t.resolvedSymbol=on,t.resolvedType=mn}else{const n=Uv(e.qualifier);let i,s=o;for(;i=n.shift();){const o=n.length?1920:r,c=$o(bo(s)),l=e.isTypeOf||Ih(e)&&a?J_(Sl(c),i.escapedText,!1,!0):void 0,d=e.isTypeOf?void 0:Da(qo(c),i.escapedText,o),u=null!=d?d:l;if(!u)return _a(i,Wo.Namespace_0_has_no_exported_member_1,Ro(s),Vf(i)),t.resolvedType=mn;Ra(i).resolvedSymbol=u,Ra(i.parent).resolvedSymbol=u,s=u}t.resolvedType=jv(e,t,s,r)}}return t.resolvedType}function jv(e,n,t,r){const i=bo(t);return n.resolvedSymbol=i,111551===r?uD(Sl(t),e):Of(e,i)}function Wv(e){const n=Ra(e);if(!n.resolvedType){const t=Yv(e);if(0!==Zd(e.symbol).size||t){let r=_s(16,e.symbol);r.aliasSymbol=t,r.aliasTypeArguments=Zv(t),qw(e)&&e.isArrayType&&(r=Mh(r)),n.resolvedType=r}else n.resolvedType=At}return n.resolvedType}function Yv(e){let n=e.parent;for(;Ek(n)||Nw(n)||xk(n)&&146===n.operator;)n=n.parent;return Lg(n)?Qo(n):void 0}function Zv(e){return e?Ul(e):void 0}function rb(e){return!!(524288&e.flags)&&!m_(e)}function ib(e){return hT(e)||!!(474058748&e.flags)}function ab(e,n){if(!(1048576&e.flags))return e;if(N(e.types,ib))return D(e.types,hT)||bt;const t=D(e.types,(e=>!ib(e)));if(!t)return e;return D(e.types,(e=>e!==t&&!ib(e)))?e:function(e){const t=dp();for(const i of b_(e))if(24&GE(i));else if(sb(i)){const e=65536&i.flags&&!(32768&i.flags),r=va(16777220,i.escapedName,Fu(i)|(n?8:0));r.links.type=e?An:Sc(Sl(i),!0),r.declarations=i.declarations,r.links.nameType=wa(i).nameType,r.links.syntheticOrigin=i,t.set(i.escapedName,r)}const r=vs(e.symbol,t,i,i,np(e));return r.objectFlags|=131200,r}(t)}function ob(e,n,t,r,a){if(1&e.flags||1&n.flags)return un;if(2&e.flags||2&n.flags)return xn;if(131072&e.flags)return n;if(131072&n.flags)return e;if(1048576&(e=ab(e,a)).flags)return by([e,n])?BL(e,(e=>ob(e,n,t,r,a))):mn;if(1048576&(n=ab(n,a)).flags)return by([e,n])?BL(n,(n=>ob(e,n,t,r,a))):mn;if(473960444&n.flags)return e;if(pv(e)||pv(n)){if(hT(e))return n;if(2097152&e.flags){const i=e.types,o=i[i.length-1];if(rb(o)&&rb(n))return hy(de(i.slice(0,i.length-1),[ob(o,n,t,r,a)]))}return hy([e,n])}const o=dp(),s=new Set,c=e===bt?np(n):Su([e,n]);for(const i of b_(n))24&GE(i)?s.add(i.escapedName):sb(i)&&o.set(i.escapedName,cb(i,a));for(const i of b_(e))if(!s.has(i.escapedName)&&sb(i))if(o.has(i.escapedName)){const e=o.get(i.escapedName),n=Sl(e);if(16777216&e.flags){const t=de(i.declarations,e.declarations),r=va(4|16777216&i.flags,i.escapedName);r.links.type=Pg([Sl(i),pS(n)],2),r.links.leftSpread=i,r.links.rightSpread=e,r.declarations=t,r.links.nameType=wa(i).nameType,o.set(i.escapedName,r)}}else o.set(i.escapedName,cb(i,a));const l=vs(t,o,i,i,q(c,(e=>function(e,n){return e.isReadonly!==n?$p(e.keyType,e.type,n,e.declaration):e}(e,a))));return l.objectFlags|=2228352|r,l}function sb(e){var n;return!ce(e.declarations,bd)&&(!(106496&e.flags)||!(null==(n=e.declarations)?void 0:n.some((e=>Fd(e.parent)))))}function cb(e,n){const t=65536&e.flags&&!(32768&e.flags);if(!t&&n===uO(e))return e;const r=va(4|16777216&e.flags,e.escapedName,Fu(e)|(n?8:0));return r.links.type=t?An:Sl(e),r.declarations=e.declarations,r.links.nameType=wa(e).nameType,r.links.syntheticOrigin=e,r}function lb(e,n,t,r){const i=ls(e,t);return i.value=n,i.regularType=r||i,i}function db(e){if(2976&e.flags){if(!e.freshType){const n=lb(e.flags,e.value,e.symbol,e);n.freshType=n,e.freshType=n}return e.freshType}return e}function Sb(e){return 2976&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=BL(e,Sb)):e}function Ab(e){return!!(2976&e.flags)&&e.freshType===e}function Cb(e){let n;return Re.get(e)||(Re.set(e,n=lb(128,e)),n)}function kb(e){let n;return Be.get(e)||(Be.set(e,n=lb(256,e)),n)}function Ib(e){let n;const t=mS(e);return Ue.get(t)||(Ue.set(t,n=lb(2048,e)),n)}function wb(e,n,t){let r;const i=`${n}${"string"===typeof e?"@":"#"}${e}`,a=1024|("string"===typeof e?128:256);return Ve.get(i)||(Ve.set(i,r=lb(a,e,t)),r)}function Rb(e){if(Om(e)){const n=Dm(e)?Zo(e.left):Zo(e);if(n){const e=wa(n);return e.uniqueESSymbolType||(e.uniqueESSymbolType=function(e){const n=ls(8192,e);return n.escapedName=`__@${n.symbol.escapedName}@${eB(n.symbol)}`,n}(n))}}return Kn}function Ob(e){const n=Ra(e);return n.resolvedType||(n.resolvedType=function(e){const n=Qm(e,!1,!1),t=n&&n.parent;if(t&&(Fd(t)||261===t.kind)&&!mb(n)&&(!ek(n)||ty(e,n.body)))return ad(Qo(t)).thisType;if(t&&Ok(t)&&Yk(t.parent)&&6===eg(t.parent))return ad(Zo(t.parent.left).parent).thisType;const r=8388608&e.flags?Bg(e):void 0;return r&&jk(r)&&Yk(r.parent)&&3===eg(r.parent)?ad(Zo(r.parent.left).parent).thisType:JN(n)&&ty(e,n.body)?ad(Qo(n)).thisType:(_a(e,Wo.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),mn)}(e)),n.resolvedType}function Mb(e){return Fb(Pb(e.type)||e.type)}function Pb(e){switch(e.kind){case 193:return Pb(e.type);case 186:if(1===e.elements.length&&(188===(e=e.elements[0]).kind||199===e.kind&&e.dotDotDotToken))return Pb(e.type);break;case 185:return e.elementType}}function Fb(e){return function(e,n){let t,r=!0;for(;n&&!Bu(n)&&323!==n.kind;){const i=n.parent;if(166===i.kind&&(r=!r),(r||8650752&e.flags)&&191===i.kind&&n===i.trueType){const n=Xf(e,i.checkType,i.extendsType);n&&(t=Te(t,n))}else if(262144&e.flags&&197===i.kind&&n===i.type){const n=Fb(i);if(Vu(n)===Rv(e)){const e=vE(n);if(e){const n=T_(e);n&&ML(n,Tx)&&(t=Te(t,Pg([On,at])))}}}n=i}return t?Mf(e,hy(t)):e}(Vb(e),e)}function Vb(e){switch(e.kind){case 131:case 315:case 316:return un;case 157:return xn;case 152:return Dn;case 148:return On;case 160:return Mn;case 134:return Hn;case 153:return Kn;case 114:return Wn;case 155:return An;case 104:return wn;case 144:return zn;case 149:return 262144&e.flags&&!Y?un:Yn;case 139:return bn;case 194:case 108:return Ob(e);case 198:return function(e){if(104===e.literal.kind)return wn;const n=Ra(e);return n.resolvedType||(n.resolvedType=Sb(ZO(e.literal))),n.resolvedType}(e);case 180:case 230:return fm(e);case 179:return e.assertsModifier?Wn:Hn;case 183:return gm(e);case 185:case 186:return function(e){const n=Ra(e);if(!n.resolvedType){const t=Vh(e);if(t===kt)n.resolvedType=bt;else if(186===e.kind&&ce(e.elements,(e=>!!(8&Gh(e))))||!Yh(e)){const r=185===e.kind?[Fb(e.elementType)]:W(e.elements,Fb);n.resolvedType=cg(t,r)}else n.resolvedType=186===e.kind&&0===e.elements.length?t:mf(t,e,void 0)}return n.resolvedType}(e);case 187:return function(e){return Sc(Fb(e.type),!0)}(e);case 189:return function(e){const n=Ra(e);if(!n.resolvedType){const t=Yv(e);n.resolvedType=Pg(W(e.types,Fb),1,t,Zv(t))}return n.resolvedType}(e);case 190:return function(e){const n=Ra(e);if(!n.resolvedType){const t=Yv(e),r=W(e.types,Fb),i=2===r.length&&!!(76&r[0].flags)&&r[1]===At;n.resolvedType=hy(r,t,Zv(t),i)}return n.resolvedType}(e);case 317:return function(e){const n=Fb(e.type);return F?Yx(n,65536):n}(e);case 319:return Sc(Fb(e.type));case 199:return function(e){const n=Ra(e);return n.resolvedType||(n.resolvedType=e.dotDotDotToken?Mb(e):Sc(Fb(e.type),!0,!!e.questionToken))}(e);case 193:case 318:case 312:return Fb(e.type);case 188:return Mb(e);case 321:return function(e){const n=Fb(e.type),{parent:t}=e,r=e.parent.parent;if(Nw(e.parent)&&cR(r)){const e=Bg(r),t=Qw(r.parent.parent);if(e||t){const i=Fe(t?r.parent.parent.typeExpression.parameters:e.parameters),a=Fg(r);if(!i||a&&i.symbol===a&&l_(i))return Mh(n)}}if(qC(t)&&Hw(t.parent))return Mh(n);return Sc(n)}(e);case 181:case 182:case 184:case 325:case 320:case 326:return Wv(e);case 195:return function(e){const n=Ra(e);if(!n.resolvedType)switch(e.operator){case 141:n.resolvedType=Hy(Fb(e.type));break;case 156:n.resolvedType=153===e.type.kind?Rb(Yg(e.parent)):mn;break;case 146:n.resolvedType=Fb(e.type);break;default:throw Nt.assertNever(e.operator)}return n.resolvedType}(e);case 196:return Iv(e);case 197:return wv(e);case 191:return function(e){const n=Ra(e);if(!n.resolvedType){const t=Fb(e.checkType),r=Yv(e),i=Zv(r),a=Fl(e,!0),o=i?a:j(a,(n=>yE(n,e))),s={node:e,checkType:t,extendsType:Fb(e.extendsType),isDistributive:!!(262144&t.flags),inferTypeParameters:Bv(e),outerTypeParameters:o,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:i};n.resolvedType=Pv(s,void 0),o&&(s.instantiations=new Map,s.instantiations.set(of(o),n.resolvedType))}return n.resolvedType}(e);case 192:return function(e){const n=Ra(e);return n.resolvedType||(n.resolvedType=fd(Qo(e.typeParameter))),n.resolvedType}(e);case 200:return function(e){const n=Ra(e);return n.resolvedType||(n.resolvedType=zy([e.head.text,...W(e.templateSpans,(e=>e.literal.text))],W(e.templateSpans,(e=>Fb(e.type))))),n.resolvedType}(e);case 202:return Vv(e);case 79:case 163:case 208:const n=_G(e);return n?hd(n):mn;default:return mn}}function Kb(e,n,t){if(e&&e.length)for(let r=0;r<e.length;r++){const i=e[r],a=t(i,n);if(i!==a){const i=0===r?[]:e.slice(0,r);for(i.push(a),r++;r<e.length;r++)i.push(t(e[r],n));return i}}return e}function Wb(e,n){return Kb(e,n,AE)}function eE(e,n){return Kb(e,n,hE)}function tE(e,n){return Kb(e,n,IE)}function rE(e,n){return 1===e.length?sE(e[0],n?n[0]:un):function(e,n){return Nt.attachDebugPrototypeIfDebug({kind:1,sources:e,targets:n})}(e,n)}function oE(e,n){switch(n.kind){case 0:return e===n.source?n.target:e;case 1:{const t=n.sources,r=n.targets;for(let n=0;n<t.length;n++)if(e===t[n])return r?r[n]:un;return e}case 2:{const t=n.sources,r=n.targets;for(let n=0;n<t.length;n++)if(e===t[n])return r[n]();return e}case 3:return n.func(e);case 4:case 5:const t=oE(e,n.mapper1);return t!==e&&4===n.kind?AE(t,n.mapper2):oE(t,n.mapper2)}}function sE(e,n){return Nt.attachDebugPrototypeIfDebug({kind:0,source:e,target:n})}function cE(e,n){return Nt.attachDebugPrototypeIfDebug({kind:3,func:e,debugInfo:Nt.isDebugging?n:void 0})}function lE(e,n){return Nt.attachDebugPrototypeIfDebug({kind:2,sources:e,targets:n})}function dE(e,n,t){return Nt.attachDebugPrototypeIfDebug({kind:e,mapper1:n,mapper2:t})}function uE(e){return rE(e,void 0)}function _E(e,n){return e?dE(4,e,n):n}function pE(e,n,t){return t?dE(5,sE(e,n),t):sE(e,n)}function fE(e,n,t){return e?dE(5,e,sE(n,t)):sE(n,t)}function mE(e){const n=ps(e.symbol);return n.target=e,n}function hE(e,n,t){let r;if(e.typeParameters&&!t){r=W(e.typeParameters,mE),n=_E(rE(e.typeParameters,r),n);for(const e of r)e.mapper=n}const i=ru(e.declaration,r,e.thisParameter&&gE(e.thisParameter,n),Kb(e.parameters,n,gE),void 0,void 0,e.minArgumentCount,39&e.flags);return i.target=e,i.mapper=n,i}function gE(e,n){const t=wa(e);if(t.type&&!dA(t.type))return e;1&FE(e)&&(e=t.target,n=_E(t.mapper,n));const r=va(e.flags,e.escapedName,1|53256&FE(e));return r.declarations=e.declarations,r.parent=e.parent,r.links.target=e,r.links.mapper=n,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),t.nameType&&(r.links.nameType=t.nameType),r}function yE(e,n){if(e.symbol&&e.symbol.declarations&&1===e.symbol.declarations.length){const r=e.symbol.declarations[0].parent;for(let e=n;e!==r;e=e.parent)if(!e||238===e.kind||191===e.kind&&CD(e.extendsType,t))return!0;return t(n)}return!0;function t(n){switch(n.kind){case 194:return!!e.isThisType;case 79:return!e.isThisType&&xm(n)&&function(e){return!(180===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||202===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(n)&&Vb(n)===e;case 183:const r=VA(Jb(n.exprName)),i=e.symbol.declarations[0];let a;if(165===i.kind)a=i.parent;else{if(!e.isThisType)return!0;a=i}return!r.declarations||(ce(r.declarations,(e=>ty(e,a)))||ce(n.typeArguments,t));case 171:case 170:return!n.type&&!!n.body||ce(n.typeParameters,t)||ce(n.parameters,t)||!!n.type&&t(n.type)}return!!CD(n,t)}}function vE(e){const n=ju(e);if(4194304&n.flags){const e=Rv(n.type);if(262144&e.flags)return e}}function bE(e,n,t,r){const i=vE(e);if(i){const a=AE(i,n);if(i!==a)return UL(H_(a),(t=>{if(61603843&t.flags&&t!==pn&&!_c(t)){if(!e.declaration.nameType){let r;if(bx(t)||1&t.flags&&tc(i,4)<0&&(r=T_(i))&&ML(r,Tx))return function(e,n,t){const r=TE(n,On,!0,t);return _c(r)?mn:Mh(r,EE(Ex(e),r_(n)))}(t,e,pE(i,t,n));if(jx(t))return function(e,n,t,r){const i=e.target.elementFlags,a=W(bf(e),((e,a)=>{const o=8&i[a]?e:4&i[a]?Mh(e):ig([e],[i[a]]);return bE(n,pE(t,o,r))})),o=EE(e.target.readonly,r_(n));return ig(a,W(a,(e=>8)),o)}(t,e,i,n);if(Vx(t))return function(e,n,t){const r=e.target.elementFlags,i=W(bf(e),((e,i)=>TE(n,Cb(""+i),!!(2&r[i]),t))),a=r_(n),o=4&a?W(r,(e=>1&e?2:e)):8&a?W(r,(e=>2&e?1:e)):r,s=EE(e.target.readonly,a);return G(i,mn)?mn:ig(i,o,s,e.target.labeledElementDeclarations)}(t,e,pE(i,t,n))}return xE(e,pE(i,t,n))}return t}),t,r)}return AE(ju(e),n)===pn?pn:xE(e,n,t,r)}function EE(e,n){return!!(1&n)||!(2&n)&&e}function TE(e,n,t,r){const i=fE(r,Vu(e),n),a=AE(Wu(e.target||e),i),o=r_(e);return F&&4&o&&!yO(a,49152)?$x(a,!0):F&&8&o&&t?uL(a,524288):a}function xE(e,n,t,r){const i=_s(64|e.objectFlags,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;const t=Vu(e),r=mE(t);i.typeParameter=r,n=_E(sE(t,r),n),r.mapper=n}return 8388608&e.objectFlags&&(i.node=e.node),i.target=e,i.mapper=n,i.aliasSymbol=t||e.aliasSymbol,i.aliasTypeArguments=t?r:Wb(e.aliasTypeArguments,n),i.objectFlags|=i.aliasTypeArguments?df(i.aliasTypeArguments):0,i}function SE(e,n,t,r){const i=e.root;if(i.outerTypeParameters){const e=W(i.outerTypeParameters,(e=>oE(e,n))),a=of(e)+cf(t,r);let o=i.instantiations.get(a);if(!o){const n=rE(i.outerTypeParameters,e),s=i.checkType,c=i.isDistributive?oE(s,n):void 0;o=c&&s!==c&&1179648&c.flags?UL(H_(c),(e=>Pv(i,pE(s,e,n))),t,r):Pv(i,n,t,r),i.instantiations.set(a,o)}return o}return e}function AE(e,n){return e&&n?LE(e,n,void 0,void 0):e}function LE(e,n,t,r){var o;if(!dA(e))return e;if(100===y||g>=5e6)return null==(o=Vr)||o.instant(Vr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:y,instantiationCount:g}),_a(a,Wo.Type_instantiation_is_excessively_deep_and_possibly_infinite),mn;h++,g++,y++;const s=function(e,n,t,r){const a=e.flags;if(262144&a)return oE(e,n);if(524288&a){const a=e.objectFlags;if(52&a){if(4&a&&!e.node){const t=e.resolvedTypeArguments,r=Wb(t,n);return r!==t?cg(e.target,r):e}return 1024&a?function(e,n){const t=AE(e.mappedType,n);if(!(32&YE(t)))return e;const r=AE(e.constraintType,n);if(!(4194304&r.flags))return e;const i=pA(AE(e.source,n),t,r);if(i)return i;return e}(e,n):function(e,n,t,r){const a=4&e.objectFlags||8388608&e.objectFlags?e.node:e.symbol.declarations[0],o=Ra(a),s=4&e.objectFlags?o.resolvedType:64&e.objectFlags?e.target:e;let c=o.outerTypeParameters;if(!c){let n=Fl(a,!0);JN(a)&&(n=Ae(n,sp(a))),c=n||i;const t=8388612&e.objectFlags?[a]:e.symbol.declarations;c=(8388612&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?j(c,(e=>ce(t,(n=>yE(e,n))))):c,o.outerTypeParameters=c}if(c.length){const i=_E(e.mapper,n),a=W(c,(e=>oE(e,i))),o=t||e.aliasSymbol,l=t?r:Wb(e.aliasTypeArguments,n),d=of(a)+cf(o,l);s.instantiations||(s.instantiations=new Map,s.instantiations.set(of(c)+cf(s.aliasSymbol,s.aliasTypeArguments),s));let u=s.instantiations.get(d);if(!u){const n=rE(c,a);u=4&s.objectFlags?mf(e.target,e.node,n,o,l):32&s.objectFlags?bE(s,n,o,l):xE(s,n,o,l),s.instantiations.set(d,u)}return u}return e}(e,n,t,r)}return e}if(3145728&a){const i=1048576&e.flags?e.origin:void 0,o=i&&3145728&i.flags?i.types:e.types,s=Wb(o,n);if(s===o&&t===e.aliasSymbol)return e;const c=t||e.aliasSymbol,l=t?r:Wb(e.aliasTypeArguments,n);return 2097152&a||i&&2097152&i.flags?hy(s,c,l):Pg(s,1,c,l)}if(4194304&a)return Hy(AE(e.type,n));if(134217728&a)return zy(e.texts,Wb(e.types,n));if(268435456&a)return Zy(e.symbol,AE(e.type,n));if(8388608&a){const i=t||e.aliasSymbol,a=t?r:Wb(e.aliasTypeArguments,n);return Lv(AE(e.objectType,n),AE(e.indexType,n),e.accessFlags,void 0,i,a)}if(16777216&a)return SE(e,_E(e.mapper,n),t,r);if(33554432&a){const t=AE(e.baseType,n),r=AE(e.constraint,n);return 8650752&t.flags&&_v(r)?Mf(t,r):3&r.flags||WE(kE(t),kE(r))?t:8650752&t.flags?Mf(t,r):hy([r,t])}return e}(e,n,t,r);return y--,s}function CE(e){return 134479871&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=AE(e,ct))}function kE(e){return 134479871&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=AE(e,st),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function IE(e,n){return $p(e.keyType,AE(e.type,n),e.isReadonly,e.declaration)}function wE(e){switch(Nt.assert(171!==e.kind||Gm(e)),e.kind){case 215:case 216:case 171:case 259:return RE(e);case 207:return ce(e.properties,wE);case 206:return ce(e.elements,wE);case 224:return wE(e.whenTrue)||wE(e.whenFalse);case 223:return(56===e.operatorToken.kind||60===e.operatorToken.kind)&&(wE(e.left)||wE(e.right));case 299:return wE(e.initializer);case 214:return wE(e.expression);case 289:return ce(e.properties,wE)||uw(e.parent)&&ce(e.parent.parent.children,wE);case 288:{const{initializer:n}=e;return!!n&&wE(n)}case 291:{const{expression:n}=e;return!!n&&wE(n)}}return!1}function RE(e){return MS(e)||function(e){return!e.typeParameters&&!eb(e)&&!!e.body&&238!==e.body.kind&&wE(e.body)}(e)}function NE(e){return(BS(e)||Gm(e))&&RE(e)}function DE(e){if(524288&e.flags){const n=h_(e);if(n.constructSignatures.length||n.callSignatures.length){const t=_s(16,e.symbol);return t.members=n.members,t.properties=n.properties,t.callSignatures=i,t.constructSignatures=i,t.indexInfos=i,t}}else if(2097152&e.flags)return hy(W(e.types,DE));return e}function OE(e,n){return TT(e,n,na)}function ME(e,n){return TT(e,n,na)?-1:0}function PE(e,n){return TT(e,n,Zi)?-1:0}function BE(e,n){return TT(e,n,$i)?-1:0}function HE(e,n){return TT(e,n,$i)}function KE(e,n){return TT(e,n,Qi)}function WE(e,n){return TT(e,n,Zi)}function zE(e,n){return 1048576&e.flags?N(e.types,(e=>zE(e,n))):1048576&n.flags?ce(n.types,(n=>zE(e,n))):2097152&e.flags?ce(e.types,(e=>zE(e,n))):58982400&e.flags?zE(k_(e)||xn,n):gT(n)?!!(67633152&e.flags):n===Ht?!!(67633152&e.flags)&&!gT(e):n===Kt?!!(524288&e.flags)&&lL(e):Rl(e,wl(n))||bx(n)&&!Ex(n)&&zE(e,Jt)}function qE(e,n){return TT(e,n,ea)}function JE(e,n){return qE(e,n)||qE(n,e)}function $E(e,n,t,r,i,a){return LT(e,n,Zi,t,r,i,a)}function ZE(e,n,t,r,i,a){return eT(e,n,Zi,t,r,i,a,void 0)}function eT(e,n,t,r,i,a,o,s){return!!TT(e,n,t)||(!r||!tT(i,e,n,t,a,o,s))&<(e,n,t,r,a,o,s)}function nT(e){return!!(16777216&e.flags||2097152&e.flags&&ce(e.types,nT))}function tT(e,n,t,r,i,a,o){if(!e||nT(t))return!1;if(!LT(n,t,r,void 0)&&function(e,n,t,r,i,a,o){const s=Y_(n,0),c=Y_(n,1);for(const l of[c,s])if(ce(l,(e=>{const n=Rp(e);return!(131073&n.flags)&<(n,t,r,void 0)}))){const r=o||{};$E(n,t,e,i,a,r);return cS(r.errors[r.errors.length-1],qf(e,l===c?Wo.Did_you_mean_to_use_new_with_this_expression:Wo.Did_you_mean_to_call_this_expression)),!0}return!1}(e,n,t,r,i,a,o))return!0;switch(e.kind){case 291:case 214:return tT(e.expression,n,t,r,i,a,o);case 223:switch(e.operatorToken.kind){case 63:case 27:return tT(e.right,n,t,r,i,a,o)}break;case 207:return function(e,n,t,r,i,a){return!(134479868&t.flags)&&sT(function*(e){if(!S(e.properties))return;for(const n of e.properties){if(Lw(n))continue;const e=Cy(Qo(n),8576);if(e&&!(131072&e.flags))switch(n.kind){case 175:case 174:case 171:case 300:yield{errorNode:n.name,innerExpression:void 0,nameType:e};break;case 299:yield{errorNode:n.name,innerExpression:n.initializer,nameType:e,errorMessage:Hf(n.name)?Wo.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:Nt.assertNever(n)}}}(e),n,t,r,i,a)}(e,n,t,r,a,o);case 206:return function(e,n,t,r,i,a){if(134479868&t.flags)return!1;if(Ix(n))return sT(dT(e,t),n,t,r,i,a);Qk(e,t,!1);const o=vI(e,1,!0);if(Zk(),Ix(o))return sT(dT(e,t),o,t,r,i,a);return!1}(e,n,t,r,a,o);case 289:return function(e,n,t,r,i,a){let o,s=sT(function*(e){if(!S(e.properties))return;for(const n of e.properties)yw(n)||VI(Uc(n.name))||(yield{errorNode:n.name,innerExpression:n.initializer,nameType:Cb(Uc(n.name))})}(e),n,t,r,i,a);if(uw(e.parent)&&lw(e.parent.parent)){const o=e.parent.parent,l=_w(ow(e)),d=void 0===l?"children":Bc(l),u=Cb(d),_=Lv(t,u),p=av(o.children);if(!S(p))return s;const f=S(p)>1;let m,h;if(ih(!1)!==kt){const e=Rh(un);m=PL(_,(n=>WE(n,e))),h=PL(_,(n=>!WE(n,e)))}else m=PL(_,wx),h=PL(_,(e=>!wx(e)));if(f){if(m!==zn){const e=ig(JI(o,0)),n=function*(e,n){if(!S(e.children))return;let t=0;for(let r=0;r<e.children.length;r++){const i=lT(e.children[r],kb(r-t),n);i?yield i:t++}}(o,c);s=function(e,n,t,r,i,a){const o=PL(t,wx),s=PL(t,(e=>!wx(e))),c=s!==zn?wP(13,0,s,void 0):void 0;let l=!1;for(let d=e.next();!d.done;d=e.next()){const{errorNode:e,innerExpression:t,nameType:s,errorMessage:u}=d.value;let _=c;const p=o!==zn?aT(n,o,s):void 0;if(!p||8388608&p.flags||(_=c?Pg([c,p]):p),!_)continue;let f=kv(n,s);if(!f)continue;const m=rv(s,void 0);if(!LT(f,_,r,void 0)){if(l=!0,!(t&&tT(t,f,_,r,void 0,i,a))){const s=a||{},c=t?oT(t,f):f;if(te&&OT(c,_)){const n=qf(e,Wo.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Us(c),Us(_));Ji.add(n),s.errors=[n]}else{const t=!!(m&&16777216&(J_(o,m)||on).flags),a=!!(m&&16777216&(J_(n,m)||on).flags);_=oS(_,t),f=oS(f,t&&a);LT(c,_,r,e,u,i,s)&&c!==f&<(f,_,r,e,u,i,s)}}}}return l}(n,e,m,r,i,a)||s}else if(!TT(Lv(n,u),_,r)){s=!0;const e=_a(o.openingElement.tagName,Wo.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,d,Us(_));a&&a.skipLogging&&(a.errors||(a.errors=[])).push(e)}}else if(h!==zn){const e=lT(p[0],u,c);e&&(s=sT(function*(){yield e}(),n,t,r,i,a)||s)}else if(!TT(Lv(n,u),_,r)){s=!0;const e=_a(o.openingElement.tagName,Wo.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,d,Us(_));a&&a.skipLogging&&(a.errors||(a.errors=[])).push(e)}}return s;function c(){if(!o){const n=sf(e.parent.tagName),r=_w(ow(e)),i=void 0===r?"children":Bc(r),a=Lv(t,Cb(i)),s=Wo._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;o={...s,key:"!!ALREADY FORMATTED!!",message:IT(void 0,s,n,i,Us(a))}}return o}}(e,n,t,r,a,o);case 216:return function(e,n,t,r,i,a){if(pI(e.body))return!1;if(ce(e.parameters,e_))return!1;const o=sN(n);if(!o)return!1;const s=Y_(t,0);if(!S(s))return!1;const c=e.body,l=Rp(o),d=Pg(W(s,Rp));if(!LT(l,d,r,void 0)){const n=c&&tT(c,l,d,r,void 0,i,a);if(n)return n;const o=a||{};if(LT(l,d,r,c,void 0,i,o),o.errors)return t.symbol&&S(t.symbol.declarations)&&cS(o.errors[o.errors.length-1],qf(t.symbol.declarations[0],Wo.The_expected_type_comes_from_the_return_type_of_this_signature)),0===(2&ky(e))&&!dc(l,"then")&<($D(l),d,r,void 0)&&cS(o.errors[o.errors.length-1],qf(e,Wo.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,n,t,r,a,o)}return!1}function aT(e,n,t){const r=kv(n,t);if(r)return r;if(1048576&n.flags){const r=PT(e,n);if(r)return kv(r,t)}}function oT(e,n){Qk(e,n,!1);const t=UO(e,1);return Zk(),t}function sT(e,n,t,r,i,a){let o=!1;for(const s of e){const{errorNode:e,innerExpression:c,nameType:l,errorMessage:d}=s;let u=aT(n,t,l);if(!u||8388608&u.flags)continue;let _=kv(n,l);if(!_)continue;const p=rv(l,void 0);if(!LT(_,u,r,void 0)){if(o=!0,!(c&&tT(c,_,u,r,void 0,i,a))){const o=a||{},s=c?oT(c,_):_;if(te&&OT(s,u)){const n=qf(e,Wo.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Us(s),Us(u));Ji.add(n),o.errors=[n]}else{const a=!!(p&&16777216&(J_(t,p)||on).flags),c=!!(p&&16777216&(J_(n,p)||on).flags);u=oS(u,a),_=oS(_,a&&c);LT(s,u,r,e,d,i,o)&&s!==_&<(_,u,r,e,d,i,o)}if(o.errors){const e=o.errors[o.errors.length-1],n=Vd(l)?Yd(l):void 0,r=void 0!==n?J_(t,n):void 0;let i=!1;if(!r){const n=ap(t,l);n&&n.declaration&&!Dp(n.declaration).hasNoDefaultLib&&(i=!0,cS(e,qf(n.declaration,Wo.The_expected_type_comes_from_this_index_signature)))}if(!i&&(r&&S(r.declarations)||t.symbol&&S(t.symbol.declarations))){const i=r&&S(r.declarations)?r.declarations[0]:t.symbol.declarations[0];Dp(i).hasNoDefaultLib||cS(e,qf(i,Wo.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!n||8192&l.flags?Us(l):Bc(n),Us(t)))}}}}}return o}function lT(e,n,t){switch(e.kind){case 291:return{errorNode:e,innerExpression:e.expression,nameType:n};case 11:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:void 0,nameType:n,errorMessage:t()};case 281:case 282:case 285:return{errorNode:e,innerExpression:e,nameType:n};default:return Nt.assertNever(e,"Found invalid jsx child")}}function*dT(e,n){const t=S(e.elements);if(t)for(let r=0;r<t;r++){if(Ix(n)&&!J_(n,""+r))continue;const t=e.elements[r];if(tI(t))continue;const i=kb(r);yield{errorNode:t,innerExpression:t,nameType:i}}}function uT(e,n,t,r,i){return LT(e,n,ea,t,r,i)}function _T(e){if(!e.typeParameters&&(!e.thisParameter||uc(hD(e.thisParameter)))&&1===e.parameters.length&&sB(e)){const n=hD(e.parameters[0]);return!!(131073&(bx(n)?bf(n)[0]:n).flags&&3&Rp(e).flags)}return!1}function pT(e,n,t,r,i,a,o,s){if(e===n)return-1;if(!(16&t&&_T(e))&&_T(n))return-1;if(16&t&&_T(e)&&!_T(n))return 0;const c=AD(n);if(!ID(n)&&(8&t?ID(e)||AD(e)>c:LD(e)>c))return 0;e.typeParameters&&e.typeParameters!==n.typeParameters&&(e=dN(e,n=zp(n),void 0,o));const l=AD(e),d=RD(e),u=RD(n);(d||u)&&AE(d||u,s);const _=n.declaration?n.declaration.kind:0,p=!(3&t)&&U&&171!==_&&170!==_&&173!==_;let f=-1;const m=kp(e);if(m&&m!==Wn){const e=kp(n);if(e){const n=!p&&o(m,e,!1)||o(e,m,r);if(!n)return r&&i(Wo.The_this_types_of_each_signature_are_incompatible),0;f&=n}}const h=d||u?Math.min(l,c):Math.max(l,c),g=d||u?h-1:-1;for(let y=0;y<h;y++){const c=y===g?SD(e,y):xD(e,y),l=y===g?SD(n,y):xD(n,y);if(c&&l){const d=3&t?void 0:sN(Qx(c)),u=3&t?void 0:sN(Qx(l));let _=d&&u&&!Ip(d)&&!Ip(u)&&(50331648&dL(c))===(50331648&dL(l))?pT(u,d,8&t|(p?2:1),r,i,a,o,s):!(3&t)&&!p&&o(c,l,!1)||o(l,c,r);if(_&&8&t&&y>=LD(e)&&y<LD(n)&&o(c,l,!1)&&(_=0),!_)return r&&i(Wo.Types_of_parameters_0_and_1_are_incompatible,Bc(yD(e,y)),Bc(yD(n,y))),0;f&=_}}if(!(4&t)){const s=Gp(n)?un:n.declaration&&JN(n.declaration)?ad($o(n.declaration.symbol)):Rp(n);if(s===Wn||s===un)return f;const c=Gp(e)?un:e.declaration&&JN(e.declaration)?ad($o(e.declaration.symbol)):Rp(e),l=Ip(n);if(l){const n=Ip(e);if(n)f&=function(e,n,t,r,i){if(e.kind!==n.kind)return t&&(r(Wo.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),r(Wo.Type_predicate_0_is_not_assignable_to_1,zs(e),zs(n))),0;if((1===e.kind||3===e.kind)&&e.parameterIndex!==n.parameterIndex)return t&&(r(Wo.Parameter_0_is_not_in_the_same_position_as_parameter_1,e.parameterName,n.parameterName),r(Wo.Type_predicate_0_is_not_assignable_to_1,zs(e),zs(n))),0;const a=e.type===n.type?-1:e.type&&n.type?i(e.type,n.type,t):0;0===a&&t&&r(Wo.Type_predicate_0_is_not_assignable_to_1,zs(e),zs(n));return a}(n,l,r,i,o);else if(Um(l))return r&&i(Wo.Signature_0_must_be_a_type_predicate,Bs(e)),0}else f&=1&t&&o(s,c,!1)||o(c,s,r),!f&&r&&a&&a(c,s)}return f}function fT(e,n){const t=Wp(e),r=Wp(n),i=Rp(t),a=Rp(r);return!(a!==Wn&&!TT(a,i,Zi)&&!TT(i,a,Zi))&&0!==pT(t,r,!0?4:0,!1,void 0,void 0,PE,void 0)}function mT(e){return e!==It&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&0===e.indexInfos.length}function hT(e){return 524288&e.flags?!m_(e)&&mT(h_(e)):!!(67108864&e.flags)||(1048576&e.flags?ce(e.types,hT):!!(2097152&e.flags)&&N(e.types,hT))}function gT(e){return!!(16&YE(e)&&(e.members&&mT(e)||e.symbol&&2048&e.symbol.flags&&0===Zd(e.symbol).size))}function yT(e){return!!(32768&(1048576&e.flags?e.types[0]:e).flags)}function vT(e){return 524288&e.flags&&!m_(e)&&0===b_(e).length&&1===np(e).length&&!!tp(e,Dn)||3145728&e.flags&&N(e.types,vT)||!1}function bT(e,n,t){const r=8&e.flags?es(e):e,i=8&n.flags?es(n):n;if(r===i)return!0;if(r.escapedName!==i.escapedName||!(256&r.flags)||!(256&i.flags))return!1;const a=eB(r)+","+eB(i),o=ta.get(a);if(void 0!==o&&(4&o||!(2&o)||!t))return!!(1&o);const s=Sl(i);for(const c of b_(Sl(r)))if(8&c.flags){const e=J_(s,c.escapedName);if(!e||!(8&e.flags))return t?(t(Wo.Property_0_is_missing_in_type_1,jc(c),Us(hd(i),void 0,64)),ta.set(a,6)):ta.set(a,2),!1}return ta.set(a,1),!0}function ET(e,n,t,r){const i=e.flags,a=n.flags;if(1&a||131072&i||e===pn)return!0;if(2&a&&!(t===Qi&&1&i))return!0;if(131072&a)return!1;if(402653316&i&&4&a)return!0;if(128&i&&1024&i&&128&a&&!(1024&a)&&e.value===n.value)return!0;if(296&i&&8&a)return!0;if(256&i&&1024&i&&256&a&&!(1024&a)&&e.value===n.value)return!0;if(2112&i&&64&a)return!0;if(528&i&&16&a)return!0;if(12288&i&&4096&a)return!0;if(32&i&&32&a&&e.symbol.escapedName===n.symbol.escapedName&&bT(e.symbol,n.symbol,r))return!0;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&bT(e.symbol,n.symbol,r))return!0;if(2944&i&&2944&a&&e.value===n.value&&bT(e.symbol,n.symbol,r))return!0}if(32768&i&&(!F&&!(3145728&a)||49152&a))return!0;if(65536&i&&(!F&&!(3145728&a)||65536&a))return!0;if(524288&i&&67108864&a&&(t!==Qi||!gT(e)||8192&YE(e)))return!0;if(t===Zi||t===ea){if(1&i)return!0;if(8&i&&(32&a||256&a&&1024&a))return!0;if(256&i&&!(1024&i)&&(32&a||256&a&&1024&a&&e.value===n.value))return!0;if(function(e){if(F&&1048576&e.flags){if(!(33554432&e.objectFlags)){const n=e.types;e.objectFlags|=33554432|(n.length>=3&&32768&n[0].flags&&65536&n[1].flags&&ce(n,gT)?67108864:0)}return!!(67108864&e.objectFlags)}return!1}(n))return!0}return!1}function TT(e,n,t){if(Ab(e)&&(e=e.regularType),Ab(n)&&(n=n.regularType),e===n)return!0;if(t!==na){if(t===ea&&!(131072&n.flags)&&ET(n,e,t)||ET(e,n,t))return!0}else if(!(61865984&(e.flags|n.flags))){if(e.flags!==n.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&n.flags){const r=t.get(ZT(e,n,0,t,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&n.flags)&<(e,n,t,void 0)}function xT(e,n){return 2048&YE(e)&&VI(n.escapedName)}function ST(e,n){for(;;){const t=Ab(e)?e.regularType:4&YE(e)?e.node?pf(e.target,bf(e)):Lx(e)||e:3145728&e.flags?AT(e,n):33554432&e.flags?n?e.baseType:Gf(e):25165824&e.flags?Ev(e,n):e;if(t===e)return t;e=t}}function AT(e,n){const t=H_(e);if(t!==e)return t;if(2097152&e.flags&&ce(e.types,gT)){const t=q(e.types,(e=>ST(e,n)));if(t!==e.types)return hy(t)}return e}function LT(e,n,t,r,o,s,c){var l;let d,u,_,p,f,m,h,g=0,y=0,v=0,b=0,E=!1,T=0;Nt.assert(t!==na||!r,"no error reporting in identity checking");const A=P(e,n,3,!!r,o);if(h&&I(),E){null==(l=Vr)||l.instant(Vr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:n.id,depth:y,targetDepth:v});const t=_a(r||a,Wo.Excessive_stack_depth_comparing_types_0_and_1,Us(e),Us(n));c&&(c.errors||(c.errors=[])).push(t)}else if(d){if(s){const e=s();e&&(DT(e,d),d=e)}let i;if(o&&r&&!A&&e.symbol){const r=wa(e.symbol);if(r.originatingImport&&!pm(r.originatingImport)){if(LT(Sl(r.target),n,t,void 0)){i=Te(i,qf(r.originatingImport,Wo.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}const a=Yf(Dp(r),r,d,i);u&&cS(a,...u),c&&(c.errors||(c.errors=[])).push(a),c&&c.skipLogging||Ji.add(a)}return r&&c&&c.skipLogging&&0===A&&Nt.assert(!!c.errors,"missed opportunity to interact with error."),0!==A;function L(e){d=e.errorInfo,m=e.lastSkippedInfo,h=e.incompatibleStack,T=e.overrideNextErrorInfo,u=e.relatedInfo}function C(){return{errorInfo:d,lastSkippedInfo:m,incompatibleStack:null==h?void 0:h.slice(),overrideNextErrorInfo:T,relatedInfo:null==u?void 0:u.slice()}}function k(e,n,t,r,i){T++,m=void 0,(h||(h=[])).push([e,n,t,r,i])}function I(){const e=h||[];h=void 0;const n=m;if(m=void 0,1===e.length)return w(...e[0]),void(n&&N(void 0,...n));let t="";const r=[];for(;e.length;){const[n,...i]=e.pop();switch(n.code){case Wo.Types_of_property_0_are_incompatible.code:{0===t.indexOf("new ")&&(t=`(${t})`);const e=""+i[0];t=0===t.length?`${e}`:Js(e,HT(x))?`${t}.${e}`:"["===e[0]&&"]"===e[e.length-1]?`${t}${e}`:`${t}[${e}]`;break}case Wo.Call_signature_return_types_0_and_1_are_incompatible.code:case Wo.Construct_signature_return_types_0_and_1_are_incompatible.code:case Wo.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case Wo.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===t.length){let e=n;n.code===Wo.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=Wo.Call_signature_return_types_0_and_1_are_incompatible:n.code===Wo.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=Wo.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,i[0],i[1]])}else{t=`${n.code===Wo.Construct_signature_return_types_0_and_1_are_incompatible.code||n.code===Wo.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":""}${t}(${n.code===Wo.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||n.code===Wo.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"..."})`}break;case Wo.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([Wo.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,i[0],i[1]]);break;case Wo.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([Wo.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,i[0],i[1],i[2]]);break;default:return Nt.fail(`Unhandled Diagnostic: ${n.code}`)}}t?w(")"===t[t.length-1]?Wo.The_types_returned_by_0_are_incompatible_between_these_types:Wo.The_types_of_0_are_incompatible_between_these_types,t):r.shift();for(const[i,...a]of r){const e=i.elidedInCompatabilityPyramid;i.elidedInCompatabilityPyramid=!1,w(i,...a),i.elidedInCompatabilityPyramid=e}n&&N(void 0,...n)}function w(e,n,t,i,a){Nt.assert(!!r),h&&I(),e.elidedInCompatabilityPyramid||(d=NT(d,e,n,t,i,a))}function R(e){Nt.assert(!!d),u?u.push(e):u=[e]}function N(e,n,r){h&&I();const[i,a]=Vs(n,r);let o=n,s=i;Ox(n)&&!CT(r)&&(o=Mx(n),Nt.assert(!WE(o,r),"generalized source shouldn't be assignable"),s=js(o));if(262144&(8388608&r.flags&&!(8388608&n.flags)?r.objectType.flags:r.flags)&&r!==Ft&&r!==Gt){const e=k_(r);let t;e&&(WE(o,e)||(t=WE(n,e)))?w(Wo._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,t?i:s,a,Us(e)):(d=void 0,w(Wo._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,a,s))}if(e)e===Wo.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&te&&RT(n,r).length&&(e=Wo.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(t===ea)e=Wo.Type_0_is_not_comparable_to_type_1;else if(i===a)e=Wo.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(te&&RT(n,r).length)e=Wo.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&n.flags&&1048576&r.flags){const e=function(e,n){const t=n.types.filter((e=>!!(128&e.flags)));return Qn(e.value,t,(e=>e.value))}(n,r);if(e)return void w(Wo.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,a,Us(e))}e=Wo.Type_0_is_not_assignable_to_type_1}w(e,s,a)}function D(e,n,t){return Vx(e)?e.target.readonly&&xx(n)?(t&&w(Wo.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Us(e),Us(n)),!1):Tx(n):Ex(e)&&xx(n)?(t&&w(Wo.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Us(e),Us(n)),!1):!Vx(n)||bx(e)}function O(e,n,t){return P(e,n,3,t)}function P(e,n,i=3,a=!1,o,s=0){if(524288&e.flags&&134348796&n.flags)return t===ea&&!(131072&n.flags)&&ET(n,e,t)||ET(e,n,t,a?w:void 0)?-1:(a&&B(e,n,e,n,o),0);const c=ST(e,!1);let l=ST(n,!0);if(c===l)return-1;if(t===na)return c.flags!==l.flags?0:67358815&c.flags?-1:(U(c,l),X(c,l,!1,0,i));if(262144&c.flags&&E_(c)===l)return-1;if(470302716&c.flags&&1048576&l.flags){const e=l.types,n=2===e.length&&98304&e[0].flags?e[1]:3===e.length&&98304&e[0].flags&&98304&e[1].flags?e[2]:void 0;if(n&&!(98304&n.flags)&&(l=ST(n,!0),c===l))return-1}if(t===ea&&!(131072&l.flags)&&ET(l,c,t)||ET(c,l,t,a?w:void 0))return-1;if(469499904&c.flags||469499904&l.flags){if(!(2&s)&&NA(c)&&8192&YE(c)&&function(e,n,i){var a;if(!Mw(n)||!Y&&4096&YE(n))return!1;const o=!!(2048&YE(e));if((t===Zi||t===ea)&&(NL(Ht,n)||!o&&hT(n)))return!1;let s,c=n;1048576&n.flags&&(c=rU(e,n,P)||function(e){if(yO(e,67108864)){const n=PL(e,(e=>!(134348796&e.flags)));if(!(131072&n.flags))return n}return e}(n),s=1048576&c.flags?c.types:[c]);for(const t of b_(e))if(j(t,e.symbol)&&!xT(e,t)){if(!Rw(c,t.escapedName,o)){if(i){const n=PL(c,Mw);if(!r)return Nt.fail();if(gw(r)||zu(r)||zu(r.parent)){t.valueDeclaration&&hw(t.valueDeclaration)&&Dp(r)===Dp(t.valueDeclaration.name)&&(r=t.valueDeclaration.name);const e=Gs(t),i=DR(e,n),a=i?Gs(i):void 0;a?w(Wo.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,Us(n),a):w(Wo.Property_0_does_not_exist_on_type_1,e,Us(n))}else{const i=(null==(a=e.symbol)?void 0:a.declarations)&&De(e.symbol.declarations);let o;if(t.valueDeclaration&&Mc(t.valueDeclaration,(e=>e===i))&&Dp(i)===Dp(r)){const e=t.valueDeclaration;Nt.assertNode(e,Wd),r=e;const i=e.name;IC(i)&&(o=OR(i,n))}void 0!==o?w(Wo.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Gs(t),Us(n),o):w(Wo.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Gs(t),Us(n))}}return!0}if(s&&!P(Sl(t),V(s,t.escapedName),3,i))return i&&k(Wo.Types_of_property_0_are_incompatible,Gs(t)),!0}return!1}(c,l,a))return a&&N(o,c,n.aliasSymbol?n:l),0;const d=(t!==ea||Nx(c))&&!(2&s)&&136970236&c.flags&&c!==Ht&&2621440&l.flags&>(l)&&(b_(c).length>0||EG(c)),u=!!(2048&YE(c));if(d&&!function(e,n,t){for(const r of b_(e))if(Rw(n,r.escapedName,t))return!0;return!1}(c,l,u)){if(a){const t=Us(e.aliasSymbol?e:c),r=Us(n.aliasSymbol?n:l),i=Y_(c,0),a=Y_(c,1);i.length>0&&P(Rp(i[0]),l,1,!1)||a.length>0&&P(Rp(a[0]),l,1,!1)?w(Wo.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,t,r):w(Wo.Type_0_has_no_properties_in_common_with_type_1,t,r)}return 0}U(c,l);const _=1048576&c.flags&&c.types.length<4&&!(1048576&l.flags)||1048576&l.flags&&l.types.length<4&&!(469499904&c.flags)?H(c,l,a,s):X(c,l,a,s,i);if(_)return _}return a&&B(e,n,c,l,o),0}function B(e,n,t,i,a){var o,s;const c=!!Lx(e),l=!!Lx(n);t=e.aliasSymbol||c?e:t,i=n.aliasSymbol||l?n:i;let u=T>0;if(u&&T--,524288&t.flags&&524288&i.flags){const e=d;D(t,i,!0),d!==e&&(u=!!d)}if(524288&t.flags&&134348796&i.flags)!function(e,n){const t=Hs(e.symbol)?Us(e,e.symbol.valueDeclaration):Us(e),r=Hs(n.symbol)?Us(n,n.symbol.valueDeclaration):Us(n);(Xt===e&&Dn===n||Yt===e&&On===n||$t===e&&Hn===n||Km()===e&&Kn===n)&&w(Wo._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,t)}(t,i);else if(t.symbol&&524288&t.flags&&Ht===t)w(Wo.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&YE(t)&&2097152&i.flags){const e=i.types,n=rw(XG.IntrinsicAttributes,r),t=rw(XG.IntrinsicClassAttributes,r);if(!_c(n)&&!_c(t)&&(G(e,n)||G(e,t)))return}else d=q_(d,n);if(a||!u){if(N(a,t,i),262144&t.flags&&(null==(s=null==(o=t.symbol)?void 0:o.declarations)?void 0:s[0])&&!E_(t)){const e=mE(t);if(e.constraint=AE(i,sE(t,e)),w_(e)){const e=Us(i,t.symbol.declarations[0]);R(qf(t.symbol.declarations[0],Wo.This_type_parameter_might_need_an_extends_0_constraint,e))}}}else m=[t,i]}function U(e,n){if(Vr&&3145728&e.flags&&3145728&n.flags){const t=e,i=n;if(t.objectFlags&i.objectFlags&32768)return;const a=t.types.length,o=i.types.length;a*o>1e6&&Vr.instant(Vr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:e.id,sourceSize:a,targetId:n.id,targetSize:o,pos:null==r?void 0:r.pos,end:null==r?void 0:r.end})}}function V(e,n){return Pg(We(e,((e,t)=>{var r;const i=3145728&(t=G_(t)).flags?j_(t,n):y_(t,n);return Te(e,i&&Sl(i)||(null==(r=op(t,n))?void 0:r.type)||An)}),void 0)||i)}function j(e,n){return e.valueDeclaration&&n.valueDeclaration&&e.valueDeclaration.parent===n.valueDeclaration}function H(e,n,r,i){if(1048576&e.flags)return t===ea?J(e,n,r&&!(134348796&e.flags),i):function(e,n,t,r){let i=-1;const a=e.types,o=function(e,n){if(1048576&e.flags&&1048576&n.flags&&!(32768&e.types[0].flags)&&32768&n.types[0].flags)return VL(n,-32769);return n}(e,n);for(let s=0;s<a.length;s++){const e=a[s];if(1048576&o.flags&&a.length>=o.types.length&&a.length%o.types.length===0){const n=P(e,o.types[s%o.types.length],3,!1,void 0,r);if(n){i&=n;continue}}const c=P(e,n,1,t,void 0,r);if(!c)return 0;i&=c}return i}(e,n,r&&!(134348796&e.flags),i);if(1048576&n.flags)return z(xS(e),n,r&&!(134348796&e.flags)&&!(134348796&n.flags));if(2097152&n.flags)return function(e,n,t,r){let i=-1;const a=n.types;for(const o of a){const n=P(e,o,2,t,void 0,r);if(!n)return 0;i&=n}return i}(e,n,r,2);if(t===ea&&134348796&n.flags){const t=q(e.types,(e=>465829888&e.flags?k_(e)||xn:e));if(t!==e.types){if(131072&(e=hy(t)).flags)return 0;if(!(2097152&e.flags))return P(e,n,1,!1)||P(n,e,1,!1)}}return J(e,n,!1,1)}function K(e,n){let t=-1;const r=e.types;for(const i of r){const e=z(i,n,!1);if(!e)return 0;t&=e}return t}function z(e,n,t){const r=n.types;if(1048576&n.flags){if(Cg(r,e))return-1;const t=iL(n,e);if(t){const n=P(e,t,2,!1);if(n)return n}}for(const i of r){const n=P(e,i,2,!1);if(n)return n}if(t){const t=PT(e,n,P);t&&P(e,t,2,!0)}return 0}function J(e,n,t,r){const i=e.types;if(1048576&e.flags&&Cg(i,n))return-1;const a=i.length;for(let o=0;o<a;o++){const e=P(i[o],n,1,t&&o===a-1,void 0,r);if(e)return e}return 0}function X(e,n,r,a,o){var s,c,l;if(E)return 0;const u=ZT(e,n,a,t,!1),m=t.get(u);if(void 0!==m&&(!(r&&2&m)||4&m)){if(jn){const n=24&m;8&n&&AE(e,ht),16&n&&AE(e,mt)}return 1&m?-1:0}if(_){const r=u.startsWith("*")?ZT(e,n,a,t,!0):void 0;for(let e=0;e<g;e++)if(u===_[e]||r&&r===_[e])return 3;if(100===y||100===v)return E=!0,0}else _=[],p=[],f=[];const h=g;_[g]=u,g++;const T=b;let x;1&o&&(p[y]=e,y++,1&b||!dx(e,p,y)||(b|=1)),2&o&&(f[v]=n,v++,2&b||!dx(n,f,v)||(b|=2));let S,A=0;if(jn&&(x=jn,jn=e=>(A|=e?16:8,x(e))),3===b?(null==(s=Vr)||s.instant(Vr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:p.map((e=>e.id)),targetId:n.id,targetIdStack:f.map((e=>e.id)),depth:y,targetDepth:v}),S=3):(null==(c=Vr)||c.push(Vr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:e.id,targetId:n.id}),S=function(e,n,r,a){const o=C();let s=function(e,n,r,a,o){let s,c,l=!1,u=e.flags;const _=n.flags;if(t===na){if(3145728&u){let t=K(e,n);return t&&(t&=K(n,e)),t}if(4194304&u)return P(e.type,n.type,3,!1);if(8388608&u&&(s=P(e.objectType,n.objectType,3,!1))&&(s&=P(e.indexType,n.indexType,3,!1)))return s;if(16777216&u&&e.root.isDistributive===n.root.isDistributive&&(s=P(e.checkType,n.checkType,3,!1))&&(s&=P(e.extendsType,n.extendsType,3,!1))&&(s&=P(Fv(e),Fv(n),3,!1))&&(s&=P(Gv(e),Gv(n),3,!1)))return s;if(33554432&u&&(s=P(e.baseType,n.baseType,3,!1))&&(s&=P(e.constraint,n.constraint,3,!1)))return s;if(!(524288&u))return 0}else if(3145728&u||3145728&_){if(s=H(e,n,r,a))return s;if(!(465829888&u||524288&u&&1048576&_||2097152&u&&467402752&_))return 0}if(17301504&u&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===n.aliasSymbol&&!qT(e)&&!qT(n)){const t=UT(e.aliasSymbol);if(t===i)return 1;const r=wa(e.aliasSymbol).typeParameters,o=hp(r),s=b(Ep(e.aliasTypeArguments,r,o,Ih(e.aliasSymbol.valueDeclaration)),Ep(n.aliasTypeArguments,r,o,Ih(e.aliasSymbol.valueDeclaration)),t,a);if(void 0!==s)return s}if(Hx(e)&&!e.target.readonly&&(s=P(bf(e)[0],n,1))||Hx(n)&&(n.target.readonly||xx(k_(e)||e))&&(s=P(e,bf(n)[0],2)))return s;if(262144&_){if(32&YE(e)&&!e.declaration.nameType&&P(Hy(n),ju(e),3)&&!(4&r_(e))){const t=Wu(e),i=Lv(n,Vu(e));if(s=P(t,i,3,r))return s}if(t===ea&&262144&u){let t=T_(e);if(t&&w_(e))for(;t&&OL(t,(e=>!!(262144&e.flags)));){if(s=P(t,n,1,!1))return s;t=T_(t)}return 0}}else if(4194304&_){const t=n.type;if(4194304&u&&(s=P(t,e.type,3,!1)))return s;if(Vx(t)){if(s=P(e,gg(t),2,r))return s}else{const i=S_(t);if(i){if(-1===P(e,Hy(i,n.stringsOnly),2,r))return-1}else if(m_(t)){const n=Hu(t),i=ju(t);let a;if(n&&Xu(t)){const e=G_(Yu(t)),r=[];Gu(e,8576,!1,(e=>{r.push(AE(n,fE(t.mapper,Vu(t),e)))})),a=Pg([...r,n])}else a=n||i;if(-1===P(e,a,2,r))return-1}}}else if(8388608&_){if(8388608&u){if((s=P(e.objectType,n.objectType,3,r))&&(s&=P(e.indexType,n.indexType,3,r)),s)return s;r&&(c=d)}if(t===Zi||t===ea){const t=n.objectType,i=n.indexType,l=k_(t)||t,u=k_(i)||i;if(!pv(l)&&!hv(u)){const n=kv(l,u,4|(l!==t?2:0));if(n){if(r&&c&&L(o),s=P(e,n,2,r,void 0,a))return s;r&&c&&d&&(d=g([c])<=g([d])?c:d)}}}r&&(c=void 0)}else if(m_(n)&&t!==na){const t=!!n.declaration.nameType,i=Wu(n),a=r_(n);if(!(8&a)){if(!t&&8388608&i.flags&&i.objectType===e&&i.indexType===Vu(n))return-1;if(!m_(e)){const i=t?Hu(n):ju(n),l=Hy(e,void 0,!0),u=4&a,_=u?Au(i,l):void 0;if(u?!(131072&_.flags):P(i,l,3)){const a=Wu(n),o=Vu(n),c=VL(a,-98305);if(!t&&8388608&c.flags&&c.indexType===o){if(s=P(e,c.objectType,2,r))return s}else{const n=Lv(e,t?_||i:_?hy([_,o]):o);if(s=P(n,a,3,r))return s}}c=d,L(o)}}}else if(16777216&_){if(dx(n,f,v,10))return 3;const t=n;if(!t.root.inferTypeParameters&&(!(m=t.root).isDistributive||!yE(m.checkType,m.node.trueType)&&!yE(m.checkType,m.node.falseType))){const n=!WE(CE(t.checkType),CE(t.extendsType)),r=!n&&WE(kE(t.checkType),kE(t.extendsType));if((s=n?-1:P(e,Fv(t),2,!1,void 0,a))&&(s&=r?-1:P(e,Gv(t),2,!1,void 0,a),s))return s}}else if(134217728&_){if(134217728&u){if(t===ea)return function(e,n){const t=e.texts[0],r=n.texts[0],i=e.texts[e.texts.length-1],a=n.texts[n.texts.length-1],o=Math.min(t.length,r.length),s=Math.min(i.length,a.length);return t.slice(0,o)!==r.slice(0,o)||i.slice(i.length-s)!==a.slice(a.length-s)}(e,n)?0:-1;AE(e,mt)}if(LA(e,n))return-1}else if(268435456&n.flags&&!(268435456&e.flags)&&SA(e,n))return-1;var m;if(8650752&u){if(!(8388608&u&&8388608&_)){const t=E_(e)||xn;if(s=P(t,n,1,!1,void 0,a))return s;if(s=P(nu(t,e),n,1,r&&t!==xn&&!(_&u&262144),void 0,a))return s;if(P_(e)){const t=E_(e.indexType);if(t&&(s=P(Lv(e.objectType,t),n,1,r)))return s}}}else if(4194304&u){if(s=P(nt,n,1,r))return s}else if(134217728&u&&!(524288&_)){if(!(134217728&_)){const t=k_(e);if(t&&t!==e&&(s=P(t,n,1,r)))return s}}else if(268435456&u)if(268435456&_){if(e.symbol!==n.symbol)return 0;if(s=P(e.type,n.type,3,r))return s}else{const t=k_(e);if(t&&(s=P(t,n,1,r)))return s}else if(16777216&u){if(dx(e,p,y,10))return 3;if(16777216&_){const t=e.root.inferTypeParameters;let i,a=e.extendsType;if(t){const e=rA(t,void 0,0,O);IA(e.inferences,n.extendsType,a,1536),a=AE(a,e.mapper),i=e.mapper}if(OE(a,n.extendsType)&&(P(e.checkType,n.checkType,3)||P(n.checkType,e.checkType,3))&&((s=P(AE(Fv(e),i),Fv(n),3,r))&&(s&=P(Gv(e),Gv(n),3,r)),s))return s}else{const t=w_(e)?L_(e):void 0;if(t&&(s=P(t,n,1,r)))return s}const t=A_(e);if(t&&(s=P(t,n,1,r)))return s}else{if(t!==$i&&t!==Qi&&(32&YE(h=n)&&4&r_(h))&&hT(e))return-1;if(m_(n))return m_(e)&&(s=function(e,n,r){const i=t===ea||(t===na?r_(e)===r_(n):f_(e)<=f_(n));if(i){let t;if(t=P(ju(n),AE(ju(e),f_(e)<0?ht:mt),3,r)){const i=rE([Vu(e)],[Vu(n)]);if(AE(Hu(e),i)===AE(Hu(n),i))return t&P(AE(Wu(e),i),Wu(n),3,r)}}return 0}(e,n,r))?s:0;const p=!!(134348796&u);if(t!==na)u=(e=G_(e)).flags;else if(m_(e))return 0;if(4&YE(e)&&4&YE(n)&&e.target===n.target&&!Vx(e)&&!qT(e)&&!qT(n)){if(kx(e))return-1;const t=BT(e.target);if(t===i)return 1;const r=b(bf(e),bf(n),t,a);if(void 0!==r)return r}else{if(Ex(n)?Tx(e):bx(n)&&Vx(e)&&!e.target.readonly)return t!==na?P(rp(e,On)||un,rp(n,On)||un,3,r):0;if((t===$i||t===Qi)&&hT(n)&&8192&YE(n)&&!hT(e))return 0}if(2621440&u&&524288&_){const t=r&&d===o.errorInfo&&!p;if(s=Z(e,n,t,void 0,!1,a),s&&(s&=ee(e,n,0,t,a),s&&(s&=ee(e,n,1,t,a),s&&(s&=oe(e,n,p,t,a)))),l&&s)d=c||d||o.errorInfo;else if(s)return s}if(2621440&u&&1048576&_){const r=VL(n,36175872);if(1048576&r.flags){const n=function(e,n){var r;const i=b_(e),a=QA(i,n);if(!a)return 0;let o=1;for(const t of a)if(o*=GL(Cl(t)),o>25)return null==(r=Vr)||r.instant(Vr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:e.id,targetId:n.id,numCombinations:o}),0;const s=new Array(a.length),c=new Set;for(let t=0;t<a.length;t++){const e=a[t],n=Cl(e);s[t]=1048576&n.flags?n.types:[n],c.add(e.escapedName)}const l=xt(s),d=[];for(const _ of l){let r=!1;e:for(const i of n.types){for(let r=0;r<a.length;r++){const o=a[r],s=J_(i,o.escapedName);if(!s)continue e;if(o===s)continue;if(!Q(e,n,o,s,(e=>_[r]),!1,0,F||t===ea))continue e}Le(d,i,Pn),r=!0}if(!r)return 0}let u=-1;for(const t of d)if(u&=Z(e,t,!1,c,!1,0),u&&(u&=ee(e,t,0,!1,0),u&&(u&=ee(e,t,1,!1,0),!u||Vx(e)&&Vx(t)||(u&=oe(e,t,!1,!1,0)))),!u)return u;return u}(e,r);if(n)return n}}}var h;return 0;function g(e){return e?We(e,((e,n)=>e+1+g(n.next)),0):0}function b(e,n,a,u){if(s=function(e=i,n=i,r=i,a,o){if(e.length!==n.length&&t===na)return 0;const s=e.length<=n.length?e.length:n.length;let c=-1;for(let i=0;i<s;i++){const s=i<r.length?r[i]:1,l=7&s;if(4!==l){const r=e[i],d=n[i];let u=-1;if(8&s?u=t===na?P(r,d,3,!1):ME(r,d):1===l?u=P(r,d,3,a,void 0,o):2===l?u=P(d,r,3,a,void 0,o):3===l?(u=P(d,r,3,!1),u||(u=P(r,d,3,a,void 0,o))):(u=P(r,d,3,a,void 0,o),u&&(u&=P(d,r,3,a,void 0,o))),!u)return 0;c&=u}}return c}(e,n,a,r,u))return s;if(ce(a,(e=>!!(24&e))))return c=void 0,void L(o);const _=n&&function(e,n){for(let t=0;t<n.length;t++)if(1===(7&n[t])&&16384&e[t].flags)return!0;return!1}(n,a);if(l=!_,a!==i&&!_){if(l&&(!r||!ce(a,(e=>0===(7&e)))))return 0;c=d,L(o)}}}(e,n,r,a,o);if(t!==na){if(!s&&(2097152&e.flags||262144&e.flags&&1048576&n.flags)){const t=function(e,n){let t,r=!1;for(const i of e)if(465829888&i.flags){let e=E_(i);for(;e&&21233664&e.flags;)e=E_(e);e&&(t=Te(t,e),n&&(t=Te(t,i)))}else(469892092&i.flags||gT(i))&&(r=!0);if(t&&(n||r)){if(r)for(const n of e)(469892092&n.flags||gT(n))&&(t=Te(t,n));return ST(hy(t),!1)}}(2097152&e.flags?e.types:[e],!!(1048576&n.flags));t&&ML(t,(n=>n!==e))&&(s=P(t,n,1,!1,void 0,a))}s&&!(2&a)&&2097152&n.flags&&!pv(n)&&2621440&e.flags?(s&=Z(e,n,r,void 0,!1,0),s&&NA(e)&&8192&YE(e)&&(s&=oe(e,n,!1,r,0))):s&&rb(n)&&!Tx(n)&&2097152&e.flags&&3670016&G_(e).flags&&!ce(e.types,(e=>e===n||!!(262144&YE(e))))&&(s&=Z(e,n,r,void 0,!0,a))}s&&L(o);return s}(e,n,r,a),null==(l=Vr)||l.pop()),jn&&(jn=x),1&o&&y--,2&o&&v--,b=T,S){if(-1===S||0===y&&0===v){if(-1===S||3===S)for(let e=h;e<g;e++)t.set(_[e],1|A);g=h}}else t.set(u,2|(r?4:0)|A),g=h;return S}function $(e,n){if(!n||0===e.length)return e;let t;for(let r=0;r<e.length;r++)n.has(e[r].escapedName)?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t||e}function Q(e,n,r,i,a,o,s,c){const l=GE(r),d=GE(i);if(8&l||8&d){if(r.valueDeclaration!==i.valueDeclaration)return o&&(8&l&&8&d?w(Wo.Types_have_separate_declarations_of_a_private_property_0,Gs(i)):w(Wo.Property_0_is_private_in_type_1_but_not_in_type_2,Gs(i),Us(8&l?e:n),Us(8&l?n:e))),0}else if(16&d){if(!function(e,n){return!tx(n,(n=>{return!!(16&GE(n))&&(t=e,r=rx(n),!tx(t,(e=>{const n=rx(e);return!!n&&Rl(n,r)})));var t,r}))}(r,i))return o&&w(Wo.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Gs(i),Us(rx(r)||e),Us(rx(i)||n)),0}else if(16&l)return o&&w(Wo.Property_0_is_protected_in_type_1_but_public_in_type_2,Gs(i),Us(e),Us(n)),0;if(t===Qi&&uO(r)&&!uO(i))return 0;const u=function(e,n,t,r,i){const a=F&&!!(48&FE(n)),o=Sc(Cl(n),!1,a);return P(t(e),o,3,r,void 0,i)}(r,i,a,o,s);return u?!c&&16777216&r.flags&&106500&i.flags&&!(16777216&i.flags)?(o&&w(Wo.Property_0_is_optional_in_type_1_but_required_in_type_2,Gs(i),Us(e),Us(n)),0):u:(o&&k(Wo.Types_of_property_0_are_incompatible,Gs(i)),0)}function Z(e,n,r,i,a,s){if(t===na)return function(e,n,t){if(!(524288&e.flags&&524288&n.flags))return 0;const r=$(g_(e),t),i=$(g_(n),t);if(r.length!==i.length)return 0;let a=-1;for(const o of r){const e=y_(n,o.escapedName);if(!e)return 0;const t=px(o,e,P);if(!t)return 0;a&=t}return a}(e,n,i);let c=-1;if(Vx(n)){if(Tx(e)){if(!n.target.readonly&&(Ex(e)||Vx(e)&&e.target.readonly))return 0;const t=Ef(e),a=Ef(n),o=Vx(e)?4&e.target.combinedFlags:4,l=4&n.target.combinedFlags,d=Vx(e)?e.target.minLength:0,u=n.target.minLength;if(!o&&t<u)return r&&w(Wo.Source_has_0_element_s_but_target_requires_1,t,u),0;if(!l&&a<d)return r&&w(Wo.Source_has_0_element_s_but_target_allows_only_1,d,a),0;if(!l&&(o||a<t))return r&&(d<u?w(Wo.Target_requires_0_element_s_but_source_may_have_fewer,u):w(Wo.Target_allows_only_0_element_s_but_source_may_have_more,a)),0;const _=bf(e),p=bf(n),f=function(e,n){const t=M(e.elementFlags,(e=>!(e&n)));return t>=0?t:e.elementFlags.length}(n.target,11),m=yg(n.target,11),h=n.target.hasRestElement;let g=!!i;for(let y=0;y<t;y++){const o=Vx(e)?e.target.elementFlags[y]:4,l=t-1-y,d=h&&y>=f?a-1-Math.min(l,m):y,u=n.target.elementFlags[d];if(8&u&&!(8&o))return r&&w(Wo.Source_provides_no_match_for_variadic_element_at_position_0_in_target,d),0;if(8&o&&!(12&u))return r&&w(Wo.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,y,d),0;if(1&u&&!(1&o))return r&&w(Wo.Source_provides_no_match_for_required_element_at_position_0_in_target,d),0;if(g&&((12&o||12&u)&&(g=!1),g&&(null==i?void 0:i.has(""+y))))continue;const v=oS(_[y],!!(o&u&2)),b=p[d],E=P(v,8&o&&4&u?Mh(b):oS(b,!!(2&u)),3,r,void 0,s);if(!E)return r&&(a>1||t>1)&&(h&&y>=f&&l>=m&&f!==t-m-1?k(Wo.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,f,t-m-1,d):k(Wo.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,y,d)),0;c&=E}return c}if(12&n.target.combinedFlags)return 0}const l=(t===$i||t===Qi)&&!NA(e)&&!kx(e)&&!Vx(e),u=yA(e,n,l,!1);if(u)return r&&function(e,n){const t=X_(e,0),r=X_(e,1),i=g_(e);if((t.length||r.length)&&!i.length)return!!(Y_(n,0).length&&t.length||Y_(n,1).length&&r.length);return!0}(e,n)&&function(e,n,t,r){let i=!1;if(t.valueDeclaration&&qc(t.valueDeclaration)&&wC(t.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){const r=t.valueDeclaration.name.escapedText,i=By(e.symbol,r);if(i&&J_(e,i)){const t=gA.getDeclarationName(e.symbol.valueDeclaration),i=gA.getDeclarationName(n.symbol.valueDeclaration);return void w(Wo.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,ja(r),ja(""===t.escapedText?FG:t),ja(""===i.escapedText?FG:i))}}const a=Qe(hA(e,n,r,!1));if((!o||o.code!==Wo.Class_0_incorrectly_implements_interface_1.code&&o.code!==Wo.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(i=!0),1===a.length){const r=Gs(t,void 0,0,20);w(Wo.Property_0_is_missing_in_type_1_but_required_in_type_2,r,...Vs(e,n)),S(t.declarations)&&R(qf(t.declarations[0],Wo._0_is_declared_here,r)),i&&d&&T++}else D(e,n,!1)&&(a.length>5?w(Wo.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Us(e),Us(n),W(a.slice(0,4),(e=>Gs(e))).join(", "),a.length-4):w(Wo.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Us(e),Us(n),W(a,(e=>Gs(e))).join(", ")),i&&d&&T++)}(e,n,u,l),0;if(NA(n))for(const t of $(b_(e),i))if(!y_(n,t.escapedName)){if(!(32768&Sl(t).flags))return r&&w(Wo.Property_0_does_not_exist_on_type_1,Gs(t),Us(n)),0}const _=b_(n),p=Vx(e)&&Vx(n);for(const o of $(_,i)){const i=o.escapedName;if(!(4194304&o.flags)&&(!p||VS(i)||"length"===i)&&(!a||16777216&o.flags)){const a=J_(e,i);if(a&&a!==o){const i=Q(e,n,a,o,Cl,r,s,t===ea);if(!i)return 0;c&=i}}}return c}function ee(e,n,r,i,a){var o,s;if(t===na)return function(e,n,t){const r=Y_(e,t),i=Y_(n,t);if(r.length!==i.length)return 0;let a=-1;for(let o=0;o<r.length;o++){const e=fx(r[o],i[o],!1,!1,!1,P);if(!e)return 0;a&=e}return a}(e,n,r);if(n===It||e===It)return-1;const c=e.symbol&&JN(e.symbol.valueDeclaration),l=n.symbol&&JN(n.symbol.valueDeclaration),d=Y_(e,c&&1===r?0:r),u=Y_(n,l&&1===r?0:r);if(1===r&&d.length&&u.length){const e=!!(4&d[0].flags),n=!!(4&u[0].flags);if(e&&!n)return i&&w(Wo.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(e,n,t){if(!e.declaration||!n.declaration)return!0;const r=xb(e.declaration,24),i=xb(n.declaration,24);if(8===i)return!0;if(16===i&&8!==r)return!0;if(16!==i&&!r)return!0;t&&w(Wo.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,qs(r),qs(i));return!1}(d[0],u[0],i))return 0}let _=-1;const p=1===r?re:ne,f=YE(e),m=YE(n);if(64&f&&64&m&&e.symbol===n.symbol||4&f&&4&m&&e.target===n.target)for(let t=0;t<u.length;t++){const e=ie(d[t],u[t],!0,i,a,p(d[t],u[t]));if(!e)return 0;_&=e}else if(1===d.length&&1===u.length){const e=t===ea||!!x.noStrictGenericChecks,n=Me(d),c=Me(u);if(_=ie(n,c,e,i,a,p(n,c)),!_&&i&&1===r&&f&m&&(173===(null==(o=c.declaration)?void 0:o.kind)||173===(null==(s=n.declaration)?void 0:s.kind))){const e=e=>Bs(e,void 0,262144,r);return w(Wo.Type_0_is_not_assignable_to_type_1,e(n),e(c)),w(Wo.Types_of_construct_signatures_are_incompatible),_}}else e:for(const t of u){const n=C();let o=i;for(const e of d){const r=ie(e,t,!0,o,a,p(e,t));if(r){_&=r,L(n);continue e}o=!1}return o&&w(Wo.Type_0_provides_no_match_for_the_signature_1,Us(e),Bs(t,void 0,void 0,r)),0}return _}function ne(e,n){return 0===e.parameters.length&&0===n.parameters.length?(e,n)=>k(Wo.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Us(e),Us(n)):(e,n)=>k(Wo.Call_signature_return_types_0_and_1_are_incompatible,Us(e),Us(n))}function re(e,n){return 0===e.parameters.length&&0===n.parameters.length?(e,n)=>k(Wo.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Us(e),Us(n)):(e,n)=>k(Wo.Construct_signature_return_types_0_and_1_are_incompatible,Us(e),Us(n))}function ie(e,n,r,i,a,o){const s=t===$i?16:t===Qi?24:0;return pT(r?Wp(e):e,r?Wp(n):n,s,i,w,o,(function(e,n,t){return P(e,n,3,t,void 0,a)}),mt)}function ae(e,n,t,r){const i=P(e.type,n.type,3,t,void 0,r);return!i&&t&&(e.keyType===n.keyType?w(Wo._0_index_signatures_are_incompatible,Us(e.keyType)):w(Wo._0_and_1_index_signatures_are_incompatible,Us(e.keyType),Us(n.keyType))),i}function oe(e,n,r,i,a){if(t===na)return function(e,n){const t=np(e),r=np(n);if(t.length!==r.length)return 0;for(const i of r){const n=tp(e,i.keyType);if(!n||!P(n.type,i.type,3)||n.isReadonly!==i.isReadonly)return 0}return-1}(e,n);const o=np(n),s=ce(o,(e=>e.keyType===Dn));let c=-1;for(const t of o){const n=!r&&s&&1&t.type.flags?-1:m_(e)&&s?P(Wu(e),t.type,3,i):se(e,t,i,a);if(!n)return 0;c&=n}return c}function se(e,n,r,i){const a=ap(e,n.keyType);return a?ae(a,n,r,i):1&i||!(t!==Qi||8192&YE(e))||!hS(e)?(r&&w(Wo.Index_signature_for_type_0_is_missing_in_type_1,Us(n.keyType),Us(e)),0):function(e,n,t,r){let i=-1;const a=n.keyType,o=2097152&e.flags?v_(e):g_(e);for(const s of o)if(!xT(e,s)&&Z_(Cy(s,8576),a)){const e=Cl(s),o=P(te||32768&e.flags||a===On||!(16777216&s.flags)?e:uL(e,524288),n.type,3,t,void 0,r);if(!o)return t&&w(Wo.Property_0_is_incompatible_with_index_signature,Gs(s)),0;i&=o}for(const s of np(e))if(Z_(s.keyType,a)){const e=ae(s,n,t,r);if(!e)return 0;i&=e}return i}(e,n,r,i)}}function CT(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!A(e.types,CT);if(465829888&e.flags){const n=E_(e);if(n&&n!==e)return CT(n)}return Nx(e)||!!(134217728&e.flags)||!!(268435456&e.flags)}function RT(e,n){return Vx(e)&&Vx(n)?i:b_(n).filter((n=>OT(dc(e,n.escapedName),Sl(n))))}function OT(e,n){return!!e&&!!n&&yO(e,32768)&&!!sS(n)}function PT(e,n,t=PE){return rU(e,n,t,!0)||function(e,n){const t=YE(e);if(20&t&&1048576&n.flags)return D(n.types,(n=>{if(524288&n.flags){const r=t&YE(n);if(4&r)return e.target===n.target;if(16&r)return!!e.aliasSymbol&&e.aliasSymbol===n.aliasSymbol}return!1}))}(e,n)||function(e,n){if(128&YE(e)&&OL(n,Ax))return D(n.types,(e=>!Ax(e)))}(e,n)||function(e,n){let t=0;const r=Y_(e,t).length>0||(t=1,Y_(e,t).length>0);if(r)return D(n.types,(e=>Y_(e,t).length>0))}(e,n)||function(e,n){let t;if(!(406978556&e.flags)){let r=0;for(const i of n.types)if(!(406978556&i.flags)){const n=hy([Hy(e),Hy(i)]);if(4194304&n.flags)return i;if(Nx(n)||1048576&n.flags){const e=1048576&n.flags?V(n.types,Nx):1;e>=r&&(t=i,r=e)}}}return t}(e,n)}function FT(e,n,t,r,i){const a=e.types.map((e=>{}));for(const[c,l]of n){const n=V_(e,l);if(i&&n&&16&FE(n))continue;let r=0;for(const i of e.types){const e=dc(i,l);e&&t(c(),e)?a[r]=void 0===a[r]||a[r]:a[r]=!1,r++}}const o=a.indexOf(!0);if(-1===o)return r;let s=a.indexOf(!0,o+1);for(;-1!==s;){if(!OE(e.types[o],e.types[s]))return r;s=a.indexOf(!0,s+1)}return e.types[o]}function GT(e){if(524288&e.flags){const n=h_(e);return 0===n.callSignatures.length&&0===n.constructSignatures.length&&0===n.indexInfos.length&&n.properties.length>0&&N(n.properties,(e=>!!(16777216&e.flags)))}return!!(2097152&e.flags)&&N(e.types,GT)}function BT(e){return e===qt||e===Jt||8&e.objectFlags?T:VT(e.symbol,e.typeParameters)}function UT(e){return VT(e,wa(e).typeParameters)}function VT(e,n=i){var t,r;const a=wa(e);if(!a.variances){null==(t=Vr)||t.push(Vr.Phase.CheckTypes,"getVariancesWorker",{arity:n.length,id:Eg(hd(e))}),a.variances=i;const o=[];for(const t of n){const n=YT(t);let r=65536&n?32768&n?0:1:32768&n?2:void 0;if(void 0===r){let n=!1,i=!1;const a=jn;jn=e=>e?i=!0:n=!0;const o=jT(e,t,Ot),s=jT(e,t,Mt);r=(WE(s,o)?1:0)|(WE(o,s)?2:0),3===r&&WE(jT(e,t,Pt),o)&&(r=4),jn=a,(n||i)&&(n&&(r|=8),i&&(r|=16))}o.push(r)}a.variances=o,null==(r=Vr)||r.pop({variances:o.map(Nt.formatVariance)})}return a.variances}function jT(e,n,t){const r=sE(n,t),i=hd(e);if(_c(i))return i;const a=524288&e.flags?If(e,Wb(wa(e).typeParameters,r)):pf(i,Wb(i.typeParameters,r));return tn.add(Eg(a)),a}function qT(e){return tn.has(Eg(e))}function YT(e){var n;return 100352&We(null==(n=e.symbol)?void 0:n.declarations,((e,n)=>e|Lb(n)),0)}function $T(e){return 262144&e.flags&&!T_(e)}function QT(e){return function(e){return!!(4&YE(e))&&!e.node}(e)&&ce(bf(e),(e=>!!(262144&e.flags)||QT(e)))}function ZT(e,n,t,r,i){if(r===na&&e.id>n.id){const t=e;e=n,n=t}const a=t?":"+t:"";return QT(e)&&QT(n)?function(e,n,t,r){const i=[];let a="";const o=c(e,0),s=c(n,0);return`${a}${o},${s}${t}`;function c(e,n=0){let t=""+e.target.id;for(const o of bf(e)){if(262144&o.flags){if(r||$T(o)){let e=i.indexOf(o);e<0&&(e=i.length,i.push(o)),t+="="+e;continue}a="*"}else if(n<4&&QT(o)){t+="<"+c(o,n+1)+">";continue}t+="-"+o.id}return t}}(e,n,a,i):`${e.id},${n.id}${a}`}function tx(e,n){if(!(6&FE(e)))return n(e);for(const t of e.links.containingType.types){const r=J_(t,e.escapedName),i=r&&tx(r,n);if(i)return i}}function rx(e){return e.parent&&32&e.parent.flags?hd(es(e)):void 0}function ix(e){const n=rx(e),t=n&&td(n)[0];return t&&dc(t,e.escapedName)}function cx(e,n,t){return tx(n,(n=>!!(16&GE(n,t))&&!Rl(e,rx(n))))?void 0:e}function dx(e,n,t,r=3){if(t>=r){if(2097152&e.flags)return ce(e.types,(e=>dx(e,n,t,r)));const i=_x(e);let a=0,o=0;for(let e=0;e<t;e++){const t=n[e];if(2097152&t.flags?ce(t.types,(e=>_x(e)===i)):_x(t)===i){if(t.id>=o&&(a++,a>=r))return!0;o=t.id}}}return!1}function _x(e){if(524288&e.flags&&!DA(e)){if(YE(e)&&e.node)return e.node;if(e.symbol&&!(16&YE(e)&&32&e.symbol.flags))return e.symbol;if(Vx(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){do{e=e.objectType}while(8388608&e.flags);return e}return 16777216&e.flags?e.root:e}function px(e,n,t){if(e===n)return-1;const r=24&GE(e);if(r!==(24&GE(n)))return 0;if(r){if(hF(e)!==hF(n))return 0}else if((16777216&e.flags)!==(16777216&n.flags))return 0;return uO(e)!==uO(n)?0:t(Sl(e),Sl(n))}function fx(e,n,t,r,i,a){if(e===n)return-1;if(!function(e,n,t){const r=AD(e),i=AD(n),a=LD(e),o=LD(n),s=ID(e),c=ID(n);return r===i&&a===o&&s===c||!!(t&&a<=o)}(e,n,t))return 0;if(S(e.typeParameters)!==S(n.typeParameters))return 0;if(n.typeParameters){const t=rE(e.typeParameters,n.typeParameters);for(let r=0;r<n.typeParameters.length;r++){const i=e.typeParameters[r],o=n.typeParameters[r];if(!(i===o||a(AE(rf(i),t)||xn,rf(o)||xn)&&a(AE(D_(i),t)||xn,D_(o)||xn)))return 0}e=hE(e,t,!0)}let o=-1;if(!r){const t=kp(e);if(t){const e=kp(n);if(e){const n=a(t,e);if(!n)return 0;o&=n}}}const s=AD(n);for(let c=0;c<s;c++){const t=TD(e,c),r=a(TD(n,c),t);if(!r)return 0;o&=r}if(!i){const t=Ip(e),r=Ip(n);o&=t||r?function(e,n,t){return e&&n&&Kg(e,n)?e.type===n.type?-1:e.type&&n.type?t(e.type,n.type):0:0}(t,r,a):a(Rp(e),Rp(n))}return o}function mx(e){return We(e,((e,n)=>e|(1048576&n.flags?mx(n.types):n.flags)),0)}function vx(e){if(1===e.length)return e[0];const n=F?q(e,(e=>PL(e,(e=>!(98304&e.flags))))):e,t=function(e){let n;for(const t of e)if(!(131072&t.flags)){const e=Mx(t);if(null!=n||(n=e),e===t||e!==n)return!1}return!0}(n)?Pg(n):We(n,((e,n)=>HE(e,n)?n:e));return n===e?t:Yx(t,98304&mx(e))}function bx(e){return!!(4&YE(e))&&(e.target===qt||e.target===Jt)}function Ex(e){return!!(4&YE(e))&&e.target===Jt}function Tx(e){return bx(e)||Vx(e)}function xx(e){return bx(e)&&!Ex(e)||Vx(e)&&!e.target.readonly}function Sx(e){return bx(e)?bf(e)[0]:void 0}function Ax(e){return bx(e)||!(98304&e.flags)&&WE(e,tr)}function Lx(e){if(!(4&YE(e))||!(3&YE(e.target)))return;if(33554432&YE(e))return 67108864&YE(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;const n=e.target;if(1&YE(n)){const e=Yl(n);if(e&&79!==e.expression.kind&&208!==e.expression.kind)return}const t=td(n);if(1!==t.length)return;if(Zd(e.symbol).size)return;let r=S(n.typeParameters)?AE(t[0],rE(n.typeParameters,bf(e).slice(0,n.typeParameters.length))):t[0];return S(bf(e))>S(n.typeParameters)&&(r=nu(r,Ge(bf(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function Cx(e){return F?e===Jn:e===Ln}function kx(e){const n=Sx(e);return!!n&&Cx(n)}function Ix(e){return Vx(e)||!!J_(e,"0")}function wx(e){return Ax(e)||Ix(e)}function Rx(e){return!(240544&e.flags)}function Nx(e){return!!(109472&e.flags)}function Dx(e){const n=I_(e);return 2097152&n.flags?ce(n.types,Nx):Nx(n)}function Ox(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||N(e.types,Nx):Nx(e))}function Mx(e){return 1056&e.flags?ld(e):402653312&e.flags?Dn:256&e.flags?On:2048&e.flags?Mn:512&e.flags?Hn:1048576&e.flags?function(e){var n;const t=`B${Eg(e)}`;return null!=(n=aa(t))?n:oa(t,BL(e,Mx))}(e):e}function Px(e){return 402653312&e.flags?Dn:288&e.flags?On:2048&e.flags?Mn:512&e.flags?Hn:1048576&e.flags?BL(e,Px):e}function Fx(e){return 1056&e.flags&&Ab(e)?ld(e):128&e.flags&&Ab(e)?Dn:256&e.flags&&Ab(e)?On:2048&e.flags&&Ab(e)?Mn:512&e.flags&&Ab(e)?Hn:1048576&e.flags?BL(e,Fx):e}function Gx(e){return 8192&e.flags?Kn:1048576&e.flags?BL(e,Gx):e}function Bx(e,n){return GO(e,n)||(e=Gx(Fx(e))),Sb(e)}function Ux(e,n,t,r){if(e&&Nx(e)){e=Bx(e,n?QP(t,n,r):void 0)}return e}function Vx(e){return!!(4&YE(e)&&8&e.target.objectFlags)}function jx(e){return Vx(e)&&!!(8&e.target.combinedFlags)}function Hx(e){return jx(e)&&1===e.target.elementFlags.length}function Kx(e){return Wx(e,e.target.fixedLength)}function Wx(e,n,t=0,r=!1,i=!1){const a=Ef(e)-t;if(n<a){const t=bf(e),o=[];for(let r=n;r<a;r++){const n=t[r];o.push(8&e.target.elementFlags[r]?Lv(n,On):n)}return r?hy(o):Pg(o,i?0:1)}}function zx({value:e}){return"0"===e.base10Value}function qx(e){return PL(e,(e=>!!(4194304&dL(e))))}function Jx(e){return 4&e.flags?Ti:8&e.flags?xi:64&e.flags?Si:e===Gn||e===Fn||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&zx(e)?e:zn}function Yx(e,n){const t=n&~e.flags&98304;return 0===t?e:Pg(32768===t?[e,An]:65536===t?[e,wn]:[e,An,wn])}function $x(e,n=!1){Nt.assert(F);const t=n?kn:An;return e===t||1048576&e.flags&&e.types[0]===t?e:Pg([e,t])}function Qx(e){return F?_L(e,2097152):e}function Zx(e){return F?Pg([e,In]):e}function eS(e){return F?FL(e,In):e}function tS(e,n,t){return t?Wl(n)?$x(e):Zx(e):e}function rS(e,n){return Kl(n)?Qx(e):jl(n)?eS(e):e}function oS(e,n){return te&&n?FL(e,Cn):e}function sS(e){return e===Cn||!!(1048576&e.flags)&&e.types[0]===Cn}function pS(e){return te?FL(e,Cn):uL(e,524288)}function hS(e){const n=YE(e);return 2097152&e.flags?N(e.types,hS):!(!e.symbol||0===(7040&e.symbol.flags)||32&e.symbol.flags||EG(e))||!!(4194304&n)||!!(1024&n&&hS(e.source))}function TS(e,n){const t=va(e.flags,e.escapedName,8&FE(e));t.declarations=e.declarations,t.parent=e.parent,t.links.type=n,t.links.target=e,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration);const r=wa(e).nameType;return r&&(t.links.nameType=r),t}function xS(e){if(!(NA(e)&&8192&YE(e)))return e;const n=e.regularType;if(n)return n;const t=e,r=function(e,n){const t=dp();for(const r of g_(e)){const e=Sl(r),i=n(e);t.set(r.escapedName,i===e?r:TS(r,i))}return t}(e,xS),i=vs(t.symbol,r,t.callSignatures,t.constructSignatures,t.indexInfos);return i.flags=t.flags,i.objectFlags|=-8193&t.objectFlags,e.regularType=i,i}function AS(e,n,t){return{parent:e,propertyName:n,siblings:t,resolvedProperties:void 0}}function kS(e){if(!e.siblings){const n=[];for(const t of kS(e.parent))if(NA(t)){const r=y_(t,e.propertyName);r&&DL(Sl(r),(e=>{n.push(e)}))}e.siblings=n}return e.siblings}function IS(e){if(!e.resolvedProperties){const n=new Map;for(const t of kS(e))if(NA(t)&&!(2097152&YE(t)))for(const e of b_(t))n.set(e.escapedName,e);e.resolvedProperties=Qe(n.values())}return e.resolvedProperties}function wS(e,n){if(!(4&e.flags))return e;const t=Sl(e),r=OS(t,n&&AS(n,e.escapedName,void 0));return r===t?e:TS(e,r)}function RS(e){const n=nn.get(e.escapedName);if(n)return n;const t=TS(e,kn);return t.flags|=16777216,nn.set(e.escapedName,t),t}function DS(e){return OS(e,void 0)}function OS(e,n){if(196608&YE(e)){if(void 0===n&&e.widened)return e.widened;let t;if(98305&e.flags)t=un;else if(NA(e))t=function(e,n){const t=dp();for(const i of g_(e))t.set(i.escapedName,wS(i,n));if(n)for(const i of IS(n))t.has(i.escapedName)||t.set(i.escapedName,RS(i));const r=vs(e.symbol,t,i,i,q(np(e),(e=>$p(e.keyType,DS(e.type),e.isReadonly))));return r.objectFlags|=266240&YE(e),r}(e,n);else if(1048576&e.flags){const r=n||AS(void 0,void 0,e.types),i=q(e.types,(e=>98304&e.flags?e:OS(e,r)));t=Pg(i,ce(i,hT)?2:1)}else 2097152&e.flags?t=hy(q(e.types,DS)):Tx(e)&&(t=pf(e.target,q(bf(e),DS)));return t&&void 0===n&&(e.widened=t),t||e}return e}function FS(e){let n=!1;if(65536&YE(e)){if(1048576&e.flags)if(ce(e.types,hT))n=!0;else for(const t of e.types)FS(t)&&(n=!0);if(Tx(e))for(const t of bf(e))FS(t)&&(n=!0);if(NA(e))for(const t of g_(e)){const e=Sl(t);65536&YE(e)&&(FS(e)||_a(t.valueDeclaration,Wo.Object_literal_s_property_0_implicitly_has_an_1_type,Gs(t),Us(DS(e))),n=!0)}}return n}function US(e,n,t){const r=Us(DS(n));if(Ih(e)&&!aS(Dp(e),x))return;let i;switch(e.kind){case 223:case 169:case 168:i=Y?Wo.Member_0_implicitly_has_an_1_type:Wo.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 166:const n=e;if(IC(n.name)){const t=Vc(n.name);if((rk(n.parent)||$C(n.parent)||ck(n.parent))&&n.parent.parameters.indexOf(n)>-1&&(Fa(n,n.name.escapedText,788968,void 0,n.name.escapedText,!0)||t&&rT(t))){const t="arg"+n.parent.parameters.indexOf(n),r=Vf(n.name)+(n.dotDotDotToken?"[]":"");return void fa(Y,e,Wo.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,t,r)}}i=e.dotDotDotToken?Y?Wo.Rest_parameter_0_implicitly_has_an_any_type:Wo.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Y?Wo.Parameter_0_implicitly_has_an_1_type:Wo.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 205:if(i=Wo.Binding_element_0_implicitly_has_an_1_type,!Y)return;break;case 320:return void _a(e,Wo.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 326:return void(Y&&iR(e.parent)&&_a(e.parent.tagName,Wo.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r));case 259:case 171:case 170:case 174:case 175:case 215:case 216:if(Y&&!e.name)return void _a(e,3===t?Wo.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:Wo.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);i=Y?3===t?Wo._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:Wo._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:Wo._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 197:return void(Y&&_a(e,Wo.Mapped_object_type_implicitly_has_an_any_template_type));default:i=Y?Wo.Variable_0_implicitly_has_an_1_type:Wo.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}fa(Y,e,i,Vf(Xc(e)),r)}function KS(e,n,t){l((()=>{!(Y&&65536&YE(n))||t&&_I(e)||FS(n)||US(e,n,t)}))}function WS(e,n,t){const r=AD(e),i=AD(n),a=wD(e),o=wD(n),s=o?i-1:i,c=a?s:Math.min(r,s),l=kp(e);if(l){const e=kp(n);e&&t(l,e)}for(let d=0;d<c;d++)t(TD(e,d),TD(n,d));o&&t(SD(e,c),o)}function YS(e,n,t){const r=Ip(e),i=Ip(n);r&&i&&Kg(r,i)&&r.type&&i.type?t(r.type,i.type):t(Rp(e),Rp(n))}function rA(e,n,t,r){return iA(e.map(sA),n,t,r||PE)}function iA(e,n,t,r){const i={inferences:e,signature:n,flags:t,compareTypes:r,mapper:ht,nonFixingMapper:ht};return i.mapper=function(e){return lE(W(e.inferences,(e=>e.typeParameter)),W(e.inferences,((n,t)=>()=>(n.isFixed||(!function(e){if(e.intraExpressionInferenceSites){for(const{node:n,type:t}of e.intraExpressionInferenceSites){const r=171===n.kind?yk(n,2):Xk(n,2);r&&IA(e.inferences,t,r)}e.intraExpressionInferenceSites=void 0}}(e),aA(e.inferences),n.isFixed=!0),PA(e,t)))))}(i),i.nonFixingMapper=function(e){return lE(W(e.inferences,(e=>e.typeParameter)),W(e.inferences,((n,t)=>()=>PA(e,t))))}(i),i}function aA(e){for(const n of e)n.isFixed||(n.inferredType=void 0)}function oA(e,n,t){var r;(null!=(r=e.intraExpressionInferenceSites)?r:e.intraExpressionInferenceSites=[]).push({node:n,type:t})}function sA(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function cA(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function lA(e){return e&&e.mapper}function dA(e){const n=YE(e);if(524288&n)return!!(1048576&n);const t=!!(465829888&e.flags||524288&e.flags&&!uA(e)&&(4&n&&(e.node||A(bf(e),dA))||16&n&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&n)||3145728&e.flags&&!(1024&e.flags)&&!uA(e)&&ce(e.types,dA));return 3899393&e.flags&&(e.objectFlags|=524288|(t?1048576:0)),t}function uA(e){if(e.aliasSymbol&&!e.aliasTypeArguments){const n=cp(e.aliasSymbol,262);return!(!n||!Mc(n.parent,(e=>308===e.kind||264!==e.kind&&"quit")))}return!1}function _A(e,n,t=0){return!!(e===n||3145728&e.flags&&ce(e.types,(e=>_A(e,n,t)))||t<3&&16777216&e.flags&&(_A(Fv(e),n,t+1)||_A(Gv(e),n,t+1)))}function pA(e,n,t){if(ci)return;const r=e.id+","+n.id+","+t.id;if(si.has(r))return si.get(r);ci=!0;const i=function(e,n,t){if(!(tp(e,Dn)||0!==b_(e).length&&fA(e)))return;if(bx(e))return Mh(mA(bf(e)[0],n,t),Ex(e));if(Vx(e)){return ig(W(bf(e),(e=>mA(e,n,t))),4&r_(n)?q(e.target.elementFlags,(e=>2&e?1:e)):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}const r=_s(1040,void 0);return r.source=e,r.mappedType=n,r.constraintType=t,r}(e,n,t);return ci=!1,si.set(r,i),i}function fA(e){return!(262144&YE(e))||NA(e)&&ce(b_(e),(e=>fA(Sl(e))))||Vx(e)&&ce(bf(e),fA)}function mA(e,n,t){const r=Lv(t.type,Vu(n)),i=Wu(n),a=sA(r);return IA([a],e,i),vA(a)||xn}function*hA(e,n,t,r){const i=b_(n);for(const a of i)if(!Od(a)&&(t||!(16777216&a.flags||48&FE(a)))){const n=J_(e,a.escapedName);if(n){if(r){const e=Sl(a);if(109472&e.flags){const t=Sl(n);1&t.flags||Sb(t)===Sb(e)||(yield a)}}}else yield a}}function yA(e,n,t,r){return Oe(hA(e,n,t,r))}function vA(e){return e.candidates?Pg(e.candidates,2):e.contraCandidates?hy(e.contraCandidates):void 0}function bA(e){return!!Ra(e).skipDirectInference}function EA(e){return!(!e.symbol||!ce(e.symbol.declarations,bA))}function TA(e,n){if(""===e)return!1;const t=+e;return isFinite(t)&&(!n||""+t===e)}function xA(e){return Ib(gS(e))}function SA(e,n){if(1&n.flags)return!0;if(134217732&n.flags)return WE(e,n);if(268435456&n.flags){const t=[];for(;268435456&n.flags;)t.unshift(n.symbol),n=n.type;return We(t,((e,n)=>Zy(n,e)),e)===e&&SA(e,n)}return!1}function AA(e,n){return 128&e.flags?kA([e.value],i,n):134217728&e.flags?B(e.texts,n.texts)?W(e.types,CA):kA(e.texts,e.types,n):void 0}function LA(e,n){const t=AA(e,n);return!!t&&N(t,((e,t)=>function(e,n){if(e===n||5&n.flags)return!0;if(128&e.flags){const t=e.value;return!!(8&n.flags&&TA(t,!1)||64&n.flags&&yS(t,!1)||98816&n.flags&&t===n.intrinsicName||268435456&n.flags&&SA(Cb(t),n))}if(134217728&e.flags){const t=e.texts;return 2===t.length&&""===t[0]&&""===t[1]&&WE(e.types[0],n)}return WE(e,n)}(e,n.types[t])))}function CA(e){return 402653317&e.flags?e:zy(["",""],[e])}function kA(e,n,t){const r=e.length-1,i=e[0],a=e[r],o=t.texts,s=o.length-1,c=o[0],l=o[s];if(0===r&&i.length<c.length+l.length||!i.startsWith(c)||!a.endsWith(l))return;const d=a.slice(0,a.length-l.length),u=[];let _=0,p=c.length;for(let h=1;h<s;h++){const n=o[h];if(n.length>0){let t=_,r=p;for(;r=f(t).indexOf(n,r),!(r>=0);){if(t++,t===e.length)return;r=0}m(t,r),p+=n.length}else if(p<f(_).length)m(_,p+1);else{if(!(_<r))return;m(_+1,0)}}return m(r,f(r).length),u;function f(n){return n<r?e[n]:d}function m(t,r){const i=t===_?Cb(f(t).slice(p,r)):zy([e[_].slice(p),...e.slice(_+1,t),f(t).slice(0,r)],n.slice(_,t));u.push(i),_=t,p=r}}function IA(e,n,t,r=0,a=!1){let o,s,c,l,d=!1,u=2048,_=!0,p=0;function f(n,s){if(dA(s)){if(n===pn){const e=o;return o=n,f(s,s),void(o=e)}if(n.aliasSymbol&&n.aliasSymbol===s.aliasSymbol){if(n.aliasTypeArguments){const e=wa(n.aliasSymbol).typeParameters,t=hp(e);y(Ep(n.aliasTypeArguments,e,t,Ih(n.aliasSymbol.valueDeclaration)),Ep(s.aliasTypeArguments,e,t,Ih(n.aliasSymbol.valueDeclaration)),UT(n.aliasSymbol))}}else if(n===s&&3145728&n.flags)for(const e of n.types)f(e,e);else{if(1048576&s.flags){const[e,t]=g(1048576&n.flags?n.types:[n],s.types,wA),[r,i]=g(e,t,RA);if(0===i.length)return;if(s=Pg(i),0===r.length)return void m(n,s,1);n=Pg(r)}else if(2097152&s.flags&&!N(s.types,rb)){if(!(1048576&n.flags)){const[e,t]=g(2097152&n.flags?n.types:[n],s.types,OE);if(0===e.length||0===t.length)return;n=hy(e),s=hy(t)}}else 41943040&s.flags&&(s=Rv(s));if(8650752&s.flags){if(EA(n))return;const i=E(s);if(i){if(262144&YE(n)||n===yn)return;if(!i.isFixed){if((void 0===i.priority||r<i.priority)&&(i.candidates=void 0,i.contraCandidates=void 0,i.topLevel=!0,i.priority=r),r===i.priority){const t=o||n;a&&!d?G(i.contraCandidates,t)||(i.contraCandidates=Te(i.contraCandidates,t),aA(e)):G(i.candidates,t)||(i.candidates=Te(i.candidates,t),aA(e))}!(128&r)&&262144&s.flags&&i.topLevel&&!_A(t,s)&&(i.topLevel=!1,aA(e))}return void(u=Math.min(u,r))}const c=Ev(s,!1);if(c!==s)f(n,c);else if(8388608&s.flags){const e=Ev(s.indexType,!1);if(465829888&e.flags){const t=Tv(Ev(s.objectType,!1),e,!1);t&&t!==s&&f(n,t)}}}if(!(4&YE(n)&&4&YE(s)&&(n.target===s.target||bx(n)&&bx(s)))||n.node&&s.node)if(4194304&n.flags&&4194304&s.flags)v(n.type,s.type);else if((Ox(n)||4&n.flags)&&4194304&s.flags){!function(e,n,t){const i=r;r|=t,v(e,n),r=i}(function(e){const n=dp();DL(e,(e=>{if(!(128&e.flags))return;const t=Gc(e.value),r=va(4,t);r.links.type=un,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),n.set(t,r)}));const t=4&e.flags?[$p(Dn,bt,!1)]:i;return vs(void 0,n,i,i,t)}(n),s.type,256)}else if(8388608&n.flags&&8388608&s.flags)f(n.objectType,s.objectType),f(n.indexType,s.indexType);else if(268435456&n.flags&&268435456&s.flags)n.symbol===s.symbol&&f(n.type,s.type);else if(33554432&n.flags)f(n.baseType,s),m(Gf(n),s,4);else if(16777216&s.flags)h(n,s,S);else if(3145728&s.flags)T(n,s.types,s.flags);else if(1048576&n.flags){const e=n.types;for(const n of e)f(n,s)}else if(134217728&s.flags)!function(e,n){const t=AA(e,n),r=n.types;if(t||N(n.texts,(e=>0===e.length)))for(let i=0;i<r.length;i++){const e=t?t[i]:zn,n=r[i];if(128&e.flags&&8650752&n.flags){const t=E(n),r=t?k_(t.typeParameter):void 0;if(r&&!uc(r)){const t=1048576&r.flags?r.types:[r];let i=We(t,((e,n)=>e|n.flags),0);if(!(4&i)){const r=e.value;296&i&&!TA(r,!0)&&(i&=-297),2112&i&&!yS(r,!0)&&(i&=-2113);const a=We(t,((n,t)=>t.flags&i?4&n.flags?n:4&t.flags?e:134217728&n.flags?n:134217728&t.flags&&LA(e,t)?e:268435456&n.flags?n:268435456&t.flags&&r===ev(t.symbol,r)?e:128&n.flags?n:128&t.flags&&t.value===r?t:8&n.flags?n:8&t.flags?kb(+r):32&n.flags?n:32&t.flags?kb(+r):256&n.flags?n:256&t.flags&&t.value===+r?t:64&n.flags?n:64&t.flags?xA(r):2048&n.flags?n:2048&t.flags&&mS(t.value)===r?t:16&n.flags?n:16&t.flags?"true"===r?Bn:"false"===r?Fn:Hn:512&n.flags?n:512&t.flags&&t.intrinsicName===r?t:32768&n.flags?n:32768&t.flags&&t.intrinsicName===r?t:65536&n.flags?n:65536&t.flags&&t.intrinsicName===r?t:n:n),zn);if(!(131072&a.flags)){f(a,n);continue}}}}f(e,n)}}(n,s);else{if(n=H_(n),!(512&r&&467927040&n.flags)){const e=G_(n);if(e!==n&&_&&!(2621440&e.flags))return _=!1,f(e,s);n=e}2621440&n.flags&&h(n,s,A)}else y(bf(n),bf(s),BT(n.target))}}}function m(e,n,t){const i=r;r|=t,f(e,n),r=i}function h(e,n,t){const r=e.id+","+n.id,i=s&&s.get(r);if(void 0!==i)return void(u=Math.min(u,i));(s||(s=new Map)).set(r,-1);const a=u;u=2048;const o=p,d=_x(e),_=_x(n);G(c,d)&&(p|=1),G(l,_)&&(p|=2),3!==p?((c||(c=[])).push(d),(l||(l=[])).push(_),t(e,n),l.pop(),c.pop()):u=-1,p=o,s.set(r,u),u=Math.min(u,a)}function g(e,n,t){let r,i;for(const a of n)for(const n of e)t(n,a)&&(f(n,a),r=Ce(r,n),i=Ce(i,a));return[r?j(e,(e=>!G(r,e))):e,i?j(n,(e=>!G(i,e))):n]}function y(e,n,t){const r=e.length<n.length?e.length:n.length;for(let i=0;i<r;i++)i<t.length&&2===(7&t[i])?v(e[i],n[i]):f(e[i],n[i])}function v(e,n){a=!a,f(e,n),a=!a}function b(e,n){U||1024&r?v(e,n):f(e,n)}function E(n){if(8650752&n.flags)for(const t of e)if(n===t.typeParameter)return t}function T(e,n,t){let i=0;if(1048576&t){let t;const a=1048576&e.flags?e.types:[e],o=new Array(a.length);let s=!1;for(const e of n)if(E(e))t=e,i++;else for(let n=0;n<a.length;n++){const t=u;u=2048,f(a[n],e),u===r&&(o[n]=!0),s=s||-1===u,u=Math.min(u,t)}if(0===i){const t=function(e){let n;for(const t of e){const e=2097152&t.flags&&D(t.types,(e=>!!E(e)));if(!e||n&&e!==n)return;n=e}return n}(n);return void(t&&m(e,t,1))}if(1===i&&!s){const e=X(a,((e,n)=>o[n]?void 0:e));if(e.length)return void f(Pg(e),t)}}else for(const r of n)E(r)?i++:f(e,r);if(2097152&t?1===i:i>0)for(const r of n)E(r)&&m(e,r,1)}function x(e,n,t){if(1048576&t.flags){let r=!1;for(const i of t.types)r=x(e,n,i)||r;return r}if(4194304&t.flags){const r=E(t.type);if(r&&!r.isFixed&&!EA(e)){const i=pA(e,n,t);i&&m(i,r.typeParameter,262144&YE(e)?16:8)}return!0}if(262144&t.flags){m(Hy(e),t,32);const r=E_(t);if(r&&x(e,n,r))return!0;return f(Pg(de(W(b_(e),Sl),W(np(e),(e=>e!==Zr?e.type:zn)))),Wu(n)),!0}return!1}function S(e,n){if(16777216&e.flags)f(e.checkType,n.checkType),f(e.extendsType,n.extendsType),f(Fv(e),Fv(n)),f(Gv(e),Gv(n));else{!function(e,n,t,i){const a=r;r|=i,T(e,n,t),r=a}(e,[Fv(n),Gv(n)],n.flags,a?64:0)}}function A(e,n){var t,r;if(4&YE(e)&&4&YE(n)&&(e.target===n.target||bx(e)&&bx(n)))y(bf(e),bf(n),BT(e.target));else{if(m_(e)&&m_(n)){f(ju(e),ju(n)),f(Wu(e),Wu(n));const t=Hu(e),r=Hu(n);t&&r&&f(t,r)}if(32&YE(n)&&!n.declaration.nameType){if(x(e,n,ju(n)))return}if(!function(e,n){return Vx(e)&&Vx(n)?function(e,n){return!(8&n.target.combinedFlags)&&n.target.minLength>e.target.minLength||!n.target.hasRestElement&&(e.target.hasRestElement||n.target.fixedLength<e.target.fixedLength)}(e,n):!!yA(e,n,!1,!0)&&!!yA(n,e,!1,!1)}(e,n)){if(Tx(e)){if(Vx(n)){const o=Ef(e),s=Ef(n),c=bf(n),l=n.target.elementFlags;if(Vx(e)&&(a=n,Ef(i=e)===Ef(a)&&N(i.target.elementFlags,((e,n)=>(12&e)===(12&a.target.elementFlags[n]))))){for(let n=0;n<s;n++)f(bf(e)[n],c[n]);return}const d=Vx(e)?Math.min(e.target.fixedLength,n.target.fixedLength):0,u=Math.min(Vx(e)?yg(e.target,3):0,n.target.hasRestElement?yg(n.target,3):0);for(let n=0;n<d;n++)f(bf(e)[n],c[n]);if(!Vx(e)||o-d-u===1&&4&e.target.elementFlags[d]){const n=bf(e)[d];for(let e=d;e<s-u;e++)f(8&l[e]?Mh(n):n,c[e])}else{const i=s-d-u;if(2===i){if(l[d]&l[d+1]&8){const n=E(c[d]);n&&void 0!==n.impliedArity&&(f(mg(e,d,u+o-n.impliedArity),c[d]),f(mg(e,d+n.impliedArity,u),c[d+1]))}else if(8&l[d]&&4&l[d+1]){const n=null==(t=E(c[d]))?void 0:t.typeParameter,r=n&&k_(n);if(r&&Vx(r)&&!r.target.hasRestElement){const n=r.target.fixedLength;f(mg(e,d,o-(d+n)),c[d]),f(Wx(e,d+n,u),c[d+1])}}else if(4&l[d]&&8&l[d+1]){const t=null==(r=E(c[d+1]))?void 0:r.typeParameter,i=t&&k_(t);if(i&&Vx(i)&&!i.target.hasRestElement){const t=i.target.fixedLength,r=o-yg(n.target,3),a=r-t,s=ig(bf(e).slice(a,r),e.target.elementFlags.slice(a,r),!1,e.target.labeledElementDeclarations&&e.target.labeledElementDeclarations.slice(a,r));f(Wx(e,d,u+t),c[d]),f(s,c[d+1])}}}else if(1===i&&8&l[d]){const t=2&n.target.elementFlags[s-1];m(mg(e,d,u),c[d],t?2:0)}else if(1===i&&4&l[d]){const n=Wx(e,d,u);n&&f(n,c[d])}}for(let n=0;n<u;n++)f(bf(e)[o-n-1],c[s-n-1]);return}if(bx(n))return void k(e,n)}!function(e,n){const t=g_(n);for(const r of t){const n=J_(e,r.escapedName);n&&!ce(n.declarations,bA)&&f(Sl(n),Sl(r))}}(e,n),L(e,n,0),L(e,n,1),k(e,n)}var i,a}}function L(e,n,t){const r=Y_(e,t),i=Y_(n,t),a=r.length,o=i.length,s=a<o?a:o;for(let c=0;c<s;c++)C(qp(r[a-s+c]),Wp(i[o-s+c]))}function C(e,n){const t=d,r=n.declaration?n.declaration.kind:0;d=d||171===r||170===r||173===r,WS(e,n,b),d=t,YS(e,n,f)}function k(e,n){const t=YE(e)&YE(n)&32?8:0,r=np(n);if(hS(e))for(const i of r){const n=[];for(const t of b_(e))if(Z_(Cy(t,8576),i.keyType)){const e=Sl(t);n.push(16777216&t.flags?pS(e):e)}for(const t of np(e))Z_(t.keyType,i.keyType)&&n.push(t.type);n.length&&m(Pg(n),i.type,t)}for(const i of r){const n=ap(e,i.keyType);n&&m(n.type,i.type,t)}}f(n,t)}function wA(e,n){return n===Cn?e===n:OE(e,n)||!!(4&n.flags&&128&e.flags||8&n.flags&&256&e.flags)}function RA(e,n){return!!(524288&e.flags&&524288&n.flags&&e.symbol&&e.symbol===n.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===n.aliasSymbol)}function NA(e){return!!(128&YE(e))}function DA(e){return!!(16512&YE(e))}function OA(e){return 416&e.priority?hy(e.contraCandidates):We(e.contraCandidates,((e,n)=>HE(n,e)?n:e))}function MA(e,n){const t=function(e){if(e.length>1){const n=j(e,DA);if(n.length){const t=Pg(n,2);return de(j(e,(e=>!DA(e))),[t])}}return e}(e.candidates),r=function(e){const n=T_(e);return!!n&&yO(16777216&n.flags?A_(n):n,406978556)}(e.typeParameter)||x_(e.typeParameter),i=!r&&e.topLevel&&(e.isFixed||!function(e,n){const t=Ip(e);return t?!!t.type&&_A(t.type,n):_A(Rp(e),n)}(n,e.typeParameter)),a=r?q(t,Sb):i?q(t,Fx):t;return DS(416&e.priority?Pg(a,2):vx(a))}function PA(e,n){const t=e.inferences[n];if(!t.inferredType){let a;const o=e.signature;if(o){const s=t.candidates?MA(t,o):void 0;if(t.contraCandidates){a=s&&!(131072&s.flags)&&ce(t.contraCandidates,(e=>HE(s,e)))&&N(e.inferences,(e=>e!==t&&T_(e.typeParameter)!==t.typeParameter||N(e.candidates,(e=>HE(e,s)))))?s:OA(t)}else if(s)a=s;else if(1&e.flags)a=qn;else{const o=D_(t.typeParameter);o&&(a=AE(o,(r=function(e,n){const t=e.inferences.slice(n);return rE(W(t,(e=>e.typeParameter)),W(t,(()=>xn)))}(e,n),i=e.nonFixingMapper,r?dE(5,r,i):i)))}}else a=vA(t);t.inferredType=a||GA(!!(2&e.flags));const s=T_(t.typeParameter);if(s){const n=AE(s,e.nonFixingMapper);a&&e.compareTypes(a,nu(n,a))||(t.inferredType=a=n)}}var r,i;return t.inferredType}function GA(e){return e?un:xn}function BA(e){const n=[];for(let t=0;t<e.inferences.length;t++)n.push(PA(e,t));return n}function UA(e){switch(e.escapedText){case"document":case"console":return Wo.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return x.types?Wo.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:Wo.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return x.types?Wo.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:Wo.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return x.types?Wo.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:Wo.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return Wo.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(Fk(e.parent))return Wo.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return 300===e.parent.kind?Wo.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:Wo.Cannot_find_name_0}}function VA(e){const n=Ra(e);return n.resolvedSymbol||(n.resolvedSymbol=!Vp(e)&&Fa(e,e.escapedText,1160127,UA(e),e,!VE(e),!1)||on),n.resolvedSymbol}function HA(e){return!!Mc(e,(e=>183===e.kind||79!==e.kind&&163!==e.kind&&"quit"))}function KA(e){return!!(16777216&e.flags||Mc(e,(e=>PI(e)||uk(e))))}function WA(e,n,t,r){switch(e.kind){case 79:if(!Xv(e)){const i=VA(e);return i!==on?`${r?ZG(r):"-1"}|${Eg(n)}|${Eg(t)}|${eB(i)}`:void 0}case 108:return`0|${r?ZG(r):"-1"}|${Eg(n)}|${Eg(t)}`;case 232:case 214:return WA(e.expression,n,t,r);case 163:const i=WA(e.left,n,t,r);return i&&i+"."+e.right.escapedText;case 208:case 209:const a=qA(e);if(void 0!==a){const i=WA(e.expression,n,t,r);return i&&i+"."+a}break;case 203:case 204:case 259:case 215:case 216:case 171:return`${ZG(e)}#${Eg(n)}`}}function zA(e,n){switch(n.kind){case 214:case 232:return zA(e,n.expression);case 223:return Hb(n)&&zA(e,n.left)||Yk(n)&&27===n.operatorToken.kind&&zA(e,n.right)}switch(e.kind){case 233:return 233===n.kind&&e.keywordToken===n.keywordToken&&e.name.escapedText===n.name.escapedText;case 79:case 80:return Xv(e)?108===n.kind:79===n.kind&&VA(e)===VA(n)||(NI(n)||Nk(n))&&as(VA(e))===Qo(n);case 108:return 108===n.kind;case 106:return 106===n.kind;case 232:case 214:return zA(e.expression,n);case 208:case 209:const t=qA(e),r=iT(n)?qA(n):void 0;return void 0!==t&&void 0!==r&&r===t&&zA(e.expression,n.expression);case 163:return iT(n)&&e.right.escapedText===qA(n)&&zA(e.left,n.expression);case 223:return Yk(e)&&27===e.operatorToken.kind&&zA(e.right,n)}return!1}function qA(e){if(Mk(e))return e.name.escapedText;if(Pk(e))return function(e){if(wy(e.argumentExpression))return Gc(e.argumentExpression.text);if(qb(e.argumentExpression)){const n=No(e.argumentExpression,111551,!0);if(!n||!(pC(n)||8&n.flags))return;const t=n.valueDeclaration;if(void 0===t)return;const r=sl(t);if(r){const e=JA(r);if(void 0!==e)return e}if(t_(t)&&Oa(t,e.argumentExpression)){const e=Hh(t);if(e)return JA(YO(e));if(Cw(t))return Wf(t.name)}}return}(e);if(Nk(e)){const n=vc(e);return n?Gc(n):void 0}return qC(e)?""+e.parent.parameters.indexOf(e):void 0}function JA(e){return 8192&e.flags?e.escapedName:384&e.flags?Gc(""+e.value):void 0}function XA(e,n){for(;iT(e);)if(zA(e=e.expression,n))return!0;return!1}function YA(e,n){for(;jl(e);)if(zA(e=e.expression,n))return!0;return!1}function $A(e,n){if(e&&1048576&e.flags){const t=V_(e,n);if(t&&2&FE(t))return void 0===t.links.isDiscriminantProperty&&(t.links.isDiscriminantProperty=192===(192&t.links.checkFlags)&&!_v(Sl(t))),!!t.links.isDiscriminantProperty}return!1}function QA(e,n){let t;for(const r of e)if($A(n,r.escapedName)){if(t){t.push(r);continue}t=[r]}return t}function eL(e){const n=e.types;if(!(n.length<10||32768&YE(e)||V(n,(e=>!!(59506688&e.flags)))<10)){if(void 0===e.keyPropertyName){const t=A(n,(e=>59506688&e.flags?A(b_(e),(e=>Nx(Sl(e))?e.escapedName:void 0)):void 0)),r=t&&function(e,n){const t=new Map;let r=0;for(const i of e)if(61603840&i.flags){const e=dc(i,n);if(e){if(!Ox(e))return;let n=!1;DL(e,(e=>{const r=Eg(Sb(e)),a=t.get(r);a?a!==xn&&(t.set(r,xn),n=!0):t.set(r,i)})),n||r++}}return r>=10&&2*r>=e.length?t:void 0}(n,t);e.keyPropertyName=r?t:"",e.constituentMap=r}return e.keyPropertyName.length?e.keyPropertyName:void 0}}function rL(e,n){var t;const r=null==(t=e.constituentMap)?void 0:t.get(Eg(Sb(n)));return r!==xn?r:void 0}function iL(e,n){const t=eL(e),r=t&&dc(n,t);return r&&rL(e,r)}function aL(e,n){return zA(e,n)||XA(e,n)}function oL(e,n){if(e.arguments)for(const t of e.arguments)if(aL(n,t))return!0;return!(208!==e.expression.kind||!aL(n,e.expression.expression))}function sL(e){return(!e.id||e.id<0)&&(e.id=VG,VG++),e.id}function cL(e,n){var t;if(e===n)return e;if(131072&n.flags)return n;const r=`A${Eg(e)},${Eg(n)}`;return null!=(t=aa(r))?t:oa(r,function(e,n){const t=PL(e,(e=>function(e,n){if(!(1048576&e.flags))return WE(e,n);for(const t of e.types)if(WE(t,n))return!0;return!1}(n,e))),r=512&n.flags&&Ab(n)?BL(t,db):t;return WE(n,r)?r:e}(e,n))}function lL(e){const n=h_(e);return!!(n.callSignatures.length||n.constructSignatures.length||n.members.get("bind")&&HE(e,Kt))}function dL(e){467927040&e.flags&&(e=k_(e)||xn);const n=e.flags;if(268435460&n)return F?16317953:16776705;if(134217856&n){const t=128&n&&""===e.value;return F?t?12123649:7929345:t?12582401:16776705}if(40&n)return F?16317698:16776450;if(256&n){const n=0===e.value;return F?n?12123394:7929090:n?12582146:16776450}if(64&n)return F?16317188:16775940;if(2048&n){const n=zx(e);return F?n?12122884:7928580:n?12581636:16775940}return 16&n?F?16316168:16774920:528&n?F?e===Fn||e===Gn?12121864:7927560:e===Fn||e===Gn?12580616:16774920:524288&n?16&YE(e)&&hT(e)?F?83427327:83886079:lL(e)?F?7880640:16728e3:F?7888800:16736160:16384&n?9830144:32768&n?26607360:65536&n?42917664:12288&n?F?7925520:16772880:67108864&n?F?7888800:16736160:131072&n?0:1048576&n?We(e.types,((e,n)=>e|dL(n)),0):2097152&n?function(e){const n=yO(e,134348796);let t=0,r=134217727;for(const i of e.types)if(!(n&&524288&i.flags)){const e=dL(i);t|=e,r&=e}return 8256&t|134209471&r}(e):83886079}function uL(e,n){return PL(e,(e=>0!==(dL(e)&n)))}function _L(e,n){const t=pL(uL(F&&2&e.flags?Ct:e,n));if(F)switch(n){case 524288:return BL(t,(e=>65536&dL(e)?hy([e,131072&dL(e)&&!yO(t,65536)?Pg([bt,wn]):bt]):e));case 1048576:return BL(t,(e=>131072&dL(e)?hy([e,65536&dL(e)&&!yO(t,32768)?Pg([bt,An]):bt]):e));case 2097152:case 4194304:return BL(t,(e=>262144&dL(e)?function(e){return rr||(rr=Tm("NonNullable",524288,void 0)||on),rr!==on?If(rr,[e]):hy([e,bt])}(e):e))}return t}function pL(e){return e===Ct?xn:e}function fL(e,n){return n?Pg([hc(e),YO(n)]):e}function mL(e,n){var t;const r=Ly(n);if(!Vd(r))return mn;const i=Yd(r);return dc(e,i)||gL(null==(t=op(e,i))?void 0:t.type)||mn}function hL(e,n){return ML(e,Ix)&&function(e,n){const t=dc(e,""+n);return t||(ML(e,Vx)?BL(e,(e=>{const t=e,r=Kx(t);return r?x.noUncheckedIndexedAccess&&n>=t.target.fixedLength+yg(t.target,3)?Pg([r,An]):r:An})):void 0)}(e,n)||gL(kP(65,e,An,void 0))||mn}function gL(e){return e&&x.noUncheckedIndexedAccess?Pg([e,Cn]):e}function yL(e){return Mh(kP(65,e,An,void 0)||mn)}function EL(e){return 223===e.parent.kind&&e.parent.left===e||247===e.parent.kind&&e.parent.initializer===e}function TL(e){return mL(xL(e.parent),e.name)}function xL(e){const{parent:n}=e;switch(n.kind){case 246:return Dn;case 247:return CP(n)||mn;case 223:return function(e){return 206===e.parent.kind&&EL(e.parent)||299===e.parent.kind&&EL(e.parent.parent)?fL(xL(e),e.right):YO(e.right)}(n);case 217:return An;case 206:return function(e,n){return hL(xL(e),e.elements.indexOf(n))}(n,e);case 227:return function(e){return yL(xL(e.parent))}(n);case 299:return TL(n);case 300:return function(e){return fL(TL(e),e.objectAssignmentInitializer)}(n)}return mn}function AL(e){return Ra(e).resolvedType||YO(e)}function LL(e){return 257===e.kind?function(e){return e.initializer?AL(e.initializer):246===e.parent.parent.kind?Dn:247===e.parent.parent.kind&&CP(e.parent.parent)||mn}(e):function(e){const n=e.parent,t=LL(n.parent);return fL(203===n.kind?mL(t,e.propertyName||e.name):e.dotDotDotToken?yL(t):hL(t,n.elements.indexOf(e)),e.initializer)}(e)}function CL(e){switch(e.kind){case 214:return CL(e.expression);case 223:switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return CL(e.left);case 27:return CL(e.right)}}return e}function kL(e){const{parent:n}=e;return 214===n.kind||223===n.kind&&63===n.operatorToken.kind&&n.left===e||223===n.kind&&27===n.operatorToken.kind&&n.right===e?kL(n):e}function IL(e){return 292===e.kind?Sb(YO(e.expression)):zn}function wL(e){const n=Ra(e);if(!n.switchTypes){n.switchTypes=[];for(const t of e.caseBlock.clauses)n.switchTypes.push(IL(t))}return n.switchTypes}function RL(e){if(ce(e.caseBlock.clauses,(e=>292===e.kind&&!o_(e.expression))))return;const n=[];for(const t of e.caseBlock.clauses){const e=292===t.kind?t.expression.text:void 0;n.push(e&&!G(n,e)?e:void 0)}return n}function NL(e,n){return e===n||1048576&n.flags&&function(e,n){if(1048576&e.flags){for(const t of e.types)if(!Cg(n.types,t))return!1;return!0}if(1056&e.flags&&ld(e)===n)return!0;return Cg(n.types,e)}(e,n)}function DL(e,n){return 1048576&e.flags?A(e.types,n):n(e)}function OL(e,n){return 1048576&e.flags?ce(e.types,n):n(e)}function ML(e,n){return 1048576&e.flags?N(e.types,n):n(e)}function PL(e,n){if(1048576&e.flags){const t=e.types,r=j(t,n);if(r===t)return e;const i=e.origin;let a;if(i&&1048576&i.flags){const e=i.types,o=j(e,(e=>!!(1048576&e.flags)||n(e)));if(e.length-o.length===t.length-r.length){if(1===o.length)return o[0];a=Mg(1048576,o)}}return qg(r,16809984&e.objectFlags,void 0,void 0,a)}return 131072&e.flags||n(e)?e:zn}function FL(e,n){return PL(e,(e=>e!==n))}function GL(e){return 1048576&e.flags?e.types.length:1}function BL(e,n,t){if(131072&e.flags)return e;if(!(1048576&e.flags))return n(e);const r=e.origin,i=r&&1048576&r.flags?r.types:e.types;let a,o=!1;for(const s of i){const e=1048576&s.flags?BL(s,n,t):n(s);o||(o=s!==e),e&&(a?a.push(e):a=[e])}return o?a&&Pg(a,t?0:1):e}function UL(e,n,t,r){return 1048576&e.flags&&t?Pg(W(e.types,n),1,t,r):BL(e,n)}function VL(e,n){return PL(e,(e=>0!==(e.flags&n)))}function jL(e,n){return yO(e,134217804)&&yO(n,402655616)?BL(e,(e=>4&e.flags?VL(n,402653316):uv(e)&&!yO(n,402653188)?VL(n,128):8&e.flags?VL(n,264):64&e.flags?VL(n,2112):e)):e}function HL(e){return 0===e.flags}function KL(e){return 0===e.flags?e.type:e}function WL(e,n){return n?{flags:0,type:131072&e.flags?qn:e}:e}function zL(e){return en[e.id]||(en[e.id]=function(e){const n=_s(256);return n.elementType=e,n}(e))}function qL(e,n){const t=xS(Mx(QO(n)));return NL(t,e.elementType)?e:zL(Pg([e.elementType,t]))}function JL(e){return e.finalArrayType||(e.finalArrayType=131072&(n=e.elementType).flags?nr:Mh(1048576&n.flags?Pg(n.types,2):n));var n}function XL(e){return 256&YE(e)?JL(e):e}function YL(e){return 256&YE(e)?e.elementType:zn}function $L(e){const n=kL(e),t=n.parent,r=Mk(t)&&("length"===t.name.escapedText||210===t.parent.kind&&IC(t.name)&&qy(t.name)),i=209===t.kind&&t.expression===n&&223===t.parent.kind&&63===t.parent.operatorToken.kind&&t.parent.left===t&&!zg(t.parent)&&vO(YO(t.argumentExpression),296);return r||i}function QL(e,n){if(8752&(e=bo(e)).flags)return Sl(e);if(7&e.flags){if(262144&FE(e)){const n=e.links.syntheticOrigin;if(n&&QL(n))return Sl(e)}const r=e.valueDeclaration;if(r){if((NI(t=r)||YC(t)||XC(t)||qC(t))&&(Qv(t)||Ih(t)&&n_(t)&&t.initializer&&BS(t.initializer)&&eb(t.initializer)))return Sl(e);if(NI(r)&&247===r.parent.parent.kind){const e=r.parent.parent,n=ZL(e.expression,void 0);if(n){return kP(e.awaitModifier?15:13,n,An,void 0)}}n&&cS(n,qf(r,Wo._0_needs_an_explicit_type_annotation,Gs(e)))}}var t}function ZL(e,n){if(!(33554432&e.flags))switch(e.kind){case 79:return QL(as(VA(e)),n);case 108:return function(e){const n=Qm(e,!1,!1);if(Id(n)){const e=xp(n);if(e.thisParameter)return QL(e.thisParameter)}if(Fd(n.parent)){const e=Qo(n.parent);return mb(n)?Sl(e):hd(e).thisType}}(e);case 106:return RC(e);case 208:{const t=ZL(e.expression,n);if(t){const r=e.name;let i;if(wC(r)){if(!t.symbol)return;i=J_(t,By(t.symbol,r.escapedText))}else i=J_(t,r.escapedText);return i&&QL(i,n)}return}case 214:return ZL(e.expression,n)}}function eC(e){const n=Ra(e);let t=n.effectsSignature;if(void 0===t){let r;241===e.parent.kind?r=ZL(e.expression,void 0):106!==e.expression.kind&&(r=jl(e)?oR(rS(ZO(e.expression),e.expression),e.expression):Zw(e.expression));const i=Y_(r&&G_(r)||xn,0),a=1!==i.length||i[0].typeParameters?ce(i,nC)?qN(e):void 0:i[0];t=n.effectsSignature=a&&nC(a)?a:Yr}return t===Yr?void 0:t}function nC(e){return!!(Ip(e)||e.declaration&&131072&(Fp(e.declaration)||xn).flags)}function tC(e){const n=iC(e,!1);return Hr=e,Kr=n,n}function rC(e){const n=ey(e,!0);return 95===n.kind||223===n.kind&&(55===n.operatorToken.kind&&(rC(n.left)||rC(n.right))||56===n.operatorToken.kind&&rC(n.left)&&rC(n.right))}function iC(e,n){for(;;){if(e===Hr)return Kr;const t=e.flags;if(4096&t){if(!n){const n=sL(e),t=Bi[n];return void 0!==t?t:Bi[n]=iC(e,!0)}n=!1}if(368&t)e=e.antecedent;else if(512&t){const n=eC(e.node);if(n){const t=Ip(n);if(t&&3===t.kind&&!t.type){const n=e.node.arguments[t.parameterIndex];if(n&&rC(n))return!1}if(131072&Rp(n).flags)return!1}e=e.antecedent}else{if(4&t)return ce(e.antecedents,(e=>iC(e,!1)));if(8&t){const n=e.antecedents;if(void 0===n||0===n.length)return!1;e=n[0]}else{if(!(128&t)){if(1024&t){Hr=void 0;const n=e.target,t=n.antecedents;n.antecedents=e.antecedents;const r=iC(e.antecedent,!1);return n.antecedents=t,r}return!(1&t)}if(e.clauseStart===e.clauseEnd&&iO(e.switchStatement))return!1;e=e.antecedent}}}}function aC(e,n){for(;;){const t=e.flags;if(4096&t){if(!n){const n=sL(e),t=Ui[n];return void 0!==t?t:Ui[n]=aC(e,!0)}n=!1}if(496&t)e=e.antecedent;else if(512&t){if(106===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&t)return N(e.antecedents,(e=>aC(e,!1)));if(!(8&t)){if(1024&t){const n=e.target,t=n.antecedents;n.antecedents=e.antecedents;const r=aC(e.antecedent,!1);return n.antecedents=t,r}return!!(1&t)}e=e.antecedents[0]}}}function oC(e){switch(e.kind){case 79:if(!Xv(e)){const n=VA(e);return pC(n)||GS(n)&&!lC(n)}break;case 208:case 209:return oC(e.expression)&&uO(Ra(e).resolvedSymbol||on)}return!1}function sC(e,n,t=n,r,i=(n=>null==(n=En(e,Rg))?void 0:n.flowNode)()){let a,o=!1,s=0;if(pi)return mn;if(!i)return n;fi++;const c=_i,l=KL(_(i));_i=c;const d=256&YE(l)&&$L(e)?nr:XL(l);return d===Xn||e.parent&&232===e.parent.kind&&!(131072&d.flags)&&131072&uL(d,2097152).flags?n:d===Sn?xn:d;function u(){return o?a:(o=!0,a=WA(e,n,t,r))}function _(i){var a;if(2e3===s)return null==(a=Vr)||a.instant(Vr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:i.id}),pi=!0,function(e){const n=Mc(e,Md),t=Dp(e),r=rm(t,n.statements.pos);Ji.add(kT(t,r.start,r.length,Wo.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(e),mn;let o;for(s++;;){const a=i.flags;if(4096&a){for(let e=c;e<_i;e++)if(Fi[e]===i)return s--,Gi[e];o=i}let l;if(16&a){if(l=f(i),!l){i=i.antecedent;continue}}else if(512&a){if(l=h(i),!l){i=i.antecedent;continue}}else if(96&a)l=y(i);else if(128&a)l=b(i);else if(12&a){if(1===i.antecedents.length){i=i.antecedents[0];continue}l=4&a?E(i):T(i)}else if(256&a){if(l=g(i),!l){i=i.antecedent;continue}}else if(1024&a){const e=i.target,n=e.antecedents;e.antecedents=i.antecedents,l=_(i.antecedent),e.antecedents=n}else if(2&a){const n=i.node;if(n&&n!==r&&208!==e.kind&&209!==e.kind&&108!==e.kind){i=n.flowNode;continue}l=t}else l=mP(n);return o&&(Fi[_i]=o,Gi[_i]=l,_i++),s--,l}}function p(n){const t=n.node;return gC(257===t.kind||205===t.kind?LL(t):xL(t),e)}function f(t){const r=t.node;if(zA(e,r)){if(!tC(t))return Xn;if(2===Wg(r)){const e=_(t.antecedent);return WL(Mx(KL(e)),HL(e))}if(n===_n||n===nr){if(function(e){return 257===e.kind&&e.initializer&&xc(e.initializer)||205!==e.kind&&223===e.parent.kind&&xc(e.parent.right)}(r))return zL(zn);const e=Fx(p(t));return WE(e,n)?e:er}return 1048576&n.flags?cL(n,p(t)):n}if(XA(e,r)){if(!tC(t))return Xn;if(NI(r)&&(Ih(r)||dm(r))){const e=Kh(r);if(e&&(215===e.kind||216===e.kind))return _(t.antecedent)}return n}if(NI(r)&&246===r.parent.parent.kind&&(zA(e,r.parent.parent.expression)||YA(r.parent.parent.expression,e)))return nR(XL(KL(_(t.antecedent))))}function m(e,n){const t=ey(n,!0);if(95===t.kind)return Xn;if(223===t.kind){if(55===t.operatorToken.kind)return m(m(e,t.left),t.right);if(56===t.operatorToken.kind)return Pg([m(e,t.left),m(e,t.right)])}return Q(e,t,!0)}function h(e){const n=eC(e.node);if(n){const t=Ip(n);if(t&&(2===t.kind||3===t.kind)){const n=_(e.antecedent),r=XL(KL(n)),i=t.type?$(r,t,e.node,!0):3===t.kind&&t.parameterIndex>=0&&t.parameterIndex<e.node.arguments.length?m(r,e.node.arguments[t.parameterIndex]):r;return i===r?n:WL(i,HL(n))}if(131072&Rp(n).flags)return Xn}}function g(t){if(n===_n||n===nr){const n=t.node,r=210===n.kind?n.expression.expression:n.left.expression;if(zA(e,CL(r))){const e=_(t.antecedent),r=KL(e);if(256&YE(r)){let t=r;if(210===n.kind)for(const e of n.arguments)t=qL(t,e);else{vO(QO(n.left.argumentExpression),296)&&(t=qL(t,n.right))}return t===r?e:WL(t,HL(e))}return e}}}function y(e){const n=_(e.antecedent),t=KL(n);if(131072&t.flags)return n;const r=0!==(32&e.flags),i=XL(t),a=Q(i,e.node,r);return a===i?n:WL(a,HL(n))}function b(n){const t=n.switchStatement.expression,r=_(n.antecedent);let i=KL(r);if(zA(e,t))i=j(i,n.switchStatement,n.clauseStart,n.clauseEnd);else if(218===t.kind&&zA(e,t.expression))i=function(e,n,t,r){const i=RL(n);if(!i)return e;const a=M(n.caseBlock.clauses,(e=>293===e.kind));if(t===r||a>=t&&a<r){const n=rO(t,r,i);return PL(e,(e=>(dL(e)&n)===n))}return Pg(W(i.slice(t,r),(n=>n?H(e,n):zn)))}(i,n.switchStatement,n.clauseStart,n.clauseEnd);else{F&&(YA(t,e)?i=V(i,n.switchStatement,n.clauseStart,n.clauseEnd,(e=>!(163840&e.flags))):218===t.kind&&YA(t.expression,e)&&(i=V(i,n.switchStatement,n.clauseStart,n.clauseEnd,(e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value)))));const r=S(t,i);r&&(i=function(e,n,t,r,i){if(r<i&&1048576&e.flags&&eL(e)===qA(n)){const n=Pg(W(wL(t).slice(r,i),(n=>rL(e,n)||xn)));if(n!==xn)return n}return A(e,n,(e=>j(e,t,r,i)))}(i,r,n.switchStatement,n.clauseStart,n.clauseEnd))}return WL(i,HL(r))}function E(e){const r=[];let i,a=!1,o=!1;for(const s of e.antecedents){if(!i&&128&s.flags&&s.clauseStart===s.clauseEnd){i=s;continue}const e=_(s),c=KL(e);if(c===n&&n===t)return c;Le(r,c),NL(c,n)||(a=!0),HL(e)&&(o=!0)}if(i){const e=_(i),s=KL(e);if(!(131072&s.flags)&&!G(r,s)&&!iO(i.switchStatement)){if(s===n&&n===t)return s;r.push(s),NL(s,n)||(a=!0),HL(e)&&(o=!0)}}return WL(x(r,a?2:1),o)}function T(e){const t=sL(e),r=Di[t]||(Di[t]=new Map),i=u();if(!i)return n;const a=r.get(i);if(a)return a;for(let n=di;n<ui;n++)if(Oi[n]===e&&Mi[n]===i&&Pi[n].length)return WL(x(Pi[n],1),!0);const o=[];let s,c=!1;for(const d of e.antecedents){let t;if(s){Oi[ui]=e,Mi[ui]=i,Pi[ui]=o,ui++;const n=Wr;Wr=void 0,t=_(d),Wr=n,ui--;const a=r.get(i);if(a)return a}else t=s=_(d);const a=KL(t);if(Le(o,a),NL(a,n)||(c=!0),a===n)break}const l=x(o,c?2:1);return HL(s)?WL(l,!0):(r.set(i,l),l)}function x(e,t){if(function(e){let n=!1;for(const t of e)if(!(131072&t.flags)){if(!(256&YE(t)))return!1;n=!0}return n}(e))return zL(Pg(W(e,YL)));const r=pL(Pg(q(e,XL),t));return r!==n&&r.flags&n.flags&1048576&&B(r.types,n.types)?n:r}function S(t,r){const i=1048576&n.flags?n:r;if(1048576&i.flags){const n=function(n){if(Jd(e)||BS(e)||Gm(e)){if(IC(n)){const t=VA(n).valueDeclaration;if(t&&(Nk(t)||qC(t))&&e===t.parent&&!t.initializer&&!t.dotDotDotToken)return t}}else if(iT(n)){if(zA(e,n.expression))return n}else if(IC(n)){const t=VA(n);if(pC(t)){const n=t.valueDeclaration;if(NI(n)&&!n.type&&n.initializer&&iT(n.initializer)&&zA(e,n.initializer.expression))return n.initializer;if(Nk(n)&&!n.initializer){const t=n.parent.parent;if(NI(t)&&!t.type&&t.initializer&&(IC(t.initializer)||iT(t.initializer))&&zA(e,t.initializer))return n}}}}(t);if(n){const e=qA(n);if(e&&$A(i,e))return n}}}function A(e,n,t){const r=qA(n);if(void 0===r)return e;const i=jl(n),a=F&&(i||ZS(n))&&yO(e,98304);let o=dc(a?uL(e,2097152):e,r);if(!o)return e;o=a&&i?$x(o):o;const s=t(o);return PL(e,(e=>{const n=function(e,n){var t;return dc(e,n)||(null==(t=op(e,n))?void 0:t.type)||xn}(e,r);return!(131072&n.flags)&&!(131072&s.flags)&&JE(s,n)}))}function L(e,n,t,r,i){if((36===t||37===t)&&1048576&e.flags){const a=eL(e);if(a&&a===qA(n)){const n=rL(e,YO(r));if(n)return t===(i?36:37)?n:Nx(dc(n,a)||xn)?FL(e,n):e}}return A(e,n,(e=>O(e,t,r,i)))}function C(n,t,r){if(zA(e,t))return _L(n,r?4194304:8388608);F&&r&&YA(t,e)&&(n=_L(n,2097152));const i=S(t,n);return i?A(n,i,(e=>uL(e,r?4194304:8388608))):n}function k(e,n,t){const r=J_(e,n);return r?!!(16777216&r.flags)||t:!!op(e,n)||!t}function I(e,n,t){const r=Yd(n);if(OL(e,(e=>k(e,r,!0))))return PL(e,(e=>k(e,r,t)));if(t){const t=(Dr||(Dr=Em("Record",2,!0)||on),Dr===on?void 0:Dr);if(t)return hy([e,If(t,[n,xn])])}return e}function w(n,t,r){switch(t.operatorToken.kind){case 63:case 75:case 76:case 77:return C(Q(n,t.right,r),t.left,r);case 34:case 35:case 36:case 37:const i=t.operatorToken.kind,a=CL(t.left),o=CL(t.right);if(218===a.kind&&o_(o))return P(n,a,i,o,r);if(218===o.kind&&o_(a))return P(n,o,i,a,r);if(zA(e,a))return O(n,i,o,r);if(zA(e,o))return O(n,i,a,r);F&&(YA(a,e)?n=R(n,i,o,r):YA(o,e)&&(n=R(n,i,a,r)));const s=S(a,n);if(s)return L(n,s,i,o,r);const c=S(o,n);if(c)return L(n,c,i,a,r);if(z(a))return J(n,i,o,r);if(z(o))return J(n,i,a,r);break;case 102:return function(n,t,r){const i=CL(t.left);if(!zA(e,i))return r&&F&&YA(i,e)?_L(n,2097152):n;const a=YO(t.right);if(!zE(a,Kt))return n;const o=BL(a,X);if(uc(n)&&(o===Ht||o===Kt)||!r&&(!(524288&o.flags)||gT(o)))return n;return Y(n,o,r,!0)}(n,t,r);case 101:if(wC(t.left))return function(n,t,r){const i=CL(t.right);if(!zA(e,i))return n;Nt.assertNode(t.left,wC);const a=bR(t.left);if(void 0===a)return n;const o=a.parent,s=hb(Nt.checkDefined(a.valueDeclaration,"should always have a declaration"))?Sl(o):hd(o);return Y(n,s,r,!0)}(n,t,r);const l=CL(t.right),d=YO(t.left);if(8576&d.flags){if(sS(n)&&iT(e)&&zA(e.expression,l)&&qA(e)===Yd(d))return uL(n,r?524288:65536);if(zA(e,l))return I(n,d,r)}break;case 27:return Q(n,t.right,r);case 55:return r?Q(Q(n,t.left,!0),t.right,!0):Pg([Q(n,t.left,!1),Q(n,t.right,!1)]);case 56:return r?Pg([Q(n,t.left,!0),Q(n,t.right,!0)]):Q(Q(n,t.left,!1),t.right,!1)}return n}function R(e,n,t,r){const i=34===n||36===n,a=34===n||35===n?98304:32768,o=YO(t);return i!==r&&ML(o,(e=>!!(e.flags&a)))||i===r&&ML(o,(e=>!(e.flags&(3|a))))?_L(e,2097152):e}function O(e,n,t,r){if(1&e.flags)return e;35!==n&&37!==n||(r=!r);const i=YO(t),a=34===n||35===n;if(98304&i.flags){if(!F)return e;return _L(e,a?r?262144:2097152:65536&i.flags?r?131072:1048576:r?65536:524288)}if(r){if(!a&&(2&e.flags||OL(e,gT))){if(201457660&i.flags||gT(i))return i;if(524288&i.flags)return Yn}return jL(PL(e,(e=>{return JE(e,i)||a&&(n=i,0!==(524&e.flags)&&0!==(28&n.flags));var n})),i)}return Nx(i)?PL(e,(e=>!(Dx(e)&&JE(e,i)))):e}function P(n,t,r,i,a){35!==r&&37!==r||(a=!a);const o=CL(t.expression);if(!zA(e,o)){F&&YA(o,e)&&a===("undefined"!==i.text)&&(n=_L(n,2097152));const t=S(o,n);return t?A(n,t,(e=>U(e,i,a))):n}return U(n,i,a)}function U(e,n,t){return t?H(e,n.text):_L(e,HG.get(n.text)||32768)}function V(e,n,t,r,i){return t!==r&&N(wL(n).slice(t,r),i)?uL(e,2097152):e}function j(e,n,t,r){const i=wL(n);if(!i.length)return e;const a=i.slice(t,r),o=t===r||G(a,zn);if(2&e.flags&&!o){let n;for(let t=0;t<a.length;t+=1){const r=a[t];if(201457660&r.flags)void 0!==n&&n.push(r);else{if(!(524288&r.flags))return e;void 0===n&&(n=a.slice(0,t)),n.push(Yn)}}return Pg(void 0===n?a:n)}const s=Pg(a),c=131072&s.flags?zn:jL(PL(e,(e=>JE(s,e))),s);if(!o)return c;const l=PL(e,(e=>!(Dx(e)&&G(i,Sb(function(e){return 2097152&e.flags&&D(e.types,Nx)||e}(e))))));return 131072&c.flags?l:Pg([c,l])}function H(e,n){switch(n){case"string":return K(e,Dn,1);case"number":return K(e,On,2);case"bigint":return K(e,Mn,4);case"boolean":return K(e,Hn,8);case"symbol":return K(e,Kn,16);case"object":return 1&e.flags?e:Pg([K(e,Yn,32),K(e,wn,131072)]);case"function":return 1&e.flags?e:K(e,Kt,64);case"undefined":return K(e,An,65536)}return K(e,Yn,128)}function K(e,n,t){return BL(e,(e=>TT(e,n,Qi)?dL(e)&t?e:zn:HE(n,e)?n:dL(e)&t?hy([e,n]):zn))}function z(n){return(Mk(n)&&"constructor"===Uc(n.name)||Pk(n)&&o_(n.argumentExpression)&&"constructor"===n.argumentExpression.text)&&zA(e,n.expression)}function J(e,n,t,r){if(r?34!==n&&36!==n:35!==n&&37!==n)return e;const i=YO(t);if(!rB(i)&&!Xl(i))return e;const a=J_(i,"prototype");if(!a)return e;const o=Sl(a),s=uc(o)?void 0:o;return s&&s!==Ht&&s!==Kt?uc(e)?s:PL(e,(e=>function(e,n){if(524288&e.flags&&1&YE(e)||524288&n.flags&&1&YE(n))return e.symbol===n.symbol;return HE(e,n)}(e,s))):e}function X(e){const n=dc(e,"prototype");if(n&&!uc(n))return n;const t=Y_(e,1);return t.length?Pg(W(t,(e=>Rp(Wp(e))))):bt}function Y(e,n,t,r){var i;const a=1048576&e.flags?`N${Eg(e)},${Eg(n)},${(t?1:0)|(r?2:0)}`:void 0;return null!=(i=aa(a))?i:oa(a,function(e,n,t,r){if(!t){if(r)return PL(e,(e=>!zE(e,n)));const t=Y(e,n,!0,!1);return PL(e,(e=>!NL(e,t)))}if(3&e.flags)return n;const i=r?zE:HE,a=1048576&e.flags?eL(e):void 0,o=BL(n,(n=>{const t=a&&dc(n,a),o=BL(t&&rL(e,t)||e,r?e=>zE(e,n)?e:zE(n,e)?n:zn:e=>KE(e,n)?e:KE(n,e)?n:HE(e,n)?e:HE(n,e)?n:zn);return 131072&o.flags?BL(e,(e=>yO(e,465829888)&&i(n,k_(e)||xn)?hy([e,n]):zn)):o}));return 131072&o.flags?HE(n,e)?n:WE(e,n)?e:WE(n,e)?n:hy([e,n]):o}(e,n,t,r))}function $(n,t,r,i){if(t.type&&(!uc(n)||t.type!==Ht&&t.type!==Kt)){const a=function(e,n){if(1===e.kind||3===e.kind)return n.arguments[e.parameterIndex];const t=ey(n.expression);return iT(t)?ey(t.expression):void 0}(t,r);if(a){if(zA(e,a))return Y(n,t.type,i,!1);F&&i&&YA(a,e)&&!(65536&dL(t.type))&&(n=_L(n,2097152));const r=S(a,n);if(r)return A(n,r,(e=>Y(e,t.type,i,!1)))}}return n}function Q(n,t,r){if(Kl(t)||Yk(t.parent)&&(60===t.parent.operatorToken.kind||77===t.parent.operatorToken.kind)&&t.parent.left===t)return function(n,t,r){if(zA(e,t))return _L(n,r?2097152:262144);const i=S(t,n);if(i)return A(n,i,(e=>uL(e,r?2097152:262144)));return n}(n,t,r);switch(t.kind){case 79:if(!zA(e,t)&&v<5){const i=VA(t);if(pC(i)){const t=i.valueDeclaration;if(t&&NI(t)&&!t.type&&t.initializer&&oC(e)){v++;const e=Q(n,t.initializer,r);return v--,e}}}case 108:case 106:case 208:case 209:return C(n,t,r);case 210:return function(n,t,r){if(oL(t,e)){const e=r||!Vl(t)?eC(t):void 0,i=e&&Ip(e);if(i&&(0===i.kind||1===i.kind))return $(n,i,t,r)}if(sS(n)&&iT(e)&&Mk(t.expression)){const i=t.expression;if(zA(e.expression,CL(i.expression))&&IC(i.name)&&"hasOwnProperty"===i.name.escapedText&&1===t.arguments.length){const i=t.arguments[0];if(o_(i)&&qA(e)===Gc(i.text))return uL(n,r?524288:65536)}}return n}(n,t,r);case 214:case 232:return Q(n,t.expression,r);case 223:return w(n,t,r);case 221:if(53===t.operator)return Q(n,t.operand,!r)}return n}}function cC(e){return Mc(e.parent,(e=>Id(e)&&!rh(e)||265===e.kind||308===e.kind||169===e.kind))}function lC(e){if(!e.valueDeclaration)return!1;const n=Xy(e.valueDeclaration).parent,t=Ra(n);return 524288&t.flags||(t.flags|=524288,Mc(n.parent,(e=>(Id(e)||xw(e))&&!!(524288&Ra(e).flags)))||uC(n)),e.isAssigned||!1}function uC(e){if(79===e.kind){if(zg(e)){const n=VA(e);GS(n)&&(n.isAssigned=!0)}}else CD(e,uC)}function pC(e){return 3&e.flags&&0!==(2&Fw(e))}function fC(e,n){const t=F&&166===n.kind&&n.initializer&&16777216&dL(e)&&!function(e){const n=Ra(e);if(void 0===n.parameterInitializerContainsUndefined){if(!nc(e,9))return vl(e.symbol),!0;const t=!!(16777216&dL(PO(e,0)));if(!ac())return vl(e.symbol),!0;n.parameterInitializerContainsUndefined=t}return n.parameterInitializerContainsUndefined}(n);return t?uL(e,524288):e}function mC(e){return 2097152&e.flags?ce(e.types,mC):!!(465829888&e.flags&&1146880&I_(e).flags)}function hC(e){return 2097152&e.flags?ce(e.types,hC):!(!(465829888&e.flags)||yO(I_(e),98304))}function gC(e,n,t){const r=!(t&&2&t)&&OL(e,mC)&&(function(e,n){const t=n.parent;return 208===t.kind||163===t.kind||210===t.kind&&t.expression===n||209===t.kind&&t.expression===n&&!(OL(e,hC)&&hv(YO(t.argumentExpression)))}(e,n)||function(e,n){const t=(IC(e)||Mk(e)||Pk(e))&&!((uw(e.parent)||dw(e.parent))&&e.parent.tagName===e)&&Xk(e,n&&64&n?8:void 0);return t&&!_v(t)}(n,t));return r?BL(e,I_):e}function yC(e){return!!Mc(e,(e=>{const n=e.parent;return void 0===n?"quit":ZI(n)?n.expression===e&&qb(e):!!tw(n)&&(n.name===e||n.propertyName===e)}))}function vC(e,n){if(!x.verbatimModuleSyntax&&vo(e,111551)&&!HA(n)&&!Co(e,111551)){const t=To(e);1160127&xo(t)&&(XT(x)||sx(x)&&yC(n)||!NG(as(t))?Io(e):function(e){const n=wa(e);n.constEnumReferenced||(n.constEnumReferenced=!0)}(e))}}function bC(e,n){if(Xv(e))return LC(e);const t=VA(e);if(t===on)return mn;if(t===he){if(CR(e))return _a(e,Wo.arguments_cannot_be_referenced_in_property_initializers),mn;const n=qm(e);return L<2&&(216===n.kind?_a(e,Wo.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):fb(n,512)&&_a(e,Wo.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Ra(n).flags|=512,Sl(t)}(function(e){var n;const t=e.parent;if(t){if(Mk(t)&&t.expression===e)return!1;if(tw(t)&&t.isTypeOnly)return!1;const r=null==(n=t.parent)?void 0:n.parent;if(r&&ew(r)&&r.isTypeOnly)return!1}return!0})(e)&&vC(t,e);const r=as(t),i=NF(r,e);ga(i)&&iv(e,i)&&i.declarations&&ya(e,i.declarations,e.escapedText);let a=r.valueDeclaration;if(a&&32&r.flags)if(260===a.kind&&_h(I,a)){let n=Xm(e);for(;void 0!==n;){if(n===a&&n.name!==e){Ra(a).flags|=1048576,Ra(e).flags|=2097152;break}n=Xm(n)}}else if(228===a.kind){let n=Qm(e,!1,!1);for(;308!==n.kind;){if(n.parent===a){(YC(n)&&mb(n)||ZC(n))&&(Ra(a).flags|=1048576,Ra(e).flags|=2097152);break}n=Qm(n,!1,!1)}}!function(e,n){if(L>=2||0===(34&n.flags)||!n.valueDeclaration||Iw(n.valueDeclaration)||295===n.valueDeclaration.parent.kind)return;const t=Bf(n.valueDeclaration),r=function(e,n){return!!Mc(e,(e=>e===n?"quit":Id(e)||e.parent&&YC(e.parent)&&!hb(e.parent)&&e.parent.initializer===e))}(e,t),i=EC(t);if(i){if(r){let r=!0;if(bI(t)){const i=vy(n.valueDeclaration,258);if(i&&i.parent===t){const i=function(e,n){return Mc(e,(e=>e===n?"quit":e===n.initializer||e===n.condition||e===n.incrementor||e===n.statement))}(e.parent,t);if(i){const e=Ra(i);e.flags|=8192;Le(e.capturedBlockScopeBindings||(e.capturedBlockScopeBindings=[]),n),i===t.initializer&&(r=!1)}}}r&&(Ra(i).flags|=4096)}if(bI(t)){const r=vy(n.valueDeclaration,258);r&&r.parent===t&&function(e,n){let t=e;for(;214===t.parent.kind;)t=t.parent;let r=!1;if(zg(t))r=!0;else if(221===t.parent.kind||222===t.parent.kind){const e=t.parent;r=45===e.operator||46===e.operator}if(!r)return!1;return!!Mc(t,(e=>e===n?"quit":e===n.statement))}(e,t)&&(Ra(n.valueDeclaration).flags|=262144)}Ra(n.valueDeclaration).flags|=32768}r&&(Ra(n.valueDeclaration).flags|=16384)}(e,t);let o=function(e,n){var t;const r=Sl(e),i=e.valueDeclaration;if(i){if(Nk(i)&&!i.initializer&&!i.dotDotDotToken&&i.parent.elements.length>=2){const t=i.parent.parent;if(257===t.kind&&2&Nc(i)||166===t.kind){const r=Ra(t);if(!(16777216&r.flags)){r.flags|=16777216;const a=pc(t,0),o=a&&BL(a,I_);if(r.flags&=-16777217,o&&1048576&o.flags&&(166!==t.kind||!lC(e))){const e=sC(i.parent,o,o,void 0,n.flowNode);return 131072&e.flags?zn:Ec(i,e)}}}}if(qC(i)&&!i.type&&!i.initializer&&!i.dotDotDotToken){const r=i.parent;if(r.parameters.length>=2&&NE(r)){const a=mI(r);if(a&&1===a.parameters.length&&sB(a)){const o=B_(AE(Sl(a.parameters[0]),null==(t=aI(r))?void 0:t.nonFixingMapper));if(1048576&o.flags&&ML(o,Vx)&&!lC(e))return Lv(sC(r,o,o,void 0,n.flowNode),kb(r.parameters.indexOf(i)-(zv(r)?1:0)))}}}}return r}(r,e);const s=Wg(e);if(s){if(!(3&r.flags)&&!(Ih(e)&&512&r.flags)){return _a(e,384&r.flags?Wo.Cannot_assign_to_0_because_it_is_an_enum:32&r.flags?Wo.Cannot_assign_to_0_because_it_is_a_class:1536&r.flags?Wo.Cannot_assign_to_0_because_it_is_a_namespace:16&r.flags?Wo.Cannot_assign_to_0_because_it_is_a_function:2097152&r.flags?Wo.Cannot_assign_to_0_because_it_is_an_import:Wo.Cannot_assign_to_0_because_it_is_not_a_variable,Gs(t)),mn}if(uO(r))return 3&r.flags?_a(e,Wo.Cannot_assign_to_0_because_it_is_a_constant,Gs(t)):_a(e,Wo.Cannot_assign_to_0_because_it_is_a_read_only_property,Gs(t)),mn}const c=2097152&r.flags;if(3&r.flags){if(1===s)return o}else{if(!c)return o;a=Xa(t)}if(!a)return o;o=gC(o,e,n);const l=166===Xy(a).kind,d=cC(a);let u=cC(e);const _=u!==d,p=e.parent&&e.parent.parent&&Lw(e.parent)&&EL(e.parent.parent),f=134217728&t.flags;for(;u!==d&&(215===u.kind||216===u.kind||Bm(u))&&(pC(r)&&o!==nr||l&&!lC(r));)u=cC(u);const m=l||c||_||p||f||function(e,n){if(Nk(n)){const t=Mc(e,Nk);return t&&Xy(t)===Xy(n)}}(e,a)||o!==_n&&o!==nr&&(!F||0!==(16387&o.flags)||HA(e)||KA(e)||278===e.parent.kind)||232===e.parent.kind||257===a.kind&&a.exclamationToken||16777216&a.flags,h=sC(e,o,m?l?fC(o,a):o:o===_n||o===nr?An:$x(o),u);if($L(e)||o!==_n&&o!==nr){if(!m&&!yT(o)&&yT(h))return _a(e,Wo.Variable_0_is_used_before_being_assigned,Gs(t)),o}else if(h===_n||h===nr)return Y&&(_a(Xc(a),Wo.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Gs(t),Us(h)),_a(e,Wo.Variable_0_implicitly_has_an_1_type,Gs(t),Us(h))),mP(h);return s?Mx(h):h}function EC(e){return Mc(e,(e=>!e||Yy(e)?"quit":yu(e,!1)))}function TC(e,n){if(Ra(e).flags|=2,169===n.kind||173===n.kind){Ra(n.parent).flags|=4}else Ra(n).flags|=4}function xC(e){return _m(e)?e:Id(e)?void 0:CD(e,xC)}function SC(e){return Zl(hd(Qo(e)))===Nn}function AC(e,n,t){const r=n.parent;fy(r)&&!SC(r)&&Rg(e)&&e.flowNode&&!aC(e.flowNode,!1)&&_a(e,t)}function LC(e){const n=HA(e);let t=Qm(e,!0,!0),r=!1,i=!1;for(173===t.kind&&AC(e,t,Wo.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);216===t.kind&&(t=Qm(t,!1,!i),r=!0),164===t.kind;)t=Qm(t,!r,!1),i=!0;if(function(e,n){YC(n)&&hb(n)&&I&&n.initializer&&lc(n.initializer,e.pos)&&Tb(n.parent)&&_a(e,Wo.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(e,t),i)_a(e,Wo.this_cannot_be_referenced_in_a_computed_property_name);else switch(t.kind){case 264:_a(e,Wo.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 263:_a(e,Wo.this_cannot_be_referenced_in_current_location);break;case 173:kC(e,t)&&_a(e,Wo.this_cannot_be_referenced_in_constructor_arguments)}!n&&r&&L<2&&TC(e,t);const a=CC(e,!0,t);if($){const n=Sl(fe);if(a===n&&r)_a(e,Wo.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){const r=_a(e,Wo.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Iw(t)){const e=CC(t);e&&e!==n&&cS(r,qf(t,Wo.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||un}function CC(e,n=!0,t=Qm(e,!1,!1)){const r=Ih(e);if(Id(t)&&(!FC(e)||zv(t))){let n=kp(xp(t))||r&&function(e){const n=Ll(e);if(n&&320===n.kind){const e=n;if(e.parameters.length>0&&e.parameters[0].name&&"this"===e.parameters[0].name.escapedText)return Fb(e.parameters[0].type)}const t=El(e);if(t&&t.typeExpression)return Fb(t.typeExpression)}(t);if(!n){const e=function(e){if(215===e.kind&&Yk(e.parent)&&3===eg(e.parent))return e.parent.left.expression.expression;if(171===e.kind&&207===e.parent.kind&&Yk(e.parent.parent)&&6===eg(e.parent.parent))return e.parent.parent.left.expression;if(215===e.kind&&299===e.parent.kind&&207===e.parent.parent.kind&&Yk(e.parent.parent.parent)&&6===eg(e.parent.parent.parent))return e.parent.parent.parent.left.expression;if(215===e.kind&&Sw(e.parent)&&IC(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&Ok(e.parent.parent)&&Fk(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===eg(e.parent.parent.parent))return e.parent.parent.parent.arguments[0].expression;if(QC(e)&&IC(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&Ok(e.parent)&&Fk(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===eg(e.parent.parent))return e.parent.parent.arguments[0].expression}(t);if(r&&e){const t=ZO(e).symbol;t&&t.members&&16&t.flags&&(n=hd(t).thisType)}else JN(t)&&(n=hd($o(t.symbol)).thisType);n||(n=OC(t))}if(n)return sC(e,n)}if(Fd(t.parent)){const n=Qo(t.parent);return sC(e,mb(t)?Sl(n):hd(n).thisType)}if(Iw(t)){if(t.commonJsModuleIndicator){const e=Qo(t);return e&&Sl(e)}if(t.externalModuleIndicator)return An;if(n)return Sl(fe)}}function kC(e,n){return!!Mc(e,(e=>Rd(e)?"quit":166===e.kind&&e.parent===n))}function RC(e){const n=210===e.parent.kind&&e.parent.expression===e,t=th(e,!0);let r=t,i=!1,a=!1;if(!n){for(;r&&216===r.kind;)fb(r,512)&&(a=!0),r=th(r,!0),i=L<2;r&&fb(r,512)&&(a=!0)}let o=0;if(!r||!function(e){if(n)return 173===e.kind;if(Fd(e.parent)||207===e.parent.kind)return mb(e)?171===e.kind||170===e.kind||174===e.kind||175===e.kind||169===e.kind||172===e.kind:171===e.kind||170===e.kind||174===e.kind||175===e.kind||169===e.kind||168===e.kind||173===e.kind;return!1}(r)){const t=Mc(e,(e=>e===r?"quit":164===e.kind));return t&&164===t.kind?_a(e,Wo.super_cannot_be_referenced_in_a_computed_property_name):n?_a(e,Wo.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(Fd(r.parent)||207===r.parent.kind)?_a(e,Wo.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):_a(e,Wo.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),mn}if(n||173!==t.kind||AC(e,r,Wo.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),mb(r)||n?(o=32,!n&&L>=2&&L<=8&&(YC(r)||ZC(r))&&Uf(e.parent,(e=>{Iw(e)&&!om(e)||(Ra(e).flags|=8388608)}))):o=16,Ra(e).flags|=o,171===r.kind&&a&&(ah(e.parent)&&zg(e.parent)?Ra(r).flags|=256:Ra(r).flags|=128),i&&TC(e.parent,r),207===r.parent.kind)return L<2?(_a(e,Wo.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),mn):un;const s=r.parent;if(!fy(s))return _a(e,Wo.super_can_only_be_referenced_in_a_derived_class),mn;const c=hd(Qo(s)),l=c&&td(c)[0];return l?173===r.kind&&kC(e,r)?(_a(e,Wo.super_cannot_be_referenced_in_constructor_arguments),mn):32===o?Zl(c):nu(l,c.thisType):mn}function NC(e){return 4&YE(e)&&e.target===Zt?bf(e)[0]:void 0}function DC(e){return BL(e,(e=>2097152&e.flags?A(e.types,NC):NC(e)))}function OC(e){if(216===e.kind)return;if(NE(e)){const n=mI(e);if(n){const e=n.thisParameter;if(e)return Sl(e)}}const n=Ih(e);if($||n){const t=function(e){return 171!==e.kind&&174!==e.kind&&175!==e.kind||207!==e.parent.kind?215===e.kind&&299===e.parent.kind?e.parent.parent:void 0:e.parent}(e);if(t){const e=Uk(t,void 0);let n=t,r=e;for(;r;){const e=DC(r);if(e)return AE(e,lA(aI(t)));if(299!==n.parent.kind)break;n=n.parent.parent,r=Uk(n,void 0)}return DS(e?Qx(e):OO(t))}const r=$g(e.parent);if(223===r.kind&&63===r.operatorToken.kind){const e=r.left;if(iT(e)){const{expression:t}=e;if(n&&IC(t)){const e=Dp(r);if(e.commonJsModuleIndicator&&VA(t)===e.symbol)return}return DS(OO(t))}}}}function MC(e){const n=e.parent;if(!NE(n))return;const t=rh(n);if(t&&t.arguments){const r=TN(t),i=n.parameters.indexOf(e);if(e.dotDotDotToken)return hN(r,i,r.length,un,void 0,0);const a=Ra(t),o=a.resolvedSignature;a.resolvedSignature=Xr;const s=i<r.length?Fx(ZO(r[i])):e.initializer?void 0:Ln;return a.resolvedSignature=o,s}const r=mI(n);if(r){const t=n.parameters.indexOf(e)-(zv(n)?1:0);return e.dotDotDotToken&&Fe(n.parameters)===e?SD(r,t):xD(r,t)}}function PC(e,n){const t=Qv(e)||(Ih(e)?tA(e):void 0);if(t)return Fb(t);switch(e.kind){case 166:return MC(e);case 205:return function(e,n){const t=e.parent.parent,r=e.propertyName||e.name,i=PC(t,n)||205!==t.kind&&t.initializer&&PO(t,e.dotDotDotToken?64:0);if(!i||Jd(r)||Hf(r))return;if(204===t.name.kind){const n=lf(e.parent.elements,e);if(n<0)return;return bk(i,n)}const a=Ly(r);if(Vd(a)){return dc(i,Yd(a))}}(e,n);case 169:if(mb(e))return function(e,n){const t=mu(e.parent)&&Xk(e.parent,n);return t?gk(t,Qo(e).escapedName):void 0}(e,n)}}function FC(e){let n=!1;for(;e.parent&&!Id(e.parent);){if(qC(e.parent)&&(n||e.parent.initializer===e))return!0;Nk(e.parent)&&e.parent.initializer===e&&(n=!0),e=e.parent}return!1}function GC(e,n){const t=!!(2&ky(n)),r=BC(n,void 0);if(r)return QP(e,r,t)||void 0}function BC(e,n){const t=Fp(e);if(t)return t;const r=_I(e);if(r&&!Gp(r))return Rp(r);const i=rh(e);return i?Xk(i,n):void 0}function UC(e,n){const t=TN(e).indexOf(n);return-1===t?void 0:VC(e,t)}function VC(e,n){if(pm(e))return 0===n?Dn:1===n?jm(!1):un;const t=Ra(e).resolvedSignature===$r?$r:qN(e);if(zu(e)&&0===n)return oI(t,e);const r=t.parameters.length-1;return sB(t)&&n>=r?Lv(Sl(t.parameters[r]),kb(n-r),256):TD(t,n)}function HC(e,n){const t=e.parent,{left:r,operatorToken:i,right:a}=t;switch(i.kind){case 63:case 76:case 75:case 77:return e===a?function(e){var n,t;const r=eg(e);switch(r){case 0:case 4:const i=function(e){if(Nu(e)&&e.symbol)return e.symbol;if(IC(e))return VA(e);if(Mk(e)){const t=YO(e.expression);return wC(e.name)?n(t,e.name):J_(t,e.name.escapedText)}if(Pk(e)){const n=OO(e.argumentExpression);if(!Vd(n))return;return J_(YO(e.expression),Yd(n))}return;function n(e,n){const t=yR(n.escapedText,n);return t&&ER(e,t)}}(e.left),a=i&&i.valueDeclaration;if(a&&(YC(a)||XC(a))){const n=Qv(a);return n&&AE(Fb(n),wa(i).mapper)||(YC(a)?a.initializer&&YO(e.left):void 0)}return 0===r?YO(e.left):_k(e);case 5:if(ak(e,r))return _k(e);if(Nu(e.left)&&e.left.symbol){const n=e.left.symbol.valueDeclaration;if(!n)return;const t=Tn(e.left,iT),r=Qv(n);if(r)return Fb(r);if(IC(t.expression)){const e=t.expression,n=Fa(e,e.escapedText,111551,void 0,e.escapedText,!0);if(n){const e=n.valueDeclaration&&Qv(n.valueDeclaration);if(e){const n=lg(t);if(void 0!==n)return gk(Fb(e),n)}return}}return Ih(n)?void 0:YO(e.left)}return YO(e.left);case 1:case 6:case 3:case 2:let o;2!==r&&(o=Nu(e.left)?null==(n=e.left.symbol)?void 0:n.valueDeclaration:void 0),o||(o=null==(t=e.symbol)?void 0:t.valueDeclaration);const s=o&&Qv(o);return s?Fb(s):void 0;case 7:case 8:case 9:return Nt.fail("Does not apply");default:return Nt.assertNever(r)}}(t):void 0;case 56:case 60:const i=Xk(t,n);return e===a&&(i&&i.pattern||!i&&!qh(t))?YO(r):i;case 55:case 27:return e===a?Xk(t,n):void 0;default:return}}function ak(e,n=eg(e)){if(4===n)return!0;if(!Ih(e)||5!==n||!IC(e.left.expression))return!1;const t=e.left.expression.escapedText,r=Fa(e.left,t,111551,void 0,void 0,!0,!0);return sh(null==r?void 0:r.valueDeclaration)}function _k(e){if(!e.symbol)return YO(e.left);if(e.symbol.valueDeclaration){const n=Qv(e.symbol.valueDeclaration);if(n){const e=Fb(n);if(e)return e}}const n=Tn(e.left,iT);if(!Gm(Qm(n.expression,!1,!1)))return;const t=LC(n.expression),r=lg(n);return void 0!==r&&gk(t,r)||void 0}function gk(e,n,t){return BL(e,(e=>{var r,i;if(m_(e)&&!e.declaration.nameType){const r=ju(e),i=k_(r)||r,a=t||Cb(Bc(n));if(WE(a,i))return Av(e,a)}else if(3670016&e.flags){const a=J_(e,n);if(a)return 262144&FE(i=a)&&!i.links.type&&tc(i,0)>=0?void 0:Sl(a);if(Vx(e)&&VS(n)&&+n>=0){const n=Wx(e,e.target.fixedLength,0,!1,!0);if(n)return n}return null==(r=Q_(ep(e),t||Cb(Bc(n))))?void 0:r.type}}),!0)}function yk(e,n){if(Nt.assert(Gm(e)),!(33554432&e.flags))return vk(e,n)}function vk(e,n){const t=e.parent,r=Sw(e)&&PC(e,n);if(r)return r;const i=Uk(t,n);if(i){if(qd(e)){const n=Qo(e);return gk(i,n.escapedName,wa(n).nameType)}if(e.name){const n=Ly(e.name);return BL(i,(e=>{var t;return null==(t=Q_(ep(e),n))?void 0:t.type}),!0)}}}function bk(e,n){return e&&(n>=0&&gk(e,""+n)||BL(e,(e=>Vx(e)?Wx(e,0,0,!1,!0):IP(1,e,An,void 0,!1)),!0))}function Tk(e,n){const t=e.parent;return Ku(t)?Xk(e,n):lw(t)?function(e,n,t){const r=Uk(e.openingElement.tagName,t),i=_w(ow(e));if(!r||uc(r)||!i||""===i)return;const a=av(e.children),o=a.indexOf(n),s=gk(r,i);return s&&(1===a.length?s:BL(s,(e=>Ax(e)?Lv(e,kb(o)):e),!0))}(t,e,n):void 0}function Ak(e,n){if(hw(e)){const t=Uk(e.parent,n);if(!t||uc(t))return;return gk(t,e.name.escapedText)}return Xk(e.parent,n)}function kk(e){switch(e.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 155:return!0;case 208:case 214:return kk(e.expression);case 291:return!e.expression||kk(e.expression)}return!1}function Ik(e,n){return function(e,n){const t=eL(e),r=t&&D(n.properties,(e=>e.symbol&&299===e.kind&&e.symbol.escapedName===t&&kk(e.initializer))),i=r&&QO(r.initializer);return i&&rL(e,i)}(n,e)||FT(n,de(W(j(e.properties,(e=>!!e.symbol&&299===e.kind&&kk(e.initializer)&&$A(n,e.symbol.escapedName))),(e=>[()=>QO(e.initializer),e.symbol.escapedName])),W(j(b_(n),(t=>{var r;return!!(16777216&t.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(t.escapedName)&&$A(n,t.escapedName)})),(e=>[()=>An,e.escapedName]))),WE,n)}function Uk(e,n){const t=Kk(Gm(e)?yk(e,n):Xk(e,n),e,n);if(t&&!(n&&2&n&&8650752&t.flags)){const n=BL(t,G_,!0);return 1048576&n.flags&&Ok(e)?Ik(e,n):1048576&n.flags&&gw(e)?function(e,n){return FT(n,de(W(j(e.properties,(e=>!!e.symbol&&288===e.kind&&$A(n,e.symbol.escapedName)&&(!e.initializer||kk(e.initializer)))),(e=>[e.initializer?()=>QO(e.initializer):()=>Bn,e.symbol.escapedName])),W(j(b_(n),(t=>{var r;return!!(16777216&t.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(t.escapedName)&&$A(n,t.escapedName)})),(e=>[()=>An,e.escapedName]))),WE,n)}(e,n):n}}function Kk(e,n,t){if(e&&yO(e,465829888)){const r=aI(n);if(r&&1&t&&ce(r.inferences,zO))return zk(e,r.nonFixingMapper);if(null==r?void 0:r.returnMapper){const n=zk(e,r.returnMapper);return 1048576&n.flags&&Cg(n.types,Gn)&&Cg(n.types,Vn)?PL(n,(e=>e!==Gn&&e!==Vn)):n}}return e}function zk(e,n){return 465829888&e.flags?AE(e,n):1048576&e.flags?Pg(W(e.types,(e=>zk(e,n))),0):2097152&e.flags?hy(W(e.types,(e=>zk(e,n)))):e}function Xk(e,n){var t,r;if(33554432&e.flags)return;const i=iI(e,!n);if(i>=0)return hi[i];const{parent:a}=e;switch(a.kind){case 257:case 166:case 169:case 168:case 205:return function(e,n){const t=e.parent;if(n_(t)&&e===t.initializer){const e=PC(t,n);if(e)return e;if(!(8&n)&&Jd(t.name)&&t.name.elements.length>0)return nl(t.name,!0,!1)}}(e,n);case 216:case 250:return function(e,n){const t=qm(e);if(t){let e=BC(t,n);if(e){const n=ky(t);if(1&n){const t=0!==(2&n);1048576&e.flags&&(e=PL(e,(e=>!!QP(1,e,t))));const r=QP(1,e,0!==(2&n));if(!r)return;e=r}if(2&n){const n=BL(e,DM);return n&&Pg([n,QD(n)])}return e}}}(e,n);case 226:return function(e,n){const t=qm(e);if(t){const r=ky(t);let i=BC(t,n);if(i){const n=0!==(2&r);return!e.asteriskToken&&1048576&i.flags&&(i=PL(i,(e=>!!QP(1,e,n)))),e.asteriskToken?i:QP(0,i,n)}}}(a,n);case 220:return function(e,n){const t=Xk(e,n);if(t){const e=DM(t);return e&&Pg([e,QD(e)])}}(a,n);case 210:case 211:return UC(a,e);case 167:return function(e){const n=YD(e);return n?Jp(n):void 0}(a);case 213:case 231:return ql(a.type)?Xk(a,n):Fb(a.type);case 223:return HC(e,n);case 299:case 300:return vk(a,n);case 301:return Xk(a.parent,n);case 206:{const i=a,o=Uk(i,n),s=null!=(r=(t=Ra(i)).firstSpreadIndex)?r:t.firstSpreadIndex=M(i.elements,eI),c=lf(i.elements,e);return bk(o,s<0||c<s?c:-1)}case 224:return function(e,n){const t=e.parent;return e===t.whenTrue||e===t.whenFalse?Xk(t,n):void 0}(e,n);case 236:return Nt.assert(225===a.parent.kind),function(e,n){if(212===e.parent.kind)return UC(e.parent,n)}(a.parent,e);case 214:if(Ih(a)){if(eA(a))return Fb(nA(a));const e=Al(a);if(e&&!ql(e.typeExpression.type))return Fb(e.typeExpression.type)}return Xk(a,n);case 232:return Xk(a,n);case 235:return Fb(a.type);case 274:return sl(a);case 291:return Tk(a,n);case 288:case 290:return Ak(a,n);case 283:case 282:return function(e,n){if(uw(e)&&4!==n){const t=iI(e.parent,!n);if(t>=0)return hi[t]}return VC(e,0)}(a,n)}}function $k(e){Qk(e,Xk(e,void 0),!0)}function Qk(e,n,t){mi[yi]=e,hi[yi]=n,gi[yi]=t,yi++}function Zk(){yi--}function iI(e,n){for(let t=yi-1;t>=0;t--)if(e===mi[t]&&(n||!gi[t]))return t;return-1}function aI(e){for(let n=Ei-1;n>=0;n--)if(ty(e,vi[n]))return bi[n]}function oI(e,n){return 0!==yN(n)?function(e,n){let t=MD(e,xn);t=cI(n,ow(n),t);const r=rw(XG.IntrinsicAttributes,n);_c(r)||(t=Au(r,t));return t}(e,n):function(e,n){const t=ow(n),r=(i=t,sw(XG.ElementAttributesPropertyNameContainer,i));var i;let a=void 0===r?MD(e,xn):""===r?Rp(e):function(e,n){if(e.compositeSignatures){const t=[];for(const r of e.compositeSignatures){const e=Rp(r);if(uc(e))return e;const i=dc(e,n);if(!i)return;t.push(i)}return hy(t)}const t=Rp(e);return uc(t)?t:dc(t,n)}(e,r);if(!a)return r&&S(n.attributes.properties)&&_a(n,Wo.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Bc(r)),xn;if(a=cI(n,t,a),uc(a))return a;{let t=a;const r=rw(XG.IntrinsicClassAttributes,n);if(!_c(r)){const i=Ul(r.symbol),a=Rp(e);let o;if(i){o=AE(r,rE(i,Ep([a],i,hp(i),Ih(n))))}else o=r;t=Au(o,t)}const i=rw(XG.IntrinsicAttributes,n);return _c(i)||(t=Au(i,t)),t}}(e,n)}function cI(e,n,t){const r=(i=n)&&Da(i.exports,XG.LibraryManagedAttributes,788968);var i;if(r){const n=hd(r),i=function(e){if(zI(e.tagName))return Jp(KN(e,vw(e)));const n=OO(e.tagName);if(128&n.flags){const t=mw(n,e);return t?Jp(KN(e,t)):mn}return n}(e);if(524288&r.flags){const n=wa(r).typeParameters;if(S(n)>=2){return If(r,Ep([i,t],n,2,Ih(e)))}}if(S(n.typeParameters)>=2){return pf(n,Ep([i,t],n.typeParameters,2,Ih(e)))}}return t}function lI(e){return lx(x,"noImplicitAny")?We(e,((e,n)=>e!==n&&e?gu(e.typeParameters,n.typeParameters)?function(e,n){const t=e.typeParameters||n.typeParameters;let r;e.typeParameters&&n.typeParameters&&(r=rE(n.typeParameters,e.typeParameters));const i=e.declaration,a=function(e,n,t){const r=AD(e),i=AD(n),a=r>=i?e:n,o=a===e?n:e,s=a===e?r:i,c=ID(e)||ID(n),l=c&&!ID(a),d=new Array(s+(l?1:0));for(let u=0;u<s;u++){let _=xD(a,u);a===n&&(_=AE(_,t));let p=xD(o,u)||xn;o===n&&(p=AE(p,t));const f=Pg([_,p]),m=c&&!l&&u===s-1,h=u>=LD(a)&&u>=LD(o),g=u>=r?void 0:yD(e,u),y=u>=i?void 0:yD(n,u),v=va(1|(h&&!m?16777216:0),(g===y?g:g?y?void 0:g:y)||`arg${u}`);v.links.type=m?Mh(f):f,d[u]=v}if(l){const e=va(1,"args");e.links.type=Mh(TD(o,s)),o===n&&(e.links.type=AE(e.links.type,t)),d[s]=e}return d}(e,n,r),o=function(e,n,t){if(!e||!n)return e||n;const r=Pg([Sl(e),AE(Sl(n),t)]);return TS(e,r)}(e.thisParameter,n.thisParameter,r),s=Math.max(e.minArgumentCount,n.minArgumentCount),c=ru(i,t,o,a,void 0,void 0,s,39&(e.flags|n.flags));c.compositeKind=2097152,c.compositeSignatures=de(2097152===e.compositeKind&&e.compositeSignatures||[e],[n]),r&&(c.mapper=2097152===e.compositeKind&&e.mapper&&e.compositeSignatures?_E(e.mapper,r):r);return c}(e,n):void 0:e)):void 0}function dI(e,n){const t=j(Y_(e,0),(e=>!function(e,n){let t=0;for(;t<n.parameters.length;t++){const e=n.parameters[t];if(e.initializer||e.questionToken||e.dotDotDotToken||$S(e))break}n.parameters.length&&qv(n.parameters[0])&&t--;return!ID(e)&&AD(e)<t}(e,n)));return 1===t.length?t[0]:lI(t)}function _I(e){return BS(e)||Gm(e)?mI(e):void 0}function mI(e){Nt.assert(171!==e.kind||Gm(e));const n=Sp(e);if(n)return n;const t=Uk(e,1);if(!t)return;if(!(1048576&t.flags))return dI(t,e);let r;const i=t.types;for(const a of i){const n=dI(a,e);if(n)if(r){if(!fx(r[0],n,!1,!0,!0,ME))return;r.push(n)}else r=[n]}return r?1===r.length?r[0]:cu(r[0],r):void 0}function yI(e){return 205===e.kind&&!!e.initializer||223===e.kind&&63===e.operatorToken.kind}function vI(e,n,t){const r=e.elements,i=r.length,a=[],o=[];$k(e);const s=zg(e),c=BO(e),l=Uk(e,void 0),d=!!l&&OL(l,Ix);let u=!1;for(let _=0;_<i;_++){const i=r[_];if(227===i.kind){L<2&&SB(i,x.downlevelIteration?1536:1024);const e=ZO(i.expression,n,t);if(Ax(e))a.push(e),o.push(8);else if(s){const n=rp(e,On)||IP(65,e,An,void 0,!1)||xn;a.push(n),o.push(4)}else a.push(kP(33,e,An,i.expression)),o.push(4)}else if(te&&229===i.kind)u=!0,a.push(kn),o.push(2);else{const r=UO(i,n,t);if(a.push(Sc(r,!0,u)),o.push(u?2:1),d&&n&&2&n&&!(4&n)&&wE(i)){const n=aI(e);Nt.assert(n),oA(n,i,r)}}}return Zk(),s?ig(a,o):xI(t||c||d?ig(a,o,c):Mh(a.length?Pg(q(a,((e,n)=>8&o[n]?kv(e,On)||un:e)),2):F?Jn:Ln,c))}function xI(e){if(!(4&YE(e)))return e;let n=e.literalType;return n||(n=e.literalType=ff(e),n.objectFlags|=147456),n}function SI(e){switch(e.kind){case 164:return function(e){return vO(AI(e),296)}(e);case 79:return VS(e.escapedText);case 8:case 10:return VS(e.text);default:return!1}}function AI(e){const n=Ra(e.expression);if(!n.resolvedType){if((uk(e.parent.parent)||Fd(e.parent.parent)||PI(e.parent.parent))&&Yk(e.expression)&&101===e.expression.operatorToken.kind&&174!==e.parent.kind&&175!==e.parent.kind)return n.resolvedType=mn;if(n.resolvedType=ZO(e.expression),YC(e.parent)&&!hb(e.parent)&&nI(e.parent.parent)){const n=EC(Bf(e.parent.parent));n&&(Ra(n).flags|=4096,Ra(e).flags|=32768,Ra(e.parent.parent).flags|=32768)}(98304&n.resolvedType.flags||!vO(n.resolvedType,402665900)&&!WE(n.resolvedType,Zn))&&_a(e,Wo.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return n.resolvedType}function LI(e){var n;const t=null==(n=e.declarations)?void 0:n[0];return VS(e.escapedName)||t&&qc(t)&&SI(t.name)}function CI(e){var n;const t=null==(n=e.declarations)?void 0:n[0];return Uy(e)||t&&qc(t)&&WC(t.name)&&vO(AI(t.name),4096)}function kI(e,n,t,r){const i=[];for(let a=n;a<t.length;a++){const e=t[a];(r===Dn&&!CI(e)||r===On&&LI(e)||r===Kn&&CI(e))&&i.push(Sl(t[a]))}return $p(r,i.length?Pg(i,2):An,BO(e))}function II(e){Nt.assert(0!==(2097152&e.flags),"Should only get Alias here.");const n=wa(e);if(!n.immediateTarget){const t=Xa(e);if(!t)return Nt.fail();n.immediateTarget=yo(t,!0)}return n.immediateTarget}function wI(e,n){var t;const r=zg(e);!function(e,n){const t=new Map;for(const r of e.properties){if(301===r.kind){if(n){const e=ey(r.expression);if(Dk(e)||Ok(e))return QB(r.expression,Wo.A_rest_element_cannot_contain_a_binding_pattern)}continue}const e=r.name;if(164===e.kind&&MB(e),300===r.kind&&!n&&r.objectAssignmentInitializer&&QB(r.equalsToken,Wo.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),80===e.kind&&QB(e,Wo.Private_identifiers_are_not_allowed_outside_class_bodies),jN(r)&&r.modifiers)for(const n of r.modifiers)!Ad(n)||132===n.kind&&171===r.kind||QB(n,Wo._0_modifier_cannot_be_used_here,sf(n));else if(mN(r)&&r.modifiers)for(const n of r.modifiers)Ad(n)&&QB(n,Wo._0_modifier_cannot_be_used_here,sf(n));let i;switch(r.kind){case 300:case 299:GB(r.exclamationToken,Wo.A_definite_assignment_assertion_is_not_permitted_in_this_context),FB(r.questionToken,Wo.An_object_member_cannot_be_declared_optional),8===e.kind&&nU(e),i=4;break;case 171:i=8;break;case 174:i=1;break;case 175:i=2;break;default:throw Nt.assertNever(r,"Unexpected syntax kind:"+r.kind)}if(!n){const n=Oy(e);if(void 0===n)continue;const r=t.get(n);if(r)if(8&i&&8&r)QB(e,Wo.Duplicate_identifier_0,sf(e));else if(4&i&&4&r)QB(e,Wo.An_object_literal_cannot_have_multiple_properties_with_the_same_name,sf(e));else{if(!(3&i&&3&r))return QB(e,Wo.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===r||i===r)return QB(e,Wo.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);t.set(n,i|r)}else t.set(n,i)}}}(e,r);const a=F?dp():void 0;let o=dp(),s=[],c=bt;$k(e);const l=Uk(e,void 0),d=l&&l.pattern&&(203===l.pattern.kind||207===l.pattern.kind),u=BO(e),_=u?8:0,p=Ih(e)&&!wh(e),f=bl(e),m=!l&&p&&!f;let h=ne,g=!1,y=!1,v=!1,b=!1;for(const i of e.properties)i.name&&WC(i.name)&&AI(i.name);let E=0;for(const i of e.properties){let t=Qo(i);const m=i.name&&164===i.name.kind?AI(i.name):void 0;if(299===i.kind||300===i.kind||Gm(i)){let o=299===i.kind?VO(i,n):300===i.kind?UO(!r&&i.objectAssignmentInitializer?i.objectAssignmentInitializer:i.name,n):jO(i,n);if(p){const e=Tc(i);e?($E(o,e,i),o=e):f&&f.typeExpression&&$E(o,Fb(f.typeExpression),i)}h|=458752&YE(o);const s=m&&Vd(m)?m:void 0,c=s?va(4|t.flags,Yd(s),4096|_):va(4|t.flags,t.escapedName,_);if(s&&(c.links.nameType=s),r){(299===i.kind&&yI(i.initializer)||300===i.kind&&i.objectAssignmentInitializer)&&(c.flags|=16777216)}else if(d&&!(512&YE(l))){const e=J_(l,t.escapedName);e?c.flags|=16777216&e.flags:x.suppressExcessPropertyErrors||tp(l,Dn)||_a(i.name,Wo.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Gs(t),Us(l))}if(c.declarations=t.declarations,c.parent=t.parent,t.valueDeclaration&&(c.valueDeclaration=t.valueDeclaration),c.links.type=o,c.links.target=t,t=c,null==a||a.set(c.escapedName,c),l&&n&&2&n&&!(4&n)&&(299===i.kind||171===i.kind)&&wE(i)){const n=aI(e);Nt.assert(n);oA(n,299===i.kind?i.initializer:i,o)}}else{if(301===i.kind){L<2&&SB(i,2),s.length>0&&(c=ob(c,T(),e.symbol,h,u),s=[],o=dp(),y=!1,v=!1,b=!1);const n=H_(ZO(i.expression));if(RI(n)){const t=ab(n,u);if(a&&XI(t,a,i),E=s.length,_c(c))continue;c=ob(c,t,e.symbol,h,u)}else _a(i,Wo.Spread_types_may_only_be_created_from_object_types),c=mn;continue}Nt.assert(174===i.kind||175===i.kind),YF(i)}!m||8576&m.flags?o.set(t.escapedName,t):WE(m,Zn)&&(WE(m,On)?v=!0:WE(m,Kn)?b=!0:y=!0,r&&(g=!0)),s.push(t)}if(Zk(),d){const n=Mc(l.pattern.parent,(e=>257===e.kind||223===e.kind||166===e.kind));if(301!==Mc(e,(e=>e===n||301===e.kind)).kind)for(const e of b_(l))o.get(e.escapedName)||J_(c,e.escapedName)||(16777216&e.flags||_a(e.valueDeclaration||(null==(t=En(e,up))?void 0:t.links.bindingElement),Wo.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),o.set(e.escapedName,e),s.push(e))}return _c(c)?mn:c!==bt?(s.length>0&&(c=ob(c,T(),e.symbol,h,u),s=[],o=dp(),y=!1,v=!1),BL(c,(e=>e===bt?T():e))):T();function T(){const n=[];y&&n.push(kI(e,E,s,Dn)),v&&n.push(kI(e,E,s,On)),b&&n.push(kI(e,E,s,Kn));const t=vs(e.symbol,o,i,i,n);return t.objectFlags|=131200|h,m&&(t.objectFlags|=4096),g&&(t.objectFlags|=512),r&&(t.pattern=e),t}}function RI(e){const n=qx(BL(e,I_));return!!(126615553&n.flags||3145728&n.flags&&N(n.types,RI))}function VI(e){return rt(e,"-")}function zI(e){return 79===e.kind&&mv(e.escapedText)}function qI(e,n){return e.initializer?UO(e.initializer,n):Bn}function JI(e,n){const t=[];for(const r of e.children)if(11===r.kind)r.containsOnlyTriviaWhiteSpaces||t.push(Dn);else{if(291===r.kind&&!r.expression)continue;t.push(UO(r,n))}return t}function XI(e,n,t){for(const r of b_(e))if(!(16777216&r.flags)){const e=n.get(r.escapedName);if(e){cS(_a(e.valueDeclaration,Wo._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Bc(e.escapedName)),qf(t,Wo.This_spread_always_overwrites_this_property))}}}function $I(e,n){return function(e,n){const t=e.attributes,r=Xk(t,0),a=F?dp():void 0;let o,s=dp(),c=Tt,l=!1,d=!1,u=2048;const _=_w(ow(e));for(const i of t.properties){const e=i.symbol;if(hw(i)){const t=qI(i,n);u|=458752&YE(t);const o=va(4|e.flags,e.escapedName);if(o.declarations=e.declarations,o.parent=e.parent,e.valueDeclaration&&(o.valueDeclaration=e.valueDeclaration),o.links.type=t,o.links.target=e,s.set(o.escapedName,o),null==a||a.set(o.escapedName,o),i.name.escapedText===_&&(d=!0),r){const n=J_(r,e.escapedName);n&&n.declarations&&ga(n)&&ya(i.name,n.declarations,i.name.escapedText)}}else{Nt.assert(290===i.kind),s.size>0&&(c=ob(c,f(),t.symbol,u,!1),s=dp());const e=H_(OO(i.expression,n));uc(e)&&(l=!0),RI(e)?(c=ob(c,e,t.symbol,u,!1),a&&XI(e,a,i)):(_a(i.expression,Wo.Spread_types_may_only_be_created_from_object_types),o=o?hy([o,e]):e)}}l||s.size>0&&(c=ob(c,f(),t.symbol,u,!1));const p=281===e.parent.kind?e.parent:void 0;if(p&&p.openingElement===e&&p.children.length>0){const r=JI(p,n);if(!l&&_&&""!==_){d&&_a(t,Wo._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Bc(_));const n=Uk(e.attributes,void 0),a=n&&gk(n,_),o=va(4,_);o.links.type=1===r.length?r[0]:a&&OL(a,Ix)?ig(r):Mh(Pg(r)),o.valueDeclaration=gA.createPropertySignature(void 0,Bc(_),void 0,void 0),CS(o.valueDeclaration,t),o.valueDeclaration.symbol=o;const s=dp();s.set(_,o),c=ob(c,vs(t.symbol,s,i,i,i),t.symbol,u,!1)}}return l?un:o&&c!==Tt?hy([o,c]):o||(c===Tt?f():c);function f(){u|=ne;const e=vs(t.symbol,s,i,i,i);return e.objectFlags|=131200|u,e}}(e.parent,n)}function rw(e,n){const t=ow(n),r=t&&qo(t),i=r&&Da(r,e,788968);return i?hd(i):mn}function iw(e){const n=Ra(e);if(!n.resolvedSymbol){const t=rw(XG.IntrinsicElements,e);if(_c(t))return Y&&_a(e,Wo.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Bc(XG.IntrinsicElements)),n.resolvedSymbol=on;{if(!IC(e.tagName))return Nt.fail();const r=J_(t,e.tagName.escapedText);if(r)return n.jsxFlags|=1,n.resolvedSymbol=r;return rp(t,Dn)?(n.jsxFlags|=2,n.resolvedSymbol=t.symbol):(_a(e,Wo.Property_0_does_not_exist_on_type_1,Uc(e.tagName),"JSX."+XG.IntrinsicElements),n.resolvedSymbol=on)}}return n.resolvedSymbol}function aw(e){const n=e&&Dp(e),t=n&&Ra(n);if(t&&!1===t.jsxImplicitImportContainer)return;if(t&&t.jsxImplicitImportContainer)return t.jsxImplicitImportContainer;const r=yx(gx(x,n),x);if(!r)return;const i=Fo(e,r,1===zT(x)?Wo.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:Wo.Cannot_find_module_0_or_its_corresponding_type_declarations,e),a=i&&i!==on?$o(bo(i)):void 0;return t&&(t.jsxImplicitImportContainer=a||!1),a}function ow(e){const n=e&&Ra(e);if(n&&n.jsxNamespace)return n.jsxNamespace;if(!n||!1!==n.jsxNamespace){let t=aw(e);if(!t||t===on){const n=sa(e);t=Fa(e,n,1920,void 0,n,!1)}if(t){const e=bo(Da(qo(bo(t)),XG.JSX,1920));if(e&&e!==on)return n&&(n.jsxNamespace=e),e}n&&(n.jsxNamespace=!1)}const t=bo(Tm(XG.JSX,1920,void 0));return t!==on?t:void 0}function sw(e,n){const t=n&&Da(n.exports,e,788968),r=t&&hd(t),i=r&&b_(r);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&t.declarations&&_a(t.declarations[0],Wo.The_global_type_JSX_0_may_not_have_more_than_one_property,Bc(e))}}function _w(e){return sw(XG.ElementChildrenAttributeNameContainer,e)}function pw(e,n){if(4&e.flags)return[Xr];if(128&e.flags){const t=mw(e,n);if(t){return[KN(n,t)]}return _a(n,Wo.Property_0_does_not_exist_on_type_1,e.value,"JSX."+XG.IntrinsicElements),i}const t=G_(e);let r=Y_(t,1);return 0===r.length&&(r=Y_(t,0)),0===r.length&&1048576&t.flags&&(r=fu(W(t.types,(e=>pw(e,n))))),r}function mw(e,n){const t=rw(XG.IntrinsicElements,n);if(!_c(t)){const n=J_(t,Gc(e.value));if(n)return Sl(n);const r=rp(t,Dn);return r||void 0}return un}function vw(e){Nt.assert(zI(e.tagName));const n=Ra(e);if(!n.resolvedJsxElementAttributesType){const t=iw(e);return 1&n.jsxFlags?n.resolvedJsxElementAttributesType=Sl(t)||mn:2&n.jsxFlags?n.resolvedJsxElementAttributesType=rp(rw(XG.IntrinsicElements,e),Dn)||mn:n.resolvedJsxElementAttributesType=mn}return n.resolvedJsxElementAttributesType}function bw(e){const n=rw(XG.ElementClass,e);if(!_c(n))return n}function Ew(e){return rw(XG.Element,e)}function kw(e){const n=Ew(e);if(n)return Pg([n,wn])}function ww(e){const n=zu(e);var t;if(n&&function(e){(function(e){if(Mk(e)){let t=e;do{const e=n(t.name);if(e)return e;t=t.expression}while(Mk(t));const r=n(t);if(r)return r}function n(e){if(IC(e)&&-1!==Uc(e).indexOf(":"))return QB(e,Wo.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(e.tagName),NB(e,e.typeArguments);const n=new Map;for(const t of e.attributes.properties){if(290===t.kind)continue;const{name:e,initializer:r}=t;if(n.get(e.escapedText))return QB(e,Wo.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(n.set(e.escapedText,!0),r&&291===r.kind&&!r.expression)return QB(r,Wo.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),t=e,0===(x.jsx||0)&&_a(t,Wo.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===Ew(t)&&Y&&_a(t,Wo.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),!aw(e)){const t=Ji&&2===x.jsx?Wo.Cannot_find_name_0:void 0,r=sa(e),i=n?e.tagName:e;let a;if(fw(e)&&"null"===r||(a=Fa(i,r,111551,t,r,!0)),a&&(a.isReferenced=67108863,!x.verbatimModuleSyntax&&2097152&a.flags&&!Co(a)&&Io(a)),fw(e)){const n=ca(Dp(e));n&&Fa(i,n,111551,t,n,!0)}}if(n){const n=e,t=qN(n);QN(t,e),function(e,n,t){if(1===e){const e=kw(t);e&<(n,e,Zi,t.tagName,Wo.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(0===e){const e=bw(t);e&<(n,e,Zi,t.tagName,Wo.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{const e=kw(t),i=bw(t);if(!e||!i)return;LT(n,Pg([e,i]),Zi,t.tagName,Wo.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){const e=sf(t.tagName);return NT(void 0,Wo._0_cannot_be_used_as_a_JSX_component,e)}}(yN(n),Rp(t),n)}}function Rw(e,n,t){if(524288&e.flags){if(y_(e,n)||op(e,n)||Hd(n)&&tp(e,Dn)||t&&VI(n))return!0}else if(3145728&e.flags&&Mw(e))for(const r of e.types)if(Rw(r,n,t))return!0;return!1}function Mw(e){return!!(524288&e.flags&&!(512&YE(e))||67108864&e.flags||1048576&e.flags&&ce(e.types,Mw)||2097152&e.flags&&N(e.types,Mw))}function Pw(e,n){if(function(e){if(e.expression&&HR(e.expression))QB(e.expression,Wo.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){const t=ZO(e.expression,n);return e.dotDotDotToken&&t!==un&&!bx(t)&&_a(e,Wo.JSX_spread_child_must_be_an_array_type),t}return mn}function Fw(e){return e.valueDeclaration?Nc(e.valueDeclaration):0}function Ww(e){if(8192&e.flags||4&FE(e))return!0;if(Ih(e.valueDeclaration)){const n=e.valueDeclaration.parent;return n&&Yk(n)&&3===eg(n)}}function zw(e,n,t,r,i,a=!0){return Yw(e,n,t,r,i,a?163===e.kind?e.right:202===e.kind?e:205===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function Yw(e,n,t,r,i,a){const o=GE(i,t);if(n){if(L<2&&$w(i))return a&&_a(a,Wo.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(256&o)return a&&_a(a,Wo.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Gs(i),Us(rx(i))),!1}if(256&o&&$w(i)&&(oh(e)||ch(e)||wk(e.parent)&&sh(e.parent.parent))){const n=XE(es(i));if(n&&Mc(e,(e=>!!(ek(e)&&jp(e.body)||YC(e))||!(!Fd(e)&&!Rd(e))&&"quit")))return a&&_a(a,Wo.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Gs(i),Py(n.name)),!1}if(!(24&o))return!0;if(8&o){return!!cG(e,XE(es(i)))||(a&&_a(a,Wo.Property_0_is_private_and_only_accessible_within_class_1,Gs(i),Us(rx(i))),!1)}if(n)return!0;let s=sG(e,(e=>cx(hd(Qo(e)),i,t)));return!s&&(s=function(e){const n=function(e){const n=Qm(e,!1,!1);return n&&Id(n)?zv(n):void 0}(e);let t=(null==n?void 0:n.type)&&Fb(n.type);t&&262144&t.flags&&(t=T_(t));if(t&&7&YE(t))return wl(t);return}(e),s=s&&cx(s,i,t),32&o||!s)?(a&&_a(a,Wo.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Gs(i),Us(rx(i)||r)),!1):!!(32&o)||(262144&r.flags&&(r=r.isThisType?T_(r):k_(r)),!(!r||!Rl(r,s))||(a&&_a(a,Wo.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Gs(i),Us(s),Us(r)),!1))}function $w(e){return!!tx(e,(e=>!(8192&e.flags)))}function Zw(e){return oR(ZO(e),e)}function eR(e){return!!(50331648&dL(e))}function nR(e){return eR(e)?Qx(e):e}function tR(e,n){const t=qb(e)?zf(e):void 0;if(104!==e.kind)if(void 0!==t&&t.length<100){if(IC(e)&&"undefined"===t)return void _a(e,Wo.The_value_0_cannot_be_used_here,"undefined");_a(e,16777216&n?33554432&n?Wo._0_is_possibly_null_or_undefined:Wo._0_is_possibly_undefined:Wo._0_is_possibly_null,t)}else _a(e,16777216&n?33554432&n?Wo.Object_is_possibly_null_or_undefined:Wo.Object_is_possibly_undefined:Wo.Object_is_possibly_null);else _a(e,Wo.The_value_0_cannot_be_used_here,"null")}function rR(e,n){_a(e,16777216&n?33554432&n?Wo.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:Wo.Cannot_invoke_an_object_which_is_possibly_undefined:Wo.Cannot_invoke_an_object_which_is_possibly_null)}function aR(e,n,t){if(F&&2&e.flags){if(qb(n)){const e=zf(n);if(e.length<100)return _a(n,Wo._0_is_of_type_unknown,e),mn}return _a(n,Wo.Object_is_of_type_unknown),mn}const r=dL(e);if(50331648&r){t(n,r);const i=Qx(e);return 229376&i.flags?mn:i}return e}function oR(e,n){return aR(e,n,tR)}function sR(e,n){const t=oR(e,n);if(16384&t.flags){if(qb(n)){const e=zf(n);if(IC(n)&&"undefined"===e)return _a(n,Wo.The_value_0_cannot_be_used_here,e),t;if(e.length<100)return _a(n,Wo._0_is_possibly_undefined,e),t}_a(n,Wo.Object_is_possibly_undefined)}return t}function dR(e,n){return 32&e.flags?function(e,n){const t=ZO(e.expression),r=rS(t,e.expression);return tS(SR(e,e.expression,oR(r,e.expression),e.name,n),e,r!==t)}(e,n):SR(e,e.expression,Zw(e.expression),e.name,n)}function fR(e,n){const t=Eh(e)&&Jv(e.left)?oR(LC(e.left),e.left):Zw(e.left);return SR(e,e.left,t,e.right,n)}function hR(e){for(;214===e.parent.kind;)e=e.parent;return su(e.parent)&&e.parent.expression===e}function yR(e,n){for(let t=Xm(n);t;t=Xm(t)){const{symbol:n}=t,r=By(n,e),i=n.members&&n.members.get(r)||n.exports&&n.exports.get(r);if(i)return i}}function vR(e){!function(e){if(!Xm(e))return QB(e,Wo.Private_identifiers_are_not_allowed_outside_class_bodies);if(!EI(e.parent)){if(!vh(e))return QB(e,Wo.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const n=Yk(e.parent)&&101===e.parent.operatorToken.kind;if(!bR(e)&&!n)return QB(e,Wo.Cannot_find_name_0,Uc(e))}}(e);const n=bR(e);return n&&GR(n,void 0,!1),un}function bR(e){if(!vh(e))return;const n=Ra(e);return void 0===n.resolvedSymbol&&(n.resolvedSymbol=yR(e.escapedText,e)),n.resolvedSymbol}function ER(e,n){return J_(e,n.escapedName)}function TR(e,n){return(Cc(n)||oh(e)&&Ic(n))&&Qm(e,!0,!1)===Rc(n)}function SR(e,n,t,r,i){const a=Ra(n).resolvedSymbol,o=Wg(e),s=G_(0!==o||hR(e)?DS(t):t),c=uc(s)||s===qn;let l,d;if(wC(r)){L<99&&(0!==o&&SB(e,1048576),1!==o&&SB(e,524288));const n=yR(r.escapedText,r);if(o&&n&&n.valueDeclaration&&QC(n.valueDeclaration)&&QB(r,Wo.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Uc(r)),c){if(n)return _c(s)?mn:s;if(!Xm(r))return QB(r,Wo.Private_identifiers_are_not_allowed_outside_class_bodies),un}if(l=n?ER(t,n):void 0,!l&&function(e,n,t){let r;const i=b_(e);i&&A(i,(e=>{const t=e.valueDeclaration;if(t&&qc(t)&&wC(t.name)&&t.name.escapedText===n.escapedText)return r=e,!0}));const a=ja(n);if(r){const i=Nt.checkDefined(r.valueDeclaration),o=Nt.checkDefined(Xm(i));if(null==t?void 0:t.valueDeclaration){const r=t.valueDeclaration,s=Xm(r);if(Nt.assert(!!s),Mc(s,(e=>o===e)))return cS(_a(n,Wo.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,a,Us(e)),qf(r,Wo.The_shadowing_declaration_of_0_is_defined_here,a),qf(i,Wo.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,a)),!0}return _a(n,Wo.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,a,ja(o.name||FG)),!0}return!1}(t,r,n))return mn;l&&65536&l.flags&&!(32768&l.flags)&&1!==o&&_a(e,Wo.Private_accessor_was_defined_without_a_getter)}else{if(c)return IC(n)&&a&&vC(a,e),_c(s)?mn:s;l=J_(s,r.escapedText,!1,163===e.kind)}if(IC(n)&&a&&(XT(x)||!l||!(NG(l)||8&l.flags&&302===e.parent.kind)||sx(x)&&yC(e))&&vC(a,e),l){ga(l)&&iv(e,l)&&l.declarations&&ya(r,l.declarations,r.escapedText),function(e,n,t){const{valueDeclaration:r}=e;if(!r||Dp(n).isDeclarationFile)return;let i;const a=Uc(t);!CR(n)||function(e){return YC(e)&&!bb(e)&&e.questionToken}(r)||iT(n)&&iT(n.expression)||Oa(r,t)||QC(r)&&32&wc(r)||!x.useDefineForClassFields&&function(e){if(!(32&e.parent.flags))return!1;let n=Sl(e.parent);for(;;){if(n=n.symbol&&kR(n),!n)return!1;const t=J_(n,e.escapedName);if(t&&t.valueDeclaration)return!0}}(e)?260!==r.kind||180===n.parent.kind||16777216&r.flags||Oa(r,t)||(i=_a(t,Wo.Class_0_used_before_its_declaration,a)):i=_a(t,Wo.Property_0_is_used_before_its_initialization,a);i&&cS(i,qf(r,Wo._0_is_declared_here,a))}(l,e,r),GR(l,e,BR(n,a)),Ra(e).resolvedSymbol=l;const t=jE(e);if(zw(e,106===n.kind,t,s,l),_O(e,l,o))return _a(r,Wo.Cannot_assign_to_0_because_it_is_a_read_only_property,Uc(r)),mn;d=TR(e,l)?_n:t?xl(l):Sl(l)}else{const n=wC(r)||0!==o&&pv(t)&&!HS(t)?void 0:op(s,r.escapedText);if(!n||!n.type){const n=AR(e,t.symbol,!0);return!n&&tv(t)?un:t.symbol===fe?(fe.exports.has(r.escapedText)&&418&fe.exports.get(r.escapedText).flags?_a(r,Wo.Property_0_does_not_exist_on_type_1,Bc(r.escapedText),Us(t)):Y&&_a(r,Wo.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Us(t)),un):(r.escapedText&&!Ka(e)&&IR(r,HS(t)?s:t,n),mn)}n.isReadonly&&(zg(e)||ny(e))&&_a(e,Wo.Index_signature_in_type_0_only_permits_reading,Us(s)),d=x.noUncheckedIndexedAccess&&!zg(e)?Pg([n.type,Cn]):n.type,x.noPropertyAccessFromIndexSignature&&Mk(e)&&_a(r,Wo.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Bc(r.escapedText)),n.declaration&&268435456&Nc(n.declaration)&&ya(r,[n.declaration],r.escapedText)}return LR(e,l,d,r,i)}function AR(e,n,t){const r=Dp(e);if(r&&void 0===x.checkJs&&void 0===r.checkJsDirective&&(1===r.scriptKind||2===r.scriptKind)){const i=A(null==n?void 0:n.declarations,Dp);return!(r!==i&&i&&Na(i))&&!(t&&n&&32&n.flags)&&!(e&&t&&Mk(e)&&108===e.expression.kind)}return!1}function LR(e,n,t,r,i){const a=Wg(e);if(1===a)return oS(t,!!(n&&16777216&n.flags));if(n&&!(98311&n.flags)&&!(8192&n.flags&&1048576&t.flags)&&!WF(n.declarations))return t;if(t===_n)return Pc(e,n);t=gC(t,e,i);let o=!1;if(F&&z&&iT(e)&&108===e.expression.kind){const t=n&&n.valueDeclaration;if(t&&yF(t)&&!mb(t)){const n=cC(e);173!==n.kind||n.parent!==t.parent||16777216&t.flags||(o=!0)}}else F&&n&&n.valueDeclaration&&Mk(n.valueDeclaration)&&dg(n.valueDeclaration)&&cC(e)===cC(n.valueDeclaration)&&(o=!0);const s=sC(e,t,o?$x(t):t);return o&&!yT(t)&&yT(s)?(_a(r,Wo.Property_0_is_used_before_being_assigned,Gs(n)),t):a?Mx(s):s}function CR(e){return!!Mc(e,(e=>{switch(e.kind){case 169:return!0;case 299:case 171:case 174:case 175:case 301:case 164:case 236:case 291:case 288:case 289:case 290:case 283:case 230:case 294:return!1;case 216:case 241:return!(!pI(e.parent)||!ZC(e.parent.parent))||"quit";default:return!vh(e)&&"quit"}}))}function kR(e){const n=td(e);if(0!==n.length)return hy(n)}function IR(e,n,t){let r,i;if(!wC(e)&&1048576&n.flags&&!(134348796&n.flags))for(const o of n.types)if(!J_(o,e.escapedText)&&!op(o,e.escapedText)){r=NT(r,Wo.Property_0_does_not_exist_on_type_1,Vf(e),Us(o));break}if(wR(e.escapedText,n)){const t=Vf(e),i=Us(n);r=NT(r,Wo.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,t,i,i+"."+t)}else{const a=AM(n);if(a&&J_(a,e.escapedText))r=NT(r,Wo.Property_0_does_not_exist_on_type_1,Vf(e),Us(n)),i=qf(e,Wo.Did_you_forget_to_use_await);else{const a=Vf(e),o=Us(n),s=function(e,n){const t=G_(n).symbol;if(!t)return;const r=jc(t),i=_f().get(r);if(i)for(const[a,o]of i)if(G(o,e))return a}(a,n);if(void 0!==s)r=NT(r,Wo.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,a,o,s);else{const s=NR(e,n);if(void 0!==s){const e=jc(s);r=NT(r,t?Wo.Property_0_may_not_exist_on_type_1_Did_you_mean_2:Wo.Property_0_does_not_exist_on_type_1_Did_you_mean_2,a,o,e),i=s.valueDeclaration&&qf(s.valueDeclaration,Wo._0_is_declared_here,e)}else{const e=function(e){return x.lib&&!x.lib.includes("dom")&&(n=e,t=e=>e.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Bc(e.symbol.escapedName)),3145728&n.flags?N(n.types,t):t(n))&&hT(e);var n,t}(n)?Wo.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:Wo.Property_0_does_not_exist_on_type_1;r=NT(q_(r,n),e,a,o)}}}}const a=Yf(Dp(e),e,r);i&&cS(a,i),pa(!t||r.code!==Wo.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,a)}function wR(e,n){const t=n.symbol&&J_(Sl(n.symbol),e);return void 0!==t&&!!t.valueDeclaration&&mb(t.valueDeclaration)}function RR(e,n){return FR(e,b_(n),106500)}function NR(e,n){let t=b_(n);if("string"!==typeof e){const r=e.parent;Mk(r)&&(t=j(t,(e=>VR(r,n,e)))),e=Uc(e)}return FR(e,t,111551)}function DR(e,n){const t=vn(e)?e:Uc(e),r=b_(n),i="for"===t?D(r,(e=>"htmlFor"===jc(e))):"class"===t?D(r,(e=>"className"===jc(e))):void 0;return null!=i?i:FR(t,r,111551)}function OR(e,n){const t=NR(e,n);return t&&jc(t)}function MR(e,n,t){Nt.assert(void 0!==n,"outername should always be defined");return Ga(e,n,t,void 0,n,!1,!1,!0,((e,t,r)=>{Nt.assertEqual(n,t,"name should equal outerName");const i=Da(e,t,r);if(i)return i;let a;if(e===le){a=ee(["string","number","boolean","object","bigint","symbol"],(n=>e.has(n.charAt(0).toUpperCase()+n.slice(1))?va(524288,n):void 0)).concat(Qe(e.values()))}else a=Qe(e.values());return FR(Bc(t),a,r)}))}function PR(e,n){return n.exports&&FR(Uc(e),Ho(n),2623475)}function FR(e,n,t){return Qn(e,n,(function(e){const n=jc(e);if(pt(n,'"'))return;if(e.flags&t)return n;if(2097152&e.flags){const r=function(e){if(wa(e).aliasTarget!==sn)return To(e)}(e);if(r&&r.flags&t)return n}return}))}function GR(e,n,t){const r=e&&106500&e.flags&&e.valueDeclaration;if(!r)return;const i=pb(r,8),a=e.valueDeclaration&&qc(e.valueDeclaration)&&wC(e.valueDeclaration.name);if((i||a)&&(!n||!VE(n)||65536&e.flags)){if(t){const t=Mc(n,Rd);if(t&&t.symbol===e)return}(1&FE(e)?wa(e).target:e).isReferenced=67108863}}function BR(e,n){return 108===e.kind||!!n&&qb(e)&&n===VA(Jb(e))}function VR(e,n,t){return zR(e,208===e.kind&&106===e.expression.kind,!1,n,t)}function jR(e,n,t,r){if(uc(r))return!0;const i=J_(r,t);return!!i&&zR(e,n,!1,r,i)}function zR(e,n,t,r,i){if(uc(r))return!0;if(i.valueDeclaration&&bd(i.valueDeclaration)){const n=Xm(i.valueDeclaration);return!jl(e)&&!!Mc(e,(e=>e===n))}return Yw(e,n,t,r,i)}function XR(e){const n=e.initializer;if(258===n.kind){const e=n.declarations[0];if(e&&!Jd(e.name))return Qo(e)}else if(79===n.kind)return VA(n)}function YR(e,n){return 32&e.flags?function(e,n){const t=ZO(e.expression),r=rS(t,e.expression);return tS($R(e,oR(r,e.expression),n),e,r!==t)}(e,n):$R(e,Zw(e.expression),n)}function $R(e,n,t){const r=0!==Wg(e)||hR(e)?DS(n):n,i=e.argumentExpression,a=ZO(i);if(_c(r)||r===qn)return r;if(EO(r)&&!o_(i))return _a(i,Wo.A_const_enum_member_can_only_be_accessed_using_a_string_literal),mn;const o=function(e){const n=ey(e);if(79===n.kind){const r=VA(n);if(3&r.flags){let n=e,i=e.parent;for(;i;){if(246===i.kind&&n===i.statement&&XR(i)===r&&1===np(t=YO(i.expression)).length&&tp(t,On))return!0;n=i,i=i.parent}}}var t;return!1}(i)?On:a,s=kv(r,o,zg(e)?4|(pv(r)&&!HS(r)?2:0):32,e)||mn;return gM(LR(e,Ra(e).resolvedSymbol,s,i,t),e)}function QR(e){return su(e)||Bk(e)||zu(e)}function ZR(e){return QR(e)&&A(e.typeArguments,zF),212===e.kind?ZO(e.template):zu(e)?ZO(e.attributes):167!==e.kind&&A(e.arguments,(e=>{ZO(e)})),Xr}function eN(e){return ZR(e),Yr}function nN(e){return!!e&&(227===e.kind||234===e.kind&&e.isSpread)}function tN(e){return M(e,nN)}function rN(e){return!!(16384&e.flags)}function iN(e){return!!(49155&e.flags)}function aN(e,n,t,r=!1){let i,a=!1,o=AD(t),s=LD(t);if(212===e.kind)if(i=n.length,225===e.template.kind){const n=Ge(e.template.templateSpans);a=Vp(n.literal)||!!n.literal.isUnterminated}else{const n=e.template;Nt.assert(14===n.kind),a=!!n.isUnterminated}else if(167===e.kind)i=xN(e,t);else if(zu(e)){if(a=e.attributes.end===e.end,a)return!0;i=0===s?n.length:1,o=0===n.length?o:1,s=Math.min(s,1)}else{if(!e.arguments)return Nt.assert(211===e.kind),0===LD(t);{i=r?n.length+1:n.length,a=e.arguments.end===e.end;const o=tN(n);if(o>=0)return o>=LD(t)&&(ID(t)||o<AD(t))}}if(!ID(t)&&i>o)return!1;if(a||i>=s)return!0;for(let c=i;c<s;c++){if(131072&PL(TD(t,c),Ih(e)&&!F?iN:rN).flags)return!1}return!0}function oN(e,n){const t=S(e.typeParameters),r=hp(e.typeParameters);return!ce(n)||n.length>=r&&n.length<=t}function sN(e){return lN(e,0,!1)}function cN(e){return lN(e,0,!1)||lN(e,1,!1)}function lN(e,n,t){if(524288&e.flags){const r=h_(e);if(t||0===r.properties.length&&0===r.indexInfos.length){if(0===n&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===n&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function dN(e,n,t,r){const i=rA(e.typeParameters,e,0,r),a=wD(n),o=t&&(a&&262144&a.flags?t.nonFixingMapper:t.mapper);return WS(o?hE(n,o):n,e,((e,n)=>{IA(i.inferences,e,n)})),t||YS(n,e,((e,n)=>{IA(i.inferences,e,n,128)})),Up(e,BA(i),Ih(n.declaration))}function uN(e){if(!e)return Wn;const n=ZO(e);return Hl(e.parent)?Qx(n):jl(e.parent)?eS(n):n}function _N(e,n,t,r,i){if(zu(e))return function(e,n,t,r){const i=oI(n,e),a=DO(e.attributes,i,r,t);return IA(r.inferences,a,i),BA(r)}(e,n,r,i);if(167!==e.kind){const t=N(n.typeParameters,(e=>!!D_(e))),r=Xk(e,t?8:0);if(r){const a=Rp(n);if(dA(a)){const o=aI(e);if(!(!t&&Xk(e,8)!==r)){const e=lA(function(e,n=0){return e&&iA(W(e.inferences,cA),e.signature,e.flags|n,e.compareTypes)}(o,1)),n=AE(r,e),t=sN(n),s=t&&t.typeParameters?Jp(Hp(t,t.typeParameters)):n;IA(i.inferences,s,a,128)}const s=rA(n.typeParameters,n,i.flags),c=AE(r,o&&o.returnMapper);IA(s.inferences,c,a),i.returnMapper=ce(s.inferences,WO)?lA(function(e){const n=j(e.inferences,WO);return n.length?iA(W(n,cA),e.signature,e.flags,e.compareTypes):void 0}(s)):void 0}}}const a=RD(n),o=a?Math.min(AD(n)-1,t.length):t.length;if(a&&262144&a.flags){const e=D(i.inferences,(e=>e.typeParameter===a));e&&(e.impliedArity=M(t,nN,o)<0?t.length-o:void 0)}const s=kp(n);if(s&&dA(s)){const n=bN(e);IA(i.inferences,uN(n),s)}for(let c=0;c<o;c++){const e=t[c];if(229!==e.kind&&!(32&r&&bA(e))){const t=TD(n,c);if(dA(t)){const n=DO(e,t,i,r);IA(i.inferences,n,t)}}}if(a&&dA(a)){const e=hN(t,o,t.length,a,i,r);IA(i.inferences,e,a)}return BA(i)}function pN(e){return 1048576&e.flags?BL(e,pN):1&e.flags||xx(k_(e)||e)?e:Vx(e)?ig(bf(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):ig([e],[8])}function hN(e,n,t,r,i,a){if(n>=t-1){const n=e[t-1];if(nN(n))return pN(234===n.kind?n.type:DO(n.expression,r,i,a))}const o=[],s=[],c=[],l=x_(r);for(let d=n;d<t;d++){const t=e[d];if(nN(t)){const e=234===t.kind?t.type:ZO(t.expression);Ax(e)?(o.push(e),s.push(8)):(o.push(kP(33,e,An,227===t.kind?t.expression:t)),s.push(4))}else{const e=Lv(r,kb(d-n),256),c=DO(t,e,i,a),u=l||yO(e,406978556);o.push(u?Sb(c):Fx(c)),s.push(1)}234===t.kind&&t.tupleNameSource&&c.push(t.tupleNameSource)}return ig(o,s,l,S(c)===S(o)?c:void 0)}function gN(e,n,t,r){const i=Ih(e.declaration),a=e.typeParameters,o=Ep(W(n,Fb),a,hp(a),i);let s;for(let c=0;c<n.length;c++){Nt.assert(void 0!==a[c],"Should not call checkTypeArguments with too many type arguments");const e=T_(a[c]);if(e){const i=t&&r?()=>NT(void 0,Wo.Type_0_does_not_satisfy_the_constraint_1):void 0,l=r||Wo.Type_0_does_not_satisfy_the_constraint_1;s||(s=rE(a,o));const d=o[c];if(!$E(d,nu(AE(e,s),d),t?n[c]:void 0,l,i))return}}return o}function yN(e){if(zI(e.tagName))return 2;const n=G_(ZO(e.tagName));return S(Y_(n,1))?0:S(Y_(n,0))?1:2}function vN(e,n,t,r,a,o,s){const c={errors:void 0,skipLogging:!0};if(zu(e))return function(e,n,t,r,i,a,o){const s=oI(n,e),c=DO(e.attributes,s,void 0,r);return function(){var n;if(aw(e))return!0;const t=uw(e)||dw(e)&&!zI(e.tagName)?ZO(e.tagName):void 0;if(!t)return!0;const r=Y_(t,0);if(!S(r))return!0;const a=bB(e);if(!a)return!0;const s=No(a,111551,!0,!1,e);if(!s)return!0;const c=Y_(Sl(s),0);if(!S(c))return!0;let l=!1,d=0;for(const e of c){const n=Y_(TD(e,0),0);if(S(n))for(const e of n){if(l=!0,ID(e))return!0;const n=AD(e);n>d&&(d=n)}}if(!l)return!0;let u=1/0;for(const e of r){const n=LD(e);n<u&&(u=n)}if(u<=d)return!0;if(i){const t=qf(e.tagName,Wo.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,zf(e.tagName),u,zf(a),d),r=null==(n=_G(e.tagName))?void 0:n.valueDeclaration;r&&cS(t,qf(r,Wo._0_is_declared_here,zf(e.tagName))),o&&o.skipLogging&&(o.errors||(o.errors=[])).push(t),o.skipLogging||Ji.add(t)}return!1}()&&eT(c,s,t,i?e.tagName:void 0,e.attributes,void 0,a,o)}(e,t,r,a,o,s,c)?void 0:(Nt.assert(!o||!!c.errors,"jsx should have errors when reporting errors"),c.errors||i);const l=kp(t);if(l&&l!==Wn&&!(Gk(e)||Fk(e)&&ah(e.expression))){const n=bN(e),t=uN(n),a=o?n||e:void 0,d=Wo.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!LT(t,l,r,a,d,s,c))return Nt.assert(!o||!!c.errors,"this parameter should have errors when reporting errors"),c.errors||i}const d=Wo.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,u=RD(t),_=u?Math.min(AD(t)-1,n.length):n.length;for(let f=0;f<_;f++){const e=n[f];if(229!==e.kind){const n=TD(t,f),l=DO(e,n,void 0,a),u=4&a?xS(l):l;if(!eT(u,n,r,o?e:void 0,e,d,s,c))return Nt.assert(!o||!!c.errors,"parameter should have errors when reporting errors"),p(e,u,n),c.errors||i}}if(u){const t=hN(n,_,n.length,u,void 0,a),s=n.length-_,l=o?0===s?e:1===s?n[_]:SS(EN(e,t),n[_].pos,n[n.length-1].end):void 0;if(!LT(t,u,r,l,d,void 0,c))return Nt.assert(!o||!!c.errors,"rest parameter should have errors when reporting errors"),p(l,t,u),c.errors||i}return;function p(e,n,t){if(e&&o&&c.errors&&c.errors.length){if(SM(t))return;const i=SM(n);i&&TT(i,t,r)&&cS(c.errors[0],qf(e,Wo.Did_you_forget_to_use_await))}}}function bN(e){const n=210===e.kind?e.expression:212===e.kind?e.tag:void 0;if(n){const e=qR(n);if(iT(e))return e.expression}}function EN(e,n,t,r){const i=YN.createSyntheticExpression(n,t,r);return VN(i,e),CS(i,e),i}function TN(e){if(212===e.kind){const n=e.template,t=[EN(n,Tr||(Tr=Pm("TemplateStringsArray",0,!0)||bt))];return 225===n.kind&&A(n.templateSpans,(e=>{t.push(e.expression)})),t}if(167===e.kind)return function(e){const n=e.expression,t=YD(e);if(t){const e=[];for(const r of t.parameters){const t=Sl(r);e.push(EN(n,t))}return e}return Nt.fail()}(e);if(zu(e))return e.attributes.properties.length>0||uw(e)&&e.parent.children.length>0?[e.attributes]:i;const n=e.arguments||i,t=tN(n);if(t>=0){const e=n.slice(0,t);for(let r=t;r<n.length;r++){const t=n[r],i=227===t.kind&&(ui?ZO(t.expression):OO(t.expression));i&&Vx(i)?A(bf(i),((n,r)=>{var a;const o=i.target.elementFlags[r],s=EN(t,4&o?Mh(n):n,!!(12&o),null==(a=i.target.labeledElementDeclarations)?void 0:a[r]);e.push(s)})):e.push(t)}return e}return n}function xN(e,n){return x.experimentalDecorators?function(e,n){switch(e.parent.kind){case 260:case 228:return 1;case 169:return bb(e.parent)?3:2;case 171:case 174:case 175:return 0===L||n.parameters.length<=2?2:3;case 166:return 3;default:return Nt.fail()}}(e,n):2}function AN(e,n){let t,r;const i=Dp(e);if(Mk(e.expression)){const a=am(i,e.expression.name);t=a.start,r=n?a.length:e.end-t}else{const a=am(i,e.expression);t=a.start,r=n?a.length:e.end-t}return{start:t,length:r,sourceFile:i}}function LN(e,n,t,r,i,a){if(Fk(e)){const{sourceFile:o,start:s,length:c}=AN(e);return"message"in n?kT(o,s,c,n,t,r,i,a):em(o,n)}return"message"in n?qf(e,n,t,r,i,a):Yf(Dp(e),e,n)}function CN(e,n,t,r){var i;const a=tN(t);if(a>-1)return qf(t[a],Wo.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let o,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY;for(const m of n){const e=LD(m),n=AD(m);e<s&&(s=e,o=m),c=Math.max(c,n),e<t.length&&e>l&&(l=e),t.length<n&&n<d&&(d=n)}const u=ce(n,ID),_=u?s:s<c?s+"-"+c:s,p=!u&&1===_&&0===t.length&&function(e){if(!Fk(e)||!IC(e.expression))return!1;const n=Fa(e.expression,e.expression.escapedText,111551,void 0,void 0,!1),t=null==n?void 0:n.valueDeclaration;if(!t||!qC(t)||!BS(t.parent)||!Gk(t.parent.parent)||!IC(t.parent.parent.expression))return!1;const r=Jm(!1);return!!r&&_G(t.parent.parent.expression,!0)===r}(e);if(p&&Ih(e))return LN(e,Wo.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);const f=JC(e)?u?Wo.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:Wo.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:u?Wo.Expected_at_least_0_arguments_but_got_1:p?Wo.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:Wo.Expected_0_arguments_but_got_1;if(s<t.length&&t.length<c){if(r){let n=NT(void 0,Wo.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,t.length,l,d);return n=NT(n,r),LN(e,n)}return LN(e,Wo.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,t.length,l,d)}if(t.length<s){let n;if(r){let i=NT(void 0,f,_,t.length);i=NT(i,r),n=LN(e,i)}else n=LN(e,f,_,t.length);const a=null==(i=null==o?void 0:o.declaration)?void 0:i.parameters[o.thisParameter?t.length+1:t.length];if(a){return cS(n,qf(a,Jd(a.name)?Wo.An_argument_matching_this_binding_pattern_was_not_provided:l_(a)?Wo.Arguments_for_the_rest_parameter_0_were_not_provided:Wo.An_argument_for_0_was_not_provided,a.name?Jd(a.name)?void 0:Uc(Jb(a.name)):t.length))}return n}{const n=gA.createNodeArray(t.slice(c)),i=Me(n).pos;let a=Ge(n).end;if(a===i&&a++,SS(n,i,a),r){let i=NT(void 0,f,_,t.length);return i=NT(i,r),$f(Dp(e),n,i)}return Jf(Dp(e),n,f,_,t.length)}}function kN(e,n,t,r,a,o){const s=212===e.kind,c=167===e.kind,l=zu(e),d=!b&&!t;let u;c||_m(e)||(u=e.typeArguments,(s||l||106!==e.expression.kind)&&A(u,zF));const _=t||[];if(function(e,n,t){let r,i,a,o,s=0,c=-1;Nt.assert(!n.length);for(const l of e){const e=l.declaration&&Qo(l.declaration),d=l.declaration&&l.declaration.parent;i&&e!==i?(a=s=n.length,r=d):r&&d===r?a+=1:(r=d,a=s),i=e,cB(l)?(c++,o=c,s++):o=a,n.splice(o,0,t?du(l,t):l)}}(n,_,a),!_.length)return d&&Ji.add(LN(e,Wo.Call_target_does_not_contain_any_signatures)),eN(e);const p=TN(e),f=1===_.length&&!_[0].typeParameters;let m,h,g,y,v=c||f||!ce(p,wE)?0:4;v|=32&r;const E=!!(16&r)&&210===e.kind&&e.arguments.hasTrailingComma;if(_.length>1&&(y=x(_,$i,f,E)),y||(y=x(_,Zi,f,E)),y)return y;if(y=function(e,n,t,r,i){return Nt.assert(n.length>0),YF(e),r||1===n.length||n.some((e=>!!e.typeParameters))?function(e,n,t,r){const i=function(e,n){let t=-1,r=-1;for(let i=0;i<e.length;i++){const a=e[i],o=AD(a);if(ID(a)||o>=n)return i;o>r&&(r=o,t=i)}return t}(n,void 0===me?t.length:me),a=n[i],{typeParameters:o}=a;if(!o)return a;const s=QR(e)?e.typeArguments:void 0,c=s?Kp(a,function(e,n,t){const r=e.map(pG);for(;r.length>n.length;)r.pop();for(;r.length<n.length;)r.push(D_(n[r.length])||T_(n[r.length])||GA(t));return r}(s,o,Ih(e))):function(e,n,t,r,i){const a=rA(n,t,Ih(e)?2:0),o=_N(e,t,r,12|i,a);return Kp(t,o)}(e,o,a,t,r);return n[i]=c,c}(e,n,t,i):function(e){const n=ee(e,(e=>e.thisParameter));let t;n.length&&(t=wN(n,n.map(hD)));const{min:r,max:i}=lS(e,IN),a=[];for(let c=0;c<i;c++){const n=ee(e,(e=>sB(e)?c<e.parameters.length-1?e.parameters[c]:Ge(e.parameters):c<e.parameters.length?e.parameters[c]:void 0));Nt.assert(0!==n.length),a.push(wN(n,ee(e,(e=>xD(e,c)))))}const o=ee(e,(e=>sB(e)?Ge(e.parameters):void 0));let s=0;if(0!==o.length){const n=Mh(Pg(ee(e,Bp),2));a.push(RN(o,n)),s|=1}e.some(cB)&&(s|=2);return ru(e[0].declaration,void 0,t,a,hy(e.map(Rp)),void 0,r,s)}(n)}(e,_,p,!!t,r),Ra(e).resolvedSignature=y,d)if(m)if(1===m.length||m.length>3){const n=m[m.length-1];let t;m.length>3&&(t=NT(t,Wo.The_last_overload_gave_the_following_error),t=NT(t,Wo.No_overload_matches_this_call)),o&&(t=NT(t,o));const r=vN(e,p,n,Zi,0,!0,(()=>t));if(r)for(const e of r)n.declaration&&m.length>3&&cS(e,qf(n.declaration,Wo.The_last_overload_is_declared_here)),T(n,e),Ji.add(e);else Nt.fail("No error for last overload signature")}else{const n=[];let t=0,r=Number.MAX_VALUE,i=0,a=0;for(const o of m){const s=vN(e,p,o,Zi,0,!0,(()=>NT(void 0,Wo.Overload_0_of_1_2_gave_the_following_error,a+1,_.length,Bs(o))));s?(s.length<=r&&(r=s.length,i=a),t=Math.max(t,s.length),n.push(s)):Nt.fail("No error for 3 or fewer overload signatures"),a++}const s=t>1?n[i]:J(n);Nt.assert(s.length>0,"No errors reported for 3 or fewer overload signatures");let c=NT(W(s,nm),Wo.No_overload_matches_this_call);o&&(c=NT(c,o));const l=[...X(s,(e=>e.relatedInformation))];let d;if(N(s,(e=>e.start===s[0].start&&e.length===s[0].length&&e.file===s[0].file))){const{file:e,start:n,length:t}=s[0];d={file:e,start:n,length:t,code:c.code,category:c.category,messageText:c,relatedInformation:l}}else d=Yf(Dp(e),e,c,l);T(m[0],d),Ji.add(d)}else if(h)Ji.add(CN(e,[h],p,o));else if(g)gN(g,e.typeArguments,!0,o);else{const t=j(n,(e=>oN(e,u)));0===t.length?Ji.add(function(e,n,t,r){const i=t.length;if(1===n.length){const a=n[0],o=hp(a.typeParameters),s=S(a.typeParameters);if(r){let n=NT(void 0,Wo.Expected_0_type_arguments_but_got_1,o<s?o+"-"+s:o,i);return n=NT(n,r),$f(Dp(e),t,n)}return Jf(Dp(e),t,Wo.Expected_0_type_arguments_but_got_1,o<s?o+"-"+s:o,i)}let a=-1/0,o=1/0;for(const s of n){const e=hp(s.typeParameters),n=S(s.typeParameters);e>i?o=Math.min(o,e):n<i&&(a=Math.max(a,n))}if(a!==-1/0&&o!==1/0){if(r){let n=NT(void 0,Wo.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,a,o);return n=NT(n,r),$f(Dp(e),t,n)}return Jf(Dp(e),t,Wo.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,a,o)}if(r){let n=NT(void 0,Wo.Expected_0_type_arguments_but_got_1,a===-1/0?o:a,i);return n=NT(n,r),$f(Dp(e),t,n)}return Jf(Dp(e),t,Wo.Expected_0_type_arguments_but_got_1,a===-1/0?o:a,i)}(e,n,u,o)):Ji.add(CN(e,t,p,o))}return y;function T(e,n){var t,r;const a=m,o=h,s=g,c=(null==(r=null==(t=e.declaration)?void 0:t.symbol)?void 0:r.declarations)||i,l=c.length>1?D(c,(e=>Rd(e)&&jp(e.body))):void 0;if(l){const e=xp(l),t=!e.typeParameters;x([e],Zi,t)&&cS(n,qf(l,Wo.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}m=a,h=o,g=s}function x(n,t,i,a=!1){if(m=void 0,h=void 0,g=void 0,i){const r=n[0];if(ce(u)||!aN(e,p,r,a))return;return vN(e,p,r,t,0,!1,void 0)?void(m=[r]):r}for(let o=0;o<n.length;o++){const i=n[o];if(!oN(i,u)||!aN(e,p,i,a))continue;let s,c;if(i.typeParameters){let n;if(ce(u)){if(n=gN(i,u,!1),!n){g=i;continue}}else c=rA(i.typeParameters,i,Ih(e)?2:0),n=_N(e,i,p,8|v,c),v|=4&c.flags?8:0;if(s=Up(i,n,Ih(i.declaration),c&&c.inferredTypeParameters),RD(i)&&!aN(e,p,s,a)){h=s;continue}}else s=i;if(!vN(e,p,s,t,v,!1,void 0)){if(v){if(v=32&r,c){if(s=Up(i,_N(e,i,p,v,c),Ih(i.declaration),c.inferredTypeParameters),RD(i)&&!aN(e,p,s,a)){h=s;continue}}if(vN(e,p,s,t,v,!1,void 0)){(m||(m=[])).push(s);continue}}return n[o]=s,s}(m||(m=[])).push(s)}}}function IN(e){const n=e.parameters.length;return sB(e)?n-1:n}function wN(e,n){return RN(e,Pg(n,2))}function RN(e,n){return TS(Me(e),n)}function NN(e){return!(!e.typeParameters||!rB(Rp(e)))}function DN(e,n,t,r){return uc(e)||uc(n)&&!!(262144&e.flags)||!t&&!r&&!(1048576&n.flags)&&!(131072&H_(n).flags)&&WE(e,Kt)}function ON(e,n,t){if(e.arguments&&L<1){const n=tN(e.arguments);n>=0&&_a(e.arguments[n],Wo.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let r=Zw(e.expression);if(r===qn)return Qr;if(r=G_(r),_c(r))return eN(e);if(uc(r))return e.typeArguments&&_a(e,Wo.Untyped_function_calls_may_not_accept_type_arguments),ZR(e);const i=Y_(r,1);if(i.length){if(!function(e,n){if(!n||!n.declaration)return!0;const t=n.declaration,r=xb(t,24);if(!r||173!==t.kind)return!0;const i=XE(t.parent.symbol),a=hd(t.parent.symbol);if(!cG(e,i)){const n=Xm(e);if(n&&16&r){const e=pG(n);if(PN(t.parent.symbol,e))return!0}return 8&r&&_a(e,Wo.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Us(a)),16&r&&_a(e,Wo.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Us(a)),!1}return!0}(e,i[0]))return eN(e);if(MN(i,(e=>!!(4&e.flags))))return _a(e,Wo.Cannot_create_an_instance_of_an_abstract_class),eN(e);const a=r.symbol&&XE(r.symbol);return a&&fb(a,256)?(_a(e,Wo.Cannot_create_an_instance_of_an_abstract_class),eN(e)):kN(e,i,n,t,0)}const a=Y_(r,0);if(a.length){const r=kN(e,a,n,t,0);return Y||(r.declaration&&!JN(r.declaration)&&Rp(r)!==Wn&&_a(e,Wo.Only_a_void_function_can_be_called_with_the_new_keyword),kp(r)===Wn&&_a(e,Wo.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return GN(e.expression,r,1),eN(e)}function MN(e,n){return gn(e)?ce(e,(e=>MN(e,n))):1048576===e.compositeKind?ce(e.compositeSignatures,n):n(e)}function PN(e,n){const t=td(n);if(!S(t))return!1;const r=t[0];if(2097152&r.flags){const n=Lu(r.types);let t=0;for(const i of r.types){if(!n[t]&&3&YE(i)){if(i.symbol===e)return!0;if(PN(e,i))return!0}t++}return!1}return r.symbol===e||PN(e,r)}function FN(e,n,t){let r;const i=0===t,a=NM(n),o=a&&Y_(a,t).length>0;if(1048576&n.flags){const e=n.types;let a=!1;for(const o of e){if(0!==Y_(o,t).length){if(a=!0,r)break}else if(r||(r=NT(r,i?Wo.Type_0_has_no_call_signatures:Wo.Type_0_has_no_construct_signatures,Us(o)),r=NT(r,i?Wo.Not_all_constituents_of_type_0_are_callable:Wo.Not_all_constituents_of_type_0_are_constructable,Us(n))),a)break}a||(r=NT(void 0,i?Wo.No_constituent_of_type_0_is_callable:Wo.No_constituent_of_type_0_is_constructable,Us(n))),r||(r=NT(r,i?Wo.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Wo.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Us(n)))}else r=NT(r,i?Wo.Type_0_has_no_call_signatures:Wo.Type_0_has_no_construct_signatures,Us(n));let s=i?Wo.This_expression_is_not_callable:Wo.This_expression_is_not_constructable;if(Fk(e.parent)&&0===e.parent.arguments.length){const{resolvedSymbol:n}=Ra(e);n&&32768&n.flags&&(s=Wo.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:NT(r,s),relatedMessage:o?Wo.Did_you_forget_to_use_await:void 0}}function GN(e,n,t,r){const{messageChain:i,relatedMessage:a}=FN(e,n,t),o=Yf(Dp(e),e,i);if(a&&cS(o,qf(e,a)),Fk(e.parent)){const{start:n,length:t}=AN(e.parent,!0);o.start=n,o.length=t}Ji.add(o),BN(n,t,r?cS(o,r):o)}function BN(e,n,t){if(!e.symbol)return;const r=wa(e.symbol).originatingImport;if(r&&!pm(r)){const i=Y_(Sl(wa(e.symbol).target),n);if(!i||!i.length)return;cS(t,qf(r,Wo.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function UN(e,n,t){const r=ZO(e.expression),i=G_(r);if(_c(i))return eN(e);const a=Y_(i,0),o=Y_(i,1).length;if(DN(r,i,a.length,o))return ZR(e);if(s=e,(c=a).length&&N(c,(e=>0===e.minArgumentCount&&!sB(e)&&e.parameters.length<xN(s,e)))&&!Vk(e.expression)){const n=sf(e.expression,!1);return _a(e,Wo._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,n),eN(e)}var s,c;const l=function(e){switch(e.parent.kind){case 260:case 228:return Wo.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 166:return Wo.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 169:return Wo.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 171:case 174:case 175:return Wo.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return Nt.fail()}}(e);if(!a.length){const n=FN(e.expression,i,0),t=NT(n.messageChain,l),r=Yf(Dp(e.expression),e.expression,t);return n.relatedMessage&&cS(r,qf(e.expression,n.relatedMessage)),Ji.add(r),BN(i,0,r),eN(e)}return kN(e,a,n,t,0,l)}function KN(e,n){const t=ow(e),r=t&&qo(t),i=r&&Da(r,XG.Element,788968),a=i&&se.symbolToEntityName(i,788968,e),o=gA.createFunctionTypeNode(void 0,[gA.createParameterDeclaration(void 0,void 0,"props",void 0,se.typeToTypeNode(n,e))],a?gA.createTypeReferenceNode(a,void 0):gA.createKeywordTypeNode(131)),s=va(1,"props");return s.links.type=n,ru(o,void 0,void 0,[s],i?hd(i):mn,void 0,1,0)}function WN(e,n,t){if(zI(e.tagName)){const n=vw(e),t=KN(e,n);return ZE(DO(e.attributes,oI(t,e),void 0,0),n,e.tagName,e.attributes),S(e.typeArguments)&&(A(e.typeArguments,zF),Ji.add(Jf(Dp(e),e.typeArguments,Wo.Expected_0_type_arguments_but_got_1,0,S(e.typeArguments)))),t}const r=ZO(e.tagName),i=G_(r);if(_c(i))return eN(e);const a=pw(r,e);return DN(r,i,a.length,0)?ZR(e):0===a.length?(_a(e.tagName,Wo.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,sf(e.tagName)),eN(e)):kN(e,a,n,t,0)}function zN(e,n,t){switch(e.kind){case 210:return function(e,n,t){if(106===e.expression.kind){const r=RC(e.expression);if(uc(r)){for(const n of e.arguments)ZO(n);return Xr}if(!_c(r)){const i=py(Xm(e));if(i)return kN(e,Ql(r,i.typeArguments,i),n,t,0)}return ZR(e)}let r,i=ZO(e.expression);if(Vl(e)){const n=rS(i,e.expression);r=n===i?0:Wl(e)?16:8,i=n}else r=0;if(i=aR(i,e.expression,rR),i===qn)return Qr;const a=G_(i);if(_c(a))return eN(e);const o=Y_(a,0),s=Y_(a,1).length;if(DN(i,a,o.length,s))return!_c(i)&&e.typeArguments&&_a(e,Wo.Untyped_function_calls_may_not_accept_type_arguments),ZR(e);if(!o.length){if(s)_a(e,Wo.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Us(i));else{let n;if(1===e.arguments.length){const t=Dp(e).text;Cs(t.charCodeAt(Ns(t,e.expression.end,!0)-1))&&(n=qf(e.expression,Wo.Are_you_missing_a_semicolon))}GN(e.expression,a,0,n)}return eN(e)}return 8&t&&!e.typeArguments&&o.some(NN)?(KO(e,t),$r):o.some((e=>Ih(e.declaration)&&!!cl(e.declaration)))?(_a(e,Wo.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Us(i)),eN(e)):kN(e,o,n,t,r)}(e,n,t);case 211:return ON(e,n,t);case 212:return function(e,n,t){const r=ZO(e.tag),i=G_(r);if(_c(i))return eN(e);const a=Y_(i,0),o=Y_(i,1).length;if(DN(r,i,a.length,o))return ZR(e);if(!a.length){if(Dk(e.parent)){const n=qf(e.tag,Wo.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Ji.add(n),eN(e)}return GN(e.tag,i,0),eN(e)}return kN(e,a,n,t,0)}(e,n,t);case 167:return UN(e,n,t);case 283:case 282:return WN(e,n,t)}throw Nt.assertNever(e,"Branch in 'resolveSignature' should be unreachable.")}function qN(e,n,t){const r=Ra(e),i=r.resolvedSignature;if(i&&i!==$r&&!n)return i;r.resolvedSignature=$r;const a=zN(e,n,t||0);return a!==$r&&(r.resolvedSignature=di===ui?a:i),a}function JN(e){var n;if(!e||!Ih(e))return!1;const t=OI(e)||jk(e)?e:(NI(e)||Sw(e))&&e.initializer&&jk(e.initializer)?e.initializer:void 0;if(t){if(cl(e))return!0;if(Sw($g(t.parent)))return!1;const r=Qo(t);return!!(null==(n=null==r?void 0:r.members)?void 0:n.size)}return!1}function XN(e,n){var t,r;if(n){const i=wa(n);if(!i.inferredClassSymbol||!i.inferredClassSymbol.has(eB(e))){const a=up(e)?e:Sa(e);return a.exports=a.exports||dp(),a.members=a.members||dp(),a.flags|=32&n.flags,(null==(t=n.exports)?void 0:t.size)&&ka(a.exports,n.exports),(null==(r=n.members)?void 0:r.size)&&ka(a.members,n.members),(i.inferredClassSymbol||(i.inferredClassSymbol=new Map)).set(eB(a),a),a}return i.inferredClassSymbol.get(eB(e))}}function $N(e,n){if(!e.parent)return;let t,r;if(NI(e.parent)&&e.parent.initializer===e){if(!Ih(e)&&(!dm(e.parent)||!Rd(e)))return;t=e.parent.name,r=e.parent}else if(Yk(e.parent)){const i=e.parent,a=e.parent.operatorToken.kind;if(63!==a||!n&&i.right!==e){if((56===a||60===a)&&(NI(i.parent)&&i.parent.initializer===i?(t=i.parent.name,r=i.parent):Yk(i.parent)&&63===i.parent.operatorToken.kind&&(n||i.parent.right===i)&&(t=i.parent.left,r=t),!t||!og(t)||!Xh(t,i.left)))return}else t=i.left,r=t}else n&&OI(e)&&(t=e.name,r=e);return r&&t&&(n||zh(e,Qb(t)))?Zo(r):void 0}function QN(e,n){if(e.declaration&&268435456&e.declaration.flags){const o=ZN(n),s=$b(dh(n));t=o,r=e.declaration,i=s,a=Bs(e),ha(r,i?qf(t,Wo.The_signature_0_of_1_is_deprecated,a,i):qf(t,Wo._0_is_deprecated,a))}var t,r,i,a}function ZN(e){switch((e=ey(e)).kind){case 210:case 167:case 211:return ZN(e.expression);case 212:return ZN(e.tag);case 283:case 282:return ZN(e.tagName);case 209:return e.argumentExpression;case 208:return e.name;case 180:const n=e;return KC(n.typeName)?n.typeName.right:n;default:return e}}function eD(e){if(!Fk(e))return!1;let n=e.expression;if(Mk(n)&&"for"===n.name.escapedText&&(n=n.expression),!IC(n)||"Symbol"!==n.escapedText)return!1;const t=Hm(!1);return!!t&&t===Fa(n,"Symbol",111551,void 0,void 0,!1)}function nD(e){if(function(e){if(x.verbatimModuleSyntax&&1===k)return QB(e,Wo.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(5===k)return QB(e,Wo.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(e.typeArguments)return QB(e,Wo.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const n=e.arguments;if(99!==k&&199!==k&&100!==k&&(kB(n),n.length>1)){return QB(n[1],Wo.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(0===n.length||n.length>2)return QB(e,Wo.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);const t=D(n,eI);if(t)return QB(t,Wo.Argument_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return ZD(e,un);const n=e.arguments[0],t=OO(n),r=e.arguments.length>1?OO(e.arguments[1]):void 0;for(let a=2;a<e.arguments.length;++a)OO(e.arguments[a]);if((32768&t.flags||65536&t.flags||!WE(t,Dn))&&_a(n,Wo.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Us(t)),r){const n=jm(!0);n!==bt&&$E(r,Yx(n,32768),e.arguments[1])}const i=Oo(e,n);if(i){const t=Uo(i,n,!0,!1);if(t)return ZD(e,rD(Sl(t),t,i,n)||iD(Sl(t),t,i,n))}return ZD(e,un)}function tD(e,n,t){const r=dp(),a=va(2097152,"default");return a.parent=n,a.links.nameType=Cb("default"),a.links.aliasTarget=bo(e),r.set("default",a),vs(t,r,i,i,i)}function rD(e,n,t,r){if(io(r)&&e&&!_c(e)){const r=e;if(!r.defaultOnlyType){const e=tD(n,t);r.defaultOnlyType=e}return r.defaultOnlyType}}function iD(e,n,t,r){var i;if(R&&e&&!_c(e)){const a=e;if(!a.syntheticType){if(co(null==(i=t.declarations)?void 0:i.find(Iw),t,!1,r)){const r=va(2048,"__type"),i=tD(n,t,r);r.links.type=i,a.syntheticType=RI(e)?ob(e,i,r,0,!1):i}else a.syntheticType=e}return a.syntheticType}return e}function aD(e){if(!Oh(e,!0))return!1;if(!IC(e.expression))return Nt.fail();const n=Fa(e.expression,e.expression.escapedText,111551,void 0,void 0,!0);if(n===ge)return!0;if(2097152&n.flags)return!1;const t=16&n.flags?259:3&n.flags?257:0;if(0!==t){const e=cp(n,t);return!!e&&!!(16777216&e.flags)}return!1}function oD(e){(function(e){if(e.questionDotToken||32&e.flags)return QB(e.template,Wo.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);return!1})(e)||NB(e,e.typeArguments),L<2&&SB(e,262144);const n=qN(e);return QN(n,e),Rp(n)}function sD(e){switch(e.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 206:case 207:case 225:return!0;case 214:return sD(e.expression);case 221:const n=e.operator,t=e.operand;return 40===n&&(8===t.kind||9===t.kind)||39===n&&8===t.kind;case 208:case 209:const r=ey(e.expression),i=qb(r)?No(r,111551,!0):void 0;return!!(i&&384&i.flags)}return!1}function cD(e,n,t,r){let i=ZO(t,r);if(ql(n))return sD(t)||_a(t,Wo.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Sb(i);zF(n),i=xS(Mx(i));const a=Fb(n);return _c(a)||l((()=>{const n=DS(i);qE(a,n)||uT(i,a,e,Wo.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})),a}function lD(e){return 32&e.flags?function(e){const n=ZO(e.expression),t=rS(n,e.expression);return tS(Qx(t),e,t!==n)}(e):Qx(ZO(e.expression))}function dD(e){OB(e),A(e.typeArguments,zF);return uD(230===e.kind?ZO(e.expression):Jv(e.exprName)?LC(e.exprName):ZO(e.exprName),e)}function uD(e,n){const t=n.typeArguments;if(e===qn||_c(e)||!ce(t))return e;let r,i=!1;const a=function e(t){let a=!1,o=!1;const c=l(t);i||(i=o),a&&!o&&(null!=r||(r=t));return c;function l(t){if(524288&t.flags){const e=h_(t),r=s(e.callSignatures),i=s(e.constructSignatures);if(a||(a=0!==e.callSignatures.length||0!==e.constructSignatures.length),o||(o=0!==r.length||0!==i.length),r!==e.callSignatures||i!==e.constructSignatures){const t=vs(void 0,e.members,r,i,e.indexInfos);return t.objectFlags|=8388608,t.node=n,t}}else if(58982400&t.flags){const e=k_(t);if(e){const n=l(e);if(n!==e)return n}}else{if(1048576&t.flags)return BL(t,e);if(2097152&t.flags)return hy(q(t.types,l))}return t}}(e),o=i?r:e;return o&&Ji.add(Jf(Dp(n),t,Wo.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Us(o))),a;function s(e){return q(j(e,(e=>!!e.typeParameters&&oN(e,t))),(e=>{const n=gN(e,t,!0);return n?Up(e,n,Ih(e.declaration)):e}))}}function _D(e,n,t){const r=ZO(e,t),i=Fb(n);return _c(i)?i:(ZE(r,i,n,e,Wo.Type_0_does_not_satisfy_the_expected_type_1),r)}function pD(e){return function(e){const n=e.name.escapedText;switch(e.keywordToken){case 103:if("target"!==n)return QB(e.name,Wo._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,e.name.escapedText,ms(e.keywordToken),"target");break;case 100:if("meta"!==n)QB(e.name,Wo._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,e.name.escapedText,ms(e.keywordToken),"meta")}}(e),103===e.keywordToken?mD(e):100===e.keywordToken?function(e){100===k||199===k?99!==Dp(e).impliedNodeFormat&&_a(e,Wo.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):k<6&&4!==k&&_a(e,Wo.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const n=Dp(e);return Nt.assert(!!(4194304&n.flags),"Containing file is missing import meta node flag."),"meta"===e.name.escapedText?Fm():mn}(e):Nt.assertNever(e.keywordToken)}function fD(e){switch(e.keywordToken){case 100:return Vm();case 103:const n=mD(e);return _c(n)?mn:function(e){const n=va(0,"NewTargetExpression"),t=va(4,"target",8);t.parent=n,t.links.type=e;const r=dp([t]);return n.members=r,vs(n,r,i,i,i)}(n);default:Nt.assertNever(e.keywordToken)}}function mD(e){const n=nh(e);if(n){if(173===n.kind){return Sl(Qo(n.parent))}return Sl(Qo(n))}return _a(e,Wo.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),mn}function hD(e){const n=Sl(e);if(F){const t=e.valueDeclaration;if(t&&n_(t))return $x(n)}return n}function gD(e){return Nt.assert(IC(e.name)),e.name.escapedText}function yD(e,n,t){const r=e.parameters.length-(sB(e)?1:0);if(n<r)return e.parameters[n].escapedName;const i=e.parameters[r]||on,a=t||Sl(i);if(Vx(a)){const e=a.target.labeledElementDeclarations,t=n-r;return e&&gD(e[t])||i.escapedName+"_"+t}return i.escapedName}function vD(e){return e.valueDeclaration&&qC(e.valueDeclaration)&&IC(e.valueDeclaration.name)}function bD(e){return 199===e.kind||qC(e)&&e.name&&IC(e.name)}function ED(e,n){const t=e.parameters.length-(sB(e)?1:0);if(n<t){const t=e.parameters[n].valueDeclaration;return t&&bD(t)?t:void 0}const r=e.parameters[t]||on,i=Sl(r);if(Vx(i)){const e=i.target.labeledElementDeclarations;return e&&e[n-t]}return r.valueDeclaration&&bD(r.valueDeclaration)?r.valueDeclaration:void 0}function TD(e,n){return xD(e,n)||un}function xD(e,n){const t=e.parameters.length-(sB(e)?1:0);if(n<t)return hD(e.parameters[n]);if(sB(e)){const r=Sl(e.parameters[t]),i=n-t;if(!Vx(r)||r.target.hasRestElement||i<r.target.fixedLength)return Lv(r,kb(i))}}function SD(e,n){const t=AD(e),r=LD(e),i=wD(e);if(i&&n>=t-1)return n===t-1?i:Mh(Lv(i,On));const a=[],o=[],s=[];for(let c=n;c<t;c++){!i||c<t-1?(a.push(TD(e,c)),o.push(c<r?1:2)):(a.push(i),o.push(8));const n=ED(e,c);n&&s.push(n)}return ig(a,o,!1,S(s)===S(a)?s:void 0)}function AD(e){const n=e.parameters.length;if(sB(e)){const t=Sl(e.parameters[n-1]);if(Vx(t))return n+t.target.fixedLength-(t.target.hasRestElement?0:1)}return n}function LD(e,n){const t=1&n,r=2&n;if(r||void 0===e.resolvedMinArgumentCount){let n;if(sB(e)){const t=Sl(e.parameters[e.parameters.length-1]);if(Vx(t)){const r=M(t.target.elementFlags,(e=>!(1&e))),i=r<0?t.target.fixedLength:r;i>0&&(n=e.parameters.length-1+i)}}if(void 0===n){if(!t&&32&e.flags)return 0;n=e.minArgumentCount}if(r)return n;for(let t=n-1;t>=0;t--){if(131072&PL(TD(e,t),rN).flags)break;n=t}e.resolvedMinArgumentCount=n}return e.resolvedMinArgumentCount}function ID(e){if(sB(e)){const n=Sl(e.parameters[e.parameters.length-1]);return!Vx(n)||n.target.hasRestElement}return!1}function wD(e){if(sB(e)){const n=Sl(e.parameters[e.parameters.length-1]);if(!Vx(n))return n;if(n.target.hasRestElement)return mg(n,n.target.fixedLength)}}function RD(e){const n=wD(e);return!n||bx(n)||uc(n)||0!==(131072&H_(n).flags)?void 0:n}function DD(e){return MD(e,zn)}function MD(e,n){return e.parameters.length>0?TD(e,0):n}function PD(e,n){const t=wa(e);if(t.type)n&&Nt.assertEqual(t.type,n,"Parameter symbol already has a cached type which differs from newly assigned type");else{const r=e.valueDeclaration;t.type=n||(r?tl(r,!0):Sl(e)),r&&79!==r.name.kind&&(t.type===xn&&(t.type=nl(r.name)),FD(r.name,t.type))}}function FD(e,n){for(const t of e.elements)if(!tI(t)){const e=Ec(t,n);79===t.name.kind?wa(Qo(t)).type=e:FD(t.name,e)}}function BD(e){return uf(function(e){var n;return null!=(n=null!=Or?Or:Or=Pm("ClassDecoratorContext",1,e))?n:kt}(!0),[e])}function UD(e,n){return uf(function(e){var n;return null!=(n=null!=Mr?Mr:Mr=Pm("ClassMethodDecoratorContext",2,e))?n:kt}(!0),[e,n])}function VD(e,n){return uf(function(e){var n;return null!=(n=null!=Pr?Pr:Pr=Pm("ClassGetterDecoratorContext",2,e))?n:kt}(!0),[e,n])}function jD(e,n){return uf(function(e){var n;return null!=(n=null!=Fr?Fr:Fr=Pm("ClassSetterDecoratorContext",2,e))?n:kt}(!0),[e,n])}function HD(e,n){return uf(function(e){var n;return null!=(n=null!=Gr?Gr:Gr=Pm("ClassAccessorDecoratorContext",2,e))?n:kt}(!0),[e,n])}function KD(e,n){return uf(function(e){var n;return null!=(n=null!=jr?jr:jr=Pm("ClassFieldDecoratorContext",2,e))?n:kt}(!0),[e,n])}function WD(e,n,t){const r=hb(e),a=wC(e.name),o=a?Cb(Uc(e.name)):Ly(e.name),s=QC(e)?UD(n,t):nk(e)?VD(n,t):tk(e)?jD(n,t):Bd(e)?HD(n,t):YC(e)?KD(n,t):Nt.failBadSyntaxKind(e),c=function(e,n,t){const r=`${n?"p":"P"}${t?"s":"S"}${e.id}`;let a=Ye.get(r);if(!a){const o=dp();o.set("name",Ea("name",e)),o.set("private",Ea("private",n?Bn:Fn)),o.set("static",Ea("static",t?Bn:Fn)),a=vs(void 0,o,i,i,i),Ye.set(r,a)}return a}(o,a,r);return hy([s,c])}function zD(e,n){return uf(function(e){var n;return null!=(n=null!=Br?Br:Br=Pm("ClassAccessorDecoratorTarget",2,e))?n:kt}(!0),[e,n])}function qD(e,n){return uf(function(e){var n;return null!=(n=null!=Ur?Ur:Ur=Pm("ClassAccessorDecoratorResult",2,e))?n:kt}(!0),[e,n])}function JD(e,n,t){return MM(void 0,void 0,[ba("target",e),ba("context",n)],Pg([t,Wn]))}function XD(e){const{parent:n}=e,t=Ra(n);if(!t.decoratorSignature)switch(t.decoratorSignature=Xr,n.kind){case 260:case 228:{const e=Sl(Qo(n)),r=BD(e);t.decoratorSignature=JD(e,r,e);break}case 171:case 174:case 175:{const e=n;if(!Fd(e.parent))break;const r=QC(e)?Jp(xp(e)):pG(e),i=hb(e)?Sl(Qo(e.parent)):ad(Qo(e.parent)),a=nk(e)?FM(r):tk(e)?GM(r):r,o=WD(e,i,r),s=nk(e)?FM(r):tk(e)?GM(r):r;t.decoratorSignature=JD(a,o,s);break}case 169:{const e=n;if(!Fd(e.parent))break;const r=pG(e),i=hb(e)?Sl(Qo(e.parent)):ad(Qo(e.parent)),a=bb(e)?zD(i,r):An,o=WD(e,i,r),s=bb(e)?qD(i,r):function(e,n){return PM(void 0,ba("this",e),[ba("value",n)],n,void 0,1)}(i,r);t.decoratorSignature=JD(a,o,s);break}}return t.decoratorSignature===Xr?void 0:t.decoratorSignature}function YD(e){return I?function(e){const{parent:n}=e,t=Ra(n);if(!t.decoratorSignature)switch(t.decoratorSignature=Xr,n.kind){case 260:case 228:{const e=Sl(Qo(n)),r=ba("target",e);t.decoratorSignature=MM(void 0,void 0,[r],Pg([e,Wn]));break}case 166:{const e=n;if(!ek(e.parent)&&!(QC(e.parent)||tk(e.parent)&&Fd(e.parent.parent)))break;if(zv(e.parent)===e)break;const r=zv(e.parent)?e.parent.parameters.indexOf(e)-1:e.parent.parameters.indexOf(e);Nt.assert(r>=0);const i=ek(e.parent)?Sl(Qo(e.parent.parent)):gG(e.parent),a=ek(e.parent)?An:vG(e.parent),o=kb(r),s=ba("target",i),c=ba("propertyKey",a),l=ba("parameterIndex",o);t.decoratorSignature=MM(void 0,void 0,[s,c,l],Wn);break}case 171:case 174:case 175:case 169:{const e=n;if(!Fd(e.parent))break;const r=ba("target",gG(e)),i=ba("propertyKey",vG(e)),a=YC(e)?Wn:kh(pG(e));if(0===L||YC(n)&&!bb(n))t.decoratorSignature=MM(void 0,void 0,[r,i],Pg([a,Wn]));else{const n=ba("descriptor",kh(pG(e)));t.decoratorSignature=MM(void 0,void 0,[r,i,n],Pg([a,Wn]))}break}}return t.decoratorSignature===Xr?void 0:t.decoratorSignature}(e):XD(e)}function $D(e){const n=Wm(!0);return n!==kt?pf(n,[e=DM(IM(e))||xn]):xn}function QD(e){const n=zm(!0);return n!==kt?pf(n,[e=DM(IM(e))||xn]):xn}function ZD(e,n){const t=$D(n);return t===xn?(_a(e,pm(e)?Wo.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Wo.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),mn):(Jm(!0)||_a(e,pm(e)?Wo.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Wo.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),t)}function eO(e,n){if(!e.body)return mn;const t=ky(e),r=0!==(2&t),i=0!==(1&t);let a,o,s,c=Wn;if(238!==e.body.kind)a=OO(e.body,n&&-9&n),r&&(a=IM(LM(a,!1,e,Wo.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(i){const t=oO(e,n);t?t.length>0&&(a=Pg(t,2)):c=zn;const{yieldTypes:r,nextTypes:i}=function(e,n){const t=[],r=[],i=0!==(2&ky(e));return Lm(e.body,(e=>{const a=e.expression?ZO(e.expression,n):Ln;let o;if(Le(t,tO(e,a,un,i)),e.asteriskToken){const n=MP(a,i?19:17,e.expression);o=n&&n.nextType}else o=Xk(e,void 0);o&&Le(r,o)})),{yieldTypes:t,nextTypes:r}}(e,n);o=ce(r)?Pg(r,2):void 0,s=ce(i)?hy(i):void 0}else{const r=oO(e,n);if(!r)return 2&t?ZD(e,zn):zn;if(0===r.length)return 2&t?ZD(e,Wn):Wn;a=Pg(r,2)}if(a||o||s){if(o&&KS(e,o,3),a&&KS(e,a,1),s&&KS(e,s,2),a&&Nx(a)||o&&Nx(o)||s&&Nx(s)){const n=_I(e),t=n?n===xp(e)?i?void 0:a:Kk(Rp(n),e,void 0):void 0;i?(o=Ux(o,t,0,r),a=Ux(a,t,1,r),s=Ux(s,t,2,r)):a=function(e,n,t){e&&Nx(e)&&(e=Bx(e,n?t?AM(n):n:void 0));return e}(a,t,r)}o&&(o=DS(o)),a&&(a=DS(a)),s&&(s=DS(s))}return i?nO(o||zn,a||c,s||GC(2,e)||xn,r):r?$D(a||c):a||c}function nO(e,n,t,r){const i=r?ai:oi,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||xn,n=i.resolveIterationType(n,void 0)||xn,t=i.resolveIterationType(t,void 0)||xn,a===kt){const r=i.getGlobalIterableIteratorType(!1),a=r!==kt?UP(r,i):void 0,o=a?a.returnType:un,s=a?a.nextType:An;return WE(n,o)&&WE(s,t)?r!==kt?gh(r,[e]):(i.getGlobalIterableIteratorType(!0),bt):(i.getGlobalGeneratorType(!0),bt)}return gh(a,[e,n,t])}function tO(e,n,t,r){const i=e.expression||e,a=e.asteriskToken?kP(r?19:17,n,t,i):n;return r?NM(a,i,e.asteriskToken?Wo.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Wo.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a}function rO(e,n,t){let r=0;for(let i=0;i<t.length;i++){const a=i<e||i>=n?t[i]:void 0;r|=void 0!==a?HG.get(a)||32768:0}return r}function iO(e){const n=Ra(e);if(void 0===n.isExhaustive){n.isExhaustive=0;const t=function(e){if(218===e.expression.kind){const n=RL(e);if(!n)return!1;const t=I_(OO(e.expression.expression)),r=rO(0,0,n);return 3&t.flags?556800===(556800&r):!OL(t,(e=>(dL(e)&r)===r))}const n=OO(e.expression);if(!Ox(n))return!1;const t=wL(e);if(!t.length||ce(t,Rx))return!1;return r=BL(n,Sb),i=t,1048576&r.flags?!A(r.types,(e=>!G(i,e))):G(i,r);var r,i}(e);0===n.isExhaustive&&(n.isExhaustive=t)}else 0===n.isExhaustive&&(n.isExhaustive=!1);return n.isExhaustive}function aO(e){return e.endFlowNode&&tC(e.endFlowNode)}function oO(e,n){const t=ky(e),r=[];let i=aO(e),a=!1;if(Am(e.body,(o=>{const s=o.expression;if(s){let i=OO(s,n&&-9&n);2&t&&(i=IM(LM(i,!1,e,Wo.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&i.flags&&(a=!0),Le(r,i)}else i=!0})),0!==r.length||i||!a&&!function(e){switch(e.kind){case 215:case 216:return!0;case 171:return 207===e.parent.kind;default:return!1}}(e))return!(F&&r.length&&i)||JN(e)&&r.some((n=>n.symbol===e.symbol))||Le(r,An),r}function sO(e,n){return void l((function(){const t=ky(e),r=n&&nF(n,t);if(r&&yO(r,16385))return;if(170===e.kind||Vp(e.body)||238!==e.body.kind||!aO(e))return;const i=512&e.flags,a=eb(e)||e;if(r&&131072&r.flags)_a(a,Wo.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!i)_a(a,Wo.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(r&&F&&!WE(An,r))_a(a,Wo.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(x.noImplicitReturns){if(!r){if(!i)return;const n=Rp(xp(e));if(tF(e,n))return}_a(a,Wo.Not_all_code_paths_return_a_value)}}))}function cO(e,n){if(Nt.assert(171!==e.kind||Gm(e)),YF(e),jk(e)&&fP(e,e.name),n&&4&n&&wE(e)){if(!eb(e)&&!MS(e)){const t=mI(e);if(t&&dA(Rp(t))){const t=Ra(e);if(t.contextFreeType)return t.contextFreeType;const r=eO(e,n),a=ru(void 0,void 0,void 0,i,r,void 0,0,0),o=vs(e.symbol,E,[a],i,i);return o.objectFlags|=262144,t.contextFreeType=o}}return It}return RB(e)||215!==e.kind||PB(e),function(e,n){const t=Ra(e);if(!(64&t.flags)){const r=mI(e);if(!(64&t.flags)){t.flags|=64;const i=De(Y_(Sl(Qo(e)),0));if(!i)return;if(wE(e))if(r){const t=aI(e);let a;if(n&&2&n){!function(e,n,t){const r=e.parameters.length-(sB(e)?1:0);for(let i=0;i<r;i++){const r=e.parameters[i].valueDeclaration;if(r.type){const e=Qv(r);e&&IA(t.inferences,Fb(e),TD(n,i))}}}(i,r,t);const e=wD(r);e&&262144&e.flags&&(a=hE(r,t.nonFixingMapper))}a||(a=t?hE(r,t.mapper):r),function(e,n){if(n.typeParameters){if(e.typeParameters)return;e.typeParameters=n.typeParameters}if(n.thisParameter){const t=e.thisParameter;(!t||t.valueDeclaration&&!t.valueDeclaration.type)&&(t||(e.thisParameter=TS(n.thisParameter,void 0)),PD(e.thisParameter,Sl(n.thisParameter)))}const t=e.parameters.length-(sB(e)?1:0);for(let r=0;r<t;r++){const t=e.parameters[r];Qv(t.valueDeclaration)||PD(t,xD(n,r))}if(sB(e)){const r=Ge(e.parameters);(r.valueDeclaration?!Qv(r.valueDeclaration):65536&FE(r))&&PD(r,SD(n,t))}}(i,a)}else!function(e){e.thisParameter&&PD(e.thisParameter);for(const n of e.parameters)PD(n)}(i);if(r&&!Fp(e)&&!i.resolvedReturnType){const t=eO(e,n);i.resolvedReturnType||(i.resolvedReturnType=t)}rM(e)}}}(e,n),Sl(Qo(e))}function lO(e,n,t,r=!1){if(!WE(n,tt)){const i=r&&SM(n);return ma(e,!!i&&WE(i,tt),t),!1}return!0}function dO(e){if(!Fk(e))return!1;if(!ng(e))return!1;const n=OO(e.arguments[2]);if(dc(n,"value")){const e=J_(n,"writable"),t=e&&Sl(e);if(!t||t===Fn||t===Gn)return!0;if(e&&e.valueDeclaration&&Sw(e.valueDeclaration)){const n=ZO(e.valueDeclaration.initializer);if(n===Fn||n===Gn)return!0}return!1}return!J_(n,"set")}function uO(e){return!!(8&FE(e)||4&e.flags&&64&GE(e)||3&e.flags&&2&Fw(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||ce(e.declarations,dO))}function _O(e,n,t){var r,i;if(0===t)return!1;if(uO(n)){if(4&n.flags&&iT(e)&&108===e.expression.kind){const t=qm(e);if(!t||173!==t.kind&&!JN(t))return!0;if(n.valueDeclaration){const e=Yk(n.valueDeclaration),a=t.parent===n.valueDeclaration.parent,o=t===n.valueDeclaration.parent,s=e&&(null==(r=n.parent)?void 0:r.valueDeclaration)===t.parent,c=e&&(null==(i=n.parent)?void 0:i.valueDeclaration)===t;return!(a||o||s||c)}}return!0}if(iT(e)){const n=ey(e.expression);if(79===n.kind){const e=Ra(n).resolvedSymbol;if(2097152&e.flags){const n=Xa(e);return!!n&&271===n.kind}}}return!1}function pO(e,n,t){const r=qR(e,7);return 79===r.kind||iT(r)?!(32&r.flags)||(_a(e,t),!1):(_a(e,n),!1)}function fO(e){ZO(e.expression);const n=ey(e.expression);if(!iT(n))return _a(n,Wo.The_operand_of_a_delete_operator_must_be_a_property_reference),Hn;Mk(n)&&wC(n.name)&&_a(n,Wo.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const t=as(Ra(n).resolvedSymbol);return t&&(uO(t)&&_a(n,Wo.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),function(e,n){const t=Sl(n);!F||131075&t.flags||(te?16777216&n.flags:16777216&dL(t))||_a(e,Wo.The_operand_of_a_delete_operator_must_be_optional)}(n,t)),Hn}function mO(e){l((()=>function(e){const n=$m(e);if(n&&ZC(n))_a(e,Wo.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(32768&e.flags))if(eh(e)){const n=Dp(e);if(!XB(n)){let t;if(!kf(n,x)){null!=t||(t=rm(n,e.pos));const r=kT(n,t.start,t.length,Wo.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);Ji.add(r)}switch(k){case 100:case 199:if(1===n.impliedNodeFormat){null!=t||(t=rm(n,e.pos)),Ji.add(kT(n,t.start,t.length,Wo.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(L>=4)break;default:null!=t||(t=rm(n,e.pos)),Ji.add(kT(n,t.start,t.length,Wo.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}}else{const t=Dp(e);if(!XB(t)){const r=rm(t,e.pos),i=kT(t,r.start,r.length,Wo.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);n&&173!==n.kind&&0===(2&ky(n))&&cS(i,qf(n,Wo.Did_you_mean_to_mark_this_function_as_async)),Ji.add(i)}}FC(e)&&_a(e,Wo.await_expressions_cannot_be_used_in_a_parameter_initializer)}(e)));const n=ZO(e.expression),t=LM(n,!0,e,Wo.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return t!==n||_c(t)||3&n.flags||pa(!1,qf(e,Wo.await_has_no_effect_on_the_type_of_this_expression)),t}function hO(e){return yO(e,2112)?vO(e,3)||yO(e,296)?tt:Mn:On}function gO(e,n){if(yO(e,n))return!0;const t=I_(e);return!!t&&yO(t,n)}function yO(e,n){if(e.flags&n)return!0;if(3145728&e.flags){const t=e.types;for(const e of t)if(yO(e,n))return!0}return!1}function vO(e,n,t){return!!(e.flags&n)||!(t&&114691&e.flags)&&(!!(296&n)&&WE(e,On)||!!(2112&n)&&WE(e,Mn)||!!(402653316&n)&&WE(e,Dn)||!!(528&n)&&WE(e,Hn)||!!(16384&n)&&WE(e,Wn)||!!(131072&n)&&WE(e,zn)||!!(65536&n)&&WE(e,wn)||!!(32768&n)&&WE(e,An)||!!(4096&n)&&WE(e,Kn)||!!(67108864&n)&&WE(e,Yn))}function bO(e,n,t){return 1048576&e.flags?N(e.types,(e=>bO(e,n,t))):vO(e,n,t)}function EO(e){return!!(16&YE(e))&&!!e.symbol&&TO(e.symbol)}function TO(e){return 0!==(128&e.flags)}function xO(e,n,t,r){if(t===qn||r===qn)return qn;if(wC(e)){if(L<99&&SB(e,2097152),!Ra(e).resolvedSymbol&&Xm(e)){IR(e,r,AR(e,r.symbol,!0))}}else $E(oR(t,e),Zn,e);return $E(oR(r,n),Yn,n)&&OL(r,(e=>e===Lt||!!(2097152&e.flags)&&gT(I_(e))))&&_a(n,Wo.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Us(r)),Hn}function SO(e,n,t,r,i=!1){const a=e.properties,o=a[t];if(299===o.kind||300===o.kind){const e=o.name,t=Ly(e);if(Vd(t)){const e=J_(n,Yd(t));e&&(GR(e,o,i),zw(o,!1,!0,n,e))}const r=gc(o,Lv(n,t,32,e));return LO(300===o.kind?o:o.initializer,r)}if(301===o.kind){if(!(t<a.length-1)){L<99&&SB(o,4);const e=[];if(r)for(const n of r)Lw(n)||e.push(n.name);const t=fc(n,e,n.symbol);return kB(r,Wo.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),LO(o.expression,t)}_a(o,Wo.A_rest_element_must_be_last_in_a_destructuring_pattern)}else _a(o,Wo.Property_assignment_expected)}function AO(e,n,t,r,i){const a=e.elements,o=a[t];if(229!==o.kind){if(227!==o.kind){const e=kb(t);if(Ax(n)){const t=kv(n,e,32|(yI(o)?16:0),EN(o,e))||mn;return LO(o,gc(o,yI(o)?uL(t,524288):t),i)}return LO(o,r,i)}if(t<a.length-1)_a(o,Wo.A_rest_element_must_be_last_in_a_destructuring_pattern);else{const a=o.expression;if(223!==a.kind||63!==a.operatorToken.kind){kB(e.elements,Wo.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);return LO(a,ML(n,Vx)?BL(n,(e=>mg(e,t))):Mh(r),i)}_a(a.operatorToken,Wo.A_rest_element_cannot_have_an_initializer)}}}function LO(e,n,t,r){let i;if(300===e.kind){const r=e;r.objectAssignmentInitializer&&(!F||16777216&dL(ZO(r.objectAssignmentInitializer))||(n=uL(n,524288)),function(e,n,t,r,i){const a=n.kind;if(63===a&&(207===e.kind||206===e.kind))return LO(e,ZO(t,r),r,108===t.kind);let o;o=Gb(a)?SP(e,r):ZO(e,r);const s=ZO(t,r);IO(e,n,t,o,s,i)}(r.name,r.equalsToken,r.objectAssignmentInitializer,t)),i=e.name}else i=e;return 223===i.kind&&63===i.operatorToken.kind&&(ae(i,t),i=i.left,F&&(n=uL(n,524288))),207===i.kind?function(e,n,t){const r=e.properties;if(F&&0===r.length)return oR(n,e);for(let i=0;i<r.length;i++)SO(e,n,i,r,t);return n}(i,n,r):206===i.kind?function(e,n,t){const r=e.elements;L<2&&x.downlevelIteration&&SB(e,512);const i=kP(193,n,An,e)||mn;let a=x.noUncheckedIndexedAccess?void 0:i;for(let o=0;o<r.length;o++){let r=i;227===e.elements[o].kind&&(r=a=null!=a?a:kP(65,n,An,e)||mn),AO(e,n,o,r,t)}return n}(i,n,t):function(e,n,t){const r=ZO(e,t),i=301===e.parent.kind?Wo.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:Wo.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,a=301===e.parent.kind?Wo.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:Wo.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;pO(e,i,a)&&ZE(n,r,e,e);Ed(e)&&SB(e.parent,1048576);return n}(i,n,t)}function CO(e){switch((e=ey(e)).kind){case 79:case 10:case 13:case 212:case 225:case 14:case 8:case 9:case 110:case 95:case 104:case 155:case 215:case 228:case 216:case 206:case 207:case 218:case 232:case 282:case 281:return!0;case 224:return CO(e.whenTrue)&&CO(e.whenFalse);case 223:return!Ub(e.operatorToken.kind)&&(CO(e.left)&&CO(e.right));case 221:case 222:switch(e.operator){case 53:case 39:case 40:case 54:return!0}return!1;default:return!1}}function kO(e,n){return 0!==(98304&n.flags)||qE(e,n)}function IO(e,n,t,r,i,a){const o=n.kind;switch(o){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(r===qn||i===qn)return qn;let l;if(r=oR(r,e),i=oR(i,t),528&r.flags&&528&i.flags&&void 0!==(l=function(e){switch(e){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}(n.kind)))return _a(a||n,Wo.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,ms(n.kind),ms(l)),On;{const n=lO(e,r,Wo.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),s=lO(t,i,Wo.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let c;if(vO(r,3)&&vO(i,3)||!yO(r,2112)&&!yO(i,2112))c=On;else if(d(r,i)){switch(o){case 49:case 72:f();break;case 42:case 67:L<3&&_a(a,Wo.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}c=Mn}else f(d),c=mn;return n&&s&&_(c),c}case 39:case 64:if(r===qn||i===qn)return qn;let h;if(vO(r,402653316)||vO(i,402653316)||(r=oR(r,e),i=oR(i,t)),vO(r,296,!0)&&vO(i,296,!0)?h=On:vO(r,2112,!0)&&vO(i,2112,!0)?h=Mn:vO(r,402653316,!0)||vO(i,402653316,!0)?h=Dn:(uc(r)||uc(i))&&(h=_c(r)||_c(i)?mn:un),h&&!u(o))return h;if(!h){const e=402655727;return f(((n,t)=>vO(n,e)&&vO(t,e))),un}return 64===o&&_(h),h;case 29:case 31:case 32:case 33:return u(o)&&(r=Px(oR(r,e)),i=Px(oR(i,t)),p(((e,n)=>{if(uc(e)||uc(n))return!0;const t=WE(e,tt),r=WE(n,tt);return t&&r||!t&&!r&&JE(e,n)}))),Hn;case 34:case 35:case 36:case 37:if(cd(e)||cd(t)){const e=34===o||36===o;_a(a,Wo.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,e?"false":"true")}return function(e,n,t,r){const i=m(ey(t)),a=m(ey(r));if(i||a){const o=_a(e,Wo.This_condition_will_always_return_0,ms(36===n||34===n?95:110));if(i&&a)return;const s=37===n||35===n?ms(53):"",c=i?r:t,l=ey(c);cS(o,qf(c,Wo.Did_you_mean_0,`${s}Number.isNaN(${qb(l)?zf(l):"..."})`))}}(a,o,e,t),p(((e,n)=>kO(e,n)||kO(n,e))),Hn;case 102:return function(e,n,t,r){return t===qn||r===qn?qn:(!uc(t)&&bO(t,134348796)&&_a(e,Wo.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),uc(r)||EG(r)||HE(r,Kt)||_a(n,Wo.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Hn)}(e,t,r,i);case 101:return xO(e,t,r,i);case 55:case 76:{const e=4194304&dL(r)?Pg([(c=F?r:Mx(i),BL(c,Jx)),i]):r;return 76===o&&_(i),e}case 56:case 75:{const e=8388608&dL(r)?Pg([Qx(qx(r)),i],2):r;return 75===o&&_(i),e}case 60:case 77:{const e=262144&dL(r)?Pg([Qx(r),i],2):r;return 77===o&&_(i),e}case 63:const g=Yk(e.parent)?eg(e.parent):0;return function(e,n){if(2===e)for(const t of g_(n)){const e=Sl(t);if(e.symbol&&32&e.symbol.flags){const e=t.escapedName,n=Fa(t.valueDeclaration,e,788968,void 0,e,!1);(null==n?void 0:n.declarations)&&n.declarations.some(pR)&&(La(n,Wo.Duplicate_identifier_0,Bc(e),t),La(t,Wo.Duplicate_identifier_0,Bc(e),n))}}}(g,i),function(n){var r;switch(n){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const n=Zo(e),i=Wh(t);return!!i&&Ok(i)&&!!(null==(r=null==n?void 0:n.exports)?void 0:r.size);default:return!1}}(g)?(524288&i.flags&&(2===g||6===g||hT(i)||lL(i)||1&YE(i))||_(i),r):(_(i),i);case 27:if(!x.allowUnreachableCode&&CO(e)&&!(214===(s=e.parent).parent.kind&&dC(s.left)&&"0"===s.left.text&&(Fk(s.parent.parent)&&s.parent.parent.expression===s.parent||212===s.parent.parent.kind)&&(iT(s.right)||IC(s.right)&&"eval"===s.right.escapedText))){const n=Dp(e),t=Ns(n.text,e.pos);n.parseDiagnostics.some((e=>e.code===Wo.JSX_expressions_must_have_one_parent_element.code&&cc(e,t)))||_a(e,Wo.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return i;default:return Nt.fail()}var s,c;function d(e,n){return vO(e,2112)&&vO(n,2112)}function u(n){const a=gO(r,12288)?e:gO(i,12288)?t:void 0;return!a||(_a(a,Wo.The_0_operator_cannot_be_applied_to_type_symbol,ms(n)),!1)}function _(n){Ub(o)&&l((function(){if(pO(e,Wo.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,Wo.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let i;if(te&&Mk(e)&&yO(n,32768)){const t=dc(YO(e.expression),e.name.escapedText);OT(n,t)&&(i=Wo.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}ZE(n,r,e,t,i)}}))}function p(e){return!e(r,i)&&(f(e),!0)}function f(e){let t=!1;const o=a||n;if(e){const n=DM(r),a=DM(i);t=!(n===r&&a===i)&&!(!n||!a)&&e(n,a)}let s=r,c=i;!t&&e&&([s,c]=function(e,n,t){let r=e,i=n;const a=Mx(e),o=Mx(n);t(a,o)||(r=a,i=o);return[r,i]}(r,i,e));const[l,d]=Vs(s,c);(function(e,t,r,i){switch(n.kind){case 36:case 34:case 37:case 35:return ma(e,t,Wo.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,i);default:return}})(o,t,l,d)||ma(o,t,Wo.Operator_0_cannot_be_applied_to_types_1_and_2,ms(n.kind),l,d)}function m(e){if(IC(e)&&"NaN"===e.escapedText){const n=Nr||(Nr=vm("NaN",!1));return!!n&&n===VA(e)}return!1}}function wO(e){const n=e.parent;return Vk(n)&&wO(n)||Pk(n)&&n.argumentExpression===e}function RO(e){const n=[e.head.text],t=[];for(const r of e.templateSpans){const e=ZO(r.expression);gO(e,12288)&&_a(r.expression,Wo.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),n.push(r.literal.text),t.push(WE(e,it)?e:Dn)}return BO(e)||wO(e)||OL(Xk(e,void 0)||xn,NO)?zy(n,t):Dn}function NO(e){return!!(134217856&e.flags||58982400&e.flags&&yO(k_(e)||xn,402653316))}function DO(e,n,t,r){const i=function(e){return gw(e)&&!dw(e.parent)?e.parent.parent:e}(e);Qk(i,n,!1),function(e,n){vi[Ei]=e,bi[Ei]=n,Ei++}(i,t);const a=ZO(e,1|r|(t?2:0));t&&t.intraExpressionInferenceSites&&(t.intraExpressionInferenceSites=void 0);const o=yO(a,2944)&&GO(a,Kk(n,e,void 0))?Sb(a):a;return Ei--,Zk(),o}function OO(e,n){if(n)return ZO(e,n);const t=Ra(e);if(!t.resolvedType){const r=di,i=Wr;di=ui,Wr=void 0,t.resolvedType=ZO(e,n),Wr=i,di=r}return t.resolvedType}function MO(e){return 213===(e=ey(e,!0)).kind||231===e.kind||KR(e)}function PO(e,n,t){const r=Hh(e);if(Ih(e)){const t=tA(e);if(t)return _D(r,t,n)}const i=$O(r)||(t?DO(r,t,void 0,n||0):OO(r,n));return qC(e)&&204===e.name.kind&&Vx(i)&&!i.target.hasRestElement&&Ef(i)<e.name.elements.length?function(e,n){const t=n.elements,r=bf(e).slice(),i=e.target.elementFlags.slice();for(let a=Ef(e);a<t.length;a++){const e=t[a];(a<t.length-1||205!==e.kind||!e.dotDotDotToken)&&(r.push(!tI(e)&&yI(e)?Zc(e,!1,!1):un),i.push(2),tI(e)||yI(e)||US(e,un))}return ig(r,i,e.target.readonly)}(i,e.name):i}function FO(e,n){const t=2&Nc(e)||lm(e)?n:Fx(n);if(Ih(e)){if(Cx(t))return US(e,un),un;if(kx(t))return US(e,er),er}return t}function GO(e,n){if(n){if(3145728&n.flags){return ce(n.types,(n=>GO(e,n)))}if(58982400&n.flags){const t=k_(n)||xn;return yO(t,4)&&yO(e,128)||yO(t,8)&&yO(e,256)||yO(t,64)&&yO(e,2048)||yO(t,4096)&&yO(e,8192)||GO(e,t)}return!!(406847616&n.flags&&yO(e,128)||256&n.flags&&yO(e,256)||2048&n.flags&&yO(e,2048)||512&n.flags&&yO(e,512)||8192&n.flags&&yO(e,8192))}return!1}function BO(e){const n=e.parent;return hu(n)&&ql(n.type)||KR(n)&&ql(WR(n))||sD(e)&&function(e){const n=Xk(e,0);return!!n&&OL(n,x_)}(e)||(Vk(n)||Dk(n)||eI(n))&&BO(n)||(Sw(n)||Aw(n)||uI(n))&&BO(n.parent)}function UO(e,n,t){const r=ZO(e,n,t);return BO(e)||Nm(e)?Sb(r):MO(e)?r:Bx(r,Kk(Xk(e,void 0),e,void 0))}function VO(e,n){return 164===e.name.kind&&AI(e.name),UO(e.initializer,n)}function jO(e,n){jB(e),164===e.name.kind&&AI(e.name);return HO(e,cO(e,n),n)}function HO(e,n,t){if(t&&10&t){const r=lN(n,0,!0),i=lN(n,1,!0),a=r||i;if(a&&a.typeParameters){const n=Uk(e,2);if(n){const i=lN(Qx(n),r?0:1,!1);if(i&&!i.typeParameters){if(8&t)return KO(e,t),It;const n=aI(e),r=n.signature&&Rp(n.signature),o=r&&cN(r);if(o&&!o.typeParameters&&!N(n.inferences,WO)){const e=function(e,n){const t=[];let r,i;for(const a of n){const n=a.symbol.escapedName;if(qO(e.inferredTypeParameters,n)||qO(t,n)){const o=ps(va(262144,JO(de(e.inferredTypeParameters,t),n)));o.target=a,r=Te(r,a),i=Te(i,o),t.push(o)}else t.push(a)}if(i){const e=rE(r,i);for(const n of i)n.mapper=e}return t}(n,a.typeParameters),t=Hp(a,e),r=W(n.inferences,(e=>sA(e.typeParameter)));if(WS(t,i,((e,n)=>{IA(r,e,n,0,!0)})),ce(r,WO)&&(YS(t,i,((e,n)=>{IA(r,e,n)})),!function(e,n){for(let t=0;t<e.length;t++)if(WO(e[t])&&WO(n[t]))return!0;return!1}(n.inferences,r)))return function(e,n){for(let t=0;t<e.length;t++)!WO(e[t])&&WO(n[t])&&(e[t]=n[t])}(n.inferences,r),n.inferredTypeParameters=de(n.inferredTypeParameters,e),Jp(t)}return Jp(dN(a,i,n))}}}}return n}function KO(e,n){if(2&n){aI(e).flags|=4}}function WO(e){return!(!e.candidates&&!e.contraCandidates)}function zO(e){return!!(e.candidates||e.contraCandidates||O_(e.typeParameter))}function qO(e,n){return ce(e,(e=>e.symbol.escapedName===n))}function JO(e,n){let t=n.length;for(;t>1&&n.charCodeAt(t-1)>=48&&n.charCodeAt(t-1)<=57;)t--;const r=n.slice(0,t);for(let i=1;;i++){const n=r+i;if(!qO(e,n))return n}}function XO(e){const n=sN(e);if(n&&!n.typeParameters)return Rp(n)}function YO(e){const n=$O(e);if(n)return n;if(134217728&e.flags&&Wr){const n=Wr[ZG(e)];if(n)return n}const t=fi,r=ZO(e);if(fi!==t){(Wr||(Wr=[]))[ZG(e)]=r,LS(e,134217728|e.flags)}return r}function $O(e){let n=ey(e,!0);if(KR(n)){const e=WR(n);if(!ql(e))return Fb(e)}if(n=ey(e),qk(n)){const e=$O(n.expression);return e?NM(e):void 0}return!Fk(n)||106===n.expression.kind||Oh(n,!0)||eD(n)?hu(n)&&!ql(n.type)?Fb(n.type):sd(e)||Nd(e)?ZO(e):void 0:Vl(n)?function(e){const n=ZO(e.expression),t=rS(n,e.expression),r=XO(n);return r&&tS(r,e,t!==n)}(n):XO(Zw(n.expression))}function QO(e){const n=Ra(e);if(n.contextFreeType)return n.contextFreeType;Qk(e,un,!1);const t=n.contextFreeType=ZO(e,4);return Zk(),t}function ZO(e,t,r){var o,s;null==(o=Vr)||o.push(Vr.Phase.Check,"checkExpression",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const c=a;a=e,g=0;const d=function(e,t,r){const a=e.kind;if(n)switch(a){case 228:case 215:case 216:n.throwIfCancellationRequested()}switch(a){case 79:return bC(e,t);case 80:return vR(e);case 108:return LC(e);case 106:return RC(e);case 104:return Nn;case 14:case 10:return db(Cb(e.text));case 8:return nU(e),db(kb(+e.text));case 9:return function(e){const n=Lk(e.parent)||Jk(e.parent)&&Lk(e.parent.parent);if(!n&&L<7&&QB(e,Wo.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(e),db(Ib({negative:!1,base10Value:fS(e.text)}));case 110:return Bn;case 95:return Fn;case 225:return RO(e);case 13:return Qt;case 206:return vI(e,t,r);case 207:return wI(e,t);case 208:return dR(e,t);case 163:return fR(e,t);case 209:return YR(e,t);case 210:if(100===e.expression.kind)return nD(e);case 211:return function(e,n){var t,r,a;NB(e,e.typeArguments);const o=qN(e,void 0,n);if(o===$r)return qn;if(QN(o,e),106===e.expression.kind)return Wn;if(211===e.kind){const n=o.declaration;if(n&&173!==n.kind&&177!==n.kind&&182!==n.kind&&(!Jw(n)||173!==(null==(r=null==(t=jg(n))?void 0:t.parent)?void 0:r.kind))&&!Sg(n)&&!JN(n))return Y&&_a(e,Wo.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),un}if(Ih(e)&&100!==zT(x)&&aD(e))return Cp(e.arguments[0]);const s=Rp(o);if(12288&s.flags&&eD(e))return Rb($g(e.parent));if(210===e.kind&&!e.questionDotToken&&241===e.parent.kind&&16384&s.flags&&Ip(o))if(Xb(e.expression)){if(!eC(e)){const n=_a(e.expression,Wo.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);ZL(e.expression,n)}}else _a(e.expression,Wo.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(Ih(e)){const n=$N(e,!1);if(null==(a=null==n?void 0:n.exports)?void 0:a.size){const e=vs(n,n.exports,i,i,i);return e.objectFlags|=4096,hy([s,e])}}return s}(e,t);case 212:return oD(e);case 214:return function(e,n){if(Zu(e)){if(eA(e))return _D(e.expression,nA(e),n);if(KR(e)){const t=WR(e);return cD(t,t,e.expression,n)}}return ZO(e.expression,n)}(e,t);case 228:return function(e){return _F(e),YF(e),function(e){var n;if(e.name)return;const t=JR(e);if(!Wy(t))return;let r;r=!I&&L<99&&mh(!1,e)?null!=(n=De($c(e)))?n:e:uF(e);r&&(SB(r,8388608),(Sw(t)||YC(t)||Nk(t))&&WC(t.name)&&SB(r,16777216))}(e),Sl(Qo(e))}(e);case 215:case 216:return cO(e,t);case 218:return function(e){return ZO(e.expression),Yi}(e);case 213:case 231:return function(e){if(213===e.kind){const n=Dp(e);n&&so(n.fileName,[".cts",".mts"])&&QB(e,Wo.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return cD(e,e.type,e.expression)}(e);case 232:return lD(e);case 230:return dD(e);case 235:return function(e){return zF(e.type),_D(e.expression,e.type)}(e);case 233:return pD(e);case 217:return fO(e);case 219:return function(e){return ZO(e.expression),Ln}(e);case 220:return mO(e);case 221:return function(e){const n=ZO(e.operand);if(n===qn)return qn;switch(e.operand.kind){case 8:switch(e.operator){case 40:return db(kb(-e.operand.text));case 39:return db(kb(+e.operand.text))}break;case 9:if(40===e.operator)return db(Ib({negative:!0,base10Value:fS(e.operand.text)}))}switch(e.operator){case 39:case 40:case 54:return oR(n,e.operand),gO(n,12288)&&_a(e.operand,Wo.The_0_operator_cannot_be_applied_to_type_symbol,ms(e.operator)),39===e.operator?(gO(n,2112)&&_a(e.operand,Wo.Operator_0_cannot_be_applied_to_type_1,ms(e.operator),Us(Mx(n))),On):hO(n);case 53:SP(e.operand);const t=12582912&dL(n);return 4194304===t?Fn:8388608===t?Bn:Hn;case 45:case 46:return lO(e.operand,oR(n,e.operand),Wo.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&pO(e.operand,Wo.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,Wo.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),hO(n)}return mn}(e);case 222:return function(e){const n=ZO(e.operand);return n===qn?qn:(lO(e.operand,oR(n,e.operand),Wo.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&pO(e.operand,Wo.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,Wo.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),hO(n))}(e);case 223:return ae(e,t);case 224:return function(e,n){const t=SP(e.condition);return TP(e.condition,t,e.whenTrue),Pg([ZO(e.whenTrue,n),ZO(e.whenFalse,n)],2)}(e,t);case 227:return function(e,n){return L<2&&SB(e,x.downlevelIteration?1536:1024),kP(33,ZO(e.expression,n),An,e.expression)}(e,t);case 229:return Ln;case 226:return function(e){l((function(){8192&e.flags||YB(e,Wo.A_yield_expression_is_only_allowed_in_a_generator_body),FC(e)&&_a(e,Wo.yield_expressions_cannot_be_used_in_a_parameter_initializer)}));const n=qm(e);if(!n)return un;const t=ky(n);if(!(1&t))return un;const r=0!==(2&t);e.asteriskToken&&(r&&L<99&&SB(e,26624),!r&&L<2&&x.downlevelIteration&&SB(e,256));const i=Fp(n),a=i&&ZP(i,r),o=a&&a.yieldType||un,s=a&&a.nextType||un,c=r?NM(s)||un:s,d=e.expression?ZO(e.expression):Ln,u=tO(e,d,c,r);if(i&&u&&ZE(u,o,e.expression||e,e.expression),e.asteriskToken)return wP(r?19:17,1,d,e.expression)||un;if(i)return QP(2,i,r)||un;let _=GC(2,n);return _||(_=un,l((()=>{if(Y&&!NS(e)){const n=Xk(e,void 0);n&&!uc(n)||_a(e,Wo.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),_}(e);case 234:return function(e){return e.isSpread?Lv(e.type,On):e.type}(e);case 291:return Pw(e,t);case 281:case 282:return function(e){return YF(e),Ew(e)||un}(e);case 285:return function(e){ww(e.openingFragment);const n=Dp(e);return!hx(x)||!x.jsxFactory&&!n.pragmas.has("jsx")||x.jsxFragmentFactory||n.pragmas.has("jsxfrag")||_a(e,x.jsxFactory?Wo.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:Wo.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),JI(e),Ew(e)||un}(e);case 289:return $I(e,t);case 283:Nt.fail("Shouldn't ever directly check a JsxOpeningElement")}return mn}(e,t,r),u=HO(e,d,t);return EO(u)&&function(e,n){const t=208===e.parent.kind&&e.parent.expression===e||209===e.parent.kind&&e.parent.expression===e||(79===e.kind||163===e.kind)&&lG(e)||183===e.parent.kind&&e.parent.exprName===e||278===e.parent.kind;t||_a(e,Wo.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);if(XT(x)){Nt.assert(!!(128&n.symbol.flags));16777216&n.symbol.valueDeclaration.flags&&_a(e,Wo.Cannot_access_ambient_const_enums_when_0_is_enabled,ye)}}(e,u),a=c,null==(s=Vr)||s.pop(),u}function eM(e){LB(e),e.expression&&YB(e.expression,Wo.Type_expected),zF(e.constraint),zF(e.default);const n=fd(Qo(e));k_(n),function(e){return N_(e)!==Rt}(n)||_a(e.default,Wo.Type_parameter_0_has_a_circular_default,Us(n));const t=T_(n),r=D_(n);t&&r&&$E(r,nu(AE(t,sE(n,r)),r),e.default,Wo.Type_0_does_not_satisfy_the_constraint_1),YF(e),l((()=>sF(e.name,Wo.Type_parameter_name_cannot_be_0)))}function nM(e){LB(e),hP(e);const n=qm(e);fb(e,16476)&&(173===n.kind&&jp(n.body)||_a(e,Wo.A_parameter_property_is_only_allowed_in_a_constructor_implementation),173===n.kind&&IC(e.name)&&"constructor"===e.name.escapedText&&_a(e.name,Wo.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&QS(e)&&Jd(e.name)&&n.body&&_a(e,Wo.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&IC(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==n.parameters.indexOf(e)&&_a(e,Wo.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),173!==n.kind&&177!==n.kind&&182!==n.kind||_a(e,Wo.A_constructor_cannot_have_a_this_parameter),216===n.kind&&_a(e,Wo.An_arrow_function_cannot_have_a_this_parameter),174!==n.kind&&175!==n.kind||_a(e,Wo.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||Jd(e.name)||WE(H_(Sl(e.symbol)),tr)||_a(e,Wo.A_rest_parameter_must_be_of_an_array_type)}function tM(e,n,t){for(const r of e.elements){if(tI(r))continue;const e=r.name;if(79===e.kind&&e.escapedText===t)return _a(n,Wo.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,t),!0;if((204===e.kind||203===e.kind)&&tM(e,n,t))return!0}}function rM(e){178===e.kind?function(e){LB(e)||function(e){const n=e.parameters[0];if(1!==e.parameters.length)return QB(n?n.name:e,Wo.An_index_signature_must_have_exactly_one_parameter);if(kB(e.parameters,Wo.An_index_signature_cannot_have_a_trailing_comma),n.dotDotDotToken)return QB(n.dotDotDotToken,Wo.An_index_signature_cannot_have_a_rest_parameter);if(ub(n))return QB(n.name,Wo.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(n.questionToken)return QB(n.questionToken,Wo.An_index_signature_parameter_cannot_have_a_question_mark);if(n.initializer)return QB(n.name,Wo.An_index_signature_parameter_cannot_have_an_initializer);if(!n.type)return QB(n.name,Wo.An_index_signature_parameter_must_have_a_type_annotation);const t=Fb(n.type);if(OL(t,(e=>!!(8576&e.flags)))||_v(t))return QB(n.name,Wo.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead);if(!ML(t,ef))return QB(n.name,Wo.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type);if(!e.type)return QB(e,Wo.An_index_signature_must_have_a_type_annotation)}(e)}(e):181!==e.kind&&259!==e.kind&&182!==e.kind&&176!==e.kind&&173!==e.kind&&177!==e.kind||RB(e);const n=ky(e);4&n||(3===(3&n)&&L<99&&SB(e,6144),2===(3&n)&&L<4&&SB(e,64),0!==(3&n)&&L<2&&SB(e,128)),cF(Ml(e)),function(e){const n=j(Il(e),cR);if(!S(n))return;const t=Ih(e),r=new Set,i=new Set;A(e.parameters,(({name:e},n)=>{IC(e)&&r.add(e.escapedText),Jd(e)&&i.add(n)}));const a=Ap(e);if(a){const e=n.length-1,a=n[e];t&&a&&IC(a.name)&&a.typeExpression&&a.typeExpression.type&&!r.has(a.name.escapedText)&&!i.has(e)&&!bx(Fb(a.typeExpression.type))&&_a(a.name,Wo.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Uc(a.name))}else A(n,(({name:e,isNameFirst:n},a)=>{i.has(a)||IC(e)&&r.has(e.escapedText)||(KC(e)?t&&_a(e,Wo.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,zf(e),zf(e.left)):n||fa(t,e,Wo.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Uc(e)))}))}(e),A(e.parameters,nM),e.type&&zF(e.type),l((function(){!function(e){if(L>=2||!c_(e)||16777216&e.flags||Vp(e.body))return;A(e.parameters,(e=>{e.name&&!Jd(e.name)&&e.name.escapedText===he.escapedName&&da("noEmit",e,Wo.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(e);const n=eb(e);if(Y&&!n)switch(e.kind){case 177:_a(e,Wo.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 176:_a(e,Wo.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(n){const t=ky(e);if(1===(5&t)){const e=Fb(n);if(e===Wn)_a(n,Wo.A_generator_cannot_have_a_void_type_annotation);else{const r=QP(0,e,0!==(2&t))||un;$E(nO(r,QP(1,e,0!==(2&t))||r,QP(2,e,0!==(2&t))||xn,!!(2&t)),e,n)}}else 2===(3&t)&&function(e,n){const t=Fb(n);if(L>=2){if(_c(t))return;const e=Wm(!0);if(e!==kt&&!kl(t,e))return void _a(n,Wo.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Us(DM(t)||Wn))}else{if(function(e){BM(e&&lh(e),!1)}(n),_c(t))return;const i=lh(n);if(void 0===i)return void _a(n,Wo.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Us(t));const a=No(i,111551,!0),o=a?Sl(a):mn;if(_c(o))return void(79===i.kind&&"Promise"===i.escapedText&&wl(t)===Wm(!1)?_a(n,Wo.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):_a(n,Wo.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,zf(i)));const s=(r=!0,ur||(ur=Pm("PromiseConstructorLike",0,r))||bt);if(s===bt)return void _a(n,Wo.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,zf(i));if(!$E(o,s,n,Wo.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;const c=i&&Jb(i),l=Da(e.locals,c.escapedText,111551);if(l)return void _a(l.valueDeclaration,Wo.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Uc(c),zf(i))}var r;LM(t,!1,e,Wo.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,n)}178!==e.kind&&320!==e.kind&&qM(e)}))}function iM(e){const n=new Map;for(const t of e.members)if(168===t.kind){let e;const r=t.name;switch(r.kind){case 10:case 8:e=r.text;break;case 79:e=Uc(r);break;default:continue}n.get(e)?(_a(Xc(t.symbol.valueDeclaration),Wo.Duplicate_identifier_0,e),_a(t.name,Wo.Duplicate_identifier_0,e)):n.set(e,!0)}}function aM(e){if(261===e.kind){const n=Qo(e);if(n.declarations&&n.declarations.length>0&&n.declarations[0]!==e)return}const n=Xp(Qo(e));if(null==n?void 0:n.declarations){const e=new Map;for(const t of n.declarations)1===t.parameters.length&&t.parameters[0].type&&DL(Fb(t.parameters[0].type),(n=>{const r=e.get(Eg(n));r?r.declarations.push(t):e.set(Eg(n),{type:n,declarations:[t]})}));e.forEach((e=>{if(e.declarations.length>1)for(const n of e.declarations)_a(n,Wo.Duplicate_index_signature_for_type_0,Us(e.type))}))}}function oM(e){LB(e)||function(e){if(WC(e.name)&&Yk(e.name.expression)&&101===e.name.expression.operatorToken.kind)return QB(e.parent.members[0],Wo.A_mapped_type_may_not_declare_properties_or_methods);if(Fd(e.parent)){if(_C(e.name)&&"constructor"===e.name.text)return QB(e.name,Wo.Classes_may_not_have_a_field_named_constructor);if(VB(e.name,Wo.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(L<2&&wC(e.name))return QB(e.name,Wo.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(L<2&&Bd(e))return QB(e.name,Wo.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Bd(e)&&FB(e.questionToken,Wo.An_accessor_property_cannot_be_declared_optional))return!0}else if(261===e.parent.kind){if(VB(e.name,Wo.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(Nt.assertNode(e,XC),e.initializer)return QB(e.initializer,Wo.An_interface_property_cannot_have_an_initializer)}else if(uk(e.parent)){if(VB(e.name,Wo.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(Nt.assertNode(e,XC),e.initializer)return QB(e.initializer,Wo.A_type_literal_property_cannot_have_an_initializer)}16777216&e.flags&&KB(e);if(YC(e)&&e.exclamationToken&&(!Fd(e.parent)||!e.type||e.initializer||16777216&e.flags||mb(e)||yb(e))){const n=e.initializer?Wo.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?Wo.A_definite_assignment_assertion_is_not_permitted_in_this_context:Wo.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return QB(e.exclamationToken,n)}}(e)||MB(e.name),hP(e),sM(e),fb(e,256)&&169===e.kind&&e.initializer&&_a(e,Wo.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Vf(e.name))}function sM(e){if(wC(e.name)&&L<99){for(let n=Bf(e);n;n=Bf(n))Ra(n).flags|=4194304;if(nI(e.parent)){const n=EC(e.parent);n&&(Ra(e.name).flags|=32768,Ra(n).flags|=4096)}}}function cM(e){rM(e),function(e){const n=Ih(e)?nb(e):void 0,t=e.typeParameters||n&&De(n);if(t){const n=t.pos===t.end?t.pos:Ns(Dp(e).text,t.pos);return $B(e,n,t.end-n,Wo.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){const n=e.type||eb(e);if(n)QB(n,Wo.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),zF(e.body);const n=Qo(e),t=cp(n,e.kind);function r(e){return!!bd(e)||169===e.kind&&!mb(e)&&!!e.initializer}e===t&&TM(n),Vp(e.body)||l((function(){const n=e.parent;if(fy(n)){TC(e.parent,n);const t=SC(n),i=xC(e.body);if(i){t&&_a(i,Wo.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);if((99!==HT(x)||!w)&&(ce(e.parent.members,r)||ce(e.parameters,(e=>fb(e,16476)))))if(function(e,n){const t=$g(e.parent);return hI(t)&&t.parent===n}(i,e.body)){let n;for(const t of e.body.statements){if(hI(t)&&_m(qR(t.expression))){n=t;break}if(lM(t))break}void 0===n&&_a(e,Wo.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else _a(i,Wo.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else t||_a(e,Wo.Constructors_for_derived_classes_must_contain_a_super_call)}}))}function lM(e){return 106===e.kind||108===e.kind||!Zm(e)&&!!CD(e,lM)}function dM(e){IC(e.name)&&"constructor"===Uc(e.name)&&_a(e.name,Wo.Class_constructor_may_not_be_an_accessor),l((function(){RB(e)||function(e){if(!(16777216&e.flags)&&184!==e.parent.kind&&261!==e.parent.kind){if(L<1)return QB(e.name,Wo.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(L<2&&wC(e.name))return QB(e.name,Wo.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===e.body&&!fb(e,256))return $B(e,e.end-1,1,Wo._0_expected,"{")}if(e.body){if(fb(e,256))return QB(e,Wo.An_abstract_accessor_cannot_have_an_implementation);if(184===e.parent.kind||261===e.parent.kind)return QB(e.body,Wo.An_implementation_cannot_be_declared_in_ambient_contexts)}if(e.typeParameters)return QB(e.name,Wo.An_accessor_cannot_have_type_parameters);if(!function(e){return UB(e)||e.parameters.length===(174===e.kind?0:1)}(e))return QB(e.name,174===e.kind?Wo.A_get_accessor_cannot_have_parameters:Wo.A_set_accessor_must_have_exactly_one_parameter);if(175===e.kind){if(e.type)return QB(e.name,Wo.A_set_accessor_cannot_have_a_return_type_annotation);const n=Nt.checkDefined(Kv(e),"Return value does not match parameter count assertion.");if(n.dotDotDotToken)return QB(n.dotDotDotToken,Wo.A_set_accessor_cannot_have_rest_parameter);if(n.questionToken)return QB(n.questionToken,Wo.A_set_accessor_cannot_have_an_optional_parameter);if(n.initializer)return QB(e.name,Wo.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(e)||MB(e.name);KM(e),rM(e),174===e.kind&&!(16777216&e.flags)&&jp(e.body)&&256&e.flags&&(512&e.flags||_a(e.name,Wo.A_get_accessor_must_return_a_value));164===e.name.kind&&AI(e.name);if(qd(e)){const n=Qo(e),t=cp(n,174),r=cp(n,175);if(t&&r&&!(1&KG(t))){Ra(t).flags|=1;const e=Lb(t),n=Lb(r);(256&e)!==(256&n)&&(_a(t.name,Wo.Accessors_must_both_be_abstract_or_non_abstract),_a(r.name,Wo.Accessors_must_both_be_abstract_or_non_abstract)),(16&e&&!(24&n)||8&e&&!(8&n))&&(_a(t.name,Wo.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),_a(r.name,Wo.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));const i=ul(t),a=ul(r);i&&a&&$E(i,a,t,Wo.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}const n=_l(Qo(e));174===e.kind&&sO(e,n)})),zF(e.body),sM(e)}function uM(e,n,t){return e.typeArguments&&t<e.typeArguments.length?Fb(e.typeArguments[t]):_M(e,n)[t]}function _M(e,n){return Ep(W(e.typeArguments,Fb),n,hp(n),Ih(e))}function pM(e,n){let t,r,i=!0;for(let a=0;a<n.length;a++){const o=T_(n[a]);o&&(t||(t=_M(e,n),r=rE(n,t)),i=i&&$E(t[a],AE(o,r),e.typeArguments[a],Wo.Type_0_does_not_satisfy_the_constraint_1))}return i}function fM(e){const n=Fb(e);if(!_c(n)){const t=Ra(e).resolvedSymbol;if(t)return function(e,n){if(!_c(e))return 524288&n.flags&&wa(n).typeParameters||(4&YE(e)?e.target.localTypeParameters:void 0)}(n,t)}}function mM(e){if(NB(e,e.typeArguments),180===e.kind&&!Ih(e)&&!Nh(e)&&e.typeArguments&&e.typeName.end!==e.typeArguments.pos){const n=Dp(e);24===im(n,e.typeName.end)&&$B(e,Ns(n.text,e.typeName.end),1,Wo.JSDoc_types_can_only_be_used_inside_documentation_comments)}A(e.typeArguments,zF),hM(e)}function hM(e){if(!_c(Fb(e))){e.typeArguments&&l((()=>{const n=fM(e);n&&pM(e,n)}));const n=Ra(e).resolvedSymbol;n&&ce(n.declarations,(e=>zS(e)&&!!(268435456&e.flags)))&&ya(ZN(e),n.declarations,n.escapedName)}}function gM(e,n){if(!(8388608&e.flags))return e;const t=e.objectType,r=e.indexType;if(WE(r,Hy(t,!1)))return 209===n.kind&&zg(n)&&32&YE(t)&&1&r_(t)&&_a(n,Wo.Index_signature_in_type_0_only_permits_reading,Us(t)),e;const i=G_(t);if(tp(i,On)&&vO(r,296))return e;if(pv(t)){const e=rv(r,n);if(e){const t=DL(i,(n=>J_(n,e)));if(t&&24&GE(t))return _a(n,Wo.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Bc(e)),mn}}return _a(n,Wo.Type_0_cannot_be_used_to_index_type_1,Us(r),Us(t)),mn}function yM(e){!function(e){var n;if(null==(n=e.members)?void 0:n.length)QB(e.members[0],Wo.A_mapped_type_may_not_declare_properties_or_methods)}(e),zF(e.typeParameter),zF(e.nameType),zF(e.type),e.type||US(e,un);const n=wv(e),t=Hu(n);if(t)$E(t,nt,e.nameType);else{$E(ju(n),nt,Pl(e.typeParameter))}}function vM(e){!function(e){if(156===e.operator){if(153!==e.type.kind)return QB(e.type,Wo._0_expected,ms(153));let n=Yg(e.parent);if(Ih(n)&&Nw(n)){const e=Vg(n);e&&(n=Ig(e)||e)}switch(n.kind){case 257:const t=n;if(79!==t.name.kind)return QB(e,Wo.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Rm(t))return QB(e,Wo.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&t.parent.flags))return QB(n.name,Wo.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 169:if(!mb(n)||!Eb(n))return QB(n.name,Wo.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 168:if(!fb(n,64))return QB(n.name,Wo.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:QB(e,Wo.unique_symbol_types_are_not_allowed_here)}}else if(146===e.operator&&185!==e.type.kind&&186!==e.type.kind)YB(e,Wo.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,ms(153))}(e),zF(e.type)}function bM(e){return(pb(e,8)||bd(e))&&!!(16777216&e.flags)}function EM(e,n){let t=wc(e);return 261!==e.parent.kind&&260!==e.parent.kind&&228!==e.parent.kind&&16777216&e.flags&&(2&t||UI(e.parent)&&BI(e.parent.parent)&&Sf(e.parent.parent)||(t|=1),t|=2),t&n}function TM(e){l((()=>function(e){function n(e,n){return void 0!==n&&n.parent===e[0].parent?n:e[0]}function t(e,t,r,i,a){if(0!==(i^a)){const i=EM(n(e,t),r);A(e,(e=>{const n=EM(e,r)^i;1&n?_a(Xc(e),Wo.Overload_signatures_must_all_be_exported_or_non_exported):2&n?_a(Xc(e),Wo.Overload_signatures_must_all_be_ambient_or_non_ambient):24&n?_a(Xc(e)||e,Wo.Overload_signatures_must_all_be_public_private_or_protected):256&n&&_a(Xc(e),Wo.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}}function r(e,t,r,i){if(r!==i){const r=xg(n(e,t));A(e,(e=>{xg(e)!==r&&_a(Xc(e),Wo.Overload_signatures_must_all_be_optional_or_required)}))}}const i=283;let a,o,s,c=0,l=i,d=!1,u=!0,_=!1;const p=e.declarations,f=0!==(16384&e.flags);function m(e){if(e.name&&Vp(e.name))return;let n=!1;const t=CD(e.parent,(t=>{if(n)return t;n=t===e}));if(t&&t.pos===e.end&&t.kind===e.kind){const n=t.name||t,r=t.name;if(e.name&&r&&(wC(e.name)&&wC(r)&&e.name.escapedText===r.escapedText||WC(e.name)&&WC(r)||My(e.name)&&My(r)&&Fy(e.name)===Fy(r))){if((171===e.kind||170===e.kind)&&mb(e)!==mb(t)){_a(n,mb(e)?Wo.Function_overload_must_be_static:Wo.Function_overload_must_not_be_static)}return}if(jp(t.body))return void _a(n,Wo.Function_implementation_name_must_be_0,Vf(e.name))}const r=e.name||e;f?_a(r,Wo.Constructor_implementation_is_missing):fb(e,256)?_a(r,Wo.All_declarations_of_an_abstract_method_must_be_consecutive):_a(r,Wo.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let h=!1,g=!1,y=!1;const v=[];if(p)for(const b of p){const e=b,n=16777216&e.flags,t=e.parent&&(261===e.parent.kind||184===e.parent.kind)||n;if(t&&(s=void 0),260!==e.kind&&228!==e.kind||n||(y=!0),259===e.kind||171===e.kind||170===e.kind||173===e.kind){v.push(e);const n=EM(e,i);c|=n,l&=n,d=d||xg(e),u=u&&xg(e);const r=jp(e.body);r&&a?f?g=!0:h=!0:(null==s?void 0:s.parent)===e.parent&&s.end!==e.pos&&m(s),r?a||(a=e):_=!0,s=e,t||(o=e)}if(Ih(b)&&Id(b)&&b.jsDoc)for(const r of b.jsDoc)if(r.tags)for(const e of r.tags)iR(e)&&(_=!0)}g&&A(v,(e=>{_a(e,Wo.Multiple_constructor_implementations_are_not_allowed)}));h&&A(v,(e=>{_a(Xc(e)||e,Wo.Duplicate_function_implementation)}));if(y&&!f&&16&e.flags&&p){const n=j(p,(e=>260===e.kind)).map((e=>qf(e,Wo.Consider_adding_a_declare_modifier_to_this_class)));A(p,(t=>{const r=260===t.kind?Wo.Class_declaration_cannot_implement_overload_list_for_0:259===t.kind?Wo.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&cS(_a(Xc(t)||t,r,jc(e)),...n)}))}!o||o.body||fb(o,256)||o.questionToken||m(o);if(_&&(p&&(t(p,a,i,c,l),r(p,a,d,u)),a)){const n=Lp(e),t=xp(a);for(const e of n)if(!fT(t,e)){cS(_a(e.declaration&&Jw(e.declaration)?e.declaration.parent.tagName:e.declaration,Wo.This_overload_signature_is_not_compatible_with_its_implementation_signature),qf(a,Wo.The_implementation_signature_is_declared_here));break}}}(e)))}function xM(e){l((()=>function(e){let n=e.localSymbol;if(!n&&(n=Qo(e),!n.exportSymbol))return;if(cp(n,e.kind)!==e)return;let t=0,r=0,i=0;for(const c of n.declarations){const e=s(c),n=EM(c,1025);1&n?1024&n?i|=e:t|=e:r|=e}const a=t&r,o=i&(t|r);if(a||o)for(const c of n.declarations){const e=s(c),n=Xc(c);e&o?_a(n,Wo.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Vf(n)):e&a&&_a(n,Wo.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Vf(n))}function s(e){let n=e;switch(n.kind){case 261:case 262:case 349:case 341:case 343:return 2;case 264:return yf(n)||0!==JF(n)?5:4;case 260:case 263:case 302:return 3;case 308:return 7;case 274:case 223:const e=n,t=ZI(e)?e.expression:e.right;if(!qb(t))return 1;n=t;case 268:case 271:case 270:let r=0;return A(To(Qo(n)).declarations,(e=>{r|=s(e)})),r;case 257:case 205:case 259:case 273:case 79:return 1;case 170:case 168:return 2;default:return Nt.failBadSyntaxKind(n)}}}(e)))}function SM(e,n,t,r){const i=AM(e,n);return i&&NM(i,n,t,r)}function AM(e,n,t){if(uc(e))return;const r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(kl(e,Wm(!1)))return r.promisedTypeOfPromise=bf(e)[0];if(bO(I_(e),134479868))return;const a=dc(e,"then");if(uc(a))return;const o=a?Y_(a,0):i;if(0===o.length)return void(n&&_a(n,Wo.A_promise_must_have_a_then_method));let s,c;for(const i of o){const n=kp(i);n&&n!==Wn&&!TT(e,n,$i)?s=n:c=Te(c,i)}if(!c)return Nt.assertIsDefined(s),t&&(t.value=s),void(n&&_a(n,Wo.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Us(e),Us(s)));const l=uL(Pg(W(c,DD)),2097152);if(uc(l))return;const d=Y_(l,0);if(0!==d.length)return r.promisedTypeOfPromise=Pg(W(d,DD),2);n&&_a(n,Wo.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}function LM(e,n,t,r,i){return(n?NM(e,t,r,i):DM(e,t,r,i))||mn}function CM(e){if(bO(I_(e),134479868))return!1;const n=dc(e,"then");return!!n&&Y_(uL(n,2097152),0).length>0}function kM(e){var n;if(16777216&e.flags){const t=fh(!1);return!!t&&e.aliasSymbol===t&&1===(null==(n=e.aliasTypeArguments)?void 0:n.length)}return!1}function IM(e){return 1048576&e.flags?BL(e,IM):kM(e)?e.aliasTypeArguments[0]:e}function wM(e){if(uc(e)||kM(e))return!1;if(pv(e)){const n=k_(e);if(n?3&n.flags||hT(n)||OL(n,CM):yO(e,8650752))return!0}return!1}function RM(e){if(wM(e)){const n=function(e){const n=fh(!0);if(n)return If(n,[IM(e)])}(e);if(n)return n}return Nt.assert(kM(e)||void 0===AM(e),"type provided should not be a non-generic 'promise'-like."),e}function NM(e,n,t,r){const i=DM(e,n,t,r);return i&&RM(i)}function DM(e,n,t,r){if(uc(e))return e;if(kM(e))return e;const i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(1048576&e.flags){if(qi.lastIndexOf(e.id)>=0)return void(n&&_a(n,Wo.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));const a=n?e=>DM(e,n,t,r):DM;qi.push(e.id);const o=BL(e,a);return qi.pop(),i.awaitedTypeOfType=o}if(wM(e))return i.awaitedTypeOfType=e;const a={value:void 0},o=AM(e,void 0,a);if(o){if(e.id===o.id||qi.lastIndexOf(o.id)>=0)return void(n&&_a(n,Wo.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));qi.push(e.id);const a=DM(o,n,t,r);if(qi.pop(),!a)return;return i.awaitedTypeOfType=a}if(!CM(e))return i.awaitedTypeOfType=e;if(n){let i;Nt.assertIsDefined(t),a.value&&(i=NT(i,Wo.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Us(e),Us(a.value))),i=NT(i,t,r),Ji.add(Yf(Dp(n),n,i))}}function OM(e){const n=qN(e);QN(n,e);const t=Rp(n);if(1&t.flags)return;const r=YD(e);if(!(null==r?void 0:r.resolvedReturnType))return;let i;const a=r.resolvedReturnType;switch(e.parent.kind){case 260:case 228:i=Wo.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 169:if(!I){i=Wo.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 166:i=Wo.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 171:case 174:case 175:i=Wo.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return Nt.failBadSyntaxKind(e.parent)}$E(t,a,e.expression,i)}function MM(e,n,t,r,a,o=t.length,s=0){return ru(gA.createFunctionTypeNode(void 0,i,gA.createKeywordTypeNode(131)),e,n,t,r,a,o,s)}function PM(e,n,t,r,i,a,o){return Jp(MM(e,n,t,r,i,a,o))}function FM(e){return PM(void 0,void 0,i,e)}function GM(e){return PM(void 0,void 0,[ba("value",e)],Wn)}function BM(e,n){if(!e)return;const t=Jb(e),r=2097152|(79===e.kind?788968:1920),a=Fa(t,t.escapedText,r,void 0,void 0,!0);if(a&&2097152&a.flags)if(x.verbatimModuleSyntax||!os(a)||NG(To(a))||Co(a)){if(n&&XT(x)&&KT(x)>=5&&!os(a)&&!ce(a.declarations,md)){const n=_a(e,Wo.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),r=D(a.declarations||i,Ya);r&&cS(n,qf(r,Wo._0_was_imported_here,Uc(t)))}}else Io(a)}function UM(e){const n=VM(e);n&&Ld(n)&&BM(n,!0)}function VM(e){if(e)switch(e.kind){case 190:case 189:return jM(e.types);case 191:return jM([e.trueType,e.falseType]);case 193:case 199:return VM(e.type);case 180:return e.typeName}}function jM(e){let n;for(let t of e){for(;193===t.kind||199===t.kind;)t=t.type;if(144===t.kind)continue;if(!F&&(198===t.kind&&104===t.literal.kind||155===t.kind))continue;const e=VM(t);if(!e)return;if(n){if(!IC(n)||!IC(e)||n.escapedText!==e.escapedText)return}else n=e}return n}function HM(e){const n=Qv(e);return l_(e)?Cm(n):n}function KM(e){if(!HN(e)||!Tb(e)||!e.modifiers||!uh(I,e,e.parent,e.parent.parent))return;const n=D(e.modifiers,JC);if(n){if(I)SB(n,8),166===e.kind&&SB(n,32);else if(L<99)if(SB(n,8),MI(e))if(e.name){uF(e)&&SB(n,8388608)}else SB(n,8388608);else nI(e)||(wC(e.name)&&(QC(e)||Gd(e)||Bd(e))&&SB(n,8388608),WC(e.name)&&SB(n,16777216));if(x.emitDecoratorMetadata)switch(SB(n,16),e.kind){case 260:const n=Hv(e);if(n)for(const e of n.parameters)UM(HM(e));break;case 174:case 175:const t=174===e.kind?175:174,r=cp(Qo(e),t);UM(dl(e)||r&&dl(r));break;case 171:for(const a of e.parameters)UM(HM(a));UM(eb(e));break;case 169:UM(Qv(e));break;case 166:UM(HM(e));const i=e.parent;for(const e of i.parameters)UM(HM(e))}for(const n of e.modifiers)JC(n)&&OM(n)}}function WM(e){switch(e.kind){case 79:return e;case 208:return e.name;default:return}}function zM(e){var n;KM(e),rM(e);const t=ky(e);if(e.name&&164===e.name.kind&&AI(e.name),qd(e)){const t=Qo(e),r=e.localSymbol||t,i=null==(n=r.declarations)?void 0:n.find((n=>n.kind===e.kind&&!(262144&n.flags)));e===i&&TM(r),t.parent&&TM(t)}const r=170===e.kind?void 0:e.body;if(zF(r),sO(e,Fp(e)),l((function(){eb(e)||(Vp(r)&&!bM(e)&&US(e,un),1&t&&jp(r)&&Rp(xp(e)))})),Ih(e)){const n=Al(e);n&&n.typeExpression&&!dI(Fb(n.typeExpression),e)&&_a(n.typeExpression.type,Wo.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function qM(e){l((function(){const n=Dp(e);let t=li.get(n.path);t||(t=[],li.set(n.path,t));t.push(e)}))}function JM(e,n){for(const t of e)switch(t.kind){case 260:case 228:$M(t,n),ZM(t,n);break;case 308:case 264:case 238:case 266:case 245:case 246:case 247:iP(t,n);break;case 173:case 215:case 259:case 216:case 171:case 174:case 175:t.body&&iP(t,n),ZM(t,n);break;case 170:case 176:case 177:case 181:case 182:case 262:case 261:ZM(t,n);break;case 192:QM(t,n);break;default:Nt.assertNever(t,"Node should not have been registered for unused identifiers check")}}function XM(e,n,t){t(e,0,qf(Xc(e)||e,zS(e)?Wo._0_is_declared_but_never_used:Wo._0_is_declared_but_its_value_is_never_read,n))}function YM(e){return IC(e)&&95===Uc(e).charCodeAt(0)}function $M(e,n){for(const t of e.members)switch(t.kind){case 171:case 169:case 174:case 175:if(175===t.kind&&32768&t.symbol.flags)break;const e=Qo(t);e.isReferenced||!(pb(t,8)||qc(t)&&wC(t.name))||16777216&t.flags||n(t,0,qf(t.name,Wo._0_is_declared_but_its_value_is_never_read,Gs(e)));break;case 173:for(const r of t.parameters)!r.symbol.isReferenced&&fb(r,8)&&n(r,0,qf(r.name,Wo.Property_0_is_declared_but_its_value_is_never_read,jc(r.symbol)));break;case 178:case 237:case 172:break;default:Nt.fail("Unexpected class member")}}function QM(e,n){const{typeParameter:t}=e;eP(t)&&n(e,1,qf(e,Wo._0_is_declared_but_its_value_is_never_read,Uc(t.name)))}function ZM(e,n){const t=Qo(e).declarations;if(!t||Ge(t)!==e)return;const r=Ml(e),i=new Set;for(const a of r){if(!eP(a))continue;const e=Uc(a.name),{parent:t}=a;if(192!==t.kind&&t.typeParameters.every(eP)){if(ie(i,t)){const r=Dp(t),i=_R(t)?dS(t):uS(r,t.typeParameters),o=1===t.typeParameters.length,s=o?Wo._0_is_declared_but_its_value_is_never_read:Wo.All_type_parameters_are_unused,c=o?e:void 0;n(a,1,kT(r,i.pos,i.end-i.pos,s,c))}}else n(a,1,qf(a,Wo._0_is_declared_but_its_value_is_never_read,e))}}function eP(e){return!(262144&$o(e.symbol).isReferenced)&&!YM(e.name)}function nP(e,n,t,r){const i=String(r(n)),a=e.get(i);a?a[1].push(t):e.set(i,[n,[t]])}function tP(e){return En(Xy(e),qC)}function rP(e){return Nk(e)?wk(e.parent)?!(!e.propertyName||!YM(e.name)):YM(e.name):yf(e)||(NI(e)&&xu(e.parent.parent)||oP(e))&&YM(e.name)}function iP(e,n){const t=new Map,r=new Map,i=new Map;e.locals.forEach((e=>{var a;if(!(262144&e.flags?!(3&e.flags)||3&e.isReferenced:e.isReferenced||e.exportSymbol)&&e.declarations)for(const o of e.declarations)if(!rP(o))if(oP(o))nP(t,270===(a=o).kind?a:271===a.kind?a.parent:a.parent.parent,o,ZG);else if(Nk(o)&&wk(o.parent)){o!==Ge(o.parent.elements)&&Ge(o.parent.elements).dotDotDotToken||nP(r,o.parent,o,ZG)}else if(NI(o))nP(i,o.parent,o,ZG);else{const t=e.valueDeclaration&&tP(e.valueDeclaration),i=e.valueDeclaration&&Xc(e.valueDeclaration);t&&i?Ac(t,t.parent)||qv(t)||YM(i)||(Nk(o)&&Rk(o.parent)?nP(r,o.parent,o,ZG):n(t,1,qf(i,Wo._0_is_declared_but_its_value_is_never_read,jc(e)))):XM(o,jc(e),n)}})),t.forEach((([e,t])=>{const r=e.parent;if((e.name?1:0)+(e.namedBindings?271===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===t.length)n(r,0,1===t.length?qf(r,Wo._0_is_declared_but_its_value_is_never_read,Uc(Me(t).name)):qf(r,Wo.All_imports_in_import_declaration_are_unused));else for(const i of t)XM(i,Uc(i.name),n)})),r.forEach((([e,t])=>{const r=tP(e.parent)?1:0;if(e.elements.length===t.length)1===t.length&&257===e.parent.kind&&258===e.parent.parent.kind?nP(i,e.parent.parent,e.parent,ZG):n(e,r,1===t.length?qf(e,Wo._0_is_declared_but_its_value_is_never_read,aP(Me(t).name)):qf(e,Wo.All_destructured_elements_are_unused));else for(const i of t)n(i,r,qf(i,Wo._0_is_declared_but_its_value_is_never_read,aP(i.name)))})),i.forEach((([e,t])=>{if(e.declarations.length===t.length)n(e,0,1===t.length?qf(Me(t).name,Wo._0_is_declared_but_its_value_is_never_read,aP(Me(t).name)):qf(240===e.parent.kind?e.parent:e,Wo.All_variables_are_unused));else for(const r of t)n(r,0,qf(r,Wo._0_is_declared_but_its_value_is_never_read,aP(r.name)))}))}function aP(e){switch(e.kind){case 79:return Uc(e);case 204:case 203:return aP(Tn(Me(e.elements),Nk).name);default:return Nt.assertNever(e)}}function oP(e){return 270===e.kind||273===e.kind||271===e.kind}function sP(e){if(238===e.kind&&eU(e),Md(e)){const n=pi;A(e.statements,zF),pi=n}else A(e.statements,zF);e.locals&&qM(e)}function cP(e,n,t){if((null==n?void 0:n.escapedText)!==t)return!1;if(169===e.kind||168===e.kind||171===e.kind||170===e.kind||174===e.kind||175===e.kind||299===e.kind)return!1;if(16777216&e.flags)return!1;if((WI(e)||HI(e)||QI(e))&&md(e))return!1;const r=Xy(e);return!qC(r)||!Vp(r.parent.body)}function dP(e){Mc(e,(n=>{if(4&KG(n)){return 79!==e.kind?_a(Xc(e),Wo.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):_a(e,Wo.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1}))}function uP(e){Mc(e,(n=>{if(8&KG(n)){return 79!==e.kind?_a(Xc(e),Wo.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):_a(e,Wo.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1}))}function _P(e){4194304&KG(Bf(e))&&(Nt.assert(qc(e)&&IC(e.name)&&"string"===typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),da("noEmit",e,Wo.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function pP(e){let n=!1;if(nI(e)){for(const t of e.members)if(8388608&KG(t)){n=!0;break}}else if(jk(e))8388608&KG(e)&&(n=!0);else{const t=Bf(e);t&&8388608&KG(t)&&(n=!0)}n&&(Nt.assert(qc(e)&&IC(e.name),"The target of a Reflect collision check should be an identifier"),da("noEmit",e,Wo.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Vf(e.name),"Reflect"))}function fP(e,n){n&&(function(e,n){if(k>=5&&!(k>=100&&1===Dp(e).impliedNodeFormat))return;if(!n||!cP(e,n,"require")&&!cP(e,n,"exports"))return;if(BI(e)&&1!==JF(e))return;const t=sc(e);308===t.kind&&om(t)&&da("noEmit",n,Wo.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Vf(n),Vf(n))}(e,n),function(e,n){if(!n||L>=4||!cP(e,n,"Promise"))return;if(BI(e)&&1!==JF(e))return;const t=sc(e);308===t.kind&&om(t)&&2048&t.flags&&da("noEmit",n,Wo.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Vf(n),Vf(n))}(e,n),function(e,n){L<=8&&(cP(e,n,"WeakMap")||cP(e,n,"WeakSet"))&&Ki.push(e)}(e,n),function(e,n){n&&L>=2&&L<=8&&cP(e,n,"Reflect")&&Wi.push(e)}(e,n),Fd(e)?(sF(n,Wo.Class_name_cannot_be_0),16777216&e.flags||function(e){L>=1&&"Object"===e.escapedText&&(k<5||1===Dp(e).impliedNodeFormat)&&_a(e,Wo.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,Vi[k])}(n)):GI(e)&&sF(n,Wo.Enum_name_cannot_be_0))}function mP(e){return e===_n?un:e===nr?er:e}function hP(e){var n;if(KM(e),Nk(e)||zF(e.type),!e.name)return;if(164===e.name.kind&&(AI(e.name),t_(e)&&e.initializer&&OO(e.initializer)),Nk(e)){if(e.propertyName&&IC(e.name)&&Jy(e)&&Vp(qm(e).body))return void zi.push(e);wk(e.parent)&&e.dotDotDotToken&&L<5&&SB(e,4),e.propertyName&&164===e.propertyName.kind&&AI(e.propertyName);const n=e.parent.parent,t=pc(n,e.dotDotDotToken?64:0),r=e.propertyName||e.name;if(t&&!Jd(r)){const i=Ly(r);if(Vd(i)){const r=J_(t,Yd(i));r&&(GR(r,void 0,!1),zw(e,!!n.initializer&&106===n.initializer.kind,!1,t,r))}}}if(Jd(e.name)&&(204===e.name.kind&&L<2&&x.downlevelIteration&&SB(e,512),A(e.name.elements,zF)),qC(e)&&e.initializer&&Vp(qm(e).body))return void _a(e,Wo.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);if(Jd(e.name)){const n=t_(e)&&e.initializer&&246!==e.parent.parent.kind,t=!ce(e.name.elements,vt(tI));if(n||t){const r=tl(e);if(n){const n=OO(e.initializer);F&&t?sR(n,e):ZE(n,tl(e),e,e.initializer)}t&&(Rk(e.name)?kP(65,r,An,e):F&&sR(r,e))}return}const t=Qo(e);if(2097152&t.flags&&(Ph(e)||Fh(e)))return void wF(e);const r=mP(Sl(t));if(e===t.valueDeclaration){const i=t_(e)&&Hh(e);if(i){Ih(e)&&Ok(i)&&(0===i.properties.length||Qb(e.name))&&!!(null==(n=t.exports)?void 0:n.size)||246===e.parent.parent.kind||ZE(OO(i),r,e,i,void 0)}t.declarations&&t.declarations.length>1&&ce(t.declarations,(n=>n!==e&&Im(n)&&!yP(n,e)))&&_a(e.name,Wo.All_declarations_of_0_must_have_identical_modifiers,Vf(e.name))}else{const n=mP(tl(e));_c(r)||_c(n)||OE(r,n)||67108864&t.flags||gP(t.valueDeclaration,r,e,n),t_(e)&&e.initializer&&ZE(OO(e.initializer),n,e,e.initializer,void 0),t.valueDeclaration&&!yP(e,t.valueDeclaration)&&_a(e.name,Wo.All_declarations_of_0_must_have_identical_modifiers,Vf(e.name))}169!==e.kind&&168!==e.kind&&(xM(e),257!==e.kind&&205!==e.kind||function(e){if(0!==(3&Nc(e))||Jy(e))return;if(257===e.kind&&!e.initializer)return;const n=Qo(e);if(1&n.flags){if(!IC(e.name))return Nt.fail();const t=Fa(e,e.name.escapedText,3,void 0,void 0,!1);if(t&&t!==n&&2&t.flags&&3&Fw(t)){const n=vy(t.valueDeclaration,258),r=240===n.parent.kind&&n.parent.parent?n.parent.parent:void 0;if(!r||!(238===r.kind&&Id(r.parent)||265===r.kind||264===r.kind||308===r.kind)){const n=Gs(t);_a(e,Wo.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,n,n)}}}}(e),fP(e,e.name))}function gP(e,n,t,r){const i=Xc(t),a=169===t.kind||168===t.kind?Wo.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:Wo.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,o=Vf(i),s=_a(i,a,o,Us(n),Us(r));e&&cS(s,qf(e,Wo._0_was_also_declared_here,o))}function yP(e,n){if(166===e.kind&&257===n.kind||257===e.kind&&166===n.kind)return!0;if(xg(e)!==xg(n))return!1;return xb(e,888)===xb(n,888)}function vP(e){var n,t;null==(n=Vr)||n.push(Vr.Phase.Check,"checkVariableDeclaration",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath}),function(e){if(246!==e.parent.parent.kind&&247!==e.parent.parent.kind)if(16777216&e.flags)KB(e);else if(!e.initializer){if(Jd(e.name)&&!Jd(e.parent))return QB(e,Wo.A_destructuring_declaration_must_have_an_initializer);if(dm(e))return QB(e,Wo.const_declarations_must_be_initialized)}if(e.exclamationToken&&(240!==e.parent.parent.kind||!e.type||e.initializer||16777216&e.flags)){const n=e.initializer?Wo.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?Wo.A_definite_assignment_assertion_is_not_permitted_in_this_context:Wo.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return QB(e.exclamationToken,n)}!(k<5||1===Dp(e).impliedNodeFormat)||4===k||16777216&e.parent.parent.flags||!fb(e.parent.parent,1)||WB(e.name);const n=um(e)||dm(e);n&&zB(e.name)}(e),hP(e),null==(t=Vr)||t.pop()}function bP(e){return function(e){if(e.dotDotDotToken){const n=e.parent.elements;if(e!==Ge(n))return QB(e,Wo.A_rest_element_must_be_last_in_a_destructuring_pattern);if(kB(n,Wo.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return QB(e.name,Wo.A_rest_element_cannot_have_a_property_name)}if(e.dotDotDotToken&&e.initializer)$B(e,e.initializer.pos-1,1,Wo.A_rest_element_cannot_have_an_initializer)}(e),hP(e)}function EP(e){LB(e)||qB(e.declarationList)||function(e){if(!JB(e.parent)){if(um(e.declarationList))return QB(e,Wo.let_declarations_can_only_be_declared_inside_a_block);if(dm(e.declarationList))QB(e,Wo.const_declarations_can_only_be_declared_inside_a_block)}}(e),A(e.declarationList.declarations,zF)}function TP(e,n,t){function r(e,n){for(i(e=ey(e),n);Yk(e)&&(56===e.operatorToken.kind||60===e.operatorToken.kind);)i(e=ey(e.left),n)}function i(e,t){const i=Bb(e)?ey(e.right):e;if(Zh(i))return;if(Bb(i))return void r(i,t);const a=i===e?n:SP(i),o=Mk(i)&&MO(i.expression);if(!(4194304&dL(a))||o)return;const s=Y_(a,0),c=!!SM(a);if(0===s.length&&!c)return;const l=IC(i)?i:Mk(i)?i.name:void 0,d=l&&_G(l);if(!d&&!c)return;const u=d&&Yk(e.parent)&&function(e,n){for(;Yk(e)&&55===e.operatorToken.kind;){if(CD(e.right,(function e(t){if(IC(t)){const e=_G(t);if(e&&e===n)return!0}return CD(t,e)})))return!0;e=e.parent}return!1}(e.parent,d)||d&&t&&function(e,n,t,r){return!!CD(n,(function n(i){if(IC(i)){const n=_G(i);if(n&&n===r){if(IC(e)||IC(t)&&Yk(t.parent))return!0;let n=t.parent,r=i.parent;for(;n&&r;){if(IC(n)&&IC(r)||108===n.kind&&108===r.kind)return _G(n)===_G(r);if(Mk(n)&&Mk(r)){if(_G(n.name)!==_G(r.name))return!1;r=r.expression,n=n.expression}else{if(!Fk(n)||!Fk(r))return!1;r=r.expression,n=n.expression}}}}return CD(i,n)}))}(e,t,l,d);u||(c?ma(i,!0,Wo.This_condition_will_always_return_true_since_this_0_is_always_defined,js(a)):_a(i,Wo.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}F&&r(e,t)}function xP(e,n){return 16384&e.flags&&_a(n,Wo.An_expression_of_type_void_cannot_be_tested_for_truthiness),e}function SP(e,n){return xP(ZO(e,n),e)}function AP(e){BB(e);const n=nR(ZO(e.expression));if(258===e.initializer.kind){const n=e.initializer.declarations[0];n&&Jd(n.name)&&_a(n.name,Wo.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),LP(e)}else{const t=e.initializer,r=ZO(t);206===t.kind||207===t.kind?_a(t,Wo.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):WE(function(e){const n=Ky(Hy(e));return 131072&n.flags?Dn:n}(n),r)?pO(t,Wo.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,Wo.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):_a(t,Wo.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}n!==zn&&vO(n,126091264)||_a(e.expression,Wo.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Us(n)),zF(e.statement),e.locals&&qM(e)}function LP(e){const n=e.initializer;if(n.declarations.length>=1){vP(n.declarations[0])}}function CP(e){return kP(e.awaitModifier?15:13,Zw(e.expression),An,e.expression)}function kP(e,n,t,r){return uc(n)?n:IP(e,n,t,r,!0)||un}function IP(e,n,t,r,i){const a=0!==(2&e);if(n===zn)return void HP(r,n,a);const o=L>=2,s=!o&&x.downlevelIteration,c=x.noUncheckedIndexedAccess&&!!(128&e);if(o||s||a){const a=MP(n,e,o?r:void 0);if(i&&a){const n=8&e?Wo.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?Wo.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?Wo.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?Wo.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;n&&$E(t,a.nextType,r,n)}if(a||o)return c?gL(a&&a.yieldType):a&&a.yieldType}let l=n,d=!1,u=!1;if(4&e){if(1048576&l.flags){const e=n.types,t=j(e,(e=>!(402653316&e.flags)));t!==e&&(l=Pg(t,2))}else 402653316&l.flags&&(l=zn);if(u=l!==n,u&&(L<1&&r&&(_a(r,Wo.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),d=!0),131072&l.flags))return c?gL(Dn):Dn}if(!Ax(l)){if(r&&!d){const t=!!(4&e)&&!u,[i,a]=function(t,r){var i;if(r)return t?[Wo.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[Wo.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];if(wP(e,0,n,void 0))return[Wo.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1];if(function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null==(i=n.symbol)?void 0:i.escapedName))return[Wo.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0];return t?[Wo.Type_0_is_not_an_array_type_or_a_string_type,!0]:[Wo.Type_0_is_not_an_array_type,!0]}(t,s);ma(r,a&&!!SM(l),i,Us(l))}return u?c?gL(Dn):Dn:void 0}const _=rp(l,On);return u&&_?402653316&_.flags&&!x.noUncheckedIndexedAccess?Dn:Pg(c?[_,Dn,An]:[_,Dn],2):128&e?gL(_):_}function wP(e,n,t,r){if(uc(t))return;const i=MP(t,e,r);return i&&i[oB(n)]}function RP(e=zn,n=zn,t=xn){if(67359327&e.flags&&180227&n.flags&&180227&t.flags){const r=of([e,n,t]);let i=ei.get(r);return i||(i={yieldType:e,returnType:n,nextType:t},ei.set(r,i)),i}return{yieldType:e,returnType:n,nextType:t}}function NP(e){let n,t,r;for(const i of e)if(void 0!==i&&i!==ni){if(i===ti)return ti;n=Te(n,i.yieldType),t=Te(t,i.returnType),r=Te(r,i.nextType)}return n||t||r?RP(n&&Pg(n),t&&Pg(t),r&&hy(r)):ni}function DP(e,n){return e[n]}function OP(e,n,t){return e[n]=t}function MP(e,n,t){var r,i;if(uc(e))return ti;if(!(1048576&e.flags)){const i=t?{errors:void 0}:void 0,a=FP(e,n,t,i);if(a===ni){if(t){const r=HP(t,e,!!(2&n));(null==i?void 0:i.errors)&&cS(r,...i.errors)}return}if(null==(r=null==i?void 0:i.errors)?void 0:r.length)for(const e of i.errors)Ji.add(e);return a}const a=2&n?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",o=DP(e,a);if(o)return o===ni?void 0:o;let s;for(const l of e.types){const r=t?{errors:void 0}:void 0,o=FP(l,n,t,r);if(o===ni){if(t){const i=HP(t,e,!!(2&n));(null==r?void 0:r.errors)&&cS(i,...r.errors)}return void OP(e,a,ni)}if(null==(i=null==r?void 0:r.errors)?void 0:i.length)for(const e of r.errors)Ji.add(e);s=Te(s,o)}const c=s?NP(s):ni;return OP(e,a,c),c===ni?void 0:c}function PP(e,n){if(e===ni)return ni;if(e===ti)return ti;const{yieldType:t,returnType:r,nextType:i}=e;return n&&fh(!0),RP(NM(t,n)||un,NM(r,n)||un,i)}function FP(e,n,t,r){if(uc(e))return ti;let i=!1;if(2&n){const r=BP(e,ai)||VP(e,ai);if(r){if(r!==ni||!t)return 8&n?PP(r,t):r;i=!0}}if(1&n){let r=BP(e,oi)||VP(e,oi);if(r)if(r===ni&&t)i=!0;else{if(!(2&n))return r;if(r!==ni)return r=PP(r,t),i?r:OP(e,"iterationTypesOfAsyncIterable",r)}}if(2&n){const n=jP(e,ai,t,r,i);if(n!==ni)return n}if(1&n){let a=jP(e,oi,t,r,i);if(a!==ni)return 2&n?(a=PP(a,t),i?a:OP(e,"iterationTypesOfAsyncIterable",a)):a}return ni}function BP(e,n){return DP(e,n.iterableCacheKey)}function UP(e,n){const t=BP(e,n)||jP(e,n,void 0,void 0,!1);return t===ni?ii:t}function VP(e,n){let t;if(kl(e,t=n.getGlobalIterableType(!1))||kl(e,t=n.getGlobalIterableIteratorType(!1))){const[r]=bf(e),{returnType:i,nextType:a}=UP(t,n);return OP(e,n.iterableCacheKey,RP(n.resolveIterationType(r,void 0)||r,n.resolveIterationType(i,void 0)||i,a))}if(kl(e,n.getGlobalGeneratorType(!1))){const[t,r,i]=bf(e);return OP(e,n.iterableCacheKey,RP(n.resolveIterationType(t,void 0)||t,n.resolveIterationType(r,void 0)||r,i))}}function jP(e,n,t,r,i){var a;const o=J_(e,function(e){const n=Hm(!1),t=n&&dc(Sl(n),Gc(e));return t&&Vd(t)?Yd(t):`__@${e}`}(n.iteratorSymbolName)),s=!o||16777216&o.flags?void 0:Sl(o);if(uc(s))return i?ti:OP(e,n.iterableCacheKey,ti);const c=s?Y_(s,0):void 0;if(!ce(c))return i?ni:OP(e,n.iterableCacheKey,ni);const l=null!=(a=KP(hy(W(c,Rp)),n,t,r,i))?a:ni;return i?l:OP(e,n.iterableCacheKey,l)}function HP(e,n,t){const r=t?Wo.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Wo.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return ma(e,!!SM(n)||!t&&TI(e.parent)&&e.parent.expression===e&&Ym(!1)!==kt&&WE(n,Ym(!1)),r,Us(n))}function KP(e,n,t,r,i){if(uc(e))return ti;let a=WP(e,n)||function(e,n){const t=n.getGlobalIterableIteratorType(!1);if(kl(e,t)){const[r]=bf(e),i=WP(t,n)||$P(t,n,void 0,void 0,!1),{returnType:a,nextType:o}=i===ni?ii:i;return OP(e,n.iteratorCacheKey,RP(r,a,o))}if(kl(e,n.getGlobalIteratorType(!1))||kl(e,n.getGlobalGeneratorType(!1))){const[t,r,i]=bf(e);return OP(e,n.iteratorCacheKey,RP(t,r,i))}}(e,n);return a===ni&&t&&(a=void 0,i=!0),null!=a||(a=$P(e,n,t,r,i)),a===ni?void 0:a}function WP(e,n){return DP(e,n.iteratorCacheKey)}function zP(e,n){const t=dc(e,"done")||Fn;return WE(0===n?Fn:Bn,t)}function qP(e){return zP(e,0)}function JP(e){return zP(e,1)}function XP(e){if(uc(e))return ti;const n=DP(e,"iterationTypesOfIteratorResult");if(n)return n;if(kl(e,(t=!1,hr||(hr=Pm("IteratorYieldResult",1,t))||kt))){return OP(e,"iterationTypesOfIteratorResult",RP(bf(e)[0],void 0,void 0))}var t;if(kl(e,function(e){return gr||(gr=Pm("IteratorReturnResult",1,e))||kt}(!1))){return OP(e,"iterationTypesOfIteratorResult",RP(void 0,bf(e)[0],void 0))}const r=PL(e,qP),i=r!==zn?dc(r,"value"):void 0,a=PL(e,JP),o=a!==zn?dc(a,"value"):void 0;return OP(e,"iterationTypesOfIteratorResult",i||o?RP(i,o||Wn,void 0):ni)}function YP(e,n,t,r,a){var o,s,c,l;const d=J_(e,t);if(!d&&"next"!==t)return;const u=!d||"next"===t&&16777216&d.flags?void 0:"next"===t?Sl(d):uL(Sl(d),2097152);if(uc(u))return"next"===t?ti:ri;const _=u?Y_(u,0):i;if(0===_.length){if(r){const e="next"===t?n.mustHaveANextMethodDiagnostic:n.mustBeAMethodDiagnostic;a?(null!=a.errors||(a.errors=[]),a.errors.push(qf(r,e,t))):_a(r,e,t)}return"next"===t?ni:void 0}if((null==u?void 0:u.symbol)&&1===_.length){const e=n.getGlobalGeneratorType(!1),r=n.getGlobalIteratorType(!1),i=(null==(s=null==(o=e.symbol)?void 0:o.members)?void 0:s.get(t))===u.symbol,a=!i&&(null==(l=null==(c=r.symbol)?void 0:c.members)?void 0:l.get(t))===u.symbol;if(i||a){const n=i?e:r,{mapper:a}=u;return RP(oE(n.typeParameters[0],a),oE(n.typeParameters[1],a),"next"===t?oE(n.typeParameters[2],a):void 0)}}let p,f,m,h,g;for(const i of _)"throw"!==t&&ce(i.parameters)&&(p=Te(p,TD(i,0))),f=Te(f,Rp(i));if("throw"!==t){const e=p?Pg(p):xn;if("next"===t)h=e;else if("return"===t){m=Te(m,n.resolveIterationType(e,r)||un)}}const y=f?hy(f):zn,v=XP(n.resolveIterationType(y,r)||un);return v===ni?(r&&(a?(null!=a.errors||(a.errors=[]),a.errors.push(qf(r,n.mustHaveAValueDiagnostic,t))):_a(r,n.mustHaveAValueDiagnostic,t)),g=un,m=Te(m,un)):(g=v.yieldType,m=Te(m,v.returnType)),RP(g,Pg(m),h)}function $P(e,n,t,r,i){const a=NP([YP(e,n,"next",t,r),YP(e,n,"return",t,r),YP(e,n,"throw",t,r)]);return i?a:OP(e,n.iteratorCacheKey,a)}function QP(e,n,t){if(uc(n))return;const r=ZP(n,t);return r&&r[oB(e)]}function ZP(e,n){if(uc(e))return ti;const t=n?ai:oi;return MP(e,n?2:1,void 0)||function(e,n,t,r){return KP(e,n,t,r,!1)}(e,t,void 0,void 0)}function eF(e){eU(e)||function(e){let n=e;for(;n;){if(wd(n))return QB(e,Wo.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 253:if(e.label&&n.label.escapedText===e.label.escapedText){return!!(248===e.kind&&!yu(n.statement,!0))&&QB(e,Wo.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 252:if(249===e.kind&&!e.label)return!1;break;default:if(yu(n,!1)&&!e.label)return!1}n=n.parent}if(e.label){return QB(e,249===e.kind?Wo.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:Wo.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}QB(e,249===e.kind?Wo.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:Wo.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)}(e)}function nF(e,n){const t=!!(2&n);if(!!(1&n)){const n=QP(1,e,t);return n?t?DM(IM(n)):n:mn}return t?DM(e)||mn:e}function tF(e,n){const t=nF(n,ky(e));return!!t&&yO(t,16387)}function rF(e){eU(e)||IC(e.expression)&&!e.expression.escapedText&&function(e,n,t,r,i){const a=Dp(e);if(!XB(a)){const o=rm(a,e.pos);return Ji.add(kT(a,oc(o),0,n,t,r,i)),!0}}(e,Wo.Line_break_not_permitted_here),e.expression&&ZO(e.expression)}function iF(e,n,t){const r=np(e);if(0===r.length)return;for(const a of g_(e))t&&4194304&a.flags||aF(e,a,Cy(a,8576,!0),Cl(a));const i=n.valueDeclaration;if(i&&Fd(i))for(const a of i.members)if(!mb(a)&&!qd(a)){const n=Qo(a);aF(e,n,YO(a.name.expression),Cl(n))}if(r.length>1)for(const a of r)oF(e,a)}function aF(e,n,t,r){const i=n.valueDeclaration,a=Xc(i);if(a&&wC(a))return;const o=ip(e,t),s=2&YE(e)?cp(e.symbol,261):void 0,c=i&&223===i.kind||a&&164===a.kind?i:void 0,l=es(n)===e.symbol?i:void 0;for(const d of o){const t=d.declaration&&es(Qo(d.declaration))===e.symbol?d.declaration:void 0,i=l||t||(s&&!ce(td(e),(e=>!!y_(e,n.escapedName)&&!!rp(e,d.keyType)))?s:void 0);if(i&&!WE(r,d.type)){const e=ua(i,Wo.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Gs(n),Us(r),Us(d.keyType),Us(d.type));c&&i!==c&&cS(e,qf(c,Wo._0_is_declared_here,Gs(n))),Ji.add(e)}}}function oF(e,n){const t=n.declaration,r=ip(e,n.keyType),i=2&YE(e)?cp(e.symbol,261):void 0,a=t&&es(Qo(t))===e.symbol?t:void 0;for(const o of r){if(o===n)continue;const t=o.declaration&&es(Qo(o.declaration))===e.symbol?o.declaration:void 0,r=a||t||(i&&!ce(td(e),(e=>!!tp(e,n.keyType)&&!!rp(e,o.keyType)))?i:void 0);r&&!WE(n.type,o.type)&&_a(r,Wo._0_index_type_1_is_not_assignable_to_2_index_type_3,Us(n.keyType),Us(n.type),Us(o.keyType),Us(o.type))}}function sF(e,n){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":_a(e,n,e.escapedText)}}function cF(e){let n=!1;if(e)for(let r=0;r<e.length;r++){const n=e[r];eM(n),l(t(n,r))}function t(t,r){return()=>{t.default?(n=!0,function(e,n,t){function r(e){if(180===e.kind){const r=fm(e);if(262144&r.flags)for(let i=t;i<n.length;i++)r.symbol===Qo(n[i])&&_a(e,Wo.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}CD(e,r)}r(e)}(t.default,e,r)):n&&_a(t,Wo.Required_type_parameters_may_not_follow_optional_type_parameters);for(let n=0;n<r;n++)e[n].symbol===t.symbol&&_a(t.name,Wo.Duplicate_identifier_0,Vf(t.name))}}}function lF(e){if(e.declarations&&1===e.declarations.length)return;const n=wa(e);if(!n.typeParametersChecked){n.typeParametersChecked=!0;const t=function(e){return j(e.declarations,(e=>260===e.kind||261===e.kind))}(e);if(!t||t.length<=1)return;if(!dF(t,hd(e).localTypeParameters,Ml)){const n=Gs(e);for(const e of t)_a(e.name,Wo.All_declarations_of_0_must_have_identical_type_parameters,n)}}}function dF(e,n,t){const r=S(n),i=hp(n);for(const a of e){const e=t(a),o=e.length;if(o<i||o>r)return!1;for(let t=0;t<o;t++){const r=e[t],i=n[t];if(r.name.escapedText!==i.symbol.escapedName)return!1;const a=Pl(r),o=a&&Fb(a),s=T_(i);if(o&&s&&!OE(o,s))return!1;const c=r.default&&Fb(r.default),l=D_(i);if(c&&l&&!OE(c,l))return!1}}return!0}function uF(e){var n;const t=!I&&L<99&&mh(!1,e),r=L<=9,i=!w||L<9;if(t||r)for(const a of e.members){if(t&&hh(!1,a,e))return null!=(n=De($c(e)))?n:e;if(r){if(ZC(a))return a;if(mb(a)&&(bd(a)||i&&lU(a)))return a}}}function _F(e){!function(e){const n=Dp(e);(function(e){let n=!1,t=!1;if(!LB(e)&&e.heritageClauses)for(const r of e.heritageClauses){if(94===r.token){if(n)return YB(r,Wo.extends_clause_already_seen);if(t)return YB(r,Wo.extends_clause_must_precede_implements_clause);if(r.types.length>1)return YB(r.types[1],Wo.Classes_can_only_extend_a_single_class);n=!0}else{if(Nt.assert(117===r.token),t)return YB(r,Wo.implements_clause_already_seen);t=!0}DB(r)}})(e)||IB(e.typeParameters,n)}(e),KM(e),fP(e,e.name),cF(Ml(e)),xM(e);const n=Qo(e),t=hd(n),r=nu(t),i=Sl(n);lF(n),TM(n),function(e){const n=new Map,t=new Map,r=new Map;for(const a of e.members)if(173===a.kind)for(const e of a.parameters)Ac(e,a)&&!Jd(e.name)&&i(n,e.name,e.name.escapedText,3);else{const e=mb(a),o=a.name;if(!o)continue;const s=wC(o),c=s&&e?16:0,l=s?r:e?t:n,d=o&&Oy(o);if(d)switch(a.kind){case 174:i(l,o,d,1|c);break;case 175:i(l,o,d,2|c);break;case 169:i(l,o,d,3|c);break;case 171:i(l,o,d,8|c)}}function i(e,n,t,r){const i=e.get(t);if(i)if((16&i)!==(16&r))_a(n,Wo.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,sf(n));else{const a=!!(8&i),o=!!(8&r);a||o?a!==o&&_a(n,Wo.Duplicate_identifier_0,sf(n)):i&r&-17?_a(n,Wo.Duplicate_identifier_0,sf(n)):e.set(t,i|r)}else e.set(t,r)}}(e);!!(16777216&e.flags)||function(e){for(const n of e.members){const t=n.name;if(mb(n)&&t){const n=Oy(t);switch(n){case"name":case"length":case"caller":case"arguments":case"prototype":_a(t,Wo.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,n,Qs(Qo(e)))}}}}(e);const a=py(e);if(a){A(a.typeArguments,zF),L<2&&SB(a.parent,1);const n=fy(e);n&&n!==a&&ZO(n.expression);const o=td(t);o.length&&l((()=>{const n=o[0],s=Zl(t),c=G_(s);if(function(e,n){const t=Y_(e,1);if(t.length){const r=t[0].declaration;if(r&&pb(r,8)){cG(n,XE(e.symbol))||_a(n,Wo.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Ro(e.symbol))}}}(c,a),zF(a.expression),ce(a.typeArguments)){A(a.typeArguments,zF);for(const e of $l(c,a.typeArguments,a))if(!pM(a,e.typeParameters))break}const l=nu(n,t.thisType);if($E(r,l,void 0)?$E(i,DE(c),e.name||e,Wo.Class_static_side_0_incorrectly_extends_base_class_static_side_1):mF(e,r,l,Wo.Class_0_incorrectly_extends_base_class_1),8650752&s.flags)if(Jl(i)){Y_(s,1).some((e=>4&e.flags))&&!fb(e,256)&&_a(e.name||e,Wo.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}else _a(e.name||e,Wo.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);if(!(c.symbol&&32&c.symbol.flags)&&!(8650752&s.flags)){A(Ql(c,a.typeArguments,a),(e=>!JN(e.declaration)&&!OE(Rp(e),n)))&&_a(a.expression,Wo.Base_constructors_must_all_have_the_same_return_type)}!function(e,n){var t,r,i,a;const o=b_(n);e:for(const s of o){const o=hF(s);if(4194304&o.flags)continue;const c=y_(e,o.escapedName);if(!c)continue;const l=hF(c),d=GE(o);if(Nt.assert(!!l,"derived should point to something, even if it is the base class' declaration."),l===o){const t=XE(e.symbol);if(256&d&&(!t||!fb(t,256))){for(const t of td(e)){if(t===n)continue;const e=y_(t,o.escapedName),r=e&&hF(e);if(r&&r!==o)continue e}228===t.kind?_a(t,Wo.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Gs(s),Us(n)):_a(t,Wo.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Us(e),Gs(s),Us(n))}}else{const s=GE(l);if(8&d||8&s)continue;let c;const u=98308&o.flags,_=98308&l.flags;if(u&&_){if((6&FE(o)?null==(t=o.declarations)?void 0:t.some((e=>gF(e,d))):null==(r=o.declarations)?void 0:r.every((e=>gF(e,d))))||262144&FE(o)||l.valueDeclaration&&Yk(l.valueDeclaration))continue;const c=4!==u&&4===_;if(c||4===u&&4!==_){const t=c?Wo._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:Wo._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;_a(Xc(l.valueDeclaration)||l.valueDeclaration,t,Gs(o),Us(n),Us(e))}else if(w){const t=null==(i=l.declarations)?void 0:i.find((e=>169===e.kind&&!e.initializer));if(t&&!(33554432&l.flags)&&!(256&d)&&!(256&s)&&!(null==(a=l.declarations)?void 0:a.some((e=>!!(16777216&e.flags))))){const r=ss(XE(e.symbol)),i=t.name;if(t.exclamationToken||!r||!IC(i)||!F||!vF(i,e,r)){const e=Wo.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;_a(Xc(l.valueDeclaration)||l.valueDeclaration,e,Gs(o),Us(n))}}}continue}if(Ww(o)){if(Ww(l)||4&l.flags)continue;Nt.assert(!!(98304&l.flags)),c=Wo.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else c=98304&o.flags?Wo.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Wo.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;_a(Xc(l.valueDeclaration)||l.valueDeclaration,c,Us(n),Gs(o),Us(e))}}}(t,n)}))}!function(e,n,t,r){const i=py(e),a=i&&td(n),o=(null==a?void 0:a.length)?nu(Me(a),n.thisType):void 0,s=Zl(n);for(const c of e.members)vb(c)||(ek(c)&&A(c.parameters,(i=>{Ac(i,c)&&pF(e,r,s,o,n,t,i,!0)})),pF(e,r,s,o,n,t,c,!1))}(e,t,r,i);const o=my(e);if(o)for(const c of o)qb(c.expression)&&!jl(c.expression)||_a(c.expression,Wo.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),mM(c),l(s(c));function s(n){return()=>{const i=H_(Fb(n));if(!_c(i))if(id(i)){const n=i.symbol&&32&i.symbol.flags?Wo.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:Wo.Class_0_incorrectly_implements_interface_1,a=nu(i,t.thisType);$E(r,a,void 0)||mF(e,r,a,n)}else _a(n,Wo.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}l((()=>{iF(t,n),iF(i,n,!0),aM(e),function(e){if(!F||!z||16777216&e.flags)return;const n=ss(e);for(const t of e.members)if(!(2&Lb(t))&&!mb(t)&&yF(t)){const e=t.name;if(IC(e)||wC(e)||WC(e)){const r=Sl(Qo(t));3&r.flags||yT(r)||n&&vF(e,r,n)||_a(t.name,Wo.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Vf(e))}}}(e)}))}function pF(e,n,t,r,i,a,o,s,c=!0){const l=o.name&&_G(o.name)||_G(o);return l?fF(e,n,t,r,i,a,gb(o),yb(o),mb(o),s,jc(l),c?o:void 0):0}function fF(e,n,t,r,i,a,o,s,c,l,d,u){const _=Ih(e),p=!!(16777216&e.flags);if(r&&(o||x.noImplicitOverride)){const e=Gc(d),i=c?t:r,f=J_(c?n:a,e),m=J_(i,e),h=Us(r);if(f&&!m&&o){if(u){const e=RR(d,i);e?_a(u,_?Wo.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:Wo.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,h,Gs(e)):_a(u,_?Wo.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:Wo.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,h)}return 2}if(f&&(null==m?void 0:m.declarations)&&x.noImplicitOverride&&!p){const e=ce(m.declarations,yb);if(o)return 0;if(!e){if(u){_a(u,l?_?Wo.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Wo.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:_?Wo.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Wo.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,h)}return 1}if(s&&e)return u&&_a(u,Wo.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,h),1}}else if(o){if(u){const e=Us(i);_a(u,_?Wo.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:Wo.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function mF(e,n,t,r){let i=!1;for(const a of e.members){if(mb(a))continue;const e=a.name&&_G(a.name)||_G(a);if(e){const r=J_(n,e.escapedName),o=J_(t,e.escapedName);if(r&&o){const s=()=>NT(void 0,Wo.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Gs(e),Us(n),Us(t));$E(Sl(r),Sl(o),a.name||a,void 0,s)||(i=!0)}}}i||$E(n,t,e.name||e,r)}function hF(e){return 1&FE(e)?e.links.target:e}function gF(e,n){return 256&n&&(!YC(e)||!e.initializer)||PI(e.parent)}function yF(e){return 169===e.kind&&!yb(e)&&!e.exclamationToken&&!e.initializer}function vF(e,n,t){const r=WC(e)?gA.createElementAccessExpression(gA.createThis(),e.expression):gA.createPropertyAccessExpression(gA.createThis(),e);CS(r.expression,r),CS(r,t),r.flowNode=t.returnFlowNode;return!yT(sC(r,n,$x(n)))}function bF(e){LB(e)||function(e){let n=!1;if(e.heritageClauses)for(const t of e.heritageClauses){if(94!==t.token)return Nt.assert(117===t.token),YB(t,Wo.Interface_declaration_cannot_have_implements_clause);if(n)return YB(t,Wo.extends_clause_already_seen);n=!0,DB(t)}}(e),cF(e.typeParameters),l((()=>{sF(e.name,Wo.Interface_name_cannot_be_0),xM(e);const n=Qo(e);lF(n);const t=cp(n,261);if(e===t){const t=hd(n),r=nu(t);if(function(e,n){const t=td(e);if(t.length<2)return!0;const r=new Map;A(Ud(e).declaredProperties,(n=>{r.set(n.escapedName,{prop:n,containingType:e})}));let i=!0;for(const a of t){const t=b_(nu(a,e.thisType));for(const o of t){const t=r.get(o.escapedName);if(t){if(t.containingType!==e&&0===px(t.prop,o,ME)){i=!1;const r=Us(t.containingType),s=Us(a);let c=NT(void 0,Wo.Named_property_0_of_types_1_and_2_are_not_identical,Gs(o),r,s);c=NT(c,Wo.Interface_0_cannot_simultaneously_extend_types_1_and_2,Us(e),r,s),Ji.add(Yf(Dp(n),n,c))}}else r.set(o.escapedName,{prop:o,containingType:a})}}return i}(t,e.name)){for(const n of td(t))$E(r,nu(n,t.thisType),e.name,Wo.Interface_0_incorrectly_extends_interface_1);iF(t,n)}}iM(e)})),A(gy(e),(e=>{qb(e.expression)&&!jl(e.expression)||_a(e.expression,Wo.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),mM(e)})),A(e.members,zF),l((()=>{aM(e),qM(e)}))}function EF(e){const n=Ra(e);if(!(1024&n.flags)){n.flags|=1024;let t=0;for(const n of e.members){const e=TF(n,t);Ra(n).enumMemberValue=e,t="number"===typeof e?e+1:void 0}}}function TF(e,n){if(Hf(e.name))_a(e.name,Wo.Computed_property_names_are_not_allowed_in_enums);else{const n=Wf(e.name);VS(n)&&!PS(n)&&_a(e.name,Wo.An_enum_member_cannot_have_a_numeric_name)}return e.initializer?function(e){const n=cm(e.parent),t=e.initializer,r=xF(t,e);void 0!==r?n&&"number"===typeof r&&!isFinite(r)&&_a(t,isNaN(r)?Wo.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:Wo.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):n?_a(t,Wo.const_enum_member_initializers_must_be_constant_expressions):16777216&e.parent.flags?_a(t,Wo.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):$E(ZO(t),On,t,Wo.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values);return r}(e):16777216&e.parent.flags&&!cm(e.parent)?void 0:void 0!==n?n:void _a(e.name,Wo.Enum_member_must_have_initializer)}function xF(e,n){switch(e.kind){case 221:const t=xF(e.operand,n);if("number"===typeof t)switch(e.operator){case 39:return t;case 40:return-t;case 54:return~t}break;case 223:const r=xF(e.left,n),i=xF(e.right,n);if("number"===typeof r&&"number"===typeof i)switch(e.operatorToken.kind){case 51:return r|i;case 50:return r&i;case 48:return r>>i;case 49:return r>>>i;case 47:return r<<i;case 52:return r^i;case 41:return r*i;case 43:return r/i;case 39:return r+i;case 40:return r-i;case 44:return r%i;case 42:return r**i}else if(("string"===typeof r||"number"===typeof r)&&("string"===typeof i||"number"===typeof i)&&39===e.operatorToken.kind)return""+r+i;break;case 10:case 14:return e.text;case 225:return function(e,n){let t=e.head.text;for(const r of e.templateSpans){const e=xF(r.expression,n);if(void 0===e)return;t+=e,t+=r.literal.text}return t}(e,n);case 8:return nU(e),+e.text;case 214:return xF(e.expression,n);case 79:if(PS(e.escapedText))return+e.escapedText;case 208:if(qb(e)){const t=No(e,111551,!0);if(t){if(8&t.flags)return SF(e,t,n);if(pC(t)){const e=t.valueDeclaration;if(e&&!e.type&&e.initializer&&e!==n&&Oa(e,n))return xF(e.initializer,e)}}}break;case 209:const a=e.expression;if(qb(a)&&o_(e.argumentExpression)){const t=No(a,111551,!0);if(t&&384&t.flags){const r=Gc(e.argumentExpression.text),i=t.exports.get(r);if(i)return SF(e,i,n)}}}}function SF(e,n,t){const r=n.valueDeclaration;if(r&&r!==t)return Oa(r,t)?WG(r):(_a(e,Wo.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);_a(e,Wo.Property_0_is_used_before_being_assigned,Gs(n))}function AF(e){l((()=>function(e){LB(e),fP(e,e.name),xM(e),e.members.forEach(LF),EF(e);const n=Qo(e),t=cp(n,e.kind);if(e===t){if(n.declarations&&n.declarations.length>1){const t=cm(e);A(n.declarations,(e=>{GI(e)&&cm(e)!==t&&_a(Xc(e),Wo.Enum_declarations_must_all_be_const_or_non_const)}))}let t=!1;A(n.declarations,(e=>{if(263!==e.kind)return!1;const n=e;if(!n.members.length)return!1;const r=n.members[0];r.initializer||(t?_a(r.name,Wo.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):t=!0)}))}}(e)))}function LF(e){wC(e.name)&&_a(e,Wo.An_enum_member_cannot_be_named_with_a_private_identifier),e.initializer&&ZO(e.initializer)}function CF(e){e.body&&(zF(e.body),Sf(e)||qM(e)),l((function(){var n,t;const r=Sf(e),i=16777216&e.flags;r&&!i&&_a(e.name,Wo.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const a=yf(e),o=a?Wo.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:Wo.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(BF(e,o))return;LB(e)||i||10!==e.name.kind||QB(e.name,Wo.Only_ambient_modules_can_use_quoted_names);IC(e.name)&&fP(e,e.name);xM(e);const s=Qo(e);if(512&s.flags&&!i&&nB(e,sx(x))){if(XT(x)&&!Dp(e).externalModuleIndicator&&_a(e.name,Wo.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,ye),(null==(n=s.declarations)?void 0:n.length)>1){const n=function(e){const n=e.declarations;if(n)for(const t of n)if((260===t.kind||259===t.kind&&jp(t.body))&&!(16777216&t.flags))return t}(s);n&&(Dp(e)!==Dp(n)?_a(e.name,Wo.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):e.pos<n.pos&&_a(e.name,Wo.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const t=cp(s,260);t&&function(e,n){const t=Bf(e),r=Bf(n);return Na(t)?Na(r):!Na(r)&&t===r}(e,t)&&(Ra(e).flags|=2048)}if(x.verbatimModuleSyntax&&308===e.parent.kind&&(1===k||1===e.parent.impliedNodeFormat)){const n=null==(t=e.modifiers)?void 0:t.find((e=>93===e.kind));n&&_a(n,Wo.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(a)if(Af(e)){if((r||33554432&Qo(e).flags)&&e.body)for(const n of e.body.statements)kF(n,r)}else Na(e.parent)?r?_a(e.name,Wo.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):rc(Py(e.name))&&_a(e.name,Wo.Ambient_module_declaration_cannot_specify_relative_module_name):_a(e.name,r?Wo.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:Wo.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}))}function kF(e,n){switch(e.kind){case 240:for(const r of e.declarationList.declarations)kF(r,n);break;case 274:case 275:YB(e,Wo.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 268:case 269:YB(e,Wo.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 205:case 257:const t=e.name;if(Jd(t)){for(const e of t.elements)kF(e,n);break}case 260:case 263:case 259:case 261:case 264:case 262:if(n)return}}function IF(e){const n=vg(e);if(!n||Vp(n))return!1;if(!_C(n))return _a(n,Wo.String_literal_expected),!1;const t=265===e.parent.kind&&yf(e.parent.parent);if(308!==e.parent.kind&&!t)return _a(n,275===e.kind?Wo.Export_declarations_are_not_permitted_in_a_namespace:Wo.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(t&&rc(n.text)&&!Xs(e))return _a(e,Wo.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!HI(e)&&e.assertClause){let n=!1;for(const t of e.assertClause.elements)_C(t.value)||(n=!0,_a(t.value,Wo.Import_assertion_values_must_be_string_literal_expressions));return!n}return!0}function wF(e){var n,t,r,i,a;let o=Qo(e);const s=To(o);if(s!==on){if(o=$o(o.exportSymbol||o),Ih(e)&&!(111551&s.flags)&&!md(e)){const c=_d(e)?e.propertyName||e.name:qc(e)?e.name:e;if(Nt.assert(277!==e.kind),278===e.kind){const i=_a(c,Wo.Types_cannot_appear_in_export_declarations_in_JavaScript_files),a=null==(t=null==(n=Dp(e).symbol)?void 0:n.exports)?void 0:t.get((e.propertyName||e.name).escapedText);if(a===s){const e=null==(r=a.declarations)?void 0:r.find(Ju);e&&cS(i,qf(e,Wo._0_is_automatically_exported_here,Bc(a.escapedName)))}}else{Nt.assert(257!==e.kind);const n=Mc(e,yt(KI,HI)),t=null!=(a=n&&(null==(i=hg(n))?void 0:i.text))?a:"...",r=Bc(IC(c)?c.escapedText:o.escapedName);_a(c,Wo._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,r,`import("${t}").${r}`)}return}const c=xo(s);if(c&((1160127&o.flags?111551:0)|(788968&o.flags?788968:0)|(1920&o.flags?1920:0))){_a(e,278===e.kind?Wo.Export_declaration_conflicts_with_exported_declaration_of_0:Wo.Import_declaration_conflicts_with_local_declaration_of_0,Gs(o))}if(XT(x)&&!md(e)&&!(16777216&e.flags)){const n=Co(o),t=!(111551&c);if(t||n)switch(e.kind){case 270:case 273:case 268:if(x.preserveValueImports||x.verbatimModuleSyntax){Nt.assertIsDefined(e.name,"An ImportClause with a symbol should have a name");const r=x.verbatimModuleSyntax&&Lh(e)?Wo.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:t?x.verbatimModuleSyntax?Wo._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Wo._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:x.verbatimModuleSyntax?Wo._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Wo._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,i=Uc(273===e.kind&&e.propertyName||e.name);Ba(_a(e,r,i),t?void 0:n,i)}t&&268===e.kind&&pb(e,1)&&_a(e,Wo.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,ye);break;case 278:if(x.verbatimModuleSyntax||Dp(n)!==Dp(e)){const r=Uc(e.propertyName||e.name);Ba(t?_a(e,Wo.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,ye):_a(e,Wo._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,r,ye),t?void 0:n,r);break}}!x.verbatimModuleSyntax||268===e.kind||Ih(e)||1!==k&&1!==Dp(e).impliedNodeFormat||_a(e,Wo.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(QI(e)){const n=NF(o,e);RF(n)&&n.declarations&&ya(e,n.declarations,n.escapedName)}}}function RF(e){return!!e.declarations&&N(e.declarations,(e=>!!(268435456&Nc(e))))}function NF(e,n){if(!(2097152&e.flags))return e;const t=To(e);if(t===on)return t;for(;2097152&e.flags;){const r=II(e);if(!r)break;if(r===t)break;if(r.declarations&&S(r.declarations)){if(RF(r)){ya(n,r.declarations,r.escapedName);break}if(e===t)break;e=r}}return t}function DF(e){fP(e,e.name),wF(e),273===e.kind&&"default"===Uc(e.propertyName||e.name)&&ex(x)&&4!==k&&(k<5||1===Dp(e).impliedNodeFormat)&&SB(e,131072)}function OF(e){var n;if(e.assertClause){const t=AH(e),r=CH(e.assertClause,t?QB:void 0);if(t&&r)return yv()||QB(e.assertClause,Wo.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),3!==zT(x)&&99!==zT(x)?QB(e.assertClause,Wo.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if(99!==(199===k&&e.moduleSpecifier&&no(e.moduleSpecifier))&&99!==k)return QB(e.assertClause,199===k?Wo.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:Wo.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(KI(e)?null==(n=e.importClause)?void 0:n.isTypeOnly:e.isTypeOnly)return QB(e.assertClause,Wo.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(r)return QB(e.assertClause,Wo.resolution_mode_can_only_be_set_for_type_only_imports)}}function FF(e){if(!BF(e,Ih(e)?Wo.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Wo.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!LB(e)&&ub(e)&&YB(e,Wo.An_import_declaration_cannot_have_modifiers),IF(e)){const n=e.importClause;if(n&&!function(e){var n;if(e.isTypeOnly&&e.name&&e.namedBindings)return QB(e,Wo.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(e.isTypeOnly&&272===(null==(n=e.namedBindings)?void 0:n.kind))return tU(e.namedBindings);return!1}(n)&&(n.name&&DF(n),n.namedBindings))if(271===n.namedBindings.kind)DF(n.namedBindings),4!==k&&(k<5||1===Dp(e).impliedNodeFormat)&&ex(x)&&SB(e,65536);else{Oo(e,e.moduleSpecifier)&&A(n.namedBindings.elements,DF)}}OF(e)}}function GF(e){if(!BF(e,Ih(e)?Wo.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:Wo.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!LB(e)&&_b(e)&&YB(e,Wo.An_export_declaration_cannot_have_modifiers),e.moduleSpecifier&&e.exportClause&&nw(e.exportClause)&&S(e.exportClause.elements)&&0===L&&SB(e,4194304),function(e){var n;if(e.isTypeOnly&&276===(null==(n=e.exportClause)?void 0:n.kind))return tU(e.exportClause)}(e),!e.moduleSpecifier||IF(e))if(e.exportClause&&!YI(e.exportClause)){A(e.exportClause.elements,HF);const n=265===e.parent.kind&&yf(e.parent.parent),t=!n&&265===e.parent.kind&&!e.moduleSpecifier&&16777216&e.flags;308===e.parent.kind||n||t||_a(e,Wo.Export_declarations_are_not_permitted_in_a_namespace)}else{const n=Oo(e,e.moduleSpecifier);n&&jo(n)?_a(e.moduleSpecifier,Wo.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Gs(n)):e.exportClause&&wF(e.exportClause),4!==k&&(k<5||1===Dp(e).impliedNodeFormat)&&(e.exportClause?ex(x)&&SB(e,65536):SB(e,32768))}OF(e)}}function BF(e,n){const t=308===e.parent.kind||265===e.parent.kind||264===e.parent.kind;return t||YB(e,n),!t}function UF(e){return KI(e)&&e.importClause&&!e.importClause.isTypeOnly&&Tg(e.importClause,(e=>!!Qo(e).isReferenced))&&!DG(e.importClause,!0)&&!function(e){return Tg(e,(e=>!!wa(Qo(e)).constEnumReferenced))}(e.importClause)}function jF(e){return HI(e)&&cw(e.moduleReference)&&!e.isTypeOnly&&Qo(e).isReferenced&&!DG(e,!1)&&!wa(Qo(e)).constEnumReferenced}function HF(e){if(wF(e),ox(x)&&ec(e.propertyName||e.name,!0),e.parent.parent.moduleSpecifier)ex(x)&&4!==k&&(k<5||1===Dp(e).impliedNodeFormat)&&"default"===Uc(e.propertyName||e.name)&&SB(e,131072);else{const n=e.propertyName||e.name,t=Fa(n,n.escapedText,2998271,void 0,void 0,!0);if(t&&(t===ue||t===fe||t.declarations&&Na(sc(t.declarations[0]))))_a(n,Wo.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Uc(n));else{e.isTypeOnly||e.parent.parent.isTypeOnly||ko(e);const n=t&&(2097152&t.flags?To(t):t);(!n||111551&xo(n))&&OO(e.propertyName||e.name)}}}function KF(e){const n=Qo(e),t=wa(n);if(!t.exportsChecked){const e=n.exports.get("export=");if(e&&function(e){return gp(e.exports,((e,n)=>"export="!==n))}(n)){const n=Xa(e)||e.valueDeclaration;!n||Xs(n)||Ih(n)||_a(n,Wo.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const r=Jo(n);r&&r.forEach((({declarations:e,flags:n},t)=>{if("__export"===t)return;if(1920&n)return;const r=V(e,gt(zG,vt(PI)));if(!(524288&n&&r<=2)&&r>1&&!WF(e))for(const i of e)iB(i)&&Ji.add(qf(i,Wo.Cannot_redeclare_exported_variable_0,Bc(t)))})),t.exportsChecked=!0}}function WF(e){return e&&e.length>1&&e.every((e=>Ih(e)&&iT(e)&&($h(e.expression)||Zh(e.expression))))}function zF(e){if(e){const t=a;a=e,g=0,function(e){Ng(e)&&A(e.jsDoc,(({comment:n,tags:t})=>{qF(n),A(t,(n=>{qF(n.comment),Ih(e)&&zF(n)}))}));const t=e.kind;if(n)switch(t){case 264:case 260:case 261:case 259:n.throwIfCancellationRequested()}t>=240&&t<=256&&Rg(e)&&e.flowNode&&!tC(e.flowNode)&&fa(!1===x.allowUnreachableCode,e,Wo.Unreachable_code_detected);switch(t){case 165:return eM(e);case 166:return nM(e);case 169:return oM(e);case 168:return function(e){return wC(e.name)&&_a(e,Wo.Private_identifiers_are_not_allowed_outside_class_bodies),oM(e)}(e);case 182:case 181:case 176:case 177:case 178:return rM(e);case 171:case 170:return function(e){jB(e)||MB(e.name),QC(e)&&e.asteriskToken&&IC(e.name)&&"constructor"===Uc(e.name)&&_a(e.name,Wo.Class_constructor_may_not_be_a_generator),zM(e),fb(e,256)&&171===e.kind&&e.body&&_a(e,Wo.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Vf(e.name)),wC(e.name)&&!Xm(e)&&_a(e,Wo.Private_identifiers_are_not_allowed_outside_class_bodies),sM(e)}(e);case 172:return function(e){LB(e),CD(e,zF)}(e);case 173:return cM(e);case 174:case 175:return dM(e);case 180:return mM(e);case 179:return function(e){const n=function(e){switch(e.parent.kind){case 216:case 176:case 259:case 215:case 181:case 171:case 170:const n=e.parent;if(e===n.type)return n}}(e);if(!n)return void _a(e,Wo.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);const t=xp(n),r=Ip(t);if(!r)return;zF(e.type);const{parameterName:i}=e;if(0===r.kind||2===r.kind)Ob(i);else if(r.parameterIndex>=0){if(sB(t)&&r.parameterIndex===t.parameters.length-1)_a(i,Wo.A_type_predicate_cannot_reference_a_rest_parameter);else if(r.type){const n=()=>NT(void 0,Wo.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);$E(r.type,Sl(t.parameters[r.parameterIndex]),e.type,void 0,n)}}else if(i){let t=!1;for(const{name:e}of n.parameters)if(Jd(e)&&tM(e,i,r.parameterName)){t=!0;break}t||_a(e.parameterName,Wo.Cannot_find_parameter_0,r.parameterName)}}(e);case 183:return function(e){gm(e)}(e);case 184:return function(e){A(e.members,zF),l((function(){const n=Wv(e);iF(n,n.symbol),aM(e),iM(e)}))}(e);case 185:return function(e){zF(e.elementType)}(e);case 186:return function(e){const n=e.elements;let t=!1,r=!1;const i=ce(n,fk);for(const a of n){if(199!==a.kind&&i){QB(a,Wo.Tuple_members_must_all_have_names_or_all_not_have_names);break}const e=Gh(a);if(8&e){const e=Fb(a.type);if(!Ax(e)){_a(a,Wo.A_rest_element_type_must_be_an_array_type);break}(bx(e)||Vx(e)&&4&e.target.combinedFlags)&&(r=!0)}else if(4&e){if(r){QB(a,Wo.A_rest_element_cannot_follow_another_rest_element);break}r=!0}else if(2&e){if(r){QB(a,Wo.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(t){QB(a,Wo.A_required_element_cannot_follow_an_optional_element);break}}A(e.elements,zF),Fb(e)}(e);case 189:case 190:return function(e){A(e.types,zF),Fb(e)}(e);case 193:case 187:case 188:return zF(e.type);case 194:return function(e){Ob(e)}(e);case 195:return vM(e);case 191:return function(e){CD(e,zF)}(e);case 192:return function(e){Mc(e,(e=>e.parent&&191===e.parent.kind&&e.parent.extendsType===e))||QB(e,Wo.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),zF(e.typeParameter);const n=Qo(e.typeParameter);if(n.declarations&&n.declarations.length>1){const e=wa(n);if(!e.typeParametersChecked){e.typeParametersChecked=!0;const t=fd(n),r=lp(n,165);if(!dF(r,[t],(e=>[e]))){const e=Gs(n);for(const n of r)_a(n.name,Wo.All_declarations_of_0_must_have_identical_constraints,e)}}}qM(e)}(e);case 200:return function(e){for(const n of e.templateSpans)zF(n.type),$E(Fb(n.type),it,n.type);Fb(e)}(e);case 202:return function(e){zF(e.argument),e.assertions&&CH(e.assertions.assertClause,QB)&&(yv()||QB(e.assertions.assertClause,Wo.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),3!==zT(x)&&99!==zT(x)&&QB(e.assertions.assertClause,Wo.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext));hM(e)}(e);case 199:return function(e){e.dotDotDotToken&&e.questionToken&&QB(e,Wo.A_tuple_member_cannot_be_both_optional_and_rest),187===e.type.kind&&QB(e.type,Wo.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),188===e.type.kind&&QB(e.type,Wo.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),zF(e.type),Fb(e)}(e);case 331:return function(e){const n=Ug(e);if(!n||!MI(n)&&!nI(n))return void _a(n,Wo.JSDoc_0_is_not_attached_to_a_class,Uc(e.tagName));const t=Il(n).filter(Xw);Nt.assert(t.length>0),t.length>1&&_a(t[1],Wo.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const r=WM(e.class.expression),i=fy(n);if(i){const n=WM(i.expression);n&&r.escapedText!==n.escapedText&&_a(r,Wo.JSDoc_0_1_does_not_match_the_extends_2_clause,Uc(e.tagName),Uc(r),Uc(n))}}(e);case 332:return function(e){const n=Ug(e);n&&(MI(n)||nI(n))||_a(n,Wo.JSDoc_0_is_not_attached_to_a_class,Uc(e.tagName))}(e);case 349:case 341:case 343:return function(e){e.typeExpression||_a(e.name,Wo.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&sF(e.name,Wo.Type_alias_name_cannot_be_0),zF(e.typeExpression),cF(Ml(e))}(e);case 348:return function(e){zF(e.constraint);for(const n of e.typeParameters)zF(n)}(e);case 347:return function(e){zF(e.typeExpression)}(e);case 327:case 328:case 329:return function(e){e.name&&uG(e.name,!0)}(e);case 344:case 351:return function(e){zF(e.typeExpression)}(e);case 320:!function(e){l((function(){e.type||Sg(e)||US(e,un)})),rM(e)}(e);case 318:case 317:case 315:case 316:case 325:return XF(e),void CD(e,zF);case 321:return void function(e){XF(e),zF(e.type);const{parent:n}=e;if(qC(n)&&Hw(n.parent))return void(Ge(n.parent.parameters)!==n&&_a(e,Wo.A_rest_parameter_must_be_last_in_a_parameter_list));Nw(n)||_a(e,Wo.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const t=e.parent.parent;if(!cR(t))return void _a(e,Wo.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const r=Fg(t);if(!r)return;const i=Bg(t);i&&Ge(i.parameters).symbol===r||_a(e,Wo.A_rest_parameter_must_be_last_in_a_parameter_list)}(e);case 312:return zF(e.type);case 336:case 338:case 337:return function(e){const n=Vg(e);n&&bd(n)&&_a(e,Wo.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(e);case 353:return function(e){zF(e.typeExpression);const n=Ug(e);if(n){const e=Nl(n,gR);if(S(e)>1)for(let n=1;n<S(e);n++){const t=e[n].tagName;_a(t,Wo._0_tag_already_specified,Uc(t))}}}(e);case 196:return function(e){zF(e.objectType),zF(e.indexType),gM(Iv(e),e)}(e);case 197:return yM(e);case 259:return function(e){l((function(){zM(e),PB(e),fP(e,e.name)}))}(e);case 238:case 265:return sP(e);case 240:return EP(e);case 241:return function(e){eU(e),ZO(e.expression)}(e);case 242:return function(e){eU(e);const n=SP(e.expression);TP(e.expression,n,e.thenStatement),zF(e.thenStatement),239===e.thenStatement.kind&&_a(e.thenStatement,Wo.The_body_of_an_if_statement_cannot_be_the_empty_statement),zF(e.elseStatement)}(e);case 243:return function(e){eU(e),zF(e.statement),SP(e.expression)}(e);case 244:return function(e){eU(e),SP(e.expression),zF(e.statement)}(e);case 245:return function(e){eU(e)||e.initializer&&258===e.initializer.kind&&qB(e.initializer),e.initializer&&(258===e.initializer.kind?A(e.initializer.declarations,vP):ZO(e.initializer)),e.condition&&SP(e.condition),e.incrementor&&ZO(e.incrementor),zF(e.statement),e.locals&&qM(e)}(e);case 246:return AP(e);case 247:return function(e){BB(e);const n=$m(e);e.awaitModifier?n&&ZC(n)?QB(e.awaitModifier,Wo.For_await_loops_cannot_be_used_inside_a_class_static_block):2===(6&ky(n))&&L<99&&SB(e,16384):x.downlevelIteration&&L<2&&SB(e,256);if(258===e.initializer.kind)LP(e);else{const n=e.initializer,t=CP(e);if(206===n.kind||207===n.kind)LO(n,t||mn);else{const r=ZO(n);pO(n,Wo.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,Wo.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),t&&ZE(t,r,n,e.expression)}}zF(e.statement),e.locals&&qM(e)}(e);case 248:case 249:return eF(e);case 250:return function(e){var n;if(eU(e))return;const t=$m(e);if(t&&ZC(t))return void YB(e,Wo.A_return_statement_cannot_be_used_inside_a_class_static_block);if(!t)return void YB(e,Wo.A_return_statement_can_only_be_used_within_a_function_body);const r=Rp(xp(t)),i=ky(t);if(F||e.expression||131072&r.flags){const a=e.expression?OO(e.expression):An;if(175===t.kind)e.expression&&_a(e,Wo.Setters_cannot_return_a_value);else if(173===t.kind)e.expression&&!ZE(a,r,e,e.expression)&&_a(e,Wo.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Fp(t)){const t=null!=(n=nF(r,i))?n:r,o=2&i?LM(a,!1,e,Wo.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a;t&&ZE(o,t,e,e.expression)}}else 173!==t.kind&&x.noImplicitReturns&&!tF(t,r)&&_a(e,Wo.Not_all_code_paths_return_a_value)}(e);case 251:return function(e){eU(e)||32768&e.flags&&YB(e,Wo.with_statements_are_not_allowed_in_an_async_function_block),ZO(e.expression);const n=Dp(e);if(!XB(n)){const t=rm(n,e.pos).start;$B(n,t,e.statement.pos-t,Wo.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(e);case 252:return function(e){let n;eU(e);let t=!1;const r=ZO(e.expression);A(e.caseBlock.clauses,(e=>{var i;293!==e.kind||t||(void 0===n?n=e:(QB(e,Wo.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),t=!0)),292===e.kind&&l((i=e,()=>{const e=ZO(i.expression);kO(r,e)||uT(e,r,i.expression,void 0)})),A(e.statements,zF),x.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&tC(e.fallthroughFlowNode)&&_a(e,Wo.Fallthrough_case_in_switch)})),e.caseBlock.locals&&qM(e.caseBlock)}(e);case 253:return function(e){eU(e)||Mc(e.parent,(n=>Id(n)?"quit":253===n.kind&&n.label.escapedText===e.label.escapedText&&(QB(e.label,Wo.Duplicate_label_0,sf(e.label)),!0))),zF(e.statement)}(e);case 254:return rF(e);case 255:return function(e){eU(e),sP(e.tryBlock);const n=e.catchClause;if(n){if(n.variableDeclaration){const e=n.variableDeclaration;hP(e);const t=Qv(e);if(t){const e=Fb(t);!e||3&e.flags||YB(t,Wo.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)YB(e.initializer,Wo.Catch_clause_variable_cannot_have_an_initializer);else{const e=n.block.locals;e&&yp(n.locals,(n=>{const t=e.get(n);(null==t?void 0:t.valueDeclaration)&&0!==(2&t.flags)&&QB(t.valueDeclaration,Wo.Cannot_redeclare_identifier_0_in_catch_clause,n)}))}}sP(n.block)}e.finallyBlock&&sP(e.finallyBlock)}(e);case 257:return vP(e);case 205:return bP(e);case 260:return function(e){const n=D(e.modifiers,JC);I&&n&&ce(e.members,(e=>hb(e)&&bd(e)))&&QB(n,Wo.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||fb(e,1024)||YB(e,Wo.A_class_declaration_without_the_default_modifier_must_have_a_name),_F(e),A(e.members,zF),qM(e)}(e);case 261:return bF(e);case 262:return function(e){LB(e),sF(e.name,Wo.Type_alias_name_cannot_be_0),xM(e),cF(e.typeParameters),139===e.type.kind?qG.has(e.name.escapedText)&&1===S(e.typeParameters)||_a(e.type,Wo.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(zF(e.type),qM(e))}(e);case 263:return AF(e);case 264:return CF(e);case 269:return FF(e);case 268:return function(e){if(!BF(e,Ih(e)?Wo.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Wo.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(LB(e),Lh(e)||IF(e)))if(DF(e),fb(e,1)&&ko(e),280!==e.moduleReference.kind){const n=To(Qo(e));if(n!==on){const t=xo(n);if(111551&t){const n=Jb(e.moduleReference);1920&No(n,112575).flags||_a(n,Wo.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Vf(n))}788968&t&&sF(e.name,Wo.Import_name_cannot_be_0)}e.isTypeOnly&&QB(e,Wo.An_import_alias_cannot_use_import_type)}else!(k>=5&&void 0===Dp(e).impliedNodeFormat)||e.isTypeOnly||16777216&e.flags||QB(e,Wo.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(e);case 275:return GF(e);case 274:return function(e){if(BF(e,e.isExportEquals?Wo.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:Wo.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;const n=308===e.parent.kind?e.parent:e.parent.parent;if(264===n.kind&&!yf(n))return void(e.isExportEquals?_a(e,Wo.An_export_assignment_cannot_be_used_in_a_namespace):_a(e,Wo.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!LB(e)&&ub(e)&&YB(e,Wo.An_export_assignment_cannot_have_modifiers);const t=Qv(e);t&&$E(OO(e.expression),Fb(t),e.expression);const r=!e.isExportEquals&&!(16777216&e.flags)&&x.verbatimModuleSyntax&&(1===k||1===Dp(e).impliedNodeFormat);if(79===e.expression.kind){const n=e.expression,t=as(No(n,67108863,!0,!0,e));t?(vC(t,n),111551&xo(t)?(OO(n),!r&&x.verbatimModuleSyntax&&Co(t,111551)&&_a(n,e.isExportEquals?Wo.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Wo.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Uc(n))):!r&&x.verbatimModuleSyntax&&_a(n,e.isExportEquals?Wo.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Wo.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Uc(n))):OO(n),ox(x)&&ec(n,!0)}else OO(e.expression);r&&_a(e,Wo.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),KF(n),16777216&e.flags&&!qb(e.expression)&&QB(e.expression,Wo.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),e.isExportEquals&&(k>=5&&(16777216&e.flags&&99===Dp(e).impliedNodeFormat||!(16777216&e.flags)&&1!==Dp(e).impliedNodeFormat)?QB(e,Wo.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==k||16777216&e.flags||QB(e,Wo.Export_assignment_is_not_supported_when_module_flag_is_system))}(e);case 239:case 256:return void eU(e);case 279:(function(e){KM(e)})(e)}}(e),a=t}}function qF(e){gn(e)&&A(e,(e=>{s_(e)&&zF(e)}))}function XF(e){if(!Ih(e))if(Vw(e)||Uw(e)){const n=ms(Vw(e)?53:57),t=e.postfix?Wo._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Wo._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=Fb(e.type);QB(e,t,n,Us(Uw(e)&&r!==zn&&r!==Wn?Pg(Te([r,An],e.postfix?void 0:wn)):r))}else QB(e,Wo.JSDoc_types_can_only_be_used_inside_documentation_comments)}function YF(e){const n=Ra(Dp(e));1&n.flags?Nt.assert(!n.deferredNodes,"A type-checked file should have no deferred nodes."):(n.deferredNodes||(n.deferredNodes=new Set),n.deferredNodes.add(e))}function $F(e){var n,t;null==(n=Vr)||n.push(Vr.Phase.Check,"checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const r=a;switch(a=e,g=0,e.kind){case 210:case 211:case 212:case 167:case 283:ZR(e);break;case 215:case 216:case 171:case 170:!function(e){Nt.assert(171!==e.kind||Gm(e));const n=ky(e),t=Fp(e);if(sO(e,t),e.body)if(eb(e)||Rp(xp(e)),238===e.body.kind)zF(e.body);else{const r=ZO(e.body),i=t&&nF(t,n);i&&ZE(2===(3&n)?LM(r,!1,e.body,Wo.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):r,i,e.body,e.body)}}(e);break;case 174:case 175:dM(e);break;case 228:!function(e){A(e.members,zF),qM(e)}(e);break;case 165:!function(e){var n,t;if(PI(e.parent)||Fd(e.parent)||FI(e.parent)){const r=fd(Qo(e)),i=98304&YT(r);if(i){const a=Qo(e.parent);if(!FI(e.parent)||48&YE(hd(a))){if(32768===i||65536===i){null==(n=Vr)||n.push(Vr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Eg(hd(a)),id:Eg(r)});const s=jT(a,r,65536===i?Gt:Ft),c=jT(a,r,65536===i?Ft:Gt),l=r;o=r,$E(s,c,e,Wo.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),o=l,null==(t=Vr)||t.pop()}}else _a(e,Wo.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(e);break;case 282:!function(e){ww(e)}(e);break;case 281:!function(e){ww(e.openingElement),zI(e.closingElement.tagName)?iw(e.closingElement):ZO(e.closingElement.tagName),JI(e)}(e)}a=r,null==(t=Vr)||t.pop()}function ZF(n){var t,r;null==(t=Vr)||t.push(Vr.Phase.Check,"checkSourceFile",{path:n.path},!0),kr("beforeCheck"),function(n){const t=Ra(n);if(!(1&t.flags)){if(_S(n,x,e))return;!function(e){!!(16777216&e.flags)&&function(e){for(const n of e.statements)if((Pu(n)||240===n.kind)&&ZB(n))return!0}(e)}(n),K(ji),K(Hi),K(Ki),K(Wi),K(zi),A(n.statements,zF),zF(n.endOfFileToken),function(e){const n=Ra(e);n.deferredNodes&&n.deferredNodes.forEach($F),n.deferredNodes=void 0}(n),om(n)&&qM(n),l((()=>{n.isDeclarationFile||!x.noUnusedLocals&&!x.noUnusedParameters||JM(nG(n),((e,n,t)=>{!Np(e)&&eG(n,!!(16777216&e.flags))&&Ji.add(t)})),n.isDeclarationFile||function(){var e;for(const n of zi)if(!(null==(e=Qo(n))?void 0:e.isReferenced)){const e=kc(n);Nt.assert(Jy(e),"Only parameter declaration should be checked here");const t=qf(n.name,Wo._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Vf(n.name),Vf(n.propertyName));e.type||cS(t,kT(Dp(e),e.end,1,Wo.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Vf(n.propertyName))),Ji.add(t)}}()})),2===x.importsNotUsedAsValues&&!n.isDeclarationFile&&OD(n)&&function(e){for(const n of e.statements)(UF(n)||jF(n))&&_a(n,Wo.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}(n),om(n)&&KF(n),ji.length&&(A(ji,dP),K(ji)),Hi.length&&(A(Hi,uP),K(Hi)),Ki.length&&(A(Ki,_P),K(Ki)),Wi.length&&(A(Wi,pP),K(Wi)),t.flags|=1}}(n),kr("afterCheck"),Ir("Check","beforeCheck","afterCheck"),null==(r=Vr)||r.pop()}function eG(e,n){if(n)return!1;switch(e){case 0:return!!x.noUnusedLocals;case 1:return!!x.noUnusedParameters;default:return Nt.assertNever(e)}}function nG(e){return li.get(e.path)||i}function tG(t,r){try{return n=r,function(n){if(n){rG();const e=Ji.getGlobalDiagnostics(),t=e.length;iG(n);const r=Ji.getDiagnostics(n.fileName),i=Ji.getGlobalDiagnostics();if(i!==e){return de(Ee(e,i,MT),r)}return 0===t&&i.length>0?de(i,r):r}return A(e.getSourceFiles(),iG),Ji.getDiagnostics()}(t)}finally{n=void 0}}function rG(){for(const e of c)e();c=[]}function iG(e){rG();const n=l;l=e=>e(),ZF(e),l=n}function oG(e){for(;163===e.parent.kind;)e=e.parent;return 180===e.parent.kind}function sG(e,n){let t,r=Xm(e);for(;r&&!(t=n(r));)r=Xm(r);return t}function cG(e,n){return!!sG(e,(e=>e===n))}function lG(e){return void 0!==function(e){for(;163===e.parent.kind;)e=e.parent;return 268===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:274===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function dG(e){if(ry(e))return Zo(e.parent);if(Ih(e)&&208===e.parent.kind&&e.parent===e.parent.parent.left&&!wC(e)&&!Ow(e)){const n=function(e){switch(eg(e.parent.parent)){case 1:case 3:return Zo(e.parent);case 4:case 2:case 5:return Qo(e.parent.parent)}}(e);if(n)return n}if(274===e.parent.kind&&qb(e)){const n=No(e,2998271,!0);if(n&&n!==on)return n}else if(Ld(e)&&lG(e)){const n=vy(e,268);return Nt.assert(void 0!==n),wo(e,!0)}if(Ld(e)){const n=function(e){let n=e.parent;for(;KC(n);)e=n,n=n.parent;if(n&&202===n.kind&&n.qualifier===e)return n}(e);if(n){Fb(n);const t=Ra(e).resolvedSymbol;return t===on?void 0:t}}for(;nE(e);)e=e.parent;if(function(e){for(;208===e.parent.kind;)e=e.parent;return 230===e.parent.kind}(e)){let n=0;230===e.parent.kind?(n=xm(e)?788968:111551,zb(e.parent)&&(n|=111551)):n=1920,n|=2097152;const t=qb(e)?No(e,n):void 0;if(t)return t}if(344===e.parent.kind)return Fg(e.parent);if(165===e.parent.kind&&348===e.parent.parent.kind){Nt.assert(!Ih(e));const n=Hg(e.parent);return n&&n.symbol}if(vh(e)){if(Vp(e))return;const n=Mc(e,yt(s_,Dw,Ow)),t=n?901119:111551;if(79===e.kind){if(yh(e)&&zI(e)){const n=iw(e.parent);return n===on?void 0:n}const r=No(e,t,!1,!0,Bg(e));if(!r&&n){const n=Mc(e,yt(Fd,PI));if(n)return uG(e,!1,Qo(n))}if(r&&n){const n=Vg(e);if(n&&Cw(n)&&n===r.valueDeclaration)return No(e,t,!0,!0,Dp(n))||r}return r}if(wC(e))return bR(e);if(208===e.kind||163===e.kind){const t=Ra(e);if(t.resolvedSymbol)return t.resolvedSymbol;if(208===e.kind){if(dR(e,0),!t.resolvedSymbol){const n=OO(e.expression),r=ip(n,Ly(e.name));if(r.length&&n.members){const e=h_(n).members.get("__index");if(r===np(n))t.resolvedSymbol=e;else if(e){const i=wa(e),a=W(ee(r,(e=>e.declaration)),ZG).join(",");if(i.filteredIndexSymbolCache||(i.filteredIndexSymbolCache=new Map),i.filteredIndexSymbolCache.has(a))t.resolvedSymbol=i.filteredIndexSymbolCache.get(a);else{const e=va(131072,"__index");e.declarations=ee(r,(e=>e.declaration)),e.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:_G(e.declarations[0].parent),i.filteredIndexSymbolCache.set(a,e),t.resolvedSymbol=i.filteredIndexSymbolCache.get(a)}}}}}else fR(e,0);return!t.resolvedSymbol&&n&&KC(e)?uG(e):t.resolvedSymbol}if(Ow(e))return uG(e)}else if(oG(e)){const n=No(e,180===e.parent.kind?788968:1920,!1,!0);return n&&n!==on?n:Nf(e)}return 179===e.parent.kind?No(e,1):void 0}function uG(e,n,t){if(Ld(e)){const r=901119;let i=No(e,r,n,!0,Bg(e));if(!i&&IC(e)&&t&&(i=$o(Da(qo(t),e.escapedText,r))),i)return i}const r=IC(e)?t:uG(e.left,n,t),i=IC(e)?e.escapedText:e.right.escapedText;if(r){const e=111551&r.flags&&J_(Sl(r),"prototype");return J_(e?Sl(e):hd(r),i)}}function _G(e,n){if(Iw(e))return OD(e)?$o(e.symbol):void 0;const{parent:t}=e,r=t.parent;if(!(33554432&e.flags)){if(aB(e)){const n=Qo(t);return _d(e.parent)&&e.parent.propertyName===e?II(n):n}if(ay(e))return Qo(t.parent);if(79===e.kind){if(lG(e))return dG(e);if(205===t.kind&&203===r.kind&&e===t.propertyName){const n=J_(pG(r),e.escapedText);if(n)return n}else if(sI(t)&&t.name===e)return 103===t.keywordToken&&"target"===Uc(e)?mD(t).symbol:100===t.keywordToken&&"meta"===Uc(e)?Vm().members.get("meta"):void 0}switch(e.kind){case 79:case 80:case 208:case 163:if(!Xv(e))return dG(e);case 108:const i=Qm(e,!1,!1);if(Id(i)){const e=xp(i);if(e.thisParameter)return e.thisParameter}if(bh(e))return ZO(e).symbol;case 194:return Ob(e).symbol;case 106:return ZO(e).symbol;case 135:const a=e.parent;return a&&173===a.kind?a.parent.symbol:void 0;case 10:case 14:if(xh(e.parent.parent)&&Sh(e.parent.parent)===e||(269===e.parent.kind||275===e.parent.kind)&&e.parent.moduleSpecifier===e||Ih(e)&&100!==zT(x)&&Oh(e.parent,!1)||pm(e.parent)||Lk(e.parent)&&mm(e.parent.parent)&&e.parent.parent.argument===e.parent)return Oo(e,e,n);if(Fk(t)&&ng(t)&&t.arguments[1]===e)return Qo(t);case 8:const o=Pk(t)?t.argumentExpression===e?YO(t.expression):void 0:Lk(t)&&Sk(r)?Fb(r.objectType):void 0;return o&&J_(o,Gc(e.text));case 88:case 98:case 38:case 84:return Zo(e.parent);case 202:return mm(e)?_G(e.argument.literal,n):void 0;case 93:return ZI(e.parent)?Nt.checkDefined(e.parent.symbol):void 0;case 100:case 103:return sI(e.parent)?fD(e.parent).symbol:void 0;case 233:return ZO(e).symbol;default:return}}}function pG(e){if(Iw(e)&&!OD(e))return mn;if(33554432&e.flags)return mn;const n=jb(e),t=n&&ad(Qo(n.class));if(xm(e)){const n=Fb(e);return t?nu(n,t.thisType):n}if(vh(e))return hG(e);if(t&&!n.isImplements){const e=De(td(t));return e?nu(e,t.thisType):mn}if(zS(e)){return hd(Qo(e))}if(79===(r=e).kind&&zS(r.parent)&&Xc(r.parent)===r){const n=_G(e);return n?hd(n):mn}var r;if(Pu(e)){const n=Qo(e);return n?Sl(n):mn}if(aB(e)){const n=_G(e);return n?Sl(n):mn}if(Jd(e))return Lc(e.parent,!0,0)||mn;if(lG(e)){const n=_G(e);if(n){const e=hd(n);return _c(e)?Sl(n):e}}return sI(e.parent)&&e.parent.keywordToken===e.kind?fD(e.parent):mn}function mG(e){if(Nt.assert(207===e.kind||206===e.kind),247===e.parent.kind){return LO(e,CP(e.parent)||mn)}if(223===e.parent.kind){return LO(e,YO(e.parent.right)||mn)}if(299===e.parent.kind){const n=Tn(e.parent.parent,Ok);return SO(n,mG(n)||mn,lf(n.properties,e.parent))}const n=Tn(e.parent,Dk),t=mG(n)||mn,r=kP(65,t,An,e.parent)||mn;return AO(n,t,n.elements.indexOf(e),r)}function hG(e){return Zb(e)&&(e=e.parent),Sb(YO(e))}function gG(e){const n=Zo(e.parent);return mb(e)?Sl(n):hd(n)}function vG(e){const n=e.name;switch(n.kind){case 79:return Cb(Uc(n));case 8:case 10:return Cb(n.text);case 164:const e=AI(n);return vO(e,12288)?e:Dn;default:return Nt.fail("Unsupported property name.")}}function bG(e){const n=dp(b_(e=G_(e))),t=Y_(e,0).length?Wt:Y_(e,1).length?zt:void 0;return t&&A(b_(t),(e=>{n.has(e.escapedName)||n.set(e.escapedName,e)})),hs(n)}function EG(e){return 0!==Y_(e,0).length||0!==Y_(e,1).length}function TG(e){if(yd(e))return!1;const n=Fc(e,IC);if(!n)return!1;const t=n.parent;if(!t)return!1;return!((Mk(t)||Sw(t))&&t.name===n)&&hB(n)===he}function xG(e){let n=Oo(e.parent,e);if(!n||Tf(n))return!0;const t=jo(n);n=Bo(n);const r=wa(n);return void 0===r.exportsSomeValue&&(r.exportsSomeValue=t?!!(111551&n.flags):gp(Jo(n),(function(e){return(e=bo(e))&&!!(111551&xo(e))}))),r.exportsSomeValue}function SG(e,n){var t;const r=Fc(e,IC);if(r){let e=hB(r,function(e){return Ru(e.parent)&&e===e.parent.name}(r));if(e){if(1048576&e.flags){const t=$o(e.exportSymbol);if(!n&&944&t.flags&&!(3&t.flags))return;e=t}const i=es(e);if(i){if(512&i.flags&&308===(null==(t=i.valueDeclaration)?void 0:t.kind)){const e=i.valueDeclaration;return e!==Dp(r)?void 0:e}return Mc(r.parent,(e=>Ru(e)&&Qo(e)===i))}}}}function AG(e){const n=SL(e);if(n)return n;const t=Fc(e,IC);if(t){const e=function(e){const n=Ra(e).resolvedSymbol;if(n&&n!==on)return n;return Fa(e,e.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}(t);if(vo(e,111551)&&!Co(e,111551))return Xa(e)}}function LG(e){if(418&e.flags&&e.valueDeclaration&&!Iw(e.valueDeclaration)){const n=wa(e);if(void 0===n.isDeclarationWithCollidingName){const t=Bf(e.valueDeclaration);if(Pp(t)||function(e){return e.valueDeclaration&&Nk(e.valueDeclaration)&&295===kc(e.valueDeclaration).parent.kind}(e)){const r=Ra(e.valueDeclaration);if(Fa(t.parent,e.escapedName,111551,void 0,void 0,!1))n.isDeclarationWithCollidingName=!0;else if(16384&r.flags){const e=32768&r.flags,i=yu(t,!1),a=238===t.kind&&yu(t.parent,!1);n.isDeclarationWithCollidingName=!xf(t)&&(!e||!i&&!a)}else n.isDeclarationWithCollidingName=!1}}return n.isDeclarationWithCollidingName}return!1}function CG(e){if(!yd(e)){const n=Fc(e,IC);if(n){const e=hB(n);if(e&&LG(e))return e.valueDeclaration}}}function kG(e){const n=Fc(e,Pu);if(n){const e=Qo(n);if(e)return LG(e)}return!1}function IG(e){switch(Nt.assert(!x.verbatimModuleSyntax),e.kind){case 268:return RG(Qo(e));case 270:case 271:case 273:case 278:const n=Qo(e);return!!n&&RG(n)&&!Co(n,111551);case 275:const t=e.exportClause;return!!t&&(YI(t)||ce(t.elements,IG));case 274:return!e.expression||79!==e.expression.kind||RG(Qo(e))}return!1}function wG(e){const n=Fc(e,HI);if(void 0===n||308!==n.parent.kind||!Lh(n))return!1;return RG(Qo(n))&&n.moduleReference&&!Vp(n.moduleReference)}function RG(e){var n;if(!e)return!1;const t=as(To(e));return t===on||!!(111551&(null!=(n=xo(t))?n:-1))&&(sx(x)||!NG(t))}function NG(e){return TO(e)||!!e.constEnumOnlyModule}function DG(e,n){if(Nt.assert(!x.verbatimModuleSyntax),Ya(e)){const n=Qo(e),t=n&&wa(n);if(null==t?void 0:t.referenced)return!0;const r=wa(n).aliasTarget;if(r&&1&Lb(e)&&111551&xo(r)&&(sx(x)||!NG(r)))return!0}return!!n&&!!CD(e,(e=>DG(e,n)))}function OG(e){if(jp(e.body)){if(Qu(e)||$u(e))return!1;const n=Lp(Qo(e));return n.length>1||1===n.length&&n[0].declaration!==e}return!1}function MG(e){return!!F&&!fp(e)&&!cR(e)&&!!e.initializer&&!fb(e,16476)}function GG(e){return F&&fp(e)&&!e.initializer&&fb(e,16476)}function BG(e){const n=Fc(e,OI);if(!n)return!1;const t=Qo(n);return!!(t&&16&t.flags)&&!!gp(qo(t),(e=>111551&e.flags&&e.valueDeclaration&&Mk(e.valueDeclaration)))}function jG(e){const n=Fc(e,OI);if(!n)return i;const t=Qo(n);return t&&b_(Sl(t))||i}function KG(e){var n;const t=e.id||0;return t<0||t>=Ni.length?0:(null==(n=Ni[t])?void 0:n.flags)||0}function WG(e){return EF(e.parent),Ra(e).enumMemberValue}function $G(e){switch(e.kind){case 302:case 208:case 209:return!0}return!1}function tB(e){if(302===e.kind)return WG(e);const n=Ra(e).resolvedSymbol;if(n&&8&n.flags){const e=n.valueDeclaration;if(cm(e.parent))return WG(e)}}function rB(e){return!!(524288&e.flags)&&Y_(e,0).length>0}function lB(e,n){var t;const r=Fc(e,Ld);if(!r)return 0;if(n&&!(n=Fc(n)))return 0;let i=!1;if(KC(r)){const e=No(Jb(r),111551,!0,!0,n);i=!!(null==(t=null==e?void 0:e.declarations)?void 0:t.every(md))}const a=No(r,111551,!0,!0,n),o=a&&2097152&a.flags?To(a):a;i||(i=!(!a||!Co(a,111551)));const s=No(r,788968,!0,!1,n);if(o&&o===s){const e=Jm(!1);if(e&&o===e)return 9;const n=Sl(o);if(n&&Xl(n))return i?10:1}if(!s)return i?11:0;const c=hd(s);return _c(c)?i?11:0:3&c.flags?11:vO(c,245760)?2:vO(c,528)?6:vO(c,296)?3:vO(c,2112)?4:vO(c,402653316)?5:Vx(c)?7:vO(c,12288)?8:rB(c)?10:bx(c)?7:11}function dB(e,n,t,r,i){const a=Fc(e,wm);if(!a)return gA.createToken(131);const o=Qo(a);let s=!o||133120&o.flags?mn:Fx(Sl(o));return 8192&s.flags&&s.symbol===o&&(t|=1048576),i&&(s=$x(s)),se.typeToTypeNode(s,n,1024|t,r)}function pB(e,n,t,r){const i=Fc(e,Id);if(!i)return gA.createToken(131);const a=xp(i);return se.typeToTypeNode(Rp(a),n,1024|t,r)}function fB(e,n,t,r){const i=Fc(e,mu);if(!i)return gA.createToken(131);const a=DS(hG(i));return se.typeToTypeNode(a,n,1024|t,r)}function mB(e){return le.has(Gc(e))}function hB(e,n){const t=Ra(e).resolvedSymbol;if(t)return t;let r=e;if(n){const n=e.parent;Pu(n)&&e===n.name&&(r=sc(n))}return Fa(r,e.escapedText,3257279,void 0,void 0,!0)}function gB(e){if(!yd(e)){const n=Fc(e,IC);if(n){const e=hB(n);if(e)return as(e).valueDeclaration}}}function yB(e){return!!(lm(e)||NI(e)&&dm(e))&&Ab(Sl(Qo(e)))}function vB(e,n){return function(e,n,t){const r=1056&e.flags?se.symbolToExpression(e.symbol,111551,n,void 0,t):e===Bn?gA.createTrue():e===Fn&&gA.createFalse();if(r)return r;const i=e.value;return"object"===typeof i?gA.createBigIntLiteral(i):"number"===typeof i?gA.createNumericLiteral(i):gA.createStringLiteral(i)}(Sl(Qo(e)),e,n)}function bB(e){return e?(sa(e),Dp(e).localJsxFactory||qr):qr}function TB(e){if(e){const n=Dp(e);if(n){if(n.localJsxFragmentFactory)return n.localJsxFragmentFactory;const e=n.pragmas.get("jsxfrag"),t=gn(e)?e[0]:e;if(t)return n.localJsxFragmentFactory=ND(t.arguments.factory,L),n.localJsxFragmentFactory}}if(x.jsxFragmentFactory)return ND(x.jsxFragmentFactory,L)}function xB(e){const n=264===e.kind?En(e.name,_C):vg(e),t=Po(n,n,void 0);if(t)return cp(t,308)}function SB(e,n){if((t&n)!==n&&x.importHelpers){const i=Dp(e);if(kf(i,x)&&!(16777216&e.flags)){const a=function(e,n){r||(r=Fo(e,u_,Wo.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,n)||on);return r}(i,e);if(a!==on){const r=n&~t;for(let n=1;n<=16777216;n<<=1)if(r&n)for(const t of AB(n)){if(d.has(t))continue;d.add(t);const r=Da(a.exports,Gc(t),111551);r?524288&n?ce(Lp(r),(e=>AD(e)>3))||_a(e,Wo.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,u_,t,4):1048576&n?ce(Lp(r),(e=>AD(e)>4))||_a(e,Wo.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,u_,t,5):1024&n&&(ce(Lp(r),(e=>AD(e)>2))||_a(e,Wo.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,u_,t,3)):_a(e,Wo.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,u_,t)}}t|=n}}}function AB(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return I?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];default:return Nt.fail("Unrecognized helper")}}function LB(e){const n=function(e){const n=function(e){return fN(e)?D(e.modifiers,JC):void 0}(e);return n&&YB(n,Wo.Decorators_are_not_valid_here)}(e)||function(e){if(!e.modifiers)return!1;const n=function(e){switch(e.kind){case 174:case 175:case 173:case 169:case 168:case 171:case 170:case 178:case 264:case 269:case 268:case 275:case 274:case 215:case 216:case 166:case 165:return;case 172:case 299:case 300:case 267:case 279:return D(e.modifiers,Ad);default:if(265===e.parent.kind||308===e.parent.kind)return;switch(e.kind){case 259:return CB(e,132);case 260:case 182:return CB(e,126);case 228:case 261:case 240:case 262:return D(e.modifiers,Ad);case 263:return CB(e,85);default:Nt.assertNever(e)}}}(e);return n&&YB(n,Wo.Modifiers_cannot_appear_here)}(e);if(void 0!==n)return n;if(qC(e)&&qv(e))return YB(e,Wo.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let t,r,i,a,o,s=0,c=!1,l=!1;for(const d of e.modifiers)if(JC(d)){if(!uh(I,e,e.parent,e.parent.parent))return 171!==e.kind||jp(e.body)?YB(e,Wo.Decorators_are_not_valid_here):YB(e,Wo.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(I&&(174===e.kind||175===e.kind)){const n=$v(e.parent.members,e);if(Tb(n.firstAccessor)&&e===n.secondAccessor)return YB(e,Wo.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(-132098&s)return QB(d,Wo.Decorators_are_not_valid_here);if(l&&126975&s){Nt.assertIsDefined(o);return!XB(Dp(d))&&(cS(_a(d,Wo.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),qf(o,Wo.Decorator_used_before_export_here)),!0)}s|=131072,126975&s?1&s&&(c=!0):l=!0,null!=o||(o=d)}else{if(146!==d.kind){if(168===e.kind||170===e.kind)return QB(d,Wo._0_modifier_cannot_appear_on_a_type_member,ms(d.kind));if(178===e.kind&&(124!==d.kind||!Fd(e.parent)))return QB(d,Wo._0_modifier_cannot_appear_on_an_index_signature,ms(d.kind))}if(101!==d.kind&&145!==d.kind&&85!==d.kind&&165===e.kind)return QB(d,Wo._0_modifier_cannot_appear_on_a_type_parameter,ms(d.kind));switch(d.kind){case 85:if(263!==e.kind&&165!==e.kind)return QB(e,Wo.A_class_member_cannot_have_the_0_keyword,ms(85));const n=e.parent;if(165===e.kind&&!(Rd(n)||Fd(n)||ck(n)||lk(n)||rk(n)||ik(n)||$C(n)))return QB(d,Wo._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,ms(d.kind));break;case 161:if(16384&s)return QB(d,Wo._0_modifier_already_seen,"override");if(2&s)return QB(d,Wo._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(64&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,"override","readonly");if(128&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,"override","accessor");if(512&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,"override","async");s|=16384,a=d;break;case 123:case 122:case 121:const l=qs(Db(d.kind));if(28&s)return QB(d,Wo.Accessibility_modifier_already_seen);if(16384&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,l,"override");if(32&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,l,"static");if(128&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,l,"accessor");if(64&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,l,"readonly");if(512&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,l,"async");if(265===e.parent.kind||308===e.parent.kind)return QB(d,Wo._0_modifier_cannot_appear_on_a_module_or_namespace_element,l);if(256&s)return 121===d.kind?QB(d,Wo._0_modifier_cannot_be_used_with_1_modifier,l,"abstract"):QB(d,Wo._0_modifier_must_precede_1_modifier,l,"abstract");if(bd(e))return QB(d,Wo.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);s|=Db(d.kind);break;case 124:if(32&s)return QB(d,Wo._0_modifier_already_seen,"static");if(64&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,"static","readonly");if(512&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,"static","async");if(128&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,"static","accessor");if(265===e.parent.kind||308===e.parent.kind)return QB(d,Wo._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(166===e.kind)return QB(d,Wo._0_modifier_cannot_appear_on_a_parameter,"static");if(256&s)return QB(d,Wo._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16384&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,"static","override");s|=32,t=d;break;case 127:if(128&s)return QB(d,Wo._0_modifier_already_seen,"accessor");if(64&s)return QB(d,Wo._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(2&s)return QB(d,Wo._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(169!==e.kind)return QB(d,Wo.accessor_modifier_can_only_appear_on_a_property_declaration);s|=128;break;case 146:if(64&s)return QB(d,Wo._0_modifier_already_seen,"readonly");if(169!==e.kind&&168!==e.kind&&178!==e.kind&&166!==e.kind)return QB(d,Wo.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(128&s)return QB(d,Wo._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");s|=64;break;case 93:if(x.verbatimModuleSyntax&&!(16777216&e.flags)&&262!==e.kind&&261!==e.kind&&264!==e.kind&&308===e.parent.kind&&(1===k||1===Dp(e).impliedNodeFormat))return QB(d,Wo.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(1&s)return QB(d,Wo._0_modifier_already_seen,"export");if(2&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,"export","declare");if(256&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,"export","abstract");if(512&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,"export","async");if(Fd(e.parent))return QB(d,Wo._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(166===e.kind)return QB(d,Wo._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 88:const u=308===e.parent.kind?e.parent:e.parent.parent;if(264===u.kind&&!yf(u))return QB(d,Wo.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(1&s))return QB(d,Wo._0_modifier_must_precede_1_modifier,"export","default");if(c)return QB(o,Wo.Decorators_are_not_valid_here);s|=1024;break;case 136:if(2&s)return QB(d,Wo._0_modifier_already_seen,"declare");if(512&s)return QB(d,Wo._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16384&s)return QB(d,Wo._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Fd(e.parent)&&!YC(e))return QB(d,Wo._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(166===e.kind)return QB(d,Wo._0_modifier_cannot_appear_on_a_parameter,"declare");if(16777216&e.parent.flags&&265===e.parent.kind)return QB(d,Wo.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(bd(e))return QB(d,Wo._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(128&s)return QB(d,Wo._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");s|=2,r=d;break;case 126:if(256&s)return QB(d,Wo._0_modifier_already_seen,"abstract");if(260!==e.kind&&182!==e.kind){if(171!==e.kind&&169!==e.kind&&174!==e.kind&&175!==e.kind)return QB(d,Wo.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(260!==e.parent.kind||!fb(e.parent,256))return QB(d,Wo.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return QB(d,Wo._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return QB(d,Wo._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(512&s&&i)return QB(i,Wo._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16384&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,"abstract","override");if(128&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(qc(e)&&80===e.name.kind)return QB(d,Wo._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");s|=256;break;case 132:if(512&s)return QB(d,Wo._0_modifier_already_seen,"async");if(2&s||16777216&e.parent.flags)return QB(d,Wo._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(166===e.kind)return QB(d,Wo._0_modifier_cannot_appear_on_a_parameter,"async");if(256&s)return QB(d,Wo._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");s|=512,i=d;break;case 101:case 145:const _=101===d.kind?32768:65536,p=101===d.kind?"in":"out";if(165!==e.kind||!(PI(e.parent)||Fd(e.parent)||FI(e.parent)))return QB(d,Wo._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,p);if(s&_)return QB(d,Wo._0_modifier_already_seen,p);if(32768&_&&65536&s)return QB(d,Wo._0_modifier_must_precede_1_modifier,"in","out");s|=_}}return 173===e.kind?32&s?QB(t,Wo._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16384&s?QB(a,Wo._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(512&s)&&QB(i,Wo._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(269===e.kind||268===e.kind)&&2&s?QB(r,Wo.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):166===e.kind&&16476&s&&Jd(e.name)?QB(e,Wo.A_parameter_property_may_not_be_declared_using_a_binding_pattern):166===e.kind&&16476&s&&e.dotDotDotToken?QB(e,Wo.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(512&s)&&function(e,n){switch(e.kind){case 171:case 259:case 215:case 216:return!1}return QB(n,Wo._0_modifier_cannot_be_used_here,"async")}(e,i)}function CB(e,n){const t=D(e.modifiers,Ad);return t&&t.kind!==n?t:void 0}function kB(e,n=Wo.Trailing_comma_not_allowed){return!(!e||!e.hasTrailingComma)&&$B(e[0],e.end-1,1,n)}function IB(e,n){if(e&&0===e.length){const t=e.pos-1;return $B(n,t,Ns(n.text,e.end)+1-t,Wo.Type_parameter_list_cannot_be_empty)}return!1}function wB(e){if(L>=3){const n=e.body&&pI(e.body)&&UR(e.body.statements);if(n){const t=j(e.parameters,(e=>!!e.initializer||Jd(e.name)||l_(e)));if(S(t)){A(t,(e=>{cS(_a(e,Wo.This_parameter_is_not_allowed_with_use_strict_directive),qf(n,Wo.use_strict_directive_used_here))}));const e=t.map(((e,n)=>qf(e,0===n?Wo.Non_simple_parameter_declared_here:Wo.and_here)));return cS(_a(n,Wo.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}function RB(e){const n=Dp(e);return LB(e)||IB(e.typeParameters,n)||function(e){let n=!1;const t=e.length;for(let r=0;r<t;r++){const i=e[r];if(i.dotDotDotToken){if(r!==t-1)return QB(i.dotDotDotToken,Wo.A_rest_parameter_must_be_last_in_a_parameter_list);if(16777216&i.flags||kB(e,Wo.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),i.questionToken)return QB(i.questionToken,Wo.A_rest_parameter_cannot_be_optional);if(i.initializer)return QB(i.name,Wo.A_rest_parameter_cannot_have_an_initializer)}else if(fp(i)){if(n=!0,i.questionToken&&i.initializer)return QB(i.name,Wo.Parameter_cannot_have_question_mark_and_initializer)}else if(n&&!i.initializer)return QB(i.name,Wo.A_required_parameter_cannot_follow_an_optional_parameter)}}(e.parameters)||function(e,n){if(!Hk(e))return!1;e.typeParameters&&!(S(e.typeParameters)>1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&n&&so(n.fileName,[".mts",".cts"])&&QB(e.typeParameters[0],Wo.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:t}=e,r=Ss(n,t.pos).line,i=Ss(n,t.end).line;return r!==i&&QB(t,Wo.Line_terminator_not_permitted_before_arrow)}(e,n)||Rd(e)&&wB(e)}function NB(e,n){return kB(n)||function(e,n){if(n&&0===n.length){const t=Dp(e),r=n.pos-1;return $B(t,r,Ns(t.text,n.end)+1-r,Wo.Type_argument_list_cannot_be_empty)}return!1}(e,n)}function DB(e){const n=e.types;if(kB(n))return!0;if(n&&0===n.length){const t=ms(e.token);return $B(e,n.pos,0,Wo._0_list_cannot_be_empty,t)}return ce(n,OB)}function OB(e){return rI(e)&&jC(e.expression)&&e.typeArguments?QB(e,Wo.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):NB(e,e.typeArguments)}function MB(e){if(164!==e.kind)return!1;const n=e;return 223===n.expression.kind&&27===n.expression.operatorToken.kind&&QB(n.expression,Wo.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function PB(e){if(e.asteriskToken){if(Nt.assert(259===e.kind||215===e.kind||171===e.kind),16777216&e.flags)return QB(e.asteriskToken,Wo.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return QB(e.asteriskToken,Wo.An_overload_signature_cannot_be_declared_as_a_generator)}}function FB(e,n){return!!e&&QB(e,n)}function GB(e,n){return!!e&&QB(e,n)}function BB(e){if(eU(e))return!0;if(247===e.kind&&e.awaitModifier&&!(32768&e.flags)){const n=Dp(e);if(eh(e)){if(!XB(n))switch(kf(n,x)||Ji.add(qf(e.awaitModifier,Wo.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),k){case 100:case 199:if(1===n.impliedNodeFormat){Ji.add(qf(e.awaitModifier,Wo.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(L>=4)break;default:Ji.add(qf(e.awaitModifier,Wo.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!XB(n)){const n=qf(e.awaitModifier,Wo.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),t=qm(e);if(t&&173!==t.kind){Nt.assert(0===(2&ky(t)),"Enclosing function should never be an async function.");cS(n,qf(t,Wo.Did_you_mean_to_mark_this_function_as_async))}return Ji.add(n),!0}return!1}if(TI(e)&&!(32768&e.flags)&&IC(e.initializer)&&"async"===e.initializer.escapedText)return QB(e.initializer,Wo.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(258===e.initializer.kind){const n=e.initializer;if(!qB(n)){const t=n.declarations;if(!t.length)return!1;if(t.length>1){const t=246===e.kind?Wo.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:Wo.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return YB(n.declarations[1],t)}const r=t[0];if(r.initializer){const n=246===e.kind?Wo.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:Wo.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return QB(r.name,n)}if(r.type){return QB(r,246===e.kind?Wo.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:Wo.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}}return!1}function UB(e){if(e.parameters.length===(174===e.kind?1:2))return zv(e)}function VB(e,n){if(function(e){return Dy(e)&&!jd(e)}(e))return QB(e,n)}function jB(e){if(RB(e))return!0;if(171===e.kind){if(207===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||132!==Me(e.modifiers).kind))return YB(e,Wo.Modifiers_cannot_appear_here);if(FB(e.questionToken,Wo.An_object_member_cannot_be_declared_optional))return!0;if(GB(e.exclamationToken,Wo.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return $B(e,e.end-1,1,Wo._0_expected,"{")}if(PB(e))return!0}if(Fd(e.parent)){if(L<2&&wC(e.name))return QB(e.name,Wo.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(16777216&e.flags)return VB(e.name,Wo.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(171===e.kind&&!e.body)return VB(e.name,Wo.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(261===e.parent.kind)return VB(e.name,Wo.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(184===e.parent.kind)return VB(e.name,Wo.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function HB(e){return wy(e)||221===e.kind&&40===e.operator&&8===e.operand.kind}function KB(e){const n=e.initializer;if(n){const r=!(HB(n)||function(e){if((Mk(e)||Pk(e)&&HB(e.argumentExpression))&&qb(e.expression))return!!(1056&OO(e).flags)}(n)||110===n.kind||95===n.kind||(t=n,9===t.kind||221===t.kind&&40===t.operator&&9===t.operand.kind));if(!(lm(e)||NI(e)&&dm(e))||e.type)return QB(n,Wo.Initializers_are_not_allowed_in_ambient_contexts);if(r)return QB(n,Wo.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}var t}function WB(e){if(79===e.kind){if("__esModule"===Uc(e))return function(e,n,t,r,i,a){if(!XB(Dp(n)))return da(e,n,t,r,i,a),!0;return!1}("noEmit",e,Wo.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const n=e.elements;for(const e of n)if(!tI(e))return WB(e.name)}return!1}function zB(e){if(79===e.kind){if("let"===e.escapedText)return QB(e,Wo.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const n=e.elements;for(const e of n)tI(e)||zB(e.name)}return!1}function qB(e){const n=e.declarations;return!!kB(e.declarations)||!e.declarations.length&&$B(e,n.pos,n.end-n.pos,Wo.Variable_declaration_list_cannot_be_empty)}function JB(e){switch(e.kind){case 242:case 243:case 244:case 251:case 245:case 246:case 247:return!1;case 253:return JB(e.parent)}return!0}function XB(e){return e.parseDiagnostics.length>0}function YB(e,n,t,r,i){const a=Dp(e);if(!XB(a)){const o=rm(a,e.pos);return Ji.add(kT(a,o.start,o.length,n,t,r,i)),!0}return!1}function $B(e,n,t,r,i,a,o){const s=Dp(e);return!XB(s)&&(Ji.add(kT(s,n,t,r,i,a,o)),!0)}function QB(e,n,t,r,i){return!XB(Dp(e))&&(Ji.add(qf(e,n,t,r,i)),!0)}function ZB(e){return 261!==e.kind&&262!==e.kind&&269!==e.kind&&268!==e.kind&&275!==e.kind&&274!==e.kind&&267!==e.kind&&!fb(e,1027)&&YB(e,Wo.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function eU(e){if(16777216&e.flags){if(!Ra(e).hasReportedStatementInAmbientContext&&(Id(e.parent)||Gd(e.parent)))return Ra(e).hasReportedStatementInAmbientContext=YB(e,Wo.An_implementation_cannot_be_declared_in_ambient_contexts);if(238===e.parent.kind||265===e.parent.kind||308===e.parent.kind){const n=Ra(e.parent);if(!n.hasReportedStatementInAmbientContext)return n.hasReportedStatementInAmbientContext=YB(e,Wo.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function nU(e){if(32&e.numericLiteralFlags){let n;if(L>=1?n=Wo.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:Sm(e,198)?n=Wo.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:Sm(e,302)&&(n=Wo.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),n){const t=Jk(e.parent)&&40===e.parent.operator,r=(t?"-":"")+"0o"+e.text;return QB(t?e.parent:e,n,r)}}return function(e){const n=-1!==sf(e).indexOf("."),t=16&e.numericLiteralFlags;if(n||t)return;const r=+e.text;if(r<=2**53-1)return;pa(!1,qf(e,Wo.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}(e),!1}function tU(e){return!!A(e.elements,(e=>{if(e.isTypeOnly)return YB(e,273===e.kind?Wo.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:Wo.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function rU(e,n,t,r){if(1048576&n.flags&&2621440&e.flags){const i=iL(n,e);if(i)return i;const a=b_(e);if(a){const e=QA(a,n);if(e)return FT(n,W(e,(e=>[()=>Sl(e),e.escapedName])),t,void 0,r)}}}}function rB(e){return!Gd(e)}function iB(e){return 259!==e.kind&&171!==e.kind||!!e.body}function aB(e){switch(e.parent.kind){case 273:case 278:return IC(e);default:return ry(e)}}function oB(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function sB(e){return!!(1&e.flags)}function cB(e){return!!(2&e.flags)}var lB,dB=E({"src/compiler/checker.ts"(){var e;lq(),$G(),_a(),PG=/^".+"$/,FG="(anonymous)",GG=1,BG=1,UG=1,VG=1,jG=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(jG||{}),HG=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),KG=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",e[e.RestBindingElement=64]="RestBindingElement",e))(KG||{}),WG=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(WG||{}),zG=gt(iB,rB),qG=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),JG=class{},(e=XG||(XG={})).JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes",YG=class{constructor(e,n,t){var r;for(this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;n instanceof YG;)n=n.inner;this.inner=n,this.moduleResolverHost=t,this.context=e,this.canTrackSymbol=!!(null==(r=this.inner)?void 0:r.trackSymbol)}trackSymbol(e,n,t){var r;return!(!(null==(r=this.inner)?void 0:r.trackSymbol)||this.disableTrackSymbol||!this.inner.trackSymbol(e,n,t))&&(this.onDiagnosticReported(),!0)}reportInaccessibleThisError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleThisError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var n;(null==(n=this.inner)?void 0:n.reportPrivateInBaseOfClassExpression)&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleUniqueSymbolError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(null==(e=this.inner)?void 0:e.reportCyclicStructureError)&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var n;(null==(n=this.inner)?void 0:n.reportLikelyUnsafeImportRequiredError)&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(null==(e=this.inner)?void 0:e.reportTruncationError)&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(e,n){var t;(null==(t=this.inner)?void 0:t.trackReferencedAmbientModule)&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(e,n))}trackExternalModuleSymbolOfImportTypeNode(e){var n;(null==(n=this.inner)?void 0:n.trackExternalModuleSymbolOfImportTypeNode)&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(e))}reportNonlocalAugmentation(e,n,t){var r;(null==(r=this.inner)?void 0:r.reportNonlocalAugmentation)&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,n,t))}reportNonSerializableProperty(e){var n;(null==(n=this.inner)?void 0:n.reportNonSerializableProperty)&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}reportImportTypeNodeResolutionModeOverride(){var e;(null==(e=this.inner)?void 0:e.reportImportTypeNodeResolutionModeOverride)&&(this.onDiagnosticReported(),this.inner.reportImportTypeNodeResolutionModeOverride())}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function uB(e,n,t,r){if(void 0===e)return e;const i=n(e);let a;return void 0!==i?(a=gn(i)?(r||TB)(i):i,Nt.assertNode(a,t),a):void 0}function _B(e,n,t,r,i){if(void 0===e)return e;const a=e.length;let o;(void 0===r||r<0)&&(r=0),(void 0===i||i>a-r)&&(i=a-r);let s=-1,c=-1;r>0||i<a?o=e.hasTrailingComma&&r+i===a:(s=e.pos,c=e.end,o=e.hasTrailingComma);const l=fB(e,n,t,r,i);if(l!==e){const e=gA.createNodeArray(l,o);return SS(e,s,c),e}return e}function pB(e,n,t,r,i){if(void 0===e)return e;const a=e.length;return(void 0===r||r<0)&&(r=0),(void 0===i||i>a-r)&&(i=a-r),fB(e,n,t,r,i)}function fB(e,n,t,r,i){let a;const o=e.length;(r>0||i<o)&&(a=[]);for(let s=0;s<i;s++){const i=e[s+r],o=void 0!==i?n?n(i):i:void 0;if((void 0!==a||void 0===o||o!==i)&&(void 0===a&&(a=e.slice(0,s),Nt.assertEachNode(a,t)),o))if(gn(o))for(const e of o)Nt.assertNode(e,t),a.push(e);else Nt.assertNode(o,t),a.push(o)}return a||(Nt.assertEachNode(e,t),e)}function mB(e,n,t,r,i,a=_B){return t.startLexicalEnvironment(),e=a(e,n,Bu,r),i&&(e=t.factory.ensureUseStrict(e)),gA.mergeLexicalEnvironment(e,t.endLexicalEnvironment())}function hB(e,n,t,r=_B){let i;return t.startLexicalEnvironment(),e&&(t.setLexicalEnvironmentFlags(1,!0),i=r(e,n,qC),2&t.getLexicalEnvironmentFlags()&&HT(t.getCompilerOptions())>=2&&(i=function(e,n){let t;for(let r=0;r<e.length;r++){const i=e[r],a=gB(i,n);(t||a!==i)&&(t||(t=e.slice(0,r)),t[r]=a)}if(t)return VN(n.factory.createNodeArray(t,e.hasTrailingComma),e);return e}(i,t)),t.setLexicalEnvironmentFlags(1,!1)),t.suspendLexicalEnvironment(),i}function gB(e,n){return e.dotDotDotToken?e:Jd(e.name)?function(e,n){const{factory:t}=n;return n.addInitializationStatement(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e.name,void 0,e.type,e.initializer?t.createConditionalExpression(t.createStrictEquality(t.getGeneratedNameForNode(e),t.createVoidZero()),void 0,e.initializer,void 0,t.getGeneratedNameForNode(e)):t.getGeneratedNameForNode(e))]))),t.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,t.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}(e,n):e.initializer?function(e,n,t,r){const i=r.factory;return r.addInitializationStatement(i.createIfStatement(i.createTypeCheck(i.cloneNode(n),"undefined"),jA(VN(i.createBlock([i.createExpressionStatement(jA(VN(i.createAssignment(jA(i.cloneNode(n),96),jA(t,3168|df(t))),e),3072))]),e),3905))),i.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}(e,e.name,e.initializer,n):e}function yB(e,n,t,r=uB){t.resumeLexicalEnvironment();const i=r(e,n,Su),a=t.endLexicalEnvironment();if(ce(a)){if(!i)return t.factory.createBlock(a);const e=t.factory.converters.convertToFunctionBlock(i),n=gA.mergeLexicalEnvironment(e.statements,a);return t.factory.updateBlock(e,n)}return i}function vB(e,n,t,r=uB){t.startBlockScope();const i=r(e,n,Bu,t.factory.liftToBlock);Nt.assert(i);const a=t.endBlockScope();return ce(a)?pI(i)?(a.push(...i.statements),t.factory.updateBlock(i,a)):(a.push(i),t.factory.createBlock(a)):i}function bB(e,n,t=n){if(t===n||e.length<=1)return _B(e,n,mu);let r=0;const i=e.length;return _B(e,(e=>{const a=r<i-1;return r++,a?t(e):n(e)}),mu)}function EB(e,n,t,r=_B,i,a=uB){if(void 0===e)return;const o=lB[e.kind];return void 0===o?e:o(e,n,t,r,a,i)}function TB(e){return Nt.assert(e.length<=1,"Too many nodes written to output."),Be(e)}var xB,SB,AB,LB,CB=E({"src/compiler/visitorPublic.ts"(){lq(),lB={163:function(e,n,t,r,i,a){return t.factory.updateQualifiedName(e,Nt.checkDefined(i(e.left,n,Ld)),Nt.checkDefined(i(e.right,n,IC)))},164:function(e,n,t,r,i,a){return t.factory.updateComputedPropertyName(e,Nt.checkDefined(i(e.expression,n,mu)))},165:function(e,n,t,r,i,a){return t.factory.updateTypeParameterDeclaration(e,r(e.modifiers,n,Ad),Nt.checkDefined(i(e.name,n,IC)),i(e.constraint,n,zd),i(e.default,n,zd))},166:function(e,n,t,r,i,a){return t.factory.updateParameterDeclaration(e,r(e.modifiers,n,jd),a?i(e.dotDotDotToken,a,vC):e.dotDotDotToken,Nt.checkDefined(i(e.name,n,kd)),a?i(e.questionToken,a,AC):e.questionToken,i(e.type,n,zd),i(e.initializer,n,mu))},167:function(e,n,t,r,i,a){return t.factory.updateDecorator(e,Nt.checkDefined(i(e.expression,n,mu)))},168:function(e,n,t,r,i,a){return t.factory.updatePropertySignature(e,r(e.modifiers,n,Ad),Nt.checkDefined(i(e.name,n,Cd)),a?i(e.questionToken,a,AC):e.questionToken,i(e.type,n,zd))},169:function(e,n,t,r,i,a){var o,s;return t.factory.updatePropertyDeclaration(e,r(e.modifiers,n,jd),Nt.checkDefined(i(e.name,n,Cd)),a?i(null!=(o=e.questionToken)?o:e.exclamationToken,a,hN):null!=(s=e.questionToken)?s:e.exclamationToken,i(e.type,n,zd),i(e.initializer,n,mu))},170:function(e,n,t,r,i,a){return t.factory.updateMethodSignature(e,r(e.modifiers,n,Ad),Nt.checkDefined(i(e.name,n,Cd)),a?i(e.questionToken,a,AC):e.questionToken,r(e.typeParameters,n,zC),r(e.parameters,n,qC),i(e.type,n,zd))},171:function(e,n,t,r,i,a){return t.factory.updateMethodDeclaration(e,r(e.modifiers,n,jd),a?i(e.asteriskToken,a,xC):e.asteriskToken,Nt.checkDefined(i(e.name,n,Cd)),a?i(e.questionToken,a,AC):e.questionToken,r(e.typeParameters,n,zC),hB(e.parameters,n,t,r),i(e.type,n,zd),yB(e.body,n,t,i))},173:function(e,n,t,r,i,a){return t.factory.updateConstructorDeclaration(e,r(e.modifiers,n,jd),hB(e.parameters,n,t,r),yB(e.body,n,t,i))},174:function(e,n,t,r,i,a){return t.factory.updateGetAccessorDeclaration(e,r(e.modifiers,n,jd),Nt.checkDefined(i(e.name,n,Cd)),hB(e.parameters,n,t,r),i(e.type,n,zd),yB(e.body,n,t,i))},175:function(e,n,t,r,i,a){return t.factory.updateSetAccessorDeclaration(e,r(e.modifiers,n,jd),Nt.checkDefined(i(e.name,n,Cd)),hB(e.parameters,n,t,r),yB(e.body,n,t,i))},172:function(e,n,t,r,i,a){return t.startLexicalEnvironment(),t.suspendLexicalEnvironment(),t.factory.updateClassStaticBlockDeclaration(e,yB(e.body,n,t,i))},176:function(e,n,t,r,i,a){return t.factory.updateCallSignature(e,r(e.typeParameters,n,zC),r(e.parameters,n,qC),i(e.type,n,zd))},177:function(e,n,t,r,i,a){return t.factory.updateConstructSignature(e,r(e.typeParameters,n,zC),r(e.parameters,n,qC),i(e.type,n,zd))},178:function(e,n,t,r,i,a){return t.factory.updateIndexSignature(e,r(e.modifiers,n,jd),r(e.parameters,n,qC),Nt.checkDefined(i(e.type,n,zd)))},179:function(e,n,t,r,i,a){return t.factory.updateTypePredicateNode(e,i(e.assertsModifier,n,OC),Nt.checkDefined(i(e.parameterName,n,gN)),i(e.type,n,zd))},180:function(e,n,t,r,i,a){return t.factory.updateTypeReferenceNode(e,Nt.checkDefined(i(e.typeName,n,Ld)),r(e.typeArguments,n,zd))},181:function(e,n,t,r,i,a){return t.factory.updateFunctionTypeNode(e,r(e.typeParameters,n,zC),r(e.parameters,n,qC),Nt.checkDefined(i(e.type,n,zd)))},182:function(e,n,t,r,i,a){return t.factory.updateConstructorTypeNode(e,r(e.modifiers,n,Ad),r(e.typeParameters,n,zC),r(e.parameters,n,qC),Nt.checkDefined(i(e.type,n,zd)))},183:function(e,n,t,r,i,a){return t.factory.updateTypeQueryNode(e,Nt.checkDefined(i(e.exprName,n,Ld)),r(e.typeArguments,n,zd))},184:function(e,n,t,r,i,a){return t.factory.updateTypeLiteralNode(e,r(e.members,n,Hd))},185:function(e,n,t,r,i,a){return t.factory.updateArrayTypeNode(e,Nt.checkDefined(i(e.elementType,n,zd)))},186:function(e,n,t,r,i,a){return t.factory.updateTupleTypeNode(e,r(e.elements,n,zd))},187:function(e,n,t,r,i,a){return t.factory.updateOptionalTypeNode(e,Nt.checkDefined(i(e.type,n,zd)))},188:function(e,n,t,r,i,a){return t.factory.updateRestTypeNode(e,Nt.checkDefined(i(e.type,n,zd)))},189:function(e,n,t,r,i,a){return t.factory.updateUnionTypeNode(e,r(e.types,n,zd))},190:function(e,n,t,r,i,a){return t.factory.updateIntersectionTypeNode(e,r(e.types,n,zd))},191:function(e,n,t,r,i,a){return t.factory.updateConditionalTypeNode(e,Nt.checkDefined(i(e.checkType,n,zd)),Nt.checkDefined(i(e.extendsType,n,zd)),Nt.checkDefined(i(e.trueType,n,zd)),Nt.checkDefined(i(e.falseType,n,zd)))},192:function(e,n,t,r,i,a){return t.factory.updateInferTypeNode(e,Nt.checkDefined(i(e.typeParameter,n,zC)))},202:function(e,n,t,r,i,a){return t.factory.updateImportTypeNode(e,Nt.checkDefined(i(e.argument,n,zd)),i(e.assertions,n,zI),i(e.qualifier,n,Ld),r(e.typeArguments,n,zd),e.isTypeOf)},298:function(e,n,t,r,i,a){return t.factory.updateImportTypeAssertionContainer(e,Nt.checkDefined(i(e.assertClause,n,qI)),e.multiLine)},199:function(e,n,t,r,i,a){return t.factory.updateNamedTupleMember(e,a?i(e.dotDotDotToken,a,vC):e.dotDotDotToken,Nt.checkDefined(i(e.name,n,IC)),a?i(e.questionToken,a,AC):e.questionToken,Nt.checkDefined(i(e.type,n,zd)))},193:function(e,n,t,r,i,a){return t.factory.updateParenthesizedType(e,Nt.checkDefined(i(e.type,n,zd)))},195:function(e,n,t,r,i,a){return t.factory.updateTypeOperatorNode(e,Nt.checkDefined(i(e.type,n,zd)))},196:function(e,n,t,r,i,a){return t.factory.updateIndexedAccessTypeNode(e,Nt.checkDefined(i(e.objectType,n,zd)),Nt.checkDefined(i(e.indexType,n,zd)))},197:function(e,n,t,r,i,a){return t.factory.updateMappedTypeNode(e,a?i(e.readonlyToken,a,yN):e.readonlyToken,Nt.checkDefined(i(e.typeParameter,n,zC)),i(e.nameType,n,zd),a?i(e.questionToken,a,vN):e.questionToken,i(e.type,n,zd),r(e.members,n,Hd))},198:function(e,n,t,r,i,a){return t.factory.updateLiteralTypeNode(e,Nt.checkDefined(i(e.literal,n,fu)))},200:function(e,n,t,r,i,a){return t.factory.updateTemplateLiteralType(e,Nt.checkDefined(i(e.head,n,hC)),r(e.templateSpans,n,kk))},201:function(e,n,t,r,i,a){return t.factory.updateTemplateLiteralTypeSpan(e,Nt.checkDefined(i(e.type,n,zd)),Nt.checkDefined(i(e.literal,n,ud)))},203:function(e,n,t,r,i,a){return t.factory.updateObjectBindingPattern(e,r(e.elements,n,Nk))},204:function(e,n,t,r,i,a){return t.factory.updateArrayBindingPattern(e,r(e.elements,n,Yd))},205:function(e,n,t,r,i,a){return t.factory.updateBindingElement(e,a?i(e.dotDotDotToken,a,vC):e.dotDotDotToken,i(e.propertyName,n,Cd),Nt.checkDefined(i(e.name,n,kd)),i(e.initializer,n,mu))},206:function(e,n,t,r,i,a){return t.factory.updateArrayLiteralExpression(e,r(e.elements,n,mu))},207:function(e,n,t,r,i,a){return t.factory.updateObjectLiteralExpression(e,r(e.properties,n,Wd))},208:function(e,n,t,r,i,a){return Bl(e)?t.factory.updatePropertyAccessChain(e,Nt.checkDefined(i(e.expression,n,mu)),a?i(e.questionDotToken,a,CC):e.questionDotToken,Nt.checkDefined(i(e.name,n,Fl))):t.factory.updatePropertyAccessExpression(e,Nt.checkDefined(i(e.expression,n,mu)),Nt.checkDefined(i(e.name,n,Fl)))},209:function(e,n,t,r,i,a){return Ul(e)?t.factory.updateElementAccessChain(e,Nt.checkDefined(i(e.expression,n,mu)),a?i(e.questionDotToken,a,CC):e.questionDotToken,Nt.checkDefined(i(e.argumentExpression,n,mu))):t.factory.updateElementAccessExpression(e,Nt.checkDefined(i(e.expression,n,mu)),Nt.checkDefined(i(e.argumentExpression,n,mu)))},210:function(e,n,t,r,i,a){return Vl(e)?t.factory.updateCallChain(e,Nt.checkDefined(i(e.expression,n,mu)),a?i(e.questionDotToken,a,CC):e.questionDotToken,r(e.typeArguments,n,zd),r(e.arguments,n,mu)):t.factory.updateCallExpression(e,Nt.checkDefined(i(e.expression,n,mu)),r(e.typeArguments,n,zd),r(e.arguments,n,mu))},211:function(e,n,t,r,i,a){return t.factory.updateNewExpression(e,Nt.checkDefined(i(e.expression,n,mu)),r(e.typeArguments,n,zd),r(e.arguments,n,mu))},212:function(e,n,t,r,i,a){return t.factory.updateTaggedTemplateExpression(e,Nt.checkDefined(i(e.tag,n,mu)),r(e.typeArguments,n,zd),Nt.checkDefined(i(e.template,n,cu)))},213:function(e,n,t,r,i,a){return t.factory.updateTypeAssertion(e,Nt.checkDefined(i(e.type,n,zd)),Nt.checkDefined(i(e.expression,n,mu)))},214:function(e,n,t,r,i,a){return t.factory.updateParenthesizedExpression(e,Nt.checkDefined(i(e.expression,n,mu)))},215:function(e,n,t,r,i,a){return t.factory.updateFunctionExpression(e,r(e.modifiers,n,Ad),a?i(e.asteriskToken,a,xC):e.asteriskToken,i(e.name,n,IC),r(e.typeParameters,n,zC),hB(e.parameters,n,t,r),i(e.type,n,zd),yB(e.body,n,t,i))},216:function(e,n,t,r,i,a){return t.factory.updateArrowFunction(e,r(e.modifiers,n,Ad),r(e.typeParameters,n,zC),hB(e.parameters,n,t,r),i(e.type,n,zd),a?Nt.checkDefined(i(e.equalsGreaterThanToken,a,kC)):e.equalsGreaterThanToken,yB(e.body,n,t,i))},217:function(e,n,t,r,i,a){return t.factory.updateDeleteExpression(e,Nt.checkDefined(i(e.expression,n,mu)))},218:function(e,n,t,r,i,a){return t.factory.updateTypeOfExpression(e,Nt.checkDefined(i(e.expression,n,mu)))},219:function(e,n,t,r,i,a){return t.factory.updateVoidExpression(e,Nt.checkDefined(i(e.expression,n,mu)))},220:function(e,n,t,r,i,a){return t.factory.updateAwaitExpression(e,Nt.checkDefined(i(e.expression,n,mu)))},221:function(e,n,t,r,i,a){return t.factory.updatePrefixUnaryExpression(e,Nt.checkDefined(i(e.operand,n,mu)))},222:function(e,n,t,r,i,a){return t.factory.updatePostfixUnaryExpression(e,Nt.checkDefined(i(e.operand,n,mu)))},223:function(e,n,t,r,i,a){return t.factory.updateBinaryExpression(e,Nt.checkDefined(i(e.left,n,mu)),a?Nt.checkDefined(i(e.operatorToken,a,xN)):e.operatorToken,Nt.checkDefined(i(e.right,n,mu)))},224:function(e,n,t,r,i,a){return t.factory.updateConditionalExpression(e,Nt.checkDefined(i(e.condition,n,mu)),a?Nt.checkDefined(i(e.questionToken,a,AC)):e.questionToken,Nt.checkDefined(i(e.whenTrue,n,mu)),a?Nt.checkDefined(i(e.colonToken,a,LC)):e.colonToken,Nt.checkDefined(i(e.whenFalse,n,mu)))},225:function(e,n,t,r,i,a){return t.factory.updateTemplateExpression(e,Nt.checkDefined(i(e.head,n,hC)),r(e.templateSpans,n,uI))},226:function(e,n,t,r,i,a){return t.factory.updateYieldExpression(e,a?i(e.asteriskToken,a,xC):e.asteriskToken,i(e.expression,n,mu))},227:function(e,n,t,r,i,a){return t.factory.updateSpreadElement(e,Nt.checkDefined(i(e.expression,n,mu)))},228:function(e,n,t,r,i,a){return t.factory.updateClassExpression(e,r(e.modifiers,n,jd),i(e.name,n,IC),r(e.typeParameters,n,zC),r(e.heritageClauses,n,Tw),r(e.members,n,Pd))},230:function(e,n,t,r,i,a){return t.factory.updateExpressionWithTypeArguments(e,Nt.checkDefined(i(e.expression,n,mu)),r(e.typeArguments,n,zd))},231:function(e,n,t,r,i,a){return t.factory.updateAsExpression(e,Nt.checkDefined(i(e.expression,n,mu)),Nt.checkDefined(i(e.type,n,zd)))},235:function(e,n,t,r,i,a){return t.factory.updateSatisfiesExpression(e,Nt.checkDefined(i(e.expression,n,mu)),Nt.checkDefined(i(e.type,n,zd)))},232:function(e,n,t,r,i,a){return jl(e)?t.factory.updateNonNullChain(e,Nt.checkDefined(i(e.expression,n,mu))):t.factory.updateNonNullExpression(e,Nt.checkDefined(i(e.expression,n,mu)))},233:function(e,n,t,r,i,a){return t.factory.updateMetaProperty(e,Nt.checkDefined(i(e.name,n,IC)))},236:function(e,n,t,r,i,a){return t.factory.updateTemplateSpan(e,Nt.checkDefined(i(e.expression,n,mu)),Nt.checkDefined(i(e.literal,n,ud)))},238:function(e,n,t,r,i,a){return t.factory.updateBlock(e,r(e.statements,n,Bu))},240:function(e,n,t,r,i,a){return t.factory.updateVariableStatement(e,r(e.modifiers,n,jd),Nt.checkDefined(i(e.declarationList,n,DI)))},241:function(e,n,t,r,i,a){return t.factory.updateExpressionStatement(e,Nt.checkDefined(i(e.expression,n,mu)))},242:function(e,n,t,r,i,a){return t.factory.updateIfStatement(e,Nt.checkDefined(i(e.expression,n,mu)),Nt.checkDefined(i(e.thenStatement,n,Bu,t.factory.liftToBlock)),i(e.elseStatement,n,Bu,t.factory.liftToBlock))},243:function(e,n,t,r,i,a){return t.factory.updateDoStatement(e,vB(e.statement,n,t,i),Nt.checkDefined(i(e.expression,n,mu)))},244:function(e,n,t,r,i,a){return t.factory.updateWhileStatement(e,Nt.checkDefined(i(e.expression,n,mu)),vB(e.statement,n,t,i))},245:function(e,n,t,r,i,a){return t.factory.updateForStatement(e,i(e.initializer,n,Lu),i(e.condition,n,mu),i(e.incrementor,n,mu),vB(e.statement,n,t,i))},246:function(e,n,t,r,i,a){return t.factory.updateForInStatement(e,Nt.checkDefined(i(e.initializer,n,Lu)),Nt.checkDefined(i(e.expression,n,mu)),vB(e.statement,n,t,i))},247:function(e,n,t,r,i,a){return t.factory.updateForOfStatement(e,a?i(e.awaitModifier,a,MC):e.awaitModifier,Nt.checkDefined(i(e.initializer,n,Lu)),Nt.checkDefined(i(e.expression,n,mu)),vB(e.statement,n,t,i))},248:function(e,n,t,r,i,a){return t.factory.updateContinueStatement(e,i(e.label,n,IC))},249:function(e,n,t,r,i,a){return t.factory.updateBreakStatement(e,i(e.label,n,IC))},250:function(e,n,t,r,i,a){return t.factory.updateReturnStatement(e,i(e.expression,n,mu))},251:function(e,n,t,r,i,a){return t.factory.updateWithStatement(e,Nt.checkDefined(i(e.expression,n,mu)),Nt.checkDefined(i(e.statement,n,Bu,t.factory.liftToBlock)))},252:function(e,n,t,r,i,a){return t.factory.updateSwitchStatement(e,Nt.checkDefined(i(e.expression,n,mu)),Nt.checkDefined(i(e.caseBlock,n,VI)))},253:function(e,n,t,r,i,a){return t.factory.updateLabeledStatement(e,Nt.checkDefined(i(e.label,n,IC)),Nt.checkDefined(i(e.statement,n,Bu,t.factory.liftToBlock)))},254:function(e,n,t,r,i,a){return t.factory.updateThrowStatement(e,Nt.checkDefined(i(e.expression,n,mu)))},255:function(e,n,t,r,i,a){return t.factory.updateTryStatement(e,Nt.checkDefined(i(e.tryBlock,n,pI)),i(e.catchClause,n,xw),i(e.finallyBlock,n,pI))},257:function(e,n,t,r,i,a){return t.factory.updateVariableDeclaration(e,Nt.checkDefined(i(e.name,n,kd)),a?i(e.exclamationToken,a,SC):e.exclamationToken,i(e.type,n,zd),i(e.initializer,n,mu))},258:function(e,n,t,r,i,a){return t.factory.updateVariableDeclarationList(e,r(e.declarations,n,NI))},259:function(e,n,t,r,i,a){return t.factory.updateFunctionDeclaration(e,r(e.modifiers,n,Ad),a?i(e.asteriskToken,a,xC):e.asteriskToken,i(e.name,n,IC),r(e.typeParameters,n,zC),hB(e.parameters,n,t,r),i(e.type,n,zd),yB(e.body,n,t,i))},260:function(e,n,t,r,i,a){return t.factory.updateClassDeclaration(e,r(e.modifiers,n,jd),i(e.name,n,IC),r(e.typeParameters,n,zC),r(e.heritageClauses,n,Tw),r(e.members,n,Pd))},261:function(e,n,t,r,i,a){return t.factory.updateInterfaceDeclaration(e,r(e.modifiers,n,jd),Nt.checkDefined(i(e.name,n,IC)),r(e.typeParameters,n,zC),r(e.heritageClauses,n,Tw),r(e.members,n,Hd))},262:function(e,n,t,r,i,a){return t.factory.updateTypeAliasDeclaration(e,r(e.modifiers,n,jd),Nt.checkDefined(i(e.name,n,IC)),r(e.typeParameters,n,zC),Nt.checkDefined(i(e.type,n,zd)))},263:function(e,n,t,r,i,a){return t.factory.updateEnumDeclaration(e,r(e.modifiers,n,jd),Nt.checkDefined(i(e.name,n,IC)),r(e.members,n,Cw))},264:function(e,n,t,r,i,a){return t.factory.updateModuleDeclaration(e,r(e.modifiers,n,jd),Nt.checkDefined(i(e.name,n,bN)),i(e.body,n,Cu))},265:function(e,n,t,r,i,a){return t.factory.updateModuleBlock(e,r(e.statements,n,Bu))},266:function(e,n,t,r,i,a){return t.factory.updateCaseBlock(e,r(e.clauses,n,qu))},267:function(e,n,t,r,i,a){return t.factory.updateNamespaceExportDeclaration(e,Nt.checkDefined(i(e.name,n,IC)))},268:function(e,n,t,r,i,a){return t.factory.updateImportEqualsDeclaration(e,r(e.modifiers,n,jd),e.isTypeOnly,Nt.checkDefined(i(e.name,n,IC)),Nt.checkDefined(i(e.moduleReference,n,Vu)))},269:function(e,n,t,r,i,a){return t.factory.updateImportDeclaration(e,r(e.modifiers,n,jd),i(e.importClause,n,WI),Nt.checkDefined(i(e.moduleSpecifier,n,mu)),i(e.assertClause,n,qI))},296:function(e,n,t,r,i,a){return t.factory.updateAssertClause(e,r(e.elements,n,JI),e.multiLine)},297:function(e,n,t,r,i,a){return t.factory.updateAssertEntry(e,Nt.checkDefined(i(e.name,n,hd)),Nt.checkDefined(i(e.value,n,mu)))},270:function(e,n,t,r,i,a){return t.factory.updateImportClause(e,e.isTypeOnly,i(e.name,n,IC),i(e.namedBindings,n,wu))},271:function(e,n,t,r,i,a){return t.factory.updateNamespaceImport(e,Nt.checkDefined(i(e.name,n,IC)))},277:function(e,n,t,r,i,a){return t.factory.updateNamespaceExport(e,Nt.checkDefined(i(e.name,n,IC)))},272:function(e,n,t,r,i,a){return t.factory.updateNamedImports(e,r(e.elements,n,QI))},273:function(e,n,t,r,i,a){return t.factory.updateImportSpecifier(e,e.isTypeOnly,i(e.propertyName,n,IC),Nt.checkDefined(i(e.name,n,IC)))},274:function(e,n,t,r,i,a){return t.factory.updateExportAssignment(e,r(e.modifiers,n,jd),Nt.checkDefined(i(e.expression,n,mu)))},275:function(e,n,t,r,i,a){return t.factory.updateExportDeclaration(e,r(e.modifiers,n,jd),e.isTypeOnly,i(e.exportClause,n,$l),i(e.moduleSpecifier,n,mu),i(e.assertClause,n,qI))},276:function(e,n,t,r,i,a){return t.factory.updateNamedExports(e,r(e.elements,n,tw))},278:function(e,n,t,r,i,a){return t.factory.updateExportSpecifier(e,e.isTypeOnly,i(e.propertyName,n,IC),Nt.checkDefined(i(e.name,n,IC)))},280:function(e,n,t,r,i,a){return t.factory.updateExternalModuleReference(e,Nt.checkDefined(i(e.expression,n,mu)))},281:function(e,n,t,r,i,a){return t.factory.updateJsxElement(e,Nt.checkDefined(i(e.openingElement,n,uw)),r(e.children,n,Hu),Nt.checkDefined(i(e.closingElement,n,_w)))},282:function(e,n,t,r,i,a){return t.factory.updateJsxSelfClosingElement(e,Nt.checkDefined(i(e.tagName,n,ju)),r(e.typeArguments,n,zd),Nt.checkDefined(i(e.attributes,n,gw)))},283:function(e,n,t,r,i,a){return t.factory.updateJsxOpeningElement(e,Nt.checkDefined(i(e.tagName,n,ju)),r(e.typeArguments,n,zd),Nt.checkDefined(i(e.attributes,n,gw)))},284:function(e,n,t,r,i,a){return t.factory.updateJsxClosingElement(e,Nt.checkDefined(i(e.tagName,n,ju)))},285:function(e,n,t,r,i,a){return t.factory.updateJsxFragment(e,Nt.checkDefined(i(e.openingFragment,n,fw)),r(e.children,n,Hu),Nt.checkDefined(i(e.closingFragment,n,mw)))},288:function(e,n,t,r,i,a){return t.factory.updateJsxAttribute(e,Nt.checkDefined(i(e.name,n,IC)),i(e.initializer,n,Wu))},289:function(e,n,t,r,i,a){return t.factory.updateJsxAttributes(e,r(e.properties,n,Ku))},290:function(e,n,t,r,i,a){return t.factory.updateJsxSpreadAttribute(e,Nt.checkDefined(i(e.expression,n,mu)))},291:function(e,n,t,r,i,a){return t.factory.updateJsxExpression(e,i(e.expression,n,mu))},292:function(e,n,t,r,i,a){return t.factory.updateCaseClause(e,Nt.checkDefined(i(e.expression,n,mu)),r(e.statements,n,Bu))},293:function(e,n,t,r,i,a){return t.factory.updateDefaultClause(e,r(e.statements,n,Bu))},294:function(e,n,t,r,i,a){return t.factory.updateHeritageClause(e,r(e.types,n,rI))},295:function(e,n,t,r,i,a){return t.factory.updateCatchClause(e,i(e.variableDeclaration,n,NI),Nt.checkDefined(i(e.block,n,pI)))},299:function(e,n,t,r,i,a){return t.factory.updatePropertyAssignment(e,Nt.checkDefined(i(e.name,n,Cd)),Nt.checkDefined(i(e.initializer,n,mu)))},300:function(e,n,t,r,i,a){return t.factory.updateShorthandPropertyAssignment(e,Nt.checkDefined(i(e.name,n,IC)),i(e.objectAssignmentInitializer,n,mu))},301:function(e,n,t,r,i,a){return t.factory.updateSpreadAssignment(e,Nt.checkDefined(i(e.expression,n,mu)))},302:function(e,n,t,r,i,a){return t.factory.updateEnumMember(e,Nt.checkDefined(i(e.name,n,Cd)),i(e.initializer,n,mu))},308:function(e,n,t,r,i,a){return t.factory.updateSourceFile(e,mB(e.statements,n,t))},356:function(e,n,t,r,i,a){return t.factory.updatePartiallyEmittedExpression(e,Nt.checkDefined(i(e.expression,n,mu)))},357:function(e,n,t,r,i,a){return t.factory.updateCommaListExpression(e,r(e.elements,n,mu))}}}});function kB(e,n,t,r,i){var a,o,{enter:s,exit:c}=i.extendedDiagnostics?Cr("Source Map","beforeSourcemap","afterSourcemap"):yr,l=[],d=[],u=new Map,_=[],p=[],f="",m=0,h=0,g=0,y=0,v=0,b=0,E=!1,T=0,x=0,S=0,A=0,L=0,C=0,k=!1,I=!1,w=!1;return{getSources:()=>l,addSource:R,setSourceContent:N,addName:D,addMapping:O,appendSourceMap:function(e,n,t,r,i,a){Nt.assert(e>=T,"generatedLine cannot backtrack"),Nt.assert(n>=0,"generatedCharacter cannot be negative"),s();const o=[];let l;const d=OB(t.mappings);for(const s of d){if(a&&(s.generatedLine>a.line||s.generatedLine===a.line&&s.generatedCharacter>a.character))break;if(i&&(s.generatedLine<i.line||i.line===s.generatedLine&&s.generatedCharacter<i.character))continue;let c,d,u,_;if(void 0!==s.sourceIndex){if(c=o[s.sourceIndex],void 0===c){const e=t.sources[s.sourceIndex],n=t.sourceRoot?Eo(t.sourceRoot,e):e,i=Eo(po(r),n);o[s.sourceIndex]=c=R(i),t.sourcesContent&&"string"===typeof t.sourcesContent[s.sourceIndex]&&N(c,t.sourcesContent[s.sourceIndex])}d=s.sourceLine,u=s.sourceCharacter,t.names&&void 0!==s.nameIndex&&(l||(l=[]),_=l[s.nameIndex],void 0===_&&(l[s.nameIndex]=_=D(t.names[s.nameIndex])))}const p=s.generatedLine-(i?i.line:0),f=p+e,m=i&&i.line===s.generatedLine?s.generatedCharacter-i.character:s.generatedCharacter;O(f,0===p?m+n:m,c,d,u,_)}c()},toJSON:G,toString:()=>JSON.stringify(G())};function R(n){s();const t=jo(r,n,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let i=u.get(t);return void 0===i&&(i=d.length,d.push(t),l.push(n),u.set(t,i)),c(),i}function N(e,n){if(s(),null!==n){for(a||(a=[]);a.length<e;)a.push(null);a[e]=n}c()}function D(e){s(),o||(o=new Map);let n=o.get(e);return void 0===n&&(n=_.length,_.push(e),o.set(e,n)),c(),n}function O(e,n,t,r,i,a){Nt.assert(e>=T,"generatedLine cannot backtrack"),Nt.assert(n>=0,"generatedCharacter cannot be negative"),Nt.assert(void 0===t||t>=0,"sourceIndex cannot be negative"),Nt.assert(void 0===r||r>=0,"sourceLine cannot be negative"),Nt.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),s(),(function(e,n){return!k||T!==e||x!==n}(e,n)||function(e,n,t){return void 0!==e&&void 0!==n&&void 0!==t&&S===e&&(A>n||A===n&&L>t)}(t,r,i))&&(P(),T=e,x=n,I=!1,w=!1,k=!0),void 0!==t&&void 0!==r&&void 0!==i&&(S=t,A=r,L=i,I=!0,void 0!==a&&(C=a,w=!0)),c()}function M(e){p.push(e),p.length>=1024&&F()}function P(){if(k&&(!E||m!==T||h!==x||g!==S||y!==A||v!==L||b!==C)){if(s(),m<T){do{M(59),m++}while(m<T);h=0}else Nt.assertEqual(m,T,"generatedLine cannot backtrack"),E&&M(44);B(x-h),h=x,I&&(B(S-g),g=S,B(A-y),y=A,B(L-v),v=L,w&&(B(C-b),b=C)),E=!0,c()}}function F(){p.length>0&&(f+=String.fromCharCode.apply(void 0,p),p.length=0)}function G(){return P(),F(),{version:3,file:n,sourceRoot:t,sources:d,names:_,mappings:f,sourcesContent:a}}function B(e){e<0?e=1+(-e<<1):e<<=1;do{let t=31&e;(e>>=5)>0&&(t|=32),M((n=t)>=0&&n<26?65+n:n>=26&&n<52?97+n-26:n>=52&&n<62?48+n-52:62===n?43:63===n?47:Nt.fail(`${n}: not a base64 value`))}while(e>0);var n}}function IB(e,n){return{getLineCount:()=>n.length,getLineText:t=>e.substring(n[t],n[t+1])}}function wB(e){for(let n=e.getLineCount()-1;n>=0;n--){const t=e.getLineText(n),r=SB.exec(t);if(r)return g(r[1]);if(!t.match(AB))break}}function RB(e){return"string"===typeof e||null===e}function NB(e){return null!==e&&"object"===typeof e&&3===e.version&&"string"===typeof e.file&&"string"===typeof e.mappings&&gn(e.sources)&&N(e.sources,vn)&&(void 0===e.sourceRoot||null===e.sourceRoot||"string"===typeof e.sourceRoot)&&(void 0===e.sourcesContent||null===e.sourcesContent||gn(e.sourcesContent)&&N(e.sourcesContent,RB))&&(void 0===e.names||null===e.names||gn(e.names)&&N(e.names,vn))}function DB(e){try{const n=JSON.parse(e);if(NB(n))return n}catch(Sa){}}function OB(e){let n,t=!1,r=0,i=0,a=0,o=0,s=0,c=0,l=0;return{get pos(){return r},get error(){return n},get state(){return d(!0,!0)},next(){for(;!t&&r<e.length;){const n=e.charCodeAt(r);if(59===n){i++,a=0,r++;continue}if(44===n){r++;continue}let _=!1,g=!1;if(a+=h(),f())return u();if(a<0)return p("Invalid generatedCharacter found");if(!m()){if(_=!0,o+=h(),f())return u();if(o<0)return p("Invalid sourceIndex found");if(m())return p("Unsupported Format: No entries after sourceIndex");if(s+=h(),f())return u();if(s<0)return p("Invalid sourceLine found");if(m())return p("Unsupported Format: No entries after sourceLine");if(c+=h(),f())return u();if(c<0)return p("Invalid sourceCharacter found");if(!m()){if(g=!0,l+=h(),f())return u();if(l<0)return p("Invalid nameIndex found");if(!m())return p("Unsupported Error Format: Entries after nameIndex")}}return{value:d(_,g),done:t}}return u()},[Symbol.iterator](){return this}};function d(e,n){return{generatedLine:i,generatedCharacter:a,sourceIndex:e?o:void 0,sourceLine:e?s:void 0,sourceCharacter:e?c:void 0,nameIndex:n?l:void 0}}function u(){return t=!0,{value:void 0,done:!0}}function _(e){void 0===n&&(n=e)}function p(e){return _(e),u()}function f(){return void 0!==n}function m(){return r===e.length||44===e.charCodeAt(r)||59===e.charCodeAt(r)}function h(){let n=!0,t=0,i=0;for(;n;r++){if(r>=e.length)return _("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const o=(a=e.charCodeAt(r))>=65&&a<=90?a-65:a>=97&&a<=122?a-97+26:a>=48&&a<=57?a-48+52:43===a?62:47===a?63:-1;if(-1===o)return _("Invalid character in VLQ"),-1;n=0!==(32&o),i|=(31&o)<<t,t+=5}var a;return 0===(1&i)?i>>=1:(i>>=1,i=-i),i}}function MB(e,n){return e===n||e.generatedLine===n.generatedLine&&e.generatedCharacter===n.generatedCharacter&&e.sourceIndex===n.sourceIndex&&e.sourceLine===n.sourceLine&&e.sourceCharacter===n.sourceCharacter&&e.nameIndex===n.nameIndex}function PB(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function FB(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function GB(e,n){return e.generatedPosition===n.generatedPosition&&e.sourceIndex===n.sourceIndex&&e.sourcePosition===n.sourcePosition}function BB(e,n){return Nt.assert(e.sourceIndex===n.sourceIndex),Un(e.sourcePosition,n.sourcePosition)}function UB(e,n){return Un(e.generatedPosition,n.generatedPosition)}function VB(e){return e.sourcePosition}function jB(e){return e.generatedPosition}function HB(e,n,t){const r=po(t),a=n.sourceRoot?So(n.sourceRoot,r):r,o=So(n.file,r),s=e.getSourceFileLike(o),c=n.sources.map((e=>So(e,a))),l=new Map(c.map(((n,t)=>[e.getCanonicalFileName(n),t])));let d,u,_;return{getSourcePosition:function(e){const n=function(){if(void 0===u){const e=[];for(const n of f())e.push(n);u=he(e,UB,GB)}return u}();if(!ce(n))return e;let t=Ke(n,e.pos,jB,Un);t<0&&(t=~t);const r=n[t];if(void 0===r||!FB(r))return e;return{fileName:c[r.sourceIndex],pos:r.sourcePosition}},getGeneratedPosition:function(n){const t=l.get(e.getCanonicalFileName(n.fileName));if(void 0===t)return n;const r=function(e){if(void 0===_){const e=[];for(const n of f()){if(!FB(n))continue;let t=e[n.sourceIndex];t||(e[n.sourceIndex]=t=[]),t.push(n)}_=e.map((e=>he(e,BB,GB)))}return _[e]}(t);if(!ce(r))return n;let i=Ke(r,n.pos,VB,Un);i<0&&(i=~i);const a=r[i];if(void 0===a||a.sourceIndex!==t)return n;return{fileName:o,pos:a.generatedPosition}}};function p(t){const r=void 0!==s?ys(s,t.generatedLine,t.generatedCharacter,!0):-1;let i,a;if(PB(t)){const r=e.getSourceFileLike(c[t.sourceIndex]);i=n.sources[t.sourceIndex],a=void 0!==r?ys(r,t.sourceLine,t.sourceCharacter,!0):-1}return{generatedPosition:r,source:i,sourceIndex:t.sourceIndex,sourcePosition:a,nameIndex:t.nameIndex}}function f(){if(void 0===d){const t=OB(n.mappings),r=Qe(t,p);void 0!==t.error?(e.log&&e.log(`Encountered error while decoding sourcemap: ${t.error}`),d=i):d=r}return d}}var KB=E({"src/compiler/sourcemap.ts"(){lq(),_a(),xB=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,SB=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,AB=/^\s*(\/\/[@#] .*)?$/,LB={getSourcePosition:Cn,getGeneratedPosition:Cn}}});function WB(e){return(e=Oc(e))?ZG(e):0}function zB(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function qB(e,n){return function(t){return 308===t.kind?n(t):function(t){return e.factory.createBundle(W(t.sourceFiles,n),t.prepends)}(t)}}function JB(e){return!!bg(e)}function XB(e){if(bg(e))return!0;const n=e.importClause&&e.importClause.namedBindings;if(!n)return!1;if(!$I(n))return!1;let t=0;for(const r of n.elements)zB(r)&&t++;return t>0&&t!==n.elements.length||!!(n.elements.length-t)&&Eg(e)}function YB(e){return!XB(e)&&(Eg(e)||!!e.importClause&&$I(e.importClause.namedBindings)&&function(e){return!!e&&!!$I(e)&&ce(e.elements,zB)}(e.importClause.namedBindings))}function $B(e,n,t,r){const i=[],a=un(),o=[],s=new Map;let c,l,d=!1,u=!1,_=!1,p=!1;for(const h of n.statements)switch(h.kind){case 269:i.push(h),!_&&XB(h)&&(_=!0),!p&&YB(h)&&(p=!0);break;case 268:280===h.moduleReference.kind&&i.push(h);break;case 275:if(h.moduleSpecifier)if(h.exportClause)if(i.push(h),nw(h.exportClause))m(h);else{const e=h.exportClause.name;s.get(Uc(e))||(ZB(o,WB(h),e),s.set(Uc(e),!0),c=Te(c,e)),_=!0}else i.push(h),u=!0;else m(h);break;case 274:h.isExportEquals&&!l&&(l=h);break;case 240:if(fb(h,1))for(const e of h.declarationList.declarations)c=QB(e,s,c);break;case 259:if(fb(h,1))if(fb(h,1024))d||(ZB(o,WB(h),e.factory.getDeclarationName(h)),d=!0);else{const e=h.name;s.get(Uc(e))||(ZB(o,WB(h),e),s.set(Uc(e),!0),c=Te(c,e))}break;case 260:if(fb(h,1))if(fb(h,1024))d||(ZB(o,WB(h),e.factory.getDeclarationName(h)),d=!0);else{const e=h.name;e&&!s.get(Uc(e))&&(ZB(o,WB(h),e),s.set(Uc(e),!0),c=Te(c,e))}}const f=ZR(e.factory,e.getEmitHelperFactory(),n,r,u,_,p);return f&&i.unshift(f),{externalImports:i,exportSpecifiers:a,exportEquals:l,hasExportStarsToExportValues:u,exportedBindings:o,exportedNames:c,externalHelpersImportDeclaration:f};function m(e){for(const n of Tn(e.exportClause,nw).elements)if(!s.get(Uc(n.name))){const r=n.propertyName||n.name;e.moduleSpecifier||a.add(Uc(r),n);const i=t.getReferencedImportDeclaration(r)||t.getReferencedValueDeclaration(r);i&&ZB(o,WB(i),n.name),s.set(Uc(n.name),!0),c=Te(c,n.name)}}}function QB(e,n,t){if(Jd(e.name))for(const r of e.name.elements)tI(r)||(t=QB(r,n,t));else if(!yd(e.name)){const r=Uc(e.name);n.get(r)||(n.set(r,!0),t=Te(t,e.name))}return t}function ZB(e,n,t){let r=e[n];return r?r.push(t):e[n]=r=[t],r}function eU(e){return o_(e)||8===e.kind||by(e.kind)||IC(e)}function nU(e){return!IC(e)&&eU(e)}function tU(e){return e>=64&&e<=78}function rU(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}function iU(e){if(!hI(e))return;const n=ey(e.expression);return _m(n)?n:void 0}function aU(e,n){for(let t=n;t<e.length;t+=1){if(iU(e[t]))return t}return-1}function oU(e,n,t){return j(e.members,(e=>function(e,n,t){return YC(e)&&(!!e.initializer||!n)&&hb(e)===t}(e,n,t)))}function sU(e){return YC(n=e)&&hb(n)||ZC(e);var n}function cU(e){return j(e.members,sU)}function lU(e){return 169===e.kind&&void 0!==e.initializer}function dU(e){return!mb(e)&&(Ud(e)||Bd(e))&&wC(e.name)}function uU(e){let n;if(e){const t=e.parameters,r=t.length>0&&qv(t[0]),i=r?1:0,a=r?t.length-1:t.length;for(let e=0;e<a;e++){const r=t[e+i];(n||Tb(r))&&(n||(n=new Array(a)),n[e]=$c(r))}}return n}function _U(e){const n=$c(e),t=uU(Hv(e));if(ce(n)||ce(t))return{decorators:n,parameters:t}}function pU(e,n,t){switch(e.kind){case 174:case 175:return t?function(e,n){if(!e.body)return;const{firstAccessor:t,secondAccessor:r,getAccessor:i,setAccessor:a}=$v(n.members,e),o=Tb(t)?t:r&&Tb(r)?r:void 0;if(!o||e!==o)return;const s=$c(o),c=uU(a);if(!ce(s)&&!ce(c))return;return{decorators:s,parameters:c,getDecorators:i&&$c(i),setDecorators:a&&$c(a)}}(e,n):fU(e);case 171:return fU(e);case 169:return function(e){const n=$c(e);if(!ce(n))return;return{decorators:n}}(e);default:return}}function fU(e){if(!e.body)return;const n=$c(e),t=uU(e);return ce(n)||ce(t)?{decorators:n,parameters:t}:void 0}function mU(e,n){for(;e;){const t=n(e);if(void 0!==t)return t;e=e.previous}}function hU(e){return{data:e}}function gU(e,n){var t,r;return vd(n)?null==(t=null==e?void 0:e.generatedIdentifiers)?void 0:t.get(IN(n)):null==(r=null==e?void 0:e.identifiers)?void 0:r.get(n.escapedText)}function yU(e,n,t){vd(n)?(null!=e.generatedIdentifiers||(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(IN(n),t)):(null!=e.identifiers||(e.identifiers=new Map),e.identifiers.set(n.escapedText,t))}function vU(e,n){return mU(e,(e=>gU(e.privateEnv,n)))}var bU,EU=E({"src/compiler/transformers/utilities.ts"(){lq()}});function TU(e,n,t,r,i,a){let o,s,c=e;if(Wb(e))for(o=e.right;rE(e.left)||tE(e.left);){if(!Wb(o))return Nt.checkDefined(uB(o,n,mu));c=e=o,o=e.right}const l={context:t,level:r,downlevelIteration:!!t.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:d,emitBindingOrAssignment:function(e,r,i,o){Nt.assertNode(e,a?IC:mu);const s=a?a(e,r,i):VN(t.factory.createAssignment(Nt.checkDefined(uB(e,n,mu)),r),i);s.original=o,d(s)},createArrayBindingOrAssignmentPattern:e=>function(e,n){return Nt.assertEachNode(n,ru),e.createArrayLiteralExpression(W(n,e.converters.convertToArrayAssignmentElement))}(t.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,n){return Nt.assertEachNode(n,nu),e.createObjectLiteralExpression(W(n,e.converters.convertToObjectAssignmentElement))}(t.factory,e),createArrayBindingOrAssignmentElement:wU,visitor:n};if(o&&(o=uB(o,n,mu),Nt.assert(o),IC(o)&&xU(e,o.escapedText)||SU(e)?o=IU(l,o,!1,c):i?o=IU(l,o,!0,c):$y(e)&&(c=o)),LU(l,e,o,c,Wb(e)),o&&i){if(!ce(s))return o;s.push(o)}return t.factory.inlineExpressions(s)||t.factory.createOmittedExpression();function d(e){s=Te(s,e)}}function xU(e,n){const t=aN(e);return Zd(t)?function(e,n){const t=dN(e);for(const r of t)if(xU(r,n))return!0;return!1}(t,n):!!IC(t)&&t.escapedText===n}function SU(e){const n=cN(e);if(n&&WC(n)&&!sd(n.expression))return!0;const t=aN(e);return!!t&&Zd(t)&&!!A(dN(t),SU)}function AU(e,n,t,r,i,a=!1,o){let s;const c=[],l=[],d={context:t,level:r,downlevelIteration:!!t.getCompilerOptions().downlevelIteration,hoistTempVariables:a,emitExpression:function(e){s=Te(s,e)},emitBindingOrAssignment:u,createArrayBindingOrAssignmentPattern:e=>function(e,n){return Nt.assertEachNode(n,Yd),e.createArrayBindingPattern(n)}(t.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,n){return Nt.assertEachNode(n,Nk),e.createObjectBindingPattern(n)}(t.factory,e),createArrayBindingOrAssignmentElement:e=>function(e,n){return e.createBindingElement(void 0,void 0,n)}(t.factory,e),visitor:n};if(NI(e)){let n=iN(e);n&&(IC(n)&&xU(e,n.escapedText)||SU(e))&&(n=IU(d,Nt.checkDefined(uB(n,d.visitor,mu)),!1,n),e=t.factory.updateVariableDeclaration(e,e.name,void 0,void 0,n))}if(LU(d,e,i,e,o),s){const e=t.factory.createTempVariable(void 0);if(a){const n=t.factory.inlineExpressions(s);s=void 0,u(e,n,void 0,void 0)}else{t.hoistVariableDeclaration(e);const n=Ge(c);n.pendingExpressions=Te(n.pendingExpressions,t.factory.createAssignment(e,n.value)),Ae(n.pendingExpressions,s),n.value=e}}for(const{pendingExpressions:_,name:p,value:f,location:m,original:h}of c){const e=t.factory.createVariableDeclaration(p,void 0,void 0,_?t.factory.inlineExpressions(Te(_,f)):f);e.original=h,VN(e,m),l.push(e)}return l;function u(e,n,r,i){Nt.assertNode(e,kd),s&&(n=t.factory.inlineExpressions(Te(s,n)),s=void 0),c.push({pendingExpressions:s,name:e,value:n,location:r,original:i})}}function LU(e,n,t,r,i){const a=aN(n);if(!i){const i=uB(iN(n),e.visitor,mu);i?t?(t=function(e,n,t,r){return n=IU(e,n,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(n,"undefined"),void 0,t,void 0,n)}(e,t,i,r),!nU(i)&&Zd(a)&&(t=IU(e,t,!0,r))):t=i:t||(t=e.context.factory.createVoidZero())}eu(a)?function(e,n,t,r,i){const a=dN(t),o=a.length;if(1!==o){r=IU(e,r,!$d(n)||0!==o,i)}let s,c;for(let l=0;l<o;l++){const n=a[l];if(oN(n)){if(l===o-1){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,t),s=void 0);const o=e.context.getEmitHelperFactory().createRestHelper(r,a,c,t);LU(e,n,o,n)}}else{const a=sN(n);if(!(e.level>=1)||98304&n.transformFlags||98304&aN(n).transformFlags||WC(a)){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,t),s=void 0);const o=kU(e,r,a);WC(a)&&(c=Te(c,o.argumentExpression)),LU(e,n,o,n)}else s=Te(s,uB(n,e.visitor,Qd))}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,t)}(e,n,a,t,r):tu(a)?function(e,n,t,r,i){const a=dN(t),o=a.length;if(e.level<1&&e.downlevelIteration)r=IU(e,VN(e.context.getEmitHelperFactory().createReadHelper(r,o>0&&oN(a[o-1])?void 0:o),i),!1,i);else if(1!==o&&(e.level<1||0===o)||N(a,tI)){r=IU(e,r,!$d(n)||0!==o,i)}let s,c;for(let l=0;l<o;l++){const n=a[l];if(e.level>=1)if(65536&n.transformFlags||e.hasTransformedPriorElement&&!CU(n)){e.hasTransformedPriorElement=!0;const t=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(t),c=Te(c,[t,n]),s=Te(s,e.createArrayBindingOrAssignmentElement(t))}else s=Te(s,n);else{if(tI(n))continue;if(oN(n)){if(l===o-1){const t=e.context.factory.createArraySliceCall(r,l);LU(e,n,t,n)}}else{const t=e.context.factory.createElementAccessExpression(r,l);LU(e,n,t,n)}}}s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,i,t);if(c)for(const[l,d]of c)LU(e,d,l,d)}(e,n,a,t,r):e.emitBindingOrAssignment(a,t,r,n)}function CU(e){const n=aN(e);if(!n||tI(n))return!0;const t=cN(e);if(t&&!My(t))return!1;const r=iN(e);return!(r&&!nU(r))&&(Zd(n)?N(dN(n),CU):IC(n))}function kU(e,n,t){if(WC(t)){const r=IU(e,Nt.checkDefined(uB(t.expression,e.visitor,mu)),!1,t);return e.context.factory.createElementAccessExpression(n,r)}if(wy(t)){const r=gA.cloneNode(t);return e.context.factory.createElementAccessExpression(n,r)}{const r=e.context.factory.createIdentifier(Uc(t));return e.context.factory.createPropertyAccessExpression(n,r)}}function IU(e,n,t,r){if(IC(n)&&t)return n;{const t=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(t),e.emitExpression(VN(e.context.factory.createAssignment(t,n),r))):e.emitBindingOrAssignment(t,n,r,void 0),t}}function wU(e){return e}var RU,NU=E({"src/compiler/transformers/destructuring.ts"(){lq(),bU=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(bU||{})}});function DU(e,n,t,r,i,a){const o=uB(n.tag,t,mu);Nt.assert(o);const s=[void 0],c=[],l=[],d=n.template;if(0===a&&!sv(d))return EB(n,t,e);if(mC(d))c.push(OU(d)),l.push(MU(d,r));else{c.push(OU(d.head)),l.push(MU(d.head,r));for(const e of d.templateSpans)c.push(OU(e.literal)),l.push(MU(e.literal,r)),s.push(Nt.checkDefined(uB(e.expression,t,mu)))}const u=e.getEmitHelperFactory().createTemplateObjectHelper(gA.createArrayLiteralExpression(c),gA.createArrayLiteralExpression(l));if(OD(r)){const e=gA.createUniqueName("templateObject");i(e),s[0]=gA.createLogicalOr(e,gA.createAssignment(e,u))}else s[0]=u;return gA.createCallExpression(o,void 0,s)}function OU(e){return e.templateFlags?gA.createVoidZero():gA.createStringLiteral(e.text)}function MU(e,n){let t=e.rawText;if(void 0===t){Nt.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),t=rf(n,e);const r=14===e.kind||17===e.kind;t=t.substring(1,t.length-(r?1:2))}return t=t.replace(/\r\n?/g,"\n"),VN(gA.createStringLiteral(t),e)}var PU,FU=E({"src/compiler/transformers/taggedTemplate.ts"(){lq(),RU=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(RU||{})}});function GU(e){const{factory:n,getEmitHelperFactory:t,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:a,hoistVariableDeclaration:o}=e,s=e.getEmitResolver(),c=e.getCompilerOptions(),l=HT(c),d=KT(c),u=!!c.experimentalDecorators,_=c.emitDecoratorMetadata?jU(e):void 0,p=e.onEmitNode,f=e.onSubstituteNode;let m,h,g,y,v,b,E,T;return e.onEmitNode=function(e,n,t){const r=T,i=m;Iw(n)&&(m=n);2&E&&function(e){return 264===Oc(e).kind}(n)&&(T|=2);8&E&&function(e){return 263===Oc(e).kind}(n)&&(T|=8);p(e,n,t),T=r,m=i},e.onSubstituteNode=function(e,t){if(t=f(e,t),1===e)return function(e){switch(e.kind){case 79:return function(e){return ke(e)||e}(e);case 208:case 209:return function(e){return Ie(e)}(e)}return e}(t);if(Aw(t))return function(e){if(2&E){const t=e.name,r=ke(t);if(r){if(e.objectAssignmentInitializer){const i=n.createAssignment(r,e.objectAssignmentInitializer);return VN(n.createPropertyAssignment(t,i),e)}return VN(n.createPropertyAssignment(t,r),e)}}return e}(t);return t},e.enableSubstitution(208),e.enableSubstitution(209),function(e){if(309===e.kind)return function(e){return n.createBundle(e.sourceFiles.map(x),ee(e.prepends,(e=>311===e.kind?NA(e,"js"):e)))}(e);return x(e)};function x(n){if(n.isDeclarationFile)return n;m=n;const t=S(n,F);return dL(t,e.readEmitHelpers()),m=void 0,t}function S(e,n){const t=y,r=v,i=b;!function(e){switch(e.kind){case 308:case 266:case 265:case 238:y=e,v=void 0;break;case 260:case 259:if(fb(e,2))break;e.name?oe(e):Nt.assert(260===e.kind||fb(e,1024))}}(e);const a=n(e);return y!==t&&(v=r),y=t,b=i,a}function A(e){return S(e,L)}function L(e){return 1&e.transformFlags?P(e):e}function C(e){return S(e,k)}function k(t){switch(t.kind){case 269:case 268:case 274:case 275:return function(t){const r=Fc(t);if(r!==t)return 1&t.transformFlags?EB(t,A,e):t;switch(t.kind){case 269:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;const t=uB(e.importClause,pe,WI);return t||1===c.importsNotUsedAsValues||2===c.importsNotUsedAsValues?n.updateImportDeclaration(e,void 0,t,e.moduleSpecifier,e.assertClause):void 0}(t);case 268:return ge(t);case 274:return function(n){return c.verbatimModuleSyntax||s.isValueAliasDeclaration(n)?EB(n,A,e):void 0}(t);case 275:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||YI(e.exportClause))return e;const t=c.verbatimModuleSyntax||!!e.moduleSpecifier&&(1===c.importsNotUsedAsValues||2===c.importsNotUsedAsValues),r=uB(e.exportClause,(e=>function(e,t){return YI(e)?function(e){return n.updateNamespaceExport(e,Nt.checkDefined(uB(e.name,A,IC)))}(e):function(e,t){const r=_B(e.elements,he,tw);return t||ce(r)?n.updateNamedExports(e,r):void 0}(e,t)}(e,t)),$l);return r?n.updateExportDeclaration(e,void 0,e.isTypeOnly,r,e.moduleSpecifier,e.assertClause):void 0}(t);default:Nt.fail("Unhandled ellided statement")}}(t);default:return L(t)}}function I(e){return S(e,w)}function w(e){if(275!==e.kind&&269!==e.kind&&270!==e.kind&&(268!==e.kind||280!==e.moduleReference.kind))return 1&e.transformFlags||fb(e,1)?P(e):e}function R(t){return r=>S(r,(r=>function(t,r){switch(t.kind){case 173:return function(t){if(!Y(t))return;return n.updateConstructorDeclaration(t,void 0,hB(t.parameters,A,e),function(t,r){const o=r&&j(r.parameters,(e=>Ac(e,r)));if(!ce(o))return yB(t,A,e);let s=[];i();const c=n.copyPrologue(t.statements,s,!1,A),l=aU(t.statements,c);l>=0&&Ae(s,_B(t.statements,A,Bu,c,l+1-c));const d=ee(o,$);l>=0?Ae(s,d):s=[...s.slice(0,c),...d,...s.slice(c)];const u=l>=0?l+1:c;Ae(s,_B(t.statements,A,Bu,u)),s=n.mergeLexicalEnvironment(s,a());const _=n.createBlock(VN(n.createNodeArray(s),t.statements),!0);return VN(_,t),FA(_,t),_}(t.body,t))}(t);case 169:return function(e,t){const r=16777216&e.flags||fb(e,256);if(r&&(!u||!Tb(e)))return;let i=Fd(t)?_B(e.modifiers,r?O:A,jd):_B(e.modifiers,D,jd);if(i=H(i,e,t),r)return n.updatePropertyDeclaration(e,de(i,n.createModifiersFromModifierFlags(2)),Nt.checkDefined(uB(e.name,A,Cd)),void 0,void 0,void 0);return n.updatePropertyDeclaration(e,i,X(e),void 0,void 0,uB(e.initializer,A,mu))}(t,r);case 174:return ne(t,r);case 175:return te(t,r);case 171:return Q(t,r);case 172:return EB(t,A,e);case 237:return t;case 178:return;default:return Nt.failBadSyntaxKind(t)}}(r,t)))}function N(e){return n=>S(n,(n=>function(e,n){switch(e.kind){case 299:case 300:case 301:return A(e);case 174:return ne(e,n);case 175:return te(e,n);case 171:return Q(e,n);default:return Nt.failBadSyntaxKind(e)}}(n,e)))}function D(e){return JC(e)?void 0:A(e)}function O(e){return Ad(e)?void 0:A(e)}function M(e){if(!JC(e)&&!(117086&Db(e.kind))&&(!h||93!==e.kind))return e}function P(t){if(Bu(t)&&fb(t,2))return n.createNotEmittedStatement(t);switch(t.kind){case 93:case 88:return h?void 0:t;case 123:case 121:case 122:case 126:case 161:case 85:case 136:case 146:case 101:case 145:case 185:case 186:case 187:case 188:case 184:case 179:case 165:case 131:case 157:case 134:case 152:case 148:case 144:case 114:case 153:case 182:case 181:case 183:case 180:case 189:case 190:case 191:case 193:case 194:case 195:case 196:case 197:case 198:case 178:case 267:return;case 262:case 261:return n.createNotEmittedStatement(t);case 260:return function(t){var r;const i=function(e){let n=0;ce(oU(e,!0,!0))&&(n|=1);const t=py(e);t&&104!==qR(t.expression).kind&&(n|=64);mh(u,e)&&(n|=2);fh(u,e)&&(n|=4);ye(e)?n|=8:!function(e){return ve(e)&&fb(e,1024)}(e)?be(e)&&(n|=16):n|=32;return n}(t),a=l<=1&&!!(7&i);if(!function(e){return Tb(e)||ce(e.typeParameters)||ce(e.heritageClauses,G)||ce(e.members,G)}(t)&&!mh(u,t)&&!ye(t))return n.updateClassDeclaration(t,_B(t.modifiers,M,Ad),t.name,void 0,_B(t.heritageClauses,A,Tw),_B(t.members,R(t),Pd));a&&e.startLexicalEnvironment();const o=a||8&i||2&i&&u||1&i;let s=_B(t.modifiers,o?O:A,jd);2&i&&(s=V(s,t));const c=o&&!t.name||4&i||1&i,d=c?null!=(r=t.name)?r:n.getGeneratedNameForNode(t):t.name,_=n.updateClassDeclaration(t,s,d,void 0,_B(t.heritageClauses,A,Tw),U(t));let p,f=df(t);1&i&&(f|=64);if(jA(_,f),a){const r=[_],a=vE(Ns(m.text,t.members.end),19),o=n.getInternalName(t),s=n.createPartiallyEmittedExpression(o);xS(s,a.end),jA(s,3072);const c=n.createReturnStatement(s);TS(c,a.pos),jA(c,3840),r.push(c),Jp(r,e.endLexicalEnvironment());const l=n.createImmediatelyInvokedArrowFunction(r);KA(l,1);const d=16&i?n.createModifiersFromModifierFlags(1):void 0,u=n.createVariableStatement(d,n.createVariableDeclarationList([n.createVariableDeclaration(n.getLocalName(t,!1,!1),void 0,void 0,l)],1));FA(u,t),ZA(u,t),qA(u,hE(t)),YR(u),p=u}else p=_;if(o){if(8&i)return B(p,Ee(t));if(32&i)return B(p,n.createExportDefault(n.getLocalName(t,!1,!0)));if(16&i&&!a)return B(p,n.createExternalModuleExport(n.getLocalName(t,!1,!0)))}return p}(t);case 228:return function(e){let t=_B(e.modifiers,O,jd);mh(u,e)&&(t=V(t,e));return n.updateClassExpression(e,t,e.name,void 0,_B(e.heritageClauses,A,Tw),U(e))}(t);case 294:return function(n){if(117===n.token)return;return EB(n,A,e)}(t);case 230:return function(e){return n.updateExpressionWithTypeArguments(e,Nt.checkDefined(uB(e.expression,A,lu)),void 0)}(t);case 207:return function(e){return n.updateObjectLiteralExpression(e,_B(e.properties,N(e),Wd))}(t);case 173:case 169:case 171:case 174:case 175:case 172:return Nt.fail("Class and object literal elements must be visited with their respective visitors");case 259:return function(t){if(!Y(t))return n.createNotEmittedStatement(t);const r=n.updateFunctionDeclaration(t,_B(t.modifiers,M,Ad),t.asteriskToken,t.name,void 0,hB(t.parameters,A,e),void 0,yB(t.body,A,e)||n.createBlock([]));if(ye(t)){const e=[r];return function(e,n){e.push(Ee(n))}(e,t),e}return r}(t);case 215:return function(t){if(!Y(t))return n.createOmittedExpression();const r=n.updateFunctionExpression(t,_B(t.modifiers,M,Ad),t.asteriskToken,t.name,void 0,hB(t.parameters,A,e),void 0,yB(t.body,A,e)||n.createBlock([]));return r}(t);case 216:return function(t){const r=n.updateArrowFunction(t,_B(t.modifiers,M,Ad),void 0,hB(t.parameters,A,e),void 0,t.equalsGreaterThanToken,yB(t.body,A,e));return r}(t);case 166:return function(e){if(qv(e))return;const t=n.updateParameterDeclaration(e,_B(e.modifiers,(e=>JC(e)?A(e):void 0),jd),e.dotDotDotToken,Nt.checkDefined(uB(e.name,A,kd)),void 0,void 0,uB(e.initializer,A,mu));t!==e&&(ZA(t,e),VN(t,gE(e)),qA(t,gE(e)),jA(t.name,64));return t}(t);case 214:return function(t){const r=qR(t.expression,-7);if(hu(r)){const e=uB(t.expression,A,mu);return Nt.assert(e),n.createPartiallyEmittedExpression(e,t)}return EB(t,A,e)}(t);case 213:case 231:return function(e){const t=uB(e.expression,A,mu);return Nt.assert(t),n.createPartiallyEmittedExpression(t,e)}(t);case 235:return function(e){const t=uB(e.expression,A,mu);return Nt.assert(t),n.createPartiallyEmittedExpression(t,e)}(t);case 210:return function(e){return n.updateCallExpression(e,Nt.checkDefined(uB(e.expression,A,mu)),void 0,_B(e.arguments,A,mu))}(t);case 211:return function(e){return n.updateNewExpression(e,Nt.checkDefined(uB(e.expression,A,mu)),void 0,_B(e.arguments,A,mu))}(t);case 212:return function(e){return n.updateTaggedTemplateExpression(e,Nt.checkDefined(uB(e.tag,A,mu)),void 0,Nt.checkDefined(uB(e.template,A,cu)))}(t);case 232:return function(e){const t=uB(e.expression,A,lu);return Nt.assert(t),n.createPartiallyEmittedExpression(t,e)}(t);case 263:return function(e){if(!function(e){return!cm(e)||sx(c)}(e))return n.createNotEmittedStatement(e);const t=[];let i=4;const o=le(t,e);o&&(4===d&&y===m||(i|=1024));const s=Le(e),l=Ce(e),u=fb(e,1)?n.getExternalModuleOrNamespaceExportName(g,e,!1,!0):n.getLocalName(e,!1,!0);let _=n.createLogicalOr(u,n.createAssignment(u,n.createObjectLiteralExpression()));if(ae(e)){const t=n.getLocalName(e,!1,!0);_=n.createAssignment(t,_)}const p=n.createExpressionStatement(n.createCallExpression(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,s)],void 0,function(e,t){const i=g;g=t;const o=[];r();const s=W(e.members,ie);return Jp(o,a()),Ae(o,s),g=i,n.createBlock(VN(n.createNodeArray(o),e.members),!0)}(e,l)),void 0,[_]));FA(p,e),o&&(nL(p,void 0),iL(p,void 0));return VN(p,e),HA(p,i),t.push(p),t.push(n.createEndOfDeclarationMarker(e)),t}(t);case 240:return function(t){if(ye(t)){const e=DE(t.declarationList);if(0===e.length)return;return VN(n.createExpressionStatement(n.inlineExpressions(W(e,re))),t)}return EB(t,A,e)}(t);case 257:return function(e){const t=n.updateVariableDeclaration(e,Nt.checkDefined(uB(e.name,A,kd)),void 0,void 0,uB(e.initializer,A,mu));e.type&&gL(t.name,e.type);return t}(t);case 264:return ue(t);case 268:return ge(t);case 282:return function(e){return n.updateJsxSelfClosingElement(e,Nt.checkDefined(uB(e.tagName,A,ju)),void 0,Nt.checkDefined(uB(e.attributes,A,gw)))}(t);case 283:return function(e){return n.updateJsxOpeningElement(e,Nt.checkDefined(uB(e.tagName,A,ju)),void 0,Nt.checkDefined(uB(e.attributes,A,gw)))}(t);default:return EB(t,A,e)}}function F(t){const r=lx(c,"alwaysStrict")&&!(OD(t)&&d>=5)&&!sm(t);return n.updateSourceFile(t,mB(t.statements,C,e,0,r))}function G(e){return!!(8192&e.transformFlags)}function B(e,t){return HA(e,8388608),[e,t,n.createEndOfDeclarationMarker(e)]}function U(e){const t=_B(e.members,R(e),Pd);let r;const i=Hv(e),a=i&&j(i.parameters,(e=>Ac(e,i)));if(a)for(const o of a){const e=n.createPropertyDeclaration(void 0,o.name,void 0,void 0,void 0);FA(e,o),r=Te(r,e)}return r?(r=Ae(r,t),VN(n.createNodeArray(r),e.members)):t}function V(e,t){const r=K(t,t);if(ce(r)){const t=[];Ae(t,Ct(e,LN)),Ae(t,j(e,JC)),Ae(t,r),Ae(t,j(kt(e,LN),Ad)),e=VN(n.createNodeArray(t),e)}return e}function H(e,t,r){if(Fd(r)&&hh(u,t,r)){const i=K(t,r);if(ce(i)){const t=[];Ae(t,j(e,JC)),Ae(t,i),Ae(t,j(e,Ad)),e=VN(n.createNodeArray(t),e)}}return e}function K(e,r){if(u)return PU?function(e,r){if(_){let i;if(z(e)){i=Te(i,n.createPropertyAssignment("type",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(38),_.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))}if(J(e)){i=Te(i,n.createPropertyAssignment("paramTypes",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(38),_.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))}if(q(e)){i=Te(i,n.createPropertyAssignment("returnType",n.createArrowFunction(void 0,void 0,[],void 0,n.createToken(38),_.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))}if(i){const e=t().createMetadataHelper("design:typeinfo",n.createObjectLiteralExpression(i,!0));return[n.createDecorator(e)]}}}(e,r):function(e,r){if(_){let i;if(z(e)){const a=t().createMetadataHelper("design:type",_.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=Te(i,n.createDecorator(a))}if(J(e)){const a=t().createMetadataHelper("design:paramtypes",_.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=Te(i,n.createDecorator(a))}if(q(e)){const a=t().createMetadataHelper("design:returntype",_.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=Te(i,n.createDecorator(a))}return i}}(e,r)}function z(e){const n=e.kind;return 171===n||174===n||175===n||169===n}function q(e){return 171===e.kind}function J(e){switch(e.kind){case 260:case 228:return void 0!==Hv(e);case 171:case 174:case 175:return!0}return!1}function X(e){const t=e.name;if(WC(t)&&(!hb(e)&&b||Tb(e)&&u)){const e=uB(t.expression,A,mu);Nt.assert(e);if(!nU(Jl(e))){const r=n.getGeneratedNameForNode(t);return o(r),n.updateComputedPropertyName(t,n.createAssignment(r,e))}}return Nt.checkDefined(uB(t,A,Cd))}function Y(e){return!Vp(e.body)}function $(e){const t=e.name;if(!IC(t))return;const r=CS(VN(n.cloneNode(t),t),t.parent);jA(r,3168);const i=CS(VN(n.cloneNode(t),t),t.parent);return jA(i,3072),YR(VA(VN(FA(n.createExpressionStatement(n.createAssignment(VN(n.createPropertyAccessExpression(n.createThis(),r),e.name),i)),e),mE(e,-1))))}function Q(t,r){if(!(1&t.transformFlags))return t;if(!Y(t))return;let i=Fd(r)?_B(t.modifiers,A,jd):_B(t.modifiers,D,jd);return i=H(i,t,r),n.updateMethodDeclaration(t,i,t.asteriskToken,X(t),void 0,void 0,hB(t.parameters,A,e),void 0,yB(t.body,A,e))}function Z(e){return!(Vp(e.body)&&fb(e,256))}function ne(t,r){if(!(1&t.transformFlags))return t;if(!Z(t))return;let i=Fd(r)?_B(t.modifiers,A,jd):_B(t.modifiers,D,jd);return i=H(i,t,r),n.updateGetAccessorDeclaration(t,i,X(t),hB(t.parameters,A,e),void 0,yB(t.body,A,e)||n.createBlock([]))}function te(t,r){if(!(1&t.transformFlags))return t;if(!Z(t))return;let i=Fd(r)?_B(t.modifiers,A,jd):_B(t.modifiers,D,jd);return i=H(i,t,r),n.updateSetAccessorDeclaration(t,i,X(t),hB(t.parameters,A,e),yB(t.body,A,e)||n.createBlock([]))}function re(t){const r=t.name;return Jd(r)?TU(t,A,e,0,!1,xe):VN(n.createAssignment(Se(r),Nt.checkDefined(uB(t.initializer,A,mu))),t)}function ie(t){const r=function(e,t){const r=e.name;return wC(r)?n.createIdentifier(""):WC(r)?t&&!nU(r.expression)?n.getGeneratedNameForNode(r):r.expression:IC(r)?n.createStringLiteral(Uc(r)):n.cloneNode(r)}(t,!1),i=function(t){const r=s.getConstantValue(t);return void 0!==r?"string"===typeof r?n.createStringLiteral(r):n.createNumericLiteral(r):(0===(8&E)&&(E|=8,e.enableSubstitution(79)),t.initializer?Nt.checkDefined(uB(t.initializer,A,mu)):n.createVoidZero())}(t),a=n.createAssignment(n.createElementAccessExpression(g,r),i),o=10===i.kind?a:n.createAssignment(n.createElementAccessExpression(g,a),r);return VN(n.createExpressionStatement(VN(o,t)),t)}function ae(e){return ye(e)||ve(e)&&5!==d&&6!==d&&7!==d&&99!==d&&4!==d}function oe(e){v||(v=new Map);const n=se(e);v.has(n)||v.set(n,e)}function se(e){return Nt.assertNode(e.name,IC),e.name.escapedText}function le(e,t){const r=n.createVariableStatement(_B(t.modifiers,M,Ad),n.createVariableDeclarationList([n.createVariableDeclaration(n.getLocalName(t,!1,!0))],308===y.kind?0:1));if(FA(r,t),oe(t),function(e){if(v){const n=se(e);return v.get(n)===e}return!0}(t))return 263===t.kind?qA(r.declarationList,t):qA(r,t),ZA(r,t),HA(r,8390656),e.push(r),!0;{const t=n.createMergeDeclarationMarker(r);return jA(t,8391680),e.push(t),!1}}function ue(t){if(!function(e){const n=Fc(e,BI);return!n||nB(n,sx(c))}(t))return n.createNotEmittedStatement(t);Nt.assertNode(t.name,IC,"A TypeScript namespace should have an Identifier name."),0===(2&E)&&(E|=2,e.enableSubstitution(79),e.enableSubstitution(300),e.enableEmitNotification(264));const i=[];let o=4;const s=le(i,t);s&&(4===d&&y===m||(o|=1024));const l=Le(t),u=Ce(t),_=fb(t,1)?n.getExternalModuleOrNamespaceExportName(g,t,!1,!0):n.getLocalName(t,!1,!0);let p=n.createLogicalOr(_,n.createAssignment(_,n.createObjectLiteralExpression()));if(ae(t)){const e=n.getLocalName(t,!1,!0);p=n.createAssignment(e,p)}const f=n.createExpressionStatement(n.createCallExpression(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,l)],void 0,function(e,t){const i=g,o=h,s=v;g=t,h=e,v=void 0;const c=[];let l,d;if(r(),e.body)if(265===e.body.kind)S(e.body,(e=>Ae(c,_B(e.statements,I,Bu)))),l=e.body.statements,d=e.body;else{const n=ue(e.body);n&&(gn(n)?Ae(c,n):c.push(n));l=mE(_e(e).body.statements,-1)}Jp(c,a()),g=i,h=o,v=s;const u=n.createBlock(VN(n.createNodeArray(c),l),!0);VN(u,d),e.body&&265===e.body.kind||jA(u,3072|df(u));return u}(t,u)),void 0,[p]));return FA(f,t),s&&(nL(f,void 0),iL(f,void 0)),VN(f,t),HA(f,o),i.push(f),i.push(n.createEndOfDeclarationMarker(t)),i}function _e(e){if(264===e.body.kind){return _e(e.body)||e.body}}function pe(e){Nt.assert(!e.isTypeOnly);const t=we(e)?e.name:void 0,r=uB(e.namedBindings,fe,wu);return t||r?n.updateImportClause(e,!1,t,r):void 0}function fe(e){if(271===e.kind)return we(e)?e:void 0;{const t=c.verbatimModuleSyntax||c.preserveValueImports&&(1===c.importsNotUsedAsValues||2===c.importsNotUsedAsValues),r=_B(e.elements,me,QI);return t||ce(r)?n.updateNamedImports(e,r):void 0}}function me(e){return!e.isTypeOnly&&we(e)?e:void 0}function he(e){return e.isTypeOnly||!c.verbatimModuleSyntax&&!s.isValueAliasDeclaration(e)?void 0:e}function ge(t){if(t.isTypeOnly)return;if(xh(t)){const r=we(t);return r||1!==c.importsNotUsedAsValues?r?EB(t,A,e):void 0:FA(VN(n.createImportDeclaration(void 0,void 0,t.moduleReference.expression,void 0),t),t)}if(!function(e){return we(e)||!OD(m)&&s.isTopLevelValueImportEqualsWithEntityName(e)}(t))return;const r=NR(n,t.moduleReference);return jA(r,7168),be(t)||!ye(t)?FA(VN(n.createVariableStatement(_B(t.modifiers,M,Ad),n.createVariableDeclarationList([FA(n.createVariableDeclaration(t.name,void 0,void 0,r),t)])),t),t):FA((i=t.name,a=r,o=t,VN(n.createExpressionStatement(n.createAssignment(n.getNamespaceMemberName(g,i,!1,!0),a)),o)),t);var i,a,o}function ye(e){return void 0!==h&&fb(e,1)}function ve(e){return void 0===h&&fb(e,1)}function be(e){return ve(e)&&!fb(e,1024)}function Ee(e){const t=n.createAssignment(n.getExternalModuleOrNamespaceExportName(g,e,!1,!0),n.getLocalName(e));qA(t,pE(e.name?e.name.pos:e.pos,e.end));const r=n.createExpressionStatement(t);return qA(r,pE(-1,e.end)),r}function xe(e,t,r){return VN(n.createAssignment(Se(e),t),r)}function Se(e){return n.getNamespaceMemberName(g,e,!1,!0)}function Le(e){const t=n.getGeneratedNameForNode(e);return qA(t,e.name),t}function Ce(e){return n.getGeneratedNameForNode(e)}function ke(e){if(E&T&&!yd(e)&&!FR(e)){const t=s.getReferencedExportContainer(e,!1);if(t&&308!==t.kind){if(2&T&&264===t.kind||8&T&&263===t.kind)return VN(n.createPropertyAccessExpression(n.getGeneratedNameForNode(t),e),e)}}}function Ie(e){const t=function(e){if(XT(c))return;return Mk(e)||Pk(e)?s.getConstantValue(e):void 0}(e);if(void 0!==t){cL(e,t);const i="string"===typeof t?n.createStringLiteral(t):n.createNumericLiteral(t);if(!c.removeComments){const n=Oc(e,iT);aL(i,3,` ${r=sf(n),r.replace(/\*\//g,"*_/")} `)}return i}var r;return e}function we(e){return c.verbatimModuleSyntax||Ih(e)||(c.preserveValueImports?s.isValueAliasDeclaration(e):s.isReferencedAliasDeclaration(e))}}var BU=E({"src/compiler/transformers/ts.ts"(){lq(),PU=!1}});function UU(e){const{factory:n,getEmitHelperFactory:t,hoistVariableDeclaration:r,endLexicalEnvironment:i,startLexicalEnvironment:a,resumeLexicalEnvironment:o,addBlockScopedVariable:s}=e,c=e.getEmitResolver(),l=e.getCompilerOptions(),d=HT(l),u=ux(l),_=!!l.experimentalDecorators,p=!u,f=u&&d<9,m=p||f,h=d<9,g=d<99?-1:u?0:3,y=d<9,v=y&&d>=2,b=m||h||-1===g,E=e.onSubstituteNode;e.onSubstituteNode=function(e,t){if(t=E(e,t),1===e)return function(e){switch(e.kind){case 79:return function(e){return function(e){if(1&x&&2097152&c.getNodeCheckFlags(e)){const t=c.getReferencedValueDeclaration(e);if(t){const r=S[t.id];if(r){const t=n.cloneNode(r);return qA(t,e),ZA(t,e),t}}}return}(e)||e}(e);case 108:return function(e){if(2&x&&(null==C?void 0:C.data)){const{facts:t,classConstructor:r,classThis:i}=C.data;if(1&t&&_)return n.createParenthesizedExpression(n.createVoidZero());const a=N&&null!=i?i:r;if(a)return VN(FA(n.cloneNode(a),e),e)}return e}(e)}return e}(t);return t};const T=e.onEmitNode;e.onEmitNode=function(e,n,t){const r=Oc(n),i=I.get(r);if(i){const a=C,o=O;return C=i,O=N,N=!ZC(r)||!(32&uf(r)),T(e,n,t),N=O,O=o,void(C=a)}switch(n.kind){case 215:if(Hk(r)||524288&df(n))break;case 259:case 173:case 174:case 175:case 171:case 169:{const r=C,i=O;return C=void 0,O=N,N=!1,T(e,n,t),N=O,O=i,void(C=r)}case 164:{const r=C,i=N;return C=null==C?void 0:C.previous,N=O,T(e,n,t),N=i,void(C=r)}}T(e,n,t)};let x,S,A,L,C,k=!1;const I=new Map;let w,R,N=!1,O=!1;return qB(e,(function(n){if(n.isDeclarationFile)return n;if(C=void 0,k=!!(32&uf(n)),!b&&!k)return n;const t=EB(n,P,e);return dL(t,e.readEmitHelpers()),t}));function M(e){return 127===e.kind?ne()?void 0:e:En(e,Ad)}function P(t){if(!(16777216&t.transformFlags)&&!(134234112&t.transformFlags))return t;switch(t.kind){case 127:return Nt.fail("Use `modifierVisitor` instead.");case 260:return function(e){return me(e,void 0,he)}(t);case 228:return ge(t,void 0);case 172:case 169:return Nt.fail("Use `classElementVisitor` instead.");case 299:return function(t){if(zy(t,le)){const{referencedName:e,name:r}=_e(t.name),i=uB(t.initializer,(n=>G(n,e)),mu);return n.updatePropertyAssignment(t,r,i)}return EB(t,P,e)}(t);case 240:return function(n){const t=L;L=[];const r=EB(n,P,e),i=ce(L)?[r,...L]:r;return L=t,i}(t);case 257:return function(t){if(zy(t,le)){const e=q(t.name,t.initializer),r=uB(t.name,P,kd),i=uB(t.initializer,(n=>G(n,e)),mu);return n.updateVariableDeclaration(t,r,void 0,void 0,i)}return EB(t,P,e)}(t);case 166:return function(t){if(zy(t,le)){const e=q(t.name,t.initializer),r=uB(t.name,P,kd),i=uB(t.initializer,(n=>G(n,e)),mu);return n.updateParameterDeclaration(t,void 0,void 0,r,void 0,void 0,i)}return EB(t,P,e)}(t);case 205:return function(t){if(zy(t,le)){const e=q(t.name,t.initializer),r=uB(t.propertyName,P,Cd),i=uB(t.name,P,kd),a=uB(t.initializer,(n=>G(n,e)),mu);return n.updateBindingElement(t,void 0,r,i,a)}return EB(t,P,e)}(t);case 274:return function(t){if(zy(t,le)){const e=n.createStringLiteral(t.isExportEquals?"":"default"),r=_B(t.modifiers,M,Ad),i=uB(t.expression,(n=>G(n,e)),mu);return n.updateExportAssignment(t,r,i)}return EB(t,P,e)}(t);case 80:return function(e){if(!h)return e;if(Bu(e.parent))return e;return FA(n.createIdentifier(""),e)}(t);case 208:return function(t){if(wC(t.name)){const e=Pe(t.name);if(e)return VN(FA(re(e,t.expression),t),t)}if(v&&ah(t)&&IC(t.name)&&R&&(null==C?void 0:C.data)){const{classConstructor:e,superClassReference:r,facts:i}=C.data;if(1&i)return Ce(t);if(e&&r){const i=n.createReflectGetCall(r,n.createStringLiteralFromNode(t.name),e);return FA(i,t.expression),VN(i,t.expression),i}}return EB(t,P,e)}(t);case 209:return function(t){if(v&&ah(t)&&R&&(null==C?void 0:C.data)){const{classConstructor:e,superClassReference:r,facts:i}=C.data;if(1&i)return Ce(t);if(e&&r){const i=n.createReflectGetCall(r,uB(t.argumentExpression,P,mu),e);return FA(i,t.expression),VN(i,t.expression),i}}return EB(t,P,e)}(t);case 221:case 222:return ae(t,!1);case 223:return de(t,!1);case 214:return ue(t,!1,void 0);case 210:return function(t){var i;if(Ed(t.expression)&&Pe(t.expression.name)){const{thisArg:e,target:i}=n.createCallBinding(t.expression,r,d);return Vl(t)?n.updateCallChain(t,n.createPropertyAccessChain(uB(i,P,mu),t.questionDotToken,"call"),void 0,void 0,[uB(e,P,mu),..._B(t.arguments,P,mu)]):n.updateCallExpression(t,n.createPropertyAccessExpression(uB(i,P,mu),"call"),void 0,[uB(e,P,mu),..._B(t.arguments,P,mu)])}if(v&&ah(t.expression)&&R&&(null==(i=null==C?void 0:C.data)?void 0:i.classConstructor)){const e=n.createFunctionCallCall(uB(t.expression,P,mu),C.data.classConstructor,_B(t.arguments,P,mu));return FA(e,t),VN(e,t),e}return EB(t,P,e)}(t);case 241:return function(e){return n.updateExpressionStatement(e,uB(e.expression,B,mu))}(t);case 212:return function(t){var i;if(Ed(t.tag)&&Pe(t.tag.name)){const{thisArg:e,target:i}=n.createCallBinding(t.tag,r,d);return n.updateTaggedTemplateExpression(t,n.createCallExpression(n.createPropertyAccessExpression(uB(i,P,mu),"bind"),void 0,[uB(e,P,mu)]),void 0,uB(t.template,P,cu))}if(v&&ah(t.tag)&&R&&(null==(i=null==C?void 0:C.data)?void 0:i.classConstructor)){const e=n.createFunctionBindCall(uB(t.tag,P,mu),C.data.classConstructor,[]);return FA(e,t),VN(e,t),n.updateTaggedTemplateExpression(t,e,void 0,uB(t.template,P,cu))}return EB(t,P,e)}(t);case 245:return function(t){return n.updateForStatement(t,uB(t.initializer,B,Lu),uB(t.condition,P,mu),uB(t.incrementor,B,mu),vB(t.statement,P,e))}(t);case 259:case 215:case 173:case 171:case 174:case 175:return Q(void 0,F,t);default:return F(t)}}function F(n){return EB(n,P,e)}function G(e,t){switch(e.kind){case 356:return function(e,t,r){const i=t?B:r?e=>G(e,r):P,a=uB(e.expression,i,mu);return n.updatePartiallyEmittedExpression(e,a)}(e,!1,t);case 214:return ue(e,!1,t);case 228:return ge(e,t);default:return P(e)}}function B(e){switch(e.kind){case 221:case 222:return ae(e,!0);case 223:return de(e,!0);case 357:return function(e,t){const r=t?bB(e.elements,B):bB(e.elements,P,B);return n.updateCommaListExpression(e,r)}(e,!0);case 214:return ue(e,!0,void 0);default:return P(e)}}function U(t){switch(t.kind){case 294:return EB(t,U,e);case 230:return function(t){var i;if(4&((null==(i=null==C?void 0:C.data)?void 0:i.facts)||0)){const e=n.createTempVariable(r,!0);return ke().superClassReference=e,n.updateExpressionWithTypeArguments(t,n.createAssignment(e,uB(t.expression,P,mu)),void 0)}return EB(t,P,e)}(t);default:return P(t)}}function V(e){switch(e.kind){case 207:case 206:return Ve(e);default:return P(e)}}function H(n){switch(n.kind){case 173:return function(e){if(w)return Ee(e,w);return F(e)}(n);case 174:case 175:case 171:return Q(void 0,$,n);case 169:return Q(void 0,te,n);case 172:return function(n){if(!h)return EB(n,P,e);return}(n);case 164:return X(n);case 237:return n;default:return jd(n)?M(n):P(n)}}function K(e){return 164===e.kind?X(e):P(e)}function z(e){switch(e.kind){case 169:return ee(e);case 174:case 175:return H(e);default:Nt.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function q(e,t){const r=Oc(t,Fd);return r&&!r.name&&fb(r,1024)?n.createStringLiteral("default"):n.createStringLiteralFromNode(e)}function J(e){return ce(A)&&(Vk(e)?(A.push(e.expression),e=n.updateParenthesizedExpression(e,n.inlineExpressions(A))):(A.push(e),e=n.inlineExpressions(A)),A=void 0),e}function X(e){const t=uB(e.expression,P,mu);return n.updateComputedPropertyName(e,J(t))}function Y(e){return!!h||!!(hb(e)&&32&uf(e))}function $(t){if(Nt.assert(!Tb(t)),!bd(t)||!Y(t))return EB(t,H,e);const r=Pe(t.name);if(Nt.assert(r,"Undeclared private name for property declaration."),!r.isValid)return t;const i=function(e){Nt.assert(wC(e.name));const n=Pe(e.name);if(Nt.assert(n,"Undeclared private name for property declaration."),"m"===n.kind)return n.methodName;if("a"===n.kind){if(Qu(e))return n.getterName;if($u(e))return n.setterName}}(t);i&&we().push(n.createAssignment(i,n.createFunctionExpression(j(t.modifiers,(e=>Ad(e)&&!FC(e)&&!UC(e))),t.asteriskToken,i,void 0,hB(t.parameters,P,e),void 0,yB(t.body,P,e))))}function Q(e,n,t){const r=R;R=e;const i=n(t);return R=r,i}function Z(e){if(!m||Bd(e))return n.updatePropertyDeclaration(e,_B(e.modifiers,M,Ad),uB(e.name,K,Cd),void 0,void 0,uB(e.initializer,P,mu));{const i=function(e,i,a){if(WC(e)){const o=PN(e);let l=uB(e.expression,P,mu);const d=Jl(l),u=nU(d);if(!(!!o||Hb(d)&&yd(d.left))&&!u&&i){const i=n.getGeneratedNameForNode(e);return 32768&c.getNodeCheckFlags(e)?s(i):r(i),a&&(l=t().createPropKeyHelper(l)),n.createAssignment(i,l)}return u||IC(d)?void 0:l}}(e.name,!!e.initializer||u,zy(e,le));if(i&&we().push(...GN(i)),mb(e)&&!h){const t=Se(e,n.createThis());if(t){const r=n.createClassStaticBlockDeclaration(n.createBlock([t]));return FA(r,e),ZA(r,e),ZA(t,{pos:-1,end:-1}),nL(t,void 0),iL(t,void 0),r}}}}function ee(e){return Nt.assert(!Tb(e),"Decorators should already have been transformed and elided."),bd(e)?function(e){if(!Y(e)){if(p&&!mb(e)&&(null==C?void 0:C.data)&&16&C.data.facts)return n.updatePropertyDeclaration(e,_B(e.modifiers,P,jd),e.name,void 0,void 0,void 0);if(zy(e,le)){const{referencedName:t,name:r}=_e(e.name);return n.updatePropertyDeclaration(e,_B(e.modifiers,M,Ad),r,void 0,void 0,uB(e.initializer,(e=>G(e,t)),mu))}return n.updatePropertyDeclaration(e,_B(e.modifiers,M,Ad),uB(e.name,K,Cd),void 0,void 0,uB(e.initializer,P,mu))}{const t=Pe(e.name);if(Nt.assert(t,"Undeclared private name for property declaration."),!t.isValid)return e;if(t.isStatic&&!h){const t=Se(e,n.createThis());if(t)return n.createClassStaticBlockDeclaration(n.createBlock([t],!0))}}}(e):Z(e)}function ne(){return-1===g||3===g&&!!(null==C?void 0:C.data)&&!!(16&C.data.facts)}function te(e){return Bd(e)&&(ne()||hb(e)&&32&uf(e))?function(e){const t=QA(e),i=zA(e),a=e.name;let o=a,s=a;if(WC(a)&&!nU(a.expression)){const e=PN(a);if(e)o=n.updateComputedPropertyName(a,uB(a.expression,P,mu)),s=n.updateComputedPropertyName(a,e.left);else{const e=n.createTempVariable(r);qA(e,a.expression);const t=uB(a.expression,P,mu),i=n.createAssignment(e,t);qA(i,a.expression),o=n.updateComputedPropertyName(a,i),s=n.updateComputedPropertyName(a,e)}}const c=_B(e.modifiers,M,Ad),l=DN(n,e,c,e.initializer);FA(l,e),jA(l,3072),qA(l,i);const d=ON(n,e,c,o);FA(d,e),ZA(d,t),qA(d,i);const u=MN(n,e,c,s);return FA(u,e),jA(u,3072),qA(u,i),pB([l,d,u],z,Pd)}(e):ee(e)}function re(e,n){return ie(e,uB(n,P,mu))}function ie(e,n){switch(ZA(n,mE(n,-1)),e.kind){case"a":return t().createClassPrivateFieldGetHelper(n,e.brandCheckIdentifier,e.kind,e.getterName);case"m":return t().createClassPrivateFieldGetHelper(n,e.brandCheckIdentifier,e.kind,e.methodName);case"f":return t().createClassPrivateFieldGetHelper(n,e.brandCheckIdentifier,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return Nt.fail("Access helpers should not be created for untransformed private elements");default:Nt.assertNever(e,"Unknown private element type")}}function ae(t,i){if(45===t.operator||46===t.operator){const e=ey(t.operand);if(Ed(e)){let a;if(a=Pe(e.name)){const o=uB(e.expression,P,mu),{readExpression:s,initializeExpression:c}=oe(o);let l=re(a,s);const d=Jk(t)||i?void 0:n.createTempVariable(r);return l=MR(n,t,l,r,d),l=pe(a,c||s,l,63),FA(l,t),VN(l,t),d&&(l=n.createComma(l,d),VN(l,t)),l}}else if(v&&ah(e)&&R&&(null==C?void 0:C.data)){const{classConstructor:a,superClassReference:o,facts:s}=C.data;if(1&s){const r=Ce(e);return Jk(t)?n.updatePrefixUnaryExpression(t,r):n.updatePostfixUnaryExpression(t,r)}if(a&&o){let s,c;if(Mk(e)?IC(e.name)&&(c=s=n.createStringLiteralFromNode(e.name)):nU(e.argumentExpression)?c=s=e.argumentExpression:(c=n.createTempVariable(r),s=n.createAssignment(c,uB(e.argumentExpression,P,mu))),s&&c){let l=n.createReflectGetCall(o,c,a);VN(l,e);const d=i?void 0:n.createTempVariable(r);return l=MR(n,t,l,r,d),l=n.createReflectSetCall(o,s,l,a),FA(l,t),VN(l,t),d&&(l=n.createComma(l,d),VN(l,t)),l}}}}return EB(t,P,e)}function oe(e){const t=$y(e)?e:n.cloneNode(e);if(nU(e))return{readExpression:t,initializeExpression:void 0};const i=n.createTempVariable(r);return{readExpression:i,initializeExpression:n.createAssignment(i,t)}}function se(e){if(C&&I.set(Oc(e),C),h){a();let t=Q(e,(e=>_B(e,P,Bu)),e.body.statements);t=n.mergeLexicalEnvironment(t,i());const r=n.createImmediatelyInvokedArrowFunction(t);return FA(r,e),VN(r,e),HA(r,4),r}}function le(e){if(nI(e)&&!e.name){const n=cU(e),t=D(n,ZC);if(t)for(const e of t.body.statements)if(hI(e)&&cC(e.expression,"___setFunctionName"))return!1;return(h||!!uf(e))&&ce(n,(e=>ZC(e)||bd(e)||m&&lU(e)))}return!1}function de(i,a){if(Wb(i)){const e=A;A=void 0,i=n.updateBinaryExpression(i,uB(i.left,V,mu),i.operatorToken,uB(i.right,P,mu));const t=ce(A)?n.inlineExpressions(be([...A,i])):i;return A=e,t}if(Hb(i)){if(zy(i,le)){const e=q(i.left,i.right),t=uB(i.left,P,mu),r=uB(i.right,(n=>G(n,e)),mu);return n.updateBinaryExpression(i,t,i.operatorToken,r)}if(Ed(i.left)){const e=Pe(i.left.name);if(e)return VN(FA(pe(e,i.left.expression,i.right,i.operatorToken.kind),i),i)}else if(v&&ah(i.left)&&R&&(null==C?void 0:C.data)){const{classConstructor:e,superClassReference:t,facts:o}=C.data;if(1&o)return n.updateBinaryExpression(i,Ce(i.left),i.operatorToken,uB(i.right,P,mu));if(e&&t){let o=Pk(i.left)?uB(i.left.argumentExpression,P,mu):IC(i.left.name)?n.createStringLiteralFromNode(i.left.name):void 0;if(o){let s=uB(i.right,P,mu);if(tU(i.operatorToken.kind)){let a=o;nU(o)||(a=n.createTempVariable(r),o=n.createAssignment(a,o));const c=n.createReflectGetCall(t,a,e);FA(c,i.left),VN(c,i.left),s=n.createBinaryExpression(c,rU(i.operatorToken.kind),s),VN(s,i)}const c=a?void 0:n.createTempVariable(r);return c&&(s=n.createAssignment(c,s),VN(c,i)),s=n.createReflectSetCall(t,o,s,e),FA(s,i),VN(s,i),c&&(s=n.createComma(s,c),VN(s,i)),s}}}}return function(e){return wC(e.left)&&101===e.operatorToken.kind}(i)?function(n){const r=Pe(n.left);if(r){const e=uB(n.right,P,mu);return FA(t().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),n)}return EB(n,P,e)}(i):EB(i,P,e)}function ue(e,t,r){const i=t?B:r?e=>G(e,r):P,a=uB(e.expression,i,mu);return n.updateParenthesizedExpression(e,a)}function _e(e){if(My(e)||wC(e)){return{referencedName:n.createStringLiteralFromNode(e),name:uB(e,P,Cd)}}if(My(e.expression)&&!IC(e.expression)){return{referencedName:n.createStringLiteralFromNode(e.expression),name:uB(e,P,Cd)}}const i=n.createTempVariable(r),a=t().createPropKeyHelper(uB(e.expression,P,mu)),o=n.createAssignment(i,a);return{referencedName:i,name:n.updateComputedPropertyName(e,J(o))}}function pe(e,r,i,a){if(r=uB(r,P,mu),i=uB(i,P,mu),tU(a)){const{readExpression:t,initializeExpression:o}=oe(r);r=o||t,i=n.createBinaryExpression(ie(e,t),rU(a),i)}switch(ZA(r,mE(r,-1)),e.kind){case"a":return t().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.setterName);case"m":return t().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,void 0);case"f":return t().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return Nt.fail("Access helpers should not be created for untransformed private elements");default:Nt.assertNever(e,"Unknown private element type")}}function fe(e){return j(e.members,dU)}function me(n,t,r){const i=w,a=A,o=C;w=n,A=void 0,C={previous:C,data:void 0};const s=32&uf(n);if(h||s){const e=Xc(n);e&&IC(e)&&(Ie().data.className=e)}if(h){const e=fe(n);ce(e)&&(Ie().data.weakSetName=Oe("instances",e[0].name))}const c=function(e){let n=0;const t=Oc(e);MI(t)&&mh(_,t)&&(n|=1);let r=!1,i=!1,a=!1,o=!1;for(const s of e.members)mb(s)?(s.name&&(wC(s.name)||Bd(s))&&h&&(n|=2),(YC(s)||ZC(s))&&(y&&16384&s.transformFlags&&(n|=8,1&n||(n|=2)),v&&134217728&s.transformFlags&&(1&n||(n|=6)))):yb(Oc(s))||(Bd(s)?(o=!0,a||(a=bd(s))):bd(s)?a=!0:YC(s)&&(r=!0,i||(i=!!s.initializer)));return(f&&r||p&&i||h&&a||h&&o&&-1===g)&&(n|=16),n}(n);c&&(ke().facts=c),8&c&&0===(2&x)&&(x|=2,e.enableSubstitution(108),e.enableEmitNotification(259),e.enableEmitNotification(215),e.enableEmitNotification(173),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(171),e.enableEmitNotification(169),e.enableEmitNotification(164));const l=r(n,c,t);return C=null==C?void 0:C.previous,Nt.assert(C===o),w=i,A=a,l}function he(e,t){var i,a;let o;if(2&t){if(h&&(null==(i=e.emitNode)?void 0:i.classThis))ke().classConstructor=e.emitNode.classThis,o=n.createAssignment(e.emitNode.classThis,n.getInternalName(e));else{const t=n.createTempVariable(r,!0);ke().classConstructor=n.cloneNode(t),o=n.createAssignment(t,n.getInternalName(e))}(null==(a=e.emitNode)?void 0:a.classThis)&&(ke().classThis=e.emitNode.classThis)}const s=_B(e.modifiers,M,Ad),c=_B(e.heritageClauses,U,Tw),{members:l,prologue:d}=ve(e),u=n.updateClassDeclaration(e,s,e.name,void 0,c,l),_=[];if(d&&_.push(n.createExpressionStatement(d)),_.push(u),o&&we().unshift(o),ce(A)&&_.push(n.createExpressionStatement(n.inlineExpressions(A))),p||h||32&uf(e)){const t=cU(e);ce(t)&&xe(_,t,n.getInternalName(e))}return _}function ge(e,n){return me(e,n,ye)}function ye(i,a,o){var l,d,u,_,p,f;const g=!!(1&a),y=cU(i),v=1048576&c.getNodeCheckFlags(i);let b;function E(){var e;if(h&&(null==(e=i.emitNode)?void 0:e.classThis))return ke().classConstructor=i.emitNode.classThis;const t=c.getNodeCheckFlags(i),a=1048576&t,o=32768&t,l=n.createTempVariable(o?s:r,!!a);return ke().classConstructor=n.cloneNode(l),l}(null==(l=i.emitNode)?void 0:l.classThis)&&(ke().classThis=i.emitNode.classThis),2&a&&(null!=b||(b=E()));const T=_B(i.modifiers,M,Ad),C=_B(i.heritageClauses,U,Tw),{members:k,prologue:I}=ve(i);let w=n.updateClassExpression(i,T,i.name,void 0,C,k);const R=[];I&&R.push(I);if((h||32&uf(i))&&ce(y,(e=>ZC(e)||bd(e)||m&&lU(e)))||ce(A)||o)if(g){if(Nt.assertIsDefined(L,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),ce(A)&&Ae(L,W(A,n.createExpressionStatement)),o)if(h){const e=t().createSetFunctionNameHelper(null!=(u=null!=b?b:null==(d=i.emitNode)?void 0:d.classThis)?u:n.getInternalName(i),o);L.push(n.createExpressionStatement(e))}else{const e=t().createSetFunctionNameHelper(n.createThis(),o);w=n.updateClassExpression(w,w.modifiers,w.name,w.typeParameters,w.heritageClauses,[n.createClassStaticBlockDeclaration(n.createBlock([n.createExpressionStatement(e)])),...w.members])}ce(y)&&xe(L,y,null!=(p=null==(_=i.emitNode)?void 0:_.classThis)?p:n.getInternalName(i)),b?R.push(n.createAssignment(b,w)):h&&(null==(f=i.emitNode)?void 0:f.classThis)?R.push(n.createAssignment(i.emitNode.classThis,w)):R.push(w)}else{if(null!=b||(b=E()),v){0===(1&x)&&(x|=1,e.enableSubstitution(79),S=[]);const t=n.cloneNode(b);t.emitNode.autoGenerate.flags&=-9,S[WB(i)]=t}R.push(n.createAssignment(b,w)),Ae(R,A),o&&R.push(t().createSetFunctionNameHelper(b,o)),Ae(R,function(e,n){const t=[];for(const r of e){const e=ZC(r)?se(r):Le(r,n);e&&(YR(e),FA(e,r),HA(e,3072&df(r)),qA(e,gE(r)),ZA(e,r),t.push(e))}return t}(y,b)),R.push(n.cloneNode(b))}else R.push(w);return R.length>1&&(HA(w,131072),R.forEach(YR)),n.inlineExpressions(R)}function ve(e){const t=!!(32&uf(e));if(h||k){for(const n of e.members)if(bd(n))if(Y(n))De(n,n.name,Re);else{yU(Ie(),n.name,{kind:"untransformed"})}if(h&&ce(fe(e))&&function(){const{weakSetName:e}=Ie().data;Nt.assert(e,"weakSetName should be set in private identifier environment"),we().push(n.createAssignment(e,n.createNewExpression(n.createIdentifier("WeakSet"),void 0,[])))}(),ne())for(const r of e.members)if(Bd(r)){const e=n.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage");if(h||t&&hb(r))De(r,e,Ne);else{yU(Ie(),e,{kind:"untransformed"})}}}let i,a,o,s=_B(e.members,H,Pd);if(ce(s,ek)||(i=Ee(void 0,e)),!h&&ce(A)){let e=n.createExpressionStatement(n.inlineExpressions(A));if(134234112&e.transformFlags){const t=n.createTempVariable(r),i=n.createArrowFunction(void 0,void 0,[],void 0,void 0,n.createBlock([e]));a=n.createAssignment(t,i),e=n.createExpressionStatement(n.createCallExpression(t,void 0,[]))}const t=n.createBlock([e]);o=n.createClassStaticBlockDeclaration(t),A=void 0}if(i||o){let t;t=Te(t,i),t=Te(t,o),t=Ae(t,s),s=VN(n.createNodeArray(t),e.members)}return{members:s,prologue:a}}function Ee(t,r){if(t=uB(t,P,ek),!(null==C?void 0:C.data)||!(16&C.data.facts))return t;const a=py(r),s=!(!a||104===qR(a.expression).kind),c=hB(t?t.parameters:void 0,P,e),l=function(t,r,a){var s,c;const l=oU(t,!1,!1);let d=l;u||(d=j(d,(e=>!!e.initializer||wC(e.name)||bb(e))));const _=fe(t),p=ce(d)||ce(_);if(!r&&!p)return yB(void 0,P,e);o();const f=!r&&a;let m=0,g=0,y=-1,v=[];(null==(s=null==r?void 0:r.body)?void 0:s.statements)&&(g=n.copyPrologue(r.body.statements,v,!1,P),y=aU(r.body.statements,g),y>=0?(m=y+1,v=[...v.slice(0,g),..._B(r.body.statements,P,Bu,g,m-g),...v.slice(g)]):g>=0&&(m=g));f&&v.push(n.createExpressionStatement(n.createCallExpression(n.createSuper(),void 0,[n.createSpreadElement(n.createIdentifier("arguments"))])));let b=0;if(null==r?void 0:r.body){for(let e=m;e<r.body.statements.length;e++){if(!Ac(Oc(r.body.statements[e]),r))break;b++}b>0&&(m+=b)}const E=n.createThis();if(function(e,t,r){if(!h||!ce(t))return;const{weakSetName:i}=Ie().data;Nt.assert(i,"weakSetName should be set in private identifier environment"),e.push(n.createExpressionStatement(function(e,n){return gA.createCallExpression(gA.createPropertyAccessExpression(n,"add"),void 0,[e])}(r,i)))}(v,_,E),r){const e=j(l,(e=>Ac(Oc(e),r))),n=j(d,(e=>!Ac(Oc(e),r)));xe(v,e,E),xe(v,n,E)}else xe(v,d,E);r&&Ae(v,_B(r.body.statements,P,Bu,m));if(v=n.mergeLexicalEnvironment(v,i()),0===v.length&&!r)return;const T=(null==r?void 0:r.body)&&r.body.statements.length>=v.length&&null!=(c=r.body.multiLine)?c:v.length>0;return VN(n.createBlock(VN(n.createNodeArray(v),r?r.body.statements:t.members),T),r?r.body:void 0)}(r,t,s);return l?t?(Nt.assert(c),n.updateConstructorDeclaration(t,void 0,c,l)):YR(FA(VN(n.createConstructorDeclaration(void 0,null!=c?c:[],l),t||r),t)):t}function xe(e,n,t){for(const r of n){if(mb(r)&&!h)continue;const n=Se(r,t);n&&e.push(n)}}function Se(e,t){const r=ZC(e)?se(e):Le(e,t);if(!r)return;const i=n.createExpressionStatement(r);FA(i,e),HA(i,3072&df(e)),ZA(i,e);const a=Oc(e);return qC(a)?(qA(i,a),VA(i)):qA(i,gE(e)),nL(r,void 0),iL(r,void 0),bb(a)&&HA(i,3072),i}function Le(e,t){var r;const i=R,a=function(e,t){const r=!u;let i;zy(e,le)&&(i=My(e.name)||wC(e.name)?n.createStringLiteralFromNode(e.name):My(e.name.expression)&&!IC(e.name.expression)?n.createStringLiteralFromNode(e.name.expression):n.getGeneratedNameForNode(e.name));const a=bb(e)?n.getGeneratedPrivateNameForNode(e.name):WC(e.name)&&!nU(e.name.expression)?n.updateComputedPropertyName(e.name,n.getGeneratedNameForNode(e.name)):e.name;hb(e)&&(R=e);const o=i?e=>G(e,i):P;if(wC(a)&&Y(e)){const n=Pe(a);if(n)return"f"===n.kind?n.isStatic?function(e,n){return gA.createAssignment(e,gA.createObjectLiteralExpression([gA.createPropertyAssignment("value",n||gA.createVoidZero())]))}(n.variableName,uB(e.initializer,o,mu)):function(e,n,t){return gA.createCallExpression(gA.createPropertyAccessExpression(t,"set"),void 0,[e,n||gA.createVoidZero()])}(t,uB(e.initializer,o,mu),n.brandCheckIdentifier):void 0;Nt.fail("Undeclared private name for property declaration.")}if((wC(a)||hb(e))&&!e.initializer)return;const s=Oc(e);if(fb(s,256))return;let c=uB(e.initializer,o,mu);if(Ac(s,s.parent)&&IC(a)){const e=n.cloneNode(a);c?(Vk(c)&&jR(c.expression)&&cC(c.expression.left,"___runInitializers")&&zk(c.expression.right)&&dC(c.expression.right.expression)&&(c=c.expression.left),c=n.inlineExpressions([c,e])):c=e,jA(a,3168),qA(e,s.name),jA(e,3072)}else null!=c||(c=n.createVoidZero());if(r||wC(a)){const e=SR(n,t,a,a);HA(e,1024);return n.createAssignment(e,c)}{const e=WC(a)?a.expression:IC(a)?n.createStringLiteral(Bc(a.escapedText)):a,r=n.createPropertyDescriptor({value:c,configurable:!0,writable:!0,enumerable:!0});return n.createObjectDefinePropertyCall(t,e,r)}}(e,t);return a&&hb(e)&&(null==(r=null==C?void 0:C.data)?void 0:r.facts)&&(FA(a,e),HA(a,4),qA(a,zA(e.name)),I.set(Oc(e),C)),R=i,a}function Ce(e){return Mk(e)?n.updatePropertyAccessExpression(e,n.createVoidZero(),e.name):n.updateElementAccessExpression(e,n.createVoidZero(),uB(e.argumentExpression,P,mu))}function ke(){var e;return Nt.assert(C),null!=(e=C.data)?e:C.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0}}function Ie(){var e;return Nt.assert(C),null!=(e=C.privateEnv)?e:C.privateEnv=hU({className:void 0,weakSetName:void 0})}function we(){return null!=A?A:A=[]}function Re(e,n,t,r,i,a,o){Bd(e)?function(e,n,t,r,i,a){var o;const s=Me(n,"_get"),c=Me(n,"_set"),l=i?Nt.checkDefined(null!=(o=t.classThis)?o:t.classConstructor,"classConstructor should be set in private identifier environment"):Nt.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");yU(r,n,{kind:"a",getterName:s,setterName:c,brandCheckIdentifier:l,isStatic:i,isValid:a})}(0,n,t,r,i,a):YC(e)?Ne(e,n,t,r,i,a,o):QC(e)?function(e,n,t,r,i,a){var o;const s=Me(n),c=i?Nt.checkDefined(null!=(o=t.classThis)?o:t.classConstructor,"classConstructor should be set in private identifier environment"):Nt.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");yU(r,n,{kind:"m",methodName:s,brandCheckIdentifier:c,isStatic:i,isValid:a})}(0,n,t,r,i,a):nk(e)?function(e,n,t,r,i,a,o){var s;const c=Me(n,"_get"),l=i?Nt.checkDefined(null!=(s=t.classThis)?s:t.classConstructor,"classConstructor should be set in private identifier environment"):Nt.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");"a"!==(null==o?void 0:o.kind)||o.isStatic!==i||o.getterName?yU(r,n,{kind:"a",getterName:c,setterName:void 0,brandCheckIdentifier:l,isStatic:i,isValid:a}):o.getterName=c}(0,n,t,r,i,a,o):tk(e)&&function(e,n,t,r,i,a,o){var s;const c=Me(n,"_set"),l=i?Nt.checkDefined(null!=(s=t.classThis)?s:t.classConstructor,"classConstructor should be set in private identifier environment"):Nt.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");"a"!==(null==o?void 0:o.kind)||o.isStatic!==i||o.setterName?yU(r,n,{kind:"a",getterName:void 0,setterName:c,brandCheckIdentifier:l,isStatic:i,isValid:a}):o.setterName=c}(0,n,t,r,i,a,o)}function Ne(e,t,r,i,a,o,s){var c;if(a){yU(i,t,{kind:"f",isStatic:!0,brandCheckIdentifier:Nt.checkDefined(null!=(c=r.classThis)?c:r.classConstructor,"classConstructor should be set in private identifier environment"),variableName:Me(t),isValid:o})}else{const e=Me(t);yU(i,t,{kind:"f",isStatic:!1,brandCheckIdentifier:e,isValid:o}),we().push(n.createAssignment(e,n.createNewExpression(n.createIdentifier("WeakMap"),void 0,[])))}}function De(e,n,t){const r=ke(),i=Ie(),a=gU(i,n),o=hb(e),s=!function(e){return!vd(e)&&"#constructor"===e.escapedText}(n)&&void 0===a;t(e,n,r,i,o,s,a)}function Oe(e,t,i){const{className:a}=Ie().data,o=a?{prefix:"_",node:a,suffix:"_"}:"_",l="object"===typeof e?n.getGeneratedNameForNode(e,24,o,i):"string"===typeof e?n.createUniqueName(e,16,o,i):n.createTempVariable(void 0,!0,o,i);return 32768&c.getNodeCheckFlags(t)?s(l):r(l),l}function Me(e,n){var t;const r=Kf(e);return Oe(null!=(t=null==r?void 0:r.substring(1))?t:e,e,n)}function Pe(e){const n=vU(C,e);return"untransformed"===(null==n?void 0:n.kind)?void 0:n}function Fe(t){if(Ok(t)||Dk(t))return Ve(t);if(Ed(t))return function(t){const i=n.getGeneratedNameForNode(t),a=Pe(t.name);if(!a)return EB(t,P,e);let o=t.expression;return(oh(t)||ah(t)||!eU(t.expression))&&(o=n.createTempVariable(r,!0),we().push(n.createBinaryExpression(o,63,uB(t.expression,P,mu)))),n.createAssignmentTargetWrapper(i,pe(a,o,i,63))}(t);if(v&&ah(t)&&R&&(null==C?void 0:C.data)){const{classConstructor:e,superClassReference:r,facts:i}=C.data;if(1&i)return Ce(t);if(e&&r){const i=Pk(t)?uB(t.argumentExpression,P,mu):IC(t.name)?n.createStringLiteralFromNode(t.name):void 0;if(i){const t=n.createTempVariable(void 0);return n.createAssignmentTargetWrapper(t,n.createReflectSetCall(r,i,t,e))}}}return EB(t,P,e)}function Ge(e){if(zy(e,le)){const t=Fe(e.left),r=q(e.left,e.right),i=uB(e.right,(e=>G(e,r)),mu);return n.updateBinaryExpression(e,t,e.operatorToken,i)}if(Hb(e,!0)){const t=Fe(e.left),r=uB(e.right,P,mu);return n.updateBinaryExpression(e,t,e.operatorToken,r)}return Fe(e)}function Be(t){return Nt.assertNode(t,ru),eI(t)?function(t){if(lu(t.expression)){const e=Fe(t.expression);return n.updateSpreadElement(t,e)}return EB(t,P,e)}(t):tI(t)?EB(t,P,e):Ge(t)}function Ue(t){return Nt.assertNode(t,nu),Lw(t)?function(t){if(lu(t.expression)){const e=Fe(t.expression);return n.updateSpreadAssignment(t,e)}return EB(t,P,e)}(t):Aw(t)?function(t){if(zy(t,le)){const e=q(t.name,t.objectAssignmentInitializer),r=uB(t.objectAssignmentInitializer,(n=>G(n,e)),mu);return n.updateShorthandPropertyAssignment(t,t.name,r)}return EB(t,P,e)}(t):Sw(t)?function(t){const r=uB(t.name,P,Cd);if(Hb(t.initializer,!0)){const e=Ge(t.initializer);return n.updatePropertyAssignment(t,r,e)}if(lu(t.initializer)){const e=Fe(t.initializer);return n.updatePropertyAssignment(t,r,e)}return EB(t,P,e)}(t):EB(t,P,e)}function Ve(e){return Dk(e)?n.updateArrayLiteralExpression(e,_B(e.elements,Be,mu)):n.updateObjectLiteralExpression(e,_B(e.properties,Ue,Wd))}}var VU=E({"src/compiler/transformers/classFields.ts"(){lq()}});function jU(e){const{hoistVariableDeclaration:n}=e,t=e.getEmitResolver(),r=e.getCompilerOptions(),i=HT(r),a=lx(r,"strictNullChecks");let o,s;return{serializeTypeNode:(e,n)=>c(e,_,n),serializeTypeOfNode:(e,n)=>c(e,l,n),serializeParameterTypesOfNode:(e,n,t)=>c(e,d,n,t),serializeReturnTypeOfNode:(e,n)=>c(e,u,n)};function c(e,n,t,r){const i=o,a=s;o=e.currentLexicalScope,s=e.currentNameScope;const c=void 0===r?n(t):n(t,r);return o=i,s=a,c}function l(e){switch(e.kind){case 169:case 166:return _(e.type);case 175:case 174:return _(function(e){const n=t.getAllAccessorDeclarations(e);return n.setAccessor&&Wv(n.setAccessor)||n.getAccessor&&eb(n.getAccessor)}(e));case 260:case 228:case 171:return gA.createIdentifier("Function");default:return gA.createVoidZero()}}function d(e,n){const t=Fd(e)?Hv(e):Id(e)&&jp(e.body)?e:void 0,r=[];if(t){const e=function(e,n){if(n&&174===e.kind){const{setAccessor:t}=$v(n.members,e);if(t)return t.parameters}return e.parameters}(t,n),i=e.length;for(let n=0;n<i;n++){const t=e[n];0===n&&IC(t.name)&&"this"===t.name.escapedText||(t.dotDotDotToken?r.push(_(Cm(t.type))):r.push(l(t)))}}return gA.createArrayLiteralExpression(r)}function u(e){return Id(e)&&e.type?_(e.type):Iy(e)?gA.createIdentifier("Promise"):gA.createVoidZero()}function _(e){if(void 0===e)return gA.createIdentifier("Object");switch((e=Zg(e)).kind){case 114:case 155:case 144:return gA.createVoidZero();case 181:case 182:return gA.createIdentifier("Function");case 185:case 186:return gA.createIdentifier("Array");case 179:return e.assertsModifier?gA.createVoidZero():gA.createIdentifier("Boolean");case 134:return gA.createIdentifier("Boolean");case 200:case 152:return gA.createIdentifier("String");case 149:return gA.createIdentifier("Object");case 198:return p(e.literal);case 148:return gA.createIdentifier("Number");case 160:return v("BigInt",7);case 153:return v("Symbol",2);case 180:return function(e){const r=t.getTypeReferenceSerializationKind(e.typeName,null!=s?s:o);switch(r){case 0:if(Mc(e,(e=>e.parent&&vk(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e))))return gA.createIdentifier("Object");const t=g(e.typeName),i=gA.createTempVariable(n);return gA.createConditionalExpression(gA.createTypeCheck(gA.createAssignment(i,t),"function"),void 0,i,void 0,gA.createIdentifier("Object"));case 1:return y(e.typeName);case 2:return gA.createVoidZero();case 4:return v("BigInt",7);case 6:return gA.createIdentifier("Boolean");case 3:return gA.createIdentifier("Number");case 5:return gA.createIdentifier("String");case 7:return gA.createIdentifier("Array");case 8:return v("Symbol",2);case 10:return gA.createIdentifier("Function");case 9:return gA.createIdentifier("Promise");case 11:return gA.createIdentifier("Object");default:return Nt.assertNever(r)}}(e);case 190:return f(e.types,!0);case 189:return f(e.types,!1);case 191:return f([e.trueType,e.falseType],!1);case 195:if(146===e.operator)return _(e.type);break;case 183:case 196:case 197:case 184:case 131:case 157:case 194:case 202:case 315:case 316:case 320:case 321:case 322:break;case 317:case 318:case 319:return _(e.type);default:return Nt.failBadSyntaxKind(e)}return gA.createIdentifier("Object")}function p(e){switch(e.kind){case 10:case 14:return gA.createIdentifier("String");case 221:{const n=e.operand;switch(n.kind){case 8:case 9:return p(n);default:return Nt.failBadSyntaxKind(n)}}case 8:return gA.createIdentifier("Number");case 9:return v("BigInt",7);case 110:case 95:return gA.createIdentifier("Boolean");case 104:return gA.createVoidZero();default:return Nt.failBadSyntaxKind(e)}}function f(e,n){let t;for(let r of e){if(r=Zg(r),144===r.kind){if(n)return gA.createVoidZero();continue}if(157===r.kind){if(!n)return gA.createIdentifier("Object");continue}if(131===r.kind)return gA.createIdentifier("Object");if(!a&&(Lk(r)&&104===r.literal.kind||155===r.kind))continue;const e=_(r);if(IC(e)&&"Object"===e.escapedText)return e;if(t){if(!m(t,e))return gA.createIdentifier("Object")}else t=e}return null!=t?t:gA.createVoidZero()}function m(e,n){return yd(e)?yd(n):IC(e)?IC(n)&&e.escapedText===n.escapedText:Mk(e)?Mk(n)&&m(e.expression,n.expression)&&m(e.name,n.name):zk(e)?zk(n)&&dC(e.expression)&&"0"===e.expression.text&&dC(n.expression)&&"0"===n.expression.text:_C(e)?_C(n)&&e.text===n.text:Wk(e)?Wk(n)&&m(e.expression,n.expression):Vk(e)?Vk(n)&&m(e.expression,n.expression):$k(e)?$k(n)&&m(e.condition,n.condition)&&m(e.whenTrue,n.whenTrue)&&m(e.whenFalse,n.whenFalse):!!Yk(e)&&(Yk(n)&&e.operatorToken.kind===n.operatorToken.kind&&m(e.left,n.left)&&m(e.right,n.right))}function h(e,n){return gA.createLogicalAnd(gA.createStrictInequality(gA.createTypeOfExpression(e),gA.createStringLiteral("undefined")),n)}function g(e){if(79===e.kind){const n=y(e);return h(n,n)}if(79===e.left.kind)return h(y(e.left),y(e));const t=g(e.left),r=gA.createTempVariable(n);return gA.createLogicalAnd(gA.createLogicalAnd(t.left,gA.createStrictInequality(gA.createAssignment(r,t.right),gA.createVoidZero())),gA.createPropertyAccessExpression(r,e.right))}function y(e){switch(e.kind){case 79:const n=CS(VN(YN.cloneNode(e),e),e.parent);return n.original=void 0,CS(n,Fc(o)),n;case 163:return function(e){return gA.createPropertyAccessExpression(y(e.left),e.right)}(e)}}function v(e,n){return i<n?function(e){return gA.createConditionalExpression(gA.createTypeCheck(gA.createIdentifier(e),"function"),void 0,gA.createIdentifier(e),void 0,gA.createIdentifier("Object"))}(e):gA.createIdentifier(e)}}var HU=E({"src/compiler/transformers/typeSerializer.ts"(){lq()}});function KU(e){const{factory:n,getEmitHelperFactory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),a=HT(e.getCompilerOptions()),o=e.onSubstituteNode;let s;return e.onSubstituteNode=function(e,t){if(t=o(e,t),1===e)return function(e){if(79===e.kind)return function(e){var t;return null!=(t=function(e){if(s&&2097152&i.getNodeCheckFlags(e)){const t=i.getReferencedValueDeclaration(e);if(t){const r=s[t.id];if(r){const t=n.cloneNode(r);return qA(t,e),ZA(t,e),t}}}return}(e))?t:e}(e);return e}(t);return t},qB(e,(function(n){const t=EB(n,l,e);return dL(t,e.readEmitHelpers()),t}));function c(e){return JC(e)?void 0:e}function l(o){if(!(33554432&o.transformFlags))return o;switch(o.kind){case 167:return;case 260:return function(o){if(!mh(!0,o)&&!fh(!0,o))return EB(o,l,e);const d=mh(!0,o)?function(o,c){const d=gE(o),u=function(t){if(1048576&i.getNodeCheckFlags(t)){s||(e.enableSubstitution(79),s=[]);const i=n.createUniqueName(t.name&&!yd(t.name)?Uc(t.name):"default");return s[WB(t)]=i,r(i),i}}(o),p=a<=2?n.getInternalName(o,!1,!0):n.getLocalName(o,!1,!0),f=_B(o.heritageClauses,l,Tw);let h=_B(o.members,l,Pd),g=[];({members:h,decorationStatements:g}=_(o,h));const y=n.createClassExpression(void 0,c&&yd(c)?void 0:c,void 0,f,h);FA(y,o),VN(y,d);const v=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(p,void 0,void 0,u?n.createAssignment(u,y):y)],1));FA(v,o),VN(v,d),ZA(v,o);const b=[v];return Ae(b,g),function(e,r){const i=function(e){const r=_U(e),i=m(r);if(!i)return;const o=s&&s[WB(e)],c=a<=2?n.getInternalName(e,!1,!0):n.getLocalName(e,!1,!0),l=t().createDecorateHelper(i,c),d=n.createAssignment(c,o?n.createAssignment(o,l):l);return jA(d,3072),qA(d,gE(e)),d}(r);i&&e.push(FA(n.createExpressionStatement(i),r))}(b,o),b}(o,o.name):function(e,t){const r=_B(e.modifiers,c,Ad),i=_B(e.heritageClauses,l,Tw);let a=_B(e.members,l,Pd),o=[];({members:a,decorationStatements:o}=_(e,a));const s=n.updateClassDeclaration(e,r,t,void 0,i,a);return Ae([s],o)}(o,o.name);d.length>1&&(d.push(n.createEndOfDeclarationMarker(o)),jA(d[0],8388608|df(d[0])));return Ve(d)}(o);case 228:return function(e){return n.updateClassExpression(e,_B(e.modifiers,c,Ad),e.name,void 0,_B(e.heritageClauses,l,Tw),_B(e.members,l,Pd))}(o);case 173:return function(e){return n.updateConstructorDeclaration(e,_B(e.modifiers,c,Ad),_B(e.parameters,l,qC),uB(e.body,l,pI))}(o);case 171:return function(e){return p(n.updateMethodDeclaration(e,_B(e.modifiers,c,Ad),e.asteriskToken,Nt.checkDefined(uB(e.name,l,Cd)),void 0,void 0,_B(e.parameters,l,qC),void 0,uB(e.body,l,pI)),e)}(o);case 175:return function(e){return p(n.updateSetAccessorDeclaration(e,_B(e.modifiers,c,Ad),Nt.checkDefined(uB(e.name,l,Cd)),_B(e.parameters,l,qC),uB(e.body,l,pI)),e)}(o);case 174:return function(e){return p(n.updateGetAccessorDeclaration(e,_B(e.modifiers,c,Ad),Nt.checkDefined(uB(e.name,l,Cd)),_B(e.parameters,l,qC),void 0,uB(e.body,l,pI)),e)}(o);case 169:return function(e){if(16777216&e.flags||fb(e,2))return;return p(n.updatePropertyDeclaration(e,_B(e.modifiers,c,Ad),Nt.checkDefined(uB(e.name,l,Cd)),void 0,void 0,uB(e.initializer,l,mu)),e)}(o);case 166:return function(e){const t=n.updateParameterDeclaration(e,kN(n,e.modifiers),e.dotDotDotToken,Nt.checkDefined(uB(e.name,l,kd)),void 0,void 0,uB(e.initializer,l,mu));t!==e&&(ZA(t,e),VN(t,gE(e)),qA(t,gE(e)),jA(t.name,64));return t}(o);default:return EB(o,l,e)}}function d(e){return!!(536870912&e.transformFlags)}function u(e){return ce(e,d)}function _(e,t){let r=[];return h(r,e,!1),h(r,e,!0),function(e){for(const n of e.members){if(!HN(n))continue;const t=pU(n,e,!0);if(ce(null==t?void 0:t.decorators,d))return!0;if(ce(null==t?void 0:t.parameters,u))return!0}return!1}(e)&&(t=VN(n.createNodeArray([...t,n.createClassStaticBlockDeclaration(n.createBlock(r,!0))]),t),r=void 0),{decorationStatements:r,members:t}}function p(e,n){return e!==n&&(ZA(e,n),qA(e,gE(n))),e}function f(e){return cC(e.expression,"___metadata")}function m(e){if(!e)return;const{false:n,true:t}=on(e.decorators,f),r=[];return Ae(r,W(n,y)),Ae(r,X(e.parameters,v)),Ae(r,W(t,y)),r}function h(e,t,r){Ae(e,W(function(e,n){const t=function(e,n){return j(e.members,(t=>{return i=n,ph(!0,r=t,e)&&i===mb(r);var r,i}))}(e,n);let r;for(const i of t)r=Te(r,g(e,i));return r}(t,r),(e=>n.createExpressionStatement(e))))}function g(e,r){const i=m(pU(r,e,!0));if(!i)return;const o=function(e,t){return mb(t)?n.getDeclarationName(e):function(e){return n.createPropertyAccessExpression(n.getDeclarationName(e),"prototype")}(e)}(e,r),s=function(e,t){const r=e.name;return wC(r)?n.createIdentifier(""):WC(r)?t&&!nU(r.expression)?n.getGeneratedNameForNode(r):r.expression:IC(r)?n.createStringLiteral(Uc(r)):n.cloneNode(r)}(r,!fb(r,2)),c=a>0?YC(r)&&!bb(r)?n.createVoidZero():n.createNull():void 0,l=t().createDecorateHelper(i,o,s,c);return jA(l,3072),qA(l,gE(r)),l}function y(e){return Nt.checkDefined(uB(e.expression,l,mu))}function v(e,n){let r;if(e){r=[];for(const i of e){const e=t().createParamHelper(y(i),n);VN(e,i.expression),jA(e,3072),r.push(e)}}return r}}var WU=E({"src/compiler/transformers/legacyDecorators.ts"(){lq()}});function zU(e){const{factory:n,getEmitHelperFactory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:a}=e;let o,s,c,l,d,u;return qB(e,(function(n){o=void 0,u=!1;const t=EB(n,v,e);dL(t,e.readEmitHelpers()),u&&(WA(t,32),u=!1);return t}));function _(){switch(s=void 0,c=void 0,l=void 0,null==o?void 0:o.kind){case"class":s=o.classInfo;break;case"class-element":s=o.next.classInfo,c=o.classThis,l=o.classSuper;break;case"name":const e=o.next.next.next;"class-element"===(null==e?void 0:e.kind)&&(s=e.next.classInfo,c=e.classThis,l=e.classSuper)}}function p(e){o={kind:"class",next:o,classInfo:e,savedPendingExpressions:d},d=void 0,_()}function f(){Nt.assert("class"===(null==o?void 0:o.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==o?void 0:o.kind}' instead.`)),d=o.savedPendingExpressions,o=o.next,_()}function m(e){var n,t;Nt.assert("class"===(null==o?void 0:o.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==o?void 0:o.kind}' instead.`)),o={kind:"class-element",next:o},(ZC(e)||YC(e)&&hb(e))&&(o.classThis=null==(n=o.next.classInfo)?void 0:n.classThis,o.classSuper=null==(t=o.next.classInfo)?void 0:t.classSuper),_()}function h(){var e;Nt.assert("class-element"===(null==o?void 0:o.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==o?void 0:o.kind}' instead.`)),Nt.assert("class"===(null==(e=o.next)?void 0:e.kind),"Incorrect value for top.next.kind.",(()=>{var e;return`Expected top.next.kind to be 'class' but got '${null==(e=o.next)?void 0:e.kind}' instead.`})),o=o.next,_()}function g(){Nt.assert("class-element"===(null==o?void 0:o.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==o?void 0:o.kind}' instead.`)),o={kind:"name",next:o},_()}function y(){Nt.assert("name"===(null==o?void 0:o.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'name' but got '${null==o?void 0:o.kind}' instead.`)),o=o.next,_()}function v(t){if(!function(e){return!!(33554432&e.transformFlags)||!!c&&!!(16384&e.transformFlags)||!!c&&!!l&&!!(134217728&e.transformFlags)}(t))return t;switch(t.kind){case 167:return Nt.fail("Use `modifierVisitor` instead.");case 260:return function(e){var t;if(k(e)){if(fb(e,1)&&fb(e,1024)){const r=null!=(t=Oc(e,Fd))?t:e,i=C(e,r.name?n.createStringLiteralFromNode(r.name):n.createStringLiteral("default")),a=n.createExportDefault(i);return FA(a,e),ZA(a,QA(e)),qA(a,hE(e)),a}{Nt.assertIsDefined(e.name,"A class declaration that is not a default export must have a name.");const t=C(e,n.createStringLiteralFromNode(e.name)),r=_B(e.modifiers,E,Ad),i=n.createVariableDeclaration(e.name,void 0,void 0,t),a=n.createVariableDeclarationList([i],1),o=n.createVariableStatement(r,a);return FA(o,e),ZA(o,QA(e)),o}}{const t=_B(e.modifiers,E,Ad),r=_B(e.heritageClauses,v,Tw);p(void 0);const i=_B(e.members,T,Pd);return f(),n.updateClassDeclaration(e,t,e.name,void 0,r,i)}}(t);case 228:return I(t,void 0);case 173:case 169:case 172:return Nt.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 166:return function(e){let t;if(zy(e,D)){const r=ie(e.name,e.initializer),i=uB(e.name,v,kd),a=uB(e.initializer,(e=>x(e,r)),mu);t=n.updateParameterDeclaration(e,void 0,void 0,i,void 0,void 0,a)}else t=n.updateParameterDeclaration(e,void 0,e.dotDotDotToken,uB(e.name,v,kd),void 0,void 0,uB(e.initializer,v,mu));t!==e&&(ZA(t,e),VN(t,gE(e)),qA(t,gE(e)),jA(t.name,64));return t}(t);case 223:return O(t,!1);case 299:return function(t){if(zy(t,D)){const{referencedName:e,name:r}=F(t.name),i=uB(t.initializer,(n=>x(n,e)),mu);return n.updatePropertyAssignment(t,r,i)}return EB(t,v,e)}(t);case 257:return function(t){if(zy(t,D)){const e=ie(t.name,t.initializer),r=uB(t.name,v,kd),i=uB(t.initializer,(n=>x(n,e)),mu);return n.updateVariableDeclaration(t,r,void 0,void 0,i)}return EB(t,v,e)}(t);case 205:return function(t){if(zy(t,D)){const e=ie(t.name,t.initializer),r=uB(t.propertyName,v,Cd),i=uB(t.name,v,kd),a=uB(t.initializer,(n=>x(n,e)),mu);return n.updateBindingElement(t,void 0,r,i,a)}return EB(t,v,e)}(t);case 274:return function(t){if(zy(t,D)){const e=n.createStringLiteral(t.isExportEquals?"":"default"),r=_B(t.modifiers,E,Ad),i=uB(t.expression,(n=>x(n,e)),mu);return n.updateExportAssignment(t,r,i)}return EB(t,v,e)}(t);case 108:return function(e){return null!=c?c:e}(t);case 245:return function(t){return n.updateForStatement(t,uB(t.initializer,S,Lu),uB(t.condition,v,mu),uB(t.incrementor,S,mu),vB(t.statement,v,e))}(t);case 241:return function(n){return EB(n,S,e)}(t);case 357:return P(t,!1);case 214:return z(t,!1,void 0);case 356:return q(t,!1,void 0);case 210:return function(t){if(ah(t.expression)&&c){const e=uB(t.expression,v,mu),r=_B(t.arguments,v,mu),i=n.createFunctionCallCall(e,c,r);return FA(i,t),VN(i,t),i}return EB(t,v,e)}(t);case 212:return function(t){if(ah(t.tag)&&c){const e=uB(t.tag,v,mu),r=n.createFunctionBindCall(e,c,[]);FA(r,t),VN(r,t);const i=uB(t.template,v,cu);return n.updateTaggedTemplateExpression(t,r,void 0,i)}return EB(t,v,e)}(t);case 221:case 222:return M(t,!1);case 208:return function(t){if(ah(t)&&IC(t.name)&&c&&l){const e=n.createStringLiteralFromNode(t.name),r=n.createReflectGetCall(l,e,c);return FA(r,t.expression),VN(r,t.expression),r}return EB(t,v,e)}(t);case 209:return function(t){if(ah(t)&&c&&l){const e=uB(t.argumentExpression,v,mu),r=n.createReflectGetCall(l,e,c);return FA(r,t.expression),VN(r,t.expression),r}return EB(t,v,e)}(t);case 164:return B(t);case 171:case 175:case 174:case 215:case 259:{"other"===(null==o?void 0:o.kind)?(Nt.assert(!d),o.depth++):(o={kind:"other",next:o,depth:0,savedPendingExpressions:d},d=void 0,_());const n=EB(t,b,e);return Nt.assert("other"===(null==o?void 0:o.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'other' but got '${null==o?void 0:o.kind}' instead.`)),o.depth>0?(Nt.assert(!d),o.depth--):(d=o.savedPendingExpressions,o=o.next,_()),n}default:return EB(t,b,e)}}function b(e){if(167!==e.kind)return v(e)}function E(e){if(167!==e.kind)return e}function T(o){switch(o.kind){case 173:return function(e){m(e);const t=_B(e.modifiers,E,Ad),r=_B(e.parameters,v,qC);let i;if(e.body&&s){const t=w(s.class,s);if(t){const r=[],a=n.copyPrologue(e.body.statements,r,!1,v),o=aU(e.body.statements,a),s=o>=0?o+1:void 0;Ae(r,_B(e.body.statements,v,Bu,a,s?s-a:void 0)),Ae(r,t),Ae(r,_B(e.body.statements,v,Bu,s)),i=n.createBlock(r,!0),FA(i,e.body),VN(i,e.body)}}return null!=i||(i=uB(e.body,v,pI)),h(),n.updateConstructorDeclaration(e,t,r,i)}(o);case 171:return function(e){m(e);const{modifiers:t,name:r,descriptorName:i}=N(e,!1,s,Q);if(i)return h(),R(function(e,t,r){return e=_B(e,(e=>FC(e)?e:void 0),Ad),n.createGetAccessorDeclaration(e,t,[],void 0,n.createBlock([n.createReturnStatement(n.createPropertyAccessExpression(r,n.createIdentifier("value")))]))}(t,r,i),e);{const i=_B(e.parameters,v,qC),a=uB(e.body,v,pI);return h(),R(n.updateMethodDeclaration(e,t,e.asteriskToken,r,void 0,void 0,i,void 0,a),e)}}(o);case 174:return function(e){m(e);const{modifiers:t,name:r,descriptorName:i}=N(e,!1,s,Z);if(i)return h(),R(te(t,r,i),e);{const i=_B(e.parameters,v,qC),a=uB(e.body,v,pI);return h(),R(n.updateGetAccessorDeclaration(e,t,r,i,void 0,a),e)}}(o);case 175:return function(e){m(e);const{modifiers:t,name:r,descriptorName:i}=N(e,!1,s,ee);if(i)return h(),R(re(t,r,i),e);{const i=_B(e.parameters,v,qC),a=uB(e.body,v,pI);return h(),R(n.updateSetAccessorDeclaration(e,t,r,i,a),e)}}(o);case 169:return function(e){m(e),Nt.assert(!wf(e),"Not yet implemented.");const o=zy(e,D),{modifiers:c,name:l,referencedName:d,initializersName:u,descriptorName:_,thisArg:p}=N(e,o,s,bb(e)?ne:void 0);r();let f=uB(e.initializer,d?e=>x(e,d):v,mu);u&&(f=t().createRunInitializersHelper(null!=p?p:n.createThis(),u,null!=f?f:n.createVoidZero()));mb(e)||!(null==s?void 0:s.instanceExtraInitializersName)||(null==s?void 0:s.hasInjectedInstanceInitializers)||(s.hasInjectedInstanceInitializers=!0,null!=f||(f=n.createVoidZero()),f=n.createParenthesizedExpression(n.createComma(t().createRunInitializersHelper(n.createThis(),s.instanceExtraInitializersName),f)));mb(e)&&s&&f&&(s.hasStaticInitializers=!0);const g=i();ce(g)&&(f=n.createImmediatelyInvokedArrowFunction([...g,n.createReturnStatement(f)]));if(h(),bb(e)&&_){const t=QA(e),r=zA(e),i=e.name;let o=i,s=i;if(WC(i)&&!nU(i.expression)){const e=PN(i);if(e)o=n.updateComputedPropertyName(i,uB(i.expression,v,mu)),s=n.updateComputedPropertyName(i,e.left);else{const e=n.createTempVariable(a);qA(e,i.expression);const t=uB(i.expression,v,mu),r=n.createAssignment(e,t);qA(r,i.expression),o=n.updateComputedPropertyName(i,r),s=n.updateComputedPropertyName(i,e)}}const l=_B(c,(e=>127!==e.kind?e:void 0),Ad),d=DN(n,e,l,f);FA(d,e),jA(d,3072),qA(d,r),qA(d.name,e.name);const u=te(l,o,_);FA(u,e),ZA(u,t),qA(u,r);const p=re(l,s,_);return FA(p,e),jA(p,3072),qA(p,r),[d,u,p]}return R(n.updatePropertyDeclaration(e,c,l,void 0,void 0,f),e)}(o);case 172:return function(n){m(n),s&&(s.hasStaticInitializers=!0);const t=EB(n,v,e);return h(),t}(o);default:return v(o)}}function x(e,n){switch(e.kind){case 356:return q(e,!1,n);case 214:return z(e,!1,n);case 228:return I(e,n);default:return v(e)}}function S(e){switch(e.kind){case 221:case 222:return M(e,!0);case 223:return O(e,!0);case 357:return P(e,!0);case 214:return z(e,!0,void 0);default:return v(e)}}function A(e,t){return n.createUniqueName(`${function(e){let n=e.name&&IC(e.name)&&!yd(e.name)?Uc(e.name):e.name&&wC(e.name)&&!yd(e.name)?Uc(e.name).slice(1):e.name&&_C(e.name)&&Js(e.name.text,99)?e.name.text:Fd(e)?"class":"member";return Qu(e)&&(n=`get_${n}`),$u(e)&&(n=`set_${n}`),e.name&&wC(e.name)&&(n=`private_${n}`),mb(e)&&(n=`static_${n}`),"_"+n}(e)}_${t}`,24)}function L(e,t){return n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(e,void 0,void 0,t)],1))}function C(a,o){var s,c,l,_,m;r();const h=null!=(s=a.name)?s:n.getGeneratedNameForNode(a),g=function(e){let t,r,i=!1,a=!1,o=!1;for(const s of e.members)if(Vd(s)&&ph(!1,s,e)&&(hb(s)?null!=r||(r=n.createUniqueName("_staticExtraInitializers",16)):null!=t||(t=n.createUniqueName("_instanceExtraInitializers",16))),ZC(s)?i=!0:YC(s)&&(hb(s)?i||(i=!!s.initializer||Tb(s)):a||(a=!wf(s))),(bd(s)||Bd(s))&&hb(s)&&(o=!0),r&&t&&i&&a&&o)break;return{class:e,instanceExtraInitializersName:t,staticExtraInitializersName:r,hasStaticInitializers:i,hasNonAmbientInstanceFields:a,hasStaticPrivateClassElements:o}}(a),y=[];let b,E,x,S,A=!1;const C=X(_U(a));if(C&&(g.classDecoratorsName=n.createUniqueName("_classDecorators",16),g.classDescriptorName=n.createUniqueName("_classDescriptor",16),g.classExtraInitializersName=n.createUniqueName("_classExtraInitializers",16),g.classThis=n.createUniqueName("_classThis",16),y.push(L(g.classDecoratorsName,n.createArrayLiteralExpression(C)),L(g.classDescriptorName),L(g.classExtraInitializersName,n.createArrayLiteralExpression()),L(g.classThis)),g.hasStaticPrivateClassElements&&(A=!0,u=!0)),C&&function(e){for(const n of e.members)if((ZC(n)||YC(n)&&hb(n))&&134217728&n.transformFlags)return!0;return!1}(a)){const e=yy(a.heritageClauses,94),t=e&&De(e.types),r=t&&uB(t.expression,v,mu);if(r){g.classSuper=n.createUniqueName("_classSuper",16);const i=qR(r),a=nI(i)&&!i.name||jk(i)&&!i.name||Hk(i)?n.createComma(n.createNumericLiteral(0),r):r;y.push(L(g.classSuper,a));const o=n.updateExpressionWithTypeArguments(t,g.classSuper,void 0),s=n.updateHeritageClause(e,[o]);S=n.createNodeArray([s])}}else S=_B(a.heritageClauses,v,Tw);const k=null!=(c=g.classThis)?c:n.createThis();if(!(null==(l=Oc(a,Fd))?void 0:l.name)&&(C||!_C(o)||!gh(o))){const e=t().createSetFunctionNameHelper(n.createThis(),o);b=Te(b,n.createExpressionStatement(e))}p(g);let I=_B(a.members,T,Pd);if(d){let t;for(let r of d){r=uB(r,(function r(i){return 16384&i.transformFlags?108===i.kind?(t||(t=n.createUniqueName("_outerThis",16),y.unshift(L(t,n.createThis()))),t):EB(i,r,e):i}),mu);b=Te(b,n.createExpressionStatement(r))}d=void 0}if(f(),g.instanceExtraInitializersName&&!Hv(a)){const e=w(a,g);if(e){const t=py(a),r=[];if(!(!t||104===qR(t.expression).kind)){const e=n.createSpreadElement(n.createIdentifier("arguments")),t=n.createCallExpression(n.createSuper(),void 0,[e]);r.push(n.createExpressionStatement(t))}Ae(r,e);const i=n.createBlock(r,!0);x=n.createConstructorDeclaration(void 0,[],i)}}if(g.staticExtraInitializersName&&y.push(L(g.staticExtraInitializersName,n.createArrayLiteralExpression())),g.instanceExtraInitializersName&&y.push(L(g.instanceExtraInitializersName,n.createArrayLiteralExpression())),g.memberInfos&&gp(g.memberInfos,((e,t)=>{mb(t)&&(y.push(L(e.memberDecoratorsName)),e.memberInitializersName&&y.push(L(e.memberInitializersName,n.createArrayLiteralExpression())),e.memberDescriptorName&&y.push(L(e.memberDescriptorName)))})),g.memberInfos&&gp(g.memberInfos,((e,t)=>{mb(t)||(y.push(L(e.memberDecoratorsName)),e.memberInitializersName&&y.push(L(e.memberInitializersName,n.createArrayLiteralExpression())),e.memberDescriptorName&&y.push(L(e.memberDescriptorName)))})),b=Ae(b,g.staticNonFieldDecorationStatements),b=Ae(b,g.nonStaticNonFieldDecorationStatements),b=Ae(b,g.staticFieldDecorationStatements),b=Ae(b,g.nonStaticFieldDecorationStatements),g.classDescriptorName&&g.classDecoratorsName&&g.classExtraInitializersName&&g.classThis){null!=b||(b=[]);const e=n.createPropertyAssignment("value",n.createThis()),r=n.createObjectLiteralExpression([e]),i=n.createAssignment(g.classDescriptorName,r),o=n.createPropertyAccessExpression(n.createThis(),"name"),s=t().createESDecorateHelper(n.createNull(),i,g.classDecoratorsName,{kind:"class",name:o},n.createNull(),g.classExtraInitializersName),c=n.createExpressionStatement(s);qA(c,hE(a)),b.push(c);const l=n.createPropertyAccessExpression(g.classDescriptorName,"value"),d=n.createAssignment(g.classThis,l),u=n.createAssignment(h,d);b.push(n.createExpressionStatement(u))}if(g.staticExtraInitializersName){const e=t().createRunInitializersHelper(k,g.staticExtraInitializersName),r=n.createExpressionStatement(e);qA(r,null!=(_=a.name)?_:hE(a)),b=Te(b,r)}if(g.classExtraInitializersName){const e=t().createRunInitializersHelper(k,g.classExtraInitializersName),r=n.createExpressionStatement(e);qA(r,null!=(m=a.name)?m:hE(a)),E=Te(E,r)}b&&E&&!g.hasStaticInitializers&&(Ae(b,E),E=void 0);let R=I;if(b){const e=n.createBlock(b,!0),t=n.createClassStaticBlockDeclaration(e);A&&KA(t,32),R=[t,...R]}if(x&&(R=[...R,x]),E){const e=n.createBlock(E,!0),t=n.createClassStaticBlockDeclaration(e);R=[...R,t]}R!==I&&(I=VN(n.createNodeArray(R),I));const N=i();let D;if(C){D=n.createClassExpression(void 0,void 0,void 0,S,I);const e=n.createVariableDeclaration(h,void 0,void 0,D),t=n.createVariableDeclarationList([e]),r=g.classThis?n.createAssignment(h,g.classThis):h;y.push(n.createVariableStatement(void 0,t),n.createReturnStatement(r))}else D=n.createClassExpression(void 0,a.name,void 0,S,I),y.push(n.createReturnStatement(D));if(A){WA(D,32);for(const e of D.members)(bd(e)||Bd(e))&&hb(e)&&WA(e,32)}return FA(D,a),BA(D).classThis=g.classThis,n.createImmediatelyInvokedArrowFunction(n.mergeLexicalEnvironment(y,N))}function k(e){return mh(!1,e)||fh(!1,e)}function I(e,t){if(k(e)){const r=C(e,e.name?n.createStringLiteralFromNode(e.name):null!=t?t:n.createStringLiteral(""));return FA(r,e),r}{const t=_B(e.modifiers,E,Ad),r=_B(e.heritageClauses,v,Tw);p(void 0);const i=_B(e.members,T,Pd);return f(),n.updateClassExpression(e,t,e.name,void 0,r,i)}}function w(e,r){if(r.instanceExtraInitializersName&&!r.hasNonAmbientInstanceFields){const e=[];return e.push(n.createExpressionStatement(t().createRunInitializersHelper(n.createThis(),r.instanceExtraInitializersName))),e}}function R(e,n){return e!==n&&(ZA(e,n),qA(e,hE(n))),e}function N(e,r,i,a){var o,s,c,l,u,_,p;let f,m,h,v,b;if(!i){const n=_B(e.modifiers,E,Ad);return g(),r?({referencedName:f,name:m}=F(e.name)):m=G(e.name),y(),{modifiers:n,referencedName:f,name:m,initializersName:h,descriptorName:b,thisArg:v}}const T=X(pU(e,i.class,!1)),x=_B(e.modifiers,E,Ad);if(T){const r=A(e,"decorators"),E=n.createArrayLiteralExpression(T),S=n.createAssignment(r,E),L={memberDecoratorsName:r};null!=i.memberInfos||(i.memberInfos=new Map),i.memberInfos.set(e,L),null!=d||(d=[]),d.push(S);const C=Ud(e)||Bd(e)?mb(e)?null!=(o=i.staticNonFieldDecorationStatements)?o:i.staticNonFieldDecorationStatements=[]:null!=(s=i.nonStaticNonFieldDecorationStatements)?s:i.nonStaticNonFieldDecorationStatements=[]:YC(e)&&!Bd(e)?mb(e)?null!=(c=i.staticFieldDecorationStatements)?c:i.staticFieldDecorationStatements=[]:null!=(l=i.nonStaticFieldDecorationStatements)?l:i.nonStaticFieldDecorationStatements=[]:Nt.fail(),k=nk(e)?"getter":tk(e)?"setter":QC(e)?"method":Bd(e)?"accessor":YC(e)?"field":Nt.fail();let I;if(IC(e.name)||wC(e.name))I={computed:!1,name:e.name};else if(My(e.name))I={computed:!0,name:n.createStringLiteralFromNode(e.name)};else{const t=e.name.expression;My(t)&&!IC(t)?I={computed:!0,name:n.createStringLiteralFromNode(t)}:(g(),({referencedName:f,name:m}=F(e.name)),I={computed:!0,name:f},y())}const w={kind:k,name:I,static:mb(e),private:wC(e.name),access:{get:YC(e)||nk(e)||QC(e),set:YC(e)||tk(e)}},R=mb(e)?null!=(u=i.staticExtraInitializersName)?u:i.staticExtraInitializersName=n.createUniqueName("_staticExtraInitializers",16):null!=(_=i.instanceExtraInitializersName)?_:i.instanceExtraInitializersName=n.createUniqueName("_instanceExtraInitializers",16);if(Ud(e)){let i;bd(e)&&a&&(i=a(e,_B(x,(e=>En(e,DC)),Ad)),L.memberDescriptorName=b=A(e,"descriptor"),i=n.createAssignment(b,i));const o=t().createESDecorateHelper(n.createThis(),null!=i?i:n.createNull(),r,w,n.createNull(),R),s=n.createExpressionStatement(o);qA(s,hE(e)),C.push(s)}else if(YC(e)){let o;h=null!=(p=L.memberInitializersName)?p:L.memberInitializersName=A(e,"initializers"),mb(e)&&(v=i.classThis),bd(e)&&bb(e)&&a&&(o=a(e,void 0),L.memberDescriptorName=b=A(e,"descriptor"),o=n.createAssignment(b,o));const s=t().createESDecorateHelper(Bd(e)?n.createThis():n.createNull(),null!=o?o:n.createNull(),r,w,h,R),c=n.createExpressionStatement(s);qA(c,hE(e)),C.push(c)}}return void 0===m&&(g(),r?({referencedName:f,name:m}=F(e.name)):m=G(e.name),y()),ce(x)||!QC(e)&&!YC(e)||jA(m,1024),{modifiers:x,referencedName:f,name:m,initializersName:h,descriptorName:b,thisArg:v}}function D(e){return nI(e)&&!e.name&&k(e)}function O(t,r){if(Wb(t)){const e=K(t.left),r=uB(t.right,v,mu);return n.updateBinaryExpression(t,e,t.operatorToken,r)}if(Hb(t)){if(zy(t,D)){const e=ie(t.left,t.right),r=uB(t.left,v,mu),i=uB(t.right,(n=>x(n,e)),mu);return n.updateBinaryExpression(t,r,t.operatorToken,i)}if(ah(t.left)&&c&&l){let e=Pk(t.left)?uB(t.left.argumentExpression,v,mu):IC(t.left.name)?n.createStringLiteralFromNode(t.left.name):void 0;if(e){let i=uB(t.right,v,mu);if(tU(t.operatorToken.kind)){let r=e;nU(e)||(r=n.createTempVariable(a),e=n.createAssignment(r,e));const o=n.createReflectGetCall(l,r,c);FA(o,t.left),VN(o,t.left),i=n.createBinaryExpression(o,rU(t.operatorToken.kind),i),VN(i,t)}const o=r?void 0:n.createTempVariable(a);return o&&(i=n.createAssignment(o,i),VN(o,t)),i=n.createReflectSetCall(l,e,i,c),FA(i,t),VN(i,t),o&&(i=n.createComma(i,o),VN(i,t)),i}}}if(27===t.operatorToken.kind){const e=uB(t.left,S,mu),i=uB(t.right,r?S:v,mu);return n.updateBinaryExpression(t,e,t.operatorToken,i)}return EB(t,v,e)}function M(t,r){if(45===t.operator||46===t.operator){const e=ey(t.operand);if(ah(e)&&c&&l){let i=Pk(e)?uB(e.argumentExpression,v,mu):IC(e.name)?n.createStringLiteralFromNode(e.name):void 0;if(i){let e=i;nU(i)||(e=n.createTempVariable(a),i=n.createAssignment(e,i));let o=n.createReflectGetCall(l,e,c);FA(o,t),VN(o,t);const s=r?void 0:n.createTempVariable(a);return o=MR(n,t,o,a,s),o=n.createReflectSetCall(l,i,o,c),FA(o,t),VN(o,t),s&&(o=n.createComma(o,s),VN(o,t)),o}}}return EB(t,v,e)}function P(e,t){const r=t?bB(e.elements,S):bB(e.elements,v,S);return n.updateCommaListExpression(e,r)}function F(e){if(My(e)||wC(e)){return{referencedName:n.createStringLiteralFromNode(e),name:uB(e,v,Cd)}}if(My(e.expression)&&!IC(e.expression)){return{referencedName:n.createStringLiteralFromNode(e.expression),name:uB(e,v,Cd)}}const r=n.getGeneratedNameForNode(e);a(r);const i=t().createPropKeyHelper(uB(e.expression,v,mu)),o=n.createAssignment(r,i);return{referencedName:r,name:n.updateComputedPropertyName(e,J(o))}}function G(e){return WC(e)?B(e):uB(e,v,Cd)}function B(e){let t=uB(e.expression,v,mu);return nU(t)||(t=J(t)),n.updateComputedPropertyName(e,t)}function U(t){if(Ok(t)||Dk(t))return K(t);if(ah(t)&&c&&l){const e=Pk(t)?uB(t.argumentExpression,v,mu):IC(t.name)?n.createStringLiteralFromNode(t.name):void 0;if(e){const r=n.createTempVariable(void 0),i=n.createAssignmentTargetWrapper(r,n.createReflectSetCall(l,e,r,c));return FA(i,t),VN(i,t),i}}return EB(t,v,e)}function V(e){if(Hb(e,!0)){const t=U(e.left);let r;if(zy(e,D)){const n=ie(e.left,e.right);r=uB(e.right,(e=>x(e,n)),mu)}else r=uB(e.right,v,mu);return n.updateBinaryExpression(e,t,e.operatorToken,r)}return U(e)}function j(t){return Nt.assertNode(t,ru),eI(t)?function(t){if(lu(t.expression)){const e=U(t.expression);return n.updateSpreadElement(t,e)}return EB(t,v,e)}(t):tI(t)?EB(t,v,e):V(t)}function H(t){return Nt.assertNode(t,nu),Lw(t)?function(t){if(lu(t.expression)){const e=U(t.expression);return n.updateSpreadAssignment(t,e)}return EB(t,v,e)}(t):Aw(t)?function(t){if(zy(t,D)){const e=ie(t.name,t.objectAssignmentInitializer),r=uB(t.name,v,IC),i=uB(t.objectAssignmentInitializer,(n=>x(n,e)),mu);return n.updateShorthandPropertyAssignment(t,r,i)}return EB(t,v,e)}(t):Sw(t)?function(t){const r=uB(t.name,v,Cd);if(Hb(t.initializer,!0)){const e=V(t.initializer);return n.updatePropertyAssignment(t,r,e)}if(lu(t.initializer)){const e=U(t.initializer);return n.updatePropertyAssignment(t,r,e)}return EB(t,v,e)}(t):EB(t,v,e)}function K(e){if(Dk(e)){const t=_B(e.elements,j,mu);return n.updateArrayLiteralExpression(e,t)}{const t=_B(e.properties,H,Wd);return n.updateObjectLiteralExpression(e,t)}}function z(e,t,r){const i=t?S:r?e=>x(e,r):v,a=uB(e.expression,i,mu);return n.updateParenthesizedExpression(e,a)}function q(e,t,r){const i=t?S:r?e=>x(e,r):v,a=uB(e.expression,i,mu);return n.updatePartiallyEmittedExpression(e,a)}function J(e){return ce(d)&&(Vk(e)?(d.push(e.expression),e=n.updateParenthesizedExpression(e,n.inlineExpressions(d))):(d.push(e),e=n.inlineExpressions(d)),d=void 0),e}function X(e){if(!e)return;const n=[];return Ae(n,W(e.decorators,Y)),n}function Y(e){const n=uB(e.expression,v,mu);return jA(n,3072),n}function $(e,r,i,a,o,s,c){const l=n.createFunctionExpression(i,a,void 0,void 0,s,void 0,null!=c?c:n.createBlock([]));FA(l,e),qA(l,hE(e)),jA(l,3072);const d="get"===o||"set"===o?o:void 0,u=n.createStringLiteralFromNode(r,void 0),_=t().createSetFunctionNameHelper(l,u,d),p=n.createPropertyAssignment(n.createIdentifier(o),_);return FA(p,e),qA(p,hE(e)),jA(p,3072),p}function Q(e,t){return n.createObjectLiteralExpression([$(e,e.name,t,e.asteriskToken,"value",_B(e.parameters,v,qC),uB(e.body,v,pI))])}function Z(e,t){return n.createObjectLiteralExpression([$(e,e.name,t,void 0,"get",[],uB(e.body,v,pI))])}function ee(e,t){return n.createObjectLiteralExpression([$(e,e.name,t,void 0,"set",_B(e.parameters,v,qC),uB(e.body,v,pI))])}function ne(e,t){return n.createObjectLiteralExpression([$(e,e.name,t,void 0,"get",[],n.createBlock([n.createReturnStatement(n.createPropertyAccessExpression(n.createThis(),n.getGeneratedPrivateNameForNode(e.name)))])),$(e,e.name,t,void 0,"set",[n.createParameterDeclaration(void 0,void 0,"value")],n.createBlock([n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createThis(),n.getGeneratedPrivateNameForNode(e.name)),n.createIdentifier("value")))]))])}function te(e,t,r){return e=_B(e,(e=>FC(e)?e:void 0),Ad),n.createGetAccessorDeclaration(e,t,[],void 0,n.createBlock([n.createReturnStatement(n.createFunctionCallCall(n.createPropertyAccessExpression(r,n.createIdentifier("get")),n.createThis(),[]))]))}function re(e,t,r){return e=_B(e,(e=>FC(e)?e:void 0),Ad),n.createSetAccessorDeclaration(e,t,[n.createParameterDeclaration(void 0,void 0,"value")],n.createBlock([n.createReturnStatement(n.createFunctionCallCall(n.createPropertyAccessExpression(r,n.createIdentifier("set")),n.createThis(),[n.createIdentifier("value")]))]))}function ie(e,t){const r=Oc(t,Fd);return r&&!r.name&&fb(r,1024)?n.createStringLiteral("default"):n.createStringLiteralFromNode(e)}}var qU=E({"src/compiler/transformers/esDecorators.ts"(){lq()}});function JU(e){const{factory:n,getEmitHelperFactory:t,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:a}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),c=HT(s);let l,d,u,_,p=0;const f=[];let m=0;const h=e.onEmitNode,g=e.onSubstituteNode;return e.onEmitNode=function(e,n,t){if(1&l&&function(e){const n=e.kind;return 260===n||173===n||171===n||174===n||175===n}(n)){const r=384&o.getNodeCheckFlags(n);if(r!==p){const i=p;return p=r,h(e,n,t),void(p=i)}}else if(l&&f[ZG(n)]){const r=p;return p=0,h(e,n,t),void(p=r)}h(e,n,t)},e.onSubstituteNode=function(e,t){if(t=g(e,t),1===e&&p)return function(e){switch(e.kind){case 208:return H(e);case 209:return K(e);case 210:return function(e){const t=e.expression;if(ah(t)){const r=Mk(t)?H(t):K(t);return n.createCallExpression(n.createPropertyAccessExpression(r,"call"),void 0,[n.createThis(),...e.arguments])}return e}(e)}return e}(t);return t},qB(e,(function(n){if(n.isDeclarationFile)return n;y(1,!1),y(2,!If(n,s));const t=EB(n,x,e);return dL(t,e.readEmitHelpers()),t}));function y(e,n){m=n?m|e:m&~e}function v(e){return 0!==(m&e)}function b(){return v(2)}function E(e,n,t){const r=e&~m;if(r){y(r,!0);const e=n(t);return y(r,!1),e}return n(t)}function T(n){return EB(n,x,e)}function x(t){if(0===(256&t.transformFlags))return t;switch(t.kind){case 132:return;case 220:return function(t){if(!v(1))return EB(t,x,e);return FA(VN(n.createYieldExpression(void 0,uB(t.expression,x,mu)),t),t)}(t);case 171:return E(3,C,t);case 259:return E(3,w,t);case 215:return E(3,R,t);case 216:return E(1,N,t);case 208:return u&&Mk(t)&&106===t.expression.kind&&u.add(t.name.escapedText),EB(t,x,e);case 209:return u&&106===t.expression.kind&&(_=!0),EB(t,x,e);case 174:return E(3,k,t);case 175:return E(3,I,t);case 173:return E(3,L,t);case 260:case 228:return E(3,T,t);default:return EB(t,x,e)}}function S(t){if(qg(t))switch(t.kind){case 240:return function(t){if(O(t.declarationList)){const e=M(t.declarationList,!1);return e?n.createExpressionStatement(e):void 0}return EB(t,x,e)}(t);case 245:return function(t){const r=t.initializer;return n.updateForStatement(t,O(r)?M(r,!1):uB(t.initializer,x,Lu),uB(t.condition,x,mu),uB(t.incrementor,x,mu),vB(t.statement,S,e))}(t);case 246:return function(t){return n.updateForInStatement(t,O(t.initializer)?M(t.initializer,!0):Nt.checkDefined(uB(t.initializer,x,Lu)),Nt.checkDefined(uB(t.expression,x,mu)),vB(t.statement,S,e))}(t);case 247:return function(t){return n.updateForOfStatement(t,uB(t.awaitModifier,x,MC),O(t.initializer)?M(t.initializer,!0):Nt.checkDefined(uB(t.initializer,x,Lu)),Nt.checkDefined(uB(t.expression,x,mu)),vB(t.statement,S,e))}(t);case 295:return function(n){const t=new Set;let r;if(D(n.variableDeclaration,t),t.forEach(((e,n)=>{d.has(n)&&(r||(r=new Set(d)),r.delete(n))})),r){const t=d;d=r;const i=EB(n,S,e);return d=t,i}return EB(n,S,e)}(t);case 238:case 252:case 266:case 292:case 293:case 255:case 243:case 244:case 242:case 251:case 253:return EB(t,S,e);default:return Nt.assertNever(t,"Unhandled node.")}return x(t)}function L(t){return n.updateConstructorDeclaration(t,_B(t.modifiers,x,Ad),hB(t.parameters,x,e),B(t))}function C(t){return n.updateMethodDeclaration(t,_B(t.modifiers,x,jd),t.asteriskToken,t.name,void 0,void 0,hB(t.parameters,x,e),void 0,2&ky(t)?U(t):B(t))}function k(t){return n.updateGetAccessorDeclaration(t,_B(t.modifiers,x,jd),t.name,hB(t.parameters,x,e),void 0,B(t))}function I(t){return n.updateSetAccessorDeclaration(t,_B(t.modifiers,x,jd),t.name,hB(t.parameters,x,e),B(t))}function w(t){return n.updateFunctionDeclaration(t,_B(t.modifiers,x,jd),t.asteriskToken,t.name,void 0,hB(t.parameters,x,e),void 0,2&ky(t)?U(t):yB(t.body,x,e))}function R(t){return n.updateFunctionExpression(t,_B(t.modifiers,x,Ad),t.asteriskToken,t.name,void 0,hB(t.parameters,x,e),void 0,2&ky(t)?U(t):yB(t.body,x,e))}function N(t){return n.updateArrowFunction(t,_B(t.modifiers,x,Ad),void 0,hB(t.parameters,x,e),void 0,t.equalsGreaterThanToken,2&ky(t)?U(t):yB(t.body,x,e))}function D({name:e},n){if(IC(e))n.add(e.escapedText);else for(const t of e.elements)tI(t)||D(t,n)}function O(e){return!!e&&DI(e)&&!(3&e.flags)&&e.declarations.some(G)}function M(e,t){!function(e){A(e.declarations,P)}(e);const r=DE(e);return 0===r.length?t?uB(n.converters.convertToAssignmentElementTarget(e.declarations[0].name),x,mu):void 0:n.inlineExpressions(W(r,F))}function P({name:e}){if(IC(e))a(e);else for(const n of e.elements)tI(n)||P(n)}function F(e){const t=qA(n.createAssignment(n.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return Nt.checkDefined(uB(t,x,mu))}function G({name:e}){if(IC(e))return d.has(e.escapedText);for(const n of e.elements)if(!tI(n)&&G(n))return!0;return!1}function B(t){Nt.assertIsDefined(t.body);const r=u,i=_;u=new Set,_=!1;let a=yB(t.body,x,e);const s=Oc(t,Rd);if(c>=2&&384&o.getNodeCheckFlags(t)&&3!==(3&ky(s))){if(j(),u.size){const e=XU(n,o,t,u);f[ZG(e)]=!0;const r=a.statements.slice();Jp(r,[e]),a=n.updateBlock(a,r)}_&&(256&o.getNodeCheckFlags(t)?lL(a,tC):128&o.getNodeCheckFlags(t)&&lL(a,nC))}return u=r,_=i,a}function U(e){r();const a=Oc(e,Id).type,s=c<2?function(e){const n=e&&lh(e);if(n&&Ld(n)){const e=o.getTypeReferenceSerializationKind(n);if(1===e||0===e)return n}return}(a):void 0,l=216===e.kind,p=0!==(512&o.getNodeCheckFlags(e)),m=d;d=new Set;for(const n of e.parameters)D(n,d);const h=u,g=_;let y;if(l||(u=new Set,_=!1),l){const r=t().createAwaiterHelper(b(),p,s,V(e.body)),a=i();if(ce(a)){const e=n.converters.convertToFunctionBlock(r);y=n.updateBlock(e,VN(n.createNodeArray(de(a,e.statements)),e.statements))}else y=r}else{const r=[],a=n.copyPrologue(e.body.statements,r,!1,x);r.push(n.createReturnStatement(t().createAwaiterHelper(b(),p,s,V(e.body,a)))),Jp(r,i());const l=c>=2&&384&o.getNodeCheckFlags(e);if(l&&(j(),u.size)){const t=XU(n,o,e,u);f[ZG(t)]=!0,Jp(r,[t])}const d=n.createBlock(r,!0);VN(d,e.body),l&&_&&(256&o.getNodeCheckFlags(e)?lL(d,tC):128&o.getNodeCheckFlags(e)&&lL(d,nC)),y=d}return d=m,l||(u=h,_=g),y}function V(e,t){return pI(e)?n.updateBlock(e,_B(e.statements,S,Bu,t)):n.converters.convertToFunctionBlock(Nt.checkDefined(uB(e,S,Su)))}function j(){0===(1&l)&&(l|=1,e.enableSubstitution(210),e.enableSubstitution(208),e.enableSubstitution(209),e.enableEmitNotification(260),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(240))}function H(e){return 106===e.expression.kind?VN(n.createPropertyAccessExpression(n.createUniqueName("_super",48),e.name),e):e}function K(e){return 106===e.expression.kind?(t=e.argumentExpression,r=e,VN(256&p?n.createPropertyAccessExpression(n.createCallExpression(n.createUniqueName("_superIndex",48),void 0,[t]),"value"):n.createCallExpression(n.createUniqueName("_superIndex",48),void 0,[t]),r)):e;var t,r}}function XU(e,n,t,r){const i=0!==(256&n.getNodeCheckFlags(t)),a=[];return r.forEach(((n,t)=>{const r=Bc(t),o=[];o.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,jA(e.createPropertyAccessExpression(jA(e.createSuper(),8),r),8)))),i&&o.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(jA(e.createPropertyAccessExpression(jA(e.createSuper(),8),r),8),e.createIdentifier("v"))))),a.push(e.createPropertyAssignment(r,e.createObjectLiteralExpression(o)))})),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(a,!0)]))],2))}var YU=E({"src/compiler/transformers/es2017.ts"(){lq()}});function $U(e){const{factory:n,getEmitHelperFactory:t,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:a}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),c=HT(s),l=e.onEmitNode;e.onEmitNode=function(e,n,t){if(1&u&&function(e){const n=e.kind;return 260===n||173===n||171===n||174===n||175===n}(n)){const r=384&o.getNodeCheckFlags(n);if(r!==v){const i=v;return v=r,l(e,n,t),void(v=i)}}else if(u&&E[ZG(n)]){const r=v;return v=0,l(e,n,t),void(v=r)}l(e,n,t)};const d=e.onSubstituteNode;e.onSubstituteNode=function(e,t){if(t=d(e,t),1===e&&v)return function(e){switch(e.kind){case 208:return J(e);case 209:return X(e);case 210:return function(e){const t=e.expression;if(ah(t)){const r=Mk(t)?J(t):X(t);return n.createCallExpression(n.createPropertyAccessExpression(r,"call"),void 0,[n.createThis(),...e.arguments])}return e}(e)}return e}(t);return t};let u,_,p,f,m,h,g,y=!1,v=0,b=0;const E=[];return qB(e,(function(t){if(t.isDeclarationFile)return t;f=t;const r=function(t){const r=T(2,If(t,s)?0:1);y=!1;const i=EB(t,A,e),a=de(i.statements,m&&[n.createVariableStatement(void 0,n.createVariableDeclarationList(m))]),o=n.updateSourceFile(i,VN(n.createNodeArray(a),t.statements));return x(r),o}(t);return dL(r,e.readEmitHelpers()),f=void 0,m=void 0,r}));function T(e,n){const t=b;return b=3&(b&~e|n),t}function x(e){b=e}function S(e){m=Te(m,n.createVariableDeclaration(e))}function A(e){return w(e,!1)}function L(e){return w(e,!0)}function C(e){if(132!==e.kind)return e}function k(e,n,t,r){if(function(e,n){return b!==(b&~e|n)}(t,r)){const i=T(t,r),a=e(n);return x(i),a}return e(n)}function I(n){return EB(n,A,e)}function w(r,i){if(0===(128&r.transformFlags))return r;switch(r.kind){case 220:return function(r){if(2&_&&1&_)return FA(VN(n.createYieldExpression(void 0,t().createAwaitHelper(uB(r.expression,A,mu))),r),r);return EB(r,A,e)}(r);case 226:return function(r){if(2&_&&1&_){if(r.asteriskToken){const e=uB(Nt.checkDefined(r.expression),A,mu);return FA(VN(n.createYieldExpression(void 0,t().createAwaitHelper(n.updateYieldExpression(r,r.asteriskToken,VN(t().createAsyncDelegatorHelper(VN(t().createAsyncValuesHelper(e),e)),e)))),r),r)}return FA(VN(n.createYieldExpression(void 0,O(r.expression?uB(r.expression,A,mu):n.createVoidZero())),r),r)}return EB(r,A,e)}(r);case 250:return function(t){if(2&_&&1&_)return n.updateReturnStatement(t,O(t.expression?uB(t.expression,A,mu):n.createVoidZero()));return EB(t,A,e)}(r);case 253:return function(t){if(2&_){const e=Pm(t);return 247===e.kind&&e.awaitModifier?D(e,t):n.restoreEnclosingLabel(uB(e,A,Bu,n.liftToBlock),t)}return EB(t,A,e)}(r);case 207:return function(r){if(65536&r.transformFlags){const e=function(e){let t;const r=[];for(const i of e)if(301===i.kind){t&&(r.push(n.createObjectLiteralExpression(t)),t=void 0);const e=i.expression;r.push(uB(e,A,mu))}else t=Te(t,299===i.kind?n.createPropertyAssignment(i.name,uB(i.initializer,A,mu)):uB(i,A,Wd));t&&r.push(n.createObjectLiteralExpression(t));return r}(r.properties);e.length&&207!==e[0].kind&&e.unshift(n.createObjectLiteralExpression());let i=e[0];if(e.length>1){for(let n=1;n<e.length;n++)i=t().createAssignHelper([i,e[n]]);return i}return t().createAssignHelper(e)}return EB(r,A,e)}(r);case 223:return function(t,r){if(Wb(t)&&BN(t.left))return TU(t,A,e,1,!r);if(27===t.operatorToken.kind)return n.updateBinaryExpression(t,uB(t.left,L,mu),t.operatorToken,uB(t.right,r?L:A,mu));return EB(t,A,e)}(r,i);case 357:return function(t,r){if(r)return EB(t,L,e);let i;for(let e=0;e<t.elements.length;e++){const n=t.elements[e],r=uB(n,e<t.elements.length-1?L:A,mu);(i||r!==n)&&(i||(i=t.elements.slice(0,e)),i.push(r))}const a=i?VN(n.createNodeArray(i),t.elements):t.elements;return n.updateCommaListExpression(t,a)}(r,i);case 295:return function(t){if(t.variableDeclaration&&Jd(t.variableDeclaration.name)&&65536&t.variableDeclaration.name.transformFlags){const r=n.getGeneratedNameForNode(t.variableDeclaration.name),i=AU(n.updateVariableDeclaration(t.variableDeclaration,t.variableDeclaration.name,void 0,void 0,r),A,e,1);let a=uB(t.block,A,pI);return ce(i)&&(a=n.updateBlock(a,[n.createVariableStatement(void 0,i),...a.statements])),n.updateCatchClause(t,n.updateVariableDeclaration(t.variableDeclaration,r,void 0,void 0,void 0),a)}return EB(t,A,e)}(r);case 240:return function(n){if(fb(n,1)){const t=y;y=!0;const r=EB(n,A,e);return y=t,r}return EB(n,A,e)}(r);case 257:return function(e){if(y){const n=y;y=!1;const t=R(e,!0);return y=n,t}return R(e,!1)}(r);case 243:case 244:case 246:return k(I,r,0,2);case 247:return D(r,void 0);case 245:return k(N,r,0,2);case 219:case 241:return function(n){return EB(n,L,e)}(r);case 173:return k(G,r,2,1);case 171:return k(V,r,2,1);case 174:return k(B,r,2,1);case 175:return k(U,r,2,1);case 259:return k(j,r,2,1);case 215:return k(K,r,2,1);case 216:return k(H,r,2,0);case 166:return P(r);case 214:return function(n,t){return EB(n,t?L:A,e)}(r,i);case 212:return function(n){return DU(e,n,A,f,S,0)}(r);case 208:return h&&Mk(r)&&106===r.expression.kind&&h.add(r.name.escapedText),EB(r,A,e);case 209:return h&&106===r.expression.kind&&(g=!0),EB(r,A,e);case 260:case 228:return k(I,r,2,1);default:return EB(r,A,e)}}function R(n,t){return Jd(n.name)&&65536&n.name.transformFlags?AU(n,A,e,1,void 0,t):EB(n,A,e)}function N(t){return n.updateForStatement(t,uB(t.initializer,L,Lu),uB(t.condition,A,mu),uB(t.incrementor,L,mu),vB(t.statement,A,e))}function D(r,i){const o=T(0,2);(65536&r.initializer.transformFlags||Xd(r.initializer)&&BN(r.initializer))&&(r=function(e){const t=ey(e.initializer);if(DI(t)||Xd(t)){let r,i;const a=n.createTempVariable(void 0),o=[wR(n,t,a)];return pI(e.statement)?(Ae(o,e.statement.statements),r=e.statement,i=e.statement.statements):e.statement&&(Te(o,e.statement),r=e.statement,i=e.statement),n.updateForOfStatement(e,e.awaitModifier,VN(n.createVariableDeclarationList([VN(n.createVariableDeclaration(a),e.initializer)],1),e.initializer),e.expression,VN(n.createBlock(VN(n.createNodeArray(o),i),!0),r))}return e}(r));const s=r.awaitModifier?function(r,i,o){const s=uB(r.expression,A,mu),c=IC(s)?n.getGeneratedNameForNode(s):n.createTempVariable(void 0),l=IC(s)?n.getGeneratedNameForNode(c):n.createTempVariable(void 0),d=n.createTempVariable(void 0),u=n.createTempVariable(a),_=n.createUniqueName("e"),p=n.getGeneratedNameForNode(_),f=n.createTempVariable(void 0),m=VN(t().createAsyncValuesHelper(s),r.expression),h=n.createCallExpression(n.createPropertyAccessExpression(c,"next"),void 0,[]),g=n.createPropertyAccessExpression(l,"done"),y=n.createPropertyAccessExpression(l,"value"),v=n.createFunctionCallCall(f,c,[]);a(_),a(f);const b=2&o?n.inlineExpressions([n.createAssignment(_,n.createVoidZero()),m]):m,E=jA(VN(n.createForStatement(jA(VN(n.createVariableDeclarationList([n.createVariableDeclaration(d,void 0,void 0,n.createTrue()),VN(n.createVariableDeclaration(c,void 0,void 0,b),r.expression),n.createVariableDeclaration(l)]),r.expression),4194304),n.inlineExpressions([n.createAssignment(l,O(h)),n.createAssignment(u,g),n.createLogicalNot(u)]),void 0,function(t,r,i){const o=n.createTempVariable(a),s=n.createAssignment(o,r),c=n.createExpressionStatement(s);qA(c,t.expression);const l=n.createAssignment(i,n.createFalse()),d=n.createExpressionStatement(l);qA(d,t.expression);const u=n.createAssignment(i,n.createTrue()),_=n.createExpressionStatement(u);qA(d,t.expression);const p=[],f=wR(n,t.initializer,o);let m,h;p.push(uB(f,A,Bu));const g=vB(t.statement,A,e);pI(g)?(Ae(p,g.statements),m=g,h=g.statements):p.push(g);const y=jA(VN(n.createBlock(VN(n.createNodeArray(p),h),!0),m),864);return n.createBlock([c,d,n.createTryStatement(y,void 0,n.createBlock([_]))])}(r,y,d)),r),512);return FA(E,r),n.createTryStatement(n.createBlock([n.restoreEnclosingLabel(E,i)]),n.createCatchClause(n.createVariableDeclaration(p),jA(n.createBlock([n.createExpressionStatement(n.createAssignment(_,n.createObjectLiteralExpression([n.createPropertyAssignment("error",p)])))]),1)),n.createBlock([n.createTryStatement(n.createBlock([jA(n.createIfStatement(n.createLogicalAnd(n.createLogicalAnd(n.createLogicalNot(d),n.createLogicalNot(u)),n.createAssignment(f,n.createPropertyAccessExpression(c,"return"))),n.createExpressionStatement(O(v))),1)]),void 0,jA(n.createBlock([jA(n.createIfStatement(_,n.createThrowStatement(n.createPropertyAccessExpression(_,"error"))),1)]),1))]))}(r,i,o):n.restoreEnclosingLabel(EB(r,A,e),i);return x(o),s}function O(e){return 1&_?n.createYieldExpression(void 0,t().createAwaitHelper(e)):n.createAwaitExpression(e)}function M(e){return Nt.assertNode(e,qC),P(e)}function P(t){return(null==p?void 0:p.has(t))?n.updateParameterDeclaration(t,void 0,t.dotDotDotToken,Jd(t.name)?n.getGeneratedNameForNode(t):t.name,void 0,void 0,void 0):65536&t.transformFlags?n.updateParameterDeclaration(t,void 0,t.dotDotDotToken,n.getGeneratedNameForNode(t),void 0,void 0,uB(t.initializer,A,mu)):EB(t,A,e)}function F(e){let n;for(const t of e.parameters)n?n.add(t):65536&t.transformFlags&&(n=new Set);return n}function G(t){const r=_,i=p;_=ky(t),p=F(t);const a=n.updateConstructorDeclaration(t,t.modifiers,hB(t.parameters,M,e),z(t));return _=r,p=i,a}function B(t){const r=_,i=p;_=ky(t),p=F(t);const a=n.updateGetAccessorDeclaration(t,t.modifiers,uB(t.name,A,Cd),hB(t.parameters,M,e),void 0,z(t));return _=r,p=i,a}function U(t){const r=_,i=p;_=ky(t),p=F(t);const a=n.updateSetAccessorDeclaration(t,t.modifiers,uB(t.name,A,Cd),hB(t.parameters,M,e),z(t));return _=r,p=i,a}function V(t){const r=_,i=p;_=ky(t),p=F(t);const a=n.updateMethodDeclaration(t,1&_?_B(t.modifiers,C,jd):t.modifiers,2&_?void 0:t.asteriskToken,uB(t.name,A,Cd),uB(void 0,A,AC),void 0,hB(t.parameters,M,e),void 0,2&_&&1&_?W(t):z(t));return _=r,p=i,a}function j(t){const r=_,i=p;_=ky(t),p=F(t);const a=n.updateFunctionDeclaration(t,1&_?_B(t.modifiers,C,Ad):t.modifiers,2&_?void 0:t.asteriskToken,t.name,void 0,hB(t.parameters,M,e),void 0,2&_&&1&_?W(t):z(t));return _=r,p=i,a}function H(t){const r=_,i=p;_=ky(t),p=F(t);const a=n.updateArrowFunction(t,t.modifiers,void 0,hB(t.parameters,M,e),void 0,t.equalsGreaterThanToken,z(t));return _=r,p=i,a}function K(t){const r=_,i=p;_=ky(t),p=F(t);const a=n.updateFunctionExpression(t,1&_?_B(t.modifiers,C,Ad):t.modifiers,2&_?void 0:t.asteriskToken,t.name,void 0,hB(t.parameters,M,e),void 0,2&_&&1&_?W(t):z(t));return _=r,p=i,a}function W(a){r();const s=[],l=n.copyPrologue(a.body.statements,s,!1,A);q(s,a);const d=h,_=g;h=new Set,g=!1;const p=n.createReturnStatement(t().createAsyncGeneratorHelper(n.createFunctionExpression(void 0,n.createToken(41),a.name&&n.getGeneratedNameForNode(a.name),void 0,[],void 0,n.updateBlock(a.body,mB(a.body.statements,A,e,l))),!!(1&b))),f=c>=2&&384&o.getNodeCheckFlags(a);if(f){0===(1&u)&&(u|=1,e.enableSubstitution(210),e.enableSubstitution(208),e.enableSubstitution(209),e.enableEmitNotification(260),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(240));const t=XU(n,o,a,h);E[ZG(t)]=!0,Jp(s,[t])}s.push(p),Jp(s,i());const m=n.updateBlock(a.body,s);return f&&g&&(256&o.getNodeCheckFlags(a)?lL(m,tC):128&o.getNodeCheckFlags(a)&&lL(m,nC)),h=d,g=_,m}function z(e){var t;r();let a=0;const o=[],s=null!=(t=uB(e.body,A,Su))?t:n.createBlock([]);pI(s)&&(a=n.copyPrologue(s.statements,o,!1,A)),Ae(o,q(void 0,e));const c=i();if(a>0||ce(o)||ce(c)){const e=n.converters.convertToFunctionBlock(s,!0);return Jp(o,c),Ae(o,e.statements.slice(a)),n.updateBlock(e,VN(n.createNodeArray(o),e.statements))}return s}function q(t,r){let i=!1;for(const a of r.parameters)if(i){if(Jd(a.name)){if(a.name.elements.length>0){const r=AU(a,A,e,0,n.getGeneratedNameForNode(a));if(ce(r)){const e=n.createVariableDeclarationList(r),i=n.createVariableStatement(void 0,e);jA(i,2097152),t=Te(t,i)}}else if(a.initializer){const e=n.getGeneratedNameForNode(a),r=uB(a.initializer,A,mu),i=n.createAssignment(e,r),o=n.createExpressionStatement(i);jA(o,2097152),t=Te(t,o)}}else if(a.initializer){const e=n.cloneNode(a.name);VN(e,a.name),jA(e,96);const r=uB(a.initializer,A,mu);HA(r,3168);const i=n.createAssignment(e,r);VN(i,a),jA(i,3072);const o=n.createBlock([n.createExpressionStatement(i)]);VN(o,a),jA(o,3905);const s=n.createTypeCheck(n.cloneNode(a.name),"undefined"),c=n.createIfStatement(s,o);YR(c),VN(c,a),jA(c,2101056),t=Te(t,c)}}else if(65536&a.transformFlags){i=!0;const r=AU(a,A,e,1,n.getGeneratedNameForNode(a),!1,!0);if(ce(r)){const e=n.createVariableDeclarationList(r),i=n.createVariableStatement(void 0,e);jA(i,2097152),t=Te(t,i)}}return t}function J(e){return 106===e.expression.kind?VN(n.createPropertyAccessExpression(n.createUniqueName("_super",48),e.name),e):e}function X(e){return 106===e.expression.kind?(t=e.argumentExpression,r=e,VN(256&v?n.createPropertyAccessExpression(n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[t]),"value"):n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[t]),r)):e;var t,r}}var QU=E({"src/compiler/transformers/es2018.ts"(){lq()}});function ZU(e){const n=e.factory;return qB(e,(function(n){if(n.isDeclarationFile)return n;return EB(n,t,e)}));function t(r){return 0===(64&r.transformFlags)?r:295===r.kind?function(r){if(!r.variableDeclaration)return n.updateCatchClause(r,n.createVariableDeclaration(n.createTempVariable(void 0)),uB(r.block,t,pI));return EB(r,t,e)}(r):EB(r,t,e)}}var eV=E({"src/compiler/transformers/es2019.ts"(){lq()}});function nV(e){const{factory:n,hoistVariableDeclaration:t}=e;return qB(e,(function(n){if(n.isDeclarationFile)return n;return EB(n,r,e)}));function r(i){if(0===(32&i.transformFlags))return i;switch(i.kind){case 210:{const e=a(i,!1);return Nt.assertNotNode(e,aw),e}case 208:case 209:if(jl(i)){const e=s(i,!1,!1);return Nt.assertNotNode(e,aw),e}return EB(i,r,e);case 223:return 60===i.operatorToken.kind?function(e){let i=uB(e.left,r,mu),a=i;eU(i)||(a=n.createTempVariable(t),i=n.createAssignment(a,i));return VN(n.createConditionalExpression(c(i,a),void 0,a,void 0,uB(e.right,r,mu)),e)}(i):EB(i,r,e);case 217:return function(e){return jl(ey(e.expression))?FA(o(e.expression,!1,!0),e):n.updateDeleteExpression(e,uB(e.expression,r,mu))}(i);default:return EB(i,r,e)}}function i(e,t,r){const i=o(e.expression,t,r);return aw(i)?n.createSyntheticReferenceExpression(n.updateParenthesizedExpression(e,i.expression),i.thisArg):n.updateParenthesizedExpression(e,i)}function a(t,a){if(jl(t))return s(t,a,!1);if(Vk(t.expression)&&jl(ey(t.expression))){const e=i(t.expression,!0,!1),a=_B(t.arguments,r,mu);return aw(e)?VN(n.createFunctionCallCall(e.expression,e.thisArg,a),t):n.updateCallExpression(t,e,void 0,a)}return EB(t,r,e)}function o(e,o,c){switch(e.kind){case 214:return i(e,o,c);case 208:case 209:return function(e,i,a){if(jl(e))return s(e,i,a);let o,c=uB(e.expression,r,mu);return Nt.assertNotNode(c,aw),i&&(eU(c)?o=c:(o=n.createTempVariable(t),c=n.createAssignment(o,c))),c=208===e.kind?n.updatePropertyAccessExpression(e,c,uB(e.name,r,IC)):n.updateElementAccessExpression(e,c,uB(e.argumentExpression,r,mu)),o?n.createSyntheticReferenceExpression(c,o):c}(e,o,c);case 210:return a(e,o);default:return uB(e,r,mu)}}function s(e,i,a){const{expression:s,chain:l}=function(e){Nt.assertNotNode(e,Xl);const n=[e];for(;!e.questionDotToken&&!Bk(e);)e=Tn(Jl(e.expression),jl),Nt.assertNotNode(e,Xl),n.unshift(e);return{expression:e.expression,chain:n}}(e),d=o(Jl(s),Vl(l[0]),!1);let u=aw(d)?d.thisArg:void 0,_=aw(d)?d.expression:d,p=n.restoreOuterExpressions(s,_,8);eU(_)||(_=n.createTempVariable(t),p=n.createAssignment(_,p));let f,m=_;for(let o=0;o<l.length;o++){const e=l[o];switch(e.kind){case 208:case 209:o===l.length-1&&i&&(eU(m)?f=m:(f=n.createTempVariable(t),m=n.createAssignment(f,m))),m=208===e.kind?n.createPropertyAccessExpression(m,uB(e.name,r,IC)):n.createElementAccessExpression(m,uB(e.argumentExpression,r,mu));break;case 210:0===o&&u?(yd(u)||(u=n.cloneNode(u),HA(u,3072)),m=n.createFunctionCallCall(m,106===u.kind?n.createThis():u,_B(e.arguments,r,mu))):m=n.createCallExpression(m,void 0,_B(e.arguments,r,mu))}FA(m,e)}const h=a?n.createConditionalExpression(c(p,_,!0),void 0,n.createTrue(),void 0,n.createDeleteExpression(m)):n.createConditionalExpression(c(p,_,!0),void 0,n.createVoidZero(),void 0,m);return VN(h,e),f?n.createSyntheticReferenceExpression(h,f):h}function c(e,t,r){return n.createBinaryExpression(n.createBinaryExpression(e,n.createToken(r?36:37),n.createNull()),n.createToken(r?56:55),n.createBinaryExpression(t,n.createToken(r?36:37),n.createVoidZero()))}}var tV=E({"src/compiler/transformers/es2020.ts"(){lq()}});function rV(e){const{hoistVariableDeclaration:n,factory:t}=e;return qB(e,(function(n){if(n.isDeclarationFile)return n;return EB(n,r,e)}));function r(i){return 0===(16&i.transformFlags)?i:Fb(i)?function(e){const i=rU(e.operatorToken.kind);let a=ey(uB(e.left,r,lu)),o=a;const s=ey(uB(e.right,r,mu));if(iT(a)){const e=eU(a.expression),r=e?a.expression:t.createTempVariable(n),i=e?a.expression:t.createAssignment(r,a.expression);if(Mk(a))o=t.createPropertyAccessExpression(r,a.name),a=t.createPropertyAccessExpression(i,a.name);else{const e=eU(a.argumentExpression),s=e?a.argumentExpression:t.createTempVariable(n);o=t.createElementAccessExpression(r,s),a=t.createElementAccessExpression(i,e?a.argumentExpression:t.createAssignment(s,a.argumentExpression))}}return t.createBinaryExpression(a,i,t.createParenthesizedExpression(t.createAssignment(o,s)))}(i):EB(i,r,e)}}var iV=E({"src/compiler/transformers/es2021.ts"(){lq()}});function aV(e){return qB(e,(function(t){if(t.isDeclarationFile)return t;return EB(t,n,e)}));function n(t){return 0===(4&t.transformFlags)?t:(t.kind,EB(t,n,e))}}var oV,sV=E({"src/compiler/transformers/esnext.ts"(){lq()}});function cV(e){const{factory:n,getEmitHelperFactory:t}=e,r=e.getCompilerOptions();let a,o;return qB(e,(function(t){if(t.isDeclarationFile)return t;a=t,o={},o.importSpecifier=gx(r,t);let i=EB(t,d,e);dL(i,e.readEmitHelpers());let s=i.statements;o.filenameDeclaration&&(s=$p(s.slice(),n.createVariableStatement(void 0,n.createVariableDeclarationList([o.filenameDeclaration],2))));if(o.utilizedImplicitRuntimeImports)for(const[e,r]of Qe(o.utilizedImplicitRuntimeImports.entries()))if(OD(t)){const t=n.createImportDeclaration(void 0,n.createImportClause(!1,void 0,n.createNamedImports(Qe(r.values()))),n.createStringLiteral(e),void 0);IS(t,!1),s=$p(s.slice(),t)}else if(om(t)){const t=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createObjectBindingPattern(Qe(r.values(),(e=>n.createBindingElement(void 0,e.propertyName,e.name)))),void 0,void 0,n.createCallExpression(n.createIdentifier("require"),void 0,[n.createStringLiteral(e)]))],2));IS(t,!1),s=$p(s.slice(),t)}s!==i.statements&&(i=n.updateSourceFile(i,s));return o=void 0,i}));function s(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const e=n.createVariableDeclaration(n.createUniqueName("_jsxFileName",48),void 0,void 0,n.createStringLiteral(a.fileName));return o.filenameDeclaration=e,o.filenameDeclaration.name}function c(e){const n=function(e){return 5===r.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return l(n)}function l(e){var t,i;const a="createElement"===e?o.importSpecifier:yx(o.importSpecifier,r),s=null==(i=null==(t=o.utilizedImplicitRuntimeImports)?void 0:t.get(a))?void 0:i.get(e);if(s)return s.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let c=o.utilizedImplicitRuntimeImports.get(a);c||(c=new Map,o.utilizedImplicitRuntimeImports.set(a,c));const l=n.createUniqueName(`_${e}`,112),d=n.createImportSpecifier(!1,n.createIdentifier(e),l);return xL(l,d),c.set(e,d),l}function d(n){return 2&n.transformFlags?function(n){switch(n.kind){case 281:return p(n,!1);case 282:return f(n,!1);case 285:return m(n,!1);case 291:return w(n);default:return EB(n,d,e)}}(n):n}function u(e){switch(e.kind){case 11:return function(e){const t=function(e){let n,t=0,r=-1;for(let i=0;i<e.length;i++){const a=e.charCodeAt(i);Cs(a)?(-1!==t&&-1!==r&&(n=C(n,e.substr(t,r-t+1))),t=-1):Ls(a)||(r=i,-1===t&&(t=i))}return-1!==t?C(n,e.substr(t)):n}(e.text);return void 0===t?void 0:n.createStringLiteral(t)}(e);case 291:return w(e);case 281:return p(e,!0);case 282:return f(e,!0);case 285:return m(e,!0);default:return Nt.failBadSyntaxKind(e)}}function _(e){return void 0===o.importSpecifier||function(e){let n=!1;for(const t of e.attributes.properties)if(yw(t))n=!0;else if(n&&hw(t)&&"key"===t.name.escapedText)return!0;return!1}(e)}function p(e,n){return(_(e.openingElement)?v:g)(e.openingElement,e.children,n,e)}function f(e,n){return(_(e)?v:g)(e,void 0,n,e)}function m(e,n){return(void 0===o.importSpecifier?E:b)(e.openingFragment,e.children,n,e)}function h(e){const t=av(e);if(1===S(t)&&!t[0].dotDotDotToken){const e=u(t[0]);return e&&n.createPropertyAssignment("children",e)}const r=ee(e,u);return S(r)?n.createPropertyAssignment("children",n.createArrayLiteralExpression(r)):void 0}function g(e,t,r,a){const o=I(e),s=t&&t.length?h(t):void 0,c=D(e.attributes.properties,(e=>!!e.name&&IC(e.name)&&"key"===e.name.escapedText)),l=c?j(e.attributes.properties,(e=>e!==c)):e.attributes.properties;return y(o,S(l)?T(l,s):n.createObjectLiteralExpression(s?[s]:i),c,t||i,r,a)}function y(e,t,i,o,l,d){var u;const _=av(o),p=S(_)>1||!!(null==(u=_[0])?void 0:u.dotDotDotToken),f=[e,t];if(i&&f.push(L(i.initializer)),5===r.jsx){const e=Oc(a);if(e&&Iw(e)){void 0===i&&f.push(n.createVoidZero()),f.push(p?n.createTrue():n.createFalse());const t=Ss(e,d.pos);f.push(n.createObjectLiteralExpression([n.createPropertyAssignment("fileName",s()),n.createPropertyAssignment("lineNumber",n.createNumericLiteral(t.line+1)),n.createPropertyAssignment("columnNumber",n.createNumericLiteral(t.character+1))])),f.push(n.createThis())}}const m=VN(n.createCallExpression(c(p),void 0,f),d);return l&&YR(m),m}function v(t,i,s,c){const d=I(t),_=t.attributes.properties,p=S(_)?T(_):n.createNull(),f=void 0===o.importSpecifier?CR(n,e.getEmitResolver().getJsxFactoryEntity(a),r.reactNamespace,t):l("createElement"),m=kR(n,f,d,p,ee(i,u),c);return s&&YR(m),m}function b(e,t,r,i){let a;if(t&&t.length){const e=function(e){const t=h(e);return t&&n.createObjectLiteralExpression([t])}(t);e&&(a=e)}return y(l("Fragment"),a||n.createObjectLiteralExpression([]),void 0,t,r,i)}function E(t,i,o,s){const c=IR(n,e.getEmitResolver().getJsxFactoryEntity(a),e.getEmitResolver().getJsxFragmentFactoryEntity(a),r.reactNamespace,ee(i,u),t,s);return o&&YR(c),c}function T(e,i){const a=HT(r);return a&&a>=5?n.createObjectLiteralExpression(function(e,t){const r=J(oe(e,yw,((e,t)=>W(e,(e=>{return t?(r=e,n.createSpreadAssignment(Nt.checkDefined(uB(r.expression,d,mu)))):A(e);var r})))));t&&r.push(t);return r}(e,i)):function(e,r){const i=J(oe(e,yw,((e,t)=>t?W(e,x):n.createObjectLiteralExpression(W(e,A)))));yw(e[0])&&i.unshift(n.createObjectLiteralExpression());r&&i.push(n.createObjectLiteralExpression([r]));return Be(i)||t().createAssignHelper(i)}(e,i)}function x(e){return Nt.checkDefined(uB(e.expression,d,mu))}function A(e){const t=function(e){const t=e.name,r=Uc(t);return/^[A-Za-z_]\w*$/.test(r)?t:n.createStringLiteral(r)}(e),r=L(e.initializer);return n.createPropertyAssignment(t,r)}function L(e){if(void 0===e)return n.createTrue();if(10===e.kind){const t=void 0!==e.singleQuote?e.singleQuote:!Vh(e,a);return VN(n.createStringLiteral(function(e){const n=k(e);return n===e?void 0:n}(e.text)||e.text,t),e)}return 291===e.kind?void 0===e.expression?n.createTrue():Nt.checkDefined(uB(e.expression,d,mu)):lw(e)?p(e,!1):dw(e)?f(e,!1):pw(e)?m(e,!1):Nt.failBadSyntaxKind(e)}function C(e,n){const t=k(n);return void 0===e?t:e+" "+t}function k(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,((e,n,t,r,i,a,o)=>{if(i)return Qs(parseInt(i,10));if(a)return Qs(parseInt(a,16));{const n=oV.get(o);return n?Qs(n):e}}))}function I(e){if(281===e.kind)return I(e.openingElement);{const t=e.tagName;return IC(t)&&mv(t.escapedText)?n.createStringLiteral(Uc(t)):NR(n,t)}}function w(e){const t=uB(e.expression,d,mu);return e.dotDotDotToken?n.createSpreadElement(t):t}}var lV=E({"src/compiler/transformers/jsx.ts"(){lq(),oV=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function dV(e){const{factory:n,hoistVariableDeclaration:t}=e;return qB(e,(function(n){if(n.isDeclarationFile)return n;return EB(n,r,e)}));function r(i){return 0===(512&i.transformFlags)?i:223===i.kind?function(i){switch(i.operatorToken.kind){case 67:return function(e){let i,a;const o=uB(e.left,r,mu),s=uB(e.right,r,mu);if(Pk(o)){const e=n.createTempVariable(t),r=n.createTempVariable(t);i=VN(n.createElementAccessExpression(VN(n.createAssignment(e,o.expression),o.expression),VN(n.createAssignment(r,o.argumentExpression),o.argumentExpression)),o),a=VN(n.createElementAccessExpression(e,r),o)}else if(Mk(o)){const e=n.createTempVariable(t);i=VN(n.createPropertyAccessExpression(VN(n.createAssignment(e,o.expression),o.expression),o.name),o),a=VN(n.createPropertyAccessExpression(e,o.name),o)}else i=o,a=o;return VN(n.createAssignment(i,VN(n.createGlobalMethodCall("Math","pow",[a,s]),e)),e)}(i);case 42:return function(e){const t=uB(e.left,r,mu),i=uB(e.right,r,mu);return VN(n.createGlobalMethodCall("Math","pow",[t,i]),e)}(i);default:return EB(i,r,e)}}(i):EB(i,r,e)}}var uV=E({"src/compiler/transformers/es2016.ts"(){lq()}});function _V(e,n){return{kind:e,expression:n}}function pV(e){const{factory:n,getEmitHelperFactory:t,startLexicalEnvironment:r,resumeLexicalEnvironment:a,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getCompilerOptions(),d=e.getEmitResolver(),u=e.onSubstituteNode,_=e.onEmitNode;let p,f,m,h,g,y;function v(e){h=Te(h,n.createVariableDeclaration(e))}return e.onEmitNode=function(e,n,t){if(1&y&&Id(n)){const r=b(32670,16&df(n)?81:65);return _(e,n,t),void E(r,0,0)}_(e,n,t)},e.onSubstituteNode=function(e,t){if(t=u(e,t),1===e)return function(e){switch(e.kind){case 79:return function(e){if(2&y&&!PR(e)){const t=d.getReferencedDeclarationWithCollidingName(e);if(t&&(!Fd(t)||!function(e,n){let t=Fc(n);if(!t||t===e||t.end<=e.pos||t.pos>=e.end)return!1;const r=Bf(e);for(;t;){if(t===r||t===e)return!1;if(Pd(t)&&t.parent===e)return!0;t=t.parent}return!1}(t,e)))return VN(n.getGeneratedNameForNode(Xc(t)),e)}return e}(e);case 108:return function(e){if(1&y&&16&m)return VN(n.createUniqueName("_this",48),e);return e}(e)}return e}(t);if(IC(t))return function(e){if(2&y&&!PR(e)){const t=Fc(e,IC);if(t&&function(e){switch(e.parent.kind){case 205:case 260:case 263:case 257:return e.parent.name===e&&d.isDeclarationWithCollidingName(e.parent)}return!1}(t))return VN(n.getGeneratedNameForNode(t),e)}return e}(t);return t},qB(e,(function(t){if(t.isDeclarationFile)return t;p=t,f=t.text;const i=function(e){const t=b(8064,64),i=[],a=[];r();const s=n.copyPrologue(e.statements,i,!1,S);Ae(a,_B(e.statements,S,Bu,s)),h&&a.push(n.createVariableStatement(void 0,n.createVariableDeclarationList(h)));return n.mergeLexicalEnvironment(i,o()),U(i,e),E(t,0,0),n.updateSourceFile(e,VN(n.createNodeArray(de(i,a)),e.statements))}(t);return dL(i,e.readEmitHelpers()),p=void 0,f=void 0,h=void 0,m=0,i}));function b(e,n){const t=m;return m=32767&(m&~e|n),t}function E(e,n,t){m=-32768&(m&~n|t)|e}function T(e){return 0!==(8192&m)&&250===e.kind&&!e.expression}function x(e){return 0!==(1024&e.transformFlags)||void 0!==g||8192&m&&function(e){return 4194304&e.transformFlags&&(AI(e)||gI(e)||LI(e)||CI(e)||VI(e)||bw(e)||Ew(e)||wI(e)||xw(e)||kI(e)||yu(e,!1)||pI(e))}(e)||yu(e,!1)&&be(e)||0!==(1&uf(e))}function S(e){return x(e)?k(e,!1):e}function A(e){return x(e)?k(e,!0):e}function L(e){if(x(e)){const n=Oc(e);if(YC(n)&&hb(n)){const n=b(32670,16449),t=k(e,!1);return E(n,98304,0),t}return k(e,!1)}return e}function C(e){return 106===e.kind?qe(!0):S(e)}function k(t,r){switch(t.kind){case 124:return;case 260:return function(e){const t=n.createVariableDeclaration(n.getLocalName(e,!0),void 0,void 0,R(e));FA(t,e);const r=[],i=n.createVariableStatement(void 0,n.createVariableDeclarationList([t]));if(FA(i,e),VN(i,e),YR(i),r.push(i),fb(e,1)){const t=fb(e,1024)?n.createExportDefault(n.getLocalName(e)):n.createExternalModuleExport(n.getLocalName(e));FA(t,i),r.push(t)}const a=df(e);0===(8388608&a)&&(r.push(n.createEndOfDeclarationMarker(e)),jA(i,8388608|a));return Ve(r)}(t);case 228:return function(e){return R(e)}(t);case 166:return function(e){return e.dotDotDotToken?void 0:Jd(e.name)?FA(VN(n.createParameterDeclaration(void 0,void 0,n.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?FA(VN(n.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(t);case 259:return function(t){const r=g;g=void 0;const i=b(32670,65),a=hB(t.parameters,S,e),o=$(t),s=32768&m?n.getLocalName(t):t.name;return E(i,98304,0),g=r,n.updateFunctionDeclaration(t,_B(t.modifiers,S,Ad),t.asteriskToken,s,void 0,a,void 0,o)}(t);case 216:return function(t){16384&t.transformFlags&&!(16384&m)&&(m|=65536);const r=g;g=void 0;const i=b(15232,66),a=n.createFunctionExpression(void 0,void 0,void 0,void 0,hB(t.parameters,S,e),void 0,$(t));return VN(a,t),FA(a,t),jA(a,16),E(i,0,0),g=r,a}(t);case 215:return function(t){const r=524288&df(t)?b(32662,69):b(32670,65),i=g;g=void 0;const a=hB(t.parameters,S,e),o=$(t),s=32768&m?n.getLocalName(t):t.name;return E(r,98304,0),g=i,n.updateFunctionExpression(t,void 0,t.asteriskToken,s,void 0,a,void 0,o)}(t);case 257:return ee(t);case 79:return w(t);case 258:return function(t){if(3&t.flags||524288&t.transformFlags){3&t.flags&&Je();const e=_B(t.declarations,1&t.flags?Z:ee,NI),r=n.createVariableDeclarationList(e);return FA(r,t),VN(r,t),ZA(r,t),524288&t.transformFlags&&(Jd(t.declarations[0].name)||Jd(Ge(t.declarations).name))&&qA(r,function(e){let n=-1,t=-1;for(const r of e)n=-1===n?r.pos:-1===r.pos?n:Math.min(n,r.pos),t=Math.max(t,r.end);return pE(n,t)}(e)),r}return EB(t,S,e)}(t);case 252:return function(n){if(void 0!==g){const t=g.allowedNonLabeledJumps;g.allowedNonLabeledJumps|=2;const r=EB(n,S,e);return g.allowedNonLabeledJumps=t,r}return EB(n,S,e)}(t);case 266:return function(n){const t=b(7104,0),r=EB(n,S,e);return E(t,0,0),r}(t);case 238:return function(n,t){if(t)return EB(n,S,e);const r=256&m?b(7104,512):b(6976,128),i=EB(n,S,e);return E(r,0,0),i}(t,!1);case 249:case 248:return function(t){if(g){const e=249===t.kind?2:4;if(!(t.label&&g.labels&&g.labels.get(Uc(t.label))||!t.label&&g.allowedNonLabeledJumps&e)){let e;const r=t.label;r?249===t.kind?(e=`break-${r.escapedText}`,Ie(g,!0,Uc(r),e)):(e=`continue-${r.escapedText}`,Ie(g,!1,Uc(r),e)):249===t.kind?(g.nonLocalJumps|=2,e="break"):(g.nonLocalJumps|=4,e="continue");let i=n.createStringLiteral(e);if(g.loopOutParameters.length){const e=g.loopOutParameters;let t;for(let r=0;r<e.length;r++){const i=Ce(e[r],1);t=0===r?i:n.createBinaryExpression(t,27,i)}i=n.createBinaryExpression(t,27,i)}return n.createReturnStatement(i)}}return EB(t,S,e)}(t);case 253:return function(e){g&&!g.labels&&(g.labels=new Map);const t=Pm(e,g&&ne);return yu(t,!1)?function(e,n){switch(e.kind){case 243:case 244:return ie(e,n);case 245:return ae(e,n);case 246:return se(e,n);case 247:return le(e,n)}}(t,e):n.restoreEnclosingLabel(Nt.checkDefined(uB(t,S,Bu,n.liftToBlock)),e,g&&te)}(t);case 243:case 244:return ie(t,void 0);case 245:return ae(t,void 0);case 246:return se(t,void 0);case 247:return le(t,void 0);case 241:case 219:return function(n){return EB(n,A,e)}(t);case 207:return function(t){const r=t.properties;let i=-1,a=!1;for(let e=0;e<r.length;e++){const n=r[e];if(1048576&n.transformFlags&&4&m||(a=164===Nt.checkDefined(n.name).kind)){i=e;break}}if(i<0)return EB(t,S,e);const o=n.createTempVariable(s),c=[],l=n.createAssignment(o,jA(n.createObjectLiteralExpression(_B(r,S,Wd,0,i),t.multiLine),a?131072:0));t.multiLine&&YR(l);return c.push(l),function(e,n,t,r){const i=n.properties,a=i.length;for(let o=r;o<a;o++){const r=i[o];switch(r.kind){case 174:case 175:const i=$v(n.properties,r);r===i.firstAccessor&&e.push(X(t,i,n,!!n.multiLine));break;case 171:e.push(Pe(r,t,n,n.multiLine));break;case 299:e.push(Ne(r,t,n.multiLine));break;case 300:e.push(Oe(r,t,n.multiLine));break;default:Nt.failBadSyntaxKind(n)}}}(c,t,o,i),c.push(t.multiLine?YR(CS(VN(n.cloneNode(o),o),o.parent)):o),n.inlineExpressions(c)}(t);case 295:return function(t){const r=b(7104,0);let i;if(Nt.assert(!!t.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),Jd(t.variableDeclaration.name)){const r=n.createTempVariable(void 0),a=n.createVariableDeclaration(r);VN(a,t.variableDeclaration);const o=AU(t.variableDeclaration,S,e,0,r),s=n.createVariableDeclarationList(o);VN(s,t.variableDeclaration);const c=n.createVariableStatement(void 0,s);i=n.updateCatchClause(t,a,function(e,t){const r=_B(e.statements,S,Bu);return n.updateBlock(e,[t,...r])}(t.block,c))}else i=EB(t,S,e);return E(r,0,0),i}(t);case 300:return function(e){return VN(n.createPropertyAssignment(e.name,w(n.cloneNode(e.name))),e)}(t);case 164:case 226:return function(n){return EB(n,S,e)}(t);case 206:return function(n){if(ce(n.elements,eI))return je(n.elements,!1,!!n.multiLine,!!n.elements.hasTrailingComma);return EB(n,S,e)}(t);case 210:return function(e){if(1&uf(e))return function(e){const t=Tn(Tn(qR(e.expression),Hk).body,pI),r=e=>fI(e)&&!!Me(e.declarationList.declarations).initializer,i=g;g=void 0;const a=_B(t.statements,L,Bu);g=i;const o=j(a,r),s=j(a,(e=>!r(e))),l=Tn(Me(o),fI).declarationList.declarations[0],d=qR(l.initializer);let u=En(d,Hb);!u&&Yk(d)&&27===d.operatorToken.kind&&(u=En(d.left,Hb));const _=Tn(u?qR(u.right):d,Fk),p=Tn(qR(_.expression),jk),f=p.body.statements;let m=0,h=-1;const y=[];if(u){const e=En(f[m],hI);e&&(y.push(e),m++),y.push(f[m]),m++,y.push(n.createExpressionStatement(n.createAssignment(u.left,Tn(l.name,IC))))}for(;!AI(c(f,h));)h--;Ae(y,f,m,h),h<-1&&Ae(y,f,h+1);const v=En(c(f,h),AI);for(const n of s)AI(n)&&(null==v?void 0:v.expression)&&!IC(v.expression)?y.push(v):y.push(n);return Ae(y,o,1),n.restoreOuterExpressions(e.expression,n.restoreOuterExpressions(l.initializer,n.restoreOuterExpressions(u&&u.right,n.updateCallExpression(_,n.restoreOuterExpressions(_.expression,n.updateFunctionExpression(p,void 0,void 0,void 0,void 0,p.parameters,void 0,n.updateBlock(p.body,y))),void 0,_.arguments))))}(e);const t=qR(e.expression);if(106===t.kind||ah(t)||ce(e.arguments,eI))return Ue(e,!0);return n.updateCallExpression(e,Nt.checkDefined(uB(e.expression,C,mu)),void 0,_B(e.arguments,S,mu))}(t);case 211:return function(t){if(ce(t.arguments,eI)){const{target:e,thisArg:r}=n.createCallBinding(n.createPropertyAccessExpression(t.expression,"bind"),s);return n.createNewExpression(n.createFunctionApplyCall(Nt.checkDefined(uB(e,S,mu)),r,je(n.createNodeArray([n.createVoidZero(),...t.arguments]),!0,!1,!1)),void 0,[])}return EB(t,S,e)}(t);case 214:return function(n,t){return EB(n,t?A:S,e)}(t,r);case 223:return Q(t,r);case 357:return function(t,r){if(r)return EB(t,A,e);let i;for(let e=0;e<t.elements.length;e++){const n=t.elements[e],r=uB(n,e<t.elements.length-1?A:S,mu);(i||r!==n)&&(i||(i=t.elements.slice(0,e)),Nt.assert(r),i.push(r))}const a=i?VN(n.createNodeArray(i),t.elements):t.elements;return n.updateCommaListExpression(t,a)}(t,r);case 14:case 15:case 16:case 17:return function(e){return VN(n.createStringLiteral(e.text),e)}(t);case 10:return function(e){if(e.hasExtendedUnicodeEscape)return VN(n.createStringLiteral(e.text),e);return e}(t);case 8:return function(e){if(384&e.numericLiteralFlags)return VN(n.createNumericLiteral(e.text),e);return e}(t);case 212:return function(n){return DU(e,n,S,p,v,1)}(t);case 225:return function(e){let t=n.createStringLiteral(e.head.text);for(const r of e.templateSpans){const e=[Nt.checkDefined(uB(r.expression,S,mu))];r.literal.text.length>0&&e.push(n.createStringLiteral(r.literal.text)),t=n.createCallExpression(n.createPropertyAccessExpression(t,"concat"),void 0,e)}return VN(t,e)}(t);case 227:return function(e){return uB(e.expression,S,mu)}(t);case 106:return qe(!1);case 108:return function(e){2&m&&!(16384&m)&&(m|=65536);if(g)return 2&m?(g.containsLexicalThis=!0,e):g.thisName||(g.thisName=n.createUniqueName("this"));return e}(t);case 233:return function(e){if(103===e.keywordToken&&"target"===e.name.escapedText)return m|=32768,n.createUniqueName("_newTarget",48);return e}(t);case 171:return function(e){Nt.assert(!WC(e.name));const t=Y(e,mE(e,-1),void 0,void 0);return jA(t,1024|df(t)),VN(n.createPropertyAssignment(e.name,t),e)}(t);case 174:case 175:return function(t){Nt.assert(!WC(t.name));const r=g;g=void 0;const i=b(32670,65);let a;const o=hB(t.parameters,S,e),s=$(t);a=174===t.kind?n.updateGetAccessorDeclaration(t,t.modifiers,t.name,o,t.type,s):n.updateSetAccessorDeclaration(t,t.modifiers,t.name,o,s);return E(i,98304,0),g=r,a}(t);case 240:return function(t){const r=b(0,fb(t,1)?32:0);let i;if(g&&0===(3&t.declarationList.flags)&&!function(e){return 1===e.declarationList.declarations.length&&!!e.declarationList.declarations[0].initializer&&!!(1&uf(e.declarationList.declarations[0].initializer))}(t)){let r;for(const i of t.declarationList.declarations)if(xe(g,i),i.initializer){let t;Jd(i.name)?t=TU(i,S,e,0):(t=n.createBinaryExpression(i.name,63,Nt.checkDefined(uB(i.initializer,S,mu))),VN(t,i)),r=Te(r,t)}i=r?VN(n.createExpressionStatement(n.inlineExpressions(r)),t):void 0}else i=EB(t,S,e);return E(r,0,0),i}(t);case 250:return function(t){if(g)return g.nonLocalJumps|=8,T(t)&&(t=I(t)),n.createReturnStatement(n.createObjectLiteralExpression([n.createPropertyAssignment(n.createIdentifier("value"),t.expression?Nt.checkDefined(uB(t.expression,S,mu)):n.createVoidZero())]));if(T(t))return I(t);return EB(t,S,e)}(t);default:return EB(t,S,e)}}function I(e){return FA(n.createReturnStatement(n.createUniqueName("_this",48)),e)}function w(e){return g&&d.isArgumentsLocalBinding(e)?g.argumentsName||(g.argumentsName=n.createUniqueName("arguments")):128&e.flags?FA(VN(n.createIdentifier(Bc(e.escapedText)),e),e):e}function R(s){s.name&&Je();const c=fy(s),l=n.createFunctionExpression(void 0,void 0,void 0,void 0,c?[n.createParameterDeclaration(void 0,void 0,n.createUniqueName("_super",48))]:[],void 0,function(s,c){const l=[],d=n.getInternalName(s),u=Ly(d)?n.getGeneratedNameForNode(d):d;r(),function(e,r,i){i&&e.push(VN(n.createExpressionStatement(t().createExtendsHelper(n.getInternalName(r))),i))}(l,s,c),function(t,r,s,c){const l=g;g=void 0;const d=b(32662,73),u=Hv(r),_=function(e,n){if(!e||!n)return!1;if(ce(e.parameters))return!1;const t=De(e.body.statements);if(!t||!$y(t)||241!==t.kind)return!1;const r=t.expression;if(!$y(r)||210!==r.kind)return!1;const i=r.expression;if(!$y(i)||106!==i.kind)return!1;const a=Be(r.arguments);if(!a||!$y(a)||227!==a.kind)return!1;const o=a.expression;return IC(o)&&"arguments"===o.escapedText}(u,void 0!==c),p=n.createFunctionDeclaration(void 0,void 0,s,void 0,function(n,t){return hB(n&&!t?n.parameters:void 0,S,e)||[]}(u,_),void 0,function(e,t,r,s){const c=!!r&&104!==qR(r.expression).kind;if(!e)return function(e,t){const r=[];a(),n.mergeLexicalEnvironment(r,o()),t&&r.push(n.createReturnStatement(O()));const i=n.createNodeArray(r);VN(i,e.members);const s=n.createBlock(i,!0);return VN(s,e),jA(s,3072),s}(t,c);const l=[],d=[];a();const u=Ct(e.body.statements,hm),{superCall:_,superStatementIndex:p}=function(e,n){for(let t=n.length;t<e.length;t+=1){const n=iU(e[t]);if(n)return{superCall:n,superStatementIndex:t}}return{superStatementIndex:-1}}(e.body.statements,u),f=-1===p?u.length:p+1;let h,g=f;s||(g=n.copyStandardPrologue(e.body.statements,l,g,!1));s||(g=n.copyCustomPrologue(e.body.statements,d,g,S,void 0));s?h=O():_&&(h=function(e){return Ue(e,!1)}(_));h&&(m|=8192);if(P(l,e),B(l,e,s),Ae(d,_B(e.body.statements,S,Bu,g)),n.mergeLexicalEnvironment(l,o()),H(l,e,!1),c||h)if(!h||f!==e.body.statements.length||16384&e.body.transformFlags)p<=u.length?V(d,e,h||D()):(V(l,e,D()),h&&function(e,t){Xe();const r=n.createExpressionStatement(n.createBinaryExpression(n.createThis(),63,t));$p(e,r),ZA(r,Oc(t).parent)}(d,h)),N(e.body)||d.push(n.createReturnStatement(n.createUniqueName("_this",48)));else{const e=Tn(Tn(h,Yk).left,Fk),t=n.createReturnStatement(h);ZA(t,QA(e)),jA(e,3072),d.push(t)}else U(l,e);const y=n.createBlock(VN(n.createNodeArray([...u,...l,...p<=u.length?i:_B(e.body.statements,S,Bu,u.length,p-u.length),...d]),e.body.statements),!0);return VN(y,e.body),y}(u,r,c,_));VN(p,u||r),c&&jA(p,16);t.push(p),E(d,98304,0),g=l}(l,s,u,c),function(e,n){for(const t of n.members)switch(t.kind){case 237:e.push(K(t));break;case 171:e.push(z(Ye(n,t),t,n));break;case 174:case 175:const r=$v(n.members,t);t===r.firstAccessor&&e.push(q(Ye(n,t),r,n));break;case 173:case 172:break;default:Nt.failBadSyntaxKind(t,p&&p.fileName)}}(l,s);const _=vE(Ns(f,s.members.end),19),h=n.createPartiallyEmittedExpression(u);xS(h,_.end),jA(h,3072);const y=n.createReturnStatement(h);TS(y,_.pos),jA(y,3840),l.push(y),Jp(l,o());const v=n.createBlock(VN(n.createNodeArray(l),s.members),!0);return jA(v,3072),v}(s,c));jA(l,131072&df(s)|1048576);const d=n.createPartiallyEmittedExpression(l);xS(d,s.end),jA(d,3072);const u=n.createPartiallyEmittedExpression(d);xS(u,Ns(f,s.pos)),jA(u,3072);const _=n.createParenthesizedExpression(n.createCallExpression(u,void 0,c?[Nt.checkDefined(uB(c.expression,S,mu))]:[]));return tL(_,3,"* @class "),_}function N(e){if(250===e.kind)return!0;if(242===e.kind){const n=e;if(n.elseStatement)return N(n.thenStatement)&&N(n.elseStatement)}else if(238===e.kind){const n=Fe(e.statements);if(n&&N(n))return!0}return!1}function D(){return jA(n.createThis(),8)}function O(){return n.createLogicalOr(n.createLogicalAnd(n.createStrictInequality(n.createUniqueName("_super",48),n.createNull()),n.createFunctionApplyCall(n.createUniqueName("_super",48),D(),n.createIdentifier("arguments"))),D())}function M(e){return void 0!==e.initializer||Jd(e.name)}function P(e,n){if(!ce(n.parameters,M))return!1;let t=!1;for(const r of n.parameters){const{name:n,initializer:i,dotDotDotToken:a}=r;a||(Jd(n)?t=F(e,r,n,i)||t:i&&(G(e,r,n,i),t=!0))}return t}function F(t,r,i,a){return i.elements.length>0?($p(t,jA(n.createVariableStatement(void 0,n.createVariableDeclarationList(AU(r,S,e,0,n.getGeneratedNameForNode(r)))),2097152)),!0):!!a&&($p(t,jA(n.createExpressionStatement(n.createAssignment(n.getGeneratedNameForNode(r),Nt.checkDefined(uB(a,S,mu)))),2097152)),!0)}function G(e,t,r,i){i=Nt.checkDefined(uB(i,S,mu));const a=n.createIfStatement(n.createTypeCheck(n.cloneNode(r),"undefined"),jA(VN(n.createBlock([n.createExpressionStatement(jA(VN(n.createAssignment(jA(CS(VN(n.cloneNode(r),r),r.parent),96),jA(i,3168|df(i))),t),3072))]),t),3905));YR(a),VN(a,t),jA(a,2101056),$p(e,a)}function B(t,r,i){const a=[],o=Fe(r.parameters);if(!function(e,n){return!(!e||!e.dotDotDotToken||n)}(o,i))return!1;const s=79===o.name.kind?CS(VN(n.cloneNode(o.name),o.name),o.name.parent):n.createTempVariable(void 0);jA(s,96);const c=79===o.name.kind?n.cloneNode(o.name):s,l=r.parameters.length-1,d=n.createLoopVariable();a.push(jA(VN(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(s,void 0,void 0,n.createArrayLiteralExpression([]))])),o),2097152));const u=n.createForStatement(VN(n.createVariableDeclarationList([n.createVariableDeclaration(d,void 0,void 0,n.createNumericLiteral(l))]),o),VN(n.createLessThan(d,n.createPropertyAccessExpression(n.createIdentifier("arguments"),"length")),o),VN(n.createPostfixIncrement(d),o),n.createBlock([YR(VN(n.createExpressionStatement(n.createAssignment(n.createElementAccessExpression(c,0===l?d:n.createSubtract(d,n.createNumericLiteral(l))),n.createElementAccessExpression(n.createIdentifier("arguments"),d))),o))]));return jA(u,2097152),YR(u),a.push(u),79!==o.name.kind&&a.push(jA(VN(n.createVariableStatement(void 0,n.createVariableDeclarationList(AU(o,S,e,0,c))),o),2097152)),Xp(t,a),!0}function U(e,t){return!!(65536&m&&216!==t.kind)&&(V(e,t,n.createThis()),!0)}function V(e,t,r){Xe();const i=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_this",48),void 0,void 0,r)]));jA(i,2100224),qA(i,t),$p(e,i)}function H(e,t,r){if(32768&m){let i;switch(t.kind){case 216:return e;case 171:case 174:case 175:i=n.createVoidZero();break;case 173:i=n.createPropertyAccessExpression(jA(n.createThis(),8),"constructor");break;case 259:case 215:i=n.createConditionalExpression(n.createLogicalAnd(jA(n.createThis(),8),n.createBinaryExpression(jA(n.createThis(),8),102,n.getLocalName(t))),void 0,n.createPropertyAccessExpression(jA(n.createThis(),8),"constructor"),void 0,n.createVoidZero());break;default:return Nt.failBadSyntaxKind(t)}const a=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_newTarget",48),void 0,void 0,i)]));jA(a,2100224),r&&(e=e.slice()),$p(e,a)}return e}function K(e){return VN(n.createEmptyStatement(),e)}function z(t,r,i){const a=QA(r),o=zA(r),s=Y(r,r,void 0,i),c=uB(r.name,S,Cd);let l;if(Nt.assert(c),!wC(c)&&ux(e.getCompilerOptions())){const e=WC(c)?c.expression:IC(c)?n.createStringLiteral(Bc(c.escapedText)):c;l=n.createObjectDefinePropertyCall(t,e,n.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{const e=SR(n,t,c,r.name);l=n.createAssignment(e,s)}jA(s,3072),qA(s,o);const d=VN(n.createExpressionStatement(l),r);return FA(d,r),ZA(d,a),jA(d,96),d}function q(e,t,r){const i=n.createExpressionStatement(X(e,t,r,!1));return jA(i,3072),qA(i,zA(t.firstAccessor)),i}function X(e,{firstAccessor:t,getAccessor:r,setAccessor:i},a,o){const s=CS(VN(n.cloneNode(e),e),e.parent);jA(s,3136),qA(s,t.name);const c=uB(t.name,S,Cd);if(Nt.assert(c),wC(c))return Nt.failBadSyntaxKind(c,"Encountered unhandled private identifier while transforming ES2015.");const l=DR(n,c);jA(l,3104),qA(l,t.name);const d=[];if(r){const e=Y(r,void 0,void 0,a);qA(e,zA(r)),jA(e,1024);const t=n.createPropertyAssignment("get",e);ZA(t,QA(r)),d.push(t)}if(i){const e=Y(i,void 0,void 0,a);qA(e,zA(i)),jA(e,1024);const t=n.createPropertyAssignment("set",e);ZA(t,QA(i)),d.push(t)}d.push(n.createPropertyAssignment("enumerable",r||i?n.createFalse():n.createTrue()),n.createPropertyAssignment("configurable",n.createTrue()));const u=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[s,l,n.createObjectLiteralExpression(d,!0)]);return o&&YR(u),u}function Y(t,r,i,a){const o=g;g=void 0;const s=a&&Fd(a)&&!mb(t)?b(32670,73):b(32670,65),c=hB(t.parameters,S,e),l=$(t);return 32768&m&&!i&&(259===t.kind||215===t.kind)&&(i=n.getGeneratedNameForNode(t)),E(s,98304,0),g=o,FA(VN(n.createFunctionExpression(void 0,t.asteriskToken,i,void 0,c,void 0,l),r),t)}function $(e){let t,r,i=!1,s=!1;const c=[],l=[],d=e.body;let u;if(a(),pI(d)&&(u=n.copyStandardPrologue(d.statements,c,0,!1),u=n.copyCustomPrologue(d.statements,l,u,S,ym),u=n.copyCustomPrologue(d.statements,l,u,S,bm)),i=P(l,e)||i,i=B(l,e,!1)||i,pI(d))u=n.copyCustomPrologue(d.statements,l,u,S),t=d.statements,Ae(l,_B(d.statements,S,Bu,u)),!i&&d.multiLine&&(i=!0);else{Nt.assert(216===e.kind),t=fE(d,-1);const a=e.equalsGreaterThanToken;$y(a)||$y(d)||(SE(a,d,p)?s=!0:i=!0);const o=uB(d,S,mu),c=n.createReturnStatement(o);VN(c,d),oL(c,d),jA(c,2880),l.push(c),r=d}if(n.mergeLexicalEnvironment(c,o()),H(c,e,!1),U(c,e),ce(c)&&(i=!0),l.unshift(...c),pI(d)&&ve(l,d.statements))return d;const _=n.createBlock(VN(n.createNodeArray(l),t),i);return VN(_,e.body),!i&&s&&jA(_,1),r&&XA(_,19,r),FA(_,e.body),_}function Q(t,r){return Wb(t)?TU(t,S,e,0,!r):27===t.operatorToken.kind?n.updateBinaryExpression(t,Nt.checkDefined(uB(t.left,A,mu)),t.operatorToken,Nt.checkDefined(uB(t.right,r?A:S,mu))):EB(t,S,e)}function Z(t){return Jd(t.name)?ee(t):!t.initializer&&function(e){const n=d.getNodeCheckFlags(e),t=16384&n,r=32768&n;return!(0!==(64&m)||t&&r&&0!==(512&m))&&0===(4096&m)&&(!d.isDeclarationWithCollidingName(e)||r&&!t&&0===(6144&m))}(t)?n.updateVariableDeclaration(t,t.name,void 0,void 0,n.createVoidZero()):EB(t,S,e)}function ee(n){const t=b(32,0);let r;return r=Jd(n.name)?AU(n,S,e,0,void 0,0!==(32&t)):EB(n,S,e),E(t,0,0),r}function ne(e){g.labels.set(Uc(e.label),!0)}function te(e){g.labels.set(Uc(e.label),!1)}function re(t,i,a,s,c){const l=b(t,i),d=function(t,i,a,s){if(!be(t)){let r;g&&(r=g.allowedNonLabeledJumps,g.allowedNonLabeledJumps=6);const o=s?s(t,i,void 0,a):n.restoreEnclosingLabel(bI(t)?function(e){return n.updateForStatement(e,uB(e.initializer,A,Lu),uB(e.condition,S,mu),uB(e.incrementor,A,mu),Nt.checkDefined(uB(e.statement,S,Bu,n.liftToBlock)))}(t):EB(t,S,e),i,g&&te);return g&&(g.allowedNonLabeledJumps=r),o}const c=function(e){let n;switch(e.kind){case 245:case 246:case 247:const t=e.initializer;t&&258===t.kind&&(n=t)}const t=[],r=[];if(n&&3&Nc(n)){const i=he(e)||ge(e)||ye(e);for(const a of n.declarations)Re(e,a,t,r,i)}const i={loopParameters:t,loopOutParameters:r};g&&(g.argumentsName&&(i.argumentsName=g.argumentsName),g.thisName&&(i.thisName=g.thisName),g.hoistedLocalVariables&&(i.hoistedLocalVariables=g.hoistedLocalVariables));return i}(t),l=[],d=g;g=c;const u=he(t)?function(e,t){const r=n.createUniqueName("_loop_init"),i=0!==(1048576&e.initializer.transformFlags);let a=0;t.containsLexicalThis&&(a|=16);i&&4&m&&(a|=524288);const o=[];o.push(n.createVariableStatement(void 0,e.initializer)),ke(t.loopOutParameters,2,1,o);const s=n.createVariableStatement(void 0,jA(n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,jA(n.createFunctionExpression(void 0,i?n.createToken(41):void 0,void 0,void 0,void 0,void 0,Nt.checkDefined(uB(n.createBlock(o,!0),S,pI))),a))]),4194304)),c=n.createVariableDeclarationList(W(t.loopOutParameters,Le));return{functionName:r,containsYield:i,functionDeclaration:s,part:c}}(t,c):void 0,_=Ee(t)?function(e,t,i){const a=n.createUniqueName("_loop");r();const s=uB(e.statement,S,Bu,n.liftToBlock),c=o(),l=[];(ge(e)||ye(e))&&(t.conditionVariable=n.createUniqueName("inc"),e.incrementor?l.push(n.createIfStatement(t.conditionVariable,n.createExpressionStatement(Nt.checkDefined(uB(e.incrementor,S,mu))),n.createExpressionStatement(n.createAssignment(t.conditionVariable,n.createTrue())))):l.push(n.createIfStatement(n.createLogicalNot(t.conditionVariable),n.createExpressionStatement(n.createAssignment(t.conditionVariable,n.createTrue())))),ge(e)&&l.push(n.createIfStatement(n.createPrefixUnaryExpression(53,Nt.checkDefined(uB(e.condition,S,mu))),Nt.checkDefined(uB(n.createBreakStatement(),S,Bu)))));Nt.assert(s),pI(s)?Ae(l,s.statements):l.push(s);ke(t.loopOutParameters,1,1,l),Jp(l,c);const d=n.createBlock(l,!0);pI(s)&&FA(d,s);const u=0!==(1048576&e.statement.transformFlags);let _=1048576;t.containsLexicalThis&&(_|=16);u&&0!==(4&m)&&(_|=524288);const p=n.createVariableStatement(void 0,jA(n.createVariableDeclarationList([n.createVariableDeclaration(a,void 0,void 0,jA(n.createFunctionExpression(void 0,u?n.createToken(41):void 0,void 0,void 0,t.loopParameters,void 0,d),_))]),4194304)),f=function(e,t,r,i){const a=[],o=!(-5&t.nonLocalJumps)&&!t.labeledNonLocalBreaks&&!t.labeledNonLocalContinues,s=n.createCallExpression(e,void 0,W(t.loopParameters,(e=>e.name))),c=i?n.createYieldExpression(n.createToken(41),jA(s,16777216)):s;if(o)a.push(n.createExpressionStatement(c)),ke(t.loopOutParameters,1,0,a);else{const e=n.createUniqueName("state"),i=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(e,void 0,void 0,c)]));if(a.push(i),ke(t.loopOutParameters,1,0,a),8&t.nonLocalJumps){let t;r?(r.nonLocalJumps|=8,t=n.createReturnStatement(e)):t=n.createReturnStatement(n.createPropertyAccessExpression(e,"value")),a.push(n.createIfStatement(n.createTypeCheck(e,"object"),t))}if(2&t.nonLocalJumps&&a.push(n.createIfStatement(n.createStrictEquality(e,n.createStringLiteral("break")),n.createBreakStatement())),t.labeledNonLocalBreaks||t.labeledNonLocalContinues){const i=[];we(t.labeledNonLocalBreaks,!0,e,r,i),we(t.labeledNonLocalContinues,!1,e,r,i),a.push(n.createSwitchStatement(e,n.createCaseBlock(i)))}}return a}(a,t,i,u);return{functionName:a,containsYield:u,functionDeclaration:p,part:f}}(t,c,d):void 0;g=d,u&&l.push(u.functionDeclaration);_&&l.push(_.functionDeclaration);(function(e,t,r){let i;t.argumentsName&&(r?r.argumentsName=t.argumentsName:(i||(i=[])).push(n.createVariableDeclaration(t.argumentsName,void 0,void 0,n.createIdentifier("arguments"))));t.thisName&&(r?r.thisName=t.thisName:(i||(i=[])).push(n.createVariableDeclaration(t.thisName,void 0,void 0,n.createIdentifier("this"))));if(t.hoistedLocalVariables)if(r)r.hoistedLocalVariables=t.hoistedLocalVariables;else{i||(i=[]);for(const e of t.hoistedLocalVariables)i.push(n.createVariableDeclaration(e))}if(t.loopOutParameters.length){i||(i=[]);for(const e of t.loopOutParameters)i.push(n.createVariableDeclaration(e.outParamName))}t.conditionVariable&&(i||(i=[]),i.push(n.createVariableDeclaration(t.conditionVariable,void 0,void 0,n.createFalse())));i&&e.push(n.createVariableStatement(void 0,n.createVariableDeclarationList(i)))})(l,c,d),u&&l.push(function(e,t){const r=n.createCallExpression(e,void 0,[]),i=t?n.createYieldExpression(n.createToken(41),jA(r,16777216)):r;return n.createExpressionStatement(i)}(u.functionName,u.containsYield));let p;if(_)if(s)p=s(t,i,_.part,a);else{const e=Se(t,u,n.createBlock(_.part,!0));p=n.restoreEnclosingLabel(e,i,g&&te)}else{const e=Se(t,u,Nt.checkDefined(uB(t.statement,S,Bu,n.liftToBlock)));p=n.restoreEnclosingLabel(e,i,g&&te)}return l.push(p),l}(a,s,l,c);return E(l,0,0),d}function ie(e,n){return re(0,1280,e,n)}function ae(e,n){return re(5056,3328,e,n)}function se(e,n){return re(3008,5376,e,n)}function le(e,n){return re(3008,5376,e,n,l.downlevelIteration?fe:pe)}function ue(t,r,i){const a=[],o=t.initializer;if(DI(o)){3&t.initializer.flags&&Je();const i=De(o.declarations);if(i&&Jd(i.name)){const o=AU(i,S,e,0,r),s=VN(n.createVariableDeclarationList(o),t.initializer);FA(s,t.initializer),qA(s,pE(o[0].pos,Ge(o).end)),a.push(n.createVariableStatement(void 0,s))}else a.push(VN(n.createVariableStatement(void 0,FA(VN(n.createVariableDeclarationList([n.createVariableDeclaration(i?i.name:n.createTempVariable(void 0),void 0,void 0,r)]),mE(o,-1)),o)),fE(o,-1)))}else{const e=n.createAssignment(o,r);Wb(e)?a.push(n.createExpressionStatement(Q(e,!0))):(xS(e,o.end),a.push(VN(n.createExpressionStatement(Nt.checkDefined(uB(e,S,mu))),fE(o,-1))))}if(i)return _e(Ae(a,i));{const e=uB(t.statement,S,Bu,n.liftToBlock);return Nt.assert(e),pI(e)?n.updateBlock(e,VN(n.createNodeArray(de(a,e.statements)),e.statements)):(a.push(e),_e(a))}}function _e(e){return jA(n.createBlock(n.createNodeArray(e),!0),864)}function pe(e,t,r){const i=uB(e.expression,S,mu);Nt.assert(i);const a=n.createLoopVariable(),o=IC(i)?n.getGeneratedNameForNode(i):n.createTempVariable(void 0);jA(i,96|df(i));const s=VN(n.createForStatement(jA(VN(n.createVariableDeclarationList([VN(n.createVariableDeclaration(a,void 0,void 0,n.createNumericLiteral(0)),mE(e.expression,-1)),VN(n.createVariableDeclaration(o,void 0,void 0,i),e.expression)]),e.expression),4194304),VN(n.createLessThan(a,n.createPropertyAccessExpression(o,"length")),e.expression),VN(n.createPostfixIncrement(a),e.expression),ue(e,n.createElementAccessExpression(o,a),r)),e);return jA(s,512),VN(s,e),n.restoreEnclosingLabel(s,t,g&&te)}function fe(e,r,i,a){const o=uB(e.expression,S,mu);Nt.assert(o);const c=IC(o)?n.getGeneratedNameForNode(o):n.createTempVariable(void 0),l=IC(o)?n.getGeneratedNameForNode(c):n.createTempVariable(void 0),d=n.createUniqueName("e"),u=n.getGeneratedNameForNode(d),_=n.createTempVariable(void 0),p=VN(t().createValuesHelper(o),e.expression),f=n.createCallExpression(n.createPropertyAccessExpression(c,"next"),void 0,[]);s(d),s(_);const m=1024&a?n.inlineExpressions([n.createAssignment(d,n.createVoidZero()),p]):p,h=jA(VN(n.createForStatement(jA(VN(n.createVariableDeclarationList([VN(n.createVariableDeclaration(c,void 0,void 0,m),e.expression),n.createVariableDeclaration(l,void 0,void 0,f)]),e.expression),4194304),n.createLogicalNot(n.createPropertyAccessExpression(l,"done")),n.createAssignment(l,f),ue(e,n.createPropertyAccessExpression(l,"value"),i)),e),512);return n.createTryStatement(n.createBlock([n.restoreEnclosingLabel(h,r,g&&te)]),n.createCatchClause(n.createVariableDeclaration(u),jA(n.createBlock([n.createExpressionStatement(n.createAssignment(d,n.createObjectLiteralExpression([n.createPropertyAssignment("error",u)])))]),1)),n.createBlock([n.createTryStatement(n.createBlock([jA(n.createIfStatement(n.createLogicalAnd(n.createLogicalAnd(l,n.createLogicalNot(n.createPropertyAccessExpression(l,"done"))),n.createAssignment(_,n.createPropertyAccessExpression(c,"return"))),n.createExpressionStatement(n.createFunctionCallCall(_,c,[]))),1)]),void 0,jA(n.createBlock([jA(n.createIfStatement(d,n.createThrowStatement(n.createPropertyAccessExpression(d,"error"))),1)]),1))]))}function me(e){return 0!==(8192&d.getNodeCheckFlags(e))}function he(e){return bI(e)&&!!e.initializer&&me(e.initializer)}function ge(e){return bI(e)&&!!e.condition&&me(e.condition)}function ye(e){return bI(e)&&!!e.incrementor&&me(e.incrementor)}function be(e){return Ee(e)||he(e)}function Ee(e){return 0!==(4096&d.getNodeCheckFlags(e))}function xe(e,n){e.hoistedLocalVariables||(e.hoistedLocalVariables=[]),function n(t){if(79===t.kind)e.hoistedLocalVariables.push(t);else for(const e of t.elements)tI(e)||n(e.name)}(n.name)}function Se(e,t,r){switch(e.kind){case 245:return function(e,t,r){const i=e.condition&&me(e.condition),a=i||e.incrementor&&me(e.incrementor);return n.updateForStatement(e,uB(t?t.part:e.initializer,A,Lu),uB(i?void 0:e.condition,S,mu),uB(a?void 0:e.incrementor,A,mu),r)}(e,t,r);case 246:return function(e,t){return n.updateForInStatement(e,Nt.checkDefined(uB(e.initializer,S,Lu)),Nt.checkDefined(uB(e.expression,S,mu)),t)}(e,r);case 247:return function(e,t){return n.updateForOfStatement(e,void 0,Nt.checkDefined(uB(e.initializer,S,Lu)),Nt.checkDefined(uB(e.expression,S,mu)),t)}(e,r);case 243:return function(e,t){return n.updateDoStatement(e,t,Nt.checkDefined(uB(e.expression,S,mu)))}(e,r);case 244:return function(e,t){return n.updateWhileStatement(e,Nt.checkDefined(uB(e.expression,S,mu)),t)}(e,r);default:return Nt.failBadSyntaxKind(e,"IterationStatement expected")}}function Le(e){return n.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function Ce(e,t){const r=0===t?e.outParamName:e.originalName,i=0===t?e.originalName:e.outParamName;return n.createBinaryExpression(i,63,r)}function ke(e,t,r,i){for(const a of e)a.flags&t&&i.push(n.createExpressionStatement(Ce(a,r)))}function Ie(e,n,t,r){n?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Map),e.labeledNonLocalBreaks.set(t,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Map),e.labeledNonLocalContinues.set(t,r))}function we(e,t,r,i,a){e&&e.forEach(((e,o)=>{const s=[];if(!i||i.labels&&i.labels.get(o)){const e=n.createIdentifier(o);s.push(t?n.createBreakStatement(e):n.createContinueStatement(e))}else Ie(i,t,o,e),s.push(n.createReturnStatement(r));a.push(n.createCaseClause(n.createStringLiteral(e),s))}))}function Re(e,t,r,i,a){const o=t.name;if(Jd(o))for(const n of o.elements)tI(n)||Re(e,n,r,i,a);else{r.push(n.createParameterDeclaration(void 0,void 0,o));const s=d.getNodeCheckFlags(t);if(262144&s||a){const r=n.createUniqueName("out_"+Uc(o));let a=0;262144&s&&(a|=1),bI(e)&&(e.initializer&&d.isBindingCapturedByNode(e.initializer,t)&&(a|=2),(e.condition&&d.isBindingCapturedByNode(e.condition,t)||e.incrementor&&d.isBindingCapturedByNode(e.incrementor,t))&&(a|=1)),i.push({flags:a,originalName:o,outParamName:r})}}}function Ne(e,t,r){const i=n.createAssignment(SR(n,t,Nt.checkDefined(uB(e.name,S,Cd))),Nt.checkDefined(uB(e.initializer,S,mu)));return VN(i,e),r&&YR(i),i}function Oe(e,t,r){const i=n.createAssignment(SR(n,t,Nt.checkDefined(uB(e.name,S,Cd))),n.cloneNode(e.name));return VN(i,e),r&&YR(i),i}function Pe(e,t,r,i){const a=n.createAssignment(SR(n,t,Nt.checkDefined(uB(e.name,S,Cd))),Y(e,e,void 0,r));return VN(a,e),i&&YR(a),a}function Ue(t,r){if(32768&t.transformFlags||106===t.expression.kind||ah(qR(t.expression))){const{target:e,thisArg:i}=n.createCallBinding(t.expression,s);let a;if(106===t.expression.kind&&jA(i,8),a=32768&t.transformFlags?n.createFunctionApplyCall(Nt.checkDefined(uB(e,C,mu)),106===t.expression.kind?i:Nt.checkDefined(uB(i,S,mu)),je(t.arguments,!0,!1,!1)):VN(n.createFunctionCallCall(Nt.checkDefined(uB(e,C,mu)),106===t.expression.kind?i:Nt.checkDefined(uB(i,S,mu)),_B(t.arguments,S,mu)),t),106===t.expression.kind){const e=n.createLogicalOr(a,D());a=r?n.createAssignment(n.createUniqueName("_this",48),e):e}return FA(a,t)}return EB(t,S,e)}function je(e,r,i,a){const o=e.length,s=J(oe(e,He,((e,n,t,r)=>n(e,i,a&&r===o))));if(1===s.length){const e=s[0];if(r&&!l.downlevelIteration||RS(e.expression)||cC(e.expression,"___spreadArray"))return e.expression}const c=t(),d=0!==s[0].kind;let u=d?n.createArrayLiteralExpression():s[0].expression;for(let n=d?0:1;n<s.length;n++){const e=s[n];u=c.createSpreadArrayHelper(u,e.expression,1===e.kind&&!r)}return u}function He(e){return eI(e)?Ke:ze}function Ke(e){return W(e,We)}function We(e){Nt.assertNode(e,eI);let n=uB(e.expression,S,mu);Nt.assert(n);const r=cC(n,"___read");let i=r||RS(n)?2:1;return!l.downlevelIteration||1!==i||Dk(n)||r||(n=t().createReadHelper(n,void 0),i=2),_V(i,n)}function ze(e,t,r){return _V(0,n.createArrayLiteralExpression(_B(n.createNodeArray(e,r),S,mu),t))}function qe(e){return 8&m&&!e?n.createPropertyAccessExpression(n.createUniqueName("_super",48),"prototype"):n.createUniqueName("_super",48)}function Je(){0===(2&y)&&(y|=2,e.enableSubstitution(79))}function Xe(){0===(1&y)&&(y|=1,e.enableSubstitution(108),e.enableEmitNotification(173),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(216),e.enableEmitNotification(215),e.enableEmitNotification(259))}function Ye(e,t){return mb(t)?n.getInternalName(e):n.createPropertyAccessExpression(n.getInternalName(e),"prototype")}}var fV=E({"src/compiler/transformers/es2015.ts"(){lq()}});function mV(e){const{factory:n}=e,t=e.getCompilerOptions();let r,i;1!==t.jsx&&3!==t.jsx||(r=e.onEmitNode,e.onEmitNode=function(e,n,t){switch(n.kind){case 283:case 284:case 282:const e=n.tagName;i[WB(e)]=!0}r(e,n,t)},e.enableEmitNotification(283),e.enableEmitNotification(284),e.enableEmitNotification(282),i=[]);const a=e.onSubstituteNode;return e.onSubstituteNode=function(e,t){if(t.id&&i&&i[t.id])return a(e,t);if(Mk(t=a(e,t)))return function(e){if(wC(e.name))return e;const t=o(e.name);if(t)return VN(n.createElementAccessExpression(e.expression,t),e);return e}(t);if(Sw(t))return function(e){const t=IC(e.name)&&o(e.name);if(t)return n.updatePropertyAssignment(e,t,e.initializer);return e}(t);return t},e.enableSubstitution(208),e.enableSubstitution(299),qB(e,(function(e){return e}));function o(e){const t=Vc(e);if(void 0!==t&&t>=81&&t<=116)return VN(n.createStringLiteralFromNode(e),e)}}var hV=E({"src/compiler/transformers/es5.ts"(){lq()}});function gV(e){const{factory:n,getEmitHelperFactory:t,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistFunctionDeclaration:a,hoistVariableDeclaration:o}=e,s=HT(e.getCompilerOptions()),c=e.getEmitResolver(),l=e.onSubstituteNode;let d,u,_,p,f,m,h,g,y,v;e.onSubstituteNode=function(e,t){if(t=l(e,t),1===e)return function(e){if(IC(e))return function(e){if(!yd(e)&&d&&d.has(Uc(e))){const t=Oc(e);if(IC(t)&&t.parent){const r=c.getReferencedValueDeclaration(t);if(r){const t=u[WB(r)];if(t){const r=CS(VN(n.cloneNode(t),t),t.parent);return qA(r,e),ZA(r,e),r}}}}return e}(e);return e}(t);return t};let b,E,T,x,S,L,C,k,I,w,R,N,D=1,O=0,M=0;return qB(e,(function(n){if(n.isDeclarationFile||0===(2048&n.transformFlags))return n;const t=EB(n,P,e);return dL(t,e.readEmitHelpers()),t}));function P(n){const t=n.transformFlags;return p?function(n){switch(n.kind){case 243:case 244:return function(n){return p?(ae(),n=EB(n,P,e),se(),n):EB(n,P,e)}(n);case 252:return function(n){p&&ne({kind:2,isScript:!0,breakLabel:-1});n=EB(n,P,e),p&&ce();return n}(n);case 253:return function(n){p&&ne({kind:4,isScript:!0,labelText:Uc(n.label),breakLabel:-1});n=EB(n,P,e),p&&le();return n}(n);default:return F(n)}}(n):_?F(n):Rd(n)&&n.asteriskToken?function(e){switch(e.kind){case 259:return G(e);case 215:return B(e);default:return Nt.failBadSyntaxKind(e)}}(n):2048&t?EB(n,P,e):n}function F(r){switch(r.kind){case 259:return G(r);case 215:return B(r);case 174:case 175:return function(n){const t=_,r=p;return _=!1,p=!1,n=EB(n,P,e),_=t,p=r,n}(r);case 240:return function(e){if(1048576&e.transformFlags)return void q(e.declarationList);{if(2097152&df(e))return e;for(const n of e.declarationList.declarations)o(n.name);const t=DE(e.declarationList);if(0===t.length)return;return qA(n.createExpressionStatement(n.inlineExpressions(W(t,J))),e)}}(r);case 245:return function(t){p&&ae();const r=t.initializer;if(r&&DI(r)){for(const e of r.declarations)o(e.name);const i=DE(r);t=n.updateForStatement(t,i.length>0?n.inlineExpressions(W(i,J)):void 0,uB(t.condition,P,mu),uB(t.incrementor,P,mu),vB(t.statement,P,e))}else t=EB(t,P,e);p&&se();return t}(r);case 246:return function(t){p&&ae();const r=t.initializer;if(DI(r)){for(const e of r.declarations)o(e.name);t=n.updateForInStatement(t,r.declarations[0].name,Nt.checkDefined(uB(t.expression,P,mu)),Nt.checkDefined(uB(t.statement,P,Bu,n.liftToBlock)))}else t=EB(t,P,e);p&&se();return t}(r);case 249:return function(n){if(p){const e=fe(n.label&&Uc(n.label));if(e>0)return ye(e,n)}return EB(n,P,e)}(r);case 248:return function(n){if(p){const e=me(n.label&&Uc(n.label));if(e>0)return ye(e,n)}return EB(n,P,e)}(r);case 250:return function(e){return t=uB(e.expression,P,mu),r=e,VN(n.createReturnStatement(n.createArrayLiteralExpression(t?[ge(2),t]:[ge(2)])),r);var t,r}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 223:return function(t){const r=Zy(t);switch(r){case 0:return function(t){if(X(t.right))return Mb(t.operatorToken.kind)?function(e){const n=Z(),t=Q();Ee(t,Nt.checkDefined(uB(e.left,P,mu)),e.left),55===e.operatorToken.kind?Se(n,t,e.left):xe(n,t,e.left);return Ee(t,Nt.checkDefined(uB(e.right,P,mu)),e.right),ee(n),t}(t):27===t.operatorToken.kind?V(t):n.updateBinaryExpression(t,$(Nt.checkDefined(uB(t.left,P,mu))),t.operatorToken,Nt.checkDefined(uB(t.right,P,mu)));return EB(t,P,e)}(t);case 1:return function(t){const{left:r,right:i}=t;if(X(i)){let e;switch(r.kind){case 208:e=n.updatePropertyAccessExpression(r,$(Nt.checkDefined(uB(r.expression,P,lu))),r.name);break;case 209:e=n.updateElementAccessExpression(r,$(Nt.checkDefined(uB(r.expression,P,lu))),$(Nt.checkDefined(uB(r.argumentExpression,P,mu))));break;default:e=Nt.checkDefined(uB(r,P,mu))}const a=t.operatorToken.kind;return tU(a)?VN(n.createAssignment(e,VN(n.createBinaryExpression($(e),rU(a),Nt.checkDefined(uB(i,P,mu))),t)),t):n.updateBinaryExpression(t,e,t.operatorToken,Nt.checkDefined(uB(i,P,mu)))}return EB(t,P,e)}(t);default:return Nt.assertNever(r)}}(r);case 357:return function(e){let t=[];for(const r of e.elements)Yk(r)&&27===r.operatorToken.kind?t.push(V(r)):(X(r)&&t.length>0&&(Ae(1,[n.createExpressionStatement(n.inlineExpressions(t))]),t=[]),t.push(Nt.checkDefined(uB(r,P,mu))));return n.inlineExpressions(t)}(r);case 224:return function(n){if(X(n.whenTrue)||X(n.whenFalse)){const e=Z(),t=Z(),r=Q();return Se(e,Nt.checkDefined(uB(n.condition,P,mu)),n.condition),Ee(r,Nt.checkDefined(uB(n.whenTrue,P,mu)),n.whenTrue),Te(t),ee(e),Ee(r,Nt.checkDefined(uB(n.whenFalse,P,mu)),n.whenFalse),ee(t),r}return EB(n,P,e)}(r);case 226:return function(e){const r=Z(),i=uB(e.expression,P,mu);if(e.asteriskToken){!function(e,n){Ae(7,[e],n)}(0===(16777216&df(e.expression))?VN(t().createValuesHelper(i),e):i,e)}else!function(e,n){Ae(6,[e],n)}(i,e);return ee(r),function(e){return VN(n.createCallExpression(n.createPropertyAccessExpression(x,"sent"),void 0,[]),e)}(e)}(r);case 206:return function(e){return j(e.elements,void 0,void 0,e.multiLine)}(r);case 207:return function(e){const t=e.properties,r=e.multiLine,i=Y(t),a=Q();Ee(a,n.createObjectLiteralExpression(_B(t,P,Wd,0,i),r));const o=We(t,s,[],i);return o.push(r?YR(CS(VN(n.cloneNode(a),a),a.parent)):a),n.inlineExpressions(o);function s(t,i){X(i)&&t.length>0&&(be(n.createExpressionStatement(n.inlineExpressions(t))),t=[]);const o=uB(OR(n,e,i,a),P,mu);return o&&(r&&YR(o),t.push(o)),t}}(r);case 209:return function(t){if(X(t.argumentExpression))return n.updateElementAccessExpression(t,$(Nt.checkDefined(uB(t.expression,P,lu))),Nt.checkDefined(uB(t.argumentExpression,P,mu)));return EB(t,P,e)}(r);case 210:return function(t){if(!pm(t)&&A(t.arguments,X)){const{target:e,thisArg:r}=n.createCallBinding(t.expression,o,s,!0);return FA(VN(n.createFunctionApplyCall($(Nt.checkDefined(uB(e,P,lu))),r,j(t.arguments)),t),t)}return EB(t,P,e)}(r);case 211:return function(t){if(A(t.arguments,X)){const{target:e,thisArg:r}=n.createCallBinding(n.createPropertyAccessExpression(t.expression,"bind"),o);return FA(VN(n.createNewExpression(n.createFunctionApplyCall($(Nt.checkDefined(uB(e,P,mu))),r,j(t.arguments,n.createVoidZero())),void 0,[]),t),t)}return EB(t,P,e)}(r);default:return EB(r,P,e)}}(r):4196352&r.transformFlags?EB(r,P,e):r}}function G(t){if(t.asteriskToken)t=FA(VN(n.createFunctionDeclaration(t.modifiers,void 0,t.name,void 0,hB(t.parameters,P,e),void 0,U(t.body)),t),t);else{const n=_,r=p;_=!1,p=!1,t=EB(t,P,e),_=n,p=r}return _?void a(t):t}function B(t){if(t.asteriskToken)t=FA(VN(n.createFunctionExpression(void 0,void 0,t.name,void 0,hB(t.parameters,P,e),void 0,U(t.body)),t),t);else{const n=_,r=p;_=!1,p=!1,t=EB(t,P,e),_=n,p=r}return t}function U(e){const a=[],o=_,s=p,c=f,l=m,d=h,u=g,A=y,F=v,G=D,B=b,U=E,V=T,j=x;_=!0,p=!1,f=void 0,m=void 0,h=void 0,g=void 0,y=void 0,v=void 0,D=1,b=void 0,E=void 0,T=void 0,x=n.createTempVariable(void 0),r();const K=n.copyPrologue(e.statements,a,!1,P);H(e.statements,K);const W=function(){O=0,M=0,S=void 0,L=!1,C=!1,k=void 0,I=void 0,w=void 0,R=void 0,N=void 0;const e=function(){if(b){for(let e=0;e<b.length;e++)Ie(e);Le(b.length)}else Le(0);if(k){const e=n.createPropertyAccessExpression(x,"label");return[YR(n.createSwitchStatement(e,n.createCaseBlock(k)))]}if(I)return I;return[]}();return t().createGeneratorHelper(jA(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,x)],void 0,n.createBlock(e,e.length>0)),1048576))}();return Jp(a,i()),a.push(n.createReturnStatement(W)),_=o,p=s,f=c,m=l,h=d,g=u,y=A,v=F,D=G,b=B,E=U,T=V,x=j,VN(n.createBlock(a,e.multiLine),e)}function V(e){let t=[];return r(e.left),r(e.right),n.inlineExpressions(t);function r(e){Yk(e)&&27===e.operatorToken.kind?(r(e.left),r(e.right)):(X(e)&&t.length>0&&(Ae(1,[n.createExpressionStatement(n.inlineExpressions(t))]),t=[]),t.push(Nt.checkDefined(uB(e,P,mu))))}}function j(e,t,r,i){const a=Y(e);let o;if(a>0){o=Q();const r=_B(e,P,mu,0,a);Ee(o,n.createArrayLiteralExpression(t?[t,...r]:r)),t=void 0}const s=We(e,(function(e,r){if(X(r)&&e.length>0){const r=void 0!==o;o||(o=Q()),Ee(o,r?n.createArrayConcatCall(o,[n.createArrayLiteralExpression(e,i)]):n.createArrayLiteralExpression(t?[t,...e]:e,i)),t=void 0,e=[]}return e.push(Nt.checkDefined(uB(r,P,mu))),e}),[],a);return o?n.createArrayConcatCall(o,[n.createArrayLiteralExpression(s,i)]):VN(n.createArrayLiteralExpression(t?[t,...s]:s,i),r)}function H(e,n=0){const t=e.length;for(let r=n;r<t;r++)z(e[r])}function K(e){pI(e)?H(e.statements):z(e)}function z(t){const r=p;p||(p=X(t)),function(t){switch(t.kind){case 238:return function(e){X(e)?H(e.statements):be(uB(e,P,Bu))}(t);case 241:return function(e){be(uB(e,P,Bu))}(t);case 242:return function(e){if(X(e))if(X(e.thenStatement)||X(e.elseStatement)){const n=Z(),t=e.elseStatement?Z():void 0;Se(e.elseStatement?t:n,Nt.checkDefined(uB(e.expression,P,mu)),e.expression),K(e.thenStatement),e.elseStatement&&(Te(n),ee(t),K(e.elseStatement)),ee(n)}else be(uB(e,P,Bu));else be(uB(e,P,Bu))}(t);case 243:return function(e){if(X(e)){const n=Z(),t=Z();oe(n),ee(t),K(e.statement),ee(n),xe(t,Nt.checkDefined(uB(e.expression,P,mu))),se()}else be(uB(e,P,Bu))}(t);case 244:return function(e){if(X(e)){const n=Z(),t=oe(n);ee(n),Se(t,Nt.checkDefined(uB(e.expression,P,mu))),K(e.statement),Te(n),se()}else be(uB(e,P,Bu))}(t);case 245:return function(e){if(X(e)){const t=Z(),r=Z(),i=oe(r);if(e.initializer){const t=e.initializer;DI(t)?q(t):be(VN(n.createExpressionStatement(Nt.checkDefined(uB(t,P,mu))),t))}ee(t),e.condition&&Se(i,Nt.checkDefined(uB(e.condition,P,mu))),K(e.statement),ee(r),e.incrementor&&be(VN(n.createExpressionStatement(Nt.checkDefined(uB(e.incrementor,P,mu))),e.incrementor)),Te(t),se()}else be(uB(e,P,Bu))}(t);case 246:return function(e){if(X(e)){const t=Q(),r=Q(),i=Q(),a=n.createLoopVariable(),s=e.initializer;o(a),Ee(t,Nt.checkDefined(uB(e.expression,P,mu))),Ee(r,n.createArrayLiteralExpression()),be(n.createForInStatement(i,t,n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(r,"push"),void 0,[i])))),Ee(a,n.createNumericLiteral(0));const c=Z(),l=Z(),d=oe(l);let u;if(ee(c),Se(d,n.createLessThan(a,n.createPropertyAccessExpression(r,"length"))),Ee(i,n.createElementAccessExpression(r,a)),Se(l,n.createBinaryExpression(i,101,t)),DI(s)){for(const e of s.declarations)o(e.name);u=n.cloneNode(s.declarations[0].name)}else u=Nt.checkDefined(uB(s,P,mu)),Nt.assert(lu(u));Ee(u,i),K(e.statement),ee(l),be(n.createExpressionStatement(n.createPostfixIncrement(a))),Te(c),se()}else be(uB(e,P,Bu))}(t);case 248:return function(e){const n=me(e.label?Uc(e.label):void 0);n>0?Te(n,e):be(e)}(t);case 249:return function(e){const n=fe(e.label?Uc(e.label):void 0);n>0?Te(n,e):be(e)}(t);case 250:return function(e){n=uB(e.expression,P,mu),t=e,Ae(8,[n],t);var n,t}(t);case 251:return function(e){X(e)?(function(e){const n=Z(),t=Z();ee(n),ne({kind:1,expression:e,startLabel:n,endLabel:t})}($(Nt.checkDefined(uB(e.expression,P,mu)))),K(e.statement),function(){Nt.assert(1===ie());ee(te().endLabel)}()):be(uB(e,P,Bu))}(t);case 252:return function(e){if(X(e.caseBlock)){const t=e.caseBlock,r=t.clauses.length,i=function(){const e=Z();return ne({kind:2,isScript:!1,breakLabel:e}),e}(),a=$(Nt.checkDefined(uB(e.expression,P,mu))),o=[];let s=-1;for(let e=0;e<r;e++){const n=t.clauses[e];o.push(Z()),293===n.kind&&-1===s&&(s=e)}let c=0,l=[];for(;c<r;){let e=0;for(let i=c;i<r;i++){const r=t.clauses[i];if(292===r.kind){if(X(r.expression)&&l.length>0)break;l.push(n.createCaseClause(Nt.checkDefined(uB(r.expression,P,mu)),[ye(o[i],r.expression)]))}else e++}l.length&&(be(n.createSwitchStatement(a,n.createCaseBlock(l))),c+=l.length,l=[]),e>0&&(c+=e,e=0)}Te(s>=0?o[s]:i);for(let e=0;e<r;e++)ee(o[e]),H(t.clauses[e].statements);ce()}else be(uB(e,P,Bu))}(t);case 253:return function(e){X(e)?(!function(e){const n=Z();ne({kind:4,isScript:!1,labelText:e,breakLabel:n})}(Uc(e.label)),K(e.statement),le()):be(uB(e,P,Bu))}(t);case 254:return function(e){var t;r=Nt.checkDefined(uB(null!=(t=e.expression)?t:n.createVoidZero(),P,mu)),i=e,Ae(9,[r],i);var r,i}(t);case 255:return function(t){X(t)?(function(){const e=Z(),n=Z();ee(e),ne({kind:0,state:0,startLabel:e,endLabel:n}),ve()}(),K(t.tryBlock),t.catchClause&&(!function(t){let r;if(Nt.assert(0===ie()),yd(t.name))r=t.name,o(t.name);else{const n=Uc(t.name);r=Q(n),d||(d=new Map,u=[],e.enableSubstitution(79)),d.set(n,!0),u[WB(t)]=r}const i=re();Nt.assert(i.state<1);Te(i.endLabel);const a=Z();ee(a),i.state=1,i.catchVariable=r,i.catchLabel=a,Ee(r,n.createCallExpression(n.createPropertyAccessExpression(x,"sent"),void 0,[])),ve()}(t.catchClause.variableDeclaration),K(t.catchClause.block)),t.finallyBlock&&(!function(){Nt.assert(0===ie());const e=re();Nt.assert(e.state<2);Te(e.endLabel);const n=Z();ee(n),e.state=2,e.finallyLabel=n}(),K(t.finallyBlock)),function(){Nt.assert(0===ie());const e=te();e.state<2?Te(e.endLabel):Ae(10);ee(e.endLabel),ve(),e.state=3}()):be(EB(t,P,e))}(t);default:be(uB(t,P,Bu))}}(t),p=r}function q(e){for(const s of e.declarations){const e=n.cloneNode(s.name);ZA(e,s.name),o(e)}const t=DE(e),r=t.length;let i=0,a=[];for(;i<r;){for(let e=i;e<r;e++){const n=t[e];if(X(n.initializer)&&a.length>0)break;a.push(J(n))}a.length&&(be(n.createExpressionStatement(n.inlineExpressions(a))),i+=a.length,a=[])}}function J(e){return qA(n.createAssignment(qA(n.cloneNode(e.name),e.name),Nt.checkDefined(uB(e.initializer,P,mu))),e)}function X(e){return!!e&&0!==(1048576&e.transformFlags)}function Y(e){const n=e.length;for(let t=0;t<n;t++)if(X(e[t]))return t;return-1}function $(e){if(yd(e)||8192&df(e))return e;const t=n.createTempVariable(o);return Ee(t,e,e),t}function Q(e){const t=e?n.createUniqueName(e):n.createTempVariable(void 0);return o(t),t}function Z(){y||(y=[]);const e=D;return D++,y[e]=-1,e}function ee(e){Nt.assert(void 0!==y,"No labels were defined."),y[e]=b?b.length:0}function ne(e){f||(f=[],h=[],m=[],g=[]);const n=h.length;return h[n]=0,m[n]=b?b.length:0,f[n]=e,g.push(e),n}function te(){const e=re();if(void 0===e)return Nt.fail("beginBlock was never called.");const n=h.length;return h[n]=1,m[n]=b?b.length:0,f[n]=e,g.pop(),e}function re(){return Fe(g)}function ie(){const e=re();return e&&e.kind}function ae(){ne({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function oe(e){const n=Z();return ne({kind:3,isScript:!1,breakLabel:n,continueLabel:e}),n}function se(){Nt.assert(3===ie());const e=te(),n=e.breakLabel;e.isScript||ee(n)}function ce(){Nt.assert(2===ie());const e=te(),n=e.breakLabel;e.isScript||ee(n)}function le(){Nt.assert(4===ie());const e=te();e.isScript||ee(e.breakLabel)}function de(e){return 2===e.kind||3===e.kind}function ue(e){return 4===e.kind}function _e(e){return 3===e.kind}function pe(e,n){for(let t=n;t>=0;t--){const n=g[t];if(!ue(n))break;if(n.labelText===e)return!0}return!1}function fe(e){if(g)if(e)for(let n=g.length-1;n>=0;n--){const t=g[n];if(ue(t)&&t.labelText===e)return t.breakLabel;if(de(t)&&pe(e,n-1))return t.breakLabel}else for(let n=g.length-1;n>=0;n--){const e=g[n];if(de(e))return e.breakLabel}return 0}function me(e){if(g)if(e)for(let n=g.length-1;n>=0;n--){const t=g[n];if(_e(t)&&pe(e,n-1))return t.continueLabel}else for(let n=g.length-1;n>=0;n--){const e=g[n];if(_e(e))return e.continueLabel}return 0}function he(e){if(void 0!==e&&e>0){void 0===v&&(v=[]);const t=n.createNumericLiteral(-1);return void 0===v[e]?v[e]=[t]:v[e].push(t),t}return n.createOmittedExpression()}function ge(e){const t=n.createNumericLiteral(e);return aL(t,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(e)),t}function ye(e,t){return Nt.assertLessThan(0,e,"Invalid label"),VN(n.createReturnStatement(n.createArrayLiteralExpression([ge(3),he(e)])),t)}function ve(){Ae(0)}function be(e){e?Ae(1,[e]):ve()}function Ee(e,n,t){Ae(2,[e,n],t)}function Te(e,n){Ae(3,[e],n)}function xe(e,n,t){Ae(4,[e,n],t)}function Se(e,n,t){Ae(5,[e,n],t)}function Ae(e,n,t){void 0===b&&(b=[],E=[],T=[]),void 0===y&&ee(Z());const r=b.length;b[r]=e,E[r]=n,T[r]=t}function Le(e){(function(e){if(!C)return!0;if(!y||!v)return!1;for(let n=0;n<y.length;n++)if(y[n]===e&&v[n])return!0;return!1})(e)&&(ke(e),N=void 0,Re(void 0,void 0)),I&&k&&Ce(!1),function(){if(void 0!==v&&void 0!==S)for(let e=0;e<S.length;e++){const n=S[e];if(void 0!==n)for(const t of n){const n=v[t];if(void 0!==n)for(const t of n)t.text=String(e)}}}()}function Ce(e){if(k||(k=[]),I){if(N)for(let e=N.length-1;e>=0;e--){const t=N[e];I=[n.createWithStatement(t.expression,n.createBlock(I))]}if(R){const{startLabel:e,catchLabel:t,finallyLabel:r,endLabel:i}=R;I.unshift(n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createPropertyAccessExpression(x,"trys"),"push"),void 0,[n.createArrayLiteralExpression([he(e),he(t),he(r),he(i)])]))),R=void 0}e&&I.push(n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(x,"label"),n.createNumericLiteral(M+1))))}k.push(n.createCaseClause(n.createNumericLiteral(M),I||[])),I=void 0}function ke(e){if(y)for(let n=0;n<y.length;n++)y[n]===e&&(I&&(Ce(!L),L=!1,C=!1,M++),void 0===S&&(S=[]),void 0===S[M]?S[M]=[n]:S[M].push(n))}function Ie(e){if(ke(e),function(e){if(f)for(;O<h.length&&m[O]<=e;O++){const e=f[O],n=h[O];switch(e.kind){case 0:0===n?(w||(w=[]),I||(I=[]),w.push(R),R=e):1===n&&(R=w.pop());break;case 1:0===n?(N||(N=[]),N.push(e)):1===n&&N.pop()}}}(e),L)return;L=!1,C=!1;const t=b[e];if(0===t)return;if(10===t)return L=!0,void we(n.createReturnStatement(n.createArrayLiteralExpression([ge(7)])));const r=E[e];if(1===t)return we(r[0]);const i=T[e];switch(t){case 2:return a=r[0],o=r[1],s=i,void we(VN(n.createExpressionStatement(n.createAssignment(a,o)),s));case 3:return function(e,t){L=!0,we(jA(VN(n.createReturnStatement(n.createArrayLiteralExpression([ge(3),he(e)])),t),768))}(r[0],i);case 4:return function(e,t,r){we(jA(n.createIfStatement(t,jA(VN(n.createReturnStatement(n.createArrayLiteralExpression([ge(3),he(e)])),r),768)),1))}(r[0],r[1],i);case 5:return function(e,t,r){we(jA(n.createIfStatement(n.createLogicalNot(t),jA(VN(n.createReturnStatement(n.createArrayLiteralExpression([ge(3),he(e)])),r),768)),1))}(r[0],r[1],i);case 6:return function(e,t){L=!0,we(jA(VN(n.createReturnStatement(n.createArrayLiteralExpression(e?[ge(4),e]:[ge(4)])),t),768))}(r[0],i);case 7:return function(e,t){L=!0,we(jA(VN(n.createReturnStatement(n.createArrayLiteralExpression([ge(5),e])),t),768))}(r[0],i);case 8:return Re(r[0],i);case 9:return function(e,t){L=!0,C=!0,we(VN(n.createThrowStatement(e),t))}(r[0],i)}var a,o,s}function we(e){e&&(I?I.push(e):I=[e])}function Re(e,t){L=!0,C=!0,we(jA(VN(n.createReturnStatement(n.createArrayLiteralExpression(e?[ge(2),e]:[ge(2)])),t),768))}}var yV,vV=E({"src/compiler/transformers/generators.ts"(){lq()}});function bV(e){const{factory:n,getEmitHelperFactory:t,startLexicalEnvironment:r,endLexicalEnvironment:a,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),c=e.getEmitResolver(),l=e.getEmitHost(),d=HT(s),u=KT(s),_=e.onSubstituteNode,p=e.onEmitNode;e.onSubstituteNode=function(e,t){if((t=_(e,t)).id&&y[t.id])return t;if(1===e)return function(e){switch(e.kind){case 79:return $(e);case 210:return function(e){if(IC(e.expression)){const t=$(e.expression);if(y[ZG(t)]=!0,!IC(t)&&!(8192&df(e.expression)))return WA(n.updateCallExpression(e,t,void 0,e.arguments),16)}return e}(e);case 212:return function(e){if(IC(e.tag)){const t=$(e.tag);if(y[ZG(t)]=!0,!IC(t)&&!(8192&df(e.tag)))return WA(n.updateTaggedTemplateExpression(e,t,void 0,e.template),16)}return e}(e);case 223:return function(e){if(Ub(e.operatorToken.kind)&&IC(e.left)&&!yd(e.left)&&!FR(e.left)&&!NE(e.left)){const n=Q(e.left);if(n){let t=e;for(const r of n)y[ZG(t)]=!0,t=X(r,t,e);return t}}return e}(e)}return e}(t);if(Aw(t))return function(e){const t=e.name,r=$(t);if(r!==t){if(e.objectAssignmentInitializer){const i=n.createAssignment(r,e.objectAssignmentInitializer);return VN(n.createPropertyAssignment(t,i),e)}return VN(n.createPropertyAssignment(t,r),e)}return e}(t);return t},e.onEmitNode=function(e,n,t){308===n.kind?(h=n,g=f[WB(h)],p(e,n,t),h=void 0,g=void 0):p(e,n,t)},e.enableSubstitution(210),e.enableSubstitution(212),e.enableSubstitution(79),e.enableSubstitution(223),e.enableSubstitution(300),e.enableEmitNotification(308);const f=[],m=[];let h,g;const y=[];let v;return qB(e,(function(n){if(n.isDeclarationFile||!(kf(n,s)||8388608&n.transformFlags||sm(n)&&JT(s)&&Nv(s)))return n;h=n,g=$B(e,n,c,s),f[WB(n)]=g;const t=function(e){switch(e){case 2:return T;case 3:return x;default:return E}}(u)(n);return h=void 0,g=void 0,v=!1,t}));function b(){return!(g.exportEquals||!OD(h))}function E(t){r();const i=[],o=lx(s,"alwaysStrict")||!s.noImplicitUseStrict&&OD(h),c=n.copyPrologue(t.statements,i,o&&!sm(t),I);if(b()&&Te(i,J()),S(g.exportedNames)){const e=50;for(let t=0;t<g.exportedNames.length;t+=e)Te(i,n.createExpressionStatement(We(g.exportedNames.slice(t,t+e),((e,t)=>n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(Uc(t))),e)),n.createVoidZero())))}Te(i,uB(g.externalHelpersImportDeclaration,I,Bu)),Ae(i,_B(t.statements,I,Bu,c)),k(i,!1),Jp(i,a());const l=n.updateSourceFile(t,VN(n.createNodeArray(i),t.statements));return dL(l,e.readEmitHelpers()),l}function T(t){const r=n.createIdentifier("define"),a=rN(n,t,l,s),o=sm(t)&&t,{aliasedModuleNames:c,unaliasedModuleNames:d,importAliasNames:u}=A(t,!0),_=n.updateSourceFile(t,VN(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(r,void 0,[...a?[a]:[],n.createArrayLiteralExpression(o?i:[n.createStringLiteral("require"),n.createStringLiteral("exports"),...c,...d]),o?o.statements.length?o.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...u],void 0,C(t))]))]),t.statements));return dL(_,e.readEmitHelpers()),_}function x(t){const{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:a}=A(t,!1),o=rN(n,t,l,s),c=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"factory")],void 0,VN(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),jA(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,[...o?[o]:[],n.createArrayLiteralExpression([n.createStringLiteral("require"),n.createStringLiteral("exports"),...r,...i]),n.createIdentifier("factory")]))])))],!0),void 0)),d=n.updateSourceFile(t,VN(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(c,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...a],void 0,C(t))]))]),t.statements));return dL(d,e.readEmitHelpers()),d}function A(e,t){const r=[],i=[],a=[];for(const o of e.amdDependencies)o.name?(r.push(n.createStringLiteral(o.path)),a.push(n.createParameterDeclaration(void 0,void 0,o.name))):i.push(n.createStringLiteral(o.path));for(const o of g.externalImports){const e=tN(n,o,h,l,c,s),d=nN(n,o,h);e&&(t&&d?(jA(d,8),r.push(e),a.push(n.createParameterDeclaration(void 0,void 0,d))):i.push(e))}return{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:a}}function L(e){if(HI(e)||ew(e)||!tN(n,e,h,l,c,s))return;const t=nN(n,e,h),r=P(e,t);return r!==t?n.createExpressionStatement(n.createAssignment(t,r)):void 0}function C(e){r();const t=[],i=n.copyPrologue(e.statements,t,!s.noImplicitUseStrict,I);b()&&Te(t,J()),S(g.exportedNames)&&Te(t,n.createExpressionStatement(We(g.exportedNames,((e,t)=>n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(Uc(t))),e)),n.createVoidZero()))),Te(t,uB(g.externalHelpersImportDeclaration,I,Bu)),2===u&&Ae(t,ee(g.externalImports,L)),Ae(t,_B(e.statements,I,Bu,i)),k(t,!0),Jp(t,a());const o=n.createBlock(t,!0);return v&&lL(o,yV),o}function k(e,t){if(g.exportEquals){const r=uB(g.exportEquals.expression,R,mu);if(r)if(t){const t=n.createReturnStatement(r);VN(t,g.exportEquals),jA(t,3840),e.push(t)}else{const t=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),r));VN(t,g.exportEquals),jA(t,3072),e.push(t)}}}function I(r){switch(r.kind){case 269:return function(e){let t;const r=bg(e);if(2!==u){if(!e.importClause)return FA(VN(n.createExpressionStatement(F(e)),e),e);{const i=[];r&&!Eg(e)?i.push(n.createVariableDeclaration(n.cloneNode(r.name),void 0,void 0,P(e,F(e)))):(i.push(n.createVariableDeclaration(n.getGeneratedNameForNode(e),void 0,void 0,P(e,F(e)))),r&&Eg(e)&&i.push(n.createVariableDeclaration(n.cloneNode(r.name),void 0,void 0,n.getGeneratedNameForNode(e)))),t=Te(t,FA(VN(n.createVariableStatement(void 0,n.createVariableDeclarationList(i,d>=2?2:0)),e),e))}}else r&&Eg(e)&&(t=Te(t,n.createVariableStatement(void 0,n.createVariableDeclarationList([FA(VN(n.createVariableDeclaration(n.cloneNode(r.name),void 0,void 0,n.getGeneratedNameForNode(e)),e),e)],d>=2?2:0))));if(U(e)){const n=WB(e);m[n]=V(m[n],e)}else t=V(t,e);return Ve(t)}(r);case 268:return function(e){let t;Nt.assert(xh(e),"import= for internal module references should be handled in an earlier transformer."),2!==u?t=fb(e,1)?Te(t,FA(VN(n.createExpressionStatement(X(e.name,F(e))),e),e)):Te(t,FA(VN(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(e.name),void 0,void 0,F(e))],d>=2?2:0)),e),e)):fb(e,1)&&(t=Te(t,FA(VN(n.createExpressionStatement(X(n.getExportName(e),n.getLocalName(e))),e),e)));if(U(e)){const n=WB(e);m[n]=j(m[n],e)}else t=j(t,e);return Ve(t)}(r);case 275:return function(e){if(!e.moduleSpecifier)return;const r=n.getGeneratedNameForNode(e);if(e.exportClause&&nw(e.exportClause)){const i=[];2!==u&&i.push(FA(VN(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,F(e))])),e),e));for(const a of e.exportClause.elements)if(0===d)i.push(FA(VN(n.createExpressionStatement(t().createCreateBindingHelper(r,n.createStringLiteralFromNode(a.propertyName||a.name),a.propertyName?n.createStringLiteralFromNode(a.name):void 0)),a),a));else{const o=!!ex(s)&&!(2&uf(e))&&"default"===Uc(a.propertyName||a.name),c=n.createPropertyAccessExpression(o?t().createImportDefaultHelper(r):r,a.propertyName||a.name);i.push(FA(VN(n.createExpressionStatement(X(n.getExportName(a),c,void 0,!0)),a),a))}return Ve(i)}if(e.exportClause){const i=[];return i.push(FA(VN(n.createExpressionStatement(X(n.cloneNode(e.exportClause.name),function(e,n){if(!ex(s)||2&uf(e))return n;if(JB(e))return t().createImportStarHelper(n);return n}(e,2!==u?F(e):af(e)?r:n.createIdentifier(Uc(e.exportClause.name))))),e),e)),Ve(i)}return FA(VN(n.createExpressionStatement(t().createExportStarHelper(2!==u?F(e):r)),e),e)}(r);case 274:return function(e){if(e.isExportEquals)return;let t;const r=e.original;if(r&&U(r)){const t=WB(e);m[t]=q(m[t],n.createIdentifier("default"),uB(e.expression,R,mu),e,!0)}else t=q(t,n.createIdentifier("default"),uB(e.expression,R,mu),e,!0);return Ve(t)}(r);case 240:return function(t){let r,i,a;if(fb(t,1)){let e,o=!1;for(const r of t.declarationList.declarations)if(IC(r.name)&&FR(r.name))if(e||(e=_B(t.modifiers,Y,Ad)),r.initializer){i=Te(i,n.updateVariableDeclaration(r,r.name,void 0,void 0,X(r.name,uB(r.initializer,R,mu))))}else i=Te(i,r);else if(r.initializer)if(!Jd(r.name)&&(Hk(r.initializer)||jk(r.initializer)||nI(r.initializer))){const e=n.createAssignment(VN(n.createPropertyAccessExpression(n.createIdentifier("exports"),r.name),r.name),n.createIdentifier(Py(r.name)));i=Te(i,n.createVariableDeclaration(r.name,r.exclamationToken,r.type,uB(r.initializer,R,mu))),a=Te(a,e),o=!0}else a=Te(a,B(r));if(i&&(r=Te(r,n.updateVariableStatement(t,e,n.updateVariableDeclarationList(t.declarationList,i)))),a){const e=FA(VN(n.createExpressionStatement(n.inlineExpressions(a)),t),t);o&&VA(e),r=Te(r,e)}}else r=Te(r,EB(t,R,e));if(U(t)){const e=WB(t);m[e]=H(m[e],t)}else r=H(r,t);return Ve(r)}(r);case 259:return function(t){let r;r=fb(t,1)?Te(r,FA(VN(n.createFunctionDeclaration(_B(t.modifiers,Y,Ad),t.asteriskToken,n.getDeclarationName(t,!0,!0),void 0,_B(t.parameters,R,qC),void 0,EB(t.body,R,e)),t),t)):Te(r,EB(t,R,e));if(U(t)){const e=WB(t);m[e]=W(m[e],t)}else r=W(r,t);return Ve(r)}(r);case 260:return function(t){let r;r=fb(t,1)?Te(r,FA(VN(n.createClassDeclaration(_B(t.modifiers,Y,jd),n.getDeclarationName(t,!0,!0),void 0,_B(t.heritageClauses,R,Tw),_B(t.members,R,Pd)),t),t)):Te(r,EB(t,R,e));if(U(t)){const e=WB(t);m[e]=W(m[e],t)}else r=W(r,t);return Ve(r)}(r);case 358:return function(e){if(U(e)&&240===e.original.kind){const n=WB(e);m[n]=H(m[n],e.original)}return e}(r);case 359:return function(e){const n=WB(e),t=m[n];if(t)return delete m[n],Te(t,e);return e}(r);default:return R(r)}}function w(t,r){if(!(276828160&t.transformFlags))return t;switch(t.kind){case 245:return function(t){return n.updateForStatement(t,uB(t.initializer,N,Lu),uB(t.condition,R,mu),uB(t.incrementor,N,mu),vB(t.statement,R,e))}(t);case 241:return function(e){return n.updateExpressionStatement(e,uB(e.expression,N,mu))}(t);case 214:return function(e,t){return n.updateParenthesizedExpression(e,uB(e.expression,t?N:R,mu))}(t,r);case 356:return function(e,t){return n.updatePartiallyEmittedExpression(e,uB(e.expression,t?N:R,mu))}(t,r);case 210:if(pm(t)&&void 0===h.impliedNodeFormat)return function(t){if(0===u&&d>=7)return EB(t,R,e);const r=tN(n,t,h,l,c,s),i=uB(De(t.arguments),R,mu),a=!r||i&&_C(i)&&i.text===r.text?i:r,_=!!(16384&t.transformFlags);switch(s.module){case 2:return O(a,_);case 3:return function(e,t){if(v=!0,eU(e)){const r=yd(e)?e:_C(e)?n.createStringLiteralFromNode(e):jA(VN(n.cloneNode(e),e),3072);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,M(e),void 0,O(r,t))}{const r=n.createTempVariable(o);return n.createComma(n.createAssignment(r,e),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,M(r,!0),void 0,O(r,t)))}}(null!=a?a:n.createVoidZero(),_);default:return M(a)}}(t);break;case 223:if(Wb(t))return function(n,t){if(D(n.left))return TU(n,R,e,0,!t,G);return EB(n,R,e)}(t,r);break;case 221:case 222:return function(t,r){if((45===t.operator||46===t.operator)&&IC(t.operand)&&!yd(t.operand)&&!FR(t.operand)&&!NE(t.operand)){const e=Q(t.operand);if(e){let i,a=uB(t.operand,R,mu);Jk(t)?a=n.updatePrefixUnaryExpression(t,a):(a=n.updatePostfixUnaryExpression(t,a),r||(i=n.createTempVariable(o),a=n.createAssignment(i,a),VN(a,t)),a=n.createComma(a,n.cloneNode(t.operand)),VN(a,t));for(const n of e)y[ZG(a)]=!0,a=X(n,a),VN(a,t);return i&&(y[ZG(a)]=!0,a=n.createComma(a,i),VN(a,t)),a}}return EB(t,R,e)}(t,r)}return EB(t,R,e)}function R(e){return w(e,!1)}function N(e){return w(e,!0)}function D(e){if(Ok(e))for(const n of e.properties)switch(n.kind){case 299:if(D(n.initializer))return!0;break;case 300:if(D(n.name))return!0;break;case 301:if(D(n.expression))return!0;break;case 171:case 174:case 175:return!1;default:Nt.assertNever(n,"Unhandled object member kind")}else if(Dk(e)){for(const n of e.elements)if(eI(n)){if(D(n.expression))return!0}else if(D(n))return!0}else if(IC(e))return S(Q(e))>(GR(e)?1:0);return!1}function O(e,r){const i=n.createUniqueName("resolve"),a=n.createUniqueName("reject"),o=[n.createParameterDeclaration(void 0,void 0,i),n.createParameterDeclaration(void 0,void 0,a)],c=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([e||n.createOmittedExpression()]),i,a]))]);let l;d>=2?l=n.createArrowFunction(void 0,void 0,o,void 0,void 0,c):(l=n.createFunctionExpression(void 0,void 0,void 0,void 0,o,void 0,c),r&&jA(l,16));const u=n.createNewExpression(n.createIdentifier("Promise"),void 0,[l]);return ex(s)?n.createCallExpression(n.createPropertyAccessExpression(u,n.createIdentifier("then")),void 0,[t().createImportStarCallbackHelper()]):u}function M(e,r){const i=e&&!nU(e)&&!r,a=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,i?d>=2?[n.createTemplateExpression(n.createTemplateHead(""),[n.createTemplateSpan(e,n.createTemplateTail(""))])]:[n.createCallExpression(n.createPropertyAccessExpression(n.createStringLiteral(""),"concat"),void 0,[e])]:[]);let o=n.createCallExpression(n.createIdentifier("require"),void 0,i?[n.createIdentifier("s")]:e?[e]:[]);ex(s)&&(o=t().createImportStarHelper(o));const c=i?[n.createParameterDeclaration(void 0,void 0,"s")]:[];let l;l=d>=2?n.createArrowFunction(void 0,void 0,c,void 0,void 0,o):n.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,n.createBlock([n.createReturnStatement(o)]));return n.createCallExpression(n.createPropertyAccessExpression(a,"then"),void 0,[l])}function P(e,n){return!ex(s)||2&uf(e)?n:XB(e)?t().createImportStarHelper(n):YB(e)?t().createImportDefaultHelper(n):n}function F(e){const t=tN(n,e,h,l,c,s),r=[];return t&&r.push(t),n.createCallExpression(n.createIdentifier("require"),void 0,r)}function G(e,t,r){const i=Q(e);if(i){let a=GR(e)?t:n.createAssignment(e,t);for(const e of i)jA(a,8),a=X(e,a,r);return a}return n.createAssignment(e,t)}function B(t){return Jd(t.name)?TU(uB(t,R,OE),R,e,0,!1,G):n.createAssignment(VN(n.createPropertyAccessExpression(n.createIdentifier("exports"),t.name),t.name),t.initializer?uB(t.initializer,R,mu):n.createVoidZero())}function U(e){return 0!==(8388608&df(e))}function V(e,n){if(g.exportEquals)return e;const t=n.importClause;if(!t)return e;t.name&&(e=z(e,t));const r=t.namedBindings;if(r)switch(r.kind){case 271:e=z(e,r);break;case 272:for(const n of r.elements)e=z(e,n,!0)}return e}function j(e,n){return g.exportEquals?e:z(e,n)}function H(e,n){if(g.exportEquals)return e;for(const t of n.declarationList.declarations)e=K(e,t);return e}function K(e,n){if(g.exportEquals)return e;if(Jd(n.name))for(const t of n.name.elements)tI(t)||(e=K(e,t));else yd(n.name)||(e=z(e,n));return e}function W(e,t){if(g.exportEquals)return e;if(fb(t,1)){e=q(e,fb(t,1024)?n.createIdentifier("default"):n.getDeclarationName(t),n.getLocalName(t),t)}return t.name&&(e=z(e,t)),e}function z(e,t,r){const i=n.getDeclarationName(t),a=g.exportSpecifiers.get(Uc(i));if(a)for(const n of a)e=q(e,n.name,i,n.name,void 0,r);return e}function q(e,t,r,i,a,o){return e=Te(e,function(e,t,r,i,a){const o=VN(n.createExpressionStatement(X(e,t,void 0,a)),r);YR(o),i||jA(o,3072);return o}(t,r,i,a,o)),e}function J(){let e;return e=0===d?n.createExpressionStatement(X(n.createIdentifier("__esModule"),n.createTrue())):n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])])),jA(e,2097152),e}function X(e,t,r,i){return VN(i&&0!==d?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(e),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(t)])))])]):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(e)),t),r)}function Y(e){switch(e.kind){case 93:case 88:return}return e}function $(e){var t,r;if(8192&df(e)){const t=$R(h);return t?n.createPropertyAccessExpression(t,e):e}if((!yd(e)||64&e.emitNode.autoGenerate.flags)&&!FR(e)){const i=c.getReferencedExportContainer(e,GR(e));if(i&&308===i.kind)return VN(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(e)),e);const a=c.getReferencedImportDeclaration(e);if(a){if(WI(a))return VN(n.createPropertyAccessExpression(n.getGeneratedNameForNode(a.parent),n.createIdentifier("default")),e);if(QI(a)){const i=a.propertyName||a.name;return VN(n.createPropertyAccessExpression(n.getGeneratedNameForNode((null==(r=null==(t=a.parent)?void 0:t.parent)?void 0:r.parent)||a),n.cloneNode(i)),e)}}}return e}function Q(e){if(!yd(e)){const n=c.getReferencedImportDeclaration(e)||c.getReferencedValueDeclaration(e);if(n)return g&&g.exportedBindings[WB(n)]}}}var EV=E({"src/compiler/transformers/module/module.ts"(){lq(),yV={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}});function TV(e){const{factory:n,startLexicalEnvironment:t,endLexicalEnvironment:r,hoistVariableDeclaration:i}=e,a=e.getCompilerOptions(),o=e.getEmitResolver(),s=e.getEmitHost(),c=e.onSubstituteNode,l=e.onEmitNode;e.onSubstituteNode=function(e,t){if(function(e){return E&&e.id&&E[e.id]}(t=c(e,t)))return t;if(1===e)return function(e){switch(e.kind){case 79:return function(e){var t,r;if(8192&df(e)){const t=$R(m);return t?n.createPropertyAccessExpression(t,e):e}if(!yd(e)&&!FR(e)){const i=o.getReferencedImportDeclaration(e);if(i){if(WI(i))return VN(n.createPropertyAccessExpression(n.getGeneratedNameForNode(i.parent),n.createIdentifier("default")),e);if(QI(i))return VN(n.createPropertyAccessExpression(n.getGeneratedNameForNode((null==(r=null==(t=i.parent)?void 0:t.parent)?void 0:r.parent)||i),n.cloneNode(i.propertyName||i.name)),e)}}return e}(e);case 223:return function(e){if(Ub(e.operatorToken.kind)&&IC(e.left)&&!yd(e.left)&&!FR(e.left)&&!NE(e.left)){const n=$(e.left);if(n){let t=e;for(const e of n)t=V(e,Q(t));return t}}return e}(e);case 233:return function(e){if(fm(e))return n.createPropertyAccessExpression(y,n.createIdentifier("meta"));return e}(e)}return e}(t);if(4===e)return function(e){if(300===e.kind)return function(e){var t,r;const i=e.name;if(!yd(i)&&!FR(i)){const a=o.getReferencedImportDeclaration(i);if(a){if(WI(a))return VN(n.createPropertyAssignment(n.cloneNode(i),n.createPropertyAccessExpression(n.getGeneratedNameForNode(a.parent),n.createIdentifier("default"))),e);if(QI(a))return VN(n.createPropertyAssignment(n.cloneNode(i),n.createPropertyAccessExpression(n.getGeneratedNameForNode((null==(r=null==(t=a.parent)?void 0:t.parent)?void 0:r.parent)||a),n.cloneNode(a.propertyName||a.name))),e)}}return e}(e);return e}(t);return t},e.onEmitNode=function(e,n,t){if(308===n.kind){const r=WB(n);m=n,h=d[r],g=_[r],E=p[r],y=f[r],E&&delete p[r],l(e,n,t),m=void 0,h=void 0,g=void 0,y=void 0,E=void 0}else l(e,n,t)},e.enableSubstitution(79),e.enableSubstitution(300),e.enableSubstitution(223),e.enableSubstitution(233),e.enableEmitNotification(308);const d=[],u=[],_=[],p=[],f=[];let m,h,g,y,v,b,E;return qB(e,(function(i){if(i.isDeclarationFile||!(kf(i,a)||8388608&i.transformFlags))return i;const c=WB(i);m=i,b=i,h=d[c]=$B(e,i,o,a),g=n.createUniqueName("exports"),_[c]=g,y=f[c]=n.createUniqueName("context");const l=function(e){const t=new Map,r=[];for(const i of e){const e=tN(n,i,m,s,o,a);if(e){const n=e.text,a=t.get(n);void 0!==a?r[a].externalImports.push(i):(t.set(n,r.length),r.push({name:e,externalImports:[i]}))}}return r}(h.externalImports),u=function(e,i){const o=[];t();const s=lx(a,"alwaysStrict")||!a.noImplicitUseStrict&&OD(m),c=n.copyPrologue(e.statements,o,s,S);o.push(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration("__moduleName",void 0,void 0,n.createLogicalAnd(y,n.createPropertyAccessExpression(y,"id")))]))),uB(h.externalHelpersImportDeclaration,S,Bu);const l=_B(e.statements,S,Bu,c);Ae(o,v),Jp(o,r());const d=function(e){if(!h.hasExportStarsToExportValues)return;if(!h.exportedNames&&0===h.exportSpecifiers.size){let n=!1;for(const e of h.externalImports)if(275===e.kind&&e.exportClause){n=!0;break}if(!n){const n=T(void 0);return e.push(n),n.name}}const t=[];if(h.exportedNames)for(const a of h.exportedNames)"default"!==a.escapedText&&t.push(n.createPropertyAssignment(n.createStringLiteralFromNode(a),n.createTrue()));const r=n.createUniqueName("exportedNames");e.push(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,n.createObjectLiteralExpression(t,!0))])));const i=T(r);return e.push(i),i.name}(o),u=2097152&e.transformFlags?n.createModifiersFromModifierFlags(512):void 0,_=n.createObjectLiteralExpression([n.createPropertyAssignment("setters",x(d,i)),n.createPropertyAssignment("execute",n.createFunctionExpression(u,void 0,void 0,void 0,[],void 0,n.createBlock(l,!0)))],!0);return o.push(n.createReturnStatement(_)),n.createBlock(o,!0)}(i,l),A=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,g),n.createParameterDeclaration(void 0,void 0,y)],void 0,u),L=rN(n,i,s,a),C=n.createArrayLiteralExpression(W(l,(e=>e.name))),k=jA(n.updateSourceFile(i,VN(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("System"),"register"),void 0,L?[L,C,A]:[C,A]))]),i.statements)),2048);Nv(a)||pL(k,u,(e=>!e.scoped));E&&(p[c]=E,E=void 0);return m=void 0,h=void 0,g=void 0,y=void 0,v=void 0,b=void 0,k}));function T(e){const t=n.createUniqueName("exportStar"),r=n.createIdentifier("m"),i=n.createIdentifier("n"),a=n.createIdentifier("exports");let o=n.createStrictInequality(i,n.createStringLiteral("default"));return e&&(o=n.createLogicalAnd(o,n.createLogicalNot(n.createCallExpression(n.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[i])))),n.createFunctionDeclaration(void 0,void 0,t,void 0,[n.createParameterDeclaration(void 0,void 0,r)],void 0,n.createBlock([n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(a,void 0,void 0,n.createObjectLiteralExpression([]))])),n.createForInStatement(n.createVariableDeclarationList([n.createVariableDeclaration(i)]),r,n.createBlock([jA(n.createIfStatement(o,n.createExpressionStatement(n.createAssignment(n.createElementAccessExpression(a,i),n.createElementAccessExpression(r,i)))),1)])),n.createExpressionStatement(n.createCallExpression(g,void 0,[a]))],!0))}function x(e,t){const r=[];for(const i of t){const t=A(i.externalImports,(e=>nN(n,e,m))),a=t?n.getGeneratedNameForNode(t):n.createUniqueName(""),o=[];for(const r of i.externalImports){const t=nN(n,r,m);switch(r.kind){case 269:if(!r.importClause)break;case 268:Nt.assert(void 0!==t),o.push(n.createExpressionStatement(n.createAssignment(t,a))),fb(r,1)&&o.push(n.createExpressionStatement(n.createCallExpression(g,void 0,[n.createStringLiteral(Uc(t)),a])));break;case 275:if(Nt.assert(void 0!==t),r.exportClause)if(nw(r.exportClause)){const e=[];for(const t of r.exportClause.elements)e.push(n.createPropertyAssignment(n.createStringLiteral(Uc(t.name)),n.createElementAccessExpression(a,n.createStringLiteral(Uc(t.propertyName||t.name)))));o.push(n.createExpressionStatement(n.createCallExpression(g,void 0,[n.createObjectLiteralExpression(e,!0)])))}else o.push(n.createExpressionStatement(n.createCallExpression(g,void 0,[n.createStringLiteral(Uc(r.exportClause.name)),a])));else o.push(n.createExpressionStatement(n.createCallExpression(e,void 0,[a])))}}r.push(n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,a)],void 0,n.createBlock(o,!0)))}return n.createArrayLiteralExpression(r,!0)}function S(e){switch(e.kind){case 269:return function(e){let t;e.importClause&&i(nN(n,e,m));if(N(e)){const n=WB(e);u[n]=D(u[n],e)}else t=D(t,e);return Ve(t)}(e);case 268:return function(e){let t;if(Nt.assert(xh(e),"import= for internal module references should be handled in an earlier transformer."),i(nN(n,e,m)),N(e)){const n=WB(e);u[n]=O(u[n],e)}else t=O(t,e);return Ve(t)}(e);case 275:return function(e){return void Nt.assertIsDefined(e)}(e);case 274:return function(e){if(e.isExportEquals)return;const t=uB(e.expression,q,mu),r=e.original;if(!r||!N(r))return U(n.createIdentifier("default"),t,!0);{const r=WB(e);u[r]=B(u[r],n.createIdentifier("default"),t,!0)}}(e);default:return j(e)}}function L(e){if(Jd(e.name))for(const n of e.name.elements)tI(n)||L(n);else i(n.cloneNode(e.name))}function C(e){return 0===(4194304&df(e))&&(308===b.kind||0===(3&Oc(e).flags))}function k(n,t){const r=t?I:w;return Jd(n.name)?TU(n,q,e,0,!1,r):n.initializer?r(n.name,uB(n.initializer,q,mu)):n.name}function I(e,n,t){return R(e,n,t,!0)}function w(e,n,t){return R(e,n,t,!1)}function R(e,t,r,a){return i(n.cloneNode(e)),a?V(e,Q(VN(n.createAssignment(e,t),r))):Q(VN(n.createAssignment(e,t),r))}function N(e){return 0!==(8388608&df(e))}function D(e,n){if(h.exportEquals)return e;const t=n.importClause;if(!t)return e;t.name&&(e=G(e,t));const r=t.namedBindings;if(r)switch(r.kind){case 271:e=G(e,r);break;case 272:for(const n of r.elements)e=G(e,n)}return e}function O(e,n){return h.exportEquals?e:G(e,n)}function M(e,n,t){if(h.exportEquals)return e;for(const r of n.declarationList.declarations)(r.initializer||t)&&(e=P(e,r,t));return e}function P(e,t,r){if(h.exportEquals)return e;if(Jd(t.name))for(const n of t.name.elements)tI(n)||(e=P(e,n,r));else if(!yd(t.name)){let i;r&&(e=B(e,t.name,n.getLocalName(t)),i=Uc(t.name)),e=G(e,t,i)}return e}function F(e,t){if(h.exportEquals)return e;let r;if(fb(t,1)){const i=fb(t,1024)?n.createStringLiteral("default"):t.name;e=B(e,i,n.getLocalName(t)),r=Py(i)}return t.name&&(e=G(e,t,r)),e}function G(e,t,r){if(h.exportEquals)return e;const i=n.getDeclarationName(t),a=h.exportSpecifiers.get(Uc(i));if(a)for(const n of a)n.name.escapedText!==r&&(e=B(e,n.name,i));return e}function B(e,n,t,r){return e=Te(e,U(n,t,r))}function U(e,t,r){const i=n.createExpressionStatement(V(e,t));return YR(i),r||jA(i,3072),i}function V(e,t){const r=IC(e)?n.createStringLiteralFromNode(e):e;return jA(t,3072|df(t)),ZA(n.createCallExpression(g,void 0,[r,t]),t)}function j(t){switch(t.kind){case 240:return function(e){if(!C(e.declarationList))return uB(e,q,Bu);let t;const r=fb(e,1),i=N(e);for(const n of e.declarationList.declarations)n.initializer?t=Te(t,k(n,r&&!i)):L(n);let a;if(t&&(a=Te(a,VN(n.createExpressionStatement(n.inlineExpressions(t)),e))),i){const n=WB(e);u[n]=M(u[n],e,r)}else a=M(a,e,!1);return Ve(a)}(t);case 259:return function(t){if(v=fb(t,1)?Te(v,n.updateFunctionDeclaration(t,_B(t.modifiers,Y,jd),t.asteriskToken,n.getDeclarationName(t,!0,!0),void 0,_B(t.parameters,q,qC),void 0,uB(t.body,q,pI))):Te(v,EB(t,q,e)),N(t)){const e=WB(t);u[e]=F(u[e],t)}else v=F(v,t)}(t);case 260:return function(e){let t;const r=n.getLocalName(e);if(i(r),t=Te(t,VN(n.createExpressionStatement(n.createAssignment(r,VN(n.createClassExpression(_B(e.modifiers,Y,jd),e.name,void 0,_B(e.heritageClauses,q,Tw),_B(e.members,q,Pd)),e))),e)),N(e)){const n=WB(e);u[n]=F(u[n],e)}else t=F(t,e);return Ve(t)}(t);case 245:return H(t,!0);case 246:return function(t){const r=b;return b=t,t=n.updateForInStatement(t,K(t.initializer),uB(t.expression,q,mu),vB(t.statement,j,e)),b=r,t}(t);case 247:return function(t){const r=b;return b=t,t=n.updateForOfStatement(t,t.awaitModifier,K(t.initializer),uB(t.expression,q,mu),vB(t.statement,j,e)),b=r,t}(t);case 243:return function(t){return n.updateDoStatement(t,vB(t.statement,j,e),uB(t.expression,q,mu))}(t);case 244:return function(t){return n.updateWhileStatement(t,uB(t.expression,q,mu),vB(t.statement,j,e))}(t);case 253:return function(e){return n.updateLabeledStatement(e,e.label,Nt.checkDefined(uB(e.statement,j,Bu,n.liftToBlock)))}(t);case 251:return function(e){return n.updateWithStatement(e,uB(e.expression,q,mu),Nt.checkDefined(uB(e.statement,j,Bu,n.liftToBlock)))}(t);case 252:return function(e){return n.updateSwitchStatement(e,uB(e.expression,q,mu),Nt.checkDefined(uB(e.caseBlock,j,VI)))}(t);case 266:return function(e){const t=b;return b=e,e=n.updateCaseBlock(e,_B(e.clauses,j,qu)),b=t,e}(t);case 292:return function(e){return n.updateCaseClause(e,uB(e.expression,q,mu),_B(e.statements,j,Bu))}(t);case 293:case 255:return function(n){return EB(n,j,e)}(t);case 295:return function(e){const t=b;return b=e,e=n.updateCatchClause(e,e.variableDeclaration,Nt.checkDefined(uB(e.block,j,pI))),b=t,e}(t);case 238:return function(n){const t=b;return b=n,n=EB(n,j,e),b=t,n}(t);case 358:return function(e){if(N(e)&&240===e.original.kind){const n=WB(e),t=fb(e.original,1);u[n]=M(u[n],e.original,t)}return e}(t);case 359:return function(e){const n=WB(e),t=u[n];if(t)return delete u[n],Te(t,e);{const n=Oc(e);if(Ru(n))return Te(G(t,n),e)}return e}(t);default:return q(t)}}function H(t,r){const i=b;return b=t,t=n.updateForStatement(t,uB(t.initializer,r?K:J,Lu),uB(t.condition,q,mu),uB(t.incrementor,J,mu),vB(t.statement,r?j:q,e)),b=i,t}function K(e){if(function(e){return DI(e)&&C(e)}(e)){let t;for(const n of e.declarations)t=Te(t,k(n,!1)),n.initializer||L(n);return t?n.inlineExpressions(t):n.createOmittedExpression()}return uB(e,J,Lu)}function z(t,r){if(!(276828160&t.transformFlags))return t;switch(t.kind){case 245:return H(t,!1);case 241:return function(e){return n.updateExpressionStatement(e,uB(e.expression,J,mu))}(t);case 214:return function(e,t){return n.updateParenthesizedExpression(e,uB(e.expression,t?J:q,mu))}(t,r);case 356:return function(e,t){return n.updatePartiallyEmittedExpression(e,uB(e.expression,t?J:q,mu))}(t,r);case 223:if(Wb(t))return function(n,t){if(X(n.left))return TU(n,q,e,0,!t);return EB(n,q,e)}(t,r);break;case 210:if(pm(t))return function(e){const t=tN(n,e,m,s,o,a),r=uB(De(e.arguments),q,mu),i=!t||r&&_C(r)&&r.text===t.text?r:t;return n.createCallExpression(n.createPropertyAccessExpression(y,n.createIdentifier("import")),void 0,i?[i]:[])}(t);break;case 221:case 222:return function(t,r){if((45===t.operator||46===t.operator)&&IC(t.operand)&&!yd(t.operand)&&!FR(t.operand)&&!NE(t.operand)){const e=$(t.operand);if(e){let a,o=uB(t.operand,q,mu);Jk(t)?o=n.updatePrefixUnaryExpression(t,o):(o=n.updatePostfixUnaryExpression(t,o),r||(a=n.createTempVariable(i),o=n.createAssignment(a,o),VN(o,t)),o=n.createComma(o,n.cloneNode(t.operand)),VN(o,t));for(const n of e)o=V(n,Q(o));return a&&(o=n.createComma(o,a),VN(o,t)),o}}return EB(t,q,e)}(t,r)}return EB(t,q,e)}function q(e){return z(e,!1)}function J(e){return z(e,!0)}function X(e){if(Hb(e,!0))return X(e.left);if(eI(e))return X(e.expression);if(Ok(e))return ce(e.properties,X);if(Dk(e))return ce(e.elements,X);if(Aw(e))return X(e.name);if(Sw(e))return X(e.initializer);if(IC(e)){const n=o.getReferencedExportContainer(e);return void 0!==n&&308===n.kind}return!1}function Y(e){switch(e.kind){case 93:case 88:return}return e}function $(e){let t;if(!yd(e)){const r=o.getReferencedImportDeclaration(e)||o.getReferencedValueDeclaration(e);if(r){const i=o.getReferencedExportContainer(e,!1);i&&308===i.kind&&(t=Te(t,n.getDeclarationName(r))),t=Ae(t,h&&h.exportedBindings[WB(r)])}}return t}function Q(e){return void 0===E&&(E=[]),E[ZG(e)]=!0,e}}var xV=E({"src/compiler/transformers/module/system.ts"(){lq()}});function SV(e){const{factory:n,getEmitHelperFactory:t}=e,r=e.getEmitHost(),i=e.getEmitResolver(),a=e.getCompilerOptions(),o=HT(a),s=e.onEmitNode,c=e.onSubstituteNode;let l,d,u;return e.onEmitNode=function(e,n,t){Iw(n)?((OD(n)||XT(a))&&a.importHelpers&&(l=new Map),s(e,n,t),l=void 0):s(e,n,t)},e.onSubstituteNode=function(e,t){if(t=c(e,t),l&&IC(t)&&8192&df(t))return function(e){const t=Uc(e);let r=l.get(t);r||l.set(t,r=n.createUniqueName(t,48));return r}(t);return t},e.enableEmitNotification(308),e.enableSubstitution(79),qB(e,(function(r){if(r.isDeclarationFile)return r;if(OD(r)||XT(a)){d=r,u=void 0;let i=function(r){const i=ZR(n,t(),r,a);if(i){const e=[],t=n.copyPrologue(r.statements,e);return Te(e,i),Ae(e,_B(r.statements,_,Bu,t)),n.updateSourceFile(r,VN(n.createNodeArray(e),r.statements))}return EB(r,_,e)}(r);return d=void 0,u&&(i=n.updateSourceFile(i,VN(n.createNodeArray(Xp(i.statements.slice(),u)),i.statements))),!OD(r)||ce(i.statements,Tu)?i:n.updateSourceFile(i,VN(n.createNodeArray([...i.statements,xR(n)]),i.statements))}return r}));function _(e){switch(e.kind){case 268:return KT(a)>=100?function(e){let t;return Nt.assert(xh(e),"import= for internal module references should be handled in an earlier transformer."),t=Te(t,FA(VN(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(e.name),void 0,void 0,p(e))],o>=2?2:0)),e),e)),t=function(e,t){fb(t,1)&&(e=Te(e,n.createExportDeclaration(void 0,t.isTypeOnly,n.createNamedExports([n.createExportSpecifier(!1,void 0,Uc(t.name))]))));return e}(t,e),Ve(t)}(e):void 0;case 274:return function(e){return e.isExportEquals?void 0:e}(e);case 275:return function(e){if(void 0!==a.module&&a.module>5)return e;if(!e.exportClause||!YI(e.exportClause)||!e.moduleSpecifier)return e;const t=e.exportClause.name,r=n.getGeneratedNameForNode(t),i=n.createImportDeclaration(void 0,n.createImportClause(!1,void 0,n.createNamespaceImport(r)),e.moduleSpecifier,e.assertClause);FA(i,e.exportClause);const o=af(e)?n.createExportDefault(r):n.createExportDeclaration(void 0,!1,n.createNamedExports([n.createExportSpecifier(!1,r,t)]));return FA(o,e),[i,o]}(e)}return e}function p(e){const t=tN(n,e,Nt.checkDefined(d),r,i,a),s=[];if(t&&s.push(t),!u){const e=n.createUniqueName("_createRequire",48),t=n.createImportDeclaration(void 0,n.createImportClause(!1,void 0,n.createNamedImports([n.createImportSpecifier(!1,n.createIdentifier("createRequire"),e)])),n.createStringLiteral("module")),r=n.createUniqueName("__require",48),i=n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,n.createCallExpression(n.cloneNode(e),void 0,[n.createPropertyAccessExpression(n.createMetaProperty(100,n.createIdentifier("meta")),n.createIdentifier("url"))]))],o>=2?2:0));u=[t,i]}const c=u[1].declarationList.declarations[0].name;return Nt.assertNode(c,IC),n.createCallExpression(n.cloneNode(c),void 0,s)}}var AV=E({"src/compiler/transformers/module/esnextAnd2015.ts"(){lq()}});function LV(e){const n=e.onSubstituteNode,t=e.onEmitNode,r=SV(e),i=e.onSubstituteNode,a=e.onEmitNode;e.onSubstituteNode=n,e.onEmitNode=t;const o=bV(e),s=e.onSubstituteNode,c=e.onEmitNode;let l;return e.onSubstituteNode=function(e,t){return Iw(t)?(l=t,n(e,t)):l?99===l.impliedNodeFormat?i(e,t):s(e,t):n(e,t)},e.onEmitNode=function(e,n,r){Iw(n)&&(l=n);if(!l)return t(e,n,r);if(99===l.impliedNodeFormat)return a(e,n,r);return c(e,n,r)},e.enableSubstitution(308),e.enableEmitNotification(308),function(n){return 308===n.kind?d(n):function(n){return e.factory.createBundle(W(n.sourceFiles,d),n.prepends)}(n)};function d(e){if(e.isDeclarationFile)return e;l=e;const n=(99===e.impliedNodeFormat?r:o)(e);return l=void 0,Nt.assert(Iw(n)),n}}var CV=E({"src/compiler/transformers/module/node.ts"(){lq()}});function kV(e){return NI(e)||YC(e)||XC(e)||Nk(e)||$u(e)||Qu(e)||ik(e)||rk(e)||QC(e)||$C(e)||OI(e)||qC(e)||zC(e)||rI(e)||HI(e)||FI(e)||ek(e)||ak(e)||Mk(e)||Ag(e)}function IV(e){return $u(e)||Qu(e)?function(n){const t=function(n){return mb(e)?n.errorModuleName?2===n.accessibility?Wo.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wo.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wo.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:260===e.parent.kind?n.errorModuleName?2===n.accessibility?Wo.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wo.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wo.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?Wo.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Wo.Property_0_of_exported_interface_has_or_is_using_private_name_1}(n);return void 0!==t?{diagnosticMessage:t,errorNode:e,typeName:e.name}:void 0}:$C(e)||QC(e)?function(n){const t=function(n){return mb(e)?n.errorModuleName?2===n.accessibility?Wo.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wo.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wo.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:260===e.parent.kind?n.errorModuleName?2===n.accessibility?Wo.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wo.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wo.Public_method_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?Wo.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Wo.Method_0_of_exported_interface_has_or_is_using_private_name_1}(n);return void 0!==t?{diagnosticMessage:t,errorNode:e,typeName:e.name}:void 0}:wV(e)}function wV(e){return NI(e)||YC(e)||XC(e)||Mk(e)||Nk(e)||ek(e)?n:$u(e)||Qu(e)?function(n){let t;t=175===e.kind?mb(e)?n.errorModuleName?Wo.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wo.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?Wo.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wo.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:mb(e)?n.errorModuleName?2===n.accessibility?Wo.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wo.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wo.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?2===n.accessibility?Wo.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wo.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wo.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:t,errorNode:e.name,typeName:e.name}}:ik(e)||rk(e)||QC(e)||$C(e)||OI(e)||ak(e)?function(n){let t;switch(e.kind){case 177:t=n.errorModuleName?Wo.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wo.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 176:t=n.errorModuleName?Wo.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wo.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 178:t=n.errorModuleName?Wo.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wo.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 171:case 170:t=mb(e)?n.errorModuleName?2===n.accessibility?Wo.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Wo.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Wo.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:260===e.parent.kind?n.errorModuleName?2===n.accessibility?Wo.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Wo.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Wo.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:n.errorModuleName?Wo.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Wo.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 259:t=n.errorModuleName?2===n.accessibility?Wo.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Wo.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:Wo.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return Nt.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:t,errorNode:e.name||e}}:qC(e)?Ac(e,e.parent)&&fb(e.parent,8)?n:function(n){const t=function(n){switch(e.parent.kind){case 173:return n.errorModuleName?2===n.accessibility?Wo.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wo.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wo.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 177:case 182:return n.errorModuleName?Wo.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wo.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 176:return n.errorModuleName?Wo.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wo.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 178:return n.errorModuleName?Wo.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wo.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 171:case 170:return mb(e.parent)?n.errorModuleName?2===n.accessibility?Wo.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wo.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wo.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:260===e.parent.parent.kind?n.errorModuleName?2===n.accessibility?Wo.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wo.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Wo.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?Wo.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Wo.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 259:case 181:return n.errorModuleName?2===n.accessibility?Wo.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wo.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:Wo.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 175:case 174:return n.errorModuleName?2===n.accessibility?Wo.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wo.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:Wo.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return Nt.fail(`Unknown parent for parameter: ${Nt.formatSyntaxKind(e.parent.kind)}`)}}(n);return void 0!==t?{diagnosticMessage:t,errorNode:e,typeName:e.name}:void 0}:zC(e)?function(){let n;switch(e.parent.kind){case 260:n=Wo.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 261:n=Wo.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 197:n=Wo.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 182:case 177:n=Wo.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 176:n=Wo.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 171:case 170:n=mb(e.parent)?Wo.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:260===e.parent.parent.kind?Wo.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Wo.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 181:case 259:n=Wo.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 192:n=Wo.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 262:n=Wo.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return Nt.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:n,errorNode:e,typeName:e.name}}:rI(e)?function(){let n;n=MI(e.parent.parent)?Tw(e.parent)&&117===e.parent.token?Wo.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?Wo.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:Wo.extends_clause_of_exported_class_has_or_is_using_private_name_0:Wo.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:n,errorNode:e,typeName:Xc(e.parent.parent)}}:HI(e)?function(){return{diagnosticMessage:Wo.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}:FI(e)||Ag(e)?function(n){return{diagnosticMessage:n.errorModuleName?Wo.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:Wo.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Ag(e)?Nt.checkDefined(e.typeExpression):e.type,typeName:Ag(e)?Xc(e):e.name}}:Nt.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${Nt.formatSyntaxKind(e.kind)}`);function n(n){const t=function(n){return 257===e.kind||205===e.kind?n.errorModuleName?2===n.accessibility?Wo.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wo.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:Wo.Exported_variable_0_has_or_is_using_private_name_1:169===e.kind||208===e.kind||168===e.kind||166===e.kind&&fb(e.parent,8)?mb(e)?n.errorModuleName?2===n.accessibility?Wo.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wo.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wo.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:260===e.parent.kind||166===e.kind?n.errorModuleName?2===n.accessibility?Wo.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Wo.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Wo.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?Wo.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Wo.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(n);return void 0!==t?{diagnosticMessage:t,errorNode:e,typeName:e.name}:void 0}}var RV,NV=E({"src/compiler/transformers/declarations/diagnostics.ts"(){lq()}});function DV(e,n,t){const r=e.getCompilerOptions();return YV(n,e,gA,r,t?[t]:j(e.getSourceFiles(),Rh),[PV],!1).diagnostics}function OV(e,n){return rt(n.text.substring(e.pos,e.end),"@internal")}function MV(e,n){const t=Fc(e);if(t&&166===t.kind){const r=t.parent.parameters.indexOf(t),i=r>0?t.parent.parameters[r-1]:void 0,a=n.text,o=i?de(Ks(a,Ns(a,i.end+1,!1,!0)),Hs(a,e.pos)):Ks(a,Ns(a,e.pos,!1,!0));return o&&o.length&&OV(Ge(o),n)}return!!A(t&&Em(t,n),(e=>OV(e,n)))}function PV(e){const n=()=>Nt.fail("Diagnostic emitted without context");let t,r,a,o,s,c,l=n,d=!0,u=!1,_=!1,p=!1,f=!1;const{factory:m}=e,h=e.getEmitHost(),g={trackSymbol:function(e,n,t){if(262144&e.flags)return!1;const r=R(L.isSymbolAccessible(e,n,t,!0));return w(L.getTypeReferenceDirectivesForSymbol(e,t)),r},reportInaccessibleThisError:function(){(y||v)&&e.addDiagnostic(qf(y||v,Wo.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,N(),"this"))},reportInaccessibleUniqueSymbolError:function(){(y||v)&&e.addDiagnostic(qf(y||v,Wo.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,N(),"unique symbol"))},reportCyclicStructureError:function(){(y||v)&&e.addDiagnostic(qf(y||v,Wo.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,N()))},reportPrivateInBaseOfClassExpression:function(n){(y||v)&&e.addDiagnostic(qf(y||v,Wo.Property_0_of_exported_class_expression_may_not_be_private_or_protected,n))},reportLikelyUnsafeImportRequiredError:function(n){(y||v)&&e.addDiagnostic(qf(y||v,Wo.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,N(),n))},reportTruncationError:function(){(y||v)&&e.addDiagnostic(qf(y||v,Wo.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:h,trackReferencedAmbientModule:function(e,n){const t=L.getTypeReferenceDirectivesForSymbol(n,67108863);if(S(t))return w(t);const r=Dp(e);E.set(WB(r),r)},trackExternalModuleSymbolOfImportTypeNode:function(e){u||(c||(c=[])).push(e)},reportNonlocalAugmentation:function(n,t,r){var i;const a=null==(i=t.declarations)?void 0:i.find((e=>Dp(e)===n)),o=j(r.declarations,(e=>Dp(e)!==n));if(a&&o)for(const s of o)e.addDiagnostic(cS(qf(s,Wo.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),qf(a,Wo.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(n){(y||v)&&e.addDiagnostic(qf(y||v,Wo.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,n))},reportImportTypeNodeResolutionModeOverride:function(){yv()||!y&&!v||e.addDiagnostic(qf(y||v,Wo.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}};let y,v,b,E,T,x;const L=e.getEmitResolver(),C=e.getCompilerOptions(),{noResolve:k,stripInternal:I}=C;return function(i){if(308===i.kind&&i.isDeclarationFile)return i;if(309===i.kind){u=!0,E=new Map,T=new Map;let r=!1;const c=m.createBundle(W(i.sourceFiles,(i=>{if(i.isDeclarationFile)return;if(r=r||i.hasNoDefaultLib,b=i,t=i,a=void 0,s=!1,o=new Map,l=n,p=!1,f=!1,O(i,E),M(i,T),om(i)||sm(i)){_=!1,d=!1;const n=Ch(i)?m.createNodeArray(D(i,!0)):_B(i.statements,ae,Bu);return m.updateSourceFile(i,[m.createModuleDeclaration([m.createModifier(136)],m.createStringLiteral(xv(e.getEmitHost(),i)),m.createModuleBlock(VN(m.createNodeArray(re(n)),i.statements)))],!0,[],[],!1,[])}d=!0;const c=Ch(i)?m.createNodeArray(D(i)):_B(i.statements,ae,Bu);return m.updateSourceFile(i,re(c),!0,[],[],!1,[])})),ee(i.prepends,(e=>{if(311===e.kind){const n=NA(e,"dts",I);return r=r||!!n.hasNoDefaultLib,O(n,E),w(W(n.typeReferenceDirectives,(e=>[e.fileName,e.resolutionMode]))),M(n,T),n}return e})));c.syntheticFileReferences=[],c.syntheticTypeReferences=k(),c.syntheticLibReferences=L(),c.hasNoDefaultLib=r;const g=po(vo(cj(i,h,!0).declarationFilePath)),y=N(c.syntheticFileReferences,g);return E.forEach(y),c}d=!0,p=!1,f=!1,t=i,b=i,l=n,u=!1,_=!1,s=!1,a=void 0,o=new Map,r=void 0,E=O(b,new Map),T=M(b,new Map);const g=[],y=po(vo(cj(i,h,!0).declarationFilePath)),v=N(g,y);let S;if(Ch(b))S=m.createNodeArray(D(i)),E.forEach(v),x=j(S,Of);else{const e=_B(i.statements,ae,Bu);S=VN(m.createNodeArray(re(e)),i.statements),E.forEach(v),x=j(S,Of),OD(i)&&(!_||p&&!f)&&(S=VN(m.createNodeArray([...S,xR(m)]),S))}const A=m.updateSourceFile(i,S,!0,g,k(),i.hasNoDefaultLib,L());return A.exportedModulesFromDeclarationEmit=c,A;function L(){return Qe(T.keys(),(e=>({fileName:e,pos:-1,end:-1})))}function k(){return r?ee(Qe(r.keys()),R):[]}function R([e,n]){if(x)for(const t of x)if(HI(t)&&cw(t.moduleReference)){const n=t.moduleReference.expression;if(o_(n)&&n.text===e)return}else if(KI(t)&&_C(t.moduleSpecifier)&&t.moduleSpecifier.text===e)return;return{fileName:e,pos:-1,end:-1,...n?{resolutionMode:n}:void 0}}function N(e,n){return t=>{let r;if(t.isDeclarationFile)r=t.fileName;else{if(u&&G(i.sourceFiles,t))return;const e=cj(t,h,!0);r=e.declarationFilePath||e.jsFilePath||t.fileName}if(r){const t=lG(C,b,Co(n,h.getCurrentDirectory(),h.getCanonicalFileName),Co(r,h.getCurrentDirectory(),h.getCanonicalFileName),h);if(!ro(t))return void w([[t,void 0]]);let i=jo(n,r,h.getCurrentDirectory(),h.getCanonicalFileName,!1);if(pt(i,"./")&&ao(i)&&(i=i.substring(2)),pt(i,"node_modules/")||iF(i))return;e.push({pos:-1,end:-1,fileName:i})}}}};function w(e){if(e){r=r||new Set;for(const n of e)r.add(n)}}function R(n){if(0===n.accessibility){if(n&&n.aliasesToMakeVisible)if(a)for(const e of n.aliasesToMakeVisible)Le(a,e);else a=n.aliasesToMakeVisible}else{const t=l(n);if(t)return t.typeName?e.addDiagnostic(qf(n.errorNode||t.errorNode,t.diagnosticMessage,sf(t.typeName),n.errorSymbolName,n.errorModuleName)):e.addDiagnostic(qf(n.errorNode||t.errorNode,t.diagnosticMessage,n.errorSymbolName,n.errorModuleName)),!0}return!1}function N(){return y?Vf(y):v&&Xc(v)?Vf(Xc(v)):v&&ZI(v)?v.isExportEquals?"export=":"default":"(Missing)"}function D(e,n){const t=l;l=n=>n.errorNode&&kV(n.errorNode)?wV(n.errorNode)(n):{diagnosticMessage:n.errorModuleName?Wo.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:Wo.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:n.errorNode||e};const r=L.getDeclarationStatementsForSourceFile(e,RV,g,n);return l=t,r}function O(e,n){return k||!Rw(e)&&Ch(e)||A(e.referencedFiles,(t=>{const r=h.getSourceFileFromReference(e,t);r&&n.set(WB(r),r)})),n}function M(e,n){return A(e.libReferenceDirectives,(e=>{h.getLibFileFromReference(e)&&n.set(In(e.fileName),!0)})),n}function P(e){return 79===e.kind?e:204===e.kind?m.updateArrayBindingPattern(e,_B(e.elements,n,Yd)):m.updateObjectBindingPattern(e,_B(e.elements,n,Nk));function n(e){return 229===e.kind?e:e.propertyName&&IC(e.propertyName)&&IC(e.name)&&!e.symbol.isReferenced&&!Ly(e.propertyName)?m.updateBindingElement(e,e.dotDotDotToken,void 0,e.propertyName,B(e)?e.initializer:void 0):m.updateBindingElement(e,e.dotDotDotToken,e.propertyName,P(e.name),B(e)?e.initializer:void 0)}}function F(e,n,t){let r;s||(r=l,l=wV(e));const i=m.updateParameterDeclaration(e,function(e,n,t){return gA.createModifiersFromModifierFlags(FV(e,n,t))}(e,n),e.dotDotDotToken,P(e.name),L.isOptionalParameter(e)?e.questionToken||m.createToken(57):void 0,V(e,t||e.type,!0),U(e));return s||(l=r),i}function B(e){return function(e){switch(e.kind){case 169:case 168:return!pb(e,8);case 166:case 257:return!0}return!1}(e)&&L.isLiteralConstDeclaration(Fc(e))}function U(e){if(B(e))return L.createLiteralConstValue(Fc(e),g)}function V(e,n,r){if(!r&&pb(e,8))return;if(B(e))return;const i=166===e.kind&&(L.isRequiredInitializedParameter(e)||L.isOptionalUninitializedParameterProperty(e));if(n&&!i)return uB(n,ie,zd);if(!Fc(e))return n?uB(n,ie,zd):m.createKeywordTypeNode(131);if(175===e.kind)return m.createKeywordTypeNode(131);let a;return y=e.name,s||(a=l,l=wV(e)),257===e.kind||205===e.kind?o(L.createTypeOfDeclaration(e,t,RV,g)):166===e.kind||169===e.kind||168===e.kind?XC(e)||!e.initializer?o(L.createTypeOfDeclaration(e,t,RV,g,i)):o(L.createTypeOfDeclaration(e,t,RV,g,i)||L.createTypeOfExpression(e.initializer,t,RV,g)):o(L.createReturnTypeOfSignatureDeclaration(e,t,RV,g));function o(e){return y=void 0,s||(l=a),e||m.createKeywordTypeNode(131)}}function H(e){switch((e=Fc(e)).kind){case 259:case 264:case 261:case 260:case 262:case 263:return!L.isDeclarationVisible(e);case 257:return!K(e);case 268:case 269:case 275:case 274:return!1;case 172:return!0}return!1}function K(e){return!tI(e)&&(Jd(e.name)?ce(e.name.elements,K):L.isDeclarationVisible(e))}function z(e,n,t){if(pb(e,8))return m.createNodeArray();const r=W(n,(e=>F(e,t)));return r?m.createNodeArray(r,n.hasTrailingComma):m.createNodeArray()}function q(e,n){let t;if(!n){const n=zv(e);n&&(t=[F(n)])}if(tk(e)){let r;if(!n){const n=Kv(e);if(n){r=F(n,void 0,fe(e,L.getAllAccessorDeclarations(e)))}}r||(r=m.createParameterDeclaration(void 0,void 0,"value")),t=Te(t,r)}return m.createNodeArray(t||i)}function Y(e,n){return pb(e,8)?void 0:_B(n,ie,zC)}function $(e){return Iw(e)||FI(e)||BI(e)||MI(e)||PI(e)||Id(e)||ak(e)||Ak(e)}function Q(e,n){R(L.isEntityNameVisible(e,n)),w(L.getTypeReferenceDirectivesForEntityName(e))}function Z(e,n){return Zu(e)&&Zu(n)&&(e.jsDoc=n.jsDoc),ZA(e,QA(n))}function ne(n,t){if(t){if(_=_||264!==n.kind&&202!==n.kind,o_(t))if(u){const t=Av(e.getEmitHost(),L,n);if(t)return m.createStringLiteral(t)}else{const e=L.getSymbolOfExternalModuleSpecifier(t);e&&(c||(c=[])).push(e)}return t}}function te(n){if(void 0!==CH(n))return yv()||e.addDiagnostic(qf(n,Wo.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),n}function re(e){for(;S(a);){const e=a.shift();if(!Pf(e))return Nt.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${Nt.formatSyntaxKind(e.kind)}`);const n=d;d=e.parent&&Iw(e.parent)&&!(OD(e.parent)&&u);const t=se(e);d=n,o.set(WB(e),t)}return _B(e,(function(e){if(Pf(e)){const n=WB(e);if(o.has(n)){const t=o.get(n);return o.delete(n),t&&((gn(t)?ce(t,Eu):Eu(t))&&(p=!0),Iw(e.parent)&&(gn(t)?ce(t,Tu):Tu(t))&&(_=!0)),t}}return e}),Bu)}function ie(n){if(ue(n))return;if(Pu(n)){if(H(n))return;if(Ny(n)&&!L.isLateBound(Fc(n)))return}if(Id(n)&&L.isImplementationOfOverload(n))return;if(_I(n))return;let r;$(n)&&(r=t,t=n);const i=l,a=kV(n),o=s;let c=(184===n.kind||197===n.kind)&&262!==n.parent.kind;if((QC(n)||$C(n))&&pb(n,8)){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations[0]!==n)return;return u(m.createPropertyDeclaration(pe(n),n.name,void 0,void 0,void 0))}if(a&&!s&&(l=wV(n)),dk(n)&&Q(n.exprName,t),c&&(s=!0),function(e){switch(e.kind){case 177:case 173:case 171:case 174:case 175:case 169:case 168:case 170:case 176:case 178:case 257:case 165:case 230:case 180:case 191:case 181:case 182:case 202:return!0}return!1}(n))switch(n.kind){case 230:{(Ld(n.expression)||qb(n.expression))&&Q(n.expression,t);const r=EB(n,ie,e);return u(m.updateExpressionWithTypeArguments(r,r.expression,r.typeArguments))}case 180:{Q(n.typeName,t);const r=EB(n,ie,e);return u(m.updateTypeReferenceNode(r,r.typeName,r.typeArguments))}case 177:return u(m.updateConstructSignature(n,Y(n,n.typeParameters),z(n,n.parameters),V(n,n.type)));case 173:return u(m.createConstructorDeclaration(pe(n),z(n,n.parameters,0),void 0));case 171:if(wC(n.name))return u(void 0);return u(m.createMethodDeclaration(pe(n),void 0,n.name,n.questionToken,Y(n,n.typeParameters),z(n,n.parameters),V(n,n.type),void 0));case 174:{if(wC(n.name))return u(void 0);const e=fe(n,L.getAllAccessorDeclarations(n));return u(m.updateGetAccessorDeclaration(n,pe(n),n.name,q(n,pb(n,8)),V(n,e),void 0))}case 175:return wC(n.name)?u(void 0):u(m.updateSetAccessorDeclaration(n,pe(n),n.name,q(n,pb(n,8)),void 0));case 169:return wC(n.name)?u(void 0):u(m.updatePropertyDeclaration(n,pe(n),n.name,n.questionToken,V(n,n.type),U(n)));case 168:return wC(n.name)?u(void 0):u(m.updatePropertySignature(n,pe(n),n.name,n.questionToken,V(n,n.type)));case 170:return wC(n.name)?u(void 0):u(m.updateMethodSignature(n,pe(n),n.name,n.questionToken,Y(n,n.typeParameters),z(n,n.parameters),V(n,n.type)));case 176:return u(m.updateCallSignature(n,Y(n,n.typeParameters),z(n,n.parameters),V(n,n.type)));case 178:return u(m.updateIndexSignature(n,pe(n),z(n,n.parameters),uB(n.type,ie,zd)||m.createKeywordTypeNode(131)));case 257:return Jd(n.name)?le(n.name):(c=!0,s=!0,u(m.updateVariableDeclaration(n,n.name,void 0,V(n,n.type),U(n))));case 165:return 171===(d=n).parent.kind&&pb(d.parent,8)&&(n.default||n.constraint)?u(m.updateTypeParameterDeclaration(n,n.modifiers,n.name,void 0,void 0)):u(EB(n,ie,e));case 191:{const e=uB(n.checkType,ie,zd),r=uB(n.extendsType,ie,zd),i=t;t=n.trueType;const a=uB(n.trueType,ie,zd);t=i;const o=uB(n.falseType,ie,zd);return Nt.assert(e),Nt.assert(r),Nt.assert(a),Nt.assert(o),u(m.updateConditionalTypeNode(n,e,r,a,o))}case 181:return u(m.updateFunctionTypeNode(n,_B(n.typeParameters,ie,zC),z(n,n.parameters),Nt.checkDefined(uB(n.type,ie,zd))));case 182:return u(m.updateConstructorTypeNode(n,pe(n),_B(n.typeParameters,ie,zC),z(n,n.parameters),Nt.checkDefined(uB(n.type,ie,zd))));case 202:return mm(n)?u(m.updateImportTypeNode(n,m.updateLiteralTypeNode(n.argument,ne(n,n.argument.literal)),n.assertions,n.qualifier,_B(n.typeArguments,ie,zd),n.isTypeOf)):u(n);default:Nt.assertNever(n,`Attempted to process unhandled node kind: ${Nt.formatSyntaxKind(n.kind)}`)}var d;return pk(n)&&Ss(b,n.pos).line===Ss(b,n.end).line&&jA(n,1),u(EB(n,ie,e));function u(e){return e&&a&&Ny(n)&&function(e){let n;s||(n=l,l=IV(e));y=e.name,Nt.assert(L.isLateBound(Fc(e)));const r=e;Q(r.name.expression,t),s||(l=n);y=void 0}(n),$(n)&&(t=r),a&&!s&&(l=i),c&&(s=o),e===n?e:e&&FA(Z(e,n),n)}}function ae(e){if(!function(e){switch(e.kind){case 259:case 264:case 268:case 261:case 260:case 262:case 263:case 240:case 269:case 275:case 274:return!0}return!1}(e))return;if(ue(e))return;switch(e.kind){case 275:return Iw(e.parent)&&(_=!0),f=!0,m.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,ne(e,e.moduleSpecifier),CH(e.assertClause)?e.assertClause:void 0);case 274:if(Iw(e.parent)&&(_=!0),f=!0,79===e.expression.kind)return e;{const n=m.createUniqueName("_default",16);l=()=>({diagnosticMessage:Wo.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),v=e;const t=m.createVariableDeclaration(n,void 0,L.createTypeOfExpression(e.expression,e,RV,g),void 0);v=void 0;const r=m.createVariableStatement(d?[m.createModifier(136)]:[],m.createVariableDeclarationList([t],2));return Z(r,e),VA(e),[r,m.updateExportAssignment(e,e.modifiers,n)]}}const n=se(e);return o.set(WB(e),n),e}function oe(e){if(HI(e)||pb(e,1024)||!jN(e))return e;const n=m.createModifiersFromModifierFlags(258046&Lb(e));return m.updateModifiers(e,n)}function se(e){if(a)for(;at(a,e););if(ue(e))return;switch(e.kind){case 268:return function(e){if(L.isDeclarationVisible(e)){if(280===e.moduleReference.kind){const n=Sh(e);return m.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,m.updateExternalModuleReference(e.moduleReference,ne(e,n)))}{const n=l;return l=wV(e),Q(e.moduleReference,t),l=n,e}}}(e);case 269:return function(e){if(!e.importClause)return m.updateImportDeclaration(e,e.modifiers,e.importClause,ne(e,e.moduleSpecifier),te(e.assertClause));const n=e.importClause&&e.importClause.name&&L.isDeclarationVisible(e.importClause)?e.importClause.name:void 0;if(!e.importClause.namedBindings)return n&&m.updateImportDeclaration(e,e.modifiers,m.updateImportClause(e.importClause,e.importClause.isTypeOnly,n,void 0),ne(e,e.moduleSpecifier),te(e.assertClause));if(271===e.importClause.namedBindings.kind){const t=L.isDeclarationVisible(e.importClause.namedBindings)?e.importClause.namedBindings:void 0;return n||t?m.updateImportDeclaration(e,e.modifiers,m.updateImportClause(e.importClause,e.importClause.isTypeOnly,n,t),ne(e,e.moduleSpecifier),te(e.assertClause)):void 0}const t=ee(e.importClause.namedBindings.elements,(e=>L.isDeclarationVisible(e)?e:void 0));return t&&t.length||n?m.updateImportDeclaration(e,e.modifiers,m.updateImportClause(e.importClause,e.importClause.isTypeOnly,n,t&&t.length?m.updateNamedImports(e.importClause.namedBindings,t):void 0),ne(e,e.moduleSpecifier),te(e.assertClause)):L.isImportRequiredByAugmentation(e)?m.updateImportDeclaration(e,e.modifiers,void 0,ne(e,e.moduleSpecifier),te(e.assertClause)):void 0}(e)}if(Pu(e)&&H(e))return;if(Id(e)&&L.isImplementationOfOverload(e))return;let n;$(e)&&(n=t,t=e);const r=kV(e),i=l;r&&(l=wV(e));const s=d;switch(e.kind){case 262:{d=!1;const n=c(m.updateTypeAliasDeclaration(e,pe(e),e.name,_B(e.typeParameters,ie,zC),Nt.checkDefined(uB(e.type,ie,zd))));return d=s,n}case 261:return c(m.updateInterfaceDeclaration(e,pe(e),e.name,Y(e,e.typeParameters),me(e.heritageClauses),_B(e.members,ie,Hd)));case 259:{const n=c(m.updateFunctionDeclaration(e,pe(e),void 0,e.name,Y(e,e.typeParameters),z(e,e.parameters),V(e,e.type),void 0));if(n&&L.isExpandoFunctionDeclaration(e)&&function(e){var n;if(e.body)return!0;const t=null==(n=e.symbol.declarations)?void 0:n.filter((e=>OI(e)&&!e.body));return!t||t.indexOf(e)===t.length-1}(e)){const r=L.getPropertiesOfContainerFunction(e),a=YN.createModuleDeclaration(void 0,n.name||m.createIdentifier("_default"),m.createModuleBlock([]),16);CS(a,t),a.locals=dp(r),a.symbol=r[0].parent;const o=[];let s=ee(r,(e=>{if(!e.valueDeclaration||!Mk(e.valueDeclaration))return;l=wV(e.valueDeclaration);const n=L.createTypeOfDeclaration(e.valueDeclaration,a,RV,g);l=i;const t=Bc(e.escapedName),r=Sy(t),s=r?m.getGeneratedNameForNode(e.valueDeclaration):m.createIdentifier(t);r&&o.push([s,t]);const c=m.createVariableDeclaration(s,void 0,n,void 0);return m.createVariableStatement(r?void 0:[m.createToken(93)],m.createVariableDeclarationList([c]))}));o.length?s.push(m.createExportDeclaration(void 0,!1,m.createNamedExports(W(o,(([e,n])=>m.createExportSpecifier(!1,e,n)))))):s=ee(s,(e=>m.updateModifiers(e,0)));const c=m.createModuleDeclaration(pe(e),e.name,m.createModuleBlock(s),16);if(!pb(n,1024))return[n,c];const d=m.createModifiersFromModifierFlags(-1026&Lb(n)|2),u=m.updateFunctionDeclaration(n,d,void 0,n.name,n.typeParameters,n.parameters,n.type,void 0),p=m.updateModuleDeclaration(c,d,c.name,c.body),h=m.createExportAssignment(void 0,!1,c.name);return Iw(e.parent)&&(_=!0),f=!0,[u,p,h]}return n}case 264:{d=!1;const n=e.body;if(n&&265===n.kind){const t=p,r=f;f=!1,p=!1;let i=re(_B(n.statements,ae,Bu));16777216&e.flags&&(p=!1),Sf(e)||function(e){return ce(e,_e)}(i)||f||(i=p?m.createNodeArray([...i,xR(m)]):_B(i,oe,Bu));const a=m.updateModuleBlock(n,i);d=s,p=t,f=r;const o=pe(e);return c(m.updateModuleDeclaration(e,o,Af(e)?ne(e,e.name):e.name,a))}{d=s;const t=pe(e);d=!1,uB(n,ae);const r=WB(n),i=o.get(r);return o.delete(r),c(m.updateModuleDeclaration(e,t,e.name,i))}}case 260:{y=e.name,v=e;const n=m.createNodeArray(pe(e)),t=Y(e,e.typeParameters),r=Hv(e);let i;if(r){const e=l;i=be(X(r.parameters,(e=>{if(fb(e,16476)&&!ue(e))return l=wV(e),79===e.name.kind?Z(m.createPropertyDeclaration(pe(e),e.name,e.questionToken,V(e,e.type),U(e)),e):function n(t){let r;for(const i of t.elements)tI(i)||(Jd(i.name)&&(r=de(r,n(i.name))),r=r||[],r.push(m.createPropertyDeclaration(pe(e),i.name,void 0,V(i,void 0),void 0)));return r}(e.name)}))),l=e}const a=de(de(ce(e.members,(e=>!!e.name&&wC(e.name)))?[m.createPropertyDeclaration(void 0,m.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,i),_B(e.members,ie,Pd)),o=m.createNodeArray(a),s=py(e);if(s&&!qb(s.expression)&&104!==s.expression.kind){const r=e.name?Bc(e.name.escapedText):"default",i=m.createUniqueName(`${r}_base`,16);l=()=>({diagnosticMessage:Wo.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:s,typeName:e.name});const a=m.createVariableDeclaration(i,void 0,L.createTypeOfExpression(s.expression,e,RV,g),void 0),u=m.createVariableStatement(d?[m.createModifier(136)]:[],m.createVariableDeclarationList([a],2)),_=m.createNodeArray(W(e.heritageClauses,(e=>{if(94===e.token){const n=l;l=wV(e.types[0]);const t=m.updateHeritageClause(e,W(e.types,(e=>m.updateExpressionWithTypeArguments(e,i,_B(e.typeArguments,ie,zd)))));return l=n,t}return m.updateHeritageClause(e,_B(m.createNodeArray(j(e.types,(e=>qb(e.expression)||104===e.expression.kind))),ie,rI))})));return[u,c(m.updateClassDeclaration(e,n,e.name,t,_,o))]}{const r=me(e.heritageClauses);return c(m.updateClassDeclaration(e,n,e.name,t,r,o))}}case 240:return c(function(e){if(!A(e.declarationList.declarations,K))return;const n=_B(e.declarationList.declarations,ie,NI);if(!S(n))return;return m.updateVariableStatement(e,m.createNodeArray(pe(e)),m.updateVariableDeclarationList(e.declarationList,n))}(e));case 263:return c(m.updateEnumDeclaration(e,m.createNodeArray(pe(e)),e.name,m.createNodeArray(ee(e.members,(e=>{if(ue(e))return;const n=L.getConstantValue(e);return Z(m.updateEnumMember(e,e.name,void 0!==n?"string"===typeof n?m.createStringLiteral(n):m.createNumericLiteral(n):void 0),e)})))))}return Nt.assertNever(e,`Unhandled top-level node in declaration emit: ${Nt.formatSyntaxKind(e.kind)}`);function c(a){return $(e)&&(t=n),r&&(l=i),264===e.kind&&(d=s),a===e?a:(v=void 0,y=void 0,a&&FA(Z(a,e),e))}}function le(e){return J(ee(e.elements,(e=>function(e){if(229===e.kind)return;if(e.name){if(!K(e))return;return Jd(e.name)?le(e.name):m.createVariableDeclaration(e.name,void 0,V(e,void 0),void 0)}}(e))))}function ue(e){return!!I&&!!e&&MV(e,b)}function _e(e){return ZI(e)||ew(e)}function pe(e){const n=Lb(e),t=function(e){let n=241147,t=d&&!function(e){if(261===e.kind)return!0;return!1}(e)?2:0;const r=308===e.parent.kind;(!r||u&&r&&OD(e.parent))&&(n^=2,t=0);return FV(e,n,t)}(e);return n===t?pB(e.modifiers,(e=>En(e,Ad)),Ad):m.createModifiersFromModifierFlags(t)}function fe(e,n){let t=GV(e);return t||e===n.firstAccessor||(t=GV(n.firstAccessor),l=wV(n.firstAccessor)),!t&&n.secondAccessor&&e!==n.secondAccessor&&(t=GV(n.secondAccessor),l=wV(n.secondAccessor)),t}function me(e){return m.createNodeArray(j(W(e,(e=>m.updateHeritageClause(e,_B(m.createNodeArray(j(e.types,(n=>qb(n.expression)||94===e.token&&104===n.expression.kind))),ie,rI)))),(e=>e.types&&!!e.types.length)))}}function FV(e,n=258043,t=0){let r=Lb(e)&n|t;return 1024&r&&!(1&r)&&(r^=1),1024&r&&2&r&&(r^=2),r}function GV(e){if(e)return 174===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}var BV,UV,VV=E({"src/compiler/transformers/declarations.ts"(){lq(),$G(),RV=531469}});function jV(e,n,t){return{scriptTransformers:HV(e,n,t),declarationTransformers:KV(n)}}function HV(e,n,t){if(t)return i;const r=HT(e),a=KT(e),o=ux(e),s=[];return Ae(s,n&&W(n.before,zV)),s.push(GU),e.experimentalDecorators?s.push(KU):(r<99||!o)&&s.push(zU),s.push(UU),hx(e)&&s.push(cV),r<99&&s.push(aV),r<8&&s.push(rV),r<7&&s.push(nV),r<6&&s.push(ZU),r<5&&s.push($U),r<4&&s.push(JU),r<3&&s.push(dV),r<2&&(s.push(pV),s.push(gV)),s.push(function(e){switch(e){case 99:case 7:case 6:case 5:return SV;case 4:return TV;case 100:case 199:return LV;default:return bV}}(a)),r<1&&s.push(mV),Ae(s,n&&W(n.after,zV)),s}function KV(e){const n=[];return n.push(PV),Ae(n,e&&W(e.afterDeclarations,qV)),n}function WV(e,n){return t=>{const r=e(t);return"function"===typeof r?n(t,r):function(e){return n=>ww(n)?e.transformBundle(n):e.transformSourceFile(n)}(r)}}function zV(e){return WV(e,qB)}function qV(e){return WV(e,((e,n)=>n))}function JV(e,n){return n}function XV(e,n,t){t(e,n)}function YV(e,n,t,r,i,a,o){var s,c;const l=new Array(361);let d,u,_,p,f,m=0,h=[],g=[],y=[],v=[],b=0,E=!1,T=[],x=0,S=JV,A=XV,L=0;const C=[],k={factory:t,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>n,getEmitHelperFactory:Rn((()=>iC(k))),startLexicalEnvironment:function(){Nt.assert(L>0,"Cannot modify the lexical environment during initialization."),Nt.assert(L<2,"Cannot modify the lexical environment after transformation has completed."),Nt.assert(!E,"Lexical environment is suspended."),h[b]=d,g[b]=u,y[b]=_,v[b]=m,b++,d=void 0,u=void 0,_=void 0,m=0},suspendLexicalEnvironment:function(){Nt.assert(L>0,"Cannot modify the lexical environment during initialization."),Nt.assert(L<2,"Cannot modify the lexical environment after transformation has completed."),Nt.assert(!E,"Lexical environment is already suspended."),E=!0},resumeLexicalEnvironment:function(){Nt.assert(L>0,"Cannot modify the lexical environment during initialization."),Nt.assert(L<2,"Cannot modify the lexical environment after transformation has completed."),Nt.assert(E,"Lexical environment is not suspended."),E=!1},endLexicalEnvironment:function(){let e;if(Nt.assert(L>0,"Cannot modify the lexical environment during initialization."),Nt.assert(L<2,"Cannot modify the lexical environment after transformation has completed."),Nt.assert(!E,"Lexical environment is suspended."),d||u||_){if(u&&(e=[...u]),d){const n=t.createVariableStatement(void 0,t.createVariableDeclarationList(d));jA(n,2097152),e?e.push(n):e=[n]}_&&(e=e?[...e,..._]:[..._])}b--,d=h[b],u=g[b],_=y[b],m=v[b],0===b&&(h=[],g=[],y=[],v=[]);return e},setLexicalEnvironmentFlags:function(e,n){m=n?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(e){Nt.assert(L>0,"Cannot modify the lexical environment during initialization."),Nt.assert(L<2,"Cannot modify the lexical environment after transformation has completed.");const n=jA(t.createVariableDeclaration(e),128);d?d.push(n):d=[n];1&m&&(m|=2)},hoistFunctionDeclaration:function(e){Nt.assert(L>0,"Cannot modify the lexical environment during initialization."),Nt.assert(L<2,"Cannot modify the lexical environment after transformation has completed."),jA(e,2097152),u?u.push(e):u=[e]},addInitializationStatement:function(e){Nt.assert(L>0,"Cannot modify the lexical environment during initialization."),Nt.assert(L<2,"Cannot modify the lexical environment after transformation has completed."),jA(e,2097152),_?_.push(e):_=[e]},startBlockScope:function(){Nt.assert(L>0,"Cannot start a block scope during initialization."),Nt.assert(L<2,"Cannot start a block scope after transformation has completed."),T[x]=p,x++,p=void 0},endBlockScope:function(){Nt.assert(L>0,"Cannot end a block scope during initialization."),Nt.assert(L<2,"Cannot end a block scope after transformation has completed.");const e=ce(p)?[t.createVariableStatement(void 0,t.createVariableDeclarationList(p.map((e=>t.createVariableDeclaration(e))),1))]:void 0;x--,p=T[x],0===x&&(T=[]);return e},addBlockScopedVariable:function(e){Nt.assert(x>0,"Cannot add a block scoped variable outside of an iteration body."),(p||(p=[])).push(e)},requestEmitHelper:function e(n){if(Nt.assert(L>0,"Cannot modify the transformation context during initialization."),Nt.assert(L<2,"Cannot modify the transformation context after transformation has completed."),Nt.assert(!n.scoped,"Cannot request a scoped emit helper."),n.dependencies)for(const t of n.dependencies)e(t);f=Te(f,n)},readEmitHelpers:function(){Nt.assert(L>0,"Cannot modify the transformation context during initialization."),Nt.assert(L<2,"Cannot modify the transformation context after transformation has completed.");const e=f;return f=void 0,e},enableSubstitution:function(e){Nt.assert(L<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=1},enableEmitNotification:function(e){Nt.assert(L<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=2},isSubstitutionEnabled:D,isEmitNotificationEnabled:O,get onSubstituteNode(){return S},set onSubstituteNode(e){Nt.assert(L<1,"Cannot modify transformation hooks after initialization has completed."),Nt.assert(void 0!==e,"Value must not be 'undefined'"),S=e},get onEmitNode(){return A},set onEmitNode(e){Nt.assert(L<1,"Cannot modify transformation hooks after initialization has completed."),Nt.assert(void 0!==e,"Value must not be 'undefined'"),A=e},addDiagnostic(e){C.push(e)}};for(const M of i)UA(Dp(Fc(M)));kr("beforeTransform");const I=a.map((e=>e(k))),w=e=>{for(const n of I)e=n(e);return e};L=1;const R=[];for(const M of i)null==(s=Vr)||s.push(Vr.Phase.Emit,"transformNodes",308===M.kind?{path:M.path}:{kind:M.kind,pos:M.pos,end:M.end}),R.push((o?w:N)(M)),null==(c=Vr)||c.pop();return L=2,kr("afterTransform"),Ir("transformTime","beforeTransform","afterTransform"),{transformed:R,substituteNode:function(e,n){return Nt.assert(L<3,"Cannot substitute a node after the result is disposed."),n&&D(n)&&S(e,n)||n},emitNodeWithNotification:function(e,n,t){Nt.assert(L<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),n&&(O(n)?A(e,n,t):t(e,n))},isEmitNotificationEnabled:O,dispose:function(){if(L<3){for(const e of i)UA(Dp(Fc(e)));d=void 0,h=void 0,u=void 0,g=void 0,S=void 0,A=void 0,f=void 0,L=3}},diagnostics:C};function N(e){return!e||Iw(e)&&e.isDeclarationFile?e:w(e)}function D(e){return 0!==(1&l[e.kind])&&0===(8&df(e))}function O(e){return 0!==(2&l[e.kind])||0!==(4&df(e))}}var $V,QV,ZV,ej,nj,tj,rj=E({"src/compiler/transformer.ts"(){lq(),_a(),BV={scriptTransformers:i,declarationTransformers:i},UV={factory:gA,getCompilerOptions:()=>({}),getEmitResolver:wn,getEmitHost:wn,getEmitHelperFactory:wn,startLexicalEnvironment:xn,resumeLexicalEnvironment:xn,suspendLexicalEnvironment:xn,endLexicalEnvironment:Ln,setLexicalEnvironmentFlags:xn,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:xn,hoistFunctionDeclaration:xn,addInitializationStatement:xn,startBlockScope:xn,endBlockScope:Ln,addBlockScopedVariable:xn,requestEmitHelper:xn,readEmitHelpers:wn,enableSubstitution:xn,enableEmitNotification:xn,isSubstitutionEnabled:wn,isEmitNotificationEnabled:wn,onSubstituteNode:JV,onEmitNode:XV,addDiagnostic:xn}}});function ij(e){return oo(e,".tsbuildinfo")}function aj(e,n,t,r=!1,i,a){const o=gn(t)?t:Ov(e,t,r),s=e.getCompilerOptions();if(Nv(s)){const t=e.getPrependNodes();if(o.length||t.length){const i=gA.createBundle(o,t),a=n(cj(i,e,r),i);if(a)return a}}else{if(!i)for(const t of o){const i=n(cj(t,e,r),t);if(i)return i}if(a){const e=oj(s);if(e)return n({buildInfoPath:e},void 0)}}}function oj(e){const n=e.configFilePath;if(!cx(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const t=Nv(e);let r;if(t)r=qx(t);else{if(!n)return;const t=qx(n);r=e.outDir?e.rootDir?To(e.outDir,Bo(e.rootDir,t,!0)):Eo(e.outDir,fo(t)):t}return r+".tsbuildinfo"}function sj(e,n){const t=Nv(e),r=e.emitDeclarationOnly?void 0:t,i=r&&lj(r,e),a=n||ox(e)?qx(t)+".d.ts":void 0;return{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:a,declarationMapPath:a&&ZT(e)?a+".map":void 0,buildInfoPath:oj(e)}}function cj(e,n,t){const r=n.getCompilerOptions();if(309===e.kind)return sj(r,t);{const i=Cv(e.fileName,n,dj(e.fileName,r)),a=sm(e),o=a&&0===Mo(e.fileName,i,n.getCurrentDirectory(),!n.useCaseSensitiveFileNames()),s=r.emitDeclarationOnly||o?void 0:i,c=!s||sm(e)?void 0:lj(s,r),l=t||ox(r)&&!a?kv(e.fileName,n):void 0;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:l,declarationMapPath:l&&ZT(r)?l+".map":void 0,buildInfoPath:void 0}}}function lj(e,n){return n.sourceMap&&!n.inlineSourceMap?e+".map":void 0}function dj(e,n){return oo(e,".json")?".json":1===n.jsx&&so(e,[".jsx",".tsx"])?".jsx":so(e,[".mts",".mjs"])?".mjs":so(e,[".cts",".cjs"])?".cjs":".js"}function uj(e,n,t,r,i){return r?To(r,Bo(i?i():yj(n,t),e,t)):e}function _j(e,n,t,r){return Yx(uj(e,n,t,n.options.declarationDir||n.options.outDir,r),wv(e))}function pj(e,n,t,r){if(n.options.emitDeclarationOnly)return;const i=oo(e,".json"),a=Yx(uj(e,n,t,n.options.outDir,r),dj(e,n.options));return i&&0===Mo(e,a,Nt.checkDefined(n.options.configFilePath),t)?void 0:a}function fj(){let e;return{addOutput:function(n){n&&(e||(e=[])).push(n)},getOutputs:function(){return e||i}}}function mj(e,n){const{jsFilePath:t,sourceMapFilePath:r,declarationFilePath:i,declarationMapPath:a,buildInfoPath:o}=sj(e.options,!1);n(t),n(r),n(i),n(a),n(o)}function hj(e,n,t,r,i){if(GD(n))return;const a=pj(n,e,t,i);if(r(a),!oo(n,".json")&&(a&&e.options.sourceMap&&r(`${a}.map`),ox(e.options))){const a=_j(n,e,t,i);r(a),e.options.declarationMap&&r(`${a}.map`)}}function gj(e,n,t,r,i){let a;return e.rootDir?(a=So(e.rootDir,t),null==i||i(e.rootDir)):e.composite&&e.configFilePath?(a=po(vo(e.configFilePath)),null==i||i(a)):a=cH(n(),t,r),a&&a[a.length-1]!==za&&(a+=za),a}function yj({options:e,fileNames:n},t){return gj(e,(()=>j(n,(n=>!(e.noEmitForJsFiles&&so(n,Z_))&&!GD(n)))),po(vo(Nt.checkDefined(e.configFilePath))),lt(!t))}function vj(e,n){const{addOutput:t,getOutputs:r}=fj();if(Nv(e.options))mj(e,t);else{const r=Rn((()=>yj(e,n)));for(const i of e.fileNames)hj(e,i,n,t,r);t(oj(e.options))}return r()}function bj(e,n,t){n=Ao(n),Nt.assert(G(e.fileNames,n),"Expected fileName to be present in command line");const{addOutput:r,getOutputs:i}=fj();return Nv(e.options)?mj(e,r):hj(e,n,t,r),i()}function Ej(e,n){if(Nv(e.options)){const{jsFilePath:n,declarationFilePath:t}=sj(e.options,!1);return Nt.checkDefined(n||t,`project ${e.options.configFilePath} expected to have at least one output`)}const t=Rn((()=>yj(e,n)));for(const i of e.fileNames){if(GD(i))continue;const r=pj(i,e,n,t);if(r)return r;if(!oo(i,".json")&&ox(e.options))return _j(i,e,n,t)}const r=oj(e.options);return r||Nt.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function Tj(e,n,t,{scriptTransformers:r,declarationTransformers:i},a,o,s){var c,l=n.getCompilerOptions(),d=l.sourceMap||l.inlineSourceMap||ZT(l)?[]:void 0,u=l.listEmittedFiles?[]:void 0,_=ov(),p=_E(l),f=vv(p),{enter:m,exit:h}=Cr("printTime","beforePrint","afterPrint"),g=!1;return m(),aj(n,(function({jsFilePath:o,sourceMapFilePath:d,declarationFilePath:p,declarationMapPath:f,buildInfoPath:m},h){var b,E,T,x,A,L;let C;m&&h&&ww(h)&&(C=po(So(m,n.getCurrentDirectory())),c={commonSourceDirectory:k(n.getCommonSourceDirectory()),sourceFiles:h.sourceFiles.map((e=>k(So(e.fileName,n.getCurrentDirectory()))))});null==(b=Vr)||b.push(Vr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:o}),function(t,i,o,s){if(!t||a||!i)return;if(n.isEmitBlocked(i)||l.noEmit)return void(g=!0);const d=YV(e,n,gA,l,[t],r,!1),u=Cj({removeComments:l.removeComments,newLine:l.newLine,noEmitHelpers:l.noEmitHelpers,module:l.module,target:l.target,sourceMap:l.sourceMap,inlineSourceMap:l.inlineSourceMap,inlineSources:l.inlineSources,extendedDiagnostics:l.extendedDiagnostics,writeBundleFileInfo:!!c,relativeToBuildInfo:s},{hasGlobalName:e.hasGlobalName,onEmitNode:d.emitNodeWithNotification,isEmitNotificationEnabled:d.isEmitNotificationEnabled,substituteNode:d.substituteNode});Nt.assert(1===d.transformed.length,"Should only see one output from the transform"),v(i,o,d,u,l),d.dispose(),c&&(c.js=u.bundleFileInfo)}(h,o,d,k),null==(E=Vr)||E.pop(),null==(T=Vr)||T.push(Vr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:p}),function(t,r,o,d){if(!t||0===a)return;if(!r)return void((a||l.emitDeclarationOnly)&&(g=!0));const u=Iw(t)?[t]:t.sourceFiles,p=s?u:j(u,Rh),f=Nv(l)?[gA.createBundle(p,Iw(t)?void 0:t.prepends)]:p;a&&!ox(l)&&p.forEach(y);const m=YV(e,n,gA,l,f,i,!1);if(S(m.diagnostics))for(const e of m.diagnostics)_.add(e);const h={removeComments:l.removeComments,newLine:l.newLine,noEmitHelpers:!0,module:l.module,target:l.target,sourceMap:!s&&l.declarationMap,inlineSourceMap:l.inlineSourceMap,extendedDiagnostics:l.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!c,recordInternalSection:!!c,relativeToBuildInfo:d},b=Cj(h,{hasGlobalName:e.hasGlobalName,onEmitNode:m.emitNodeWithNotification,isEmitNotificationEnabled:m.isEmitNotificationEnabled,substituteNode:m.substituteNode}),E=!!m.diagnostics&&!!m.diagnostics.length||!!n.isEmitBlocked(r)||!!l.noEmit;g=g||E,(!E||s)&&(Nt.assert(1===m.transformed.length,"Should only see one output from the decl transform"),v(r,o,m,b,{sourceMap:h.sourceMap,sourceRoot:l.sourceRoot,mapRoot:l.mapRoot,extendedDiagnostics:l.extendedDiagnostics}));m.dispose(),c&&(c.dts=b.bundleFileInfo)}(h,p,f,k),null==(x=Vr)||x.pop(),null==(A=Vr)||A.push(Vr.Phase.Emit,"emitBuildInfo",{buildInfoPath:m}),function(e,r){if(!r||t||g)return;if(n.isEmitBlocked(r))return void(g=!0);const i=n.getBuildInfo(e)||xj(void 0,e);Gv(n,_,r,Sj(i),!1,void 0,{buildInfo:i})}(c,m),null==(L=Vr)||L.pop(),!g&&u&&(a||(o&&u.push(o),d&&u.push(d),m&&u.push(m)),0!==a&&(p&&u.push(p),f&&u.push(f)));function k(e){return wo(Bo(C,e,n.getCanonicalFileName))}}),Ov(n,t,s),s,o,!t),h(),{emitSkipped:g,diagnostics:_.getDiagnostics(),emittedFiles:u,sourceMaps:d};function y(n){ZI(n)?79===n.expression.kind&&e.collectLinkedAliases(n.expression,!0):tw(n)?e.collectLinkedAliases(n.propertyName||n.name,!0):CD(n,y)}function v(e,t,r,i,a){const o=r.transformed[0],s=309===o.kind?o:void 0,c=308===o.kind?o:void 0,u=s?s.sourceFiles:[c];let m,h;if(function(e,n){return(e.sourceMap||e.inlineSourceMap)&&(308!==n.kind||!oo(n.fileName,".json"))}(a,o)&&(m=kB(n,fo(vo(e)),function(e){const n=vo(e.sourceRoot||"");return n?Io(n):n}(a),function(e,t,r){if(e.sourceRoot)return n.getCommonSourceDirectory();if(e.mapRoot){let t=vo(e.mapRoot);return r&&(t=po(Pv(r.fileName,n,t))),0===_o(t)&&(t=Eo(n.getCommonSourceDirectory(),t)),t}return po(Ao(t))}(a,e,c),a)),s?i.writeBundle(s,f,m):i.writeFile(c,f,m),m){d&&d.push({inputSourceFileNames:m.getSources(),sourceMap:m.toJSON()});const r=function(e,t,r,i,a){if(e.inlineSourceMap){const e=t.toString();return`data:application/json;base64,${sE(Aa,e)}`}const o=fo(vo(Nt.checkDefined(i)));if(e.mapRoot){let t=vo(e.mapRoot);return a&&(t=po(Pv(a.fileName,n,t))),0===_o(t)?(t=Eo(n.getCommonSourceDirectory(),t),encodeURI(jo(po(Ao(r)),Eo(t,o),n.getCurrentDirectory(),n.getCanonicalFileName,!0))):encodeURI(Eo(t,o))}return encodeURI(o)}(a,m,e,t,c);if(r&&(f.isAtStartOfLine()||f.rawWrite(p),h=f.getTextPos(),f.writeComment(`//# sourceMappingURL=${r}`)),t){const e=m.toString();Gv(n,_,t,e,!1,u),i.bundleFileInfo&&(i.bundleFileInfo.mapHash=CK(e,n))}}else f.writeLine();const g=f.getText();Gv(n,_,e,g,!!l.emitBOM,u,{sourceMapUrlPos:h,diagnostics:r.diagnostics}),i.bundleFileInfo&&(i.bundleFileInfo.hash=CK(g,n)),f.clear()}}function xj(e,n){return{bundle:n,program:e,version:t}}function Sj(e){return JSON.stringify(e)}function Aj(e,n){return lE(e,n)}function Lj(e,n,t,r){var i,a;null==(i=Vr)||i.push(Vr.Phase.Emit,"emitUsingBuildInfo",{},!0),Ur.mark("beforeEmit");const o=function(e,n,t,r){const{buildInfoPath:i,jsFilePath:a,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:c}=sj(e.options,!1),l=n.getBuildInfo(i,e.options.configFilePath);if(!l)return i;if(!l.bundle||!l.bundle.js||s&&!l.bundle.dts)return i;const d=n.readFile(Nt.checkDefined(a));if(!d)return a;if(CK(d,n)!==l.bundle.js.hash)return a;const u=o&&n.readFile(o);if(o&&!u||e.options.inlineSourceMap)return o||"inline sourcemap decoding";if(o&&CK(u,n)!==l.bundle.js.mapHash)return o;const _=s&&n.readFile(s);if(s&&!_)return s;if(s&&CK(_,n)!==l.bundle.dts.hash)return s;const p=c&&n.readFile(c);if(c&&!p||e.options.inlineSourceMap)return c||"inline sourcemap decoding";if(c&&CK(p,n)!==l.bundle.dts.mapHash)return c;const f=po(So(i,n.getCurrentDirectory())),m=MA(a,d,o,u,s,_,c,p,i,l,!0),h=[],g=zH(e.projectReferences,t,(e=>n.readFile(e)),n),y=function(e,n,t){var r;const i=Nt.checkDefined(e.js),a=(null==(r=i.sources)?void 0:r.prologues)&&nn(i.sources.prologues,(e=>e.file));return e.sourceFiles.map(((e,r)=>{var i,o;const s=null==a?void 0:a.get(r),c=null==s?void 0:s.directives.map((e=>{const n=VN(gA.createStringLiteral(e.expression.text),e.expression),t=VN(gA.createExpressionStatement(n),e);return CS(n,t),t})),l=gA.createToken(1),d=gA.createSourceFile(null!=c?c:[],l,0);return d.fileName=Bo(t.getCurrentDirectory(),So(e,n),!t.useCaseSensitiveFileNames()),d.text=null!=(i=null==s?void 0:s.text)?i:"",AS(d,0,null!=(o=null==s?void 0:s.text.length)?o:0),kS(d.statements,d),AS(l,d.end,0),CS(l,d),d}))}(l.bundle,f,n);let v,b;const E={getPrependNodes:Rn((()=>[...g,m])),getCanonicalFileName:n.getCanonicalFileName,getCommonSourceDirectory:()=>So(l.bundle.commonSourceDirectory,f),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>n.getCurrentDirectory(),getSourceFile:Ln,getSourceFileByPath:Ln,getSourceFiles:()=>y,getLibFileFromReference:wn,isSourceFileFromExternalLibrary:Sn,getResolvedProjectReferenceToRedirect:Ln,getProjectReferenceRedirect:Ln,isSourceOfProjectReferenceRedirect:Sn,writeFile:(e,n,t,r,l,f)=>{switch(e){case a:if(d===n)return;break;case o:if(u===n)return;break;case i:break;case s:if(_===n)return;v=n,b=f;break;case c:if(p===n)return;break;default:Nt.fail(`Unexpected path: ${e}`)}h.push({name:e,text:n,writeByteOrderMark:t,data:f})},isEmitBlocked:Sn,readFile:e=>n.readFile(e),fileExists:e=>n.fileExists(e),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames(),getBuildInfo:t=>{const r=l.program;r&&void 0!==v&&e.options.composite&&(r.outSignature=CK(v,n,b));const{js:i,dts:a,sourceFiles:o}=l.bundle;return t.js.sources=i.sources,a&&(t.dts.sources=a.sources),t.sourceFiles=o,xj(r,t)},getSourceFileFromReference:Ln,redirectTargetsMap:un(),getFileIncludeReasons:wn,createHash:dn(n,n.createHash)};return Tj(QV,E,void 0,jV(e.options,r)),h}(e,n,t,r);return Ur.mark("afterEmit"),Ur.measure("Emit","beforeEmit","afterEmit"),null==(a=Vr)||a.pop(),o}function Cj(e={},n={}){var t,r,i,a,o,s,c,l,d,u,_,p,f,m,h,g,y,v,b,E,T,x,S,L,C,k,{hasGlobalName:I,onEmitNode:w=XV,isEmitNotificationEnabled:R,substituteNode:D=JV,onBeforeEmitNode:O,onAfterEmitNode:P,onBeforeEmitNodeArray:F,onAfterEmitNodeArray:G,onBeforeEmitToken:B,onAfterEmitToken:U}=n,V=!!e.extendedDiagnostics,j=_E(e),H=KT(e),K=new Map,W=e.preserveSourceNewlines,z=function(e){y.write(e)},q=e.writeBundleFileInfo?{sections:[]}:void 0,J=q?Nt.checkDefined(e.relativeToBuildInfo):void 0,X=e.recordInternalSection,Y=0,$="text",Q=!0,Z=-1,ee=-1,ne=-1,te=-1,re=-1,ie=!1,ae=!!e.removeComments,{enter:oe,exit:se}=Lr(V,"commentTime","beforeComment","afterComment"),le=gA.parenthesizer,de={select:e=>0===e?le.parenthesizeLeadingTypeArgument:void 0},ue=function(){return SN((function(e,n){if(n){n.stackIndex++,n.preserveSourceNewlinesStack[n.stackIndex]=W,n.containerPosStack[n.stackIndex]=ne,n.containerEndStack[n.stackIndex]=te,n.declarationListContainerEndStack[n.stackIndex]=re;const t=n.shouldEmitCommentsStack[n.stackIndex]=je(e),r=n.shouldEmitSourceMapsStack[n.stackIndex]=He(e);null==O||O(e),t&&ar(e),r&&kr(e),Pe(e)}else n={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return n}),(function(n,t,r){return e(n,r,"left")}),(function(e,n,t){const r=27!==e.kind,i=Dt(t,t.left,e),a=Dt(t,e,t.right);xt(i,r),gr(e.pos),vt(e,101===e.kind?ct:lt),vr(e.end,!0),xt(a,!0)}),(function(n,t,r){return e(n,r,"right")}),(function(e,n){const t=Dt(e,e.left,e.operatorToken),r=Dt(e,e.operatorToken,e.right);if(St(t,r),n.stackIndex>0){const t=n.preserveSourceNewlinesStack[n.stackIndex],r=n.containerPosStack[n.stackIndex],i=n.containerEndStack[n.stackIndex],a=n.declarationListContainerEndStack[n.stackIndex],o=n.shouldEmitCommentsStack[n.stackIndex],s=n.shouldEmitSourceMapsStack[n.stackIndex];Ue(t),s&&Ir(e),o&&or(e,r,i,a),null==P||P(e),n.stackIndex--}}),void 0);function e(e,n,t){const r="left"===t?le.getParenthesizeLeftSideOfBinaryForOperator(n.operatorToken.kind):le.getParenthesizeRightSideOfBinaryForOperator(n.operatorToken.kind);let i=Ke(0,1,e);if(i===Xe&&(Nt.assertIsDefined(C),i=We(1,1,e=r(Tn(C,mu))),C=void 0),(i===ir||i===Cr||i===qe)&&Yk(e))return e;k=r,i(1,e)}}();return ke(),{printNode:function(e,n,t){switch(e){case 0:Nt.assert(Iw(n),"Expected a SourceFile node.");break;case 2:Nt.assert(IC(n),"Expected an Identifier node.");break;case 1:Nt.assert(mu(n),"Expected an Expression node.")}switch(n.kind){case 308:return pe(n);case 309:return _e(n);case 310:return function(e,n){const t=y;Ce(n,void 0),Ae(4,e,void 0),ke(),y=t}(n,xe()),Se()}return fe(e,n,t,xe()),Se()},printList:function(e,n,t){return me(e,n,t,xe()),Se()},printFile:pe,printBundle:_e,writeNode:fe,writeList:me,writeFile:Te,writeBundle:Ee,bundleFileInfo:q};function _e(e){return Ee(e,xe(),void 0),Se()}function pe(e){return Te(e,xe(),void 0),Se()}function fe(e,n,t,r){const i=y;Ce(r,void 0),Ae(e,n,t),ke(),y=i}function me(e,n,t,r){const i=y;Ce(r,void 0),t&&Le(t),Zn(void 0,n,e),ke(),y=i}function he(){return y.getTextPosWithWriteLine?y.getTextPosWithWriteLine():y.getTextPos()}function ge(e,n,t){const r=Fe(q.sections);r&&r.kind===t?r.end=n:q.sections.push({pos:e,end:n,kind:t})}function ye(e){if(X&&q&&t&&(Pu(e)||fI(e))&&MV(e,t)&&"internal"!==$){const e=$;return be(y.getTextPos()),Y=he(),$="internal",e}}function ve(e){e&&(be(y.getTextPos()),Y=he(),$=e)}function be(e){return Y<e&&(ge(Y,e,$),!0)}function Ee(n,t,r){b=!1;const i=y;Ce(t,r),Bn(n),Gn(n),Ye(n),function(e){On(!!e.hasNoDefaultLib,e.syntheticFileReferences||[],e.syntheticTypeReferences||[],e.syntheticLibReferences||[]);for(const n of e.prepends)if(Rw(n)&&n.syntheticReferences)for(const e of n.syntheticReferences)we(e),mt()}(n);for(const e of n.prepends){mt();const n=y.getTextPos(),t=q&&q.sections;if(t&&(q.sections=[]),Ae(4,e,void 0),q){const r=q.sections;q.sections=t,e.oldFileOfCurrentEmit?q.sections.push(...r):(r.forEach((e=>Nt.assert(oT(e)))),q.sections.push({pos:n,end:y.getTextPos(),kind:"prepend",data:J(e.fileName),texts:r}))}}Y=he();for(const e of n.sourceFiles)Ae(0,e,e);if(q&&n.sourceFiles.length){if(be(y.getTextPos())){const t=function(e){const n=new Set;let t;for(let r=0;r<e.sourceFiles.length;r++){const i=e.sourceFiles[r];let a,o=0;for(const e of i.statements){if(!hm(e))break;n.has(e.expression.text)||(n.add(e.expression.text),(a||(a=[])).push({pos:e.pos,end:e.end,expression:{pos:e.expression.pos,end:e.expression.end,text:e.expression.text}}),o=o<e.end?e.end:o)}a&&(t||(t=[])).push({file:r,text:i.text.substring(0,o),directives:a})}return t}(n);t&&(q.sources||(q.sources={}),q.sources.prologues=t);const r=function(n){let t;if(0===H||e.noEmitHelpers)return;const r=new Map;for(const e of n.sourceFiles){const n=void 0!==$R(e),i=$e(e);if(i)for(const e of i)e.scoped||n||r.get(e.name)||(r.set(e.name,!0),(t||(t=[])).push(e.name))}return t}(n);r&&(q.sources||(q.sources={}),q.sources.helpers=r)}}ke(),y=i}function Te(e,n,t){b=!0;const r=y;Ce(n,t),Bn(e),Gn(e),Ae(0,e,e),ke(),y=r}function xe(){return v||(v=vv(j))}function Se(){const e=v.getText();return v.clear(),e}function Ae(e,n,t){t&&Le(t),Ve(e,n,void 0)}function Le(e){t=e,S=void 0,L=void 0,e&&Dr(e)}function Ce(n,t){n&&e.omitTrailingSemicolon&&(n=bv(n)),E=t,Q=!(y=n)||!E}function ke(){r=[],i=[],a=[],o=new Set,s=[],c=new Map,l=[],d=0,u=[],_=0,p=[],f=void 0,m=[],h=void 0,t=void 0,S=void 0,L=void 0,Ce(void 0,void 0)}function Ie(){return S||(S=bs(Nt.checkDefined(t)))}function we(e,n){if(void 0===e)return;const t=ye(e);Ve(4,e,n),ve(t)}function Ne(e){void 0!==e&&Ve(2,e,void 0)}function Oe(e,n){void 0!==e&&Ve(1,e,n)}function Me(e){Ve(_C(e)?6:4,e)}function Pe(e){W&&4&uf(e)&&(W=!1)}function Ue(e){W=e}function Ve(e,n,t){k=t;Ke(0,e,n)(e,n),k=void 0}function je(e){return!ae&&!Iw(e)}function He(e){return!Q&&!Iw(e)&&!wh(e)&&!Rw(e)&&!kw(e)}function Ke(e,n,t){switch(e){case 0:if(w!==XV&&(!R||R(t)))return ze;case 1:if(D!==JV&&(C=D(n,t)||t)!==t)return k&&(C=k(C)),Xe;case 2:if(je(t))return ir;case 3:if(He(t))return Cr;case 4:return qe;default:return Nt.assertNever(e)}}function We(e,n,t){return Ke(e+1,n,t)}function ze(e,n){const t=We(0,e,n);w(e,n,t)}function qe(e,n){if(null==O||O(n),W){const t=W;Pe(n),Je(e,n),Ue(t)}else Je(e,n);null==P||P(n),k=void 0}function Je(e,n,r=!0){if(r){const t=fL(n);if(t)return function(e,n,t){switch(t.kind){case 1:!function(e,n,t){ft(`\${${t.order}:`),Je(e,n,!1),ft("}")}(e,n,t);break;case 0:!function(e,n,t){Nt.assert(239===n.kind,`A tab stop cannot be attached to a node of kind ${Nt.formatSyntaxKind(n.kind)}.`),Nt.assert(5!==e,"A tab stop cannot be attached to an embedded statement."),ft(`$${t.order}`)}(e,n,t)}}(e,n,t)}if(0===e)return Dn(Tn(n,Iw));if(2===e)return en(Tn(n,IC));if(6===e)return Qe(Tn(n,_C),!0);if(3===e)return function(e){we(e.name),_t(),ct("in"),_t(),we(e.constraint)}(Tn(n,zC));if(5===e)return Nt.assertNode(n,mI),on(!0);if(4===e){switch(n.kind){case 15:case 16:case 17:return Qe(n,!1);case 79:return en(n);case 80:return nn(n);case 163:return function(e){(function(e){79===e.kind?Oe(e):we(e)})(e.left),ot("."),we(e.right)}(n);case 164:return function(e){const n=d,t=h;jt(),ot("["),Oe(e.expression,le.parenthesizeExpressionOfComputedPropertyName),ot("]"),Vt(n,t)}(n);case 165:return function(e){jn(e,e.modifiers),we(e.name),e.constraint&&(_t(),ct("extends"),_t(),we(e.constraint));e.default&&(_t(),lt("="),_t(),we(e.default))}(n);case 166:return function(e){Vn(e,e.modifiers,!0),we(e.dotDotDotToken),Un(e.name,dt),we(e.questionToken),e.parent&&320===e.parent.kind&&!e.name?we(e.type):Hn(e.type);Kn(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.pos,e,le.parenthesizeExpressionForDisallowedComma)}(n);case 167:return a=n,ot("@"),void Oe(a.expression,le.parenthesizeLeftSideOfAccess);case 168:return function(e){jn(e,e.modifiers),Un(e.name,pt),we(e.questionToken),Hn(e.type),st()}(n);case 169:return function(e){Vn(e,e.modifiers,!0),we(e.name),we(e.questionToken),we(e.exclamationToken),Hn(e.type),Kn(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),st()}(n);case 170:return function(e){Gt(e),jn(e,e.modifiers),we(e.name),we(e.questionToken),Xn(e,e.typeParameters),Yn(e,e.parameters),Hn(e.type),st(),Bt(e)}(n);case 171:return function(e){Vn(e,e.modifiers,!0),we(e.asteriskToken),we(e.name),we(e.questionToken),hn(e,gn)}(n);case 172:return function(e){ct("static"),yn(e.body)}(n);case 173:return function(e){Vn(e,e.modifiers,!1),ct("constructor"),hn(e,gn)}(n);case 174:case 175:return function(e){const n=Vn(e,e.modifiers,!0),t=174===e.kind?137:151;dn(t,n,ct,e),_t(),we(e.name),hn(e,gn)}(n);case 176:return function(e){Gt(e),Xn(e,e.typeParameters),Yn(e,e.parameters),Hn(e.type),st(),Bt(e)}(n);case 177:return function(e){Gt(e),ct("new"),_t(),Xn(e,e.typeParameters),Yn(e,e.parameters),Hn(e.type),st(),Bt(e)}(n);case 178:return function(e){Vn(e,e.modifiers,!1),n=e,t=e.parameters,Zn(n,t,8848),Hn(e.type),st();var n,t}(n);case 179:return function(e){e.assertsModifier&&(we(e.assertsModifier),_t());we(e.parameterName),e.type&&(_t(),ct("is"),_t(),we(e.type))}(n);case 180:return function(e){we(e.typeName),Jn(e,e.typeArguments)}(n);case 181:return function(e){Gt(e),Xn(e,e.typeParameters),$n(e,e.parameters),_t(),ot("=>"),_t(),we(e.type),Bt(e)}(n);case 182:return function(e){Gt(e),jn(e,e.modifiers),ct("new"),_t(),Xn(e,e.typeParameters),Yn(e,e.parameters),_t(),ot("=>"),_t(),we(e.type),Bt(e)}(n);case 183:return function(e){ct("typeof"),_t(),we(e.exprName),Jn(e,e.typeArguments)}(n);case 184:return function(e){Vt(0,void 0),ot("{");const n=1&df(e)?768:32897;Zn(e,e.members,524288|n),ot("}"),jt()}(n);case 185:return function(e){we(e.elementType,le.parenthesizeNonArrayTypeOfPostfixType),ot("["),ot("]")}(n);case 186:return function(e){dn(22,e.pos,ot,e);const n=1&df(e)?528:657;Zn(e,e.elements,524288|n,le.parenthesizeElementTypeOfTupleType),dn(23,e.elements.end,ot,e)}(n);case 187:return function(e){we(e.type,le.parenthesizeTypeOfOptionalType),ot("?")}(n);case 189:return function(e){Zn(e,e.types,516,le.parenthesizeConstituentTypeOfUnionType)}(n);case 190:return function(e){Zn(e,e.types,520,le.parenthesizeConstituentTypeOfIntersectionType)}(n);case 191:return function(e){we(e.checkType,le.parenthesizeCheckTypeOfConditionalType),_t(),ct("extends"),_t(),we(e.extendsType,le.parenthesizeExtendsTypeOfConditionalType),_t(),ot("?"),_t(),we(e.trueType),_t(),ot(":"),_t(),we(e.falseType)}(n);case 192:return function(e){ct("infer"),_t(),we(e.typeParameter)}(n);case 193:return function(e){ot("("),we(e.type),ot(")")}(n);case 230:return rn(n);case 194:return void ct("this");case 195:return function(e){bt(e.operator,ct),_t();const n=146===e.operator?le.parenthesizeOperandOfReadonlyTypeOperator:le.parenthesizeOperandOfTypeOperator;we(e.type,n)}(n);case 196:return function(e){we(e.objectType,le.parenthesizeNonArrayTypeOfPostfixType),ot("["),we(e.indexType),ot("]")}(n);case 197:return function(e){const n=df(e);ot("{"),1&n?_t():(mt(),ht());e.readonlyToken&&(we(e.readonlyToken),146!==e.readonlyToken.kind&&ct("readonly"),_t());ot("["),Ve(3,e.typeParameter),e.nameType&&(_t(),ct("as"),_t(),we(e.nameType));ot("]"),e.questionToken&&(we(e.questionToken),57!==e.questionToken.kind&&ot("?"));ot(":"),_t(),we(e.type),st(),1&n?_t():(mt(),gt());Zn(e,e.members,2),ot("}")}(n);case 198:return function(e){Oe(e.literal)}(n);case 199:return function(e){we(e.dotDotDotToken),we(e.name),we(e.questionToken),dn(58,e.name.end,ot,e),_t(),we(e.type)}(n);case 200:return function(e){we(e.head),Zn(e,e.templateSpans,262144)}(n);case 201:return function(e){we(e.type),we(e.literal)}(n);case 202:return function(e){e.isTypeOf&&(ct("typeof"),_t());if(ct("import"),ot("("),we(e.argument),e.assertions){ot(","),_t(),ot("{"),_t(),ct("assert"),ot(":"),_t();const n=e.assertions.assertClause.elements;Zn(e.assertions.assertClause,n,526226),_t(),ot("}")}ot(")"),e.qualifier&&(ot("."),we(e.qualifier));Jn(e,e.typeArguments)}(n);case 203:return function(e){ot("{"),Zn(e,e.elements,525136),ot("}")}(n);case 204:return function(e){ot("["),Zn(e,e.elements,524880),ot("]")}(n);case 205:return function(e){we(e.dotDotDotToken),e.propertyName&&(we(e.propertyName),ot(":"),_t());we(e.name),Kn(e.initializer,e.name.end,e,le.parenthesizeExpressionForDisallowedComma)}(n);case 236:return function(e){Oe(e.expression),we(e.literal)}(n);case 237:return void st();case 238:return function(e){an(e,!e.multiLine&&Ot(e))}(n);case 240:return function(e){Vn(e,e.modifiers,!1),we(e.declarationList),st()}(n);case 239:return on(!1);case 241:return function(e){Oe(e.expression,le.parenthesizeExpressionOfExpressionStatement),t&&sm(t)&&!$y(e.expression)||st()}(n);case 242:return function(e){const n=dn(99,e.pos,ct,e);_t(),dn(20,n,ot,e),Oe(e.expression),dn(21,e.expression.end,ot,e),qn(e,e.thenStatement),e.elseStatement&&(Et(e,e.thenStatement,e.elseStatement),dn(91,e.thenStatement.end,ct,e),242===e.elseStatement.kind?(_t(),we(e.elseStatement)):qn(e,e.elseStatement))}(n);case 243:return function(e){dn(90,e.pos,ct,e),qn(e,e.statement),pI(e.statement)&&!W?_t():Et(e,e.statement,e.expression);cn(e,e.statement.end),st()}(n);case 244:return function(e){cn(e,e.pos),qn(e,e.statement)}(n);case 245:return function(e){const n=dn(97,e.pos,ct,e);_t();let t=dn(20,n,ot,e);ln(e.initializer),t=dn(26,e.initializer?e.initializer.end:t,ot,e),zn(e.condition),t=dn(26,e.condition?e.condition.end:t,ot,e),zn(e.incrementor),dn(21,e.incrementor?e.incrementor.end:t,ot,e),qn(e,e.statement)}(n);case 246:return function(e){const n=dn(97,e.pos,ct,e);_t(),dn(20,n,ot,e),ln(e.initializer),_t(),dn(101,e.initializer.end,ct,e),_t(),Oe(e.expression),dn(21,e.expression.end,ot,e),qn(e,e.statement)}(n);case 247:return function(e){const n=dn(97,e.pos,ct,e);_t(),function(e){e&&(we(e),_t())}(e.awaitModifier),dn(20,n,ot,e),ln(e.initializer),_t(),dn(162,e.initializer.end,ct,e),_t(),Oe(e.expression),dn(21,e.expression.end,ot,e),qn(e,e.statement)}(n);case 248:return function(e){dn(86,e.pos,ct,e),Wn(e.label),st()}(n);case 249:return function(e){dn(81,e.pos,ct,e),Wn(e.label),st()}(n);case 250:return function(e){dn(105,e.pos,ct,e),zn(e.expression&&pn(e.expression),pn),st()}(n);case 251:return function(e){const n=dn(116,e.pos,ct,e);_t(),dn(20,n,ot,e),Oe(e.expression),dn(21,e.expression.end,ot,e),qn(e,e.statement)}(n);case 252:return function(e){const n=dn(107,e.pos,ct,e);_t(),dn(20,n,ot,e),Oe(e.expression),dn(21,e.expression.end,ot,e),_t(),we(e.caseBlock)}(n);case 253:return function(e){we(e.label),dn(58,e.label.end,ot,e),_t(),we(e.statement)}(n);case 254:return function(e){dn(109,e.pos,ct,e),zn(pn(e.expression),pn),st()}(n);case 255:return function(e){dn(111,e.pos,ct,e),_t(),we(e.tryBlock),e.catchClause&&(Et(e,e.tryBlock,e.catchClause),we(e.catchClause));e.finallyBlock&&(Et(e,e.catchClause||e.tryBlock,e.finallyBlock),dn(96,(e.catchClause||e.tryBlock).end,ct,e),_t(),we(e.finallyBlock))}(n);case 256:return function(e){yt(87,e.pos,ct),st()}(n);case 257:return function(e){var n,t,r,i,a;we(e.name),we(e.exclamationToken),Hn(e.type),Kn(e.initializer,null!=(a=null!=(i=null==(n=e.type)?void 0:n.end)?i:null==(r=null==(t=e.name.emitNode)?void 0:t.typeNode)?void 0:r.end)?a:e.name.end,e,le.parenthesizeExpressionForDisallowedComma)}(n);case 258:return function(e){ct(um(e)?"let":dm(e)?"const":"var"),_t(),Zn(e,e.declarations,528)}(n);case 259:return function(e){mn(e)}(n);case 260:return function(e){xn(e)}(n);case 261:return function(e){Vt(0,void 0),Vn(e,e.modifiers,!1),ct("interface"),_t(),we(e.name),Xn(e,e.typeParameters),Zn(e,e.heritageClauses,512),_t(),ot("{"),Zn(e,e.members,129),ot("}"),jt()}(n);case 262:return function(e){Vn(e,e.modifiers,!1),ct("type"),_t(),we(e.name),Xn(e,e.typeParameters),_t(),ot("="),_t(),we(e.type),st()}(n);case 263:return function(e){Vn(e,e.modifiers,!1),ct("enum"),_t(),we(e.name),_t(),ot("{"),Zn(e,e.members,145),ot("}")}(n);case 264:return function(e){Vn(e,e.modifiers,!1),1024&~e.flags&&(ct(16&e.flags?"namespace":"module"),_t());we(e.name);let n=e.body;if(!n)return st();for(;n&&BI(n);)ot("."),we(n.name),n=n.body;_t(),we(n)}(n);case 265:return function(e){Gt(e),A(e.statements,Kt),an(e,Ot(e)),Bt(e)}(n);case 266:return function(e){dn(18,e.pos,ot,e),Zn(e,e.clauses,129),dn(19,e.clauses.end,ot,e,!0)}(n);case 267:return function(e){let n=dn(93,e.pos,ct,e);_t(),n=dn(128,n,ct,e),_t(),n=dn(143,n,ct,e),_t(),we(e.name),st()}(n);case 268:return function(e){Vn(e,e.modifiers,!1),dn(100,e.modifiers?e.modifiers.end:e.pos,ct,e),_t(),e.isTypeOnly&&(dn(154,e.pos,ct,e),_t());we(e.name),_t(),dn(63,e.name.end,ot,e),_t(),function(e){79===e.kind?Oe(e):we(e)}(e.moduleReference),st()}(n);case 269:return function(e){Vn(e,e.modifiers,!1),dn(100,e.modifiers?e.modifiers.end:e.pos,ct,e),_t(),e.importClause&&(we(e.importClause),_t(),dn(158,e.importClause.end,ct,e),_t());Oe(e.moduleSpecifier),e.assertClause&&Wn(e.assertClause);st()}(n);case 270:return function(e){e.isTypeOnly&&(dn(154,e.pos,ct,e),_t());we(e.name),e.name&&e.namedBindings&&(dn(27,e.name.end,ot,e),_t());we(e.namedBindings)}(n);case 271:return function(e){const n=dn(41,e.pos,ot,e);_t(),dn(128,n,ct,e),_t(),we(e.name)}(n);case 277:return function(e){const n=dn(41,e.pos,ot,e);_t(),dn(128,n,ct,e),_t(),we(e.name)}(n);case 272:case 276:return function(e){Sn(e)}(n);case 273:case 278:return function(e){An(e)}(n);case 274:return function(e){const n=dn(93,e.pos,ct,e);_t(),e.isExportEquals?dn(63,n,lt,e):dn(88,n,ct,e);_t(),Oe(e.expression,e.isExportEquals?le.getParenthesizeRightSideOfBinaryForOperator(63):le.parenthesizeExpressionOfExportDefault),st()}(n);case 275:return function(e){Vn(e,e.modifiers,!1);let n=dn(93,e.pos,ct,e);_t(),e.isTypeOnly&&(n=dn(154,n,ct,e),_t());e.exportClause?we(e.exportClause):n=dn(41,n,ot,e);if(e.moduleSpecifier){_t();dn(158,e.exportClause?e.exportClause.end:n,ct,e),_t(),Oe(e.moduleSpecifier)}e.assertClause&&Wn(e.assertClause);st()}(n);case 296:return function(e){dn(130,e.pos,ct,e),_t();const n=e.elements;Zn(e,n,526226)}(n);case 297:return function(e){we(e.name),ot(":"),_t();const n=e.value;if(0===(1024&df(n))){vr(QA(n).pos)}we(n)}(n);case 279:case 322:case 333:case 334:case 336:case 337:case 338:case 339:case 355:case 359:case 358:return;case 280:return function(e){ct("require"),ot("("),Oe(e.expression),ot(")")}(n);case 11:return function(e){y.writeLiteral(e.text)}(n);case 283:case 286:return function(e){if(ot("<"),uw(e)){const n=It(e.tagName,e);Ln(e.tagName),Jn(e,e.typeArguments),e.attributes.properties&&e.attributes.properties.length>0&&_t(),we(e.attributes),wt(e.attributes,e),St(n)}ot(">")}(n);case 284:case 287:return function(e){ot("</"),_w(e)&&Ln(e.tagName);ot(">")}(n);case 288:return function(e){we(e.name),function(e,n,t,r){t&&(n(e),r(t))}("=",ot,e.initializer,Me)}(n);case 289:return function(e){Zn(e,e.properties,262656)}(n);case 290:return function(e){ot("{..."),Oe(e.expression),ot("}")}(n);case 291:return function(e){var n;if(e.expression||!ae&&!$y(e)&&(r=e.pos,function(e){let n=!1;return Bs((null==t?void 0:t.text)||"",e+1,(()=>n=!0)),n}(r)||function(e){let n=!1;return Gs((null==t?void 0:t.text)||"",e+1,(()=>n=!0)),n}(r))){const r=t&&!$y(e)&&Ss(t,e.pos).line!==Ss(t,e.end).line;r&&y.increaseIndent();const i=dn(18,e.pos,ot,e);we(e.dotDotDotToken),Oe(e.expression),dn(19,(null==(n=e.expression)?void 0:n.end)||i,ot,e),r&&y.decreaseIndent()}var r}(n);case 292:return function(e){dn(82,e.pos,ct,e),_t(),Oe(e.expression,le.parenthesizeExpressionForDisallowedComma),Cn(e,e.statements,e.expression.end)}(n);case 293:return function(e){const n=dn(88,e.pos,ct,e);Cn(e,e.statements,n)}(n);case 294:return function(e){_t(),bt(e.token,ct),_t(),Zn(e,e.types,528)}(n);case 295:return function(e){const n=dn(83,e.pos,ct,e);_t(),e.variableDeclaration&&(dn(20,n,ot,e),we(e.variableDeclaration),dn(21,e.variableDeclaration.end,ot,e),_t());we(e.block)}(n);case 299:return function(e){we(e.name),ot(":"),_t();const n=e.initializer;if(0===(1024&df(n))){vr(QA(n).pos)}Oe(n,le.parenthesizeExpressionForDisallowedComma)}(n);case 300:return function(e){we(e.name),e.objectAssignmentInitializer&&(_t(),ot("="),_t(),Oe(e.objectAssignmentInitializer,le.parenthesizeExpressionForDisallowedComma))}(n);case 301:return function(e){e.expression&&(dn(25,e.pos,ot,e),Oe(e.expression,le.parenthesizeExpressionForDisallowedComma))}(n);case 302:return function(e){we(e.name),Kn(e.initializer,e.name.end,e,le.parenthesizeExpressionForDisallowedComma)}(n);case 303:return Ze(n);case 310:case 304:return function(e){for(const n of e.texts)mt(),we(n)}(n);case 305:case 306:return function(e){const n=he();Ze(e),q&&ge(n,y.getTextPos(),305===e.kind?"text":"internal")}(n);case 307:return function(e){const n=he();if(Ze(e),q){const t=sn(e.section);t.pos=n,t.end=y.getTextPos(),q.sections.push(t)}}(n);case 308:return Dn(n);case 309:return Nt.fail("Bundles should be printed using printBundle");case 311:return Nt.fail("InputFiles should not be printed");case 312:return Nn(n);case 313:return function(e){_t(),ot("{"),we(e.name),ot("}")}(n);case 315:return ot("*");case 316:return ot("?");case 317:return function(e){ot("?"),we(e.type)}(n);case 318:return function(e){ot("!"),we(e.type)}(n);case 319:return function(e){we(e.type),ot("=")}(n);case 320:return function(e){ct("function"),Yn(e,e.parameters),ot(":"),we(e.type)}(n);case 188:case 321:return function(e){ot("..."),we(e.type)}(n);case 323:return function(e){if(z("/**"),e.comment){const n=Ol(e.comment);if(n){const e=n.split(/\r\n?|\n/g);for(const n of e)mt(),_t(),ot("*"),_t(),z(n)}}e.tags&&(1!==e.tags.length||347!==e.tags[0].kind||e.comment?Zn(e,e.tags,33):(_t(),we(e.tags[0])));_t(),z("*/")}(n);case 325:return kn(n);case 326:return In(n);case 330:case 335:case 340:return wn((i=n).tagName),void Rn(i.comment);case 331:case 332:return function(e){wn(e.tagName),_t(),ot("{"),we(e.class),ot("}"),Rn(e.comment)}(n);case 341:return function(e){wn(e.tagName),e.name&&(_t(),we(e.name));Rn(e.comment),In(e.typeExpression)}(n);case 342:return function(e){Rn(e.comment),In(e.typeExpression)}(n);case 344:case 351:return function(e){wn(e.tagName),Nn(e.typeExpression),_t(),e.isBracketed&&ot("[");we(e.name),e.isBracketed&&ot("]");Rn(e.comment)}(n);case 343:case 345:case 346:case 347:case 352:case 353:return function(e){wn(e.tagName),Nn(e.typeExpression),Rn(e.comment)}(n);case 348:return function(e){wn(e.tagName),Nn(e.constraint),_t(),Zn(e,e.typeParameters,528),Rn(e.comment)}(n);case 349:return function(e){wn(e.tagName),e.typeExpression&&(312===e.typeExpression.kind?Nn(e.typeExpression):(_t(),ot("{"),z("Object"),e.typeExpression.isArrayType&&(ot("["),ot("]")),ot("}")));e.fullName&&(_t(),we(e.fullName));Rn(e.comment),e.typeExpression&&325===e.typeExpression.kind&&kn(e.typeExpression)}(n);case 350:return function(e){wn(e.tagName),we(e.name),Rn(e.comment)}(n)}if(mu(n)&&(e=1,D!==JV)){const t=D(e,n)||n;t!==n&&(n=t,k&&(n=k(n)))}}var i,a;if(1===e)switch(n.kind){case 8:case 9:return function(e){Qe(e,!1)}(n);case 10:case 13:case 14:return Qe(n,!1);case 79:return en(n);case 80:return nn(n);case 206:return function(e){const n=e.elements,t=e.multiLine?65536:0;et(e,n,8914|t,le.parenthesizeExpressionForDisallowedComma)}(n);case 207:return function(e){Vt(0,void 0),A(e.properties,Wt);const n=131072&df(e);n&&ht();const r=e.multiLine?65536:0,i=t&&t.languageVersion>=1&&!sm(t)?64:0;Zn(e,e.properties,526226|i|r),n&>();jt()}(n);case 208:return function(e){Oe(e.expression,le.parenthesizeLeftSideOfAccess);const n=e.questionDotToken||SS(gA.createToken(24),e.expression.end,e.name.pos),t=Dt(e,e.expression,n),r=Dt(e,n,e.name);xt(t,!1);const i=28!==n.kind&&function(e){if(dC(e=Jl(e))){const n=Ft(e,!0,!1);return!e.numericLiteralFlags&&!rt(n,ms(24))}if(iT(e)){const n=sL(e);return"number"===typeof n&&isFinite(n)&&Math.floor(n)===n}}(e.expression)&&!y.hasTrailingComment()&&!y.hasTrailingWhitespace();i&&ot(".");e.questionDotToken?we(n):dn(n.kind,e.expression.end,ot,e);xt(r,!1),we(e.name),St(t,r)}(n);case 209:return function(e){Oe(e.expression,le.parenthesizeLeftSideOfAccess),we(e.questionDotToken),dn(22,e.expression.end,ot,e),Oe(e.argumentExpression),dn(23,e.argumentExpression.end,ot,e)}(n);case 210:return function(e){const n=16&uf(e);n&&(ot("("),it("0"),ot(","),_t());Oe(e.expression,le.parenthesizeLeftSideOfAccess),n&&ot(")");we(e.questionDotToken),Jn(e,e.typeArguments),et(e,e.arguments,2576,le.parenthesizeExpressionForDisallowedComma)}(n);case 211:return function(e){dn(103,e.pos,ct,e),_t(),Oe(e.expression,le.parenthesizeExpressionOfNew),Jn(e,e.typeArguments),et(e,e.arguments,18960,le.parenthesizeExpressionForDisallowedComma)}(n);case 212:return function(e){const n=16&uf(e);n&&(ot("("),it("0"),ot(","),_t());Oe(e.tag,le.parenthesizeLeftSideOfAccess),n&&ot(")");Jn(e,e.typeArguments),_t(),Oe(e.template)}(n);case 213:return function(e){ot("<"),we(e.type),ot(">"),Oe(e.expression,le.parenthesizeOperandOfPrefixUnary)}(n);case 214:return function(e){const n=dn(20,e.pos,ot,e),t=It(e.expression,e);Oe(e.expression,void 0),wt(e.expression,e),St(t),dn(21,e.expression?e.expression.end:n,ot,e)}(n);case 215:return function(e){zt(e.name),mn(e)}(n);case 216:return function(e){jn(e,e.modifiers),hn(e,tn)}(n);case 217:return function(e){dn(89,e.pos,ct,e),_t(),Oe(e.expression,le.parenthesizeOperandOfPrefixUnary)}(n);case 218:return function(e){dn(112,e.pos,ct,e),_t(),Oe(e.expression,le.parenthesizeOperandOfPrefixUnary)}(n);case 219:return function(e){dn(114,e.pos,ct,e),_t(),Oe(e.expression,le.parenthesizeOperandOfPrefixUnary)}(n);case 220:return function(e){dn(133,e.pos,ct,e),_t(),Oe(e.expression,le.parenthesizeOperandOfPrefixUnary)}(n);case 221:return function(e){bt(e.operator,lt),function(e){const n=e.operand;return 221===n.kind&&(39===e.operator&&(39===n.operator||45===n.operator)||40===e.operator&&(40===n.operator||46===n.operator))}(e)&&_t();Oe(e.operand,le.parenthesizeOperandOfPrefixUnary)}(n);case 222:return function(e){Oe(e.operand,le.parenthesizeOperandOfPostfixUnary),bt(e.operator,lt)}(n);case 223:return ue(n);case 224:return function(e){const n=Dt(e,e.condition,e.questionToken),t=Dt(e,e.questionToken,e.whenTrue),r=Dt(e,e.whenTrue,e.colonToken),i=Dt(e,e.colonToken,e.whenFalse);Oe(e.condition,le.parenthesizeConditionOfConditionalExpression),xt(n,!0),we(e.questionToken),xt(t,!0),Oe(e.whenTrue,le.parenthesizeBranchOfConditionalExpression),St(n,t),xt(r,!0),we(e.colonToken),xt(i,!0),Oe(e.whenFalse,le.parenthesizeBranchOfConditionalExpression),St(r,i)}(n);case 225:return function(e){we(e.head),Zn(e,e.templateSpans,262144)}(n);case 226:return function(e){dn(125,e.pos,ct,e),we(e.asteriskToken),zn(e.expression&&pn(e.expression),fn)}(n);case 227:return function(e){dn(25,e.pos,ot,e),Oe(e.expression,le.parenthesizeExpressionForDisallowedComma)}(n);case 228:return function(e){zt(e.name),xn(e)}(n);case 229:case 279:case 355:case 358:case 359:return;case 231:return function(e){Oe(e.expression,void 0),e.type&&(_t(),ct("as"),_t(),we(e.type))}(n);case 232:return function(e){Oe(e.expression,le.parenthesizeLeftSideOfAccess),lt("!")}(n);case 230:return rn(n);case 235:return function(e){Oe(e.expression,void 0),e.type&&(_t(),ct("satisfies"),_t(),we(e.type))}(n);case 233:return function(e){yt(e.keywordToken,e.pos,ot),ot("."),we(e.name)}(n);case 234:return Nt.fail("SyntheticExpression should never be printed.");case 281:return function(e){we(e.openingElement),Zn(e,e.children,262144),we(e.closingElement)}(n);case 282:return function(e){ot("<"),Ln(e.tagName),Jn(e,e.typeArguments),_t(),we(e.attributes),ot("/>")}(n);case 285:return function(e){we(e.openingFragment),Zn(e,e.children,262144),we(e.closingFragment)}(n);case 354:return Nt.fail("SyntaxList should not be printed");case 356:return function(e){const n=df(e);1024&n||e.pos===e.expression.pos||vr(e.expression.pos);Oe(e.expression),2048&n||e.end===e.expression.end||gr(e.expression.end)}(n);case 357:return function(e){et(e,e.elements,528,void 0)}(n);case 360:return Nt.fail("SyntheticReferenceExpression should not be printed")}return by(n.kind)?vt(n,ct):rd(n.kind)?vt(n,ot):void Nt.fail(`Unhandled SyntaxKind: ${Nt.formatSyntaxKind(n.kind)}.`)}function Xe(e,n){const t=We(1,e,n);Nt.assertIsDefined(C),n=C,C=void 0,t(e,n)}function Ye(n){let r=!1;const i=309===n.kind?n:void 0;if(i&&0===H)return;const a=i?i.prepends.length:0,o=i?i.sourceFiles.length+a:1;for(let s=0;s<o;s++){const o=i?s<a?i.prepends[s]:i.sourceFiles[s-a]:n,c=Iw(o)?o:Rw(o)?void 0:t,l=e.noEmitHelpers||!!c&&QR(c),d=(Iw(o)||Rw(o))&&!b,u=Rw(o)?o.helpers:$e(o);if(u)for(const e of u){if(e.scoped){if(i)continue}else{if(l)continue;if(d){if(K.get(e.name))continue;K.set(e.name,!0)}}const n=he();"string"===typeof e.text?Tt(e.text):Tt(e.text(er)),q&&q.sections.push({pos:n,end:y.getTextPos(),kind:"emitHelpers",data:e.name}),r=!0}}return r}function $e(e){const n=_L(e);return n&&Re(n,aC)}function Qe(n,t){const r=Ft(n,e.neverAsciiEscape,t);var i;!e.sourceMap&&!e.inlineSourceMap||10!==n.kind&&!ld(n.kind)?(i=r,y.writeStringLiteral(i)):it(r)}function Ze(e){y.rawWrite(e.parent.text.substring(e.pos,e.end))}function en(e){(e.symbol?at:z)(Pt(e,!1),e.symbol),Zn(e,bL(e),53776)}function nn(e){z(Pt(e,!1))}function tn(e){Xn(e,e.typeParameters),$n(e,e.parameters),Hn(e.type),_t(),we(e.equalsGreaterThanToken)}function rn(e){Oe(e.expression,le.parenthesizeLeftSideOfAccess),Jn(e,e.typeArguments)}function an(e,n){dn(18,e.pos,ot,e);const t=n||1&df(e)?768:129;Zn(e,e.statements,t),dn(19,e.statements.end,ot,e,!!(1&t))}function on(e){e?ot(";"):st()}function cn(e,n){const t=dn(115,n,ct,e);_t(),dn(20,t,ot,e),Oe(e.expression),dn(21,e.expression.end,ot,e)}function ln(e){void 0!==e&&(258===e.kind?we(e):Oe(e))}function dn(e,n,r,i,a){const o=Fc(i),s=o&&o.kind===i.kind,c=n;if(s&&t&&(n=Ns(t.text,n)),s&&i.pos!==c){const e=a&&t&&!kE(c,n,t);e&&ht(),gr(c),e&>()}if(n=bt(e,r,n),s&&i.end!==n){const e=291===i.kind;vr(n,!e,e)}return n}function un(e){return 2===e.kind||!!e.hasTrailingNewLine}function _n(e){return!!t&&(!!ce(Hs(t.text,e.pos),un)||(!!ce(eL(e),un)||!!lI(e)&&(!(e.pos===e.expression.pos||!ce(Ks(t.text,e.expression.pos),un))||_n(e.expression))))}function pn(e){if(!ae&&lI(e)&&_n(e)){const n=Fc(e);if(n&&Vk(n)){const t=gA.createParenthesizedExpression(e.expression);return FA(t,e),VN(t,n),t}return gA.createParenthesizedExpression(e)}return e}function fn(e){return pn(le.parenthesizeExpressionForDisallowedComma(e))}function mn(e){Vn(e,e.modifiers,!1),ct("function"),we(e.asteriskToken),_t(),Ne(e.name),hn(e,gn)}function hn(e,n){const t=e.body;if(t)if(pI(t)){const r=131072&df(e);r&&ht(),Gt(e),A(e.parameters,Kt),Kt(e.body),n(e),yn(t),Bt(e),r&>()}else n(e),_t(),Oe(t,le.parenthesizeConciseBodyOfArrowFunction);else n(e),st()}function gn(e){Xn(e,e.typeParameters),Yn(e,e.parameters),Hn(e.type)}function yn(e){null==O||O(e),_t(),ot("{"),ht();const n=function(e){if(1&df(e))return!0;if(e.multiLine)return!1;if(!$y(e)&&t&&!bE(e,t))return!1;if(At(e,De(e.statements),2)||Ct(e,Fe(e.statements),2,e.statements))return!1;let n;for(const t of e.statements){if(Lt(n,t,2)>0)return!1;n=t}return!0}(e)?vn:bn;ur(e,e.statements,n),gt(),yt(19,e.statements.end,ot,e),null==P||P(e)}function vn(e){bn(e,!0)}function bn(e,n){const t=Pn(e.statements),r=y.getTextPos();Ye(e),0===t&&r===y.getTextPos()&&n?(gt(),Zn(e,e.statements,768),ht()):Zn(e,e.statements,1,void 0,t)}function xn(e){Vt(0,void 0),A(e.members,Wt),Vn(e,e.modifiers,!0),dn(84,gE(e).pos,ct,e),e.name&&(_t(),Ne(e.name));const n=131072&df(e);n&&ht(),Xn(e,e.typeParameters),Zn(e,e.heritageClauses,0),_t(),ot("{"),Zn(e,e.members,129),ot("}"),n&>(),jt()}function Sn(e){ot("{"),Zn(e,e.elements,525136),ot("}")}function An(e){e.isTypeOnly&&(ct("type"),_t()),e.propertyName&&(we(e.propertyName),_t(),dn(128,e.propertyName.end,ct,e),_t()),we(e.name)}function Ln(e){79===e.kind?Oe(e):we(e)}function Cn(e,n,r){let i=163969;1===n.length&&(!t||$y(e)||$y(n[0])||EE(e,n[0],t))?(yt(58,r,ot,e),_t(),i&=-130):dn(58,r,ot,e),Zn(e,n,i)}function kn(e){Zn(e,gA.createNodeArray(e.jsDocPropertyTags),33)}function In(e){e.typeParameters&&Zn(e,gA.createNodeArray(e.typeParameters),33),e.parameters&&Zn(e,gA.createNodeArray(e.parameters),33),e.type&&(mt(),_t(),ot("*"),_t(),we(e.type))}function wn(e){ot("@"),we(e)}function Rn(e){const n=Ol(e);n&&(_t(),z(n))}function Nn(e){e&&(_t(),ot("{"),we(e.type),ot("}"))}function Dn(e){mt();const n=e.statements;0===n.length||!hm(n[0])||$y(n[0])?ur(e,n,Mn):Mn(e)}function On(e,n,r,i){if(e){const e=y.getTextPos();ut('/// <reference no-default-lib="true"/>'),q&&q.sections.push({pos:e,end:y.getTextPos(),kind:"no-default-lib"}),mt()}if(t&&t.moduleName&&(ut(`/// <amd-module name="${t.moduleName}" />`),mt()),t&&t.amdDependencies)for(const a of t.amdDependencies)a.name?ut(`/// <amd-dependency name="${a.name}" path="${a.path}" />`):ut(`/// <amd-dependency path="${a.path}" />`),mt();for(const t of n){const e=y.getTextPos();ut(`/// <reference path="${t.fileName}" />`),q&&q.sections.push({pos:e,end:y.getTextPos(),kind:"reference",data:t.fileName}),mt()}for(const a of r){const e=y.getTextPos(),n=a.resolutionMode&&a.resolutionMode!==(null==t?void 0:t.impliedNodeFormat)?`resolution-mode="${99===a.resolutionMode?"import":"require"}"`:"";ut(`/// <reference types="${a.fileName}" ${n}/>`),q&&q.sections.push({pos:e,end:y.getTextPos(),kind:a.resolutionMode?99===a.resolutionMode?"type-import":"type-require":"type",data:a.fileName}),mt()}for(const t of i){const e=y.getTextPos();ut(`/// <reference lib="${t.fileName}" />`),q&&q.sections.push({pos:e,end:y.getTextPos(),kind:"lib",data:t.fileName}),mt()}}function Mn(e){const n=e.statements;Gt(e),A(e.statements,Kt),Ye(e);const t=M(n,(e=>!hm(e)));!function(e){e.isDeclarationFile&&On(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(e),Zn(e,n,1,void 0,-1===t?n.length:t),Bt(e)}function Pn(e,n,t,r){let i=!!n;for(let a=0;a<e.length;a++){const o=e[a];if(!hm(o))return a;if(!t||!t.has(o.expression.text)){i&&(i=!1,Le(n)),mt();const e=y.getTextPos();we(o),r&&q&&q.sections.push({pos:e,end:y.getTextPos(),kind:"prologue",data:o.expression.text}),t&&t.add(o.expression.text)}}return e.length}function Fn(e,n){for(const t of e)if(!n.has(t.data)){mt();const e=y.getTextPos();we(t),q&&q.sections.push({pos:e,end:y.getTextPos(),kind:"prologue",data:t.data}),n&&n.add(t.data)}}function Gn(e){if(Iw(e))Pn(e.statements,e);else{const n=new Set;for(const t of e.prepends)Fn(t.prologues,n);for(const t of e.sourceFiles)Pn(t.statements,t,n,!0);Le(void 0)}}function Bn(e){if(Iw(e)||Rw(e)){const n=Ws(e.text);if(n)return ut(n),mt(),!0}else{for(const n of e.prepends)if(Nt.assertNode(n,Rw),Bn(n))return!0;for(const n of e.sourceFiles)if(Bn(n))return!0}}function Un(e,n){if(!e)return;const t=z;z=n,we(e),z=t}function Vn(e,n,t){if(null==n?void 0:n.length){if(N(n,Ad))return jn(e,n);if(N(n,JC))return t?function(e,n){Zn(e,n,2146305);const t=Fe(n);return t&&!Zx(t.end)?t.end:e.pos}(e,n):e.pos;let r,i;null==F||F(n);let a,o=0,s=0;for(;o<n.length;){for(;s<n.length;){if(a=n[s],i=JC(a)?"decorators":"modifiers",void 0===r)r=i;else if(i!==r)break;s++}const c={pos:-1,end:-1};0===o&&(c.pos=n.pos),s===n.length-1&&(c.end=n.end),("modifiers"===r||t)&&tt(we,e,n,"modifiers"===r?2359808:2146305,void 0,o,s-o,!1,c),o=s,r=i,s++}if(null==G||G(n),a&&!Zx(a.end))return a.end}return e.pos}function jn(e,n){Zn(e,n,2359808);const t=Fe(n);return t&&!Zx(t.end)?t.end:e.pos}function Hn(e){e&&(ot(":"),_t(),we(e))}function Kn(e,n,t,r){e&&(_t(),dn(63,n,lt,t),_t(),Oe(e,r))}function Wn(e){e&&(_t(),we(e))}function zn(e,n){e&&(_t(),Oe(e,n))}function qn(e,n){pI(n)||1&df(e)?(_t(),we(n)):(mt(),ht(),mI(n)?Ve(5,n):we(n),gt())}function Jn(e,n){Zn(e,n,53776,de)}function Xn(e,n){if(Id(e)&&e.typeArguments)return Jn(e,e.typeArguments);Zn(e,n,53776)}function Yn(e,n){Zn(e,n,2576)}function $n(e,n){!function(e,n){const t=Be(n);return t&&t.pos===e.pos&&Hk(e)&&!e.type&&!ce(e.modifiers)&&!ce(e.typeParameters)&&!ce(t.modifiers)&&!t.dotDotDotToken&&!t.questionToken&&!t.type&&!t.initializer&&IC(t.name)}(e,n)?Yn(e,n):Zn(e,n,528)}function Qn(e){switch(60&e){case 0:break;case 16:ot(",");break;case 4:_t(),ot("|");break;case 32:_t(),ot("*"),_t();break;case 8:_t(),ot("&")}}function Zn(e,n,t,r,i,a){nt(we,e,n,t|(e&&2&df(e)?65536:0),r,i,a)}function et(e,n,t,r,i,a){nt(Oe,e,n,t,r,i,a)}function nt(e,n,r,i,a,o=0,s=(r?r.length-o:0)){if(void 0===r&&16384&i)return;const c=void 0===r||o>=r.length||0===s;if(c&&32768&i)return null==F||F(r),void(null==G||G(r));15360&i&&(ot(function(e){return $V[15360&e][0]}(i)),c&&r&&vr(r.pos,!0)),null==F||F(r),c?!(1&i)||W&&(!n||t&&bE(n,t))?256&i&&!(524288&i)&&_t():mt():tt(e,n,r,i,a,o,s,r.hasTrailingComma,r),null==G||G(r),15360&i&&(c&&r&&gr(r.end),ot(function(e){return $V[15360&e][1]}(i)))}function tt(e,n,t,r,i,a,o,s,c){const l=0===(262144&r);let d=l;const u=At(n,t[a],r);u?(mt(u),d=!1):256&r&&_t(),128&r&&ht();const _=function(e,n){return 1===e.length?kj:"object"===typeof n?Ij:wj}(e,i);let p,f,m=!1;for(let E=0;E<o;E++){const o=t[a+E];if(32&r)mt(),Qn(r);else if(p){if(60&r&&p.end!==(n?n.end:-1)){2048&df(p)||gr(p.end)}Qn(r),ve(f);const e=Lt(p,o,r);e>0?(0===(131&r)&&(ht(),m=!0),mt(e),d=!1):p&&512&r&&_t()}if(f=ye(o),d){vr(QA(o).pos)}else d=l;g=o.pos,_(o,e,i,E),m&&(gt(),m=!1),p=o}const h=p?df(p):0,y=ae||!!(2048&h),v=s&&64&r&&16&r;v&&(p&&!y?dn(27,p.end,ot,p):ot(",")),p&&(n?n.end:-1)!==p.end&&60&r&&!y&&gr(v&&(null==c?void 0:c.end)?c.end:p.end),128&r&>(),ve(f);const b=Ct(n,t[a+o-1],r,c);b?mt(b):2097408&r&&_t()}function it(e){y.writeLiteral(e)}function at(e,n){y.writeSymbol(e,n)}function ot(e){y.writePunctuation(e)}function st(){y.writeTrailingSemicolon(";")}function ct(e){y.writeKeyword(e)}function lt(e){y.writeOperator(e)}function dt(e){y.writeParameter(e)}function ut(e){y.writeComment(e)}function _t(){y.writeSpace(" ")}function pt(e){y.writeProperty(e)}function ft(e){y.nonEscapingWrite?y.nonEscapingWrite(e):y.write(e)}function mt(e=1){for(let n=0;n<e;n++)y.writeLine(n>0)}function ht(){y.increaseIndent()}function gt(){y.decreaseIndent()}function yt(e,n,t,r){return Q?bt(e,t,n):function(e,n,t,r,i){if(Q||e&&wh(e))return i(n,t,r);const a=e&&e.emitNode,o=a&&a.flags||0,s=a&&a.tokenSourceMapRanges&&a.tokenSourceMapRanges[n],c=s&&s.source||T;r=wr(c,s?s.pos:r),0===(256&o)&&r>=0&&Nr(c,r);r=i(n,t,r),s&&(r=s.end);0===(512&o)&&r>=0&&Nr(c,r);return r}(r,e,t,n,bt)}function vt(e,n){B&&B(e),n(ms(e.kind)),U&&U(e)}function bt(e,n,t){const r=ms(e);return n(r),t<0?t:t+r.length}function Et(e,n,t){if(1&df(e))_t();else if(W){const r=Dt(e,n,t);r?mt(r):_t()}else mt()}function Tt(e){const n=e.split(/\r\n?|\n/g),t=a_(n);for(const r of n){const e=t?r.slice(t):r;e.length&&(mt(),z(e))}}function xt(e,n){e?(ht(),mt(e)):n&&_t()}function St(e,n){e&>(),n&>()}function At(e,n,r){if(2&r||W){if(65536&r)return 1;if(void 0===n)return!e||t&&bE(e,t)?0:1;if(n.pos===g)return 0;if(11===n.kind)return 0;if(t&&e&&!Zx(e.pos)&&!$y(n)&&(!n.parent||Oc(n.parent)===Oc(e)))return W?kt((r=>wE(n.pos,e.pos,t,r))):EE(e,n,t)?0:1;if(Rt(n,r))return 1}return 1&r?1:0}function Lt(e,n,r){if(2&r||W){if(void 0===e||void 0===n)return 0;if(11===n.kind)return 0;if(t&&!$y(e)&&!$y(n))return W&&function(e,n){if(n.pos<e.end)return!1;e=Oc(e),n=Oc(n);const t=e.parent;if(!t||t!==n.parent)return!1;const r=OS(e),i=null==r?void 0:r.indexOf(e);return void 0!==i&&i>-1&&r.indexOf(n)===i+1}(e,n)?kt((r=>AE(e,n,t,r))):!W&&(a=n,(i=Oc(i=e)).parent&&i.parent===Oc(a).parent)?SE(e,n,t)?0:1:65536&r?1:0;if(Rt(e,r)||Rt(n,r))return 1}else if(YA(n))return 1;var i,a;return 1&r?1:0}function Ct(e,n,r,i){if(2&r||W){if(65536&r)return 1;if(void 0===n)return!e||t&&bE(e,t)?0:1;if(t&&e&&!Zx(e.pos)&&!$y(n)&&(!n.parent||n.parent===e)){if(W){const r=i&&!Zx(i.end)?i.end:n.end;return kt((n=>RE(r,e.end,t,n)))}return TE(e,n,t)?0:1}if(Rt(n,r))return 1}return 1&r&&!(131072&r)?1:0}function kt(e){Nt.assert(!!W);const n=e(!0);return 0===n?e(!1):n}function It(e,n){const t=W&&At(n,e,0);return t&&xt(t,!1),!!t}function wt(e,n){const t=W&&Ct(n,e,0,void 0);t&&mt(t)}function Rt(e,n){if($y(e)){const t=YA(e);return void 0===t?0!==(65536&n):t}return 0!==(65536&n)}function Dt(e,n,r){return 262144&df(e)?0:(e=Mt(e),n=Mt(n),YA(r=Mt(r))?1:!t||$y(e)||$y(n)||$y(r)?0:W?kt((e=>AE(n,r,t,e))):SE(n,r,t)?0:1)}function Ot(e){return 0===e.statements.length&&(!t||SE(e,e,t))}function Mt(e){for(;214===e.kind&&$y(e);)e=e.expression;return e}function Pt(e,n){if(yd(e)||vd(e))return qt(e);if(_C(e)&&e.textSourceNode)return Pt(e.textSourceNode,n);const r=t,i=!!r&&!!e.parent&&!$y(e);if(Fl(e)){if(!i||Dp(e)!==Oc(r))return Uc(e)}else if(Nt.assertNode(e,sd),!i)return e.text;return rf(r,e,n)}function Ft(n,r,i){if(10===n.kind&&n.textSourceNode){const e=n.textSourceNode;if(IC(e)||wC(e)||dC(e)){const t=dC(e)?e.text:Pt(e);return i?`"${pv(t)}"`:r||33554432&df(n)?`"${dv(t)}"`:`"${uv(t)}"`}return Ft(e,r,i)}const a=(r?1:0)|(i?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&99===e.target?8:0);return pf(n,t,a)}function Gt(e){e&&1048576&df(e)||(u.push(_),_=0,s.push(c),c=void 0,p.push(f))}function Bt(e){e&&1048576&df(e)||(_=u.pop(),c=s.pop(),f=p.pop())}function Ut(e){f&&f!==Fe(p)||(f=new Set),f.add(e)}function Vt(e,n){l.push(d),d=e,m.push(f),h=n}function jt(){d=l.pop(),h=m.pop()}function Ht(e){h&&h!==Fe(m)||(h=new Set),h.add(e)}function Kt(e){if(e)switch(e.kind){case 238:case 292:case 293:A(e.statements,Kt);break;case 253:case 251:case 243:case 244:Kt(e.statement);break;case 242:Kt(e.thenStatement),Kt(e.elseStatement);break;case 245:case 247:case 246:Kt(e.initializer),Kt(e.statement);break;case 252:Kt(e.caseBlock);break;case 266:A(e.clauses,Kt);break;case 255:Kt(e.tryBlock),Kt(e.catchClause),Kt(e.finallyBlock);break;case 295:Kt(e.variableDeclaration),Kt(e.block);break;case 240:Kt(e.declarationList);break;case 258:A(e.declarations,Kt);break;case 257:case 166:case 205:case 260:case 271:case 277:zt(e.name);break;case 259:zt(e.name),1048576&df(e)&&(A(e.parameters,Kt),Kt(e.body));break;case 203:case 204:case 272:A(e.elements,Kt);break;case 269:Kt(e.importClause);break;case 270:zt(e.name),Kt(e.namedBindings);break;case 273:zt(e.propertyName||e.name)}}function Wt(e){if(e)switch(e.kind){case 299:case 300:case 169:case 171:case 174:case 175:zt(e.name)}}function zt(e){e&&(yd(e)||vd(e)?qt(e):Jd(e)&&Kt(e))}function qt(e){const n=e.emitNode.autoGenerate;if(4===(7&n.flags))return Jt(IN(e),wC(e),n.flags,n.prefix,n.suffix);{const t=n.id;return a[t]||(a[t]=function(e){const n=e.emitNode.autoGenerate,t=wN(n.prefix,qt),r=wN(n.suffix);switch(7&n.flags){case 1:return Qt(0,!!(8&n.flags),wC(e),t,r);case 2:return Nt.assertNode(e,IC),Qt(268435456,!!(8&n.flags),!1,t,r);case 3:return Zt(Uc(e),32&n.flags?Yt:Xt,!!(16&n.flags),!!(8&n.flags),wC(e),t,r)}return Nt.fail(`Unsupported GeneratedIdentifierKind: ${Nt.formatEnum(7&n.flags,Yr,!0)}.`)}(e))}}function Jt(e,n,t,a,o){const s=ZG(e),c=n?i:r;return c[s]||(c[s]=rr(e,n,null!=t?t:0,wN(a,qt),wN(o)))}function Xt(e,n){return Yt(e,n)&&!function(e,n){return n?!!(null==h?void 0:h.has(e)):!!(null==f?void 0:f.has(e))}(e,n)&&!o.has(e)}function Yt(e,n){return!t||Up(t,e,I)}function $t(e,n){switch(e){case"":_=n;break;case"#":d=n;break;default:null!=c||(c=new Map),c.set(e,n)}}function Qt(e,n,t,r,i){r.length>0&&35===r.charCodeAt(0)&&(r=r.slice(1));const a=NN(t,r,"",i);let o=function(e){var n;switch(e){case"":return _;case"#":return d;default:return null!=(n=null==c?void 0:c.get(e))?n:0}}(a);if(e&&!(o&e)){const s=NN(t,r,268435456===e?"_i":"_n",i);if(Xt(s,t))return o|=e,t?Ht(s):n&&Ut(s),$t(a,o),s}for(;;){const e=268435455&o;if(o++,8!==e&&13!==e){const s=NN(t,r,e<26?"_"+String.fromCharCode(97+e):"_"+(e-26),i);if(Xt(s,t))return t?Ht(s):n&&Ut(s),$t(a,o),s}}}function Zt(e,n=Xt,t,r,i,a,s){if(e.length>0&&35===e.charCodeAt(0)&&(e=e.slice(1)),a.length>0&&35===a.charCodeAt(0)&&(a=a.slice(1)),t){const t=NN(i,a,e,s);if(n(t,i))return i?Ht(t):r?Ut(t):o.add(t),t}95!==e.charCodeAt(e.length-1)&&(e+="_");let c=1;for(;;){const t=NN(i,a,e+c,s);if(n(t,i))return i?Ht(t):r?Ut(t):o.add(t),t;c++}}function er(e){return Zt(e,Yt,!0,!1,!1,"","")}function nr(e){const n=Pt(e.name);return function(e,n){for(let t=n;t&&ty(t,n);t=t.nextContainer)if(Du(t)&&t.locals){const n=t.locals.get(Gc(e));if(n&&3257279&n.flags)return!1}return!0}(n,En(e,Du))?n:Zt(n,Xt,!1,!1,!1,"","")}function tr(){return Zt("default",Xt,!1,!1,!1,"","")}function rr(e,n,t,r,i){switch(e.kind){case 79:case 80:return Zt(Pt(e),Xt,!!(16&t),!!(8&t),n,r,i);case 264:case 263:return Nt.assert(!r&&!i&&!n),nr(e);case 269:case 275:return Nt.assert(!r&&!i&&!n),function(e){const n=vg(e);return Zt(_C(n)?mf(n.text):"module",Xt,!1,!1,!1,"","")}(e);case 259:case 260:{Nt.assert(!r&&!i&&!n);const a=e.name;return a&&!yd(a)?rr(a,!1,t,r,i):tr()}case 274:return Nt.assert(!r&&!i&&!n),tr();case 228:return Nt.assert(!r&&!i&&!n),Zt("class",Xt,!1,!1,!1,"","");case 171:case 174:case 175:return function(e,n,t,r){return IC(e.name)?Jt(e.name,n):Qt(0,!1,n,t,r)}(e,n,r,i);case 164:return Qt(0,!0,n,r,i);default:return Qt(0,!1,n,r,i)}}function ir(e,n){const t=We(2,e,n),r=ne,i=te,a=re;ar(n),t(e,n),or(n,r,i,a)}function ar(e){const n=df(e),t=QA(e);!function(e,n,t,r){oe(),ie=!1;const i=t<0||0!==(1024&n)||11===e.kind,a=r<0||0!==(2048&n)||11===e.kind;(t>0||r>0)&&t!==r&&(i||_r(t,355!==e.kind),(!i||t>=0&&0!==(1024&n))&&(ne=t),(!a||r>=0&&0!==(2048&n))&&(te=r,258===e.kind&&(re=r)));A(eL(e),cr),se()}(e,n,t.pos,t.end),4096&n&&(ae=!0)}function or(e,n,t,r){const i=df(e),a=QA(e);4096&i&&(ae=!1),sr(e,i,a.pos,a.end,n,t,r);const o=yL(e);o&&sr(e,i,o.pos,o.end,n,t,r)}function sr(e,n,t,r,i,a,o){oe();const s=r<0||0!==(2048&n)||11===e.kind;A(rL(e),lr),(t>0||r>0)&&t!==r&&(ne=i,te=a,re=o,s||355===e.kind||function(e){xr(e,yr)}(r)),se()}function cr(e){(e.hasLeadingNewline||2===e.kind)&&y.writeLine(),dr(e),e.hasTrailingNewLine||2===e.kind?y.writeLine():y.writeSpace(" ")}function lr(e){y.isAtStartOfLine()||y.writeSpace(" "),dr(e),e.hasTrailingNewLine&&y.writeLine()}function dr(e){const n=function(e){return 3===e.kind?`/*${e.text}*/`:`//${e.text}`}(e);cb(n,3===e.kind?gs(n):void 0,y,0,n.length,j)}function ur(e,n,r){oe();const{pos:i,end:a}=n,o=df(e),s=ae||a<0||0!==(2048&o);i<0||0!==(1024&o)||function(e){const n=t&&sb(t.text,Ie(),y,Sr,e,j,ae);n&&(L?L.push(n):L=[n])}(n),se(),4096&o&&!ae?(ae=!0,r(e),ae=!1):r(e),oe(),s||(_r(n.end,!0),ie&&!y.isAtStartOfLine()&&y.writeLine()),se()}function _r(e,n){ie=!1,n?0===e&&(null==t?void 0:t.isDeclarationFile)?Tr(e,fr):Tr(e,hr):0===e&&Tr(e,pr)}function pr(e,n,t,r,i){Ar(e,n)&&hr(e,n,t,r,i)}function fr(e,n,t,r,i){Ar(e,n)||hr(e,n,t,r,i)}function mr(n,t){return!e.onlyPrintJsDocStyle||(oD(n,t)||Zp(n,t))}function hr(e,n,r,i,a){t&&mr(t.text,e)&&(ie||(ab(Ie(),y,a,e),ie=!0),Rr(e),cb(t.text,Ie(),y,e,n,j),Rr(n),i?y.writeLine():3===r&&y.writeSpace(" "))}function gr(e){ae||-1===e||_r(e,!0)}function yr(e,n,r,i){t&&mr(t.text,e)&&(y.isAtStartOfLine()||y.writeSpace(" "),Rr(e),cb(t.text,Ie(),y,e,n,j),Rr(n),i&&y.writeLine())}function vr(e,n,t){ae||(oe(),xr(e,n?yr:t?br:Er),se())}function br(e,n,r){t&&(Rr(e),cb(t.text,Ie(),y,e,n,j),Rr(n),2===r&&y.writeLine())}function Er(e,n,r,i){t&&(Rr(e),cb(t.text,Ie(),y,e,n,j),Rr(n),i?y.writeLine():y.writeSpace(" "))}function Tr(e,n){!t||-1!==ne&&e===ne||(function(e){return void 0!==L&&Ge(L).nodePos===e}(e)?function(e){if(!t)return;const n=Ge(L).detachedCommentEndPos;L.length-1?L.pop():L=void 0;Gs(t.text,n,e,n)}(n):Gs(t.text,e,n,e))}function xr(e,n){t&&(-1===te||e!==te&&e!==re)&&Bs(t.text,e,n)}function Sr(e,n,r,i,a,o){t&&mr(t.text,i)&&(Rr(i),cb(e,n,r,i,a,o),Rr(a))}function Ar(e,n){return!!t&&Qp(t.text,e,n)}function Cr(e,n){const t=We(3,e,n);kr(n),t(e,n),Ir(n)}function kr(e){const n=df(e),t=zA(e);if(Zl(e)){Nt.assertIsDefined(e.parent,"UnparsedNodes must have parent pointers");const n=function(e){return void 0===e.parsedSourceMap&&void 0!==e.sourceMapText&&(e.parsedSourceMap=DB(e.sourceMapText)||!1),e.parsedSourceMap||void 0}(e.parent);n&&E&&E.appendSourceMap(y.getLine(),y.getColumn(),n,e.parent.sourceMapPath,e.parent.getLineAndCharacterOfPosition(e.pos),e.parent.getLineAndCharacterOfPosition(e.end))}else{const r=t.source||T;355!==e.kind&&0===(32&n)&&t.pos>=0&&Nr(t.source||T,wr(r,t.pos)),128&n&&(Q=!0)}}function Ir(e){const n=df(e),t=zA(e);Zl(e)||(128&n&&(Q=!1),355!==e.kind&&0===(64&n)&&t.end>=0&&Nr(t.source||T,t.end))}function wr(e,n){return e.skipTrivia?e.skipTrivia(n):Ns(e.text,n)}function Rr(e){if(Q||Zx(e)||Or(T))return;const{line:n,character:t}=Ss(T,e);E.addMapping(y.getLine(),y.getColumn(),Z,n,t,void 0)}function Nr(e,n){if(e!==T){const t=T,r=Z;Dr(e),Rr(n),function(e,n){T=e,Z=n}(t,r)}else Rr(n)}function Dr(n){Q||(T=n,n!==x?Or(n)||(Z=E.addSource(n.fileName),e.inlineSources&&E.setSourceContent(Z,n.text),x=n,ee=Z):Z=ee)}function Or(e){return oo(e.fileName,".json")}}function kj(e,n,t,r){n(e)}function Ij(e,n,t,r){n(e,t.select(r))}function wj(e,n,t,r){n(e,t)}var Rj,Nj,Dj=E({"src/compiler/emitter.ts"(){lq(),lq(),_a(),$V=function(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}(),QV={hasGlobalName:wn,getReferencedExportContainer:wn,getReferencedImportDeclaration:wn,getReferencedDeclarationWithCollidingName:wn,isDeclarationWithCollidingName:wn,isValueAliasDeclaration:wn,isReferencedAliasDeclaration:wn,isTopLevelValueImportEqualsWithEntityName:wn,getNodeCheckFlags:wn,isDeclarationVisible:wn,isLateBound:e=>!1,collectLinkedAliases:wn,isImplementationOfOverload:wn,isRequiredInitializedParameter:wn,isOptionalUninitializedParameterProperty:wn,isExpandoFunctionDeclaration:wn,getPropertiesOfContainerFunction:wn,createTypeOfDeclaration:wn,createReturnTypeOfSignatureDeclaration:wn,createTypeOfExpression:wn,createLiteralConstValue:wn,isSymbolAccessible:wn,isEntityNameVisible:wn,getConstantValue:wn,getReferencedValueDeclaration:wn,getTypeReferenceSerializationKind:wn,isOptionalParameter:wn,moduleExportsSomeValue:wn,isArgumentsLocalBinding:wn,getExternalModuleFileFromDeclaration:wn,getTypeReferenceDirectivesForEntityName:wn,getTypeReferenceDirectivesForSymbol:wn,isLiteralConstDeclaration:wn,getJsxFactoryEntity:wn,getJsxFragmentFactoryEntity:wn,getAllAccessorDeclarations:wn,getSymbolOfExternalModuleSpecifier:wn,isBindingCapturedByNode:wn,getDeclarationStatementsForSourceFile:wn,isImportRequiredByAugmentation:wn},ZV=Rn((()=>Cj({}))),ej=Rn((()=>Cj({removeComments:!0}))),nj=Rn((()=>Cj({removeComments:!0,neverAsciiEscape:!0}))),tj=Rn((()=>Cj({removeComments:!0,omitTrailingSemicolon:!0})))}});function Oj(e,n,t){if(!e.getDirectories||!e.readDirectory)return;const r=new Map,a=lt(t);return{useCaseSensitiveFileNames:t,fileExists:function(n){const t=c(o(n));return t&&u(t.sortedAndCanonicalizedFiles,a(l(n)))||e.fileExists(n)},readFile:(n,t)=>e.readFile(n,t),directoryExists:e.directoryExists&&function(n){const t=o(n);return r.has(Io(t))||e.directoryExists(n)},getDirectories:function(n){const t=o(n),r=d(n,t);if(r)return r.directories.slice();return e.getDirectories(n)},readDirectory:function(r,a,s,c,u){const p=o(r),f=d(r,p);let m;if(void 0!==f)return Dx(r,a,s,c,t,n,u,(function(e){const n=o(e);if(n===p)return f||h(e,n);const t=d(e,n);return void 0!==t?t||h(e,n):op}),_);return e.readDirectory(r,a,s,c,u);function h(n,t){if(m&&t===p)return m;const r={files:W(e.readDirectory(n,void 0,void 0,["*.*"]),l)||i,directories:e.getDirectories(n)||i};return t===p&&(m=r),r}},createDirectory:e.createDirectory&&function(n){const t=c(o(n));if(t){const e=l(n),r=a(e);me(t.sortedAndCanonicalizedDirectories,r,Wn)&&t.directories.push(e)}e.createDirectory(n)},writeFile:e.writeFile&&function(n,t,r){const i=c(o(n));i&&p(i,l(n),!0);return e.writeFile(n,t,r)},addOrDeleteFileOrDirectory:function(n,t){if(void 0!==s(t))return void f();const r=c(t);if(!r)return;if(!e.directoryExists)return void f();const i=l(n),o={fileExists:e.fileExists(t),directoryExists:e.directoryExists(t)};o.directoryExists||u(r.sortedAndCanonicalizedDirectories,a(i))?f():p(r,i,o.fileExists);return o},addOrDeleteFile:function(e,n,t){if(1===t)return;const r=c(n);r&&p(r,l(e),0===t)},clearCache:f,realpath:e.realpath&&_};function o(e){return Co(e,n,a)}function s(e){return r.get(Io(e))}function c(e){const n=s(po(e));return n?(n.sortedAndCanonicalizedFiles||(n.sortedAndCanonicalizedFiles=n.files.map(a).sort(),n.sortedAndCanonicalizedDirectories=n.directories.map(a).sort()),n):n}function l(e){return fo(Ao(e))}function d(n,t){const i=s(t=Io(t));if(i)return i;try{return function(n,t){var i;if(!e.realpath||Io(o(e.realpath(n)))===t){const i={files:W(e.readDirectory(n,void 0,void 0,["*.*"]),l)||[],directories:e.getDirectories(n)||[]};return r.set(Io(t),i),i}if(null==(i=e.directoryExists)?void 0:i.call(e,n))return r.set(t,!1),!1}(n,t)}catch(a){return void Nt.assert(!r.has(Io(t)))}}function u(e,n){return He(e,n,Cn,Wn)>=0}function _(n){return e.realpath?e.realpath(n):n}function p(e,n,t){const r=e.sortedAndCanonicalizedFiles,i=a(n);if(t)me(r,i,Wn)&&e.files.push(n);else{const n=He(r,i,Cn,Wn);if(n>=0){r.splice(n,1);const t=e.files.findIndex((e=>a(e)===i));e.files.splice(t,1)}}}function f(){r.clear()}}function Mj(e,n,t,r,a){var o;const s=nn((null==(o=null==n?void 0:n.configFile)?void 0:o.extendedSourceFiles)||i,a);t.forEach(((n,t)=>{s.has(t)||(n.projects.delete(e),n.close())})),s.forEach(((n,i)=>{const a=t.get(i);a?a.projects.add(e):t.set(i,{projects:new Set([e]),watcher:r(n,i),close:()=>{const e=t.get(i);e&&0===e.projects.size&&(e.watcher.close(),t.delete(i))}})}))}function Pj(e,n){n.forEach((n=>{n.projects.delete(e)&&n.close()}))}function Fj(e,n,t){e.delete(n)&&e.forEach((({extendedResult:r},i)=>{var a;(null==(a=r.extendedSourceFiles)?void 0:a.some((e=>t(e)===n)))&&Fj(e,i,t)}))}function Gj(e,n,t){qE(n,new Map(e),{createNewValue:t,onDeleteValue:PE})}function Bj(e,n,t){qE(n,nn(e.getMissingFilePaths(),Cn,An),{createNewValue:t,onDeleteValue:PE})}function Uj(e,n,t){function r(e,n){return{watcher:t(e,n),flags:n}}qE(e,n,{createNewValue:r,onDeleteValue:Wj,onExistingValue:function(n,t,i){if(n.flags===t)return;n.watcher.close(),e.set(i,r(i,t))}})}function Vj({watchedDirPath:e,fileOrDirectory:n,fileOrDirectoryPath:t,configFileName:r,options:i,program:a,extraFileExtensions:o,currentDirectory:s,useCaseSensitiveFileNames:c,writeLog:l,toPath:d}){const u=VK(t);if(!u)return l(`Project: ${r} Detected ignored path: ${n}`),!0;if((t=u)===e)return!1;if(ao(t)&&!Kx(n,i,o))return l(`Project: ${r} Detected file add/remove of non supported extension: ${n}`),!0;if(qM(n,i.configFile.configFileSpecs,So(po(r),s),c,s))return l(`Project: ${r} Detected excluded file: ${n}`),!0;if(!a)return!1;if(Nv(i)||i.outDir)return!1;if(GD(t)){if(i.declarationDir)return!1}else if(!so(t,Z_))return!1;const _=qx(t),p=gn(a)?void 0:function(e){return!!e.getState}(a)?a.getProgramOrUndefined():a,f=p||gn(a)?void 0:a;return!(!m(_+".ts")&&!m(_+".tsx"))&&(l(`Project: ${r} Detected output file: ${n}`),!0);function m(e){return p?!!p.getSourceFileByPath(e):f?f.getState().fileInfos.has(e):!!D(a,(n=>d(n)===e))}}function jj(e,n){return!!e&&e.isEmittedFile(n)}function Hj(e,n,t,r){Ba(2===n?t:xn);const i={watchFile:(n,t,r,i)=>e.watchFile(n,t,r,i),watchDirectory:(n,t,r,i)=>e.watchDirectory(n,t,0!==(1&r),i)},a=0!==n?{watchFile:l("watchFile"),watchDirectory:l("watchDirectory")}:void 0,o=2===n?{watchFile:function(e,n,i,o,s,c){t(`FileWatcher:: Added:: ${d(e,i,o,s,c,r)}`);const l=a.watchFile(e,n,i,o,s,c);return{close:()=>{t(`FileWatcher:: Close:: ${d(e,i,o,s,c,r)}`),l.close()}}},watchDirectory:function(e,n,i,o,s,c){const l=`DirectoryWatcher:: Added:: ${d(e,i,o,s,c,r)}`;t(l);const u=cr(),_=a.watchDirectory(e,n,i,o,s,c),p=cr()-u;return t(`Elapsed:: ${p}ms ${l}`),{close:()=>{const n=`DirectoryWatcher:: Close:: ${d(e,i,o,s,c,r)}`;t(n);const a=cr();_.close();const l=cr()-a;t(`Elapsed:: ${l}ms ${n}`)}}}}:a||i,s=2===n?function(e,n,i,a,o){return t(`ExcludeWatcher:: Added:: ${d(e,n,i,a,o,r)}`),{close:()=>t(`ExcludeWatcher:: Close:: ${d(e,n,i,a,o,r)}`)}}:JK;return{watchFile:c("watchFile"),watchDirectory:c("watchDirectory")};function c(n){return(t,r,i,a,c,l)=>{var d;return XM(t,"watchFile"===n?null==a?void 0:a.excludeFiles:null==a?void 0:a.excludeDirectories,"boolean"===typeof e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),(null==(d=e.getCurrentDirectory)?void 0:d.call(e))||"")?s(t,i,a,c,l):o[n].call(void 0,t,r,i,a,c,l)}}function l(e){return(n,a,o,s,c,l)=>i[e].call(void 0,n,((...i)=>{const u=`${"watchFile"===e?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${i[0]} ${void 0!==i[1]?i[1]:""}:: ${d(n,o,s,c,l,r)}`;t(u);const _=cr();a.call(void 0,...i);const p=cr()-_;t(`Elapsed:: ${p}ms ${u}`)}),o,s,c,l)}function d(e,n,t,r,i,a){return`WatchInfo: ${e} ${n} ${JSON.stringify(t)} ${a?a(r,i):void 0===i?r:`${r} ${i}`}`}}function Kj(e){const n=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==n?n:1}}function Wj(e){e.watcher.close()}var zj,qj,Jj,Xj,Yj,$j,Qj,Zj,eH,nH,tH,rH,iH,aH=E({"src/compiler/watchUtilities.ts"(){lq(),lq(),Rj=(e=>(e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",e))(Rj||{}),Nj=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(Nj||{})}});function oH(e,n,t="tsconfig.json"){return Ho(e,(e=>{const r=Eo(e,t);return n(r)?r:void 0}))}function sH(e,n){const t=po(n);return Ao(eo(e)?e:Eo(t,e))}function cH(e,n,t){let r;return A(e,(e=>{const i=xo(e,n);if(i.pop(),!r)return void(r=i);const a=Math.min(r.length,i.length);for(let n=0;n<a;n++)if(t(r[n])!==t(i[n])){if(0===n)return!0;r.length=n;break}i.length<r.length&&(r.length=i.length)}))?"":r?yo(r):n}function lH(e,n){return _H(e,n)}function dH(e,n,t){return(r,i,a)=>{let o;try{kr("beforeIORead"),o=e(r,n().charset),kr("afterIORead"),Ir("I/O Read","beforeIORead","afterIORead")}catch(Sa){a&&a(Sa.message),o=""}return void 0!==o?RD(r,o,i,t):void 0}}function uH(e,n,t){return(r,i,a,o)=>{try{kr("beforeIOWrite"),Uv(r,i,a,e,n,t),kr("afterIOWrite"),Ir("I/O Write","beforeIOWrite","afterIOWrite")}catch(Sa){o&&o(Sa.message)}}}function _H(e,n,t=Aa){const r=new Map,i=lt(t.useCaseSensitiveFileNames);function a(){return po(Ao(t.getExecutingFilePath()))}const o=_E(e),s=t.realpath&&(e=>t.realpath(e)),c={getSourceFile:dH((e=>c.readFile(e)),(()=>e),n),getDefaultLibLocation:a,getDefaultLibFileName:e=>Eo(a(),ac(e)),writeFile:uH(((e,n,r)=>t.writeFile(e,n,r)),(e=>(c.createDirectory||t.createDirectory)(e)),(e=>{return n=e,!!r.has(n)||!!(c.directoryExists||t.directoryExists)(n)&&(r.set(n,!0),!0);var n})),getCurrentDirectory:Rn((()=>t.getCurrentDirectory())),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames,getCanonicalFileName:i,getNewLine:()=>o,fileExists:e=>t.fileExists(e),readFile:e=>t.readFile(e),trace:e=>t.write(e+o),directoryExists:e=>t.directoryExists(e),getEnvironmentVariable:e=>t.getEnvironmentVariable?t.getEnvironmentVariable(e):"",getDirectories:e=>t.getDirectories(e),realpath:s,readDirectory:(e,n,r,i,a)=>t.readDirectory(e,n,r,i,a),createDirectory:e=>t.createDirectory(e),createHash:dn(t,t.createHash)};return c}function pH(e,n,t){const r=e.readFile,i=e.fileExists,a=e.directoryExists,o=e.createDirectory,s=e.writeFile,c=new Map,l=new Map,d=new Map,u=new Map,_=(n,t)=>{const i=r.call(e,t);return c.set(n,void 0!==i&&i),i};e.readFile=t=>{const i=n(t),a=c.get(i);return void 0!==a?!1!==a?a:void 0:oo(t,".json")||ij(t)?_(i,t):r.call(e,t)};const p=t?(e,r,i,a)=>{const o=n(e),s="object"===typeof r?r.impliedNodeFormat:void 0,c=u.get(s),l=null==c?void 0:c.get(o);if(l)return l;const d=t(e,r,i,a);return d&&(GD(e)||oo(e,".json"))&&u.set(s,(c||new Map).set(o,d)),d}:void 0;return e.fileExists=t=>{const r=n(t),a=l.get(r);if(void 0!==a)return a;const o=i.call(e,t);return l.set(r,!!o),o},s&&(e.writeFile=(t,r,...i)=>{const a=n(t);l.delete(a);const o=c.get(a);void 0!==o&&o!==r?(c.delete(a),u.forEach((e=>e.delete(a)))):p&&u.forEach((e=>{const n=e.get(a);n&&n.text!==r&&e.delete(a)})),s.call(e,t,r,...i)}),a&&(e.directoryExists=t=>{const r=n(t),i=d.get(r);if(void 0!==i)return i;const o=a.call(e,t);return d.set(r,!!o),o},o&&(e.createDirectory=t=>{const r=n(t);d.delete(r),o.call(e,t)})),{originalReadFile:r,originalFileExists:i,originalDirectoryExists:a,originalCreateDirectory:o,originalWriteFile:s,getSourceFileWithCache:p,readFileWithCache:e=>{const t=n(e),r=c.get(t);return void 0!==r?!1!==r?r:void 0:_(t,e)}}}function fH(e,n,t){let r;return r=Ae(r,e.getConfigFileParsingDiagnostics()),r=Ae(r,e.getOptionsDiagnostics(t)),r=Ae(r,e.getSyntacticDiagnostics(n,t)),r=Ae(r,e.getGlobalDiagnostics(t)),r=Ae(r,e.getSemanticDiagnostics(n,t)),ox(e.getCompilerOptions())&&(r=Ae(r,e.getDeclarationDiagnostics(n,t))),ic(r||i)}function mH(e,n){let t="";for(const r of e)t+=hH(r,n);return t}function hH(e,n){const t=`${fa(e)} TS${e.code}: ${TH(e.messageText,n.getNewLine())}${n.getNewLine()}`;if(e.file){const{line:r,character:i}=Ss(e.file,e.start);return`${Uo(e.file.fileName,n.getCurrentDirectory(),(e=>n.getCanonicalFileName(e)))}(${r+1},${i+1}): `+t}return t}function gH(e){switch(e){case 1:return"\x1b[91m";case 0:return"\x1b[93m";case 2:return Nt.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1b[94m"}}function yH(e,n){return n+e+Xj}function vH(e,n,t,r,i,a){const{line:o,character:s}=Ss(e,n),{line:c,character:l}=Ss(e,n+t),d=Ss(e,e.text.length).line,u=c-o>=4;let _=(c+1+"").length;u&&(_=Math.max(Yj.length,_));let p="";for(let f=o;f<=c;f++){p+=a.getNewLine(),u&&o+1<f&&f<c-1&&(p+=r+yH(At(Yj,_),qj)+Jj+a.getNewLine(),f=c-1);const n=ys(e,f,0),t=f<d?ys(e,f+1,0):e.text.length;let m=e.text.slice(n,t);if(m=g(m),m=m.replace(/\t/g," "),p+=r+yH(At(f+1+"",_),qj)+Jj,p+=m+a.getNewLine(),p+=r+yH(At("",_),qj)+Jj,p+=i,f===o){const e=f===c?l:void 0;p+=m.slice(0,s).replace(/\S/g," "),p+=m.slice(s,e).replace(/./g,"~")}else p+=f===c?m.slice(0,l).replace(/./g,"~"):m.replace(/./g,"~");p+=Xj}return p}function bH(e,n,t,r=yH){const{line:i,character:a}=Ss(e,n);let o="";return o+=r(t?Uo(e.fileName,t.getCurrentDirectory(),(e=>t.getCanonicalFileName(e))):e.fileName,"\x1b[96m"),o+=":",o+=r(`${i+1}`,"\x1b[93m"),o+=":",o+=r(`${a+1}`,"\x1b[93m"),o}function EH(e,n){let t="";for(const r of e){if(r.file){const{file:e,start:i}=r;t+=bH(e,i,n),t+=" - "}if(t+=yH(fa(r),gH(r.category)),t+=yH(` TS${r.code}: `,"\x1b[90m"),t+=TH(r.messageText,n.getNewLine()),r.file&&(t+=n.getNewLine(),t+=vH(r.file,r.start,r.length,"",gH(r.category),n)),r.relatedInformation){t+=n.getNewLine();for(const{file:e,start:i,length:a,messageText:o}of r.relatedInformation)e&&(t+=n.getNewLine(),t+=$j+bH(e,i,n),t+=vH(e,i,a,Qj,"\x1b[96m",n)),t+=n.getNewLine(),t+=Qj+TH(o,n.getNewLine())}t+=n.getNewLine()}return t}function TH(e,n,t=0){if(vn(e))return e;if(void 0===e)return"";let r="";if(t){r+=n;for(let e=0;e<t;e++)r+=" "}if(r+=e.messageText,t++,e.next)for(const i of e.next)r+=TH(i,n,t);return r}function xH(e,n){return(vn(e)?n:e.resolutionMode)||n}function SH(e,n){if(void 0!==e.impliedNodeFormat)return LH(e,YH(e,n))}function AH(e){var n;return ew(e)?e.isTypeOnly:!!(null==(n=e.importClause)?void 0:n.isTypeOnly)}function LH(e,n){var t,r;if(void 0===e.impliedNodeFormat)return;if(KI(n.parent)||ew(n.parent)){if(AH(n.parent)){const e=CH(n.parent.assertClause);if(e)return e}}if(n.parent.parent&&Ck(n.parent.parent)){const e=CH(null==(t=n.parent.parent.assertions)?void 0:t.assertClause);if(e)return e}if(99!==e.impliedNodeFormat)return pm($g(n.parent))?99:1;const i=null==(r=$g(n.parent))?void 0:r.parent;return i&&HI(i)?1:99}function CH(e,n){if(!e)return;if(1!==S(e.elements))return void(null==n||n(e,Wo.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require));const t=e.elements[0];if(o_(t.name))if("resolution-mode"===t.name.text){if(o_(t.value)){if("import"===t.value.text||"require"===t.value.text)return"import"===t.value.text?99:1;null==n||n(t.value,Wo.resolution_mode_should_be_either_require_or_import)}}else null==n||n(t.name,Wo.resolution_mode_is_the_only_valid_key_for_type_import_assertions)}function kH(e){return e.text}function IH(e,n,t,r,i){return{nameAndMode:eH,resolve:(a,o)=>JP(a,e,t,r,i,n,o)}}function wH(e){return vn(e)?e:In(e.fileName)}function RH(e,n,t,r,i){return{nameAndMode:nH,resolve:(a,o)=>IP(a,e,t,r,n,i,o)}}function NH(e,n,t,r,a,o,s,c){if(0===e.length)return i;const l=[],d=new Map,u=c(n,t,r,o,s);for(const i of e){const e=u.nameAndMode.getName(i),n=u.nameAndMode.getMode(i,a),t=GP(e,n);let r=d.get(t);r||d.set(t,r=u.resolve(e,n)),l.push(r)}return l}function DH(e,n){return OH(void 0,e,((e,t)=>e&&n(e,t)))}function OH(e,n,t,r){let i;return function e(n,a,o){if(r){const e=r(n,o);if(e)return e}return A(a,((n,r)=>{if(n&&(null==i?void 0:i.has(n.sourceFile.path)))return;const a=t(n,o,r);return a||!n?a:((i||(i=new Set)).add(n.sourceFile.path),e(n.commandLine.projectReferences,n.references,n))}))}(e,n,void 0)}function MH(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function PH(e){return void 0!==e.pos}function FH(e,n){var t,r,i,a,o,s;const c=Nt.checkDefined(e(n.file)),{kind:l,index:d}=n;let u,_,p,f;switch(l){case 3:const e=YH(c,d);if(p=null==(i=null==(r=null==(t=c.resolvedModules)?void 0:t.get(e.text,SH(c,d)))?void 0:r.resolvedModule)?void 0:i.packageId,-1===e.pos)return{file:c,packageId:p,text:e.text};u=Ns(c.text,e.pos),_=e.end;break;case 4:({pos:u,end:_}=c.referencedFiles[d]);break;case 5:({pos:u,end:_,resolutionMode:f}=c.typeReferenceDirectives[d]),p=null==(s=null==(o=null==(a=c.resolvedTypeReferenceDirectiveNames)?void 0:a.get(In(c.typeReferenceDirectives[d].fileName),f||c.impliedNodeFormat))?void 0:o.resolvedTypeReferenceDirective)?void 0:s.packageId;break;case 7:({pos:u,end:_}=c.libReferenceDirectives[d]);break;default:return Nt.assertNever(l)}return{file:c,pos:u,end:_,packageId:p}}function GH(e,n,t,r,i,a,o,s,c){if(!e||(null==o?void 0:o()))return!1;if(!ve(e.getRootFileNames(),n))return!1;let l;if(!ve(e.getProjectReferences(),c,(function(n,t,r){return Lp(n,t)&&u(e.getResolvedProjectReferences()[r],n)})))return!1;if(e.getSourceFiles().some((function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||a(e.path)})))return!1;if(e.getMissingFilePaths().some(i))return!1;const d=e.getCompilerOptions();return!!KE(d,t)&&(!d.configFile||!t.configFile||d.configFile.text===t.configFile.text);function u(e,n){if(e){if(G(l,e))return!0;const t=qH(n),r=s(t);return!!r&&(e.commandLine.options.configFile===r.options.configFile&&(!!ve(e.commandLine.fileNames,r.fileNames)&&((l||(l=[])).push(e),!A(e.references,((n,t)=>!u(n,e.commandLine.projectReferences[t]))))))}const t=qH(n);return!s(t)}}function BH(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function UH(e,n,t,r){const i=VH(e,n,t,r);return"object"===typeof i?i.impliedNodeFormat:i}function VH(e,n,t,r){switch(zT(r)){case 3:case 99:return so(e,[".d.mts",".mts",".mjs"])?99:so(e,[".d.cts",".cts",".cjs"])?1:so(e,[".d.ts",".ts",".tsx",".js",".jsx"])?function(){const i=gF(n,t,r),a=[];i.failedLookupLocations=a,i.affectingLocations=a;const o=yF(e,i);return{impliedNodeFormat:"module"===(null==o?void 0:o.contents.packageJsonContent.type)?99:1,packageJsonLocations:a,packageJsonScope:o}}():void 0;default:return}}function jH(e,t,r,a,o){var s,c,l,d,u,_,p,f,m,h,g,y,v,b,E,T;const x=gn(e)?function(e,n,t,r,i,a){return{rootNames:e,options:n,host:t,oldProgram:r,configFileParsingDiagnostics:i,typeScriptVersion:a}}(e,t,r,a,o):e,{rootNames:S,options:L,configFileParsingDiagnostics:I,projectReferences:w,typeScriptVersion:R}=x;let{oldProgram:N}=x;const O=Rn((()=>It("ignoreDeprecations",Wo.Invalid_value_for_ignoreDeprecations)));let P,F,B,U,V,H,K;const W=new Map;let z=un();const q={},Y={};let $,Q,Z,te=BP();const re="number"===typeof L.maxNodeModuleJsDepth?L.maxNodeModuleJsDepth:0;let ie=0;const ae=new Map,oe=new Map;null==(s=Vr)||s.push(Vr.Phase.Program,"createProgram",{configFilePath:L.configFilePath,rootDir:L.rootDir},!0),kr("beforeProgram");const se=x.host||lH(L),le=WH(se);let ue=L.noLib;const _e=Rn((()=>se.getDefaultLibFileName(L))),pe=se.getDefaultLibLocation?se.getDefaultLibLocation():po(_e()),fe=ov(),me=se.getCurrentDirectory(),he=Gx(L),ge=Bx(L,he),ye=new Map;let be,Ee,xe;const Se=se.hasInvalidatedResolutions||Sn;let Ae;if(se.resolveModuleNameLiterals?(xe=se.resolveModuleNameLiterals.bind(se),Ee=null==(c=se.getModuleResolutionCache)?void 0:c.call(se)):se.resolveModuleNames?(xe=(e,n,t,r,i,a)=>se.resolveModuleNames(e.map(kH),n,null==a?void 0:a.map(kH),t,r,i).map((e=>e?void 0!==e.extension?{resolvedModule:e}:{resolvedModule:{...e,extension:tS(e.resolvedFileName)}}:Zj)),Ee=null==(l=se.getModuleResolutionCache)?void 0:l.call(se)):(Ee=WP(me,ht,L),xe=(e,n,t,r,i)=>NH(e,n,t,r,i,se,Ee,IH)),se.resolveTypeReferenceDirectiveReferences)Ae=se.resolveTypeReferenceDirectiveReferences.bind(se);else if(se.resolveTypeReferenceDirectives)Ae=(e,n,t,r,i)=>se.resolveTypeReferenceDirectives(e.map(wH),n,t,r,null==i?void 0:i.impliedNodeFormat).map((e=>({resolvedTypeReferenceDirective:e})));else{const e=zP(me,ht,void 0,null==Ee?void 0:Ee.getPackageJsonInfoCache());Ae=(n,t,r,i,a)=>NH(n,t,r,i,a,se,e,RH)}const Le=new Map;let Ce=new Map,ke=un(),Ie=!1;const we=new Map;let Ne;const De=se.useCaseSensitiveFileNames()?new Map:void 0;let Oe,Me,Pe,Fe;const Ge=!!(null==(d=se.useSourceOfProjectReferenceRedirect)?void 0:d.call(se))&&!L.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Be,fileExists:Ue,directoryExists:Ve}=function(e){let n;const t=e.compilerHost.fileExists,r=e.compilerHost.directoryExists,i=e.compilerHost.getDirectories,a=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:xn,fileExists:c};let o;e.compilerHost.fileExists=c,r&&(o=e.compilerHost.directoryExists=t=>r.call(e.compilerHost,t)?(u(t),!0):!!e.getResolvedProjectReferences()&&(n||(n=new Set,e.forEachResolvedProjectReference((t=>{const r=Nv(t.commandLine.options);if(r)n.add(po(e.toPath(r)));else{const r=t.commandLine.options.declarationDir||t.commandLine.options.outDir;r&&n.add(e.toPath(r))}}))),_(t,!1)));i&&(e.compilerHost.getDirectories=n=>!e.getResolvedProjectReferences()||r&&r.call(e.compilerHost,n)?i.call(e.compilerHost,n):[]);a&&(e.compilerHost.realpath=n=>{var t;return(null==(t=e.getSymlinkCache().getSymlinkedFiles())?void 0:t.get(e.toPath(n)))||a.call(e.compilerHost,n)});return{onProgramCreateComplete:s,fileExists:c,directoryExists:o};function s(){e.compilerHost.fileExists=t,e.compilerHost.directoryExists=r,e.compilerHost.getDirectories=i}function c(n){return!!t.call(e.compilerHost,n)||!!e.getResolvedProjectReferences()&&(!!GD(n)&&_(n,!0))}function l(n){const r=e.getSourceOfProjectReferenceRedirect(e.toPath(n));return void 0!==r?!vn(r)||t.call(e.compilerHost,r):void 0}function d(t){const r=e.toPath(t),i=`${r}${za}`;return yp(n,(e=>r===e||pt(e,i)||pt(r,`${e}/`)))}function u(n){var t;if(!e.getResolvedProjectReferences()||DS(n))return;if(!a||!rt(n,lP))return;const r=e.getSymlinkCache(),i=Io(e.toPath(n));if(null==(t=r.getSymlinkedDirectories())?void 0:t.has(i))return;const o=Ao(a.call(e.compilerHost,n));let s;o!==n&&(s=Io(e.toPath(o)))!==i?r.setSymlinkedDirectory(n,{real:Io(o),realPath:s}):r.setSymlinkedDirectory(i,!1)}function _(n,t){var r;const i=t?e=>l(e):e=>d(e),a=i(n);if(void 0!==a)return a;const o=e.getSymlinkCache(),s=o.getSymlinkedDirectories();if(!s)return!1;const c=e.toPath(n);return!!rt(c,lP)&&(!(!t||!(null==(r=o.getSymlinkedFiles())?void 0:r.has(c)))||(k(s.entries(),(([r,a])=>{if(!a||!pt(c,r))return;const s=i(c.replace(r,a.realPath));if(t&&s){const t=So(n,e.compilerHost.getCurrentDirectory());o.setSymlinkedFile(c,`${a.real}${t.replace(new RegExp(r,"i"),"")}`)}return s}))||!1))}}({compilerHost:se,getSymlinkCache:Gt,useSourceOfProjectReferenceRedirect:Ge,toPath:nn,getResolvedProjectReferences:cn,getSourceOfProjectReferenceRedirect:ot,forEachResolvedProjectReference:at}),je=se.readFile.bind(se);null==(u=Vr)||u.push(Vr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!N});const He=function(e,n){return!!e&&mp(e.getCompilerOptions(),n,sO)}(N,L);let Ke;if(null==(_=Vr)||_.pop(),null==(p=Vr)||p.push(Vr.Phase.Program,"tryReuseStructureFromOldProgram",{}),Ke=function(){var e;if(!N)return 0;const n=N.getCompilerOptions();if(_p(n,L))return 0;if(!ve(N.getRootFileNames(),S))return 0;if(OH(N.getProjectReferences(),N.getResolvedProjectReferences(),((e,n,t)=>{const r=yt((n?n.commandLine.projectReferences:w)[t]);return e?!r||r.sourceFile!==e.sourceFile||!ve(e.commandLine.fileNames,r.commandLine.fileNames):void 0!==r}),((e,n)=>!ve(e,n?ct(n.sourceFile.path).commandLine.projectReferences:w,Lp))))return 0;w&&(Oe=w.map(yt));const t=[],r=[];if(Ke=2,N.getMissingFilePaths().some((e=>se.fileExists(e))))return 0;const i=N.getSourceFiles();let a;o=a||(a={}),o[o.Exists=0]="Exists",o[o.Modified=1]="Modified";var o;const s=new Map;for(const l of i){const n=Xn(l.fileName,Ee,se,L);let i,a=se.getSourceFileByPath?se.getSourceFileByPath(l.fileName,l.resolvedPath,n,void 0,He||n.impliedNodeFormat!==l.impliedNodeFormat):se.getSourceFile(l.fileName,n,void 0,He||n.impliedNodeFormat!==l.impliedNodeFormat);if(!a)return 0;if(a.packageJsonLocations=(null==(e=n.packageJsonLocations)?void 0:e.length)?n.packageJsonLocations:void 0,a.packageJsonScope=n.packageJsonScope,Nt.assert(!a.redirectInfo,"Host should not return a redirect source file from `getSourceFile`"),l.redirectInfo){if(a!==l.redirectInfo.unredirected)return 0;i=!1,a=l}else if(N.redirectTargetsMap.has(l.path)){if(a!==l)return 0;i=!1}else i=a!==l;a.path=l.path,a.originalFileName=l.originalFileName,a.resolvedPath=l.resolvedPath,a.fileName=l.fileName;const o=N.sourceFileToPackageName.get(l.path);if(void 0!==o){const e=s.get(o),n=i?1:0;if(void 0!==e&&1===n||1===e)return 0;s.set(o,n)}i?(l.impliedNodeFormat!==a.impliedNodeFormat?Ke=1:ve(l.libReferenceDirectives,a.libReferenceDirectives,Bn)?l.hasNoDefaultLib!==a.hasNoDefaultLib?Ke=1:ve(l.referencedFiles,a.referencedFiles,Bn)?(Hn(a),ve(l.imports,a.imports,Vn)&&ve(l.moduleAugmentations,a.moduleAugmentations,Vn)?(6291456&l.flags)!==(6291456&a.flags)?Ke=1:ve(l.typeReferenceDirectives,a.typeReferenceDirectives,Bn)||(Ke=1):Ke=1):Ke=1:Ke=1,r.push({oldFile:l,newFile:a})):Se(l.path)&&(Ke=1,r.push({oldFile:l,newFile:a})),t.push(a)}if(2!==Ke)return Ke;const c=r.map((e=>e.oldFile));for(const l of i)if(!G(c,l))for(const e of l.ambientModuleNames)W.set(e,l.fileName);for(const{oldFile:l,newFile:d}of r){const e=XH(d),n=rn(e,d);Rp(e,d,n,l.resolvedModules,Cp,eH)?(Ke=1,d.resolvedModules=UP(d,e,n,eH)):d.resolvedModules=l.resolvedModules;const t=d.typeReferenceDirectives,r=an(t,d);Rp(t,d,r,l.resolvedTypeReferenceDirectiveNames,wp,nH)?(Ke=1,d.resolvedTypeReferenceDirectiveNames=UP(d,t,r,nH)):d.resolvedTypeReferenceDirectiveNames=l.resolvedTypeReferenceDirectiveNames}if(2!==Ke)return Ke;if(fp(n,L))return 1;if(se.hasChangedAutomaticTypeDirectiveNames){if(se.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Q=DP(L,se),!ve(N.getAutomaticTypeDirectiveNames(),Q))return 1;Ne=N.getMissingFilePaths(),Nt.assert(t.length===N.getSourceFiles().length);for(const l of t)we.set(l.path,l);return N.getFilesByNameMap().forEach(((e,n)=>{e?e.path!==n?we.set(n,we.get(e.path)):N.isSourceFileFromExternalLibrary(e)&&oe.set(e.path,!0):we.set(n,e)})),B=t,z=N.getFileIncludeReasons(),$=N.getFileProcessingDiagnostics(),te=N.getResolvedTypeReferenceDirectives(),Q=N.getAutomaticTypeDirectiveNames(),Z=N.getAutomaticTypeDirectiveResolutions(),Ce=N.sourceFileToPackageName,ke=N.redirectTargetsMap,Ie=N.usesUriStyleNodeCoreModules,2}(),null==(f=Vr)||f.pop(),2!==Ke){if(P=[],F=[],w&&(Oe||(Oe=w.map(yt)),S.length&&(null==Oe||Oe.forEach(((e,n)=>{if(!e)return;const t=Nv(e.commandLine.options);if(Ge){if(t||0===KT(e.commandLine.options))for(const r of e.commandLine.fileNames)zn(r,{kind:1,index:n})}else if(t)zn(Yx(t,".d.ts"),{kind:2,index:n});else if(0===KT(e.commandLine.options)){const t=Rn((()=>yj(e.commandLine,!se.useCaseSensitiveFileNames())));for(const r of e.commandLine.fileNames)GD(r)||oo(r,".json")||zn(_j(r,e.commandLine,!se.useCaseSensitiveFileNames(),t),{kind:2,index:n})}})))),null==(m=Vr)||m.push(Vr.Phase.Program,"processRootFiles",{count:S.length}),A(S,((e,n)=>Pn(e,!1,!1,{kind:0,index:n}))),null==(h=Vr)||h.pop(),null!=Q||(Q=S.length?DP(L,se):i),Z=BP(),Q.length){null==(g=Vr)||g.push(Vr.Phase.Program,"processTypeReferences",{count:Q.length});const e=Eo(L.configFilePath?po(L.configFilePath):se.getCurrentDirectory(),tH),n=an(Q,e);for(let t=0;t<Q.length;t++)Z.set(Q[t],void 0,n[t]),ut(Q[t],void 0,n[t],{kind:8,typeReference:Q[t],packageId:null==(v=null==(y=n[t])?void 0:y.resolvedTypeReferenceDirective)?void 0:v.packageId});null==(b=Vr)||b.pop()}if(S.length&&!ue){const e=_e();!L.lib&&e?Pn(e,!0,!1,{kind:6}):A(L.lib,((e,n)=>{Pn(_t(e),!0,!1,{kind:6,index:n})}))}Ne=Qe(ne(we.entries(),(([e,n])=>void 0===n?e:void 0))),B=Re(P,(function(e,n){return Un(en(e),en(n))})).concat(F),P=void 0,F=void 0}if(Nt.assert(!!Ne),N&&se.onReleaseOldSourceFile){const e=N.getSourceFiles();for(const n of e){const e=hn(n.resolvedPath);(He||!e||e.impliedNodeFormat!==n.impliedNodeFormat||n.resolvedPath===n.path&&e.resolvedPath!==n.path)&&se.onReleaseOldSourceFile(n,N.getCompilerOptions(),!!hn(n.path))}se.getParsedCommandLine||N.forEachResolvedProjectReference((e=>{ct(e.sourceFile.path)||se.onReleaseOldSourceFile(e.sourceFile,N.getCompilerOptions(),!1)}))}N&&se.onReleaseParsedCommandLine&&OH(N.getProjectReferences(),N.getResolvedProjectReferences(),((e,n,t)=>{const r=qH((null==n?void 0:n.commandLine.projectReferences[t])||N.getProjectReferences()[t]);(null==Me?void 0:Me.has(nn(r)))||se.onReleaseParsedCommandLine(r,e,N.getCompilerOptions())})),N=void 0;const We={getRootFileNames:()=>S,getSourceFile:mn,getSourceFileByPath:hn,getSourceFiles:()=>B,getMissingFilePaths:()=>Ne,getModuleResolutionCache:()=>Ee,getFilesByNameMap:()=>we,getCompilerOptions:()=>L,getSyntacticDiagnostics:function(e,n){return yn(e,En,n)},getOptionsDiagnostics:function(){return ic(de(fe.getGlobalDiagnostics(),function(){if(!L.configFile)return i;let e=fe.getDiagnostics(L.configFile.fileName);return at((n=>{e=de(e,fe.getDiagnostics(n.sourceFile.fileName))})),e}()))},getGlobalDiagnostics:function(){return S.length?ic(pn().getGlobalDiagnostics().slice()):i},getSemanticDiagnostics:function(e,n){return yn(e,An,n)},getCachedSemanticDiagnostics:function(e){var n;return e?null==(n=q.perFile)?void 0:n.get(e.path):q.allDiagnostics},getSuggestionDiagnostics:function(e,n){return Tn((()=>pn().getSuggestionDiagnostics(e,n)))},getDeclarationDiagnostics:function(e,n){const t=We.getCompilerOptions();return!e||Nv(t)?Nn(e,n):yn(e,Mn,n)},getBindAndCheckDiagnostics:function(e,n){return Ln(e,n)},getProgramDiagnostics:bn,getTypeChecker:pn,getClassifiableNames:function(){var e;if(!K){pn(),K=new Set;for(const n of B)null==(e=n.classifiableNames)||e.forEach((e=>K.add(e)))}return K},getCommonSourceDirectory:tn,emit:function(e,n,t,r,i,a){var o,s;null==(o=Vr)||o.push(Vr.Phase.Emit,"emit",{path:null==e?void 0:e.path},!0);const c=Tn((()=>function(e,n,t,r,i,a,o){if(!o){const i=HH(e,n,t,r);if(i)return i}const s=pn().getEmitResolver(Nv(L)?void 0:n,r);kr("beforeEmit");const c=Tj(s,on(t),n,jV(L,a,i),i,!1,o);return kr("afterEmit"),Ir("Emit","beforeEmit","afterEmit"),c}(We,e,n,t,r,i,a)));return null==(s=Vr)||s.pop(),c},getCurrentDirectory:()=>me,getNodeCount:()=>pn().getNodeCount(),getIdentifierCount:()=>pn().getIdentifierCount(),getSymbolCount:()=>pn().getSymbolCount(),getTypeCount:()=>pn().getTypeCount(),getInstantiationCount:()=>pn().getInstantiationCount(),getRelationCacheSizes:()=>pn().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>$,getResolvedTypeReferenceDirectives:()=>te,getAutomaticTypeDirectiveNames:()=>Q,getAutomaticTypeDirectiveResolutions:()=>Z,isSourceFileFromExternalLibrary:_n,isSourceFileDefaultLibrary:function(e){if(!e.isDeclarationFile)return!1;if(e.hasNoDefaultLib)return!0;if(!L.noLib)return!1;const n=se.useCaseSensitiveFileNames()?Gn:Fn;return L.lib?ce(L.lib,(t=>n(e.fileName,_t(t)))):n(e.fileName,_e())},getSourceFileFromReference:function(e,n){return Kn(sH(n.fileName,e.fileName),mn)},getLibFileFromReference:function(e){const n=In(e.fileName),t=YD.get(n);if(t)return mn(_t(t))},sourceFileToPackageName:Ce,redirectTargetsMap:ke,usesUriStyleNodeCoreModules:Ie,isEmittedFile:function(e){if(L.noEmit)return!1;const n=nn(e);if(hn(n))return!1;const t=Nv(L);if(t)return Ft(n,t)||Ft(n,qx(t)+".d.ts");if(L.declarationDir&&Po(L.declarationDir,n,me,!se.useCaseSensitiveFileNames()))return!0;if(L.outDir)return Po(L.outDir,n,me,!se.useCaseSensitiveFileNames());if(so(n,Z_)||GD(n)){const e=qx(n);return!!hn(e+".ts")||!!hn(e+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return I||i},getProjectReferences:function(){return w},getResolvedProjectReferences:cn,getProjectReferenceRedirect:Zn,getResolvedProjectReferenceToRedirect:it,getResolvedProjectReferenceByPath:ct,forEachResolvedProjectReference:at,isSourceOfProjectReferenceRedirect:st,emitBuildInfo:function(e){var n,t;Nt.assert(!Nv(L)),null==(n=Vr)||n.push(Vr.Phase.Emit,"emitBuildInfo",{},!0),kr("beforeEmit");const r=Tj(QV,on(e),void 0,BV,!1,!0);return kr("afterEmit"),Ir("Emit","beforeEmit","afterEmit"),null==(t=Vr)||t.pop(),r},fileExists:Ue,readFile:je,directoryExists:Ve,getSymlinkCache:Gt,realpath:null==(E=se.realpath)?void 0:E.bind(se),useCaseSensitiveFileNames:()=>se.useCaseSensitiveFileNames(),getCanonicalFileName:ht,getFileIncludeReasons:()=>z,structureIsReused:Ke,writeFile:sn};return Be(),null==$||$.forEach((e=>{switch(e.kind){case 1:return fe.add(bt(e.file&&hn(e.file),e.fileProcessingReason,e.diagnostic,e.args||i));case 0:const{file:n,pos:t,end:r}=FH(hn,e.reason);return fe.add(kT(n,Nt.checkDefined(t),Nt.checkDefined(r)-t,e.diagnostic,...e.args||i));case 2:return e.diagnostics.forEach((e=>fe.add(e)));default:Nt.assertNever(e)}})),function(){L.strictPropertyInitialization&&!lx(L,"strictNullChecks")&&kt(Wo.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks");L.exactOptionalPropertyTypes&&!lx(L,"strictNullChecks")&&kt(Wo.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks");(L.isolatedModules||L.verbatimModuleSyntax)&&(L.out&&kt(Wo.Option_0_cannot_be_specified_with_option_1,"out",L.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),L.outFile&&kt(Wo.Option_0_cannot_be_specified_with_option_1,"outFile",L.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"));L.inlineSourceMap&&(L.sourceMap&&kt(Wo.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),L.mapRoot&&kt(Wo.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"));L.composite&&(!1===L.declaration&&kt(Wo.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===L.incremental&&kt(Wo.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const e=Nv(L);L.tsBuildInfoFile?cx(L)||kt(Wo.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!L.incremental||e||L.configFilePath||fe.add(wT(Wo.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));if(function(){vt("5.0","5.5",(function(e,n,t,r,i,a,o,s){if(t){const c=NT(void 0,Wo.Use_0_instead,t);Rt(!n,e,void 0,NT(c,r,i,a,o,s))}else Rt(!n,e,void 0,r,i,a,o,s)}),(e=>{0===L.target&&e("target","ES3"),L.noImplicitUseStrict&&e("noImplicitUseStrict"),L.keyofStringsOnly&&e("keyofStringsOnly"),L.suppressExcessPropertyErrors&&e("suppressExcessPropertyErrors"),L.suppressImplicitAnyIndexErrors&&e("suppressImplicitAnyIndexErrors"),L.noStrictGenericChecks&&e("noStrictGenericChecks"),L.charset&&e("charset"),L.out&&e("out",void 0,"outFile"),L.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),L.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")}))}(),function(){const e=L.suppressOutputPathCheck?void 0:oj(L);OH(w,Oe,((n,t,r)=>{const i=(t?t.commandLine.projectReferences:w)[r],a=t&&t.sourceFile;if(function(e,n,t){function r(e,r,i,a,o,s,c,l){wt(n,t,a,o,s,c,l)}vt("5.0","5.5",r,(n=>{e.prepend&&n("prepend")}))}(i,a,r),!n)return void wt(a,r,Wo.File_0_not_found,i.path);const o=n.commandLine.options;if(!o.composite||o.noEmit){(t?t.commandLine.fileNames:S).length&&(o.composite||wt(a,r,Wo.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),o.noEmit&&wt(a,r,Wo.Referenced_project_0_may_not_disable_emit,i.path))}if(i.prepend){const e=Nv(o);e?se.fileExists(e)||wt(a,r,Wo.Output_file_0_from_project_1_does_not_exist,e,i.path):wt(a,r,Wo.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,i.path)}!t&&e&&e===oj(o)&&(wt(a,r,Wo.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,i.path),ye.set(nn(e),!0))}))}(),L.composite){const e=new Set(S.map(nn));for(const n of B)Mv(n,We)&&!e.has(n.path)&&Tt(n,Wo.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[n.fileName,L.configFilePath||""])}if(L.paths)for(const o in L.paths)if(ze(L.paths,o))if(vx(o)||St(!0,o,Wo.Pattern_0_can_have_at_most_one_Asterisk_character,o),gn(L.paths[o])){const e=L.paths[o].length;0===e&&St(!1,o,Wo.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,o);for(let n=0;n<e;n++){const e=L.paths[o][n],t=typeof e;"string"===t?(vx(e)||xt(o,n,Wo.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,e,o),L.baseUrl||ro(e)||to(e)||xt(o,n,Wo.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):xt(o,n,Wo.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,e,o,t)}}else St(!1,o,Wo.Substitutions_for_pattern_0_should_be_an_array,o);L.sourceMap||L.inlineSourceMap||(L.inlineSources&&kt(Wo.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),L.sourceRoot&&kt(Wo.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot"));L.out&&L.outFile&&kt(Wo.Option_0_cannot_be_specified_with_option_1,"out","outFile");!L.mapRoot||L.sourceMap||L.declarationMap||kt(Wo.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap");L.declarationDir&&(ox(L)||kt(Wo.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),e&&kt(Wo.Option_0_cannot_be_specified_with_option_1,"declarationDir",L.out?"out":"outFile"));L.declarationMap&&!ox(L)&&kt(Wo.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite");L.lib&&L.noLib&&kt(Wo.Option_0_cannot_be_specified_with_option_1,"lib","noLib");L.noImplicitUseStrict&&lx(L,"alwaysStrict")&&kt(Wo.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");const n=HT(L),t=D(B,(e=>OD(e)&&!e.isDeclarationFile));if(L.isolatedModules||L.verbatimModuleSyntax)0===L.module&&n<2&&L.isolatedModules&&kt(Wo.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===L.preserveConstEnums&&kt(Wo.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,L.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(t&&n<2&&0===L.module){const e=am(t,"boolean"===typeof t.externalModuleIndicator?t:t.externalModuleIndicator);fe.add(kT(t,e.start,e.length,Wo.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!L.emitDeclarationOnly)if(L.module&&2!==L.module&&4!==L.module)kt(Wo.Only_amd_and_system_modules_are_supported_alongside_0,L.out?"out":"outFile","module");else if(void 0===L.module&&t){const e=am(t,"boolean"===typeof t.externalModuleIndicator?t:t.externalModuleIndicator);fe.add(kT(t,e.start,e.length,Wo.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,L.out?"out":"outFile"))}ax(L)&&(1===zT(L)?kt(Wo.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):JT(L)||kt(Wo.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module"));if(L.outDir||L.rootDir||L.sourceRoot||L.mapRoot){const e=tn();L.outDir&&""===e&&B.some((e=>_o(e.fileName)>1))&&kt(Wo.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}L.useDefineForClassFields&&0===n&&kt(Wo.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");L.checkJs&&!dx(L)&&fe.add(wT(Wo.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));L.emitDeclarationOnly&&(ox(L)||kt(Wo.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),L.noEmit&&kt(Wo.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));L.emitDecoratorMetadata&&!L.experimentalDecorators&&kt(Wo.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");L.jsxFactory?(L.reactNamespace&&kt(Wo.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==L.jsx&&5!==L.jsx||kt(Wo.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",qD.get(""+L.jsx)),ND(L.jsxFactory,n)||It("jsxFactory",Wo.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,L.jsxFactory)):L.reactNamespace&&!Js(L.reactNamespace,n)&&It("reactNamespace",Wo.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,L.reactNamespace);L.jsxFragmentFactory&&(L.jsxFactory||kt(Wo.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==L.jsx&&5!==L.jsx||kt(Wo.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",qD.get(""+L.jsx)),ND(L.jsxFragmentFactory,n)||It("jsxFragmentFactory",Wo.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,L.jsxFragmentFactory));L.reactNamespace&&(4!==L.jsx&&5!==L.jsx||kt(Wo.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",qD.get(""+L.jsx)));L.jsxImportSource&&2===L.jsx&&kt(Wo.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",qD.get(""+L.jsx));L.preserveValueImports&&KT(L)<5&&kt(Wo.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const r=KT(L);L.verbatimModuleSyntax&&(2!==r&&3!==r&&4!==r||kt(Wo.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),L.isolatedModules&&Mt("isolatedModules","verbatimModuleSyntax"),L.preserveValueImports&&Mt("preserveValueImports","verbatimModuleSyntax"),L.importsNotUsedAsValues&&Mt("importsNotUsedAsValues","verbatimModuleSyntax"));!L.allowImportingTsExtensions||L.noEmit||L.emitDeclarationOnly||It("allowImportingTsExtensions",Wo.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const i=zT(L);L.resolvePackageJsonExports&&!tx(i)&&kt(Wo.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports");L.resolvePackageJsonImports&&!tx(i)&&kt(Wo.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports");L.customConditions&&!tx(i)&&kt(Wo.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions");100!==i||WT(r)||It("moduleResolution",Wo.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler");if(!L.noEmit&&!L.suppressOutputPathCheck){const e=on(),n=new Set;aj(e,(e=>{L.emitDeclarationOnly||a(e.jsFilePath,n),a(e.declarationFilePath,n)}))}function a(e,n){if(e){const t=nn(e);if(we.has(t)){let n;L.configFilePath||(n=NT(void 0,Wo.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),n=NT(n,Wo.Cannot_write_file_0_because_it_would_overwrite_input_file,e),Pt(e,RT(n))}const r=se.useCaseSensitiveFileNames()?t:In(t);n.has(r)?Pt(e,wT(Wo.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):n.add(r)}}}(),kr("afterProgram"),Ir("Program","beforeProgram","afterProgram"),null==(T=Vr)||T.pop(),We;function qe(e){var n;(null==(n=e.resolutionDiagnostics)?void 0:n.length)&&(null!=$?$:$=[]).push({kind:2,diagnostics:e.resolutionDiagnostics})}function Je(e,n,t,r){if(se.resolveModuleNameLiterals||!se.resolveModuleNames)return qe(t);if(!Ee||rc(n))return;const i=po(So(e.originalFileName,me)),a=$e(e),o=Ee.getFromNonRelativeNameCache(n,r,i,a);o&&qe(o)}function Xe(e,n,t){var r,a;if(!e.length)return i;const o=So(n.originalFileName,me),s=$e(n);null==(r=Vr)||r.push(Vr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:o}),kr("beforeResolveModule");const c=xe(e,o,s,L,n,t);return kr("afterResolveModule"),Ir("ResolveModule","beforeResolveModule","afterResolveModule"),null==(a=Vr)||a.pop(),c}function Ye(e,n,t){var r,i;if(!e.length)return[];const a=vn(n)?void 0:n,o=vn(n)?n:So(n.originalFileName,me),s=a&&$e(a);null==(r=Vr)||r.push(Vr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:o}),kr("beforeResolveTypeReference");const c=Ae(e,o,s,L,a,t);return kr("afterResolveTypeReference"),Ir("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null==(i=Vr)||i.pop(),c}function $e(e){const n=it(e.originalFileName);if(n||!GD(e.originalFileName))return n;const t=Ze(e.path);if(t)return t;if(!se.realpath||!L.preserveSymlinks||!rt(e.originalFileName,lP))return;const r=nn(se.realpath(e.originalFileName));return r===e.path?void 0:Ze(r)}function Ze(e){const n=ot(e);return vn(n)?it(n):n?at((n=>{const t=Nv(n.commandLine.options);if(t)return nn(t)===e?n:void 0})):void 0}function en(e){if(Po(pe,e.fileName,!1)){const n=fo(e.fileName);if("lib.d.ts"===n||"lib.es6.d.ts"===n)return 0;const t=nt(ft(n,"lib."),".d.ts"),r=XD.indexOf(t);if(-1!==r)return r+1}return XD.length+2}function nn(e){return Co(e,me,ht)}function tn(){if(void 0===V){const e=j(B,(e=>Mv(e,We)));V=gj(L,(()=>ee(e,(e=>e.isDeclarationFile?void 0:e.fileName))),me,ht,(n=>function(e,n){let t=!0;const r=se.getCanonicalFileName(So(n,me));for(const i of e)if(!i.isDeclarationFile){0!==se.getCanonicalFileName(So(i.fileName,me)).indexOf(r)&&(Tt(i,Wo.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[i.fileName,n]),t=!1)}return t}(e,n)))}return V}function rn(e,n){var t;if(0===Ke&&!n.ambientModuleNames.length)return Xe(e,n,void 0);const r=N&&N.getSourceFile(n.fileName);if(r!==n&&n.resolvedModules){const t=[];for(const r of e){const e=n.resolvedModules.get(r.text,LH(n,r));t.push(e)}return t}let a,o,s;const c=Zj;for(let i=0;i<e.length;i++){const l=e[i];if(n===r&&!Se(r.path)){const a=LH(n,l),c=null==(t=r.resolvedModules)?void 0:t.get(l.text,a);if(null==c?void 0:c.resolvedModule){pP(L,se)&&_P(se,c.resolvedModule.packageId?Wo.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Wo.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,l.text,So(n.originalFileName,me),c.resolvedModule.resolvedFileName,c.resolvedModule.packageId&&Ip(c.resolvedModule.packageId)),(null!=o?o:o=new Array(e.length))[i]=c,(null!=s?s:s=[]).push(l);continue}}let d=!1;G(n.ambientModuleNames,l.text)?(d=!0,pP(L,se)&&_P(se,Wo.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,l.text,So(n.originalFileName,me))):d=u(l),d?(o||(o=new Array(e.length)))[i]=c:(null!=a?a:a=[]).push(l)}const l=a&&a.length?Xe(a,n,s):i;if(!o)return Nt.assert(l.length===e.length),l;let d=0;for(let i=0;i<o.length;i++)o[i]||(o[i]=l[d],d++);return Nt.assert(d===l.length),o;function u(e){const t=Tp(r,e.text,LH(n,e)),i=t&&N.getSourceFile(t.resolvedFileName);if(t&&i)return!1;const a=W.get(e.text);return!!a&&(pP(L,se)&&_P(se,Wo.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,e.text,a),!0)}}function an(e,n){var t;if(0===Ke)return Ye(e,n,void 0);const r=vn(n)?void 0:N&&N.getSourceFile(n.fileName);if(!vn(n)&&r!==n&&n.resolvedTypeReferenceDirectiveNames){const t=[];for(const r of e){const e=n.resolvedTypeReferenceDirectiveNames.get(wH(r),xH(r,n.impliedNodeFormat));t.push(e)}return t}let a,o,s;const c=vn(n)?void 0:n,l=vn(n)?!Se(nn(n)):n===r&&!Se(r.path);for(let i=0;i<e.length;i++){const d=e[i];if(l){const a=wH(d),l=xH(d,null==c?void 0:c.impliedNodeFormat),u=null==(t=vn(n)?null==N?void 0:N.getAutomaticTypeDirectiveResolutions():null==r?void 0:r.resolvedTypeReferenceDirectiveNames)?void 0:t.get(a,l);if(null==u?void 0:u.resolvedTypeReferenceDirective){pP(L,se)&&_P(se,u.resolvedTypeReferenceDirective.packageId?Wo.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Wo.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,a,vn(n)?n:So(n.originalFileName,me),u.resolvedTypeReferenceDirective.resolvedFileName,u.resolvedTypeReferenceDirective.packageId&&Ip(u.resolvedTypeReferenceDirective.packageId)),(null!=o?o:o=new Array(e.length))[i]=u,(null!=s?s:s=[]).push(d);continue}}(null!=a?a:a=[]).push(d)}if(!a)return o||i;const d=Ye(a,n,s);if(!o)return Nt.assert(d.length===e.length),d;let u=0;for(let i=0;i<o.length;i++)o[i]||(o[i]=d[u],u++);return Nt.assert(u===d.length),o}function on(e){return{getPrependNodes:ln,getCanonicalFileName:ht,getCommonSourceDirectory:We.getCommonSourceDirectory,getCompilerOptions:We.getCompilerOptions,getCurrentDirectory:()=>me,getSourceFile:We.getSourceFile,getSourceFileByPath:We.getSourceFileByPath,getSourceFiles:We.getSourceFiles,getLibFileFromReference:We.getLibFileFromReference,isSourceFileFromExternalLibrary:_n,getResolvedProjectReferenceToRedirect:it,getProjectReferenceRedirect:Zn,isSourceOfProjectReferenceRedirect:st,getSymlinkCache:Gt,writeFile:e||sn,isEmitBlocked:fn,readFile:e=>se.readFile(e),fileExists:e=>{const n=nn(e);return!!hn(n)||!G(Ne,n)&&se.fileExists(e)},useCaseSensitiveFileNames:()=>se.useCaseSensitiveFileNames(),getBuildInfo:e=>{var n;return null==(n=We.getBuildInfo)?void 0:n.call(We,e)},getSourceFileFromReference:(e,n)=>We.getSourceFileFromReference(e,n),redirectTargetsMap:ke,getFileIncludeReasons:We.getFileIncludeReasons,createHash:dn(se,se.createHash)}}function sn(e,n,t,r,i,a){se.writeFile(e,n,t,r,i,a)}function cn(){return Oe}function ln(){return zH(w,((e,n)=>{var t;return null==(t=Oe[n])?void 0:t.commandLine}),(e=>{const n=nn(e),t=hn(n);return t?t.text:we.has(n)?void 0:se.readFile(n)}),se)}function _n(e){return!!oe.get(e.path)}function pn(){return H||(H=tB(We))}function fn(e){return ye.has(nn(e))}function mn(e){return hn(nn(e))}function hn(e){return we.get(e)||void 0}function yn(e,n,t){return ic(e?n(e,t):X(We.getSourceFiles(),(e=>(t&&t.throwIfCancellationRequested(),n(e,t)))))}function bn(e){var n;if(_S(e,L,We))return i;const t=fe.getDiagnostics(e.fileName);return(null==(n=e.commentDirectives)?void 0:n.length)?wn(e,e.commentDirectives,t).diagnostics:t}function En(e){return Ch(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=function(e){return Tn((()=>{const n=[];return t(e,e),kD(e,t,r),n;function t(e,t){switch(t.kind){case 166:case 169:case 171:if(t.questionToken===e)return n.push(o(e,Wo.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 170:case 173:case 174:case 175:case 215:case 259:case 216:case 257:if(t.type===e)return n.push(o(e,Wo.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 270:if(e.isTypeOnly)return n.push(o(t,Wo._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 275:if(e.isTypeOnly)return n.push(o(e,Wo._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 273:case 278:if(e.isTypeOnly)return n.push(o(e,Wo._0_declarations_can_only_be_used_in_TypeScript_files,QI(e)?"import...type":"export...type")),"skip";break;case 268:return n.push(o(e,Wo.import_can_only_be_used_in_TypeScript_files)),"skip";case 274:if(e.isExportEquals)return n.push(o(e,Wo.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 294:if(117===e.token)return n.push(o(e,Wo.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 261:const r=ms(118);return Nt.assertIsDefined(r),n.push(o(e,Wo._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 264:const i=16&e.flags?ms(143):ms(142);return Nt.assertIsDefined(i),n.push(o(e,Wo._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 262:return n.push(o(e,Wo.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 263:const a=Nt.checkDefined(ms(92));return n.push(o(e,Wo._0_declarations_can_only_be_used_in_TypeScript_files,a)),"skip";case 232:return n.push(o(e,Wo.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 231:return n.push(o(e.type,Wo.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return n.push(o(e.type,Wo.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 213:Nt.fail()}}function r(e,t){if(fN(t)){const e=D(t.modifiers,JC);e&&n.push(o(e,Wo.Decorators_are_not_valid_here))}else if(HN(t)&&t.modifiers){const e=M(t.modifiers,JC);if(e>=0)if(qC(t)&&!L.experimentalDecorators)n.push(o(t.modifiers[e],Wo.Decorators_are_not_valid_here));else if(MI(t)){const r=M(t.modifiers,RC);if(r>=0){const i=M(t.modifiers,NC);if(e>r&&i>=0&&e<i)n.push(o(t.modifiers[e],Wo.Decorators_are_not_valid_here));else if(r>=0&&e<r){const i=M(t.modifiers,JC,r);i>=0&&n.push(cS(o(t.modifiers[i],Wo.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),o(t.modifiers[e],Wo.Decorator_used_before_export_here)))}}}}switch(t.kind){case 260:case 228:case 171:case 173:case 174:case 175:case 215:case 259:case 216:if(e===t.typeParameters)return n.push(a(e,Wo.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 240:if(e===t.modifiers)return i(t.modifiers,240===t.kind),"skip";break;case 169:if(e===t.modifiers){for(const t of e)Ad(t)&&124!==t.kind&&127!==t.kind&&n.push(o(t,Wo.The_0_modifier_can_only_be_used_in_TypeScript_files,ms(t.kind)));return"skip"}break;case 166:if(e===t.modifiers&&ce(e,Ad))return n.push(a(e,Wo.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 210:case 211:case 230:case 282:case 283:case 212:if(e===t.typeArguments)return n.push(a(e,Wo.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}function i(e,t){for(const r of e)switch(r.kind){case 85:if(t)continue;case 123:case 121:case 122:case 146:case 136:case 126:case 161:case 101:case 145:n.push(o(r,Wo.The_0_modifier_can_only_be_used_in_TypeScript_files,ms(r.kind)))}}function a(n,t,r,i,a){const o=n.pos;return kT(e,o,n.end-o,t,r,i,a)}function o(n,t,r,i,a){return Xf(e,n,t,r,i,a)}}))}(e)),de(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function Tn(e){try{return e()}catch(Sa){throw Sa instanceof ei&&(H=void 0),Sa}}function An(e,n){return de(KH(Ln(e,n),L),bn(e))}function Ln(e,n){return On(e,n,q,kn)}function kn(e,n){return Tn((()=>{if(_S(e,L,We))return i;const t=pn();Nt.assert(!!e.bindDiagnostics);const r=(1===e.scriptKind||2===e.scriptKind)&&aS(e,L),a=Mp(e,L.checkJs),o=!(!!e.checkJsDirective&&!1===e.checkJsDirective.enabled)&&(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind||a||r||7===e.scriptKind);let s=o?e.bindDiagnostics:i,c=o?t.getDiagnostics(e,n):i;return a&&(s=j(s,(e=>rH.has(e.code))),c=j(c,(e=>rH.has(e.code)))),function(e,n,...t){var r;const i=J(t);if(!n||!(null==(r=e.commentDirectives)?void 0:r.length))return i;const{diagnostics:a,directives:o}=wn(e,e.commentDirectives,i);for(const s of o.getUnusedExpectations())a.push(tm(e,s.range,Wo.Unused_ts_expect_error_directive));return a}(e,o&&!a,s,c,r?e.jsDocDiagnostics:void 0)}))}function wn(e,n,t){const r=ef(e,n),i=t.filter((e=>-1===function(e,n){const{file:t,start:r}=e;if(!t)return-1;const i=bs(t);let a=Es(i,r).line-1;for(;a>=0;){if(n.markUsed(a))return a;const e=t.text.slice(i[a],i[a+1]).trim();if(""!==e&&!/^(\s*)\/\/(.*)$/.test(e))return-1;a--}return-1}(e,r)));return{diagnostics:i,directives:r}}function Nn(e,n){return On(e,n,Y,Dn)}function Dn(e,n){return Tn((()=>{const t=pn().getEmitResolver(e,n);return DV(on(xn),t,e)||i}))}function On(e,n,t,r){var i;const a=e?null==(i=t.perFile)?void 0:i.get(e.path):t.allDiagnostics;if(a)return a;const o=r(e,n);return e?(t.perFile||(t.perFile=new Map)).set(e.path,o):t.allDiagnostics=o,o}function Mn(e,n){return e.isDeclarationFile?[]:Nn(e,n)}function Pn(e,n,t,r){Wn(Ao(e),n,t,void 0,r)}function Bn(e,n){return e.fileName===n.fileName}function Vn(e,n){return 79===e.kind?79===n.kind&&e.escapedText===n.escapedText:10===n.kind&&e.text===n.text}function jn(e,n){const t=gA.createStringLiteral(e),r=gA.createImportDeclaration(void 0,void 0,t,void 0);return WA(r,2),CS(t,r),CS(r,n),t.flags&=-9,r.flags&=-9,t}function Hn(e){if(e.imports)return;const n=Ch(e),t=OD(e);let r,a,o;if((XT(L)||t)&&!e.isDeclarationFile){L.importHelpers&&(r=[jn(u_,e)]);const n=yx(gx(L,e),L);n&&(r||(r=[])).push(jn(n,e))}for(const i of e.statements)c(i,!1);const s=n&&100!==zT(L);return(2097152&e.flags||s)&&function(e){const n=/import|require/g;for(;null!==n.exec(e.text);){const t=l(e,n.lastIndex);s&&Oh(t,!0)||pm(t)&&t.arguments.length>=1&&o_(t.arguments[0])?(IS(t,!1),r=Te(r,t.arguments[0])):mm(t)&&(IS(t,!1),r=Te(r,t.argument.literal))}}(e),e.imports=r||i,e.moduleAugmentations=a||i,void(e.ambientModuleNames=o||i);function c(n,i){if(Gf(n)){const t=vg(n);!(t&&_C(t)&&t.text)||i&&rc(t.text)||(IS(n,!1),r=Te(r,t),Ie||0!==ie||e.isDeclarationFile||(Ie=pt(t.text,"node:")))}else if(BI(n)&&yf(n)&&(i||fb(n,2)||e.isDeclarationFile)){n.name.parent=n;const r=Py(n.name);if(t||i&&!rc(r))(a||(a=[])).push(n.name);else if(!i){e.isDeclarationFile&&(o||(o=[])).push(r);const t=n.body;if(t)for(const e of t.statements)c(e,!0)}}}function l(e,t){let r=e;const i=e=>{if(e.pos<=t&&(t<e.end||t===e.end&&1===e.kind))return e};for(;;){const e=n&&Zu(r)&&A(r.jsDoc,i)||CD(r,i);if(!e)return r;r=e}}}function Kn(e,n,t,r){if(ao(e)){const i=se.getCanonicalFileName(e);if(!L.allowNonTsExtensions&&!A(J(ge),(e=>oo(i,e))))return void(t&&(Ux(i)?t(Wo.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):t(Wo.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,"'"+J(he).join("', '")+"'")));const a=n(e);if(t)if(a)MH(r)&&i===se.getCanonicalFileName(hn(r.file).fileName)&&t(Wo.A_file_cannot_have_a_reference_to_itself);else{const n=Zn(e);n?t(Wo.Output_file_0_has_not_been_built_from_source_file_1,n,e):t(Wo.File_0_not_found,e)}return a}{const r=L.allowNonTsExtensions&&n(e);if(r)return r;if(t&&L.allowNonTsExtensions)return void t(Wo.File_0_not_found,e);const i=A(he[0],(t=>n(e+t)));return t&&!i&&t(Wo.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,"'"+J(he).join("', '")+"'"),i}}function Wn(e,n,t,r,i){Kn(e,(e=>Jn(e,n,t,i,r)),((e,...n)=>Et(void 0,i,e,n)),i)}function zn(e,n){return Wn(e,!1,!1,void 0,n)}function qn(e,n,t){!MH(t)&&ce(z.get(n.path),MH)?Et(n,t,Wo.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[n.fileName,e]):Et(n,t,Wo.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,n.fileName])}function Jn(e,n,t,r,i){var a,o;null==(a=Vr)||a.push(Vr.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:n||void 0,fileIncludeKind:ni[r.kind]});const s=function(e,n,t,r,i){var a,o;const s=nn(e);if(Ge){let a=ot(s);if(!a&&se.realpath&&L.preserveSymlinks&&GD(e)&&rt(e,lP)){const n=nn(se.realpath(e));n!==s&&(a=ot(n))}if(a){const e=vn(a)?Jn(a,n,t,r,i):void 0;return e&&$n(e,s,void 0),e}}const c=e;if(we.has(s)){const t=we.get(s);if(Yn(t||void 0,r),t&&!1!==L.forceConsistentCasingInFileNames){const n=t.fileName;nn(n)!==nn(e)&&(e=Zn(e)||e);Lo(n,me)!==Lo(e,me)&&qn(e,t,r)}return t&&oe.get(t.path)&&0===ie?(oe.set(t.path,!1),L.noResolve||(lt(t,n),dt(t)),L.noLib||mt(t),ae.set(t.path,!1),gt(t)):t&&ae.get(t.path)&&ie<re&&(ae.set(t.path,!1),gt(t)),t||void 0}let l;if(MH(r)&&!Ge){const n=et(e);if(n){if(Nv(n.commandLine.options))return;const t=tt(n,e);e=t,l=nn(t)}}const d=Xn(e,Ee,se,L),u=se.getSourceFile(e,d,(n=>Et(void 0,r,Wo.Cannot_read_file_0_Colon_1,[e,n])),He||(null==(a=null==N?void 0:N.getSourceFileByPath(nn(e)))?void 0:a.impliedNodeFormat)!==d.impliedNodeFormat);if(i){const n=Ip(i),t=Le.get(n);if(t){const n=function(e,n,t,r,i,a,o){var s;const c=YN.createRedirectedSourceFile({redirectTarget:e,unredirected:n});return c.fileName=t,c.path=r,c.resolvedPath=i,c.originalFileName=a,c.packageJsonLocations=(null==(s=o.packageJsonLocations)?void 0:s.length)?o.packageJsonLocations:void 0,c.packageJsonScope=o.packageJsonScope,oe.set(r,ie>0),c}(t,u,e,s,nn(e),c,d);return ke.add(t.path,e),$n(n,s,l),Yn(n,r),Ce.set(s,kp(i)),F.push(n),n}u&&(Le.set(n,u),Ce.set(s,kp(i)))}if($n(u,s,l),u){if(oe.set(s,ie>0),u.fileName=e,u.path=s,u.resolvedPath=nn(e),u.originalFileName=c,u.packageJsonLocations=(null==(o=d.packageJsonLocations)?void 0:o.length)?d.packageJsonLocations:void 0,u.packageJsonScope=d.packageJsonScope,Yn(u,r),se.useCaseSensitiveFileNames()){const n=In(s),t=De.get(n);t?qn(e,t,r):De.set(n,u)}ue=ue||u.hasNoDefaultLib&&!t,L.noResolve||(lt(u,n),dt(u)),L.noLib||mt(u),gt(u),n?P.push(u):F.push(u)}return u}(e,n,t,r,i);return null==(o=Vr)||o.pop(),s}function Xn(e,n,t,r){const i=VH(So(e,me),null==n?void 0:n.getPackageJsonInfoCache(),t,r),a=HT(r),o=jT(r);return"object"===typeof i?{...i,languageVersion:a,setExternalModuleIndicator:o}:{languageVersion:a,impliedNodeFormat:i,setExternalModuleIndicator:o}}function Yn(e,n){e&&z.add(e.path,n)}function $n(e,n,t){t?(we.set(t,e),we.set(n,e||!1)):we.set(n,e)}function Zn(e){const n=et(e);return n&&tt(n,e)}function et(e){if(Oe&&Oe.length&&!GD(e)&&!oo(e,".json"))return it(e)}function tt(e,n){const t=Nv(e.commandLine.options);return t?Yx(t,".d.ts"):_j(n,e.commandLine,!se.useCaseSensitiveFileNames())}function it(e){void 0===Pe&&(Pe=new Map,at((e=>{nn(L.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((n=>Pe.set(nn(n),e.sourceFile.path)))})));const n=Pe.get(nn(e));return n&&ct(n)}function at(e){return DH(Oe,e)}function ot(e){if(GD(e))return void 0===Fe&&(Fe=new Map,at((e=>{const n=Nv(e.commandLine.options);if(n){const e=Yx(n,".d.ts");Fe.set(nn(e),!0)}else{const n=Rn((()=>yj(e.commandLine,!se.useCaseSensitiveFileNames())));A(e.commandLine.fileNames,(t=>{if(!GD(t)&&!oo(t,".json")){const r=_j(t,e.commandLine,!se.useCaseSensitiveFileNames(),n);Fe.set(nn(r),t)}}))}}))),Fe.get(e)}function st(e){return Ge&&!!it(e)}function ct(e){if(Me)return Me.get(e)||void 0}function lt(e,n){A(e.referencedFiles,((t,r)=>{Wn(sH(t.fileName,e.fileName),n,!1,void 0,{kind:4,file:e.path,index:r})}))}function dt(e){const n=e.typeReferenceDirectives;if(!n.length)return void(e.resolvedTypeReferenceDirectiveNames=void 0);const t=an(n,e);for(let r=0;r<n.length;r++){const n=e.typeReferenceDirectives[r],i=t[r],a=In(n.fileName);Sp(e,a,i,xH(n,e.impliedNodeFormat));const o=n.resolutionMode||e.impliedNodeFormat;o&&3!==zT(L)&&99!==zT(L)&&(null!=$?$:$=[]).push({kind:2,diagnostics:[tm(e,n,Wo.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)]}),ut(a,o,i,{kind:5,file:e.path,index:r})}}function ut(e,n,t,r){var i,a;null==(i=Vr)||i.push(Vr.Phase.Program,"processTypeReferenceDirective",{directive:e,hasResolved:!!t.resolvedTypeReferenceDirective,refKind:r.kind,refPath:MH(r)?r.file:void 0}),function(e,n,t,r){var i;qe(t);const a=null==(i=te.get(e,n))?void 0:i.resolvedTypeReferenceDirective;if(a&&a.primary)return;let o=!0;const{resolvedTypeReferenceDirective:s}=t;if(s){if(s.isExternalLibraryImport&&ie++,s.primary)Wn(s.resolvedFileName,!1,!1,s.packageId,r);else if(a){if(s.resolvedFileName!==a.resolvedFileName){const n=se.readFile(s.resolvedFileName),t=mn(a.resolvedFileName);n!==t.text&&Et(t,r,Wo.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[e,s.resolvedFileName,a.resolvedFileName])}o=!1}else Wn(s.resolvedFileName,!1,!1,s.packageId,r);s.isExternalLibraryImport&&ie--}else Et(void 0,r,Wo.Cannot_find_type_definition_file_for_0,[e]);o&&te.set(e,n,t)}(e,n,t,r),null==(a=Vr)||a.pop()}function _t(e){const n=e.split(".");let t=n[1],r=2;for(;n[r]&&"d"!==n[r];)t+=(2===r?"/":"-")+n[r],r++;const i=JP("@typescript/lib-"+t,Eo(me,`__lib_node_modules_lookup_${e}__.ts`),{moduleResolution:2},se,Ee);return(null==i?void 0:i.resolvedModule)?i.resolvedModule.resolvedFileName:Eo(pe,e)}function mt(e){A(e.libReferenceDirectives,((n,t)=>{const r=In(n.fileName),i=YD.get(r);if(i)Pn(_t(i),!0,!0,{kind:7,file:e.path,index:t});else{const n=Qn(nt(ft(r,"lib."),".d.ts"),XD,Cn),i=n?Wo.Cannot_find_lib_definition_for_0_Did_you_mean_1:Wo.Cannot_find_lib_definition_for_0;($||($=[])).push({kind:0,reason:{kind:7,file:e.path,index:t},diagnostic:i,args:[r,n]})}}))}function ht(e){return se.getCanonicalFileName(e)}function gt(e){var n;if(Hn(e),e.imports.length||e.moduleAugmentations.length){const t=XH(e),r=rn(t,e);Nt.assert(r.length===t.length);const i=(Ge?null==(n=$e(e))?void 0:n.commandLine.options:void 0)||L;for(let n=0;n<t.length;n++){const a=r[n].resolvedModule,o=t[n].text,s=LH(e,t[n]);if(xp(e,o,r[n],s),Je(e,o,r[n],s),!a)continue;const c=a.isExternalLibraryImport,l=!nS(a.extension),d=c&&l,u=a.resolvedFileName;c&&ie++;const _=d&&ie>re,p=u&&!JH(i,a,e)&&!i.noResolve&&n<e.imports.length&&!_&&!(l&&!dx(i))&&(Ih(e.imports[n])||!(8388608&e.imports[n].flags));_?ae.set(e.path,!0):p&&Jn(u,!1,!1,{kind:3,file:e.path,index:n},a.packageId),c&&ie--}}else e.resolvedModules=void 0}function yt(e){Me||(Me=new Map);const n=qH(e),t=nn(n),r=Me.get(t);if(void 0!==r)return r||void 0;let i,a;if(se.getParsedCommandLine){if(i=se.getParsedCommandLine(n),!i)return $n(void 0,t,void 0),void Me.set(t,!1);a=Nt.checkDefined(i.options.configFile),Nt.assert(!a.path||a.path===t),$n(a,t,void 0)}else{const e=So(po(n),se.getCurrentDirectory());if(a=se.getSourceFile(n,100),$n(a,t,void 0),void 0===a)return void Me.set(t,!1);i=TM(a,le,e,void 0,n)}a.fileName=n,a.path=t,a.resolvedPath=t,a.originalFileName=n;const o={commandLine:i,sourceFile:a};return Me.set(t,o),i.projectReferences&&(o.references=i.projectReferences.map(yt)),o}function vt(e,t,r,i){const a=new Ut(e),o=new Ut(t),s=new Ut(R||n),c=function(){const e=L.ignoreDeprecations;if(e){if("5.0"===e)return new Ut(e);O()}return Ut.zero}(),l=!(1===o.compareTo(s)),d=!l&&-1===c.compareTo(a);(l||d)&&i(((n,i,a)=>{l?void 0===i?r(n,i,a,Wo.Option_0_has_been_removed_Please_remove_it_from_your_configuration,n):r(n,i,a,Wo.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,n,i):void 0===i?r(n,i,a,Wo.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,n,t,e):r(n,i,a,Wo.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,n,i,t,e)}))}function bt(e,n,t,r){var a;let o,s,c=MH(n)?n:void 0;e&&(null==(a=z.get(e.path))||a.forEach(p)),n&&p(n),c&&1===(null==o?void 0:o.length)&&(o=void 0);const l=c&&FH(hn,c),d=o&&NT(o,Wo.The_file_is_in_the_program_because_Colon),u=e&&dW(e),_=NT(u?d?[d,...u]:u:d,t,...r||i);return l&&PH(l)?Zf(l.file,l.pos,l.end-l.pos,_,s):RT(_,s);function p(e){(o||(o=[])).push(pW(We,e)),!c&&MH(e)?c=e:c!==e&&(s=Te(s,function(e){if(MH(e)){const n=FH(hn,e);let t;switch(e.kind){case 3:t=Wo.File_is_included_via_import_here;break;case 4:t=Wo.File_is_included_via_reference_here;break;case 5:t=Wo.File_is_included_via_type_library_reference_here;break;case 7:t=Wo.File_is_included_via_library_reference_here;break;default:Nt.assertNever(e)}return PH(n)?kT(n.file,n.pos,n.end-n.pos,t):void 0}if(!L.configFile)return;let n,t;switch(e.kind){case 0:if(!L.configFile.configFileSpecs)return;const r=So(S[e.index],me),i=uW(We,r);if(i){n=Wm(L.configFile,"files",i),t=Wo.File_is_matched_by_files_list_specified_here;break}const a=_W(We,r);if(!a||!vn(a))return;n=Wm(L.configFile,"include",a),t=Wo.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const o=Nt.checkDefined(null==Oe?void 0:Oe[e.index]),s=OH(w,Oe,((e,n,t)=>e===o?{sourceFile:(null==n?void 0:n.sourceFile)||L.configFile,index:t}:void 0));if(!s)return;const{sourceFile:c,index:l}=s,d=C(zm(c,"references"),(e=>Dk(e.initializer)?e.initializer:void 0));return d&&d.elements.length>l?Xf(c,d.elements[l],2===e.kind?Wo.File_is_output_from_referenced_project_specified_here:Wo.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!L.types)return;n=Ct("types",e.typeReference),t=Wo.File_is_entry_point_of_type_library_specified_here;break;case 6:if(void 0!==e.index){n=Ct("lib",L.lib[e.index]),t=Wo.File_is_library_specified_here;break}const u=gp(ZD.type,((e,n)=>e===HT(L)?n:void 0));n=u?function(e,n){const t=At(e);return t&&C(t,(e=>_C(e.initializer)&&e.initializer.text===n?e.initializer:void 0))}("target",u):void 0,t=Wo.File_is_default_library_for_target_specified_here;break;default:Nt.assertNever(e)}return n&&Xf(L.configFile,n,t)}(e))),e===n&&(n=void 0)}}function Et(e,n,t,r){($||($=[])).push({kind:1,file:e&&e.path,fileProcessingReason:n,diagnostic:t,args:r})}function Tt(e,n,t){fe.add(bt(e,void 0,n,t))}function xt(e,n,t,r,i,a){let o=!0;const s=Lt();for(const c of s)if(Ok(c.initializer))for(const s of jm(c.initializer,e)){const e=s.initializer;Dk(e)&&e.elements.length>n&&(fe.add(Xf(L.configFile,e.elements[n],t,r,i,a)),o=!1)}o&&fe.add(wT(t,r,i,a))}function St(e,n,t,r){let i=!0;const a=Lt();for(const o of a)Ok(o.initializer)&&Ot(o.initializer,e,n,void 0,t,r)&&(i=!1);i&&fe.add(wT(t,r))}function At(e){const n=Dt();return n&&jm(n,e)}function Lt(){return At("paths")||i}function Ct(e,n){const t=Dt();return t&&Hm(t,e,n)}function kt(e,n,t,r){Rt(!0,n,t,e,n,t,r)}function It(e,n,t,r){Rt(!1,e,void 0,n,t,r)}function wt(e,n,t,r,i,a,o){const s=C(zm(e||L.configFile,"references"),(e=>Dk(e.initializer)?e.initializer:void 0));s&&s.elements.length>n?fe.add(Xf(e||L.configFile,s.elements[n],t,r,i,a,o)):fe.add(wT(t,r,i,a,o))}function Rt(e,n,t,r,i,a,o,s){const c=Dt();(!c||!Ot(c,e,n,t,r,i,a,o,s))&&("messageText"in r?fe.add(RT(r)):fe.add(wT(r,i,a,o,s)))}function Dt(){if(void 0===be){be=!1;const e=Km(L.configFile);if(e)for(const n of jm(e,"compilerOptions"))if(Ok(n.initializer)){be=n.initializer;break}}return be||void 0}function Ot(e,n,t,r,i,a,o,s,c){const l=jm(e,t,r);for(const d of l)"messageText"in i?fe.add(Yf(L.configFile,n?d.name:d.initializer,i)):fe.add(Xf(L.configFile,n?d.name:d.initializer,i,a,o,s,c));return!!l.length}function Mt(e,n){const t=Dt();t?Ot(t,!0,e,void 0,Wo.Option_0_is_redundant_and_cannot_be_specified_with_option_1,e,n):kt(Wo.Option_0_is_redundant_and_cannot_be_specified_with_option_1,e,n)}function Pt(e,n){ye.set(nn(e),!0),fe.add(n)}function Ft(e,n){return 0===Mo(e,n,me,!se.useCaseSensitiveFileNames())}function Gt(){return se.getSymlinkCache?se.getSymlinkCache():(U||(U=bx(me,ht)),B&&Z&&!U.hasProcessedResolutions()&&U.setSymlinksFromResolutions(B,Z),U)}}function HH(e,n,t,r){const i=e.getCompilerOptions();if(i.noEmit)return e.getSemanticDiagnostics(n,r),n||Nv(i)?iH:e.emitBuildInfo(t,r);if(!i.noEmitOnError)return;let a,o=[...e.getOptionsDiagnostics(r),...e.getSyntacticDiagnostics(n,r),...e.getGlobalDiagnostics(r),...e.getSemanticDiagnostics(n,r)];if(0===o.length&&ox(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(void 0,r)),o.length){if(!n&&!Nv(i)){const n=e.emitBuildInfo(t,r);n.diagnostics&&(o=[...o,...n.diagnostics]),a=n.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:a,emitSkipped:!0}}}function KH(e,n){return j(e,(e=>!e.skippedOn||!n[e.skippedOn]))}function WH(e,n=e){return{fileExists:e=>n.fileExists(e),readDirectory:(e,t,r,i,a)=>(Nt.assertIsDefined(n.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(e,t,r,i,a)),readFile:e=>n.readFile(e),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Ln,trace:e.trace?n=>e.trace(n):void 0}}function zH(e,n,t,r){if(!e)return i;let a;for(let i=0;i<e.length;i++){const o=e[i],s=n(o,i);if(o.prepend&&s&&s.options){if(!Nv(s.options))continue;const{jsFilePath:e,sourceMapFilePath:n,declarationFilePath:i,declarationMapPath:o,buildInfoPath:c}=sj(s.options,!0),l=OA(t,e,n,i,o,c,r,s.options);(a||(a=[])).push(l)}}return a||i}function qH(e){return PW(e.path)}function JH(e,{extension:n},{isDeclarationFile:t}){switch(n){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return r();case".jsx":return r()||i();case".js":case".mjs":case".cjs":return i();case".json":return ax(e)?void 0:Wo.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;default:return t||e.allowArbitraryExtensions?void 0:Wo.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}function r(){return e.jsx?void 0:Wo.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return dx(e)||!lx(e,"noImplicitAny")?void 0:Wo.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function XH({imports:e,moduleAugmentations:n}){const t=e.map((e=>e));for(const r of n)10===r.kind&&t.push(r);return t}function YH({imports:e,moduleAugmentations:n},t){if(t<e.length)return e[t];let r=e.length;for(const i of n)if(10===i.kind){if(t===r)return i;r++}Nt.fail("should never ask for module name at index higher than possible module name")}var $H,QH=E({"src/compiler/program.ts"(){lq(),lq(),_a(),zj=(e=>(e.Grey="\x1b[90m",e.Red="\x1b[91m",e.Yellow="\x1b[93m",e.Blue="\x1b[94m",e.Cyan="\x1b[96m",e))(zj||{}),qj="\x1b[7m",Jj=" ",Xj="\x1b[0m",Yj="...",$j=" ",Qj=" ",Zj={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},eH={getName:kH,getMode:(e,n)=>LH(n,e)},nH={getName:wH,getMode:(e,n)=>xH(e,null==n?void 0:n.impliedNodeFormat)},tH="__inferred type names__.ts",rH=new Set([Wo.Cannot_redeclare_block_scoped_variable_0.code,Wo.A_module_cannot_have_multiple_default_exports.code,Wo.Another_export_default_is_here.code,Wo.The_first_export_default_is_here.code,Wo.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,Wo.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,Wo.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,Wo.constructor_is_a_reserved_word.code,Wo.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,Wo.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,Wo.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,Wo.Invalid_use_of_0_in_strict_mode.code,Wo.A_label_is_not_allowed_here.code,Wo.Octal_literals_are_not_allowed_in_strict_mode.code,Wo.with_statements_are_not_allowed_in_strict_mode.code,Wo.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,Wo.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,Wo.A_class_declaration_without_the_default_modifier_must_have_a_name.code,Wo.A_class_member_cannot_have_the_0_keyword.code,Wo.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,Wo.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,Wo.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,Wo.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,Wo.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,Wo.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,Wo.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,Wo.A_destructuring_declaration_must_have_an_initializer.code,Wo.A_get_accessor_cannot_have_parameters.code,Wo.A_rest_element_cannot_contain_a_binding_pattern.code,Wo.A_rest_element_cannot_have_a_property_name.code,Wo.A_rest_element_cannot_have_an_initializer.code,Wo.A_rest_element_must_be_last_in_a_destructuring_pattern.code,Wo.A_rest_parameter_cannot_have_an_initializer.code,Wo.A_rest_parameter_must_be_last_in_a_parameter_list.code,Wo.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,Wo.A_return_statement_cannot_be_used_inside_a_class_static_block.code,Wo.A_set_accessor_cannot_have_rest_parameter.code,Wo.A_set_accessor_must_have_exactly_one_parameter.code,Wo.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,Wo.An_export_declaration_cannot_have_modifiers.code,Wo.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,Wo.An_import_declaration_cannot_have_modifiers.code,Wo.An_object_member_cannot_be_declared_optional.code,Wo.Argument_of_dynamic_import_cannot_be_spread_element.code,Wo.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,Wo.Cannot_redeclare_identifier_0_in_catch_clause.code,Wo.Catch_clause_variable_cannot_have_an_initializer.code,Wo.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,Wo.Classes_can_only_extend_a_single_class.code,Wo.Classes_may_not_have_a_field_named_constructor.code,Wo.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,Wo.Duplicate_label_0.code,Wo.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,Wo.For_await_loops_cannot_be_used_inside_a_class_static_block.code,Wo.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,Wo.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,Wo.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,Wo.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,Wo.Jump_target_cannot_cross_function_boundary.code,Wo.Line_terminator_not_permitted_before_arrow.code,Wo.Modifiers_cannot_appear_here.code,Wo.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,Wo.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,Wo.Private_identifiers_are_not_allowed_outside_class_bodies.code,Wo.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,Wo.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,Wo.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,Wo.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,Wo.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,Wo.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,Wo.Trailing_comma_not_allowed.code,Wo.Variable_declaration_list_cannot_be_empty.code,Wo._0_and_1_operations_cannot_be_mixed_without_parentheses.code,Wo._0_expected.code,Wo._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,Wo._0_list_cannot_be_empty.code,Wo._0_modifier_already_seen.code,Wo._0_modifier_cannot_appear_on_a_constructor_declaration.code,Wo._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,Wo._0_modifier_cannot_appear_on_a_parameter.code,Wo._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,Wo._0_modifier_cannot_be_used_here.code,Wo._0_modifier_must_precede_1_modifier.code,Wo.const_declarations_can_only_be_declared_inside_a_block.code,Wo.const_declarations_must_be_initialized.code,Wo.extends_clause_already_seen.code,Wo.let_declarations_can_only_be_declared_inside_a_block.code,Wo.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,Wo.Class_constructor_may_not_be_a_generator.code,Wo.Class_constructor_may_not_be_an_accessor.code,Wo.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code]),iH={diagnostics:i,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),ZH=E({"src/compiler/builderStatePublic.ts"(){}});function eK(e,n,t,r,i,a){const o=[],{emitSkipped:s,diagnostics:c}=e.emit(n,(function(e,n,t){o.push({name:e,writeByteOrderMark:t,text:n})}),r,t,i,a);return{outputFiles:o,emitSkipped:s,diagnostics:c}}var nK,tK,rK=E({"src/compiler/builderState.ts"(){lq(),(e=>{function n(){return function(e,n,r){const i={getKeys:e=>n.get(e),getValues:n=>e.get(n),keys:()=>e.keys(),deleteKey:i=>{(r||(r=new Set)).add(i);const a=e.get(i);return!!a&&(a.forEach((e=>t(n,e,i))),e.delete(i),!0)},set:(a,o)=>{null==r||r.delete(a);const s=e.get(a);return e.set(a,o),null==s||s.forEach((e=>{o.has(e)||t(n,e,a)})),o.forEach((e=>{(null==s?void 0:s.has(e))||function(e,n,t){let r=e.get(n);r||(r=new Set,e.set(n,r));r.add(t)}(n,e,a)})),i}};return i}(new Map,new Map,void 0)}function t(e,n,t){const r=e.get(n);return!!(null==r?void 0:r.delete(t))&&(r.size||e.delete(n),!0)}function r(e){return ee(e.declarations,(e=>{var n;return null==(n=Dp(e))?void 0:n.resolvedPath}))}function a(e,n){const t=e.getSymbolAtLocation(n);return t&&r(t)}function o(e,n,t,r){return Co(e.getProjectReferenceRedirect(n)||n,t,r)}function s(e,n,t){let r;if(n.imports&&n.imports.length>0){const t=e.getTypeChecker();for(const e of n.imports){const n=a(t,e);null==n||n.forEach(c)}}const i=po(n.resolvedPath);if(n.referencedFiles&&n.referencedFiles.length>0)for(const a of n.referencedFiles){c(o(e,a.fileName,i,t))}if(n.resolvedTypeReferenceDirectiveNames&&n.resolvedTypeReferenceDirectiveNames.forEach((({resolvedTypeReferenceDirective:n})=>{if(!n)return;const r=n.resolvedFileName;c(o(e,r,i,t))})),n.moduleAugmentations.length){const t=e.getTypeChecker();for(const e of n.moduleAugmentations){if(!_C(e))continue;const n=t.getSymbolAtLocation(e);n&&s(n)}}for(const a of e.getTypeChecker().getAmbientModules())a.declarations&&a.declarations.length>1&&s(a);return r;function s(e){if(e.declarations)for(const t of e.declarations){const e=Dp(t);e&&e!==n&&c(e.resolvedPath)}}function c(e){(r||(r=new Set)).add(e)}}function c(e,n){return n&&!n.referencedMap===!e}function l(e,n,t,r,a){const o=n.getSourceFileByPath(t);return o?u(e,n,o,r,a)?(e.referencedMap?v:y)(e,n,o,r,a):[o]:i}function d(e,n,t,r,i){e.emit(n,((t,a,o,s,c,l)=>{Nt.assert(GD(t),`File extension for signature expected to be dts: Got:: ${t}`),i(LK(e,n,a,r,l),c)}),t,!0,void 0,!0)}function u(e,n,t,r,i,a=e.useFileVersionAsSignature){var o;if(null==(o=e.hasCalledUpdateShapeSignature)?void 0:o.has(t.resolvedPath))return!1;const s=e.fileInfos.get(t.resolvedPath),c=s.signature;let l;if(t.isDeclarationFile||a||d(n,t,r,i,((n,r)=>{l=n,l!==c&&_(e,t,r[0].exportedModulesFromDeclarationEmit)})),void 0===l&&(l=t.version,e.exportedModulesMap&&l!==c)){(e.oldExportedModulesMap||(e.oldExportedModulesMap=new Map)).set(t.resolvedPath,e.exportedModulesMap.getValues(t.resolvedPath)||!1);const n=e.referencedMap?e.referencedMap.getValues(t.resolvedPath):void 0;n?e.exportedModulesMap.set(t.resolvedPath,n):e.exportedModulesMap.deleteKey(t.resolvedPath)}return(e.oldSignatures||(e.oldSignatures=new Map)).set(t.resolvedPath,c||!1),(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(t.resolvedPath),s.signature=l,l!==c}function _(e,n,t){if(!e.exportedModulesMap)return;(e.oldExportedModulesMap||(e.oldExportedModulesMap=new Map)).set(n.resolvedPath,e.exportedModulesMap.getValues(n.resolvedPath)||!1);const r=p(t);r?e.exportedModulesMap.set(n.resolvedPath,r):e.exportedModulesMap.deleteKey(n.resolvedPath)}function p(e){let n;return null==e||e.forEach((e=>r(e).forEach((e=>(null!=n?n:n=new Set).add(e))))),n}function f(e,n){if(!e.allFileNames){const t=n.getSourceFiles();e.allFileNames=t===i?i:t.map((e=>e.fileName))}return e.allFileNames}function m(e,n){const t=e.referencedMap.getKeys(n);return t?Qe(t.keys()):[]}function h(e){return function(e){return ce(e.moduleAugmentations,(e=>Sf(e.parent)))}(e)||!om(e)&&!sm(e)&&!function(e){for(const n of e.statements)if(!vf(n))return!1;return!0}(e)}function g(e,n,t){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;let r;t&&a(t);for(const i of n.getSourceFiles())i!==t&&a(i);return e.allFilesExcludingDefaultLibraryFile=r||i,e.allFilesExcludingDefaultLibraryFile;function a(e){n.isSourceFileDefaultLibrary(e)||(r||(r=[])).push(e)}}function y(e,n,t){const r=n.getCompilerOptions();return r&&Nv(r)?[t]:g(e,n,t)}function v(e,n,t,r,i){if(h(t))return g(e,n,t);const a=n.getCompilerOptions();if(a&&(XT(a)||Nv(a)))return[t];const o=new Map;o.set(t.resolvedPath,t);const s=m(e,t.resolvedPath);for(;s.length>0;){const t=s.pop();if(!o.has(t)){const a=n.getSourceFileByPath(t);o.set(t,a),a&&u(e,n,a,r,i)&&s.push(...m(e,a.resolvedPath))}}return Qe(ne(o.values(),(e=>e)))}e.createManyToManyPathMap=n,e.canReuseOldState=c,e.create=function(e,t,r){var i,a,o;const l=new Map,d=e.getCompilerOptions(),u=Nv(d),_=0===d.module||u?void 0:n(),p=_?n():void 0,f=c(_,t);e.getTypeChecker();for(const n of e.getSourceFiles()){const r=Nt.checkDefined(n.version,"Program intended to be used with Builder should have source files with versions set"),c=f?null==(i=t.oldSignatures)?void 0:i.get(n.resolvedPath):void 0,d=void 0===c?f?null==(a=t.fileInfos.get(n.resolvedPath))?void 0:a.signature:void 0:c||void 0;if(_){const r=s(e,n,e.getCanonicalFileName);if(r&&_.set(n.resolvedPath,r),f){const e=null==(o=t.oldExportedModulesMap)?void 0:o.get(n.resolvedPath),r=void 0===e?t.exportedModulesMap.getValues(n.resolvedPath):e||void 0;r&&p.set(n.resolvedPath,r)}}l.set(n.resolvedPath,{version:r,signature:d,affectsGlobalScope:u?void 0:h(n)||void 0,impliedFormat:n.impliedNodeFormat})}return{fileInfos:l,referencedMap:_,exportedModulesMap:p,useFileVersionAsSignature:!r&&!f}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.getFilesAffectedBy=function(e,n,t,r,i){var a,o;const s=l(e,n,t,r,i);return null==(a=e.oldSignatures)||a.clear(),null==(o=e.oldExportedModulesMap)||o.clear(),s},e.getFilesAffectedByWithOldState=l,e.updateSignatureOfFile=function(e,n,t){e.fileInfos.get(t).signature=n,(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(t)},e.computeDtsSignature=d,e.updateShapeSignature=u,e.updateExportedModules=_,e.getExportedModules=p,e.getAllDependencies=function(e,n,t){if(Nv(n.getCompilerOptions()))return f(e,n);if(!e.referencedMap||h(t))return f(e,n);const r=new Set,i=[t.resolvedPath];for(;i.length;){const n=i.pop();if(!r.has(n)){r.add(n);const t=e.referencedMap.getValues(n);if(t)for(const e of t.keys())i.push(e)}}return Qe(ne(r.keys(),(e=>{var t,r;return null!=(r=null==(t=n.getSourceFileByPath(e))?void 0:t.fileName)?r:e})))},e.getReferencedByPaths=m,e.getAllFilesExcludingDefaultLibraryFile=g})($H||($H={}))}});function iK(e){let n=1;return e.sourceMap&&(n|=2),e.inlineSourceMap&&(n|=4),ox(e)&&(n|=8),e.declarationMap&&(n|=16),e.emitDeclarationOnly&&(n&=24),n}function aK(e,n){const t=n&&(bn(n)?n:iK(n)),r=bn(e)?e:iK(e);if(t===r)return 0;if(!t||!r)return r;const i=t^r;let a=0;return 7&i&&(a=7&r),24&i&&(a|=24&r),a}function oK(e,n){var t,r;const a=$H.create(e,n,!1);a.program=e;const o=e.getCompilerOptions();a.compilerOptions=o;const s=Nv(o);s?o.composite&&(null==n?void 0:n.outSignature)&&s===Nv(null==n?void 0:n.compilerOptions)&&(a.outSignature=n.outSignature&&cK(o,n.compilerOptions,n.outSignature)):a.semanticDiagnosticsPerFile=new Map,a.changedFilesSet=new Set,a.latestChangedDtsFile=o.composite?null==n?void 0:n.latestChangedDtsFile:void 0;const c=$H.canReuseOldState(a.referencedMap,n),l=c?n.compilerOptions:void 0,d=c&&n.semanticDiagnosticsPerFile&&!!a.semanticDiagnosticsPerFile&&!_x(o,l),u=o.composite&&(null==n?void 0:n.emitSignatures)&&!s&&!fx(o,n.compilerOptions);c?(null==(t=n.changedFilesSet)||t.forEach((e=>a.changedFilesSet.add(e))),!s&&(null==(r=n.affectedFilesPendingEmit)?void 0:r.size)&&(a.affectedFilesPendingEmit=new Map(n.affectedFilesPendingEmit),a.seenAffectedFiles=new Set),a.programEmitPending=n.programEmitPending):a.buildInfoEmitPending=!0;const _=a.referencedMap,p=c?n.referencedMap:void 0,f=d&&!o.skipLibCheck===!l.skipLibCheck,m=f&&!o.skipDefaultLibCheck===!l.skipDefaultLibCheck;if(a.fileInfos.forEach(((t,r)=>{var s;let l,h;if(!c||!(l=n.fileInfos.get(r))||l.version!==t.version||l.impliedFormat!==t.impliedFormat||(g=h=_&&_.getValues(r),y=p&&p.getValues(r),g!==y&&(void 0===g||void 0===y||g.size!==y.size||yp(g,(e=>!y.has(e)))))||h&&yp(h,(e=>!a.fileInfos.has(e)&&n.fileInfos.has(e))))sK(a,r);else if(d){const t=e.getSourceFileByPath(r);if(t.isDeclarationFile&&!f)return;if(t.hasNoDefaultLib&&!m)return;const o=n.semanticDiagnosticsPerFile.get(r);o&&(a.semanticDiagnosticsPerFile.set(r,n.hasReusableDiagnostic?function(e,n){if(!e.length)return i;let t;return e.map((e=>{const t=lK(e,n,r);t.reportsUnnecessary=e.reportsUnnecessary,t.reportsDeprecated=e.reportDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;const{relatedInformation:i}=e;return t.relatedInformation=i?i.length?i.map((e=>lK(e,n,r))):[]:void 0,t}));function r(e){return null!=t||(t=po(So(oj(n.getCompilerOptions()),n.getCurrentDirectory()))),Co(e,t,n.getCanonicalFileName)}}(o,e):o),a.semanticDiagnosticsFromOldState||(a.semanticDiagnosticsFromOldState=new Set),a.semanticDiagnosticsFromOldState.add(r))}var g,y;if(u){const e=n.emitSignatures.get(r);e&&(null!=(s=a.emitSignatures)?s:a.emitSignatures=new Map).set(r,cK(o,n.compilerOptions,e))}})),c&&gp(n.fileInfos,((e,n)=>!a.fileInfos.has(n)&&(!(!s&&!e.affectsGlobalScope)||(a.buildInfoEmitPending=!0,!1)))))$H.getAllFilesExcludingDefaultLibraryFile(a,e,void 0).forEach((e=>sK(a,e.resolvedPath)));else if(l){const n=px(o,l)?iK(o):aK(o,l);0!==n&&(s?a.programEmitPending=a.programEmitPending?a.programEmitPending|n:n:(e.getSourceFiles().forEach((e=>{a.changedFilesSet.has(e.resolvedPath)||IK(a,e.resolvedPath,n)})),Nt.assert(!a.seenAffectedFiles||!a.seenAffectedFiles.size),a.seenAffectedFiles=a.seenAffectedFiles||new Set,a.buildInfoEmitPending=!0))}return s&&!a.changedFilesSet.size&&(c&&(a.bundle=n.bundle),ce(e.getProjectReferences(),(e=>!!e.prepend))&&(a.programEmitPending=iK(o))),a}function sK(e,n){e.changedFilesSet.add(n),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function cK(e,n,t){return!!e.declarationMap===!!n.declarationMap?t:vn(t)?[t]:t[0]}function lK(e,n,t){const{file:r}=e;return{...e,file:r?n.getSourceFileByPath(t(r)):void 0}}function dK(e,n){Nt.assert(!n||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==n||!e.semanticDiagnosticsPerFile.has(n.resolvedPath))}function uK(e,n,t){for(var r,i;;){const{affectedFiles:a}=e;if(a){const o=e.seenAffectedFiles;let s=e.affectedFilesIndex;for(;s<a.length;){const r=a[s];if(!o.has(r.resolvedPath))return e.affectedFilesIndex=s,IK(e,r.resolvedPath,iK(e.compilerOptions)),pK(e,r,n,t),r;s++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,null==(r=e.oldSignatures)||r.clear(),null==(i=e.oldExportedModulesMap)||i.clear(),e.affectedFiles=void 0}const o=e.changedFilesSet.keys().next();if(o.done)return;const s=Nt.checkDefined(e.program);if(Nv(s.getCompilerOptions()))return Nt.assert(!e.semanticDiagnosticsPerFile),s;e.affectedFiles=$H.getFilesAffectedByWithOldState(e,s,o.value,n,t),e.currentChangedFilePath=o.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function _K(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const n=Nt.checkDefined(e.program),t=n.getCompilerOptions();A(n.getSourceFiles(),(r=>n.isSourceFileDefaultLibrary(r)&&!_S(r,t,n)&&mK(e,r.resolvedPath)))}}function pK(e,n,t,r){if(mK(e,n.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles)return _K(e),void $H.updateShapeSignature(e,Nt.checkDefined(e.program),n,t,r);e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(e,n,t,r){var i;if(!e.exportedModulesMap||!e.changedFilesSet.has(n.resolvedPath))return;if(!hK(e,n.resolvedPath))return;if(XT(e.compilerOptions)){const i=new Map;i.set(n.resolvedPath,!0);const a=$H.getReferencedByPaths(e,n.resolvedPath);for(;a.length>0;){const n=a.pop();if(!i.has(n)){if(i.set(n,!0),gK(e,n,t,r))return;if(fK(e,n,t,r),hK(e,n)){const t=Nt.checkDefined(e.program).getSourceFileByPath(n);a.push(...$H.getReferencedByPaths(e,t.resolvedPath))}}}}const a=new Set;null==(i=e.exportedModulesMap.getKeys(n.resolvedPath))||i.forEach((n=>{if(gK(e,n,t,r))return!0;const i=e.referencedMap.getKeys(n);return i&&yp(i,(n=>yK(e,n,a,t,r)))}))}(e,n,t,r)}function fK(e,n,t,r){if(mK(e,n),!e.changedFilesSet.has(n)){const i=Nt.checkDefined(e.program),a=i.getSourceFileByPath(n);a&&($H.updateShapeSignature(e,i,a,t,r,!0),ox(e.compilerOptions)&&IK(e,n,e.compilerOptions.declarationMap?24:8))}}function mK(e,n){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(n),e.semanticDiagnosticsPerFile.delete(n),!e.semanticDiagnosticsFromOldState.size)}function hK(e,n){const t=Nt.checkDefined(e.oldSignatures).get(n)||void 0;return Nt.checkDefined(e.fileInfos.get(n)).signature!==t}function gK(e,n,t,r){var i;return!!(null==(i=e.fileInfos.get(n))?void 0:i.affectsGlobalScope)&&($H.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach((n=>fK(e,n.resolvedPath,t,r))),_K(e),!0)}function yK(e,n,t,r,i){var a,o;if(ie(t,n)){if(gK(e,n,r,i))return!0;fK(e,n,r,i),null==(a=e.exportedModulesMap.getKeys(n))||a.forEach((n=>yK(e,n,t,r,i))),null==(o=e.referencedMap.getKeys(n))||o.forEach((n=>!t.has(n)&&fK(e,n,r,i)))}}function vK(e,n,t){return de(function(e,n,t){const r=n.resolvedPath;if(e.semanticDiagnosticsPerFile){const n=e.semanticDiagnosticsPerFile.get(r);if(n)return KH(n,e.compilerOptions)}const i=Nt.checkDefined(e.program).getBindAndCheckDiagnostics(n,t);e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(r,i);return KH(i,e.compilerOptions)}(e,n,t),Nt.checkDefined(e.program).getProgramDiagnostics(n))}function bK(e){return!!Nv(e.options||{})}function EK(e,n,t){if(e)if(Nt.assert("listOrElement"!==e.type),"list"===e.type){const r=n;if(e.element.isFilePath&&r.length)return r.map(t)}else if(e.isFilePath)return t(n);return n}function TK(e,n){return Nt.assert(!!e.length),e.map((e=>{const t=xK(e,n);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;const{relatedInformation:r}=e;return t.relatedInformation=r?r.length?r.map((e=>xK(e,n))):[]:void 0,t}))}function xK(e,n){const{file:t}=e;return{...e,file:t?n(t.resolvedPath):void 0}}function SK(e,n,t,r,a,o){let s,c,l;return void 0===e?(Nt.assert(void 0===n),s=t,l=r,Nt.assert(!!l),c=l.getProgram()):gn(e)?(l=r,c=jH({rootNames:e,options:n,host:t,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=t):(c=e,s=n,l=t,a=r),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:a||i}}function AK(e,n){return void 0!==(null==n?void 0:n.sourceMapUrlPos)?e.substring(0,n.sourceMapUrlPos):e}function LK(e,n,t,r,i){var a,o;let s;return t=AK(t,i),(null==(a=null==i?void 0:i.diagnostics)?void 0:a.length)&&(t+=i.diagnostics.map((t=>`${function(t){if(t.file.resolvedPath===n.resolvedPath)return`(${t.start},${t.length})`;void 0===s&&(s=po(n.resolvedPath));return`${wo(Bo(s,t.file.resolvedPath,e.getCanonicalFileName))}(${t.start},${t.length})`}(t)}${Mi[t.category]}${t.code}: ${c(t.messageText)}`)).join("\n")),(null!=(o=r.createHash)?o:Ca)(t);function c(e){return vn(e)?e:void 0===e?"":e.next?e.messageText+e.next.map(c).join("\n"):e.messageText}}function CK(e,n,t){var r;return(null!=(r=n.createHash)?r:Ca)(AK(e,t))}function kK(e,{newProgram:n,host:t,oldProgram:r,configFileParsingDiagnostics:a}){let o=r&&r.getState();if(o&&n===o.program&&a===n.getConfigFileParsingDiagnostics())return n=void 0,o=void 0,r;const s=oK(n,o);n.getBuildInfo=e=>function(e,n){var t,r,a;const o=Nt.checkDefined(e.program).getCurrentDirectory(),s=po(So(oj(e.compilerOptions),o)),c=e.latestChangedDtsFile?E(e.latestChangedDtsFile):void 0,l=[],d=new Map,u=[];if(Nv(e.compilerOptions)){const i=Qe(e.fileInfos.entries(),(([e,n])=>(A(e,x(e)),n.impliedFormat?{version:n.version,impliedFormat:n.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:n.version))),a={fileNames:l,fileInfos:i,root:u,options:L(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:c,pendingEmit:e.programEmitPending?e.programEmitPending!==iK(e.compilerOptions)&&e.programEmitPending:void 0},{js:o,dts:s,commonSourceDirectory:d,sourceFiles:_}=n;return e.bundle=n={commonSourceDirectory:d,sourceFiles:_,js:o||(e.compilerOptions.emitDeclarationOnly||null==(t=e.bundle)?void 0:t.js),dts:s||(ox(e.compilerOptions)?null==(r=e.bundle)?void 0:r.dts:void 0)},xj(a,n)}let _,p,f;const m=Qe(e.fileInfos.entries(),(([n,t])=>{var r,a;const o=x(n);A(n,o),Nt.assert(l[o-1]===T(n));const s=null==(r=e.oldSignatures)?void 0:r.get(n),c=void 0!==s?s||void 0:t.signature;if(e.compilerOptions.composite){const t=e.program.getSourceFileByPath(n);if(!sm(t)&&Mv(t,e.program)){const t=null==(a=e.emitSignatures)?void 0:a.get(n);t!==c&&(f||(f=[])).push(void 0===t?o:[o,vn(t)||t[0]!==c?t:i])}}return t.version===c?t.affectsGlobalScope||t.impliedFormat?{version:t.version,signature:void 0,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}:t.version:void 0!==c?void 0===s?t:{version:t.version,signature:c,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}:{version:t.version,signature:!1,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}));let h,g,y,v,b;if(e.referencedMap&&(h=Qe(e.referencedMap.keys()).sort(Wn).map((n=>[x(n),S(e.referencedMap.getValues(n))]))),e.exportedModulesMap&&(g=ee(Qe(e.exportedModulesMap.keys()).sort(Wn),(n=>{var t;const r=null==(t=e.oldExportedModulesMap)?void 0:t.get(n);return void 0===r?[x(n),S(e.exportedModulesMap.getValues(n))]:r?[x(n),S(r)]:void 0}))),e.semanticDiagnosticsPerFile)for(const i of Qe(e.semanticDiagnosticsPerFile.keys()).sort(Wn)){const n=e.semanticDiagnosticsPerFile.get(i);(y||(y=[])).push(n.length?[x(i),TK(n,T)]:x(i))}if(null==(a=e.affectedFilesPendingEmit)?void 0:a.size){const n=iK(e.compilerOptions),t=new Set;for(const r of Qe(e.affectedFilesPendingEmit.keys()).sort(Wn))if(ie(t,r)){const t=e.program.getSourceFileByPath(r);if(!t||!Mv(t,e.program))continue;const i=x(r),a=e.affectedFilesPendingEmit.get(r);(v||(v=[])).push(a===n?i:8===a?[i]:[i,a])}}if(e.changedFilesSet.size)for(const i of Qe(e.changedFilesSet.keys()).sort(Wn))(b||(b=[])).push(x(i));return xj({fileNames:l,fileInfos:m,root:u,options:L(e.compilerOptions),fileIdsList:_,referencedMap:h,exportedModulesMap:g,semanticDiagnosticsPerFile:y,affectedFilesPendingEmit:v,changeFileSet:b,emitSignatures:f,latestChangedDtsFile:c},n);function E(e){return T(So(e,o))}function T(n){return wo(Bo(s,n,e.program.getCanonicalFileName))}function x(e){let n=d.get(e);return void 0===n&&(l.push(T(e)),d.set(e,n=l.length)),n}function S(e){const n=Qe(e.keys(),x).sort(Un),t=n.join();let r=null==p?void 0:p.get(t);return void 0===r&&((_||(_=[])).push(n),(p||(p=new Map)).set(t,r=_.length)),r}function A(n,t){const r=e.program.getSourceFile(n);if(!e.program.getFileIncludeReasons().get(r.path).some((e=>0===e.kind)))return;if(!u.length)return u.push(t);const i=u[u.length-1],a=gn(i);if(a&&i[1]===t-1)return i[1]=t;if(a||1===u.length||i!==t-1)return u.push(t);const o=u[u.length-2];return bn(o)&&o===i-1?(u[u.length-2]=[o,t],u.length=u.length-1):u.push(t)}function L(e){let n;const{optionsNameMap:t}=DO();for(const r of Je(e).sort(Wn)){const i=t.get(r.toLowerCase());(null==i?void 0:i.affectsBuildInfo)&&((n||(n={}))[r]=EK(i,e[r],E))}return n}}(s,e),n=void 0,r=void 0,o=void 0;const c=()=>s,l=MK(c,a);return l.getState=c,l.saveEmitState=()=>function(e){const n=Nv(e.compilerOptions);return Nt.assert(!e.changedFilesSet.size||n),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:n?new Set(e.changedFilesSet):void 0}}(s),l.restoreEmitState=e=>function(e,n){e.affectedFilesPendingEmit=n.affectedFilesPendingEmit,e.seenEmittedFiles=n.seenEmittedFiles,e.programEmitPending=n.programEmitPending,e.emitSignatures=n.emitSignatures,e.outSignature=n.outSignature,e.latestChangedDtsFile=n.latestChangedDtsFile,e.hasChangedEmitSignature=n.hasChangedEmitSignature,n.changedFilesSet&&(e.changedFilesSet=n.changedFilesSet)}(s,e),l.hasChangedEmitSignature=()=>!!s.hasChangedEmitSignature,l.getAllDependencies=e=>$H.getAllDependencies(s,Nt.checkDefined(s.program),e),l.getSemanticDiagnostics=function(e,n){dK(s,e);if(Nv(Nt.checkDefined(s.program).getCompilerOptions()))return Nt.assert(!s.semanticDiagnosticsPerFile),Nt.checkDefined(s.program).getSemanticDiagnostics(e,n);if(e)return vK(s,e,n);for(;_(n););let t;for(const r of Nt.checkDefined(s.program).getSourceFiles())t=Ae(t,vK(s,r,n));return t||i},l.emit=function(n,t,r,a,o){1===e&&dK(s,n);const c=HH(l,n,t,r);if(c)return c;if(!n){if(1===e){let e,n,s=[],c=!1,l=[];for(;n=d(t,r,a,o);)c=c||n.result.emitSkipped,e=Ae(e,n.result.diagnostics),l=Ae(l,n.result.emittedFiles),s=Ae(s,n.result.sourceMaps);return{emitSkipped:c,diagnostics:e||i,emittedFiles:l,sourceMaps:s}}!function(e,n){var t;if(null==(t=e.affectedFilesPendingEmit)?void 0:t.size)n?e.affectedFilesPendingEmit.forEach(((n,t)=>{const r=7&n;r?e.affectedFilesPendingEmit.set(t,r):e.affectedFilesPendingEmit.delete(t)})):e.affectedFilesPendingEmit=void 0}(s,a)}return Nt.checkDefined(s.program).emit(n,u(t,o),r,a,o)},l.releaseProgram=()=>function(e){$H.releaseCache(e),e.program=void 0}(s),0===e?l.getSemanticDiagnosticsOfNextAffectedFile=_:1===e?(l.getSemanticDiagnosticsOfNextAffectedFile=_,l.emitNextAffectedFile=d,l.emitBuildInfo=function(e,n){if(s.buildInfoEmitPending){const r=Nt.checkDefined(s.program).emitBuildInfo(e||dn(t,t.writeFile),n);return s.buildInfoEmitPending=!1,r}return iH}):wn(),l;function d(e,n,r,i){var a,o,c,l,d;let _=uK(s,n,t);const p=iK(s.compilerOptions);let f,m=r?24&p:p;if(!_)if(Nv(s.compilerOptions)){if(!s.programEmitPending)return;if(m=s.programEmitPending,r&&(m&=24),!m)return;_=s.program}else{const i=function(e,n){var t;if(null==(t=e.affectedFilesPendingEmit)?void 0:t.size)return gp(e.affectedFilesPendingEmit,((t,r)=>{var i;const a=e.program.getSourceFileByPath(r);if(!a||!Mv(a,e.program))return void e.affectedFilesPendingEmit.delete(r);let o=aK(t,null==(i=e.seenEmittedFiles)?void 0:i.get(a.resolvedPath));return n&&(o&=24),o?{affectedFile:a,emitKind:o}:void 0}))}(s,r);if(!i){if(!s.buildInfoEmitPending)return;const r=s.program,i=r.emitBuildInfo(e||dn(t,t.writeFile),n);return s.buildInfoEmitPending=!1,{result:i,affected:r}}({affectedFile:_,emitKind:m}=i)}7&m&&(f=0),24&m&&(f=void 0===f?1:void 0),_===s.program&&(s.programEmitPending=s.changedFilesSet.size?aK(p,m):s.programEmitPending?aK(s.programEmitPending,m):void 0);const h=s.program.emit(_===s.program?void 0:_,u(e,i),n,f,i);if(_!==s.program){const e=_;s.seenAffectedFiles.add(e.resolvedPath),void 0!==s.affectedFilesIndex&&s.affectedFilesIndex++,s.buildInfoEmitPending=!0;const n=(null==(a=s.seenEmittedFiles)?void 0:a.get(e.resolvedPath))||0;(null!=(o=s.seenEmittedFiles)?o:s.seenEmittedFiles=new Map).set(e.resolvedPath,m|n);const t=aK((null==(c=s.affectedFilesPendingEmit)?void 0:c.get(e.resolvedPath))||p,m|n);t?(null!=(l=s.affectedFilesPendingEmit)?l:s.affectedFilesPendingEmit=new Map).set(e.resolvedPath,t):null==(d=s.affectedFilesPendingEmit)||d.delete(e.resolvedPath)}else s.changedFilesSet.clear();return{result:h,affected:_}}function u(e,n){return ox(s.compilerOptions)?(r,i,a,o,c,l)=>{var d,u,_,p,f,m,h;if(GD(r))if(Nv(s.compilerOptions)){if(s.compilerOptions.composite){const e=g(s.outSignature,void 0);if(!e)return;s.outSignature=e}}else{let e;if(Nt.assert(1===(null==c?void 0:c.length)),!n){const n=c[0],r=s.fileInfos.get(n.resolvedPath);if(r.signature===n.version){const a=LK(s.program,n,i,t,l);if((null==(d=null==l?void 0:l.diagnostics)?void 0:d.length)||(e=a),a!==n.version)if(t.storeFilesChangingSignatureDuringEmit&&(null!=(u=s.filesChangingSignature)?u:s.filesChangingSignature=new Set).add(n.resolvedPath),s.exportedModulesMap&&$H.updateExportedModules(s,n,n.exportedModulesFromDeclarationEmit),s.affectedFiles){void 0===(null==(_=s.oldSignatures)?void 0:_.get(n.resolvedPath))&&(null!=(p=s.oldSignatures)?p:s.oldSignatures=new Map).set(n.resolvedPath,r.signature||!1),r.signature=a}else r.signature=a,null==(f=s.oldExportedModulesMap)||f.clear()}}if(s.compilerOptions.composite){const n=c[0].resolvedPath;if(e=g(null==(m=s.emitSignatures)?void 0:m.get(n),e),!e)return;(null!=(h=s.emitSignatures)?h:s.emitSignatures=new Map).set(n,e)}}function g(e,n){const a=!e||vn(e)?e:e[0];if(null!=n||(n=CK(i,t,l)),n===a){if(e===a)return;l?l.differsOnlyInMap=!0:l={differsOnlyInMap:!0}}else s.hasChangedEmitSignature=!0,s.latestChangedDtsFile=r;return n}e?e(r,i,a,o,c,l):t.writeFile?t.writeFile(r,i,a,o,c,l):s.program.writeFile(r,i,a,o,c,l)}:e||dn(t,t.writeFile)}function _(e,n){for(;;){const r=uK(s,e,t);let i;if(!r)return;if(r!==s.program){const t=r;if(n&&n(t)||(i=vK(s,t,e)),s.seenAffectedFiles.add(t.resolvedPath),s.affectedFilesIndex++,s.buildInfoEmitPending=!0,!i)continue}else i=s.program.getSemanticDiagnostics(void 0,e),s.changedFilesSet.clear(),s.programEmitPending=iK(s.compilerOptions);return{result:i,affected:r}}}}function IK(e,n,t){var r,i;const a=(null==(r=e.affectedFilesPendingEmit)?void 0:r.get(n))||0;(null!=(i=e.affectedFilesPendingEmit)?i:e.affectedFilesPendingEmit=new Map).set(n,a|t)}function wK(e){return vn(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:vn(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function RK(e,n){return bn(e)?n:e[1]||8}function NK(e,n){return e||iK(n||{})}function DK(e,n,t){var r,a,o,s;const c=e.program,l=po(So(n,t.getCurrentDirectory())),d=lt(t.useCaseSensitiveFileNames());let u;const _=null==(r=c.fileNames)?void 0:r.map((function(e){return Co(e,l,d)}));let p;const f=c.latestChangedDtsFile?m(c.latestChangedDtsFile):void 0;if(bK(c)){const n=new Map;c.fileInfos.forEach(((e,t)=>{const r=h(t+1);n.set(r,vn(e)?{version:e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:e)})),u={fileInfos:n,compilerOptions:c.options?vM(c.options,m):{},latestChangedDtsFile:f,outSignature:c.outSignature,programEmitPending:void 0===c.pendingEmit?void 0:NK(c.pendingEmit,c.options),bundle:e.bundle}}else{p=null==(a=c.fileIdsList)?void 0:a.map((e=>new Set(e.map(h))));const e=new Map,n=(null==(o=c.options)?void 0:o.composite)&&!Nv(c.options)?new Map:void 0;c.fileInfos.forEach(((t,r)=>{const i=h(r+1),a=wK(t);e.set(i,a),n&&a.signature&&n.set(i,a.signature)})),null==(s=c.emitSignatures)||s.forEach((e=>{if(bn(e))n.delete(h(e));else{const t=h(e[0]);n.set(t,vn(e[1])||e[1].length?e[1]:[n.get(t)])}}));const t=c.affectedFilesPendingEmit?iK(c.options||{}):void 0;u={fileInfos:e,compilerOptions:c.options?vM(c.options,m):{},referencedMap:g(c.referencedMap),exportedModulesMap:g(c.exportedModulesMap),semanticDiagnosticsPerFile:c.semanticDiagnosticsPerFile&&nn(c.semanticDiagnosticsPerFile,(e=>h(bn(e)?e:e[0])),(e=>bn(e)?i:e[1])),hasReusableDiagnostic:!0,affectedFilesPendingEmit:c.affectedFilesPendingEmit&&nn(c.affectedFilesPendingEmit,(e=>h(bn(e)?e:e[0])),(e=>RK(e,t))),changedFilesSet:new Set(W(c.changeFileSet,h)),latestChangedDtsFile:f,emitSignatures:(null==n?void 0:n.size)?n:void 0}}return{getState:()=>u,saveEmitState:xn,restoreEmitState:xn,getProgram:wn,getProgramOrUndefined:Ln,releaseProgram:xn,getCompilerOptions:()=>u.compilerOptions,getSourceFile:wn,getSourceFiles:wn,getOptionsDiagnostics:wn,getGlobalDiagnostics:wn,getConfigFileParsingDiagnostics:wn,getSyntacticDiagnostics:wn,getDeclarationDiagnostics:wn,getSemanticDiagnostics:wn,emit:wn,getAllDependencies:wn,getCurrentDirectory:wn,emitNextAffectedFile:wn,getSemanticDiagnosticsOfNextAffectedFile:wn,emitBuildInfo:wn,close:xn,hasChangedEmitSignature:Sn};function m(e){return So(e,l)}function h(e){return _[e-1]}function g(e){if(!e)return;const n=$H.createManyToManyPathMap();return e.forEach((([e,t])=>n.set(h(e),p[t-1]))),n}}function OK(e,n,t){const r=po(So(n,t.getCurrentDirectory())),i=lt(t.useCaseSensitiveFileNames()),a=new Map;let o=0;const s=[];return e.fileInfos.forEach(((n,t)=>{const c=Co(e.fileNames[t],r,i),l=vn(n)?n:n.version;if(a.set(c,l),o<e.root.length){const n=e.root[o],r=t+1;gn(n)?n[0]<=r&&r<=n[1]&&(s.push(c),n[1]===r&&o++):n===r&&(s.push(c),o++)}})),{fileInfos:a,roots:s}}function MK(e,n){return{getState:wn,saveEmitState:xn,restoreEmitState:xn,getProgram:t,getProgramOrUndefined:()=>e().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:e=>t().getSourceFile(e),getSourceFiles:()=>t().getSourceFiles(),getOptionsDiagnostics:e=>t().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>t().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>n,getSyntacticDiagnostics:(e,n)=>t().getSyntacticDiagnostics(e,n),getDeclarationDiagnostics:(e,n)=>t().getDeclarationDiagnostics(e,n),getSemanticDiagnostics:(e,n)=>t().getSemanticDiagnostics(e,n),emit:(e,n,r,i,a)=>t().emit(e,n,r,i,a),emitBuildInfo:(e,n)=>t().emitBuildInfo(e,n),getAllDependencies:wn,getCurrentDirectory:()=>t().getCurrentDirectory(),close:xn};function t(){return Nt.checkDefined(e().program)}}var PK=E({"src/compiler/builder.ts"(){lq(),lq(),nK=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(nK||{}),tK=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(tK||{})}});function FK(e,n,t,r,i,a){return kK(0,SK(e,n,t,r,i,a))}function GK(e,n,t,r,i,a){return kK(1,SK(e,n,t,r,i,a))}function BK(e,n,t,r,i,a){const{newProgram:o,configFileParsingDiagnostics:s}=SK(e,n,t,r,i,a);return MK((()=>({program:o,compilerOptions:o.getCompilerOptions()})),s)}var UK=E({"src/compiler/builderPublic.ts"(){lq()}});function VK(e){return et(e,"/node_modules/.staging")?nt(e,"/.staging"):ce(Ea,(n=>rt(e,n)))?void 0:e}function jK(e){const n=_o(e);if(e.length===n)return!1;let t=e.indexOf(za,n);if(-1===t)return!1;let r=e.substring(n,t+1);const i=n>1||47!==e.charCodeAt(0);if(i&&0!==e.search(/[a-zA-Z]:/)&&0===r.search(/[a-zA-Z]\$\//)){if(t=e.indexOf(za,t+1),-1===t)return!1;r=e.substring(n+r.length,t+1)}if(i&&0!==r.search(/users\//i))return!0;for(let a=t+1,o=2;o>0;o--)if(a=e.indexOf(za,a)+1,0===a)return!1;return!0}function HK(e,n,t){let r,a,o;const s=un(),c=new Set,l=new Set,d=new Map,u=new Map;let _,p,f,m,h,g=!1;const y=Rn((()=>e.getCurrentDirectory())),v=e.getCachedDirectoryStructureHost(),b=new Map,E=WP(y(),e.getCanonicalFileName,e.getCompilationSettings()),T=new Map,x=zP(y(),e.getCanonicalFileName,e.getCompilationSettings(),E.getPackageJsonInfoCache()),S=[".ts",".tsx",".js",".jsx",".json"],A=new Map,L=new Map,C=new Map,I=n&&ko(So(n,y())),w=I&&e.toPath(I),R=void 0!==w?w.split(za).length:0,N=new Map;return{getModuleResolutionCache:()=>E,startRecordingFilesWithChangedResolutions:function(){r=[]},finishRecordingFilesWithChangedResolutions:function(){const e=r;return r=void 0,e},startCachingPerDirectoryResolution:function(){E.clearAllExceptPackageJsonInfoCache(),x.clearAllExceptPackageJsonInfoCache(),s.forEach(J),s.clear()},finishCachingPerDirectoryResolution:function(e,n){o=void 0,s.forEach(J),s.clear(),e!==n&&(null==e||e.getSourceFiles().forEach((e=>{var n,t,r;const a=om(e)&&null!=(t=null==(n=e.packageJsonLocations)?void 0:n.length)?t:0,o=null!=(r=u.get(e.path))?r:i;for(let i=o.length;i<a;i++)q(e.packageJsonLocations[i],!1);if(o.length>a)for(let i=a;i<o.length;i++)C.get(o[i]).files--;a?u.set(e.path,e.packageJsonLocations):u.delete(e.path)})),u.forEach(((n,t)=>{(null==e?void 0:e.getSourceFileByPath(t))||(n.forEach((e=>C.get(e).files--)),u.delete(t))})));L.forEach(((e,n)=>{0===e.refCount&&(L.delete(n),e.watcher.close())})),C.forEach(((e,n)=>{0===e.files&&0===e.resolutions&&(C.delete(n),e.watcher.close())})),g=!1},resolveModuleNameLiterals:function(e,n,r,i,a,o){return B({entries:e,containingFile:n,containingSourceFile:a,redirectedReference:r,options:i,reusedNames:o,perFileCache:b,loader:G(n,r,i),getResolutionWithResolvedFileName:D,shouldRetryResolution:e=>!e.resolvedModule||!nS(e.resolvedModule.extension),logChanges:t})},resolveTypeReferenceDirectiveReferences:function(n,t,r,i,a,o){var s;return B({entries:n,containingFile:t,containingSourceFile:a,redirectedReference:r,options:i,reusedNames:o,perFileCache:T,loader:RH(t,r,i,(null==(s=e.getCompilerHost)?void 0:s.call(e))||e,x),getResolutionWithResolvedFileName:O,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective})},resolveSingleModuleNameWithoutWatching:function(n,t){const r=e.toPath(t),i=b.get(r),a=null==i?void 0:i.get(n,void 0);return a&&!a.isInvalidated?a:F(n,t,e.getCompilationSettings())},removeResolutionsFromProjectReferenceRedirects:function(n){if(!oo(n,".json"))return;const t=e.getCurrentProgram();if(!t)return;const r=t.getResolvedProjectReferenceByPath(n);if(!r)return;r.commandLine.fileNames.forEach((n=>ee(e.toPath(n))))},removeResolutionsOfFile:ee,hasChangedAutomaticTypeDirectiveNames:()=>g,invalidateResolutionOfFile:function(n){ee(n);const t=g;ne(d.get(n),An)&&g&&!t&&e.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:re,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){Nt.assert(o===e||void 0===o),o=e},createHasInvalidatedResolutions:function(e){re();const n=a;return a=void 0,t=>e(t)||!!(null==n?void 0:n.has(t))||P(t)},isFileWithInvalidatedNonRelativeUnresolvedImports:P,updateTypeRootsWatch:function(){const n=e.getCompilationSettings();if(n.types)return void se();const t=CP(n,{directoryExists:de,getCurrentDirectory:y});t?qE(N,nn(t,(n=>e.toPath(n))),{createNewValue:le,onDeleteValue:PE}):se()},closeTypeRootsWatch:se,clear:function(){WE(L,Wj),WE(C,Wj),A.clear(),s.clear(),se(),b.clear(),T.clear(),d.clear(),c.clear(),l.clear(),f=void 0,m=void 0,h=void 0,p=void 0,_=void 0,E.clear(),x.clear(),E.update(e.getCompilationSettings()),x.update(e.getCompilationSettings()),u.clear(),g=!1}};function D(e){return e.resolvedModule}function O(e){return e.resolvedTypeReferenceDirective}function M(e,n){return!(void 0===e||n.length<=e.length)&&(pt(n,e)&&n[e.length]===za)}function P(e){if(!o)return!1;const n=o.get(e);return!!n&&!!n.length}function F(n,t,r,i,a){var o;const s=(null==(o=e.getCompilerHost)?void 0:o.call(e))||e,c=JP(n,t,r,s,E,i,a);if(!e.getGlobalCache)return c;const l=e.getGlobalCache();if(void 0!==l&&!rc(n)&&(!c.resolvedModule||!eS(c.resolvedModule.extension))){const{resolvedModule:t,failedLookupLocations:i,affectingLocations:a,resolutionDiagnostics:o}=jF(Nt.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,r,s,l,E);if(t)return c.resolvedModule=t,c.failedLookupLocations=TP(c.failedLookupLocations,i),c.affectingLocations=TP(c.affectingLocations,a),c.resolutionDiagnostics=TP(c.resolutionDiagnostics,o),c}return c}function G(e,n,t){return{nameAndMode:eH,resolve:(r,i)=>F(r,e,t,n,i)}}function B({entries:n,containingFile:t,containingSourceFile:i,redirectedReference:a,options:o,perFileCache:s,reusedNames:c,loader:l,getResolutionWithResolvedFileName:d,shouldRetryResolution:u,logChanges:_}){var p;const f=e.toPath(t),m=s.get(f)||s.set(f,BP()).get(f),h=[],g=_&&P(f),y=e.getCurrentProgram(),v=y&&y.getResolvedProjectReferenceToRedirect(t),E=v?!a||a.sourceFile.path!==v.sourceFile.path:!!a,T=BP();for(const S of n){const n=l.nameAndMode.getName(S),a=l.nameAndMode.getMode(S,i);let c=m.get(n,a);if(!T.has(n,a)&&E||!c||c.isInvalidated||g&&!rc(n)&&u(c)){const t=c;c=l.resolve(n,a),e.onDiscoveredSymlink&&KK(c)&&e.onDiscoveredSymlink(),m.set(n,a,c),K(n,c,f,d),t&&Y(t,f,d),_&&r&&!x(t,c)&&(r.push(f),_=!1)}else{const r=(null==(p=e.getCompilerHost)?void 0:p.call(e))||e;if(pP(o,r)&&!T.has(n,a)){const e=d(c);_P(r,s===b?(null==e?void 0:e.resolvedFileName)?e.packageId?Wo.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Wo.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Wo.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==e?void 0:e.resolvedFileName)?e.packageId?Wo.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Wo.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Wo.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,n,t,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&Ip(e.packageId))}}Nt.assert(void 0!==c&&!c.isInvalidated),T.set(n,a,!0),h.push(c)}return null==c||c.forEach((e=>T.set(l.nameAndMode.getName(e),l.nameAndMode.getMode(e,i),!0))),m.size()!==T.size()&&m.forEach(((e,n,t)=>{T.has(n,t)||(Y(e,f,d),m.delete(n,t))})),h;function x(e,n){if(e===n)return!0;if(!e||!n)return!1;const t=d(e),r=d(n);return t===r||!(!t||!r)&&t.resolvedFileName===r.resolvedFileName}}function U(e){return et(e,"/node_modules/@types")}function V(e,n){if(M(w,n)){e=eo(e)?Ao(e):So(e,y());const t=n.split(za),r=e.split(za);return Nt.assert(r.length===t.length,`FailedLookup: ${e} failedLookupLocationPath: ${n}`),t.length>R+1?{dir:r.slice(0,R+1).join(za),dirPath:t.slice(0,R+1).join(za)}:{dir:I,dirPath:w,nonRecursive:!1}}return j(po(So(e,y())),po(n))}function j(e,n){for(;iF(n);)e=po(e),n=po(n);if(Ko(n))return jK(po(n))?{dir:e,dirPath:n}:void 0;let t,r,i=!0;if(void 0!==w)for(;!M(n,w);){const a=po(n);if(a===n)break;i=!1,t=n,r=e,n=a,e=po(e)}return jK(n)?{dir:r||e,dirPath:t||n,nonRecursive:i}:void 0}function H(e){return so(e,S)}function K(n,t,r,i){var a,o;if(t.refCount)t.refCount++,Nt.assertIsDefined(t.files);else{t.refCount=1,Nt.assert(!(null==(a=t.files)?void 0:a.size)),rc(n)?W(t):s.add(n,t);const r=i(t);if(r&&r.resolvedFileName){const n=e.toPath(r.resolvedFileName);let i=d.get(n);i||d.set(n,i=new Set),i.add(t)}}(null!=(o=t.files)?o:t.files=new Set).add(r)}function W(n){Nt.assert(!!n.refCount);const{failedLookupLocations:t,affectingLocations:r}=n;if(!(null==t?void 0:t.length)&&!(null==r?void 0:r.length))return;(null==t?void 0:t.length)&&c.add(n);let i=!1;if(t){for(const n of t){const t=e.toPath(n),r=V(n,t);if(r){const{dir:e,dirPath:n,nonRecursive:a}=r;if(!H(t)){const e=A.get(t)||0;A.set(t,e+1)}n===w?(Nt.assert(!a),i=!0):X(e,n,a)}}i&&X(I,w,!0)}z(n,!(null==t?void 0:t.length))}function z(e,n){Nt.assert(!!e.refCount);const{affectingLocations:t}=e;if(null==t?void 0:t.length){n&&l.add(e);for(const e of t)q(e,!0)}}function q(n,t){const r=C.get(n);if(r)return void(t?r.resolutions++:r.files++);let i=n;if(e.realpath&&(i=e.realpath(n),n!==i)){const e=C.get(i);if(e)return t?e.resolutions++:e.files++,e.paths.add(n),void C.set(n,e)}const a=new Set;a.add(i);let o=jK(e.toPath(i))?e.watchAffectingFileLocation(i,((n,t)=>{null==v||v.addOrDeleteFile(n,e.toPath(i),t);const r=E.getPackageJsonInfoCache().getInternalMap();a.forEach((n=>{s.resolutions&&(null!=p?p:p=new Set).add(n),s.files&&(null!=_?_:_=new Set).add(n),null==r||r.delete(e.toPath(n))})),e.scheduleInvalidateResolutionsOfFailedLookupLocations()})):qK;const s={watcher:o!==qK?{close:()=>{o.close(),o=qK}}:o,resolutions:t?1:0,files:t?0:1,paths:a};C.set(i,s),n!==i&&(C.set(n,s),a.add(n))}function J(n,t){const r=e.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)?n.forEach((e=>z(e,!0))):n.forEach(W)}function X(e,n,t){const r=L.get(n);r?(Nt.assert(!!t===!!r.nonRecursive),r.refCount++):L.set(n,{watcher:Q(e,n,t),refCount:1,nonRecursive:t})}function Y(n,t,r){if(Nt.checkDefined(n.files).delete(t),n.refCount--,n.refCount)return;const i=r(n);if(i&&i.resolvedFileName){const t=e.toPath(i.resolvedFileName),r=d.get(t);(null==r?void 0:r.delete(n))&&!r.size&&d.delete(t)}const{failedLookupLocations:a,affectingLocations:o}=n;if(c.delete(n)){let n=!1;for(const t of a){const r=e.toPath(t),i=V(t,r);if(i){const{dirPath:e}=i,t=A.get(r);t&&(1===t?A.delete(r):(Nt.assert(t>1),A.set(r,t-1))),e===w?n=!0:$(e)}}n&&$(w)}else(null==o?void 0:o.length)&&l.delete(n);if(o)for(const e of o){C.get(e).resolutions--}}function $(e){L.get(e).refCount--}function Q(n,t,r){return e.watchDirectoryOfFailedLookupLocation(n,(n=>{const r=e.toPath(n);v&&v.addOrDeleteFileOrDirectory(n,r),te(r,t===r)}),r?0:1)}function Z(e,n,t){const r=e.get(n);r&&(r.forEach((e=>Y(e,n,t))),e.delete(n))}function ee(e){Z(b,e,D),Z(T,e,O)}function ne(e,n){if(!e)return!1;let t=!1;return e.forEach((e=>{if(!e.isInvalidated&&n(e)){e.isInvalidated=t=!0;for(const n of Nt.checkDefined(e.files))(null!=a?a:a=new Set).add(n),g=g||et(n,tH)}})),t}function te(n,t){if(t)(h||(h=new Set)).add(n);else{const t=VK(n);if(!t)return!1;if(n=t,e.fileIsOpen(n))return!1;const r=po(n);if(U(n)||Ko(n)||U(r)||Ko(r))(f||(f=new Set)).add(n),(m||(m=new Set)).add(n);else{if(!H(n)&&!A.has(n))return!1;if(jj(e.getCurrentProgram(),n))return!1;(f||(f=new Set)).add(n);const t=aF(n);t&&(m||(m=new Set)).add(t)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function re(){var n;let t=!1;if(_&&(null==(n=e.getCurrentProgram())||n.getSourceFiles().forEach((e=>{ce(e.packageJsonLocations,(e=>_.has(e)))&&((null!=a?a:a=new Set).add(e.path),t=!0)})),_=void 0),!f&&!m&&!h&&!p)return t;t=ne(c,ie)||t;const r=E.getPackageJsonInfoCache().getInternalMap();return r&&(f||m||h)&&r.forEach(((e,n)=>ae(n)?r.delete(n):void 0)),f=void 0,m=void 0,h=void 0,t=ne(l,oe)||t,p=void 0,t}function ie(n){var t;return!!oe(n)||!!(f||m||h)&&(null==(t=n.failedLookupLocations)?void 0:t.some((n=>ae(e.toPath(n)))))}function ae(e){return(null==f?void 0:f.has(e))||k((null==m?void 0:m.keys())||[],(n=>!!pt(e,n)||void 0))||k((null==h?void 0:h.keys())||[],(n=>!!M(n,e)||void 0))}function oe(e){var n;return!!p&&(null==(n=e.affectingLocations)?void 0:n.some((e=>p.has(e))))}function se(){WE(N,PE)}function le(n,t){return e.watchTypeRootsDirectory(t,(r=>{const i=e.toPath(r);v&&v.addOrDeleteFileOrDirectory(r,i),g=!0,e.onChangedAutomaticTypeDirectiveNames();const a=function(e,n){if(M(w,n))return w;const t=j(e,n);return t&&L.has(t.dirPath)?t.dirPath:void 0}(t,n);a&&te(i,a===i)}),1)}function de(n){const t=po(po(n)),r=e.toPath(t);return r===w||jK(r)}}function KK(e){var n,t;return!(!(null==(n=e.resolvedModule)?void 0:n.originalPath)&&!(null==(t=e.resolvedTypeReferenceDirective)?void 0:t.originalPath))}var WK,zK,qK,JK,XK,YK=E({"src/compiler/resolutionCache.ts"(){lq(),lq()}});function $K(e,n){const t=e===Aa&&WK?WK:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:lt(e.useCaseSensitiveFileNames)};if(!n)return n=>e.write(hH(n,t));const r=new Array(1);return n=>{r[0]=n,e.write(EH(r,t)+t.getNewLine()),r[0]=void 0}}function QK(e,n,t){return!(!e.clearScreen||t.preserveWatchOutput||t.extendedDiagnostics||t.diagnostics||!G(zK,n.code))&&(e.clearScreen(),!0)}function ZK(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202f"," "):(new Date).toLocaleTimeString()}function eW(e,n){return n?(n,t,r)=>{QK(e,n,r);let i=`[${yH(ZK(e),"\x1b[90m")}] `;i+=`${TH(n.messageText,e.newLine)}${t+t}`,e.write(i)}:(n,t,r)=>{let i="";QK(e,n,r)||(i+=t),i+=`${ZK(e)} - `,i+=`${TH(n.messageText,e.newLine)}${function(e,n){return G(zK,e.code)?n+n:n}(n,t)}`,e.write(i)}}function nW(e,n,t,r,i,a){const o=i;o.onUnRecoverableConfigFileDiagnostic=e=>SW(i,a,e);const s=JO(e,n,o,t,r);return o.onUnRecoverableConfigFileDiagnostic=void 0,s}function tW(e){return V(e,(e=>1===e.category))}function rW(e){return j(e,(e=>1===e.category)).map((e=>{if(void 0!==e.file)return`${e.file.fileName}`})).map((n=>{if(void 0===n)return;const t=D(e,(e=>void 0!==e.file&&e.file.fileName===n));if(void 0!==t){const{line:e}=Ss(t.file,t.start);return{fileName:n,line:e+1}}}))}function iW(e){return 1===e?Wo.Found_1_error_Watching_for_file_changes:Wo.Found_0_errors_Watching_for_file_changes}function aW(e,n){const t=yH(":"+e.line,"\x1b[90m");return to(e.fileName)&&to(n)?Bo(n,e.fileName,!1)+t:e.fileName+t}function oW(e,n,t,r){if(0===e)return"";const i=n.filter((e=>void 0!==e)),a=i.map((e=>`${e.fileName}:${e.line}`)).filter(((e,n,t)=>t.indexOf(e)===n)),o=i[0]&&aW(i[0],r.getCurrentDirectory()),s=1===e?wT(void 0!==n[0]?Wo.Found_1_error_in_1:Wo.Found_1_error,e,o):wT(0===a.length?Wo.Found_0_errors:1===a.length?Wo.Found_0_errors_in_the_same_file_starting_at_Colon_1:Wo.Found_0_errors_in_1_files,e,1===a.length?o:a.length),c=a.length>1?function(e,n){const t=e.filter(((e,n,t)=>n===t.findIndex((n=>(null==n?void 0:n.fileName)===(null==e?void 0:e.fileName)))));if(0===t.length)return"";const r=e=>Math.log(e)*Math.LOG10E+1,i=t.map((n=>[n,V(e,(e=>e.fileName===n.fileName))])),a=i.reduce(((e,n)=>Math.max(e,n[1]||0)),0),o=Wo.Errors_Files.message,s=o.split(" ")[0].length,c=Math.max(s,r(a)),l=Math.max(r(a)-s,0);let d="";return d+=" ".repeat(l)+o+"\n",i.forEach((e=>{const[t,r]=e,i=Math.log(r)*Math.LOG10E+1|0,a=i<c?" ".repeat(c-i):"",o=aW(t,n.getCurrentDirectory());d+=`${a}${r} ${o}\n`})),d}(i,r):"";return`${t}${TH(s.messageText,t)}${t}${t}${c}`}function sW(e){return!!e.getState}function cW(e,n){const t=e.getCompilerOptions();t.explainFiles?lW(sW(e)?e.getProgram():e,n):(t.listFiles||t.listFilesOnly)&&A(e.getSourceFiles(),(e=>{n(e.fileName)}))}function lW(e,n){var t,r;const i=e.getFileIncludeReasons(),a=n=>Uo(n,e.getCurrentDirectory(),e.getCanonicalFileName);for(const o of e.getSourceFiles())n(`${fW(o,a)}`),null==(t=i.get(o.path))||t.forEach((t=>n(` ${pW(e,t,a).messageText}`))),null==(r=dW(o,a))||r.forEach((e=>n(` ${e.messageText}`)))}function dW(e,n){var t;let r;if(e.path!==e.resolvedPath&&(null!=r?r:r=[]).push(NT(void 0,Wo.File_is_output_of_project_reference_source_0,fW(e.originalFileName,n))),e.redirectInfo&&(null!=r?r:r=[]).push(NT(void 0,Wo.File_redirects_to_file_0,fW(e.redirectInfo.redirectTarget,n))),om(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(null!=r?r:r=[]).push(NT(void 0,Wo.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,fW(Ge(e.packageJsonLocations),n)));break;case 1:e.packageJsonScope?(null!=r?r:r=[]).push(NT(void 0,e.packageJsonScope.contents.packageJsonContent.type?Wo.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:Wo.File_is_CommonJS_module_because_0_does_not_have_field_type,fW(Ge(e.packageJsonLocations),n))):(null==(t=e.packageJsonLocations)?void 0:t.length)&&(null!=r?r:r=[]).push(NT(void 0,Wo.File_is_CommonJS_module_because_package_json_was_not_found))}return r}function uW(e,n){var t;const r=e.getCompilerOptions().configFile;if(!(null==(t=null==r?void 0:r.configFileSpecs)?void 0:t.validatedFilesSpec))return;const i=e.getCanonicalFileName(n),a=po(So(r.fileName,e.getCurrentDirectory()));return D(r.configFileSpecs.validatedFilesSpec,(n=>e.getCanonicalFileName(So(n,a))===i))}function _W(e,n){var t,r;const i=e.getCompilerOptions().configFile;if(!(null==(t=null==i?void 0:i.configFileSpecs)?void 0:t.validatedIncludeSpecs))return;if(i.configFileSpecs.isDefaultIncludeSpec)return!0;const a=oo(n,".json"),o=po(So(i.fileName,e.getCurrentDirectory())),s=e.useCaseSensitiveFileNames();return D(null==(r=null==i?void 0:i.configFileSpecs)?void 0:r.validatedIncludeSpecs,(e=>{if(a&&!et(e,".json"))return!1;const t=kx(e,o,"files");return!!t&&Nx(`(${t})$`,s).test(n)}))}function pW(e,n,t){var r,i;const a=e.getCompilerOptions();if(MH(n)){const r=FH((n=>e.getSourceFileByPath(n)),n),i=PH(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`;let a;switch(Nt.assert(PH(r)||3===n.kind,"Only synthetic references are imports"),n.kind){case 3:a=PH(r)?r.packageId?Wo.Imported_via_0_from_file_1_with_packageId_2:Wo.Imported_via_0_from_file_1:r.text===u_?r.packageId?Wo.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:Wo.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?Wo.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:Wo.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:Nt.assert(!r.packageId),a=Wo.Referenced_via_0_from_file_1;break;case 5:a=r.packageId?Wo.Type_library_referenced_via_0_from_file_1_with_packageId_2:Wo.Type_library_referenced_via_0_from_file_1;break;case 7:Nt.assert(!r.packageId),a=Wo.Library_referenced_via_0_from_file_1;break;default:Nt.assertNever(n)}return NT(void 0,a,i,fW(r.file,t),r.packageId&&Ip(r.packageId))}switch(n.kind){case 0:if(!(null==(r=a.configFile)?void 0:r.configFileSpecs))return NT(void 0,Wo.Root_file_specified_for_compilation);const o=So(e.getRootFileNames()[n.index],e.getCurrentDirectory());if(uW(e,o))return NT(void 0,Wo.Part_of_files_list_in_tsconfig_json);const s=_W(e,o);return vn(s)?NT(void 0,Wo.Matched_by_include_pattern_0_in_1,s,fW(a.configFile,t)):NT(void 0,s?Wo.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:Wo.Root_file_specified_for_compilation);case 1:case 2:const c=2===n.kind,l=Nt.checkDefined(null==(i=e.getResolvedProjectReferences())?void 0:i[n.index]);return NT(void 0,Nv(a)?c?Wo.Output_from_referenced_project_0_included_because_1_specified:Wo.Source_from_referenced_project_0_included_because_1_specified:c?Wo.Output_from_referenced_project_0_included_because_module_is_specified_as_none:Wo.Source_from_referenced_project_0_included_because_module_is_specified_as_none,fW(l.sourceFile.fileName,t),a.outFile?"--outFile":"--out");case 8:return NT(void 0,a.types?n.packageId?Wo.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:Wo.Entry_point_of_type_library_0_specified_in_compilerOptions:n.packageId?Wo.Entry_point_for_implicit_type_library_0_with_packageId_1:Wo.Entry_point_for_implicit_type_library_0,n.typeReference,n.packageId&&Ip(n.packageId));case 6:if(void 0!==n.index)return NT(void 0,Wo.Library_0_specified_in_compilerOptions,a.lib[n.index]);const d=gp(ZD.type,((e,n)=>e===HT(a)?n:void 0));return NT(void 0,d?Wo.Default_library_for_target_0:Wo.Default_library,d);default:Nt.assertNever(n)}}function fW(e,n){const t=vn(e)?e:e.fileName;return n?n(t):t}function mW(e,n,t,r,a,o,s,c){const l=!!e.getCompilerOptions().listFilesOnly,d=e.getConfigFileParsingDiagnostics().slice(),u=d.length;Ae(d,e.getSyntacticDiagnostics(void 0,o)),d.length===u&&(Ae(d,e.getOptionsDiagnostics(o)),l||(Ae(d,e.getGlobalDiagnostics(o)),d.length===u&&Ae(d,e.getSemanticDiagnostics(void 0,o))));const _=l?{emitSkipped:!0,diagnostics:i}:e.emit(void 0,a,o,s,c),{emittedFiles:p,diagnostics:f}=_;Ae(d,f);const m=ic(d);if(m.forEach(n),t){const n=e.getCurrentDirectory();A(p,(e=>{const r=So(e,n);t(`TSFILE: ${r}`)})),cW(e,t)}return r&&r(tW(m),rW(m)),{emitResult:_,diagnostics:m}}function hW(e,n,t,r,i,a,o,s){const{emitResult:c,diagnostics:l}=mW(e,n,t,r,i,a,o,s);return c.emitSkipped&&l.length>0?1:l.length>0?2:0}function gW(e=Aa,n){return{onWatchStatusChange:n||eW(e),watchFile:dn(e,e.watchFile)||JK,watchDirectory:dn(e,e.watchDirectory)||JK,setTimeout:dn(e,e.setTimeout)||xn,clearTimeout:dn(e,e.clearTimeout)||xn}}function yW(e,n){const t=e.trace?n.extendedDiagnostics?2:n.diagnostics?1:0:0,r=0!==t?n=>e.trace(n):xn,i=Hj(e,t,r);return i.writeLog=r,i}function vW(e,n,t=e){const r=e.useCaseSensitiveFileNames(),i={getSourceFile:dH(((n,t)=>t?e.readFile(n,t):i.readFile(n)),n,void 0),getDefaultLibLocation:dn(e,e.getDefaultLibLocation),getDefaultLibFileName:n=>e.getDefaultLibFileName(n),writeFile:uH(((n,t,r)=>e.writeFile(n,t,r)),(n=>e.createDirectory(n)),(n=>e.directoryExists(n))),getCurrentDirectory:Rn((()=>e.getCurrentDirectory())),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:lt(r),getNewLine:()=>_E(n()),fileExists:n=>e.fileExists(n),readFile:n=>e.readFile(n),trace:dn(e,e.trace),directoryExists:dn(t,t.directoryExists),getDirectories:dn(t,t.getDirectories),realpath:dn(e,e.realpath),getEnvironmentVariable:dn(e,e.getEnvironmentVariable)||(()=>""),createHash:dn(e,e.createHash),readDirectory:dn(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit};return i}function bW(e,n){if(n.match(xB)){let e=n.length,t=e;for(let r=e-1;r>=0;r--){const i=n.charCodeAt(r);switch(i){case 10:r&&13===n.charCodeAt(r-1)&&r--;case 13:break;default:if(i<127||!Cs(i)){t=r;continue}}const a=n.substring(t,e);if(a.match(SB)){n=n.substring(0,t);break}if(!a.match(AB))break;e=t}}return(e.createHash||Ca)(n)}function EW(e){const n=e.getSourceFile;e.getSourceFile=(...t)=>{const r=n.call(e,...t);return r&&(r.version=bW(e,r.text)),r}}function TW(e,n){const t=Rn((()=>po(Ao(e.getExecutingFilePath()))));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Rn((()=>e.getCurrentDirectory())),getDefaultLibLocation:t,getDefaultLibFileName:e=>Eo(t(),ac(e)),fileExists:n=>e.fileExists(n),readFile:(n,t)=>e.readFile(n,t),directoryExists:n=>e.directoryExists(n),getDirectories:n=>e.getDirectories(n),readDirectory:(n,t,r,i,a)=>e.readDirectory(n,t,r,i,a),realpath:dn(e,e.realpath),getEnvironmentVariable:dn(e,e.getEnvironmentVariable),trace:n=>e.write(n+e.newLine),createDirectory:n=>e.createDirectory(n),writeFile:(n,t,r)=>e.writeFile(n,t,r),createHash:dn(e,e.createHash),createProgram:n||GK,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:dn(e,e.now)}}function xW(e=Aa,n,t,r){const i=n=>e.write(n+e.newLine),a=TW(e,n);return ln(a,gW(e,r)),a.afterProgramCreate=e=>{const n=e.getCompilerOptions(),r=_E(n);mW(e,t,i,(e=>a.onWatchStatusChange(wT(iW(e),e),r,n,e)))},a}function SW(e,n,t){n(t),e.exit(1)}function AW({configFileName:e,optionsToExtend:n,watchOptionsToExtend:t,extraFileExtensions:r,system:i,createProgram:a,reportDiagnostic:o,reportWatchStatus:s}){const c=o||$K(i),l=xW(i,a,c,s);return l.onUnRecoverableConfigFileDiagnostic=e=>SW(i,c,e),l.configFileName=e,l.optionsToExtend=n,l.watchOptionsToExtend=t,l.extraFileExtensions=r,l}function LW({rootFiles:e,options:n,watchOptions:t,projectReferences:r,system:i,createProgram:a,reportDiagnostic:o,reportWatchStatus:s}){const c=xW(i,a,o||$K(i),s);return c.rootFiles=e,c.options=n,c.watchOptions=t,c.projectReferences=r,c}function CW(e){const n=e.system||Aa,t=e.host||(e.host=wW(e.options,n)),r=RW(e),i=hW(r,e.reportDiagnostic||$K(n),(e=>t.trace&&t.trace(e)),e.reportErrorSummary||e.options.pretty?(e,r)=>n.write(oW(e,r,n.newLine,t)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),i}var kW=E({"src/compiler/watch.ts"(){lq(),WK=Aa?{getCurrentDirectory:()=>Aa.getCurrentDirectory(),getNewLine:()=>Aa.newLine,getCanonicalFileName:lt(Aa.useCaseSensitiveFileNames)}:void 0,zK=[Wo.Starting_compilation_in_watch_mode.code,Wo.File_change_detected_Starting_incremental_compilation.code],qK={close:xn},JK=()=>qK,XK={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation"}}});function IW(e,n){const r=oj(e);if(!r)return;let i;if(n.getBuildInfo)i=n.getBuildInfo(r,e.configFilePath);else{const e=n.readFile(r);if(!e)return;i=Aj(r,e)}return i&&i.version===t&&i.program?DK(i,r,n):void 0}function wW(e,n=Aa){const t=_H(e,void 0,n);return t.createHash=dn(n,n.createHash),t.storeFilesChangingSignatureDuringEmit=n.storeFilesChangingSignatureDuringEmit,EW(t),pH(t,(e=>Co(e,t.getCurrentDirectory(),t.getCanonicalFileName))),t}function RW({rootNames:e,options:n,configFileParsingDiagnostics:t,projectReferences:r,host:i,createProgram:a}){return(a=a||GK)(e,n,i=i||wW(n),IW(n,i),t,r)}function NW(e,n,t,r,i,a,o,s){return gn(e)?LW({rootFiles:e,options:n,watchOptions:s,projectReferences:o,system:t,createProgram:r,reportDiagnostic:i,reportWatchStatus:a}):AW({configFileName:e,optionsToExtend:n,watchOptionsToExtend:o,extraFileExtensions:s,system:t,createProgram:r,reportDiagnostic:i,reportWatchStatus:a})}function DW(e){let n,t,r,i,a,o,s,c,l=e.extendedConfigCache,d=!1;const u=new Map;let _,p=!1;const f=e.useCaseSensitiveFileNames(),m=e.getCurrentDirectory(),{configFileName:h,optionsToExtend:g={},watchOptionsToExtend:y,extraFileExtensions:v,createProgram:b}=e;let E,T,{rootFiles:x,options:S,watchOptions:A,projectReferences:L}=e,C=!1,k=!1;const I=void 0===h?void 0:Oj(e,m,f),w=I||e,R=WH(e,w);let N=z();h&&e.configFileParsingResult&&(ae(e.configFileParsingResult),N=z()),$(Wo.Starting_compilation_in_watch_mode),h&&!e.configFileParsingResult&&(N=_E(g),Nt.assert(!x),ie(),N=z()),Nt.assert(S),Nt.assert(x);const{watchFile:D,watchDirectory:O,writeLog:M}=yW(e,S),P=lt(f);let F;M(`Current directory: ${m} CaseSensitiveFileNames: ${f}`),h&&(F=D(h,(function(){Nt.assert(!!h),t=2,ne()}),2e3,A,XK.ConfigFile));const G=vW(e,(()=>S),w);EW(G);const B=G.getSourceFile;G.getSourceFile=(e,...n)=>X(e,q(e),...n),G.getSourceFileByPath=X,G.getNewLine=()=>N,G.fileExists=function(e){const n=q(e);if(J(u.get(n)))return!1;return w.fileExists(e)},G.onReleaseOldSourceFile=function(e,n,t){const r=u.get(e.resolvedPath);void 0!==r&&(J(r)?(_||(_=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),u.delete(e.resolvedPath),t||U.removeResolutionsOfFile(e.path)))},G.onReleaseParsedCommandLine=function(e){var n;const t=q(e),r=null==s?void 0:s.get(t);if(!r)return;s.delete(t),r.watchedDirectories&&WE(r.watchedDirectories,Wj);null==(n=r.watcher)||n.close(),Pj(t,c)},G.toPath=q,G.getCompilationSettings=()=>S,G.useSourceOfProjectReferenceRedirect=dn(e,e.useSourceOfProjectReferenceRedirect),G.watchDirectoryOfFailedLookupLocation=(e,n,t)=>O(e,n,t,A,XK.FailedLookupLocations),G.watchAffectingFileLocation=(e,n)=>D(e,n,2e3,A,XK.AffectingFileLocation),G.watchTypeRootsDirectory=(e,n,t)=>O(e,n,t,A,XK.TypeRoots),G.getCachedDirectoryStructureHost=()=>I,G.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!e.setTimeout||!e.clearTimeout)return U.invalidateResolutionsOfFailedLookupLocations();const n=Z();M("Scheduling invalidateFailedLookup"+(n?", Cancelled earlier one":"")),o=e.setTimeout(ee,250)},G.onInvalidatedResolution=ne,G.onChangedAutomaticTypeDirectiveNames=ne,G.fileIsOpen=Sn,G.getCurrentProgram=K,G.writeLog=M,G.getParsedCommandLine=oe;const U=HK(G,h?po(So(h,m)):m,!1);G.resolveModuleNameLiterals=dn(e,e.resolveModuleNameLiterals),G.resolveModuleNames=dn(e,e.resolveModuleNames),G.resolveModuleNameLiterals||G.resolveModuleNames||(G.resolveModuleNameLiterals=U.resolveModuleNameLiterals.bind(U)),G.resolveTypeReferenceDirectiveReferences=dn(e,e.resolveTypeReferenceDirectiveReferences),G.resolveTypeReferenceDirectives=dn(e,e.resolveTypeReferenceDirectives),G.resolveTypeReferenceDirectiveReferences||G.resolveTypeReferenceDirectives||(G.resolveTypeReferenceDirectiveReferences=U.resolveTypeReferenceDirectiveReferences.bind(U)),G.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?dn(e,e.getModuleResolutionCache):()=>U.getModuleResolutionCache();const V=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?dn(e,e.hasInvalidatedResolutions)||An:Sn;return n=IW(S,G),W(),_e(),h&&fe(q(h),S,A,XK.ExtendedConfigFile),h?{getCurrentProgram:H,getProgram:re,close:j}:{getCurrentProgram:H,getProgram:re,updateRootFileNames:function(e){Nt.assert(!h,"Cannot update root file names with config file watch mode"),x=e,ne()},close:j};function j(){Z(),U.clear(),WE(u,(e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),F&&(F.close(),F=void 0),null==l||l.clear(),l=void 0,c&&(WE(c,Wj),c=void 0),i&&(WE(i,Wj),i=void 0),r&&(WE(r,PE),r=void 0),s&&(WE(s,(e=>{var n;null==(n=e.watcher)||n.close(),e.watcher=void 0,e.watchedDirectories&&WE(e.watchedDirectories,Wj),e.watchedDirectories=void 0})),s=void 0)}function H(){return n}function K(){return n&&n.getProgramOrUndefined()}function W(){M("Synchronizing program"),Nt.assert(S),Nt.assert(x),Z();const t=H();p&&(N=z(),t&&_p(t.getCompilerOptions(),S)&&U.clear());const i=U.createHasInvalidatedResolutions(V),{originalReadFile:a,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,readFileWithCache:f}=pH(G,q);return GH(K(),x,S,(e=>function(e,n){const t=u.get(e);if(!t)return;if(t.version)return t.version;const r=n(e);return void 0!==r?bW(G,r):void 0}(e,f)),(e=>G.fileExists(e)),i,Q,oe,L)?k&&(d&&$(Wo.File_change_detected_Starting_incremental_compilation),n=b(void 0,void 0,G,n,T,L),k=!1):(d&&$(Wo.File_change_detected_Starting_incremental_compilation),function(e){M("CreatingProgramWith::"),M(` roots: ${JSON.stringify(x)}`),M(` options: ${JSON.stringify(S)}`),L&&M(` projectReferences: ${JSON.stringify(L)}`);const t=p||!K();p=!1,k=!1,U.startCachingPerDirectoryResolution(),G.hasInvalidatedResolutions=e,G.hasChangedAutomaticTypeDirectiveNames=Q;const i=K();n=b(x,S,G,n,T,L),U.finishCachingPerDirectoryResolution(n.getProgram(),i),Bj(n.getProgram(),r||(r=new Map),de),t&&U.updateTypeRootsWatch();if(_){for(const e of _)r.has(e)||u.delete(e);_=void 0}}(i)),d=!1,e.afterProgramCreate&&t!==n&&e.afterProgramCreate(n),G.readFile=a,G.fileExists=o,G.directoryExists=s,G.createDirectory=c,G.writeFile=l,n}function z(){return _E(S||g)}function q(e){return Co(e,m,P)}function J(e){return"boolean"===typeof e}function X(e,n,t,r,i){const a=u.get(n);if(!J(a)){if(void 0===a||i||function(e){return"boolean"===typeof e.version}(a)){const i=B(e,t,r);if(a)i?(a.sourceFile=i,a.version=i.version,a.fileWatcher||(a.fileWatcher=se(n,e,ce,250,A,XK.SourceFile))):(a.fileWatcher&&a.fileWatcher.close(),u.set(n,!1));else if(i){const t=se(n,e,ce,250,A,XK.SourceFile);u.set(n,{sourceFile:i,version:i.version,fileWatcher:t})}else u.set(n,!1);return i}return a.sourceFile}}function Y(e){const n=u.get(e);void 0!==n&&(J(n)?u.set(e,{version:!1}):n.version=!1)}function $(n){e.onWatchStatusChange&&e.onWatchStatusChange(wT(n),N,S||g)}function Q(){return U.hasChangedAutomaticTypeDirectiveNames()}function Z(){return!!o&&(e.clearTimeout(o),o=void 0,!0)}function ee(){o=void 0,U.invalidateResolutionsOfFailedLookupLocations()&&ne()}function ne(){e.setTimeout&&e.clearTimeout&&(a&&e.clearTimeout(a),M("Scheduling update"),a=e.setTimeout(te,250))}function te(){a=void 0,d=!0,re()}function re(){switch(t){case 1:mr.logStartUpdateProgram("PartialConfigReload"),function(){M("Reloading new file names and options"),Nt.assert(S),Nt.assert(h),t=0,x=zM(S.configFile.configFileSpecs,So(po(h),m),S,R,v),wM(x,So(h,m),S.configFile.configFileSpecs,T,C)&&(k=!0);W()}();break;case 2:mr.logStartUpdateProgram("FullConfigReload"),function(){Nt.assert(h),M(`Reloading config file: ${h}`),t=0,I&&I.clearCache();ie(),p=!0,W(),_e(),fe(q(h),S,A,XK.ExtendedConfigFile)}();break;default:mr.logStartUpdateProgram("SynchronizeProgram"),W()}return mr.logStopUpdateProgram("Done"),H()}function ie(){Nt.assert(h),ae(JO(h,g,R,l||(l=new Map),y,v))}function ae(e){x=e.fileNames,S=e.options,A=e.watchOptions,L=e.projectReferences,E=e.wildcardDirectories,T=BH(e).slice(),C=IM(e.raw),k=!0}function oe(n){const t=q(n);let r=null==s?void 0:s.get(t);if(r){if(!r.reloadLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&1===r.reloadLevel&&!e.getParsedCommandLine){M("Reloading new file names and options"),Nt.assert(S);const e=zM(r.parsedCommandLine.options.configFile.configFileSpecs,So(po(n),m),S,R);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:e},r.reloadLevel=void 0,r.parsedCommandLine}}M(`Loading config file: ${n}`);const i=e.getParsedCommandLine?e.getParsedCommandLine(n):function(e){const n=R.onUnRecoverableConfigFileDiagnostic;R.onUnRecoverableConfigFileDiagnostic=xn;const t=JO(e,void 0,R,l||(l=new Map),y);return R.onUnRecoverableConfigFileDiagnostic=n,t}(n);return r?(r.parsedCommandLine=i,r.reloadLevel=void 0):(s||(s=new Map)).set(t,r={parsedCommandLine:i}),function(e,n,t){var r,i,a,o,c;t.watcher||(t.watcher=D(e,((t,r)=>{le(e,n,r);const i=null==s?void 0:s.get(n);i&&(i.reloadLevel=2),U.removeResolutionsFromProjectReferenceRedirects(n),ne()}),2e3,(null==(r=t.parsedCommandLine)?void 0:r.watchOptions)||A,XK.ConfigFileOfReferencedProject)),(null==(i=t.parsedCommandLine)?void 0:i.wildcardDirectories)?Uj(t.watchedDirectories||(t.watchedDirectories=new Map),new Map(Object.entries(null==(a=t.parsedCommandLine)?void 0:a.wildcardDirectories)),((r,i)=>{var a;return O(r,(t=>{const i=q(t);I&&I.addOrDeleteFileOrDirectory(t,i),Y(i);const a=null==s?void 0:s.get(n);(null==a?void 0:a.parsedCommandLine)&&(Vj({watchedDirPath:q(r),fileOrDirectory:t,fileOrDirectoryPath:i,configFileName:e,options:a.parsedCommandLine.options,program:a.parsedCommandLine.fileNames,currentDirectory:m,useCaseSensitiveFileNames:f,writeLog:M,toPath:q})||2!==a.reloadLevel&&(a.reloadLevel=1,ne()))}),i,(null==(a=t.parsedCommandLine)?void 0:a.watchOptions)||A,XK.WildcardDirectoryOfReferencedProject)})):t.watchedDirectories&&(WE(t.watchedDirectories,Wj),t.watchedDirectories=void 0);fe(n,null==(o=t.parsedCommandLine)?void 0:o.options,(null==(c=t.parsedCommandLine)?void 0:c.watchOptions)||A,XK.ExtendedConfigOfReferencedProject)}(n,t,r),i}function se(e,n,t,r,i,a){return D(n,((n,r)=>t(n,r,e)),r,i,a)}function ce(e,n,t){le(e,t,n),2===n&&u.has(t)&&U.invalidateResolutionOfFile(t),Y(t),ne()}function le(e,n,t){I&&I.addOrDeleteFile(e,n,t)}function de(e){return(null==s?void 0:s.has(e))?qK:se(e,e,ue,500,A,XK.MissingFile)}function ue(e,n,t){le(e,t,n),0===n&&r.has(t)&&(r.get(t).close(),r.delete(t),Y(t),ne())}function _e(){E?Uj(i||(i=new Map),new Map(Object.entries(E)),pe):i&&WE(i,Wj)}function pe(e,n){return O(e,(n=>{Nt.assert(h),Nt.assert(S);const r=q(n);I&&I.addOrDeleteFileOrDirectory(n,r),Y(r),Vj({watchedDirPath:q(e),fileOrDirectory:n,fileOrDirectoryPath:r,configFileName:h,extraFileExtensions:v,options:S,program:H()||x,currentDirectory:m,useCaseSensitiveFileNames:f,writeLog:M,toPath:q})||2!==t&&(t=1,ne())}),n,A,XK.WildcardDirectory)}function fe(e,n,r,i){Nt.assert(h),Mj(e,n,c||(c=new Map),((e,n)=>D(e,((r,i)=>{var a;le(e,n,i),l&&Fj(l,n,q);const o=null==(a=c.get(n))?void 0:a.projects;(null==o?void 0:o.size)&&o.forEach((e=>{if(q(h)===e)t=2;else{const n=null==s?void 0:s.get(e);n&&(n.reloadLevel=2),U.removeResolutionsFromProjectReferenceRedirects(e)}ne()}))}),2e3,r,i)),q)}}var OW,MW=E({"src/compiler/watchPublic.ts"(){lq(),lq()}});function PW(e){return oo(e,".json")?e:Eo(e,"tsconfig.json")}var FW,GW,BW,UW=E({"src/compiler/tsbuild.ts"(){lq(),OW=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(OW||{})}});function VW(e,n){return function(e,n,t){const r=e.get(n);let i;return r||(i=t(),e.set(n,i)),r||i}(e,n,(()=>new Map))}function jW(e){return e.now?e.now():new Date}function HW(e){return!!e&&!!e.buildOrder}function KW(e){return HW(e)?e.buildOrder:e}function WW(e,n){return t=>{let r=n?`[${yH(ZK(e),"\x1b[90m")}] `:`${ZK(e)} - `;r+=`${TH(t.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function zW(e,n,t,r){const i=TW(e,n);return i.getModifiedTime=e.getModifiedTime?n=>e.getModifiedTime(n):Ln,i.setModifiedTime=e.setModifiedTime?(n,t)=>e.setModifiedTime(n,t):xn,i.deleteFile=e.deleteFile?n=>e.deleteFile(n):xn,i.reportDiagnostic=t||$K(e),i.reportSolutionBuilderStatus=r||WW(e),i.now=dn(e,e.now),i}function qW(e=Aa,n,t,r,i){const a=zW(e,n,t,r);return a.reportErrorSummary=i,a}function JW(e=Aa,n,t,r,i){const a=zW(e,n,t,r);return ln(a,gW(e,i)),a}function XW(e,n,t){return zz(!1,e,n,t)}function YW(e,n,t,r){return zz(!0,e,n,t,r)}function $W(e,n,t,r,i){const a=n,o=n,s=function(e){const n={};return QD.forEach((t=>{ze(e,t.name)&&(n[t.name]=e[t.name])})),n}(r),c=vW(a,(()=>f.projectCompilerOptions));let l,d;EW(c),c.getParsedCommandLine=e=>tz(f,e,ZW(f,e)),c.resolveModuleNameLiterals=dn(a,a.resolveModuleNameLiterals),c.resolveTypeReferenceDirectiveReferences=dn(a,a.resolveTypeReferenceDirectiveReferences),c.resolveModuleNames=dn(a,a.resolveModuleNames),c.resolveTypeReferenceDirectives=dn(a,a.resolveTypeReferenceDirectives),c.getModuleResolutionCache=dn(a,a.getModuleResolutionCache),c.resolveModuleNameLiterals||c.resolveModuleNames||(l=WP(c.getCurrentDirectory(),c.getCanonicalFileName),c.resolveModuleNameLiterals=(e,n,t,r,i)=>NH(e,n,t,r,i,a,l,IH),c.getModuleResolutionCache=()=>l),c.resolveTypeReferenceDirectiveReferences||c.resolveTypeReferenceDirectives||(d=zP(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache()),c.resolveTypeReferenceDirectiveReferences=(e,n,t,r,i)=>NH(e,n,t,r,i,a,d,RH)),c.getBuildInfo=(e,n)=>Cz(f,e,ZW(f,n),void 0);const{watchFile:u,watchDirectory:_,writeLog:p}=yW(o,r),f={host:a,hostWithWatch:o,parseConfigFileHost:WH(a),write:dn(a,a.trace),options:r,baseCompilerOptions:s,rootNames:t,baseWatchOptions:i,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:c,moduleResolutionCache:l,typeReferenceDirectiveResolutionCache:d,buildOrder:void 0,readFileWithCache:e=>a.readFile(e),projectCompilerOptions:s,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:u,watchDirectory:_,writeLog:p};return f}function QW(e,n){return Co(n,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function ZW(e,n){const{resolvedConfigFilePaths:t}=e,r=t.get(n);if(void 0!==r)return r;const i=QW(e,n);return t.set(n,i),i}function ez(e){return!!e.options}function nz(e,n){const t=e.configFileCache.get(n);return t&&ez(t)?t:void 0}function tz(e,n,t){const{configFileCache:r}=e,i=r.get(t);if(i)return ez(i)?i:void 0;let a;kr("SolutionBuilder::beforeConfigFileParsing");const{parseConfigFileHost:o,baseCompilerOptions:s,baseWatchOptions:c,extendedConfigCache:l,host:d}=e;let u;return d.getParsedCommandLine?(u=d.getParsedCommandLine(n),u||(a=wT(Wo.File_0_not_found,n))):(o.onUnRecoverableConfigFileDiagnostic=e=>a=e,u=JO(n,s,o,l,c),o.onUnRecoverableConfigFileDiagnostic=xn),r.set(t,u||a),kr("SolutionBuilder::afterConfigFileParsing"),Ir("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),u}function rz(e,n){return PW(To(e.compilerHost.getCurrentDirectory(),n))}function iz(e,n){const t=new Map,r=new Map,a=[];let o,s;for(const i of n)c(i);return s?{buildOrder:o||i,circularDiagnostics:s}:o||i;function c(n,i){const l=ZW(e,n);if(r.has(l))return;if(t.has(l))return void(i||(s||(s=[])).push(wT(Wo.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,a.join("\r\n"))));t.set(l,!0),a.push(n);const d=tz(e,n,l);if(d&&d.projectReferences)for(const t of d.projectReferences){c(rz(e,t.path),i||t.circular)}a.pop(),r.set(l,!0),(o||(o=[])).push(n)}}function az(e){return e.buildOrder||function(e){const n=iz(e,e.rootNames.map((n=>rz(e,n))));e.resolvedConfigFilePaths.clear();const t=new Map(KW(n).map((n=>[ZW(e,n),!0]))),r={onDeleteValue:xn};zE(e.configFileCache,t,r),zE(e.projectStatus,t,r),zE(e.builderPrograms,t,r),zE(e.diagnostics,t,r),zE(e.projectPendingBuild,t,r),zE(e.projectErrorsReported,t,r),zE(e.buildInfoCache,t,r),zE(e.outputTimeStamps,t,r),e.watch&&(zE(e.allWatchedConfigFiles,t,{onDeleteValue:PE}),e.allWatchedExtendedConfigFiles.forEach((e=>{e.projects.forEach((n=>{t.has(n)||e.projects.delete(n)})),e.close()})),zE(e.allWatchedWildcardDirectories,t,{onDeleteValue:e=>e.forEach(Wj)}),zE(e.allWatchedInputFiles,t,{onDeleteValue:e=>e.forEach(PE)}),zE(e.allWatchedPackageJsonFiles,t,{onDeleteValue:e=>e.forEach(PE)}));return e.buildOrder=n}(e)}function oz(e,n,t){const r=n&&rz(e,n),i=az(e);if(HW(i))return i;if(r){const n=ZW(e,r);if(-1===M(i,(t=>ZW(e,t)===n)))return}const a=r?iz(e,[r]):i;return Nt.assert(!HW(a)),Nt.assert(!t||void 0!==r),Nt.assert(!t||a[a.length-1]===r),t?a.slice(0,a.length-1):a}function sz(e){e.cache&&cz(e);const{compilerHost:n,host:t}=e,r=e.readFileWithCache,i=n.getSourceFile,{originalReadFile:a,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,getSourceFileWithCache:d,readFileWithCache:u}=pH(t,(n=>QW(e,n)),((...e)=>i.call(n,...e)));e.readFileWithCache=u,n.getSourceFile=d,e.cache={originalReadFile:a,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,originalReadFileWithCache:r,originalGetSourceFile:i}}function cz(e){if(!e.cache)return;const{cache:n,host:t,compilerHost:r,extendedConfigCache:i,moduleResolutionCache:a,typeReferenceDirectiveResolutionCache:o}=e;t.readFile=n.originalReadFile,t.fileExists=n.originalFileExists,t.directoryExists=n.originalDirectoryExists,t.createDirectory=n.originalCreateDirectory,t.writeFile=n.originalWriteFile,r.getSourceFile=n.originalGetSourceFile,e.readFileWithCache=n.originalReadFileWithCache,i.clear(),null==a||a.clear(),null==o||o.clear(),e.cache=void 0}function lz(e,n){e.projectStatus.delete(n),e.diagnostics.delete(n)}function dz({projectPendingBuild:e},n,t){const r=e.get(n);(void 0===r||r<t)&&e.set(n,t)}function uz(e,n){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&Xz(e,Wo.Starting_compilation_in_watch_mode),sz(e);KW(az(e)).forEach((n=>e.projectPendingBuild.set(ZW(e,n),0))),n&&n.throwIfCancellationRequested()}function _z(e,n){return e.projectPendingBuild.delete(n),e.diagnostics.has(n)?1:0}function pz(e,n,t,r,a,o,s){let c,l,d,u=0===e?0:4;return 0===e?{kind:e,project:t,projectPath:r,buildOrder:s,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>n.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>p(Cn),getProgram:()=>p((e=>e.getProgramOrUndefined())),getSourceFile:e=>p((n=>n.getSourceFile(e))),getSourceFiles:()=>f((e=>e.getSourceFiles())),getOptionsDiagnostics:e=>f((n=>n.getOptionsDiagnostics(e))),getGlobalDiagnostics:e=>f((n=>n.getGlobalDiagnostics(e))),getConfigFileParsingDiagnostics:()=>f((e=>e.getConfigFileParsingDiagnostics())),getSyntacticDiagnostics:(e,n)=>f((t=>t.getSyntacticDiagnostics(e,n))),getAllDependencies:e=>f((n=>n.getAllDependencies(e))),getSemanticDiagnostics:(e,n)=>f((t=>t.getSemanticDiagnostics(e,n))),getSemanticDiagnosticsOfNextAffectedFile:(e,n)=>p((t=>t.getSemanticDiagnosticsOfNextAffectedFile&&t.getSemanticDiagnosticsOfNextAffectedFile(e,n))),emit:(e,r,i,a,o)=>e||a?p((s=>{var c,l;return s.emit(e,r,i,a,o||(null==(l=(c=n.host).getCustomTransformers)?void 0:l.call(c,t)))})):(x(2,i),5===u?b(r,i):3===u?v(r,i,o):void 0),done:_}:{kind:e,project:t,projectPath:r,buildOrder:s,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>n.compilerHost.getCurrentDirectory(),emit:(e,n)=>4!==u?d:T(e,n),done:_};function _(t,i,a){return x(8,t,i,a),kr(0===e?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),_z(n,r)}function p(e){return x(0),c&&e(c)}function f(e){return p(e)||i}function m(){var e,i;if(Nt.assert(void 0===c),n.options.dry)return Jz(n,Wo.A_non_dry_build_would_build_project_0,t),l=1,void(u=7);if(n.options.verbose&&Jz(n,Wo.Building_project_0,t),0===o.fileNames.length)return $z(n,r,BH(o)),l=0,void(u=7);const{host:a,compilerHost:s}=n;n.projectCompilerOptions=o.options,null==(e=n.moduleResolutionCache)||e.update(o.options),null==(i=n.typeReferenceDirectiveResolutionCache)||i.update(o.options),c=a.createProgram(o.fileNames,o.options,s,function({options:e,builderPrograms:n,compilerHost:t},r,i){if(e.force)return;const a=n.get(r);return a||IW(i.options,t)}(n,r,o),BH(o),o.projectReferences),n.watch&&(n.lastCachedPackageJsonLookups.set(r,n.moduleResolutionCache&&W(n.moduleResolutionCache.getPackageJsonInfoCache().entries(),(([e,t])=>[n.host.realpath&&t?QW(n,n.host.realpath(e)):e,t]))),n.builderPrograms.set(r,c)),u++}function h(e,t,i){e.length?({buildResult:l,step:u}=bz(n,r,c,o,e,t,i)):u++}function g(e){Nt.assertIsDefined(c),h([...c.getConfigFileParsingDiagnostics(),...c.getOptionsDiagnostics(e),...c.getGlobalDiagnostics(e),...c.getSyntacticDiagnostics(void 0,e)],8,"Syntactic")}function y(e){h(Nt.checkDefined(c).getSemanticDiagnostics(void 0,e),16,"Semantic")}function v(e,i,a){var s,d,_;Nt.assertIsDefined(c),Nt.assert(3===u);const p=c.saveEmitState();let f;const m=[],{emitResult:h}=mW(c,(e=>(f||(f=[])).push(e)),void 0,void 0,((e,n,t,r,i,a)=>m.push({name:e,text:n,writeByteOrderMark:t,data:a})),i,!1,a||(null==(d=(s=n.host).getCustomTransformers)?void 0:d.call(s,t)));if(f)return c.restoreEmitState(p),({buildResult:l,step:u}=bz(n,r,c,o,f,32,"Declaration file")),{emitSkipped:!0,diagnostics:h.diagnostics};const{host:g,compilerHost:y}=n,v=(null==(_=c.hasChangedEmitSignature)?void 0:_.call(c))?0:2,b=ov(),T=new Map,x=c.getCompilerOptions(),S=cx(x);let A,L;return m.forEach((({name:t,text:i,writeByteOrderMark:a,data:o})=>{const s=QW(n,t);T.set(QW(n,t),t),(null==o?void 0:o.buildInfo)&&Az(n,o.buildInfo,r,x,v);const c=(null==o?void 0:o.differsOnlyInMap)?Ia(n.host,t):void 0;Gv(e?{writeFile:e}:y,b,t,i,a),(null==o?void 0:o.differsOnlyInMap)?n.host.setModifiedTime(t,c):!S&&n.watch&&(A||(A=Sz(n,r))).set(s,L||(L=jW(n.host)))})),E(b,T,m.length?m[0].name:Ej(o,!g.useCaseSensitiveFileNames()),v),h}function b(e,t){Nt.assertIsDefined(c),Nt.assert(5===u);const i=c.emitBuildInfo(((t,i,a,o,s,l)=>{(null==l?void 0:l.buildInfo)&&Az(n,l.buildInfo,r,c.getCompilerOptions(),2),e?e(t,i,a,o,s,l):n.compilerHost.writeFile(t,i,a,o,s,l)}),t);return i.diagnostics.length&&(Yz(n,i.diagnostics),n.diagnostics.set(r,[...n.diagnostics.get(r),...i.diagnostics]),l&=64),i.emittedFiles&&n.write&&i.emittedFiles.forEach((e=>yz(n,o,e))),vz(n,c,o),u=7,i}function E(e,t,i,a){const s=e.getDiagnostics();return s.length?(({buildResult:l,step:u}=bz(n,r,c,o,s,64,"Emit")),s):(n.write&&t.forEach((e=>yz(n,o,e))),Rz(n,o,r,Wo.Updating_unchanged_output_timestamps_of_project_0,t),n.diagnostics.delete(r),n.projectStatus.set(r,{type:1,oldestOutputFileName:i}),vz(n,c,o),u=7,l=a,s)}function T(i,c){var _,p,f,m;if(Nt.assert(1===e),n.options.dry)return Jz(n,Wo.A_non_dry_build_would_update_output_of_project_0,t),l=1,void(u=7);n.options.verbose&&Jz(n,Wo.Updating_output_of_project_0,t);const{compilerHost:h}=n;n.projectCompilerOptions=o.options,null==(p=(_=n.host).beforeEmitBundle)||p.call(_,o);const g=Lj(o,h,(e=>{const t=rz(n,e.path);return tz(n,t,ZW(n,t))}),c||(null==(m=(f=n.host).getCustomTransformers)?void 0:m.call(f,t)));if(vn(g))return Jz(n,Wo.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,t,qz(n,g)),u=6,d=pz(0,n,t,r,a,o,s);Nt.assert(!!g.length);const y=ov(),v=new Map;let b=2;const T=n.buildInfoCache.get(r).buildInfo||void 0;g.forEach((({name:e,text:t,writeByteOrderMark:a,data:s})=>{var c,l;v.set(QW(n,e),e),(null==s?void 0:s.buildInfo)&&((null==(c=s.buildInfo.program)?void 0:c.outSignature)!==(null==(l=null==T?void 0:T.program)?void 0:l.outSignature)&&(b&=-3),Az(n,s.buildInfo,r,o.options,b)),Gv(i?{writeFile:i}:h,y,e,t,a)}));return{emitSkipped:!1,diagnostics:E(y,v,g[0].name,b)}}function x(e,i,c,_){for(;u<=e&&u<8;){const e=u;switch(u){case 0:m();break;case 1:g(i);break;case 2:y(i);break;case 3:v(c,i,_);break;case 5:b(c,i);break;case 4:T(c,_);break;case 6:Nt.checkDefined(d).done(i,c,_),u=8;break;case 7:Oz(n,t,r,a,o,s,Nt.checkDefined(l)),u++}Nt.assert(u>e)}}}function fz({options:e},n,t){return!(3===n.type&&!e.force)||(0===t.fileNames.length||!!BH(t).length||!cx(t.options))}function mz(e,n,t){if(!e.projectPendingBuild.size)return;if(HW(n))return;const{options:r,projectPendingBuild:i}=e;for(let a=0;a<n.length;a++){const o=n[a],s=ZW(e,o),c=e.projectPendingBuild.get(s);if(void 0===c)continue;t&&(t=!1,eq(e,n));const l=tz(e,o,s);if(!l){Qz(e,s),i.delete(s);continue}2===c?(Vz(e,o,s,l),jz(e,s,l),Hz(e,o,s,l),Kz(e,o,s,l),Wz(e,o,s,l)):1===c&&(l.fileNames=zM(l.options.configFile.configFileSpecs,po(o),l.options,e.parseConfigFileHost),wM(l.fileNames,o,l.options.configFile.configFileSpecs,l.errors,IM(l.raw)),Kz(e,o,s,l),Wz(e,o,s,l));const d=wz(e,l,s);if(!r.force){if(1===d.type){nq(e,o,d),$z(e,s,BH(l)),i.delete(s),r.dry&&Jz(e,Wo.Project_0_is_up_to_date,o);continue}if(2===d.type||15===d.type)return $z(e,s,BH(l)),{kind:2,status:d,project:o,projectPath:s,projectIndex:a,config:l}}if(12!==d.type){if(16!==d.type)return{kind:fz(e,d,l)?0:1,status:d,project:o,projectPath:s,projectIndex:a,config:l};nq(e,o,d),$z(e,s,BH(l)),i.delete(s)}else nq(e,o,d),$z(e,s,BH(l)),i.delete(s),r.verbose&&Jz(e,d.upstreamProjectBlocked?Wo.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:Wo.Skipping_build_of_project_0_because_its_dependency_1_has_errors,o,d.upstreamProjectName)}}function hz(e,n,t){return nq(e,n.project,n.status),2!==n.kind?pz(n.kind,e,n.project,n.projectPath,n.projectIndex,n.config,t):function(e,n,t,r,i){let a=!0;return{kind:2,project:n,projectPath:t,buildOrder:i,getCompilerOptions:()=>r.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{Dz(e,r,t),a=!1},done:()=>(a&&Dz(e,r,t),kr("SolutionBuilder::Timestamps only updates"),_z(e,t))}}(e,n.project,n.projectPath,n.config,t)}function gz(e,n,t){const r=mz(e,n,t);return r?hz(e,r,n):r}function yz({write:e},n,t){e&&n.options.listEmittedFiles&&e(`TSFILE: ${t}`)}function vz(e,n,t){n?(e.write&&cW(n,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(n),n.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(t),e.projectCompilerOptions=e.baseCompilerOptions}function bz(e,n,t,r,i,a,o){const s=t&&!Nv(t.getCompilerOptions());return $z(e,n,i),e.projectStatus.set(n,{type:0,reason:`${o} errors`}),s?{buildResult:a,step:5}:(vz(e,t,r),{buildResult:a,step:7})}function Ez(e){return!!e.watcher}function Tz(e,n){const t=QW(e,n),r=e.filesWatched.get(t);if(e.watch&&r){if(!Ez(r))return r;if(r.modifiedTime)return r.modifiedTime}const i=Ia(e.host,n);return e.watch&&(r?r.modifiedTime=i:e.filesWatched.set(t,i)),i}function xz(e,n,t,r,i,a,o){const s=QW(e,n),c=e.filesWatched.get(s);if(c&&Ez(c))c.callbacks.push(t);else{const l=e.watchFile(n,((n,t,r)=>{const i=Nt.checkDefined(e.filesWatched.get(s));Nt.assert(Ez(i)),i.modifiedTime=r,i.callbacks.forEach((e=>e(n,t,r)))}),r,i,a,o);e.filesWatched.set(s,{callbacks:[t],watcher:l,modifiedTime:c})}return{close:()=>{const n=Nt.checkDefined(e.filesWatched.get(s));Nt.assert(Ez(n)),1===n.callbacks.length?(e.filesWatched.delete(s),Wj(n)):ct(n.callbacks,t)}}}function Sz(e,n){if(!e.watch)return;let t=e.outputTimeStamps.get(n);return t||e.outputTimeStamps.set(n,t=new Map),t}function Az(e,n,t,r,i){const a=oj(r),o=Lz(e,a,t),s=jW(e.host);o?(o.buildInfo=n,o.modifiedTime=s,2&i||(o.latestChangedDtsTime=s)):e.buildInfoCache.set(t,{path:QW(e,a),buildInfo:n,modifiedTime:s,latestChangedDtsTime:2&i?void 0:s})}function Lz(e,n,t){const r=QW(e,n),i=e.buildInfoCache.get(t);return(null==i?void 0:i.path)===r?i:void 0}function Cz(e,n,t,r){const i=QW(e,n),a=e.buildInfoCache.get(t);if(void 0!==a&&a.path===i)return a.buildInfo||void 0;const o=e.readFileWithCache(n),s=o?Aj(n,o):void 0;return e.buildInfoCache.set(t,{path:i,buildInfo:s||!1,modifiedTime:r||ga}),s}function kz(e,n,t,r){if(t<Tz(e,n))return{type:6,outOfDateOutputFileName:r,newerInputFileName:n}}function Iz(e,n,t){return e.buildInfoCache.get(t).path===n.path}function wz(e,n,r){if(void 0===n)return{type:0,reason:"File deleted mid-build"};const a=e.projectStatus.get(r);if(void 0!==a)return a;kr("SolutionBuilder::beforeUpToDateCheck");const o=function(e,n,r){var a,o;if(!n.fileNames.length&&!IM(n.raw))return{type:16};let s;const c=!!e.options.force;if(n.projectReferences){e.projectStatus.set(r,{type:13});for(const t of n.projectReferences){const n=qH(t),r=ZW(e,n),i=tz(e,n,r),a=wz(e,i,r);if(13!==a.type&&16!==a.type){if(0===a.type||12===a.type)return{type:12,upstreamProjectName:t.path,upstreamProjectBlocked:12===a.type};if(1!==a.type)return{type:11,upstreamProjectName:t.path};c||(s||(s=[])).push({ref:t,refStatus:a,resolvedRefPath:r,resolvedConfig:i})}}}if(c)return{type:17};const{host:l}=e,d=oj(n.options);let u,_,p,f,m,h=GW;if(d){const i=Lz(e,d,r);if(_=(null==i?void 0:i.modifiedTime)||Ia(l,d),_===ga)return i||e.buildInfoCache.set(r,{path:QW(e,d),buildInfo:!1,modifiedTime:_}),{type:4,missingOutputFileName:d};const s=Cz(e,d,r,_);if(!s)return{type:5,fileName:d};if((s.bundle||s.program)&&s.version!==t)return{type:14,version:s.version};if(s.program){if((null==(a=s.program.changeFileSet)?void 0:a.length)||(n.options.noEmit?ce(s.program.semanticDiagnosticsPerFile,gn):null==(o=s.program.affectedFilesPendingEmit)?void 0:o.length))return{type:8,buildInfoFile:d};if(!n.options.noEmit&&aK(n.options,s.program.options||{}))return{type:9,buildInfoFile:d};p=s.program}h=_,u=d}let g=FW,y=!1;const v=new Set;for(const t of n.fileNames){const n=Tz(e,t);if(n===ga)return{type:0,reason:`${t} does not exist`};if(_&&_<n){let n,r;if(p){f||(f=OK(p,d,l)),n=f.fileInfos.get(QW(e,t));const i=n?e.readFileWithCache(t):void 0;r=void 0!==i?bW(l,i):void 0,n&&n===r&&(y=!0)}if(!n||n!==r)return{type:6,outOfDateOutputFileName:d,newerInputFileName:t}}n>g&&(m=t,g=n),p&&v.add(QW(e,t))}if(p){f||(f=OK(p,d,l));for(const e of f.roots)if(!v.has(e))return{type:10,buildInfoFile:d,inputFile:e}}if(!d){const t=vj(n,!l.useCaseSensitiveFileNames()),i=Sz(e,r);for(const n of t){const t=QW(e,n);let r=null==i?void 0:i.get(t);if(r||(r=Ia(e.host,n),null==i||i.set(t,r)),r===ga)return{type:4,missingOutputFileName:n};if(r<g)return{type:6,outOfDateOutputFileName:n,newerInputFileName:m};r<h&&(h=r,u=n)}}const b=e.buildInfoCache.get(r);let E,T=!1,x=!1;if(s)for(const{ref:t,refStatus:i,resolvedConfig:A,resolvedRefPath:k}of s){if(x=x||!!t.prepend,i.newestInputFileTime&&i.newestInputFileTime<=h)continue;if(b&&Iz(e,b,k))return{type:7,outOfDateOutputFileName:d,newerProjectName:t.path};const n=Nz(e,A.options,k);if(!(n&&n<=h))return Nt.assert(void 0!==u,"Should have an oldest output filename here"),{type:7,outOfDateOutputFileName:u,newerProjectName:t.path};T=!0,E=t.path}const S=kz(e,n.options.configFilePath,h,u);if(S)return S;const L=A(n.options.configFile.extendedSourceFiles||i,(n=>kz(e,n,h,u)));if(L)return L;const C=A(e.lastCachedPackageJsonLookups.get(r)||i,(([n])=>kz(e,n,h,u)));return C||(x&&T?{type:3,outOfDateOutputFileName:u,newerProjectName:E}:{type:T?2:y?15:1,newestInputFileTime:g,newestInputFileName:m,oldestOutputFileName:u})}(e,n,r);return kr("SolutionBuilder::afterUpToDateCheck"),Ir("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function Rz(e,n,t,r,i){if(n.options.noEmit)return;let a;const o=oj(n.options);if(o)return(null==i?void 0:i.has(QW(e,o)))||(e.options.verbose&&Jz(e,r,n.options.configFilePath),e.host.setModifiedTime(o,a=jW(e.host)),Lz(e,o,t).modifiedTime=a),void e.outputTimeStamps.delete(t);const{host:s}=e,c=vj(n,!s.useCaseSensitiveFileNames()),l=Sz(e,t),d=l?new Set:void 0;if(!i||c.length!==i.size){let t=!!e.options.verbose;for(const o of c){const c=QW(e,o);(null==i?void 0:i.has(c))||(t&&(t=!1,Jz(e,r,n.options.configFilePath)),s.setModifiedTime(o,a||(a=jW(e.host))),l&&(l.set(c,a),d.add(c)))}}null==l||l.forEach(((e,n)=>{(null==i?void 0:i.has(n))||d.has(n)||l.delete(n)}))}function Nz(e,n,t){if(!n.composite)return;const r=Nt.checkDefined(e.buildInfoCache.get(t));if(void 0!==r.latestChangedDtsTime)return r.latestChangedDtsTime||void 0;const i=r.buildInfo&&r.buildInfo.program&&r.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(So(r.buildInfo.program.latestChangedDtsFile,po(r.path))):void 0;return r.latestChangedDtsTime=i||!1,i}function Dz(e,n,t){if(e.options.dry)return Jz(e,Wo.A_non_dry_build_would_update_timestamps_for_output_of_project_0,n.options.configFilePath);Rz(e,n,t,Wo.Updating_output_timestamps_of_project_0),e.projectStatus.set(t,{type:1,oldestOutputFileName:Ej(n,!e.host.useCaseSensitiveFileNames())})}function Oz(e,n,t,r,i,a,o){if(!(124&o)&&i.options.composite)for(let s=r+1;s<a.length;s++){const r=a[s],i=ZW(e,r);if(e.projectPendingBuild.has(i))continue;const c=tz(e,r,i);if(c&&c.projectReferences)for(const a of c.projectReferences){if(ZW(e,rz(e,a.path))!==t)continue;const r=e.projectStatus.get(i);if(r)switch(r.type){case 1:if(2&o){a.prepend?e.projectStatus.set(i,{type:3,outOfDateOutputFileName:r.oldestOutputFileName,newerProjectName:n}):r.type=2;break}case 15:case 2:case 3:2&o||e.projectStatus.set(i,{type:7,outOfDateOutputFileName:3===r.type?r.outOfDateOutputFileName:r.oldestOutputFileName,newerProjectName:n});break;case 12:ZW(e,rz(e,r.upstreamProjectName))===t&&lz(e,i)}dz(e,i,0);break}}}function Mz(e,n,t,r,i,a){kr("SolutionBuilder::beforeBuild");const o=function(e,n,t,r,i,a){const o=oz(e,n,a);if(!o)return 3;uz(e,t);let s=!0,c=0;for(;;){const n=gz(e,o,s);if(!n)break;s=!1,n.done(t,r,null==i?void 0:i(n.project)),e.diagnostics.has(n.projectPath)||c++}return cz(e),Zz(e,o),function(e,n){if(!e.watchAllProjectsPending)return;kr("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const t of KW(n)){const n=ZW(e,t),r=tz(e,t,n);Vz(e,t,n,r),jz(e,n,r),r&&(Hz(e,t,n,r),Kz(e,t,n,r),Wz(e,t,n,r))}kr("SolutionBuilder::afterWatcherCreation"),Ir("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}(e,o),HW(o)?4:o.some((n=>e.diagnostics.has(ZW(e,n))))?c?2:1:0}(e,n,t,r,i,a);return kr("SolutionBuilder::afterBuild"),Ir("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),o}function Pz(e,n,t){kr("SolutionBuilder::beforeClean");const r=function(e,n,t){const r=oz(e,n,t);if(!r)return 3;if(HW(r))return Yz(e,r.circularDiagnostics),4;const{options:i,host:a}=e,o=i.dry?[]:void 0;for(const s of r){const n=ZW(e,s),t=tz(e,s,n);if(void 0===t){Qz(e,n);continue}const r=vj(t,!a.useCaseSensitiveFileNames());if(!r.length)continue;const i=new Set(t.fileNames.map((n=>QW(e,n))));for(const s of r)i.has(QW(e,s))||a.fileExists(s)&&(o?o.push(s):(a.deleteFile(s),Fz(e,n,0)))}o&&Jz(e,Wo.A_non_dry_build_would_delete_the_following_files_Colon_0,o.map((e=>`\r\n * ${e}`)).join(""));return 0}(e,n,t);return kr("SolutionBuilder::afterClean"),Ir("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),r}function Fz(e,n,t){e.host.getParsedCommandLine&&1===t&&(t=2),2===t&&(e.configFileCache.delete(n),e.buildOrder=void 0),e.needsSummary=!0,lz(e,n),dz(e,n,t),sz(e)}function Gz(e,n,t){e.reportFileChangeDetected=!0,Fz(e,n,t),Bz(e,250,!0)}function Bz(e,n,t){const{hostWithWatch:r}=e;r.setTimeout&&r.clearTimeout&&(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout(Uz,n,e,t))}function Uz(e,n){kr("SolutionBuilder::beforeBuild");const t=function(e,n){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Xz(e,Wo.File_change_detected_Starting_incremental_compilation));let t=0;const r=az(e),i=gz(e,r,!1);if(i)for(i.done(),t++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const i=mz(e,r,!1);if(!i)break;if(2!==i.kind&&(n||5===t))return void Bz(e,100,!1);hz(e,i,r).done(),2!==i.kind&&t++}return cz(e),r}(e,n);kr("SolutionBuilder::afterBuild"),Ir("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),t&&Zz(e,t)}function Vz(e,n,t,r){e.watch&&!e.allWatchedConfigFiles.has(t)&&e.allWatchedConfigFiles.set(t,xz(e,n,(()=>Gz(e,t,2)),2e3,null==r?void 0:r.watchOptions,XK.ConfigFile,n))}function jz(e,n,t){Mj(n,null==t?void 0:t.options,e.allWatchedExtendedConfigFiles,((n,r)=>xz(e,n,(()=>{var n;return null==(n=e.allWatchedExtendedConfigFiles.get(r))?void 0:n.projects.forEach((n=>Gz(e,n,2)))}),2e3,null==t?void 0:t.watchOptions,XK.ExtendedConfigFile)),(n=>QW(e,n)))}function Hz(e,n,t,r){e.watch&&Uj(VW(e.allWatchedWildcardDirectories,t),new Map(Object.entries(r.wildcardDirectories)),((i,a)=>e.watchDirectory(i,(a=>{var o;Vj({watchedDirPath:QW(e,i),fileOrDirectory:a,fileOrDirectoryPath:QW(e,a),configFileName:n,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(t)||(null==(o=nz(e,t))?void 0:o.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:n=>e.writeLog(n),toPath:n=>QW(e,n)})||Gz(e,t,1)}),a,null==r?void 0:r.watchOptions,XK.WildcardDirectory,n)))}function Kz(e,n,t,r){e.watch&&qE(VW(e.allWatchedInputFiles,t),nn(r.fileNames,(n=>QW(e,n))),{createNewValue:(i,a)=>xz(e,a,(()=>Gz(e,t,0)),250,null==r?void 0:r.watchOptions,XK.SourceFile,n),onDeleteValue:PE})}function Wz(e,n,t,r){e.watch&&e.lastCachedPackageJsonLookups&&qE(VW(e.allWatchedPackageJsonFiles,t),new Map(e.lastCachedPackageJsonLookups.get(t)),{createNewValue:(i,a)=>xz(e,i,(()=>Gz(e,t,0)),2e3,null==r?void 0:r.watchOptions,XK.PackageJson,n),onDeleteValue:PE})}function zz(e,n,t,r,i){const a=$W(e,n,t,r,i);return{build:(e,n,t,r)=>Mz(a,e,n,t,r),clean:e=>Pz(a,e),buildReferences:(e,n,t,r)=>Mz(a,e,n,t,r,!0),cleanReferences:e=>Pz(a,e,!0),getNextInvalidatedProject:e=>(uz(a,e),gz(a,az(a),!1)),getBuildOrder:()=>az(a),getUpToDateStatusOfProject:e=>{const n=rz(a,e),t=ZW(a,n);return wz(a,tz(a,n,t),t)},invalidateProject:(e,n)=>Fz(a,e,n||0),close:()=>function(e){WE(e.allWatchedConfigFiles,PE),WE(e.allWatchedExtendedConfigFiles,Wj),WE(e.allWatchedWildcardDirectories,(e=>WE(e,Wj))),WE(e.allWatchedInputFiles,(e=>WE(e,PE))),WE(e.allWatchedPackageJsonFiles,(e=>WE(e,PE)))}(a)}}function qz(e,n){return Uo(n,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Jz(e,n,...t){e.host.reportSolutionBuilderStatus(wT(n,...t))}function Xz(e,n,...t){var r,i;null==(i=(r=e.hostWithWatch).onWatchStatusChange)||i.call(r,wT(n,...t),e.host.getNewLine(),e.baseCompilerOptions)}function Yz({host:e},n){n.forEach((n=>e.reportDiagnostic(n)))}function $z(e,n,t){Yz(e,t),e.projectErrorsReported.set(n,!0),t.length&&e.diagnostics.set(n,t)}function Qz(e,n){$z(e,n,[e.configFileCache.get(n)])}function Zz(e,n){if(!e.needsSummary)return;e.needsSummary=!1;const t=e.watch||!!e.host.reportErrorSummary,{diagnostics:r}=e;let a=0,o=[];HW(n)?(eq(e,n.buildOrder),Yz(e,n.circularDiagnostics),t&&(a+=tW(n.circularDiagnostics)),t&&(o=[...o,...rW(n.circularDiagnostics)])):(n.forEach((n=>{const t=ZW(e,n);e.projectErrorsReported.has(t)||Yz(e,r.get(t)||i)})),t&&r.forEach((e=>a+=tW(e))),t&&r.forEach((e=>[...o,...rW(e)]))),e.watch?Xz(e,iW(a),a):e.host.reportErrorSummary&&e.host.reportErrorSummary(a,o)}function eq(e,n){e.options.verbose&&Jz(e,Wo.Projects_in_this_build_Colon_0,n.map((n=>"\r\n * "+qz(e,n))).join(""))}function nq(e,n,r){e.options.verbose&&function(e,n,r){switch(r.type){case 6:return Jz(e,Wo.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,qz(e,n),qz(e,r.outOfDateOutputFileName),qz(e,r.newerInputFileName));case 7:return Jz(e,Wo.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,qz(e,n),qz(e,r.outOfDateOutputFileName),qz(e,r.newerProjectName));case 4:return Jz(e,Wo.Project_0_is_out_of_date_because_output_file_1_does_not_exist,qz(e,n),qz(e,r.missingOutputFileName));case 5:return Jz(e,Wo.Project_0_is_out_of_date_because_there_was_error_reading_file_1,qz(e,n),qz(e,r.fileName));case 8:return Jz(e,Wo.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,qz(e,n),qz(e,r.buildInfoFile));case 9:return Jz(e,Wo.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,qz(e,n),qz(e,r.buildInfoFile));case 10:return Jz(e,Wo.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,qz(e,n),qz(e,r.buildInfoFile),qz(e,r.inputFile));case 1:if(void 0!==r.newestInputFileTime)return Jz(e,Wo.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,qz(e,n),qz(e,r.newestInputFileName||""),qz(e,r.oldestOutputFileName||""));break;case 3:return Jz(e,Wo.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,qz(e,n),qz(e,r.newerProjectName));case 2:return Jz(e,Wo.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,qz(e,n));case 15:return Jz(e,Wo.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,qz(e,n));case 11:return Jz(e,Wo.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,qz(e,n),qz(e,r.upstreamProjectName));case 12:return Jz(e,r.upstreamProjectBlocked?Wo.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:Wo.Project_0_can_t_be_built_because_its_dependency_1_has_errors,qz(e,n),qz(e,r.upstreamProjectName));case 0:return Jz(e,Wo.Failed_to_parse_file_0_Colon_1,qz(e,n),r.reason);case 14:return Jz(e,Wo.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,qz(e,n),r.version,t);case 17:Jz(e,Wo.Project_0_is_being_forcibly_rebuilt,qz(e,n))}}(e,n,r)}var tq,rq,iq,aq,oq,sq,cq=E({"src/compiler/tsbuildPublic.ts"(){lq(),lq(),_a(),FW=new Date(-864e13),GW=new Date(864e13),BW=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(BW||{})}}),lq=E({"src/compiler/_namespaces/ts.ts"(){x(),qt(),Jt(),lr(),Sr(),Ar(),pa(),La(),$a(),zo(),ds(),tc(),sp(),rA(),oA(),lA(),vA(),GA(),rC(),lC(),TR(),UN(),rD(),RO(),uP(),qF(),iG(),oG(),dB(),CB(),KB(),EU(),NU(),FU(),BU(),VU(),HU(),WU(),qU(),YU(),QU(),eV(),tV(),iV(),sV(),lV(),uV(),fV(),hV(),vV(),EV(),xV(),AV(),CV(),NV(),VV(),rj(),Dj(),aH(),QH(),ZH(),rK(),PK(),UK(),YK(),kW(),MW(),UW(),cq(),$G(),_a()}});function dq(e,t){return new Ut(qe(t,`ts${n}`)||qe(t,"latest")).compareTo(e.version)<=0}function uq(e){return aq.has(e)?"node":e}function _q(e,n){const t=XO(n,(n=>e.readFile(n)));return new Map(Object.entries(t.config))}function pq(e,n){var t;const r=XO(n,(n=>e.readFile(n)));if(null==(t=r.config)?void 0:t.simpleMap)return new Map(Object.entries(r.config.simpleMap))}function fq(e,n,t,r,i,a,o,s,c,l){if(!o||!o.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const d=new Map;t=ee(t,(e=>{const n=Ao(e);if(Ux(n))return n}));const u=[];o.include&&g(o.include,"Explicitly included types");const _=o.exclude||[];if(!l.types){const e=new Set(t.map(po));e.add(r),e.forEach((e=>{y(e,"bower.json","bower_components",u),y(e,"package.json","node_modules",u)}))}if(o.disableFilenameBasedTypeAcquisition||function(e){const t=ee(e,(e=>{if(!Ux(e))return;const n=it(qx(In(fo(e))));return i.get(n)}));t.length&&g(t,"Inferred typings from file names");ce(e,(e=>oo(e,".jsx")))&&(n&&n("Inferred 'react' typings due to presence of '.jsx' extension"),h("react"))}(t),s){g(pe(s.map(uq),Gn,Wn),"Inferred typings from unresolved imports")}a.forEach(((e,n)=>{const t=c.get(n);d.has(n)&&void 0===d.get(n)&&void 0!==t&&dq(e,t)&&d.set(n,e.typingLocation)}));for(const v of _){d.delete(v)&&n&&n(`Typing for ${v} is in exclude list, will be ignored.`)}const p=[],f=[];d.forEach(((e,n)=>{void 0!==e?f.push(e):p.push(n)}));const m={cachedTypingPaths:f,newTypingNames:p,filesToWatch:u};return n&&n(`Result: ${JSON.stringify(m)}`),m;function h(e){d.has(e)||d.set(e,void 0)}function g(e,t){n&&n(`${t}: ${JSON.stringify(e)}`),A(e,h)}function y(t,r,i,a){const o=Eo(t,r);let s,c;e.fileExists(o)&&(a.push(o),s=XO(o,(n=>e.readFile(n))).config,c=X([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],Je),g(c,`Typing names in '${o}' dependencies`));const l=Eo(t,i);if(a.push(l),!e.directoryExists(l))return;const u=[],_=c?c.map((e=>Eo(l,e,r))):e.readDirectory(l,[".json"],void 0,void 0,3).filter((e=>{if(fo(e)!==r)return!1;const n=go(Ao(e)),t="@"===n[n.length-3][0];return t&&In(n[n.length-4])===i||!t&&In(n[n.length-3])===i}));n&&n(`Searching for typing names in ${l}; all files: ${JSON.stringify(_)}`);for(const p of _){const t=Ao(p),r=XO(t,(n=>e.readFile(n))).config;if(!r.name)continue;const i=r.types||r.typings;if(i){const a=So(i,po(t));e.fileExists(a)?(n&&n(` Package '${r.name}' provides its own types.`),d.set(r.name,a)):n&&n(` Package '${r.name}' provides its own types but they are missing.`)}else u.push(r.name)}g(u," Found package names")}}function mq(e){return hq(e,!0)}function hq(e,n){if(!e)return 1;if(e.length>sq)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(n){const n=/^@([^/]+)\/([^/]+)$/.exec(e);if(n){const e=hq(n[1],!1);if(0!==e)return{name:n[1],isScopeName:!0,result:e};const t=hq(n[2],!1);return 0!==t?{name:n[2],isScopeName:!1,result:t}:0}}return encodeURIComponent(e)!==e?5:0}function gq(e,n){return"object"===typeof e?yq(n,e.result,e.name,e.isScopeName):yq(n,e,n,!1)}function yq(e,n,t,r){const i=r?"Scope":"Package";switch(n){case 1:return`'${e}':: ${i} name '${t}' cannot be empty`;case 2:return`'${e}':: ${i} name '${t}' should be less than ${sq} characters`;case 3:return`'${e}':: ${i} name '${t}' cannot start with '.'`;case 4:return`'${e}':: ${i} name '${t}' cannot start with '_'`;case 5:return`'${e}':: ${i} name '${t}' contains non URI safe characters`;case 0:return Nt.fail();default:throw Nt.assertNever(n)}}var vq=E({"src/jsTyping/jsTyping.ts"(){oJ(),rq=(tq=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"]).map((e=>`node:${e}`)),iq=[...tq,...rq],aq=new Set(iq),oq=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(oq||{}),sq=214}}),bq={};T(bq,{NameValidationResult:()=>oq,discoverTypings:()=>fq,isTypingUpToDate:()=>dq,loadSafeList:()=>_q,loadTypesMap:()=>pq,nodeCoreModuleList:()=>iq,nodeCoreModules:()=>aq,nonRelativeModuleNameForTypingCache:()=>uq,prefixedNodeCoreModuleList:()=>rq,renderPackageNameValidationFailure:()=>gq,validatePackageName:()=>mq});var Eq,Tq,xq,Sq,Aq,Lq,Cq,kq,Iq=E({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){vq()}});function wq(e){return Aa.args.indexOf(e)>=0}function Rq(e){const n=Aa.args.indexOf(e);return n>=0&&n<Aa.args.length-1?Aa.args[n+1]:void 0}function Nq(){const e=new Date;return`${At(e.getHours().toString(),2,"0")}:${At(e.getMinutes().toString(),2,"0")}:${At(e.getSeconds().toString(),2,"0")}.${At(e.getMilliseconds().toString(),3,"0")}`}var Dq=E({"src/jsTyping/shared.ts"(){var e;oJ(),Eq="action::set",Tq="action::invalidate",xq="action::packageInstalled",Sq="event::typesRegistry",Aq="event::beginInstallTypes",Lq="event::endInstallTypes",Cq="event::initializationFailed",(e=kq||(kq={})).GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"}}),Oq=E({"src/jsTyping/types.ts"(){}}),Mq={};T(Mq,{ActionInvalidate:()=>Tq,ActionPackageInstalled:()=>xq,ActionSet:()=>Eq,Arguments:()=>kq,EventBeginInstallTypes:()=>Aq,EventEndInstallTypes:()=>Lq,EventInitializationFailed:()=>Cq,EventTypesRegistry:()=>Sq,findArgument:()=>Rq,hasArgument:()=>wq,nowString:()=>Nq});var Pq,Fq,Gq,Bq,Uq,Vq,jq,Hq,Kq,Wq,zq,qq,Jq,Xq,Yq,$q,Qq,Zq,eJ,nJ,tJ,rJ,iJ,aJ=E({"src/jsTyping/_namespaces/ts.server.ts"(){Dq(),Oq()}}),oJ=E({"src/jsTyping/_namespaces/ts.ts"(){lq(),Iq(),aJ()}});function sJ(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0}}var cJ,lJ,dJ,uJ,_J,pJ,fJ,mJ,hJ,gJ=E({"src/services/types.ts"(){(e=>{class n{constructor(e){this.text=e}getText(e,n){return 0===e&&n===this.text.length?this.text:this.text.substring(e,n)}getLength(){return this.text.length}getChangeRange(){}}e.fromString=function(e){return new n(e)}})(Pq||(Pq={})),Fq=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(Fq||{}),Gq=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(Gq||{}),Bq=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(Bq||{}),Uq={},Vq=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(Vq||{}),jq=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(jq||{}),Hq=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Hq||{}),Kq=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(Kq||{}),Wq=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(Wq||{}),zq=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(zq||{}),qq=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(qq||{}),Jq=sJ("\n"),Xq=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(Xq||{}),Yq=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(Yq||{}),$q=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))($q||{}),Qq=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(Qq||{}),Zq=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(Zq||{}),eJ=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(eJ||{}),nJ=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(nJ||{}),tJ=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(tJ||{}),rJ=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(rJ||{}),iJ=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(iJ||{})}});function yJ(e){switch(e.kind){case 257:return Ih(e)&&bl(e)?7:1;case 166:case 205:case 169:case 168:case 299:case 300:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 295:case 288:return 1;case 165:case 261:case 262:case 184:return 2;case 349:return void 0===e.name?3:2;case 302:case 260:return 3;case 264:return yf(e)||1===JF(e)?5:4;case 263:case 272:case 273:case 268:case 269:case 274:case 275:return 7;case 308:return 5}return 7}function vJ(e){const n=(e=bX(e)).parent;return 308===e.kind?1:ZI(n)||tw(n)||cw(n)||QI(n)||WI(n)||HI(n)&&e===n.name?7:bJ(e)?function(e){const n=163===e.kind?e:KC(e.parent)&&e.parent.right===e?e.parent:void 0;return n&&268===n.parent.kind?7:4}(e):ry(e)?yJ(n):Ld(e)&&Mc(e,yt(Dw,s_,Ow))?7:function(e){Zb(e)&&(e=e.parent);switch(e.kind){case 108:return!vh(e);case 194:return!0}switch(e.parent.kind){case 180:return!0;case 202:return!e.parent.isTypeOf;case 230:return xm(e.parent)}return!1}(e)?2:function(e){return function(e){let n=e,t=!0;if(163===n.parent.kind){for(;n.parent&&163===n.parent.kind;)n=n.parent;t=n.right===e}return 180===n.parent.kind&&!t}(e)||function(e){let n=e,t=!0;if(208===n.parent.kind){for(;n.parent&&208===n.parent.kind;)n=n.parent;t=n.name===e}if(!t&&230===n.parent.kind&&294===n.parent.parent.kind){const e=n.parent.parent.parent;return 260===e.kind&&117===n.parent.parent.token||261===e.kind&&94===n.parent.parent.token}return!1}(e)}(e)?4:zC(n)?(Nt.assert(_R(n.parent)),2):Lk(n)?3:1}function bJ(e){for(;163===e.parent.kind;)e=e.parent;return Lh(e.parent)&&e.parent.moduleReference===e}function EJ(e,n=!1,t=!1){return wJ(e,Fk,CJ,n,t)}function TJ(e,n=!1,t=!1){return wJ(e,Gk,CJ,n,t)}function xJ(e,n=!1,t=!1){return wJ(e,su,CJ,n,t)}function SJ(e,n=!1,t=!1){return wJ(e,Bk,kJ,n,t)}function AJ(e,n=!1,t=!1){return wJ(e,JC,CJ,n,t)}function LJ(e,n=!1,t=!1){return wJ(e,zu,IJ,n,t)}function CJ(e){return e.expression}function kJ(e){return e.tag}function IJ(e){return e.tagName}function wJ(e,n,t,r,i){let a=r?NJ(e):RJ(e);return i&&(a=qR(a)),!!a&&!!a.parent&&n(a.parent)&&t(a.parent)===a}function RJ(e){return UJ(e)?e.parent:e}function NJ(e){return UJ(e)||VJ(e)?e.parent:e}function DJ(e,n){for(;e;){if(253===e.kind&&e.label.escapedText===n)return e.label;e=e.parent}}function OJ(e,n){return!!Mk(e.expression)&&e.expression.name.text===n}function MJ(e){var n;return IC(e)&&(null==(n=En(e.parent,Yl))?void 0:n.label)===e}function PJ(e){var n;return IC(e)&&(null==(n=En(e.parent,kI))?void 0:n.label)===e}function FJ(e){return PJ(e)||MJ(e)}function GJ(e){var n;return(null==(n=En(e.parent,Yu))?void 0:n.tagName)===e}function BJ(e){var n;return(null==(n=En(e.parent,KC))?void 0:n.right)===e}function UJ(e){var n;return(null==(n=En(e.parent,Mk))?void 0:n.name)===e}function VJ(e){var n;return(null==(n=En(e.parent,Pk))?void 0:n.argumentExpression)===e}function jJ(e){var n;return(null==(n=En(e.parent,BI))?void 0:n.name)===e}function HJ(e){var n;return IC(e)&&(null==(n=En(e.parent,Id))?void 0:n.name)===e}function KJ(e){switch(e.parent.kind){case 169:case 168:case 299:case 302:case 171:case 170:case 174:case 175:case 264:return Xc(e.parent)===e;case 209:return e.parent.argumentExpression===e;case 164:return!0;case 198:return 196===e.parent.parent.kind;default:return!1}}function WJ(e){return xh(e.parent.parent)&&Sh(e.parent.parent)===e}function zJ(e){for(Ag(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 308:case 171:case 170:case 259:case 215:case 174:case 175:case 260:case 261:case 263:case 264:return e}}}function qJ(e){switch(e.kind){case 308:return OD(e)?"module":"script";case 264:return"module";case 260:case 228:return"class";case 261:return"interface";case 262:case 341:case 349:return"type";case 263:return"enum";case 257:return n(e);case 205:return n(Xy(e));case 216:case 259:case 215:return"function";case 174:return"getter";case 175:return"setter";case 171:case 170:return"method";case 299:const{initializer:t}=e;return Id(t)?"method":"property";case 169:case 168:case 300:case 301:return"property";case 178:return"index";case 177:return"construct";case 176:return"call";case 173:case 172:return"constructor";case 165:return"type parameter";case 302:return"enum member";case 166:return fb(e,16476)?"property":"parameter";case 268:case 273:case 278:case 271:case 277:return"alias";case 223:const r=eg(e),{right:i}=e;switch(r){case 7:case 8:case 9:case 0:default:return"";case 1:case 2:const e=qJ(i);return""===e?"const":e;case 3:case 5:return jk(i)?"method":"property";case 4:return"property";case 6:return"local class"}case 79:return WI(e.parent)?"alias":"";case 274:const a=qJ(e.expression);return""===a?"const":a;default:return""}function n(e){return dm(e)?"const":um(e)?"let":"var"}}function JJ(e){switch(e.kind){case 108:return!0;case 79:return Yv(e)&&166===e.parent.kind;default:return!1}}function XJ(e,n){return bs(n)[n.getLineAndCharacterOfPosition(e).line]}function YJ(e,n){return eX(e.pos,e.end,n)}function $J(e,n){return ZJ(e,n.pos)&&ZJ(e,n.end)}function QJ(e,n){return e.pos<=n&&n<=e.end}function ZJ(e,n){return e.pos<n&&n<e.end}function eX(e,n,t){return e<=t.pos&&n>=t.end}function nX(e,n,t){return e.pos<=n&&e.end>=t}function tX(e,n,t){return iX(e.pos,e.end,n,t)}function rX(e,n,t,r){return iX(e.getStart(n),e.end,t,r)}function iX(e,n,t,r){return Math.max(e,t)<Math.min(n,r)}function aX(e,n,t){return Nt.assert(e.pos<=n),n<e.end||!oX(e,t)}function oX(e,n){if(void 0===e||Vp(e))return!1;switch(e.kind){case 260:case 261:case 263:case 207:case 203:case 184:case 238:case 265:case 266:case 272:case 276:return sX(e,19,n);case 295:return oX(e.block,n);case 211:if(!e.arguments)return!0;case 210:case 214:case 193:return sX(e,21,n);case 181:case 182:return oX(e.type,n);case 173:case 174:case 175:case 259:case 215:case 171:case 170:case 177:case 176:case 216:return e.body?oX(e.body,n):e.type?oX(e.type,n):lX(e,21,n);case 264:return!!e.body&&oX(e.body,n);case 242:return e.elseStatement?oX(e.elseStatement,n):oX(e.thenStatement,n);case 241:return oX(e.expression,n)||lX(e,26,n);case 206:case 204:case 209:case 164:case 186:return sX(e,23,n);case 178:return e.type?oX(e.type,n):lX(e,23,n);case 292:case 293:return!1;case 245:case 246:case 247:case 244:return oX(e.statement,n);case 243:return lX(e,115,n)?sX(e,21,n):oX(e.statement,n);case 183:return oX(e.exprName,n);case 218:case 217:case 219:case 226:case 227:return oX(e.expression,n);case 212:return oX(e.template,n);case 225:return oX(Fe(e.templateSpans),n);case 236:return jp(e.literal);case 275:case 269:return jp(e.moduleSpecifier);case 221:return oX(e.operand,n);case 223:return oX(e.right,n);case 224:return oX(e.whenFalse,n);default:return!0}}function sX(e,n,t){const r=e.getChildren(t);if(r.length){const e=Ge(r);if(e.kind===n)return!0;if(26===e.kind&&1!==r.length)return r[r.length-2].kind===n}return!1}function cX(e){const n=uX(e);if(!n)return;return{listItemIndex:lf(n.getChildren(),e),list:n}}function lX(e,n,t){return!!dX(e,n,t)}function dX(e,n,t){return D(e.getChildren(t),(e=>e.kind===n))}function uX(e){const n=D(e.parent.getChildren(),(n=>vR(n)&&YJ(n,e)));return Nt.assert(!n||G(n.getChildren(),e)),n}function _X(e){return 88===e.kind}function pX(e){return 84===e.kind}function fX(e){return 98===e.kind}function mX(e,n){if(8388608&e.flags)return;const t=J$(e,n);if(t)return t;const r=function(e){let n;return Mc(e,(e=>(zd(e)&&(n=e),!KC(e.parent)&&!zd(e.parent)&&!Hd(e.parent)))),n}(e);return r&&n.getTypeAtLocation(r)}function hX(e,n){if(!n)switch(e.kind){case 260:case 228:return function(e){if(qc(e))return e.name;if(MI(e)){const n=e.modifiers&&D(e.modifiers,_X);if(n)return n}if(nI(e)){const n=D(e.getChildren(),pX);if(n)return n}}(e);case 259:case 215:return function(e){if(qc(e))return e.name;if(OI(e)){const n=D(e.modifiers,_X);if(n)return n}if(jk(e)){const n=D(e.getChildren(),fX);if(n)return n}}(e);case 173:return e}if(qc(e))return e.name}function gX(e,n){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if($I(e.importClause.namedBindings)){const n=Be(e.importClause.namedBindings.elements);if(!n)return;return n.name}if(XI(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!n)return e.moduleSpecifier}function yX(e,n){if(e.exportClause){if(nw(e.exportClause)){if(!Be(e.exportClause.elements))return;return e.exportClause.elements[0].name}if(YI(e.exportClause))return e.exportClause.name}if(!n)return e.moduleSpecifier}function vX(e,n){const{parent:t}=e;if(Ad(e)&&(n||88!==e.kind)?jN(t)&&G(t.modifiers,e):84===e.kind?MI(t)||nI(e):98===e.kind?OI(t)||jk(e):118===e.kind?PI(t):92===e.kind?GI(t):154===e.kind?FI(t):143===e.kind||142===e.kind?BI(t):100===e.kind?HI(t):137===e.kind?nk(t):151===e.kind&&tk(t)){const e=hX(t,n);if(e)return e}if((113===e.kind||85===e.kind||119===e.kind)&&DI(t)&&1===t.declarations.length){const e=t.declarations[0];if(IC(e.name))return e.name}if(154===e.kind){if(WI(t)&&t.isTypeOnly){const e=gX(t.parent,n);if(e)return e}if(ew(t)&&t.isTypeOnly){const e=yX(t,n);if(e)return e}}if(128===e.kind){if(QI(t)&&t.propertyName||tw(t)&&t.propertyName||XI(t)||YI(t))return t.name;if(ew(t)&&t.exportClause&&YI(t.exportClause))return t.exportClause.name}if(100===e.kind&&KI(t)){const e=gX(t,n);if(e)return e}if(93===e.kind){if(ew(t)){const e=yX(t,n);if(e)return e}if(ZI(t))return qR(t.expression)}if(147===e.kind&&cw(t))return t.expression;if(158===e.kind&&(KI(t)||ew(t))&&t.moduleSpecifier)return t.moduleSpecifier;if((94===e.kind||117===e.kind)&&Tw(t)&&t.token===e.kind){const e=function(e){if(1===e.types.length)return e.types[0].expression}(t);if(e)return e}if(94===e.kind){if(zC(t)&&t.constraint&&sk(t.constraint))return t.constraint.typeName;if(vk(t)&&sk(t.extendsType))return t.extendsType.typeName}if(138===e.kind&&bk(t))return t.typeParameter.name;if(101===e.kind&&zC(t)&&Ak(t.parent))return t.name;if(141===e.kind&&xk(t)&&141===t.operator&&sk(t.type))return t.type.typeName;if(146===e.kind&&xk(t)&&146===t.operator&&_k(t.type)&&sk(t.type.elementType))return t.type.elementType.typeName;if(!n){if((103===e.kind&&Gk(t)||114===e.kind&&zk(t)||112===e.kind&&Wk(t)||133===e.kind&&qk(t)||125===e.kind&&Zk(t)||89===e.kind&&Kk(t))&&t.expression)return qR(t.expression);if((101===e.kind||102===e.kind)&&Yk(t)&&t.operatorToken===e)return qR(t.right);if(128===e.kind&&iI(t)&&sk(t.type))return t.type.typeName;if(101===e.kind&&EI(t)||162===e.kind&&TI(t))return qR(t.expression)}return e}function bX(e){return vX(e,!1)}function EX(e){return vX(e,!0)}function TX(e,n){return xX(e,n,(e=>My(e)||by(e.kind)||wC(e)))}function xX(e,n,t){return AX(e,n,!1,t,!1)}function SX(e,n){return AX(e,n,!0,void 0,!1)}function AX(e,n,t,r,i){let a,o=e;for(;;){const i=o.getChildren(e),c=Ke(i,n,((e,n)=>n),((a,o)=>{const c=i[a].getEnd();if(c<n)return-1;const l=t?i[a].getFullStart():i[a].getStart(e,!0);return l>n?1:s(i[a],l,c)?i[a-1]&&s(i[a-1])?1:0:r&&l===n&&i[a-1]&&i[a-1].getEnd()===n&&s(i[a-1])?1:-1}));if(a)return a;if(!(c>=0&&i[c]))return o;o=i[c]}function s(o,s,c){if(null!=c||(c=o.getEnd()),c<n)return!1;if(null!=s||(s=t?o.getFullStart():o.getStart(e,!0)),s>n)return!1;if(n<c||n===c&&(1===o.kind||i))return!0;if(r&&c===n){const t=IX(n,e,o);if(t&&r(t))return a=t,!0}return!1}}function LX(e,n){let t=SX(e,n);for(;MX(t);){const n=kX(t,t.parent,e);if(!n)return;t=n}return t}function CX(e,n){const t=SX(e,n);return id(t)&&n>t.getStart(e)&&n<t.getEnd()?t:IX(n,e)}function kX(e,n,t){return function n(r){if(id(r)&&r.pos===e.end)return r;return C(r.getChildren(t),(r=>(r.pos<=e.pos&&r.end>e.end||r.pos===e.end)&&zX(r,t)?n(r):void 0))}(n)}function IX(e,n,t,r){const i=function i(a){if(wX(a)&&1!==a.kind)return a;const o=a.getChildren(n),s=Ke(o,e,((e,n)=>n),((n,t)=>e<o[n].end?!o[n-1]||e>=o[n-1].end?0:1:-1));if(s>=0&&o[s]){const t=o[s];if(e<t.end){if(t.getStart(n,!r)>=e||!zX(t,n)||MX(t)){const e=NX(o,s,n,a.kind);return e&&RX(e,n)}return i(t)}}Nt.assert(void 0!==t||308===a.kind||1===a.kind||Xu(a));const c=NX(o,o.length,n,a.kind);return c&&RX(c,n)}(t||n);return Nt.assert(!(i&&MX(i))),i}function wX(e){return id(e)&&!MX(e)}function RX(e,n){if(wX(e))return e;const t=e.getChildren(n);if(0===t.length)return e;const r=NX(t,t.length,n,e.kind);return r&&RX(r,n)}function NX(e,n,t,r){for(let i=n-1;i>=0;i--){if(MX(e[i]))0!==i||11!==r&&282!==r||Nt.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(zX(e[i],t))return e[i]}}function DX(e,n,t=IX(n,e)){if(t&&gd(t)){const r=t.getStart(e),i=t.getEnd();if(r<n&&n<i)return!0;if(n===i)return!!t.isUnterminated}return!1}function OX(e,n){const t=SX(e,n);return!!t&&(11===t.kind||(29===t.kind&&11===t.parent.kind||(29===t.kind&&291===t.parent.kind||(!(!t||19!==t.kind||291!==t.parent.kind)||29===t.kind&&284===t.parent.kind))))}function MX(e){return pC(e)&&e.containsOnlyTriviaWhiteSpaces}function PX(e,n){const t=SX(e,n);return ld(t.kind)&&n>t.getStart(e)}function FX(e,n){const t=SX(e,n);return!!pC(t)||(!(18!==t.kind||!vw(t.parent)||!lw(t.parent.parent))||!(29!==t.kind||!zu(t.parent)||!lw(t.parent.parent)))}function GX(e,n){return function(t){for(;t;)if(t.kind>=282&&t.kind<=291||11===t.kind||29===t.kind||31===t.kind||79===t.kind||19===t.kind||18===t.kind||43===t.kind)t=t.parent;else{if(281!==t.kind)return!1;if(n>t.getStart(e))return!0;t=t.parent}return!1}(SX(e,n))}function BX(e,n,t){const r=ms(e.kind),i=ms(n),a=e.getFullStart(),o=t.text.lastIndexOf(i,a);if(-1===o)return;if(t.text.lastIndexOf(r,a-1)<o){const e=IX(o+1,t);if(e&&e.kind===n)return e}const s=e.kind;let c=0;for(;;){const r=IX(e.getFullStart(),t);if(!r)return;if((e=r).kind===n){if(0===c)return e;c--}else e.kind===s&&c++}}function UX(e,n,t){return n?e.getNonNullableType():t?e.getNonOptionalType():e}function VX(e,n,t){const r=HX(e,n);return void 0!==r&&(xm(r.called)||0!==jX(r.called,r.nTypeArguments,t).length||VX(r.called,n,t))}function jX(e,n,t){let r=t.getTypeAtLocation(e);jl(e.parent)&&(r=UX(r,Hl(e.parent),!0));return(Gk(e.parent)?r.getConstructSignatures():r.getCallSignatures()).filter((e=>!!e.typeParameters&&e.typeParameters.length>=n))}function HX(e,n){if(-1===n.text.lastIndexOf("<",e?e.pos:n.text.length))return;let t=e,r=0,i=0;for(;t;){switch(t.kind){case 29:if(t=IX(t.getFullStart(),n),t&&28===t.kind&&(t=IX(t.getFullStart(),n)),!t||!IC(t))return;if(!r)return ry(t)?void 0:{called:t,nTypeArguments:i};r--;break;case 49:r=3;break;case 48:r=2;break;case 31:r++;break;case 19:if(t=BX(t,18,n),!t)return;break;case 21:if(t=BX(t,20,n),!t)return;break;case 23:if(t=BX(t,22,n),!t)return;break;case 27:i++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 141:case 24:case 51:case 57:case 58:break;default:if(zd(t))break;return}t=IX(t.getFullStart(),n)}}function KX(e,n,t){return Mfe.getRangeOfEnclosingComment(e,n,void 0,t)}function WX(e,n){return!!Mc(SX(e,n),zw)}function zX(e,n){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(n)}function qX(e,n=0){const t=[],r=Pu(e)?Rc(e)&~n:0;return 8&r&&t.push("private"),16&r&&t.push("protected"),4&r&&t.push("public"),(32&r||ZC(e))&&t.push("static"),256&r&&t.push("abstract"),1&r&&t.push("export"),8192&r&&t.push("deprecated"),16777216&e.flags&&t.push("declare"),274===e.kind&&t.push("export"),t.length>0?t.join(","):""}function JX(e){return 180===e.kind||210===e.kind?e.typeArguments:Id(e)||260===e.kind||261===e.kind?e.typeParameters:void 0}function XX(e){return 2===e||3===e}function YX(e){return!(10!==e&&13!==e&&!ld(e))}function $X(e){if(!e.isIntersection())return!1;const{types:n,checker:t}=e;return 2===n.length&&4&n[0].flags&&t.isEmptyAnonymousObjectType(n[1])}function QX(e){return 18<=e&&e<=78}function ZX(e,n,t){return ld(e.kind)&&e.getStart(t)<n&&n<e.end||!!e.isUnterminated&&n===e.end}function eY(e){switch(e){case 123:case 121:case 122:return!0}return!1}function nY(e){const n=sn(e);return xM(n,e&&e.configFile),n}function tY(e){if(206===e.kind||207===e.kind){if(223===e.parent.kind&&e.parent.left===e&&63===e.parent.operatorToken.kind)return!0;if(247===e.parent.kind&&e.parent.initializer===e)return!0;if(tY(299===e.parent.kind?e.parent.parent:e.parent))return!0}return!1}function rY(e,n){return aY(e,n,!0)}function iY(e,n){return aY(e,n,!1)}function aY(e,n,t){const r=KX(e,n,void 0);return!!r&&t===dJ.test(e.text.substring(r.pos,r.end))}function oY(e){if(e)switch(e.kind){case 10:case 14:return cY(e);default:return sY(e)}}function sY(e,n,t){return vc(e.getStart(n),(t||e).getEnd())}function cY(e){if(!e.isUnterminated)return vc(e.getStart()+1,e.getEnd()-1)}function lY(e,n){return pE(e.getStart(n),e.end)}function dY(e){return vc(e.pos,e.end)}function uY(e){return pE(e.start,e.start+e.length)}function _Y(e,n,t){return pY(yc(e,n),t)}function pY(e,n){return{span:e,newText:n}}function fY(e){return G(uJ,e)}function mY(e){return 154===e.kind}function hY(e){return mY(e)||IC(e)&&"type"===e.text}function gY(e){return!!(1536&e.flags)&&34===e.name.charCodeAt(0)}function yY(){const e=[];return n=>{const t=ZG(n);return!e[t]&&(e[t]=!0)}}function vY(e){return e.getText(0,e.getLength())}function bY(e,n){let t="";for(let r=0;r<n;r++)t+=e;return t}function EY(e){return e.isTypeParameter()&&e.getConstraint()||e}function TY(e){return 164===e.kind?wy(e.expression)?e.expression.text:void 0:wC(e)?Uc(e):Py(e)}function xY(e){return e.getSourceFiles().some((n=>!n.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(n)&&!(!n.externalModuleIndicator&&!n.commonJsModuleIndicator)))}function SY(e){return e.getSourceFiles().some((n=>!n.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(n)&&!!n.externalModuleIndicator))}function AY(e){return!!e.module||HT(e)>=2||!!e.noEmit}function LY(e,n){return{fileExists:n=>e.fileExists(n),getCurrentDirectory:()=>n.getCurrentDirectory(),readFile:dn(n,n.readFile),useCaseSensitiveFileNames:dn(n,n.useCaseSensitiveFileNames),getSymlinkCache:dn(n,n.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:dn(n,n.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var n;return null==(n=e.getModuleResolutionCache())?void 0:n.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:dn(n,n.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:n=>e.getProjectReferenceRedirect(n),isSourceOfProjectReferenceRedirect:n=>e.isSourceOfProjectReferenceRedirect(n),getNearestAncestorDirectoryWithPackageJson:dn(n,n.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function CY(e,n){return{...LY(e,n),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function kY(e){return 2===e||e>=3&&e<=99||100===e}function IY(e,n,t,r){return e||n&&n.length?wY(e,n,t,r):void 0}function wY(e,n,t,r,i){return gA.createImportDeclaration(void 0,e||n?gA.createImportClause(!!i,e,n&&n.length?gA.createNamedImports(n):void 0):void 0,"string"===typeof t?RY(t,r):t,void 0)}function RY(e,n){return gA.createStringLiteral(e,0===n)}function NY(e,n){return Vh(e,n)?1:0}function DY(e,n){if(n.quotePreference&&"auto"!==n.quotePreference)return"single"===n.quotePreference?0:1;{const n=e.imports&&D(e.imports,(e=>_C(e)&&!$y(e.parent)));return n?NY(n,e):1}}function OY(e){switch(e){case 0:return"'";case 1:return'"';default:return Nt.assertNever(e)}}function MY(e){const n=PY(e);return void 0===n?void 0:Bc(n)}function PY(e){return"default"!==e.escapedName?e.escapedName:C(e.declarations,(e=>{const n=Xc(e);return n&&79===n.kind?n.escapedText:void 0}))}function FY(e){return o_(e)&&(cw(e.parent)||KI(e.parent)||Oh(e.parent,!1)&&e.parent.arguments[0]===e||pm(e.parent)&&e.parent.arguments[0]===e)}function GY(e){return Nk(e)&&wk(e.parent)&&IC(e.name)&&!e.propertyName}function BY(e,n){const t=e.getTypeAtLocation(n.parent);return t&&e.getPropertyOfType(t,n.name.text)}function UY(e,n,t){if(e)for(;e.parent;){if(Iw(e.parent)||!VY(t,e.parent,n))return e;e=e.parent}}function VY(e,n,t){return cc(e,n.getStart(t))&&n.getEnd()<=oc(e)}function jY(e,n){return jN(e)?D(e.modifiers,(e=>e.kind===n)):void 0}function HY(e,n,t,r,i){const a=240===(gn(t)?t[0]:t).kind?Bh:Of,o=j(n.statements,a);let s=gn(t)?ise.detectImportDeclarationSorting(t,i):3;const c=ise.getOrganizeImportsComparer(i,2===s),l=gn(t)?Re(t,((e,n)=>ise.compareImportsOrRequireStatements(e,n,c))):[t];if(o.length)if(o&&(s=ise.detectImportDeclarationSorting(o,i))){const t=ise.getOrganizeImportsComparer(i,2===s);for(const r of l){const i=ise.getImportDeclarationInsertionIndex(o,r,t);if(0===i){const t=o[0]===n.statements[0]?{leadingTriviaOption:R_e.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(n,o[0],r,!1,t)}else{const t=o[i-1];e.insertNodeAfter(n,t,r)}}}else{const t=Fe(o);t?e.insertNodesAfter(n,t,l):e.insertNodesAtTopOfFile(n,l,r)}else e.insertNodesAtTopOfFile(n,l,r)}function KY(e,n){return Nt.assert(e.isTypeOnly),Tn(e.getChildAt(0,n),mY)}function WY(e,n){return!!e&&!!n&&e.start===n.start&&e.length===n.length}function zY(e,n){return e.fileName===n.fileName&&WY(e.textSpan,n.textSpan)}function qY(e,n){if(e)for(let t=0;t<e.length;t++)if(e.indexOf(e[t])===t){const r=n(e[t],t);if(r)return r}}function JY(e,n,t){for(let r=n;r<t;r++)if(!As(e.charCodeAt(r)))return!1;return!0}function XY(e,n,t){const r=n.tryGetSourcePosition(e);return r&&(!t||t(Ao(r.fileName))?r:void 0)}function YY(e,n,t){const{fileName:r,textSpan:i}=e,a=XY({fileName:r,pos:i.start},n,t);if(!a)return;const o=XY({fileName:r,pos:i.start+i.length},n,t),s=o?o.pos-a.pos:i.length;return{fileName:a.fileName,textSpan:{start:a.pos,length:s},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:$Y(e,n,t),originalContextSpan:e.contextSpan}}function $Y(e,n,t){const r=e.contextSpan&&XY({fileName:e.fileName,pos:e.contextSpan.start},n,t),i=e.contextSpan&&XY({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},n,t);return r&&i?{start:r.pos,length:i.pos-r.pos}:void 0}function QY(e){return!!Mc(e.declarations?De(e.declarations):void 0,(e=>!!qC(e)||!(Nk(e)||wk(e)||Rk(e))&&"quit"))}function ZY(e,n){return e$(e,function(e){const n=e.flags;if(3&n)return QY(e)?13:9;return 4&n||32768&n||65536&n?14:8&n?19:16&n?20:32&n?1:64&n?4:384&n?2:1536&n?11:8192&n?10:262144&n?18:524288&n||2097152&n?0:17}(n))}function e$(e,n){return{text:e,kind:Xq[n]}}function n$(){return e$(" ",16)}function t$(e){return e$(ms(e),5)}function r$(e){return e$(ms(e),15)}function i$(e){return e$(ms(e),12)}function a$(e){return e$(e,13)}function o$(e){return e$(e,14)}function s$(e){const n=hs(e);return void 0===n?c$(e):t$(n)}function c$(e){return e$(e,17)}function l$(e){return e$(e,0)}function d$(e){return e$(e,18)}function u$(e){return e$(e,24)}function _$(e,n){return{text:e,kind:Xq[23],target:{fileName:Dp(n).fileName,textSpan:sY(n)}}}function p$(e){return e$(e,22)}function f$(e,n){var t;const r=[p$(`{@${Mw(e)?"link":Pw(e)?"linkcode":"linkplain"} `)];if(e.name){const i=null==n?void 0:n.getSymbolAtLocation(e.name),a=function(e){let n=e.indexOf("://");if(0===n){for(;n<e.length&&124!==e.charCodeAt(n);)n++;return n}if(0===e.indexOf("()"))return 2;if("<"===e.charAt(0)){let n=0,t=0;for(;t<e.length;)if("<"===e[t]&&n++,">"===e[t]&&n--,t++,!n)return t}return 0}(e.text),o=sf(e.name)+e.text.slice(0,a),s=function(e){let n=0;if(124===e.charCodeAt(n++)){for(;n<e.length&&32===e.charCodeAt(n);)n++;return e.slice(n)}return e}(e.text.slice(a)),c=(null==i?void 0:i.valueDeclaration)||(null==(t=null==i?void 0:i.declarations)?void 0:t[0]);c?(r.push(_$(o,c)),s&&r.push(u$(s))):r.push(u$(o+(a?"":" ")+s))}else e.text&&r.push(u$(e.text));return r.push(p$("}")),r}function m$(e,n){var t;return(null==n?void 0:n.newLineCharacter)||(null==(t=e.getNewLine)?void 0:t.call(e))||fJ}function h$(){return e$("\n",6)}function g$(e){try{return e(pJ),pJ.displayParts()}finally{pJ.clear()}}function y$(e,n,t,r=0){return g$((i=>{e.writeType(n,t,17408|r,i)}))}function v$(e,n,t,r,i=0){return g$((a=>{e.writeSymbol(n,t,r,8|i,a)}))}function b$(e,n,t,r=0){return r|=25632,g$((i=>{e.writeSignature(n,t,r,void 0,i)}))}function E$(e,n){const t=n.getSourceFile();return g$((n=>{tj().writeNode(4,e,t,n)}))}function T$(e){return!!e.parent&&_d(e.parent)&&e.parent.propertyName===e}function x$(e,n){return Px(e,n.getScriptKind&&n.getScriptKind(e))}function S$(e,n){let t=e;for(;A$(t)||up(t)&&t.links.target;)t=up(t)&&t.links.target?t.links.target:BE(t,n);return t}function A$(e){return 0!==(2097152&e.flags)}function L$(e,n){return eB(BE(e,n))}function C$(e,n){for(;As(e.charCodeAt(n));)n+=1;return n}function k$(e,n){for(;n>-1&&Ls(e.charCodeAt(n));)n-=1;return n+1}function I$(e,n=!0){const t=e&&R$(e);return t&&!n&&O$(t),t}function w$(e,n,t){let r=t(e);return r?FA(r,e):r=R$(e,t),r&&!n&&O$(r),r}function R$(e,n){const t=n?e=>w$(e,!0,n):I$,r=EB(e,t,UV,n?e=>e&&D$(e,!0,n):e=>e&&N$(e),t);if(r===e){return VN(_C(e)?FA(gA.createStringLiteralFromNode(e),e):dC(e)?FA(gA.createNumericLiteral(e.text,e.numericLiteralFlags),e):gA.cloneNode(e),e)}return r.parent=void 0,r}function N$(e,n=!0){return e&&gA.createNodeArray(e.map((e=>I$(e,n))),e.hasTrailingComma)}function D$(e,n,t){return gA.createNodeArray(e.map((e=>w$(e,n,t))),e.hasTrailingComma)}function O$(e){M$(e),P$(e)}function M$(e){G$(e,1024,B$)}function P$(e){G$(e,2048,eT)}function F$(e,n){const t=e.getSourceFile();!function(e,n){const t=e.getFullStart(),r=e.getStart();for(let i=t;i<r;i++)if(10===n.charCodeAt(i))return!0;return!1}(e,t.text)?K$(e,n,t):j$(e,n,t),H$(e,n,t)}function G$(e,n,t){HA(e,n);const r=t(e);r&&G$(r,n,t)}function B$(e){return e.forEachChild((e=>e))}function U$(e,n){let t=e;for(let r=1;!Up(n,t);r++)t=`${e}_${r}`;return t}function V$(e,n,t,r){let i=0,a=-1;for(const{fileName:o,textChanges:s}of e){Nt.assert(o===n);for(const e of s){const{span:n,newText:o}=e,s=z$(o,dv(t));if(-1!==s&&(a=n.start+i+s,!r))return a;i+=o.length-n.length}}return Nt.assert(r),Nt.assert(a>=0),a}function j$(e,n,t,r,i){Gs(t.text,e.pos,W$(n,t,r,i,tL))}function H$(e,n,t,r,i){Bs(t.text,e.end,W$(n,t,r,i,aL))}function K$(e,n,t,r,i){Bs(t.text,e.pos,W$(n,t,r,i,tL))}function W$(e,n,t,r,i){return(a,o,s,c)=>{3===s?(a+=2,o-=2):a+=2,i(e,t||s,n.text.slice(a,o),void 0!==r?r:c)}}function z$(e,n){if(pt(e,n))return 0;let t=e.indexOf(" "+n);return-1===t&&(t=e.indexOf("."+n)),-1===t&&(t=e.indexOf('"'+n)),-1===t?-1:t+1}function q$(e){return Yk(e)&&27===e.operatorToken.kind||Ok(e)||iI(e)&&Ok(e.expression)}function J$(e,n,t){const r=$g(e.parent);switch(r.kind){case 211:return n.getContextualType(r,t);case 223:{const{left:i,operatorToken:a,right:o}=r;return Y$(a.kind)?n.getTypeAtLocation(e===o?i:o):n.getContextualType(e,t)}case 292:return Z$(r,n);default:return n.getContextualType(e,t)}}function X$(e,n,t){const r=DY(e,n),i=JSON.stringify(t);return 0===r?`'${fv(i).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:i}function Y$(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function $$(e){switch(e.kind){case 10:case 14:case 225:case 212:return!0;default:return!1}}function Q$(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function Z$(e,n){return n.getTypeAtLocation(e.parent.parent.expression)}function eQ(e,n,t,r){const i=t.getTypeChecker();let a=!0;const o=()=>a=!1,s=i.typeToTypeNode(e,n,1,{trackSymbol:(e,n,t)=>(a=a&&0===i.isSymbolAccessible(e,n,t,!1).accessibility,!a),reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:CY(t,r)});return a?s:void 0}function nQ(e){return 176===e||177===e||178===e||168===e||170===e}function tQ(e){return 259===e||173===e||171===e||174===e||175===e}function rQ(e){return 264===e}function iQ(e){return 240===e||241===e||243===e||248===e||249===e||250===e||254===e||256===e||169===e||262===e||269===e||268===e||275===e||267===e||274===e}function aQ(e,n,t){const r=Mc(n,(n=>n.end!==e?"quit":hJ(n.kind)));return!!r&&function(e,n){const t=e.getLastToken(n);if(t&&26===t.kind)return!1;if(nQ(e.kind)){if(t&&27===t.kind)return!1}else if(rQ(e.kind)){const t=Ge(e.getChildren(n));if(t&&UI(t))return!1}else if(tQ(e.kind)){const t=Ge(e.getChildren(n));if(t&&Fm(t))return!1}else if(!iQ(e.kind))return!1;if(243===e.kind)return!0;const r=kX(e,Mc(e,(e=>!e.parent)),n);return!r||19===r.kind||n.getLineAndCharacterOfPosition(e.getEnd()).line!==n.getLineAndCharacterOfPosition(r.getStart(n)).line}(r,t)}function oQ(e){let n=0,t=0;return CD(e,(function r(i){if(iQ(i.kind)){const r=i.getLastToken(e);26===(null==r?void 0:r.kind)?n++:t++}else if(nQ(i.kind)){const r=i.getLastToken(e);if(26===(null==r?void 0:r.kind))n++;else if(r&&27!==r.kind){Ss(e,r.getStart(e)).line!==Ss(e,rm(e,r.end).start).line&&t++}}return n+t>=5||CD(i,r)})),0===n&&t<=1||n/t>.2}function sQ(e,n){return _Q(e,e.getDirectories,n)||[]}function cQ(e,n,t,r,a){return _Q(e,e.readDirectory,n,t,r,a)||i}function lQ(e,n){return _Q(e,e.fileExists,n)}function dQ(e,n){return uQ((()=>uE(n,e)))||!1}function uQ(e){try{return e()}catch(Sa){return}}function _Q(e,n,...t){return uQ((()=>n&&n.apply(e,t)))}function pQ(e,n,t){const r=[];return Ho(e,(e=>{if(e===t)return!0;const i=Eo(e,"package.json");lQ(n,i)&&r.push(i)})),r}function fQ(e,n){let t;return Ho(e,(e=>"node_modules"===e||(t=oH(e,(e=>lQ(n,e)),"package.json"),!!t||void 0))),t}function mQ(e,n){if(!n.fileExists)return[];const t=[];return Ho(po(e),(e=>{const r=Eo(e,"package.json");if(n.fileExists(r)){const e=hQ(r,n);e&&t.push(e)}})),t}function hQ(e,n){if(!n.readFile)return;const t=["dependencies","devDependencies","optionalDependencies","peerDependencies"],r=function(e){try{return JSON.parse(e)}catch(Sa){return}}(n.readFile(e)||""),i={};if(r)for(const s of t){const e=r[s];if(!e)continue;const n=new Map;for(const t in e)n.set(t,e[t]);i[s]=n}const a=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return{...i,parseable:!!r,fileName:e,get:o,has:(e,n)=>!!o(e,n)};function o(e,n=15){for(const[t,r]of a)if(r&&n&t){const n=r.get(e);if(void 0!==n)return n}}}function gQ(e,n,t){const r=(t.getPackageJsonsVisibleToFile&&t.getPackageJsonsVisibleToFile(e.fileName)||mQ(e.fileName,t)).filter((e=>e.parseable));let i,a,o;return{allowsImportingAmbientModule:function(e,n){if(!r.length||!e.valueDeclaration)return!0;if(a){const n=a.get(e);if(void 0!==n)return n}else a=new Map;const t=fv(e.getName());if(c(t))return a.set(e,!0),!0;const i=l(e.valueDeclaration.getSourceFile().fileName,n);if("undefined"===typeof i)return a.set(e,!0),!0;const o=s(i)||s(t);return a.set(e,o),o},allowsImportingSourceFile:function(e,n){if(!r.length)return!0;if(o){const n=o.get(e);if(void 0!==n)return n}else o=new Map;const t=l(e.fileName,n);if(!t)return o.set(e,!0),!0;const i=s(t);return o.set(e,i),i},allowsImportingSpecifier:function(e){if(!r.length||c(e))return!0;if(ro(e)||eo(e))return!0;return s(e)}};function s(e){const n=d(e);for(const t of r)if(t.has(n)||t.has(MF(n)))return!0;return!1}function c(n){return!!(Ch(e)&&bq.nodeCoreModules.has(n)&&(void 0===i&&(i=yQ(e)),i))}function l(r,i){if(!rt(r,"node_modules"))return;const a=MG.getNodeModulesPackageName(t.getCompilationSettings(),e,r,i,n);return a?ro(a)||eo(a)?void 0:d(a):void 0}function d(e){const n=go(FF(e)).slice(1);return pt(n[0],"@")?`${n[0]}/${n[1]}`:n[0]}}function yQ(e){return ce(e.imports,(({text:e})=>bq.nodeCoreModules.has(e)))}function vQ(e){return G(go(e),"node_modules")}function bQ(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function EQ(e,n){const t=Ke(n,sY(e),Cn,Vn);if(t>=0){const r=n[t];return Nt.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Tn(r,bQ)}}function TQ(e,n){var t;let r=Ke(n,e.start,(e=>e.start),Un);for(r<0&&(r=~r);(null==(t=n[r-1])?void 0:t.start)===e.start;)r--;const i=[],a=oc(e);for(;;){const t=En(n[r],bQ);if(!t||t.start>a)break;dc(e,t)&&i.push(t),r++}return i}function xQ({startPosition:e,endPosition:n}){return vc(e,void 0===n?e:n)}function SQ(e,n){return Mc(SX(e,n.start),(t=>t.getStart(e)<n.start||t.getEnd()>oc(n)?"quit":mu(t)&&WY(n,sY(t,e))))}function AQ(e,n,t=Cn){return e?gn(e)?t(W(e,n)):n(e,0):void 0}function LQ(e){return gn(e)?Me(e):e}function CQ(e,n){if(IQ(e)){const t=wQ(e);if(t)return t;const r=$te.moduleSymbolToValidIdentifier(RQ(e),n,!1),i=$te.moduleSymbolToValidIdentifier(RQ(e),n,!0);return r===i?r:[r,i]}return e.name}function kQ(e,n,t){return IQ(e)?wQ(e)||$te.moduleSymbolToValidIdentifier(RQ(e),n,!!t):e.name}function IQ(e){return!(33554432&e.flags)&&("export="===e.escapedName||"default"===e.escapedName)}function wQ(e){return C(e.declarations,(e=>{var n,t;return ZI(e)?null==(n=En(qR(e.expression),IC))?void 0:n.text:null==(t=En(Xc(e),IC))?void 0:t.text}))}function RQ(e){var n;return Nt.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${Nt.formatSymbolFlags(e.flags)}. Declarations: ${null==(n=e.declarations)?void 0:n.map((e=>{const n=Nt.formatSyntaxKind(e.kind),t=Ih(e),{expression:r}=e;return(t?"[JS]":"")+n+(r?` (expression: ${Nt.formatSyntaxKind(r.kind)})`:"")})).join(", ")}.`)}function NQ(e,n,t){const r=n.length;if(r+t>e.length)return!1;for(let i=0;i<r;i++)if(n.charCodeAt(i)!==e.charCodeAt(i+t))return!1;return!0}function DQ(e){return 95===e.charCodeAt(0)}function OQ(e){return!MQ(e)}function MQ(e){const n=e.getSourceFile();return!(!n.externalModuleIndicator&&!n.commonJsModuleIndicator)&&(Ih(e)||!Mc(e,(e=>BI(e)&&Sf(e))))}function PQ(e){return!!(8192&Rc(e))}function FQ(e,n){const t=C(e.imports,(e=>{if(bq.nodeCoreModules.has(e.text))return pt(e.text,"node:")}));return null!=t?t:n.usesUriStyleNodeCoreModules}function GQ(e){return"\n"===e?1:0}function BQ(e){return gn(e)?bT(xT(e[0]),e.slice(1)):xT(e)}function UQ({options:e},n){const t=!e.semicolons||"ignore"===e.semicolons,r="remove"===e.semicolons||t&&!oQ(n);return{...e,semicolons:r?"remove":"ignore"}}function VQ(e){return 2===e||3===e}function jQ(e,n){return e.isSourceFileFromExternalLibrary(n)||e.isSourceFileDefaultLibrary(n)}function HQ(e,n){const t=new Set,r=new Set,i=new Set;for(const o of n)if(!Ew(o)){const n=ey(o.expression);if(sd(n))switch(n.kind){case 14:case 10:t.add(n.text);break;case 8:r.add(parseInt(n.text));break;case 9:const e=hS(et(n.text,"n")?n.text.slice(0,-1):n.text);e&&i.add(mS(e))}else{const n=e.getSymbolAtLocation(o.expression);if(n&&n.valueDeclaration&&Cw(n.valueDeclaration)){const t=e.getConstantValue(n.valueDeclaration);void 0!==t&&a(t)}}}return{addValue:a,hasValue:function(e){switch(typeof e){case"string":return t.has(e);case"number":return r.has(e);case"object":return i.has(mS(e))}}};function a(e){switch(typeof e){case"string":t.add(e);break;case"number":r.add(e)}}}var KQ,WQ,zQ=E({"src/services/utilities.ts"(){Bfe(),cJ=Xs(99,!0),lJ=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(lJ||{}),dJ=/^\/\/\/\s*</,uJ=[131,129,160,134,95,138,141,144,104,148,149,146,152,153,110,114,155,156,157],_J=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(_J||{}),pJ=function(){const e=10*__;let n,t,r,i;c();const a=e=>s(e,17);return{displayParts:()=>{const t=n.length&&n[n.length-1].text;return i>e&&t&&"..."!==t&&(As(t.charCodeAt(t.length-1))||n.push(e$(" ",16)),n.push(e$("...",15))),n},writeKeyword:e=>s(e,5),writeOperator:e=>s(e,12),writePunctuation:e=>s(e,15),writeTrailingSemicolon:e=>s(e,15),writeSpace:e=>s(e,16),writeStringLiteral:e=>s(e,8),writeParameter:e=>s(e,13),writeProperty:e=>s(e,14),writeLiteral:e=>s(e,8),writeSymbol:function(t,r){i>e||(o(),i+=t.length,n.push(ZY(t,r)))},writeLine:function(){i>e||(i+=1,n.push(h$()),t=!0)},write:a,writeComment:a,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:wn,getIndent:()=>r,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},clear:c};function o(){if(!(i>e)&&t){const e=hv(r);e&&(i+=e.length,n.push(e$(e,16))),t=!1}}function s(t,r){i>e||(o(),i+=t.length,n.push(e$(t,r)))}function c(){n=[],t=!0,r=0,i=0}}(),fJ="\n",mJ="anonymous function",hJ=yt(nQ,tQ,rQ,iQ)}});function qQ(e){let n=1;const t=un(),r=new Map,a=new Map;let o;const s={isUsableByFile:e=>e===o,isEmpty:()=>!t.size,clear:()=>{t.clear(),r.clear(),o=void 0},add:(e,i,c,l,d,u,_,p)=>{let f;if(e!==o&&(s.clear(),o=e),d){const n=KS(d.fileName);if(n){const{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i}=n;if(f=GF(FF(d.fileName.substring(r+1,i))),pt(e,d.path.substring(0,t))){const e=a.get(f),n=d.fileName.substring(0,r+1);if(e){t>e.indexOf(lP)&&a.set(f,n)}else a.set(f,n)}}}const m=1===u&&iE(i)||i,h=0===u||gY(m)?Bc(c):CQ(m,void 0),g="string"===typeof h?h:h[0],y="string"===typeof h?void 0:h[1],v=fv(l.name),b=n++,E=BE(i,p),T=33554432&i.flags?void 0:i,x=33554432&l.flags?void 0:l;T&&x||r.set(b,[i,l]),t.add(function(e,n,t,r){const i=t||"";return`${e}|${eB(BE(n,r))}|${i}`}(g,i,rc(v)?void 0:v,p),{id:b,symbolTableKey:c,symbolName:g,capitalizedSymbolName:y,moduleName:v,moduleFile:d,moduleFileName:null==d?void 0:d.fileName,packageName:f,exportKind:u,targetFlags:E.flags,isFromPackageJson:_,symbol:T,moduleSymbol:x})},get:(e,n)=>{if(e!==o)return;const r=t.get(n);return null==r?void 0:r.map(c)},search:(n,r,i,s)=>{if(n===o)return gp(t,((n,t)=>{const{symbolName:o,ambientModuleName:l}=function(e){const n=e.substring(0,e.indexOf("|")),t=e.substring(e.lastIndexOf("|")+1),r=""===t?void 0:t;return{symbolName:n,ambientModuleName:r}}(t),d=r&&n[0].capitalizedSymbolName||o;if(i(d,n[0].targetFlags)){const r=n.map(c).filter(((t,r)=>function(n,t){if(!t||!n.moduleFileName)return!0;const r=e.getGlobalTypingsCacheLocation();if(r&&pt(n.moduleFileName,r))return!0;const i=a.get(t);return!i||pt(n.moduleFileName,i)}(t,n[r].packageName)));if(r.length){const e=s(r,d,!!l,t);if(void 0!==e)return e}}}))},releaseSymbols:()=>{r.clear()},onFileChanged:(e,n,t)=>(!l(e)||!l(n))&&(o&&o!==n.path||t&&yQ(e)!==yQ(n)||!ve(e.moduleAugmentations,n.moduleAugmentations)||!function(e,n){if(!ve(e.ambientModuleNames,n.ambientModuleNames))return!1;let t=-1,r=-1;for(const i of n.ambientModuleNames){const a=e=>bf(e)&&e.name.text===i;if(t=M(e.statements,a,t+1),r=M(n.statements,a,r+1),e.statements[t]!==n.statements[r])return!1}return!0}(e,n)?(s.clear(),!0):(o=n.path,!1))};return Nt.isDebugging&&Object.defineProperty(s,"__cache",{get:()=>t}),s;function c(n){if(n.symbol&&n.moduleSymbol)return n;const{id:t,exportKind:a,targetFlags:o,isFromPackageJson:s,moduleFileName:c}=n,[l,d]=r.get(t)||i;if(l&&d)return{symbol:l,moduleSymbol:d,moduleFileName:c,exportKind:a,targetFlags:o,isFromPackageJson:s};const u=(s?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),_=n.moduleSymbol||d||Nt.checkDefined(n.moduleFile?u.getMergedSymbol(n.moduleFile.symbol):u.tryFindAmbientModule(n.moduleName)),p=n.symbol||l||Nt.checkDefined(2===a?u.resolveExternalModuleSymbol(_):u.tryGetMemberInModuleExportsAndProperties(Bc(n.symbolTableKey),_),`Could not find symbol '${n.symbolName}' by key '${n.symbolTableKey}' in module ${_.name}`);return r.set(t,[p,_]),{symbol:p,moduleSymbol:_,moduleFileName:c,exportKind:a,targetFlags:o,isFromPackageJson:s}}function l(e){return!e.commonJsModuleIndicator&&!e.externalModuleIndicator&&!e.moduleAugmentations&&!e.ambientModuleNames}}function JQ(e,n,t,r,i,a,o){var s;if(n===t)return!1;const c=null==o?void 0:o.get(n.path,t.path,r,{});if(void 0!==(null==c?void 0:c.isBlockedByPackageJsonDependencies))return!c.isBlockedByPackageJsonDependencies;const l=Tv(a),d=null==(s=a.getGlobalTypingsCacheLocation)?void 0:s.call(a),u=!!MG.forEachFileNameOfModule(n.fileName,t.fileName,a,!1,(r=>{const i=e.getSourceFile(r);return(i===t||!i)&&function(e,n,t,r){const i=Ho(n,(e=>"node_modules"===fo(e)?e:void 0)),a=i&&po(t(i));return void 0===a||pt(t(e),a)||!!r&&pt(t(r),a)}(n.fileName,r,l,d)}));if(i){const e=u&&i.allowsImportingSourceFile(t,a);return null==o||o.setBlockedByPackageJsonDependencies(n.path,t.path,r,{},!e),e}return u}function XQ(e,n,t,r,i){var a,o;const s=Ev(n),c=t.autoImportFileExcludePatterns&&ee(t.autoImportFileExcludePatterns,(e=>{const n=kx(e,"","exclude");return n?Nx(n,s):void 0}));YQ(e.getTypeChecker(),e.getSourceFiles(),c,((n,t)=>i(n,t,e,!1)));const l=r&&(null==(a=n.getPackageJsonAutoImportProvider)?void 0:a.call(n));if(l){const t=cr(),r=e.getTypeChecker();YQ(l.getTypeChecker(),l.getSourceFiles(),c,((n,t)=>{(t&&!e.getSourceFile(t.fileName)||!t&&!r.resolveName(n.name,void 0,1536,!1))&&i(n,t,l,!0)})),null==(o=n.log)||o.call(n,"forEachExternalModuleToImportFrom autoImportProvider: "+(cr()-t))}}function YQ(e,n,t,r){var i;const a=t&&(e=>t.some((n=>n.test(e))));for(const o of e.getAmbientModules())rt(o.name,"*")||t&&(null==(i=o.declarations)?void 0:i.every((e=>a(e.getSourceFile().fileName))))||r(o,void 0);for(const o of n)om(o)&&!(null==a?void 0:a(o.fileName))&&r(e.getMergedSymbol(o.symbol),o)}function $Q(e,n,t,r,i){var a,o,s,c,l;const d=cr();null==(a=n.getPackageJsonAutoImportProvider)||a.call(n);const u=(null==(o=n.getCachedExportInfoMap)?void 0:o.call(n))||qQ({getCurrentProgram:()=>t,getPackageJsonAutoImportProvider:()=>{var e;return null==(e=n.getPackageJsonAutoImportProvider)?void 0:e.call(n)},getGlobalTypingsCacheLocation:()=>{var e;return null==(e=n.getGlobalTypingsCacheLocation)?void 0:e.call(n)}});if(u.isUsableByFile(e.path))return null==(s=n.log)||s.call(n,"getExportInfoMap: cache hit"),u;null==(c=n.log)||c.call(n,"getExportInfoMap: cache miss or empty; calculating new results");const _=t.getCompilerOptions();let p=0;try{XQ(t,n,r,!0,((n,t,r,a)=>{++p%100===0&&(null==i||i.throwIfCancellationRequested());const o=new Map,s=r.getTypeChecker(),c=QQ(n,s,_);c&&ZQ(c.symbol,s)&&u.add(e.path,c.symbol,1===c.exportKind?"default":"export=",n,t,c.exportKind,a,s),s.forEachExportAndPropertyOfModule(n,((r,i)=>{r!==(null==c?void 0:c.symbol)&&ZQ(r,s)&&nT(o,i)&&u.add(e.path,r,i,n,t,0,a,s)}))}))}catch(f){throw u.clear(),f}return null==(l=n.log)||l.call(n,`getExportInfoMap: done in ${cr()-d} ms`),u}function QQ(e,n,t){const r=function(e,n){const t=n.resolveExternalModuleSymbol(e);if(t!==e)return{symbol:t,exportKind:2};const r=n.tryGetMemberInModuleExports("default",e);if(r)return{symbol:r,exportKind:1}}(e,n);if(!r)return;const{symbol:i,exportKind:a}=r,o=eZ(i,n,t);return o&&{symbol:i,exportKind:a,...o}}function ZQ(e,n){return!n.isUndefinedSymbol(e)&&!n.isUnknownSymbol(e)&&!Uy(e)&&!Vy(e)}function eZ(e,n,t){const r=iE(e);if(r)return{resolvedSymbol:r,name:r.name};const i=(a=e).declarations&&C(a.declarations,(e=>{var n;return ZI(e)?null==(n=En(qR(e.expression),IC))?void 0:n.text:tw(e)?(Nt.assert("default"===e.name.text,"Expected the specifier to be a default export"),e.propertyName&&e.propertyName.text):void 0}));var a;if(void 0!==i)return{resolvedSymbol:e,name:i};if(2097152&e.flags){const r=n.getImmediateAliasedSymbol(e);if(r&&r.parent)return eZ(r,n,t)}return"default"!==e.escapedName&&"export="!==e.escapedName?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:kQ(e,t.target)}}var nZ,tZ=E({"src/services/exportInfoMap.ts"(){Bfe(),KQ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(KQ||{}),WQ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(WQ||{})}});function rZ(){const e=Xs(99,!1);function n(n,t,r){let i=0,a=0;const o=[],{prefix:s,pushTemplate:c}=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return Nt.assertNever(e)}}(t);n=s+n;const l=s.length;c&&o.push(15),e.setText(n);let d=0;const u=[];let _=0;do{i=e.scan(),Cy(i)||(p(),a=i);const t=e.getTextPos();if(aZ(e.getTokenPos(),t,l,sZ(i),u),t>=n.length){const n=iZ(e,i,Fe(o));void 0!==n&&(d=n)}}while(1!==i);function p(){switch(i){case 43:case 68:nZ[a]||13!==e.reScanSlashToken()||(i=13);break;case 29:79===a&&_++;break;case 31:_>0&&_--;break;case 131:case 152:case 148:case 134:case 153:_>0&&!r&&(i=79);break;case 15:o.push(i);break;case 18:o.length>0&&o.push(i);break;case 19:if(o.length>0){const n=Fe(o);15===n?(i=e.reScanTemplateToken(!1),17===i?o.pop():Nt.assertEqual(i,16,"Should have been a template middle.")):(Nt.assertEqual(n,18,"Should have been an open brace"),o.pop())}break;default:if(!by(i))break;(24===a||by(a)&&by(i)&&!function(e,n){if(!eY(e))return!0;switch(n){case 137:case 151:case 135:case 124:case 127:return!0;default:return!1}}(a,i))&&(i=79)}}return{endOfLineState:d,spans:u}}return{getClassificationsForLine:function(e,t,r){return function(e,n){const t=[],r=e.spans;let i=0;for(let o=0;o<r.length;o+=3){const e=r[o],n=r[o+1],a=r[o+2];if(i>=0){const n=e-i;n>0&&t.push({length:n,classification:4})}t.push({length:n,classification:oZ(a)}),i=e+n}const a=n.length-i;a>0&&t.push({length:a,classification:4});return{entries:t,finalLexState:e.endOfLineState}}(n(e,t,r),e)},getEncodedLexicalClassifications:n}}function iZ(e,n,t){switch(n){case 10:{if(!e.isUnterminated())return;const n=e.getTokenText(),t=n.length-1;let r=0;for(;92===n.charCodeAt(t-r);)r++;if(0===(1&r))return;return 34===n.charCodeAt(0)?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(ld(n)){if(!e.isUnterminated())return;switch(n){case 17:return 5;case 14:return 4;default:return Nt.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+n)}}return 15===t?6:void 0}}function aZ(e,n,t,r,i){if(8===r)return;0===e&&t>0&&(e+=t);const a=n-e;a>0&&i.push(e-t,a,r)}function oZ(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function sZ(e){if(by(e))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}(e)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(e))return 5;if(e>=18&&e<=78)return 10;switch(e){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return ld(e)?6:2}}function cZ(e,n,t,r,i){return pZ(dZ(e,n,t,r,i))}function lZ(e,n){switch(n){case 264:case 260:case 261:case 259:case 228:case 215:case 216:e.throwIfCancellationRequested()}}function dZ(e,n,t,r,i){const a=[];return t.forEachChild((function o(s){if(s&&fc(i,s.pos,s.getFullWidth())){if(lZ(n,s.kind),IC(s)&&!Vp(s)&&r.has(s.escapedText)){const n=e.getSymbolAtLocation(s),r=n&&uZ(n,vJ(s),e);r&&function(e,n,t){const r=n-e;Nt.assert(r>0,`Classification had non-positive length of ${r}`),a.push(e),a.push(r),a.push(t)}(s.getStart(t),s.getEnd(),r)}s.forEachChild(o)}})),{spans:a,endOfLineState:0}}function uZ(e,n,t){const r=e.getFlags();return 0===(2885600&r)?void 0:32&r?11:384&r?12:524288&r?16:1536&r?4&n||1&n&&function(e){return ce(e.declarations,(e=>BI(e)&&1===JF(e)))}(e)?14:void 0:2097152&r?uZ(t.getAliasedSymbol(e),n,t):2&n?64&r?13:262144&r?15:void 0:void 0}function _Z(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function pZ(e){Nt.assert(e.spans.length%3===0);const n=e.spans,t=[];for(let r=0;r<n.length;r+=3)t.push({textSpan:yc(n[r],n[r+1]),classificationType:_Z(n[r+2])});return t}function fZ(e,n,t){return pZ(mZ(e,n,t))}function mZ(e,n,t){const r=t.start,i=t.length,a=Xs(99,!1,n.languageVariant,n.text),o=Xs(99,!1,n.languageVariant,n.text),s=[];return h(n),{spans:s,endOfLineState:0};function c(e,n,t){s.push(e),s.push(n),s.push(t)}function l(e,t,r,i){if(3===t){const t=PD(n.text,r,i);if(t&&t.jsDoc)return CS(t.jsDoc,e),void function(e){var n,t,r,i,a,o,s,l;let _=e.pos;if(e.tags)for(const f of e.tags){f.pos!==_&&d(_,f.pos-_),c(f.pos,1,10),c(f.tagName.pos,f.tagName.end-f.tagName.pos,18),_=f.tagName.end;let e=f.tagName.end;switch(f.kind){case 344:const c=f;p(c),e=c.isNameFirst&&(null==(n=c.typeExpression)?void 0:n.end)||c.name.end;break;case 351:const d=f;e=d.isNameFirst&&(null==(t=d.typeExpression)?void 0:t.end)||d.name.end;break;case 348:u(f),_=f.end,e=f.typeParameters.end;break;case 349:const m=f;e=312===(null==(r=m.typeExpression)?void 0:r.kind)&&(null==(i=m.fullName)?void 0:i.end)||(null==(a=m.typeExpression)?void 0:a.end)||e;break;case 341:case 346:case 343:e=f.typeExpression.end;break;case 347:h(f.typeExpression),_=f.end,e=f.typeExpression.end;break;case 345:h(f.typeExpression),_=f.end,e=(null==(o=f.typeExpression)?void 0:o.end)||e;break;case 350:e=(null==(s=f.name)?void 0:s.end)||e;break;case 331:case 332:e=f.class.end;break;case 352:h(f.typeExpression),_=f.end,e=(null==(l=f.typeExpression)?void 0:l.end)||e}"object"===typeof f.comment?d(f.comment.pos,f.comment.end-f.comment.pos):"string"===typeof f.comment&&d(e,f.end-e)}_!==e.end&&d(_,e.end-_);return;function p(e){e.isNameFirst&&(d(_,e.name.pos-_),c(e.name.pos,e.name.end-e.name.pos,17),_=e.name.end),e.typeExpression&&(d(_,e.typeExpression.pos-_),h(e.typeExpression),_=e.typeExpression.end),e.isNameFirst||(d(_,e.name.pos-_),c(e.name.pos,e.name.end-e.name.pos,17),_=e.name.end)}}(t.jsDoc)}else if(2===t&&function(e,t){const r=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,i=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,a=n.text.substr(e,t),o=r.exec(a);if(!o)return!1;if(!o[3]||!(o[3]in ua))return!1;let s=e;d(s,o[1].length),s+=o[1].length,c(s,o[2].length,10),s+=o[2].length,c(s,o[3].length,21),s+=o[3].length;const l=o[4];let u=s;for(;;){const e=i.exec(l);if(!e)break;const n=s+e.index+e[1].length;n>u&&(d(u,n-u),u=n),c(u,e[2].length,22),u+=e[2].length,e[3].length&&(d(u,e[3].length),u+=e[3].length),c(u,e[4].length,5),u+=e[4].length,e[5].length&&(d(u,e[5].length),u+=e[5].length),c(u,e[6].length,24),u+=e[6].length}s+=o[4].length,s>u&&d(u,s-u);o[5]&&(c(s,o[5].length,10),s+=o[5].length);const _=e+t;s<_&&d(s,_-s);return!0}(r,i))return;d(r,i)}function d(e,n){c(e,n,1)}function u(e){for(const n of e.getChildren())h(n)}function _(e,n,t){let r;for(r=n;r<t&&!Cs(e.charCodeAt(r));r++);for(c(n,r-n,1),o.setTextPos(r);o.getTextPos()<t;)p()}function p(){const e=o.getTextPos(),n=o.scan(),t=o.getTextPos(),r=m(n);r&&c(e,t-e,r)}function f(e){if(zw(e))return!0;if(Vp(e))return!0;const t=function(e){switch(e.parent&&e.parent.kind){case 283:if(e.parent.tagName===e)return 19;break;case 284:if(e.parent.tagName===e)return 20;break;case 282:if(e.parent.tagName===e)return 21;break;case 288:if(e.parent.name===e)return 22}return}(e);if(!id(e)&&11!==e.kind&&void 0===t)return!1;const r=11===e.kind?e.pos:function(e){for(a.setTextPos(e.pos);;){const t=a.getTextPos();if(!Rs(n.text,t))return t;const r=a.scan(),i=a.getTextPos(),o=i-t;if(!Cy(r))return t;switch(r){case 4:case 5:continue;case 2:case 3:l(e,r,t,o),a.setTextPos(i);continue;case 7:const s=n.text,d=s.charCodeAt(t);if(60===d||62===d){c(t,o,1);continue}Nt.assert(124===d||61===d),_(s,t,i);break;case 6:break;default:Nt.assertNever(r)}}}(e),i=e.end-r;if(Nt.assert(i>=0),i>0){const n=t||m(e.kind,e);n&&c(r,i,n)}return!0}function m(e,n){if(by(e))return 3;if((29===e||31===e)&&n&&JX(n.parent))return 10;if(QX(e)){if(n){const t=n.parent;if(63===e&&(257===t.kind||169===t.kind||166===t.kind||288===t.kind))return 5;if(223===t.kind||221===t.kind||222===t.kind||224===t.kind)return 5}return 10}if(8===e)return 4;if(9===e)return 25;if(10===e)return n&&288===n.parent.kind?24:6;if(13===e)return 6;if(ld(e))return 6;if(11===e)return 23;if(79===e){if(n){switch(n.parent.kind){case 260:return n.parent.name===n?11:void 0;case 165:return n.parent.name===n?15:void 0;case 261:return n.parent.name===n?13:void 0;case 263:return n.parent.name===n?12:void 0;case 264:return n.parent.name===n?14:void 0;case 166:return n.parent.name===n?Jv(n)?3:17:void 0}if(ql(n.parent))return 3}return 2}}function h(t){if(t&&mc(r,i,t.pos,t.getFullWidth())){lZ(e,t.kind);for(const e of t.getChildren(n))f(e)||h(e)}}}var hZ,gZ=E({"src/services/classifier.ts"(){Bfe(),nZ=tn([79,10,8,9,13,108,45,46,21,23,19,110,95],(e=>e),(()=>!0))}}),yZ=E({"src/services/documentHighlights.ts"(){Bfe(),(e=>{function n(e,n){return{fileName:n.fileName,textSpan:sY(e,n),kind:"none"}}function t(e){return II(e)?[e]:wI(e)?de(e.catchClause?t(e.catchClause):e.tryBlock&&t(e.tryBlock),e.finallyBlock&&t(e.finallyBlock)):Id(e)?void 0:i(e,t)}function r(e){return Yl(e)?[e]:Id(e)?void 0:i(e,r)}function i(e,n){const t=[];return e.forEachChild((e=>{const r=n(e);void 0!==r&&t.push(...yn(r))})),t}function a(e,n){const t=o(n);return!!t&&t===e}function o(e){return Mc(e,(n=>{switch(n.kind){case 252:if(248===e.kind)return!1;case 245:case 246:case 247:case 244:case 243:return!e.label||function(e,n){return!!Mc(e.parent,(e=>kI(e)?e.label.escapedText===n:"quit"))}(n,e.label.escapedText);default:return Id(n)&&"quit"}}))}function s(e,n,...t){return!(!n||!G(t,n.kind))&&(e.push(n),!0)}function c(e){const n=[];if(s(n,e.getFirstToken(),97,115,90)&&243===e.kind){const t=e.getChildren();for(let e=t.length-1;e>=0&&!s(n,t[e],115);e--);}return A(r(e.statement),(t=>{a(e,t)&&s(n,t.getFirstToken(),81,86)})),n}function l(e){const n=o(e);if(n)switch(n.kind){case 245:case 246:case 247:case 243:case 244:return c(n);case 252:return d(n)}}function d(e){const n=[];return s(n,e.getFirstToken(),107),A(e.caseBlock.clauses,(t=>{s(n,t.getFirstToken(),82,88),A(r(t),(t=>{a(e,t)&&s(n,t.getFirstToken(),81)}))})),n}function u(e,n){const t=[];if(s(t,e.getFirstToken(),111),e.catchClause&&s(t,e.catchClause.getFirstToken(),83),e.finallyBlock){s(t,dX(e,96,n),96)}return t}function _(e,n){const r=function(e){let n=e;for(;n.parent;){const e=n.parent;if(Fm(e)||308===e.kind)return e;if(wI(e)&&e.tryBlock===n&&e.catchClause)return n;n=e}}(e);if(!r)return;const i=[];return A(t(r),(e=>{i.push(dX(e,109,n))})),Fm(r)&&Am(r,(e=>{i.push(dX(e,105,n))})),i}function p(e,n){const r=qm(e);if(!r)return;const i=[];return Am(Tn(r.body,pI),(e=>{i.push(dX(e,105,n))})),A(t(r.body),(e=>{i.push(dX(e,109,n))})),i}function f(e){const n=qm(e);if(!n)return;const t=[];return n.modifiers&&n.modifiers.forEach((e=>{s(t,e,132)})),CD(n,(e=>{m(e,(e=>{qk(e)&&s(t,e.getFirstToken(),133)}))})),t}function m(e,n){n(e),Id(e)||Fd(e)||PI(e)||BI(e)||FI(e)||zd(e)||CD(e,(e=>m(e,n)))}e.getDocumentHighlights=function(e,t,r,i,a){const o=TX(r,i);if(o.parent&&(uw(o.parent)&&o.parent.tagName===o||_w(o.parent))){const{openingElement:e,closingElement:t}=o.parent.parent,i=[e,t].map((({tagName:e})=>n(e,r)));return[{fileName:r.fileName,highlightSpans:i}]}return function(e,n,t,r,i){const a=new Set(i.map((e=>e.fileName))),o=Bae.getReferenceEntriesForNode(e,n,t,i,r,void 0,a);if(!o)return;const s=rn(o.map(Bae.toHighlightSpan),(e=>e.fileName),(e=>e.span)),c=lt(t.useCaseSensitiveFileNames());return Qe(ne(s.entries(),(([e,n])=>{if(!a.has(e)){if(!t.redirectTargetsMap.has(Co(e,t.getCurrentDirectory(),c)))return;const n=t.getSourceFile(e);e=D(i,(e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===n)).fileName,Nt.assert(a.has(e))}return{fileName:e,highlightSpans:n}})))}(i,o,e,t,a)||function(e,t){const r=function(e,t){switch(e.kind){case 99:case 91:return gI(e.parent)?function(e,t){const r=function(e,n){const t=[];for(;gI(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){const r=e.getChildren(n);s(t,r[0],99);for(let e=r.length-1;e>=0&&!s(t,r[e],91);e--);if(!e.elseStatement||!gI(e.elseStatement))break;e=e.elseStatement}return t}(e,t),i=[];for(let a=0;a<r.length;a++){if(91===r[a].kind&&a<r.length-1){const e=r[a],n=r[a+1];let o=!0;for(let r=n.getStart(t)-1;r>=e.end;r--)if(!Ls(t.text.charCodeAt(r))){o=!1;break}if(o){i.push({fileName:t.fileName,textSpan:vc(e.getStart(),n.end),kind:"reference"}),a++;continue}}i.push(n(r[a],t))}return i}(e.parent,t):void 0;case 105:return a(e.parent,AI,p);case 109:return a(e.parent,II,_);case 111:case 83:case 96:return a(83===e.kind?e.parent.parent:e.parent,wI,u);case 107:return a(e.parent,CI,d);case 82:case 88:return Ew(e.parent)||bw(e.parent)?a(e.parent.parent.parent,CI,d):void 0;case 81:case 86:return a(e.parent,Yl,l);case 97:case 115:case 90:return a(e.parent,(e=>yu(e,!0)),c);case 135:return i(ek,[135]);case 137:case 151:return i(Gd,[137,151]);case 133:return a(e.parent,qk,f);case 132:return o(f(e));case 125:return o(function(e){const n=qm(e);if(!n)return;const t=[];return CD(n,(e=>{m(e,(e=>{Zk(e)&&s(t,e.getFirstToken(),125)}))})),t}(e));case 101:return;default:return Td(e.kind)&&(Pu(e.parent)||fI(e.parent))?o((r=e.kind,ee(function(e,n){const t=e.parent;switch(t.kind){case 265:case 308:case 238:case 292:case 293:return 256&n&&MI(e)?[...e.members,e]:t.statements;case 173:case 171:case 259:return[...t.parameters,...Fd(t.parent)?t.parent.members:[]];case 260:case 228:case 261:case 184:const r=t.members;if(92&n){const e=D(t.members,ek);if(e)return[...r,...e.parameters]}else if(256&n)return[...r,t];return r;case 207:return;default:Nt.assertNever(t,"Invalid container kind.")}}(e.parent,Db(r)),(e=>jY(e,r))))):void 0}var r;function i(n,r){return a(e.parent,n,(e=>{var i;return ee(null==(i=En(e,Nu))?void 0:i.symbol.declarations,(e=>n(e)?D(e.getChildren(t),(e=>G(r,e.kind))):void 0))}))}function a(e,n,r){return n(e)?o(r(e,t)):void 0}function o(e){return e&&e.map((e=>n(e,t)))}}(e,t);return r&&[{fileName:t.fileName,highlightSpans:r}]}(o,r)}})(hZ||(hZ={}))}});function vZ(e){return!!e.sourceFile}function bZ(e,n){return EZ(e,n)}function EZ(e,n="",t){const r=new Map,i=lt(!!e);function a(e){return"function"===typeof e.getCompilationSettings?e.getCompilationSettings():e}function o(e,n,t,r,i,a,o,s){return l(e,n,t,r,i,a,!0,o,s)}function s(e,n,t,r,i,o,s,c){return l(e,n,a(t),r,i,o,!1,s,c)}function c(e,n){const t=vZ(e)?e:e.get(Nt.checkDefined(n,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return Nt.assert(void 0===n||!t||t.sourceFile.scriptKind===n,`Script kind should match provided ScriptKind:${n} and sourceFile.scriptKind: ${null==t?void 0:t.sourceFile.scriptKind}, !entry: ${!t}`),t}function l(e,n,i,o,s,l,d,u,_){var p,f,m,h;u=Px(e,u);const g=a(i),y=i===g?void 0:i,v=6===u?100:HT(g),b="object"===typeof _?_:{languageVersion:v,impliedNodeFormat:y&&UH(n,null==(h=null==(m=null==(f=null==(p=y.getCompilerHost)?void 0:p.call(y))?void 0:f.getModuleResolutionCache)?void 0:m.call(f))?void 0:h.getPackageJsonInfoCache(),y,g),setExternalModuleIndicator:jT(g)};b.languageVersion=v;const E=r.size,T=xZ(o,b.impliedNodeFormat),x=re(r,T,(()=>new Map));if(Vr){r.size>E&&Vr.instant(Vr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:g.configFilePath,key:T});const e=!GD(n)&&gp(r,((e,t)=>t!==T&&e.has(n)&&t));e&&Vr.instant(Vr.Phase.Session,"documentRegistryBucketOverlap",{path:n,key1:e,key2:T})}const S=x.get(n);let A=S&&c(S,u);if(!A&&t){const e=t.getDocument(T,n);e&&(Nt.assert(d),A={sourceFile:e,languageServiceRefCount:0},L())}if(A)A.sourceFile.version!==l&&(A.sourceFile=b2(A.sourceFile,s,l,s.getChangeRange(A.sourceFile.scriptSnapshot)),t&&t.setDocument(T,n,A.sourceFile)),d&&A.languageServiceRefCount++;else{const r=v2(e,s,b,l,!1,u);t&&t.setDocument(T,n,r),A={sourceFile:r,languageServiceRefCount:1},L()}return Nt.assert(0!==A.languageServiceRefCount),A.sourceFile;function L(){if(S)if(vZ(S)){const e=new Map;e.set(S.sourceFile.scriptKind,S),e.set(u,A),x.set(n,e)}else S.set(u,A);else x.set(n,A)}}function d(e,n,t,i){const a=Nt.checkDefined(r.get(xZ(n,i))),o=a.get(e),s=c(o,t);s.languageServiceRefCount--,Nt.assert(s.languageServiceRefCount>=0),0===s.languageServiceRefCount&&(vZ(o)?a.delete(e):(o.delete(t),1===o.size&&a.set(e,k(o.values(),Cn))))}return{acquireDocument:function(e,t,r,s,c,l){return o(e,Co(e,n,i),t,TZ(a(t)),r,s,c,l)},acquireDocumentWithKey:o,updateDocument:function(e,t,r,o,c,l){return s(e,Co(e,n,i),t,TZ(a(t)),r,o,c,l)},updateDocumentWithKey:s,releaseDocument:function(e,t,r,a){return d(Co(e,n,i),TZ(t),r,a)},releaseDocumentWithKey:d,getLanguageServiceRefCounts:function(e,n){return Qe(r.entries(),(([t,r])=>{const i=r.get(e),a=i&&c(i,n);return[t,a&&a.languageServiceRefCount]}))},reportStats:function(){const e=Qe(r.keys()).filter((e=>e&&"_"===e.charAt(0))).map((e=>{const n=r.get(e),t=[];return n.forEach(((e,n)=>{vZ(e)?t.push({name:n,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(((e,r)=>t.push({name:n,scriptKind:r,refCount:e.languageServiceRefCount})))})),t.sort(((e,n)=>n.refCount-e.refCount)),{bucket:e,sourceFiles:t}}));return JSON.stringify(e,void 0,2)},getKeyForCompilationSettings:TZ}}function TZ(e){return MP(e,sO)}function xZ(e,n){return n?`${e}|${n}`:e}var SZ=E({"src/services/documentRegistry.ts"(){Bfe()}});function AZ(e,n,t,r,i,a,o){const s=Ev(r),c=lt(s),l=LZ(n,t,c,o),d=LZ(t,n,c,o);return R_e.ChangeTracker.with({host:r,formatContext:i,preferences:a},(i=>{!function(e,n,t,r,i,a,o){const{configFile:s}=e.getCompilerOptions();if(!s)return;const c=po(s.fileName),l=Km(s);if(!l)return;function d(e){const n=Dk(e.initializer)?e.initializer.elements:[e.initializer];let t=!1;for(const r of n)t=u(r)||t;return t}function u(e){if(!_C(e))return!1;const r=CZ(c,e.text),i=t(r);return void 0!==i&&(n.replaceRangeWithText(s,RZ(e,s),_(i)),!0)}function _(e){return Bo(c,e,!o)}NZ(l,((e,t)=>{switch(t){case"files":case"include":case"exclude":{if(d(e)||"include"!==t||!Dk(e.initializer))return;const l=ee(e.initializer.elements,(e=>_C(e)?e.text:void 0));if(0===l.length)return;const u=Rx(c,[],l,o,a);return void(Nx(Nt.checkDefined(u.includeFilePattern),o).test(r)&&!Nx(Nt.checkDefined(u.includeFilePattern),o).test(i)&&n.insertNodeAfter(s,Ge(e.initializer.elements),gA.createStringLiteral(_(i))))}case"compilerOptions":return void NZ(e.initializer,((e,n)=>{const t=HO(n);Nt.assert("listOrElement"!==(null==t?void 0:t.type)),t&&(t.isFilePath||"list"===t.type&&t.element.isFilePath)?d(e):"paths"===n&&NZ(e.initializer,(e=>{if(Dk(e.initializer))for(const n of e.initializer.elements)u(n)}))}))}}))}(e,i,l,n,t,r.getCurrentDirectory(),s),function(e,n,t,r,i,a){const o=e.getSourceFiles();for(const s of o){const c=t(s.fileName),l=null!=c?c:s.fileName,d=po(l),u=r(s.fileName),_=u||s.fileName,p=po(_),f=void 0!==c||void 0!==u;wZ(s,n,(e=>{if(!ro(e))return;const n=CZ(p,e),r=t(n);return void 0===r?void 0:wo(Bo(d,r,a))}),(n=>{const r=e.getTypeChecker().getSymbolAtLocation(n);if((null==r?void 0:r.declarations)&&r.declarations.some((e=>yf(e))))return;const c=void 0!==u?IZ(n,JP(n.text,_,e.getCompilerOptions(),i),t,o):kZ(r,n,s,e,i,t);return void 0!==c&&(c.updated||f&&ro(n.text))?MG.updateModuleSpecifier(e.getCompilerOptions(),s,a(l),c.newFileName,LY(e,i),n.text):void 0}))}}(e,i,l,d,r,c)}))}function LZ(e,n,t,r){const i=t(e);return e=>{const a=r&&r.tryGetSourcePosition({fileName:e,pos:0}),o=function(e){if(t(e)===i)return n;const r=Tx(e,i,t);return void 0===r?void 0:n+"/"+r}(a?a.fileName:e);return a?void 0===o?void 0:function(e,n,t,r){const i=Vo(e,n,r);return CZ(po(t),i)}(a.fileName,o,e,t):o}}function CZ(e,n){return wo(function(e,n){return Ao(Eo(e,n))}(e,n))}function kZ(e,n,t,r,i,a){var o;if(e){const n=D(e.declarations,Iw).fileName,t=a(n);return void 0===t?{newFileName:n,updated:!1}:{newFileName:t,updated:!0}}{const e=LH(t,n);return IZ(n,i.resolveModuleNameLiterals||!i.resolveModuleNames?null==(o=t.resolvedModules)?void 0:o.get(n.text,e):i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(n.text,t.fileName,e),a,r.getSourceFiles())}}function IZ(e,n,t,r){if(!n)return;if(n.resolvedModule){const e=o(n.resolvedModule.resolvedFileName);if(e)return e}const i=A(n.failedLookupLocations,(function(e){const n=t(e);return n&&D(r,(e=>e.fileName===n))?a(e):void 0}))||ro(e.text)&&A(n.failedLookupLocations,a);return i||n.resolvedModule&&{newFileName:n.resolvedModule.resolvedFileName,updated:!1};function a(e){return et(e,"/package.json")?void 0:o(e)}function o(e){const n=t(e);return n&&{newFileName:n,updated:!0}}}function wZ(e,n,t,r){for(const a of e.referencedFiles||i){const r=t(a.fileName);void 0!==r&&r!==e.text.slice(a.pos,a.end)&&n.replaceRangeWithText(e,a,r)}for(const i of e.imports){const t=r(i);void 0!==t&&t!==i.text&&n.replaceRangeWithText(e,RZ(i,e),t)}}function RZ(e,n){return pE(e.getStart(n)+1,e.end-1)}function NZ(e,n){if(Ok(e))for(const t of e.properties)Sw(t)&&_C(t.name)&&n(t,t.name.text)}var DZ,OZ=E({"src/services/getEditsForFileRename.ts"(){Bfe()}});function MZ(e,n){return{kind:e,isCaseSensitive:n}}function PZ(e){const n=new Map,t=e.trim().split(".").map((e=>{return{totalTextChunk:YZ(n=e.trim()),subWordTextChunks:XZ(n)};var n}));if(!t.some((e=>!e.subWordTextChunks.length)))return{getFullMatch:(e,r)=>function(e,n,t,r){const i=BZ(n,Ge(t),r);if(!i)return;if(t.length-1>e.length)return;let a;for(let o=t.length-2,s=e.length-1;o>=0;o-=1,s-=1)a=UZ(a,BZ(e[s],t[o],r));return a}(e,r,t,n),getMatchForLastSegmentOfPattern:e=>BZ(e,Ge(t),n),patternContainsDots:t.length>1}}function FZ(e,n){let t=n.get(e);return t||n.set(e,t=QZ(e)),t}function GZ(e,n,t){const r=function(e,n){const t=e.length-n.length;for(let r=0;r<=t;r++)if(a0(n,((n,t)=>zZ(e.charCodeAt(t+r))===n)))return r;return-1}(e,n.textLowerCase);if(0===r)return MZ(n.text.length===e.length?0:1,pt(e,n.text));if(n.isLowerCase){if(-1===r)return;const i=FZ(e,t);for(const t of i)if(jZ(e,t,n.text,!0))return MZ(2,jZ(e,t,n.text,!1));if(n.text.length<e.length&&KZ(e.charCodeAt(r)))return MZ(2,!1)}else{if(e.indexOf(n.text)>0)return MZ(2,!0);if(n.characterSpans.length>0){const r=FZ(e,t),i=!!HZ(e,r,n,!1)||!HZ(e,r,n,!0)&&void 0;if(void 0!==i)return MZ(3,i)}}}function BZ(e,n,t){if(a0(n.totalTextChunk.text,(e=>32!==e&&42!==e))){const r=GZ(e,n.totalTextChunk,t);if(r)return r}const r=n.subWordTextChunks;let i;for(const a of r)i=UZ(i,GZ(e,a,t));return i}function UZ(e,n){return jn([e,n],VZ)}function VZ(e,n){return void 0===e?1:void 0===n?-1:Un(e.kind,n.kind)||$n(!e.isCaseSensitive,!n.isCaseSensitive)}function jZ(e,n,t,r,i={start:0,length:t.length}){return i.length<=n.length&&i0(0,i.length,(a=>function(e,n,t){return t?zZ(e)===zZ(n):e===n}(t.charCodeAt(i.start+a),e.charCodeAt(n.start+a),r)))}function HZ(e,n,t,r){const i=t.characterSpans;let a,o,s=0,c=0;for(;;){if(c===i.length)return!0;if(s===n.length)return!1;let l=n[s],d=!1;for(;c<i.length;c++){const n=i[c];if(d&&(!KZ(t.text.charCodeAt(i[c-1].start))||!KZ(t.text.charCodeAt(i[c].start))))break;if(!jZ(e,l,t.text,r,n))break;d=!0,a=void 0===a?s:a,o=void 0===o||o,l=yc(l.start+n.length,l.length-n.length)}d||void 0===o||(o=!1),s++}}function KZ(e){if(e>=65&&e<=90)return!0;if(e<127||!fs(e,99))return!1;const n=String.fromCharCode(e);return n===n.toUpperCase()}function WZ(e){if(e>=97&&e<=122)return!0;if(e<127||!fs(e,99))return!1;const n=String.fromCharCode(e);return n===n.toLowerCase()}function zZ(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function qZ(e){return e>=48&&e<=57}function JZ(e){return KZ(e)||WZ(e)||qZ(e)||95===e||36===e}function XZ(e){const n=[];let t=0,r=0;for(let i=0;i<e.length;i++){JZ(e.charCodeAt(i))?(0===r&&(t=i),r++):r>0&&(n.push(YZ(e.substr(t,r))),r=0)}return r>0&&n.push(YZ(e.substr(t,r))),n}function YZ(e){const n=e.toLowerCase();return{text:e,textLowerCase:n,isLowerCase:e===n,characterSpans:$Z(e)}}function $Z(e){return ZZ(e,!1)}function QZ(e){return ZZ(e,!0)}function ZZ(e,n){const t=[];let r=0;for(let i=1;i<e.length;i++){const a=qZ(e.charCodeAt(i-1)),o=qZ(e.charCodeAt(i)),s=r0(e,n,i),c=n&&t0(e,i,r);(e0(e.charCodeAt(i-1))||e0(e.charCodeAt(i))||a!==o||s||c)&&(n0(e,r,i)||t.push(yc(r,i-r)),r=i)}return n0(e,r,e.length)||t.push(yc(r,e.length-r)),t}function e0(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function n0(e,n,t){return a0(e,(e=>e0(e)&&95!==e),n,t)}function t0(e,n,t){return n!==t&&n+1<e.length&&KZ(e.charCodeAt(n))&&WZ(e.charCodeAt(n+1))&&a0(e,KZ,t,n)}function r0(e,n,t){const r=KZ(e.charCodeAt(t-1));return KZ(e.charCodeAt(t))&&(!n||!r)}function i0(e,n,t){for(let r=e;r<n;r++)if(!t(r))return!1;return!0}function a0(e,n,t=0,r=e.length){return i0(t,r,(t=>n(e.charCodeAt(t),t)))}var o0=E({"src/services/patternMatcher.ts"(){Bfe(),DZ=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(DZ||{})}});function s0(e,n=!0,t=!1){const r={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},i=[];let a,o,s,c=0,l=!1;function d(){return o=s,s=cJ.scan(),18===s?c++:19===s&&c--,s}function u(){const e=cJ.getTokenValue(),n=cJ.getTokenPos();return{fileName:e,pos:n,end:n+e.length}}function _(){i.push(u()),p()}function p(){0===c&&(l=!0)}function f(){let e=cJ.getToken();return 136===e&&(e=d(),142===e&&(e=d(),10===e&&(a||(a=[]),a.push({ref:u(),depth:c}))),!0)}function m(){if(24===o)return!1;let e=cJ.getToken();if(100===e){if(e=d(),20===e){if(e=d(),10===e||14===e)return _(),!0}else{if(10===e)return _(),!0;if(154===e){cJ.lookAhead((()=>{const e=cJ.scan();return 158!==e&&(41===e||18===e||79===e||by(e))}))&&(e=d())}if(79===e||by(e))if(e=d(),158===e){if(e=d(),10===e)return _(),!0}else if(63===e){if(g(!0))return!0}else{if(27!==e)return!0;e=d()}if(18===e){for(e=d();19!==e&&1!==e;)e=d();19===e&&(e=d(),158===e&&(e=d(),10===e&&_()))}else 41===e&&(e=d(),128===e&&(e=d(),(79===e||by(e))&&(e=d(),158===e&&(e=d(),10===e&&_()))))}return!0}return!1}function h(){let e=cJ.getToken();if(93===e){if(p(),e=d(),154===e){cJ.lookAhead((()=>{const e=cJ.scan();return 41===e||18===e}))&&(e=d())}if(18===e){for(e=d();19!==e&&1!==e;)e=d();19===e&&(e=d(),158===e&&(e=d(),10===e&&_()))}else if(41===e)e=d(),158===e&&(e=d(),10===e&&_());else if(100===e){if(e=d(),154===e){cJ.lookAhead((()=>{const e=cJ.scan();return 79===e||by(e)}))&&(e=d())}if((79===e||by(e))&&(e=d(),63===e&&g(!0)))return!0}return!0}return!1}function g(e,n=!1){let t=e?d():cJ.getToken();return 147===t&&(t=d(),20===t&&(t=d(),(10===t||n&&14===t)&&_()),!0)}function y(){let e=cJ.getToken();if(79===e&&"define"===cJ.getTokenValue()){if(e=d(),20!==e)return!0;if(e=d(),10===e||14===e){if(e=d(),27!==e)return!0;e=d()}if(22!==e)return!0;for(e=d();23!==e&&1!==e;)10!==e&&14!==e||_(),e=d();return!0}return!1}if(n&&function(){for(cJ.setText(e),d();1!==cJ.getToken();){if(15===cJ.getToken()){const e=[cJ.getToken()];e:for(;S(e);){const n=cJ.scan();switch(n){case 1:break e;case 100:m();break;case 15:e.push(n);break;case 18:S(e)&&e.push(n);break;case 19:S(e)&&(15===Fe(e)?17===cJ.reScanTemplateToken(!1)&&e.pop():e.pop())}}d()}f()||m()||h()||t&&(g(!1,!0)||y())||d()}cJ.setText(void 0)}(),BD(r,e),UD(r,xn),l){if(a)for(const e of a)i.push(e.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:void 0}}{let e;if(a)for(const n of a)0===n.depth?(e||(e=[]),e.push(n.ref.fileName)):i.push(n.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:e}}}var c0,l0=E({"src/services/preProcess.ts"(){Bfe()}});function d0(e){const n=lt(e.useCaseSensitiveFileNames()),t=e.getCurrentDirectory(),r=new Map,i=new Map;return{tryGetSourcePosition:function e(n){if(!GD(n.fileName))return;if(!s(n.fileName))return;const t=o(n.fileName).getSourcePosition(n);return t&&t!==n?e(t)||t:void 0},tryGetGeneratedPosition:function(r){if(GD(r.fileName))return;const i=s(r.fileName);if(!i)return;const a=e.getProgram();if(a.isSourceOfProjectReferenceRedirect(i.fileName))return;const c=Nv(a.getCompilerOptions()),l=c?qx(c)+".d.ts":Iv(r.fileName,a.getCompilerOptions(),t,a.getCommonSourceDirectory(),n);if(void 0===l)return;const d=o(l,r.fileName).getGeneratedPosition(r);return d===r?void 0:d},toLineColumnOffset:function(e,n){return l(e).getLineAndCharacterOfPosition(n)},clearCache:function(){r.clear(),i.clear()}};function a(e){return Co(e,t,n)}function o(t,r){const o=a(t),s=i.get(o);if(s)return s;let c;if(e.getDocumentPositionMapper)c=e.getDocumentPositionMapper(t,r);else if(e.readFile){const r=l(t);c=r&&u0({getSourceFileLike:l,getCanonicalFileName:n,log:n=>e.log(n)},t,IB(r.text,bs(r)),(n=>!e.fileExists||e.fileExists(n)?e.readFile(n):void 0))}return i.set(o,c||LB),c||LB}function s(n){const t=e.getProgram();if(!t)return;const r=a(n),i=t.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}function c(n){const t=a(n),i=r.get(t);if(void 0!==i)return i||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(t))return void r.set(t,!1);const o=e.readFile(t),s=!!o&&function(e,n){return{text:e,lineMap:n,getLineAndCharacterOfPosition(e){return Es(bs(this),e)}}}(o);return r.set(t,s),s||void 0}function l(n){return e.getSourceFileLike?e.getSourceFileLike(n):s(n)||c(n)}}function u0(e,n,t,r){let i=wB(t);if(i){const t=c0.exec(i);if(t){if(t[1]){const r=t[1];return _0(e,cE(Aa,r),n)}i=void 0}}const a=[];i&&a.push(i),a.push(n+".map");const o=i&&So(i,po(n));for(const s of a){const t=So(s,po(n)),i=r(t,o);if(vn(i))return _0(e,i,t);if(void 0!==i)return i||void 0}}function _0(e,n,t){const r=DB(n);if(r&&r.sources&&r.file&&r.mappings&&(!r.sourcesContent||!r.sourcesContent.some(vn)))return HB(e,r,t)}var p0,f0=E({"src/services/sourcemaps.ts"(){Bfe(),Bfe(),c0=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/}});function m0(e,n,t){n.getSemanticDiagnostics(e,t);const r=[],i=n.getTypeChecker();var a;!(1===e.impliedNodeFormat||so(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(SY(n)||AY(n.getCompilerOptions()))&&function(e){return e.statements.some((e=>{switch(e.kind){case 240:return e.declarationList.declarations.some((e=>!!e.initializer&&Oh(h0(e.initializer),!0)));case 241:{const{expression:n}=e;if(!Yk(n))return Oh(n,!0);const t=eg(n);return 1===t||2===t}default:return!1}}))}(e)&&r.push(qf(Yk(a=e.commonJsModuleIndicator)?a.left:a,Wo.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const o=Ch(e);if(p0.clear(),function n(t){if(o)(function(e,n){var t,r,i,a;if(jk(e)){if(NI(e.parent)&&(null==(t=e.symbol.members)?void 0:t.size))return!0;const a=n.getSymbolOfExpando(e,!1);return!(!a||!(null==(r=a.exports)?void 0:r.size)&&!(null==(i=a.members)?void 0:i.size))}if(OI(e))return!!(null==(a=e.symbol.members)?void 0:a.size);return!1})(t,i)&&r.push(qf(NI(t.parent)?t.parent.name:t,Wo.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(fI(t)&&t.parent===e&&2&t.declarationList.flags&&1===t.declarationList.declarations.length){const e=t.declarationList.declarations[0].initializer;e&&Oh(e,!0)&&r.push(qf(e,Wo.require_call_may_be_converted_to_an_import))}$te.parameterShouldGetTypeFromJSDoc(t)&&r.push(qf(t.name||t,Wo.JSDoc_types_may_be_moved_to_TypeScript_types))}A0(t)&&function(e,n,t){(function(e,n){return!Iy(e)&&e.body&&pI(e.body)&&function(e,n){return!!Am(e,(e=>v0(e,n)))}(e.body,n)&&y0(e,n)})(e,n)&&!p0.has(S0(e))&&t.push(qf(!e.name&&NI(e.parent)&&IC(e.parent.name)?e.parent.name:e,Wo.This_may_be_converted_to_an_async_function))}(t,i,r);t.forEachChild(n)}(e),nx(n.getCompilerOptions()))for(const s of e.imports){const t=g0(gg(s));if(!t)continue;const i=Tp(e,s.text,LH(e,s)),a=i&&n.getSourceFile(i.resolvedFileName);a&&a.externalModuleIndicator&&!0!==a.externalModuleIndicator&&ZI(a.externalModuleIndicator)&&a.externalModuleIndicator.isExportEquals&&r.push(qf(t,Wo.Import_may_be_converted_to_a_default_import))}return Ae(r,e.bindSuggestionDiagnostics),Ae(r,n.getSuggestionDiagnostics(e,t)),r.sort(((e,n)=>e.start-n.start))}function h0(e){return Mk(e)?h0(e.expression):e}function g0(e){switch(e.kind){case 269:const{importClause:n,moduleSpecifier:t}=e;return n&&!n.name&&n.namedBindings&&271===n.namedBindings.kind&&_C(t)?n.namedBindings.name:void 0;case 268:return e.name;default:return}}function y0(e,n){const t=n.getSignatureFromDeclaration(e),r=t?n.getReturnTypeOfSignature(t):void 0;return!!r&&!!n.getPromisedTypeOfPromise(r)}function v0(e,n){return AI(e)&&!!e.expression&&b0(e.expression,n)}function b0(e,n){if(!E0(e)||!T0(e)||!e.arguments.every((e=>x0(e,n))))return!1;let t=e.expression.expression;for(;E0(t)||Mk(t);)if(Fk(t)){if(!T0(t)||!t.arguments.every((e=>x0(e,n))))return!1;t=t.expression.expression}else t=t.expression;return!0}function E0(e){return Fk(e)&&(OJ(e,"then")||OJ(e,"catch")||OJ(e,"finally"))}function T0(e){const n=e.expression.name.text,t="then"===n?2:"catch"===n||"finally"===n?1:0;return!(e.arguments.length>t)&&(e.arguments.length<t||(1===t||ce(e.arguments,(e=>104===e.kind||IC(e)&&"undefined"===e.text))))}function x0(e,n){switch(e.kind){case 259:case 215:if(1&ky(e))return!1;case 216:p0.set(S0(e),!0);case 104:return!0;case 79:case 208:{const t=n.getSymbolAtLocation(e);return!!t&&(n.isUndefinedSymbol(t)||ce(BE(t,n).declarations,(e=>Id(e)||n_(e)&&!!e.initializer&&Id(e.initializer))))}default:return!1}}function S0(e){return`${e.pos.toString()}:${e.end.toString()}`}function A0(e){switch(e.kind){case 259:case 171:case 215:case 216:return!0;default:return!1}}var L0,C0,k0=E({"src/services/suggestionDiagnostics.ts"(){Bfe(),p0=new Map}});function I0(e,n){const t=[],r=n.compilerOptions?R0(n.compilerOptions,t):{},i={target:1,jsx:1};for(const _ in i)ze(i,_)&&void 0===r[_]&&(r[_]=i[_]);for(const _ of lO)r.verbatimModuleSyntax&&L0.has(_.name)||(r[_.name]=_.transpileOptionValue);r.suppressOutputPathCheck=!0,r.allowNonTsExtensions=!0;const a=_E(r),o={getSourceFile:e=>e===Ao(s)?c:void 0,writeFile:(e,n)=>{oo(e,".map")?(Nt.assertEqual(d,void 0,"Unexpected multiple source map outputs, file:",e),d=n):(Nt.assertEqual(l,void 0,"Unexpected multiple outputs, file:",e),l=n)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>a,fileExists:e=>e===s,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},s=n.fileName||(n.compilerOptions&&n.compilerOptions.jsx?"module.tsx":"module.ts"),c=RD(s,e,{languageVersion:HT(r),impliedNodeFormat:UH(Co(s,"",o.getCanonicalFileName),void 0,o,r),setExternalModuleIndicator:jT(r)});let l,d;n.moduleName&&(c.moduleName=n.moduleName),n.renamedDependencies&&(c.renamedDependencies=new Map(Object.entries(n.renamedDependencies)));const u=jH([s],r,o);return n.reportDiagnostics&&(Ae(t,u.getSyntacticDiagnostics(c)),Ae(t,u.getOptionsDiagnostics())),u.emit(void 0,void 0,void 0,void 0,n.transformers),void 0===l?Nt.fail("Output generation failed"):{outputText:l,diagnostics:t,sourceMapText:d}}function w0(e,n,t,r,i){const a=I0(e,{compilerOptions:n,fileName:t,reportDiagnostics:!!r,moduleName:i});return Ae(r,a.diagnostics),a.outputText}function R0(e,n){C0=C0||j(tO,(e=>"object"===typeof e.type&&!gp(e.type,(e=>"number"!==typeof e)))),e=nY(e);for(const t of C0){if(!ze(e,t.name))continue;const r=e[t.name];vn(r)?e[t.name]=PO(t,r,n):gp(t.type,(e=>e===r))||n.push(OO(t))}return e}var N0=E({"src/services/transpile.ts"(){Bfe(),L0=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function D0(e,n,t,r,a,o){const s=PZ(r);if(!s)return i;const c=[];for(const i of e)t.throwIfCancellationRequested(),o&&i.isDeclarationFile||i.getNamedDeclarations().forEach(((e,t)=>{O0(s,t,e,n,i.fileName,c)}));return c.sort(U0),(void 0===a?c:c.slice(0,a)).map(V0)}function O0(e,n,t,r,i,a){const o=e.getMatchForLastSegmentOfPattern(n);if(o)for(const s of t)if(M0(s,r))if(e.patternContainsDots){const t=e.getFullMatch(B0(s),n);t&&a.push({name:n,fileName:i,matchKind:t.kind,isCaseSensitive:t.isCaseSensitive,declaration:s})}else a.push({name:n,fileName:i,matchKind:o.kind,isCaseSensitive:o.isCaseSensitive,declaration:s})}function M0(e,n){switch(e.kind){case 270:case 273:case 268:const t=n.getSymbolAtLocation(e.name),r=n.getAliasedSymbol(t);return t.escapedName!==r.escapedName;default:return!0}}function P0(e,n){const t=Xc(e);return!!t&&(G0(t,n)||164===t.kind&&F0(t.expression,n))}function F0(e,n){return G0(e,n)||Mk(e)&&(n.push(e.name.text),!0)&&F0(e.expression,n)}function G0(e,n){return My(e)&&(n.push(Py(e)),!0)}function B0(e){const n=[],t=Xc(e);if(t&&164===t.kind&&!F0(t.expression,n))return i;n.shift();let r=zJ(e);for(;r;){if(!P0(r,n))return i;r=zJ(r)}return n.reverse()}function U0(e,n){return Un(e.matchKind,n.matchKind)||Xn(e.name,n.name)}function V0(e){const n=e.declaration,t=zJ(n),r=t&&Xc(t);return{name:e.name,kind:qJ(n),kindModifiers:qX(n),matchKind:DZ[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:sY(n),containerName:r?r.text:"",containerKind:r?qJ(t):""}}var j0=E({"src/services/navigateTo.ts"(){Bfe()}}),H0={};T(H0,{getNavigateToItems:()=>D0});var K0,W0,z0,q0,J0,X0,Y0,$0,Q0,Z0,e1=E({"src/services/_namespaces/ts.NavigateTo.ts"(){j0()}});function n1(e,n){z0=n,q0=e;try{return W(function(e){const n=[];function t(e){if(r(e)&&(n.push(e),e.children))for(const n of e.children)t(n)}return t(e),n;function r(e){if(e.children)return!0;switch(a1(e)){case 260:case 228:case 263:case 261:case 264:case 308:case 262:case 349:case 341:return!0;case 216:case 259:case 215:return n(e);default:return!1}function n(e){if(!e.node.body)return!1;switch(a1(e.parent)){case 265:case 308:case 171:case 173:return!0;default:return!1}}}}(s1(e)),I1)}finally{r1()}}function t1(e,n){z0=n,q0=e;try{return k1(s1(e))}finally{r1()}}function r1(){q0=void 0,z0=void 0,J0=[],X0=void 0,Q0=[]}function i1(e){return B1(e.getText(q0))}function a1(e){return e.node.kind}function o1(e,n){e.children?e.children.push(n):e.children=[n]}function s1(e){Nt.assert(!J0.length);const n={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};X0=n;for(const t of e.statements)y1(t);return f1(),Nt.assert(!X0&&!J0.length),n}function c1(e,n){o1(X0,l1(e,n))}function l1(e,n){return{node:e,name:n||(Pu(e)||mu(e)?Xc(e):void 0),additionalNodes:void 0,parent:X0,children:void 0,indent:X0.indent+1}}function d1(e){$0||($0=new Map),$0.set(e,!0)}function u1(e){for(let n=0;n<e;n++)f1()}function _1(e,n){const t=[];for(;!My(n);){const e=sg(n),r=lg(n);n=n.expression,"prototype"===r||wC(e)||t.push(e)}t.push(n);for(let r=t.length-1;r>0;r--){p1(e,t[r])}return[t.length-1,t[0]]}function p1(e,n){const t=l1(e,n);o1(X0,t),J0.push(X0),Y0.push($0),$0=void 0,X0=t}function f1(){X0.children&&(v1(X0.children,X0),S1(X0.children)),X0=J0.pop(),$0=Y0.pop()}function m1(e,n,t){p1(e,t),y1(n),f1()}function h1(e){e.initializer&&function(e){switch(e.kind){case 216:case 215:case 228:return!0;default:return!1}}(e.initializer)?(p1(e),CD(e.initializer,y1),f1()):m1(e,e.initializer)}function g1(e){return!Ny(e)||223!==e.kind&&Mk(e.name.expression)&&IC(e.name.expression.expression)&&"Symbol"===Uc(e.name.expression.expression)}function y1(e){if(z0.throwIfCancellationRequested(),e&&!id(e))switch(e.kind){case 173:const n=e;m1(n,n.body);for(const e of n.parameters)Ac(e,n)&&c1(e);break;case 171:case 174:case 175:case 170:g1(e)&&m1(e,e.body);break;case 169:g1(e)&&h1(e);break;case 168:g1(e)&&c1(e);break;case 270:const t=e;t.name&&c1(t.name);const{namedBindings:r}=t;if(r)if(271===r.kind)c1(r);else for(const e of r.elements)c1(e);break;case 300:m1(e,e.name);break;case 301:const{expression:i}=e;IC(i)?c1(e,i):c1(e);break;case 205:case 299:case 257:{const n=e;Jd(n.name)?y1(n.name):h1(n);break}case 259:const a=e.name;a&&IC(a)&&d1(a.text),m1(e,e.body);break;case 216:case 215:m1(e,e.body);break;case 263:p1(e);for(const o of e.members)O1(o)||c1(o);f1();break;case 260:case 228:case 261:p1(e);for(const o of e.members)y1(o);f1();break;case 264:m1(e,D1(e).body);break;case 274:{const n=e.expression,t=Ok(n)||Fk(n)?n:Hk(n)||jk(n)?n.body:void 0;t?(p1(e),y1(t),f1()):c1(e);break}case 278:case 268:case 178:case 176:case 177:case 262:c1(e);break;case 210:case 223:{const n=eg(e);switch(n){case 1:case 2:return void m1(e,e.right);case 6:case 3:{const t=e,r=t.left,i=3===n?r.expression:r;let a,o=0;return IC(i.expression)?(d1(i.expression.text),a=i.expression):[o,a]=_1(t,i.expression),6===n?Ok(t.right)&&t.right.properties.length>0&&(p1(t,a),CD(t.right,y1),f1()):jk(t.right)||Hk(t.right)?m1(e,t.right,a):(p1(t,a),m1(e,t.right,r.name),f1()),void u1(o)}case 7:case 9:{const t=e,r=7===n?t.arguments[0]:t.arguments[0].expression,i=t.arguments[1],[a,o]=_1(e,r);return p1(e,o),p1(e,VN(gA.createIdentifier(i.text),i)),y1(e.arguments[2]),f1(),f1(),void u1(a)}case 5:{const n=e,t=n.left,r=t.expression;if(IC(r)&&"prototype"!==lg(t)&&$0&&$0.has(r.text))return void(jk(n.right)||Hk(n.right)?m1(e,n.right,r):ig(t)&&(p1(n,r),m1(n.left,n.right,sg(t)),f1()));break}case 4:case 0:case 8:break;default:Nt.assertNever(n)}}default:Zu(e)&&A(e.jsDoc,(e=>{A(e.tags,(e=>{Ag(e)&&c1(e)}))})),CD(e,y1)}}function v1(e,n){const t=new Map;H(e,((e,r)=>{const i=e.name||Xc(e.node),a=i&&i1(i);if(!a)return!0;const o=t.get(a);if(!o)return t.set(a,e),!0;if(o instanceof Array){for(const t of o)if(b1(t,e,r,n))return!1;return o.push(e),!0}{const i=o;return!b1(i,e,r,n)&&(t.set(a,[i,e]),!0)}}))}function b1(e,n,t,r){return!!function(e,n,t,r){function i(e){return jk(e)||OI(e)||NI(e)}const a=Yk(n.node)||Fk(n.node)?eg(n.node):0,o=Yk(e.node)||Fk(e.node)?eg(e.node):0;if(Z0[a]&&Z0[o]||i(e.node)&&Z0[a]||i(n.node)&&Z0[o]||MI(e.node)&&E1(e.node)&&Z0[a]||MI(n.node)&&Z0[o]||MI(e.node)&&E1(e.node)&&i(n.node)||MI(n.node)&&i(e.node)&&E1(e.node)){let a=e.additionalNodes&&Fe(e.additionalNodes)||e.node;if(!MI(e.node)&&!MI(n.node)||i(e.node)||i(n.node)){const t=i(e.node)?e.node:i(n.node)?n.node:void 0;if(void 0!==t){const r=l1(VN(gA.createConstructorDeclaration(void 0,[],void 0),t));r.indent=e.indent+1,r.children=e.node===t?e.children:n.children,e.children=e.node===t?de([r],n.children||[n]):de(e.children||[{...e}],[r])}else(e.children||n.children)&&(e.children=de(e.children||[{...e}],n.children||[n]),e.children&&(v1(e.children,e),S1(e.children)));a=e.node=VN(gA.createClassDeclaration(void 0,e.name||gA.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=de(e.children,n.children),e.children&&v1(e.children,e);const o=n.node;return r.children[t-1].node.end===a.end?VN(a,{pos:a.pos,end:o.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(VN(gA.createClassDeclaration(void 0,e.name||gA.createIdentifier("__class__"),void 0,void 0,[]),n.node))),!0}return 0!==a}(e,n,t,r)||!!function(e,n,t){if(e.kind!==n.kind||e.parent!==n.parent&&(!T1(e,t)||!T1(n,t)))return!1;switch(e.kind){case 169:case 171:case 174:case 175:return mb(e)===mb(n);case 264:return x1(e,n)&&N1(e)===N1(n);default:return!0}}(e.node,n.node,r)&&(function(e,n){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(n.node),n.additionalNodes&&e.additionalNodes.push(...n.additionalNodes);e.children=de(e.children,n.children),e.children&&(v1(e.children,e),S1(e.children))}(e,n),!0)}function E1(e){return!!(8&e.flags)}function T1(e,n){const t=UI(e.parent)?e.parent.parent:e.parent;return t===n.node||G(n.additionalNodes,t)}function x1(e,n){return e.body&&n.body?e.body.kind===n.body.kind&&(264!==e.body.kind||x1(e.body,n.body)):e.body===n.body}function S1(e){e.sort(A1)}function A1(e,n){return Xn(L1(e.node),L1(n.node))||Un(a1(e),a1(n))}function L1(e){if(264===e.kind)return R1(e);const n=Xc(e);if(n&&Cd(n)){const e=Oy(n);return e&&Bc(e)}switch(e.kind){case 215:case 216:case 228:return F1(e);default:return}}function C1(e,n){if(264===e.kind)return B1(R1(e));if(n){const e=IC(n)?n.text:Pk(n)?`[${i1(n.argumentExpression)}]`:i1(n);if(e.length>0)return B1(e)}switch(e.kind){case 308:const n=e;return OD(n)?`"${dv(fo(qx(Ao(n.fileName))))}"`:"<global>";case 274:return ZI(e)&&e.isExportEquals?"export=":"default";case 216:case 259:case 215:case 260:case 228:return 1024&kb(e)?"default":F1(e);case 173:return"constructor";case 177:return"new()";case 176:return"()";case 178:return"[]";default:return"<unknown>"}}function k1(e){return{text:C1(e.node,e.name),kind:qJ(e.node),kindModifiers:P1(e.node),spans:w1(e),nameSpan:e.name&&M1(e.name),childItems:W(e.children,k1)}}function I1(e){return{text:C1(e.node,e.name),kind:qJ(e.node),kindModifiers:P1(e.node),spans:w1(e),childItems:W(e.children,(function(e){return{text:C1(e.node,e.name),kind:qJ(e.node),kindModifiers:qX(e.node),spans:w1(e),childItems:Q0,indent:0,bolded:!1,grayed:!1}}))||Q0,indent:e.indent,bolded:!1,grayed:!1}}function w1(e){const n=[M1(e.node)];if(e.additionalNodes)for(const t of e.additionalNodes)n.push(M1(t));return n}function R1(e){return yf(e)?sf(e.name):N1(e)}function N1(e){const n=[Py(e.name)];for(;e.body&&264===e.body.kind;)e=e.body,n.push(Py(e.name));return n.join(".")}function D1(e){return e.body&&BI(e.body)?D1(e.body):e}function O1(e){return!e.name||164===e.name.kind}function M1(e){return 308===e.kind?dY(e):sY(e,q0)}function P1(e){return e.parent&&257===e.parent.kind&&(e=e.parent),qX(e)}function F1(e){const{parent:n}=e;if(e.name&&Ep(e.name)>0)return B1(Vf(e.name));if(NI(n))return B1(Vf(n.name));if(Yk(n)&&63===n.operatorToken.kind)return i1(n.left).replace(K0,"");if(Sw(n))return i1(n.name);if(1024&kb(e))return"default";if(Fd(e))return"<class>";if(Fk(n)){let e=G1(n.expression);if(void 0!==e){if(e=B1(e),e.length>W0)return`${e} callback`;return`${e}(${B1(ee(n.arguments,(e=>o_(e)?e.getText(q0):void 0)).join(", "))}) callback`}}return"<function>"}function G1(e){if(IC(e))return e.text;if(Mk(e)){const n=G1(e.expression),t=e.name.text;return void 0===n?t:`${n}.${t}`}}function B1(e){return(e=e.length>W0?e.substring(0,W0)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var U1=E({"src/services/navigationBar.ts"(){Bfe(),K0=/\s+/g,W0=150,J0=[],Y0=[],Q0=[],Z0={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),V1={};T(V1,{getNavigationBarItems:()=>n1,getNavigationTree:()=>t1});var j1,H1,K1,W1,z1,q1,J1,X1,Y1,$1,Q1,Z1,e2,n2,t2,r2,i2,a2=E({"src/services/_namespaces/ts.NavigationBar.ts"(){U1()}});function o2(e,n,t,r){const i=td(e)?new H1(e,n,t):79===e?new q1(79,n,t):80===e?new J1(80,n,t):new z1(e,n,t);return i.parent=r,i.flags=50720768&r.flags,i}function s2(e,n){if(!td(e.kind))return i;const t=[];if(Xu(e))return e.forEachChild((e=>{t.push(e)})),t;cJ.setText((n||e.getSourceFile()).text);let r=e.pos;const a=n=>{c2(t,r,n.pos,e),t.push(n),r=n.end};return A(e.jsDoc,a),r=e.pos,e.forEachChild(a,(n=>{c2(t,r,n.pos,e),t.push(function(e,n){const t=o2(354,e.pos,e.end,n);t._children=[];let r=e.pos;for(const i of e)c2(t._children,r,i.pos,n),t._children.push(i),r=i.end;return c2(t._children,r,e.end,n),t}(n,e)),r=n.end})),c2(t,r,e.end,e),cJ.setText(void 0),t}function c2(e,n,t,r){for(cJ.setTextPos(n);n<t;){const i=cJ.scan(),a=cJ.getTextPos();if(a<=t){if(79===i){if(YS(r))continue;Nt.fail(`Did not expect ${Nt.formatSyntaxKind(r.kind)} to have an Identifier in its trivia`)}e.push(o2(i,n,a,r))}if(n=a,1===i)break}}function l2(e){return Il(e).some((e=>"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text))}function d2(e,n){if(!e)return i;let t=koe.getJsDocTagsFromDeclarations(e,n);if(n&&(0===t.length||e.some(l2))){const r=new Set;for(const i of e){const e=_2(n,i,(e=>{var t;if(!r.has(e))return r.add(e),174===i.kind||175===i.kind?e.getContextualJsDocTags(i,n):1===(null==(t=e.declarations)?void 0:t.length)?e.getJsDocTags():void 0}));e&&(t=[...e,...t])}}return t}function u2(e,n){if(!e)return i;let t=koe.getJsDocCommentsFromDeclarations(e,n);if(n&&(0===t.length||e.some(l2))){const r=new Set;for(const i of e){const e=_2(n,i,(e=>{if(!r.has(e))return r.add(e),174===i.kind||175===i.kind?e.getContextualDocumentationComment(i,n):e.getDocumentationComment(n)}));e&&(t=0===t.length?e.slice():e.concat(h$(),t))}}return t}function _2(e,n,t){var r;const i=173===(null==(r=n.parent)?void 0:r.kind)?n.parent.parent:n.parent;if(!i)return;const a=hb(n);return C(hy(i),(r=>{const i=e.getTypeAtLocation(r),o=a&&i.symbol?e.getTypeOfSymbol(i.symbol):i,s=e.getPropertyOfType(o,n.symbol.name);return s?t(s):void 0}))}function p2(e){let n=!0;for(const r in e)if(ze(e,r)&&!f2(r)){n=!1;break}if(n)return e;const t={};for(const r in e)if(ze(e,r)){t[f2(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=e[r]}return t}function f2(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function m2(e){return e?W(e,(e=>e.text)).join(""):""}function h2(){return{target:1,jsx:1}}function g2(){return $te.getSupportedErrorCodes()}function y2(e,n,t){e.version=t,e.scriptSnapshot=n}function v2(e,n,t,r,i,a){const o=RD(e,vY(n),t,i,a);return y2(o,n,r),o}function b2(e,n,t,r,i){if(r&&t!==e.version){let a;const o=0!==r.span.start?e.text.substr(0,r.span.start):"",s=oc(r.span)!==e.text.length?e.text.substr(oc(r.span)):"";if(0===r.newLength)a=o&&s?o+s:o||s;else{const e=n.getText(r.span.start,r.span.start+r.newLength);a=o&&s?o+e+s:o?o+e:e+s}const c=MD(e,a,r,i);return y2(c,n,t),c.nameTable=void 0,e!==c&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),c}const a={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return v2(e.fileName,n,a,t,!0,e.scriptKind)}function E2(e,n=bZ(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),t){var r;let a;a=void 0===t?0:"boolean"===typeof t?t?2:0:t;const o=new Z1(e);let s,c,l=0;const d=e.getCancellationToken?new n2(e.getCancellationToken()):e2,u=e.getCurrentDirectory();function _(n){e.log&&e.log(n)}TT(null==(r=e.getLocalizedDiagnosticMessages)?void 0:r.bind(e));const p=Ev(e),f=lt(p),m=d0({useCaseSensitiveFileNames:()=>p,getCurrentDirectory:()=>u,getProgram:y,fileExists:dn(e,e.fileExists),readFile:dn(e,e.readFile),getDocumentPositionMapper:dn(e,e.getDocumentPositionMapper),getSourceFileLike:dn(e,e.getSourceFileLike),log:_});function h(e){const n=s.getSourceFile(e);if(!n){const n=new Error(`Could not find source file: '${e}'.`);throw n.ProgramFiles=s.getSourceFiles().map((e=>e.fileName)),n}return n}function g(){var t,r,i;if(Nt.assert(2!==a),e.getProjectVersion){const n=e.getProjectVersion();if(n){if(c===n&&!(null==(t=e.hasChangedAutomaticTypeDirectiveNames)?void 0:t.call(e)))return;c=n}}const o=e.getTypeRootsVersion?e.getTypeRootsVersion():0;l!==o&&(_("TypeRoots version has changed; provide new program"),s=void 0,l=o);const h=e.getScriptFileNames().slice(),g=e.getCompilationSettings()||{target:1,jsx:1},y=e.hasInvalidatedResolutions||Sn,v=dn(e,e.hasChangedAutomaticTypeDirectiveNames),b=null==(r=e.getProjectReferences)?void 0:r.call(e);let E,T={getSourceFile:I,getSourceFileByPath:w,getCancellationToken:()=>d,getCanonicalFileName:f,useCaseSensitiveFileNames:()=>p,getNewLine:()=>_E(g),getDefaultLibFileName:n=>e.getDefaultLibFileName(n),writeFile:xn,getCurrentDirectory:()=>u,fileExists:n=>e.fileExists(n),readFile:n=>e.readFile&&e.readFile(n),getSymlinkCache:dn(e,e.getSymlinkCache),realpath:dn(e,e.realpath),directoryExists:n=>uE(n,e),getDirectories:n=>e.getDirectories?e.getDirectories(n):[],readDirectory:(n,t,r,i,a)=>(Nt.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(n,t,r,i,a)),onReleaseOldSourceFile:k,onReleaseParsedCommandLine:function(n,t,r){var i;e.getParsedCommandLine?null==(i=e.onReleaseParsedCommandLine)||i.call(e,n,t,r):t&&k(t.sourceFile,r)},hasInvalidatedResolutions:y,hasChangedAutomaticTypeDirectiveNames:v,trace:dn(e,e.trace),resolveModuleNames:dn(e,e.resolveModuleNames),getModuleResolutionCache:dn(e,e.getModuleResolutionCache),createHash:dn(e,e.createHash),resolveTypeReferenceDirectives:dn(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:dn(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:dn(e,e.resolveTypeReferenceDirectiveReferences),useSourceOfProjectReferenceRedirect:dn(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:C};const x=T.getSourceFile,{getSourceFileWithCache:S}=pH(T,(e=>Co(e,u,f)),((...e)=>x.call(T,...e)));T.getSourceFile=S,null==(i=e.setCompilerHost)||i.call(e,T);const A={useCaseSensitiveFileNames:p,fileExists:e=>T.fileExists(e),readFile:e=>T.readFile(e),readDirectory:(...e)=>T.readDirectory(...e),trace:T.trace,getCurrentDirectory:T.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:xn},L=n.getKeyForCompilationSettings(g);if(GH(s,h,g,((n,t)=>e.getScriptVersion(t)),(e=>T.fileExists(e)),y,v,C,b))return;return s=jH({rootNames:h,options:g,host:T,oldProgram:s,projectReferences:b}),T=void 0,E=void 0,m.clearCache(),void s.getTypeChecker();function C(n){const t=Co(n,u,f),r=null==E?void 0:E.get(t);if(void 0!==r)return r||void 0;const i=e.getParsedCommandLine?e.getParsedCommandLine(n):function(e){const n=I(e,100);return n?(n.path=Co(e,u,f),n.resolvedPath=n.path,n.originalFileName=n.fileName,TM(n,A,So(po(e),u),void 0,So(e,u))):void 0}(n);return(E||(E=new Map)).set(t,i||!1),i}function k(e,t){const r=n.getKeyForCompilationSettings(t);n.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind,e.impliedNodeFormat)}function I(e,n,t,r){return w(e,Co(e,u,f),n,t,r)}function w(t,r,i,a,o){Nt.assert(T,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const c=e.getScriptSnapshot(t);if(!c)return;const l=x$(t,e),d=e.getScriptVersion(t);if(!o){const a=s&&s.getSourceFileByPath(r);if(a){if(l===a.scriptKind)return n.updateDocumentWithKey(t,r,e,L,c,d,l,i);n.releaseDocumentWithKey(a.resolvedPath,n.getKeyForCompilationSettings(s.getCompilerOptions()),a.scriptKind,a.impliedNodeFormat)}}return n.acquireDocumentWithKey(t,r,e,L,c,d,l,i)}}function y(){if(2!==a)return g(),s;Nt.assert(void 0===s)}function v(e,n,t){const r=Ao(e);Nt.assert(t.some((e=>Ao(e)===r))),g();const i=ee(t,(e=>s.getSourceFile(e))),a=h(e);return hZ.getDocumentHighlights(s,d,a,n,i)}function b(e,n,t,r){g();const i=t&&t.use===Bae.FindReferencesUse.Rename?s.getSourceFiles().filter((e=>!s.isSourceFileDefaultLibrary(e))):s.getSourceFiles();return Bae.findReferenceOrRenameEntries(s,d,i,e,n,t,r)}const E=new Map(Object.entries({18:19,20:21,22:23,31:29}));function T(n){return Nt.assertEqual(n.type,"install package"),e.installPackage?e.installPackage({fileName:(t=n.file,Co(t,u,f)),packageName:n.packageName}):Promise.reject("Host does not implement `installPackage`");var t}function x(e,n){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(n.pos).line,lastLine:e.getLineAndCharacterOfPosition(n.end).line}}function S(e,n,t){const r=o.getCurrentSourceFile(e),i=[],{lineStarts:a,firstLine:s,lastLine:c}=x(r,n);let l=t||!1,d=Number.MAX_VALUE;const u=new Map,_=new RegExp(/\S/),p=GX(r,a[s]),f=p?"{/*":"//";for(let o=s;o<=c;o++){const e=r.text.substring(a[o],r.getLineEndOfPosition(a[o])),n=_.exec(e);n&&(d=Math.min(d,n.index),u.set(o.toString(),n.index),e.substr(n.index,f.length)!==f&&(l=void 0===t||t))}for(let o=s;o<=c;o++){if(s!==c&&a[o]===n.end)continue;const t=u.get(o.toString());void 0!==t&&(p?i.push.apply(i,L(e,{pos:a[o]+d,end:r.getLineEndOfPosition(a[o])},l,p)):l?i.push({newText:f,span:{length:0,start:a[o]+d}}):r.text.substr(a[o]+t,f.length)===f&&i.push({newText:"",span:{length:f.length,start:a[o]+t}}))}return i}function L(e,n,t,r){var i;const a=o.getCurrentSourceFile(e),s=[],{text:c}=a;let l=!1,d=t||!1;const u=[];let{pos:_}=n;const p=void 0!==r?r:GX(a,_),f=p?"{/*":"/*",m=p?"*/}":"*/",h=p?"\\{\\/\\*":"\\/\\*",g=p?"\\*\\/\\}":"\\*\\/";for(;_<=n.end;){const e=KX(a,_+(c.substr(_,f.length)===f?f.length:0));if(e)p&&(e.pos--,e.end++),u.push(e.pos),3===e.kind&&u.push(e.end),l=!0,_=e.end+1;else{const e=c.substring(_,n.end).search(`(${h})|(${g})`);d=void 0!==t?t:d||!JY(c,_,-1===e?n.end:_+e),_=-1===e?n.end+1:_+e+m.length}}if(d||!l){2!==(null==(i=KX(a,n.pos))?void 0:i.kind)&&me(u,n.pos,Un),me(u,n.end,Un);const e=u[0];c.substr(e,f.length)!==f&&s.push({newText:f,span:{length:0,start:e}});for(let n=1;n<u.length-1;n++)c.substr(u[n]-m.length,m.length)!==m&&s.push({newText:m,span:{length:0,start:u[n]}}),c.substr(u[n],f.length)!==f&&s.push({newText:f,span:{length:0,start:u[n]}});s.length%2!==0&&s.push({newText:m,span:{length:0,start:u[u.length-1]}})}else for(const o of u){const e=o-m.length>0?o-m.length:0,n=c.substr(e,m.length)===m?m.length:0;s.push({newText:"",span:{length:f.length,start:o-n}})}return s}function C({openingElement:e,closingElement:n,parent:t}){return!KD(e.tagName,n.tagName)||lw(t)&&KD(e.tagName,t.openingElement.tagName)&&C(t)}function k({closingFragment:e,parent:n}){return!!(131072&e.flags)||pw(n)&&k(n)}function I(n,t,r,i,a,o){const[s,c]="number"===typeof t?[t,void 0]:[t.pos,t.end];return{file:n,startPosition:s,endPosition:c,program:y(),host:e,formatContext:Mfe.getFormatContext(i,e),cancellationToken:d,preferences:r,triggerReason:a,kind:o}}E.forEach(((e,n)=>E.set(e.toString(),Number(n))));const w={dispose:function(){if(s){const e=n.getKeyForCompilationSettings(s.getCompilerOptions());A(s.getSourceFiles(),(t=>n.releaseDocumentWithKey(t.resolvedPath,e,t.scriptKind,t.impliedNodeFormat))),s=void 0}e=void 0},cleanupSemanticCache:function(){s=void 0},getSyntacticDiagnostics:function(e){return g(),s.getSyntacticDiagnostics(h(e),d).slice()},getSemanticDiagnostics:function(e){g();const n=h(e),t=s.getSemanticDiagnostics(n,d);if(!ox(s.getCompilerOptions()))return t.slice();const r=s.getDeclarationDiagnostics(n,d);return[...t,...r]},getSuggestionDiagnostics:function(e){return g(),m0(h(e),s,d)},getCompilerOptionsDiagnostics:function(){return g(),[...s.getOptionsDiagnostics(d),...s.getGlobalDiagnostics(d)]},getSyntacticClassifications:function(e,n){return fZ(d,o.getCurrentSourceFile(e),n)},getSemanticClassifications:function(e,n,t){return g(),"2020"===(t||"original")?L4.v2020.getSemanticClassifications(s,d,h(e),n):cZ(s.getTypeChecker(),d,h(e),s.getClassifiableNames(),n)},getEncodedSyntacticClassifications:function(e,n){return mZ(d,o.getCurrentSourceFile(e),n)},getEncodedSemanticClassifications:function(e,n,t){return g(),"original"===(t||"original")?dZ(s.getTypeChecker(),d,h(e),s.getClassifiableNames(),n):L4.v2020.getEncodedSemanticClassifications(s,d,h(e),n)},getCompletionsAtPosition:function(n,t,r=Uq,i){const a={...r,includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return g(),Xie.getCompletionsAtPosition(e,s,_,h(n),t,a,r.triggerCharacter,r.triggerKind,d,i&&Mfe.getFormatContext(i,e),r.includeSymbol)},getCompletionEntryDetails:function(n,t,r,i,a,o=Uq,c){return g(),Xie.getCompletionEntryDetails(s,_,h(n),t,{name:r,source:a,data:c},e,i&&Mfe.getFormatContext(i,e),o,d)},getCompletionEntrySymbol:function(n,t,r,i,a=Uq){return g(),Xie.getCompletionEntrySymbol(s,_,h(n),t,{name:r,source:i},e,a)},getSignatureHelpItems:function(e,n,{triggerReason:t}=Uq){g();const r=h(e);return wue.getSignatureHelpItems(s,r,n,t,d)},getQuickInfoAtPosition:function(e,n){g();const t=h(e),r=TX(t,n);if(r===t)return;const i=s.getTypeChecker(),a=function(e){if(Gk(e.parent)&&e.pos===e.parent.pos)return e.parent.expression;if(fk(e.parent)&&e.pos===e.parent.pos)return e.parent;if(fm(e.parent)&&e.parent.name===e)return e.parent;return e}(r),o=function(e,n){const t=x2(e);if(t){const e=n.getContextualType(t.parent),r=e&&S2(t,n,e,!1);if(r&&1===r.length)return Me(r)}return n.getSymbolAtLocation(e)}(a,i);if(!o||i.isUnknownSymbol(o)){const e=function(e,n,t){switch(n.kind){case 79:return!FJ(n)&&!GJ(n)&&!ql(n.parent);case 208:case 163:return!KX(e,t);case 108:case 194:case 106:case 199:return!0;case 233:return fm(n);default:return!1}}(t,a,n)?i.getTypeAtLocation(a):void 0;return e&&{kind:"",kindModifiers:"",textSpan:sY(a,t),displayParts:i.runWithCancellationToken(d,(n=>y$(n,e,zJ(a)))),documentation:e.symbol?e.symbol.getDocumentationComment(i):void 0,tags:e.symbol?e.symbol.getJsDocTags(i):void 0}}const{symbolKind:c,displayParts:l,documentation:u,tags:_}=i.runWithCancellationToken(d,(e=>Zue.getSymbolDisplayPartsDocumentationAndSymbolKind(e,o,t,zJ(a),a)));return{kind:c,kindModifiers:Zue.getSymbolModifiers(i,o),textSpan:sY(a,t),displayParts:l,documentation:u,tags:_}},getDefinitionAtPosition:function(e,n,t,r){return g(),noe.getDefinitionAtPosition(s,h(e),n,t,r)},getDefinitionAndBoundSpan:function(e,n){return g(),noe.getDefinitionAndBoundSpan(s,h(e),n)},getImplementationAtPosition:function(e,n){return g(),Bae.getImplementationsAtPosition(s,d,s.getSourceFiles(),h(e),n)},getTypeDefinitionAtPosition:function(e,n){return g(),noe.getTypeDefinitionAtPosition(s.getTypeChecker(),h(e),n)},getReferencesAtPosition:function(e,n){return g(),b(TX(h(e),n),n,{use:Bae.FindReferencesUse.References},Bae.toReferenceEntry)},findReferences:function(e,n){return g(),Bae.findReferencedSymbols(s,d,s.getSourceFiles(),h(e),n)},getFileReferences:function(e){return g(),Bae.Core.getReferencesForFileName(e,s,s.getSourceFiles()).map(Bae.toReferenceEntry)},getOccurrencesAtPosition:function(e,n){return X(v(e,n,[e]),(e=>e.highlightSpans.map((n=>({fileName:e.fileName,textSpan:n.textSpan,isWriteAccess:"writtenReference"===n.kind,...n.isInString&&{isInString:!0},...n.contextSpan&&{contextSpan:n.contextSpan}})))))},getDocumentHighlights:v,getNameOrDottedNameSpan:function(e,n,t){const r=o.getCurrentSourceFile(e),i=TX(r,n);if(i===r)return;switch(i.kind){case 208:case 163:case 10:case 95:case 110:case 104:case 106:case 108:case 194:case 79:break;default:return}let a=i;for(;;)if(UJ(a)||BJ(a))a=a.parent;else{if(!jJ(a))break;if(264!==a.parent.parent.kind||a.parent.parent.body!==a.parent)break;a=a.parent.parent.name}return vc(a.getStart(),i.getEnd())},getBreakpointStatementAtPosition:function(e,n){const t=o.getCurrentSourceFile(e);return z2.spanInSourceFileAtLocation(t,n)},getNavigateToItems:function(e,n,t,r=!1){return g(),D0(t?[h(t)]:s.getSourceFiles(),s.getTypeChecker(),d,e,n,r)},getRenameInfo:function(e,n,t){return g(),iue.getRenameInfo(s,h(e),n,t||{})},getSmartSelectionRange:function(e,n){return Hue.getSmartSelectionRange(n,o.getCurrentSourceFile(e))},findRenameLocations:function(e,n,t,r,i){g();const a=h(e),o=EX(TX(a,n));if(iue.nodeIsEligibleForRename(o)){if(IC(o)&&(uw(o.parent)||_w(o.parent))&&mv(o.escapedText)){const{openingElement:e,closingElement:n}=o.parent.parent;return[e,n].map((e=>{const n=sY(e.tagName,a);return{fileName:a.fileName,textSpan:n,...Bae.toContextSpan(n,a,e.parent)}}))}return b(o,n,{findInStrings:t,findInComments:r,providePrefixAndSuffixTextForRename:i,use:Bae.FindReferencesUse.Rename},((e,n,t)=>Bae.toRenameLocation(e,n,t,i||!1)))}},getNavigationBarItems:function(e){return n1(o.getCurrentSourceFile(e),d)},getNavigationTree:function(e){return t1(o.getCurrentSourceFile(e),d)},getOutliningSpans:function(e){const n=o.getCurrentSourceFile(e);return mse.collectElements(n,d)},getTodoComments:function(e,n){g();const t=h(e);d.throwIfCancellationRequested();const r=t.text,i=[];if(n.length>0&&!rt(t.fileName,"/node_modules/")){const e=function(){const e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",t="(?:"+W(n,(e=>"("+(e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"))).join("|")+")";return new RegExp(e+"("+t+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}();let o;for(;o=e.exec(r);){d.throwIfCancellationRequested();const e=3;Nt.assert(o.length===n.length+e);const s=o[1],c=o.index+s.length;if(!KX(t,c))continue;let l;for(let t=0;t<n.length;t++)o[t+e]&&(l=n[t]);if(void 0===l)return Nt.fail();if((a=r.charCodeAt(c+l.text.length))>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)continue;const u=o[2];i.push({descriptor:l,message:u,position:c})}}var a;return i},getBraceMatchingAtPosition:function(e,n){const t=o.getCurrentSourceFile(e),r=xX(t,n),a=r.getStart(t)===n?E.get(r.kind.toString()):void 0,s=a&&dX(r.parent,a,t);return s?[sY(r,t),sY(s,t)].sort(((e,n)=>e.start-n.start)):i},getIndentationAtPosition:function(e,n,t){let r=cr();const i=p2(t),a=o.getCurrentSourceFile(e);_("getIndentationAtPosition: getCurrentSourceFile: "+(cr()-r)),r=cr();const s=Mfe.SmartIndenter.getIndentation(n,a,i);return _("getIndentationAtPosition: computeIndentation : "+(cr()-r)),s},getFormattingEditsForRange:function(n,t,r,i){const a=o.getCurrentSourceFile(n);return Mfe.formatSelection(t,r,a,Mfe.getFormatContext(p2(i),e))},getFormattingEditsForDocument:function(n,t){return Mfe.formatDocument(o.getCurrentSourceFile(n),Mfe.getFormatContext(p2(t),e))},getFormattingEditsAfterKeystroke:function(n,t,r,i){const a=o.getCurrentSourceFile(n),s=Mfe.getFormatContext(p2(i),e);if(!KX(a,t))switch(r){case"{":return Mfe.formatOnOpeningCurly(t,a,s);case"}":return Mfe.formatOnClosingCurly(t,a,s);case";":return Mfe.formatOnSemicolon(t,a,s);case"\n":return Mfe.formatOnEnter(t,a,s)}return[]},getDocCommentTemplateAtPosition:function(n,t,r,i){const a=i?Mfe.getFormatContext(i,e).options:void 0;return koe.getDocCommentTemplateAtPosition(m$(e,a),o.getCurrentSourceFile(n),t,r)},isValidBraceCompletionAtPosition:function(e,n,t){if(60===t)return!1;const r=o.getCurrentSourceFile(e);if(DX(r,n))return!1;if(OX(r,n))return 123===t;if(PX(r,n))return!1;switch(t){case 39:case 34:case 96:return!KX(r,n)}return!0},getJsxClosingTagAtPosition:function(e,n){const t=o.getCurrentSourceFile(e),r=IX(n,t);if(!r)return;const i=31===r.kind&&uw(r.parent)?r.parent.parent:pC(r)&&lw(r.parent)?r.parent:void 0;if(i&&C(i))return{newText:`</${i.openingElement.tagName.getText(t)}>`};const a=31===r.kind&&fw(r.parent)?r.parent.parent:pC(r)&&pw(r.parent)?r.parent:void 0;return a&&k(a)?{newText:"</>"}:void 0},getSpanOfEnclosingComment:function(e,n,t){const r=o.getCurrentSourceFile(e),i=Mfe.getRangeOfEnclosingComment(r,n);return!i||t&&3!==i.kind?void 0:dY(i)},getCodeFixesAtPosition:function(n,t,r,i,a,o=Uq){g();const c=h(n),l=vc(t,r),u=Mfe.getFormatContext(a,e);return X(pe(i,Pn,Un),(n=>(d.throwIfCancellationRequested(),$te.getFixes({errorCode:n,sourceFile:c,span:l,program:s,host:e,cancellationToken:d,formatContext:u,preferences:o}))))},getCombinedCodeFix:function(n,t,r,i=Uq){g(),Nt.assert("file"===n.type);const a=h(n.fileName),o=Mfe.getFormatContext(r,e);return $te.getAllFixes({fixId:t,sourceFile:a,program:s,host:e,cancellationToken:d,formatContext:o,preferences:i})},applyCodeActionCommand:function(e,n){const t="string"===typeof e?n:e;return gn(t)?Promise.all(t.map((e=>T(e)))):T(t)},organizeImports:function(n,t,r=Uq){var i;g(),Nt.assert("file"===n.type);const a=h(n.fileName),o=Mfe.getFormatContext(t,e),c=null!=(i=n.mode)?i:n.skipDestructiveCodeActions?"SortAndCombine":"All";return ise.organizeImports(a,o,e,s,r,c)},getEditsForFileRename:function(n,t,r,i=Uq){return AZ(y(),n,t,e,Mfe.getFormatContext(r,e),i,m)},getEmitOutput:function(n,t,r){g();const i=h(n),a=e.getCustomTransformers&&e.getCustomTransformers();return eK(s,i,!!t,d,a,r)},getNonBoundSourceFile:function(e){return o.getCurrentSourceFile(e)},getProgram:y,getCurrentProgram:()=>s,getAutoImportProvider:function(){var n;return null==(n=e.getPackageJsonAutoImportProvider)?void 0:n.call(e)},updateIsDefinitionOfReferencedSymbols:function(n,t){const r=s.getTypeChecker(),i=function(){for(const i of n)for(const n of i.references){if(t.has(n)){const e=a(n);return Nt.assertIsDefined(e),r.getSymbolAtLocation(e)}const i=YY(n,m,dn(e,e.fileExists));if(i&&t.has(i)){const e=a(i);if(e)return r.getSymbolAtLocation(e)}}return}();if(!i)return!1;for(const o of n)for(const n of o.references){const r=a(n);if(Nt.assertIsDefined(r),t.has(n)||Bae.isDeclarationOfSymbol(r,i)){t.add(n),n.isDefinition=!0;const r=YY(n,m,dn(e,e.fileExists));r&&t.add(r)}else n.isDefinition=!1}return!0;function a(e){const n=s.getSourceFile(e.fileName);if(!n)return;const t=TX(n,e.textSpan.start);return Bae.Core.getAdjustedNode(t,{use:Bae.FindReferencesUse.References})}},getApplicableRefactors:function(e,n,t=Uq,r,i){g();const a=h(e);return Xde.getApplicableRefactors(I(a,n,t,Uq,r,i))},getEditsForRefactor:function(e,n,t,r,i,a=Uq){g();const o=h(e);return Xde.getEditsForRefactor(I(o,t,a,n),r,i)},toLineColumnOffset:function(e,n){return 0===n?{line:0,character:0}:m.toLineColumnOffset(e,n)},getSourceMapper:()=>m,clearSourceMapperCache:()=>m.clearCache(),prepareCallHierarchy:function(e,n){g();const t=_4.resolveCallHierarchyDeclaration(s,TX(h(e),n));return t&&AQ(t,(e=>_4.createCallHierarchyItem(s,e)))},provideCallHierarchyIncomingCalls:function(e,n){g();const t=h(e),r=LQ(_4.resolveCallHierarchyDeclaration(s,0===n?t:TX(t,n)));return r?_4.getIncomingCalls(s,r,d):[]},provideCallHierarchyOutgoingCalls:function(e,n){g();const t=h(e),r=LQ(_4.resolveCallHierarchyDeclaration(s,0===n?t:TX(t,n)));return r?_4.getOutgoingCalls(s,r):[]},toggleLineComment:S,toggleMultilineComment:L,commentSelection:function(e,n){const t=o.getCurrentSourceFile(e),{firstLine:r,lastLine:i}=x(t,n);return r===i&&n.pos!==n.end?L(e,n,!0):S(e,n,!0)},uncommentSelection:function(e,n){const t=o.getCurrentSourceFile(e),r=[],{pos:i}=n;let{end:a}=n;i===a&&(a+=GX(t,i)?2:1);for(let o=i;o<=a;o++){const n=KX(t,o);if(n){switch(n.kind){case 2:r.push.apply(r,S(e,{end:n.end,pos:n.pos+1},!1));break;case 3:r.push.apply(r,L(e,{end:n.end,pos:n.pos+1},!1))}o=n.end+1}}return r},provideInlayHints:function(n,t,r=Uq){g();const i=h(n);return coe.provideInlayHints(function(n,t,r){return{file:n,program:y(),host:e,span:t,preferences:r,cancellationToken:d}}(i,t,r))},getSupportedCodeFixes:g2};switch(a){case 0:break;case 1:r2.forEach((e=>w[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:i2.forEach((e=>w[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)}));break;default:Nt.assertNever(a)}return w}function T2(e){return e.nameTable||function(e){const n=e.nameTable=new Map;e.forEachChild((function e(t){if(IC(t)&&!GJ(t)&&t.escapedText||wy(t)&&function(e){return ry(e)||280===e.parent.kind||function(e){return e&&e.parent&&209===e.parent.kind&&e.parent.argumentExpression===e}(e)||ay(e)}(t)){const e=Fy(t);n.set(e,void 0===n.get(e)?t.pos:-1)}else if(wC(t)){const e=t.escapedText;n.set(e,void 0===n.get(e)?t.pos:-1)}if(CD(t,e),Zu(t))for(const n of t.jsDoc)CD(n,e)}))}(e),e.nameTable}function x2(e){const n=function(e){switch(e.kind){case 10:case 14:case 8:if(164===e.parent.kind)return r_(e.parent.parent)?e.parent.parent:void 0;case 79:return!r_(e.parent)||207!==e.parent.parent.kind&&289!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}return}(e);return n&&(Ok(n.parent)||gw(n.parent))?n:void 0}function S2(e,n,t,r){const a=TY(e.name);if(!a)return i;if(!t.isUnion()){const e=t.getProperty(a);return e?[e]:i}const o=ee(t.types,(t=>(Ok(e.parent)||gw(e.parent))&&n.isTypeInvalidDueToUnionDiscriminant(t,e.parent)?void 0:t.getProperty(a)));if(r&&(0===o.length||o.length===t.types.length)){const e=t.getProperty(a);if(e)return[e]}return 0===o.length?ee(t.types,(e=>e.getProperty(a))):o}function A2(e){if(Aa)return Eo(po(Ao(Aa.getExecutingFilePath())),ac(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var L2=E({"src/services/services.ts"(){Bfe(),Bfe(),e1(),a2(),j1="0.8",H1=class{constructor(e,n,t){this.pos=n,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){Nt.assert(!Zx(this.pos)&&!Zx(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Dp(this)}getStart(e,n){return this.assertHasRealPosition(),nf(this,e,n)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,n){return this.getChildren(n)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=s2(this,e))}getFirstToken(e){this.assertHasRealPosition();const n=this.getChildren(e);if(!n.length)return;const t=D(n,(e=>e.kind<312||e.kind>353));return t.kind<163?t:t.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const n=Fe(this.getChildren(e));if(n)return n.kind<163?n:n.getLastToken(e)}forEachChild(e,n){return CD(this,e,n)}},K1=class{constructor(e,n){this.pos=e,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Dp(this)}getStart(e,n){return nf(this,e,n)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return 1===this.kind&&this.jsDoc||i}getFirstToken(){}getLastToken(){}forEachChild(){}},W1=class{constructor(e,n){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=n}getFlags(){return this.flags}get name(){return jc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=i,!this.declarations&&up(this)&&this.links.target&&up(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const n=this.links.target.links.tupleLabelDeclaration;this.documentationComment=u2([n],e)}else this.documentationComment=u2(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,n){if(e){if(Qu(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=u2(j(this.declarations,Qu),n)),S(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if($u(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=u2(j(this.declarations,$u),n)),S(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(n)}getJsDocTags(e){return void 0===this.tags&&(this.tags=d2(this.declarations,e)),this.tags}getContextualJsDocTags(e,n){if(e){if(Qu(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=d2(j(this.declarations,Qu),n)),S(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if($u(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=d2(j(this.declarations,$u),n)),S(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(n)}},z1=class extends K1{constructor(e,n,t){super(n,t),this.kind=e}},(q1=class extends K1{constructor(e,n,t){super(n,t),this.kind=79}get text(){return Uc(this)}}).prototype.kind=79,(J1=class extends K1{constructor(e,n,t){super(n,t),this.kind=80}get text(){return Uc(this)}}).prototype.kind=80,X1=class{constructor(e,n){this.checker=e,this.flags=n}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(1048576&this.flags)}isIntersection(){return!!(2097152&this.flags)}isUnionOrIntersection(){return!!(3145728&this.flags)}isLiteral(){return!!(2432&this.flags)}isStringLiteral(){return!!(128&this.flags)}isNumberLiteral(){return!!(256&this.flags)}isTypeParameter(){return!!(262144&this.flags)}isClassOrInterface(){return!!(3&YE(this))}isClass(){return!!(1&YE(this))}isIndexType(){return!!(4194304&this.flags)}get typeArguments(){if(4&YE(this))return this.checker.getTypeArguments(this)}},Y1=class{constructor(e,n){this.checker=e,this.flags=n}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const n=this.checker.getParameterType(this,e);if(n.isIndexType()&&HS(n.type)){const e=n.type.getConstraint();if(e)return this.checker.getIndexType(e)}return n}getDocumentationComment(){return this.documentationComment||(this.documentationComment=u2(Et(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=d2(Et(this.declaration),this.checker))}},$1=class extends H1{constructor(e,n,t){super(e,n,t),this.kind=308}update(e,n){return MD(this,e,n)}getLineAndCharacterOfPosition(e){return Ss(this,e)}getLineStarts(){return bs(this)}getPositionOfLineAndCharacter(e,n,t){return vs(bs(this),e,n,this.text,t)}getLineEndOfPosition(e){const{line:n}=this.getLineAndCharacterOfPosition(e),t=this.getLineStarts();let r;n+1>=t.length&&(r=this.getEnd()),r||(r=t[n+1]-1);const i=this.getFullText();return"\n"===i[r]&&"\r"===i[r-1]?r-1:r}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=un();return this.forEachChild((function r(i){switch(i.kind){case 259:case 215:case 171:case 170:const a=i,o=t(a);if(o){const n=function(n){let t=e.get(n);t||e.set(n,t=[]);return t}(o),t=Fe(n);t&&a.parent===t.parent&&a.symbol===t.symbol?a.body&&!t.body&&(n[n.length-1]=a):n.push(a)}CD(i,r);break;case 260:case 228:case 261:case 262:case 263:case 264:case 268:case 278:case 273:case 270:case 271:case 174:case 175:case 184:n(i),CD(i,r);break;case 166:if(!fb(i,16476))break;case 257:case 205:{const e=i;if(Jd(e.name)){CD(e.name,r);break}e.initializer&&r(e.initializer)}case 302:case 169:case 168:n(i);break;case 275:const s=i;s.exportClause&&(nw(s.exportClause)?A(s.exportClause.elements,r):r(s.exportClause.name));break;case 269:const c=i.importClause;c&&(c.name&&n(c.name),c.namedBindings&&(271===c.namedBindings.kind?n(c.namedBindings):A(c.namedBindings.elements,r)));break;case 223:0!==eg(i)&&n(i);default:CD(i,r)}})),e;function n(n){const r=t(n);r&&e.add(r,n)}function t(e){const n=Jc(e);return n&&(WC(n)&&Mk(n.expression)?n.expression.name.text:Cd(n)?TY(n):void 0)}}},Q1=class{constructor(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t}getLineAndCharacterOfPosition(e){return Ss(this,e)}},Z1=class{constructor(e){this.host=e}getCurrentSourceFile(e){var n,t,r,i,a,o,s,c;const l=this.host.getScriptSnapshot(e);if(!l)throw new Error("Could not find file: '"+e+"'.");const d=x$(e,this.host),u=this.host.getScriptVersion(e);let _;if(this.currentFileName!==e){_=v2(e,l,{languageVersion:99,impliedNodeFormat:UH(Co(e,this.host.getCurrentDirectory(),(null==(r=null==(t=(n=this.host).getCompilerHost)?void 0:t.call(n))?void 0:r.getCanonicalFileName)||Tv(this.host)),null==(c=null==(s=null==(o=null==(a=(i=this.host).getCompilerHost)?void 0:a.call(i))?void 0:o.getModuleResolutionCache)?void 0:s.call(o))?void 0:c.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:jT(this.host.getCompilationSettings())},u,!0,d)}else if(this.currentFileVersion!==u){const e=l.getChangeRange(this.currentFileScriptSnapshot);_=b2(this.currentSourceFile,l,u,e)}return _&&(this.currentFileVersion=u,this.currentFileName=e,this.currentFileScriptSnapshot=l,this.currentSourceFile=_),this.currentSourceFile}},e2={isCancellationRequested:Sn,throwIfCancellationRequested:xn},n2=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Vr)||e.instant(Vr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new ei}},t2=class{constructor(e,n=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=n,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=cr();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Vr)||e.instant(Vr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new ei}},r2=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],i2=[...r2,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],vT({getNodeConstructor:()=>H1,getTokenConstructor:()=>z1,getIdentifierConstructor:()=>q1,getPrivateIdentifierConstructor:()=>J1,getSourceFileConstructor:()=>$1,getSymbolConstructor:()=>W1,getTypeConstructor:()=>X1,getSignatureConstructor:()=>Y1,getSourceMapSourceConstructor:()=>Q1})}});function C2(e,n,t){const r=[];t=R0(t,r);const i=gn(e)?e:[e],a=YV(void 0,void 0,gA,t,i,n,!0);return a.diagnostics=de(a.diagnostics,r),a}var k2,I2,w2,R2,N2,D2,O2,M2,P2,F2=E({"src/services/transform.ts"(){Bfe()}});function G2(e,n){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+n.message)}function B2(e,n,t,r){return U2(e,n,!0,t,r)}function U2(e,n,t,r,i){try{const a=function(e,n,t,r){let i;r&&(e.log(n),i=cr());const a=t();if(r){const t=cr();if(e.log(`${n} completed in ${t-i} msec`),vn(a)){let n=a;n.length>128&&(n=n.substring(0,128)+"..."),e.log(` result.length=${n.length}, result='${JSON.stringify(n)}'`)}}return a}(e,n,r,i);return t?JSON.stringify({result:a}):a}catch(a){return a instanceof ei?JSON.stringify({canceled:!0}):(G2(e,a),a.description=n,JSON.stringify({error:a}))}}function V2(e,n){return e.map((e=>function(e,n){return{message:TH(e.messageText,n),start:e.start,length:e.length,category:fa(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}(e,n)))}function j2(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var H2=E({"src/services/shims.ts"(){Bfe(),k2=function(){return this}(),I2=class{constructor(e){this.scriptSnapshotShim=e}getText(e,n){return this.scriptSnapshotShim.getText(e,n)}getLength(){return this.scriptSnapshotShim.getLength()}getChangeRange(e){const n=e,t=this.scriptSnapshotShim.getChangeRange(n.scriptSnapshotShim);if(null===t)return null;const r=JSON.parse(t);return Tc(yc(r.span.start,r.span.length),r.newLength)}dispose(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()}},w2=class{constructor(e){this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(e,n)=>{const t=JSON.parse(this.shimHost.getModuleResolutionsForFile(n));return W(e,(e=>{const n=qe(t,e);return n?{resolvedFileName:n,extension:tS(n),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=e=>this.shimHost.directoryExists(e)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(e,n)=>{const t=JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return W(e,(e=>qe(t,vn(e)?e:In(e.fileName))))})}log(e){this.loggingEnabled&&this.shimHost.log(e)}trace(e){this.tracingEnabled&&this.shimHost.trace(e)}error(e){this.shimHost.error(e)}getProjectVersion(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()}getTypeRootsVersion(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0}useCaseSensitiveFileNames(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()}getCompilationSettings(){const e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");const n=JSON.parse(e);return n.allowNonTsExtensions=!0,n}getScriptFileNames(){const e=this.shimHost.getScriptFileNames();return JSON.parse(e)}getScriptSnapshot(e){const n=this.shimHost.getScriptSnapshot(e);return n&&new I2(n)}getScriptKind(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0}getScriptVersion(e){return this.shimHost.getScriptVersion(e)}getLocalizedDiagnosticMessages(){const e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(Sa){return this.log(Sa.description||"diagnosticMessages.generated.json has invalid JSON format"),null}}getCancellationToken(){const e=this.shimHost.getCancellationToken();return new t2(e)}getCurrentDirectory(){return this.shimHost.getCurrentDirectory()}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}getDefaultLibFileName(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))}readDirectory(e,n,t,r,i){const a=Rx(e,t,r,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(a.basePaths),a.excludePattern,a.includeFilePattern,a.includeDirectoryPattern,i))}readFile(e,n){return this.shimHost.readFile(e,n)}fileExists(e){return this.shimHost.fileExists(e)}},R2=class{constructor(e){this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=e=>this.shimHost.directoryExists(e):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=e=>this.shimHost.realpath(e):this.realpath=void 0}readDirectory(e,n,t,r,i){const a=Rx(e,t,r,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(a.basePaths),a.excludePattern,a.includeFilePattern,a.includeDirectoryPattern,i))}fileExists(e){return this.shimHost.fileExists(e)}readFile(e){return this.shimHost.readFile(e)}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}},N2=class{constructor(e){this.factory=e,e.registerShim(this)}dispose(e){this.factory.unregisterShim(this)}},D2=class extends N2{constructor(e,n,t){super(e),this.host=n,this.languageService=t,this.logPerformance=!1,this.logger=this.host}forwardJSONCall(e,n){return B2(this.logger,e,n,this.logPerformance)}dispose(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,k2&&k2.CollectGarbage&&(k2.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,super.dispose(e)}refresh(e){this.forwardJSONCall(`refresh(${e})`,(()=>null))}cleanupSemanticCache(){this.forwardJSONCall("cleanupSemanticCache()",(()=>(this.languageService.cleanupSemanticCache(),null)))}realizeDiagnostics(e){return V2(e,m$(this.host,void 0))}getSyntacticClassifications(e,n,t){return this.forwardJSONCall(`getSyntacticClassifications('${e}', ${n}, ${t})`,(()=>this.languageService.getSyntacticClassifications(e,yc(n,t))))}getSemanticClassifications(e,n,t){return this.forwardJSONCall(`getSemanticClassifications('${e}', ${n}, ${t})`,(()=>this.languageService.getSemanticClassifications(e,yc(n,t))))}getEncodedSyntacticClassifications(e,n,t){return this.forwardJSONCall(`getEncodedSyntacticClassifications('${e}', ${n}, ${t})`,(()=>j2(this.languageService.getEncodedSyntacticClassifications(e,yc(n,t)))))}getEncodedSemanticClassifications(e,n,t){return this.forwardJSONCall(`getEncodedSemanticClassifications('${e}', ${n}, ${t})`,(()=>j2(this.languageService.getEncodedSemanticClassifications(e,yc(n,t)))))}getSyntacticDiagnostics(e){return this.forwardJSONCall(`getSyntacticDiagnostics('${e}')`,(()=>{const n=this.languageService.getSyntacticDiagnostics(e);return this.realizeDiagnostics(n)}))}getSemanticDiagnostics(e){return this.forwardJSONCall(`getSemanticDiagnostics('${e}')`,(()=>{const n=this.languageService.getSemanticDiagnostics(e);return this.realizeDiagnostics(n)}))}getSuggestionDiagnostics(e){return this.forwardJSONCall(`getSuggestionDiagnostics('${e}')`,(()=>this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(e))))}getCompilerOptionsDiagnostics(){return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(()=>{const e=this.languageService.getCompilerOptionsDiagnostics();return this.realizeDiagnostics(e)}))}getQuickInfoAtPosition(e,n){return this.forwardJSONCall(`getQuickInfoAtPosition('${e}', ${n})`,(()=>this.languageService.getQuickInfoAtPosition(e,n)))}getNameOrDottedNameSpan(e,n,t){return this.forwardJSONCall(`getNameOrDottedNameSpan('${e}', ${n}, ${t})`,(()=>this.languageService.getNameOrDottedNameSpan(e,n,t)))}getBreakpointStatementAtPosition(e,n){return this.forwardJSONCall(`getBreakpointStatementAtPosition('${e}', ${n})`,(()=>this.languageService.getBreakpointStatementAtPosition(e,n)))}getSignatureHelpItems(e,n,t){return this.forwardJSONCall(`getSignatureHelpItems('${e}', ${n})`,(()=>this.languageService.getSignatureHelpItems(e,n,t)))}getDefinitionAtPosition(e,n){return this.forwardJSONCall(`getDefinitionAtPosition('${e}', ${n})`,(()=>this.languageService.getDefinitionAtPosition(e,n)))}getDefinitionAndBoundSpan(e,n){return this.forwardJSONCall(`getDefinitionAndBoundSpan('${e}', ${n})`,(()=>this.languageService.getDefinitionAndBoundSpan(e,n)))}getTypeDefinitionAtPosition(e,n){return this.forwardJSONCall(`getTypeDefinitionAtPosition('${e}', ${n})`,(()=>this.languageService.getTypeDefinitionAtPosition(e,n)))}getImplementationAtPosition(e,n){return this.forwardJSONCall(`getImplementationAtPosition('${e}', ${n})`,(()=>this.languageService.getImplementationAtPosition(e,n)))}getRenameInfo(e,n,t){return this.forwardJSONCall(`getRenameInfo('${e}', ${n})`,(()=>this.languageService.getRenameInfo(e,n,t)))}getSmartSelectionRange(e,n){return this.forwardJSONCall(`getSmartSelectionRange('${e}', ${n})`,(()=>this.languageService.getSmartSelectionRange(e,n)))}findRenameLocations(e,n,t,r,i){return this.forwardJSONCall(`findRenameLocations('${e}', ${n}, ${t}, ${r}, ${i})`,(()=>this.languageService.findRenameLocations(e,n,t,r,i)))}getBraceMatchingAtPosition(e,n){return this.forwardJSONCall(`getBraceMatchingAtPosition('${e}', ${n})`,(()=>this.languageService.getBraceMatchingAtPosition(e,n)))}isValidBraceCompletionAtPosition(e,n,t){return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${e}', ${n}, ${t})`,(()=>this.languageService.isValidBraceCompletionAtPosition(e,n,t)))}getSpanOfEnclosingComment(e,n,t){return this.forwardJSONCall(`getSpanOfEnclosingComment('${e}', ${n})`,(()=>this.languageService.getSpanOfEnclosingComment(e,n,t)))}getIndentationAtPosition(e,n,t){return this.forwardJSONCall(`getIndentationAtPosition('${e}', ${n})`,(()=>{const r=JSON.parse(t);return this.languageService.getIndentationAtPosition(e,n,r)}))}getReferencesAtPosition(e,n){return this.forwardJSONCall(`getReferencesAtPosition('${e}', ${n})`,(()=>this.languageService.getReferencesAtPosition(e,n)))}findReferences(e,n){return this.forwardJSONCall(`findReferences('${e}', ${n})`,(()=>this.languageService.findReferences(e,n)))}getFileReferences(e){return this.forwardJSONCall(`getFileReferences('${e})`,(()=>this.languageService.getFileReferences(e)))}getOccurrencesAtPosition(e,n){return this.forwardJSONCall(`getOccurrencesAtPosition('${e}', ${n})`,(()=>this.languageService.getOccurrencesAtPosition(e,n)))}getDocumentHighlights(e,n,t){return this.forwardJSONCall(`getDocumentHighlights('${e}', ${n})`,(()=>{const r=this.languageService.getDocumentHighlights(e,n,JSON.parse(t)),i=In(vo(e));return j(r,(e=>In(vo(e.fileName))===i))}))}getCompletionsAtPosition(e,n,t,r){return this.forwardJSONCall(`getCompletionsAtPosition('${e}', ${n}, ${t}, ${r})`,(()=>this.languageService.getCompletionsAtPosition(e,n,t,r)))}getCompletionEntryDetails(e,n,t,r,i,a,o){return this.forwardJSONCall(`getCompletionEntryDetails('${e}', ${n}, '${t}')`,(()=>{const s=void 0===r?void 0:JSON.parse(r);return this.languageService.getCompletionEntryDetails(e,n,t,s,i,a,o)}))}getFormattingEditsForRange(e,n,t,r){return this.forwardJSONCall(`getFormattingEditsForRange('${e}', ${n}, ${t})`,(()=>{const i=JSON.parse(r);return this.languageService.getFormattingEditsForRange(e,n,t,i)}))}getFormattingEditsForDocument(e,n){return this.forwardJSONCall(`getFormattingEditsForDocument('${e}')`,(()=>{const t=JSON.parse(n);return this.languageService.getFormattingEditsForDocument(e,t)}))}getFormattingEditsAfterKeystroke(e,n,t,r){return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${e}', ${n}, '${t}')`,(()=>{const i=JSON.parse(r);return this.languageService.getFormattingEditsAfterKeystroke(e,n,t,i)}))}getDocCommentTemplateAtPosition(e,n,t,r){return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${e}', ${n})`,(()=>this.languageService.getDocCommentTemplateAtPosition(e,n,t,r)))}getNavigateToItems(e,n,t){return this.forwardJSONCall(`getNavigateToItems('${e}', ${n}, ${t})`,(()=>this.languageService.getNavigateToItems(e,n,t)))}getNavigationBarItems(e){return this.forwardJSONCall(`getNavigationBarItems('${e}')`,(()=>this.languageService.getNavigationBarItems(e)))}getNavigationTree(e){return this.forwardJSONCall(`getNavigationTree('${e}')`,(()=>this.languageService.getNavigationTree(e)))}getOutliningSpans(e){return this.forwardJSONCall(`getOutliningSpans('${e}')`,(()=>this.languageService.getOutliningSpans(e)))}getTodoComments(e,n){return this.forwardJSONCall(`getTodoComments('${e}')`,(()=>this.languageService.getTodoComments(e,JSON.parse(n))))}prepareCallHierarchy(e,n){return this.forwardJSONCall(`prepareCallHierarchy('${e}', ${n})`,(()=>this.languageService.prepareCallHierarchy(e,n)))}provideCallHierarchyIncomingCalls(e,n){return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${e}', ${n})`,(()=>this.languageService.provideCallHierarchyIncomingCalls(e,n)))}provideCallHierarchyOutgoingCalls(e,n){return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${e}', ${n})`,(()=>this.languageService.provideCallHierarchyOutgoingCalls(e,n)))}provideInlayHints(e,n,t){return this.forwardJSONCall(`provideInlayHints('${e}', '${JSON.stringify(n)}', ${JSON.stringify(t)})`,(()=>this.languageService.provideInlayHints(e,n,t)))}getEmitOutput(e){return this.forwardJSONCall(`getEmitOutput('${e}')`,(()=>{const{diagnostics:n,...t}=this.languageService.getEmitOutput(e);return{...t,diagnostics:this.realizeDiagnostics(n)}}))}getEmitOutputObject(e){return U2(this.logger,`getEmitOutput('${e}')`,!1,(()=>this.languageService.getEmitOutput(e)),this.logPerformance)}toggleLineComment(e,n){return this.forwardJSONCall(`toggleLineComment('${e}', '${JSON.stringify(n)}')`,(()=>this.languageService.toggleLineComment(e,n)))}toggleMultilineComment(e,n){return this.forwardJSONCall(`toggleMultilineComment('${e}', '${JSON.stringify(n)}')`,(()=>this.languageService.toggleMultilineComment(e,n)))}commentSelection(e,n){return this.forwardJSONCall(`commentSelection('${e}', '${JSON.stringify(n)}')`,(()=>this.languageService.commentSelection(e,n)))}uncommentSelection(e,n){return this.forwardJSONCall(`uncommentSelection('${e}', '${JSON.stringify(n)}')`,(()=>this.languageService.uncommentSelection(e,n)))}},O2=class extends N2{constructor(e,n){super(e),this.logger=n,this.logPerformance=!1,this.classifier=rZ()}getEncodedLexicalClassifications(e,n,t=!1){return B2(this.logger,"getEncodedLexicalClassifications",(()=>j2(this.classifier.getEncodedLexicalClassifications(e,n,t))),this.logPerformance)}getClassificationsForLine(e,n,t=!1){const r=this.classifier.getClassificationsForLine(e,n,t);let i="";for(const a of r.entries)i+=a.length+"\n",i+=a.classification+"\n";return i+=r.finalLexState,i}},M2=class extends N2{constructor(e,n,t){super(e),this.logger=n,this.host=t,this.logPerformance=!1}forwardJSONCall(e,n){return B2(this.logger,e,n,this.logPerformance)}resolveModuleName(e,n,t){return this.forwardJSONCall(`resolveModuleName('${e}')`,(()=>{const r=JSON.parse(t),i=JP(n,vo(e),r,this.host);let a=i.resolvedModule?i.resolvedModule.resolvedFileName:void 0;return i.resolvedModule&&".ts"!==i.resolvedModule.extension&&".tsx"!==i.resolvedModule.extension&&".d.ts"!==i.resolvedModule.extension&&(a=void 0),{resolvedFileName:a,failedLookupLocations:i.failedLookupLocations,affectingLocations:i.affectingLocations}}))}resolveTypeReferenceDirective(e,n,t){return this.forwardJSONCall(`resolveTypeReferenceDirective(${e})`,(()=>{const r=JSON.parse(t),i=IP(n,vo(e),r,this.host);return{resolvedFileName:i.resolvedTypeReferenceDirective?i.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!i.resolvedTypeReferenceDirective||i.resolvedTypeReferenceDirective.primary,failedLookupLocations:i.failedLookupLocations}}))}getPreProcessedFileInfo(e,n){return this.forwardJSONCall(`getPreProcessedFileInfo('${e}')`,(()=>{const e=s0(vY(n),!0,!0);return{referencedFiles:this.convertFileReferences(e.referencedFiles),importedFiles:this.convertFileReferences(e.importedFiles),ambientExternalModules:e.ambientExternalModules,isLibFile:e.isLibFile,typeReferenceDirectives:this.convertFileReferences(e.typeReferenceDirectives),libReferenceDirectives:this.convertFileReferences(e.libReferenceDirectives)}}))}getAutomaticTypeDirectiveNames(e){return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${e}')`,(()=>DP(JSON.parse(e),this.host)))}convertFileReferences(e){if(!e)return;const n=[];for(const t of e)n.push({path:vo(t.fileName),position:t.pos,length:t.end-t.pos});return n}getTSConfigFileInfo(e,n){return this.forwardJSONCall(`getTSConfigFileInfo('${e}')`,(()=>{const t=DD(e,vY(n)),r=vo(e),i=TM(t,this.host,po(r),{},r);return{options:i.options,typeAcquisition:i.typeAcquisition,files:i.fileNames,raw:i.raw,errors:V2([...t.parseDiagnostics,...i.errors],"\r\n")}}))}getDefaultCompilationSettings(){return this.forwardJSONCall("getDefaultCompilationSettings()",(()=>({target:1,jsx:1})))}discoverTypings(e){const n=lt(!1);return this.forwardJSONCall("discoverTypings()",(()=>{const t=JSON.parse(e);return void 0===this.safeList&&(this.safeList=bq.loadSafeList(this.host,Co(t.safeListPath,t.safeListPath,n))),bq.discoverTypings(this.host,(e=>this.logger.log(e)),t.fileNames,Co(t.projectRootPath,t.projectRootPath,n),this.safeList,t.packageNameToTypingLocation,t.typeAcquisition,t.unresolvedImports,t.typesRegistry,Uq)}))}},P2=class{constructor(){this._shims=[]}getServicesVersion(){return j1}createLanguageServiceShim(e){try{void 0===this.documentRegistry&&(this.documentRegistry=bZ(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));const n=E2(new w2(e),this.documentRegistry,!1);return new D2(this,e,n)}catch(n){throw G2(e,n),n}}createClassifierShim(e){try{return new O2(this,e)}catch(n){throw G2(e,n),n}}createCoreServicesShim(e){try{const n=new R2(e);return new M2(this,e,n)}catch(n){throw G2(e,n),n}}close(){K(this._shims),this.documentRegistry=void 0}registerShim(e){this._shims.push(e)}unregisterShim(e){for(let n=0;n<this._shims.length;n++)if(this._shims[n]===e)return void delete this._shims[n];throw new Error("Invalid operation")}}}});function K2(e,n){if(e.isDeclarationFile)return;let t=SX(e,n);const r=e.getLineAndCharacterOfPosition(n).line;if(e.getLineAndCharacterOfPosition(t.getStart(e)).line>r){const n=IX(t.pos,e);if(!n||e.getLineAndCharacterOfPosition(n.getEnd()).line!==r)return;t=n}if(!(16777216&t.flags))return l(t);function i(n,t){const r=HN(n)?O(n.modifiers,JC):void 0;return vc(r?Ns(e.text,r.end):n.getStart(e),(t||n).getEnd())}function a(n,t){return i(n,kX(t,t.parent,e))}function o(n,t){return n&&r===e.getLineAndCharacterOfPosition(n.getStart(e)).line?l(n):l(t)}function s(n){return l(IX(n.pos,e))}function c(n){return l(kX(n,n.parent,e))}function l(n){if(n){const{parent:t}=n;switch(n.kind){case 240:return r(n.declarationList.declarations[0]);case 257:case 169:case 168:return r(n);case 166:return function e(n){if(Jd(n.name))return p(n.name);if(function(e){return!!e.initializer||void 0!==e.dotDotDotToken||fb(e,12)}(n))return i(n);{const t=n.parent,r=t.parameters.indexOf(n);return Nt.assert(-1!==r),0!==r?e(t.parameters[r-1]):l(t.body)}}(n);case 259:case 171:case 170:case 174:case 175:case 173:case 215:case 216:return function(e){if(!e.body)return;if(d(e))return i(e);return l(e.body)}(n);case 238:if(Fm(n))return function(e){const n=e.statements.length?e.statements[0]:e.getLastToken();if(d(e.parent))return o(e.parent,n);return l(n)}(n);case 265:return u(n);case 295:return u(n.block);case 241:return i(n.expression);case 250:return i(n.getChildAt(0),n.expression);case 244:return a(n,n.expression);case 243:return l(n.statement);case 256:return i(n.getChildAt(0));case 242:return a(n,n.expression);case 253:return l(n.statement);case 249:case 248:return i(n.getChildAt(0),n.label);case 245:return function(e){if(e.initializer)return _(e);if(e.condition)return i(e.condition);if(e.incrementor)return i(e.incrementor)}(n);case 246:return a(n,n.expression);case 247:return _(n);case 252:return a(n,n.expression);case 292:case 293:return l(n.statements[0]);case 255:return u(n.tryBlock);case 254:case 274:return i(n,n.expression);case 268:return i(n,n.moduleReference);case 269:case 275:return i(n,n.moduleSpecifier);case 264:if(1!==JF(n))return;case 260:case 263:case 302:case 205:return i(n);case 251:return l(n.statement);case 167:return function(n,t,r){if(n){const i=n.indexOf(t);if(i>=0){let t=i,a=i+1;for(;t>0&&r(n[t-1]);)t--;for(;a<n.length&&r(n[a]);)a++;return vc(Ns(e.text,n[t].pos),n[a-1].end)}}return i(t)}(t.modifiers,n,JC);case 203:case 204:return p(n);case 261:case 262:return;case 26:case 1:return o(IX(n.pos,e));case 27:return s(n);case 18:return function(n){switch(n.parent.kind){case 263:const t=n.parent;return o(IX(n.pos,e,n.parent),t.members.length?t.members[0]:t.getLastToken(e));case 260:const r=n.parent;return o(IX(n.pos,e,n.parent),r.members.length?r.members[0]:r.getLastToken(e));case 266:return o(n.parent.parent,n.parent.clauses[0])}return l(n.parent)}(n);case 19:return function(e){switch(e.parent.kind){case 265:if(1!==JF(e.parent.parent))return;case 263:case 260:return i(e);case 238:if(Fm(e.parent))return i(e);case 295:return l(Fe(e.parent.statements));case 266:const n=Fe(e.parent.clauses);return n?l(Fe(n.statements)):void 0;case 203:const t=e.parent;return l(Fe(t.elements)||t);default:if(tY(e.parent)){const n=e.parent;return i(Fe(n.properties)||n)}return l(e.parent)}}(n);case 23:return function(e){if(204===e.parent.kind){const n=e.parent;return i(Fe(n.elements)||n)}if(tY(e.parent)){const n=e.parent;return i(Fe(n.elements)||n)}return l(e.parent)}(n);case 20:return function(e){if(243===e.parent.kind||210===e.parent.kind||211===e.parent.kind)return s(e);if(214===e.parent.kind)return c(e);return l(e.parent)}(n);case 21:return function(e){switch(e.parent.kind){case 215:case 259:case 216:case 171:case 170:case 174:case 175:case 173:case 244:case 243:case 245:case 247:case 210:case 211:case 214:return s(e);default:return l(e.parent)}}(n);case 58:return function(e){if(Id(e.parent)||299===e.parent.kind||166===e.parent.kind)return s(e);return l(e.parent)}(n);case 31:case 29:return function(e){if(213===e.parent.kind)return c(e);return l(e.parent)}(n);case 115:return function(e){if(243===e.parent.kind)return a(e,e.parent.expression);return l(e.parent)}(n);case 91:case 83:case 96:return c(n);case 162:return function(e){if(247===e.parent.kind)return c(e);return l(e.parent)}(n);default:if(tY(n))return f(n);if((79===n.kind||227===n.kind||299===n.kind||300===n.kind)&&tY(t))return i(n);if(223===n.kind){const{left:e,operatorToken:t}=n;if(tY(e))return f(e);if(63===t.kind&&tY(n.parent))return i(n);if(27===t.kind)return l(e)}if(vh(n))switch(t.kind){case 243:return s(n);case 167:return l(n.parent);case 245:case 247:return i(n);case 223:if(27===n.parent.operatorToken.kind)return i(n);break;case 216:if(n.parent.body===n)return i(n)}switch(n.parent.kind){case 299:if(n.parent.name===n&&!tY(n.parent.parent))return l(n.parent.initializer);break;case 213:if(n.parent.type===n)return c(n.parent.type);break;case 257:case 166:{const{initializer:e,type:t}=n.parent;if(e===n||t===n||Ub(n.kind))return s(n);break}case 223:{const{left:e}=n.parent;if(tY(e)&&n!==e)return s(n);break}default:if(Id(n.parent)&&n.parent.type===n)return s(n)}return l(n.parent)}}function t(n){return DI(n.parent)&&n.parent.declarations[0]===n?i(IX(n.pos,e,n.parent),n):i(n)}function r(n){if(246===n.parent.parent.kind)return l(n.parent.parent);const r=n.parent;return Jd(n.name)?p(n.name):t_(n)&&n.initializer||fb(n,1)||247===r.parent.kind?t(n):DI(n.parent)&&n.parent.declarations[0]!==n?l(IX(n.pos,e,n.parent)):void 0}function d(e){return fb(e,1)||260===e.parent.kind&&173!==e.kind}function u(n){switch(n.parent.kind){case 264:if(1!==JF(n.parent))return;case 244:case 242:case 246:return o(n.parent,n.statements[0]);case 245:case 247:return o(IX(n.pos,e,n.parent),n.statements[0])}return l(n.statements[0])}function _(e){if(258!==e.initializer.kind)return l(e.initializer);{const n=e.initializer;if(n.declarations.length>0)return l(n.declarations[0])}}function p(e){const n=A(e.elements,(e=>229!==e.kind?e:void 0));return n?l(n):205===e.parent.kind?i(e.parent):t(e.parent)}function f(e){Nt.assert(204!==e.kind&&203!==e.kind);const n=A(206===e.kind?e.elements:e.properties,(e=>229!==e.kind?e:void 0));return n?l(n):i(223===e.parent.kind?e.parent:e)}}}var W2=E({"src/services/breakpoints.ts"(){Bfe()}}),z2={};T(z2,{spanInSourceFileAtLocation:()=>K2});var q2=E({"src/services/_namespaces/ts.BreakpointResolver.ts"(){W2()}});function J2(e){return(jk(e)||Hk(e)||nI(e))&&NI(e.parent)&&e===e.parent.initializer&&IC(e.parent.name)&&!!(2&Nc(e.parent))}function X2(e){return Iw(e)||BI(e)||OI(e)||jk(e)||MI(e)||nI(e)||ZC(e)||QC(e)||$C(e)||nk(e)||tk(e)}function Y2(e){return Iw(e)||BI(e)&&IC(e.name)||OI(e)||MI(e)||ZC(e)||QC(e)||$C(e)||nk(e)||tk(e)||function(e){return(jk(e)||nI(e))&&qc(e)}(e)||J2(e)}function $2(e){return Iw(e)?e:qc(e)?e.name:J2(e)?e.parent.name:Nt.checkDefined(e.modifiers&&D(e.modifiers,Q2))}function Q2(e){return 88===e.kind}function Z2(e,n){const t=$2(n);return t&&e.getSymbolAtLocation(t)}function e4(e,n){if(n.body)return n;if(ek(n))return Hv(n.parent);if(OI(n)||QC(n)){const t=Z2(e,n);return t&&t.valueDeclaration&&Rd(t.valueDeclaration)&&t.valueDeclaration.body?t.valueDeclaration:void 0}return n}function n4(e,n){const t=Z2(e,n);let r;if(t&&t.declarations){const e=_e(t.declarations),n=W(t.declarations,(e=>({file:e.getSourceFile().fileName,pos:e.pos})));e.sort(((e,t)=>Wn(n[e].file,n[t].file)||n[e].pos-n[t].pos));const i=W(e,(e=>t.declarations[e]));let a;for(const t of i)Y2(t)&&(a&&a.parent===t.parent&&a.end===t.pos||(r=Te(r,t)),a=t)}return r}function t4(e,n){var t,r,i;return ZC(n)?n:Rd(n)?null!=(r=null!=(t=e4(e,n))?t:n4(e,n))?r:n:null!=(i=n4(e,n))?i:n}function r4(e,n){const t=e.getTypeChecker();let r=!1;for(;;){if(Y2(n))return t4(t,n);if(X2(n)){const e=Mc(n,Y2);return e&&t4(t,e)}if(ry(n)){if(Y2(n.parent))return t4(t,n.parent);if(X2(n.parent)){const e=Mc(n.parent,Y2);return e&&t4(t,e)}return NI(n.parent)&&n.parent.initializer&&J2(n.parent.initializer)?n.parent.initializer:void 0}if(ek(n))return Y2(n.parent)?n.parent:void 0;if(124!==n.kind||!ZC(n.parent)){if(NI(n)&&n.initializer&&J2(n.initializer))return n.initializer;if(!r){let e=t.getSymbolAtLocation(n);if(e&&(2097152&e.flags&&(e=t.getAliasedSymbol(e)),e.valueDeclaration)){r=!0,n=e.valueDeclaration;continue}}return}n=n.parent}}function i4(e,n){const t=n.getSourceFile(),r=function(e,n){if(Iw(n))return{text:n.fileName,pos:0,end:0};if((OI(n)||MI(n))&&!qc(n)){const e=n.modifiers&&D(n.modifiers,Q2);if(e)return{text:"default",pos:e.getStart(),end:e.getEnd()}}if(ZC(n)){const t=Ns(n.getSourceFile().text,gE(n).pos),r=t+6,i=e.getTypeChecker(),a=i.getSymbolAtLocation(n.parent);return{text:(a?`${i.symbolToString(a,n.parent)} `:"")+"static {}",pos:t,end:r}}const t=J2(n)?n.parent.name:Nt.checkDefined(Xc(n),"Expected call hierarchy item to have a name");let r=IC(t)?Uc(t):wy(t)?t.text:WC(t)&&wy(t.expression)?t.expression.text:void 0;if(void 0===r){const i=e.getTypeChecker(),a=i.getSymbolAtLocation(t);a&&(r=i.symbolToString(a,n))}if(void 0===r){const e=tj();r=bp((t=>e.writeNode(4,n,n.getSourceFile(),t)))}return{text:r,pos:t.getStart(),end:t.getEnd()}}(e,n),i=function(e){var n,t;if(J2(e))return UI(e.parent.parent.parent.parent)&&IC(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 174:case 175:case 171:return 207===e.parent.kind?null==(n=Yc(e.parent))?void 0:n.getText():null==(t=Xc(e.parent))?void 0:t.getText();case 259:case 260:case 264:if(UI(e.parent)&&IC(e.parent.parent.name))return e.parent.parent.name.getText()}}(n),a=qJ(n),o=qX(n),s=vc(Ns(t.text,n.getFullStart(),!1,!0),n.getEnd()),c=vc(r.pos,r.end);return{file:t.fileName,kind:a,kindModifiers:o,name:r.text,containerName:i,span:s,selectionSpan:c}}function a4(e){return void 0!==e}function o4(e){if(e.kind===Bae.EntryKind.Node){const{node:n}=e;if(xJ(n,!0,!0)||SJ(n,!0,!0)||AJ(n,!0,!0)||LJ(n,!0,!0)||UJ(n)||VJ(n)){const e=n.getSourceFile();return{declaration:Mc(n,Y2)||e,range:lY(n,e)}}}}function s4(e){return ZG(e.declaration)}function c4(e,n,t){if(Iw(n)||BI(n)||ZC(n))return[];const r=$2(n),i=j(Bae.findReferenceOrRenameEntries(e,t,e.getSourceFiles(),r,0,{use:Bae.FindReferencesUse.References},o4),a4);return i?an(i,s4,(n=>function(e,n){return t=i4(e,n[0].declaration),r=W(n,(e=>dY(e.range))),{from:t,fromSpans:r};var t,r}(e,n))):[]}function l4(e,n){const t=[],r=function(e,n){function t(t){const r=Bk(t)?t.tag:zu(t)?t.tagName:iT(t)||ZC(t)?t:t.expression,i=r4(e,r);if(i){const e=lY(r,t.getSourceFile());if(gn(i))for(const t of i)n.push({declaration:t,range:e});else n.push({declaration:i,range:e})}}return function e(n){if(n&&!(16777216&n.flags))if(Y2(n)){if(Fd(n))for(const t of n.members)t.name&&WC(t.name)&&e(t.name.expression)}else{switch(n.kind){case 79:case 268:case 269:case 275:case 261:case 262:return;case 172:return void t(n);case 213:case 231:case 235:return void e(n.expression);case 257:case 166:return e(n.name),void e(n.initializer);case 210:case 211:return t(n),e(n.expression),void A(n.arguments,e);case 212:return t(n),e(n.tag),void e(n.template);case 283:case 282:return t(n),e(n.tagName),void e(n.attributes);case 167:return t(n),void e(n.expression);case 208:case 209:t(n),CD(n,e)}xm(n)||CD(n,e)}}}(e,t);switch(n.kind){case 308:!function(e,n){A(e.statements,n)}(n,r);break;case 264:!function(e,n){!fb(e,2)&&e.body&&UI(e.body)&&A(e.body.statements,n)}(n,r);break;case 259:case 215:case 216:case 171:case 174:case 175:!function(e,n,t){const r=e4(e,n);r&&(A(r.parameters,t),t(r.body))}(e.getTypeChecker(),n,r);break;case 260:case 228:!function(e,n){A(e.modifiers,n);const t=fy(e);t&&n(t.expression);for(const r of e.members)jN(r)&&A(r.modifiers,n),YC(r)?n(r.initializer):ek(r)&&r.body?(A(r.parameters,n),n(r.body)):ZC(r)&&n(r)}(n,r);break;case 172:!function(e,n){n(e.body)}(n,r);break;default:Nt.assertNever(n)}return t}function d4(e,n){return 16777216&n.flags||$C(n)?[]:an(l4(e,n),s4,(n=>function(e,n){return t=i4(e,n[0].declaration),r=W(n,(e=>dY(e.range))),{to:t,fromSpans:r};var t,r}(e,n)))}var u4=E({"src/services/callHierarchy.ts"(){Bfe()}}),_4={};T(_4,{createCallHierarchyItem:()=>i4,getIncomingCalls:()=>c4,getOutgoingCalls:()=>d4,resolveCallHierarchyDeclaration:()=>r4});var p4,f4,m4,h4,g4=E({"src/services/_namespaces/ts.CallHierarchy.ts"(){u4()}});function y4(e,n,t,r){const i=v4(e,n,t,r);Nt.assert(i.spans.length%3===0);const a=i.spans,o=[];for(let s=0;s<a.length;s+=3)o.push({textSpan:yc(a[s],a[s+1]),classificationType:a[s+2]});return o}function v4(e,n,t,r){return{spans:b4(e,t,r,n),endOfLineState:0}}function b4(e,n,t,r){const i=[];return e&&n&&function(e,n,t,r,i){const a=e.getTypeChecker();let o=!1;function s(c){switch(c.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 216:i.throwIfCancellationRequested()}if(!c||!fc(t,c.pos,c.getFullWidth())||0===c.getFullWidth())return;const l=o;if((lw(c)||dw(c))&&(o=!0),vw(c)&&(o=!1),IC(c)&&!o&&!function(e){const n=e.parent;return n&&(WI(n)||QI(n)||XI(n))}(c)&&!PS(c.escapedText)){let t=a.getSymbolAtLocation(c);if(t){2097152&t.flags&&(t=a.getAliasedSymbol(t));let i=function(e,n){const t=e.getFlags();if(32&t)return 0;if(384&t)return 1;if(524288&t)return 5;if(64&t){if(2&n)return 2}else if(262144&t)return 4;let r=e.valueDeclaration||e.declarations&&e.declarations[0];r&&Nk(r)&&(r=E4(r));return r&&h4.get(r.kind)}(t,vJ(c));if(void 0!==i){let o=0;if(c.parent){(Nk(c.parent)||h4.get(c.parent.kind)===i)&&c.parent.name===c&&(o=1)}6===i&&T4(c)&&(i=9),i=function(e,n,t){if(7===t||9===t||6===t){const r=e.getTypeAtLocation(n);if(r){const e=e=>e(r)||r.isUnion()&&r.types.some(e);if(6!==t&&e((e=>e.getConstructSignatures().length>0)))return 0;if(e((e=>e.getCallSignatures().length>0))&&!e((e=>e.getProperties().length>0))||function(e){for(;T4(e);)e=e.parent;return Fk(e.parent)&&e.parent.expression===e}(n))return 9===t?11:10}}return t}(a,c,i);const s=t.valueDeclaration;if(s){const r=wc(s),a=Nc(s);32&r&&(o|=2),512&r&&(o|=4),0!==i&&2!==i&&(64&r||2&a||8&t.getFlags())&&(o|=8),7!==i&&10!==i||!function(e,n){Nk(e)&&(e=E4(e));if(NI(e))return(!Iw(e.parent.parent.parent)||xw(e.parent))&&e.getSourceFile()===n;if(OI(e))return!Iw(e.parent)&&e.getSourceFile()===n;return!1}(s,n)||(o|=32),e.isSourceFileDefaultLibrary(s.getSourceFile())&&(o|=16)}else t.declarations&&t.declarations.some((n=>e.isSourceFileDefaultLibrary(n.getSourceFile())))&&(o|=16);r(c,i,o)}}}CD(c,s),o=l}s(n)}(e,n,t,((e,t,r)=>{i.push(e.getStart(n),e.getWidth(n),(t+1<<8)+r)}),r),i}function E4(e){for(;;){if(!Nk(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function T4(e){return KC(e.parent)&&e.parent.right===e||Mk(e.parent)&&e.parent.name===e}var x4=E({"src/services/classifier2020.ts"(){Bfe(),p4=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(p4||{}),f4=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(f4||{}),m4=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(m4||{}),h4=new Map([[257,7],[166,6],[169,9],[264,3],[263,1],[302,8],[260,0],[171,11],[259,10],[215,10],[170,11],[174,9],[175,9],[168,9],[261,2],[262,5],[165,4],[299,9],[300,9]])}}),S4={};T(S4,{TokenEncodingConsts:()=>p4,TokenModifier:()=>m4,TokenType:()=>f4,getEncodedSemanticClassifications:()=>v4,getSemanticClassifications:()=>y4});var A4=E({"src/services/_namespaces/ts.classifier.v2020.ts"(){x4()}}),L4={};T(L4,{v2020:()=>S4});var C4,k4,I4=E({"src/services/_namespaces/ts.classifier.ts"(){A4()}});function w4(e,n,t){return D4(e,BQ(t),n,void 0,void 0)}function R4(e,n,t,r,i,a){return D4(e,BQ(t),n,r,BQ(i),a)}function N4(e,n,t,r,i,a){return D4(e,BQ(t),n,r,i&&BQ(i),a)}function D4(e,n,t,r,i,a){return{fixName:e,description:n,changes:t,fixId:r,fixAllDescription:i,commands:a?[a]:void 0}}function O4(e){for(const n of e.errorCodes)C4.add(String(n),e);if(e.fixIds)for(const n of e.fixIds)Nt.assert(!k4.has(n)),k4.set(n,e)}function M4(){return Qe(C4.keys())}function P4(e){const n=j4(e);return X(C4.get(String(e.errorCode)),(t=>W(t.getCodeActions(e),function(e,n){const{errorCodes:t}=e;let r=0;for(const a of n)if(G(t,a.code)&&r++,r>1)break;const i=r<2;return({fixId:e,fixAllDescription:n,...t})=>i?t:{...t,fixId:e,fixAllDescription:n}}(t,n))))}function F4(e){return k4.get(Tn(e.fixId,vn)).getAllCodeActions(e)}function G4(e,n){return{changes:e,commands:n}}function B4(e,n){return{fileName:e,textChanges:n}}function U4(e,n,t){const r=[];return G4(R_e.ChangeTracker.with(e,(i=>V4(e,n,(e=>t(i,e,r))))),0===r.length?void 0:r)}function V4(e,n,t){for(const r of j4(e))G(n,r.code)&&t(r)}function j4({program:e,sourceFile:n,cancellationToken:t}){return[...e.getSemanticDiagnostics(n,t),...e.getSyntacticDiagnostics(n,t),...m0(n,e,t)]}var H4,K4,W4=E({"src/services/codeFixProvider.ts"(){Bfe(),C4=un(),k4=new Map}});function z4(e,n,t){const r=iI(t)?gA.createAsExpression(t.expression,gA.createKeywordTypeNode(157)):gA.createTypeAssertion(gA.createKeywordTypeNode(157),t.expression);e.replaceNode(n,t.expression,r)}function q4(e,n){if(!Ih(e))return Mc(SX(e,n),(e=>iI(e)||Uk(e)))}var J4,X4,Y4=E({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){Bfe(),ore(),H4="addConvertToUnknownForNonOverlappingTypes",O4({errorCodes:K4=[Wo.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],getCodeActions:function(e){const n=q4(e.sourceFile,e.span.start);if(void 0===n)return;const t=R_e.ChangeTracker.with(e,(t=>z4(t,e.sourceFile,n)));return[R4(H4,t,Wo.Add_unknown_conversion_for_non_overlapping_types,H4,Wo.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[H4],getAllCodeActions:e=>U4(e,K4,((e,n)=>{const t=q4(n.file,n.start);t&&z4(e,n.file,t)}))})}}),$4=E({"src/services/codefixes/addEmptyExportDeclaration.ts"(){Bfe(),ore(),O4({errorCodes:[Wo.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,Wo.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(e){const{sourceFile:n}=e;return[w4("addEmptyExportDeclaration",R_e.ChangeTracker.with(e,(e=>{const t=gA.createExportDeclaration(void 0,!1,gA.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(n,n,t)})),Wo.Add_export_to_make_this_file_into_a_module)]}})}});function Q4(e,n,t,r){const i=t((t=>function(e,n,t,r){if(r&&r.has(ZG(t)))return;null==r||r.add(ZG(t));const i=gA.updateModifiers(I$(t,!0),gA.createNodeArray(gA.createModifiersFromModifierFlags(512|kb(t))));e.replaceNode(n,t,i)}(t,e.sourceFile,n,r)));return R4(J4,i,Wo.Add_async_modifier_to_containing_function,J4,Wo.Add_all_missing_async_modifiers)}function Z4(e,n){if(!n)return;return Mc(SX(e,n.start),(t=>t.getStart(e)<n.start||t.getEnd()>oc(n)?"quit":(Hk(t)||QC(t)||jk(t)||OI(t))&&WY(n,sY(t,e))))}var e8,n8,t8,r8,i8=E({"src/services/codefixes/addMissingAsync.ts"(){Bfe(),ore(),J4="addMissingAsync",X4=[Wo.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Wo.Type_0_is_not_assignable_to_type_1.code,Wo.Type_0_is_not_comparable_to_type_1.code],O4({fixIds:[J4],errorCodes:X4,getCodeActions:function(e){const{sourceFile:n,errorCode:t,cancellationToken:r,program:i,span:a}=e,o=D(i.getTypeChecker().getDiagnostics(n,r),function(e,n){return({start:t,length:r,relatedInformation:i,code:a})=>bn(t)&&bn(r)&&WY({start:t,length:r},e)&&a===n&&!!i&&ce(i,(e=>e.code===Wo.Did_you_mean_to_mark_this_function_as_async.code))}(a,t)),s=Z4(n,o&&o.relatedInformation&&D(o.relatedInformation,(e=>e.code===Wo.Did_you_mean_to_mark_this_function_as_async.code)));if(!s)return;return[Q4(e,s,(n=>R_e.ChangeTracker.with(e,n)))]},getAllCodeActions:e=>{const{sourceFile:n}=e,t=new Set;return U4(e,X4,((r,i)=>{const a=i.relatedInformation&&D(i.relatedInformation,(e=>e.code===Wo.Did_you_mean_to_mark_this_function_as_async.code)),o=Z4(n,a);if(!o)return;return Q4(e,o,(e=>(e(r),[])),t)}))}})}});function a8(e,n,t,r,i){const a=SQ(e,t);return a&&function(e,n,t,r,i){const a=i.getTypeChecker(),o=a.getDiagnostics(e,r);return ce(o,(({start:e,length:r,relatedInformation:i,code:a})=>bn(e)&&bn(r)&&WY({start:e,length:r},t)&&a===n&&!!i&&ce(i,(e=>e.code===Wo.Did_you_forget_to_use_await.code))))}(e,n,t,r,i)&&l8(a)?a:void 0}function o8(e,n,t,r,i,a){const{sourceFile:o,program:s,cancellationToken:c}=e,l=function(e,n,t,r,i){const a=function(e,n){if(Mk(e.parent)&&IC(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(IC(e))return{identifiers:[e],isCompleteFix:!0};if(Yk(e)){let t,r=!0;for(const i of[e.left,e.right]){const e=n.getTypeAtLocation(i);if(n.getPromisedTypeOfPromise(e)){if(!IC(i)){r=!1;continue}(t||(t=[])).push(i)}}return t&&{identifiers:t,isCompleteFix:r}}}(e,i);if(!a)return;let o,s=a.isCompleteFix;for(const c of a.identifiers){const e=i.getSymbolAtLocation(c);if(!e)continue;const a=En(e.valueDeclaration,NI),l=a&&En(a.name,IC),d=vy(a,240);if(!a||!d||a.type||!a.initializer||d.getSourceFile()!==n||fb(d,1)||!l||!l8(a.initializer)){s=!1;continue}const u=r.getSemanticDiagnostics(n,t);Bae.Core.eachSymbolReferenceInFile(l,i,n,(e=>c!==e&&!c8(e,u,n,i)))?s=!1:(o||(o=[])).push({expression:a.initializer,declarationSymbol:e})}return o&&{initializers:o,needsSecondPassForFixAll:!s}}(n,o,c,s,r);if(l){return w4("addMissingAwaitToInitializer",i((e=>{A(l.initializers,(({expression:n})=>d8(e,t,o,r,n,a))),a&&l.needsSecondPassForFixAll&&d8(e,t,o,r,n,a)})),1===l.initializers.length?[Wo.Add_await_to_initializer_for_0,l.initializers[0].declarationSymbol.name]:Wo.Add_await_to_initializers)}}function s8(e,n,t,r,i,a){const o=i((i=>d8(i,t,e.sourceFile,r,n,a)));return R4(e8,o,Wo.Add_await,e8,Wo.Fix_all_expressions_possibly_missing_await)}function c8(e,n,t,r){const i=Mk(e.parent)?e.parent.name:Yk(e.parent)?e.parent:e,a=D(n,(e=>e.start===i.getStart(t)&&e.start+e.length===i.getEnd()));return a&&G(r8,a.code)||1&r.getTypeAtLocation(i).flags}function l8(e){return 32768&e.kind||!!Mc(e,(e=>e.parent&&Hk(e.parent)&&e.parent.body===e||pI(e)&&(259===e.parent.kind||215===e.parent.kind||216===e.parent.kind||171===e.parent.kind)))}function d8(e,n,t,r,i,a){if(TI(i.parent)&&!i.parent.awaitModifier){const n=r.getTypeAtLocation(i),a=r.getAsyncIterableType();if(a&&r.isTypeAssignableTo(n,a)){const n=i.parent;return void e.replaceNode(t,n,gA.updateForOfStatement(n,gA.createToken(133),n.initializer,n.expression,n.statement))}}if(Yk(i))for(const o of[i.left,i.right]){if(a&&IC(o)){const e=r.getSymbolAtLocation(o);if(e&&a.has(eB(e)))continue}const n=r.getTypeAtLocation(o),i=r.getPromisedTypeOfPromise(n)?gA.createAwaitExpression(o):o;e.replaceNode(t,o,i)}else if(n===n8&&Mk(i.parent)){if(a&&IC(i.parent.expression)){const e=r.getSymbolAtLocation(i.parent.expression);if(e&&a.has(eB(e)))return}e.replaceNode(t,i.parent.expression,gA.createParenthesizedExpression(gA.createAwaitExpression(i.parent.expression))),u8(e,i.parent.expression,t)}else if(G(t8,n)&&su(i.parent)){if(a&&IC(i)){const e=r.getSymbolAtLocation(i);if(e&&a.has(eB(e)))return}e.replaceNode(t,i,gA.createParenthesizedExpression(gA.createAwaitExpression(i))),u8(e,i,t)}else{if(a&&NI(i.parent)&&IC(i.parent.name)){const e=r.getSymbolAtLocation(i.parent.name);if(e&&!ie(a,eB(e)))return}e.replaceNode(t,i,gA.createAwaitExpression(i))}}function u8(e,n,t){const r=IX(n.pos,t);r&&aQ(r.end,r.parent,t)&&e.insertText(t,n.getStart(t),";")}var _8,p8,f8=E({"src/services/codefixes/addMissingAwait.ts"(){Bfe(),ore(),e8="addMissingAwait",n8=Wo.Property_0_does_not_exist_on_type_1.code,t8=[Wo.This_expression_is_not_callable.code,Wo.This_expression_is_not_constructable.code],r8=[Wo.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,Wo.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,Wo.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,Wo.Operator_0_cannot_be_applied_to_type_1.code,Wo.Operator_0_cannot_be_applied_to_types_1_and_2.code,Wo.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,Wo.This_condition_will_always_return_true_since_this_0_is_always_defined.code,Wo.Type_0_is_not_an_array_type.code,Wo.Type_0_is_not_an_array_type_or_a_string_type.code,Wo.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,Wo.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Wo.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Wo.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Wo.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,Wo.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,n8,...t8],O4({fixIds:[e8],errorCodes:r8,getCodeActions:function(e){const{sourceFile:n,errorCode:t,span:r,cancellationToken:i,program:a}=e,o=a8(n,t,r,i,a);if(!o)return;const s=e.program.getTypeChecker(),c=n=>R_e.ChangeTracker.with(e,n);return be([o8(e,o,t,s,c),s8(e,o,t,s,c)])},getAllCodeActions:e=>{const{sourceFile:n,program:t,cancellationToken:r}=e,i=e.program.getTypeChecker(),a=new Set;return U4(e,r8,((o,s)=>{const c=a8(n,s.code,s,r,t);if(!c)return;const l=e=>(e(o),[]);return o8(e,c,s.code,i,l,a)||s8(e,c,s.code,i,l,a)}))}})}});function m8(e,n,t,r,i){const a=SX(n,t),o=Mc(a,(e=>xu(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 79:case 206:case 207:case 299:case 300:return!0;default:return!1}}(e)&&"quit"));if(o)return h8(e,o,n,i);const s=a.parent;if(Yk(s)&&63===s.operatorToken.kind&&hI(s.parent))return h8(e,a,n,i);if(Dk(s)){const t=r.getTypeChecker();if(!N(s.elements,(e=>function(e,n){const t=IC(e)?e:Hb(e,!0)&&IC(e.left)?e.left:void 0;return!!t&&!n.getSymbolAtLocation(t)}(e,t))))return;return h8(e,s,n,i)}const c=Mc(a,(e=>!!hI(e.parent)||!function(e){switch(e.kind){case 79:case 223:case 27:return!0;default:return!1}}(e)&&"quit"));if(c){if(!g8(c,r.getTypeChecker()))return;return h8(e,c,n,i)}}function h8(e,n,t,r){r&&!ie(r,n)||e.insertModifierBefore(t,85,n)}function g8(e,n){return!!Yk(e)&&(27===e.operatorToken.kind?N([e.left,e.right],(e=>g8(e,n))):63===e.operatorToken.kind&&IC(e.left)&&!n.getSymbolAtLocation(e.left))}var y8,v8,b8=E({"src/services/codefixes/addMissingConst.ts"(){Bfe(),ore(),_8="addMissingConst",O4({errorCodes:p8=[Wo.Cannot_find_name_0.code,Wo.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],getCodeActions:function(e){const n=R_e.ChangeTracker.with(e,(n=>m8(n,e.sourceFile,e.span.start,e.program)));if(n.length>0)return[R4(_8,n,Wo.Add_const_to_unresolved_variable,_8,Wo.Add_const_to_all_unresolved_variables)]},fixIds:[_8],getAllCodeActions:e=>{const n=new Set;return U4(e,p8,((t,r)=>m8(t,r.file,r.start,e.program,n)))}})}});function E8(e,n,t,r){const i=SX(n,t);if(!IC(i))return;const a=i.parent;169!==a.kind||r&&!ie(r,a)||e.insertModifierBefore(n,136,a)}var T8,x8,S8=E({"src/services/codefixes/addMissingDeclareProperty.ts"(){Bfe(),ore(),y8="addMissingDeclareProperty",O4({errorCodes:v8=[Wo.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],getCodeActions:function(e){const n=R_e.ChangeTracker.with(e,(n=>E8(n,e.sourceFile,e.span.start)));if(n.length>0)return[R4(y8,n,Wo.Prefix_with_declare,y8,Wo.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[y8],getAllCodeActions:e=>{const n=new Set;return U4(e,v8,((e,t)=>E8(e,t.file,t.start,n)))}})}});function A8(e,n,t){const r=Mc(SX(n,t),JC);Nt.assert(!!r,"Expected position to be owned by a decorator.");const i=gA.createCallExpression(r.expression,void 0,void 0);e.replaceNode(n,r.expression,i)}var L8,C8,k8=E({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){Bfe(),ore(),T8="addMissingInvocationForDecorator",O4({errorCodes:x8=[Wo._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],getCodeActions:function(e){const n=R_e.ChangeTracker.with(e,(n=>A8(n,e.sourceFile,e.span.start)));return[R4(T8,n,Wo.Call_decorator_expression,T8,Wo.Add_to_all_uncalled_decorators)]},fixIds:[T8],getAllCodeActions:e=>U4(e,x8,((e,n)=>A8(e,n.file,n.start)))})}});function I8(e,n,t){const r=SX(n,t),i=r.parent;if(!qC(i))return Nt.fail("Tried to add a parameter name to a non-parameter: "+Nt.formatSyntaxKind(r.kind));const a=i.parent.parameters.indexOf(i);Nt.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),Nt.assert(a>-1,"Parameter not found in parent parameter list.");const o=gA.createTypeReferenceNode(i.name,void 0),s=gA.createParameterDeclaration(i.modifiers,i.dotDotDotToken,"arg"+a,i.questionToken,i.dotDotDotToken?gA.createArrayTypeNode(o):o,i.initializer);e.replaceNode(n,i,s)}var w8,R8=E({"src/services/codefixes/addNameToNamelessParameter.ts"(){Bfe(),ore(),L8="addNameToNamelessParameter",O4({errorCodes:C8=[Wo.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],getCodeActions:function(e){const n=R_e.ChangeTracker.with(e,(n=>I8(n,e.sourceFile,e.span.start)));return[R4(L8,n,Wo.Add_parameter_name,L8,Wo.Add_names_to_all_parameters_without_names)]},fixIds:[L8],getAllCodeActions:e=>U4(e,C8,((e,n)=>I8(e,n.file,n.start)))})}});function N8(e,n,t){var r,a;const o=D8(SQ(e,n),t);if(!o)return i;const{source:s,target:c}=o,l=function(e,n,t){return Mk(n)&&!!t.getExactOptionalProperties(t.getTypeAtLocation(n.expression)).length&&t.getTypeAtLocation(e)===t.getUndefinedType()}(s,c,t)?t.getTypeAtLocation(c.expression):t.getTypeAtLocation(c);return(null==(a=null==(r=l.symbol)?void 0:r.declarations)?void 0:a.some((e=>Dp(e).fileName.match(/\.d\.ts$/))))?i:t.getExactOptionalProperties(l)}function D8(e,n){var t;if(e){if(Yk(e.parent)&&63===e.parent.operatorToken.kind)return{source:e.parent.right,target:e.parent.left};if(NI(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(Fk(e.parent)){const t=n.getSymbolAtLocation(e.parent.expression);if(!(null==t?void 0:t.valueDeclaration)||!Od(t.valueDeclaration.kind))return;if(!mu(e))return;const r=e.parent.arguments.indexOf(e);if(-1===r)return;const i=t.valueDeclaration.parameters[r].name;if(IC(i))return{source:e,target:i}}else if(Sw(e.parent)&&IC(e.parent.name)||Aw(e.parent)){const r=D8(e.parent.parent,n);if(!r)return;const i=n.getPropertyOfType(n.getTypeAtLocation(r.target),e.parent.name.text),a=null==(t=null==i?void 0:i.declarations)?void 0:t[0];if(!a)return;return{source:Sw(e.parent)?e.parent.initializer:e.parent.name,target:a}}}}var O8,M8,P8=E({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){Bfe(),ore(),w8="addOptionalPropertyUndefined",O4({errorCodes:[Wo.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,Wo.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,Wo.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],getCodeActions(e){const n=e.program.getTypeChecker(),t=N8(e.sourceFile,e.span,n);if(!t.length)return;const r=R_e.ChangeTracker.with(e,(e=>function(e,n){for(const t of n){const n=t.valueDeclaration;if(n&&(XC(n)||YC(n))&&n.type){const t=gA.createUnionTypeNode([...189===n.type.kind?n.type.types:[n.type],gA.createTypeReferenceNode("undefined")]);e.replaceNode(n.getSourceFile(),n.type,t)}}}(e,t)));return[w4(w8,r,Wo.Add_undefined_to_optional_property_type)]},fixIds:[w8]})}});function F8(e,n){const t=SX(e,n);return En(qC(t.parent)?t.parent.parent:t.parent,G8)}function G8(e){return function(e){return Rd(e)||257===e.kind||168===e.kind||169===e.kind}(e)&&B8(e)}function B8(e){return Rd(e)?e.parameters.some(B8)||!e.type&&!!Cl(e):!e.type&&!!Ll(e)}function U8(e,n,t){if(Rd(t)&&(Cl(t)||t.parameters.some((e=>!!Ll(e))))){if(!t.typeParameters){const r=nb(t);r.length&&e.insertTypeParameters(n,t,r)}const r=Hk(t)&&!dX(t,20,n);r&&e.insertNodeBefore(n,Me(t.parameters),gA.createToken(20));for(const i of t.parameters)if(!i.type){const t=Ll(i);t&&e.tryInsertTypeAnnotation(n,i,uB(t,V8,zd))}if(r&&e.insertNodeAfter(n,Ge(t.parameters),gA.createToken(21)),!t.type){const r=Cl(t);r&&e.tryInsertTypeAnnotation(n,t,uB(r,V8,zd))}}else{const r=Nt.checkDefined(Ll(t),"A JSDocType for this declaration should exist");Nt.assert(!t.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(n,t,uB(r,V8,zd))}}function V8(e){switch(e.kind){case 315:case 316:return gA.createTypeReferenceNode("any",i);case 319:return function(e){return gA.createUnionTypeNode([uB(e.type,V8,zd),gA.createTypeReferenceNode("undefined",i)])}(e);case 318:return V8(e.type);case 317:return function(e){return gA.createUnionTypeNode([uB(e.type,V8,zd),gA.createTypeReferenceNode("null",i)])}(e);case 321:return function(e){return gA.createArrayTypeNode(uB(e.type,V8,zd))}(e);case 320:return function(e){var n;return gA.createFunctionTypeNode(i,e.parameters.map(j8),null!=(n=e.type)?n:gA.createKeywordTypeNode(131))}(e);case 180:return function(e){let n=e.typeName,t=e.typeArguments;if(IC(e.typeName)){if(Dh(e))return function(e){const n=gA.createParameterDeclaration(void 0,void 0,148===e.typeArguments[0].kind?"n":"s",void 0,gA.createTypeReferenceNode(148===e.typeArguments[0].kind?"number":"string",[]),void 0),t=gA.createTypeLiteralNode([gA.createIndexSignature(void 0,[n],e.typeArguments[1])]);return jA(t,1),t}(e);let r=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":r=r.toLowerCase();break;case"array":case"date":case"promise":r=r[0].toUpperCase()+r.slice(1)}n=gA.createIdentifier(r),t="Array"!==r&&"Promise"!==r||e.typeArguments?_B(e.typeArguments,V8,zd):gA.createNodeArray([gA.createTypeReferenceNode("any",i)])}return gA.createTypeReferenceNode(n,t)}(e);case 325:return function(e){const n=gA.createTypeLiteralNode(W(e.jsDocPropertyTags,(e=>gA.createPropertySignature(void 0,IC(e.name)?e.name:e.name.right,JS(e)?gA.createToken(57):void 0,e.typeExpression&&uB(e.typeExpression.type,V8,zd)||gA.createKeywordTypeNode(131)))));return jA(n,1),n}(e);default:const n=EB(e,V8,UV);return jA(n,1),n}}function j8(e){const n=e.parent.parameters.indexOf(e),t=321===e.type.kind&&n===e.parent.parameters.length-1,r=e.name||(t?"rest":"arg"+n),i=t?gA.createToken(25):e.dotDotDotToken;return gA.createParameterDeclaration(e.modifiers,i,r,e.questionToken,uB(e.type,V8,zd),e.initializer)}var H8,K8,W8=E({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){Bfe(),ore(),O8="annotateWithTypeFromJSDoc",O4({errorCodes:M8=[Wo.JSDoc_types_may_be_moved_to_TypeScript_types.code],getCodeActions(e){const n=F8(e.sourceFile,e.span.start);if(!n)return;const t=R_e.ChangeTracker.with(e,(t=>U8(t,e.sourceFile,n)));return[R4(O8,t,Wo.Annotate_with_type_from_JSDoc,O8,Wo.Annotate_everything_with_types_from_JSDoc)]},fixIds:[O8],getAllCodeActions:e=>U4(e,M8,((e,n)=>{const t=F8(n.file,n.start);t&&U8(e,n.file,t)}))})}});function z8(e,n,t,r,i,a){const o=r.getSymbolAtLocation(SX(n,t));if(!o||!o.valueDeclaration||!(19&o.flags))return;const s=o.valueDeclaration;if(OI(s)||jk(s))e.replaceNode(n,s,function(e){const n=c(o);e.body&&n.unshift(gA.createConstructorDeclaration(void 0,e.parameters,e.body));const t=q8(e,93);return gA.createClassDeclaration(t,e.name,void 0,void 0,n)}(s));else if(NI(s)){const t=function(e){const n=e.initializer;if(!n||!jk(n)||!IC(e.name))return;const t=c(e.symbol);n.body&&t.unshift(gA.createConstructorDeclaration(void 0,n.parameters,n.body));const r=q8(e.parent.parent,93);return gA.createClassDeclaration(r,e.name,void 0,void 0,t)}(s);if(!t)return;const r=s.parent.parent;DI(s.parent)&&s.parent.declarations.length>1?(e.delete(n,s),e.insertNodeAfter(n,r,t)):e.replaceNode(n,r,t)}function c(t){const r=[];return t.exports&&t.exports.forEach((e=>{if("prototype"===e.name&&e.declarations){const n=e.declarations[0];if(1===e.declarations.length&&Mk(n)&&Yk(n.parent)&&63===n.parent.operatorToken.kind&&Ok(n.parent.right)){o(n.parent.right.symbol,void 0,r)}}else o(e,[gA.createToken(124)],r)})),t.members&&t.members.forEach(((i,a)=>{var s,c,l,d;if("constructor"===a&&i.valueDeclaration){const r=null==(d=null==(l=null==(c=null==(s=t.exports)?void 0:s.get("prototype"))?void 0:c.declarations)?void 0:l[0])?void 0:d.parent;r&&Yk(r)&&Ok(r.right)&&ce(r.right.properties,J8)||e.delete(n,i.valueDeclaration.parent)}else o(i,void 0,r)})),r;function o(t,r,o){if(!(8192&t.flags)&&!(4096&t.flags))return;const s=t.valueDeclaration,c=s.parent,l=c.right;if(u=l,!(iT(d=s)?Mk(d)&&J8(d)||Id(u):N(d.properties,(e=>!(!QC(e)&&!Gl(e))||!!(Sw(e)&&jk(e.initializer)&&e.name)||!!J8(e)))))return;var d,u;if(ce(o,(e=>{const n=Xc(e);return!(!n||!IC(n)||Uc(n)!==jc(t))})))return;const _=c.parent&&241===c.parent.kind?c.parent:c;if(e.delete(n,_),l)if(iT(s)&&(jk(l)||Hk(l))){const e=DY(n,i),t=function(e,n,t){if(Mk(e))return e.name;const r=e.argumentExpression;if(dC(r))return r;if(o_(r))return Js(r.text,HT(n))?gA.createIdentifier(r.text):mC(r)?gA.createStringLiteral(r.text,0===t):r;return}(s,a,e);t&&p(o,l,t)}else{if(!Ok(l)){if(Ch(n))return;if(!Mk(s))return;const e=gA.createPropertyDeclaration(r,s.name,void 0,void 0,l);return j$(c.parent,e,n),void o.push(e)}A(l.properties,(e=>{(QC(e)||Gl(e))&&o.push(e),Sw(e)&&jk(e.initializer)&&p(o,e.initializer,e.name),J8(e)}))}else o.push(gA.createPropertyDeclaration(r,t.name,void 0,void 0,void 0));function p(e,t,i){return jk(t)?function(e,t,i){const a=de(r,q8(t,132)),o=gA.createMethodDeclaration(a,void 0,i,void 0,void 0,t.parameters,void 0,t.body);return j$(c,o,n),void e.push(o)}(e,t,i):function(e,t,i){const a=t.body;let o;o=238===a.kind?a:gA.createBlock([gA.createReturnStatement(a)]);const s=de(r,q8(t,132)),l=gA.createMethodDeclaration(s,void 0,i,void 0,void 0,t.parameters,void 0,o);j$(c,l,n),e.push(l)}(e,t,i)}}}}function q8(e,n){return jN(e)?j(e.modifiers,(e=>e.kind===n)):void 0}function J8(e){return!!e.name&&!(!IC(e.name)||"constructor"!==e.name.text)}var X8,Y8,$8,Q8=E({"src/services/codefixes/convertFunctionToEs6Class.ts"(){Bfe(),ore(),H8="convertFunctionToEs6Class",O4({errorCodes:K8=[Wo.This_constructor_function_may_be_converted_to_a_class_declaration.code],getCodeActions(e){const n=R_e.ChangeTracker.with(e,(n=>z8(n,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())));return[R4(H8,n,Wo.Convert_function_to_an_ES2015_class,H8,Wo.Convert_all_constructor_functions_to_classes)]},fixIds:[H8],getAllCodeActions:e=>U4(e,K8,((n,t)=>z8(n,t.file,t.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())))})}});function Z8(e,n,t,r){const a=SX(n,t);let o;if(o=IC(a)&&NI(a.parent)&&a.parent.initializer&&Rd(a.parent.initializer)?a.parent.initializer:En(qm(SX(n,t)),A0),!o)return;const s=new Map,c=Ih(o),l=function(e,n){if(!e.body)return new Set;const t=new Set;return CD(e.body,(function e(r){e6(r,n,"then")?(t.add(ZG(r)),A(r.arguments,e)):e6(r,n,"catch")||e6(r,n,"finally")?(t.add(ZG(r)),CD(r,e)):r6(r,n)?t.add(ZG(r)):CD(r,e)})),t}(o,r),d=function(e,n,t){const r=new Map,i=un();return CD(e,(function e(a){if(!IC(a))return void CD(a,e);const o=n.getSymbolAtLocation(a);if(o){const e=h6(n.getTypeAtLocation(a),n),s=eB(o).toString();if(!e||qC(a.parent)||Rd(a.parent)||t.has(s)){if(a.parent&&(qC(a.parent)||NI(a.parent)||Nk(a.parent))){const e=a.text,n=i.get(e);if(n&&n.some((e=>e!==o))){const n=i6(a,i);r.set(s,n.identifier),t.set(s,n),i.add(e,o)}else{const n=I$(a);t.set(s,b6(n)),i.add(e,o)}}}else{const n=De(e.parameters),r=(null==n?void 0:n.valueDeclaration)&&qC(n.valueDeclaration)&&En(n.valueDeclaration.name,IC)||gA.createUniqueName("result",16),a=i6(r,i);t.set(s,a),i.add(r.text,o)}}})),w$(e,!0,(e=>{if(Nk(e)&&IC(e.name)&&wk(e.parent)){const t=n.getSymbolAtLocation(e.name),i=t&&r.get(String(eB(t)));if(i&&i.text!==(e.name||e.propertyName).getText())return gA.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,i,e.initializer)}else if(IC(e)){const t=n.getSymbolAtLocation(e),i=t&&r.get(String(eB(t)));if(i)return gA.createIdentifier(i.text)}}))}(o,r,s);if(!y0(d,r))return;const u=d.body&&pI(d.body)?function(e,n){const t=[];return Am(e,(e=>{v0(e,n)&&t.push(e)})),t}(d.body,r):i,_={checker:r,synthNamesMap:s,setOfExpressionsToReturn:l,isInJSFile:c};if(!u.length)return;const p=Ns(n.text,gE(o).pos);e.insertModifierAt(n,p,132,{suffix:" "});for(const i of u)if(CD(i,(function t(r){if(Fk(r)){const t=s6(r,r,_,!1);if(a6())return!0;e.replaceNodeWithNodes(n,i,t)}else if(!Id(r)&&(CD(r,t),a6()))return!0})),a6())return}function e6(e,n,t){if(!Fk(e))return!1;const r=OJ(e,t)&&n.getTypeAtLocation(e);return!(!r||!n.getPromisedTypeOfPromise(r))}function n6(e,n){return 0!==(4&YE(e))&&e.target===n}function t6(e,n,t){if("finally"===e.expression.name.escapedText)return;const r=t.getTypeAtLocation(e.expression.expression);if(n6(r,t.getPromiseType())||n6(r,t.getPromiseLikeType())){if("then"!==e.expression.name.escapedText)return c(e.typeArguments,0);if(n===c(e.arguments,0))return c(e.typeArguments,0);if(n===c(e.arguments,1))return c(e.typeArguments,1)}}function r6(e,n){return!!mu(e)&&!!n.getPromisedTypeOfPromise(n.getTypeAtLocation(e))}function i6(e,n){const t=(n.get(e.text)||i).length;return b6(0===t?e:gA.createIdentifier(e.text+"_"+t))}function a6(){return!$8}function o6(){return $8=!1,i}function s6(e,n,t,r,i){if(e6(n,t.checker,"then"))return function(e,n,t,r,i,a){if(!n||c6(r,n))return u6(e,t,r,i,a);if(t&&!c6(r,t))return o6();const o=y6(n,r),s=s6(e.expression.expression,e.expression.expression,r,!0,o);if(a6())return o6();const c=f6(n,i,a,o,e,r);return a6()?o6():de(s,c)}(n,c(n.arguments,0),c(n.arguments,1),t,r,i);if(e6(n,t.checker,"catch"))return u6(n,c(n.arguments,0),t,r,i);if(e6(n,t.checker,"finally"))return function(e,n,t,r,i){if(!n||c6(t,n))return s6(e,e.expression.expression,t,r,i);const a=l6(e,t,i),o=s6(e,e.expression.expression,t,!0,a);if(a6())return o6();const s=f6(n,r,void 0,void 0,e,t);if(a6())return o6();const c=gA.createBlock(o),l=gA.createBlock(s),d=gA.createTryStatement(c,void 0,l);return d6(e,t,d,a,i)}(n,c(n.arguments,0),t,r,i);if(Mk(n))return s6(e,n.expression,t,r,i);const a=t.checker.getTypeAtLocation(n);return a&&t.checker.getPromisedTypeOfPromise(a)?(Nt.assertNode(Oc(n).parent,Mk),function(e,n,t,r,i){if(L6(e,t)){let e=I$(n);return r&&(e=gA.createAwaitExpression(e)),[gA.createReturnStatement(e)]}return _6(i,gA.createAwaitExpression(n),void 0)}(e,n,t,r,i)):o6()}function c6({checker:e},n){if(104===n.kind)return!0;if(IC(n)&&!yd(n)&&"undefined"===Uc(n)){const t=e.getSymbolAtLocation(n);return!t||e.isUndefinedSymbol(t)}return!1}function l6(e,n,t){let r;return t&&!L6(e,n)&&(A6(t)?(r=t,n.synthNamesMap.forEach(((e,r)=>{if(e.identifier.text===t.identifier.text){const e=(i=t,b6(gA.createUniqueName(i.identifier.text,16)));n.synthNamesMap.set(r,e)}var i}))):r=b6(gA.createUniqueName("result",16),t.types),S6(r)),r}function d6(e,n,t,r,i){const a=[];let o;if(r&&!L6(e,n)){o=I$(S6(r));const e=r.types,t=n.checker.getUnionType(e,2),i=n.isInJSFile?void 0:n.checker.typeToTypeNode(t,void 0,void 0),s=[gA.createVariableDeclaration(o,void 0,i)],c=gA.createVariableStatement(void 0,gA.createVariableDeclarationList(s,1));a.push(c)}return a.push(t),i&&o&&1===i.kind&&a.push(gA.createVariableStatement(void 0,gA.createVariableDeclarationList([gA.createVariableDeclaration(I$(x6(i)),void 0,void 0,o)],2))),a}function u6(e,n,t,r,i){if(!n||c6(t,n))return s6(e,e.expression.expression,t,r,i);const a=y6(n,t),o=l6(e,t,i),s=s6(e,e.expression.expression,t,!0,o);if(a6())return o6();const c=f6(n,r,o,a,e,t);if(a6())return o6();const l=gA.createBlock(s),d=gA.createCatchClause(a&&I$(T6(a)),gA.createBlock(c));return d6(e,t,gA.createTryStatement(l,d,void 0),o,i)}function _6(e,n,t){return!e||v6(e)?[gA.createExpressionStatement(n)]:A6(e)&&e.hasBeenDeclared?[gA.createExpressionStatement(gA.createAssignment(I$(E6(e)),n))]:[gA.createVariableStatement(void 0,gA.createVariableDeclarationList([gA.createVariableDeclaration(I$(T6(e)),void 0,t,n)],2))]}function p6(e,n){if(n&&e){const t=gA.createUniqueName("result",16);return[..._6(b6(t),e,n),gA.createReturnStatement(t)]}return[gA.createReturnStatement(e)]}function f6(e,n,t,r,a,o){var s;switch(e.kind){case 104:break;case 208:case 79:if(!r)break;const c=gA.createCallExpression(I$(e),void 0,A6(r)?[E6(r)]:[]);if(L6(a,o))return p6(c,t6(a,e,o.checker));const l=o.checker.getTypeAtLocation(e),d=o.checker.getSignaturesOfType(l,0);if(!d.length)return o6();const u=d[0].getReturnType(),_=_6(t,gA.createAwaitExpression(c),t6(a,e,o.checker));return t&&t.types.push(o.checker.getAwaitedType(u)||u),_;case 215:case 216:{const r=e.body,c=null==(s=h6(o.checker.getTypeAtLocation(e),o.checker))?void 0:s.getReturnType();if(pI(r)){let i=[],s=!1;for(const l of r.statements)if(AI(l))if(s=!0,v0(l,o.checker))i=i.concat(g6(o,l,n,t));else{const n=c&&l.expression?m6(o.checker,c,l.expression):l.expression;i.push(...p6(n,t6(a,e,o.checker)))}else{if(n&&Am(l,An))return o6();i.push(l)}return L6(a,o)?i.map((e=>I$(e))):function(e,n,t,r){const i=[];for(const a of e)if(AI(a)){if(a.expression){const e=r6(a.expression,t.checker)?gA.createAwaitExpression(a.expression):a.expression;void 0===n?i.push(gA.createExpressionStatement(e)):A6(n)&&n.hasBeenDeclared?i.push(gA.createExpressionStatement(gA.createAssignment(E6(n),e))):i.push(gA.createVariableStatement(void 0,gA.createVariableDeclarationList([gA.createVariableDeclaration(T6(n),void 0,void 0,e)],2)))}}else i.push(I$(a));r||void 0===n||i.push(gA.createVariableStatement(void 0,gA.createVariableDeclarationList([gA.createVariableDeclaration(T6(n),void 0,void 0,gA.createIdentifier("undefined"))],2)));return i}(i,t,o,s)}{const s=b0(r,o.checker)?g6(o,gA.createReturnStatement(r),n,t):i;if(s.length>0)return s;if(c){const n=m6(o.checker,c,r);if(L6(a,o))return p6(n,t6(a,e,o.checker));{const e=_6(t,n,void 0);return t&&t.types.push(o.checker.getAwaitedType(c)||c),e}}return o6()}}default:return o6()}return i}function m6(e,n,t){const r=I$(t);return e.getPromisedTypeOfPromise(n)?gA.createAwaitExpression(r):r}function h6(e,n){return Fe(n.getSignaturesOfType(e,0))}function g6(e,n,t,r){let i=[];return CD(n,(function n(a){if(Fk(a)){const n=s6(a,a,e,t,r);if(i=i.concat(n),i.length>0)return}else Id(a)||CD(a,n)})),i}function y6(e,n){const t=[];let r;if(Rd(e)){if(e.parameters.length>0){r=function e(n){if(IC(n))return a(n);const t=X(n.elements,(n=>tI(n)?[]:[e(n.name)]));return function(e,n=i,t=[]){return{kind:1,bindingPattern:e,elements:n,types:t}}(n,t)}(e.parameters[0].name)}}else IC(e)?r=a(e):Mk(e)&&IC(e.name)&&(r=a(e.name));if(r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function a(e){var r;const i=function(e){var t,r;return null!=(r=null==(t=En(e,Nu))?void 0:t.symbol)?r:n.checker.getSymbolAtLocation(e)}((r=e).original?r.original:r);if(!i)return b6(e,t);return n.synthNamesMap.get(eB(i).toString())||b6(e,t)}}function v6(e){return!e||(A6(e)?!e.identifier.text:N(e.elements,v6))}function b6(e,n=[]){return{kind:0,identifier:e,types:n,hasBeenDeclared:!1,hasBeenReferenced:!1}}function E6(e){return e.hasBeenReferenced=!0,e.identifier}function T6(e){return A6(e)?S6(e):x6(e)}function x6(e){for(const n of e.elements)T6(n);return e.bindingPattern}function S6(e){return e.hasBeenDeclared=!0,e.identifier}function A6(e){return 0===e.kind}function L6(e,n){return!!e.original&&n.setOfExpressionsToReturn.has(ZG(e.original))}var C6=E({"src/services/codefixes/convertToAsyncFunction.ts"(){Bfe(),ore(),X8="convertToAsyncFunction",Y8=[Wo.This_may_be_converted_to_an_async_function.code],$8=!0,O4({errorCodes:Y8,getCodeActions(e){$8=!0;const n=R_e.ChangeTracker.with(e,(n=>Z8(n,e.sourceFile,e.span.start,e.program.getTypeChecker())));return $8?[R4(X8,n,Wo.Convert_to_async_function,X8,Wo.Convert_all_to_async_functions)]:[]},fixIds:[X8],getAllCodeActions:e=>U4(e,Y8,((n,t)=>Z8(n,t.file,t.start,e.program.getTypeChecker())))})}});function k6(e,n,t,r){for(const i of e.imports){const a=Tp(e,i.text,LH(e,i));if(!a||a.resolvedFileName!==n.fileName)continue;const o=gg(i);switch(o.kind){case 268:t.replaceNode(e,o,wY(o.name,void 0,i,r));break;case 210:Oh(o,!1)&&t.replaceNode(e,o,gA.createPropertyAccessExpression(I$(o),"default"))}}}function I6(e,n,t,r,i){const a={original:F6(e),additional:new Set},o=function(e,n,t){const r=new Map;return w6(e,(e=>{const{text:i}=e.name;r.has(i)||!Ly(e.name)&&!n.resolveName(i,e,111551,!0)||r.set(i,P6(`_${i}`,t))})),r}(e,n,a);!function(e,n,t){w6(e,((r,i)=>{if(i)return;const{text:a}=r.name;t.replaceNode(e,r,gA.createIdentifier(n.get(a)||a))}))}(e,o,t);let s,c=!1;for(const l of j(e.statements,fI)){const o=N6(e,l,t,n,a,r,i);o&&vp(o,null!=s?s:s=new Map)}for(const l of j(e.statements,(e=>!fI(e)))){const d=R6(e,l,n,t,a,r,o,s,i);c=c||d}return null==s||s.forEach(((n,r)=>{t.replaceNode(e,r,n)})),c}function w6(e,n){e.forEachChild((function t(r){if(Mk(r)&&nG(e,r.expression)&&IC(r.name)){const{parent:e}=r;n(r,Yk(e)&&e.left===r&&63===e.operatorToken.kind)}r.forEachChild(t)}))}function R6(e,n,t,r,i,o,s,c,l){switch(n.kind){case 240:return N6(e,n,r,t,i,o,l),!1;case 241:{const{expression:i}=n;switch(i.kind){case 210:return Oh(i,!0)&&r.replaceNode(e,n,wY(void 0,void 0,i.arguments[0],l)),!1;case 223:{const{operatorToken:n}=i;return 63===n.kind&&function(e,n,t,r,i,o){const{left:s,right:c}=t;if(!Mk(s))return!1;if(nG(e,s)){if(!nG(e,c)){const i=Ok(c)?function(e,n){const t=Z(e.properties,(e=>{switch(e.kind){case 174:case 175:case 300:case 301:return;case 299:return IC(e.name)?function(e,n,t){const r=[gA.createToken(93)];switch(n.kind){case 215:{const{name:t}=n;if(t&&t.text!==e)return i()}case 216:return B6(e,r,n,t);case 228:return function(e,n,t,r){return gA.createClassDeclaration(de(n,N$(t.modifiers)),e,N$(t.typeParameters),N$(t.heritageClauses),M6(t.members,r))}(e,r,n,t);default:return i()}function i(){return j6(r,gA.createIdentifier(e),M6(n,t))}}(e.name.text,e.initializer,n):void 0;case 171:return IC(e.name)?B6(e.name.text,[gA.createToken(93)],e,n):void 0;default:Nt.assertNever(e,`Convert to ES6 got invalid prop kind ${e.kind}`)}}));return t&&[t,!1]}(c,o):Oh(c,!0)?function(e,n){const t=e.text,r=n.getSymbolAtLocation(e),i=r?r.exports:a;return i.has("export=")?[[O6(t)],!0]:i.has("default")?i.size>1?[[D6(t),O6(t)],!0]:[[O6(t)],!0]:[[D6(t)],!1]}(c.arguments[0],n):void 0;return i?(r.replaceNodeWithNodes(e,t.parent,i[0]),i[1]):(r.replaceRangeWithText(e,pE(s.getStart(e),c.pos),"export default"),!0)}r.delete(e,t.parent)}else nG(e,s.expression)&&function(e,n,t,r){const{text:i}=n.left.name,a=r.get(i);if(void 0!==a){const r=[j6(void 0,a,n.right),H6([gA.createExportSpecifier(!1,a,i)])];t.replaceNodeWithNodes(e,n.parent,r)}else!function({left:e,right:n,parent:t},r,i){const a=e.name.text;if(!(jk(n)||Hk(n)||nI(n))||n.name&&n.name.text!==a)i.replaceNodeRangeWithNodes(r,e.expression,dX(e,24,r),[gA.createToken(93),gA.createToken(85)],{joiner:" ",suffix:" "});else{i.replaceRange(r,{pos:e.getStart(r),end:n.getStart(r)},gA.createToken(93),{suffix:" "}),n.name||i.insertName(r,n,a);const o=dX(t,26,r);o&&i.delete(r,o)}}(n,e,t)}(e,t,r,i);return!1}(e,t,i,r,s,c)}}}default:return!1}}function N6(e,n,t,r,i,a,o){const{declarationList:s}=n;let c=!1;const l=W(s.declarations,(n=>{const{name:t,initializer:l}=n;if(l){if(nG(e,l))return c=!0,K6([]);if(Oh(l,!0))return c=!0,function(e,n,t,r,i,a){switch(e.kind){case 203:{const t=Z(e.elements,(e=>e.dotDotDotToken||e.initializer||e.propertyName&&!IC(e.propertyName)||!IC(e.name)?void 0:V6(e.propertyName&&e.propertyName.text,e.name.text)));if(t)return K6([wY(void 0,t,n,a)])}case 204:{const t=P6(e5(n.text,i),r);return K6([wY(gA.createIdentifier(t),void 0,n,a),j6(void 0,I$(e),gA.createIdentifier(t))])}case 79:return function(e,n,t,r,i){const a=t.getSymbolAtLocation(e),o=new Map;let s,c=!1;for(const d of r.original.get(e.text)){if(t.getSymbolAtLocation(d)!==a||d===e)continue;const{parent:n}=d;if(Mk(n)){const{name:{text:e}}=n;if("default"===e){c=!0;const e=d.getText();(null!=s?s:s=new Map).set(n,gA.createIdentifier(e))}else{Nt.assert(n.expression===d,"Didn't expect expression === use");let t=o.get(e);void 0===t&&(t=P6(e,r),o.set(e,t)),(null!=s?s:s=new Map).set(n,gA.createIdentifier(t))}}else c=!0}const l=0===o.size?void 0:Qe(z(o.entries(),(([e,n])=>gA.createImportSpecifier(!1,e===n?void 0:gA.createIdentifier(e),gA.createIdentifier(n)))));l||(c=!0);return K6([wY(c?I$(e):void 0,l,n,i)],s)}(e,n,t,r,a);default:return Nt.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}(t,l.arguments[0],r,i,a,o);if(Mk(l)&&Oh(l.expression,!0))return c=!0,function(e,n,t,r,i){switch(e.kind){case 203:case 204:{const a=P6(n,r);return K6([U6(a,n,t,i),j6(void 0,e,gA.createIdentifier(a))])}case 79:return K6([U6(e.text,n,t,i)]);default:return Nt.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}(t,l.name.text,l.expression.arguments[0],i,o)}return K6([gA.createVariableStatement(void 0,gA.createVariableDeclarationList([n],s.flags))])}));if(c){let r;return t.replaceNodeWithNodes(e,n,X(l,(e=>e.newImports))),A(l,(e=>{e.useSitesToUnqualify&&vp(e.useSitesToUnqualify,null!=r?r:r=new Map)})),r}}function D6(e){return H6(void 0,e)}function O6(e){return H6([gA.createExportSpecifier(!1,void 0,"default")],e)}function M6(e,n){return n&&ce(Qe(n.keys()),(n=>YJ(e,n)))?gn(e)?D$(e,!0,t):w$(e,!0,t):e;function t(e){if(208===e.kind){const t=n.get(e);return n.delete(e),t}}}function P6(e,n){for(;n.original.has(e)||n.additional.has(e);)e=`_${e}`;return n.additional.add(e),e}function F6(e){const n=un();return G6(e,(e=>n.add(e.text,e))),n}function G6(e,n){IC(e)&&function(e){const{parent:n}=e;switch(n.kind){case 208:return n.name!==e;case 205:case 273:return n.propertyName!==e;default:return!0}}(e)&&n(e),e.forEachChild((e=>G6(e,n)))}function B6(e,n,t,r){return gA.createFunctionDeclaration(de(n,N$(t.modifiers)),I$(t.asteriskToken),e,N$(t.typeParameters),N$(t.parameters),I$(t.type),gA.converters.convertToFunctionBlock(M6(t.body,r)))}function U6(e,n,t,r){return"default"===n?wY(gA.createIdentifier(e),void 0,t,r):wY(void 0,[V6(n,e)],t,r)}function V6(e,n){return gA.createImportSpecifier(!1,void 0!==e&&e!==n?gA.createIdentifier(e):void 0,gA.createIdentifier(n))}function j6(e,n,t){return gA.createVariableStatement(e,gA.createVariableDeclarationList([gA.createVariableDeclaration(n,void 0,void 0,t)],2))}function H6(e,n){return gA.createExportDeclaration(void 0,!1,e&&gA.createNamedExports(e),void 0===n?void 0:gA.createStringLiteral(n))}function K6(e,n){return{newImports:e,useSitesToUnqualify:n}}var W6,z6,q6=E({"src/services/codefixes/convertToEsModule.ts"(){Bfe(),ore(),O4({errorCodes:[Wo.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:n,program:t,preferences:r}=e;return[w4("convertToEsModule",R_e.ChangeTracker.with(e,(e=>{if(I6(n,t.getTypeChecker(),e,HT(t.getCompilerOptions()),DY(n,r)))for(const i of t.getSourceFiles())k6(i,n,e,DY(i,r))})),Wo.Convert_to_ES_module)]}})}});function J6(e,n){const t=Mc(SX(e,n),KC);return Nt.assert(!!t,"Expected position to be owned by a qualified name."),IC(t.left)?t:void 0}function X6(e,n,t){const r=t.right.text,i=gA.createIndexedAccessTypeNode(gA.createTypeReferenceNode(t.left,void 0),gA.createLiteralTypeNode(gA.createStringLiteral(r)));e.replaceNode(n,t,i)}var Y6,$6,Q6=E({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){Bfe(),ore(),W6="correctQualifiedNameToIndexedAccessType",O4({errorCodes:z6=[Wo.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],getCodeActions(e){const n=J6(e.sourceFile,e.span.start);if(!n)return;const t=R_e.ChangeTracker.with(e,(t=>X6(t,e.sourceFile,n))),r=`${n.left.text}["${n.right.text}"]`;return[R4(W6,t,[Wo.Rewrite_as_the_indexed_access_type_0,r],W6,Wo.Rewrite_all_as_indexed_access_types)]},fixIds:[W6],getAllCodeActions:e=>U4(e,z6,((e,n)=>{const t=J6(n.file,n.start);t&&X6(e,n.file,t)}))})}});function Z6(e,n){return En(SX(n,e.start).parent,tw)}function e3(e,n,t){if(!n)return;const r=n.parent,i=r.parent,a=function(e,n){const t=e.parent;if(1===t.elements.length)return t.elements;const r=TQ(sY(t),n.program.getSemanticDiagnostics(n.sourceFile,n.cancellationToken));return j(t.elements,(n=>{var t;return n===e||(null==(t=EQ(n,r))?void 0:t.code)===Y6[0]}))}(n,t);if(a.length===r.elements.length)e.insertModifierBefore(t.sourceFile,154,r);else{const n=gA.updateExportDeclaration(i,i.modifiers,!1,gA.updateNamedExports(r,j(r.elements,(e=>!G(a,e)))),i.moduleSpecifier,void 0),o=gA.createExportDeclaration(void 0,!0,gA.createNamedExports(a),i.moduleSpecifier,void 0);e.replaceNode(t.sourceFile,i,n,{leadingTriviaOption:R_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:R_e.TrailingTriviaOption.Exclude}),e.insertNodeAfter(t.sourceFile,i,o)}}var n3,t3,r3=E({"src/services/codefixes/convertToTypeOnlyExport.ts"(){Bfe(),ore(),O4({errorCodes:Y6=[Wo.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],getCodeActions:function(e){const n=R_e.ChangeTracker.with(e,(n=>e3(n,Z6(e.span,e.sourceFile),e)));if(n.length)return[R4($6,n,Wo.Convert_to_type_only_export,$6,Wo.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[$6="convertToTypeOnlyExport"],getAllCodeActions:function(e){const n=new Map;return U4(e,Y6,((t,r)=>{const i=Z6(r,e.sourceFile);i&&nT(n,ZG(i.parent.parent))&&e3(t,i,e)}))}})}});function i3(e,n){const{parent:t}=SX(e,n);return QI(t)||KI(t)&&t.importClause?t:void 0}function a3(e,n,t){if(QI(t))e.replaceNode(n,t,gA.updateImportSpecifier(t,!0,t.propertyName,t.name));else{const r=t.importClause;if(r.name&&r.namedBindings)e.replaceNodeWithNodes(n,t,[gA.createImportDeclaration(N$(t.modifiers,!0),gA.createImportClause(!0,I$(r.name,!0),void 0),I$(t.moduleSpecifier,!0),I$(t.assertClause,!0)),gA.createImportDeclaration(N$(t.modifiers,!0),gA.createImportClause(!0,void 0,I$(r.namedBindings,!0)),I$(t.moduleSpecifier,!0),I$(t.assertClause,!0))]);else{const i=gA.updateImportDeclaration(t,t.modifiers,gA.updateImportClause(r,!0,r.name,r.namedBindings),t.moduleSpecifier,t.assertClause);e.replaceNode(n,t,i)}}}var o3,s3,c3=E({"src/services/codefixes/convertToTypeOnlyImport.ts"(){Bfe(),ore(),O4({errorCodes:n3=[Wo.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,Wo._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],getCodeActions:function(e){const n=i3(e.sourceFile,e.span.start);if(n){const t=R_e.ChangeTracker.with(e,(t=>a3(t,e.sourceFile,n)));return[R4(t3,t,Wo.Convert_to_type_only_import,t3,Wo.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]}},fixIds:[t3="convertToTypeOnlyImport"],getAllCodeActions:function(e){return U4(e,n3,((e,n)=>{const t=i3(n.file,n.start);t&&a3(e,n.file,t)}))}})}});function l3(e,n){const t=SX(e,n);if(IC(t)){const n=Tn(t.parent.parent,XC),r=t.getText(e);return{container:Tn(n.parent,uk),typeNode:n.type,constraint:r,name:"K"===r?"P":"K"}}}function d3(e,n,{container:t,typeNode:r,constraint:i,name:a}){e.replaceNode(n,t,gA.createMappedTypeNode(void 0,gA.createTypeParameterDeclaration(void 0,a,gA.createTypeReferenceNode(i)),void 0,void 0,r,void 0))}var u3,_3,p3=E({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){Bfe(),ore(),o3="convertLiteralTypeToMappedType",O4({errorCodes:s3=[Wo._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],getCodeActions:function(e){const{sourceFile:n,span:t}=e,r=l3(n,t.start);if(!r)return;const{name:i,constraint:a}=r,o=R_e.ChangeTracker.with(e,(e=>d3(e,n,r)));return[R4(o3,o,[Wo.Convert_0_to_1_in_0,a,i],o3,Wo.Convert_all_type_literals_to_mapped_type)]},fixIds:[o3],getAllCodeActions:e=>U4(e,s3,((e,n)=>{const t=l3(n.file,n.start);t&&d3(e,n.file,t)}))})}});function f3(e,n){return Nt.checkDefined(Xm(SX(e,n)),"There should be a containing class")}function m3(e){return!e.valueDeclaration||!(8&Lb(e.valueDeclaration))}function h3(e,n,t,r,i,a){const o=e.program.getTypeChecker(),s=function(e,n){const t=py(e);if(!t)return dp();const r=n.getTypeAtLocation(t),i=n.getPropertiesOfType(r);return dp(i.filter(m3))}(r,o),c=o.getTypeAtLocation(n),l=o.getPropertiesOfType(c).filter(gt(m3,(e=>!s.has(e.escapedName)))),d=o.getTypeAtLocation(r),u=D(r.members,(e=>ek(e)));d.getNumberIndexType()||p(c,1),d.getStringIndexType()||p(c,0);const _=E3(t,e.program,a,e.host);function p(n,i){const a=o.getIndexInfoOfType(n,i);a&&f(t,r,o.indexInfoToIndexSignatureDeclaration(a,r,void 0,tne(e)))}function f(e,n,t){u?i.insertNodeAfter(e,u,t):i.insertMemberAtStart(e,n,t)}nne(r,l,t,e,a,_,(e=>f(t,r,e))),_.writeFixes(i)}var g3,y3,v3,b3=E({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){Bfe(),ore(),u3=[Wo.Class_0_incorrectly_implements_interface_1.code,Wo.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],_3="fixClassIncorrectlyImplementsInterface",O4({errorCodes:u3,getCodeActions(e){const{sourceFile:n,span:t}=e,r=f3(n,t.start);return ee(my(r),(t=>{const i=R_e.ChangeTracker.with(e,(i=>h3(e,t,n,r,i,e.preferences)));return 0===i.length?void 0:R4(_3,i,[Wo.Implement_interface_0,t.getText(n)],_3,Wo.Implement_all_unimplemented_interfaces)}))},fixIds:[_3],getAllCodeActions(e){const n=new Map;return U4(e,u3,((t,r)=>{const i=f3(r.file,r.start);if(nT(n,ZG(i)))for(const n of my(i))h3(e,n,r.file,i,t,e.preferences)}))}})}});function E3(e,n,t,r,i){return T3(e,n,!1,t,r,i)}function T3(e,n,t,r,i,a){const o=n.getCompilerOptions(),s=[],c=[],l=new Map,d=new Map;return{addImportFromDiagnostic:function(e,n){const r=M3(n,e.code,e.start,t);if(!r||!r.length)return;u(Me(r))},addImportFromExportedSymbol:function(t,s){const c=Nt.checkDefined(t.parent),l=kQ(t,HT(o)),d=n.getTypeChecker(),_=d.getMergedSymbol(BE(t,d)),p=k3(e,_,l,c,!1,n,i,r,a),f=D3(e,n),m=L3(e,Nt.checkDefined(p),n,void 0,!!s,f,i,r);m&&u({fix:m,symbolName:l,errorIdentifierText:void 0})},writeFixes:function(n){const t=DY(e,r);for(const r of s)W3(n,e,r);for(const r of c)z3(n,e,r,t);let i;l.forEach((({importClauseOrBindingPattern:t,defaultImport:i,namedImports:a})=>{K3(n,e,t,i,Qe(a.entries(),(([e,n])=>({addAsTypeOnly:n,name:e}))),o,r)})),d.forEach((({useRequire:e,defaultImport:n,namedImports:r,namespaceLikeImport:a},s)=>{const c=(e?Y3:X3)(s.slice(2),t,n,r&&Qe(r.entries(),(([e,n])=>({addAsTypeOnly:n,name:e}))),a,o);i=xe(i,c)})),i&&HY(n,e,i,!0,r)},hasFixes:function(){return s.length>0||c.length>0||l.size>0||d.size>0}};function u(e){var n,t;const{fix:r,symbolName:i}=e;switch(r.kind){case 0:s.push(r);break;case 1:c.push(r);break;case 2:{const{importClauseOrBindingPattern:e,importKind:t,addAsTypeOnly:o}=r,s=String(ZG(e));let c=l.get(s);if(c||l.set(s,c={importClauseOrBindingPattern:e,defaultImport:void 0,namedImports:new Map}),0===t){const e=null==c?void 0:c.namedImports.get(i);c.namedImports.set(i,a(e,o))}else Nt.assert(void 0===c.defaultImport||c.defaultImport.name===i,"(Add to Existing) Default import should be missing or match symbolName"),c.defaultImport={name:i,addAsTypeOnly:a(null==(n=c.defaultImport)?void 0:n.addAsTypeOnly,o)};break}case 3:{const{moduleSpecifier:e,importKind:n,useRequire:s,addAsTypeOnly:c}=r,l=function(e,n,t,r){const i=o(e,!0),a=o(e,!1),s=d.get(i),c=d.get(a),l={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:t};if(1===n&&2===r)return s||(d.set(i,l),l);if(1===r&&(s||c))return s||c;if(c)return c;return d.set(a,l),l}(e,n,s,c);switch(Nt.assert(l.useRequire===s,"(Add new) Tried to add an `import` and a `require` for the same module"),n){case 1:Nt.assert(void 0===l.defaultImport||l.defaultImport.name===i,"(Add new) Default import should be missing or match symbolName"),l.defaultImport={name:i,addAsTypeOnly:a(null==(t=l.defaultImport)?void 0:t.addAsTypeOnly,c)};break;case 0:const e=(l.namedImports||(l.namedImports=new Map)).get(i);l.namedImports.set(i,a(e,c));break;case 3:case 2:Nt.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===i,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:n,name:i,addAsTypeOnly:c}}break}case 4:break;default:Nt.assertNever(r,`fix wasn't never - got kind ${r.kind}`)}function a(e,n){return Math.max(null!=e?e:0,n)}function o(e,n){return`${n?1:0}|${e}`}}}function x3(e,n,t,r){const i=gQ(e,r,t),a=N3(n.getTypeChecker(),e,n.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:function(o,s,c,l){const{fixes:d,computedWithoutCacheCount:u}=w3(o,s,c,!1,n,e,t,r,a,l),_=P3(d,e,n,i,t);return _&&{..._,computedWithoutCacheCount:u}}}}function S3(e,n,t,r,i,a,o,s,c,l,d,u){const _=s.getCompilerOptions();let p;t?(p=$Q(r,o,s,d,u).get(r.path,t),Nt.assertIsDefined(p,"Some exportInfo should match the specified exportMapKey")):(p=io(fv(n.name))?[I3(e,i,n,s,o)]:k3(r,e,i,n,a,s,o,d,u),Nt.assertIsDefined(p,"Some exportInfo should match the specified symbol / moduleSymbol"));const f=D3(r,s),m=vS(SX(r,l)),h=Nt.checkDefined(L3(r,p,s,l,m,f,o,d));return{moduleSpecifier:h.moduleSpecifier,codeAction:C3(j3({host:o,formatContext:c,preferences:d},r,i,h,!1,_,d))}}function A3(e,n,t,r,i,a){const o=t.getCompilerOptions(),s=Ue(V3(e,t.getTypeChecker(),n,o)),c=U3(e,n,s,t),l=s!==n.text;return c&&C3(j3({host:r,formatContext:i,preferences:a},e,s,c,l,o,a))}function L3(e,n,t,r,i,a,o,s){const c=gQ(e,s,o);return P3(w3(n,r,i,a,t,e,o,s).fixes,e,t,c,o)}function C3({description:e,changes:n,commands:t}){return{description:e,changes:n,commands:t}}function k3(e,n,t,r,i,a,o,s,c){const l=O3(a,o);return $Q(e,o,a,s,c).search(e.path,i,(e=>e===t),(e=>{if(BE(e[0].symbol,l(e[0].isFromPackageJson))===n&&e.some((e=>e.moduleSymbol===r||e.symbol.parent===r)))return e}))}function I3(e,n,t,r,i){var a,o;const s=r.getCompilerOptions(),c=d(r.getTypeChecker(),!1);if(c)return c;const l=null==(o=null==(a=i.getPackageJsonAutoImportProvider)?void 0:a.call(i))?void 0:o.getTypeChecker();return Nt.checkDefined(l&&d(l,!0),"Could not find symbol in specified module for code actions");function d(r,i){const a=QQ(t,r,s);if(a&&BE(a.symbol,r)===e)return{symbol:a.symbol,moduleSymbol:t,moduleFileName:void 0,exportKind:a.exportKind,targetFlags:BE(e,r).flags,isFromPackageJson:i};const o=r.tryGetMemberInModuleExportsAndProperties(n,t);return o&&BE(o,r)===e?{symbol:o,moduleSymbol:t,moduleFileName:void 0,exportKind:0,targetFlags:BE(e,r).flags,isFromPackageJson:i}:void 0}}function w3(e,n,t,r,a,o,s,c,l=N3(a.getTypeChecker(),o,a.getCompilerOptions()),d){const u=a.getTypeChecker(),_=X(e,l.getImportsForExportInfo),p=void 0!==n&&function(e,n){return C(e,(({declaration:e,importKind:t})=>{var r;if(0!==t)return;const i=function(e){var n,t,r;switch(e.kind){case 257:return null==(n=En(e.name,IC))?void 0:n.text;case 268:return e.name.text;case 269:return null==(r=En(null==(t=e.importClause)?void 0:t.namedBindings,XI))?void 0:r.name.text;default:return Nt.assertNever(e)}}(e),a=i&&(null==(r=hg(e))?void 0:r.text);return a?{kind:0,namespacePrefix:i,usagePosition:n,moduleSpecifier:a}:void 0}))}(_,n),f=function(e,n,t,r){return C(e,(({declaration:e,importKind:i,symbol:a,targetFlags:o})=>{if(3===i||2===i||268===e.kind)return;if(257===e.kind)return 0!==i&&1!==i||203!==e.name.kind?void 0:{kind:2,importClauseOrBindingPattern:e.name,importKind:i,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4};const{importClause:s}=e;if(!s||!o_(e.moduleSpecifier))return;const{name:c,namedBindings:l}=s;if(s.isTypeOnly&&(0!==i||!l))return;const d=R3(n,!1,a,o,t,r);return 1===i&&(c||2===d&&l)||0===i&&271===(null==l?void 0:l.kind)?void 0:{kind:2,importClauseOrBindingPattern:s,importKind:i,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:d}}))}(_,t,u,a.getCompilerOptions());if(f)return{computedWithoutCacheCount:0,fixes:[...p?[p]:i,f]};const{fixes:m,computedWithoutCacheCount:h=0}=function(e,n,t,r,i,a,o,s,c,l){const d=C(n,(e=>function({declaration:e,importKind:n,symbol:t,targetFlags:r},i,a,o,s){var c;const l=null==(c=hg(e))?void 0:c.text;if(l){return{kind:3,moduleSpecifier:l,importKind:n,addAsTypeOnly:a?4:R3(i,!0,t,r,o,s),useRequire:a}}}(e,a,o,t.getTypeChecker(),t.getCompilerOptions())));return d?{fixes:[d]}:function(e,n,t,r,i,a,o,s,c){const l=Ch(n),d=e.getCompilerOptions(),u=LY(e,o),_=O3(e,o),p=kY(zT(d)),f=c?e=>({moduleSpecifiers:MG.tryGetModuleSpecifiersFromCache(e,n,u,s),computedWithoutCache:!1}):(e,t)=>MG.getModuleSpecifiersWithCacheInfo(e,t,d,n,u,s);let m=0;const h=X(a,((e,a)=>{const o=_(e.isFromPackageJson),{computedWithoutCache:s,moduleSpecifiers:c}=f(e.moduleSymbol,o),u=!!(111551&e.targetFlags),h=R3(r,!0,e.symbol,e.targetFlags,o,d);return m+=s?1:0,ee(c,(r=>{var s;if(p&&iF(r))return;if(!u&&l&&void 0!==t)return{kind:1,moduleSpecifier:r,usagePosition:t,exportInfo:e,isReExport:a>0};const c=B3(n,e.exportKind,d);let _;if(void 0!==t&&3===c&&0===e.exportKind){const n=o.resolveExternalModuleSymbol(e.moduleSymbol);let r;n!==e.moduleSymbol&&(r=null==(s=eZ(n,o,d))?void 0:s.name),r||(r=Z3(e.moduleSymbol,HT(d),!1)),_={namespacePrefix:r,usagePosition:t}}return{kind:3,moduleSpecifier:r,importKind:c,useRequire:i,addAsTypeOnly:h,exportInfo:e,isReExport:a>0,qualification:_}}))}));return{computedWithoutCacheCount:m,fixes:h}}(t,r,i,a,o,e,s,c,l)}(e,_,a,o,n,t,r,s,c,d);return{computedWithoutCacheCount:h,fixes:[...p?[p]:i,...m]}}function R3(e,n,t,r,i,a){return e?n&&2===a.importsNotUsedAsValues?2:!YT(a)||111551&r&&!i.getTypeOnlyAliasDeclaration(t)?1:2:4}function N3(e,n,t){let r;for(const i of n.imports){const n=gg(i);if(Mh(n.parent)){const t=e.resolveExternalModuleName(i);t&&(r||(r=un())).add(eB(t),n.parent)}else if(269===n.kind||268===n.kind){const t=e.getSymbolAtLocation(i);t&&(r||(r=un())).add(eB(t),n)}}return{getImportsForExportInfo:({moduleSymbol:e,exportKind:a,targetFlags:o,symbol:s})=>{if(!(111551&o)&&Ch(n))return i;const c=null==r?void 0:r.get(eB(e));if(!c)return i;const l=B3(n,a,t);return c.map((e=>({declaration:e,importKind:l,symbol:s,targetFlags:o})))}}}function D3(e,n){if(!Ch(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const t=n.getCompilerOptions();if(t.configFile)return KT(t)<5;for(const r of n.getSourceFiles())if(r!==e&&Ch(r)&&!n.isSourceFileFromExternalLibrary(r)){if(r.commonJsModuleIndicator&&!r.externalModuleIndicator)return!0;if(r.externalModuleIndicator&&!r.commonJsModuleIndicator)return!1}return!0}function O3(e,n){return Nn((t=>t?n.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker()))}function M3(e,n,t,r){const i=SX(e.sourceFile,t);let a;if(n===Wo._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)a=function({sourceFile:e,program:n,host:t,preferences:r},i){const a=n.getTypeChecker(),o=function(e,n){const t=IC(e)?n.getSymbolAtLocation(e):void 0;if(QE(t))return t;const{parent:r}=e;if(zu(r)&&r.tagName===e||fw(r)){const t=n.resolveName(n.getJsxNamespace(r),zu(r)?e:r,111551,!1);if(QE(t))return t}return}(i,a);if(!o)return;const s=a.getAliasedSymbol(o),c=o.name,l=[{symbol:o,moduleSymbol:s,moduleFileName:void 0,exportKind:3,targetFlags:s.flags,isFromPackageJson:!1}],d=D3(e,n);return w3(l,void 0,!1,d,n,e,t,r).fixes.map((e=>{var n;return{fix:e,symbolName:c,errorIdentifierText:null==(n=En(i,IC))?void 0:n.text}}))}(e,i);else{if(!IC(i))return;if(n===Wo._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const n=Ue(V3(e.sourceFile,e.program.getTypeChecker(),i,e.program.getCompilerOptions())),t=U3(e.sourceFile,i,n,e.program);return t&&[{fix:t,symbolName:n,errorIdentifierText:i.text}]}a=function({sourceFile:e,program:n,cancellationToken:t,host:r,preferences:i},a,o){const s=n.getTypeChecker(),c=n.getCompilerOptions();return X(V3(e,s,a,c),(s=>{if("default"===s)return;const c=vS(a),l=D3(e,n),d=function(e,n,t,r,i,a,o,s,c){var l;const d=un(),u=gQ(i,c,s),_=null==(l=s.getModuleSpecifierCache)?void 0:l.call(s),p=Nn((e=>LY(e?s.getPackageJsonAutoImportProvider():a,s)));function f(e,n,t,r,a,o){const s=p(o);if(n&&JQ(a,i,n,c,u,s,_)||!n&&u.allowsImportingAmbientModule(e,s)){const i=a.getTypeChecker();d.add(L$(t,i).toString(),{symbol:t,moduleSymbol:e,moduleFileName:null==n?void 0:n.fileName,exportKind:r,targetFlags:BE(t,i).flags,isFromPackageJson:o})}}return XQ(a,s,c,o,((i,a,o,s)=>{const c=o.getTypeChecker();r.throwIfCancellationRequested();const l=o.getCompilerOptions(),d=QQ(i,c,l);d&&(d.name===e||Z3(i,HT(l),n)===e)&&Q3(d.resolvedSymbol,t)&&f(i,a,d.symbol,d.exportKind,o,s);const u=c.tryGetMemberInModuleExportsAndProperties(e,i);u&&Q3(u,t)&&f(i,a,u,0,o,s)})),d}(s,yh(a),vJ(a),t,e,n,o,r,i);return Qe($(d.values(),(t=>w3(t,a.getStart(e),c,l,n,e,r,i).fixes)),(e=>({fix:e,symbolName:s,errorIdentifierText:a.text,isJsxNamespaceFix:s!==a.text})))}))}(e,i,r)}const o=gQ(e.sourceFile,e.preferences,e.host);return a&&function(e,n,t,r,i){const a=e=>Co(e,i.getCurrentDirectory(),Tv(i));return Ie(e,((e,i)=>$n(!!e.isJsxNamespaceFix,!!i.isJsxNamespaceFix)||Un(e.fix.kind,i.fix.kind)||F3(e.fix,i.fix,n,t,r.allowsImportingSpecifier,a)))}(a,e.sourceFile,e.program,o,e.host)}function P3(e,n,t,r,i){if(ce(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce(((e,a)=>-1===F3(a,e,n,t,r.allowsImportingSpecifier,(e=>Co(e,i.getCurrentDirectory(),Tv(i))))?a:e))}function F3(e,n,t,r,i,a){return 0!==e.kind&&0!==n.kind?$n(i(n.moduleSpecifier),i(e.moduleSpecifier))||function(e,n,t,r){return pt(e,"node:")&&!pt(n,"node:")?FQ(t,r)?-1:1:pt(n,"node:")&&!pt(e,"node:")?FQ(t,r)?1:-1:0}(e.moduleSpecifier,n.moduleSpecifier,t,r)||$n(G3(e,t,r.getCompilerOptions(),a),G3(n,t,r.getCompilerOptions(),a))||zx(e.moduleSpecifier,n.moduleSpecifier):0}function G3(e,n,t,r){var i;if(e.isReExport&&(null==(i=e.exportInfo)?void 0:i.moduleFileName)&&2===zT(t)&&"index"===fo(e.exportInfo.moduleFileName,[".js",".jsx",".d.ts",".ts",".tsx"],!0)){const t=r(po(e.exportInfo.moduleFileName));return pt(n.path,t)}return!1}function B3(e,n,t,r){if(t.verbatimModuleSyntax&&(1===KT(t)||1===e.impliedNodeFormat))return 3;switch(n){case 0:return 0;case 1:return 1;case 2:return function(e,n,t){const r=nx(n),i=Ih(e);if(!i&&KT(n)>=5)return r?1:2;if(i)return OD(e)||t?r?1:2:3;for(const a of e.statements)if(HI(a)&&!Vp(a.moduleReference))return 3;return r?1:3}(e,t,!!r);case 3:return function(e,n,t){if(nx(n))return 1;const r=KT(n);switch(r){case 2:case 1:case 3:return Ih(e)&&(OD(e)||t)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return 99===e.impliedNodeFormat?2:3;default:return Nt.assertNever(r,`Unexpected moduleKind ${r}`)}}(e,t,!!r);default:return Nt.assertNever(n)}}function U3(e,n,t,r){const i=r.getTypeChecker(),a=i.resolveName(t,n,111551,!0);if(!a)return;const o=i.getTypeOnlyAliasDeclaration(a);return o&&Dp(o)===e?{kind:4,typeOnlyAliasDeclaration:o}:void 0}function V3(e,n,t,r){const i=t.parent;if((zu(i)||_w(i))&&i.tagName===t&&VQ(r.jsx)){const r=n.getJsxNamespace(e);if(function(e,n,t){if(mv(n.text))return!0;const r=t.resolveName(e,n,111551,!0);return!r||ce(r.declarations,md)&&!(111551&r.flags)}(r,t,n)){return!mv(t.text)&&!n.resolveName(t.text,t,111551,!1)?[t.text,r]:[r]}}return[t.text]}function j3(e,n,t,r,a,o,s){let c;const l=R_e.ChangeTracker.with(e,(e=>{c=function(e,n,t,r,a,o,s){const c=DY(n,s);switch(r.kind){case 0:return W3(e,n,r),[Wo.Change_0_to_1,t,`${r.namespacePrefix}.${t}`];case 1:return z3(e,n,r,c),[Wo.Change_0_to_1,t,q3(r.moduleSpecifier,c)+t];case 2:{const{importClauseOrBindingPattern:c,importKind:l,addAsTypeOnly:d,moduleSpecifier:u}=r;K3(e,n,c,1===l?{name:t,addAsTypeOnly:d}:void 0,0===l?[{name:t,addAsTypeOnly:d}]:i,o,s);const _=fv(u);return a?[Wo.Import_0_from_1,t,_]:[Wo.Update_import_from_0,_]}case 3:{const{importKind:i,moduleSpecifier:l,addAsTypeOnly:d,useRequire:u,qualification:_}=r;return HY(e,n,(u?Y3:X3)(l,c,1===i?{name:t,addAsTypeOnly:d}:void 0,0===i?[{name:t,addAsTypeOnly:d}]:void 0,2===i||3===i?{importKind:i,name:(null==_?void 0:_.namespacePrefix)||t,addAsTypeOnly:d}:void 0,o),!0,s),_&&W3(e,n,_),a?[Wo.Import_0_from_1,t,l]:[Wo.Add_import_from_0,l]}case 4:{const{typeOnlyAliasDeclaration:i}=r,a=function(e,n,t,r,i){const a=YT(t);switch(n.kind){case 273:if(n.isTypeOnly){const t=ise.detectImportSpecifierSorting(n.parent.elements,i);if(n.parent.elements.length>1&&t){e.delete(r,n);const a=gA.updateImportSpecifier(n,!1,n.propertyName,n.name),o=ise.getOrganizeImportsComparer(i,2===t),s=ise.getImportSpecifierInsertionIndex(n.parent.elements,a,o);e.insertImportSpecifierAtIndex(r,a,n.parent,s)}else e.deleteRange(r,n.getFirstToken());return n}return Nt.assert(n.parent.parent.isTypeOnly),o(n.parent.parent),n.parent.parent;case 270:return o(n),n;case 271:return o(n.parent),n.parent;case 268:return e.deleteRange(r,n.getChildAt(1)),n;default:Nt.failBadSyntaxKind(n)}function o(t){if(e.delete(r,KY(t,r)),a){const a=En(t.namedBindings,$I);if(a&&a.elements.length>1){ise.detectImportSpecifierSorting(a.elements,i)&&273===n.kind&&0!==a.elements.indexOf(n)&&(e.delete(r,n),e.insertImportSpecifierAtIndex(r,n,a,0));for(const t of a.elements)t===n||t.isTypeOnly||e.insertModifierBefore(r,154,t)}}}}(e,i,o,n,s);return 273===a.kind?[Wo.Remove_type_from_import_of_0_from_1,t,H3(a.parent.parent)]:[Wo.Remove_type_from_import_declaration_from_0,H3(a)]}default:return Nt.assertNever(r,`Unexpected fix kind ${r.kind}`)}}(e,n,t,r,a,o,s)}));return R4(g3,l,c,y3,Wo.Add_all_missing_imports)}function H3(e){var n,t;return 268===e.kind?(null==(t=En(null==(n=En(e.moduleReference,cw))?void 0:n.expression,o_))?void 0:t.text)||e.moduleReference.getText():Tn(e.parent.moduleSpecifier,_C).text}function K3(e,n,t,r,i,a,o){var s;if(203===t.kind){r&&u(t,r.name,"default");for(const e of i)u(t,e.name,void 0);return}const c=t.isTypeOnly&&ce([r,...i],(e=>4===(null==e?void 0:e.addAsTypeOnly))),l=t.namedBindings&&(null==(s=En(t.namedBindings,$I))?void 0:s.elements),d=c&&YT(a);if(r&&(Nt.assert(!t.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(n,t.getStart(n),gA.createIdentifier(r.name),{suffix:", "})),i.length){let r;if("boolean"===typeof o.organizeImportsIgnoreCase)r=o.organizeImportsIgnoreCase;else if(l){const e=ise.detectImportSpecifierSorting(l,o);3!==e&&(r=2===e)}void 0===r&&(r=2===ise.detectSorting(n,o));const a=ise.getOrganizeImportsComparer(o,r),s=Re(i.map((e=>gA.createImportSpecifier((!t.isTypeOnly||c)&&J3(e),void 0,gA.createIdentifier(e.name)))),((e,n)=>ise.compareImportOrExportSpecifiers(e,n,a))),u=(null==l?void 0:l.length)&&ise.detectImportSpecifierSorting(l,o);if(!u||r&&1===u){if(null==l?void 0:l.length)for(const t of s)e.insertNodeInListAfter(n,Ge(l),t,l);else if(s.length){const r=gA.createNamedImports(s);t.namedBindings?e.replaceNode(n,t.namedBindings,r):e.insertNodeAfter(n,Nt.checkDefined(t.name,"Import clause must have either named imports or a default import"),r)}}else for(const i of s){const r=d&&!i.isTypeOnly?0:ise.getImportSpecifierInsertionIndex(l,i,a);e.insertImportSpecifierAtIndex(n,i,t.namedBindings,r)}}if(c&&(e.delete(n,KY(t,n)),d&&l))for(const _ of l)e.insertModifierBefore(n,154,_);function u(t,r,i){const a=gA.createBindingElement(void 0,i,r);t.elements.length?e.insertNodeInListAfter(n,Ge(t.elements),a):e.replaceNode(n,t,gA.createObjectBindingPattern([a]))}}function W3(e,n,{namespacePrefix:t,usagePosition:r}){e.insertText(n,r,t+".")}function z3(e,n,{moduleSpecifier:t,usagePosition:r},i){e.insertText(n,r,q3(t,i))}function q3(e,n){const t=OY(n);return`import(${t}${e}${t}).`}function J3({addAsTypeOnly:e}){return 2===e}function X3(e,n,t,r,i,a){const o=RY(e,n);let s;if(void 0!==t||(null==r?void 0:r.length)){const i=(!t||J3(t))&&N(r,J3)||a.verbatimModuleSyntax&&4!==(null==t?void 0:t.addAsTypeOnly)&&!ce(r,(e=>4===e.addAsTypeOnly));s=xe(s,wY(t&&gA.createIdentifier(t.name),null==r?void 0:r.map((({addAsTypeOnly:e,name:n})=>gA.createImportSpecifier(!i&&2===e,void 0,gA.createIdentifier(n)))),e,n,i))}if(i){s=xe(s,3===i.importKind?gA.createImportEqualsDeclaration(void 0,J3(i),gA.createIdentifier(i.name),gA.createExternalModuleReference(o)):gA.createImportDeclaration(void 0,gA.createImportClause(J3(i),void 0,gA.createNamespaceImport(gA.createIdentifier(i.name))),o,void 0))}return Nt.checkDefined(s)}function Y3(e,n,t,r,i){const a=RY(e,n);let o;if(t||(null==r?void 0:r.length)){const e=(null==r?void 0:r.map((({name:e})=>gA.createBindingElement(void 0,void 0,e))))||[];t&&e.unshift(gA.createBindingElement(void 0,"default",t.name));o=xe(o,$3(gA.createObjectBindingPattern(e),a))}if(i){o=xe(o,$3(i.name,a))}return Nt.checkDefined(o)}function $3(e,n){return gA.createVariableStatement(void 0,gA.createVariableDeclarationList([gA.createVariableDeclaration("string"===typeof e?gA.createIdentifier(e):e,void 0,void 0,gA.createCallExpression(gA.createIdentifier("require"),void 0,[n]))],2))}function Q3({declarations:e},n){return ce(e,(e=>!!(yJ(e)&n)))}function Z3(e,n,t){return e5(qx(fv(e.name)),n,t)}function e5(e,n,t){const r=fo(nt(e,"/index"));let i="",a=!0;const o=r.charCodeAt(0);zs(o,n)?(i+=String.fromCharCode(o),t&&(i=i.toUpperCase())):a=!1;for(let s=1;s<r.length;s++){const e=r.charCodeAt(s),t=qs(e,n);if(t){let n=String.fromCharCode(e);a||(n=n.toUpperCase()),i+=n}a=t}return Sy(i)?`_${i}`:i||"_"}var n5,t5,r5=E({"src/services/codefixes/importFixes.ts"(){Bfe(),ore(),g3="import",y3="fixMissingImport",O4({errorCodes:v3=[Wo.Cannot_find_name_0.code,Wo.Cannot_find_name_0_Did_you_mean_1.code,Wo.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Wo.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Wo.Cannot_find_namespace_0.code,Wo._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,Wo._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,Wo.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,Wo._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code],getCodeActions(e){const{errorCode:n,preferences:t,sourceFile:r,span:i,program:a}=e,o=M3(e,n,i.start,!0);if(o)return o.map((({fix:n,symbolName:i,errorIdentifierText:o})=>j3(e,r,i,n,i!==o,a.getCompilerOptions(),t)))},fixIds:[y3],getAllCodeActions:e=>{const{sourceFile:n,program:t,preferences:r,host:i,cancellationToken:a}=e,o=T3(n,t,!0,r,i,a);return V4(e,v3,(n=>o.addImportFromDiagnostic(n,e))),G4(R_e.ChangeTracker.with(e,o.writeFixes))}})}});function i5(e,n,t){const r=D(e.getSemanticDiagnostics(n),(e=>e.start===t.start&&e.length===t.length));if(void 0===r||void 0===r.relatedInformation)return;const i=D(r.relatedInformation,(e=>e.code===Wo.This_type_parameter_might_need_an_extends_0_constraint.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;let a=Ene(i.file,yc(i.start,i.length));if(void 0!==a&&(IC(a)&&zC(a.parent)&&(a=a.parent),zC(a))){if(Ak(a.parent))return;const r=SX(n,t.start),o=function(e,n){if(zd(n.parent))return e.getTypeArgumentConstraint(n.parent);const t=mu(n)?e.getContextualType(n):void 0;return t||e.getTypeAtLocation(n)}(e.getTypeChecker(),r)||function(e){const[n,t]=TH(e,"\n",0).match(/`extends (.*)`/)||[];return t}(i.messageText);return{constraint:o,declaration:a,token:r}}}function a5(e,n,t,r,i,a){const{declaration:o,constraint:s}=a,c=n.getTypeChecker();if(vn(s))e.insertText(i,o.name.end,` extends ${s}`);else{const a=HT(n.getCompilerOptions()),l=tne({program:n,host:r}),d=E3(i,n,t,r),u=sne(c,d,s,void 0,a,void 0,l);u&&(e.replaceNode(i,o,gA.updateTypeParameterDeclaration(o,void 0,o.name,u,o.default)),d.writeFixes(e))}}var o5,s5,c5,l5,d5,u5=E({"src/services/codefixes/fixAddMissingConstraint.ts"(){Bfe(),ore(),n5="addMissingConstraint",O4({errorCodes:t5=[Wo.Type_0_is_not_comparable_to_type_1.code,Wo.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,Wo.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,Wo.Type_0_is_not_assignable_to_type_1.code,Wo.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,Wo.Property_0_is_incompatible_with_index_signature.code,Wo.Property_0_in_type_1_is_not_assignable_to_type_2.code,Wo.Type_0_does_not_satisfy_the_constraint_1.code],getCodeActions(e){const{sourceFile:n,span:t,program:r,preferences:i,host:a}=e,o=i5(r,n,t);if(void 0===o)return;const s=R_e.ChangeTracker.with(e,(e=>a5(e,r,i,a,n,o)));return[R4(n5,s,Wo.Add_extends_constraint,n5,Wo.Add_extends_constraint_to_all_type_parameters)]},fixIds:[n5],getAllCodeActions:e=>{const{program:n,preferences:t,host:r}=e,i=new Map;return G4(R_e.ChangeTracker.with(e,(a=>{V4(e,t5,(e=>{const o=i5(n,e.file,yc(e.start,e.length));if(o&&nT(i,ZG(o.declaration)))return a5(a,n,t,r,e.file,o)}))})))}})}});function _5(e,n,t,r){switch(t){case Wo.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case Wo.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case Wo.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case Wo.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case Wo.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(e,n,t){const r=f5(n,t);if(Ch(n))return void e.addJSDocTags(n,r,[gA.createJSDocOverrideTag(gA.createIdentifier("override"))]);const a=r.modifiers||i,o=D(a,FC),s=D(a,GC),c=D(a,(e=>eY(e.kind))),l=O(a,JC),d=s?s.end:o?o.end:c?c.end:l?Ns(n.text,l.end):r.getStart(n),u=c||o||s?{prefix:" "}:{suffix:" "};e.insertModifierAt(n,d,161,u)}(e,n.sourceFile,r);case Wo.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case Wo.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case Wo.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case Wo.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(e,n,t){const r=f5(n,t);if(Ch(n))return void e.filterJSDocTags(n,r,vt(rR));const i=D(r.modifiers,BC);Nt.assertIsDefined(i),e.deleteModifier(n,i)}(e,n.sourceFile,r);default:Nt.fail("Unexpected error code: "+t)}}function p5(e){switch(e.kind){case 173:case 169:case 171:case 174:case 175:return!0;case 166:return Ac(e,e.parent);default:return!1}}function f5(e,n){const t=Mc(SX(e,n),(e=>Fd(e)?"quit":p5(e)));return Nt.assert(t&&p5(t)),t}var m5,h5,g5=E({"src/services/codefixes/fixOverrideModifier.ts"(){Bfe(),ore(),o5="fixOverrideModifier",s5="fixAddOverrideModifier",c5="fixRemoveOverrideModifier",l5=[Wo.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,Wo.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,Wo.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,Wo.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,Wo.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,Wo.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,Wo.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,Wo.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,Wo.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],d5={[Wo.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Wo.Add_override_modifier,fixId:s5,fixAllDescriptions:Wo.Add_all_missing_override_modifiers},[Wo.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Wo.Add_override_modifier,fixId:s5,fixAllDescriptions:Wo.Add_all_missing_override_modifiers},[Wo.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:Wo.Remove_override_modifier,fixId:c5,fixAllDescriptions:Wo.Remove_all_unnecessary_override_modifiers},[Wo.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:Wo.Remove_override_modifier,fixId:c5,fixAllDescriptions:Wo.Remove_override_modifier},[Wo.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:Wo.Add_override_modifier,fixId:s5,fixAllDescriptions:Wo.Add_all_missing_override_modifiers},[Wo.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Wo.Add_override_modifier,fixId:s5,fixAllDescriptions:Wo.Add_all_missing_override_modifiers},[Wo.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:Wo.Add_override_modifier,fixId:s5,fixAllDescriptions:Wo.Remove_all_unnecessary_override_modifiers},[Wo.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:Wo.Remove_override_modifier,fixId:c5,fixAllDescriptions:Wo.Remove_all_unnecessary_override_modifiers},[Wo.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:Wo.Remove_override_modifier,fixId:c5,fixAllDescriptions:Wo.Remove_all_unnecessary_override_modifiers}},O4({errorCodes:l5,getCodeActions:function(e){const{errorCode:n,span:t}=e,r=d5[n];if(!r)return i;const{descriptions:a,fixId:o,fixAllDescriptions:s}=r,c=R_e.ChangeTracker.with(e,(r=>_5(r,e,n,t.start)));return[N4(o5,c,a,o,s)]},fixIds:[o5,s5,c5],getAllCodeActions:e=>U4(e,l5,((n,t)=>{const{code:r,start:i}=t,a=d5[r];a&&a.fixId===e.fixId&&_5(n,e,r,i)}))})}});function y5(e,n,t,r){const i=DY(n,r),a=gA.createStringLiteral(t.name.text,0===i);e.replaceNode(n,t,Bl(t)?gA.createElementAccessChain(t.expression,t.questionDotToken,a):gA.createElementAccessExpression(t.expression,a))}function v5(e,n){return Tn(SX(e,n).parent,Mk)}var b5,E5,T5=E({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){Bfe(),ore(),m5="fixNoPropertyAccessFromIndexSignature",O4({errorCodes:h5=[Wo.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],fixIds:[m5],getCodeActions(e){const{sourceFile:n,span:t,preferences:r}=e,i=v5(n,t.start),a=R_e.ChangeTracker.with(e,(n=>y5(n,e.sourceFile,i,r)));return[R4(m5,a,[Wo.Use_element_access_for_0,i.name.text],m5,Wo.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>U4(e,h5,((n,t)=>y5(n,t.file,v5(t.file,t.start),e.preferences)))})}});function x5(e,n,t,r){const i=SX(n,t);if(!JJ(i))return;const a=Qm(i,!1,!1);if((OI(a)||jk(a))&&!Iw(Qm(a,!1,!1))){const t=Nt.checkDefined(dX(a,98,n)),{name:i}=a,o=Nt.checkDefined(a.body);if(jk(a)){if(i&&Bae.Core.isSymbolReferencedInFile(i,r,n,o))return;return e.delete(n,t),i&&e.delete(n,i),e.insertText(n,o.pos," =>"),[Wo.Convert_function_expression_0_to_arrow_function,i?i.text:mJ]}return e.replaceNode(n,t,gA.createToken(85)),e.insertText(n,i.end," = "),e.insertText(n,o.pos," =>"),[Wo.Convert_function_declaration_0_to_arrow_function,i.text]}}var S5,A5,L5=E({"src/services/codefixes/fixImplicitThis.ts"(){Bfe(),ore(),b5="fixImplicitThis",O4({errorCodes:E5=[Wo.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],getCodeActions:function(e){const{sourceFile:n,program:t,span:r}=e;let a;const o=R_e.ChangeTracker.with(e,(e=>{a=x5(e,n,r.start,t.getTypeChecker())}));return a?[R4(b5,o,a,b5,Wo.Fix_all_implicit_this_errors)]:i},fixIds:[b5],getAllCodeActions:e=>U4(e,E5,((n,t)=>{x5(n,t.file,t.start,e.program.getTypeChecker())}))})}});function C5(e,n,t){var r;const i=SX(e,n);if(IC(i)){const n=Mc(i,KI);if(void 0===n)return;const a=_C(n.moduleSpecifier)?n.moduleSpecifier.text:void 0;if(void 0===a)return;const o=Tp(e,a,void 0);if(void 0===o)return;const s=t.getSourceFile(o.resolvedFileName);if(void 0===s||jQ(t,s))return;const c=null==(r=En(s.symbol.valueDeclaration,Du))?void 0:r.locals;if(void 0===c)return;const l=c.get(i.escapedText);if(void 0===l)return;const d=function(e){if(void 0===e.valueDeclaration)return De(e.declarations);const n=e.valueDeclaration,t=NI(n)?En(n.parent.parent,fI):void 0;return t&&1===S(t.declarationList.declarations)?t:n}(l);if(void 0===d)return;return{exportName:{node:i,isTypeOnly:zS(d)},node:d,moduleSourceFile:s,moduleSpecifier:a}}}function k5(e,n,t,r,i){S(r)&&(i?w5(e,n,t,i,r):R5(e,n,t,r))}function I5(e,n){return O(e.statements,(e=>ew(e)&&(n&&e.isTypeOnly||!e.isTypeOnly)))}function w5(e,n,t,r,i){const a=r.exportClause&&nw(r.exportClause)?r.exportClause.elements:gA.createNodeArray([]),o=!r.isTypeOnly&&!(!XT(n.getCompilerOptions())&&!D(a,(e=>e.isTypeOnly)));e.replaceNode(t,r,gA.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,gA.createNamedExports(gA.createNodeArray([...a,...N5(i,o)],a.hasTrailingComma)),r.moduleSpecifier,r.assertClause))}function R5(e,n,t,r){e.insertNodeAtEndOfScope(t,t,gA.createExportDeclaration(void 0,!1,gA.createNamedExports(N5(r,XT(n.getCompilerOptions()))),void 0,void 0))}function N5(e,n){return gA.createNodeArray(W(e,(e=>gA.createExportSpecifier(n&&e.isTypeOnly,void 0,e.node))))}var D5,O5=E({"src/services/codefixes/fixImportNonExportedMember.ts"(){Bfe(),ore(),S5="fixImportNonExportedMember",O4({errorCodes:A5=[Wo.Module_0_declares_1_locally_but_it_is_not_exported.code],fixIds:[S5],getCodeActions(e){const{sourceFile:n,span:t,program:r}=e,i=C5(n,t.start,r);if(void 0===i)return;const a=R_e.ChangeTracker.with(e,(e=>function(e,n,{exportName:t,node:r,moduleSourceFile:i}){const a=I5(i,t.isTypeOnly);a?w5(e,n,i,a,[t]):qS(r)?e.insertExportModifier(i,r):R5(e,n,i,[t])}(e,r,i)));return[R4(S5,a,[Wo.Export_0_from_module_1,i.exportName.node.text,i.moduleSpecifier],S5,Wo.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:n}=e;return G4(R_e.ChangeTracker.with(e,(t=>{const r=new Map;V4(e,A5,(e=>{const i=C5(e.file,e.start,n);if(void 0===i)return;const{exportName:a,node:o,moduleSourceFile:s}=i;if(void 0===I5(s,a.isTypeOnly)&&qS(o))t.insertExportModifier(s,o);else{const e=r.get(s)||{typeOnlyExports:[],exports:[]};a.isTypeOnly?e.typeOnlyExports.push(a):e.exports.push(a),r.set(s,e)}})),r.forEach(((e,r)=>{const i=I5(r,!0);i&&i.isTypeOnly?(k5(t,n,r,e.typeOnlyExports,i),k5(t,n,r,e.exports,I5(r,!1))):k5(t,n,r,[...e.exports,...e.typeOnlyExports],i)}))})))}})}});var M5,P5,F5=E({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){Bfe(),ore(),D5="fixIncorrectNamedTupleSyntax",O4({errorCodes:[Wo.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,Wo.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){const{sourceFile:n,span:t}=e,r=function(e,n){return Mc(SX(e,n),(e=>199===e.kind))}(n,t.start),i=R_e.ChangeTracker.with(e,(e=>function(e,n,t){if(!t)return;let r=t.type,i=!1,a=!1;for(;187===r.kind||188===r.kind||193===r.kind;)187===r.kind?i=!0:188===r.kind&&(a=!0),r=r.type;const o=gA.updateNamedTupleMember(t,t.dotDotDotToken||(a?gA.createToken(25):void 0),t.name,t.questionToken||(i?gA.createToken(57):void 0),r);o!==t&&e.replaceNode(n,t,o)}(e,n,r)));return[R4(D5,i,Wo.Move_labeled_tuple_element_modifiers_to_labels,D5,Wo.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[D5]})}});function G5(e,n,t,r){const i=SX(e,n),a=i.parent;if((r===Wo.No_overload_matches_this_call.code||r===Wo.Type_0_is_not_assignable_to_type_1.code)&&!hw(a))return;const o=t.program.getTypeChecker();let s;if(Mk(a)&&a.name===i){Nt.assert(Fl(i),"Expected an identifier for spelling (property access)");let e=o.getTypeAtLocation(a.expression);32&a.flags&&(e=o.getNonNullableType(e)),s=o.getSuggestedSymbolForNonexistentProperty(i,e)}else if(Yk(a)&&101===a.operatorToken.kind&&a.left===i&&wC(i)){const e=o.getTypeAtLocation(a.right);s=o.getSuggestedSymbolForNonexistentProperty(i,e)}else if(KC(a)&&a.right===i){const e=o.getSymbolAtLocation(a.left);e&&1536&e.flags&&(s=o.getSuggestedSymbolForNonexistentModule(a.right,e))}else if(QI(a)&&a.name===i){Nt.assertNode(i,IC,"Expected an identifier for spelling (import)");const n=function(e,n,t){if(!t||!o_(t.moduleSpecifier))return;const r=Tp(e,t.moduleSpecifier.text,LH(e,t.moduleSpecifier));return r?n.program.getSourceFile(r.resolvedFileName):void 0}(e,t,Mc(i,KI));n&&n.symbol&&(s=o.getSuggestedSymbolForNonexistentModule(i,n.symbol))}else if(hw(a)&&a.name===i){Nt.assertNode(i,IC,"Expected an identifier for JSX attribute");const e=Mc(i,zu),n=o.getContextualTypeForArgumentAtIndex(e,0);s=o.getSuggestedSymbolForNonexistentJSXAttribute(i,n)}else if(fb(a,16384)&&Pd(a)&&a.name===i){const e=Mc(i,Fd),n=e?py(e):void 0,t=n?o.getTypeAtLocation(n):void 0;t&&(s=o.getSuggestedSymbolForNonexistentClassMember(sf(i),t))}else{const e=vJ(i),n=sf(i);Nt.assert(void 0!==n,"name should be defined"),s=o.getSuggestedSymbolForNonexistentSymbol(i,n,function(e){let n=0;4&e&&(n|=1920);2&e&&(n|=788968);1&e&&(n|=111551);return n}(e))}return void 0===s?void 0:{node:i,suggestedSymbol:s}}function B5(e,n,t,r,i){const a=jc(r);if(!Js(a,i)&&Mk(t.parent)){const i=r.valueDeclaration;i&&qc(i)&&wC(i.name)?e.replaceNode(n,t,gA.createIdentifier(a)):e.replaceNode(n,t.parent,gA.createElementAccessExpression(t.parent.expression,gA.createStringLiteral(a)))}else e.replaceNode(n,t,gA.createIdentifier(a))}var U5,V5,j5,H5,K5,W5=E({"src/services/codefixes/fixSpelling.ts"(){Bfe(),ore(),M5="fixSpelling",O4({errorCodes:P5=[Wo.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,Wo.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,Wo.Cannot_find_name_0_Did_you_mean_1.code,Wo.Could_not_find_name_0_Did_you_mean_1.code,Wo.Cannot_find_namespace_0_Did_you_mean_1.code,Wo.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Wo.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Wo._0_has_no_exported_member_named_1_Did_you_mean_2.code,Wo.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,Wo.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,Wo.No_overload_matches_this_call.code,Wo.Type_0_is_not_assignable_to_type_1.code],getCodeActions(e){const{sourceFile:n,errorCode:t}=e,r=G5(n,e.span.start,e,t);if(!r)return;const{node:i,suggestedSymbol:a}=r,o=HT(e.host.getCompilationSettings());return[R4("spelling",R_e.ChangeTracker.with(e,(e=>B5(e,n,i,a,o))),[Wo.Change_spelling_to_0,jc(a)],M5,Wo.Fix_all_detected_spelling_errors)]},fixIds:[M5],getAllCodeActions:e=>U4(e,P5,((n,t)=>{const r=G5(t.file,t.start,e,t.code),i=HT(e.host.getCompilationSettings());r&&B5(n,e.sourceFile,r.node,r.suggestedSymbol,i)}))})}});function z5(e,n,t){const r=e.createSymbol(4,n.escapedText);r.links.type=e.getTypeAtLocation(t);const i=dp([r]);return e.createAnonymousType(void 0,i,[],[],[])}function q5(e,n,t,r){if(!n.body||!pI(n.body)||1!==S(n.body.statements))return;const i=Me(n.body.statements);if(hI(i)&&J5(e,n,e.getTypeAtLocation(i.expression),t,r))return{declaration:n,kind:0,expression:i.expression,statement:i,commentSource:i.expression};if(kI(i)&&hI(i.statement)){const a=gA.createObjectLiteralExpression([gA.createPropertyAssignment(i.label,i.statement.expression)]);if(J5(e,n,z5(e,i.label,i.statement.expression),t,r))return Hk(n)?{declaration:n,kind:1,expression:a,statement:i,commentSource:i.statement.expression}:{declaration:n,kind:0,expression:a,statement:i,commentSource:i.statement.expression}}else if(pI(i)&&1===S(i.statements)){const a=Me(i.statements);if(kI(a)&&hI(a.statement)){const o=gA.createObjectLiteralExpression([gA.createPropertyAssignment(a.label,a.statement.expression)]);if(J5(e,n,z5(e,a.label,a.statement.expression),t,r))return{declaration:n,kind:0,expression:o,statement:i,commentSource:a}}}}function J5(e,n,t,r,i){if(i){const r=e.getSignatureFromDeclaration(n);if(r){fb(n,512)&&(t=e.createPromiseType(t));const i=e.createSignature(n,r.typeParameters,r.thisParameter,r.parameters,t,void 0,r.minArgumentCount,r.flags);t=e.createAnonymousType(void 0,dp(),[i],[],[])}else t=e.getAnyType()}return e.isTypeAssignableTo(t,r)}function X5(e,n,t,r){const i=SX(n,t);if(!i.parent)return;const a=Mc(i.parent,Rd);switch(r){case Wo.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!a||!a.body||!a.type||!YJ(a.type,i))return;return q5(e,a,e.getTypeFromTypeNode(a.type),!1);case Wo.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!a||!Fk(a.parent)||!a.body)return;const n=a.parent.arguments.indexOf(a),t=e.getContextualTypeForArgumentAtIndex(a.parent,n);if(!t)return;return q5(e,a,t,!0);case Wo.Type_0_is_not_assignable_to_type_1.code:if(!ry(i)||!Im(i.parent)&&!hw(i.parent))return;const r=function(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:return e.initializer;case 288:return e.initializer&&(vw(e.initializer)?e.initializer.expression:void 0);case 300:case 168:case 302:case 351:case 344:return}}(i.parent);if(!r||!Rd(r)||!r.body)return;return q5(e,r,e.getTypeAtLocation(i.parent),!0)}}function Y5(e,n,t,r){O$(t);const i=oQ(n);e.replaceNode(n,r,gA.createReturnStatement(t),{leadingTriviaOption:R_e.LeadingTriviaOption.Exclude,trailingTriviaOption:R_e.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function $5(e,n,t,r,i,a){const o=a||q$(r)?gA.createParenthesizedExpression(r):r;O$(i),F$(i,o),e.replaceNode(n,t.body,o)}function Q5(e,n,t,r){e.replaceNode(n,t.body,gA.createParenthesizedExpression(r))}function Z5(e,n,t){const r=R_e.ChangeTracker.with(e,(r=>Y5(r,e.sourceFile,n,t)));return R4(U5,r,Wo.Add_a_return_statement,V5,Wo.Add_all_missing_return_statement)}function e7(e,n,t){const r=R_e.ChangeTracker.with(e,(r=>Q5(r,e.sourceFile,n,t)));return R4(U5,r,Wo.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,H5,Wo.Wrap_all_object_literal_with_parentheses)}var n7,t7,r7,i7,a7,o7=E({"src/services/codefixes/returnValueCorrect.ts"(){Bfe(),ore(),U5="returnValueCorrect",V5="fixAddReturnStatement",j5="fixRemoveBracesFromArrowFunctionBody",H5="fixWrapTheBlockWithParen",O4({errorCodes:K5=[Wo.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,Wo.Type_0_is_not_assignable_to_type_1.code,Wo.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],fixIds:[V5,j5,H5],getCodeActions:function(e){const{program:n,sourceFile:t,span:{start:r},errorCode:i}=e,a=X5(n.getTypeChecker(),t,r,i);if(a)return 0===a.kind?Te([Z5(e,a.expression,a.statement)],Hk(a.declaration)?function(e,n,t,r){const i=R_e.ChangeTracker.with(e,(i=>$5(i,e.sourceFile,n,t,r,!1)));return R4(U5,i,Wo.Remove_braces_from_arrow_function_body,j5,Wo.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(e,a.declaration,a.expression,a.commentSource):void 0):[e7(e,a.declaration,a.expression)]},getAllCodeActions:e=>U4(e,K5,((n,t)=>{const r=X5(e.program.getTypeChecker(),t.file,t.start,t.code);if(r)switch(e.fixId){case V5:Y5(n,t.file,r.expression,r.statement);break;case j5:if(!Hk(r.declaration))return;$5(n,t.file,r.declaration,r.expression,r.commentSource,!1);break;case H5:if(!Hk(r.declaration))return;Q5(n,t.file,r.declaration,r.expression);break;default:Nt.fail(JSON.stringify(e.fixId))}}))})}});function s7(e,n,t,r,a){var o;const s=SX(e,n),c=s.parent;if(t===Wo.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(18!==s.kind||!Ok(c)||!Fk(c.parent))return;const e=M(c.parent.arguments,(e=>e===c));if(e<0)return;const n=r.getResolvedSignature(c.parent);if(!(n&&n.declaration&&n.parameters[e]))return;const t=n.parameters[e].valueDeclaration;if(!(t&&qC(t)&&IC(t.name)))return;const i=Qe(r.getUnmatchedProperties(r.getTypeAtLocation(c),r.getParameterType(n,e),!1,!1));if(!S(i))return;return{kind:3,token:t.name,properties:i,parentDeclaration:c}}if(!Fl(s))return;if(IC(s)&&n_(c)&&c.initializer&&Ok(c.initializer)){const e=Qe(r.getUnmatchedProperties(r.getTypeAtLocation(c.initializer),r.getTypeAtLocation(s),!1,!1));if(!S(e))return;return{kind:3,token:s,properties:e,parentDeclaration:c.initializer}}if(IC(s)&&zu(s.parent)){const e=function(e,n,t){const r=e.getContextualType(t.attributes);if(void 0===r)return i;const a=r.getProperties();if(!S(a))return i;const o=new Set;for(const i of t.attributes.properties)if(hw(i)&&o.add(i.name.escapedText),yw(i)){const n=e.getTypeAtLocation(i.expression);for(const e of n.getProperties())o.add(e.escapedName)}return j(a,(e=>Js(e.name,n,1)&&!(16777216&e.flags||48&FE(e)||o.has(e.escapedName))))}(r,HT(a.getCompilerOptions()),s.parent);if(!S(e))return;return{kind:4,token:s,attributes:e,parentDeclaration:s.parent}}if(IC(s)){const n=null==(o=r.getContextualType(s))?void 0:o.getNonNullableType();if(n&&16&YE(n)){const t=De(r.getSignaturesOfType(n,0));if(void 0===t)return;return{kind:5,token:s,signature:t,sourceFile:e,parentDeclaration:E7(s)}}if(Fk(c)&&c.expression===s)return{kind:2,token:s,call:c,sourceFile:e,modifierFlags:0,parentDeclaration:E7(s)}}if(!Mk(c))return;const l=EY(r.getTypeAtLocation(c.expression)),d=l.symbol;if(!d||!d.declarations)return;if(IC(s)&&Fk(c.parent)){const n=D(d.declarations,BI),t=null==n?void 0:n.getSourceFile();if(n&&t&&!jQ(a,t))return{kind:2,token:s,call:c.parent,sourceFile:e,modifierFlags:1,parentDeclaration:n};const r=D(d.declarations,Iw);if(e.commonJsModuleIndicator)return;if(r&&!jQ(a,r))return{kind:2,token:s,call:c.parent,sourceFile:r,modifierFlags:1,parentDeclaration:r}}const u=D(d.declarations,Fd);if(!u&&wC(s))return;const _=u||D(d.declarations,(e=>PI(e)||uk(e)));if(_&&!jQ(a,_.getSourceFile())){const e=!uk(_)&&(l.target||l)!==r.getDeclaredTypeOfSymbol(d);if(e&&(wC(s)||PI(_)))return;const n=_.getSourceFile(),t=uk(_)?0:(e?32:0)|(DQ(s.text)?8:0),i=Ch(n);return{kind:0,token:s,call:En(c.parent,Fk),modifierFlags:t,parentDeclaration:_,declSourceFile:n,isJSFile:i}}const p=D(d.declarations,GI);return!p||1056&l.flags||wC(s)||jQ(a,p.getSourceFile())?void 0:{kind:1,token:s,parentDeclaration:p}}function c7(e,n){return n.isJSFile?Et(function(e,{parentDeclaration:n,declSourceFile:t,modifierFlags:r,token:i}){if(PI(n)||uk(n))return;const a=R_e.ChangeTracker.with(e,(e=>l7(e,t,n,i,!!(32&r))));if(0===a.length)return;const o=32&r?Wo.Initialize_static_property_0:wC(i)?Wo.Declare_a_private_field_named_0:Wo.Initialize_property_0_in_the_constructor;return R4(n7,a,[o,i.text],n7,Wo.Add_all_missing_members)}(e,n)):function(e,{parentDeclaration:n,declSourceFile:t,modifierFlags:r,token:i}){const a=i.text,o=32&r,s=u7(e.program.getTypeChecker(),n,i),c=r=>R_e.ChangeTracker.with(e,(e=>_7(e,t,n,a,s,r))),l=[R4(n7,c(32&r),[o?Wo.Declare_static_property_0:Wo.Declare_property_0,a],n7,Wo.Add_all_missing_members)];if(o||wC(i))return l;8&r&&l.unshift(w4(n7,c(8),[Wo.Declare_private_property_0,a]));return l.push(function(e,n,t,r,i){const a=gA.createKeywordTypeNode(152),o=gA.createParameterDeclaration(void 0,void 0,"x",void 0,a,void 0),s=gA.createIndexSignature(void 0,[o],i),c=R_e.ChangeTracker.with(e,(e=>e.insertMemberAtStart(n,t,s)));return w4(n7,c,[Wo.Add_index_signature_for_property_0,r])}(e,t,n,i.text,s)),l}(e,n)}function l7(e,n,t,r,i){const a=r.text;if(i){if(228===t.kind)return;const r=t.name.getText(),i=d7(gA.createIdentifier(r),a);e.insertNodeAfter(n,t,i)}else if(wC(r)){const r=gA.createPropertyDeclaration(void 0,a,void 0,void 0,void 0),i=p7(t);i?e.insertNodeAfter(n,i,r):e.insertMemberAtStart(n,t,r)}else{const r=Hv(t);if(!r)return;const i=d7(gA.createThis(),a);e.insertNodeAtConstructorEnd(n,r,i)}}function d7(e,n){return gA.createExpressionStatement(gA.createAssignment(gA.createPropertyAccessExpression(e,n),b7()))}function u7(e,n,t){let r;if(223===t.parent.parent.kind){const i=t.parent.parent,a=t.parent===i.left?i.right:i.left,o=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(a)));r=e.typeToTypeNode(o,n,1)}else{const n=e.getContextualType(t.parent);r=n?e.typeToTypeNode(n,void 0,1):void 0}return r||gA.createKeywordTypeNode(131)}function _7(e,n,t,r,i,a){const o=a?gA.createNodeArray(gA.createModifiersFromModifierFlags(a)):void 0,s=Fd(t)?gA.createPropertyDeclaration(o,r,void 0,i,void 0):gA.createPropertySignature(void 0,r,void 0,i),c=p7(t);c?e.insertNodeAfter(n,c,s):e.insertMemberAtStart(n,t,s)}function p7(e){let n;for(const t of e.members){if(!YC(t))break;n=t}return n}function f7(e,n,t,r,i,a,o){const s=E3(o,e.program,e.preferences,e.host),c=ane(Fd(a)?171:170,e,s,t,r,i,a),l=function(e,n){if(uk(e))return;const t=Mc(n,(e=>QC(e)||ek(e)));return t&&t.parent===e?t:void 0}(a,t);l?n.insertNodeAfter(o,l,c):n.insertMemberAtStart(o,a,c),s.writeFixes(n)}function m7(e,n,{token:t,parentDeclaration:r}){const i=ce(r.members,(e=>{const t=n.getTypeAtLocation(e);return!!(t&&402653316&t.flags)})),a=gA.createEnumMember(t,i?gA.createStringLiteral(t.text):void 0);e.replaceNode(r.getSourceFile(),r,gA.updateEnumDeclaration(r,r.modifiers,r.name,de(r.members,Et(a))),{leadingTriviaOption:R_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:R_e.TrailingTriviaOption.Exclude})}function h7(e,n,t){const r=DY(n.sourceFile,n.preferences),i=E3(n.sourceFile,n.program,n.preferences,n.host),a=2===t.kind?ane(259,n,i,t.call,Uc(t.token),t.modifierFlags,t.parentDeclaration):ine(259,n,r,t.signature,pne(Wo.Function_not_implemented.message,r),t.token,void 0,void 0,void 0,i);void 0===a&&Nt.fail("fixMissingFunctionDeclaration codefix got unexpected error."),AI(t.parentDeclaration)?e.insertNodeBefore(t.sourceFile,t.parentDeclaration,a,!0):e.insertNodeAtEndOfScope(t.sourceFile,t.parentDeclaration,a),i.writeFixes(e)}function g7(e,n,t){const r=E3(n.sourceFile,n.program,n.preferences,n.host),i=DY(n.sourceFile,n.preferences),a=n.program.getTypeChecker(),o=t.parentDeclaration.attributes,s=ce(o.properties,yw),c=W(t.attributes,(e=>{const o=v7(n,a,r,i,a.getTypeOfSymbol(e),t.parentDeclaration),s=gA.createIdentifier(e.name),c=gA.createJsxAttribute(s,gA.createJsxExpression(void 0,o));return CS(s,c),c})),l=gA.createJsxAttributes(s?[...c,...o.properties]:[...o.properties,...c]),d={prefix:o.pos===o.end?" ":void 0};e.replaceNode(n.sourceFile,o,l,d),r.writeFixes(e)}function y7(e,n,t){const r=E3(n.sourceFile,n.program,n.preferences,n.host),i=DY(n.sourceFile,n.preferences),a=HT(n.program.getCompilerOptions()),o=n.program.getTypeChecker(),s=W(t.properties,(e=>{const s=v7(n,o,r,i,o.getTypeOfSymbol(e),t.parentDeclaration);return gA.createPropertyAssignment(function(e,n,t,r){if(up(e)){const n=r.symbolToNode(e,111551,void 0,1073741824);if(n&&WC(n))return n}return jS(e.name,n,0===t)}(e,a,i,o),s)})),c={leadingTriviaOption:R_e.LeadingTriviaOption.Exclude,trailingTriviaOption:R_e.TrailingTriviaOption.Exclude,indentation:t.indentation};e.replaceNode(n.sourceFile,t.parentDeclaration,gA.createObjectLiteralExpression([...t.parentDeclaration.properties,...s],!0),c),r.writeFixes(e)}function v7(e,n,t,r,a,o){if(3&a.flags)return b7();if(134217732&a.flags)return gA.createStringLiteral("",0===r);if(8&a.flags)return gA.createNumericLiteral(0);if(64&a.flags)return gA.createBigIntLiteral("0n");if(16&a.flags)return gA.createFalse();if(1056&a.flags){const e=a.symbol.exports?Oe(a.symbol.exports.values()):a.symbol,t=n.symbolToExpression(a.symbol.parent?a.symbol.parent:a.symbol,111551,void 0,void 0);return void 0===e||void 0===t?gA.createNumericLiteral(0):gA.createPropertyAccessExpression(t,n.symbolToString(e))}if(256&a.flags)return gA.createNumericLiteral(a.value);if(2048&a.flags)return gA.createBigIntLiteral(a.value);if(128&a.flags)return gA.createStringLiteral(a.value,0===r);if(512&a.flags)return a===n.getFalseType()||a===n.getFalseType(!0)?gA.createFalse():gA.createTrue();if(65536&a.flags)return gA.createNull();if(1048576&a.flags){const i=C(a.types,(i=>v7(e,n,t,r,i,o)));return null!=i?i:b7()}if(n.isArrayLikeType(a))return gA.createArrayLiteralExpression();if(function(e){return 524288&e.flags&&(128&YE(e)||e.symbol&&En(Be(e.symbol.declarations),uk))}(a)){const i=W(n.getPropertiesOfType(a),(i=>{const a=v7(e,n,t,r,n.getTypeOfSymbol(i),o);return gA.createPropertyAssignment(i.name,a)}));return gA.createObjectLiteralExpression(i,!0)}if(16&YE(a)){if(void 0===D(a.symbol.declarations||i,yt(ck,$C,QC)))return b7();const s=n.getSignaturesOfType(a,0);if(void 0===s)return b7();const c=ine(215,e,r,s[0],pne(Wo.Function_not_implemented.message,r),void 0,void 0,void 0,o,t);return null!=c?c:b7()}if(1&YE(a)){const e=XE(a.symbol);if(void 0===e||yb(e))return b7();const n=Hv(e);return n&&S(n.parameters)?b7():gA.createNewExpression(gA.createIdentifier(a.symbol.name),void 0,void 0)}return b7()}function b7(){return gA.createIdentifier("undefined")}function E7(e){if(Mc(e,vw)){const n=Mc(e.parent,AI);if(n)return n}return Dp(e)}var T7,x7,S7=E({"src/services/codefixes/fixAddMissingMember.ts"(){Bfe(),ore(),n7="fixMissingMember",t7="fixMissingProperties",r7="fixMissingAttributes",i7="fixMissingFunctionDeclaration",O4({errorCodes:a7=[Wo.Property_0_does_not_exist_on_type_1.code,Wo.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,Wo.Property_0_is_missing_in_type_1_but_required_in_type_2.code,Wo.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,Wo.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,Wo.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Wo.Cannot_find_name_0.code],getCodeActions(e){const n=e.program.getTypeChecker(),t=s7(e.sourceFile,e.span.start,e.errorCode,n,e.program);if(t){if(3===t.kind){const n=R_e.ChangeTracker.with(e,(n=>y7(n,e,t)));return[R4(t7,n,Wo.Add_missing_properties,t7,Wo.Add_all_missing_properties)]}if(4===t.kind){const n=R_e.ChangeTracker.with(e,(n=>g7(n,e,t)));return[R4(r7,n,Wo.Add_missing_attributes,r7,Wo.Add_all_missing_attributes)]}if(2===t.kind||5===t.kind){const n=R_e.ChangeTracker.with(e,(n=>h7(n,e,t)));return[R4(i7,n,[Wo.Add_missing_function_declaration_0,t.token.text],i7,Wo.Add_all_missing_function_declarations)]}if(1===t.kind){const n=R_e.ChangeTracker.with(e,(n=>m7(n,e.program.getTypeChecker(),t)));return[R4(n7,n,[Wo.Add_missing_enum_member_0,t.token.text],n7,Wo.Add_all_missing_members)]}return de(function(e,n){const{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:a,call:o}=n;if(void 0===o)return;if(wC(a))return;const s=a.text,c=n=>R_e.ChangeTracker.with(e,(i=>f7(e,i,o,a,n,t,r))),l=[R4(n7,c(32&i),[32&i?Wo.Declare_static_method_0:Wo.Declare_method_0,s],n7,Wo.Add_all_missing_members)];return 8&i&&l.unshift(w4(n7,c(8),[Wo.Declare_private_method_0,s])),l}(e,t),c7(e,t))}},fixIds:[n7,i7,t7,r7],getAllCodeActions:e=>{const{program:n,fixId:t}=e,r=n.getTypeChecker(),i=new Map,a=new Map;return G4(R_e.ChangeTracker.with(e,(n=>{V4(e,a7,(o=>{const s=s7(o.file,o.start,o.code,r,e.program);if(s&&nT(i,ZG(s.parentDeclaration)+"#"+s.token.text))if(t!==i7||2!==s.kind&&5!==s.kind){if(t===t7&&3===s.kind)y7(n,e,s);else if(t===r7&&4===s.kind)g7(n,e,s);else if(1===s.kind&&m7(n,r,s),0===s.kind){const{parentDeclaration:e,token:n}=s,t=re(a,e,(()=>[]));t.some((e=>e.token.text===n.text))||t.push(s)}}else h7(n,e,s)})),a.forEach(((t,i)=>{const o=uk(i)?void 0:wne(i,r);for(const s of t){if(null==o?void 0:o.some((e=>{const n=a.get(e);return!!n&&n.some((({token:e})=>e.text===s.token.text))})))continue;const{parentDeclaration:t,declSourceFile:i,modifierFlags:c,token:l,call:d,isJSFile:u}=s;if(d&&!wC(l))f7(e,n,d,l,32&c,t,i);else if(!u||PI(t)||uk(t)){const e=u7(r,t,l);_7(n,i,t,l.text,e,32&c)}else l7(n,i,t,l,!!(32&c))}}))})))}})}});function A7(e,n,t){const r=Tn(function(e,n){let t=SX(e,n.start);const r=oc(n);for(;t.end<r;)t=t.parent;return t}(n,t),Fk),i=gA.createNewExpression(r.expression,r.typeArguments,r.arguments);e.replaceNode(n,r,i)}var L7,C7,k7,I7=E({"src/services/codefixes/fixAddMissingNewOperator.ts"(){Bfe(),ore(),T7="addMissingNewOperator",O4({errorCodes:x7=[Wo.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],getCodeActions(e){const{sourceFile:n,span:t}=e,r=R_e.ChangeTracker.with(e,(e=>A7(e,n,t)));return[R4(T7,r,Wo.Add_missing_new_operator_to_call,T7,Wo.Add_missing_new_operator_to_all_calls)]},fixIds:[T7],getAllCodeActions:e=>U4(e,x7,((n,t)=>A7(n,e.sourceFile,t)))})}});function w7(e,n){return{type:"install package",file:e,packageName:n}}function R7(e,n){const t=En(SX(e,n),_C);if(!t)return;const r=t.text,{packageName:i}=xF(r);return rc(i)?void 0:i}function N7(e,n,t){var r;return t===C7?bq.nodeCoreModules.has(e)?"@types/node":void 0:(null==(r=n.isKnownTypesPackageName)?void 0:r.call(n,e))?MF(e):void 0}var D7,O7,M7=E({"src/services/codefixes/fixCannotFindModule.ts"(){Bfe(),ore(),L7="installTypesPackage",C7=Wo.Cannot_find_module_0_or_its_corresponding_type_declarations.code,O4({errorCodes:k7=[C7,Wo.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],getCodeActions:function(e){const{host:n,sourceFile:t,span:{start:r}}=e,i=R7(t,r);if(void 0===i)return;const a=N7(i,n,e.errorCode);return void 0===a?[]:[R4("fixCannotFindModule",[],[Wo.Install_0,a],L7,Wo.Install_all_missing_types_packages,w7(t.fileName,a))]},fixIds:[L7],getAllCodeActions:e=>U4(e,k7,((n,t,r)=>{const i=R7(t.file,t.start);if(void 0!==i)switch(e.fixId){case L7:{const n=N7(i,e.host,t.code);n&&r.push(w7(t.file.fileName,n));break}default:Nt.fail(`Bad fixId: ${e.fixId}`)}}))})}});function P7(e,n){return Tn(SX(e,n).parent,Fd)}function F7(e,n,t,r,i){const a=py(e),o=t.program.getTypeChecker(),s=o.getTypeAtLocation(a),c=o.getPropertiesOfType(s).filter(G7),l=E3(n,t.program,i,t.host);nne(e,c,n,t,i,l,(t=>r.insertMemberAtStart(n,e,t))),l.writeFixes(r)}function G7(e){const n=kb(Me(e.getDeclarations()));return!(8&n)&&!!(256&n)}var B7,U7,V7=E({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){Bfe(),ore(),O4({errorCodes:D7=[Wo.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,Wo.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],getCodeActions:function(e){const{sourceFile:n,span:t}=e,r=R_e.ChangeTracker.with(e,(r=>F7(P7(n,t.start),n,e,r,e.preferences)));return 0===r.length?void 0:[R4(O7,r,Wo.Implement_inherited_abstract_class,O7,Wo.Implement_all_inherited_abstract_classes)]},fixIds:[O7="fixClassDoesntImplementInheritedAbstractMember"],getAllCodeActions:function(e){const n=new Map;return U4(e,D7,((t,r)=>{const i=P7(r.file,r.start);nT(n,ZG(i))&&F7(i,e.sourceFile,e,t,e.preferences)}))}})}});function j7(e,n,t,r){e.insertNodeAtConstructorStart(n,t,r),e.delete(n,r)}function H7(e,n){const t=SX(e,n);if(108!==t.kind)return;const r=qm(t),i=K7(r.body);return i&&!i.expression.arguments.some((e=>Mk(e)&&e.expression===t))?{constructor:r,superCall:i}:void 0}function K7(e){return hI(e)&&_m(e.expression)?e:Id(e)?void 0:CD(e,K7)}var W7,z7,q7=E({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){Bfe(),ore(),B7="classSuperMustPrecedeThisAccess",O4({errorCodes:U7=[Wo.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions(e){const{sourceFile:n,span:t}=e,r=H7(n,t.start);if(!r)return;const{constructor:i,superCall:a}=r,o=R_e.ChangeTracker.with(e,(e=>j7(e,n,i,a)));return[R4(B7,o,Wo.Make_super_call_the_first_statement_in_the_constructor,B7,Wo.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[B7],getAllCodeActions(e){const{sourceFile:n}=e,t=new Map;return U4(e,U7,((e,r)=>{const i=H7(r.file,r.start);if(!i)return;const{constructor:a,superCall:o}=i;nT(t,ZG(a.parent))&&j7(e,n,a,o)}))}})}});function J7(e,n){const t=SX(e,n);return Nt.assert(ek(t.parent),"token should be at the constructor declaration"),t.parent}function X7(e,n,t){const r=gA.createExpressionStatement(gA.createCallExpression(gA.createSuper(),void 0,i));e.insertNodeAtConstructorStart(n,t,r)}var Y7,$7,Q7=E({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){Bfe(),ore(),W7="constructorForDerivedNeedSuperCall",O4({errorCodes:z7=[Wo.Constructors_for_derived_classes_must_contain_a_super_call.code],getCodeActions(e){const{sourceFile:n,span:t}=e,r=J7(n,t.start),i=R_e.ChangeTracker.with(e,(e=>X7(e,n,r)));return[R4(W7,i,Wo.Add_missing_super_call,W7,Wo.Add_all_missing_super_calls)]},fixIds:[W7],getAllCodeActions:e=>U4(e,z7,((n,t)=>X7(n,e.sourceFile,J7(t.file,t.start))))})}});function Z7(e,n){mne(e,n,"jsx",gA.createStringLiteral("react"))}var e9,n9,t9=E({"src/services/codefixes/fixEnableJsxFlag.ts"(){Bfe(),ore(),Y7="fixEnableJsxFlag",O4({errorCodes:$7=[Wo.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],getCodeActions:function(e){const{configFile:n}=e.program.getCompilerOptions();if(void 0===n)return;const t=R_e.ChangeTracker.with(e,(e=>Z7(e,n)));return[w4(Y7,t,Wo.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Y7],getAllCodeActions:e=>U4(e,$7,(n=>{const{configFile:t}=e.program.getCompilerOptions();void 0!==t&&Z7(n,t)}))})}});function r9(e,n,t){const r=D(e.getSemanticDiagnostics(n),(e=>e.start===t.start&&e.length===t.length));if(void 0===r||void 0===r.relatedInformation)return;const i=D(r.relatedInformation,(e=>e.code===Wo.Did_you_mean_0.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;const a=Ene(i.file,yc(i.start,i.length));return void 0!==a&&mu(a)&&Yk(a.parent)?{suggestion:a9(i.messageText),expression:a.parent,arg:a}:void 0}function i9(e,n,t,r){const i=gA.createCallExpression(gA.createPropertyAccessExpression(gA.createIdentifier("Number"),gA.createIdentifier("isNaN")),void 0,[t]),a=r.operatorToken.kind;e.replaceNode(n,r,37===a||35===a?gA.createPrefixUnaryExpression(53,i):i)}function a9(e){const[n,t]=TH(e,"\n",0).match(/\'(.*)\'/)||[];return t}var o9,s9,c9=E({"src/services/codefixes/fixNaNEquality.ts"(){Bfe(),ore(),e9="fixNaNEquality",O4({errorCodes:n9=[Wo.This_condition_will_always_return_0.code],getCodeActions(e){const{sourceFile:n,span:t,program:r}=e,i=r9(r,n,t);if(void 0===i)return;const{suggestion:a,expression:o,arg:s}=i,c=R_e.ChangeTracker.with(e,(e=>i9(e,n,s,o)));return[R4(e9,c,[Wo.Use_0,a],e9,Wo.Use_Number_isNaN_in_all_conditions)]},fixIds:[e9],getAllCodeActions:e=>U4(e,n9,((n,t)=>{const r=r9(e.program,t.file,yc(t.start,t.length));r&&i9(n,t.file,r.arg,r.expression)}))})}}),l9=E({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){Bfe(),ore(),O4({errorCodes:[Wo.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,Wo.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){const n=e.program.getCompilerOptions(),{configFile:t}=n;if(void 0===t)return;const r=[],i=KT(n);if(i>=5&&i<99){const n=R_e.ChangeTracker.with(e,(e=>{mne(e,t,"module",gA.createStringLiteral("esnext"))}));r.push(w4("fixModuleOption",n,[Wo.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const a=HT(n);if(a<4||a>99){const n=R_e.ChangeTracker.with(e,(e=>{if(!Km(t))return;const n=[["target",gA.createStringLiteral("es2017")]];1===i&&n.push(["module",gA.createStringLiteral("commonjs")]),fne(e,t,n)}));r.push(w4("fixTargetOption",n,[Wo.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return r.length?r:void 0}})}});function d9(e,n,t){e.replaceNode(n,t,gA.createPropertyAssignment(t.name,t.objectAssignmentInitializer))}function u9(e,n){return Tn(SX(e,n).parent,Aw)}var _9,p9,f9=E({"src/services/codefixes/fixPropertyAssignment.ts"(){Bfe(),ore(),o9="fixPropertyAssignment",O4({errorCodes:s9=[Wo.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],fixIds:[o9],getCodeActions(e){const{sourceFile:n,span:t}=e,r=u9(n,t.start),i=R_e.ChangeTracker.with(e,(n=>d9(n,e.sourceFile,r)));return[R4(o9,i,[Wo.Change_0_to_1,"=",":"],o9,[Wo.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>U4(e,s9,((e,n)=>d9(e,n.file,u9(n.file,n.start))))})}});function m9(e,n){const t=Xm(SX(e,n)).heritageClauses,r=t[0].getFirstToken();return 94===r.kind?{extendsToken:r,heritageClauses:t}:void 0}function h9(e,n,t,r){if(e.replaceNode(n,t,gA.createToken(117)),2===r.length&&94===r[0].token&&117===r[1].token){const t=r[1].getFirstToken(),i=t.getFullStart();e.replaceRange(n,{pos:i,end:i},gA.createToken(27));const a=n.text;let o=t.end;for(;o<a.length&&Ls(a.charCodeAt(o));)o++;e.deleteRange(n,{pos:t.getStart(),end:o})}}var g9,y9,v9,b9=E({"src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts"(){Bfe(),ore(),_9="extendsInterfaceBecomesImplements",O4({errorCodes:p9=[Wo.Cannot_extend_an_interface_0_Did_you_mean_implements.code],getCodeActions(e){const{sourceFile:n}=e,t=m9(n,e.span.start);if(!t)return;const{extendsToken:r,heritageClauses:i}=t,a=R_e.ChangeTracker.with(e,(e=>h9(e,n,r,i)));return[R4(_9,a,Wo.Change_extends_to_implements,_9,Wo.Change_all_extended_interfaces_to_implements)]},fixIds:[_9],getAllCodeActions:e=>U4(e,p9,((e,n)=>{const t=m9(n.file,n.start);t&&h9(e,n.file,t.extendsToken,t.heritageClauses)}))})}});function E9(e,n,t){const r=SX(e,n);if(IC(r)||wC(r))return{node:r,className:t===y9?Xm(r).name.text:void 0}}function T9(e,n,{node:t,className:r}){O$(t),e.replaceNode(n,t,gA.createPropertyAccessExpression(r?gA.createIdentifier(r):gA.createThis(),t))}var x9,S9,A9,L9,C9=E({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){Bfe(),ore(),g9="forgottenThisPropertyAccess",y9=Wo.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,O4({errorCodes:v9=[Wo.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Wo.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,y9],getCodeActions(e){const{sourceFile:n}=e,t=E9(n,e.span.start,e.errorCode);if(!t)return;const r=R_e.ChangeTracker.with(e,(e=>T9(e,n,t)));return[R4(g9,r,[Wo.Add_0_to_unresolved_variable,t.className||"this"],g9,Wo.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[g9],getAllCodeActions:e=>U4(e,v9,((n,t)=>{const r=E9(t.file,t.start,t.code);r&&T9(n,e.sourceFile,r)}))})}});function k9(e,n,t,r,i){const a=t.getText()[r];if(!function(e){return ze(L9,e)}(a))return;const o=i?L9[a]:`{${X$(t,n,a)}}`;e.replaceRangeWithText(t,{pos:r,end:r+1},o)}var I9,w9,R9,N9=E({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){Bfe(),ore(),x9="fixInvalidJsxCharacters_expression",S9="fixInvalidJsxCharacters_htmlEntity",O4({errorCodes:A9=[Wo.Unexpected_token_Did_you_mean_or_gt.code,Wo.Unexpected_token_Did_you_mean_or_rbrace.code],fixIds:[x9,S9],getCodeActions(e){const{sourceFile:n,preferences:t,span:r}=e,i=R_e.ChangeTracker.with(e,(e=>k9(e,t,n,r.start,!1))),a=R_e.ChangeTracker.with(e,(e=>k9(e,t,n,r.start,!0)));return[R4(x9,i,Wo.Wrap_invalid_character_in_an_expression_container,x9,Wo.Wrap_all_invalid_characters_in_an_expression_container),R4(S9,a,Wo.Convert_invalid_character_to_its_html_entity_code,S9,Wo.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>U4(e,A9,((n,t)=>k9(n,e.preferences,t.file,t.start,e.fixId===S9)))}),L9={">":">","}":"}"}}});function D9(e,n){const t=SX(e,n);if(t.parent&&cR(t.parent)&&IC(t.parent.name)){const e=t.parent,n=Vg(e),r=Bg(e);if(n&&r)return{jsDocHost:n,signature:r,name:t.parent.name,jsDocParameterTag:e}}}var O9,M9=E({"src/services/codefixes/fixUnmatchedParameter.ts"(){Bfe(),ore(),I9="deleteUnmatchedParameter",w9="renameUnmatchedParameter",R9=[Wo.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],O4({fixIds:[I9,w9],errorCodes:R9,getCodeActions:function(e){const{sourceFile:n,span:t}=e,r=[],i=D9(n,t.start);if(i)return Te(r,function(e,{name:n,jsDocHost:t,jsDocParameterTag:r}){const i=R_e.ChangeTracker.with(e,(n=>n.filterJSDocTags(e.sourceFile,t,(e=>e!==r))));return R4(I9,i,[Wo.Delete_unused_param_tag_0,n.getText(e.sourceFile)],I9,Wo.Delete_all_unused_param_tags)}(e,i)),Te(r,function(e,{name:n,jsDocHost:t,signature:r,jsDocParameterTag:i}){if(!S(r.parameters))return;const a=e.sourceFile,o=Il(r),s=new Set;for(const u of o)cR(u)&&IC(u.name)&&s.add(u.name.escapedText);const c=C(r.parameters,(e=>IC(e.name)&&!s.has(e.name.escapedText)?e.name.getText(a):void 0));if(void 0===c)return;const l=gA.updateJSDocParameterTag(i,i.tagName,gA.createIdentifier(c),i.isBracketed,i.typeExpression,i.isNameFirst,i.comment),d=R_e.ChangeTracker.with(e,(e=>e.replaceJSDocComment(a,t,W(o,(e=>e===i?l:e)))));return w4(w9,d,[Wo.Rename_param_tag_name_0_to_1,n.getText(a),c])}(e,i)),r},getAllCodeActions:function(e){const n=new Map;return G4(R_e.ChangeTracker.with(e,(t=>{V4(e,R9,(({file:e,start:t})=>{const r=D9(e,t);r&&n.set(r.signature,Te(n.get(r.signature),r.jsDocParameterTag))})),n.forEach(((n,r)=>{if(e.fixId===I9){const e=new Set(n);t.filterJSDocTags(r.getSourceFile(),r,(n=>!e.has(n)))}}))})))}})}});var P9,F9,G9,B9,U9,V9,j9=E({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){Bfe(),ore(),O9="fixUnreferenceableDecoratorMetadata",O4({errorCodes:[Wo.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],getCodeActions:e=>{const n=function(e,n,t){const r=En(SX(e,t),IC);if(!r||180!==r.parent.kind)return;const a=n.getTypeChecker().getSymbolAtLocation(r);return D((null==a?void 0:a.declarations)||i,yt(WI,QI,HI))}(e.sourceFile,e.program,e.span.start);if(!n)return;const t=R_e.ChangeTracker.with(e,(t=>273===n.kind&&function(e,n,t,r){Xde.doChangeNamedToNamespaceOrDefault(n,r,e,t.parent)}(t,e.sourceFile,n,e.program))),r=R_e.ChangeTracker.with(e,(t=>function(e,n,t,r){if(268===t.kind)return void e.insertModifierBefore(n,154,t.name);const i=270===t.kind?t:t.parent.parent;if(i.name&&i.namedBindings)return;const a=r.getTypeChecker();Tg(i,(e=>{if(111551&BE(e.symbol,a).flags)return!0}))||e.insertModifierBefore(n,154,i)}(t,e.sourceFile,n,e.program)));let a;return t.length&&(a=Te(a,w4(O9,t,Wo.Convert_named_imports_to_namespace_import))),r.length&&(a=Te(a,w4(O9,r,Wo.Convert_to_type_only_import))),a},fixIds:[O9]})}});function H9(e,n,t){e.replaceNode(n,t.parent,gA.createKeywordTypeNode(157))}function K9(e,n){return R4(P9,e,n,G9,Wo.Delete_all_unused_declarations)}function W9(e,n,t){e.delete(n,Nt.checkDefined(Tn(t.parent,Df).typeParameters,"The type parameter to delete should exist"))}function z9(e){return 100===e.kind||79===e.kind&&(273===e.parent.kind||270===e.parent.kind)}function q9(e){return 100===e.kind?En(e.parent,KI):void 0}function J9(e,n){return DI(n.parent)&&Me(n.parent.getChildren(e))===n}function X9(e,n,t){e.delete(n,240===t.parent.kind?t.parent:t)}function Y9(e,n,t,r){n!==Wo.Property_0_is_declared_but_its_value_is_never_read.code&&(138===r.kind&&(r=Tn(r.parent,bk).typeParameter.name),IC(r)&&function(e){switch(e.parent.kind){case 166:case 165:return!0;case 257:switch(e.parent.parent.parent.kind){case 247:case 246:return!0}}return!1}(r)&&(e.replaceNode(t,r,gA.createIdentifier(`_${r.text}`)),qC(r.parent)&&el(r.parent).forEach((n=>{IC(n.name)&&e.replaceNode(t,n.name,gA.createIdentifier(`_${n.name.text}`))}))))}function $9(e,n,t,r,i,a,o,s){!function(e,n,t,r,i,a,o,s){const{parent:c}=e;if(qC(c))!function(e,n,t,r,i,a,o,s=!1){if(function(e,n,t,r,i,a,o){const{parent:s}=t;switch(s.kind){case 171:case 173:const c=s.parameters.indexOf(t),l=QC(s)?s.name:s,d=Bae.Core.getReferencedSymbolsForNode(s.pos,l,i,r,a);if(d)for(const e of d)for(const n of e.references)if(n.kind===Bae.EntryKind.Node){const e=VC(n.node)&&Fk(n.node.parent)&&n.node.parent.arguments.length>c,r=Mk(n.node.parent)&&VC(n.node.parent.expression)&&Fk(n.node.parent.parent)&&n.node.parent.parent.arguments.length>c,i=(QC(n.node.parent)||$C(n.node.parent))&&n.node.parent!==t.parent&&n.node.parent.parameters.length>c;if(e||r||i)return!1}return!0;case 259:return!s.name||!function(e,n,t){return!!Bae.Core.eachSymbolReferenceInFile(t,e,n,(e=>IC(e)&&Fk(e.parent)&&e.parent.arguments.indexOf(e)>=0))}(e,n,s.name)||Z9(s,t,o);case 215:case 216:return Z9(s,t,o);case 175:return!1;case 174:return!0;default:return Nt.failBadSyntaxKind(s)}}(r,n,t,i,a,o,s))if(t.modifiers&&t.modifiers.length>0&&(!IC(t.name)||Bae.Core.isSymbolReferencedInFile(t.name,r,n)))for(const c of t.modifiers)Ad(c)&&e.deleteModifier(n,c);else!t.initializer&&Q9(t,r,i)&&e.delete(n,t)}(n,t,c,r,i,a,o,s);else if(!(s&&IC(e)&&Bae.Core.isSymbolReferencedInFile(e,r,t))){const r=WI(c)?e:WC(c)?c.parent:c;Nt.assert(r!==t,"should not delete whole source file"),n.delete(t,r)}}(n,t,e,r,i,a,o,s),IC(n)&&Bae.Core.eachSymbolReferenceInFile(n,r,e,(n=>{var r;Mk(n.parent)&&n.parent.name===n&&(n=n.parent),!s&&((Yk((r=n).parent)&&r.parent.left===r||(Xk(r.parent)||Jk(r.parent))&&r.parent.operand===r)&&hI(r.parent.parent))&&t.delete(e,n.parent.parent)}))}function Q9(e,n,t){const r=e.parent.parameters.indexOf(e);return!Bae.Core.someSignatureUsage(e.parent,t,n,((e,n)=>!n||n.arguments.length>r))}function Z9(e,n,t){const r=e.parameters,i=r.indexOf(n);return Nt.assert(-1!==i,"The parameter should already be in the list"),t?r.slice(i+1).every((e=>IC(e.name)&&!e.symbol.isReferenced)):i===r.length-1}var eee,nee,tee=E({"src/services/codefixes/fixUnusedIdentifier.ts"(){Bfe(),ore(),P9="unusedIdentifier",F9="unusedIdentifier_prefix",G9="unusedIdentifier_delete",B9="unusedIdentifier_deleteImports",U9="unusedIdentifier_infer",O4({errorCodes:V9=[Wo._0_is_declared_but_its_value_is_never_read.code,Wo._0_is_declared_but_never_used.code,Wo.Property_0_is_declared_but_its_value_is_never_read.code,Wo.All_imports_in_import_declaration_are_unused.code,Wo.All_destructured_elements_are_unused.code,Wo.All_variables_are_unused.code,Wo.All_type_parameters_are_unused.code],getCodeActions(e){const{errorCode:n,sourceFile:t,program:r,cancellationToken:i}=e,a=r.getTypeChecker(),o=r.getSourceFiles(),s=SX(t,e.span.start);if(_R(s))return[K9(R_e.ChangeTracker.with(e,(e=>e.delete(t,s))),Wo.Remove_template_tag)];if(29===s.kind){return[K9(R_e.ChangeTracker.with(e,(e=>W9(e,t,s))),Wo.Remove_type_parameters)]}const c=q9(s);if(c){const n=R_e.ChangeTracker.with(e,(e=>e.delete(t,c)));return[R4(P9,n,[Wo.Remove_import_from_0,ZE(c)],B9,Wo.Delete_all_unused_imports)]}if(z9(s)){const n=R_e.ChangeTracker.with(e,(e=>$9(t,s,e,a,o,r,i,!1)));if(n.length)return[R4(P9,n,[Wo.Remove_unused_declaration_for_Colon_0,s.getText(t)],B9,Wo.Delete_all_unused_imports)]}if(wk(s.parent)||Rk(s.parent)){if(qC(s.parent.parent)){const n=s.parent.elements,r=[n.length>1?Wo.Remove_unused_declarations_for_Colon_0:Wo.Remove_unused_declaration_for_Colon_0,W(n,(e=>e.getText(t))).join(", ")];return[K9(R_e.ChangeTracker.with(e,(e=>function(e,n,t){A(t.elements,(t=>e.delete(n,t)))}(e,t,s.parent))),r)]}return[K9(R_e.ChangeTracker.with(e,(e=>e.delete(t,s.parent.parent))),Wo.Remove_unused_destructuring_declaration)]}if(J9(t,s))return[K9(R_e.ChangeTracker.with(e,(e=>X9(e,t,s.parent))),Wo.Remove_variable_statement)];const l=[];if(138===s.kind){const n=R_e.ChangeTracker.with(e,(e=>H9(e,t,s))),r=Tn(s.parent,bk).typeParameter.name.text;l.push(R4(P9,n,[Wo.Replace_infer_0_with_unknown,r],U9,Wo.Replace_all_unused_infer_with_unknown))}else{const n=R_e.ChangeTracker.with(e,(e=>$9(t,s,e,a,o,r,i,!1)));if(n.length){const e=WC(s.parent)?s.parent:s;l.push(K9(n,[Wo.Remove_unused_declaration_for_Colon_0,e.getText(t)]))}}const d=R_e.ChangeTracker.with(e,(e=>Y9(e,n,t,s)));return d.length&&l.push(R4(P9,d,[Wo.Prefix_0_with_an_underscore,s.getText(t)],F9,Wo.Prefix_all_unused_declarations_with_where_possible)),l},fixIds:[F9,G9,B9,U9],getAllCodeActions:e=>{const{sourceFile:n,program:t,cancellationToken:r}=e,i=t.getTypeChecker(),a=t.getSourceFiles();return U4(e,V9,((o,s)=>{const c=SX(n,s.start);switch(e.fixId){case F9:Y9(o,s.code,n,c);break;case B9:{const e=q9(c);e?o.delete(n,e):z9(c)&&$9(n,c,o,i,a,t,r,!0);break}case G9:if(138===c.kind||z9(c))break;if(_R(c))o.delete(n,c);else if(29===c.kind)W9(o,n,c);else if(wk(c.parent)){if(c.parent.parent.initializer)break;qC(c.parent.parent)&&!Q9(c.parent.parent,i,a)||o.delete(n,c.parent.parent)}else{if(Rk(c.parent.parent)&&c.parent.parent.parent.initializer)break;J9(n,c)?X9(o,n,c.parent):$9(n,c,o,i,a,t,r,!0)}break;case U9:138===c.kind&&H9(o,n,c);break;default:Nt.fail(JSON.stringify(e.fixId))}}))}})}});function ree(e,n,t,r,a){const o=SX(n,t),s=Mc(o,Bu);if(s.getStart(n)!==o.getStart(n)){const e=JSON.stringify({statementKind:Nt.formatSyntaxKind(s.kind),tokenKind:Nt.formatSyntaxKind(o.kind),errorCode:a,start:t,length:r});Nt.fail("Token and statement should start at the same point. "+e)}const c=(pI(s.parent)?s.parent:s).parent;if(!pI(s.parent)||s===Me(s.parent.statements))switch(c.kind){case 242:if(c.elseStatement){if(pI(s.parent))break;return void e.replaceNode(n,s,gA.createBlock(i))}case 244:case 245:return void e.delete(n,c)}if(pI(s.parent)){const i=t+r,a=Nt.checkDefined(function(e,n){let t;for(const r of e){if(!n(r))break;t=r}return t}(sS(s.parent.statements,s),(e=>e.pos<i)),"Some statement should be last");e.deleteNodeRange(n,s,a)}else e.delete(n,s)}var iee,aee,oee=E({"src/services/codefixes/fixUnreachableCode.ts"(){Bfe(),ore(),eee="fixUnreachableCode",O4({errorCodes:nee=[Wo.Unreachable_code_detected.code],getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const n=R_e.ChangeTracker.with(e,(n=>ree(n,e.sourceFile,e.span.start,e.span.length,e.errorCode)));return[R4(eee,n,Wo.Remove_unreachable_code,eee,Wo.Remove_all_unreachable_code)]},fixIds:[eee],getAllCodeActions:e=>U4(e,nee,((e,n)=>ree(e,n.file,n.start,n.length,n.code)))})}});function see(e,n,t){const r=SX(n,t),i=Tn(r.parent,kI),a=r.getStart(n),o=i.statement.getStart(n),s=kE(a,o,n)?o:Ns(n.text,dX(i,58,n).end,!0);e.deleteRange(n,{pos:a,end:s})}var cee,lee,dee,uee=E({"src/services/codefixes/fixUnusedLabel.ts"(){Bfe(),ore(),iee="fixUnusedLabel",O4({errorCodes:aee=[Wo.Unused_label.code],getCodeActions(e){const n=R_e.ChangeTracker.with(e,(n=>see(n,e.sourceFile,e.span.start)));return[R4(iee,n,Wo.Remove_unused_label,iee,Wo.Remove_all_unused_labels)]},fixIds:[iee],getAllCodeActions:e=>U4(e,aee,((e,n)=>see(e,n.file,n.start)))})}});function _ee(e,n,t,r,i){e.replaceNode(n,t,i.typeToTypeNode(r,t,void 0))}function pee(e,n,t){const r=Mc(SX(e,n),fee),i=r&&r.type;return i&&{typeNode:i,type:mee(t,i)}}function fee(e){switch(e.kind){case 231:case 176:case 177:case 259:case 174:case 178:case 197:case 171:case 170:case 166:case 169:case 168:case 175:case 262:case 213:case 257:return!0;default:return!1}}function mee(e,n){if(Uw(n)){const t=e.getTypeFromTypeNode(n.type);return t===e.getNeverType()||t===e.getVoidType()?t:e.getUnionType(Te([t,e.getUndefinedType()],n.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(n)}var hee,gee,yee=E({"src/services/codefixes/fixJSDocTypes.ts"(){Bfe(),ore(),cee="fixJSDocTypes_plain",lee="fixJSDocTypes_nullable",O4({errorCodes:dee=[Wo.JSDoc_types_can_only_be_used_inside_documentation_comments.code,Wo._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,Wo._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],getCodeActions(e){const{sourceFile:n}=e,t=e.program.getTypeChecker(),r=pee(n,e.span.start,t);if(!r)return;const{typeNode:i,type:a}=r,o=i.getText(n),s=[c(a,cee,Wo.Change_all_jsdoc_style_types_to_TypeScript)];return 317===i.kind&&s.push(c(a,lee,Wo.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function c(r,a,s){return R4("jdocTypes",R_e.ChangeTracker.with(e,(e=>_ee(e,n,i,r,t))),[Wo.Change_0_to_1,o,t.typeToString(r)],a,s)}},fixIds:[cee,lee],getAllCodeActions(e){const{fixId:n,program:t,sourceFile:r}=e,i=t.getTypeChecker();return U4(e,dee,((e,t)=>{const a=pee(t.file,t.start,i);if(!a)return;const{typeNode:o,type:s}=a,c=317===o.kind&&n===lee?i.getNullableType(s,32768):s;_ee(e,r,o,c,i)}))}})}});function vee(e,n,t){e.replaceNodeWithText(n,t,`${t.text}()`)}function bee(e,n){const t=SX(e,n);if(Mk(t.parent)){let e=t.parent;for(;Mk(e.parent);)e=e.parent;return e.name}if(IC(t))return t}var Eee,Tee,xee=E({"src/services/codefixes/fixMissingCallParentheses.ts"(){Bfe(),ore(),hee="fixMissingCallParentheses",O4({errorCodes:gee=[Wo.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],fixIds:[hee],getCodeActions(e){const{sourceFile:n,span:t}=e,r=bee(n,t.start);if(!r)return;const i=R_e.ChangeTracker.with(e,(n=>vee(n,e.sourceFile,r)));return[R4(hee,i,Wo.Add_missing_call_parentheses,hee,Wo.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>U4(e,gee,((e,n)=>{const t=bee(n.file,n.start);t&&vee(e,n.file,t)}))})}});function See(e,n){const t=qm(SX(e,n));if(!t)return;let r;switch(t.kind){case 171:r=t.name;break;case 259:case 215:r=dX(t,98,e);break;case 216:r=dX(t,t.typeParameters?29:20,e)||Me(t.parameters);break;default:return}return r&&{insertBefore:r,returnType:(i=t,i.type?i.type:NI(i.parent)&&i.parent.type&&ck(i.parent.type)?i.parent.type.type:void 0)};var i}function Aee(e,n,{insertBefore:t,returnType:r}){if(r){const t=lh(r);t&&79===t.kind&&"Promise"===t.text||e.replaceNode(n,r,gA.createTypeReferenceNode("Promise",gA.createNodeArray([r])))}e.insertModifierBefore(n,132,t)}var Lee,Cee,kee=E({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){Bfe(),ore(),Eee="fixAwaitInSyncFunction",O4({errorCodes:Tee=[Wo.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Wo.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Wo.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],getCodeActions(e){const{sourceFile:n,span:t}=e,r=See(n,t.start);if(!r)return;const i=R_e.ChangeTracker.with(e,(e=>Aee(e,n,r)));return[R4(Eee,i,Wo.Add_async_modifier_to_containing_function,Eee,Wo.Add_all_missing_async_modifiers)]},fixIds:[Eee],getAllCodeActions:function(e){const n=new Map;return U4(e,Tee,((t,r)=>{const i=See(r.file,r.start);i&&nT(n,ZG(i.insertBefore))&&Aee(t,e.sourceFile,i)}))}})}});function Iee(e,n,t,r,i){let a,o;if(r===Wo._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)a=n,o=n+t;else if(r===Wo._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const t=i.program.getTypeChecker(),r=SX(e,n).parent;Nt.assert(Gd(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");const s=r.parent;Nt.assert(Fd(s),"erroneous accessors should only be inside classes");const c=Be(wne(s,t));if(!c)return[];const l=Bc(Wf(r.name)),d=t.getPropertyOfType(t.getTypeAtLocation(c),l);if(!d||!d.valueDeclaration)return[];a=d.valueDeclaration.pos,o=d.valueDeclaration.end,e=Dp(d.valueDeclaration)}else Nt.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+r);return xne(e,i.program,a,o,i,Wo.Generate_get_and_set_accessors.message)}var wee,Ree,Nee=E({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){Bfe(),ore(),Lee=[Wo._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,Wo._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],Cee="fixPropertyOverrideAccessor",O4({errorCodes:Lee,getCodeActions(e){const n=Iee(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(n)return[R4(Cee,n,Wo.Generate_get_and_set_accessors,Cee,Wo.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Cee],getAllCodeActions:e=>U4(e,Lee,((n,t)=>{const r=Iee(t.file,t.start,t.length,t.code,e);if(r)for(const i of r)n.pushRaw(e.sourceFile,i)}))})}});function Dee(e,n){switch(e){case Wo.Parameter_0_implicitly_has_an_1_type.code:case Wo.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return tk(qm(n))?Wo.Infer_type_of_0_from_usage:Wo.Infer_parameter_types_from_usage;case Wo.Rest_parameter_0_implicitly_has_an_any_type.code:case Wo.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return Wo.Infer_parameter_types_from_usage;case Wo.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return Wo.Infer_this_type_of_0_from_usage;default:return Wo.Infer_type_of_0_from_usage}}function Oee(e,n,t,r,i,a,o,s,c){if(!xd(t.kind)&&79!==t.kind&&25!==t.kind&&108!==t.kind)return;const{parent:l}=t,d=E3(n,i,c,s);switch(r=function(e){switch(e){case Wo.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return Wo.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case Wo.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Wo.Variable_0_implicitly_has_an_1_type.code;case Wo.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Wo.Parameter_0_implicitly_has_an_1_type.code;case Wo.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return Wo.Rest_parameter_0_implicitly_has_an_any_type.code;case Wo.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return Wo.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case Wo._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return Wo._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case Wo.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return Wo.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case Wo.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Wo.Member_0_implicitly_has_an_1_type.code}return e}(r)){case Wo.Member_0_implicitly_has_an_1_type.code:case Wo.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(NI(l)&&o(l)||YC(l)||XC(l))return Mee(e,d,n,l,i,s,a),d.writeFixes(e),l;if(Mk(l)){const t=eQ(Uee(l.name,i,a),l,i,s);if(t){const r=gA.createJSDocTypeTag(void 0,gA.createJSDocTypeExpression(t),void 0);e.addJSDocTags(n,Tn(l.parent.parent,hI),[r])}return d.writeFixes(e),l}return;case Wo.Variable_0_implicitly_has_an_1_type.code:{const n=i.getTypeChecker().getSymbolAtLocation(t);return n&&n.valueDeclaration&&NI(n.valueDeclaration)&&o(n.valueDeclaration)?(Mee(e,d,Dp(n.valueDeclaration),n.valueDeclaration,i,s,a),d.writeFixes(e),n.valueDeclaration):void 0}}const u=qm(t);if(void 0===u)return;let _;switch(r){case Wo.Parameter_0_implicitly_has_an_1_type.code:if(tk(u)){Pee(e,d,n,u,i,s,a),_=u;break}case Wo.Rest_parameter_0_implicitly_has_an_any_type.code:if(o(u)){const t=Tn(l,qC);!function(e,n,t,r,i,a,o,s){if(!IC(r.name))return;const c=function(e,n,t,r){const i=Vee(e,n,t,r);return i&&jee(t,i,r).parameters(e)||e.parameters.map((e=>({declaration:e,type:IC(e.name)?Uee(e.name,t,r):t.getTypeChecker().getAnyType()})))}(i,t,a,s);if(Nt.assert(i.parameters.length===c.length,"Parameter count and inference count should match"),Ih(i))Gee(e,t,c,a,o);else{const r=Hk(i)&&!dX(i,20,t);r&&e.insertNodeBefore(t,Me(i.parameters),gA.createToken(20));for(const{declaration:i,type:s}of c)!i||i.type||i.initializer||Fee(e,n,t,i,s,a,o);r&&e.insertNodeAfter(t,Ge(i.parameters),gA.createToken(21))}}(e,d,n,t,u,i,s,a),_=t}break;case Wo.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case Wo._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:nk(u)&&IC(u.name)&&(Fee(e,d,n,u,Uee(u.name,i,a),i,s),_=u);break;case Wo.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:tk(u)&&(Pee(e,d,n,u,i,s,a),_=u);break;case Wo.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:R_e.isThisTypeAnnotatable(u)&&o(u)&&(!function(e,n,t,r,i,a){const o=Vee(t,n,r,a);if(!o||!o.length)return;const s=jee(r,o,a).thisParameter(),c=eQ(s,t,r,i);if(!c)return;Ih(t)?function(e,n,t,r){e.addJSDocTags(n,t,[gA.createJSDocThisTag(void 0,gA.createJSDocTypeExpression(r))])}(e,n,t,c):e.tryInsertThisTypeAnnotation(n,t,c)}(e,n,u,i,s,a),_=u);break;default:return Nt.fail(String(r))}return d.writeFixes(e),_}function Mee(e,n,t,r,i,a,o){IC(r.name)&&Fee(e,n,t,r,Uee(r.name,i,o),i,a)}function Pee(e,n,t,r,i,a,o){const s=De(r.parameters);if(s&&IC(r.name)&&IC(s.name)){let c=Uee(r.name,i,o);c===i.getTypeChecker().getAnyType()&&(c=Uee(s.name,i,o)),Ih(r)?Gee(e,t,[{declaration:s,type:c}],i,a):Fee(e,n,t,s,c,i,a)}}function Fee(e,n,t,r,i,a,o){const s=eQ(i,r,a,o);if(s)if(Ih(t)&&168!==r.kind){const n=NI(r)?En(r.parent.parent,fI):r;if(!n)return;const i=gA.createJSDocTypeExpression(s),a=nk(r)?gA.createJSDocReturnTag(void 0,i,void 0):gA.createJSDocTypeTag(void 0,i,void 0);e.addJSDocTags(t,n,[a])}else(function(e,n,t,r,i,a){const o=yne(e,a);if(o&&r.tryInsertTypeAnnotation(t,n,o.typeNode))return A(o.symbols,(e=>i.addImportFromExportedSymbol(e,!0))),!0;return!1})(s,r,t,e,n,HT(a.getCompilerOptions()))||e.tryInsertTypeAnnotation(t,r,s)}function Gee(e,n,t,r,i){const a=t.length&&t[0].declaration.parent;if(!a)return;const o=ee(t,(e=>{const n=e.declaration;if(n.initializer||Ll(n)||!IC(n.name))return;const t=e.type&&eQ(e.type,n,r,i);if(t){return jA(gA.cloneNode(n.name),7168),{name:gA.cloneNode(n.name),param:n,isOptional:!!e.isOptional,typeNode:t}}}));if(o.length)if(Hk(a)||jk(a)){const t=Hk(a)&&!dX(a,20,n);t&&e.insertNodeBefore(n,Me(a.parameters),gA.createToken(20)),A(o,(({typeNode:t,param:r})=>{const i=gA.createJSDocTypeTag(void 0,gA.createJSDocTypeExpression(t)),a=gA.createJSDocComment(void 0,[i]);e.insertNodeAt(n,r.getStart(n),a,{suffix:" "})})),t&&e.insertNodeAfter(n,Ge(a.parameters),gA.createToken(21))}else{const t=W(o,(({name:e,typeNode:n,isOptional:t})=>gA.createJSDocParameterTag(void 0,e,!!t,gA.createJSDocTypeExpression(n),!1,void 0)));e.addJSDocTags(n,a,t)}}function Bee(e,n,t){return ee(Bae.getReferenceEntriesForNode(-1,e,n,n.getSourceFiles(),t),(e=>e.kind!==Bae.EntryKind.Span?En(e.node,IC):void 0))}function Uee(e,n,t){return jee(n,Bee(e,n,t),t).single()}function Vee(e,n,t,r){let i;switch(e.kind){case 173:i=dX(e,135,n);break;case 216:case 215:const t=e.parent;i=(NI(t)||YC(t))&&IC(t.name)?t.name:e.name;break;case 259:case 171:case 170:i=e.name}if(i)return Bee(i,t,r)}function jee(e,n,t){const r=e.getTypeChecker(),a={string:()=>r.getStringType(),number:()=>r.getNumberType(),Array:e=>r.createArrayType(e),Promise:e=>r.createPromiseType(e)},o=[r.getStringType(),r.getNumberType(),r.createArrayType(r.getAnyType()),r.createPromiseType(r.getAnyType())];return{single:function(){return _(c(n))},parameters:function(i){if(0===n.length||!i.parameters)return;const a={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const e of n)t.throwIfCancellationRequested(),l(e,a);const o=[...a.constructs||[],...a.calls||[]];return i.parameters.map(((n,a)=>{const s=[],l=l_(n);let d=!1;for(const e of o)if(e.argumentTypes.length<=a)d=Ih(i),s.push(r.getUndefinedType());else if(l)for(let n=a;n<e.argumentTypes.length;n++)s.push(r.getBaseTypeOfLiteralType(e.argumentTypes[n]));else s.push(r.getBaseTypeOfLiteralType(e.argumentTypes[a]));if(IC(n.name)){const i=c(Bee(n.name,e,t));s.push(...l?ee(i,r.getElementTypeOfArrayType):i)}const u=_(s);return{type:l?r.createArrayType(u):u,isOptional:d&&!l,declaration:n}}))},thisParameter:function(){const e={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of n)t.throwIfCancellationRequested(),l(r,e);return _(e.candidateThisTypes||i)}};function s(e){const n=new Map;for(const r of e)r.properties&&r.properties.forEach(((e,t)=>{n.has(t)||n.set(t,[]),n.get(t).push(e)}));const t=new Map;return n.forEach(((e,n)=>{t.set(n,s(e))})),{isNumber:e.some((e=>e.isNumber)),isString:e.some((e=>e.isString)),isNumberOrString:e.some((e=>e.isNumberOrString)),candidateTypes:X(e,(e=>e.candidateTypes)),properties:t,calls:X(e,(e=>e.calls)),constructs:X(e,(e=>e.constructs)),numberIndex:A(e,(e=>e.numberIndex)),stringIndex:A(e,(e=>e.stringIndex)),candidateThisTypes:X(e,(e=>e.candidateThisTypes)),inferredTypes:void 0}}function c(e){const n={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of e)t.throwIfCancellationRequested(),l(r,n);return p(n)}function l(e,n){for(;Zb(e);)e=e.parent;switch(e.parent.kind){case 241:!function(e,n){g(n,Fk(e)?r.getVoidType():r.getAnyType())}(e,n);break;case 222:n.isNumber=!0;break;case 221:!function(e,n){switch(e.operator){case 45:case 46:case 40:case 54:n.isNumber=!0;break;case 39:n.isNumberOrString=!0}}(e.parent,n);break;case 223:!function(e,n,t){switch(n.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:const i=r.getTypeAtLocation(n.left===e?n.right:n.left);1056&i.flags?g(t,i):t.isNumber=!0;break;case 64:case 39:const a=r.getTypeAtLocation(n.left===e?n.right:n.left);1056&a.flags?g(t,a):296&a.flags?t.isNumber=!0:402653316&a.flags?t.isString=!0:1&a.flags||(t.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:g(t,r.getTypeAtLocation(n.left===e?n.right:n.left));break;case 101:e===n.left&&(t.isString=!0);break;case 56:case 60:e!==n.left||257!==e.parent.parent.kind&&!Hb(e.parent.parent,!0)||g(t,r.getTypeAtLocation(n.right))}}(e,e.parent,n);break;case 292:case 293:!function(e,n){g(n,r.getTypeAtLocation(e.parent.parent.expression))}(e.parent,n);break;case 210:case 211:e.parent.expression===e?function(e,n){const t={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(const i of e.arguments)t.argumentTypes.push(r.getTypeAtLocation(i));l(e,t.return_),210===e.kind?(n.calls||(n.calls=[])).push(t):(n.constructs||(n.constructs=[])).push(t)}(e.parent,n):d(e,n);break;case 208:!function(e,n){const t=Gc(e.name.text);n.properties||(n.properties=new Map);const r=n.properties.get(t)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(e,r),n.properties.set(t,r)}(e.parent,n);break;case 209:!function(e,n,t){if(n===e.argumentExpression)return void(t.isNumberOrString=!0);{const n=r.getTypeAtLocation(e.argumentExpression),i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(e,i),296&n.flags?t.numberIndex=i:t.stringIndex=i}}(e.parent,e,n);break;case 299:case 300:!function(e,n){const t=NI(e.parent.parent)?e.parent.parent:e.parent;y(n,r.getTypeAtLocation(t))}(e.parent,n);break;case 169:!function(e,n){y(n,r.getTypeAtLocation(e.parent))}(e.parent,n);break;case 257:{const{name:t,initializer:i}=e.parent;if(e===t){i&&g(n,r.getTypeAtLocation(i));break}}default:return d(e,n)}}function d(e,n){vh(e)&&g(n,r.getContextualType(e))}function u(e){return _(p(e))}function _(e){if(!e.length)return r.getAnyType();const n=r.getUnionType([r.getStringType(),r.getNumberType()]);let t=function(e,n){const t=[];for(const r of e)for(const{high:e,low:i}of n)e(r)&&(Nt.assert(!i(r),"Priority can't have both low and high"),t.push(i));return e.filter((e=>t.every((n=>!n(e)))))}(e,[{high:e=>e===r.getStringType()||e===r.getNumberType(),low:e=>e===n},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:e=>!(114689&e.flags)&&!(16&YE(e)),low:e=>!!(16&YE(e))}]);const i=t.filter((e=>16&YE(e)));return i.length&&(t=t.filter((e=>!(16&YE(e)))),t.push(function(e){if(1===e.length)return e[0];const n=[],t=[],i=[],a=[];let o=!1,s=!1;const c=un();for(const u of e){for(const n of r.getPropertiesOfType(u))c.add(n.name,n.valueDeclaration?r.getTypeOfSymbolAtLocation(n,n.valueDeclaration):r.getAnyType());n.push(...r.getSignaturesOfType(u,0)),t.push(...r.getSignaturesOfType(u,1));const e=r.getIndexInfoOfType(u,0);e&&(i.push(e.type),o=o||e.isReadonly);const l=r.getIndexInfoOfType(u,1);l&&(a.push(l.type),s=s||l.isReadonly)}const l=se(c,((n,t)=>{const i=t.length<e.length?16777216:0,a=r.createSymbol(4|i,n);return a.links.type=r.getUnionType(t),[n,a]})),d=[];i.length&&d.push(r.createIndexInfo(r.getStringType(),r.getUnionType(i),o));a.length&&d.push(r.createIndexInfo(r.getNumberType(),r.getUnionType(a),s));return r.createAnonymousType(e[0].symbol,l,n,t,d)}(i))),r.getWidenedType(r.getUnionType(t.map(r.getBaseTypeOfLiteralType),2))}function p(e){var n,t,s;const c=[];e.isNumber&&c.push(r.getNumberType()),e.isString&&c.push(r.getStringType()),e.isNumberOrString&&c.push(r.getUnionType([r.getStringType(),r.getNumberType()])),e.numberIndex&&c.push(r.createArrayType(u(e.numberIndex))),((null==(n=e.properties)?void 0:n.size)||(null==(t=e.constructs)?void 0:t.length)||e.stringIndex)&&c.push(f(e));const l=(e.candidateTypes||[]).map((e=>r.getBaseTypeOfLiteralType(e))),d=(null==(s=e.calls)?void 0:s.length)?f(e):void 0;return d&&l?c.push(r.getUnionType([d,...l],2)):(d&&c.push(d),S(l)&&c.push(...l)),c.push(...function(e){if(!e.properties||!e.properties.size)return[];const n=o.filter((n=>function(e,n){return!!n.properties&&!gp(n.properties,((n,t)=>{const a=r.getTypeOfPropertyOfType(e,t);if(!a)return!0;if(n.calls){return!r.getSignaturesOfType(a,0).length||!r.isTypeAssignableTo(a,(o=n.calls,r.createAnonymousType(void 0,dp(),[h(o)],i,i)))}return!r.isTypeAssignableTo(a,u(n));var o}))}(n,e)));if(0<n.length&&n.length<3)return n.map((n=>function(e,n){if(!(4&YE(e))||!n.properties)return e;const t=e.target,i=Be(t.typeParameters);if(!i)return e;const o=[];return n.properties.forEach(((e,n)=>{const a=r.getTypeOfPropertyOfType(t,n);Nt.assert(!!a,"generic should have all the properties of its reference."),o.push(...m(a,u(e),i))})),a[e.symbol.escapedName](_(o))}(n,e)));return[]}(e)),c}function f(e){const n=new Map;e.properties&&e.properties.forEach(((e,t)=>{const i=r.createSymbol(4,t);i.links.type=u(e),n.set(t,i)}));const t=e.calls?[h(e.calls)]:[],i=e.constructs?[h(e.constructs)]:[],a=e.stringIndex?[r.createIndexInfo(r.getStringType(),u(e.stringIndex),!1)]:[];return r.createAnonymousType(void 0,n,t,i,a)}function m(e,n,t){if(e===t)return[n];if(3145728&e.flags)return X(e.types,(e=>m(e,n,t)));if(4&YE(e)&&4&YE(n)){const i=r.getTypeArguments(e),a=r.getTypeArguments(n),o=[];if(i&&a)for(let e=0;e<i.length;e++)a[e]&&o.push(...m(i[e],a[e],t));return o}const i=r.getSignaturesOfType(e,0),a=r.getSignaturesOfType(n,0);return 1===i.length&&1===a.length?function(e,n,t){var i;const a=[];for(let c=0;c<e.parameters.length;c++){const o=e.parameters[c],s=n.parameters[c],l=e.declaration&&l_(e.declaration.parameters[c]);if(!s)break;let d=o.valueDeclaration?r.getTypeOfSymbolAtLocation(o,o.valueDeclaration):r.getAnyType();const u=l&&r.getElementTypeOfArrayType(d);u&&(d=u);const _=(null==(i=En(s,up))?void 0:i.links.type)||(s.valueDeclaration?r.getTypeOfSymbolAtLocation(s,s.valueDeclaration):r.getAnyType());a.push(...m(d,_,t))}const o=r.getReturnTypeOfSignature(e),s=r.getReturnTypeOfSignature(n);return a.push(...m(o,s,t)),a}(i[0],a[0],t):[]}function h(e){const n=[],t=Math.max(...e.map((e=>e.argumentTypes.length)));for(let a=0;a<t;a++){const t=r.createSymbol(1,Gc(`arg${a}`));t.links.type=_(e.map((e=>e.argumentTypes[a]||r.getUndefinedType()))),e.some((e=>void 0===e.argumentTypes[a]))&&(t.flags|=16777216),n.push(t)}const i=u(s(e.map((e=>e.return_))));return r.createSignature(void 0,void 0,void 0,n,i,void 0,t,0)}function g(e,n){!n||1&n.flags||131072&n.flags||(e.candidateTypes||(e.candidateTypes=[])).push(n)}function y(e,n){!n||1&n.flags||131072&n.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(n)}}var Hee,Kee,Wee=E({"src/services/codefixes/inferFromUsage.ts"(){Bfe(),ore(),wee="inferFromUsage",O4({errorCodes:Ree=[Wo.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,Wo.Variable_0_implicitly_has_an_1_type.code,Wo.Parameter_0_implicitly_has_an_1_type.code,Wo.Rest_parameter_0_implicitly_has_an_any_type.code,Wo.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,Wo._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,Wo.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,Wo.Member_0_implicitly_has_an_1_type.code,Wo.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,Wo.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Wo.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Wo.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,Wo.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,Wo._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,Wo.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,Wo.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Wo.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],getCodeActions(e){const{sourceFile:n,program:t,span:{start:r},errorCode:i,cancellationToken:a,host:o,preferences:s}=e,c=SX(n,r);let l;const d=R_e.ChangeTracker.with(e,(e=>{l=Oee(e,n,c,i,t,a,An,o,s)})),u=l&&Xc(l);return u&&0!==d.length?[R4(wee,d,[Dee(i,c),sf(u)],wee,Wo.Infer_all_types_from_usage)]:void 0},fixIds:[wee],getAllCodeActions(e){const{sourceFile:n,program:t,cancellationToken:r,host:i,preferences:a}=e,o=yY();return U4(e,Ree,((e,s)=>{Oee(e,n,SX(s.file,s.start),s.code,t,r,o,i,a)}))}})}});function zee(e,n,t){if(Ih(e))return;const r=Mc(SX(e,t),Rd),i=null==r?void 0:r.type;if(!i)return;const a=n.getTypeFromTypeNode(i),o=n.getAwaitedType(a)||n.getVoidType(),s=n.typeToTypeNode(o,i,void 0);return s?{returnTypeNode:i,returnType:a,promisedTypeNode:s,promisedType:o}:void 0}function qee(e,n,t,r){e.replaceNode(n,t,gA.createTypeReferenceNode("Promise",[r]))}var Jee,Xee,Yee,$ee=E({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){Bfe(),ore(),Hee="fixReturnTypeInAsyncFunction",O4({errorCodes:Kee=[Wo.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],fixIds:[Hee],getCodeActions:function(e){const{sourceFile:n,program:t,span:r}=e,i=t.getTypeChecker(),a=zee(n,t.getTypeChecker(),r.start);if(!a)return;const{returnTypeNode:o,returnType:s,promisedTypeNode:c,promisedType:l}=a,d=R_e.ChangeTracker.with(e,(e=>qee(e,n,o,c)));return[R4(Hee,d,[Wo.Replace_0_with_Promise_1,i.typeToString(s),i.typeToString(l)],Hee,Wo.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>U4(e,Kee,((n,t)=>{const r=zee(t.file,e.program.getTypeChecker(),t.start);r&&qee(n,t.file,r.returnTypeNode,r.promisedTypeNode)}))})}});function Qee(e,n,t,r){const{line:i}=Ss(n,t);r&&!ie(r,i)||e.insertCommentBeforeLine(n,i,t," @ts-ignore")}var Zee,ene=E({"src/services/codefixes/disableJsDiagnostics.ts"(){Bfe(),ore(),Jee="disableJsDiagnostics",Xee="disableJsDiagnostics",O4({errorCodes:Yee=ee(Object.keys(Wo),(e=>{const n=Wo[e];return 1===n.category?n.code:void 0})),getCodeActions:function(e){const{sourceFile:n,program:t,span:r,host:i,formatContext:a}=e;if(!Ih(n)||!aS(n,t.getCompilerOptions()))return;const o=n.checkJsDirective?"":m$(i,a.options),s=[w4(Jee,[B4(n.fileName,[pY(n.checkJsDirective?vc(n.checkJsDirective.pos,n.checkJsDirective.end):yc(0,0),`// @ts-nocheck${o}`)])],Wo.Disable_checking_for_this_file)];return R_e.isValidLocationToAddComment(n,r.start)&&s.unshift(R4(Jee,R_e.ChangeTracker.with(e,(e=>Qee(e,n,r.start))),Wo.Ignore_this_error_message,Xee,Wo.Add_ts_ignore_to_all_error_messages)),s},fixIds:[Xee],getAllCodeActions:e=>{const n=new Set;return U4(e,Yee,((e,t)=>{R_e.isValidLocationToAddComment(t.file,t.start)&&Qee(e,t.file,t.start,n)}))}})}});function nne(e,n,t,r,i,a,o){const s=e.symbol.members;for(const c of n)s.has(c.escapedName)||rne(c,e,t,r,i,a,o,void 0)}function tne(e){return{trackSymbol:()=>!1,moduleResolverHost:CY(e.program,e.host)}}function rne(e,n,t,r,a,o,s,c,l=3,d=!1){var u;const _=e.getDeclarations(),p=null==_?void 0:_[0],f=r.program.getTypeChecker(),m=HT(r.program.getCompilerOptions()),h=null!=(u=null==p?void 0:p.kind)?u:168,g=I$(Xc(p),!1),y=p?Lb(p):0;let v=4&y?4:16&y?16:0;p&&Bd(p)&&(v|=128);const b=function(){let e;v&&(e=xe(e,gA.createModifiersFromModifierFlags(v)));r.program.getCompilerOptions().noImplicitOverride&&p&&yb(p)&&(e=Te(e,gA.createToken(161)));return e&&gA.createNodeArray(e)}(),E=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,n)),T=!!(16777216&e.flags),x=!!(16777216&n.flags)||d,A=DY(t,a);switch(h){case 168:case 169:const t=0===A?268435456:void 0;let a=f.typeToTypeNode(E,n,t,tne(r));if(o){const e=yne(a,m);e&&(a=e.typeNode,bne(o,e.symbols))}s(gA.createPropertyDeclaration(b,p?C(g):e.getName(),T&&2&l?gA.createToken(57):void 0,a,void 0));break;case 174:case 175:{Nt.assertIsDefined(_);let e=f.typeToTypeNode(E,n,void 0,tne(r));const t=$v(_,p),a=t.secondAccessor?[t.firstAccessor,t.secondAccessor]:[t.firstAccessor];if(o){const n=yne(e,m);n&&(e=n.typeNode,bne(o,n.symbols))}for(const n of a)if(nk(n))s(gA.createGetAccessorDeclaration(b,C(g),i,I(e),k(c,A,x)));else{Nt.assertNode(n,tk,"The counterpart to a getter should be a setter");const t=Kv(n),r=t&&IC(t.name)?Uc(t.name):void 0;s(gA.createSetAccessorDeclaration(b,C(g),une(1,[r],[I(e)],1,!1),k(c,A,x)))}break}case 170:case 171:Nt.assertIsDefined(_);const d=E.isUnion()?X(E.types,(e=>e.getCallSignatures())):E.getCallSignatures();if(!ce(d))break;if(1===_.length){Nt.assert(1===d.length,"One declaration implies one signature");const e=d[0];L(A,e,b,C(g),k(c,A,x));break}for(const e of d)L(A,e,b,C(g));if(!x)if(_.length>d.length){const e=f.getSignatureFromDeclaration(_[_.length-1]);L(A,e,b,C(g),k(c,A))}else Nt.assert(_.length===d.length,"Declarations and signatures should match count"),s(function(e,n,t,r,i,a,o,s,c){let l=r[0],d=r[0].minArgumentCount,u=!1;for(const m of r)d=Math.min(m.minArgumentCount,d),sB(m)&&(u=!0),m.parameters.length>=l.parameters.length&&(!sB(m)||sB(l))&&(l=m);const _=l.parameters.length-(sB(l)?1:0),p=l.parameters.map((e=>e.name)),f=une(_,p,void 0,d,!1);if(u){const e=gA.createParameterDeclaration(void 0,gA.createToken(25),p[_]||"rest",_>=d?gA.createToken(57):void 0,gA.createArrayTypeNode(gA.createKeywordTypeNode(157)),void 0);f.push(e)}return function(e,n,t,r,i,a,o,s){return gA.createMethodDeclaration(e,void 0,n,t?gA.createToken(57):void 0,r,i,a,s||_ne(o))}(o,i,a,void 0,f,function(e,n,t,r){if(S(e)){const i=n.getUnionType(W(e,n.getReturnTypeOfSignature));return n.typeToTypeNode(i,r,1,tne(t))}}(r,e,n,t),s,c)}(f,r,n,d,C(g),T&&!!(1&l),b,A,c))}function L(e,t,i,a,c){const d=ine(171,r,e,t,c,a,i,T&&!!(1&l),n,o);d&&s(d)}function C(e){return IC(e)&&"constructor"===e.escapedText?gA.createComputedPropertyName(gA.createStringLiteral(Uc(e),0===A)):I$(e,!1)}function k(e,n,t){return t?void 0:I$(e,!1)||_ne(n)}function I(e){return I$(e,!1)}}function ine(e,n,t,r,i,a,o,s,c,l){const d=n.program,u=d.getTypeChecker(),_=HT(d.getCompilerOptions()),p=Ih(c),f=524545|(0===t?268435456:0),m=u.signatureToSignatureDeclaration(r,e,c,f,tne(n));if(!m)return;let h=p?void 0:m.typeParameters,g=m.parameters,y=p?void 0:m.type;if(l){if(h){const e=q(h,(e=>{let n=e.constraint,t=e.default;if(n){const e=yne(n,_);e&&(n=e.typeNode,bne(l,e.symbols))}if(t){const e=yne(t,_);e&&(t=e.typeNode,bne(l,e.symbols))}return gA.updateTypeParameterDeclaration(e,e.modifiers,e.name,n,t)}));h!==e&&(h=VN(gA.createNodeArray(e,h.hasTrailingComma),h))}const e=q(g,(e=>{let n=p?void 0:e.type;if(n){const e=yne(n,_);e&&(n=e.typeNode,bne(l,e.symbols))}return gA.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,p?void 0:e.questionToken,n,e.initializer)}));if(g!==e&&(g=VN(gA.createNodeArray(e,g.hasTrailingComma),g)),y){const e=yne(y,_);e&&(y=e.typeNode,bne(l,e.symbols))}}const v=s?gA.createToken(57):void 0,b=m.asteriskToken;return jk(m)?gA.updateFunctionExpression(m,o,m.asteriskToken,En(a,IC),h,g,y,null!=i?i:m.body):Hk(m)?gA.updateArrowFunction(m,o,h,g,y,m.equalsGreaterThanToken,null!=i?i:m.body):QC(m)?gA.updateMethodDeclaration(m,o,b,null!=a?a:gA.createIdentifier(""),v,h,g,y,i):OI(m)?gA.updateFunctionDeclaration(m,o,m.asteriskToken,En(a,IC),h,g,y,null!=i?i:m.body):void 0}function ane(e,n,t,r,i,a,o){const s=DY(n.sourceFile,n.preferences),c=HT(n.program.getCompilerOptions()),l=tne(n),d=n.program.getTypeChecker(),u=Ih(o),{typeArguments:_,arguments:p,parent:f}=r,m=u?void 0:d.getContextualType(r),h=W(p,(e=>IC(e)?e.text:Mk(e)&&IC(e.name)?e.name.text:void 0)),g=u?[]:W(p,(e=>d.getTypeAtLocation(e))),{argumentTypeNodes:y,argumentTypeParameters:v}=lne(d,t,g,o,c,void 0,l),b=a?gA.createNodeArray(gA.createModifiersFromModifierFlags(a)):void 0,E=Zk(f)?gA.createToken(41):void 0,T=u?void 0:function(e,n,t){const r=new Set(n.map((e=>e[0]))),i=new Map(n);if(t){const i=t.filter((t=>!n.some((n=>{var r;return e.getTypeAtLocation(t)===(null==(r=n[1])?void 0:r.argumentType)})))),a=r.size+i.length;for(let e=0;r.size<a;e+=1)r.add(one(e))}return Qe(r.values(),(e=>{var n;return gA.createTypeParameterDeclaration(void 0,e,null==(n=i.get(e))?void 0:n.constraint)}))}(d,v,_),x=une(p.length,h,y,void 0,u),S=u||void 0===m?void 0:d.typeToTypeNode(m,o,void 0,l);switch(e){case 171:return gA.createMethodDeclaration(b,E,i,void 0,T,x,S,_ne(s));case 170:return gA.createMethodSignature(b,i,void 0,T,x,void 0===S?gA.createKeywordTypeNode(157):S);case 259:return gA.createFunctionDeclaration(b,E,i,T,x,S,pne(Wo.Function_not_implemented.message,s));default:Nt.fail("Unexpected kind")}}function one(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function sne(e,n,t,r,i,a,o){let s=e.typeToTypeNode(t,r,a,o);if(s&&Ck(s)){const e=yne(s,i);e&&(bne(n,e.symbols),s=e.typeNode)}return I$(s)}function cne(e){return e.isUnionOrIntersection()?e.types.some(cne):262144&e.flags}function lne(e,n,t,r,i,a,o){const s=[],c=new Map;for(let d=0;d<t.length;d+=1){const u=t[d];if(u.isUnionOrIntersection()&&u.types.some(cne)){const e=one(d);s.push(gA.createTypeReferenceNode(e)),c.set(e,void 0);continue}const _=e.getBaseTypeOfLiteralType(u),p=sne(e,n,_,r,i,a,o);if(!p)continue;s.push(p);const f=dne(u),m=!u.isTypeParameter()||!u.constraint||524288&(l=u.constraint).flags&&16===l.objectFlags?void 0:sne(e,n,u.constraint,r,i,a,o);f&&c.set(f,{argumentType:u,constraint:m})}var l;return{argumentTypeNodes:s,argumentTypeParameters:Qe(c.entries())}}function dne(e){var n;if(3145728&e.flags)for(const t of e.types){const e=dne(t);if(e)return e}return 262144&e.flags?null==(n=e.getSymbol())?void 0:n.getName():void 0}function une(e,n,t,r,i){const a=[],o=new Map;for(let s=0;s<e;s++){const e=(null==n?void 0:n[s])||`arg${s}`,c=o.get(e);o.set(e,(c||0)+1);const l=gA.createParameterDeclaration(void 0,void 0,e+(c||""),void 0!==r&&s>=r?gA.createToken(57):void 0,i?void 0:(null==t?void 0:t[s])||gA.createKeywordTypeNode(157),void 0);a.push(l)}return a}function _ne(e){return pne(Wo.Method_not_implemented.message,e)}function pne(e,n){return gA.createBlock([gA.createThrowStatement(gA.createNewExpression(gA.createIdentifier("Error"),void 0,[gA.createStringLiteral(e,0===n)]))],!0)}function fne(e,n,t){const r=Km(n);if(!r)return;const i=gne(r,"compilerOptions");if(void 0===i)return void e.insertNodeAtObjectStart(n,r,hne("compilerOptions",gA.createObjectLiteralExpression(t.map((([e,n])=>hne(e,n))),!0)));const a=i.initializer;if(Ok(a))for(const[o,s]of t){const t=gne(a,o);void 0===t?e.insertNodeAtObjectStart(n,a,hne(o,s)):e.replaceNode(n,t.initializer,s)}}function mne(e,n,t,r){fne(e,n,[[t,r]])}function hne(e,n){return gA.createPropertyAssignment(gA.createStringLiteral(e),n)}function gne(e,n){return D(e.properties,(e=>Sw(e)&&!!e.name&&_C(e.name)&&e.name.text===n))}function yne(e,n){let t;const r=uB(e,(function e(r){if(mm(r)&&r.qualifier){const i=Jb(r.qualifier),a=kQ(i.symbol,n),o=a!==i.text?vne(r.qualifier,gA.createIdentifier(a)):r.qualifier;t=Te(t,i.symbol);const s=_B(r.typeArguments,e,zd);return gA.createTypeReferenceNode(o,s)}return EB(r,e,UV)}),zd);if(t&&r)return{typeNode:r,symbols:t}}function vne(e,n){return 79===e.kind?n:gA.createQualifiedName(vne(e.left,n),e.right)}function bne(e,n){n.forEach((n=>e.addImportFromExportedSymbol(n,!0)))}function Ene(e,n){const t=oc(n);let r=SX(e,n.start);for(;r.end<t;)r=r.parent;return r}var Tne=E({"src/services/codefixes/helpers.ts"(){Bfe(),Zee=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Zee||{})}});function xne(e,n,t,r,i,a){const o=Cne(e,n,t,r);if(!o||Xde.isRefactorErrorInfo(o))return;const s=R_e.ChangeTracker.fromContext(i),{isStatic:c,isReadonly:l,fieldName:d,accessorName:u,originalName:_,type:p,container:f,declaration:m}=o;let h,g;if(O$(d),O$(u),O$(m),O$(f),Fd(f)){const n=Lb(m);if(Ch(e)){const e=gA.createModifiersFromModifierFlags(n);h=e,g=e}else h=gA.createModifiersFromModifierFlags(function(e){e&=-65,e&=-9,16&e||(e|=4);return e}(n)),g=gA.createModifiersFromModifierFlags(function(e){return e&=-5,e&=-17,e|=8,e}(n));HN(m)&&(g=de($c(m),g))}!function(e,n,t,r,i,a){YC(t)?function(e,n,t,r,i,a){const o=gA.updatePropertyDeclaration(t,a,i,t.questionToken||t.exclamationToken,r,t.initializer);e.replaceNode(n,t,o)}(e,n,t,r,i,a):Sw(t)?function(e,n,t,r){let i=gA.updatePropertyAssignment(t,r,t.initializer);(i.modifiers||i.questionToken||i.exclamationToken)&&(i===t&&(i=gA.cloneNode(i)),i.modifiers=void 0,i.questionToken=void 0,i.exclamationToken=void 0);e.replacePropertyAssignment(n,t,i)}(e,n,t,i):e.replaceNode(n,t,gA.updateParameterDeclaration(t,a,t.dotDotDotToken,Tn(i,IC),t.questionToken,t.type,t.initializer))}(s,e,m,p,d,g);const y=function(e,n,t,r,i,a){return gA.createGetAccessorDeclaration(r,n,[],t,gA.createBlock([gA.createReturnStatement(Lne(e,i,a))],!0))}(d,u,p,h,c,f);if(O$(y),kne(s,e,y,m,f),l){const n=Hv(f);n&&function(e,n,t,r,i){if(!t.body)return;t.body.forEachChild((function t(a){Pk(a)&&108===a.expression.kind&&_C(a.argumentExpression)&&a.argumentExpression.text===i&&jE(a)&&e.replaceNode(n,a.argumentExpression,gA.createStringLiteral(r)),Mk(a)&&108===a.expression.kind&&a.name.text===i&&jE(a)&&e.replaceNode(n,a.name,gA.createIdentifier(r)),Id(a)||Fd(a)||a.forEachChild(t)}))}(s,e,n,d.text,_)}else{const n=function(e,n,t,r,i,a){return gA.createSetAccessorDeclaration(r,n,[gA.createParameterDeclaration(void 0,void 0,gA.createIdentifier("value"),void 0,t)],gA.createBlock([gA.createExpressionStatement(gA.createAssignment(Lne(e,i,a),gA.createIdentifier("value")))],!0))}(d,u,p,h,c,f);O$(n),kne(s,e,n,m,f)}return s.getChanges()}function Sne(e){return Ac(e,e.parent)||YC(e)||Sw(e)}function Ane(e,n){return IC(n)?gA.createIdentifier(e):gA.createStringLiteral(e)}function Lne(e,n,t){const r=n?t.name:gA.createThis();return IC(e)?gA.createPropertyAccessExpression(r,e):gA.createElementAccessExpression(r,gA.createStringLiteralFromNode(e))}function Cne(e,n,t,r,i=!0){const a=t===r&&i,o=Mc(SX(e,t).parent,Sne);if(!o||!rX(o.name,e,t,r)&&!a)return{error:xT(Wo.Could_not_find_property_for_which_to_generate_accessor)};if(!function(e){return IC(e)||_C(e)}(o.name))return{error:xT(Wo.Name_is_not_valid)};if(124!==(126975&Lb(o)|124))return{error:xT(Wo.Can_only_convert_property_with_modifier)};const s=o.name.text,c=DQ(s),l=Ane(c?s:U$(`_${s}`,e),o.name),d=Ane(c?U$(s.substring(1),e):s,o.name);return{isStatic:hb(o),isReadonly:Eb(o),type:Ine(o,n),container:166===o.kind?o.parent.parent:o.parent,originalName:o.name.text,declaration:o,fieldName:l,accessorName:d,renameAccessor:c}}function kne(e,n,t,r,i){Ac(r,r.parent)?e.insertMemberAtStart(n,i,t):Sw(r)?e.insertNodeAfterComma(n,r,t):e.insertNodeAfter(n,r,t)}function Ine(e,n){const t=Zv(e);if(YC(e)&&t&&e.questionToken){const e=n.getTypeChecker(),r=e.getTypeFromTypeNode(t);if(!e.isTypeAssignableTo(e.getUndefinedType(),r)){const e=gk(t)?t.types:[t];return gA.createUnionTypeNode([...e,gA.createKeywordTypeNode(155)])}}return t}function wne(e,n){const t=[];for(;e;){const r=fy(e),i=r&&n.getSymbolAtLocation(r.expression);if(!i)break;const a=2097152&i.flags?n.getAliasedSymbol(i):i,o=a.declarations&&D(a.declarations,Fd);if(!o)break;t.push(o),e=o}return t}var Rne,Nne=E({"src/services/codefixes/generateAccessors.ts"(){Bfe()}});function Dne(e,n,t,r){const i=R_e.ChangeTracker.with(e,(e=>e.replaceNode(n,t,r)));return w4(Rne,i,[Wo.Replace_import_with_0,i[0].textChanges[0].newText])}function One(e){const n=e.sourceFile,t=Wo.This_expression_is_not_callable.code===e.errorCode?210:211,r=Mc(SX(n,e.span.start),(e=>e.kind===t));if(!r)return[];return Pne(e,r.expression)}function Mne(e){const n=Mc(SX(e.sourceFile,e.span.start),(n=>n.getStart()===e.span.start&&n.getEnd()===e.span.start+e.span.length));return n?Pne(e,n):[]}function Pne(e,n){const t=e.program.getTypeChecker().getTypeAtLocation(n);if(!(t.symbol&&up(t.symbol)&&t.symbol.links.originatingImport))return[];const r=[],i=t.symbol.links.originatingImport;if(pm(i)||Ae(r,function(e,n){const t=Dp(n),r=bg(n),i=e.program.getCompilerOptions(),a=[];return a.push(Dne(e,t,n,wY(r.name,void 0,n.moduleSpecifier,DY(t,e.preferences)))),1===KT(i)&&a.push(Dne(e,t,n,gA.createImportEqualsDeclaration(void 0,!1,r.name,gA.createExternalModuleReference(n.moduleSpecifier)))),a}(e,i)),mu(n)&&(!qc(n.parent)||n.parent.name!==n)){const t=e.sourceFile,i=R_e.ChangeTracker.with(e,(e=>e.replaceNode(t,n,gA.createPropertyAccessExpression(n,"default"),{})));r.push(w4(Rne,i,Wo.Use_synthetic_default_member))}return r}var Fne,Gne,Bne,Une,Vne,jne=E({"src/services/codefixes/fixInvalidImportSyntax.ts"(){Bfe(),ore(),Rne="invalidImportSyntax",O4({errorCodes:[Wo.This_expression_is_not_callable.code,Wo.This_expression_is_not_constructable.code],getCodeActions:One}),O4({errorCodes:[Wo.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Wo.Type_0_does_not_satisfy_the_constraint_1.code,Wo.Type_0_is_not_assignable_to_type_1.code,Wo.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,Wo.Type_predicate_0_is_not_assignable_to_1.code,Wo.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,Wo._0_index_type_1_is_not_assignable_to_2_index_type_3.code,Wo.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,Wo.Property_0_in_type_1_is_not_assignable_to_type_2.code,Wo.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,Wo.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:Mne})}});function Hne(e,n){const t=SX(e,n);if(IC(t)&&YC(t.parent)){const e=Qv(t.parent);if(e)return{type:e,prop:t.parent,isJs:Ih(t.parent)}}}function Kne(e,n,t){O$(t);const r=gA.updatePropertyDeclaration(t,t.modifiers,t.name,gA.createToken(53),t.type,t.initializer);e.replaceNode(n,t,r)}function Wne(e,n,t){const r=gA.createKeywordTypeNode(155),i=gk(t.type)?t.type.types.concat(r):[t.type,r],a=gA.createUnionTypeNode(i);t.isJs?e.addJSDocTags(n,t.prop,[gA.createJSDocTypeTag(void 0,gA.createJSDocTypeExpression(a))]):e.replaceNode(n,t.type,a)}function zne(e,n,t,r){O$(t);const i=gA.updatePropertyDeclaration(t,t.modifiers,t.name,t.questionToken,t.type,r);e.replaceNode(n,t,i)}function qne(e,n){return Jne(e,e.getTypeFromTypeNode(n.type))}function Jne(e,n){if(512&n.flags)return n===e.getFalseType()||n===e.getFalseType(!0)?gA.createFalse():gA.createTrue();if(n.isStringLiteral())return gA.createStringLiteral(n.value);if(n.isNumberLiteral())return gA.createNumericLiteral(n.value);if(2048&n.flags)return gA.createBigIntLiteral(n.value);if(n.isUnion())return C(n.types,(n=>Jne(e,n)));if(n.isClass()){const e=XE(n.symbol);if(!e||fb(e,256))return;const t=Hv(e);if(t&&t.parameters.length)return;return gA.createNewExpression(gA.createIdentifier(n.symbol.name),void 0,void 0)}return e.isArrayLikeType(n)?gA.createArrayLiteralExpression():void 0}var Xne,Yne,$ne=E({"src/services/codefixes/fixStrictClassInitialization.ts"(){Bfe(),ore(),Fne="strictClassInitialization",Gne="addMissingPropertyDefiniteAssignmentAssertions",Bne="addMissingPropertyUndefinedType",Une="addMissingPropertyInitializer",O4({errorCodes:Vne=[Wo.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],getCodeActions:function(e){const n=Hne(e.sourceFile,e.span.start);if(!n)return;const t=[];return Te(t,function(e,n){const t=R_e.ChangeTracker.with(e,(t=>Wne(t,e.sourceFile,n)));return R4(Fne,t,[Wo.Add_undefined_type_to_property_0,n.prop.name.getText()],Bne,Wo.Add_undefined_type_to_all_uninitialized_properties)}(e,n)),Te(t,function(e,n){if(n.isJs)return;const t=R_e.ChangeTracker.with(e,(t=>Kne(t,e.sourceFile,n.prop)));return R4(Fne,t,[Wo.Add_definite_assignment_assertion_to_property_0,n.prop.getText()],Gne,Wo.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,n)),Te(t,function(e,n){if(n.isJs)return;const t=qne(e.program.getTypeChecker(),n.prop);if(!t)return;const r=R_e.ChangeTracker.with(e,(r=>zne(r,e.sourceFile,n.prop,t)));return R4(Fne,r,[Wo.Add_initializer_to_property_0,n.prop.name.getText()],Une,Wo.Add_initializers_to_all_uninitialized_properties)}(e,n)),t},fixIds:[Gne,Bne,Une],getAllCodeActions:e=>U4(e,Vne,((n,t)=>{const r=Hne(t.file,t.start);if(r)switch(e.fixId){case Gne:Kne(n,t.file,r.prop);break;case Bne:Wne(n,t.file,r);break;case Une:const i=qne(e.program.getTypeChecker(),r.prop);if(!i)return;zne(n,t.file,r.prop,i);break;default:Nt.fail(JSON.stringify(e.fixId))}}))})}});function Qne(e,n,t){const{allowSyntheticDefaults:r,defaultImportName:i,namedImports:a,statement:o,required:s}=t;e.replaceNode(n,o,i&&!r?gA.createImportEqualsDeclaration(void 0,!1,i,gA.createExternalModuleReference(s)):gA.createImportDeclaration(void 0,gA.createImportClause(!1,i,a),s,void 0))}function Zne(e,n,t){const{parent:r}=SX(e,t);if(!Oh(r,!0))throw Nt.failBadSyntaxKind(r);const i=Tn(r.parent,NI),a=En(i.name,IC),o=wk(i.name)?function(e){const n=[];for(const t of e.elements){if(!IC(t.name)||t.initializer)return;n.push(gA.createImportSpecifier(!1,En(t.propertyName,IC),t.name))}if(n.length)return gA.createNamedImports(n)}(i.name):void 0;if(a||o)return{allowSyntheticDefaults:nx(n.getCompilerOptions()),defaultImportName:a,namedImports:o,statement:Tn(i.parent.parent,fI),required:Me(r.arguments)}}var ete,nte,tte=E({"src/services/codefixes/requireInTs.ts"(){Bfe(),ore(),Xne="requireInTs",O4({errorCodes:Yne=[Wo.require_call_may_be_converted_to_an_import.code],getCodeActions(e){const n=Zne(e.sourceFile,e.program,e.span.start);if(!n)return;const t=R_e.ChangeTracker.with(e,(t=>Qne(t,e.sourceFile,n)));return[R4(Xne,t,Wo.Convert_require_to_import,Xne,Wo.Convert_all_require_to_import)]},fixIds:[Xne],getAllCodeActions:e=>U4(e,Yne,((n,t)=>{const r=Zne(t.file,e.program,t.start);r&&Qne(n,e.sourceFile,r)}))})}});function rte(e,n){const t=SX(e,n);if(!IC(t))return;const{parent:r}=t;if(HI(r)&&cw(r.moduleReference))return{importNode:r,name:t,moduleSpecifier:r.moduleReference.expression};if(XI(r)){const e=r.parent.parent;return{importNode:e,name:t,moduleSpecifier:e.moduleSpecifier}}}function ite(e,n,t,r){e.replaceNode(n,t.importNode,wY(t.name,void 0,t.moduleSpecifier,DY(n,r)))}var ate,ote,ste=E({"src/services/codefixes/useDefaultImport.ts"(){Bfe(),ore(),ete="useDefaultImport",O4({errorCodes:nte=[Wo.Import_may_be_converted_to_a_default_import.code],getCodeActions(e){const{sourceFile:n,span:{start:t}}=e,r=rte(n,t);if(!r)return;const i=R_e.ChangeTracker.with(e,(t=>ite(t,n,r,e.preferences)));return[R4(ete,i,Wo.Convert_to_default_import,ete,Wo.Convert_all_to_default_imports)]},fixIds:[ete],getAllCodeActions:e=>U4(e,nte,((n,t)=>{const r=rte(t.file,t.start);r&&ite(n,t.file,r,e.preferences)}))})}});function cte(e,n,t){const r=En(SX(n,t.start),dC);if(!r)return;const i=r.getText(n)+"n";e.replaceNode(n,r,gA.createBigIntLiteral(i))}var lte,dte,ute=E({"src/services/codefixes/useBigintLiteral.ts"(){Bfe(),ore(),ate="useBigintLiteral",O4({errorCodes:ote=[Wo.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],getCodeActions:function(e){const n=R_e.ChangeTracker.with(e,(n=>cte(n,e.sourceFile,e.span)));if(n.length>0)return[R4(ate,n,Wo.Convert_to_a_bigint_numeric_literal,ate,Wo.Convert_all_to_bigint_numeric_literals)]},fixIds:[ate],getAllCodeActions:e=>U4(e,ote,((e,n)=>cte(e,n.file,n)))})}});function _te(e,n){const t=SX(e,n);return Nt.assert(100===t.kind,"This token should be an ImportKeyword"),Nt.assert(202===t.parent.kind,"Token parent should be an ImportType"),t.parent}function pte(e,n,t){const r=gA.updateImportTypeNode(t,t.argument,t.assertions,t.qualifier,t.typeArguments,!0);e.replaceNode(n,t,r)}var fte,mte,hte=E({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){Bfe(),ore(),lte="fixAddModuleReferTypeMissingTypeof",O4({errorCodes:dte=[Wo.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],getCodeActions:function(e){const{sourceFile:n,span:t}=e,r=_te(n,t.start),i=R_e.ChangeTracker.with(e,(e=>pte(e,n,r)));return[R4(lte,i,Wo.Add_missing_typeof,lte,Wo.Add_missing_typeof)]},fixIds:[lte],getAllCodeActions:e=>U4(e,dte,((n,t)=>pte(n,e.sourceFile,_te(t.file,t.start))))})}});function gte(e,n){let t=SX(e,n).parent.parent;if((Yk(t)||(t=t.parent,Yk(t)))&&Vp(t.operatorToken))return t}function yte(e,n,t){const r=function(e){const n=[];let t=e;for(;;){if(Yk(t)&&Vp(t.operatorToken)&&27===t.operatorToken.kind){if(n.push(t.left),Hu(t.right))return n.push(t.right),n;if(Yk(t.right)){t=t.right;continue}return}return}}(t);r&&e.replaceNode(n,t,gA.createJsxFragment(gA.createJsxOpeningFragment(),r,gA.createJsxJsxClosingFragment()))}var vte,bte,Ete=E({"src/services/codefixes/wrapJsxInFragment.ts"(){Bfe(),ore(),fte="wrapJsxInFragment",O4({errorCodes:mte=[Wo.JSX_expressions_must_have_one_parent_element.code],getCodeActions:function(e){const{sourceFile:n,span:t}=e,r=gte(n,t.start);if(!r)return;const i=R_e.ChangeTracker.with(e,(e=>yte(e,n,r)));return[R4(fte,i,Wo.Wrap_in_JSX_fragment,fte,Wo.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[fte],getAllCodeActions:e=>U4(e,mte,((n,t)=>{const r=gte(e.sourceFile,t.start);r&&yte(n,e.sourceFile,r)}))})}});function Tte(e,n){const t=En(SX(e,n).parent.parent,ak);if(!t)return;const r=PI(t.parent)?t.parent:En(t.parent.parent,FI);return r?{indexSignature:t,container:r}:void 0}function xte(e,n,{indexSignature:t,container:r}){const a=(PI(r)?r.members:r.type.members).filter((e=>!ak(e))),o=Me(t.parameters),s=gA.createTypeParameterDeclaration(void 0,Tn(o.name,IC),o.type),c=gA.createMappedTypeNode(Eb(t)?gA.createModifier(146):void 0,s,void 0,t.questionToken,t.type,void 0),l=gA.createIntersectionTypeNode([...hy(r),c,...a.length?[gA.createTypeLiteralNode(a)]:i]);var d,u;e.replaceNode(n,r,(d=r,u=l,gA.createTypeAliasDeclaration(d.modifiers,d.name,d.typeParameters,u)))}var Ste,Ate,Lte,Cte=E({"src/services/codefixes/convertToMappedObjectType.ts"(){Bfe(),ore(),vte="fixConvertToMappedObjectType",O4({errorCodes:bte=[Wo.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],getCodeActions:function(e){const{sourceFile:n,span:t}=e,r=Tte(n,t.start);if(!r)return;const i=R_e.ChangeTracker.with(e,(e=>xte(e,n,r))),a=Uc(r.container.name);return[R4(vte,i,[Wo.Convert_0_to_mapped_object_type,a],vte,[Wo.Convert_0_to_mapped_object_type,a])]},fixIds:[vte],getAllCodeActions:e=>U4(e,bte,((e,n)=>{const t=Tte(n.file,n.start);t&&xte(e,n.file,t)}))})}}),kte=E({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){Bfe(),ore(),Ste="removeAccidentalCallParentheses",O4({errorCodes:[Wo.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){const n=Mc(SX(e.sourceFile,e.span.start),Fk);if(!n)return;const t=R_e.ChangeTracker.with(e,(t=>{t.deleteRange(e.sourceFile,{pos:n.expression.end,end:n.end})}));return[w4(Ste,t,Wo.Remove_parentheses)]},fixIds:[Ste]})}});function Ite(e,n,t){const r=En(SX(n,t.start),(e=>133===e.kind)),i=r&&En(r.parent,qk);if(!i)return;let a=i;if(Vk(i.parent)){if(IC(dT(i.expression,!1))){const e=IX(i.parent.pos,n);e&&103!==e.kind&&(a=i.parent)}}e.replaceNode(n,a,i.expression)}var wte,Rte,Nte=E({"src/services/codefixes/removeUnnecessaryAwait.ts"(){Bfe(),ore(),Ate="removeUnnecessaryAwait",O4({errorCodes:Lte=[Wo.await_has_no_effect_on_the_type_of_this_expression.code],getCodeActions:function(e){const n=R_e.ChangeTracker.with(e,(n=>Ite(n,e.sourceFile,e.span)));if(n.length>0)return[R4(Ate,n,Wo.Remove_unnecessary_await,Ate,Wo.Remove_all_unnecessary_uses_of_await)]},fixIds:[Ate],getAllCodeActions:e=>U4(e,Lte,((e,n)=>Ite(e,n.file,n)))})}});function Dte(e,n){return Mc(SX(e,n.start),KI)}function Ote(e,n,t){if(!n)return;const r=Nt.checkDefined(n.importClause);e.replaceNode(t.sourceFile,n,gA.updateImportDeclaration(n,n.modifiers,gA.updateImportClause(r,r.isTypeOnly,r.name,void 0),n.moduleSpecifier,n.assertClause)),e.insertNodeAfter(t.sourceFile,n,gA.createImportDeclaration(void 0,gA.updateImportClause(r,r.isTypeOnly,void 0,r.namedBindings),n.moduleSpecifier,n.assertClause))}var Mte,Pte,Fte=E({"src/services/codefixes/splitTypeOnlyImport.ts"(){Bfe(),ore(),O4({errorCodes:wte=[Wo.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],fixIds:[Rte="splitTypeOnlyImport"],getCodeActions:function(e){const n=R_e.ChangeTracker.with(e,(n=>Ote(n,Dte(e.sourceFile,e.span),e)));if(n.length)return[R4(Rte,n,Wo.Split_into_two_separate_import_declarations,Rte,Wo.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>U4(e,wte,((n,t)=>{Ote(n,Dte(e.sourceFile,t),e)}))})}});function Gte(e,n,t){var r;const i=t.getTypeChecker().getSymbolAtLocation(SX(e,n));if(void 0===i)return;const a=En(null==(r=null==i?void 0:i.valueDeclaration)?void 0:r.parent,DI);if(void 0===a)return;const o=dX(a,85,e);return void 0!==o?{symbol:i,token:o}:void 0}function Bte(e,n,t){e.replaceNode(n,t,gA.createToken(119))}var Ute,Vte,jte,Hte=E({"src/services/codefixes/convertConstToLet.ts"(){Bfe(),ore(),Mte="fixConvertConstToLet",O4({errorCodes:Pte=[Wo.Cannot_assign_to_0_because_it_is_a_constant.code],getCodeActions:function(e){const{sourceFile:n,span:t,program:r}=e,i=Gte(n,t.start,r);if(void 0===i)return;const a=R_e.ChangeTracker.with(e,(e=>Bte(e,n,i.token)));return[N4(Mte,a,Wo.Convert_const_to_let,Mte,Wo.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:n}=e,t=new Map;return G4(R_e.ChangeTracker.with(e,(r=>{V4(e,Pte,(e=>{const i=Gte(e.file,e.start,n);if(i&&nT(t,eB(i.symbol)))return Bte(r,e.file,i.token)}))})))},fixIds:[Mte]})}});function Kte(e,n,t){const r=SX(e,n);return 26===r.kind&&r.parent&&(Ok(r.parent)||Dk(r.parent))?{node:r}:void 0}function Wte(e,n,{node:t}){const r=gA.createToken(27);e.replaceNode(n,t,r)}var zte,qte,Jte=E({"src/services/codefixes/fixExpectedComma.ts"(){Bfe(),ore(),Ute="fixExpectedComma",Vte=Wo._0_expected.code,O4({errorCodes:jte=[Vte],getCodeActions(e){const{sourceFile:n}=e,t=Kte(n,e.span.start,e.errorCode);if(!t)return;const r=R_e.ChangeTracker.with(e,(e=>Wte(e,n,t)));return[R4(Ute,r,[Wo.Change_0_to_1,";",","],Ute,[Wo.Change_0_to_1,";",","])]},fixIds:[Ute],getAllCodeActions:e=>U4(e,jte,((n,t)=>{const r=Kte(t.file,t.start,t.code);r&&Wte(n,e.sourceFile,r)}))})}});function Xte(e,n,t,r,i){const a=SX(n,t.start);if(!IC(a)||!Fk(a.parent)||a.parent.expression!==a||0!==a.parent.arguments.length)return;const o=r.getTypeChecker(),s=o.getSymbolAtLocation(a),c=null==s?void 0:s.valueDeclaration;if(!c||!qC(c)||!Gk(c.parent.parent))return;if(null==i?void 0:i.has(c))return;null==i||i.add(c);const l=function(e){var n;if(!Ih(e))return e.typeArguments;if(Vk(e.parent)){const t=null==(n=Al(e.parent))?void 0:n.typeExpression.type;if(t&&sk(t)&&IC(t.typeName)&&"Promise"===Uc(t.typeName))return t.typeArguments}}(c.parent.parent);if(ce(l)){const t=l[0],r=!gk(t)&&!Ek(t)&&Ek(gA.createUnionTypeNode([t,gA.createKeywordTypeNode(114)]).types[0]);r&&e.insertText(n,t.pos,"("),e.insertText(n,t.end,r?") | void":" | void")}else{const t=o.getResolvedSignature(a.parent),r=null==t?void 0:t.parameters[0],i=r&&o.getTypeOfSymbolAtLocation(r,c.parent.parent);Ih(c)?(!i||3&i.flags)&&(e.insertText(n,c.parent.parent.end,")"),e.insertText(n,Ns(n.text,c.parent.parent.pos),"/** @type {Promise<void>} */(")):(!i||2&i.flags)&&e.insertText(n,c.parent.parent.expression.end,"<void>")}}var Yte=E({"src/services/codefixes/fixAddVoidToPromise.ts"(){Bfe(),ore(),zte="addVoidToPromise",O4({errorCodes:qte=[Wo.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,Wo.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],fixIds:[zte],getCodeActions(e){const n=R_e.ChangeTracker.with(e,(n=>Xte(n,e.sourceFile,e.span,e.program)));if(n.length>0)return[R4("addVoidToPromise",n,Wo.Add_void_to_Promise_resolved_without_a_value,zte,Wo.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:e=>U4(e,qte,((n,t)=>Xte(n,t.file,t,e.program,new Set)))})}}),$te={};T($te,{PreserveOptionalFlags:()=>Zee,addNewNodeForMemberSymbol:()=>rne,codeFixAll:()=>U4,createCodeFixAction:()=>R4,createCodeFixActionMaybeFixAll:()=>N4,createCodeFixActionWithoutFixAll:()=>w4,createCombinedCodeActions:()=>G4,createFileTextChanges:()=>B4,createImportAdder:()=>E3,createImportSpecifierResolver:()=>x3,createJsonPropertyAssignment:()=>hne,createMissingMemberNodes:()=>nne,createSignatureDeclarationFromCallExpression:()=>ane,createSignatureDeclarationFromSignature:()=>ine,createStubbedBody:()=>pne,eachDiagnostic:()=>V4,findAncestorMatchingSpan:()=>Ene,findJsonProperty:()=>gne,generateAccessorFromProperty:()=>xne,getAccessorConvertiblePropertyAtPosition:()=>Cne,getAllFixes:()=>F4,getAllSupers:()=>wne,getArgumentTypesAndTypeParameters:()=>lne,getFixes:()=>P4,getImportCompletionAction:()=>S3,getImportKind:()=>B3,getNoopSymbolTrackerWithResolver:()=>tne,getPromoteTypeOnlyCompletionAction:()=>A3,getSupportedErrorCodes:()=>M4,importFixName:()=>g3,importSymbols:()=>bne,moduleSpecifierToValidIdentifier:()=>e5,moduleSymbolToValidIdentifier:()=>Z3,parameterShouldGetTypeFromJSDoc:()=>G8,registerCodeFix:()=>O4,setJsonCompilerOptionValue:()=>mne,setJsonCompilerOptionValues:()=>fne,tryGetAutoImportableReferenceFromTypeNode:()=>yne,typeToAutoImportableTypeNode:()=>sne});var Qte,Zte,ere,nre,tre,rre,ire,are,ore=E({"src/services/_namespaces/ts.codefix.ts"(){W4(),Y4(),$4(),i8(),f8(),b8(),S8(),k8(),R8(),P8(),W8(),Q8(),C6(),q6(),Q6(),r3(),c3(),p3(),b3(),r5(),u5(),g5(),T5(),L5(),O5(),F5(),W5(),o7(),S7(),I7(),M7(),V7(),q7(),Q7(),t9(),c9(),l9(),f9(),b9(),C9(),N9(),M9(),j9(),tee(),oee(),uee(),yee(),xee(),kee(),Nee(),Wee(),$ee(),ene(),Tne(),Nne(),jne(),$ne(),tte(),ste(),ute(),hte(),Ete(),Cte(),kte(),Nte(),Fte(),Hte(),Jte(),Yte()}});function sre(e){return!!(e&&4&e.kind)}function cre(e){return!(!e||32!==e.kind)}function lre(e){return(sre(e)||cre(e))&&!!e.isFromPackageJson}function dre(e){return!!(e&&64&e.kind)}function ure(e){return!!(e&&128&e.kind)}function _re(e){return!!(e&&512&e.kind)}function pre(e,n,t,r,i,a,o,s,c){var l,d,u;const _=cr(),p=o||tx(zT(r.getCompilerOptions()));let f=!1,m=0,h=0,g=0,y=0;const v=c({tryResolve:function(e,n){if(n){const n=t.getModuleSpecifierForBestExportInfo(e,i,s);return n&&m++,n||"failed"}const r=p||a.allowIncompleteCompletions&&h<Qte,o=!r&&a.allowIncompleteCompletions&&y<Zte,c=r||o?t.getModuleSpecifierForBestExportInfo(e,i,s,o):void 0;(!r&&!o||o&&!c)&&(f=!0);h+=(null==c?void 0:c.computedWithoutCacheCount)||0,g+=e.length-((null==c?void 0:c.computedWithoutCacheCount)||0),o&&y++;return c||(p?"failed":"skipped")},skippedAny:()=>f,resolvedAny:()=>h>0,resolvedBeyondLimit:()=>h>Qte}),b=y?` (${(g/y*100).toFixed(1)}% hit rate)`:"";return null==(l=n.log)||l.call(n,`${e}: resolved ${h} module specifiers, plus ${m} ambient and ${g} from cache${b}`),null==(d=n.log)||d.call(n,`${e}: response is ${f?"incomplete":"complete"}`),null==(u=n.log)||u.call(n,`${e}: ${cr()-_}`),v}function fre(e,n,t,r,i,a,o,s,c,l,d=!1){var u;const{previousToken:_}=Wre(i,r);if(o&&!DX(r,i,_)&&!function(e,n,t,r){switch(n){case".":case"@":return!0;case'"':case"'":case"`":return!!t&&$$(t)&&r===t.getStart(e)+1;case"#":return!!t&&wC(t)&&!!Xm(t);case"<":return!!t&&29===t.kind&&(!Yk(t.parent)||aie(t.parent));case"/":return!!t&&(o_(t)?!!yg(t):43===t.kind&&_w(t.parent));case" ":return!!t&&jC(t)&&308===t.parent.kind;default:return Nt.assertNever(n)}}(r,o,_,i))return;if(" "===o)return a.includeCompletionsForImportStatements&&a.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;const p=n.getCompilerOptions(),f=a.allowIncompleteCompletions?null==(u=e.getIncompleteCompletionsCache)?void 0:u.call(e):void 0;if(f&&3===s&&_&&IC(_)){const t=function(e,n,t,r,i,a,o,s){const c=e.get();if(!c)return;const l=TX(n,s),d=t.text.toLowerCase(),u=$Q(n,i,r,a,o),_=pre("continuePreviousIncompleteResponse",i,$te.createImportSpecifierResolver(n,r,i,a),r,t.getStart(),a,!1,vS(t),(e=>{const t=ee(c.entries,(t=>{var a;if(!t.hasAction||!t.source||!t.data||hre(t.data))return t;if(!fie(t.name,d))return;const{origin:o}=Nt.checkDefined(zre(t.name,t.data,r,i)),s=u.get(n.path,t.data.exportMapKey),c=s&&e.tryResolve(s,!rc(fv(o.moduleSymbol.name)));if("skipped"===c)return t;if(!c||"failed"===c)return void(null==(a=i.log)||a.call(i,`Unexpected failure resolving auto import for '${t.name}' from '${t.source}'`));const l={...o,kind:32,moduleSpecifier:c.moduleSpecifier};return t.data=Rre(l),t.source=Mre(l),t.sourceDisplay=[c$(l.moduleSpecifier)],t}));return e.skippedAny()||(c.isIncomplete=void 0),t}));return c.entries=_,c.flags=4|(c.flags||0),c.optionalReplacementSpan=vre(l),c}(f,r,_,n,e,a,c,i);if(t)return t}else null==f||f.clear();const m=qie.getStringLiteralCompletions(r,i,_,p,e,n,t,a,d);if(m)return m;if(_&&Yl(_.parent)&&(81===_.kind||86===_.kind||79===_.kind))return function(e){const n=function(e){const n=[],t=new Map;let r=e;for(;r&&!Id(r);){if(kI(r)){const e=r.label.text;t.has(e)||(t.set(e,!0),n.push({name:e,kindModifiers:"",kind:"label",sortText:ere.LocationPriority}))}r=r.parent}return n}(e);if(n.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:n}}(_.parent);const h=Kre(n,t,r,p,i,a,void 0,e,l,c);var g;if(h)switch(h.kind){case 0:const o=function(e,n,t,r,i,a,o,s,c,l){const{symbols:d,contextToken:u,completionKind:_,isInSnippetScope:p,isNewIdentifierLocation:f,location:m,propertyAccessToConvert:h,keywordFilters:g,symbolToOriginInfoMap:y,recommendedCompletion:v,isJsxInitializer:b,isTypeOnlyLocation:E,isJsxIdentifierExpected:T,isRightOfOpenTag:x,isRightOfDotOrQuestionDot:S,importStatementCompletion:A,insideJsDocTagTypeExpression:L,symbolToSortTextMap:C,hasUnresolvedAutoImports:k}=a;let I=a.literals;const w=t.getTypeChecker();if(1===GT(e.scriptKind)){const n=function(e,n){const t=Mc(e,(e=>{switch(e.kind){case 284:return!0;case 43:case 31:case 79:case 208:return!1;default:return"quit"}}));if(t){const e=!!dX(t,31,n),r=t.parent.openingElement.tagName.getText(n)+(e?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:sY(t.tagName),entries:[{name:r,kind:"class",kindModifiers:void 0,sortText:ere.LocationPriority}]}}return}(m,e);if(n)return n}const R=Mc(u,bw);if(R&&(HC(u)||ty(u,R.expression))){const e=HQ(w,R.parent.clauses);I=I.filter((n=>!e.hasValue(n))),d.forEach(((n,t)=>{if(n.valueDeclaration&&Cw(n.valueDeclaration)){const r=w.getConstantValue(n.valueDeclaration);void 0!==r&&e.hasValue(r)&&(y[t]={kind:256})}}))}const N=[],D=bre(e,r);if(D&&!f&&(!d||0===d.length)&&0===g)return;const O=Pre(d,N,void 0,u,m,c,e,n,t,HT(r),i,_,o,r,s,E,h,T,b,A,v,y,C,T,x,l);if(0!==g)for(const P of Jre(g,!L&&Ch(e)))(E&&fY(hs(P.name))||!O.has(P.name))&&(O.add(P.name),me(N,P,mre,!0));for(const P of function(e,n){const t=[];if(e){const r=e.getSourceFile(),i=e.parent,a=r.getLineAndCharacterOfPosition(e.end).line,o=r.getLineAndCharacterOfPosition(n).line;(KI(i)||ew(i)&&i.moduleSpecifier)&&e===i.moduleSpecifier&&a===o&&t.push({name:ms(130),kind:"keyword",kindModifiers:"",sortText:ere.GlobalsOrKeywords})}return t}(u,c))O.has(P.name)||(O.add(P.name),me(N,P,mre,!0));for(const P of I){const n=Lre(e,o,P);O.add(n.name),me(N,n,mre,!0)}D||function(e,n,t,r,i){T2(e).forEach(((e,a)=>{if(e===n)return;const o=Bc(a);!t.has(o)&&Js(o,r)&&(t.add(o),me(i,{name:o,kind:"warning",kindModifiers:"",sortText:ere.JavascriptIdentifiers,isFromUncheckedFile:!0},mre))}))}(e,m.pos,O,HT(r),N);let M;if(o.includeCompletionsWithInsertText&&u&&!x&&!S&&(M=Mc(u,VI))){const i=Ere(M,e,o,r,n,t,s);i&&N.push(i.entry)}return{flags:a.flags,isGlobalCompletion:p,isIncomplete:!(!o.allowIncompleteCompletions||!k)||void 0,isMemberCompletion:Sre(_),isNewIdentifierLocation:f,optionalReplacementSpan:vre(m),entries:N}}(r,e,n,p,t,h,a,l,i,d);return(null==o?void 0:o.isIncomplete)&&(null==f||f.set(o)),o;case 1:return gre(koe.getJSDocTagNameCompletions());case 2:return gre(koe.getJSDocTagCompletions());case 3:return gre(koe.getJSDocParameterNameCompletions(h.tag));case 4:return g=h.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:h.isNewIdentifierLocation,entries:g.slice()};default:return Nt.assertNever(h)}}function mre(e,n){var t,r;let i=Xn(e.sortText,n.sortText);return 0===i&&(i=Xn(e.name,n.name)),0===i&&(null==(t=e.data)?void 0:t.moduleSpecifier)&&(null==(r=n.data)?void 0:r.moduleSpecifier)&&(i=zx(e.data.moduleSpecifier,n.data.moduleSpecifier)),0===i?-1:i}function hre(e){return!!(null==e?void 0:e.moduleSpecifier)}function gre(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function yre(e,n,t){return{kind:4,keywordCompletions:Jre(e,n),isNewIdentifierLocation:t}}function vre(e){return 79===(null==e?void 0:e.kind)?sY(e):void 0}function bre(e,n){return!Ch(e)||!!aS(e,n)}function Ere(e,n,t,r,i,a,o){const s=e.clauses,c=a.getTypeChecker(),l=c.getTypeAtLocation(e.parent.expression);if(l&&l.isUnion()&&N(l.types,(e=>e.isLiteral()))){const d=HQ(c,s),u=HT(r),_=DY(n,t),p=$te.createImportAdder(n,a,t,i),f=[];for(const n of l.types)if(1024&n.flags){Nt.assert(n.symbol,"An enum member type should have a symbol"),Nt.assert(n.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const t=n.symbol.valueDeclaration&&c.getConstantValue(n.symbol.valueDeclaration);if(void 0!==t){if(d.hasValue(t))continue;d.addValue(t)}const r=$te.typeToAutoImportableTypeNode(c,p,n,e,u);if(!r)return;const i=Tre(r,u,_);if(!i)return;f.push(i)}else if(!d.hasValue(n.value))switch(typeof n.value){case"object":f.push(n.value.negative?gA.createPrefixUnaryExpression(40,gA.createBigIntLiteral({negative:!1,base10Value:n.value.base10Value})):gA.createBigIntLiteral(n.value));break;case"number":f.push(n.value<0?gA.createPrefixUnaryExpression(40,gA.createNumericLiteral(-n.value)):gA.createNumericLiteral(n.value));break;case"string":f.push(gA.createStringLiteral(n.value,0===_))}if(0===f.length)return;const m=W(f,(e=>gA.createCaseClause(e,[]))),h=m$(i,null==o?void 0:o.options),g=wre({removeComments:!0,module:r.module,target:r.target,newLine:GQ(h)}),y=o?e=>g.printAndFormatNode(4,e,n,o):e=>g.printNode(4,e,n),v=W(m,((e,n)=>t.includeCompletionsWithSnippetText?`${y(e)}$${n+1}`:`${y(e)}`)).join(h);return{entry:{name:`${g.printNode(4,m[0],n)} ...`,kind:"",sortText:ere.GlobalsOrKeywords,insertText:v,hasAction:p.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!t.includeCompletionsWithSnippetText||void 0},importAdder:p}}}function Tre(e,n,t){switch(e.kind){case 180:return xre(e.typeName,n,t);case 196:const r=Tre(e.objectType,n,t),i=Tre(e.indexType,n,t);return r&&i&&gA.createElementAccessExpression(r,i);case 198:const a=e.literal;switch(a.kind){case 10:return gA.createStringLiteral(a.text,0===t);case 8:return gA.createNumericLiteral(a.text,a.numericLiteralFlags)}return;case 193:const o=Tre(e.type,n,t);return o&&(IC(o)?o:gA.createParenthesizedExpression(o));case 183:return xre(e.exprName,n,t);case 202:Nt.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function xre(e,n,t){if(IC(e))return e;const r=Bc(e.right.escapedText);return XS(r,n)?gA.createPropertyAccessExpression(xre(e.left,n,t),r):gA.createElementAccessExpression(xre(e.left,n,t),gA.createStringLiteral(r,0===t))}function Sre(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Are(e,n,t){return"object"===typeof t?mS(t)+"n":vn(t)?X$(e,n,t):JSON.stringify(t)}function Lre(e,n,t){return{name:Are(e,n,t),kind:"string",kindModifiers:"",sortText:ere.LocationPriority}}function Cre(e,n,t,r,i,a,o,s,c,l,d,u,_,p,f,m,h,g,y,v,b,E,T,x){let S,A,L,C,k,I,w=oY(t),R=Mre(u);const O=c.getTypeChecker(),M=u&&function(e){return!!(16&e.kind)}(u),P=u&&function(e){return!!(2&e.kind)}(u)||d;if(u&&function(e){return!!(1&e.kind)}(u))S=d?`this${M?"?.":""}[${Dre(o,y,l)}]`:`this${M?"?.":"."}${l}`;else if((P||M)&&p){S=P?d?`[${Dre(o,y,l)}]`:`[${l}]`:l,(M||p.questionDotToken)&&(S=`?.${S}`);const e=dX(p,24,o)||dX(p,28,o);if(!e)return;const n=pt(l,p.name.text)?p.name.end:e.end;w=vc(e.getStart(o),n)}if(f&&(void 0===S&&(S=l),S=`{${S}}`,"boolean"!==typeof f&&(w=sY(f,o))),u&&function(e){return!!(8&e.kind)}(u)&&p){void 0===S&&(S=l);const e=IX(p.pos,o);let n="";e&&aQ(e.end,e.parent,o)&&(n=";"),n+=`(await ${p.expression.getText()})`,S=d?`${n}${S}`:`${n}${M?"?.":"."}${S}`;w=vc((En(p.parent,qk)?p.parent:p.expression).getStart(o),p.end)}if(cre(u)&&(C=[c$(u.moduleSpecifier)],m&&(({insertText:S,replacementSpan:w}=function(e,n,t,r,i,a,o){const s=n.replacementSpan,c=X$(i,o,US(t.moduleSpecifier)),l=t.isDefaultExport?1:"export="===t.exportName?2:0,d=o.includeCompletionsWithSnippetText?"$1":"",u=$te.getImportKind(i,l,a,!0),_=n.couldBeTypeOnlyImportSpecifier,p=n.isTopLevelTypeOnly?` ${ms(154)} `:" ",f=_?`${ms(154)} `:"",m=r?";":"";switch(u){case 3:return{replacementSpan:s,insertText:`import${p}${US(e)}${d} = require(${c})${m}`};case 1:return{replacementSpan:s,insertText:`import${p}${US(e)}${d} from ${c}${m}`};case 2:return{replacementSpan:s,insertText:`import${p}* as ${US(e)} from ${c}${m}`};case 0:return{replacementSpan:s,insertText:`import${p}{ ${f}${US(e)}${d} } from ${c}${m}`}}}(l,m,u,h,o,g,y)),L=!!y.includeCompletionsWithSnippetText||void 0)),64===(null==u?void 0:u.kind)&&(k=!0),y.includeCompletionsWithClassMemberSnippets&&y.includeCompletionsWithInsertText&&3===v&&function(e,n,t){if(Ih(n))return!1;const r=106500;return!!(e.flags&r)&&(Fd(n)||n.parent&&n.parent.parent&&Pd(n.parent)&&n===n.parent.name&&n.parent.getLastToken(t)===n.parent.name&&Fd(n.parent.parent)||n.parent&&vR(n)&&Fd(n.parent))}(e,i,o)){let t;({insertText:S,isSnippet:L,importAdder:t,replacementSpan:w}=kre(s,c,g,y,l,e,i,a,r,b)),n=ere.ClassMemberSnippets,(null==t?void 0:t.hasFixes())&&(k=!0,R="ClassMemberSnippet/")}if(u&&ure(u)&&(({insertText:S,isSnippet:L,labelDetails:I}=u),y.useLabelDetailsInCompletionEntries||(l+=I.detail,I=void 0),R="ObjectLiteralMethodSnippet/",n=ere.SortBelow(n)),E&&!T&&y.includeCompletionsWithSnippetText&&y.jsxAttributeCompletionStyle&&"none"!==y.jsxAttributeCompletionStyle&&(!hw(i.parent)||!i.parent.initializer)){let n="braces"===y.jsxAttributeCompletionStyle;const t=O.getTypeOfSymbolAtLocation(e,i);"auto"!==y.jsxAttributeCompletionStyle||528&t.flags||1048576&t.flags&&D(t.types,(e=>!!(528&e.flags)))||(402653316&t.flags||1048576&t.flags&&N(t.types,(e=>!!(402686084&e.flags||$X(e))))?(S=`${US(l)}=${X$(o,y,"$1")}`,L=!0):n=!0),n&&(S=`${US(l)}={$1}`,L=!0)}if(void 0===S||y.includeCompletionsWithInsertText)return(sre(u)||cre(u))&&(A=Rre(u),k=!m),{name:l,kind:Zue.getSymbolKind(O,e,i),kindModifiers:Zue.getSymbolModifiers(O,e),sortText:n,source:R,hasAction:!!k||void 0,isRecommended:Ore(e,_,O)||void 0,insertText:S,replacementSpan:w,sourceDisplay:C,labelDetails:I,isSnippet:L,isPackageJsonImport:lre(u)||void 0,isImportStatementCompletion:!!m||void 0,data:A,...x?{symbol:e}:void 0}}function kre(e,n,t,r,i,a,o,s,c,l){const d=Mc(o,Fd);if(!d)return{insertText:i};let u,_,p=i;const f=n.getTypeChecker(),m=o.getSourceFile(),h=wre({removeComments:!0,module:t.module,target:t.target,omitTrailingSemicolon:!1,newLine:GQ(m$(e,null==l?void 0:l.options))}),g=$te.createImportAdder(m,n,r,e);let y;if(r.includeCompletionsWithSnippetText){u=!0;const e=gA.createEmptyStatement();y=gA.createBlock([e],!0),mL(e,{kind:0,order:0})}else y=gA.createBlock([],!0);let v=0;const{modifiers:b,span:E}=function(e,n,t){if(!e||Ss(n,t).line>Ss(n,e.getEnd()).line)return{modifiers:0};let r,i,a=0;(i=function(e){if(Ad(e))return e.kind;if(IC(e)){const n=Vc(e);if(n&&Td(n))return n}return}(e))&&(a|=Db(i),r=sY(e));YC(e.parent)&&(a|=126975&Nb(e.parent.modifiers),r=sY(e.parent));return{modifiers:a,span:r}}(c,m,s),T=!!(256&b),x=[];if($te.addNewNodeForMemberSymbol(a,d,m,{program:n,host:e},r,g,(e=>{let n=0;T&&(n|=256),Pd(e)&&1===f.getMemberOverrideModifierStatus(d,e,a)&&(n|=16384),x.length||(v=e.modifierFlagsCache|n|b),e=gA.updateModifiers(e,v),x.push(e)}),y,$te.PreserveOptionalFlags.Property,T),x.length){const e=131073;_=E,p=l?h.printAndFormatSnippetList(e,gA.createNodeArray(x),m,l):h.printSnippetList(e,gA.createNodeArray(x),m)}return{insertText:p,isSnippet:u,importAdder:g,replacementSpan:_}}function Ire(e,n,t,r,i,a,o,s){const c=o.includeCompletionsWithSnippetText||void 0;let l=n;const d=t.getSourceFile(),u=function(e,n,t,r,i,a){const o=e.getDeclarations();if(!o||!o.length)return;const s=r.getTypeChecker(),c=o[0],l=I$(Xc(c),!1),d=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,n)),u=DY(t,a),_=33554432|(0===u?268435456:0);switch(c.kind){case 168:case 169:case 170:case 171:{let e=1048576&d.flags&&d.types.length<10?s.getUnionType(d.types,2):d;if(1048576&e.flags){const n=j(e.types,(e=>s.getSignaturesOfType(e,0).length>0));if(1!==n.length)return;e=n[0]}if(1!==s.getSignaturesOfType(e,0).length)return;const t=s.typeToTypeNode(e,n,_,$te.getNoopSymbolTrackerWithResolver({program:r,host:i}));if(!t||!ck(t))return;let o;if(a.includeCompletionsWithSnippetText){const e=gA.createEmptyStatement();o=gA.createBlock([e],!0),mL(e,{kind:0,order:0})}else o=gA.createBlock([],!0);const c=t.parameters.map((e=>gA.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer)));return gA.createMethodDeclaration(void 0,void 0,l,void 0,void 0,c,void 0,o)}default:return}}(e,t,d,r,i,o);if(!u)return;const _=wre({removeComments:!0,module:a.module,target:a.target,omitTrailingSemicolon:!1,newLine:GQ(m$(i,null==s?void 0:s.options))});l=s?_.printAndFormatSnippetList(80,gA.createNodeArray([u],!0),d,s):_.printSnippetList(80,gA.createNodeArray([u],!0),d);const p=Cj({removeComments:!0,module:a.module,target:a.target,omitTrailingSemicolon:!0}),f=gA.createMethodSignature(void 0,"",u.questionToken,u.typeParameters,u.parameters,u.type);return{isSnippet:c,insertText:l,labelDetails:{detail:p.printNode(4,f,d)}}}function wre(e){let n;const t=R_e.createWriter(_E(e)),r=Cj(e,t),i={...t,write:e=>a(e,(()=>t.write(e))),nonEscapingWrite:t.write,writeLiteral:e=>a(e,(()=>t.writeLiteral(e))),writeStringLiteral:e=>a(e,(()=>t.writeStringLiteral(e))),writeSymbol:(e,n)=>a(e,(()=>t.writeSymbol(e,n))),writeParameter:e=>a(e,(()=>t.writeParameter(e))),writeComment:e=>a(e,(()=>t.writeComment(e))),writeProperty:e=>a(e,(()=>t.writeProperty(e)))};return{printSnippetList:function(e,t,r){const i=o(e,t,r);return n?R_e.applyChanges(i,n):i},printAndFormatSnippetList:function(e,t,r,i){const a={text:o(e,t,r),getLineAndCharacterOfPosition(e){return Ss(this,e)}},s=UQ(i,r),c=X(t,(e=>{const n=R_e.assignPositionsToNode(e);return Mfe.formatNodeGivenIndentation(n,a,r.languageVariant,0,0,{...i,options:s})})),l=n?Re(de(c,n),((e,n)=>Vn(e.span,n.span))):c;return R_e.applyChanges(a.text,l)},printNode:function(e,t,r){const i=s(e,t,r);return n?R_e.applyChanges(i,n):i},printAndFormatNode:function(e,t,r,i){const a={text:s(e,t,r),getLineAndCharacterOfPosition(e){return Ss(this,e)}},o=UQ(i,r),c=R_e.assignPositionsToNode(t),l=Mfe.formatNodeGivenIndentation(c,a,r.languageVariant,0,0,{...i,options:o}),d=n?Re(de(l,n),((e,n)=>Vn(e.span,n.span))):l;return R_e.applyChanges(a.text,d)}};function a(e,r){const i=US(e);if(i!==e){const e=t.getTextPos();r();const a=t.getTextPos();n=Te(n||(n=[]),{newText:i,span:{start:e,length:a-e}})}else r()}function o(e,t,a){return n=void 0,i.clear(),r.writeList(e,t,a,i),i.getText()}function s(e,t,a){return n=void 0,i.clear(),r.writeNode(e,t,a,i),i.getText()}}function Rre(e){const n=e.fileName?void 0:fv(e.moduleSymbol.name),t=!!e.isFromPackageJson||void 0;if(cre(e)){return{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:n,fileName:e.fileName,isPackageJsonImport:t}}return{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:fv(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function Nre(e,n,t){const r="default"===e.exportName,i=!!e.isPackageJsonImport;if(hre(e)){return{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:n,fileName:e.fileName,moduleSymbol:t,isDefaultExport:r,isFromPackageJson:i}}return{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:n,fileName:e.fileName,moduleSymbol:t,isDefaultExport:r,isFromPackageJson:i}}function Dre(e,n,t){return/^\d+$/.test(t)?t:X$(e,n,t)}function Ore(e,n,t){return e===n||!!(1048576&e.flags)&&t.getExportSymbolOfSymbol(e)===n}function Mre(e){return sre(e)?fv(e.moduleSymbol.name):cre(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function Pre(e,n,t,r,i,a,o,s,c,l,d,u,_,p,f,m,h,g,y,v,b,E,T,x,S,A=!1){var L;const C=cr(),k=function(e){const n=Mc(e,(e=>Fm(e)||function(e){return e.parent&&Hk(e.parent)&&e.parent.body===e}(e)||Jd(e)?"quit":NI(e)));return n}(i),I=oQ(o),w=c.getTypeChecker(),R=new Map;for(let D=0;D<e.length;D++){const d=e[D],m=null==E?void 0:E[D],C=qre(d,l,m,u,!!g);if(!C||R.get(C.name)&&(!m||!ure(m))||1===u&&T&&!N(d,T))continue;const{name:k,needsConvertPropertyAccess:O}=C,M=null!=(L=null==T?void 0:T[eB(d)])?L:ere.LocationPriority,P=Cre(d,pie(d,w)?ere.Deprecated(M):M,t,r,i,a,o,s,c,k,O,m,b,h,y,v,I,p,_,u,f,x,S,A);if(!P)continue;const F=(!m||dre(m))&&!(void 0===d.parent&&!ce(d.declarations,(e=>e.getSourceFile()===i.getSourceFile())));R.set(k,F),me(n,P,mre,!0)}return d("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(cr()-C)),{has:e=>R.has(e),add:e=>R.set(e,!0)};function N(e,n){let t=e.flags;if(!Iw(i)){if(ZI(i.parent))return!0;if(k&&e.valueDeclaration===k)return!1;const r=BE(e,w);if(o.externalModuleIndicator&&!p.allowUmdGlobalAccess&&n[eB(e)]===ere.GlobalsOrKeywords&&(n[eB(r)]===ere.AutoImportSuggestions||n[eB(r)]===ere.LocationPriority))return!1;if(t|=UE(r),bJ(i))return!!(1920&t);if(m)return _ie(e,w)}return!!(111551&t)}}function Fre(e,n,t,r,i,a,o){if("SwitchCases/"===i.source)return{type:"cases"};if(i.data){const n=zre(i.name,i.data,e,a);if(n){const{contextToken:e,previousToken:i}=Wre(r,t);return{type:"symbol",symbol:n.symbol,location:TX(t,r),previousToken:i,contextToken:e,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:n.origin}}}const s=e.getCompilerOptions(),c=Kre(e,n,t,s,r,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},i,a,void 0);if(!c)return{type:"none"};if(0!==c.kind)return{type:"request",request:c};const{symbols:l,literals:d,location:u,completionKind:_,symbolToOriginInfoMap:p,contextToken:f,previousToken:m,isJsxInitializer:h,isTypeOnlyLocation:g}=c,y=D(d,(e=>Are(t,o,e)===i.name));return void 0!==y?{type:"literal",literal:y}:C(l,((e,n)=>{const t=p[n],r=qre(e,HT(s),t,_,c.isJsxIdentifierExpected);return r&&r.name===i.name&&("ClassMemberSnippet/"===i.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===i.source&&8196&e.flags||Mre(t)===i.source)?{type:"symbol",symbol:e,location:u,origin:t,contextToken:f,previousToken:m,isJsxInitializer:h,isTypeOnlyLocation:g}:void 0}))||{type:"none"}}function Gre(e,n,t,r,i,a,o,s,c){const l=e.getTypeChecker(),d=e.getCompilerOptions(),{name:u,source:_,data:p}=i,{previousToken:f,contextToken:m}=Wre(r,t);if(DX(t,r,f))return qie.getStringLiteralCompletionDetails(u,t,r,f,l,d,a,c,s);const h=Fre(e,n,t,r,i,a,s);switch(h.type){case"request":{const{request:e}=h;switch(e.kind){case 1:return koe.getJSDocTagNameCompletionDetails(u);case 2:return koe.getJSDocTagCompletionDetails(u);case 3:return koe.getJSDocParameterNameCompletionDetails(u);case 4:return ce(e.keywordCompletions,(e=>e.name===u))?Bre(u,"keyword",5):void 0;default:return Nt.assertNever(e)}}case"symbol":{const{symbol:n,location:i,contextToken:f,origin:m,previousToken:g}=h,{codeActions:y,sourceDisplay:v}=function(e,n,t,r,i,a,o,s,c,l,d,u,_,p,f,m){if((null==p?void 0:p.moduleSpecifier)&&d&&oie(t||d).replacementSpan)return{codeActions:void 0,sourceDisplay:[c$(p.moduleSpecifier)]};if("ClassMemberSnippet/"===f){const{importAdder:r}=kre(o,a,s,_,e,i,n,l,t,u);if(r){return{sourceDisplay:void 0,codeActions:[{changes:R_e.ChangeTracker.with({host:o,formatContext:u,preferences:_},r.writeFixes),description:BQ([Wo.Includes_imports_of_types_referenced_by_0,e])}]}}}if(dre(r)){const e=$te.getPromoteTypeOnlyCompletionAction(c,r.declaration.name,a,o,u,_);return Nt.assertIsDefined(e,"Expected to have a code action for promoting type-only alias"),{codeActions:[e],sourceDisplay:void 0}}if(!r||!sre(r)&&!cre(r))return{codeActions:void 0,sourceDisplay:void 0};const h=r.isFromPackageJson?o.getPackageJsonAutoImportProvider().getTypeChecker():a.getTypeChecker(),{moduleSymbol:g}=r,y=h.getMergedSymbol(BE(i.exportSymbol||i,h)),v=29===(null==t?void 0:t.kind)&&zu(t.parent),{moduleSpecifier:b,codeAction:E}=$te.getImportCompletionAction(y,g,null==p?void 0:p.exportMapKey,c,e,v,o,a,u,d&&IC(d)?d.getStart(c):l,_,m);return Nt.assert(!(null==p?void 0:p.moduleSpecifier)||b===p.moduleSpecifier),{sourceDisplay:[c$(b)],codeActions:[E]}}(u,i,f,m,n,e,a,d,t,r,g,o,s,p,_,c);return Ure(n,_re(m)?m.symbolName:n.name,l,t,i,c,y,v)}case"literal":{const{literal:e}=h;return Bre(Are(t,s,e),"string","string"===typeof e?8:7)}case"cases":{const{entry:n,importAdder:r}=Ere(m.parent,t,s,e.getCompilerOptions(),a,e,void 0);if(r.hasFixes()){const e=R_e.ChangeTracker.with({host:a,formatContext:o,preferences:s},r.writeFixes);return{name:n.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:e,description:BQ([Wo.Includes_imports_of_types_referenced_by_0,u])}]}}return{name:n.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return are().some((e=>e.name===u))?Bre(u,"keyword",5):void 0;default:Nt.assertNever(h)}}function Bre(e,n,t){return Vre(e,"",n,[e$(e,t)])}function Ure(e,n,t,r,i,a,o,s){const{displayParts:c,documentation:l,symbolKind:d,tags:u}=t.runWithCancellationToken(a,(n=>Zue.getSymbolDisplayPartsDocumentationAndSymbolKind(n,e,r,i,i,7)));return Vre(n,Zue.getSymbolModifiers(t,e),d,c,l,u,o,s)}function Vre(e,n,t,r,i,a,o,s){return{name:e,kindModifiers:n,kind:t,displayParts:r,documentation:i,tags:a,codeActions:o,source:s,sourceDisplay:s}}function jre(e,n,t,r,i,a,o){const s=Fre(e,n,t,r,i,a,o);return"symbol"===s.type?s.symbol:void 0}function Hre(e,n,t){const r=t.getAccessibleSymbolChain(e,n,67108863,!1);return r?Me(r):e.parent&&(function(e){var n;return!!(null==(n=e.declarations)?void 0:n.some((e=>308===e.kind)))}(e.parent)?e:Hre(e.parent,n,t))}function Kre(e,n,t,r,i,a,o,s,c,l){const d=e.getTypeChecker(),u=bre(t,r);let _=cr(),p=SX(t,i);n("getCompletionData: Get current token: "+(cr()-_)),_=cr();const f=KX(t,i,p);n("getCompletionData: Is inside comment: "+(cr()-_));let m=!1,h=!1;if(f){if(WX(t,i)){if(64===t.text.charCodeAt(i-1))return{kind:1};{const e=XJ(i,t);if(!/[^\*|\s(/)]/.test(t.text.substring(e,i)))return{kind:2}}}const e=function(e,n){return Mc(e,(e=>!(!Yu(e)||!QJ(e,n))||!!zw(e)&&"quit"))}(p,i);if(e){if(e.tagName.pos<=i&&i<=e.tagName.end)return{kind:1};const n=function(e){if(function(e){switch(e.kind){case 344:case 351:case 345:case 347:case 349:case 352:case 353:return!0;case 348:return!!e.constraint;default:return!1}}(e)){const n=_R(e)?e.constraint:e.typeExpression;return n&&312===n.kind?n:void 0}if(Xw(e)||hR(e))return e.class;return}(e);if(n&&(p=SX(t,i),p&&(ry(p)||351===p.parent.kind&&p.parent.name===p)||(m=me(n))),!m&&cR(e)&&(Vp(e.name)||e.name.pos<=i&&i<=e.name.end))return{kind:3,tag:e}}if(!m)return void n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}_=cr();const g=!m&&Ch(t),y=Wre(i,t),v=y.previousToken;let b=y.contextToken;n("getCompletionData: Get previous token: "+(cr()-_));let E,T,x=p,S=!1,L=!1,k=!1,I=!1,w=!1,R=!1,N=TX(t,i),O=0,M=!1,P=0;if(b){const e=oie(b);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(F=e.keywordCompletion,{name:ms(F),kind:"keyword",kindModifiers:"",sortText:ere.GlobalsOrKeywords})],isNewIdentifierLocation:e.isNewIdentifierLocation};O=function(e){if(154===e)return 8;Nt.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(e.keywordCompletion)}if(e.replacementSpan&&a.includeCompletionsForImportStatements&&a.includeCompletionsWithInsertText&&(P|=2,T=e,M=e.isNewIdentifierLocation),!e.replacementSpan&&function(e){const r=cr(),a=function(e){return(fC(e)||gd(e))&&(ZJ(e,i)||i===e.end&&(!!e.isUnterminated||fC(e)))}(e)||function(e){const n=e.parent,r=n.kind;switch(e.kind){case 27:return 257===r||258===(a=e).parent.kind&&!VX(a,t,d)||240===r||263===r||ue(r)||261===r||204===r||262===r||Fd(n)&&!!n.typeParameters&&n.typeParameters.end>=e.pos;case 24:case 22:return 204===r;case 58:return 205===r;case 20:return 295===r||ue(r);case 18:return 263===r;case 29:return 260===r||228===r||261===r||262===r||Od(r);case 124:return 169===r&&!Fd(n.parent);case 25:return 166===r||!!n.parent&&204===n.parent.kind;case 123:case 121:case 122:return 166===r&&!ek(n.parent);case 128:return 273===r||278===r||271===r;case 137:case 151:return!iie(e);case 79:if(273===r&&e===n.name&&"type"===e.text)return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 138:return!0;case 154:return 273!==r;case 41:return Id(e.parent)&&!QC(e.parent)}var a;if($re(Zre(e))&&iie(e))return!1;if(se(e)&&(!IC(e)||xd(Zre(e))||me(e)))return!1;switch(Zre(e)){case 126:case 84:case 85:case 136:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 132:return YC(e.parent)}const o=Mc(e.parent,Fd);if(o&&e===v&&le(e,i))return!1;const s=vy(e.parent,169);if(s&&e!==v&&Fd(v.parent.parent)&&i<=v.end){if(le(e,v.end))return!1;if(63!==e.kind&&(lU(s)||e_(s)))return!0}return ry(e)&&!Aw(e.parent)&&!hw(e.parent)&&!(Fd(e.parent)&&(e!==v||i>v.end))}(e)||function(e){if(8===e.kind){const n=e.getFullText();return"."===n.charAt(n.length-1)}return!1}(e)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(N===e.parent&&(283===N.kind||282===N.kind))return!1;if(283===e.parent.kind)return 283!==N.parent.kind;if(284===e.parent.kind||282===e.parent.kind)return!!e.parent.parent&&281===e.parent.parent.kind}return!1}(e)||uC(e);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(cr()-r)),a}(b))return n("Returning an empty list because completion was requested in an invalid position."),O?yre(O,g,oe()):void 0;let r=b.parent;if(24===b.kind||28===b.kind)switch(S=24===b.kind,L=28===b.kind,r.kind){case 208:E=r,x=E.expression;if(Vp(cT(E))||(Fk(x)||Id(x))&&x.end===b.pos&&x.getChildCount(t)&&21!==Ge(x.getChildren(t)).kind)return;break;case 163:x=r.left;break;case 264:x=r.name;break;case 202:x=r;break;case 233:x=r.getFirstToken(t),Nt.assert(100===x.kind||103===x.kind);break;default:return}else if(!T){if(r&&208===r.kind&&(b=r,r=r.parent),p.parent===N)switch(p.kind){case 31:281!==p.parent.kind&&283!==p.parent.kind||(N=p);break;case 43:282===p.parent.kind&&(N=p)}switch(r.kind){case 284:43===b.kind&&(I=!0,N=b);break;case 223:if(!aie(r))break;case 282:case 281:case 283:R=!0,29===b.kind&&(k=!0,N=b);break;case 291:case 290:(19===v.kind||79===v.kind&&288===v.parent.kind)&&(R=!0);break;case 288:if(r.initializer===v&&v.end<i){R=!0;break}switch(v.kind){case 63:w=!0;break;case 79:R=!0,r!==v.parent&&!r.initializer&&dX(r,63,t)&&(w=v)}}}}var F;const G=cr();let B,U=5,V=!1,H=!1,K=[];const W=[],z=[],q=new Map,J=function(){return m||!!T&&md(N.parent)||(e=b,!(e&&(112===e.kind&&(183===e.parent.kind||Wk(e.parent))||129===e.kind&&179===e.parent.kind))&&(VX(b,t,d)||xm(N)||function(e){if(e){const n=e.parent.kind;switch(e.kind){case 58:return 169===n||168===n||166===n||257===n||Od(n);case 63:return 262===n;case 128:return 231===n;case 29:return 180===n||213===n;case 94:return 165===n;case 150:return 235===n}}return!1}(b)));var e}(),Y=Nn((n=>LY(n?s.getPackageJsonAutoImportProvider():e,s)));if(S||L)!function(){U=2;const e=mm(x),n=m||e&&!x.isTypeOf||xm(x.parent)||VX(b,t,d),r=bJ(x);if(Ld(x)||e||Mk(x)){const t=BI(x.parent);t&&(M=!0);let i=d.getSymbolAtLocation(x);if(i&&(i=BE(i,d),1920&i.flags)){const o=d.getExportsOfModule(i);Nt.assertEachIsDefined(o,"getExportsOfModule() should all be defined");const s=n=>d.isValidPropertyAccess(e?x:x.parent,n.name),c=e=>_ie(e,d),l=t?e=>{var n;return!!(1920&e.flags)&&!(null==(n=e.declarations)?void 0:n.every((e=>e.parent===x.parent)))}:r?e=>c(e)||s(e):n?c:s;for(const e of o)l(e)&&K.push(e);if(!n&&i.declarations&&i.declarations.some((e=>308!==e.kind&&264!==e.kind&&263!==e.kind))){let e=d.getTypeOfSymbolAtLocation(i,x).getNonOptionalType(),n=!1;if(e.isNullableType()){const t=S&&!L&&!1!==a.includeAutomaticOptionalChainCompletions;(t||L)&&(e=e.getNonNullableType(),t&&(n=!0))}ne(e,!!(32768&x.flags),n)}return}}if(!n){d.tryGetThisTypeAt(x,!1);let e=d.getTypeAtLocation(x).getNonOptionalType(),n=!1;if(e.isNullableType()){const t=S&&!L&&!1!==a.includeAutomaticOptionalChainCompletions;(t||L)&&(e=e.getNonNullableType(),t&&(n=!0))}ne(e,!!(32768&x.flags),n)}}();else if(k)K=d.getJsxIntrinsicTagNamesAt(N),Nt.assertEachIsDefined(K,"getJsxIntrinsicTagNames() should all be defined"),ie(),U=1,O=0;else if(I){const e=b.parent.parent.openingElement.tagName,n=d.getSymbolAtLocation(e);n&&(K=[n]),U=1,O=0}else if(!ie())return O?yre(O,g,M):void 0;n("getCompletionData: Semantic work: "+(cr()-G));const $=v&&function(e,n,t,r){const{parent:i}=e;switch(e.kind){case 79:return J$(e,r);case 63:switch(i.kind){case 257:return r.getContextualType(i.initializer);case 223:return r.getTypeAtLocation(i.left);case 288:return r.getContextualTypeForJsxAttribute(i);default:return}case 103:return r.getContextualType(i);case 82:const a=En(i,bw);return a?Z$(a,r):void 0;case 18:return!vw(i)||lw(i.parent)||pw(i.parent)?void 0:r.getContextualTypeForJsxAttribute(i.parent);default:const o=wue.getArgumentInfoForCompletions(e,n,t);return o?r.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(27===e.kind?1:0)):Y$(e.kind)&&Yk(i)&&Y$(i.operatorToken.kind)?r.getTypeAtLocation(i.left):r.getContextualType(e)}}(v,i,t,d),Q=ee($&&($.isUnion()?$.types:[$]),(e=>!e.isLiteral()||1024&e.flags?void 0:e.value)),Z=v&&$&&function(e,n,t){return C(n&&(n.isUnion()?n.types:[n]),(n=>{const r=n&&n.symbol;return r&&424&r.flags&&!JE(r)?Hre(r,e,t):void 0}))}(v,$,d);return{kind:0,symbols:K,completionKind:U,isInSnippetScope:h,propertyAccessToConvert:E,isNewIdentifierLocation:M,location:N,keywordFilters:O,literals:Q,symbolToOriginInfoMap:W,recommendedCompletion:Z,previousToken:v,contextToken:b,isJsxInitializer:w,insideJsDocTagTypeExpression:m,symbolToSortTextMap:z,isTypeOnlyLocation:J,isJsxIdentifierExpected:R,isRightOfOpenTag:k,isRightOfDotOrQuestionDot:S||L,importStatementCompletion:T,hasUnresolvedAutoImports:H,flags:P};function ne(e,n,t){M=!!e.getStringIndexType(),L&&ce(e.getCallSignatures())&&(M=!0);const r=202===x.kind?x:x.parent;if(u)for(const i of e.getApparentProperties())d.isValidPropertyAccessForCompletions(r,e,i)&&te(i,!1,t);else K.push(...j(tie(e,d),(n=>d.isValidPropertyAccessForCompletions(r,e,n))));if(n&&a.includeCompletionsWithInsertText){const n=d.getPromisedTypeOfPromise(e);if(n)for(const e of n.getApparentProperties())d.isValidPropertyAccessForCompletions(r,n,e)&&te(e,!0,t)}}function te(n,r,o){var c;const l=C(n.declarations,(e=>En(Xc(e),WC)));if(l){const r=re(l.expression),o=r&&d.getSymbolAtLocation(r),f=o&&Hre(o,b,d);if(f&&nT(q,eB(f))){const n=K.length;K.push(f);const r=f.parent;if(r&&gY(r)&&d.tryGetMemberInModuleExportsAndProperties(f.name,r)===f){const o=rc(fv(r.name))?null==(c=Op(r))?void 0:c.fileName:void 0,{moduleSpecifier:l}=(B||(B=$te.createImportSpecifierResolver(t,e,s,a))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:o,isFromPackageJson:!1,moduleSymbol:r,symbol:f,targetFlags:BE(f,d).flags}],i,vS(N))||{};if(l){const e={kind:p(6),moduleSymbol:r,isDefaultExport:!1,symbolName:f.name,exportName:f.name,fileName:o,moduleSpecifier:l};W[n]=e}}else W[n]={kind:p(2)}}else a.includeCompletionsWithInsertText&&(_(n),u(n),K.push(n))}else _(n),u(n),K.push(n);function u(e){(function(e){return!!(e.valueDeclaration&&32&Lb(e.valueDeclaration)&&Fd(e.valueDeclaration.parent))})(e)&&(z[eB(e)]=ere.LocalDeclarationPriority)}function _(e){a.includeCompletionsWithInsertText&&(r&&nT(q,eB(e))?W[K.length]={kind:p(8)}:o&&(W[K.length]={kind:16}))}function p(e){return o?16|e:e}}function re(e){return IC(e)?e:Mk(e)?re(e.expression):void 0}function ie(){const n=function(){const e=function(e){if(!e)return;const n=e.parent;switch(e.kind){case 18:if(uk(n))return n;break;case 26:case 27:case 79:if(168===n.kind&&uk(n.parent))return n.parent}return}(b);if(!e)return 0;const n=(yk(e.parent)?e.parent:void 0)||e,t=rie(n,d);if(!t)return 0;const r=d.getTypeFromTypeNode(n),i=tie(t,d),a=tie(r,d),o=new Set;return a.forEach((e=>o.add(e.escapedName))),K=de(K,j(i,(e=>!o.has(e.escapedName)))),U=0,M=!0,1}()||function(){const n=K.length,t=function(e){if(e){const{parent:n}=e;switch(e.kind){case 18:case 27:if(Ok(n)||wk(n))return n;break;case 41:return QC(n)?En(n.parent,Ok):void 0;case 79:return"async"===e.text&&Aw(e.parent)?e.parent.parent:void 0}}return}(b);if(!t)return 0;let i,o;if(U=0,207===t.kind){const e=function(e,n){const t=n.getContextualType(e);if(t)return t;const r=$g(e.parent);if(Yk(r)&&63===r.operatorToken.kind&&e===r.left)return n.getTypeAtLocation(r);if(mu(r))return n.getContextualType(r);return}(t,d);if(void 0===e)return 33554432&t.flags?2:(V=!0,0);const n=d.getContextualType(t,4),r=(n||e).getStringIndexType(),a=(n||e).getNumberIndexType();if(M=!!r||!!a,i=eie(e,n,t,d),o=t.properties,0===i.length&&!a)return V=!0,0}else{Nt.assert(203===t.kind),M=!1;const e=Xy(t.parent);if(!Im(e))return Nt.fail("Root declaration is not variable-like.");let n=n_(e)||!!Qv(e)||247===e.parent.parent.kind;if(n||166!==e.kind||(mu(e.parent)?n=!!d.getContextualType(e.parent):171!==e.parent.kind&&175!==e.parent.kind||(n=mu(e.parent.parent)&&!!d.getContextualType(e.parent.parent))),n){const e=d.getTypeAtLocation(t);if(!e)return 2;i=d.getPropertiesOfType(e).filter((n=>d.isPropertyAccessible(t,!1,!1,e,n))),o=t.elements}}if(i&&i.length>0){const l=function(e,n){if(0===n.length)return e;const t=new Set,r=new Set;for(const a of n){if(299!==a.kind&&300!==a.kind&&205!==a.kind&&171!==a.kind&&174!==a.kind&&175!==a.kind&&301!==a.kind)continue;if(me(a))continue;let e;if(Lw(a))_e(a,t);else if(Nk(a)&&a.propertyName)79===a.propertyName.kind&&(e=a.propertyName.escapedText);else{const n=Xc(a);e=n&&My(n)?Fy(n):void 0}void 0!==e&&r.add(e)}const i=e.filter((e=>!r.has(e.escapedName)));return fe(t,i),i}(i,Nt.checkDefined(o));K=de(K,l),pe(),207===t.kind&&a.includeCompletionsWithObjectLiteralMethodSnippets&&a.includeCompletionsWithInsertText&&(function(e){var n;for(let t=e;t<K.length;t++){const e=K[t],i=eB(e),a=null==W?void 0:W[t],o=qre(e,HT(r),a,0,!1);if(o){const e=null!=(n=z[i])?n:ere.LocationPriority,{name:t}=o;z[i]=ere.ObjectLiteralProperty(e,t)}}}(n),function(n,t){if(Ih(N))return;n.forEach((n=>{if(!function(e){if(!(8196&e.flags))return!1;return!0}(n))return;const i=qre(n,HT(r),void 0,0,!1);if(!i)return;const{name:o}=i,l=Ire(n,o,t,e,s,r,a,c);if(!l)return;const d={kind:128,...l};P|=32,W[K.length]=d,K.push(n)}))}(l,t))}return 1}()||(T?(M=!0,ae(),1):0)||function(){if(!b)return 0;const e=18===b.kind||27===b.kind?En(b.parent,sT):hY(b)?En(b.parent.parent,sT):void 0;if(!e)return 0;hY(b)||(O=8);const{moduleSpecifier:n}=272===e.kind?e.parent.parent:e.parent;if(!n)return M=!0,272===e.kind?2:0;const t=d.getSymbolAtLocation(n);if(!t)return M=!0,2;U=3,M=!1;const r=d.getExportsAndPropertiesOfModule(t),i=new Set(e.elements.filter((e=>!me(e))).map((e=>(e.propertyName||e.name).escapedText))),a=r.filter((e=>"default"!==e.escapedName&&!i.has(e.escapedName)));K=de(K,a),a.length||(O=0);return 1}()||function(){var e;const n=!b||18!==b.kind&&27!==b.kind?void 0:En(b.parent,nw);if(!n)return 0;const t=Mc(n,yt(Iw,BI));return U=5,M=!1,null==(e=t.locals)||e.forEach(((e,n)=>{var r,i;K.push(e),(null==(i=null==(r=t.symbol)?void 0:r.exports)?void 0:i.has(n))&&(z[eB(e)]=ere.OptionalMember)})),1}()||(function(e){if(e){const n=e.parent;switch(e.kind){case 20:case 27:return ek(e.parent)?e.parent:void 0;default:if(se(e))return n.parent}}}(b)?(U=5,M=!0,O=4,1):0)||function(){const e=function(e,n,t,r){var i;switch(t.kind){case 354:return En(t.parent,tT);case 1:const n=En(Fe(Tn(t.parent,Iw).statements),tT);if(n&&!dX(n,19,e))return n;break;case 79:if(Vc(t))return;if(YC(t.parent)&&t.parent.initializer===t)return;if(iie(t))return Mc(t,tT)}if(!n)return;if(135===t.kind||IC(n)&&YC(n.parent)&&Fd(t))return Mc(n,Fd);switch(n.kind){case 63:return;case 26:case 19:return iie(t)&&t.parent.name===t?t.parent.parent:En(t,tT);case 18:case 27:return En(n.parent,tT);default:if(tT(t)){if(Ss(e,n.getEnd()).line!==Ss(e,r).line)return t;const a=Fd(n.parent.parent)?$re:Yre;return a(n.kind)||41===n.kind||IC(n)&&a(null!=(i=Vc(n))?i:0)?n.parent.parent:void 0}return}}(t,b,N,i);if(!e)return 0;if(U=3,M=!0,O=41===b.kind?0:Fd(e)?2:3,!Fd(e))return 1;const n=26===b.kind?b.parent.parent:b.parent;let r=Pd(n)?Lb(n):0;if(79===b.kind&&!me(b))switch(b.getText()){case"private":r|=8;break;case"static":r|=32;break;case"override":r|=16384}ZC(n)&&(r|=32);if(!(8&r)){const n=X(Fd(e)&&16384&r?Et(py(e)):hy(e),(n=>{const t=d.getTypeAtLocation(n);return 32&r?(null==t?void 0:t.symbol)&&d.getPropertiesOfType(d.getTypeOfSymbolAtLocation(t.symbol,e)):t&&d.getPropertiesOfType(t)}));K=de(K,function(e,n,t){const r=new Set;for(const i of n){if(169!==i.kind&&171!==i.kind&&174!==i.kind&&175!==i.kind)continue;if(me(i))continue;if(pb(i,8))continue;if(mb(i)!==!!(32&t))continue;const e=Oy(i.name);e&&r.add(e)}return e.filter((e=>!r.has(e.escapedName)&&!!e.declarations&&!(8&GE(e))&&!(e.valueDeclaration&&bd(e.valueDeclaration))))}(n,e.members,r)),A(K,((e,n)=>{const t=null==e?void 0:e.valueDeclaration;if(t&&Pd(t)&&t.name&&WC(t.name)){const t={kind:512,symbolName:d.symbolToString(e)};W[n]=t}}))}return 1}()||function(){const e=function(e){if(e){const n=e.parent;switch(e.kind){case 31:case 30:case 43:case 79:case 208:case 289:case 288:case 290:if(n&&(282===n.kind||283===n.kind)){if(31===e.kind){const r=IX(e.pos,t,void 0);if(!n.typeArguments||r&&43===r.kind)break}return n}if(288===n.kind)return n.parent.parent;break;case 10:if(n&&(288===n.kind||290===n.kind))return n.parent.parent;break;case 19:if(n&&291===n.kind&&n.parent&&288===n.parent.kind)return n.parent.parent.parent;if(n&&290===n.kind)return n.parent.parent}}return}(b),n=e&&d.getContextualType(e.attributes);if(!n)return 0;const r=e&&d.getContextualType(e.attributes,4);return K=de(K,function(e,n){const t=new Set,r=new Set;for(const a of n)me(a)||(288===a.kind?t.add(a.name.escapedText):yw(a)&&_e(a,r));const i=e.filter((e=>!t.has(e.escapedName)));return fe(r,i),i}(eie(n,r,e.attributes,d),e.attributes.properties)),pe(),U=3,M=!1,1}()||(function(){O=function(e){if(e){let n;const t=Mc(e.parent,(e=>Fd(e)?"quit":!(!Rd(e)||n!==e.body)||(n=e,!1)));return t&&t}}(b)?5:1,U=1,M=oe(),v!==b&&Nt.assert(!!v,"Expected 'contextToken' to be defined when different from 'previousToken'.");const e=v!==b?v.getStart():i,n=function(e,n,t){let r=e;for(;r&&!aX(r,n,t);)r=r.parent;return r}(b,e,t)||t;h=function(e){switch(e.kind){case 308:case 225:case 291:case 238:return!0;default:return Bu(e)}}(n);const r=2887656|(J?0:111551),o=v&&!vS(v);K=de(K,d.getSymbolsInScope(n,r)),Nt.assertEachIsDefined(K,"getSymbolsInScope() should all be defined");for(let i=0;i<K.length;i++){const e=K[i];if(d.isArgumentsSymbol(e)||ce(e.declarations,(e=>e.getSourceFile()===t))||(z[eB(e)]=ere.GlobalsOrKeywords),o&&!(111551&e.flags)){const n=e.declarations&&D(e.declarations,pd);if(n){const e={kind:64,declaration:n};W[i]=e}}}if(a.includeCompletionsWithInsertText&&308!==n.kind){const e=d.tryGetThisTypeAt(n,!1,Fd(n.parent)?n:void 0);if(e&&!function(e,n,t){const r=t.resolveName("self",void 0,111551,!1);if(r&&t.getTypeOfSymbolAtLocation(r,n)===e)return!0;const i=t.resolveName("global",void 0,111551,!1);if(i&&t.getTypeOfSymbolAtLocation(i,n)===e)return!0;const a=t.resolveName("globalThis",void 0,111551,!1);if(a&&t.getTypeOfSymbolAtLocation(a,n)===e)return!0;return!1}(e,t,d))for(const n of tie(e,d))W[K.length]={kind:1},K.push(n),z[eB(n)]=ere.SuggestedClassMembers}ae(),J&&(O=b&&hu(b.parent)?6:7)}(),1);return 1===n}function ae(){var n,r;if(!(T||!V&&a.includeCompletionsForModuleExports&&(t.externalModuleIndicator||t.commonJsModuleIndicator||AY(e.getCompilerOptions())||xY(e))))return;if(Nt.assert(!(null==o?void 0:o.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),o&&!o.source)return;P|=1;const c=v===b&&T?"":v&&IC(v)?v.text.toLowerCase():"",d=null==(n=s.getModuleSpecifierCache)?void 0:n.call(s),u=$Q(t,s,e,a,l),_=null==(r=s.getPackageJsonAutoImportProvider)?void 0:r.call(s),p=o?void 0:gQ(t,a,s);function f(n){const r=En(n.moduleSymbol.valueDeclaration,Iw);if(!r){const r=fv(n.moduleSymbol.name);return(!bq.nodeCoreModules.has(r)||pt(r,"node:")===FQ(t,e))&&(!p||p.allowsImportingAmbientModule(n.moduleSymbol,Y(n.isFromPackageJson)))}return JQ(n.isFromPackageJson?_:e,t,r,a,p,Y(n.isFromPackageJson),d)}pre("collectAutoImports",s,B||(B=$te.createImportSpecifierResolver(t,e,s,a)),e,i,a,!!T,vS(N),(e=>{u.search(t.path,k,((e,n)=>{if(!Js(e,HT(s.getCompilationSettings())))return!1;if(!o&&Sy(e))return!1;if(!J&&!T&&!(111551&n))return!1;if(J&&!(790504&n))return!1;const t=e.charCodeAt(0);return(!k||!(t<65||t>90))&&(!!o||fie(e,c))}),((n,t,r,i)=>{if(o&&!ce(n,(e=>o.source===fv(e.moduleSymbol.name))))return;if(!(n=j(n,f)).length)return;const a=e.tryResolve(n,r)||{};if("failed"===a)return;let s,c=n[0];"skipped"!==a&&({exportInfo:c=n[0],moduleSpecifier:s}=a);const l=1===c.exportKind;!function(e,n){const t=eB(e);if(z[t]===ere.GlobalsOrKeywords)return;W[K.length]=n,z[t]=T?ere.LocationPriority:ere.AutoImportSuggestions,K.push(e)}(l&&iE(c.symbol)||c.symbol,{kind:s?32:4,moduleSpecifier:s,symbolName:t,exportMapKey:i,exportName:2===c.exportKind?"export=":c.symbol.name,fileName:c.moduleFileName,isDefaultExport:l,moduleSymbol:c.moduleSymbol,isFromPackageJson:c.isFromPackageJson})})),H=e.skippedAny(),P|=e.resolvedAny()?8:0,P|=e.resolvedBeyondLimit()?16:0}))}function oe(){if(b){const e=b.parent.kind,n=Zre(b);switch(n){case 27:return 210===e||173===e||211===e||206===e||223===e||181===e||207===e;case 20:return 210===e||173===e||211===e||214===e||193===e;case 22:return 206===e||178===e||164===e;case 142:case 143:case 100:return!0;case 24:return 264===e;case 18:return 260===e||207===e;case 63:return 257===e||223===e;case 15:return 225===e;case 16:return 236===e;case 132:return 171===e||300===e;case 41:return 171===e}if($re(n))return!0}return!1}function se(e){return!!e.parent&&qC(e.parent)&&ek(e.parent.parent)&&(xd(e.kind)||ry(e))}function le(e,n){return 63!==e.kind&&(26===e.kind||!kE(e.end,n,t))}function ue(e){return Od(e)&&173!==e}function _e(e,n){const t=e.expression,r=d.getSymbolAtLocation(t),i=r&&d.getTypeOfSymbolAtLocation(r,t),a=i&&i.properties;a&&a.forEach((e=>{n.add(e.name)}))}function pe(){K.forEach((e=>{var n;if(16777216&e.flags){const t=eB(e);z[t]=null!=(n=z[t])?n:ere.OptionalMember}}))}function fe(e,n){if(0!==e.size)for(const t of n)e.has(t.name)&&(z[eB(t)]=ere.MemberDeclaredBySpreadAssignment)}function me(e){return e.getStart(t)<=i&&i<=e.getEnd()}}function Wre(e,n){const t=IX(e,n);if(t&&e<=t.end&&(Fl(t)||by(t.kind))){return{contextToken:IX(t.getFullStart(),n,void 0),previousToken:t}}return{contextToken:t,previousToken:t}}function zre(e,n,t,r){const i=n.isPackageJsonImport?r.getPackageJsonAutoImportProvider():t,a=i.getTypeChecker(),o=n.ambientModuleName?a.tryFindAmbientModule(n.ambientModuleName):n.fileName?a.getMergedSymbol(Nt.checkDefined(i.getSourceFile(n.fileName)).symbol):void 0;if(!o)return;let s="export="===n.exportName?a.resolveExternalModuleSymbol(o):a.tryGetMemberInModuleExportsAndProperties(n.exportName,o);if(!s)return;return s="default"===n.exportName&&iE(s)||s,{symbol:s,origin:Nre(n,e,o)}}function qre(e,n,t,r,i){if(function(e){return!!(e&&256&e.kind)}(t))return;const a=function(e){return sre(e)||cre(e)||_re(e)}(t)?t.symbolName:e.name;if(void 0===a||1536&e.flags&&Uh(a.charCodeAt(0))||Uy(e))return;const o={name:a,needsConvertPropertyAccess:!1};if(Js(a,n,i?1:0)||e.valueDeclaration&&bd(e.valueDeclaration))return o;switch(r){case 3:return _re(t)?{name:t.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(a),needsConvertPropertyAccess:!1};case 2:case 1:return 32===a.charCodeAt(0)?void 0:{name:a,needsConvertPropertyAccess:!0};case 5:case 4:return o;default:Nt.assertNever(r)}}function Jre(e,n){if(!n)return Xre(e);const t=e+8+1;return ire[t]||(ire[t]=Xre(e).filter((e=>!function(e){switch(e){case 126:case 131:case 160:case 134:case 136:case 92:case 159:case 117:case 138:case 118:case 140:case 141:case 142:case 143:case 144:case 148:case 149:case 161:case 121:case 122:case 123:case 146:case 152:case 153:case 154:case 156:case 157:return!0;default:return!1}}(hs(e.name)))))}function Xre(e){return ire[e]||(ire[e]=are().filter((n=>{const t=hs(n.name);switch(e){case 0:return!1;case 1:return Qre(t)||136===t||142===t||154===t||143===t||126===t||fY(t)&&155!==t;case 5:return Qre(t);case 2:return $re(t);case 3:return Yre(t);case 4:return xd(t);case 6:return fY(t)||85===t;case 7:return fY(t);case 8:return 154===t;default:return Nt.assertNever(e)}})))}function Yre(e){return 146===e}function $re(e){switch(e){case 126:case 127:case 135:case 137:case 151:case 132:case 136:case 161:return!0;default:return Sd(e)}}function Qre(e){return 132===e||133===e||128===e||150===e||154===e||!Ey(e)&&!$re(e)}function Zre(e){var n;return IC(e)?null!=(n=Vc(e))?n:0:e.kind}function eie(e,n,t,r){const i=n&&n!==e,a=!i||3&n.flags?e:r.getUnionType([e,n]),o=function(e,n,t){return e.isUnion()?t.getAllPossiblePropertiesOfTypes(j(e.types,(e=>!(134348796&e.flags||t.isArrayLikeType(e)||t.isTypeInvalidDueToUnionDiscriminant(e,n)||t.typeHasCallOrConstructSignatures(e)||e.isClass()&&nie(e.getApparentProperties()))))):e.getApparentProperties()}(a,t,r);return a.isClass()&&nie(o)?[]:i?j(o,(function(e){return!S(e.declarations)||ce(e.declarations,(e=>e.parent!==t))})):o}function nie(e){return ce(e,(e=>!!(24&GE(e))))}function tie(e,n){return e.isUnion()?Nt.checkEachDefined(n.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):Nt.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function rie(e,n){if(!e)return;if(zd(e)&&i_(e.parent))return n.getTypeArgumentConstraint(e);const t=rie(e.parent,n);if(t)switch(e.kind){case 168:return n.getTypeOfPropertyOfContextualType(t,e.symbol.escapedName);case 190:case 184:case 189:return t}}function iie(e){return e.parent&&Kd(e.parent)&&tT(e.parent.parent)}function aie({left:e}){return Vp(e)}function oie(e){var n,t,r;let i,a=!1;const o=function(){const n=e.parent;if(HI(n))return i=154===e.kind?void 0:154,uie(n.moduleReference)?n:void 0;if(lie(n,e)&&die(n.parent))return n;if($I(n)||XI(n)){if(n.parent.isTypeOnly||18!==e.kind&&100!==e.kind&&27!==e.kind||(i=154),die(n)){if(19!==e.kind&&79!==e.kind)return n.parent.parent;a=!0,i=158}return}if(jC(e)&&Iw(n))return i=154,e;if(jC(e)&&KI(n))return i=154,uie(n.moduleSpecifier)?n:void 0;return}();return{isKeywordOnlyCompletion:a,keywordCompletion:i,isNewIdentifierLocation:!(!o&&154!==i),isTopLevelTypeOnly:!!(null==(t=null==(n=En(o,KI))?void 0:n.importClause)?void 0:t.isTypeOnly)||!!(null==(r=En(o,HI))?void 0:r.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!o&&lie(o,e),replacementSpan:sie(o)}}function sie(e){var n,t,r;if(!e)return;const i=null!=(n=Mc(e,yt(KI,HI)))?n:e,a=i.getSourceFile();if(bE(i,a))return sY(i,a);Nt.assert(100!==i.kind&&273!==i.kind);const o=269===i.kind?null!=(r=cie(null==(t=i.importClause)?void 0:t.namedBindings))?r:i.moduleSpecifier:i.moduleReference,s={pos:i.getFirstToken().getStart(),end:o.pos};return bE(s,a)?dY(s):void 0}function cie(e){var n;return D(null==(n=En(e,$I))?void 0:n.elements,(n=>{var t;return!n.propertyName&&Sy(n.name.text)&&27!==(null==(t=IX(n.name.pos,e.getSourceFile(),e))?void 0:t.kind)}))}function lie(e,n){return QI(e)&&(e.isTypeOnly||n===e.name&&hY(n))}function die(e){if(!uie(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if($I(e)){const n=cie(e);return(n?e.elements.indexOf(n):e.elements.length)<2}return!0}function uie(e){var n;return!!Vp(e)||!(null==(n=En(cw(e)?e.expression:e,o_))?void 0:n.text)}function _ie(e,n,t=new Map){return r(e)||r(BE(e.exportSymbol||e,n));function r(e){return!!(788968&e.flags)||n.isUnknownSymbol(e)||!!(1536&e.flags)&&nT(t,eB(e))&&n.getExportsOfModule(e).some((e=>_ie(e,n,t)))}}function pie(e,n){const t=BE(e,n).declarations;return!!S(t)&&N(t,PQ)}function fie(e,n){if(0===n.length)return!0;let t,r=!1,i=0;const a=e.length;for(let o=0;o<a;o++){const a=e.charCodeAt(o),s=n.charCodeAt(i);if((a===s||a===mie(s))&&(r||(r=void 0===t||97<=t&&t<=122&&65<=a&&a<=90||95===t&&95!==a),r&&i++,i===n.length))return!0;t=a}return!1}function mie(e){return 97<=e&&e<=122?e-32:e}var hie,gie,yie,vie=E({"src/services/completions.ts"(){Bfe(),Qie(),Qte=100,Zte=1e3,ere={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:e=>"z"+e,ObjectLiteralProperty:(e,n)=>`${e}\0${n}\0`,SortBelow:e=>e+"1"},nre=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e))(nre||{}),tre=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(tre||{}),rre=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(rre||{}),ire=[],are=Rn((()=>{const e=[];for(let n=81;n<=162;n++)e.push({name:ms(n),kind:"keyword",kindModifiers:"",sortText:ere.GlobalsOrKeywords});return e}))}});function bie(){const e=new Map;return{add:function(n){const t=e.get(n.name);(!t||hie[t.kind]<hie[n.kind])&&e.set(n.name,n)},has:e.has.bind(e),values:e.values.bind(e)}}function Eie(e,n,t,r,i,a,o,s,c){if(rY(e,n)){const t=function(e,n,t,r){const i=SX(e,n),a=Hs(e.text,i.pos),o=a&&D(a,(e=>n>=e.pos&&n<=e.end));if(!o)return;const s=e.text.slice(o.pos,n),c=gie.exec(s);if(!c)return;const[,l,d,u]=c,_=po(e.path),p="path"===d?Mie(u,_,Die(t,0,e),r,!0,e.path):"types"===d?Kie(r,t,_,Uie(u),Die(t,1,e)):Nt.fail();return Rie(u,o.pos+l.length,Qe(p.values()))}(e,n,r,i);return t&&xie(t)}if(DX(e,n,t)){if(!t||!o_(t))return;return function(e,n,t,r,i,a,o,s,c,l){if(void 0===e)return;const d=cY(n);switch(e.kind){case 0:return xie(e.paths);case 1:{const u=[];return Pre(e.symbols,u,n,n,t,c,t,r,i,99,a,4,s,o,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:d,entries:u}}case 2:{const t=e.types.map((e=>({name:e.value,kindModifiers:"",kind:"string",sortText:ere.LocationPriority,replacementSpan:oY(n)})));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:d,entries:t}}default:return Nt.assertNever(e)}}(Aie(e,t,n,a.getTypeChecker(),r,i,s),t,e,i,a,o,r,s,n,c)}}function Tie(e,n,t,r,i,a,o,s,c){if(!r||!o_(r))return;const l=Aie(n,r,t,i,a,o,c);return l&&function(e,n,t,r,i,a){switch(t.kind){case 0:{const n=D(t.paths,(n=>n.name===e));return n&&Vre(e,Sie(n.extension),n.kind,[c$(e)])}case 1:{const o=D(t.symbols,(n=>n.name===e));return o&&Ure(o,o.name,i,r,n,a)}case 2:return D(t.types,(n=>n.value===e))?Vre(e,"","string",[c$(e)]):void 0;default:return Nt.assertNever(t)}}(e,r,l,n,i,s)}function xie(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((({name:e,kind:n,span:t,extension:r})=>({name:e,kind:n,kindModifiers:Sie(r),sortText:ere.LocationPriority,replacementSpan:t})))}}function Sie(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return Nt.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return Nt.assertNever(e)}}function Aie(e,n,t,r,i,a,o){const s=Lie(n.parent);switch(s.kind){case 198:{const l=Lie(s.parent);switch(l.kind){case 230:case 180:{const e=Mc(s,(e=>e.parent===l));return e?{kind:2,types:kie(r.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 196:const{indexType:d,objectType:u}=l;if(!QJ(d,t))return;return Cie(r.getTypeFromTypeNode(u));case 202:return{kind:0,paths:Nie(e,n,i,a,r,o)};case 189:{if(!sk(l.parent))return;const e=(c=s,ee(l.types,(e=>e!==c&&Lk(e)&&_C(e.literal)?e.literal.text:void 0)));return{kind:2,types:kie(r.getTypeArgumentConstraint(l)).filter((n=>!G(e,n.value))),isNewIdentifier:!1}}default:return}}case 299:return Ok(s.parent)&&s.name===n?function(e,n){const t=e.getContextualType(n);if(!t)return;const r=e.getContextualType(n,4);return{kind:1,symbols:eie(t,r,n,e),hasIndexSignature:Q$(t)}}(r,s.parent):l()||l(0);case 209:{const{expression:e,argumentExpression:t}=s;return n===ey(t)?Cie(r.getTypeAtLocation(e)):void 0}case 210:case 211:case 288:if(!function(e){return Fk(e.parent)&&De(e.parent.arguments)===e&&IC(e.parent.expression)&&"require"===e.parent.expression.escapedText}(n)&&!pm(s)){const i=wue.getArgumentInfoForCompletions(288===s.kind?s.parent:n,t,e);return i&&function(e,n,t,r){let i=!1;const a=new Map,o=[],s=zu(e)?Nt.checkDefined(Mc(n.parent,hw)):n;r.getResolvedSignatureForStringLiteralCompletions(e,s,o);const c=X(o,(n=>{if(!sB(n)&&t.argumentCount>n.parameters.length)return;let o=n.getTypeParameterAtPosition(t.argumentIndex);if(zu(e)){const e=r.getTypeOfPropertyOfType(o,s.name.text);e&&(o=e)}return i=i||!!(4&o.flags),kie(o,a)}));return S(c)?{kind:2,types:c,isNewIdentifier:i}:void 0}(i.invocation,n,i,r)||l()}case 269:case 275:case 280:return{kind:0,paths:Nie(e,n,i,a,r,o)};case 292:const d=HQ(r,s.parent.clauses),u=l();if(!u)return;return{kind:2,types:u.types.filter((e=>!d.hasValue(e.value))),isNewIdentifier:!1};default:return l()}var c;function l(e=4){const t=kie(J$(n,r,e));if(t.length)return{kind:2,types:t,isNewIdentifier:!1}}}function Lie(e){switch(e.kind){case 193:return Yg(e);case 214:return $g(e);default:return e}}function Cie(e){return e&&{kind:1,symbols:j(e.getApparentProperties(),(e=>!(e.valueDeclaration&&bd(e.valueDeclaration)))),hasIndexSignature:Q$(e)}}function kie(e,n=new Map){return e?(e=EY(e)).isUnion()?X(e.types,(e=>kie(e,n))):!e.isStringLiteral()||1024&e.flags||!nT(n,e.value)?i:[e]:i}function Iie(e,n,t){return{name:e,kind:n,extension:t}}function wie(e){return Iie(e,"directory",void 0)}function Rie(e,n,t){const r=function(e,n){const t=Math.max(e.lastIndexOf(za),e.lastIndexOf(qa)),r=-1!==t?t+1:0,i=e.length-r;return 0===i||Js(e.substr(r,i),99)?void 0:yc(n+r,i)}(e,n),i=0===e.length?void 0:yc(n,e.length);return t.map((({name:e,kind:n,extension:t})=>-1!==Math.max(e.indexOf(za),e.indexOf(qa))?{name:e,kind:n,extension:t,span:i}:{name:e,kind:n,extension:t,span:r}))}function Nie(e,n,t,r,a,o){return Rie(n.text,n.getStart(e)+1,function(e,n,t,r,a,o){const s=vo(n.text),c=o_(n)?LH(e,n):void 0,l=e.path,d=po(l),u=Die(t,1,e,a,o,c);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){const n=e.length>=3&&46===e.charCodeAt(1)?2:1,t=e.charCodeAt(n);return 47===t||92===t}return!1}(s)||!t.baseUrl&&(eo(s)||Za(s))?function(e,n,t,r,i,a){return t.rootDirs?function(e,n,t,r,i,a,o){const s=i.project||a.getCurrentDirectory(),c=!(a.useCaseSensitiveFileNames&&a.useCaseSensitiveFileNames()),l=function(e,n,t,r){e=e.map((e=>Ao(eo(e)?e:Eo(n,e))));const i=C(e,(e=>Po(e,t,n,r)?t.substr(e.length):void 0));return pe([...e.map((e=>Eo(e,i))),t],Gn,Wn)}(e,s,t,c);return X(l,(e=>Qe(Mie(n,e,r,a,!0,o).values())))}(t.rootDirs,e,n,a,t,r,i):Qe(Mie(e,n,a,r,!1,i).values())}(s,d,t,r,l,u):function(e,n,t,r,a,o,s){const{baseUrl:c,paths:l}=r,d=bie(),u=zT(r);if(c){const n=Ao(Eo(r.project||a.getCurrentDirectory(),c));Mie(e,n,o,a,!1,void 0,d),l&&Fie(d,e,n,o,a,l)}const _=Uie(e);for(const i of function(e,n,t){const r=t.getAmbientModules().map((e=>fv(e.name))).filter((n=>pt(n,e)&&n.indexOf("*")<0));if(void 0!==n){const e=Io(n);return r.map((n=>ft(n,e)))}return r}(e,_,s))d.add(Iie(i,"external module name",void 0));if(Kie(a,r,n,_,o,d),kY(u)){let s=!1;if(void 0===_)for(const e of function(e,n){if(!e.readFile||!e.fileExists)return i;const t=[];for(const r of pQ(n,e)){const n=dE(r,e);for(const e of yie){const r=n[e];if(r)for(const e in r)ze(r,e)&&!pt(e,"@types/")&&t.push(e)}}return t}(a,n)){const n=Iie(e,"external module name",void 0);d.has(n.name)||(s=!0,d.add(n))}if(!s){let i=n=>{const t=Eo(n,"node_modules");dQ(a,t)&&Mie(e,t,o,a,!1,void 0,d)};if(_&&rx(r)){const n=i;i=r=>{const i=go(e);i.shift();let s=i.shift();if(!s)return n(r);if(pt(s,"@")){const e=i.shift();if(!e)return n(r);s=Eo(s,e)}const c=Eo(r,"node_modules",s),l=Eo(c,"package.json");if(lQ(a,l)){const n=dE(l,a).exports;if(n){if("object"!==typeof n||null===n)return;const r=Je(n),s=i.join("/")+(i.length&&co(e)?"/":""),l=99===t?["node","import","types"]:["node","require","types"];return void Gie(d,s,c,o,a,r,(e=>Et(Bie(n[e],l))),LF)}}return n(r)}}Ho(n,i)}}return Qe(d.values())}(s,d,c,t,r,u,a)}(e,n,t,r,a,o))}function Die(e,n,t,r,i,a){return{extensionsToSearch:J(Oie(e,r)),referenceKind:n,importingSourceFile:t,endingPreference:null==i?void 0:i.importModuleSpecifierEnding,resolutionMode:a}}function Oie(e,n){const t=n?ee(n.getAmbientModules(),(e=>{const n=e.name.slice(1,-1);if(n.startsWith("*.")&&!n.includes("/"))return n.slice(1)})):[],r=[...Gx(e),t];return kY(zT(e))?Bx(e,r):r}function Mie(e,n,t,r,i,a,o=bie()){var s;void 0===e&&(e=""),co(e=vo(e))||(e=po(e)),""===e&&(e="."+za);const c=To(n,e=Io(e)),l=co(c)?c:po(c);if(!i){const e=fQ(l,r);if(e){const n=dE(e,r).typesVersions;if("object"===typeof n){const i=null==(s=LP(n))?void 0:s.paths;if(i){const n=po(e);if(Fie(o,c.slice(Io(n).length),n,t,r,i))return o}}}}const d=!(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames());if(!dQ(r,l))return o;const u=cQ(r,l,t.extensionsToSearch,void 0,["./*"]);if(u)for(let p of u){if(p=Ao(p),a&&0===Mo(p,a,n,d))continue;const{name:e,extension:i}=Pie(fo(p),r.getCompilationSettings(),t);o.add(Iie(e,"script",i))}const _=sQ(r,l);if(_)for(const p of _){const e=fo(Ao(p));"@types"!==e&&o.add(wie(e))}return o}function Pie(e,n,t){const r=MG.tryGetRealFileNameForNonJsDeclarationFileName(e);if(r)return{name:r,extension:iS(r)};if(0===t.referenceKind)return{name:e,extension:iS(e)};const i=Hx(t.endingPreference,t.resolutionMode,n,t.importingSourceFile);if(3===i){if(so(e,rp))return{name:e,extension:iS(e)};const t=MG.tryGetJSExtensionForFile(e,n);return t?{name:Yx(e,t),extension:t}:{name:e,extension:iS(e)}}if((0===i||1===i)&&so(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:qx(e),extension:iS(e)};const a=MG.tryGetJSExtensionForFile(e,n);return a?{name:Yx(e,a),extension:a}:{name:e,extension:iS(e)}}function Fie(e,n,t,r,i,a){return Gie(e,n,t,r,i,Je(a),(e=>a[e]),((e,n)=>{const t=$x(e),r=$x(n),i="object"===typeof t?t.prefix.length:e.length;return Un("object"===typeof r?r.prefix.length:n.length,i)}))}function Gie(e,n,t,r,i,a,o,s){let c,l=[];for(const d of a){if("."===d)continue;const e=d.replace(/^\.\//,""),a=o(d);if(a){const o=$x(e);if(!o)continue;const u="object"===typeof o&&ht(o,n);u&&(void 0===c||-1===s(d,c))&&(c=d,l=l.filter((e=>!e.matchedPattern))),"string"!==typeof o&&void 0!==c&&1===s(d,c)||l.push({matchedPattern:u,results:Vie(e,a,n,t,r,i).map((({name:e,kind:n,extension:t})=>Iie(e,n,t)))})}}return l.forEach((n=>n.results.forEach((n=>e.add(n))))),void 0!==c}function Bie(e,n){if("string"===typeof e)return e;if(e&&"object"===typeof e&&!gn(e))for(const t in e)if("default"===t||n.indexOf(t)>-1||IF(n,t)){return Bie(e[t],n)}}function Uie(e){return Wie(e)?co(e)?e:po(e):void 0}function Vie(e,n,t,r,a,o){if(!et(e,"*"))return rt(e,"*")?i:l(e,"script");const s=e.slice(0,e.length-1),c=mt(t,s);if(void 0===c){return"/"===e[e.length-2]?l(s,"directory"):X(n,(e=>{var n;return null==(n=jie("",r,e,a,o))?void 0:n.map((({name:e,...n})=>({name:s+e,...n})))}))}return X(n,(e=>jie(c,r,e,a,o)));function l(e,n){return pt(e,t)?[{name:ko(e),kind:n,extension:void 0}]:i}}function jie(e,n,t,r,a){if(!a.readDirectory)return;const o=$x(t);if(void 0===o||vn(o))return;const s=To(o.prefix),c=co(o.prefix)?s:po(s),l=co(o.prefix)?"":fo(s),d=Wie(e),u=d?co(e)?e:po(e):void 0,_=d?Eo(c,l+u):c,p=Ao(o.suffix),f=Ao(Eo(n,_)),m=d?f:Io(f)+l,h=p?"**/*"+p:"./*";return[...ee(cQ(a,f,r.extensionsToSearch,void 0,[h]),(e=>{const n=function(e){const n=(t=Ao(e),r=m,i=p,pt(t,r)&&et(t,i)?t.slice(r.length,t.length-i.length):void 0);var t,r,i;return void 0===n?void 0:Hie(n)}(e);if(n){if(Wie(n))return wie(go(Hie(n))[1]);const{name:e,extension:t}=Pie(n,a.getCompilationSettings(),r);return Iie(e,"script",t)}})),...p?i:ee(sQ(a,f),(e=>"node_modules"===e?void 0:wie(e)))]}function Hie(e){return e[0]===za?e.slice(1):e}function Kie(e,n,t,r,a,o=bie()){const s=new Map,c=uQ((()=>CP(n,e)))||i;for(const i of c)l(i);for(const i of pQ(t,e)){l(Eo(po(i),"node_modules/@types"))}return o;function l(t){if(dQ(e,t))for(const i of sQ(e,t)){const c=GF(i);if(!n.types||G(n.types,c))if(void 0===r)s.has(c)||(o.add(Iie(c,"external module name",void 0)),s.set(c,!0));else{const n=Eo(t,i),s=Tx(r,c,Tv(e));void 0!==s&&Mie(s,n,a,e,!1,void 0,o)}}}}function Wie(e){return rt(e,za)}var zie=E({"src/services/stringCompletions.ts"(){Bfe(),Qie(),hie={directory:0,script:1,"external module name":2},gie=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,yie=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}}),qie={};T(qie,{getStringLiteralCompletionDetails:()=>Tie,getStringLiteralCompletions:()=>Eie});var Jie=E({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){zie()}}),Xie={};T(Xie,{CompletionKind:()=>rre,CompletionSource:()=>nre,SortText:()=>ere,StringCompletions:()=>qie,SymbolOriginInfoKind:()=>tre,createCompletionDetails:()=>Vre,createCompletionDetailsForSymbol:()=>Ure,getCompletionEntriesFromSymbols:()=>Pre,getCompletionEntryDetails:()=>Gre,getCompletionEntrySymbol:()=>jre,getCompletionsAtPosition:()=>fre,getPropertiesForObjectExpression:()=>eie,moduleSpecifierResolutionCacheAttemptLimit:()=>Zte,moduleSpecifierResolutionLimit:()=>Qte});var Yie,$ie,Qie=E({"src/services/_namespaces/ts.Completions.ts"(){vie(),Jie()}});function Zie(e,n,t,r){const i=function(e,n,t){const r=new Map;for(const i of e)t&&t.throwIfCancellationRequested(),rae(i,((e,t)=>{const i=n.getSymbolAtLocation(t);if(i){const n=eB(i).toString();let t=r.get(n);t||r.set(n,t=[]),t.push(e)}}));return r}(e,t,r);return(a,o,s)=>{const{directImports:c,indirectUsers:l}=function(e,n,t,{exportingModuleSymbol:r,exportKind:i},a,o){const s=yY(),c=yY(),l=[],d=!!r.globalExports,u=d?void 0:[];return p(r),{directImports:l,indirectUsers:_()};function _(){if(d)return e;if(r.declarations)for(const e of r.declarations)Af(e)&&n.has(e.getSourceFile().fileName)&&g(e);return u.map(Dp)}function p(e){const n=y(e);if(n)for(const t of n)if(s(t))switch(o&&o.throwIfCancellationRequested(),t.kind){case 210:if(pm(t)){f(t);break}if(!d){const e=t.parent;if(2===i&&257===e.kind){const{name:n}=e;if(79===n.kind){l.push(n);break}}}break;case 79:break;case 268:h(t,t.name,fb(t,1),!1);break;case 269:l.push(t);const e=t.importClause&&t.importClause.namedBindings;e&&271===e.kind?h(t,e.name,!1,!0):!d&&Eg(t)&&g(sae(t));break;case 275:t.exportClause?277===t.exportClause.kind?g(sae(t),!0):l.push(t):p(oae(t,a));break;case 202:!d&&t.isTypeOf&&!t.qualifier&&m(t)&&g(t.getSourceFile(),!0),l.push(t);break;default:Nt.failBadSyntaxKind(t,"Unexpected import kind.")}}function f(e){g(Mc(e,cae)||e.getSourceFile(),!!m(e,!0))}function m(e,n=!1){return Mc(e,(e=>n&&cae(e)?"quit":jN(e)&&ce(e.modifiers,RC)))}function h(e,n,t,r){if(2===i)r||l.push(e);else if(!d){const r=sae(e);Nt.assert(308===r.kind||264===r.kind),t||function(e,n,t){const r=t.getSymbolAtLocation(n);return!!tae(e,(e=>{if(!ew(e))return;const{exportClause:n,moduleSpecifier:i}=e;return!i&&n&&nw(n)&&n.elements.some((e=>t.getExportSpecifierLocalTargetSymbol(e)===r))}))}(r,n,a)?g(r,!0):g(r)}}function g(e,n=!1){Nt.assert(!d);if(!c(e))return;if(u.push(e),!n)return;const t=a.getMergedSymbol(e.symbol);if(!t)return;Nt.assert(!!(1536&t.flags));const r=y(t);if(r)for(const i of r)Ck(i)||g(sae(i),!0)}function y(e){return t.get(eB(e).toString())}}(e,n,i,o,t,r);return{indirectUsers:l,...eae(c,a,o.exportKind,t,s)}}}function eae(e,n,t,r,i){const a=[],o=[];function s(e,n){a.push([e,n])}if(e)for(const _ of e)c(_);return{importSearches:a,singleReferences:o};function c(e){if(268===e.kind)return void(lae(e)&&l(e.name));if(79===e.kind)return void l(e);if(202===e.kind){if(e.qualifier){const t=Jb(e.qualifier);t.escapedText===jc(n)&&o.push(t)}else 2===t&&o.push(e.argument.literal);return}if(10!==e.moduleSpecifier.kind)return;if(275===e.kind)return void(e.exportClause&&nw(e.exportClause)&&d(e.exportClause));const{name:a,namedBindings:c}=e.importClause||{name:void 0,namedBindings:void 0};if(c)switch(c.kind){case 271:l(c.name);break;case 272:0!==t&&1!==t||d(c);break;default:Nt.assertNever(c)}if(a&&(1===t||2===t)&&(!i||a.escapedText===PY(n))){s(a,r.getSymbolAtLocation(a))}}function l(e){2!==t||i&&!u(e.escapedText)||s(e,r.getSymbolAtLocation(e))}function d(e){if(e)for(const t of e.elements){const{name:e,propertyName:a}=t;if(u((a||e).escapedText))if(a)o.push(a),i&&e.escapedText!==n.escapedName||s(e,r.getSymbolAtLocation(e));else{s(e,278===t.kind&&t.propertyName?r.getExportSpecifierLocalTargetSymbol(t):r.getSymbolAtLocation(e))}}}function u(e){return e===n.escapedName||0!==t&&"default"===e}}function nae(e,n,t){var r;const i=[],a=e.getTypeChecker();for(const o of n){const n=t.valueDeclaration;if(308===(null==n?void 0:n.kind)){for(const t of o.referencedFiles)e.getSourceFileFromReference(o,t)===n&&i.push({kind:"reference",referencingFile:o,ref:t});for(const t of o.typeReferenceDirectives){const a=null==(r=e.getResolvedTypeReferenceDirectives().get(t.fileName,t.resolutionMode||o.impliedNodeFormat))?void 0:r.resolvedTypeReferenceDirective;void 0!==a&&a.resolvedFileName===n.fileName&&i.push({kind:"reference",referencingFile:o,ref:t})}}rae(o,((e,n)=>{a.getSymbolAtLocation(n)===t&&i.push({kind:"import",literal:n})}))}return i}function tae(e,n){return A(308===e.kind?e.statements:e.body.statements,(e=>n(e)||cae(e)&&A(e.body&&e.body.statements,n)))}function rae(e,n){if(e.externalModuleIndicator||void 0!==e.imports)for(const t of e.imports)n(gg(t),t);else tae(e,(e=>{switch(e.kind){case 275:case 269:{const t=e;t.moduleSpecifier&&_C(t.moduleSpecifier)&&n(t,t.moduleSpecifier);break}case 268:{const t=e;lae(t)&&n(t,t.moduleReference.expression);break}}}))}function iae(e,n,t,r){return r?i():i()||function(){if(!function(e){const{parent:n}=e;switch(n.kind){case 268:return n.name===e&&lae(n);case 273:return!n.propertyName;case 270:case 271:return Nt.assert(n.name===e),!0;case 205:return Ih(e)&&Ph(n.parent.parent);default:return!1}}(e))return;let r=t.getImmediateAliasedSymbol(n);if(!r)return;if(r=function(e,n){if(e.declarations)for(const t of e.declarations){if(tw(t)&&!t.propertyName&&!t.parent.parent.moduleSpecifier)return n.getExportSpecifierLocalTargetSymbol(t)||e;if(Mk(t)&&Zh(t.expression)&&!wC(t.name))return n.getSymbolAtLocation(t);if(Aw(t)&&Yk(t.parent.parent)&&2===eg(t.parent.parent))return n.getExportSpecifierLocalTargetSymbol(t.name)}return e}(r,t),"export="===r.escapedName&&(r=function(e,n){var t,r;if(2097152&e.flags)return n.getImmediateAliasedSymbol(e);const i=Nt.checkDefined(e.valueDeclaration);if(ZI(i))return null==(t=En(i.expression,Nu))?void 0:t.symbol;if(Yk(i))return null==(r=En(i.right,Nu))?void 0:r.symbol;if(Iw(i))return i.symbol;return}(r,t),void 0===r))return;const i=PY(r);if(void 0===i||"default"===i||i===n.escapedName)return{kind:0,symbol:r}}();function i(){var i;const{parent:s}=e,c=s.parent;if(n.exportSymbol)return 208===s.kind?(null==(i=n.declarations)?void 0:i.some((e=>e===s)))&&Yk(c)?d(c,!1):void 0:a(n.exportSymbol,o(s));{const i=function(e,n){const t=NI(e)?e:Nk(e)?kc(e):void 0;return t?e.name!==n||xw(t.parent)?void 0:fI(t.parent.parent)?t.parent.parent:void 0:e}(s,e);if(i&&fb(i,1)){if(HI(i)&&i.moduleReference===e){if(r)return;return{kind:0,symbol:t.getSymbolAtLocation(i.name)}}return a(n,o(i))}if(YI(s))return a(n,0);if(ZI(s))return l(s);if(ZI(c))return l(c);if(Yk(s))return d(s,!0);if(Yk(c))return d(c,!0);if(pR(s)||Qw(s))return a(n,0)}function l(e){if(!e.symbol.parent)return;const t=e.isExportEquals?2:1;return{kind:1,symbol:n,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:t}}}function d(e,r){let i;switch(eg(e)){case 1:i=0;break;case 2:i=2;break;default:return}const o=r?t.getSymbolAtLocation(aT(Tn(e.left,iT))):n;return o&&a(o,i)}}function a(e,n){const r=aae(e,n,t);return r&&{kind:1,symbol:e,exportInfo:r}}function o(e){return fb(e,1024)?1:0}}function aae(e,n,t){const r=e.parent;if(!r)return;const i=t.getMergedSymbol(r);return gY(i)?{exportingModuleSymbol:i,exportKind:n}:void 0}function oae(e,n){return n.getMergedSymbol(sae(e).symbol)}function sae(e){if(210===e.kind)return e.getSourceFile();const{parent:n}=e;return 308===n.kind?n:(Nt.assert(265===n.kind),Tn(n.parent,cae))}function cae(e){return 264===e.kind&&10===e.name.kind}function lae(e){return 280===e.moduleReference.kind&&10===e.moduleReference.expression.kind}var dae,uae,_ae,pae,fae=E({"src/services/importTracker.ts"(){Bfe(),Yie=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Yie||{}),$ie=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))($ie||{})}});function mae(e,n=1){return{kind:n,node:e.name||e,context:gae(e)}}function hae(e){return e&&void 0===e.kind}function gae(e){if(Pu(e))return yae(e);if(e.parent){if(!Pu(e.parent)&&!ZI(e.parent)){if(Ih(e)){const n=Yk(e.parent)?e.parent:iT(e.parent)&&Yk(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(n&&0!==eg(n))return yae(n)}if(uw(e.parent)||_w(e.parent))return e.parent.parent;if(dw(e.parent)||kI(e.parent)||Yl(e.parent))return e.parent;if(o_(e)){const n=yg(e);if(n){const e=Mc(n,(e=>Pu(e)||Bu(e)||Yu(e)));return Pu(e)?yae(e):e}}const n=Mc(e,WC);return n?yae(n.parent):void 0}return e.parent.name===e||ek(e.parent)||ZI(e.parent)||(_d(e.parent)||Nk(e.parent))&&e.parent.propertyName===e||88===e.kind&&fb(e.parent,1025)?yae(e.parent):void 0}}function yae(e){if(e)switch(e.kind){case 257:return DI(e.parent)&&1===e.parent.declarations.length?fI(e.parent.parent)?e.parent.parent:xu(e.parent.parent)?yae(e.parent.parent):e.parent:e;case 205:return yae(e.parent.parent);case 273:return e.parent.parent.parent;case 278:case 271:return e.parent.parent;case 270:case 277:return e.parent;case 223:return hI(e.parent)?e.parent:e;case 247:case 246:return{start:e.initializer,end:e.expression};case 299:case 300:return tY(e.parent)?yae(Mc(e.parent,(e=>Yk(e)||xu(e)))):e;default:return e}}function vae(e,n,t){if(!t)return;const r=hae(t)?Oae(t.start,n,t.end):Oae(t,n);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}function bae(e,n,t,r,i){const a=TX(r,i),o={use:1},s=pae.getReferencedSymbolsForNode(i,a,e,t,n,o),c=e.getTypeChecker(),l=pae.getAdjustedNode(a,o),d=function(e){return 88===e.kind||!!iy(e)||ay(e)||135===e.kind&&ek(e.parent)}(l)?c.getSymbolAtLocation(l):void 0;return s&&s.length?ee(s,(({definition:e,references:t})=>e&&{definition:c.runWithCancellationToken(n,(n=>function(e,n,t){const r=(()=>{switch(e.type){case 0:{const{symbol:r}=e,{displayParts:i,kind:a}=Cae(r,n,t),o=i.map((e=>e.text)).join(""),s=r.declarations&&De(r.declarations);return{...Lae(s?Xc(s)||s:t),name:o,kind:a,displayParts:i,context:yae(s)}}case 1:{const{node:n}=e;return{...Lae(n),name:n.text,kind:"label",displayParts:[e$(n.text,17)]}}case 2:{const{node:n}=e,t=ms(n.kind);return{...Lae(n),name:t,kind:"keyword",displayParts:[{text:t,kind:"keyword"}]}}case 3:{const{node:t}=e,r=n.getSymbolAtLocation(t),i=r&&Zue.getSymbolDisplayPartsDocumentationAndSymbolKind(n,r,t.getSourceFile(),zJ(t),t).displayParts||[c$("this")];return{...Lae(t),name:"this",kind:"var",displayParts:i}}case 4:{const{node:n}=e;return{...Lae(n),name:n.text,kind:"var",displayParts:[e$(sf(n),8)]}}case 5:return{textSpan:dY(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[e$(`"${e.reference.fileName}"`,8)]};default:return Nt.assertNever(e)}})(),{sourceFile:i,textSpan:a,name:o,kind:s,displayParts:c,context:l}=r;return{containerKind:"",containerName:"",fileName:i.fileName,kind:s,name:o,textSpan:a,displayParts:c,...vae(a,i,l)}}(e,n,a))),references:t.map((e=>function(e,n){const t=Iae(e);return n?{...t,isDefinition:0!==e.kind&&Fae(e.node,n)}:t}(e,d)))})):void 0}function Eae(e,n,t,r,i){const a=TX(r,i);let o;const s=Tae(e,n,t,a,i);if(208===a.parent.kind||205===a.parent.kind||209===a.parent.kind||106===a.kind)o=s&&[...s];else if(s){const r=mn(s),i=new Map;for(;!r.isEmpty();){const a=r.dequeue();if(!nT(i,ZG(a.node)))continue;o=Te(o,a);const s=Tae(e,n,t,a.node,a.node.pos);s&&r.enqueue(...s)}}const c=e.getTypeChecker();return W(o,(e=>function(e,n){const t=wae(e);if(0!==e.kind){const{node:r}=e;return{...t,...Nae(r,n)}}return{...t,kind:"",displayParts:[]}}(e,c)))}function Tae(e,n,t,r,i){if(308===r.kind)return;const a=e.getTypeChecker();if(300===r.parent.kind){const e=[];return pae.getReferenceEntriesForShorthandPropertyAssignment(r,a,(n=>e.push(mae(n)))),e}if(106===r.kind||ah(r.parent)){const e=a.getSymbolAtLocation(r);return e.valueDeclaration&&[mae(e.valueDeclaration)]}return Sae(i,r,e,t,n,{implementations:!0,use:1})}function xae(e,n,t,r,i,a,o){return W(Aae(pae.getReferencedSymbolsForNode(i,r,e,t,n,a)),(n=>o(n,r,e.getTypeChecker())))}function Sae(e,n,t,r,i,a={},o=new Set(r.map((e=>e.fileName)))){return Aae(pae.getReferencedSymbolsForNode(e,n,t,r,i,a,o))}function Aae(e){return e&&X(e,(e=>e.references))}function Lae(e){const n=e.getSourceFile();return{sourceFile:n,textSpan:Oae(WC(e)?e.expression:e,n)}}function Cae(e,n,t){const r=pae.getIntersectingMeaningFromDeclarations(t,e),i=e.declarations&&De(e.declarations)||t,{displayParts:a,symbolKind:o}=Zue.getSymbolDisplayPartsDocumentationAndSymbolKind(n,e,i.getSourceFile(),i,i,r);return{displayParts:a,kind:o}}function kae(e,n,t,r){return{...wae(e),...r&&Rae(e,n,t)}}function Iae(e){const n=wae(e);if(0===e.kind)return{...n,isWriteAccess:!1};const{kind:t,node:r}=e;return{...n,isWriteAccess:Pae(r),isInString:2===t||void 0}}function wae(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};{const n=e.node.getSourceFile(),t=Oae(e.node,n);return{textSpan:t,fileName:n.fileName,...vae(t,n,e.context)}}}function Rae(e,n,t){if(0!==e.kind&&IC(n)){const{node:r,kind:i}=e,a=r.parent,o=n.text,s=Aw(a);if(s||GY(a)&&a.name===r&&void 0===a.dotDotDotToken){const e={prefixText:o+": "},n={suffixText:": "+o};if(3===i)return e;if(4===i)return n;if(s){const t=a.parent;return Ok(t)&&Yk(t.parent)&&Zh(t.parent.left)?e:n}return e}if(QI(a)&&!a.propertyName){return G((tw(n.parent)?t.getExportSpecifierLocalTargetSymbol(n.parent):t.getSymbolAtLocation(n)).declarations,a)?{prefixText:o+" as "}:Uq}if(tw(a)&&!a.propertyName)return n===e.node||t.getSymbolAtLocation(n)===t.getSymbolAtLocation(e.node)?{prefixText:o+" as "}:{suffixText:" as "+o}}return Uq}function Nae(e,n){const t=n.getSymbolAtLocation(Pu(e)&&e.name?e.name:e);return t?Cae(t,n,e):207===e.kind?{kind:"interface",displayParts:[r$(20),c$("object literal"),r$(21)]}:228===e.kind?{kind:"local class",displayParts:[r$(20),c$("anonymous local class"),r$(21)]}:{kind:qJ(e),displayParts:[]}}function Dae(e){const n=wae(e);if(0===e.kind)return{fileName:n.fileName,span:{textSpan:n.textSpan,kind:"reference"}};const t=Pae(e.node),r={textSpan:n.textSpan,kind:t?"writtenReference":"reference",isInString:2===e.kind||void 0,...n.contextSpan&&{contextSpan:n.contextSpan}};return{fileName:n.fileName,span:r}}function Oae(e,n,t){let r=e.getStart(n),i=(t||e).getEnd();return o_(e)&&i-r>2&&(Nt.assert(void 0===t),r+=1,i-=1),vc(r,i)}function Mae(e){return 0===e.kind?e.textSpan:Oae(e.node,e.node.getSourceFile())}function Pae(e){const n=iy(e);return!!n&&function(e){if(16777216&e.flags)return!0;switch(e.kind){case 223:case 205:case 260:case 228:case 88:case 263:case 302:case 278:case 270:case 268:case 273:case 261:case 341:case 349:case 288:case 264:case 267:case 271:case 277:case 166:case 300:case 262:case 165:return!0;case 299:return!tY(e.parent);case 259:case 215:case 173:case 171:case 174:case 175:return!!e.body;case 257:case 169:return!!e.initializer||xw(e.parent);case 170:case 168:case 351:case 344:return!1;default:return Nt.failBadSyntaxKind(e)}}(n)||88===e.kind||jE(e)}function Fae(e,n){var t;if(!n)return!1;const r=iy(e)||(88===e.kind?e.parent:ay(e)||135===e.kind&&ek(e.parent)?e.parent.parent:void 0),i=r&&Yk(r)?r.left:void 0;return!(!r||!(null==(t=n.declarations)?void 0:t.some((e=>e===r||e===i))))}var Gae=E({"src/services/findAllReferences.ts"(){Bfe(),Uae(),dae=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(dae||{}),uae=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(uae||{}),_ae=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(_ae||{}),(e=>{function n(e,n){return 1===n.use?e=bX(e):2===n.use&&(e=EX(e)),e}function t(e,n,t){let r;const a=n.get(e.path)||i;for(const i of a)if(MH(i)){const e=t.getSourceFileByPath(i.file),n=FH(t.getSourceFileByPath,i);PH(n)&&(r=Te(r,{kind:0,fileName:e.fileName,textSpan:dY(n)}))}return r}function r(e,n,t){if(e.parent&&jI(e.parent)){const e=t.getAliasedSymbol(n),r=t.getMergedSymbol(e);if(e!==r)return r}}function a(e,n,t,r,i,a){const s=1536&e.flags&&e.declarations&&D(e.declarations,Iw);if(!s)return;const l=e.exports.get("export="),u=c(n,e,!!l,t,a);if(!l||!a.has(s.fileName))return u;const _=n.getTypeChecker();return o(n,u,d(e=BE(l,_),void 0,t,a,_,r,i))}function o(e,...n){let t;for(const r of n)if(r&&r.length)if(t)for(const n of r){if(!n.definition||0!==n.definition.type){t.push(n);continue}const r=n.definition.symbol,i=M(t,(e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===r));if(-1===i){t.push(n);continue}const a=t[i];t[i]={definition:a.definition,references:a.references.concat(n.references).sort(((n,t)=>{const r=s(e,n),i=s(e,t);if(r!==i)return Un(r,i);const a=Mae(n),o=Mae(t);return a.start!==o.start?Un(a.start,o.start):Un(a.length,o.length)}))}}else t=r;return t}function s(e,n){const t=0===n.kind?e.getSourceFile(n.fileName):n.node.getSourceFile();return e.getSourceFiles().indexOf(t)}function c(e,n,t,r,a){Nt.assert(!!n.valueDeclaration);const o=ee(nae(e,r,n),(e=>{if("import"===e.kind){const n=e.literal.parent;if(Lk(n)){const e=Tn(n.parent,Ck);if(t&&!e.qualifier)return}return mae(e.literal)}return{kind:0,fileName:e.referencingFile.fileName,textSpan:dY(e.ref)}}));if(n.declarations)for(const i of n.declarations)switch(i.kind){case 308:break;case 264:a.has(i.getSourceFile().fileName)&&o.push(mae(i.name));break;default:Nt.assert(!!(33554432&n.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const s=n.exports.get("export=");if(null==s?void 0:s.declarations)for(const i of s.declarations){const e=i.getSourceFile();if(a.has(e.fileName)){const n=Yk(i)&&Mk(i.left)?i.left.expression:ZI(i)?Nt.checkDefined(dX(i,93,e)):Xc(i)||i;o.push(mae(n))}}return o.length?[{definition:{type:0,symbol:n},references:o}]:i}function l(e){return 146===e.kind&&xk(e.parent)&&146===e.parent.operator}function d(e,n,t,r,i,a,o){const s=n&&function(e,n,t,r){const{parent:i}=n;if(tw(i)&&r)return w(n,e,i,t);return C(e.declarations,(r=>{if(!r.parent){if(33554432&e.flags)return;Nt.fail(`Unexpected symbol at ${Nt.formatSyntaxKind(n.kind)}: ${Nt.formatSymbol(e)}`)}return uk(r.parent)&&gk(r.parent.parent)?t.getPropertyOfType(t.getTypeFromTypeNode(r.parent.parent),e.name):void 0}))}(e,n,i,!q(o))||e,c=n?K(n,s):7,l=[],d=new m(t,r,n?function(e){switch(e.kind){case 173:case 135:return 1;case 79:if(Fd(e.parent))return Nt.assert(e.parent.name===e),2;default:return 0}}(n):0,i,a,c,o,l),_=q(o)&&s.declarations?D(s.declarations,tw):void 0;if(_)I(_.name,s,_,d.createSearch(n,e,void 0),d,!0,!0);else if(n&&88===n.kind&&"default"===s.escapedName&&s.parent)R(n,s,d),h(n,s,{exportingModuleSymbol:s.parent,exportKind:1},d);else{const e=d.createSearch(n,s,void 0,{allSearchSymbols:n?U(s,n,i,2===o.use,!!o.providePrefixAndSuffixTextForRename,!!o.implementations):[s]});u(s,d,e)}return l}function u(e,n,t){const r=function(e){const{declarations:n,flags:t,parent:r,valueDeclaration:i}=e;if(i&&(215===i.kind||228===i.kind))return i;if(!n)return;if(8196&t){const e=D(n,(e=>pb(e,8)||bd(e)));return e?vy(e,260):void 0}if(n.some(GY))return;const a=r&&!(262144&e.flags);if(a&&(!gY(r)||r.globalExports))return;let o;for(const s of n){const e=zJ(s);if(o&&o!==e)return;if(!e||308===e.kind&&!om(e))return;if(o=e,jk(o)){let e;for(;e=Pg(o);)o=e}}return a?o.getSourceFile():o}(e);if(r)A(r,r.getSourceFile(),t,n,!(Iw(r)&&!G(n.sourceFiles,r)));else for(const i of n.sourceFiles)n.cancellationToken.throwIfCancellationRequested(),v(i,t,n)}let _;var p;function f(e){if(!(33555968&e.flags))return;const n=e.declarations&&D(e.declarations,(e=>!Iw(e)&&!BI(e)));return n&&n.symbol}e.getReferencedSymbolsForNode=function(e,s,u,_,p,f={},m=new Set(_.map((e=>e.fileName)))){var h,g,y;if(Iw(s=n(s,f))){const n=noe.getReferenceAtPosition(s,e,u);if(!(null==n?void 0:n.file))return;const r=u.getTypeChecker().getMergedSymbol(n.file.symbol);if(r)return c(u,r,!1,_,m);const a=u.getFileIncludeReasons();if(!a)return;return[{definition:{type:5,reference:n.reference,file:s},references:t(n.file,a,u)||i}]}if(!f.implementations){const e=function(e,n,t){if(fY(e.kind)){if(114===e.kind&&zk(e.parent))return;if(146===e.kind&&!l(e))return;return function(e,n,t,r){const i=X(e,(e=>(t.throwIfCancellationRequested(),ee(E(e,ms(n),e),(e=>{if(e.kind===n&&(!r||r(e)))return mae(e)})))));return i.length?[{definition:{type:2,node:i[0].node},references:i}]:void 0}(n,e.kind,t,146===e.kind?l:void 0)}if(fm(e.parent)&&e.parent.name===e)return function(e,n){const t=X(e,(e=>(n.throwIfCancellationRequested(),ee(E(e,"meta",e),(e=>{const n=e.parent;if(fm(n))return mae(n)})))));return t.length?[{definition:{type:2,node:t[0].node},references:t}]:void 0}(n,t);if(FC(e)&&ZC(e.parent))return[{definition:{type:2,node:e},references:[mae(e)]}];if(MJ(e)){const n=DJ(e.parent,e.text);return n&&x(n.parent,n)}if(PJ(e))return x(e.parent,e);if(JJ(e))return function(e,n,t){let r=Qm(e,!1,!1),i=32;switch(r.kind){case 171:case 170:if(Gm(r)){i&=kb(r),r=r.parent;break}case 169:case 168:case 173:case 174:case 175:i&=kb(r),r=r.parent;break;case 308:if(OD(r)||B(e))return;case 259:case 215:break;default:return}const a=X(308===r.kind?n:[r.getSourceFile()],(e=>(t.throwIfCancellationRequested(),E(e,"this",Iw(r)?e:r).filter((e=>{if(!JJ(e))return!1;const n=Qm(e,!1,!1);if(!Nu(n))return!1;switch(r.kind){case 215:case 259:return r.symbol===n.symbol;case 171:case 170:return Gm(r)&&r.symbol===n.symbol;case 228:case 260:case 207:return n.parent&&Nu(n.parent)&&r.symbol===n.parent.symbol&&mb(n)===!!i;case 308:return 308===n.kind&&!OD(n)&&!B(e)}}))))).map((e=>mae(e))),o=C(a,(e=>qC(e.node.parent)?e.node:void 0));return[{definition:{type:3,node:o||e},references:a}]}(e,n,t);if(106===e.kind)return function(e){let n=th(e,!1);if(!n)return;let t=32;switch(n.kind){case 169:case 168:case 171:case 170:case 173:case 174:case 175:t&=kb(n),n=n.parent;break;default:return}const r=ee(E(n.getSourceFile(),"super",n),(e=>{if(106!==e.kind)return;const r=th(e,!1);return r&&mb(r)===!!t&&r.parent.symbol===n.symbol?mae(e):void 0}));return[{definition:{type:0,symbol:n.symbol},references:r}]}(e);return}(s,_,p);if(e)return e}const v=u.getTypeChecker(),b=v.getSymbolAtLocation(ek(s)&&s.parent.name||s);if(!b){if(!f.implementations&&o_(s)){if(FY(s)){const e=u.getFileIncludeReasons(),n=null==(y=null==(g=null==(h=s.getSourceFile().resolvedModules)?void 0:h.get(s.text,LH(s.getSourceFile(),s)))?void 0:g.resolvedModule)?void 0:y.resolvedFileName,r=n?u.getSourceFile(n):void 0;if(r)return[{definition:{type:4,node:s},references:t(r,e,u)||i}]}return function(e,n,t,r){const i=mX(e,t),a=X(n,(n=>(r.throwIfCancellationRequested(),ee(E(n,e.text),(r=>{if(o_(r)&&r.text===e.text){if(!i)return mC(r)&&!bE(r,n)?void 0:mae(r,2);{const e=mX(r,t);if(i!==t.getStringType()&&i===e)return mae(r,2)}}})))));return[{definition:{type:4,node:e},references:a}]}(s,_,v,p)}return}if("export="===b.escapedName)return c(u,b.parent,!1,_,m);const T=a(b,u,_,p,f,m);if(T&&!(33554432&b.flags))return T;const S=r(s,b,v),A=S&&a(S,u,_,p,f,m);return o(u,T,d(b,s,_,m,v,p,f),A)},e.getAdjustedNode=n,e.getReferencesForFileName=function(e,n,r,a=new Set(r.map((e=>e.fileName)))){var o,s;const l=null==(o=n.getSourceFile(e))?void 0:o.symbol;if(l)return(null==(s=c(n,l,!1,r,a)[0])?void 0:s.references)||i;const d=n.getFileIncludeReasons(),u=n.getSourceFile(e);return u&&d&&t(u,d,n)||i},(p=_||(_={}))[p.None=0]="None",p[p.Constructor=1]="Constructor",p[p.Class=2]="Class";class m{constructor(e,n,t,r,i,a,o,s){this.sourceFiles=e,this.sourceFilesSet=n,this.specialSearchKind=t,this.checker=r,this.cancellationToken=i,this.searchMeaning=a,this.options=o,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=yY(),this.markSeenReExportRHS=yY(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,n){return this.importTracker||(this.importTracker=Zie(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,n,2===this.options.use)}createSearch(e,n,t,r={}){const{text:i=fv(jc(iE(n)||f(n)||n)),allSearchSymbols:a=[n]}=r,o=Gc(i),s=this.options.implementations&&e?function(e,n,t){const r=UJ(e)?e.parent:void 0,i=r&&t.getTypeAtLocation(r.expression),a=ee(i&&(i.isUnionOrIntersection()?i.types:i.symbol===n.parent?void 0:[i]),(e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0));return 0===a.length?void 0:a}(e,n,this.checker):void 0;return{symbol:n,comingFrom:t,text:i,escapedText:o,parents:s,allSearchSymbols:a,includes:e=>G(a,e)}}referenceAdder(e){const n=eB(e);let t=this.symbolIdToReferences[n];return t||(t=this.symbolIdToReferences[n]=[],this.result.push({definition:{type:0,symbol:e},references:t})),(e,n)=>t.push(mae(e,n))}addStringOrCommentReference(e,n){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:n}]})}markSearchedSymbols(e,n){const t=ZG(e),r=this.sourceFileToSeenSymbols[t]||(this.sourceFileToSeenSymbols[t]=new Set);let i=!1;for(const a of n)i=ie(r,eB(a))||i;return i}}function h(e,n,t,r){const{importSearches:i,singleReferences:a,indirectUsers:o}=r.getImportSearches(n,t);if(a.length){const e=r.referenceAdder(n);for(const n of a)g(n,r)&&e(n)}for(const[s,c]of i)S(s.getSourceFile(),r.createSearch(s,c,1),r);if(o.length){let i;switch(t.exportKind){case 0:i=r.createSearch(e,n,1);break;case 1:i=2===r.options.use?void 0:r.createSearch(e,n,1,{text:"default"})}if(i)for(const e of o)v(e,i,r)}}function g(e,n){return!!L(e,n)&&(2!==n.options.use||!!IC(e)&&!(_d(e.parent)&&"default"===e.escapedText))}function y(e,n){if(e.declarations)for(const t of e.declarations){const r=t.getSourceFile();S(r,n.createSearch(t,e,0),n,n.includesSourceFile(r))}}function v(e,n,t){void 0!==T2(e).get(n.escapedText)&&S(e,n,t)}function b(e,n,t,r,i=t){const a=Ac(e.parent,e.parent.parent)?Me(n.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):n.getSymbolAtLocation(e);if(a)for(const o of E(t,a.name,i)){if(!IC(o)||o===e||o.escapedText!==e.escapedText)continue;const t=n.getSymbolAtLocation(o);if(t===a||n.getShorthandAssignmentValueSymbol(o.parent)===a||tw(o.parent)&&w(o,t,o.parent,n)===a){const e=r(o);if(e)return e}}}function E(e,n,t=e){return T(e,n,t).map((n=>TX(e,n)))}function T(e,n,t=e){const r=[];if(!n||!n.length)return r;const i=e.text,a=i.length,o=n.length;let s=i.indexOf(n,t.pos);for(;s>=0&&!(s>t.end);){const e=s+o;0!==s&&qs(i.charCodeAt(s-1),99)||e!==a&&qs(i.charCodeAt(e),99)||r.push(s),s=i.indexOf(n,s+o+1)}return r}function x(e,n){const t=e.getSourceFile(),r=n.text,i=ee(E(t,r,e),(e=>e===n||MJ(e)&&DJ(e,r)===n?mae(e):void 0));return[{definition:{type:1,node:n},references:i}]}function S(e,n,t,r=!0){return t.cancellationToken.throwIfCancellationRequested(),A(e,e,n,t,r)}function A(e,n,t,r,i){if(r.markSearchedSymbols(n,t.allSearchSymbols))for(const a of T(n,t.text,e))k(n,a,t,r,i)}function L(e,n){return!!(vJ(e)&n.searchMeaning)}function k(e,n,t,r,i){const a=TX(e,n);if(!function(e,n){switch(e.kind){case 80:if(Ow(e.parent))return!0;case 79:return e.text.length===n.length;case 14:case 10:{const t=e;return(KJ(t)||jJ(e)||WJ(e)||Fk(e.parent)&&ng(e.parent)&&e.parent.arguments[1]===e)&&t.text.length===n.length}case 8:return KJ(e)&&e.text.length===n.length;case 88:return 7===n.length;default:return!1}}(a,t.text))return void(!r.options.implementations&&(r.options.findInStrings&&DX(e,n)||r.options.findInComments&&iY(e,n))&&r.addStringOrCommentReference(e.fileName,yc(n,t.text.length)));if(!L(a,r))return;let o=r.checker.getSymbolAtLocation(a);if(!o)return;const s=a.parent;if(QI(s)&&s.propertyName===a)return;if(tw(s))return Nt.assert(79===a.kind),void I(a,o,s,t,r,i);const c=function(e,n,t,r){const{checker:i}=r;return V(n,t,i,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,((t,r,i,a)=>(i&&H(n)!==H(i)&&(i=void 0),e.includes(i||r||t)?{symbol:!r||6&FE(t)?t:r,kind:a}:void 0)),(n=>!(e.parents&&!e.parents.some((e=>F(n.parent,e,r.inheritsFromCache,i))))))}(t,o,a,r);if(c){switch(r.specialSearchKind){case 0:i&&R(a,c,r);break;case 1:!function(e,n,t,r){TJ(e)&&R(e,t.symbol,r);const i=()=>r.referenceAdder(t.symbol);if(Fd(e.parent))Nt.assert(88===e.kind||e.parent.name===e),function(e,n,t){const r=N(e);if(r&&r.declarations)for(const i of r.declarations){const e=dX(i,135,n);Nt.assert(173===i.kind&&!!e),t(e)}e.exports&&e.exports.forEach((e=>{const n=e.valueDeclaration;if(n&&171===n.kind){const e=n.body;e&&z(e,108,(e=>{TJ(e)&&t(e)}))}}))}(t.symbol,n,i());else{const n=Vb(RJ(e).parent);n&&(function(e,n){const t=N(e.symbol);if(!t||!t.declarations)return;for(const r of t.declarations){Nt.assert(173===r.kind);const e=r.body;e&&z(e,106,(e=>{EJ(e)&&n(e)}))}}(n,i()),function(e,n){if(function(e){return!!N(e.symbol)}(e))return;const t=e.symbol,r=n.createSearch(void 0,t,void 0);u(t,n,r)}(n,r))}}(a,e,t,r);break;case 2:!function(e,n,t){R(e,n.symbol,t);const r=e.parent;if(2===t.options.use||!Fd(r))return;Nt.assert(r.name===e);const i=t.referenceAdder(n.symbol);for(const a of r.members)Ud(a)&&mb(a)&&a.body&&a.body.forEachChild((function e(n){108===n.kind?i(n):Id(n)||Fd(n)||n.forEachChild(e)}))}(a,t,r);break;default:Nt.assertNever(r.specialSearchKind)}Ih(a)&&Nk(a.parent)&&Ph(a.parent.parent.parent)&&(o=a.parent.symbol,!o)||function(e,n,t,r){const i=iae(e,n,r.checker,1===t.comingFrom);if(!i)return;const{symbol:a}=i;0===i.kind?q(r.options)||y(a,r):h(e,a,i.exportInfo,r)}(a,o,t,r)}else!function({flags:e,valueDeclaration:n},t,r){const i=r.checker.getShorthandAssignmentValueSymbol(n),a=n&&Xc(n);33554432&e||!a||!t.includes(i)||R(a,i,r)}(o,t,r)}function I(e,n,t,r,i,a,o){Nt.assert(!o||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:s,propertyName:c,name:l}=t,d=s.parent,u=w(e,n,t,i.checker);if(o||r.includes(u)){if(c?e===c?(d.moduleSpecifier||_(),a&&2!==i.options.use&&i.markSeenReExportRHS(l)&&R(l,Nt.checkDefined(t.symbol),i)):i.markSeenReExportRHS(e)&&_():2===i.options.use&&"default"===l.escapedText||_(),!q(i.options)||o){const n="default"===e.escapedText||"default"===t.name.escapedText?1:0,r=Nt.checkDefined(t.symbol),a=aae(r,n,i.checker);a&&h(e,r,a,i)}if(1!==r.comingFrom&&d.moduleSpecifier&&!c&&!q(i.options)){const e=i.checker.getExportSpecifierLocalTargetSymbol(t);e&&y(e,i)}}function _(){a&&R(e,u,i)}}function w(e,n,t,r){return function(e,n){const{parent:t,propertyName:r,name:i}=n;return Nt.assert(r===e||i===e),r?r===e:!t.parent.moduleSpecifier}(e,t)&&r.getExportSpecifierLocalTargetSymbol(t)||n}function R(e,n,t){const{kind:r,symbol:i}="kind"in n?n:{kind:void 0,symbol:n};if(2===t.options.use&&88===e.kind)return;const a=t.referenceAdder(i);t.options.implementations?function(e,n,t){if(ry(e)&&(r=e.parent,16777216&r.flags?!PI(r)&&!FI(r):Im(r)?n_(r):Rd(r)?r.body:Fd(r)||Ru(r)))return void n(e);var r;if(79!==e.kind)return;300===e.parent.kind&&W(e,t.checker,n);const i=O(e);if(i)return void n(i);const a=Mc(e,(e=>!KC(e.parent)&&!zd(e.parent)&&!Hd(e.parent))),o=a.parent;if(e_(o)&&o.type===a&&t.markSeenContainingTypeReference(o))if(n_(o))s(o.initializer);else if(Id(o)&&o.body){const e=o.body;238===e.kind?Am(e,(e=>{e.expression&&s(e.expression)})):s(e)}else hu(o)&&s(o.expression);function s(e){P(e)&&n(e)}}(e,a,t):a(e,r)}function N(e){return e.members&&e.members.get("__constructor")}function O(e){return IC(e)||Mk(e)?O(e.parent):rI(e)?En(e.parent.parent,Fd):void 0}function P(e){switch(e.kind){case 214:return P(e.expression);case 216:case 215:case 207:case 228:case 206:return!0;default:return!1}}function F(e,n,t,r){if(e===n)return!0;const i=eB(e)+","+eB(n),a=t.get(i);if(void 0!==a)return a;t.set(i,!1);const o=!!e.declarations&&e.declarations.some((e=>hy(e).some((e=>{const i=r.getTypeAtLocation(e);return!!i&&!!i.symbol&&F(i.symbol,n,t,r)}))));return t.set(i,o),o}function B(e){return 79===e.kind&&166===e.parent.kind&&e.parent.name===e}function U(e,n,t,r,i,a){const o=[];return V(e,n,t,r,!(r&&i),((n,t,r)=>{r&&H(e)!==H(r)&&(r=void 0),o.push(r||t||n)}),(()=>!a)),o}function V(e,n,t,i,a,o,s){const c=x2(n);if(c){const e=t.getShorthandAssignmentValueSymbol(n.parent);if(e&&i)return o(e,void 0,void 0,3);const r=t.getContextualType(c.parent),a=r&&C(S2(c,t,r,!0),(e=>_(e,4)));if(a)return a;const s=function(e,n){return tY(e.parent.parent)?n.getPropertySymbolOfDestructuringAssignment(e):void 0}(n,t),l=s&&o(s,void 0,void 0,4);if(l)return l;const d=e&&o(e,void 0,void 0,3);if(d)return d}const l=r(n,e,t);if(l){const e=o(l,void 0,void 0,1);if(e)return e}const d=_(e);if(d)return d;if(e.valueDeclaration&&Ac(e.valueDeclaration,e.valueDeclaration.parent)){const n=t.getSymbolsOfParameterPropertyDeclaration(Tn(e.valueDeclaration,qC),e.name);return Nt.assert(2===n.length&&!!(1&n[0].flags)&&!!(4&n[1].flags)),_(1&e.flags?n[1]:n[0])}const u=cp(e,278);if(!i||u&&!u.propertyName){const e=u&&t.getExportSpecifierLocalTargetSymbol(u);if(e){const n=o(e,void 0,void 0,1);if(n)return n}}if(!i){let r;return r=a?GY(n.parent)?BY(t,n.parent):void 0:p(e,t),r&&_(r,4)}Nt.assert(i);if(a){const n=p(e,t);return n&&_(n,4)}function _(e,n){return C(t.getRootSymbols(e),(r=>o(e,r,void 0,n)||(r.parent&&96&r.parent.flags&&s(r)?function(e,n,t,r){const i=new Map;return a(e);function a(e){if(96&e.flags&&nT(i,eB(e)))return C(e.declarations,(e=>C(hy(e),(e=>{const i=t.getTypeAtLocation(e),o=i&&i.symbol&&t.getPropertyOfType(i,n);return i&&o&&(C(t.getRootSymbols(o),r)||a(i.symbol))}))))}}(r.parent,r.name,t,(t=>o(e,r,t,n))):void 0)))}function p(e,n){const t=cp(e,205);if(t&&GY(t))return BY(n,t)}}function H(e){if(!e.valueDeclaration)return!1;return!!(32&Lb(e.valueDeclaration))}function K(e,n){let t=vJ(e);const{declarations:r}=n;if(r){let e;do{e=t;for(const e of r){const n=yJ(e);n&t&&(t|=n)}}while(t!==e)}return t}function W(e,n,t){const r=n.getSymbolAtLocation(e),i=n.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(i)for(const a of i.getDeclarations())1&yJ(a)&&t(a)}function z(e,n,t){CD(e,(e=>{e.kind===n&&t(e),z(e,n,t)}))}function q(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,n,t,r,i,a,o,s){const c=Zie(e,new Set(e.map((e=>e.fileName))),n,t),{importSearches:l,indirectUsers:d,singleReferences:u}=c(r,{exportKind:o?1:0,exportingModuleSymbol:i},!1);for(const[_]of l)s(_);for(const _ of u)IC(_)&&Ck(_.parent)&&s(_);for(const _ of d)for(const e of E(_,o?"default":a)){const t=n.getSymbolAtLocation(e),i=ce(null==t?void 0:t.declarations,(e=>!!En(e,ZI)));!IC(e)||_d(e.parent)||t!==r&&!i||s(e)}},e.isSymbolReferencedInFile=function(e,n,t,r=t){return b(e,n,t,(()=>!0),r)||!1},e.eachSymbolReferenceInFile=b,e.getTopMostDeclarationNamesInFile=function(e,n){return j(E(n,e),(e=>!!iy(e))).reduce(((e,n)=>{const t=function(e){let n=0;for(;e;)e=zJ(e),n++;return n}(n);return ce(e.declarationNames)&&t!==e.depth?t<e.depth&&(e.declarationNames=[n],e.depth=t):(e.declarationNames.push(n),e.depth=t),e}),{depth:1/0,declarationNames:[]}).declarationNames},e.someSignatureUsage=function(e,n,t,r){if(!e.name||!IC(e.name))return!1;const i=Nt.checkDefined(t.getSymbolAtLocation(e.name));for(const a of n)for(const n of E(a,i.name)){if(!IC(n)||n===e.name||n.escapedText!==e.name.escapedText)continue;const a=RJ(n),o=Fk(a.parent)&&a.parent.expression===a?a.parent:void 0,s=t.getSymbolAtLocation(n);if(s&&t.getRootSymbols(s).some((e=>e===i))&&r(n,o))return!0}return!1},e.getIntersectingMeaningFromDeclarations=K,e.getReferenceEntriesForShorthandPropertyAssignment=W})(pae||(pae={}))}}),Bae={};T(Bae,{Core:()=>pae,DefinitionKind:()=>dae,EntryKind:()=>uae,ExportKind:()=>Yie,FindReferencesUse:()=>_ae,ImportExport:()=>$ie,createImportTracker:()=>Zie,findModuleReferences:()=>nae,findReferenceOrRenameEntries:()=>xae,findReferencedSymbols:()=>bae,getContextNode:()=>yae,getExportInfo:()=>aae,getImplementationsAtPosition:()=>Eae,getImportOrExportSymbol:()=>iae,getReferenceEntriesForNode:()=>Sae,getTextSpanOfEntry:()=>Mae,isContextWithStartAndEndNode:()=>hae,isDeclarationOfSymbol:()=>Fae,nodeEntry:()=>mae,toContextSpan:()=>vae,toHighlightSpan:()=>Dae,toReferenceEntry:()=>Iae,toRenameLocation:()=>kae});var Uae=E({"src/services/_namespaces/ts.FindAllReferences.ts"(){fae(),Gae()}});function Vae(e,n,t,r,a){var o,s;const c=Hae(n,t,e),l=c&&[(d=c.reference.fileName,u=c.fileName,_=c.unverified,{fileName:u,textSpan:vc(0,0),kind:"script",name:d,containerName:void 0,containerKind:void 0,unverified:_})]||i;var d,u,_;if(null==c?void 0:c.file)return l;const p=TX(n,t);if(p===n)return;const{parent:f}=p,m=e.getTypeChecker();if(161===p.kind||IC(p)&&rR(f)&&f.tagName===p)return function(e,n){const t=Mc(n,Pd);if(!t||!t.name)return;const r=Mc(t,Fd);if(!r)return;const i=py(r);if(!i)return;const a=ey(i.expression),o=nI(a)?a.symbol:e.getSymbolAtLocation(a);if(!o)return;const s=Bc(Wf(t.name)),c=hb(t)?e.getPropertyOfType(e.getTypeOfSymbol(o),s):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(o),s);if(!c)return;return Jae(e,c,n)}(m,p)||i;if(MJ(p)){const e=DJ(p.parent,p.text);return e?[Yae(m,e,"label",p.text,void 0)]:void 0}if(105===p.kind){const e=Mc(p.parent,(e=>ZC(e)?"quit":Rd(e)));return e?[Qae(m,e)]:void 0}if(133===p.kind){const e=Mc(p,(e=>Rd(e)));return e&&ce(e.modifiers,(e=>132===e.kind))?[Qae(m,e)]:void 0}if(125===p.kind){const e=Mc(p,(e=>Rd(e)));return e&&e.asteriskToken?[Qae(m,e)]:void 0}if(FC(p)&&ZC(p.parent)){const e=p.parent.parent,{symbol:n,failedAliasResolution:t}=qae(e,m,a),r=j(e.members,ZC),i=n?m.symbolToString(n,e):"",o=p.getSourceFile();return W(r,(e=>{let{pos:n}=gE(e);return n=Ns(o.text,n),Yae(m,e,"constructor","static {}",i,!1,t,{start:n,length:6})}))}let{symbol:h,failedAliasResolution:g}=qae(p,m,a),y=p;if(r&&g){const e=A([p,...(null==h?void 0:h.declarations)||i],(e=>Mc(e,Mf))),n=e&&hg(e);n&&(({symbol:h,failedAliasResolution:g}=qae(n,m,a)),y=n)}if(!h&&FY(y)){const e=null==(s=null==(o=n.resolvedModules)?void 0:o.get(y.text,LH(n,y)))?void 0:s.resolvedModule;if(e)return[{name:y.text,fileName:e.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:yc(0,0),failedAliasResolution:g,isAmbient:GD(e.resolvedFileName),unverified:y!==p}]}if(!h)return de(l,function(e,n){return ee(n.getIndexInfosAtLocation(e),(e=>e.declaration&&Qae(n,e.declaration)))}(p,m));if(r&&N(h.declarations,(e=>e.getSourceFile().fileName===n.fileName)))return;const v=function(e,n){const t=function(e){const n=Mc(e,(e=>!UJ(e))),t=null==n?void 0:n.parent;return t&&ou(t)&&dh(t)===n?t:void 0}(n),r=t&&e.getResolvedSignature(t);return En(r&&r.declaration,(e=>Id(e)&&!ck(e)))}(m,p);if(v&&(!zu(p.parent)||!function(e){switch(e.kind){case 173:case 182:case 177:return!0;default:return!1}}(v))){const e=Qae(m,v,g);if(m.getRootSymbols(h).some((e=>function(e,n){var t;return e===n.symbol||e===n.symbol.parent||Hb(n.parent)||!ou(n.parent)&&e===(null==(t=En(n.parent,Nu))?void 0:t.symbol)}(e,v))))return[e];{const n=Jae(m,h,p,g,v)||i;return 106===p.kind?[e,...n]:[...n,e]}}if(300===p.parent.kind){const e=m.getShorthandAssignmentValueSymbol(h.valueDeclaration);return de((null==e?void 0:e.declarations)?e.declarations.map((n=>Xae(n,m,e,p,!1,g))):i,jae(m,p)||i)}if(Cd(p)&&Nk(f)&&wk(f.parent)&&p===(f.propertyName||f.name)){const e=TY(p),n=m.getTypeAtLocation(f.parent);return void 0===e?i:X(n.isUnion()?n.types:[n],(n=>{const t=n.getProperty(e);return t&&Jae(m,t,p)}))}return de(l,jae(m,p)||Jae(m,h,p,g))}function jae(e,n){const t=x2(n);if(t){const r=t&&e.getContextualType(t.parent);if(r)return X(S2(t,e,r,!1),(t=>Jae(e,t,n)))}}function Hae(e,n,t){var r,i,a,o;const s=Zae(e.referencedFiles,n);if(s){const n=t.getSourceFileFromReference(e,s);return n&&{reference:s,fileName:n.fileName,file:n,unverified:!1}}const c=Zae(e.typeReferenceDirectives,n);if(c){const n=null==(r=t.getResolvedTypeReferenceDirectives().get(c.fileName,c.resolutionMode||e.impliedNodeFormat))?void 0:r.resolvedTypeReferenceDirective,i=n&&t.getSourceFile(n.resolvedFileName);return i&&{reference:c,fileName:i.fileName,file:i,unverified:!1}}const l=Zae(e.libReferenceDirectives,n);if(l){const e=t.getLibFileFromReference(l);return e&&{reference:l,fileName:e.fileName,file:e,unverified:!1}}if(null==(i=e.resolvedModules)?void 0:i.size()){const r=xX(e,n);if(FY(r)&&rc(r.text)&&e.resolvedModules.has(r.text,LH(e,r))){const n=null==(o=null==(a=e.resolvedModules.get(r.text,LH(e,r)))?void 0:a.resolvedModule)?void 0:o.resolvedFileName,i=n||To(po(e.fileName),r.text);return{file:t.getSourceFile(i),fileName:i,reference:{pos:r.getStart(),end:r.getEnd(),fileName:r.text},unverified:!n}}}}function Kae(e,n,t){const r=TX(n,t);if(r===n)return;if(fm(r.parent)&&r.parent.name===r)return Wae(e.getTypeAtLocation(r.parent),e,r.parent,!1);const{symbol:i,failedAliasResolution:a}=qae(r,e,!1);if(!i)return;const o=e.getTypeOfSymbolAtLocation(i,r),s=function(e,n,t){if(n.symbol===e||e.valueDeclaration&&n.symbol&&NI(e.valueDeclaration)&&e.valueDeclaration.initializer===n.symbol.valueDeclaration){const e=n.getCallSignatures();if(1===e.length)return t.getReturnTypeOfSignature(Me(e))}return}(i,o,e),c=s&&Wae(s,e,r,a),l=c&&0!==c.length?c:Wae(o,e,r,a);return l.length?l:!(111551&i.flags)&&788968&i.flags?Jae(e,BE(i,e),r,a):void 0}function Wae(e,n,t,r){return X(!e.isUnion()||32&e.flags?[e]:e.types,(e=>e.symbol&&Jae(n,e.symbol,t,r)))}function zae(e,n,t){const r=Vae(e,n,t);if(!r||0===r.length)return;const i=Zae(n.referencedFiles,t)||Zae(n.typeReferenceDirectives,t)||Zae(n.libReferenceDirectives,t);if(i)return{definitions:r,textSpan:dY(i)};const a=TX(n,t);return{definitions:r,textSpan:yc(a.getStart(),a.getWidth())}}function qae(e,n,t){const r=n.getSymbolAtLocation(e);let i=!1;if((null==r?void 0:r.declarations)&&2097152&r.flags&&!t&&function(e,n){if(79!==e.kind)return!1;if(e.parent===n)return!0;if(271===n.kind)return!1;return!0}(e,r.declarations[0])){const e=n.getAliasedSymbol(r);if(e.declarations)return{symbol:e};i=!0}return{symbol:r,failedAliasResolution:i}}function Jae(e,n,t,r,i){const a=j(n.declarations,(e=>e!==i)),o=j(a,(e=>!function(e){if(!jh(e))return!1;const n=Mc(e,(e=>!!Hb(e)||!jh(e)&&"quit"));return!!n&&5===eg(n)}(e))),s=ce(o)?o:a;return function(){if(32&n.flags&&!(19&n.flags)&&(TJ(t)||135===t.kind)){return c((D(a,Fd)||Nt.fail("Expected declaration to have at least one class-like declaration")).members,!0)}}()||(xJ(t)||HJ(t)?c(a,!1):void 0)||W(s,(i=>Xae(i,e,n,t,!1,r)));function c(i,a){if(!i)return;const o=i.filter(a?ek:Id),s=o.filter((e=>!!e.body));return o.length?0!==s.length?s.map((r=>Xae(r,e,n,t))):[Xae(Ge(o),e,n,t,!1,r)]:void 0}}function Xae(e,n,t,r,i,a){const o=n.symbolToString(t),s=Zue.getSymbolKind(n,t,r),c=t.parent?n.symbolToString(t.parent,r):"";return Yae(n,e,s,o,c,i,a)}function Yae(e,n,t,r,i,a,o,s){const c=n.getSourceFile();if(!s){s=sY(Xc(n)||n,c)}return{fileName:c.fileName,textSpan:s,kind:t,name:r,containerKind:void 0,containerName:i,...Bae.toContextSpan(s,c,Bae.getContextNode(n)),isLocal:!$ae(e,n),isAmbient:!!(16777216&n.flags),unverified:a,failedAliasResolution:o}}function $ae(e,n){if(e.isDeclarationVisible(n))return!0;if(!n.parent)return!1;if(n_(n.parent)&&n.parent.initializer===n)return $ae(e,n.parent);switch(n.kind){case 169:case 174:case 175:case 171:if(pb(n,8))return!1;case 173:case 299:case 300:case 207:case 228:case 216:case 215:return $ae(e,n.parent);default:return!1}}function Qae(e,n,t){return Xae(n,e,n.symbol,n,!1,t)}function Zae(e,n){return D(e,(e=>lc(e,n)))}var eoe=E({"src/services/goToDefinition.ts"(){Bfe()}}),noe={};T(noe,{createDefinitionInfo:()=>Xae,findReferenceInPosition:()=>Zae,getDefinitionAndBoundSpan:()=>zae,getDefinitionAtPosition:()=>Vae,getReferenceAtPosition:()=>Hae,getTypeDefinitionAtPosition:()=>Kae});var toe,roe,ioe=E({"src/services/_namespaces/ts.GoToDefinition.ts"(){eoe()}});function aoe(e){return"literals"===e.includeInlayParameterNameHints}function ooe(e){const{file:n,program:t,span:r,cancellationToken:i,preferences:a}=e,o=n.text,s=t.getCompilerOptions(),c=t.getTypeChecker(),l=[];return function e(t){if(!t||0===t.getFullWidth())return;switch(t.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 171:case 216:i.throwIfCancellationRequested()}if(!fc(r,t.pos,t.getFullWidth()))return;if(zd(t)&&!rI(t))return;a.includeInlayVariableTypeHints&&NI(t)||a.includeInlayPropertyDeclarationTypeHints&&YC(t)?p(t):a.includeInlayEnumMemberValueHints&&Cw(t)?function(e){if(e.initializer)return;const n=c.getConstantValue(e);void 0!==n&&(t=n.toString(),r=e.end,l.push({text:`= ${y(t,toe)}`,position:r,kind:"Enum",whitespaceBefore:!0}));var t,r}(t):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(a)&&(Fk(t)||Gk(t))?function(e){const n=e.arguments;if(!n||!n.length)return;const t=[],r=c.getResolvedSignatureForSignatureHelp(e,t);if(!r||!t.length)return;for(let i=0;i<n.length;++i){const e=n[i],t=ey(e);if(aoe(a)&&!h(t))continue;const o=c.getParameterIdentifierNameAtPosition(r,i);if(o){const[n,r]=o;if(!(a.includeInlayParameterNameHintsWhenArgumentMatchesName||!f(t,n))&&!r)continue;const i=Bc(n);if(m(t,i))continue;d(i,e.getStart(),r)}}}(t):(a.includeInlayFunctionParameterTypeHints&&Rd(t)&&MS(t)&&function(e){const n=c.getSignatureFromDeclaration(e);if(!n)return;for(let t=0;t<e.parameters.length&&t<n.parameters.length;++t){const r=e.parameters[t];if(!b(r))continue;if(Qv(r))continue;const i=g(n.parameters[t]);i&&u(i,r.questionToken?r.questionToken.end:r.name.end)}}(t),a.includeInlayFunctionLikeReturnTypeHints&&function(e){return Hk(e)||jk(e)||OI(e)||QC(e)||nk(e)}(t)&&function(e){if(Hk(e)&&!dX(e,20,n))return;if(eb(e)||!e.body)return;const t=c.getSignatureFromDeclaration(e);if(!t)return;const r=c.getReturnTypeOfSignature(t);if(_(r))return;const i=v(r);if(!i)return;u(i,function(e){const t=dX(e,21,n);if(t)return t.end;return e.parameters.end}(e))}(t));return CD(t,e)}(n),l;function d(e,n,t){l.push({text:`${t?"...":""}${y(e,toe)}:`,position:n,kind:"Parameter",whitespaceAfter:!0})}function u(e,n){l.push({text:`: ${y(e,toe)}`,position:n,kind:"Type",whitespaceBefore:!0})}function _(e){return e.symbol&&1536&e.symbol.flags}function p(e){if(!e.initializer||Jd(e.name)||NI(e)&&!b(e))return;if(Qv(e))return;const n=c.getTypeAtLocation(e);if(_(n))return;const t=v(n);if(t){if(!1===a.includeInlayVariableTypeHintsWhenTypeMatchesName&&Fn(e.name.getText(),t))return;u(t,e.name.end)}}function f(e,n){return IC(e)?e.text===n:!!Mk(e)&&e.name.text===n}function m(e,t){if(!Js(t,s.target,GT(n.scriptKind)))return!1;const r=Hs(o,e.pos);if(!(null==r?void 0:r.length))return!1;const i=roe(t);return ce(r,(e=>i.test(o.substring(e.pos,e.end))))}function h(e){switch(e.kind){case 221:{const n=e.operand;return sd(n)||IC(n)&&PS(n.escapedText)}case 110:case 95:case 104:case 14:case 225:return!0;case 79:{const n=e.escapedText;return function(e){return"undefined"===e}(n)||PS(n)}}return sd(e)}function g(e){const n=e.valueDeclaration;if(!n||!qC(n))return;const t=c.getTypeOfSymbolAtLocation(e,n);return _(t)?void 0:v(t)}function y(e,n){return e.length>n?e.substr(0,n-3)+"...":e}function v(e){const t=ej();return bp((r=>{const i=c.typeToTypeNode(e,void 0,71286784);Nt.assertIsDefined(i,"should always get typenode"),t.writeNode(4,i,n,r)}))}function b(e){if((Jy(e)||NI(e)&&dm(e))&&e.initializer){const n=ey(e.initializer);return!(h(n)||Gk(n)||Ok(n)||hu(n))}return!0}}var soe=E({"src/services/inlayHints.ts"(){Bfe(),toe=30,roe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),coe={};T(coe,{provideInlayHints:()=>ooe});var loe,doe,uoe,_oe,poe=E({"src/services/_namespaces/ts.InlayHints.ts"(){soe()}});function foe(e,n){const t=[];return qY(e,(e=>{for(const r of function(e){switch(e.kind){case 344:case 351:return[e];case 341:case 349:return[e,e.parent];default:return Dg(e)}}(e)){const i=zw(r)&&r.tags&&D(r.tags,(e=>330===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText)));if(void 0===r.comment&&!i||zw(r)&&349!==e.kind&&341!==e.kind&&r.tags&&r.tags.some((e=>349===e.kind||341===e.kind))&&!r.tags.some((e=>344===e.kind||345===e.kind)))continue;let a=r.comment?goe(r.comment,n):[];i&&i.comment&&(a=a.concat(goe(i.comment,n))),G(t,a,moe)||t.push(a)}})),J(R(t,[h$()]))}function moe(e,n){return B(e,n,((e,n)=>e.kind===n.kind&&e.text===n.text))}function hoe(e,n){const t=[];return qY(e,(e=>{const r=Il(e);if(!r.some((e=>349===e.kind||341===e.kind))||r.some((e=>344===e.kind||345===e.kind)))for(const i of r)t.push({name:i.tagName.text,text:yoe(i,n)})})),t}function goe(e,n){return"string"===typeof e?[c$(e)]:X(e,(e=>324===e.kind?[c$(e.text)]:f$(e,n)))}function yoe(e,n){const{comment:t,kind:r}=e,i=function(e){switch(e){case 344:return a$;case 351:return o$;case 348:return d$;case 349:case 341:return l$;default:return c$}}(r);switch(r){case 352:const r=e.typeExpression;return r?a(r):void 0===t?void 0:goe(t,n);case 332:case 331:return a(e.class);case 348:const o=e,s=[];if(o.constraint&&s.push(c$(o.constraint.getText())),S(o.typeParameters)){S(s)&&s.push(n$());const e=o.typeParameters[o.typeParameters.length-1];A(o.typeParameters,(n=>{s.push(i(n.getText())),e!==n&&s.push(r$(27),n$())}))}return t&&s.push(n$(),...goe(t,n)),s;case 347:case 353:return a(e.typeExpression);case 349:case 341:case 351:case 344:case 350:const{name:c}=e;return c?a(c):void 0===t?void 0:goe(t,n);default:return void 0===t?void 0:goe(t,n)}function a(e){return r=e.getText(),t?r.match(/^https?$/)?[c$(r),...goe(t,n)]:[i(r),n$(),...goe(t,n)]:[c$(r)];var r}}function voe(){return doe||(doe=W(loe,(e=>({name:e,kind:"keyword",kindModifiers:"",sortText:Xie.SortText.LocationPriority}))))}function boe(){return uoe||(uoe=W(loe,(e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:Xie.SortText.LocationPriority}))))}function Eoe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[c$(e)],documentation:i,tags:void 0,codeActions:void 0}}function Toe(e){if(!IC(e.name))return i;const n=e.name.text,t=e.parent,r=t.parent;return Id(r)?ee(r.parameters,(r=>{if(!IC(r.name))return;const i=r.name.text;return t.tags.some((n=>n!==e&&cR(n)&&IC(n.name)&&n.name.escapedText===i))||void 0!==n&&!pt(i,n)?void 0:{name:i,kind:"parameter",kindModifiers:"",sortText:Xie.SortText.LocationPriority}})):[]}function xoe(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[c$(e)],documentation:i,tags:void 0,codeActions:void 0}}function Soe(e,n,t,r){const i=SX(n,t),a=Mc(i,zw);if(a&&(void 0!==a.comment||S(a.tags)))return;const o=i.getStart(n);if(!a&&o<t)return;const s=function(e,n){return hp(e,(e=>Aoe(e,n)))}(i,r);if(!s)return;const{commentOwner:c,parameters:l,hasReturn:d}=s,u=Zu(c)&&c.jsDoc?c.jsDoc:void 0,_=Fe(u);if(c.getStart(n)<t||_&&a&&_!==a)return;const p=function(e,n){const{text:t}=e,r=XJ(n,e);let i=r;for(;i<=n&&Ls(t.charCodeAt(i));i++);return t.slice(r,i)}(n,t),f=Ux(n.fileName),m=(l?function(e,n,t,r){return e.map((({name:e,dotDotDotToken:i},a)=>{const o=79===e.kind?e.text:"param"+a;return`${t} * @param ${n?i?"{...any} ":"{any} ":""}${o}${r}`})).join("")}(l||[],f,p,e):"")+(d?function(e,n){return`${e} * @returns${n}`}(p,e):""),h=(u||[]).some((e=>!!e.tags));if(m&&!h){const n="/**"+e+p+" * ";return{newText:n+e+m+p+" */"+(o===t?e+p:""),caretOffset:n.length}}return{newText:"/** */",caretOffset:3}}function Aoe(e,n){switch(e.kind){case 259:case 215:case 171:case 173:case 170:case 216:const t=e;return{commentOwner:e,parameters:t.parameters,hasReturn:Loe(t,n)};case 299:return Aoe(e.initializer,n);case 260:case 261:case 263:case 302:case 262:return{commentOwner:e};case 168:{const t=e;return t.type&&ck(t.type)?{commentOwner:e,parameters:t.type.parameters,hasReturn:Loe(t.type,n)}:{commentOwner:e}}case 240:{const t=e.declarationList.declarations,r=1===t.length&&t[0].initializer?function(e){for(;214===e.kind;)e=e.expression;switch(e.kind){case 215:case 216:return e;case 228:return D(e.members,ek)}}(t[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:Loe(r,n)}:{commentOwner:e}}case 308:return"quit";case 264:return 264===e.parent.kind?void 0:{commentOwner:e};case 241:return Aoe(e.expression,n);case 223:{const t=e;return 0===eg(t)?"quit":Id(t.right)?{commentOwner:e,parameters:t.right.parameters,hasReturn:Loe(t.right,n)}:{commentOwner:e}}case 169:const r=e.initializer;if(r&&(jk(r)||Hk(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:Loe(r,n)}}}function Loe(e,n){return!!(null==n?void 0:n.generateReturnInDocTemplate)&&(ck(e)||Hk(e)&&mu(e.body)||Rd(e)&&e.body&&pI(e.body)&&!!Am(e.body,(e=>e)))}var Coe=E({"src/services/jsDoc.ts"(){Bfe(),loe=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],_oe=Eoe}}),koe={};T(koe,{getDocCommentTemplateAtPosition:()=>Soe,getJSDocParameterNameCompletionDetails:()=>xoe,getJSDocParameterNameCompletions:()=>Toe,getJSDocTagCompletionDetails:()=>Eoe,getJSDocTagCompletions:()=>boe,getJSDocTagNameCompletionDetails:()=>_oe,getJSDocTagNameCompletions:()=>voe,getJsDocCommentsFromDeclarations:()=>foe,getJsDocTagsFromDeclarations:()=>hoe});var Ioe,woe=E({"src/services/_namespaces/ts.JsDoc.ts"(){Coe()}});function Roe(e,n,t,r,i,a){const o=R_e.ChangeTracker.fromContext({host:t,formatContext:n,preferences:i}),s="SortAndCombine"===a||"All"===a,c=s,l="RemoveUnused"===a||"All"===a,d=Noe(e,e.statements.filter(KI)),u=function(e,n){var t;const r="boolean"===typeof e.organizeImportsIgnoreCase?e.organizeImportsIgnoreCase:null!=(t=null==n?void 0:n())&&t;return tse(e,r)}(i,s?()=>2===qoe(d,i):void 0),_=n=>(l&&(n=function(e,n,t){const r=t.getTypeChecker(),i=t.getCompilerOptions(),a=r.getJsxNamespace(n),o=r.getJsxFragmentFactory(n),s=!!(2&n.transformFlags),c=[];for(const d of e){const{importClause:e,moduleSpecifier:t}=d;if(!e){c.push(d);continue}let{name:r,namedBindings:i}=e;if(r&&!l(r)&&(r=void 0),i)if(XI(i))l(i.name)||(i=void 0);else{const e=i.elements.filter((e=>l(e.name)));e.length<i.elements.length&&(i=e.length?gA.updateNamedImports(i,e):void 0)}r||i?c.push(Uoe(d,r,i)):Ooe(n,t)&&(n.isDeclarationFile?c.push(gA.createImportDeclaration(d.modifiers,void 0,t,void 0)):c.push(d))}return c;function l(e){return s&&(e.text===a||o&&e.text===o)&&VQ(i.jsx)||Bae.Core.isSymbolReferencedInFile(e,r,n)}}(n,e,r)),c&&(n=Foe(n,u,e)),s&&(n=Re(n,((e,n)=>$oe(e,n,u)))),n);if(d.forEach((e=>p(e,_))),"RemoveUnused"!==a){p(e.statements.filter(ew),(e=>Boe(e,u)))}for(const f of e.statements.filter(yf)){if(!f.body)continue;if(Noe(e,f.body.statements.filter(KI)).forEach((e=>p(e,_))),"RemoveUnused"!==a){p(f.body.statements.filter(ew),(e=>Boe(e,u)))}}return o.getChanges();function p(r,i){if(0===S(r))return;M$(r[0]);const a=c?an(r,(e=>Moe(e.moduleSpecifier))):[r],l=X(s?Re(a,((e,n)=>Koe(e[0].moduleSpecifier,n[0].moduleSpecifier,u))):a,(e=>Moe(e[0].moduleSpecifier)?i(e):e));if(0===l.length)o.deleteNodes(e,r,{leadingTriviaOption:R_e.LeadingTriviaOption.Exclude,trailingTriviaOption:R_e.TrailingTriviaOption.Include},!0);else{const i={leadingTriviaOption:R_e.LeadingTriviaOption.Exclude,trailingTriviaOption:R_e.TrailingTriviaOption.Include,suffix:m$(t,n.options)};o.replaceNodeWithNodes(e,r[0],l,i);const a=o.nodeHasTrailingComment(e,r[0],i);o.deleteNodes(e,r.slice(1),{trailingTriviaOption:R_e.TrailingTriviaOption.Include},a)}}}function Noe(e,n){const t=Xs(e.languageVersion,!1,e.languageVariant),r=[];let i=0;for(const a of n)r[i]&&Doe(e,a,t)&&i++,r[i]||(r[i]=[]),r[i].push(a);return r}function Doe(e,n,t){const r=n.getFullStart(),i=n.getStart();t.setText(e.text,r,i-r);let a=0;for(;t.getTokenPos()<i;){if(4===t.scan()&&(a++,a>=2))return!0}return!1}function Ooe(e,n){const t=_C(n)&&n.text;return vn(t)&&ce(e.moduleAugmentations,(e=>_C(e)&&e.text===t))}function Moe(e){return void 0!==e&&o_(e)?e.text:void 0}function Poe(e,n,t){return Foe(e,ese(n),t)}function Foe(e,n,t){if(0===e.length)return e;const{importWithoutClause:r,typeOnlyImports:a,regularImports:o}=function(e){let n;const t={defaultImports:[],namespaceImports:[],namedImports:[]},r={defaultImports:[],namespaceImports:[],namedImports:[]};for(const i of e){if(void 0===i.importClause){n=n||i;continue}const e=i.importClause.isTypeOnly?t:r,{name:a,namedBindings:o}=i.importClause;a&&e.defaultImports.push(i),o&&(XI(o)?e.namespaceImports.push(i):e.namedImports.push(i))}return{importWithoutClause:n,typeOnlyImports:t,regularImports:r}}(e),s=[];r&&s.push(r);for(const c of[o,a]){const e=c===a,{defaultImports:r,namespaceImports:o,namedImports:l}=c;if(!e&&1===r.length&&1===o.length&&0===l.length){const e=r[0];s.push(Uoe(e,e.importClause.name,o[0].importClause.namedBindings));continue}const d=Re(o,((e,t)=>n(e.importClause.namedBindings.name.text,t.importClause.namedBindings.name.text)));for(const n of d)s.push(Uoe(n,void 0,n.importClause.namedBindings));const u=De(r),_=De(l),p=null!=u?u:_;if(!p)continue;let f;const m=[];if(1===r.length)f=r[0].importClause.name;else for(const n of r)m.push(gA.createImportSpecifier(!1,gA.createIdentifier("default"),n.importClause.name));m.push(...Zoe(l));const h=gA.createNodeArray(Voe(m,n),null==_?void 0:_.importClause.namedBindings.elements.hasTrailingComma),g=0===h.length?f?void 0:gA.createNamedImports(i):_?gA.updateNamedImports(_.importClause.namedBindings,h):gA.createNamedImports(h);t&&g&&(null==_?void 0:_.importClause.namedBindings)&&!bE(_.importClause.namedBindings,t)&&jA(g,2),e&&f&&g?(s.push(Uoe(p,f,void 0)),s.push(Uoe(null!=_?_:p,void 0,g))):s.push(Uoe(p,f,g))}return s}function Goe(e,n){return Boe(e,ese(n))}function Boe(e,n){if(0===e.length)return e;const{exportWithoutClause:t,namedExports:r,typeOnlyExports:a}=function(e){let n;const t=[],r=[];for(const i of e)void 0===i.exportClause?n=n||i:i.isTypeOnly?r.push(i):t.push(i);return{exportWithoutClause:n,namedExports:t,typeOnlyExports:r}}(e),o=[];t&&o.push(t);for(const s of[r,a]){if(0===s.length)continue;const e=[];e.push(...X(s,(e=>e.exportClause&&nw(e.exportClause)?e.exportClause.elements:i)));const t=Voe(e,n),r=s[0];o.push(gA.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,r.exportClause&&(nw(r.exportClause)?gA.updateNamedExports(r.exportClause,t):gA.updateNamespaceExport(r.exportClause,r.exportClause.name)),r.moduleSpecifier,r.assertClause))}return o}function Uoe(e,n,t){return gA.updateImportDeclaration(e,e.modifiers,gA.updateImportClause(e.importClause,e.importClause.isTypeOnly,n,t),e.moduleSpecifier,e.assertClause)}function Voe(e,n){return Re(e,((e,t)=>joe(e,t,n)))}function joe(e,n,t){return $n(e.isTypeOnly,n.isTypeOnly)||t(e.name.text,n.name.text)}function Hoe(e,n,t){return Koe(e,n,ese(!!t))}function Koe(e,n,t){const r=void 0===e?void 0:Moe(e),i=void 0===n?void 0:Moe(n);return $n(void 0===r,void 0===i)||$n(rc(r),rc(i))||t(r,i)}function Woe(e){var n;switch(e.kind){case 268:return null==(n=En(e.moduleReference,cw))?void 0:n.expression;case 269:return e.moduleSpecifier;case 240:return e.declarationList.declarations[0].initializer.arguments[0]}}function zoe(e,n){return qoe(Noe(e,e.statements.filter(KI)),n)}function qoe(e,n){const t=tse(n,!1),r=tse(n,!0);let i=3,a=!1;for(const o of e){if(o.length>1){const e=ye(o,(e=>{var n,t;return null!=(t=null==(n=En(e.moduleSpecifier,_C))?void 0:n.text)?t:""}),t,r);if(e&&(i&=e,a=!0),!i)return i}const e=D(o,(e=>{var n,t;return(null==(t=En(null==(n=e.importClause)?void 0:n.namedBindings,$I))?void 0:t.elements.length)>1}));if(e){const t=Ioe(e.importClause.namedBindings.elements,n);if(t&&(i&=t,a=!0),!i)return i}if(3!==i)return i}return a?0:i}function Joe(e,n){return ye(e,(e=>Moe(Woe(e))||""),tse(n,!1),tse(n,!0))}function Xoe(e,n,t){const r=He(e,n,Cn,((e,n)=>$oe(e,n,t)));return r<0?~r:r}function Yoe(e,n,t){const r=He(e,n,Cn,((e,n)=>joe(e,n,t)));return r<0?~r:r}function $oe(e,n,t){return Koe(Woe(e),Woe(n),t)||function(e,n){return Un(Qoe(e),Qoe(n))}(e,n)}function Qoe(e){var n;switch(e.kind){case 269:return e.importClause?e.importClause.isTypeOnly?1:271===(null==(n=e.importClause.namedBindings)?void 0:n.kind)?2:e.importClause.name?3:4:0;case 268:return 5;case 240:return 6}}function Zoe(e){return X(e,(e=>W(function(e){var n;return(null==(n=e.importClause)?void 0:n.namedBindings)&&$I(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}(e),(e=>e.name&&e.propertyName&&e.name.escapedText===e.propertyName.escapedText?gA.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))))}function ese(e){return e?Kn:Wn}function nse(e,n){var t,r,i;const a=function(e){let n=e.organizeImportsLocale;"auto"===n&&(n=qn());void 0===n&&(n="en");const t=Intl.Collator.supportedLocalesOf(n),r=t.length?t[0]:"en";return r}(n),o=null!=(t=n.organizeImportsCaseFirst)&&t,s=null!=(r=n.organizeImportsNumericCollation)&&r,c=null==(i=n.organizeImportsAccentCollation)||i,l=e?c?"accent":"base":c?"variant":"case";return new Intl.Collator(a,{usage:"sort",caseFirst:o||"false",sensitivity:l,numeric:s}).compare}function tse(e,n){var t;return"unicode"===(null!=(t=e.organizeImportsCollation)?t:"ordinal")?nse(n,e):ese(n)}var rse=E({"src/services/organizeImports.ts"(){Bfe(),Ioe=On(((e,n)=>{if(!ge(e,((e,n)=>$n(e.isTypeOnly,n.isTypeOnly))))return 0;return ye(e,(e=>e.name.text),tse(n,!1),tse(n,!0))}),new class{has([e,n]){return!(this._lastPreferences!==n||!this._cache)&&this._cache.has(e)}get([e,n]){if(this._lastPreferences===n&&this._cache)return this._cache.get(e)}set([e,n],t){this._lastPreferences!==n&&(this._lastPreferences=n,this._cache=void 0),null!=this._cache||(this._cache=new WeakMap),this._cache.set(e,t)}})}}),ise={};T(ise,{coalesceExports:()=>Goe,coalesceImports:()=>Poe,compareImportOrExportSpecifiers:()=>joe,compareImportsOrRequireStatements:()=>$oe,compareModuleSpecifiers:()=>Hoe,detectImportDeclarationSorting:()=>Joe,detectImportSpecifierSorting:()=>Ioe,detectSorting:()=>zoe,getImportDeclarationInsertionIndex:()=>Xoe,getImportSpecifierInsertionIndex:()=>Yoe,getOrganizeImportsComparer:()=>tse,organizeImports:()=>Roe});var ase,ose=E({"src/services/_namespaces/ts.OrganizeImports.ts"(){rse()}});function sse(e,n){const t=[];return function(e,n,t){let r=40,i=0;const a=[...e.statements,e.endOfFileToken],o=a.length;for(;i<o;){for(;i<o&&!Of(a[i]);)s(a[i]),i++;if(i===o)break;const n=i;for(;i<o&&Of(a[i]);)s(a[i]),i++;const r=i-1;r!==n&&t.push(use(dX(a[n],100,e).getStart(e),a[r].getEnd(),"imports"))}function s(i){var a;if(0===r)return;n.throwIfCancellationRequested(),(Pu(i)||fI(i)||AI(i)||su(i)||1===i.kind)&&dse(i,e,n,t),Id(i)&&Yk(i.parent)&&Mk(i.parent.left)&&dse(i.parent.left,e,n,t),(pI(i)||UI(i))&&lse(i.statements.end,e,n,t),(Fd(i)||PI(i))&&lse(i.members.end,e,n,t);const o=function(e,n){switch(e.kind){case 238:if(Id(e.parent))return function(e,n,t){const r=function(e,n,t){if(CE(e.parameters,t)){const n=dX(e,20,t);if(n)return n}return dX(n,18,t)}(e,n,t),i=dX(n,19,t);return r&&i&&_se(r,i,e,t,216!==e.kind)}(e.parent,e,n);switch(e.parent.kind){case 243:case 246:case 247:case 245:case 242:case 244:case 251:case 295:return d(e.parent);case 255:const t=e.parent;if(t.tryBlock===e)return d(e.parent);if(t.finallyBlock===e){const e=dX(t,96,n);if(e)return d(e)}default:return pse(sY(e,n),"code")}case 265:return d(e.parent);case 260:case 228:case 261:case 263:case 266:case 184:case 203:return d(e);case 186:return d(e,!1,!pk(e.parent),22);case 292:case 293:return u(e.statements);case 207:return l(e);case 206:return l(e,22);case 281:return a(e);case 285:return o(e);case 282:case 283:return s(e.attributes);case 225:case 14:return c(e);case 204:return d(e,!1,!Nk(e.parent),22);case 216:return i(e);case 210:return r(e);case 214:return _(e);case 272:case 276:case 296:return t(e)}function t(e){if(!e.elements.length)return;const t=dX(e,18,n),r=dX(e,19,n);return t&&r&&!kE(t.pos,r.pos,n)?_se(t,r,e,n,!1,!1):void 0}function r(e){if(!e.arguments.length)return;const t=dX(e,20,n),r=dX(e,21,n);return t&&r&&!kE(t.pos,r.pos,n)?_se(t,r,e,n,!1,!0):void 0}function i(e){if(pI(e.body)||Vk(e.body)||kE(e.body.getFullStart(),e.body.getEnd(),n))return;return pse(vc(e.body.getFullStart(),e.body.getEnd()),"code",sY(e))}function a(e){const t=vc(e.openingElement.getStart(n),e.closingElement.getEnd()),r=e.openingElement.tagName.getText(n);return pse(t,"code",t,!1,"<"+r+">...</"+r+">")}function o(e){const t=vc(e.openingFragment.getStart(n),e.closingFragment.getEnd());return pse(t,"code",t,!1,"<>...</>")}function s(e){if(0!==e.properties.length)return use(e.getStart(n),e.getEnd(),"code")}function c(e){if(14!==e.kind||0!==e.text.length)return use(e.getStart(n),e.getEnd(),"code")}function l(e,n=18){return d(e,!1,!Dk(e.parent)&&!Fk(e.parent),n)}function d(t,r=!1,i=!0,a=18,o=(18===a?19:23)){const s=dX(e,a,n),c=dX(e,o,n);return s&&c&&_se(s,c,t,n,r,i)}function u(e){return e.length?pse(dY(e),"code"):void 0}function _(e){if(kE(e.getStart(),e.getEnd(),n))return;return pse(vc(e.getStart(),e.getEnd()),"code",sY(e))}}(i,e);o&&t.push(o),r--,Fk(i)?(r++,s(i.expression),r--,i.arguments.forEach(s),null==(a=i.typeArguments)||a.forEach(s)):gI(i)&&i.elseStatement&&gI(i.elseStatement)?(s(i.expression),s(i.thenStatement),r++,s(i.elseStatement),r--):i.forEachChild(s),r++}}(e,n,t),function(e,n){const t=[],r=e.getLineStarts();for(const i of r){const r=e.getLineEndOfPosition(i),a=cse(e.text.substring(i,r));if(a&&!KX(e,i))if(a[1]){const e=t.pop();e&&(e.textSpan.length=r-e.textSpan.start,e.hintSpan.length=r-e.textSpan.start,n.push(e))}else{const n=vc(e.text.indexOf("//",i),r);t.push(pse(n,"region",n,!1,a[2]||"#region"))}}}(e,t),t.sort(((e,n)=>e.textSpan.start-n.textSpan.start))}function cse(e){return pt(e=y(e),"//")?(e=h(e.slice(2)),ase.exec(e)):null}function lse(e,n,t,r){const i=Hs(n.text,e);if(!i)return;let a=-1,o=-1,s=0;const c=n.getFullText();for(const{kind:d,pos:u,end:_}of i)switch(t.throwIfCancellationRequested(),d){case 2:if(cse(c.slice(u,_))){l(),s=0;break}0===s&&(a=u),o=_,s++;break;case 3:l(),r.push(use(u,_,"comment")),s=0;break;default:Nt.assertNever(d)}function l(){s>1&&r.push(use(a,o,"comment"))}l()}function dse(e,n,t,r){pC(e)||lse(e.pos,n,t,r)}function use(e,n,t){return pse(vc(e,n),t)}function _se(e,n,t,r,i=!1,a=!0){return pse(vc(a?e.getFullStart():e.getStart(r),n.getEnd()),"code",sY(t,r),i)}function pse(e,n,t=e,r=!1,i="..."){return{textSpan:e,kind:n,hintSpan:t,bannerText:i,autoCollapse:r}}var fse=E({"src/services/outliningElementsCollector.ts"(){Bfe(),ase=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),mse={};T(mse,{collectElements:()=>sse});var hse,gse=E({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){fse()}});function yse(e,n){hse.set(e,n)}function vse(e){return Qe($(hse.values(),(n=>{var t;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!(null==(t=n.kinds)?void 0:t.some((n=>Jse(n,e.kind))))?void 0:n.getAvailableActions(e)})))}function bse(e,n,t){const r=hse.get(n);return r&&r.getEditsForAction(e,t)}var Ese,Tse,xse,Sse=E({"src/services/refactorProvider.ts"(){Bfe(),Yde(),hse=new Map}});function Ase(e,n=!0){const{file:t,program:r}=e,i=xQ(e),a=SX(t,i.start),o=a.parent&&1&kb(a.parent)&&n?a.parent:UY(a,t,i);if(!o||!Iw(o.parent)&&(!UI(o.parent)||!yf(o.parent.parent)))return{error:xT(Wo.Could_not_find_export_statement)};const s=r.getTypeChecker(),c=function(e,n){if(Iw(e))return e.symbol;const t=e.parent.symbol;if(t.valueDeclaration&&Af(t.valueDeclaration))return n.getMergedSymbol(t);return t}(o.parent,s),l=kb(o)||(ZI(o)&&!o.isExportEquals?1025:0),d=!!(1024&l);if(!(1&l)||!d&&c.exports.has("default"))return{error:xT(Wo.This_file_already_has_a_default_export)};const u=e=>IC(e)&&s.getSymbolAtLocation(e)?void 0:{error:xT(Wo.Can_only_convert_named_export)};switch(o.kind){case 259:case 260:case 261:case 263:case 262:case 264:{const e=o;if(!e.name)return;return u(e.name)||{exportNode:e,exportName:e.name,wasDefault:d,exportingModuleSymbol:c}}case 240:{const e=o;if(!(2&e.declarationList.flags)||1!==e.declarationList.declarations.length)return;const n=Me(e.declarationList.declarations);if(!n.initializer)return;return Nt.assert(!d,"Can't have a default flag here"),u(n.name)||{exportNode:e,exportName:n.name,wasDefault:d,exportingModuleSymbol:c}}case 274:{const e=o;if(e.isExportEquals)return;return u(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:d,exportingModuleSymbol:c}}default:return}}function Lse(e,n,t,r,i){!function(e,{wasDefault:n,exportNode:t,exportName:r},i,a){if(n)if(ZI(t)&&!t.isExportEquals){const n=t.expression,r=kse(n.text,n.text);i.replaceNode(e,t,gA.createExportDeclaration(void 0,!1,gA.createNamedExports([r])))}else i.delete(e,Nt.checkDefined(jY(t,88),"Should find a default keyword in modifier list"));else{const n=Nt.checkDefined(jY(t,93),"Should find an export keyword in modifier list");switch(t.kind){case 259:case 260:case 261:i.insertNodeAfter(e,n,gA.createToken(88));break;case 240:const o=Me(t.declarationList.declarations);if(!Bae.Core.isSymbolReferencedInFile(r,a,e)&&!o.type){i.replaceNode(e,t,gA.createExportDefault(Nt.checkDefined(o.initializer,"Initializer was previously known to be present")));break}case 263:case 262:case 264:i.deleteModifier(e,n),i.insertNodeAfter(e,t,gA.createExportDefault(gA.createIdentifier(r.text)));break;default:Nt.fail(`Unexpected exportNode kind ${t.kind}`)}}}(e,t,r,n.getTypeChecker()),function(e,{wasDefault:n,exportName:t,exportingModuleSymbol:r},i,a){const o=e.getTypeChecker(),s=Nt.checkDefined(o.getSymbolAtLocation(t),"Export name should resolve to a symbol");Bae.Core.eachExportReference(e.getSourceFiles(),o,a,s,r,t.text,n,(e=>{if(t===e)return;const r=e.getSourceFile();n?function(e,n,t,r){const{parent:i}=n;switch(i.kind){case 208:t.replaceNode(e,n,gA.createIdentifier(r));break;case 273:case 278:{const n=i;t.replaceNode(e,n,Cse(r,n.name.text));break}case 270:{const a=i;Nt.assert(a.name===n,"Import clause name should match provided ref");const o=Cse(r,n.text),{namedBindings:s}=a;if(s)if(271===s.kind){t.deleteRange(e,{pos:n.getStart(e),end:s.getStart(e)});const i=_C(a.parent.moduleSpecifier)?NY(a.parent.moduleSpecifier,e):1,o=wY(void 0,[Cse(r,n.text)],a.parent.moduleSpecifier,i);t.insertNodeAfter(e,a.parent,o)}else t.delete(e,n),t.insertNodeAtEndOfList(e,s.elements,o);else t.replaceNode(e,n,gA.createNamedImports([o]));break}case 202:const a=i;t.replaceNode(e,i,gA.createImportTypeNode(a.argument,a.assertions,gA.createIdentifier(r),a.typeArguments,a.isTypeOf));break;default:Nt.failBadSyntaxKind(i)}}(r,e,i,t.text):function(e,n,t){const r=n.parent;switch(r.kind){case 208:t.replaceNode(e,n,gA.createIdentifier("default"));break;case 273:{const n=gA.createIdentifier(r.name.text);1===r.parent.elements.length?t.replaceNode(e,r.parent,n):(t.delete(e,r),t.insertNodeBefore(e,r.parent,n));break}case 278:t.replaceNode(e,r,kse("default",r.name.text));break;default:Nt.assertNever(r,`Unexpected parent kind ${r.kind}`)}}(r,e,i)}))}(n,t,r,i)}function Cse(e,n){return gA.createImportSpecifier(!1,e===n?void 0:gA.createIdentifier(e),gA.createIdentifier(n))}function kse(e,n){return gA.createExportSpecifier(!1,e===n?void 0:gA.createIdentifier(e),gA.createIdentifier(n))}var Ise,wse,Rse=E({"src/services/refactors/convertExport.ts"(){Bfe(),Yde(),Ese="Convert export",Tse={name:"Convert default export to named export",description:Wo.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},xse={name:"Convert named export to default export",description:Wo.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"},yse(Ese,{kinds:[Tse.kind,xse.kind],getAvailableActions:function(e){const n=Ase(e,"invoked"===e.triggerReason);if(!n)return i;if(!qse(n)){const e=n.wasDefault?Tse:xse;return[{name:Ese,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:Ese,description:Wo.Convert_default_export_to_named_export.message,actions:[{...Tse,notApplicableReason:n.error},{...xse,notApplicableReason:n.error}]}]:i},getEditsForAction:function(e,n){Nt.assert(n===Tse.name||n===xse.name,"Unexpected action name");const t=Ase(e);Nt.assert(t&&!qse(t),"Expected applicable refactor info");return{edits:R_e.ChangeTracker.with(e,(n=>Lse(e.file,e.program,t,n,e.cancellationToken))),renameFilename:void 0,renameLocation:void 0}}})}});function Nse(e,n=!0){const{file:t}=e,r=xQ(e),i=SX(t,r.start),a=n?Mc(i,KI):UY(i,t,r);if(!a||!KI(a))return{error:"Selection is not an import declaration."};const o=r.start+r.length,s=kX(a,a.parent,t);if(s&&o>s.getStart())return;const{importClause:c}=a;if(!c)return{error:xT(Wo.Could_not_find_import_clause)};if(!c.namedBindings)return{error:xT(Wo.Could_not_find_namespace_import_or_named_imports)};if(271===c.namedBindings.kind)return{convertTo:0,import:c.namedBindings};return Dse(e.program,c)?{convertTo:1,import:c.namedBindings}:{convertTo:2,import:c.namedBindings}}function Dse(e,n){return nx(e.getCompilerOptions())&&function(e,n){const t=n.resolveExternalModuleName(e);if(!t)return!1;const r=n.resolveExternalModuleSymbol(t);return t!==r}(n.parent.moduleSpecifier,e.getTypeChecker())}function Ose(e,n,t,r){const i=n.getTypeChecker();0===r.convertTo?function(e,n,t,r,i){let a=!1;const o=[],s=new Map;Bae.Core.eachSymbolReferenceInFile(r.name,n,e,(e=>{if(au(e.parent)){const r=Mse(e.parent).text;n.resolveName(r,e,67108863,!0)&&s.set(r,!0),Nt.assert((Mk(t=e.parent)?t.expression:t.left)===e,"Parent expression should match id"),o.push(e.parent)}else a=!0;var t}));const c=new Map;for(const u of o){const n=Mse(u).text;let r=c.get(n);void 0===r&&c.set(n,r=s.has(n)?U$(n,e):n),t.replaceNode(e,u,gA.createIdentifier(r))}const l=[];c.forEach(((e,n)=>{l.push(gA.createImportSpecifier(!1,e===n?void 0:gA.createIdentifier(n),gA.createIdentifier(e)))}));const d=r.parent.parent;a&&!i?t.insertNodeAfter(e,d,Fse(d,void 0,l)):t.replaceNode(e,d,Fse(d,a?gA.createIdentifier(r.name.text):void 0,l))}(e,i,t,r.import,nx(n.getCompilerOptions())):Pse(e,n,t,r.import,1===r.convertTo)}function Mse(e){return Mk(e)?e.name:e.right}function Pse(e,n,t,r,i=Dse(n,r.parent)){const a=n.getTypeChecker(),o=r.parent.parent,{moduleSpecifier:s}=o,c=new Set;r.elements.forEach((e=>{const n=a.getSymbolAtLocation(e.name);n&&c.add(n)}));const l=s&&_C(s)?$te.moduleSpecifierToValidIdentifier(s.text,99):"module";const d=r.elements.some((function(n){return!!Bae.Core.eachSymbolReferenceInFile(n.name,a,e,(e=>{const n=a.resolveName(l,e,67108863,!0);return!!n&&(!c.has(n)||tw(e.parent))}))}))?U$(l,e):l,u=new Set;for(const _ of r.elements){const n=(_.propertyName||_.name).text;Bae.Core.eachSymbolReferenceInFile(_.name,a,e,(r=>{const i=gA.createPropertyAccessExpression(gA.createIdentifier(d),n);Aw(r.parent)?t.replaceNode(e,r.parent,gA.createPropertyAssignment(r.text,i)):tw(r.parent)?u.add(_):t.replaceNode(e,r,i)}))}if(t.replaceNode(e,r,i?gA.createIdentifier(d):gA.createNamespaceImport(gA.createIdentifier(d))),u.size){const n=Qe(u.values(),(e=>gA.createImportSpecifier(e.isTypeOnly,e.propertyName&&gA.createIdentifier(e.propertyName.text),gA.createIdentifier(e.name.text))));t.insertNodeAfter(e,r.parent.parent,Fse(o,void 0,n))}}function Fse(e,n,t){return gA.createImportDeclaration(void 0,gA.createImportClause(!1,n,t&&t.length?gA.createNamedImports(t):void 0),e.moduleSpecifier,void 0)}var Gse,Bse,Use,Vse,jse=E({"src/services/refactors/convertImport.ts"(){Bfe(),Yde(),Ise="Convert import",wse={0:{name:"Convert namespace import to named imports",description:Wo.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Wo.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Wo.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"}},yse(Ise,{kinds:Ye(wse).map((e=>e.kind)),getAvailableActions:function(e){const n=Nse(e,"invoked"===e.triggerReason);if(!n)return i;if(!qse(n)){const e=wse[n.convertTo];return[{name:Ise,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?Ye(wse).map((e=>({name:Ise,description:e.description,actions:[{...e,notApplicableReason:n.error}]}))):i},getEditsForAction:function(e,n){Nt.assert(ce(Ye(wse),(e=>e.name===n)),"Unexpected action name");const t=Nse(e);Nt.assert(t&&!qse(t),"Expected applicable refactor info");return{edits:R_e.ChangeTracker.with(e,(n=>Ose(e.file,e.program,n,t))),renameFilename:void 0,renameLocation:void 0}}})}});function Hse(e,n=!0){const{file:t,startPosition:r}=e,a=Ch(t),o=SX(t,r),s=uY(xQ(e)),c=s.pos===s.end&&n,l=Mc(o,(e=>e.parent&&zd(e)&&!Wse(s,e.parent,t)&&(c||rX(o,t,s.pos,s.end))));if(!l||!zd(l))return{error:xT(Wo.Selection_is_not_a_valid_type_node)};const d=e.program.getTypeChecker(),u=function(e,n){return Mc(e,Bu)||(n?Mc(e,zw):void 0)}(l,a);if(void 0===u)return{error:xT(Wo.No_type_could_be_extracted_from_this_type_node)};const _=function(e,n,t,r){const a=[];return o(n)?void 0:a;function o(s){if(sk(s)){if(IC(s.typeName)){const o=s.typeName,c=e.resolveName(o.text,o,262144,!0);for(const e of(null==c?void 0:c.declarations)||i)if(zC(e)&&e.getSourceFile()===r){if(e.name.escapedText===o.escapedText&&Wse(e,n,r))return!0;if(Wse(t,e,r)&&!Wse(n,e,r)){Le(a,e);break}}}}else if(bk(s)){const e=Mc(s,(e=>vk(e)&&Wse(e.extendsType,s,r)));if(!e||!Wse(n,e,r))return!0}else if(ok(s)||Tk(s)){const e=Mc(s.parent,Id);if(e&&e.type&&Wse(e.type,s,r)&&!Wse(n,e,r))return!0}else if(dk(s))if(IC(s.exprName)){const i=e.resolveName(s.exprName.text,s.exprName,111551,!1);if((null==i?void 0:i.valueDeclaration)&&Wse(t,i.valueDeclaration,r)&&!Wse(n,i.valueDeclaration,r))return!0}else if(Jv(s.exprName.left)&&!Wse(n,s.parent,r))return!0;return r&&pk(s)&&Ss(r,s.pos).line===Ss(r,s.end).line&&jA(s,1),CD(s,o)}}(d,l,u,t);if(!_)return{error:xT(Wo.No_type_could_be_extracted_from_this_type_node)};return{isJS:a,selection:l,enclosingNode:u,typeParameters:_,typeElements:Kse(d,l)}}function Kse(e,n){if(n){if(yk(n)){const t=[],r=new Map;for(const i of n.types){const n=Kse(e,i);if(!n||!n.every((e=>e.name&&nT(r,TY(e.name)))))return;Ae(t,n)}return t}return Ek(n)?Kse(e,n.type):uk(n)?n.members:void 0}}function Wse(e,n,t){return nX(e,Ns(t.text,n.pos),n.end)}var zse=E({"src/services/refactors/extractType.ts"(){Bfe(),Yde(),Gse="Extract type",Bse={name:"Extract to type alias",description:xT(Wo.Extract_to_type_alias),kind:"refactor.extract.type"},Use={name:"Extract to interface",description:xT(Wo.Extract_to_interface),kind:"refactor.extract.interface"},Vse={name:"Extract to typedef",description:xT(Wo.Extract_to_typedef),kind:"refactor.extract.typedef"},yse(Gse,{kinds:[Bse.kind,Use.kind,Vse.kind],getAvailableActions:function(e){const n=Hse(e,"invoked"===e.triggerReason);return n?qse(n)?e.preferences.provideRefactorNotApplicableReason?[{name:Gse,description:xT(Wo.Extract_type),actions:[{...Vse,notApplicableReason:n.error},{...Bse,notApplicableReason:n.error},{...Use,notApplicableReason:n.error}]}]:i:[{name:Gse,description:xT(Wo.Extract_type),actions:n.isJS?[Vse]:Te([Bse],n.typeElements&&Use)}]:i},getEditsForAction:function(e,n){const{file:t}=e,r=Hse(e);Nt.assert(r&&!qse(r),"Expected to find a range to extract");const i=U$("NewType",t),a=R_e.ChangeTracker.with(e,(a=>{switch(n){case Bse.name:return Nt.assert(!r.isJS,"Invalid actionName/JS combo"),function(e,n,t,r){const{enclosingNode:i,selection:a,typeParameters:o}=r,s=gA.createTypeAliasDeclaration(void 0,t,o.map((e=>gA.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0))),a);e.insertNodeBefore(n,i,hL(s),!0),e.replaceNode(n,a,gA.createTypeReferenceNode(t,o.map((e=>gA.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:R_e.LeadingTriviaOption.Exclude,trailingTriviaOption:R_e.TrailingTriviaOption.ExcludeWhitespace})}(a,t,i,r);case Vse.name:return Nt.assert(r.isJS,"Invalid actionName/JS combo"),function(e,n,t,r,i){var a;const{enclosingNode:o,selection:s,typeParameters:c}=i;jA(s,7168);const l=gA.createJSDocTypedefTag(gA.createIdentifier("typedef"),gA.createJSDocTypeExpression(s),gA.createIdentifier(r)),d=[];A(c,(e=>{const n=Pl(e),t=gA.createTypeParameterDeclaration(void 0,e.name),r=gA.createJSDocTemplateTag(gA.createIdentifier("template"),n&&Tn(n,Nw),[t]);d.push(r)}));const u=gA.createJSDocComment(void 0,gA.createNodeArray(de(d,[l])));if(zw(o)){const r=o.getStart(t),i=m$(n.host,null==(a=n.formatContext)?void 0:a.options);e.insertNodeAt(t,o.getStart(t),u,{suffix:i+i+t.text.slice(k$(t.text,r-1),r)})}else e.insertNodeBefore(t,o,u,!0);e.replaceNode(t,s,gA.createTypeReferenceNode(r,c.map((e=>gA.createTypeReferenceNode(e.name,void 0)))))}(a,e,t,i,r);case Use.name:return Nt.assert(!r.isJS&&!!r.typeElements,"Invalid actionName/JS combo"),function(e,n,t,r){var i;const{enclosingNode:a,selection:o,typeParameters:s,typeElements:c}=r,l=gA.createInterfaceDeclaration(void 0,t,s,void 0,c);VN(l,null==(i=c[0])?void 0:i.parent),e.insertNodeBefore(n,a,hL(l),!0),e.replaceNode(n,o,gA.createTypeReferenceNode(t,s.map((e=>gA.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:R_e.LeadingTriviaOption.Exclude,trailingTriviaOption:R_e.TrailingTriviaOption.ExcludeWhitespace})}(a,t,i,r);default:Nt.fail("Unexpected action name")}})),o=t.fileName;return{edits:a,renameFilename:o,renameLocation:V$(a,o,i,!1)}}})}});function qse(e){return void 0!==e.error}function Jse(e,n){return!n||e.substr(0,n.length)===n}var Xse,Yse,$se,Qse,Zse=E({"src/services/refactors/helpers.ts"(){}});function ece(e,n,t,r,i,a){const o=n.getTypeChecker(),s=function(e,n,t){const r=new Qse,i=new Qse,a=new Qse,o=D(n,(e=>!!(2&e.transformFlags))),s=d(o);s&&i.add(s);for(const u of n)vce(u,(e=>{r.add(Nt.checkDefined(hI(e)?t.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))}));for(const u of n)mce(u,t,(n=>{if(n.declarations)for(const t of n.declarations)_ce(t)?i.add(n):hce(t)&&gce(t)===e&&!r.has(n)&&a.add(n)}));const c=i.clone(),l=new Qse;for(const u of e.statements)G(n,u)||(s&&2&u.transformFlags&&c.delete(s),mce(u,t,(e=>{r.has(e)&&l.add(e),c.delete(e)})));return{movedSymbols:r,newFileImportsFromOldFile:a,oldFileImportsFromNewFile:l,oldImportsNeededByNewFile:i,unusedImportsFromOldFile:c};function d(e){if(void 0===e)return;const n=t.getJsxNamespace(e),r=t.resolveName(n,e,1920,!0);return r&&ce(r.declarations,_ce)?r:void 0}}(e,t.all,o),c=po(e.fileName),l=tS(e.fileName),d=Eo(c,function(e,n,t,r){let i=e;for(let a=1;;a++){const o=Eo(t,i+n);if(!r.fileExists(o))return i;i=`${e}.${a}`}}((u=s.oldFileImportsFromNewFile,_=s.movedSymbols,u.forEachEntry(MY)||_.forEachEntry(MY)||"newFile"),l,c,i))+l;var u,_;r.createNewFile(e,d,function(e,n,t,r,i,a,o,s){const c=i.getTypeChecker(),l=Ct(e.statements,hm);if(void 0===e.externalModuleIndicator&&void 0===e.commonJsModuleIndicator&&0===n.oldImportsNeededByNewFile.size())return rce(e,r.ranges,t),[...l,...r.all];const d=!!e.externalModuleIndicator,u=DY(e,s),_=function(e,n,t,r,i,a,o){let s;const c=[];return n.forEach((e=>{"default"===e.escapedName?s=gA.createIdentifier(MY(e)):c.push(e.name)})),cce(e,s,c,t,r,i,a,o)}(e,n.oldFileImportsFromNewFile,o,i,a,d,u);_&&HY(t,e,_,!0,s);(function(e,n,t,r,i){for(const a of e.statements)G(n,a)||sce(a,(n=>uce(e,n,t,(e=>r.has(i.getSymbolAtLocation(e))))))})(e,r.all,t,n.unusedImportsFromOldFile,c),rce(e,r.ranges,t),function(e,n,t,r,i,a){const o=n.getTypeChecker();for(const s of n.getSourceFiles())if(s!==r)for(const c of s.statements)sce(c,(l=>{if(o.getSymbolAtLocation(oce(l))!==r.symbol)return;const d=e=>{const n=Nk(e.parent)?BY(o,e.parent):BE(o.getSymbolAtLocation(e),o);return!!n&&i.has(n)};uce(s,l,e,d);const u=To(po(r.path),a),_=lG(n.getCompilerOptions(),s,s.path,u,LY(n,t)),p=fce(l,gA.createStringLiteral(_),d);p&&e.insertNodeAfter(s,c,p);const f=ice(l);f&&ace(e,s,o,i,_,f,l)}))}(t,i,a,e,n.movedSymbols,o);const p=function(e,n,t,r,i,a,o,s,c){const l=[];for(const p of e.statements)sce(p,(e=>{Te(l,fce(e,oce(e),(e=>n.has(i.getSymbolAtLocation(e)))))}));let d;const u=[],_=yY();return t.forEach((n=>{if(n.declarations)for(const t of n.declarations){if(!hce(t))continue;const n=Ece(t);if(!n)continue;const i=Tce(t);_(i)&&xce(e,i,n,r,s),fb(t,1024)?d=n:u.push(n.text)}})),Te(l,cce(e,d,u,fo(e.fileName),a,o,s,c)),l}(e,n.oldImportsNeededByNewFile,n.newFileImportsFromOldFile,t,c,i,a,d,u),f=function(e,n,t,r){return X(n,(n=>{if(i=n,Nt.assert(Iw(i.parent),"Node parent should be a SourceFile"),(yce(i)||fI(i))&&!Sce(e,n,r)&&vce(n,(e=>{var n;return t.has(Nt.checkDefined(null==(n=En(e,Nu))?void 0:n.symbol))}))){const e=function(e,n){return n?[Ace(e)]:function(e){return[e,...Lce(e).map(Cce)]}(e)}(n,r);if(e)return e}var i;return n}))}(e,r.all,n.oldFileImportsFromNewFile,d);if(p.length&&f.length)return[...l,...p,4,...f];return[...l,...p,...f]}(e,s,r,t,n,i,d,a)),function(e,n,t,r,i){const a=e.getCompilerOptions().configFile;if(!a)return;const o=Ao(Eo(t,"..",r)),s=Vo(a.fileName,o,i),c=a.statements[0]&&En(a.statements[0].expression,Ok),l=c&&D(c.properties,(e=>Sw(e)&&_C(e.name)&&"files"===e.name.text));l&&Dk(l.initializer)&&n.insertNodeInListAfter(a,Ge(l.initializer.elements),gA.createStringLiteral(s),l.initializer.elements)}(n,r,e.fileName,d,Tv(i))}function nce(e){const n=function(e){const{file:n}=e,t=uY(xQ(e)),{statements:r}=n,i=M(r,(e=>e.end>t.pos));if(-1===i)return;const a=r[i];if(qc(a)&&a.name&&YJ(a.name,t))return{toMove:[r[i]],afterLast:r[i+1]};if(t.pos>a.getStart(n))return;const o=M(r,(e=>e.end>t.end),i);return-1!==o&&(0===o||r[o].getStart(n)<t.end)?void 0:{toMove:r.slice(i,-1===o?r.length:o),afterLast:-1===o?void 0:r[o]}}(e);if(void 0===n)return;const t=[],r=[],{toMove:i,afterLast:a}=n;return le(i,tce,((e,n)=>{for(let r=e;r<n;r++)t.push(i[r]);r.push({first:i[e],afterLast:a})})),0===t.length?void 0:{all:t,ranges:r}}function tce(e){return!function(e){switch(e.kind){case 269:return!0;case 268:return!fb(e,1);case 240:return e.declarationList.declarations.every((e=>!!e.initializer&&Oh(e.initializer,!0)));default:return!1}}(e)&&!hm(e)}function rce(e,n,t){for(const{first:r,afterLast:i}of n)t.deleteNodeRangeExcludingEnd(e,r,i)}function ice(e){switch(e.kind){case 269:return e.importClause&&e.importClause.namedBindings&&271===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 268:return e.name;case 257:return En(e.name,IC);default:return Nt.assertNever(e,`Unexpected node kind ${e.kind}`)}}function ace(e,n,t,r,i,a,o){const s=$te.moduleSpecifierToValidIdentifier(i,99);let c=!1;const l=[];if(Bae.Core.eachSymbolReferenceInFile(a,t,n,(e=>{Mk(e.parent)&&(c=c||!!t.resolveName(s,e,67108863,!0),r.has(t.getSymbolAtLocation(e.parent.name))&&l.push(e))})),l.length){const t=c?U$(s,n):s;for(const r of l)e.replaceNode(n,r,gA.createIdentifier(t));e.insertNodeAfter(n,o,function(e,n,t){const r=gA.createIdentifier(n),i=gA.createStringLiteral(t);switch(e.kind){case 269:return gA.createImportDeclaration(void 0,gA.createImportClause(!1,void 0,gA.createNamespaceImport(r)),i,void 0);case 268:return gA.createImportEqualsDeclaration(void 0,!1,r,gA.createExternalModuleReference(i));case 257:return gA.createVariableDeclaration(r,void 0,void 0,dce(i));default:return Nt.assertNever(e,`Unexpected node kind ${e.kind}`)}}(o,s,i))}}function oce(e){return 269===e.kind?e.moduleSpecifier:268===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function sce(e,n){if(KI(e))_C(e.moduleSpecifier)&&n(e);else if(HI(e))cw(e.moduleReference)&&o_(e.moduleReference.expression)&&n(e);else if(fI(e))for(const t of e.declarationList.declarations)t.initializer&&Oh(t.initializer,!0)&&n(t)}function cce(e,n,t,r,i,a,o,s){const c=To(po(e.path),r),l=lG(i.getCompilerOptions(),e,e.path,c,LY(i,a));if(o){return IY(n,t.map((e=>gA.createImportSpecifier(!1,void 0,gA.createIdentifier(e)))),l,s)}{Nt.assert(!n,"No default import should exist");const e=t.map((e=>gA.createBindingElement(void 0,void 0,e)));return e.length?lce(gA.createObjectBindingPattern(e),void 0,dce(gA.createStringLiteral(l))):void 0}}function lce(e,n,t,r=2){return gA.createVariableStatement(void 0,gA.createVariableDeclarationList([gA.createVariableDeclaration(e,void 0,n,t)],r))}function dce(e){return gA.createCallExpression(gA.createIdentifier("require"),void 0,[e])}function uce(e,n,t,r){switch(n.kind){case 269:!function(e,n,t,r){if(!n.importClause)return;const{name:i,namedBindings:a}=n.importClause,o=!i||r(i),s=!a||(271===a.kind?r(a.name):0!==a.elements.length&&a.elements.every((e=>r(e.name))));if(o&&s)t.delete(e,n);else if(i&&o&&t.delete(e,i),a)if(s)t.replaceNode(e,n.importClause,gA.updateImportClause(n.importClause,n.importClause.isTypeOnly,i,void 0));else if(272===a.kind)for(const c of a.elements)r(c.name)&&t.delete(e,c)}(e,n,t,r);break;case 268:r(n.name)&&t.delete(e,n);break;case 257:!function(e,n,t,r){const{name:i}=n;switch(i.kind){case 79:r(i)&&(n.initializer&&Oh(n.initializer,!0)?t.delete(e,DI(n.parent)&&1===S(n.parent.declarations)?n.parent.parent:n):t.delete(e,i));break;case 204:break;case 203:if(i.elements.every((e=>IC(e.name)&&r(e.name))))t.delete(e,DI(n.parent)&&1===n.parent.declarations.length?n.parent.parent:n);else for(const n of i.elements)IC(n.name)&&r(n.name)&&t.delete(e,n.name)}}(e,n,t,r);break;default:Nt.assertNever(n,`Unexpected import decl kind ${n.kind}`)}}function _ce(e){switch(e.kind){case 268:case 273:case 270:case 271:return!0;case 257:return pce(e);case 205:return NI(e.parent.parent)&&pce(e.parent.parent);default:return!1}}function pce(e){return Iw(e.parent.parent.parent)&&!!e.initializer&&Oh(e.initializer,!0)}function fce(e,n,t){switch(e.kind){case 269:{const r=e.importClause;if(!r)return;const i=r.name&&t(r.name)?r.name:void 0,a=r.namedBindings&&function(e,n){if(271===e.kind)return n(e.name)?e:void 0;{const t=e.elements.filter((e=>n(e.name)));return t.length?gA.createNamedImports(t):void 0}}(r.namedBindings,t);return i||a?gA.createImportDeclaration(void 0,gA.createImportClause(r.isTypeOnly,i,a),n,void 0):void 0}case 268:return t(e.name)?e:void 0;case 257:{const r=function(e,n){switch(e.kind){case 79:return n(e)?e:void 0;case 204:return e;case 203:{const t=e.elements.filter((e=>e.propertyName||!IC(e.name)||n(e.name)));return t.length?gA.createObjectBindingPattern(t):void 0}}}(e.name,t);return r?lce(r,e.type,dce(n),e.parent.flags):void 0}default:return Nt.assertNever(e,`Unexpected import kind ${e.kind}`)}}function mce(e,n,t){e.forEachChild((function e(r){if(IC(r)&&!ry(r)){const e=n.getSymbolAtLocation(r);e&&t(e)}else r.forEachChild(e)}))}function hce(e){return yce(e)&&Iw(e.parent)||NI(e)&&Iw(e.parent.parent.parent)}function gce(e){return NI(e)?e.parent.parent.parent:e.parent}function yce(e){switch(e.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return!0;default:return!1}}function vce(e,n){switch(e.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return n(e);case 240:return C(e.declarationList.declarations,(e=>bce(e.name,n)));case 241:{const{expression:t}=e;return Yk(t)&&1===eg(t)?n(e):void 0}}}function bce(e,n){switch(e.kind){case 79:return n(Tn(e.parent,(e=>NI(e)||Nk(e))));case 204:case 203:return C(e.elements,(e=>tI(e)?void 0:bce(e.name,n)));default:return Nt.assertNever(e,`Unexpected name kind ${e.kind}`)}}function Ece(e){return hI(e)?En(e.expression.left.name,IC):En(e.name,IC)}function Tce(e){switch(e.kind){case 257:return e.parent.parent;case 205:return Tce(Tn(e.parent.parent,(e=>NI(e)||Nk(e))));default:return e}}function xce(e,n,t,r,i){if(!Sce(e,n,i,t))if(i)hI(n)||r.insertExportModifier(e,n);else{const t=Lce(n);0!==t.length&&r.insertNodesAfter(e,n,t.map(Cce))}}function Sce(e,n,t,r){var i;return t?!hI(n)&&fb(n,1)||!(!r||!(null==(i=e.symbol.exports)?void 0:i.has(r.escapedText))):!!e.symbol&&!!e.symbol.exports&&Lce(n).some((n=>e.symbol.exports.has(Gc(n))))}function Ace(e){const n=jN(e)?de([gA.createModifier(93)],Qc(e)):void 0;switch(e.kind){case 259:return gA.updateFunctionDeclaration(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 260:const t=HN(e)?$c(e):void 0;return gA.updateClassDeclaration(e,de(t,n),e.name,e.typeParameters,e.heritageClauses,e.members);case 240:return gA.updateVariableStatement(e,n,e.declarationList);case 264:return gA.updateModuleDeclaration(e,n,e.name,e.body);case 263:return gA.updateEnumDeclaration(e,n,e.name,e.members);case 262:return gA.updateTypeAliasDeclaration(e,n,e.name,e.typeParameters,e.type);case 261:return gA.updateInterfaceDeclaration(e,n,e.name,e.typeParameters,e.heritageClauses,e.members);case 268:return gA.updateImportEqualsDeclaration(e,n,e.isTypeOnly,e.name,e.moduleReference);case 241:return Nt.fail();default:return Nt.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function Lce(e){switch(e.kind){case 259:case 260:return[e.name.text];case 240:return ee(e.declarationList.declarations,(e=>IC(e.name)?e.name.text:void 0));case 264:case 263:case 262:case 261:case 268:return i;case 241:return Nt.fail("Can't export an ExpressionStatement");default:return Nt.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function Cce(e){return gA.createExpressionStatement(gA.createBinaryExpression(gA.createPropertyAccessExpression(gA.createIdentifier("exports"),gA.createIdentifier(e)),63,gA.createIdentifier(e)))}var kce,Ice,wce,Rce=E({"src/services/refactors/moveToNewFile.ts"(){OG(),Bfe(),Yde(),Xse="Move to a new file",Yse=xT(Wo.Move_to_a_new_file),yse(Xse,{kinds:[($se={name:Xse,description:Yse,kind:"refactor.move.newFile"}).kind],getAvailableActions:function(e){const n=nce(e);return e.preferences.allowTextChangesInNewFiles&&n?[{name:Xse,description:Yse,actions:[$se]}]:e.preferences.provideRefactorNotApplicableReason?[{name:Xse,description:Yse,actions:[{...$se,notApplicableReason:xT(Wo.Selection_is_not_a_valid_statement_or_statements)}]}]:i},getEditsForAction:function(e,n){Nt.assert(n===Xse,"Wrong refactor invoked");const t=Nt.checkDefined(nce(e));return{edits:R_e.ChangeTracker.with(e,(n=>ece(e.file,e.program,t,n,e.host,e.preferences))),renameFilename:void 0,renameLocation:void 0}}}),Qse=class{constructor(){this.map=new Map}add(e){this.map.set(String(eB(e)),e)}has(e){return this.map.has(String(eB(e)))}delete(e){this.map.delete(String(eB(e)))}forEach(e){this.map.forEach(e)}forEachEntry(e){return gp(this.map,e)}clone(){const e=new Qse;return vp(this.map,e.map),e}size(){return this.map.size}}}});function Nce(e){const{file:n,startPosition:t,program:r}=e;return Mce(n,t,r)?[{name:kce,description:Ice,actions:[wce]}]:i}function Dce(e){const{file:n,startPosition:t,program:r}=e,i=Mce(n,t,r);if(!i)return;const a=r.getTypeChecker(),o=i[i.length-1];let s=o;switch(o.kind){case 170:s=gA.updateMethodSignature(o,o.modifiers,o.name,o.questionToken,o.typeParameters,c(i),o.type);break;case 171:s=gA.updateMethodDeclaration(o,o.modifiers,o.asteriskToken,o.name,o.questionToken,o.typeParameters,c(i),o.type,o.body);break;case 176:s=gA.updateCallSignature(o,o.typeParameters,c(i),o.type);break;case 173:s=gA.updateConstructorDeclaration(o,o.modifiers,c(i),o.body);break;case 177:s=gA.updateConstructSignature(o,o.typeParameters,c(i),o.type);break;case 259:s=gA.updateFunctionDeclaration(o,o.modifiers,o.asteriskToken,o.name,o.typeParameters,c(i),o.type,o.body);break;default:return Nt.failBadSyntaxKind(o,"Unhandled signature kind in overload list conversion refactoring")}if(s===o)return;return{renameFilename:void 0,renameLocation:void 0,edits:R_e.ChangeTracker.with(e,(e=>{e.replaceNodeRange(n,i[0],i[i.length-1],s)}))};function c(e){const n=e[e.length-1];return Rd(n)&&n.body&&(e=e.slice(0,e.length-1)),gA.createNodeArray([gA.createParameterDeclaration(void 0,gA.createToken(25),"args",void 0,gA.createUnionTypeNode(W(e,l)))])}function l(e){const n=W(e.parameters,d);return jA(gA.createTupleTypeNode(n),ce(n,(e=>!!S(eL(e))))?0:1)}function d(e){Nt.assert(IC(e.name));const n=VN(gA.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||gA.createKeywordTypeNode(131)),e),t=e.symbol&&e.symbol.getDocumentationComment(a);if(t){const e=m2(t);e.length&&nL(n,[{text:`*\n${e.split("\n").map((e=>` * ${e}`)).join("\n")}\n `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return n}}function Oce(e){switch(e.kind){case 170:case 171:case 176:case 173:case 177:case 259:return!0}return!1}function Mce(e,n,t){const r=Mc(SX(e,n),Oce);if(!r)return;if(Rd(r)&&r.body&&QJ(r.body,n))return;const i=t.getTypeChecker(),a=r.symbol;if(!a)return;const o=a.declarations;if(S(o)<=1)return;if(!N(o,(n=>Dp(n)===e)))return;if(!Oce(o[0]))return;const s=o[0].kind;if(!N(o,(e=>e.kind===s)))return;const c=o;if(ce(c,(e=>!!e.typeParameters||ce(e.parameters,(e=>!!e.modifiers||!IC(e.name))))))return;const l=ee(c,(e=>i.getSignatureFromDeclaration(e)));if(S(l)!==S(o))return;const d=i.getReturnTypeOfSignature(l[0]);return N(l,(e=>i.getReturnTypeOfSignature(e)===d))?c:void 0}var Pce,Fce,Gce,Bce,Uce=E({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){Bfe(),Yde(),kce="Convert overload list to single signature",Ice=Wo.Convert_overload_list_to_single_signature.message,yse(kce,{kinds:[(wce={name:kce,description:Ice,kind:"refactor.rewrite.function.overloadList"}).kind],getEditsForAction:Dce,getAvailableActions:Nce})}});function Vce(e){const{file:n,startPosition:t,triggerReason:r}=e,a=Hce(n,t,"invoked"===r);return a?qse(a)?e.preferences.provideRefactorNotApplicableReason?[{name:Pce,description:Fce,actions:[{...Gce,notApplicableReason:a.error},{...Bce,notApplicableReason:a.error}]}]:i:[{name:Pce,description:Fce,actions:[a.addBraces?Gce:Bce]}]:i}function jce(e,n){const{file:t,startPosition:r}=e,i=Hce(t,r);Nt.assert(i&&!qse(i),"Expected applicable refactor info");const{expression:a,returnStatement:o,func:s}=i;let c;if(n===Gce.name){const e=gA.createReturnStatement(a);c=gA.createBlock([e],!0),j$(a,e,t,3,!0)}else if(n===Bce.name&&o){const e=a||gA.createVoidZero();c=q$(e)?gA.createParenthesizedExpression(e):e,K$(o,c,t,3,!1),j$(o,c,t,3,!1),H$(o,c,t,3,!1)}else Nt.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:R_e.ChangeTracker.with(e,(e=>{e.replaceNode(t,s.body,c)}))}}function Hce(e,n,t=!0,r){const i=SX(e,n),a=qm(i);if(!a)return{error:xT(Wo.Could_not_find_a_containing_arrow_function)};if(!Hk(a))return{error:xT(Wo.Containing_function_is_not_an_arrow_function)};if(YJ(a,i)&&(!YJ(a.body,i)||t)){if(Jse(Gce.kind,r)&&mu(a.body))return{func:a,addBraces:!0,expression:a.body};if(Jse(Bce.kind,r)&&pI(a.body)&&1===a.body.statements.length){const e=Me(a.body.statements);if(AI(e))return{func:a,addBraces:!1,expression:e.expression,returnStatement:e}}}}var Kce,Wce,zce,qce,Jce,Xce=E({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){Bfe(),Yde(),Pce="Add or remove braces in an arrow function",Fce=Wo.Add_or_remove_braces_in_an_arrow_function.message,Gce={name:"Add braces to arrow function",description:Wo.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},Bce={name:"Remove braces from arrow function",description:Wo.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"},yse(Pce,{kinds:[Bce.kind],getEditsForAction:jce,getAvailableActions:Vce})}}),Yce={},$ce=E({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){Uce(),Xce()}});function Qce(e){const{file:n,startPosition:t,program:r,kind:a}=e,o=nle(n,t,r);if(!o)return i;const{selectedVariableDeclaration:s,func:c}=o,l=[],d=[];if(Jse(qce.kind,a)){const e=s||Hk(c)&&NI(c.parent)?void 0:xT(Wo.Could_not_convert_to_named_function);e?d.push({...qce,notApplicableReason:e}):l.push(qce)}if(Jse(zce.kind,a)){const e=!s&&Hk(c)?void 0:xT(Wo.Could_not_convert_to_anonymous_function);e?d.push({...zce,notApplicableReason:e}):l.push(zce)}if(Jse(Jce.kind,a)){const e=jk(c)?void 0:xT(Wo.Could_not_convert_to_arrow_function);e?d.push({...Jce,notApplicableReason:e}):l.push(Jce)}return[{name:Kce,description:Wce,actions:0===l.length&&e.preferences.provideRefactorNotApplicableReason?d:l}]}function Zce(e,n){const{file:t,startPosition:r,program:i}=e,a=nle(t,r,i);if(!a)return;const{func:o}=a,s=[];switch(n){case zce.name:s.push(...function(e,n){const{file:t}=e,r=tle(n.body),i=gA.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,n.typeParameters,n.parameters,n.type,r);return R_e.ChangeTracker.with(e,(e=>e.replaceNode(t,n,i)))}(e,o));break;case qce.name:const n=function(e){const n=e.parent;if(!NI(n)||!Rm(n))return;const t=n.parent,r=t.parent;return DI(t)&&fI(r)&&IC(n.name)?{variableDeclaration:n,variableDeclarationList:t,statement:r,name:n.name}:void 0}(o);if(!n)return;s.push(...function(e,n,t){const{file:r}=e,i=tle(n.body),{variableDeclaration:a,variableDeclarationList:o,statement:s,name:c}=t;M$(s);const l=1&wc(a)|Lb(n),d=gA.createModifiersFromModifierFlags(l),u=gA.createFunctionDeclaration(S(d)?d:void 0,n.asteriskToken,c,n.typeParameters,n.parameters,n.type,i);return 1===o.declarations.length?R_e.ChangeTracker.with(e,(e=>e.replaceNode(r,s,u))):R_e.ChangeTracker.with(e,(e=>{e.delete(r,a),e.insertNodeAfter(r,s,u)}))}(e,o,n));break;case Jce.name:if(!jk(o))return;s.push(...function(e,n){const{file:t}=e,r=n.body.statements,i=r[0];let a;!function(e,n){return 1===e.statements.length&&AI(n)&&!!n.expression}(n.body,i)?a=n.body:(a=i.expression,O$(a),F$(i,a));const o=gA.createArrowFunction(n.modifiers,n.typeParameters,n.parameters,n.type,gA.createToken(38),a);return R_e.ChangeTracker.with(e,(e=>e.replaceNode(t,n,o)))}(e,o));break;default:return Nt.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:s}}function ele(e){let n=!1;return e.forEachChild((function e(t){JJ(t)?n=!0:Fd(t)||OI(t)||jk(t)||CD(t,e)})),n}function nle(e,n,t){const r=SX(e,n),i=t.getTypeChecker(),a=function(e,n,t){if(!function(e){return NI(e)||DI(e)&&1===e.declarations.length}(t))return;const r=(NI(t)?t:Me(t.declarations)).initializer;if(r&&(Hk(r)||jk(r)&&!rle(e,n,r)))return r;return}(e,i,r.parent);if(a&&!ele(a.body)&&!i.containsArgumentsReference(a))return{selectedVariableDeclaration:!0,func:a};const o=qm(r);if(o&&(jk(o)||Hk(o))&&!YJ(o.body,r)&&!ele(o.body)&&!i.containsArgumentsReference(o)){if(jk(o)&&rle(e,i,o))return;return{selectedVariableDeclaration:!1,func:o}}}function tle(e){if(mu(e)){const n=gA.createReturnStatement(e),t=e.getSourceFile();return VN(n,e),O$(n),K$(e,n,t,void 0,!0),gA.createBlock([n],!0)}return e}function rle(e,n,t){return!!t.name&&Bae.Core.isSymbolReferencedInFile(t.name,n,e)}var ile,ale,ole,sle,cle=E({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){Bfe(),Yde(),Kce="Convert arrow function or function expression",Wce=xT(Wo.Convert_arrow_function_or_function_expression),zce={name:"Convert to anonymous function",description:xT(Wo.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},qce={name:"Convert to named function",description:xT(Wo.Convert_to_named_function),kind:"refactor.rewrite.function.named"},Jce={name:"Convert to arrow function",description:xT(Wo.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},yse(Kce,{kinds:[zce.kind,qce.kind,Jce.kind],getEditsForAction:Zce,getAvailableActions:Qce})}}),lle={},dle=E({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){cle()}});function ule(e){const{file:n,startPosition:t}=e;if(Ch(n))return i;return vle(n,t,e.program.getTypeChecker())?[{name:ile,description:ole,actions:[sle]}]:i}function _le(e,n){Nt.assert(n===ile,"Unexpected action name");const{file:t,startPosition:r,program:i,cancellationToken:a,host:o}=e,s=vle(t,r,i.getTypeChecker());if(!s||!a)return;const c=function(e,n,t){const r=function(e){switch(e.kind){case 259:if(e.name)return[e.name];return[Nt.checkDefined(jY(e,88),"Nameless function declaration should be a default export")];case 171:return[e.name];case 173:const n=Nt.checkDefined(dX(e,135,e.getSourceFile()),"Constructor declaration should have constructor keyword");if(228===e.parent.kind){return[e.parent.parent.name,n]}return[n];case 216:return[e.parent.name];case 215:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return Nt.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}(e),i=ek(e)?function(e){switch(e.parent.kind){case 260:const n=e.parent;if(n.name)return[n.name];return[Nt.checkDefined(jY(n,88),"Nameless class declaration should be a default export")];case 228:const t=e.parent,r=e.parent.parent,i=t.name;return i?[i,r.name]:[r.name]}}(e):[],a=pe([...r,...i],Pn),o=n.getTypeChecker(),s=X(a,(e=>Bae.getReferenceEntriesForNode(-1,e,n,n.getSourceFiles(),t))),c=l(s);N(c.declarations,(e=>G(a,e)))||(c.valid=!1);return c;function l(n){const t={accessExpressions:[],typeUsages:[]},a={functionCalls:[],declarations:[],classReferences:t,valid:!0},s=W(r,d),c=W(i,d),l=ek(e),u=W(r,(e=>ple(e,o)));for(const r of n){if(r.kind===Bae.EntryKind.Span){a.valid=!1;continue}if(G(u,d(r.node))){if(ble(r.node.parent)){a.signature=r.node.parent;continue}const e=hle(r);if(e){a.functionCalls.push(e);continue}}const n=ple(r.node,o);if(n&&G(u,n)){const e=mle(r);if(e){a.declarations.push(e);continue}}if(G(s,d(r.node))||TJ(r.node)){if(fle(r))continue;const e=mle(r);if(e){a.declarations.push(e);continue}const n=hle(r);if(n){a.functionCalls.push(n);continue}}if(l&&G(c,d(r.node))){if(fle(r))continue;const n=mle(r);if(n){a.declarations.push(n);continue}const i=gle(r);if(i){t.accessExpressions.push(i);continue}if(MI(e.parent)){const e=yle(r);if(e){t.typeUsages.push(e);continue}}}a.valid=!1}return a}function d(e){const n=o.getSymbolAtLocation(e);return n&&S$(n,o)}}(s,i,a);if(c.valid){const n=R_e.ChangeTracker.with(e,(e=>function(e,n,t,r,i,a){const o=a.signature,s=W(Cle(i,n,t),(e=>I$(e)));if(o){l(o,W(Cle(o,n,t),(e=>I$(e))))}l(i,s);const c=he(a.functionCalls,((e,n)=>Un(e.pos,n.pos)));for(const d of c)if(d.arguments&&d.arguments.length){const e=I$(Lle(i,d.arguments),!0);r.replaceNodeRange(Dp(d),Me(d.arguments),Ge(d.arguments),e,{leadingTriviaOption:R_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:R_e.TrailingTriviaOption.Include})}function l(n,t){r.replaceNodeRangeWithNodes(e,Me(n.parameters),Ge(n.parameters),t,{joiner:", ",indentation:0,leadingTriviaOption:R_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:R_e.TrailingTriviaOption.Include})}}(t,i,o,e,s,c)));return{renameFilename:void 0,renameLocation:void 0,edits:n}}return{edits:[]}}function ple(e,n){const t=x2(e);if(t){const e=n.getContextualTypeForObjectLiteralElement(t),r=null==e?void 0:e.getSymbol();if(r&&!(6&FE(r)))return r}}function fle(e){const n=e.node;return QI(n.parent)||WI(n.parent)||HI(n.parent)||XI(n.parent)||tw(n.parent)||ZI(n.parent)?n:void 0}function mle(e){if(Pu(e.node.parent))return e.node}function hle(e){if(e.node.parent){const n=e.node,t=n.parent;switch(t.kind){case 210:case 211:const e=En(t,su);if(e&&e.expression===n)return e;break;case 208:const r=En(t,Mk);if(r&&r.parent&&r.name===n){const e=En(r.parent,su);if(e&&e.expression===r)return e}break;case 209:const i=En(t,Pk);if(i&&i.parent&&i.argumentExpression===n){const e=En(i.parent,su);if(e&&e.expression===i)return e}}}}function gle(e){if(e.node.parent){const n=e.node,t=n.parent;switch(t.kind){case 208:const e=En(t,Mk);if(e&&e.expression===n)return e;break;case 209:const r=En(t,Pk);if(r&&r.expression===n)return r}}}function yle(e){const n=e.node;if(2===vJ(n)||zb(n.parent))return n}function vle(e,n,t){const r=xX(e,n),i=Jm(r);if(!function(e){const n=Mc(e,Ju);if(n){const e=Mc(n,(e=>!Ju(e)));return!!e&&Rd(e)}return!1}(r))return!(i&&function(e,n){var t;if(!function(e,n){return function(e){if(Sle(e))return e.length-1;return e.length}(e)>=ale&&N(e,(e=>function(e,n){if(l_(e)){const t=n.getTypeAtLocation(e);if(!n.isArrayType(t)&&!n.isTupleType(t))return!1}return!e.modifiers&&IC(e.name)}(e,n)))}(e.parameters,n))return!1;switch(e.kind){case 259:return Tle(e)&&Ele(e,n);case 171:if(Ok(e.parent)){const r=ple(e.name,n);return 1===(null==(t=null==r?void 0:r.declarations)?void 0:t.length)&&Ele(e,n)}return Ele(e,n);case 173:return MI(e.parent)?Tle(e.parent)&&Ele(e,n):xle(e.parent.parent)&&Ele(e,n);case 215:case 216:return xle(e.parent)}return!1}(i,t)&&YJ(i,r))||i.body&&YJ(i.body,r)?void 0:i}function ble(e){return $C(e)&&(PI(e.parent)||uk(e.parent))}function Ele(e,n){return!!e.body&&!n.isImplementationOfOverload(e)}function Tle(e){if(!e.name){return!!jY(e,88)}return!0}function xle(e){return NI(e)&&dm(e)&&IC(e.name)&&!e.type}function Sle(e){return e.length>0&&JJ(e[0].name)}function Ale(e){return Sle(e)&&(e=gA.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function Lle(e,n){const t=Ale(e.parameters),r=l_(Ge(t)),i=W(r?n.slice(0,t.length-1):n,((e,n)=>{const r=kle(t[n]),i=(a=r,IC(o=e)&&Py(o)===a?gA.createShorthandPropertyAssignment(a):gA.createPropertyAssignment(a,o));var a,o;return O$(i.name),Sw(i)&&O$(i.initializer),F$(e,i),i}));if(r&&n.length>=t.length){const e=n.slice(t.length-1),r=gA.createPropertyAssignment(kle(Ge(t)),gA.createArrayLiteralExpression(e));i.push(r)}return gA.createObjectLiteralExpression(i,!1)}function Cle(e,n,t){const r=n.getTypeChecker(),i=Ale(e.parameters),a=W(i,(function(e){const n=gA.createBindingElement(void 0,void 0,kle(e),l_(e)&&u(e)?gA.createArrayLiteralExpression():e.initializer);O$(n),e.initializer&&n.initializer&&F$(e.initializer,n.initializer);return n})),o=gA.createObjectBindingPattern(a),s=function(e){const n=W(e,d);return HA(gA.createTypeLiteralNode(n),1)}(i);let c;N(i,u)&&(c=gA.createObjectLiteralExpression());const l=gA.createParameterDeclaration(void 0,void 0,o,void 0,s,c);if(Sle(e.parameters)){const n=e.parameters[0],t=gA.createParameterDeclaration(void 0,void 0,n.name,void 0,n.type);return O$(t.name),F$(n.name,t.name),n.type&&(O$(t.type),F$(n.type,t.type)),gA.createNodeArray([t,l])}return gA.createNodeArray([l]);function d(e){let i=e.type;var a;i||!e.initializer&&!l_(e)||(a=e,i=eQ(r.getTypeAtLocation(a),a,n,t));const o=gA.createPropertySignature(void 0,kle(e),u(e)?gA.createToken(57):e.questionToken,i);return O$(o),F$(e.name,o.name),e.type&&o.type&&F$(e.type,o.type),o}function u(e){if(l_(e)){const n=r.getTypeAtLocation(e);return!r.isTupleType(n)}return r.isOptionalParameter(e)}}function kle(e){return Py(e.name)}var Ile,wle,Rle,Nle,Dle,Ole=E({"src/services/refactors/convertParamsToDestructuredObject.ts"(){Bfe(),Yde(),ile="Convert parameters to destructured object",ale=1,ole=xT(Wo.Convert_parameters_to_destructured_object),yse(ile,{kinds:[(sle={name:ile,description:ole,kind:"refactor.rewrite.parameters.toDestructured"}).kind],getEditsForAction:_le,getAvailableActions:ule})}}),Mle={},Ple=E({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){Ole()}});function Fle(e){const{file:n,startPosition:t}=e,r=Vle(Gle(n,t)),a={name:Ile,description:wle,actions:[]};return Yk(r)&&jle(r).isValidConcatenation?(a.actions.push(Rle),[a]):e.preferences.provideRefactorNotApplicableReason?(a.actions.push({...Rle,notApplicableReason:xT(Wo.Can_only_convert_string_concatenation)}),[a]):i}function Gle(e,n){const t=SX(e,n),r=Vle(t);return!jle(r).isValidConcatenation&&Vk(r.parent)&&Yk(r.parent.parent)?r.parent.parent:t}function Ble(e,n){const{file:t,startPosition:r}=e,i=Gle(t,r);return n===wle?{edits:Ule(e,i)}:Nt.fail("invalid action")}function Ule(e,n){const t=Vle(n),r=e.file,i=function({nodes:e,operators:n},t){const r=Nle(n,t),i=Dle(e,t,r),[a,o,s,c]=Kle(0,e);if(a===e.length){const e=gA.createNoSubstitutionTemplateLiteral(o,s);return i(c,e),e}const l=[],d=gA.createTemplateHead(o,s);i(c,d);for(let u=a;u<e.length;u++){const n=zle(e[u]);r(u,n);const[t,a,o,s]=Kle(u+1,e);u=t-1;const c=u===e.length-1;if(Qk(n)){const e=W(n.templateSpans,((e,t)=>{Wle(e);const r=t===n.templateSpans.length-1,i=e.literal.text+(r?a:""),s=Hle(e.literal)+(r?o:"");return gA.createTemplateSpan(e.expression,c&&r?gA.createTemplateTail(i,s):gA.createTemplateMiddle(i,s))}));l.push(...e)}else{const e=c?gA.createTemplateTail(a,o):gA.createTemplateMiddle(a,o);i(s,e),l.push(gA.createTemplateSpan(n,e))}}return gA.createTemplateExpression(d,l)}(jle(t),r),a=Ks(r.text,t.end);if(a){const n=a[a.length-1],o={pos:a[0].pos,end:n.end};return R_e.ChangeTracker.with(e,(e=>{e.deleteRange(r,o),e.replaceNode(r,t,i)}))}return R_e.ChangeTracker.with(e,(e=>e.replaceNode(r,t,i)))}function Vle(e){return Mc(e.parent,(e=>{switch(e.kind){case 208:case 209:return!1;case 225:case 223:return!(Yk(e.parent)&&(n=e.parent,63!==n.operatorToken.kind));default:return"quit"}var n}))||e}function jle(e){const n=e=>{if(!Yk(e))return{nodes:[e],operators:[],validOperators:!0,hasString:_C(e)||mC(e)};const{nodes:t,operators:r,hasString:i,validOperators:a}=n(e.left);if(!(i||_C(e.right)||Qk(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};const o=39===e.operatorToken.kind,s=a&&o;return t.push(e.right),r.push(e.operatorToken),{nodes:t,operators:r,hasString:!0,validOperators:s}},{nodes:t,operators:r,validOperators:i,hasString:a}=n(e);return{nodes:t,operators:r,isValidConcatenation:i&&a}}function Hle(e){const n=hC(e)||gC(e)?-2:-1;return sf(e).slice(1,n)}function Kle(e,n){const t=[];let r="",i="";for(;e<n.length;){const a=n[e];if(!o_(a)){if(Qk(a)){r+=a.head.text,i+=Hle(a.head);break}break}r+=a.text,i+=sf(a).slice(1,-1).replace(/\\.|[$`]/g,(e=>"\\"===e[0]?e:"\\"+e)),t.push(e),e++}return[e,r,i,t]}function Wle(e){const n=e.getSourceFile();H$(e,e.expression,n,3,!1),K$(e.expression,e.expression,n,3,!1)}function zle(e){return Vk(e)&&(Wle(e),e=e.expression),e}var qle,Jle,Xle,Yle=E({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){Bfe(),Yde(),Ile="Convert to template string",wle=xT(Wo.Convert_to_template_string),yse(Ile,{kinds:[(Rle={name:Ile,description:wle,kind:"refactor.rewrite.string"}).kind],getEditsForAction:Ble,getAvailableActions:Fle}),Nle=(e,n)=>(t,r)=>{t<e.length&&H$(e[t],r,n,3,!1)},Dle=(e,n,t)=>(r,i)=>{for(;r.length>0;){const a=r.shift();H$(e[a],i,n,3,!1),t(a,i)}}}}),$le={},Qle=E({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){Yle()}});function Zle(e){const n=rde(e,"invoked"===e.triggerReason);return n?qse(n)?e.preferences.provideRefactorNotApplicableReason?[{name:qle,description:Jle,actions:[{...Xle,notApplicableReason:n.error}]}]:i:[{name:qle,description:Jle,actions:[Xle]}]:i}function ede(e,n){const t=rde(e);Nt.assert(t&&!qse(t),"Expected applicable refactor info");const r=R_e.ChangeTracker.with(e,(n=>function(e,n,t,r){const{finalExpression:i,occurrences:a,expression:o}=r,s=a[a.length-1],c=cde(n,i,a);c&&(Mk(c)||Pk(c)||Fk(c))&&(Yk(o)?t.replaceNodeRange(e,s,i,c):$k(o)&&t.replaceNode(e,o,gA.createBinaryExpression(c,gA.createToken(60),o.whenFalse)))}(e.file,e.program.getTypeChecker(),n,t)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}function nde(e){return Yk(e)||$k(e)}function tde(e){return nde(e)||function(e){return hI(e)||AI(e)||fI(e)}(e)}function rde(e,n=!0){const{file:t,program:r}=e,i=xQ(e),a=0===i.length;if(a&&!n)return;const o=SX(t,i.start),s=CX(t,i.start+i.length),c=vc(o.pos,s&&s.end>=o.pos?s.getEnd():o.getEnd()),l=a?function(e){for(;e.parent;){if(tde(e)&&!tde(e.parent))return e;e=e.parent}return}(o):function(e,n){for(;e.parent;){if(tde(e)&&0!==n.length&&e.end>=n.start+n.length)return e;e=e.parent}return}(o,c),d=l&&tde(l)?function(e){if(nde(e))return e;if(fI(e)){const n=Ig(e),t=null==n?void 0:n.initializer;return t&&nde(t)?t:void 0}return e.expression&&nde(e.expression)?e.expression:void 0}(l):void 0;if(!d)return{error:xT(Wo.Could_not_find_convertible_access_expression)};const u=r.getTypeChecker();return $k(d)?function(e,n){const t=e.condition,r=sde(e.whenTrue);if(!r||n.isNullableType(n.getTypeAtLocation(r)))return{error:xT(Wo.Could_not_find_convertible_access_expression)};if((Mk(t)||IC(t))&&ade(t,r.expression))return{finalExpression:r,occurrences:[t],expression:e};if(Yk(t)){const n=ide(r.expression,t);return n?{finalExpression:r,occurrences:n,expression:e}:{error:xT(Wo.Could_not_find_matching_access_expressions)}}}(d,u):function(e){if(55!==e.operatorToken.kind)return{error:xT(Wo.Can_only_convert_logical_AND_access_chains)};const n=sde(e.right);if(!n)return{error:xT(Wo.Could_not_find_convertible_access_expression)};const t=ide(n.expression,e.left);return t?{finalExpression:n,occurrences:t,expression:e}:{error:xT(Wo.Could_not_find_matching_access_expressions)}}(d)}function ide(e,n){const t=[];for(;Yk(n)&&55===n.operatorToken.kind;){const r=ade(ey(e),ey(n.right));if(!r)break;t.push(r),e=r,n=n.left}const r=ade(e,n);return r&&t.push(r),t.length>0?t:void 0}function ade(e,n){if(IC(n)||Mk(n)||Pk(n))return function(e,n){for(;(Fk(e)||Mk(e)||Pk(e))&&ode(e)!==ode(n);)e=e.expression;for(;Mk(e)&&Mk(n)||Pk(e)&&Pk(n);){if(ode(e)!==ode(n))return!1;e=e.expression,n=n.expression}return IC(e)&&IC(n)&&e.getText()===n.getText()}(e,n)?n:void 0}function ode(e){return IC(e)||wy(e)?e.getText():Mk(e)?ode(e.name):Pk(e)?ode(e.argumentExpression):void 0}function sde(e){return Yk(e=ey(e))?sde(e.left):(Mk(e)||Pk(e)||Fk(e))&&!jl(e)?e:void 0}function cde(e,n,t){if(Mk(n)||Pk(n)||Fk(n)){const r=cde(e,n.expression,t),i=t.length>0?t[t.length-1]:void 0,a=(null==i?void 0:i.getText())===n.expression.getText();if(a&&t.pop(),Fk(n))return a?gA.createCallChain(r,gA.createToken(28),n.typeArguments,n.arguments):gA.createCallChain(r,n.questionDotToken,n.typeArguments,n.arguments);if(Mk(n))return a?gA.createPropertyAccessChain(r,gA.createToken(28),n.name):gA.createPropertyAccessChain(r,n.questionDotToken,n.name);if(Pk(n))return a?gA.createElementAccessChain(r,gA.createToken(28),n.argumentExpression):gA.createElementAccessChain(r,n.questionDotToken,n.argumentExpression)}return n}var lde,dde,ude,_de,pde,fde=E({"src/services/refactors/convertToOptionalChainExpression.ts"(){Bfe(),Yde(),qle="Convert to optional chain expression",Jle=xT(Wo.Convert_to_optional_chain_expression),yse(qle,{kinds:[(Xle={name:qle,description:Jle,kind:"refactor.rewrite.expression.optionalChain"}).kind],getEditsForAction:ede,getAvailableActions:Zle})}}),mde={},hde=E({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){fde()}});function gde(e){const n=e.kind,t=vde(e.file,xQ(e),"invoked"===e.triggerReason),r=t.targetRange;if(void 0===r){if(!t.errors||0===t.errors.length||!e.preferences.provideRefactorNotApplicableReason)return i;const r=[];return Jse(ude.kind,n)&&r.push({name:lde,description:ude.description,actions:[{...ude,notApplicableReason:f(t.errors)}]}),Jse(dde.kind,n)&&r.push({name:lde,description:dde.description,actions:[{...dde,notApplicableReason:f(t.errors)}]}),r}const a=function(e,n){const{scopes:t,readsAndWrites:{functionErrorsPerScope:r,constantErrorsPerScope:i}}=Tde(e,n),a=t.map(((e,n)=>{const t=function(e){return Rd(e)?"inner function":Fd(e)?"method":"function"}(e),a=function(e){return Fd(e)?"readonly field":"constant"}(e),o=Rd(e)?function(e){switch(e.kind){case 173:return"constructor";case 215:case 259:return e.name?`function '${e.name.text}'`:mJ;case 216:return"arrow function";case 171:return`method '${e.name.getText()}'`;case 174:return`'get ${e.name.getText()}'`;case 175:return`'set ${e.name.getText()}'`;default:throw Nt.assertNever(e,`Unexpected scope kind ${e.kind}`)}}(e):Fd(e)?function(e){return 260===e.kind?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}(e):function(e){return 265===e.kind?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}(e);let s,c;return 1===o?(s=bT(xT(Wo.Extract_to_0_in_1_scope),[t,"global"]),c=bT(xT(Wo.Extract_to_0_in_1_scope),[a,"global"])):0===o?(s=bT(xT(Wo.Extract_to_0_in_1_scope),[t,"module"]),c=bT(xT(Wo.Extract_to_0_in_1_scope),[a,"module"])):(s=bT(xT(Wo.Extract_to_0_in_1),[t,o]),c=bT(xT(Wo.Extract_to_0_in_1),[a,o])),0!==n||Fd(e)||(c=bT(xT(Wo.Extract_to_0_in_enclosing_scope),[a])),{functionExtraction:{description:s,errors:r[n]},constantExtraction:{description:c,errors:i[n]}}}));return a}(r,e);if(void 0===a)return i;const o=[],s=new Map;let c;const l=[],d=new Map;let u,_=0;for(const{functionExtraction:i,constantExtraction:m}of a){if(Jse(ude.kind,n)){const e=i.description;0===i.errors.length?s.has(e)||(s.set(e,!0),o.push({description:e,name:`function_scope_${_}`,kind:ude.kind})):c||(c={description:e,name:`function_scope_${_}`,notApplicableReason:f(i.errors),kind:ude.kind})}if(Jse(dde.kind,n)){const e=m.description;0===m.errors.length?d.has(e)||(d.set(e,!0),l.push({description:e,name:`constant_scope_${_}`,kind:dde.kind})):u||(u={description:e,name:`constant_scope_${_}`,notApplicableReason:f(m.errors),kind:dde.kind})}_++}const p=[];return o.length?p.push({name:lde,description:xT(Wo.Extract_function),actions:o}):e.preferences.provideRefactorNotApplicableReason&&c&&p.push({name:lde,description:xT(Wo.Extract_function),actions:[c]}),l.length?p.push({name:lde,description:xT(Wo.Extract_constant),actions:l}):e.preferences.provideRefactorNotApplicableReason&&u&&p.push({name:lde,description:xT(Wo.Extract_constant),actions:[u]}),p.length?p:i;function f(e){let n=e[0].messageText;return"string"!==typeof n&&(n=n.messageText),n}}function yde(e,n){const t=vde(e.file,xQ(e)).targetRange,r=/^function_scope_(\d+)$/.exec(n);if(r){const n=+r[1];return Nt.assert(isFinite(n),"Expected to parse a finite number from the function scope index"),function(e,n,t){const{scopes:r,readsAndWrites:{target:a,usagesPerScope:o,functionErrorsPerScope:s,exposedVariableDeclarations:c}}=Tde(e,n);return Nt.assert(!s[t].length,"The extraction went missing? How?"),n.cancellationToken.throwIfCancellationRequested(),function(e,n,{usages:t,typeParameterUsages:r,substitutions:a},o,s,c){const l=c.program.getTypeChecker(),d=HT(c.program.getCompilerOptions()),u=$te.createImportAdder(c.file,c.program,c.preferences,c.host),_=n.getSourceFile(),p=U$(Fd(n)?"newMethod":"newFunction",_),f=Ih(n),m=gA.createIdentifier(p);let h;const g=[],y=[];let v;t.forEach(((e,t)=>{let r;if(!f){let t=l.getTypeOfSymbolAtLocation(e.symbol,e.node);t=l.getBaseTypeOfLiteralType(t),r=$te.typeToAutoImportableTypeNode(l,u,t,n,d,1)}const i=gA.createParameterDeclaration(void 0,void 0,t,void 0,r);g.push(i),2===e.usage&&(v||(v=[])).push(e),y.push(gA.createIdentifier(t))}));const b=Qe(r.values(),(e=>({type:e,declaration:xde(e)}))).sort(Sde),E=0===b.length?void 0:b.map((e=>e.declaration)),T=void 0!==E?E.map((e=>gA.createTypeReferenceNode(e.name,void 0))):void 0;if(mu(e)&&!f){const t=l.getContextualType(e);h=l.typeToTypeNode(t,n,1)}const{body:x,returnValueProperty:S}=function(e,n,t,r,i){const a=void 0!==t||n.length>0;if(pI(e)&&!a&&0===r.size)return{body:gA.createBlock(e.statements,!0),returnValueProperty:void 0};let o,s=!1;const c=gA.createNodeArray(pI(e)?e.statements.slice(0):[Bu(e)?e:gA.createReturnStatement(ey(e))]);if(a||r.size){const r=_B(c,l,Bu).slice();if(a&&!i&&Bu(e)){const e=Ade(n,t);1===e.length?r.push(gA.createReturnStatement(e[0].name)):r.push(gA.createReturnStatement(gA.createObjectLiteralExpression(e)))}return{body:gA.createBlock(r,!0),returnValueProperty:o}}return{body:gA.createBlock(c,!0),returnValueProperty:void 0};function l(e){if(!s&&AI(e)&&a){const r=Ade(n,t);return e.expression&&(o||(o="__return"),r.unshift(gA.createPropertyAssignment(o,uB(e.expression,l,mu)))),1===r.length?gA.createReturnStatement(r[0].name):gA.createReturnStatement(gA.createObjectLiteralExpression(r))}{const n=s;s=s||Rd(e)||Fd(e);const t=r.get(ZG(e).toString()),i=t?I$(t):EB(e,l,UV);return s=n,i}}}(e,o,v,a,!!(1&s.facts));let A;O$(x);const L=!!(16&s.facts);if(Fd(n)){const e=f?[]:[gA.createModifier(121)];32&s.facts&&e.push(gA.createModifier(124)),4&s.facts&&e.push(gA.createModifier(132)),A=gA.createMethodDeclaration(e.length?e:void 0,2&s.facts?gA.createToken(41):void 0,m,void 0,E,g,h,x)}else L&&g.unshift(gA.createParameterDeclaration(void 0,void 0,"this",void 0,l.typeToTypeNode(l.getTypeAtLocation(s.thisNode),n,1),void 0)),A=gA.createFunctionDeclaration(4&s.facts?[gA.createToken(132)]:void 0,2&s.facts?gA.createToken(41):void 0,m,E,g,h,x);const C=R_e.ChangeTracker.fromContext(c),k=(Lde(s.range)?Ge(s.range):s.range).end,I=function(e,n){return D(function(e){if(Rd(e)){const n=e.body;if(pI(n))return n.statements}else{if(UI(e)||Iw(e))return e.statements;if(Fd(e))return e.members}return i}(n),(n=>n.pos>=e&&Rd(n)&&!ek(n)))}(k,n);I?C.insertNodeBefore(c.file,I,A,!0):C.insertNodeAtEndOfScope(c.file,n,A);u.writeFixes(C);const w=[],R=function(e,n,t){const r=gA.createIdentifier(t);if(Fd(e)){const t=32&n.facts?gA.createIdentifier(e.name.text):gA.createThis();return gA.createPropertyAccessExpression(t,r)}return r}(n,s,p);L&&y.unshift(gA.createIdentifier("this"));let N=gA.createCallExpression(L?gA.createPropertyAccessExpression(R,"call"):R,T,y);2&s.facts&&(N=gA.createYieldExpression(gA.createToken(41),N));4&s.facts&&(N=gA.createAwaitExpression(N));Ide(e)&&(N=gA.createJsxExpression(void 0,N));if(o.length&&!v)if(Nt.assert(!S,"Expected no returnValueProperty"),Nt.assert(!(1&s.facts),"Expected RangeFacts.HasReturn flag to be unset"),1===o.length){const e=o[0];w.push(gA.createVariableStatement(void 0,gA.createVariableDeclarationList([gA.createVariableDeclaration(I$(e.name),void 0,I$(e.type),N)],e.parent.flags)))}else{const e=[],t=[];let r=o[0].parent.flags,i=!1;for(const s of o){e.push(gA.createBindingElement(void 0,void 0,I$(s.name)));const a=l.typeToTypeNode(l.getBaseTypeOfLiteralType(l.getTypeAtLocation(s)),n,1);t.push(gA.createPropertySignature(void 0,s.symbol.name,void 0,a)),i=i||void 0!==s.type,r&=s.parent.flags}const a=i?gA.createTypeLiteralNode(t):void 0;a&&jA(a,1),w.push(gA.createVariableStatement(void 0,gA.createVariableDeclarationList([gA.createVariableDeclaration(gA.createObjectBindingPattern(e),void 0,a,N)],r)))}else if(o.length||v){if(o.length)for(const n of o){let e=n.parent.flags;2&e&&(e=-3&e|1),w.push(gA.createVariableStatement(void 0,gA.createVariableDeclarationList([gA.createVariableDeclaration(n.symbol.name,void 0,G(n.type))],e)))}S&&w.push(gA.createVariableStatement(void 0,gA.createVariableDeclarationList([gA.createVariableDeclaration(S,void 0,G(h))],1)));const e=Ade(o,v);S&&e.unshift(gA.createShorthandPropertyAssignment(S)),1===e.length?(Nt.assert(!S,"Shouldn't have returnValueProperty here"),w.push(gA.createExpressionStatement(gA.createAssignment(e[0].name,N))),1&s.facts&&w.push(gA.createReturnStatement())):(w.push(gA.createExpressionStatement(gA.createAssignment(gA.createObjectLiteralExpression(e),N))),S&&w.push(gA.createReturnStatement(gA.createIdentifier(S))))}else 1&s.facts?w.push(gA.createReturnStatement(N)):Lde(s.range)?w.push(gA.createExpressionStatement(N)):w.push(N);Lde(s.range)?C.replaceNodeRangeWithNodes(c.file,Me(s.range),Ge(s.range),w):C.replaceNodeWithNodes(c.file,s.range,w);const O=C.getChanges(),M=Lde(s.range)?Me(s.range):s.range,P=M.getSourceFile().fileName,F=V$(O,P,p,!1);return{renameFilename:P,renameLocation:F,edits:O};function G(e){if(void 0===e)return;const n=I$(e);let t=n;for(;Ek(t);)t=t.type;return gk(t)&&D(t.types,(e=>155===e.kind))?n:gA.createUnionTypeNode([n,gA.createKeywordTypeNode(155)])}}(a,r[t],o[t],c,e,n)}(t,e,n)}const a=/^constant_scope_(\d+)$/.exec(n);if(a){const n=+a[1];return Nt.assert(isFinite(n),"Expected to parse a finite number from the constant scope index"),function(e,n,t){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:a,constantErrorsPerScope:o,exposedVariableDeclarations:s}}=Tde(e,n);Nt.assert(!o[t].length,"The extraction went missing? How?"),Nt.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),n.cancellationToken.throwIfCancellationRequested();return function(e,n,{substitutions:t},r,i){const a=i.program.getTypeChecker(),o=n.getSourceFile(),s=!Mk(e)||Fd(n)||a.resolveName(e.name.text,e,111551,!1)||wC(e.name)||Vc(e.name)?U$(Fd(n)?"newProperty":"newLocal",o):e.name.text,c=Ih(n);let l=c||!a.isContextSensitive(e)?void 0:a.typeToTypeNode(a.getContextualType(e),n,1),d=function(e,n){return n.size?t(e):e;function t(e){const r=n.get(ZG(e).toString());return r?I$(r):EB(e,t,UV)}}(ey(e),t);({variableType:l,initializer:d}=m(l,d)),O$(d);const u=R_e.ChangeTracker.fromContext(i);if(Fd(n)){Nt.assert(!c,"Cannot extract to a JS class");const t=[];t.push(gA.createModifier(121)),32&r&&t.push(gA.createModifier(124)),t.push(gA.createModifier(146));const a=gA.createPropertyDeclaration(t,s,void 0,l,d);let o=gA.createPropertyAccessExpression(32&r?gA.createIdentifier(n.name.getText()):gA.createThis(),gA.createIdentifier(s));Ide(e)&&(o=gA.createJsxExpression(void 0,o));const _=function(e,n){const t=n.members;let r;Nt.assert(t.length>0,"Found no members");let i=!0;for(const a of t){if(a.pos>e)return r||t[0];if(i&&!YC(a)){if(void 0!==r)return a;i=!1}r=a}return void 0===r?Nt.fail():r}(e.pos,n);u.insertNodeBefore(i.file,_,a,!0),u.replaceNode(i.file,e,o)}else{const t=gA.createVariableDeclaration(s,void 0,l,d),r=function(e,n){let t;for(;void 0!==e&&e!==n;){if(NI(e)&&e.initializer===t&&DI(e.parent)&&e.parent.declarations.length>1)return e;t=e,e=e.parent}}(e,n);if(r){u.insertNodeBefore(i.file,r,t);const n=gA.createIdentifier(s);u.replaceNode(i.file,e,n)}else if(241===e.parent.kind&&n===Mc(e,Ede)){const n=gA.createVariableStatement(void 0,gA.createVariableDeclarationList([t],2));u.replaceNode(i.file,e.parent,n)}else{const r=gA.createVariableStatement(void 0,gA.createVariableDeclarationList([t],2)),a=function(e,n){let t;Nt.assert(!Fd(n));for(let r=e;r!==n;r=r.parent)Ede(r)&&(t=r);for(let r=(t||e).parent;;r=r.parent){if(kde(r)){let n;for(const t of r.statements){if(t.pos>e.pos)break;n=t}return!n&&bw(r)?(Nt.assert(CI(r.parent.parent),"Grandparent isn't a switch statement"),r.parent.parent):Nt.checkDefined(n,"prevStatement failed to get set")}Nt.assert(r!==n,"Didn't encounter a block-like before encountering scope")}}(e,n);if(0===a.pos?u.insertNodeAtTopOfFile(i.file,r,!1):u.insertNodeBefore(i.file,a,r,!1),241===e.parent.kind)u.delete(i.file,e.parent);else{let n=gA.createIdentifier(s);Ide(e)&&(n=gA.createJsxExpression(void 0,n)),u.replaceNode(i.file,e,n)}}}const _=u.getChanges(),p=e.getSourceFile().fileName,f=V$(_,p,s,!0);return{renameFilename:p,renameLocation:f,edits:_};function m(t,r){if(void 0===t)return{variableType:t,initializer:r};if(!jk(r)&&!Hk(r)||r.typeParameters)return{variableType:t,initializer:r};const i=a.getTypeAtLocation(e),o=Be(a.getSignaturesOfType(i,0));if(!o)return{variableType:t,initializer:r};if(o.getTypeParameters())return{variableType:t,initializer:r};const s=[];let c=!1;for(const e of r.parameters)if(e.type)s.push(e);else{const t=a.getTypeAtLocation(e);t===a.getAnyType()&&(c=!0),s.push(gA.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type||a.typeToTypeNode(t,n,1),e.initializer))}if(c)return{variableType:t,initializer:r};if(t=void 0,Hk(r))r=gA.updateArrowFunction(r,jN(e)?Qc(e):void 0,r.typeParameters,s,r.type||a.typeToTypeNode(o.getReturnType(),n,1),r.equalsGreaterThanToken,r.body);else{if(o&&o.thisParameter){const t=De(s);if(!t||IC(t.name)&&"this"!==t.name.escapedText){const t=a.getTypeOfSymbolAtLocation(o.thisParameter,e);s.splice(0,0,gA.createParameterDeclaration(void 0,void 0,"this",void 0,a.typeToTypeNode(t,n,1)))}}r=gA.updateFunctionExpression(r,jN(e)?Qc(e):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||a.typeToTypeNode(o.getReturnType(),n,1),r.body)}return{variableType:t,initializer:r}}}(mu(i)?i:i.statements[0].expression,r[t],a[t],e.facts,n)}(t,e,n)}Nt.fail("Unrecognized action name")}function vde(e,n,t=!0){const{length:r}=n;if(0===r&&!t)return{errors:[kT(e,n.start,r,_de.cannotExtractEmpty)]};const i=0===r&&t,a=LX(e,n.start),o=CX(e,oc(n)),s=a&&o&&t?function(e,n,t){const r=e.getStart(t);let i=n.getEnd();59===t.text.charCodeAt(i)&&i++;return{start:r,length:i-r}}(a,o,e):n,c=i?function(e){return Mc(e,(e=>e.parent&&Cde(e)&&!Yk(e.parent)))}(a):UY(a,e,s),l=i?c:UY(o,e,s);let d,u=0;if(!c||!l)return{errors:[kT(e,n.start,r,_de.cannotExtractRange)]};if(8388608&c.flags)return{errors:[kT(e,n.start,r,_de.cannotExtractJSDoc)]};if(c.parent!==l.parent)return{errors:[kT(e,n.start,r,_de.cannotExtractRange)]};if(c!==l){if(!kde(c.parent))return{errors:[kT(e,n.start,r,_de.cannotExtractRange)]};const t=[];for(const e of c.parent.statements){if(e===c||t.length){const n=f(e);if(n)return{errors:n};t.push(e)}if(e===l)break}return t.length?{targetRange:{range:t,facts:u,thisNode:d}}:{errors:[kT(e,n.start,r,_de.cannotExtractRange)]}}if(AI(c)&&!c.expression)return{errors:[kT(e,n.start,r,_de.cannotExtractRange)]};const _=function(e){if(AI(e)){if(e.expression)return e.expression}else if(fI(e)||DI(e)){const n=fI(e)?e.declarationList.declarations:e.declarations;let t,r=0;for(const e of n)e.initializer&&(r++,t=e.initializer);if(1===r)return t}else if(NI(e)&&e.initializer)return e.initializer;return e}(c),p=function(e){if(IC(hI(e)?e.expression:e))return[qf(e,_de.cannotExtractIdentifier)];return}(_)||f(_);return p?{errors:p}:{targetRange:{range:bde(_),facts:u,thisNode:d}};function f(e){let t;var r;if((r=t||(t={}))[r.None=0]="None",r[r.Break=1]="Break",r[r.Continue=2]="Continue",r[r.Return=4]="Return",Nt.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),Nt.assert(!Zx(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Bu(e)&&(!vh(e)||!Cde(e))&&!wde(e))return[qf(e,_de.statementOrExpressionExpected)];if(16777216&e.flags)return[qf(e,_de.cannotExtractAmbientBlock)];const i=Xm(e);let a;i&&function(e,n){let t=e;for(;t!==n;){if(169===t.kind){mb(t)&&(u|=32);break}if(166===t.kind){173===qm(t).kind&&(u|=32);break}171===t.kind&&mb(t)&&(u|=32),t=t.parent}}(e,i);let o,s=4;if(function e(t){if(a)return!0;if(Pu(t)){if(fb(257===t.kind?t.parent.parent:t,1))return(a||(a=[])).push(qf(t,_de.cannotExtractExportedEntity)),!0}switch(t.kind){case 269:return(a||(a=[])).push(qf(t,_de.cannotExtractImport)),!0;case 274:return(a||(a=[])).push(qf(t,_de.cannotExtractExportedEntity)),!0;case 106:if(210===t.parent.kind){const e=Xm(t);if(void 0===e||e.pos<n.start||e.end>=n.start+n.length)return(a||(a=[])).push(qf(t,_de.cannotExtractSuper)),!0}else u|=8,d=t;break;case 216:CD(t,(function e(n){if(JJ(n))u|=8,d=t;else{if(Fd(n)||Id(n)&&!Hk(n))return!1;CD(n,e)}}));case 260:case 259:Iw(t.parent)&&void 0===t.parent.externalModuleIndicator&&(a||(a=[])).push(qf(t,_de.functionWillNotBeVisibleInTheNewScope));case 228:case 215:case 171:case 173:case 174:case 175:return!1}const r=s;switch(t.kind){case 242:s&=-5;break;case 255:s=0;break;case 238:t.parent&&255===t.parent.kind&&t.parent.finallyBlock===t&&(s=4);break;case 293:case 292:s|=1;break;default:yu(t,!1)&&(s|=3)}switch(t.kind){case 194:case 108:u|=8,d=t;break;case 253:{const n=t.label;(o||(o=[])).push(n.escapedText),CD(t,e),o.pop();break}case 249:case 248:{const e=t.label;e?G(o,e.escapedText)||(a||(a=[])).push(qf(t,_de.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(249===t.kind?1:2)||(a||(a=[])).push(qf(t,_de.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 220:u|=4;break;case 226:u|=2;break;case 250:4&s?u|=1:(a||(a=[])).push(qf(t,_de.cannotExtractRangeContainingConditionalReturnStatement));break;default:CD(t,e)}s=r}(e),8&u){const n=Qm(e,!1,!1);(259===n.kind||171===n.kind&&207===n.parent.kind||215===n.kind)&&(u|=16)}return a}}function bde(e){return Bu(e)?[e]:vh(e)?hI(e.parent)?[e.parent]:e:wde(e)?e:void 0}function Ede(e){return Hk(e)?Au(e.body):Rd(e)||Iw(e)||UI(e)||Fd(e)}function Tde(e,n){const{file:t}=n,r=function(e){let n=Lde(e.range)?Me(e.range):e.range;if(8&e.facts&&!(16&e.facts)){const e=Xm(n);if(e){const t=Mc(n,Rd);return t?[t,e]:[e]}}const t=[];for(;;)if(n=n.parent,166===n.kind&&(n=Mc(n,(e=>Rd(e))).parent),Ede(n)&&(t.push(n),308===n.kind))return t}(e),i=function(e,n){return Lde(e.range)?{pos:Me(e.range).getStart(n),end:Ge(e.range).getEnd()}:e.range}(e,t),a=function(e,n,t,r,i,a){const o=new Map,s=[],c=[],l=[],d=[],u=[],_=new Map,p=[];let f;const m=Lde(e.range)?1===e.range.length&&hI(e.range[0])?e.range[0].expression:void 0:e.range;let h;if(void 0===m){const n=e.range,t=Me(n).getStart(),i=Ge(n).end;h=kT(r,t,i-t,_de.expressionExpected)}else 147456&i.getTypeAtLocation(m).flags&&(h=qf(m,_de.uselessConstantType));for(const I of n){s.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),c.push(new Map),l.push([]);const e=[];h&&e.push(h),Fd(I)&&Ih(I)&&e.push(qf(I,_de.cannotExtractToJSClass)),Hk(I)&&!pI(I.body)&&e.push(qf(I,_de.cannotExtractToExpressionArrowFunction)),d.push(e)}const g=new Map,y=Lde(e.range)?gA.createBlock(e.range):e.range,v=Lde(e.range)?Me(e.range):e.range,b=E(v);if(x(y),b&&!Lde(e.range)&&!hw(e.range)){T(i.getContextualType(e.range))}if(o.size>0){const e=new Map;let t=0;for(let r=v;void 0!==r&&t<n.length;r=r.parent)if(r===n[t]&&(e.forEach(((e,n)=>{s[t].typeParameterUsages.set(n,e)})),t++),Nf(r))for(const n of Ml(r)){const t=i.getTypeAtLocation(n);o.has(t.id.toString())&&e.set(t.id.toString(),t)}Nt.assert(t===n.length,"Should have iterated all scopes")}if(u.length){CD(Rf(n[0],n[0].parent)?n[0]:Bf(n[0]),L)}for(let I=0;I<n.length;I++){const t=s[I];if(I>0&&(t.usages.size>0||t.typeParameterUsages.size>0)){const n=Lde(e.range)?e.range[0]:e.range;d[I].push(qf(n,_de.cannotAccessVariablesFromNestedScopes))}16&e.facts&&Fd(n[I])&&l[I].push(qf(e.thisNode,_de.cannotExtractFunctionsContainingThisToMethod));let r,i=!1;if(s[I].usages.forEach((e=>{2===e.usage&&(i=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&pb(e.symbol.valueDeclaration,64)&&(r=e.symbol.valueDeclaration))})),Nt.assert(Lde(e.range)||0===p.length,"No variable declarations expected if something was extracted"),i&&!Lde(e.range)){const n=qf(e.range,_de.cannotWriteInExpression);l[I].push(n),d[I].push(n)}else if(r&&I>0){const e=qf(r,_de.cannotExtractReadonlyPropertyInitializerOutsideConstructor);l[I].push(e),d[I].push(e)}else if(f){const e=qf(f,_de.cannotExtractExportedEntity);l[I].push(e),d[I].push(e)}}return{target:y,usagesPerScope:s,functionErrorsPerScope:l,constantErrorsPerScope:d,exposedVariableDeclarations:p};function E(e){return!!Mc(e,(e=>Nf(e)&&0!==Ml(e).length))}function T(e){const n=i.getSymbolWalker((()=>(a.throwIfCancellationRequested(),!0))),{visitedTypes:t}=n.walkType(e);for(const r of t)r.isTypeParameter()&&o.set(r.id.toString(),r)}function x(e,n=1){if(b){T(i.getTypeAtLocation(e))}if(Pu(e)&&e.symbol&&u.push(e),Hb(e))x(e.left,2),x(e.right);else if(pu(e))x(e.operand,2);else if(Mk(e)||Pk(e))CD(e,x);else if(IC(e)){if(!e.parent)return;if(KC(e.parent)&&e!==e.parent.left)return;if(Mk(e.parent)&&e!==e.parent.expression)return;S(e,n,xm(e))}else CD(e,x)}function S(e,t,r){const i=A(e,t,r);if(i)for(let a=0;a<n.length;a++){const n=c[a].get(i);n&&s[a].substitutions.set(ZG(e).toString(),n)}}function A(a,o,u){const _=C(a);if(!_)return;const p=eB(_).toString(),f=g.get(p);if(f&&f>=o)return p;if(g.set(p,o),f){for(const e of s){e.usages.get(a.text)&&e.usages.set(a.text,{usage:o,symbol:_,node:a})}return p}const m=_.getDeclarations(),h=m&&D(m,(e=>e.getSourceFile()===r));if(h&&!nX(t,h.getStart(),h.end)){if(2&e.facts&&2===o){const e=qf(a,_de.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const n of l)n.push(e);for(const n of d)n.push(e)}for(let e=0;e<n.length;e++){const t=n[e];if(i.resolveName(_.name,t,_.flags,!1)!==_&&!c[e].has(p)){const n=k(_.exportSymbol||_,t,u);if(n)c[e].set(p,n);else if(u){if(!(262144&_.flags)){const n=qf(a,_de.typeWillNotBeVisibleInTheNewScope);l[e].push(n),d[e].push(n)}}else s[e].usages.set(a.text,{usage:o,symbol:_,node:a})}}return p}}function L(n){if(n===e.range||Lde(e.range)&&e.range.indexOf(n)>=0)return;const t=IC(n)?C(n):i.getSymbolAtLocation(n);if(t){const e=D(u,(e=>e.symbol===t));if(e)if(NI(e)){const n=e.symbol.id.toString();_.has(n)||(p.push(e),_.set(n,!0))}else f=f||e}CD(n,L)}function C(e){return e.parent&&Aw(e.parent)&&e.parent.name===e?i.getShorthandAssignmentValueSymbol(e.parent):i.getSymbolAtLocation(e)}function k(e,n,t){if(!e)return;const r=e.getDeclarations();if(r&&r.some((e=>e.parent===n)))return gA.createIdentifier(e.name);const i=k(e.parent,n,t);return void 0!==i?t?gA.createQualifiedName(i,gA.createIdentifier(e.name)):gA.createPropertyAccessExpression(i,e.name):void 0}}(e,r,i,t,n.program.getTypeChecker(),n.cancellationToken);return{scopes:r,readsAndWrites:a}}function xde(e){let n;const t=e.symbol;if(t&&t.declarations)for(const r of t.declarations)(void 0===n||r.pos<n.pos)&&(n=r);return n}function Sde({type:e,declaration:n},{type:t,declaration:r}){return Yn(n,r,"pos",Un)||Wn(e.symbol?e.symbol.getName():"",t.symbol?t.symbol.getName():"")||Un(e.id,t.id)}function Ade(e,n){const t=W(e,(e=>gA.createShorthandPropertyAssignment(e.symbol.name))),r=W(n,(e=>gA.createShorthandPropertyAssignment(e.symbol.name)));return void 0===t?r:void 0===r?t:t.concat(r)}function Lde(e){return gn(e)}function Cde(e){const{parent:n}=e;if(302===n.kind)return!1;switch(e.kind){case 10:return 269!==n.kind&&273!==n.kind;case 227:case 203:case 205:return!1;case 79:return 205!==n.kind&&273!==n.kind&&278!==n.kind}return!0}function kde(e){switch(e.kind){case 238:case 308:case 265:case 292:return!0;default:return!1}}function Ide(e){return wde(e)||(lw(e)||dw(e)||pw(e))&&(lw(e.parent)||pw(e.parent))}function wde(e){return _C(e)&&e.parent&&hw(e.parent)}var Rde=E({"src/services/refactors/extractSymbol.ts"(){Bfe(),Yde(),lde="Extract Symbol",dde={name:"Extract Constant",description:xT(Wo.Extract_constant),kind:"refactor.extract.constant"},ude={name:"Extract Function",description:xT(Wo.Extract_function),kind:"refactor.extract.function"},yse(lde,{kinds:[dde.kind,ude.kind],getEditsForAction:yde,getAvailableActions:gde}),(e=>{function n(e){return{message:e,code:0,category:3,key:e}}e.cannotExtractRange=n("Cannot extract range."),e.cannotExtractImport=n("Cannot extract import statement."),e.cannotExtractSuper=n("Cannot extract super call."),e.cannotExtractJSDoc=n("Cannot extract JSDoc."),e.cannotExtractEmpty=n("Cannot extract empty range."),e.expressionExpected=n("expression expected."),e.uselessConstantType=n("No reason to extract constant of type."),e.statementOrExpressionExpected=n("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),e.cannotExtractIdentifier=n("Select more than a single identifier."),e.cannotExtractExportedEntity=n("Cannot extract exported declaration"),e.cannotWriteInExpression=n("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=n("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=n("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=n("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=n("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=n("Cannot extract functions containing this to method")})(_de||(_de={})),pde=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(pde||{})}}),Nde={};T(Nde,{Messages:()=>_de,RangeFacts:()=>pde,getRangeToExtract:()=>vde,getRefactorActionsToExtractSymbol:()=>gde,getRefactorEditsToExtractSymbol:()=>yde});var Dde,Ode,Mde,Pde,Fde,Gde,Bde=E({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){Rde()}}),Ude=E({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){Bfe(),Yde(),Dde="Generate 'get' and 'set' accessors",Ode=Wo.Generate_get_and_set_accessors.message,yse(Dde,{kinds:[(Mde={name:Dde,description:Ode,kind:"refactor.rewrite.property.generateAccessors"}).kind],getEditsForAction:function(e,n){if(!e.endPosition)return;const t=$te.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);Nt.assert(t&&!qse(t),"Expected applicable refactor info");const r=$te.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,n);if(!r)return;const i=e.file.fileName,a=t.renameAccessor?t.accessorName:t.fieldName;return{renameFilename:i,renameLocation:(IC(a)?0:-1)+V$(r,i,a.text,qC(t.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return i;const n=$te.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return n?qse(n)?e.preferences.provideRefactorNotApplicableReason?[{name:Dde,description:Ode,actions:[{...Mde,notApplicableReason:n.error}]}]:i:[{name:Dde,description:Ode,actions:[Mde]}]:i}})}}),Vde={},jde=E({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){Ude()}});function Hde(e){const n=Wde(e);if(n&&!qse(n)){return{renameFilename:void 0,renameLocation:void 0,edits:R_e.ChangeTracker.with(e,(t=>function(e,n,t,r){const i=dX(t,21,e),a=Hk(t)&&void 0===i,o=a?Me(t.parameters):i;o&&(a&&(n.insertNodeBefore(e,o,gA.createToken(20)),n.insertNodeAfter(e,o,gA.createToken(21))),n.insertNodeAt(e,o.end,r,{prefix:": "}))}(e.file,t,n.declaration,n.returnTypeNode)))}}}function Kde(e){const n=Wde(e);return n?qse(n)?e.preferences.provideRefactorNotApplicableReason?[{name:Pde,description:Fde,actions:[{...Gde,notApplicableReason:n.error}]}]:i:[{name:Pde,description:Fde,actions:[Gde]}]:i}function Wde(e){if(Ih(e.file)||!Jse(Gde.kind,e.kind))return;const n=Mc(SX(e.file,e.startPosition),(e=>pI(e)||e.parent&&Hk(e.parent)&&(38===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 259:case 215:case 216:case 171:return!0;default:return!1}}(e)));if(!n||!n.body||n.type)return{error:xT(Wo.Return_type_must_be_inferred_from_a_function)};const t=e.program.getTypeChecker(),r=function(e,n){if(e.isImplementationOfOverload(n)){const t=e.getTypeAtLocation(n).getCallSignatures();if(t.length>1)return e.getUnionType(ee(t,(e=>e.getReturnType())))}const t=e.getSignatureFromDeclaration(n);if(t)return e.getReturnTypeOfSignature(t)}(t,n);if(!r)return{error:xT(Wo.Could_not_determine_function_return_type)};const i=t.typeToTypeNode(r,n,1);return i?{declaration:n,returnTypeNode:i}:void 0}var zde=E({"src/services/refactors/inferFunctionReturnType.ts"(){Bfe(),Yde(),Pde="Infer function return type",Fde=Wo.Infer_function_return_type.message,yse(Pde,{kinds:[(Gde={name:Pde,description:Fde,kind:"refactor.rewrite.function.returnType"}).kind],getEditsForAction:Hde,getAvailableActions:Kde})}}),qde={},Jde=E({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){zde()}}),Xde={};T(Xde,{addOrRemoveBracesToArrowFunction:()=>Yce,convertArrowFunctionOrFunctionExpression:()=>lle,convertParamsToDestructuredObject:()=>Mle,convertStringOrTemplateLiteral:()=>$le,convertToOptionalChainExpression:()=>mde,doChangeNamedToNamespaceOrDefault:()=>Pse,extractSymbol:()=>Nde,generateGetAccessorAndSetAccessor:()=>Vde,getApplicableRefactors:()=>vse,getEditsForRefactor:()=>bse,inferFunctionReturnType:()=>qde,isRefactorErrorInfo:()=>qse,refactorKindBeginsWith:()=>Jse,registerRefactor:()=>yse});var Yde=E({"src/services/_namespaces/ts.refactor.ts"(){Sse(),Rse(),jse(),zse(),Zse(),Rce(),$ce(),dle(),Ple(),Qle(),hde(),Bde(),jde(),Jde()}});function $de(e,n,t,r){const i=EX(TX(n,t));if(tue(i)){const t=function(e,n,t,r,i){const a=n.getSymbolAtLocation(e);if(!a){if(o_(e)){const r=mX(e,n);if(r&&(128&r.flags||1048576&r.flags&&N(r.types,(e=>!!(128&e.flags)))))return Zde(e.text,e.text,"string","",e,t)}else if(FJ(e)){const n=sf(e);return Zde(n,n,"label","",e,t)}return}const{declarations:o}=a;if(!o||0===o.length)return;if(o.some((e=>function(e,n){const t=n.getSourceFile();return e.isSourceFileDefaultLibrary(t)&&oo(t.fileName,".d.ts")}(r,e))))return eue(Wo.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(IC(e)&&"default"===e.escapedText&&a.parent&&1536&a.parent.flags)return;if(o_(e)&&yg(e))return i.allowRenameOfImportPath?function(e,n,t){if(!rc(e.text))return eue(Wo.You_cannot_rename_a_module_via_a_global_import);const r=t.declarations&&D(t.declarations,Iw);if(!r)return;const i=et(e.text,"/index")||et(e.text,"/index.js")?void 0:tt(qx(r.fileName),"/index"),a=void 0===i?r.fileName:i,o=void 0===i?"module":"directory",s=e.text.lastIndexOf("/")+1,c=yc(e.getStart(n)+1+s,e.text.length-s);return{canRename:!0,fileToRename:a,kind:o,displayName:a,fullDisplayName:a,kindModifiers:"",triggerSpan:c}}(e,t,a):void 0;const s=function(e,n,t,r){if(!r.providePrefixAndSuffixTextForRename&&2097152&n.flags){const e=n.declarations&&D(n.declarations,(e=>QI(e)));e&&!e.propertyName&&(n=t.getAliasedSymbol(n))}const{declarations:i}=n;if(!i)return;const a=Qde(e.path);if(void 0===a)return ce(i,(e=>vQ(e.getSourceFile().path)))?Wo.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const o of i){const e=Qde(o.getSourceFile().path);if(e){const n=Math.min(a.length,e.length);for(let t=0;t<=n;t++)if(0!==Wn(a[t],e[t]))return Wo.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}return}(t,a,n,i);if(s)return eue(s);const c=Zue.getSymbolKind(n,a,e),l=T$(e)||wy(e)&&164===e.parent.kind?fv(Py(e)):void 0,d=l||n.symbolToString(a),u=l||n.getFullyQualifiedName(a);return Zde(d,u,c,Zue.getSymbolModifiers(n,a),e,t)}(i,e.getTypeChecker(),n,e,r);if(t)return t}return eue(Wo.You_cannot_rename_this_element)}function Qde(e){const n=go(e),t=n.lastIndexOf("node_modules");if(-1!==t)return n.slice(0,t+2)}function Zde(e,n,t,r,i,a){return{canRename:!0,fileToRename:void 0,kind:t,displayName:e,fullDisplayName:n,kindModifiers:r,triggerSpan:nue(i,a)}}function eue(e){return{canRename:!1,localizedErrorMessage:xT(e)}}function nue(e,n){let t=e.getStart(n),r=e.getWidth(n);return o_(e)&&(t+=1,r-=2),yc(t,r)}function tue(e){switch(e.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return KJ(e);default:return!1}}var rue=E({"src/services/rename.ts"(){Bfe()}}),iue={};T(iue,{getRenameInfo:()=>$de,nodeIsEligibleForRename:()=>tue});var aue,oue,sue=E({"src/services/_namespaces/ts.Rename.ts"(){rue()}});function cue(e,n,t,r,i){const a=e.getTypeChecker(),o=CX(n,t);if(!o)return;const s=!!r&&"characterTyped"===r.kind;if(s&&(DX(n,t,o)||KX(n,t)))return;const c=!!r&&"invoked"===r.kind,l=function(e,n,t,r,i){for(let a=e;!Iw(a)&&(i||!pI(a));a=a.parent){Nt.assert(YJ(a.parent,a),"Not a subspan",(()=>`Child: ${Nt.formatSyntaxKind(a.kind)}, parent: ${Nt.formatSyntaxKind(a.parent.kind)}`));const e=pue(a,n,t,r);if(e)return e}return}(o,t,n,a,c);if(!l)return;i.throwIfCancellationRequested();const d=function({invocation:e,argumentCount:n},t,r,i,a){switch(e.kind){case 0:{if(a&&!function(e,n,t){if(!su(n))return!1;const r=n.getChildren(t);switch(e.kind){case 20:return G(r,e);case 27:{const n=uX(e);return!!n&&G(r,n)}case 29:return lue(e,t,n.expression);default:return!1}}(i,e.node,r))return;const o=[],s=t.getResolvedSignatureForSignatureHelp(e.node,o,n);return 0===o.length?void 0:{kind:0,candidates:o,resolvedSignature:s}}case 1:{const{called:o}=e;if(a&&!lue(i,r,IC(o)?o.parent:o))return;const s=jX(o,n,t);if(0!==s.length)return{kind:0,candidates:s,resolvedSignature:Me(s)};const c=t.getSymbolAtLocation(o);return c&&{kind:1,symbol:c}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return Nt.assertNever(e)}}(l,a,n,o,s);return i.throwIfCancellationRequested(),d?a.runWithCancellationToken(i,(e=>0===d.kind?xue(d.candidates,d.resolvedSignature,l,n,e):function(e,{argumentCount:n,argumentsSpan:t,invocation:r,argumentIndex:i},a,o){const s=o.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(!s)return;const c=[Sue(e,s,o,Tue(r),a)];return{items:c,applicableSpan:t,selectedItemIndex:0,argumentIndex:i,argumentCount:n}}(d.symbol,l,n,e))):Ch(n)?function(e,n,t){if(2===e.invocation.kind)return;const r=Eue(e.invocation),i=Mk(r)?r.name.text:void 0,a=n.getTypeChecker();return void 0===i?void 0:C(n.getSourceFiles(),(n=>C(n.getNamedDeclarations().get(i),(r=>{const i=r.symbol&&a.getTypeOfSymbolAtLocation(r.symbol,r),o=i&&i.getCallSignatures();if(o&&o.length)return a.runWithCancellationToken(t,(t=>xue(o,o[0],e,n,t,!0)))}))))}(l,e,i):void 0}function lue(e,n,t){const r=e.getFullStart();let i=e.parent;for(;i;){const e=IX(r,n,i,!0);if(e)return YJ(t,e);i=i.parent}return Nt.fail("Could not find preceding token")}function due(e,n,t){const r=_ue(e,n,t);return!r||r.isTypeParameterList||0!==r.invocation.kind?void 0:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}}function uue(e,n,t){const r=function(e,n){if(29===e.kind||20===e.kind)return{list:bue(e.parent,e,n),argumentIndex:0};{const n=uX(e);return n&&{list:n,argumentIndex:gue(n,e)}}}(e,t);if(!r)return;const{list:i,argumentIndex:a}=r,o=function(e,n){const t=e.getChildren();let r=V(t,(e=>27!==e.kind));!n&&t.length>0&&27===Ge(t).kind&&r++;return r}(i,DX(t,n,e));0!==a&&Nt.assertLessThan(a,o);const s=function(e,n){const t=e.getFullStart(),r=Ns(n.text,e.getEnd(),!1);return yc(t,r-t)}(i,t);return{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:s}}function _ue(e,n,t){const{parent:r}=e;if(su(r)){const i=r,a=uue(e,n,t);if(!a)return;const{list:o,argumentIndex:s,argumentCount:c,argumentsSpan:l}=a;return{isTypeParameterList:!!r.typeArguments&&r.typeArguments.pos===o.pos,invocation:{kind:0,node:i},argumentsSpan:l,argumentIndex:s,argumentCount:c}}if(mC(e)&&Bk(r))return ZX(e,n,t)?yue(r,0,t):void 0;if(hC(e)&&212===r.parent.kind){const i=r,a=i.parent;Nt.assert(225===i.kind);return yue(a,ZX(e,n,t)?0:1,t)}if(uI(r)&&Bk(r.parent.parent)){const i=r,a=r.parent.parent;if(yC(e)&&!ZX(e,n,t))return;const o=function(e,n,t,r){if(Nt.assert(t>=n.getStart(),"Assumed 'position' could not occur before node."),dd(n))return ZX(n,t,r)?0:e+2;return e+1}(i.parent.templateSpans.indexOf(i),e,n,t);return yue(a,o,t)}if(zu(r)){const e=r.attributes.pos;return{isTypeParameterList:!1,invocation:{kind:0,node:r},argumentsSpan:yc(e,Ns(t.text,r.attributes.end,!1)-e),argumentIndex:0,argumentCount:1}}{const n=HX(e,t);if(n){const{called:r,nTypeArguments:i}=n;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:vc(r.getStart(t),e.end),argumentIndex:i,argumentCount:i+1}}return}}function pue(e,n,t,r){return function(e,n,t,r){const i=function(e,n,t,r){if(20!==e.kind&&27!==e.kind)return;const{parent:i}=e;switch(i.kind){case 214:case 171:case 215:case 216:const a=uue(e,t,n);if(!a)return;const{argumentIndex:o,argumentCount:s,argumentsSpan:c}=a,l=QC(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return l&&{contextualType:l,argumentIndex:o,argumentCount:s,argumentsSpan:c};case 223:{const n=fue(i),t=r.getContextualType(n),a=20===e.kind?0:mue(i)-1,o=mue(n);return t&&{contextualType:t,argumentIndex:a,argumentCount:o,argumentsSpan:sY(i)}}default:return}}(e,t,n,r);if(!i)return;const{contextualType:a,argumentIndex:o,argumentCount:s,argumentsSpan:c}=i,l=a.getNonNullableType(),d=l.symbol;if(void 0===d)return;const u=Fe(l.getCallSignatures());if(void 0===u)return;return{isTypeParameterList:!1,invocation:{kind:2,signature:u,node:e,symbol:hue(d)},argumentsSpan:c,argumentIndex:o,argumentCount:s}}(e,n,t,r)||_ue(e,n,t)}function fue(e){return Yk(e.parent)?fue(e.parent):e}function mue(e){return Yk(e.left)?mue(e.left)+1:2}function hue(e){return"__type"===e.name&&C(e.declarations,(e=>{var n;return ck(e)?null==(n=En(e.parent,Nu))?void 0:n.symbol:void 0}))||e}function gue(e,n){let t=0;for(const r of e.getChildren()){if(r===n)break;27!==r.kind&&t++}return t}function yue(e,n,t){const r=mC(e.template)?1:e.template.templateSpans.length+1;return 0!==n&&Nt.assertLessThan(n,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:vue(e,t),argumentIndex:n,argumentCount:r}}function vue(e,n){const t=e.template,r=t.getStart();let i=t.getEnd();if(225===t.kind){0===Ge(t.templateSpans).literal.getFullWidth()&&(i=Ns(n.text,i,!1))}return yc(r,i-r)}function bue(e,n,t){const r=e.getChildren(t),i=r.indexOf(n);return Nt.assert(i>=0&&r.length>i+1),r[i+1]}function Eue(e){return 0===e.kind?dh(e.node):e.called}function Tue(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}function xue(e,n,{isTypeParameterList:t,argumentCount:r,argumentsSpan:a,invocation:o,argumentIndex:s},c,l,d){var u;const _=Tue(o),p=2===o.kind?o.symbol:l.getSymbolAtLocation(Eue(o))||d&&(null==(u=n.declaration)?void 0:u.symbol),f=p?v$(l,p,d?c:void 0,void 0):i,m=W(e,(e=>function(e,n,t,r,i,a){const o=(t?Lue:Cue)(e,r,i,a);return W(o,(({isVariadic:t,parameters:a,prefix:o,suffix:s})=>{const c=[...n,...o],l=[...s,...Aue(e,i,r)],d=e.getDocumentationComment(r),u=e.getJsDocTags();return{isVariadic:t,prefixDisplayParts:c,suffixDisplayParts:l,separatorDisplayParts:oue,parameters:a,documentation:d,tags:u}}))}(e,f,t,l,_,c)));0!==s&&Nt.assertLessThan(s,r);let h=0,g=0;for(let i=0;i<m.length;i++){const t=m[i];if(e[i]===n&&(h=g,t.length>1)){let e=0;for(const n of t){if(n.isVariadic||n.parameters.length>=r){h=g+e;break}e++}}g+=t.length}Nt.assert(-1!==h);const y={items:Y(m,Cn),applicableSpan:a,selectedItemIndex:h,argumentIndex:s,argumentCount:r},v=y.items[h];if(v.isVariadic){const e=M(v.parameters,(e=>!!e.isRest));-1<e&&e<v.parameters.length-1?y.argumentIndex=v.parameters.length:y.argumentIndex=Math.min(y.argumentIndex,v.parameters.length-1)}return y}function Sue(e,n,t,r,i){const a=v$(t,e),o=ej(),s=n.map((e=>kue(e,t,r,i,o))),c=e.getDocumentationComment(t),l=e.getJsDocTags(t);return{isVariadic:!1,prefixDisplayParts:[...a,r$(29)],suffixDisplayParts:[r$(31)],separatorDisplayParts:oue,parameters:s,documentation:c,tags:l}}function Aue(e,n,t){return g$((r=>{r.writePunctuation(":"),r.writeSpace(" ");const i=t.getTypePredicateOfSignature(e);i?t.writeTypePredicate(i,n,void 0,r):t.writeType(t.getReturnTypeOfSignature(e),n,void 0,r)}))}function Lue(e,n,t,r){const a=(e.target||e).typeParameters,o=ej(),s=(a||i).map((e=>kue(e,n,t,r,o))),c=e.thisParameter?[n.symbolToParameterDeclaration(e.thisParameter,t,aue)]:[];return n.getExpandedParameters(e).map((e=>{const i=gA.createNodeArray([...c,...W(e,(e=>n.symbolToParameterDeclaration(e,t,aue)))]),a=g$((e=>{o.writeList(2576,i,r,e)}));return{isVariadic:!1,parameters:s,prefix:[r$(29)],suffix:[r$(31),...a]}}))}function Cue(e,n,t,r){const i=ej(),a=g$((a=>{if(e.typeParameters&&e.typeParameters.length){const o=gA.createNodeArray(e.typeParameters.map((e=>n.typeParameterToDeclaration(e,t,aue))));i.writeList(53776,o,r,a)}})),o=n.getExpandedParameters(e),s=n.hasEffectiveRestParameter(e)?1===o.length?e=>!0:e=>{var n;return!!(e.length&&32768&(null==(n=En(e[e.length-1],up))?void 0:n.links.checkFlags))}:e=>!1;return o.map((e=>({isVariadic:s(e),parameters:e.map((e=>function(e,n,t,r,i){const a=g$((a=>{const o=n.symbolToParameterDeclaration(e,t,aue);i.writeNode(4,o,r,a)})),o=n.isOptionalParameter(e.valueDeclaration),s=up(e)&&!!(32768&e.links.checkFlags);return{name:e.name,documentation:e.getDocumentationComment(n),displayParts:a,isOptional:o,isRest:s}}(e,n,t,r,i))),prefix:[...a,r$(20)],suffix:[r$(21)]})))}function kue(e,n,t,r,i){const a=g$((a=>{const o=n.typeParameterToDeclaration(e,t,aue);i.writeNode(4,o,r,a)}));return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(n),displayParts:a,isOptional:!1,isRest:!1}}var Iue=E({"src/services/signatureHelp.ts"(){Bfe(),aue=70246400,oue=[r$(27),n$()]}}),wue={};T(wue,{getArgumentInfoForCompletions:()=>due,getSignatureHelpItems:()=>cue});var Rue,Nue=E({"src/services/_namespaces/ts.SignatureHelp.ts"(){Iue()}});function Due(e,n){var t,r;let i={textSpan:vc(n.getFullStart(),n.getEnd())},a=n;e:for(;;){const i=Mue(a);if(!i.length)break;for(let c=0;c<i.length;c++){const l=i[c-1],d=i[c],u=i[c+1];if(nf(d,n,!0)>e)break e;const _=Be(Ks(n.text,d.end));if(_&&2===_.kind&&s(_.pos,_.end),Oue(n,e,d)){if(Au(d)&&Rd(a)&&!kE(d.getStart(n),d.getEnd(),n)&&o(d.getStart(n),d.getEnd()),pI(d)||uI(d)||hC(d)||yC(d)||l&&hC(l)||DI(d)&&fI(a)||vR(d)&&DI(a)||NI(d)&&vR(a)&&1===i.length||Nw(d)||Jw(d)||qw(d)){a=d;break}if(uI(a)&&u&&ud(u)){o(d.getFullStart()-2,u.getStart()+1)}const e=vR(d)&&Bue(l)&&Uue(u)&&!kE(l.getStart(),u.getStart(),n);let s=e?l.getEnd():d.getStart();const c=e?u.getStart():Vue(n,d);if(Zu(d)&&(null==(t=d.jsDoc)?void 0:t.length)&&o(Me(d.jsDoc).getStart(),c),vR(d)){const e=d.getChildren()[0];e&&Zu(e)&&(null==(r=e.jsDoc)?void 0:r.length)&&e.getStart()!==d.pos&&(s=Math.min(s,Me(e.jsDoc).getStart()))}o(s,c),(_C(d)||cu(d))&&o(s+1,c-1),a=d;break}if(c===i.length-1)break e}}return i;function o(n,t){if(n!==t){const r=vc(n,t);(!i||!WY(r,i.textSpan)&&hc(r,e))&&(i={textSpan:r,...i&&{parent:i}})}}function s(e,t){o(e,t);let r=e;for(;47===n.text.charCodeAt(r);)r++;o(r,t)}}function Oue(e,n,t){if(Nt.assert(t.pos<=n),n<t.end)return!0;return t.getEnd()===n&&TX(e,n).pos<t.end}function Mue(e){var n;if(Iw(e))return Pue(e.getChildAt(0).getChildren(),Rue);if(Ak(e)){const[n,...t]=e.getChildren(),r=Nt.checkDefined(t.pop());Nt.assertEqual(n.kind,18),Nt.assertEqual(r.kind,19);const i=Pue(t,(n=>n===e.readonlyToken||146===n.kind||n===e.questionToken||57===n.kind));return[n,Gue(Fue(Pue(i,(({kind:e})=>22===e||165===e||23===e)),(({kind:e})=>58===e))),r]}if(XC(e)){const t=Pue(e.getChildren(),(n=>n===e.name||G(e.modifiers,n))),r=323===(null==(n=t[0])?void 0:n.kind)?t[0]:void 0,i=Fue(r?t.slice(1):t,(({kind:e})=>58===e));return r?[r,Gue(i)]:i}if(qC(e)){const n=Pue(e.getChildren(),(n=>n===e.dotDotDotToken||n===e.name));return Fue(Pue(n,(t=>t===n[0]||t===e.questionToken)),(({kind:e})=>63===e))}return Nk(e)?Fue(e.getChildren(),(({kind:e})=>63===e)):e.getChildren()}function Pue(e,n){const t=[];let r;for(const i of e)n(i)?(r=r||[],r.push(i)):(r&&(t.push(Gue(r)),r=void 0),t.push(i));return r&&t.push(Gue(r)),t}function Fue(e,n,t=!0){if(e.length<2)return e;const r=M(e,n);if(-1===r)return e;const i=e.slice(0,r),a=e[r],o=Ge(e),s=t&&26===o.kind,c=e.slice(r+1,s?e.length-1:void 0),l=be([i.length?Gue(i):void 0,a,c.length?Gue(c):void 0]);return s?l.concat(o):l}function Gue(e){return Nt.assertGreaterThanOrEqual(e.length,1),SS(YN.createSyntaxList(e),e[0].pos,Ge(e).end)}function Bue(e){const n=e&&e.kind;return 18===n||22===n||20===n||283===n}function Uue(e){const n=e&&e.kind;return 19===n||23===n||21===n||284===n}function Vue(e,n){switch(n.kind){case 344:case 341:case 351:case 349:case 346:return e.getLineEndOfPosition(n.getStart());default:return n.getEnd()}}var jue=E({"src/services/smartSelection.ts"(){Bfe(),Rue=yt(KI,HI)}}),Hue={};T(Hue,{getSmartSelectionRange:()=>Due});var Kue,Wue=E({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){jue()}});function zue(e,n,t){const r=que(e,n,t);if(""!==r)return r;const i=UE(n);return 32&i?cp(n,228)?"local class":"class":384&i?"enum":524288&i?"type":64&i?"interface":262144&i?"type parameter":8&i?"enum member":2097152&i?"alias":1536&i?"module":r}function que(e,n,t){const r=e.getRootSymbols(n);if(1===r.length&&8192&Me(r).flags&&0!==e.getTypeOfSymbolAtLocation(n,t).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(n))return"var";if(e.isArgumentsSymbol(n))return"local var";if(108===t.kind&&mu(t)||Xv(t))return"parameter";const i=UE(n);if(3&i)return QY(n)?"parameter":n.valueDeclaration&&dm(n.valueDeclaration)?"const":A(n.declarations,um)?"let":$ue(n)?"local var":"var";if(16&i)return $ue(n)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(131072&i)return"index";if(4&i){if(33554432&i&&6&n.links.checkFlags){const r=A(e.getRootSymbols(n),(e=>{if(98311&e.getFlags())return"property"}));if(!r){return e.getTypeOfSymbolAtLocation(n,t).getCallSignatures().length?"method":"property"}return r}return"property"}return""}function Jue(e){if(e.declarations&&e.declarations.length){const[n,...t]=e.declarations,r=qX(n,S(t)&&PQ(n)&&ce(t,(e=>!PQ(e)))?8192:0);if(r)return r.split(",")}return[]}function Xue(e,n){if(!n)return"";const t=new Set(Jue(n));if(2097152&n.flags){const r=e.getAliasedSymbol(n);r!==n&&A(Jue(r),(e=>{t.add(e)}))}return 16777216&n.flags&&t.add("optional"),t.size>0?Qe(t.values()).join(","):""}function Yue(e,n,t,r,a,o=vJ(a),s){var c;const l=[];let d=[],u=[];const _=UE(n);let p=1&o?que(e,n,a):"",f=!1;const m=108===a.kind&&bh(a)||Xv(a);let h,g,y,v=!1;if(108===a.kind&&!m)return{displayParts:[t$(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==p||32&_||2097152&_){if("getter"===p||"setter"===p){const e=D(n.declarations,(e=>e.name===a));if(e)switch(e.kind){case 174:p="getter";break;case 175:p="setter";break;case 169:p="accessor";break;default:Nt.assertNever(e)}else p="property"}let t,i;if(h=m?e.getTypeAtLocation(a):e.getTypeOfSymbolAtLocation(n,a),a.parent&&208===a.parent.kind){const e=a.parent.name;(e===a||e&&0===e.getFullWidth())&&(a=a.parent)}if(su(a)?i=a:(EJ(a)||TJ(a)||a.parent&&(zu(a.parent)||Bk(a.parent))&&Id(n.valueDeclaration))&&(i=a.parent),i){t=e.getResolvedSignature(i);const a=211===i.kind||Fk(i)&&106===i.expression.kind,o=a?h.getConstructSignatures():h.getCallSignatures();if(!t||G(o,t.target)||G(o,t)||(t=o.length?o[0]:void 0),t){switch(a&&32&_?(p="constructor",L(h.symbol,p)):2097152&_?(p="alias",k(p),l.push(n$()),a&&(4&t.flags&&(l.push(t$(126)),l.push(n$())),l.push(t$(103)),l.push(n$())),S(n)):L(n,p),p){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":l.push(r$(58)),l.push(n$()),16&YE(h)||!h.symbol||(Ae(l,v$(e,h.symbol,r,void 0,5)),l.push(h$())),a&&(4&t.flags&&(l.push(t$(126)),l.push(n$())),l.push(t$(103)),l.push(n$())),I(t,o,262144);break;default:I(t,o)}f=!0,v=o.length>1}}else if(HJ(a)&&!(98304&_)||135===a.kind&&173===a.parent.kind){const r=a.parent;if(n.declarations&&D(n.declarations,(e=>e===(135===a.kind?r.parent:r)))){const i=173===r.kind?h.getNonNullableType().getConstructSignatures():h.getNonNullableType().getCallSignatures();t=e.isImplementationOfOverload(r)?i[0]:e.getSignatureFromDeclaration(r),173===r.kind?(p="constructor",L(h.symbol,p)):L(176!==r.kind||2048&h.symbol.flags||4096&h.symbol.flags?n:h.symbol,p),t&&I(t,i),f=!0,v=i.length>1}}}if(32&_&&!f&&!m&&(T(),cp(n,228)?k("local class"):l.push(t$(84)),l.push(n$()),S(n),w(n,t)),64&_&&2&o&&(E(),l.push(t$(118)),l.push(n$()),S(n),w(n,t)),524288&_&&2&o&&(E(),l.push(t$(154)),l.push(n$()),S(n),w(n,t),l.push(n$()),l.push(i$(63)),l.push(n$()),Ae(l,y$(e,ql(a.parent)?e.getTypeAtLocation(a.parent):e.getDeclaredTypeOfSymbol(n),r,8388608))),384&_&&(E(),ce(n.declarations,(e=>GI(e)&&cm(e)))&&(l.push(t$(85)),l.push(n$())),l.push(t$(92)),l.push(n$()),S(n)),1536&_&&!m){E();const e=cp(n,264),t=e&&e.name&&79===e.name.kind;l.push(t$(t?143:142)),l.push(n$()),S(n)}if(262144&_&&2&o)if(E(),l.push(r$(20)),l.push(c$("type parameter")),l.push(r$(21)),l.push(n$()),S(n),n.parent)x(),S(n.parent,r),w(n.parent,r);else{const r=cp(n,165);if(void 0===r)return Nt.fail();const i=r.parent;if(i)if(Id(i)){x();const n=e.getSignatureFromDeclaration(i);177===i.kind?(l.push(t$(103)),l.push(n$())):176!==i.kind&&i.name&&S(i.symbol),Ae(l,b$(e,n,t,32))}else FI(i)&&(x(),l.push(t$(154)),l.push(n$()),S(i.symbol),w(i.symbol,t))}if(8&_){p="enum member",L(n,"enum member");const t=null==(c=n.declarations)?void 0:c[0];if(302===(null==t?void 0:t.kind)){const n=e.getConstantValue(t);void 0!==n&&(l.push(n$()),l.push(i$(63)),l.push(n$()),l.push(e$(ff(n),"number"===typeof n?7:8)))}}if(2097152&n.flags){if(E(),!f){const t=e.getAliasedSymbol(n);if(t!==n&&t.declarations&&t.declarations.length>0){const r=t.declarations[0],i=Xc(r);if(i){const a=vf(r)&&fb(r,2),s="default"!==n.name&&!a,c=Yue(e,t,Dp(r),r,i,o,s?n:t);l.push(...c.displayParts),l.push(h$()),g=c.documentation,y=c.tags}else g=t.getContextualDocumentationComment(r,e),y=t.getJsDocTags(e)}}if(n.declarations)switch(n.declarations[0].kind){case 267:l.push(t$(93)),l.push(n$()),l.push(t$(143));break;case 274:l.push(t$(93)),l.push(n$()),l.push(t$(n.declarations[0].isExportEquals?63:88));break;case 278:l.push(t$(93));break;default:l.push(t$(100))}l.push(n$()),S(n),A(n.declarations,(n=>{if(268===n.kind){const t=n;if(xh(t))l.push(n$()),l.push(i$(63)),l.push(n$()),l.push(t$(147)),l.push(r$(20)),l.push(e$(sf(Sh(t)),8)),l.push(r$(21));else{const n=e.getSymbolAtLocation(t.moduleReference);n&&(l.push(n$()),l.push(i$(63)),l.push(n$()),S(n,r))}return!0}}))}if(!f)if(""!==p){if(h)if(m?(E(),l.push(t$(108))):L(n,p),"property"===p||"accessor"===p||"getter"===p||"setter"===p||"JSX attribute"===p||3&_||"local var"===p||"index"===p||m){if(l.push(r$(58)),l.push(n$()),h.symbol&&262144&h.symbol.flags&&"index"!==p){const n=g$((n=>{const t=e.typeParameterToDeclaration(h,r,Kue);b().writeNode(4,t,Dp(Fc(r)),n)}));Ae(l,n)}else Ae(l,y$(e,h,r));if(up(n)&&n.links.target&&up(n.links.target)&&n.links.target.links.tupleLabelDeclaration){const e=n.links.target.links.tupleLabelDeclaration;Nt.assertNode(e.name,IC),l.push(n$()),l.push(r$(20)),l.push(c$(Uc(e.name))),l.push(r$(21))}}else if(16&_||8192&_||16384&_||131072&_||98304&_||"method"===p){const e=h.getNonNullableType().getCallSignatures();e.length&&(I(e[0],e),v=e.length>1)}}else p=zue(e,n,a);if(0!==d.length||v||(d=n.getContextualDocumentationComment(r,e)),0===d.length&&4&_&&n.parent&&n.declarations&&A(n.parent.declarations,(e=>308===e.kind)))for(const i of n.declarations){if(!i.parent||223!==i.parent.kind)continue;const n=e.getSymbolAtLocation(i.parent.right);if(n&&(d=n.getDocumentationComment(e),u=n.getJsDocTags(e),d.length>0))break}if(0===d.length&&IC(a)&&n.valueDeclaration&&Nk(n.valueDeclaration)){const t=n.valueDeclaration,r=t.parent;if(IC(t.name)&&wk(r)){const n=Py(t.name),a=e.getTypeAtLocation(r);d=C(a.isUnion()?a.types:[a],(t=>{const r=t.getProperty(n);return r?r.getDocumentationComment(e):void 0}))||i}}return 0!==u.length||v||(u=n.getContextualJsDocTags(r,e)),0===d.length&&g&&(d=g),0===u.length&&y&&(u=y),{displayParts:l,documentation:d,symbolKind:p,tags:0===u.length?void 0:u};function b(){return ej()}function E(){l.length&&l.push(h$()),T()}function T(){s&&(k("alias"),l.push(n$()))}function x(){l.push(n$()),l.push(t$(101)),l.push(n$())}function S(r,i){let a;s&&r===n&&(r=s),"index"===p&&(a=e.getIndexInfosOfIndexSymbol(r));let o=[];131072&r.flags&&a?(r.parent&&(o=v$(e,r.parent)),o.push(r$(22)),a.forEach(((n,t)=>{o.push(...y$(e,n.keyType)),t!==a.length-1&&(o.push(n$()),o.push(r$(51)),o.push(n$()))})),o.push(r$(23))):o=v$(e,r,i||t,void 0,7),Ae(l,o),16777216&n.flags&&l.push(r$(57))}function L(e,n){E(),n&&(k(n),e&&!ce(e.declarations,(e=>Hk(e)||(jk(e)||nI(e))&&!e.name))&&(l.push(n$()),S(e)))}function k(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":return void l.push(s$(e));default:return l.push(r$(20)),l.push(s$(e)),void l.push(r$(21))}}function I(n,t,i=0){Ae(l,b$(e,n,r,32|i)),t.length>1&&(l.push(n$()),l.push(r$(20)),l.push(i$(39)),l.push(e$((t.length-1).toString(),7)),l.push(n$()),l.push(c$(2===t.length?"overload":"overloads")),l.push(r$(21))),d=n.getDocumentationComment(e),u=n.getJsDocTags(),t.length>1&&0===d.length&&0===u.length&&(d=t[0].getDocumentationComment(e),u=t[0].getJsDocTags().filter((e=>"deprecated"!==e.name)))}function w(n,t){const r=g$((r=>{const i=e.symbolToTypeParameterDeclarations(n,t,Kue);b().writeList(53776,i,Dp(Fc(t)),r)}));Ae(l,r)}}function $ue(e){return!e.parent&&A(e.declarations,(e=>{if(215===e.kind)return!0;if(257!==e.kind&&259!==e.kind)return!1;for(let n=e.parent;!Fm(n);n=n.parent)if(308===n.kind||265===n.kind)return!1;return!0}))}var Que=E({"src/services/symbolDisplay.ts"(){Bfe(),Kue=70246400}}),Zue={};T(Zue,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>Yue,getSymbolKind:()=>zue,getSymbolModifiers:()=>Xue});var e_e,n_e,t_e,r_e,i_e,a_e,o_e,s_e=E({"src/services/_namespaces/ts.SymbolDisplay.ts"(){Que()}});function c_e(e){const n=e.__pos;return Nt.assert("number"===typeof n),n}function l_e(e,n){Nt.assert("number"===typeof n),e.__pos=n}function d_e(e){const n=e.__end;return Nt.assert("number"===typeof n),n}function u_e(e,n){Nt.assert("number"===typeof n),e.__end=n}function __e(e,n){return Ns(e,n,!1,!0)}function p_e(e,n,t,r){return{pos:f_e(e,n,r),end:h_e(e,t,r)}}function f_e(e,n,t,r=!1){var i,a;const{leadingTriviaOption:o}=t;if(0===o)return n.getStart(e);if(3===o){const t=n.getStart(e),r=XJ(t,e);return QJ(n,r)?r:t}if(2===o){const t=Tm(n,e.text);if(null==t?void 0:t.length)return XJ(t[0].pos,e)}const s=n.getFullStart(),c=n.getStart(e);if(s===c)return c;const l=XJ(s,e);if(XJ(c,e)===l)return 1===o?s:c;if(r){const n=(null==(i=Hs(e.text,s))?void 0:i[0])||(null==(a=Ks(e.text,s))?void 0:a[0]);if(n)return Ns(e.text,n.end,!0,!0)}const d=s>0?1:0;let u=Fp(Vv(e,l)+d,e);return u=__e(e.text,u),Fp(Vv(e,u),e)}function m_e(e,n,t){const{end:r}=n,{trailingTriviaOption:i}=t;if(2===i){const t=Ks(e.text,r);if(t){const r=Vv(e,n.end);for(const n of t){if(2===n.kind||Vv(e,n.pos)>r)break;if(Vv(e,n.end)>r)return Ns(e.text,n.end,!0,!0)}}}}function h_e(e,n,t){var r;const{end:i}=n,{trailingTriviaOption:a}=t;if(0===a)return i;if(1===a){const n=de(Ks(e.text,i),Hs(e.text,i)),t=null==(r=null==n?void 0:n[n.length-1])?void 0:r.end;return t||i}const o=m_e(e,n,t);if(o)return o;const s=Ns(e.text,i,!0);return s===i||2!==a&&!Cs(e.text.charCodeAt(s-1))?i:s}function g_e(e,n){return!!n&&!!e.parent&&(27===n.kind||26===n.kind&&207===e.parent.kind)}function y_e(e){return jk(e)||OI(e)}function v_e(e,n){return Ns(e.text,f_e(e,n,{leadingTriviaOption:1}),!1,!0)}function b_e(e,n,t,r){const i=v_e(e,r);if(void 0===t||kE(h_e(e,n,{}),i,e))return i;const a=IX(r.getStart(e),e);if(g_e(n,a)){const r=IX(n.getStart(e),e);if(g_e(t,r)){const n=Ns(e.text,a.getEnd(),!0,!0);if(kE(r.getStart(e),a.getStart(e),e))return Cs(e.text.charCodeAt(n-1))?n-1:n;if(Cs(e.text.charCodeAt(n)))return n}}return i}function E_e(e){return Ok(e)?e.properties:e.members}function T_e(e,n,t,r){return i_e.newFileChangesWorker(void 0,n,e,t,r)}function x_e(e,n){for(let t=n.length-1;t>=0;t--){const{span:r,newText:i}=n[t];e=`${e.substring(0,r.start)}${i}${e.substring(oc(r))}`}return e}function S_e(e){const n=EB(e,S_e,a_e,A_e,S_e),t=$y(n)?n:Object.create(n);return SS(t,c_e(e),d_e(e)),t}function A_e(e,n,t,r,i){const a=_B(e,n,t,r,i);if(!a)return a;Nt.assert(e);const o=a===e?gA.createNodeArray(a.slice(0)):a;return SS(o,c_e(e),d_e(e)),o}function L_e(e){let n=0;const t=vv(e);function r(e,r){if(r||!function(e){return Ns(e,0)===e.length}(e)){n=t.getTextPos();let r=0;for(;As(e.charCodeAt(e.length-r-1));)r++;n-=r}}return{onBeforeEmitNode:e=>{e&&l_e(e,n)},onAfterEmitNode:e=>{e&&u_e(e,n)},onBeforeEmitNodeArray:e=>{e&&l_e(e,n)},onAfterEmitNodeArray:e=>{e&&u_e(e,n)},onBeforeEmitToken:e=>{e&&l_e(e,n)},onAfterEmitToken:e=>{e&&u_e(e,n)},write:function(e){t.write(e),r(e,!1)},writeComment:function(e){t.writeComment(e)},writeKeyword:function(e){t.writeKeyword(e),r(e,!1)},writeOperator:function(e){t.writeOperator(e),r(e,!1)},writePunctuation:function(e){t.writePunctuation(e),r(e,!1)},writeTrailingSemicolon:function(e){t.writeTrailingSemicolon(e),r(e,!1)},writeParameter:function(e){t.writeParameter(e),r(e,!1)},writeProperty:function(e){t.writeProperty(e),r(e,!1)},writeSpace:function(e){t.writeSpace(e),r(e,!1)},writeStringLiteral:function(e){t.writeStringLiteral(e),r(e,!1)},writeSymbol:function(e,n){t.writeSymbol(e,n),r(e,!1)},writeLine:function(e){t.writeLine(e)},increaseIndent:function(){t.increaseIndent()},decreaseIndent:function(){t.decreaseIndent()},getText:function(){return t.getText()},rawWrite:function(e){t.rawWrite(e),r(e,!1)},writeLiteral:function(e){t.writeLiteral(e),r(e,!0)},getTextPos:function(){return t.getTextPos()},getLine:function(){return t.getLine()},getColumn:function(){return t.getColumn()},getIndent:function(){return t.getIndent()},isAtStartOfLine:function(){return t.isAtStartOfLine()},hasTrailingComment:()=>t.hasTrailingComment(),hasTrailingWhitespace:()=>t.hasTrailingWhitespace(),clear:function(){t.clear(),n=0}}}function C_e(e,n){return!KX(e,n)&&!DX(e,n)&&!PX(e,n)&&!FX(e,n)}function k_e(e,n,t,r={leadingTriviaOption:1}){const i=f_e(n,t,r),a=h_e(n,t,r);e.deleteRange(n,{pos:i,end:a})}function I_e(e,n,t,r){const i=Nt.checkDefined(Mfe.SmartIndenter.getContainingList(r,t)),a=lf(i,r);Nt.assert(-1!==a),1!==i.length?(Nt.assert(!n.has(r),"Deleting a node twice"),n.add(r),e.deleteRange(t,{pos:v_e(t,r),end:a===i.length-1?h_e(t,r,{}):b_e(t,r,i[a-1],i[a+1])})):k_e(e,t,r)}var w_e=E({"src/services/textChanges.ts"(){Bfe(),e_e=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(e_e||{}),n_e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(n_e||{}),t_e={leadingTriviaOption:0,trailingTriviaOption:0},r_e=class{constructor(e,n){this.newLineCharacter=e,this.formatContext=n,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(e){return new r_e(m$(e.host,e.formatContext.options),e.formatContext)}static with(e,n){const t=r_e.fromContext(e);return n(t),t.getChanges()}pushRaw(e,n){Nt.assertEqual(e.fileName,n.fileName);for(const t of n.textChanges)this.changes.push({kind:3,sourceFile:e,text:t.newText,range:uY(t.span)})}deleteRange(e,n){this.changes.push({kind:0,sourceFile:e,range:n})}delete(e,n){this.deletedNodes.push({sourceFile:e,node:n})}deleteNode(e,n,t={leadingTriviaOption:1}){this.deleteRange(e,p_e(e,n,n,t))}deleteNodes(e,n,t={leadingTriviaOption:1},r){for(const i of n){const n=f_e(e,i,t,r),a=h_e(e,i,t);this.deleteRange(e,{pos:n,end:a}),r=!!m_e(e,i,t)}}deleteModifier(e,n){this.deleteRange(e,{pos:n.getStart(e),end:Ns(e.text,n.end,!0)})}deleteNodeRange(e,n,t,r={leadingTriviaOption:1}){const i=f_e(e,n,r),a=h_e(e,t,r);this.deleteRange(e,{pos:i,end:a})}deleteNodeRangeExcludingEnd(e,n,t,r={leadingTriviaOption:1}){const i=f_e(e,n,r),a=void 0===t?e.text.length:f_e(e,t,r);this.deleteRange(e,{pos:i,end:a})}replaceRange(e,n,t,r={}){this.changes.push({kind:1,sourceFile:e,range:n,options:r,node:t})}replaceNode(e,n,t,r=t_e){this.replaceRange(e,p_e(e,n,n,r),t,r)}replaceNodeRange(e,n,t,r,i=t_e){this.replaceRange(e,p_e(e,n,t,i),r,i)}replaceRangeWithNodes(e,n,t,r={}){this.changes.push({kind:2,sourceFile:e,range:n,options:r,nodes:t})}replaceNodeWithNodes(e,n,t,r=t_e){this.replaceRangeWithNodes(e,p_e(e,n,n,r),t,r)}replaceNodeWithText(e,n,t){this.replaceRangeWithText(e,p_e(e,n,n,t_e),t)}replaceNodeRangeWithNodes(e,n,t,r,i=t_e){this.replaceRangeWithNodes(e,p_e(e,n,t,i),r,i)}nodeHasTrailingComment(e,n,t=t_e){return!!m_e(e,n,t)}nextCommaToken(e,n){const t=kX(n,n.parent,e);return t&&27===t.kind?t:void 0}replacePropertyAssignment(e,n,t){const r=this.nextCommaToken(e,n)?"":","+this.newLineCharacter;this.replaceNode(e,n,t,{suffix:r})}insertNodeAt(e,n,t,r={}){this.replaceRange(e,pE(n),t,r)}insertNodesAt(e,n,t,r={}){this.replaceRangeWithNodes(e,pE(n),t,r)}insertNodeAtTopOfFile(e,n,t){this.insertAtTopOfFile(e,n,t)}insertNodesAtTopOfFile(e,n,t){this.insertAtTopOfFile(e,n,t)}insertAtTopOfFile(e,n,t){const r=function(e){let n;for(const l of e.statements){if(!hm(l))break;n=l}let t=0;const r=e.text;if(n)return t=n.end,c(),t;const i=Ws(r);void 0!==i&&(t=i.length,c());const a=Hs(r,t);if(!a)return t;let o,s;for(const l of a){if(3===l.kind){if(Zp(r,l.pos)){o={range:l,pinnedOrTripleSlash:!0};continue}}else if(Qp(r,l.pos,l.end)){o={range:l,pinnedOrTripleSlash:!0};continue}if(o){if(o.pinnedOrTripleSlash)break;if(e.getLineAndCharacterOfPosition(l.pos).line>=e.getLineAndCharacterOfPosition(o.range.end).line+2)break}if(e.statements.length&&(void 0===s&&(s=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line),s<e.getLineAndCharacterOfPosition(l.end).line+2))break;o={range:l,pinnedOrTripleSlash:!1}}return o&&(t=o.range.end,c()),t;function c(){if(t<r.length){const e=r.charCodeAt(t);Cs(e)&&(t++,t<r.length&&13===e&&10===r.charCodeAt(t)&&t++)}}}(e),i={prefix:0===r?void 0:this.newLineCharacter,suffix:(Cs(e.text.charCodeAt(r))?"":this.newLineCharacter)+(t?this.newLineCharacter:"")};gn(n)?this.insertNodesAt(e,r,n,i):this.insertNodeAt(e,r,n,i)}insertFirstParameter(e,n,t){const r=De(n);r?this.insertNodeBefore(e,r,t):this.insertNodeAt(e,n.pos,t)}insertNodeBefore(e,n,t,r=!1,i={}){this.insertNodeAt(e,f_e(e,n,i),t,this.getOptionsForInsertNodeBefore(n,t,r))}insertModifierAt(e,n,t,r={}){this.insertNodeAt(e,n,gA.createToken(t),r)}insertModifierBefore(e,n,t){return this.insertModifierAt(e,t.getStart(e),n,{suffix:" "})}insertCommentBeforeLine(e,n,t,r){const i=Fp(n,e),a=C$(e.text,i),o=C_e(e,a),s=xX(e,o?a:t),c=e.text.slice(i,a),l=`${o?"":this.newLineCharacter}//${r}${this.newLineCharacter}${c}`;this.insertText(e,s.getStart(e),l)}insertJsdocCommentBefore(e,n,t){const r=n.getStart(e);if(n.jsDoc)for(const o of n.jsDoc)this.deleteRange(e,{pos:XJ(o.getStart(e),e),end:h_e(e,o,{})});const i=k$(e.text,r-1),a=e.text.slice(i,r);this.insertNodeAt(e,r,t,{suffix:this.newLineCharacter+a})}createJSDocText(e,n){const t=X(n.jsDoc,(e=>vn(e.comment)?gA.createJSDocText(e.comment):e.comment)),r=Be(n.jsDoc);return r&&kE(r.pos,r.end,e)&&0===S(t)?void 0:gA.createNodeArray(R(t,gA.createJSDocText("\n")))}replaceJSDocComment(e,n,t){this.insertJsdocCommentBefore(e,function(e){if(216!==e.kind)return e;const n=169===e.parent.kind?e.parent:e.parent.parent;return n.jsDoc=e.jsDoc,n}(n),gA.createJSDocComment(this.createJSDocText(e,n),gA.createNodeArray(t)))}addJSDocTags(e,n,t){const r=Y(n.jsDoc,(e=>e.tags)),i=t.filter((e=>!r.some(((n,t)=>{const i=function(e,n){if(e.kind===n.kind)switch(e.kind){case 344:{const t=e,r=n;return IC(t.name)&&IC(r.name)&&t.name.escapedText===r.name.escapedText?gA.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,t.comment):void 0}case 345:return gA.createJSDocReturnTag(void 0,n.typeExpression,e.comment);case 347:return gA.createJSDocTypeTag(void 0,n.typeExpression,e.comment)}}(n,e);return i&&(r[t]=i),!!i}))));this.replaceJSDocComment(e,n,[...r,...i])}filterJSDocTags(e,n,t){this.replaceJSDocComment(e,n,j(Y(n.jsDoc,(e=>e.tags)),t))}replaceRangeWithText(e,n,t){this.changes.push({kind:3,sourceFile:e,range:n,text:t})}insertText(e,n,t){this.replaceRangeWithText(e,pE(n),t)}tryInsertTypeAnnotation(e,n,t){var r;let i;if(Id(n)){if(i=dX(n,21,e),!i){if(!Hk(n))return!1;i=Me(n.parameters)}}else i=null!=(r=257===n.kind?n.exclamationToken:n.questionToken)?r:n.name;return this.insertNodeAt(e,i.end,t,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,n,t){const r=dX(n,20,e).getStart(e)+1,i=n.parameters.length?", ":"";this.insertNodeAt(e,r,t,{prefix:"this: ",suffix:i})}insertTypeParameters(e,n,t){const r=(dX(n,20,e)||Me(n.parameters)).getStart(e);this.insertNodesAt(e,r,t,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,n,t){return Bu(e)||Pd(e)?{suffix:t?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:NI(e)?{suffix:", "}:qC(e)?qC(n)?{suffix:", "}:{}:_C(e)&&KI(e.parent)||$I(e)?{suffix:", "}:QI(e)?{suffix:","+(t?this.newLineCharacter:" ")}:Nt.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,n,t){const r=De(n.body.statements);r&&n.body.multiLine?this.insertNodeBefore(e,r,t):this.replaceConstructorBody(e,n,[t,...n.body.statements])}insertNodeAtConstructorStartAfterSuperCall(e,n,t){const r=D(n.body.statements,(e=>hI(e)&&_m(e.expression)));r&&n.body.multiLine?this.insertNodeAfter(e,r,t):this.replaceConstructorBody(e,n,[...n.body.statements,t])}insertNodeAtConstructorEnd(e,n,t){const r=Fe(n.body.statements);r&&n.body.multiLine?this.insertNodeAfter(e,r,t):this.replaceConstructorBody(e,n,[...n.body.statements,t])}replaceConstructorBody(e,n,t){this.replaceNode(e,n.body,gA.createBlock(t,!0))}insertNodeAtEndOfScope(e,n,t){const r=f_e(e,n.getLastToken(),{});this.insertNodeAt(e,r,t,{prefix:Cs(e.text.charCodeAt(n.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,n,t){this.insertNodeAtStartWorker(e,n,t)}insertNodeAtObjectStart(e,n,t){this.insertNodeAtStartWorker(e,n,t)}insertNodeAtStartWorker(e,n,t){var r;const i=null!=(r=this.guessIndentationFromExistingMembers(e,n))?r:this.computeIndentationForNewMember(e,n);this.insertNodeAt(e,E_e(n).pos,t,this.getInsertNodeAtStartInsertOptions(e,n,i))}guessIndentationFromExistingMembers(e,n){let t,r=n;for(const i of E_e(n)){if(EE(r,i,e))return;const n=i.getStart(e),a=Mfe.SmartIndenter.findFirstNonWhitespaceColumn(XJ(n,e),n,e,this.formatContext.options);if(void 0===t)t=a;else if(a!==t)return;r=i}return t}computeIndentationForNewMember(e,n){var t;const r=n.getStart(e);return Mfe.SmartIndenter.findFirstNonWhitespaceColumn(XJ(r,e),r,e,this.formatContext.options)+(null!=(t=this.formatContext.options.indentSize)?t:4)}getInsertNodeAtStartInsertOptions(e,n,t){const r=0===E_e(n).length,i=nT(this.classesWithNodesInsertedAtStart,ZG(n),{node:n,sourceFile:e}),a=Ok(n)&&(!sm(e)||!r);return{indentation:t,prefix:(Ok(n)&&sm(e)&&r&&!i?",":"")+this.newLineCharacter,suffix:a?",":PI(n)&&r?";":""}}insertNodeAfterComma(e,n,t){const r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,n)||n,t);this.insertNodeAt(e,r,t,this.getInsertNodeAfterOptions(e,n))}insertNodeAfter(e,n,t){const r=this.insertNodeAfterWorker(e,n,t);this.insertNodeAt(e,r,t,this.getInsertNodeAfterOptions(e,n))}insertNodeAtEndOfList(e,n,t){this.insertNodeAt(e,n.end,t,{prefix:", "})}insertNodesAfter(e,n,t){const r=this.insertNodeAfterWorker(e,n,Me(t));this.insertNodesAt(e,r,t,this.getInsertNodeAfterOptions(e,n))}insertNodeAfterWorker(e,n,t){var r,i;i=t,((XC(r=n)||YC(r))&&Kd(i)&&164===i.name.kind||Gu(r)&&Gu(i))&&59!==e.text.charCodeAt(n.end-1)&&this.replaceRange(e,pE(n.end),gA.createToken(26));return h_e(e,n,{})}getInsertNodeAfterOptions(e,n){const t=this.getInsertNodeAfterOptionsWorker(n);return{...t,prefix:n.end===e.end&&Bu(n)?t.prefix?`\n${t.prefix}`:"\n":t.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 260:case 264:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 257:case 10:case 79:return{prefix:", "};case 299:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 166:return{};default:return Nt.assert(Bu(e)||Kd(e)),{suffix:this.newLineCharacter}}}insertName(e,n,t){if(Nt.assert(!n.name),216===n.kind){const r=dX(n,38,e),i=dX(n,20,e);i?(this.insertNodesAt(e,i.getStart(e),[gA.createToken(98),gA.createIdentifier(t)],{joiner:" "}),k_e(this,e,r)):(this.insertText(e,Me(n.parameters).getStart(e),`function ${t}(`),this.replaceRange(e,r,gA.createToken(21))),238!==n.body.kind&&(this.insertNodesAt(e,n.body.getStart(e),[gA.createToken(18),gA.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,n.body.end,[gA.createToken(26),gA.createToken(19)],{joiner:" "}))}else{const r=dX(n,215===n.kind?98:84,e).end;this.insertNodeAt(e,r,gA.createIdentifier(t),{prefix:" "})}}insertExportModifier(e,n){this.insertText(e,n.getStart(e),"export ")}insertImportSpecifierAtIndex(e,n,t,r){const i=t.elements[r-1];i?this.insertNodeInListAfter(e,i,n):this.insertNodeBefore(e,t.elements[0],n,!kE(t.elements[0].getStart(),t.parent.parent.getStart(),e))}insertNodeInListAfter(e,n,t,r=Mfe.SmartIndenter.getContainingList(n,e)){if(!r)return void Nt.fail("node is not a list element");const i=lf(r,n);if(i<0)return;const a=n.getEnd();if(i!==r.length-1){const a=SX(e,n.end);if(a&&g_e(n,a)){const n=r[i+1],o=__e(e.text,n.getFullStart()),s=`${ms(a.kind)}${e.text.substring(a.end,o)}`;this.insertNodesAt(e,o,[t],{suffix:s})}}else{const o=n.getStart(e),s=XJ(o,e);let c,l=!1;if(1===r.length)c=27;else{const t=IX(n.pos,e);c=g_e(n,t)?t.kind:27;l=XJ(r[i-1].getStart(e),e)!==s}if(function(e,n){let t=n;for(;t<e.length;){const n=e.charCodeAt(t);if(!Ls(n))return 47===n;t++}return!1}(e.text,n.end)&&(l=!0),l){this.replaceRange(e,pE(a),gA.createToken(c));const n=Mfe.SmartIndenter.findFirstNonWhitespaceColumn(s,o,e,this.formatContext.options);let r=Ns(e.text,a,!0,!1);for(;r!==a&&Cs(e.text.charCodeAt(r-1));)r--;this.replaceRange(e,pE(r),t,{indentation:n,prefix:this.newLineCharacter})}else this.replaceRange(e,pE(a),t,{prefix:`${ms(c)} `})}}parenthesizeExpression(e,n){this.replaceRange(e,dS(n),gA.createParenthesizedExpression(n))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach((({node:e,sourceFile:n})=>{const[t,r]=function(e,n){const t=dX(e,18,n),r=dX(e,19,n);return[null==t?void 0:t.end,null==r?void 0:r.end]}(e,n);if(void 0!==t&&void 0!==r){const i=0===E_e(e).length,a=kE(t,r,n);i&&a&&t!==r-1&&this.deleteRange(n,pE(t,r-1)),a&&this.insertText(n,r-1,this.newLineCharacter)}}))}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:n,node:t}of this.deletedNodes)this.deletedNodes.some((e=>e.sourceFile===n&&$J(e.node,t)))||(gn(t)?this.deleteRange(n,uS(n,t)):o_e.deleteDeclaration(this,e,n,t));e.forEach((n=>{const t=n.getSourceFile(),r=Mfe.SmartIndenter.getContainingList(n,t);if(n!==Ge(r))return;const i=P(r,(n=>!e.has(n)),r.length-2);-1!==i&&this.deleteRange(t,{pos:r[i].end,end:v_e(t,r[i+1])})}))}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const n=i_e.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);for(const{oldFile:t,fileName:r,statements:i}of this.newFiles)n.push(i_e.newFileChanges(t,r,i,this.newLineCharacter,this.formatContext));return n}createNewFile(e,n,t){this.newFiles.push({oldFile:e,fileName:n,statements:t})}},(e=>{function n(e,n,r,i,a){const o=r.map((n=>4===n?"":t(n,e,i).text)).join(i),s=RD("any file name",o,99,!0,n);return x_e(o,Mfe.formatDocument(s,a))+i}function t(e,n,t){const r=L_e(t);return Cj({newLine:GQ(t),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,n,r),{text:r.getText(),node:S_e(e)}}e.getTextChangesFromChanges=function(e,n,r,i){return ee(an(e,(e=>e.sourceFile.path)),(e=>{const a=e[0].sourceFile,o=Re(e,((e,n)=>e.range.pos-n.range.pos||e.range.end-n.range.end));for(let n=0;n<o.length-1;n++)Nt.assert(o[n].range.end<=o[n+1].range.pos,"Changes overlap",(()=>`${JSON.stringify(o[n].range)} and ${JSON.stringify(o[n+1].range)}`));const s=ee(o,(e=>{const o=dY(e.range),s=function(e,n,r,i,a){var o;if(0===e.kind)return"";if(3===e.kind)return e.text;const{options:s={},range:{pos:c}}=e,l=e=>function(e,n,r,{indentation:i,prefix:a,delta:o},s,c,l){const{node:d,text:u}=t(e,n,s);l&&l(d,u);const _=UQ(c,n),p=void 0!==i?i:Mfe.SmartIndenter.getIndentation(r,n,_,a===s||XJ(r,n)===r);void 0===o&&(o=Mfe.SmartIndenter.shouldIndentChildNode(_,e)&&_.indentSize||0);const f={text:u,getLineAndCharacterOfPosition(e){return Ss(this,e)}},m=Mfe.formatNodeGivenIndentation(d,f,n.languageVariant,p,o,{...c,options:_});return x_e(u,m)}(e,n,c,s,r,i,a),d=2===e.kind?e.nodes.map((e=>nt(l(e),r))).join((null==(o=e.options)?void 0:o.joiner)||r):l(e.node),u=void 0!==s.indentation||XJ(c,n)===c?d:d.replace(/^\s+/,"");return(s.prefix||"")+u+(!s.suffix||et(u,s.suffix)?"":s.suffix)}(e,a,n,r,i);if(o.length!==s.length||!NQ(a.text,s,o.start))return pY(o,s)}));return s.length>0?{fileName:a.fileName,textChanges:s}:void 0}))},e.newFileChanges=function(e,t,r,i,a){const o=n(e,Fx(t),r,i,a);return{fileName:t,textChanges:[pY(yc(0,0),o)],isNewFile:!0}},e.newFileChangesWorker=n,e.getNonformattedText=t})(i_e||(i_e={})),a_e={...UV,factory:EA(1|UV.factory.flags,UV.factory.baseFactory)},(e=>{function n(e,n,t){if(t.parent.name){const r=Nt.checkDefined(SX(n,t.pos-1));e.deleteRange(n,{pos:r.getStart(n),end:t.end})}else{k_e(e,n,vy(t,269))}}e.deleteDeclaration=function(e,t,r,i){switch(i.kind){case 166:{const n=i.parent;Hk(n)&&1===n.parameters.length&&!dX(n,20,r)?e.replaceNodeWithText(r,i,"()"):I_e(e,t,r,i);break}case 269:case 268:k_e(e,r,i,{leadingTriviaOption:r.imports.length&&i===Me(r.imports).parent||i===D(r.statements,Of)?0:Zu(i)?2:3});break;case 205:const a=i.parent;204===a.kind&&i!==Ge(a.elements)?k_e(e,r,i):I_e(e,t,r,i);break;case 257:!function(e,n,t,r){const{parent:i}=r;if(295===i.kind)return void e.deleteNodeRange(t,dX(i,20,t),dX(i,21,t));if(1!==i.declarations.length)return void I_e(e,n,t,r);const a=i.parent;switch(a.kind){case 247:case 246:e.replaceNode(t,r,gA.createObjectLiteralExpression());break;case 245:k_e(e,t,i);break;case 240:k_e(e,t,a,{leadingTriviaOption:Zu(a)?2:3});break;default:Nt.assertNever(a)}}(e,t,r,i);break;case 165:I_e(e,t,r,i);break;case 273:const o=i.parent;1===o.elements.length?n(e,r,o):I_e(e,t,r,i);break;case 271:n(e,r,i);break;case 26:k_e(e,r,i,{trailingTriviaOption:0});break;case 98:k_e(e,r,i,{leadingTriviaOption:0});break;case 260:case 259:k_e(e,r,i,{leadingTriviaOption:Zu(i)?2:3});break;default:i.parent?WI(i.parent)&&i.parent.name===i?function(e,n,t){if(t.namedBindings){const r=t.name.getStart(n),i=SX(n,t.name.end);if(i&&27===i.kind){const t=Ns(n.text,i.end,!1,!0);e.deleteRange(n,{pos:r,end:t})}else k_e(e,n,t.name)}else k_e(e,n,t.parent)}(e,r,i.parent):Fk(i.parent)&&G(i.parent.arguments,i)?I_e(e,t,r,i):k_e(e,r,i):k_e(e,r,i)}}})(o_e||(o_e={}))}}),R_e={};T(R_e,{ChangeTracker:()=>r_e,LeadingTriviaOption:()=>e_e,TrailingTriviaOption:()=>n_e,applyChanges:()=>x_e,assignPositionsToNode:()=>S_e,createWriter:()=>L_e,deleteNode:()=>k_e,getNewFileText:()=>T_e,isThisTypeAnnotatable:()=>y_e,isValidLocationToAddComment:()=>C_e});var N_e,D_e,O_e,M_e,P_e=E({"src/services/_namespaces/ts.textChanges.ts"(){w_e()}}),F_e=E({"src/services/formatting/formattingContext.ts"(){Bfe(),N_e=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(N_e||{}),D_e=class{constructor(e,n,t){this.sourceFile=e,this.formattingRequestKind=n,this.options=t}updateContext(e,n,t,r,i){this.currentTokenSpan=Nt.checkDefined(e),this.currentTokenParent=Nt.checkDefined(n),this.nextTokenSpan=Nt.checkDefined(t),this.nextTokenParent=Nt.checkDefined(r),this.contextNode=Nt.checkDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(void 0===this.tokensAreOnSameLine){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,n=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===n}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line}BlockIsOnOneLine(e){const n=dX(e,18,this.sourceFile),t=dX(e,19,this.sourceFile);if(n&&t){return this.sourceFile.getLineAndCharacterOfPosition(n.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(t.getStart(this.sourceFile)).line}return!1}}}});function G_e(e,n,t,r,i){const a=1===n?M_e:O_e;a.setText(e),a.setTextPos(t);let o,s,c,l,d,u=!0;const _=i({advance:function(){d=void 0;a.getStartPos()!==t?u=!!s&&4===Ge(s).kind:a.scan();o=void 0,s=void 0;let e=a.getStartPos();for(;e<r;){const n=a.getToken();if(!Cy(n))break;a.scan();const t={pos:e,end:a.getStartPos(),kind:n};e=a.getStartPos(),o=Te(o,t)}c=a.getStartPos()},readTokenInfo:function(e){Nt.assert(p());const n=function(e){switch(e.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}(e)?1:(i=e,13===i.kind?2:function(e){return 16===e.kind||17===e.kind}(e)?3:function(e){if(e.parent)switch(e.parent.kind){case 288:case 283:case 284:case 282:return by(e.kind)||79===e.kind}return!1}(e)?4:(t=e,pC(t)||lw(t)&&11===(null==d?void 0:d.token.kind)?5:function(e){return e.parent&&hw(e.parent)&&e.parent.initializer===e}(e)?6:0));var t;var i;if(d&&n===l)return m(d,e);a.getStartPos()!==c&&(Nt.assert(void 0!==d),a.setTextPos(c),a.scan());let u=function(e,n){const t=a.getToken();switch(l=0,n){case 1:if(31===t){l=1;const n=a.reScanGreaterToken();return Nt.assert(e.kind===n),n}break;case 2:if(43===(r=t)||68===r){l=2;const n=a.reScanSlashToken();return Nt.assert(e.kind===n),n}break;case 3:if(19===t)return l=3,a.reScanTemplateToken(!1);break;case 4:return l=4,a.scanJsxIdentifier();case 5:return l=5,a.reScanJsxToken(!1);case 6:return l=6,a.reScanJsxAttributeValue();case 0:break;default:Nt.assertNever(n)}var r;return t}(e,n);const _=hfe(a.getStartPos(),a.getTextPos(),u);s&&(s=void 0);for(;a.getStartPos()<r&&(u=a.scan(),Cy(u));){const e=hfe(a.getStartPos(),a.getTextPos(),u);if(s||(s=[]),s.push(e),4===u){a.scan();break}}return d={leadingTrivia:o,trailingTrivia:s,token:_},m(d,e)},readEOFTokenRange:function(){return Nt.assert(f()),hfe(a.getStartPos(),a.getTextPos(),1)},isOnToken:p,isOnEOF:f,getCurrentLeadingTrivia:()=>o,lastTrailingTriviaWasNewLine:()=>u,skipToEndOf:function(e){a.setTextPos(e.end),c=a.getStartPos(),l=void 0,d=void 0,u=!1,o=void 0,s=void 0},skipToStartOf:function(e){a.setTextPos(e.pos),c=a.getStartPos(),l=void 0,d=void 0,u=!1,o=void 0,s=void 0},getStartPos:()=>{var e;return null!=(e=null==d?void 0:d.token.pos)?e:a.getTokenPos()}});return d=void 0,a.setText(void 0),_;function p(){const e=d?d.token.kind:a.getToken();return 1!==e&&!Cy(e)}function f(){return 1===(d?d.token.kind:a.getToken())}function m(e,n){return id(n)&&e.token.kind!==n.kind&&(e.token.kind=n.kind),e}}var B_e,U_e,V_e,j_e=E({"src/services/formatting/formattingScanner.ts"(){Bfe(),Gfe(),O_e=Xs(99,!1,0),M_e=Xs(99,!1,1)}}),H_e=E({"src/services/formatting/rule.ts"(){Bfe(),B_e=i,U_e=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(U_e||{}),V_e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(V_e||{})}});function K_e(){const e=[];for(let _=0;_<=162;_++)1!==_&&e.push(_);function n(...n){return{tokens:e.filter((e=>!n.some((n=>n===e)))),isSpecific:!1}}const t={tokens:e,isSpecific:!1},r=z_e([...e,3]),i=z_e([...e,1]),a=J_e(81,162),o=J_e(29,78),s=[101,102,162,128,140,150],c=[79,...uJ],l=r,d=z_e([79,3,84,93,100]),u=z_e([21,3,90,111,96,91]);return[...[W_e("IgnoreBeforeComment",t,[2,3],B_e,1),W_e("IgnoreAfterLineComment",2,t,B_e,1),W_e("NotSpaceBeforeColon",t,58,[Ipe,ipe,ape],16),W_e("SpaceAfterColon",58,t,[Ipe,ipe],4),W_e("NoSpaceBeforeQuestionMark",t,57,[Ipe,ipe,ape],16),W_e("SpaceAfterQuestionMarkInConditionalOperator",57,t,[Ipe,spe],4),W_e("NoSpaceAfterQuestionMark",57,t,[Ipe],16),W_e("NoSpaceBeforeDot",t,[24,28],[Ipe,efe],16),W_e("NoSpaceAfterDot",[24,28],t,[Ipe],16),W_e("NoSpaceBetweenImportParenInImportType",100,20,[Ipe,kpe],16),W_e("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,79,20,22,18,108,103],[Ipe,ipe],16),W_e("NoSpaceAfterUnaryPreincrementOperator",45,[79,20,108,103],[Ipe],16),W_e("NoSpaceAfterUnaryPredecrementOperator",46,[79,20,108,103],[Ipe],16),W_e("NoSpaceBeforeUnaryPostincrementOperator",[79,21,23,103],45,[Ipe,$pe],16),W_e("NoSpaceBeforeUnaryPostdecrementOperator",[79,21,23,103],46,[Ipe,$pe],16),W_e("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[Ipe,rpe],4),W_e("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[Ipe,rpe],4),W_e("SpaceAfterAddWhenFollowedByPreincrement",39,45,[Ipe,rpe],4),W_e("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[Ipe,rpe],4),W_e("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[Ipe,rpe],4),W_e("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[Ipe,rpe],4),W_e("NoSpaceAfterCloseBrace",19,[27,26],[Ipe],16),W_e("NewLineBeforeCloseBraceInBlockContext",r,19,[upe],8),W_e("SpaceAfterCloseBrace",19,n(21),[Ipe,bpe],4),W_e("SpaceBetweenCloseBraceAndElse",19,91,[Ipe],4),W_e("SpaceBetweenCloseBraceAndWhile",19,115,[Ipe],4),W_e("NoSpaceBetweenEmptyBraceBrackets",18,19,[Ipe,Tpe],16),W_e("SpaceAfterConditionalClosingParen",21,22,[Epe],4),W_e("NoSpaceBetweenFunctionKeywordAndStar",98,41,[gpe],16),W_e("SpaceAfterStarInGeneratorDeclaration",41,79,[gpe],4),W_e("SpaceAfterFunctionInFuncDecl",98,t,[mpe],4),W_e("NewLineAfterOpenBraceInBlockContext",18,t,[upe],8),W_e("SpaceAfterGetSetInMember",[137,151],79,[mpe],4),W_e("NoSpaceBetweenYieldKeywordAndStar",125,41,[Ipe,Xpe],16),W_e("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],t,[Ipe,Xpe],4),W_e("NoSpaceBetweenReturnAndSemicolon",105,26,[Ipe],16),W_e("SpaceAfterCertainKeywords",[113,109,103,89,105,112,133],t,[Ipe],4),W_e("SpaceAfterLetConstInVariableDeclaration",[119,85],t,[Ipe,Bpe],4),W_e("NoSpaceBeforeOpenParenInFuncCall",t,20,[Ipe,xpe,Spe],16),W_e("SpaceBeforeBinaryKeywordOperator",t,s,[Ipe,rpe],4),W_e("SpaceAfterBinaryKeywordOperator",s,t,[Ipe,rpe],4),W_e("SpaceAfterVoidOperator",114,t,[Ipe,Jpe],4),W_e("SpaceBetweenAsyncAndOpenParen",132,20,[Cpe,Ipe],4),W_e("SpaceBetweenAsyncAndFunctionKeyword",132,[98,79],[Ipe],4),W_e("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[Ipe],16),W_e("SpaceBeforeJsxAttribute",t,79,[Dpe,Ipe],4),W_e("SpaceBeforeSlashInJsxOpeningElement",t,43,[Mpe,Ipe],4),W_e("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[Mpe,Ipe],16),W_e("NoSpaceBeforeEqualInJsxAttribute",t,63,[Ope,Ipe],16),W_e("NoSpaceAfterEqualInJsxAttribute",63,t,[Ope,Ipe],16),W_e("NoSpaceAfterModuleImport",[142,147],20,[Ipe],16),W_e("SpaceAfterCertainTypeScriptKeywords",[126,127,84,136,88,92,93,94,137,117,100,118,142,143,121,123,122,146,151,124,154,158,141,138],t,[Ipe],4),W_e("SpaceBeforeCertainTypeScriptKeywords",t,[94,117,158],[Ipe],4),W_e("SpaceAfterModuleName",10,18,[Vpe],4),W_e("SpaceBeforeArrow",t,38,[Ipe],4),W_e("SpaceAfterArrow",38,t,[Ipe],4),W_e("NoSpaceAfterEllipsis",25,79,[Ipe],16),W_e("NoSpaceAfterOptionalParameters",57,[21,27],[Ipe,ipe],16),W_e("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[Ipe,jpe],16),W_e("NoSpaceBeforeOpenAngularBracket",c,29,[Ipe,Wpe],16),W_e("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[Ipe,Wpe],16),W_e("NoSpaceAfterOpenAngularBracket",29,t,[Ipe,Wpe],16),W_e("NoSpaceBeforeCloseAngularBracket",t,31,[Ipe,Wpe],16),W_e("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[Ipe,Wpe,hpe,qpe],16),W_e("SpaceBeforeAt",[21,79],59,[Ipe],4),W_e("NoSpaceAfterAt",59,t,[Ipe],16),W_e("SpaceAfterDecorator",t,[126,79,93,88,84,124,123,121,122,137,151,22,41],[Fpe],4),W_e("NoSpaceBeforeNonNullAssertionOperator",t,53,[Ipe,Ype],16),W_e("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[Ipe,Hpe],16),W_e("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[Ipe],4)],...[W_e("SpaceAfterConstructor",135,20,[Y_e("insertSpaceAfterConstructor"),Ipe],4),W_e("NoSpaceAfterConstructor",135,20,[Q_e("insertSpaceAfterConstructor"),Ipe],16),W_e("SpaceAfterComma",27,t,[Y_e("insertSpaceAfterCommaDelimiter"),Ipe,Rpe,Ape,Lpe],4),W_e("NoSpaceAfterComma",27,t,[Q_e("insertSpaceAfterCommaDelimiter"),Ipe,Rpe],16),W_e("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[Y_e("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),mpe],4),W_e("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[Q_e("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),mpe],16),W_e("SpaceAfterKeywordInControl",a,20,[Y_e("insertSpaceAfterKeywordsInControlFlowStatements"),Epe],4),W_e("NoSpaceAfterKeywordInControl",a,20,[Q_e("insertSpaceAfterKeywordsInControlFlowStatements"),Epe],16),W_e("SpaceAfterOpenParen",20,t,[Y_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ipe],4),W_e("SpaceBeforeCloseParen",t,21,[Y_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ipe],4),W_e("SpaceBetweenOpenParens",20,20,[Y_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ipe],4),W_e("NoSpaceBetweenParens",20,21,[Ipe],16),W_e("NoSpaceAfterOpenParen",20,t,[Q_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ipe],16),W_e("NoSpaceBeforeCloseParen",t,21,[Q_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ipe],16),W_e("SpaceAfterOpenBracket",22,t,[Y_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ipe],4),W_e("SpaceBeforeCloseBracket",t,23,[Y_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ipe],4),W_e("NoSpaceBetweenBrackets",22,23,[Ipe],16),W_e("NoSpaceAfterOpenBracket",22,t,[Q_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ipe],16),W_e("NoSpaceBeforeCloseBracket",t,23,[Q_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ipe],16),W_e("SpaceAfterOpenBrace",18,t,[epe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),lpe],4),W_e("SpaceBeforeCloseBrace",t,19,[epe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),lpe],4),W_e("NoSpaceBetweenEmptyBraceBrackets",18,19,[Ipe,Tpe],16),W_e("NoSpaceAfterOpenBrace",18,t,[$_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ipe],16),W_e("NoSpaceBeforeCloseBrace",t,19,[$_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ipe],16),W_e("SpaceBetweenEmptyBraceBrackets",18,19,[Y_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),W_e("NoSpaceBetweenEmptyBraceBrackets",18,19,[$_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Ipe],16),W_e("SpaceAfterTemplateHeadAndMiddle",[15,16],t,[Y_e("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),wpe],4,1),W_e("SpaceBeforeTemplateMiddleAndTail",t,[16,17],[Y_e("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ipe],4),W_e("NoSpaceAfterTemplateHeadAndMiddle",[15,16],t,[Q_e("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),wpe],16,1),W_e("NoSpaceBeforeTemplateMiddleAndTail",t,[16,17],[Q_e("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ipe],16),W_e("SpaceAfterOpenBraceInJsxExpression",18,t,[Y_e("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ipe,Npe],4),W_e("SpaceBeforeCloseBraceInJsxExpression",t,19,[Y_e("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ipe,Npe],4),W_e("NoSpaceAfterOpenBraceInJsxExpression",18,t,[Q_e("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ipe,Npe],16),W_e("NoSpaceBeforeCloseBraceInJsxExpression",t,19,[Q_e("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ipe,Npe],16),W_e("SpaceAfterSemicolonInFor",26,t,[Y_e("insertSpaceAfterSemicolonInForStatements"),Ipe,npe],4),W_e("NoSpaceAfterSemicolonInFor",26,t,[Q_e("insertSpaceAfterSemicolonInForStatements"),Ipe,npe],16),W_e("SpaceBeforeBinaryOperator",t,o,[Y_e("insertSpaceBeforeAndAfterBinaryOperators"),Ipe,rpe],4),W_e("SpaceAfterBinaryOperator",o,t,[Y_e("insertSpaceBeforeAndAfterBinaryOperators"),Ipe,rpe],4),W_e("NoSpaceBeforeBinaryOperator",t,o,[Q_e("insertSpaceBeforeAndAfterBinaryOperators"),Ipe,rpe],16),W_e("NoSpaceAfterBinaryOperator",o,t,[Q_e("insertSpaceBeforeAndAfterBinaryOperators"),Ipe,rpe],16),W_e("SpaceBeforeOpenParenInFuncDecl",t,20,[Y_e("insertSpaceBeforeFunctionParenthesis"),Ipe,mpe],4),W_e("NoSpaceBeforeOpenParenInFuncDecl",t,20,[Q_e("insertSpaceBeforeFunctionParenthesis"),Ipe,mpe],16),W_e("NewLineBeforeOpenBraceInControl",u,18,[Y_e("placeOpenBraceOnNewLineForControlBlocks"),Epe,dpe],8,1),W_e("NewLineBeforeOpenBraceInFunction",l,18,[Y_e("placeOpenBraceOnNewLineForFunctions"),mpe,dpe],8,1),W_e("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",d,18,[Y_e("placeOpenBraceOnNewLineForFunctions"),ype,dpe],8,1),W_e("SpaceAfterTypeAssertion",31,t,[Y_e("insertSpaceAfterTypeAssertion"),Ipe,zpe],4),W_e("NoSpaceAfterTypeAssertion",31,t,[Q_e("insertSpaceAfterTypeAssertion"),Ipe,zpe],16),W_e("SpaceBeforeTypeAnnotation",t,[57,58],[Y_e("insertSpaceBeforeTypeAnnotation"),Ipe,ope],4),W_e("NoSpaceBeforeTypeAnnotation",t,[57,58],[Q_e("insertSpaceBeforeTypeAnnotation"),Ipe,ope],16),W_e("NoOptionalSemicolon",26,i,[X_e("semicolons","remove"),Qpe],32),W_e("OptionalSemicolon",t,i,[X_e("semicolons","insert"),Zpe],64)],...[W_e("NoSpaceBeforeSemicolon",t,26,[Ipe],16),W_e("SpaceBeforeOpenBraceInControl",u,18,[Z_e("placeOpenBraceOnNewLineForControlBlocks"),Epe,Upe,cpe],4,1),W_e("SpaceBeforeOpenBraceInFunction",l,18,[Z_e("placeOpenBraceOnNewLineForFunctions"),mpe,ppe,Upe,cpe],4,1),W_e("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",d,18,[Z_e("placeOpenBraceOnNewLineForFunctions"),ype,Upe,cpe],4,1),W_e("NoSpaceBeforeComma",t,27,[Ipe],16),W_e("NoSpaceBeforeOpenBracket",n(132,82),22,[Ipe],16),W_e("NoSpaceAfterCloseBracket",23,t,[Ipe,Ppe],16),W_e("SpaceAfterSemicolon",26,t,[Ipe],4),W_e("SpaceBetweenForAndAwaitKeyword",97,133,[Ipe],4),W_e("SpaceBetweenStatements",[21,90,91,82],t,[Ipe,Rpe,tpe],4),W_e("SpaceAfterTryCatchFinally",[111,83,96],18,[Ipe],4)]]}function W_e(e,n,t,r,i,a=0){return{leftTokenRange:q_e(n),rightTokenRange:q_e(t),rule:{debugName:e,context:r,action:i,flags:a}}}function z_e(e){return{tokens:e,isSpecific:!0}}function q_e(e){return"number"===typeof e?z_e([e]):gn(e)?z_e(e):e}function J_e(e,n,t=[]){const r=[];for(let i=e;i<=n;i++)G(t,i)||r.push(i);return z_e(r)}function X_e(e,n){return t=>t.options&&t.options[e]===n}function Y_e(e){return n=>n.options&&ze(n.options,e)&&!!n.options[e]}function $_e(e){return n=>n.options&&ze(n.options,e)&&!n.options[e]}function Q_e(e){return n=>!n.options||!ze(n.options,e)||!n.options[e]}function Z_e(e){return n=>!n.options||!ze(n.options,e)||!n.options[e]||n.TokensAreOnSameLine()}function epe(e){return n=>!n.options||!ze(n.options,e)||!!n.options[e]}function npe(e){return 245===e.contextNode.kind}function tpe(e){return!npe(e)}function rpe(e){switch(e.contextNode.kind){case 223:return 27!==e.contextNode.operatorToken.kind;case 224:case 191:case 231:case 278:case 273:case 179:case 189:case 190:case 235:return!0;case 205:case 262:case 268:case 274:case 257:case 166:case 302:case 169:case 168:return 63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 246:case 165:return 101===e.currentTokenSpan.kind||101===e.nextTokenSpan.kind||63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 247:return 162===e.currentTokenSpan.kind||162===e.nextTokenSpan.kind}return!1}function ipe(e){return!rpe(e)}function ape(e){return!ope(e)}function ope(e){const n=e.contextNode.kind;return 169===n||168===n||166===n||257===n||Od(n)}function spe(e){return 224===e.contextNode.kind||191===e.contextNode.kind}function cpe(e){return e.TokensAreOnSameLine()||ppe(e)}function lpe(e){return 203===e.contextNode.kind||197===e.contextNode.kind||function(e){return _pe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function dpe(e){return ppe(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function upe(e){return _pe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function _pe(e){return fpe(e.contextNode)}function ppe(e){return fpe(e.nextTokenParent)}function fpe(e){if(vpe(e))return!0;switch(e.kind){case 238:case 266:case 207:case 265:return!0}return!1}function mpe(e){switch(e.contextNode.kind){case 259:case 171:case 170:case 174:case 175:case 176:case 215:case 173:case 216:case 261:return!0}return!1}function hpe(e){return!mpe(e)}function gpe(e){return 259===e.contextNode.kind||215===e.contextNode.kind}function ype(e){return vpe(e.contextNode)}function vpe(e){switch(e.kind){case 260:case 228:case 261:case 263:case 184:case 264:case 275:case 276:case 269:case 272:return!0}return!1}function bpe(e){switch(e.currentTokenParent.kind){case 260:case 264:case 263:case 295:case 265:case 252:return!0;case 238:{const n=e.currentTokenParent.parent;if(!n||216!==n.kind&&215!==n.kind)return!0}}return!1}function Epe(e){switch(e.contextNode.kind){case 242:case 252:case 245:case 246:case 247:case 244:case 255:case 243:case 251:case 295:return!0;default:return!1}}function Tpe(e){return 207===e.contextNode.kind}function xpe(e){return function(e){return 210===e.contextNode.kind}(e)||function(e){return 211===e.contextNode.kind}(e)}function Spe(e){return 27!==e.currentTokenSpan.kind}function Ape(e){return 23!==e.nextTokenSpan.kind}function Lpe(e){return 21!==e.nextTokenSpan.kind}function Cpe(e){return 216===e.contextNode.kind}function kpe(e){return 202===e.contextNode.kind}function Ipe(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function wpe(e){return 11!==e.contextNode.kind}function Rpe(e){return 281!==e.contextNode.kind&&285!==e.contextNode.kind}function Npe(e){return 291===e.contextNode.kind||290===e.contextNode.kind}function Dpe(e){return 288===e.nextTokenParent.kind}function Ope(e){return 288===e.contextNode.kind}function Mpe(e){return 282===e.contextNode.kind}function Ppe(e){return!mpe(e)&&!ppe(e)}function Fpe(e){return e.TokensAreOnSameLine()&&Tb(e.contextNode)&&Gpe(e.currentTokenParent)&&!Gpe(e.nextTokenParent)}function Gpe(e){for(;e&&mu(e);)e=e.parent;return e&&167===e.kind}function Bpe(e){return 258===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Upe(e){return 2!==e.formattingRequestKind}function Vpe(e){return 264===e.contextNode.kind}function jpe(e){return 184===e.contextNode.kind}function Hpe(e){return 177===e.contextNode.kind}function Kpe(e,n){if(29!==e.kind&&31!==e.kind)return!1;switch(n.kind){case 180:case 213:case 262:case 260:case 228:case 261:case 259:case 215:case 216:case 171:case 170:case 176:case 177:case 210:case 211:case 230:return!0;default:return!1}}function Wpe(e){return Kpe(e.currentTokenSpan,e.currentTokenParent)||Kpe(e.nextTokenSpan,e.nextTokenParent)}function zpe(e){return 213===e.contextNode.kind}function qpe(e){return!zpe(e)}function Jpe(e){return 114===e.currentTokenSpan.kind&&219===e.currentTokenParent.kind}function Xpe(e){return 226===e.contextNode.kind&&void 0!==e.contextNode.expression}function Ype(e){return 232===e.contextNode.kind}function $pe(e){return!function(e){switch(e.contextNode.kind){case 242:case 245:case 246:case 247:case 243:case 244:return!0;default:return!1}}(e)}function Qpe(e){let n=e.nextTokenSpan.kind,t=e.nextTokenSpan.pos;if(Cy(n)){const r=e.nextTokenParent===e.currentTokenParent?kX(e.currentTokenParent,Mc(e.currentTokenParent,(e=>!e.parent)),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!r)return!0;n=r.kind,t=r.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(t).line?19===n||1===n:237!==n&&26!==n&&(261===e.contextNode.kind||262===e.contextNode.kind?!XC(e.currentTokenParent)||!!e.currentTokenParent.type||20!==n:YC(e.currentTokenParent)?!e.currentTokenParent.initializer:245!==e.currentTokenParent.kind&&239!==e.currentTokenParent.kind&&237!==e.currentTokenParent.kind&&22!==n&&20!==n&&39!==n&&40!==n&&43!==n&&13!==n&&27!==n&&225!==n&&15!==n&&14!==n&&24!==n)}function Zpe(e){return aQ(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function efe(e){return!Mk(e.contextNode)||!dC(e.contextNode.expression)||-1!==e.contextNode.expression.getText().indexOf(".")}var nfe,tfe,rfe,ife,afe,ofe=E({"src/services/formatting/rules.ts"(){Bfe(),Gfe()}});function sfe(e,n){return{options:e,getRules:cfe(),host:n}}function cfe(){return void 0===nfe&&(nfe=function(e){const n=function(e){const n=new Array(ife*ife),t=new Array(n.length);for(const r of e){const e=r.leftTokenRange.isSpecific&&r.rightTokenRange.isSpecific;for(const i of r.leftTokenRange.tokens)for(const a of r.rightTokenRange.tokens){const o=dfe(i,a);let s=n[o];void 0===s&&(s=n[o]=[]),ufe(s,r.rule,e,t,o)}}return n}(e);return e=>{const t=n[dfe(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(t){const n=[];let r=0;for(const i of t){const t=~lfe(r);i.action&t&&N(i.context,(n=>n(e)))&&(n.push(i),r|=i.action)}if(n.length)return n}}}(K_e())),nfe}function lfe(e){let n=0;return 1&e&&(n|=28),2&e&&(n|=96),28&e&&(n|=28),96&e&&(n|=96),n}function dfe(e,n){return Nt.assert(e<=162&&n<=162,"Must compute formatting context from tokens"),e*ife+n}function ufe(e,n,t,r,i){const a=3&n.action?t?0:afe.StopRulesAny:n.context!==B_e?t?afe.ContextRulesSpecific:afe.ContextRulesAny:t?afe.NoContextRulesSpecific:afe.NoContextRulesAny,o=r[i]||0;e.splice(function(e,n){let t=0;for(let r=0;r<=n;r+=tfe)t+=e&rfe,e>>=tfe;return t}(o,a),0,n),r[i]=function(e,n){const t=1+(e>>n&rfe);return Nt.assert((t&rfe)===t,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(rfe<<n)|t<<n}(o,a)}var _fe,pfe,ffe,mfe=E({"src/services/formatting/rulesMap.ts"(){var e;Bfe(),Gfe(),tfe=5,rfe=31,ife=163,(e=afe||{})[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=1*tfe]="StopRulesAny",e[e.ContextRulesSpecific=2*tfe]="ContextRulesSpecific",e[e.ContextRulesAny=3*tfe]="ContextRulesAny",e[e.NoContextRulesSpecific=4*tfe]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*tfe]="NoContextRulesAny",afe=e}});function hfe(e,n,t){const r={pos:e,end:n,kind:t};return Nt.isDebugging&&Object.defineProperty(r,"__debugKind",{get:()=>Nt.formatSyntaxKind(t)}),r}function gfe(e,n,t){const r=n.getLineAndCharacterOfPosition(e).line;if(0===r)return[];let i=Bp(r,n);for(;Ls(n.text.charCodeAt(i));)i--;Cs(n.text.charCodeAt(i))&&i--;return kfe({pos:Fp(r-1,n),end:i+1},n,t,2)}function yfe(e,n,t){return Cfe(Sfe(xfe(e,26,n)),n,t,3)}function vfe(e,n,t){const r=xfe(e,18,n);if(!r)return[];return kfe({pos:XJ(Sfe(r.parent).getStart(n),n),end:e},n,t,4)}function bfe(e,n,t){return Cfe(Sfe(xfe(e,19,n)),n,t,5)}function Efe(e,n){return kfe({pos:0,end:e.text.length},e,n,0)}function Tfe(e,n,t,r){return kfe({pos:XJ(e,t),end:n},t,r,1)}function xfe(e,n,t){const r=IX(e,t);return r&&r.kind===n&&e===r.getEnd()?r:void 0}function Sfe(e){let n=e;for(;n&&n.parent&&n.parent.end===e.end&&!Afe(n.parent,n);)n=n.parent;return n}function Afe(e,n){switch(e.kind){case 260:case 261:return YJ(e.members,n);case 264:const t=e.body;return!!t&&265===t.kind&&YJ(t.statements,n);case 308:case 238:case 265:return YJ(e.statements,n);case 295:return YJ(e.block.statements,n)}return!1}function Lfe(e,n,t,r,i,a){const o={pos:e.pos,end:e.end};return G_e(n.text,t,o.pos,o.end,(t=>Ife(o,e,r,i,t,a,1,(e=>!1),n)))}function Cfe(e,n,t,r){if(!e)return[];return kfe({pos:XJ(e.getStart(n),n),end:e.end},n,t,r)}function kfe(e,n,t,r){const i=function(e,n){return function t(r){const i=CD(r,(t=>eX(t.getStart(n),t.end,e)&&t));if(i){const e=t(i);if(e)return e}return r}(n)}(e,n);return G_e(n.text,n.languageVariant,function(e,n,t){const r=e.getStart(t);if(r===n.pos&&e.end===n.end)return r;const i=IX(n.pos,t);return i?i.end>=n.pos?e.pos:i.end:e.pos}(i,e,n),e.end,(a=>Ife(e,i,Nfe.getIndentationForNode(i,e,n,t.options),function(e,n,t){let r,i=-1;for(;e;){const a=t.getLineAndCharacterOfPosition(e.getStart(t)).line;if(-1!==i&&a!==i)break;if(Nfe.shouldIndentChildNode(n,e,r,t))return n.indentSize;i=a,r=e,e=e.parent}return 0}(i,t.options,n),a,t,r,function(e,n){if(!e.length)return i;const t=e.filter((e=>tX(n,e.start,e.start+e.length))).sort(((e,n)=>e.start-n.start));if(!t.length)return i;let r=0;return e=>{for(;;){if(r>=t.length)return!1;const n=t[r];if(e.end<=n.start)return!1;if(iX(e.pos,e.end,n.start,n.start+n.length))return!0;r++}};function i(){return!1}}(n.parseDiagnostics,e),n)))}function Ife(e,n,t,r,i,{options:a,getRules:o,host:s},c,l,d){var u;const _=new D_e(d,c,a);let p,f,m,h,g,y=-1;const v=[];if(i.advance(),i.isOnToken()){const o=d.getLineAndCharacterOfPosition(n.getStart(d)).line;let s=o;Tb(n)&&(s=d.getLineAndCharacterOfPosition(tf(n,d)).line),function n(t,r,o,s,c,u){if(!tX(e,t.getStart(d),t.getEnd()))return;const _=b(t,o,c,u);let m=r;CD(t,(e=>{h(e,-1,t,_,o,s,!1)}),(e=>{v(e,t,o,_)}));for(;i.isOnToken()&&i.getStartPos()<e.end;){const n=i.readTokenInfo(t);if(n.token.end>Math.min(t.end,e.end))break;S(n,t,_,t)}function h(r,o,s,c,l,u,_,p){if(Nt.assert(!$y(r)),Vp(r)||Hp(s,r))return o;const f=r.getStart(d),h=d.getLineAndCharacterOfPosition(f).line;let v=h;Tb(r)&&(v=d.getLineAndCharacterOfPosition(tf(r,d)).line);let b=-1;if(_&&YJ(e,s)&&(b=function(e,n,t,r,i){if(tX(r,e,n)||nX(r,e,n)){if(-1!==i)return i}else{const n=d.getLineAndCharacterOfPosition(e).line,r=XJ(e,d),i=Nfe.findFirstNonWhitespaceColumn(r,e,d,a);if(n!==t||e===i){const e=Nfe.getBaseIndentation(a);return e>i?e:i}}return-1}(f,r.end,l,e,o),-1!==b&&(o=b)),!tX(e,r.pos,r.end))return r.end<e.pos&&i.skipToEndOf(r),o;if(0===r.getFullWidth())return o;for(;i.isOnToken()&&i.getStartPos()<e.end;){const n=i.readTokenInfo(t);if(n.token.end>e.end)return o;if(n.token.end>f){n.token.pos>f&&i.skipToStartOf(r);break}S(n,t,c,t)}if(!i.isOnToken()||i.getStartPos()>=e.end)return o;if(id(r)){const e=i.readTokenInfo(r);if(11!==r.kind)return Nt.assert(e.token.end===r.end,"Token end is child end"),S(e,t,c,r),o}const E=167===r.kind?h:u,T=function(e,n,t,r,i,o){const s=Nfe.shouldIndentChildNode(a,e)?a.indentSize:0;return o===n?{indentation:n===g?y:i.getIndentation(),delta:Math.min(a.indentSize,i.getDelta(e)+s)}:-1===t?20===e.kind&&n===g?{indentation:y,delta:i.getDelta(e)}:Nfe.childStartsOnTheSameLineWithElseInIfStatement(r,e,n,d)||Nfe.childIsUnindentedBranchOfConditionalExpression(r,e,n,d)||Nfe.argumentStartsOnSameLineAsPreviousArgument(r,e,n,d)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:t,delta:s}}(r,h,b,t,c,E);return n(r,m,h,v,T.indentation,T.delta),m=t,p&&206===s.kind&&-1===o&&(o=T.indentation),o}function v(n,r,o,s){Nt.assert(ad(n)),Nt.assert(!$y(n));const c=function(e,n){switch(e.kind){case 173:case 259:case 215:case 171:case 170:case 216:case 176:case 177:case 181:case 182:case 174:case 175:if(e.typeParameters===n)return 29;if(e.parameters===n)return 20;break;case 210:case 211:if(e.typeArguments===n)return 29;if(e.arguments===n)return 20;break;case 260:case 228:case 261:case 262:if(e.typeParameters===n)return 29;break;case 180:case 212:case 183:case 230:case 202:if(e.typeArguments===n)return 29;break;case 184:return 18}return 0}(r,n);let l=s,u=o;if(!tX(e,n.pos,n.end))return void(n.end<e.pos&&i.skipToEndOf(n));if(0!==c)for(;i.isOnToken()&&i.getStartPos()<e.end;){const e=i.readTokenInfo(r);if(e.token.end>n.pos)break;if(e.token.kind===c){let n;if(u=d.getLineAndCharacterOfPosition(e.token.pos).line,S(e,r,s,r),-1!==y)n=y;else{const t=XJ(e.token.pos,d);n=Nfe.findFirstNonWhitespaceColumn(t,e.token.pos,d,a)}l=b(r,o,n,a.indentSize)}else S(e,r,s,r)}let _=-1;for(let e=0;e<n.length;e++){_=h(n[e],_,t,l,u,u,!0,0===e)}const p=function(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}(c);if(0!==p&&i.isOnToken()&&i.getStartPos()<e.end){let e=i.readTokenInfo(r);27===e.token.kind&&(S(e,r,l,r),e=i.isOnToken()?i.readTokenInfo(r):void 0),e&&e.token.kind===p&&YJ(r,e.token)&&S(e,r,l,r,!0)}}function S(n,t,r,a,o){Nt.assert(YJ(t,n.token));const s=i.lastTrailingTriviaWasNewLine();let c=!1;n.leadingTrivia&&T(n.leadingTrivia,t,m,r);let u=0;const _=YJ(e,n.token),h=d.getLineAndCharacterOfPosition(n.token.pos);if(_){const e=l(n.token),i=f;if(u=x(n.token,h,t,m,r),!e)if(0===u){const e=i&&d.getLineAndCharacterOfPosition(i.end).line;c=s&&h.line!==e}else c=1===u}if(n.trailingTrivia&&(p=Ge(n.trailingTrivia).end,T(n.trailingTrivia,t,m,r)),c){const e=_&&!l(n.token)?r.getIndentationForToken(h.line,n.token.kind,a,!!o):-1;let t=!0;if(n.leadingTrivia){const i=r.getIndentationForComment(n.token.kind,e,a);t=E(n.leadingTrivia,i,t,(e=>A(e.pos,i,!1)))}-1!==e&&t&&(A(n.token.pos,e,1===u),g=h.line,y=e)}i.advance(),m=t}}(n,n,o,s,t,r)}if(!i.isOnToken()){const r=Nfe.nodeWillIndentChild(a,n,void 0,d,!1)?t+a.indentSize:t,o=i.getCurrentLeadingTrivia();o&&(E(o,r,!1,(e=>x(e,d.getLineAndCharacterOfPosition(e.pos),n,n,void 0))),!1!==a.trimTrailingWhitespace&&function(n){let t=f?f.end:e.pos;for(const e of n)XX(e.kind)&&(t<e.pos&&w(t,e.pos-1,f),t=e.end+1);t<e.end&&w(t,e.end,f)}(o))}if(f&&i.getStartPos()>=e.end){const e=i.isOnEOF()?i.readEOFTokenRange():i.isOnToken()?i.readTokenInfo(n).token:void 0;if(e&&e.pos===p){const t=(null==(u=IX(e.end,d,n))?void 0:u.parent)||m;S(e,d.getLineAndCharacterOfPosition(e.pos).line,t,f,h,m,t,void 0)}}return v;function b(e,n,t,r){return{getIndentationForComment:(e,n,r)=>{switch(e){case 19:case 23:case 21:return t+i(r)}return-1!==n?n:t},getIndentationForToken:(r,a,o,s)=>!s&&function(t,r,i){switch(r){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(i.kind){case 283:case 284:case 282:return!1}break;case 22:case 23:if(197!==i.kind)return!1}return n!==t&&!(Tb(e)&&r===function(e){if(jN(e)){const n=D(e.modifiers,Ad,M(e.modifiers,JC));if(n)return n.kind}switch(e.kind){case 260:return 84;case 261:return 118;case 259:return 98;case 263:return 263;case 174:return 137;case 175:return 151;case 171:if(e.asteriskToken)return 41;case 169:case 166:const n=Xc(e);if(n)return n.kind}}(e))}(r,a,o)?t+i(o):t,getIndentation:()=>t,getDelta:i,recomputeIndentation:(n,i)=>{Nfe.shouldIndentChildNode(a,i,e,d)&&(t+=n?a.indentSize:-a.indentSize,r=Nfe.shouldIndentChildNode(a,e)?a.indentSize:0)}};function i(n){return Nfe.nodeWillIndentChild(a,e,n,d,!0)?r:0}}function E(n,t,r,i){for(const a of n){const n=YJ(e,a);switch(a.kind){case 3:n&&C(a,t,!r),r=!1;break;case 2:r&&n&&i(a),r=!1;break;case 4:r=!0}}return r}function T(n,t,r,i){for(const a of n)if(XX(a.kind)&&YJ(e,a)){x(a,d.getLineAndCharacterOfPosition(a.pos),t,r,i)}}function x(n,t,r,i,a){let o=0;if(!l(n))if(f)o=S(n,t.line,r,f,h,m,i,a);else{k(d.getLineAndCharacterOfPosition(e.pos).line,t.line)}return f=n,p=n.end,m=r,h=t.line,o}function S(e,n,t,r,i,c,l,u){_.updateContext(r,c,e,t,l);const p=o(_);let f=!1!==_.options.trimTrailingWhitespace,m=0;return p?L(p,(o=>{if(m=function(e,n,t,r,i){const o=i!==t;switch(e.action){case 1:return 0;case 16:if(n.end!==r.pos)return R(n.end,r.pos-n.end),o?2:0;break;case 32:R(n.pos,n.end-n.pos);break;case 8:if(1!==e.flags&&t!==i)return 0;if(1!==i-t)return N(n.end,r.pos-n.end,m$(s,a)),o?0:1;break;case 4:if(1!==e.flags&&t!==i)return 0;if(1!==r.pos-n.end||32!==d.text.charCodeAt(n.end))return N(n.end,r.pos-n.end," "),o?2:0;break;case 64:c=n.end,(l=";")&&v.push(_Y(c,0,l))}var c,l;return 0}(o,r,i,e,n),u)switch(m){case 2:t.getStart(d)===e.pos&&u.recomputeIndentation(!1,l);break;case 1:t.getStart(d)===e.pos&&u.recomputeIndentation(!0,l);break;default:Nt.assert(0===m)}f=f&&!(16&o.action)&&1!==o.flags})):f=f&&1!==e.kind,n!==i&&f&&k(i,n,r),m}function A(e,n,t){const r=Rfe(n,a);if(t)N(e,0,r);else{const t=d.getLineAndCharacterOfPosition(e),i=Fp(t.line,d);(n!==function(e,n){let t=0;for(let r=0;r<n;r++)9===d.text.charCodeAt(e+r)?t+=a.tabSize-t%a.tabSize:t++;return t}(i,t.character)||function(e,n){return e!==d.text.substr(n,e.length)}(r,i))&&N(i,t.character,r)}}function C(e,n,t,r=!0){let i=d.getLineAndCharacterOfPosition(e.pos).line;const o=d.getLineAndCharacterOfPosition(e.end).line;if(i===o)return void(t||A(e.pos,n,!1));const s=[];let c=e.pos;for(let a=i;a<o;a++){const e=Bp(a,d);s.push({pos:c,end:e}),c=Fp(a+1,d)}if(r&&s.push({pos:c,end:e.end}),0===s.length)return;const l=Fp(i,d),u=Nfe.findFirstNonWhitespaceCharacterAndColumn(l,s[0].pos,d,a);let _=0;t&&(_=1,i++);const p=n-u.column;for(let f=_;f<s.length;f++,i++){const e=Fp(i,d),n=0===f?u:Nfe.findFirstNonWhitespaceCharacterAndColumn(s[f].pos,s[f].end,d,a),t=n.column+p;if(t>0){const r=Rfe(t,a);N(e,n.character,r)}else R(e,n.character)}}function k(e,n,t){for(let r=e;r<n;r++){const e=Fp(r,d),n=Bp(r,d);if(t&&(XX(t.kind)||YX(t.kind))&&t.pos<=n&&t.end>n)continue;const i=I(e,n);-1!==i&&(Nt.assert(i===e||!Ls(d.text.charCodeAt(i-1))),R(i,n+1-i))}}function I(e,n){let t=n;for(;t>=e&&Ls(d.text.charCodeAt(t));)t--;return t!==n?t+1:-1}function w(e,n,t){k(d.getLineAndCharacterOfPosition(e).line,d.getLineAndCharacterOfPosition(n).line+1,t)}function R(e,n){n&&v.push(_Y(e,n,""))}function N(e,n,t){(n||t)&&v.push(_Y(e,n,t))}}function wfe(e,n,t,r=SX(e,n)){const i=Mc(r,zw);i&&(r=i.parent);if(r.getStart(e)<=n&&n<r.getEnd())return;const a=de((t=null===t?void 0:void 0===t?IX(n,e):t)&&Ks(e.text,t.end),Em(r,e));return a&&D(a,(t=>ZJ(t,n)||n===t.end&&(2===t.kind||n===e.getFullWidth())))}function Rfe(e,n){if((!_fe||_fe.tabSize!==n.tabSize||_fe.indentSize!==n.indentSize)&&(_fe={tabSize:n.tabSize,indentSize:n.indentSize},pfe=ffe=void 0),n.convertTabsToSpaces){let t;const r=Math.floor(e/n.indentSize),i=e%n.indentSize;return ffe||(ffe=[]),void 0===ffe[r]?(t=bY(" ",n.indentSize*r),ffe[r]=t):t=ffe[r],i?t+bY(" ",i):t}{const t=Math.floor(e/n.tabSize),r=e-t*n.tabSize;let i;return pfe||(pfe=[]),void 0===pfe[t]?pfe[t]=i=bY("\t",t):i=pfe[t],r?i+bY(" ",r):i}}var Nfe,Dfe=E({"src/services/formatting/formatting.ts"(){Bfe(),Gfe()}}),Ofe=E({"src/services/formatting/smartIndenter.ts"(){Bfe(),Gfe(),(e=>{let n;var t;function r(e){return e.baseIndentSize||0}function i(e,n,t,i,s,c,l){var f;let m=e.parent;for(;m;){let r=!0;if(t){const n=e.getStart(s);r=n<t.pos||n>t.end}const g=a(m,e,s),y=g.line===n.line||_(m,e,n.line,s);if(r){const t=null==(f=p(e,s))?void 0:f[0];let r=h(e,s,l,!!t&&d(t,s).line>g.line);if(-1!==r)return r+i;if(r=o(e,m,n,y,s,l),-1!==r)return r+i}T(l,m,e,s,c)&&!y&&(i+=l.indentSize);const v=u(m,e,n.line,s);m=(e=m).parent,n=v?s.getLineAndCharacterOfPosition(e.getStart(s)):g}return i+r(l)}function a(e,n,t){const r=p(n,t),i=r?r.pos:e.getStart(t);return t.getLineAndCharacterOfPosition(i)}function o(e,n,t,r,i,a){return(Pu(e)||Gu(e))&&(308===n.kind||!r)?y(t,i,a):-1}let s;var c;function l(e,n,t,r){const i=kX(e,n,r);if(!i)return 0;if(18===i.kind)return 1;if(19===i.kind){return t===d(i,r).line?2:0}return 0}function d(e,n){return n.getLineAndCharacterOfPosition(e.getStart(n))}function u(e,n,t,r){if(!Fk(e)||!G(e.arguments,n))return!1;return Ss(r,e.expression.getEnd()).line===t}function _(e,n,t,r){if(242===e.kind&&e.elseStatement===n){const n=dX(e,91,r);Nt.assert(void 0!==n);return d(n,r).line===t}return!1}function p(e,n){return e.parent&&f(e.getStart(n),e.getEnd(),e.parent,n)}function f(e,n,t,r){switch(t.kind){case 180:return i(t.typeArguments);case 207:return i(t.properties);case 206:case 272:case 276:case 203:case 204:return i(t.elements);case 184:return i(t.members);case 259:case 215:case 216:case 171:case 170:case 176:case 173:case 182:case 177:return i(t.typeParameters)||i(t.parameters);case 174:return i(t.parameters);case 260:case 228:case 261:case 262:case 348:return i(t.typeParameters);case 211:case 210:return i(t.typeArguments)||i(t.arguments);case 258:return i(t.declarations)}function i(i){return i&&nX(function(e,n,t){const r=e.getChildren(t);for(let i=1;i<r.length-1;i++)if(r[i].pos===n.pos&&r[i].end===n.end)return{pos:r[i-1].end,end:r[i+1].getStart(t)};return n}(t,i,r),e,n)?i:void 0}}function m(e,n,t){return e?y(n.getLineAndCharacterOfPosition(e.pos),n,t):-1}function h(e,n,t,r){if(e.parent&&258===e.parent.kind)return-1;const i=p(e,n);if(i){const a=i.indexOf(e);if(-1!==a){const e=g(i,a,n,t);if(-1!==e)return e}return m(i,n,t)+(r?t.indentSize:0)}return-1}function g(e,n,t,r){Nt.assert(n>=0&&n<e.length);let i=d(e[n],t);for(let a=n-1;a>=0;a--){if(27===e[a].kind)continue;if(t.getLineAndCharacterOfPosition(e[a].end).line!==i.line)return y(i,t,r);i=d(e[a],t)}return-1}function y(e,n,t){const r=n.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,n,t)}function v(e,n,t,r){let i=0,a=0;for(let o=e;o<n;o++){const e=t.text.charCodeAt(o);if(!Ls(e))break;9===e?a+=r.tabSize+a%r.tabSize:a++,i++}return{column:a,character:i}}function b(e,n,t,r){return v(e,n,t,r).column}function E(e,n,t,r,i){const a=t?t.kind:0;switch(n.kind){case 241:case 260:case 228:case 261:case 263:case 262:case 206:case 238:case 265:case 207:case 184:case 197:case 186:case 266:case 293:case 292:case 214:case 208:case 210:case 211:case 240:case 274:case 250:case 224:case 204:case 203:case 283:case 286:case 282:case 291:case 170:case 176:case 177:case 166:case 181:case 182:case 193:case 212:case 220:case 276:case 272:case 278:case 273:case 169:return!0;case 257:case 299:case 223:if(!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&r&&207===a)return x(r,t);if(223===n.kind&&r&&t&&281===a){return r.getLineAndCharacterOfPosition(Ns(r.text,n.pos)).line!==r.getLineAndCharacterOfPosition(Ns(r.text,t.pos)).line}if(223!==n.kind)return!0;break;case 243:case 244:case 246:case 247:case 245:case 242:case 259:case 215:case 171:case 173:case 174:case 175:return 238!==a;case 216:return r&&214===a?x(r,t):238!==a;case 275:return 276!==a;case 269:return 270!==a||!!t.namedBindings&&272!==t.namedBindings.kind;case 281:return 284!==a;case 285:return 287!==a;case 190:case 189:if(184===a||186===a)return!1}return i}function T(e,n,t,r,i=!1){return E(e,n,t,r,!1)&&!(i&&t&&function(e,n){switch(e){case 250:case 254:case 248:case 249:return 238!==n.kind;default:return!1}}(t.kind,n))}function x(e,n){const t=Ns(e.text,n.pos);return e.getLineAndCharacterOfPosition(t).line===e.getLineAndCharacterOfPosition(n.end).line}(t=n||(n={}))[t.Unknown=-1]="Unknown",e.getIndentation=function(e,n,t,a=!1){if(e>n.text.length)return r(t);if(0===t.indentStyle)return 0;const o=IX(e,n,void 0,!0),s=wfe(n,e,o||null);if(s&&3===s.kind)return function(e,n,t,r){const i=Ss(e,n).line-1,a=Ss(e,r.pos).line;if(Nt.assert(a>=0),i<=a)return b(Fp(a,e),n,e,t);const o=Fp(i,e),{column:s,character:c}=v(o,n,e,t);if(0===s)return s;const l=e.text.charCodeAt(o+c);return 42===l?s-1:s}(n,e,t,s);if(!o)return r(t);if(YX(o.kind)&&o.getStart(n)<=e&&e<o.end)return 0;const c=n.getLineAndCharacterOfPosition(e).line,u=SX(n,e),_=18===u.kind&&207===u.parent.kind;if(1===t.indentStyle||_)return function(e,n,t){let r=n;for(;r>0;){if(!As(e.text.charCodeAt(r)))break;r--}const i=XJ(r,e);return b(i,r,e,t)}(n,e,t);if(27===o.kind&&223!==o.parent.kind){const e=function(e,n,t){const r=cX(e);return r&&r.listItemIndex>0?g(r.list.getChildren(),r.listItemIndex-1,n,t):-1}(o,n,t);if(-1!==e)return e}const p=function(e,n,t){return n&&f(e,e,n,t)}(e,o.parent,n);if(p&&!YJ(p,o)){const e=-1!==[215,216].indexOf(u.parent.kind)?0:t.indentSize;return m(p,n,t)+e}return function(e,n,t,a,o,s){let c,u=t;for(;u;){if(aX(u,n,e)&&T(s,u,c,e,!0)){const n=d(u,e),r=l(t,u,a,e);return i(u,n,void 0,0!==r?o&&2===r?s.indentSize:0:a!==n.line?s.indentSize:0,e,!0,s)}const r=h(u,e,s,!0);if(-1!==r)return r;c=u,u=u.parent}return r(s)}(n,e,o,c,a,t)},e.getIndentationForNode=function(e,n,t,r){const a=t.getLineAndCharacterOfPosition(e.getStart(t));return i(e,a,n,0,t,!1,r)},e.getBaseIndentation=r,(c=s||(s={}))[c.Unknown=0]="Unknown",c[c.OpenBrace=1]="OpenBrace",c[c.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=u,e.childStartsOnTheSameLineWithElseInIfStatement=_,e.childIsUnindentedBranchOfConditionalExpression=function(e,n,t,r){if($k(e)&&(n===e.whenTrue||n===e.whenFalse)){const i=Ss(r,e.condition.end).line;if(n===e.whenTrue)return t===i;{const n=d(e.whenTrue,r).line,a=Ss(r,e.whenTrue.end).line;return i===n&&a===t}}return!1},e.argumentStartsOnSameLineAsPreviousArgument=function(e,n,t,r){if(su(e)){if(!e.arguments)return!1;const i=D(e.arguments,(e=>e.pos===n.pos));if(!i)return!1;const a=e.arguments.indexOf(i);if(0===a)return!1;if(t===Ss(r,e.arguments[a-1].getEnd()).line)return!0}return!1},e.getContainingList=p,e.findFirstNonWhitespaceCharacterAndColumn=v,e.findFirstNonWhitespaceColumn=b,e.nodeWillIndentChild=E,e.shouldIndentChildNode=T})(Nfe||(Nfe={}))}}),Mfe={};T(Mfe,{FormattingContext:()=>D_e,FormattingRequestKind:()=>N_e,RuleAction:()=>U_e,RuleFlags:()=>V_e,SmartIndenter:()=>Nfe,anyContext:()=>B_e,createTextRangeWithKind:()=>hfe,formatDocument:()=>Efe,formatNodeGivenIndentation:()=>Lfe,formatOnClosingCurly:()=>bfe,formatOnEnter:()=>gfe,formatOnOpeningCurly:()=>vfe,formatOnSemicolon:()=>yfe,formatSelection:()=>Tfe,getAllRules:()=>K_e,getFormatContext:()=>sfe,getFormattingScanner:()=>G_e,getIndentationString:()=>Rfe,getRangeOfEnclosingComment:()=>wfe});var Pfe,Ffe,Gfe=E({"src/services/_namespaces/ts.formatting.ts"(){F_e(),j_e(),H_e(),ofe(),mfe(),Dfe(),Ofe()}}),Bfe=E({"src/services/_namespaces/ts.ts"(){lq(),oJ(),gJ(),zQ(),tZ(),gZ(),yZ(),SZ(),OZ(),o0(),l0(),f0(),k0(),N0(),L2(),F2(),H2(),q2(),g4(),I4(),ore(),Qie(),Uae(),ioe(),poe(),woe(),e1(),a2(),ose(),gse(),Yde(),sue(),Nue(),Wue(),s_e(),P_e(),Gfe()}});function Ufe(e,n,t,r,i){let a=n?"DeprecationError: ":"DeprecationWarning: ";return a+=`'${e}' `,a+=r?`has been deprecated since v${r}`:"is deprecated",a+=n?" and can no longer be used.":t?` and will no longer be usable after v${t}.`:".",a+=i?` ${bT(i,[e],0)}`:"",a}function Vfe(e,n={}){var r,i;const a="string"===typeof n.typeScriptVersion?new Ut(n.typeScriptVersion):null!=(r=n.typeScriptVersion)?r:null!=Ffe?Ffe:Ffe=new Ut(t),o="string"===typeof n.errorAfter?new Ut(n.errorAfter):n.errorAfter,s="string"===typeof n.warnAfter?new Ut(n.warnAfter):n.warnAfter,c="string"===typeof n.since?new Ut(n.since):null!=(i=n.since)?i:s,l=n.error||o&&a.compareTo(o)>=0,d=!s||a.compareTo(s)>=0;return l?function(e,n,t,r){const i=Ufe(e,!0,n,t,r);return()=>{throw new TypeError(i)}}(e,o,c,n.message):d?function(e,n,t,r){let i=!1;return()=>{Pfe&&!i&&(Nt.log.warn(Ufe(e,!1,n,t,r)),i=!0)}}(e,o,c,n.message):xn}function jfe(e,n){var t;return function(e,n){return function(){return e(),n.apply(this,arguments)}}(Vfe(null!=(t=null==n?void 0:n.name)?t:Nt.getFunctionName(e),n),e)}var Hfe=E({"src/deprecatedCompat/deprecate.ts"(){Jfe(),Pfe=!0}});function Kfe(e,n,t,r){if(Object.defineProperty(a,"name",{...Object.getOwnPropertyDescriptor(a,"name"),value:e}),r)for(const o of Object.keys(r)){const t=+o;!isNaN(t)&&ze(n,`${t}`)&&(n[t]=jfe(n[t],{...r[t],name:e}))}const i=function(e,n){return t=>{for(let r=0;ze(e,`${r}`)&&ze(n,`${r}`);r++){if((0,n[r])(t))return r}}}(n,t);return a;function a(...e){const t=i(e),r=void 0!==t?n[t]:void 0;if("function"===typeof r)return r(...e);throw new TypeError("Invalid arguments")}}function Wfe(e){return{overload:n=>({bind:t=>({finish:()=>Kfe(e,n,t),deprecate:r=>({finish:()=>Kfe(e,n,t,r)})})})}}var zfe=E({"src/deprecatedCompat/deprecations.ts"(){Jfe(),Hfe()}}),qfe=E({"src/deprecatedCompat/5.0/identifierProperties.ts"(){Jfe(),Hfe(),yT((e=>{const n=e.getIdentifierConstructor();ze(n.prototype,"originalKeywordKind")||Object.defineProperty(n.prototype,"originalKeywordKind",{get:jfe((function(){return Vc(this)}),{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),ze(n.prototype,"isInJSDocNamespace")||Object.defineProperty(n.prototype,"isInJSDocNamespace",{get:jfe((function(){return!!(2048&this.flags)||void 0}),{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})}))}}),Jfe=E({"src/deprecatedCompat/_namespaces/ts.ts"(){lq(),zfe(),qfe()}}),Xfe={};T(Xfe,{ANONYMOUS:()=>mJ,AccessFlags:()=>Ai,AssertionLevel:()=>_,AssignmentDeclarationKind:()=>Oi,AssignmentKind:()=>b_,Associativity:()=>T_,BreakpointResolver:()=>z2,BuilderFileEmit:()=>nK,BuilderProgramKind:()=>tK,BuilderState:()=>$H,BundleFileSectionKind:()=>oa,CallHierarchy:()=>_4,CharacterCodes:()=>Xi,CheckFlags:()=>yi,CheckMode:()=>KG,ClassificationType:()=>iJ,ClassificationTypeNames:()=>rJ,CommentDirectiveType:()=>Zr,Comparison:()=>r,CompletionInfoFlags:()=>Yq,CompletionTriggerKind:()=>Hq,Completions:()=>Xie,ConfigFileProgramReloadLevel:()=>Rj,ContextFlags:()=>ci,CoreServicesShimHostAdapter:()=>R2,Debug:()=>Nt,DiagnosticCategory:()=>Mi,Diagnostics:()=>Wo,DocumentHighlights:()=>hZ,ElementFlags:()=>Si,EmitFlags:()=>Zi,EmitHint:()=>ta,EmitOnly:()=>ri,EndOfLineState:()=>Zq,EnumKind:()=>gi,ExitStatus:()=>ai,ExportKind:()=>WQ,Extension:()=>Yi,ExternalEmitHelpers:()=>na,FileIncludeKind:()=>ni,FilePreprocessingDiagnosticsKind:()=>ti,FileSystemEntryKind:()=>xa,FileWatcherEventKind:()=>ma,FindAllReferences:()=>Bae,FlattenLevel:()=>bU,FlowFlags:()=>Qr,ForegroundColorEscapeSequences:()=>zj,FunctionFlags:()=>E_,GeneratedIdentifierFlags:()=>Yr,GetLiteralTextFlags:()=>m_,GoToDefinition:()=>noe,HighlightSpanKind:()=>Wq,ImportKind:()=>KQ,ImportsNotUsedAsValues:()=>Hi,IndentStyle:()=>zq,IndexKind:()=>Ii,InferenceFlags:()=>Ni,InferencePriority:()=>Ri,InlayHintKind:()=>Kq,InlayHints:()=>coe,InternalEmitFlags:()=>ea,InternalSymbolName:()=>vi,InvalidatedProjectKind:()=>BW,JsDoc:()=>koe,JsTyping:()=>bq,JsxEmit:()=>ji,JsxFlags:()=>Jr,JsxReferenceKind:()=>Li,LanguageServiceMode:()=>Bq,LanguageServiceShimHostAdapter:()=>w2,LanguageVariant:()=>qi,LexicalEnvironmentFlags:()=>ia,ListFormat:()=>sa,LogLevel:()=>Rt,MemberOverrideStatus:()=>oi,ModifierFlags:()=>qr,ModuleDetectionKind:()=>Fi,ModuleInstanceState:()=>WF,ModuleKind:()=>Vi,ModuleResolutionKind:()=>Pi,ModuleSpecifierEnding:()=>ip,NavigateTo:()=>H0,NavigationBar:()=>V1,NewLineKind:()=>Ki,NodeBuilderFlags:()=>li,NodeCheckFlags:()=>bi,NodeFactoryFlags:()=>_A,NodeFlags:()=>zr,NodeResolutionFeatures:()=>cP,ObjectFlags:()=>Ti,OperationCanceledException:()=>ei,OperatorPrecedence:()=>x_,OrganizeImports:()=>ise,OrganizeImportsMode:()=>jq,OuterExpressionKinds:()=>ra,OutliningElementsCollector:()=>mse,OutliningSpanKind:()=>$q,OutputFileType:()=>Qq,PackageJsonAutoImportPreference:()=>Gq,PackageJsonDependencyGroup:()=>Fq,PatternMatchKind:()=>DZ,PollingInterval:()=>ha,PollingWatchKind:()=>Ui,PragmaKindFlags:()=>da,PrivateIdentifierKind:()=>AL,ProcessLevel:()=>RU,QuotePreference:()=>_J,RelationComparisonResult:()=>Xr,Rename:()=>iue,ScriptElementKind:()=>nJ,ScriptElementKindModifier:()=>tJ,ScriptKind:()=>Wi,ScriptSnapshot:()=>Pq,ScriptTarget:()=>zi,SemanticClassificationFormat:()=>Vq,SemanticMeaning:()=>lJ,SemicolonPreference:()=>qq,SignatureCheckMode:()=>WG,SignatureFlags:()=>ki,SignatureHelp:()=>wue,SignatureKind:()=>Ci,SmartSelectionRange:()=>Hue,SnippetKind:()=>Qi,SortKind:()=>s,StructureIsReused:()=>ii,SymbolAccessibility:()=>_i,SymbolDisplay:()=>Zue,SymbolDisplayPartKind:()=>Xq,SymbolFlags:()=>hi,SymbolFormatFlags:()=>ui,SyntaxKind:()=>Wr,SyntheticSymbolKind:()=>pi,Ternary:()=>Di,ThrottledCancellationToken:()=>t2,TokenClass:()=>eJ,TokenFlags:()=>$r,TransformFlags:()=>$i,TypeFacts:()=>jG,TypeFlags:()=>Ei,TypeFormatFlags:()=>di,TypeMapKind:()=>wi,TypePredicateKind:()=>fi,TypeReferenceSerializationKind:()=>mi,TypeScriptServicesFactory:()=>P2,UnionReduction:()=>si,UpToDateStatusType:()=>OW,VarianceFlags:()=>xi,Version:()=>Ut,VersionRange:()=>Vt,WatchDirectoryFlags:()=>Ji,WatchDirectoryKind:()=>Bi,WatchFileKind:()=>Gi,WatchLogLevel:()=>Nj,WatchType:()=>XK,accessPrivateIdentifier:()=>vU,addEmitFlags:()=>HA,addEmitHelper:()=>lL,addEmitHelpers:()=>dL,addInternalEmitFlags:()=>WA,addNodeFactoryPatcher:()=>bA,addObjectAllocatorPatcher:()=>yT,addRange:()=>Ae,addRelatedInfo:()=>cS,addSyntheticLeadingComment:()=>tL,addSyntheticTrailingComment:()=>aL,addToSeen:()=>nT,advancedAsyncSuperHelper:()=>tC,affectsDeclarationPathOptionDeclarations:()=>aO,affectsEmitOptionDeclarations:()=>iO,allKeysStartWithDot:()=>SF,altDirectorySeparator:()=>qa,and:()=>gt,append:()=>Te,appendIfUnique:()=>Ce,arrayFrom:()=>Qe,arrayIsEqualTo:()=>ve,arrayIsHomogeneous:()=>ES,arrayIsSorted:()=>ge,arrayOf:()=>$e,arrayReverseIterator:()=>we,arrayToMap:()=>nn,arrayToMultiMap:()=>rn,arrayToNumericMap:()=>tn,arraysEqual:()=>B,assertType:()=>bt,assign:()=>Ze,assignHelper:()=>RL,asyncDelegator:()=>OL,asyncGeneratorHelper:()=>DL,asyncSuperHelper:()=>nC,asyncValues:()=>ML,attachFileToDiagnostics:()=>CT,awaitHelper:()=>NL,awaiterHelper:()=>FL,base64decode:()=>cE,base64encode:()=>sE,binarySearch:()=>He,binarySearchKey:()=>Ke,bindSourceFile:()=>QF,breakIntoCharacterSpans:()=>$Z,breakIntoWordSpans:()=>QZ,buildLinkParts:()=>f$,buildOpts:()=>uO,buildOverload:()=>Wfe,bundlerModuleNameResolver:()=>QP,canBeConvertedToAsync:()=>A0,canHaveDecorators:()=>HN,canHaveExportModifier:()=>qS,canHaveFlowNode:()=>Rg,canHaveIllegalDecorators:()=>fN,canHaveIllegalModifiers:()=>mN,canHaveIllegalType:()=>_N,canHaveIllegalTypeParameters:()=>pN,canHaveJSDoc:()=>Ng,canHaveLocals:()=>Du,canHaveModifiers:()=>jN,canHaveSymbol:()=>Nu,canJsonReportNoInputFiles:()=>IM,canProduceDiagnostics:()=>kV,canUsePropertyAccess:()=>XS,canWatchDirectoryOrFile:()=>jK,cartesianProduct:()=>xt,cast:()=>Tn,chainBundle:()=>qB,chainDiagnosticMessages:()=>NT,changeAnyExtension:()=>Ro,changeCompilerHostLikeToUseCache:()=>pH,changeExtension:()=>Yx,changesAffectModuleResolution:()=>_p,changesAffectingProgramStructure:()=>fp,childIsDecorated:()=>fh,classElementOrClassElementParameterIsDecorated:()=>hh,classOrConstructorParameterIsDecorated:()=>mh,classPrivateFieldGetHelper:()=>$L,classPrivateFieldInHelper:()=>ZL,classPrivateFieldSetHelper:()=>QL,classicNameResolver:()=>UF,classifier:()=>L4,cleanExtendedConfigCache:()=>Fj,clear:()=>K,clearMap:()=>WE,clearSharedExtendedConfigFileWatcher:()=>Pj,climbPastPropertyAccess:()=>RJ,climbPastPropertyOrElementAccess:()=>NJ,clone:()=>sn,cloneCompilerOptions:()=>nY,closeFileWatcher:()=>PE,closeFileWatcherOf:()=>Wj,codefix:()=>$te,collapseTextChangeRangesAcrossMultipleVersions:()=>xc,collectExternalModuleInfo:()=>$B,combine:()=>xe,combinePaths:()=>Eo,commentPragmas:()=>ua,commonOptionsWithBuild:()=>QD,commonPackageFolders:()=>j_,compact:()=>be,compareBooleans:()=>$n,compareDataObjects:()=>KE,compareDiagnostics:()=>MT,compareDiagnosticsSkipRelatedInformation:()=>PT,compareEmitHelpers:()=>aC,compareNumberOfDirectorySeparators:()=>zx,comparePaths:()=>Mo,comparePathsCaseInsensitive:()=>Oo,comparePathsCaseSensitive:()=>Do,comparePatternKeys:()=>LF,compareProperties:()=>Yn,compareStringsCaseInsensitive:()=>Hn,compareStringsCaseInsensitiveEslintCompatible:()=>Kn,compareStringsCaseSensitive:()=>Wn,compareStringsCaseSensitiveUI:()=>Xn,compareTextSpans:()=>Vn,compareValues:()=>Un,compileOnSaveCommandLineOption:()=>WD,compilerOptionsAffectDeclarationPath:()=>fx,compilerOptionsAffectEmit:()=>px,compilerOptionsAffectSemanticDiagnostics:()=>_x,compilerOptionsDidYouMeanDiagnostics:()=>hO,compilerOptionsIndicateEsModules:()=>AY,compose:()=>Mn,computeCommonSourceDirectoryOfFilenames:()=>cH,computeLineAndCharacterOfPosition:()=>Es,computeLineOfPosition:()=>Ts,computeLineStarts:()=>gs,computePositionOfLineAndCharacter:()=>vs,computeSignature:()=>CK,computeSignatureWithDiagnostics:()=>LK,computeSuggestionDiagnostics:()=>m0,concatenate:()=>de,concatenateDiagnosticMessageChains:()=>DT,consumesNodeCoreModules:()=>yQ,contains:()=>G,containsIgnoredPath:()=>DS,containsObjectRestOrSpread:()=>BN,containsParseError:()=>Np,containsPath:()=>Po,convertCompilerOptionsForTelemetry:()=>rP,convertCompilerOptionsFromJson:()=>DM,convertJsonOption:()=>UM,convertToBase64:()=>oE,convertToObject:()=>aM,convertToObjectWorker:()=>oM,convertToOptionsWithAbsolutePaths:()=>vM,convertToRelativePath:()=>Uo,convertToTSConfig:()=>lM,convertTypeAcquisitionFromJson:()=>OM,copyComments:()=>F$,copyEntries:()=>vp,copyLeadingComments:()=>j$,copyProperties:()=>ln,copyTrailingAsLeadingComments:()=>K$,copyTrailingComments:()=>H$,couldStartTrivia:()=>Rs,countWhere:()=>V,createAbstractBuilder:()=>BK,createAccessorPropertyBackingField:()=>DN,createAccessorPropertyGetRedirector:()=>ON,createAccessorPropertySetRedirector:()=>MN,createBaseNodeFactory:()=>iA,createBinaryExpressionTrampoline:()=>SN,createBindingHelper:()=>zL,createBuildInfo:()=>xj,createBuilderProgram:()=>kK,createBuilderProgramUsingProgramBuildInfo:()=>DK,createBuilderStatusReporter:()=>WW,createCacheWithRedirects:()=>PP,createCacheableExportInfoMap:()=>qQ,createCachedDirectoryStructureHost:()=>Oj,createClassifier:()=>rZ,createCommentDirectivesMap:()=>ef,createCompilerDiagnostic:()=>wT,createCompilerDiagnosticForInvalidCustomType:()=>OO,createCompilerDiagnosticFromMessageChain:()=>RT,createCompilerHost:()=>lH,createCompilerHostFromProgramHost:()=>vW,createCompilerHostWorker:()=>_H,createDetachedDiagnostic:()=>ST,createDiagnosticCollection:()=>ov,createDiagnosticForFileFromMessageChain:()=>em,createDiagnosticForNode:()=>qf,createDiagnosticForNodeArray:()=>Jf,createDiagnosticForNodeArrayFromMessageChain:()=>$f,createDiagnosticForNodeFromMessageChain:()=>Yf,createDiagnosticForNodeInSourceFile:()=>Xf,createDiagnosticForRange:()=>tm,createDiagnosticMessageChainFromDiagnostic:()=>nm,createDiagnosticReporter:()=>$K,createDocumentPositionMapper:()=>HB,createDocumentRegistry:()=>bZ,createDocumentRegistryInternal:()=>EZ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>GK,createEmitHelperFactory:()=>iC,createEmptyExports:()=>xR,createExpressionForJsxElement:()=>kR,createExpressionForJsxFragment:()=>IR,createExpressionForObjectLiteralElementLike:()=>OR,createExpressionForPropertyName:()=>DR,createExpressionFromEntityName:()=>NR,createExternalHelpersImportDeclarationIfNeeded:()=>ZR,createFileDiagnostic:()=>kT,createFileDiagnosticFromMessageChain:()=>Zf,createForOfBindingStatement:()=>wR,createGetCanonicalFileName:()=>lt,createGetSourceFile:()=>dH,createGetSymbolAccessibilityDiagnosticForNode:()=>wV,createGetSymbolAccessibilityDiagnosticForNodeName:()=>IV,createGetSymbolWalker:()=>aG,createIncrementalCompilerHost:()=>wW,createIncrementalProgram:()=>RW,createInputFiles:()=>DA,createInputFilesWithFilePaths:()=>OA,createInputFilesWithFileTexts:()=>MA,createJsxFactoryExpression:()=>CR,createLanguageService:()=>E2,createLanguageServiceSourceFile:()=>v2,createMemberAccessForPropertyName:()=>SR,createModeAwareCache:()=>BP,createModeAwareCacheKey:()=>GP,createModuleResolutionCache:()=>WP,createModuleResolutionLoader:()=>IH,createModuleSpecifierResolutionHost:()=>LY,createMultiMap:()=>un,createNodeConverters:()=>dA,createNodeFactory:()=>EA,createOptionNameMap:()=>NO,createOverload:()=>Kfe,createPackageJsonImportFilter:()=>gQ,createPackageJsonInfo:()=>hQ,createParenthesizerRules:()=>sA,createPatternMatcher:()=>PZ,createPrependNodes:()=>zH,createPrinter:()=>Cj,createPrinterWithDefaults:()=>ZV,createPrinterWithRemoveComments:()=>ej,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>nj,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>tj,createProgram:()=>jH,createProgramHost:()=>TW,createPropertyNameNodeForIdentifierOrLiteral:()=>jS,createQueue:()=>mn,createRange:()=>pE,createRedirectedBuilderProgram:()=>MK,createResolutionCache:()=>HK,createRuntimeTypeSerializer:()=>jU,createScanner:()=>Xs,createSemanticDiagnosticsBuilderProgram:()=>FK,createSet:()=>hn,createSolutionBuilder:()=>XW,createSolutionBuilderHost:()=>qW,createSolutionBuilderWithWatch:()=>YW,createSolutionBuilderWithWatchHost:()=>JW,createSortedArray:()=>fe,createSourceFile:()=>RD,createSourceMapGenerator:()=>kB,createSourceMapSource:()=>PA,createSuperAccessVariableStatement:()=>XU,createSymbolTable:()=>dp,createSymlinkCache:()=>bx,createSystemWatchFunctions:()=>Ha,createTextChange:()=>pY,createTextChangeFromStartLength:()=>_Y,createTextChangeRange:()=>Tc,createTextRangeFromNode:()=>lY,createTextRangeFromSpan:()=>uY,createTextSpan:()=>yc,createTextSpanFromBounds:()=>vc,createTextSpanFromNode:()=>sY,createTextSpanFromRange:()=>dY,createTextSpanFromStringLiteralLikeContent:()=>cY,createTextWriter:()=>vv,createTokenRange:()=>vE,createTypeChecker:()=>tB,createTypeReferenceDirectiveResolutionCache:()=>zP,createTypeReferenceResolutionLoader:()=>RH,createUnderscoreEscapedMultiMap:()=>fn,createUnparsedSourceFile:()=>NA,createWatchCompilerHost:()=>NW,createWatchCompilerHostOfConfigFile:()=>AW,createWatchCompilerHostOfFilesAndCompilerOptions:()=>LW,createWatchFactory:()=>yW,createWatchHost:()=>gW,createWatchProgram:()=>DW,createWatchStatusReporter:()=>eW,createWriteFileMeasuringIO:()=>uH,declarationNameToString:()=>Vf,decodeMappings:()=>OB,decodedTextSpanIntersectsWith:()=>mc,decorateHelper:()=>LL,deduplicate:()=>pe,defaultIncludeSpec:()=>kO,defaultInitCompilerOptions:()=>mO,defaultMaximumTruncationLength:()=>__,detectSortCaseSensitivity:()=>ye,diagnosticCategoryName:()=>fa,diagnosticToString:()=>BQ,directoryProbablyExists:()=>uE,directorySeparator:()=>za,displayPart:()=>e$,displayPartsToString:()=>m2,disposeEmitNodes:()=>UA,documentSpansEqual:()=>zY,dumpTracingLegend:()=>Kr,elementAt:()=>c,elideNodes:()=>kN,emitComments:()=>ob,emitDetachedComments:()=>sb,emitFiles:()=>Tj,emitFilesAndReportErrors:()=>mW,emitFilesAndReportErrorsAndGetExitStatus:()=>hW,emitModuleKindIsNonNodeESM:()=>WT,emitNewLineBeforeLeadingCommentOfPosition:()=>ab,emitNewLineBeforeLeadingComments:()=>rb,emitNewLineBeforeLeadingCommentsOfPosition:()=>ib,emitSkippedWithNoDiagnostics:()=>iH,emitUsingBuildInfo:()=>Lj,emptyArray:()=>i,emptyFileSystemEntries:()=>op,emptyMap:()=>a,emptyOptions:()=>Uq,emptySet:()=>o,endsWith:()=>et,ensurePathIsNonModuleName:()=>wo,ensureScriptKind:()=>Px,ensureTrailingDirectorySeparator:()=>Io,entityNameToString:()=>zf,enumerateInsertsAndDeletes:()=>Tt,equalOwnProperties:()=>en,equateStringsCaseInsensitive:()=>Fn,equateStringsCaseSensitive:()=>Gn,equateValues:()=>Pn,esDecorateHelper:()=>IL,escapeJsxAttributeString:()=>pv,escapeLeadingUnderscores:()=>Gc,escapeNonAsciiString:()=>uv,escapeSnippetText:()=>US,escapeString:()=>dv,every:()=>N,expandPreOrPostfixIncrementOrDecrementExpression:()=>MR,explainFiles:()=>lW,explainIfFileIsRedirectAndImpliedFormat:()=>dW,exportAssignmentIsAlias:()=>dy,exportStarHelper:()=>YL,expressionResultIsUnused:()=>NS,extend:()=>cn,extendsHelper:()=>GL,extensionFromPath:()=>tS,extensionIsTS:()=>eS,externalHelpersModuleNameText:()=>u_,factory:()=>gA,fileExtensionIs:()=>oo,fileExtensionIsOneOf:()=>so,fileIncludeReasonToDiagnostics:()=>pW,filter:()=>j,filterMutate:()=>H,filterSemanticDiagnostics:()=>KH,find:()=>D,findAncestor:()=>Mc,findBestPatternMatch:()=>_t,findChildOfKind:()=>dX,findComputedPropertyNameCacheAssignment:()=>PN,findConfigFile:()=>oH,findContainingList:()=>uX,findDiagnosticForNode:()=>EQ,findFirstNonJsxWhitespaceToken:()=>LX,findIndex:()=>M,findLast:()=>O,findLastIndex:()=>P,findListItemInfo:()=>cX,findMap:()=>F,findModifier:()=>jY,findNextToken:()=>kX,findPackageJson:()=>fQ,findPackageJsons:()=>pQ,findPrecedingMatchingToken:()=>BX,findPrecedingToken:()=>IX,findSuperStatementIndex:()=>aU,findTokenOnLeftOfPosition:()=>CX,findUseStrictPrologue:()=>UR,first:()=>Me,firstDefined:()=>C,firstDefinedIterator:()=>k,firstIterator:()=>Pe,firstOrOnly:()=>LQ,firstOrUndefined:()=>De,firstOrUndefinedIterator:()=>Oe,fixupCompilerOptions:()=>R0,flatMap:()=>X,flatMapIterator:()=>$,flatMapToMutable:()=>Y,flatten:()=>J,flattenCommaList:()=>GN,flattenDestructuringAssignment:()=>TU,flattenDestructuringBinding:()=>AU,flattenDiagnosticMessageText:()=>TH,forEach:()=>A,forEachAncestor:()=>hp,forEachAncestorDirectory:()=>Ho,forEachChild:()=>CD,forEachChildRecursively:()=>kD,forEachEmittedFile:()=>aj,forEachEnclosingBlockScopeContainer:()=>Uf,forEachEntry:()=>gp,forEachExternalModuleToImportFrom:()=>XQ,forEachImportClauseDeclaration:()=>Tg,forEachKey:()=>yp,forEachLeadingCommentRange:()=>Gs,forEachNameInAccessChainWalkingLeft:()=>lT,forEachResolvedProjectReference:()=>DH,forEachReturnStatement:()=>Am,forEachRight:()=>L,forEachTrailingCommentRange:()=>Bs,forEachUnique:()=>qY,forEachYieldExpression:()=>Lm,forSomeAncestorDirectory:()=>$E,formatColorAndReset:()=>yH,formatDiagnostic:()=>hH,formatDiagnostics:()=>mH,formatDiagnosticsWithColorAndContext:()=>EH,formatGeneratedName:()=>NN,formatGeneratedNamePart:()=>wN,formatLocation:()=>bH,formatMessage:()=>IT,formatStringFromArgs:()=>bT,formatting:()=>Mfe,fullTripleSlashAMDReferencePathRegEx:()=>y_,fullTripleSlashReferencePathRegEx:()=>h_,generateDjb2Hash:()=>Ca,generateTSConfig:()=>yM,generatorHelper:()=>WL,getAdjustedReferenceLocation:()=>bX,getAdjustedRenameLocation:()=>EX,getAliasDeclarationFromName:()=>cy,getAllAccessorDeclarations:()=>$v,getAllDecoratorsOfClass:()=>_U,getAllDecoratorsOfClassElement:()=>pU,getAllJSDocTags:()=>Nl,getAllJSDocTagsOfKind:()=>Dl,getAllKeys:()=>Xe,getAllProjectOutputs:()=>vj,getAllSuperTypeNodes:()=>hy,getAllUnscopedEmitHelpers:()=>sC,getAllowJSCompilerOption:()=>dx,getAllowSyntheticDefaultImports:()=>nx,getAncestor:()=>vy,getAnyExtensionFromPath:()=>ho,getAreDeclarationMapsEnabled:()=>ZT,getAssignedExpandoInitializer:()=>Wh,getAssignedName:()=>Yc,getAssignmentDeclarationKind:()=>eg,getAssignmentDeclarationPropertyAccessKind:()=>dg,getAssignmentTargetKind:()=>Wg,getAutomaticTypeDirectiveNames:()=>DP,getBaseFileName:()=>fo,getBinaryOperatorPrecedence:()=>iv,getBuildInfo:()=>Aj,getBuildInfoFileVersionMap:()=>OK,getBuildInfoText:()=>Sj,getBuildOrderFromAnyBuildOrder:()=>KW,getBuilderCreationParameters:()=>SK,getBuilderFileEmit:()=>iK,getCheckFlags:()=>FE,getClassExtendsHeritageElement:()=>fy,getClassLikeDeclarationOfSymbol:()=>XE,getCombinedLocalAndExportSymbolFlags:()=>UE,getCombinedModifierFlags:()=>wc,getCombinedNodeFlags:()=>Nc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Rc,getCommentRange:()=>QA,getCommonSourceDirectory:()=>gj,getCommonSourceDirectoryOfConfig:()=>yj,getCompilerOptionValue:()=>mx,getCompilerOptionsDiffValue:()=>hM,getConditions:()=>RP,getConfigFileParsingDiagnostics:()=>BH,getConstantValue:()=>sL,getContainerNode:()=>zJ,getContainingClass:()=>Xm,getContainingClassStaticBlock:()=>Ym,getContainingFunction:()=>qm,getContainingFunctionDeclaration:()=>Jm,getContainingFunctionOrClassStaticBlock:()=>$m,getContainingNodeArray:()=>OS,getContainingObjectLiteralElement:()=>x2,getContextualTypeFromParent:()=>J$,getContextualTypeFromParentOrAncestorTypeNode:()=>mX,getCurrentTime:()=>jW,getDeclarationDiagnostics:()=>DV,getDeclarationEmitExtensionForPath:()=>wv,getDeclarationEmitOutputFilePath:()=>kv,getDeclarationEmitOutputFilePathWorker:()=>Iv,getDeclarationFromName:()=>iy,getDeclarationModifierFlagsFromSymbol:()=>GE,getDeclarationOfKind:()=>cp,getDeclarationsOfKind:()=>lp,getDeclaredExpandoInitializer:()=>Kh,getDecorators:()=>$c,getDefaultCompilerOptions:()=>h2,getDefaultExportInfoWorker:()=>eZ,getDefaultFormatCodeSettings:()=>sJ,getDefaultLibFileName:()=>ac,getDefaultLibFilePath:()=>A2,getDefaultLikeExportInfo:()=>QQ,getDiagnosticText:()=>qO,getDiagnosticsWithinSpan:()=>TQ,getDirectoryPath:()=>po,getDocumentPositionMapper:()=>u0,getESModuleInterop:()=>ex,getEditsForFileRename:()=>AZ,getEffectiveBaseTypeNode:()=>py,getEffectiveConstraintOfTypeParameter:()=>Pl,getEffectiveContainerForJSDocTemplateTag:()=>Gg,getEffectiveImplementsTypeNodes:()=>my,getEffectiveInitializer:()=>Hh,getEffectiveJSDocHost:()=>Ug,getEffectiveModifierFlags:()=>Lb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Cb,getEffectiveModifierFlagsNoCache:()=>wb,getEffectiveReturnTypeNode:()=>eb,getEffectiveSetAccessorTypeAnnotationNode:()=>tb,getEffectiveTypeAnnotationNode:()=>Qv,getEffectiveTypeParameterDeclarations:()=>Ml,getEffectiveTypeRoots:()=>CP,getElementOrPropertyAccessArgumentExpressionOrName:()=>cg,getElementOrPropertyAccessName:()=>lg,getElementsOfBindingOrAssignmentPattern:()=>dN,getEmitDeclarations:()=>ox,getEmitFlags:()=>df,getEmitHelpers:()=>_L,getEmitModuleDetectionKind:()=>qT,getEmitModuleKind:()=>KT,getEmitModuleResolutionKind:()=>zT,getEmitScriptTarget:()=>HT,getEnclosingBlockScopeContainer:()=>Bf,getEncodedSemanticClassifications:()=>dZ,getEncodedSyntacticClassifications:()=>mZ,getEndLinePosition:()=>Bp,getEntityNameFromTypeNode:()=>lh,getEntrypointsFromPackageJsonInfo:()=>mF,getErrorCountForSummary:()=>tW,getErrorSpanForNode:()=>am,getErrorSummaryText:()=>oW,getEscapedTextOfIdentifierOrLiteral:()=>Fy,getExpandoInitializer:()=>zh,getExportAssignmentExpression:()=>uy,getExportInfoMap:()=>$Q,getExportNeedsImportStarHelper:()=>JB,getExpressionAssociativity:()=>Zy,getExpressionPrecedence:()=>nv,getExternalHelpersModuleName:()=>$R,getExternalModuleImportEqualsDeclarationExpression:()=>Sh,getExternalModuleName:()=>vg,getExternalModuleNameFromDeclaration:()=>Av,getExternalModuleNameFromPath:()=>Lv,getExternalModuleNameLiteral:()=>tN,getExternalModuleRequireArgument:()=>Ah,getFallbackOptions:()=>Kj,getFileEmitOutput:()=>eK,getFileMatcherPatterns:()=>Rx,getFileNamesFromConfigSpecs:()=>zM,getFileWatcherEventKind:()=>Fa,getFilesInErrorForSummary:()=>rW,getFirstConstructorWithBody:()=>Hv,getFirstIdentifier:()=>Jb,getFirstNonSpaceCharacterPosition:()=>C$,getFirstProjectOutput:()=>Ej,getFixableErrorSpanExpression:()=>SQ,getFormatCodeSettingsForWriting:()=>UQ,getFullWidth:()=>Ep,getFunctionFlags:()=>ky,getHeritageClause:()=>yy,getHostSignatureFromJSDoc:()=>Bg,getIdentifierAutoGenerate:()=>TL,getIdentifierGeneratedImportReference:()=>SL,getIdentifierTypeArguments:()=>bL,getImmediatelyInvokedFunctionExpression:()=>rh,getImpliedNodeFormatForFile:()=>UH,getImpliedNodeFormatForFileWorker:()=>VH,getImportNeedsImportDefaultHelper:()=>YB,getImportNeedsImportStarHelper:()=>XB,getIndentSize:()=>gv,getIndentString:()=>hv,getInitializedVariables:()=>DE,getInitializerOfBinaryExpression:()=>ug,getInitializerOfBindingOrAssignmentElement:()=>iN,getInterfaceBaseTypeNodes:()=>gy,getInternalEmitFlags:()=>uf,getInvokedExpression:()=>dh,getIsolatedModules:()=>XT,getJSDocAugmentsTag:()=>ol,getJSDocClassTag:()=>cl,getJSDocCommentRanges:()=>Tm,getJSDocCommentsAndTags:()=>Dg,getJSDocDeprecatedTag:()=>yl,getJSDocDeprecatedTagNoCache:()=>vl,getJSDocEnumTag:()=>bl,getJSDocHost:()=>Vg,getJSDocImplementsTags:()=>sl,getJSDocOverrideTagNoCache:()=>gl,getJSDocParameterTags:()=>el,getJSDocParameterTagsNoCache:()=>nl,getJSDocPrivateTag:()=>ul,getJSDocPrivateTagNoCache:()=>_l,getJSDocProtectedTag:()=>pl,getJSDocProtectedTagNoCache:()=>fl,getJSDocPublicTag:()=>ll,getJSDocPublicTagNoCache:()=>dl,getJSDocReadonlyTag:()=>ml,getJSDocReadonlyTagNoCache:()=>hl,getJSDocReturnTag:()=>Tl,getJSDocReturnType:()=>Cl,getJSDocRoot:()=>jg,getJSDocSatisfiesExpressionType:()=>nA,getJSDocSatisfiesTag:()=>Sl,getJSDocTags:()=>Il,getJSDocTagsNoCache:()=>wl,getJSDocTemplateTag:()=>xl,getJSDocThisTag:()=>El,getJSDocType:()=>Ll,getJSDocTypeAliasName:()=>uN,getJSDocTypeAssertionType:()=>WR,getJSDocTypeParameterDeclarations:()=>nb,getJSDocTypeParameterTags:()=>rl,getJSDocTypeParameterTagsNoCache:()=>il,getJSDocTypeTag:()=>Al,getJSXImplicitImportBase:()=>gx,getJSXRuntimeImport:()=>yx,getJSXTransformEnabled:()=>hx,getKeyForCompilerOptions:()=>MP,getLanguageVariant:()=>GT,getLastChild:()=>eT,getLeadingCommentRanges:()=>Hs,getLeadingCommentRangesOfNode:()=>Em,getLeftmostAccessExpression:()=>cT,getLeftmostExpression:()=>dT,getLineAndCharacterOfPosition:()=>Ss,getLineInfo:()=>IB,getLineOfLocalPosition:()=>Vv,getLineOfLocalPositionFromLineMap:()=>jv,getLineStartPositionForPosition:()=>XJ,getLineStarts:()=>bs,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>RE,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>wE,getLinesBetweenPositions:()=>xs,getLinesBetweenRangeEndAndRangeStart:()=>AE,getLinesBetweenRangeEndPositions:()=>LE,getLiteralText:()=>pf,getLocalNameForExternalImport:()=>nN,getLocalSymbolForExportDefault:()=>iE,getLocaleSpecificMessage:()=>xT,getLocaleTimeString:()=>ZK,getMappedContextSpan:()=>$Y,getMappedDocumentSpan:()=>YY,getMappedLocation:()=>XY,getMatchedFileSpec:()=>uW,getMatchedIncludeSpec:()=>_W,getMeaningFromDeclaration:()=>yJ,getMeaningFromLocation:()=>vJ,getMembersOfDeclaration:()=>km,getModeForFileReference:()=>xH,getModeForResolutionAtIndex:()=>SH,getModeForUsageLocation:()=>LH,getModifiedTime:()=>Ia,getModifiers:()=>Qc,getModuleInstanceState:()=>JF,getModuleNameStringLiteralAt:()=>YH,getModuleSpecifierEndingPreference:()=>Hx,getModuleSpecifierResolverHost:()=>CY,getNameForExportedSymbol:()=>kQ,getNameFromIndexInfo:()=>jf,getNameFromPropertyName:()=>TY,getNameOfAccessExpression:()=>aT,getNameOfCompilerOptionValue:()=>pM,getNameOfDeclaration:()=>Xc,getNameOfExpando:()=>Jh,getNameOfJSDocTypedef:()=>zc,getNameOrArgument:()=>sg,getNameTable:()=>T2,getNamesForExportedSymbol:()=>CQ,getNamespaceDeclarationNode:()=>bg,getNewLineCharacter:()=>_E,getNewLineKind:()=>GQ,getNewLineOrDefaultFromHost:()=>m$,getNewTargetContainer:()=>nh,getNextJSDocCommentLocation:()=>Pg,getNodeForGeneratedName:()=>IN,getNodeId:()=>ZG,getNodeKind:()=>qJ,getNodeModifiers:()=>qX,getNodeModulePathParts:()=>KS,getNonAssignedNameOfDeclaration:()=>Jc,getNonAssignmentOperatorForCompoundAssignment:()=>rU,getNonAugmentationDeclaration:()=>Cf,getNonDecoratorTokenPosOfNode:()=>tf,getNormalizedAbsolutePath:()=>So,getNormalizedAbsolutePathWithoutRoot:()=>Lo,getNormalizedPathComponents:()=>xo,getObjectFlags:()=>YE,getOperator:()=>tv,getOperatorAssociativity:()=>ev,getOperatorPrecedence:()=>rv,getOptionFromName:()=>HO,getOptionsNameMap:()=>DO,getOrCreateEmitNode:()=>BA,getOrCreateExternalHelpersModuleNameIfNeeded:()=>eN,getOrUpdate:()=>re,getOriginalNode:()=>Oc,getOriginalNodeId:()=>WB,getOriginalSourceFile:()=>Qy,getOutputDeclarationFileName:()=>_j,getOutputExtension:()=>dj,getOutputFileNames:()=>bj,getOutputPathsFor:()=>cj,getOutputPathsForBundle:()=>sj,getOwnEmitOutputFilePath:()=>Cv,getOwnKeys:()=>Je,getOwnValues:()=>Ye,getPackageJsonInfo:()=>bF,getPackageJsonTypesVersionsPaths:()=>LP,getPackageJsonsVisibleToFile:()=>mQ,getPackageNameFromTypesPackageName:()=>FF,getPackageScopeForPath:()=>yF,getParameterSymbolFromJSDoc:()=>Fg,getParameterTypeNode:()=>WS,getParentNodeInSpan:()=>UY,getParseTreeNode:()=>Fc,getParsedCommandLineOfConfigFile:()=>JO,getPathComponents:()=>go,getPathComponentsRelativeTo:()=>Go,getPathFromPathComponents:()=>yo,getPathUpdater:()=>LZ,getPathsBasePath:()=>Dv,getPatternFromSpec:()=>kx,getPendingEmitKind:()=>aK,getPositionOfLineAndCharacter:()=>ys,getPossibleGenericSignatures:()=>jX,getPossibleOriginalInputExtensionForExtension:()=>Rv,getPossibleTypeArgumentsInfo:()=>HX,getPreEmitDiagnostics:()=>fH,getPrecedingNonSpaceCharacterPosition:()=>k$,getPrivateIdentifier:()=>gU,getProperties:()=>oU,getProperty:()=>qe,getPropertyArrayElementValue:()=>Hm,getPropertyAssignment:()=>jm,getPropertyAssignmentAliasLikeExpression:()=>_y,getPropertyNameForPropertyNameNode:()=>Oy,getPropertyNameForUniqueESSymbol:()=>Gy,getPropertyNameOfBindingOrAssignmentElement:()=>sN,getPropertySymbolFromBindingElement:()=>BY,getPropertySymbolsFromContextualType:()=>S2,getQuoteFromPreference:()=>OY,getQuotePreference:()=>DY,getRangesWhere:()=>le,getRefactorContextSpan:()=>xQ,getReferencedFileLocation:()=>FH,getRegexFromPattern:()=>Nx,getRegularExpressionForWildcard:()=>Ax,getRegularExpressionsForWildcards:()=>Lx,getRelativePathFromDirectory:()=>Bo,getRelativePathFromFile:()=>Vo,getRelativePathToDirectoryOrUrl:()=>jo,getRenameLocation:()=>V$,getReplacementSpanForContextToken:()=>oY,getResolutionDiagnostic:()=>JH,getResolutionModeOverrideForClause:()=>CH,getResolveJsonModule:()=>ax,getResolvePackageJsonExports:()=>rx,getResolvePackageJsonImports:()=>ix,getResolvedExternalModuleName:()=>xv,getResolvedModule:()=>Tp,getResolvedTypeReferenceDirective:()=>Ap,getRestIndicatorOfBindingOrAssignmentElement:()=>oN,getRestParameterElementType:()=>Cm,getRightMostAssignedExpression:()=>Yh,getRootDeclaration:()=>Xy,getRootLength:()=>_o,getScriptKind:()=>x$,getScriptKindFromFileName:()=>Fx,getScriptTargetFeatures:()=>_f,getSelectedEffectiveModifierFlags:()=>xb,getSelectedSyntacticModifierFlags:()=>Sb,getSemanticClassifications:()=>cZ,getSemanticJsxChildren:()=>av,getSetAccessorTypeAnnotationNode:()=>Wv,getSetAccessorValueParameter:()=>Kv,getSetExternalModuleIndicator:()=>jT,getShebang:()=>Ws,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>kg,getSingleVariableOfVariableStatement:()=>Ig,getSnapshotText:()=>vY,getSnippetElement:()=>fL,getSourceFileOfModule:()=>Op,getSourceFileOfNode:()=>Dp,getSourceFilePathInNewDir:()=>Pv,getSourceFilePathInNewDirWorker:()=>Fv,getSourceFileVersionAsHashFromText:()=>bW,getSourceFilesToEmit:()=>Ov,getSourceMapRange:()=>zA,getSourceMapper:()=>d0,getSourceTextOfNodeFromSourceFile:()=>rf,getSpanOfTokenAtPosition:()=>rm,getSpellingSuggestion:()=>Qn,getStartPositionOfLine:()=>Fp,getStartPositionOfRange:()=>IE,getStartsOnNewLine:()=>YA,getStaticPropertiesAndClassStaticBlock:()=>cU,getStrictOptionValue:()=>lx,getStringComparer:()=>zn,getSuperCallFromStatement:()=>iU,getSuperContainer:()=>th,getSupportedCodeFixes:()=>g2,getSupportedExtensions:()=>Gx,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Bx,getSwitchedType:()=>Z$,getSymbolId:()=>eB,getSymbolNameForPrivateIdentifier:()=>By,getSymbolTarget:()=>S$,getSyntacticClassifications:()=>fZ,getSyntacticModifierFlags:()=>kb,getSyntacticModifierFlagsNoCache:()=>Rb,getSynthesizedDeepClone:()=>I$,getSynthesizedDeepCloneWithReplacements:()=>w$,getSynthesizedDeepClones:()=>N$,getSynthesizedDeepClonesWithReplacements:()=>D$,getSyntheticLeadingComments:()=>eL,getSyntheticTrailingComments:()=>rL,getTargetLabel:()=>DJ,getTargetOfBindingOrAssignmentElement:()=>aN,getTemporaryModuleResolutionState:()=>gF,getTextOfConstantValue:()=>ff,getTextOfIdentifierOrLiteral:()=>Py,getTextOfJSDocComment:()=>Ol,getTextOfNode:()=>sf,getTextOfNodeFromSourceText:()=>of,getTextOfPropertyName:()=>Wf,getThisContainer:()=>Qm,getThisParameter:()=>zv,getTokenAtPosition:()=>SX,getTokenPosOfNode:()=>nf,getTokenSourceMapRange:()=>JA,getTouchingPropertyName:()=>TX,getTouchingToken:()=>xX,getTrailingCommentRanges:()=>Ks,getTrailingSemicolonDeferringWriter:()=>bv,getTransformFlagsSubtreeExclusions:()=>wA,getTransformers:()=>jV,getTsBuildInfoEmitOutputFilePath:()=>oj,getTsConfigObjectLiteralExpression:()=>Km,getTsConfigPropArray:()=>zm,getTsConfigPropArrayElementValue:()=>Wm,getTypeAnnotationNode:()=>Zv,getTypeArgumentOrTypeParameterList:()=>JX,getTypeKeywordOfTypeOnlyImport:()=>KY,getTypeNode:()=>yL,getTypeNodeIfAccessible:()=>eQ,getTypeParameterFromJsDoc:()=>Hg,getTypeParameterOwner:()=>Sc,getTypesPackageName:()=>MF,getUILocale:()=>qn,getUniqueName:()=>U$,getUniqueSymbolId:()=>L$,getUseDefineForClassFields:()=>ux,getWatchErrorSummaryDiagnosticMessage:()=>iW,getWatchFactory:()=>Hj,group:()=>an,groupBy:()=>on,guessIndentation:()=>a_,handleNoEmitOptions:()=>HH,hasAbstractModifier:()=>yb,hasAccessorModifier:()=>bb,hasAmbientModifier:()=>vb,hasChangesInResolutions:()=>Rp,hasChildOfKind:()=>lX,hasContextSensitiveParameters:()=>MS,hasDecorators:()=>Tb,hasDocComment:()=>WX,hasDynamicName:()=>Ny,hasEffectiveModifier:()=>pb,hasEffectiveModifiers:()=>ub,hasEffectiveReadonlyModifier:()=>Eb,hasExtension:()=>ao,hasIndexSignature:()=>Q$,hasInitializer:()=>n_,hasInvalidEscape:()=>sv,hasJSDocNodes:()=>Zu,hasJSDocParameterTags:()=>al,hasJSFileExtension:()=>Ux,hasJsonModuleEmitEnabled:()=>JT,hasOnlyExpressionInitializer:()=>t_,hasOverrideModifier:()=>gb,hasPossibleExternalModuleReference:()=>Ff,hasProperty:()=>ze,hasPropertyAccessExpressionWithName:()=>OJ,hasQuestionToken:()=>xg,hasRecordedExternalHelpers:()=>QR,hasRestParameter:()=>c_,hasScopeMarker:()=>bu,hasStaticModifier:()=>hb,hasSyntacticModifier:()=>fb,hasSyntacticModifiers:()=>_b,hasTSFileExtension:()=>Vx,hasTabstop:()=>YS,hasTrailingDirectorySeparator:()=>co,hasType:()=>e_,hasTypeArguments:()=>Kg,hasZeroOrOneAsteriskCharacter:()=>vx,helperString:()=>oC,hostGetCanonicalFileName:()=>Tv,hostUsesCaseSensitiveFileNames:()=>Ev,idText:()=>Uc,identifierIsThisKeyword:()=>Yv,identifierToKeywordKind:()=>Vc,identity:()=>Cn,identitySourceMapConsumer:()=>LB,ignoreSourceNewlines:()=>hL,ignoredPaths:()=>Ea,importDefaultHelper:()=>XL,importFromModuleSpecifier:()=>gg,importNameElisionDisabled:()=>YT,importStarHelper:()=>JL,indexOfAnyCharCode:()=>U,indexOfNode:()=>lf,indicesOf:()=>_e,inferredTypesContainingFile:()=>tH,insertImports:()=>HY,insertLeadingStatement:()=>RR,insertSorted:()=>me,insertStatementAfterCustomPrologue:()=>$p,insertStatementAfterStandardPrologue:()=>Yp,insertStatementsAfterCustomPrologue:()=>Xp,insertStatementsAfterStandardPrologue:()=>Jp,intersperse:()=>R,introducesArgumentsExoticObject:()=>Mm,inverseJsxOptionMap:()=>qD,isAbstractConstructorSymbol:()=>JE,isAbstractModifier:()=>GC,isAccessExpression:()=>iT,isAccessibilityModifier:()=>eY,isAccessor:()=>Gd,isAccessorModifier:()=>UC,isAliasSymbolDeclaration:()=>sy,isAliasableExpression:()=>ly,isAmbientModule:()=>yf,isAmbientPropertyDeclaration:()=>wf,isAnonymousFunctionDefinition:()=>Ky,isAnyDirectorySeparator:()=>Qa,isAnyImportOrBareOrAccessedRequire:()=>Mf,isAnyImportOrReExport:()=>Gf,isAnyImportSyntax:()=>Of,isAnySupportedFileExtension:()=>rS,isApplicableVersionedTypesKey:()=>IF,isArgumentExpressionOfElementAccess:()=>VJ,isArray:()=>gn,isArrayBindingElement:()=>Yd,isArrayBindingOrAssignmentElement:()=>ru,isArrayBindingOrAssignmentPattern:()=>tu,isArrayBindingPattern:()=>Rk,isArrayLiteralExpression:()=>Dk,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>tY,isArrayTypeNode:()=>_k,isArrowFunction:()=>Hk,isAsExpression:()=>iI,isAssertClause:()=>qI,isAssertEntry:()=>JI,isAssertionExpression:()=>hu,isAssertionKey:()=>hd,isAssertsKeyword:()=>OC,isAssignmentDeclaration:()=>jh,isAssignmentExpression:()=>Hb,isAssignmentOperator:()=>Ub,isAssignmentPattern:()=>Xd,isAssignmentTarget:()=>zg,isAsteriskToken:()=>xC,isAsyncFunction:()=>Iy,isAsyncModifier:()=>DC,isAutoAccessorPropertyDeclaration:()=>Bd,isAwaitExpression:()=>qk,isAwaitKeyword:()=>MC,isBigIntLiteral:()=>uC,isBinaryExpression:()=>Yk,isBinaryOperatorToken:()=>xN,isBindableObjectDefinePropertyCall:()=>ng,isBindableStaticAccessExpression:()=>ig,isBindableStaticElementAccessExpression:()=>ag,isBindableStaticNameExpression:()=>og,isBindingElement:()=>Nk,isBindingElementOfBareOrAccessedRequire:()=>Fh,isBindingName:()=>kd,isBindingOrAssignmentElement:()=>Qd,isBindingOrAssignmentPattern:()=>Zd,isBindingPattern:()=>Jd,isBlock:()=>pI,isBlockOrCatchScoped:()=>hf,isBlockScope:()=>Rf,isBlockScopedContainerTopLevel:()=>xf,isBooleanLiteral:()=>Nd,isBreakOrContinueStatement:()=>Yl,isBreakStatement:()=>SI,isBuildInfoFile:()=>ij,isBuilderProgram:()=>sW,isBundle:()=>ww,isBundleFileTextLike:()=>oT,isCallChain:()=>Vl,isCallExpression:()=>Fk,isCallExpressionTarget:()=>EJ,isCallLikeExpression:()=>ou,isCallOrNewExpression:()=>su,isCallOrNewExpressionTarget:()=>xJ,isCallSignatureDeclaration:()=>rk,isCallToHelper:()=>cC,isCaseBlock:()=>VI,isCaseClause:()=>bw,isCaseKeyword:()=>HC,isCaseOrDefaultClause:()=>qu,isCatchClause:()=>xw,isCatchClauseVariableDeclaration:()=>FS,isCatchClauseVariableDeclarationOrBindingElement:()=>gf,isCheckJsEnabledForFile:()=>aS,isChildOfNodeWithKind:()=>Sm,isCircularBuildOrder:()=>HW,isClassDeclaration:()=>MI,isClassElement:()=>Pd,isClassExpression:()=>nI,isClassLike:()=>Fd,isClassMemberModifier:()=>Sd,isClassOrTypeElement:()=>Kd,isClassStaticBlockDeclaration:()=>ZC,isCollapsedRange:()=>yE,isColonToken:()=>LC,isCommaExpression:()=>jR,isCommaListExpression:()=>dI,isCommaSequence:()=>HR,isCommaToken:()=>bC,isComment:()=>XX,isCommonJsExportPropertyAssignment:()=>Dm,isCommonJsExportedExpression:()=>Nm,isCompoundAssignment:()=>tU,isComputedNonLiteralName:()=>Hf,isComputedPropertyName:()=>WC,isConciseBody:()=>Su,isConditionalExpression:()=>$k,isConditionalTypeNode:()=>vk,isConstTypeReference:()=>ql,isConstructSignatureDeclaration:()=>ik,isConstructorDeclaration:()=>ek,isConstructorTypeNode:()=>lk,isContextualKeyword:()=>Ey,isContinueStatement:()=>xI,isCustomPrologue:()=>gm,isDebuggerStatement:()=>RI,isDeclaration:()=>Pu,isDeclarationBindingElement:()=>$d,isDeclarationFileName:()=>GD,isDeclarationName:()=>ry,isDeclarationNameOfEnumOrNamespace:()=>NE,isDeclarationReadonly:()=>lm,isDeclarationStatement:()=>Fu,isDeclarationWithTypeParameterChildren:()=>Df,isDeclarationWithTypeParameters:()=>Nf,isDecorator:()=>JC,isDecoratorTarget:()=>AJ,isDefaultClause:()=>Ew,isDefaultImport:()=>Eg,isDefaultModifier:()=>NC,isDefaultedExpandoInitializer:()=>qh,isDeleteExpression:()=>Kk,isDeleteTarget:()=>ny,isDeprecatedDeclaration:()=>PQ,isDestructuringAssignment:()=>Wb,isDiagnosticWithLocation:()=>bQ,isDiskPathRoot:()=>no,isDoStatement:()=>yI,isDotDotDotToken:()=>vC,isDottedName:()=>Xb,isDynamicName:()=>Dy,isESSymbolIdentifier:()=>jy,isEffectiveExternalModule:()=>kf,isEffectiveModuleDeclaration:()=>Ef,isEffectiveStrictModeSourceFile:()=>If,isElementAccessChain:()=>Ul,isElementAccessExpression:()=>Pk,isEmittedFileOfProgram:()=>jj,isEmptyArrayLiteral:()=>rE,isEmptyBindingElement:()=>Cc,isEmptyBindingPattern:()=>Lc,isEmptyObjectLiteral:()=>tE,isEmptyStatement:()=>mI,isEmptyStringLiteral:()=>gh,isEndOfDeclarationMarker:()=>sw,isEntityName:()=>Ld,isEntityNameExpression:()=>qb,isEnumConst:()=>cm,isEnumDeclaration:()=>GI,isEnumMember:()=>Cw,isEqualityOperatorKind:()=>Y$,isEqualsGreaterThanToken:()=>kC,isExclamationToken:()=>SC,isExcludedFile:()=>qM,isExclusivelyTypeOnlyImportOrExport:()=>AH,isExportAssignment:()=>ZI,isExportDeclaration:()=>ew,isExportModifier:()=>RC,isExportName:()=>GR,isExportNamespaceAsDefaultDeclaration:()=>af,isExportOrDefaultModifier:()=>LN,isExportSpecifier:()=>tw,isExportsIdentifier:()=>$h,isExportsOrModuleExportsOrAlias:()=>nG,isExpression:()=>mu,isExpressionNode:()=>vh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>WJ,isExpressionOfOptionalChainRoot:()=>Kl,isExpressionStatement:()=>hI,isExpressionWithTypeArguments:()=>rI,isExpressionWithTypeArgumentsInClassExtendsClause:()=>zb,isExternalModule:()=>OD,isExternalModuleAugmentation:()=>Af,isExternalModuleImportEqualsDeclaration:()=>xh,isExternalModuleIndicator:()=>Tu,isExternalModuleNameRelative:()=>rc,isExternalModuleReference:()=>cw,isExternalModuleSymbol:()=>gY,isExternalOrCommonJsModule:()=>om,isFileLevelUniqueName:()=>Up,isFileProbablyExternalModule:()=>sD,isFirstDeclarationOfSymbolParameter:()=>QY,isFixablePromiseHandler:()=>b0,isForInOrOfStatement:()=>xu,isForInStatement:()=>EI,isForInitializer:()=>Lu,isForOfStatement:()=>TI,isForStatement:()=>bI,isFunctionBlock:()=>Fm,isFunctionBody:()=>Au,isFunctionDeclaration:()=>OI,isFunctionExpression:()=>jk,isFunctionExpressionOrArrowFunction:()=>BS,isFunctionLike:()=>Id,isFunctionLikeDeclaration:()=>Rd,isFunctionLikeKind:()=>Od,isFunctionLikeOrClassStaticBlockDeclaration:()=>wd,isFunctionOrConstructorTypeNode:()=>qd,isFunctionOrModuleBlock:()=>Md,isFunctionSymbol:()=>mg,isFunctionTypeNode:()=>ck,isFutureReservedKeyword:()=>xy,isGeneratedIdentifier:()=>yd,isGeneratedPrivateIdentifier:()=>vd,isGetAccessor:()=>Qu,isGetAccessorDeclaration:()=>nk,isGetOrSetAccessorDeclaration:()=>Gl,isGlobalDeclaration:()=>OQ,isGlobalScopeAugmentation:()=>Sf,isGrammarError:()=>Hp,isHeritageClause:()=>Tw,isHoistedFunction:()=>ym,isHoistedVariableStatement:()=>bm,isIdentifier:()=>IC,isIdentifierANonContextualKeyword:()=>Ly,isIdentifierName:()=>oy,isIdentifierOrThisTypeNode:()=>gN,isIdentifierPart:()=>qs,isIdentifierStart:()=>zs,isIdentifierText:()=>Js,isIdentifierTypePredicate:()=>Um,isIdentifierTypeReference:()=>bS,isIfStatement:()=>gI,isIgnoredFileFromWildCardWatching:()=>Vj,isImplicitGlob:()=>Cx,isImportCall:()=>pm,isImportClause:()=>WI,isImportDeclaration:()=>KI,isImportEqualsDeclaration:()=>HI,isImportKeyword:()=>jC,isImportMeta:()=>fm,isImportOrExportSpecifier:()=>_d,isImportOrExportSpecifierName:()=>T$,isImportSpecifier:()=>QI,isImportTypeAssertionContainer:()=>zI,isImportTypeNode:()=>Ck,isImportableFile:()=>JQ,isInComment:()=>KX,isInExpressionContext:()=>bh,isInJSDoc:()=>Nh,isInJSFile:()=>Ih,isInJSXText:()=>FX,isInJsonFile:()=>wh,isInNonReferenceComment:()=>iY,isInReferenceComment:()=>rY,isInRightSideOfInternalImportEqualsDeclaration:()=>bJ,isInString:()=>DX,isInTemplateString:()=>PX,isInTopLevelContext:()=>eh,isIncrementalCompilation:()=>cx,isIndexSignatureDeclaration:()=>ak,isIndexedAccessTypeNode:()=>Sk,isInferTypeNode:()=>bk,isInfinityOrNaNString:()=>PS,isInitializedProperty:()=>lU,isInitializedVariable:()=>OE,isInsideJsxElement:()=>GX,isInsideJsxElementOrAttribute:()=>OX,isInsideNodeModules:()=>vQ,isInsideTemplateLiteral:()=>ZX,isInstantiatedModule:()=>nB,isInterfaceDeclaration:()=>PI,isInternalDeclaration:()=>MV,isInternalModuleImportEqualsDeclaration:()=>Lh,isInternalName:()=>PR,isIntersectionTypeNode:()=>yk,isIntrinsicJsxName:()=>mv,isIterationStatement:()=>yu,isJSDoc:()=>zw,isJSDocAllType:()=>Gw,isJSDocAugmentsTag:()=>Xw,isJSDocAuthorTag:()=>Yw,isJSDocCallbackTag:()=>Qw,isJSDocClassTag:()=>$w,isJSDocCommentContainingNode:()=>Xu,isJSDocConstructSignature:()=>Sg,isJSDocDeprecatedTag:()=>aR,isJSDocEnumTag:()=>sR,isJSDocFunctionType:()=>Hw,isJSDocImplementsTag:()=>hR,isJSDocIndexSignature:()=>Dh,isJSDocLikeText:()=>oD,isJSDocLink:()=>Mw,isJSDocLinkCode:()=>Pw,isJSDocLinkLike:()=>s_,isJSDocLinkPlain:()=>Fw,isJSDocMemberName:()=>Ow,isJSDocNameReference:()=>Dw,isJSDocNamepathType:()=>Ww,isJSDocNamespaceBody:()=>Iu,isJSDocNode:()=>Ju,isJSDocNonNullableType:()=>Vw,isJSDocNullableType:()=>Uw,isJSDocOptionalParameter:()=>$S,isJSDocOptionalType:()=>jw,isJSDocOverloadTag:()=>iR,isJSDocOverrideTag:()=>rR,isJSDocParameterTag:()=>cR,isJSDocPrivateTag:()=>eR,isJSDocPropertyLikeTag:()=>ed,isJSDocPropertyTag:()=>mR,isJSDocProtectedTag:()=>nR,isJSDocPublicTag:()=>Zw,isJSDocReadonlyTag:()=>tR,isJSDocReturnTag:()=>lR,isJSDocSatisfiesExpression:()=>eA,isJSDocSatisfiesTag:()=>gR,isJSDocSeeTag:()=>oR,isJSDocSignature:()=>Jw,isJSDocTag:()=>Yu,isJSDocTemplateTag:()=>_R,isJSDocThisTag:()=>dR,isJSDocThrowsTag:()=>yR,isJSDocTypeAlias:()=>Ag,isJSDocTypeAssertion:()=>KR,isJSDocTypeExpression:()=>Nw,isJSDocTypeLiteral:()=>qw,isJSDocTypeTag:()=>uR,isJSDocTypedefTag:()=>pR,isJSDocUnknownTag:()=>fR,isJSDocUnknownType:()=>Bw,isJSDocVariadicType:()=>Kw,isJSXTagName:()=>yh,isJsonEqual:()=>pS,isJsonSourceFile:()=>sm,isJsxAttribute:()=>hw,isJsxAttributeLike:()=>Ku,isJsxAttributes:()=>gw,isJsxChild:()=>Hu,isJsxClosingElement:()=>_w,isJsxClosingFragment:()=>mw,isJsxElement:()=>lw,isJsxExpression:()=>vw,isJsxFragment:()=>pw,isJsxOpeningElement:()=>uw,isJsxOpeningFragment:()=>fw,isJsxOpeningLikeElement:()=>zu,isJsxOpeningLikeElementTagName:()=>LJ,isJsxSelfClosingElement:()=>dw,isJsxSpreadAttribute:()=>yw,isJsxTagNameExpression:()=>ju,isJsxText:()=>pC,isJumpStatementTarget:()=>MJ,isKeyword:()=>by,isKnownSymbol:()=>Uy,isLabelName:()=>FJ,isLabelOfLabeledStatement:()=>PJ,isLabeledStatement:()=>kI,isLateVisibilityPaintedStatement:()=>Pf,isLeftHandSideExpression:()=>lu,isLeftHandSideOfAssignment:()=>Kb,isLet:()=>um,isLineBreak:()=>Cs,isLiteralComputedPropertyDeclarationName:()=>ay,isLiteralExpression:()=>sd,isLiteralExpressionOfObject:()=>cd,isLiteralImportTypeNode:()=>mm,isLiteralKind:()=>od,isLiteralLikeAccess:()=>tg,isLiteralLikeElementAccess:()=>rg,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>KJ,isLiteralTypeLikeExpression:()=>EN,isLiteralTypeLiteral:()=>fu,isLiteralTypeNode:()=>Lk,isLocalName:()=>FR,isLogicalOperator:()=>Mb,isLogicalOrCoalescingAssignmentExpression:()=>Fb,isLogicalOrCoalescingAssignmentOperator:()=>Pb,isLogicalOrCoalescingBinaryExpression:()=>Bb,isLogicalOrCoalescingBinaryOperator:()=>Gb,isMappedTypeNode:()=>Ak,isMemberName:()=>Fl,isMergeDeclarationMarker:()=>ow,isMetaProperty:()=>sI,isMethodDeclaration:()=>QC,isMethodOrAccessor:()=>Ud,isMethodSignature:()=>$C,isMinusToken:()=>TC,isMissingDeclaration:()=>rw,isModifier:()=>Ad,isModifierKind:()=>Td,isModifierLike:()=>jd,isModuleAugmentationExternal:()=>Lf,isModuleBlock:()=>UI,isModuleBody:()=>Cu,isModuleDeclaration:()=>BI,isModuleExportsAccessExpression:()=>Zh,isModuleIdentifier:()=>Qh,isModuleName:()=>bN,isModuleOrEnumDeclaration:()=>Ru,isModuleReference:()=>Vu,isModuleSpecifierLike:()=>FY,isModuleWithStringLiteralName:()=>vf,isNameOfFunctionDeclaration:()=>HJ,isNameOfModuleDeclaration:()=>jJ,isNamedClassElement:()=>Vd,isNamedDeclaration:()=>qc,isNamedEvaluation:()=>zy,isNamedEvaluationSource:()=>Wy,isNamedExportBindings:()=>$l,isNamedExports:()=>nw,isNamedImportBindings:()=>wu,isNamedImports:()=>$I,isNamedImportsOrExports:()=>sT,isNamedTupleMember:()=>fk,isNamespaceBody:()=>ku,isNamespaceExport:()=>YI,isNamespaceExportDeclaration:()=>jI,isNamespaceImport:()=>XI,isNamespaceReexportDeclaration:()=>Th,isNewExpression:()=>Gk,isNewExpressionTarget:()=>TJ,isNightly:()=>yv,isNoSubstitutionTemplateLiteral:()=>mC,isNode:()=>nd,isNodeArray:()=>ad,isNodeArrayMultiLine:()=>CE,isNodeDescendantOf:()=>ty,isNodeKind:()=>td,isNodeLikeSystem:()=>wt,isNodeModulesDirectory:()=>Ko,isNodeWithPossibleHoistedDeclaration:()=>qg,isNonContextualKeyword:()=>Ty,isNonExportDefaultModifier:()=>CN,isNonGlobalAmbientModule:()=>bf,isNonGlobalDeclaration:()=>MQ,isNonNullAccess:()=>ZS,isNonNullChain:()=>Xl,isNonNullExpression:()=>oI,isNonStaticMethodOrAccessorWithPrivateName:()=>dU,isNotEmittedOrPartiallyEmittedNode:()=>gu,isNotEmittedStatement:()=>iw,isNullishCoalesce:()=>zl,isNumber:()=>bn,isNumericLiteral:()=>dC,isNumericLiteralName:()=>VS,isObjectBindingElementWithoutPropertyName:()=>GY,isObjectBindingOrAssignmentElement:()=>nu,isObjectBindingOrAssignmentPattern:()=>eu,isObjectBindingPattern:()=>wk,isObjectLiteralElement:()=>r_,isObjectLiteralElementLike:()=>Wd,isObjectLiteralExpression:()=>Ok,isObjectLiteralMethod:()=>Gm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Bm,isObjectTypeDeclaration:()=>tT,isOctalDigit:()=>ws,isOmittedExpression:()=>tI,isOptionalChain:()=>jl,isOptionalChainRoot:()=>Hl,isOptionalDeclaration:()=>QS,isOptionalJSDocPropertyLikeTag:()=>JS,isOptionalTypeNode:()=>mk,isOuterExpression:()=>zR,isOutermostOptionalChain:()=>Wl,isOverrideModifier:()=>BC,isPackedArrayLiteral:()=>RS,isParameter:()=>qC,isParameterDeclaration:()=>Jy,isParameterOrCatchClauseVariable:()=>GS,isParameterPropertyDeclaration:()=>Ac,isParameterPropertyModifier:()=>xd,isParenthesizedExpression:()=>Vk,isParenthesizedTypeNode:()=>Ek,isParseTreeNode:()=>Pc,isPartOfTypeNode:()=>xm,isPartOfTypeQuery:()=>Eh,isPartiallyEmittedExpression:()=>lI,isPatternMatch:()=>ht,isPinnedComment:()=>Zp,isPlainJsFile:()=>Mp,isPlusToken:()=>EC,isPossiblyTypeArgumentPosition:()=>VX,isPostfixUnaryExpression:()=>Xk,isPrefixUnaryExpression:()=>Jk,isPrivateIdentifier:()=>wC,isPrivateIdentifierClassElementDeclaration:()=>bd,isPrivateIdentifierPropertyAccessExpression:()=>Ed,isPrivateIdentifierSymbol:()=>Vy,isProgramBundleEmitBuildInfo:()=>bK,isProgramUptoDate:()=>GH,isPrologueDirective:()=>hm,isPropertyAccessChain:()=>Bl,isPropertyAccessEntityNameExpression:()=>Yb,isPropertyAccessExpression:()=>Mk,isPropertyAccessOrQualifiedName:()=>au,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>iu,isPropertyAssignment:()=>Sw,isPropertyDeclaration:()=>YC,isPropertyName:()=>Cd,isPropertyNameLiteral:()=>My,isPropertySignature:()=>XC,isProtoSetter:()=>Hy,isPrototypeAccess:()=>Qb,isPrototypePropertyAssignment:()=>_g,isPunctuation:()=>QX,isPushOrUnshiftIdentifier:()=>qy,isQualifiedName:()=>KC,isQuestionDotToken:()=>CC,isQuestionOrExclamationToken:()=>hN,isQuestionOrPlusOrMinusToken:()=>vN,isQuestionToken:()=>AC,isRawSourceMap:()=>NB,isReadonlyKeyword:()=>PC,isReadonlyKeywordOrPlusOrMinusToken:()=>yN,isRecognizedTripleSlashComment:()=>Qp,isReferenceFileLocation:()=>PH,isReferencedFile:()=>MH,isRegularExpressionLiteral:()=>fC,isRequireCall:()=>Oh,isRequireVariableStatement:()=>Bh,isRestParameter:()=>l_,isRestTypeNode:()=>hk,isReturnStatement:()=>AI,isReturnStatementWithFixablePromiseHandler:()=>v0,isRightSideOfAccessExpression:()=>eE,isRightSideOfPropertyAccess:()=>UJ,isRightSideOfQualifiedName:()=>BJ,isRightSideOfQualifiedNameOrPropertyAccess:()=>Zb,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>nE,isRootedDiskPath:()=>eo,isSameEntityName:()=>Xh,isSatisfiesExpression:()=>aI,isScopeMarker:()=>vu,isSemicolonClassElement:()=>_I,isSetAccessor:()=>$u,isSetAccessorDeclaration:()=>tk,isShebangTrivia:()=>Ms,isShorthandAmbientModuleSymbol:()=>Tf,isShorthandPropertyAssignment:()=>Aw,isSignedNumericLiteral:()=>Ry,isSimpleCopiableExpression:()=>eU,isSimpleInlineableExpression:()=>nU,isSingleOrDoubleQuote:()=>Uh,isSourceFile:()=>Iw,isSourceFileFromLibrary:()=>jQ,isSourceFileJS:()=>Ch,isSourceFileNotJS:()=>kh,isSourceFileNotJson:()=>Rh,isSourceMapping:()=>PB,isSpecialPropertyDeclaration:()=>pg,isSpreadAssignment:()=>Lw,isSpreadElement:()=>eI,isStatement:()=>Bu,isStatementButNotDeclaration:()=>Gu,isStatementOrBlock:()=>Uu,isStatementWithLocals:()=>Pp,isStatic:()=>mb,isStaticModifier:()=>FC,isString:()=>vn,isStringAKeyword:()=>Ay,isStringANonContextualKeyword:()=>Sy,isStringAndEmptyAnonymousObjectIntersection:()=>$X,isStringDoubleQuoted:()=>Vh,isStringLiteral:()=>_C,isStringLiteralLike:()=>o_,isStringLiteralOrJsxExpression:()=>Wu,isStringLiteralOrTemplate:()=>$$,isStringOrNumericLiteralLike:()=>wy,isStringOrRegularExpressionOrTemplateLiteral:()=>YX,isStringTextContainingNode:()=>gd,isSuperCall:()=>_m,isSuperKeyword:()=>VC,isSuperOrSuperProperty:()=>ih,isSuperProperty:()=>ah,isSupportedSourceFileName:()=>Kx,isSwitchStatement:()=>CI,isSyntaxList:()=>vR,isSyntheticExpression:()=>cI,isSyntheticReference:()=>aw,isTagName:()=>GJ,isTaggedTemplateExpression:()=>Bk,isTaggedTemplateTag:()=>SJ,isTemplateExpression:()=>Qk,isTemplateHead:()=>hC,isTemplateLiteral:()=>cu,isTemplateLiteralKind:()=>ld,isTemplateLiteralToken:()=>dd,isTemplateLiteralTypeNode:()=>Ik,isTemplateLiteralTypeSpan:()=>kk,isTemplateMiddle:()=>gC,isTemplateMiddleOrTemplateTail:()=>ud,isTemplateSpan:()=>uI,isTemplateTail:()=>yC,isTextWhiteSpaceLike:()=>JY,isThis:()=>JJ,isThisContainerOrFunctionBlock:()=>Zm,isThisIdentifier:()=>Jv,isThisInTypeQuery:()=>Xv,isThisInitializedDeclaration:()=>sh,isThisInitializedObjectBindingExpression:()=>ch,isThisProperty:()=>oh,isThisTypeNode:()=>Tk,isThisTypeParameter:()=>HS,isThisTypePredicate:()=>Vm,isThrowStatement:()=>II,isToken:()=>id,isTokenKind:()=>rd,isTraceEnabled:()=>pP,isTransientSymbol:()=>up,isTrivia:()=>Cy,isTryStatement:()=>wI,isTupleTypeNode:()=>pk,isTypeAlias:()=>Lg,isTypeAliasDeclaration:()=>FI,isTypeAssertionExpression:()=>Uk,isTypeDeclaration:()=>zS,isTypeElement:()=>Hd,isTypeKeyword:()=>fY,isTypeKeywordToken:()=>mY,isTypeKeywordTokenOrIdentifier:()=>hY,isTypeLiteralNode:()=>uk,isTypeNode:()=>zd,isTypeNodeKind:()=>rT,isTypeOfExpression:()=>Wk,isTypeOnlyExportDeclaration:()=>fd,isTypeOnlyImportDeclaration:()=>pd,isTypeOnlyImportOrExportDeclaration:()=>md,isTypeOperatorNode:()=>xk,isTypeParameterDeclaration:()=>zC,isTypePredicateNode:()=>ok,isTypeQueryNode:()=>dk,isTypeReferenceNode:()=>sk,isTypeReferenceType:()=>i_,isUMDExportSymbol:()=>QE,isUnaryExpression:()=>uu,isUnaryExpressionWithWrite:()=>pu,isUnicodeIdentifierStart:()=>fs,isUnionTypeNode:()=>gk,isUnparsedNode:()=>Zl,isUnparsedPrepend:()=>kw,isUnparsedSource:()=>Rw,isUnparsedTextLike:()=>Ql,isUrl:()=>Za,isValidBigIntString:()=>yS,isValidESSymbolDeclaration:()=>Om,isValidTypeOnlyAliasUseSite:()=>vS,isValueSignatureDeclaration:()=>Jg,isVarConst:()=>dm,isVariableDeclaration:()=>NI,isVariableDeclarationInVariableStatement:()=>Rm,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Ph,isVariableDeclarationInitializedToRequire:()=>Mh,isVariableDeclarationList:()=>DI,isVariableLike:()=>Im,isVariableLikeOrAccessor:()=>wm,isVariableStatement:()=>fI,isVoidExpression:()=>zk,isWatchSet:()=>ME,isWhileStatement:()=>vI,isWhiteSpaceLike:()=>As,isWhiteSpaceSingleLine:()=>Ls,isWithStatement:()=>LI,isWriteAccess:()=>jE,isWriteOnlyAccess:()=>VE,isYieldExpression:()=>Zk,jsxModeNeedsExplicitImport:()=>VQ,keywordPart:()=>t$,last:()=>Ge,lastOrUndefined:()=>Fe,length:()=>S,libMap:()=>YD,libs:()=>XD,lineBreakPart:()=>h$,linkNamePart:()=>_$,linkPart:()=>p$,linkTextPart:()=>u$,listFiles:()=>cW,loadModuleFromGlobalCache:()=>jF,loadWithModeAwareCache:()=>NH,makeIdentifierFromModuleName:()=>mf,makeImport:()=>wY,makeImportIfNecessary:()=>IY,makeStringLiteral:()=>RY,mangleScopedPackageName:()=>PF,map:()=>W,mapAllOrFail:()=>Z,mapDefined:()=>ee,mapDefinedEntries:()=>te,mapDefinedIterator:()=>ne,mapEntries:()=>se,mapIterator:()=>z,mapOneOrMany:()=>AQ,mapToDisplayParts:()=>g$,matchFiles:()=>Dx,matchPatternOrExact:()=>oS,matchedText:()=>ut,matchesExclude:()=>XM,maybeBind:()=>dn,maybeSetLocalizedDiagnosticMessages:()=>TT,memoize:()=>Rn,memoizeCached:()=>On,memoizeOne:()=>Nn,memoizeWeak:()=>Dn,metadataHelper:()=>CL,min:()=>jn,minAndMax:()=>lS,missingFileModifiedTime:()=>ga,modifierToFlag:()=>Db,modifiersToFlags:()=>Nb,moduleOptionDeclaration:()=>eO,moduleResolutionIsEqualTo:()=>Cp,moduleResolutionNameAndModeGetter:()=>eH,moduleResolutionOptionDeclarations:()=>oO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>tx,moduleResolutionUsesNodeModules:()=>kY,moduleSpecifiers:()=>MG,moveEmitHelpers:()=>pL,moveRangeEnd:()=>fE,moveRangePastDecorators:()=>hE,moveRangePastModifiers:()=>gE,moveRangePos:()=>mE,moveSyntheticComments:()=>oL,mutateMap:()=>qE,mutateMapSkippingNewValues:()=>zE,needsParentheses:()=>q$,needsScopeMarker:()=>Eu,newCaseClauseTracker:()=>HQ,newPrivateEnvironment:()=>hU,noEmitNotification:()=>XV,noEmitSubstitution:()=>JV,noTransformers:()=>BV,noTruncationMaximumTruncationLength:()=>p_,nodeCanBeDecorated:()=>uh,nodeHasName:()=>Wc,nodeIsDecorated:()=>_h,nodeIsMissing:()=>Vp,nodeIsPresent:()=>jp,nodeIsSynthesized:()=>$y,nodeModuleNameResolver:()=>ZP,nodeModulesPathPart:()=>lP,nodeNextJsonConfigResolver:()=>eF,nodeOrChildIsDecorated:()=>ph,nodeOverlapsWithStartEnd:()=>rX,nodePosToString:()=>Gp,nodeSeenTracker:()=>yY,nodeStartsNewLexicalEnvironment:()=>Yy,nodeToDisplayParts:()=>E$,noop:()=>xn,noopFileWatcher:()=>qK,noopPush:()=>d,normalizePath:()=>Ao,normalizeSlashes:()=>vo,not:()=>vt,notImplemented:()=>wn,notImplementedResolver:()=>QV,nullNodeConverters:()=>cA,nullParenthesizerRules:()=>aA,nullTransformationContext:()=>UV,objectAllocator:()=>F_,operatorPart:()=>i$,optionDeclarations:()=>tO,optionMapToObject:()=>dM,optionsAffectingProgramStructure:()=>cO,optionsForBuild:()=>dO,optionsForWatch:()=>$D,optionsHaveChanges:()=>mp,optionsHaveModuleResolutionChanges:()=>pp,or:()=>yt,orderedRemoveItem:()=>at,orderedRemoveItemAt:()=>ot,outFile:()=>Nv,packageIdToPackageName:()=>kp,packageIdToString:()=>Ip,padLeft:()=>At,padRight:()=>Lt,paramHelper:()=>kL,parameterIsThisKeyword:()=>qv,parameterNamePart:()=>a$,parseBaseNodeFactory:()=>XN,parseBigInt:()=>hS,parseBuildCommand:()=>zO,parseCommandLine:()=>jO,parseCommandLineWorker:()=>UO,parseConfigFileTextToJson:()=>YO,parseConfigFileWithSystem:()=>nW,parseConfigHostFromCompilerHostLike:()=>WH,parseCustomTypeOption:()=>PO,parseIsolatedEntityName:()=>ND,parseIsolatedJSDocComment:()=>PD,parseJSDocTypeExpressionForTests:()=>FD,parseJsonConfigFileContent:()=>EM,parseJsonSourceFileConfigFileContent:()=>TM,parseJsonText:()=>DD,parseListTypeOption:()=>FO,parseNodeFactory:()=>YN,parseNodeModuleFromPath:()=>aF,parsePackageName:()=>xF,parsePseudoBigInt:()=>fS,parseValidBigInt:()=>gS,patchWriteFileEnsuringDirectory:()=>Ka,pathContainsNodeModules:()=>iF,pathIsAbsolute:()=>to,pathIsBareSpecifier:()=>io,pathIsRelative:()=>ro,patternText:()=>dt,perfLogger:()=>mr,performIncrementalCompilation:()=>CW,performance:()=>Ur,plainJSErrors:()=>rH,positionBelongsToNode:()=>aX,positionIsASICandidate:()=>aQ,positionIsSynthesized:()=>Zx,positionsAreOnSameLine:()=>kE,preProcessFile:()=>s0,probablyUsesSemicolons:()=>oQ,processCommentPragmas:()=>BD,processPragmasIntoFields:()=>UD,processTaggedTemplateExpression:()=>DU,programContainsEsModules:()=>SY,programContainsModules:()=>xY,projectReferenceIsEqualTo:()=>Lp,propKeyHelper:()=>jL,propertyNamePart:()=>o$,pseudoBigIntToString:()=>mS,punctuationPart:()=>r$,pushIfUnique:()=>Le,quote:()=>X$,quotePreferenceFromString:()=>NY,rangeContainsPosition:()=>QJ,rangeContainsPositionExclusive:()=>ZJ,rangeContainsRange:()=>YJ,rangeContainsRangeExclusive:()=>$J,rangeContainsStartEnd:()=>nX,rangeEndIsOnSameLineAsRangeStart:()=>SE,rangeEndPositionsAreOnSameLine:()=>TE,rangeEquals:()=>Ne,rangeIsOnSingleLine:()=>bE,rangeOfNode:()=>dS,rangeOfTypeParameters:()=>uS,rangeOverlapsWithStartEnd:()=>tX,rangeStartIsOnSameLineAsRangeEnd:()=>xE,rangeStartPositionsAreOnSameLine:()=>EE,readBuilderProgram:()=>IW,readConfigFile:()=>XO,readHelper:()=>UL,readJson:()=>dE,readJsonConfigFile:()=>$O,readJsonOrUndefined:()=>lE,realizeDiagnostics:()=>V2,reduceEachLeadingCommentRange:()=>Us,reduceEachTrailingCommentRange:()=>Vs,reduceLeft:()=>We,reduceLeftIterator:()=>I,reducePathComponents:()=>bo,refactor:()=>Xde,regExpEscape:()=>xx,relativeComplement:()=>Ee,removeAllComments:()=>VA,removeEmitHelper:()=>uL,removeExtension:()=>Xx,removeFileExtension:()=>qx,removeIgnoredPath:()=>VK,removeMinAndVersionNumbers:()=>it,removeOptionality:()=>UX,removePrefix:()=>ft,removeSuffix:()=>nt,removeTrailingDirectorySeparator:()=>ko,repeatString:()=>bY,replaceElement:()=>je,resolutionExtensionIsTSOrJson:()=>nS,resolveConfigFileProjectName:()=>PW,resolveJSModule:()=>YP,resolveModuleName:()=>JP,resolveModuleNameFromCache:()=>qP,resolvePackageNameToPackageJson:()=>NP,resolvePath:()=>To,resolveProjectReferencePath:()=>qH,resolveTripleslashReference:()=>sH,resolveTypeReferenceDirective:()=>IP,resolvingEmptyArray:()=>d_,restHelper:()=>PL,returnFalse:()=>Sn,returnNoopFileWatcher:()=>JK,returnTrue:()=>An,returnUndefined:()=>Ln,returnsPromise:()=>y0,runInitializersHelper:()=>wL,sameFlatMap:()=>Q,sameMap:()=>q,sameMapping:()=>MB,scanShebangTrivia:()=>Ps,scanTokenAtPosition:()=>im,scanner:()=>cJ,screenStartingMessageCodes:()=>zK,semanticDiagnosticsOptionDeclarations:()=>rO,serializeCompilerOptions:()=>fM,server:()=>Mq,servicesVersion:()=>j1,setCommentRange:()=>ZA,setConfigFileInOptions:()=>xM,setConstantValue:()=>cL,setEachParent:()=>kS,setEmitFlags:()=>jA,setFunctionNameHelper:()=>HL,setGetSourceFileAsHashVersioned:()=>EW,setIdentifierAutoGenerate:()=>EL,setIdentifierGeneratedImportReference:()=>xL,setIdentifierTypeArguments:()=>vL,setInternalEmitFlags:()=>KA,setLocalizedDiagnosticMessages:()=>ET,setModuleDefaultHelper:()=>qL,setNodeFlags:()=>LS,setObjectAllocator:()=>vT,setOriginalNode:()=>FA,setParent:()=>CS,setParentRecursive:()=>IS,setPrivateIdentifier:()=>yU,setResolvedModule:()=>xp,setResolvedTypeReferenceDirective:()=>Sp,setSnippetElement:()=>mL,setSourceMapRange:()=>qA,setStackTraceLimit:()=>ka,setStartsOnNewLine:()=>$A,setSyntheticLeadingComments:()=>nL,setSyntheticTrailingComments:()=>iL,setSys:()=>Wa,setSysLog:()=>Ba,setTextRange:()=>VN,setTextRangeEnd:()=>xS,setTextRangePos:()=>TS,setTextRangePosEnd:()=>SS,setTextRangePosWidth:()=>AS,setTokenSourceMapRange:()=>XA,setTypeNode:()=>gL,setUILocale:()=>Jn,setValueDeclaration:()=>fg,shouldAllowImportingTsExtension:()=>VF,shouldPreserveConstEnums:()=>sx,shouldUseUriStyleNodeCoreModules:()=>FQ,showModuleSpecifier:()=>ZE,signatureHasLiteralTypes:()=>cB,signatureHasRestParameter:()=>sB,signatureToDisplayParts:()=>b$,single:()=>Ue,singleElementArray:()=>Et,singleIterator:()=>ae,singleOrMany:()=>Ve,singleOrUndefined:()=>Be,skipAlias:()=>BE,skipAssertions:()=>XR,skipConstraint:()=>EY,skipOuterExpressions:()=>qR,skipParentheses:()=>ey,skipPartiallyEmittedExpressions:()=>Jl,skipTrivia:()=>Ns,skipTypeChecking:()=>_S,skipTypeParentheses:()=>Zg,skipWhile:()=>kt,sliceAfter:()=>sS,some:()=>ce,sort:()=>Ie,sortAndDeduplicate:()=>he,sortAndDeduplicateDiagnostics:()=>ic,sourceFileAffectingCompilerOptions:()=>sO,sourceFileMayBeEmitted:()=>Mv,sourceMapCommentRegExp:()=>SB,sourceMapCommentRegExpDontCareLineStart:()=>xB,spacePart:()=>n$,spanMap:()=>oe,spreadArrayHelper:()=>VL,stableSort:()=>Re,startEndContainsRange:()=>eX,startEndOverlapsWithStartEnd:()=>iX,startOnNewLine:()=>YR,startTracing:()=>Hr,startsWith:()=>pt,startsWithDirectory:()=>Fo,startsWithUnderscore:()=>DQ,startsWithUseStrict:()=>VR,stringContains:()=>rt,stringContainsAt:()=>NQ,stringToToken:()=>hs,stripQuotes:()=>fv,supportedDeclarationExtensions:()=>tp,supportedJSExtensions:()=>Q_,supportedJSExtensionsFlat:()=>Z_,supportedLocaleDirectories:()=>ec,supportedTSExtensions:()=>J_,supportedTSExtensionsFlat:()=>X_,supportedTSImplementationExtensions:()=>rp,suppressLeadingAndTrailingTrivia:()=>O$,suppressLeadingTrivia:()=>M$,suppressTrailingTrivia:()=>P$,symbolEscapedNameNoDefault:()=>PY,symbolName:()=>jc,symbolNameNoDefault:()=>MY,symbolPart:()=>ZY,symbolToDisplayParts:()=>v$,syntaxMayBeASICandidate:()=>hJ,syntaxRequiresTrailingSemicolonOrASI:()=>iQ,sys:()=>Aa,sysLog:()=>Ga,tagNamesAreEquivalent:()=>KD,takeWhile:()=>Ct,targetOptionDeclaration:()=>ZD,templateObjectHelper:()=>BL,testFormatSettings:()=>Jq,textChangeRangeIsUnchanged:()=>Ec,textChangeRangeNewSpan:()=>bc,textChanges:()=>R_e,textOrKeywordPart:()=>s$,textPart:()=>c$,textRangeContainsPositionInclusive:()=>lc,textSpanContainsPosition:()=>cc,textSpanContainsTextSpan:()=>dc,textSpanEnd:()=>oc,textSpanIntersection:()=>gc,textSpanIntersectsWith:()=>fc,textSpanIntersectsWithPosition:()=>hc,textSpanIntersectsWithTextSpan:()=>pc,textSpanIsEmpty:()=>sc,textSpanOverlap:()=>_c,textSpanOverlapsWith:()=>uc,textSpansEqual:()=>WY,textToKeywordObj:()=>Jo,timestamp:()=>cr,toArray:()=>yn,toBuilderFileEmit:()=>RK,toBuilderStateFileInfoForMultiEmit:()=>wK,toEditorSettings:()=>p2,toFileNameLowerCase:()=>In,toLowerCase:()=>kn,toPath:()=>Co,toProgramEmitPending:()=>NK,tokenIsIdentifierOrKeyword:()=>us,tokenIsIdentifierOrKeywordOrGreaterThan:()=>_s,tokenToString:()=>ms,trace:()=>_P,tracing:()=>Vr,tracingEnabled:()=>jr,transform:()=>C2,transformClassFields:()=>UU,transformDeclarations:()=>PV,transformECMAScriptModule:()=>SV,transformES2015:()=>pV,transformES2016:()=>dV,transformES2017:()=>JU,transformES2018:()=>$U,transformES2019:()=>ZU,transformES2020:()=>nV,transformES2021:()=>rV,transformES5:()=>mV,transformESDecorators:()=>zU,transformESNext:()=>aV,transformGenerators:()=>gV,transformJsx:()=>cV,transformLegacyDecorators:()=>KU,transformModule:()=>bV,transformNodeModule:()=>LV,transformNodes:()=>YV,transformSystemModule:()=>TV,transformTypeScript:()=>GU,transpile:()=>w0,transpileModule:()=>I0,transpileOptionValueCompilerOptions:()=>lO,trimString:()=>h,trimStringEnd:()=>g,trimStringStart:()=>y,tryAddToSet:()=>ie,tryAndIgnoreErrors:()=>uQ,tryCast:()=>En,tryDirectoryExists:()=>dQ,tryExtractTSExtension:()=>aE,tryFileExists:()=>lQ,tryGetClassExtendingExpressionWithTypeArguments:()=>Vb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>jb,tryGetDirectories:()=>sQ,tryGetExtensionFromPath:()=>iS,tryGetImportFromModuleSpecifier:()=>yg,tryGetJSDocSatisfiesTypeNode:()=>tA,tryGetModuleNameFromFile:()=>rN,tryGetModuleSpecifierFromDeclaration:()=>hg,tryGetNativePerformanceHooks:()=>ur,tryGetPropertyAccessOrIdentifierToString:()=>$b,tryGetPropertyNameOfBindingOrAssignmentElement:()=>cN,tryGetSourceMappingURL:()=>wB,tryGetTextOfPropertyName:()=>Kf,tryIOAndConsumeErrors:()=>_Q,tryParsePattern:()=>$x,tryParsePatterns:()=>Qx,tryParseRawSourceMap:()=>DB,tryReadDirectory:()=>cQ,tryReadFile:()=>QO,tryRemoveDirectoryPrefix:()=>Tx,tryRemoveExtension:()=>Jx,tryRemovePrefix:()=>mt,tryRemoveSuffix:()=>tt,typeAcquisitionDeclarations:()=>_O,typeAliasNamePart:()=>l$,typeDirectiveIsEqualTo:()=>wp,typeKeywords:()=>uJ,typeParameterNamePart:()=>d$,typeReferenceResolutionNameAndModeGetter:()=>nH,typeToDisplayParts:()=>y$,unchangedPollThresholds:()=>ba,unchangedTextChangeRange:()=>Zs,unescapeLeadingUnderscores:()=>Bc,unmangleScopedPackageName:()=>GF,unorderedRemoveItem:()=>ct,unorderedRemoveItemAt:()=>st,unreachableCodeIsError:()=>$T,unusedLabelIsError:()=>QT,unwrapInnermostStatementOfLabel:()=>Pm,updateErrorForNoInputFiles:()=>wM,updateLanguageServiceSourceFile:()=>b2,updateMissingFilePathsWatch:()=>Bj,updatePackageJsonWatch:()=>Gj,updateResolutionField:()=>TP,updateSharedExtendedConfigFileWatcher:()=>Mj,updateSourceFile:()=>MD,updateWatchingWildcardDirectories:()=>Uj,usesExtensionsOnImports:()=>jx,usingSingleLineStringWriter:()=>bp,utf16EncodeAsString:()=>Qs,validateLocaleAndSetLanguage:()=>Dc,valuesHelper:()=>KL,version:()=>t,versionMajorMinor:()=>n,visitArray:()=>pB,visitCommaListElements:()=>bB,visitEachChild:()=>EB,visitFunctionBody:()=>yB,visitIterationBody:()=>vB,visitLexicalEnvironment:()=>mB,visitNode:()=>uB,visitNodes:()=>_B,visitParameterList:()=>hB,walkUpBindingElementsAndPatterns:()=>kc,walkUpLexicalEnvironments:()=>mU,walkUpOuterExpressions:()=>JR,walkUpParenthesizedExpressions:()=>$g,walkUpParenthesizedTypes:()=>Yg,walkUpParenthesizedTypesAndGetParentAndChild:()=>Qg,whitespaceOrMapCommentRegExp:()=>AB,writeCommentRange:()=>cb,writeFile:()=>Gv,writeFileEnsuringDirectories:()=>Uv,zipToModeAwareCache:()=>UP,zipWith:()=>w});var Yfe,$fe,Qfe=E({"src/typescript/_namespaces/ts.ts"(){lq(),oJ(),Bfe(),Jfe()}});return(Yfe={"src/typescript/typescript.ts"(e,n){Qfe(),Qfe(),"undefined"!==typeof console&&(Nt.loggingHost={log(e,n){switch(e){case 1:return console.error(n);case 2:return console.warn(n);case 3:case 4:return console.log(n)}}}),n.exports=Xfe}},function(){return $fe||(0,Yfe[b(Yfe)[0]])(($fe={exports:{}}).exports,$fe),$fe.exports})()})();"undefined"!==typeof la&&la.exports&&(la.exports=da);var ua=da.createClassifier,_a=da.createLanguageService,pa=da.displayPartsToString,fa=da.EndOfLineState,ma=da.flattenDiagnosticMessageText,ha=da.IndentStyle,ga=da.ScriptKind,ya=da.ScriptTarget,va=da.TokenClass,ba=da,Ea={};function Ta(e){return"string"===typeof e?!!/^file:\/\/\//.test(e)&&!!Ea[e.substr(8)]:0===e.path.indexOf("/lib.")&&!!Ea[e.path.slice(1)]}Ea["lib.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es5" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n',Ea["lib.decorators.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/**\n * The decorator context types provided to class element decorators.\n */\ntype ClassMemberDecoratorContext =\n | ClassMethodDecoratorContext\n | ClassGetterDecoratorContext\n | ClassSetterDecoratorContext\n | ClassFieldDecoratorContext\n | ClassAccessorDecoratorContext\n ;\n\n/**\n * The decorator context types provided to any decorator.\n */\ntype DecoratorContext =\n | ClassDecoratorContext\n | ClassMemberDecoratorContext\n ;\n\n/**\n * Context provided to a class decorator.\n * @template Class The type of the decorated class associated with this context.\n */\ninterface ClassDecoratorContext<\n Class extends abstract new (...args: any) => any = abstract new (...args: any) => any,\n> {\n /** The kind of element that was decorated. */\n readonly kind: "class";\n\n /** The name of the decorated class. */\n readonly name: string | undefined;\n\n /**\n * Adds a callback to be invoked after the class definition has been finalized.\n *\n * @example\n * ```ts\n * function customElement(name: string): ClassDecoratorFunction {\n * return (target, context) => {\n * context.addInitializer(function () {\n * customElements.define(name, this);\n * });\n * }\n * }\n *\n * @customElement("my-element")\n * class MyElement {}\n * ```\n */\n addInitializer(initializer: (this: Class) => void): void;\n}\n\n/**\n * Context provided to a class method decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of the decorated class method.\n */\ninterface ClassMethodDecoratorContext<\n This = unknown,\n Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "method";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n /**\n * Gets the current value of the method from the provided object.\n *\n * @example\n * let fn = context.access.get(instance);\n */\n get(object: This): Value;\n };\n\n /**\n * Adds a callback to be invoked either before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * decorating a non-`static` element).\n *\n * @example\n * ```ts\n * const bound: ClassMethodDecoratorFunction = (value, context) {\n * if (context.private) throw new TypeError("Not supported on private methods.");\n * context.addInitializer(function () {\n * this[context.name] = this[context.name].bind(this);\n * });\n * }\n *\n * class C {\n * message = "Hello";\n *\n * @bound\n * m() {\n * console.log(this.message);\n * }\n * }\n * ```\n */\n addInitializer(initializer: (this: This) => void): void;\n}\n\n/**\n * Context provided to a class getter decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The property type of the decorated class getter.\n */\ninterface ClassGetterDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "getter";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n /**\n * Invokes the getter on the provided object.\n *\n * @example\n * let value = context.access.get(instance);\n */\n get(object: This): Value;\n };\n\n /**\n * Adds a callback to be invoked either before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * decorating a non-`static` element).\n */\n addInitializer(initializer: (this: This) => void): void;\n}\n\n/**\n * Context provided to a class setter decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of the decorated class setter.\n */\ninterface ClassSetterDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "setter";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n /**\n * Invokes the setter on the provided object.\n *\n * @example\n * context.access.set(instance, value);\n */\n set(object: This, value: Value): void;\n };\n\n /**\n * Adds a callback to be invoked either before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * decorating a non-`static` element).\n */\n addInitializer(initializer: (this: This) => void): void;\n}\n\n/**\n * Context provided to a class `accessor` field decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of decorated class field.\n */\ninterface ClassAccessorDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "accessor";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n\n /**\n * Invokes the getter on the provided object.\n *\n * @example\n * let value = context.access.get(instance);\n */\n get(object: This): Value;\n\n /**\n * Invokes the setter on the provided object.\n *\n * @example\n * context.access.set(instance, value);\n */\n set(object: This, value: Value): void;\n };\n\n /**\n * Adds a callback to be invoked either before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * decorating a non-`static` element).\n */\n addInitializer(initializer: (this: This) => void): void;\n}\n\n/**\n * Describes the target provided to class `accessor` field decorators.\n * @template This The `this` type to which the target applies.\n * @template Value The property type for the class `accessor` field.\n */\ninterface ClassAccessorDecoratorTarget<This, Value> {\n /**\n * Invokes the getter that was defined prior to decorator application.\n *\n * @example\n * let value = target.get.call(instance);\n */\n get(this: This): Value;\n\n /**\n * Invokes the setter that was defined prior to decorator application.\n *\n * @example\n * target.set.call(instance, value);\n */\n set(this: This, value: Value): void;\n}\n\n/**\n * Describes the allowed return value from a class `accessor` field decorator.\n * @template This The `this` type to which the target applies.\n * @template Value The property type for the class `accessor` field.\n */\ninterface ClassAccessorDecoratorResult<This, Value> {\n /**\n * An optional replacement getter function. If not provided, the existing getter function is used instead.\n */\n get?(this: This): Value;\n\n /**\n * An optional replacement setter function. If not provided, the existing setter function is used instead.\n */\n set?(this: This, value: Value): void;\n\n /**\n * An optional initializer mutator that is invoked when the underlying field initializer is evaluated.\n * @param value The incoming initializer value.\n * @returns The replacement initializer value.\n */\n init?(this: This, value: Value): Value;\n}\n\n/**\n * Context provided to a class field decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of the decorated class field.\n */\ninterface ClassFieldDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "field";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n\n /**\n * Gets the value of the field on the provided object.\n */\n get(object: This): Value;\n\n /**\n * Sets the value of the field on the provided object.\n */\n set(object: This, value: Value): void;\n };\n\n /**\n * Adds a callback to be invoked either before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * decorating a non-`static` element).\n */\n addInitializer(initializer: (this: This) => void): void;\n}\n',Ea["lib.decorators.legacy.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;\ndeclare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;\ndeclare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;\ndeclare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;\n',Ea["lib.dom.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Window APIs\n/////////////////////////////\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n signal?: AbortSignal;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: BufferSource;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: BufferSource;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: BufferSource;\n iv: BufferSource;\n tagLength?: number;\n}\n\ninterface AesKeyAlgorithm extends KeyAlgorithm {\n length: number;\n}\n\ninterface AesKeyGenParams extends Algorithm {\n length: number;\n}\n\ninterface Algorithm {\n name: string;\n}\n\ninterface AnalyserOptions extends AudioNodeOptions {\n fftSize?: number;\n maxDecibels?: number;\n minDecibels?: number;\n smoothingTimeConstant?: number;\n}\n\ninterface AnimationEventInit extends EventInit {\n animationName?: string;\n elapsedTime?: number;\n pseudoElement?: string;\n}\n\ninterface AnimationPlaybackEventInit extends EventInit {\n currentTime?: CSSNumberish | null;\n timelineTime?: CSSNumberish | null;\n}\n\ninterface AssignedNodesOptions {\n flatten?: boolean;\n}\n\ninterface AudioBufferOptions {\n length: number;\n numberOfChannels?: number;\n sampleRate: number;\n}\n\ninterface AudioBufferSourceOptions {\n buffer?: AudioBuffer | null;\n detune?: number;\n loop?: boolean;\n loopEnd?: number;\n loopStart?: number;\n playbackRate?: number;\n}\n\ninterface AudioConfiguration {\n bitrate?: number;\n channels?: string;\n contentType: string;\n samplerate?: number;\n spatialRendering?: boolean;\n}\n\ninterface AudioContextOptions {\n latencyHint?: AudioContextLatencyCategory | number;\n sampleRate?: number;\n}\n\ninterface AudioNodeOptions {\n channelCount?: number;\n channelCountMode?: ChannelCountMode;\n channelInterpretation?: ChannelInterpretation;\n}\n\ninterface AudioProcessingEventInit extends EventInit {\n inputBuffer: AudioBuffer;\n outputBuffer: AudioBuffer;\n playbackTime: number;\n}\n\ninterface AudioTimestamp {\n contextTime?: number;\n performanceTime?: DOMHighResTimeStamp;\n}\n\ninterface AudioWorkletNodeOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n numberOfOutputs?: number;\n outputChannelCount?: number[];\n parameterData?: Record<string, number>;\n processorOptions?: any;\n}\n\ninterface AuthenticationExtensionsClientInputs {\n appid?: string;\n credProps?: boolean;\n hmacCreateSecret?: boolean;\n}\n\ninterface AuthenticationExtensionsClientOutputs {\n appid?: boolean;\n credProps?: CredentialPropertiesOutput;\n hmacCreateSecret?: boolean;\n}\n\ninterface AuthenticatorSelectionCriteria {\n authenticatorAttachment?: AuthenticatorAttachment;\n requireResidentKey?: boolean;\n residentKey?: ResidentKeyRequirement;\n userVerification?: UserVerificationRequirement;\n}\n\ninterface BiquadFilterOptions extends AudioNodeOptions {\n Q?: number;\n detune?: number;\n frequency?: number;\n gain?: number;\n type?: BiquadFilterType;\n}\n\ninterface BlobEventInit {\n data: Blob;\n timecode?: DOMHighResTimeStamp;\n}\n\ninterface BlobPropertyBag {\n endings?: EndingType;\n type?: string;\n}\n\ninterface CSSStyleSheetInit {\n baseURL?: string;\n disabled?: boolean;\n media?: MediaList | string;\n}\n\ninterface CacheQueryOptions {\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface CanvasRenderingContext2DSettings {\n alpha?: boolean;\n colorSpace?: PredefinedColorSpace;\n desynchronized?: boolean;\n willReadFrequently?: boolean;\n}\n\ninterface ChannelMergerOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n}\n\ninterface ChannelSplitterOptions extends AudioNodeOptions {\n numberOfOutputs?: number;\n}\n\ninterface CheckVisibilityOptions {\n checkOpacity?: boolean;\n checkVisibilityCSS?: boolean;\n}\n\ninterface ClientQueryOptions {\n includeUncontrolled?: boolean;\n type?: ClientTypes;\n}\n\ninterface ClipboardEventInit extends EventInit {\n clipboardData?: DataTransfer | null;\n}\n\ninterface ClipboardItemOptions {\n presentationStyle?: PresentationStyle;\n}\n\ninterface CloseEventInit extends EventInit {\n code?: number;\n reason?: string;\n wasClean?: boolean;\n}\n\ninterface CompositionEventInit extends UIEventInit {\n data?: string;\n}\n\ninterface ComputedEffectTiming extends EffectTiming {\n activeDuration?: CSSNumberish;\n currentIteration?: number | null;\n endTime?: CSSNumberish;\n localTime?: CSSNumberish | null;\n progress?: number | null;\n startTime?: CSSNumberish;\n}\n\ninterface ComputedKeyframe {\n composite: CompositeOperationOrAuto;\n computedOffset: number;\n easing: string;\n offset: number | null;\n [property: string]: string | number | null | undefined;\n}\n\ninterface ConstantSourceOptions {\n offset?: number;\n}\n\ninterface ConstrainBooleanParameters {\n exact?: boolean;\n ideal?: boolean;\n}\n\ninterface ConstrainDOMStringParameters {\n exact?: string | string[];\n ideal?: string | string[];\n}\n\ninterface ConstrainDoubleRange extends DoubleRange {\n exact?: number;\n ideal?: number;\n}\n\ninterface ConstrainULongRange extends ULongRange {\n exact?: number;\n ideal?: number;\n}\n\ninterface ConvolverOptions extends AudioNodeOptions {\n buffer?: AudioBuffer | null;\n disableNormalization?: boolean;\n}\n\ninterface CredentialCreationOptions {\n publicKey?: PublicKeyCredentialCreationOptions;\n signal?: AbortSignal;\n}\n\ninterface CredentialPropertiesOutput {\n rk?: boolean;\n}\n\ninterface CredentialRequestOptions {\n mediation?: CredentialMediationRequirement;\n publicKey?: PublicKeyCredentialRequestOptions;\n signal?: AbortSignal;\n}\n\ninterface CryptoKeyPair {\n privateKey: CryptoKey;\n publicKey: CryptoKey;\n}\n\ninterface CustomEventInit<T = any> extends EventInit {\n detail?: T;\n}\n\ninterface DOMMatrix2DInit {\n a?: number;\n b?: number;\n c?: number;\n d?: number;\n e?: number;\n f?: number;\n m11?: number;\n m12?: number;\n m21?: number;\n m22?: number;\n m41?: number;\n m42?: number;\n}\n\ninterface DOMMatrixInit extends DOMMatrix2DInit {\n is2D?: boolean;\n m13?: number;\n m14?: number;\n m23?: number;\n m24?: number;\n m31?: number;\n m32?: number;\n m33?: number;\n m34?: number;\n m43?: number;\n m44?: number;\n}\n\ninterface DOMPointInit {\n w?: number;\n x?: number;\n y?: number;\n z?: number;\n}\n\ninterface DOMQuadInit {\n p1?: DOMPointInit;\n p2?: DOMPointInit;\n p3?: DOMPointInit;\n p4?: DOMPointInit;\n}\n\ninterface DOMRectInit {\n height?: number;\n width?: number;\n x?: number;\n y?: number;\n}\n\ninterface DelayOptions extends AudioNodeOptions {\n delayTime?: number;\n maxDelayTime?: number;\n}\n\ninterface DeviceMotionEventAccelerationInit {\n x?: number | null;\n y?: number | null;\n z?: number | null;\n}\n\ninterface DeviceMotionEventInit extends EventInit {\n acceleration?: DeviceMotionEventAccelerationInit;\n accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;\n interval?: number;\n rotationRate?: DeviceMotionEventRotationRateInit;\n}\n\ninterface DeviceMotionEventRotationRateInit {\n alpha?: number | null;\n beta?: number | null;\n gamma?: number | null;\n}\n\ninterface DeviceOrientationEventInit extends EventInit {\n absolute?: boolean;\n alpha?: number | null;\n beta?: number | null;\n gamma?: number | null;\n}\n\ninterface DisplayMediaStreamOptions {\n audio?: boolean | MediaTrackConstraints;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface DocumentTimelineOptions {\n originTime?: DOMHighResTimeStamp;\n}\n\ninterface DoubleRange {\n max?: number;\n min?: number;\n}\n\ninterface DragEventInit extends MouseEventInit {\n dataTransfer?: DataTransfer | null;\n}\n\ninterface DynamicsCompressorOptions extends AudioNodeOptions {\n attack?: number;\n knee?: number;\n ratio?: number;\n release?: number;\n threshold?: number;\n}\n\ninterface EcKeyAlgorithm extends KeyAlgorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface EffectTiming {\n delay?: number;\n direction?: PlaybackDirection;\n duration?: number | string;\n easing?: string;\n endDelay?: number;\n fill?: FillMode;\n iterationStart?: number;\n iterations?: number;\n playbackRate?: number;\n}\n\ninterface ElementCreationOptions {\n is?: string;\n}\n\ninterface ElementDefinitionOptions {\n extends?: string;\n}\n\ninterface ErrorEventInit extends EventInit {\n colno?: number;\n error?: any;\n filename?: string;\n lineno?: number;\n message?: string;\n}\n\ninterface EventInit {\n bubbles?: boolean;\n cancelable?: boolean;\n composed?: boolean;\n}\n\ninterface EventListenerOptions {\n capture?: boolean;\n}\n\ninterface EventModifierInit extends UIEventInit {\n altKey?: boolean;\n ctrlKey?: boolean;\n metaKey?: boolean;\n modifierAltGraph?: boolean;\n modifierCapsLock?: boolean;\n modifierFn?: boolean;\n modifierFnLock?: boolean;\n modifierHyper?: boolean;\n modifierNumLock?: boolean;\n modifierScrollLock?: boolean;\n modifierSuper?: boolean;\n modifierSymbol?: boolean;\n modifierSymbolLock?: boolean;\n shiftKey?: boolean;\n}\n\ninterface EventSourceInit {\n withCredentials?: boolean;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FileSystemFlags {\n create?: boolean;\n exclusive?: boolean;\n}\n\ninterface FileSystemGetDirectoryOptions {\n create?: boolean;\n}\n\ninterface FileSystemGetFileOptions {\n create?: boolean;\n}\n\ninterface FileSystemRemoveOptions {\n recursive?: boolean;\n}\n\ninterface FocusEventInit extends UIEventInit {\n relatedTarget?: EventTarget | null;\n}\n\ninterface FocusOptions {\n preventScroll?: boolean;\n}\n\ninterface FontFaceDescriptors {\n ascentOverride?: string;\n descentOverride?: string;\n display?: FontDisplay;\n featureSettings?: string;\n lineGapOverride?: string;\n stretch?: string;\n style?: string;\n unicodeRange?: string;\n variant?: string;\n weight?: string;\n}\n\ninterface FontFaceSetLoadEventInit extends EventInit {\n fontfaces?: FontFace[];\n}\n\ninterface FormDataEventInit extends EventInit {\n formData: FormData;\n}\n\ninterface FullscreenOptions {\n navigationUI?: FullscreenNavigationUI;\n}\n\ninterface GainOptions extends AudioNodeOptions {\n gain?: number;\n}\n\ninterface GamepadEventInit extends EventInit {\n gamepad: Gamepad;\n}\n\ninterface GetAnimationsOptions {\n subtree?: boolean;\n}\n\ninterface GetNotificationOptions {\n tag?: string;\n}\n\ninterface GetRootNodeOptions {\n composed?: boolean;\n}\n\ninterface HashChangeEventInit extends EventInit {\n newURL?: string;\n oldURL?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n info: BufferSource;\n salt: BufferSource;\n}\n\ninterface HmacImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface HmacKeyAlgorithm extends KeyAlgorithm {\n hash: KeyAlgorithm;\n length: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface IDBDatabaseInfo {\n name?: string;\n version?: number;\n}\n\ninterface IDBIndexParameters {\n multiEntry?: boolean;\n unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n autoIncrement?: boolean;\n keyPath?: string | string[] | null;\n}\n\ninterface IDBTransactionOptions {\n durability?: IDBTransactionDurability;\n}\n\ninterface IDBVersionChangeEventInit extends EventInit {\n newVersion?: number | null;\n oldVersion?: number;\n}\n\ninterface IIRFilterOptions extends AudioNodeOptions {\n feedback: number[];\n feedforward: number[];\n}\n\ninterface IdleRequestOptions {\n timeout?: number;\n}\n\ninterface ImageBitmapOptions {\n colorSpaceConversion?: ColorSpaceConversion;\n imageOrientation?: ImageOrientation;\n premultiplyAlpha?: PremultiplyAlpha;\n resizeHeight?: number;\n resizeQuality?: ResizeQuality;\n resizeWidth?: number;\n}\n\ninterface ImageBitmapRenderingContextSettings {\n alpha?: boolean;\n}\n\ninterface ImageDataSettings {\n colorSpace?: PredefinedColorSpace;\n}\n\ninterface ImageEncodeOptions {\n quality?: number;\n type?: string;\n}\n\ninterface ImportMeta {\n url: string;\n}\n\ninterface InputEventInit extends UIEventInit {\n data?: string | null;\n dataTransfer?: DataTransfer | null;\n inputType?: string;\n isComposing?: boolean;\n targetRanges?: StaticRange[];\n}\n\ninterface IntersectionObserverEntryInit {\n boundingClientRect: DOMRectInit;\n intersectionRatio: number;\n intersectionRect: DOMRectInit;\n isIntersecting: boolean;\n rootBounds: DOMRectInit | null;\n target: Element;\n time: DOMHighResTimeStamp;\n}\n\ninterface IntersectionObserverInit {\n root?: Element | Document | null;\n rootMargin?: string;\n threshold?: number | number[];\n}\n\ninterface JsonWebKey {\n alg?: string;\n crv?: string;\n d?: string;\n dp?: string;\n dq?: string;\n e?: string;\n ext?: boolean;\n k?: string;\n key_ops?: string[];\n kty?: string;\n n?: string;\n oth?: RsaOtherPrimesInfo[];\n p?: string;\n q?: string;\n qi?: string;\n use?: string;\n x?: string;\n y?: string;\n}\n\ninterface KeyAlgorithm {\n name: string;\n}\n\ninterface KeyboardEventInit extends EventModifierInit {\n /** @deprecated */\n charCode?: number;\n code?: string;\n isComposing?: boolean;\n key?: string;\n /** @deprecated */\n keyCode?: number;\n location?: number;\n repeat?: boolean;\n}\n\ninterface Keyframe {\n composite?: CompositeOperationOrAuto;\n easing?: string;\n offset?: number | null;\n [property: string]: string | number | null | undefined;\n}\n\ninterface KeyframeAnimationOptions extends KeyframeEffectOptions {\n id?: string;\n}\n\ninterface KeyframeEffectOptions extends EffectTiming {\n composite?: CompositeOperation;\n iterationComposite?: IterationCompositeOperation;\n pseudoElement?: string | null;\n}\n\ninterface LockInfo {\n clientId?: string;\n mode?: LockMode;\n name?: string;\n}\n\ninterface LockManagerSnapshot {\n held?: LockInfo[];\n pending?: LockInfo[];\n}\n\ninterface LockOptions {\n ifAvailable?: boolean;\n mode?: LockMode;\n signal?: AbortSignal;\n steal?: boolean;\n}\n\ninterface MIDIConnectionEventInit extends EventInit {\n port?: MIDIPort;\n}\n\ninterface MIDIMessageEventInit extends EventInit {\n data?: Uint8Array;\n}\n\ninterface MIDIOptions {\n software?: boolean;\n sysex?: boolean;\n}\n\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaDecodingConfiguration;\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaEncodingConfiguration;\n}\n\ninterface MediaCapabilitiesInfo {\n powerEfficient: boolean;\n smooth: boolean;\n supported: boolean;\n}\n\ninterface MediaConfiguration {\n audio?: AudioConfiguration;\n video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\n type: MediaDecodingType;\n}\n\ninterface MediaElementAudioSourceOptions {\n mediaElement: HTMLMediaElement;\n}\n\ninterface MediaEncodingConfiguration extends MediaConfiguration {\n type: MediaEncodingType;\n}\n\ninterface MediaEncryptedEventInit extends EventInit {\n initData?: ArrayBuffer | null;\n initDataType?: string;\n}\n\ninterface MediaImage {\n sizes?: string;\n src: string;\n type?: string;\n}\n\ninterface MediaKeyMessageEventInit extends EventInit {\n message: ArrayBuffer;\n messageType: MediaKeyMessageType;\n}\n\ninterface MediaKeySystemConfiguration {\n audioCapabilities?: MediaKeySystemMediaCapability[];\n distinctiveIdentifier?: MediaKeysRequirement;\n initDataTypes?: string[];\n label?: string;\n persistentState?: MediaKeysRequirement;\n sessionTypes?: string[];\n videoCapabilities?: MediaKeySystemMediaCapability[];\n}\n\ninterface MediaKeySystemMediaCapability {\n contentType?: string;\n encryptionScheme?: string | null;\n robustness?: string;\n}\n\ninterface MediaMetadataInit {\n album?: string;\n artist?: string;\n artwork?: MediaImage[];\n title?: string;\n}\n\ninterface MediaPositionState {\n duration?: number;\n playbackRate?: number;\n position?: number;\n}\n\ninterface MediaQueryListEventInit extends EventInit {\n matches?: boolean;\n media?: string;\n}\n\ninterface MediaRecorderOptions {\n audioBitsPerSecond?: number;\n bitsPerSecond?: number;\n mimeType?: string;\n videoBitsPerSecond?: number;\n}\n\ninterface MediaSessionActionDetails {\n action: MediaSessionAction;\n fastSeek?: boolean;\n seekOffset?: number;\n seekTime?: number;\n}\n\ninterface MediaStreamAudioSourceOptions {\n mediaStream: MediaStream;\n}\n\ninterface MediaStreamConstraints {\n audio?: boolean | MediaTrackConstraints;\n peerIdentity?: string;\n preferCurrentTab?: boolean;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface MediaStreamTrackEventInit extends EventInit {\n track: MediaStreamTrack;\n}\n\ninterface MediaTrackCapabilities {\n aspectRatio?: DoubleRange;\n autoGainControl?: boolean[];\n channelCount?: ULongRange;\n deviceId?: string;\n displaySurface?: string;\n echoCancellation?: boolean[];\n facingMode?: string[];\n frameRate?: DoubleRange;\n groupId?: string;\n height?: ULongRange;\n noiseSuppression?: boolean[];\n sampleRate?: ULongRange;\n sampleSize?: ULongRange;\n width?: ULongRange;\n}\n\ninterface MediaTrackConstraintSet {\n aspectRatio?: ConstrainDouble;\n autoGainControl?: ConstrainBoolean;\n channelCount?: ConstrainULong;\n deviceId?: ConstrainDOMString;\n displaySurface?: ConstrainDOMString;\n echoCancellation?: ConstrainBoolean;\n facingMode?: ConstrainDOMString;\n frameRate?: ConstrainDouble;\n groupId?: ConstrainDOMString;\n height?: ConstrainULong;\n noiseSuppression?: ConstrainBoolean;\n sampleRate?: ConstrainULong;\n sampleSize?: ConstrainULong;\n width?: ConstrainULong;\n}\n\ninterface MediaTrackConstraints extends MediaTrackConstraintSet {\n advanced?: MediaTrackConstraintSet[];\n}\n\ninterface MediaTrackSettings {\n aspectRatio?: number;\n autoGainControl?: boolean;\n channelCount?: number;\n deviceId?: string;\n displaySurface?: string;\n echoCancellation?: boolean;\n facingMode?: string;\n frameRate?: number;\n groupId?: string;\n height?: number;\n noiseSuppression?: boolean;\n sampleRate?: number;\n sampleSize?: number;\n width?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n aspectRatio?: boolean;\n autoGainControl?: boolean;\n channelCount?: boolean;\n deviceId?: boolean;\n displaySurface?: boolean;\n echoCancellation?: boolean;\n facingMode?: boolean;\n frameRate?: boolean;\n groupId?: boolean;\n height?: boolean;\n noiseSuppression?: boolean;\n sampleRate?: boolean;\n sampleSize?: boolean;\n width?: boolean;\n}\n\ninterface MessageEventInit<T = any> extends EventInit {\n data?: T;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: MessageEventSource | null;\n}\n\ninterface MouseEventInit extends EventModifierInit {\n button?: number;\n buttons?: number;\n clientX?: number;\n clientY?: number;\n movementX?: number;\n movementY?: number;\n relatedTarget?: EventTarget | null;\n screenX?: number;\n screenY?: number;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n cacheName?: string;\n}\n\ninterface MutationObserverInit {\n /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */\n attributeFilter?: string[];\n /** Set to true if attributes is true or omitted and target\'s attribute value before the mutation needs to be recorded. */\n attributeOldValue?: boolean;\n /** Set to true if mutations to target\'s attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */\n attributes?: boolean;\n /** Set to true if mutations to target\'s data are to be observed. Can be omitted if characterDataOldValue is specified. */\n characterData?: boolean;\n /** Set to true if characterData is set to true or omitted and target\'s data before the mutation needs to be recorded. */\n characterDataOldValue?: boolean;\n /** Set to true if mutations to target\'s children are to be observed. */\n childList?: boolean;\n /** Set to true if mutations to not just target, but also target\'s descendants are to be observed. */\n subtree?: boolean;\n}\n\ninterface NavigationPreloadState {\n enabled?: boolean;\n headerValue?: string;\n}\n\ninterface NotificationAction {\n action: string;\n icon?: string;\n title: string;\n}\n\ninterface NotificationOptions {\n actions?: NotificationAction[];\n badge?: string;\n body?: string;\n data?: any;\n dir?: NotificationDirection;\n icon?: string;\n image?: string;\n lang?: string;\n renotify?: boolean;\n requireInteraction?: boolean;\n silent?: boolean;\n tag?: string;\n timestamp?: EpochTimeStamp;\n vibrate?: VibratePattern;\n}\n\ninterface OfflineAudioCompletionEventInit extends EventInit {\n renderedBuffer: AudioBuffer;\n}\n\ninterface OfflineAudioContextOptions {\n length: number;\n numberOfChannels?: number;\n sampleRate: number;\n}\n\ninterface OptionalEffectTiming {\n delay?: number;\n direction?: PlaybackDirection;\n duration?: number | string;\n easing?: string;\n endDelay?: number;\n fill?: FillMode;\n iterationStart?: number;\n iterations?: number;\n playbackRate?: number;\n}\n\ninterface OscillatorOptions extends AudioNodeOptions {\n detune?: number;\n frequency?: number;\n periodicWave?: PeriodicWave;\n type?: OscillatorType;\n}\n\ninterface PageTransitionEventInit extends EventInit {\n persisted?: boolean;\n}\n\ninterface PannerOptions extends AudioNodeOptions {\n coneInnerAngle?: number;\n coneOuterAngle?: number;\n coneOuterGain?: number;\n distanceModel?: DistanceModelType;\n maxDistance?: number;\n orientationX?: number;\n orientationY?: number;\n orientationZ?: number;\n panningModel?: PanningModelType;\n positionX?: number;\n positionY?: number;\n positionZ?: number;\n refDistance?: number;\n rolloffFactor?: number;\n}\n\ninterface PaymentCurrencyAmount {\n currency: string;\n value: string;\n}\n\ninterface PaymentDetailsBase {\n displayItems?: PaymentItem[];\n modifiers?: PaymentDetailsModifier[];\n}\n\ninterface PaymentDetailsInit extends PaymentDetailsBase {\n id?: string;\n total: PaymentItem;\n}\n\ninterface PaymentDetailsModifier {\n additionalDisplayItems?: PaymentItem[];\n data?: any;\n supportedMethods: string;\n total?: PaymentItem;\n}\n\ninterface PaymentDetailsUpdate extends PaymentDetailsBase {\n paymentMethodErrors?: any;\n total?: PaymentItem;\n}\n\ninterface PaymentItem {\n amount: PaymentCurrencyAmount;\n label: string;\n pending?: boolean;\n}\n\ninterface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {\n methodDetails?: any;\n methodName?: string;\n}\n\ninterface PaymentMethodData {\n data?: any;\n supportedMethods: string;\n}\n\ninterface PaymentRequestUpdateEventInit extends EventInit {\n}\n\ninterface PaymentValidationErrors {\n error?: string;\n paymentMethod?: any;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: HashAlgorithmIdentifier;\n iterations: number;\n salt: BufferSource;\n}\n\ninterface PerformanceMarkOptions {\n detail?: any;\n startTime?: DOMHighResTimeStamp;\n}\n\ninterface PerformanceMeasureOptions {\n detail?: any;\n duration?: DOMHighResTimeStamp;\n end?: string | DOMHighResTimeStamp;\n start?: string | DOMHighResTimeStamp;\n}\n\ninterface PerformanceObserverInit {\n buffered?: boolean;\n entryTypes?: string[];\n type?: string;\n}\n\ninterface PeriodicWaveConstraints {\n disableNormalization?: boolean;\n}\n\ninterface PeriodicWaveOptions extends PeriodicWaveConstraints {\n imag?: number[] | Float32Array;\n real?: number[] | Float32Array;\n}\n\ninterface PermissionDescriptor {\n name: PermissionName;\n}\n\ninterface PictureInPictureEventInit extends EventInit {\n pictureInPictureWindow: PictureInPictureWindow;\n}\n\ninterface PointerEventInit extends MouseEventInit {\n coalescedEvents?: PointerEvent[];\n height?: number;\n isPrimary?: boolean;\n pointerId?: number;\n pointerType?: string;\n predictedEvents?: PointerEvent[];\n pressure?: number;\n tangentialPressure?: number;\n tiltX?: number;\n tiltY?: number;\n twist?: number;\n width?: number;\n}\n\ninterface PopStateEventInit extends EventInit {\n state?: any;\n}\n\ninterface PositionOptions {\n enableHighAccuracy?: boolean;\n maximumAge?: number;\n timeout?: number;\n}\n\ninterface ProgressEventInit extends EventInit {\n lengthComputable?: boolean;\n loaded?: number;\n total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n promise: Promise<any>;\n reason?: any;\n}\n\ninterface PropertyIndexedKeyframes {\n composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];\n easing?: string | string[];\n offset?: number | (number | null)[];\n [property: string]: string | string[] | number | null | (number | null)[] | undefined;\n}\n\ninterface PublicKeyCredentialCreationOptions {\n attestation?: AttestationConveyancePreference;\n authenticatorSelection?: AuthenticatorSelectionCriteria;\n challenge: BufferSource;\n excludeCredentials?: PublicKeyCredentialDescriptor[];\n extensions?: AuthenticationExtensionsClientInputs;\n pubKeyCredParams: PublicKeyCredentialParameters[];\n rp: PublicKeyCredentialRpEntity;\n timeout?: number;\n user: PublicKeyCredentialUserEntity;\n}\n\ninterface PublicKeyCredentialDescriptor {\n id: BufferSource;\n transports?: AuthenticatorTransport[];\n type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialEntity {\n name: string;\n}\n\ninterface PublicKeyCredentialParameters {\n alg: COSEAlgorithmIdentifier;\n type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialRequestOptions {\n allowCredentials?: PublicKeyCredentialDescriptor[];\n challenge: BufferSource;\n extensions?: AuthenticationExtensionsClientInputs;\n rpId?: string;\n timeout?: number;\n userVerification?: UserVerificationRequirement;\n}\n\ninterface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {\n id?: string;\n}\n\ninterface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {\n displayName: string;\n id: BufferSource;\n}\n\ninterface PushSubscriptionJSON {\n endpoint?: string;\n expirationTime?: EpochTimeStamp | null;\n keys?: Record<string, string>;\n}\n\ninterface PushSubscriptionOptionsInit {\n applicationServerKey?: BufferSource | string | null;\n userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy<T = any> {\n highWaterMark?: number;\n size?: QueuingStrategySize<T>;\n}\n\ninterface QueuingStrategyInit {\n /**\n * Creates a new ByteLengthQueuingStrategy with the provided high water mark.\n *\n * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.\n */\n highWaterMark: number;\n}\n\ninterface RTCAnswerOptions extends RTCOfferAnswerOptions {\n}\n\ninterface RTCCertificateExpiration {\n expires?: number;\n}\n\ninterface RTCConfiguration {\n bundlePolicy?: RTCBundlePolicy;\n certificates?: RTCCertificate[];\n iceCandidatePoolSize?: number;\n iceServers?: RTCIceServer[];\n iceTransportPolicy?: RTCIceTransportPolicy;\n rtcpMuxPolicy?: RTCRtcpMuxPolicy;\n}\n\ninterface RTCDTMFToneChangeEventInit extends EventInit {\n tone?: string;\n}\n\ninterface RTCDataChannelEventInit extends EventInit {\n channel: RTCDataChannel;\n}\n\ninterface RTCDataChannelInit {\n id?: number;\n maxPacketLifeTime?: number;\n maxRetransmits?: number;\n negotiated?: boolean;\n ordered?: boolean;\n protocol?: string;\n}\n\ninterface RTCDtlsFingerprint {\n algorithm?: string;\n value?: string;\n}\n\ninterface RTCEncodedAudioFrameMetadata {\n contributingSources?: number[];\n synchronizationSource?: number;\n}\n\ninterface RTCEncodedVideoFrameMetadata {\n contributingSources?: number[];\n dependencies?: number[];\n frameId?: number;\n height?: number;\n spatialIndex?: number;\n synchronizationSource?: number;\n temporalIndex?: number;\n width?: number;\n}\n\ninterface RTCErrorEventInit extends EventInit {\n error: RTCError;\n}\n\ninterface RTCErrorInit {\n errorDetail: RTCErrorDetailType;\n httpRequestStatusCode?: number;\n receivedAlert?: number;\n sctpCauseCode?: number;\n sdpLineNumber?: number;\n sentAlert?: number;\n}\n\ninterface RTCIceCandidateInit {\n candidate?: string;\n sdpMLineIndex?: number | null;\n sdpMid?: string | null;\n usernameFragment?: string | null;\n}\n\ninterface RTCIceCandidatePairStats extends RTCStats {\n availableIncomingBitrate?: number;\n availableOutgoingBitrate?: number;\n bytesReceived?: number;\n bytesSent?: number;\n currentRoundTripTime?: number;\n lastPacketReceivedTimestamp?: DOMHighResTimeStamp;\n lastPacketSentTimestamp?: DOMHighResTimeStamp;\n localCandidateId: string;\n nominated?: boolean;\n remoteCandidateId: string;\n requestsReceived?: number;\n requestsSent?: number;\n responsesReceived?: number;\n responsesSent?: number;\n state: RTCStatsIceCandidatePairState;\n totalRoundTripTime?: number;\n transportId: string;\n}\n\ninterface RTCIceServer {\n credential?: string;\n urls: string | string[];\n username?: string;\n}\n\ninterface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {\n audioLevel?: number;\n bytesReceived?: number;\n concealedSamples?: number;\n concealmentEvents?: number;\n decoderImplementation?: string;\n estimatedPlayoutTimestamp?: DOMHighResTimeStamp;\n fecPacketsDiscarded?: number;\n fecPacketsReceived?: number;\n firCount?: number;\n frameHeight?: number;\n frameWidth?: number;\n framesDecoded?: number;\n framesDropped?: number;\n framesPerSecond?: number;\n framesReceived?: number;\n headerBytesReceived?: number;\n insertedSamplesForDeceleration?: number;\n jitterBufferDelay?: number;\n jitterBufferEmittedCount?: number;\n keyFramesDecoded?: number;\n kind: string;\n lastPacketReceivedTimestamp?: DOMHighResTimeStamp;\n nackCount?: number;\n packetsDiscarded?: number;\n pliCount?: number;\n qpSum?: number;\n remoteId?: string;\n removedSamplesForAcceleration?: number;\n silentConcealedSamples?: number;\n totalAudioEnergy?: number;\n totalDecodeTime?: number;\n totalInterFrameDelay?: number;\n totalProcessingDelay?: number;\n totalSamplesDuration?: number;\n totalSamplesReceived?: number;\n totalSquaredInterFrameDelay?: number;\n}\n\ninterface RTCLocalSessionDescriptionInit {\n sdp?: string;\n type?: RTCSdpType;\n}\n\ninterface RTCOfferAnswerOptions {\n}\n\ninterface RTCOfferOptions extends RTCOfferAnswerOptions {\n iceRestart?: boolean;\n offerToReceiveAudio?: boolean;\n offerToReceiveVideo?: boolean;\n}\n\ninterface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {\n firCount?: number;\n frameHeight?: number;\n frameWidth?: number;\n framesEncoded?: number;\n framesPerSecond?: number;\n framesSent?: number;\n headerBytesSent?: number;\n hugeFramesSent?: number;\n keyFramesEncoded?: number;\n mediaSourceId?: string;\n nackCount?: number;\n pliCount?: number;\n qpSum?: number;\n qualityLimitationResolutionChanges?: number;\n remoteId?: string;\n retransmittedBytesSent?: number;\n retransmittedPacketsSent?: number;\n rid?: string;\n targetBitrate?: number;\n totalEncodeTime?: number;\n totalEncodedBytesTarget?: number;\n totalPacketSendDelay?: number;\n}\n\ninterface RTCPeerConnectionIceErrorEventInit extends EventInit {\n address?: string | null;\n errorCode: number;\n errorText?: string;\n port?: number | null;\n url?: string;\n}\n\ninterface RTCPeerConnectionIceEventInit extends EventInit {\n candidate?: RTCIceCandidate | null;\n url?: string | null;\n}\n\ninterface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {\n jitter?: number;\n packetsLost?: number;\n packetsReceived?: number;\n}\n\ninterface RTCRtcpParameters {\n cname?: string;\n reducedSize?: boolean;\n}\n\ninterface RTCRtpCapabilities {\n codecs: RTCRtpCodecCapability[];\n headerExtensions: RTCRtpHeaderExtensionCapability[];\n}\n\ninterface RTCRtpCodecCapability {\n channels?: number;\n clockRate: number;\n mimeType: string;\n sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodecParameters {\n channels?: number;\n clockRate: number;\n mimeType: string;\n payloadType: number;\n sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodingParameters {\n rid?: string;\n}\n\ninterface RTCRtpContributingSource {\n audioLevel?: number;\n rtpTimestamp: number;\n source: number;\n timestamp: DOMHighResTimeStamp;\n}\n\ninterface RTCRtpEncodingParameters extends RTCRtpCodingParameters {\n active?: boolean;\n maxBitrate?: number;\n maxFramerate?: number;\n networkPriority?: RTCPriorityType;\n priority?: RTCPriorityType;\n scaleResolutionDownBy?: number;\n}\n\ninterface RTCRtpHeaderExtensionCapability {\n uri?: string;\n}\n\ninterface RTCRtpHeaderExtensionParameters {\n encrypted?: boolean;\n id: number;\n uri: string;\n}\n\ninterface RTCRtpParameters {\n codecs: RTCRtpCodecParameters[];\n headerExtensions: RTCRtpHeaderExtensionParameters[];\n rtcp: RTCRtcpParameters;\n}\n\ninterface RTCRtpReceiveParameters extends RTCRtpParameters {\n}\n\ninterface RTCRtpSendParameters extends RTCRtpParameters {\n degradationPreference?: RTCDegradationPreference;\n encodings: RTCRtpEncodingParameters[];\n transactionId: string;\n}\n\ninterface RTCRtpStreamStats extends RTCStats {\n codecId?: string;\n kind: string;\n ssrc: number;\n transportId?: string;\n}\n\ninterface RTCRtpSynchronizationSource extends RTCRtpContributingSource {\n}\n\ninterface RTCRtpTransceiverInit {\n direction?: RTCRtpTransceiverDirection;\n sendEncodings?: RTCRtpEncodingParameters[];\n streams?: MediaStream[];\n}\n\ninterface RTCSentRtpStreamStats extends RTCRtpStreamStats {\n bytesSent?: number;\n packetsSent?: number;\n}\n\ninterface RTCSessionDescriptionInit {\n sdp?: string;\n type: RTCSdpType;\n}\n\ninterface RTCStats {\n id: string;\n timestamp: DOMHighResTimeStamp;\n type: RTCStatsType;\n}\n\ninterface RTCTrackEventInit extends EventInit {\n receiver: RTCRtpReceiver;\n streams?: MediaStream[];\n track: MediaStreamTrack;\n transceiver: RTCRtpTransceiver;\n}\n\ninterface RTCTransportStats extends RTCStats {\n bytesReceived?: number;\n bytesSent?: number;\n dtlsCipher?: string;\n dtlsState: RTCDtlsTransportState;\n localCertificateId?: string;\n remoteCertificateId?: string;\n selectedCandidatePairId?: string;\n srtpCipher?: string;\n tlsVersion?: string;\n}\n\ninterface ReadableStreamGetReaderOptions {\n /**\n * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.\n *\n * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.\n */\n mode?: ReadableStreamReaderMode;\n}\n\ninterface ReadableStreamReadDoneResult<T> {\n done: true;\n value?: T;\n}\n\ninterface ReadableStreamReadValueResult<T> {\n done: false;\n value: T;\n}\n\ninterface ReadableWritablePair<R = any, W = any> {\n readable: ReadableStream<R>;\n /**\n * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n */\n writable: WritableStream<W>;\n}\n\ninterface RegistrationOptions {\n scope?: string;\n type?: WorkerType;\n updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface RequestInit {\n /** A BodyInit object or null to set request\'s body. */\n body?: BodyInit | null;\n /** A string indicating how the request will interact with the browser\'s cache to set request\'s cache. */\n cache?: RequestCache;\n /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request\'s credentials. */\n credentials?: RequestCredentials;\n /** A Headers object, an object literal, or an array of two-item arrays to set request\'s headers. */\n headers?: HeadersInit;\n /** A cryptographic hash of the resource to be fetched by request. Sets request\'s integrity. */\n integrity?: string;\n /** A boolean to set request\'s keepalive. */\n keepalive?: boolean;\n /** A string to set request\'s method. */\n method?: string;\n /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request\'s mode. */\n mode?: RequestMode;\n /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request\'s redirect. */\n redirect?: RequestRedirect;\n /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request\'s referrer. */\n referrer?: string;\n /** A referrer policy to set request\'s referrerPolicy. */\n referrerPolicy?: ReferrerPolicy;\n /** An AbortSignal to set request\'s signal. */\n signal?: AbortSignal | null;\n /** Can only be null. Used to disassociate request from any Window. */\n window?: null;\n}\n\ninterface ResizeObserverOptions {\n box?: ResizeObserverBoxOptions;\n}\n\ninterface ResponseInit {\n headers?: HeadersInit;\n status?: number;\n statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {\n hash: KeyAlgorithm;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaKeyAlgorithm extends KeyAlgorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaOaepParams extends Algorithm {\n label?: BufferSource;\n}\n\ninterface RsaOtherPrimesInfo {\n d?: string;\n r?: string;\n t?: string;\n}\n\ninterface RsaPssParams extends Algorithm {\n saltLength: number;\n}\n\ninterface SVGBoundingBoxOptions {\n clipped?: boolean;\n fill?: boolean;\n markers?: boolean;\n stroke?: boolean;\n}\n\ninterface ScrollIntoViewOptions extends ScrollOptions {\n block?: ScrollLogicalPosition;\n inline?: ScrollLogicalPosition;\n}\n\ninterface ScrollOptions {\n behavior?: ScrollBehavior;\n}\n\ninterface ScrollToOptions extends ScrollOptions {\n left?: number;\n top?: number;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n blockedURI?: string;\n columnNumber?: number;\n disposition: SecurityPolicyViolationEventDisposition;\n documentURI: string;\n effectiveDirective: string;\n lineNumber?: number;\n originalPolicy: string;\n referrer?: string;\n sample?: string;\n sourceFile?: string;\n statusCode: number;\n violatedDirective: string;\n}\n\ninterface ShadowRootInit {\n delegatesFocus?: boolean;\n mode: ShadowRootMode;\n slotAssignment?: SlotAssignmentMode;\n}\n\ninterface ShareData {\n files?: File[];\n text?: string;\n title?: string;\n url?: string;\n}\n\ninterface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {\n error: SpeechSynthesisErrorCode;\n}\n\ninterface SpeechSynthesisEventInit extends EventInit {\n charIndex?: number;\n charLength?: number;\n elapsedTime?: number;\n name?: string;\n utterance: SpeechSynthesisUtterance;\n}\n\ninterface StaticRangeInit {\n endContainer: Node;\n endOffset: number;\n startContainer: Node;\n startOffset: number;\n}\n\ninterface StereoPannerOptions extends AudioNodeOptions {\n pan?: number;\n}\n\ninterface StorageEstimate {\n quota?: number;\n usage?: number;\n}\n\ninterface StorageEventInit extends EventInit {\n key?: string | null;\n newValue?: string | null;\n oldValue?: string | null;\n storageArea?: Storage | null;\n url?: string;\n}\n\ninterface StreamPipeOptions {\n preventAbort?: boolean;\n preventCancel?: boolean;\n /**\n * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n *\n * Errors and closures of the source and destination streams propagate as follows:\n *\n * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source\'s error, or with any error that occurs during aborting the destination.\n *\n * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination\'s error, or with any error that occurs during canceling the source.\n *\n * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.\n *\n * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.\n *\n * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.\n */\n preventClose?: boolean;\n signal?: AbortSignal;\n}\n\ninterface StructuredSerializeOptions {\n transfer?: Transferable[];\n}\n\ninterface SubmitEventInit extends EventInit {\n submitter?: HTMLElement | null;\n}\n\ninterface TextDecodeOptions {\n stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n fatal?: boolean;\n ignoreBOM?: boolean;\n}\n\ninterface TextEncoderEncodeIntoResult {\n read?: number;\n written?: number;\n}\n\ninterface TouchEventInit extends EventModifierInit {\n changedTouches?: Touch[];\n targetTouches?: Touch[];\n touches?: Touch[];\n}\n\ninterface TouchInit {\n altitudeAngle?: number;\n azimuthAngle?: number;\n clientX?: number;\n clientY?: number;\n force?: number;\n identifier: number;\n pageX?: number;\n pageY?: number;\n radiusX?: number;\n radiusY?: number;\n rotationAngle?: number;\n screenX?: number;\n screenY?: number;\n target: EventTarget;\n touchType?: TouchType;\n}\n\ninterface TrackEventInit extends EventInit {\n track?: TextTrack | null;\n}\n\ninterface Transformer<I = any, O = any> {\n flush?: TransformerFlushCallback<O>;\n readableType?: undefined;\n start?: TransformerStartCallback<O>;\n transform?: TransformerTransformCallback<I, O>;\n writableType?: undefined;\n}\n\ninterface TransitionEventInit extends EventInit {\n elapsedTime?: number;\n propertyName?: string;\n pseudoElement?: string;\n}\n\ninterface UIEventInit extends EventInit {\n detail?: number;\n view?: Window | null;\n /** @deprecated */\n which?: number;\n}\n\ninterface ULongRange {\n max?: number;\n min?: number;\n}\n\ninterface UnderlyingByteSource {\n autoAllocateChunkSize?: number;\n cancel?: UnderlyingSourceCancelCallback;\n pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;\n start?: (controller: ReadableByteStreamController) => any;\n type: "bytes";\n}\n\ninterface UnderlyingDefaultSource<R = any> {\n cancel?: UnderlyingSourceCancelCallback;\n pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;\n start?: (controller: ReadableStreamDefaultController<R>) => any;\n type?: undefined;\n}\n\ninterface UnderlyingSink<W = any> {\n abort?: UnderlyingSinkAbortCallback;\n close?: UnderlyingSinkCloseCallback;\n start?: UnderlyingSinkStartCallback;\n type?: undefined;\n write?: UnderlyingSinkWriteCallback<W>;\n}\n\ninterface UnderlyingSource<R = any> {\n autoAllocateChunkSize?: number;\n cancel?: UnderlyingSourceCancelCallback;\n pull?: UnderlyingSourcePullCallback<R>;\n start?: UnderlyingSourceStartCallback<R>;\n type?: ReadableStreamType;\n}\n\ninterface ValidityStateFlags {\n badInput?: boolean;\n customError?: boolean;\n patternMismatch?: boolean;\n rangeOverflow?: boolean;\n rangeUnderflow?: boolean;\n stepMismatch?: boolean;\n tooLong?: boolean;\n tooShort?: boolean;\n typeMismatch?: boolean;\n valueMissing?: boolean;\n}\n\ninterface VideoColorSpaceInit {\n fullRange?: boolean | null;\n matrix?: VideoMatrixCoefficients | null;\n primaries?: VideoColorPrimaries | null;\n transfer?: VideoTransferCharacteristics | null;\n}\n\ninterface VideoConfiguration {\n bitrate: number;\n colorGamut?: ColorGamut;\n contentType: string;\n framerate: number;\n hdrMetadataType?: HdrMetadataType;\n height: number;\n scalabilityMode?: string;\n transferFunction?: TransferFunction;\n width: number;\n}\n\ninterface VideoFrameCallbackMetadata {\n captureTime?: DOMHighResTimeStamp;\n expectedDisplayTime: DOMHighResTimeStamp;\n height: number;\n mediaTime: number;\n presentationTime: DOMHighResTimeStamp;\n presentedFrames: number;\n processingDuration?: number;\n receiveTime?: DOMHighResTimeStamp;\n rtpTimestamp?: number;\n width: number;\n}\n\ninterface WaveShaperOptions extends AudioNodeOptions {\n curve?: number[] | Float32Array;\n oversample?: OverSampleType;\n}\n\ninterface WebGLContextAttributes {\n alpha?: boolean;\n antialias?: boolean;\n depth?: boolean;\n desynchronized?: boolean;\n failIfMajorPerformanceCaveat?: boolean;\n powerPreference?: WebGLPowerPreference;\n premultipliedAlpha?: boolean;\n preserveDrawingBuffer?: boolean;\n stencil?: boolean;\n}\n\ninterface WebGLContextEventInit extends EventInit {\n statusMessage?: string;\n}\n\ninterface WheelEventInit extends MouseEventInit {\n deltaMode?: number;\n deltaX?: number;\n deltaY?: number;\n deltaZ?: number;\n}\n\ninterface WindowPostMessageOptions extends StructuredSerializeOptions {\n targetOrigin?: string;\n}\n\ninterface WorkerOptions {\n credentials?: RequestCredentials;\n name?: string;\n type?: WorkerType;\n}\n\ninterface WorkletOptions {\n credentials?: RequestCredentials;\n}\n\ntype NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };\n\ndeclare var NodeFilter: {\n readonly FILTER_ACCEPT: 1;\n readonly FILTER_REJECT: 2;\n readonly FILTER_SKIP: 3;\n readonly SHOW_ALL: 0xFFFFFFFF;\n readonly SHOW_ELEMENT: 0x1;\n readonly SHOW_ATTRIBUTE: 0x2;\n readonly SHOW_TEXT: 0x4;\n readonly SHOW_CDATA_SECTION: 0x8;\n readonly SHOW_ENTITY_REFERENCE: 0x10;\n readonly SHOW_ENTITY: 0x20;\n readonly SHOW_PROCESSING_INSTRUCTION: 0x40;\n readonly SHOW_COMMENT: 0x80;\n readonly SHOW_DOCUMENT: 0x100;\n readonly SHOW_DOCUMENT_TYPE: 0x200;\n readonly SHOW_DOCUMENT_FRAGMENT: 0x400;\n readonly SHOW_NOTATION: 0x800;\n};\n\ntype XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };\n\n/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */\ninterface ANGLE_instanced_arrays {\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;\n}\n\ninterface ARIAMixin {\n ariaAtomic: string | null;\n ariaAutoComplete: string | null;\n ariaBusy: string | null;\n ariaChecked: string | null;\n ariaColCount: string | null;\n ariaColIndex: string | null;\n ariaColSpan: string | null;\n ariaCurrent: string | null;\n ariaDisabled: string | null;\n ariaExpanded: string | null;\n ariaHasPopup: string | null;\n ariaHidden: string | null;\n ariaInvalid: string | null;\n ariaKeyShortcuts: string | null;\n ariaLabel: string | null;\n ariaLevel: string | null;\n ariaLive: string | null;\n ariaModal: string | null;\n ariaMultiLine: string | null;\n ariaMultiSelectable: string | null;\n ariaOrientation: string | null;\n ariaPlaceholder: string | null;\n ariaPosInSet: string | null;\n ariaPressed: string | null;\n ariaReadOnly: string | null;\n ariaRequired: string | null;\n ariaRoleDescription: string | null;\n ariaRowCount: string | null;\n ariaRowIndex: string | null;\n ariaRowSpan: string | null;\n ariaSelected: string | null;\n ariaSetSize: string | null;\n ariaSort: string | null;\n ariaValueMax: string | null;\n ariaValueMin: string | null;\n ariaValueNow: string | null;\n ariaValueText: string | null;\n role: string | null;\n}\n\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\ninterface AbortController {\n /** Returns the AbortSignal object associated with this object. */\n readonly signal: AbortSignal;\n /** Invoking this method will set this object\'s AbortSignal\'s aborted flag and signal to any observers that the associated activity is to be aborted. */\n abort(reason?: any): void;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n "abort": Event;\n}\n\n/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */\ninterface AbortSignal extends EventTarget {\n /** Returns true if this AbortSignal\'s AbortController has signaled to abort, and false otherwise. */\n readonly aborted: boolean;\n onabort: ((this: AbortSignal, ev: Event) => any) | null;\n readonly reason: any;\n throwIfAborted(): void;\n addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AbortSignal: {\n prototype: AbortSignal;\n new(): AbortSignal;\n abort(reason?: any): AbortSignal;\n timeout(milliseconds: number): AbortSignal;\n};\n\ninterface AbstractRange {\n /** Returns true if range is collapsed, and false otherwise. */\n readonly collapsed: boolean;\n /** Returns range\'s end node. */\n readonly endContainer: Node;\n /** Returns range\'s end offset. */\n readonly endOffset: number;\n /** Returns range\'s start node. */\n readonly startContainer: Node;\n /** Returns range\'s start offset. */\n readonly startOffset: number;\n}\n\ndeclare var AbstractRange: {\n prototype: AbstractRange;\n new(): AbstractRange;\n};\n\ninterface AbstractWorkerEventMap {\n "error": ErrorEvent;\n}\n\ninterface AbstractWorker {\n onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;\n addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */\ninterface AnalyserNode extends AudioNode {\n fftSize: number;\n readonly frequencyBinCount: number;\n maxDecibels: number;\n minDecibels: number;\n smoothingTimeConstant: number;\n getByteFrequencyData(array: Uint8Array): void;\n getByteTimeDomainData(array: Uint8Array): void;\n getFloatFrequencyData(array: Float32Array): void;\n getFloatTimeDomainData(array: Float32Array): void;\n}\n\ndeclare var AnalyserNode: {\n prototype: AnalyserNode;\n new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;\n};\n\ninterface Animatable {\n animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;\n getAnimations(options?: GetAnimationsOptions): Animation[];\n}\n\ninterface AnimationEventMap {\n "cancel": AnimationPlaybackEvent;\n "finish": AnimationPlaybackEvent;\n "remove": Event;\n}\n\ninterface Animation extends EventTarget {\n currentTime: CSSNumberish | null;\n effect: AnimationEffect | null;\n readonly finished: Promise<Animation>;\n id: string;\n oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n onremove: ((this: Animation, ev: Event) => any) | null;\n readonly pending: boolean;\n readonly playState: AnimationPlayState;\n playbackRate: number;\n readonly ready: Promise<Animation>;\n readonly replaceState: AnimationReplaceState;\n startTime: CSSNumberish | null;\n timeline: AnimationTimeline | null;\n cancel(): void;\n commitStyles(): void;\n finish(): void;\n pause(): void;\n persist(): void;\n play(): void;\n reverse(): void;\n updatePlaybackRate(playbackRate: number): void;\n addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Animation: {\n prototype: Animation;\n new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;\n};\n\ninterface AnimationEffect {\n getComputedTiming(): ComputedEffectTiming;\n getTiming(): EffectTiming;\n updateTiming(timing?: OptionalEffectTiming): void;\n}\n\ndeclare var AnimationEffect: {\n prototype: AnimationEffect;\n new(): AnimationEffect;\n};\n\n/** Events providing information related to animations. */\ninterface AnimationEvent extends Event {\n readonly animationName: string;\n readonly elapsedTime: number;\n readonly pseudoElement: string;\n}\n\ndeclare var AnimationEvent: {\n prototype: AnimationEvent;\n new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;\n};\n\ninterface AnimationFrameProvider {\n cancelAnimationFrame(handle: number): void;\n requestAnimationFrame(callback: FrameRequestCallback): number;\n}\n\ninterface AnimationPlaybackEvent extends Event {\n readonly currentTime: CSSNumberish | null;\n readonly timelineTime: CSSNumberish | null;\n}\n\ndeclare var AnimationPlaybackEvent: {\n prototype: AnimationPlaybackEvent;\n new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;\n};\n\ninterface AnimationTimeline {\n readonly currentTime: number | null;\n}\n\ndeclare var AnimationTimeline: {\n prototype: AnimationTimeline;\n new(): AnimationTimeline;\n};\n\n/** A DOM element\'s attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */\ninterface Attr extends Node {\n readonly localName: string;\n readonly name: string;\n readonly namespaceURI: string | null;\n readonly ownerDocument: Document;\n readonly ownerElement: Element | null;\n readonly prefix: string | null;\n /** @deprecated */\n readonly specified: boolean;\n value: string;\n}\n\ndeclare var Attr: {\n prototype: Attr;\n new(): Attr;\n};\n\n/** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */\ninterface AudioBuffer {\n readonly duration: number;\n readonly length: number;\n readonly numberOfChannels: number;\n readonly sampleRate: number;\n copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;\n copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;\n getChannelData(channel: number): Float32Array;\n}\n\ndeclare var AudioBuffer: {\n prototype: AudioBuffer;\n new(options: AudioBufferOptions): AudioBuffer;\n};\n\n/** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It\'s especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */\ninterface AudioBufferSourceNode extends AudioScheduledSourceNode {\n buffer: AudioBuffer | null;\n readonly detune: AudioParam;\n loop: boolean;\n loopEnd: number;\n loopStart: number;\n readonly playbackRate: AudioParam;\n start(when?: number, offset?: number, duration?: number): void;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioBufferSourceNode: {\n prototype: AudioBufferSourceNode;\n new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;\n};\n\n/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */\ninterface AudioContext extends BaseAudioContext {\n readonly baseLatency: number;\n readonly outputLatency: number;\n close(): Promise<void>;\n createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;\n createMediaStreamDestination(): MediaStreamAudioDestinationNode;\n createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;\n getOutputTimestamp(): AudioTimestamp;\n resume(): Promise<void>;\n suspend(): Promise<void>;\n addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioContext: {\n prototype: AudioContext;\n new(contextOptions?: AudioContextOptions): AudioContext;\n};\n\n/** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */\ninterface AudioDestinationNode extends AudioNode {\n readonly maxChannelCount: number;\n}\n\ndeclare var AudioDestinationNode: {\n prototype: AudioDestinationNode;\n new(): AudioDestinationNode;\n};\n\n/** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */\ninterface AudioListener {\n readonly forwardX: AudioParam;\n readonly forwardY: AudioParam;\n readonly forwardZ: AudioParam;\n readonly positionX: AudioParam;\n readonly positionY: AudioParam;\n readonly positionZ: AudioParam;\n readonly upX: AudioParam;\n readonly upY: AudioParam;\n readonly upZ: AudioParam;\n /** @deprecated */\n setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;\n /** @deprecated */\n setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var AudioListener: {\n prototype: AudioListener;\n new(): AudioListener;\n};\n\n/** A generic interface for representing an audio processing module. Examples include: */\ninterface AudioNode extends EventTarget {\n channelCount: number;\n channelCountMode: ChannelCountMode;\n channelInterpretation: ChannelInterpretation;\n readonly context: BaseAudioContext;\n readonly numberOfInputs: number;\n readonly numberOfOutputs: number;\n connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;\n connect(destinationParam: AudioParam, output?: number): void;\n disconnect(): void;\n disconnect(output: number): void;\n disconnect(destinationNode: AudioNode): void;\n disconnect(destinationNode: AudioNode, output: number): void;\n disconnect(destinationNode: AudioNode, output: number, input: number): void;\n disconnect(destinationParam: AudioParam): void;\n disconnect(destinationParam: AudioParam, output: number): void;\n}\n\ndeclare var AudioNode: {\n prototype: AudioNode;\n new(): AudioNode;\n};\n\n/** The Web Audio API\'s AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */\ninterface AudioParam {\n automationRate: AutomationRate;\n readonly defaultValue: number;\n readonly maxValue: number;\n readonly minValue: number;\n value: number;\n cancelAndHoldAtTime(cancelTime: number): AudioParam;\n cancelScheduledValues(cancelTime: number): AudioParam;\n exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;\n linearRampToValueAtTime(value: number, endTime: number): AudioParam;\n setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;\n setValueAtTime(value: number, startTime: number): AudioParam;\n setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;\n}\n\ndeclare var AudioParam: {\n prototype: AudioParam;\n new(): AudioParam;\n};\n\ninterface AudioParamMap {\n forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;\n}\n\ndeclare var AudioParamMap: {\n prototype: AudioParamMap;\n new(): AudioParamMap;\n};\n\n/**\n * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.\n * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.\n */\ninterface AudioProcessingEvent extends Event {\n /** @deprecated */\n readonly inputBuffer: AudioBuffer;\n /** @deprecated */\n readonly outputBuffer: AudioBuffer;\n /** @deprecated */\n readonly playbackTime: number;\n}\n\n/** @deprecated */\ndeclare var AudioProcessingEvent: {\n prototype: AudioProcessingEvent;\n new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;\n};\n\ninterface AudioScheduledSourceNodeEventMap {\n "ended": Event;\n}\n\ninterface AudioScheduledSourceNode extends AudioNode {\n onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;\n start(when?: number): void;\n stop(when?: number): void;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioScheduledSourceNode: {\n prototype: AudioScheduledSourceNode;\n new(): AudioScheduledSourceNode;\n};\n\n/** Available only in secure contexts. */\ninterface AudioWorklet extends Worklet {\n}\n\ndeclare var AudioWorklet: {\n prototype: AudioWorklet;\n new(): AudioWorklet;\n};\n\ninterface AudioWorkletNodeEventMap {\n "processorerror": Event;\n}\n\n/** Available only in secure contexts. */\ninterface AudioWorkletNode extends AudioNode {\n onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;\n readonly parameters: AudioParamMap;\n readonly port: MessagePort;\n addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioWorkletNode: {\n prototype: AudioWorkletNode;\n new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;\n};\n\n/** Available only in secure contexts. */\ninterface AuthenticatorAssertionResponse extends AuthenticatorResponse {\n readonly authenticatorData: ArrayBuffer;\n readonly signature: ArrayBuffer;\n readonly userHandle: ArrayBuffer | null;\n}\n\ndeclare var AuthenticatorAssertionResponse: {\n prototype: AuthenticatorAssertionResponse;\n new(): AuthenticatorAssertionResponse;\n};\n\n/** Available only in secure contexts. */\ninterface AuthenticatorAttestationResponse extends AuthenticatorResponse {\n readonly attestationObject: ArrayBuffer;\n getAuthenticatorData(): ArrayBuffer;\n getPublicKey(): ArrayBuffer | null;\n getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;\n getTransports(): string[];\n}\n\ndeclare var AuthenticatorAttestationResponse: {\n prototype: AuthenticatorAttestationResponse;\n new(): AuthenticatorAttestationResponse;\n};\n\n/** Available only in secure contexts. */\ninterface AuthenticatorResponse {\n readonly clientDataJSON: ArrayBuffer;\n}\n\ndeclare var AuthenticatorResponse: {\n prototype: AuthenticatorResponse;\n new(): AuthenticatorResponse;\n};\n\ninterface BarProp {\n readonly visible: boolean;\n}\n\ndeclare var BarProp: {\n prototype: BarProp;\n new(): BarProp;\n};\n\ninterface BaseAudioContextEventMap {\n "statechange": Event;\n}\n\ninterface BaseAudioContext extends EventTarget {\n /** Available only in secure contexts. */\n readonly audioWorklet: AudioWorklet;\n readonly currentTime: number;\n readonly destination: AudioDestinationNode;\n readonly listener: AudioListener;\n onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;\n readonly sampleRate: number;\n readonly state: AudioContextState;\n createAnalyser(): AnalyserNode;\n createBiquadFilter(): BiquadFilterNode;\n createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;\n createBufferSource(): AudioBufferSourceNode;\n createChannelMerger(numberOfInputs?: number): ChannelMergerNode;\n createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;\n createConstantSource(): ConstantSourceNode;\n createConvolver(): ConvolverNode;\n createDelay(maxDelayTime?: number): DelayNode;\n createDynamicsCompressor(): DynamicsCompressorNode;\n createGain(): GainNode;\n createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;\n createOscillator(): OscillatorNode;\n createPanner(): PannerNode;\n createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;\n /** @deprecated */\n createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;\n createStereoPanner(): StereoPannerNode;\n createWaveShaper(): WaveShaperNode;\n decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;\n addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BaseAudioContext: {\n prototype: BaseAudioContext;\n new(): BaseAudioContext;\n};\n\n/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */\ninterface BeforeUnloadEvent extends Event {\n returnValue: any;\n}\n\ndeclare var BeforeUnloadEvent: {\n prototype: BeforeUnloadEvent;\n new(): BeforeUnloadEvent;\n};\n\n/** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */\ninterface BiquadFilterNode extends AudioNode {\n readonly Q: AudioParam;\n readonly detune: AudioParam;\n readonly frequency: AudioParam;\n readonly gain: AudioParam;\n type: BiquadFilterType;\n getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var BiquadFilterNode: {\n prototype: BiquadFilterNode;\n new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;\n};\n\n/** A file-like object of immutable, raw data. Blobs represent data that isn\'t necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user\'s system. */\ninterface Blob {\n readonly size: number;\n readonly type: string;\n arrayBuffer(): Promise<ArrayBuffer>;\n slice(start?: number, end?: number, contentType?: string): Blob;\n stream(): ReadableStream<Uint8Array>;\n text(): Promise<string>;\n}\n\ndeclare var Blob: {\n prototype: Blob;\n new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\ninterface BlobEvent extends Event {\n readonly data: Blob;\n readonly timecode: DOMHighResTimeStamp;\n}\n\ndeclare var BlobEvent: {\n prototype: BlobEvent;\n new(type: string, eventInitDict: BlobEventInit): BlobEvent;\n};\n\ninterface Body {\n readonly body: ReadableStream<Uint8Array> | null;\n readonly bodyUsed: boolean;\n arrayBuffer(): Promise<ArrayBuffer>;\n blob(): Promise<Blob>;\n formData(): Promise<FormData>;\n json(): Promise<any>;\n text(): Promise<string>;\n}\n\ninterface BroadcastChannelEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\ninterface BroadcastChannel extends EventTarget {\n /** Returns the channel name (as passed to the constructor). */\n readonly name: string;\n onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /** Closes the BroadcastChannel object, opening it up to garbage collection. */\n close(): void;\n /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */\n postMessage(message: any): void;\n addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BroadcastChannel: {\n prototype: BroadcastChannel;\n new(name: string): BroadcastChannel;\n};\n\n/** This Streams API interface provides\xa0a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {\n readonly highWaterMark: number;\n readonly size: QueuingStrategySize<ArrayBufferView>;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n prototype: ByteLengthQueuingStrategy;\n new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;\n};\n\n/** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\u2019t need escaping as they normally do when inside a CDATA section. */\ninterface CDATASection extends Text {\n}\n\ndeclare var CDATASection: {\n prototype: CDATASection;\n new(): CDATASection;\n};\n\ninterface CSSAnimation extends Animation {\n readonly animationName: string;\n addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CSSAnimation: {\n prototype: CSSAnimation;\n new(): CSSAnimation;\n};\n\n/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */\ninterface CSSConditionRule extends CSSGroupingRule {\n readonly conditionText: string;\n}\n\ndeclare var CSSConditionRule: {\n prototype: CSSConditionRule;\n new(): CSSConditionRule;\n};\n\ninterface CSSContainerRule extends CSSConditionRule {\n}\n\ndeclare var CSSContainerRule: {\n prototype: CSSContainerRule;\n new(): CSSContainerRule;\n};\n\ninterface CSSCounterStyleRule extends CSSRule {\n additiveSymbols: string;\n fallback: string;\n name: string;\n negative: string;\n pad: string;\n prefix: string;\n range: string;\n speakAs: string;\n suffix: string;\n symbols: string;\n system: string;\n}\n\ndeclare var CSSCounterStyleRule: {\n prototype: CSSCounterStyleRule;\n new(): CSSCounterStyleRule;\n};\n\ninterface CSSFontFaceRule extends CSSRule {\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSFontFaceRule: {\n prototype: CSSFontFaceRule;\n new(): CSSFontFaceRule;\n};\n\ninterface CSSFontFeatureValuesRule extends CSSRule {\n fontFamily: string;\n}\n\ndeclare var CSSFontFeatureValuesRule: {\n prototype: CSSFontFeatureValuesRule;\n new(): CSSFontFeatureValuesRule;\n};\n\ninterface CSSFontPaletteValuesRule extends CSSRule {\n readonly basePalette: string;\n readonly fontFamily: string;\n readonly name: string;\n readonly overrideColors: string;\n}\n\ndeclare var CSSFontPaletteValuesRule: {\n prototype: CSSFontPaletteValuesRule;\n new(): CSSFontPaletteValuesRule;\n};\n\n/** Any CSS at-rule that contains other rules nested within it. */\ninterface CSSGroupingRule extends CSSRule {\n readonly cssRules: CSSRuleList;\n deleteRule(index: number): void;\n insertRule(rule: string, index?: number): number;\n}\n\ndeclare var CSSGroupingRule: {\n prototype: CSSGroupingRule;\n new(): CSSGroupingRule;\n};\n\ninterface CSSImportRule extends CSSRule {\n readonly href: string;\n readonly layerName: string | null;\n readonly media: MediaList;\n readonly styleSheet: CSSStyleSheet;\n}\n\ndeclare var CSSImportRule: {\n prototype: CSSImportRule;\n new(): CSSImportRule;\n};\n\n/** An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). */\ninterface CSSKeyframeRule extends CSSRule {\n keyText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSKeyframeRule: {\n prototype: CSSKeyframeRule;\n new(): CSSKeyframeRule;\n};\n\n/** An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). */\ninterface CSSKeyframesRule extends CSSRule {\n readonly cssRules: CSSRuleList;\n name: string;\n appendRule(rule: string): void;\n deleteRule(select: string): void;\n findRule(select: string): CSSKeyframeRule | null;\n [index: number]: CSSKeyframeRule;\n}\n\ndeclare var CSSKeyframesRule: {\n prototype: CSSKeyframesRule;\n new(): CSSKeyframesRule;\n};\n\ninterface CSSLayerBlockRule extends CSSGroupingRule {\n readonly name: string;\n}\n\ndeclare var CSSLayerBlockRule: {\n prototype: CSSLayerBlockRule;\n new(): CSSLayerBlockRule;\n};\n\ninterface CSSLayerStatementRule extends CSSRule {\n readonly nameList: ReadonlyArray<string>;\n}\n\ndeclare var CSSLayerStatementRule: {\n prototype: CSSLayerStatementRule;\n new(): CSSLayerStatementRule;\n};\n\n/** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */\ninterface CSSMediaRule extends CSSConditionRule {\n readonly media: MediaList;\n}\n\ndeclare var CSSMediaRule: {\n prototype: CSSMediaRule;\n new(): CSSMediaRule;\n};\n\n/** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */\ninterface CSSNamespaceRule extends CSSRule {\n readonly namespaceURI: string;\n readonly prefix: string;\n}\n\ndeclare var CSSNamespaceRule: {\n prototype: CSSNamespaceRule;\n new(): CSSNamespaceRule;\n};\n\n/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */\ninterface CSSPageRule extends CSSGroupingRule {\n selectorText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSPageRule: {\n prototype: CSSPageRule;\n new(): CSSPageRule;\n};\n\n/** A single CSS rule. There are several types of rules, listed in the Type constants section below. */\ninterface CSSRule {\n cssText: string;\n readonly parentRule: CSSRule | null;\n readonly parentStyleSheet: CSSStyleSheet | null;\n /** @deprecated */\n readonly type: number;\n readonly STYLE_RULE: 1;\n readonly CHARSET_RULE: 2;\n readonly IMPORT_RULE: 3;\n readonly MEDIA_RULE: 4;\n readonly FONT_FACE_RULE: 5;\n readonly PAGE_RULE: 6;\n readonly NAMESPACE_RULE: 10;\n readonly KEYFRAMES_RULE: 7;\n readonly KEYFRAME_RULE: 8;\n readonly SUPPORTS_RULE: 12;\n}\n\ndeclare var CSSRule: {\n prototype: CSSRule;\n new(): CSSRule;\n readonly STYLE_RULE: 1;\n readonly CHARSET_RULE: 2;\n readonly IMPORT_RULE: 3;\n readonly MEDIA_RULE: 4;\n readonly FONT_FACE_RULE: 5;\n readonly PAGE_RULE: 6;\n readonly NAMESPACE_RULE: 10;\n readonly KEYFRAMES_RULE: 7;\n readonly KEYFRAME_RULE: 8;\n readonly SUPPORTS_RULE: 12;\n};\n\n/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */\ninterface CSSRuleList {\n readonly length: number;\n item(index: number): CSSRule | null;\n [index: number]: CSSRule;\n}\n\ndeclare var CSSRuleList: {\n prototype: CSSRuleList;\n new(): CSSRuleList;\n};\n\n/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */\ninterface CSSStyleDeclaration {\n accentColor: string;\n alignContent: string;\n alignItems: string;\n alignSelf: string;\n alignmentBaseline: string;\n all: string;\n animation: string;\n animationDelay: string;\n animationDirection: string;\n animationDuration: string;\n animationFillMode: string;\n animationIterationCount: string;\n animationName: string;\n animationPlayState: string;\n animationTimingFunction: string;\n appearance: string;\n aspectRatio: string;\n backdropFilter: string;\n backfaceVisibility: string;\n background: string;\n backgroundAttachment: string;\n backgroundBlendMode: string;\n backgroundClip: string;\n backgroundColor: string;\n backgroundImage: string;\n backgroundOrigin: string;\n backgroundPosition: string;\n backgroundPositionX: string;\n backgroundPositionY: string;\n backgroundRepeat: string;\n backgroundSize: string;\n baselineShift: string;\n blockSize: string;\n border: string;\n borderBlock: string;\n borderBlockColor: string;\n borderBlockEnd: string;\n borderBlockEndColor: string;\n borderBlockEndStyle: string;\n borderBlockEndWidth: string;\n borderBlockStart: string;\n borderBlockStartColor: string;\n borderBlockStartStyle: string;\n borderBlockStartWidth: string;\n borderBlockStyle: string;\n borderBlockWidth: string;\n borderBottom: string;\n borderBottomColor: string;\n borderBottomLeftRadius: string;\n borderBottomRightRadius: string;\n borderBottomStyle: string;\n borderBottomWidth: string;\n borderCollapse: string;\n borderColor: string;\n borderEndEndRadius: string;\n borderEndStartRadius: string;\n borderImage: string;\n borderImageOutset: string;\n borderImageRepeat: string;\n borderImageSlice: string;\n borderImageSource: string;\n borderImageWidth: string;\n borderInline: string;\n borderInlineColor: string;\n borderInlineEnd: string;\n borderInlineEndColor: string;\n borderInlineEndStyle: string;\n borderInlineEndWidth: string;\n borderInlineStart: string;\n borderInlineStartColor: string;\n borderInlineStartStyle: string;\n borderInlineStartWidth: string;\n borderInlineStyle: string;\n borderInlineWidth: string;\n borderLeft: string;\n borderLeftColor: string;\n borderLeftStyle: string;\n borderLeftWidth: string;\n borderRadius: string;\n borderRight: string;\n borderRightColor: string;\n borderRightStyle: string;\n borderRightWidth: string;\n borderSpacing: string;\n borderStartEndRadius: string;\n borderStartStartRadius: string;\n borderStyle: string;\n borderTop: string;\n borderTopColor: string;\n borderTopLeftRadius: string;\n borderTopRightRadius: string;\n borderTopStyle: string;\n borderTopWidth: string;\n borderWidth: string;\n bottom: string;\n boxShadow: string;\n boxSizing: string;\n breakAfter: string;\n breakBefore: string;\n breakInside: string;\n captionSide: string;\n caretColor: string;\n clear: string;\n /** @deprecated */\n clip: string;\n clipPath: string;\n clipRule: string;\n color: string;\n colorInterpolation: string;\n colorInterpolationFilters: string;\n colorScheme: string;\n columnCount: string;\n columnFill: string;\n columnGap: string;\n columnRule: string;\n columnRuleColor: string;\n columnRuleStyle: string;\n columnRuleWidth: string;\n columnSpan: string;\n columnWidth: string;\n columns: string;\n contain: string;\n containIntrinsicBlockSize: string;\n containIntrinsicHeight: string;\n containIntrinsicInlineSize: string;\n containIntrinsicSize: string;\n containIntrinsicWidth: string;\n container: string;\n containerName: string;\n containerType: string;\n content: string;\n contentVisibility: string;\n counterIncrement: string;\n counterReset: string;\n counterSet: string;\n cssFloat: string;\n cssText: string;\n cursor: string;\n direction: string;\n display: string;\n dominantBaseline: string;\n emptyCells: string;\n fill: string;\n fillOpacity: string;\n fillRule: string;\n filter: string;\n flex: string;\n flexBasis: string;\n flexDirection: string;\n flexFlow: string;\n flexGrow: string;\n flexShrink: string;\n flexWrap: string;\n float: string;\n floodColor: string;\n floodOpacity: string;\n font: string;\n fontFamily: string;\n fontFeatureSettings: string;\n fontKerning: string;\n fontOpticalSizing: string;\n fontPalette: string;\n fontSize: string;\n fontSizeAdjust: string;\n fontStretch: string;\n fontStyle: string;\n fontSynthesis: string;\n fontVariant: string;\n fontVariantAlternates: string;\n fontVariantCaps: string;\n fontVariantEastAsian: string;\n fontVariantLigatures: string;\n fontVariantNumeric: string;\n fontVariantPosition: string;\n fontVariationSettings: string;\n fontWeight: string;\n gap: string;\n grid: string;\n gridArea: string;\n gridAutoColumns: string;\n gridAutoFlow: string;\n gridAutoRows: string;\n gridColumn: string;\n gridColumnEnd: string;\n /** @deprecated This is a legacy alias of `columnGap`. */\n gridColumnGap: string;\n gridColumnStart: string;\n /** @deprecated This is a legacy alias of `gap`. */\n gridGap: string;\n gridRow: string;\n gridRowEnd: string;\n /** @deprecated This is a legacy alias of `rowGap`. */\n gridRowGap: string;\n gridRowStart: string;\n gridTemplate: string;\n gridTemplateAreas: string;\n gridTemplateColumns: string;\n gridTemplateRows: string;\n height: string;\n hyphenateCharacter: string;\n hyphens: string;\n /** @deprecated */\n imageOrientation: string;\n imageRendering: string;\n inlineSize: string;\n inset: string;\n insetBlock: string;\n insetBlockEnd: string;\n insetBlockStart: string;\n insetInline: string;\n insetInlineEnd: string;\n insetInlineStart: string;\n isolation: string;\n justifyContent: string;\n justifyItems: string;\n justifySelf: string;\n left: string;\n readonly length: number;\n letterSpacing: string;\n lightingColor: string;\n lineBreak: string;\n lineHeight: string;\n listStyle: string;\n listStyleImage: string;\n listStylePosition: string;\n listStyleType: string;\n margin: string;\n marginBlock: string;\n marginBlockEnd: string;\n marginBlockStart: string;\n marginBottom: string;\n marginInline: string;\n marginInlineEnd: string;\n marginInlineStart: string;\n marginLeft: string;\n marginRight: string;\n marginTop: string;\n marker: string;\n markerEnd: string;\n markerMid: string;\n markerStart: string;\n mask: string;\n maskClip: string;\n maskComposite: string;\n maskImage: string;\n maskMode: string;\n maskOrigin: string;\n maskPosition: string;\n maskRepeat: string;\n maskSize: string;\n maskType: string;\n mathStyle: string;\n maxBlockSize: string;\n maxHeight: string;\n maxInlineSize: string;\n maxWidth: string;\n minBlockSize: string;\n minHeight: string;\n minInlineSize: string;\n minWidth: string;\n mixBlendMode: string;\n objectFit: string;\n objectPosition: string;\n offset: string;\n offsetDistance: string;\n offsetPath: string;\n offsetRotate: string;\n opacity: string;\n order: string;\n orphans: string;\n outline: string;\n outlineColor: string;\n outlineOffset: string;\n outlineStyle: string;\n outlineWidth: string;\n overflow: string;\n overflowAnchor: string;\n overflowClipMargin: string;\n overflowWrap: string;\n overflowX: string;\n overflowY: string;\n overscrollBehavior: string;\n overscrollBehaviorBlock: string;\n overscrollBehaviorInline: string;\n overscrollBehaviorX: string;\n overscrollBehaviorY: string;\n padding: string;\n paddingBlock: string;\n paddingBlockEnd: string;\n paddingBlockStart: string;\n paddingBottom: string;\n paddingInline: string;\n paddingInlineEnd: string;\n paddingInlineStart: string;\n paddingLeft: string;\n paddingRight: string;\n paddingTop: string;\n pageBreakAfter: string;\n pageBreakBefore: string;\n pageBreakInside: string;\n paintOrder: string;\n readonly parentRule: CSSRule | null;\n perspective: string;\n perspectiveOrigin: string;\n placeContent: string;\n placeItems: string;\n placeSelf: string;\n pointerEvents: string;\n position: string;\n printColorAdjust: string;\n quotes: string;\n resize: string;\n right: string;\n rotate: string;\n rowGap: string;\n rubyPosition: string;\n scale: string;\n scrollBehavior: string;\n scrollMargin: string;\n scrollMarginBlock: string;\n scrollMarginBlockEnd: string;\n scrollMarginBlockStart: string;\n scrollMarginBottom: string;\n scrollMarginInline: string;\n scrollMarginInlineEnd: string;\n scrollMarginInlineStart: string;\n scrollMarginLeft: string;\n scrollMarginRight: string;\n scrollMarginTop: string;\n scrollPadding: string;\n scrollPaddingBlock: string;\n scrollPaddingBlockEnd: string;\n scrollPaddingBlockStart: string;\n scrollPaddingBottom: string;\n scrollPaddingInline: string;\n scrollPaddingInlineEnd: string;\n scrollPaddingInlineStart: string;\n scrollPaddingLeft: string;\n scrollPaddingRight: string;\n scrollPaddingTop: string;\n scrollSnapAlign: string;\n scrollSnapStop: string;\n scrollSnapType: string;\n scrollbarGutter: string;\n shapeImageThreshold: string;\n shapeMargin: string;\n shapeOutside: string;\n shapeRendering: string;\n stopColor: string;\n stopOpacity: string;\n stroke: string;\n strokeDasharray: string;\n strokeDashoffset: string;\n strokeLinecap: string;\n strokeLinejoin: string;\n strokeMiterlimit: string;\n strokeOpacity: string;\n strokeWidth: string;\n tabSize: string;\n tableLayout: string;\n textAlign: string;\n textAlignLast: string;\n textAnchor: string;\n textCombineUpright: string;\n textDecoration: string;\n textDecorationColor: string;\n textDecorationLine: string;\n textDecorationSkipInk: string;\n textDecorationStyle: string;\n textDecorationThickness: string;\n textEmphasis: string;\n textEmphasisColor: string;\n textEmphasisPosition: string;\n textEmphasisStyle: string;\n textIndent: string;\n textOrientation: string;\n textOverflow: string;\n textRendering: string;\n textShadow: string;\n textTransform: string;\n textUnderlineOffset: string;\n textUnderlinePosition: string;\n top: string;\n touchAction: string;\n transform: string;\n transformBox: string;\n transformOrigin: string;\n transformStyle: string;\n transition: string;\n transitionDelay: string;\n transitionDuration: string;\n transitionProperty: string;\n transitionTimingFunction: string;\n translate: string;\n unicodeBidi: string;\n userSelect: string;\n verticalAlign: string;\n visibility: string;\n /** @deprecated This is a legacy alias of `alignContent`. */\n webkitAlignContent: string;\n /** @deprecated This is a legacy alias of `alignItems`. */\n webkitAlignItems: string;\n /** @deprecated This is a legacy alias of `alignSelf`. */\n webkitAlignSelf: string;\n /** @deprecated This is a legacy alias of `animation`. */\n webkitAnimation: string;\n /** @deprecated This is a legacy alias of `animationDelay`. */\n webkitAnimationDelay: string;\n /** @deprecated This is a legacy alias of `animationDirection`. */\n webkitAnimationDirection: string;\n /** @deprecated This is a legacy alias of `animationDuration`. */\n webkitAnimationDuration: string;\n /** @deprecated This is a legacy alias of `animationFillMode`. */\n webkitAnimationFillMode: string;\n /** @deprecated This is a legacy alias of `animationIterationCount`. */\n webkitAnimationIterationCount: string;\n /** @deprecated This is a legacy alias of `animationName`. */\n webkitAnimationName: string;\n /** @deprecated This is a legacy alias of `animationPlayState`. */\n webkitAnimationPlayState: string;\n /** @deprecated This is a legacy alias of `animationTimingFunction`. */\n webkitAnimationTimingFunction: string;\n /** @deprecated This is a legacy alias of `appearance`. */\n webkitAppearance: string;\n /** @deprecated This is a legacy alias of `backfaceVisibility`. */\n webkitBackfaceVisibility: string;\n /** @deprecated This is a legacy alias of `backgroundClip`. */\n webkitBackgroundClip: string;\n /** @deprecated This is a legacy alias of `backgroundOrigin`. */\n webkitBackgroundOrigin: string;\n /** @deprecated This is a legacy alias of `backgroundSize`. */\n webkitBackgroundSize: string;\n /** @deprecated This is a legacy alias of `borderBottomLeftRadius`. */\n webkitBorderBottomLeftRadius: string;\n /** @deprecated This is a legacy alias of `borderBottomRightRadius`. */\n webkitBorderBottomRightRadius: string;\n /** @deprecated This is a legacy alias of `borderRadius`. */\n webkitBorderRadius: string;\n /** @deprecated This is a legacy alias of `borderTopLeftRadius`. */\n webkitBorderTopLeftRadius: string;\n /** @deprecated This is a legacy alias of `borderTopRightRadius`. */\n webkitBorderTopRightRadius: string;\n /** @deprecated This is a legacy alias of `boxAlign`. */\n webkitBoxAlign: string;\n /** @deprecated This is a legacy alias of `boxFlex`. */\n webkitBoxFlex: string;\n /** @deprecated This is a legacy alias of `boxOrdinalGroup`. */\n webkitBoxOrdinalGroup: string;\n /** @deprecated This is a legacy alias of `boxOrient`. */\n webkitBoxOrient: string;\n /** @deprecated This is a legacy alias of `boxPack`. */\n webkitBoxPack: string;\n /** @deprecated This is a legacy alias of `boxShadow`. */\n webkitBoxShadow: string;\n /** @deprecated This is a legacy alias of `boxSizing`. */\n webkitBoxSizing: string;\n /** @deprecated This is a legacy alias of `filter`. */\n webkitFilter: string;\n /** @deprecated This is a legacy alias of `flex`. */\n webkitFlex: string;\n /** @deprecated This is a legacy alias of `flexBasis`. */\n webkitFlexBasis: string;\n /** @deprecated This is a legacy alias of `flexDirection`. */\n webkitFlexDirection: string;\n /** @deprecated This is a legacy alias of `flexFlow`. */\n webkitFlexFlow: string;\n /** @deprecated This is a legacy alias of `flexGrow`. */\n webkitFlexGrow: string;\n /** @deprecated This is a legacy alias of `flexShrink`. */\n webkitFlexShrink: string;\n /** @deprecated This is a legacy alias of `flexWrap`. */\n webkitFlexWrap: string;\n /** @deprecated This is a legacy alias of `justifyContent`. */\n webkitJustifyContent: string;\n webkitLineClamp: string;\n /** @deprecated This is a legacy alias of `mask`. */\n webkitMask: string;\n /** @deprecated This is a legacy alias of `maskBorder`. */\n webkitMaskBoxImage: string;\n /** @deprecated This is a legacy alias of `maskBorderOutset`. */\n webkitMaskBoxImageOutset: string;\n /** @deprecated This is a legacy alias of `maskBorderRepeat`. */\n webkitMaskBoxImageRepeat: string;\n /** @deprecated This is a legacy alias of `maskBorderSlice`. */\n webkitMaskBoxImageSlice: string;\n /** @deprecated This is a legacy alias of `maskBorderSource`. */\n webkitMaskBoxImageSource: string;\n /** @deprecated This is a legacy alias of `maskBorderWidth`. */\n webkitMaskBoxImageWidth: string;\n /** @deprecated This is a legacy alias of `maskClip`. */\n webkitMaskClip: string;\n webkitMaskComposite: string;\n /** @deprecated This is a legacy alias of `maskImage`. */\n webkitMaskImage: string;\n /** @deprecated This is a legacy alias of `maskOrigin`. */\n webkitMaskOrigin: string;\n /** @deprecated This is a legacy alias of `maskPosition`. */\n webkitMaskPosition: string;\n /** @deprecated This is a legacy alias of `maskRepeat`. */\n webkitMaskRepeat: string;\n /** @deprecated This is a legacy alias of `maskSize`. */\n webkitMaskSize: string;\n /** @deprecated This is a legacy alias of `order`. */\n webkitOrder: string;\n /** @deprecated This is a legacy alias of `perspective`. */\n webkitPerspective: string;\n /** @deprecated This is a legacy alias of `perspectiveOrigin`. */\n webkitPerspectiveOrigin: string;\n webkitTextFillColor: string;\n /** @deprecated This is a legacy alias of `textSizeAdjust`. */\n webkitTextSizeAdjust: string;\n webkitTextStroke: string;\n webkitTextStrokeColor: string;\n webkitTextStrokeWidth: string;\n /** @deprecated This is a legacy alias of `transform`. */\n webkitTransform: string;\n /** @deprecated This is a legacy alias of `transformOrigin`. */\n webkitTransformOrigin: string;\n /** @deprecated This is a legacy alias of `transformStyle`. */\n webkitTransformStyle: string;\n /** @deprecated This is a legacy alias of `transition`. */\n webkitTransition: string;\n /** @deprecated This is a legacy alias of `transitionDelay`. */\n webkitTransitionDelay: string;\n /** @deprecated This is a legacy alias of `transitionDuration`. */\n webkitTransitionDuration: string;\n /** @deprecated This is a legacy alias of `transitionProperty`. */\n webkitTransitionProperty: string;\n /** @deprecated This is a legacy alias of `transitionTimingFunction`. */\n webkitTransitionTimingFunction: string;\n /** @deprecated This is a legacy alias of `userSelect`. */\n webkitUserSelect: string;\n whiteSpace: string;\n widows: string;\n width: string;\n willChange: string;\n wordBreak: string;\n wordSpacing: string;\n /** @deprecated */\n wordWrap: string;\n writingMode: string;\n zIndex: string;\n getPropertyPriority(property: string): string;\n getPropertyValue(property: string): string;\n item(index: number): string;\n removeProperty(property: string): string;\n setProperty(property: string, value: string | null, priority?: string): void;\n [index: number]: string;\n}\n\ndeclare var CSSStyleDeclaration: {\n prototype: CSSStyleDeclaration;\n new(): CSSStyleDeclaration;\n};\n\n/** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */\ninterface CSSStyleRule extends CSSRule {\n selectorText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSStyleRule: {\n prototype: CSSStyleRule;\n new(): CSSStyleRule;\n};\n\n/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */\ninterface CSSStyleSheet extends StyleSheet {\n readonly cssRules: CSSRuleList;\n readonly ownerRule: CSSRule | null;\n /** @deprecated */\n readonly rules: CSSRuleList;\n /** @deprecated */\n addRule(selector?: string, style?: string, index?: number): number;\n deleteRule(index: number): void;\n insertRule(rule: string, index?: number): number;\n /** @deprecated */\n removeRule(index?: number): void;\n replace(text: string): Promise<CSSStyleSheet>;\n replaceSync(text: string): void;\n}\n\ndeclare var CSSStyleSheet: {\n prototype: CSSStyleSheet;\n new(options?: CSSStyleSheetInit): CSSStyleSheet;\n};\n\n/** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */\ninterface CSSSupportsRule extends CSSConditionRule {\n}\n\ndeclare var CSSSupportsRule: {\n prototype: CSSSupportsRule;\n new(): CSSSupportsRule;\n};\n\ninterface CSSTransition extends Animation {\n readonly transitionProperty: string;\n addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CSSTransition: {\n prototype: CSSTransition;\n new(): CSSTransition;\n};\n\n/**\n * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don\'t have to use it in conjunction with service workers, even though it is defined in the service worker spec.\n * Available only in secure contexts.\n */\ninterface Cache {\n add(request: RequestInfo | URL): Promise<void>;\n addAll(requests: RequestInfo[]): Promise<void>;\n delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;\n keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;\n matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n put(request: RequestInfo | URL, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n prototype: Cache;\n new(): Cache;\n};\n\n/**\n * The storage for Cache objects.\n * Available only in secure contexts.\n */\ninterface CacheStorage {\n delete(cacheName: string): Promise<boolean>;\n has(cacheName: string): Promise<boolean>;\n keys(): Promise<string[]>;\n match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;\n open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n prototype: CacheStorage;\n new(): CacheStorage;\n};\n\ninterface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {\n readonly canvas: HTMLCanvasElement;\n requestFrame(): void;\n addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CanvasCaptureMediaStreamTrack: {\n prototype: CanvasCaptureMediaStreamTrack;\n new(): CanvasCaptureMediaStreamTrack;\n};\n\ninterface CanvasCompositing {\n globalAlpha: number;\n globalCompositeOperation: GlobalCompositeOperation;\n}\n\ninterface CanvasDrawImage {\n drawImage(image: CanvasImageSource, dx: number, dy: number): void;\n drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;\n drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;\n}\n\ninterface CanvasDrawPath {\n beginPath(): void;\n clip(fillRule?: CanvasFillRule): void;\n clip(path: Path2D, fillRule?: CanvasFillRule): void;\n fill(fillRule?: CanvasFillRule): void;\n fill(path: Path2D, fillRule?: CanvasFillRule): void;\n isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;\n isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\n isPointInStroke(x: number, y: number): boolean;\n isPointInStroke(path: Path2D, x: number, y: number): boolean;\n stroke(): void;\n stroke(path: Path2D): void;\n}\n\ninterface CanvasFillStrokeStyles {\n fillStyle: string | CanvasGradient | CanvasPattern;\n strokeStyle: string | CanvasGradient | CanvasPattern;\n createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;\n createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;\n createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n}\n\ninterface CanvasFilters {\n filter: string;\n}\n\n/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */\ninterface CanvasGradient {\n /**\n * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.\n *\n * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.\n */\n addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n prototype: CanvasGradient;\n new(): CanvasGradient;\n};\n\ninterface CanvasImageData {\n createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n createImageData(imagedata: ImageData): ImageData;\n getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n putImageData(imagedata: ImageData, dx: number, dy: number): void;\n putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;\n}\n\ninterface CanvasImageSmoothing {\n imageSmoothingEnabled: boolean;\n imageSmoothingQuality: ImageSmoothingQuality;\n}\n\ninterface CanvasPath {\n arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n closePath(): void;\n ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n lineTo(x: number, y: number): void;\n moveTo(x: number, y: number): void;\n quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n rect(x: number, y: number, w: number, h: number): void;\n roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;\n}\n\ninterface CanvasPathDrawingStyles {\n lineCap: CanvasLineCap;\n lineDashOffset: number;\n lineJoin: CanvasLineJoin;\n lineWidth: number;\n miterLimit: number;\n getLineDash(): number[];\n setLineDash(segments: number[]): void;\n}\n\n/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */\ninterface CanvasPattern {\n /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */\n setTransform(transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var CanvasPattern: {\n prototype: CanvasPattern;\n new(): CanvasPattern;\n};\n\ninterface CanvasRect {\n clearRect(x: number, y: number, w: number, h: number): void;\n fillRect(x: number, y: number, w: number, h: number): void;\n strokeRect(x: number, y: number, w: number, h: number): void;\n}\n\n/** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects. */\ninterface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {\n readonly canvas: HTMLCanvasElement;\n getContextAttributes(): CanvasRenderingContext2DSettings;\n}\n\ndeclare var CanvasRenderingContext2D: {\n prototype: CanvasRenderingContext2D;\n new(): CanvasRenderingContext2D;\n};\n\ninterface CanvasShadowStyles {\n shadowBlur: number;\n shadowColor: string;\n shadowOffsetX: number;\n shadowOffsetY: number;\n}\n\ninterface CanvasState {\n restore(): void;\n save(): void;\n}\n\ninterface CanvasText {\n fillText(text: string, x: number, y: number, maxWidth?: number): void;\n measureText(text: string): TextMetrics;\n strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n}\n\ninterface CanvasTextDrawingStyles {\n direction: CanvasDirection;\n font: string;\n fontKerning: CanvasFontKerning;\n textAlign: CanvasTextAlign;\n textBaseline: CanvasTextBaseline;\n}\n\ninterface CanvasTransform {\n getTransform(): DOMMatrix;\n resetTransform(): void;\n rotate(angle: number): void;\n scale(x: number, y: number): void;\n setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n setTransform(transform?: DOMMatrix2DInit): void;\n transform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n translate(x: number, y: number): void;\n}\n\ninterface CanvasUserInterface {\n drawFocusIfNeeded(element: Element): void;\n drawFocusIfNeeded(path: Path2D, element: Element): void;\n}\n\n/** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */\ninterface ChannelMergerNode extends AudioNode {\n}\n\ndeclare var ChannelMergerNode: {\n prototype: ChannelMergerNode;\n new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;\n};\n\n/** The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */\ninterface ChannelSplitterNode extends AudioNode {\n}\n\ndeclare var ChannelSplitterNode: {\n prototype: ChannelSplitterNode;\n new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;\n};\n\n/** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren\'t any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren\'t abstract. */\ninterface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {\n data: string;\n readonly length: number;\n readonly ownerDocument: Document;\n appendData(data: string): void;\n deleteData(offset: number, count: number): void;\n insertData(offset: number, data: string): void;\n replaceData(offset: number, count: number, data: string): void;\n substringData(offset: number, count: number): string;\n}\n\ndeclare var CharacterData: {\n prototype: CharacterData;\n new(): CharacterData;\n};\n\ninterface ChildNode extends Node {\n /**\n * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n after(...nodes: (Node | string)[]): void;\n /**\n * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n before(...nodes: (Node | string)[]): void;\n /** Removes node. */\n remove(): void;\n /**\n * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n replaceWith(...nodes: (Node | string)[]): void;\n}\n\n/** @deprecated */\ninterface ClientRect extends DOMRect {\n}\n\n/** Available only in secure contexts. */\ninterface Clipboard extends EventTarget {\n read(): Promise<ClipboardItems>;\n readText(): Promise<string>;\n write(data: ClipboardItems): Promise<void>;\n writeText(data: string): Promise<void>;\n}\n\ndeclare var Clipboard: {\n prototype: Clipboard;\n new(): Clipboard;\n};\n\n/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */\ninterface ClipboardEvent extends Event {\n readonly clipboardData: DataTransfer | null;\n}\n\ndeclare var ClipboardEvent: {\n prototype: ClipboardEvent;\n new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;\n};\n\n/** Available only in secure contexts. */\ninterface ClipboardItem {\n readonly presentationStyle: PresentationStyle;\n readonly types: ReadonlyArray<string>;\n getType(type: string): Promise<Blob>;\n}\n\ndeclare var ClipboardItem: {\n prototype: ClipboardItem;\n new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;\n};\n\n/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object\'s onclose attribute. */\ninterface CloseEvent extends Event {\n /** Returns the WebSocket connection close code provided by the server. */\n readonly code: number;\n /** Returns the WebSocket connection close reason provided by the server. */\n readonly reason: string;\n /** Returns true if the connection closed cleanly; false otherwise. */\n readonly wasClean: boolean;\n}\n\ndeclare var CloseEvent: {\n prototype: CloseEvent;\n new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\n/** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */\ninterface Comment extends CharacterData {\n}\n\ndeclare var Comment: {\n prototype: Comment;\n new(data?: string): Comment;\n};\n\n/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */\ninterface CompositionEvent extends UIEvent {\n readonly data: string;\n /** @deprecated */\n initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;\n}\n\ndeclare var CompositionEvent: {\n prototype: CompositionEvent;\n new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;\n};\n\ninterface ConstantSourceNode extends AudioScheduledSourceNode {\n readonly offset: AudioParam;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ConstantSourceNode: {\n prototype: ConstantSourceNode;\n new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;\n};\n\n/** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */\ninterface ConvolverNode extends AudioNode {\n buffer: AudioBuffer | null;\n normalize: boolean;\n}\n\ndeclare var ConvolverNode: {\n prototype: ConvolverNode;\n new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;\n};\n\n/** This Streams API interface provides\xa0a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface CountQueuingStrategy extends QueuingStrategy {\n readonly highWaterMark: number;\n readonly size: QueuingStrategySize;\n}\n\ndeclare var CountQueuingStrategy: {\n prototype: CountQueuingStrategy;\n new(init: QueuingStrategyInit): CountQueuingStrategy;\n};\n\n/** Available only in secure contexts. */\ninterface Credential {\n readonly id: string;\n readonly type: string;\n}\n\ndeclare var Credential: {\n prototype: Credential;\n new(): Credential;\n};\n\n/** Available only in secure contexts. */\ninterface CredentialsContainer {\n create(options?: CredentialCreationOptions): Promise<Credential | null>;\n get(options?: CredentialRequestOptions): Promise<Credential | null>;\n preventSilentAccess(): Promise<void>;\n store(credential: Credential): Promise<Credential>;\n}\n\ndeclare var CredentialsContainer: {\n prototype: CredentialsContainer;\n new(): CredentialsContainer;\n};\n\n/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */\ninterface Crypto {\n /** Available only in secure contexts. */\n readonly subtle: SubtleCrypto;\n getRandomValues<T extends ArrayBufferView | null>(array: T): T;\n /** Available only in secure contexts. */\n randomUUID(): `${string}-${string}-${string}-${string}-${string}`;\n}\n\ndeclare var Crypto: {\n prototype: Crypto;\n new(): Crypto;\n};\n\n/**\n * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.\n * Available only in secure contexts.\n */\ninterface CryptoKey {\n readonly algorithm: KeyAlgorithm;\n readonly extractable: boolean;\n readonly type: KeyType;\n readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\ninterface CustomElementRegistry {\n define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;\n get(name: string): CustomElementConstructor | undefined;\n upgrade(root: Node): void;\n whenDefined(name: string): Promise<CustomElementConstructor>;\n}\n\ndeclare var CustomElementRegistry: {\n prototype: CustomElementRegistry;\n new(): CustomElementRegistry;\n};\n\ninterface CustomEvent<T = any> extends Event {\n /** Returns any custom data event was created with. Typically used for synthetic events. */\n readonly detail: T;\n /** @deprecated */\n initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;\n}\n\ndeclare var CustomEvent: {\n prototype: CustomEvent;\n new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\n/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */\ninterface DOMException extends Error {\n /** @deprecated */\n readonly code: number;\n readonly message: string;\n readonly name: string;\n readonly INDEX_SIZE_ERR: 1;\n readonly DOMSTRING_SIZE_ERR: 2;\n readonly HIERARCHY_REQUEST_ERR: 3;\n readonly WRONG_DOCUMENT_ERR: 4;\n readonly INVALID_CHARACTER_ERR: 5;\n readonly NO_DATA_ALLOWED_ERR: 6;\n readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n readonly NOT_FOUND_ERR: 8;\n readonly NOT_SUPPORTED_ERR: 9;\n readonly INUSE_ATTRIBUTE_ERR: 10;\n readonly INVALID_STATE_ERR: 11;\n readonly SYNTAX_ERR: 12;\n readonly INVALID_MODIFICATION_ERR: 13;\n readonly NAMESPACE_ERR: 14;\n readonly INVALID_ACCESS_ERR: 15;\n readonly VALIDATION_ERR: 16;\n readonly TYPE_MISMATCH_ERR: 17;\n readonly SECURITY_ERR: 18;\n readonly NETWORK_ERR: 19;\n readonly ABORT_ERR: 20;\n readonly URL_MISMATCH_ERR: 21;\n readonly QUOTA_EXCEEDED_ERR: 22;\n readonly TIMEOUT_ERR: 23;\n readonly INVALID_NODE_TYPE_ERR: 24;\n readonly DATA_CLONE_ERR: 25;\n}\n\ndeclare var DOMException: {\n prototype: DOMException;\n new(message?: string, name?: string): DOMException;\n readonly INDEX_SIZE_ERR: 1;\n readonly DOMSTRING_SIZE_ERR: 2;\n readonly HIERARCHY_REQUEST_ERR: 3;\n readonly WRONG_DOCUMENT_ERR: 4;\n readonly INVALID_CHARACTER_ERR: 5;\n readonly NO_DATA_ALLOWED_ERR: 6;\n readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n readonly NOT_FOUND_ERR: 8;\n readonly NOT_SUPPORTED_ERR: 9;\n readonly INUSE_ATTRIBUTE_ERR: 10;\n readonly INVALID_STATE_ERR: 11;\n readonly SYNTAX_ERR: 12;\n readonly INVALID_MODIFICATION_ERR: 13;\n readonly NAMESPACE_ERR: 14;\n readonly INVALID_ACCESS_ERR: 15;\n readonly VALIDATION_ERR: 16;\n readonly TYPE_MISMATCH_ERR: 17;\n readonly SECURITY_ERR: 18;\n readonly NETWORK_ERR: 19;\n readonly ABORT_ERR: 20;\n readonly URL_MISMATCH_ERR: 21;\n readonly QUOTA_EXCEEDED_ERR: 22;\n readonly TIMEOUT_ERR: 23;\n readonly INVALID_NODE_TYPE_ERR: 24;\n readonly DATA_CLONE_ERR: 25;\n};\n\n/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */\ninterface DOMImplementation {\n createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;\n createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;\n createHTMLDocument(title?: string): Document;\n /** @deprecated */\n hasFeature(...args: any[]): true;\n}\n\ndeclare var DOMImplementation: {\n prototype: DOMImplementation;\n new(): DOMImplementation;\n};\n\ninterface DOMMatrix extends DOMMatrixReadOnly {\n a: number;\n b: number;\n c: number;\n d: number;\n e: number;\n f: number;\n m11: number;\n m12: number;\n m13: number;\n m14: number;\n m21: number;\n m22: number;\n m23: number;\n m24: number;\n m31: number;\n m32: number;\n m33: number;\n m34: number;\n m41: number;\n m42: number;\n m43: number;\n m44: number;\n invertSelf(): DOMMatrix;\n multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n setMatrixValue(transformList: string): DOMMatrix;\n skewXSelf(sx?: number): DOMMatrix;\n skewYSelf(sy?: number): DOMMatrix;\n translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrix: {\n prototype: DOMMatrix;\n new(init?: string | number[]): DOMMatrix;\n fromFloat32Array(array32: Float32Array): DOMMatrix;\n fromFloat64Array(array64: Float64Array): DOMMatrix;\n fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\ntype SVGMatrix = DOMMatrix;\ndeclare var SVGMatrix: typeof DOMMatrix;\n\ntype WebKitCSSMatrix = DOMMatrix;\ndeclare var WebKitCSSMatrix: typeof DOMMatrix;\n\ninterface DOMMatrixReadOnly {\n readonly a: number;\n readonly b: number;\n readonly c: number;\n readonly d: number;\n readonly e: number;\n readonly f: number;\n readonly is2D: boolean;\n readonly isIdentity: boolean;\n readonly m11: number;\n readonly m12: number;\n readonly m13: number;\n readonly m14: number;\n readonly m21: number;\n readonly m22: number;\n readonly m23: number;\n readonly m24: number;\n readonly m31: number;\n readonly m32: number;\n readonly m33: number;\n readonly m34: number;\n readonly m41: number;\n readonly m42: number;\n readonly m43: number;\n readonly m44: number;\n flipX(): DOMMatrix;\n flipY(): DOMMatrix;\n inverse(): DOMMatrix;\n multiply(other?: DOMMatrixInit): DOMMatrix;\n rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVector(x?: number, y?: number): DOMMatrix;\n scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** @deprecated */\n scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n skewX(sx?: number): DOMMatrix;\n skewY(sy?: number): DOMMatrix;\n toFloat32Array(): Float32Array;\n toFloat64Array(): Float64Array;\n toJSON(): any;\n transformPoint(point?: DOMPointInit): DOMPoint;\n translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\n toString(): string;\n}\n\ndeclare var DOMMatrixReadOnly: {\n prototype: DOMMatrixReadOnly;\n new(init?: string | number[]): DOMMatrixReadOnly;\n fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;\n fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\n fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n toString(): string;\n};\n\n/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */\ninterface DOMParser {\n /**\n * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser).\n *\n * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.\n *\n * Note that script elements are not evaluated during parsing, and the resulting document\'s encoding will always be UTF-8.\n *\n * Values other than the above for type will cause a TypeError exception to be thrown.\n */\n parseFromString(string: string, type: DOMParserSupportedType): Document;\n}\n\ndeclare var DOMParser: {\n prototype: DOMParser;\n new(): DOMParser;\n};\n\ninterface DOMPoint extends DOMPointReadOnly {\n w: number;\n x: number;\n y: number;\n z: number;\n}\n\ndeclare var DOMPoint: {\n prototype: DOMPoint;\n new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\ntype SVGPoint = DOMPoint;\ndeclare var SVGPoint: typeof DOMPoint;\n\ninterface DOMPointReadOnly {\n readonly w: number;\n readonly x: number;\n readonly y: number;\n readonly z: number;\n matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n prototype: DOMPointReadOnly;\n new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\ninterface DOMQuad {\n readonly p1: DOMPoint;\n readonly p2: DOMPoint;\n readonly p3: DOMPoint;\n readonly p4: DOMPoint;\n getBounds(): DOMRect;\n toJSON(): any;\n}\n\ndeclare var DOMQuad: {\n prototype: DOMQuad;\n new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\n fromQuad(other?: DOMQuadInit): DOMQuad;\n fromRect(other?: DOMRectInit): DOMQuad;\n};\n\ninterface DOMRect extends DOMRectReadOnly {\n height: number;\n width: number;\n x: number;\n y: number;\n}\n\ndeclare var DOMRect: {\n prototype: DOMRect;\n new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n fromRect(other?: DOMRectInit): DOMRect;\n};\n\ntype SVGRect = DOMRect;\ndeclare var SVGRect: typeof DOMRect;\n\ninterface DOMRectList {\n readonly length: number;\n item(index: number): DOMRect | null;\n [index: number]: DOMRect;\n}\n\ndeclare var DOMRectList: {\n prototype: DOMRectList;\n new(): DOMRectList;\n};\n\ninterface DOMRectReadOnly {\n readonly bottom: number;\n readonly height: number;\n readonly left: number;\n readonly right: number;\n readonly top: number;\n readonly width: number;\n readonly x: number;\n readonly y: number;\n toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/** A type returned by some APIs which contains a list of DOMString (strings). */\ninterface DOMStringList {\n /** Returns the number of strings in strings. */\n readonly length: number;\n /** Returns true if strings contains string, and false otherwise. */\n contains(string: string): boolean;\n /** Returns the string with index index from strings. */\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var DOMStringList: {\n prototype: DOMStringList;\n new(): DOMStringList;\n};\n\n/** Used by the dataset\xa0HTML\xa0attribute to represent data for custom attributes added to elements. */\ninterface DOMStringMap {\n [name: string]: string | undefined;\n}\n\ndeclare var DOMStringMap: {\n prototype: DOMStringMap;\n new(): DOMStringMap;\n};\n\n/** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */\ninterface DOMTokenList {\n /** Returns the number of tokens. */\n readonly length: number;\n /**\n * Returns the associated set as string.\n *\n * Can be set, to change the associated attribute.\n */\n value: string;\n toString(): string;\n /**\n * Adds all arguments passed, except those already present.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n */\n add(...tokens: string[]): void;\n /** Returns true if token is present, and false otherwise. */\n contains(token: string): boolean;\n /** Returns the token with index index. */\n item(index: number): string | null;\n /**\n * Removes arguments passed, if they are present.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n */\n remove(...tokens: string[]): void;\n /**\n * Replaces token with newToken.\n *\n * Returns true if token was replaced with newToken, and false otherwise.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n */\n replace(token: string, newToken: string): boolean;\n /**\n * Returns true if token is in the associated attribute\'s supported tokens. Returns false otherwise.\n *\n * Throws a TypeError if the associated attribute has no supported tokens defined.\n */\n supports(token: string): boolean;\n /**\n * If force is not given, "toggles" token, removing it if it\'s present and adding it if it\'s not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).\n *\n * Returns true if token is now present, and false otherwise.\n *\n * Throws a "SyntaxError" DOMException if token is empty.\n *\n * Throws an "InvalidCharacterError" DOMException if token contains any spaces.\n */\n toggle(token: string, force?: boolean): boolean;\n forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;\n [index: number]: string;\n}\n\ndeclare var DOMTokenList: {\n prototype: DOMTokenList;\n new(): DOMTokenList;\n};\n\n/** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */\ninterface DataTransfer {\n /**\n * Returns the kind of operation that is currently selected. If the kind of operation isn\'t one of those that is allowed by the effectAllowed attribute, then the operation will fail.\n *\n * Can be set, to change the selected operation.\n *\n * The possible values are "none", "copy", "link", and "move".\n */\n dropEffect: "none" | "copy" | "link" | "move";\n /**\n * Returns the kinds of operations that are to be allowed.\n *\n * Can be set (during the dragstart event), to change the allowed operations.\n *\n * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",\n */\n effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";\n /** Returns a FileList of the files being dragged, if any. */\n readonly files: FileList;\n /** Returns a DataTransferItemList object, with the drag data. */\n readonly items: DataTransferItemList;\n /** Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files". */\n readonly types: ReadonlyArray<string>;\n /** Removes the data of the specified formats. Removes all data if the argument is omitted. */\n clearData(format?: string): void;\n /** Returns the specified data. If there is no such data, returns the empty string. */\n getData(format: string): string;\n /** Adds the specified data. */\n setData(format: string, data: string): void;\n /** Uses the given element to update the drag feedback, replacing any previously specified feedback. */\n setDragImage(image: Element, x: number, y: number): void;\n}\n\ndeclare var DataTransfer: {\n prototype: DataTransfer;\n new(): DataTransfer;\n};\n\n/** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */\ninterface DataTransferItem {\n /** Returns the drag data item kind, one of: "string", "file". */\n readonly kind: string;\n /** Returns the drag data item type string. */\n readonly type: string;\n /** Returns a File object, if the drag data item kind is File. */\n getAsFile(): File | null;\n /** Invokes the callback with the string data as the argument, if the drag data item kind is text. */\n getAsString(callback: FunctionStringCallback | null): void;\n webkitGetAsEntry(): FileSystemEntry | null;\n}\n\ndeclare var DataTransferItem: {\n prototype: DataTransferItem;\n new(): DataTransferItem;\n};\n\n/** A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. */\ninterface DataTransferItemList {\n /** Returns the number of items in the drag data store. */\n readonly length: number;\n /** Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. */\n add(data: string, type: string): DataTransferItem | null;\n add(data: File): DataTransferItem | null;\n /** Removes all the entries in the drag data store. */\n clear(): void;\n /** Removes the indexth entry in the drag data store. */\n remove(index: number): void;\n [index: number]: DataTransferItem;\n}\n\ndeclare var DataTransferItemList: {\n prototype: DataTransferItemList;\n new(): DataTransferItemList;\n};\n\n/** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */\ninterface DelayNode extends AudioNode {\n readonly delayTime: AudioParam;\n}\n\ndeclare var DelayNode: {\n prototype: DelayNode;\n new(context: BaseAudioContext, options?: DelayOptions): DelayNode;\n};\n\n/**\n * The DeviceMotionEvent provides web developers with information about the speed of changes for the device\'s position and orientation.\n * Available only in secure contexts.\n */\ninterface DeviceMotionEvent extends Event {\n readonly acceleration: DeviceMotionEventAcceleration | null;\n readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;\n readonly interval: number;\n readonly rotationRate: DeviceMotionEventRotationRate | null;\n}\n\ndeclare var DeviceMotionEvent: {\n prototype: DeviceMotionEvent;\n new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;\n};\n\n/** Available only in secure contexts. */\ninterface DeviceMotionEventAcceleration {\n readonly x: number | null;\n readonly y: number | null;\n readonly z: number | null;\n}\n\n/** Available only in secure contexts. */\ninterface DeviceMotionEventRotationRate {\n readonly alpha: number | null;\n readonly beta: number | null;\n readonly gamma: number | null;\n}\n\n/**\n * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.\n * Available only in secure contexts.\n */\ninterface DeviceOrientationEvent extends Event {\n readonly absolute: boolean;\n readonly alpha: number | null;\n readonly beta: number | null;\n readonly gamma: number | null;\n}\n\ndeclare var DeviceOrientationEvent: {\n prototype: DeviceOrientationEvent;\n new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;\n};\n\ninterface DocumentEventMap extends GlobalEventHandlersEventMap {\n "DOMContentLoaded": Event;\n "fullscreenchange": Event;\n "fullscreenerror": Event;\n "pointerlockchange": Event;\n "pointerlockerror": Event;\n "readystatechange": Event;\n "visibilitychange": Event;\n}\n\n/** Any web page loaded in the browser and serves as an entry point into the web page\'s content, which is the DOM tree. */\ninterface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {\n /** Sets or gets the URL for the current document. */\n readonly URL: string;\n /**\n * Sets or gets the color of all active links in the document.\n * @deprecated\n */\n alinkColor: string;\n /**\n * Returns a reference to the collection of elements contained by the object.\n * @deprecated\n */\n readonly all: HTMLAllCollection;\n /**\n * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.\n * @deprecated\n */\n readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;\n /**\n * Retrieves a collection of all applet objects in the document.\n * @deprecated\n */\n readonly applets: HTMLCollection;\n /**\n * Deprecated. Sets or retrieves a value that indicates the background color behind the object.\n * @deprecated\n */\n bgColor: string;\n /** Specifies the beginning and end of the document body. */\n body: HTMLElement;\n /** Returns document\'s encoding. */\n readonly characterSet: string;\n /**\n * Gets or sets the character set used to encode the object.\n * @deprecated This is a legacy alias of `characterSet`.\n */\n readonly charset: string;\n /** Gets a value that indicates whether standards-compliant mode is switched on for the object. */\n readonly compatMode: string;\n /** Returns document\'s content type. */\n readonly contentType: string;\n /**\n * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can\'t be applied to this resource, the empty string will be returned.\n *\n * Can be set, to add a new cookie to the element\'s set of HTTP cookies.\n *\n * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.\n */\n cookie: string;\n /**\n * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.\n *\n * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.\n */\n readonly currentScript: HTMLOrSVGScriptElement | null;\n /** Returns the Window object of the active document. */\n readonly defaultView: (WindowProxy & typeof globalThis) | null;\n /** Sets or gets a value that indicates whether the document can be edited. */\n designMode: string;\n /** Sets or retrieves a value that indicates the reading order of the object. */\n dir: string;\n /** Gets an object representing the document type declaration associated with the current document. */\n readonly doctype: DocumentType | null;\n /** Gets a reference to the root node of the document. */\n readonly documentElement: HTMLElement;\n /** Returns document\'s URL. */\n readonly documentURI: string;\n /**\n * Sets or gets the security domain of the document.\n * @deprecated\n */\n domain: string;\n /** Retrieves a collection of all embed objects in the document. */\n readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;\n /**\n * Sets or gets the foreground (text) color of the document.\n * @deprecated\n */\n fgColor: string;\n /** Retrieves a collection, in source order, of all form objects in the document. */\n readonly forms: HTMLCollectionOf<HTMLFormElement>;\n /** @deprecated */\n readonly fullscreen: boolean;\n /** Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. */\n readonly fullscreenEnabled: boolean;\n /** Returns the head element. */\n readonly head: HTMLHeadElement;\n readonly hidden: boolean;\n /** Retrieves a collection, in source order, of img objects in the document. */\n readonly images: HTMLCollectionOf<HTMLImageElement>;\n /** Gets the implementation object of the current document. */\n readonly implementation: DOMImplementation;\n /**\n * Returns the character encoding used to create the webpage that is loaded into the document object.\n * @deprecated This is a legacy alias of `characterSet`.\n */\n readonly inputEncoding: string;\n /** Gets the date that the page was last modified, if the page supplies one. */\n readonly lastModified: string;\n /**\n * Sets or gets the color of the document links.\n * @deprecated\n */\n linkColor: string;\n /** Retrieves a collection of all a objects that specify the href property and all area objects in the document. */\n readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;\n /** Contains information about the current URL. */\n get location(): Location;\n set location(href: string | Location);\n onfullscreenchange: ((this: Document, ev: Event) => any) | null;\n onfullscreenerror: ((this: Document, ev: Event) => any) | null;\n onpointerlockchange: ((this: Document, ev: Event) => any) | null;\n onpointerlockerror: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when the state of the object has changed.\n * @param ev The event\n */\n onreadystatechange: ((this: Document, ev: Event) => any) | null;\n onvisibilitychange: ((this: Document, ev: Event) => any) | null;\n readonly ownerDocument: null;\n readonly pictureInPictureEnabled: boolean;\n /** Return an HTMLCollection of the embed elements in the Document. */\n readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;\n /** Retrieves a value that indicates the current state of the object. */\n readonly readyState: DocumentReadyState;\n /** Gets the URL of the location that referred the user to the current page. */\n readonly referrer: string;\n /** @deprecated */\n readonly rootElement: SVGSVGElement | null;\n /** Retrieves a collection of all script objects in the document. */\n readonly scripts: HTMLCollectionOf<HTMLScriptElement>;\n readonly scrollingElement: Element | null;\n readonly timeline: DocumentTimeline;\n /** Contains the title of the document. */\n title: string;\n readonly visibilityState: DocumentVisibilityState;\n /**\n * Sets or gets the color of the links that the user has visited.\n * @deprecated\n */\n vlinkColor: string;\n /**\n * Moves node from another document and returns it.\n *\n * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.\n */\n adoptNode<T extends Node>(node: T): T;\n /** @deprecated */\n captureEvents(): void;\n /** @deprecated */\n caretRangeFromPoint(x: number, y: number): Range | null;\n /** @deprecated */\n clear(): void;\n /** Closes an output stream and forces the sent data to display. */\n close(): void;\n /**\n * Creates an attribute object with a specified name.\n * @param name String that sets the attribute object\'s name.\n */\n createAttribute(localName: string): Attr;\n createAttributeNS(namespace: string | null, qualifiedName: string): Attr;\n /** Returns a CDATASection node whose data is data. */\n createCDATASection(data: string): CDATASection;\n /**\n * Creates a comment object with the specified data.\n * @param data Sets the comment object\'s data.\n */\n createComment(data: string): Comment;\n /** Creates a new document. */\n createDocumentFragment(): DocumentFragment;\n /**\n * Creates an instance of the element for the specified tag.\n * @param tagName The name of an element.\n */\n createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];\n /** @deprecated */\n createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];\n createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;\n /**\n * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.\n *\n * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.\n *\n * If one of the following conditions is true a "NamespaceError" DOMException will be thrown:\n *\n * localName does not match the QName production.\n * Namespace prefix is not null and namespace is the empty string.\n * Namespace prefix is "xml" and namespace is not the XML namespace.\n * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.\n * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".\n *\n * When supplied, options\'s is can be used to create a customized built-in element.\n */\n createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;\n createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;\n createElementNS<K extends keyof MathMLElementTagNameMap>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K];\n createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement;\n createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;\n createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;\n createEvent(eventInterface: "AnimationEvent"): AnimationEvent;\n createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;\n createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;\n createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;\n createEvent(eventInterface: "BlobEvent"): BlobEvent;\n createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;\n createEvent(eventInterface: "CloseEvent"): CloseEvent;\n createEvent(eventInterface: "CompositionEvent"): CompositionEvent;\n createEvent(eventInterface: "CustomEvent"): CustomEvent;\n createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;\n createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;\n createEvent(eventInterface: "DragEvent"): DragEvent;\n createEvent(eventInterface: "ErrorEvent"): ErrorEvent;\n createEvent(eventInterface: "Event"): Event;\n createEvent(eventInterface: "Events"): Event;\n createEvent(eventInterface: "FocusEvent"): FocusEvent;\n createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;\n createEvent(eventInterface: "FormDataEvent"): FormDataEvent;\n createEvent(eventInterface: "GamepadEvent"): GamepadEvent;\n createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;\n createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;\n createEvent(eventInterface: "InputEvent"): InputEvent;\n createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;\n createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;\n createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;\n createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;\n createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;\n createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;\n createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;\n createEvent(eventInterface: "MessageEvent"): MessageEvent;\n createEvent(eventInterface: "MouseEvent"): MouseEvent;\n createEvent(eventInterface: "MouseEvents"): MouseEvent;\n createEvent(eventInterface: "MutationEvent"): MutationEvent;\n createEvent(eventInterface: "MutationEvents"): MutationEvent;\n createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;\n createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;\n createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;\n createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;\n createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent;\n createEvent(eventInterface: "PointerEvent"): PointerEvent;\n createEvent(eventInterface: "PopStateEvent"): PopStateEvent;\n createEvent(eventInterface: "ProgressEvent"): ProgressEvent;\n createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;\n createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;\n createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;\n createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;\n createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;\n createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;\n createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;\n createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;\n createEvent(eventInterface: "StorageEvent"): StorageEvent;\n createEvent(eventInterface: "SubmitEvent"): SubmitEvent;\n createEvent(eventInterface: "TouchEvent"): TouchEvent;\n createEvent(eventInterface: "TrackEvent"): TrackEvent;\n createEvent(eventInterface: "TransitionEvent"): TransitionEvent;\n createEvent(eventInterface: "UIEvent"): UIEvent;\n createEvent(eventInterface: "UIEvents"): UIEvent;\n createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;\n createEvent(eventInterface: "WheelEvent"): WheelEvent;\n createEvent(eventInterface: string): Event;\n /**\n * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n * @param root The root element or node to start traversing on.\n * @param whatToShow The type of nodes or elements to appear in the node list\n * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.\n */\n createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;\n /** Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown. */\n createProcessingInstruction(target: string, data: string): ProcessingInstruction;\n /** Returns an empty range object that has both of its boundary points positioned at the beginning of the document. */\n createRange(): Range;\n /**\n * Creates a text string from the specified value.\n * @param data String that specifies the nodeValue property of the text node.\n */\n createTextNode(data: string): Text;\n /**\n * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.\n * @param root The root element or node to start traversing on.\n * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.\n * @param filter A custom NodeFilter function to use.\n */\n createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;\n /**\n * Executes a command on the current document, current selection, or the given range.\n * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.\n * @param showUI Display the user interface, defaults to false.\n * @param value Value to assign.\n * @deprecated\n */\n execCommand(commandId: string, showUI?: boolean, value?: string): boolean;\n /** Stops document\'s fullscreen element from being displayed fullscreen and resolves promise when done. */\n exitFullscreen(): Promise<void>;\n exitPictureInPicture(): Promise<void>;\n exitPointerLock(): void;\n /**\n * Returns a reference to the first object with the specified value of the ID attribute.\n * @param elementId String that specifies the ID value.\n */\n getElementById(elementId: string): HTMLElement | null;\n /** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. */\n getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n /**\n * Gets a collection of objects based on the value of the NAME or ID attribute.\n * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.\n */\n getElementsByName(elementName: string): NodeListOf<HTMLElement>;\n /**\n * Retrieves a collection of objects based on the specified element name.\n * @param name Specifies the name of an element.\n */\n getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;\n /** @deprecated */\n getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;\n getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;\n /**\n * If namespace and localName are "*" returns a HTMLCollection of all descendant elements.\n *\n * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.\n *\n * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.\n *\n * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.\n */\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;\n getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;\n /** Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. */\n getSelection(): Selection | null;\n /** Gets a value indicating whether the object currently has focus. */\n hasFocus(): boolean;\n hasStorageAccess(): Promise<boolean>;\n /**\n * Returns a copy of node. If deep is true, the copy also includes the node\'s descendants.\n *\n * If node is a document or a shadow root, throws a "NotSupportedError" DOMException.\n */\n importNode<T extends Node>(node: T, deep?: boolean): T;\n /**\n * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.\n * @param url Specifies a MIME type for the document.\n * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.\n * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.\n * @param replace Specifies whether the existing entry for the document is replaced in the history list.\n */\n open(unused1?: string, unused2?: string): Document;\n open(url: string | URL, name: string, features: string): WindowProxy | null;\n /**\n * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.\n * @param commandId Specifies a command identifier.\n * @deprecated\n */\n queryCommandEnabled(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.\n * @param commandId String that specifies a command identifier.\n * @deprecated\n */\n queryCommandIndeterm(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates the current state of the command.\n * @param commandId String that specifies a command identifier.\n * @deprecated\n */\n queryCommandState(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates whether the current command is supported on the current range.\n * @param commandId Specifies a command identifier.\n * @deprecated\n */\n queryCommandSupported(commandId: string): boolean;\n /**\n * Returns the current value of the document, range, or current selection for the given command.\n * @param commandId String that specifies a command identifier.\n * @deprecated\n */\n queryCommandValue(commandId: string): string;\n /** @deprecated */\n releaseEvents(): void;\n requestStorageAccess(): Promise<void>;\n /**\n * Writes one or more HTML expressions to a document in the specified window.\n * @param content Specifies the text and HTML tags to write.\n */\n write(...text: string[]): void;\n /**\n * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.\n * @param content The text and HTML tags to write.\n */\n writeln(...text: string[]): void;\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Document: {\n prototype: Document;\n new(): Document;\n};\n\n/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn\'t part of the active document tree structure, changes made to the fragment don\'t affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */\ninterface DocumentFragment extends Node, NonElementParentNode, ParentNode {\n readonly ownerDocument: Document;\n getElementById(elementId: string): HTMLElement | null;\n}\n\ndeclare var DocumentFragment: {\n prototype: DocumentFragment;\n new(): DocumentFragment;\n};\n\ninterface DocumentOrShadowRoot {\n /**\n * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.\n *\n * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe\'s node document.\n *\n * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that\'s located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.\n */\n readonly activeElement: Element | null;\n adoptedStyleSheets: CSSStyleSheet[];\n /** Returns document\'s fullscreen element. */\n readonly fullscreenElement: Element | null;\n readonly pictureInPictureElement: Element | null;\n readonly pointerLockElement: Element | null;\n /** Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. */\n readonly styleSheets: StyleSheetList;\n /**\n * Returns the element for the specified x coordinate and the specified y coordinate.\n * @param x The x-offset\n * @param y The y-offset\n */\n elementFromPoint(x: number, y: number): Element | null;\n elementsFromPoint(x: number, y: number): Element[];\n getAnimations(): Animation[];\n}\n\ninterface DocumentTimeline extends AnimationTimeline {\n}\n\ndeclare var DocumentTimeline: {\n prototype: DocumentTimeline;\n new(options?: DocumentTimelineOptions): DocumentTimeline;\n};\n\n/** A Node containing a doctype. */\ninterface DocumentType extends Node, ChildNode {\n readonly name: string;\n readonly ownerDocument: Document;\n readonly publicId: string;\n readonly systemId: string;\n}\n\ndeclare var DocumentType: {\n prototype: DocumentType;\n new(): DocumentType;\n};\n\n/** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */\ninterface DragEvent extends MouseEvent {\n /** Returns the DataTransfer object for the event. */\n readonly dataTransfer: DataTransfer | null;\n}\n\ndeclare var DragEvent: {\n prototype: DragEvent;\n new(type: string, eventInitDict?: DragEventInit): DragEvent;\n};\n\n/** Inherits properties from its parent, AudioNode. */\ninterface DynamicsCompressorNode extends AudioNode {\n readonly attack: AudioParam;\n readonly knee: AudioParam;\n readonly ratio: AudioParam;\n readonly reduction: number;\n readonly release: AudioParam;\n readonly threshold: AudioParam;\n}\n\ndeclare var DynamicsCompressorNode: {\n prototype: DynamicsCompressorNode;\n new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;\n};\n\ninterface EXT_blend_minmax {\n readonly MIN_EXT: 0x8007;\n readonly MAX_EXT: 0x8008;\n}\n\ninterface EXT_color_buffer_float {\n}\n\ninterface EXT_color_buffer_half_float {\n readonly RGBA16F_EXT: 0x881A;\n readonly RGB16F_EXT: 0x881B;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\ninterface EXT_float_blend {\n}\n\n/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */\ninterface EXT_frag_depth {\n}\n\ninterface EXT_sRGB {\n readonly SRGB_EXT: 0x8C40;\n readonly SRGB_ALPHA_EXT: 0x8C42;\n readonly SRGB8_ALPHA8_EXT: 0x8C43;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;\n}\n\ninterface EXT_shader_texture_lod {\n}\n\ninterface EXT_texture_compression_bptc {\n readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;\n readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;\n readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;\n readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;\n}\n\ninterface EXT_texture_compression_rgtc {\n readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;\n readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;\n readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;\n readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;\n}\n\n/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */\ninterface EXT_texture_filter_anisotropic {\n readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;\n}\n\ninterface EXT_texture_norm16 {\n readonly R16_EXT: 0x822A;\n readonly RG16_EXT: 0x822C;\n readonly RGB16_EXT: 0x8054;\n readonly RGBA16_EXT: 0x805B;\n readonly R16_SNORM_EXT: 0x8F98;\n readonly RG16_SNORM_EXT: 0x8F99;\n readonly RGB16_SNORM_EXT: 0x8F9A;\n readonly RGBA16_SNORM_EXT: 0x8F9B;\n}\n\ninterface ElementEventMap {\n "fullscreenchange": Event;\n "fullscreenerror": Event;\n}\n\n/** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */\ninterface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {\n readonly attributes: NamedNodeMap;\n /** Allows for manipulation of element\'s class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. */\n readonly classList: DOMTokenList;\n /** Returns the value of element\'s class content attribute. Can be set to change it. */\n className: string;\n readonly clientHeight: number;\n readonly clientLeft: number;\n readonly clientTop: number;\n readonly clientWidth: number;\n /** Returns the value of element\'s id content attribute. Can be set to change it. */\n id: string;\n /** Returns the local name. */\n readonly localName: string;\n /** Returns the namespace. */\n readonly namespaceURI: string | null;\n onfullscreenchange: ((this: Element, ev: Event) => any) | null;\n onfullscreenerror: ((this: Element, ev: Event) => any) | null;\n outerHTML: string;\n readonly ownerDocument: Document;\n readonly part: DOMTokenList;\n /** Returns the namespace prefix. */\n readonly prefix: string | null;\n readonly scrollHeight: number;\n scrollLeft: number;\n scrollTop: number;\n readonly scrollWidth: number;\n /** Returns element\'s shadow root, if any, and if shadow root\'s mode is "open", and null otherwise. */\n readonly shadowRoot: ShadowRoot | null;\n /** Returns the value of element\'s slot content attribute. Can be set to change it. */\n slot: string;\n /** Returns the HTML-uppercased qualified name. */\n readonly tagName: string;\n /** Creates a shadow root for element and returns it. */\n attachShadow(init: ShadowRootInit): ShadowRoot;\n checkVisibility(options?: CheckVisibilityOptions): boolean;\n /** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */\n closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;\n closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;\n closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;\n closest<E extends Element = Element>(selectors: string): E | null;\n /** Returns element\'s first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */\n getAttribute(qualifiedName: string): string | null;\n /** Returns element\'s attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. */\n getAttributeNS(namespace: string | null, localName: string): string | null;\n /** Returns the qualified names of all element\'s attributes. Can contain duplicates. */\n getAttributeNames(): string[];\n getAttributeNode(qualifiedName: string): Attr | null;\n getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;\n getBoundingClientRect(): DOMRect;\n getClientRects(): DOMRectList;\n /** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. */\n getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;\n /** @deprecated */\n getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;\n getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;\n getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;\n /** Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. */\n hasAttribute(qualifiedName: string): boolean;\n /** Returns true if element has an attribute whose namespace is namespace and local name is localName. */\n hasAttributeNS(namespace: string | null, localName: string): boolean;\n /** Returns true if element has attributes, and false otherwise. */\n hasAttributes(): boolean;\n hasPointerCapture(pointerId: number): boolean;\n insertAdjacentElement(where: InsertPosition, element: Element): Element | null;\n insertAdjacentHTML(position: InsertPosition, text: string): void;\n insertAdjacentText(where: InsertPosition, data: string): void;\n /** Returns true if matching selectors against element\'s root yields element, and false otherwise. */\n matches(selectors: string): boolean;\n releasePointerCapture(pointerId: number): void;\n /** Removes element\'s first attribute whose qualified name is qualifiedName. */\n removeAttribute(qualifiedName: string): void;\n /** Removes element\'s attribute whose namespace is namespace and local name is localName. */\n removeAttributeNS(namespace: string | null, localName: string): void;\n removeAttributeNode(attr: Attr): Attr;\n /**\n * Displays element fullscreen and resolves promise when done.\n *\n * When supplied, options\'s navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application\'s. The default value "auto" indicates no application preference.\n */\n requestFullscreen(options?: FullscreenOptions): Promise<void>;\n requestPointerLock(): void;\n scroll(options?: ScrollToOptions): void;\n scroll(x: number, y: number): void;\n scrollBy(options?: ScrollToOptions): void;\n scrollBy(x: number, y: number): void;\n scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;\n scrollTo(options?: ScrollToOptions): void;\n scrollTo(x: number, y: number): void;\n /** Sets the value of element\'s first attribute whose qualified name is qualifiedName to value. */\n setAttribute(qualifiedName: string, value: string): void;\n /** Sets the value of element\'s attribute whose namespace is namespace and local name is localName to value. */\n setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;\n setAttributeNode(attr: Attr): Attr | null;\n setAttributeNodeNS(attr: Attr): Attr | null;\n setPointerCapture(pointerId: number): void;\n /**\n * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.\n *\n * Returns true if qualifiedName is now present, and false otherwise.\n */\n toggleAttribute(qualifiedName: string, force?: boolean): boolean;\n /** @deprecated This is a legacy alias of `matches`. */\n webkitMatchesSelector(selectors: string): boolean;\n addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Element: {\n prototype: Element;\n new(): Element;\n};\n\ninterface ElementCSSInlineStyle {\n readonly style: CSSStyleDeclaration;\n}\n\ninterface ElementContentEditable {\n contentEditable: string;\n enterKeyHint: string;\n inputMode: string;\n readonly isContentEditable: boolean;\n}\n\ninterface ElementInternals extends ARIAMixin {\n /** Returns the form owner of internals\'s target element. */\n readonly form: HTMLFormElement | null;\n /** Returns a NodeList of all the label elements that internals\'s target element is associated with. */\n readonly labels: NodeList;\n /** Returns the ShadowRoot for internals\'s target element, if the target element is a shadow host, or null otherwise. */\n readonly shadowRoot: ShadowRoot | null;\n /** Returns the error message that would be shown to the user if internals\'s target element was to be checked for validity. */\n readonly validationMessage: string;\n /** Returns the ValidityState object for internals\'s target element. */\n readonly validity: ValidityState;\n /** Returns true if internals\'s target element will be validated when the form is submitted; false otherwise. */\n readonly willValidate: boolean;\n /** Returns true if internals\'s target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. */\n checkValidity(): boolean;\n /** Returns true if internals\'s target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn\'t canceled) reports the problem to the user. */\n reportValidity(): boolean;\n /**\n * Sets both the state and submission value of internals\'s target element to value.\n *\n * If value is null, the element won\'t participate in form submission.\n */\n setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;\n /** Marks internals\'s target element as suffering from the constraints indicated by the flags argument, and sets the element\'s validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals\'s target element when the form owner is validated interactively or reportValidity() is called. */\n setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;\n}\n\ndeclare var ElementInternals: {\n prototype: ElementInternals;\n new(): ElementInternals;\n};\n\n/** Events providing information related to errors in scripts or in files. */\ninterface ErrorEvent extends Event {\n readonly colno: number;\n readonly error: any;\n readonly filename: string;\n readonly lineno: number;\n readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/** An event which takes place in the DOM. */\ninterface Event {\n /** Returns true or false depending on how event was initialized. True if event goes through its target\'s ancestors in reverse tree order, and false otherwise. */\n readonly bubbles: boolean;\n /** @deprecated */\n cancelBubble: boolean;\n /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */\n readonly cancelable: boolean;\n /** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */\n readonly composed: boolean;\n /** Returns the object whose event listener\'s callback is currently being invoked. */\n readonly currentTarget: EventTarget | null;\n /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */\n readonly defaultPrevented: boolean;\n /** Returns the event\'s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */\n readonly eventPhase: number;\n /** Returns true if event was dispatched by the user agent, and false otherwise. */\n readonly isTrusted: boolean;\n /** @deprecated */\n returnValue: boolean;\n /** @deprecated */\n readonly srcElement: EventTarget | null;\n /** Returns the object to which event is dispatched (its target). */\n readonly target: EventTarget | null;\n /** Returns the event\'s timestamp as the number of milliseconds measured relative to the time origin. */\n readonly timeStamp: DOMHighResTimeStamp;\n /** Returns the type of event, e.g. "click", "hashchange", or "submit". */\n readonly type: string;\n /** Returns the invocation target objects of event\'s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root\'s mode is "closed" that are not reachable from event\'s currentTarget. */\n composedPath(): EventTarget[];\n /** @deprecated */\n initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n /** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */\n preventDefault(): void;\n /** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */\n stopImmediatePropagation(): void;\n /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */\n stopPropagation(): void;\n readonly NONE: 0;\n readonly CAPTURING_PHASE: 1;\n readonly AT_TARGET: 2;\n readonly BUBBLING_PHASE: 3;\n}\n\ndeclare var Event: {\n prototype: Event;\n new(type: string, eventInitDict?: EventInit): Event;\n readonly NONE: 0;\n readonly CAPTURING_PHASE: 1;\n readonly AT_TARGET: 2;\n readonly BUBBLING_PHASE: 3;\n};\n\ninterface EventCounts {\n forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;\n}\n\ndeclare var EventCounts: {\n prototype: EventCounts;\n new(): EventCounts;\n};\n\ninterface EventListener {\n (evt: Event): void;\n}\n\ninterface EventListenerObject {\n handleEvent(object: Event): void;\n}\n\ninterface EventSourceEventMap {\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\ninterface EventSource extends EventTarget {\n onerror: ((this: EventSource, ev: Event) => any) | null;\n onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n onopen: ((this: EventSource, ev: Event) => any) | null;\n /** Returns the state of this EventSource object\'s connection. It can have the values described below. */\n readonly readyState: number;\n /** Returns the URL providing the event stream. */\n readonly url: string;\n /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */\n readonly withCredentials: boolean;\n /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */\n close(): void;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSED: 2;\n addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var EventSource: {\n prototype: EventSource;\n new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSED: 2;\n};\n\n/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */\ninterface EventTarget {\n /**\n * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.\n *\n * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options\'s capture.\n *\n * When set to true, options\'s capture prevents callback from being invoked when the event\'s eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event\'s eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event\'s eventPhase attribute value is AT_TARGET.\n *\n * When set to true, options\'s passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xa7 2.8 Observing event listeners.\n *\n * When set to true, options\'s once indicates that the callback will only be invoked once after which the event listener will be removed.\n *\n * If an AbortSignal is passed for options\'s signal, then the event listener will be removed when signal is aborted.\n *\n * The event listener is appended to target\'s event listener list and is not appended if it has the same type, callback, and capture.\n */\n addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;\n /** Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */\n dispatchEvent(event: Event): boolean;\n /** Removes the event listener in target\'s event listener list with the same type, callback, and options. */\n removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\n}\n\ndeclare var EventTarget: {\n prototype: EventTarget;\n new(): EventTarget;\n};\n\n/** @deprecated */\ninterface External {\n /** @deprecated */\n AddSearchProvider(): void;\n /** @deprecated */\n IsSearchProviderInstalled(): void;\n}\n\n/** @deprecated */\ndeclare var External: {\n prototype: External;\n new(): External;\n};\n\n/** Provides information about files and allows JavaScript in a web page to access their content. */\ninterface File extends Blob {\n readonly lastModified: number;\n readonly name: string;\n readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n prototype: File;\n new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\n};\n\n/** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It\'s also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */\ninterface FileList {\n readonly length: number;\n item(index: number): File | null;\n [index: number]: File;\n}\n\ndeclare var FileList: {\n prototype: FileList;\n new(): FileList;\n};\n\ninterface FileReaderEventMap {\n "abort": ProgressEvent<FileReader>;\n "error": ProgressEvent<FileReader>;\n "load": ProgressEvent<FileReader>;\n "loadend": ProgressEvent<FileReader>;\n "loadstart": ProgressEvent<FileReader>;\n "progress": ProgressEvent<FileReader>;\n}\n\n/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user\'s computer, using File or Blob objects to specify the file or data to read. */\ninterface FileReader extends EventTarget {\n readonly error: DOMException | null;\n onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;\n readonly result: string | ArrayBuffer | null;\n abort(): void;\n readAsArrayBuffer(blob: Blob): void;\n readAsBinaryString(blob: Blob): void;\n readAsDataURL(blob: Blob): void;\n readAsText(blob: Blob, encoding?: string): void;\n readonly EMPTY: 0;\n readonly LOADING: 1;\n readonly DONE: 2;\n addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FileReader: {\n prototype: FileReader;\n new(): FileReader;\n readonly EMPTY: 0;\n readonly LOADING: 1;\n readonly DONE: 2;\n};\n\ninterface FileSystem {\n readonly name: string;\n readonly root: FileSystemDirectoryEntry;\n}\n\ndeclare var FileSystem: {\n prototype: FileSystem;\n new(): FileSystem;\n};\n\ninterface FileSystemDirectoryEntry extends FileSystemEntry {\n createReader(): FileSystemDirectoryReader;\n getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemDirectoryEntry: {\n prototype: FileSystemDirectoryEntry;\n new(): FileSystemDirectoryEntry;\n};\n\n/** Available only in secure contexts. */\ninterface FileSystemDirectoryHandle extends FileSystemHandle {\n readonly kind: "directory";\n getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;\n getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;\n removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;\n resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;\n}\n\ndeclare var FileSystemDirectoryHandle: {\n prototype: FileSystemDirectoryHandle;\n new(): FileSystemDirectoryHandle;\n};\n\ninterface FileSystemDirectoryReader {\n readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemDirectoryReader: {\n prototype: FileSystemDirectoryReader;\n new(): FileSystemDirectoryReader;\n};\n\ninterface FileSystemEntry {\n readonly filesystem: FileSystem;\n readonly fullPath: string;\n readonly isDirectory: boolean;\n readonly isFile: boolean;\n readonly name: string;\n getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemEntry: {\n prototype: FileSystemEntry;\n new(): FileSystemEntry;\n};\n\ninterface FileSystemFileEntry extends FileSystemEntry {\n file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemFileEntry: {\n prototype: FileSystemFileEntry;\n new(): FileSystemFileEntry;\n};\n\n/** Available only in secure contexts. */\ninterface FileSystemFileHandle extends FileSystemHandle {\n readonly kind: "file";\n getFile(): Promise<File>;\n}\n\ndeclare var FileSystemFileHandle: {\n prototype: FileSystemFileHandle;\n new(): FileSystemFileHandle;\n};\n\n/** Available only in secure contexts. */\ninterface FileSystemHandle {\n readonly kind: FileSystemHandleKind;\n readonly name: string;\n isSameEntry(other: FileSystemHandle): Promise<boolean>;\n}\n\ndeclare var FileSystemHandle: {\n prototype: FileSystemHandle;\n new(): FileSystemHandle;\n};\n\n/** Focus-related events like focus, blur, focusin, or focusout. */\ninterface FocusEvent extends UIEvent {\n readonly relatedTarget: EventTarget | null;\n}\n\ndeclare var FocusEvent: {\n prototype: FocusEvent;\n new(type: string, eventInitDict?: FocusEventInit): FocusEvent;\n};\n\ninterface FontFace {\n ascentOverride: string;\n descentOverride: string;\n display: FontDisplay;\n family: string;\n featureSettings: string;\n lineGapOverride: string;\n readonly loaded: Promise<FontFace>;\n readonly status: FontFaceLoadStatus;\n stretch: string;\n style: string;\n unicodeRange: string;\n variant: string;\n weight: string;\n load(): Promise<FontFace>;\n}\n\ndeclare var FontFace: {\n prototype: FontFace;\n new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n "loading": Event;\n "loadingdone": Event;\n "loadingerror": Event;\n}\n\ninterface FontFaceSet extends EventTarget {\n onloading: ((this: FontFaceSet, ev: Event) => any) | null;\n onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;\n onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;\n readonly ready: Promise<FontFaceSet>;\n readonly status: FontFaceSetLoadStatus;\n check(font: string, text?: string): boolean;\n load(font: string, text?: string): Promise<FontFace[]>;\n forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;\n addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FontFaceSet: {\n prototype: FontFaceSet;\n new(initialFaces: FontFace[]): FontFaceSet;\n};\n\ninterface FontFaceSetLoadEvent extends Event {\n readonly fontfaces: ReadonlyArray<FontFace>;\n}\n\ndeclare var FontFaceSetLoadEvent: {\n prototype: FontFaceSetLoadEvent;\n new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;\n};\n\ninterface FontFaceSource {\n readonly fonts: FontFaceSet;\n}\n\n/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */\ninterface FormData {\n append(name: string, value: string | Blob, fileName?: string): void;\n delete(name: string): void;\n get(name: string): FormDataEntryValue | null;\n getAll(name: string): FormDataEntryValue[];\n has(name: string): boolean;\n set(name: string, value: string | Blob, fileName?: string): void;\n forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;\n}\n\ndeclare var FormData: {\n prototype: FormData;\n new(form?: HTMLFormElement): FormData;\n};\n\ninterface FormDataEvent extends Event {\n /** Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. */\n readonly formData: FormData;\n}\n\ndeclare var FormDataEvent: {\n prototype: FormDataEvent;\n new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;\n};\n\n/** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */\ninterface GainNode extends AudioNode {\n readonly gain: AudioParam;\n}\n\ndeclare var GainNode: {\n prototype: GainNode;\n new(context: BaseAudioContext, options?: GainOptions): GainNode;\n};\n\n/**\n * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.\n * Available only in secure contexts.\n */\ninterface Gamepad {\n readonly axes: ReadonlyArray<number>;\n readonly buttons: ReadonlyArray<GamepadButton>;\n readonly connected: boolean;\n readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;\n readonly id: string;\n readonly index: number;\n readonly mapping: GamepadMappingType;\n readonly timestamp: DOMHighResTimeStamp;\n}\n\ndeclare var Gamepad: {\n prototype: Gamepad;\n new(): Gamepad;\n};\n\n/**\n * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.\n * Available only in secure contexts.\n */\ninterface GamepadButton {\n readonly pressed: boolean;\n readonly touched: boolean;\n readonly value: number;\n}\n\ndeclare var GamepadButton: {\n prototype: GamepadButton;\n new(): GamepadButton;\n};\n\n/**\n * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.\n * Available only in secure contexts.\n */\ninterface GamepadEvent extends Event {\n readonly gamepad: Gamepad;\n}\n\ndeclare var GamepadEvent: {\n prototype: GamepadEvent;\n new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;\n};\n\n/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */\ninterface GamepadHapticActuator {\n readonly type: GamepadHapticActuatorType;\n}\n\ndeclare var GamepadHapticActuator: {\n prototype: GamepadHapticActuator;\n new(): GamepadHapticActuator;\n};\n\ninterface GenericTransformStream {\n readonly readable: ReadableStream;\n readonly writable: WritableStream;\n}\n\n/** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user\'s location. */\ninterface Geolocation {\n clearWatch(watchId: number): void;\n getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;\n watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;\n}\n\ndeclare var Geolocation: {\n prototype: Geolocation;\n new(): Geolocation;\n};\n\n/** Available only in secure contexts. */\ninterface GeolocationCoordinates {\n readonly accuracy: number;\n readonly altitude: number | null;\n readonly altitudeAccuracy: number | null;\n readonly heading: number | null;\n readonly latitude: number;\n readonly longitude: number;\n readonly speed: number | null;\n}\n\ndeclare var GeolocationCoordinates: {\n prototype: GeolocationCoordinates;\n new(): GeolocationCoordinates;\n};\n\n/** Available only in secure contexts. */\ninterface GeolocationPosition {\n readonly coords: GeolocationCoordinates;\n readonly timestamp: EpochTimeStamp;\n}\n\ndeclare var GeolocationPosition: {\n prototype: GeolocationPosition;\n new(): GeolocationPosition;\n};\n\ninterface GeolocationPositionError {\n readonly code: number;\n readonly message: string;\n readonly PERMISSION_DENIED: 1;\n readonly POSITION_UNAVAILABLE: 2;\n readonly TIMEOUT: 3;\n}\n\ndeclare var GeolocationPositionError: {\n prototype: GeolocationPositionError;\n new(): GeolocationPositionError;\n readonly PERMISSION_DENIED: 1;\n readonly POSITION_UNAVAILABLE: 2;\n readonly TIMEOUT: 3;\n};\n\ninterface GlobalEventHandlersEventMap {\n "abort": UIEvent;\n "animationcancel": AnimationEvent;\n "animationend": AnimationEvent;\n "animationiteration": AnimationEvent;\n "animationstart": AnimationEvent;\n "auxclick": MouseEvent;\n "beforeinput": InputEvent;\n "blur": FocusEvent;\n "cancel": Event;\n "canplay": Event;\n "canplaythrough": Event;\n "change": Event;\n "click": MouseEvent;\n "close": Event;\n "compositionend": CompositionEvent;\n "compositionstart": CompositionEvent;\n "compositionupdate": CompositionEvent;\n "contextmenu": MouseEvent;\n "copy": ClipboardEvent;\n "cuechange": Event;\n "cut": ClipboardEvent;\n "dblclick": MouseEvent;\n "drag": DragEvent;\n "dragend": DragEvent;\n "dragenter": DragEvent;\n "dragleave": DragEvent;\n "dragover": DragEvent;\n "dragstart": DragEvent;\n "drop": DragEvent;\n "durationchange": Event;\n "emptied": Event;\n "ended": Event;\n "error": ErrorEvent;\n "focus": FocusEvent;\n "focusin": FocusEvent;\n "focusout": FocusEvent;\n "formdata": FormDataEvent;\n "gotpointercapture": PointerEvent;\n "input": Event;\n "invalid": Event;\n "keydown": KeyboardEvent;\n "keypress": KeyboardEvent;\n "keyup": KeyboardEvent;\n "load": Event;\n "loadeddata": Event;\n "loadedmetadata": Event;\n "loadstart": Event;\n "lostpointercapture": PointerEvent;\n "mousedown": MouseEvent;\n "mouseenter": MouseEvent;\n "mouseleave": MouseEvent;\n "mousemove": MouseEvent;\n "mouseout": MouseEvent;\n "mouseover": MouseEvent;\n "mouseup": MouseEvent;\n "paste": ClipboardEvent;\n "pause": Event;\n "play": Event;\n "playing": Event;\n "pointercancel": PointerEvent;\n "pointerdown": PointerEvent;\n "pointerenter": PointerEvent;\n "pointerleave": PointerEvent;\n "pointermove": PointerEvent;\n "pointerout": PointerEvent;\n "pointerover": PointerEvent;\n "pointerup": PointerEvent;\n "progress": ProgressEvent;\n "ratechange": Event;\n "reset": Event;\n "resize": UIEvent;\n "scroll": Event;\n "securitypolicyviolation": SecurityPolicyViolationEvent;\n "seeked": Event;\n "seeking": Event;\n "select": Event;\n "selectionchange": Event;\n "selectstart": Event;\n "slotchange": Event;\n "stalled": Event;\n "submit": SubmitEvent;\n "suspend": Event;\n "timeupdate": Event;\n "toggle": Event;\n "touchcancel": TouchEvent;\n "touchend": TouchEvent;\n "touchmove": TouchEvent;\n "touchstart": TouchEvent;\n "transitioncancel": TransitionEvent;\n "transitionend": TransitionEvent;\n "transitionrun": TransitionEvent;\n "transitionstart": TransitionEvent;\n "volumechange": Event;\n "waiting": Event;\n "webkitanimationend": Event;\n "webkitanimationiteration": Event;\n "webkitanimationstart": Event;\n "webkittransitionend": Event;\n "wheel": WheelEvent;\n}\n\ninterface GlobalEventHandlers {\n /**\n * Fires when the user aborts the download.\n * @param ev The event.\n */\n onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;\n /**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n */\n onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when playback is possible, but would require further buffering.\n * @param ev The event.\n */\n oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the contents of the object or selection have changed.\n * @param ev The event.\n */\n onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user clicks the left mouse button on the object\n * @param ev The mouse event.\n */\n onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n * @param ev The mouse event.\n */\n oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;\n oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;\n /**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n */\n ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n */\n ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the source object when the user releases the mouse at the close of a drag operation.\n * @param ev The event.\n */\n ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target element when the user drags the object to a valid drop target.\n * @param ev The drag event.\n */\n ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n * @param ev The drag event.\n */\n ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target element continuously while the user drags the object over a valid drop target.\n * @param ev The event.\n */\n ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the source object when the user starts to drag a text selection or selected object.\n * @param ev The event.\n */\n ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n */\n ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the media element is reset to its initial state.\n * @param ev The event.\n */\n onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the end of playback is reached.\n * @param ev The event\n */\n onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n */\n onerror: OnErrorEventHandler;\n /**\n * Fires when the object receives focus.\n * @param ev The event.\n */\n onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;\n ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n */\n onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n * @deprecated\n */\n onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n */\n onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n */\n onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when media data is loaded at the current playback position.\n * @param ev The event.\n */\n onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the duration and dimensions of the media have been determined.\n * @param ev The event.\n */\n onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n */\n onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /**\n * Fires when the user clicks the object with either mouse button.\n * @param ev The mouse event.\n */\n onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse over the object.\n * @param ev The mouse event.\n */\n onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse pointer outside the boundaries of the object.\n * @param ev The mouse event.\n */\n onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse pointer into the object.\n * @param ev The mouse event.\n */\n onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user releases a mouse button while the mouse is over the object.\n * @param ev The mouse event.\n */\n onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;\n /**\n * Occurs when playback is paused.\n * @param ev The event.\n */\n onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the play method is requested.\n * @param ev The event.\n */\n onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n */\n onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n */\n onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;\n /**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n */\n onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user resets a form.\n * @param ev The event.\n */\n onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n /**\n * Fires when the user repositions the scroll box in the scroll bar on the object.\n * @param ev The event.\n */\n onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;\n /**\n * Occurs when the seek operation ends.\n * @param ev The event.\n */\n onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n */\n onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the current selection changes.\n * @param ev The event.\n */\n onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the download has stopped.\n * @param ev The event.\n */\n onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;\n /**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n */\n onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n */\n ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n /**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n */\n onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when playback stops because the next frame of a video resource is not available.\n * @param ev The event.\n */\n onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** @deprecated This is a legacy alias of `onanimationend`. */\n onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** @deprecated This is a legacy alias of `onanimationiteration`. */\n onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** @deprecated This is a legacy alias of `onanimationstart`. */\n onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** @deprecated This is a legacy alias of `ontransitionend`. */\n onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;\n addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface HTMLAllCollection {\n /** Returns the number of elements in the collection. */\n readonly length: number;\n /** Returns the item with index index from the collection (determined by tree order). */\n item(nameOrIndex?: string): HTMLCollection | Element | null;\n /**\n * Returns the item with ID or name name from the collection.\n *\n * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.\n *\n * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.\n */\n namedItem(name: string): HTMLCollection | Element | null;\n [index: number]: Element;\n}\n\ndeclare var HTMLAllCollection: {\n prototype: HTMLAllCollection;\n new(): HTMLAllCollection;\n};\n\n/** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */\ninterface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n */\n charset: string;\n /**\n * Sets or retrieves the coordinates of the object.\n * @deprecated\n */\n coords: string;\n download: string;\n /** Sets or retrieves the language code of the object. */\n hreflang: string;\n /**\n * Sets or retrieves the shape of the object.\n * @deprecated\n */\n name: string;\n ping: string;\n referrerPolicy: string;\n /** Sets or retrieves the relationship between the object and the destination of the link. */\n rel: string;\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n * @deprecated\n */\n rev: string;\n /**\n * Sets or retrieves the shape of the object.\n * @deprecated\n */\n shape: string;\n /** Sets or retrieves the window or frame at which to target content. */\n target: string;\n /** Retrieves or sets the text of the object as a string. */\n text: string;\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAnchorElement: {\n prototype: HTMLAnchorElement;\n new(): HTMLAnchorElement;\n};\n\n/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements. */\ninterface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {\n /** Sets or retrieves a text alternative to the graphic. */\n alt: string;\n /** Sets or retrieves the coordinates of the object. */\n coords: string;\n download: string;\n /**\n * Sets or gets whether clicks in this region cause action.\n * @deprecated\n */\n noHref: boolean;\n ping: string;\n referrerPolicy: string;\n rel: string;\n readonly relList: DOMTokenList;\n /** Sets or retrieves the shape of the object. */\n shape: string;\n /** Sets or retrieves the window or frame at which to target content. */\n target: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAreaElement: {\n prototype: HTMLAreaElement;\n new(): HTMLAreaElement;\n};\n\n/** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */\ninterface HTMLAudioElement extends HTMLMediaElement {\n addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAudioElement: {\n prototype: HTMLAudioElement;\n new(): HTMLAudioElement;\n};\n\n/** A HTML line break element (<br>). It inherits from HTMLElement. */\ninterface HTMLBRElement extends HTMLElement {\n /**\n * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.\n * @deprecated\n */\n clear: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBRElement: {\n prototype: HTMLBRElement;\n new(): HTMLBRElement;\n};\n\n/** Contains the base URI\xa0for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */\ninterface HTMLBaseElement extends HTMLElement {\n /** Gets or sets the baseline URL on which relative links are based. */\n href: string;\n /** Sets or retrieves the window or frame at which to target content. */\n target: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBaseElement: {\n prototype: HTMLBaseElement;\n new(): HTMLBaseElement;\n};\n\ninterface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n}\n\n/** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */\ninterface HTMLBodyElement extends HTMLElement, WindowEventHandlers {\n /** @deprecated */\n aLink: string;\n /** @deprecated */\n background: string;\n /** @deprecated */\n bgColor: string;\n /** @deprecated */\n link: string;\n /** @deprecated */\n text: string;\n /** @deprecated */\n vLink: string;\n addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBodyElement: {\n prototype: HTMLBodyElement;\n new(): HTMLBodyElement;\n};\n\n/** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */\ninterface HTMLButtonElement extends HTMLElement {\n disabled: boolean;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */\n formAction: string;\n /** Used to override the encoding (formEnctype attribute) specified on the form element. */\n formEnctype: string;\n /** Overrides the submit method attribute previously specified on a form element. */\n formMethod: string;\n /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */\n formNoValidate: boolean;\n /** Overrides the target attribute on a form element. */\n formTarget: string;\n readonly labels: NodeListOf<HTMLLabelElement>;\n /** Sets or retrieves the name of the object. */\n name: string;\n /** Gets the classification and default behavior of the button. */\n type: string;\n /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */\n readonly validationMessage: string;\n /** Returns a ValidityState object that represents the validity states of an element. */\n readonly validity: ValidityState;\n /** Sets or retrieves the default or selected value of the control. */\n value: string;\n /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n readonly willValidate: boolean;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLButtonElement: {\n prototype: HTMLButtonElement;\n new(): HTMLButtonElement;\n};\n\n/** Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. */\ninterface HTMLCanvasElement extends HTMLElement {\n /** Gets or sets the height of a canvas element on a document. */\n height: number;\n /** Gets or sets the width of a canvas element on a document. */\n width: number;\n captureStream(frameRequestRate?: number): MediaStream;\n /**\n * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.\n * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");\n */\n getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;\n getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;\n getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;\n getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;\n getContext(contextId: string, options?: any): RenderingContext | null;\n toBlob(callback: BlobCallback, type?: string, quality?: any): void;\n /**\n * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.\n * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.\n */\n toDataURL(type?: string, quality?: any): string;\n transferControlToOffscreen(): OffscreenCanvas;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLCanvasElement: {\n prototype: HTMLCanvasElement;\n new(): HTMLCanvasElement;\n};\n\n/** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */\ninterface HTMLCollectionBase {\n /** Sets or retrieves the number of objects in a collection. */\n readonly length: number;\n /** Retrieves an object from various collections. */\n item(index: number): Element | null;\n [index: number]: Element;\n}\n\ninterface HTMLCollection extends HTMLCollectionBase {\n /** Retrieves a select object or an object from an options collection. */\n namedItem(name: string): Element | null;\n}\n\ndeclare var HTMLCollection: {\n prototype: HTMLCollection;\n new(): HTMLCollection;\n};\n\ninterface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {\n item(index: number): T | null;\n namedItem(name: string): T | null;\n [index: number]: T;\n}\n\n/** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */\ninterface HTMLDListElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDListElement: {\n prototype: HTMLDListElement;\n new(): HTMLDListElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */\ninterface HTMLDataElement extends HTMLElement {\n value: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDataElement: {\n prototype: HTMLDataElement;\n new(): HTMLDataElement;\n};\n\n/** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */\ninterface HTMLDataListElement extends HTMLElement {\n /** Returns an HTMLCollection of the option elements of the datalist element. */\n readonly options: HTMLCollectionOf<HTMLOptionElement>;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDataListElement: {\n prototype: HTMLDataListElement;\n new(): HTMLDataListElement;\n};\n\ninterface HTMLDetailsElement extends HTMLElement {\n open: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDetailsElement: {\n prototype: HTMLDetailsElement;\n new(): HTMLDetailsElement;\n};\n\ninterface HTMLDialogElement extends HTMLElement {\n open: boolean;\n returnValue: string;\n /**\n * Closes the dialog element.\n *\n * The argument, if provided, provides a return value.\n */\n close(returnValue?: string): void;\n /** Displays the dialog element. */\n show(): void;\n showModal(): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDialogElement: {\n prototype: HTMLDialogElement;\n new(): HTMLDialogElement;\n};\n\n/** @deprecated */\ninterface HTMLDirectoryElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLDirectoryElement: {\n prototype: HTMLDirectoryElement;\n new(): HTMLDirectoryElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */\ninterface HTMLDivElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDivElement: {\n prototype: HTMLDivElement;\n new(): HTMLDivElement;\n};\n\n/** @deprecated use Document */\ninterface HTMLDocument extends Document {\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLDocument: {\n prototype: HTMLDocument;\n new(): HTMLDocument;\n};\n\ninterface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {\n}\n\n/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */\ninterface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {\n accessKey: string;\n readonly accessKeyLabel: string;\n autocapitalize: string;\n dir: string;\n draggable: boolean;\n hidden: boolean;\n inert: boolean;\n innerText: string;\n lang: string;\n readonly offsetHeight: number;\n readonly offsetLeft: number;\n readonly offsetParent: Element | null;\n readonly offsetTop: number;\n readonly offsetWidth: number;\n outerText: string;\n spellcheck: boolean;\n title: string;\n translate: boolean;\n attachInternals(): ElementInternals;\n click(): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLElement: {\n prototype: HTMLElement;\n new(): HTMLElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */\ninterface HTMLEmbedElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /** Sets or retrieves the height of the object. */\n height: string;\n /**\n * Sets or retrieves the name of the object.\n * @deprecated\n */\n name: string;\n /** Sets or retrieves a URL to be loaded by the object. */\n src: string;\n type: string;\n /** Sets or retrieves the width of the object. */\n width: string;\n getSVGDocument(): Document | null;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLEmbedElement: {\n prototype: HTMLEmbedElement;\n new(): HTMLEmbedElement;\n};\n\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */\ninterface HTMLFieldSetElement extends HTMLElement {\n disabled: boolean;\n /** Returns an HTMLCollection of the form controls in the element. */\n readonly elements: HTMLCollection;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n name: string;\n /** Returns the string "fieldset". */\n readonly type: string;\n /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */\n readonly validationMessage: string;\n /** Returns a ValidityState object that represents the validity states of an element. */\n readonly validity: ValidityState;\n /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n readonly willValidate: boolean;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLFieldSetElement: {\n prototype: HTMLFieldSetElement;\n new(): HTMLFieldSetElement;\n};\n\n/**\n * Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text.\n * @deprecated\n */\ninterface HTMLFontElement extends HTMLElement {\n /** @deprecated */\n color: string;\n /**\n * Sets or retrieves the current typeface family.\n * @deprecated\n */\n face: string;\n /** @deprecated */\n size: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFontElement: {\n prototype: HTMLFontElement;\n new(): HTMLFontElement;\n};\n\n/** A collection of HTML form control elements. */\ninterface HTMLFormControlsCollection extends HTMLCollectionBase {\n /**\n * Returns the item with ID or name name from the collection.\n *\n * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.\n */\n namedItem(name: string): RadioNodeList | Element | null;\n}\n\ndeclare var HTMLFormControlsCollection: {\n prototype: HTMLFormControlsCollection;\n new(): HTMLFormControlsCollection;\n};\n\n/** A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. */\ninterface HTMLFormElement extends HTMLElement {\n /** Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. */\n acceptCharset: string;\n /** Sets or retrieves the URL to which the form content is sent for processing. */\n action: string;\n /** Specifies whether autocomplete is applied to an editable text field. */\n autocomplete: string;\n /** Retrieves a collection, in source order, of all controls in a given form. */\n readonly elements: HTMLFormControlsCollection;\n /** Sets or retrieves the MIME encoding for the form. */\n encoding: string;\n /** Sets or retrieves the encoding type for the form. */\n enctype: string;\n /** Sets or retrieves the number of objects in a collection. */\n readonly length: number;\n /** Sets or retrieves how to send the form data to the server. */\n method: string;\n /** Sets or retrieves the name of the object. */\n name: string;\n /** Designates a form that is not validated when submitted. */\n noValidate: boolean;\n rel: string;\n readonly relList: DOMTokenList;\n /** Sets or retrieves the window or frame at which to target content. */\n target: string;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n reportValidity(): boolean;\n requestSubmit(submitter?: HTMLElement | null): void;\n /** Fires when the user resets a form. */\n reset(): void;\n /** Fires when a FORM is about to be submitted. */\n submit(): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: Element;\n [name: string]: any;\n}\n\ndeclare var HTMLFormElement: {\n prototype: HTMLFormElement;\n new(): HTMLFormElement;\n};\n\n/** @deprecated */\ninterface HTMLFrameElement extends HTMLElement {\n /**\n * Retrieves the document object of the page or frame.\n * @deprecated\n */\n readonly contentDocument: Document | null;\n /**\n * Retrieves the object of the specified.\n * @deprecated\n */\n readonly contentWindow: WindowProxy | null;\n /**\n * Sets or retrieves whether to display a border for the frame.\n * @deprecated\n */\n frameBorder: string;\n /**\n * Sets or retrieves a URI to a long description of the object.\n * @deprecated\n */\n longDesc: string;\n /**\n * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n * @deprecated\n */\n marginHeight: string;\n /**\n * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n * @deprecated\n */\n marginWidth: string;\n /**\n * Sets or retrieves the frame name.\n * @deprecated\n */\n name: string;\n /**\n * Sets or retrieves whether the user can resize the frame.\n * @deprecated\n */\n noResize: boolean;\n /**\n * Sets or retrieves whether the frame can be scrolled.\n * @deprecated\n */\n scrolling: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n * @deprecated\n */\n src: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFrameElement: {\n prototype: HTMLFrameElement;\n new(): HTMLFrameElement;\n};\n\ninterface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n}\n\n/**\n * Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.\n * @deprecated\n */\ninterface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {\n /**\n * Sets or retrieves the frame widths of the object.\n * @deprecated\n */\n cols: string;\n /**\n * Sets or retrieves the frame heights of the object.\n * @deprecated\n */\n rows: string;\n addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFrameSetElement: {\n prototype: HTMLFrameSetElement;\n new(): HTMLFrameSetElement;\n};\n\n/** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */\ninterface HTMLHRElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n color: string;\n /**\n * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.\n * @deprecated\n */\n noShade: boolean;\n /** @deprecated */\n size: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n */\n width: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHRElement: {\n prototype: HTMLHRElement;\n new(): HTMLHRElement;\n};\n\n/** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */\ninterface HTMLHeadElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHeadElement: {\n prototype: HTMLHeadElement;\n new(): HTMLHeadElement;\n};\n\n/** The different heading elements. It inherits methods and properties from the HTMLElement interface. */\ninterface HTMLHeadingElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHeadingElement: {\n prototype: HTMLHeadingElement;\n new(): HTMLHeadingElement;\n};\n\n/** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */\ninterface HTMLHtmlElement extends HTMLElement {\n /**\n * Sets or retrieves the DTD version that governs the current document.\n * @deprecated\n */\n version: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHtmlElement: {\n prototype: HTMLHtmlElement;\n new(): HTMLHtmlElement;\n};\n\ninterface HTMLHyperlinkElementUtils {\n /**\n * Returns the hyperlink\'s URL\'s fragment (includes leading "#" if non-empty).\n *\n * Can be set, to change the URL\'s fragment (ignores leading "#").\n */\n hash: string;\n /**\n * Returns the hyperlink\'s URL\'s host and port (if different from the default port for the scheme).\n *\n * Can be set, to change the URL\'s host and port.\n */\n host: string;\n /**\n * Returns the hyperlink\'s URL\'s host.\n *\n * Can be set, to change the URL\'s host.\n */\n hostname: string;\n /**\n * Returns the hyperlink\'s URL.\n *\n * Can be set, to change the URL.\n */\n href: string;\n toString(): string;\n /** Returns the hyperlink\'s URL\'s origin. */\n readonly origin: string;\n /**\n * Returns the hyperlink\'s URL\'s password.\n *\n * Can be set, to change the URL\'s password.\n */\n password: string;\n /**\n * Returns the hyperlink\'s URL\'s path.\n *\n * Can be set, to change the URL\'s path.\n */\n pathname: string;\n /**\n * Returns the hyperlink\'s URL\'s port.\n *\n * Can be set, to change the URL\'s port.\n */\n port: string;\n /**\n * Returns the hyperlink\'s URL\'s scheme.\n *\n * Can be set, to change the URL\'s scheme.\n */\n protocol: string;\n /**\n * Returns the hyperlink\'s URL\'s query (includes leading "?" if non-empty).\n *\n * Can be set, to change the URL\'s query (ignores leading "?").\n */\n search: string;\n /**\n * Returns the hyperlink\'s URL\'s username.\n *\n * Can be set, to change the URL\'s username.\n */\n username: string;\n}\n\n/** Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. */\ninterface HTMLIFrameElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n allow: string;\n allowFullscreen: boolean;\n /** Retrieves the document object of the page or frame. */\n readonly contentDocument: Document | null;\n /** Retrieves the object of the specified. */\n readonly contentWindow: WindowProxy | null;\n /**\n * Sets or retrieves whether to display a border for the frame.\n * @deprecated\n */\n frameBorder: string;\n /** Sets or retrieves the height of the object. */\n height: string;\n /**\n * Sets or retrieves a URI to a long description of the object.\n * @deprecated\n */\n longDesc: string;\n /**\n * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n * @deprecated\n */\n marginHeight: string;\n /**\n * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n * @deprecated\n */\n marginWidth: string;\n /** Sets or retrieves the frame name. */\n name: string;\n referrerPolicy: ReferrerPolicy;\n readonly sandbox: DOMTokenList;\n /**\n * Sets or retrieves whether the frame can be scrolled.\n * @deprecated\n */\n scrolling: string;\n /** Sets or retrieves a URL to be loaded by the object. */\n src: string;\n /** Sets or retrives the content of the page that is to contain. */\n srcdoc: string;\n /** Sets or retrieves the width of the object. */\n width: string;\n getSVGDocument(): Document | null;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLIFrameElement: {\n prototype: HTMLIFrameElement;\n new(): HTMLIFrameElement;\n};\n\n/** Provides special properties and methods for manipulating <img> elements. */\ninterface HTMLImageElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /** Sets or retrieves a text alternative to the graphic. */\n alt: string;\n /**\n * Specifies the properties of a border drawn around an object.\n * @deprecated\n */\n border: string;\n /** Retrieves whether the object is fully loaded. */\n readonly complete: boolean;\n crossOrigin: string | null;\n readonly currentSrc: string;\n decoding: "async" | "sync" | "auto";\n /** Sets or retrieves the height of the object. */\n height: number;\n /**\n * Sets or retrieves the width of the border to draw around the object.\n * @deprecated\n */\n hspace: number;\n /** Sets or retrieves whether the image is a server-side image map. */\n isMap: boolean;\n /** Sets or retrieves the policy for loading image elements that are outside the viewport. */\n loading: "eager" | "lazy";\n /**\n * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.\n * @deprecated\n */\n longDesc: string;\n /** @deprecated */\n lowsrc: string;\n /**\n * Sets or retrieves the name of the object.\n * @deprecated\n */\n name: string;\n /** The original height of the image resource before sizing. */\n readonly naturalHeight: number;\n /** The original width of the image resource before sizing. */\n readonly naturalWidth: number;\n referrerPolicy: string;\n sizes: string;\n /** The address or URL of the a media resource that is to be considered. */\n src: string;\n srcset: string;\n /** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */\n useMap: string;\n /**\n * Sets or retrieves the vertical margin for the object.\n * @deprecated\n */\n vspace: number;\n /** Sets or retrieves the width of the object. */\n width: number;\n readonly x: number;\n readonly y: number;\n decode(): Promise<void>;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLImageElement: {\n prototype: HTMLImageElement;\n new(): HTMLImageElement;\n};\n\n/** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */\ninterface HTMLInputElement extends HTMLElement {\n /** Sets or retrieves a comma-separated list of content types. */\n accept: string;\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /** Sets or retrieves a text alternative to the graphic. */\n alt: string;\n /** Specifies whether autocomplete is applied to an editable text field. */\n autocomplete: string;\n capture: string;\n /** Sets or retrieves the state of the check box or radio button. */\n checked: boolean;\n /** Sets or retrieves the state of the check box or radio button. */\n defaultChecked: boolean;\n /** Sets or retrieves the initial contents of the object. */\n defaultValue: string;\n dirName: string;\n disabled: boolean;\n /** Returns a FileList object on a file type input object. */\n files: FileList | null;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */\n formAction: string;\n /** Used to override the encoding (formEnctype attribute) specified on the form element. */\n formEnctype: string;\n /** Overrides the submit method attribute previously specified on a form element. */\n formMethod: string;\n /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */\n formNoValidate: boolean;\n /** Overrides the target attribute on a form element. */\n formTarget: string;\n /** Sets or retrieves the height of the object. */\n height: number;\n /** When set, overrides the rendering of checkbox controls so that the current value is not visible. */\n indeterminate: boolean;\n readonly labels: NodeListOf<HTMLLabelElement> | null;\n /** Specifies the ID of a pre-defined datalist of options for an input element. */\n readonly list: HTMLDataListElement | null;\n /** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */\n max: string;\n /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */\n maxLength: number;\n /** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */\n min: string;\n minLength: number;\n /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */\n multiple: boolean;\n /** Sets or retrieves the name of the object. */\n name: string;\n /** Gets or sets a string containing a regular expression that the user\'s input must match. */\n pattern: string;\n /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */\n placeholder: string;\n readOnly: boolean;\n /** When present, marks an element that can\'t be submitted without a value. */\n required: boolean;\n selectionDirection: "forward" | "backward" | "none" | null;\n /** Gets or sets the end position or offset of a text selection. */\n selectionEnd: number | null;\n /** Gets or sets the starting position or offset of a text selection. */\n selectionStart: number | null;\n size: number;\n /** The address or URL of the a media resource that is to be considered. */\n src: string;\n /** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */\n step: string;\n /** Returns the content type of the object. */\n type: string;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n * @deprecated\n */\n useMap: string;\n /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */\n readonly validationMessage: string;\n /** Returns a ValidityState object that represents the validity states of an element. */\n readonly validity: ValidityState;\n /** Returns the value of the data at the cursor\'s current position. */\n value: string;\n /** Returns a Date object representing the form control\'s value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn\'t date- or time-based. */\n valueAsDate: Date | null;\n /** Returns the input field value as a number. */\n valueAsNumber: number;\n readonly webkitEntries: ReadonlyArray<FileSystemEntry>;\n webkitdirectory: boolean;\n /** Sets or retrieves the width of the object. */\n width: number;\n /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n readonly willValidate: boolean;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n reportValidity(): boolean;\n /** Makes the selection equal to the current object. */\n select(): void;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n setRangeText(replacement: string): void;\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n /**\n * Sets the start and end positions of a selection in a text field.\n * @param start The offset into the text field for the start of the selection.\n * @param end The offset into the text field for the end of the selection.\n * @param direction The direction in which the selection is performed.\n */\n setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;\n showPicker(): void;\n /**\n * Decrements a range input control\'s value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control\'s step value multiplied by the parameter\'s value.\n * @param n Value to decrement the value by.\n */\n stepDown(n?: number): void;\n /**\n * Increments a range input control\'s value by the value given by the Step attribute. If the optional parameter is used, will increment the input control\'s value by that value.\n * @param n Value to increment the value by.\n */\n stepUp(n?: number): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLInputElement: {\n prototype: HTMLInputElement;\n new(): HTMLInputElement;\n};\n\n/** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */\ninterface HTMLLIElement extends HTMLElement {\n /** @deprecated */\n type: string;\n /** Sets or retrieves the value of a list item. */\n value: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLIElement: {\n prototype: HTMLLIElement;\n new(): HTMLLIElement;\n};\n\n/** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */\ninterface HTMLLabelElement extends HTMLElement {\n /** Returns the form control that is associated with this element. */\n readonly control: HTMLElement | null;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n /** Sets or retrieves the object to which the given label object is assigned. */\n htmlFor: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLabelElement: {\n prototype: HTMLLabelElement;\n new(): HTMLLabelElement;\n};\n\n/** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */\ninterface HTMLLegendElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLegendElement: {\n prototype: HTMLLegendElement;\n new(): HTMLLegendElement;\n};\n\n/** Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. */\ninterface HTMLLinkElement extends HTMLElement, LinkStyle {\n as: string;\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n */\n charset: string;\n crossOrigin: string | null;\n disabled: boolean;\n /** Sets or retrieves a destination URL or an anchor point. */\n href: string;\n /** Sets or retrieves the language code of the object. */\n hreflang: string;\n imageSizes: string;\n imageSrcset: string;\n integrity: string;\n /** Sets or retrieves the media type. */\n media: string;\n referrerPolicy: string;\n /** Sets or retrieves the relationship between the object and the destination of the link. */\n rel: string;\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n * @deprecated\n */\n rev: string;\n readonly sizes: DOMTokenList;\n /**\n * Sets or retrieves the window or frame at which to target content.\n * @deprecated\n */\n target: string;\n /** Sets or retrieves the MIME type of the object. */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLinkElement: {\n prototype: HTMLLinkElement;\n new(): HTMLLinkElement;\n};\n\n/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements. */\ninterface HTMLMapElement extends HTMLElement {\n /** Retrieves a collection of the area objects defined for the given map object. */\n readonly areas: HTMLCollection;\n /** Sets or retrieves the name of the object. */\n name: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMapElement: {\n prototype: HTMLMapElement;\n new(): HTMLMapElement;\n};\n\n/**\n * Provides methods to manipulate <marquee> elements.\n * @deprecated\n */\ninterface HTMLMarqueeElement extends HTMLElement {\n /** @deprecated */\n behavior: string;\n /** @deprecated */\n bgColor: string;\n /** @deprecated */\n direction: string;\n /** @deprecated */\n height: string;\n /** @deprecated */\n hspace: number;\n /** @deprecated */\n loop: number;\n /** @deprecated */\n scrollAmount: number;\n /** @deprecated */\n scrollDelay: number;\n /** @deprecated */\n trueSpeed: boolean;\n /** @deprecated */\n vspace: number;\n /** @deprecated */\n width: string;\n /** @deprecated */\n start(): void;\n /** @deprecated */\n stop(): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLMarqueeElement: {\n prototype: HTMLMarqueeElement;\n new(): HTMLMarqueeElement;\n};\n\ninterface HTMLMediaElementEventMap extends HTMLElementEventMap {\n "encrypted": MediaEncryptedEvent;\n "waitingforkey": Event;\n}\n\n/** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities\xa0that are\xa0common to audio and video. */\ninterface HTMLMediaElement extends HTMLElement {\n /** Gets or sets a value that indicates whether to start playing the media automatically. */\n autoplay: boolean;\n /** Gets a collection of buffered time ranges. */\n readonly buffered: TimeRanges;\n /** Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). */\n controls: boolean;\n crossOrigin: string | null;\n /** Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. */\n readonly currentSrc: string;\n /** Gets or sets the current playback position, in seconds. */\n currentTime: number;\n defaultMuted: boolean;\n /** Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. */\n defaultPlaybackRate: number;\n disableRemotePlayback: boolean;\n /** Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. */\n readonly duration: number;\n /** Gets information about whether the playback has ended or not. */\n readonly ended: boolean;\n /** Returns an object representing the current error state of the audio or video element. */\n readonly error: MediaError | null;\n /** Gets or sets a flag to specify whether playback should restart after it completes. */\n loop: boolean;\n /** Available only in secure contexts. */\n readonly mediaKeys: MediaKeys | null;\n /** Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. */\n muted: boolean;\n /** Gets the current network activity for the element. */\n readonly networkState: number;\n onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;\n onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;\n /** Gets a flag that specifies whether playback is paused. */\n readonly paused: boolean;\n /** Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. */\n playbackRate: number;\n /** Gets TimeRanges for the current media resource that has been played. */\n readonly played: TimeRanges;\n /** Gets or sets a value indicating what data should be preloaded, if any. */\n preload: "none" | "metadata" | "auto" | "";\n preservesPitch: boolean;\n readonly readyState: number;\n readonly remote: RemotePlayback;\n /** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */\n readonly seekable: TimeRanges;\n /** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */\n readonly seeking: boolean;\n /** The address or URL of the a media resource that is to be considered. */\n src: string;\n srcObject: MediaProvider | null;\n readonly textTracks: TextTrackList;\n /** Gets or sets the volume level for audio portions of the media element. */\n volume: number;\n addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;\n /** Returns a string that specifies whether the client can play a given media resource type. */\n canPlayType(type: string): CanPlayTypeResult;\n fastSeek(time: number): void;\n /** Resets the audio or video object and loads a new media resource. */\n load(): void;\n /** Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. */\n pause(): void;\n /** Loads and starts playback of a media resource. */\n play(): Promise<void>;\n /** Available only in secure contexts. */\n setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;\n readonly NETWORK_EMPTY: 0;\n readonly NETWORK_IDLE: 1;\n readonly NETWORK_LOADING: 2;\n readonly NETWORK_NO_SOURCE: 3;\n readonly HAVE_NOTHING: 0;\n readonly HAVE_METADATA: 1;\n readonly HAVE_CURRENT_DATA: 2;\n readonly HAVE_FUTURE_DATA: 3;\n readonly HAVE_ENOUGH_DATA: 4;\n addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMediaElement: {\n prototype: HTMLMediaElement;\n new(): HTMLMediaElement;\n readonly NETWORK_EMPTY: 0;\n readonly NETWORK_IDLE: 1;\n readonly NETWORK_LOADING: 2;\n readonly NETWORK_NO_SOURCE: 3;\n readonly HAVE_NOTHING: 0;\n readonly HAVE_METADATA: 1;\n readonly HAVE_CURRENT_DATA: 2;\n readonly HAVE_FUTURE_DATA: 3;\n readonly HAVE_ENOUGH_DATA: 4;\n};\n\ninterface HTMLMenuElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMenuElement: {\n prototype: HTMLMenuElement;\n new(): HTMLMenuElement;\n};\n\n/** Contains descriptive metadata about a document. It\xa0inherits all of the properties and methods described in the HTMLElement interface. */\ninterface HTMLMetaElement extends HTMLElement {\n /** Gets or sets meta-information to associate with httpEquiv or name. */\n content: string;\n /** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */\n httpEquiv: string;\n media: string;\n /** Sets or retrieves the value specified in the content attribute of the meta object. */\n name: string;\n /**\n * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.\n * @deprecated\n */\n scheme: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMetaElement: {\n prototype: HTMLMetaElement;\n new(): HTMLMetaElement;\n};\n\n/** The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. */\ninterface HTMLMeterElement extends HTMLElement {\n high: number;\n readonly labels: NodeListOf<HTMLLabelElement>;\n low: number;\n max: number;\n min: number;\n optimum: number;\n value: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMeterElement: {\n prototype: HTMLMeterElement;\n new(): HTMLMeterElement;\n};\n\n/** Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. */\ninterface HTMLModElement extends HTMLElement {\n /** Sets or retrieves reference information about the object. */\n cite: string;\n /** Sets or retrieves the date and time of a modification to the object. */\n dateTime: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLModElement: {\n prototype: HTMLModElement;\n new(): HTMLModElement;\n};\n\n/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */\ninterface HTMLOListElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n reversed: boolean;\n /** The starting number. */\n start: number;\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOListElement: {\n prototype: HTMLOListElement;\n new(): HTMLOListElement;\n};\n\n/** Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. */\ninterface HTMLObjectElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.\n * @deprecated\n */\n archive: string;\n /** @deprecated */\n border: string;\n /**\n * Sets or retrieves the URL of the file containing the compiled Java class.\n * @deprecated\n */\n code: string;\n /**\n * Sets or retrieves the URL of the component.\n * @deprecated\n */\n codeBase: string;\n /**\n * Sets or retrieves the Internet media type for the code associated with the object.\n * @deprecated\n */\n codeType: string;\n /** Retrieves the document object of the page or frame. */\n readonly contentDocument: Document | null;\n readonly contentWindow: WindowProxy | null;\n /** Sets or retrieves the URL that references the data of the object. */\n data: string;\n /** @deprecated */\n declare: boolean;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n /** Sets or retrieves the height of the object. */\n height: string;\n /** @deprecated */\n hspace: number;\n /** Sets or retrieves the name of the object. */\n name: string;\n /**\n * Sets or retrieves a message to be displayed while an object is loading.\n * @deprecated\n */\n standby: string;\n /** Sets or retrieves the MIME type of the object. */\n type: string;\n /** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */\n useMap: string;\n /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */\n readonly validationMessage: string;\n /** Returns a ValidityState object that represents the validity states of an element. */\n readonly validity: ValidityState;\n /** @deprecated */\n vspace: number;\n /** Sets or retrieves the width of the object. */\n width: string;\n /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n readonly willValidate: boolean;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n getSVGDocument(): Document | null;\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLObjectElement: {\n prototype: HTMLObjectElement;\n new(): HTMLObjectElement;\n};\n\n/** Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. */\ninterface HTMLOptGroupElement extends HTMLElement {\n disabled: boolean;\n /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */\n label: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOptGroupElement: {\n prototype: HTMLOptGroupElement;\n new(): HTMLOptGroupElement;\n};\n\n/** <option> elements and inherits all classes and methods of the HTMLElement interface. */\ninterface HTMLOptionElement extends HTMLElement {\n /** Sets or retrieves the status of an option. */\n defaultSelected: boolean;\n disabled: boolean;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n /** Sets or retrieves the ordinal position of an option in a list box. */\n readonly index: number;\n /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */\n label: string;\n /** Sets or retrieves whether the option in the list box is the default item. */\n selected: boolean;\n /** Sets or retrieves the text string specified by the option tag. */\n text: string;\n /** Sets or retrieves the value which is returned to the server when the form control is submitted. */\n value: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOptionElement: {\n prototype: HTMLOptionElement;\n new(): HTMLOptionElement;\n};\n\n/** HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. */\ninterface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {\n /**\n * Returns the number of elements in the collection.\n *\n * When set to a smaller number, truncates the number of option elements in the corresponding container.\n *\n * When set to a greater number, adds new blank option elements to that container.\n */\n length: number;\n /**\n * Returns the index of the first selected item, if any, or \u22121 if there is no selected item.\n *\n * Can be set, to change the selection.\n */\n selectedIndex: number;\n /**\n * Inserts element before the node given by before.\n *\n * The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.\n *\n * If before is omitted, null, or a number out of range, then element will be added at the end of the list.\n *\n * This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.\n */\n add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n /** Removes the item with index index from the collection. */\n remove(index: number): void;\n}\n\ndeclare var HTMLOptionsCollection: {\n prototype: HTMLOptionsCollection;\n new(): HTMLOptionsCollection;\n};\n\ninterface HTMLOrSVGElement {\n autofocus: boolean;\n readonly dataset: DOMStringMap;\n nonce?: string;\n tabIndex: number;\n blur(): void;\n focus(options?: FocusOptions): void;\n}\n\n/** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */\ninterface HTMLOutputElement extends HTMLElement {\n defaultValue: string;\n readonly form: HTMLFormElement | null;\n readonly htmlFor: DOMTokenList;\n readonly labels: NodeListOf<HTMLLabelElement>;\n name: string;\n /** Returns the string "output". */\n readonly type: string;\n readonly validationMessage: string;\n readonly validity: ValidityState;\n /**\n * Returns the element\'s current value.\n *\n * Can be set, to change the value.\n */\n value: string;\n readonly willValidate: boolean;\n checkValidity(): boolean;\n reportValidity(): boolean;\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOutputElement: {\n prototype: HTMLOutputElement;\n new(): HTMLOutputElement;\n};\n\n/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */\ninterface HTMLParagraphElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLParagraphElement: {\n prototype: HTMLParagraphElement;\n new(): HTMLParagraphElement;\n};\n\n/**\n * Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element.\n * @deprecated\n */\ninterface HTMLParamElement extends HTMLElement {\n /**\n * Sets or retrieves the name of an input parameter for an element.\n * @deprecated\n */\n name: string;\n /**\n * Sets or retrieves the content type of the resource designated by the value attribute.\n * @deprecated\n */\n type: string;\n /**\n * Sets or retrieves the value of an input parameter for an element.\n * @deprecated\n */\n value: string;\n /**\n * Sets or retrieves the data type of the value attribute.\n * @deprecated\n */\n valueType: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLParamElement: {\n prototype: HTMLParamElement;\n new(): HTMLParamElement;\n};\n\n/** A <picture> HTML element. It doesn\'t implement specific properties or methods. */\ninterface HTMLPictureElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLPictureElement: {\n prototype: HTMLPictureElement;\n new(): HTMLPictureElement;\n};\n\n/** Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). */\ninterface HTMLPreElement extends HTMLElement {\n /**\n * Sets or gets a value that you can use to implement your own width functionality for the object.\n * @deprecated\n */\n width: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLPreElement: {\n prototype: HTMLPreElement;\n new(): HTMLPreElement;\n};\n\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. */\ninterface HTMLProgressElement extends HTMLElement {\n readonly labels: NodeListOf<HTMLLabelElement>;\n /** Defines the maximum, or "done" value for a progress element. */\n max: number;\n /** Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). */\n readonly position: number;\n /** Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. */\n value: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLProgressElement: {\n prototype: HTMLProgressElement;\n new(): HTMLProgressElement;\n};\n\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. */\ninterface HTMLQuoteElement extends HTMLElement {\n /** Sets or retrieves reference information about the object. */\n cite: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLQuoteElement: {\n prototype: HTMLQuoteElement;\n new(): HTMLQuoteElement;\n};\n\n/** HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). */\ninterface HTMLScriptElement extends HTMLElement {\n async: boolean;\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n */\n charset: string;\n crossOrigin: string | null;\n /** Sets or retrieves the status of the script. */\n defer: boolean;\n /**\n * Sets or retrieves the event for which the script is written.\n * @deprecated\n */\n event: string;\n /**\n * Sets or retrieves the object that is bound to the event script.\n * @deprecated\n */\n htmlFor: string;\n integrity: string;\n noModule: boolean;\n referrerPolicy: string;\n /** Retrieves the URL to an external file that contains the source code or data. */\n src: string;\n /** Retrieves or sets the text of the object as a string. */\n text: string;\n /** Sets or retrieves the MIME type for the associated scripting engine. */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLScriptElement: {\n prototype: HTMLScriptElement;\n new(): HTMLScriptElement;\n supports(type: string): boolean;\n};\n\n/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */\ninterface HTMLSelectElement extends HTMLElement {\n autocomplete: string;\n disabled: boolean;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n readonly labels: NodeListOf<HTMLLabelElement>;\n /** Sets or retrieves the number of objects in a collection. */\n length: number;\n /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */\n multiple: boolean;\n /** Sets or retrieves the name of the object. */\n name: string;\n /** Returns an HTMLOptionsCollection of the list of options. */\n readonly options: HTMLOptionsCollection;\n /** When present, marks an element that can\'t be submitted without a value. */\n required: boolean;\n /** Sets or retrieves the index of the selected option in a select object. */\n selectedIndex: number;\n readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;\n /** Sets or retrieves the number of rows in the list box. */\n size: number;\n /** Retrieves the type of select control based on the value of the MULTIPLE attribute. */\n readonly type: string;\n /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */\n readonly validationMessage: string;\n /** Returns a ValidityState object that represents the validity states of an element. */\n readonly validity: ValidityState;\n /** Sets or retrieves the value which is returned to the server when the form control is submitted. */\n value: string;\n /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n readonly willValidate: boolean;\n /**\n * Adds an element to the areas, controlRange, or options collection.\n * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.\n * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.\n */\n add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n /**\n * Retrieves a select object or an object from an options collection.\n * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.\n * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.\n */\n item(index: number): HTMLOptionElement | null;\n /**\n * Retrieves a select object or an object from an options collection.\n * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.\n */\n namedItem(name: string): HTMLOptionElement | null;\n /**\n * Removes an element from the collection.\n * @param index Number that specifies the zero-based index of the element to remove from the collection.\n */\n remove(): void;\n remove(index: number): void;\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [name: number]: HTMLOptionElement | HTMLOptGroupElement;\n}\n\ndeclare var HTMLSelectElement: {\n prototype: HTMLSelectElement;\n new(): HTMLSelectElement;\n};\n\ninterface HTMLSlotElement extends HTMLElement {\n name: string;\n assign(...nodes: (Element | Text)[]): void;\n assignedElements(options?: AssignedNodesOptions): Element[];\n assignedNodes(options?: AssignedNodesOptions): Node[];\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSlotElement: {\n prototype: HTMLSlotElement;\n new(): HTMLSlotElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */\ninterface HTMLSourceElement extends HTMLElement {\n height: number;\n /** Gets or sets the intended media type of the media source. */\n media: string;\n sizes: string;\n /** The address or URL of the a media resource that is to be considered. */\n src: string;\n srcset: string;\n /** Gets or sets the MIME type of a media resource. */\n type: string;\n width: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSourceElement: {\n prototype: HTMLSourceElement;\n new(): HTMLSourceElement;\n};\n\n/** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */\ninterface HTMLSpanElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSpanElement: {\n prototype: HTMLSpanElement;\n new(): HTMLSpanElement;\n};\n\n/** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */\ninterface HTMLStyleElement extends HTMLElement, LinkStyle {\n /** Enables or disables the style sheet. */\n disabled: boolean;\n /** Sets or retrieves the media type. */\n media: string;\n /**\n * Retrieves the CSS language in which the style sheet is written.\n * @deprecated\n */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLStyleElement: {\n prototype: HTMLStyleElement;\n new(): HTMLStyleElement;\n};\n\n/** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */\ninterface HTMLTableCaptionElement extends HTMLElement {\n /**\n * Sets or retrieves the alignment of the caption or legend.\n * @deprecated\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableCaptionElement: {\n prototype: HTMLTableCaptionElement;\n new(): HTMLTableCaptionElement;\n};\n\n/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. */\ninterface HTMLTableCellElement extends HTMLElement {\n /** Sets or retrieves abbreviated text for the object. */\n abbr: string;\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /**\n * Sets or retrieves a comma-delimited list of conceptual categories associated with the object.\n * @deprecated\n */\n axis: string;\n /** @deprecated */\n bgColor: string;\n /** Retrieves the position of the object in the cells collection of a row. */\n readonly cellIndex: number;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /** Sets or retrieves the number columns in the table that the object should span. */\n colSpan: number;\n /** Sets or retrieves a list of header cells that provide information for the object. */\n headers: string;\n /**\n * Sets or retrieves the height of the object.\n * @deprecated\n */\n height: string;\n /**\n * Sets or retrieves whether the browser automatically performs wordwrap.\n * @deprecated\n */\n noWrap: boolean;\n /** Sets or retrieves how many rows in a table the cell should span. */\n rowSpan: number;\n /** Sets or retrieves the group of cells in a table to which the object\'s information applies. */\n scope: string;\n /** @deprecated */\n vAlign: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n */\n width: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableCellElement: {\n prototype: HTMLTableCellElement;\n new(): HTMLTableCellElement;\n};\n\n/** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */\ninterface HTMLTableColElement extends HTMLElement {\n /**\n * Sets or retrieves the alignment of the object relative to the display or table.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /** Sets or retrieves the number of columns in the group. */\n span: number;\n /** @deprecated */\n vAlign: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n */\n width: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableColElement: {\n prototype: HTMLTableColElement;\n new(): HTMLTableColElement;\n};\n\n/** @deprecated prefer HTMLTableCellElement */\ninterface HTMLTableDataCellElement extends HTMLTableCellElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. */\ninterface HTMLTableElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n bgColor: string;\n /**\n * Sets or retrieves the width of the border to draw around the object.\n * @deprecated\n */\n border: string;\n /** Retrieves the caption object of a table. */\n caption: HTMLTableCaptionElement | null;\n /**\n * Sets or retrieves the amount of space between the border of the cell and the content of the cell.\n * @deprecated\n */\n cellPadding: string;\n /**\n * Sets or retrieves the amount of space between cells in a table.\n * @deprecated\n */\n cellSpacing: string;\n /**\n * Sets or retrieves the way the border frame around the table is displayed.\n * @deprecated\n */\n frame: string;\n /** Sets or retrieves the number of horizontal rows contained in the object. */\n readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n /**\n * Sets or retrieves which dividing lines (inner borders) are displayed.\n * @deprecated\n */\n rules: string;\n /**\n * Sets or retrieves a description and/or structure of the object.\n * @deprecated\n */\n summary: string;\n /** Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. */\n readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;\n /** Retrieves the tFoot object of the table. */\n tFoot: HTMLTableSectionElement | null;\n /** Retrieves the tHead object of the table. */\n tHead: HTMLTableSectionElement | null;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n */\n width: string;\n /** Creates an empty caption element in the table. */\n createCaption(): HTMLTableCaptionElement;\n /** Creates an empty tBody element in the table. */\n createTBody(): HTMLTableSectionElement;\n /** Creates an empty tFoot element in the table. */\n createTFoot(): HTMLTableSectionElement;\n /** Returns the tHead element object if successful, or null otherwise. */\n createTHead(): HTMLTableSectionElement;\n /** Deletes the caption element and its contents from the table. */\n deleteCaption(): void;\n /**\n * Removes the specified row (tr) from the element and from the rows collection.\n * @param index Number that specifies the zero-based position in the rows collection of the row to remove.\n */\n deleteRow(index: number): void;\n /** Deletes the tFoot element and its contents from the table. */\n deleteTFoot(): void;\n /** Deletes the tHead element and its contents from the table. */\n deleteTHead(): void;\n /**\n * Creates a new row (tr) in the table, and adds the row to the rows collection.\n * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.\n */\n insertRow(index?: number): HTMLTableRowElement;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableElement: {\n prototype: HTMLTableElement;\n new(): HTMLTableElement;\n};\n\n/** @deprecated prefer HTMLTableCellElement */\ninterface HTMLTableHeaderCellElement extends HTMLTableCellElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. */\ninterface HTMLTableRowElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n bgColor: string;\n /** Retrieves a collection of all cells in the table row. */\n readonly cells: HTMLCollectionOf<HTMLTableCellElement>;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /** Retrieves the position of the object in the rows collection for the table. */\n readonly rowIndex: number;\n /** Retrieves the position of the object in the collection. */\n readonly sectionRowIndex: number;\n /** @deprecated */\n vAlign: string;\n /**\n * Removes the specified cell from the table row, as well as from the cells collection.\n * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.\n */\n deleteCell(index: number): void;\n /**\n * Creates a new cell in the table row, and adds the cell to the cells collection.\n * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.\n */\n insertCell(index?: number): HTMLTableCellElement;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableRowElement: {\n prototype: HTMLTableRowElement;\n new(): HTMLTableRowElement;\n};\n\n/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. */\ninterface HTMLTableSectionElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n ch: string;\n /** @deprecated */\n chOff: string;\n /** Sets or retrieves the number of horizontal rows contained in the object. */\n readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n /** @deprecated */\n vAlign: string;\n /**\n * Removes the specified row (tr) from the element and from the rows collection.\n * @param index Number that specifies the zero-based position in the rows collection of the row to remove.\n */\n deleteRow(index: number): void;\n /**\n * Creates a new row (tr) in the table, and adds the row to the rows collection.\n * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.\n */\n insertRow(index?: number): HTMLTableRowElement;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableSectionElement: {\n prototype: HTMLTableSectionElement;\n new(): HTMLTableSectionElement;\n};\n\n/** Enables access to the contents of an HTML <template> element. */\ninterface HTMLTemplateElement extends HTMLElement {\n /** Returns the template contents (a DocumentFragment). */\n readonly content: DocumentFragment;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTemplateElement: {\n prototype: HTMLTemplateElement;\n new(): HTMLTemplateElement;\n};\n\n/** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */\ninterface HTMLTextAreaElement extends HTMLElement {\n autocomplete: string;\n /** Sets or retrieves the width of the object. */\n cols: number;\n /** Sets or retrieves the initial contents of the object. */\n defaultValue: string;\n dirName: string;\n disabled: boolean;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n readonly labels: NodeListOf<HTMLLabelElement>;\n /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */\n maxLength: number;\n minLength: number;\n /** Sets or retrieves the name of the object. */\n name: string;\n /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */\n placeholder: string;\n /** Sets or retrieves the value indicated whether the content of the object is read-only. */\n readOnly: boolean;\n /** When present, marks an element that can\'t be submitted without a value. */\n required: boolean;\n /** Sets or retrieves the number of horizontal rows contained in the object. */\n rows: number;\n selectionDirection: "forward" | "backward" | "none";\n /** Gets or sets the end position or offset of a text selection. */\n selectionEnd: number;\n /** Gets or sets the starting position or offset of a text selection. */\n selectionStart: number;\n readonly textLength: number;\n /** Retrieves the type of control. */\n readonly type: string;\n /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */\n readonly validationMessage: string;\n /** Returns a ValidityState object that represents the validity states of an element. */\n readonly validity: ValidityState;\n /** Retrieves or sets the text in the entry field of the textArea element. */\n value: string;\n /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n readonly willValidate: boolean;\n /** Sets or retrieves how to handle wordwrapping in the object. */\n wrap: string;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n reportValidity(): boolean;\n /** Highlights the input area of a form element. */\n select(): void;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n setRangeText(replacement: string): void;\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n /**\n * Sets the start and end positions of a selection in a text field.\n * @param start The offset into the text field for the start of the selection.\n * @param end The offset into the text field for the end of the selection.\n * @param direction The direction in which the selection is performed.\n */\n setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTextAreaElement: {\n prototype: HTMLTextAreaElement;\n new(): HTMLTextAreaElement;\n};\n\n/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */\ninterface HTMLTimeElement extends HTMLElement {\n dateTime: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTimeElement: {\n prototype: HTMLTimeElement;\n new(): HTMLTimeElement;\n};\n\n/** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */\ninterface HTMLTitleElement extends HTMLElement {\n /** Retrieves or sets the text of the object as a string. */\n text: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTitleElement: {\n prototype: HTMLTitleElement;\n new(): HTMLTitleElement;\n};\n\n/** The HTMLTrackElement */\ninterface HTMLTrackElement extends HTMLElement {\n default: boolean;\n kind: string;\n label: string;\n readonly readyState: number;\n src: string;\n srclang: string;\n /** Returns the TextTrack object corresponding to the text track of the track element. */\n readonly track: TextTrack;\n readonly NONE: 0;\n readonly LOADING: 1;\n readonly LOADED: 2;\n readonly ERROR: 3;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTrackElement: {\n prototype: HTMLTrackElement;\n new(): HTMLTrackElement;\n readonly NONE: 0;\n readonly LOADING: 1;\n readonly LOADED: 2;\n readonly ERROR: 3;\n};\n\n/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */\ninterface HTMLUListElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n /** @deprecated */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLUListElement: {\n prototype: HTMLUListElement;\n new(): HTMLUListElement;\n};\n\n/** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */\ninterface HTMLUnknownElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLUnknownElement: {\n prototype: HTMLUnknownElement;\n new(): HTMLUnknownElement;\n};\n\ninterface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {\n "enterpictureinpicture": Event;\n "leavepictureinpicture": Event;\n}\n\n/** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */\ninterface HTMLVideoElement extends HTMLMediaElement {\n disablePictureInPicture: boolean;\n /** Gets or sets the height of the video element. */\n height: number;\n onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;\n onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;\n /** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */\n playsInline: boolean;\n /** Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. */\n poster: string;\n /** Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. */\n readonly videoHeight: number;\n /** Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. */\n readonly videoWidth: number;\n /** Gets or sets the width of the video element. */\n width: number;\n cancelVideoFrameCallback(handle: number): void;\n getVideoPlaybackQuality(): VideoPlaybackQuality;\n requestPictureInPicture(): Promise<PictureInPictureWindow>;\n requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;\n addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLVideoElement: {\n prototype: HTMLVideoElement;\n new(): HTMLVideoElement;\n};\n\n/** Events that fire when the fragment identifier of the URL has changed. */\ninterface HashChangeEvent extends Event {\n /** Returns the URL of the session history entry that is now current. */\n readonly newURL: string;\n /** Returns the URL of the session history entry that was previously current. */\n readonly oldURL: string;\n}\n\ndeclare var HashChangeEvent: {\n prototype: HashChangeEvent;\n new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;\n};\n\n/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xa0of zero or more name and value pairs. \xa0You can add to this using methods like append() (see Examples.)\xa0In all methods of this interface, header names are matched by case-insensitive byte sequence. */\ninterface Headers {\n append(name: string, value: string): void;\n delete(name: string): void;\n get(name: string): string | null;\n has(name: string): boolean;\n set(name: string, value: string): void;\n forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;\n}\n\ndeclare var Headers: {\n prototype: Headers;\n new(init?: HeadersInit): Headers;\n};\n\n/** Allows\xa0manipulation of\xa0the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */\ninterface History {\n readonly length: number;\n scrollRestoration: ScrollRestoration;\n readonly state: any;\n back(): void;\n forward(): void;\n go(delta?: number): void;\n pushState(data: any, unused: string, url?: string | URL | null): void;\n replaceState(data: any, unused: string, url?: string | URL | null): void;\n}\n\ndeclare var History: {\n prototype: History;\n new(): History;\n};\n\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */\ninterface IDBCursor {\n /** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */\n readonly direction: IDBCursorDirection;\n /** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */\n readonly key: IDBValidKey;\n /** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */\n readonly primaryKey: IDBValidKey;\n readonly request: IDBRequest;\n /** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */\n readonly source: IDBObjectStore | IDBIndex;\n /** Advances the cursor through the next count records in range. */\n advance(count: number): void;\n /** Advances the cursor to the next record in range. */\n continue(key?: IDBValidKey): void;\n /** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. */\n continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n /**\n * Delete the record pointed at by the cursor with a new value.\n *\n * If successful, request\'s result will be undefined.\n */\n delete(): IDBRequest<undefined>;\n /**\n * Updated the record pointed at by the cursor with a new value.\n *\n * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n update(value: any): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBCursor: {\n prototype: IDBCursor;\n new(): IDBCursor;\n};\n\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */\ninterface IDBCursorWithValue extends IDBCursor {\n /** Returns the cursor\'s current value. */\n readonly value: any;\n}\n\ndeclare var IDBCursorWithValue: {\n prototype: IDBCursorWithValue;\n new(): IDBCursorWithValue;\n};\n\ninterface IDBDatabaseEventMap {\n "abort": Event;\n "close": Event;\n "error": Event;\n "versionchange": IDBVersionChangeEvent;\n}\n\n/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */\ninterface IDBDatabase extends EventTarget {\n /** Returns the name of the database. */\n readonly name: string;\n /** Returns a list of the names of object stores in the database. */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n onclose: ((this: IDBDatabase, ev: Event) => any) | null;\n onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;\n /** Returns the version of the database. */\n readonly version: number;\n /** Closes the connection once all running transactions have finished. */\n close(): void;\n /**\n * Creates a new object store with the given name and options and returns a new IDBObjectStore.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;\n /**\n * Deletes the object store with the given name.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n deleteObjectStore(name: string): void;\n /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */\n transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;\n addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBDatabase: {\n prototype: IDBDatabase;\n new(): IDBDatabase;\n};\n\n/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */\ninterface IDBFactory {\n /**\n * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.\n *\n * Throws a "DataError" DOMException if either input is not a valid key.\n */\n cmp(first: any, second: any): number;\n databases(): Promise<IDBDatabaseInfo[]>;\n /** Attempts to delete the named database. If the database already exists and there are open connections that don\'t close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request\'s result will be null. */\n deleteDatabase(name: string): IDBOpenDBRequest;\n /** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request\'s result will be the connection. */\n open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n prototype: IDBFactory;\n new(): IDBFactory;\n};\n\n/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */\ninterface IDBIndex {\n readonly keyPath: string | string[];\n readonly multiEntry: boolean;\n /** Returns the name of the index. */\n name: string;\n /** Returns the IDBObjectStore the index belongs to. */\n readonly objectStore: IDBObjectStore;\n readonly unique: boolean;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue, or null if there were no matching records.\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursor, or null if there were no matching records.\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n}\n\ndeclare var IDBIndex: {\n prototype: IDBIndex;\n new(): IDBIndex;\n};\n\n/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */\ninterface IDBKeyRange {\n /** Returns lower bound, or undefined if none. */\n readonly lower: any;\n /** Returns true if the lower open flag is set, and false otherwise. */\n readonly lowerOpen: boolean;\n /** Returns upper bound, or undefined if none. */\n readonly upper: any;\n /** Returns true if the upper open flag is set, and false otherwise. */\n readonly upperOpen: boolean;\n /** Returns true if key is included in the range, and false otherwise. */\n includes(key: any): boolean;\n}\n\ndeclare var IDBKeyRange: {\n prototype: IDBKeyRange;\n new(): IDBKeyRange;\n /** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */\n bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n /** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */\n lowerBound(lower: any, open?: boolean): IDBKeyRange;\n /** Returns a new IDBKeyRange spanning only key. */\n only(value: any): IDBKeyRange;\n /** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */\n upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\n/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xa0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xa0To-do Notifications\xa0app (view example live.) */\ninterface IDBObjectStore {\n /** Returns true if the store has a key generator, and false otherwise. */\n readonly autoIncrement: boolean;\n /** Returns a list of the names of indexes in the store. */\n readonly indexNames: DOMStringList;\n /** Returns the key path of the store, or null if none. */\n readonly keyPath: string | string[];\n /** Returns the name of the store. */\n name: string;\n /** Returns the associated transaction. */\n readonly transaction: IDBTransaction;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n /**\n * Deletes all records in store.\n *\n * If successful, request\'s result will be undefined.\n */\n clear(): IDBRequest<undefined>;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n /**\n * Deletes records in store with the given key or in the given key range in query.\n *\n * If successful, request\'s result will be undefined.\n */\n delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n /**\n * Deletes the index in store with the given name.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n deleteIndex(name: string): void;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n index(name: string): IDBIndex;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBObjectStore: {\n prototype: IDBObjectStore;\n new(): IDBObjectStore;\n};\n\ninterface IDBOpenDBRequestEventMap extends IDBRequestEventMap {\n "blocked": IDBVersionChangeEvent;\n "upgradeneeded": IDBVersionChangeEvent;\n}\n\n/** Also inherits methods from its parents IDBRequest and EventTarget. */\ninterface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {\n onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBOpenDBRequest: {\n prototype: IDBOpenDBRequest;\n new(): IDBOpenDBRequest;\n};\n\ninterface IDBRequestEventMap {\n "error": Event;\n "success": Event;\n}\n\n/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */\ninterface IDBRequest<T = any> extends EventTarget {\n /** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */\n readonly error: DOMException | null;\n onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;\n onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;\n /** Returns "pending" until a request is complete, then returns "done". */\n readonly readyState: IDBRequestReadyState;\n /** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */\n readonly result: T;\n /** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */\n readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n /** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */\n readonly transaction: IDBTransaction | null;\n addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBRequest: {\n prototype: IDBRequest;\n new(): IDBRequest;\n};\n\ninterface IDBTransactionEventMap {\n "abort": Event;\n "complete": Event;\n "error": Event;\n}\n\ninterface IDBTransaction extends EventTarget {\n /** Returns the transaction\'s connection. */\n readonly db: IDBDatabase;\n readonly durability: IDBTransactionDurability;\n /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */\n readonly error: DOMException | null;\n /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */\n readonly mode: IDBTransactionMode;\n /** Returns a list of the names of object stores in the transaction\'s scope. For an upgrade transaction this is all object stores in the database. */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBTransaction, ev: Event) => any) | null;\n oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;\n onerror: ((this: IDBTransaction, ev: Event) => any) | null;\n /** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */\n abort(): void;\n commit(): void;\n /** Returns an IDBObjectStore in the transaction\'s scope. */\n objectStore(name: string): IDBObjectStore;\n addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBTransaction: {\n prototype: IDBTransaction;\n new(): IDBTransaction;\n};\n\n/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */\ninterface IDBVersionChangeEvent extends Event {\n readonly newVersion: number | null;\n readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n prototype: IDBVersionChangeEvent;\n new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;\n};\n\n/** The\xa0IIRFilterNode\xa0interface of the\xa0Web Audio API\xa0is a AudioNode processor which implements a general infinite impulse response (IIR)\xa0 filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. */\ninterface IIRFilterNode extends AudioNode {\n getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var IIRFilterNode: {\n prototype: IIRFilterNode;\n new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;\n};\n\ninterface IdleDeadline {\n readonly didTimeout: boolean;\n timeRemaining(): DOMHighResTimeStamp;\n}\n\ndeclare var IdleDeadline: {\n prototype: IdleDeadline;\n new(): IdleDeadline;\n};\n\ninterface ImageBitmap {\n /** Returns the intrinsic height of the image, in CSS pixels. */\n readonly height: number;\n /** Returns the intrinsic width of the image, in CSS pixels. */\n readonly width: number;\n /** Releases imageBitmap\'s underlying bitmap data. */\n close(): void;\n}\n\ndeclare var ImageBitmap: {\n prototype: ImageBitmap;\n new(): ImageBitmap;\n};\n\ninterface ImageBitmapRenderingContext {\n /** Returns the canvas element that the context is bound to. */\n readonly canvas: HTMLCanvasElement | OffscreenCanvas;\n /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */\n transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n prototype: ImageBitmapRenderingContext;\n new(): ImageBitmapRenderingContext;\n};\n\n/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */\ninterface ImageData {\n readonly colorSpace: PredefinedColorSpace;\n /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */\n readonly data: Uint8ClampedArray;\n /** Returns the actual dimensions of the data in the ImageData object, in pixels. */\n readonly height: number;\n /** Returns the actual dimensions of the data in the ImageData object, in pixels. */\n readonly width: number;\n}\n\ndeclare var ImageData: {\n prototype: ImageData;\n new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;\n};\n\ninterface InnerHTML {\n innerHTML: string;\n}\n\n/** Available only in secure contexts. */\ninterface InputDeviceInfo extends MediaDeviceInfo {\n}\n\ndeclare var InputDeviceInfo: {\n prototype: InputDeviceInfo;\n new(): InputDeviceInfo;\n};\n\ninterface InputEvent extends UIEvent {\n readonly data: string | null;\n readonly dataTransfer: DataTransfer | null;\n readonly inputType: string;\n readonly isComposing: boolean;\n getTargetRanges(): StaticRange[];\n}\n\ndeclare var InputEvent: {\n prototype: InputEvent;\n new(type: string, eventInitDict?: InputEventInit): InputEvent;\n};\n\n/** provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document\'s viewport. */\ninterface IntersectionObserver {\n readonly root: Element | Document | null;\n readonly rootMargin: string;\n readonly thresholds: ReadonlyArray<number>;\n disconnect(): void;\n observe(target: Element): void;\n takeRecords(): IntersectionObserverEntry[];\n unobserve(target: Element): void;\n}\n\ndeclare var IntersectionObserver: {\n prototype: IntersectionObserver;\n new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;\n};\n\n/** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */\ninterface IntersectionObserverEntry {\n readonly boundingClientRect: DOMRectReadOnly;\n readonly intersectionRatio: number;\n readonly intersectionRect: DOMRectReadOnly;\n readonly isIntersecting: boolean;\n readonly rootBounds: DOMRectReadOnly | null;\n readonly target: Element;\n readonly time: DOMHighResTimeStamp;\n}\n\ndeclare var IntersectionObserverEntry: {\n prototype: IntersectionObserverEntry;\n new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;\n};\n\ninterface KHR_parallel_shader_compile {\n readonly COMPLETION_STATUS_KHR: 0x91B1;\n}\n\n/** KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. */\ninterface KeyboardEvent extends UIEvent {\n readonly altKey: boolean;\n /** @deprecated */\n readonly charCode: number;\n readonly code: string;\n readonly ctrlKey: boolean;\n readonly isComposing: boolean;\n readonly key: string;\n /** @deprecated */\n readonly keyCode: number;\n readonly location: number;\n readonly metaKey: boolean;\n readonly repeat: boolean;\n readonly shiftKey: boolean;\n getModifierState(keyArg: string): boolean;\n /** @deprecated */\n initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;\n readonly DOM_KEY_LOCATION_STANDARD: 0x00;\n readonly DOM_KEY_LOCATION_LEFT: 0x01;\n readonly DOM_KEY_LOCATION_RIGHT: 0x02;\n readonly DOM_KEY_LOCATION_NUMPAD: 0x03;\n}\n\ndeclare var KeyboardEvent: {\n prototype: KeyboardEvent;\n new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;\n readonly DOM_KEY_LOCATION_STANDARD: 0x00;\n readonly DOM_KEY_LOCATION_LEFT: 0x01;\n readonly DOM_KEY_LOCATION_RIGHT: 0x02;\n readonly DOM_KEY_LOCATION_NUMPAD: 0x03;\n};\n\ninterface KeyframeEffect extends AnimationEffect {\n composite: CompositeOperation;\n iterationComposite: IterationCompositeOperation;\n pseudoElement: string | null;\n target: Element | null;\n getKeyframes(): ComputedKeyframe[];\n setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;\n}\n\ndeclare var KeyframeEffect: {\n prototype: KeyframeEffect;\n new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;\n new(source: KeyframeEffect): KeyframeEffect;\n};\n\ninterface LinkStyle {\n readonly sheet: CSSStyleSheet | null;\n}\n\n/** The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. */\ninterface Location {\n /** Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. */\n readonly ancestorOrigins: DOMStringList;\n /**\n * Returns the Location object\'s URL\'s fragment (includes leading "#" if non-empty).\n *\n * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").\n */\n hash: string;\n /**\n * Returns the Location object\'s URL\'s host and port (if different from the default port for the scheme).\n *\n * Can be set, to navigate to the same URL with a changed host and port.\n */\n host: string;\n /**\n * Returns the Location object\'s URL\'s host.\n *\n * Can be set, to navigate to the same URL with a changed host.\n */\n hostname: string;\n /**\n * Returns the Location object\'s URL.\n *\n * Can be set, to navigate to the given URL.\n */\n href: string;\n toString(): string;\n /** Returns the Location object\'s URL\'s origin. */\n readonly origin: string;\n /**\n * Returns the Location object\'s URL\'s path.\n *\n * Can be set, to navigate to the same URL with a changed path.\n */\n pathname: string;\n /**\n * Returns the Location object\'s URL\'s port.\n *\n * Can be set, to navigate to the same URL with a changed port.\n */\n port: string;\n /**\n * Returns the Location object\'s URL\'s scheme.\n *\n * Can be set, to navigate to the same URL with a changed scheme.\n */\n protocol: string;\n /**\n * Returns the Location object\'s URL\'s query (includes leading "?" if non-empty).\n *\n * Can be set, to navigate to the same URL with a changed query (ignores leading "?").\n */\n search: string;\n /** Navigates to the given URL. */\n assign(url: string | URL): void;\n /** Reloads the current page. */\n reload(): void;\n /** Removes the current page from the session history and navigates to the given URL. */\n replace(url: string | URL): void;\n}\n\ndeclare var Location: {\n prototype: Location;\n new(): Location;\n};\n\n/** Available only in secure contexts. */\ninterface Lock {\n readonly mode: LockMode;\n readonly name: string;\n}\n\ndeclare var Lock: {\n prototype: Lock;\n new(): Lock;\n};\n\n/** Available only in secure contexts. */\ninterface LockManager {\n query(): Promise<LockManagerSnapshot>;\n request(name: string, callback: LockGrantedCallback): Promise<any>;\n request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;\n}\n\ndeclare var LockManager: {\n prototype: LockManager;\n new(): LockManager;\n};\n\ninterface MIDIAccessEventMap {\n "statechange": Event;\n}\n\n/** Available only in secure contexts. */\ninterface MIDIAccess extends EventTarget {\n readonly inputs: MIDIInputMap;\n onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;\n readonly outputs: MIDIOutputMap;\n readonly sysexEnabled: boolean;\n addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIAccess: {\n prototype: MIDIAccess;\n new(): MIDIAccess;\n};\n\n/** Available only in secure contexts. */\ninterface MIDIConnectionEvent extends Event {\n readonly port: MIDIPort;\n}\n\ndeclare var MIDIConnectionEvent: {\n prototype: MIDIConnectionEvent;\n new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;\n};\n\ninterface MIDIInputEventMap extends MIDIPortEventMap {\n "midimessage": Event;\n}\n\n/** Available only in secure contexts. */\ninterface MIDIInput extends MIDIPort {\n onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;\n addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIInput: {\n prototype: MIDIInput;\n new(): MIDIInput;\n};\n\n/** Available only in secure contexts. */\ninterface MIDIInputMap {\n forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;\n}\n\ndeclare var MIDIInputMap: {\n prototype: MIDIInputMap;\n new(): MIDIInputMap;\n};\n\n/** Available only in secure contexts. */\ninterface MIDIMessageEvent extends Event {\n readonly data: Uint8Array;\n}\n\ndeclare var MIDIMessageEvent: {\n prototype: MIDIMessageEvent;\n new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;\n};\n\n/** Available only in secure contexts. */\ninterface MIDIOutput extends MIDIPort {\n send(data: number[], timestamp?: DOMHighResTimeStamp): void;\n addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIOutput: {\n prototype: MIDIOutput;\n new(): MIDIOutput;\n};\n\n/** Available only in secure contexts. */\ninterface MIDIOutputMap {\n forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;\n}\n\ndeclare var MIDIOutputMap: {\n prototype: MIDIOutputMap;\n new(): MIDIOutputMap;\n};\n\ninterface MIDIPortEventMap {\n "statechange": Event;\n}\n\n/** Available only in secure contexts. */\ninterface MIDIPort extends EventTarget {\n readonly connection: MIDIPortConnectionState;\n readonly id: string;\n readonly manufacturer: string | null;\n readonly name: string | null;\n onstatechange: ((this: MIDIPort, ev: Event) => any) | null;\n readonly state: MIDIPortDeviceState;\n readonly type: MIDIPortType;\n readonly version: string | null;\n close(): Promise<MIDIPort>;\n open(): Promise<MIDIPort>;\n addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIPort: {\n prototype: MIDIPort;\n new(): MIDIPort;\n};\n\ninterface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {\n}\n\ninterface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {\n addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MathMLElement: {\n prototype: MathMLElement;\n new(): MathMLElement;\n};\n\ninterface MediaCapabilities {\n decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;\n encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;\n}\n\ndeclare var MediaCapabilities: {\n prototype: MediaCapabilities;\n new(): MediaCapabilities;\n};\n\n/**\n * The MediaDevicesInfo interface contains information that describes a single media input or output device.\n * Available only in secure contexts.\n */\ninterface MediaDeviceInfo {\n readonly deviceId: string;\n readonly groupId: string;\n readonly kind: MediaDeviceKind;\n readonly label: string;\n toJSON(): any;\n}\n\ndeclare var MediaDeviceInfo: {\n prototype: MediaDeviceInfo;\n new(): MediaDeviceInfo;\n};\n\ninterface MediaDevicesEventMap {\n "devicechange": Event;\n}\n\n/**\n * Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.\n * Available only in secure contexts.\n */\ninterface MediaDevices extends EventTarget {\n ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;\n enumerateDevices(): Promise<MediaDeviceInfo[]>;\n getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;\n getSupportedConstraints(): MediaTrackSupportedConstraints;\n getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;\n addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaDevices: {\n prototype: MediaDevices;\n new(): MediaDevices;\n};\n\n/** A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio. */\ninterface MediaElementAudioSourceNode extends AudioNode {\n readonly mediaElement: HTMLMediaElement;\n}\n\ndeclare var MediaElementAudioSourceNode: {\n prototype: MediaElementAudioSourceNode;\n new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;\n};\n\ninterface MediaEncryptedEvent extends Event {\n readonly initData: ArrayBuffer | null;\n readonly initDataType: string;\n}\n\ndeclare var MediaEncryptedEvent: {\n prototype: MediaEncryptedEvent;\n new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;\n};\n\n/** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */\ninterface MediaError {\n readonly code: number;\n readonly message: string;\n readonly MEDIA_ERR_ABORTED: 1;\n readonly MEDIA_ERR_NETWORK: 2;\n readonly MEDIA_ERR_DECODE: 3;\n readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;\n}\n\ndeclare var MediaError: {\n prototype: MediaError;\n new(): MediaError;\n readonly MEDIA_ERR_ABORTED: 1;\n readonly MEDIA_ERR_NETWORK: 2;\n readonly MEDIA_ERR_DECODE: 3;\n readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;\n};\n\n/**\n * This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session.\n * Available only in secure contexts.\n */\ninterface MediaKeyMessageEvent extends Event {\n readonly message: ArrayBuffer;\n readonly messageType: MediaKeyMessageType;\n}\n\ndeclare var MediaKeyMessageEvent: {\n prototype: MediaKeyMessageEvent;\n new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;\n};\n\ninterface MediaKeySessionEventMap {\n "keystatuseschange": Event;\n "message": MediaKeyMessageEvent;\n}\n\n/**\n * This EncryptedMediaExtensions API interface represents a\xa0context for message exchange with a content decryption module (CDM).\n * Available only in secure contexts.\n */\ninterface MediaKeySession extends EventTarget {\n readonly closed: Promise<MediaKeySessionClosedReason>;\n readonly expiration: number;\n readonly keyStatuses: MediaKeyStatusMap;\n onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;\n onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;\n readonly sessionId: string;\n close(): Promise<void>;\n generateRequest(initDataType: string, initData: BufferSource): Promise<void>;\n load(sessionId: string): Promise<boolean>;\n remove(): Promise<void>;\n update(response: BufferSource): Promise<void>;\n addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaKeySession: {\n prototype: MediaKeySession;\n new(): MediaKeySession;\n};\n\n/**\n * This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs.\n * Available only in secure contexts.\n */\ninterface MediaKeyStatusMap {\n readonly size: number;\n get(keyId: BufferSource): MediaKeyStatus | undefined;\n has(keyId: BufferSource): boolean;\n forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;\n}\n\ndeclare var MediaKeyStatusMap: {\n prototype: MediaKeyStatusMap;\n new(): MediaKeyStatusMap;\n};\n\n/**\n * This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method.\n * Available only in secure contexts.\n */\ninterface MediaKeySystemAccess {\n readonly keySystem: string;\n createMediaKeys(): Promise<MediaKeys>;\n getConfiguration(): MediaKeySystemConfiguration;\n}\n\ndeclare var MediaKeySystemAccess: {\n prototype: MediaKeySystemAccess;\n new(): MediaKeySystemAccess;\n};\n\n/**\n * This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.\n * Available only in secure contexts.\n */\ninterface MediaKeys {\n createSession(sessionType?: MediaKeySessionType): MediaKeySession;\n setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;\n}\n\ndeclare var MediaKeys: {\n prototype: MediaKeys;\n new(): MediaKeys;\n};\n\ninterface MediaList {\n readonly length: number;\n mediaText: string;\n toString(): string;\n appendMedium(medium: string): void;\n deleteMedium(medium: string): void;\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var MediaList: {\n prototype: MediaList;\n new(): MediaList;\n};\n\ninterface MediaMetadata {\n album: string;\n artist: string;\n artwork: ReadonlyArray<MediaImage>;\n title: string;\n}\n\ndeclare var MediaMetadata: {\n prototype: MediaMetadata;\n new(init?: MediaMetadataInit): MediaMetadata;\n};\n\ninterface MediaQueryListEventMap {\n "change": MediaQueryListEvent;\n}\n\n/** Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). */\ninterface MediaQueryList extends EventTarget {\n readonly matches: boolean;\n readonly media: string;\n onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;\n /** @deprecated */\n addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;\n /** @deprecated */\n removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;\n addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaQueryList: {\n prototype: MediaQueryList;\n new(): MediaQueryList;\n};\n\ninterface MediaQueryListEvent extends Event {\n readonly matches: boolean;\n readonly media: string;\n}\n\ndeclare var MediaQueryListEvent: {\n prototype: MediaQueryListEvent;\n new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;\n};\n\ninterface MediaRecorderEventMap {\n "dataavailable": BlobEvent;\n "error": Event;\n "pause": Event;\n "resume": Event;\n "start": Event;\n "stop": Event;\n}\n\ninterface MediaRecorder extends EventTarget {\n readonly audioBitsPerSecond: number;\n readonly mimeType: string;\n ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;\n onerror: ((this: MediaRecorder, ev: Event) => any) | null;\n onpause: ((this: MediaRecorder, ev: Event) => any) | null;\n onresume: ((this: MediaRecorder, ev: Event) => any) | null;\n onstart: ((this: MediaRecorder, ev: Event) => any) | null;\n onstop: ((this: MediaRecorder, ev: Event) => any) | null;\n readonly state: RecordingState;\n readonly stream: MediaStream;\n readonly videoBitsPerSecond: number;\n pause(): void;\n requestData(): void;\n resume(): void;\n start(timeslice?: number): void;\n stop(): void;\n addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaRecorder: {\n prototype: MediaRecorder;\n new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;\n isTypeSupported(type: string): boolean;\n};\n\ninterface MediaSession {\n metadata: MediaMetadata | null;\n playbackState: MediaSessionPlaybackState;\n setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;\n setPositionState(state?: MediaPositionState): void;\n}\n\ndeclare var MediaSession: {\n prototype: MediaSession;\n new(): MediaSession;\n};\n\ninterface MediaSourceEventMap {\n "sourceclose": Event;\n "sourceended": Event;\n "sourceopen": Event;\n}\n\n/** This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent. */\ninterface MediaSource extends EventTarget {\n readonly activeSourceBuffers: SourceBufferList;\n duration: number;\n onsourceclose: ((this: MediaSource, ev: Event) => any) | null;\n onsourceended: ((this: MediaSource, ev: Event) => any) | null;\n onsourceopen: ((this: MediaSource, ev: Event) => any) | null;\n readonly readyState: ReadyState;\n readonly sourceBuffers: SourceBufferList;\n addSourceBuffer(type: string): SourceBuffer;\n clearLiveSeekableRange(): void;\n endOfStream(error?: EndOfStreamError): void;\n removeSourceBuffer(sourceBuffer: SourceBuffer): void;\n setLiveSeekableRange(start: number, end: number): void;\n addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaSource: {\n prototype: MediaSource;\n new(): MediaSource;\n isTypeSupported(type: string): boolean;\n};\n\ninterface MediaStreamEventMap {\n "addtrack": MediaStreamTrackEvent;\n "removetrack": MediaStreamTrackEvent;\n}\n\n/** A stream of media content. A stream consists of several tracks such as\xa0video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */\ninterface MediaStream extends EventTarget {\n readonly active: boolean;\n readonly id: string;\n onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n addTrack(track: MediaStreamTrack): void;\n clone(): MediaStream;\n getAudioTracks(): MediaStreamTrack[];\n getTrackById(trackId: string): MediaStreamTrack | null;\n getTracks(): MediaStreamTrack[];\n getVideoTracks(): MediaStreamTrack[];\n removeTrack(track: MediaStreamTrack): void;\n addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaStream: {\n prototype: MediaStream;\n new(): MediaStream;\n new(stream: MediaStream): MediaStream;\n new(tracks: MediaStreamTrack[]): MediaStream;\n};\n\ninterface MediaStreamAudioDestinationNode extends AudioNode {\n readonly stream: MediaStream;\n}\n\ndeclare var MediaStreamAudioDestinationNode: {\n prototype: MediaStreamAudioDestinationNode;\n new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;\n};\n\n/** A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. */\ninterface MediaStreamAudioSourceNode extends AudioNode {\n readonly mediaStream: MediaStream;\n}\n\ndeclare var MediaStreamAudioSourceNode: {\n prototype: MediaStreamAudioSourceNode;\n new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;\n};\n\ninterface MediaStreamTrackEventMap {\n "ended": Event;\n "mute": Event;\n "unmute": Event;\n}\n\n/** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */\ninterface MediaStreamTrack extends EventTarget {\n contentHint: string;\n enabled: boolean;\n readonly id: string;\n readonly kind: string;\n readonly label: string;\n readonly muted: boolean;\n onended: ((this: MediaStreamTrack, ev: Event) => any) | null;\n onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n readonly readyState: MediaStreamTrackState;\n applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;\n clone(): MediaStreamTrack;\n getCapabilities(): MediaTrackCapabilities;\n getConstraints(): MediaTrackConstraints;\n getSettings(): MediaTrackSettings;\n stop(): void;\n addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaStreamTrack: {\n prototype: MediaStreamTrack;\n new(): MediaStreamTrack;\n};\n\n/** Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur. */\ninterface MediaStreamTrackEvent extends Event {\n readonly track: MediaStreamTrack;\n}\n\ndeclare var MediaStreamTrackEvent: {\n prototype: MediaStreamTrackEvent;\n new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;\n};\n\n/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */\ninterface MessageChannel {\n /** Returns the first MessagePort object. */\n readonly port1: MessagePort;\n /** Returns the second MessagePort object. */\n readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n prototype: MessageChannel;\n new(): MessageChannel;\n};\n\n/** A message received by a target object. */\ninterface MessageEvent<T = any> extends Event {\n /** Returns the data of the message. */\n readonly data: T;\n /** Returns the last event ID string, for server-sent events. */\n readonly lastEventId: string;\n /** Returns the origin of the message, for server-sent events and cross-document messaging. */\n readonly origin: string;\n /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */\n readonly ports: ReadonlyArray<MessagePort>;\n /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */\n readonly source: MessageEventSource | null;\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;\n}\n\ndeclare var MessageEvent: {\n prototype: MessageEvent;\n new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;\n};\n\ninterface MessagePortEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */\ninterface MessagePort extends EventTarget {\n onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;\n /** Disconnects the port, so that it is no longer active. */\n close(): void;\n /**\n * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /** Begins dispatching messages received on the port. */\n start(): void;\n addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MessagePort: {\n prototype: MessagePort;\n new(): MessagePort;\n};\n\n/**\n * Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.\n * @deprecated\n */\ninterface MimeType {\n /**\n * Returns the MIME type\'s description.\n * @deprecated\n */\n readonly description: string;\n /**\n * Returns the Plugin object that implements this MIME type.\n * @deprecated\n */\n readonly enabledPlugin: Plugin;\n /**\n * Returns the MIME type\'s typical file extensions, in a comma-separated list.\n * @deprecated\n */\n readonly suffixes: string;\n /**\n * Returns the MIME type.\n * @deprecated\n */\n readonly type: string;\n}\n\n/** @deprecated */\ndeclare var MimeType: {\n prototype: MimeType;\n new(): MimeType;\n};\n\n/**\n * Returns an array of MimeType instances, each of which contains information\xa0about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.\n * @deprecated\n */\ninterface MimeTypeArray {\n /** @deprecated */\n readonly length: number;\n /** @deprecated */\n item(index: number): MimeType | null;\n /** @deprecated */\n namedItem(name: string): MimeType | null;\n [index: number]: MimeType;\n}\n\n/** @deprecated */\ndeclare var MimeTypeArray: {\n prototype: MimeTypeArray;\n new(): MimeTypeArray;\n};\n\n/** Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown. */\ninterface MouseEvent extends UIEvent {\n readonly altKey: boolean;\n readonly button: number;\n readonly buttons: number;\n readonly clientX: number;\n readonly clientY: number;\n readonly ctrlKey: boolean;\n readonly metaKey: boolean;\n readonly movementX: number;\n readonly movementY: number;\n readonly offsetX: number;\n readonly offsetY: number;\n readonly pageX: number;\n readonly pageY: number;\n readonly relatedTarget: EventTarget | null;\n readonly screenX: number;\n readonly screenY: number;\n readonly shiftKey: boolean;\n readonly x: number;\n readonly y: number;\n getModifierState(keyArg: string): boolean;\n /** @deprecated */\n initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void;\n}\n\ndeclare var MouseEvent: {\n prototype: MouseEvent;\n new(type: string, eventInitDict?: MouseEventInit): MouseEvent;\n};\n\n/**\n * Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.\n * @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.\n */\ninterface MutationEvent extends Event {\n /** @deprecated */\n readonly attrChange: number;\n /** @deprecated */\n readonly attrName: string;\n /** @deprecated */\n readonly newValue: string;\n /** @deprecated */\n readonly prevValue: string;\n /** @deprecated */\n readonly relatedNode: Node | null;\n /** @deprecated */\n initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;\n readonly MODIFICATION: 1;\n readonly ADDITION: 2;\n readonly REMOVAL: 3;\n}\n\n/** @deprecated */\ndeclare var MutationEvent: {\n prototype: MutationEvent;\n new(): MutationEvent;\n readonly MODIFICATION: 1;\n readonly ADDITION: 2;\n readonly REMOVAL: 3;\n};\n\n/** Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. */\ninterface MutationObserver {\n /** Stops observer from observing any mutations. Until the observe() method is used again, observer\'s callback will not be invoked. */\n disconnect(): void;\n /**\n * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).\n *\n * The options argument allows for setting mutation observation options via object members.\n */\n observe(target: Node, options?: MutationObserverInit): void;\n /** Empties the record queue and returns what was in there. */\n takeRecords(): MutationRecord[];\n}\n\ndeclare var MutationObserver: {\n prototype: MutationObserver;\n new(callback: MutationCallback): MutationObserver;\n};\n\n/** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver\'s callback. */\ninterface MutationRecord {\n /** Return the nodes added and removed respectively. */\n readonly addedNodes: NodeList;\n /** Returns the local name of the changed attribute, and null otherwise. */\n readonly attributeName: string | null;\n /** Returns the namespace of the changed attribute, and null otherwise. */\n readonly attributeNamespace: string | null;\n /** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */\n readonly nextSibling: Node | null;\n /** The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null. */\n readonly oldValue: string | null;\n /** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */\n readonly previousSibling: Node | null;\n /** Return the nodes added and removed respectively. */\n readonly removedNodes: NodeList;\n /** Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed. */\n readonly target: Node;\n /** Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes. */\n readonly type: MutationRecordType;\n}\n\ndeclare var MutationRecord: {\n prototype: MutationRecord;\n new(): MutationRecord;\n};\n\n/** A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. */\ninterface NamedNodeMap {\n readonly length: number;\n getNamedItem(qualifiedName: string): Attr | null;\n getNamedItemNS(namespace: string | null, localName: string): Attr | null;\n item(index: number): Attr | null;\n removeNamedItem(qualifiedName: string): Attr;\n removeNamedItemNS(namespace: string | null, localName: string): Attr;\n setNamedItem(attr: Attr): Attr | null;\n setNamedItemNS(attr: Attr): Attr | null;\n [index: number]: Attr;\n}\n\ndeclare var NamedNodeMap: {\n prototype: NamedNodeMap;\n new(): NamedNodeMap;\n};\n\n/** Available only in secure contexts. */\ninterface NavigationPreloadManager {\n disable(): Promise<void>;\n enable(): Promise<void>;\n getState(): Promise<NavigationPreloadState>;\n setHeaderValue(value: string): Promise<void>;\n}\n\ndeclare var NavigationPreloadManager: {\n prototype: NavigationPreloadManager;\n new(): NavigationPreloadManager;\n};\n\n/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */\ninterface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {\n /** Available only in secure contexts. */\n readonly clipboard: Clipboard;\n /** Available only in secure contexts. */\n readonly credentials: CredentialsContainer;\n readonly doNotTrack: string | null;\n readonly geolocation: Geolocation;\n readonly maxTouchPoints: number;\n readonly mediaCapabilities: MediaCapabilities;\n /** Available only in secure contexts. */\n readonly mediaDevices: MediaDevices;\n readonly mediaSession: MediaSession;\n readonly permissions: Permissions;\n /** Available only in secure contexts. */\n readonly serviceWorker: ServiceWorkerContainer;\n /** Available only in secure contexts. */\n canShare(data?: ShareData): boolean;\n getGamepads(): (Gamepad | null)[];\n /** Available only in secure contexts. */\n requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;\n /** Available only in secure contexts. */\n requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;\n sendBeacon(url: string | URL, data?: BodyInit | null): boolean;\n /** Available only in secure contexts. */\n share(data?: ShareData): Promise<void>;\n vibrate(pattern: VibratePattern): boolean;\n}\n\ndeclare var Navigator: {\n prototype: Navigator;\n new(): Navigator;\n};\n\ninterface NavigatorAutomationInformation {\n readonly webdriver: boolean;\n}\n\ninterface NavigatorConcurrentHardware {\n readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorContentUtils {\n /** Available only in secure contexts. */\n registerProtocolHandler(scheme: string, url: string | URL): void;\n}\n\ninterface NavigatorCookies {\n readonly cookieEnabled: boolean;\n}\n\ninterface NavigatorID {\n /** @deprecated */\n readonly appCodeName: string;\n /** @deprecated */\n readonly appName: string;\n /** @deprecated */\n readonly appVersion: string;\n /** @deprecated */\n readonly platform: string;\n /** @deprecated */\n readonly product: string;\n /** @deprecated */\n readonly productSub: string;\n readonly userAgent: string;\n /** @deprecated */\n readonly vendor: string;\n /** @deprecated */\n readonly vendorSub: string;\n}\n\ninterface NavigatorLanguage {\n readonly language: string;\n readonly languages: ReadonlyArray<string>;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorLocks {\n readonly locks: LockManager;\n}\n\ninterface NavigatorOnLine {\n readonly onLine: boolean;\n}\n\ninterface NavigatorPlugins {\n /** @deprecated */\n readonly mimeTypes: MimeTypeArray;\n readonly pdfViewerEnabled: boolean;\n /** @deprecated */\n readonly plugins: PluginArray;\n /** @deprecated */\n javaEnabled(): boolean;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorStorage {\n readonly storage: StorageManager;\n}\n\n/** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */\ninterface Node extends EventTarget {\n /** Returns node\'s node document\'s document base URL. */\n readonly baseURI: string;\n /** Returns the children. */\n readonly childNodes: NodeListOf<ChildNode>;\n /** Returns the first child. */\n readonly firstChild: ChildNode | null;\n /** Returns true if node is connected and false otherwise. */\n readonly isConnected: boolean;\n /** Returns the last child. */\n readonly lastChild: ChildNode | null;\n /** Returns the next sibling. */\n readonly nextSibling: ChildNode | null;\n /** Returns a string appropriate for the type of node. */\n readonly nodeName: string;\n /** Returns the type of node. */\n readonly nodeType: number;\n nodeValue: string | null;\n /** Returns the node document. Returns null for documents. */\n readonly ownerDocument: Document | null;\n /** Returns the parent element. */\n readonly parentElement: HTMLElement | null;\n /** Returns the parent. */\n readonly parentNode: ParentNode | null;\n /** Returns the previous sibling. */\n readonly previousSibling: ChildNode | null;\n textContent: string | null;\n appendChild<T extends Node>(node: T): T;\n /** Returns a copy of node. If deep is true, the copy also includes the node\'s descendants. */\n cloneNode(deep?: boolean): Node;\n /** Returns a bitmask indicating the position of other relative to node. */\n compareDocumentPosition(other: Node): number;\n /** Returns true if other is an inclusive descendant of node, and false otherwise. */\n contains(other: Node | null): boolean;\n /** Returns node\'s root. */\n getRootNode(options?: GetRootNodeOptions): Node;\n /** Returns whether node has children. */\n hasChildNodes(): boolean;\n insertBefore<T extends Node>(node: T, child: Node | null): T;\n isDefaultNamespace(namespace: string | null): boolean;\n /** Returns whether node and otherNode have the same properties. */\n isEqualNode(otherNode: Node | null): boolean;\n isSameNode(otherNode: Node | null): boolean;\n lookupNamespaceURI(prefix: string | null): string | null;\n lookupPrefix(namespace: string | null): string | null;\n /** Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. */\n normalize(): void;\n removeChild<T extends Node>(child: T): T;\n replaceChild<T extends Node>(node: Node, child: T): T;\n /** node is an element. */\n readonly ELEMENT_NODE: 1;\n readonly ATTRIBUTE_NODE: 2;\n /** node is a Text node. */\n readonly TEXT_NODE: 3;\n /** node is a CDATASection node. */\n readonly CDATA_SECTION_NODE: 4;\n readonly ENTITY_REFERENCE_NODE: 5;\n readonly ENTITY_NODE: 6;\n /** node is a ProcessingInstruction node. */\n readonly PROCESSING_INSTRUCTION_NODE: 7;\n /** node is a Comment node. */\n readonly COMMENT_NODE: 8;\n /** node is a document. */\n readonly DOCUMENT_NODE: 9;\n /** node is a doctype. */\n readonly DOCUMENT_TYPE_NODE: 10;\n /** node is a DocumentFragment node. */\n readonly DOCUMENT_FRAGMENT_NODE: 11;\n readonly NOTATION_NODE: 12;\n /** Set when node and other are not in the same tree. */\n readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;\n /** Set when other is preceding node. */\n readonly DOCUMENT_POSITION_PRECEDING: 0x02;\n /** Set when other is following node. */\n readonly DOCUMENT_POSITION_FOLLOWING: 0x04;\n /** Set when other is an ancestor of node. */\n readonly DOCUMENT_POSITION_CONTAINS: 0x08;\n /** Set when other is a descendant of node. */\n readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;\n readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;\n}\n\ndeclare var Node: {\n prototype: Node;\n new(): Node;\n /** node is an element. */\n readonly ELEMENT_NODE: 1;\n readonly ATTRIBUTE_NODE: 2;\n /** node is a Text node. */\n readonly TEXT_NODE: 3;\n /** node is a CDATASection node. */\n readonly CDATA_SECTION_NODE: 4;\n readonly ENTITY_REFERENCE_NODE: 5;\n readonly ENTITY_NODE: 6;\n /** node is a ProcessingInstruction node. */\n readonly PROCESSING_INSTRUCTION_NODE: 7;\n /** node is a Comment node. */\n readonly COMMENT_NODE: 8;\n /** node is a document. */\n readonly DOCUMENT_NODE: 9;\n /** node is a doctype. */\n readonly DOCUMENT_TYPE_NODE: 10;\n /** node is a DocumentFragment node. */\n readonly DOCUMENT_FRAGMENT_NODE: 11;\n readonly NOTATION_NODE: 12;\n /** Set when node and other are not in the same tree. */\n readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;\n /** Set when other is preceding node. */\n readonly DOCUMENT_POSITION_PRECEDING: 0x02;\n /** Set when other is following node. */\n readonly DOCUMENT_POSITION_FOLLOWING: 0x04;\n /** Set when other is an ancestor of node. */\n readonly DOCUMENT_POSITION_CONTAINS: 0x08;\n /** Set when other is a descendant of node. */\n readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;\n readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;\n};\n\n/** An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. */\ninterface NodeIterator {\n readonly filter: NodeFilter | null;\n readonly pointerBeforeReferenceNode: boolean;\n readonly referenceNode: Node;\n readonly root: Node;\n readonly whatToShow: number;\n /** @deprecated */\n detach(): void;\n nextNode(): Node | null;\n previousNode(): Node | null;\n}\n\ndeclare var NodeIterator: {\n prototype: NodeIterator;\n new(): NodeIterator;\n};\n\n/** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */\ninterface NodeList {\n /** Returns the number of nodes in the collection. */\n readonly length: number;\n /** Returns the node with index index from the collection. The nodes are sorted in tree order. */\n item(index: number): Node | null;\n /**\n * Performs the specified action for each node in an list.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;\n [index: number]: Node;\n}\n\ndeclare var NodeList: {\n prototype: NodeList;\n new(): NodeList;\n};\n\ninterface NodeListOf<TNode extends Node> extends NodeList {\n item(index: number): TNode;\n /**\n * Performs the specified action for each node in an list.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;\n [index: number]: TNode;\n}\n\ninterface NonDocumentTypeChildNode {\n /** Returns the first following sibling that is an element, and null otherwise. */\n readonly nextElementSibling: Element | null;\n /** Returns the first preceding sibling that is an element, and null otherwise. */\n readonly previousElementSibling: Element | null;\n}\n\ninterface NonElementParentNode {\n /** Returns the first element within node\'s descendants whose ID is elementId. */\n getElementById(elementId: string): Element | null;\n}\n\ninterface NotificationEventMap {\n "click": Event;\n "close": Event;\n "error": Event;\n "show": Event;\n}\n\n/** This Notifications API interface is used to configure and display desktop notifications to the user. */\ninterface Notification extends EventTarget {\n readonly body: string;\n readonly data: any;\n readonly dir: NotificationDirection;\n readonly icon: string;\n readonly lang: string;\n onclick: ((this: Notification, ev: Event) => any) | null;\n onclose: ((this: Notification, ev: Event) => any) | null;\n onerror: ((this: Notification, ev: Event) => any) | null;\n onshow: ((this: Notification, ev: Event) => any) | null;\n readonly tag: string;\n readonly title: string;\n close(): void;\n addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Notification: {\n prototype: Notification;\n new(title: string, options?: NotificationOptions): Notification;\n readonly permission: NotificationPermission;\n requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;\n};\n\ninterface OES_draw_buffers_indexed {\n blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;\n blendEquationiOES(buf: GLuint, mode: GLenum): void;\n blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;\n colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;\n disableiOES(target: GLenum, index: GLuint): void;\n enableiOES(target: GLenum, index: GLuint): void;\n}\n\n/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */\ninterface OES_element_index_uint {\n}\n\ninterface OES_fbo_render_mipmap {\n}\n\n/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */\ninterface OES_standard_derivatives {\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;\n}\n\n/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */\ninterface OES_texture_float {\n}\n\n/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */\ninterface OES_texture_float_linear {\n}\n\n/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */\ninterface OES_texture_half_float {\n readonly HALF_FLOAT_OES: 0x8D61;\n}\n\n/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */\ninterface OES_texture_half_float_linear {\n}\n\ninterface OES_vertex_array_object {\n bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n createVertexArrayOES(): WebGLVertexArrayObjectOES | null;\n deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;\n}\n\ninterface OVR_multiview2 {\n framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;\n readonly MAX_VIEWS_OVR: 0x9631;\n readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;\n}\n\n/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */\ninterface OfflineAudioCompletionEvent extends Event {\n readonly renderedBuffer: AudioBuffer;\n}\n\ndeclare var OfflineAudioCompletionEvent: {\n prototype: OfflineAudioCompletionEvent;\n new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;\n};\n\ninterface OfflineAudioContextEventMap extends BaseAudioContextEventMap {\n "complete": OfflineAudioCompletionEvent;\n}\n\n/** An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn\'t render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. */\ninterface OfflineAudioContext extends BaseAudioContext {\n readonly length: number;\n oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;\n resume(): Promise<void>;\n startRendering(): Promise<AudioBuffer>;\n suspend(suspendTime: number): Promise<void>;\n addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OfflineAudioContext: {\n prototype: OfflineAudioContext;\n new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;\n new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;\n};\n\ninterface OffscreenCanvasEventMap {\n "contextlost": Event;\n "contextrestored": Event;\n}\n\ninterface OffscreenCanvas extends EventTarget {\n /**\n * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n *\n * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n */\n height: number;\n oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;\n oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;\n /**\n * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n *\n * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n */\n width: number;\n /**\n * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.\n *\n * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn\'t supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.\n */\n convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;\n /**\n * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.\n *\n * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]\n *\n * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).\n */\n getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;\n getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;\n getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;\n getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;\n getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;\n /** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */\n transferToImageBitmap(): ImageBitmap;\n addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OffscreenCanvas: {\n prototype: OffscreenCanvas;\n new(width: number, height: number): OffscreenCanvas;\n};\n\ninterface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {\n readonly canvas: OffscreenCanvas;\n commit(): void;\n}\n\ndeclare var OffscreenCanvasRenderingContext2D: {\n prototype: OffscreenCanvasRenderingContext2D;\n new(): OffscreenCanvasRenderingContext2D;\n};\n\n/** The OscillatorNode\xa0interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency\xa0of a given wave to be created\u2014in effect, a constant tone. */\ninterface OscillatorNode extends AudioScheduledSourceNode {\n readonly detune: AudioParam;\n readonly frequency: AudioParam;\n type: OscillatorType;\n setPeriodicWave(periodicWave: PeriodicWave): void;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OscillatorNode: {\n prototype: OscillatorNode;\n new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;\n};\n\ninterface OverconstrainedError extends Error {\n readonly constraint: string;\n}\n\ndeclare var OverconstrainedError: {\n prototype: OverconstrainedError;\n new(constraint: string, message?: string): OverconstrainedError;\n};\n\n/** The PageTransitionEvent is fired when a document is being loaded or unloaded. */\ninterface PageTransitionEvent extends Event {\n /**\n * For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.\n *\n * For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page.\n *\n * Things that can cause the page to be unsalvageable include:\n *\n * The user agent decided to not keep the Document alive in a session history entry after unload\n * Having iframes that are not salvageable\n * Active WebSocket objects\n * Aborting a Document\n */\n readonly persisted: boolean;\n}\n\ndeclare var PageTransitionEvent: {\n prototype: PageTransitionEvent;\n new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;\n};\n\n/** A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can\'t have panning effects without at least two audio channels! */\ninterface PannerNode extends AudioNode {\n coneInnerAngle: number;\n coneOuterAngle: number;\n coneOuterGain: number;\n distanceModel: DistanceModelType;\n maxDistance: number;\n readonly orientationX: AudioParam;\n readonly orientationY: AudioParam;\n readonly orientationZ: AudioParam;\n panningModel: PanningModelType;\n readonly positionX: AudioParam;\n readonly positionY: AudioParam;\n readonly positionZ: AudioParam;\n refDistance: number;\n rolloffFactor: number;\n /** @deprecated */\n setOrientation(x: number, y: number, z: number): void;\n /** @deprecated */\n setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var PannerNode: {\n prototype: PannerNode;\n new(context: BaseAudioContext, options?: PannerOptions): PannerNode;\n};\n\ninterface ParentNode extends Node {\n readonly childElementCount: number;\n /** Returns the child elements. */\n readonly children: HTMLCollection;\n /** Returns the first child that is an element, and null otherwise. */\n readonly firstElementChild: Element | null;\n /** Returns the last child that is an element, and null otherwise. */\n readonly lastElementChild: Element | null;\n /**\n * Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n append(...nodes: (Node | string)[]): void;\n /**\n * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n prepend(...nodes: (Node | string)[]): void;\n /** Returns the first element that is a descendant of node that matches selectors. */\n querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;\n querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;\n querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;\n /** @deprecated */\n querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;\n querySelector<E extends Element = Element>(selectors: string): E | null;\n /** Returns all element descendants of node that match selectors. */\n querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;\n querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;\n querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;\n /** @deprecated */\n querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;\n querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;\n /**\n * Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n replaceChildren(...nodes: (Node | string)[]): void;\n}\n\n/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */\ninterface Path2D extends CanvasPath {\n /** Adds to the path the path given by the argument. */\n addPath(path: Path2D, transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var Path2D: {\n prototype: Path2D;\n new(path?: Path2D | string): Path2D;\n};\n\n/** Available only in secure contexts. */\ninterface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {\n readonly methodDetails: any;\n readonly methodName: string;\n}\n\ndeclare var PaymentMethodChangeEvent: {\n prototype: PaymentMethodChangeEvent;\n new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;\n};\n\ninterface PaymentRequestEventMap {\n "paymentmethodchange": Event;\n}\n\n/**\n * This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user.\n * Available only in secure contexts.\n */\ninterface PaymentRequest extends EventTarget {\n readonly id: string;\n onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;\n abort(): Promise<void>;\n canMakePayment(): Promise<boolean>;\n show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;\n addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PaymentRequest: {\n prototype: PaymentRequest;\n new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;\n};\n\n/**\n * This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.\n * Available only in secure contexts.\n */\ninterface PaymentRequestUpdateEvent extends Event {\n updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;\n}\n\ndeclare var PaymentRequestUpdateEvent: {\n prototype: PaymentRequestUpdateEvent;\n new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;\n};\n\n/**\n * This Payment Request API interface is returned after a user selects a payment method and approves a payment request.\n * Available only in secure contexts.\n */\ninterface PaymentResponse extends EventTarget {\n readonly details: any;\n readonly methodName: string;\n readonly requestId: string;\n complete(result?: PaymentComplete): Promise<void>;\n retry(errorFields?: PaymentValidationErrors): Promise<void>;\n toJSON(): any;\n}\n\ndeclare var PaymentResponse: {\n prototype: PaymentResponse;\n new(): PaymentResponse;\n};\n\ninterface PerformanceEventMap {\n "resourcetimingbufferfull": Event;\n}\n\n/** Provides access to performance-related information for the current page. It\'s part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */\ninterface Performance extends EventTarget {\n readonly eventCounts: EventCounts;\n /** @deprecated */\n readonly navigation: PerformanceNavigation;\n onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;\n readonly timeOrigin: DOMHighResTimeStamp;\n /** @deprecated */\n readonly timing: PerformanceTiming;\n clearMarks(markName?: string): void;\n clearMeasures(measureName?: string): void;\n clearResourceTimings(): void;\n getEntries(): PerformanceEntryList;\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n getEntriesByType(type: string): PerformanceEntryList;\n mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;\n now(): DOMHighResTimeStamp;\n setResourceTimingBufferSize(maxSize: number): void;\n toJSON(): any;\n addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Performance: {\n prototype: Performance;\n new(): Performance;\n};\n\n/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */\ninterface PerformanceEntry {\n readonly duration: DOMHighResTimeStamp;\n readonly entryType: string;\n readonly name: string;\n readonly startTime: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n prototype: PerformanceEntry;\n new(): PerformanceEntry;\n};\n\ninterface PerformanceEventTiming extends PerformanceEntry {\n readonly cancelable: boolean;\n readonly processingEnd: DOMHighResTimeStamp;\n readonly processingStart: DOMHighResTimeStamp;\n readonly target: Node | null;\n toJSON(): any;\n}\n\ndeclare var PerformanceEventTiming: {\n prototype: PerformanceEventTiming;\n new(): PerformanceEventTiming;\n};\n\n/** PerformanceMark\xa0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser\'s performance timeline. */\ninterface PerformanceMark extends PerformanceEntry {\n readonly detail: any;\n}\n\ndeclare var PerformanceMark: {\n prototype: PerformanceMark;\n new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n};\n\n/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser\'s performance timeline. */\ninterface PerformanceMeasure extends PerformanceEntry {\n readonly detail: any;\n}\n\ndeclare var PerformanceMeasure: {\n prototype: PerformanceMeasure;\n new(): PerformanceMeasure;\n};\n\n/**\n * The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.\n * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.\n */\ninterface PerformanceNavigation {\n /** @deprecated */\n readonly redirectCount: number;\n /** @deprecated */\n readonly type: number;\n /** @deprecated */\n toJSON(): any;\n readonly TYPE_NAVIGATE: 0;\n readonly TYPE_RELOAD: 1;\n readonly TYPE_BACK_FORWARD: 2;\n readonly TYPE_RESERVED: 255;\n}\n\n/** @deprecated */\ndeclare var PerformanceNavigation: {\n prototype: PerformanceNavigation;\n new(): PerformanceNavigation;\n readonly TYPE_NAVIGATE: 0;\n readonly TYPE_RELOAD: 1;\n readonly TYPE_BACK_FORWARD: 2;\n readonly TYPE_RESERVED: 255;\n};\n\n/** Provides methods and properties to store and retrieve metrics regarding the browser\'s document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. */\ninterface PerformanceNavigationTiming extends PerformanceResourceTiming {\n readonly domComplete: DOMHighResTimeStamp;\n readonly domContentLoadedEventEnd: DOMHighResTimeStamp;\n readonly domContentLoadedEventStart: DOMHighResTimeStamp;\n readonly domInteractive: DOMHighResTimeStamp;\n readonly loadEventEnd: DOMHighResTimeStamp;\n readonly loadEventStart: DOMHighResTimeStamp;\n readonly redirectCount: number;\n readonly type: NavigationTimingType;\n readonly unloadEventEnd: DOMHighResTimeStamp;\n readonly unloadEventStart: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceNavigationTiming: {\n prototype: PerformanceNavigationTiming;\n new(): PerformanceNavigationTiming;\n};\n\ninterface PerformanceObserver {\n disconnect(): void;\n observe(options?: PerformanceObserverInit): void;\n takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n prototype: PerformanceObserver;\n new(callback: PerformanceObserverCallback): PerformanceObserver;\n readonly supportedEntryTypes: ReadonlyArray<string>;\n};\n\ninterface PerformanceObserverEntryList {\n getEntries(): PerformanceEntryList;\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n prototype: PerformanceObserverEntryList;\n new(): PerformanceObserverEntryList;\n};\n\ninterface PerformancePaintTiming extends PerformanceEntry {\n}\n\ndeclare var PerformancePaintTiming: {\n prototype: PerformancePaintTiming;\n new(): PerformancePaintTiming;\n};\n\n/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application\'s resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */\ninterface PerformanceResourceTiming extends PerformanceEntry {\n readonly connectEnd: DOMHighResTimeStamp;\n readonly connectStart: DOMHighResTimeStamp;\n readonly decodedBodySize: number;\n readonly domainLookupEnd: DOMHighResTimeStamp;\n readonly domainLookupStart: DOMHighResTimeStamp;\n readonly encodedBodySize: number;\n readonly fetchStart: DOMHighResTimeStamp;\n readonly initiatorType: string;\n readonly nextHopProtocol: string;\n readonly redirectEnd: DOMHighResTimeStamp;\n readonly redirectStart: DOMHighResTimeStamp;\n readonly requestStart: DOMHighResTimeStamp;\n readonly responseEnd: DOMHighResTimeStamp;\n readonly responseStart: DOMHighResTimeStamp;\n readonly secureConnectionStart: DOMHighResTimeStamp;\n readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;\n readonly transferSize: number;\n readonly workerStart: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n prototype: PerformanceResourceTiming;\n new(): PerformanceResourceTiming;\n};\n\ninterface PerformanceServerTiming {\n readonly description: string;\n readonly duration: DOMHighResTimeStamp;\n readonly name: string;\n toJSON(): any;\n}\n\ndeclare var PerformanceServerTiming: {\n prototype: PerformanceServerTiming;\n new(): PerformanceServerTiming;\n};\n\n/**\n * A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.\n * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.\n */\ninterface PerformanceTiming {\n /** @deprecated */\n readonly connectEnd: number;\n /** @deprecated */\n readonly connectStart: number;\n /** @deprecated */\n readonly domComplete: number;\n /** @deprecated */\n readonly domContentLoadedEventEnd: number;\n /** @deprecated */\n readonly domContentLoadedEventStart: number;\n /** @deprecated */\n readonly domInteractive: number;\n /** @deprecated */\n readonly domLoading: number;\n /** @deprecated */\n readonly domainLookupEnd: number;\n /** @deprecated */\n readonly domainLookupStart: number;\n /** @deprecated */\n readonly fetchStart: number;\n /** @deprecated */\n readonly loadEventEnd: number;\n /** @deprecated */\n readonly loadEventStart: number;\n /** @deprecated */\n readonly navigationStart: number;\n /** @deprecated */\n readonly redirectEnd: number;\n /** @deprecated */\n readonly redirectStart: number;\n /** @deprecated */\n readonly requestStart: number;\n /** @deprecated */\n readonly responseEnd: number;\n /** @deprecated */\n readonly responseStart: number;\n /** @deprecated */\n readonly secureConnectionStart: number;\n /** @deprecated */\n readonly unloadEventEnd: number;\n /** @deprecated */\n readonly unloadEventStart: number;\n /** @deprecated */\n toJSON(): any;\n}\n\n/** @deprecated */\ndeclare var PerformanceTiming: {\n prototype: PerformanceTiming;\n new(): PerformanceTiming;\n};\n\n/** PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). */\ninterface PeriodicWave {\n}\n\ndeclare var PeriodicWave: {\n prototype: PeriodicWave;\n new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;\n};\n\ninterface PermissionStatusEventMap {\n "change": Event;\n}\n\ninterface PermissionStatus extends EventTarget {\n readonly name: string;\n onchange: ((this: PermissionStatus, ev: Event) => any) | null;\n readonly state: PermissionState;\n addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PermissionStatus: {\n prototype: PermissionStatus;\n new(): PermissionStatus;\n};\n\ninterface Permissions {\n query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n prototype: Permissions;\n new(): Permissions;\n};\n\ninterface PictureInPictureEvent extends Event {\n readonly pictureInPictureWindow: PictureInPictureWindow;\n}\n\ndeclare var PictureInPictureEvent: {\n prototype: PictureInPictureEvent;\n new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;\n};\n\ninterface PictureInPictureWindowEventMap {\n "resize": Event;\n}\n\ninterface PictureInPictureWindow extends EventTarget {\n readonly height: number;\n onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;\n readonly width: number;\n addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PictureInPictureWindow: {\n prototype: PictureInPictureWindow;\n new(): PictureInPictureWindow;\n};\n\n/**\n * Provides information about a browser plugin.\n * @deprecated\n */\ninterface Plugin {\n /**\n * Returns the plugin\'s description.\n * @deprecated\n */\n readonly description: string;\n /**\n * Returns the plugin library\'s filename, if applicable on the current platform.\n * @deprecated\n */\n readonly filename: string;\n /**\n * Returns the number of MIME types, represented by MimeType objects, supported by the plugin.\n * @deprecated\n */\n readonly length: number;\n /**\n * Returns the plugin\'s name.\n * @deprecated\n */\n readonly name: string;\n /**\n * Returns the specified MimeType object.\n * @deprecated\n */\n item(index: number): MimeType | null;\n /** @deprecated */\n namedItem(name: string): MimeType | null;\n [index: number]: MimeType;\n}\n\n/** @deprecated */\ndeclare var Plugin: {\n prototype: Plugin;\n new(): Plugin;\n};\n\n/**\n * Used to store a list of Plugin objects describing the available plugins; it\'s returned by the window.navigator.plugins\xa0property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.\n * @deprecated\n */\ninterface PluginArray {\n /** @deprecated */\n readonly length: number;\n /** @deprecated */\n item(index: number): Plugin | null;\n /** @deprecated */\n namedItem(name: string): Plugin | null;\n /** @deprecated */\n refresh(): void;\n [index: number]: Plugin;\n}\n\n/** @deprecated */\ndeclare var PluginArray: {\n prototype: PluginArray;\n new(): PluginArray;\n};\n\n/** The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc. */\ninterface PointerEvent extends MouseEvent {\n readonly height: number;\n readonly isPrimary: boolean;\n readonly pointerId: number;\n readonly pointerType: string;\n readonly pressure: number;\n readonly tangentialPressure: number;\n readonly tiltX: number;\n readonly tiltY: number;\n readonly twist: number;\n readonly width: number;\n /** Available only in secure contexts. */\n getCoalescedEvents(): PointerEvent[];\n getPredictedEvents(): PointerEvent[];\n}\n\ndeclare var PointerEvent: {\n prototype: PointerEvent;\n new(type: string, eventInitDict?: PointerEventInit): PointerEvent;\n};\n\n/** PopStateEvent is an event handler for the popstate event on the window. */\ninterface PopStateEvent extends Event {\n /** Returns a copy of the information that was provided to pushState() or replaceState(). */\n readonly state: any;\n}\n\ndeclare var PopStateEvent: {\n prototype: PopStateEvent;\n new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;\n};\n\n/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don\'t recognize them. */\ninterface ProcessingInstruction extends CharacterData, LinkStyle {\n readonly ownerDocument: Document;\n readonly target: string;\n}\n\ndeclare var ProcessingInstruction: {\n prototype: ProcessingInstruction;\n new(): ProcessingInstruction;\n};\n\n/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n readonly lengthComputable: boolean;\n readonly loaded: number;\n readonly target: T | null;\n readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n prototype: ProgressEvent;\n new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\ninterface PromiseRejectionEvent extends Event {\n readonly promise: Promise<any>;\n readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n prototype: PromiseRejectionEvent;\n new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\n/** Available only in secure contexts. */\ninterface PublicKeyCredential extends Credential {\n readonly authenticatorAttachment: string | null;\n readonly rawId: ArrayBuffer;\n readonly response: AuthenticatorResponse;\n getClientExtensionResults(): AuthenticationExtensionsClientOutputs;\n}\n\ndeclare var PublicKeyCredential: {\n prototype: PublicKeyCredential;\n new(): PublicKeyCredential;\n isConditionalMediationAvailable(): Promise<boolean>;\n isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;\n};\n\n/**\n * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.\n * Available only in secure contexts.\n */\ninterface PushManager {\n getSubscription(): Promise<PushSubscription | null>;\n permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;\n subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n prototype: PushManager;\n new(): PushManager;\n readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\n/**\n * This Push API interface provides a subcription\'s URL endpoint and allows unsubscription from a push service.\n * Available only in secure contexts.\n */\ninterface PushSubscription {\n readonly endpoint: string;\n readonly expirationTime: EpochTimeStamp | null;\n readonly options: PushSubscriptionOptions;\n getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n toJSON(): PushSubscriptionJSON;\n unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n prototype: PushSubscription;\n new(): PushSubscription;\n};\n\n/** Available only in secure contexts. */\ninterface PushSubscriptionOptions {\n readonly applicationServerKey: ArrayBuffer | null;\n readonly userVisibleOnly: boolean;\n}\n\ndeclare var PushSubscriptionOptions: {\n prototype: PushSubscriptionOptions;\n new(): PushSubscriptionOptions;\n};\n\ninterface RTCCertificate {\n readonly expires: EpochTimeStamp;\n getFingerprints(): RTCDtlsFingerprint[];\n}\n\ndeclare var RTCCertificate: {\n prototype: RTCCertificate;\n new(): RTCCertificate;\n};\n\ninterface RTCDTMFSenderEventMap {\n "tonechange": RTCDTMFToneChangeEvent;\n}\n\ninterface RTCDTMFSender extends EventTarget {\n readonly canInsertDTMF: boolean;\n ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;\n readonly toneBuffer: string;\n insertDTMF(tones: string, duration?: number, interToneGap?: number): void;\n addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDTMFSender: {\n prototype: RTCDTMFSender;\n new(): RTCDTMFSender;\n};\n\n/** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */\ninterface RTCDTMFToneChangeEvent extends Event {\n readonly tone: string;\n}\n\ndeclare var RTCDTMFToneChangeEvent: {\n prototype: RTCDTMFToneChangeEvent;\n new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;\n};\n\ninterface RTCDataChannelEventMap {\n "bufferedamountlow": Event;\n "close": Event;\n "closing": Event;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\ninterface RTCDataChannel extends EventTarget {\n binaryType: BinaryType;\n readonly bufferedAmount: number;\n bufferedAmountLowThreshold: number;\n readonly id: number | null;\n readonly label: string;\n readonly maxPacketLifeTime: number | null;\n readonly maxRetransmits: number | null;\n readonly negotiated: boolean;\n onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;\n onclose: ((this: RTCDataChannel, ev: Event) => any) | null;\n onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;\n onerror: ((this: RTCDataChannel, ev: Event) => any) | null;\n onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;\n onopen: ((this: RTCDataChannel, ev: Event) => any) | null;\n readonly ordered: boolean;\n readonly protocol: string;\n readonly readyState: RTCDataChannelState;\n close(): void;\n send(data: string): void;\n send(data: Blob): void;\n send(data: ArrayBuffer): void;\n send(data: ArrayBufferView): void;\n addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDataChannel: {\n prototype: RTCDataChannel;\n new(): RTCDataChannel;\n};\n\ninterface RTCDataChannelEvent extends Event {\n readonly channel: RTCDataChannel;\n}\n\ndeclare var RTCDataChannelEvent: {\n prototype: RTCDataChannelEvent;\n new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;\n};\n\ninterface RTCDtlsTransportEventMap {\n "error": Event;\n "statechange": Event;\n}\n\ninterface RTCDtlsTransport extends EventTarget {\n readonly iceTransport: RTCIceTransport;\n onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;\n onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;\n readonly state: RTCDtlsTransportState;\n getRemoteCertificates(): ArrayBuffer[];\n addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDtlsTransport: {\n prototype: RTCDtlsTransport;\n new(): RTCDtlsTransport;\n};\n\ninterface RTCEncodedAudioFrame {\n data: ArrayBuffer;\n readonly timestamp: number;\n getMetadata(): RTCEncodedAudioFrameMetadata;\n}\n\ndeclare var RTCEncodedAudioFrame: {\n prototype: RTCEncodedAudioFrame;\n new(): RTCEncodedAudioFrame;\n};\n\ninterface RTCEncodedVideoFrame {\n data: ArrayBuffer;\n readonly timestamp: number;\n readonly type: RTCEncodedVideoFrameType;\n getMetadata(): RTCEncodedVideoFrameMetadata;\n}\n\ndeclare var RTCEncodedVideoFrame: {\n prototype: RTCEncodedVideoFrame;\n new(): RTCEncodedVideoFrame;\n};\n\ninterface RTCError extends DOMException {\n readonly errorDetail: RTCErrorDetailType;\n readonly receivedAlert: number | null;\n readonly sctpCauseCode: number | null;\n readonly sdpLineNumber: number | null;\n readonly sentAlert: number | null;\n}\n\ndeclare var RTCError: {\n prototype: RTCError;\n new(init: RTCErrorInit, message?: string): RTCError;\n};\n\ninterface RTCErrorEvent extends Event {\n readonly error: RTCError;\n}\n\ndeclare var RTCErrorEvent: {\n prototype: RTCErrorEvent;\n new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;\n};\n\n/** The RTCIceCandidate interface\u2014part of the WebRTC API\u2014represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */\ninterface RTCIceCandidate {\n readonly address: string | null;\n readonly candidate: string;\n readonly component: RTCIceComponent | null;\n readonly foundation: string | null;\n readonly port: number | null;\n readonly priority: number | null;\n readonly protocol: RTCIceProtocol | null;\n readonly relatedAddress: string | null;\n readonly relatedPort: number | null;\n readonly sdpMLineIndex: number | null;\n readonly sdpMid: string | null;\n readonly tcpType: RTCIceTcpCandidateType | null;\n readonly type: RTCIceCandidateType | null;\n readonly usernameFragment: string | null;\n toJSON(): RTCIceCandidateInit;\n}\n\ndeclare var RTCIceCandidate: {\n prototype: RTCIceCandidate;\n new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;\n};\n\ninterface RTCIceTransportEventMap {\n "gatheringstatechange": Event;\n "statechange": Event;\n}\n\n/** Provides access to information about the ICE transport layer over which the data is being sent and received. */\ninterface RTCIceTransport extends EventTarget {\n readonly gatheringState: RTCIceGathererState;\n ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;\n onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;\n readonly state: RTCIceTransportState;\n addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCIceTransport: {\n prototype: RTCIceTransport;\n new(): RTCIceTransport;\n};\n\ninterface RTCPeerConnectionEventMap {\n "connectionstatechange": Event;\n "datachannel": RTCDataChannelEvent;\n "icecandidate": RTCPeerConnectionIceEvent;\n "icecandidateerror": Event;\n "iceconnectionstatechange": Event;\n "icegatheringstatechange": Event;\n "negotiationneeded": Event;\n "signalingstatechange": Event;\n "track": RTCTrackEvent;\n}\n\n/** A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it\'s no longer needed. */\ninterface RTCPeerConnection extends EventTarget {\n readonly canTrickleIceCandidates: boolean | null;\n readonly connectionState: RTCPeerConnectionState;\n readonly currentLocalDescription: RTCSessionDescription | null;\n readonly currentRemoteDescription: RTCSessionDescription | null;\n readonly iceConnectionState: RTCIceConnectionState;\n readonly iceGatheringState: RTCIceGatheringState;\n readonly localDescription: RTCSessionDescription | null;\n onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;\n onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;\n onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null;\n oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;\n onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;\n readonly pendingLocalDescription: RTCSessionDescription | null;\n readonly pendingRemoteDescription: RTCSessionDescription | null;\n readonly remoteDescription: RTCSessionDescription | null;\n readonly sctp: RTCSctpTransport | null;\n readonly signalingState: RTCSignalingState;\n addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;\n /** @deprecated */\n addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;\n addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;\n close(): void;\n createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;\n /** @deprecated */\n createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;\n createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;\n /** @deprecated */\n createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;\n getConfiguration(): RTCConfiguration;\n getReceivers(): RTCRtpReceiver[];\n getSenders(): RTCRtpSender[];\n getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;\n getTransceivers(): RTCRtpTransceiver[];\n removeTrack(sender: RTCRtpSender): void;\n restartIce(): void;\n setConfiguration(configuration?: RTCConfiguration): void;\n setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;\n /** @deprecated */\n setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;\n /** @deprecated */\n setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCPeerConnection: {\n prototype: RTCPeerConnection;\n new(configuration?: RTCConfiguration): RTCPeerConnection;\n generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;\n};\n\ninterface RTCPeerConnectionIceErrorEvent extends Event {\n readonly address: string | null;\n readonly errorCode: number;\n readonly errorText: string;\n readonly port: number | null;\n readonly url: string;\n}\n\ndeclare var RTCPeerConnectionIceErrorEvent: {\n prototype: RTCPeerConnectionIceErrorEvent;\n new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;\n};\n\n/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */\ninterface RTCPeerConnectionIceEvent extends Event {\n readonly candidate: RTCIceCandidate | null;\n}\n\ndeclare var RTCPeerConnectionIceEvent: {\n prototype: RTCPeerConnectionIceEvent;\n new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;\n};\n\n/** This WebRTC API interface manages the reception and decoding of data for a\xa0MediaStreamTrack on an\xa0RTCPeerConnection. */\ninterface RTCRtpReceiver {\n readonly track: MediaStreamTrack;\n readonly transport: RTCDtlsTransport | null;\n getContributingSources(): RTCRtpContributingSource[];\n getParameters(): RTCRtpReceiveParameters;\n getStats(): Promise<RTCStatsReport>;\n getSynchronizationSources(): RTCRtpSynchronizationSource[];\n}\n\ndeclare var RTCRtpReceiver: {\n prototype: RTCRtpReceiver;\n new(): RTCRtpReceiver;\n getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\n/** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */\ninterface RTCRtpSender {\n readonly dtmf: RTCDTMFSender | null;\n readonly track: MediaStreamTrack | null;\n readonly transport: RTCDtlsTransport | null;\n getParameters(): RTCRtpSendParameters;\n getStats(): Promise<RTCStatsReport>;\n replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;\n setParameters(parameters: RTCRtpSendParameters): Promise<void>;\n setStreams(...streams: MediaStream[]): void;\n}\n\ndeclare var RTCRtpSender: {\n prototype: RTCRtpSender;\n new(): RTCRtpSender;\n getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\ninterface RTCRtpTransceiver {\n readonly currentDirection: RTCRtpTransceiverDirection | null;\n direction: RTCRtpTransceiverDirection;\n readonly mid: string | null;\n readonly receiver: RTCRtpReceiver;\n readonly sender: RTCRtpSender;\n setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;\n stop(): void;\n}\n\ndeclare var RTCRtpTransceiver: {\n prototype: RTCRtpTransceiver;\n new(): RTCRtpTransceiver;\n};\n\ninterface RTCSctpTransportEventMap {\n "statechange": Event;\n}\n\ninterface RTCSctpTransport extends EventTarget {\n readonly maxChannels: number | null;\n readonly maxMessageSize: number;\n onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;\n readonly state: RTCSctpTransportState;\n readonly transport: RTCDtlsTransport;\n addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCSctpTransport: {\n prototype: RTCSctpTransport;\n new(): RTCSctpTransport;\n};\n\n/** One end of a connection\u2014or potential connection\u2014and how it\'s configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */\ninterface RTCSessionDescription {\n readonly sdp: string;\n readonly type: RTCSdpType;\n toJSON(): any;\n}\n\ndeclare var RTCSessionDescription: {\n prototype: RTCSessionDescription;\n new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;\n};\n\ninterface RTCStatsReport {\n forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;\n}\n\ndeclare var RTCStatsReport: {\n prototype: RTCStatsReport;\n new(): RTCStatsReport;\n};\n\ninterface RTCTrackEvent extends Event {\n readonly receiver: RTCRtpReceiver;\n readonly streams: ReadonlyArray<MediaStream>;\n readonly track: MediaStreamTrack;\n readonly transceiver: RTCRtpTransceiver;\n}\n\ndeclare var RTCTrackEvent: {\n prototype: RTCTrackEvent;\n new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;\n};\n\ninterface RadioNodeList extends NodeList {\n value: string;\n}\n\ndeclare var RadioNodeList: {\n prototype: RadioNodeList;\n new(): RadioNodeList;\n};\n\n/** A fragment of a document that can contain nodes and parts of text nodes. */\ninterface Range extends AbstractRange {\n /** Returns the node, furthest away from the document, that is an ancestor of both range\'s start node and end node. */\n readonly commonAncestorContainer: Node;\n cloneContents(): DocumentFragment;\n cloneRange(): Range;\n collapse(toStart?: boolean): void;\n compareBoundaryPoints(how: number, sourceRange: Range): number;\n /** Returns \u22121 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range. */\n comparePoint(node: Node, offset: number): number;\n createContextualFragment(fragment: string): DocumentFragment;\n deleteContents(): void;\n detach(): void;\n extractContents(): DocumentFragment;\n getBoundingClientRect(): DOMRect;\n getClientRects(): DOMRectList;\n insertNode(node: Node): void;\n /** Returns whether range intersects node. */\n intersectsNode(node: Node): boolean;\n isPointInRange(node: Node, offset: number): boolean;\n selectNode(node: Node): void;\n selectNodeContents(node: Node): void;\n setEnd(node: Node, offset: number): void;\n setEndAfter(node: Node): void;\n setEndBefore(node: Node): void;\n setStart(node: Node, offset: number): void;\n setStartAfter(node: Node): void;\n setStartBefore(node: Node): void;\n surroundContents(newParent: Node): void;\n toString(): string;\n readonly START_TO_START: 0;\n readonly START_TO_END: 1;\n readonly END_TO_END: 2;\n readonly END_TO_START: 3;\n}\n\ndeclare var Range: {\n prototype: Range;\n new(): Range;\n readonly START_TO_START: 0;\n readonly START_TO_END: 1;\n readonly END_TO_END: 2;\n readonly END_TO_START: 3;\n toString(): string;\n};\n\ninterface ReadableByteStreamController {\n readonly byobRequest: ReadableStreamBYOBRequest | null;\n readonly desiredSize: number | null;\n close(): void;\n enqueue(chunk: ArrayBufferView): void;\n error(e?: any): void;\n}\n\ndeclare var ReadableByteStreamController: {\n prototype: ReadableByteStreamController;\n new(): ReadableByteStreamController;\n};\n\n/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */\ninterface ReadableStream<R = any> {\n readonly locked: boolean;\n cancel(reason?: any): Promise<void>;\n getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;\n getReader(): ReadableStreamDefaultReader<R>;\n getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;\n pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;\n pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;\n tee(): [ReadableStream<R>, ReadableStream<R>];\n}\n\ndeclare var ReadableStream: {\n prototype: ReadableStream;\n new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;\n new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n};\n\ninterface ReadableStreamBYOBReader extends ReadableStreamGenericReader {\n read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamBYOBReader: {\n prototype: ReadableStreamBYOBReader;\n new(stream: ReadableStream): ReadableStreamBYOBReader;\n};\n\ninterface ReadableStreamBYOBRequest {\n readonly view: ArrayBufferView | null;\n respond(bytesWritten: number): void;\n respondWithNewView(view: ArrayBufferView): void;\n}\n\ndeclare var ReadableStreamBYOBRequest: {\n prototype: ReadableStreamBYOBRequest;\n new(): ReadableStreamBYOBRequest;\n};\n\ninterface ReadableStreamDefaultController<R = any> {\n readonly desiredSize: number | null;\n close(): void;\n enqueue(chunk?: R): void;\n error(e?: any): void;\n}\n\ndeclare var ReadableStreamDefaultController: {\n prototype: ReadableStreamDefaultController;\n new(): ReadableStreamDefaultController;\n};\n\ninterface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {\n read(): Promise<ReadableStreamReadResult<R>>;\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamDefaultReader: {\n prototype: ReadableStreamDefaultReader;\n new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;\n};\n\ninterface ReadableStreamGenericReader {\n readonly closed: Promise<undefined>;\n cancel(reason?: any): Promise<void>;\n}\n\ninterface RemotePlaybackEventMap {\n "connect": Event;\n "connecting": Event;\n "disconnect": Event;\n}\n\ninterface RemotePlayback extends EventTarget {\n onconnect: ((this: RemotePlayback, ev: Event) => any) | null;\n onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;\n ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;\n readonly state: RemotePlaybackState;\n cancelWatchAvailability(id?: number): Promise<void>;\n prompt(): Promise<void>;\n watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;\n addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RemotePlayback: {\n prototype: RemotePlayback;\n new(): RemotePlayback;\n};\n\n/** This Fetch API interface represents a resource request. */\ninterface Request extends Body {\n /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser\'s cache when fetching. */\n readonly cache: RequestCache;\n /** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */\n readonly credentials: RequestCredentials;\n /** Returns the kind of resource requested by request, e.g., "document" or "script". */\n readonly destination: RequestDestination;\n /** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */\n readonly headers: Headers;\n /** Returns request\'s subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */\n readonly integrity: string;\n /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */\n readonly keepalive: boolean;\n /** Returns request\'s HTTP method, which is "GET" by default. */\n readonly method: string;\n /** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */\n readonly mode: RequestMode;\n /** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */\n readonly redirect: RequestRedirect;\n /** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global\'s default. This is used during fetching to determine the value of the `Referer` header of the request being made. */\n readonly referrer: string;\n /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request\'s referrer. */\n readonly referrerPolicy: ReferrerPolicy;\n /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */\n readonly signal: AbortSignal;\n /** Returns the URL of request as a string. */\n readonly url: string;\n clone(): Request;\n}\n\ndeclare var Request: {\n prototype: Request;\n new(input: RequestInfo | URL, init?: RequestInit): Request;\n};\n\ninterface ResizeObserver {\n disconnect(): void;\n observe(target: Element, options?: ResizeObserverOptions): void;\n unobserve(target: Element): void;\n}\n\ndeclare var ResizeObserver: {\n prototype: ResizeObserver;\n new(callback: ResizeObserverCallback): ResizeObserver;\n};\n\ninterface ResizeObserverEntry {\n readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;\n readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;\n readonly contentRect: DOMRectReadOnly;\n readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;\n readonly target: Element;\n}\n\ndeclare var ResizeObserverEntry: {\n prototype: ResizeObserverEntry;\n new(): ResizeObserverEntry;\n};\n\ninterface ResizeObserverSize {\n readonly blockSize: number;\n readonly inlineSize: number;\n}\n\ndeclare var ResizeObserverSize: {\n prototype: ResizeObserverSize;\n new(): ResizeObserverSize;\n};\n\n/** This Fetch API interface represents the response to a request. */\ninterface Response extends Body {\n readonly headers: Headers;\n readonly ok: boolean;\n readonly redirected: boolean;\n readonly status: number;\n readonly statusText: string;\n readonly type: ResponseType;\n readonly url: string;\n clone(): Response;\n}\n\ndeclare var Response: {\n prototype: Response;\n new(body?: BodyInit | null, init?: ResponseInit): Response;\n error(): Response;\n redirect(url: string | URL, status?: number): Response;\n};\n\n/** Provides access to the properties of <a> element, as well as methods to manipulate them. */\ninterface SVGAElement extends SVGGraphicsElement, SVGURIReference {\n rel: string;\n readonly relList: DOMTokenList;\n readonly target: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAElement: {\n prototype: SVGAElement;\n new(): SVGAElement;\n};\n\n/** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */\ninterface SVGAngle {\n readonly unitType: number;\n value: number;\n valueAsString: string;\n valueInSpecifiedUnits: number;\n convertToSpecifiedUnits(unitType: number): void;\n newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n readonly SVG_ANGLETYPE_UNKNOWN: 0;\n readonly SVG_ANGLETYPE_UNSPECIFIED: 1;\n readonly SVG_ANGLETYPE_DEG: 2;\n readonly SVG_ANGLETYPE_RAD: 3;\n readonly SVG_ANGLETYPE_GRAD: 4;\n}\n\ndeclare var SVGAngle: {\n prototype: SVGAngle;\n new(): SVGAngle;\n readonly SVG_ANGLETYPE_UNKNOWN: 0;\n readonly SVG_ANGLETYPE_UNSPECIFIED: 1;\n readonly SVG_ANGLETYPE_DEG: 2;\n readonly SVG_ANGLETYPE_RAD: 3;\n readonly SVG_ANGLETYPE_GRAD: 4;\n};\n\ninterface SVGAnimateElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateElement: {\n prototype: SVGAnimateElement;\n new(): SVGAnimateElement;\n};\n\ninterface SVGAnimateMotionElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateMotionElement: {\n prototype: SVGAnimateMotionElement;\n new(): SVGAnimateMotionElement;\n};\n\ninterface SVGAnimateTransformElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateTransformElement: {\n prototype: SVGAnimateTransformElement;\n new(): SVGAnimateTransformElement;\n};\n\n/** Used for attributes of basic type <angle> which can be animated. */\ninterface SVGAnimatedAngle {\n readonly animVal: SVGAngle;\n readonly baseVal: SVGAngle;\n}\n\ndeclare var SVGAnimatedAngle: {\n prototype: SVGAnimatedAngle;\n new(): SVGAnimatedAngle;\n};\n\n/** Used for attributes of type boolean which can be animated. */\ninterface SVGAnimatedBoolean {\n readonly animVal: boolean;\n baseVal: boolean;\n}\n\ndeclare var SVGAnimatedBoolean: {\n prototype: SVGAnimatedBoolean;\n new(): SVGAnimatedBoolean;\n};\n\n/** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */\ninterface SVGAnimatedEnumeration {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedEnumeration: {\n prototype: SVGAnimatedEnumeration;\n new(): SVGAnimatedEnumeration;\n};\n\n/** Used for attributes of basic type <integer> which can be animated. */\ninterface SVGAnimatedInteger {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedInteger: {\n prototype: SVGAnimatedInteger;\n new(): SVGAnimatedInteger;\n};\n\n/** Used for attributes of basic type <length> which can be animated. */\ninterface SVGAnimatedLength {\n readonly animVal: SVGLength;\n readonly baseVal: SVGLength;\n}\n\ndeclare var SVGAnimatedLength: {\n prototype: SVGAnimatedLength;\n new(): SVGAnimatedLength;\n};\n\n/** Used for attributes of type SVGLengthList which can be animated. */\ninterface SVGAnimatedLengthList {\n readonly animVal: SVGLengthList;\n readonly baseVal: SVGLengthList;\n}\n\ndeclare var SVGAnimatedLengthList: {\n prototype: SVGAnimatedLengthList;\n new(): SVGAnimatedLengthList;\n};\n\n/** Used for attributes of basic type <Number> which can be animated. */\ninterface SVGAnimatedNumber {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedNumber: {\n prototype: SVGAnimatedNumber;\n new(): SVGAnimatedNumber;\n};\n\n/** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */\ninterface SVGAnimatedNumberList {\n readonly animVal: SVGNumberList;\n readonly baseVal: SVGNumberList;\n}\n\ndeclare var SVGAnimatedNumberList: {\n prototype: SVGAnimatedNumberList;\n new(): SVGAnimatedNumberList;\n};\n\ninterface SVGAnimatedPoints {\n readonly animatedPoints: SVGPointList;\n readonly points: SVGPointList;\n}\n\n/** Used for attributes of type SVGPreserveAspectRatio which can be animated. */\ninterface SVGAnimatedPreserveAspectRatio {\n readonly animVal: SVGPreserveAspectRatio;\n readonly baseVal: SVGPreserveAspectRatio;\n}\n\ndeclare var SVGAnimatedPreserveAspectRatio: {\n prototype: SVGAnimatedPreserveAspectRatio;\n new(): SVGAnimatedPreserveAspectRatio;\n};\n\n/** Used for attributes of basic SVGRect which can be animated. */\ninterface SVGAnimatedRect {\n readonly animVal: DOMRectReadOnly;\n readonly baseVal: DOMRect;\n}\n\ndeclare var SVGAnimatedRect: {\n prototype: SVGAnimatedRect;\n new(): SVGAnimatedRect;\n};\n\n/** The SVGAnimatedString\xa0interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared\xa0inside this. */\ninterface SVGAnimatedString {\n readonly animVal: string;\n baseVal: string;\n}\n\ndeclare var SVGAnimatedString: {\n prototype: SVGAnimatedString;\n new(): SVGAnimatedString;\n};\n\n/** Used for attributes which take a list of numbers and which can be animated. */\ninterface SVGAnimatedTransformList {\n readonly animVal: SVGTransformList;\n readonly baseVal: SVGTransformList;\n}\n\ndeclare var SVGAnimatedTransformList: {\n prototype: SVGAnimatedTransformList;\n new(): SVGAnimatedTransformList;\n};\n\ninterface SVGAnimationElement extends SVGElement, SVGTests {\n readonly targetElement: SVGElement | null;\n beginElement(): void;\n beginElementAt(offset: number): void;\n endElement(): void;\n endElementAt(offset: number): void;\n getCurrentTime(): number;\n getSimpleDuration(): number;\n getStartTime(): number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimationElement: {\n prototype: SVGAnimationElement;\n new(): SVGAnimationElement;\n};\n\n/** An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle. */\ninterface SVGCircleElement extends SVGGeometryElement {\n readonly cx: SVGAnimatedLength;\n readonly cy: SVGAnimatedLength;\n readonly r: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGCircleElement: {\n prototype: SVGCircleElement;\n new(): SVGCircleElement;\n};\n\n/** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */\ninterface SVGClipPathElement extends SVGElement {\n readonly clipPathUnits: SVGAnimatedEnumeration;\n readonly transform: SVGAnimatedTransformList;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGClipPathElement: {\n prototype: SVGClipPathElement;\n new(): SVGClipPathElement;\n};\n\n/** A base interface used by the component transfer function interfaces. */\ninterface SVGComponentTransferFunctionElement extends SVGElement {\n readonly amplitude: SVGAnimatedNumber;\n readonly exponent: SVGAnimatedNumber;\n readonly intercept: SVGAnimatedNumber;\n readonly offset: SVGAnimatedNumber;\n readonly slope: SVGAnimatedNumber;\n readonly tableValues: SVGAnimatedNumberList;\n readonly type: SVGAnimatedEnumeration;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGComponentTransferFunctionElement: {\n prototype: SVGComponentTransferFunctionElement;\n new(): SVGComponentTransferFunctionElement;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;\n};\n\n/** Corresponds to the <defs> element. */\ninterface SVGDefsElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGDefsElement: {\n prototype: SVGDefsElement;\n new(): SVGDefsElement;\n};\n\n/** Corresponds to the <desc> element. */\ninterface SVGDescElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGDescElement: {\n prototype: SVGDescElement;\n new(): SVGDescElement;\n};\n\ninterface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {\n}\n\n/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */\ninterface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {\n /** @deprecated */\n readonly className: any;\n readonly ownerSVGElement: SVGSVGElement | null;\n readonly viewportElement: SVGElement | null;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGElement: {\n prototype: SVGElement;\n new(): SVGElement;\n};\n\n/** Provides access to the properties of <ellipse> elements. */\ninterface SVGEllipseElement extends SVGGeometryElement {\n readonly cx: SVGAnimatedLength;\n readonly cy: SVGAnimatedLength;\n readonly rx: SVGAnimatedLength;\n readonly ry: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGEllipseElement: {\n prototype: SVGEllipseElement;\n new(): SVGEllipseElement;\n};\n\n/** Corresponds to the <feBlend> element. */\ninterface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\n readonly mode: SVGAnimatedEnumeration;\n readonly SVG_FEBLEND_MODE_UNKNOWN: 0;\n readonly SVG_FEBLEND_MODE_NORMAL: 1;\n readonly SVG_FEBLEND_MODE_MULTIPLY: 2;\n readonly SVG_FEBLEND_MODE_SCREEN: 3;\n readonly SVG_FEBLEND_MODE_DARKEN: 4;\n readonly SVG_FEBLEND_MODE_LIGHTEN: 5;\n readonly SVG_FEBLEND_MODE_OVERLAY: 6;\n readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;\n readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;\n readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;\n readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;\n readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;\n readonly SVG_FEBLEND_MODE_EXCLUSION: 12;\n readonly SVG_FEBLEND_MODE_HUE: 13;\n readonly SVG_FEBLEND_MODE_SATURATION: 14;\n readonly SVG_FEBLEND_MODE_COLOR: 15;\n readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEBlendElement: {\n prototype: SVGFEBlendElement;\n new(): SVGFEBlendElement;\n readonly SVG_FEBLEND_MODE_UNKNOWN: 0;\n readonly SVG_FEBLEND_MODE_NORMAL: 1;\n readonly SVG_FEBLEND_MODE_MULTIPLY: 2;\n readonly SVG_FEBLEND_MODE_SCREEN: 3;\n readonly SVG_FEBLEND_MODE_DARKEN: 4;\n readonly SVG_FEBLEND_MODE_LIGHTEN: 5;\n readonly SVG_FEBLEND_MODE_OVERLAY: 6;\n readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;\n readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;\n readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;\n readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;\n readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;\n readonly SVG_FEBLEND_MODE_EXCLUSION: 12;\n readonly SVG_FEBLEND_MODE_HUE: 13;\n readonly SVG_FEBLEND_MODE_SATURATION: 14;\n readonly SVG_FEBLEND_MODE_COLOR: 15;\n readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;\n};\n\n/** Corresponds to the <feColorMatrix> element. */\ninterface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly type: SVGAnimatedEnumeration;\n readonly values: SVGAnimatedNumberList;\n readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;\n readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;\n readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;\n readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;\n readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEColorMatrixElement: {\n prototype: SVGFEColorMatrixElement;\n new(): SVGFEColorMatrixElement;\n readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;\n readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;\n readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;\n readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;\n readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;\n};\n\n/** Corresponds to the <feComponentTransfer> element. */\ninterface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEComponentTransferElement: {\n prototype: SVGFEComponentTransferElement;\n new(): SVGFEComponentTransferElement;\n};\n\n/** Corresponds to the <feComposite> element. */\ninterface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\n readonly k1: SVGAnimatedNumber;\n readonly k2: SVGAnimatedNumber;\n readonly k3: SVGAnimatedNumber;\n readonly k4: SVGAnimatedNumber;\n readonly operator: SVGAnimatedEnumeration;\n readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;\n readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;\n readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;\n readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;\n readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;\n readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;\n readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFECompositeElement: {\n prototype: SVGFECompositeElement;\n new(): SVGFECompositeElement;\n readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;\n readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;\n readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;\n readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;\n readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;\n readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;\n readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;\n};\n\n/** Corresponds to the <feConvolveMatrix> element. */\ninterface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly bias: SVGAnimatedNumber;\n readonly divisor: SVGAnimatedNumber;\n readonly edgeMode: SVGAnimatedEnumeration;\n readonly in1: SVGAnimatedString;\n readonly kernelMatrix: SVGAnimatedNumberList;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly orderX: SVGAnimatedInteger;\n readonly orderY: SVGAnimatedInteger;\n readonly preserveAlpha: SVGAnimatedBoolean;\n readonly targetX: SVGAnimatedInteger;\n readonly targetY: SVGAnimatedInteger;\n readonly SVG_EDGEMODE_UNKNOWN: 0;\n readonly SVG_EDGEMODE_DUPLICATE: 1;\n readonly SVG_EDGEMODE_WRAP: 2;\n readonly SVG_EDGEMODE_NONE: 3;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEConvolveMatrixElement: {\n prototype: SVGFEConvolveMatrixElement;\n new(): SVGFEConvolveMatrixElement;\n readonly SVG_EDGEMODE_UNKNOWN: 0;\n readonly SVG_EDGEMODE_DUPLICATE: 1;\n readonly SVG_EDGEMODE_WRAP: 2;\n readonly SVG_EDGEMODE_NONE: 3;\n};\n\n/** Corresponds to the <feDiffuseLighting> element. */\ninterface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly diffuseConstant: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly surfaceScale: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDiffuseLightingElement: {\n prototype: SVGFEDiffuseLightingElement;\n new(): SVGFEDiffuseLightingElement;\n};\n\n/** Corresponds to the <feDisplacementMap> element. */\ninterface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\n readonly scale: SVGAnimatedNumber;\n readonly xChannelSelector: SVGAnimatedEnumeration;\n readonly yChannelSelector: SVGAnimatedEnumeration;\n readonly SVG_CHANNEL_UNKNOWN: 0;\n readonly SVG_CHANNEL_R: 1;\n readonly SVG_CHANNEL_G: 2;\n readonly SVG_CHANNEL_B: 3;\n readonly SVG_CHANNEL_A: 4;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDisplacementMapElement: {\n prototype: SVGFEDisplacementMapElement;\n new(): SVGFEDisplacementMapElement;\n readonly SVG_CHANNEL_UNKNOWN: 0;\n readonly SVG_CHANNEL_R: 1;\n readonly SVG_CHANNEL_G: 2;\n readonly SVG_CHANNEL_B: 3;\n readonly SVG_CHANNEL_A: 4;\n};\n\n/** Corresponds to the <feDistantLight> element. */\ninterface SVGFEDistantLightElement extends SVGElement {\n readonly azimuth: SVGAnimatedNumber;\n readonly elevation: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDistantLightElement: {\n prototype: SVGFEDistantLightElement;\n new(): SVGFEDistantLightElement;\n};\n\ninterface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly dx: SVGAnimatedNumber;\n readonly dy: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n readonly stdDeviationX: SVGAnimatedNumber;\n readonly stdDeviationY: SVGAnimatedNumber;\n setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDropShadowElement: {\n prototype: SVGFEDropShadowElement;\n new(): SVGFEDropShadowElement;\n};\n\n/** Corresponds to the <feFlood> element. */\ninterface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFloodElement: {\n prototype: SVGFEFloodElement;\n new(): SVGFEFloodElement;\n};\n\n/** Corresponds to the <feFuncA> element. */\ninterface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncAElement: {\n prototype: SVGFEFuncAElement;\n new(): SVGFEFuncAElement;\n};\n\n/** Corresponds to the <feFuncB> element. */\ninterface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncBElement: {\n prototype: SVGFEFuncBElement;\n new(): SVGFEFuncBElement;\n};\n\n/** Corresponds to the <feFuncG> element. */\ninterface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncGElement: {\n prototype: SVGFEFuncGElement;\n new(): SVGFEFuncGElement;\n};\n\n/** Corresponds to the <feFuncR> element. */\ninterface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncRElement: {\n prototype: SVGFEFuncRElement;\n new(): SVGFEFuncRElement;\n};\n\n/** Corresponds to the <feGaussianBlur> element. */\ninterface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly stdDeviationX: SVGAnimatedNumber;\n readonly stdDeviationY: SVGAnimatedNumber;\n setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEGaussianBlurElement: {\n prototype: SVGFEGaussianBlurElement;\n new(): SVGFEGaussianBlurElement;\n};\n\n/** Corresponds to the <feImage> element. */\ninterface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEImageElement: {\n prototype: SVGFEImageElement;\n new(): SVGFEImageElement;\n};\n\n/** Corresponds to the <feMerge> element. */\ninterface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMergeElement: {\n prototype: SVGFEMergeElement;\n new(): SVGFEMergeElement;\n};\n\n/** Corresponds to the <feMergeNode> element. */\ninterface SVGFEMergeNodeElement extends SVGElement {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMergeNodeElement: {\n prototype: SVGFEMergeNodeElement;\n new(): SVGFEMergeNodeElement;\n};\n\n/** Corresponds to the <feMorphology> element. */\ninterface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly operator: SVGAnimatedEnumeration;\n readonly radiusX: SVGAnimatedNumber;\n readonly radiusY: SVGAnimatedNumber;\n readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;\n readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;\n readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMorphologyElement: {\n prototype: SVGFEMorphologyElement;\n new(): SVGFEMorphologyElement;\n readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;\n readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;\n readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;\n};\n\n/** Corresponds to the <feOffset> element. */\ninterface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly dx: SVGAnimatedNumber;\n readonly dy: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEOffsetElement: {\n prototype: SVGFEOffsetElement;\n new(): SVGFEOffsetElement;\n};\n\n/** Corresponds to the <fePointLight> element. */\ninterface SVGFEPointLightElement extends SVGElement {\n readonly x: SVGAnimatedNumber;\n readonly y: SVGAnimatedNumber;\n readonly z: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEPointLightElement: {\n prototype: SVGFEPointLightElement;\n new(): SVGFEPointLightElement;\n};\n\n/** Corresponds to the <feSpecularLighting> element. */\ninterface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly specularConstant: SVGAnimatedNumber;\n readonly specularExponent: SVGAnimatedNumber;\n readonly surfaceScale: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFESpecularLightingElement: {\n prototype: SVGFESpecularLightingElement;\n new(): SVGFESpecularLightingElement;\n};\n\n/** Corresponds to the <feSpotLight> element. */\ninterface SVGFESpotLightElement extends SVGElement {\n readonly limitingConeAngle: SVGAnimatedNumber;\n readonly pointsAtX: SVGAnimatedNumber;\n readonly pointsAtY: SVGAnimatedNumber;\n readonly pointsAtZ: SVGAnimatedNumber;\n readonly specularExponent: SVGAnimatedNumber;\n readonly x: SVGAnimatedNumber;\n readonly y: SVGAnimatedNumber;\n readonly z: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFESpotLightElement: {\n prototype: SVGFESpotLightElement;\n new(): SVGFESpotLightElement;\n};\n\n/** Corresponds to the <feTile> element. */\ninterface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFETileElement: {\n prototype: SVGFETileElement;\n new(): SVGFETileElement;\n};\n\n/** Corresponds to the <feTurbulence> element. */\ninterface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly baseFrequencyX: SVGAnimatedNumber;\n readonly baseFrequencyY: SVGAnimatedNumber;\n readonly numOctaves: SVGAnimatedInteger;\n readonly seed: SVGAnimatedNumber;\n readonly stitchTiles: SVGAnimatedEnumeration;\n readonly type: SVGAnimatedEnumeration;\n readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;\n readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;\n readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;\n readonly SVG_STITCHTYPE_UNKNOWN: 0;\n readonly SVG_STITCHTYPE_STITCH: 1;\n readonly SVG_STITCHTYPE_NOSTITCH: 2;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFETurbulenceElement: {\n prototype: SVGFETurbulenceElement;\n new(): SVGFETurbulenceElement;\n readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;\n readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;\n readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;\n readonly SVG_STITCHTYPE_UNKNOWN: 0;\n readonly SVG_STITCHTYPE_STITCH: 1;\n readonly SVG_STITCHTYPE_NOSTITCH: 2;\n};\n\n/** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */\ninterface SVGFilterElement extends SVGElement, SVGURIReference {\n readonly filterUnits: SVGAnimatedEnumeration;\n readonly height: SVGAnimatedLength;\n readonly primitiveUnits: SVGAnimatedEnumeration;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFilterElement: {\n prototype: SVGFilterElement;\n new(): SVGFilterElement;\n};\n\ninterface SVGFilterPrimitiveStandardAttributes {\n readonly height: SVGAnimatedLength;\n readonly result: SVGAnimatedString;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n}\n\ninterface SVGFitToViewBox {\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n readonly viewBox: SVGAnimatedRect;\n}\n\n/** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */\ninterface SVGForeignObjectElement extends SVGGraphicsElement {\n readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGForeignObjectElement: {\n prototype: SVGForeignObjectElement;\n new(): SVGForeignObjectElement;\n};\n\n/** Corresponds to the <g> element. */\ninterface SVGGElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGElement: {\n prototype: SVGGElement;\n new(): SVGGElement;\n};\n\ninterface SVGGeometryElement extends SVGGraphicsElement {\n readonly pathLength: SVGAnimatedNumber;\n getPointAtLength(distance: number): DOMPoint;\n getTotalLength(): number;\n isPointInFill(point?: DOMPointInit): boolean;\n isPointInStroke(point?: DOMPointInit): boolean;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGeometryElement: {\n prototype: SVGGeometryElement;\n new(): SVGGeometryElement;\n};\n\n/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */\ninterface SVGGradientElement extends SVGElement, SVGURIReference {\n readonly gradientTransform: SVGAnimatedTransformList;\n readonly gradientUnits: SVGAnimatedEnumeration;\n readonly spreadMethod: SVGAnimatedEnumeration;\n readonly SVG_SPREADMETHOD_UNKNOWN: 0;\n readonly SVG_SPREADMETHOD_PAD: 1;\n readonly SVG_SPREADMETHOD_REFLECT: 2;\n readonly SVG_SPREADMETHOD_REPEAT: 3;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGradientElement: {\n prototype: SVGGradientElement;\n new(): SVGGradientElement;\n readonly SVG_SPREADMETHOD_UNKNOWN: 0;\n readonly SVG_SPREADMETHOD_PAD: 1;\n readonly SVG_SPREADMETHOD_REFLECT: 2;\n readonly SVG_SPREADMETHOD_REPEAT: 3;\n};\n\n/** SVG elements whose primary purpose is to directly render graphics into a group. */\ninterface SVGGraphicsElement extends SVGElement, SVGTests {\n readonly transform: SVGAnimatedTransformList;\n getBBox(options?: SVGBoundingBoxOptions): DOMRect;\n getCTM(): DOMMatrix | null;\n getScreenCTM(): DOMMatrix | null;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGraphicsElement: {\n prototype: SVGGraphicsElement;\n new(): SVGGraphicsElement;\n};\n\n/** Corresponds to the <image> element. */\ninterface SVGImageElement extends SVGGraphicsElement, SVGURIReference {\n readonly height: SVGAnimatedLength;\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGImageElement: {\n prototype: SVGImageElement;\n new(): SVGImageElement;\n};\n\n/** Correspond to the <length> basic data type. */\ninterface SVGLength {\n readonly unitType: number;\n value: number;\n valueAsString: string;\n valueInSpecifiedUnits: number;\n convertToSpecifiedUnits(unitType: number): void;\n newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n readonly SVG_LENGTHTYPE_UNKNOWN: 0;\n readonly SVG_LENGTHTYPE_NUMBER: 1;\n readonly SVG_LENGTHTYPE_PERCENTAGE: 2;\n readonly SVG_LENGTHTYPE_EMS: 3;\n readonly SVG_LENGTHTYPE_EXS: 4;\n readonly SVG_LENGTHTYPE_PX: 5;\n readonly SVG_LENGTHTYPE_CM: 6;\n readonly SVG_LENGTHTYPE_MM: 7;\n readonly SVG_LENGTHTYPE_IN: 8;\n readonly SVG_LENGTHTYPE_PT: 9;\n readonly SVG_LENGTHTYPE_PC: 10;\n}\n\ndeclare var SVGLength: {\n prototype: SVGLength;\n new(): SVGLength;\n readonly SVG_LENGTHTYPE_UNKNOWN: 0;\n readonly SVG_LENGTHTYPE_NUMBER: 1;\n readonly SVG_LENGTHTYPE_PERCENTAGE: 2;\n readonly SVG_LENGTHTYPE_EMS: 3;\n readonly SVG_LENGTHTYPE_EXS: 4;\n readonly SVG_LENGTHTYPE_PX: 5;\n readonly SVG_LENGTHTYPE_CM: 6;\n readonly SVG_LENGTHTYPE_MM: 7;\n readonly SVG_LENGTHTYPE_IN: 8;\n readonly SVG_LENGTHTYPE_PT: 9;\n readonly SVG_LENGTHTYPE_PC: 10;\n};\n\n/** The SVGLengthList defines a list of SVGLength objects. */\ninterface SVGLengthList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGLength): SVGLength;\n clear(): void;\n getItem(index: number): SVGLength;\n initialize(newItem: SVGLength): SVGLength;\n insertItemBefore(newItem: SVGLength, index: number): SVGLength;\n removeItem(index: number): SVGLength;\n replaceItem(newItem: SVGLength, index: number): SVGLength;\n [index: number]: SVGLength;\n}\n\ndeclare var SVGLengthList: {\n prototype: SVGLengthList;\n new(): SVGLengthList;\n};\n\n/** Provides access to the properties of <line> elements, as well as methods to manipulate them. */\ninterface SVGLineElement extends SVGGeometryElement {\n readonly x1: SVGAnimatedLength;\n readonly x2: SVGAnimatedLength;\n readonly y1: SVGAnimatedLength;\n readonly y2: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGLineElement: {\n prototype: SVGLineElement;\n new(): SVGLineElement;\n};\n\n/** Corresponds to the <linearGradient> element. */\ninterface SVGLinearGradientElement extends SVGGradientElement {\n readonly x1: SVGAnimatedLength;\n readonly x2: SVGAnimatedLength;\n readonly y1: SVGAnimatedLength;\n readonly y2: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGLinearGradientElement: {\n prototype: SVGLinearGradientElement;\n new(): SVGLinearGradientElement;\n};\n\ninterface SVGMPathElement extends SVGElement, SVGURIReference {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMPathElement: {\n prototype: SVGMPathElement;\n new(): SVGMPathElement;\n};\n\ninterface SVGMarkerElement extends SVGElement, SVGFitToViewBox {\n readonly markerHeight: SVGAnimatedLength;\n readonly markerUnits: SVGAnimatedEnumeration;\n readonly markerWidth: SVGAnimatedLength;\n readonly orientAngle: SVGAnimatedAngle;\n readonly orientType: SVGAnimatedEnumeration;\n readonly refX: SVGAnimatedLength;\n readonly refY: SVGAnimatedLength;\n setOrientToAngle(angle: SVGAngle): void;\n setOrientToAuto(): void;\n readonly SVG_MARKERUNITS_UNKNOWN: 0;\n readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;\n readonly SVG_MARKERUNITS_STROKEWIDTH: 2;\n readonly SVG_MARKER_ORIENT_UNKNOWN: 0;\n readonly SVG_MARKER_ORIENT_AUTO: 1;\n readonly SVG_MARKER_ORIENT_ANGLE: 2;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMarkerElement: {\n prototype: SVGMarkerElement;\n new(): SVGMarkerElement;\n readonly SVG_MARKERUNITS_UNKNOWN: 0;\n readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;\n readonly SVG_MARKERUNITS_STROKEWIDTH: 2;\n readonly SVG_MARKER_ORIENT_UNKNOWN: 0;\n readonly SVG_MARKER_ORIENT_AUTO: 1;\n readonly SVG_MARKER_ORIENT_ANGLE: 2;\n};\n\n/** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */\ninterface SVGMaskElement extends SVGElement {\n readonly height: SVGAnimatedLength;\n readonly maskContentUnits: SVGAnimatedEnumeration;\n readonly maskUnits: SVGAnimatedEnumeration;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMaskElement: {\n prototype: SVGMaskElement;\n new(): SVGMaskElement;\n};\n\n/** Corresponds to the <metadata> element. */\ninterface SVGMetadataElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMetadataElement: {\n prototype: SVGMetadataElement;\n new(): SVGMetadataElement;\n};\n\n/** Corresponds to the <number> basic data type. */\ninterface SVGNumber {\n value: number;\n}\n\ndeclare var SVGNumber: {\n prototype: SVGNumber;\n new(): SVGNumber;\n};\n\n/** The SVGNumberList defines a list of SVGNumber objects. */\ninterface SVGNumberList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGNumber): SVGNumber;\n clear(): void;\n getItem(index: number): SVGNumber;\n initialize(newItem: SVGNumber): SVGNumber;\n insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;\n removeItem(index: number): SVGNumber;\n replaceItem(newItem: SVGNumber, index: number): SVGNumber;\n [index: number]: SVGNumber;\n}\n\ndeclare var SVGNumberList: {\n prototype: SVGNumberList;\n new(): SVGNumberList;\n};\n\n/** Corresponds to the <path> element. */\ninterface SVGPathElement extends SVGGeometryElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPathElement: {\n prototype: SVGPathElement;\n new(): SVGPathElement;\n};\n\n/** Corresponds to the <pattern> element. */\ninterface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {\n readonly height: SVGAnimatedLength;\n readonly patternContentUnits: SVGAnimatedEnumeration;\n readonly patternTransform: SVGAnimatedTransformList;\n readonly patternUnits: SVGAnimatedEnumeration;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPatternElement: {\n prototype: SVGPatternElement;\n new(): SVGPatternElement;\n};\n\ninterface SVGPointList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: DOMPoint): DOMPoint;\n clear(): void;\n getItem(index: number): DOMPoint;\n initialize(newItem: DOMPoint): DOMPoint;\n insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;\n removeItem(index: number): DOMPoint;\n replaceItem(newItem: DOMPoint, index: number): DOMPoint;\n [index: number]: DOMPoint;\n}\n\ndeclare var SVGPointList: {\n prototype: SVGPointList;\n new(): SVGPointList;\n};\n\n/** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */\ninterface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPolygonElement: {\n prototype: SVGPolygonElement;\n new(): SVGPolygonElement;\n};\n\n/** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */\ninterface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPolylineElement: {\n prototype: SVGPolylineElement;\n new(): SVGPolylineElement;\n};\n\n/** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG\'s elements. */\ninterface SVGPreserveAspectRatio {\n align: number;\n meetOrSlice: number;\n readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;\n readonly SVG_PRESERVEASPECTRATIO_NONE: 1;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;\n readonly SVG_MEETORSLICE_UNKNOWN: 0;\n readonly SVG_MEETORSLICE_MEET: 1;\n readonly SVG_MEETORSLICE_SLICE: 2;\n}\n\ndeclare var SVGPreserveAspectRatio: {\n prototype: SVGPreserveAspectRatio;\n new(): SVGPreserveAspectRatio;\n readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;\n readonly SVG_PRESERVEASPECTRATIO_NONE: 1;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;\n readonly SVG_MEETORSLICE_UNKNOWN: 0;\n readonly SVG_MEETORSLICE_MEET: 1;\n readonly SVG_MEETORSLICE_SLICE: 2;\n};\n\n/** Corresponds to the <RadialGradient> element. */\ninterface SVGRadialGradientElement extends SVGGradientElement {\n readonly cx: SVGAnimatedLength;\n readonly cy: SVGAnimatedLength;\n readonly fr: SVGAnimatedLength;\n readonly fx: SVGAnimatedLength;\n readonly fy: SVGAnimatedLength;\n readonly r: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGRadialGradientElement: {\n prototype: SVGRadialGradientElement;\n new(): SVGRadialGradientElement;\n};\n\n/** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */\ninterface SVGRectElement extends SVGGeometryElement {\n readonly height: SVGAnimatedLength;\n readonly rx: SVGAnimatedLength;\n readonly ry: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGRectElement: {\n prototype: SVGRectElement;\n new(): SVGRectElement;\n};\n\ninterface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {\n}\n\n/** Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. */\ninterface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {\n currentScale: number;\n readonly currentTranslate: DOMPointReadOnly;\n readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n animationsPaused(): boolean;\n checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;\n checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;\n createSVGAngle(): SVGAngle;\n createSVGLength(): SVGLength;\n createSVGMatrix(): DOMMatrix;\n createSVGNumber(): SVGNumber;\n createSVGPoint(): DOMPoint;\n createSVGRect(): DOMRect;\n createSVGTransform(): SVGTransform;\n createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;\n deselectAll(): void;\n /** @deprecated */\n forceRedraw(): void;\n getCurrentTime(): number;\n getElementById(elementId: string): Element;\n getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n pauseAnimations(): void;\n setCurrentTime(seconds: number): void;\n /** @deprecated */\n suspendRedraw(maxWaitMilliseconds: number): number;\n unpauseAnimations(): void;\n /** @deprecated */\n unsuspendRedraw(suspendHandleID: number): void;\n /** @deprecated */\n unsuspendRedrawAll(): void;\n addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSVGElement: {\n prototype: SVGSVGElement;\n new(): SVGSVGElement;\n};\n\n/** Corresponds to the SVG <script> element. */\ninterface SVGScriptElement extends SVGElement, SVGURIReference {\n type: string;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGScriptElement: {\n prototype: SVGScriptElement;\n new(): SVGScriptElement;\n};\n\ninterface SVGSetElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSetElement: {\n prototype: SVGSetElement;\n new(): SVGSetElement;\n};\n\n/** Corresponds to the <stop> element. */\ninterface SVGStopElement extends SVGElement {\n readonly offset: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGStopElement: {\n prototype: SVGStopElement;\n new(): SVGStopElement;\n};\n\n/** The SVGStringList defines a list of DOMString objects. */\ninterface SVGStringList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: string): string;\n clear(): void;\n getItem(index: number): string;\n initialize(newItem: string): string;\n insertItemBefore(newItem: string, index: number): string;\n removeItem(index: number): string;\n replaceItem(newItem: string, index: number): string;\n [index: number]: string;\n}\n\ndeclare var SVGStringList: {\n prototype: SVGStringList;\n new(): SVGStringList;\n};\n\n/** Corresponds to the SVG <style> element. */\ninterface SVGStyleElement extends SVGElement, LinkStyle {\n disabled: boolean;\n media: string;\n title: string;\n /** @deprecated */\n type: string;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGStyleElement: {\n prototype: SVGStyleElement;\n new(): SVGStyleElement;\n};\n\n/** Corresponds to the <switch> element. */\ninterface SVGSwitchElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSwitchElement: {\n prototype: SVGSwitchElement;\n new(): SVGSwitchElement;\n};\n\n/** Corresponds to the <symbol> element. */\ninterface SVGSymbolElement extends SVGElement, SVGFitToViewBox {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSymbolElement: {\n prototype: SVGSymbolElement;\n new(): SVGSymbolElement;\n};\n\n/** A <tspan> element. */\ninterface SVGTSpanElement extends SVGTextPositioningElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTSpanElement: {\n prototype: SVGTSpanElement;\n new(): SVGTSpanElement;\n};\n\ninterface SVGTests {\n readonly requiredExtensions: SVGStringList;\n readonly systemLanguage: SVGStringList;\n}\n\n/** Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement. */\ninterface SVGTextContentElement extends SVGGraphicsElement {\n readonly lengthAdjust: SVGAnimatedEnumeration;\n readonly textLength: SVGAnimatedLength;\n getCharNumAtPosition(point?: DOMPointInit): number;\n getComputedTextLength(): number;\n getEndPositionOfChar(charnum: number): DOMPoint;\n getExtentOfChar(charnum: number): DOMRect;\n getNumberOfChars(): number;\n getRotationOfChar(charnum: number): number;\n getStartPositionOfChar(charnum: number): DOMPoint;\n getSubStringLength(charnum: number, nchars: number): number;\n /** @deprecated */\n selectSubString(charnum: number, nchars: number): void;\n readonly LENGTHADJUST_UNKNOWN: 0;\n readonly LENGTHADJUST_SPACING: 1;\n readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextContentElement: {\n prototype: SVGTextContentElement;\n new(): SVGTextContentElement;\n readonly LENGTHADJUST_UNKNOWN: 0;\n readonly LENGTHADJUST_SPACING: 1;\n readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;\n};\n\n/** Corresponds to the <text> elements. */\ninterface SVGTextElement extends SVGTextPositioningElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextElement: {\n prototype: SVGTextElement;\n new(): SVGTextElement;\n};\n\n/** Corresponds to the <textPath> element. */\ninterface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {\n readonly method: SVGAnimatedEnumeration;\n readonly spacing: SVGAnimatedEnumeration;\n readonly startOffset: SVGAnimatedLength;\n readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;\n readonly TEXTPATH_METHODTYPE_ALIGN: 1;\n readonly TEXTPATH_METHODTYPE_STRETCH: 2;\n readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;\n readonly TEXTPATH_SPACINGTYPE_AUTO: 1;\n readonly TEXTPATH_SPACINGTYPE_EXACT: 2;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextPathElement: {\n prototype: SVGTextPathElement;\n new(): SVGTextPathElement;\n readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;\n readonly TEXTPATH_METHODTYPE_ALIGN: 1;\n readonly TEXTPATH_METHODTYPE_STRETCH: 2;\n readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;\n readonly TEXTPATH_SPACINGTYPE_AUTO: 1;\n readonly TEXTPATH_SPACINGTYPE_EXACT: 2;\n};\n\n/** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */\ninterface SVGTextPositioningElement extends SVGTextContentElement {\n readonly dx: SVGAnimatedLengthList;\n readonly dy: SVGAnimatedLengthList;\n readonly rotate: SVGAnimatedNumberList;\n readonly x: SVGAnimatedLengthList;\n readonly y: SVGAnimatedLengthList;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextPositioningElement: {\n prototype: SVGTextPositioningElement;\n new(): SVGTextPositioningElement;\n};\n\n/** Corresponds to the <title> element. */\ninterface SVGTitleElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTitleElement: {\n prototype: SVGTitleElement;\n new(): SVGTitleElement;\n};\n\n/** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(\u2026) or matrix(\u2026)) within a transform attribute. */\ninterface SVGTransform {\n readonly angle: number;\n readonly matrix: DOMMatrix;\n readonly type: number;\n setMatrix(matrix?: DOMMatrix2DInit): void;\n setRotate(angle: number, cx: number, cy: number): void;\n setScale(sx: number, sy: number): void;\n setSkewX(angle: number): void;\n setSkewY(angle: number): void;\n setTranslate(tx: number, ty: number): void;\n readonly SVG_TRANSFORM_UNKNOWN: 0;\n readonly SVG_TRANSFORM_MATRIX: 1;\n readonly SVG_TRANSFORM_TRANSLATE: 2;\n readonly SVG_TRANSFORM_SCALE: 3;\n readonly SVG_TRANSFORM_ROTATE: 4;\n readonly SVG_TRANSFORM_SKEWX: 5;\n readonly SVG_TRANSFORM_SKEWY: 6;\n}\n\ndeclare var SVGTransform: {\n prototype: SVGTransform;\n new(): SVGTransform;\n readonly SVG_TRANSFORM_UNKNOWN: 0;\n readonly SVG_TRANSFORM_MATRIX: 1;\n readonly SVG_TRANSFORM_TRANSLATE: 2;\n readonly SVG_TRANSFORM_SCALE: 3;\n readonly SVG_TRANSFORM_ROTATE: 4;\n readonly SVG_TRANSFORM_SKEWX: 5;\n readonly SVG_TRANSFORM_SKEWY: 6;\n};\n\n/** The SVGTransformList defines a list of SVGTransform objects. */\ninterface SVGTransformList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGTransform): SVGTransform;\n clear(): void;\n consolidate(): SVGTransform | null;\n createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;\n getItem(index: number): SVGTransform;\n initialize(newItem: SVGTransform): SVGTransform;\n insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;\n removeItem(index: number): SVGTransform;\n replaceItem(newItem: SVGTransform, index: number): SVGTransform;\n [index: number]: SVGTransform;\n}\n\ndeclare var SVGTransformList: {\n prototype: SVGTransformList;\n new(): SVGTransformList;\n};\n\ninterface SVGURIReference {\n readonly href: SVGAnimatedString;\n}\n\n/** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */\ninterface SVGUnitTypes {\n readonly SVG_UNIT_TYPE_UNKNOWN: 0;\n readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;\n readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;\n}\n\ndeclare var SVGUnitTypes: {\n prototype: SVGUnitTypes;\n new(): SVGUnitTypes;\n readonly SVG_UNIT_TYPE_UNKNOWN: 0;\n readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;\n readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;\n};\n\n/** Corresponds to the <use> element. */\ninterface SVGUseElement extends SVGGraphicsElement, SVGURIReference {\n readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGUseElement: {\n prototype: SVGUseElement;\n new(): SVGUseElement;\n};\n\n/** Provides access to the properties of <view> elements, as well as methods to manipulate them. */\ninterface SVGViewElement extends SVGElement, SVGFitToViewBox {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGViewElement: {\n prototype: SVGViewElement;\n new(): SVGViewElement;\n};\n\n/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */\ninterface Screen {\n readonly availHeight: number;\n readonly availWidth: number;\n readonly colorDepth: number;\n readonly height: number;\n readonly orientation: ScreenOrientation;\n readonly pixelDepth: number;\n readonly width: number;\n}\n\ndeclare var Screen: {\n prototype: Screen;\n new(): Screen;\n};\n\ninterface ScreenOrientationEventMap {\n "change": Event;\n}\n\ninterface ScreenOrientation extends EventTarget {\n readonly angle: number;\n onchange: ((this: ScreenOrientation, ev: Event) => any) | null;\n readonly type: OrientationType;\n lock(orientation: OrientationLockType): Promise<void>;\n unlock(): void;\n addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ScreenOrientation: {\n prototype: ScreenOrientation;\n new(): ScreenOrientation;\n};\n\ninterface ScriptProcessorNodeEventMap {\n "audioprocess": AudioProcessingEvent;\n}\n\n/**\n * Allows the generation, processing, or analyzing of audio using JavaScript.\n * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).\n */\ninterface ScriptProcessorNode extends AudioNode {\n /** @deprecated */\n readonly bufferSize: number;\n /** @deprecated */\n onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;\n addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var ScriptProcessorNode: {\n prototype: ScriptProcessorNode;\n new(): ScriptProcessorNode;\n};\n\n/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */\ninterface SecurityPolicyViolationEvent extends Event {\n readonly blockedURI: string;\n readonly columnNumber: number;\n readonly disposition: SecurityPolicyViolationEventDisposition;\n readonly documentURI: string;\n readonly effectiveDirective: string;\n readonly lineNumber: number;\n readonly originalPolicy: string;\n readonly referrer: string;\n readonly sample: string;\n readonly sourceFile: string;\n readonly statusCode: number;\n readonly violatedDirective: string;\n}\n\ndeclare var SecurityPolicyViolationEvent: {\n prototype: SecurityPolicyViolationEvent;\n new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;\n};\n\n/** A Selection object\xa0represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or\xa0modification, call Window.getSelection(). */\ninterface Selection {\n readonly anchorNode: Node | null;\n readonly anchorOffset: number;\n readonly focusNode: Node | null;\n readonly focusOffset: number;\n readonly isCollapsed: boolean;\n readonly rangeCount: number;\n readonly type: string;\n addRange(range: Range): void;\n collapse(node: Node | null, offset?: number): void;\n collapseToEnd(): void;\n collapseToStart(): void;\n containsNode(node: Node, allowPartialContainment?: boolean): boolean;\n deleteFromDocument(): void;\n empty(): void;\n extend(node: Node, offset?: number): void;\n getRangeAt(index: number): Range;\n modify(alter?: string, direction?: string, granularity?: string): void;\n removeAllRanges(): void;\n removeRange(range: Range): void;\n selectAllChildren(node: Node): void;\n setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;\n setPosition(node: Node | null, offset?: number): void;\n toString(): string;\n}\n\ndeclare var Selection: {\n prototype: Selection;\n new(): Selection;\n toString(): string;\n};\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n "statechange": Event;\n}\n\n/**\n * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.\n * Available only in secure contexts.\n */\ninterface ServiceWorker extends EventTarget, AbstractWorker {\n onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;\n readonly scriptURL: string;\n readonly state: ServiceWorkerState;\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorker: {\n prototype: ServiceWorker;\n new(): ServiceWorker;\n};\n\ninterface ServiceWorkerContainerEventMap {\n "controllerchange": Event;\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * The\xa0ServiceWorkerContainer\xa0interface of the\xa0ServiceWorker API\xa0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.\n * Available only in secure contexts.\n */\ninterface ServiceWorkerContainer extends EventTarget {\n readonly controller: ServiceWorker | null;\n oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n readonly ready: Promise<ServiceWorkerRegistration>;\n getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;\n getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n startMessages(): void;\n addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerContainer: {\n prototype: ServiceWorkerContainer;\n new(): ServiceWorkerContainer;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n "updatefound": Event;\n}\n\n/**\n * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.\n * Available only in secure contexts.\n */\ninterface ServiceWorkerRegistration extends EventTarget {\n readonly active: ServiceWorker | null;\n readonly installing: ServiceWorker | null;\n readonly navigationPreload: NavigationPreloadManager;\n onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;\n readonly pushManager: PushManager;\n readonly scope: string;\n readonly updateViaCache: ServiceWorkerUpdateViaCache;\n readonly waiting: ServiceWorker | null;\n getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n showNotification(title: string, options?: NotificationOptions): Promise<void>;\n unregister(): Promise<boolean>;\n update(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerRegistration: {\n prototype: ServiceWorkerRegistration;\n new(): ServiceWorkerRegistration;\n};\n\ninterface ShadowRootEventMap {\n "slotchange": Event;\n}\n\ninterface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {\n readonly delegatesFocus: boolean;\n readonly host: Element;\n readonly mode: ShadowRootMode;\n onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;\n readonly slotAssignment: SlotAssignmentMode;\n /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */\n addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ShadowRoot: {\n prototype: ShadowRoot;\n new(): ShadowRoot;\n};\n\ninterface SharedWorker extends EventTarget, AbstractWorker {\n /** Returns sharedWorker\'s MessagePort object which can be used to communicate with the global environment. */\n readonly port: MessagePort;\n addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SharedWorker: {\n prototype: SharedWorker;\n new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;\n};\n\ninterface Slottable {\n readonly assignedSlot: HTMLSlotElement | null;\n}\n\ninterface SourceBufferEventMap {\n "abort": Event;\n "error": Event;\n "update": Event;\n "updateend": Event;\n "updatestart": Event;\n}\n\n/** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource\xa0object. This can be made up of one or several media segments. */\ninterface SourceBuffer extends EventTarget {\n appendWindowEnd: number;\n appendWindowStart: number;\n readonly buffered: TimeRanges;\n mode: AppendMode;\n onabort: ((this: SourceBuffer, ev: Event) => any) | null;\n onerror: ((this: SourceBuffer, ev: Event) => any) | null;\n onupdate: ((this: SourceBuffer, ev: Event) => any) | null;\n onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;\n onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;\n timestampOffset: number;\n readonly updating: boolean;\n abort(): void;\n appendBuffer(data: BufferSource): void;\n changeType(type: string): void;\n remove(start: number, end: number): void;\n addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SourceBuffer: {\n prototype: SourceBuffer;\n new(): SourceBuffer;\n};\n\ninterface SourceBufferListEventMap {\n "addsourcebuffer": Event;\n "removesourcebuffer": Event;\n}\n\n/** A simple container list for multiple SourceBuffer objects. */\ninterface SourceBufferList extends EventTarget {\n readonly length: number;\n onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: SourceBuffer;\n}\n\ndeclare var SourceBufferList: {\n prototype: SourceBufferList;\n new(): SourceBufferList;\n};\n\ninterface SpeechRecognitionAlternative {\n readonly confidence: number;\n readonly transcript: string;\n}\n\ndeclare var SpeechRecognitionAlternative: {\n prototype: SpeechRecognitionAlternative;\n new(): SpeechRecognitionAlternative;\n};\n\ninterface SpeechRecognitionResult {\n readonly isFinal: boolean;\n readonly length: number;\n item(index: number): SpeechRecognitionAlternative;\n [index: number]: SpeechRecognitionAlternative;\n}\n\ndeclare var SpeechRecognitionResult: {\n prototype: SpeechRecognitionResult;\n new(): SpeechRecognitionResult;\n};\n\ninterface SpeechRecognitionResultList {\n readonly length: number;\n item(index: number): SpeechRecognitionResult;\n [index: number]: SpeechRecognitionResult;\n}\n\ndeclare var SpeechRecognitionResultList: {\n prototype: SpeechRecognitionResultList;\n new(): SpeechRecognitionResultList;\n};\n\ninterface SpeechSynthesisEventMap {\n "voiceschanged": Event;\n}\n\n/** This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides. */\ninterface SpeechSynthesis extends EventTarget {\n onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;\n readonly paused: boolean;\n readonly pending: boolean;\n readonly speaking: boolean;\n cancel(): void;\n getVoices(): SpeechSynthesisVoice[];\n pause(): void;\n resume(): void;\n speak(utterance: SpeechSynthesisUtterance): void;\n addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SpeechSynthesis: {\n prototype: SpeechSynthesis;\n new(): SpeechSynthesis;\n};\n\ninterface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {\n readonly error: SpeechSynthesisErrorCode;\n}\n\ndeclare var SpeechSynthesisErrorEvent: {\n prototype: SpeechSynthesisErrorEvent;\n new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;\n};\n\n/** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */\ninterface SpeechSynthesisEvent extends Event {\n readonly charIndex: number;\n readonly charLength: number;\n readonly elapsedTime: number;\n readonly name: string;\n readonly utterance: SpeechSynthesisUtterance;\n}\n\ndeclare var SpeechSynthesisEvent: {\n prototype: SpeechSynthesisEvent;\n new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;\n};\n\ninterface SpeechSynthesisUtteranceEventMap {\n "boundary": SpeechSynthesisEvent;\n "end": SpeechSynthesisEvent;\n "error": SpeechSynthesisErrorEvent;\n "mark": SpeechSynthesisEvent;\n "pause": SpeechSynthesisEvent;\n "resume": SpeechSynthesisEvent;\n "start": SpeechSynthesisEvent;\n}\n\n/** This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.) */\ninterface SpeechSynthesisUtterance extends EventTarget {\n lang: string;\n onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;\n onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n pitch: number;\n rate: number;\n text: string;\n voice: SpeechSynthesisVoice | null;\n volume: number;\n addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SpeechSynthesisUtterance: {\n prototype: SpeechSynthesisUtterance;\n new(text?: string): SpeechSynthesisUtterance;\n};\n\n/** This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI. */\ninterface SpeechSynthesisVoice {\n readonly default: boolean;\n readonly lang: string;\n readonly localService: boolean;\n readonly name: string;\n readonly voiceURI: string;\n}\n\ndeclare var SpeechSynthesisVoice: {\n prototype: SpeechSynthesisVoice;\n new(): SpeechSynthesisVoice;\n};\n\ninterface StaticRange extends AbstractRange {\n}\n\ndeclare var StaticRange: {\n prototype: StaticRange;\n new(init: StaticRangeInit): StaticRange;\n};\n\n/** The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode. */\ninterface StereoPannerNode extends AudioNode {\n readonly pan: AudioParam;\n}\n\ndeclare var StereoPannerNode: {\n prototype: StereoPannerNode;\n new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;\n};\n\n/** This Web Storage API interface provides access to a particular domain\'s session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. */\ninterface Storage {\n /** Returns the number of key/value pairs. */\n readonly length: number;\n /**\n * Removes all key/value pairs, if there are any.\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\n */\n clear(): void;\n /** Returns the current value associated with the given key, or null if the given key does not exist. */\n getItem(key: string): string | null;\n /** Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. */\n key(index: number): string | null;\n /**\n * Removes the key/value pair with the given key, if a key/value pair with the given key exists.\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\n */\n removeItem(key: string): void;\n /**\n * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.\n *\n * Throws a "QuotaExceededError" DOMException exception if the new value couldn\'t be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\n */\n setItem(key: string, value: string): void;\n [name: string]: any;\n}\n\ndeclare var Storage: {\n prototype: Storage;\n new(): Storage;\n};\n\n/** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */\ninterface StorageEvent extends Event {\n /** Returns the key of the storage item being changed. */\n readonly key: string | null;\n /** Returns the new value of the key of the storage item whose value is being changed. */\n readonly newValue: string | null;\n /** Returns the old value of the key of the storage item whose value is being changed. */\n readonly oldValue: string | null;\n /** Returns the Storage object that was affected. */\n readonly storageArea: Storage | null;\n /** Returns the URL of the document whose storage item changed. */\n readonly url: string;\n /** @deprecated */\n initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;\n}\n\ndeclare var StorageEvent: {\n prototype: StorageEvent;\n new(type: string, eventInitDict?: StorageEventInit): StorageEvent;\n};\n\n/** Available only in secure contexts. */\ninterface StorageManager {\n estimate(): Promise<StorageEstimate>;\n getDirectory(): Promise<FileSystemDirectoryHandle>;\n persist(): Promise<boolean>;\n persisted(): Promise<boolean>;\n}\n\ndeclare var StorageManager: {\n prototype: StorageManager;\n new(): StorageManager;\n};\n\n/** @deprecated */\ninterface StyleMedia {\n type: string;\n matchMedium(mediaquery: string): boolean;\n}\n\n/** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */\ninterface StyleSheet {\n disabled: boolean;\n readonly href: string | null;\n readonly media: MediaList;\n readonly ownerNode: Element | ProcessingInstruction | null;\n readonly parentStyleSheet: CSSStyleSheet | null;\n readonly title: string | null;\n readonly type: string;\n}\n\ndeclare var StyleSheet: {\n prototype: StyleSheet;\n new(): StyleSheet;\n};\n\n/** A list of StyleSheet. */\ninterface StyleSheetList {\n readonly length: number;\n item(index: number): CSSStyleSheet | null;\n [index: number]: CSSStyleSheet;\n}\n\ndeclare var StyleSheetList: {\n prototype: StyleSheetList;\n new(): StyleSheetList;\n};\n\ninterface SubmitEvent extends Event {\n /** Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button. */\n readonly submitter: HTMLElement | null;\n}\n\ndeclare var SubmitEvent: {\n prototype: SubmitEvent;\n new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;\n};\n\n/**\n * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).\n * Available only in secure contexts.\n */\ninterface SubtleCrypto {\n decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;\n encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;\n exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;\n wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n prototype: SubtleCrypto;\n new(): SubtleCrypto;\n};\n\n/** The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element\'s text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. */\ninterface Text extends CharacterData, Slottable {\n /** Returns the combined data of all direct Text node siblings. */\n readonly wholeText: string;\n /** Splits data at the given offset and returns the remainder as Text node. */\n splitText(offset: number): Text;\n}\n\ndeclare var Text: {\n prototype: Text;\n new(data?: string): Text;\n};\n\n/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xa0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */\ninterface TextDecoder extends TextDecoderCommon {\n /**\n * Returns the result of running encoding\'s decoder. The method can be invoked zero or more times with options\'s stream set to true, and then once without options\'s stream (or set to false), to process a fragmented input. If the invocation without options\'s stream (or set to false) has no input, it\'s clearest to omit both arguments.\n *\n * ```\n * var string = "", decoder = new TextDecoder(encoding), buffer;\n * while(buffer = next_chunk()) {\n * string += decoder.decode(buffer, {stream:true});\n * }\n * string += decoder.decode(); // end-of-queue\n * ```\n *\n * If the error mode is "fatal" and encoding\'s decoder returns error, throws a TypeError.\n */\n decode(input?: BufferSource, options?: TextDecodeOptions): string;\n}\n\ndeclare var TextDecoder: {\n prototype: TextDecoder;\n new(label?: string, options?: TextDecoderOptions): TextDecoder;\n};\n\ninterface TextDecoderCommon {\n /** Returns encoding\'s name, lowercased. */\n readonly encoding: string;\n /** Returns true if error mode is "fatal", otherwise false. */\n readonly fatal: boolean;\n /** Returns the value of ignore BOM. */\n readonly ignoreBOM: boolean;\n}\n\ninterface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {\n readonly readable: ReadableStream<string>;\n readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var TextDecoderStream: {\n prototype: TextDecoderStream;\n new(label?: string, options?: TextDecoderOptions): TextDecoderStream;\n};\n\n/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */\ninterface TextEncoder extends TextEncoderCommon {\n /** Returns the result of running UTF-8\'s encoder. */\n encode(input?: string): Uint8Array;\n /** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */\n encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n prototype: TextEncoder;\n new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n /** Returns "utf-8". */\n readonly encoding: string;\n}\n\ninterface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {\n readonly readable: ReadableStream<Uint8Array>;\n readonly writable: WritableStream<string>;\n}\n\ndeclare var TextEncoderStream: {\n prototype: TextEncoderStream;\n new(): TextEncoderStream;\n};\n\n/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */\ninterface TextMetrics {\n /** Returns the measurement described below. */\n readonly actualBoundingBoxAscent: number;\n /** Returns the measurement described below. */\n readonly actualBoundingBoxDescent: number;\n /** Returns the measurement described below. */\n readonly actualBoundingBoxLeft: number;\n /** Returns the measurement described below. */\n readonly actualBoundingBoxRight: number;\n /** Returns the measurement described below. */\n readonly fontBoundingBoxAscent: number;\n /** Returns the measurement described below. */\n readonly fontBoundingBoxDescent: number;\n /** Returns the measurement described below. */\n readonly width: number;\n}\n\ndeclare var TextMetrics: {\n prototype: TextMetrics;\n new(): TextMetrics;\n};\n\ninterface TextTrackEventMap {\n "cuechange": Event;\n}\n\n/** This interface also inherits properties from EventTarget. */\ninterface TextTrack extends EventTarget {\n /** Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object. */\n readonly activeCues: TextTrackCueList | null;\n /** Returns the text track list of cues, as a TextTrackCueList object. */\n readonly cues: TextTrackCueList | null;\n /**\n * Returns the ID of the given track.\n *\n * For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method.\n *\n * For TextTrack objects corresponding to track elements, this is the ID of the track element.\n */\n readonly id: string;\n /** Returns the text track in-band metadata track dispatch type string. */\n readonly inBandMetadataTrackDispatchType: string;\n /** Returns the text track kind string. */\n readonly kind: TextTrackKind;\n /** Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user). */\n readonly label: string;\n /** Returns the text track language string. */\n readonly language: string;\n /**\n * Returns the text track mode, represented by a string from the following list:\n *\n * Can be set, to change the mode.\n */\n mode: TextTrackMode;\n oncuechange: ((this: TextTrack, ev: Event) => any) | null;\n /** Adds the given cue to textTrack\'s text track list of cues. */\n addCue(cue: TextTrackCue): void;\n /** Removes the given cue from textTrack\'s text track list of cues. */\n removeCue(cue: TextTrackCue): void;\n addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var TextTrack: {\n prototype: TextTrack;\n new(): TextTrack;\n};\n\ninterface TextTrackCueEventMap {\n "enter": Event;\n "exit": Event;\n}\n\n/** TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used. */\ninterface TextTrackCue extends EventTarget {\n /**\n * Returns the text track cue end time, in seconds.\n *\n * Can be set.\n */\n endTime: number;\n /**\n * Returns the text track cue identifier.\n *\n * Can be set.\n */\n id: string;\n onenter: ((this: TextTrackCue, ev: Event) => any) | null;\n onexit: ((this: TextTrackCue, ev: Event) => any) | null;\n /**\n * Returns true if the text track cue pause-on-exit flag is set, false otherwise.\n *\n * Can be set.\n */\n pauseOnExit: boolean;\n /**\n * Returns the text track cue start time, in seconds.\n *\n * Can be set.\n */\n startTime: number;\n /** Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise. */\n readonly track: TextTrack | null;\n addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var TextTrackCue: {\n prototype: TextTrackCue;\n new(): TextTrackCue;\n};\n\ninterface TextTrackCueList {\n /** Returns the number of cues in the list. */\n readonly length: number;\n /**\n * Returns the first text track cue (in text track cue order) with text track cue identifier id.\n *\n * Returns null if none of the cues have the given identifier or if the argument is the empty string.\n */\n getCueById(id: string): TextTrackCue | null;\n [index: number]: TextTrackCue;\n}\n\ndeclare var TextTrackCueList: {\n prototype: TextTrackCueList;\n new(): TextTrackCueList;\n};\n\ninterface TextTrackListEventMap {\n "addtrack": TrackEvent;\n "change": Event;\n "removetrack": TrackEvent;\n}\n\ninterface TextTrackList extends EventTarget {\n readonly length: number;\n onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n onchange: ((this: TextTrackList, ev: Event) => any) | null;\n onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n getTrackById(id: string): TextTrack | null;\n addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: TextTrack;\n}\n\ndeclare var TextTrackList: {\n prototype: TextTrackList;\n new(): TextTrackList;\n};\n\n/** Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video>\xa0elements. */\ninterface TimeRanges {\n /** Returns the number of ranges in the object. */\n readonly length: number;\n /**\n * Returns the time for the end of the range with the given index.\n *\n * Throws an "IndexSizeError" DOMException if the index is out of range.\n */\n end(index: number): number;\n /**\n * Returns the time for the start of the range with the given index.\n *\n * Throws an "IndexSizeError" DOMException if the index is out of range.\n */\n start(index: number): number;\n}\n\ndeclare var TimeRanges: {\n prototype: TimeRanges;\n new(): TimeRanges;\n};\n\n/** A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. */\ninterface Touch {\n readonly clientX: number;\n readonly clientY: number;\n readonly force: number;\n readonly identifier: number;\n readonly pageX: number;\n readonly pageY: number;\n readonly radiusX: number;\n readonly radiusY: number;\n readonly rotationAngle: number;\n readonly screenX: number;\n readonly screenY: number;\n readonly target: EventTarget;\n}\n\ndeclare var Touch: {\n prototype: Touch;\n new(touchInitDict: TouchInit): Touch;\n};\n\n/** An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth. */\ninterface TouchEvent extends UIEvent {\n readonly altKey: boolean;\n readonly changedTouches: TouchList;\n readonly ctrlKey: boolean;\n readonly metaKey: boolean;\n readonly shiftKey: boolean;\n readonly targetTouches: TouchList;\n readonly touches: TouchList;\n}\n\ndeclare var TouchEvent: {\n prototype: TouchEvent;\n new(type: string, eventInitDict?: TouchEventInit): TouchEvent;\n};\n\n/** A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries. */\ninterface TouchList {\n readonly length: number;\n item(index: number): Touch | null;\n [index: number]: Touch;\n}\n\ndeclare var TouchList: {\n prototype: TouchList;\n new(): TouchList;\n};\n\n/** The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack. */\ninterface TrackEvent extends Event {\n /** Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates. */\n readonly track: TextTrack | null;\n}\n\ndeclare var TrackEvent: {\n prototype: TrackEvent;\n new(type: string, eventInitDict?: TrackEventInit): TrackEvent;\n};\n\ninterface TransformStream<I = any, O = any> {\n readonly readable: ReadableStream<O>;\n readonly writable: WritableStream<I>;\n}\n\ndeclare var TransformStream: {\n prototype: TransformStream;\n new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;\n};\n\ninterface TransformStreamDefaultController<O = any> {\n readonly desiredSize: number | null;\n enqueue(chunk?: O): void;\n error(reason?: any): void;\n terminate(): void;\n}\n\ndeclare var TransformStreamDefaultController: {\n prototype: TransformStreamDefaultController;\n new(): TransformStreamDefaultController;\n};\n\n/** Events providing information related to transitions. */\ninterface TransitionEvent extends Event {\n readonly elapsedTime: number;\n readonly propertyName: string;\n readonly pseudoElement: string;\n}\n\ndeclare var TransitionEvent: {\n prototype: TransitionEvent;\n new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;\n};\n\n/** The nodes of a document subtree and a position within them. */\ninterface TreeWalker {\n currentNode: Node;\n readonly filter: NodeFilter | null;\n readonly root: Node;\n readonly whatToShow: number;\n firstChild(): Node | null;\n lastChild(): Node | null;\n nextNode(): Node | null;\n nextSibling(): Node | null;\n parentNode(): Node | null;\n previousNode(): Node | null;\n previousSibling(): Node | null;\n}\n\ndeclare var TreeWalker: {\n prototype: TreeWalker;\n new(): TreeWalker;\n};\n\n/** Simple user interface events. */\ninterface UIEvent extends Event {\n readonly detail: number;\n readonly view: Window | null;\n /** @deprecated */\n readonly which: number;\n /** @deprecated */\n initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;\n}\n\ndeclare var UIEvent: {\n prototype: UIEvent;\n new(type: string, eventInitDict?: UIEventInit): UIEvent;\n};\n\n/** The URL\xa0interface represents an object providing static methods used for creating object URLs. */\ninterface URL {\n hash: string;\n host: string;\n hostname: string;\n href: string;\n toString(): string;\n readonly origin: string;\n password: string;\n pathname: string;\n port: string;\n protocol: string;\n search: string;\n readonly searchParams: URLSearchParams;\n username: string;\n toJSON(): string;\n}\n\ndeclare var URL: {\n prototype: URL;\n new(url: string | URL, base?: string | URL): URL;\n createObjectURL(obj: Blob | MediaSource): string;\n revokeObjectURL(url: string): void;\n};\n\ntype webkitURL = URL;\ndeclare var webkitURL: typeof URL;\n\ninterface URLSearchParams {\n /** Appends a specified key/value pair as a new search parameter. */\n append(name: string, value: string): void;\n /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */\n delete(name: string): void;\n /** Returns the first value associated to the given search parameter. */\n get(name: string): string | null;\n /** Returns all the values association with a given search parameter. */\n getAll(name: string): string[];\n /** Returns a Boolean indicating if such a search parameter exists. */\n has(name: string): boolean;\n /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */\n set(name: string, value: string): void;\n sort(): void;\n /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */\n toString(): string;\n forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;\n}\n\ndeclare var URLSearchParams: {\n prototype: URLSearchParams;\n new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;\n toString(): string;\n};\n\ninterface VTTCue extends TextTrackCue {\n align: AlignSetting;\n line: LineAndPositionSetting;\n lineAlign: LineAlignSetting;\n position: LineAndPositionSetting;\n positionAlign: PositionAlignSetting;\n region: VTTRegion | null;\n size: number;\n snapToLines: boolean;\n text: string;\n vertical: DirectionSetting;\n getCueAsHTML(): DocumentFragment;\n addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VTTCue: {\n prototype: VTTCue;\n new(startTime: number, endTime: number, text: string): VTTCue;\n};\n\ninterface VTTRegion {\n id: string;\n lines: number;\n regionAnchorX: number;\n regionAnchorY: number;\n scroll: ScrollSetting;\n viewportAnchorX: number;\n viewportAnchorY: number;\n width: number;\n}\n\ndeclare var VTTRegion: {\n prototype: VTTRegion;\n new(): VTTRegion;\n};\n\n/** The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element\'s value fails to validate, if it\'s not valid. */\ninterface ValidityState {\n readonly badInput: boolean;\n readonly customError: boolean;\n readonly patternMismatch: boolean;\n readonly rangeOverflow: boolean;\n readonly rangeUnderflow: boolean;\n readonly stepMismatch: boolean;\n readonly tooLong: boolean;\n readonly tooShort: boolean;\n readonly typeMismatch: boolean;\n readonly valid: boolean;\n readonly valueMissing: boolean;\n}\n\ndeclare var ValidityState: {\n prototype: ValidityState;\n new(): ValidityState;\n};\n\ninterface VideoColorSpace {\n readonly fullRange: boolean | null;\n readonly matrix: VideoMatrixCoefficients | null;\n readonly primaries: VideoColorPrimaries | null;\n readonly transfer: VideoTransferCharacteristics | null;\n toJSON(): VideoColorSpaceInit;\n}\n\ndeclare var VideoColorSpace: {\n prototype: VideoColorSpace;\n new(init?: VideoColorSpaceInit): VideoColorSpace;\n};\n\n/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */\ninterface VideoPlaybackQuality {\n /** @deprecated */\n readonly corruptedVideoFrames: number;\n readonly creationTime: DOMHighResTimeStamp;\n readonly droppedVideoFrames: number;\n readonly totalVideoFrames: number;\n}\n\ndeclare var VideoPlaybackQuality: {\n prototype: VideoPlaybackQuality;\n new(): VideoPlaybackQuality;\n};\n\ninterface VisualViewportEventMap {\n "resize": Event;\n "scroll": Event;\n}\n\ninterface VisualViewport extends EventTarget {\n readonly height: number;\n readonly offsetLeft: number;\n readonly offsetTop: number;\n onresize: ((this: VisualViewport, ev: Event) => any) | null;\n onscroll: ((this: VisualViewport, ev: Event) => any) | null;\n readonly pageLeft: number;\n readonly pageTop: number;\n readonly scale: number;\n readonly width: number;\n addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VisualViewport: {\n prototype: VisualViewport;\n new(): VisualViewport;\n};\n\ninterface WEBGL_color_buffer_float {\n readonly RGBA32F_EXT: 0x8814;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\ninterface WEBGL_compressed_texture_astc {\n getSupportedProfiles(): string[];\n readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;\n readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;\n readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;\n readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;\n readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;\n readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;\n readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;\n readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;\n readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;\n readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;\n readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;\n readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;\n readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;\n readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;\n}\n\ninterface WEBGL_compressed_texture_etc {\n readonly COMPRESSED_R11_EAC: 0x9270;\n readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;\n readonly COMPRESSED_RG11_EAC: 0x9272;\n readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;\n readonly COMPRESSED_RGB8_ETC2: 0x9274;\n readonly COMPRESSED_SRGB8_ETC2: 0x9275;\n readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;\n readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;\n readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;\n readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;\n}\n\ninterface WEBGL_compressed_texture_etc1 {\n readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;\n}\n\n/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */\ninterface WEBGL_compressed_texture_s3tc {\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;\n}\n\ninterface WEBGL_compressed_texture_s3tc_srgb {\n readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;\n}\n\n/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */\ninterface WEBGL_debug_renderer_info {\n readonly UNMASKED_VENDOR_WEBGL: 0x9245;\n readonly UNMASKED_RENDERER_WEBGL: 0x9246;\n}\n\ninterface WEBGL_debug_shaders {\n getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\n/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */\ninterface WEBGL_depth_texture {\n readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;\n}\n\ninterface WEBGL_draw_buffers {\n drawBuffersWEBGL(buffers: GLenum[]): void;\n readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;\n readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;\n readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;\n readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;\n readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;\n readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;\n readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;\n readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;\n readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;\n readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;\n readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;\n readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;\n readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;\n readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;\n readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;\n readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;\n readonly DRAW_BUFFER0_WEBGL: 0x8825;\n readonly DRAW_BUFFER1_WEBGL: 0x8826;\n readonly DRAW_BUFFER2_WEBGL: 0x8827;\n readonly DRAW_BUFFER3_WEBGL: 0x8828;\n readonly DRAW_BUFFER4_WEBGL: 0x8829;\n readonly DRAW_BUFFER5_WEBGL: 0x882A;\n readonly DRAW_BUFFER6_WEBGL: 0x882B;\n readonly DRAW_BUFFER7_WEBGL: 0x882C;\n readonly DRAW_BUFFER8_WEBGL: 0x882D;\n readonly DRAW_BUFFER9_WEBGL: 0x882E;\n readonly DRAW_BUFFER10_WEBGL: 0x882F;\n readonly DRAW_BUFFER11_WEBGL: 0x8830;\n readonly DRAW_BUFFER12_WEBGL: 0x8831;\n readonly DRAW_BUFFER13_WEBGL: 0x8832;\n readonly DRAW_BUFFER14_WEBGL: 0x8833;\n readonly DRAW_BUFFER15_WEBGL: 0x8834;\n readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;\n readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;\n}\n\ninterface WEBGL_lose_context {\n loseContext(): void;\n restoreContext(): void;\n}\n\ninterface WEBGL_multi_draw {\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;\n}\n\n/** A WaveShaperNode always has exactly one input and one output. */\ninterface WaveShaperNode extends AudioNode {\n curve: Float32Array | null;\n oversample: OverSampleType;\n}\n\ndeclare var WaveShaperNode: {\n prototype: WaveShaperNode;\n new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;\n};\n\ninterface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {\n}\n\ndeclare var WebGL2RenderingContext: {\n prototype: WebGL2RenderingContext;\n new(): WebGL2RenderingContext;\n readonly READ_BUFFER: 0x0C02;\n readonly UNPACK_ROW_LENGTH: 0x0CF2;\n readonly UNPACK_SKIP_ROWS: 0x0CF3;\n readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n readonly PACK_ROW_LENGTH: 0x0D02;\n readonly PACK_SKIP_ROWS: 0x0D03;\n readonly PACK_SKIP_PIXELS: 0x0D04;\n readonly COLOR: 0x1800;\n readonly DEPTH: 0x1801;\n readonly STENCIL: 0x1802;\n readonly RED: 0x1903;\n readonly RGB8: 0x8051;\n readonly RGBA8: 0x8058;\n readonly RGB10_A2: 0x8059;\n readonly TEXTURE_BINDING_3D: 0x806A;\n readonly UNPACK_SKIP_IMAGES: 0x806D;\n readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n readonly TEXTURE_3D: 0x806F;\n readonly TEXTURE_WRAP_R: 0x8072;\n readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n readonly MAX_ELEMENTS_INDICES: 0x80E9;\n readonly TEXTURE_MIN_LOD: 0x813A;\n readonly TEXTURE_MAX_LOD: 0x813B;\n readonly TEXTURE_BASE_LEVEL: 0x813C;\n readonly TEXTURE_MAX_LEVEL: 0x813D;\n readonly MIN: 0x8007;\n readonly MAX: 0x8008;\n readonly DEPTH_COMPONENT24: 0x81A6;\n readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n readonly TEXTURE_COMPARE_MODE: 0x884C;\n readonly TEXTURE_COMPARE_FUNC: 0x884D;\n readonly CURRENT_QUERY: 0x8865;\n readonly QUERY_RESULT: 0x8866;\n readonly QUERY_RESULT_AVAILABLE: 0x8867;\n readonly STREAM_READ: 0x88E1;\n readonly STREAM_COPY: 0x88E2;\n readonly STATIC_READ: 0x88E5;\n readonly STATIC_COPY: 0x88E6;\n readonly DYNAMIC_READ: 0x88E9;\n readonly DYNAMIC_COPY: 0x88EA;\n readonly MAX_DRAW_BUFFERS: 0x8824;\n readonly DRAW_BUFFER0: 0x8825;\n readonly DRAW_BUFFER1: 0x8826;\n readonly DRAW_BUFFER2: 0x8827;\n readonly DRAW_BUFFER3: 0x8828;\n readonly DRAW_BUFFER4: 0x8829;\n readonly DRAW_BUFFER5: 0x882A;\n readonly DRAW_BUFFER6: 0x882B;\n readonly DRAW_BUFFER7: 0x882C;\n readonly DRAW_BUFFER8: 0x882D;\n readonly DRAW_BUFFER9: 0x882E;\n readonly DRAW_BUFFER10: 0x882F;\n readonly DRAW_BUFFER11: 0x8830;\n readonly DRAW_BUFFER12: 0x8831;\n readonly DRAW_BUFFER13: 0x8832;\n readonly DRAW_BUFFER14: 0x8833;\n readonly DRAW_BUFFER15: 0x8834;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n readonly SAMPLER_3D: 0x8B5F;\n readonly SAMPLER_2D_SHADOW: 0x8B62;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n readonly PIXEL_PACK_BUFFER: 0x88EB;\n readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n readonly FLOAT_MAT2x3: 0x8B65;\n readonly FLOAT_MAT2x4: 0x8B66;\n readonly FLOAT_MAT3x2: 0x8B67;\n readonly FLOAT_MAT3x4: 0x8B68;\n readonly FLOAT_MAT4x2: 0x8B69;\n readonly FLOAT_MAT4x3: 0x8B6A;\n readonly SRGB: 0x8C40;\n readonly SRGB8: 0x8C41;\n readonly SRGB8_ALPHA8: 0x8C43;\n readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n readonly RGBA32F: 0x8814;\n readonly RGB32F: 0x8815;\n readonly RGBA16F: 0x881A;\n readonly RGB16F: 0x881B;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n readonly TEXTURE_2D_ARRAY: 0x8C1A;\n readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n readonly R11F_G11F_B10F: 0x8C3A;\n readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n readonly RGB9_E5: 0x8C3D;\n readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n readonly RASTERIZER_DISCARD: 0x8C89;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n readonly SEPARATE_ATTRIBS: 0x8C8D;\n readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n readonly RGBA32UI: 0x8D70;\n readonly RGB32UI: 0x8D71;\n readonly RGBA16UI: 0x8D76;\n readonly RGB16UI: 0x8D77;\n readonly RGBA8UI: 0x8D7C;\n readonly RGB8UI: 0x8D7D;\n readonly RGBA32I: 0x8D82;\n readonly RGB32I: 0x8D83;\n readonly RGBA16I: 0x8D88;\n readonly RGB16I: 0x8D89;\n readonly RGBA8I: 0x8D8E;\n readonly RGB8I: 0x8D8F;\n readonly RED_INTEGER: 0x8D94;\n readonly RGB_INTEGER: 0x8D98;\n readonly RGBA_INTEGER: 0x8D99;\n readonly SAMPLER_2D_ARRAY: 0x8DC1;\n readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n readonly UNSIGNED_INT_VEC2: 0x8DC6;\n readonly UNSIGNED_INT_VEC3: 0x8DC7;\n readonly UNSIGNED_INT_VEC4: 0x8DC8;\n readonly INT_SAMPLER_2D: 0x8DCA;\n readonly INT_SAMPLER_3D: 0x8DCB;\n readonly INT_SAMPLER_CUBE: 0x8DCC;\n readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n readonly DEPTH_COMPONENT32F: 0x8CAC;\n readonly DEPTH32F_STENCIL8: 0x8CAD;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n readonly FRAMEBUFFER_DEFAULT: 0x8218;\n readonly UNSIGNED_INT_24_8: 0x84FA;\n readonly DEPTH24_STENCIL8: 0x88F0;\n readonly UNSIGNED_NORMALIZED: 0x8C17;\n readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n readonly READ_FRAMEBUFFER: 0x8CA8;\n readonly DRAW_FRAMEBUFFER: 0x8CA9;\n readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n readonly COLOR_ATTACHMENT1: 0x8CE1;\n readonly COLOR_ATTACHMENT2: 0x8CE2;\n readonly COLOR_ATTACHMENT3: 0x8CE3;\n readonly COLOR_ATTACHMENT4: 0x8CE4;\n readonly COLOR_ATTACHMENT5: 0x8CE5;\n readonly COLOR_ATTACHMENT6: 0x8CE6;\n readonly COLOR_ATTACHMENT7: 0x8CE7;\n readonly COLOR_ATTACHMENT8: 0x8CE8;\n readonly COLOR_ATTACHMENT9: 0x8CE9;\n readonly COLOR_ATTACHMENT10: 0x8CEA;\n readonly COLOR_ATTACHMENT11: 0x8CEB;\n readonly COLOR_ATTACHMENT12: 0x8CEC;\n readonly COLOR_ATTACHMENT13: 0x8CED;\n readonly COLOR_ATTACHMENT14: 0x8CEE;\n readonly COLOR_ATTACHMENT15: 0x8CEF;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n readonly MAX_SAMPLES: 0x8D57;\n readonly HALF_FLOAT: 0x140B;\n readonly RG: 0x8227;\n readonly RG_INTEGER: 0x8228;\n readonly R8: 0x8229;\n readonly RG8: 0x822B;\n readonly R16F: 0x822D;\n readonly R32F: 0x822E;\n readonly RG16F: 0x822F;\n readonly RG32F: 0x8230;\n readonly R8I: 0x8231;\n readonly R8UI: 0x8232;\n readonly R16I: 0x8233;\n readonly R16UI: 0x8234;\n readonly R32I: 0x8235;\n readonly R32UI: 0x8236;\n readonly RG8I: 0x8237;\n readonly RG8UI: 0x8238;\n readonly RG16I: 0x8239;\n readonly RG16UI: 0x823A;\n readonly RG32I: 0x823B;\n readonly RG32UI: 0x823C;\n readonly VERTEX_ARRAY_BINDING: 0x85B5;\n readonly R8_SNORM: 0x8F94;\n readonly RG8_SNORM: 0x8F95;\n readonly RGB8_SNORM: 0x8F96;\n readonly RGBA8_SNORM: 0x8F97;\n readonly SIGNED_NORMALIZED: 0x8F9C;\n readonly COPY_READ_BUFFER: 0x8F36;\n readonly COPY_WRITE_BUFFER: 0x8F37;\n readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n readonly UNIFORM_BUFFER: 0x8A11;\n readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n readonly UNIFORM_BUFFER_START: 0x8A29;\n readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n readonly UNIFORM_TYPE: 0x8A37;\n readonly UNIFORM_SIZE: 0x8A38;\n readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n readonly UNIFORM_OFFSET: 0x8A3B;\n readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n readonly INVALID_INDEX: 0xFFFFFFFF;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n readonly OBJECT_TYPE: 0x9112;\n readonly SYNC_CONDITION: 0x9113;\n readonly SYNC_STATUS: 0x9114;\n readonly SYNC_FLAGS: 0x9115;\n readonly SYNC_FENCE: 0x9116;\n readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n readonly UNSIGNALED: 0x9118;\n readonly SIGNALED: 0x9119;\n readonly ALREADY_SIGNALED: 0x911A;\n readonly TIMEOUT_EXPIRED: 0x911B;\n readonly CONDITION_SATISFIED: 0x911C;\n readonly WAIT_FAILED: 0x911D;\n readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n readonly ANY_SAMPLES_PASSED: 0x8C2F;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n readonly SAMPLER_BINDING: 0x8919;\n readonly RGB10_A2UI: 0x906F;\n readonly INT_2_10_10_10_REV: 0x8D9F;\n readonly TRANSFORM_FEEDBACK: 0x8E22;\n readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n readonly MAX_ELEMENT_INDEX: 0x8D6B;\n readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n readonly TIMEOUT_IGNORED: -1;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGL2RenderingContextBase {\n beginQuery(target: GLenum, query: WebGLQuery): void;\n beginTransformFeedback(primitiveMode: GLenum): void;\n bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;\n bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;\n bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;\n bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;\n bindVertexArray(array: WebGLVertexArrayObject | null): void;\n blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;\n clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;\n clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;\n copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n createQuery(): WebGLQuery | null;\n createSampler(): WebGLSampler | null;\n createTransformFeedback(): WebGLTransformFeedback | null;\n createVertexArray(): WebGLVertexArrayObject | null;\n deleteQuery(query: WebGLQuery | null): void;\n deleteSampler(sampler: WebGLSampler | null): void;\n deleteSync(sync: WebGLSync | null): void;\n deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;\n deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;\n drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;\n drawBuffers(buffers: GLenum[]): void;\n drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;\n drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;\n endQuery(target: GLenum): void;\n endTransformFeedback(): void;\n fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;\n framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;\n getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;\n getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;\n getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;\n getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;\n getFragDataLocation(program: WebGLProgram, name: string): GLint;\n getIndexedParameter(target: GLenum, index: GLuint): any;\n getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;\n getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;\n getQueryParameter(query: WebGLQuery, pname: GLenum): any;\n getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;\n getSyncParameter(sync: WebGLSync, pname: GLenum): any;\n getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;\n getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;\n invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;\n invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n isQuery(query: WebGLQuery | null): GLboolean;\n isSampler(sampler: WebGLSampler | null): GLboolean;\n isSync(sync: WebGLSync | null): GLboolean;\n isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;\n isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;\n pauseTransformFeedback(): void;\n readBuffer(src: GLenum): void;\n renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n resumeTransformFeedback(): void;\n samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;\n samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;\n transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;\n uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;\n uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;\n uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;\n uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;\n uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n vertexAttribDivisor(index: GLuint, divisor: GLuint): void;\n vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;\n vertexAttribI4iv(index: GLuint, values: Int32List): void;\n vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;\n vertexAttribI4uiv(index: GLuint, values: Uint32List): void;\n vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;\n waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;\n readonly READ_BUFFER: 0x0C02;\n readonly UNPACK_ROW_LENGTH: 0x0CF2;\n readonly UNPACK_SKIP_ROWS: 0x0CF3;\n readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n readonly PACK_ROW_LENGTH: 0x0D02;\n readonly PACK_SKIP_ROWS: 0x0D03;\n readonly PACK_SKIP_PIXELS: 0x0D04;\n readonly COLOR: 0x1800;\n readonly DEPTH: 0x1801;\n readonly STENCIL: 0x1802;\n readonly RED: 0x1903;\n readonly RGB8: 0x8051;\n readonly RGBA8: 0x8058;\n readonly RGB10_A2: 0x8059;\n readonly TEXTURE_BINDING_3D: 0x806A;\n readonly UNPACK_SKIP_IMAGES: 0x806D;\n readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n readonly TEXTURE_3D: 0x806F;\n readonly TEXTURE_WRAP_R: 0x8072;\n readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n readonly MAX_ELEMENTS_INDICES: 0x80E9;\n readonly TEXTURE_MIN_LOD: 0x813A;\n readonly TEXTURE_MAX_LOD: 0x813B;\n readonly TEXTURE_BASE_LEVEL: 0x813C;\n readonly TEXTURE_MAX_LEVEL: 0x813D;\n readonly MIN: 0x8007;\n readonly MAX: 0x8008;\n readonly DEPTH_COMPONENT24: 0x81A6;\n readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n readonly TEXTURE_COMPARE_MODE: 0x884C;\n readonly TEXTURE_COMPARE_FUNC: 0x884D;\n readonly CURRENT_QUERY: 0x8865;\n readonly QUERY_RESULT: 0x8866;\n readonly QUERY_RESULT_AVAILABLE: 0x8867;\n readonly STREAM_READ: 0x88E1;\n readonly STREAM_COPY: 0x88E2;\n readonly STATIC_READ: 0x88E5;\n readonly STATIC_COPY: 0x88E6;\n readonly DYNAMIC_READ: 0x88E9;\n readonly DYNAMIC_COPY: 0x88EA;\n readonly MAX_DRAW_BUFFERS: 0x8824;\n readonly DRAW_BUFFER0: 0x8825;\n readonly DRAW_BUFFER1: 0x8826;\n readonly DRAW_BUFFER2: 0x8827;\n readonly DRAW_BUFFER3: 0x8828;\n readonly DRAW_BUFFER4: 0x8829;\n readonly DRAW_BUFFER5: 0x882A;\n readonly DRAW_BUFFER6: 0x882B;\n readonly DRAW_BUFFER7: 0x882C;\n readonly DRAW_BUFFER8: 0x882D;\n readonly DRAW_BUFFER9: 0x882E;\n readonly DRAW_BUFFER10: 0x882F;\n readonly DRAW_BUFFER11: 0x8830;\n readonly DRAW_BUFFER12: 0x8831;\n readonly DRAW_BUFFER13: 0x8832;\n readonly DRAW_BUFFER14: 0x8833;\n readonly DRAW_BUFFER15: 0x8834;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n readonly SAMPLER_3D: 0x8B5F;\n readonly SAMPLER_2D_SHADOW: 0x8B62;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n readonly PIXEL_PACK_BUFFER: 0x88EB;\n readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n readonly FLOAT_MAT2x3: 0x8B65;\n readonly FLOAT_MAT2x4: 0x8B66;\n readonly FLOAT_MAT3x2: 0x8B67;\n readonly FLOAT_MAT3x4: 0x8B68;\n readonly FLOAT_MAT4x2: 0x8B69;\n readonly FLOAT_MAT4x3: 0x8B6A;\n readonly SRGB: 0x8C40;\n readonly SRGB8: 0x8C41;\n readonly SRGB8_ALPHA8: 0x8C43;\n readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n readonly RGBA32F: 0x8814;\n readonly RGB32F: 0x8815;\n readonly RGBA16F: 0x881A;\n readonly RGB16F: 0x881B;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n readonly TEXTURE_2D_ARRAY: 0x8C1A;\n readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n readonly R11F_G11F_B10F: 0x8C3A;\n readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n readonly RGB9_E5: 0x8C3D;\n readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n readonly RASTERIZER_DISCARD: 0x8C89;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n readonly SEPARATE_ATTRIBS: 0x8C8D;\n readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n readonly RGBA32UI: 0x8D70;\n readonly RGB32UI: 0x8D71;\n readonly RGBA16UI: 0x8D76;\n readonly RGB16UI: 0x8D77;\n readonly RGBA8UI: 0x8D7C;\n readonly RGB8UI: 0x8D7D;\n readonly RGBA32I: 0x8D82;\n readonly RGB32I: 0x8D83;\n readonly RGBA16I: 0x8D88;\n readonly RGB16I: 0x8D89;\n readonly RGBA8I: 0x8D8E;\n readonly RGB8I: 0x8D8F;\n readonly RED_INTEGER: 0x8D94;\n readonly RGB_INTEGER: 0x8D98;\n readonly RGBA_INTEGER: 0x8D99;\n readonly SAMPLER_2D_ARRAY: 0x8DC1;\n readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n readonly UNSIGNED_INT_VEC2: 0x8DC6;\n readonly UNSIGNED_INT_VEC3: 0x8DC7;\n readonly UNSIGNED_INT_VEC4: 0x8DC8;\n readonly INT_SAMPLER_2D: 0x8DCA;\n readonly INT_SAMPLER_3D: 0x8DCB;\n readonly INT_SAMPLER_CUBE: 0x8DCC;\n readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n readonly DEPTH_COMPONENT32F: 0x8CAC;\n readonly DEPTH32F_STENCIL8: 0x8CAD;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n readonly FRAMEBUFFER_DEFAULT: 0x8218;\n readonly UNSIGNED_INT_24_8: 0x84FA;\n readonly DEPTH24_STENCIL8: 0x88F0;\n readonly UNSIGNED_NORMALIZED: 0x8C17;\n readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n readonly READ_FRAMEBUFFER: 0x8CA8;\n readonly DRAW_FRAMEBUFFER: 0x8CA9;\n readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n readonly COLOR_ATTACHMENT1: 0x8CE1;\n readonly COLOR_ATTACHMENT2: 0x8CE2;\n readonly COLOR_ATTACHMENT3: 0x8CE3;\n readonly COLOR_ATTACHMENT4: 0x8CE4;\n readonly COLOR_ATTACHMENT5: 0x8CE5;\n readonly COLOR_ATTACHMENT6: 0x8CE6;\n readonly COLOR_ATTACHMENT7: 0x8CE7;\n readonly COLOR_ATTACHMENT8: 0x8CE8;\n readonly COLOR_ATTACHMENT9: 0x8CE9;\n readonly COLOR_ATTACHMENT10: 0x8CEA;\n readonly COLOR_ATTACHMENT11: 0x8CEB;\n readonly COLOR_ATTACHMENT12: 0x8CEC;\n readonly COLOR_ATTACHMENT13: 0x8CED;\n readonly COLOR_ATTACHMENT14: 0x8CEE;\n readonly COLOR_ATTACHMENT15: 0x8CEF;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n readonly MAX_SAMPLES: 0x8D57;\n readonly HALF_FLOAT: 0x140B;\n readonly RG: 0x8227;\n readonly RG_INTEGER: 0x8228;\n readonly R8: 0x8229;\n readonly RG8: 0x822B;\n readonly R16F: 0x822D;\n readonly R32F: 0x822E;\n readonly RG16F: 0x822F;\n readonly RG32F: 0x8230;\n readonly R8I: 0x8231;\n readonly R8UI: 0x8232;\n readonly R16I: 0x8233;\n readonly R16UI: 0x8234;\n readonly R32I: 0x8235;\n readonly R32UI: 0x8236;\n readonly RG8I: 0x8237;\n readonly RG8UI: 0x8238;\n readonly RG16I: 0x8239;\n readonly RG16UI: 0x823A;\n readonly RG32I: 0x823B;\n readonly RG32UI: 0x823C;\n readonly VERTEX_ARRAY_BINDING: 0x85B5;\n readonly R8_SNORM: 0x8F94;\n readonly RG8_SNORM: 0x8F95;\n readonly RGB8_SNORM: 0x8F96;\n readonly RGBA8_SNORM: 0x8F97;\n readonly SIGNED_NORMALIZED: 0x8F9C;\n readonly COPY_READ_BUFFER: 0x8F36;\n readonly COPY_WRITE_BUFFER: 0x8F37;\n readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n readonly UNIFORM_BUFFER: 0x8A11;\n readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n readonly UNIFORM_BUFFER_START: 0x8A29;\n readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n readonly UNIFORM_TYPE: 0x8A37;\n readonly UNIFORM_SIZE: 0x8A38;\n readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n readonly UNIFORM_OFFSET: 0x8A3B;\n readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n readonly INVALID_INDEX: 0xFFFFFFFF;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n readonly OBJECT_TYPE: 0x9112;\n readonly SYNC_CONDITION: 0x9113;\n readonly SYNC_STATUS: 0x9114;\n readonly SYNC_FLAGS: 0x9115;\n readonly SYNC_FENCE: 0x9116;\n readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n readonly UNSIGNALED: 0x9118;\n readonly SIGNALED: 0x9119;\n readonly ALREADY_SIGNALED: 0x911A;\n readonly TIMEOUT_EXPIRED: 0x911B;\n readonly CONDITION_SATISFIED: 0x911C;\n readonly WAIT_FAILED: 0x911D;\n readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n readonly ANY_SAMPLES_PASSED: 0x8C2F;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n readonly SAMPLER_BINDING: 0x8919;\n readonly RGB10_A2UI: 0x906F;\n readonly INT_2_10_10_10_REV: 0x8D9F;\n readonly TRANSFORM_FEEDBACK: 0x8E22;\n readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n readonly MAX_ELEMENT_INDEX: 0x8D6B;\n readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n readonly TIMEOUT_IGNORED: -1;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n}\n\ninterface WebGL2RenderingContextOverloads {\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;\n bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */\ninterface WebGLActiveInfo {\n readonly name: string;\n readonly size: GLint;\n readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n prototype: WebGLActiveInfo;\n new(): WebGLActiveInfo;\n};\n\n/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */\ninterface WebGLBuffer {\n}\n\ndeclare var WebGLBuffer: {\n prototype: WebGLBuffer;\n new(): WebGLBuffer;\n};\n\n/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */\ninterface WebGLContextEvent extends Event {\n readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n prototype: WebGLContextEvent;\n new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\n/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */\ninterface WebGLFramebuffer {\n}\n\ndeclare var WebGLFramebuffer: {\n prototype: WebGLFramebuffer;\n new(): WebGLFramebuffer;\n};\n\n/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */\ninterface WebGLProgram {\n}\n\ndeclare var WebGLProgram: {\n prototype: WebGLProgram;\n new(): WebGLProgram;\n};\n\ninterface WebGLQuery {\n}\n\ndeclare var WebGLQuery: {\n prototype: WebGLQuery;\n new(): WebGLQuery;\n};\n\n/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */\ninterface WebGLRenderbuffer {\n}\n\ndeclare var WebGLRenderbuffer: {\n prototype: WebGLRenderbuffer;\n new(): WebGLRenderbuffer;\n};\n\n/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */\ninterface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {\n}\n\ndeclare var WebGLRenderingContext: {\n prototype: WebGLRenderingContext;\n new(): WebGLRenderingContext;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGLRenderingContextBase {\n readonly canvas: HTMLCanvasElement | OffscreenCanvas;\n readonly drawingBufferHeight: GLsizei;\n readonly drawingBufferWidth: GLsizei;\n activeTexture(texture: GLenum): void;\n attachShader(program: WebGLProgram, shader: WebGLShader): void;\n bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;\n bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;\n bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;\n bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n bindTexture(target: GLenum, texture: WebGLTexture | null): void;\n blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n blendEquation(mode: GLenum): void;\n blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;\n blendFunc(sfactor: GLenum, dfactor: GLenum): void;\n blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n checkFramebufferStatus(target: GLenum): GLenum;\n clear(mask: GLbitfield): void;\n clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n clearDepth(depth: GLclampf): void;\n clearStencil(s: GLint): void;\n colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;\n compileShader(shader: WebGLShader): void;\n copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;\n copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n createBuffer(): WebGLBuffer | null;\n createFramebuffer(): WebGLFramebuffer | null;\n createProgram(): WebGLProgram | null;\n createRenderbuffer(): WebGLRenderbuffer | null;\n createShader(type: GLenum): WebGLShader | null;\n createTexture(): WebGLTexture | null;\n cullFace(mode: GLenum): void;\n deleteBuffer(buffer: WebGLBuffer | null): void;\n deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;\n deleteProgram(program: WebGLProgram | null): void;\n deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;\n deleteShader(shader: WebGLShader | null): void;\n deleteTexture(texture: WebGLTexture | null): void;\n depthFunc(func: GLenum): void;\n depthMask(flag: GLboolean): void;\n depthRange(zNear: GLclampf, zFar: GLclampf): void;\n detachShader(program: WebGLProgram, shader: WebGLShader): void;\n disable(cap: GLenum): void;\n disableVertexAttribArray(index: GLuint): void;\n drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;\n drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;\n enable(cap: GLenum): void;\n enableVertexAttribArray(index: GLuint): void;\n finish(): void;\n flush(): void;\n framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;\n frontFace(mode: GLenum): void;\n generateMipmap(target: GLenum): void;\n getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;\n getAttribLocation(program: WebGLProgram, name: string): GLint;\n getBufferParameter(target: GLenum, pname: GLenum): any;\n getContextAttributes(): WebGLContextAttributes | null;\n getError(): GLenum;\n getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;\n getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;\n getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;\n getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;\n getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;\n getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;\n getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;\n getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;\n getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;\n getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;\n getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;\n getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;\n getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;\n getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;\n getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;\n getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;\n getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;\n getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;\n getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;\n getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;\n getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;\n getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;\n getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;\n getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;\n getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;\n getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;\n getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;\n getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;\n getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;\n getExtension(name: string): any;\n getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;\n getParameter(pname: GLenum): any;\n getProgramInfoLog(program: WebGLProgram): string | null;\n getProgramParameter(program: WebGLProgram, pname: GLenum): any;\n getRenderbufferParameter(target: GLenum, pname: GLenum): any;\n getShaderInfoLog(shader: WebGLShader): string | null;\n getShaderParameter(shader: WebGLShader, pname: GLenum): any;\n getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;\n getShaderSource(shader: WebGLShader): string | null;\n getSupportedExtensions(): string[] | null;\n getTexParameter(target: GLenum, pname: GLenum): any;\n getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;\n getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;\n getVertexAttrib(index: GLuint, pname: GLenum): any;\n getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;\n hint(target: GLenum, mode: GLenum): void;\n isBuffer(buffer: WebGLBuffer | null): GLboolean;\n isContextLost(): boolean;\n isEnabled(cap: GLenum): GLboolean;\n isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;\n isProgram(program: WebGLProgram | null): GLboolean;\n isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;\n isShader(shader: WebGLShader | null): GLboolean;\n isTexture(texture: WebGLTexture | null): GLboolean;\n lineWidth(width: GLfloat): void;\n linkProgram(program: WebGLProgram): void;\n pixelStorei(pname: GLenum, param: GLint | GLboolean): void;\n polygonOffset(factor: GLfloat, units: GLfloat): void;\n renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n sampleCoverage(value: GLclampf, invert: GLboolean): void;\n scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n shaderSource(shader: WebGLShader, source: string): void;\n stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;\n stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;\n stencilMask(mask: GLuint): void;\n stencilMaskSeparate(face: GLenum, mask: GLuint): void;\n stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;\n useProgram(program: WebGLProgram | null): void;\n validateProgram(program: WebGLProgram): void;\n vertexAttrib1f(index: GLuint, x: GLfloat): void;\n vertexAttrib1fv(index: GLuint, values: Float32List): void;\n vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;\n vertexAttrib2fv(index: GLuint, values: Float32List): void;\n vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;\n vertexAttrib3fv(index: GLuint, values: Float32List): void;\n vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n vertexAttrib4fv(index: GLuint, values: Float32List): void;\n vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;\n viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n}\n\ninterface WebGLRenderingContextOverloads {\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;\n bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n}\n\ninterface WebGLSampler {\n}\n\ndeclare var WebGLSampler: {\n prototype: WebGLSampler;\n new(): WebGLSampler;\n};\n\n/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */\ninterface WebGLShader {\n}\n\ndeclare var WebGLShader: {\n prototype: WebGLShader;\n new(): WebGLShader;\n};\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */\ninterface WebGLShaderPrecisionFormat {\n readonly precision: GLint;\n readonly rangeMax: GLint;\n readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n prototype: WebGLShaderPrecisionFormat;\n new(): WebGLShaderPrecisionFormat;\n};\n\ninterface WebGLSync {\n}\n\ndeclare var WebGLSync: {\n prototype: WebGLSync;\n new(): WebGLSync;\n};\n\n/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */\ninterface WebGLTexture {\n}\n\ndeclare var WebGLTexture: {\n prototype: WebGLTexture;\n new(): WebGLTexture;\n};\n\ninterface WebGLTransformFeedback {\n}\n\ndeclare var WebGLTransformFeedback: {\n prototype: WebGLTransformFeedback;\n new(): WebGLTransformFeedback;\n};\n\n/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n prototype: WebGLUniformLocation;\n new(): WebGLUniformLocation;\n};\n\ninterface WebGLVertexArrayObject {\n}\n\ndeclare var WebGLVertexArrayObject: {\n prototype: WebGLVertexArrayObject;\n new(): WebGLVertexArrayObject;\n};\n\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebSocketEventMap {\n "close": CloseEvent;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */\ninterface WebSocket extends EventTarget {\n /**\n * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:\n *\n * Can be set, to change how binary data is returned. The default is "blob".\n */\n binaryType: BinaryType;\n /**\n * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.\n *\n * If the WebSocket connection is closed, this attribute\'s value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)\n */\n readonly bufferedAmount: number;\n /** Returns the extensions selected by the server, if any. */\n readonly extensions: string;\n onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;\n onerror: ((this: WebSocket, ev: Event) => any) | null;\n onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;\n onopen: ((this: WebSocket, ev: Event) => any) | null;\n /** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor\'s second argument to perform subprotocol negotiation. */\n readonly protocol: string;\n /** Returns the state of the WebSocket object\'s connection. It can have the values described below. */\n readonly readyState: number;\n /** Returns the URL that was used to establish the WebSocket connection. */\n readonly url: string;\n /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */\n close(code?: number, reason?: string): void;\n /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */\n send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSING: 2;\n readonly CLOSED: 3;\n addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WebSocket: {\n prototype: WebSocket;\n new(url: string | URL, protocols?: string | string[]): WebSocket;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSING: 2;\n readonly CLOSED: 3;\n};\n\n/** Events that occur due to the user moving a mouse wheel or similar input device. */\ninterface WheelEvent extends MouseEvent {\n readonly deltaMode: number;\n readonly deltaX: number;\n readonly deltaY: number;\n readonly deltaZ: number;\n readonly DOM_DELTA_PIXEL: 0x00;\n readonly DOM_DELTA_LINE: 0x01;\n readonly DOM_DELTA_PAGE: 0x02;\n}\n\ndeclare var WheelEvent: {\n prototype: WheelEvent;\n new(type: string, eventInitDict?: WheelEventInit): WheelEvent;\n readonly DOM_DELTA_PIXEL: 0x00;\n readonly DOM_DELTA_LINE: 0x01;\n readonly DOM_DELTA_PAGE: 0x02;\n};\n\ninterface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {\n "DOMContentLoaded": Event;\n "devicemotion": DeviceMotionEvent;\n "deviceorientation": DeviceOrientationEvent;\n "gamepadconnected": GamepadEvent;\n "gamepaddisconnected": GamepadEvent;\n "orientationchange": Event;\n}\n\n/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */\ninterface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {\n /** @deprecated This is a legacy alias of `navigator`. */\n readonly clientInformation: Navigator;\n /** Returns true if the window has been closed, false otherwise. */\n readonly closed: boolean;\n /** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */\n readonly customElements: CustomElementRegistry;\n readonly devicePixelRatio: number;\n readonly document: Document;\n /** @deprecated */\n readonly event: Event | undefined;\n /** @deprecated */\n readonly external: External;\n readonly frameElement: Element | null;\n readonly frames: WindowProxy;\n readonly history: History;\n readonly innerHeight: number;\n readonly innerWidth: number;\n readonly length: number;\n get location(): Location;\n set location(href: string | Location);\n /** Returns true if the location bar is visible; otherwise, returns false. */\n readonly locationbar: BarProp;\n /** Returns true if the menu bar is visible; otherwise, returns false. */\n readonly menubar: BarProp;\n name: string;\n readonly navigator: Navigator;\n /** Available only in secure contexts. */\n ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\n /** Available only in secure contexts. */\n ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n /** @deprecated */\n onorientationchange: ((this: Window, ev: Event) => any) | null;\n opener: any;\n /** @deprecated */\n readonly orientation: number;\n readonly outerHeight: number;\n readonly outerWidth: number;\n /** @deprecated This is a legacy alias of `scrollX`. */\n readonly pageXOffset: number;\n /** @deprecated This is a legacy alias of `scrollY`. */\n readonly pageYOffset: number;\n /**\n * Refers to either the parent WindowProxy, or itself.\n *\n * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.\n */\n readonly parent: WindowProxy;\n /** Returns true if the personal bar is visible; otherwise, returns false. */\n readonly personalbar: BarProp;\n readonly screen: Screen;\n readonly screenLeft: number;\n readonly screenTop: number;\n readonly screenX: number;\n readonly screenY: number;\n readonly scrollX: number;\n readonly scrollY: number;\n /** Returns true if the scrollbars are visible; otherwise, returns false. */\n readonly scrollbars: BarProp;\n readonly self: Window & typeof globalThis;\n readonly speechSynthesis: SpeechSynthesis;\n /** @deprecated */\n status: string;\n /** Returns true if the status bar is visible; otherwise, returns false. */\n readonly statusbar: BarProp;\n /** Returns true if the toolbar is visible; otherwise, returns false. */\n readonly toolbar: BarProp;\n readonly top: WindowProxy | null;\n readonly visualViewport: VisualViewport | null;\n readonly window: Window & typeof globalThis;\n alert(message?: any): void;\n blur(): void;\n cancelIdleCallback(handle: number): void;\n /** @deprecated */\n captureEvents(): void;\n /** Closes the window. */\n close(): void;\n confirm(message?: string): boolean;\n /** Moves the focus to the window\'s browsing context, if any. */\n focus(): void;\n getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n getSelection(): Selection | null;\n matchMedia(query: string): MediaQueryList;\n moveBy(x: number, y: number): void;\n moveTo(x: number, y: number): void;\n open(url?: string | URL, target?: string, features?: string): WindowProxy | null;\n /**\n * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.\n *\n * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.\n *\n * If the origin of the target window doesn\'t match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".\n *\n * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.\n */\n postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;\n postMessage(message: any, options?: WindowPostMessageOptions): void;\n print(): void;\n prompt(message?: string, _default?: string): string | null;\n /** @deprecated */\n releaseEvents(): void;\n requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;\n resizeBy(x: number, y: number): void;\n resizeTo(width: number, height: number): void;\n scroll(options?: ScrollToOptions): void;\n scroll(x: number, y: number): void;\n scrollBy(options?: ScrollToOptions): void;\n scrollBy(x: number, y: number): void;\n scrollTo(options?: ScrollToOptions): void;\n scrollTo(x: number, y: number): void;\n /** Cancels the document load. */\n stop(): void;\n addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: Window;\n}\n\ndeclare var Window: {\n prototype: Window;\n new(): Window;\n};\n\ninterface WindowEventHandlersEventMap {\n "afterprint": Event;\n "beforeprint": Event;\n "beforeunload": BeforeUnloadEvent;\n "gamepadconnected": GamepadEvent;\n "gamepaddisconnected": GamepadEvent;\n "hashchange": HashChangeEvent;\n "languagechange": Event;\n "message": MessageEvent;\n "messageerror": MessageEvent;\n "offline": Event;\n "online": Event;\n "pagehide": PageTransitionEvent;\n "pageshow": PageTransitionEvent;\n "popstate": PopStateEvent;\n "rejectionhandled": PromiseRejectionEvent;\n "storage": StorageEvent;\n "unhandledrejection": PromiseRejectionEvent;\n "unload": Event;\n}\n\ninterface WindowEventHandlers {\n onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;\n onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;\n onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;\n ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;\n ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;\n onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;\n onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;\n onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;\n onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;\n ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;\n onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;\n onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;\n onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;\n onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;\n onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;\n onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;\n onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;\n addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface WindowLocalStorage {\n readonly localStorage: Storage;\n}\n\ninterface WindowOrWorkerGlobalScope {\n /** Available only in secure contexts. */\n readonly caches: CacheStorage;\n readonly crossOriginIsolated: boolean;\n readonly crypto: Crypto;\n readonly indexedDB: IDBFactory;\n readonly isSecureContext: boolean;\n readonly origin: string;\n readonly performance: Performance;\n atob(data: string): string;\n btoa(data: string): string;\n clearInterval(id: number | undefined): void;\n clearTimeout(id: number | undefined): void;\n createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n queueMicrotask(callback: VoidFunction): void;\n reportError(e: any): void;\n setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n structuredClone(value: any, options?: StructuredSerializeOptions): any;\n}\n\ninterface WindowSessionStorage {\n readonly sessionStorage: Storage;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */\ninterface Worker extends EventTarget, AbstractWorker {\n onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;\n /** Clones message and transmits it to worker\'s global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /** Aborts worker\'s associated global environment. */\n terminate(): void;\n addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Worker: {\n prototype: Worker;\n new(scriptURL: string | URL, options?: WorkerOptions): Worker;\n};\n\n/** Available only in secure contexts. */\ninterface Worklet {\n /**\n * Loads and executes the module script given by moduleURL into all of worklet\'s global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes.\n *\n * The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".\n *\n * Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing.\n */\n addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;\n}\n\ndeclare var Worklet: {\n prototype: Worklet;\n new(): Worklet;\n};\n\n/** This Streams API interface provides\xa0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */\ninterface WritableStream<W = any> {\n readonly locked: boolean;\n abort(reason?: any): Promise<void>;\n close(): Promise<void>;\n getWriter(): WritableStreamDefaultWriter<W>;\n}\n\ndeclare var WritableStream: {\n prototype: WritableStream;\n new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;\n};\n\n/** This Streams API interface represents a controller allowing control of a\xa0WritableStream\'s state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */\ninterface WritableStreamDefaultController {\n readonly signal: AbortSignal;\n error(e?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n prototype: WritableStreamDefaultController;\n new(): WritableStreamDefaultController;\n};\n\n/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */\ninterface WritableStreamDefaultWriter<W = any> {\n readonly closed: Promise<undefined>;\n readonly desiredSize: number | null;\n readonly ready: Promise<undefined>;\n abort(reason?: any): Promise<void>;\n close(): Promise<void>;\n releaseLock(): void;\n write(chunk?: W): Promise<void>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n prototype: WritableStreamDefaultWriter;\n new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;\n};\n\n/** An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. */\ninterface XMLDocument extends Document {\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLDocument: {\n prototype: XMLDocument;\n new(): XMLDocument;\n};\n\ninterface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {\n "readystatechange": Event;\n}\n\n/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */\ninterface XMLHttpRequest extends XMLHttpRequestEventTarget {\n onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n /** Returns client\'s state. */\n readonly readyState: number;\n /** Returns the response body. */\n readonly response: any;\n /**\n * Returns response as text.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".\n */\n readonly responseText: string;\n /**\n * Returns the response type.\n *\n * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".\n *\n * When set: setting to "document" is ignored if current global object is not a Window object.\n *\n * When set: throws an "InvalidStateError" DOMException if state is loading or done.\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n */\n responseType: XMLHttpRequestResponseType;\n readonly responseURL: string;\n /**\n * Returns the response as document.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".\n */\n readonly responseXML: Document | null;\n readonly status: number;\n readonly statusText: string;\n /**\n * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this\'s synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n */\n timeout: number;\n /** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */\n readonly upload: XMLHttpRequestUpload;\n /**\n * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.\n *\n * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.\n */\n withCredentials: boolean;\n /** Cancels any network activity. */\n abort(): void;\n getAllResponseHeaders(): string;\n getResponseHeader(name: string): string | null;\n /**\n * Sets the request method, request URL, and synchronous flag.\n *\n * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.\n *\n * Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.\n *\n * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.\n */\n open(method: string, url: string | URL): void;\n open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;\n /**\n * Acts as if the `Content-Type` header value for a response is mime. (It does not change the header.)\n *\n * Throws an "InvalidStateError" DOMException if state is loading or done.\n */\n overrideMimeType(mime: string): void;\n /**\n * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n */\n send(body?: Document | XMLHttpRequestBodyInit | null): void;\n /**\n * Combines a header in author request headers.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n *\n * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.\n */\n setRequestHeader(name: string, value: string): void;\n readonly UNSENT: 0;\n readonly OPENED: 1;\n readonly HEADERS_RECEIVED: 2;\n readonly LOADING: 3;\n readonly DONE: 4;\n addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequest: {\n prototype: XMLHttpRequest;\n new(): XMLHttpRequest;\n readonly UNSENT: 0;\n readonly OPENED: 1;\n readonly HEADERS_RECEIVED: 2;\n readonly LOADING: 3;\n readonly DONE: 4;\n};\n\ninterface XMLHttpRequestEventTargetEventMap {\n "abort": ProgressEvent<XMLHttpRequestEventTarget>;\n "error": ProgressEvent<XMLHttpRequestEventTarget>;\n "load": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadend": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;\n "progress": ProgressEvent<XMLHttpRequestEventTarget>;\n "timeout": ProgressEvent<XMLHttpRequestEventTarget>;\n}\n\ninterface XMLHttpRequestEventTarget extends EventTarget {\n onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestEventTarget: {\n prototype: XMLHttpRequestEventTarget;\n new(): XMLHttpRequestEventTarget;\n};\n\ninterface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestUpload: {\n prototype: XMLHttpRequestUpload;\n new(): XMLHttpRequestUpload;\n};\n\n/** Provides the serializeToString() method to construct an XML string representing a DOM tree. */\ninterface XMLSerializer {\n serializeToString(root: Node): string;\n}\n\ndeclare var XMLSerializer: {\n prototype: XMLSerializer;\n new(): XMLSerializer;\n};\n\n/** The\xa0XPathEvaluator interface allows to compile and evaluate XPath expressions. */\ninterface XPathEvaluator extends XPathEvaluatorBase {\n}\n\ndeclare var XPathEvaluator: {\n prototype: XPathEvaluator;\n new(): XPathEvaluator;\n};\n\ninterface XPathEvaluatorBase {\n createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;\n createNSResolver(nodeResolver: Node): XPathNSResolver;\n evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;\n}\n\n/** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */\ninterface XPathExpression {\n evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;\n}\n\ndeclare var XPathExpression: {\n prototype: XPathExpression;\n new(): XPathExpression;\n};\n\n/** The results generated by evaluating an XPath expression within the context of a given node. */\ninterface XPathResult {\n readonly booleanValue: boolean;\n readonly invalidIteratorState: boolean;\n readonly numberValue: number;\n readonly resultType: number;\n readonly singleNodeValue: Node | null;\n readonly snapshotLength: number;\n readonly stringValue: string;\n iterateNext(): Node | null;\n snapshotItem(index: number): Node | null;\n readonly ANY_TYPE: 0;\n readonly NUMBER_TYPE: 1;\n readonly STRING_TYPE: 2;\n readonly BOOLEAN_TYPE: 3;\n readonly UNORDERED_NODE_ITERATOR_TYPE: 4;\n readonly ORDERED_NODE_ITERATOR_TYPE: 5;\n readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;\n readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;\n readonly ANY_UNORDERED_NODE_TYPE: 8;\n readonly FIRST_ORDERED_NODE_TYPE: 9;\n}\n\ndeclare var XPathResult: {\n prototype: XPathResult;\n new(): XPathResult;\n readonly ANY_TYPE: 0;\n readonly NUMBER_TYPE: 1;\n readonly STRING_TYPE: 2;\n readonly BOOLEAN_TYPE: 3;\n readonly UNORDERED_NODE_ITERATOR_TYPE: 4;\n readonly ORDERED_NODE_ITERATOR_TYPE: 5;\n readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;\n readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;\n readonly ANY_UNORDERED_NODE_TYPE: 8;\n readonly FIRST_ORDERED_NODE_TYPE: 9;\n};\n\n/** An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents. */\ninterface XSLTProcessor {\n clearParameters(): void;\n getParameter(namespaceURI: string | null, localName: string): any;\n importStylesheet(style: Node): void;\n removeParameter(namespaceURI: string | null, localName: string): void;\n reset(): void;\n setParameter(namespaceURI: string | null, localName: string, value: any): void;\n transformToDocument(source: Node): Document;\n transformToFragment(source: Node, output: Document): DocumentFragment;\n}\n\ndeclare var XSLTProcessor: {\n prototype: XSLTProcessor;\n new(): XSLTProcessor;\n};\n\ninterface Console {\n assert(condition?: boolean, ...data: any[]): void;\n clear(): void;\n count(label?: string): void;\n countReset(label?: string): void;\n debug(...data: any[]): void;\n dir(item?: any, options?: any): void;\n dirxml(...data: any[]): void;\n error(...data: any[]): void;\n group(...data: any[]): void;\n groupCollapsed(...data: any[]): void;\n groupEnd(): void;\n info(...data: any[]): void;\n log(...data: any[]): void;\n table(tabularData?: any, properties?: string[]): void;\n time(label?: string): void;\n timeEnd(label?: string): void;\n timeLog(label?: string, ...data: any[]): void;\n timeStamp(label?: string): void;\n trace(...data: any[]): void;\n warn(...data: any[]): void;\n}\n\ndeclare var console: Console;\n\n/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */\ndeclare namespace CSS {\n function escape(ident: string): string;\n function supports(property: string, value: string): boolean;\n function supports(conditionText: string): boolean;\n}\n\ndeclare namespace WebAssembly {\n interface CompileError extends Error {\n }\n\n var CompileError: {\n prototype: CompileError;\n new(message?: string): CompileError;\n (message?: string): CompileError;\n };\n\n interface Global {\n value: any;\n valueOf(): any;\n }\n\n var Global: {\n prototype: Global;\n new(descriptor: GlobalDescriptor, v?: any): Global;\n };\n\n interface Instance {\n readonly exports: Exports;\n }\n\n var Instance: {\n prototype: Instance;\n new(module: Module, importObject?: Imports): Instance;\n };\n\n interface LinkError extends Error {\n }\n\n var LinkError: {\n prototype: LinkError;\n new(message?: string): LinkError;\n (message?: string): LinkError;\n };\n\n interface Memory {\n readonly buffer: ArrayBuffer;\n grow(delta: number): number;\n }\n\n var Memory: {\n prototype: Memory;\n new(descriptor: MemoryDescriptor): Memory;\n };\n\n interface Module {\n }\n\n var Module: {\n prototype: Module;\n new(bytes: BufferSource): Module;\n customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];\n exports(moduleObject: Module): ModuleExportDescriptor[];\n imports(moduleObject: Module): ModuleImportDescriptor[];\n };\n\n interface RuntimeError extends Error {\n }\n\n var RuntimeError: {\n prototype: RuntimeError;\n new(message?: string): RuntimeError;\n (message?: string): RuntimeError;\n };\n\n interface Table {\n readonly length: number;\n get(index: number): any;\n grow(delta: number, value?: any): number;\n set(index: number, value?: any): void;\n }\n\n var Table: {\n prototype: Table;\n new(descriptor: TableDescriptor, value?: any): Table;\n };\n\n interface GlobalDescriptor {\n mutable?: boolean;\n value: ValueType;\n }\n\n interface MemoryDescriptor {\n initial: number;\n maximum?: number;\n shared?: boolean;\n }\n\n interface ModuleExportDescriptor {\n kind: ImportExportKind;\n name: string;\n }\n\n interface ModuleImportDescriptor {\n kind: ImportExportKind;\n module: string;\n name: string;\n }\n\n interface TableDescriptor {\n element: TableKind;\n initial: number;\n maximum?: number;\n }\n\n interface WebAssemblyInstantiatedSource {\n instance: Instance;\n module: Module;\n }\n\n type ImportExportKind = "function" | "global" | "memory" | "table";\n type TableKind = "anyfunc" | "externref";\n type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";\n type ExportValue = Function | Global | Memory | Table;\n type Exports = Record<string, ExportValue>;\n type ImportValue = ExportValue | number;\n type Imports = Record<string, ModuleImports>;\n type ModuleImports = Record<string, ImportValue>;\n function compile(bytes: BufferSource): Promise<Module>;\n function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;\n function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;\n function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function validate(bytes: BufferSource): boolean;\n}\n\ninterface BlobCallback {\n (blob: Blob | null): void;\n}\n\ninterface CustomElementConstructor {\n new (...params: any[]): HTMLElement;\n}\n\ninterface DecodeErrorCallback {\n (error: DOMException): void;\n}\n\ninterface DecodeSuccessCallback {\n (decodedData: AudioBuffer): void;\n}\n\ninterface ErrorCallback {\n (err: DOMException): void;\n}\n\ninterface FileCallback {\n (file: File): void;\n}\n\ninterface FileSystemEntriesCallback {\n (entries: FileSystemEntry[]): void;\n}\n\ninterface FileSystemEntryCallback {\n (entry: FileSystemEntry): void;\n}\n\ninterface FrameRequestCallback {\n (time: DOMHighResTimeStamp): void;\n}\n\ninterface FunctionStringCallback {\n (data: string): void;\n}\n\ninterface IdleRequestCallback {\n (deadline: IdleDeadline): void;\n}\n\ninterface IntersectionObserverCallback {\n (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;\n}\n\ninterface LockGrantedCallback {\n (lock: Lock | null): any;\n}\n\ninterface MediaSessionActionHandler {\n (details: MediaSessionActionDetails): void;\n}\n\ninterface MutationCallback {\n (mutations: MutationRecord[], observer: MutationObserver): void;\n}\n\ninterface NotificationPermissionCallback {\n (permission: NotificationPermission): void;\n}\n\ninterface OnBeforeUnloadEventHandlerNonNull {\n (event: Event): string | null;\n}\n\ninterface OnErrorEventHandlerNonNull {\n (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;\n}\n\ninterface PerformanceObserverCallback {\n (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;\n}\n\ninterface PositionCallback {\n (position: GeolocationPosition): void;\n}\n\ninterface PositionErrorCallback {\n (positionError: GeolocationPositionError): void;\n}\n\ninterface QueuingStrategySize<T = any> {\n (chunk: T): number;\n}\n\ninterface RTCPeerConnectionErrorCallback {\n (error: DOMException): void;\n}\n\ninterface RTCSessionDescriptionCallback {\n (description: RTCSessionDescriptionInit): void;\n}\n\ninterface RemotePlaybackAvailabilityCallback {\n (available: boolean): void;\n}\n\ninterface ResizeObserverCallback {\n (entries: ResizeObserverEntry[], observer: ResizeObserver): void;\n}\n\ninterface TransformerFlushCallback<O> {\n (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface TransformerStartCallback<O> {\n (controller: TransformStreamDefaultController<O>): any;\n}\n\ninterface TransformerTransformCallback<I, O> {\n (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkAbortCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkCloseCallback {\n (): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkStartCallback {\n (controller: WritableStreamDefaultController): any;\n}\n\ninterface UnderlyingSinkWriteCallback<W> {\n (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceCancelCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourcePullCallback<R> {\n (controller: ReadableStreamController<R>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceStartCallback<R> {\n (controller: ReadableStreamController<R>): any;\n}\n\ninterface VideoFrameRequestCallback {\n (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;\n}\n\ninterface VoidFunction {\n (): void;\n}\n\ninterface HTMLElementTagNameMap {\n "a": HTMLAnchorElement;\n "abbr": HTMLElement;\n "address": HTMLElement;\n "area": HTMLAreaElement;\n "article": HTMLElement;\n "aside": HTMLElement;\n "audio": HTMLAudioElement;\n "b": HTMLElement;\n "base": HTMLBaseElement;\n "bdi": HTMLElement;\n "bdo": HTMLElement;\n "blockquote": HTMLQuoteElement;\n "body": HTMLBodyElement;\n "br": HTMLBRElement;\n "button": HTMLButtonElement;\n "canvas": HTMLCanvasElement;\n "caption": HTMLTableCaptionElement;\n "cite": HTMLElement;\n "code": HTMLElement;\n "col": HTMLTableColElement;\n "colgroup": HTMLTableColElement;\n "data": HTMLDataElement;\n "datalist": HTMLDataListElement;\n "dd": HTMLElement;\n "del": HTMLModElement;\n "details": HTMLDetailsElement;\n "dfn": HTMLElement;\n "dialog": HTMLDialogElement;\n "div": HTMLDivElement;\n "dl": HTMLDListElement;\n "dt": HTMLElement;\n "em": HTMLElement;\n "embed": HTMLEmbedElement;\n "fieldset": HTMLFieldSetElement;\n "figcaption": HTMLElement;\n "figure": HTMLElement;\n "footer": HTMLElement;\n "form": HTMLFormElement;\n "h1": HTMLHeadingElement;\n "h2": HTMLHeadingElement;\n "h3": HTMLHeadingElement;\n "h4": HTMLHeadingElement;\n "h5": HTMLHeadingElement;\n "h6": HTMLHeadingElement;\n "head": HTMLHeadElement;\n "header": HTMLElement;\n "hgroup": HTMLElement;\n "hr": HTMLHRElement;\n "html": HTMLHtmlElement;\n "i": HTMLElement;\n "iframe": HTMLIFrameElement;\n "img": HTMLImageElement;\n "input": HTMLInputElement;\n "ins": HTMLModElement;\n "kbd": HTMLElement;\n "label": HTMLLabelElement;\n "legend": HTMLLegendElement;\n "li": HTMLLIElement;\n "link": HTMLLinkElement;\n "main": HTMLElement;\n "map": HTMLMapElement;\n "mark": HTMLElement;\n "menu": HTMLMenuElement;\n "meta": HTMLMetaElement;\n "meter": HTMLMeterElement;\n "nav": HTMLElement;\n "noscript": HTMLElement;\n "object": HTMLObjectElement;\n "ol": HTMLOListElement;\n "optgroup": HTMLOptGroupElement;\n "option": HTMLOptionElement;\n "output": HTMLOutputElement;\n "p": HTMLParagraphElement;\n "picture": HTMLPictureElement;\n "pre": HTMLPreElement;\n "progress": HTMLProgressElement;\n "q": HTMLQuoteElement;\n "rp": HTMLElement;\n "rt": HTMLElement;\n "ruby": HTMLElement;\n "s": HTMLElement;\n "samp": HTMLElement;\n "script": HTMLScriptElement;\n "section": HTMLElement;\n "select": HTMLSelectElement;\n "slot": HTMLSlotElement;\n "small": HTMLElement;\n "source": HTMLSourceElement;\n "span": HTMLSpanElement;\n "strong": HTMLElement;\n "style": HTMLStyleElement;\n "sub": HTMLElement;\n "summary": HTMLElement;\n "sup": HTMLElement;\n "table": HTMLTableElement;\n "tbody": HTMLTableSectionElement;\n "td": HTMLTableCellElement;\n "template": HTMLTemplateElement;\n "textarea": HTMLTextAreaElement;\n "tfoot": HTMLTableSectionElement;\n "th": HTMLTableCellElement;\n "thead": HTMLTableSectionElement;\n "time": HTMLTimeElement;\n "title": HTMLTitleElement;\n "tr": HTMLTableRowElement;\n "track": HTMLTrackElement;\n "u": HTMLElement;\n "ul": HTMLUListElement;\n "var": HTMLElement;\n "video": HTMLVideoElement;\n "wbr": HTMLElement;\n}\n\ninterface HTMLElementDeprecatedTagNameMap {\n "acronym": HTMLElement;\n "applet": HTMLUnknownElement;\n "basefont": HTMLElement;\n "bgsound": HTMLUnknownElement;\n "big": HTMLElement;\n "blink": HTMLUnknownElement;\n "center": HTMLElement;\n "dir": HTMLDirectoryElement;\n "font": HTMLFontElement;\n "frame": HTMLFrameElement;\n "frameset": HTMLFrameSetElement;\n "isindex": HTMLUnknownElement;\n "keygen": HTMLUnknownElement;\n "listing": HTMLPreElement;\n "marquee": HTMLMarqueeElement;\n "menuitem": HTMLElement;\n "multicol": HTMLUnknownElement;\n "nextid": HTMLUnknownElement;\n "nobr": HTMLElement;\n "noembed": HTMLElement;\n "noframes": HTMLElement;\n "param": HTMLParamElement;\n "plaintext": HTMLElement;\n "rb": HTMLElement;\n "rtc": HTMLElement;\n "spacer": HTMLUnknownElement;\n "strike": HTMLElement;\n "tt": HTMLElement;\n "xmp": HTMLPreElement;\n}\n\ninterface SVGElementTagNameMap {\n "a": SVGAElement;\n "animate": SVGAnimateElement;\n "animateMotion": SVGAnimateMotionElement;\n "animateTransform": SVGAnimateTransformElement;\n "circle": SVGCircleElement;\n "clipPath": SVGClipPathElement;\n "defs": SVGDefsElement;\n "desc": SVGDescElement;\n "ellipse": SVGEllipseElement;\n "feBlend": SVGFEBlendElement;\n "feColorMatrix": SVGFEColorMatrixElement;\n "feComponentTransfer": SVGFEComponentTransferElement;\n "feComposite": SVGFECompositeElement;\n "feConvolveMatrix": SVGFEConvolveMatrixElement;\n "feDiffuseLighting": SVGFEDiffuseLightingElement;\n "feDisplacementMap": SVGFEDisplacementMapElement;\n "feDistantLight": SVGFEDistantLightElement;\n "feDropShadow": SVGFEDropShadowElement;\n "feFlood": SVGFEFloodElement;\n "feFuncA": SVGFEFuncAElement;\n "feFuncB": SVGFEFuncBElement;\n "feFuncG": SVGFEFuncGElement;\n "feFuncR": SVGFEFuncRElement;\n "feGaussianBlur": SVGFEGaussianBlurElement;\n "feImage": SVGFEImageElement;\n "feMerge": SVGFEMergeElement;\n "feMergeNode": SVGFEMergeNodeElement;\n "feMorphology": SVGFEMorphologyElement;\n "feOffset": SVGFEOffsetElement;\n "fePointLight": SVGFEPointLightElement;\n "feSpecularLighting": SVGFESpecularLightingElement;\n "feSpotLight": SVGFESpotLightElement;\n "feTile": SVGFETileElement;\n "feTurbulence": SVGFETurbulenceElement;\n "filter": SVGFilterElement;\n "foreignObject": SVGForeignObjectElement;\n "g": SVGGElement;\n "image": SVGImageElement;\n "line": SVGLineElement;\n "linearGradient": SVGLinearGradientElement;\n "marker": SVGMarkerElement;\n "mask": SVGMaskElement;\n "metadata": SVGMetadataElement;\n "mpath": SVGMPathElement;\n "path": SVGPathElement;\n "pattern": SVGPatternElement;\n "polygon": SVGPolygonElement;\n "polyline": SVGPolylineElement;\n "radialGradient": SVGRadialGradientElement;\n "rect": SVGRectElement;\n "script": SVGScriptElement;\n "set": SVGSetElement;\n "stop": SVGStopElement;\n "style": SVGStyleElement;\n "svg": SVGSVGElement;\n "switch": SVGSwitchElement;\n "symbol": SVGSymbolElement;\n "text": SVGTextElement;\n "textPath": SVGTextPathElement;\n "title": SVGTitleElement;\n "tspan": SVGTSpanElement;\n "use": SVGUseElement;\n "view": SVGViewElement;\n}\n\ninterface MathMLElementTagNameMap {\n "annotation": MathMLElement;\n "annotation-xml": MathMLElement;\n "maction": MathMLElement;\n "math": MathMLElement;\n "merror": MathMLElement;\n "mfrac": MathMLElement;\n "mi": MathMLElement;\n "mmultiscripts": MathMLElement;\n "mn": MathMLElement;\n "mo": MathMLElement;\n "mover": MathMLElement;\n "mpadded": MathMLElement;\n "mphantom": MathMLElement;\n "mprescripts": MathMLElement;\n "mroot": MathMLElement;\n "mrow": MathMLElement;\n "ms": MathMLElement;\n "mspace": MathMLElement;\n "msqrt": MathMLElement;\n "mstyle": MathMLElement;\n "msub": MathMLElement;\n "msubsup": MathMLElement;\n "msup": MathMLElement;\n "mtable": MathMLElement;\n "mtd": MathMLElement;\n "mtext": MathMLElement;\n "mtr": MathMLElement;\n "munder": MathMLElement;\n "munderover": MathMLElement;\n "semantics": MathMLElement;\n}\n\n/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */\ntype ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;\n\ndeclare var Audio: {\n new(src?: string): HTMLAudioElement;\n};\ndeclare var Image: {\n new(width?: number, height?: number): HTMLImageElement;\n};\ndeclare var Option: {\n new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;\n};\n/** @deprecated This is a legacy alias of `navigator`. */\ndeclare var clientInformation: Navigator;\n/** Returns true if the window has been closed, false otherwise. */\ndeclare var closed: boolean;\n/** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */\ndeclare var customElements: CustomElementRegistry;\ndeclare var devicePixelRatio: number;\ndeclare var document: Document;\n/** @deprecated */\ndeclare var event: Event | undefined;\n/** @deprecated */\ndeclare var external: External;\ndeclare var frameElement: Element | null;\ndeclare var frames: WindowProxy;\ndeclare var history: History;\ndeclare var innerHeight: number;\ndeclare var innerWidth: number;\ndeclare var length: number;\ndeclare var location: Location;\n/** Returns true if the location bar is visible; otherwise, returns false. */\ndeclare var locationbar: BarProp;\n/** Returns true if the menu bar is visible; otherwise, returns false. */\ndeclare var menubar: BarProp;\n/** @deprecated */\ndeclare const name: void;\ndeclare var navigator: Navigator;\n/** Available only in secure contexts. */\ndeclare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\n/** Available only in secure contexts. */\ndeclare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n/** @deprecated */\ndeclare var onorientationchange: ((this: Window, ev: Event) => any) | null;\ndeclare var opener: any;\n/** @deprecated */\ndeclare var orientation: number;\ndeclare var outerHeight: number;\ndeclare var outerWidth: number;\n/** @deprecated This is a legacy alias of `scrollX`. */\ndeclare var pageXOffset: number;\n/** @deprecated This is a legacy alias of `scrollY`. */\ndeclare var pageYOffset: number;\n/**\n * Refers to either the parent WindowProxy, or itself.\n *\n * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.\n */\ndeclare var parent: WindowProxy;\n/** Returns true if the personal bar is visible; otherwise, returns false. */\ndeclare var personalbar: BarProp;\ndeclare var screen: Screen;\ndeclare var screenLeft: number;\ndeclare var screenTop: number;\ndeclare var screenX: number;\ndeclare var screenY: number;\ndeclare var scrollX: number;\ndeclare var scrollY: number;\n/** Returns true if the scrollbars are visible; otherwise, returns false. */\ndeclare var scrollbars: BarProp;\ndeclare var self: Window & typeof globalThis;\ndeclare var speechSynthesis: SpeechSynthesis;\n/** @deprecated */\ndeclare var status: string;\n/** Returns true if the status bar is visible; otherwise, returns false. */\ndeclare var statusbar: BarProp;\n/** Returns true if the toolbar is visible; otherwise, returns false. */\ndeclare var toolbar: BarProp;\ndeclare var top: WindowProxy | null;\ndeclare var visualViewport: VisualViewport | null;\ndeclare var window: Window & typeof globalThis;\ndeclare function alert(message?: any): void;\ndeclare function blur(): void;\ndeclare function cancelIdleCallback(handle: number): void;\n/** @deprecated */\ndeclare function captureEvents(): void;\n/** Closes the window. */\ndeclare function close(): void;\ndeclare function confirm(message?: string): boolean;\n/** Moves the focus to the window\'s browsing context, if any. */\ndeclare function focus(): void;\ndeclare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\ndeclare function getSelection(): Selection | null;\ndeclare function matchMedia(query: string): MediaQueryList;\ndeclare function moveBy(x: number, y: number): void;\ndeclare function moveTo(x: number, y: number): void;\ndeclare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;\n/**\n * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.\n *\n * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.\n *\n * If the origin of the target window doesn\'t match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".\n *\n * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.\n */\ndeclare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;\ndeclare function postMessage(message: any, options?: WindowPostMessageOptions): void;\ndeclare function print(): void;\ndeclare function prompt(message?: string, _default?: string): string | null;\n/** @deprecated */\ndeclare function releaseEvents(): void;\ndeclare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;\ndeclare function resizeBy(x: number, y: number): void;\ndeclare function resizeTo(width: number, height: number): void;\ndeclare function scroll(options?: ScrollToOptions): void;\ndeclare function scroll(x: number, y: number): void;\ndeclare function scrollBy(options?: ScrollToOptions): void;\ndeclare function scrollBy(x: number, y: number): void;\ndeclare function scrollTo(options?: ScrollToOptions): void;\ndeclare function scrollTo(x: number, y: number): void;\n/** Cancels the document load. */\ndeclare function stop(): void;\ndeclare function toString(): string;\n/** Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */\ndeclare function dispatchEvent(event: Event): boolean;\ndeclare function cancelAnimationFrame(handle: number): void;\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\n/**\n * Fires when the user aborts the download.\n * @param ev The event.\n */\ndeclare var onabort: ((this: Window, ev: UIEvent) => any) | null;\ndeclare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;\n/**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n */\ndeclare var onblur: ((this: Window, ev: FocusEvent) => any) | null;\ndeclare var oncancel: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when playback is possible, but would require further buffering.\n * @param ev The event.\n */\ndeclare var oncanplay: ((this: Window, ev: Event) => any) | null;\ndeclare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the contents of the object or selection have changed.\n * @param ev The event.\n */\ndeclare var onchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user clicks the left mouse button on the object\n * @param ev The mouse event.\n */\ndeclare var onclick: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onclose: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n * @param ev The mouse event.\n */\ndeclare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;\ndeclare var oncuechange: ((this: Window, ev: Event) => any) | null;\ndeclare var oncut: ((this: Window, ev: ClipboardEvent) => any) | null;\n/**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n */\ndeclare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n */\ndeclare var ondrag: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the source object when the user releases the mouse at the close of a drag operation.\n * @param ev The event.\n */\ndeclare var ondragend: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target element when the user drags the object to a valid drop target.\n * @param ev The drag event.\n */\ndeclare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n * @param ev The drag event.\n */\ndeclare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target element continuously while the user drags the object over a valid drop target.\n * @param ev The event.\n */\ndeclare var ondragover: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the source object when the user starts to drag a text selection or selected object.\n * @param ev The event.\n */\ndeclare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondrop: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n */\ndeclare var ondurationchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the media element is reset to its initial state.\n * @param ev The event.\n */\ndeclare var onemptied: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the end of playback is reached.\n * @param ev The event\n */\ndeclare var onended: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n */\ndeclare var onerror: OnErrorEventHandler;\n/**\n * Fires when the object receives focus.\n * @param ev The event.\n */\ndeclare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;\ndeclare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;\ndeclare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var oninput: ((this: Window, ev: Event) => any) | null;\ndeclare var oninvalid: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n */\ndeclare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n * @deprecated\n */\ndeclare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n */\ndeclare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n */\ndeclare var onload: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when media data is loaded at the current playback position.\n * @param ev The event.\n */\ndeclare var onloadeddata: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the duration and dimensions of the media have been determined.\n * @param ev The event.\n */\ndeclare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n */\ndeclare var onloadstart: ((this: Window, ev: Event) => any) | null;\ndeclare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Fires when the user clicks the object with either mouse button.\n * @param ev The mouse event.\n */\ndeclare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse over the object.\n * @param ev The mouse event.\n */\ndeclare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse pointer outside the boundaries of the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse pointer into the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user releases a mouse button while the mouse is over the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onpaste: ((this: Window, ev: ClipboardEvent) => any) | null;\n/**\n * Occurs when playback is paused.\n * @param ev The event.\n */\ndeclare var onpause: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the play method is requested.\n * @param ev The event.\n */\ndeclare var onplay: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n */\ndeclare var onplaying: ((this: Window, ev: Event) => any) | null;\ndeclare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n */\ndeclare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;\n/**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n */\ndeclare var onratechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user resets a form.\n * @param ev The event.\n */\ndeclare var onreset: ((this: Window, ev: Event) => any) | null;\ndeclare var onresize: ((this: Window, ev: UIEvent) => any) | null;\n/**\n * Fires when the user repositions the scroll box in the scroll bar on the object.\n * @param ev The event.\n */\ndeclare var onscroll: ((this: Window, ev: Event) => any) | null;\ndeclare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;\n/**\n * Occurs when the seek operation ends.\n * @param ev The event.\n */\ndeclare var onseeked: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n */\ndeclare var onseeking: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the current selection changes.\n * @param ev The event.\n */\ndeclare var onselect: ((this: Window, ev: Event) => any) | null;\ndeclare var onselectionchange: ((this: Window, ev: Event) => any) | null;\ndeclare var onselectstart: ((this: Window, ev: Event) => any) | null;\ndeclare var onslotchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the download has stopped.\n * @param ev The event.\n */\ndeclare var onstalled: ((this: Window, ev: Event) => any) | null;\ndeclare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;\n/**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n */\ndeclare var onsuspend: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n */\ndeclare var ontimeupdate: ((this: Window, ev: Event) => any) | null;\ndeclare var ontoggle: ((this: Window, ev: Event) => any) | null;\ndeclare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;\ndeclare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;\n/**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n */\ndeclare var onvolumechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when playback stops because the next frame of a video resource is not available.\n * @param ev The event.\n */\ndeclare var onwaiting: ((this: Window, ev: Event) => any) | null;\n/** @deprecated This is a legacy alias of `onanimationend`. */\ndeclare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;\n/** @deprecated This is a legacy alias of `onanimationiteration`. */\ndeclare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;\n/** @deprecated This is a legacy alias of `onanimationstart`. */\ndeclare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;\n/** @deprecated This is a legacy alias of `ontransitionend`. */\ndeclare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;\ndeclare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;\ndeclare var onafterprint: ((this: Window, ev: Event) => any) | null;\ndeclare var onbeforeprint: ((this: Window, ev: Event) => any) | null;\ndeclare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;\ndeclare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;\ndeclare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;\ndeclare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;\ndeclare var onlanguagechange: ((this: Window, ev: Event) => any) | null;\ndeclare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;\ndeclare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;\ndeclare var onoffline: ((this: Window, ev: Event) => any) | null;\ndeclare var ononline: ((this: Window, ev: Event) => any) | null;\ndeclare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;\ndeclare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;\ndeclare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;\ndeclare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;\ndeclare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onunload: ((this: Window, ev: Event) => any) | null;\ndeclare var localStorage: Storage;\n/** Available only in secure contexts. */\ndeclare var caches: CacheStorage;\ndeclare var crossOriginIsolated: boolean;\ndeclare var crypto: Crypto;\ndeclare var indexedDB: IDBFactory;\ndeclare var isSecureContext: boolean;\ndeclare var origin: string;\ndeclare var performance: Performance;\ndeclare function atob(data: string): string;\ndeclare function btoa(data: string): string;\ndeclare function clearInterval(id: number | undefined): void;\ndeclare function clearTimeout(id: number | undefined): void;\ndeclare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\ndeclare function queueMicrotask(callback: VoidFunction): void;\ndeclare function reportError(e: any): void;\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function structuredClone(value: any, options?: StructuredSerializeOptions): any;\ndeclare var sessionStorage: Storage;\ndeclare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\ndeclare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\ndeclare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\ndeclare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\ntype AlgorithmIdentifier = Algorithm | string;\ntype BigInteger = Uint8Array;\ntype BinaryData = ArrayBuffer | ArrayBufferView;\ntype BlobPart = BufferSource | Blob | string;\ntype BodyInit = ReadableStream | XMLHttpRequestBodyInit;\ntype BufferSource = ArrayBufferView | ArrayBuffer;\ntype COSEAlgorithmIdentifier = number;\ntype CSSNumberish = number;\ntype CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;\ntype ClipboardItemData = Promise<string | Blob>;\ntype ClipboardItems = ClipboardItem[];\ntype ConstrainBoolean = boolean | ConstrainBooleanParameters;\ntype ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;\ntype ConstrainDouble = number | ConstrainDoubleRange;\ntype ConstrainULong = number | ConstrainULongRange;\ntype DOMHighResTimeStamp = number;\ntype EpochTimeStamp = number;\ntype EventListenerOrEventListenerObject = EventListener | EventListenerObject;\ntype Float32List = Float32Array | GLfloat[];\ntype FormDataEntryValue = File | string;\ntype GLbitfield = number;\ntype GLboolean = boolean;\ntype GLclampf = number;\ntype GLenum = number;\ntype GLfloat = number;\ntype GLint = number;\ntype GLint64 = number;\ntype GLintptr = number;\ntype GLsizei = number;\ntype GLsizeiptr = number;\ntype GLuint = number;\ntype GLuint64 = number;\ntype HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;\ntype HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;\ntype HashAlgorithmIdentifier = AlgorithmIdentifier;\ntype HeadersInit = [string, string][] | Record<string, string> | Headers;\ntype IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];\ntype ImageBitmapSource = CanvasImageSource | Blob | ImageData;\ntype Int32List = Int32Array | GLint[];\ntype LineAndPositionSetting = number | AutoKeyword;\ntype MediaProvider = MediaStream | MediaSource | Blob;\ntype MessageEventSource = WindowProxy | MessagePort | ServiceWorker;\ntype MutationRecordType = "attributes" | "characterData" | "childList";\ntype NamedCurve = string;\ntype OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;\ntype OnErrorEventHandler = OnErrorEventHandlerNonNull | null;\ntype PerformanceEntryList = PerformanceEntry[];\ntype ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;\ntype ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;\ntype ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;\ntype RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype RequestInfo = Request | string;\ntype TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas;\ntype TimerHandler = string | Function;\ntype Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;\ntype Uint32List = Uint32Array | GLuint[];\ntype VibratePattern = number | number[];\ntype WindowProxy = Window;\ntype XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;\ntype AlignSetting = "center" | "end" | "left" | "right" | "start";\ntype AnimationPlayState = "finished" | "idle" | "paused" | "running";\ntype AnimationReplaceState = "active" | "persisted" | "removed";\ntype AppendMode = "segments" | "sequence";\ntype AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";\ntype AudioContextLatencyCategory = "balanced" | "interactive" | "playback";\ntype AudioContextState = "closed" | "running" | "suspended";\ntype AuthenticatorAttachment = "cross-platform" | "platform";\ntype AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";\ntype AutoKeyword = "auto";\ntype AutomationRate = "a-rate" | "k-rate";\ntype BinaryType = "arraybuffer" | "blob";\ntype BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";\ntype CanPlayTypeResult = "" | "maybe" | "probably";\ntype CanvasDirection = "inherit" | "ltr" | "rtl";\ntype CanvasFillRule = "evenodd" | "nonzero";\ntype CanvasFontKerning = "auto" | "none" | "normal";\ntype CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";\ntype CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";\ntype CanvasLineCap = "butt" | "round" | "square";\ntype CanvasLineJoin = "bevel" | "miter" | "round";\ntype CanvasTextAlign = "center" | "end" | "left" | "right" | "start";\ntype CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";\ntype CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";\ntype ChannelCountMode = "clamped-max" | "explicit" | "max";\ntype ChannelInterpretation = "discrete" | "speakers";\ntype ClientTypes = "all" | "sharedworker" | "window" | "worker";\ntype ColorGamut = "p3" | "rec2020" | "srgb";\ntype ColorSpaceConversion = "default" | "none";\ntype CompositeOperation = "accumulate" | "add" | "replace";\ntype CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";\ntype CredentialMediationRequirement = "optional" | "required" | "silent";\ntype DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";\ntype DirectionSetting = "" | "lr" | "rl";\ntype DisplayCaptureSurfaceType = "browser" | "monitor" | "window";\ntype DistanceModelType = "exponential" | "inverse" | "linear";\ntype DocumentReadyState = "complete" | "interactive" | "loading";\ntype DocumentVisibilityState = "hidden" | "visible";\ntype EndOfStreamError = "decode" | "network";\ntype EndingType = "native" | "transparent";\ntype FileSystemHandleKind = "directory" | "file";\ntype FillMode = "auto" | "backwards" | "both" | "forwards" | "none";\ntype FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";\ntype FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";\ntype FontFaceSetLoadStatus = "loaded" | "loading";\ntype FullscreenNavigationUI = "auto" | "hide" | "show";\ntype GamepadHapticActuatorType = "vibration";\ntype GamepadMappingType = "" | "standard" | "xr-standard";\ntype GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";\ntype HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";\ntype IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";\ntype IDBRequestReadyState = "done" | "pending";\ntype IDBTransactionDurability = "default" | "relaxed" | "strict";\ntype IDBTransactionMode = "readonly" | "readwrite" | "versionchange";\ntype ImageOrientation = "flipY" | "from-image";\ntype ImageSmoothingQuality = "high" | "low" | "medium";\ntype InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend";\ntype IterationCompositeOperation = "accumulate" | "replace";\ntype KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";\ntype KeyType = "private" | "public" | "secret";\ntype KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";\ntype LineAlignSetting = "center" | "end" | "start";\ntype LockMode = "exclusive" | "shared";\ntype MIDIPortConnectionState = "closed" | "open" | "pending";\ntype MIDIPortDeviceState = "connected" | "disconnected";\ntype MIDIPortType = "input" | "output";\ntype MediaDecodingType = "file" | "media-source" | "webrtc";\ntype MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";\ntype MediaEncodingType = "record" | "webrtc";\ntype MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";\ntype MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";\ntype MediaKeySessionType = "persistent-license" | "temporary";\ntype MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";\ntype MediaKeysRequirement = "not-allowed" | "optional" | "required";\ntype MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";\ntype MediaSessionPlaybackState = "none" | "paused" | "playing";\ntype MediaStreamTrackState = "ended" | "live";\ntype NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";\ntype NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";\ntype OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";\ntype OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";\ntype OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";\ntype OverSampleType = "2x" | "4x" | "none";\ntype PanningModelType = "HRTF" | "equalpower";\ntype PaymentComplete = "fail" | "success" | "unknown";\ntype PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";\ntype PermissionState = "denied" | "granted" | "prompt";\ntype PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";\ntype PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";\ntype PredefinedColorSpace = "display-p3" | "srgb";\ntype PremultiplyAlpha = "default" | "none" | "premultiply";\ntype PresentationStyle = "attachment" | "inline" | "unspecified";\ntype PublicKeyCredentialType = "public-key";\ntype PushEncryptionKeyName = "auth" | "p256dh";\ntype RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";\ntype RTCDataChannelState = "closed" | "closing" | "connecting" | "open";\ntype RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";\ntype RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";\ntype RTCEncodedVideoFrameType = "delta" | "empty" | "key";\ntype RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";\ntype RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";\ntype RTCIceComponent = "rtcp" | "rtp";\ntype RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";\ntype RTCIceGathererState = "complete" | "gathering" | "new";\ntype RTCIceGatheringState = "complete" | "gathering" | "new";\ntype RTCIceProtocol = "tcp" | "udp";\ntype RTCIceTcpCandidateType = "active" | "passive" | "so";\ntype RTCIceTransportPolicy = "all" | "relay";\ntype RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";\ntype RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";\ntype RTCPriorityType = "high" | "low" | "medium" | "very-low";\ntype RTCRtcpMuxPolicy = "require";\ntype RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";\ntype RTCSctpTransportState = "closed" | "connected" | "connecting";\ntype RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";\ntype RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";\ntype RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";\ntype RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";\ntype ReadableStreamReaderMode = "byob";\ntype ReadableStreamType = "bytes";\ntype ReadyState = "closed" | "ended" | "open";\ntype RecordingState = "inactive" | "paused" | "recording";\ntype ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";\ntype RemotePlaybackState = "connected" | "connecting" | "disconnected";\ntype RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";\ntype RequestCredentials = "include" | "omit" | "same-origin";\ntype RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";\ntype RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";\ntype RequestRedirect = "error" | "follow" | "manual";\ntype ResidentKeyRequirement = "discouraged" | "preferred" | "required";\ntype ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";\ntype ResizeQuality = "high" | "low" | "medium" | "pixelated";\ntype ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";\ntype ScrollBehavior = "auto" | "smooth";\ntype ScrollLogicalPosition = "center" | "end" | "nearest" | "start";\ntype ScrollRestoration = "auto" | "manual";\ntype ScrollSetting = "" | "up";\ntype SecurityPolicyViolationEventDisposition = "enforce" | "report";\ntype SelectionMode = "end" | "preserve" | "select" | "start";\ntype ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";\ntype ServiceWorkerUpdateViaCache = "all" | "imports" | "none";\ntype ShadowRootMode = "closed" | "open";\ntype SlotAssignmentMode = "manual" | "named";\ntype SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";\ntype TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";\ntype TextTrackMode = "disabled" | "hidden" | "showing";\ntype TouchType = "direct" | "stylus";\ntype TransferFunction = "hlg" | "pq" | "srgb";\ntype UserVerificationRequirement = "discouraged" | "preferred" | "required";\ntype VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";\ntype VideoFacingModeEnum = "environment" | "left" | "right" | "user";\ntype VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";\ntype VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";\ntype WebGLPowerPreference = "default" | "high-performance" | "low-power";\ntype WorkerType = "classic" | "module";\ntype XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";\n',Ea["lib.dom.iterable.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Window Iterable APIs\n/////////////////////////////\n\ninterface AudioParam {\n setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;\n}\n\ninterface AudioParamMap extends ReadonlyMap<string, AudioParam> {\n}\n\ninterface BaseAudioContext {\n createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;\n createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;\n}\n\ninterface CSSKeyframesRule {\n [Symbol.iterator](): IterableIterator<CSSKeyframeRule>;\n}\n\ninterface CSSRuleList {\n [Symbol.iterator](): IterableIterator<CSSRule>;\n}\n\ninterface CSSStyleDeclaration {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface Cache {\n addAll(requests: Iterable<RequestInfo>): Promise<void>;\n}\n\ninterface CanvasPath {\n roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;\n}\n\ninterface CanvasPathDrawingStyles {\n setLineDash(segments: Iterable<number>): void;\n}\n\ninterface DOMRectList {\n [Symbol.iterator](): IterableIterator<DOMRect>;\n}\n\ninterface DOMStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface DOMTokenList {\n [Symbol.iterator](): IterableIterator<string>;\n entries(): IterableIterator<[number, string]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<string>;\n}\n\ninterface DataTransferItemList {\n [Symbol.iterator](): IterableIterator<DataTransferItem>;\n}\n\ninterface EventCounts extends ReadonlyMap<string, number> {\n}\n\ninterface FileList {\n [Symbol.iterator](): IterableIterator<File>;\n}\n\ninterface FontFaceSet extends Set<FontFace> {\n}\n\ninterface FormData {\n [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns a list of keys in the list. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the list. */\n values(): IterableIterator<FormDataEntryValue>;\n}\n\ninterface HTMLAllCollection {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLCollectionBase {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLCollectionOf<T extends Element> {\n [Symbol.iterator](): IterableIterator<T>;\n}\n\ninterface HTMLFormElement {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLSelectElement {\n [Symbol.iterator](): IterableIterator<HTMLOptionElement>;\n}\n\ninterface Headers {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all key/value pairs contained in this object. */\n entries(): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */\n keys(): IterableIterator<string>;\n /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */\n values(): IterableIterator<string>;\n}\n\ninterface IDBDatabase {\n /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */\n transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;\n}\n\ninterface IDBObjectStore {\n /**\n * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;\n}\n\ninterface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {\n}\n\ninterface MIDIOutput {\n send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;\n}\n\ninterface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {\n}\n\ninterface MediaKeyStatusMap {\n [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;\n entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;\n keys(): IterableIterator<BufferSource>;\n values(): IterableIterator<MediaKeyStatus>;\n}\n\ninterface MediaList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface MessageEvent<T = any> {\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;\n}\n\ninterface MimeTypeArray {\n [Symbol.iterator](): IterableIterator<MimeType>;\n}\n\ninterface NamedNodeMap {\n [Symbol.iterator](): IterableIterator<Attr>;\n}\n\ninterface Navigator {\n /** Available only in secure contexts. */\n requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;\n vibrate(pattern: Iterable<number>): boolean;\n}\n\ninterface NodeList {\n [Symbol.iterator](): IterableIterator<Node>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[number, Node]>;\n /** Returns an list of keys in the list. */\n keys(): IterableIterator<number>;\n /** Returns an list of values in the list. */\n values(): IterableIterator<Node>;\n}\n\ninterface NodeListOf<TNode extends Node> {\n [Symbol.iterator](): IterableIterator<TNode>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[number, TNode]>;\n /** Returns an list of keys in the list. */\n keys(): IterableIterator<number>;\n /** Returns an list of values in the list. */\n values(): IterableIterator<TNode>;\n}\n\ninterface Plugin {\n [Symbol.iterator](): IterableIterator<MimeType>;\n}\n\ninterface PluginArray {\n [Symbol.iterator](): IterableIterator<Plugin>;\n}\n\ninterface RTCRtpTransceiver {\n setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;\n}\n\ninterface RTCStatsReport extends ReadonlyMap<string, any> {\n}\n\ninterface SVGLengthList {\n [Symbol.iterator](): IterableIterator<SVGLength>;\n}\n\ninterface SVGNumberList {\n [Symbol.iterator](): IterableIterator<SVGNumber>;\n}\n\ninterface SVGPointList {\n [Symbol.iterator](): IterableIterator<DOMPoint>;\n}\n\ninterface SVGStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface SVGTransformList {\n [Symbol.iterator](): IterableIterator<SVGTransform>;\n}\n\ninterface SourceBufferList {\n [Symbol.iterator](): IterableIterator<SourceBuffer>;\n}\n\ninterface SpeechRecognitionResult {\n [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;\n}\n\ninterface SpeechRecognitionResultList {\n [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;\n}\n\ninterface StyleSheetList {\n [Symbol.iterator](): IterableIterator<CSSStyleSheet>;\n}\n\ninterface SubtleCrypto {\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n}\n\ninterface TextTrackCueList {\n [Symbol.iterator](): IterableIterator<TextTrackCue>;\n}\n\ninterface TextTrackList {\n [Symbol.iterator](): IterableIterator<TextTrack>;\n}\n\ninterface TouchList {\n [Symbol.iterator](): IterableIterator<Touch>;\n}\n\ninterface URLSearchParams {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an array of key, value pairs for every entry in the search params. */\n entries(): IterableIterator<[string, string]>;\n /** Returns a list of keys in the search params. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the search params. */\n values(): IterableIterator<string>;\n}\n\ninterface WEBGL_draw_buffers {\n drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\n}\n\ninterface WEBGL_multi_draw {\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;\n}\n\ninterface WebGL2RenderingContextBase {\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;\n drawBuffers(buffers: Iterable<GLenum>): void;\n getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;\n getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;\n invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;\n invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;\n uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;\n vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;\n}\n\ninterface WebGL2RenderingContextOverloads {\n uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\ninterface WebGLRenderingContextBase {\n vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;\n}\n\ninterface WebGLRenderingContextOverloads {\n uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n}\n',Ea["lib.es2015.collection.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Map<K, V> {\n\n clear(): void;\n /**\n * @returns true if an element in the Map existed and has been removed, or false if the element does not exist.\n */\n delete(key: K): boolean;\n /**\n * Executes a provided function once per each key/value pair in the Map, in insertion order.\n */\n forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;\n /**\n * Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.\n * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.\n */\n get(key: K): V | undefined;\n /**\n * @returns boolean indicating whether an element with the specified key exists or not.\n */\n has(key: K): boolean;\n /**\n * Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.\n */\n set(key: K, value: V): this;\n /**\n * @returns the number of elements in the Map.\n */\n readonly size: number;\n}\n\ninterface MapConstructor {\n new(): Map<any, any>;\n new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;\n readonly prototype: Map<any, any>;\n}\ndeclare var Map: MapConstructor;\n\ninterface ReadonlyMap<K, V> {\n forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;\n get(key: K): V | undefined;\n has(key: K): boolean;\n readonly size: number;\n}\n\ninterface WeakMap<K extends object, V> {\n /**\n * Removes the specified element from the WeakMap.\n * @returns true if the element was successfully removed, or false if it was not present.\n */\n delete(key: K): boolean;\n /**\n * @returns a specified element.\n */\n get(key: K): V | undefined;\n /**\n * @returns a boolean indicating whether an element with the specified key exists or not.\n */\n has(key: K): boolean;\n /**\n * Adds a new element with a specified key and value.\n * @param key Must be an object.\n */\n set(key: K, value: V): this;\n}\n\ninterface WeakMapConstructor {\n new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;\n readonly prototype: WeakMap<object, any>;\n}\ndeclare var WeakMap: WeakMapConstructor;\n\ninterface Set<T> {\n /**\n * Appends a new element with a specified value to the end of the Set.\n */\n add(value: T): this;\n\n clear(): void;\n /**\n * Removes a specified value from the Set.\n * @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.\n */\n delete(value: T): boolean;\n /**\n * Executes a provided function once per each value in the Set object, in insertion order.\n */\n forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;\n /**\n * @returns a boolean indicating whether an element with the specified value exists in the Set or not.\n */\n has(value: T): boolean;\n /**\n * @returns the number of (unique) elements in Set.\n */\n readonly size: number;\n}\n\ninterface SetConstructor {\n new <T = any>(values?: readonly T[] | null): Set<T>;\n readonly prototype: Set<any>;\n}\ndeclare var Set: SetConstructor;\n\ninterface ReadonlySet<T> {\n forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;\n has(value: T): boolean;\n readonly size: number;\n}\n\ninterface WeakSet<T extends object> {\n /**\n * Appends a new object to the end of the WeakSet.\n */\n add(value: T): this;\n /**\n * Removes the specified element from the WeakSet.\n * @returns Returns true if the element existed and has been removed, or false if the element does not exist.\n */\n delete(value: T): boolean;\n /**\n * @returns a boolean indicating whether an object exists in the WeakSet or not.\n */\n has(value: T): boolean;\n}\n\ninterface WeakSetConstructor {\n new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;\n readonly prototype: WeakSet<object>;\n}\ndeclare var WeakSet: WeakSetConstructor;\n',Ea["lib.es2015.core.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Array<T> {\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;\n find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: T, start?: number, end?: number): this;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n}\n\ninterface ArrayConstructor {\n /**\n * Creates an array from an array-like object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from<T>(arrayLike: ArrayLike<T>): T[];\n\n /**\n * Creates an array from an iterable object.\n * @param arrayLike An array-like object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of<T>(...items: T[]): T[];\n}\n\ninterface DateConstructor {\n new (value: number | string | Date): Date;\n}\n\ninterface Function {\n /**\n * Returns the name of the function. Function names are read-only and can not be changed.\n */\n readonly name: string;\n}\n\ninterface Math {\n /**\n * Returns the number of leading zero bits in the 32-bit binary representation of a number.\n * @param x A numeric expression.\n */\n clz32(x: number): number;\n\n /**\n * Returns the result of 32-bit multiplication of two numbers.\n * @param x First number\n * @param y Second number\n */\n imul(x: number, y: number): number;\n\n /**\n * Returns the sign of the x, indicating whether x is positive, negative or zero.\n * @param x The numeric expression to test\n */\n sign(x: number): number;\n\n /**\n * Returns the base 10 logarithm of a number.\n * @param x A numeric expression.\n */\n log10(x: number): number;\n\n /**\n * Returns the base 2 logarithm of a number.\n * @param x A numeric expression.\n */\n log2(x: number): number;\n\n /**\n * Returns the natural logarithm of 1 + x.\n * @param x A numeric expression.\n */\n log1p(x: number): number;\n\n /**\n * Returns the result of (e^x - 1), which is an implementation-dependent approximation to\n * subtracting 1 from the exponential function of x (e raised to the power of x, where e\n * is the base of the natural logarithms).\n * @param x A numeric expression.\n */\n expm1(x: number): number;\n\n /**\n * Returns the hyperbolic cosine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n cosh(x: number): number;\n\n /**\n * Returns the hyperbolic sine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n sinh(x: number): number;\n\n /**\n * Returns the hyperbolic tangent of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n tanh(x: number): number;\n\n /**\n * Returns the inverse hyperbolic cosine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n acosh(x: number): number;\n\n /**\n * Returns the inverse hyperbolic sine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n asinh(x: number): number;\n\n /**\n * Returns the inverse hyperbolic tangent of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n atanh(x: number): number;\n\n /**\n * Returns the square root of the sum of squares of its arguments.\n * @param values Values to compute the square root for.\n * If no arguments are passed, the result is +0.\n * If there is only one argument, the result is the absolute value.\n * If any argument is +Infinity or -Infinity, the result is +Infinity.\n * If any argument is NaN, the result is NaN.\n * If all arguments are either +0 or \u22120, the result is +0.\n */\n hypot(...values: number[]): number;\n\n /**\n * Returns the integral part of the a numeric expression, x, removing any fractional digits.\n * If x is already an integer, the result is x.\n * @param x A numeric expression.\n */\n trunc(x: number): number;\n\n /**\n * Returns the nearest single precision float representation of a number.\n * @param x A numeric expression.\n */\n fround(x: number): number;\n\n /**\n * Returns an implementation-dependent approximation to the cube root of number.\n * @param x A numeric expression.\n */\n cbrt(x: number): number;\n}\n\ninterface NumberConstructor {\n /**\n * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1\n * that is representable as a Number value, which is approximately:\n * 2.2204460492503130808472633361816 x 10\u200d\u2212\u200d16.\n */\n readonly EPSILON: number;\n\n /**\n * Returns true if passed value is finite.\n * Unlike the global isFinite, Number.isFinite doesn\'t forcibly convert the parameter to a\n * number. Only finite values of the type number, result in true.\n * @param number A numeric value.\n */\n isFinite(number: unknown): boolean;\n\n /**\n * Returns true if the value passed is an integer, false otherwise.\n * @param number A numeric value.\n */\n isInteger(number: unknown): boolean;\n\n /**\n * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a\n * number). Unlike the global isNaN(), Number.isNaN() doesn\'t forcefully convert the parameter\n * to a number. Only values of the type number, that are also NaN, result in true.\n * @param number A numeric value.\n */\n isNaN(number: unknown): boolean;\n\n /**\n * Returns true if the value passed is a safe integer.\n * @param number A numeric value.\n */\n isSafeInteger(number: unknown): boolean;\n\n /**\n * The value of the largest integer n such that n and n + 1 are both exactly representable as\n * a Number value.\n * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 \u2212 1.\n */\n readonly MAX_SAFE_INTEGER: number;\n\n /**\n * The value of the smallest integer n such that n and n \u2212 1 are both exactly representable as\n * a Number value.\n * The value of Number.MIN_SAFE_INTEGER is \u22129007199254740991 (\u2212(2^53 \u2212 1)).\n */\n readonly MIN_SAFE_INTEGER: number;\n\n /**\n * Converts a string to a floating-point number.\n * @param string A string that contains a floating-point number.\n */\n parseFloat(string: string): number;\n\n /**\n * Converts A string to an integer.\n * @param string A string to convert into a number.\n * @param radix A value between 2 and 36 that specifies the base of the number in `string`.\n * If this argument is not supplied, strings with a prefix of \'0x\' are considered hexadecimal.\n * All other strings are considered decimal.\n */\n parseInt(string: string, radix?: number): number;\n}\n\ninterface ObjectConstructor {\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param source The source object from which to copy properties.\n */\n assign<T extends {}, U>(target: T, source: U): T & U;\n\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param source1 The first source object from which to copy properties.\n * @param source2 The second source object from which to copy properties.\n */\n assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;\n\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param source1 The first source object from which to copy properties.\n * @param source2 The second source object from which to copy properties.\n * @param source3 The third source object from which to copy properties.\n */\n assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;\n\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param sources One or more source objects from which to copy properties\n */\n assign(target: object, ...sources: any[]): any;\n\n /**\n * Returns an array of all symbol properties found directly on object o.\n * @param o Object to retrieve the symbols from.\n */\n getOwnPropertySymbols(o: any): symbol[];\n\n /**\n * Returns the names of the enumerable string properties and methods of an object.\n * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n */\n keys(o: {}): string[];\n\n /**\n * Returns true if the values are the same value, false otherwise.\n * @param value1 The first value.\n * @param value2 The second value.\n */\n is(value1: any, value2: any): boolean;\n\n /**\n * Sets the prototype of a specified object o to object proto or null. Returns the object o.\n * @param o The object to change its prototype.\n * @param proto The value of the new prototype or null.\n */\n setPrototypeOf(o: any, proto: object | null): any;\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;\n find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;\n}\n\ninterface RegExp {\n /**\n * Returns a string indicating the flags of the regular expression in question. This field is read-only.\n * The characters in this string are sequenced and concatenated in the following order:\n *\n * - "g" for global\n * - "i" for ignoreCase\n * - "m" for multiline\n * - "u" for unicode\n * - "y" for sticky\n *\n * If no flags are set, the value is the empty string.\n */\n readonly flags: string;\n\n /**\n * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular\n * expression. Default is false. Read-only.\n */\n readonly sticky: boolean;\n\n /**\n * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular\n * expression. Default is false. Read-only.\n */\n readonly unicode: boolean;\n}\n\ninterface RegExpConstructor {\n new (pattern: RegExp | string, flags?: string): RegExp;\n (pattern: RegExp | string, flags?: string): RegExp;\n}\n\ninterface String {\n /**\n * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\n * value of the UTF-16 encoded code point starting at the string element at position pos in\n * the String resulting from converting this object to a String.\n * If there is no element at that position, the result is undefined.\n * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.\n */\n codePointAt(pos: number): number | undefined;\n\n /**\n * Returns true if searchString appears as a substring of the result of converting this\n * object to a String, at one or more positions that are\n * greater than or equal to position; otherwise, returns false.\n * @param searchString search string\n * @param position If position is undefined, 0 is assumed, so as to search all of the String.\n */\n includes(searchString: string, position?: number): boolean;\n\n /**\n * Returns true if the sequence of elements of searchString converted to a String is the\n * same as the corresponding elements of this object (converted to a String) starting at\n * endPosition \u2013 length(this). Otherwise returns false.\n */\n endsWith(searchString: string, endPosition?: number): boolean;\n\n /**\n * Returns the String value result of normalizing the string into the normalization form\n * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\n * is "NFC"\n */\n normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;\n\n /**\n * Returns the String value result of normalizing the string into the normalization form\n * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\n * is "NFC"\n */\n normalize(form?: string): string;\n\n /**\n * Returns a String value that is made from count copies appended together. If count is 0,\n * the empty string is returned.\n * @param count number of copies to append\n */\n repeat(count: number): string;\n\n /**\n * Returns true if the sequence of elements of searchString converted to a String is the\n * same as the corresponding elements of this object (converted to a String) starting at\n * position. Otherwise returns false.\n */\n startsWith(searchString: string, position?: number): boolean;\n\n /**\n * Returns an `<a>` HTML anchor element and sets the name attribute to the text value\n * @deprecated A legacy feature for browser compatibility\n * @param name\n */\n anchor(name: string): string;\n\n /**\n * Returns a `<big>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n big(): string;\n\n /**\n * Returns a `<blink>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n blink(): string;\n\n /**\n * Returns a `<b>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n bold(): string;\n\n /**\n * Returns a `<tt>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n fixed(): string;\n\n /**\n * Returns a `<font>` HTML element and sets the color attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n fontcolor(color: string): string;\n\n /**\n * Returns a `<font>` HTML element and sets the size attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n fontsize(size: number): string;\n\n /**\n * Returns a `<font>` HTML element and sets the size attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n fontsize(size: string): string;\n\n /**\n * Returns an `<i>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n italics(): string;\n\n /**\n * Returns an `<a>` HTML element and sets the href attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n link(url: string): string;\n\n /**\n * Returns a `<small>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n small(): string;\n\n /**\n * Returns a `<strike>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n strike(): string;\n\n /**\n * Returns a `<sub>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n sub(): string;\n\n /**\n * Returns a `<sup>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n sup(): string;\n}\n\ninterface StringConstructor {\n /**\n * Return the String value whose elements are, in order, the elements in the List elements.\n * If length is 0, the empty string is returned.\n */\n fromCodePoint(...codePoints: number[]): string;\n\n /**\n * String.raw is usually used as a tag function of a Tagged Template String. When called as\n * such, the first argument will be a well formed template call site object and the rest\n * parameter will contain the substitution values. It can also be called directly, for example,\n * to interleave strings and values from your own tag function, and in this case the only thing\n * it needs from the first argument is the raw property.\n * @param template A well-formed template string call site representation.\n * @param substitutions A set of substitution values.\n */\n raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;\n}\n',Ea["lib.es2015.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es5" />\n/// <reference lib="es2015.core" />\n/// <reference lib="es2015.collection" />\n/// <reference lib="es2015.iterable" />\n/// <reference lib="es2015.generator" />\n/// <reference lib="es2015.promise" />\n/// <reference lib="es2015.proxy" />\n/// <reference lib="es2015.reflect" />\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.symbol.wellknown" />\n',Ea["lib.es2015.generator.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.iterable" />\n\ninterface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n return(value: TReturn): IteratorResult<T, TReturn>;\n throw(e: any): IteratorResult<T, TReturn>;\n [Symbol.iterator](): Generator<T, TReturn, TNext>;\n}\n\ninterface GeneratorFunction {\n /**\n * Creates a new Generator object.\n * @param args A list of arguments the function accepts.\n */\n new (...args: any[]): Generator;\n /**\n * Creates a new Generator object.\n * @param args A list of arguments the function accepts.\n */\n (...args: any[]): Generator;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: Generator;\n}\n\ninterface GeneratorFunctionConstructor {\n /**\n * Creates a new Generator function.\n * @param args A list of arguments the function accepts.\n */\n new (...args: string[]): GeneratorFunction;\n /**\n * Creates a new Generator function.\n * @param args A list of arguments the function accepts.\n */\n (...args: string[]): GeneratorFunction;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: GeneratorFunction;\n}\n',Ea["lib.es2015.iterable.d.ts"]="/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\n/// <reference lib=\"es2015.symbol\" />\n\ninterface SymbolConstructor {\n /**\n * A method that returns the default iterator for an object. Called by the semantics of the\n * for-of statement.\n */\n readonly iterator: unique symbol;\n}\n\ninterface IteratorYieldResult<TYield> {\n done?: false;\n value: TYield;\n}\n\ninterface IteratorReturnResult<TReturn> {\n done: true;\n value: TReturn;\n}\n\ntype IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;\n\ninterface Iterator<T, TReturn = any, TNext = undefined> {\n // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n return?(value?: TReturn): IteratorResult<T, TReturn>;\n throw?(e?: any): IteratorResult<T, TReturn>;\n}\n\ninterface Iterable<T> {\n [Symbol.iterator](): Iterator<T>;\n}\n\ninterface IterableIterator<T> extends Iterator<T> {\n [Symbol.iterator](): IterableIterator<T>;\n}\n\ninterface Array<T> {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, T]>;\n\n /**\n * Returns an iterable of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an iterable of values in the array\n */\n values(): IterableIterator<T>;\n}\n\ninterface ArrayConstructor {\n /**\n * Creates an array from an iterable object.\n * @param iterable An iterable object to convert to an array.\n */\n from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];\n\n /**\n * Creates an array from an iterable object.\n * @param iterable An iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];\n}\n\ninterface ReadonlyArray<T> {\n /** Iterator of values in the array. */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, T]>;\n\n /**\n * Returns an iterable of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an iterable of values in the array\n */\n values(): IterableIterator<T>;\n}\n\ninterface IArguments {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<any>;\n}\n\ninterface Map<K, V> {\n /** Returns an iterable of entries in the map. */\n [Symbol.iterator](): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the map.\n */\n entries(): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of keys in the map\n */\n keys(): IterableIterator<K>;\n\n /**\n * Returns an iterable of values in the map\n */\n values(): IterableIterator<V>;\n}\n\ninterface ReadonlyMap<K, V> {\n /** Returns an iterable of entries in the map. */\n [Symbol.iterator](): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the map.\n */\n entries(): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of keys in the map\n */\n keys(): IterableIterator<K>;\n\n /**\n * Returns an iterable of values in the map\n */\n values(): IterableIterator<V>;\n}\n\ninterface MapConstructor {\n new(): Map<any, any>;\n new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;\n}\n\ninterface WeakMap<K extends object, V> { }\n\ninterface WeakMapConstructor {\n new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;\n}\n\ninterface Set<T> {\n /** Iterates over values in the set. */\n [Symbol.iterator](): IterableIterator<T>;\n /**\n * Returns an iterable of [v,v] pairs for every value `v` in the set.\n */\n entries(): IterableIterator<[T, T]>;\n /**\n * Despite its name, returns an iterable of the values in the set.\n */\n keys(): IterableIterator<T>;\n\n /**\n * Returns an iterable of values in the set.\n */\n values(): IterableIterator<T>;\n}\n\ninterface ReadonlySet<T> {\n /** Iterates over values in the set. */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of [v,v] pairs for every value `v` in the set.\n */\n entries(): IterableIterator<[T, T]>;\n\n /**\n * Despite its name, returns an iterable of the values in the set.\n */\n keys(): IterableIterator<T>;\n\n /**\n * Returns an iterable of values in the set.\n */\n values(): IterableIterator<T>;\n}\n\ninterface SetConstructor {\n new <T>(iterable?: Iterable<T> | null): Set<T>;\n}\n\ninterface WeakSet<T extends object> { }\n\ninterface WeakSetConstructor {\n new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;\n}\n\ninterface Promise<T> { }\n\ninterface PromiseConstructor {\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An iterable of Promises.\n * @returns A new Promise.\n */\n all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;\n\n /**\n * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n * or rejected.\n * @param values An iterable of Promises.\n * @returns A new Promise.\n */\n race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;\n}\n\ninterface String {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface Int8Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int8ArrayConstructor {\n new (elements: Iterable<number>): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;\n}\n\ninterface Uint8Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint8ArrayConstructor {\n new (elements: Iterable<number>): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;\n}\n\ninterface Uint8ClampedArray {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint8ClampedArrayConstructor {\n new (elements: Iterable<number>): Uint8ClampedArray;\n\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\n\ninterface Int16Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int16ArrayConstructor {\n new (elements: Iterable<number>): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;\n}\n\ninterface Uint16Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint16ArrayConstructor {\n new (elements: Iterable<number>): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;\n}\n\ninterface Int32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int32ArrayConstructor {\n new (elements: Iterable<number>): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;\n}\n\ninterface Uint32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint32ArrayConstructor {\n new (elements: Iterable<number>): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;\n}\n\ninterface Float32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Float32ArrayConstructor {\n new (elements: Iterable<number>): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;\n}\n\ninterface Float64Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Float64ArrayConstructor {\n new (elements: Iterable<number>): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;\n}\n",Ea["lib.es2015.promise.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface PromiseConstructor {\n /**\n * A reference to the prototype.\n */\n readonly prototype: Promise<any>;\n\n /**\n * Creates a new Promise.\n * @param executor A callback used to initialize the promise. This callback is passed two arguments:\n * a resolve callback used to resolve the promise with a value or the result of another promise,\n * and a reject callback used to reject the promise with a provided reason or error.\n */\n new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;\n\n // see: lib.es2015.iterable.d.ts\n // all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;\n\n /**\n * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n * or rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;\n\n // see: lib.es2015.iterable.d.ts\n // race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;\n\n /**\n * Creates a new rejected promise for the provided reason.\n * @param reason The reason the promise was rejected.\n * @returns A new rejected Promise.\n */\n reject<T = never>(reason?: any): Promise<T>;\n\n /**\n * Creates a new resolved promise.\n * @returns A resolved promise.\n */\n resolve(): Promise<void>;\n /**\n * Creates a new resolved promise for the provided value.\n * @param value A promise.\n * @returns A promise whose internal state matches the provided promise.\n */\n resolve<T>(value: T): Promise<Awaited<T>>;\n /**\n * Creates a new resolved promise for the provided value.\n * @param value A promise.\n * @returns A promise whose internal state matches the provided promise.\n */\n resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;\n}\n\ndeclare var Promise: PromiseConstructor;\n',Ea["lib.es2015.proxy.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface ProxyHandler<T extends object> {\n /**\n * A trap method for a function call.\n * @param target The original callable object which is being proxied.\n */\n apply?(target: T, thisArg: any, argArray: any[]): any;\n\n /**\n * A trap for the `new` operator.\n * @param target The original object which is being proxied.\n * @param newTarget The constructor that was originally called.\n */\n construct?(target: T, argArray: any[], newTarget: Function): object;\n\n /**\n * A trap for `Object.defineProperty()`.\n * @param target The original object which is being proxied.\n * @returns A `Boolean` indicating whether or not the property has been defined.\n */\n defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean;\n\n /**\n * A trap for the `delete` operator.\n * @param target The original object which is being proxied.\n * @param p The name or `Symbol` of the property to delete.\n * @returns A `Boolean` indicating whether or not the property was deleted.\n */\n deleteProperty?(target: T, p: string | symbol): boolean;\n\n /**\n * A trap for getting a property value.\n * @param target The original object which is being proxied.\n * @param p The name or `Symbol` of the property to get.\n * @param receiver The proxy or an object that inherits from the proxy.\n */\n get?(target: T, p: string | symbol, receiver: any): any;\n\n /**\n * A trap for `Object.getOwnPropertyDescriptor()`.\n * @param target The original object which is being proxied.\n * @param p The name of the property whose description should be retrieved.\n */\n getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;\n\n /**\n * A trap for the `[[GetPrototypeOf]]` internal method.\n * @param target The original object which is being proxied.\n */\n getPrototypeOf?(target: T): object | null;\n\n /**\n * A trap for the `in` operator.\n * @param target The original object which is being proxied.\n * @param p The name or `Symbol` of the property to check for existence.\n */\n has?(target: T, p: string | symbol): boolean;\n\n /**\n * A trap for `Object.isExtensible()`.\n * @param target The original object which is being proxied.\n */\n isExtensible?(target: T): boolean;\n\n /**\n * A trap for `Reflect.ownKeys()`.\n * @param target The original object which is being proxied.\n */\n ownKeys?(target: T): ArrayLike<string | symbol>;\n\n /**\n * A trap for `Object.preventExtensions()`.\n * @param target The original object which is being proxied.\n */\n preventExtensions?(target: T): boolean;\n\n /**\n * A trap for setting a property value.\n * @param target The original object which is being proxied.\n * @param p The name or `Symbol` of the property to set.\n * @param receiver The object to which the assignment was originally directed.\n * @returns A `Boolean` indicating whether or not the property was set.\n */\n set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean;\n\n /**\n * A trap for `Object.setPrototypeOf()`.\n * @param target The original object which is being proxied.\n * @param newPrototype The object\'s new prototype or `null`.\n */\n setPrototypeOf?(target: T, v: object | null): boolean;\n}\n\ninterface ProxyConstructor {\n /**\n * Creates a revocable Proxy object.\n * @param target A target object to wrap with Proxy.\n * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.\n */\n revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };\n\n /**\n * Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the\n * original object, but which may redefine fundamental Object operations like getting, setting, and defining\n * properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs.\n * @param target A target object to wrap with Proxy.\n * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.\n */\n new <T extends object>(target: T, handler: ProxyHandler<T>): T;\n}\ndeclare var Proxy: ProxyConstructor;\n',Ea["lib.es2015.reflect.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Reflect {\n /**\n * Calls the function with the specified object as the this value\n * and the elements of specified array as the arguments.\n * @param target The function to call.\n * @param thisArgument The object to be used as the this object.\n * @param argumentsList An array of argument values to be passed to the function.\n */\n function apply<T, A extends readonly any[], R>(\n target: (this: T, ...args: A) => R,\n thisArgument: T,\n argumentsList: Readonly<A>,\n ): R;\n function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;\n\n /**\n * Constructs the target with the elements of specified array as the arguments\n * and the specified constructor as the `new.target` value.\n * @param target The constructor to invoke.\n * @param argumentsList An array of argument values to be passed to the constructor.\n * @param newTarget The constructor to be used as the `new.target` object.\n */\n function construct<A extends readonly any[], R>(\n target: new (...args: A) => R,\n argumentsList: Readonly<A>,\n newTarget?: new (...args: any) => any,\n ): R;\n function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;\n\n /**\n * Adds a property to an object, or modifies attributes of an existing property.\n * @param target Object on which to add or modify the property. This can be a native JavaScript object\n * (that is, a user-defined object or a built in object) or a DOM object.\n * @param propertyKey The property name.\n * @param attributes Descriptor for the property. It can be for a data property or an accessor property.\n */\n function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean;\n\n /**\n * Removes a property from an object, equivalent to `delete target[propertyKey]`,\n * except it won\'t throw if `target[propertyKey]` is non-configurable.\n * @param target Object from which to remove the own property.\n * @param propertyKey The property name.\n */\n function deleteProperty(target: object, propertyKey: PropertyKey): boolean;\n\n /**\n * Gets the property of target, equivalent to `target[propertyKey]` when `receiver === target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey The property name.\n * @param receiver The reference to use as the `this` value in the getter function,\n * if `target[propertyKey]` is an accessor property.\n */\n function get<T extends object, P extends PropertyKey>(\n target: T,\n propertyKey: P,\n receiver?: unknown,\n ): P extends keyof T ? T[P] : any;\n\n /**\n * Gets the own property descriptor of the specified object.\n * An own property descriptor is one that is defined directly on the object and is not inherited from the object\'s prototype.\n * @param target Object that contains the property.\n * @param propertyKey The property name.\n */\n function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>(\n target: T,\n propertyKey: P,\n ): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined;\n\n /**\n * Returns the prototype of an object.\n * @param target The object that references the prototype.\n */\n function getPrototypeOf(target: object): object | null;\n\n /**\n * Equivalent to `propertyKey in target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey Name of the property.\n */\n function has(target: object, propertyKey: PropertyKey): boolean;\n\n /**\n * Returns a value that indicates whether new properties can be added to an object.\n * @param target Object to test.\n */\n function isExtensible(target: object): boolean;\n\n /**\n * Returns the string and symbol keys of the own properties of an object. The own properties of an object\n * are those that are defined directly on that object, and are not inherited from the object\'s prototype.\n * @param target Object that contains the own properties.\n */\n function ownKeys(target: object): (string | symbol)[];\n\n /**\n * Prevents the addition of new properties to an object.\n * @param target Object to make non-extensible.\n * @return Whether the object has been made non-extensible.\n */\n function preventExtensions(target: object): boolean;\n\n /**\n * Sets the property of target, equivalent to `target[propertyKey] = value` when `receiver === target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey Name of the property.\n * @param receiver The reference to use as the `this` value in the setter function,\n * if `target[propertyKey]` is an accessor property.\n */\n function set<T extends object, P extends PropertyKey>(\n target: T,\n propertyKey: P,\n value: P extends keyof T ? T[P] : any,\n receiver?: any,\n ): boolean;\n function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;\n\n /**\n * Sets the prototype of a specified object o to object proto or null.\n * @param target The object to change its prototype.\n * @param proto The value of the new prototype or null.\n * @return Whether setting the prototype was successful.\n */\n function setPrototypeOf(target: object, proto: object | null): boolean;\n}\n',Ea["lib.es2015.symbol.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface SymbolConstructor {\n /**\n * A reference to the prototype.\n */\n readonly prototype: Symbol;\n\n /**\n * Returns a new unique Symbol value.\n * @param description Description of the new Symbol object.\n */\n (description?: string | number): symbol;\n\n /**\n * Returns a Symbol object from the global symbol registry matching the given key if found.\n * Otherwise, returns a new symbol with this key.\n * @param key key to search for.\n */\n for(key: string): symbol;\n\n /**\n * Returns a key from the global symbol registry matching the given Symbol if found.\n * Otherwise, returns a undefined.\n * @param sym Symbol to find the key for.\n */\n keyFor(sym: symbol): string | undefined;\n}\n\ndeclare var Symbol: SymbolConstructor;',Ea["lib.es2015.symbol.wellknown.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol" />\n\ninterface SymbolConstructor {\n /**\n * A method that determines if a constructor object recognizes an object as one of the\n * constructor\u2019s instances. Called by the semantics of the instanceof operator.\n */\n readonly hasInstance: unique symbol;\n\n /**\n * A Boolean value that if true indicates that an object should flatten to its array elements\n * by Array.prototype.concat.\n */\n readonly isConcatSpreadable: unique symbol;\n\n /**\n * A regular expression method that matches the regular expression against a string. Called\n * by the String.prototype.match method.\n */\n readonly match: unique symbol;\n\n /**\n * A regular expression method that replaces matched substrings of a string. Called by the\n * String.prototype.replace method.\n */\n readonly replace: unique symbol;\n\n /**\n * A regular expression method that returns the index within a string that matches the\n * regular expression. Called by the String.prototype.search method.\n */\n readonly search: unique symbol;\n\n /**\n * A function valued property that is the constructor function that is used to create\n * derived objects.\n */\n readonly species: unique symbol;\n\n /**\n * A regular expression method that splits a string at the indices that match the regular\n * expression. Called by the String.prototype.split method.\n */\n readonly split: unique symbol;\n\n /**\n * A method that converts an object to a corresponding primitive value.\n * Called by the ToPrimitive abstract operation.\n */\n readonly toPrimitive: unique symbol;\n\n /**\n * A String value that is used in the creation of the default string description of an object.\n * Called by the built-in method Object.prototype.toString.\n */\n readonly toStringTag: unique symbol;\n\n /**\n * An Object whose truthy properties are properties that are excluded from the \'with\'\n * environment bindings of the associated objects.\n */\n readonly unscopables: unique symbol;\n}\n\ninterface Symbol {\n /**\n * Converts a Symbol object to a symbol.\n */\n [Symbol.toPrimitive](hint: string): symbol;\n\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Array<T> {\n /**\n * Is an object whose properties have the value \'true\'\n * when they will be absent when used in a \'with\' statement.\n */\n readonly [Symbol.unscopables]: {\n [K in keyof any[]]?: boolean;\n };\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Is an object whose properties have the value \'true\'\n * when they will be absent when used in a \'with\' statement.\n */\n readonly [Symbol.unscopables]: {\n [K in keyof readonly any[]]?: boolean;\n };\n}\n\ninterface Date {\n /**\n * Converts a Date object to a string.\n */\n [Symbol.toPrimitive](hint: "default"): string;\n /**\n * Converts a Date object to a string.\n */\n [Symbol.toPrimitive](hint: "string"): string;\n /**\n * Converts a Date object to a number.\n */\n [Symbol.toPrimitive](hint: "number"): number;\n /**\n * Converts a Date object to a string or number.\n *\n * @param hint The strings "number", "string", or "default" to specify what primitive to return.\n *\n * @throws {TypeError} If \'hint\' was given something other than "number", "string", or "default".\n * @returns A number if \'hint\' was "number", a string if \'hint\' was "string" or "default".\n */\n [Symbol.toPrimitive](hint: string): string | number;\n}\n\ninterface Map<K, V> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface WeakMap<K extends object, V> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Set<T> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface WeakSet<T extends object> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface JSON {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Function {\n /**\n * Determines whether the given value inherits from this function if this function was used\n * as a constructor function.\n *\n * A constructor function can control which objects are recognized as its instances by\n * \'instanceof\' by overriding this method.\n */\n [Symbol.hasInstance](value: any): boolean;\n}\n\ninterface GeneratorFunction {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Math {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Promise<T> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface PromiseConstructor {\n readonly [Symbol.species]: PromiseConstructor;\n}\n\ninterface RegExp {\n /**\n * Matches a string with this regular expression, and returns an array containing the results of\n * that search.\n * @param string A string to search within.\n */\n [Symbol.match](string: string): RegExpMatchArray | null;\n\n /**\n * Replaces text in a string, using this regular expression.\n * @param string A String object or string literal whose contents matching against\n * this regular expression will be replaced\n * @param replaceValue A String object or string literal containing the text to replace for every\n * successful match of this regular expression.\n */\n [Symbol.replace](string: string, replaceValue: string): string;\n\n /**\n * Replaces text in a string, using this regular expression.\n * @param string A String object or string literal whose contents matching against\n * this regular expression will be replaced\n * @param replacer A function that returns the replacement text.\n */\n [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;\n\n /**\n * Finds the position beginning first substring match in a regular expression search\n * using this regular expression.\n *\n * @param string The string to search within.\n */\n [Symbol.search](string: string): number;\n\n /**\n * Returns an array of substrings that were delimited by strings in the original input that\n * match against this regular expression.\n *\n * If the regular expression contains capturing parentheses, then each time this\n * regular expression matches, the results (including any undefined results) of the\n * capturing parentheses are spliced.\n *\n * @param string string value to split\n * @param limit if not undefined, the output array is truncated so that it contains no more\n * than \'limit\' elements.\n */\n [Symbol.split](string: string, limit?: number): string[];\n}\n\ninterface RegExpConstructor {\n readonly [Symbol.species]: RegExpConstructor;\n}\n\ninterface String {\n /**\n * Matches a string or an object that supports being matched against, and returns an array\n * containing the results of that search, or null if no matches are found.\n * @param matcher An object that supports being matched against.\n */\n match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;\n\n /**\n * Passes a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.\n * @param searchValue An object that supports searching for and replacing matches within a string.\n * @param replaceValue The replacement text.\n */\n replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;\n\n /**\n * Replaces text in a string, using an object that supports replacement within a string.\n * @param searchValue A object can search for and replace matches within a string.\n * @param replacer A function that returns the replacement text.\n */\n replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;\n\n /**\n * Finds the first substring match in a regular expression search.\n * @param searcher An object which supports searching within a string.\n */\n search(searcher: { [Symbol.search](string: string): number; }): number;\n\n /**\n * Split a string into substrings using the specified separator and return them as an array.\n * @param splitter An object that can split a string.\n * @param limit A value used to limit the number of elements returned in the array.\n */\n split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];\n}\n\ninterface ArrayBuffer {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface DataView {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Int8Array {\n readonly [Symbol.toStringTag]: "Int8Array";\n}\n\ninterface Uint8Array {\n readonly [Symbol.toStringTag]: "Uint8Array";\n}\n\ninterface Uint8ClampedArray {\n readonly [Symbol.toStringTag]: "Uint8ClampedArray";\n}\n\ninterface Int16Array {\n readonly [Symbol.toStringTag]: "Int16Array";\n}\n\ninterface Uint16Array {\n readonly [Symbol.toStringTag]: "Uint16Array";\n}\n\ninterface Int32Array {\n readonly [Symbol.toStringTag]: "Int32Array";\n}\n\ninterface Uint32Array {\n readonly [Symbol.toStringTag]: "Uint32Array";\n}\n\ninterface Float32Array {\n readonly [Symbol.toStringTag]: "Float32Array";\n}\n\ninterface Float64Array {\n readonly [Symbol.toStringTag]: "Float64Array";\n}\n\ninterface ArrayConstructor {\n readonly [Symbol.species]: ArrayConstructor;\n}\ninterface MapConstructor {\n readonly [Symbol.species]: MapConstructor;\n}\ninterface SetConstructor {\n readonly [Symbol.species]: SetConstructor;\n}\ninterface ArrayBufferConstructor {\n readonly [Symbol.species]: ArrayBufferConstructor;\n}\n',Ea["lib.es2016.array.include.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Array<T> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: T, fromIndex?: number): boolean;\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: T, fromIndex?: number): boolean;\n}\n\ninterface Int8Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint8Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint8ClampedArray {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Int16Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint16Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Int32Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint32Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Float32Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Float64Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}',Ea["lib.es2016.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015" />\n/// <reference lib="es2016.array.include" />',Ea["lib.es2016.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2016" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />',Ea["lib.es2017.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2016" />\n/// <reference lib="es2017.object" />\n/// <reference lib="es2017.sharedmemory" />\n/// <reference lib="es2017.string" />\n/// <reference lib="es2017.intl" />\n/// <reference lib="es2017.typedarrays" />\n',Ea["lib.es2017.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2017" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />',Ea["lib.es2017.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n\n interface DateTimeFormatPartTypesRegistry {\n day: any\n dayPeriod: any\n era: any\n hour: any\n literal: any\n minute: any\n month: any\n second: any\n timeZoneName: any\n weekday: any\n year: any\n }\n\n type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;\n\n interface DateTimeFormatPart {\n type: DateTimeFormatPartTypes;\n value: string;\n }\n\n interface DateTimeFormat {\n formatToParts(date?: Date | number): DateTimeFormatPart[];\n }\n}\n',Ea["lib.es2017.object.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface ObjectConstructor {\n /**\n * Returns an array of values of the enumerable properties of an object\n * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n */\n values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];\n\n /**\n * Returns an array of values of the enumerable properties of an object\n * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n */\n values(o: {}): any[];\n\n /**\n * Returns an array of key/values of the enumerable properties of an object\n * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n */\n entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];\n\n /**\n * Returns an array of key/values of the enumerable properties of an object\n * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n */\n entries(o: {}): [string, any][];\n\n /**\n * Returns an object containing all own property descriptors of an object\n * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n */\n getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };\n}\n',Ea["lib.es2017.sharedmemory.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.symbol.wellknown" />\n\ninterface SharedArrayBuffer {\n /**\n * Read-only. The length of the ArrayBuffer (in bytes).\n */\n readonly byteLength: number;\n\n /**\n * Returns a section of an SharedArrayBuffer.\n */\n slice(begin: number, end?: number): SharedArrayBuffer;\n readonly [Symbol.species]: SharedArrayBuffer;\n readonly [Symbol.toStringTag]: "SharedArrayBuffer";\n}\n\ninterface SharedArrayBufferConstructor {\n readonly prototype: SharedArrayBuffer;\n new (byteLength: number): SharedArrayBuffer;\n}\ndeclare var SharedArrayBuffer: SharedArrayBufferConstructor;\n\ninterface ArrayBufferTypes {\n SharedArrayBuffer: SharedArrayBuffer;\n}\n\ninterface Atomics {\n /**\n * Adds a value to the value at the given position in the array, returning the original value.\n * Until this atomic operation completes, any other read or write operation against the array\n * will block.\n */\n add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Stores the bitwise AND of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or\n * write operation against the array will block.\n */\n and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Replaces the value at the given position in the array if the original value equals the given\n * expected value, returning the original value. Until this atomic operation completes, any\n * other read or write operation against the array will block.\n */\n compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;\n\n /**\n * Replaces the value at the given position in the array, returning the original value. Until\n * this atomic operation completes, any other read or write operation against the array will\n * block.\n */\n exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Returns a value indicating whether high-performance algorithms can use atomic operations\n * (`true`) or must use locks (`false`) for the given number of bytes-per-element of a typed\n * array.\n */\n isLockFree(size: number): boolean;\n\n /**\n * Returns the value at the given position in the array. Until this atomic operation completes,\n * any other read or write operation against the array will block.\n */\n load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;\n\n /**\n * Stores the bitwise OR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Stores a value at the given position in the array, returning the new value. Until this\n * atomic operation completes, any other read or write operation against the array will block.\n */\n store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Subtracts a value from the value at the given position in the array, returning the original\n * value. Until this atomic operation completes, any other read or write operation against the\n * array will block.\n */\n sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * If the value at the given position in the array is equal to the provided value, the current\n * agent is put to sleep causing execution to suspend until the timeout expires (returning\n * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns\n * `"not-equal"`.\n */\n wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";\n\n /**\n * Wakes up sleeping agents that are waiting on the given index of the array, returning the\n * number of agents that were awoken.\n * @param typedArray A shared Int32Array.\n * @param index The position in the typedArray to wake up on.\n * @param count The number of sleeping agents to notify. Defaults to +Infinity.\n */\n notify(typedArray: Int32Array, index: number, count?: number): number;\n\n /**\n * Stores the bitwise XOR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n readonly [Symbol.toStringTag]: "Atomics";\n}\n\ndeclare var Atomics: Atomics;\n',Ea["lib.es2017.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface String {\n /**\n * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\n * The padding is applied from the start (left) of the current string.\n *\n * @param maxLength The length of the resulting string once the current string has been padded.\n * If this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n *\n * @param fillString The string to pad the current string with.\n * If this string is too long, it will be truncated and the left-most part will be applied.\n * The default value for this parameter is " " (U+0020).\n */\n padStart(maxLength: number, fillString?: string): string;\n\n /**\n * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\n * The padding is applied from the end (right) of the current string.\n *\n * @param maxLength The length of the resulting string once the current string has been padded.\n * If this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n *\n * @param fillString The string to pad the current string with.\n * If this string is too long, it will be truncated and the left-most part will be applied.\n * The default value for this parameter is " " (U+0020).\n */\n padEnd(maxLength: number, fillString?: string): string;\n}\n',Ea["lib.es2017.typedarrays.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Int8ArrayConstructor {\n new (): Int8Array;\n}\n\ninterface Uint8ArrayConstructor {\n new (): Uint8Array;\n}\n\ninterface Uint8ClampedArrayConstructor {\n new (): Uint8ClampedArray;\n}\n\ninterface Int16ArrayConstructor {\n new (): Int16Array;\n}\n\ninterface Uint16ArrayConstructor {\n new (): Uint16Array;\n}\n\ninterface Int32ArrayConstructor {\n new (): Int32Array;\n}\n\ninterface Uint32ArrayConstructor {\n new (): Uint32Array;\n}\n\ninterface Float32ArrayConstructor {\n new (): Float32Array;\n}\n\ninterface Float64ArrayConstructor {\n new (): Float64Array;\n}\n',Ea["lib.es2018.asyncgenerator.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2018.asynciterable" />\n\ninterface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;\n return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;\n throw(e: any): Promise<IteratorResult<T, TReturn>>;\n [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;\n}\n\ninterface AsyncGeneratorFunction {\n /**\n * Creates a new AsyncGenerator object.\n * @param args A list of arguments the function accepts.\n */\n new (...args: any[]): AsyncGenerator;\n /**\n * Creates a new AsyncGenerator object.\n * @param args A list of arguments the function accepts.\n */\n (...args: any[]): AsyncGenerator;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: AsyncGenerator;\n}\n\ninterface AsyncGeneratorFunctionConstructor {\n /**\n * Creates a new AsyncGenerator function.\n * @param args A list of arguments the function accepts.\n */\n new (...args: string[]): AsyncGeneratorFunction;\n /**\n * Creates a new AsyncGenerator function.\n * @param args A list of arguments the function accepts.\n */\n (...args: string[]): AsyncGeneratorFunction;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: AsyncGeneratorFunction;\n}\n',Ea["lib.es2018.asynciterable.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.iterable" />\n\ninterface SymbolConstructor {\n /**\n * A method that returns the default async iterator for an object. Called by the semantics of\n * the for-await-of statement.\n */\n readonly asyncIterator: unique symbol;\n}\n\ninterface AsyncIterator<T, TReturn = any, TNext = undefined> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;\n return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;\n throw?(e?: any): Promise<IteratorResult<T, TReturn>>;\n}\n\ninterface AsyncIterable<T> {\n [Symbol.asyncIterator](): AsyncIterator<T>;\n}\n\ninterface AsyncIterableIterator<T> extends AsyncIterator<T> {\n [Symbol.asyncIterator](): AsyncIterableIterator<T>;\n}',Ea["lib.es2018.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2017" />\n/// <reference lib="es2018.asynciterable" />\n/// <reference lib="es2018.asyncgenerator" />\n/// <reference lib="es2018.promise" />\n/// <reference lib="es2018.regexp" />\n/// <reference lib="es2018.intl" />\n',Ea["lib.es2018.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2018" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />',Ea["lib.es2018.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n\n // http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories\n type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";\n type PluralRuleType = "cardinal" | "ordinal";\n\n interface PluralRulesOptions {\n localeMatcher?: "lookup" | "best fit" | undefined;\n type?: PluralRuleType | undefined;\n minimumIntegerDigits?: number | undefined;\n minimumFractionDigits?: number | undefined;\n maximumFractionDigits?: number | undefined;\n minimumSignificantDigits?: number | undefined;\n maximumSignificantDigits?: number | undefined;\n }\n\n interface ResolvedPluralRulesOptions {\n locale: string;\n pluralCategories: LDMLPluralRule[];\n type: PluralRuleType;\n minimumIntegerDigits: number;\n minimumFractionDigits: number;\n maximumFractionDigits: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n }\n\n interface PluralRules {\n resolvedOptions(): ResolvedPluralRulesOptions;\n select(n: number): LDMLPluralRule;\n }\n\n const PluralRules: {\n new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;\n (locales?: string | string[], options?: PluralRulesOptions): PluralRules;\n\n supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[];\n };\n\n // We can only have one definition for \'type\' in TypeScript, and so you can learn where the keys come from here:\n type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";\n type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";\n type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;\n\n interface NumberFormatPart {\n type: NumberFormatPartTypes;\n value: string;\n }\n\n interface NumberFormat {\n formatToParts(number?: number | bigint): NumberFormatPart[];\n }\n}\n',Ea["lib.es2018.promise.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The\n * resolved value cannot be modified from the callback.\n * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).\n * @returns A Promise for the completion of the callback.\n */\n finally(onfinally?: (() => void) | undefined | null): Promise<T>\n}\n',Ea["lib.es2018.regexp.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface RegExpMatchArray {\n groups?: {\n [key: string]: string\n }\n}\n\ninterface RegExpExecArray {\n groups?: {\n [key: string]: string\n }\n}\n\ninterface RegExp {\n /**\n * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.\n * Default is false. Read-only.\n */\n readonly dotAll: boolean;\n}',Ea["lib.es2019.array.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ntype FlatArray<Arr, Depth extends number> = {\n "done": Arr,\n "recur": Arr extends ReadonlyArray<infer InnerArr>\n ? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]>\n : Arr\n}[Depth extends -1 ? "done" : "recur"];\n\ninterface ReadonlyArray<T> {\n\n /**\n * Calls a defined callback function on each element of an array. Then, flattens the result into\n * a new array.\n * This is identical to a map followed by flat with depth 1.\n *\n * @param callback A function that accepts up to three arguments. The flatMap method calls the\n * callback function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callback function. If\n * thisArg is omitted, undefined is used as the this value.\n */\n flatMap<U, This = undefined> (\n callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,\n thisArg?: This\n ): U[]\n\n\n /**\n * Returns a new array with all sub-array elements concatenated into it recursively up to the\n * specified depth.\n *\n * @param depth The maximum recursion depth\n */\n flat<A, D extends number = 1>(\n this: A,\n depth?: D\n ): FlatArray<A, D>[]\n }\n\ninterface Array<T> {\n\n /**\n * Calls a defined callback function on each element of an array. Then, flattens the result into\n * a new array.\n * This is identical to a map followed by flat with depth 1.\n *\n * @param callback A function that accepts up to three arguments. The flatMap method calls the\n * callback function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callback function. If\n * thisArg is omitted, undefined is used as the this value.\n */\n flatMap<U, This = undefined> (\n callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,\n thisArg?: This\n ): U[]\n\n /**\n * Returns a new array with all sub-array elements concatenated into it recursively up to the\n * specified depth.\n *\n * @param depth The maximum recursion depth\n */\n flat<A, D extends number = 1>(\n this: A,\n depth?: D\n ): FlatArray<A, D>[]\n}\n',Ea["lib.es2019.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2018" />\n/// <reference lib="es2019.array" />\n/// <reference lib="es2019.object" />\n/// <reference lib="es2019.string" />\n/// <reference lib="es2019.symbol" />\n/// <reference lib="es2019.intl" />\n',Ea["lib.es2019.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2019" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',Ea["lib.es2019.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n interface DateTimeFormatPartTypesRegistry {\n unknown: any\n }\n}\n',Ea["lib.es2019.object.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.iterable" />\n\ninterface ObjectConstructor {\n /**\n * Returns an object created by key-value entries for properties and methods\n * @param entries An iterable object that contains key-value entries for properties and methods.\n */\n fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T };\n\n /**\n * Returns an object created by key-value entries for properties and methods\n * @param entries An iterable object that contains key-value entries for properties and methods.\n */\n fromEntries(entries: Iterable<readonly any[]>): any;\n}\n',Ea["lib.es2019.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface String {\n /** Removes the trailing white space and line terminator characters from a string. */\n trimEnd(): string;\n\n /** Removes the leading white space and line terminator characters from a string. */\n trimStart(): string;\n\n /**\n * Removes the leading white space and line terminator characters from a string.\n * @deprecated A legacy feature for browser compatibility. Use `trimStart` instead\n */\n trimLeft(): string;\n\n /**\n * Removes the trailing white space and line terminator characters from a string.\n * @deprecated A legacy feature for browser compatibility. Use `trimEnd` instead\n */\n trimRight(): string;\n}\n',Ea["lib.es2019.symbol.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Symbol {\n /**\n * Expose the [[Description]] internal slot of a symbol directly.\n */\n readonly description: string | undefined;\n}\n',Ea["lib.es2020.bigint.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020.intl" />\n\ninterface BigIntToLocaleStringOptions {\n /**\n * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.\n */\n localeMatcher?: string;\n /**\n * The formatting style to use , the default is "decimal".\n */\n style?: string;\n\n numberingSystem?: string;\n /**\n * The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.\n */\n unit?: string;\n\n /**\n * The unit formatting style to use in unit formatting, the defaults is "short".\n */\n unitDisplay?: string;\n\n /**\n * The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB \u2014 see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".\n */\n currency?: string;\n\n /**\n * How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".\n *\n * "symbol" to use a localized currency symbol such as \u20ac,\n *\n * "code" to use the ISO currency code,\n *\n * "name" to use a localized currency name such as "dollar"\n */\n currencyDisplay?: string;\n\n /**\n * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.\n */\n useGrouping?: boolean;\n\n /**\n * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.\n */\n minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn\'t provide that information).\n */\n minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;\n\n /**\n * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn\'t provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.\n */\n maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;\n\n /**\n * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.\n */\n minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.\n */\n maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * The formatting that should be displayed for the number, the defaults is "standard"\n *\n * "standard" plain number formatting\n *\n * "scientific" return the order-of-magnitude for formatted number.\n *\n * "engineering" return the exponent of ten when divisible by three\n *\n * "compact" string representing exponent, defaults is using the "short" form\n */\n notation?: string;\n\n /**\n * used only when notation is "compact"\n */\n compactDisplay?: string;\n}\n\ninterface BigInt {\n /**\n * Returns a string representation of an object.\n * @param radix Specifies a radix for converting numeric values to strings.\n */\n toString(radix?: number): string;\n\n /** Returns a string representation appropriate to the host environment\'s current locale. */\n toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): bigint;\n\n readonly [Symbol.toStringTag]: "BigInt";\n}\n\ninterface BigIntConstructor {\n (value: bigint | boolean | number | string): bigint;\n readonly prototype: BigInt;\n\n /**\n * Interprets the low bits of a BigInt as a 2\'s-complement signed integer.\n * All higher bits are discarded.\n * @param bits The number of low bits to use\n * @param int The BigInt whose bits to extract\n */\n asIntN(bits: number, int: bigint): bigint;\n /**\n * Interprets the low bits of a BigInt as an unsigned integer.\n * All higher bits are discarded.\n * @param bits The number of low bits to use\n * @param int The BigInt whose bits to extract\n */\n asUintN(bits: number, int: bigint): bigint;\n}\n\ndeclare var BigInt: BigIntConstructor;\n\n/**\n * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated, an exception is raised.\n */\ninterface BigInt64Array {\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /** The ArrayBuffer instance referenced by the array. */\n readonly buffer: ArrayBufferLike;\n\n /** The length in bytes of the array. */\n readonly byteLength: number;\n\n /** The offset in bytes of the array. */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /** Yields index, value pairs for every entry in the array. */\n entries(): IterableIterator<[number, bigint]>;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns false,\n * or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: bigint, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;\n\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: bigint, fromIndex?: number): boolean;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: bigint, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /** Yields each index in the array. */\n keys(): IterableIterator<number>;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: bigint, fromIndex?: number): number;\n\n /** The length of the array. */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;\n\n /** Reverses the elements in the array. */\n reverse(): this;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<bigint>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array.\n */\n slice(start?: number, end?: number): BigInt64Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls the\n * predicate function for each element in the array until the predicate returns true, or until\n * the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts the array.\n * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.\n */\n sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;\n\n /**\n * Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): BigInt64Array;\n\n /** Converts the array to a string by using the current locale. */\n toLocaleString(): string;\n\n /** Returns a string representation of the array. */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): BigInt64Array;\n\n /** Yields each value in the array. */\n values(): IterableIterator<bigint>;\n\n [Symbol.iterator](): IterableIterator<bigint>;\n\n readonly [Symbol.toStringTag]: "BigInt64Array";\n\n [index: number]: bigint;\n}\n\ninterface BigInt64ArrayConstructor {\n readonly prototype: BigInt64Array;\n new(length?: number): BigInt64Array;\n new(array: Iterable<bigint>): BigInt64Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;\n\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: bigint[]): BigInt64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from(arrayLike: ArrayLike<bigint>): BigInt64Array;\n from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;\n}\n\ndeclare var BigInt64Array: BigInt64ArrayConstructor;\n\n/**\n * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated, an exception is raised.\n */\ninterface BigUint64Array {\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /** The ArrayBuffer instance referenced by the array. */\n readonly buffer: ArrayBufferLike;\n\n /** The length in bytes of the array. */\n readonly byteLength: number;\n\n /** The offset in bytes of the array. */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /** Yields index, value pairs for every entry in the array. */\n entries(): IterableIterator<[number, bigint]>;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns false,\n * or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: bigint, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;\n\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: bigint, fromIndex?: number): boolean;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: bigint, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /** Yields each index in the array. */\n keys(): IterableIterator<number>;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: bigint, fromIndex?: number): number;\n\n /** The length of the array. */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;\n\n /** Reverses the elements in the array. */\n reverse(): this;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<bigint>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array.\n */\n slice(start?: number, end?: number): BigUint64Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls the\n * predicate function for each element in the array until the predicate returns true, or until\n * the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts the array.\n * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.\n */\n sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;\n\n /**\n * Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): BigUint64Array;\n\n /** Converts the array to a string by using the current locale. */\n toLocaleString(): string;\n\n /** Returns a string representation of the array. */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): BigUint64Array;\n\n /** Yields each value in the array. */\n values(): IterableIterator<bigint>;\n\n [Symbol.iterator](): IterableIterator<bigint>;\n\n readonly [Symbol.toStringTag]: "BigUint64Array";\n\n [index: number]: bigint;\n}\n\ninterface BigUint64ArrayConstructor {\n readonly prototype: BigUint64Array;\n new(length?: number): BigUint64Array;\n new(array: Iterable<bigint>): BigUint64Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;\n\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: bigint[]): BigUint64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from(arrayLike: ArrayLike<bigint>): BigUint64Array;\n from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;\n}\n\ndeclare var BigUint64Array: BigUint64ArrayConstructor;\n\ninterface DataView {\n /**\n * Gets the BigInt64 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;\n\n /**\n * Gets the BigUint64 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;\n\n /**\n * Stores a BigInt64 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;\n\n /**\n * Stores a BigUint64 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;\n}\n\ndeclare namespace Intl{\n interface NumberFormat {\n format(value: number | bigint): string;\n resolvedOptions(): ResolvedNumberFormatOptions;\n }\n}\n',Ea["lib.es2020.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2019" />\n/// <reference lib="es2020.bigint" />\n/// <reference lib="es2020.date" />\n/// <reference lib="es2020.number" />\n/// <reference lib="es2020.promise" />\n/// <reference lib="es2020.sharedmemory" />\n/// <reference lib="es2020.string" />\n/// <reference lib="es2020.symbol.wellknown" />\n/// <reference lib="es2020.intl" />\n',Ea["lib.es2020.date.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020.intl" />\n\ninterface Date {\n /**\n * Converts a date and time to a string by using the current or specified locale.\n * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;\n\n /**\n * Converts a date to a string by using the current or specified locale.\n * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleDateString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;\n\n /**\n * Converts a time to a string by using the current or specified locale.\n * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;\n}',Ea["lib.es2020.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',Ea["lib.es2020.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2018.intl" />\ndeclare namespace Intl {\n\n /**\n * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).\n */\n type UnicodeBCP47LocaleIdentifier = string;\n\n /**\n * Unit to use in the relative time internationalized message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).\n */\n type RelativeTimeFormatUnit =\n | "year"\n | "years"\n | "quarter"\n | "quarters"\n | "month"\n | "months"\n | "week"\n | "weeks"\n | "day"\n | "days"\n | "hour"\n | "hours"\n | "minute"\n | "minutes"\n | "second"\n | "seconds";\n\n /**\n * Value of the `unit` property in objects returned by\n * `Intl.RelativeTimeFormat.prototype.formatToParts()`. `formatToParts` and\n * `format` methods accept either singular or plural unit names as input,\n * but `formatToParts` only outputs singular (e.g. "day") not plural (e.g.\n * "days").\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).\n */\n type RelativeTimeFormatUnitSingular =\n | "year"\n | "quarter"\n | "month"\n | "week"\n | "day"\n | "hour"\n | "minute"\n | "second";\n\n /**\n * The locale matching algorithm to use.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).\n */\n type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";\n\n /**\n * The format of output message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n */\n type RelativeTimeFormatNumeric = "always" | "auto";\n\n /**\n * The length of the internationalized message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n */\n type RelativeTimeFormatStyle = "long" | "short" | "narrow";\n\n /**\n * [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).\n */\n type BCP47LanguageTag = string;\n\n /**\n * The locale(s) to use\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).\n */\n type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;\n\n /**\n * An object with some or all of properties of `options` parameter\n * of `Intl.RelativeTimeFormat` constructor.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n */\n interface RelativeTimeFormatOptions {\n /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */\n localeMatcher?: RelativeTimeFormatLocaleMatcher;\n /** The format of output message. */\n numeric?: RelativeTimeFormatNumeric;\n /** The length of the internationalized message. */\n style?: RelativeTimeFormatStyle;\n }\n\n /**\n * An object with properties reflecting the locale\n * and formatting options computed during initialization\n * of the `Intl.RelativeTimeFormat` object\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).\n */\n interface ResolvedRelativeTimeFormatOptions {\n locale: UnicodeBCP47LocaleIdentifier;\n style: RelativeTimeFormatStyle;\n numeric: RelativeTimeFormatNumeric;\n numberingSystem: string;\n }\n\n /**\n * An object representing the relative time format in parts\n * that can be used for custom locale-aware formatting.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).\n */\n type RelativeTimeFormatPart =\n | {\n type: "literal";\n value: string;\n }\n | {\n type: Exclude<NumberFormatPartTypes, "literal">;\n value: string;\n unit: RelativeTimeFormatUnitSingular;\n };\n\n interface RelativeTimeFormat {\n /**\n * Formats a value and a unit according to the locale\n * and formatting options of the given\n * [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)\n * object.\n *\n * While this method automatically provides the correct plural forms,\n * the grammatical form is otherwise as neutral as possible.\n *\n * It is the caller\'s responsibility to handle cut-off logic\n * such as deciding between displaying "in 7 days" or "in 1 week".\n * This API does not support relative dates involving compound units.\n * e.g "in 5 days and 4 hours".\n *\n * @param value - Numeric value to use in the internationalized relative time message\n *\n * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.\n *\n * @throws `RangeError` if `unit` was given something other than `unit` possible values\n *\n * @returns {string} Internationalized relative time message as string\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).\n */\n format(value: number, unit: RelativeTimeFormatUnit): string;\n\n /**\n * Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.\n *\n * @param value - Numeric value to use in the internationalized relative time message\n *\n * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.\n *\n * @throws `RangeError` if `unit` was given something other than `unit` possible values\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).\n */\n formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];\n\n /**\n * Provides access to the locale and options computed during initialization of this `Intl.RelativeTimeFormat` object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).\n */\n resolvedOptions(): ResolvedRelativeTimeFormatOptions;\n }\n\n /**\n * The [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)\n * object is a constructor for objects that enable language-sensitive relative time formatting.\n *\n * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).\n */\n const RelativeTimeFormat: {\n /**\n * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)\n * with some or all of options of `RelativeTimeFormatOptions`.\n *\n * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).\n */\n new(\n locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],\n options?: RelativeTimeFormatOptions,\n ): RelativeTimeFormat;\n\n /**\n * Returns an array containing those of the provided locales\n * that are supported in date and time formatting\n * without having to fall back to the runtime\'s default locale.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)\n * with some or all of options of the formatting.\n *\n * @returns An array containing those of the provided locales\n * that are supported in date and time formatting\n * without having to fall back to the runtime\'s default locale.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).\n */\n supportedLocalesOf(\n locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],\n options?: RelativeTimeFormatOptions,\n ): UnicodeBCP47LocaleIdentifier[];\n };\n\n interface NumberFormatOptions {\n compactDisplay?: "short" | "long" | undefined;\n notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;\n signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;\n unit?: string | undefined;\n unitDisplay?: "short" | "long" | "narrow" | undefined;\n currencyDisplay?: string | undefined;\n currencySign?: string | undefined;\n }\n\n interface ResolvedNumberFormatOptions {\n compactDisplay?: "short" | "long";\n notation?: "standard" | "scientific" | "engineering" | "compact";\n signDisplay?: "auto" | "never" | "always" | "exceptZero";\n unit?: string;\n unitDisplay?: "short" | "long" | "narrow";\n currencyDisplay?: string;\n currencySign?: string;\n }\n\n interface DateTimeFormatOptions {\n calendar?: string | undefined;\n dayPeriod?: "narrow" | "short" | "long" | undefined;\n numberingSystem?: string | undefined;\n\n dateStyle?: "full" | "long" | "medium" | "short" | undefined;\n timeStyle?: "full" | "long" | "medium" | "short" | undefined;\n hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;\n }\n\n type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";\n type LocaleCollationCaseFirst = "upper" | "lower" | "false";\n\n interface LocaleOptions {\n /** A string containing the language, and the script and region if available. */\n baseName?: string;\n /** The part of the Locale that indicates the locale\'s calendar era. */\n calendar?: string;\n /** Flag that defines whether case is taken into account for the locale\'s collation rules. */\n caseFirst?: LocaleCollationCaseFirst;\n /** The collation type used for sorting */\n collation?: string;\n /** The time keeping format convention used by the locale. */\n hourCycle?: LocaleHourCycleKey;\n /** The primary language subtag associated with the locale. */\n language?: string;\n /** The numeral system used by the locale. */\n numberingSystem?: string;\n /** Flag that defines whether the locale has special collation handling for numeric characters. */\n numeric?: boolean;\n /** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */\n region?: string;\n /** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */\n script?: string;\n }\n\n interface Locale extends LocaleOptions {\n /** A string containing the language, and the script and region if available. */\n baseName: string;\n /** The primary language subtag associated with the locale. */\n language: string;\n /** Gets the most likely values for the language, script, and region of the locale based on existing values. */\n maximize(): Locale;\n /** Attempts to remove information about the locale that would be added by calling `Locale.maximize()`. */\n minimize(): Locale;\n /** Returns the locale\'s full locale identifier string. */\n toString(): BCP47LanguageTag;\n }\n\n /**\n * Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)\n * objects\n *\n * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).\n * For the general form and interpretation of the locales argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.\n *\n * @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).\n */\n const Locale: {\n new (tag: BCP47LanguageTag | Locale, options?: LocaleOptions): Locale;\n };\n\n type DisplayNamesFallback =\n | "code"\n | "none";\n\n type DisplayNamesType =\n | "language"\n | "region"\n | "script"\n | "calendar"\n | "dateTimeField"\n | "currency";\n\n type DisplayNamesLanguageDisplay =\n | "dialect"\n | "standard";\n\n interface DisplayNamesOptions {\n localeMatcher?: RelativeTimeFormatLocaleMatcher;\n style?: RelativeTimeFormatStyle;\n type: DisplayNamesType;\n languageDisplay?: DisplayNamesLanguageDisplay;\n fallback?: DisplayNamesFallback;\n }\n\n interface ResolvedDisplayNamesOptions {\n locale: UnicodeBCP47LocaleIdentifier;\n style: RelativeTimeFormatStyle;\n type: DisplayNamesType;\n fallback: DisplayNamesFallback;\n languageDisplay?: DisplayNamesLanguageDisplay;\n }\n\n interface DisplayNames {\n /**\n * Receives a code and returns a string based on the locale and options provided when instantiating\n * [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)\n *\n * @param code The `code` to provide depends on the `type` passed to display name during creation:\n * - If the type is `"region"`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),\n * or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).\n * - If the type is `"script"`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).\n * - If the type is `"language"`, code should be a `languageCode` ["-" `scriptCode`] ["-" `regionCode` ] *("-" `variant` )\n * subsequence of the unicode_language_id grammar in [UTS 35\'s Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).\n * `languageCode` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.\n * - If the type is `"currency"`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).\n */\n of(code: string): string | undefined;\n /**\n * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current\n * [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).\n */\n resolvedOptions(): ResolvedDisplayNamesOptions;\n }\n\n /**\n * The [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)\n * object enables the consistent translation of language, region and script display names.\n *\n * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).\n */\n const DisplayNames: {\n prototype: DisplayNames;\n\n /**\n * @param locales A string with a BCP 47 language tag, or an array of such strings.\n * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)\n * page.\n *\n * @param options An object for setting up a display name.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).\n */\n new(locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;\n\n /**\n * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime\'s default locale.\n *\n * @param locales A string with a BCP 47 language tag, or an array of such strings.\n * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)\n * page.\n *\n * @param options An object with a locale matcher.\n *\n * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime\'s default locale.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).\n */\n supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher }): BCP47LanguageTag[];\n };\n\n}\n',Ea["lib.es2020.number.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020.intl" />\n\ninterface Number {\n /**\n * Converts a number to a string by using the current or specified locale.\n * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;\n}\n',Ea["lib.es2020.promise.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface PromiseFulfilledResult<T> {\n status: "fulfilled";\n value: T;\n}\n\ninterface PromiseRejectedResult {\n status: "rejected";\n reason: any;\n}\n\ntype PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;\n\ninterface PromiseConstructor {\n /**\n * Creates a Promise that is resolved with an array of results when all\n * of the provided Promises resolve or reject.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all\n * of the provided Promises resolve or reject.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;\n}\n',Ea["lib.es2020.sharedmemory.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Atomics {\n /**\n * Adds a value to the value at the given position in the array, returning the original value.\n * Until this atomic operation completes, any other read or write operation against the array\n * will block.\n */\n add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Stores the bitwise AND of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or\n * write operation against the array will block.\n */\n and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Replaces the value at the given position in the array if the original value equals the given\n * expected value, returning the original value. Until this atomic operation completes, any\n * other read or write operation against the array will block.\n */\n compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;\n\n /**\n * Replaces the value at the given position in the array, returning the original value. Until\n * this atomic operation completes, any other read or write operation against the array will\n * block.\n */\n exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Returns the value at the given position in the array. Until this atomic operation completes,\n * any other read or write operation against the array will block.\n */\n load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;\n\n /**\n * Stores the bitwise OR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Stores a value at the given position in the array, returning the new value. Until this\n * atomic operation completes, any other read or write operation against the array will block.\n */\n store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Subtracts a value from the value at the given position in the array, returning the original\n * value. Until this atomic operation completes, any other read or write operation against the\n * array will block.\n */\n sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * If the value at the given position in the array is equal to the provided value, the current\n * agent is put to sleep causing execution to suspend until the timeout expires (returning\n * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns\n * `"not-equal"`.\n */\n wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";\n\n /**\n * Wakes up sleeping agents that are waiting on the given index of the array, returning the\n * number of agents that were awoken.\n * @param typedArray A shared BigInt64Array.\n * @param index The position in the typedArray to wake up on.\n * @param count The number of sleeping agents to notify. Defaults to +Infinity.\n */\n notify(typedArray: BigInt64Array, index: number, count?: number): number;\n\n /**\n * Stores the bitwise XOR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n}\n',Ea["lib.es2020.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.iterable" />\n\ninterface String {\n /**\n * Matches a string with a regular expression, and returns an iterable of matches\n * containing the results of that search.\n * @param regexp A variable name or string literal containing the regular expression pattern and flags.\n */\n matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;\n}\n',Ea["lib.es2020.symbol.wellknown.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.iterable" />\n/// <reference lib="es2015.symbol" />\n\ninterface SymbolConstructor {\n /**\n * A regular expression method that matches the regular expression against a string. Called\n * by the String.prototype.matchAll method.\n */\n readonly matchAll: unique symbol;\n}\n\ninterface RegExp {\n /**\n * Matches a string with this regular expression, and returns an iterable of matches\n * containing the results of that search.\n * @param string A string to search within.\n */\n [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;\n}\n',Ea["lib.es2021.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020" />\n/// <reference lib="es2021.promise" />\n/// <reference lib="es2021.string" />\n/// <reference lib="es2021.weakref" />\n/// <reference lib="es2021.intl" />\n',Ea["lib.es2021.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2021" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',Ea["lib.es2021.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n\n interface DateTimeFormatPartTypesRegistry {\n fractionalSecond: any\n }\n\n interface DateTimeFormatOptions {\n formatMatcher?: "basic" | "best fit" | "best fit" | undefined;\n dateStyle?: "full" | "long" | "medium" | "short" | undefined;\n timeStyle?: "full" | "long" | "medium" | "short" | undefined;\n dayPeriod?: "narrow" | "short" | "long" | undefined;\n fractionalSecondDigits?: 1 | 2 | 3 | undefined;\n }\n\n interface DateTimeRangeFormatPart extends DateTimeFormatPart {\n source: "startRange" | "endRange" | "shared"\n }\n\n interface DateTimeFormat {\n formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;\n formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];\n }\n\n interface ResolvedDateTimeFormatOptions {\n formatMatcher?: "basic" | "best fit" | "best fit";\n dateStyle?: "full" | "long" | "medium" | "short";\n timeStyle?: "full" | "long" | "medium" | "short";\n hourCycle?: "h11" | "h12" | "h23" | "h24";\n dayPeriod?: "narrow" | "short" | "long";\n fractionalSecondDigits?: 1 | 2 | 3;\n }\n\n /**\n * The locale matching algorithm to use.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\n */\n type ListFormatLocaleMatcher = "lookup" | "best fit";\n\n /**\n * The format of output message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\n */\n type ListFormatType = "conjunction" | "disjunction" | "unit";\n\n /**\n * The length of the formatted message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\n */\n type ListFormatStyle = "long" | "short" | "narrow";\n\n /**\n * An object with some or all properties of the `Intl.ListFormat` constructor `options` parameter.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\n */\n interface ListFormatOptions {\n /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */\n localeMatcher?: ListFormatLocaleMatcher | undefined;\n /** The format of output message. */\n type?: ListFormatType | undefined;\n /** The length of the internationalized message. */\n style?: ListFormatStyle | undefined;\n }\n\n interface ResolvedListFormatOptions {\n locale: string;\n style: ListFormatStyle;\n type: ListFormatType;\n }\n\n interface ListFormat {\n /**\n * Returns a string with a language-specific representation of the list.\n *\n * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).\n *\n * @throws `TypeError` if `list` includes something other than the possible values.\n *\n * @returns {string} A language-specific formatted string representing the elements of the list.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).\n */\n format(list: Iterable<string>): string;\n\n /**\n * Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.\n *\n * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.\n *\n * @throws `TypeError` if `list` includes something other than the possible values.\n *\n * @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).\n */\n formatToParts(list: Iterable<string>): { type: "element" | "literal", value: string; }[];\n\n /**\n * Returns a new object with properties reflecting the locale and style\n * formatting options computed during the construction of the current\n * `Intl.ListFormat` object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).\n */\n resolvedOptions(): ResolvedListFormatOptions;\n }\n\n const ListFormat: {\n prototype: ListFormat;\n\n /**\n * Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that\n * enable language-sensitive list formatting.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the `locales` argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)\n * with some or all options of `ListFormatOptions`.\n *\n * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).\n */\n new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat;\n\n /**\n * Returns an array containing those of the provided locales that are\n * supported in list formatting without having to fall back to the runtime\'s default locale.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the `locales` argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).\n * with some or all possible options.\n *\n * @returns An array of strings representing a subset of the given locale tags that are supported in list\n * formatting without having to fall back to the runtime\'s default locale.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).\n */\n supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<ListFormatOptions, "localeMatcher">): BCP47LanguageTag[];\n };\n}\n',Ea["lib.es2021.promise.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface AggregateError extends Error {\n errors: any[]\n}\n\ninterface AggregateErrorConstructor {\n new(errors: Iterable<any>, message?: string): AggregateError;\n (errors: Iterable<any>, message?: string): AggregateError;\n readonly prototype: AggregateError;\n}\n\ndeclare var AggregateError: AggregateErrorConstructor;\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface PromiseConstructor {\n /**\n * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.\n * @param values An array or iterable of Promises.\n * @returns A new Promise.\n */\n any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;\n\n /**\n * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.\n * @param values An array or iterable of Promises.\n * @returns A new Promise.\n */\n any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>\n}\n',Ea["lib.es2021.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface String {\n /**\n * Replace all instances of a substring in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.\n */\n replaceAll(searchValue: string | RegExp, replaceValue: string): string;\n\n /**\n * Replace all instances of a substring in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replacer A function that returns the replacement text.\n */\n replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;\n}\n',Ea["lib.es2021.weakref.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface WeakRef<T extends object> {\n readonly [Symbol.toStringTag]: "WeakRef";\n\n /**\n * Returns the WeakRef instance\'s target object, or undefined if the target object has been\n * reclaimed.\n */\n deref(): T | undefined;\n}\n\ninterface WeakRefConstructor {\n readonly prototype: WeakRef<any>;\n\n /**\n * Creates a WeakRef instance for the given target object.\n * @param target The target object for the WeakRef instance.\n */\n new<T extends object>(target: T): WeakRef<T>;\n}\n\ndeclare var WeakRef: WeakRefConstructor;\n\ninterface FinalizationRegistry<T> {\n readonly [Symbol.toStringTag]: "FinalizationRegistry";\n\n /**\n * Registers an object with the registry.\n * @param target The target object to register.\n * @param heldValue The value to pass to the finalizer for this object. This cannot be the\n * target object.\n * @param unregisterToken The token to pass to the unregister method to unregister the target\n * object. If provided (and not undefined), this must be an object. If not provided, the target\n * cannot be unregistered.\n */\n register(target: object, heldValue: T, unregisterToken?: object): void;\n\n /**\n * Unregisters an object from the registry.\n * @param unregisterToken The token that was used as the unregisterToken argument when calling\n * register to register the target object.\n */\n unregister(unregisterToken: object): void;\n}\n\ninterface FinalizationRegistryConstructor {\n readonly prototype: FinalizationRegistry<any>;\n\n /**\n * Creates a finalization registry with an associated cleanup callback\n * @param cleanupCallback The callback to call after an object in the registry has been reclaimed.\n */\n new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;\n}\n\ndeclare var FinalizationRegistry: FinalizationRegistryConstructor;\n',Ea["lib.es2022.array.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Array<T> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): T | undefined;\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): T | undefined;\n}\n\ninterface Int8Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Uint8Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Uint8ClampedArray {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Int16Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Uint16Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Int32Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Uint32Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Float32Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Float64Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface BigInt64Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): bigint | undefined;\n}\n\ninterface BigUint64Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): bigint | undefined;\n}\n',Ea["lib.es2022.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2021" />\n/// <reference lib="es2022.array" />\n/// <reference lib="es2022.error" />\n/// <reference lib="es2022.intl" />\n/// <reference lib="es2022.object" />\n/// <reference lib="es2022.sharedmemory" />\n/// <reference lib="es2022.string" />\n/// <reference lib="es2022.regexp" />\n',Ea["lib.es2022.error.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface ErrorOptions {\n cause?: unknown;\n}\n\ninterface Error {\n cause?: unknown;\n}\n\ninterface ErrorConstructor {\n new (message?: string, options?: ErrorOptions): Error;\n (message?: string, options?: ErrorOptions): Error;\n}\n\ninterface EvalErrorConstructor {\n new (message?: string, options?: ErrorOptions): EvalError;\n (message?: string, options?: ErrorOptions): EvalError;\n}\n\ninterface RangeErrorConstructor {\n new (message?: string, options?: ErrorOptions): RangeError;\n (message?: string, options?: ErrorOptions): RangeError;\n}\n\ninterface ReferenceErrorConstructor {\n new (message?: string, options?: ErrorOptions): ReferenceError;\n (message?: string, options?: ErrorOptions): ReferenceError;\n}\n\ninterface SyntaxErrorConstructor {\n new (message?: string, options?: ErrorOptions): SyntaxError;\n (message?: string, options?: ErrorOptions): SyntaxError;\n}\n\ninterface TypeErrorConstructor {\n new (message?: string, options?: ErrorOptions): TypeError;\n (message?: string, options?: ErrorOptions): TypeError;\n}\n\ninterface URIErrorConstructor {\n new (message?: string, options?: ErrorOptions): URIError;\n (message?: string, options?: ErrorOptions): URIError;\n}\n\ninterface AggregateErrorConstructor {\n new (\n errors: Iterable<any>,\n message?: string,\n options?: ErrorOptions\n ): AggregateError;\n (\n errors: Iterable<any>,\n message?: string,\n options?: ErrorOptions\n ): AggregateError;\n}\n',Ea["lib.es2022.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2022" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',Ea["lib.es2022.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n\n /**\n * An object with some or all properties of the `Intl.Segmenter` constructor `options` parameter.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)\n */\n interface SegmenterOptions {\n /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */\n localeMatcher?: "best fit" | "lookup" | undefined;\n /** The type of input to be split */\n granularity?: "grapheme" | "word" | "sentence" | undefined;\n }\n\n interface Segmenter {\n /**\n * Returns `Segments` object containing the segments of the input string, using the segmenter\'s locale and granularity.\n *\n * @param input - The text to be segmented as a `string`.\n *\n * @returns A new iterable Segments object containing the segments of the input string, using the segmenter\'s locale and granularity.\n */\n segment(input: string): Segments;\n resolvedOptions(): ResolvedSegmenterOptions;\n }\n\n interface ResolvedSegmenterOptions {\n locale: string;\n granularity: "grapheme" | "word" | "sentence";\n }\n\n interface Segments {\n /**\n * Returns an object describing the segment in the original string that includes the code unit at a specified index.\n *\n * @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to `0`.\n */\n containing(codeUnitIndex?: number): SegmentData;\n\n /** Returns an iterator to iterate over the segments. */\n [Symbol.iterator](): IterableIterator<SegmentData>;\n }\n\n interface SegmentData {\n /** A string containing the segment extracted from the original input string. */\n segment: string;\n /** The code unit index in the original input string at which the segment begins. */\n index: number;\n /** The complete input string that was segmented. */\n input: string;\n /**\n * A boolean value only if granularity is "word"; otherwise, undefined.\n * If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.\n */\n isWordLike?: boolean;\n }\n\n const Segmenter: {\n prototype: Segmenter;\n\n /**\n * Creates a new `Intl.Segmenter` object.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the `locales` argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)\n * with some or all options of `SegmenterOptions`.\n *\n * @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).\n */\n new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter;\n\n /**\n * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime\'s default locale.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the `locales` argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).\n * with some or all possible options.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)\n */\n supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<SegmenterOptions, "localeMatcher">): BCP47LanguageTag[];\n };\n}\n',Ea["lib.es2022.object.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface ObjectConstructor {\n /**\n * Determines whether an object has a property with the specified name.\n * @param o An object.\n * @param v A property name.\n */\n hasOwn(o: object, v: PropertyKey): boolean;\n}\n',Ea["lib.es2022.regexp.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface RegExpMatchArray {\n indices?: RegExpIndicesArray;\n}\n\ninterface RegExpExecArray {\n indices?: RegExpIndicesArray;\n}\n\ninterface RegExpIndicesArray extends Array<[number, number]> {\n groups?: {\n [key: string]: [number, number];\n };\n}\n\ninterface RegExp {\n /**\n * Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression.\n * Default is false. Read-only.\n */\n readonly hasIndices: boolean;\n}\n',Ea["lib.es2022.sharedmemory.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Atomics {\n /**\n * A non-blocking, asynchronous version of wait which is usable on the main thread.\n * Waits asynchronously on a shared memory location and returns a Promise\n * @param typedArray A shared Int32Array or BigInt64Array.\n * @param index The position in the typedArray to wait on.\n * @param value The expected value to test.\n * @param [timeout] The expected value to test.\n */\n waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> };\n\n /**\n * A non-blocking, asynchronous version of wait which is usable on the main thread.\n * Waits asynchronously on a shared memory location and returns a Promise\n * @param typedArray A shared Int32Array or BigInt64Array.\n * @param index The position in the typedArray to wait on.\n * @param value The expected value to test.\n * @param [timeout] The expected value to test.\n */\n waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> };\n}\n',Ea["lib.es2022.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface String {\n /**\n * Returns a new String consisting of the single UTF-16 code unit located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): string | undefined;\n}\n',Ea["lib.es2023.array.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Array<T> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number;\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): number;\n}\n\ninterface Int8Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(predicate: (value: number, index: number, array: Int8Array) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number;\n}\n\ninterface Uint8Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(predicate: (value: number, index: number, array: Uint8Array) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number;\n}\n\ninterface Uint8ClampedArray {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(predicate: (value: number, index: number, array: Uint8ClampedArray) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number;\n}\n\ninterface Int16Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(predicate: (value: number, index: number, array: Int16Array) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number;\n}\n\ninterface Uint16Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(predicate: (value: number, index: number, array: Uint16Array) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number;\n}\n\ninterface Int32Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(predicate: (value: number, index: number, array: Int32Array) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number;\n}\n\ninterface Uint32Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(predicate: (value: number, index: number, array: Uint32Array) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number;\n}\n\ninterface Float32Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(predicate: (value: number, index: number, array: Float32Array) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number;\n}\n\ninterface Float64Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(predicate: (value: number, index: number, array: Float64Array) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number;\n}\n\ninterface BigInt64Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigInt64Array) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): bigint | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): number;\n}\n\ninterface BigUint64Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigUint64Array) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): bigint | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): number;\n}\n',Ea["lib.es2023.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2022" />\n/// <reference lib="es2023.array" />\n',Ea["lib.es2023.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2023" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',Ea["lib.es5.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="decorators" />\n/// <reference lib="decorators.legacy" />\n\n/////////////////////////////\n/// ECMAScript APIs\n/////////////////////////////\n\ndeclare var NaN: number;\ndeclare var Infinity: number;\n\n/**\n * Evaluates JavaScript code and executes it.\n * @param x A String value that contains valid JavaScript code.\n */\ndeclare function eval(x: string): any;\n\n/**\n * Converts a string to an integer.\n * @param string A string to convert into a number.\n * @param radix A value between 2 and 36 that specifies the base of the number in `string`.\n * If this argument is not supplied, strings with a prefix of \'0x\' are considered hexadecimal.\n * All other strings are considered decimal.\n */\ndeclare function parseInt(string: string, radix?: number): number;\n\n/**\n * Converts a string to a floating-point number.\n * @param string A string that contains a floating-point number.\n */\ndeclare function parseFloat(string: string): number;\n\n/**\n * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).\n * @param number A numeric value.\n */\ndeclare function isNaN(number: number): boolean;\n\n/**\n * Determines whether a supplied number is finite.\n * @param number Any numeric value.\n */\ndeclare function isFinite(number: number): boolean;\n\n/**\n * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).\n * @param encodedURI A value representing an encoded URI.\n */\ndeclare function decodeURI(encodedURI: string): string;\n\n/**\n * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).\n * @param encodedURIComponent A value representing an encoded URI component.\n */\ndeclare function decodeURIComponent(encodedURIComponent: string): string;\n\n/**\n * Encodes a text string as a valid Uniform Resource Identifier (URI)\n * @param uri A value representing an unencoded URI.\n */\ndeclare function encodeURI(uri: string): string;\n\n/**\n * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).\n * @param uriComponent A value representing an unencoded URI component.\n */\ndeclare function encodeURIComponent(uriComponent: string | number | boolean): string;\n\n/**\n * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.\n * @deprecated A legacy feature for browser compatibility\n * @param string A string value\n */\ndeclare function escape(string: string): string;\n\n/**\n * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.\n * @deprecated A legacy feature for browser compatibility\n * @param string A string value\n */\ndeclare function unescape(string: string): string;\n\ninterface Symbol {\n /** Returns a string representation of an object. */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): symbol;\n}\n\ndeclare type PropertyKey = string | number | symbol;\n\ninterface PropertyDescriptor {\n configurable?: boolean;\n enumerable?: boolean;\n value?: any;\n writable?: boolean;\n get?(): any;\n set?(v: any): void;\n}\n\ninterface PropertyDescriptorMap {\n [key: PropertyKey]: PropertyDescriptor;\n}\n\ninterface Object {\n /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */\n constructor: Function;\n\n /** Returns a string representation of an object. */\n toString(): string;\n\n /** Returns a date converted to a string using the current locale. */\n toLocaleString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Object;\n\n /**\n * Determines whether an object has a property with the specified name.\n * @param v A property name.\n */\n hasOwnProperty(v: PropertyKey): boolean;\n\n /**\n * Determines whether an object exists in another object\'s prototype chain.\n * @param v Another object whose prototype chain is to be checked.\n */\n isPrototypeOf(v: Object): boolean;\n\n /**\n * Determines whether a specified property is enumerable.\n * @param v A property name.\n */\n propertyIsEnumerable(v: PropertyKey): boolean;\n}\n\ninterface ObjectConstructor {\n new(value?: any): Object;\n (): any;\n (value: any): any;\n\n /** A reference to the prototype for a class of objects. */\n readonly prototype: Object;\n\n /**\n * Returns the prototype of an object.\n * @param o The object that references the prototype.\n */\n getPrototypeOf(o: any): any;\n\n /**\n * Gets the own property descriptor of the specified object.\n * An own property descriptor is one that is defined directly on the object and is not inherited from the object\'s prototype.\n * @param o Object that contains the property.\n * @param p Name of the property.\n */\n getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;\n\n /**\n * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly\n * on that object, and are not inherited from the object\'s prototype. The properties of an object include both fields (objects) and functions.\n * @param o Object that contains the own properties.\n */\n getOwnPropertyNames(o: any): string[];\n\n /**\n * Creates an object that has the specified prototype or that has null prototype.\n * @param o Object to use as a prototype. May be null.\n */\n create(o: object | null): any;\n\n /**\n * Creates an object that has the specified prototype, and that optionally contains specified properties.\n * @param o Object to use as a prototype. May be null\n * @param properties JavaScript object that contains one or more property descriptors.\n */\n create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;\n\n /**\n * Adds a property to an object, or modifies attributes of an existing property.\n * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.\n * @param p The property name.\n * @param attributes Descriptor for the property. It can be for a data property or an accessor property.\n */\n defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;\n\n /**\n * Adds one or more properties to an object, and/or modifies attributes of existing properties.\n * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.\n * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.\n */\n defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;\n\n /**\n * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.\n * @param o Object on which to lock the attributes.\n */\n seal<T>(o: T): T;\n\n /**\n * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n * @param f Object on which to lock the attributes.\n */\n freeze<T extends Function>(f: T): T;\n\n /**\n * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n * @param o Object on which to lock the attributes.\n */\n freeze<T extends {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;\n\n /**\n * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n * @param o Object on which to lock the attributes.\n */\n freeze<T>(o: T): Readonly<T>;\n\n /**\n * Prevents the addition of new properties to an object.\n * @param o Object to make non-extensible.\n */\n preventExtensions<T>(o: T): T;\n\n /**\n * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.\n * @param o Object to test.\n */\n isSealed(o: any): boolean;\n\n /**\n * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.\n * @param o Object to test.\n */\n isFrozen(o: any): boolean;\n\n /**\n * Returns a value that indicates whether new properties can be added to an object.\n * @param o Object to test.\n */\n isExtensible(o: any): boolean;\n\n /**\n * Returns the names of the enumerable string properties and methods of an object.\n * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n */\n keys(o: object): string[];\n}\n\n/**\n * Provides functionality common to all JavaScript objects.\n */\ndeclare var Object: ObjectConstructor;\n\n/**\n * Creates a new function.\n */\ninterface Function {\n /**\n * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.\n * @param thisArg The object to be used as the this object.\n * @param argArray A set of arguments to be passed to the function.\n */\n apply(this: Function, thisArg: any, argArray?: any): any;\n\n /**\n * Calls a method of an object, substituting another object for the current object.\n * @param thisArg The object to be used as the current object.\n * @param argArray A list of arguments to be passed to the method.\n */\n call(this: Function, thisArg: any, ...argArray: any[]): any;\n\n /**\n * For a given function, creates a bound function that has the same body as the original function.\n * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n * @param thisArg An object to which the this keyword can refer inside the new function.\n * @param argArray A list of arguments to be passed to the new function.\n */\n bind(this: Function, thisArg: any, ...argArray: any[]): any;\n\n /** Returns a string representation of a function. */\n toString(): string;\n\n prototype: any;\n readonly length: number;\n\n // Non-standard extensions\n arguments: any;\n caller: Function;\n}\n\ninterface FunctionConstructor {\n /**\n * Creates a new function.\n * @param args A list of arguments the function accepts.\n */\n new(...args: string[]): Function;\n (...args: string[]): Function;\n readonly prototype: Function;\n}\n\ndeclare var Function: FunctionConstructor;\n\n/**\n * Extracts the type of the \'this\' parameter of a function type, or \'unknown\' if the function type has no \'this\' parameter.\n */\ntype ThisParameterType<T> = T extends (this: infer U, ...args: never) => any ? U : unknown;\n\n/**\n * Removes the \'this\' parameter from a function type.\n */\ntype OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;\n\ninterface CallableFunction extends Function {\n /**\n * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args An array of argument values to be passed to the function.\n */\n apply<T, R>(this: (this: T) => R, thisArg: T): R;\n apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;\n\n /**\n * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args Argument values to be passed to the function.\n */\n call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;\n\n /**\n * For a given function, creates a bound function that has the same body as the original function.\n * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n * @param thisArg The object to be used as the this object.\n * @param args Arguments to bind to the parameters of the function.\n */\n bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;\n bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;\n bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;\n bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;\n bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;\n bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;\n}\n\ninterface NewableFunction extends Function {\n /**\n * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args An array of argument values to be passed to the function.\n */\n apply<T>(this: new () => T, thisArg: T): void;\n apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;\n\n /**\n * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args Argument values to be passed to the function.\n */\n call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;\n\n /**\n * For a given function, creates a bound function that has the same body as the original function.\n * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n * @param thisArg The object to be used as the this object.\n * @param args Arguments to bind to the parameters of the function.\n */\n bind<T>(this: T, thisArg: any): T;\n bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;\n bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;\n bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;\n bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;\n bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;\n}\n\ninterface IArguments {\n [index: number]: any;\n length: number;\n callee: Function;\n}\n\ninterface String {\n /** Returns a string representation of a string. */\n toString(): string;\n\n /**\n * Returns the character at the specified index.\n * @param pos The zero-based index of the desired character.\n */\n charAt(pos: number): string;\n\n /**\n * Returns the Unicode value of the character at the specified location.\n * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.\n */\n charCodeAt(index: number): number;\n\n /**\n * Returns a string that contains the concatenation of two or more strings.\n * @param strings The strings to append to the end of the string.\n */\n concat(...strings: string[]): string;\n\n /**\n * Returns the position of the first occurrence of a substring.\n * @param searchString The substring to search for in the string\n * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.\n */\n indexOf(searchString: string, position?: number): number;\n\n /**\n * Returns the last occurrence of a substring in the string.\n * @param searchString The substring to search for.\n * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.\n */\n lastIndexOf(searchString: string, position?: number): number;\n\n /**\n * Determines whether two strings are equivalent in the current locale.\n * @param that String to compare to target string\n */\n localeCompare(that: string): number;\n\n /**\n * Matches a string with a regular expression, and returns an array containing the results of that search.\n * @param regexp A variable name or string literal containing the regular expression pattern and flags.\n */\n match(regexp: string | RegExp): RegExpMatchArray | null;\n\n /**\n * Replaces text in a string, using a regular expression or search string.\n * @param searchValue A string or regular expression to search for.\n * @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag is also present). Otherwise, only the first match of {@linkcode searchValue} is replaced.\n */\n replace(searchValue: string | RegExp, replaceValue: string): string;\n\n /**\n * Replaces text in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replacer A function that returns the replacement text.\n */\n replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;\n\n /**\n * Finds the first substring match in a regular expression search.\n * @param regexp The regular expression pattern and applicable flags.\n */\n search(regexp: string | RegExp): number;\n\n /**\n * Returns a section of a string.\n * @param start The index to the beginning of the specified portion of stringObj.\n * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.\n * If this value is not specified, the substring continues to the end of stringObj.\n */\n slice(start?: number, end?: number): string;\n\n /**\n * Split a string into substrings using the specified separator and return them as an array.\n * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.\n * @param limit A value used to limit the number of elements returned in the array.\n */\n split(separator: string | RegExp, limit?: number): string[];\n\n /**\n * Returns the substring at the specified location within a String object.\n * @param start The zero-based index number indicating the beginning of the substring.\n * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.\n * If end is omitted, the characters from start through the end of the original string are returned.\n */\n substring(start: number, end?: number): string;\n\n /** Converts all the alphabetic characters in a string to lowercase. */\n toLowerCase(): string;\n\n /** Converts all alphabetic characters to lowercase, taking into account the host environment\'s current locale. */\n toLocaleLowerCase(locales?: string | string[]): string;\n\n /** Converts all the alphabetic characters in a string to uppercase. */\n toUpperCase(): string;\n\n /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment\'s current locale. */\n toLocaleUpperCase(locales?: string | string[]): string;\n\n /** Removes the leading and trailing white space and line terminator characters from a string. */\n trim(): string;\n\n /** Returns the length of a String object. */\n readonly length: number;\n\n // IE extensions\n /**\n * Gets a substring beginning at the specified location and having the specified length.\n * @deprecated A legacy feature for browser compatibility\n * @param from The starting position of the desired substring. The index of the first character in the string is zero.\n * @param length The number of characters to include in the returned substring.\n */\n substr(from: number, length?: number): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): string;\n\n readonly [index: number]: string;\n}\n\ninterface StringConstructor {\n new(value?: any): String;\n (value?: any): string;\n readonly prototype: String;\n fromCharCode(...codes: number[]): string;\n}\n\n/**\n * Allows manipulation and formatting of text strings and determination and location of substrings within strings.\n */\ndeclare var String: StringConstructor;\n\ninterface Boolean {\n /** Returns the primitive value of the specified object. */\n valueOf(): boolean;\n}\n\ninterface BooleanConstructor {\n new(value?: any): Boolean;\n <T>(value?: T): boolean;\n readonly prototype: Boolean;\n}\n\ndeclare var Boolean: BooleanConstructor;\n\ninterface Number {\n /**\n * Returns a string representation of an object.\n * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.\n */\n toString(radix?: number): string;\n\n /**\n * Returns a string representing a number in fixed-point notation.\n * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.\n */\n toFixed(fractionDigits?: number): string;\n\n /**\n * Returns a string containing a number represented in exponential notation.\n * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.\n */\n toExponential(fractionDigits?: number): string;\n\n /**\n * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.\n * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.\n */\n toPrecision(precision?: number): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): number;\n}\n\ninterface NumberConstructor {\n new(value?: any): Number;\n (value?: any): number;\n readonly prototype: Number;\n\n /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */\n readonly MAX_VALUE: number;\n\n /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */\n readonly MIN_VALUE: number;\n\n /**\n * A value that is not a number.\n * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.\n */\n readonly NaN: number;\n\n /**\n * A value that is less than the largest negative number that can be represented in JavaScript.\n * JavaScript displays NEGATIVE_INFINITY values as -infinity.\n */\n readonly NEGATIVE_INFINITY: number;\n\n /**\n * A value greater than the largest number that can be represented in JavaScript.\n * JavaScript displays POSITIVE_INFINITY values as infinity.\n */\n readonly POSITIVE_INFINITY: number;\n}\n\n/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */\ndeclare var Number: NumberConstructor;\n\ninterface TemplateStringsArray extends ReadonlyArray<string> {\n readonly raw: readonly string[];\n}\n\n/**\n * The type of `import.meta`.\n *\n * If you need to declare that a given property exists on `import.meta`,\n * this type may be augmented via interface merging.\n */\ninterface ImportMeta {\n}\n\n/**\n * The type for the optional second argument to `import()`.\n *\n * If your host environment supports additional options, this type may be\n * augmented via interface merging.\n */\ninterface ImportCallOptions {\n assert?: ImportAssertions;\n}\n\n/**\n * The type for the `assert` property of the optional second argument to `import()`.\n */\ninterface ImportAssertions {\n [key: string]: string;\n}\n\ninterface Math {\n /** The mathematical constant e. This is Euler\'s number, the base of natural logarithms. */\n readonly E: number;\n /** The natural logarithm of 10. */\n readonly LN10: number;\n /** The natural logarithm of 2. */\n readonly LN2: number;\n /** The base-2 logarithm of e. */\n readonly LOG2E: number;\n /** The base-10 logarithm of e. */\n readonly LOG10E: number;\n /** Pi. This is the ratio of the circumference of a circle to its diameter. */\n readonly PI: number;\n /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */\n readonly SQRT1_2: number;\n /** The square root of 2. */\n readonly SQRT2: number;\n /**\n * Returns the absolute value of a number (the value without regard to whether it is positive or negative).\n * For example, the absolute value of -5 is the same as the absolute value of 5.\n * @param x A numeric expression for which the absolute value is needed.\n */\n abs(x: number): number;\n /**\n * Returns the arc cosine (or inverse cosine) of a number.\n * @param x A numeric expression.\n */\n acos(x: number): number;\n /**\n * Returns the arcsine of a number.\n * @param x A numeric expression.\n */\n asin(x: number): number;\n /**\n * Returns the arctangent of a number.\n * @param x A numeric expression for which the arctangent is needed.\n */\n atan(x: number): number;\n /**\n * Returns the angle (in radians) from the X axis to a point.\n * @param y A numeric expression representing the cartesian y-coordinate.\n * @param x A numeric expression representing the cartesian x-coordinate.\n */\n atan2(y: number, x: number): number;\n /**\n * Returns the smallest integer greater than or equal to its numeric argument.\n * @param x A numeric expression.\n */\n ceil(x: number): number;\n /**\n * Returns the cosine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n cos(x: number): number;\n /**\n * Returns e (the base of natural logarithms) raised to a power.\n * @param x A numeric expression representing the power of e.\n */\n exp(x: number): number;\n /**\n * Returns the greatest integer less than or equal to its numeric argument.\n * @param x A numeric expression.\n */\n floor(x: number): number;\n /**\n * Returns the natural logarithm (base e) of a number.\n * @param x A numeric expression.\n */\n log(x: number): number;\n /**\n * Returns the larger of a set of supplied numeric expressions.\n * @param values Numeric expressions to be evaluated.\n */\n max(...values: number[]): number;\n /**\n * Returns the smaller of a set of supplied numeric expressions.\n * @param values Numeric expressions to be evaluated.\n */\n min(...values: number[]): number;\n /**\n * Returns the value of a base expression taken to a specified power.\n * @param x The base value of the expression.\n * @param y The exponent value of the expression.\n */\n pow(x: number, y: number): number;\n /** Returns a pseudorandom number between 0 and 1. */\n random(): number;\n /**\n * Returns a supplied numeric expression rounded to the nearest integer.\n * @param x The value to be rounded to the nearest integer.\n */\n round(x: number): number;\n /**\n * Returns the sine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n sin(x: number): number;\n /**\n * Returns the square root of a number.\n * @param x A numeric expression.\n */\n sqrt(x: number): number;\n /**\n * Returns the tangent of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n tan(x: number): number;\n}\n/** An intrinsic object that provides basic mathematics functionality and constants. */\ndeclare var Math: Math;\n\n/** Enables basic storage and retrieval of dates and times. */\ninterface Date {\n /** Returns a string representation of a date. The format of the string depends on the locale. */\n toString(): string;\n /** Returns a date as a string value. */\n toDateString(): string;\n /** Returns a time as a string value. */\n toTimeString(): string;\n /** Returns a value as a string value appropriate to the host environment\'s current locale. */\n toLocaleString(): string;\n /** Returns a date as a string value appropriate to the host environment\'s current locale. */\n toLocaleDateString(): string;\n /** Returns a time as a string value appropriate to the host environment\'s current locale. */\n toLocaleTimeString(): string;\n /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */\n valueOf(): number;\n /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */\n getTime(): number;\n /** Gets the year, using local time. */\n getFullYear(): number;\n /** Gets the year using Universal Coordinated Time (UTC). */\n getUTCFullYear(): number;\n /** Gets the month, using local time. */\n getMonth(): number;\n /** Gets the month of a Date object using Universal Coordinated Time (UTC). */\n getUTCMonth(): number;\n /** Gets the day-of-the-month, using local time. */\n getDate(): number;\n /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */\n getUTCDate(): number;\n /** Gets the day of the week, using local time. */\n getDay(): number;\n /** Gets the day of the week using Universal Coordinated Time (UTC). */\n getUTCDay(): number;\n /** Gets the hours in a date, using local time. */\n getHours(): number;\n /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */\n getUTCHours(): number;\n /** Gets the minutes of a Date object, using local time. */\n getMinutes(): number;\n /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */\n getUTCMinutes(): number;\n /** Gets the seconds of a Date object, using local time. */\n getSeconds(): number;\n /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */\n getUTCSeconds(): number;\n /** Gets the milliseconds of a Date, using local time. */\n getMilliseconds(): number;\n /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */\n getUTCMilliseconds(): number;\n /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */\n getTimezoneOffset(): number;\n /**\n * Sets the date and time value in the Date object.\n * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.\n */\n setTime(time: number): number;\n /**\n * Sets the milliseconds value in the Date object using local time.\n * @param ms A numeric value equal to the millisecond value.\n */\n setMilliseconds(ms: number): number;\n /**\n * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).\n * @param ms A numeric value equal to the millisecond value.\n */\n setUTCMilliseconds(ms: number): number;\n\n /**\n * Sets the seconds value in the Date object using local time.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setSeconds(sec: number, ms?: number): number;\n /**\n * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCSeconds(sec: number, ms?: number): number;\n /**\n * Sets the minutes value in the Date object using local time.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setMinutes(min: number, sec?: number, ms?: number): number;\n /**\n * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCMinutes(min: number, sec?: number, ms?: number): number;\n /**\n * Sets the hour value in the Date object using local time.\n * @param hours A numeric value equal to the hours value.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setHours(hours: number, min?: number, sec?: number, ms?: number): number;\n /**\n * Sets the hours value in the Date object using Universal Coordinated Time (UTC).\n * @param hours A numeric value equal to the hours value.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;\n /**\n * Sets the numeric day-of-the-month value of the Date object using local time.\n * @param date A numeric value equal to the day of the month.\n */\n setDate(date: number): number;\n /**\n * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).\n * @param date A numeric value equal to the day of the month.\n */\n setUTCDate(date: number): number;\n /**\n * Sets the month value in the Date object using local time.\n * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.\n * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.\n */\n setMonth(month: number, date?: number): number;\n /**\n * Sets the month value in the Date object using Universal Coordinated Time (UTC).\n * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.\n * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.\n */\n setUTCMonth(month: number, date?: number): number;\n /**\n * Sets the year of the Date object using local time.\n * @param year A numeric value for the year.\n * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.\n * @param date A numeric value equal for the day of the month.\n */\n setFullYear(year: number, month?: number, date?: number): number;\n /**\n * Sets the year value in the Date object using Universal Coordinated Time (UTC).\n * @param year A numeric value equal to the year.\n * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.\n * @param date A numeric value equal to the day of the month.\n */\n setUTCFullYear(year: number, month?: number, date?: number): number;\n /** Returns a date converted to a string using Universal Coordinated Time (UTC). */\n toUTCString(): string;\n /** Returns a date as a string value in ISO format. */\n toISOString(): string;\n /** Used by the JSON.stringify method to enable the transformation of an object\'s data for JavaScript Object Notation (JSON) serialization. */\n toJSON(key?: any): string;\n}\n\ninterface DateConstructor {\n new(): Date;\n new(value: number | string): Date;\n /**\n * Creates a new Date.\n * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.\n * @param monthIndex The month as a number between 0 and 11 (January to December).\n * @param date The date as a number between 1 and 31.\n * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.\n * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.\n * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.\n * @param ms A number from 0 to 999 that specifies the milliseconds.\n */\n new(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;\n (): string;\n readonly prototype: Date;\n /**\n * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.\n * @param s A date string\n */\n parse(s: string): number;\n /**\n * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.\n * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.\n * @param monthIndex The month as a number between 0 and 11 (January to December).\n * @param date The date as a number between 1 and 31.\n * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.\n * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.\n * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.\n * @param ms A number from 0 to 999 that specifies the milliseconds.\n */\n UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;\n /** Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC). */\n now(): number;\n}\n\ndeclare var Date: DateConstructor;\n\ninterface RegExpMatchArray extends Array<string> {\n /**\n * The index of the search at which the result was found.\n */\n index?: number;\n /**\n * A copy of the search string.\n */\n input?: string;\n /**\n * The first match. This will always be present because `null` will be returned if there are no matches.\n */\n 0: string;\n}\n\ninterface RegExpExecArray extends Array<string> {\n /**\n * The index of the search at which the result was found.\n */\n index: number;\n /**\n * A copy of the search string.\n */\n input: string;\n /**\n * The first match. This will always be present because `null` will be returned if there are no matches.\n */\n 0: string;\n}\n\ninterface RegExp {\n /**\n * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.\n * @param string The String object or string literal on which to perform the search.\n */\n exec(string: string): RegExpExecArray | null;\n\n /**\n * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.\n * @param string String on which to perform the search.\n */\n test(string: string): boolean;\n\n /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */\n readonly source: string;\n\n /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */\n readonly global: boolean;\n\n /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */\n readonly ignoreCase: boolean;\n\n /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */\n readonly multiline: boolean;\n\n lastIndex: number;\n\n // Non-standard extensions\n /** @deprecated A legacy feature for browser compatibility */\n compile(pattern: string, flags?: string): this;\n}\n\ninterface RegExpConstructor {\n new(pattern: RegExp | string): RegExp;\n new(pattern: string, flags?: string): RegExp;\n (pattern: RegExp | string): RegExp;\n (pattern: string, flags?: string): RegExp;\n readonly prototype: RegExp;\n\n // Non-standard extensions\n /** @deprecated A legacy feature for browser compatibility */\n $1: string;\n /** @deprecated A legacy feature for browser compatibility */\n $2: string;\n /** @deprecated A legacy feature for browser compatibility */\n $3: string;\n /** @deprecated A legacy feature for browser compatibility */\n $4: string;\n /** @deprecated A legacy feature for browser compatibility */\n $5: string;\n /** @deprecated A legacy feature for browser compatibility */\n $6: string;\n /** @deprecated A legacy feature for browser compatibility */\n $7: string;\n /** @deprecated A legacy feature for browser compatibility */\n $8: string;\n /** @deprecated A legacy feature for browser compatibility */\n $9: string;\n /** @deprecated A legacy feature for browser compatibility */\n input: string;\n /** @deprecated A legacy feature for browser compatibility */\n $_: string;\n /** @deprecated A legacy feature for browser compatibility */\n lastMatch: string;\n /** @deprecated A legacy feature for browser compatibility */\n "$&": string;\n /** @deprecated A legacy feature for browser compatibility */\n lastParen: string;\n /** @deprecated A legacy feature for browser compatibility */\n "$+": string;\n /** @deprecated A legacy feature for browser compatibility */\n leftContext: string;\n /** @deprecated A legacy feature for browser compatibility */\n "$`": string;\n /** @deprecated A legacy feature for browser compatibility */\n rightContext: string;\n /** @deprecated A legacy feature for browser compatibility */\n "$\'": string;\n}\n\ndeclare var RegExp: RegExpConstructor;\n\ninterface Error {\n name: string;\n message: string;\n stack?: string;\n}\n\ninterface ErrorConstructor {\n new(message?: string): Error;\n (message?: string): Error;\n readonly prototype: Error;\n}\n\ndeclare var Error: ErrorConstructor;\n\ninterface EvalError extends Error {\n}\n\ninterface EvalErrorConstructor extends ErrorConstructor {\n new(message?: string): EvalError;\n (message?: string): EvalError;\n readonly prototype: EvalError;\n}\n\ndeclare var EvalError: EvalErrorConstructor;\n\ninterface RangeError extends Error {\n}\n\ninterface RangeErrorConstructor extends ErrorConstructor {\n new(message?: string): RangeError;\n (message?: string): RangeError;\n readonly prototype: RangeError;\n}\n\ndeclare var RangeError: RangeErrorConstructor;\n\ninterface ReferenceError extends Error {\n}\n\ninterface ReferenceErrorConstructor extends ErrorConstructor {\n new(message?: string): ReferenceError;\n (message?: string): ReferenceError;\n readonly prototype: ReferenceError;\n}\n\ndeclare var ReferenceError: ReferenceErrorConstructor;\n\ninterface SyntaxError extends Error {\n}\n\ninterface SyntaxErrorConstructor extends ErrorConstructor {\n new(message?: string): SyntaxError;\n (message?: string): SyntaxError;\n readonly prototype: SyntaxError;\n}\n\ndeclare var SyntaxError: SyntaxErrorConstructor;\n\ninterface TypeError extends Error {\n}\n\ninterface TypeErrorConstructor extends ErrorConstructor {\n new(message?: string): TypeError;\n (message?: string): TypeError;\n readonly prototype: TypeError;\n}\n\ndeclare var TypeError: TypeErrorConstructor;\n\ninterface URIError extends Error {\n}\n\ninterface URIErrorConstructor extends ErrorConstructor {\n new(message?: string): URIError;\n (message?: string): URIError;\n readonly prototype: URIError;\n}\n\ndeclare var URIError: URIErrorConstructor;\n\ninterface JSON {\n /**\n * Converts a JavaScript Object Notation (JSON) string into an object.\n * @param text A valid JSON string.\n * @param reviver A function that transforms the results. This function is called for each member of the object.\n * If a member contains nested objects, the nested objects are transformed before the parent object is.\n */\n parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;\n /**\n * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n * @param value A JavaScript value, usually an object or array, to be converted.\n * @param replacer A function that transforms the results.\n * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n */\n stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;\n /**\n * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n * @param value A JavaScript value, usually an object or array, to be converted.\n * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.\n * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n */\n stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;\n}\n\n/**\n * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.\n */\ndeclare var JSON: JSON;\n\n\n/////////////////////////////\n/// ECMAScript Array API (specially handled by compiler)\n/////////////////////////////\n\ninterface ReadonlyArray<T> {\n /**\n * Gets the length of the array. This is a number one higher than the highest element defined in an array.\n */\n readonly length: number;\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n /**\n * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.\n */\n toLocaleString(): string;\n /**\n * Combines two or more arrays.\n * @param items Additional items to add to the end of array1.\n */\n concat(...items: ConcatArray<T>[]): T[];\n /**\n * Combines two or more arrays.\n * @param items Additional items to add to the end of array1.\n */\n concat(...items: (T | ConcatArray<T>)[]): T[];\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): T[];\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n */\n indexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Returns the index of the last occurrence of a specified value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.\n */\n lastIndexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;\n /**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\n filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];\n /**\n * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;\n /**\n * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;\n /**\n * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;\n /**\n * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;\n\n readonly [n: number]: T;\n}\n\ninterface ConcatArray<T> {\n readonly length: number;\n readonly [n: number]: T;\n join(separator?: string): string;\n slice(start?: number, end?: number): T[];\n}\n\ninterface Array<T> {\n /**\n * Gets or sets the length of the array. This is a number one higher than the highest index in the array.\n */\n length: number;\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n /**\n * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.\n */\n toLocaleString(): string;\n /**\n * Removes the last element from an array and returns it.\n * If the array is empty, undefined is returned and the array is not modified.\n */\n pop(): T | undefined;\n /**\n * Appends new elements to the end of an array, and returns the new length of the array.\n * @param items New elements to add to the array.\n */\n push(...items: T[]): number;\n /**\n * Combines two or more arrays.\n * This method returns a new array without modifying any existing arrays.\n * @param items Additional arrays and/or items to add to the end of the array.\n */\n concat(...items: ConcatArray<T>[]): T[];\n /**\n * Combines two or more arrays.\n * This method returns a new array without modifying any existing arrays.\n * @param items Additional arrays and/or items to add to the end of the array.\n */\n concat(...items: (T | ConcatArray<T>)[]): T[];\n /**\n * Adds all the elements of an array into a string, separated by the specified separator string.\n * @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n /**\n * Reverses the elements in an array in place.\n * This method mutates the array and returns a reference to the same array.\n */\n reverse(): T[];\n /**\n * Removes the first element from an array and returns it.\n * If the array is empty, undefined is returned and the array is not modified.\n */\n shift(): T | undefined;\n /**\n * Returns a copy of a section of an array.\n * For both start and end, a negative index can be used to indicate an offset from the end of the array.\n * For example, -2 refers to the second to last element of the array.\n * @param start The beginning index of the specified portion of the array.\n * If start is undefined, then the slice begins at index 0.\n * @param end The end index of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n * If end is undefined, then the slice extends to the end of the array.\n */\n slice(start?: number, end?: number): T[];\n /**\n * Sorts an array in place.\n * This method mutates the array and returns a reference to the same array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they\'re equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: T, b: T) => number): this;\n /**\n * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @returns An array containing the elements that were deleted.\n */\n splice(start: number, deleteCount?: number): T[];\n /**\n * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @param items Elements to insert into the array in place of the deleted elements.\n * @returns An array containing the elements that were deleted.\n */\n splice(start: number, deleteCount: number, ...items: T[]): T[];\n /**\n * Inserts new elements at the start of an array, and returns the new length of the array.\n * @param items Elements to insert at the start of the array.\n */\n unshift(...items: T[]): number;\n /**\n * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n */\n indexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.\n */\n lastIndexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;\n /**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\n filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];\n /**\n * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;\n /**\n * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;\n /**\n * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;\n /**\n * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;\n\n [n: number]: T;\n}\n\ninterface ArrayConstructor {\n new(arrayLength?: number): any[];\n new <T>(arrayLength: number): T[];\n new <T>(...items: T[]): T[];\n (arrayLength?: number): any[];\n <T>(arrayLength: number): T[];\n <T>(...items: T[]): T[];\n isArray(arg: any): arg is any[];\n readonly prototype: any[];\n}\n\ndeclare var Array: ArrayConstructor;\n\ninterface TypedPropertyDescriptor<T> {\n enumerable?: boolean;\n configurable?: boolean;\n writable?: boolean;\n value?: T;\n get?: () => T;\n set?: (value: T) => void;\n}\n\ndeclare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;\n\ninterface PromiseLike<T> {\n /**\n * Attaches callbacks for the resolution and/or rejection of the Promise.\n * @param onfulfilled The callback to execute when the Promise is resolved.\n * @param onrejected The callback to execute when the Promise is rejected.\n * @returns A Promise for the completion of which ever callback is executed.\n */\n then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;\n}\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches callbacks for the resolution and/or rejection of the Promise.\n * @param onfulfilled The callback to execute when the Promise is resolved.\n * @param onrejected The callback to execute when the Promise is rejected.\n * @returns A Promise for the completion of which ever callback is executed.\n */\n then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;\n\n /**\n * Attaches a callback for only the rejection of the Promise.\n * @param onrejected The callback to execute when the Promise is rejected.\n * @returns A Promise for the completion of the callback.\n */\n catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;\n}\n\n/**\n * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to `never`. This emulates the behavior of `await`.\n */\ntype Awaited<T> =\n T extends null | undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode\n T extends object & { then(onfulfilled: infer F, ...args: infer _): any } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped\n F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to `then` is callable, extracts the first argument\n Awaited<V> : // recursively unwrap the value\n never : // the argument to `then` was not callable\n T; // non-object or non-thenable\n\ninterface ArrayLike<T> {\n readonly length: number;\n readonly [n: number]: T;\n}\n\n/**\n * Make all properties in T optional\n */\ntype Partial<T> = {\n [P in keyof T]?: T[P];\n};\n\n/**\n * Make all properties in T required\n */\ntype Required<T> = {\n [P in keyof T]-?: T[P];\n};\n\n/**\n * Make all properties in T readonly\n */\ntype Readonly<T> = {\n readonly [P in keyof T]: T[P];\n};\n\n/**\n * From T, pick a set of properties whose keys are in the union K\n */\ntype Pick<T, K extends keyof T> = {\n [P in K]: T[P];\n};\n\n/**\n * Construct a type with a set of properties K of type T\n */\ntype Record<K extends keyof any, T> = {\n [P in K]: T;\n};\n\n/**\n * Exclude from T those types that are assignable to U\n */\ntype Exclude<T, U> = T extends U ? never : T;\n\n/**\n * Extract from T those types that are assignable to U\n */\ntype Extract<T, U> = T extends U ? T : never;\n\n/**\n * Construct a type with the properties of T except for those in type K.\n */\ntype Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;\n\n/**\n * Exclude null and undefined from T\n */\ntype NonNullable<T> = T & {};\n\n/**\n * Obtain the parameters of a function type in a tuple\n */\ntype Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;\n\n/**\n * Obtain the parameters of a constructor function type in a tuple\n */\ntype ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;\n\n/**\n * Obtain the return type of a function type\n */\ntype ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;\n\n/**\n * Obtain the return type of a constructor function type\n */\ntype InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;\n\n/**\n * Convert string literal type to uppercase\n */\ntype Uppercase<S extends string> = intrinsic;\n\n/**\n * Convert string literal type to lowercase\n */\ntype Lowercase<S extends string> = intrinsic;\n\n/**\n * Convert first character of string literal type to uppercase\n */\ntype Capitalize<S extends string> = intrinsic;\n\n/**\n * Convert first character of string literal type to lowercase\n */\ntype Uncapitalize<S extends string> = intrinsic;\n\n/**\n * Marker for contextual \'this\' type\n */\ninterface ThisType<T> { }\n\n/**\n * Represents a raw buffer of binary data, which is used to store data for the\n * different typed arrays. ArrayBuffers cannot be read from or written to directly,\n * but can be passed to a typed array or DataView Object to interpret the raw\n * buffer as needed.\n */\ninterface ArrayBuffer {\n /**\n * Read-only. The length of the ArrayBuffer (in bytes).\n */\n readonly byteLength: number;\n\n /**\n * Returns a section of an ArrayBuffer.\n */\n slice(begin: number, end?: number): ArrayBuffer;\n}\n\n/**\n * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.\n */\ninterface ArrayBufferTypes {\n ArrayBuffer: ArrayBuffer;\n}\ntype ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];\n\ninterface ArrayBufferConstructor {\n readonly prototype: ArrayBuffer;\n new(byteLength: number): ArrayBuffer;\n isView(arg: any): arg is ArrayBufferView;\n}\ndeclare var ArrayBuffer: ArrayBufferConstructor;\n\ninterface ArrayBufferView {\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n byteOffset: number;\n}\n\ninterface DataView {\n readonly buffer: ArrayBuffer;\n readonly byteLength: number;\n readonly byteOffset: number;\n /**\n * Gets the Float32 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getFloat32(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Float64 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getFloat64(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Int8 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getInt8(byteOffset: number): number;\n\n /**\n * Gets the Int16 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getInt16(byteOffset: number, littleEndian?: boolean): number;\n /**\n * Gets the Int32 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getInt32(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Uint8 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getUint8(byteOffset: number): number;\n\n /**\n * Gets the Uint16 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getUint16(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Uint32 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getUint32(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Stores an Float32 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Float64 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Int8 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n */\n setInt8(byteOffset: number, value: number): void;\n\n /**\n * Stores an Int16 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Int32 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Uint8 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n */\n setUint8(byteOffset: number, value: number): void;\n\n /**\n * Stores an Uint16 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Uint32 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;\n}\n\ninterface DataViewConstructor {\n readonly prototype: DataView;\n new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;\n}\ndeclare var DataView: DataViewConstructor;\n\n/**\n * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested\n * number of bytes could not be allocated an exception is raised.\n */\ninterface Int8Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int8Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Int8Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Int8Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Int8Array;\n\n [index: number]: number;\n}\ninterface Int8ArrayConstructor {\n readonly prototype: Int8Array;\n new(length: number): Int8Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;\n\n\n}\ndeclare var Int8Array: Int8ArrayConstructor;\n\n/**\n * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint8Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint8Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint8Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint8Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint8Array;\n\n [index: number]: number;\n}\n\ninterface Uint8ArrayConstructor {\n readonly prototype: Uint8Array;\n new(length: number): Uint8Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;\n\n}\ndeclare var Uint8Array: Uint8ArrayConstructor;\n\n/**\n * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.\n * If the requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint8ClampedArray {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint8ClampedArray;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint8ClampedArray;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint8ClampedArray;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint8ClampedArray;\n\n [index: number]: number;\n}\n\ninterface Uint8ClampedArrayConstructor {\n readonly prototype: Uint8ClampedArray;\n new(length: number): Uint8ClampedArray;\n new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint8ClampedArray;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint8ClampedArray;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\ndeclare var Uint8ClampedArray: Uint8ClampedArrayConstructor;\n\n/**\n * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Int16Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int16Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Int16Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Int16Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Int16Array;\n\n [index: number]: number;\n}\n\ninterface Int16ArrayConstructor {\n readonly prototype: Int16Array;\n new(length: number): Int16Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;\n\n\n}\ndeclare var Int16Array: Int16ArrayConstructor;\n\n/**\n * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint16Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint16Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint16Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint16Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint16Array;\n\n [index: number]: number;\n}\n\ninterface Uint16ArrayConstructor {\n readonly prototype: Uint16Array;\n new(length: number): Uint16Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;\n\n\n}\ndeclare var Uint16Array: Uint16ArrayConstructor;\n/**\n * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Int32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Int32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Int32Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Int32Array;\n\n [index: number]: number;\n}\n\ninterface Int32ArrayConstructor {\n readonly prototype: Int32Array;\n new(length: number): Int32Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;\n\n}\ndeclare var Int32Array: Int32ArrayConstructor;\n\n/**\n * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint32Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint32Array;\n\n [index: number]: number;\n}\n\ninterface Uint32ArrayConstructor {\n readonly prototype: Uint32Array;\n new(length: number): Uint32Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;\n\n}\ndeclare var Uint32Array: Uint32ArrayConstructor;\n\n/**\n * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number\n * of bytes could not be allocated an exception is raised.\n */\ninterface Float32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Float32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Float32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Float32Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Float32Array;\n\n [index: number]: number;\n}\n\ninterface Float32ArrayConstructor {\n readonly prototype: Float32Array;\n new(length: number): Float32Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;\n\n\n}\ndeclare var Float32Array: Float32ArrayConstructor;\n\n/**\n * A typed array of 64-bit float values. The contents are initialized to 0. If the requested\n * number of bytes could not be allocated an exception is raised.\n */\ninterface Float64Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Float64Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Float64Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Float64Array;\n\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Float64Array;\n\n [index: number]: number;\n}\n\ninterface Float64ArrayConstructor {\n readonly prototype: Float64Array;\n new(length: number): Float64Array;\n new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;\n new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;\n\n}\ndeclare var Float64Array: Float64ArrayConstructor;\n\n/////////////////////////////\n/// ECMAScript Internationalization API\n/////////////////////////////\n\ndeclare namespace Intl {\n interface CollatorOptions {\n usage?: string | undefined;\n localeMatcher?: string | undefined;\n numeric?: boolean | undefined;\n caseFirst?: string | undefined;\n sensitivity?: string | undefined;\n ignorePunctuation?: boolean | undefined;\n }\n\n interface ResolvedCollatorOptions {\n locale: string;\n usage: string;\n sensitivity: string;\n ignorePunctuation: boolean;\n collation: string;\n caseFirst: string;\n numeric: boolean;\n }\n\n interface Collator {\n compare(x: string, y: string): number;\n resolvedOptions(): ResolvedCollatorOptions;\n }\n var Collator: {\n new(locales?: string | string[], options?: CollatorOptions): Collator;\n (locales?: string | string[], options?: CollatorOptions): Collator;\n supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];\n };\n\n interface NumberFormatOptions {\n localeMatcher?: string | undefined;\n style?: string | undefined;\n currency?: string | undefined;\n currencySign?: string | undefined;\n useGrouping?: boolean | undefined;\n minimumIntegerDigits?: number | undefined;\n minimumFractionDigits?: number | undefined;\n maximumFractionDigits?: number | undefined;\n minimumSignificantDigits?: number | undefined;\n maximumSignificantDigits?: number | undefined;\n }\n\n interface ResolvedNumberFormatOptions {\n locale: string;\n numberingSystem: string;\n style: string;\n currency?: string;\n minimumIntegerDigits: number;\n minimumFractionDigits: number;\n maximumFractionDigits: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n useGrouping: boolean;\n }\n\n interface NumberFormat {\n format(value: number): string;\n resolvedOptions(): ResolvedNumberFormatOptions;\n }\n var NumberFormat: {\n new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;\n (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;\n supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];\n readonly prototype: NumberFormat;\n };\n\n interface DateTimeFormatOptions {\n localeMatcher?: "best fit" | "lookup" | undefined;\n weekday?: "long" | "short" | "narrow" | undefined;\n era?: "long" | "short" | "narrow" | undefined;\n year?: "numeric" | "2-digit" | undefined;\n month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;\n day?: "numeric" | "2-digit" | undefined;\n hour?: "numeric" | "2-digit" | undefined;\n minute?: "numeric" | "2-digit" | undefined;\n second?: "numeric" | "2-digit" | undefined;\n timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;\n formatMatcher?: "best fit" | "basic" | undefined;\n hour12?: boolean | undefined;\n timeZone?: string | undefined;\n }\n\n interface ResolvedDateTimeFormatOptions {\n locale: string;\n calendar: string;\n numberingSystem: string;\n timeZone: string;\n hour12?: boolean;\n weekday?: string;\n era?: string;\n year?: string;\n month?: string;\n day?: string;\n hour?: string;\n minute?: string;\n second?: string;\n timeZoneName?: string;\n }\n\n interface DateTimeFormat {\n format(date?: Date | number): string;\n resolvedOptions(): ResolvedDateTimeFormatOptions;\n }\n var DateTimeFormat: {\n new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;\n (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;\n supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];\n readonly prototype: DateTimeFormat;\n };\n}\n\ninterface String {\n /**\n * Determines whether two strings are equivalent in the current or specified locale.\n * @param that String to compare to target string\n * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.\n * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.\n */\n localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;\n}\n\ninterface Number {\n /**\n * Converts a number to a string by using the current or specified locale.\n * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;\n}\n\ninterface Date {\n /**\n * Converts a date and time to a string by using the current or specified locale.\n * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n /**\n * Converts a date to a string by using the current or specified locale.\n * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n\n /**\n * Converts a time to a string by using the current or specified locale.\n * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n}\n',Ea["lib.es6.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015" />\n/// <reference lib="dom" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n',Ea["lib.esnext.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2023" />\n/// <reference lib="esnext.intl" />\n',Ea["lib.esnext.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="esnext" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />',Ea["lib.esnext.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n interface NumberRangeFormatPart extends NumberFormatPart {\n source: "startRange" | "endRange" | "shared"\n }\n\n interface NumberFormat {\n formatRange(start: number | bigint, end: number | bigint): string;\n formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];\n }\n}\n',Ea["lib.scripthost.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n\n\n/////////////////////////////\n/// Windows Script Host APIS\n/////////////////////////////\n\n\ninterface ActiveXObject {\n new (s: string): any;\n}\ndeclare var ActiveXObject: ActiveXObject;\n\ninterface ITextWriter {\n Write(s: string): void;\n WriteLine(s: string): void;\n Close(): void;\n}\n\ninterface TextStreamBase {\n /**\n * The column number of the current character position in an input stream.\n */\n Column: number;\n\n /**\n * The current line number in an input stream.\n */\n Line: number;\n\n /**\n * Closes a text stream.\n * It is not necessary to close standard streams; they close automatically when the process ends. If\n * you close a standard stream, be aware that any other pointers to that standard stream become invalid.\n */\n Close(): void;\n}\n\ninterface TextStreamWriter extends TextStreamBase {\n /**\n * Sends a string to an output stream.\n */\n Write(s: string): void;\n\n /**\n * Sends a specified number of blank lines (newline characters) to an output stream.\n */\n WriteBlankLines(intLines: number): void;\n\n /**\n * Sends a string followed by a newline character to an output stream.\n */\n WriteLine(s: string): void;\n}\n\ninterface TextStreamReader extends TextStreamBase {\n /**\n * Returns a specified number of characters from an input stream, starting at the current pointer position.\n * Does not return until the ENTER key is pressed.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n */\n Read(characters: number): string;\n\n /**\n * Returns all characters from an input stream.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n */\n ReadAll(): string;\n\n /**\n * Returns an entire line from an input stream.\n * Although this method extracts the newline character, it does not add it to the returned string.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n */\n ReadLine(): string;\n\n /**\n * Skips a specified number of characters when reading from an input text stream.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)\n */\n Skip(characters: number): void;\n\n /**\n * Skips the next line when reading from an input text stream.\n * Can only be used on a stream in reading mode, not writing or appending mode.\n */\n SkipLine(): void;\n\n /**\n * Indicates whether the stream pointer position is at the end of a line.\n */\n AtEndOfLine: boolean;\n\n /**\n * Indicates whether the stream pointer position is at the end of a stream.\n */\n AtEndOfStream: boolean;\n}\n\ndeclare var WScript: {\n /**\n * Outputs text to either a message box (under WScript.exe) or the command console window followed by\n * a newline (under CScript.exe).\n */\n Echo(s: any): void;\n\n /**\n * Exposes the write-only error output stream for the current script.\n * Can be accessed only while using CScript.exe.\n */\n StdErr: TextStreamWriter;\n\n /**\n * Exposes the write-only output stream for the current script.\n * Can be accessed only while using CScript.exe.\n */\n StdOut: TextStreamWriter;\n Arguments: { length: number; Item(n: number): string; };\n\n /**\n * The full path of the currently running script.\n */\n ScriptFullName: string;\n\n /**\n * Forces the script to stop immediately, with an optional exit code.\n */\n Quit(exitCode?: number): number;\n\n /**\n * The Windows Script Host build version number.\n */\n BuildVersion: number;\n\n /**\n * Fully qualified path of the host executable.\n */\n FullName: string;\n\n /**\n * Gets/sets the script mode - interactive(true) or batch(false).\n */\n Interactive: boolean;\n\n /**\n * The name of the host executable (WScript.exe or CScript.exe).\n */\n Name: string;\n\n /**\n * Path of the directory containing the host executable.\n */\n Path: string;\n\n /**\n * The filename of the currently running script.\n */\n ScriptName: string;\n\n /**\n * Exposes the read-only input stream for the current script.\n * Can be accessed only while using CScript.exe.\n */\n StdIn: TextStreamReader;\n\n /**\n * Windows Script Host version\n */\n Version: string;\n\n /**\n * Connects a COM object\'s event sources to functions named with a given prefix, in the form prefix_event.\n */\n ConnectObject(objEventSource: any, strPrefix: string): void;\n\n /**\n * Creates a COM object.\n * @param strProgiID\n * @param strPrefix Function names in the form prefix_event will be bound to this object\'s COM events.\n */\n CreateObject(strProgID: string, strPrefix?: string): any;\n\n /**\n * Disconnects a COM object from its event sources.\n */\n DisconnectObject(obj: any): void;\n\n /**\n * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.\n * @param strPathname Fully qualified path to the file containing the object persisted to disk.\n * For objects in memory, pass a zero-length string.\n * @param strProgID\n * @param strPrefix Function names in the form prefix_event will be bound to this object\'s COM events.\n */\n GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;\n\n /**\n * Suspends script execution for a specified length of time, then continues execution.\n * @param intTime Interval (in milliseconds) to suspend script execution.\n */\n Sleep(intTime: number): void;\n};\n\n/**\n * WSH is an alias for WScript under Windows Script Host\n */\ndeclare var WSH: typeof WScript;\n\n/**\n * Represents an Automation SAFEARRAY\n */\ndeclare class SafeArray<T = any> {\n private constructor();\n private SafeArray_typekey: SafeArray<T>;\n}\n\n/**\n * Allows enumerating over a COM collection, which may not have indexed item access.\n */\ninterface Enumerator<T = any> {\n /**\n * Returns true if the current item is the last one in the collection, or the collection is empty,\n * or the current item is undefined.\n */\n atEnd(): boolean;\n\n /**\n * Returns the current item in the collection\n */\n item(): T;\n\n /**\n * Resets the current item in the collection to the first item. If there are no items in the collection,\n * the current item is set to undefined.\n */\n moveFirst(): void;\n\n /**\n * Moves the current item to the next item in the collection. If the enumerator is at the end of\n * the collection or the collection is empty, the current item is set to undefined.\n */\n moveNext(): void;\n}\n\ninterface EnumeratorConstructor {\n new <T = any>(safearray: SafeArray<T>): Enumerator<T>;\n new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;\n new <T = any>(collection: any): Enumerator<T>;\n}\n\ndeclare var Enumerator: EnumeratorConstructor;\n\n/**\n * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.\n */\ninterface VBArray<T = any> {\n /**\n * Returns the number of dimensions (1-based).\n */\n dimensions(): number;\n\n /**\n * Takes an index for each dimension in the array, and returns the item at the corresponding location.\n */\n getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;\n\n /**\n * Returns the smallest available index for a given dimension.\n * @param dimension 1-based dimension (defaults to 1)\n */\n lbound(dimension?: number): number;\n\n /**\n * Returns the largest available index for a given dimension.\n * @param dimension 1-based dimension (defaults to 1)\n */\n ubound(dimension?: number): number;\n\n /**\n * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,\n * each successive dimension is appended to the end of the array.\n * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]\n */\n toArray(): T[];\n}\n\ninterface VBArrayConstructor {\n new <T = any>(safeArray: SafeArray<T>): VBArray<T>;\n}\n\ndeclare var VBArray: VBArrayConstructor;\n\n/**\n * Automation date (VT_DATE)\n */\ndeclare class VarDate {\n private constructor();\n private VarDate_typekey: VarDate;\n}\n\ninterface DateConstructor {\n new (vd: VarDate): Date;\n}\n\ninterface Date {\n getVarDate: () => VarDate;\n}\n',Ea["lib.webworker.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Worker APIs\n/////////////////////////////\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n signal?: AbortSignal;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: BufferSource;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: BufferSource;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: BufferSource;\n iv: BufferSource;\n tagLength?: number;\n}\n\ninterface AesKeyAlgorithm extends KeyAlgorithm {\n length: number;\n}\n\ninterface AesKeyGenParams extends Algorithm {\n length: number;\n}\n\ninterface Algorithm {\n name: string;\n}\n\ninterface AudioConfiguration {\n bitrate?: number;\n channels?: string;\n contentType: string;\n samplerate?: number;\n spatialRendering?: boolean;\n}\n\ninterface BlobPropertyBag {\n endings?: EndingType;\n type?: string;\n}\n\ninterface CacheQueryOptions {\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface ClientQueryOptions {\n includeUncontrolled?: boolean;\n type?: ClientTypes;\n}\n\ninterface CloseEventInit extends EventInit {\n code?: number;\n reason?: string;\n wasClean?: boolean;\n}\n\ninterface CryptoKeyPair {\n privateKey: CryptoKey;\n publicKey: CryptoKey;\n}\n\ninterface CustomEventInit<T = any> extends EventInit {\n detail?: T;\n}\n\ninterface DOMMatrix2DInit {\n a?: number;\n b?: number;\n c?: number;\n d?: number;\n e?: number;\n f?: number;\n m11?: number;\n m12?: number;\n m21?: number;\n m22?: number;\n m41?: number;\n m42?: number;\n}\n\ninterface DOMMatrixInit extends DOMMatrix2DInit {\n is2D?: boolean;\n m13?: number;\n m14?: number;\n m23?: number;\n m24?: number;\n m31?: number;\n m32?: number;\n m33?: number;\n m34?: number;\n m43?: number;\n m44?: number;\n}\n\ninterface DOMPointInit {\n w?: number;\n x?: number;\n y?: number;\n z?: number;\n}\n\ninterface DOMQuadInit {\n p1?: DOMPointInit;\n p2?: DOMPointInit;\n p3?: DOMPointInit;\n p4?: DOMPointInit;\n}\n\ninterface DOMRectInit {\n height?: number;\n width?: number;\n x?: number;\n y?: number;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface ErrorEventInit extends EventInit {\n colno?: number;\n error?: any;\n filename?: string;\n lineno?: number;\n message?: string;\n}\n\ninterface EventInit {\n bubbles?: boolean;\n cancelable?: boolean;\n composed?: boolean;\n}\n\ninterface EventListenerOptions {\n capture?: boolean;\n}\n\ninterface EventSourceInit {\n withCredentials?: boolean;\n}\n\ninterface ExtendableEventInit extends EventInit {\n}\n\ninterface ExtendableMessageEventInit extends ExtendableEventInit {\n data?: any;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: Client | ServiceWorker | MessagePort | null;\n}\n\ninterface FetchEventInit extends ExtendableEventInit {\n clientId?: string;\n handled?: Promise<undefined>;\n preloadResponse?: Promise<any>;\n replacesClientId?: string;\n request: Request;\n resultingClientId?: string;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FileSystemGetDirectoryOptions {\n create?: boolean;\n}\n\ninterface FileSystemGetFileOptions {\n create?: boolean;\n}\n\ninterface FileSystemReadWriteOptions {\n at?: number;\n}\n\ninterface FileSystemRemoveOptions {\n recursive?: boolean;\n}\n\ninterface FontFaceDescriptors {\n ascentOverride?: string;\n descentOverride?: string;\n display?: FontDisplay;\n featureSettings?: string;\n lineGapOverride?: string;\n stretch?: string;\n style?: string;\n unicodeRange?: string;\n variant?: string;\n weight?: string;\n}\n\ninterface FontFaceSetLoadEventInit extends EventInit {\n fontfaces?: FontFace[];\n}\n\ninterface GetNotificationOptions {\n tag?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n info: BufferSource;\n salt: BufferSource;\n}\n\ninterface HmacImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface IDBDatabaseInfo {\n name?: string;\n version?: number;\n}\n\ninterface IDBIndexParameters {\n multiEntry?: boolean;\n unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n autoIncrement?: boolean;\n keyPath?: string | string[] | null;\n}\n\ninterface IDBTransactionOptions {\n durability?: IDBTransactionDurability;\n}\n\ninterface IDBVersionChangeEventInit extends EventInit {\n newVersion?: number | null;\n oldVersion?: number;\n}\n\ninterface ImageBitmapOptions {\n colorSpaceConversion?: ColorSpaceConversion;\n imageOrientation?: ImageOrientation;\n premultiplyAlpha?: PremultiplyAlpha;\n resizeHeight?: number;\n resizeQuality?: ResizeQuality;\n resizeWidth?: number;\n}\n\ninterface ImageBitmapRenderingContextSettings {\n alpha?: boolean;\n}\n\ninterface ImageDataSettings {\n colorSpace?: PredefinedColorSpace;\n}\n\ninterface ImageEncodeOptions {\n quality?: number;\n type?: string;\n}\n\ninterface ImportMeta {\n url: string;\n}\n\ninterface JsonWebKey {\n alg?: string;\n crv?: string;\n d?: string;\n dp?: string;\n dq?: string;\n e?: string;\n ext?: boolean;\n k?: string;\n key_ops?: string[];\n kty?: string;\n n?: string;\n oth?: RsaOtherPrimesInfo[];\n p?: string;\n q?: string;\n qi?: string;\n use?: string;\n x?: string;\n y?: string;\n}\n\ninterface KeyAlgorithm {\n name: string;\n}\n\ninterface LockInfo {\n clientId?: string;\n mode?: LockMode;\n name?: string;\n}\n\ninterface LockManagerSnapshot {\n held?: LockInfo[];\n pending?: LockInfo[];\n}\n\ninterface LockOptions {\n ifAvailable?: boolean;\n mode?: LockMode;\n signal?: AbortSignal;\n steal?: boolean;\n}\n\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaDecodingConfiguration;\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaEncodingConfiguration;\n}\n\ninterface MediaCapabilitiesInfo {\n powerEfficient: boolean;\n smooth: boolean;\n supported: boolean;\n}\n\ninterface MediaConfiguration {\n audio?: AudioConfiguration;\n video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\n type: MediaDecodingType;\n}\n\ninterface MediaEncodingConfiguration extends MediaConfiguration {\n type: MediaEncodingType;\n}\n\ninterface MessageEventInit<T = any> extends EventInit {\n data?: T;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: MessageEventSource | null;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n cacheName?: string;\n}\n\ninterface NavigationPreloadState {\n enabled?: boolean;\n headerValue?: string;\n}\n\ninterface NotificationAction {\n action: string;\n icon?: string;\n title: string;\n}\n\ninterface NotificationEventInit extends ExtendableEventInit {\n action?: string;\n notification: Notification;\n}\n\ninterface NotificationOptions {\n actions?: NotificationAction[];\n badge?: string;\n body?: string;\n data?: any;\n dir?: NotificationDirection;\n icon?: string;\n image?: string;\n lang?: string;\n renotify?: boolean;\n requireInteraction?: boolean;\n silent?: boolean;\n tag?: string;\n timestamp?: EpochTimeStamp;\n vibrate?: VibratePattern;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: HashAlgorithmIdentifier;\n iterations: number;\n salt: BufferSource;\n}\n\ninterface PerformanceMarkOptions {\n detail?: any;\n startTime?: DOMHighResTimeStamp;\n}\n\ninterface PerformanceMeasureOptions {\n detail?: any;\n duration?: DOMHighResTimeStamp;\n end?: string | DOMHighResTimeStamp;\n start?: string | DOMHighResTimeStamp;\n}\n\ninterface PerformanceObserverInit {\n buffered?: boolean;\n entryTypes?: string[];\n type?: string;\n}\n\ninterface PermissionDescriptor {\n name: PermissionName;\n}\n\ninterface ProgressEventInit extends EventInit {\n lengthComputable?: boolean;\n loaded?: number;\n total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n promise: Promise<any>;\n reason?: any;\n}\n\ninterface PushEventInit extends ExtendableEventInit {\n data?: PushMessageDataInit;\n}\n\ninterface PushSubscriptionJSON {\n endpoint?: string;\n expirationTime?: EpochTimeStamp | null;\n keys?: Record<string, string>;\n}\n\ninterface PushSubscriptionOptionsInit {\n applicationServerKey?: BufferSource | string | null;\n userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy<T = any> {\n highWaterMark?: number;\n size?: QueuingStrategySize<T>;\n}\n\ninterface QueuingStrategyInit {\n /**\n * Creates a new ByteLengthQueuingStrategy with the provided high water mark.\n *\n * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.\n */\n highWaterMark: number;\n}\n\ninterface RTCEncodedAudioFrameMetadata {\n contributingSources?: number[];\n synchronizationSource?: number;\n}\n\ninterface RTCEncodedVideoFrameMetadata {\n contributingSources?: number[];\n dependencies?: number[];\n frameId?: number;\n height?: number;\n spatialIndex?: number;\n synchronizationSource?: number;\n temporalIndex?: number;\n width?: number;\n}\n\ninterface ReadableStreamGetReaderOptions {\n /**\n * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.\n *\n * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.\n */\n mode?: ReadableStreamReaderMode;\n}\n\ninterface ReadableStreamReadDoneResult<T> {\n done: true;\n value?: T;\n}\n\ninterface ReadableStreamReadValueResult<T> {\n done: false;\n value: T;\n}\n\ninterface ReadableWritablePair<R = any, W = any> {\n readable: ReadableStream<R>;\n /**\n * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n */\n writable: WritableStream<W>;\n}\n\ninterface RegistrationOptions {\n scope?: string;\n type?: WorkerType;\n updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface RequestInit {\n /** A BodyInit object or null to set request\'s body. */\n body?: BodyInit | null;\n /** A string indicating how the request will interact with the browser\'s cache to set request\'s cache. */\n cache?: RequestCache;\n /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request\'s credentials. */\n credentials?: RequestCredentials;\n /** A Headers object, an object literal, or an array of two-item arrays to set request\'s headers. */\n headers?: HeadersInit;\n /** A cryptographic hash of the resource to be fetched by request. Sets request\'s integrity. */\n integrity?: string;\n /** A boolean to set request\'s keepalive. */\n keepalive?: boolean;\n /** A string to set request\'s method. */\n method?: string;\n /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request\'s mode. */\n mode?: RequestMode;\n /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request\'s redirect. */\n redirect?: RequestRedirect;\n /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request\'s referrer. */\n referrer?: string;\n /** A referrer policy to set request\'s referrerPolicy. */\n referrerPolicy?: ReferrerPolicy;\n /** An AbortSignal to set request\'s signal. */\n signal?: AbortSignal | null;\n /** Can only be null. Used to disassociate request from any Window. */\n window?: null;\n}\n\ninterface ResponseInit {\n headers?: HeadersInit;\n status?: number;\n statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaOaepParams extends Algorithm {\n label?: BufferSource;\n}\n\ninterface RsaOtherPrimesInfo {\n d?: string;\n r?: string;\n t?: string;\n}\n\ninterface RsaPssParams extends Algorithm {\n saltLength: number;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n blockedURI?: string;\n columnNumber?: number;\n disposition: SecurityPolicyViolationEventDisposition;\n documentURI: string;\n effectiveDirective: string;\n lineNumber?: number;\n originalPolicy: string;\n referrer?: string;\n sample?: string;\n sourceFile?: string;\n statusCode: number;\n violatedDirective: string;\n}\n\ninterface StorageEstimate {\n quota?: number;\n usage?: number;\n}\n\ninterface StreamPipeOptions {\n preventAbort?: boolean;\n preventCancel?: boolean;\n /**\n * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n *\n * Errors and closures of the source and destination streams propagate as follows:\n *\n * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source\'s error, or with any error that occurs during aborting the destination.\n *\n * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination\'s error, or with any error that occurs during canceling the source.\n *\n * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.\n *\n * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.\n *\n * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.\n */\n preventClose?: boolean;\n signal?: AbortSignal;\n}\n\ninterface StructuredSerializeOptions {\n transfer?: Transferable[];\n}\n\ninterface TextDecodeOptions {\n stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n fatal?: boolean;\n ignoreBOM?: boolean;\n}\n\ninterface TextEncoderEncodeIntoResult {\n read?: number;\n written?: number;\n}\n\ninterface Transformer<I = any, O = any> {\n flush?: TransformerFlushCallback<O>;\n readableType?: undefined;\n start?: TransformerStartCallback<O>;\n transform?: TransformerTransformCallback<I, O>;\n writableType?: undefined;\n}\n\ninterface UnderlyingByteSource {\n autoAllocateChunkSize?: number;\n cancel?: UnderlyingSourceCancelCallback;\n pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;\n start?: (controller: ReadableByteStreamController) => any;\n type: "bytes";\n}\n\ninterface UnderlyingDefaultSource<R = any> {\n cancel?: UnderlyingSourceCancelCallback;\n pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;\n start?: (controller: ReadableStreamDefaultController<R>) => any;\n type?: undefined;\n}\n\ninterface UnderlyingSink<W = any> {\n abort?: UnderlyingSinkAbortCallback;\n close?: UnderlyingSinkCloseCallback;\n start?: UnderlyingSinkStartCallback;\n type?: undefined;\n write?: UnderlyingSinkWriteCallback<W>;\n}\n\ninterface UnderlyingSource<R = any> {\n autoAllocateChunkSize?: number;\n cancel?: UnderlyingSourceCancelCallback;\n pull?: UnderlyingSourcePullCallback<R>;\n start?: UnderlyingSourceStartCallback<R>;\n type?: ReadableStreamType;\n}\n\ninterface VideoColorSpaceInit {\n fullRange?: boolean | null;\n matrix?: VideoMatrixCoefficients | null;\n primaries?: VideoColorPrimaries | null;\n transfer?: VideoTransferCharacteristics | null;\n}\n\ninterface VideoConfiguration {\n bitrate: number;\n colorGamut?: ColorGamut;\n contentType: string;\n framerate: number;\n hdrMetadataType?: HdrMetadataType;\n height: number;\n scalabilityMode?: string;\n transferFunction?: TransferFunction;\n width: number;\n}\n\ninterface WebGLContextAttributes {\n alpha?: boolean;\n antialias?: boolean;\n depth?: boolean;\n desynchronized?: boolean;\n failIfMajorPerformanceCaveat?: boolean;\n powerPreference?: WebGLPowerPreference;\n premultipliedAlpha?: boolean;\n preserveDrawingBuffer?: boolean;\n stencil?: boolean;\n}\n\ninterface WebGLContextEventInit extends EventInit {\n statusMessage?: string;\n}\n\ninterface WorkerOptions {\n credentials?: RequestCredentials;\n name?: string;\n type?: WorkerType;\n}\n\n/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */\ninterface ANGLE_instanced_arrays {\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;\n}\n\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\ninterface AbortController {\n /** Returns the AbortSignal object associated with this object. */\n readonly signal: AbortSignal;\n /** Invoking this method will set this object\'s AbortSignal\'s aborted flag and signal to any observers that the associated activity is to be aborted. */\n abort(reason?: any): void;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n "abort": Event;\n}\n\n/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */\ninterface AbortSignal extends EventTarget {\n /** Returns true if this AbortSignal\'s AbortController has signaled to abort, and false otherwise. */\n readonly aborted: boolean;\n onabort: ((this: AbortSignal, ev: Event) => any) | null;\n readonly reason: any;\n throwIfAborted(): void;\n addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AbortSignal: {\n prototype: AbortSignal;\n new(): AbortSignal;\n abort(reason?: any): AbortSignal;\n timeout(milliseconds: number): AbortSignal;\n};\n\ninterface AbstractWorkerEventMap {\n "error": ErrorEvent;\n}\n\ninterface AbstractWorker {\n onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;\n addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface AnimationFrameProvider {\n cancelAnimationFrame(handle: number): void;\n requestAnimationFrame(callback: FrameRequestCallback): number;\n}\n\n/** A file-like object of immutable, raw data. Blobs represent data that isn\'t necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user\'s system. */\ninterface Blob {\n readonly size: number;\n readonly type: string;\n arrayBuffer(): Promise<ArrayBuffer>;\n slice(start?: number, end?: number, contentType?: string): Blob;\n stream(): ReadableStream<Uint8Array>;\n text(): Promise<string>;\n}\n\ndeclare var Blob: {\n prototype: Blob;\n new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\ninterface Body {\n readonly body: ReadableStream<Uint8Array> | null;\n readonly bodyUsed: boolean;\n arrayBuffer(): Promise<ArrayBuffer>;\n blob(): Promise<Blob>;\n formData(): Promise<FormData>;\n json(): Promise<any>;\n text(): Promise<string>;\n}\n\ninterface BroadcastChannelEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\ninterface BroadcastChannel extends EventTarget {\n /** Returns the channel name (as passed to the constructor). */\n readonly name: string;\n onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /** Closes the BroadcastChannel object, opening it up to garbage collection. */\n close(): void;\n /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */\n postMessage(message: any): void;\n addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BroadcastChannel: {\n prototype: BroadcastChannel;\n new(name: string): BroadcastChannel;\n};\n\n/** This Streams API interface provides\xa0a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {\n readonly highWaterMark: number;\n readonly size: QueuingStrategySize<ArrayBufferView>;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n prototype: ByteLengthQueuingStrategy;\n new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;\n};\n\n/**\n * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don\'t have to use it in conjunction with service workers, even though it is defined in the service worker spec.\n * Available only in secure contexts.\n */\ninterface Cache {\n add(request: RequestInfo | URL): Promise<void>;\n addAll(requests: RequestInfo[]): Promise<void>;\n delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;\n keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;\n matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n put(request: RequestInfo | URL, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n prototype: Cache;\n new(): Cache;\n};\n\n/**\n * The storage for Cache objects.\n * Available only in secure contexts.\n */\ninterface CacheStorage {\n delete(cacheName: string): Promise<boolean>;\n has(cacheName: string): Promise<boolean>;\n keys(): Promise<string[]>;\n match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;\n open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n prototype: CacheStorage;\n new(): CacheStorage;\n};\n\ninterface CanvasCompositing {\n globalAlpha: number;\n globalCompositeOperation: GlobalCompositeOperation;\n}\n\ninterface CanvasDrawImage {\n drawImage(image: CanvasImageSource, dx: number, dy: number): void;\n drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;\n drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;\n}\n\ninterface CanvasDrawPath {\n beginPath(): void;\n clip(fillRule?: CanvasFillRule): void;\n clip(path: Path2D, fillRule?: CanvasFillRule): void;\n fill(fillRule?: CanvasFillRule): void;\n fill(path: Path2D, fillRule?: CanvasFillRule): void;\n isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;\n isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\n isPointInStroke(x: number, y: number): boolean;\n isPointInStroke(path: Path2D, x: number, y: number): boolean;\n stroke(): void;\n stroke(path: Path2D): void;\n}\n\ninterface CanvasFillStrokeStyles {\n fillStyle: string | CanvasGradient | CanvasPattern;\n strokeStyle: string | CanvasGradient | CanvasPattern;\n createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;\n createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;\n createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n}\n\ninterface CanvasFilters {\n filter: string;\n}\n\n/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */\ninterface CanvasGradient {\n /**\n * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.\n *\n * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.\n */\n addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n prototype: CanvasGradient;\n new(): CanvasGradient;\n};\n\ninterface CanvasImageData {\n createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n createImageData(imagedata: ImageData): ImageData;\n getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n putImageData(imagedata: ImageData, dx: number, dy: number): void;\n putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;\n}\n\ninterface CanvasImageSmoothing {\n imageSmoothingEnabled: boolean;\n imageSmoothingQuality: ImageSmoothingQuality;\n}\n\ninterface CanvasPath {\n arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n closePath(): void;\n ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n lineTo(x: number, y: number): void;\n moveTo(x: number, y: number): void;\n quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n rect(x: number, y: number, w: number, h: number): void;\n roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;\n}\n\ninterface CanvasPathDrawingStyles {\n lineCap: CanvasLineCap;\n lineDashOffset: number;\n lineJoin: CanvasLineJoin;\n lineWidth: number;\n miterLimit: number;\n getLineDash(): number[];\n setLineDash(segments: number[]): void;\n}\n\n/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */\ninterface CanvasPattern {\n /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */\n setTransform(transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var CanvasPattern: {\n prototype: CanvasPattern;\n new(): CanvasPattern;\n};\n\ninterface CanvasRect {\n clearRect(x: number, y: number, w: number, h: number): void;\n fillRect(x: number, y: number, w: number, h: number): void;\n strokeRect(x: number, y: number, w: number, h: number): void;\n}\n\ninterface CanvasShadowStyles {\n shadowBlur: number;\n shadowColor: string;\n shadowOffsetX: number;\n shadowOffsetY: number;\n}\n\ninterface CanvasState {\n restore(): void;\n save(): void;\n}\n\ninterface CanvasText {\n fillText(text: string, x: number, y: number, maxWidth?: number): void;\n measureText(text: string): TextMetrics;\n strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n}\n\ninterface CanvasTextDrawingStyles {\n direction: CanvasDirection;\n font: string;\n fontKerning: CanvasFontKerning;\n textAlign: CanvasTextAlign;\n textBaseline: CanvasTextBaseline;\n}\n\ninterface CanvasTransform {\n getTransform(): DOMMatrix;\n resetTransform(): void;\n rotate(angle: number): void;\n scale(x: number, y: number): void;\n setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n setTransform(transform?: DOMMatrix2DInit): void;\n transform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n translate(x: number, y: number): void;\n}\n\n/** The Client\xa0interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific\xa0WindowClient. You can get\xa0Client/WindowClient\xa0objects from methods such as Clients.matchAll() and\xa0Clients.get(). */\ninterface Client {\n readonly frameType: FrameType;\n readonly id: string;\n readonly type: ClientTypes;\n readonly url: string;\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n}\n\ndeclare var Client: {\n prototype: Client;\n new(): Client;\n};\n\n/** Provides access to\xa0Client\xa0objects. Access it\xa0via self.clients\xa0within a\xa0service worker. */\ninterface Clients {\n claim(): Promise<void>;\n get(id: string): Promise<Client | undefined>;\n matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;\n openWindow(url: string | URL): Promise<WindowClient | null>;\n}\n\ndeclare var Clients: {\n prototype: Clients;\n new(): Clients;\n};\n\n/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object\'s onclose attribute. */\ninterface CloseEvent extends Event {\n /** Returns the WebSocket connection close code provided by the server. */\n readonly code: number;\n /** Returns the WebSocket connection close reason provided by the server. */\n readonly reason: string;\n /** Returns true if the connection closed cleanly; false otherwise. */\n readonly wasClean: boolean;\n}\n\ndeclare var CloseEvent: {\n prototype: CloseEvent;\n new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\n/** This Streams API interface provides\xa0a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface CountQueuingStrategy extends QueuingStrategy {\n readonly highWaterMark: number;\n readonly size: QueuingStrategySize;\n}\n\ndeclare var CountQueuingStrategy: {\n prototype: CountQueuingStrategy;\n new(init: QueuingStrategyInit): CountQueuingStrategy;\n};\n\n/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */\ninterface Crypto {\n /** Available only in secure contexts. */\n readonly subtle: SubtleCrypto;\n getRandomValues<T extends ArrayBufferView | null>(array: T): T;\n /** Available only in secure contexts. */\n randomUUID(): `${string}-${string}-${string}-${string}-${string}`;\n}\n\ndeclare var Crypto: {\n prototype: Crypto;\n new(): Crypto;\n};\n\n/**\n * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.\n * Available only in secure contexts.\n */\ninterface CryptoKey {\n readonly algorithm: KeyAlgorithm;\n readonly extractable: boolean;\n readonly type: KeyType;\n readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\ninterface CustomEvent<T = any> extends Event {\n /** Returns any custom data event was created with. Typically used for synthetic events. */\n readonly detail: T;\n /** @deprecated */\n initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;\n}\n\ndeclare var CustomEvent: {\n prototype: CustomEvent;\n new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\n/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */\ninterface DOMException extends Error {\n /** @deprecated */\n readonly code: number;\n readonly message: string;\n readonly name: string;\n readonly INDEX_SIZE_ERR: 1;\n readonly DOMSTRING_SIZE_ERR: 2;\n readonly HIERARCHY_REQUEST_ERR: 3;\n readonly WRONG_DOCUMENT_ERR: 4;\n readonly INVALID_CHARACTER_ERR: 5;\n readonly NO_DATA_ALLOWED_ERR: 6;\n readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n readonly NOT_FOUND_ERR: 8;\n readonly NOT_SUPPORTED_ERR: 9;\n readonly INUSE_ATTRIBUTE_ERR: 10;\n readonly INVALID_STATE_ERR: 11;\n readonly SYNTAX_ERR: 12;\n readonly INVALID_MODIFICATION_ERR: 13;\n readonly NAMESPACE_ERR: 14;\n readonly INVALID_ACCESS_ERR: 15;\n readonly VALIDATION_ERR: 16;\n readonly TYPE_MISMATCH_ERR: 17;\n readonly SECURITY_ERR: 18;\n readonly NETWORK_ERR: 19;\n readonly ABORT_ERR: 20;\n readonly URL_MISMATCH_ERR: 21;\n readonly QUOTA_EXCEEDED_ERR: 22;\n readonly TIMEOUT_ERR: 23;\n readonly INVALID_NODE_TYPE_ERR: 24;\n readonly DATA_CLONE_ERR: 25;\n}\n\ndeclare var DOMException: {\n prototype: DOMException;\n new(message?: string, name?: string): DOMException;\n readonly INDEX_SIZE_ERR: 1;\n readonly DOMSTRING_SIZE_ERR: 2;\n readonly HIERARCHY_REQUEST_ERR: 3;\n readonly WRONG_DOCUMENT_ERR: 4;\n readonly INVALID_CHARACTER_ERR: 5;\n readonly NO_DATA_ALLOWED_ERR: 6;\n readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n readonly NOT_FOUND_ERR: 8;\n readonly NOT_SUPPORTED_ERR: 9;\n readonly INUSE_ATTRIBUTE_ERR: 10;\n readonly INVALID_STATE_ERR: 11;\n readonly SYNTAX_ERR: 12;\n readonly INVALID_MODIFICATION_ERR: 13;\n readonly NAMESPACE_ERR: 14;\n readonly INVALID_ACCESS_ERR: 15;\n readonly VALIDATION_ERR: 16;\n readonly TYPE_MISMATCH_ERR: 17;\n readonly SECURITY_ERR: 18;\n readonly NETWORK_ERR: 19;\n readonly ABORT_ERR: 20;\n readonly URL_MISMATCH_ERR: 21;\n readonly QUOTA_EXCEEDED_ERR: 22;\n readonly TIMEOUT_ERR: 23;\n readonly INVALID_NODE_TYPE_ERR: 24;\n readonly DATA_CLONE_ERR: 25;\n};\n\ninterface DOMMatrix extends DOMMatrixReadOnly {\n a: number;\n b: number;\n c: number;\n d: number;\n e: number;\n f: number;\n m11: number;\n m12: number;\n m13: number;\n m14: number;\n m21: number;\n m22: number;\n m23: number;\n m24: number;\n m31: number;\n m32: number;\n m33: number;\n m34: number;\n m41: number;\n m42: number;\n m43: number;\n m44: number;\n invertSelf(): DOMMatrix;\n multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n skewXSelf(sx?: number): DOMMatrix;\n skewYSelf(sy?: number): DOMMatrix;\n translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrix: {\n prototype: DOMMatrix;\n new(init?: string | number[]): DOMMatrix;\n fromFloat32Array(array32: Float32Array): DOMMatrix;\n fromFloat64Array(array64: Float64Array): DOMMatrix;\n fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\ninterface DOMMatrixReadOnly {\n readonly a: number;\n readonly b: number;\n readonly c: number;\n readonly d: number;\n readonly e: number;\n readonly f: number;\n readonly is2D: boolean;\n readonly isIdentity: boolean;\n readonly m11: number;\n readonly m12: number;\n readonly m13: number;\n readonly m14: number;\n readonly m21: number;\n readonly m22: number;\n readonly m23: number;\n readonly m24: number;\n readonly m31: number;\n readonly m32: number;\n readonly m33: number;\n readonly m34: number;\n readonly m41: number;\n readonly m42: number;\n readonly m43: number;\n readonly m44: number;\n flipX(): DOMMatrix;\n flipY(): DOMMatrix;\n inverse(): DOMMatrix;\n multiply(other?: DOMMatrixInit): DOMMatrix;\n rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVector(x?: number, y?: number): DOMMatrix;\n scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** @deprecated */\n scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n skewX(sx?: number): DOMMatrix;\n skewY(sy?: number): DOMMatrix;\n toFloat32Array(): Float32Array;\n toFloat64Array(): Float64Array;\n toJSON(): any;\n transformPoint(point?: DOMPointInit): DOMPoint;\n translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrixReadOnly: {\n prototype: DOMMatrixReadOnly;\n new(init?: string | number[]): DOMMatrixReadOnly;\n fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;\n fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\n fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n};\n\ninterface DOMPoint extends DOMPointReadOnly {\n w: number;\n x: number;\n y: number;\n z: number;\n}\n\ndeclare var DOMPoint: {\n prototype: DOMPoint;\n new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\ninterface DOMPointReadOnly {\n readonly w: number;\n readonly x: number;\n readonly y: number;\n readonly z: number;\n matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n prototype: DOMPointReadOnly;\n new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\ninterface DOMQuad {\n readonly p1: DOMPoint;\n readonly p2: DOMPoint;\n readonly p3: DOMPoint;\n readonly p4: DOMPoint;\n getBounds(): DOMRect;\n toJSON(): any;\n}\n\ndeclare var DOMQuad: {\n prototype: DOMQuad;\n new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\n fromQuad(other?: DOMQuadInit): DOMQuad;\n fromRect(other?: DOMRectInit): DOMQuad;\n};\n\ninterface DOMRect extends DOMRectReadOnly {\n height: number;\n width: number;\n x: number;\n y: number;\n}\n\ndeclare var DOMRect: {\n prototype: DOMRect;\n new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n fromRect(other?: DOMRectInit): DOMRect;\n};\n\ninterface DOMRectReadOnly {\n readonly bottom: number;\n readonly height: number;\n readonly left: number;\n readonly right: number;\n readonly top: number;\n readonly width: number;\n readonly x: number;\n readonly y: number;\n toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/** A type returned by some APIs which contains a list of DOMString (strings). */\ninterface DOMStringList {\n /** Returns the number of strings in strings. */\n readonly length: number;\n /** Returns true if strings contains string, and false otherwise. */\n contains(string: string): boolean;\n /** Returns the string with index index from strings. */\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var DOMStringList: {\n prototype: DOMStringList;\n new(): DOMStringList;\n};\n\ninterface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers. */\ninterface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {\n /** Returns dedicatedWorkerGlobal\'s name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */\n readonly name: string;\n onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n /** Aborts dedicatedWorkerGlobal. */\n close(): void;\n /** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var DedicatedWorkerGlobalScope: {\n prototype: DedicatedWorkerGlobalScope;\n new(): DedicatedWorkerGlobalScope;\n};\n\ninterface EXT_blend_minmax {\n readonly MIN_EXT: 0x8007;\n readonly MAX_EXT: 0x8008;\n}\n\ninterface EXT_color_buffer_float {\n}\n\ninterface EXT_color_buffer_half_float {\n readonly RGBA16F_EXT: 0x881A;\n readonly RGB16F_EXT: 0x881B;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\ninterface EXT_float_blend {\n}\n\n/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */\ninterface EXT_frag_depth {\n}\n\ninterface EXT_sRGB {\n readonly SRGB_EXT: 0x8C40;\n readonly SRGB_ALPHA_EXT: 0x8C42;\n readonly SRGB8_ALPHA8_EXT: 0x8C43;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;\n}\n\ninterface EXT_shader_texture_lod {\n}\n\ninterface EXT_texture_compression_bptc {\n readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;\n readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;\n readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;\n readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;\n}\n\ninterface EXT_texture_compression_rgtc {\n readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;\n readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;\n readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;\n readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;\n}\n\n/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */\ninterface EXT_texture_filter_anisotropic {\n readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;\n}\n\ninterface EXT_texture_norm16 {\n readonly R16_EXT: 0x822A;\n readonly RG16_EXT: 0x822C;\n readonly RGB16_EXT: 0x8054;\n readonly RGBA16_EXT: 0x805B;\n readonly R16_SNORM_EXT: 0x8F98;\n readonly RG16_SNORM_EXT: 0x8F99;\n readonly RGB16_SNORM_EXT: 0x8F9A;\n readonly RGBA16_SNORM_EXT: 0x8F9B;\n}\n\n/** Events providing information related to errors in scripts or in files. */\ninterface ErrorEvent extends Event {\n readonly colno: number;\n readonly error: any;\n readonly filename: string;\n readonly lineno: number;\n readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/** An event which takes place in the DOM. */\ninterface Event {\n /** Returns true or false depending on how event was initialized. True if event goes through its target\'s ancestors in reverse tree order, and false otherwise. */\n readonly bubbles: boolean;\n /** @deprecated */\n cancelBubble: boolean;\n /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */\n readonly cancelable: boolean;\n /** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */\n readonly composed: boolean;\n /** Returns the object whose event listener\'s callback is currently being invoked. */\n readonly currentTarget: EventTarget | null;\n /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */\n readonly defaultPrevented: boolean;\n /** Returns the event\'s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */\n readonly eventPhase: number;\n /** Returns true if event was dispatched by the user agent, and false otherwise. */\n readonly isTrusted: boolean;\n /** @deprecated */\n returnValue: boolean;\n /** @deprecated */\n readonly srcElement: EventTarget | null;\n /** Returns the object to which event is dispatched (its target). */\n readonly target: EventTarget | null;\n /** Returns the event\'s timestamp as the number of milliseconds measured relative to the time origin. */\n readonly timeStamp: DOMHighResTimeStamp;\n /** Returns the type of event, e.g. "click", "hashchange", or "submit". */\n readonly type: string;\n /** Returns the invocation target objects of event\'s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root\'s mode is "closed" that are not reachable from event\'s currentTarget. */\n composedPath(): EventTarget[];\n /** @deprecated */\n initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n /** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */\n preventDefault(): void;\n /** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */\n stopImmediatePropagation(): void;\n /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */\n stopPropagation(): void;\n readonly NONE: 0;\n readonly CAPTURING_PHASE: 1;\n readonly AT_TARGET: 2;\n readonly BUBBLING_PHASE: 3;\n}\n\ndeclare var Event: {\n prototype: Event;\n new(type: string, eventInitDict?: EventInit): Event;\n readonly NONE: 0;\n readonly CAPTURING_PHASE: 1;\n readonly AT_TARGET: 2;\n readonly BUBBLING_PHASE: 3;\n};\n\ninterface EventListener {\n (evt: Event): void;\n}\n\ninterface EventListenerObject {\n handleEvent(object: Event): void;\n}\n\ninterface EventSourceEventMap {\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\ninterface EventSource extends EventTarget {\n onerror: ((this: EventSource, ev: Event) => any) | null;\n onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n onopen: ((this: EventSource, ev: Event) => any) | null;\n /** Returns the state of this EventSource object\'s connection. It can have the values described below. */\n readonly readyState: number;\n /** Returns the URL providing the event stream. */\n readonly url: string;\n /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */\n readonly withCredentials: boolean;\n /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */\n close(): void;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSED: 2;\n addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var EventSource: {\n prototype: EventSource;\n new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSED: 2;\n};\n\n/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */\ninterface EventTarget {\n /**\n * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.\n *\n * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options\'s capture.\n *\n * When set to true, options\'s capture prevents callback from being invoked when the event\'s eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event\'s eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event\'s eventPhase attribute value is AT_TARGET.\n *\n * When set to true, options\'s passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xa7 2.8 Observing event listeners.\n *\n * When set to true, options\'s once indicates that the callback will only be invoked once after which the event listener will be removed.\n *\n * If an AbortSignal is passed for options\'s signal, then the event listener will be removed when signal is aborted.\n *\n * The event listener is appended to target\'s event listener list and is not appended if it has the same type, callback, and capture.\n */\n addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;\n /** Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */\n dispatchEvent(event: Event): boolean;\n /** Removes the event listener in target\'s event listener list with the same type, callback, and options. */\n removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\n}\n\ndeclare var EventTarget: {\n prototype: EventTarget;\n new(): EventTarget;\n};\n\n/** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */\ninterface ExtendableEvent extends Event {\n waitUntil(f: Promise<any>): void;\n}\n\ndeclare var ExtendableEvent: {\n prototype: ExtendableEvent;\n new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;\n};\n\n/** This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) \u2014 extends the lifetime of such events. */\ninterface ExtendableMessageEvent extends ExtendableEvent {\n readonly data: any;\n readonly lastEventId: string;\n readonly origin: string;\n readonly ports: ReadonlyArray<MessagePort>;\n readonly source: Client | ServiceWorker | MessagePort | null;\n}\n\ndeclare var ExtendableMessageEvent: {\n prototype: ExtendableMessageEvent;\n new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;\n};\n\n/** This is the event type for fetch\xa0events dispatched on the\xa0service worker global scope. It contains information about the fetch, including the\xa0request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch. */\ninterface FetchEvent extends ExtendableEvent {\n readonly clientId: string;\n readonly handled: Promise<undefined>;\n readonly preloadResponse: Promise<any>;\n readonly request: Request;\n readonly resultingClientId: string;\n respondWith(r: Response | PromiseLike<Response>): void;\n}\n\ndeclare var FetchEvent: {\n prototype: FetchEvent;\n new(type: string, eventInitDict: FetchEventInit): FetchEvent;\n};\n\n/** Provides information about files and allows JavaScript in a web page to access their content. */\ninterface File extends Blob {\n readonly lastModified: number;\n readonly name: string;\n readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n prototype: File;\n new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\n};\n\n/** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It\'s also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */\ninterface FileList {\n readonly length: number;\n item(index: number): File | null;\n [index: number]: File;\n}\n\ndeclare var FileList: {\n prototype: FileList;\n new(): FileList;\n};\n\ninterface FileReaderEventMap {\n "abort": ProgressEvent<FileReader>;\n "error": ProgressEvent<FileReader>;\n "load": ProgressEvent<FileReader>;\n "loadend": ProgressEvent<FileReader>;\n "loadstart": ProgressEvent<FileReader>;\n "progress": ProgressEvent<FileReader>;\n}\n\n/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user\'s computer, using File or Blob objects to specify the file or data to read. */\ninterface FileReader extends EventTarget {\n readonly error: DOMException | null;\n onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;\n readonly result: string | ArrayBuffer | null;\n abort(): void;\n readAsArrayBuffer(blob: Blob): void;\n readAsBinaryString(blob: Blob): void;\n readAsDataURL(blob: Blob): void;\n readAsText(blob: Blob, encoding?: string): void;\n readonly EMPTY: 0;\n readonly LOADING: 1;\n readonly DONE: 2;\n addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FileReader: {\n prototype: FileReader;\n new(): FileReader;\n readonly EMPTY: 0;\n readonly LOADING: 1;\n readonly DONE: 2;\n};\n\n/** Allows to read File or Blob objects in a synchronous way. */\ninterface FileReaderSync {\n readAsArrayBuffer(blob: Blob): ArrayBuffer;\n /** @deprecated */\n readAsBinaryString(blob: Blob): string;\n readAsDataURL(blob: Blob): string;\n readAsText(blob: Blob, encoding?: string): string;\n}\n\ndeclare var FileReaderSync: {\n prototype: FileReaderSync;\n new(): FileReaderSync;\n};\n\n/** Available only in secure contexts. */\ninterface FileSystemDirectoryHandle extends FileSystemHandle {\n readonly kind: "directory";\n getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;\n getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;\n removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;\n resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;\n}\n\ndeclare var FileSystemDirectoryHandle: {\n prototype: FileSystemDirectoryHandle;\n new(): FileSystemDirectoryHandle;\n};\n\n/** Available only in secure contexts. */\ninterface FileSystemFileHandle extends FileSystemHandle {\n readonly kind: "file";\n createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>;\n getFile(): Promise<File>;\n}\n\ndeclare var FileSystemFileHandle: {\n prototype: FileSystemFileHandle;\n new(): FileSystemFileHandle;\n};\n\n/** Available only in secure contexts. */\ninterface FileSystemHandle {\n readonly kind: FileSystemHandleKind;\n readonly name: string;\n isSameEntry(other: FileSystemHandle): Promise<boolean>;\n}\n\ndeclare var FileSystemHandle: {\n prototype: FileSystemHandle;\n new(): FileSystemHandle;\n};\n\n/** Available only in secure contexts. */\ninterface FileSystemSyncAccessHandle {\n close(): void;\n flush(): void;\n getSize(): number;\n read(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;\n truncate(newSize: number): void;\n write(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;\n}\n\ndeclare var FileSystemSyncAccessHandle: {\n prototype: FileSystemSyncAccessHandle;\n new(): FileSystemSyncAccessHandle;\n};\n\ninterface FontFace {\n ascentOverride: string;\n descentOverride: string;\n display: FontDisplay;\n family: string;\n featureSettings: string;\n lineGapOverride: string;\n readonly loaded: Promise<FontFace>;\n readonly status: FontFaceLoadStatus;\n stretch: string;\n style: string;\n unicodeRange: string;\n variant: string;\n weight: string;\n load(): Promise<FontFace>;\n}\n\ndeclare var FontFace: {\n prototype: FontFace;\n new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n "loading": Event;\n "loadingdone": Event;\n "loadingerror": Event;\n}\n\ninterface FontFaceSet extends EventTarget {\n onloading: ((this: FontFaceSet, ev: Event) => any) | null;\n onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;\n onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;\n readonly ready: Promise<FontFaceSet>;\n readonly status: FontFaceSetLoadStatus;\n check(font: string, text?: string): boolean;\n load(font: string, text?: string): Promise<FontFace[]>;\n forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;\n addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FontFaceSet: {\n prototype: FontFaceSet;\n new(initialFaces: FontFace[]): FontFaceSet;\n};\n\ninterface FontFaceSetLoadEvent extends Event {\n readonly fontfaces: ReadonlyArray<FontFace>;\n}\n\ndeclare var FontFaceSetLoadEvent: {\n prototype: FontFaceSetLoadEvent;\n new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;\n};\n\ninterface FontFaceSource {\n readonly fonts: FontFaceSet;\n}\n\n/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */\ninterface FormData {\n append(name: string, value: string | Blob, fileName?: string): void;\n delete(name: string): void;\n get(name: string): FormDataEntryValue | null;\n getAll(name: string): FormDataEntryValue[];\n has(name: string): boolean;\n set(name: string, value: string | Blob, fileName?: string): void;\n forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;\n}\n\ndeclare var FormData: {\n prototype: FormData;\n new(): FormData;\n};\n\ninterface GenericTransformStream {\n readonly readable: ReadableStream;\n readonly writable: WritableStream;\n}\n\n/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xa0of zero or more name and value pairs. \xa0You can add to this using methods like append() (see Examples.)\xa0In all methods of this interface, header names are matched by case-insensitive byte sequence. */\ninterface Headers {\n append(name: string, value: string): void;\n delete(name: string): void;\n get(name: string): string | null;\n has(name: string): boolean;\n set(name: string, value: string): void;\n forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;\n}\n\ndeclare var Headers: {\n prototype: Headers;\n new(init?: HeadersInit): Headers;\n};\n\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */\ninterface IDBCursor {\n /** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */\n readonly direction: IDBCursorDirection;\n /** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */\n readonly key: IDBValidKey;\n /** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */\n readonly primaryKey: IDBValidKey;\n readonly request: IDBRequest;\n /** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */\n readonly source: IDBObjectStore | IDBIndex;\n /** Advances the cursor through the next count records in range. */\n advance(count: number): void;\n /** Advances the cursor to the next record in range. */\n continue(key?: IDBValidKey): void;\n /** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. */\n continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n /**\n * Delete the record pointed at by the cursor with a new value.\n *\n * If successful, request\'s result will be undefined.\n */\n delete(): IDBRequest<undefined>;\n /**\n * Updated the record pointed at by the cursor with a new value.\n *\n * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n update(value: any): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBCursor: {\n prototype: IDBCursor;\n new(): IDBCursor;\n};\n\n/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */\ninterface IDBCursorWithValue extends IDBCursor {\n /** Returns the cursor\'s current value. */\n readonly value: any;\n}\n\ndeclare var IDBCursorWithValue: {\n prototype: IDBCursorWithValue;\n new(): IDBCursorWithValue;\n};\n\ninterface IDBDatabaseEventMap {\n "abort": Event;\n "close": Event;\n "error": Event;\n "versionchange": IDBVersionChangeEvent;\n}\n\n/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */\ninterface IDBDatabase extends EventTarget {\n /** Returns the name of the database. */\n readonly name: string;\n /** Returns a list of the names of object stores in the database. */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n onclose: ((this: IDBDatabase, ev: Event) => any) | null;\n onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;\n /** Returns the version of the database. */\n readonly version: number;\n /** Closes the connection once all running transactions have finished. */\n close(): void;\n /**\n * Creates a new object store with the given name and options and returns a new IDBObjectStore.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;\n /**\n * Deletes the object store with the given name.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n deleteObjectStore(name: string): void;\n /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */\n transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;\n addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBDatabase: {\n prototype: IDBDatabase;\n new(): IDBDatabase;\n};\n\n/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */\ninterface IDBFactory {\n /**\n * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.\n *\n * Throws a "DataError" DOMException if either input is not a valid key.\n */\n cmp(first: any, second: any): number;\n databases(): Promise<IDBDatabaseInfo[]>;\n /** Attempts to delete the named database. If the database already exists and there are open connections that don\'t close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request\'s result will be null. */\n deleteDatabase(name: string): IDBOpenDBRequest;\n /** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request\'s result will be the connection. */\n open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n prototype: IDBFactory;\n new(): IDBFactory;\n};\n\n/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */\ninterface IDBIndex {\n readonly keyPath: string | string[];\n readonly multiEntry: boolean;\n /** Returns the name of the index. */\n name: string;\n /** Returns the IDBObjectStore the index belongs to. */\n readonly objectStore: IDBObjectStore;\n readonly unique: boolean;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue, or null if there were no matching records.\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursor, or null if there were no matching records.\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n}\n\ndeclare var IDBIndex: {\n prototype: IDBIndex;\n new(): IDBIndex;\n};\n\n/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */\ninterface IDBKeyRange {\n /** Returns lower bound, or undefined if none. */\n readonly lower: any;\n /** Returns true if the lower open flag is set, and false otherwise. */\n readonly lowerOpen: boolean;\n /** Returns upper bound, or undefined if none. */\n readonly upper: any;\n /** Returns true if the upper open flag is set, and false otherwise. */\n readonly upperOpen: boolean;\n /** Returns true if key is included in the range, and false otherwise. */\n includes(key: any): boolean;\n}\n\ndeclare var IDBKeyRange: {\n prototype: IDBKeyRange;\n new(): IDBKeyRange;\n /** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */\n bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n /** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */\n lowerBound(lower: any, open?: boolean): IDBKeyRange;\n /** Returns a new IDBKeyRange spanning only key. */\n only(value: any): IDBKeyRange;\n /** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */\n upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\n/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xa0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xa0To-do Notifications\xa0app (view example live.) */\ninterface IDBObjectStore {\n /** Returns true if the store has a key generator, and false otherwise. */\n readonly autoIncrement: boolean;\n /** Returns a list of the names of indexes in the store. */\n readonly indexNames: DOMStringList;\n /** Returns the key path of the store, or null if none. */\n readonly keyPath: string | string[];\n /** Returns the name of the store. */\n name: string;\n /** Returns the associated transaction. */\n readonly transaction: IDBTransaction;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n /**\n * Deletes all records in store.\n *\n * If successful, request\'s result will be undefined.\n */\n clear(): IDBRequest<undefined>;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n /**\n * Deletes records in store with the given key or in the given key range in query.\n *\n * If successful, request\'s result will be undefined.\n */\n delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n /**\n * Deletes the index in store with the given name.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n deleteIndex(name: string): void;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n index(name: string): IDBIndex;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n *\n * If successful, request\'s result will be the record\'s key.\n */\n put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBObjectStore: {\n prototype: IDBObjectStore;\n new(): IDBObjectStore;\n};\n\ninterface IDBOpenDBRequestEventMap extends IDBRequestEventMap {\n "blocked": IDBVersionChangeEvent;\n "upgradeneeded": IDBVersionChangeEvent;\n}\n\n/** Also inherits methods from its parents IDBRequest and EventTarget. */\ninterface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {\n onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBOpenDBRequest: {\n prototype: IDBOpenDBRequest;\n new(): IDBOpenDBRequest;\n};\n\ninterface IDBRequestEventMap {\n "error": Event;\n "success": Event;\n}\n\n/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */\ninterface IDBRequest<T = any> extends EventTarget {\n /** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */\n readonly error: DOMException | null;\n onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;\n onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;\n /** Returns "pending" until a request is complete, then returns "done". */\n readonly readyState: IDBRequestReadyState;\n /** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */\n readonly result: T;\n /** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */\n readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n /** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */\n readonly transaction: IDBTransaction | null;\n addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBRequest: {\n prototype: IDBRequest;\n new(): IDBRequest;\n};\n\ninterface IDBTransactionEventMap {\n "abort": Event;\n "complete": Event;\n "error": Event;\n}\n\ninterface IDBTransaction extends EventTarget {\n /** Returns the transaction\'s connection. */\n readonly db: IDBDatabase;\n readonly durability: IDBTransactionDurability;\n /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */\n readonly error: DOMException | null;\n /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */\n readonly mode: IDBTransactionMode;\n /** Returns a list of the names of object stores in the transaction\'s scope. For an upgrade transaction this is all object stores in the database. */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBTransaction, ev: Event) => any) | null;\n oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;\n onerror: ((this: IDBTransaction, ev: Event) => any) | null;\n /** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */\n abort(): void;\n commit(): void;\n /** Returns an IDBObjectStore in the transaction\'s scope. */\n objectStore(name: string): IDBObjectStore;\n addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBTransaction: {\n prototype: IDBTransaction;\n new(): IDBTransaction;\n};\n\n/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */\ninterface IDBVersionChangeEvent extends Event {\n readonly newVersion: number | null;\n readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n prototype: IDBVersionChangeEvent;\n new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;\n};\n\ninterface ImageBitmap {\n /** Returns the intrinsic height of the image, in CSS pixels. */\n readonly height: number;\n /** Returns the intrinsic width of the image, in CSS pixels. */\n readonly width: number;\n /** Releases imageBitmap\'s underlying bitmap data. */\n close(): void;\n}\n\ndeclare var ImageBitmap: {\n prototype: ImageBitmap;\n new(): ImageBitmap;\n};\n\ninterface ImageBitmapRenderingContext {\n /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */\n transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n prototype: ImageBitmapRenderingContext;\n new(): ImageBitmapRenderingContext;\n};\n\n/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */\ninterface ImageData {\n readonly colorSpace: PredefinedColorSpace;\n /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */\n readonly data: Uint8ClampedArray;\n /** Returns the actual dimensions of the data in the ImageData object, in pixels. */\n readonly height: number;\n /** Returns the actual dimensions of the data in the ImageData object, in pixels. */\n readonly width: number;\n}\n\ndeclare var ImageData: {\n prototype: ImageData;\n new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;\n};\n\ninterface KHR_parallel_shader_compile {\n readonly COMPLETION_STATUS_KHR: 0x91B1;\n}\n\n/** Available only in secure contexts. */\ninterface Lock {\n readonly mode: LockMode;\n readonly name: string;\n}\n\ndeclare var Lock: {\n prototype: Lock;\n new(): Lock;\n};\n\n/** Available only in secure contexts. */\ninterface LockManager {\n query(): Promise<LockManagerSnapshot>;\n request(name: string, callback: LockGrantedCallback): Promise<any>;\n request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;\n}\n\ndeclare var LockManager: {\n prototype: LockManager;\n new(): LockManager;\n};\n\ninterface MediaCapabilities {\n decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;\n encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;\n}\n\ndeclare var MediaCapabilities: {\n prototype: MediaCapabilities;\n new(): MediaCapabilities;\n};\n\n/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */\ninterface MessageChannel {\n /** Returns the first MessagePort object. */\n readonly port1: MessagePort;\n /** Returns the second MessagePort object. */\n readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n prototype: MessageChannel;\n new(): MessageChannel;\n};\n\n/** A message received by a target object. */\ninterface MessageEvent<T = any> extends Event {\n /** Returns the data of the message. */\n readonly data: T;\n /** Returns the last event ID string, for server-sent events. */\n readonly lastEventId: string;\n /** Returns the origin of the message, for server-sent events and cross-document messaging. */\n readonly origin: string;\n /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */\n readonly ports: ReadonlyArray<MessagePort>;\n /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */\n readonly source: MessageEventSource | null;\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;\n}\n\ndeclare var MessageEvent: {\n prototype: MessageEvent;\n new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;\n};\n\ninterface MessagePortEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */\ninterface MessagePort extends EventTarget {\n onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;\n /** Disconnects the port, so that it is no longer active. */\n close(): void;\n /**\n * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /** Begins dispatching messages received on the port. */\n start(): void;\n addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MessagePort: {\n prototype: MessagePort;\n new(): MessagePort;\n};\n\n/** Available only in secure contexts. */\ninterface NavigationPreloadManager {\n disable(): Promise<void>;\n enable(): Promise<void>;\n getState(): Promise<NavigationPreloadState>;\n setHeaderValue(value: string): Promise<void>;\n}\n\ndeclare var NavigationPreloadManager: {\n prototype: NavigationPreloadManager;\n new(): NavigationPreloadManager;\n};\n\ninterface NavigatorConcurrentHardware {\n readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorID {\n /** @deprecated */\n readonly appCodeName: string;\n /** @deprecated */\n readonly appName: string;\n /** @deprecated */\n readonly appVersion: string;\n /** @deprecated */\n readonly platform: string;\n /** @deprecated */\n readonly product: string;\n readonly userAgent: string;\n}\n\ninterface NavigatorLanguage {\n readonly language: string;\n readonly languages: ReadonlyArray<string>;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorLocks {\n readonly locks: LockManager;\n}\n\ninterface NavigatorOnLine {\n readonly onLine: boolean;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorStorage {\n readonly storage: StorageManager;\n}\n\ninterface NotificationEventMap {\n "click": Event;\n "close": Event;\n "error": Event;\n "show": Event;\n}\n\n/** This Notifications API interface is used to configure and display desktop notifications to the user. */\ninterface Notification extends EventTarget {\n readonly body: string;\n readonly data: any;\n readonly dir: NotificationDirection;\n readonly icon: string;\n readonly lang: string;\n onclick: ((this: Notification, ev: Event) => any) | null;\n onclose: ((this: Notification, ev: Event) => any) | null;\n onerror: ((this: Notification, ev: Event) => any) | null;\n onshow: ((this: Notification, ev: Event) => any) | null;\n readonly tag: string;\n readonly title: string;\n close(): void;\n addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Notification: {\n prototype: Notification;\n new(title: string, options?: NotificationOptions): Notification;\n readonly permission: NotificationPermission;\n};\n\n/** The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */\ninterface NotificationEvent extends ExtendableEvent {\n readonly action: string;\n readonly notification: Notification;\n}\n\ndeclare var NotificationEvent: {\n prototype: NotificationEvent;\n new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;\n};\n\ninterface OES_draw_buffers_indexed {\n blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;\n blendEquationiOES(buf: GLuint, mode: GLenum): void;\n blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;\n colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;\n disableiOES(target: GLenum, index: GLuint): void;\n enableiOES(target: GLenum, index: GLuint): void;\n}\n\n/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */\ninterface OES_element_index_uint {\n}\n\ninterface OES_fbo_render_mipmap {\n}\n\n/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */\ninterface OES_standard_derivatives {\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;\n}\n\n/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */\ninterface OES_texture_float {\n}\n\n/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */\ninterface OES_texture_float_linear {\n}\n\n/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */\ninterface OES_texture_half_float {\n readonly HALF_FLOAT_OES: 0x8D61;\n}\n\n/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */\ninterface OES_texture_half_float_linear {\n}\n\ninterface OES_vertex_array_object {\n bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n createVertexArrayOES(): WebGLVertexArrayObjectOES | null;\n deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;\n}\n\ninterface OVR_multiview2 {\n framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;\n readonly MAX_VIEWS_OVR: 0x9631;\n readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;\n}\n\ninterface OffscreenCanvasEventMap {\n "contextlost": Event;\n "contextrestored": Event;\n}\n\ninterface OffscreenCanvas extends EventTarget {\n /**\n * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n *\n * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n */\n height: number;\n oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;\n oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;\n /**\n * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n *\n * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n */\n width: number;\n /**\n * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.\n *\n * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn\'t supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.\n */\n convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;\n /**\n * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.\n *\n * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]\n *\n * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).\n */\n getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;\n getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;\n getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;\n getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;\n getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;\n /** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */\n transferToImageBitmap(): ImageBitmap;\n addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OffscreenCanvas: {\n prototype: OffscreenCanvas;\n new(width: number, height: number): OffscreenCanvas;\n};\n\ninterface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {\n readonly canvas: OffscreenCanvas;\n commit(): void;\n}\n\ndeclare var OffscreenCanvasRenderingContext2D: {\n prototype: OffscreenCanvasRenderingContext2D;\n new(): OffscreenCanvasRenderingContext2D;\n};\n\n/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */\ninterface Path2D extends CanvasPath {\n /** Adds to the path the path given by the argument. */\n addPath(path: Path2D, transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var Path2D: {\n prototype: Path2D;\n new(path?: Path2D | string): Path2D;\n};\n\ninterface PerformanceEventMap {\n "resourcetimingbufferfull": Event;\n}\n\n/** Provides access to performance-related information for the current page. It\'s part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */\ninterface Performance extends EventTarget {\n onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;\n readonly timeOrigin: DOMHighResTimeStamp;\n clearMarks(markName?: string): void;\n clearMeasures(measureName?: string): void;\n clearResourceTimings(): void;\n getEntries(): PerformanceEntryList;\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n getEntriesByType(type: string): PerformanceEntryList;\n mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;\n now(): DOMHighResTimeStamp;\n setResourceTimingBufferSize(maxSize: number): void;\n toJSON(): any;\n addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Performance: {\n prototype: Performance;\n new(): Performance;\n};\n\n/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */\ninterface PerformanceEntry {\n readonly duration: DOMHighResTimeStamp;\n readonly entryType: string;\n readonly name: string;\n readonly startTime: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n prototype: PerformanceEntry;\n new(): PerformanceEntry;\n};\n\n/** PerformanceMark\xa0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser\'s performance timeline. */\ninterface PerformanceMark extends PerformanceEntry {\n readonly detail: any;\n}\n\ndeclare var PerformanceMark: {\n prototype: PerformanceMark;\n new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n};\n\n/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser\'s performance timeline. */\ninterface PerformanceMeasure extends PerformanceEntry {\n readonly detail: any;\n}\n\ndeclare var PerformanceMeasure: {\n prototype: PerformanceMeasure;\n new(): PerformanceMeasure;\n};\n\ninterface PerformanceObserver {\n disconnect(): void;\n observe(options?: PerformanceObserverInit): void;\n takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n prototype: PerformanceObserver;\n new(callback: PerformanceObserverCallback): PerformanceObserver;\n readonly supportedEntryTypes: ReadonlyArray<string>;\n};\n\ninterface PerformanceObserverEntryList {\n getEntries(): PerformanceEntryList;\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n prototype: PerformanceObserverEntryList;\n new(): PerformanceObserverEntryList;\n};\n\n/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application\'s resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */\ninterface PerformanceResourceTiming extends PerformanceEntry {\n readonly connectEnd: DOMHighResTimeStamp;\n readonly connectStart: DOMHighResTimeStamp;\n readonly decodedBodySize: number;\n readonly domainLookupEnd: DOMHighResTimeStamp;\n readonly domainLookupStart: DOMHighResTimeStamp;\n readonly encodedBodySize: number;\n readonly fetchStart: DOMHighResTimeStamp;\n readonly initiatorType: string;\n readonly nextHopProtocol: string;\n readonly redirectEnd: DOMHighResTimeStamp;\n readonly redirectStart: DOMHighResTimeStamp;\n readonly requestStart: DOMHighResTimeStamp;\n readonly responseEnd: DOMHighResTimeStamp;\n readonly responseStart: DOMHighResTimeStamp;\n readonly secureConnectionStart: DOMHighResTimeStamp;\n readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;\n readonly transferSize: number;\n readonly workerStart: DOMHighResTimeStamp;\n toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n prototype: PerformanceResourceTiming;\n new(): PerformanceResourceTiming;\n};\n\ninterface PerformanceServerTiming {\n readonly description: string;\n readonly duration: DOMHighResTimeStamp;\n readonly name: string;\n toJSON(): any;\n}\n\ndeclare var PerformanceServerTiming: {\n prototype: PerformanceServerTiming;\n new(): PerformanceServerTiming;\n};\n\ninterface PermissionStatusEventMap {\n "change": Event;\n}\n\ninterface PermissionStatus extends EventTarget {\n readonly name: string;\n onchange: ((this: PermissionStatus, ev: Event) => any) | null;\n readonly state: PermissionState;\n addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PermissionStatus: {\n prototype: PermissionStatus;\n new(): PermissionStatus;\n};\n\ninterface Permissions {\n query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n prototype: Permissions;\n new(): Permissions;\n};\n\n/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n readonly lengthComputable: boolean;\n readonly loaded: number;\n readonly target: T | null;\n readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n prototype: ProgressEvent;\n new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\ninterface PromiseRejectionEvent extends Event {\n readonly promise: Promise<any>;\n readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n prototype: PromiseRejectionEvent;\n new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\n/**\n * This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.\n * Available only in secure contexts.\n */\ninterface PushEvent extends ExtendableEvent {\n readonly data: PushMessageData | null;\n}\n\ndeclare var PushEvent: {\n prototype: PushEvent;\n new(type: string, eventInitDict?: PushEventInit): PushEvent;\n};\n\n/**\n * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.\n * Available only in secure contexts.\n */\ninterface PushManager {\n getSubscription(): Promise<PushSubscription | null>;\n permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;\n subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n prototype: PushManager;\n new(): PushManager;\n readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\n/**\n * This Push API interface provides methods which let you retrieve the push data sent by a server in various formats.\n * Available only in secure contexts.\n */\ninterface PushMessageData {\n arrayBuffer(): ArrayBuffer;\n blob(): Blob;\n json(): any;\n text(): string;\n}\n\ndeclare var PushMessageData: {\n prototype: PushMessageData;\n new(): PushMessageData;\n};\n\n/**\n * This Push API interface provides a subcription\'s URL endpoint and allows unsubscription from a push service.\n * Available only in secure contexts.\n */\ninterface PushSubscription {\n readonly endpoint: string;\n readonly expirationTime: EpochTimeStamp | null;\n readonly options: PushSubscriptionOptions;\n getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n toJSON(): PushSubscriptionJSON;\n unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n prototype: PushSubscription;\n new(): PushSubscription;\n};\n\n/** Available only in secure contexts. */\ninterface PushSubscriptionOptions {\n readonly applicationServerKey: ArrayBuffer | null;\n readonly userVisibleOnly: boolean;\n}\n\ndeclare var PushSubscriptionOptions: {\n prototype: PushSubscriptionOptions;\n new(): PushSubscriptionOptions;\n};\n\ninterface RTCEncodedAudioFrame {\n data: ArrayBuffer;\n readonly timestamp: number;\n getMetadata(): RTCEncodedAudioFrameMetadata;\n}\n\ndeclare var RTCEncodedAudioFrame: {\n prototype: RTCEncodedAudioFrame;\n new(): RTCEncodedAudioFrame;\n};\n\ninterface RTCEncodedVideoFrame {\n data: ArrayBuffer;\n readonly timestamp: number;\n readonly type: RTCEncodedVideoFrameType;\n getMetadata(): RTCEncodedVideoFrameMetadata;\n}\n\ndeclare var RTCEncodedVideoFrame: {\n prototype: RTCEncodedVideoFrame;\n new(): RTCEncodedVideoFrame;\n};\n\ninterface ReadableByteStreamController {\n readonly byobRequest: ReadableStreamBYOBRequest | null;\n readonly desiredSize: number | null;\n close(): void;\n enqueue(chunk: ArrayBufferView): void;\n error(e?: any): void;\n}\n\ndeclare var ReadableByteStreamController: {\n prototype: ReadableByteStreamController;\n new(): ReadableByteStreamController;\n};\n\n/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */\ninterface ReadableStream<R = any> {\n readonly locked: boolean;\n cancel(reason?: any): Promise<void>;\n getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;\n getReader(): ReadableStreamDefaultReader<R>;\n getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;\n pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;\n pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;\n tee(): [ReadableStream<R>, ReadableStream<R>];\n}\n\ndeclare var ReadableStream: {\n prototype: ReadableStream;\n new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;\n new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n};\n\ninterface ReadableStreamBYOBReader extends ReadableStreamGenericReader {\n read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamBYOBReader: {\n prototype: ReadableStreamBYOBReader;\n new(stream: ReadableStream): ReadableStreamBYOBReader;\n};\n\ninterface ReadableStreamBYOBRequest {\n readonly view: ArrayBufferView | null;\n respond(bytesWritten: number): void;\n respondWithNewView(view: ArrayBufferView): void;\n}\n\ndeclare var ReadableStreamBYOBRequest: {\n prototype: ReadableStreamBYOBRequest;\n new(): ReadableStreamBYOBRequest;\n};\n\ninterface ReadableStreamDefaultController<R = any> {\n readonly desiredSize: number | null;\n close(): void;\n enqueue(chunk?: R): void;\n error(e?: any): void;\n}\n\ndeclare var ReadableStreamDefaultController: {\n prototype: ReadableStreamDefaultController;\n new(): ReadableStreamDefaultController;\n};\n\ninterface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {\n read(): Promise<ReadableStreamReadResult<R>>;\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamDefaultReader: {\n prototype: ReadableStreamDefaultReader;\n new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;\n};\n\ninterface ReadableStreamGenericReader {\n readonly closed: Promise<undefined>;\n cancel(reason?: any): Promise<void>;\n}\n\n/** This Fetch API interface represents a resource request. */\ninterface Request extends Body {\n /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser\'s cache when fetching. */\n readonly cache: RequestCache;\n /** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */\n readonly credentials: RequestCredentials;\n /** Returns the kind of resource requested by request, e.g., "document" or "script". */\n readonly destination: RequestDestination;\n /** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */\n readonly headers: Headers;\n /** Returns request\'s subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */\n readonly integrity: string;\n /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */\n readonly keepalive: boolean;\n /** Returns request\'s HTTP method, which is "GET" by default. */\n readonly method: string;\n /** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */\n readonly mode: RequestMode;\n /** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */\n readonly redirect: RequestRedirect;\n /** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global\'s default. This is used during fetching to determine the value of the `Referer` header of the request being made. */\n readonly referrer: string;\n /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request\'s referrer. */\n readonly referrerPolicy: ReferrerPolicy;\n /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */\n readonly signal: AbortSignal;\n /** Returns the URL of request as a string. */\n readonly url: string;\n clone(): Request;\n}\n\ndeclare var Request: {\n prototype: Request;\n new(input: RequestInfo | URL, init?: RequestInit): Request;\n};\n\n/** This Fetch API interface represents the response to a request. */\ninterface Response extends Body {\n readonly headers: Headers;\n readonly ok: boolean;\n readonly redirected: boolean;\n readonly status: number;\n readonly statusText: string;\n readonly type: ResponseType;\n readonly url: string;\n clone(): Response;\n}\n\ndeclare var Response: {\n prototype: Response;\n new(body?: BodyInit | null, init?: ResponseInit): Response;\n error(): Response;\n redirect(url: string | URL, status?: number): Response;\n};\n\n/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */\ninterface SecurityPolicyViolationEvent extends Event {\n readonly blockedURI: string;\n readonly columnNumber: number;\n readonly disposition: SecurityPolicyViolationEventDisposition;\n readonly documentURI: string;\n readonly effectiveDirective: string;\n readonly lineNumber: number;\n readonly originalPolicy: string;\n readonly referrer: string;\n readonly sample: string;\n readonly sourceFile: string;\n readonly statusCode: number;\n readonly violatedDirective: string;\n}\n\ndeclare var SecurityPolicyViolationEvent: {\n prototype: SecurityPolicyViolationEvent;\n new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;\n};\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n "statechange": Event;\n}\n\n/**\n * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.\n * Available only in secure contexts.\n */\ninterface ServiceWorker extends EventTarget, AbstractWorker {\n onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;\n readonly scriptURL: string;\n readonly state: ServiceWorkerState;\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorker: {\n prototype: ServiceWorker;\n new(): ServiceWorker;\n};\n\ninterface ServiceWorkerContainerEventMap {\n "controllerchange": Event;\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * The\xa0ServiceWorkerContainer\xa0interface of the\xa0ServiceWorker API\xa0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.\n * Available only in secure contexts.\n */\ninterface ServiceWorkerContainer extends EventTarget {\n readonly controller: ServiceWorker | null;\n oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n readonly ready: Promise<ServiceWorkerRegistration>;\n getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;\n getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n startMessages(): void;\n addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerContainer: {\n prototype: ServiceWorkerContainer;\n new(): ServiceWorkerContainer;\n};\n\ninterface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "activate": ExtendableEvent;\n "fetch": FetchEvent;\n "install": ExtendableEvent;\n "message": ExtendableMessageEvent;\n "messageerror": MessageEvent;\n "notificationclick": NotificationEvent;\n "notificationclose": NotificationEvent;\n "push": PushEvent;\n "pushsubscriptionchange": Event;\n}\n\n/** This ServiceWorker API interface represents the global execution context of a service worker. */\ninterface ServiceWorkerGlobalScope extends WorkerGlobalScope {\n readonly clients: Clients;\n onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;\n onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;\n oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;\n onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;\n onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;\n onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;\n onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;\n onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;\n onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;\n readonly registration: ServiceWorkerRegistration;\n readonly serviceWorker: ServiceWorker;\n skipWaiting(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerGlobalScope: {\n prototype: ServiceWorkerGlobalScope;\n new(): ServiceWorkerGlobalScope;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n "updatefound": Event;\n}\n\n/**\n * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.\n * Available only in secure contexts.\n */\ninterface ServiceWorkerRegistration extends EventTarget {\n readonly active: ServiceWorker | null;\n readonly installing: ServiceWorker | null;\n readonly navigationPreload: NavigationPreloadManager;\n onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;\n readonly pushManager: PushManager;\n readonly scope: string;\n readonly updateViaCache: ServiceWorkerUpdateViaCache;\n readonly waiting: ServiceWorker | null;\n getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n showNotification(title: string, options?: NotificationOptions): Promise<void>;\n unregister(): Promise<boolean>;\n update(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerRegistration: {\n prototype: ServiceWorkerRegistration;\n new(): ServiceWorkerRegistration;\n};\n\ninterface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "connect": MessageEvent;\n}\n\ninterface SharedWorkerGlobalScope extends WorkerGlobalScope {\n /** Returns sharedWorkerGlobal\'s name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name. */\n readonly name: string;\n onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n /** Aborts sharedWorkerGlobal. */\n close(): void;\n addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SharedWorkerGlobalScope: {\n prototype: SharedWorkerGlobalScope;\n new(): SharedWorkerGlobalScope;\n};\n\n/** Available only in secure contexts. */\ninterface StorageManager {\n estimate(): Promise<StorageEstimate>;\n getDirectory(): Promise<FileSystemDirectoryHandle>;\n persisted(): Promise<boolean>;\n}\n\ndeclare var StorageManager: {\n prototype: StorageManager;\n new(): StorageManager;\n};\n\n/**\n * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).\n * Available only in secure contexts.\n */\ninterface SubtleCrypto {\n decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;\n encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;\n exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;\n wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n prototype: SubtleCrypto;\n new(): SubtleCrypto;\n};\n\n/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xa0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */\ninterface TextDecoder extends TextDecoderCommon {\n /**\n * Returns the result of running encoding\'s decoder. The method can be invoked zero or more times with options\'s stream set to true, and then once without options\'s stream (or set to false), to process a fragmented input. If the invocation without options\'s stream (or set to false) has no input, it\'s clearest to omit both arguments.\n *\n * ```\n * var string = "", decoder = new TextDecoder(encoding), buffer;\n * while(buffer = next_chunk()) {\n * string += decoder.decode(buffer, {stream:true});\n * }\n * string += decoder.decode(); // end-of-queue\n * ```\n *\n * If the error mode is "fatal" and encoding\'s decoder returns error, throws a TypeError.\n */\n decode(input?: BufferSource, options?: TextDecodeOptions): string;\n}\n\ndeclare var TextDecoder: {\n prototype: TextDecoder;\n new(label?: string, options?: TextDecoderOptions): TextDecoder;\n};\n\ninterface TextDecoderCommon {\n /** Returns encoding\'s name, lowercased. */\n readonly encoding: string;\n /** Returns true if error mode is "fatal", otherwise false. */\n readonly fatal: boolean;\n /** Returns the value of ignore BOM. */\n readonly ignoreBOM: boolean;\n}\n\ninterface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {\n readonly readable: ReadableStream<string>;\n readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var TextDecoderStream: {\n prototype: TextDecoderStream;\n new(label?: string, options?: TextDecoderOptions): TextDecoderStream;\n};\n\n/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */\ninterface TextEncoder extends TextEncoderCommon {\n /** Returns the result of running UTF-8\'s encoder. */\n encode(input?: string): Uint8Array;\n /** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */\n encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n prototype: TextEncoder;\n new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n /** Returns "utf-8". */\n readonly encoding: string;\n}\n\ninterface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {\n readonly readable: ReadableStream<Uint8Array>;\n readonly writable: WritableStream<string>;\n}\n\ndeclare var TextEncoderStream: {\n prototype: TextEncoderStream;\n new(): TextEncoderStream;\n};\n\n/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */\ninterface TextMetrics {\n /** Returns the measurement described below. */\n readonly actualBoundingBoxAscent: number;\n /** Returns the measurement described below. */\n readonly actualBoundingBoxDescent: number;\n /** Returns the measurement described below. */\n readonly actualBoundingBoxLeft: number;\n /** Returns the measurement described below. */\n readonly actualBoundingBoxRight: number;\n /** Returns the measurement described below. */\n readonly fontBoundingBoxAscent: number;\n /** Returns the measurement described below. */\n readonly fontBoundingBoxDescent: number;\n /** Returns the measurement described below. */\n readonly width: number;\n}\n\ndeclare var TextMetrics: {\n prototype: TextMetrics;\n new(): TextMetrics;\n};\n\ninterface TransformStream<I = any, O = any> {\n readonly readable: ReadableStream<O>;\n readonly writable: WritableStream<I>;\n}\n\ndeclare var TransformStream: {\n prototype: TransformStream;\n new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;\n};\n\ninterface TransformStreamDefaultController<O = any> {\n readonly desiredSize: number | null;\n enqueue(chunk?: O): void;\n error(reason?: any): void;\n terminate(): void;\n}\n\ndeclare var TransformStreamDefaultController: {\n prototype: TransformStreamDefaultController;\n new(): TransformStreamDefaultController;\n};\n\n/** The URL\xa0interface represents an object providing static methods used for creating object URLs. */\ninterface URL {\n hash: string;\n host: string;\n hostname: string;\n href: string;\n toString(): string;\n readonly origin: string;\n password: string;\n pathname: string;\n port: string;\n protocol: string;\n search: string;\n readonly searchParams: URLSearchParams;\n username: string;\n toJSON(): string;\n}\n\ndeclare var URL: {\n prototype: URL;\n new(url: string | URL, base?: string | URL): URL;\n createObjectURL(obj: Blob): string;\n revokeObjectURL(url: string): void;\n};\n\ninterface URLSearchParams {\n /** Appends a specified key/value pair as a new search parameter. */\n append(name: string, value: string): void;\n /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */\n delete(name: string): void;\n /** Returns the first value associated to the given search parameter. */\n get(name: string): string | null;\n /** Returns all the values association with a given search parameter. */\n getAll(name: string): string[];\n /** Returns a Boolean indicating if such a search parameter exists. */\n has(name: string): boolean;\n /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */\n set(name: string, value: string): void;\n sort(): void;\n /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */\n toString(): string;\n forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;\n}\n\ndeclare var URLSearchParams: {\n prototype: URLSearchParams;\n new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;\n toString(): string;\n};\n\ninterface VideoColorSpace {\n readonly fullRange: boolean | null;\n readonly matrix: VideoMatrixCoefficients | null;\n readonly primaries: VideoColorPrimaries | null;\n readonly transfer: VideoTransferCharacteristics | null;\n toJSON(): VideoColorSpaceInit;\n}\n\ndeclare var VideoColorSpace: {\n prototype: VideoColorSpace;\n new(init?: VideoColorSpaceInit): VideoColorSpace;\n};\n\ninterface WEBGL_color_buffer_float {\n readonly RGBA32F_EXT: 0x8814;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\ninterface WEBGL_compressed_texture_astc {\n getSupportedProfiles(): string[];\n readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;\n readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;\n readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;\n readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;\n readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;\n readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;\n readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;\n readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;\n readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;\n readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;\n readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;\n readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;\n readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;\n readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;\n}\n\ninterface WEBGL_compressed_texture_etc {\n readonly COMPRESSED_R11_EAC: 0x9270;\n readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;\n readonly COMPRESSED_RG11_EAC: 0x9272;\n readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;\n readonly COMPRESSED_RGB8_ETC2: 0x9274;\n readonly COMPRESSED_SRGB8_ETC2: 0x9275;\n readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;\n readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;\n readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;\n readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;\n}\n\ninterface WEBGL_compressed_texture_etc1 {\n readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;\n}\n\n/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */\ninterface WEBGL_compressed_texture_s3tc {\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;\n}\n\ninterface WEBGL_compressed_texture_s3tc_srgb {\n readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;\n}\n\n/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */\ninterface WEBGL_debug_renderer_info {\n readonly UNMASKED_VENDOR_WEBGL: 0x9245;\n readonly UNMASKED_RENDERER_WEBGL: 0x9246;\n}\n\ninterface WEBGL_debug_shaders {\n getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\n/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */\ninterface WEBGL_depth_texture {\n readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;\n}\n\ninterface WEBGL_draw_buffers {\n drawBuffersWEBGL(buffers: GLenum[]): void;\n readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;\n readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;\n readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;\n readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;\n readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;\n readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;\n readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;\n readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;\n readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;\n readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;\n readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;\n readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;\n readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;\n readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;\n readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;\n readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;\n readonly DRAW_BUFFER0_WEBGL: 0x8825;\n readonly DRAW_BUFFER1_WEBGL: 0x8826;\n readonly DRAW_BUFFER2_WEBGL: 0x8827;\n readonly DRAW_BUFFER3_WEBGL: 0x8828;\n readonly DRAW_BUFFER4_WEBGL: 0x8829;\n readonly DRAW_BUFFER5_WEBGL: 0x882A;\n readonly DRAW_BUFFER6_WEBGL: 0x882B;\n readonly DRAW_BUFFER7_WEBGL: 0x882C;\n readonly DRAW_BUFFER8_WEBGL: 0x882D;\n readonly DRAW_BUFFER9_WEBGL: 0x882E;\n readonly DRAW_BUFFER10_WEBGL: 0x882F;\n readonly DRAW_BUFFER11_WEBGL: 0x8830;\n readonly DRAW_BUFFER12_WEBGL: 0x8831;\n readonly DRAW_BUFFER13_WEBGL: 0x8832;\n readonly DRAW_BUFFER14_WEBGL: 0x8833;\n readonly DRAW_BUFFER15_WEBGL: 0x8834;\n readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;\n readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;\n}\n\ninterface WEBGL_lose_context {\n loseContext(): void;\n restoreContext(): void;\n}\n\ninterface WEBGL_multi_draw {\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;\n}\n\ninterface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {\n}\n\ndeclare var WebGL2RenderingContext: {\n prototype: WebGL2RenderingContext;\n new(): WebGL2RenderingContext;\n readonly READ_BUFFER: 0x0C02;\n readonly UNPACK_ROW_LENGTH: 0x0CF2;\n readonly UNPACK_SKIP_ROWS: 0x0CF3;\n readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n readonly PACK_ROW_LENGTH: 0x0D02;\n readonly PACK_SKIP_ROWS: 0x0D03;\n readonly PACK_SKIP_PIXELS: 0x0D04;\n readonly COLOR: 0x1800;\n readonly DEPTH: 0x1801;\n readonly STENCIL: 0x1802;\n readonly RED: 0x1903;\n readonly RGB8: 0x8051;\n readonly RGBA8: 0x8058;\n readonly RGB10_A2: 0x8059;\n readonly TEXTURE_BINDING_3D: 0x806A;\n readonly UNPACK_SKIP_IMAGES: 0x806D;\n readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n readonly TEXTURE_3D: 0x806F;\n readonly TEXTURE_WRAP_R: 0x8072;\n readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n readonly MAX_ELEMENTS_INDICES: 0x80E9;\n readonly TEXTURE_MIN_LOD: 0x813A;\n readonly TEXTURE_MAX_LOD: 0x813B;\n readonly TEXTURE_BASE_LEVEL: 0x813C;\n readonly TEXTURE_MAX_LEVEL: 0x813D;\n readonly MIN: 0x8007;\n readonly MAX: 0x8008;\n readonly DEPTH_COMPONENT24: 0x81A6;\n readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n readonly TEXTURE_COMPARE_MODE: 0x884C;\n readonly TEXTURE_COMPARE_FUNC: 0x884D;\n readonly CURRENT_QUERY: 0x8865;\n readonly QUERY_RESULT: 0x8866;\n readonly QUERY_RESULT_AVAILABLE: 0x8867;\n readonly STREAM_READ: 0x88E1;\n readonly STREAM_COPY: 0x88E2;\n readonly STATIC_READ: 0x88E5;\n readonly STATIC_COPY: 0x88E6;\n readonly DYNAMIC_READ: 0x88E9;\n readonly DYNAMIC_COPY: 0x88EA;\n readonly MAX_DRAW_BUFFERS: 0x8824;\n readonly DRAW_BUFFER0: 0x8825;\n readonly DRAW_BUFFER1: 0x8826;\n readonly DRAW_BUFFER2: 0x8827;\n readonly DRAW_BUFFER3: 0x8828;\n readonly DRAW_BUFFER4: 0x8829;\n readonly DRAW_BUFFER5: 0x882A;\n readonly DRAW_BUFFER6: 0x882B;\n readonly DRAW_BUFFER7: 0x882C;\n readonly DRAW_BUFFER8: 0x882D;\n readonly DRAW_BUFFER9: 0x882E;\n readonly DRAW_BUFFER10: 0x882F;\n readonly DRAW_BUFFER11: 0x8830;\n readonly DRAW_BUFFER12: 0x8831;\n readonly DRAW_BUFFER13: 0x8832;\n readonly DRAW_BUFFER14: 0x8833;\n readonly DRAW_BUFFER15: 0x8834;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n readonly SAMPLER_3D: 0x8B5F;\n readonly SAMPLER_2D_SHADOW: 0x8B62;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n readonly PIXEL_PACK_BUFFER: 0x88EB;\n readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n readonly FLOAT_MAT2x3: 0x8B65;\n readonly FLOAT_MAT2x4: 0x8B66;\n readonly FLOAT_MAT3x2: 0x8B67;\n readonly FLOAT_MAT3x4: 0x8B68;\n readonly FLOAT_MAT4x2: 0x8B69;\n readonly FLOAT_MAT4x3: 0x8B6A;\n readonly SRGB: 0x8C40;\n readonly SRGB8: 0x8C41;\n readonly SRGB8_ALPHA8: 0x8C43;\n readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n readonly RGBA32F: 0x8814;\n readonly RGB32F: 0x8815;\n readonly RGBA16F: 0x881A;\n readonly RGB16F: 0x881B;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n readonly TEXTURE_2D_ARRAY: 0x8C1A;\n readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n readonly R11F_G11F_B10F: 0x8C3A;\n readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n readonly RGB9_E5: 0x8C3D;\n readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n readonly RASTERIZER_DISCARD: 0x8C89;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n readonly SEPARATE_ATTRIBS: 0x8C8D;\n readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n readonly RGBA32UI: 0x8D70;\n readonly RGB32UI: 0x8D71;\n readonly RGBA16UI: 0x8D76;\n readonly RGB16UI: 0x8D77;\n readonly RGBA8UI: 0x8D7C;\n readonly RGB8UI: 0x8D7D;\n readonly RGBA32I: 0x8D82;\n readonly RGB32I: 0x8D83;\n readonly RGBA16I: 0x8D88;\n readonly RGB16I: 0x8D89;\n readonly RGBA8I: 0x8D8E;\n readonly RGB8I: 0x8D8F;\n readonly RED_INTEGER: 0x8D94;\n readonly RGB_INTEGER: 0x8D98;\n readonly RGBA_INTEGER: 0x8D99;\n readonly SAMPLER_2D_ARRAY: 0x8DC1;\n readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n readonly UNSIGNED_INT_VEC2: 0x8DC6;\n readonly UNSIGNED_INT_VEC3: 0x8DC7;\n readonly UNSIGNED_INT_VEC4: 0x8DC8;\n readonly INT_SAMPLER_2D: 0x8DCA;\n readonly INT_SAMPLER_3D: 0x8DCB;\n readonly INT_SAMPLER_CUBE: 0x8DCC;\n readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n readonly DEPTH_COMPONENT32F: 0x8CAC;\n readonly DEPTH32F_STENCIL8: 0x8CAD;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n readonly FRAMEBUFFER_DEFAULT: 0x8218;\n readonly UNSIGNED_INT_24_8: 0x84FA;\n readonly DEPTH24_STENCIL8: 0x88F0;\n readonly UNSIGNED_NORMALIZED: 0x8C17;\n readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n readonly READ_FRAMEBUFFER: 0x8CA8;\n readonly DRAW_FRAMEBUFFER: 0x8CA9;\n readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n readonly COLOR_ATTACHMENT1: 0x8CE1;\n readonly COLOR_ATTACHMENT2: 0x8CE2;\n readonly COLOR_ATTACHMENT3: 0x8CE3;\n readonly COLOR_ATTACHMENT4: 0x8CE4;\n readonly COLOR_ATTACHMENT5: 0x8CE5;\n readonly COLOR_ATTACHMENT6: 0x8CE6;\n readonly COLOR_ATTACHMENT7: 0x8CE7;\n readonly COLOR_ATTACHMENT8: 0x8CE8;\n readonly COLOR_ATTACHMENT9: 0x8CE9;\n readonly COLOR_ATTACHMENT10: 0x8CEA;\n readonly COLOR_ATTACHMENT11: 0x8CEB;\n readonly COLOR_ATTACHMENT12: 0x8CEC;\n readonly COLOR_ATTACHMENT13: 0x8CED;\n readonly COLOR_ATTACHMENT14: 0x8CEE;\n readonly COLOR_ATTACHMENT15: 0x8CEF;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n readonly MAX_SAMPLES: 0x8D57;\n readonly HALF_FLOAT: 0x140B;\n readonly RG: 0x8227;\n readonly RG_INTEGER: 0x8228;\n readonly R8: 0x8229;\n readonly RG8: 0x822B;\n readonly R16F: 0x822D;\n readonly R32F: 0x822E;\n readonly RG16F: 0x822F;\n readonly RG32F: 0x8230;\n readonly R8I: 0x8231;\n readonly R8UI: 0x8232;\n readonly R16I: 0x8233;\n readonly R16UI: 0x8234;\n readonly R32I: 0x8235;\n readonly R32UI: 0x8236;\n readonly RG8I: 0x8237;\n readonly RG8UI: 0x8238;\n readonly RG16I: 0x8239;\n readonly RG16UI: 0x823A;\n readonly RG32I: 0x823B;\n readonly RG32UI: 0x823C;\n readonly VERTEX_ARRAY_BINDING: 0x85B5;\n readonly R8_SNORM: 0x8F94;\n readonly RG8_SNORM: 0x8F95;\n readonly RGB8_SNORM: 0x8F96;\n readonly RGBA8_SNORM: 0x8F97;\n readonly SIGNED_NORMALIZED: 0x8F9C;\n readonly COPY_READ_BUFFER: 0x8F36;\n readonly COPY_WRITE_BUFFER: 0x8F37;\n readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n readonly UNIFORM_BUFFER: 0x8A11;\n readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n readonly UNIFORM_BUFFER_START: 0x8A29;\n readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n readonly UNIFORM_TYPE: 0x8A37;\n readonly UNIFORM_SIZE: 0x8A38;\n readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n readonly UNIFORM_OFFSET: 0x8A3B;\n readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n readonly INVALID_INDEX: 0xFFFFFFFF;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n readonly OBJECT_TYPE: 0x9112;\n readonly SYNC_CONDITION: 0x9113;\n readonly SYNC_STATUS: 0x9114;\n readonly SYNC_FLAGS: 0x9115;\n readonly SYNC_FENCE: 0x9116;\n readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n readonly UNSIGNALED: 0x9118;\n readonly SIGNALED: 0x9119;\n readonly ALREADY_SIGNALED: 0x911A;\n readonly TIMEOUT_EXPIRED: 0x911B;\n readonly CONDITION_SATISFIED: 0x911C;\n readonly WAIT_FAILED: 0x911D;\n readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n readonly ANY_SAMPLES_PASSED: 0x8C2F;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n readonly SAMPLER_BINDING: 0x8919;\n readonly RGB10_A2UI: 0x906F;\n readonly INT_2_10_10_10_REV: 0x8D9F;\n readonly TRANSFORM_FEEDBACK: 0x8E22;\n readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n readonly MAX_ELEMENT_INDEX: 0x8D6B;\n readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n readonly TIMEOUT_IGNORED: -1;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGL2RenderingContextBase {\n beginQuery(target: GLenum, query: WebGLQuery): void;\n beginTransformFeedback(primitiveMode: GLenum): void;\n bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;\n bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;\n bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;\n bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;\n bindVertexArray(array: WebGLVertexArrayObject | null): void;\n blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;\n clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;\n clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;\n copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n createQuery(): WebGLQuery | null;\n createSampler(): WebGLSampler | null;\n createTransformFeedback(): WebGLTransformFeedback | null;\n createVertexArray(): WebGLVertexArrayObject | null;\n deleteQuery(query: WebGLQuery | null): void;\n deleteSampler(sampler: WebGLSampler | null): void;\n deleteSync(sync: WebGLSync | null): void;\n deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;\n deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;\n drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;\n drawBuffers(buffers: GLenum[]): void;\n drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;\n drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;\n endQuery(target: GLenum): void;\n endTransformFeedback(): void;\n fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;\n framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;\n getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;\n getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;\n getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;\n getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;\n getFragDataLocation(program: WebGLProgram, name: string): GLint;\n getIndexedParameter(target: GLenum, index: GLuint): any;\n getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;\n getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;\n getQueryParameter(query: WebGLQuery, pname: GLenum): any;\n getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;\n getSyncParameter(sync: WebGLSync, pname: GLenum): any;\n getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;\n getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;\n invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;\n invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n isQuery(query: WebGLQuery | null): GLboolean;\n isSampler(sampler: WebGLSampler | null): GLboolean;\n isSync(sync: WebGLSync | null): GLboolean;\n isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;\n isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;\n pauseTransformFeedback(): void;\n readBuffer(src: GLenum): void;\n renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n resumeTransformFeedback(): void;\n samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;\n samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;\n transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;\n uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;\n uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;\n uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;\n uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;\n uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n vertexAttribDivisor(index: GLuint, divisor: GLuint): void;\n vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;\n vertexAttribI4iv(index: GLuint, values: Int32List): void;\n vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;\n vertexAttribI4uiv(index: GLuint, values: Uint32List): void;\n vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;\n waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;\n readonly READ_BUFFER: 0x0C02;\n readonly UNPACK_ROW_LENGTH: 0x0CF2;\n readonly UNPACK_SKIP_ROWS: 0x0CF3;\n readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n readonly PACK_ROW_LENGTH: 0x0D02;\n readonly PACK_SKIP_ROWS: 0x0D03;\n readonly PACK_SKIP_PIXELS: 0x0D04;\n readonly COLOR: 0x1800;\n readonly DEPTH: 0x1801;\n readonly STENCIL: 0x1802;\n readonly RED: 0x1903;\n readonly RGB8: 0x8051;\n readonly RGBA8: 0x8058;\n readonly RGB10_A2: 0x8059;\n readonly TEXTURE_BINDING_3D: 0x806A;\n readonly UNPACK_SKIP_IMAGES: 0x806D;\n readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n readonly TEXTURE_3D: 0x806F;\n readonly TEXTURE_WRAP_R: 0x8072;\n readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n readonly MAX_ELEMENTS_INDICES: 0x80E9;\n readonly TEXTURE_MIN_LOD: 0x813A;\n readonly TEXTURE_MAX_LOD: 0x813B;\n readonly TEXTURE_BASE_LEVEL: 0x813C;\n readonly TEXTURE_MAX_LEVEL: 0x813D;\n readonly MIN: 0x8007;\n readonly MAX: 0x8008;\n readonly DEPTH_COMPONENT24: 0x81A6;\n readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n readonly TEXTURE_COMPARE_MODE: 0x884C;\n readonly TEXTURE_COMPARE_FUNC: 0x884D;\n readonly CURRENT_QUERY: 0x8865;\n readonly QUERY_RESULT: 0x8866;\n readonly QUERY_RESULT_AVAILABLE: 0x8867;\n readonly STREAM_READ: 0x88E1;\n readonly STREAM_COPY: 0x88E2;\n readonly STATIC_READ: 0x88E5;\n readonly STATIC_COPY: 0x88E6;\n readonly DYNAMIC_READ: 0x88E9;\n readonly DYNAMIC_COPY: 0x88EA;\n readonly MAX_DRAW_BUFFERS: 0x8824;\n readonly DRAW_BUFFER0: 0x8825;\n readonly DRAW_BUFFER1: 0x8826;\n readonly DRAW_BUFFER2: 0x8827;\n readonly DRAW_BUFFER3: 0x8828;\n readonly DRAW_BUFFER4: 0x8829;\n readonly DRAW_BUFFER5: 0x882A;\n readonly DRAW_BUFFER6: 0x882B;\n readonly DRAW_BUFFER7: 0x882C;\n readonly DRAW_BUFFER8: 0x882D;\n readonly DRAW_BUFFER9: 0x882E;\n readonly DRAW_BUFFER10: 0x882F;\n readonly DRAW_BUFFER11: 0x8830;\n readonly DRAW_BUFFER12: 0x8831;\n readonly DRAW_BUFFER13: 0x8832;\n readonly DRAW_BUFFER14: 0x8833;\n readonly DRAW_BUFFER15: 0x8834;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n readonly SAMPLER_3D: 0x8B5F;\n readonly SAMPLER_2D_SHADOW: 0x8B62;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n readonly PIXEL_PACK_BUFFER: 0x88EB;\n readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n readonly FLOAT_MAT2x3: 0x8B65;\n readonly FLOAT_MAT2x4: 0x8B66;\n readonly FLOAT_MAT3x2: 0x8B67;\n readonly FLOAT_MAT3x4: 0x8B68;\n readonly FLOAT_MAT4x2: 0x8B69;\n readonly FLOAT_MAT4x3: 0x8B6A;\n readonly SRGB: 0x8C40;\n readonly SRGB8: 0x8C41;\n readonly SRGB8_ALPHA8: 0x8C43;\n readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n readonly RGBA32F: 0x8814;\n readonly RGB32F: 0x8815;\n readonly RGBA16F: 0x881A;\n readonly RGB16F: 0x881B;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n readonly TEXTURE_2D_ARRAY: 0x8C1A;\n readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n readonly R11F_G11F_B10F: 0x8C3A;\n readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n readonly RGB9_E5: 0x8C3D;\n readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n readonly RASTERIZER_DISCARD: 0x8C89;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n readonly SEPARATE_ATTRIBS: 0x8C8D;\n readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n readonly RGBA32UI: 0x8D70;\n readonly RGB32UI: 0x8D71;\n readonly RGBA16UI: 0x8D76;\n readonly RGB16UI: 0x8D77;\n readonly RGBA8UI: 0x8D7C;\n readonly RGB8UI: 0x8D7D;\n readonly RGBA32I: 0x8D82;\n readonly RGB32I: 0x8D83;\n readonly RGBA16I: 0x8D88;\n readonly RGB16I: 0x8D89;\n readonly RGBA8I: 0x8D8E;\n readonly RGB8I: 0x8D8F;\n readonly RED_INTEGER: 0x8D94;\n readonly RGB_INTEGER: 0x8D98;\n readonly RGBA_INTEGER: 0x8D99;\n readonly SAMPLER_2D_ARRAY: 0x8DC1;\n readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n readonly UNSIGNED_INT_VEC2: 0x8DC6;\n readonly UNSIGNED_INT_VEC3: 0x8DC7;\n readonly UNSIGNED_INT_VEC4: 0x8DC8;\n readonly INT_SAMPLER_2D: 0x8DCA;\n readonly INT_SAMPLER_3D: 0x8DCB;\n readonly INT_SAMPLER_CUBE: 0x8DCC;\n readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n readonly DEPTH_COMPONENT32F: 0x8CAC;\n readonly DEPTH32F_STENCIL8: 0x8CAD;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n readonly FRAMEBUFFER_DEFAULT: 0x8218;\n readonly UNSIGNED_INT_24_8: 0x84FA;\n readonly DEPTH24_STENCIL8: 0x88F0;\n readonly UNSIGNED_NORMALIZED: 0x8C17;\n readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n readonly READ_FRAMEBUFFER: 0x8CA8;\n readonly DRAW_FRAMEBUFFER: 0x8CA9;\n readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n readonly COLOR_ATTACHMENT1: 0x8CE1;\n readonly COLOR_ATTACHMENT2: 0x8CE2;\n readonly COLOR_ATTACHMENT3: 0x8CE3;\n readonly COLOR_ATTACHMENT4: 0x8CE4;\n readonly COLOR_ATTACHMENT5: 0x8CE5;\n readonly COLOR_ATTACHMENT6: 0x8CE6;\n readonly COLOR_ATTACHMENT7: 0x8CE7;\n readonly COLOR_ATTACHMENT8: 0x8CE8;\n readonly COLOR_ATTACHMENT9: 0x8CE9;\n readonly COLOR_ATTACHMENT10: 0x8CEA;\n readonly COLOR_ATTACHMENT11: 0x8CEB;\n readonly COLOR_ATTACHMENT12: 0x8CEC;\n readonly COLOR_ATTACHMENT13: 0x8CED;\n readonly COLOR_ATTACHMENT14: 0x8CEE;\n readonly COLOR_ATTACHMENT15: 0x8CEF;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n readonly MAX_SAMPLES: 0x8D57;\n readonly HALF_FLOAT: 0x140B;\n readonly RG: 0x8227;\n readonly RG_INTEGER: 0x8228;\n readonly R8: 0x8229;\n readonly RG8: 0x822B;\n readonly R16F: 0x822D;\n readonly R32F: 0x822E;\n readonly RG16F: 0x822F;\n readonly RG32F: 0x8230;\n readonly R8I: 0x8231;\n readonly R8UI: 0x8232;\n readonly R16I: 0x8233;\n readonly R16UI: 0x8234;\n readonly R32I: 0x8235;\n readonly R32UI: 0x8236;\n readonly RG8I: 0x8237;\n readonly RG8UI: 0x8238;\n readonly RG16I: 0x8239;\n readonly RG16UI: 0x823A;\n readonly RG32I: 0x823B;\n readonly RG32UI: 0x823C;\n readonly VERTEX_ARRAY_BINDING: 0x85B5;\n readonly R8_SNORM: 0x8F94;\n readonly RG8_SNORM: 0x8F95;\n readonly RGB8_SNORM: 0x8F96;\n readonly RGBA8_SNORM: 0x8F97;\n readonly SIGNED_NORMALIZED: 0x8F9C;\n readonly COPY_READ_BUFFER: 0x8F36;\n readonly COPY_WRITE_BUFFER: 0x8F37;\n readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n readonly UNIFORM_BUFFER: 0x8A11;\n readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n readonly UNIFORM_BUFFER_START: 0x8A29;\n readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n readonly UNIFORM_TYPE: 0x8A37;\n readonly UNIFORM_SIZE: 0x8A38;\n readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n readonly UNIFORM_OFFSET: 0x8A3B;\n readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n readonly INVALID_INDEX: 0xFFFFFFFF;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n readonly OBJECT_TYPE: 0x9112;\n readonly SYNC_CONDITION: 0x9113;\n readonly SYNC_STATUS: 0x9114;\n readonly SYNC_FLAGS: 0x9115;\n readonly SYNC_FENCE: 0x9116;\n readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n readonly UNSIGNALED: 0x9118;\n readonly SIGNALED: 0x9119;\n readonly ALREADY_SIGNALED: 0x911A;\n readonly TIMEOUT_EXPIRED: 0x911B;\n readonly CONDITION_SATISFIED: 0x911C;\n readonly WAIT_FAILED: 0x911D;\n readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n readonly ANY_SAMPLES_PASSED: 0x8C2F;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n readonly SAMPLER_BINDING: 0x8919;\n readonly RGB10_A2UI: 0x906F;\n readonly INT_2_10_10_10_REV: 0x8D9F;\n readonly TRANSFORM_FEEDBACK: 0x8E22;\n readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n readonly MAX_ELEMENT_INDEX: 0x8D6B;\n readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n readonly TIMEOUT_IGNORED: -1;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n}\n\ninterface WebGL2RenderingContextOverloads {\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;\n bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;\n uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */\ninterface WebGLActiveInfo {\n readonly name: string;\n readonly size: GLint;\n readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n prototype: WebGLActiveInfo;\n new(): WebGLActiveInfo;\n};\n\n/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */\ninterface WebGLBuffer {\n}\n\ndeclare var WebGLBuffer: {\n prototype: WebGLBuffer;\n new(): WebGLBuffer;\n};\n\n/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */\ninterface WebGLContextEvent extends Event {\n readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n prototype: WebGLContextEvent;\n new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\n/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */\ninterface WebGLFramebuffer {\n}\n\ndeclare var WebGLFramebuffer: {\n prototype: WebGLFramebuffer;\n new(): WebGLFramebuffer;\n};\n\n/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */\ninterface WebGLProgram {\n}\n\ndeclare var WebGLProgram: {\n prototype: WebGLProgram;\n new(): WebGLProgram;\n};\n\ninterface WebGLQuery {\n}\n\ndeclare var WebGLQuery: {\n prototype: WebGLQuery;\n new(): WebGLQuery;\n};\n\n/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */\ninterface WebGLRenderbuffer {\n}\n\ndeclare var WebGLRenderbuffer: {\n prototype: WebGLRenderbuffer;\n new(): WebGLRenderbuffer;\n};\n\n/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */\ninterface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {\n}\n\ndeclare var WebGLRenderingContext: {\n prototype: WebGLRenderingContext;\n new(): WebGLRenderingContext;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGLRenderingContextBase {\n readonly drawingBufferHeight: GLsizei;\n readonly drawingBufferWidth: GLsizei;\n activeTexture(texture: GLenum): void;\n attachShader(program: WebGLProgram, shader: WebGLShader): void;\n bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;\n bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;\n bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;\n bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n bindTexture(target: GLenum, texture: WebGLTexture | null): void;\n blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n blendEquation(mode: GLenum): void;\n blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;\n blendFunc(sfactor: GLenum, dfactor: GLenum): void;\n blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n checkFramebufferStatus(target: GLenum): GLenum;\n clear(mask: GLbitfield): void;\n clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n clearDepth(depth: GLclampf): void;\n clearStencil(s: GLint): void;\n colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;\n compileShader(shader: WebGLShader): void;\n copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;\n copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n createBuffer(): WebGLBuffer | null;\n createFramebuffer(): WebGLFramebuffer | null;\n createProgram(): WebGLProgram | null;\n createRenderbuffer(): WebGLRenderbuffer | null;\n createShader(type: GLenum): WebGLShader | null;\n createTexture(): WebGLTexture | null;\n cullFace(mode: GLenum): void;\n deleteBuffer(buffer: WebGLBuffer | null): void;\n deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;\n deleteProgram(program: WebGLProgram | null): void;\n deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;\n deleteShader(shader: WebGLShader | null): void;\n deleteTexture(texture: WebGLTexture | null): void;\n depthFunc(func: GLenum): void;\n depthMask(flag: GLboolean): void;\n depthRange(zNear: GLclampf, zFar: GLclampf): void;\n detachShader(program: WebGLProgram, shader: WebGLShader): void;\n disable(cap: GLenum): void;\n disableVertexAttribArray(index: GLuint): void;\n drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;\n drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;\n enable(cap: GLenum): void;\n enableVertexAttribArray(index: GLuint): void;\n finish(): void;\n flush(): void;\n framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;\n frontFace(mode: GLenum): void;\n generateMipmap(target: GLenum): void;\n getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;\n getAttribLocation(program: WebGLProgram, name: string): GLint;\n getBufferParameter(target: GLenum, pname: GLenum): any;\n getContextAttributes(): WebGLContextAttributes | null;\n getError(): GLenum;\n getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;\n getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;\n getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;\n getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;\n getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;\n getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;\n getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;\n getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;\n getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;\n getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;\n getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;\n getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;\n getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;\n getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;\n getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;\n getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;\n getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;\n getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;\n getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;\n getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;\n getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;\n getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;\n getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;\n getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;\n getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;\n getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;\n getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;\n getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;\n getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;\n getExtension(name: string): any;\n getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;\n getParameter(pname: GLenum): any;\n getProgramInfoLog(program: WebGLProgram): string | null;\n getProgramParameter(program: WebGLProgram, pname: GLenum): any;\n getRenderbufferParameter(target: GLenum, pname: GLenum): any;\n getShaderInfoLog(shader: WebGLShader): string | null;\n getShaderParameter(shader: WebGLShader, pname: GLenum): any;\n getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;\n getShaderSource(shader: WebGLShader): string | null;\n getSupportedExtensions(): string[] | null;\n getTexParameter(target: GLenum, pname: GLenum): any;\n getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;\n getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;\n getVertexAttrib(index: GLuint, pname: GLenum): any;\n getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;\n hint(target: GLenum, mode: GLenum): void;\n isBuffer(buffer: WebGLBuffer | null): GLboolean;\n isContextLost(): boolean;\n isEnabled(cap: GLenum): GLboolean;\n isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;\n isProgram(program: WebGLProgram | null): GLboolean;\n isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;\n isShader(shader: WebGLShader | null): GLboolean;\n isTexture(texture: WebGLTexture | null): GLboolean;\n lineWidth(width: GLfloat): void;\n linkProgram(program: WebGLProgram): void;\n pixelStorei(pname: GLenum, param: GLint | GLboolean): void;\n polygonOffset(factor: GLfloat, units: GLfloat): void;\n renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n sampleCoverage(value: GLclampf, invert: GLboolean): void;\n scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n shaderSource(shader: WebGLShader, source: string): void;\n stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;\n stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;\n stencilMask(mask: GLuint): void;\n stencilMaskSeparate(face: GLenum, mask: GLuint): void;\n stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;\n useProgram(program: WebGLProgram | null): void;\n validateProgram(program: WebGLProgram): void;\n vertexAttrib1f(index: GLuint, x: GLfloat): void;\n vertexAttrib1fv(index: GLuint, values: Float32List): void;\n vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;\n vertexAttrib2fv(index: GLuint, values: Float32List): void;\n vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;\n vertexAttrib3fv(index: GLuint, values: Float32List): void;\n vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n vertexAttrib4fv(index: GLuint, values: Float32List): void;\n vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;\n viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n}\n\ninterface WebGLRenderingContextOverloads {\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;\n bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;\n uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n}\n\ninterface WebGLSampler {\n}\n\ndeclare var WebGLSampler: {\n prototype: WebGLSampler;\n new(): WebGLSampler;\n};\n\n/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */\ninterface WebGLShader {\n}\n\ndeclare var WebGLShader: {\n prototype: WebGLShader;\n new(): WebGLShader;\n};\n\n/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */\ninterface WebGLShaderPrecisionFormat {\n readonly precision: GLint;\n readonly rangeMax: GLint;\n readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n prototype: WebGLShaderPrecisionFormat;\n new(): WebGLShaderPrecisionFormat;\n};\n\ninterface WebGLSync {\n}\n\ndeclare var WebGLSync: {\n prototype: WebGLSync;\n new(): WebGLSync;\n};\n\n/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */\ninterface WebGLTexture {\n}\n\ndeclare var WebGLTexture: {\n prototype: WebGLTexture;\n new(): WebGLTexture;\n};\n\ninterface WebGLTransformFeedback {\n}\n\ndeclare var WebGLTransformFeedback: {\n prototype: WebGLTransformFeedback;\n new(): WebGLTransformFeedback;\n};\n\n/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n prototype: WebGLUniformLocation;\n new(): WebGLUniformLocation;\n};\n\ninterface WebGLVertexArrayObject {\n}\n\ndeclare var WebGLVertexArrayObject: {\n prototype: WebGLVertexArrayObject;\n new(): WebGLVertexArrayObject;\n};\n\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebSocketEventMap {\n "close": CloseEvent;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */\ninterface WebSocket extends EventTarget {\n /**\n * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:\n *\n * Can be set, to change how binary data is returned. The default is "blob".\n */\n binaryType: BinaryType;\n /**\n * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.\n *\n * If the WebSocket connection is closed, this attribute\'s value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)\n */\n readonly bufferedAmount: number;\n /** Returns the extensions selected by the server, if any. */\n readonly extensions: string;\n onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;\n onerror: ((this: WebSocket, ev: Event) => any) | null;\n onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;\n onopen: ((this: WebSocket, ev: Event) => any) | null;\n /** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor\'s second argument to perform subprotocol negotiation. */\n readonly protocol: string;\n /** Returns the state of the WebSocket object\'s connection. It can have the values described below. */\n readonly readyState: number;\n /** Returns the URL that was used to establish the WebSocket connection. */\n readonly url: string;\n /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */\n close(code?: number, reason?: string): void;\n /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */\n send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSING: 2;\n readonly CLOSED: 3;\n addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WebSocket: {\n prototype: WebSocket;\n new(url: string | URL, protocols?: string | string[]): WebSocket;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSING: 2;\n readonly CLOSED: 3;\n};\n\n/** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */\ninterface WindowClient extends Client {\n readonly focused: boolean;\n readonly visibilityState: DocumentVisibilityState;\n focus(): Promise<WindowClient>;\n navigate(url: string | URL): Promise<WindowClient | null>;\n}\n\ndeclare var WindowClient: {\n prototype: WindowClient;\n new(): WindowClient;\n};\n\ninterface WindowOrWorkerGlobalScope {\n /** Available only in secure contexts. */\n readonly caches: CacheStorage;\n readonly crossOriginIsolated: boolean;\n readonly crypto: Crypto;\n readonly indexedDB: IDBFactory;\n readonly isSecureContext: boolean;\n readonly origin: string;\n readonly performance: Performance;\n atob(data: string): string;\n btoa(data: string): string;\n clearInterval(id: number | undefined): void;\n clearTimeout(id: number | undefined): void;\n createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n queueMicrotask(callback: VoidFunction): void;\n reportError(e: any): void;\n setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n structuredClone(value: any, options?: StructuredSerializeOptions): any;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */\ninterface Worker extends EventTarget, AbstractWorker {\n onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;\n /** Clones message and transmits it to worker\'s global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /** Aborts worker\'s associated global environment. */\n terminate(): void;\n addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Worker: {\n prototype: Worker;\n new(scriptURL: string | URL, options?: WorkerOptions): Worker;\n};\n\ninterface WorkerGlobalScopeEventMap {\n "error": ErrorEvent;\n "languagechange": Event;\n "offline": Event;\n "online": Event;\n "rejectionhandled": PromiseRejectionEvent;\n "unhandledrejection": PromiseRejectionEvent;\n}\n\n/** This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects \u2014 in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */\ninterface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {\n /** Returns workerGlobal\'s WorkerLocation object. */\n readonly location: WorkerLocation;\n /** Returns workerGlobal\'s WorkerNavigator object. */\n readonly navigator: WorkerNavigator;\n onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;\n onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n /** Returns workerGlobal. */\n readonly self: WorkerGlobalScope & typeof globalThis;\n /** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */\n importScripts(...urls: (string | URL)[]): void;\n addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WorkerGlobalScope: {\n prototype: WorkerGlobalScope;\n new(): WorkerGlobalScope;\n};\n\n/** The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location. */\ninterface WorkerLocation {\n readonly hash: string;\n readonly host: string;\n readonly hostname: string;\n readonly href: string;\n toString(): string;\n readonly origin: string;\n readonly pathname: string;\n readonly port: string;\n readonly protocol: string;\n readonly search: string;\n}\n\ndeclare var WorkerLocation: {\n prototype: WorkerLocation;\n new(): WorkerLocation;\n};\n\n/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */\ninterface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {\n readonly mediaCapabilities: MediaCapabilities;\n}\n\ndeclare var WorkerNavigator: {\n prototype: WorkerNavigator;\n new(): WorkerNavigator;\n};\n\n/** This Streams API interface provides\xa0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */\ninterface WritableStream<W = any> {\n readonly locked: boolean;\n abort(reason?: any): Promise<void>;\n close(): Promise<void>;\n getWriter(): WritableStreamDefaultWriter<W>;\n}\n\ndeclare var WritableStream: {\n prototype: WritableStream;\n new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;\n};\n\n/** This Streams API interface represents a controller allowing control of a\xa0WritableStream\'s state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */\ninterface WritableStreamDefaultController {\n readonly signal: AbortSignal;\n error(e?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n prototype: WritableStreamDefaultController;\n new(): WritableStreamDefaultController;\n};\n\n/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */\ninterface WritableStreamDefaultWriter<W = any> {\n readonly closed: Promise<undefined>;\n readonly desiredSize: number | null;\n readonly ready: Promise<undefined>;\n abort(reason?: any): Promise<void>;\n close(): Promise<void>;\n releaseLock(): void;\n write(chunk?: W): Promise<void>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n prototype: WritableStreamDefaultWriter;\n new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;\n};\n\ninterface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {\n "readystatechange": Event;\n}\n\n/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */\ninterface XMLHttpRequest extends XMLHttpRequestEventTarget {\n onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n /** Returns client\'s state. */\n readonly readyState: number;\n /** Returns the response body. */\n readonly response: any;\n /**\n * Returns response as text.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".\n */\n readonly responseText: string;\n /**\n * Returns the response type.\n *\n * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".\n *\n * When set: setting to "document" is ignored if current global object is not a Window object.\n *\n * When set: throws an "InvalidStateError" DOMException if state is loading or done.\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n */\n responseType: XMLHttpRequestResponseType;\n readonly responseURL: string;\n readonly status: number;\n readonly statusText: string;\n /**\n * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this\'s synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n */\n timeout: number;\n /** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */\n readonly upload: XMLHttpRequestUpload;\n /**\n * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.\n *\n * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.\n */\n withCredentials: boolean;\n /** Cancels any network activity. */\n abort(): void;\n getAllResponseHeaders(): string;\n getResponseHeader(name: string): string | null;\n /**\n * Sets the request method, request URL, and synchronous flag.\n *\n * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.\n *\n * Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.\n *\n * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.\n */\n open(method: string, url: string | URL): void;\n open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;\n /**\n * Acts as if the `Content-Type` header value for a response is mime. (It does not change the header.)\n *\n * Throws an "InvalidStateError" DOMException if state is loading or done.\n */\n overrideMimeType(mime: string): void;\n /**\n * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n */\n send(body?: XMLHttpRequestBodyInit | null): void;\n /**\n * Combines a header in author request headers.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n *\n * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.\n */\n setRequestHeader(name: string, value: string): void;\n readonly UNSENT: 0;\n readonly OPENED: 1;\n readonly HEADERS_RECEIVED: 2;\n readonly LOADING: 3;\n readonly DONE: 4;\n addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequest: {\n prototype: XMLHttpRequest;\n new(): XMLHttpRequest;\n readonly UNSENT: 0;\n readonly OPENED: 1;\n readonly HEADERS_RECEIVED: 2;\n readonly LOADING: 3;\n readonly DONE: 4;\n};\n\ninterface XMLHttpRequestEventTargetEventMap {\n "abort": ProgressEvent<XMLHttpRequestEventTarget>;\n "error": ProgressEvent<XMLHttpRequestEventTarget>;\n "load": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadend": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;\n "progress": ProgressEvent<XMLHttpRequestEventTarget>;\n "timeout": ProgressEvent<XMLHttpRequestEventTarget>;\n}\n\ninterface XMLHttpRequestEventTarget extends EventTarget {\n onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestEventTarget: {\n prototype: XMLHttpRequestEventTarget;\n new(): XMLHttpRequestEventTarget;\n};\n\ninterface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestUpload: {\n prototype: XMLHttpRequestUpload;\n new(): XMLHttpRequestUpload;\n};\n\ninterface Console {\n assert(condition?: boolean, ...data: any[]): void;\n clear(): void;\n count(label?: string): void;\n countReset(label?: string): void;\n debug(...data: any[]): void;\n dir(item?: any, options?: any): void;\n dirxml(...data: any[]): void;\n error(...data: any[]): void;\n group(...data: any[]): void;\n groupCollapsed(...data: any[]): void;\n groupEnd(): void;\n info(...data: any[]): void;\n log(...data: any[]): void;\n table(tabularData?: any, properties?: string[]): void;\n time(label?: string): void;\n timeEnd(label?: string): void;\n timeLog(label?: string, ...data: any[]): void;\n timeStamp(label?: string): void;\n trace(...data: any[]): void;\n warn(...data: any[]): void;\n}\n\ndeclare var console: Console;\n\ndeclare namespace WebAssembly {\n interface CompileError extends Error {\n }\n\n var CompileError: {\n prototype: CompileError;\n new(message?: string): CompileError;\n (message?: string): CompileError;\n };\n\n interface Global {\n value: any;\n valueOf(): any;\n }\n\n var Global: {\n prototype: Global;\n new(descriptor: GlobalDescriptor, v?: any): Global;\n };\n\n interface Instance {\n readonly exports: Exports;\n }\n\n var Instance: {\n prototype: Instance;\n new(module: Module, importObject?: Imports): Instance;\n };\n\n interface LinkError extends Error {\n }\n\n var LinkError: {\n prototype: LinkError;\n new(message?: string): LinkError;\n (message?: string): LinkError;\n };\n\n interface Memory {\n readonly buffer: ArrayBuffer;\n grow(delta: number): number;\n }\n\n var Memory: {\n prototype: Memory;\n new(descriptor: MemoryDescriptor): Memory;\n };\n\n interface Module {\n }\n\n var Module: {\n prototype: Module;\n new(bytes: BufferSource): Module;\n customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];\n exports(moduleObject: Module): ModuleExportDescriptor[];\n imports(moduleObject: Module): ModuleImportDescriptor[];\n };\n\n interface RuntimeError extends Error {\n }\n\n var RuntimeError: {\n prototype: RuntimeError;\n new(message?: string): RuntimeError;\n (message?: string): RuntimeError;\n };\n\n interface Table {\n readonly length: number;\n get(index: number): any;\n grow(delta: number, value?: any): number;\n set(index: number, value?: any): void;\n }\n\n var Table: {\n prototype: Table;\n new(descriptor: TableDescriptor, value?: any): Table;\n };\n\n interface GlobalDescriptor {\n mutable?: boolean;\n value: ValueType;\n }\n\n interface MemoryDescriptor {\n initial: number;\n maximum?: number;\n shared?: boolean;\n }\n\n interface ModuleExportDescriptor {\n kind: ImportExportKind;\n name: string;\n }\n\n interface ModuleImportDescriptor {\n kind: ImportExportKind;\n module: string;\n name: string;\n }\n\n interface TableDescriptor {\n element: TableKind;\n initial: number;\n maximum?: number;\n }\n\n interface WebAssemblyInstantiatedSource {\n instance: Instance;\n module: Module;\n }\n\n type ImportExportKind = "function" | "global" | "memory" | "table";\n type TableKind = "anyfunc" | "externref";\n type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";\n type ExportValue = Function | Global | Memory | Table;\n type Exports = Record<string, ExportValue>;\n type ImportValue = ExportValue | number;\n type Imports = Record<string, ModuleImports>;\n type ModuleImports = Record<string, ImportValue>;\n function compile(bytes: BufferSource): Promise<Module>;\n function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;\n function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;\n function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function validate(bytes: BufferSource): boolean;\n}\n\ninterface FrameRequestCallback {\n (time: DOMHighResTimeStamp): void;\n}\n\ninterface LockGrantedCallback {\n (lock: Lock | null): any;\n}\n\ninterface OnErrorEventHandlerNonNull {\n (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;\n}\n\ninterface PerformanceObserverCallback {\n (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;\n}\n\ninterface QueuingStrategySize<T = any> {\n (chunk: T): number;\n}\n\ninterface TransformerFlushCallback<O> {\n (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface TransformerStartCallback<O> {\n (controller: TransformStreamDefaultController<O>): any;\n}\n\ninterface TransformerTransformCallback<I, O> {\n (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkAbortCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkCloseCallback {\n (): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkStartCallback {\n (controller: WritableStreamDefaultController): any;\n}\n\ninterface UnderlyingSinkWriteCallback<W> {\n (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceCancelCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourcePullCallback<R> {\n (controller: ReadableStreamController<R>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceStartCallback<R> {\n (controller: ReadableStreamController<R>): any;\n}\n\ninterface VoidFunction {\n (): void;\n}\n\n/** Returns dedicatedWorkerGlobal\'s name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */\ndeclare var name: string;\ndeclare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\ndeclare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n/** Aborts dedicatedWorkerGlobal. */\ndeclare function close(): void;\n/** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */\ndeclare function postMessage(message: any, transfer: Transferable[]): void;\ndeclare function postMessage(message: any, options?: StructuredSerializeOptions): void;\n/** Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */\ndeclare function dispatchEvent(event: Event): boolean;\n/** Returns workerGlobal\'s WorkerLocation object. */\ndeclare var location: WorkerLocation;\n/** Returns workerGlobal\'s WorkerNavigator object. */\ndeclare var navigator: WorkerNavigator;\ndeclare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;\ndeclare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\ndeclare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\ndeclare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\ndeclare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n/** Returns workerGlobal. */\ndeclare var self: WorkerGlobalScope & typeof globalThis;\n/** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */\ndeclare function importScripts(...urls: (string | URL)[]): void;\n/** Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */\ndeclare function dispatchEvent(event: Event): boolean;\ndeclare var fonts: FontFaceSet;\n/** Available only in secure contexts. */\ndeclare var caches: CacheStorage;\ndeclare var crossOriginIsolated: boolean;\ndeclare var crypto: Crypto;\ndeclare var indexedDB: IDBFactory;\ndeclare var isSecureContext: boolean;\ndeclare var origin: string;\ndeclare var performance: Performance;\ndeclare function atob(data: string): string;\ndeclare function btoa(data: string): string;\ndeclare function clearInterval(id: number | undefined): void;\ndeclare function clearTimeout(id: number | undefined): void;\ndeclare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\ndeclare function queueMicrotask(callback: VoidFunction): void;\ndeclare function reportError(e: any): void;\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function structuredClone(value: any, options?: StructuredSerializeOptions): any;\ndeclare function cancelAnimationFrame(handle: number): void;\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\ndeclare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\ndeclare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\ndeclare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\ndeclare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\ntype AlgorithmIdentifier = Algorithm | string;\ntype BigInteger = Uint8Array;\ntype BinaryData = ArrayBuffer | ArrayBufferView;\ntype BlobPart = BufferSource | Blob | string;\ntype BodyInit = ReadableStream | XMLHttpRequestBodyInit;\ntype BufferSource = ArrayBufferView | ArrayBuffer;\ntype CanvasImageSource = ImageBitmap | OffscreenCanvas;\ntype DOMHighResTimeStamp = number;\ntype EpochTimeStamp = number;\ntype EventListenerOrEventListenerObject = EventListener | EventListenerObject;\ntype Float32List = Float32Array | GLfloat[];\ntype FormDataEntryValue = File | string;\ntype GLbitfield = number;\ntype GLboolean = boolean;\ntype GLclampf = number;\ntype GLenum = number;\ntype GLfloat = number;\ntype GLint = number;\ntype GLint64 = number;\ntype GLintptr = number;\ntype GLsizei = number;\ntype GLsizeiptr = number;\ntype GLuint = number;\ntype GLuint64 = number;\ntype HashAlgorithmIdentifier = AlgorithmIdentifier;\ntype HeadersInit = [string, string][] | Record<string, string> | Headers;\ntype IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];\ntype ImageBitmapSource = CanvasImageSource | Blob | ImageData;\ntype Int32List = Int32Array | GLint[];\ntype MessageEventSource = MessagePort | ServiceWorker;\ntype NamedCurve = string;\ntype OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype OnErrorEventHandler = OnErrorEventHandlerNonNull | null;\ntype PerformanceEntryList = PerformanceEntry[];\ntype PushMessageDataInit = BufferSource | string;\ntype ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;\ntype ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;\ntype ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;\ntype RequestInfo = Request | string;\ntype TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;\ntype TimerHandler = string | Function;\ntype Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;\ntype Uint32List = Uint32Array | GLuint[];\ntype VibratePattern = number | number[];\ntype XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;\ntype BinaryType = "arraybuffer" | "blob";\ntype CanvasDirection = "inherit" | "ltr" | "rtl";\ntype CanvasFillRule = "evenodd" | "nonzero";\ntype CanvasFontKerning = "auto" | "none" | "normal";\ntype CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";\ntype CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";\ntype CanvasLineCap = "butt" | "round" | "square";\ntype CanvasLineJoin = "bevel" | "miter" | "round";\ntype CanvasTextAlign = "center" | "end" | "left" | "right" | "start";\ntype CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";\ntype CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";\ntype ClientTypes = "all" | "sharedworker" | "window" | "worker";\ntype ColorGamut = "p3" | "rec2020" | "srgb";\ntype ColorSpaceConversion = "default" | "none";\ntype DocumentVisibilityState = "hidden" | "visible";\ntype EndingType = "native" | "transparent";\ntype FileSystemHandleKind = "directory" | "file";\ntype FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";\ntype FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";\ntype FontFaceSetLoadStatus = "loaded" | "loading";\ntype FrameType = "auxiliary" | "nested" | "none" | "top-level";\ntype GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";\ntype HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";\ntype IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";\ntype IDBRequestReadyState = "done" | "pending";\ntype IDBTransactionDurability = "default" | "relaxed" | "strict";\ntype IDBTransactionMode = "readonly" | "readwrite" | "versionchange";\ntype ImageOrientation = "flipY" | "from-image";\ntype ImageSmoothingQuality = "high" | "low" | "medium";\ntype KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";\ntype KeyType = "private" | "public" | "secret";\ntype KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";\ntype LockMode = "exclusive" | "shared";\ntype MediaDecodingType = "file" | "media-source" | "webrtc";\ntype MediaEncodingType = "record" | "webrtc";\ntype NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";\ntype PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";\ntype PermissionState = "denied" | "granted" | "prompt";\ntype PredefinedColorSpace = "display-p3" | "srgb";\ntype PremultiplyAlpha = "default" | "none" | "premultiply";\ntype PushEncryptionKeyName = "auth" | "p256dh";\ntype RTCEncodedVideoFrameType = "delta" | "empty" | "key";\ntype ReadableStreamReaderMode = "byob";\ntype ReadableStreamType = "bytes";\ntype ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";\ntype RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";\ntype RequestCredentials = "include" | "omit" | "same-origin";\ntype RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";\ntype RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";\ntype RequestRedirect = "error" | "follow" | "manual";\ntype ResizeQuality = "high" | "low" | "medium" | "pixelated";\ntype ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";\ntype SecurityPolicyViolationEventDisposition = "enforce" | "report";\ntype ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";\ntype ServiceWorkerUpdateViaCache = "all" | "imports" | "none";\ntype TransferFunction = "hlg" | "pq" | "srgb";\ntype VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";\ntype VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";\ntype VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";\ntype WebGLPowerPreference = "default" | "high-performance" | "low-power";\ntype WorkerType = "classic" | "module";\ntype XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";\n',Ea["lib.webworker.importscripts.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n\n/////////////////////////////\n/// WorkerGlobalScope APIs\n/////////////////////////////\n// These are only available in a Web Worker\ndeclare function importScripts(...urls: string[]): void;\n',Ea["lib.webworker.iterable.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Worker Iterable APIs\n/////////////////////////////\n\ninterface Cache {\n addAll(requests: Iterable<RequestInfo>): Promise<void>;\n}\n\ninterface CanvasPath {\n roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;\n}\n\ninterface CanvasPathDrawingStyles {\n setLineDash(segments: Iterable<number>): void;\n}\n\ninterface DOMStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface FileList {\n [Symbol.iterator](): IterableIterator<File>;\n}\n\ninterface FontFaceSet extends Set<FontFace> {\n}\n\ninterface FormData {\n [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns a list of keys in the list. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the list. */\n values(): IterableIterator<FormDataEntryValue>;\n}\n\ninterface Headers {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all key/value pairs contained in this object. */\n entries(): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */\n keys(): IterableIterator<string>;\n /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */\n values(): IterableIterator<string>;\n}\n\ninterface IDBDatabase {\n /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */\n transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;\n}\n\ninterface IDBObjectStore {\n /**\n * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n */\n createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;\n}\n\ninterface MessageEvent<T = any> {\n /** @deprecated */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;\n}\n\ninterface SubtleCrypto {\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n}\n\ninterface URLSearchParams {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an array of key, value pairs for every entry in the search params. */\n entries(): IterableIterator<[string, string]>;\n /** Returns a list of keys in the search params. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the search params. */\n values(): IterableIterator<string>;\n}\n\ninterface WEBGL_draw_buffers {\n drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\n}\n\ninterface WEBGL_multi_draw {\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;\n}\n\ninterface WebGL2RenderingContextBase {\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;\n drawBuffers(buffers: Iterable<GLenum>): void;\n getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;\n getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;\n invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;\n invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;\n uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;\n vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;\n}\n\ninterface WebGL2RenderingContextOverloads {\n uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;\n}\n\ninterface WebGLRenderingContextBase {\n vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;\n vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;\n}\n\ninterface WebGLRenderingContextOverloads {\n uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n}\n';var xa=class e{constructor(e,n){this._extraLibs=Object.create(null),this._languageService=_a(this),this._ctx=e,this._compilerOptions=n.compilerOptions,this._extraLibs=n.extraLibs,this._inlayHintsOptions=n.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map((e=>e.uri)).filter((e=>!Ta(e))).map((e=>e.toString())).concat(Object.keys(this._extraLibs))}_getModel(e){let n=this._ctx.getMirrorModels();for(let t=0;t<n.length;t++){const r=n[t].uri;if(r.toString()===e||r.toString(!0)===e)return n[t]}return null}getScriptVersion(e){let n=this._getModel(e);return n?n.version.toString():this.isDefaultLibFileName(e)?"1":e in this._extraLibs?String(this._extraLibs[e].version):""}async getScriptText(e){return this._getScriptText(e)}_getScriptText(e){let n,t=this._getModel(e);const r="lib."+e+".d.ts";if(t)n=t.getValue();else if(e in Ea)n=Ea[e];else if(r in Ea)n=Ea[r];else{if(!(e in this._extraLibs))return;n=this._extraLibs[e].content}return n}getScriptSnapshot(e){const n=this._getScriptText(e);if(void 0!==n)return{getText:(e,t)=>n.substring(e,t),getLength:()=>n.length,getChangeRange:()=>{}}}getScriptKind(e){switch(e.substr(e.lastIndexOf(".")+1)){case"ts":return ga.TS;case"tsx":return ga.TSX;case"js":return ga.JS;case"jsx":return ga.JSX;default:return this.getCompilationSettings().allowJs?ga.JS:ga.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(e){switch(e.target){case 99:const n="lib.esnext.full.d.ts";if(n in Ea||n in this._extraLibs)return n;case 7:case 6:case 5:case 4:case 3:case 2:default:const t=`lib.es${2013+(e.target||99)}.full.d.ts`;return t in Ea||t in this._extraLibs?t:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(e){return e===this.getDefaultLibFileName(this._compilerOptions)}readFile(e){return this._getScriptText(e)}fileExists(e){return void 0!==this._getScriptText(e)}async getLibFiles(){return Ea}static clearFiles(e){const n=[];for(const t of e){const e={...t};if(e.file=e.file?{fileName:e.file.fileName}:void 0,t.relatedInformation){e.relatedInformation=[];for(const n of t.relatedInformation){const t={...n};t.file=t.file?{fileName:t.file.fileName}:void 0,e.relatedInformation.push(t)}}n.push(e)}return n}async getSyntacticDiagnostics(n){if(Ta(n))return[];const t=this._languageService.getSyntacticDiagnostics(n);return e.clearFiles(t)}async getSemanticDiagnostics(n){if(Ta(n))return[];const t=this._languageService.getSemanticDiagnostics(n);return e.clearFiles(t)}async getSuggestionDiagnostics(n){if(Ta(n))return[];const t=this._languageService.getSuggestionDiagnostics(n);return e.clearFiles(t)}async getCompilerOptionsDiagnostics(n){if(Ta(n))return[];const t=this._languageService.getCompilerOptionsDiagnostics();return e.clearFiles(t)}async getCompletionsAtPosition(e,n){if(!Ta(e))return this._languageService.getCompletionsAtPosition(e,n,void 0)}async getCompletionEntryDetails(e,n,t){return this._languageService.getCompletionEntryDetails(e,n,t,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(e,n,t){if(!Ta(e))return this._languageService.getSignatureHelpItems(e,n,t)}async getQuickInfoAtPosition(e,n){if(!Ta(e))return this._languageService.getQuickInfoAtPosition(e,n)}async getDocumentHighlights(e,n,t){if(!Ta(e))return this._languageService.getDocumentHighlights(e,n,t)}async getDefinitionAtPosition(e,n){if(!Ta(e))return this._languageService.getDefinitionAtPosition(e,n)}async getReferencesAtPosition(e,n){if(!Ta(e))return this._languageService.getReferencesAtPosition(e,n)}async getNavigationTree(e){if(!Ta(e))return this._languageService.getNavigationTree(e)}async getFormattingEditsForDocument(e,n){return Ta(e)?[]:this._languageService.getFormattingEditsForDocument(e,n)}async getFormattingEditsForRange(e,n,t,r){return Ta(e)?[]:this._languageService.getFormattingEditsForRange(e,n,t,r)}async getFormattingEditsAfterKeystroke(e,n,t,r){return Ta(e)?[]:this._languageService.getFormattingEditsAfterKeystroke(e,n,t,r)}async findRenameLocations(e,n,t,r,i){if(!Ta(e))return this._languageService.findRenameLocations(e,n,t,r,i)}async getRenameInfo(e,n,t){return Ta(e)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(e,n,t)}async getEmitOutput(e){return Ta(e)?{outputFiles:[],emitSkipped:!0}:this._languageService.getEmitOutput(e)}async getCodeFixesAtPosition(e,n,t,r,i){if(Ta(e))return[];const a={};try{return this._languageService.getCodeFixesAtPosition(e,n,t,r,i,a)}catch{return[]}}async updateExtraLibs(e){this._extraLibs=e}async provideInlayHints(e,n,t){if(Ta(e))return[];const r=this._inlayHintsOptions??{},i={start:n,length:t-n};try{return this._languageService.provideInlayHints(e,i,r)}catch{return[]}}};globalThis.ts=ba,self.onmessage=()=>{ia(((e,n)=>function(e,n){let t=xa;if(n.customWorkerPath)if("undefined"===typeof importScripts)console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{self.importScripts(n.customWorkerPath);const e=self.customTSWorkerFactory;if(!e)throw new Error(`The script at ${n.customWorkerPath} does not add customTSWorkerFactory to self`);t=e(xa,sa,Ea)}return new t(e,n)}(e,n)))}})();
\ No newline at end of file + })(name => super[name], (name, value) => super[name] = value);`}}});function FR(e){return 9===e.kind}function WR(e){return 10===e.kind}function zR(e){return 11===e.kind}function BR(e){return 12===e.kind}function GR(e){return 14===e.kind}function jR(e){return 15===e.kind}function VR(e){return 16===e.kind}function UR(e){return 17===e.kind}function HR(e){return 18===e.kind}function KR(e){return 26===e.kind}function qR(e){return 28===e.kind}function JR(e){return 40===e.kind}function XR(e){return 41===e.kind}function $R(e){return 42===e.kind}function YR(e){return 54===e.kind}function QR(e){return 58===e.kind}function ZR(e){return 59===e.kind}function eC(e){return 29===e.kind}function tC(e){return 39===e.kind}function nC(e){return 80===e.kind}function rC(e){return 81===e.kind}function oC(e){return 95===e.kind}function iC(e){return 90===e.kind}function aC(e){return 134===e.kind}function sC(e){return 131===e.kind}function lC(e){return 135===e.kind}function cC(e){return 148===e.kind}function dC(e){return 126===e.kind}function uC(e){return 128===e.kind}function pC(e){return 164===e.kind}function fC(e){return 129===e.kind}function mC(e){return 108===e.kind}function _C(e){return 102===e.kind}function hC(e){return 84===e.kind}function gC(e){return 166===e.kind}function yC(e){return 167===e.kind}function vC(e){return 168===e.kind}function bC(e){return 169===e.kind}function EC(e){return 170===e.kind}function SC(e){return 171===e.kind}function TC(e){return 172===e.kind}function xC(e){return 173===e.kind}function AC(e){return 174===e.kind}function IC(e){return 175===e.kind}function RC(e){return 176===e.kind}function CC(e){return 177===e.kind}function DC(e){return 178===e.kind}function NC(e){return 179===e.kind}function MC(e){return 180===e.kind}function LC(e){return 181===e.kind}function kC(e){return 182===e.kind}function PC(e){return 183===e.kind}function wC(e){return 184===e.kind}function OC(e){return 185===e.kind}function FC(e){return 186===e.kind}function WC(e){return 187===e.kind}function zC(e){return 188===e.kind}function BC(e){return 189===e.kind}function GC(e){return 202===e.kind}function jC(e){return 190===e.kind}function VC(e){return 191===e.kind}function UC(e){return 192===e.kind}function HC(e){return 193===e.kind}function KC(e){return 194===e.kind}function qC(e){return 195===e.kind}function JC(e){return 196===e.kind}function XC(e){return 197===e.kind}function $C(e){return 198===e.kind}function YC(e){return 199===e.kind}function QC(e){return 200===e.kind}function ZC(e){return 201===e.kind}function eD(e){return 205===e.kind}function tD(e){return 204===e.kind}function nD(e){return 203===e.kind}function rD(e){return 206===e.kind}function oD(e){return 207===e.kind}function iD(e){return 208===e.kind}function aD(e){return 209===e.kind}function sD(e){return 210===e.kind}function lD(e){return 211===e.kind}function cD(e){return 212===e.kind}function dD(e){return 213===e.kind}function uD(e){return 214===e.kind}function pD(e){return 215===e.kind}function fD(e){return 216===e.kind}function mD(e){return 217===e.kind}function _D(e){return 218===e.kind}function hD(e){return 219===e.kind}function gD(e){return 220===e.kind}function yD(e){return 221===e.kind}function vD(e){return 222===e.kind}function bD(e){return 223===e.kind}function ED(e){return 224===e.kind}function SD(e){return 225===e.kind}function TD(e){return 226===e.kind}function xD(e){return 227===e.kind}function AD(e){return 228===e.kind}function ID(e){return 229===e.kind}function RD(e){return 230===e.kind}function CD(e){return 231===e.kind}function DD(e){return 232===e.kind}function ND(e){return 233===e.kind}function MD(e){return 234===e.kind}function LD(e){return 238===e.kind}function kD(e){return 235===e.kind}function PD(e){return 236===e.kind}function wD(e){return 237===e.kind}function OD(e){return 360===e.kind}function FD(e){return 361===e.kind}function WD(e){return 239===e.kind}function zD(e){return 240===e.kind}function BD(e){return 241===e.kind}function GD(e){return 243===e.kind}function jD(e){return 242===e.kind}function VD(e){return 244===e.kind}function UD(e){return 245===e.kind}function HD(e){return 246===e.kind}function KD(e){return 247===e.kind}function qD(e){return 248===e.kind}function JD(e){return 249===e.kind}function XD(e){return 250===e.kind}function $D(e){return 251===e.kind}function YD(e){return 252===e.kind}function QD(e){return 253===e.kind}function ZD(e){return 254===e.kind}function eN(e){return 255===e.kind}function tN(e){return 256===e.kind}function nN(e){return 257===e.kind}function rN(e){return 258===e.kind}function oN(e){return 259===e.kind}function iN(e){return 260===e.kind}function aN(e){return 261===e.kind}function sN(e){return 262===e.kind}function lN(e){return 263===e.kind}function cN(e){return 264===e.kind}function dN(e){return 265===e.kind}function uN(e){return 266===e.kind}function pN(e){return 267===e.kind}function fN(e){return 268===e.kind}function mN(e){return 269===e.kind}function _N(e){return 270===e.kind}function hN(e){return 271===e.kind}function gN(e){return 272===e.kind}function yN(e){return 273===e.kind}function vN(e){return 302===e.kind}function bN(e){return 300===e.kind}function EN(e){return 301===e.kind}function SN(e){return 300===e.kind}function TN(e){return 301===e.kind}function xN(e){return 274===e.kind}function AN(e){return 280===e.kind}function IN(e){return 275===e.kind}function RN(e){return 276===e.kind}function CN(e){return 277===e.kind}function DN(e){return 278===e.kind}function NN(e){return 279===e.kind}function MN(e){return 281===e.kind}function LN(e){return 282===e.kind}function kN(e){return 359===e.kind}function PN(e){return 362===e.kind}function wN(e){return 283===e.kind}function ON(e){return 284===e.kind}function FN(e){return 285===e.kind}function WN(e){return 286===e.kind}function zN(e){return 287===e.kind}function BN(e){return 288===e.kind}function GN(e){return 289===e.kind}function jN(e){return 290===e.kind}function VN(e){return 291===e.kind}function UN(e){return 292===e.kind}function HN(e){return 293===e.kind}function KN(e){return 294===e.kind}function qN(e){return 295===e.kind}function JN(e){return 296===e.kind}function XN(e){return 297===e.kind}function $N(e){return 298===e.kind}function YN(e){return 299===e.kind}function QN(e){return 303===e.kind}function ZN(e){return 304===e.kind}function eM(e){return 305===e.kind}function tM(e){return 306===e.kind}function nM(e){return 308===e.kind}function rM(e){return 312===e.kind}function oM(e){return 313===e.kind}function iM(e){return 314===e.kind}function aM(e){return 316===e.kind}function sM(e){return 317===e.kind}function lM(e){return 318===e.kind}function cM(e){return 331===e.kind}function dM(e){return 332===e.kind}function uM(e){return 333===e.kind}function pM(e){return 319===e.kind}function fM(e){return 320===e.kind}function mM(e){return 321===e.kind}function _M(e){return 322===e.kind}function hM(e){return 323===e.kind}function gM(e){return 324===e.kind}function yM(e){return 325===e.kind}function vM(e){return 326===e.kind}function bM(e){return 327===e.kind}function EM(e){return 329===e.kind}function SM(e){return 330===e.kind}function TM(e){return 335===e.kind}function xM(e){return 337===e.kind}function AM(e){return 339===e.kind}function IM(e){return 345===e.kind}function RM(e){return 340===e.kind}function CM(e){return 341===e.kind}function DM(e){return 342===e.kind}function NM(e){return 343===e.kind}function MM(e){return 344===e.kind}function LM(e){return 346===e.kind}function kM(e){return 338===e.kind}function PM(e){return 354===e.kind}function wM(e){return 347===e.kind}function OM(e){return 348===e.kind}function FM(e){return 349===e.kind}function WM(e){return 350===e.kind}function zM(e){return 351===e.kind}function BM(e){return 352===e.kind}function GM(e){return 353===e.kind}function jM(e){return 334===e.kind}function VM(e){return 355===e.kind}function UM(e){return 336===e.kind}function HM(e){return 357===e.kind}function KM(e){return 356===e.kind}function qM(e){return 358===e.kind}var JM,XM,$M=b({"src/compiler/factory/nodeTests.ts"(){JJ()}});function YM(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function QM(e,t,n,r){if(yC(n))return yk(e.createElementAccessExpression(t,n.expression),r);{const r=yk(Nc(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return mI(r,128),r}}function ZM(e,t){const n=Rk.createIdentifier(e||"React");return Vx(n,Nl(t)),n}function eL(e,t,n){if(gC(t)){const r=eL(e,t.left,n),o=e.createIdentifier(kl(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(r,o)}return ZM(kl(t),n)}function tL(e,t,n,r){return t?eL(e,t,r):e.createPropertyAccessExpression(ZM(n,r),"createElement")}function nL(e,t,n,r,o,i){const a=[n];if(r&&a.push(r),o&&o.length>0)if(r||a.push(e.createNull()),o.length>1)for(const s of o)xL(s),a.push(s);else a.push(o[0]);return yk(e.createCallExpression(t,void 0,a),i)}function rL(e,t,n,r,o,i,a){const s=function(e,t,n,r){return t?eL(e,t,r):e.createPropertyAccessExpression(ZM(n,r),"Fragment")}(e,n,r,i),l=[s,e.createNull()];if(o&&o.length>0)if(o.length>1)for(const c of o)xL(c),l.push(c);else l.push(o[0]);return yk(e.createCallExpression(tL(e,t,r,i),void 0,l),a)}function oL(e,t,n){if(aN(t)){const r=Pe(t.declarations),o=e.updateVariableDeclaration(r,r.name,void 0,void 0,n);return yk(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}{const r=yk(e.createAssignment(t,n),t);return yk(e.createExpressionStatement(r),t)}}function iL(e,t,n){return BD(t)?e.updateBlock(t,yk(e.createNodeArray([n,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function aL(e,t){if(gC(t)){const n=aL(e,t.left),r=Vx(yk(e.cloneNode(t.right),t.right),t.right.parent);return yk(e.createPropertyAccessExpression(n,r),t)}return Vx(yk(e.cloneNode(t),t),t.parent)}function sL(e,t){return nC(t)?e.createStringLiteralFromNode(t):yC(t)?Vx(yk(e.cloneNode(t.expression),t.expression),t.expression.parent):Vx(yk(e.cloneNode(t),t),t.parent)}function lL(e,t,n,r){switch(n.name&&rC(n.name)&&In.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 177:case 178:return function(e,t,n,r,o){const{firstAccessor:i,getAccessor:a,setAccessor:s}=xb(t,n);if(n===i)return yk(e.createObjectDefinePropertyCall(r,sL(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:a&&yk(lI(e.createFunctionExpression(Hl(a),void 0,void 0,void 0,a.parameters,void 0,a.body),a),a),set:s&&yk(lI(e.createFunctionExpression(Hl(s),void 0,void 0,void 0,s.parameters,void 0,s.body),s),s)},!o)),i)}(e,t.properties,n,r,!!t.multiLine);case 303:return function(e,t,n){return lI(yk(e.createAssignment(QM(e,n,t.name,t.name),t.initializer),t),t)}(e,n,r);case 304:return function(e,t,n){return lI(yk(e.createAssignment(QM(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}(e,n,r);case 174:return function(e,t,n){return lI(yk(e.createAssignment(QM(e,n,t.name,t.name),lI(yk(e.createFunctionExpression(Hl(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}(e,n,r)}}function cL(e,t,n,r,o){const i=t.operator;In.assert(46===i||47===i,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const a=e.createTempVariable(r);yk(n=e.createAssignment(a,n),t.operand);let s=ED(t)?e.createPrefixUnaryExpression(i,a):e.createPostfixUnaryExpression(a,i);return yk(s,t),o&&(s=e.createAssignment(o,s),yk(s,t)),yk(n=e.createComma(n,s),t),SD(t)&&yk(n=e.createComma(n,a),t),n}function dL(e){return 0!==(65536&Rm(e))}function uL(e){return 0!==(32768&Rm(e))}function pL(e){return 0!==(16384&Rm(e))}function fL(e){return zR(e.expression)&&"use strict"===e.expression.text}function mL(e){for(const t of e){if(!w_(t))break;if(fL(t))return t}}function _L(e){const t=Le(e);return void 0!==t&&w_(t)&&fL(t)}function hL(e){return 226===e.kind&&28===e.operatorToken.kind}function gL(e){return hL(e)||FD(e)}function yL(e){return mD(e)&&$h(e)&&!!yc(e)}function vL(e){const t=vc(e);return In.assertIsDefined(t),t}function bL(e,t=15){switch(e.kind){case 217:return!(16&t&&yL(e))&&0!==(1&t);case 216:case 234:case 233:case 238:return 0!==(2&t);case 235:return 0!==(4&t);case 360:return 0!==(8&t)}return!1}function EL(e,t=15){for(;bL(e,t);)e=e.expression;return e}function SL(e,t=15){let n=e.parent;for(;bL(n,t);)n=n.parent,In.assert(n);return n}function TL(e){return EL(e,6)}function xL(e){return SI(e,!0)}function AL(e){const t=Rl(e,rM),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function IL(e){const t=Rl(e,rM),n=t&&t.emitNode;return!!n&&(!!n.externalHelpersModuleName||!!n.externalHelpers)}function RL(e,t,n,r,o,i,a){if(r.importHelpers&&Um(n,r)){let s;const l=Vp(r);if(l>=5&&l<=99||99===n.impliedNodeFormat){const r=FI(n);if(r){const o=[];for(const e of r)if(!e.scoped){const t=e.importName;t&&Ae(o,t)}if(se(o)){o.sort(jt),s=e.createNamedImports(U(o,(r=>om(n,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),t.getUnscopedHelperName(r)))));dI(Rl(n,rM)).externalHelpers=!0}}}else{const t=CL(e,n,r,o,i||a);t&&(s=e.createNamespaceImport(t))}if(s){const t=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,s),e.createStringLiteral(cp),void 0);return hI(t,2),t}}}function CL(e,t,n,r,o){if(n.importHelpers&&Um(t,n)){const i=AL(t);if(i)return i;const a=Vp(n);let s=(r||qp(n)&&o)&&4!==a&&(a<5||1===t.impliedNodeFormat);if(!s){const e=FI(t);if(e)for(const t of e)if(!t.scoped){s=!0;break}}if(s){const n=dI(Rl(t,rM));return n.externalHelpersModuleName||(n.externalHelpersModuleName=e.createUniqueName(cp))}}}function DL(e,t,n){const r=Gg(t);if(r&&!jg(t)&&!Sm(t)){const t=r.name;return ud(t)?t:e.createIdentifier(Em(n,t)||kl(t))}return 272===t.kind&&t.importClause||278===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0}function NL(e,t,n,r,o,i){const a=Bg(t);if(a&&zR(a))return function(e,t,n,r,o){return ML(n,r.getExternalModuleFileFromDeclaration(e),t,o)}(t,r,e,o,i)||function(e,t,n){const r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r?e.createStringLiteral(r):void 0}(e,a,n)||e.cloneNode(a)}function ML(e,t,n,r){if(t)return t.moduleName?e.createStringLiteral(t.moduleName):!t.isDeclarationFile&&ob(r)?e.createStringLiteral(Qv(n,t.fileName)):void 0}function LL(e){if(Kd(e))return e.initializer;if(QN(e)){const t=e.initializer;return gE(t,!0)?t.right:void 0}return ZN(e)?e.objectAssignmentInitializer:gE(e,!0)?e.right:RD(e)?LL(e.expression):void 0}function kL(e){if(Kd(e))return e.name;if(!Bd(e))return gE(e,!0)?kL(e.left):RD(e)?kL(e.expression):e;switch(e.kind){case 303:return kL(e.initializer);case 304:return e.name;case 305:return kL(e.expression)}}function PL(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function wL(e){const t=OL(e);return In.assert(!!t||eM(e),"Invalid property name for binding element."),t}function OL(e){switch(e.kind){case 208:if(e.propertyName){const t=e.propertyName;return rC(t)?In.failBadSyntaxKind(t):yC(t)&&FL(t.expression)?t.expression:t}break;case 303:if(e.name){const t=e.name;return rC(t)?In.failBadSyntaxKind(t):yC(t)&&FL(t.expression)?t.expression:t}break;case 305:return e.name&&rC(e.name)?In.failBadSyntaxKind(e.name):e.name}const t=kL(e);if(t&&Ed(t))return t}function FL(e){const t=e.kind;return 11===t||9===t}function WL(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function zL(e){if(e){let t=e;for(;;){if(nC(t)||!t.body)return nC(t)?t:t.name;t=t.body}}}function BL(e){const t=e.kind;return 176===t||178===t}function GL(e){const t=e.kind;return 176===t||177===t||178===t}function jL(e){const t=e.kind;return 303===t||304===t||262===t||176===t||181===t||175===t||282===t||243===t||264===t||265===t||266===t||267===t||271===t||272===t||270===t||278===t||277===t}function VL(e){const t=e.kind;return 175===t||303===t||304===t||282===t||270===t}function UL(e){return QR(e)||YR(e)}function HL(e){return nC(e)||XC(e)}function KL(e){return cC(e)||JR(e)||XR(e)}function qL(e){return QR(e)||JR(e)||XR(e)}function JL(e){return nC(e)||zR(e)}function XL(e){const t=e.kind;return 106===t||112===t||97===t||ed(e)||ED(e)}function $L(e){return function(e){return 48===e||49===e||50===e}(e)||function(e){return function(e){return 40===e||41===e}(e)||function(e){return function(e){return 43===e}(e)||function(e){return 42===e||44===e||45===e}(e)}(e)}(e)}function YL(e){return function(e){return 35===e||37===e||36===e||38===e}(e)||function(e){return function(e){return 30===e||33===e||32===e||34===e||104===e||103===e}(e)||$L(e)}(e)}function QL(e){return function(e){return 56===e||57===e}(e)||function(e){return function(e){return 51===e||52===e||53===e}(e)||YL(e)}(e)}function ZL(e){return function(e){return 61===e||QL(e)||mE(e)}(e)||28===e}function ek(e){return ZL(e.kind)}function tk(e,t,n,r,o,i){const a=new XM(e,t,n,r,o,i);return function(e,t){const n={value:void 0},r=[JM.enter],o=[e],i=[void 0];let s=0;for(;r[s]!==JM.done;)s=r[s](a,s,r,o,i,n,t);return In.assertEqual(s,0),n.value}}function nk(e){return 95===e||90===e}function rk(e){return nk(e.kind)}function ok(e){const t=e.kind;return hd(t)&&!nk(t)}function ik(e,t){if(void 0!==t)return 0===t.length?t:yk(e.createNodeArray([],t.hasTrailingComma),t)}function ak(e){var t;const n=e.emitNode.autoGenerate;if(4&n.flags){const r=n.id;let o=e,i=o.original;for(;i;){o=i;const e=null==(t=o.emitNode)?void 0:t.autoGenerate;if(Nc(o)&&(void 0===e||4&e.flags&&e.id!==r))break;i=o.original}return o}return e}function sk(e,t){return"object"===typeof e?ck(!1,e.prefix,e.node,e.suffix,t):"string"===typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function lk(e,t){return"string"===typeof e?e:function(e,t){return pd(e)?t(e).slice(1):ud(e)?t(e):rC(e)?e.escapedText.slice(1):kl(e)}(e,In.checkDefined(t))}function ck(e,t,n,r,o){return t=sk(t,o),r=sk(r,o),`${e?"#":""}${t}${n=lk(n,o)}${r}`}function dk(e,t,n,r){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,r)}function uk(e,t,n,r,o=e.createThis()){return e.createGetAccessorDeclaration(n,r,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function pk(e,t,n,r,o=e.createThis()){return e.createSetAccessorDeclaration(n,r,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function fk(e){let t=e.expression;for(;;)if(t=EL(t),FD(t))t=Fe(t.elements);else{if(!hL(t)){if(gE(t,!0)&&ud(t.left))return t;break}t=t.right}}function mk(e,t){if(function(e){return mD(e)&&Sv(e)&&!e.emitNode}(e))mk(e.expression,t);else if(hL(e))mk(e.left,t),mk(e.right,t);else if(FD(e))for(const n of e.elements)mk(n,t);else t.push(e)}function _k(e){const t=[];return mk(e,t),t}function hk(e){if(65536&e.transformFlags)return!0;if(128&e.transformFlags)for(const t of WL(e)){const e=kL(t);if(e&&Ud(e)){if(65536&e.transformFlags)return!0;if(128&e.transformFlags&&hk(e))return!0}}return!1}var gk=b({"src/compiler/factory/utilities.ts"(){JJ(),(e=>{function t(e,n,r,o,i,a,l){const c=n>0?i[n-1]:void 0;return In.assertEqual(r[n],t),i[n]=e.onEnter(o[n],c,l),r[n]=s(e,t),n}function n(e,t,r,o,i,a,d){In.assertEqual(r[t],n),In.assertIsDefined(e.onLeft),r[t]=s(e,n);const u=e.onLeft(o[t].left,i[t],o[t]);return u?(c(t,o,u),l(t,r,o,i,u)):t}function r(e,t,n,o,i,a,l){return In.assertEqual(n[t],r),In.assertIsDefined(e.onOperator),n[t]=s(e,r),e.onOperator(o[t].operatorToken,i[t],o[t]),t}function o(e,t,n,r,i,a,d){In.assertEqual(n[t],o),In.assertIsDefined(e.onRight),n[t]=s(e,o);const u=e.onRight(r[t].right,i[t],r[t]);return u?(c(t,r,u),l(t,n,r,i,u)):t}function i(e,t,n,r,o,a,l){In.assertEqual(n[t],i),n[t]=s(e,i);const c=e.onExit(r[t],o[t]);if(t>0){if(t--,e.foldState){const r=n[t]===i?"right":"left";o[t]=e.foldState(o[t],c,r)}}else a.value=c;return t}function a(e,t,n,r,o,i,s){return In.assertEqual(n[t],a),t}function s(e,s){switch(s){case t:if(e.onLeft)return n;case n:if(e.onOperator)return r;case r:if(e.onRight)return o;case o:return i;case i:case a:return a;default:In.fail("Invalid state")}}function l(e,n,r,o,i){return n[++e]=t,r[e]=i,o[e]=void 0,e}function c(e,t,n){if(In.shouldAssert(2))for(;e>=0;)In.assert(t[e]!==n,"Circular traversal detected."),e--}e.enter=t,e.left=n,e.operator=r,e.right=o,e.exit=i,e.done=a,e.nextState=s})(JM||(JM={})),XM=class{constructor(e,t,n,r,o,i){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=r,this.onExit=o,this.foldState=i}}}});function yk(e,t){return t?Bx(e,t.pos,t.end):e}function vk(e){const t=e.kind;return 168===t||169===t||171===t||172===t||173===t||174===t||176===t||177===t||178===t||181===t||185===t||218===t||219===t||231===t||243===t||262===t||263===t||264===t||265===t||266===t||267===t||271===t||272===t||277===t||278===t}function bk(e){const t=e.kind;return 169===t||172===t||174===t||177===t||178===t||231===t||263===t}var Ek,Sk,Tk,xk,Ak,Ik,Rk,Ck,Dk,Nk,Mk,Lk,kk,Pk=b({"src/compiler/factory/utilitiesPublic.ts"(){JJ()}});function wk(e,t){return t&&e(t)}function Ok(e,t,n){if(n){if(t)return t(n);for(const t of n){const n=e(t);if(n)return n}}}function Fk(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function Wk(e){return x(e.statements,zk)||function(e){return 8388608&e.flags?Bk(e):void 0}(e)}function zk(e){return vk(e)&&function(e,t){return se(e.modifiers,(e=>e.kind===t))}(e,95)||hN(e)&&wN(e.moduleReference)||gN(e)||CN(e)||DN(e)?e:void 0}function Bk(e){return function(e){return PD(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}(e)?e:oP(e,Bk)}function Gk(e,t,n){return Ok(t,n,e.typeParameters)||Ok(t,n,e.parameters)||wk(t,e.type)}function jk(e,t,n){return Ok(t,n,e.types)}function Vk(e,t,n){return wk(t,e.type)}function Uk(e,t,n){return Ok(t,n,e.elements)}function Hk(e,t,n){return wk(t,e.expression)||wk(t,e.questionDotToken)||Ok(t,n,e.typeArguments)||Ok(t,n,e.arguments)}function Kk(e,t,n){return Ok(t,n,e.statements)}function qk(e,t,n){return wk(t,e.label)}function Jk(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||Ok(t,n,e.typeParameters)||Ok(t,n,e.heritageClauses)||Ok(t,n,e.members)}function Xk(e,t,n){return Ok(t,n,e.elements)}function $k(e,t,n){return wk(t,e.propertyName)||wk(t,e.name)}function Yk(e,t,n){return wk(t,e.tagName)||Ok(t,n,e.typeArguments)||wk(t,e.attributes)}function Qk(e,t,n){return wk(t,e.type)}function Zk(e,t,n){return wk(t,e.tagName)||(e.isNameFirst?wk(t,e.name)||wk(t,e.typeExpression):wk(t,e.typeExpression)||wk(t,e.name))||("string"===typeof e.comment?void 0:Ok(t,n,e.comment))}function eP(e,t,n){return wk(t,e.tagName)||wk(t,e.typeExpression)||("string"===typeof e.comment?void 0:Ok(t,n,e.comment))}function tP(e,t,n){return wk(t,e.name)}function nP(e,t,n){return wk(t,e.tagName)||("string"===typeof e.comment?void 0:Ok(t,n,e.comment))}function rP(e,t,n){return wk(t,e.expression)}function oP(e,t,n){if(void 0===e||e.kind<=165)return;const r=Ck[e.kind];return void 0===r?void 0:r(e,t,n)}function iP(e,t,n){const r=aP(e),o=[];for(;o.length<r.length;)o.push(e);for(;0!==r.length;){const e=r.pop(),i=o.pop();if(mt(e)){if(n){const t=n(e,i);if(t){if("skip"===t)continue;return t}}for(let t=e.length-1;t>=0;--t)r.push(e[t]),o.push(i)}else{const n=t(e,i);if(n){if("skip"===n)continue;return n}if(e.kind>=166)for(const t of aP(e))r.push(t),o.push(e)}}}function aP(e){const t=[];return oP(e,n,n),t;function n(e){t.unshift(e)}}function sP(e){e.externalModuleIndicator=Wk(e)}function lP(e,t,n,r=!1,o){var i,a,s,l;let c;null==(i=kr)||i.push(kr.Phase.Parse,"createSourceFile",{path:e},!0),br("beforeParse"),null==(a=sr)||a.logStartParseSourceFile(e);const{languageVersion:d,setExternalModuleIndicator:u,impliedNodeFormat:p,jsDocParsingMode:f}="object"===typeof n?n:{languageVersion:n};if(100===d)c=Dk.parseSourceFile(e,t,d,void 0,r,6,bt,f);else{const n=void 0===p?u:e=>(e.impliedNodeFormat=p,(u||sP)(e));c=Dk.parseSourceFile(e,t,d,void 0,r,o,n,f)}return null==(s=sr)||s.logStopParseSourceFile(),br("afterParse"),Er("Parse","beforeParse","afterParse"),null==(l=kr)||l.pop(),c}function cP(e,t){return Dk.parseIsolatedEntityName(e,t)}function dP(e,t){return Dk.parseJsonText(e,t)}function uP(e){return void 0!==e.externalModuleIndicator}function pP(e,t,n,r=!1){const o=Nk.updateSourceFile(e,t,n,r);return o.flags|=12582912&e.flags,o}function fP(e,t,n){const r=Dk.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&Dk.fixupParentReferences(r.jsDoc),r}function mP(e,t,n){return Dk.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}function _P(e){return void 0!==hP(e)}function hP(e){const t=aa(e,Ef,!1);if(t)return t;if(Yi(e,".ts")){const t=oa(e).lastIndexOf(".d.");if(t>=0)return e.substring(t)}}function gP(e,t){const n=[];for(const r of Ps(t,0)||o){bP(n,r,t.substring(r.pos,r.end))}e.pragmas=new Map;for(const r of n)if(e.pragmas.has(r.name)){const t=e.pragmas.get(r.name);t instanceof Array?t.push(r.args):e.pragmas.set(r.name,[t,r.args])}else e.pragmas.set(r.name,r.args)}function yP(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach(((n,r)=>{switch(r){case"reference":{const r=e.referencedFiles,o=e.typeReferenceDirectives,i=e.libReferenceDirectives;x(_t(n),(n=>{const{types:a,lib:s,path:l,"resolution-mode":c}=n.arguments;if(n.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(a){const e=function(e,t,n,r){if(e)return"import"===e?99:"require"===e?1:void r(t,n-t,Oa.resolution_mode_should_be_either_require_or_import)}(c,a.pos,a.end,t);o.push({pos:a.pos,end:a.end,fileName:a.value,...e?{resolutionMode:e}:{}})}else s?i.push({pos:s.pos,end:s.end,fileName:s.value}):l?r.push({pos:l.pos,end:l.end,fileName:l.value}):t(n.range.pos,n.range.end-n.range.pos,Oa.Invalid_reference_directive_syntax)}));break}case"amd-dependency":e.amdDependencies=U(_t(n),(e=>({name:e.arguments.name,path:e.arguments.path})));break;case"amd-module":if(n instanceof Array)for(const r of n)e.moduleName&&t(r.range.pos,r.range.end-r.range.pos,Oa.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=r.arguments.name;else e.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":x(_t(n),(t=>{(!e.checkJsDirective||t.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:"ts-check"===r,end:t.range.end,pos:t.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:In.fail("Unhandled pragma kind")}}))}function vP(e){if(Mk.has(e))return Mk.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Mk.set(e,t),t}function bP(e,t,n){const r=2===t.kind&&Lk.exec(n);if(r){const o=r[1].toLowerCase(),i=ni[o];if(!i||!(1&i.kind))return;if(i.args){const r={};for(const e of i.args){const o=vP(e.name).exec(n);if(!o&&!e.optional)return;if(o){const n=o[2]||o[3];if(e.captureSpan){const i=t.pos+o.index+o[1].length+1;r[e.name]={value:n,pos:i,end:i+n.length}}else r[e.name]=n}}e.push({name:o,args:{arguments:r,range:t}})}else e.push({name:o,args:{arguments:{},range:t}});return}const o=2===t.kind&&kk.exec(n);if(o)return EP(e,t,2,o);if(3===t.kind){const r=/@(\S+)(\s+.*)?$/gim;let o;for(;o=r.exec(n);)EP(e,t,4,o)}}function EP(e,t,n,r){if(!r)return;const o=r[1].toLowerCase(),i=ni[o];if(!i||!(i.kind&n))return;const a=function(e,t){if(!t)return{};if(!e.args)return{};const n=t.trim().split(/\s+/),r={};for(let o=0;o<e.args.length;o++){const t=e.args[o];if(!n[o]&&!t.optional)return"fail";if(t.captureSpan)return In.fail("Capture spans not yet implemented for non-xml pragmas");r[t.name]=n[o]}return r}(i,r[2]);"fail"!==a&&e.push({name:o,args:{arguments:a,range:t}})}function SP(e,t){return e.kind===t.kind&&(80===e.kind?e.escapedText===t.escapedText:110===e.kind||(295===e.kind?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&SP(e.expression,t.expression)))}var TP,xP,AP,IP,RP,CP,DP,NP,MP,LP,kP,PP,wP,OP,FP,WP,zP,BP,GP,jP,VP,UP,HP,KP,qP,JP,XP,$P,YP,QP,ZP,ew,tw,nw,rw,ow,iw,aw,sw,lw,cw,dw,uw,pw=b({"src/compiler/parser.ts"(){JJ(),oi(),Rk=JA(1,Ik={createBaseSourceFileNode:e=>new(Ak||(Ak=Wp.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(Tk||(Tk=Wp.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(xk||(xk=Wp.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(Sk||(Sk=Wp.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(Ek||(Ek=Wp.getNodeConstructor()))(e,-1,-1)}),Ck={166:function(e,t,n){return wk(t,e.left)||wk(t,e.right)},168:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||wk(t,e.constraint)||wk(t,e.default)||wk(t,e.expression)},304:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||wk(t,e.questionToken)||wk(t,e.exclamationToken)||wk(t,e.equalsToken)||wk(t,e.objectAssignmentInitializer)},305:function(e,t,n){return wk(t,e.expression)},169:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.dotDotDotToken)||wk(t,e.name)||wk(t,e.questionToken)||wk(t,e.type)||wk(t,e.initializer)},172:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||wk(t,e.questionToken)||wk(t,e.exclamationToken)||wk(t,e.type)||wk(t,e.initializer)},171:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||wk(t,e.questionToken)||wk(t,e.type)||wk(t,e.initializer)},303:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||wk(t,e.questionToken)||wk(t,e.exclamationToken)||wk(t,e.initializer)},260:function(e,t,n){return wk(t,e.name)||wk(t,e.exclamationToken)||wk(t,e.type)||wk(t,e.initializer)},208:function(e,t,n){return wk(t,e.dotDotDotToken)||wk(t,e.propertyName)||wk(t,e.name)||wk(t,e.initializer)},181:function(e,t,n){return Ok(t,n,e.modifiers)||Ok(t,n,e.typeParameters)||Ok(t,n,e.parameters)||wk(t,e.type)},185:function(e,t,n){return Ok(t,n,e.modifiers)||Ok(t,n,e.typeParameters)||Ok(t,n,e.parameters)||wk(t,e.type)},184:function(e,t,n){return Ok(t,n,e.modifiers)||Ok(t,n,e.typeParameters)||Ok(t,n,e.parameters)||wk(t,e.type)},179:Gk,180:Gk,174:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.asteriskToken)||wk(t,e.name)||wk(t,e.questionToken)||wk(t,e.exclamationToken)||Ok(t,n,e.typeParameters)||Ok(t,n,e.parameters)||wk(t,e.type)||wk(t,e.body)},173:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||wk(t,e.questionToken)||Ok(t,n,e.typeParameters)||Ok(t,n,e.parameters)||wk(t,e.type)},176:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||Ok(t,n,e.typeParameters)||Ok(t,n,e.parameters)||wk(t,e.type)||wk(t,e.body)},177:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||Ok(t,n,e.typeParameters)||Ok(t,n,e.parameters)||wk(t,e.type)||wk(t,e.body)},178:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||Ok(t,n,e.typeParameters)||Ok(t,n,e.parameters)||wk(t,e.type)||wk(t,e.body)},262:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.asteriskToken)||wk(t,e.name)||Ok(t,n,e.typeParameters)||Ok(t,n,e.parameters)||wk(t,e.type)||wk(t,e.body)},218:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.asteriskToken)||wk(t,e.name)||Ok(t,n,e.typeParameters)||Ok(t,n,e.parameters)||wk(t,e.type)||wk(t,e.body)},219:function(e,t,n){return Ok(t,n,e.modifiers)||Ok(t,n,e.typeParameters)||Ok(t,n,e.parameters)||wk(t,e.type)||wk(t,e.equalsGreaterThanToken)||wk(t,e.body)},175:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.body)},183:function(e,t,n){return wk(t,e.typeName)||Ok(t,n,e.typeArguments)},182:function(e,t,n){return wk(t,e.assertsModifier)||wk(t,e.parameterName)||wk(t,e.type)},186:function(e,t,n){return wk(t,e.exprName)||Ok(t,n,e.typeArguments)},187:function(e,t,n){return Ok(t,n,e.members)},188:function(e,t,n){return wk(t,e.elementType)},189:function(e,t,n){return Ok(t,n,e.elements)},192:jk,193:jk,194:function(e,t,n){return wk(t,e.checkType)||wk(t,e.extendsType)||wk(t,e.trueType)||wk(t,e.falseType)},195:function(e,t,n){return wk(t,e.typeParameter)},205:function(e,t,n){return wk(t,e.argument)||wk(t,e.attributes)||wk(t,e.qualifier)||Ok(t,n,e.typeArguments)},302:function(e,t,n){return wk(t,e.assertClause)},196:Vk,198:Vk,199:function(e,t,n){return wk(t,e.objectType)||wk(t,e.indexType)},200:function(e,t,n){return wk(t,e.readonlyToken)||wk(t,e.typeParameter)||wk(t,e.nameType)||wk(t,e.questionToken)||wk(t,e.type)||Ok(t,n,e.members)},201:function(e,t,n){return wk(t,e.literal)},202:function(e,t,n){return wk(t,e.dotDotDotToken)||wk(t,e.name)||wk(t,e.questionToken)||wk(t,e.type)},206:Uk,207:Uk,209:function(e,t,n){return Ok(t,n,e.elements)},210:function(e,t,n){return Ok(t,n,e.properties)},211:function(e,t,n){return wk(t,e.expression)||wk(t,e.questionDotToken)||wk(t,e.name)},212:function(e,t,n){return wk(t,e.expression)||wk(t,e.questionDotToken)||wk(t,e.argumentExpression)},213:Hk,214:Hk,215:function(e,t,n){return wk(t,e.tag)||wk(t,e.questionDotToken)||Ok(t,n,e.typeArguments)||wk(t,e.template)},216:function(e,t,n){return wk(t,e.type)||wk(t,e.expression)},217:function(e,t,n){return wk(t,e.expression)},220:function(e,t,n){return wk(t,e.expression)},221:function(e,t,n){return wk(t,e.expression)},222:function(e,t,n){return wk(t,e.expression)},224:function(e,t,n){return wk(t,e.operand)},229:function(e,t,n){return wk(t,e.asteriskToken)||wk(t,e.expression)},223:function(e,t,n){return wk(t,e.expression)},225:function(e,t,n){return wk(t,e.operand)},226:function(e,t,n){return wk(t,e.left)||wk(t,e.operatorToken)||wk(t,e.right)},234:function(e,t,n){return wk(t,e.expression)||wk(t,e.type)},235:function(e,t,n){return wk(t,e.expression)},238:function(e,t,n){return wk(t,e.expression)||wk(t,e.type)},236:function(e,t,n){return wk(t,e.name)},227:function(e,t,n){return wk(t,e.condition)||wk(t,e.questionToken)||wk(t,e.whenTrue)||wk(t,e.colonToken)||wk(t,e.whenFalse)},230:function(e,t,n){return wk(t,e.expression)},241:Kk,268:Kk,312:function(e,t,n){return Ok(t,n,e.statements)||wk(t,e.endOfFileToken)},243:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.declarationList)},261:function(e,t,n){return Ok(t,n,e.declarations)},244:function(e,t,n){return wk(t,e.expression)},245:function(e,t,n){return wk(t,e.expression)||wk(t,e.thenStatement)||wk(t,e.elseStatement)},246:function(e,t,n){return wk(t,e.statement)||wk(t,e.expression)},247:function(e,t,n){return wk(t,e.expression)||wk(t,e.statement)},248:function(e,t,n){return wk(t,e.initializer)||wk(t,e.condition)||wk(t,e.incrementor)||wk(t,e.statement)},249:function(e,t,n){return wk(t,e.initializer)||wk(t,e.expression)||wk(t,e.statement)},250:function(e,t,n){return wk(t,e.awaitModifier)||wk(t,e.initializer)||wk(t,e.expression)||wk(t,e.statement)},251:qk,252:qk,253:function(e,t,n){return wk(t,e.expression)},254:function(e,t,n){return wk(t,e.expression)||wk(t,e.statement)},255:function(e,t,n){return wk(t,e.expression)||wk(t,e.caseBlock)},269:function(e,t,n){return Ok(t,n,e.clauses)},296:function(e,t,n){return wk(t,e.expression)||Ok(t,n,e.statements)},297:function(e,t,n){return Ok(t,n,e.statements)},256:function(e,t,n){return wk(t,e.label)||wk(t,e.statement)},257:function(e,t,n){return wk(t,e.expression)},258:function(e,t,n){return wk(t,e.tryBlock)||wk(t,e.catchClause)||wk(t,e.finallyBlock)},299:function(e,t,n){return wk(t,e.variableDeclaration)||wk(t,e.block)},170:function(e,t,n){return wk(t,e.expression)},263:Jk,231:Jk,264:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||Ok(t,n,e.typeParameters)||Ok(t,n,e.heritageClauses)||Ok(t,n,e.members)},265:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||Ok(t,n,e.typeParameters)||wk(t,e.type)},266:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||Ok(t,n,e.members)},306:function(e,t,n){return wk(t,e.name)||wk(t,e.initializer)},267:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||wk(t,e.body)},271:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)||wk(t,e.moduleReference)},272:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.importClause)||wk(t,e.moduleSpecifier)||wk(t,e.attributes)},273:function(e,t,n){return wk(t,e.name)||wk(t,e.namedBindings)},300:function(e,t,n){return Ok(t,n,e.elements)},301:function(e,t,n){return wk(t,e.name)||wk(t,e.value)},270:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.name)},274:function(e,t,n){return wk(t,e.name)},280:function(e,t,n){return wk(t,e.name)},275:Xk,279:Xk,278:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.exportClause)||wk(t,e.moduleSpecifier)||wk(t,e.attributes)},276:$k,281:$k,277:function(e,t,n){return Ok(t,n,e.modifiers)||wk(t,e.expression)},228:function(e,t,n){return wk(t,e.head)||Ok(t,n,e.templateSpans)},239:function(e,t,n){return wk(t,e.expression)||wk(t,e.literal)},203:function(e,t,n){return wk(t,e.head)||Ok(t,n,e.templateSpans)},204:function(e,t,n){return wk(t,e.type)||wk(t,e.literal)},167:function(e,t,n){return wk(t,e.expression)},298:function(e,t,n){return Ok(t,n,e.types)},233:function(e,t,n){return wk(t,e.expression)||Ok(t,n,e.typeArguments)},283:function(e,t,n){return wk(t,e.expression)},282:function(e,t,n){return Ok(t,n,e.modifiers)},361:function(e,t,n){return Ok(t,n,e.elements)},284:function(e,t,n){return wk(t,e.openingElement)||Ok(t,n,e.children)||wk(t,e.closingElement)},288:function(e,t,n){return wk(t,e.openingFragment)||Ok(t,n,e.children)||wk(t,e.closingFragment)},285:Yk,286:Yk,292:function(e,t,n){return Ok(t,n,e.properties)},291:function(e,t,n){return wk(t,e.name)||wk(t,e.initializer)},293:function(e,t,n){return wk(t,e.expression)},294:function(e,t,n){return wk(t,e.dotDotDotToken)||wk(t,e.expression)},287:function(e,t,n){return wk(t,e.tagName)},295:function(e,t,n){return wk(t,e.namespace)||wk(t,e.name)},190:Qk,191:Qk,316:Qk,322:Qk,321:Qk,323:Qk,325:Qk,324:function(e,t,n){return Ok(t,n,e.parameters)||wk(t,e.type)},327:function(e,t,n){return("string"===typeof e.comment?void 0:Ok(t,n,e.comment))||Ok(t,n,e.tags)},354:function(e,t,n){return wk(t,e.tagName)||wk(t,e.name)||("string"===typeof e.comment?void 0:Ok(t,n,e.comment))},317:function(e,t,n){return wk(t,e.name)},318:function(e,t,n){return wk(t,e.left)||wk(t,e.right)},348:Zk,355:Zk,337:function(e,t,n){return wk(t,e.tagName)||("string"===typeof e.comment?void 0:Ok(t,n,e.comment))},336:function(e,t,n){return wk(t,e.tagName)||wk(t,e.class)||("string"===typeof e.comment?void 0:Ok(t,n,e.comment))},335:function(e,t,n){return wk(t,e.tagName)||wk(t,e.class)||("string"===typeof e.comment?void 0:Ok(t,n,e.comment))},352:function(e,t,n){return wk(t,e.tagName)||wk(t,e.constraint)||Ok(t,n,e.typeParameters)||("string"===typeof e.comment?void 0:Ok(t,n,e.comment))},353:function(e,t,n){return wk(t,e.tagName)||(e.typeExpression&&316===e.typeExpression.kind?wk(t,e.typeExpression)||wk(t,e.fullName)||("string"===typeof e.comment?void 0:Ok(t,n,e.comment)):wk(t,e.fullName)||wk(t,e.typeExpression)||("string"===typeof e.comment?void 0:Ok(t,n,e.comment)))},345:function(e,t,n){return wk(t,e.tagName)||wk(t,e.fullName)||wk(t,e.typeExpression)||("string"===typeof e.comment?void 0:Ok(t,n,e.comment))},349:eP,351:eP,350:eP,347:eP,357:eP,356:eP,346:eP,330:function(e,t,n){return x(e.typeParameters,t)||x(e.parameters,t)||wk(t,e.type)},331:tP,332:tP,333:tP,329:function(e,t,n){return x(e.jsDocPropertyTags,t)},334:nP,339:nP,340:nP,341:nP,342:nP,343:nP,338:nP,344:nP,360:rP},(e=>{var t,n,r,a,s,l=Bs(99,!0),c=40960;function d(e){return E++,e}var u,p,f,m,_,h,g,y,v,b,E,S,T,x,A,I,R=JA(11,{createBaseSourceFileNode:e=>d(new s(e,0,0)),createBaseIdentifierNode:e=>d(new r(e,0,0)),createBasePrivateIdentifierNode:e=>d(new a(e,0,0)),createBaseTokenNode:e=>d(new n(e,0,0)),createBaseNode:e=>d(new t(e,0,0))}),{createNodeArray:C,createNumericLiteral:D,createStringLiteral:N,createLiteralLikeNode:M,createIdentifier:L,createPrivateIdentifier:k,createToken:w,createArrayLiteralExpression:O,createObjectLiteralExpression:F,createPropertyAccessExpression:W,createPropertyAccessChain:z,createElementAccessExpression:B,createElementAccessChain:G,createCallExpression:j,createCallChain:V,createNewExpression:U,createParenthesizedExpression:H,createBlock:K,createVariableStatement:q,createExpressionStatement:J,createIfStatement:X,createWhileStatement:$,createForStatement:Y,createForOfStatement:Q,createVariableDeclaration:ee,createVariableDeclarationList:te}=R,ne=!0,re=!1;function oe(e,t,n=2,r,o=!1){ie(e,t,n,r,6,0),p=I,He();const i=Be();let a,s;if(1===je())a=Et([],i,i),s=ht();else{let e;for(;1!==je();){let t;switch(je()){case 23:t=lo();break;case 112:case 97:case 106:t=ht();break;case 41:t=tt((()=>9===He()&&59!==He()))?Fr():uo();break;case 9:case 11:if(tt((()=>59!==He()))){t=hn();break}default:t=uo()}e&&mt(e)?e.push(t):e?e=[e,t]:(e=t,1!==je()&&Pe(Oa.Unexpected_token))}const t=mt(e)?St(O(e),i):In.checkDefined(e),n=J(t);St(n,i),a=Et([n],i),s=_t(1,Oa.Unexpected_token)}const l=pe(e,2,6,!1,a,s,p,bt);o&&ue(l),l.nodeCount=E,l.identifierCount=T,l.identifiers=S,l.parseDiagnostics=oT(g,l),y&&(l.jsDocDiagnostics=oT(y,l));const c=l;return ae(),c}function ie(e,o,i,c,d,y){switch(t=Wp.getNodeConstructor(),n=Wp.getTokenConstructor(),r=Wp.getIdentifierConstructor(),a=Wp.getPrivateIdentifierConstructor(),s=Wp.getSourceFileConstructor(),u=_a(e),f=o,m=i,v=c,_=d,h=_T(d),g=[],x=0,S=new Map,T=0,E=0,p=0,ne=!0,_){case 1:case 2:I=524288;break;case 6:I=134742016;break;default:I=0}re=!1,l.setText(f),l.setOnError(ze),l.setScriptTarget(m),l.setLanguageVariant(h),l.setScriptKind(_),l.setJSDocParsingMode(y)}function ae(){l.clearCommentDirectives(),l.setText(""),l.setOnError(void 0),l.setScriptKind(0),l.setJSDocParsingMode(0),f=void 0,m=void 0,v=void 0,_=void 0,h=void 0,p=0,g=void 0,y=void 0,x=0,S=void 0,A=void 0,ne=!0}e.parseSourceFile=function(e,t,n,r,a=!1,s,c,d=0){var m;if(6===(s=QT(e,s))){const s=oe(e,t,n,r,a);return Gw(s,null==(m=s.statements[0])?void 0:m.expression,s.parseDiagnostics,!1,void 0),s.referencedFiles=o,s.typeReferenceDirectives=o,s.libReferenceDirectives=o,s.amdDependencies=o,s.hasNoDefaultLib=!1,s.pragmas=i,s}ie(e,t,n,r,s,d);const _=function(e,t,n,r,o){const i=_P(u);i&&(I|=33554432);p=I,He();const a=Yt(0,Po);In.assert(1===je());const s=Ge(),c=de(ht(),s),d=pe(u,e,n,i,a,c,p,r);gP(d,f),yP(d,m),d.commentDirectives=l.getCommentDirectives(),d.nodeCount=E,d.identifierCount=T,d.identifiers=S,d.parseDiagnostics=oT(g,d),d.jsDocParsingMode=o,y&&(d.jsDocDiagnostics=oT(y,d));t&&ue(d);return d;function m(e,t,n){g.push(tT(u,f,e,t,n))}}(n,a,s,c||sP,d);return ae(),_},e.parseIsolatedEntityName=function(e,t){ie("",e,t,void 0,1,0),He();const n=sn(!0),r=1===je()&&!g.length;return ae(),r?n:void 0},e.parseJsonText=oe;let le=!1;function de(e,t){if(!t)return e;In.assert(!e.jsDoc);const n=Z(G_(e,f),(t=>Oi.parseJSDocComment(e,t.pos,t.end-t.pos)));return n.length&&(e.jsDoc=n),le&&(le=!1,e.flags|=536870912),e}function ue(e){Hx(e,!0)}function pe(e,t,n,r,o,i,a,s){let c=R.createSourceFile(o,i,a);if(Gx(c,0,f.length),d(c),!r&&uP(c)&&67108864&c.transformFlags){const e=c;c=function(e){const t=v,n=Nk.createSyntaxCursor(e);v={currentNode:function(e){const t=n.currentNode(e);return ne&&t&&s(t)&&(t.intersectsChange=!0),t}};const r=[],o=g;g=[];let i=0,a=c(e.statements,0);for(;-1!==a;){const t=e.statements[i],n=e.statements[a];xe(r,e.statements,i,a),i=d(e.statements,a);const s=P(o,(e=>e.start>=t.pos)),u=s>=0?P(o,(e=>e.start>=n.pos),s):-1;s>=0&&xe(g,o,s,u>=0?u:void 0),et((()=>{const t=I;for(I|=65536,l.resetTokenState(n.pos),He();1!==je();){const t=l.getTokenFullStart(),n=Qt(0,Po);if(r.push(n),t===l.getTokenFullStart()&&He(),i>=0){const t=e.statements[i];if(n.end===t.pos)break;n.end>t.pos&&(i=d(e.statements,i+1))}}I=t}),2),a=i>=0?c(e.statements,i):-1}if(i>=0){const t=e.statements[i];xe(r,e.statements,i);const n=P(o,(e=>e.start>=t.pos));n>=0&&xe(g,o,n)}return v=t,R.updateSourceFile(e,yk(C(r),e.statements));function s(e){return!(65536&e.flags)&&!!(67108864&e.transformFlags)}function c(e,t){for(let n=t;n<e.length;n++)if(s(e[n]))return n;return-1}function d(e,t){for(let n=t;n<e.length;n++)if(!s(e[n]))return n;return-1}}(c),e!==c&&d(c)}return c;function d(o){o.text=f,o.bindDiagnostics=[],o.bindSuggestionDiagnostics=void 0,o.languageVersion=t,o.fileName=e,o.languageVariant=_T(n),o.isDeclarationFile=r,o.scriptKind=n,s(o),o.setExternalModuleIndicator=s}}function fe(e,t){e?I|=t:I&=~t}function me(e){fe(e,8192)}function _e(e){fe(e,16384)}function he(e){fe(e,32768)}function ge(e){fe(e,65536)}function ye(e,t){const n=e&I;if(n){fe(!1,n);const e=t();return fe(!0,n),e}return t()}function ve(e,t){const n=e&~I;if(n){fe(!0,n);const e=t();return fe(!1,n),e}return t()}function be(e){return ye(8192,e)}function Se(e){return ye(131072,e)}function Te(e){return ve(131072,e)}function Ae(e){return ve(65536,e)}function Ie(e){return ye(65536,e)}function Re(e){return 0!==(I&e)}function Ce(){return Re(16384)}function De(){return Re(8192)}function Ne(){return Re(131072)}function Me(){return Re(32768)}function ke(){return Re(65536)}function Pe(e,...t){return Fe(l.getTokenStart(),l.getTokenEnd(),e,...t)}function we(e,t,n,...r){const o=Oe(g);let i;return o&&e===o.start||(i=tT(u,f,e,t,n,...r),g.push(i)),re=!0,i}function Fe(e,t,n,...r){return we(e,t-e,n,...r)}function We(e,t,...n){Fe(e.pos,e.end,t,...n)}function ze(e,t,n){we(l.getTokenEnd(),t,e,n)}function Be(){return l.getTokenFullStart()}function Ge(){return l.hasPrecedingJSDocComment()}function je(){return b}function Ve(){return b=l.scan()}function Ue(e){return He(),e()}function He(){return Vy(b)&&(l.hasUnicodeEscape()||l.hasExtendedUnicodeEscape())&&Fe(l.getTokenStart(),l.getTokenEnd(),Oa.Keywords_cannot_contain_escape_characters),Ve()}function Ke(){return b=l.scanJsDocToken()}function qe(e){return b=l.scanJSDocCommentTextToken(e)}function Je(){return b=l.reScanGreaterToken()}function Xe(e){return b=l.reScanTemplateToken(e)}function $e(){return b=l.reScanLessThanToken()}function Ye(){return b=l.reScanHashToken()}function Qe(){return b=l.scanJsxIdentifier()}function Ze(){return b=l.scanJsxToken()}function et(e,t){const n=b,r=g.length,o=re,i=I,a=0!==t?l.lookAhead(e):l.tryScan(e);return In.assert(i===I),a&&0===t||(b=n,2!==t&&(g.length=r),re=o),a}function tt(e){return et(e,1)}function nt(e){return et(e,0)}function rt(){return 80===je()||je()>118}function ot(){return 80===je()||(127!==je()||!Ce())&&((135!==je()||!ke())&&je()>118)}function it(e,t,n=!0){return je()===e?(n&&He(),!0):(t?Pe(t):Pe(Oa._0_expected,as(e)),!1)}e.fixupParentReferences=ue;const at=Object.keys(za).filter((e=>e.length>2));function st(e){if(pD(e))return void Fe(Ts(f,e.template.pos),e.template.end,Oa.Module_declaration_names_may_only_use_or_quoted_strings);const t=nC(e)?kl(e):void 0;if(!t||!zs(t,m))return void Pe(Oa._0_expected,as(27));const n=Ts(f,e.pos);switch(t){case"const":case"let":case"var":return void Fe(n,e.end,Oa.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void lt(Oa.Interface_name_cannot_be_0,Oa.Interface_must_be_given_a_name,19);case"is":return void Fe(n,l.getTokenStart(),Oa.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void lt(Oa.Namespace_name_cannot_be_0,Oa.Namespace_must_be_given_a_name,19);case"type":return void lt(Oa.Type_alias_name_cannot_be_0,Oa.Type_alias_must_be_given_a_name,64)}const r=Xt(t,at,(e=>e))??function(e){for(const t of at)if(e.length>t.length+2&&dn(e,t))return`${t} ${e.slice(t.length)}`;return}(t);r?Fe(n,e.end,Oa.Unknown_keyword_or_identifier_Did_you_mean_0,r):0!==je()&&Fe(n,e.end,Oa.Unexpected_keyword_or_identifier)}function lt(e,t,n){je()===n?Pe(t):Pe(e,l.getTokenValue())}function ct(e){return je()===e?(Ke(),!0):(In.assert(Hy(e)),Pe(Oa._0_expected,as(e)),!1)}function dt(e,t,n,r){if(je()===t)return void He();const o=Pe(Oa._0_expected,as(t));n&&o&&xx(o,tT(u,f,r,1,Oa.The_parser_expected_to_find_a_1_to_match_the_0_token_here,as(e),as(t)))}function ut(e){return je()===e&&(He(),!0)}function pt(e){if(je()===e)return ht()}function ft(e){if(je()===e)return function(){const e=Be(),t=je();return Ke(),St(w(t),e)}()}function _t(e,t,n){return pt(e)||Tt(e,!1,t||Oa._0_expected,n||as(e))}function ht(){const e=Be(),t=je();return He(),St(w(t),e)}function gt(){return 27===je()||(20===je()||1===je()||l.hasPrecedingLineBreak())}function yt(){return!!gt()&&(27===je()&&He(),!0)}function vt(){return yt()||it(27)}function Et(e,t,n,r){const o=C(e,r);return Bx(o,t,n??l.getTokenFullStart()),o}function St(e,t,n){return Bx(e,t,n??l.getTokenFullStart()),I&&(e.flags|=I),re&&(re=!1,e.flags|=262144),e}function Tt(e,t,n,...r){t?we(l.getTokenFullStart(),0,n,...r):n&&Pe(n,...r);const o=Be();return St(80===e?L("",void 0):nd(e)?R.createTemplateLiteralLikeNode(e,"","",void 0):9===e?D("",void 0):11===e?N("",void 0):282===e?R.createMissingDeclaration():w(e),o)}function xt(e){let t=S.get(e);return void 0===t&&S.set(e,t=e),t}function At(e,t,n){if(e){T++;const e=Be(),t=je(),n=xt(l.getTokenValue()),r=l.hasExtendedUnicodeEscape();return Ve(),St(L(n,t,r),e)}if(81===je())return Pe(n||Oa.Private_identifiers_are_not_allowed_outside_class_bodies),At(!0);if(0===je()&&l.tryScan((()=>80===l.reScanInvalidIdentifier())))return At(!0);T++;const r=1===je(),o=l.isReservedWord(),i=l.getTokenText(),a=o?Oa.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:Oa.Identifier_expected;return Tt(80,r,t||a,i)}function It(e){return At(rt(),void 0,e)}function Rt(e,t){return At(ot(),e,t)}function Ct(e){return At(ns(je()),e)}function Dt(){return(l.hasUnicodeEscape()||l.hasExtendedUnicodeEscape())&&Pe(Oa.Unicode_escape_sequence_cannot_appear_here),At(ns(je()))}function Nt(){return ns(je())||11===je()||9===je()}function Mt(e){if(11===je()||9===je()){const e=hn();return e.text=xt(e.text),e}return e&&23===je()?function(){const e=Be();it(23);const t=be(Tr);return it(24),St(R.createComputedPropertyName(t),e)}():81===je()?kt():Ct()}function Lt(){return Mt(!0)}function kt(){const e=Be(),t=k(xt(l.getTokenValue()));return He(),St(t,e)}function Pt(e){return je()===e&&nt(Ot)}function wt(){return He(),!l.hasPrecedingLineBreak()&&zt()}function Ot(){switch(je()){case 87:return 94===He();case 95:return He(),90===je()?tt(Bt):156===je()?tt(Wt):Ft();case 90:return Bt();case 126:case 139:case 153:return He(),zt();default:return wt()}}function Ft(){return 60===je()||42!==je()&&130!==je()&&19!==je()&&zt()}function Wt(){return He(),Ft()}function zt(){return 23===je()||19===je()||42===je()||26===je()||Nt()}function Bt(){return He(),86===je()||100===je()||120===je()||60===je()||128===je()&&tt(So)||134===je()&&tt(To)}function Gt(e,t){if(Zt(e))return!0;switch(e){case 0:case 1:case 3:return!(27===je()&&t)&&Ro();case 2:return 84===je()||90===je();case 4:return tt(Bn);case 5:return tt(ri)||27===je()&&!t;case 6:return 23===je()||Nt();case 12:switch(je()){case 23:case 42:case 26:case 25:return!0;default:return Nt()}case 18:return Nt();case 9:return 23===je()||26===je()||Nt();case 24:return ns(je())||11===je();case 7:return 19===je()?tt(jt):t?ot()&&!Kt():Er()&&!Kt();case 8:return Uo();case 10:return 28===je()||26===je()||Uo();case 19:return 103===je()||87===je()||ot();case 15:switch(je()){case 28:case 25:return!0}case 11:return 26===je()||Sr();case 16:return Dn(!1);case 17:return Dn(!0);case 20:case 21:return 28===je()||ir();case 22:return gi();case 23:return(161!==je()||!tt(Wo))&&ns(je());case 13:return ns(je())||19===je();case 14:case 25:return!0;case 26:return In.fail("ParsingContext.Count used as a context");default:In.assertNever(e,"Non-exhaustive case in 'isListElement'.")}}function jt(){if(In.assert(19===je()),20===He()){const e=He();return 28===e||19===e||96===e||119===e}return!0}function Vt(){return He(),ot()}function Ut(){return He(),ns(je())}function Ht(){return He(),rs(je())}function Kt(){return(119===je()||96===je())&&tt(qt)}function qt(){return He(),Sr()}function Jt(){return He(),ir()}function $t(e){if(1===je())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 20===je();case 3:return 20===je()||84===je()||90===je();case 7:return 19===je()||96===je()||119===je();case 8:return function(){if(gt())return!0;if(Lr(je()))return!0;if(39===je())return!0;return!1}();case 19:return 32===je()||21===je()||19===je()||96===je()||119===je();case 11:return 22===je()||27===je();case 15:case 21:case 10:return 24===je();case 17:case 16:case 18:return 22===je()||24===je();case 20:return 28!==je();case 22:return 19===je()||20===je();case 13:return 32===je()||44===je();case 14:return 30===je()&&tt(xi);default:return!1}}function Yt(e,t){const n=x;x|=1<<e;const r=[],o=Be();for(;!$t(e);)if(Gt(e,!1))r.push(Qt(e,t));else if(tn(e))break;return x=n,Et(r,o)}function Qt(e,t){const n=Zt(e);return n?en(n):t()}function Zt(e,t){var n;if(!v||!function(e){switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}(e)||re)return;const r=v.currentNode(t??l.getTokenFullStart());if(im(r)||r.intersectsChange||$f(r))return;return(101441536&r.flags)===I&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 176:case 181:case 177:case 178:case 172:case 240:return!0;case 174:const t=e;return!(80===t.name.kind&&"constructor"===t.name.escapedText)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 296:case 297:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 262:case 243:case 241:case 245:case 244:case 257:case 253:case 255:case 252:case 251:case 249:case 250:case 248:case 247:case 254:case 242:case 258:case 256:case 246:case 259:case 272:case 271:case 278:case 277:case 267:case 263:case 264:case 266:case 265:return!0}return!1}(e);case 6:return function(e){return 306===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 180:case 173:case 181:case 171:case 179:return!0}return!1}(e);case 8:return function(e){if(260!==e.kind)return!1;const t=e;return void 0===t.initializer}(e);case 17:case 16:return function(e){if(169!==e.kind)return!1;const t=e;return void 0===t.initializer}(e)}return!1}(r,e)?(Zg(r)&&(null==(n=r.jsDoc)?void 0:n.jsDocCache)&&(r.jsDoc.jsDocCache=void 0),r):void 0}function en(e){return l.resetTokenState(e.end),He(),e}function tn(e){return function(e){switch(e){case 0:return 90===je()?Pe(Oa._0_expected,as(95)):Pe(Oa.Declaration_or_statement_expected);case 1:return Pe(Oa.Declaration_or_statement_expected);case 2:return Pe(Oa.case_or_default_expected);case 3:return Pe(Oa.Statement_expected);case 18:case 4:return Pe(Oa.Property_or_signature_expected);case 5:return Pe(Oa.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Pe(Oa.Enum_member_expected);case 7:return Pe(Oa.Expression_expected);case 8:return Vy(je())?Pe(Oa._0_is_not_allowed_as_a_variable_declaration_name,as(je())):Pe(Oa.Variable_declaration_expected);case 9:return Pe(Oa.Property_destructuring_pattern_expected);case 10:return Pe(Oa.Array_element_destructuring_pattern_expected);case 11:return Pe(Oa.Argument_expression_expected);case 12:return Pe(Oa.Property_assignment_expected);case 15:return Pe(Oa.Expression_or_comma_expected);case 17:return Pe(Oa.Parameter_declaration_expected);case 16:return Vy(je())?Pe(Oa._0_is_not_allowed_as_a_parameter_name,as(je())):Pe(Oa.Parameter_declaration_expected);case 19:return Pe(Oa.Type_parameter_declaration_expected);case 20:return Pe(Oa.Type_argument_expected);case 21:return Pe(Oa.Type_expected);case 22:return Pe(Oa.Unexpected_token_expected);case 23:return 161===je()?Pe(Oa._0_expected,"}"):Pe(Oa.Identifier_expected);case 13:case 14:case 25:return Pe(Oa.Identifier_expected);case 24:return Pe(Oa.Identifier_or_string_literal_expected);case 26:return In.fail("ParsingContext.Count used as a context");default:In.assertNever(e)}}(e),!!function(){In.assert(x,"Missing parsing context");for(let e=0;e<26;e++)if(x&1<<e&&(Gt(e,!0)||$t(e)))return!0;return!1}()||(He(),!1)}function nn(e,t,n){const r=x;x|=1<<e;const o=[],i=Be();let a=-1;for(;;)if(Gt(e,!1)){const i=l.getTokenFullStart(),s=Qt(e,t);if(!s)return void(x=r);if(o.push(s),a=l.getTokenStart(),ut(28))continue;if(a=-1,$t(e))break;it(28,rn(e)),n&&27===je()&&!l.hasPrecedingLineBreak()&&He(),i===l.getTokenFullStart()&&He()}else{if($t(e))break;if(tn(e))break}return x=r,Et(o,i,void 0,a>=0)}function rn(e){return 6===e?Oa.An_enum_member_name_must_be_followed_by_a_or:void 0}function on(){const e=Et([],Be());return e.isMissingList=!0,e}function an(e,t,n,r){if(it(n)){const n=nn(e,t);return it(r),n}return on()}function sn(e,t){const n=Be();let r=e?Ct(t):Rt(t);for(;ut(25)&&30!==je();)r=St(R.createQualifiedName(r,cn(e,!1,!0)),n);return r}function ln(e,t){return St(R.createQualifiedName(e,t),e.pos)}function cn(e,t,n){if(l.hasPrecedingLineBreak()&&ns(je())){if(tt(Eo))return Tt(80,!0,Oa.Identifier_expected)}if(81===je()){const e=kt();return t?e:Tt(80,!0,Oa.Identifier_expected)}return e?n?Ct():Dt():Rt()}function un(e){const t=Be();return St(R.createTemplateExpression(gn(e),function(e){const t=Be(),n=[];let r;do{r=_n(e),n.push(r)}while(17===r.literal.kind);return Et(n,t)}(e)),t)}function pn(){const e=Be();return St(R.createTemplateLiteralType(gn(!1),function(){const e=Be(),t=[];let n;do{n=fn(),t.push(n)}while(17===n.literal.kind);return Et(t,e)}()),e)}function fn(){const e=Be();return St(R.createTemplateLiteralTypeSpan(vr(),mn(!1)),e)}function mn(e){return 20===je()?(Xe(e),function(){const e=yn(je());return In.assert(17===e.kind||18===e.kind,"Template fragment has wrong token kind"),e}()):_t(18,Oa._0_expected,as(20))}function _n(e){const t=Be();return St(R.createTemplateSpan(be(Tr),mn(e)),t)}function hn(){return yn(je())}function gn(e){!e&&26656&l.getTokenFlags()&&Xe(!1);const t=yn(je());return In.assert(16===t.kind,"Template head has wrong token kind"),t}function yn(e){const t=Be(),n=nd(e)?R.createTemplateLiteralLikeNode(e,l.getTokenValue(),function(e){const t=15===e||18===e,n=l.getTokenText();return n.substring(1,n.length-(l.isUnterminated()?0:t?1:2))}(e),7176&l.getTokenFlags()):9===e?D(l.getTokenValue(),l.getNumericLiteralFlags()):11===e?N(l.getTokenValue(),void 0,l.hasExtendedUnicodeEscape()):Zc(e)?M(e,l.getTokenValue()):In.fail();return l.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),l.isUnterminated()&&(n.isUnterminated=!0),He(),St(n,t)}function vn(){return sn(!0,Oa.Type_expected)}function bn(){if(!l.hasPrecedingLineBreak()&&30===$e())return an(20,vr,30,32)}function En(){const e=Be();return St(R.createTypeReferenceNode(vn(),bn()),e)}function Sn(e){switch(e.kind){case 183:return im(e.typeName);case 184:case 185:{const{parameters:t,type:n}=e;return!!t.isMissingList||Sn(n)}case 196:return Sn(e.type);default:return!1}}function Tn(){const e=Be();return He(),St(R.createThisTypeNode(),e)}function xn(){const e=Be();let t;return 110!==je()&&105!==je()||(t=Ct(),it(59)),St(R.createParameterDeclaration(void 0,void 0,t,void 0,An(),void 0),e)}function An(){l.setInJSDocType(!0);const e=Be();if(ut(144)){const t=R.createJSDocNamepathType(void 0);e:for(;;)switch(je()){case 20:case 1:case 28:case 5:break e;default:Ke()}return l.setInJSDocType(!1),St(t,e)}const t=ut(26);let n=gr();return l.setInJSDocType(!1),t&&(n=St(R.createJSDocVariadicType(n),e)),64===je()?(He(),St(R.createJSDocOptionalType(n),e)):n}function Rn(){const e=Be(),t=li(!1,!0),n=Rt();let r,o;ut(96)&&(ir()||!Sr()?r=vr():o=Wr());const i=ut(64)?vr():void 0,a=R.createTypeParameterDeclaration(t,n,r,i);return a.expression=o,St(a,e)}function Cn(){if(30===je())return an(19,Rn,30,32)}function Dn(e){return 26===je()||Uo()||hd(je())||60===je()||ir(!e)}function Nn(e){return Mn(e)}function Mn(e,t=!0){const n=Be(),r=Ge(),o=e?Ae((()=>li(!0))):Ie((()=>li(!0)));if(110===je()){const e=R.createParameterDeclaration(o,void 0,At(!0),void 0,br(),void 0),t=Le(o);return t&&We(t,Oa.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),de(St(e,n),r)}const i=ne;ne=!1;const a=pt(26);if(!t&&!rt()&&23!==je()&&19!==je())return;const s=de(St(R.createParameterDeclaration(o,a,function(e){const t=Ho(Oa.Private_identifiers_cannot_be_used_as_parameters);return 0===jf(t)&&!se(e)&&hd(je())&&He(),t}(o),pt(58),br(),xr()),n),r);return ne=i,s}function Ln(e,t){if(function(e,t){if(39===e)return it(e),!0;if(ut(59))return!0;if(t&&39===je())return Pe(Oa._0_expected,as(59)),He(),!0;return!1}(e,t))return Se(gr)}function kn(e,t){const n=Ce(),r=ke();_e(!!(1&e)),ge(!!(2&e));const o=32&e?nn(17,xn):nn(16,(()=>t?Nn(r):Mn(r,!1)));return _e(n),ge(r),o}function Pn(e){if(!it(21))return on();const t=kn(e,!0);return it(22),t}function wn(){ut(28)||vt()}function On(e){const t=Be(),n=Ge();180===e&&it(105);const r=Cn(),o=Pn(4),i=Ln(59,!0);wn();return de(St(179===e?R.createCallSignature(r,o,i):R.createConstructSignature(r,o,i),t),n)}function Fn(){return 23===je()&&tt(Wn)}function Wn(){if(He(),26===je()||24===je())return!0;if(hd(je())){if(He(),ot())return!0}else{if(!ot())return!1;He()}return 59===je()||28===je()||58===je()&&(He(),59===je()||28===je()||24===je())}function zn(e,t,n){const r=an(16,(()=>Nn(!1)),23,24),o=br();wn();return de(St(R.createIndexSignature(n,r,o),e),t)}function Bn(){if(21===je()||30===je()||139===je()||153===je())return!0;let e=!1;for(;hd(je());)e=!0,He();return 23===je()||(Nt()&&(e=!0,He()),!!e&&(21===je()||30===je()||58===je()||59===je()||28===je()||gt()))}function Gn(){if(21===je()||30===je())return On(179);if(105===je()&&tt(jn))return On(180);const e=Be(),t=Ge(),n=li(!1);return Pt(139)?ni(e,t,n,177,4):Pt(153)?ni(e,t,n,178,4):Fn()?zn(e,t,n):function(e,t,n){const r=Lt(),o=pt(58);let i;if(21===je()||30===je()){const e=Cn(),t=Pn(4),a=Ln(59,!0);i=R.createMethodSignature(n,r,o,e,t,a)}else{const e=br();i=R.createPropertySignature(n,r,o,e),64===je()&&(i.initializer=xr())}return wn(),de(St(i,e),t)}(e,t,n)}function jn(){return He(),21===je()||30===je()}function Vn(){return 25===He()}function Un(){switch(He()){case 21:case 30:case 25:return!0}return!1}function Hn(){let e;return it(19)?(e=Yt(4,Gn),it(20)):e=on(),e}function Kn(){return He(),40===je()||41===je()?148===He():(148===je()&&He(),23===je()&&Vt()&&103===He())}function qn(){const e=Be();let t;it(19),148!==je()&&40!==je()&&41!==je()||(t=ht(),148!==t.kind&&it(148)),it(23);const n=function(){const e=Be(),t=Ct();it(103);const n=vr();return St(R.createTypeParameterDeclaration(void 0,t,n,void 0),e)}(),r=ut(130)?vr():void 0;let o;it(24),58!==je()&&40!==je()&&41!==je()||(o=ht(),58!==o.kind&&it(58));const i=br();vt();const a=Yt(4,Gn);return it(20),St(R.createMappedTypeNode(t,n,r,o,i,a),e)}function Jn(){const e=Be();if(ut(26))return St(R.createRestTypeNode(vr()),e);const t=vr();if(mM(t)&&t.pos===t.type.pos){const e=R.createOptionalTypeNode(t.type);return yk(e,t),e.flags=t.flags,e}return t}function Xn(){return 59===He()||58===je()&&59===He()}function $n(){return 26===je()?ns(He())&&Xn():ns(je())&&Xn()}function Yn(){if(tt($n)){const e=Be(),t=Ge(),n=pt(26),r=Ct(),o=pt(58);it(59);const i=Jn();return de(St(R.createNamedTupleMember(n,r,o,i),e),t)}return Jn()}function Qn(){const e=Be(),t=Ge(),n=function(){let e;if(128===je()){const t=Be();He(),e=Et([St(w(128),t)],t)}return e}(),r=ut(105);In.assert(!n||r,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const o=Cn(),i=Pn(4),a=Ln(39,!1);return de(St(r?R.createConstructorTypeNode(n,o,i,a):R.createFunctionTypeNode(o,i,a),e),t)}function Zn(){const e=ht();return 25===je()?void 0:e}function er(e){const t=Be();e&&He();let n=112===je()||97===je()||106===je()?ht():yn(je());return e&&(n=St(R.createPrefixUnaryExpression(41,n),t)),St(R.createLiteralTypeNode(n),t)}function tr(){return He(),102===je()}function nr(){p|=4194304;const e=Be(),t=ut(114);it(102),it(21);const n=vr();let r;if(ut(28)){const e=l.getTokenStart();it(19);const t=je();if(118===t||132===t?He():Pe(Oa._0_expected,as(118)),it(59),r=Ii(t,!0),!it(20)){const t=Oe(g);t&&t.code===Oa._0_expected.code&&xx(t,tT(u,f,e,1,Oa.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}it(22);const o=ut(25)?vn():void 0,i=bn();return St(R.createImportTypeNode(n,r,o,i,t),e)}function rr(){return He(),9===je()||10===je()}function or(){switch(je()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return nt(Zn)||En();case 67:l.reScanAsteriskEqualsToken();case 42:return function(){const e=Be();return He(),St(R.createJSDocAllType(),e)}();case 61:l.reScanQuestionToken();case 58:return function(){const e=Be();return He(),28===je()||20===je()||22===je()||32===je()||64===je()||52===je()?St(R.createJSDocUnknownType(),e):St(R.createJSDocNullableType(vr(),!1),e)}();case 100:return function(){const e=Be(),t=Ge();if(nt(Si)){const n=Pn(36),r=Ln(59,!1);return de(St(R.createJSDocFunctionType(n,r),e),t)}return St(R.createTypeReferenceNode(Ct(),void 0),e)}();case 54:return function(){const e=Be();return He(),St(R.createJSDocNonNullableType(or(),!1),e)}();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return er();case 41:return tt(rr)?er(!0):En();case 116:return ht();case 110:{const t=Tn();return 142!==je()||l.hasPrecedingLineBreak()?t:(e=t,He(),St(R.createTypePredicateNode(void 0,e,vr()),e.pos))}case 114:return tt(tr)?nr():function(){const e=Be();it(114);const t=sn(!0),n=l.hasPrecedingLineBreak()?void 0:hi();return St(R.createTypeQueryNode(t,n),e)}();case 19:return tt(Kn)?qn():function(){const e=Be();return St(R.createTypeLiteralNode(Hn()),e)}();case 23:return function(){const e=Be();return St(R.createTupleTypeNode(an(21,Yn,23,24)),e)}();case 21:return function(){const e=Be();it(21);const t=vr();return it(22),St(R.createParenthesizedType(t),e)}();case 102:return nr();case 131:return tt(Eo)?function(){const e=Be(),t=_t(131),n=110===je()?Tn():Rt(),r=ut(142)?vr():void 0;return St(R.createTypePredicateNode(t,n,r),e)}():En();case 16:return pn();default:return En()}var e}function ir(e){switch(je()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!e;case 41:return!e&&tt(rr);case 21:return!e&&tt(ar);default:return ot()}}function ar(){return He(),22===je()||Dn(!1)||ir()}function sr(){const e=Be();let t=or();for(;!l.hasPrecedingLineBreak();)switch(je()){case 54:He(),t=St(R.createJSDocNonNullableType(t,!0),e);break;case 58:if(tt(Jt))return t;He(),t=St(R.createJSDocNullableType(t,!0),e);break;case 23:if(it(23),ir()){const n=vr();it(24),t=St(R.createIndexedAccessTypeNode(t,n),e)}else it(24),t=St(R.createArrayTypeNode(t),e);break;default:return t}return t}function lr(){if(ut(96)){const e=Te(vr);if(Ne()||58!==je())return e}}function cr(){const e=Be();return it(140),St(R.createInferTypeNode(function(){const e=Be(),t=Rt(),n=nt(lr);return St(R.createTypeParameterDeclaration(void 0,t,n),e)}()),e)}function dr(){const e=je();switch(e){case 143:case 158:case 148:return function(e){const t=Be();return it(e),St(R.createTypeOperatorNode(e,dr()),t)}(e);case 140:return cr()}return Se(sr)}function ur(e){if(_r()){const t=Qn();let n;return n=wC(t)?e?Oa.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:Oa.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?Oa.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:Oa.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,We(t,n),t}}function pr(e,t,n){const r=Be(),o=52===e,i=ut(e);let a=i&&ur(o)||t();if(je()===e||i){const i=[a];for(;ut(e);)i.push(ur(o)||t());a=St(n(Et(i,r)),r)}return a}function fr(){return pr(51,dr,R.createIntersectionTypeNode)}function mr(){return He(),105===je()}function _r(){return 30===je()||(!(21!==je()||!tt(hr))||(105===je()||128===je()&&tt(mr)))}function hr(){if(He(),22===je()||26===je())return!0;if(function(){if(hd(je())&&li(!1),ot()||110===je())return He(),!0;if(23===je()||19===je()){const e=g.length;return Ho(),e===g.length}return!1}()){if(59===je()||28===je()||58===je()||64===je())return!0;if(22===je()&&(He(),39===je()))return!0}return!1}function gr(){const e=Be(),t=ot()&&nt(yr),n=vr();return t?St(R.createTypePredicateNode(void 0,t,n),e):n}function yr(){const e=Rt();if(142===je()&&!l.hasPrecedingLineBreak())return He(),e}function vr(){if(81920&I)return ye(81920,vr);if(_r())return Qn();const e=Be(),t=pr(52,fr,R.createUnionTypeNode);if(!Ne()&&!l.hasPrecedingLineBreak()&&ut(96)){const n=Te(vr);it(58);const r=Se(vr);it(59);const o=Se(vr);return St(R.createConditionalTypeNode(t,n,r,o),e)}return t}function br(){return ut(59)?vr():void 0}function Er(){switch(je()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return tt(Un);default:return ot()}}function Sr(){if(Er())return!0;switch(je()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return!!Pr()||ot()}}function Tr(){const e=Me();e&&he(!1);const t=Be();let n,r=Ar(!0);for(;n=pt(28);)r=wr(r,n,Ar(!0),t);return e&&he(!0),r}function xr(){return ut(64)?Ar(!0):void 0}function Ar(e){if(function(){if(127===je())return!!Ce()||tt(xo);return!1}())return function(){const e=Be();return He(),l.hasPrecedingLineBreak()||42!==je()&&!Sr()?St(R.createYieldExpression(void 0,void 0),e):St(R.createYieldExpression(pt(42),Ar(!0)),e)}();const t=function(e){const t=function(){if(21===je()||30===je()||134===je())return tt(Rr);if(39===je())return 1;return 0}();if(0===t)return;return 1===t?Dr(!0,!0):nt((()=>function(e){const t=l.getTokenStart();if(null==A?void 0:A.has(t))return;const n=Dr(!1,e);n||(A||(A=new Set)).add(t);return n}(e)))}(e)||function(e){if(134===je()&&1===tt(Cr)){const t=Be(),n=Ge(),r=ci();return Ir(t,Mr(0),e,n,r)}return}(e);if(t)return t;const n=Be(),r=Ge(),o=Mr(0);return 80===o.kind&&39===je()?Ir(n,o,e,r,void 0):iu(o)&&mE(Je())?wr(o,ht(),Ar(e),n):function(e,t,n){const r=pt(58);if(!r)return e;let o;return St(R.createConditionalExpression(e,r,ye(c,(()=>Ar(!1))),o=_t(59),am(o)?Ar(n):Tt(80,!1,Oa._0_expected,as(59))),t)}(o,n,e)}function Ir(e,t,n,r,o){In.assert(39===je(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const i=R.createParameterDeclaration(void 0,void 0,t,void 0,void 0,void 0);St(i,t.pos);const a=Et([i],i.pos,i.end),s=_t(39),l=Nr(!!o,n);return de(St(R.createArrowFunction(o,void 0,a,void 0,s,l),e),r)}function Rr(){if(134===je()){if(He(),l.hasPrecedingLineBreak())return 0;if(21!==je()&&30!==je())return 0}const e=je(),t=He();if(21===e){if(22===t){switch(He()){case 39:case 59:case 19:return 1;default:return 0}}if(23===t||19===t)return 2;if(26===t)return 1;if(hd(t)&&134!==t&&tt(Vt))return 130===He()?0:1;if(!ot()&&110!==t)return 0;switch(He()){case 59:return 1;case 58:return He(),59===je()||28===je()||64===je()||22===je()?1:0;case 28:case 64:case 22:return 2}return 0}if(In.assert(30===e),!ot()&&87!==je())return 0;if(1===h){return tt((()=>{ut(87);const e=He();if(96===e){switch(He()){case 64:case 32:case 44:return!1;default:return!0}}else if(28===e||64===e)return!0;return!1}))?1:0}return 2}function Cr(){if(134===je()){if(He(),l.hasPrecedingLineBreak()||39===je())return 0;const e=Mr(0);if(!l.hasPrecedingLineBreak()&&80===e.kind&&39===je())return 1}return 0}function Dr(e,t){const n=Be(),r=Ge(),o=ci(),i=se(o,aC)?2:0,a=Cn();let s;if(it(21)){if(e)s=kn(i,e);else{const t=kn(i,e);if(!t)return;s=t}if(!it(22)&&!e)return}else{if(!e)return;s=on()}const l=59===je(),c=Ln(59,!1);if(c&&!e&&Sn(c))return;let d=c;for(;196===(null==d?void 0:d.kind);)d=d.type;const u=d&&gM(d);if(!e&&39!==je()&&(u||19!==je()))return;const p=je(),f=_t(39),m=39===p||19===p?Nr(se(o,aC),t):Rt();if(!t&&l&&59!==je())return;return de(St(R.createArrowFunction(o,a,s,c,f,m),n),r)}function Nr(e,t){if(19===je())return _o(e?2:0);if(27!==je()&&100!==je()&&86!==je()&&Ro()&&(19===je()||100===je()||86===je()||60===je()||!Sr()))return _o(16|(e?2:0));const n=ne;ne=!1;const r=e?Ae((()=>Ar(t))):Ie((()=>Ar(t)));return ne=n,r}function Mr(e){const t=Be();return kr(e,Wr(),t)}function Lr(e){return 103===e||165===e}function kr(e,t,n){for(;;){Je();const i=Dv(je());if(!(43===je()?i>=e:i>e))break;if(103===je()&&De())break;if(130===je()||152===je()){if(l.hasPrecedingLineBreak())break;{const e=je();He(),t=152===e?(r=t,o=vr(),St(R.createSatisfiesExpression(r,o),r.pos)):Or(t,vr())}}else t=wr(t,ht(),Mr(i),n)}var r,o;return t}function Pr(){return(!De()||103!==je())&&Dv(je())>0}function wr(e,t,n,r){return St(R.createBinaryExpression(e,t,n),r)}function Or(e,t){return St(R.createAsExpression(e,t),e.pos)}function Fr(){const e=Be();return St(R.createPrefixUnaryExpression(je(),Ue(zr)),e)}function Wr(){if(function(){switch(je()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(1!==h)return!1;default:return!0}}()){const e=Be(),t=Br();return 43===je()?kr(Dv(je()),t,e):t}const e=je(),t=zr();if(43===je()){const n=Ts(f,t.pos),{end:r}=t;216===t.kind?Fe(n,r,Oa.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(In.assert(Hy(e)),Fe(n,r,Oa.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,as(e)))}return t}function zr(){switch(je()){case 40:case 41:case 55:case 54:return Fr();case 91:return function(){const e=Be();return St(R.createDeleteExpression(Ue(zr)),e)}();case 114:return function(){const e=Be();return St(R.createTypeOfExpression(Ue(zr)),e)}();case 116:return function(){const e=Be();return St(R.createVoidExpression(Ue(zr)),e)}();case 30:return 1===h?Vr(!0,void 0,void 0,!0):function(){In.assert(1!==h,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const e=Be();it(30);const t=vr();it(32);const n=zr();return St(R.createTypeAssertion(t,n),e)}();case 135:if(135===je()&&(ke()||tt(xo)))return function(){const e=Be();return St(R.createAwaitExpression(Ue(zr)),e)}();default:return Br()}}function Br(){if(46===je()||47===je()){const e=Be();return St(R.createPrefixUnaryExpression(je(),Ue(Gr)),e)}if(1===h&&30===je()&&tt(Ht))return Vr(!0);const e=Gr();if(In.assert(iu(e)),(46===je()||47===je())&&!l.hasPrecedingLineBreak()){const t=je();return He(),St(R.createPostfixUnaryExpression(e,t),e.pos)}return e}function Gr(){const e=Be();let t;return 102===je()?tt(jn)?(p|=4194304,t=ht()):tt(Vn)?(He(),He(),t=St(R.createMetaProperty(102,Ct()),e),p|=8388608):t=jr():t=108===je()?function(){const e=Be();let t=ht();if(30===je()){const e=Be(),n=nt(oo);void 0!==n&&(Fe(e,Be(),Oa.super_may_not_use_type_arguments),eo()||(t=R.createExpressionWithTypeArguments(t,n)))}if(21===je()||25===je()||23===je())return t;return _t(25,Oa.super_must_be_followed_by_an_argument_list_or_member_access),St(W(t,cn(!0,!0,!0)),e)}():jr(),no(e,t)}function jr(){return Zr(Be(),io(),!0)}function Vr(e,t,n,r=!1){const o=Be(),i=function(e){const t=Be();if(it(30),32===je())return Ze(),St(R.createJsxOpeningFragment(),t);const n=Kr(),r=0===(524288&I)?hi():void 0,o=function(){const e=Be();return St(R.createJsxAttributes(Yt(13,Jr)),e)}();let i;32===je()?(Ze(),i=R.createJsxOpeningElement(n,r,o)):(it(44),it(32,void 0,!1)&&(e?He():Ze()),i=R.createJsxSelfClosingElement(n,r,o));return St(i,t)}(e);let a;if(286===i.kind){let t,r=Hr(i);const s=r[r.length-1];if(284===(null==s?void 0:s.kind)&&!SP(s.openingElement.tagName,s.closingElement.tagName)&&SP(i.tagName,s.closingElement.tagName)){const e=s.children.end,n=St(R.createJsxElement(s.openingElement,s.children,St(R.createJsxClosingElement(St(L(""),e,e)),e,e)),s.openingElement.pos,e);r=Et([...r.slice(0,r.length-1),n],r.pos,e),t=s.closingElement}else t=function(e,t){const n=Be();it(31);const r=Kr();it(32,void 0,!1)&&(t||!SP(e.tagName,r)?He():Ze());return St(R.createJsxClosingElement(r),n)}(i,e),SP(i.tagName,t.tagName)||(n&&WN(n)&&SP(t.tagName,n.tagName)?We(i.tagName,Oa.JSX_element_0_has_no_corresponding_closing_tag,Tm(f,i.tagName)):We(t.tagName,Oa.Expected_corresponding_JSX_closing_tag_for_0,Tm(f,i.tagName)));a=St(R.createJsxElement(i,r,t),o)}else 289===i.kind?a=St(R.createJsxFragment(i,Hr(i),function(e){const t=Be();it(31),it(32,Oa.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?He():Ze());return St(R.createJsxJsxClosingFragment(),t)}(e)),o):(In.assert(285===i.kind),a=i);if(!r&&e&&30===je()){const e="undefined"===typeof t?a.pos:t,n=nt((()=>Vr(!0,e)));if(n){const t=Tt(28,!1);return Gx(t,n.pos,0),Fe(Ts(f,e),n.end,Oa.JSX_expressions_must_have_one_parent_element),St(R.createBinaryExpression(a,t,n),o)}}return a}function Ur(e,t){switch(t){case 1:if(GN(e))We(e,Oa.JSX_fragment_has_no_corresponding_closing_tag);else{const t=e.tagName;Fe(Math.min(Ts(f,t.pos),t.end),t.end,Oa.JSX_element_0_has_no_corresponding_closing_tag,Tm(f,e.tagName))}return;case 31:case 7:return;case 12:case 13:return function(){const e=Be(),t=R.createJsxText(l.getTokenValue(),13===b);return b=l.scanJsxToken(),St(t,e)}();case 19:return qr(!1);case 30:return Vr(!1,void 0,e);default:return In.assertNever(t)}}function Hr(e){const t=[],n=Be(),r=x;for(x|=16384;;){const n=Ur(e,b=l.reScanJsxToken());if(!n)break;if(t.push(n),WN(e)&&284===(null==n?void 0:n.kind)&&!SP(n.openingElement.tagName,n.closingElement.tagName)&&SP(e.tagName,n.closingElement.tagName))break}return x=r,Et(t,n)}function Kr(){const e=Be(),t=function(){const e=Be();Qe();const t=110===je(),n=Dt();if(ut(59))return Qe(),St(R.createJsxNamespacedName(n,Dt()),e);return t?St(R.createToken(110),e):n}();if(qN(t))return t;let n=t;for(;ut(25);)n=St(W(n,cn(!0,!1,!1)),e);return n}function qr(e){const t=Be();if(!it(19))return;let n,r;return 20!==je()&&(e||(n=pt(26)),r=Tr()),e?it(20):it(20,void 0,!1)&&Ze(),St(R.createJsxExpression(n,r),t)}function Jr(){if(19===je())return function(){const e=Be();it(19),it(26);const t=Tr();return it(20),St(R.createJsxSpreadAttribute(t),e)}();const e=Be();return St(R.createJsxAttribute(function(){const e=Be();Qe();const t=Dt();if(ut(59))return Qe(),St(R.createJsxNamespacedName(t,Dt()),e);return t}(),function(){if(64===je()){if(11===(b=l.scanJsxAttributeValue()))return hn();if(19===je())return qr(!0);if(30===je())return Vr(!0);Pe(Oa.or_JSX_element_expected)}return}()),e)}function Xr(){return He(),ns(je())||23===je()||eo()}function $r(e){if(64&e.flags)return!0;if(kD(e)){let t=e.expression;for(;kD(t)&&!(64&t.flags);)t=t.expression;if(64&t.flags){for(;kD(e);)e.flags|=64,e=e.expression;return!0}}return!1}function Yr(e,t,n){const r=cn(!0,!0,!0),o=n||$r(t),i=o?z(t,n,r):W(t,r);if(o&&rC(i.name)&&We(i.name,Oa.An_optional_chain_cannot_contain_private_identifiers),ND(t)&&t.typeArguments){Fe(t.typeArguments.pos-1,Ts(f,t.typeArguments.end)+1,Oa.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return St(i,e)}function Qr(e,t,n){let r;if(24===je())r=Tt(80,!0,Oa.An_element_access_expression_should_take_an_argument);else{const e=be(Tr);tv(e)&&(e.text=xt(e.text)),r=e}it(24);return St(n||$r(t)?G(t,n,r):B(t,r),e)}function Zr(e,t,n){for(;;){let r,o=!1;if(n&&29===je()&&tt(Xr)?(r=_t(29),o=ns(je())):o=ut(25),o)t=Yr(e,t,r);else if(!r&&Me()||!ut(23)){if(!eo()){if(!r){if(54===je()&&!l.hasPrecedingLineBreak()){He(),t=St(R.createNonNullExpression(t),e);continue}const n=nt(oo);if(n){t=St(R.createExpressionWithTypeArguments(t,n),e);continue}}return t}t=r||233!==t.kind?to(e,t,r,void 0):to(e,t.expression,r,t.typeArguments)}else t=Qr(e,t,r)}}function eo(){return 15===je()||16===je()}function to(e,t,n,r){const o=R.createTaggedTemplateExpression(t,r,15===je()?(Xe(!0),hn()):un(!0));return(n||64&t.flags)&&(o.flags|=64),o.questionDotToken=n,St(o,e)}function no(e,t){for(;;){let n;t=Zr(e,t,!0);const r=pt(29);if(r&&(n=nt(oo),eo()))t=to(e,t,r,n);else{if(!n&&21!==je()){if(r){const n=Tt(80,!1,Oa.Identifier_expected);t=St(z(t,r,n),e)}break}{r||233!==t.kind||(n=t.typeArguments,t=t.expression);const o=ro();t=St(r||$r(t)?V(t,r,n,o):j(t,n,o),e)}}}return t}function ro(){it(21);const e=nn(11,so);return it(22),e}function oo(){if(0!==(524288&I))return;if(30!==$e())return;He();const e=nn(20,vr);return 32===Je()?(He(),e&&function(){switch(je()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return l.hasPrecedingLineBreak()||Pr()||!Sr()}()?e:void 0):void 0}function io(){switch(je()){case 15:26656&l.getTokenFlags()&&Xe(!1);case 9:case 10:case 11:return hn();case 110:case 108:case 106:case 112:case 97:return ht();case 21:return function(){const e=Be(),t=Ge();it(21);const n=be(Tr);return it(22),de(St(H(n),e),t)}();case 23:return lo();case 19:return uo();case 134:if(!tt(To))break;return po();case 60:return function(){const e=Be(),t=Ge(),n=li(!0);if(86===je())return pi(e,t,n,231);const r=Tt(282,!0,Oa.Expression_expected);return Wx(r,e),r.modifiers=n,r}();case 86:return pi(Be(),Ge(),void 0,231);case 100:return po();case 105:return function(){const e=Be();if(it(105),ut(25)){const t=Ct();return St(R.createMetaProperty(105,t),e)}let t,n=Zr(Be(),io(),!1);233===n.kind&&(t=n.typeArguments,n=n.expression);29===je()&&Pe(Oa.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Tm(f,n));const r=21===je()?ro():void 0;return St(U(n,t,r),e)}();case 44:case 69:if(14===(b=l.reScanSlashToken()))return hn();break;case 16:return un(!1);case 81:return kt()}return Rt(Oa.Expression_expected)}function ao(){return 26===je()?function(){const e=Be();it(26);const t=Ar(!0);return St(R.createSpreadElement(t),e)}():28===je()?St(R.createOmittedExpression(),Be()):Ar(!0)}function so(){return ye(c,ao)}function lo(){const e=Be(),t=l.getTokenStart(),n=it(23),r=l.hasPrecedingLineBreak(),o=nn(15,ao);return dt(23,24,n,t),St(O(o,r),e)}function co(){const e=Be(),t=Ge();if(pt(26)){const n=Ar(!0);return de(St(R.createSpreadAssignment(n),e),t)}const n=li(!0);if(Pt(139))return ni(e,t,n,177,0);if(Pt(153))return ni(e,t,n,178,0);const r=pt(42),o=ot(),i=Lt(),a=pt(58),s=pt(54);if(r||21===je()||30===je())return Zo(e,t,n,r,i,a,s);let l;if(o&&59!==je()){const e=pt(64),t=e?be((()=>Ar(!0))):void 0;l=R.createShorthandPropertyAssignment(i,t),l.equalsToken=e}else{it(59);const e=be((()=>Ar(!0)));l=R.createPropertyAssignment(i,e)}return l.modifiers=n,l.questionToken=a,l.exclamationToken=s,de(St(l,e),t)}function uo(){const e=Be(),t=l.getTokenStart(),n=it(19),r=l.hasPrecedingLineBreak(),o=nn(12,co,!0);return dt(19,20,n,t),St(F(o,r),e)}function po(){const e=Me();he(!1);const t=Be(),n=Ge(),r=li(!1);it(100);const o=pt(42),i=o?1:0,a=se(r,aC)?2:0,s=i&&a?ve(81920,fo):i?function(e){return ve(16384,e)}(fo):a?Ae(fo):fo();const l=Cn(),c=Pn(i|a),d=Ln(59,!1),u=_o(i|a);he(e);return de(St(R.createFunctionExpression(r,o,s,l,c,d,u),t),n)}function fo(){return rt()?It():void 0}function mo(e,t){const n=Be(),r=Ge(),o=l.getTokenStart(),i=it(19,t);if(i||e){const e=l.hasPrecedingLineBreak(),t=Yt(1,Po);dt(19,20,i,o);const a=de(St(K(t,e),n),r);return 64===je()&&(Pe(Oa.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),He()),a}{const e=on();return de(St(K(e,void 0),n),r)}}function _o(e,t){const n=Ce();_e(!!(1&e));const r=ke();ge(!!(2&e));const o=ne;ne=!1;const i=Me();i&&he(!1);const a=mo(!!(16&e),t);return i&&he(!0),ne=o,_e(n),ge(r),a}function ho(){const e=Be(),t=Ge();it(99);const n=pt(135);let r;let o;if(it(21),27!==je()&&(r=115===je()||121===je()||87===je()||160===je()&&tt(Do)||135===je()&&tt(Lo)?Jo(!0):ve(8192,Tr)),n?it(165):ut(165)){const e=be((()=>Ar(!0)));it(22),o=Q(n,r,e,Po())}else if(ut(103)){const e=be(Tr);it(22),o=R.createForInStatement(r,e,Po())}else{it(27);const e=27!==je()&&22!==je()?be(Tr):void 0;it(27);const t=22!==je()?be(Tr):void 0;it(22),o=Y(r,e,t,Po())}return de(St(o,e),t)}function go(e){const t=Be(),n=Ge();it(252===e?83:88);const r=gt()?void 0:Rt();vt();return de(St(252===e?R.createBreakStatement(r):R.createContinueStatement(r),t),n)}function yo(){return 84===je()?function(){const e=Be(),t=Ge();it(84);const n=be(Tr);it(59);const r=Yt(3,Po);return de(St(R.createCaseClause(n,r),e),t)}():function(){const e=Be();it(90),it(59);const t=Yt(3,Po);return St(R.createDefaultClause(t),e)}()}function vo(){const e=Be(),t=Ge();it(109),it(21);const n=be(Tr);it(22);const r=function(){const e=Be();it(19);const t=Yt(2,yo);return it(20),St(R.createCaseBlock(t),e)}();return de(St(R.createSwitchStatement(n,r),e),t)}function bo(){const e=Be(),t=Ge();it(113);const n=mo(!1),r=85===je()?function(){const e=Be();let t;it(85),ut(21)?(t=qo(),it(22)):t=void 0;const n=mo(!1);return St(R.createCatchClause(t,n),e)}():void 0;let o;return r&&98!==je()||(it(98,Oa.catch_or_finally_expected),o=mo(!1)),de(St(R.createTryStatement(n,r,o),e),t)}function Eo(){return He(),ns(je())&&!l.hasPrecedingLineBreak()}function So(){return He(),86===je()&&!l.hasPrecedingLineBreak()}function To(){return He(),100===je()&&!l.hasPrecedingLineBreak()}function xo(){return He(),(ns(je())||9===je()||10===je()||11===je())&&!l.hasPrecedingLineBreak()}function Ao(){for(;;)switch(je()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Mo();case 135:return ko();case 120:case 156:return He(),!l.hasPrecedingLineBreak()&&ot();case 144:case 145:return Bo();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const e=je();if(He(),l.hasPrecedingLineBreak())return!1;if(138===e&&156===je())return!0;continue;case 162:return He(),19===je()||80===je()||95===je();case 102:return He(),11===je()||42===je()||19===je()||ns(je());case 95:let t=He();if(156===t&&(t=tt(He)),64===t||42===t||19===t||90===t||130===t||60===t)return!0;continue;case 126:He();continue;default:return!1}}function Io(){return tt(Ao)}function Ro(){switch(je()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 102:return Io()||tt(Un);case 87:case 95:return Io();case 129:case 125:case 123:case 124:case 126:case 148:return Io()||!tt(Eo);default:return Sr()}}function Co(){return He(),rt()||19===je()||23===je()}function Do(){return No(!0)}function No(e){return He(),(!e||165!==je())&&((rt()||19===je())&&!l.hasPrecedingLineBreak())}function Mo(){return tt(No)}function Lo(e){return 160===He()&&No(e)}function ko(){return tt(Lo)}function Po(){switch(je()){case 27:return function(){const e=Be(),t=Ge();return it(27),de(St(R.createEmptyStatement(),e),t)}();case 19:return mo(!1);case 115:return $o(Be(),Ge(),void 0);case 121:if(tt(Co))return $o(Be(),Ge(),void 0);break;case 135:if(ko())return $o(Be(),Ge(),void 0);break;case 160:if(Mo())return $o(Be(),Ge(),void 0);break;case 100:return Yo(Be(),Ge(),void 0);case 86:return ui(Be(),Ge(),void 0);case 101:return function(){const e=Be(),t=Ge();it(101);const n=l.getTokenStart(),r=it(21),o=be(Tr);dt(21,22,r,n);const i=Po(),a=ut(93)?Po():void 0;return de(St(X(o,i,a),e),t)}();case 92:return function(){const e=Be(),t=Ge();it(92);const n=Po();it(117);const r=l.getTokenStart(),o=it(21),i=be(Tr);return dt(21,22,o,r),ut(27),de(St(R.createDoStatement(n,i),e),t)}();case 117:return function(){const e=Be(),t=Ge();it(117);const n=l.getTokenStart(),r=it(21),o=be(Tr);dt(21,22,r,n);const i=Po();return de(St($(o,i),e),t)}();case 99:return ho();case 88:return go(251);case 83:return go(252);case 107:return function(){const e=Be(),t=Ge();it(107);const n=gt()?void 0:be(Tr);return vt(),de(St(R.createReturnStatement(n),e),t)}();case 118:return function(){const e=Be(),t=Ge();it(118);const n=l.getTokenStart(),r=it(21),o=be(Tr);dt(21,22,r,n);const i=ve(67108864,Po);return de(St(R.createWithStatement(o,i),e),t)}();case 109:return vo();case 111:return function(){const e=Be(),t=Ge();it(111);let n=l.hasPrecedingLineBreak()?void 0:be(Tr);return void 0===n&&(T++,n=St(L(""),Be())),yt()||st(n),de(St(R.createThrowStatement(n),e),t)}();case 113:case 85:case 98:return bo();case 89:return function(){const e=Be(),t=Ge();return it(89),vt(),de(St(R.createDebuggerStatement(),e),t)}();case 60:return Oo();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Io())return Oo()}return function(){const e=Be();let t,n=Ge();const r=21===je(),o=be(Tr);return nC(o)&&ut(59)?t=R.createLabeledStatement(o,Po()):(yt()||st(o),t=J(o),r&&(n=!1)),de(St(t,e),n)}()}function wo(e){return 138===e.kind}function Oo(){const e=Be(),t=Ge(),n=li(!0);if(se(n,wo)){const r=function(e){return ve(33554432,(()=>{const t=Zt(x,e);if(t)return en(t)}))}(e);if(r)return r;for(const e of n)e.flags|=33554432;return ve(33554432,(()=>Fo(e,t,n)))}return Fo(e,t,n)}function Fo(e,t,n){switch(je()){case 115:case 121:case 87:case 160:case 135:return $o(e,t,n);case 100:return Yo(e,t,n);case 86:return ui(e,t,n);case 120:return function(e,t,n){it(120);const r=Rt(),o=Cn(),i=fi(),a=Hn();return de(St(R.createInterfaceDeclaration(n,r,o,i,a),e),t)}(e,t,n);case 156:return function(e,t,n){it(156),l.hasPrecedingLineBreak()&&Pe(Oa.Line_break_not_permitted_here);const r=Rt(),o=Cn();it(64);const i=141===je()&&nt(Zn)||vr();vt();return de(St(R.createTypeAliasDeclaration(n,r,o,i),e),t)}(e,t,n);case 94:return function(e,t,n){it(94);const r=Rt();let o;it(19)?(o=ye(81920,(()=>nn(6,yi))),it(20)):o=on();return de(St(R.createEnumDeclaration(n,r,o),e),t)}(e,t,n);case 162:case 144:case 145:return function(e,t,n){let r=0;if(162===je())return Ei(e,t,n);if(ut(145))r|=32;else if(it(144),11===je())return Ei(e,t,n);return bi(e,t,n,r)}(e,t,n);case 102:return function(e,t,n){it(102);const r=l.getTokenFullStart();let o;ot()&&(o=Rt());let i,a=!1;"type"===(null==o?void 0:o.escapedText)&&(161!==je()||ot()&&tt(zo))&&(ot()||42===je()||19===je())&&(a=!0,o=ot()?Rt():void 0);if(o&&28!==je()&&161!==je())return function(e,t,n,r,o){it(64);const i=149===je()&&tt(Si)?function(){const e=Be();it(149),it(21);const t=Ri();return it(22),St(R.createExternalModuleReference(t),e)}():sn(!1);vt();const a=R.createImportEqualsDeclaration(n,o,r,i),s=de(St(a,e),t);return s}(e,t,n,o,a);(o||42===je()||19===je())&&(i=function(e,t,n){let r;e&&!ut(28)||(r=42===je()?function(){const e=Be();it(42),it(130);const t=Rt();return St(R.createNamespaceImport(t),e)}():Ci(275));return St(R.createImportClause(n,e,r),t)}(o,r,a),it(161));const s=Ri(),c=je();let d;118!==c&&132!==c||l.hasPrecedingLineBreak()||(d=Ii(c));vt();return de(St(R.createImportDeclaration(n,i,s,d),e),t)}(e,t,n);case 95:switch(He(),je()){case 90:case 64:return function(e,t,n){const r=ke();let o;ge(!0),ut(64)?o=!0:it(90);const i=Ar(!0);vt(),ge(r);return de(St(R.createExportAssignment(n,o,i),e),t)}(e,t,n);case 130:return function(e,t,n){it(130),it(145);const r=Rt();vt();const o=R.createNamespaceExportDeclaration(r);return o.modifiers=n,de(St(o,e),t)}(e,t,n);default:return function(e,t,n){const r=ke();let o,i,a;ge(!0);const s=ut(156),c=Be();ut(42)?(ut(130)&&(o=function(e){return St(R.createNamespaceExport(Ct()),e)}(c)),it(161),i=Ri()):(o=Ci(279),(161===je()||11===je()&&!l.hasPrecedingLineBreak())&&(it(161),i=Ri()));const d=je();!i||118!==d&&132!==d||l.hasPrecedingLineBreak()||(a=Ii(d));vt(),ge(r);return de(St(R.createExportDeclaration(n,s,o,i,a),e),t)}(e,t,n)}default:if(n){const t=Tt(282,!0,Oa.Declaration_expected);return Wx(t,e),t.modifiers=n,t}return}}function Wo(){return 11===He()}function zo(){return He(),161===je()||64===je()}function Bo(){return He(),!l.hasPrecedingLineBreak()&&(ot()||11===je())}function Go(e,t){if(19!==je()){if(4&e)return void wn();if(gt())return void vt()}return _o(e,t)}function jo(){const e=Be();if(28===je())return St(R.createOmittedExpression(),e);const t=pt(26),n=Ho(),r=xr();return St(R.createBindingElement(t,void 0,n,r),e)}function Vo(){const e=Be(),t=pt(26),n=rt();let r,o=Lt();n&&59!==je()?(r=o,o=void 0):(it(59),r=Ho());const i=xr();return St(R.createBindingElement(t,o,r,i),e)}function Uo(){return 19===je()||23===je()||81===je()||rt()}function Ho(e){return 23===je()?function(){const e=Be();it(23);const t=be((()=>nn(10,jo)));return it(24),St(R.createArrayBindingPattern(t),e)}():19===je()?function(){const e=Be();it(19);const t=be((()=>nn(9,Vo)));return it(20),St(R.createObjectBindingPattern(t),e)}():It(e)}function Ko(){return qo(!0)}function qo(e){const t=Be(),n=Ge(),r=Ho(Oa.Private_identifiers_are_not_allowed_in_variable_declarations);let o;e&&80===r.kind&&54===je()&&!l.hasPrecedingLineBreak()&&(o=ht());const i=br(),a=Lr(je())?void 0:xr();return de(St(ee(r,o,i,a),t),n)}function Jo(e){const t=Be();let n,r=0;switch(je()){case 115:break;case 121:r|=1;break;case 87:r|=2;break;case 160:r|=4;break;case 135:In.assert(ko()),r|=6,He();break;default:In.fail()}if(He(),165===je()&&tt(Xo))n=on();else{const t=De();me(e),n=nn(8,e?qo:Ko),me(t)}return St(te(n,r),t)}function Xo(){return Vt()&&22===He()}function $o(e,t,n){const r=Jo(!1);vt();return de(St(q(n,r),e),t)}function Yo(e,t,n){const r=ke(),o=aE(n);it(100);const i=pt(42),a=2048&o?fo():It(),s=i?1:0,l=1024&o?2:0,c=Cn();32&o&&ge(!0);const d=Pn(s|l),u=Ln(59,!1),p=Go(s|l,Oa.or_expected);ge(r);return de(St(R.createFunctionDeclaration(n,i,a,c,d,u,p),e),t)}function Qo(e,t,n){return nt((()=>{if(137===je()?it(137):11===je()&&21===tt(He)?nt((()=>{const e=hn();return"constructor"===e.text?e:void 0})):void 0){const r=Cn(),o=Pn(0),i=Ln(59,!1),a=Go(0,Oa.or_expected),s=R.createConstructorDeclaration(n,o,a);return s.typeParameters=r,s.type=i,de(St(s,e),t)}}))}function Zo(e,t,n,r,o,i,a,s){const l=r?1:0,c=se(n,aC)?2:0,d=Cn(),u=Pn(l|c),p=Ln(59,!1),f=Go(l|c,s),m=R.createMethodDeclaration(n,r,o,i,d,u,p,f);return m.exclamationToken=a,de(St(m,e),t)}function ei(e,t,n,r,o){const i=o||l.hasPrecedingLineBreak()?void 0:pt(54),a=br(),s=ye(90112,xr);!function(e,t,n){if(60!==je()||l.hasPrecedingLineBreak())return 21===je()?(Pe(Oa.Cannot_start_a_function_call_in_a_type_annotation),void He()):void(!t||gt()?yt()||(n?Pe(Oa._0_expected,as(27)):st(e)):n?Pe(Oa._0_expected,as(27)):Pe(Oa.Expected_for_property_initializer));Pe(Oa.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(r,a,s);return de(St(R.createPropertyDeclaration(n,r,o||i,a,s),e),t)}function ti(e,t,n){const r=pt(42),o=Lt(),i=pt(58);return r||21===je()||30===je()?Zo(e,t,n,r,o,i,void 0,Oa.or_expected):ei(e,t,n,o,i)}function ni(e,t,n,r,o){const i=Lt(),a=Cn(),s=Pn(0),l=Ln(59,!1),c=Go(o),d=177===r?R.createGetAccessorDeclaration(n,i,s,l,c):R.createSetAccessorDeclaration(n,i,s,c);return d.typeParameters=a,DC(d)&&(d.type=l),de(St(d,e),t)}function ri(){let e;if(60===je())return!0;for(;hd(je());){if(e=je(),yd(e))return!0;He()}if(42===je())return!0;if(Nt()&&(e=je(),He()),23===je())return!0;if(void 0!==e){if(!Vy(e)||153===e||139===e)return!0;switch(je()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return gt()}}return!1}function oi(e,t,n){_t(126);const r=function(){const e=Ce(),t=ke();_e(!1),ge(!0);const n=mo(!1);return _e(e),ge(t),n}(),o=de(St(R.createClassStaticBlockDeclaration(r),e),t);return o.modifiers=n,o}function ii(){if(ke()&&135===je()){const e=Be(),t=Rt(Oa.Expression_expected);He();return no(e,Zr(e,t,!0))}return Gr()}function ai(){const e=Be();if(!ut(60))return;const t=ve(32768,ii);return St(R.createDecorator(t),e)}function si(e,t,n){const r=Be(),o=je();if(87===je()&&t){if(!nt(wt))return}else{if(n&&126===je()&&tt(Ti))return;if(e&&126===je())return;if(!hd(je())||!nt(Ot))return}return St(w(o),r)}function li(e,t,n){const r=Be();let o,i,a,s=!1,l=!1,c=!1;if(e&&60===je())for(;i=ai();)o=Ee(o,i);for(;a=si(s,t,n);)126===a.kind&&(s=!0),o=Ee(o,a),l=!0;if(l&&e&&60===je())for(;i=ai();)o=Ee(o,i),c=!0;if(c)for(;a=si(s,t,n);)126===a.kind&&(s=!0),o=Ee(o,a);return o&&Et(o,r)}function ci(){let e;if(134===je()){const t=Be();He();e=Et([St(w(134),t)],t)}return e}function di(){const e=Be(),t=Ge();if(27===je())return He(),de(St(R.createSemicolonClassElement(),e),t);const n=li(!0,!0,!0);if(126===je()&&tt(Ti))return oi(e,t,n);if(Pt(139))return ni(e,t,n,177,0);if(Pt(153))return ni(e,t,n,178,0);if(137===je()||11===je()){const r=Qo(e,t,n);if(r)return r}if(Fn())return zn(e,t,n);if(ns(je())||11===je()||9===je()||42===je()||23===je()){if(se(n,wo)){for(const e of n)e.flags|=33554432;return ve(33554432,(()=>ti(e,t,n)))}return ti(e,t,n)}if(n){const r=Tt(80,!0,Oa.Declaration_expected);return ei(e,t,n,r,void 0)}return In.fail("Should not have attempted to parse class member declaration.")}function ui(e,t,n){return pi(e,t,n,263)}function pi(e,t,n,r){const o=ke();it(86);const i=!rt()||119===je()&&tt(Ut)?void 0:At(rt()),a=Cn();se(n,oC)&&ge(!0);const s=fi();let l;it(19)?(l=Yt(5,di),it(20)):l=on(),ge(o);return de(St(263===r?R.createClassDeclaration(n,i,a,s,l):R.createClassExpression(n,i,a,s,l),e),t)}function fi(){if(gi())return Yt(22,mi)}function mi(){const e=Be(),t=je();In.assert(96===t||119===t),He();const n=nn(7,_i);return St(R.createHeritageClause(t,n),e)}function _i(){const e=Be(),t=Gr();if(233===t.kind)return t;const n=hi();return St(R.createExpressionWithTypeArguments(t,n),e)}function hi(){return 30===je()?an(20,vr,30,32):void 0}function gi(){return 96===je()||119===je()}function yi(){const e=Be(),t=Ge(),n=Lt(),r=be(xr);return de(St(R.createEnumMember(n,r),e),t)}function vi(){const e=Be();let t;return it(19)?(t=Yt(1,Po),it(20)):t=on(),St(R.createModuleBlock(t),e)}function bi(e,t,n,r){const o=32&r,i=8&r?Ct():Rt(),a=ut(25)?bi(Be(),!1,void 0,8|o):vi();return de(St(R.createModuleDeclaration(n,i,a,r),e),t)}function Ei(e,t,n){let r,o,i=0;162===je()?(r=Rt(),i|=2048):(r=hn(),r.text=xt(r.text)),19===je()?o=vi():vt();return de(St(R.createModuleDeclaration(n,r,o,i),e),t)}function Si(){return 21===He()}function Ti(){return 19===He()}function xi(){return 44===He()}function Ai(){const e=Be(),t=ns(je())?Ct():yn(11);it(59);const n=Ar(!0);return St(R.createImportAttribute(t,n),e)}function Ii(e,t){const n=Be();t||it(e);const r=l.getTokenStart();if(it(19)){const t=l.hasPrecedingLineBreak(),o=nn(24,Ai,!0);if(!it(20)){const e=Oe(g);e&&e.code===Oa._0_expected.code&&xx(e,tT(u,f,r,1,Oa.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return St(R.createImportAttributes(o,t,e),n)}{const t=Et([],Be(),void 0,!1);return St(R.createImportAttributes(t,!1,e),n)}}function Ri(){if(11===je()){const e=hn();return e.text=xt(e.text),e}return Tr()}function Ci(e){const t=Be();return St(275===e?R.createNamedImports(an(23,Ni,19,20)):R.createNamedExports(an(23,Di,19,20)),t)}function Di(){const e=Ge();return de(Mi(281),e)}function Ni(){return Mi(276)}function Mi(e){const t=Be();let n,r=Vy(je())&&!ot(),o=l.getTokenStart(),i=l.getTokenEnd(),a=!1,s=!0,c=Ct();if("type"===c.escapedText)if(130===je()){const e=Ct();if(130===je()){const t=Ct();ns(je())?(a=!0,n=e,c=d(),s=!1):(n=c,c=t,s=!1)}else ns(je())?(n=c,s=!1,c=d()):(a=!0,c=e)}else ns(je())&&(a=!0,c=d());s&&130===je()&&(n=c,it(130),c=d()),276===e&&r&&Fe(o,i,Oa.Identifier_expected);return St(276===e?R.createImportSpecifier(a,n,c):R.createExportSpecifier(a,n,c),t);function d(){return r=Vy(je())&&!ot(),o=l.getTokenStart(),i=l.getTokenEnd(),Ct()}}let Li;var ki;let Pi;var wi;let Oi;(ki=Li||(Li={}))[ki.SourceElements=0]="SourceElements",ki[ki.BlockStatements=1]="BlockStatements",ki[ki.SwitchClauses=2]="SwitchClauses",ki[ki.SwitchClauseStatements=3]="SwitchClauseStatements",ki[ki.TypeMembers=4]="TypeMembers",ki[ki.ClassMembers=5]="ClassMembers",ki[ki.EnumMembers=6]="EnumMembers",ki[ki.HeritageClauseElement=7]="HeritageClauseElement",ki[ki.VariableDeclarations=8]="VariableDeclarations",ki[ki.ObjectBindingElements=9]="ObjectBindingElements",ki[ki.ArrayBindingElements=10]="ArrayBindingElements",ki[ki.ArgumentExpressions=11]="ArgumentExpressions",ki[ki.ObjectLiteralMembers=12]="ObjectLiteralMembers",ki[ki.JsxAttributes=13]="JsxAttributes",ki[ki.JsxChildren=14]="JsxChildren",ki[ki.ArrayLiteralMembers=15]="ArrayLiteralMembers",ki[ki.Parameters=16]="Parameters",ki[ki.JSDocParameters=17]="JSDocParameters",ki[ki.RestProperties=18]="RestProperties",ki[ki.TypeParameters=19]="TypeParameters",ki[ki.TypeArguments=20]="TypeArguments",ki[ki.TupleElementTypes=21]="TupleElementTypes",ki[ki.HeritageClauses=22]="HeritageClauses",ki[ki.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",ki[ki.ImportAttributes=24]="ImportAttributes",ki[ki.JSDocComment=25]="JSDocComment",ki[ki.Count=26]="Count",(wi=Pi||(Pi={}))[wi.False=0]="False",wi[wi.True=1]="True",wi[wi.Unknown=2]="Unknown",(e=>{function t(e){const t=Be(),n=(e?ut:it)(19),r=ve(16777216,An);e&&!n||ct(20);const o=R.createJSDocTypeExpression(r);return ue(o),St(o,t)}function n(){const e=Be(),t=ut(19),n=Be();let r=sn(!1);for(;81===je();)Ye(),Ke(),r=St(R.createJSDocMemberName(r,Rt()),n);t&&ct(20);const o=R.createJSDocNameReference(r);return ue(o),St(o,e)}let r;var o;let i;var a;function s(e=0,r){const o=f,i=void 0===r?o.length:e+r;if(r=i-e,In.assert(e>=0),In.assert(e<=i),In.assert(i<=o.length),!Fk(o,e))return;let a,s,c,d,p,m=[];const _=[],h=x;x|=1<<25;const g=l.scanRange(e+3,r-5,(function(){let t,n=1,r=e-(o.lastIndexOf("\n",e)+1)+4;function u(e){t||(t=r),m.push(e),r+=e.length}Ke();for(;Y(5););Y(4)&&(n=0,r=0);e:for(;;){switch(je()){case 60:v(m),p||(p=Be()),k(A(r)),n=0,t=void 0;break;case 4:m.push(l.getTokenText()),n=0,r=0;break;case 42:const o=l.getTokenText();1===n?(n=2,u(o)):(In.assert(0===n),n=1,r+=o.length);break;case 5:In.assert(2!==n,"whitespace shouldn't come from the scanner while saving top-level comment text");const i=l.getTokenText();void 0!==t&&r+i.length>t&&m.push(i.slice(t-r)),r+=i.length;break;case 1:break e;case 82:n=2,u(l.getTokenValue());break;case 19:n=2;const a=l.getTokenFullStart(),s=D(l.getTokenEnd()-1);if(s){d||y(m),_.push(St(R.createJSDocText(m.join("")),d??e,a)),_.push(s),m=[],d=l.getTokenEnd();break}default:n=2,u(l.getTokenText())}2===n?qe(!1):Ke()}const f=m.join("").trimEnd();_.length&&f.length&&_.push(St(R.createJSDocText(f),d??e,p));_.length&&a&&In.assertIsDefined(p,"having parsed tags implies that the end of the comment span should be set");const h=a&&Et(a,s,c);return St(R.createJSDocComment(_.length?Et(_,e,p):f.length?f:void 0,h),e,i)}));return x=h,g;function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length;){const t=e[e.length-1].trimEnd();if(""!==t){if(t.length<e[e.length-1].length){e[e.length-1]=t;break}break}e.pop()}}function b(){for(;;){if(Ke(),1===je())return!0;if(5!==je()&&4!==je())return!1}}function E(){if(5!==je()&&4!==je()||!tt(b))for(;5===je()||4===je();)Ke()}function S(){if((5===je()||4===je())&&tt(b))return"";let e=l.hasPrecedingLineBreak(),t=!1,n="";for(;e&&42===je()||5===je()||4===je();)n+=l.getTokenText(),4===je()?(e=!0,t=!0,n=""):42===je()&&(e=!1),Ke();return t?n:""}function A(e){In.assert(60===je());const r=l.getTokenStart();Ke();const o=Q(void 0),i=S();let s;switch(o.escapedText){case"author":s=function(e,t,n,r){const o=Be(),i=function(){const e=[];let t=!1,n=l.getToken();for(;1!==n&&4!==n;){if(30===n)t=!0;else{if(60===n&&!t)break;if(32===n&&t){e.push(l.getTokenText()),l.resetTokenState(l.getTokenEnd());break}}e.push(l.getTokenText()),n=Ke()}return R.createJSDocText(e.join(""))}();let a=l.getTokenFullStart();const s=I(e,a,n,r);s||(a=l.getTokenFullStart());const c="string"!==typeof s?Et(ce([St(i,o,a)],s),o):i.text+s;return St(R.createJSDocAuthorTag(t,c),e)}(r,o,e,i);break;case"implements":s=function(e,t,n,r){const o=B();return St(R.createJSDocImplementsTag(t,o,I(e,Be(),n,r)),e)}(r,o,e,i);break;case"augments":case"extends":s=function(e,t,n,r){const o=B();return St(R.createJSDocAugmentsTag(t,o,I(e,Be(),n,r)),e)}(r,o,e,i);break;case"class":case"constructor":s=G(r,R.createJSDocClassTag,o,e,i);break;case"public":s=G(r,R.createJSDocPublicTag,o,e,i);break;case"private":s=G(r,R.createJSDocPrivateTag,o,e,i);break;case"protected":s=G(r,R.createJSDocProtectedTag,o,e,i);break;case"readonly":s=G(r,R.createJSDocReadonlyTag,o,e,i);break;case"override":s=G(r,R.createJSDocOverrideTag,o,e,i);break;case"deprecated":le=!0,s=G(r,R.createJSDocDeprecatedTag,o,e,i);break;case"this":s=j(r,o,e,i);break;case"enum":s=function(e,n,r,o){const i=t(!0);return E(),St(R.createJSDocEnumTag(n,i,I(e,Be(),r,o)),e)}(r,o,e,i);break;case"arg":case"argument":case"param":return F(r,o,2,e);case"return":case"returns":s=function(e,t,n,r){se(a,FM)&&Fe(t.pos,l.getTokenStart(),Oa._0_tag_already_specified,Ll(t.escapedText));const o=P();return St(R.createJSDocReturnTag(t,o,I(e,Be(),n,r)),e)}(r,o,e,i);break;case"template":s=$(r,o,e,i);break;case"type":s=z(r,o,e,i);break;case"typedef":s=function(e,t,n,r){let o=P();S();const i=V();E();let a,s=C(n);if(!o||O(o.type)){let t,r,i,s=!1;for(;(t=nt((()=>K(n))))&&352!==t.kind;)if(s=!0,351===t.kind){if(r){const e=Pe(Oa.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&xx(e,tT(u,f,0,0,Oa.The_tag_was_first_specified_here));break}r=t}else i=Ee(i,t);if(s){const t=o&&188===o.type.kind,n=R.createJSDocTypeLiteral(i,t);o=r&&r.typeExpression&&!O(r.typeExpression.type)?r.typeExpression:St(n,e),a=o.end}}a=a||void 0!==s?Be():(i??o??t).end,s||(s=I(e,a,n,r));const l=R.createJSDocTypedefTag(t,o,i,s);return St(l,e,a)}(r,o,e,i);break;case"callback":s=function(e,t,n,r){const o=V();E();let i=C(n);const a=U(e,n);i||(i=I(e,Be(),n,r));const s=void 0!==i?Be():a.end;return St(R.createJSDocCallbackTag(t,a,o,i),e,s)}(r,o,e,i);break;case"overload":s=function(e,t,n,r){E();let o=C(n);const i=U(e,n);o||(o=I(e,Be(),n,r));const a=void 0!==o?Be():i.end;return St(R.createJSDocOverloadTag(t,i,o),e,a)}(r,o,e,i);break;case"satisfies":s=function(e,n,r,o){const i=t(!1),a=void 0!==r&&void 0!==o?I(e,Be(),r,o):void 0;return St(R.createJSDocSatisfiesTag(n,i,a),e)}(r,o,e,i);break;case"see":s=function(e,t,r,o){const i=23===je()||tt((()=>60===Ke()&&ns(Ke())&&M(l.getTokenValue())))?void 0:n(),a=void 0!==r&&void 0!==o?I(e,Be(),r,o):void 0;return St(R.createJSDocSeeTag(t,i,a),e)}(r,o,e,i);break;case"exception":case"throws":s=function(e,t,n,r){const o=P(),i=I(e,Be(),n,r);return St(R.createJSDocThrowsTag(t,o,i),e)}(r,o,e,i);break;default:s=function(e,t,n,r){return St(R.createJSDocUnknownTag(t,I(e,Be(),n,r)),e)}(r,o,e,i)}return s}function I(e,t,n,r){return r||(n+=t-e),C(n,r.slice(n))}function C(e,t){const n=Be();let r=[];const o=[];let i,a,s=0;function c(t){a||(a=e),r.push(t),e+=t.length}void 0!==t&&(""!==t&&c(t),s=1);let d=je();e:for(;;){switch(d){case 4:s=0,r.push(l.getTokenText()),e=0;break;case 60:l.resetTokenState(l.getTokenEnd()-1);break e;case 1:break e;case 5:In.assert(2!==s&&3!==s,"whitespace shouldn't come from the scanner while saving comment text");const t=l.getTokenText();void 0!==a&&e+t.length>a&&(r.push(t.slice(a-e)),s=2),e+=t.length;break;case 19:s=2;const d=l.getTokenFullStart(),u=D(l.getTokenEnd()-1);u?(o.push(St(R.createJSDocText(r.join("")),i??n,d)),o.push(u),r=[],i=l.getTokenEnd()):c(l.getTokenText());break;case 62:s=3===s?2:3,c(l.getTokenText());break;case 82:3!==s&&(s=2),c(l.getTokenValue());break;case 42:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),c(l.getTokenText())}d=2===s||3===s?qe(3===s):Ke()}y(r);const u=r.join("").trimEnd();return o.length?(u.length&&o.push(St(R.createJSDocText(u),i??n)),Et(o,n,l.getTokenEnd())):u.length?u:void 0}function D(e){const t=nt(N);if(!t)return;Ke(),E();const n=function(){if(ns(je())){const e=Be();let t=Ct();for(;ut(25);)t=St(R.createQualifiedName(t,81===je()?Tt(80,!1):Rt()),e);for(;81===je();)Ye(),Ke(),t=St(R.createJSDocMemberName(t,Rt()),e);return t}return}(),r=[];for(;20!==je()&&4!==je()&&1!==je();)r.push(l.getTokenText()),Ke();return St(("link"===t?R.createJSDocLink:"linkcode"===t?R.createJSDocLinkCode:R.createJSDocLinkPlain)(n,r.join("")),e,l.getTokenEnd())}function N(){if(S(),19===je()&&60===Ke()&&ns(Ke())){const e=l.getTokenValue();if(M(e))return e}}function M(e){return"link"===e||"linkcode"===e||"linkplain"===e}function k(e){e&&(a?a.push(e):(a=[e],s=e.pos),c=e.end)}function P(){return S(),19===je()?t():void 0}function w(){const e=Y(23);e&&E();const t=Y(62),n=function(){let e=Q();ut(23)&&it(24);for(;ut(25);){const t=Q();ut(23)&&it(24),e=ln(e,t)}return e}();var r;return t&&(ft(r=62)||(In.assert(Hy(r)),Tt(r,!1,Oa._0_expected,as(r)))),e&&(E(),pt(64)&&Tr(),it(24)),{name:n,isBracketed:e}}function O(e){switch(e.kind){case 151:return!0;case 188:return O(e.elementType);default:return PC(e)&&nC(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function F(e,t,n,r){let o=P(),i=!o;S();const{name:a,isBracketed:s}=w(),l=S();i&&!tt(N)&&(o=P());const c=I(e,Be(),r,l),d=function(e,t,n,r){if(e&&O(e.type)){const o=Be();let i,a;for(;i=nt((()=>q(n,r,t)));)348===i.kind||355===i.kind?a=Ee(a,i):352===i.kind&&We(i.tagName,Oa.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(a){const t=St(R.createJSDocTypeLiteral(a,188===e.type.kind),o);return St(R.createJSDocTypeExpression(t),o)}}}(o,a,n,r);d&&(o=d,i=!0);return St(1===n?R.createJSDocPropertyTag(t,a,s,o,i,c):R.createJSDocParameterTag(t,a,s,o,i,c),e)}function z(e,n,r,o){se(a,zM)&&Fe(n.pos,l.getTokenStart(),Oa._0_tag_already_specified,Ll(n.escapedText));const i=t(!0),s=void 0!==r&&void 0!==o?I(e,Be(),r,o):void 0;return St(R.createJSDocTypeTag(n,i,s),e)}function B(){const e=ut(19),t=Be(),n=function(){const e=Be();let t=Q();for(;ut(25);){const n=Q();t=St(W(t,n),e)}return t}();l.setInJSDocType(!0);const r=hi();l.setInJSDocType(!1);const o=St(R.createExpressionWithTypeArguments(n,r),t);return e&&it(20),o}function G(e,t,n,r,o){return St(t(n,I(e,Be(),r,o)),e)}function j(e,n,r,o){const i=t(!0);return E(),St(R.createJSDocThisTag(n,i,I(e,Be(),r,o)),e)}function V(e){const t=l.getTokenStart();if(!ns(je()))return;const n=Q();if(ut(25)){const r=V(!0);return St(R.createModuleDeclaration(void 0,n,r,e?8:void 0),t)}return e&&(n.flags|=4096),n}function U(e,t){const n=function(e){const t=Be();let n,r;for(;n=nt((()=>q(4,e)));){if(352===n.kind){We(n.tagName,Oa.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}r=Ee(r,n)}return Et(r||[],t)}(t),r=nt((()=>{if(Y(60)){const e=A(t);if(e&&349===e.kind)return e}}));return St(R.createJSDocSignature(void 0,n,r),e)}function H(e,t){for(;!nC(e)||!nC(t);){if(nC(e)||nC(t)||e.right.escapedText!==t.right.escapedText)return!1;e=e.left,t=t.left}return e.escapedText===t.escapedText}function K(e){return q(1,e)}function q(e,t,n){let r=!0,o=!1;for(;;)switch(Ke()){case 60:if(r){const r=J(e,t);return!(r&&(348===r.kind||355===r.kind)&&n&&(nC(r.name)||!H(n,r.name.left)))&&r}o=!1;break;case 4:r=!0,o=!1;break;case 42:o&&(r=!1),o=!0;break;case 80:r=!1;break;case 1:return!1}}function J(e,t){In.assert(60===je());const n=l.getTokenFullStart();Ke();const r=Q(),o=S();let i;switch(r.escapedText){case"type":return 1===e&&z(n,r);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;case"template":return $(n,r,t,o);case"this":return j(n,r,t,o);default:return!1}return!!(e&i)&&F(n,r,e,t)}function X(){const e=Be(),t=Y(23);t&&E();const n=li(!1,!0),r=Q(Oa.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let o;if(t&&(E(),it(64),o=ve(16777216,An),it(24)),!im(r))return St(R.createTypeParameterDeclaration(n,r,void 0,o),e)}function $(e,n,r,o){const i=19===je()?t():void 0,a=function(){const e=Be(),t=[];do{E();const e=X();void 0!==e&&t.push(e),S()}while(Y(28));return Et(t,e)}();return St(R.createJSDocTemplateTag(n,i,a,I(e,Be(),r,o)),e)}function Y(e){return je()===e&&(Ke(),!0)}function Q(e){if(!ns(je()))return Tt(80,!e,e||Oa.Identifier_expected);T++;const t=l.getTokenStart(),n=l.getTokenEnd(),r=je(),o=xt(l.getTokenValue()),i=St(L(o,r),t,n);return Ke(),i}}e.parseJSDocTypeExpressionForTests=function(e,n,r){ie("file.js",e,99,void 0,1,0),l.setText(e,n,r),b=l.scan();const o=t(),i=pe("file.js",99,1,!1,[],w(1),0,bt),a=oT(g,i);return y&&(i.jsDocDiagnostics=oT(y,i)),ae(),o?{jsDocTypeExpression:o,diagnostics:a}:void 0},e.parseJSDocTypeExpression=t,e.parseJSDocNameReference=n,e.parseIsolatedJSDocComment=function(e,t,n){ie("",e,99,void 0,1,0);const r=ve(16777216,(()=>s(t,n))),o=oT(g,{languageVariant:0,text:e});return ae(),r?{jsDoc:r,diagnostics:o}:void 0},e.parseJSDocComment=function(e,t,n){const r=b,o=g.length,i=re,a=ve(16777216,(()=>s(t,n)));return Vx(a,e),524288&I&&(y||(y=[]),xe(y,g,o)),b=r,g.length=o,re=i,a},(o=r||(r={}))[o.BeginningOfLine=0]="BeginningOfLine",o[o.SawAsterisk=1]="SawAsterisk",o[o.SavingComments=2]="SavingComments",o[o.SavingBackticks=3]="SavingBackticks",(a=i||(i={}))[a.Property=1]="Property",a[a.Parameter=2]="Parameter",a[a.CallbackParameter=4]="CallbackParameter"})(Oi=e.JSDocParser||(e.JSDocParser={}))})(Dk||(Dk={})),(e=>{function t(e,t,r,i,a,s){return void(t?c(e):l(e));function l(e){let t="";if(s&&n(e)&&(t=i.substring(e.pos,e.end)),e._children&&(e._children=void 0),Bx(e,e.pos+r,e.end+r),s&&n(e)&&In.assert(t===a.substring(e.pos,e.end)),oP(e,l,c),Xu(e))for(const n of e.jsDoc)l(n);o(e,s)}function c(e){e._children=void 0,Bx(e,e.pos+r,e.end+r);for(const t of e)l(t)}}function n(e){switch(e.kind){case 11:case 9:case 80:return!0}return!1}function r(e,t,n,r,o){In.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),In.assert(e.pos<=n,"Adjusting an element that was entirely after the change range"),In.assert(e.pos<=e.end);const i=Math.min(e.pos,r),a=e.end>=n?e.end+o:Math.min(e.end,r);In.assert(i<=a),e.parent&&(In.assertGreaterThanOrEqual(i,e.parent.pos),In.assertLessThanOrEqual(a,e.parent.end)),Bx(e,i,a)}function o(e,t){if(t){let t=e.pos;const n=e=>{In.assert(e.pos>=t),t=e.end};if(Xu(e))for(const r of e.jsDoc)n(r);oP(e,n),In.assert(t<=e.end)}}function i(e,t){let n,r=e;if(oP(e,(function e(o){if(im(o))return;if(!(o.pos<=t))return In.assert(o.pos>t),!0;if(o.pos>=r.pos&&(r=o),t<o.end)return oP(o,e),!0;In.assert(o.end<=t),n=o})),n){const e=function(e){for(;;){const t=MS(e);if(!t)return e;e=t}}(n);e.pos>r.pos&&(r=e)}return r}function a(e,t,n,r){const o=e.text;if(n&&(In.assert(o.length-n.span.length+n.newLength===t.length),r||In.shouldAssert(3))){const e=o.substr(0,n.span.start),r=t.substr(0,n.span.start);In.assert(e===r);const i=o.substring(Qs(n.span),o.length),a=t.substring(Qs(pl(n)),t.length);In.assert(i===a)}}function s(e){let t=e.statements,n=0;In.assert(n<t.length);let r=t[n],o=-1;return{currentNode:i=>(i!==o&&(r&&r.end===i&&n<t.length-1&&(n++,r=t[n]),r&&r.pos===i||function(o){return t=void 0,n=-1,r=void 0,void oP(e,i,a);function i(e){return o>=e.pos&&o<e.end&&(oP(e,i,a),!0)}function a(e){if(o>=e.pos&&o<e.end)for(let s=0;s<e.length;s++){const l=e[s];if(l){if(l.pos===o)return t=e,n=s,r=l,!0;if(l.pos<o&&o<l.end)return oP(l,i,a),!0}}return!1}}(i)),o=i,In.assert(!r||r.pos===i),r)}}let l;var c;e.updateSourceFile=function(e,n,l,c){if(a(e,n,l,c=c||In.shouldAssert(2)),fl(l))return e;if(0===e.statements.length)return Dk.parseSourceFile(e.fileName,n,e.languageVersion,void 0,!0,e.scriptKind,e.setExternalModuleIndicator,e.jsDocParsingMode);const d=e;In.assert(!d.hasBeenIncrementallyParsed),d.hasBeenIncrementallyParsed=!0,Dk.fixupParentReferences(d);const u=e.text,p=s(e),f=function(e,t){const n=1;let r=t.span.start;for(let s=0;r>0&&s<=n;s++){const t=i(e,r);In.assert(t.pos<=r);const n=t.pos;r=Math.max(0,n-1)}const o=ul(r,Qs(t.span)),a=t.newLength+(t.span.start-r);return ml(o,a)}(e,l);a(e,n,f,c),In.assert(f.span.start<=l.span.start),In.assert(Qs(f.span)===Qs(l.span)),In.assert(Qs(pl(f))===Qs(pl(l)));const m=pl(f).length-f.span.length;!function(e,n,i,a,s,l,c,d){return void u(e);function u(e){if(In.assert(e.pos<=e.end),e.pos>i)return void t(e,!1,s,l,c,d);const f=e.end;if(f>=n){if(e.intersectsChange=!0,e._children=void 0,r(e,n,i,a,s),oP(e,u,p),Xu(e))for(const t of e.jsDoc)u(t);o(e,d)}else In.assert(f<n)}function p(e){if(In.assert(e.pos<=e.end),e.pos>i)return void t(e,!0,s,l,c,d);const o=e.end;if(o>=n){e.intersectsChange=!0,e._children=void 0,r(e,n,i,a,s);for(const t of e)u(t)}else In.assert(o<n)}}(d,f.span.start,Qs(f.span),Qs(pl(f)),m,u,n,c);const _=Dk.parseSourceFile(e.fileName,n,e.languageVersion,p,!0,e.scriptKind,e.setExternalModuleIndicator,e.jsDocParsingMode);return _.commentDirectives=function(e,t,n,r,o,i,a,s){if(!e)return t;let l,c=!1;for(const u of e){const{range:e,type:t}=u;if(e.end<n)l=Ee(l,u);else if(e.pos>r){d();const n={range:{pos:e.pos+o,end:e.end+o},type:t};l=Ee(l,n),s&&In.assert(i.substring(e.pos,e.end)===a.substring(n.range.pos,n.range.end))}}return d(),l;function d(){c||(c=!0,l?t&&l.push(...t):l=t)}}(e.commentDirectives,_.commentDirectives,f.span.start,Qs(f.span),m,u,n,c),_.impliedNodeFormat=e.impliedNodeFormat,_},e.createSyntaxCursor=s,(c=l||(l={}))[c.Value=-1]="Value"})(Nk||(Nk={})),Mk=new Map,Lk=/^\/\/\/\s*<(\S+)\s.*?\/>/im,kk=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function fw(e){const t=new Map,n=new Map;return x(e,(e=>{t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:t,shortOptionNames:n}}function mw(){return HP||(HP=fw(PP))}function _w(e){return hw(e,sT)}function hw(e,t){const n=Ye(e.type.keys()),r=(e.deprecatedKeys?n.filter((t=>!e.deprecatedKeys.has(t))):n).map((e=>`'${e}'`)).join(", ");return t(Oa.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,r)}function gw(e,t,n){return AO(e,(t??"").trim(),n)}function yw(e,t="",n){if(dn(t=t.trim(),"-"))return;if("listOrElement"===e.type&&!t.includes(","))return xO(e,t,n);if(""===t)return[];const r=t.split(",");switch(e.element.type){case"number":return Z(r,(t=>xO(e.element,parseInt(t),n)));case"string":return Z(r,(t=>xO(e.element,t||"",n)));case"boolean":case"object":return In.fail(`List of ${e.element.type} is not yet supported.`);default:return Z(r,(t=>gw(e.element,t,n)))}}function vw(e){return e.name}function bw(e,t,n,r,o){var i;if(null==(i=t.alternateMode)?void 0:i.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return SO(o,r,t.alternateMode.diagnostic,e);const a=Xt(e,t.optionDeclarations,vw);return a?SO(o,r,t.unknownDidYouMeanDiagnostic,n||e,a.name):SO(o,r,t.unknownOptionDiagnostic,n||e)}function Ew(e,t,n){const r={};let o;const i=[],a=[];return s(t),{options:r,watchOptions:o,fileNames:i,errors:a};function s(t){let n=0;for(;n<t.length;){const s=t[n];if(n++,64===s.charCodeAt(0))l(s.slice(1));else if(45===s.charCodeAt(0)){const i=s.slice(45===s.charCodeAt(1)?2:1),l=Aw(e.getOptionsNameMap,i,!0);if(l)n=Sw(t,n,e,l,r,a);else{const r=Aw(ew.getOptionsNameMap,i,!0);r?n=Sw(t,n,ew,r,o||(o={}),a):a.push(bw(i,e,s))}}else i.push(s)}}function l(e){const t=kw(e,n||(e=>hi.readFile(e)));if(!ht(t))return void a.push(t);const r=[];let o=0;for(;;){for(;o<t.length&&t.charCodeAt(o)<=32;)o++;if(o>=t.length)break;const n=o;if(34===t.charCodeAt(n)){for(o++;o<t.length&&34!==t.charCodeAt(o);)o++;o<t.length?(r.push(t.substring(n+1,o)),o++):a.push(sT(Oa.Unterminated_quoted_string_in_response_file_0,e))}else{for(;t.charCodeAt(o)>32;)o++;r.push(t.substring(n,o))}}s(r)}}function Sw(e,t,n,r,o,i){if(r.isTSConfigOnly){const n=e[t];"null"===n?(o[r.name]=void 0,t++):"boolean"===r.type?"false"===n?(o[r.name]=xO(r,!1,i),t++):("true"===n&&t++,i.push(sT(Oa.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(i.push(sT(Oa.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,r.name)),n&&!dn(n,"-")&&t++)}else if(e[t]||"boolean"===r.type||i.push(sT(n.optionTypeMismatchDiagnostic,r.name,jw(r))),"null"!==e[t])switch(r.type){case"number":o[r.name]=xO(r,parseInt(e[t]),i),t++;break;case"boolean":const n=e[t];o[r.name]=xO(r,"false"!==n,i),"false"!==n&&"true"!==n||t++;break;case"string":o[r.name]=xO(r,e[t]||"",i),t++;break;case"list":const a=yw(r,e[t],i);o[r.name]=a||[],a&&t++;break;case"listOrElement":In.fail("listOrElement not supported here");break;default:o[r.name]=gw(r,e[t],i),t++}else o[r.name]=void 0,t++;return t}function Tw(e,t){return Ew(JP,e,t)}function xw(e,t){return Aw(mw,e,t)}function Aw(e,t,n=!1){t=t.toLowerCase();const{optionsNameMap:r,shortOptionNames:o}=e();if(n){const e=o.get(t);void 0!==e&&(t=e)}return r.get(t)}function Iw(){return XP||(XP=fw(VP))}function Rw(e){const{options:t,watchOptions:n,fileNames:r,errors:o}=Ew(YP,e),i=t;return 0===r.length&&r.push("."),i.clean&&i.force&&o.push(sT(Oa.Options_0_and_1_cannot_be_combined,"clean","force")),i.clean&&i.verbose&&o.push(sT(Oa.Options_0_and_1_cannot_be_combined,"clean","verbose")),i.clean&&i.watch&&o.push(sT(Oa.Options_0_and_1_cannot_be_combined,"clean","watch")),i.watch&&i.dry&&o.push(sT(Oa.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:i,watchOptions:n,projects:r,errors:o}}function Cw(e,...t){return vt(sT(e,...t).messageText,ht)}function Dw(e,t,n,r,o,i){const a=kw(e,(e=>n.readFile(e)));if(!ht(a))return void n.onUnRecoverableConfigFileDiagnostic(a);const s=dP(e,a),l=n.getCurrentDirectory();return s.path=ga(e,l,an(n.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,rO(s,n,ma(ra(e),l),t,ma(e,l),void 0,i,r,o)}function Nw(e,t){const n=kw(e,t);return ht(n)?Mw(e,n):{config:{},error:n}}function Mw(e,t){const n=dP(e,t);return{config:zw(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function Lw(e,t){const n=kw(e,t);return ht(n)?dP(e,n):{fileName:e,parseDiagnostics:[n]}}function kw(e,t){let n;try{n=t(e)}catch(r){return sT(Oa.Cannot_read_file_0_Colon_1,e,r.message)}return void 0===n?sT(Oa.Cannot_read_file_0,e):n}function Pw(e){return et(e,vw)}function ww(){return ZP||(ZP=fw(DP))}function Ow(){return tw||(tw=Pw(PP))}function Fw(){return nw||(nw=Pw(DP))}function Ww(){return rw||(rw=Pw(UP))}function zw(e,t,n){var r;const o=null==(r=e.statements[0])?void 0:r.expression;if(o&&210!==o.kind){if(t.push(p_(e,o,Oa.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===oa(e.fileName)?"jsconfig.json":"tsconfig.json")),aD(o)){const r=L(o.elements,sD);if(r)return Gw(e,r,t,!0,n)}return{}}return Gw(e,o,t,!0,n)}function Bw(e,t){var n;return Gw(e,null==(n=e.statements[0])?void 0:n.expression,t,!0,void 0)}function Gw(e,t,n,r,o){return t?i(t,null==o?void 0:o.rootOptions):r?{}:void 0;function i(t,s){switch(t.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return a(t)||n.push(p_(e,t,Oa.String_literal_with_double_quotes_expected)),t.text;case 9:return Number(t.text);case 224:if(41!==t.operator||9!==t.operand.kind)break;return-Number(t.operand.text);case 210:return function(t,s){var l;const c=r?{}:void 0;for(const d of t.properties){if(303!==d.kind){n.push(p_(e,d,Oa.Property_assignment_expected));continue}d.questionToken&&n.push(p_(e,d.questionToken,Oa.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),a(d.name)||n.push(p_(e,d.name,Oa.String_literal_with_double_quotes_expected));const t=a_(d.name)?void 0:l_(d.name),u=t&&Ll(t),p=u?null==(l=null==s?void 0:s.elementOptions)?void 0:l.get(u):void 0,f=i(d.initializer,p);"undefined"!==typeof u&&(r&&(c[u]=f),null==o||o.onPropertySet(u,f,d,s,p))}return c}(t,s);case 209:return function(e,t){if(r)return G(e.map((e=>i(e,t))),(e=>void 0!==e));e.forEach((e=>i(e,t)))}(t.elements,s&&s.element)}s?n.push(p_(e,t,Oa.Compiler_option_0_requires_a_value_of_type_1,s.name,jw(s))):n.push(p_(e,t,Oa.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function a(t){return zR(t)&&lg(t,e)}}function jw(e){return"listOrElement"===e.type?`${jw(e.element)} or Array`:"list"===e.type?"Array":ht(e.type)?e.type:"string"}function Vw(e,t){if(e){if(iO(t))return!e.disallowNullOrUndefined;if("list"===e.type)return mt(t);if("listOrElement"===e.type)return mt(t)||Vw(e.element,t);return typeof t===(ht(e.type)?e.type:"string")}return!1}function Uw(e,t,n){var r,o,i;const a=an(n.useCaseSensitiveFileNames),s=U(G(e.fileNames,(null==(o=null==(r=e.options.configFile)?void 0:r.configFileSpecs)?void 0:o.validatedIncludeSpecs)?function(e,t,n,r){if(!t)return St;const o=qT(e,n,t,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),i=o.excludePattern&&JT(o.excludePattern,r.useCaseSensitiveFileNames),a=o.includeFilePattern&&JT(o.includeFilePattern,r.useCaseSensitiveFileNames);if(a)return i?e=>!(a.test(e)&&!i.test(e)):e=>!a.test(e);if(i)return e=>i.test(e);return St}(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):St),(e=>La(ma(t,n.getCurrentDirectory()),ma(e,n.getCurrentDirectory()),a))),l={configFilePath:ma(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},c=Xw(e.options,l),d=e.watchOptions&&$w(e.watchOptions,ww());const u={compilerOptions:{...Hw(c),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:d&&Hw(d),references:U(e.projectReferences,(e=>({...e,path:e.originalPath?e.originalPath:"",originalPath:void 0}))),files:T(s)?s:void 0,...(null==(i=e.options.configFile)?void 0:i.configFileSpecs)?{include:Kw(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:!!e.compileOnSave||void 0},p=new Set(c.keys()),f={};for(const m in Gp)if(!p.has(m)&&se(Gp[m].dependencies,(e=>p.has(e)))){Gp[m].computeValue(e.options)!==Gp[m].computeValue({})&&(f[m]=Gp[m].computeValue(e.options))}return Qe(u.compilerOptions,Hw(Xw(f,l))),u}function Hw(e){return{...Ye(e.entries()).reduce(((e,t)=>({...e,[t[0]]:t[1]})),{})}}function Kw(e){if(T(e)){if(1!==T(e))return e;if(e[0]!==cw)return e}}function qw(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return qw(e.element);default:return e.type}}function Jw(e,t){return Wf(t,((t,n)=>{if(t===e)return n}))}function Xw(e,t){return $w(e,mw(),t)}function $w(e,{optionsNameMap:t},n){const r=new Map,o=n&&an(n.useCaseSensitiveFileNames);for(const i in e)if(He(e,i)){if(t.has(i)&&(t.get(i).category===Oa.Command_line_Options||t.get(i).category===Oa.Output_Formatting))continue;const a=e[i],s=t.get(i.toLowerCase());if(s){In.assert("listOrElement"!==s.type);const e=qw(s);e?"list"===s.type?r.set(i,a.map((t=>Jw(t,e)))):r.set(i,Jw(a,e)):n&&s.isFilePath?r.set(i,La(n.configFilePath,ma(a,ra(n.configFilePath)),o)):r.set(i,a)}}return r}function Yw(e,t){const n=Qw(e);return function(){const e=[],r=(o=2,Array(o+1).join(" "));var o;return kP.forEach((t=>{if(!n.has(t.name))return;const o=n.get(t.name),i=GO(t);o!==i?e.push(`${r}${t.name}: ${o}`):He(qP,t.name)&&e.push(`${r}${t.name}: ${i}`)})),e.join(t)+t}()}function Qw(e){return Xw(at(e,qP))}function Zw(e,t,n){const r=Qw(e);return function(){const e=new Map;e.set(Oa.Projects,[]),e.set(Oa.Language_and_Environment,[]),e.set(Oa.Modules,[]),e.set(Oa.JavaScript_Support,[]),e.set(Oa.Emit,[]),e.set(Oa.Interop_Constraints,[]),e.set(Oa.Type_Checking,[]),e.set(Oa.Completeness,[]);for(const t of PP)if(i(t)){let n=e.get(t.category);n||e.set(t.category,n=[]),n.push(t)}let a=0,s=0;const l=[];e.forEach(((e,t)=>{0!==l.length&&l.push({value:""}),l.push({value:`/* ${eT(t)} */`});for(const n of e){let e;e=r.has(n.name)?`"${n.name}": ${JSON.stringify(r.get(n.name))}${(s+=1)===r.size?"":","}`:`// "${n.name}": ${JSON.stringify(GO(n))},`,l.push({value:e,description:`/* ${n.description&&eT(n.description)||n.name} */`}),a=Math.max(e.length,a)}}));const c=o(2),d=[];d.push("{"),d.push(`${c}"compilerOptions": {`),d.push(`${c}${c}/* ${eT(Oa.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),d.push("");for(const t of l){const{value:e,description:n=""}=t;d.push(e&&`${c}${c}${e}${n&&o(a-e.length+2)+n}`)}if(t.length){d.push(`${c}},`),d.push(`${c}"files": [`);for(let e=0;e<t.length;e++)d.push(`${c}${c}${JSON.stringify(t[e])}${e===t.length-1?"":","}`);d.push(`${c}]`)}else d.push(`${c}}`);return d.push("}"),d.join(n)+n}();function o(e){return Array(e+1).join(" ")}function i({category:e,name:t,isCommandLineOnly:n}){const o=[Oa.Command_line_Options,Oa.Editor_Support,Oa.Compiler_Diagnostics,Oa.Backwards_Compatibility,Oa.Watch_and_Build_Modes,Oa.Output_Formatting];return!n&&void 0!==e&&(!o.includes(e)||r.has(t))}}function eO(e,t){const n={},r=mw().optionsNameMap;for(const o in e)He(e,o)&&(n[o]=tO(r.get(o.toLowerCase()),e[o],t));return n.configFilePath&&(n.configFilePath=t(n.configFilePath)),n}function tO(e,t,n){if(e&&!iO(t)){if("list"===e.type){const r=t;if(e.element.isFilePath&&r.length)return r.map(n)}else if(e.isFilePath)return n(t);In.assert("listOrElement"!==e.type)}return t}function nO(e,t,n,r,o,i,a,s,l){return sO(e,void 0,t,n,r,l,o,i,a,s)}function rO(e,t,n,r,o,i,a,s,l){var c,d;null==(c=kr)||c.push(kr.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const u=sO(void 0,e,t,n,r,l,o,i,a,s);return null==(d=kr)||d.pop(),u}function oO(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function iO(e){return void 0===e||null===e}function aO(e,t){return ra(ma(e,t))}function sO(e,t,n,r,o={},i,a,s=[],l=[],c){In.assert(void 0===e&&void 0!==t||void 0!==e&&void 0===t);const d=[],u=pO(e,t,n,r,a,s,d,c),{raw:p}=u,f=at(o,u.options||{}),m=i&&u.watchOptions?at(i,u.watchOptions):u.watchOptions||i;f.configFilePath=a&&ca(a);const _=function(){const e=v("references",(e=>"object"===typeof e),"object"),n=g(y("files"));if(n){const r="no-prop"===e||mt(e)&&0===e.length,o=He(p,"extends");if(0===n.length&&r&&!o)if(t){const e=a||"tsconfig.json",n=Oa.The_files_list_in_config_file_0_is_empty,r=ph(t,"files",(e=>e.initializer)),o=SO(t,r,n,e);d.push(o)}else b(Oa.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")}let r=g(y("include"));const o=y("exclude");let i,s,l=!1,c=g(o);if("no-prop"===o&&p.compilerOptions){const e=p.compilerOptions.outDir,t=p.compilerOptions.declarationDir;(e||t)&&(c=[e,t].filter((e=>!!e)))}void 0===n&&void 0===r&&(r=[cw],l=!0);r&&(i=LO(r,d,!0,t,"include"));c&&(s=LO(c,d,!1,t,"exclude"));return{filesSpecs:n,includeSpecs:r,excludeSpecs:c,validatedFilesSpec:G(n,ht),validatedIncludeSpecs:i,validatedExcludeSpecs:s,pathPatterns:void 0,isDefaultIncludeSpec:l}}();t&&(t.configFileSpecs=_),oO(f,t);const h=_a(a?aO(a,r):r);return{options:f,watchOptions:m,fileNames:function(e){const t=RO(_,e,f,n,l);cO(t,dO(p),s)&&d.push(lO(_,a));return t}(h),projectReferences:function(e){let t;const n=v("references",(e=>"object"===typeof e),"object");if(mt(n))for(const r of n)"string"!==typeof r.path?b(Oa.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t||(t=[])).push({path:ma(r.path,e),originalPath:r.path,prepend:r.prepend,circular:r.circular});return t}(h),typeAcquisition:u.typeAcquisition||vO(),raw:p,errors:d,wildcardDirectories:PO(_,h,n.useCaseSensitiveFileNames),compileOnSave:!!p.compileOnSave};function g(e){return mt(e)?e:void 0}function y(e){return v(e,ht,"string")}function v(e,n,r){if(He(p,e)&&!iO(p[e])){if(mt(p[e])){const o=p[e];return t||M(o,n)||d.push(sT(Oa.Compiler_option_0_requires_a_value_of_type_1,e,r)),o}return b(Oa.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}return"no-prop"}function b(e,...n){t||d.push(sT(e,...n))}}function lO({includeSpecs:e,excludeSpecs:t},n){return sT(Oa.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function cO(e,t,n){return 0===e.length&&t&&(!n||0===n.length)}function dO(e){return!He(e,"files")&&!He(e,"references")}function uO(e,t,n,r,o){const i=r.length;return cO(e,o)?r.push(lO(n,t)):j(r,(e=>!function(e){return e.code===Oa.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(e))),i!==r.length}function pO(e,t,n,r,o,i,a,s){var l;const c=ma(o||"",r=ca(r));if(i.includes(c))return a.push(sT(Oa.Circularity_detected_while_resolving_configuration_Colon_0,[...i,c].join(" -> "))),{raw:e||Bw(t,a)};const d=e?function(e,t,n,r,o){He(e,"excludes")&&o.push(sT(Oa.Unknown_option_excludes_Did_you_mean_exclude));const i=yO(e.compilerOptions,n,o,r),a=bO(e.typeAcquisition,n,o,r),s=function(e,t,n){return EO(Fw(),e,t,void 0,ew,n)}(e.watchOptions,n,o);e.compileOnSave=function(e,t,n){if(!He(e,TP.name))return!1;const r=TO(TP,e.compileOnSave,t,n);return"boolean"===typeof r&&r}(e,n,o);const l=e.extends||""===e.extends?fO(e.extends,t,n,r,o):void 0;return{raw:e,options:i,watchOptions:s,typeAcquisition:a,extendedConfigPath:l}}(e,n,r,o,a):function(e,t,n,r,o){const i=gO(r);let a,s,l,c;const d=(void 0===lw&&(lw={name:void 0,type:"object",elementOptions:Pw([iw,aw,sw,ow,{name:"references",type:"list",element:{name:"references",type:"object"},category:Oa.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:Oa.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:Oa.File_Management,defaultValueDescription:Oa.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:Oa.File_Management,defaultValueDescription:Oa.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},TP])}),lw),u=zw(e,o,{rootOptions:d,onPropertySet:p});a||(a=vO(r));c&&u&&void 0===u.compilerOptions&&o.push(p_(e,c[0],Oa._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,l_(c[0])));return{raw:u,options:i,watchOptions:s,typeAcquisition:a,extendedConfigPath:l};function p(u,p,f,m,_){if(_&&_!==ow&&(p=TO(_,p,n,o,f,f.initializer,e)),null==m?void 0:m.name)if(_){let e;m===iw?e=i:m===aw?e=s??(s={}):m===sw?e=a??(a=vO(r)):In.fail("Unknown option"),e[_.name]=p}else u&&(null==m?void 0:m.extraKeyDiagnostics)&&(m.elementOptions?o.push(bw(u,m.extraKeyDiagnostics,void 0,f.name,e)):o.push(p_(e,f.name,m.extraKeyDiagnostics.unknownOptionDiagnostic,u)));else m===d&&(_===ow?l=fO(p,t,n,r,o,f,f.initializer,e):_||("excludes"===u&&o.push(p_(e,f.name,Oa.Unknown_option_excludes_Did_you_mean_exclude)),L(kP,(e=>e.name===u))&&(c=Ee(c,f.name))))}}(t,n,r,o,a);if((null==(l=d.options)?void 0:l.paths)&&(d.options.pathsBasePath=r),d.extendedConfigPath){i=i.concat([c]);const e={options:{}};ht(d.extendedConfigPath)?u(e,d.extendedConfigPath):d.extendedConfigPath.forEach((t=>u(e,t))),!d.raw.include&&e.include&&(d.raw.include=e.include),!d.raw.exclude&&e.exclude&&(d.raw.exclude=e.exclude),!d.raw.files&&e.files&&(d.raw.files=e.files),void 0===d.raw.compileOnSave&&e.compileOnSave&&(d.raw.compileOnSave=e.compileOnSave),t&&e.extendedSourceFiles&&(t.extendedSourceFiles=Ye(e.extendedSourceFiles.keys())),d.options=Qe(e.options,d.options),d.watchOptions=d.watchOptions&&e.watchOptions?Qe(e.watchOptions,d.watchOptions):d.watchOptions||e.watchOptions}return d;function u(e,o){const l=function(e,t,n,r,o,i,a){const s=n.useCaseSensitiveFileNames?t:It(t);let l,c,d;i&&(l=i.get(s))?({extendedResult:c,extendedConfig:d}=l):(c=Lw(t,(e=>n.readFile(e))),c.parseDiagnostics.length||(d=pO(void 0,c,n,ra(t),oa(t),r,o,i)),i&&i.set(s,{extendedResult:c,extendedConfig:d}));if(e&&((a.extendedSourceFiles??(a.extendedSourceFiles=new Set)).add(c.fileName),c.extendedSourceFiles))for(const u of c.extendedSourceFiles)a.extendedSourceFiles.add(u);if(c.parseDiagnostics.length)return void o.push(...c.parseDiagnostics);return d}(t,o,n,i,a,s,e);if(l&&l.options){const t=l.raw;let i;const a=a=>{t[a]&&(e[a]=U(t[a],(e=>Hi(e)?e:ua(i||(i=Ma(ra(o),r,an(n.useCaseSensitiveFileNames))),e))))};a("include"),a("exclude"),a("files"),void 0!==t.compileOnSave&&(e.compileOnSave=t.compileOnSave),Qe(e.options,l.options),e.watchOptions=e.watchOptions&&l.watchOptions?Qe({},e.watchOptions,l.watchOptions):e.watchOptions||l.watchOptions}}}function fO(e,t,n,r,o,i,a,s){let l;const c=r?aO(r,n):n;if(ht(e))l=mO(e,t,c,o,a,s);else if(mt(e)){l=[];for(let r=0;r<e.length;r++){const d=e[r];ht(d)?l=Ee(l,mO(d,t,c,o,null==a?void 0:a.elements[r],s)):TO(ow.element,e,n,o,i,null==a?void 0:a.elements[r],s)}}else TO(ow,e,n,o,i,a,s);return l}function mO(e,t,n,r,o,i){if(Hi(e=ca(e))||dn(e,"./")||dn(e,"../")){let a=ma(e,n);return t.fileExists(a)||Yt(a,".json")||(a=`${a}.json`,t.fileExists(a))?a:void r.push(SO(i,o,Oa.File_0_not_found,e))}const a=GF(e,ua(n,"tsconfig.json"),t);if(a.resolvedModule)return a.resolvedModule.resolvedFileName;""===e?r.push(SO(i,o,Oa.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):r.push(SO(i,o,Oa.File_0_not_found,e))}function _O(e,t,n){const r=[];return{options:yO(e,t,r,n),errors:r}}function hO(e,t,n){const r=[];return{options:bO(e,t,r,n),errors:r}}function gO(e){return e&&"jsconfig.json"===oa(e)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function yO(e,t,n,r){const o=gO(r);return EO(Ow(),e,t,o,JP,n),r&&(o.configFilePath=ca(r)),o}function vO(e){return{enable:!!e&&"jsconfig.json"===oa(e),include:[],exclude:[]}}function bO(e,t,n,r){const o=vO(r);return EO(Ww(),e,t,o,QP,n),o}function EO(e,t,n,r,o,i){if(t){for(const a in t){const s=e.get(a);s?(r||(r={}))[s.name]=TO(s,t[a],n,i):i.push(bw(a,o))}return r}}function SO(e,t,n,...r){return e&&t?p_(e,t,n,...r):sT(n,...r)}function TO(e,t,n,r,o,i,a){if(e.isCommandLineOnly)r.push(SO(a,null==o?void 0:o.name,Oa.Option_0_can_only_be_specified_on_command_line,e.name));else{if(Vw(e,t)){const s=e.type;if("list"===s&&mt(t))return IO(e,t,n,r,o,i,a);if("listOrElement"===s)return mt(t)?IO(e,t,n,r,o,i,a):TO(e.element,t,n,r,o,i,a);if(!ht(e.type))return AO(e,t,r,i,a);const l=xO(e,t,r,i,a);return iO(l)?l:function(e,t,n){e.isFilePath&&""===(n=ma(n,t))&&(n=".");return n}(e,n,l)}r.push(SO(a,i,Oa.Compiler_option_0_requires_a_value_of_type_1,e.name,jw(e)))}}function xO(e,t,n,r,o){var i;if(iO(t))return;const a=null==(i=e.extraValidation)?void 0:i.call(e,t);if(!a)return t;n.push(SO(o,r,...a))}function AO(e,t,n,r,o){if(iO(t))return;const i=t.toLowerCase(),a=e.type.get(i);if(void 0!==a)return xO(e,a,n,r,o);n.push(hw(e,((e,...t)=>SO(o,r,e,...t))))}function IO(e,t,n,r,o,i,a){return G(U(t,((t,s)=>TO(e.element,t,n,r,o,null==i?void 0:i.elements[s],a))),(t=>!!e.listPreserveFalsyValues||!!t))}function RO(e,t,n,r,i=o){t=_a(t);const a=an(r.useCaseSensitiveFileNames),s=new Map,l=new Map,c=new Map,{validatedFilesSpec:d,validatedIncludeSpecs:u,validatedExcludeSpecs:p}=e,f=ex(n,i),m=tx(n,f);if(d)for(const o of d){const e=ma(o,t);s.set(a(e),e)}let _;if(u&&u.length>0)for(const y of r.readDirectory(t,q(m),p,u,void 0)){if(Yi(y,".json")){if(!_){const e=U(jT(u.filter((e=>Yt(e,".json"))),t,"files"),(e=>`^${e}$`));_=e?e.map((e=>JT(e,r.useCaseSensitiveFileNames))):o}if(-1!==P(_,(e=>e.test(y)))){const e=a(y);s.has(e)||c.has(e)||c.set(e,y)}continue}if(FO(y,s,l,f,a))continue;WO(y,l,f,a);const e=a(y);s.has(e)||l.has(e)||l.set(e,y)}const h=Ye(s.values()),g=Ye(l.values());return h.concat(g,Ye(c.values()))}function CO(e,t,n,r,o){const{validatedFilesSpec:i,validatedIncludeSpecs:a,validatedExcludeSpecs:s}=t;if(!T(a)||!T(s))return!1;n=_a(n);const l=an(r);if(i)for(const c of i)if(l(ma(c,n))===e)return!1;return MO(e,s,r,o,n)}function DO(e){const t=dn(e,"**/")?0:e.indexOf("/**/");if(-1===t)return!1;return(Yt(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function NO(e,t,n,r){return MO(e,G(t,(e=>!DO(e))),n,r)}function MO(e,t,n,r,o){const i=GT(t,ua(_a(r),o),"exclude"),a=i&&JT(i,n);return!!a&&(!!a.test(e)||!$i(e)&&a.test(va(e)))}function LO(e,t,n,r,o){return e.filter((e=>{if(!ht(e))return!1;const i=kO(e,n);return void 0!==i&&t.push(function(e,t){const n=uh(r,o,t);return SO(r,n,e,t)}(...i)),void 0===i}))}function kO(e,t){return In.assert("string"===typeof e),t&&dw.test(e)?[Oa.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:DO(e)?[Oa.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function PO({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,r){const o=GT(t,n,"exclude"),i=o&&new RegExp(o,r?"":"i"),a={},s=new Map;if(void 0!==e){const t=[];for(const o of e){const e=_a(ua(n,o));if(i&&i.test(e))continue;const l=OO(e,r);if(l){const{key:e,path:n,flags:r}=l,o=s.get(e),i=void 0!==o?a[o]:void 0;(void 0===i||i<r)&&(a[void 0!==o?o:n]=r,void 0===o&&s.set(e,n),1===r&&t.push(e))}}for(const e in a)if(He(a,e))for(const o of t){const t=wO(e,r);t!==o&&Ra(o,t,n,!r)&&delete a[e]}}return a}function wO(e,t){return t?e:It(e)}function OO(e,t){const n=uw.exec(e);if(n){const r=e.indexOf("?"),o=e.indexOf("*"),i=e.lastIndexOf(Fi);return{key:wO(n[0],t),path:n[0],flags:-1!==r&&r<i||-1!==o&&o<i?1:0}}if(VT(e.substring(e.lastIndexOf(Fi)+1))){const n=ya(e);return{key:wO(n,t),path:n,flags:1}}}function FO(e,t,n,r,o){const i=x(r,(t=>Qi(e,t)?t:void 0));if(!i)return!1;for(const a of i){if(Yi(e,a)&&(".ts"!==a||!Yi(e,".d.ts")))return!1;const r=o(px(e,a));if(t.has(r)||n.has(r)){if(".d.ts"===a&&(Yi(e,".js")||Yi(e,".jsx")))continue;return!0}}return!1}function WO(e,t,n,r){const o=x(n,(t=>Qi(e,t)?t:void 0));if(o)for(let i=o.length-1;i>=0;i--){const n=o[i];if(Yi(e,n))return;const a=r(px(e,n));t.delete(a)}}function zO(e){const t={};for(const n in e)if(He(e,n)){const r=xw(n);void 0!==r&&(t[n]=BO(e[n],r))}return t}function BO(e,t){if(void 0===e)return e;switch(t.type){case"object":case"string":return"";case"number":return"number"===typeof e?e:"";case"boolean":return"boolean"===typeof e?e:"";case"listOrElement":if(!mt(e))return BO(e,t.element);case"list":const n=t.element;return mt(e)?Z(e,(e=>BO(e,n))):"";default:return Wf(t.type,((t,n)=>{if(t===e)return n}))}}function GO(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&"string"===typeof t?t:""}`:"";case"list":return[];case"listOrElement":return GO(e.element);case"object":return{};default:const n=ke(e.type.keys());return void 0!==n?n:In.fail("Expected 'option.type' to have entries.")}}var jO,VO,UO,HO,KO,qO=b({"src/compiler/commandLineParser.ts"(){JJ(),TP={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},xP=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),AP=new Map(H(xP.entries(),(([e,t])=>[""+t,e]))),RP=(IP=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]]).map((e=>e[0])),CP=new Map(IP),DP=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:Oa.Watch_and_Build_Modes,description:Oa.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:Oa.Watch_and_Build_Modes,description:Oa.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:Oa.Watch_and_Build_Modes,description:Oa.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:Oa.Watch_and_Build_Modes,description:Oa.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:kO},category:Oa.Watch_and_Build_Modes,description:Oa.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:kO},category:Oa.Watch_and_Build_Modes,description:Oa.Remove_a_list_of_files_from_the_watch_mode_s_processing}],NP=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:Oa.Command_line_Options,description:Oa.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:Oa.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:Oa.Command_line_Options,description:Oa.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:Oa.Output_Formatting,description:Oa.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:Oa.Compiler_Diagnostics,description:Oa.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:Oa.Compiler_Diagnostics,description:Oa.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:Oa.Compiler_Diagnostics,description:Oa.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:Oa.Output_Formatting,description:Oa.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:Oa.Compiler_Diagnostics,description:Oa.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:Oa.Compiler_Diagnostics,description:Oa.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:Oa.Compiler_Diagnostics,description:Oa.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:Oa.FILE_OR_DIRECTORY,category:Oa.Compiler_Diagnostics,description:Oa.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:Oa.DIRECTORY,category:Oa.Compiler_Diagnostics,description:Oa.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:Oa.Projects,description:Oa.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:Oa.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Oa.Emit,transpileOptionValue:void 0,description:Oa.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:Oa.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Oa.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:Oa.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Oa.Emit,description:Oa.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Oa.Emit,defaultValueDescription:!1,description:Oa.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:Oa.Emit,description:Oa.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Oa.Watch_and_Build_Modes,description:Oa.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:Oa.Command_line_Options,isCommandLineOnly:!0,description:Oa.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:Oa.Platform_specific}],MP={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:Oa.VERSION,showInSimplifiedHelpView:!0,category:Oa.Language_and_Environment,description:Oa.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},LP={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:Oa.KIND,showInSimplifiedHelpView:!0,category:Oa.Modules,description:Oa.Specify_what_module_code_is_generated,defaultValueDescription:void 0},kP=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:Oa.Command_line_Options,description:Oa.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:Oa.Command_line_Options,description:Oa.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:Oa.Command_line_Options,description:Oa.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:Oa.Command_line_Options,paramType:Oa.FILE_OR_DIRECTORY,description:Oa.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:Oa.Command_line_Options,description:Oa.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:Oa.Command_line_Options,isCommandLineOnly:!0,description:Oa.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:Oa.Command_line_Options,isCommandLineOnly:!0,description:Oa.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},MP,LP,{name:"lib",type:"list",element:{name:"lib",type:CP,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:Oa.Language_and_Environment,description:Oa.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Oa.JavaScript_Support,description:Oa.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Oa.JavaScript_Support,description:Oa.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:xP,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:Oa.KIND,showInSimplifiedHelpView:!0,category:Oa.Language_and_Environment,description:Oa.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Oa.FILE,showInSimplifiedHelpView:!0,category:Oa.Emit,description:Oa.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Oa.DIRECTORY,showInSimplifiedHelpView:!0,category:Oa.Emit,description:Oa.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Oa.LOCATION,category:Oa.Modules,description:Oa.Specify_the_root_folder_within_your_source_files,defaultValueDescription:Oa.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:Oa.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:Oa.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:Oa.FILE,category:Oa.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:Oa.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Oa.Emit,defaultValueDescription:!1,description:Oa.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:Oa.Emit,description:Oa.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Oa.Emit,description:Oa.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Emit,description:Oa.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Oa.Emit,description:Oa.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:Oa.Interop_Constraints,description:Oa.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:Oa.Interop_Constraints,description:Oa.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Oa.Type_Checking,description:Oa.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Oa.Type_Checking,description:Oa.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:Oa.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Oa.Type_Checking,description:Oa.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:Oa.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Oa.Type_Checking,description:Oa.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:Oa.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Oa.Type_Checking,description:Oa.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:Oa.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Oa.Type_Checking,description:Oa.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:Oa.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Oa.Type_Checking,description:Oa.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:Oa.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Oa.Type_Checking,description:Oa.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:Oa.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:Oa.Type_Checking,description:Oa.Ensure_use_strict_is_always_emitted,defaultValueDescription:Oa.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Type_Checking,description:Oa.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Type_Checking,description:Oa.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Type_Checking,description:Oa.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Type_Checking,description:Oa.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Type_Checking,description:Oa.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Type_Checking,description:Oa.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Type_Checking,description:Oa.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:Oa.Type_Checking,description:Oa.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:Oa.STRATEGY,category:Oa.Modules,description:Oa.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:Oa.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:Oa.Modules,description:Oa.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:Oa.Modules,description:Oa.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:Oa.Modules,description:Oa.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:Oa.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:Oa.Modules,description:Oa.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:Oa.Modules,description:Oa.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Interop_Constraints,description:Oa.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:Oa.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Oa.Interop_Constraints,description:Oa.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:Oa.Interop_Constraints,description:Oa.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Modules,description:Oa.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:Oa.Modules,description:Oa.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Modules,description:Oa.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:Oa.Modules,description:Oa.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:Oa.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:Oa.Modules,description:Oa.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:Oa.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:Oa.Modules,description:Oa.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:Oa.LOCATION,category:Oa.Emit,description:Oa.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:Oa.LOCATION,category:Oa.Emit,description:Oa.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Oa.Emit,description:Oa.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Language_and_Environment,description:Oa.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Oa.Language_and_Environment,description:Oa.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:Oa.Language_and_Environment,description:Oa.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:Oa.Language_and_Environment,description:Oa.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:Oa.Language_and_Environment,description:Oa.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:Oa.Modules,description:Oa.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:Oa.Modules,description:Oa.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:Oa.Backwards_Compatibility,paramType:Oa.FILE,transpileOptionValue:void 0,description:Oa.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:Oa.Language_and_Environment,description:Oa.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:Oa.Completeness,description:Oa.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:Oa.Backwards_Compatibility,description:Oa.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Oa.Emit,description:Oa.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:Oa.NEWLINE,category:Oa.Emit,description:Oa.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Output_Formatting,description:Oa.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:Oa.Language_and_Environment,affectsProgramStructure:!0,description:Oa.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:Oa.Modules,description:Oa.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Oa.Emit,description:Oa.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:Oa.Editor_Support,description:Oa.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:Oa.Projects,description:Oa.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:Oa.Projects,description:Oa.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:Oa.Projects,description:Oa.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Backwards_Compatibility,description:Oa.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Oa.Emit,description:Oa.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Oa.Emit,transpileOptionValue:void 0,description:Oa.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Oa.Emit,description:Oa.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Oa.DIRECTORY,category:Oa.Emit,transpileOptionValue:void 0,description:Oa.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:Oa.Completeness,description:Oa.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Type_Checking,description:Oa.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Type_Checking,description:Oa.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Backwards_Compatibility,description:Oa.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Backwards_Compatibility,description:Oa.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:Oa.Interop_Constraints,description:Oa.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:Oa.JavaScript_Support,description:Oa.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Oa.Backwards_Compatibility,description:Oa.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Oa.Language_and_Environment,description:Oa.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:Oa.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Oa.Emit,description:Oa.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:Oa.Backwards_Compatibility,description:Oa.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:Oa.Specify_a_list_of_language_service_plugins_to_include,category:Oa.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:Oa.Control_what_method_is_used_to_detect_module_format_JS_files,category:Oa.Language_and_Environment,defaultValueDescription:Oa.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],PP=[...NP,...kP],wP=PP.filter((e=>!!e.affectsSemanticDiagnostics)),OP=PP.filter((e=>!!e.affectsEmit)),FP=PP.filter((e=>!!e.affectsDeclarationPath)),WP=PP.filter((e=>!!e.affectsModuleResolution)),zP=PP.filter((e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics)),BP=PP.filter((e=>!!e.affectsProgramStructure)),GP=PP.filter((e=>He(e,"transpileOptionValue"))),jP=[{name:"verbose",shortName:"v",category:Oa.Command_line_Options,description:Oa.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:Oa.Command_line_Options,description:Oa.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:Oa.Command_line_Options,description:Oa.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:Oa.Command_line_Options,description:Oa.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],VP=[...NP,...jP],UP=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],KP={diagnostic:Oa.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:Iw},qP={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},JP={alternateMode:KP,getOptionsNameMap:mw,optionDeclarations:PP,unknownOptionDiagnostic:Oa.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:Oa.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Oa.Compiler_option_0_expects_an_argument},$P={diagnostic:Oa.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:mw},YP={alternateMode:$P,getOptionsNameMap:Iw,optionDeclarations:VP,unknownOptionDiagnostic:Oa.Unknown_build_option_0,unknownDidYouMeanDiagnostic:Oa.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Oa.Build_option_0_requires_a_value_of_type_1},QP={optionDeclarations:UP,unknownOptionDiagnostic:Oa.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:Oa.Unknown_type_acquisition_option_0_Did_you_mean_1},ew={getOptionsNameMap:ww,optionDeclarations:DP,unknownOptionDiagnostic:Oa.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:Oa.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Oa.Watch_option_0_requires_a_value_of_type_1},ow={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:Oa.File_Management,disallowNullOrUndefined:!0},iw={name:"compilerOptions",type:"object",elementOptions:Ow(),extraKeyDiagnostics:JP},aw={name:"watchOptions",type:"object",elementOptions:Fw(),extraKeyDiagnostics:ew},sw={name:"typeAcquisition",type:"object",elementOptions:Ww(),extraKeyDiagnostics:QP},cw="**/*",dw=/(^|\/)\*\*\/?$/,uw=/^[^*?]*(?=\/[^/]*[*?])/}});function JO(e,t,...n){e.trace(aT(t,...n))}function XO(e,t){return!!e.traceResolution&&void 0!==t.trace}function $O(e,t){let n;if(t&&e){const r=e.contents.packageJsonContent;"string"===typeof r.name&&"string"===typeof r.version&&(n={name:r.name,subModuleName:t.path.slice(e.packageDirectory.length+Fi.length),version:r.version})}return t&&{path:t.path,extension:t.ext,packageId:n,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function YO(e){return $O(void 0,e)}function QO(e){if(e)return In.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function ZO(e){const t=[];return 1&e&&t.push("TypeScript"),2&e&&t.push("JavaScript"),4&e&&t.push("Declaration"),8&e&&t.push("JSON"),t.join(", ")}function eF(e){if(e)return In.assert(hx(e.extension)),{fileName:e.path,packageId:e.packageId}}function tF(e,t,n,r,o,i,a,s,l){if(!a.resultFromCache&&!a.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Xs(e)){const{resolvedFileName:e,originalPath:n}=uF(t.path,a.host,a.traceEnabled);n&&(t={...t,path:e,originalPath:n})}return nF(t,n,r,o,i,a.resultFromCache,s,l)}function nF(e,t,n,r,o,i,a,s){return i?(null==a?void 0:a.isReadonly)?{...i,failedLookupLocations:iF(i.failedLookupLocations,n),affectingLocations:iF(i.affectingLocations,r),resolutionDiagnostics:iF(i.resolutionDiagnostics,o)}:(i.failedLookupLocations=oF(i.failedLookupLocations,n),i.affectingLocations=oF(i.affectingLocations,r),i.resolutionDiagnostics=oF(i.resolutionDiagnostics,o),i):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:rF(n),affectingLocations:rF(r),resolutionDiagnostics:rF(o),alternateResult:s}}function rF(e){return e.length?e:void 0}function oF(e,t){return(null==t?void 0:t.length)?(null==e?void 0:e.length)?(e.push(...t),e):t:e}function iF(e,t){return(null==e?void 0:e.length)?t.length?[...e,...t]:e.slice():rF(t)}function aF(e,t,n,r){if(!He(e,t))return void(r.traceEnabled&&JO(r.host,Oa.package_json_does_not_have_a_0_field,t));const o=e[t];if(typeof o===n&&null!==o)return o;r.traceEnabled&&JO(r.host,Oa.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,null===o?"null":typeof o)}function sF(e,t,n,r){const o=aF(e,t,"string",r);if(void 0===o)return;if(!o)return void(r.traceEnabled&&JO(r.host,Oa.package_json_had_a_falsy_0_field,t));const i=_a(ua(n,o));return r.traceEnabled&&JO(r.host,Oa.package_json_has_0_field_1_that_references_2,t,o,i),i}function lF(t,n){const r=function(e,t){const n=aF(e,"typesVersions","object",t);if(void 0!==n)return t.traceEnabled&&JO(t.host,Oa.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}(t,n);if(void 0===r)return;if(n.traceEnabled)for(const e in r)He(r,e)&&!wn.tryParse(e)&&JO(n.host,Oa.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,e);const o=cF(r);if(!o)return void(n.traceEnabled&&JO(n.host,Oa.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e));const{version:i,paths:a}=o;if("object"===typeof a)return o;n.traceEnabled&&JO(n.host,Oa.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${i}']`,"object",typeof a)}function cF(e){jO||(jO=new Pn(t));for(const t in e){if(!He(e,t))continue;const n=wn.tryParse(t);if(void 0!==n&&n.test(jO))return{version:t,paths:e[t]}}}function dF(e,t){if(e.typeRoots)return e.typeRoots;let n;return e.configFilePath?n=ra(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),void 0!==n?function(e){let t;return Pa(_a(e),(e=>{const n=ua(e,VO);(t??(t=[])).push(n)})),t}(n):void 0}function uF(e,t,n){const r=function(e,t,n){if(!t.realpath)return e;const r=_a(t.realpath(e));n&&JO(t,Oa.Resolving_real_path_for_0_result_1,e,r);return r}(e,t,n),o=function(e,t,n){return 0===Ia(e,t,!("function"===typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames))}(e,r,t);return{resolvedFileName:o?e:r,originalPath:o?void 0:e}}function pF(e,t,n){return ua(e,Yt(e,"/node_modules/@types")||Yt(e,"/node_modules/@types/")?SW(t,n):t)}function fF(e,t,n,r,o,i,a){In.assert("string"===typeof e,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const s=XO(n,r);o&&(n=o.commandLine.options);const l=t?ra(t):void 0;let c=l?null==i?void 0:i.getFromDirectoryCache(e,a,l,o):void 0;if(c||!l||Xs(e)||(c=null==i?void 0:i.getFromNonRelativeNameCache(e,a,l,o)),c)return s&&(JO(r,Oa.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&JO(r,Oa.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),JO(r,Oa.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,l),E(c)),c;const d=dF(n,r);s&&(void 0===t?void 0===d?JO(r,Oa.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):JO(r,Oa.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,d):void 0===d?JO(r,Oa.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):JO(r,Oa.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,d),o&&JO(r,Oa.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const u=[],p=[];let f=mF(n);void 0!==a&&(f|=30);const m=Up(n);99===a&&3<=m&&m<=99&&(f|=32);const _=8&f?_F(n,a):[],h=[],g={compilerOptions:n,host:r,traceEnabled:s,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:i,features:f,conditions:_,requestContainingDirectory:l,reportDiagnostic:e=>{h.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let y,v=function(){if(d&&d.length)return s&&JO(r,Oa.Resolving_with_primary_search_path_0,d.join(", ")),I(d,(t=>{const o=pF(t,e,g),i=jE(t,r);if(!i&&s&&JO(r,Oa.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n.typeRoots){const e=XF(4,o,!i,g);if(e){const t=KF(e.path);return eF($O(t?sW(t,!1,g):void 0,e))}}return eF(tW(4,o,!i,g))}));s&&JO(r,Oa.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),b=!0;if(v||(v=function(){const o=t&&ra(t);if(void 0!==o){let i;if(n.typeRoots&&Yt(t,vU))s&&JO(r,Oa.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);else if(s&&JO(r,Oa.Looking_up_in_node_modules_folder_initial_location_0,o),Xs(e)){const{path:t}=VF(o,e);i=UF(4,t,!1,g,!0)}else{const t=gW(4,e,o,g,void 0,void 0);i=t&&t.value}return eF(i)}s&&JO(r,Oa.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),b=!1),v){const{fileName:e,packageId:t}=v;let o,i=e;n.preserveSymlinks||({resolvedFileName:i,originalPath:o}=uF(e,r,s)),y={primary:b,resolvedFileName:i,originalPath:o,packageId:t,isExternalLibraryImport:HF(e)}}return c={resolvedTypeReferenceDirective:y,failedLookupLocations:rF(u),affectingLocations:rF(p),resolutionDiagnostics:rF(h)},l&&i&&!i.isReadonly&&(i.getOrCreateCacheForDirectory(l,o).set(e,a,c),Xs(e)||i.getOrCreateCacheForNonRelativeName(e,a,o).set(l,c)),s&&E(c),c;function E(t){var n;(null==(n=t.resolvedTypeReferenceDirective)?void 0:n.resolvedFileName)?t.resolvedTypeReferenceDirective.packageId?JO(r,Oa.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,t.resolvedTypeReferenceDirective.resolvedFileName,qf(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):JO(r,Oa.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):JO(r,Oa.Type_reference_directive_0_was_not_resolved,e)}}function mF(e){let t=0;switch(Up(e)){case 3:case 99:case 100:t=30}return e.resolvePackageJsonExports?t|=8:!1===e.resolvePackageJsonExports&&(t&=-9),e.resolvePackageJsonImports?t|=2:!1===e.resolvePackageJsonImports&&(t&=-3),t}function _F(e,t){const n=Up(e);if(void 0===t)if(100===n)t=99;else if(2===n)return[];const r=99===t?["import"]:["require"];return e.noDtsResolution||r.push("types"),100!==n&&r.push("node"),ce(r,e.customConditions)}function hF(e,t,n,r,o){const i=oW(null==o?void 0:o.getPackageJsonInfoCache(),r,n);return Pa(t,(t=>{if("node_modules"!==oa(t)){const n=ua(t,"node_modules");return sW(ua(n,e),!1,i)}}))}function gF(e,t){if(e.types)return e.types;const n=[];if(t.directoryExists&&t.getDirectories){const r=dF(e,t);if(r)for(const e of r)if(t.directoryExists(e))for(const r of t.getDirectories(e)){const o=_a(r),i=ua(e,o,"package.json");if(!(t.fileExists(i)&&null===BE(i,t).typings)){const e=oa(o);46!==e.charCodeAt(0)&&n.push(e)}}}return n}function yF(e){return!!(null==e?void 0:e.contents)}function vF(e){return!!e&&!e.contents}function bF(e){var t;if(null===e||"object"!==typeof e)return""+e;if(mt(e))return`[${null==(t=e.map((e=>bF(e))))?void 0:t.join(",")}]`;let n="{";for(const r in e)He(e,r)&&(n+=`${r}: ${bF(e[r])}`);return n+"}"}function EF(e,t){return t.map((t=>bF(MT(e,t)))).join("|")+`|${e.pathsBasePath}`}function SF(e,t){const n=new Map,r=new Map;let o=new Map;return e&&n.set(e,o),{getMapOfCacheRedirects:function(e){return e?i(e.commandLine.options,!1):o},getOrCreateMapOfCacheRedirects:function(e){return e?i(e.commandLine.options,!0):o},update:function(t){e!==t&&(e?o=i(t,!0):n.set(t,o),e=t)},clear:function(){const i=e&&t.get(e);o.clear(),n.clear(),t.clear(),r.clear(),e&&(i&&t.set(e,i),n.set(e,o))},getOwnMap:()=>o};function i(t,i){let s=n.get(t);if(s)return s;const l=a(t);if(s=r.get(l),!s){if(e){const t=a(e);t===l?s=o:r.has(t)||r.set(t,o)}i&&(s??(s=new Map)),s&&r.set(l,s)}return s&&n.set(t,s),s}function a(e){let n=t.get(e);return n||t.set(e,n=EF(e,WP)),n}}function TF(e,t,n,r){const o=e.getOrCreateMapOfCacheRedirects(t);let i=o.get(n);return i||(i=r(),o.set(n,i)),i}function xF(e,t){return void 0===t?e:`${t}|${e}`}function AF(){const e=new Map,t=new Map,n={get:(t,n)=>e.get(r(t,n)),set:(t,o,i)=>(e.set(r(t,o),i),n),delete:(t,o)=>(e.delete(r(t,o)),n),has:(t,n)=>e.has(r(t,n)),forEach:n=>e.forEach(((e,r)=>{const[o,i]=t.get(r);return n(e,o,i)})),size:()=>e.size};return n;function r(e,n){const r=xF(e,n);return t.set(r,[e,n]),r}}function IF(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function RF(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function CF(e,t,n,r,o){const i=SF(n,o);return{getFromNonRelativeNameCache:function(e,t,n,r){var o,a;return In.assert(!Xs(e)),null==(a=null==(o=i.getMapOfCacheRedirects(r))?void 0:o.get(xF(e,t)))?void 0:a.get(n)},getOrCreateCacheForNonRelativeName:function(e,t,n){return In.assert(!Xs(e)),TF(i,n,xF(e,t),a)},clear:function(){i.clear()},update:function(e){i.update(e)}};function a(){const n=new Map;return{get:function(r){return n.get(ga(r,e,t))},set:function(o,i){const a=ga(o,e,t);if(n.has(a))return;n.set(a,i);const s=r(i),l=s&&function(n,r){const o=ga(ra(r),e,t);let i=0;const a=Math.min(n.length,o.length);for(;i<a&&n.charCodeAt(i)===o.charCodeAt(i);)i++;if(i===n.length&&(o.length===i||o[i]===Fi))return n;const s=na(n);if(i<s)return;const l=n.lastIndexOf(Fi,i-1);if(-1===l)return;return n.substr(0,Math.max(l,s))}(a,s);let c=a;for(;c!==l;){const e=ra(c);if(e===c||n.has(e))break;n.set(e,i),c=e}}}}}function DF(e,t,n,r,o,i){i??(i=new Map);const a=function(e,t,n,r){const o=SF(n,r);return{getFromDirectoryCache:function(n,r,i,a){var s,l;const c=ga(i,e,t);return null==(l=null==(s=o.getMapOfCacheRedirects(a))?void 0:s.get(c))?void 0:l.get(n,r)},getOrCreateCacheForDirectory:function(n,r){const i=ga(n,e,t);return TF(o,r,i,(()=>AF()))},clear:function(){o.clear()},update:function(e){o.update(e)},directoryToModuleNameMap:o}}(e,t,n,i),s=CF(e,t,n,o,i);return r??(r=function(e,t){let n;return{getPackageJsonInfo:function(r){return null==n?void 0:n.get(ga(r,e,t))},setPackageJsonInfo:function(r,o){(n||(n=new Map)).set(ga(r,e,t),o)},clear:function(){n=void 0},getInternalMap:function(){return n}}}(e,t)),{...r,...a,...s,clear:function(){l(),r.clear()},update:function(e){a.update(e),s.update(e)},getPackageJsonInfoCache:()=>r,clearAllExceptPackageJsonInfoCache:l,optionsToRedirectsKey:i};function l(){a.clear(),s.clear()}}function NF(e,t,n,r,o){const i=DF(e,t,n,r,IF,o);return i.getOrCreateCacheForModuleName=(e,t,n)=>i.getOrCreateCacheForNonRelativeName(e,t,n),i}function MF(e,t,n,r,o){return DF(e,t,n,r,RF,o)}function LF(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function kF(e,t,n,r,o){return wF(e,t,LF(n),r,o)}function PF(e,t,n,r){const o=ra(t);return n.getFromDirectoryCache(e,r,o,void 0)}function wF(e,t,n,r,o,i,a){var s,l,c;const d=XO(n,r);i&&(n=i.commandLine.options),d&&(JO(r,Oa.Resolving_module_0_from_1,e,t),i&&JO(r,Oa.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));const u=ra(t);let p=null==o?void 0:o.getFromDirectoryCache(e,a,u,i);if(p)d&&JO(r,Oa.Resolution_for_module_0_was_found_in_cache_from_location_1,e,u);else{let f=n.moduleResolution;switch(void 0===f?(f=Up(n),d&&JO(r,Oa.Module_resolution_kind_is_not_specified_using_0,No[f])):d&&JO(r,Oa.Explicitly_specified_module_resolution_kind_Colon_0,No[f]),null==(s=sr)||s.logStartResolveModule(e),f){case 3:case 99:p=function(e,t,n,r,o,i,a){return WF(30,e,t,n,r,o,i,a)}(e,t,n,r,o,i,a);break;case 2:p=BF(e,t,n,r,o,i,a?_F(n,a):void 0);break;case 1:p=CW(e,t,n,r,o,i);break;case 100:p=zF(e,t,n,r,o,i,a?_F(n,a):void 0);break;default:return In.fail(`Unexpected moduleResolution: ${f}`)}p&&p.resolvedModule&&(null==(l=sr)||l.logInfoEvent(`Module "${e}" resolved to "${p.resolvedModule.resolvedFileName}"`)),null==(c=sr)||c.logStopResolveModule(p&&p.resolvedModule?""+p.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(u,i).set(e,a,p),Xs(e)||o.getOrCreateCacheForNonRelativeName(e,a,i).set(u,p))}return d&&(p.resolvedModule?p.resolvedModule.packageId?JO(r,Oa.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,p.resolvedModule.resolvedFileName,qf(p.resolvedModule.packageId)):JO(r,Oa.Module_name_0_was_successfully_resolved_to_1,e,p.resolvedModule.resolvedFileName):JO(r,Oa.Module_name_0_was_not_resolved,e)),p}function OF(e,t,n,r,o){const i=function(e,t,n,r){var o;const{baseUrl:i,paths:a,configFile:s}=r.compilerOptions;if(a&&!Ji(t)){r.traceEnabled&&(i&&JO(r.host,Oa.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t),JO(r.host,Oa.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));return EW(e,t,ib(r.compilerOptions,r.host),a,(null==s?void 0:s.configFileSpecs)?(o=s.configFileSpecs).pathPatterns||(o.pathPatterns=mx(a)):void 0,n,!1,r)}}(e,t,r,o);return i?i.value:Xs(t)?function(e,t,n,r,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&JO(o.host,Oa.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const i=_a(ua(n,t));let a,s;for(const l of o.compilerOptions.rootDirs){let e=_a(l);Yt(e,Fi)||(e+=Fi);const t=dn(i,e)&&(void 0===s||s.length<e.length);o.traceEnabled&&JO(o.host,Oa.Checking_if_0_is_the_longest_matching_prefix_for_1_2,e,i,t),t&&(s=e,a=l)}if(s){o.traceEnabled&&JO(o.host,Oa.Longest_matching_prefix_for_0_is_1,i,s);const t=i.substr(s.length);o.traceEnabled&&JO(o.host,Oa.Loading_0_from_the_root_dir_1_candidate_location_2,t,s,i);const l=r(e,i,!jE(n,o.host),o);if(l)return l;o.traceEnabled&&JO(o.host,Oa.Trying_other_entries_in_rootDirs);for(const n of o.compilerOptions.rootDirs){if(n===a)continue;const i=ua(_a(n),t);o.traceEnabled&&JO(o.host,Oa.Loading_0_from_the_root_dir_1_candidate_location_2,t,n,i);const s=r(e,i,!jE(ra(i),o.host),o);if(s)return s}o.traceEnabled&&JO(o.host,Oa.Module_resolution_using_rootDirs_has_failed)}return}(e,t,n,r,o):function(e,t,n,r){const{baseUrl:o}=r.compilerOptions;if(!o)return;r.traceEnabled&&JO(r.host,Oa.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);const i=_a(ua(o,t));r.traceEnabled&&JO(r.host,Oa.Resolving_module_name_0_relative_to_base_url_1_2,t,o,i);return n(e,i,!jE(ra(i),r.host),r)}(e,t,r,o)}function FF(e,t,n){const{resolvedModule:r,failedLookupLocations:o}=function(e,t,n){return jF(0,e,t,{moduleResolution:2,allowJs:!0},n,void 0,2,!1,void 0,void 0)}(e,t,n);if(!r)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${null==o?void 0:o.join(", ")}`);return r.resolvedFileName}function WF(e,t,n,r,o,i,a,s,l){const c=ra(n),d=99===s?32:0;let u=r.noDtsResolution?3:7;return Yp(r)&&(u|=8),jF(e|d,t,c,r,o,i,u,!1,a,l)}function zF(e,t,n,r,o,i,a){const s=ra(t);let l=n.noDtsResolution?3:7;return Yp(n)&&(l|=8),jF(mF(n),e,s,n,r,o,l,!1,i,a)}function BF(e,t,n,r,o,i,a,s){let l;return s?l=8:n.noDtsResolution?(l=3,Yp(n)&&(l|=8)):l=Yp(n)?15:7,jF(a?30:0,e,ra(t),n,r,o,l,!!s,i,a)}function GF(e,t,n){return jF(30,e,ra(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function jF(e,t,n,r,i,a,s,l,c,d){var u,p,f,m,_;const h=XO(r,i),g=[],y=[],v=Up(r);d??(d=_F(r,100===v||2===v?void 0:32&e?99:1));const b=[],E={compilerOptions:r,host:i,traceEnabled:h,failedLookupLocations:g,affectingLocations:y,packageJsonInfoCache:a,features:e,conditions:d??o,requestContainingDirectory:n,reportDiagnostic:e=>{b.push(e)},isConfigLookup:l,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let S,x;if(h&&AT(v)&&JO(i,Oa.Resolving_in_0_mode_with_conditions_1,32&e?"ESM":"CJS",E.conditions.map((e=>`'${e}'`)).join(", ")),2===v){const e=5&s,t=-6&s;S=e&&A(e,E)||t&&A(t,E)||void 0}else S=A(s,E);if(E.resolvedPackageDirectory&&!l&&!Xs(t)){const t=(null==S?void 0:S.value)&&5&s&&!cW(5,S.value.resolved.extension);if((null==(u=null==S?void 0:S.value)?void 0:u.isExternalLibraryImport)&&t&&8&e&&(null==d?void 0:d.includes("import"))){kW(E,Oa.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const e=A(5&s,{...E,features:-9&E.features,reportDiagnostic:bt});(null==(p=null==e?void 0:e.value)?void 0:p.isExternalLibraryImport)&&(x=e.value.resolved.path)}else if((!(null==S?void 0:S.value)||t)&&2===v){kW(E,Oa.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const e={...E.compilerOptions,moduleResolution:100},t=A(5&s,{...E,compilerOptions:e,features:30,conditions:_F(e),reportDiagnostic:bt});(null==(f=null==t?void 0:t.value)?void 0:f.isExternalLibraryImport)&&(x=t.value.resolved.path)}}return tF(t,null==(m=null==S?void 0:S.value)?void 0:m.resolved,null==(_=null==S?void 0:S.value)?void 0:_.isExternalLibraryImport,g,y,b,E,a,x);function A(r,o){const s=OF(r,t,n,((e,t,n,r)=>UF(e,t,n,r,!0)),o);if(s)return LW({resolved:s,isExternalLibraryImport:HF(s.path)});if(Xs(t)){const{path:e,parts:i}=VF(n,t),a=UF(r,e,!1,o,!0);return a&&LW({resolved:a,isExternalLibraryImport:F(i,"node_modules")})}{let s;if(2&e&&dn(t,"#")&&(s=function(e,t,n,r,o,i){var a,s;if("#"===t||dn(t,"#/"))return r.traceEnabled&&JO(r.host,Oa.Invalid_import_specifier_0_has_no_possible_resolutions,t),LW(void 0);const l=ma(ua(n,"dummy"),null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),c=iW(l,r);if(!c)return r.traceEnabled&&JO(r.host,Oa.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,l),LW(void 0);if(!c.contents.packageJsonContent.imports)return r.traceEnabled&&JO(r.host,Oa.package_json_scope_0_has_no_imports_defined,c.packageDirectory),LW(void 0);const d=mW(e,r,o,i,t,c.contents.packageJsonContent.imports,c,!0);if(d)return d;r.traceEnabled&&JO(r.host,Oa.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,c.packageDirectory);return LW(void 0)}(r,t,n,o,a,c)),!s&&4&e&&(s=function(e,t,n,r,o,i){var a,s;const l=ma(ua(n,"dummy"),null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),c=iW(l,r);if(!c||!c.contents.packageJsonContent.exports)return;if("string"!==typeof c.contents.packageJsonContent.name)return;const d=sa(t),u=sa(c.contents.packageJsonContent.name);if(!M(u,((e,t)=>d[t]===e)))return;const p=d.slice(u.length),f=T(p)?`.${Fi}${p.join(Fi)}`:".";if(nf(r.compilerOptions)&&!HF(n))return pW(c,e,f,r,o,i);const m=5&e,_=-6&e;return pW(c,m,f,r,o,i)||pW(c,_,f,r,o,i)}(r,t,n,o,a,c)),!s){if(t.includes(":"))return void(h&&JO(i,Oa.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,ZO(r)));h&&JO(i,Oa.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,ZO(r)),s=gW(r,t,n,o,a,c)}return 4&r&&(s??(s=DW(t,o))),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function VF(e,t){const n=ua(e,t),r=sa(n),o=Oe(r);return{path:"."===o||".."===o?va(_a(n)):_a(n),parts:r}}function UF(e,t,n,r,o){if(r.traceEnabled&&JO(r.host,Oa.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,ZO(e)),!Zi(t)){if(!n){const e=ra(t);jE(e,r.host)||(r.traceEnabled&&JO(r.host,Oa.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!0)}const i=XF(e,t,n,r);if(i){const e=o?KF(i.path):void 0;return $O(e?sW(e,!1,r):void 0,i)}}if(!n){jE(t,r.host)||(r.traceEnabled&&JO(r.host,Oa.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0)}if(!(32&r.features))return tW(e,t,n,r,o)}function HF(e){return e.includes(HO)}function KF(e,t){const n=_a(e),r=n.lastIndexOf(HO);if(-1===r)return;const o=r+HO.length;let i=qF(n,o,t);return 64===n.charCodeAt(o)&&(i=qF(n,i,t)),n.slice(0,i)}function qF(e,t,n){const r=e.indexOf(Fi,t+1);return-1===r?n?e.length:t:r}function JF(e,t,n,r){return YO(XF(e,t,n,r))}function XF(e,t,n,r){const o=$F(e,t,n,r);if(o)return o;if(!(32&r.features)){const o=QF(t,e,"",n,r);if(o)return o}}function $F(e,t,n,r){if(!oa(t).includes("."))return;let o=cx(t);o===t&&(o=t.substring(0,t.lastIndexOf(".")));const i=t.substring(o.length);return r.traceEnabled&&JO(r.host,Oa.File_name_0_has_a_1_extension_stripping_it,t,i),QF(o,e,i,n,r)}function YF(e,t,n,r){if(1&e&&Qi(t,Sf)||4&e&&Qi(t,Ef)){return void 0!==ZF(t,n,r)?{path:t,ext:wE(t),resolvedUsingTsExtension:void 0}:void 0}if(r.isConfigLookup&&8===e&&Yi(t,".json")){return void 0!==ZF(t,n,r)?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0}return $F(e,t,n,r)}function QF(e,t,n,r,o){if(!r){const t=ra(e);t&&(r=!jE(t,o.host))}switch(n){case".mjs":case".mts":case".d.mts":return 1&t&&i(".mts",".mts"===n||".d.mts"===n)||4&t&&i(".d.mts",".mts"===n||".d.mts"===n)||2&t&&i(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return 1&t&&i(".cts",".cts"===n||".d.cts"===n)||4&t&&i(".d.cts",".cts"===n||".d.cts"===n)||2&t&&i(".cjs")||void 0;case".json":return 4&t&&i(".d.json.ts")||8&t&&i(".json")||void 0;case".tsx":case".jsx":return 1&t&&(i(".tsx",".tsx"===n)||i(".ts",".tsx"===n))||4&t&&i(".d.ts",".tsx"===n)||2&t&&(i(".jsx")||i(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return 1&t&&(i(".ts",".ts"===n||".d.ts"===n)||i(".tsx",".ts"===n||".d.ts"===n))||4&t&&i(".d.ts",".ts"===n||".d.ts"===n)||2&t&&(i(".js")||i(".jsx"))||o.isConfigLookup&&i(".json")||void 0;default:return 4&t&&!_P(e+n)&&i(`.d${n}.ts`)||void 0}function i(t,n){const i=ZF(e+t,r,o);return void 0===i?void 0:{path:i,ext:t,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&n}}}function ZF(e,t,n){var r;if(!(null==(r=n.compilerOptions.moduleSuffixes)?void 0:r.length))return eW(e,t,n);const o=bx(e)??"",i=o?ux(e,o):e;return x(n.compilerOptions.moduleSuffixes,(e=>eW(i+e+o,t,n)))}function eW(e,t,n){var r;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&JO(n.host,Oa.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&JO(n.host,Oa.File_0_does_not_exist,e)}null==(r=n.failedLookupLocations)||r.push(e)}function tW(e,t,n,r,o=!0){const i=o?sW(t,n,r):void 0;return $O(i,lW(e,t,n,r,i&&i.contents.packageJsonContent,i&&aW(i,r)))}function nW(e,t,n,r,o){if(!o&&void 0!==e.contents.resolvedEntrypoints)return e.contents.resolvedEntrypoints;let i;const a=5|(o?2:0),s=mF(t),l=oW(null==r?void 0:r.getPackageJsonInfoCache(),n,t);l.conditions=_F(t),l.requestContainingDirectory=e.packageDirectory;const c=lW(a,e.packageDirectory,!1,l,e.contents.packageJsonContent,aW(e,l));if(i=Ee(i,null==c?void 0:c.path),8&s&&e.contents.packageJsonContent.exports){const r=pe([_F(t,99),_F(t,1)],ye);for(const t of r){const r={...l,failedLookupLocations:[],conditions:t,host:n},o=rW(e,e.contents.packageJsonContent.exports,r,a);if(o)for(const e of o)i=Ie(i,e.path)}}return e.contents.resolvedEntrypoints=i||!1}function rW(e,t,n,r){let o;if(mt(t))for(const a of t)i(a);else if("object"===typeof t&&null!==t&&uW(t))for(const a in t)i(t[a]);else i(t);return o;function i(t){var a,s;if("string"===typeof t&&dn(t,"./"))if(t.includes("*")&&n.host.readDirectory){if(t.indexOf("*")!==t.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,function(e){const t=[];return 1&e&&t.push(...Sf),2&e&&t.push(...yf),4&e&&t.push(...Ef),8&e&&t.push(".json"),t}(r),void 0,[Sa(CA(t,"**/*"),".*")]).forEach((e=>{o=Ie(o,{path:e,ext:aa(e),resolvedUsingTsExtension:void 0})}))}else{const i=sa(t).slice(2);if(i.includes("..")||i.includes(".")||i.includes("node_modules"))return!1;const l=ma(ua(e.packageDirectory,t),null==(s=(a=n.host).getCurrentDirectory)?void 0:s.call(a)),c=YF(r,l,!1,n);if(c)return o=Ie(o,c,((e,t)=>e.path===t.path)),!0}else if(Array.isArray(t))for(const e of t){if(i(e))return!0}else if("object"===typeof t&&null!==t)return x(qe(t),(e=>{if("default"===e||F(n.conditions,e)||hW(n.conditions,e))return i(t[e]),!0}))}}function oW(e,t,n){return{host:t,compilerOptions:n,traceEnabled:XO(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:o,requestContainingDirectory:void 0,reportDiagnostic:bt,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function iW(e,t){const n=sa(e);for(n.pop();n.length>0;){const e=sW(la(n),!1,t);if(e)return e;n.pop()}}function aW(e,t){return void 0===e.contents.versionPaths&&(e.contents.versionPaths=lF(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function sW(e,t,n){var r,o,i,a,s,l;const{host:c,traceEnabled:d}=n,u=ua(e,"package.json");if(t)return void(null==(r=n.failedLookupLocations)||r.push(u));const p=null==(o=n.packageJsonInfoCache)?void 0:o.getPackageJsonInfo(u);if(void 0!==p)return yF(p)?(d&&JO(c,Oa.File_0_exists_according_to_earlier_cached_lookups,u),null==(i=n.affectingLocations)||i.push(u),p.packageDirectory===e?p:{packageDirectory:e,contents:p.contents}):(p.directoryExists&&d&&JO(c,Oa.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void(null==(a=n.failedLookupLocations)||a.push(u)));const f=jE(e,c);if(f&&c.fileExists(u)){const t=BE(u,c);d&&JO(c,Oa.Found_package_json_at_0,u);const r={packageDirectory:e,contents:{packageJsonContent:t,versionPaths:void 0,resolvedEntrypoints:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,r),null==(s=n.affectingLocations)||s.push(u),r}f&&d&&JO(c,Oa.File_0_does_not_exist,u),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,{packageDirectory:e,directoryExists:f}),null==(l=n.failedLookupLocations)||l.push(u)}function lW(e,n,r,o,i,a){let s;i&&(s=o.isConfigLookup?function(e,t,n){return sF(e,"tsconfig",t,n)}(i,n,o):4&e&&function(e,t,n){return sF(e,"typings",t,n)||sF(e,"types",t,n)}(i,n,o)||7&e&&function(e,t,n){return sF(e,"main",t,n)}(i,n,o)||void 0);const l=(e,t,n,r)=>{const o=YF(e,t,n,r);if(o)return YO(o);const a=4===e?5:e,s=r.features,l=r.candidateIsFromPackageJsonField;r.candidateIsFromPackageJsonField=!0,"module"!==(null==i?void 0:i.type)&&(r.features&=-33);const c=UF(a,t,n,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=l,c},c=s?!jE(ra(s),o.host):void 0,d=r||!jE(n,o.host),u=ua(n,o.isConfigLookup?"tsconfig":"index");if(a&&(!s||Ra(n,s))){const r=Na(n,s||u,!1);o.traceEnabled&&JO(o.host,Oa.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,a.version,t,r);const i=EW(e,r,n,a.paths,void 0,l,c||d,o);if(i)return QO(i.value)}const p=s&&QO(l(e,s,c,o));return p||(32&o.features?void 0:XF(e,u,d,o))}function cW(e,t){return 2&e&&(".js"===t||".jsx"===t||".mjs"===t||".cjs"===t)||1&e&&(".ts"===t||".tsx"===t||".mts"===t||".cts"===t)||4&e&&(".d.ts"===t||".d.mts"===t||".d.cts"===t)||8&e&&".json"===t||!1}function dW(e){let t=e.indexOf(Fi);return"@"===e[0]&&(t=e.indexOf(Fi,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function uW(e){return M(qe(e),(e=>dn(e,".")))}function pW(e,t,n,r,o,i){if(e.contents.packageJsonContent.exports){if("."===n){let a;if("string"===typeof e.contents.packageJsonContent.exports||Array.isArray(e.contents.packageJsonContent.exports)||"object"===typeof e.contents.packageJsonContent.exports&&!se(qe(e.contents.packageJsonContent.exports),(e=>dn(e,".")))?a=e.contents.packageJsonContent.exports:He(e.contents.packageJsonContent.exports,".")&&(a=e.contents.packageJsonContent.exports["."]),a){return _W(t,r,o,i,n,e,!1)(a,"",!1,".")}}else if(uW(e.contents.packageJsonContent.exports)){if("object"!==typeof e.contents.packageJsonContent.exports)return r.traceEnabled&&JO(r.host,Oa.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),LW(void 0);const a=mW(t,r,o,i,n,e.contents.packageJsonContent.exports,e,!1);if(a)return a}return r.traceEnabled&&JO(r.host,Oa.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),LW(void 0)}}function fW(e,t){const n=e.indexOf("*"),r=t.indexOf("*"),o=-1===n?e.length:n+1,i=-1===r?t.length:r+1;return o>i?-1:i>o||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function mW(e,t,n,r,o,i,a,s){const l=_W(e,t,n,r,o,a,s);if(!Yt(o,Fi)&&!o.includes("*")&&He(i,o)){return l(i[o],"",!1,o)}const c=Ce(G(qe(i),(e=>e.includes("*")||Yt(e,"/"))),fW);for(const u of c){if(16&t.features&&d(u,o)){const e=i[u],t=u.indexOf("*");return l(e,o.substring(u.substring(0,t).length,o.length-(u.length-1-t)),!0,u)}if(Yt(u,"*")&&dn(o,u.substring(0,u.length-1))){return l(i[u],o.substring(u.length-1),!0,u)}if(dn(o,u)){return l(i[u],o.substring(u.length),!1,u)}}function d(e,t){if(Yt(e,"*"))return!1;const n=e.indexOf("*");return-1!==n&&(dn(t,e.substring(0,n))&&Yt(t,e.substring(n+1)))}}function _W(e,t,n,r,o,i,a){return function s(l,c,d,u){if("string"===typeof l){if(!d&&c.length>0&&!Yt(l,"/"))return t.traceEnabled&&JO(t.host,Oa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,i.packageDirectory,o),LW(void 0);if(!dn(l,"./")){if(a&&!dn(l,"../")&&!dn(l,"/")&&!Hi(l)){const o=d?l.replace(/\*/g,c):l+c;kW(t,Oa.Using_0_subpath_1_with_target_2,"imports",u,o),kW(t,Oa.Resolving_module_0_from_1,o,i.packageDirectory+"/");const a=jF(t.features,o,i.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,r,t.conditions);return LW(a.resolvedModule?{path:a.resolvedModule.resolvedFileName,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,originalPath:a.resolvedModule.originalPath,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&JO(t.host,Oa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,i.packageDirectory,o),LW(void 0)}const s=(Ji(l)?sa(l).slice(1):sa(l)).slice(1);if(s.includes("..")||s.includes(".")||s.includes("node_modules"))return t.traceEnabled&&JO(t.host,Oa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,i.packageDirectory,o),LW(void 0);const m=ua(i.packageDirectory,l),_=sa(c);if(_.includes("..")||_.includes(".")||_.includes("node_modules"))return t.traceEnabled&&JO(t.host,Oa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,i.packageDirectory,o),LW(void 0);t.traceEnabled&&JO(t.host,Oa.Using_0_subpath_1_with_target_2,a?"imports":"exports",u,d?l.replace(/\*/g,c):l+c);const h=p(d?m.replace(/\*/g,c):m+c),g=function(n,r,o,a){var s,l,c,d;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!n.includes("/node_modules/")&&(!t.compilerOptions.configFile||Ra(i.packageDirectory,p(t.compilerOptions.configFile.fileName),!PW(t)))){const f=Jv({useCaseSensitiveFileNames:()=>PW(t)}),m=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const e=p(wV(t.compilerOptions,(()=>[]),(null==(l=(s=t.host).getCurrentDirectory)?void 0:l.call(s))||"",f));m.push(e)}else if(t.requestContainingDirectory){const e=p(ua(t.requestContainingDirectory,"index.ts")),n=p(wV(t.compilerOptions,(()=>[e,p(o)]),(null==(d=(c=t.host).getCurrentDirectory)?void 0:d.call(c))||"",f));m.push(n);let r=va(n);for(;r&&r.length>1;){const e=sa(r);e.pop();const t=la(e);m.unshift(t),r=va(t)}}m.length>1&&t.reportDiagnostic(sT(a?Oa.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:Oa.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===r?".":r,o));for(const r of m){const o=u(r);for(const a of o)if(Ra(a,n,!PW(t))){const o=ua(r,n.slice(a.length+1)),s=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const n of s)if(Yi(o,n)){const r=rb(o);for(const a of r){if(!cW(e,a))continue;const r=Ea(o,a,n,!PW(t));if(t.host.fileExists(r))return LW($O(i,YF(e,r,!1,t)))}}}}}return;function u(e){var n,r;const o=t.compilerOptions.configFile?(null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))||"":e,i=[];return t.compilerOptions.declarationDir&&i.push(p(f(o,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&i.push(p(f(o,t.compilerOptions.outDir))),i}}(h,c,ua(i.packageDirectory,"package.json"),a);return g||LW($O(i,YF(e,h,!1,t)))}if("object"===typeof l&&null!==l){if(!Array.isArray(l)){kW(t,Oa.Entering_conditional_exports);for(const e of qe(l))if("default"===e||t.conditions.includes(e)||hW(t.conditions,e)){kW(t,Oa.Matched_0_condition_1,a?"imports":"exports",e);const n=l[e],r=s(n,c,d,u);if(r)return kW(t,Oa.Resolved_under_condition_0,e),kW(t,Oa.Exiting_conditional_exports),r;kW(t,Oa.Failed_to_resolve_under_condition_0,e)}else kW(t,Oa.Saw_non_matching_condition_0,e);return void kW(t,Oa.Exiting_conditional_exports)}if(!T(l))return t.traceEnabled&&JO(t.host,Oa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,i.packageDirectory,o),LW(void 0);for(const e of l){const t=s(e,c,d,u);if(t)return t}}else if(null===l)return t.traceEnabled&&JO(t.host,Oa.package_json_scope_0_explicitly_maps_specifier_1_to_null,i.packageDirectory,o),LW(void 0);t.traceEnabled&&JO(t.host,Oa.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,i.packageDirectory,o);return LW(void 0);function p(e){var n,r;return void 0===e?e:ma(e,null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))}function f(e,t){return va(ua(e,t))}}}function hW(e,n){if(!e.includes("types"))return!1;if(!dn(n,"types@"))return!1;const r=wn.tryParse(n.substring(6));return!!r&&r.test(t)}function gW(e,t,n,r,o,i){return yW(e,t,n,r,!1,o,i)}function yW(e,t,n,r,o,i,a){const s=0===r.features?void 0:32&r.features?99:1,l=5&e,c=-6&e;if(l){kW(r,Oa.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,ZO(l));const e=d(l);if(e)return e}if(c&&!o)return kW(r,Oa.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,ZO(c)),d(c);function d(e){return Pa(ca(n),(n=>{if("node_modules"!==oa(n)){const l=RW(i,t,s,n,a,r);return l||LW(vW(e,t,n,r,o,i,a))}}))}}function vW(e,t,n,r,o,i,a){const s=ua(n,"node_modules"),l=jE(s,r.host);if(!l&&r.traceEnabled&&JO(r.host,Oa.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!o){const n=bW(e,t,s,l,r,i,a);if(n)return n}if(4&e){const e=ua(s,"@types");let n=l;return l&&!jE(e,r.host)&&(r.traceEnabled&&JO(r.host,Oa.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!1),bW(4,SW(t,r),e,n,r,i,a)}}function bW(e,n,r,i,a,s,l){var c,d;const u=_a(ua(r,n)),{packageName:p,rest:f}=dW(n),m=ua(r,p);let _,h=sW(u,!i,a);if(""!==f&&h&&(!(8&a.features)||!He((null==(c=_=sW(m,!i,a))?void 0:c.contents.packageJsonContent)??o,"exports"))){const t=XF(e,u,!i,a);if(t)return YO(t);const n=lW(e,u,!i,a,h.contents.packageJsonContent,aW(h,a));return $O(h,n)}const g=(e,t,n,r)=>{let o=(f||!(32&r.features))&&XF(e,t,n,r)||lW(e,t,n,r,h&&h.contents.packageJsonContent,h&&aW(h,r));return!o&&h&&(void 0===h.contents.packageJsonContent.exports||null===h.contents.packageJsonContent.exports)&&32&r.features&&(o=XF(e,ua(t,"index.js"),n,r)),$O(h,o)};if(""!==f&&(h=_??sW(m,!i,a)),h&&(a.resolvedPackageDirectory=!0),h&&h.contents.packageJsonContent.exports&&8&a.features)return null==(d=pW(h,e,ua(".",f),a,s,l))?void 0:d.value;const y=""!==f&&h?aW(h,a):void 0;if(y){a.traceEnabled&&JO(a.host,Oa.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,y.version,t,f);const n=i&&jE(m,a.host),r=EW(e,f,m,y.paths,void 0,g,!n,a);if(r)return r.value}return g(e,u,!i,a)}function EW(e,t,n,r,o,i,a,s){o||(o=mx(r));const l=Sx(o,t);if(l){const o=ht(l)?void 0:ln(l,t),c=ht(l)?l:sn(l);s.traceEnabled&&JO(s.host,Oa.Module_name_0_matched_pattern_1,t,c);return{value:x(r[c],(t=>{const r=o?CA(t,o):t,l=_a(ua(n,r));s.traceEnabled&&JO(s.host,Oa.Trying_substitution_0_candidate_module_location_Colon_1,t,r);const c=bx(t);if(void 0!==c){const e=ZF(l,a,s);if(void 0!==e)return YO({path:e,ext:c,resolvedUsingTsExtension:void 0})}return i(e,l,a||!jE(ra(l),s.host),s)}))}}}function SW(e,t){const n=xW(e);return t.traceEnabled&&n!==e&&JO(t.host,Oa.Scoped_package_detected_looking_in_0,n),n}function TW(e){return`@types/${xW(e)}`}function xW(e){if(dn(e,"@")){const t=e.replace(Fi,KO);if(t!==e)return t.slice(1)}return e}function AW(e){const t=un(e,"@types/");return t!==e?IW(t):e}function IW(e){return e.includes(KO)?"@"+e.replace(KO,Fi):e}function RW(e,t,n,r,o,i){const a=e&&e.getFromNonRelativeNameCache(t,n,r,o);if(a)return i.traceEnabled&&JO(i.host,Oa.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),i.resultFromCache=a,{value:a.resolvedModule&&{path:a.resolvedModule.resolvedFileName,originalPath:a.resolvedModule.originalPath||!0,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}}}function CW(e,t,n,r,o,i){const a=XO(n,r),s=[],l=[],c=ra(t),d=[],u={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:l,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:c,reportDiagnostic:e=>{d.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},p=f(5)||f(2|(n.resolveJsonModule?8:0));return tF(e,p&&p.value,(null==p?void 0:p.value)&&HF(p.value.path),s,l,d,u,o);function f(t){const n=OF(t,e,c,JF,u);if(n)return{value:n};if(Xs(e)){const n=_a(ua(c,e));return LW(JF(t,n,!1,u))}{const n=Pa(c,(n=>{const r=RW(o,e,void 0,n,i,u);if(r)return r;const a=_a(ua(n,e));return LW(JF(t,a,!1,u))}));if(n)return n;if(5&t){let n=function(e,t,n){return yW(4,e,t,n,!0,void 0,void 0)}(e,c,u);return 4&t&&(n??(n=DW(e,u))),n}}}}function DW(e,t){if(t.compilerOptions.typeRoots)for(const n of t.compilerOptions.typeRoots){const r=pF(n,e,t),o=jE(n,t.host);!o&&t.traceEnabled&&JO(t.host,Oa.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);const i=XF(4,r,!o,t);if(i){const e=KF(i.path);return LW($O(e?sW(e,!1,t):void 0,i))}const a=tW(4,r,!o,t);if(a)return LW(a)}}function NW(e,t){return!!e.allowImportingTsExtensions||t&&_P(t)}function MW(e,t,n,r,o,i){const a=XO(n,r);a&&JO(r,Oa.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);const s=[],l=[],c=[],d={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:l,packageJsonInfoCache:i,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>{c.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};return nF(vW(4,e,o,d,!1,void 0,void 0),!0,s,l,c,d.resultFromCache,void 0)}function LW(e){return void 0!==e?{value:e}:void 0}function kW(e,t,...n){e.traceEnabled&&JO(e.host,t,...n)}function PW(e){return!e.host.useCaseSensitiveFileNames||("boolean"===typeof e.host.useCaseSensitiveFileNames?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames())}var wW,OW,FW,WW=b({"src/compiler/moduleNameResolver.ts"(){JJ(),VO=ua("node_modules","@types"),UO=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(UO||{}),HO="/node_modules/",KO="__"}});function zW(e,t){return e.body&&!e.body.parent&&(Vx(e.body,e),Hx(e.body,!1)),e.body?BW(e.body,t):1}function BW(e,t=new Map){const n=Hz(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const r=function(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(A_(e))return 2;break;case 272:case 271:if(!Gb(e,32))return 0;break;case 278:const n=e;if(!n.moduleSpecifier&&n.exportClause&&279===n.exportClause.kind){let e=0;for(const r of n.exportClause.elements){const n=GW(r,t);if(n>e&&(e=n),1===e)return e}return e}break;case 268:{let n=0;return oP(e,(e=>{const r=BW(e,t);switch(r){case 0:return;case 2:return void(n=2);case 1:return n=1,!0;default:In.assertNever(r)}})),n}case 267:return zW(e,t);case 80:if(4096&e.flags)return 0}return 1}(e,t);return t.set(n,r),r}function GW(e,t){const n=e.propertyName||e.name;let r=e.parent;for(;r;){if(BD(r)||fN(r)||rM(r)){const e=r.statements;let o;for(const i of e)if(Wl(i,n)){i.parent||(Vx(i,r),Hx(i,!1));const e=BW(i,t);if((void 0===o||e>o)&&(o=e),1===o)return o;271===i.kind&&(o=1)}if(void 0!==o)return o}r=r.parent}return 1}function jW(e){return In.attachFlowNodeDebugInfo(e),e}function VW(e,t){var n,r;br("beforeBind"),null==(n=sr)||n.logStartBindFile(""+e.fileName),FW(e,t),null==(r=sr)||r.logStopBindFile(),br("afterBind"),Er("Bind","beforeBind","afterBind")}function UW(){var e,t,n,r,o,i,a,s,l,c,d,u,p,f,m,_,h,g,y,v,b,E,S,A,I=!1,R=0,C={flags:1},D={flags:1},N=function(){return tk((function(e,t){if(t){t.stackIndex++,Vx(e,r);const n=E;je(e);const o=r;r=e,t.skip=!1,t.inStrictModeStack[t.stackIndex]=n,t.parentStack[t.stackIndex]=o}else t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const n=e.operatorToken.kind;if(pE(n)||dE(n)){if(ae(e)){const t=X();ye(e,t,t),d=oe(t)}else ye(e,m,_);t.skip=!0}return t}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&_e(t),n}}),(function(e,t,n){t.skip||We(e)}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&_e(t),n}}),(function(e,t){if(!t.skip){const t=e.operatorToken.kind;if(mE(t)&&!my(e)&&(ge(e.left),64===t&&212===e.left.kind)){J(e.left.expression)&&(d=ne(256,d,e))}}const n=t.inStrictModeStack[t.stackIndex],o=t.parentStack[t.stackIndex];void 0!==n&&(E=n);void 0!==o&&(r=o);t.skip=!1,t.stackIndex--}),void 0);function e(e){if(e&&TD(e)&&!vE(e))return e;We(e)}}();return function(g,T){var x,N;e=g,n=jp(t=T),E=function(e,t){return!(!IT(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}(e,T),A=new Set,R=0,S=Wp.getSymbolConstructor(),In.attachFlowNodeDebugInfo(C),In.attachFlowNodeDebugInfo(D),e.locals||(null==(x=kr)||x.push(kr.Phase.Bind,"bindSourceFile",{path:e.path},!0),We(e),null==(N=kr)||N.pop(),e.symbolCount=R,e.classifiableNames=A,function(){if(!l)return;const t=o,n=s,i=a,c=r,u=d;for(const s of l){const t=s.parent.parent;o=t_(t)||e,a=n_(t)||e,d=jW({flags:2}),r=s,We(s.typeExpression);const n=jl(s);if((wM(s)||!s.fullName)&&n&&xE(n.parent)){const t=et(n.parent);if(t){Qe(e.symbol,n.parent,t,!!Cl(n,(e=>lD(e)&&"prototype"===e.name.escapedText)),!1);const r=o;switch(Mg(n.parent)){case 1:case 2:o=T_(e)?e:void 0;break;case 4:o=n.parent.expression;break;case 3:o=n.parent.expression.name;break;case 5:o=KW(e,n.parent.expression)?e:lD(n.parent.expression)?n.parent.expression.name:n.parent.expression;break;case 0:return In.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&z(s,524288,788968),o=r}}else wM(s)||!s.fullName||80===s.fullName.kind?(r=s.parent,Me(s,524288,788968)):We(s.fullName)}o=t,s=n,a=i,r=c,d=u}());e=void 0,t=void 0,n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,l=void 0,c=!1,d=void 0,u=void 0,p=void 0,f=void 0,m=void 0,_=void 0,h=void 0,y=void 0,v=!1,I=!1,b=0};function L(t,n,...r){return p_(Yf(t)||e,t,n,...r)}function k(e,t){return R++,new S(e,t)}function P(e,t,n){e.flags|=n,t.symbol=e,e.declarations=Ie(e.declarations,t),1955&n&&!e.exports&&(e.exports=Mf()),6240&n&&!e.members&&(e.members=Mf()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&n&&wg(e,t)}function w(e){if(277===e.kind)return e.isExportEquals?"export=":"default";const t=jl(e);if(t){if(Pm(e)){const n=sv(t);return Bm(e)?"__global":`"${n}"`}if(167===t.kind){const e=t.expression;if(tv(e))return Ml(e.text);if(nv(e))return as(e.operator)+e.operand.text;In.fail("Only computed properties with literal names have declaration names")}if(rC(t)){const n=_h(e);if(!n)return;return dv(n.symbol,t.escapedText)}return qN(t)?EA(t):av(t)?lv(t):void 0}switch(e.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(2===Eg(e))return"export=";In.fail("Unknown binary declaration kind");break;case 324:return Hg(e)?"__new":"__call";case 169:In.assert(324===e.parent.kind,"Impossible parameter parent kind",(()=>`parent is: ${In.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`));return"arg"+e.parent.parameters.indexOf(e)}}function O(e){return Bl(e)?o_(e.name):Ll(In.checkDefined(w(e)))}function W(t,n,r,o,i,a,s){In.assert(s||!rv(r));const l=Gb(r,2048)||MN(r)&&"default"===r.name.escapedText,c=s?"__computed":l&&n?"default":w(r);let d;if(void 0===c)d=k(0,"__missing");else if(d=t.get(c),2885600&o&&A.add(c),d){if(a&&!d.isReplaceableByMethod)return d;if(d.flags&i)if(d.isReplaceableByMethod)t.set(c,d=k(0,c));else if(!(3&o&&67108864&d.flags)){Bl(r)&&Vx(r.name,r);let t=2&d.flags?Oa.Cannot_redeclare_block_scoped_variable_0:Oa.Duplicate_identifier_0,n=!0;(384&d.flags||384&o)&&(t=Oa.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,n=!1);let i=!1;T(d.declarations)&&(l||d.declarations&&d.declarations.length&&277===r.kind&&!r.isExportEquals)&&(t=Oa.A_module_cannot_have_multiple_default_exports,n=!1,i=!0);const a=[];dN(r)&&im(r.type)&&Gb(r,32)&&2887656&d.flags&&a.push(L(r,Oa.Did_you_mean_0,`export type { ${Ll(r.name.escapedText)} }`));const s=jl(r)||r;x(d.declarations,((r,o)=>{const l=jl(r)||r,c=n?L(l,t,O(r)):L(l,t);e.bindDiagnostics.push(i?xx(c,L(s,0===o?Oa.Another_export_default_is_here:Oa.and_here)):c),i&&a.push(L(l,Oa.The_first_export_default_is_here))}));const u=n?L(s,t,O(r)):L(s,t);e.bindDiagnostics.push(xx(u,...a)),d=k(0,c)}}else t.set(c,d=k(0,c)),a&&(d.isReplaceableByMethod=!0);return P(d,r,o),d.parent?In.assert(d.parent===n,"Existing symbol parent should match new one"):d.parent=n,d}function z(e,t,n){const r=!!(32&Sl(e))||function(e){e.parent&&pN(e)&&(e=e.parent);if(!Kg(e))return!1;if(!wM(e)&&e.fullName)return!0;const t=jl(e);return!!t&&(!(!xE(t.parent)||!et(t.parent))||!!(Lu(t.parent)&&32&Sl(t.parent)))}(e);if(2097152&t)return 281===e.kind||271===e.kind&&r?W(o.symbol.exports,o.symbol,e,t,n):(In.assertNode(o,Du),W(o.locals,void 0,e,t,n));if(Kg(e)&&In.assert($h(e)),!Pm(e)&&(r||128&o.flags)){if(!Du(o)||!o.locals||Gb(e,2048)&&!w(e))return W(o.symbol.exports,o.symbol,e,t,n);const r=111551&t?1048576:0,i=W(o.locals,void 0,e,r,n);return i.exportSymbol=W(o.symbol.exports,o.symbol,e,t,n),e.localSymbol=i,i}return In.assertNode(o,Du),W(o.locals,void 0,e,t,n)}function B(e){G(e,(e=>262===e.kind?We(e):void 0)),G(e,(e=>262!==e.kind?We(e):void 0))}function G(e,t=We){void 0!==e&&x(e,t)}function j(e){oP(e,We,G)}function V(e){const n=I;if(I=!1,function(e){if(!(1&d.flags))return!1;if(d===C){const n=Pu(e)&&242!==e.kind||263===e.kind||267===e.kind&&function(e){const n=zW(e);return 1===n||2===n&&Zp(t)}(e);if(n&&(d=D,!t.allowUnreachableCode)){const n=TT(t)&&!(33554432&e.flags)&&(!GD(e)||!!(7&xl(e.declarationList))||e.declarationList.declarations.some((e=>!!e.initializer)));!function(e,t){if(wu(e)&&HW(e)&&BD(e.parent)){const{statements:n}=e.parent,r=Tx(n,e);le(r,HW,((e,n)=>t(r[e],r[n-1])))}else t(e,e)}(e,((e,t)=>Fe(n,e,t,Oa.Unreachable_code_detected)))}}return!0}(e))return j(e),ze(e),void(I=n);switch(e.kind>=243&&e.kind<=259&&!t.allowUnreachableCode&&(e.flowNode=d),e.kind){case 247:!function(e){const t=fe(e,$()),n=X(),r=X();Z(t,d),d=t,ue(e.expression,n,r),d=oe(n),pe(e.statement,r,t),Z(t,d),d=oe(r)}(e);break;case 246:!function(e){const t=$(),n=fe(e,X()),r=X();Z(t,d),d=t,pe(e.statement,r,n),Z(n,d),d=oe(n),ue(e.expression,t,r),d=oe(r)}(e);break;case 248:!function(e){const t=fe(e,$()),n=X(),r=X();We(e.initializer),Z(t,d),d=t,ue(e.condition,n,r),d=oe(n),pe(e.statement,r,t),We(e.incrementor),Z(t,d),d=oe(r)}(e);break;case 249:case 250:!function(e){const t=fe(e,$()),n=X();We(e.expression),Z(t,d),d=t,250===e.kind&&We(e.awaitModifier);Z(n,d),We(e.initializer),261!==e.initializer.kind&&ge(e.initializer);pe(e.statement,n,t),Z(t,d),d=oe(n)}(e);break;case 245:!function(e){const t=X(),n=X(),r=X();ue(e.expression,t,n),d=oe(t),We(e.thenStatement),Z(r,d),d=oe(n),We(e.elseStatement),Z(r,d),d=oe(r)}(e);break;case 253:case 257:!function(e){We(e.expression),253===e.kind&&(v=!0,f&&Z(f,d));d=C}(e);break;case 252:case 251:!function(e){if(We(e.label),e.label){const t=function(e){for(let t=y;t;t=t.next)if(t.name===e)return t;return}(e.label.escapedText);t&&(t.referenced=!0,me(e,t.breakTarget,t.continueTarget))}else me(e,u,p)}(e);break;case 258:!function(e){const t=f,n=h,r=X(),o=X();let i=X();e.finallyBlock&&(f=o);Z(i,d),h=i,We(e.tryBlock),Z(r,d),e.catchClause&&(d=oe(i),i=X(),Z(i,d),h=i,We(e.catchClause),Z(r,d));if(f=t,h=n,e.finallyBlock){const t=X();t.antecedents=ce(ce(r.antecedents,i.antecedents),o.antecedents),d=t,We(e.finallyBlock),1&d.flags?d=C:(f&&o.antecedents&&Z(f,Y(t,o.antecedents,d)),h&&i.antecedents&&Z(h,Y(t,i.antecedents,d)),d=r.antecedents?Y(t,r.antecedents,d):C)}else d=oe(r)}(e);break;case 255:!function(e){const t=X();We(e.expression);const n=u,r=g;u=t,g=d,We(e.caseBlock),Z(t,d);const o=x(e.caseBlock.clauses,(e=>297===e.kind));e.possiblyExhaustive=!o&&!t.antecedents,o||Z(t,te(g,e,0,0));u=n,g=r,d=oe(t)}(e);break;case 269:!function(e){const n=e.clauses,r=112===e.parent.expression.kind||U(e.parent.expression);let o=C;for(let i=0;i<n.length;i++){const a=i;for(;!n[i].statements.length&&i+1<n.length;)o===C&&(d=g),We(n[i]),i++;const s=X();Z(s,r?te(g,e.parent,a,i+1):g),Z(s,o),d=oe(s);const l=n[i];We(l),o=d,1&d.flags||i===n.length-1||!t.noFallthroughCasesInSwitch||(l.fallthroughFlowNode=d)}}(e);break;case 296:!function(e){const t=d;d=g,We(e.expression),d=t,G(e.statements)}(e);break;case 244:!function(e){We(e.expression),_e(e.expression)}(e);break;case 256:!function(e){const n=X();y={next:y,name:e.label.escapedText,breakTarget:n,continueTarget:void 0,referenced:!1},We(e.label),We(e.statement),y.referenced||t.allowUnusedLabels||function(e,t,n){Fe(e,t,t,n)}(xT(t),e.label,Oa.Unused_label);y=y.next,Z(n,d),d=oe(n)}(e);break;case 224:!function(e){if(54===e.operator){const t=m;m=_,_=t,j(e),_=m,m=t}else j(e),46!==e.operator&&47!==e.operator||ge(e.operand)}(e);break;case 225:!function(e){j(e),(46===e.operator||47===e.operator)&&ge(e.operand)}(e);break;case 226:if(vE(e))return I=n,void function(e){I?(I=!1,We(e.operatorToken),We(e.right),I=!0,We(e.left)):(I=!0,We(e.left),I=!1,We(e.operatorToken),We(e.right));ge(e.left)}(e);N(e);break;case 220:!function(e){j(e),211===e.expression.kind&&ge(e.expression)}(e);break;case 227:!function(e){const t=X(),n=X(),r=X();ue(e.condition,t,n),d=oe(t),We(e.questionToken),We(e.whenTrue),Z(r,d),d=oe(n),We(e.colonToken),We(e.whenFalse),Z(r,d),d=oe(r)}(e);break;case 260:!function(e){j(e),(e.initializer||vu(e.parent.parent))&&ve(e)}(e);break;case 211:case 212:!function(e){wc(e)?xe(e):j(e)}(e);break;case 213:!function(e){if(wc(e))xe(e);else{const t=Ty(e.expression);218===t.kind||219===t.kind?(G(e.typeArguments),G(e.arguments),We(e.expression)):(j(e),108===e.expression.kind&&(d=re(d,e)))}if(211===e.expression.kind){const t=e.expression;nC(t.name)&&J(t.expression)&&yv(t.name)&&(d=ne(256,d,e))}}(e);break;case 235:!function(e){wc(e)?xe(e):j(e)}(e);break;case 353:case 345:case 347:!function(e){We(e.tagName),347!==e.kind&&e.fullName&&(Vx(e.fullName,e),Hx(e.fullName,!1));"string"!==typeof e.comment&&G(e.comment)}(e);break;case 312:B(e.statements),We(e.endOfFileToken);break;case 241:case 268:B(e.statements);break;case 208:!function(e){We(e.dotDotDotToken),We(e.propertyName),be(e.initializer),We(e.name)}(e);break;case 169:!function(e){G(e.modifiers),We(e.dotDotDotToken),We(e.questionToken),We(e.type),be(e.initializer),We(e.name)}(e);break;case 210:case 209:case 303:case 230:I=n;default:j(e)}ze(e),I=n}function U(e){switch(e.kind){case 80:case 81:case 110:case 211:case 212:return K(e);case 213:return function(e){if(e.arguments)for(const t of e.arguments)if(K(t))return!0;if(211===e.expression.kind&&K(e.expression.expression))return!0;return!1}(e);case 217:if(yL(e))return!1;case 235:return U(e.expression);case 226:return function(e){switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return K(e.left);case 35:case 36:case 37:case 38:return J(e.left)||J(e.right)||q(e.right,e.left)||q(e.left,e.right)||Id(e.right)&&U(e.left)||Id(e.left)&&U(e.right);case 104:return J(e.left);case 103:case 28:return U(e.right)}return!1}(e);case 224:return 54===e.operator&&U(e.operand);case 221:return U(e.expression)}return!1}function H(e){return TE(e)||(lD(e)||kD(e)||mD(e))&&H(e.expression)||TD(e)&&28===e.operatorToken.kind&&H(e.right)||cD(e)&&(tv(e.argumentExpression)||EE(e.argumentExpression))&&H(e.expression)||gE(e)&&H(e.left)}function K(e){return H(e)||wc(e)&&K(e.expression)}function q(e,t){return yD(e)&&J(e.expression)&&np(t)}function J(e){switch(e.kind){case 217:return J(e.expression);case 226:switch(e.operatorToken.kind){case 64:return J(e.left);case 28:return J(e.right)}}return K(e)}function X(){return jW({flags:4,antecedents:void 0})}function $(){return jW({flags:8,antecedents:void 0})}function Y(e,t,n){return jW({flags:1024,target:e,antecedents:t,antecedent:n})}function Q(e){e.flags|=2048&e.flags?4096:2048}function Z(e,t){1&t.flags||F(e.antecedents,t)||((e.antecedents||(e.antecedents=[])).push(t),Q(t))}function ee(e,t,n){return 1&t.flags?t:n?!(112===n.kind&&64&e||97===n.kind&&32&e)||Fc(n)||zc(n.parent)?U(n)?(Q(t),jW({flags:e,antecedent:t,node:n})):t:C:32&e?t:C}function te(e,t,n,r){return Q(e),jW({flags:128,antecedent:e,switchStatement:t,clauseStart:n,clauseEnd:r})}function ne(e,t,n){Q(t);const r=jW({flags:e,antecedent:t,node:n});return h&&Z(h,r),r}function re(e,t){return Q(e),jW({flags:512,antecedent:e,node:t})}function oe(e){const t=e.antecedents;return t?1===t.length?t[0]:e:C}function ie(e){for(;;)if(217===e.kind)e=e.expression;else{if(224!==e.kind||54!==e.operator)return fE(e);e=e.operand}}function ae(e){for(;mD(e.parent)||ED(e.parent)&&54===e.parent.operator;)e=e.parent;return!function(e){const t=e.parent;switch(t.kind){case 245:case 247:case 246:return t.expression===e;case 248:case 227:return t.condition===e}return!1}(e)&&!ie(e.parent)&&!(wc(e.parent)&&e.parent.expression===e)}function de(e,t,n,r){const o=m,i=_;m=n,_=r,e(t),m=o,_=i}function ue(e,t,n){de(We,e,t,n),e&&(function(e){return uE(Ty(e))}(e)||ie(e)||wc(e)&&Wc(e))||(Z(t,ee(32,d,e)),Z(n,ee(64,d,e)))}function pe(e,t,n){const r=u,o=p;u=t,p=n,We(e),u=r,p=o}function fe(e,t){let n=y;for(;n&&256===e.parent.kind;)n.continueTarget=t,n=n.next,e=e.parent;return t}function me(e,t,n){const r=252===e.kind?t:n;r&&(Z(r,d),d=C)}function _e(e){if(213===e.kind){const t=e;108!==t.expression.kind&&TE(t.expression)&&(d=re(d,t))}}function he(e){226===e.kind&&64===e.operatorToken.kind?ge(e.left):ge(e)}function ge(e){if(H(e))d=ne(16,d,e);else if(209===e.kind)for(const t of e.elements)230===t.kind?ge(t.expression):he(t);else if(210===e.kind)for(const t of e.properties)303===t.kind?he(t.initializer):304===t.kind?ge(t.name):305===t.kind&&ge(t.expression)}function ye(e,t,n){const r=X();56===e.operatorToken.kind||77===e.operatorToken.kind?ue(e.left,r,n):ue(e.left,t,r),d=oe(r),We(e.operatorToken),dE(e.operatorToken.kind)?(de(We,e.right,t,n),ge(e.left),Z(t,ee(32,d,e)),Z(n,ee(64,d,e))):ue(e.right,t,n)}function ve(e){const t=DD(e)?void 0:e.name;if(Vd(t))for(const n of t.elements)ve(n);else d=ne(16,d,e)}function be(e){if(!e)return;const t=d;if(We(e),t===C||t===d)return;const n=X();Z(n,t),Z(n,d),d=oe(n)}function Se(e){switch(e.kind){case 211:We(e.questionDotToken),We(e.name);break;case 212:We(e.questionDotToken),We(e.argumentExpression);break;case 213:We(e.questionDotToken),G(e.typeArguments),G(e.arguments)}}function Te(e,t,n){const r=Oc(e)?X():void 0;!function(e,t,n){de(We,e,t,n),wc(e)&&!Wc(e)||(Z(t,ee(32,d,e)),Z(n,ee(64,d,e)))}(e.expression,r||t,n),r&&(d=oe(r)),de(Se,e,t,n),Wc(e)&&(Z(t,ee(32,d,e)),Z(n,ee(64,d,e)))}function xe(e){if(ae(e)){const t=X();Te(e,t,t),d=oe(t)}else Te(e,m,_)}function Ae(e){s&&(s.nextContainer=e),s=e}function Re(t,n,r){switch(o.kind){case 267:return z(t,n,r);case 312:return function(t,n,r){return uP(e)?z(t,n,r):W(e.locals,void 0,t,n,r)}(t,n,r);case 231:case 263:return function(e,t,n){return jb(e)?W(o.symbol.exports,o.symbol,e,t,n):W(o.symbol.members,o.symbol,e,t,n)}(t,n,r);case 266:return W(o.symbol.exports,o.symbol,t,n,r);case 187:case 329:case 210:case 264:case 292:return W(o.symbol.members,o.symbol,t,n,r);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return o.locals&&In.assertNode(o,Du),W(o.locals,void 0,t,n,r)}}function Ce(e){33554432&e.flags&&!function(e){const t=rM(e)?e:yt(e.body,fN);return!!t&&t.statements.some((e=>DN(e)||CN(e)))}(e)?e.flags|=128:e.flags&=-129}function De(e){const t=zW(e),n=0!==t;return Re(e,n?512:1024,n?110735:0),t}function Ne(e,t,n){const r=k(t,n);return 106508&t&&(r.parent=o.symbol),P(r,e,t),r}function Me(e,t,n){switch(a.kind){case 267:z(e,t,n);break;case 312:if(T_(o)){z(e,t,n);break}default:In.assertNode(a,Du),a.locals||(a.locals=Mf(),Ae(a)),W(a.locals,void 0,e,t,n)}}function Le(t){if(!e.parseDiagnostics.length&&!(33554432&t.flags)&&!(16777216&t.flags)&&!Dy(t)){const n=Pl(t);if(void 0===n)return;E&&n>=119&&n<=127?e.bindDiagnostics.push(L(t,function(t){if(_h(t))return Oa.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(e.externalModuleIndicator)return Oa.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return Oa.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),o_(t))):135===n?uP(e)&&Eh(t)?e.bindDiagnostics.push(L(t,Oa.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,o_(t))):65536&t.flags&&e.bindDiagnostics.push(L(t,Oa.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,o_(t))):127===n&&16384&t.flags&&e.bindDiagnostics.push(L(t,Oa.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,o_(t)))}}function ke(t,n){if(n&&80===n.kind){const o=n;if(nC(r=o)&&("eval"===r.escapedText||"arguments"===r.escapedText)){const r=S_(e,n);e.bindDiagnostics.push(iT(e,r.start,r.length,function(t){if(_h(t))return Oa.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode;if(e.externalModuleIndicator)return Oa.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return Oa.Invalid_use_of_0_in_strict_mode}(t),kl(o)))}}var r}function Pe(e){E&&ke(e,e.name)}function we(t){if(n<2&&312!==a.kind&&267!==a.kind&&!xd(a)){const n=S_(e,t);e.bindDiagnostics.push(iT(e,n.start,n.length,function(t){return _h(t)?Oa.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?Oa.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:Oa.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(t)))}}function Oe(t,n,...r){const o=b_(e,t.pos);e.bindDiagnostics.push(iT(e,o.start,o.length,n,...r))}function Fe(t,n,r,o){!function(t,n,r){const o=iT(e,n.pos,n.end-n.pos,r);t?e.bindDiagnostics.push(o):e.bindSuggestionDiagnostics=Ee(e.bindSuggestionDiagnostics,{...o,category:2})}(t,{pos:vm(n,e),end:r.end},o)}function We(t){if(!t)return;Vx(t,r),kr&&(t.tracingPath=e.path);const n=E;if(je(t),t.kind>165){const e=r;r=t;const n=qW(t);0===n?V(t):function(e,t){const n=o,r=i,s=a;if(1&t?(219!==e.kind&&(i=o),o=a=e,32&t&&(o.locals=Mf(),Ae(o))):2&t&&(a=e,32&t&&(a.locals=void 0)),4&t){const n=d,r=u,o=p,i=f,a=h,s=y,l=v,c=16&t&&!Gb(e,1024)&&!e.asteriskToken&&!!xh(e)||175===e.kind;c||(d=jW({flags:2}),144&t&&(d.node=e)),f=c||176===e.kind||$h(e)&&(262===e.kind||218===e.kind)?X():void 0,h=void 0,u=void 0,p=void 0,y=void 0,v=!1,V(e),e.flags&=-5633,!(1&d.flags)&&8&t&&am(e.body)&&(e.flags|=512,v&&(e.flags|=1024),e.endFlowNode=d),312===e.kind&&(e.flags|=b,e.endFlowNode=d),f&&(Z(f,d),d=oe(f),(176===e.kind||175===e.kind||$h(e)&&(262===e.kind||218===e.kind))&&(e.returnFlowNode=d)),c||(d=n),u=r,p=o,f=i,h=a,y=s,v=l}else 64&t?(c=!1,V(e),In.assertNotNode(e,nC),e.flags=c?256|e.flags:-257&e.flags):V(e);o=n,i=r,a=s}(t,n),r=e}else{const e=r;1===t.kind&&(r=t),ze(t),r=e}E=n}function ze(e){if(Xu(e))if($h(e))for(const t of e.jsDoc)We(t);else for(const t of e.jsDoc)Vx(t,e),Hx(t,!1)}function Be(e){if(!E)for(const t of e){if(!w_(t))return;if(Ge(t))return void(E=!0)}}function Ge(t){const n=Em(e,t.expression);return'"use strict"'===n||"'use strict'"===n}function je(n){switch(n.kind){case 80:if(4096&n.flags){let e=n.parent;for(;e&&!Kg(e);)e=e.parent;Me(e,524288,788968);break}case 110:return d&&(uu(n)||304===r.kind)&&(n.flowNode=d),Le(n);case 166:d&&jh(n)&&(n.flowNode=d);break;case 236:case 108:n.flowNode=d;break;case 81:return function(t){"#constructor"===t.escapedText&&(e.parseDiagnostics.length||e.bindDiagnostics.push(L(t,Oa.constructor_is_a_reserved_word,o_(t))))}(n);case 211:case 212:const i=n;d&&H(i)&&(i.flowNode=d),Pg(i)&&function(e){110===e.expression.kind?qe(e):Ag(e)&&312===e.parent.parent.kind&&(IE(e.expression)?$e(e,e.parent):Ye(e))}(i),$h(i)&&e.commonJsModuleIndicator&&bg(i)&&!JW(a,"module")&&W(e.locals,void 0,i.expression,134217729,111550);break;case 226:switch(Eg(n)){case 1:He(n);break;case 2:!function(t){if(!Ue(t))return;const n=gg(t.right);if(LE(n)||o===e&&KW(e,n))return;if(sD(n)&&M(n.properties,ZN))return void x(n.properties,Ke);const r=ky(t)?2097152:1049092,i=W(e.symbol.exports,e.symbol,t,67108864|r,0);wg(i,t)}(n);break;case 3:$e(n.left,n);break;case 6:!function(e){Vx(e.left,e),Vx(e.right,e),tt(e.left.expression,e.left,!1,!0)}(n);break;case 4:qe(n);break;case 5:const t=n.left.expression;if($h(n)&&nC(t)){const e=JW(a,t.escapedText);if(Ch(null==e?void 0:e.valueDeclaration)){qe(n);break}}!function(t){var n;const r=nt(t.left.expression,a)||nt(t.left.expression,o);if(!$h(t)&&!Og(r))return;const i=zS(t.left);if(nC(i)&&2097152&(null==(n=JW(o,i.escapedText))?void 0:n.flags))return;if(Vx(t.left,t),Vx(t.right,t),nC(t.left.expression)&&o===e&&KW(e,t.left.expression))He(t);else if(rv(t)){Ne(t,67108868,"__computed");Xe(t,Qe(r,t.left.expression,et(t.left),!1,!1))}else Ye(vt(t.left,Rg))}(n);break;case 0:break;default:In.fail("Unknown binary expression special property assignment kind")}return function(e){E&&iu(e.left)&&mE(e.operatorToken.kind)&&ke(e,e.left)}(n);case 299:return function(e){E&&e.variableDeclaration&&ke(e,e.variableDeclaration.name)}(n);case 220:return function(t){if(E&&80===t.expression.kind){const n=S_(e,t.expression);e.bindDiagnostics.push(iT(e,n.start,n.length,Oa.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(n);case 225:return function(e){E&&ke(e,e.operand)}(n);case 224:return function(e){E&&(46!==e.operator&&47!==e.operator||ke(e,e.operand))}(n);case 254:return function(e){E&&Oe(e,Oa.with_statements_are_not_allowed_in_strict_mode)}(n);case 256:return function(e){E&&jp(t)>=2&&(ku(e.statement)||GD(e.statement))&&Oe(e.label,Oa.A_label_is_not_allowed_here)}(n);case 197:return void(c=!0);case 182:break;case 168:return function(e){if(BM(e.parent)){const t=oy(e.parent);t?(In.assertNode(t,Du),t.locals??(t.locals=Mf()),W(t.locals,void 0,e,262144,526824)):Re(e,262144,526824)}else if(195===e.parent.kind){const t=function(e){const t=Cl(e,(e=>e.parent&&KC(e.parent)&&e.parent.extendsType===e));return t&&t.parent}(e.parent);t?(In.assertNode(t,Du),t.locals??(t.locals=Mf()),W(t.locals,void 0,e,262144,526824)):Ne(e,262144,w(e))}else Re(e,262144,526824)}(n);case 169:return it(n);case 260:return ot(n);case 208:return n.flowNode=d,ot(n);case 172:case 171:return function(e){const t=kd(e),n=t?13247:0;return at(e,(t?98304:4)|(e.questionToken?16777216:0),n)}(n);case 303:case 304:return at(n,4,0);case 306:return at(n,8,900095);case 179:case 180:case 181:return Re(n,131072,0);case 174:case 173:return at(n,8192|(n.questionToken?16777216:0),oh(n)?0:103359);case 262:return function(t){e.isDeclarationFile||33554432&t.flags||ev(t)&&(b|=4096);Pe(t),E?(we(t),Me(t,16,110991)):Re(t,16,110991)}(n);case 176:return Re(n,16384,0);case 177:return at(n,32768,46015);case 178:return at(n,65536,78783);case 184:case 324:case 330:case 185:return function(e){const t=k(131072,w(e));P(t,e,131072);const n=k(2048,"__type");P(n,e,2048),n.members=Mf(),n.members.set(t.escapedName,t)}(n);case 187:case 329:case 200:return function(e){return Ne(e,2048,"__type")}(n);case 339:return function(e){j(e);const t=ay(e);t&&174!==t.kind&&P(t.symbol,t,32)}(n);case 210:return function(e){return Ne(e,4096,"__object")}(n);case 218:case 219:return function(t){e.isDeclarationFile||33554432&t.flags||ev(t)&&(b|=4096);d&&(t.flowNode=d);Pe(t);const n=t.name?t.name.escapedText:"__function";return Ne(t,16,n)}(n);case 213:switch(Eg(n)){case 7:return function(e){let t=nt(e.arguments[0]);const n=312===e.parent.parent.kind;t=Qe(t,e.arguments[0],n,!1,!1),Ze(e,t,!1)}(n);case 8:return function(e){if(!Ue(e))return;const t=rt(e.arguments[0],void 0,((e,t)=>(t&&P(t,e,67110400),t)));if(t){const n=1048580;W(t.exports,t,e,n,0)}}(n);case 9:return function(e){const t=nt(e.arguments[0].expression);t&&t.valueDeclaration&&P(t,t.valueDeclaration,32);Ze(e,t,!0)}(n);case 0:break;default:return In.fail("Unknown call expression assignment declaration kind")}$h(n)&&function(t){!e.commonJsModuleIndicator&&tg(t,!1)&&Ue(t)}(n);break;case 231:case 263:return E=!0,function(t){if(263===t.kind)Me(t,32,899503);else{Ne(t,32,t.name?t.name.escapedText:"__class"),t.name&&A.add(t.name.escapedText)}const{symbol:n}=t,r=k(4194308,"prototype"),o=n.exports.get(r.escapedName);o&&(t.name&&Vx(t.name,t),e.bindDiagnostics.push(L(o.declarations[0],Oa.Duplicate_identifier_0,wl(r))));n.exports.set(r.escapedName,r),r.parent=n}(n);case 264:return Me(n,64,788872);case 265:return Me(n,524288,788968);case 266:return function(e){return A_(e)?Me(e,128,899967):Me(e,256,899327)}(n);case 267:return function(t){if(Ce(t),Pm(t))if(Gb(t,32)&&Oe(t,Oa.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),jm(t))De(t);else{let n;if(11===t.name.kind){const{text:e}=t.name;n=fx(e),void 0===n&&Oe(t.name,Oa.Pattern_0_can_have_at_most_one_Asterisk_character,e)}const r=Re(t,512,110735);e.patternAmbientModules=Ee(e.patternAmbientModules,n&&!ht(n)?{pattern:n,symbol:r}:void 0)}else{const e=De(t);if(0!==e){const{symbol:n}=t;n.constEnumOnlyModule=!(304&n.flags)&&2===e&&!1!==n.constEnumOnlyModule}}}(n);case 292:return function(e){return Ne(e,4096,"__jsxAttributes")}(n);case 291:return function(e,t,n){return Re(e,t,n)}(n,4,0);case 271:case 274:case 276:case 281:return Re(n,2097152,2097152);case 270:return function(t){se(t.modifiers)&&e.bindDiagnostics.push(L(t,Oa.Modifiers_cannot_appear_here));const n=rM(t.parent)?uP(t.parent)?t.parent.isDeclarationFile?void 0:Oa.Global_module_exports_may_only_appear_in_declaration_files:Oa.Global_module_exports_may_only_appear_in_module_files:Oa.Global_module_exports_may_only_appear_at_top_level;n?e.bindDiagnostics.push(L(t,n)):(e.symbol.globalExports=e.symbol.globalExports||Mf(),W(e.symbol.globalExports,e.symbol,t,2097152,2097152))}(n);case 273:return function(e){e.name&&Re(e,2097152,2097152)}(n);case 278:return function(e){o.symbol&&o.symbol.exports?e.exportClause?AN(e.exportClause)&&(Vx(e.exportClause,e),W(o.symbol.exports,o.symbol,e.exportClause,2097152,2097152)):W(o.symbol.exports,o.symbol,e,8388608,0):Ne(e,8388608,w(e))}(n);case 277:return function(e){if(o.symbol&&o.symbol.exports){const t=ky(e)?2097152:4,n=W(o.symbol.exports,o.symbol,e,t,-1);e.isExportEquals&&wg(n,e)}else Ne(e,111551,w(e))}(n);case 312:return Be(n.statements),function(){if(Ce(e),uP(e))Ve();else if(x_(e)){Ve();const t=e.symbol;W(e.symbol.exports,e.symbol,e,4,-1),e.symbol=t}}();case 241:if(!xd(n.parent))return;case 268:return Be(n.statements);case 348:if(330===n.parent.kind)return it(n);if(329!==n.parent.kind)break;case 355:const s=n;return Re(s,s.isBracketed||s.typeExpression&&323===s.typeExpression.type.kind?16777220:4,0);case 353:case 345:case 347:return(l||(l=[])).push(n);case 346:return We(n.typeExpression)}}function Ve(){Ne(e,512,`"${cx(e.fileName)}"`)}function Ue(t){return(!e.externalModuleIndicator||!0===e.externalModuleIndicator)&&(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=t,e.externalModuleIndicator||Ve()),!0)}function He(e){if(!Ue(e))return;const t=rt(e.left.expression,void 0,((e,t)=>(t&&P(t,e,67110400),t)));if(t){const n=Ly(e.right)&&(yg(e.left.expression)||bg(e.left.expression))?2097152:1048580;Vx(e.left,e),W(t.exports,t,e.left,n,0)}}function Ke(t){W(e.symbol.exports,e.symbol,t,69206016,0)}function qe(e){In.assert($h(e));if(TD(e)&&lD(e.left)&&rC(e.left.name)||lD(e)&&rC(e.name))return;const t=vh(e,!1,!1);switch(t.kind){case 262:case 218:let n=t.symbol;if(TD(t.parent)&&64===t.parent.operatorToken.kind){const e=t.parent.left;Ag(e)&&IE(e.expression)&&(n=nt(e.expression.expression,i))}n&&n.valueDeclaration&&(n.members=n.members||Mf(),rv(e)?Je(e,n,n.members):W(n.members,n,e,67108868,0),P(n,n.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const r=t.parent,o=jb(t)?r.symbol.exports:r.symbol.members;rv(e)?Je(e,r.symbol,o):W(o,r.symbol,e,67108868,0,!0);break;case 312:if(rv(e))break;t.commonJsModuleIndicator?W(t.symbol.exports,t.symbol,e,1048580,0):Re(e,1,111550);break;case 267:break;default:In.failBadSyntaxKind(t)}}function Je(e,t,n){W(n,t,e,4,0,!0,!0),Xe(e,t)}function Xe(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new Map)).set(Hz(e),e)}function $e(e,t){const n=e.expression,r=n.expression;Vx(r,n),Vx(n,e),Vx(e,t),tt(r,e,!0,!0)}function Ye(e){In.assert(!nC(e)),Vx(e.expression,e),tt(e.expression,e,!1,!1)}function Qe(t,n,r,o,i){if(2097152&(null==t?void 0:t.flags))return t;if(r&&!o){const r=67110400,o=110735;t=rt(n,t,((t,n,i)=>{if(n)return P(n,t,r),n;return W(i?i.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Mf()),i,t,r,o)}))}return i&&t&&t.valueDeclaration&&P(t,t.valueDeclaration,32),t}function Ze(e,t,n){if(!t||!function(e){if(1072&e.flags)return!0;const t=e.valueDeclaration;if(t&&dD(t))return!!pg(t);let n=t?iN(t)?t.initializer:TD(t)?t.right:lD(t)&&TD(t.parent)?t.parent.right:void 0:void 0;if(n=n&&gg(n),n){const e=IE(iN(t)?t.name:TD(t)?t.left:t);return!!fg(!TD(n)||57!==n.operatorToken.kind&&61!==n.operatorToken.kind?n:n.right,e)}return!1}(t))return;const r=n?t.members||(t.members=Mf()):t.exports||(t.exports=Mf());let o=0,i=0;Ad(pg(e))?(o=8192,i=103359):dD(e)&&Sg(e)&&(se(e.arguments[2].properties,(e=>{const t=jl(e);return!!t&&nC(t)&&"set"===kl(t)}))&&(o|=65540,i|=78783),se(e.arguments[2].properties,(e=>{const t=jl(e);return!!t&&nC(t)&&"get"===kl(t)}))&&(o|=32772,i|=46015)),0===o&&(o=4,i=0),W(r,t,e,67108864|o,-67108865&i)}function et(e){return TD(e.parent)?312===function(e){for(;TD(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:312===e.parent.parent.kind}function tt(e,t,n,r){let i=nt(e,a)||nt(e,o);const s=et(t);i=Qe(i,t.expression,s,n,r),Ze(t,i,n)}function nt(e,t=o){if(nC(e))return JW(t,e.escapedText);{const t=nt(e.expression);return t&&t.exports&&t.exports.get(Ng(e))}}function rt(t,n,r){if(KW(e,t))return e.symbol;if(nC(t))return r(t,nt(t),n);{const e=rt(t.expression,n,r),o=Cg(t);return rC(o)&&In.fail("unexpected PrivateIdentifier"),r(o,e&&e.exports&&e.exports.get(Ng(t)),e)}}function ot(e){if(E&&ke(e,e.name),!Vd(e.name)){const t=260===e.kind?e:e.parent.parent;!$h(e)||!rg(t)||yc(e)||32&Sl(e)?Lm(e)?Me(e,2,111551):vv(e)?Re(e,1,111551):Re(e,1,111550):Re(e,2097152,2097152)}}function it(e){if((348!==e.kind||330===o.kind)&&(!E||33554432&e.flags||ke(e,e.name),Vd(e.name)?Ne(e,1,"__"+e.parent.parameters.indexOf(e)):Re(e,1,111551),gl(e,e.parent))){const t=e.parent.parent;W(t.symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0)}}function at(t,n,r){return e.isDeclarationFile||33554432&t.flags||!ev(t)||(b|=4096),d&&ih(t)&&(t.flowNode=d),rv(t)?Ne(t,n,"__computed"):Re(t,n,r)}}function HW(e){return!sN(e)&&!function(e){switch(e.kind){case 264:case 265:return!0;case 267:return 1!==zW(e);case 266:return Gb(e,4096);default:return!1}}(e)&&!uN(e)&&!(GD(e)&&!(7&xl(e))&&e.declarationList.declarations.some((e=>!e.initializer)))}function KW(e,t){let n=0;const r=pt();for(r.enqueue(t);!r.isEmpty()&&n<100;){if(n++,yg(t=r.dequeue())||bg(t))return!0;if(nC(t)){const n=JW(e,t.escapedText);if(n&&n.valueDeclaration&&iN(n.valueDeclaration)&&n.valueDeclaration.initializer){const e=n.valueDeclaration.initializer;r.enqueue(e),gE(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function qW(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(ih(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Td(e.parent)||IC(e.parent)?0:34}return 0}function JW(e,t){var n,r,o,i;const a=null==(r=null==(n=yt(e,Du))?void 0:n.locals)?void 0:r.get(t);return a?a.exportSymbol??a:rM(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):Cu(e)?null==(i=null==(o=e.symbol)?void 0:o.exports)?void 0:i.get(t):void 0}var XW=b({"src/compiler/binder.ts"(){JJ(),oi(),wW=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(wW||{}),OW=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(OW||{}),FW=UW()}});function $W(e,t,n,r,o,i,a,s,l,c){return function(d=()=>!0){const u=[],p=[];return{walkType:e=>{try{return f(e),{visitedTypes:Xe(u),visitedSymbols:Xe(p)}}finally{V(u),V(p)}},walkSymbol:e=>{try{return h(e),{visitedTypes:Xe(u),visitedSymbols:Xe(p)}}finally{V(u),V(p)}}};function f(e){if(!e)return;if(u[e.id])return;u[e.id]=e;if(!h(e.symbol)){if(524288&e.flags){const n=e,o=n.objectFlags;4&o&&function(e){f(e.target),x(c(e),f)}(e),32&o&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(e),3&o&&(_(t=e),x(t.typeParameters,f),x(r(t),f),f(t.thisType)),24&o&&_(n)}var t;262144&e.flags&&function(e){f(s(e))}(e),3145728&e.flags&&function(e){x(e.types,f)}(e),4194304&e.flags&&function(e){f(e.type)}(e),8388608&e.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(e)}}function m(r){const o=t(r);o&&f(o.type),x(r.typeParameters,f);for(const e of r.parameters)h(e);f(e(r)),f(n(r))}function _(e){const t=o(e);for(const n of t.indexInfos)f(n.keyType),f(n.type);for(const n of t.callSignatures)m(n);for(const n of t.constructSignatures)m(n);for(const n of t.properties)h(n)}function h(e){if(!e)return!1;const t=Kz(e);if(p[t])return!1;if(p[t]=e,!d(e))return!0;return f(i(e)),e.exports&&e.exports.forEach(h),x(e.declarations,(e=>{if(e.type&&186===e.type.kind){const t=e.type;h(a(l(t.exprName)))}})),!1}}}var YW,QW=b({"src/compiler/symbolWalker.ts"(){JJ()}});function ZW({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},n,r,o){const i=a();return{relativePreference:void 0!==o?Xs(o)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{const t=e!==r.impliedNodeFormat?a(e):i;if(99===(e??r.impliedNodeFormat))return NW(n,r.fileName)?[3,2]:[2];if(1===Up(n))return 2===t?[2,1]:[1,2];const o=NW(n,r.fileName);switch(t){case 2:return o?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return o?[1,0,3,2]:[1,0,2];case 0:return o?[0,1,3,2]:[0,1,2];default:In.assertNever(t)}}};function a(e){if(void 0!==o){if(nx(o))return 2;if(Yt(o,"/index"))return 1}return ix(t,e??r.impliedNodeFormat,n,r)}}function ez(e,t,n,r,o,i,a={}){const s=rz(e,t,n,r,o,ZW({},e,t,i),{},a);if(s!==i)return s}function tz(e,t,n,r,o,i={}){return rz(e,t,n,r,o,ZW({},e,t),{},i)}function nz(e,t,n,r,o,i={}){const a=lz(t.fileName,r);return I(mz(a,n,r,o,i),(n=>yz(n,a,t,r,e,o,!0,i.overrideImportMode)))}function rz(e,t,n,r,o,i,a,s={}){const l=lz(n,o);return I(mz(l,r,o,a,s),(n=>yz(n,l,t,o,e,a,void 0,s.overrideImportMode)))||cz(r,l,e,o,s.overrideImportMode||t.impliedNodeFormat,i)}function oz(e,t,n,r,o={}){return iz(e,t,n,r,o)[0]}function iz(e,t,n,r,i={}){var a;const s=Qf(e);if(!s)return o;const l=null==(a=n.getModuleSpecifierCache)?void 0:a.call(n),c=null==l?void 0:l.get(t.path,s.path,r,i);return[null==c?void 0:c.moduleSpecifiers,s,null==c?void 0:c.modulePaths,l]}function az(e,t,n,r,o,i,a={}){return sz(e,t,n,r,o,i,a,!1).moduleSpecifiers}function sz(e,t,n,r,i,a,s={},l){let c=!1;const d=function(e,t){var n;const r=null==(n=e.declarations)?void 0:n.find((e=>Om(e)&&(!Gm(e)||!Xs(sv(e.name)))));if(r)return r.name.text;const o=Z(e.declarations,(e=>{var n,r,o,i;if(!pN(e))return;const a=c(e);if(!((null==(n=null==a?void 0:a.parent)?void 0:n.parent)&&fN(a.parent)&&Pm(a.parent.parent)&&rM(a.parent.parent.parent)))return;const s=null==(i=null==(o=null==(r=a.parent.parent.symbol.exports)?void 0:r.get("export="))?void 0:o.valueDeclaration)?void 0:i.expression;if(!s)return;const l=t.getSymbolAtLocation(s);if(!l)return;if((2097152&(null==l?void 0:l.flags)?t.getAliasedSymbol(l):l)===e.symbol)return a.parent.parent;function c(e){for(;8&e.flags;)e=e.parent;return e}})),i=o[0];if(i)return i.name.text}(e,t);if(d)return{moduleSpecifiers:[d],computedWithoutCache:c};let[u,p,f,m]=iz(e,r,i,a,s);if(u)return{moduleSpecifiers:u,computedWithoutCache:c};if(!p)return{moduleSpecifiers:o,computedWithoutCache:c};c=!0,f||(f=_z(lz(r.fileName,i),p.originalFileName,i));const _=function(e,t,n,r,o,i={},a){const s=lz(n.fileName,r),l=ZW(o,t,n),c=x(e,(e=>x(r.getFileIncludeReasons().get(ga(e.path,r.getCurrentDirectory(),s.getCanonicalFileName)),(e=>{if(3!==e.kind||e.file!==n.path)return;if(n.impliedNodeFormat&&n.impliedNodeFormat!==GU(n,e.index,t))return;const r=gH(n,e.index).text;return 1===l.relativePreference&&Ji(r)?void 0:r}))));if(c){return[c]}const d=se(e,(e=>e.isInNodeModules));let u,p,f,m;for(const _ of e){const e=_.isInNodeModules?yz(_,s,n,r,t,o,void 0,i.overrideImportMode):void 0;if(u=Ee(u,e),e&&_.isRedirect)return u;if(!e){const e=cz(_.path,s,t,r,i.overrideImportMode||n.impliedNodeFormat,l,_.isRedirect);if(!e)continue;_.isRedirect?f=Ee(f,e):Xi(e)?HF(e)?m=Ee(m,e):p=Ee(p,e):(a||!d||_.isInNodeModules)&&(m=Ee(m,e))}}return(null==p?void 0:p.length)?p:(null==f?void 0:f.length)?f:(null==u?void 0:u.length)?u:In.checkDefined(m)}(f,n,r,i,a,s,l);return null==m||m.set(r.path,p.path,a,s,f,_),{moduleSpecifiers:_,computedWithoutCache:c}}function lz(e,t){e=ma(e,t.getCurrentDirectory());const n=an(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),r=ra(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:r,canonicalSourceDirectory:n(r)}}function cz(e,t,n,r,o,{getAllowedEndingsInPreferredOrder:i,relativePreference:a},s){const{baseUrl:l,paths:c,rootDirs:d}=n;if(s&&!c)return;const{sourceDirectory:u,canonicalSourceDirectory:p,getCanonicalFileName:f}=t,m=i(o),_=d&&function(e,t,n,r,o,i){const a=vz(t,e,r);if(void 0===a)return;const s=vz(n,e,r),l=J(s,(e=>U(a,(t=>ba(Na(e,t,r)))))),c=zt(l,lx);if(!c)return;return bz(c,o,i)}(d,e,u,f,m,n)||bz(ba(Na(u,e,f)),m,n);if(!l&&!c&&!$p(n)||0===a)return s?void 0:_;const h=xz(e,ma(ib(n,r)||l,r.getCurrentDirectory()),f);if(!h)return s?void 0:_;const g=s?void 0:function(e,t,n,r,o){var i,a,s;if(!r.readFile||!$p(n))return;const l=pz(r,t);if(!l)return;const c=ua(l,"package.json"),d=null==(a=null==(i=r.getPackageJsonInfoCache)?void 0:i.call(r))?void 0:a.getPackageJsonInfo(c);if(vF(d)||!r.fileExists(c))return;const u=(null==d?void 0:d.contents.packageJsonContent)||GE(r.readFile(c)),p=null==u?void 0:u.imports;if(!p)return;const f=_F(n,o);return null==(s=x(qe(p),(t=>{if(!dn(t,"#")||"#"===t||dn(t,"#/"))return;const o=Yt(t,"/")?1:t.includes("*")?2:0;return gz(n,r,e,l,t,p[t],f,o,!0)})))?void 0:s.moduleFileToTry}(e,u,n,r,o),y=s||void 0===g?c&&hz(h,c,m,r,n):void 0;if(s)return y;const v=g??(void 0===y&&void 0!==l?bz(h,m,n):y);if(!v)return _;if(1===a&&!Ji(v))return v;if(3===a&&!Ji(v)){const o=n.configFilePath?ga(ra(n.configFilePath),r.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(r.getCurrentDirectory()),i=ga(e,o,f),a=dn(p,o),s=dn(i,o);if(a&&!s||!a&&s)return v;return function(e,t,n){return e===t||void 0!==e&&void 0!==t&&0===Ia(e,t,n)}(pz(r,ra(i)),pz(r,u),!qv(r))?_:v}return Az(v)||dz(_)<dz(v)?_:v}function dz(e){let t=0;for(let n=dn(e,"./")?2:0;n<e.length;n++)47===e.charCodeAt(n)&&t++;return t}function uz(e,t){return Jt(t.isRedirect,e.isRedirect)||lx(e.path,t.path)}function pz(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):Pa(t,(t=>e.fileExists(ua(t,"package.json"))?t:void 0))}function fz(e,t,n,r,i){var a;const s=Jv(n),l=n.getCurrentDirectory(),c=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,d=ga(t,l,s),u=n.redirectTargetsMap.get(d)||o,p=[...c?[c]:o,t,...u].map((e=>ma(e,l)));let f=!M(p,Xx);if(!r){const e=x(p,(e=>!(f&&Xx(e))&&i(e,c===e)));if(e)return e}const m=null==(a=n.getSymlinkCache)?void 0:a.call(n).getSymlinkedDirectoriesByRealpath(),_=ma(t,l);return m&&Pa(ra(_),(t=>{const n=m.get(va(ga(t,l,s)));if(n)return!Ca(e,t,s)&&x(p,(e=>{if(!Ca(e,t,s))return;const r=Na(t,e,s);for(const t of n){const n=pa(t,r),o=i(n,e===c);if(f=!0,o)return o}}))}))||(r?x(p,(e=>f&&Xx(e)?void 0:i(e,e===c))):void 0)}function mz(e,t,n,r,o={}){var i;const a=ga(e.importingSourceFileName,n.getCurrentDirectory(),Jv(n)),s=ga(t,n.getCurrentDirectory(),Jv(n)),l=null==(i=n.getModuleSpecifierCache)?void 0:i.call(n);if(l){const e=l.get(a,s,r,o);if(null==e?void 0:e.modulePaths)return e.modulePaths}const c=_z(e,t,n);return l&&l.setModulePaths(a,s,r,o,c),c}function _z(e,t,n){const r=new Map;let o=!1;fz(e.importingSourceFileName,t,n,!0,((t,n)=>{const i=HF(t);r.set(t,{path:e.getCanonicalFileName(t),isRedirect:n,isInNodeModules:i}),o=o||i}));const i=[];for(let a=e.canonicalSourceDirectory;0!==r.size;){const e=va(a);let t;r.forEach((({path:n,isRedirect:o,isInNodeModules:i},a)=>{dn(n,e)&&((t||(t=[])).push({path:a,isRedirect:o,isInNodeModules:i}),r.delete(a))})),t&&(t.length>1&&t.sort(uz),i.push(...t));const n=ra(a);if(n===a)break;a=n}if(r.size){const e=Ye(r.entries(),(([e,{isRedirect:t,isInNodeModules:n}])=>({path:e,isRedirect:t,isInNodeModules:n})));e.length>1&&e.sort(uz),i.push(...e)}return i}function hz(e,t,n,r,o){for(const a in t)for(const r of t[a]){const t=_a(r),s=t.indexOf("*"),l=n.map((t=>({ending:t,value:bz(e,[t],o)})));if(bx(t)&&l.push({ending:void 0,value:e}),-1!==s){const e=t.substring(0,s),n=t.substring(s+1);for(const{ending:t,value:r}of l)if(r.length>=e.length+n.length&&dn(r,e)&&Yt(r,n)&&i({ending:t,value:r})){const t=r.substring(e.length,r.length-n.length);if(!Ji(t))return CA(a,t)}}else if(se(l,(e=>0!==e.ending&&t===e.value))||se(l,(e=>0===e.ending&&t===e.value&&i(e))))return a}function i({ending:t,value:n}){return 0!==t||n===bz(e,[t],o,r)}}function gz(e,t,n,r,o,i,a,s,l){if("string"===typeof i){const a=!qv(t),c=()=>t.getCommonSourceDirectory(),d=l&&MV(n,e,a,c),u=l&&DV(n,e,a,c),p=ma(ua(r,i),void 0),f=rx(n)?cx(n)+Tz(n,e):void 0;switch(s){case 0:if(f&&0===Ia(f,p,a)||0===Ia(n,p,a)||d&&0===Ia(d,p,a)||u&&0===Ia(u,p,a))return{moduleFileToTry:o};break;case 1:if(f&&Ra(p,f,a)){const e=Na(p,f,!1);return{moduleFileToTry:ma(ua(ua(o,i),e),void 0)}}if(Ra(p,n,a)){const e=Na(p,n,!1);return{moduleFileToTry:ma(ua(ua(o,i),e),void 0)}}if(d&&Ra(p,d,a)){const e=Na(p,d,!1);return{moduleFileToTry:ua(o,e)}}if(u&&Ra(p,u,a)){const e=Na(p,u,!1);return{moduleFileToTry:ua(o,e)}}break;case 2:const e=p.indexOf("*"),t=p.slice(0,e),r=p.slice(e+1);if(f&&dn(f,t,a)&&Yt(f,r,a)){const e=f.slice(t.length,f.length-r.length);return{moduleFileToTry:CA(o,e)}}if(dn(n,t,a)&&Yt(n,r,a)){const e=n.slice(t.length,n.length-r.length);return{moduleFileToTry:CA(o,e)}}if(d&&dn(d,t,a)&&Yt(d,r,a)){const e=d.slice(t.length,d.length-r.length);return{moduleFileToTry:CA(o,e)}}if(u&&dn(u,t,a)&&Yt(u,r,a)){const e=u.slice(t.length,u.length-r.length);return{moduleFileToTry:CA(o,e)}}}}else{if(Array.isArray(i))return x(i,(i=>gz(e,t,n,r,o,i,a,s,l)));if("object"===typeof i&&null!==i)for(const c of qe(i))if("default"===c||a.indexOf(c)>=0||hW(a,c)){const d=i[c],u=gz(e,t,n,r,o,d,a,s,l);if(u)return u}}}function yz({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:r},o,i,a,s,l,c){if(!i.fileExists||!i.readFile)return;const d=iA(e);if(!d)return;const u=ZW(s,a,o).getAllowedEndingsInPreferredOrder();let p=e,f=!1;if(!l){let t,n=d.packageRootIndex;for(;;){const{moduleFileToTry:r,packageRootPath:o,blockedByExports:s,verbatimFromExports:l}=y(n);if(1!==Up(a)){if(s)return;if(l)return r}if(o){p=o,f=!0;break}if(t||(t=r),n=e.indexOf(Fi,n+1),-1===n){p=bz(t,u,a,i);break}}}if(t&&!f)return;const m=i.getGlobalTypingsCacheLocation&&i.getGlobalTypingsCacheLocation(),_=n(p.substring(0,d.topLevelNodeModulesIndex));if(!(dn(r,_)||m&&dn(n(m),_)))return;const h=p.substring(d.topLevelPackageNameIndex+1),g=AW(h);return 1===Up(a)&&g===h?void 0:g;function y(t){var r,s;const l=e.substring(0,t),p=ua(l,"package.json");let f=e,m=!1;const _=null==(s=null==(r=i.getPackageJsonInfoCache)?void 0:r.call(i))?void 0:s.getPackageJsonInfo(p);if(yF(_)||void 0===_&&i.fileExists(p)){const t=(null==_?void 0:_.contents.packageJsonContent)||GE(i.readFile(p)),r=c||o.impliedNodeFormat;if(Xp(a)){const n=AW(l.substring(d.topLevelPackageNameIndex+1)),o=_F(a,r),s=(null==t?void 0:t.exports)?function(e,t,n,r,o,i,a){return"object"===typeof i&&null!==i&&!Array.isArray(i)&&uW(i)?x(qe(i),(s=>{const l=ma(ua(o,s),void 0),c=Yt(s,"/")?1:s.includes("*")?2:0;return gz(e,t,n,r,l,i[s],a,c,!1)})):gz(e,t,n,r,o,i,a,0,!1)}(a,i,e,l,n,t.exports,o):void 0;if(s)return{...s,verbatimFromExports:!0};if(null==t?void 0:t.exports)return{moduleFileToTry:e,blockedByExports:!0}}const s=(null==t?void 0:t.typesVersions)?cF(t.typesVersions):void 0;if(s){const t=hz(e.slice(l.length+1),s.paths,u,i,a);void 0===t?m=!0:f=ua(l,t)}const h=(null==t?void 0:t.typings)||(null==t?void 0:t.types)||(null==t?void 0:t.main)||"index.js";if(ht(h)&&(!m||!Sx(mx(s.paths),h))){const e=ga(h,l,n),r=n(f);if(cx(e)===cx(r))return{packageRootPath:l,moduleFileToTry:f};if("module"!==(null==t?void 0:t.type)&&!Qi(r,Tf)&&dn(r,e)&&ra(r)===ya(e)&&"index"===cx(oa(r)))return{packageRootPath:l,moduleFileToTry:f}}}else{const e=n(f.substring(d.packageRootIndex+1));if("index.d.ts"===e||"index.js"===e||"index.ts"===e||"index.tsx"===e)return{moduleFileToTry:f,packageRootPath:l}}return{moduleFileToTry:f}}}function vz(e,t,n){return Z(t,(t=>{const r=xz(e,t,n);return void 0!==r&&Az(r)?void 0:r}))}function bz(e,t,n,r){if(Qi(e,[".json",".mjs",".cjs"]))return e;const o=cx(e);if(e===o)return e;const i=t.indexOf(2),a=t.indexOf(3);if(Qi(e,[".mts",".cts"])&&-1!==a&&a<i)return e;if(Qi(e,[".d.mts",".mts",".d.cts",".cts"]))return o+Sz(e,n);if(!Qi(e,[".d.ts"])&&Qi(e,[".ts"])&&e.includes(".d."))return Ez(e);switch(t[0]){case 0:const a=Qt(o,"/index");return r&&a!==o&&function(e,t){if(!e.fileExists)return;const n=q(ex({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const r of n){const n=t+r;if(e.fileExists(n))return n}}(r,a)?o:a;case 1:return o;case 2:return o+Sz(e,n);case 3:if(_P(e)){const r=t.findIndex((e=>0===e||1===e));return-1!==r&&r<i?o:o+Sz(e,n)}return e;default:return In.assertNever(t[0])}}function Ez(e){const t=oa(e);if(!Yt(e,".ts")||!t.includes(".d.")||Qi(t,[".d.ts"]))return;const n=ux(e,".ts"),r=n.substring(n.lastIndexOf("."));return n.substring(0,n.indexOf(".d."))+r}function Sz(e,t){return Tz(e,t)??In.fail(`Extension ${yx(e)} is unsupported:: FileName:: ${e}`)}function Tz(e,t){const n=bx(e);switch(n){case".ts":case".d.ts":return".js";case".tsx":return 1===t.jsx?".jsx":".js";case".js":case".jsx":case".json":return n;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function xz(e,t,n){const r=ka(t,e,t,n,!1);return Hi(r)?void 0:r}function Az(e){return dn(e,"..")}var Iz=b({"src/compiler/moduleSpecifiers.ts"(){JJ(),YW=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(YW||{})}}),Rz={};E(Rz,{RelativePreference:()=>YW,countPathComponents:()=>dz,forEachFileNameOfModule:()=>fz,getModuleSpecifier:()=>tz,getModuleSpecifierPreferences:()=>ZW,getModuleSpecifiers:()=>az,getModuleSpecifiersWithCacheInfo:()=>sz,getNodeModulesPackageName:()=>nz,tryGetJSExtensionForFile:()=>Tz,tryGetModuleSpecifiersFromCache:()=>oz,tryGetRealFileNameForNonJsDeclarationFileName:()=>Ez,updateModuleSpecifier:()=>ez});var Cz,Dz,Nz,Mz,Lz,kz,Pz,wz,Oz,Fz,Wz,zz,Bz,Gz,jz,Vz=b({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){Iz()}});function Uz(){this.flags=0}function Hz(e){return e.id||(e.id=Mz,Mz++),e.id}function Kz(e){return e.id||(e.id=Nz,Nz++),e.id}function qz(e,t){const n=zW(e);return 1===n||t&&2===n}function Jz(e){var t,n,r,i,a,s=[],l=e=>{s.push(e)},c=new Set,d=Wp.getSymbolConstructor(),u=Wp.getTypeConstructor(),p=Wp.getSignatureConstructor(),f=0,m=0,_=0,h=0,g=0,y=0,v=!1,b=Mf(),E=[1],S=e.getCompilerOptions(),A=jp(S),R=Vp(S),C=!!S.experimentalDecorators,D=rf(S),N=RT(S),O=Jp(S),z=IT(S,"strictNullChecks"),j=IT(S,"strictFunctionTypes"),H=IT(S,"strictBindCallApply"),X=IT(S,"strictPropertyInitialization"),$=IT(S,"noImplicitAny"),Y=IT(S,"noImplicitThis"),Q=IT(S,"useUnknownInCatchVariables"),ee=!!S.keyofStringsOnly,te=ee?1:0,oe=S.suppressExcessPropertyErrors?0:8192,ie=S.exactOptionalPropertyTypes,ae=function(){const e=tk((function(e,t,r){t?(t.stackIndex++,t.skip=!1,n(t,void 0),o(t,void 0)):t={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]};if($h(e)&&pg(e))return t.skip=!0,o(t,bO(e.right,r)),t;!function(e){const{left:t,operatorToken:n,right:r}=e;61===n.kind&&(!TD(t)||57!==t.operatorToken.kind&&56!==t.operatorToken.kind||SG(t,Oa._0_and_1_operations_cannot_be_mixed_without_parentheses,as(t.operatorToken.kind),as(n.kind)),!TD(r)||57!==r.operatorToken.kind&&56!==r.operatorToken.kind||SG(r,Oa._0_and_1_operations_cannot_be_mixed_without_parentheses,as(r.operatorToken.kind),as(n.kind)))}(e);if(64===e.operatorToken.kind&&(210===e.left.kind||209===e.left.kind))return t.skip=!0,o(t,qw(e.left,bO(e.right,r),r,110===e.right.kind)),t;return t}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t,i){if(!t.skip){const a=r(t);In.assertIsDefined(a),n(t,a),o(t,void 0);const s=e.kind;if(pE(s)){let e=i.parent;for(;217===e.kind||fE(e);)e=e.parent;(56===s||UD(e))&&HF(i.left,a,UD(e)?e.thenStatement:void 0),KF(a,i.left)}}}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t){let i;if(t.skip)i=r(t);else{const n=function(e){return e.typeStack[e.stackIndex]}(t);In.assertIsDefined(n);const o=r(t);In.assertIsDefined(o),i=$w(e.left,e.operatorToken,e.right,n,o,t.checkMode,e)}return t.skip=!1,n(t,void 0),o(t,void 0),t.stackIndex--,i}),(function(e,t,n){return o(e,t),e}));return(t,n)=>{const r=e(t,n);return In.assertIsDefined(r),r};function t(e,t){if(TD(t))return t;o(e,bO(t,e.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function r(e){return e.typeStack[e.stackIndex+1]}function o(e,t){e.typeStack[e.stackIndex+1]=t}}(),le=function(){const t=e.getResolvedTypeReferenceDirectives();let n;t&&(n=new Map,t.forEach((({resolvedTypeReferenceDirective:t},n,r)=>{if(!(null==t?void 0:t.resolvedFileName))return;const i=e.getSourceFile(t.resolvedFileName);i&&o(i,n,r)})));return{getReferencedExportContainer:pB,getReferencedImportDeclaration:mB,getReferencedDeclarationWithCollidingName:hB,isDeclarationWithCollidingName:gB,isValueAliasDeclaration:e=>{const t=Nl(e);return!t||!Re||yB(t)},hasGlobalName:FB,isReferencedAliasDeclaration:(e,t)=>{const n=Nl(e);return!n||!Re||SB(n,t)},getNodeCheckFlags:e=>{const t=Nl(e);return t?CB(t):0},isTopLevelValueImportEqualsWithEntityName:vB,isDeclarationVisible:yl,isImplementationOfOverload:TB,isRequiredInitializedParameter:xB,isOptionalUninitializedParameterProperty:AB,isExpandoFunctionDeclaration:IB,getPropertiesOfContainerFunction:RB,createTypeOfDeclaration:PB,createReturnTypeOfSignatureDeclaration:wB,createTypeOfExpression:OB,createLiteralConstValue:jB,isSymbolAccessible:Hs,isEntityNameVisible:nl,getConstantValue:e=>{const t=Nl(e,NB);return t?MB(t):void 0},collectLinkedAliases:vl,getReferencedValueDeclaration:zB,getReferencedValueDeclarations:BB,getTypeReferenceSerializationKind:kB,isOptionalParameter:lm,moduleExportsSomeValue:uB,isArgumentsLocalBinding:dB,getExternalModuleFileFromDeclaration:e=>{const t=Nl(e,Zm);return t&&HB(t)},getTypeReferenceDirectivesForEntityName:function(e){if(!n)return;let t;167===e.parent.kind?t=1160127:(t=790504,(80===e.kind&&Eb(e)||211===e.kind&&!function(e){return e.parent&&233===e.parent.kind&&e.parent.parent&&298===e.parent.parent.kind}(e))&&(t=1160127));const o=qa(e,t,!0);return o&&o!==_t?r(o,t):void 0},getTypeReferenceDirectivesForSymbol:r,isLiteralConstDeclaration:GB,isLateBound:e=>{const t=Nl(e,Lu),n=t&&ps(t);return!!(n&&4096&mS(n))},getJsxFactoryEntity:VB,getJsxFragmentFactoryEntity:UB,getAllAccessorDeclarations(e){const t=178===(e=Nl(e,Mc)).kind?177:178,n=Df(ps(e),t);return{firstAccessor:n&&n.pos<e.pos?n:e,secondAccessor:n&&n.pos<e.pos?e:n,setAccessor:178===e.kind?e:n,getAccessor:177===e.kind?e:n}},getSymbolOfExternalModuleSpecifier:e=>$a(e,e,void 0),isBindingCapturedByNode:(e,t)=>{const n=Nl(e),r=Nl(t);return!!n&&!!r&&(iN(r)||iD(r))&&function(e,t){const n=Hi(e);return!!n&&F(n.capturedBlockScopeBindings,ps(t))}(n,r)},getDeclarationStatementsForSourceFile:(e,t,n,r)=>{const o=Nl(e);In.assert(o&&312===o.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");const i=ps(e);return i?i.exports?de.symbolTableToDeclarationStatements(i.exports,e,t,n,r):[]:e.locals?de.symbolTableToDeclarationStatements(e.locals,e,t,n,r):[]},isImportRequiredByAugmentation:function(e){const t=Yf(e);if(!t.symbol)return!1;const n=HB(e);if(!n)return!1;if(n===t)return!1;const r=ls(t.symbol);for(const o of Ye(r.values()))if(o.mergeId){const e=us(o);if(e.declarations)for(const t of e.declarations){if(Yf(t)===n)return!0}}return!1},tryFindAmbientModule:e=>{const t=Nl(e),n=t&&np(t)?t.text:void 0;return void 0!==n?sm(n,!0):void 0}};function r(e,t){if(!n||!function(e){if(!e.declarations)return!1;let t=e;for(;;){const e=ms(t);if(!e)break;t=e}if(t.valueDeclaration&&312===t.valueDeclaration.kind&&512&t.flags)return!1;for(const r of e.declarations){const e=Yf(r);if(n.has(e.path))return!0}return!1}(e))return;let r;for(const o of e.declarations)if(o.symbol&&o.symbol.flags&t){const e=Yf(o),t=n.get(e.path);if(!t)return;(r||(r=[])).push(t)}return r}function o(t,r,i){if(!n.has(t.path)){n.set(t.path,[r,i]);for(const{fileName:n}of t.referencedFiles){const a=xU(n,t.fileName),s=e.getSourceFile(a);s&&o(s,r,i||t.impliedNodeFormat)}}}}(),de=function(){return{typeToTypeNode:(e,t,r,o)=>n(t,r,o,(t=>i(e,t))),indexInfoToIndexSignatureDeclaration:(e,t,r,o)=>n(t,r,o,(t=>u(e,t,void 0))),signatureToSignatureDeclaration:(e,t,r,o,i)=>n(r,o,i,(n=>p(e,t,n))),symbolToEntityName:(e,t,r,o,i)=>n(r,o,i,(n=>z(e,n,t,!1))),symbolToExpression:(e,t,r,o,i)=>n(r,o,i,(n=>j(e,n,t))),symbolToTypeParameterDeclarations:(e,t,r,o)=>n(t,r,o,(t=>E(e,t))),symbolToParameterDeclaration:(e,t,r,o)=>n(t,r,o,(t=>h(e,t))),typeParameterToDeclaration:(e,t,r,o)=>n(t,r,o,(t=>m(e,t))),symbolTableToDeclarationStatements:(e,t,r,a,s)=>n(t,r,a,(t=>function(e,t,n){var r;const a=Ee(UA.createPropertyDeclaration,174,!0),s=Ee(((e,t,n,r)=>UA.createPropertySignature(e,t,n,r)),173,!1),l=t.enclosingDeclaration;let c=[];const d=new Set,f=[],h=t;t={...h,usedSymbolNames:new Set(h.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map(null==(r=h.remappedSymbolReferences)?void 0:r.entries()),tracker:void 0};const y={...h.tracker.inner,trackSymbol:(e,n,r)=>{var o,i;if(null==(o=t.remappedSymbolNames)?void 0:o.has(Kz(e)))return!1;if(0===Hs(e,n,r,!1).accessibility){const n=b(e,t,r);if(!(4&e.flags)){const e=n[0],t=Yf(h.enclosingDeclaration);se(e.declarations,(e=>Yf(e)===t))&&K(e)}}else if(null==(i=h.tracker.inner)?void 0:i.trackSymbol)return h.tracker.inner.trackSymbol(e,n,r);return!1}};t.tracker=new jz(t,y,h.tracker.moduleResolverHost),Wf(e,((e,t)=>{Ne(e,Ll(t))}));let v=!n;const E=e.get("export=");E&&e.size>1&&2098688&E.flags&&(e=Mf()).set("export=",E);return B(e),w(c);function S(e){return!!e&&80===e.kind}function R(e){return GD(e)?G(U(e.declarationList.declarations,jl),S):G([jl(e)],S)}function C(e){const t=L(e,CN),n=P(e,pN);let r=-1!==n?e[n]:void 0;if(r&&t&&t.isExportEquals&&nC(t.expression)&&nC(r.name)&&kl(r.name)===kl(t.expression)&&r.body&&fN(r.body)){const o=G(e,(e=>!!(32&Zb(e)))),i=r.name;let a=r.body;if(T(o)&&(r=UA.updateModuleDeclaration(r,r.modifiers,r.name,a=UA.updateModuleBlock(a,UA.createNodeArray([...r.body.statements,UA.createExportDeclaration(void 0,!1,UA.createNamedExports(U(J(o,(e=>R(e))),(e=>UA.createExportSpecifier(!1,void 0,e)))),void 0)]))),e=[...e.slice(0,n),r,...e.slice(n+1)]),!L(e,(e=>e!==r&&Wl(e,i)))){c=[];const n=!se(a.statements,(e=>Gb(e,32)||CN(e)||DN(e)));x(a.statements,(e=>{Y(e,n?32:0)})),e=[...G(e,(e=>e!==r&&e!==t)),...c]}}return e}function N(e){const t=G(e,(e=>DN(e)&&!e.moduleSpecifier&&!!e.exportClause&&NN(e.exportClause)));if(T(t)>1){e=[...G(e,(e=>!DN(e)||!!e.moduleSpecifier||!e.exportClause)),UA.createExportDeclaration(void 0,!1,UA.createNamedExports(J(t,(e=>vt(e.exportClause,NN).elements))),void 0)]}const n=G(e,(e=>DN(e)&&!!e.moduleSpecifier&&!!e.exportClause&&NN(e.exportClause)));if(T(n)>1){const t=rt(n,(e=>zR(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">"));if(t.length!==n.length)for(const n of t)n.length>1&&(e=[...G(e,(e=>!n.includes(e))),UA.createExportDeclaration(void 0,!1,UA.createNamedExports(J(n,(e=>vt(e.exportClause,NN).elements))),n[0].moduleSpecifier)])}return e}function k(e){const t=P(e,(e=>DN(e)&&!e.moduleSpecifier&&!e.attributes&&!!e.exportClause&&NN(e.exportClause)));if(t>=0){const n=e[t],r=Z(n.exportClause.elements,(t=>{if(!t.propertyName){const n=G(ue(e),(n=>Wl(e[n],t.name)));if(T(n)&&M(n,(t=>lA(e[t])))){for(const t of n)e[t]=F(e[t]);return}}return t}));T(r)?e[t]=UA.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,UA.updateNamedExports(n.exportClause,r),n.moduleSpecifier,n.attributes):nn(e,t)}return e}function w(e){return e=k(e=N(e=C(e))),l&&(rM(l)&&T_(l)||pN(l))&&(!se(e,yu)||!hu(e)&&se(e,gu))&&e.push(YM(UA)),e}function F(e){const t=-129&Zb(e)|32;return UA.replaceModifiers(e,t)}function W(e){const t=-33&Zb(e);return UA.replaceModifiers(e,t)}function B(e,t,n){t||f.push(new Map),e.forEach((e=>{V(e,!1,!!n)})),t||(f[f.length-1].forEach((e=>{V(e,!0,!!n)})),f.pop())}function V(e,n,r){const o=us(e);if(d.has(Kz(o)))return;d.add(Kz(o));if(!n||T(e.declarations)&&se(e.declarations,(e=>!!Cl(e,(e=>e===l))))){const o=t;t=function(e){const t={...e};t.typeParameterNames&&(t.typeParameterNames=new Map(t.typeParameterNames));t.typeParameterNamesByText&&(t.typeParameterNamesByText=new Set(t.typeParameterNamesByText));t.typeParameterSymbolList&&(t.typeParameterSymbolList=new Set(t.typeParameterSymbolList));return t.tracker=new jz(t,t.tracker.inner,t.tracker.moduleResolverHost),t}(t),H(e,n,r),t.reportedDiagnostic&&(h.reportedDiagnostic=t.reportedDiagnostic),t.trackedSymbols&&(o.trackedSymbols?In.assert(t.trackedSymbols===o.trackedSymbols):o.trackedSymbols=t.trackedSymbols),t=o}}function H(e,r,o,i=e.escapedName){var a,s,c,d,u,p;const f=Ll(i),m="default"===i;if(r&&!(131072&t.flags)&&Xy(f)&&!m)return void(t.encounteredError=!0);let _=m&&!!(-113&e.flags||16&e.flags&&T(Hp(sd(e))))&&!(2097152&e.flags),h=!_&&!r&&Xy(f)&&!m;(_||h)&&(r=!0);const g=(r?0:32)|(m&&!_?2048:0),y=1536&e.flags&&7&e.flags&&"export="!==i,v=y&&be(sd(e),e);if((8208&e.flags||v)&&ce(sd(e),e,Ne(e,f),g),524288&e.flags&&ne(e,f,g),98311&e.flags&&"export="!==i&&!(4194304&e.flags)&&!(32&e.flags)&&!(8192&e.flags)&&!v)if(o){ve(e)&&(h=!1,_=!1)}else{const m=sd(e),y=Ne(e,f);if(m.symbol&&m.symbol!==e&&16&m.symbol.flags&&se(m.symbol.declarations,eA)&&((null==(a=m.symbol.members)?void 0:a.size)||(null==(s=m.symbol.exports)?void 0:s.size)))t.remappedSymbolReferences||(t.remappedSymbolReferences=new Map),t.remappedSymbolReferences.set(Kz(m.symbol),e),H(m.symbol,r,o,i),t.remappedSymbolReferences.delete(Kz(m.symbol));else if(16&e.flags||!be(m,e)){const o=2&e.flags?qC(e)?2:1:(null==(c=e.parent)?void 0:c.valueDeclaration)&&rM(null==(d=e.parent)?void 0:d.valueDeclaration)?2:void 0,i=!_&&4&e.flags?Ce(y,e):y;let a=e.declarations&&L(e.declarations,(e=>iN(e)));a&&aN(a.parent)&&1===a.parent.declarations.length&&(a=a.parent.parent);const s=null==(u=e.declarations)?void 0:u.find(lD);if(s&&TD(s.parent)&&nC(s.parent.right)&&(null==(p=m.symbol)?void 0:p.valueDeclaration)&&rM(m.symbol.valueDeclaration)){const e=y===s.parent.right.escapedText?void 0:s.parent.right;Y(UA.createExportDeclaration(void 0,!1,UA.createNamedExports([UA.createExportSpecifier(!1,e,y)])),0),t.tracker.trackSymbol(m.symbol,t.enclosingDeclaration,111551)}else{Y(yk(UA.createVariableStatement(void 0,UA.createVariableDeclarationList([UA.createVariableDeclaration(i,void 0,Q(t,m,e,l,K,n))],o)),a),i!==y?-33&g:g),i===y||r||(Y(UA.createExportDeclaration(void 0,!1,UA.createNamedExports([UA.createExportSpecifier(!1,i,y)])),0),h=!1,_=!1)}}else ce(m,e,y,g)}if(384&e.flags&&le(e,f,g),32&e.flags&&(4&e.flags&&e.valueDeclaration&&TD(e.valueDeclaration.parent)&&CD(e.valueDeclaration.parent.right)?ge(e,Ne(e,f),g):_e(e,Ne(e,f),g)),(1536&e.flags&&(!y||ie(e))||v)&&ae(e,f,g),64&e.flags&&!(32&e.flags)&&re(e,f,g),2097152&e.flags&&ge(e,Ne(e,f),g),4&e.flags&&"export="===e.escapedName&&ve(e),8388608&e.flags&&e.declarations)for(const n of e.declarations){const e=Xa(n,n.moduleSpecifier);e&&Y(UA.createExportDeclaration(void 0,n.isTypeOnly,void 0,UA.createStringLiteral(D(e,t))),0)}_?Y(UA.createExportAssignment(void 0,!1,UA.createIdentifier(Ne(e,f))),0):h&&Y(UA.createExportDeclaration(void 0,!1,UA.createNamedExports([UA.createExportSpecifier(!1,Ne(e,f),f)])),0)}function K(e){if(se(e.declarations,vv))return;In.assertIsDefined(f[f.length-1]),Ce(Ll(e.escapedName),e);const t=!!(2097152&e.flags)&&!se(e.declarations,(e=>!!Cl(e,DN)||AN(e)||hN(e)&&!wN(e.moduleReference)));f[t?0:f.length-1].set(Kz(e),e)}function $(e){return rM(e)&&(T_(e)||x_(e))||Pm(e)&&!Bm(e)}function Y(e,n){if(vk(e)){let r=0;const o=t.enclosingDeclaration&&(Kg(t.enclosingDeclaration)?Yf(t.enclosingDeclaration):t.enclosingDeclaration);32&n&&o&&($(o)||pN(o))&&lA(e)&&(r|=32),!v||32&r||o&&33554432&o.flags||!(uN(e)||GD(e)||sN(e)||lN(e)||pN(e))||(r|=128),2048&n&&(lN(e)||cN(e)||sN(e))&&(r|=2048),r&&(e=UA.replaceModifiers(e,r|Zb(e)))}c.push(e)}function ne(e,r,o){var a;const s=Jd(e),l=U(Ui(e).typeParameters,(e=>m(e,t))),c=null==(a=e.declarations)?void 0:a.find(Kg),d=Rc(c?c.comment||c.parent.comment:void 0),u=t.flags;t.flags|=8388608;const p=t.enclosingDeclaration;t.enclosingDeclaration=c;const f=c&&c.typeExpression&&aM(c.typeExpression)&&te(t,c.typeExpression.type,K,n)||i(s,t);Y(II(UA.createTypeAliasDeclaration(void 0,Ne(e,r),l,f),d?[{kind:3,text:"*\n * "+d.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),o),t.flags=u,t.enclosingDeclaration=p}function re(e,n,r){const o=qd(e),i=U(Sd(e),(e=>m(e,t))),a=jd(o),s=T(a)?Cv(a):void 0,l=J(Hp(o),(e=>Se(e,s))),c=Te(0,o,s,179),d=Te(1,o,s,180),u=xe(o,s),p=T(a)?[UA.createHeritageClause(96,Z(a,(e=>Ie(e,111551))))]:void 0;Y(UA.createInterfaceDeclaration(void 0,Ne(e,n),i,p,[...u,...d,...c,...l]),r)}function oe(e){let t=Ye(ss(e).values());const n=us(e);if(n!==e){const e=new Set(t);for(const t of ss(n).values())111551&za(Fa(t))||e.add(t);t=Ye(e)}return G(t,(e=>fe(e)&&zs(e.escapedName,99)))}function ie(e){return M(oe(e),(e=>!(111551&za(Fa(e)))))}function ae(e,n,r){const i=nt(oe(e),(t=>t.parent&&t.parent===e?"real":"merged")),a=i.get("real")||o,s=i.get("merged")||o;if(T(a)){pe(a,Ne(e,n),r,!!(67108880&e.flags))}if(T(s)){const r=Yf(t.enclosingDeclaration),o=Ne(e,n),i=UA.createModuleBlock([UA.createExportDeclaration(void 0,!1,UA.createNamedExports(Z(G(s,(e=>"export="!==e.escapedName)),(n=>{var o,i;const a=Ll(n.escapedName),s=Ne(n,a),l=n.declarations&&ha(n);if(r&&(l?r!==Yf(l):!se(n.declarations,(e=>Yf(e)===r))))return void(null==(i=null==(o=t.tracker)?void 0:o.reportNonlocalAugmentation)||i.call(o,r,e,n));const c=l&&Pa(l,!0);K(c||n);const d=c?Ne(c,Ll(c.escapedName)):s;return UA.createExportSpecifier(!1,a===d?void 0:d,a)}))))]);Y(UA.createModuleDeclaration(void 0,UA.createIdentifier(o),i,32),0)}}function le(e,t,n){Y(UA.createEnumDeclaration(UA.createModifiersFromModifierFlags(jw(e)?4096:0),Ne(e,t),U(G(Hp(sd(e)),(e=>!!(8&e.flags))),(e=>{const t=e.declarations&&e.declarations[0]&&tM(e.declarations[0])?MB(e.declarations[0]):void 0;return UA.createEnumMember(Ll(e.escapedName),void 0===t?void 0:"string"===typeof t?UA.createStringLiteral(t):UA.createNumericLiteral(t))}))),n)}function ce(e,r,o,i){const a=wf(e,0);for(const s of a){Y(yk(p(s,262,t,{name:UA.createIdentifier(o),privateSymbolVisitor:K,bundledImports:n}),de(s)),i)}if(!(1536&r.flags&&r.exports&&r.exports.size)){pe(G(Hp(e),fe),o,i,!0)}}function de(e){if(e.declaration&&e.declaration.parent){if(TD(e.declaration.parent)&&5===Eg(e.declaration.parent))return e.declaration.parent;if(iN(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}function pe(e,n,r,i){if(T(e)){const a=nt(e,(e=>!T(e.declarations)||se(e.declarations,(e=>Yf(e)===Yf(t.enclosingDeclaration)))?"local":"remote")).get("local")||o;let s=Rk.createModuleDeclaration(void 0,UA.createIdentifier(n),UA.createModuleBlock([]),32);Vx(s,l),s.locals=Mf(e),s.symbol=e[0].parent;const d=c;c=[];const u=v;v=!1;const p={...t,enclosingDeclaration:s},f=t;t=p,B(Mf(a),i,!0),t=f,v=u;const m=c;c=d;const _=U(m,(e=>CN(e)&&!e.isExportEquals&&nC(e.expression)?UA.createExportDeclaration(void 0,!1,UA.createNamedExports([UA.createExportSpecifier(!1,e.expression,UA.createIdentifier("default"))])):e)),h=M(_,(e=>Gb(e,32)))?U(_,W):_;s=UA.updateModuleDeclaration(s,s.modifiers,s.name,UA.createModuleBlock(h)),Y(s,r)}}function fe(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&jb(e.valueDeclaration)&&Md(e.valueDeclaration.parent))}function me(e){const r=Z(e,(e=>{const r=t.enclosingDeclaration;t.enclosingDeclaration=e;let o=e.expression;if(EE(o)){if(nC(o)&&""===kl(o))return a(void 0);let e;if(({introducesError:e,node:o}=ee(o,t,K)),e)return a(void 0)}return a(UA.createExpressionWithTypeArguments(o,U(e.typeArguments,(e=>te(t,e,K,n)||i(JE(e),t)))));function a(e){return t.enclosingDeclaration=r,e}}));if(r.length===e.length)return r}function _e(e,n,r){var i,s;const l=null==(i=e.declarations)?void 0:i.find(Md),c=t.enclosingDeclaration;t.enclosingDeclaration=l||c;const d=U(Sd(e),(e=>m(e,t))),u=Pu(qd(e)),p=jd(u),f=l&&Wy(l),_=f&&me(f)||Z(function(e){let t=o;if(e.symbol.declarations)for(const n of e.symbol.declarations){const e=Wy(n);if(e)for(const n of e){const e=JE(n);Gl(e)||(t===o?t=[e]:t.push(e))}}return t}(u),Re),h=sd(e),g=!!(null==(s=h.symbol)?void 0:s.valueDeclaration)&&Md(h.symbol.valueDeclaration),y=g?Wd(h):Tt,v=[...T(p)?[UA.createHeritageClause(96,U(p,(e=>Ae(e,y,n))))]:[],...T(_)?[UA.createHeritageClause(119,_)]:[]],b=function(e,t,n){if(!T(t))return n;const r=new Map;x(n,(e=>{r.set(e.escapedName,e)}));for(const o of t){const t=Hp(Pu(o,e.thisType));for(const e of t){const t=r.get(e.escapedName);t&&e.parent===t.parent&&r.delete(e.escapedName)}}return Ye(r.values())}(u,p,Hp(u)),E=G(b,(e=>{const t=e.valueDeclaration;return!!t&&!(Bl(t)&&rC(t.name))})),S=se(b,(e=>{const t=e.valueDeclaration;return!!t&&Bl(t)&&rC(t.name)}))?[UA.createPropertyDeclaration(void 0,UA.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:o,A=J(E,(e=>a(e,!1,p[0]))),I=J(G(Hp(h),(e=>!(4194304&e.flags)&&"prototype"!==e.escapedName&&!fe(e))),(e=>a(e,!0,y))),R=!g&&!!e.valueDeclaration&&$h(e.valueDeclaration)&&!se(wf(h,1))?[UA.createConstructorDeclaration(UA.createModifiersFromModifierFlags(2),[],void 0)]:Te(1,h,y,176),C=xe(u,p[0]);t.enclosingDeclaration=c,Y(yk(UA.createClassDeclaration(void 0,n,d,v,[...C,...I,...R,...A,...S]),e.declarations&&G(e.declarations,(e=>lN(e)||CD(e)))[0]),r)}function he(e){return I(e,(e=>{if(RN(e)||MN(e))return kl(e.propertyName||e.name);if(TD(e)||CN(e)){const t=CN(e)?e.expression:e.right;if(lD(t))return kl(t.name)}if(ga(e)){const t=jl(e);if(t&&nC(t))return kl(t)}}))}function ge(e,r,o){var i,a,s,l,c,d;const u=ha(e);if(!u)return In.fail();const p=us(Pa(u,!0));if(!p)return;let f=Wm(p)&&he(e.declarations)||Ll(p.escapedName);"export="===f&&O&&(f="default");const m=Ne(p,f);switch(K(p),u.kind){case 208:if(260===(null==(a=null==(i=u.parent)?void 0:i.parent)?void 0:a.kind)){const e=D(p.parent||p,t),{propertyName:n}=u;Y(UA.createImportDeclaration(void 0,UA.createImportClause(!1,void 0,UA.createNamedImports([UA.createImportSpecifier(!1,n&&nC(n)?UA.createIdentifier(kl(n)):void 0,UA.createIdentifier(r))])),UA.createStringLiteral(e),void 0),0);break}In.failBadSyntaxKind((null==(s=u.parent)?void 0:s.parent)||u,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:226===(null==(c=null==(l=u.parent)?void 0:l.parent)?void 0:c.kind)&&ye(Ll(e.escapedName),m);break;case 260:if(lD(u.initializer)){const e=u.initializer,n=UA.createUniqueName(r),i=D(p.parent||p,t);Y(UA.createImportEqualsDeclaration(void 0,!1,n,UA.createExternalModuleReference(UA.createStringLiteral(i))),0),Y(UA.createImportEqualsDeclaration(void 0,!1,UA.createIdentifier(r),UA.createQualifiedName(n,e.name)),o);break}case 271:if("export="===p.escapedName&&se(p.declarations,(e=>rM(e)&&x_(e)))){ve(e);break}const _=!(512&p.flags)&&!iN(u);Y(UA.createImportEqualsDeclaration(void 0,!1,UA.createIdentifier(r),_?z(p,t,-1,!1):UA.createExternalModuleReference(UA.createStringLiteral(D(p,t)))),_?o:0);break;case 270:Y(UA.createNamespaceExportDeclaration(kl(u.name)),0);break;case 273:{const e=D(p.parent||p,t),o=n?UA.createStringLiteral(e):u.parent.moduleSpecifier;Y(UA.createImportDeclaration(void 0,UA.createImportClause(!1,UA.createIdentifier(r),void 0),o,u.parent.attributes),0);break}case 274:{const e=D(p.parent||p,t),o=n?UA.createStringLiteral(e):u.parent.parent.moduleSpecifier;Y(UA.createImportDeclaration(void 0,UA.createImportClause(!1,void 0,UA.createNamespaceImport(UA.createIdentifier(r))),o,u.parent.attributes),0);break}case 280:Y(UA.createExportDeclaration(void 0,!1,UA.createNamespaceExport(UA.createIdentifier(r)),UA.createStringLiteral(D(p,t))),0);break;case 276:{const e=D(p.parent||p,t),o=n?UA.createStringLiteral(e):u.parent.parent.parent.moduleSpecifier;Y(UA.createImportDeclaration(void 0,UA.createImportClause(!1,void 0,UA.createNamedImports([UA.createImportSpecifier(!1,r!==f?UA.createIdentifier(f):void 0,UA.createIdentifier(r))])),o,u.parent.parent.parent.attributes),0);break}case 281:const h=u.parent.parent.moduleSpecifier;h&&"default"===(null==(d=u.propertyName)?void 0:d.escapedText)&&(f="default"),ye(Ll(e.escapedName),h?f:m,h&&np(h)?UA.createStringLiteral(h.text):void 0);break;case 277:ve(e);break;case 226:case 211:case 212:"default"===e.escapedName||"export="===e.escapedName?ve(e):ye(r,m);break;default:return In.failBadSyntaxKind(u,"Unhandled alias declaration kind in symbol serializer!")}}function ye(e,t,n){Y(UA.createExportDeclaration(void 0,!1,UA.createNamedExports([UA.createExportSpecifier(!1,e!==t?t:void 0,e)]),n),0)}function ve(e){var r;if(4194304&e.flags)return!1;const o=Ll(e.escapedName),i="export="===o,a=i||"default"===o,s=e.declarations&&ha(e),d=s&&Pa(s,!0);if(d&&T(d.declarations)&&se(d.declarations,(e=>Yf(e)===Yf(l)))){const n=s&&(CN(s)||TD(s)?Py(s):wy(s)),r=n&&EE(n)?function(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{if(bg(e.expression)&&!rC(e.name))return e.name;e=e.expression}while(80!==e.kind);return e}}(n):void 0,u=r&&qa(r,-1,!0,!0,l);(u||d)&&K(u||d);const p=t.tracker.disableTrackSymbol;if(t.tracker.disableTrackSymbol=!0,a)c.push(UA.createExportAssignment(void 0,i,j(d,t,-1)));else if(r===n&&r)ye(o,kl(r));else if(n&&CD(n))ye(o,Ne(d,wl(d)));else{const n=Ce(o,e);Y(UA.createImportEqualsDeclaration(void 0,!1,UA.createIdentifier(n),z(d,t,-1,!1)),0),ye(o,n)}return t.tracker.disableTrackSymbol=p,!0}{const s=Ce(o,e),u=YA(sd(us(e)));if(be(u,e))ce(u,e,s,a?0:32);else{const i=267!==(null==(r=t.enclosingDeclaration)?void 0:r.kind)||98304&e.flags&&!(65536&e.flags)?2:1;Y(UA.createVariableStatement(void 0,UA.createVariableDeclarationList([UA.createVariableDeclaration(s,void 0,Q(t,u,e,l,K,n))],i)),d&&4&d.flags&&"export="===d.escapedName?128:o===s?32:0)}return a?(c.push(UA.createExportAssignment(void 0,i,UA.createIdentifier(s))),!0):o!==s&&(ye(o,s),!0)}}function be(e,n){const r=Yf(t.enclosingDeclaration);return 48&RS(e)&&!T(Kf(e))&&!dl(e)&&!(!T(G(Hp(e),fe))&&!T(wf(e,0)))&&!T(wf(e,1))&&!X(n,l)&&!(e.symbol&&se(e.symbol.declarations,(e=>Yf(e)!==r)))&&!se(Hp(e),(e=>Tu(e.escapedName)))&&!se(Hp(e),(e=>se(e.declarations,(e=>Yf(e)!==r))))&&M(Hp(e),(e=>!!zs(wl(e),A)&&(!(98304&e.flags)||cd(e)===od(e))))}function Ee(e,r,o){return function(i,a,s){var c,d,u,f,m;const h=_S(i),y=!!(2&h);if(a&&2887656&i.flags)return[];if(4194304&i.flags||"constructor"===i.escapedName||s&&kf(s,i.escapedName)&&Mw(kf(s,i.escapedName))===Mw(i)&&(16777216&i.flags)===(16777216&kf(s,i.escapedName).flags)&&BS(sd(i),Ol(s,i.escapedName)))return[];const v=-1025&h|(a?256:0),b=q(i,t),E=null==(c=i.declarations)?void 0:c.find(_n(TC,Ld,iN,SC,TD,lD));if(98304&i.flags&&o){const e=[];if(65536&i.flags){const r=i.declarations&&x(i.declarations,(e=>178===e.kind?e:dD(e)&&Sg(e)?x(e.arguments[2].properties,(e=>{const t=jl(e);if(t&&nC(t)&&"set"===kl(t))return e})):void 0));In.assert(!!r);const o=Ad(r)?pm(r).parameters[0]:void 0;e.push(yk(UA.createSetAccessorDeclaration(UA.createModifiersFromModifierFlags(v),b,[UA.createParameterDeclaration(void 0,void 0,o?g(o,_(o),t):"value",void 0,y?void 0:Q(t,sd(i),i,l,K,n))],void 0),(null==(d=i.declarations)?void 0:d.find(qu))||E))}if(32768&i.flags){const r=2&h;e.push(yk(UA.createGetAccessorDeclaration(UA.createModifiersFromModifierFlags(v),b,[],r?void 0:Q(t,sd(i),i,l,K,n),void 0),(null==(u=i.declarations)?void 0:u.find(Ju))||E))}return e}if(98311&i.flags)return yk(e(UA.createModifiersFromModifierFlags((Mw(i)?8:0)|v),b,16777216&i.flags?UA.createToken(58):void 0,y?void 0:Q(t,od(i),i,l,K,n),void 0),(null==(f=i.declarations)?void 0:f.find(_n(TC,iN)))||E);if(8208&i.flags){const n=wf(sd(i),0);if(2&v)return yk(e(UA.createModifiersFromModifierFlags((Mw(i)?8:0)|v),b,16777216&i.flags?UA.createToken(58):void 0,void 0,void 0),(null==(m=i.declarations)?void 0:m.find(Ad))||n[0]&&n[0].declaration||i.declarations&&i.declarations[0]);const o=[];for(const e of n){const n=p(e,r,t,{name:b,questionToken:16777216&i.flags?UA.createToken(58):void 0,modifiers:v?UA.createModifiersFromModifierFlags(v):void 0}),a=e.declaration&&kg(e.declaration.parent)?e.declaration.parent:e.declaration;o.push(yk(n,a))}return o}return In.fail(`Unhandled class member kind! ${i.__debugFlags||i.flags}`)}}function Se(e,t){return s(e,!1,t)}function Te(e,n,r,o){const i=wf(n,e);if(1===e){if(!r&&M(i,(e=>0===T(e.parameters))))return[];if(r){const e=wf(r,1);if(!T(e)&&M(i,(e=>0===T(e.parameters))))return[];if(e.length===i.length){let t=!1;for(let n=0;n<e.length;n++)if(!ax(i[n],e[n],!1,!1,!0,GS)){t=!0;break}if(!t)return[]}}let e=0;for(const t of i)t.declaration&&(e|=$b(t.declaration,6));if(e)return[yk(UA.createConstructorDeclaration(UA.createModifiersFromModifierFlags(e),[],void 0),i[0].declaration)]}const a=[];for(const s of i){const e=p(s,o,t);a.push(yk(e,s.declaration))}return a}function xe(e,n){const r=[];for(const o of Kf(e)){if(n){const e=qf(n,o.keyType);if(e&&BS(o.type,e.type))continue}r.push(u(o,t,void 0))}return r}function Ae(e,n,r){const o=Ie(e,111551);if(o)return o;const a=Ce(`${r}_base`);return Y(UA.createVariableStatement(void 0,UA.createVariableDeclarationList([UA.createVariableDeclaration(a,void 0,i(n,t))],2)),0),UA.createExpressionWithTypeArguments(UA.createIdentifier(a),void 0)}function Ie(e,n){let r,o;if(e.target&&Vs(e.target.symbol,l,n)?(r=U(D_(e),(e=>i(e,t))),o=j(e.target.symbol,t,788968)):e.symbol&&Vs(e.symbol,l,n)&&(o=j(e.symbol,t,788968)),o)return UA.createExpressionWithTypeArguments(o,r)}function Re(e){const n=Ie(e,788968);return n||(e.symbol?UA.createExpressionWithTypeArguments(j(e.symbol,t,788968),void 0):void 0)}function Ce(e,n){var r,o;const i=n?Kz(n):void 0;if(i&&t.remappedSymbolNames.has(i))return t.remappedSymbolNames.get(i);n&&(e=De(n,e));let a=0;const s=e;for(;null==(r=t.usedSymbolNames)?void 0:r.has(e);)a++,e=`${s}_${a}`;return null==(o=t.usedSymbolNames)||o.add(e),i&&t.remappedSymbolNames.set(i,e),e}function De(e,n){if("default"===n||"__class"===n||"__function"===n){const r=t.flags;t.flags|=16777216;const o=hl(e,t);t.flags=r,n=o.length>0&&sg(o.charCodeAt(0))?Gv(o):o}return"default"===n?n="_default":"export="===n&&(n="_exports"),n=zs(n,A)&&!Xy(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function Ne(e,n){const r=Kz(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=De(e,n),t.remappedSymbolNames.set(r,n),n)}}(e,t,s))),symbolToNode:(e,t,r,o,i)=>n(r,o,i,(n=>function(e,t,n){if(1073741824&t.flags){if(e.valueDeclaration){const t=jl(e.valueDeclaration);if(t&&yC(t))return t}const r=Ui(e).nameType;if(r&&9216&r.flags)return t.enclosingDeclaration=r.symbol.valueDeclaration,UA.createComputedPropertyName(j(r.symbol,t,n))}return j(e,t,n)}(e,n,t)))};function n(t,n,r,o){In.assert(void 0===t||0===(16&t.flags));const i=(null==r?void 0:r.trackSymbol)?r.moduleResolverHost:134217728&n?function(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:lt(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getPackageJsonInfoCache)?void 0:t.call(e)},useCaseSensitiveFileNames:lt(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}(e):void 0,a={enclosingDeclaration:t,flags:n||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};a.tracker=new jz(a,r,i);const s=o(a);return a.truncating&&1&a.flags&&a.tracker.reportTruncationError(),a.encounteredError?void 0:s}function r(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>(1&e.flags?up:dp)}function i(e,n){const l=n.flags,m=function(e,n){var l,m;t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();const _=8388608&n.flags;if(n.flags&=-8388609,!e)return 262144&n.flags?(n.approximateLength+=3,UA.createKeywordTypeNode(133)):void(n.encounteredError=!0);536870912&n.flags||(e=Tf(e));if(1&e.flags)return e.aliasSymbol?UA.createTypeReferenceNode(N(e.aliasSymbol),d(e.aliasTypeArguments,n)):e===Ct?RI(UA.createKeywordTypeNode(133),3,"unresolved"):(n.approximateLength+=3,UA.createKeywordTypeNode(e===Nt?141:133));if(2&e.flags)return UA.createKeywordTypeNode(159);if(4&e.flags)return n.approximateLength+=6,UA.createKeywordTypeNode(154);if(8&e.flags)return n.approximateLength+=6,UA.createKeywordTypeNode(150);if(64&e.flags)return n.approximateLength+=6,UA.createKeywordTypeNode(163);if(16&e.flags&&!e.aliasSymbol)return n.approximateLength+=7,UA.createKeywordTypeNode(136);if(1056&e.flags){if(8&e.symbol.flags){const t=ms(e.symbol),r=k(t,n,788968);if(ou(t)===e)return r;const o=wl(e.symbol);return zs(o,0)?M(r,UA.createTypeReferenceNode(o,void 0)):eD(r)?(r.isTypeOf=!0,UA.createIndexedAccessTypeNode(r,UA.createLiteralTypeNode(UA.createStringLiteral(o)))):PC(r)?UA.createIndexedAccessTypeNode(UA.createTypeQueryNode(r.typeName),UA.createLiteralTypeNode(UA.createStringLiteral(o))):In.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return k(e.symbol,n,788968)}if(128&e.flags)return n.approximateLength+=e.value.length+2,UA.createLiteralTypeNode(fI(UA.createStringLiteral(e.value,!!(268435456&n.flags)),16777216));if(256&e.flags){const t=e.value;return n.approximateLength+=(""+t).length,UA.createLiteralTypeNode(t<0?UA.createPrefixUnaryExpression(41,UA.createNumericLiteral(-t)):UA.createNumericLiteral(t))}if(2048&e.flags)return n.approximateLength+=Mx(e.value).length+1,UA.createLiteralTypeNode(UA.createBigIntLiteral(e.value));if(512&e.flags)return n.approximateLength+=e.intrinsicName.length,UA.createLiteralTypeNode("true"===e.intrinsicName?UA.createTrue():UA.createFalse());if(8192&e.flags){if(!(1048576&n.flags)){if(js(e.symbol,n.enclosingDeclaration))return n.approximateLength+=6,k(e.symbol,n,111551);n.tracker.reportInaccessibleUniqueSymbolError&&n.tracker.reportInaccessibleUniqueSymbolError()}return n.approximateLength+=13,UA.createTypeOperatorNode(158,UA.createKeywordTypeNode(155))}if(16384&e.flags)return n.approximateLength+=4,UA.createKeywordTypeNode(116);if(32768&e.flags)return n.approximateLength+=9,UA.createKeywordTypeNode(157);if(65536&e.flags)return n.approximateLength+=4,UA.createLiteralTypeNode(UA.createNull());if(131072&e.flags)return n.approximateLength+=5,UA.createKeywordTypeNode(146);if(4096&e.flags)return n.approximateLength+=6,UA.createKeywordTypeNode(155);if(67108864&e.flags)return n.approximateLength+=6,UA.createKeywordTypeNode(151);if(oA(e))return 4194304&n.flags&&(n.encounteredError||32768&n.flags||(n.encounteredError=!0),null==(m=(l=n.tracker).reportInaccessibleThisError)||m.call(l)),n.approximateLength+=4,UA.createThisTypeNode();if(!_&&e.aliasSymbol&&(16384&n.flags||(h=e.aliasSymbol,g=n.enclosingDeclaration,0===Ks(h,g,788968,!1,!0).accessibility))){const t=d(e.aliasTypeArguments,n);return!Ls(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?1===T(t)&&e.aliasSymbol===er.symbol?UA.createArrayTypeNode(t[0]):k(e.aliasSymbol,n,788968,t):UA.createTypeReferenceNode(UA.createIdentifier(""),t)}var h,g;const y=RS(e);if(4&y)return In.assert(!!(524288&e.flags)),e.node?R(e,D):D(e);if(262144&e.flags||3&y){if(262144&e.flags&&F(n.inferTypeParameters,e)){let t;n.approximateLength+=wl(e.symbol).length+6;const r=$p(e);if(r){const o=$m(e,!0);o&&BS(r,o)||(n.approximateLength+=9,t=r&&i(r,n))}return UA.createInferTypeNode(f(e,n,t))}if(4&n.flags&&262144&e.flags){const t=W(e,n);return n.approximateLength+=kl(t).length,UA.createTypeReferenceNode(UA.createIdentifier(kl(t)),void 0)}if(e.symbol)return k(e.symbol,n,788968);const t=(e===Un||e===Hn)&&a&&a.symbol?(e===Hn?"sub-":"super-")+wl(a.symbol):"?";return UA.createTypeReferenceNode(UA.createIdentifier(t),void 0)}1048576&e.flags&&e.origin&&(e=e.origin);if(3145728&e.flags){const t=1048576&e.flags?function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){const o=e[r];if(n|=o.flags,!(98304&o.flags)){if(1568&o.flags){const n=512&o.flags?Qt:Xd(o);if(1048576&n.flags){const o=n.types.length;if(r+o<=e.length&&WE(e[r+o-1])===WE(n.types[o-1])){t.push(n),r+=o-1;continue}}}t.push(o)}}65536&n&&t.push(Bt);32768&n&&t.push(Pt);return t||e}(e.types):e.types;if(1===T(t))return i(t[0],n);const r=d(t,n,!0);return r&&r.length>0?1048576&e.flags?UA.createUnionTypeNode(r):UA.createIntersectionTypeNode(r):void(n.encounteredError||262144&n.flags||(n.encounteredError=!0))}if(48&y)return In.assert(!!(524288&e.flags)),I(e);if(4194304&e.flags){const t=e.type;n.approximateLength+=6;const r=i(t,n);return UA.createTypeOperatorNode(143,r)}if(134217728&e.flags){const t=e.texts,r=e.types,o=UA.createTemplateHead(t[0]),a=UA.createNodeArray(U(r,((e,o)=>UA.createTemplateLiteralTypeSpan(i(e,n),(o<r.length-1?UA.createTemplateMiddle:UA.createTemplateTail)(t[o+1])))));return n.approximateLength+=2,UA.createTemplateLiteralType(o,a)}if(268435456&e.flags){const t=i(e.type,n);return k(e.symbol,n,788968,[t])}if(8388608&e.flags){const t=i(e.objectType,n),r=i(e.indexType,n);return n.approximateLength+=2,UA.createIndexedAccessTypeNode(t,r)}if(16777216&e.flags)return R(e,(e=>v(e)));if(33554432&e.flags){const t=i(e.baseType,n),r=U_(e)&&Wh("NoInfer",!1);return r?k(r,n,788968,[t]):t}return In.fail("Should be unreachable.");function v(e){const t=i(e.checkType,n);if(n.approximateLength+=15,4&n.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)){const r=Ms(ki(262144,"T")),o=W(r,n),a=UA.createTypeReferenceNode(o);n.approximateLength+=37;const s=lS(e.root.checkType,r,e.mapper),l=n.inferTypeParameters;n.inferTypeParameters=e.root.inferTypeParameters;const c=i(AS(e.root.extendsType,s),n);n.inferTypeParameters=l;const d=b(AS(JE(e.root.node.trueType),s)),u=b(AS(JE(e.root.node.falseType),s));return UA.createConditionalTypeNode(t,UA.createInferTypeNode(UA.createTypeParameterDeclaration(void 0,UA.cloneNode(a.typeName))),UA.createConditionalTypeNode(UA.createTypeReferenceNode(UA.cloneNode(o)),i(e.checkType,n),UA.createConditionalTypeNode(a,c,d,u),UA.createKeywordTypeNode(146)),UA.createKeywordTypeNode(146))}const r=n.inferTypeParameters;n.inferTypeParameters=e.root.inferTypeParameters;const o=i(e.extendsType,n);n.inferTypeParameters=r;const a=b(eE(e)),s=b(tE(e));return UA.createConditionalTypeNode(t,o,a,s)}function b(e){var t,r,o;return 1048576&e.flags?(null==(t=n.visitedTypes)?void 0:t.has(Jy(e)))?(131072&n.flags||(n.encounteredError=!0,null==(o=null==(r=n.tracker)?void 0:r.reportCyclicStructureError)||o.call(r)),s(n)):R(e,(e=>i(e,n))):i(e,n)}function E(e){return!!bS(e)}function S(e){return!!e.target&&E(e.target)&&!E(e)}function A(e){var t;In.assert(!!(524288&e.flags));const r=e.declaration.readonlyToken?UA.createToken(e.declaration.readonlyToken.kind):void 0,o=e.declaration.questionToken?UA.createToken(e.declaration.questionToken.kind):void 0;let a,s;const l=!Np(e)&&!(2&Mp(e).flags)&&4&n.flags&&!(262144&Ip(e).flags&&4194304&(null==(t=$p(Ip(e)))?void 0:t.flags));if(Np(e)){if(S(e)&&4&n.flags){const e=W(Ms(ki(262144,"T")),n);s=UA.createTypeReferenceNode(e)}a=UA.createTypeOperatorNode(143,s||i(Mp(e),n))}else if(l){const e=W(Ms(ki(262144,"T")),n);s=UA.createTypeReferenceNode(e),a=s}else a=i(Ip(e),n);const c=f(Ap(e),n,a),d=e.declaration.nameType?i(Rp(e),n):void 0,u=i(zA(Cp(e),!!(4&Lp(e))),n),p=UA.createMappedTypeNode(r,c,d,o,u,void 0);n.approximateLength+=10;const m=fI(p,1);if(S(e)&&4&n.flags){const t=AS($p(JE(e.declaration.typeParameter.constraint.type))||Mt,e.mapper);return UA.createConditionalTypeNode(i(Mp(e),n),UA.createInferTypeNode(UA.createTypeParameterDeclaration(void 0,UA.cloneNode(s.typeName),2&t.flags?void 0:i(t,n))),m,UA.createKeywordTypeNode(146))}return l?UA.createConditionalTypeNode(i(Ip(e),n),UA.createInferTypeNode(UA.createTypeParameterDeclaration(void 0,UA.cloneNode(s.typeName),UA.createTypeOperatorNode(143,i(Mp(e),n)))),m,UA.createKeywordTypeNode(146)):m}function I(e){var t,r;const o=e.id,i=e.symbol;if(i){if(!!(8388608&RS(e))){const r=e.node;if(FC(r)&&JE(r)===e){const e=te(n,r);if(e)return e}return(null==(t=n.visitedTypes)?void 0:t.has(o))?s(n):R(e,C)}const l=dl(e)?788968:111551;if(gP(i.valueDeclaration))return k(i,n,l);if(32&i.flags&&!$c(i)&&(!(i.valueDeclaration&&Md(i.valueDeclaration)&&2048&n.flags)||lN(i.valueDeclaration)&&0===Hs(i,n.enclosingDeclaration,l,!1).accessibility)||896&i.flags||a())return k(i,n,l);if(null==(r=n.visitedTypes)?void 0:r.has(o)){const t=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){const t=vy(e.symbol.declarations[0].parent);if(dN(t))return ps(t)}return}(e);return t?k(t,n,788968):s(n)}return R(e,C)}return C(e);function a(){var e;const t=!!(8192&i.flags)&&se(i.declarations,(e=>jb(e))),r=!!(16&i.flags)&&(i.parent||x(i.declarations,(e=>312===e.parent.kind||268===e.parent.kind)));if(t||r)return(!!(4096&n.flags)||(null==(e=n.visitedTypes)?void 0:e.has(o)))&&(!(8&n.flags)||js(i,n.enclosingDeclaration))}}function R(e,t){var r,o,i;const a=e.id,l=16&RS(e)&&e.symbol&&32&e.symbol.flags,c=4&RS(e)&&e.node?"N"+Hz(e.node):16777216&e.flags?"N"+Hz(e.root.node):e.symbol?(l?"+":"")+Kz(e.symbol):void 0;n.visitedTypes||(n.visitedTypes=new Set),c&&!n.symbolDepth&&(n.symbolDepth=new Map);const d=n.enclosingDeclaration&&Hi(n.enclosingDeclaration),u=`${Jy(e)}|${n.flags}`;d&&(d.serializedTypes||(d.serializedTypes=new Map));const p=null==(r=null==d?void 0:d.serializedTypes)?void 0:r.get(u);if(p)return null==(o=p.trackedSymbols)||o.forEach((([e,t,r])=>n.tracker.trackSymbol(e,t,r))),p.truncating&&(n.truncating=!0),n.approximateLength+=p.addedLength,y(p.node);let f;if(c){if(f=n.symbolDepth.get(c)||0,f>10)return s(n);n.symbolDepth.set(c,f+1)}n.visitedTypes.add(a);const m=n.trackedSymbols;n.trackedSymbols=void 0;const _=n.approximateLength,h=t(e),g=n.approximateLength-_;return n.reportedDiagnostic||n.encounteredError||null==(i=null==d?void 0:d.serializedTypes)||i.set(u,{node:h,truncating:n.truncating,addedLength:g,trackedSymbols:n.trackedSymbols}),n.visitedTypes.delete(a),c&&n.symbolDepth.set(c,f),n.trackedSymbols=m,h;function y(e){return Sv(e)||Nl(e)!==e?yk(UA.cloneNode(fB(e,y,void 0,v)),e):e}function v(e,t,n,r,o){return e&&0===e.length?yk(UA.createNodeArray(void 0,e.hasTrailingComma),e):oB(e,t,n,r,o)}}function C(e){if(wp(e)||e.containsError)return A(e);const t=Fp(e);if(!t.properties.length&&!t.indexInfos.length){if(!t.callSignatures.length&&!t.constructSignatures.length)return n.approximateLength+=2,fI(UA.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length){return p(t.callSignatures[0],184,n)}if(1===t.constructSignatures.length&&!t.callSignatures.length){return p(t.constructSignatures[0],185,n)}}const r=G(t.constructSignatures,(e=>!!(4&e.flags)));if(se(r)){const e=U(r,Om);return t.callSignatures.length+(t.constructSignatures.length-r.length)+t.indexInfos.length+(2048&n.flags?B(t.properties,(e=>!(4194304&e.flags))):T(t.properties))&&e.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;const t=G(e.constructSignatures,(e=>!(4&e.flags)));if(e.constructSignatures===t)return e;const n=Os(e.symbol,e.members,e.callSignatures,se(t)?t:o,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(t)),i(Cv(e),n)}const a=n.flags;n.flags|=4194304;const s=P(t);n.flags=a;const l=UA.createTypeLiteralNode(s);return n.approximateLength+=2,fI(l,1024&n.flags?0:1),l}function D(e){let t=D_(e);if(e.target===er||e.target===tr){if(2&n.flags){const r=i(t[0],n);return UA.createTypeReferenceNode(e.target===er?"Array":"ReadonlyArray",[r])}const r=i(t[0],n),o=UA.createArrayTypeNode(r);return e.target===er?o:UA.createTypeOperatorNode(148,o)}if(!(8&e.target.objectFlags)){if(2048&n.flags&&e.symbol.valueDeclaration&&Md(e.symbol.valueDeclaration)&&!js(e.symbol,n.enclosingDeclaration))return I(e);{const r=e.target.outerTypeParameters;let i,a,s=0;if(r){const e=r.length;for(;s<e;){const o=s,a=e_(r[s]);do{s++}while(s<e&&e_(r[s])===a);if(!Me(r,t,o,s)){const e=d(t.slice(o,s),n),r=n.flags;n.flags|=16;const l=k(a,n,788968,e);n.flags=r,i=i?M(i,l):l}}}if(t.length>0){const r=(e.target.typeParameters||o).length;a=d(t.slice(s,r),n)}const l=n.flags;n.flags|=16;const c=k(e.symbol,n,788968,a);return n.flags=l,i?M(i,c):c}}if(t=K(t,((t,n)=>zA(t,!!(2&e.target.elementFlags[n])))),t.length>0){const r=N_(e),o=d(t.slice(0,r),n);if(o){const{labeledElementDeclarations:t}=e.target;for(let r=0;r<o.length;r++){const n=e.target.elementFlags[r],i=null==t?void 0:t[r];o[r]=i?UA.createNamedTupleMember(12&n?UA.createToken(26):void 0,UA.createIdentifier(Ll(BP(i))),2&n?UA.createToken(58):void 0,4&n?UA.createArrayTypeNode(o[r]):o[r]):12&n?UA.createRestTypeNode(4&n?UA.createArrayTypeNode(o[r]):o[r]):2&n?UA.createOptionalTypeNode(o[r]):o[r]}const n=fI(UA.createTupleTypeNode(o),1);return e.target.readonly?UA.createTypeOperatorNode(148,n):n}}if(n.encounteredError||524288&n.flags){const t=fI(UA.createTupleTypeNode([]),1);return e.target.readonly?UA.createTypeOperatorNode(148,t):t}n.encounteredError=!0}function M(e,t){if(eD(e)){let n=e.typeArguments,r=e.qualifier;r&&(nC(r)?n!==HI(r)&&(r=UI(UA.cloneNode(r),n)):n!==HI(r.right)&&(r=UA.updateQualifiedName(r,r.left,UI(UA.cloneNode(r.right),n)))),n=t.typeArguments;const o=L(t);for(const e of o)r=r?UA.createQualifiedName(r,e):e;return UA.updateImportTypeNode(e,e.argument,e.attributes,r,n,e.isTypeOf)}{let n=e.typeArguments,r=e.typeName;nC(r)?n!==HI(r)&&(r=UI(UA.cloneNode(r),n)):n!==HI(r.right)&&(r=UA.updateQualifiedName(r,r.left,UI(UA.cloneNode(r.right),n))),n=t.typeArguments;const o=L(t);for(const e of o)r=UA.createQualifiedName(r,e);return UA.updateTypeReferenceNode(e,r,n)}}function L(e){let t=e.typeName;const n=[];for(;!nC(t);)n.unshift(t.right),t=t.left;return n.unshift(t),n}function P(e){if(r(n))return[UA.createPropertySignature(void 0,"...",void 0,void 0)];const t=[];for(const r of e.callSignatures)t.push(p(r,179,n));for(const r of e.constructSignatures)4&r.flags||t.push(p(r,180,n));for(const r of e.indexInfos)t.push(u(r,n,1024&e.objectFlags?s(n):void 0));const o=e.properties;if(!o)return t;let i=0;for(const a of o){if(i++,2048&n.flags){if(4194304&a.flags)continue;6&_S(a)&&n.tracker.reportPrivateInBaseOfClassExpression&&n.tracker.reportPrivateInBaseOfClassExpression(Ll(a.escapedName))}if(r(n)&&i+2<o.length-1){t.push(UA.createPropertySignature(void 0,`... ${o.length-i} more ...`,void 0,void 0)),c(o[o.length-1],n,t);break}c(a,n,t)}return t.length?t:void 0}}(e,n);return n.flags=l,m}function s(e){return e.approximateLength+=3,1&e.flags?UA.createKeywordTypeNode(133):UA.createTypeReferenceNode(UA.createIdentifier("..."),void 0)}function l(e,t){var n;return!!(8192&mS(e))&&(F(t.reverseMappedStack,e)||(null==(n=t.reverseMappedStack)?void 0:n[0])&&!(16&RS(Fe(t.reverseMappedStack).links.propertyType)))}function c(e,t,n){var r;const o=!!(8192&mS(e)),i=l(e,t)?Tt:cd(e),a=t.enclosingDeclaration;if(t.enclosingDeclaration=void 0,t.tracker.canTrackSymbol&&Tu(e.escapedName))if(e.declarations){const n=Pe(e.declarations);if(xu(n))if(TD(n)){const e=jl(n);e&&cD(e)&&xE(e.argumentExpression)&&y(e.argumentExpression,a,t)}else y(n.name.expression,a,t)}else t.tracker.reportNonSerializableProperty(rl(e));t.enclosingDeclaration=e.valueDeclaration||(null==(r=e.declarations)?void 0:r[0])||a;const c=q(e,t);if(t.enclosingDeclaration=a,t.approximateLength+=wl(e).length+1,98304&e.flags){const r=od(e);if(i!==r&&!Gl(i)&&!Gl(r)){const r=Df(e,177),o=pm(r);n.push(xI(p(o,177,t,{name:c}),r));const i=Df(e,178),a=pm(i);return void n.push(xI(p(a,178,t,{name:c}),i))}}const d=16777216&e.flags?UA.createToken(58):void 0;if(8208&e.flags&&!zp(i).length&&!Mw(e)){const e=wf(BR(i,(e=>!(32768&e.flags))),0);for(const r of e){const e=p(r,173,t,{name:c,questionToken:d});n.push(_(e))}if(e.length||!d)return}let u;l(e,t)?u=s(t):(o&&(t.reverseMappedStack||(t.reverseMappedStack=[]),t.reverseMappedStack.push(e)),u=i?Q(t,i,e,a):UA.createKeywordTypeNode(133),o&&t.reverseMappedStack.pop());const f=Mw(e)?[UA.createToken(148)]:void 0;f&&(t.approximateLength+=9);const m=UA.createPropertySignature(f,c,d,u);function _(t){var n;const r=null==(n=e.declarations)?void 0:n.find((e=>355===e.kind));if(r){const e=Rc(r.comment);e&&II(t,[{kind:3,text:"*\n * "+e.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else e.valueDeclaration&&xI(t,e.valueDeclaration);return t}n.push(_(m))}function d(e,t,n){if(se(e)){if(r(t)){if(!n)return[UA.createTypeReferenceNode("...",void 0)];if(e.length>2)return[i(e[0],t),UA.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),i(e[e.length-1],t)]}const o=!(64&t.flags)?ct():void 0,a=[];let s=0;for(const n of e){if(s++,r(t)&&s+2<e.length-1){a.push(UA.createTypeReferenceNode(`... ${e.length-s} more ...`,void 0));const n=i(e[e.length-1],t);n&&a.push(n);break}t.approximateLength+=2;const l=i(n,t);l&&(a.push(l),o&&Ox(l)&&o.add(l.typeName.escapedText,[n,a.length-1]))}if(o){const e=t.flags;t.flags|=64,o.forEach((e=>{if(!Fx(e,(([e],[t])=>function(e,t){return e===t||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}(e,t))))for(const[n,r]of e)a[r]=i(n,t)})),t.flags=e}return a}}function u(e,t,n){const r=i_(e)||"x",o=i(e.keyType,t),a=UA.createParameterDeclaration(void 0,void 0,r,void 0,o,void 0);return n||(n=i(e.type||Tt,t)),e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=r.length+4,UA.createIndexSignature(e.isReadonly?[UA.createToken(148)]:void 0,[a],n)}function p(e,t,n,r){var a;const s=256&n.flags;let l,c;s&&(n.flags&=-257),n.approximateLength+=3,32&n.flags&&e.target&&e.mapper&&e.target.typeParameters?c=e.target.typeParameters.map((t=>i(AS(t,e.mapper),n))):l=e.typeParameters&&e.typeParameters.map((e=>m(e,n)));const d=Vu(e,!0)[0];let u;if(n.enclosingDeclaration&&e.declaration&&e.declaration!==n.enclosingDeclaration&&!$h(e.declaration)&&(se(d)||se(e.typeParameters))){let t=function(e,t){let r;In.assert(n.enclosingDeclaration),Hi(n.enclosingDeclaration).fakeScopeForSignatureDeclaration===e?r=n.enclosingDeclaration:n.enclosingDeclaration.parent&&Hi(n.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===e&&(r=n.enclosingDeclaration.parent),In.assertOptionalNode(r,BD);const i=(null==r?void 0:r.locals)??Mf();let a;if(t(((e,t)=>{i.has(e)||(a=Ee(a,e),i.set(e,t))})),!a)return;const s=u;function l(){x(a,(e=>i.delete(e))),null==s||s()}if(r)u=l;else{const t=Rk.createBlock(o);Hi(t).fakeScopeForSignatureDeclaration=e,t.locals=i;const r=n.enclosingDeclaration;Vx(t,r),n.enclosingDeclaration=t,u=()=>{n.enclosingDeclaration=r,l()}}};t("params",(e=>{for(const t of d)e(t.escapedName,t)})),4&n.flags&&t("typeParams",(t=>{for(const r of e.typeParameters??o){t(W(r,n).escapedText,r.symbol)}}))}const p=(se(d,(e=>e!==d[d.length-1]&&!!(32768&mS(e))))?e.parameters:d).map((e=>h(e,n,176===t,null==r?void 0:r.privateSymbolVisitor,null==r?void 0:r.bundledImports))),f=33554432&n.flags?void 0:function(e,t){if(e.thisParameter)return h(e.thisParameter,t);if(e.declaration&&$h(e.declaration)){const n=mc(e.declaration);if(n&&n.typeExpression)return UA.createParameterDeclaration(void 0,void 0,"this",void 0,i(JE(n.typeExpression),t))}}(e,n);let _;f&&p.unshift(f);const g=ym(e);if(g){const e=2===g.kind||3===g.kind?UA.createToken(131):void 0,t=1===g.kind||3===g.kind?fI(UA.createIdentifier(g.parameterName),16777216):UA.createThisTypeNode(),r=g.type&&i(g.type,n);_=UA.createTypePredicateNode(e,t,r)}else{const t=bm(e);!t||s&&zl(t)?s||(_=UA.createKeywordTypeNode(133)):_=function(e,t,n,r,o){if(!Gl(t)&&e.enclosingDeclaration){const i=n.declaration&&Rb(n.declaration),a=Y(e.enclosingDeclaration);if(Cl(i,(e=>e===a))&&i){const a=JE(i);if((262144&a.flags&&a.isThisType?AS(a,n.mapper):a)===t&&$(i,t)){const t=te(e,i,r,o);if(t)return t}}}return i(t,e)}(n,t,e,null==r?void 0:r.privateSymbolVisitor,null==r?void 0:r.bundledImports)}let y=null==r?void 0:r.modifiers;if(185===t&&4&e.flags){const e=aE(y);y=UA.createModifiersFromModifierFlags(64|e)}const v=179===t?UA.createCallSignature(l,p,_):180===t?UA.createConstructSignature(l,p,_):173===t?UA.createMethodSignature(y,(null==r?void 0:r.name)??UA.createIdentifier(""),null==r?void 0:r.questionToken,l,p,_):174===t?UA.createMethodDeclaration(y,void 0,(null==r?void 0:r.name)??UA.createIdentifier(""),void 0,l,p,_,void 0):176===t?UA.createConstructorDeclaration(y,p,void 0):177===t?UA.createGetAccessorDeclaration(y,(null==r?void 0:r.name)??UA.createIdentifier(""),p,_,void 0):178===t?UA.createSetAccessorDeclaration(y,(null==r?void 0:r.name)??UA.createIdentifier(""),p,void 0):181===t?UA.createIndexSignature(y,p,_):324===t?UA.createJSDocFunctionType(p,_):184===t?UA.createFunctionTypeNode(l,p,_??UA.createTypeReferenceNode(UA.createIdentifier(""))):185===t?UA.createConstructorTypeNode(y,l,p,_??UA.createTypeReferenceNode(UA.createIdentifier(""))):262===t?UA.createFunctionDeclaration(y,void 0,(null==r?void 0:r.name)?vt(r.name,nC):UA.createIdentifier(""),l,p,_,void 0):218===t?UA.createFunctionExpression(y,void 0,(null==r?void 0:r.name)?vt(r.name,nC):UA.createIdentifier(""),l,p,_,UA.createBlock([])):219===t?UA.createArrowFunction(y,l,p,_,void 0,UA.createBlock([])):In.assertNever(t);if(c&&(v.typeArguments=UA.createNodeArray(c)),330===(null==(a=e.declaration)?void 0:a.kind)&&346===e.declaration.parent.kind){RI(v,3,xm(e.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map((e=>e.replace(/^\s+/," "))).join("\n"),!0)}return null==u||u(),v}function f(e,t,n){const r=t.flags;t.flags&=-513;const o=UA.createModifiersFromModifierFlags(qT(e)),a=W(e,t),s=ff(e),l=s&&i(s,t);return t.flags=r,UA.createTypeParameterDeclaration(o,a,n,l)}function m(e,t,n=$p(e)){return f(e,t,n&&i(n,t))}function _(e){const t=Df(e,169);return t||(Lf(e)?void 0:Df(e,348))}function h(e,t,n,r,o){const i=_(e);let a=sd(e);i&&xB(i)&&(a=kA(a));const s=Q(t,a,e,t.enclosingDeclaration,r,o),l=!(8192&t.flags)&&n&&i&&vk(i)?U(Hl(i),UA.cloneNode):void 0,c=i&&ip(i)||32768&mS(e)?UA.createToken(26):void 0,d=g(e,i,t),u=i&&lm(i)||16384&mS(e)?UA.createToken(58):void 0,p=UA.createParameterDeclaration(l,c,d,u,s,void 0);return t.approximateLength+=wl(e).length+3,p}function g(e,t,n){return t&&t.name?80===t.name.kind?fI(UA.cloneNode(t.name),16777216):166===t.name.kind?fI(UA.cloneNode(t.name.right),16777216):function e(t){n.tracker.canTrackSymbol&&yC(t)&&Su(t)&&y(t.expression,n.enclosingDeclaration,n);let r=fB(t,e,void 0,void 0,e);return iD(r)&&(r=UA.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),Sv(r)||(r=UA.cloneNode(r)),fI(r,16777217)}(t.name):wl(e)}function y(e,t,n){if(!n.tracker.canTrackSymbol)return;const r=SE(e),o=ta(r,r.escapedText,1160127,void 0,void 0,!0);o&&n.tracker.trackSymbol(o,t,111551)}function v(e,t,n,r){return t.tracker.trackSymbol(e,t.enclosingDeclaration,n),b(e,t,n,r)}function b(e,t,n,r){let o;return 262144&e.flags||!(t.enclosingDeclaration||64&t.flags)||134217728&t.flags?o=[e]:(o=In.checkDefined(function e(n,o,i){let a,s=Bs(n,t.enclosingDeclaration,o,!!(128&t.flags));if(!s||Gs(s[0],t.enclosingDeclaration,1===s.length?o:Ws(o))){const r=gs(s?s[0]:n,t.enclosingDeclaration,o);if(T(r)){a=r.map((e=>se(e.declarations,$s)?D(e,t):void 0));const i=r.map(((e,t)=>t));i.sort(l);const c=i.map((e=>r[e]));for(const t of c){const r=e(t,Ws(o),!1);if(r){if(t.exports&&t.exports.get("export=")&&Es(t.exports.get("export="),n)){s=r;break}s=r.concat(s||[bs(t,n)||n]);break}}}}if(s)return s;if(i||!(6144&n.flags)){if(!i&&!r&&x(n.declarations,$s))return;return[n]}function l(e,t){const n=a[e],r=a[t];if(n&&r){const e=Ji(r);return Ji(n)===e?dz(n)-dz(r):e?-1:1}return 0}}(e,n,!0)),In.assert(o&&o.length>0)),o}function E(e,t){let n;return 524384&BW(e).flags&&(n=UA.createNodeArray(U(Sd(e),(e=>m(e,t))))),n}function R(e,t,n){var r;In.assert(e&&0<=t&&t<e.length);const o=e[t],i=Kz(o);if(null==(r=n.typeParameterSymbolList)?void 0:r.has(i))return;let a;if((n.typeParameterSymbolList||(n.typeParameterSymbolList=new Set)).add(i),512&n.flags&&t<e.length-1){const r=o,i=e[t+1];if(1&mS(i)){const e=function(e){return ce(yd(e),Sd(e))}(2097152&r.flags?Wa(r):r);a=d(U(e,(e=>tS(e,i.links.mapper))),n)}else a=E(o,n)}return a}function C(e){return YC(e.objectType)?C(e.objectType):e}function D(e,t,n){let r=Df(e,312);if(!r){const t=I(e.declarations,(t=>vs(t,e)));t&&(r=Df(t,312))}if(r&&void 0!==r.moduleName)return r.moduleName;if(!r){if(t.tracker.trackReferencedAmbientModule){const n=G(e.declarations,Pm);if(T(n))for(const r of n)t.tracker.trackReferencedAmbientModule(r,e)}if(Cz.test(e.escapedName))return e.escapedName.substring(1,e.escapedName.length-1)}if(!t.enclosingDeclaration||!t.tracker.moduleResolverHost)return Cz.test(e.escapedName)?e.escapedName.substring(1,e.escapedName.length-1):Yf(Vm(e)).fileName;const o=Yf(Rl(t.enclosingDeclaration)),i=n||(null==o?void 0:o.impliedNodeFormat),a=xF(o.path,i),s=Ui(e);let l=s.specifierCache&&s.specifierCache.get(a);if(!l){const r=!!ob(S),{moduleResolverHost:c}=t.tracker,d=r?{...S,baseUrl:c.getCommonSourceDirectory()}:S;l=Pe(az(e,Ne,d,o,c,{importModuleSpecifierPreference:r?"non-relative":"project-relative",importModuleSpecifierEnding:r?"minimal":99===i?"js":void 0},{overrideImportMode:n})),s.specifierCache??(s.specifierCache=new Map),s.specifierCache.set(a,l)}return l}function N(e){const t=UA.createIdentifier(Ll(e.escapedName));return e.parent?UA.createQualifiedName(N(e.parent),t):t}function k(e,t,n,r){const o=v(e,t,n,!(16384&t.flags)),i=111551===n;if(se(o[0].declarations,$s)){const e=o.length>1?s(o,o.length-1,1):void 0,n=r||R(o,0,t),a=Yf(Rl(t.enclosingDeclaration)),l=Qf(o[0]);let c,d;if(3!==Up(S)&&99!==Up(S)||99===(null==l?void 0:l.impliedNodeFormat)&&l.impliedNodeFormat!==(null==a?void 0:a.impliedNodeFormat)&&(c=D(o[0],t,99),d=UA.createImportAttributes(UA.createNodeArray([UA.createImportAttribute(UA.createStringLiteral("resolution-mode"),UA.createStringLiteral("import"))]))),c||(c=D(o[0],t)),!(67108864&t.flags)&&1!==Up(S)&&c.includes("/node_modules/")){const e=c;if(3===Up(S)||99===Up(S)){const n=99===(null==a?void 0:a.impliedNodeFormat)?1:99;c=D(o[0],t,n),c.includes("/node_modules/")?c=e:d=UA.createImportAttributes(UA.createNodeArray([UA.createImportAttribute(UA.createStringLiteral("resolution-mode"),UA.createStringLiteral(99===n?"import":"require"))]))}d||(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(e))}const u=UA.createLiteralTypeNode(UA.createStringLiteral(c));if(t.tracker.trackExternalModuleSymbolOfImportTypeNode&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(o[0]),t.approximateLength+=c.length+10,!e||bd(e)){if(e){UI(nC(e)?e:e.right,void 0)}return UA.createImportTypeNode(u,d,e,n,i)}{const t=C(e),r=t.objectType.typeName;return UA.createIndexedAccessTypeNode(UA.createImportTypeNode(u,d,r,n,i),t.indexType)}}const a=s(o,o.length-1,0);if(YC(a))return a;if(i)return UA.createTypeQueryNode(a);{const e=nC(a)?a:a.right,t=HI(e);return UI(e,void 0),UA.createTypeReferenceNode(a,t)}function s(e,n,o){const i=n===e.length-1?r:R(e,n,t),a=e[n],l=e[n-1];let c;if(0===n)t.flags|=16777216,c=hl(a,t),t.approximateLength+=(c?c.length:0)+1,t.flags^=16777216;else if(l&&ss(l)){Wf(ss(l),((e,t)=>{if(Es(e,a)&&!Tu(t)&&"export="!==t)return c=Ll(t),!0}))}if(void 0===c){const r=I(a.declarations,jl);if(r&&yC(r)&&bd(r.expression)){const t=s(e,n-1,o);return bd(t)?UA.createIndexedAccessTypeNode(UA.createParenthesizedType(UA.createTypeQueryNode(t)),UA.createTypeQueryNode(r.expression)):t}c=hl(a,t)}if(t.approximateLength+=c.length+1,!(16&t.flags)&&l&&Mu(l)&&Mu(l).get(a.escapedName)&&Es(Mu(l).get(a.escapedName),a)){const t=s(e,n-1,o);return YC(t)?UA.createIndexedAccessTypeNode(t,UA.createLiteralTypeNode(UA.createStringLiteral(c))):UA.createIndexedAccessTypeNode(UA.createTypeReferenceNode(t,i),UA.createLiteralTypeNode(UA.createStringLiteral(c)))}const d=fI(UA.createIdentifier(c),16777216);if(i&&UI(d,UA.createNodeArray(i)),d.symbol=a,n>o){const t=s(e,n-1,o);return bd(t)?UA.createQualifiedName(t,d):In.fail("Impossible construct - an export of an indexed access cannot be reachable")}return d}}function w(e,t,n){const r=ta(t.enclosingDeclaration,e,788968,void 0,e,!1);return!!(r&&262144&r.flags)&&r!==n.symbol}function W(e,t){var n,r;if(4&t.flags&&t.typeParameterNames){const n=t.typeParameterNames.get(Jy(e));if(n)return n}let o=z(e.symbol,t,788968,!0);if(!(80&o.kind))return UA.createIdentifier("(Missing type parameter)");if(4&t.flags){const i=o.escapedText;let a=(null==(n=t.typeParameterNamesByTextNextNameCount)?void 0:n.get(i))||0,s=i;for(;(null==(r=t.typeParameterNamesByText)?void 0:r.has(s))||w(s,t,e);)a++,s=`${i}_${a}`;if(s!==i){const e=HI(o);o=UA.createIdentifier(s),UI(o,e)}(t.typeParameterNamesByTextNextNameCount||(t.typeParameterNamesByTextNextNameCount=new Map)).set(i,a),(t.typeParameterNames||(t.typeParameterNames=new Map)).set(Jy(e),o),(t.typeParameterNamesByText||(t.typeParameterNamesByText=new Set)).add(s)}return o}function z(e,t,n,r){const o=v(e,t,n);return!r||1===o.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function e(n,r){const o=R(n,r,t),i=n[r];0===r&&(t.flags|=16777216);const a=hl(i,t);0===r&&(t.flags^=16777216);const s=fI(UA.createIdentifier(a),16777216);o&&UI(s,UA.createNodeArray(o));return s.symbol=i,r>0?UA.createQualifiedName(e(n,r-1),s):s}(o,o.length-1)}function j(e,t,n){const r=v(e,t,n);return function e(n,r){const o=R(n,r,t),i=n[r];0===r&&(t.flags|=16777216);let a=hl(i,t);0===r&&(t.flags^=16777216);let s=a.charCodeAt(0);if(sg(s)&&se(i.declarations,$s))return UA.createStringLiteral(D(i,t));if(0===r||dA(a,A)){const t=fI(UA.createIdentifier(a),16777216);return o&&UI(t,UA.createNodeArray(o)),t.symbol=i,r>0?UA.createPropertyAccessExpression(e(n,r-1),t):t}{let t;if(91===s&&(a=a.substring(1,a.length-1),s=a.charCodeAt(0)),!sg(s)||8&i.flags?""+ +a===a&&(t=UA.createNumericLiteral(+a)):t=UA.createStringLiteral(Gv(a).replace(/\\./g,(e=>e.substring(1))),39===s),!t){const e=fI(UA.createIdentifier(a),16777216);o&&UI(e,UA.createNodeArray(o)),e.symbol=i,t=e}return UA.createElementAccessExpression(e(n,r-1),t)}}(r,r.length-1)}function V(e){const t=jl(e);if(!t)return!1;if(yC(t)){return!!(402653316&bO(t.expression).flags)}if(cD(t)){return!!(402653316&bO(t.argumentExpression).flags)}return zR(t)}function H(e){const t=jl(e);return!!(t&&zR(t)&&(t.singleQuote||!Sv(t)&&dn(xm(t,!1),"'")))}function q(e,t){const n=!!T(e.declarations)&&M(e.declarations,V),r=!!T(e.declarations)&&M(e.declarations,H),o=!!(8192&e.flags),i=function(e,t,n,r,o){const i=Ui(e).nameType;if(i){if(384&i.flags){const e=""+i.value;return zs(e,jp(S))||!r&&nA(e)?nA(e)&&dn(e,"-")?UA.createComputedPropertyName(UA.createPrefixUnaryExpression(41,UA.createNumericLiteral(-e))):rA(e,jp(S),n,r,o):UA.createStringLiteral(e,!!n)}if(8192&i.flags)return UA.createComputedPropertyName(j(i.symbol,t,111551))}}(e,t,r,n,o);if(i)return i;return rA(Ll(e.escapedName),jp(S),r,n,o)}function X(e,t){return e.declarations&&L(e.declarations,(e=>!!Ab(e)&&(!t||!!Cl(e,(e=>e===t)))))}function $(e,t){return!(4&RS(t))||!PC(e)||T(e.typeArguments)>=dm(t.target.typeParameters)}function Y(e){for(;Hi(e).fakeScopeForSignatureDeclaration;)e=e.parent;return e}function Q(e,t,n,r,o,a){if(!Gl(t)&&r){const i=X(n,Y(r));if(i&&!Ad(i)&&!CC(i)){const n=Ab(i);if(function(e,t,n){const r=JE(e);if(r===n)return!0;if(bC(t)&&t.questionToken)return hR(n,524288)===r;return!1}(n,i,t)&&$(n,t)){const t=te(e,n,o,a);if(t)return t}}}const s=e.flags;8192&t.flags&&t.symbol===n&&(!e.enclosingDeclaration||se(n.declarations,(t=>Yf(t)===Yf(e.enclosingDeclaration))))&&(e.flags|=1048576);const l=i(t,e);return e.flags=s,l}function ee(e,t,n){let r=!1;const o=SE(e);if($h(e)&&(yg(o)||bg(o.parent)||gC(o.parent)&&vg(o.parent.left)&&yg(o.parent.right)))return r=!0,{introducesError:r,node:e};const i=Zs(e),a=qa(o,i,!0,!0);if(a&&(0!==Hs(a,t.enclosingDeclaration,i,!1).accessibility?r=!0:(t.tracker.trackSymbol(a,t.enclosingDeclaration,i),null==n||n(a)),nC(e))){const n=ou(a),o=262144&a.flags?W(n,t):UA.cloneNode(e);return o.symbol=a,{introducesError:r,node:fI(lI(o,e),16777216)}}return{introducesError:r,node:e}}function te(n,r,o,a){t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();let s=!1;const l=Yf(r),c=rB(r,(function t(r){if(pM(r)||326===r.kind)return UA.createKeywordTypeNode(133);if(fM(r))return UA.createKeywordTypeNode(159);if(mM(r))return UA.createUnionTypeNode([rB(r.type,t,Gd),UA.createLiteralTypeNode(UA.createNull())]);if(hM(r))return UA.createUnionTypeNode([rB(r.type,t,Gd),UA.createKeywordTypeNode(157)]);if(_M(r))return rB(r.type,t);if(yM(r))return UA.createArrayTypeNode(rB(r.type,t,Gd));if(EM(r))return UA.createTypeLiteralNode(U(r.jsDocPropertyTags,(e=>{const o=nC(e.name)?e.name:e.name.right,a=Ol(JE(r),o.escapedText),s=a&&e.typeExpression&&JE(e.typeExpression.type)!==a?i(a,n):void 0;return UA.createPropertySignature(void 0,o,e.isBracketed||e.typeExpression&&hM(e.typeExpression.type)?UA.createToken(58):void 0,s||e.typeExpression&&rB(e.typeExpression.type,t,Gd)||UA.createKeywordTypeNode(133))})));if(PC(r)&&nC(r.typeName)&&""===r.typeName.escapedText)return lI(UA.createKeywordTypeNode(133),r);if((ND(r)||PC(r))&&eg(r))return UA.createTypeLiteralNode([UA.createIndexSignature(void 0,[UA.createParameterDeclaration(void 0,void 0,"x",void 0,rB(r.typeArguments[0],t,Gd))],rB(r.typeArguments[1],t,Gd))]);if(gM(r)){if(Hg(r)){let e;return UA.createConstructorTypeNode(void 0,oB(r.typeParameters,t,vC),Z(r.parameters,((n,r)=>n.name&&nC(n.name)&&"new"===n.name.escapedText?void(e=n.type):UA.createParameterDeclaration(void 0,c(n),d(n,r),n.questionToken,rB(n.type,t,Gd),void 0))),rB(e||r.type,t,Gd)||UA.createKeywordTypeNode(133))}return UA.createFunctionTypeNode(oB(r.typeParameters,t,vC),U(r.parameters,((e,n)=>UA.createParameterDeclaration(void 0,c(e),d(e,n),e.questionToken,rB(e.type,t,Gd),void 0))),rB(r.type,t,Gd)||UA.createKeywordTypeNode(133))}if(PC(r)&&Zh(r)&&(!$(r,JE(r))||ph(r)||_t===z_(r,788968,!0)))return lI(i(JE(r),n),r);if(P_(r)){const o=Hi(r).resolvedSymbol;return!Zh(r)||!o||(r.isTypeOf||788968&o.flags)&&T(r.typeArguments)>=dm(Sd(o))?UA.updateImportTypeNode(r,UA.updateLiteralTypeNode(r.argument,function(t,r){if(a){if(n.tracker&&n.tracker.moduleResolverHost){const r=HB(t);if(r){const t=Xv({getCanonicalFileName:an(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>n.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>n.tracker.moduleResolverHost.getCommonSourceDirectory()},r);return UA.createStringLiteral(t)}}}else if(n.tracker&&n.tracker.trackExternalModuleSymbolOfImportTypeNode){const e=$a(r,r,void 0);e&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(e)}return r}(r,r.argument.literal)),r.attributes,r.qualifier,oB(r.typeArguments,t,Gd),r.isTypeOf):lI(i(JE(r),n),r)}if(bd(r)||EE(r)){const{introducesError:e,node:t}=ee(r,n,o);if(s=s||e,t!==r)return t}l&&BC(r)&&_s(l,r.pos).line===_s(l,r.end).line&&fI(r,1);return fB(r,t,void 0);function c(e){return e.dotDotDotToken||(e.type&&yM(e.type)?UA.createToken(26):void 0)}function d(e,t){return e.name&&nC(e.name)&&"this"===e.name.escapedText?"this":c(e)?"args":`arg${t}`}}),Gd);if(!s)return c===r?yk(UA.cloneNode(r),r):c}}(),fe=Mf(),me=ki(4,"undefined");me.declarations=[];var _e=ki(1536,"globalThis",8);_e.exports=fe,_e.declarations=[],fe.set(_e.escapedName,_e);var he,ge,ye,ve=ki(4,"arguments"),Se=ki(4,"require"),Te=S.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Re=!S.verbatimModuleSyntax||!!S.importsNotUsedAsValues,Ce=0,De=0;const Ne={getNodeCount:()=>Ue(e.getSourceFiles(),((e,t)=>e+t.nodeCount),0),getIdentifierCount:()=>Ue(e.getSourceFiles(),((e,t)=>e+t.identifierCount),0),getSymbolCount:()=>Ue(e.getSourceFiles(),((e,t)=>e+t.symbolCount),m),getTypeCount:()=>f,getInstantiationCount:()=>_,getRelationCacheSizes:()=>({assignable:pi.size,identity:mi.size,subtype:di.size,strictSubtype:ui.size}),isUndefinedSymbol:e=>e===me,isArgumentsSymbol:e=>e===ve,isUnknownSymbol:e=>e===_t,getMergedSymbol:us,getDiagnostics:Az,getGlobalDiagnostics:function(){return Iz(),si.getGlobalDiagnostics()},getRecursionIdentity:ox,getUnmatchedProperties:vI,getTypeOfSymbolAtLocation:(e,t)=>{const n=Nl(t);return n?function(e,t){if(e=Ss(e),(80===t.kind||81===t.kind)&&(RE(t)&&(t=t.parent),Bh(t)&&(!my(t)||vS(t)))){const n=OA(vS(t)&&211===t.kind?FL(t,void 0,!0):gO(t));if(Ss(Hi(t).resolvedSymbol)===e)return n}if(Iy(t)&&qu(t.parent)&&Hc(t.parent))return Xc(t.parent.symbol);return CE(t)&&vS(t.parent)?od(e):cd(e)}(e,n):Rt},getTypeOfSymbol:sd,getSymbolsOfParameterPropertyDeclaration:(e,t)=>{const n=Nl(e,bC);return void 0===n?In.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(In.assert(gl(n,n.parent)),function(e,t){const n=e.parent,r=e.parent.parent,o=qi(n.locals,t,111551),i=qi(Mu(r.symbol),t,111551);if(o&&i)return[o,i];return In.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,Ml(t)))},getDeclaredTypeOfSymbol:ou,getPropertiesOfType:Hp,getPropertyOfType:(e,t)=>kf(e,Ml(t)),getPrivateIdentifierPropertyOfType:(e,t,n)=>{const r=Nl(n);if(!r)return;const o=BL(Ml(t),r);return o?HL(e,o):void 0},getTypeOfPropertyOfType:(e,t)=>Ol(e,Ml(t)),getIndexInfoOfType:(e,t)=>qf(e,0===t?jt:Vt),getIndexInfosOfType:Kf,getIndexInfosOfIndexSymbol:qm,getSignaturesOfType:wf,getIndexTypeOfType:(e,t)=>Jf(e,0===t?jt:Vt),getIndexType:e=>Jv(e),getBaseTypes:jd,getBaseTypeOfLiteralType:Ux,getWidenedType:YA,getTypeFromTypeNode:e=>{const t=Nl(e,Gd);return t?JE(t):Rt},getParameterType:HP,getParameterIdentifierInfoAtPosition:function(e,t){var n;if(324===(null==(n=e.declaration)?void 0:n.kind))return;const r=e.parameters.length-(Zz(e)?1:0);if(t<r){const n=e.parameters[t],r=jP(n);return r?{parameter:r,parameterName:n.escapedName,isRestParameter:!1}:void 0}const o=e.parameters[r]||_t,i=jP(o);if(!i)return;const a=sd(o);if(tA(a)){const e=a.target.labeledElementDeclarations,n=null==e?void 0:e[t-r],o=!!(null==n?void 0:n.dotDotDotToken);return n?(In.assert(nC(n.name)),{parameter:n.name,parameterName:n.name.escapedText,isRestParameter:o}):void 0}if(t===r)return{parameter:i,parameterName:o.escapedName,isRestParameter:!0};return},getPromisedTypeOfPromise:qO,getAwaitedType:e=>eF(e),getReturnTypeOfSignature:bm,isNullableType:NL,getNullableType:LA,getNonNullableType:PA,getNonOptionalType:OA,getTypeArguments:D_,typeToTypeNode:de.typeToTypeNode,indexInfoToIndexSignatureDeclaration:de.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:de.signatureToSignatureDeclaration,symbolToEntityName:de.symbolToEntityName,symbolToExpression:de.symbolToExpression,symbolToNode:de.symbolToNode,symbolToTypeParameterDeclarations:de.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:de.symbolToParameterDeclaration,typeParameterToDeclaration:de.typeParameterToDeclaration,getSymbolsInScope:(e,t)=>{const n=Nl(e);return n?function(e,t){if(67108864&e.flags)return[];const n=Mf();let r=!1;return o(),n.delete("this"),om(n);function o(){for(;e;){switch(Du(e)&&e.locals&&!Ki(e)&&a(e.locals,t),e.kind){case 312:if(!uP(e))break;case 267:s(ps(e).exports,2623475&t);break;case 266:a(ps(e).exports,8&t);break;case 231:e.name&&i(e.symbol,t);case 263:case 264:r||a(Mu(ps(e)),788968&t);break;case 218:e.name&&i(e.symbol,t)}th(e)&&i(ve,t),r=jb(e),e=e.parent}a(fe,t)}function i(e,t){if(gS(e)&t){const t=e.escapedName;n.has(t)||n.set(t,e)}}function a(e,t){t&&e.forEach((e=>{i(e,t)}))}function s(e,t){t&&e.forEach((e=>{Df(e,281)||Df(e,280)||"default"===e.escapedName||i(e,t)}))}}(n,t):[]},getSymbolAtLocation:e=>{const t=Nl(e);return t?Xz(t,!0):void 0},getIndexInfosAtLocation:e=>{const t=Nl(e);return t?function(e){if(nC(e)&&lD(e.parent)&&e.parent.name===e){const t=zv(e),n=gO(e.parent.expression);return J(1048576&n.flags?n.types:[n],(e=>G(Kf(e),(e=>Vf(t,e.keyType)))))}return}(t):void 0},getShorthandAssignmentValueSymbol:e=>{const t=Nl(e);return t?function(e){if(e&&304===e.kind)return qa(e.name,2208703);return}(t):void 0},getExportSpecifierLocalTargetSymbol:e=>{const t=Nl(e,MN);return t?function(e){return MN(e)?e.parent.parent.moduleSpecifier?Da(e.parent.parent,e):qa(e.propertyName||e.name,2998271):qa(e,2998271)}(t):void 0},getExportSymbolOfSymbol:e=>us(e.exportSymbol||e),getTypeAtLocation:e=>{const t=Nl(e);return t?tB(t):Rt},getTypeOfAssignmentPattern:e=>{const t=Nl(e,Ud);return t&&nB(t)||Rt},getPropertySymbolOfDestructuringAssignment:e=>{const t=Nl(e,nC);return t?function(e){const t=nB(vt(e.parent.parent,Ud));return t&&kf(t,e.escapedText)}(t):void 0},signatureToString:(e,t,n,r)=>ol(e,Nl(t),n,r),typeToString:(e,t,n)=>il(e,Nl(t),n),symbolToString:(e,t,n,r)=>rl(e,Nl(t),n,r),typePredicateToString:(e,t,n)=>ul(e,Nl(t),n),writeSignature:(e,t,n,r,o)=>ol(e,Nl(t),n,r,o),writeType:(e,t,n,r)=>il(e,Nl(t),n,r),writeSymbol:(e,t,n,r,o)=>rl(e,Nl(t),n,r,o),writeTypePredicate:(e,t,n,r)=>ul(e,Nl(t),n,r),getAugmentedPropertiesOfType:lB,getRootSymbols:function e(t){const n=function(e){if(6&mS(e))return Z(Ui(e).containingType.types,(t=>kf(t,e.escapedName)));if(33554432&e.flags){const{links:{leftSpread:t,rightSpread:n,syntheticOrigin:r}}=e;return t?[t,n]:r?[r]:yn(function(e){let t,n=e;for(;n=Ui(n).target;)t=n;return t}(e))}return}(t);return n?J(n,e):[t]},getSymbolOfExpando:vP,getContextualType:(e,t)=>{const n=Nl(e,uu);if(n)return 4&t?ze(n,(()=>JN(n,t))):JN(n,t)},getContextualTypeForObjectLiteralElement:e=>{const t=Nl(e,Bd);return t?xN(t,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,t)=>{const n=Nl(e,nu);return n&&oN(n,t)},getContextualTypeForJsxAttribute:e=>{const t=Nl(e,Bu);return t&&kN(t,void 0)},isContextSensitive:kS,getTypeOfPropertyOfContextualType:EN,getFullyQualifiedName:Ka,getResolvedSignature:(e,t,n)=>Be(e,t,n,0),getCandidateSignaturesForStringLiteralCompletions:function(e,t){const n=new Set,r=[];ze(t,(()=>Be(e,r,void 0,0)));for(const o of r)n.add(o);r.length=0,We(t,(()=>Be(e,r,void 0,0)));for(const o of r)n.add(o);return Ye(n)},getResolvedSignatureForSignatureHelp:(e,t,n)=>We(e,(()=>Be(e,t,n,16))),getExpandedParameters:Vu,hasEffectiveRestParameter:YP,containsArgumentsReference:mm,getConstantValue:e=>{const t=Nl(e,NB);return t?MB(t):void 0},isValidPropertyAccess:(e,t)=>{const n=Nl(e,Zd);return!!n&&function(e,t){switch(e.kind){case 211:return uk(e,108===e.expression.kind,t,YA(bO(e.expression)));case 166:return uk(e,!1,t,YA(bO(e.left)));case 205:return uk(e,!1,t,JE(e))}}(n,Ml(t))},isValidPropertyAccessForCompletions:(e,t,n)=>{const r=Nl(e,lD);return!!r&&dk(r,t,n)},getSignatureFromDeclaration:e=>{const t=Nl(e,Td);return t?pm(t):void 0},isImplementationOfOverload:e=>{const t=Nl(e,Td);return t?TB(t):void 0},getImmediateAliasedSymbol:jM,getAliasedSymbol:Wa,getEmitResolver:function(e,t){return Az(e,t),le},getExportsOfModule:rs,getExportsAndPropertiesOfModule:function(e){const t=rs(e),n=Za(e);if(n!==e){const e=sd(n);is(e)&&xe(t,Hp(e))}return t},forEachExportAndPropertyOfModule:function(e,t){ls(e).forEach(((e,n)=>{Ls(n)||t(e,n)}));const n=Za(e);if(n!==e){const e=sd(n);is(e)&&function(e,t){e=vf(e),3670016&e.flags&&Fp(e).members.forEach(((e,n)=>{Ps(e,n)&&t(e,n)}))}(e,((e,n)=>{t(e,n)}))}},getSymbolWalker:$W((function(e){return Tm(e)||Tt}),ym,bm,jd,Fp,sd,JI,$p,SE,D_),getAmbientModules:function(){qn||(qn=[],fe.forEach(((e,t)=>{Cz.test(t)&&qn.push(e)})));return qn},getJsxIntrinsicTagNamesAt:function(e){const t=eL(Gz.IntrinsicElements,e);return t?Hp(t):o},isOptionalParameter:e=>{const t=Nl(e,bC);return!!t&&lm(t)},tryGetMemberInModuleExports:(e,t)=>os(Ml(e),t),tryGetMemberInModuleExportsAndProperties:(e,t)=>function(e,t){const n=os(e,t);if(n)return n;const r=Za(t);if(r===t)return;const o=sd(r);return is(o)?kf(o,e):void 0}(Ml(e),t),tryFindAmbientModule:e=>sm(e,!0),tryFindAmbientModuleWithoutAugmentations:e=>sm(e,!1),getApparentType:yf,getUnionType:mv,isTypeAssignableTo:KS,createAnonymousType:Os,createSignature:Fu,createSymbol:ki,createIndexInfo:Hm,getAnyType:()=>Tt,getStringType:()=>jt,getStringLiteralType:BE,getNumberType:()=>Vt,getNumberLiteralType:GE,getBigIntType:()=>Ut,createPromiseType:gw,createArrayType:ey,getElementTypeOfArrayType:mx,getBooleanType:()=>Qt,getFalseType:e=>e?Ht:Kt,getTrueType:e=>e?qt:Jt,getVoidType:()=>en,getUndefinedType:()=>Pt,getNullType:()=>Bt,getESSymbolType:()=>Zt,getNeverType:()=>tn,getOptionalType:()=>zt,getPromiseType:()=>Ag(!1),getPromiseLikeType:()=>Cg(!1),getAsyncIterableType:()=>{const e=Pg(!1);if(e!==On)return e},isSymbolAccessible:Hs,isArrayType:cx,isTupleType:tA,isArrayLikeType:_x,isEmptyAnonymousObjectType:yT,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((t=>{const n=t.name&&(qN(t.name)?BE(vA(t.name)):zv(t.name)),r=n&&xA(n)?AA(n):void 0,o=void 0===r?void 0:Ol(e,r);return!!o&&Gx(o)&&!KS(tB(t),o)}))},getExactOptionalProperties:function(e){return Hp(e).filter((e=>BA(sd(e))))},getAllPossiblePropertiesOfTypes:function(e){const t=mv(e);if(!(1048576&t.flags))return lB(t);const n=Mf();for(const r of e)for(const{escapedName:e}of lB(r))if(!n.has(e)){const r=bf(t,e);r&&n.set(e,r)}return Ye(n.values())},getSuggestedSymbolForNonexistentProperty:nk,getSuggestionForNonexistentProperty:ok,getSuggestedSymbolForNonexistentJSXAttribute:rk,getSuggestedSymbolForNonexistentSymbol:(e,t,n)=>ik(e,Ml(t),n),getSuggestionForNonexistentSymbol:(e,t,n)=>function(e,t,n){const r=ik(e,t,n);return r&&wl(r)}(e,Ml(t),n),getSuggestedSymbolForNonexistentModule:ak,getSuggestionForNonexistentExport:function(e,t){const n=ak(e,t);return n&&wl(n)},getSuggestedSymbolForNonexistentClassMember:ek,getBaseConstraintOfType:lf,getDefaultFromTypeParameter:e=>e&&262144&e.flags?ff(e):void 0,resolveName:(e,t,n,r)=>ta(t,Ml(e),n,void 0,void 0,!1,r),getJsxNamespace:e=>Ll(bi(e)),getJsxFragmentFactory:e=>{const t=UB(e);return t&&Ll(SE(t).escapedText)},getAccessibleSymbolChain:Bs,getTypePredicateOfSignature:ym,resolveExternalModuleName:e=>{const t=Nl(e,uu);return t&&Xa(t,t,!0)},resolveExternalModuleSymbol:Za,tryGetThisTypeAt:(e,t,n)=>{const r=Nl(e);return r&&OD(r,t,n)},getTypeArgumentConstraint:e=>{const t=Nl(e,Gd);return t&&function(e){const t=yt(e.parent,ep);if(!t)return;const n=OO(t);if(!n)return;const r=$p(n[t.typeArguments.indexOf(e)]);return r&&AS(r,eS(n,PO(t,n)))}(t)},getSuggestionDiagnostics:(n,r)=>{const i=Nl(n,rM)||In.fail("Could not determine parsed source file.");if(Cx(i,S,e))return o;let a;try{return t=r,Rz(i),In.assert(!!(1&Hi(i).flags)),a=xe(a,li.getDiagnostics(i.fileName)),hF(xz(i),((e,t,n)=>{$f(e)||Tz(t,!!(33554432&e.flags))||(a||(a=[])).push({...n,category:2})})),a||o}finally{t=void 0}},runWithCancellationToken:(e,n)=>{try{return t=e,n(Ne)}finally{t=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Sd,isDeclarationVisible:yl,isPropertyAccessible:pk,getTypeOnlyAliasDeclaration:ja,getMemberOverrideModifierStatus:function(e,t,n){if(!t.name)return 0;const r=ps(e),o=ou(r),i=Pu(o),a=sd(r),s=Oy(e)&&jd(o),l=(null==s?void 0:s.length)?Pu(Pe(s),o.thisType):void 0,c=Wd(o),d=t.parent?Ub(t):Gb(t,16);return FW(e,a,c,l,o,i,d,Hb(t),jb(t),!1,wl(n))},isTypeParameterPossiblyReferenced:hS,typeHasCallOrConstructSignatures:cB};function We(e,t){if(e=Cl(e,tu)){const n=[],r=[];for(;e;){const t=Hi(e);if(n.push([t,t.resolvedSignature]),t.resolvedSignature=void 0,eA(e)){const t=Ui(ps(e)),n=t.type;r.push([t,n]),t.type=void 0}e=Cl(e.parent,tu)}const o=t();for(const[e,t]of n)e.resolvedSignature=t;for(const[e,t]of r)e.type=t;return o}return t()}function ze(e,t){const n=Cl(e,nu);if(n){let t=e;do{Hi(t).skipDirectInference=!0,t=t.parent}while(t&&t!==n)}v=!0;const r=We(e,t);if(v=!1,n){let t=e;do{Hi(t).skipDirectInference=void 0,t=t.parent}while(t&&t!==n)}return r}function Be(e,t,n,r){const o=Nl(e,nu);he=n;const i=o?hP(o,t,r):void 0;return he=void 0,i}var Ve=new Map,He=new Map,Ke=new Map,qe=new Map,Je=new Map,Xe=new Map,Qe=new Map,Ze=new Map,et=new Map,tt=new Map,ot=new Map,it=new Map,at=new Map,st=new Map,dt=new Map,ut=[],pt=new Map,ft=new Set,_t=ki(4,"unknown"),gt=ki(0,"__resolving__"),bt=new Map,Et=new Map,St=new Set,Tt=Ds(1,"any"),xt=Ds(1,"any",262144,"auto"),At=Ds(1,"any",void 0,"wildcard"),It=Ds(1,"any",void 0,"blocked string"),Rt=Ds(1,"error"),Ct=Ds(1,"unresolved"),Dt=Ds(1,"any",65536,"non-inferrable"),Nt=Ds(1,"intrinsic"),Mt=Ds(2,"unknown"),Lt=Ds(2,"unknown",void 0,"non-null"),Pt=Ds(32768,"undefined"),wt=z?Pt:Ds(32768,"undefined",65536,"widening"),Ot=Ds(32768,"undefined",void 0,"missing"),Wt=ie?Ot:Pt,zt=Ds(32768,"undefined",void 0,"optional"),Bt=Ds(65536,"null"),Gt=z?Bt:Ds(65536,"null",65536,"widening"),jt=Ds(4,"string"),Vt=Ds(8,"number"),Ut=Ds(64,"bigint"),Ht=Ds(512,"false",void 0,"fresh"),Kt=Ds(512,"false"),qt=Ds(512,"true",void 0,"fresh"),Jt=Ds(512,"true");qt.regularType=Jt,qt.freshType=qt,Jt.regularType=Jt,Jt.freshType=qt,Ht.regularType=Kt,Ht.freshType=Ht,Kt.regularType=Kt,Kt.freshType=Ht;var $t,Qt=mv([Kt,Jt]),Zt=Ds(4096,"symbol"),en=Ds(16384,"void"),tn=Ds(131072,"never"),rn=Ds(131072,"never",262144,"silent"),on=Ds(131072,"never",void 0,"implicit"),sn=Ds(131072,"never",void 0,"unreachable"),ln=Ds(67108864,"object"),pn=mv([jt,Vt]),fn=mv([jt,Vt,Zt]),gn=ee?jt:fn,vn=mv([Vt,Ut]),En=mv([jt,Vt,Qt,Ut,Bt,Pt]),Sn=Yv(["",""],[Vt]),Tn=rS((e=>{return 262144&e.flags?!(t=e).constraint&&!Xm(t)||t.constraint===Wn?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=Ms(t.symbol),t.restrictiveInstantiation.constraint=Wn,t.restrictiveInstantiation):e;var t}),(()=>"(restrictive mapper)")),xn=rS((e=>262144&e.flags?At:e),(()=>"(permissive mapper)")),An=Ds(131072,"never",void 0,"unique literal"),Rn=rS((e=>262144&e.flags?An:e),(()=>"(unique literal mapper)")),Cn=rS((e=>(!$t||e!==Gn&&e!==jn&&e!==Vn||$t(!0),e)),(()=>"(unmeasurable reporter)")),Dn=rS((e=>(!$t||e!==Gn&&e!==jn&&e!==Vn||$t(!1),e)),(()=>"(unreliable reporter)")),Nn=Os(void 0,b,o,o,o),Mn=Os(void 0,b,o,o,o);Mn.objectFlags|=2048;var Ln=ki(2048,"__type");Ln.members=Mf();var kn=Os(Ln,b,o,o,o),Pn=Os(void 0,b,o,o,o),wn=z?mv([Pt,Bt,Pn]):Mt,On=Os(void 0,b,o,o,o);On.instantiations=new Map;var Fn=Os(void 0,b,o,o,o);Fn.objectFlags|=262144;var Wn=Os(void 0,b,o,o,o),zn=Os(void 0,b,o,o,o),Bn=Os(void 0,b,o,o,o),Gn=Ms(),jn=Ms();jn.constraint=Gn;var Vn=Ms(),Un=Ms(),Hn=Ms();Hn.constraint=Un;var Kn,qn,Jn,Xn,$n,Yn,Qn,Zn,er,tr,nr,rr,or,ir,ar,sr,lr,cr,dr,ur,pr,fr,mr,_r,hr,gr,yr,vr,Sr,Tr,xr,Ar,Ir,Rr,Cr,Dr,Nr,Mr,Lr,Pr,wr,Or,Fr,Wr,zr,Br,Gr,jr,Vr,Ur,Hr,Kr,qr,Jr,Xr,$r,Yr,Qr,Zr,eo,to,no,ro,oo=cm(1,"<<unresolved>>",0,Tt),io=Fu(void 0,void 0,void 0,o,Tt,void 0,0,0),ao=Fu(void 0,void 0,void 0,o,Rt,void 0,0,0),so=Fu(void 0,void 0,void 0,o,Tt,void 0,0,0),lo=Fu(void 0,void 0,void 0,o,rn,void 0,0,0),co=Hm(Vt,jt,!0),uo=new Map,po={get yieldType(){return In.fail("Not supported")},get returnType(){return In.fail("Not supported")},get nextType(){return In.fail("Not supported")}},fo=ZF(Tt,Tt,Tt),mo=ZF(Tt,Tt,Mt),_o=ZF(tn,Tt,Pt),ho={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Cr||(Cr=ng("AsyncIterator",3,e))||On},getGlobalIterableType:Pg,getGlobalIterableIteratorType:function(e){return Dr||(Dr=ng("AsyncIterableIterator",1,e))||On},getGlobalGeneratorType:function(e){return Nr||(Nr=ng("AsyncGenerator",3,e))||On},resolveIterationType:(e,t)=>eF(e,t,Oa.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:Oa.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:Oa.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:Oa.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},go={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Sr||(Sr=ng("Iterator",3,e))||On},getGlobalIterableType:Og,getGlobalIterableIteratorType:function(e){return Tr||(Tr=ng("IterableIterator",1,e))||On},getGlobalGeneratorType:function(e){return xr||(xr=ng("Generator",3,e))||On},resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:Oa.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:Oa.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:Oa.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},yo=new Map,vo=[],bo=new Map,Eo=0,So=0,To=0,xo=!1,Ao=0,Io=[],Ro=[],Co=[],Do=0,No=[],Mo=[],Lo=0,ko=BE(""),Po=GE(0),Oo=jE({negative:!1,base10Value:"0"}),Fo=[],Wo=[],zo=[],Bo=0,Go=!1,jo=0,Vo=10,Uo=[],Ho=[],Ko=[],qo=[],Jo=[],Xo=[],$o=[],Yo=[],Qo=[],Zo=[],ei=[],ti=[],ni=[],ri=[],oi=[],ii=[],ai=[],si=Mv(),li=Mv(),ci=mv(Ye(wz.keys(),BE)),di=new Map,ui=new Map,pi=new Map,fi=new Map,mi=new Map,_i=new Map,hi=Mf();hi.set(me.escapedName,me);var gi=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===S.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(const o of e.getSourceFiles())VW(o,S);let t;Kn=new Map;for(const o of e.getSourceFiles())if(!o.redirectInfo){if(!T_(o)){const e=o.locals.get("globalThis");if(null==e?void 0:e.declarations)for(const t of e.declarations)si.add(d_(t,Oa.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));ji(fe,o.locals)}if(o.jsGlobalAugmentations&&ji(fe,o.jsGlobalAugmentations),o.patternAmbientModules&&o.patternAmbientModules.length&&(Jn=ce(Jn,o.patternAmbientModules)),o.moduleAugmentations.length&&(t||(t=[])).push(o.moduleAugmentations),o.symbol&&o.symbol.globalExports){o.symbol.globalExports.forEach(((e,t)=>{fe.has(t)||fe.set(t,e)}))}}if(t)for(const e of t)for(const t of e)Bm(t.parent)&&Vi(t);n=fe,r=hi,i=Oa.Declaration_name_conflicts_with_built_in_global_identifier_0,void r.forEach(((e,t)=>{const r=n.get(t);r?x(r.declarations,function(e,t){return n=>si.add(d_(n,t,e))}(Ll(t),i)):n.set(t,e)})),Ui(me).type=wt,Ui(ve).type=ng("IArguments",0,!0),Ui(_t).type=Rt,Ui(_e).type=Ns(16,_e),er=ng("Array",1,!0),$n=ng("Object",0,!0),Yn=ng("Function",0,!0),Qn=H&&ng("CallableFunction",0,!0)||Yn,Zn=H&&ng("NewableFunction",0,!0)||Yn,nr=ng("String",0,!0),rr=ng("Number",0,!0),or=ng("Boolean",0,!0),ir=ng("RegExp",0,!0),sr=ey(Tt),(lr=ey(xt))===Nn&&(lr=Os(void 0,b,o,o,o));var n,r,i;if(tr=zg("ReadonlyArray",1)||er,cr=tr?Jg(tr,[Tt]):sr,ar=zg("ThisType",1),t)for(const e of t)for(const t of e)Bm(t.parent)||Vi(t);Kn.forEach((({firstFile:e,secondFile:t,conflictingSymbols:n})=>{if(n.size<8)n.forEach((({isBlockScoped:e,firstFileLocations:t,secondFileLocations:n},r)=>{const o=e?Oa.Cannot_redeclare_block_scoped_variable_0:Oa.Duplicate_identifier_0;for(const i of t)Gi(i,o,r,n);for(const i of n)Gi(i,o,r,t)}));else{const r=Ye(n.keys()).join(", ");si.add(xx(d_(e,Oa.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),d_(t,Oa.Conflicts_are_in_this_file))),si.add(xx(d_(t,Oa.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),d_(e,Oa.Conflicts_are_in_this_file)))}})),Kn=void 0}(),Ne;function yi(e){return e?dt.get(e):void 0}function vi(e,t){return e&&dt.set(e,t),t}function bi(e){if(e){const t=Yf(e);if(t)if(GN(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;const n=t.pragmas.get("jsxfrag");if(n){const e=mt(n)?n[0]:n;if(t.localJsxFragmentFactory=cP(e.arguments.factory,A),rB(t.localJsxFragmentFactory,Si,bd),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=SE(t.localJsxFragmentFactory).escapedText}const r=UB(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=SE(r).escapedText}else{const e=Ei(t);if(e)return t.localJsxNamespace=e}}return no||(no="React",S.jsxFactory?(rB(ro=cP(S.jsxFactory,A),Si),ro&&(no=SE(ro).escapedText)):S.reactNamespace&&(no=Ml(S.reactNamespace))),ro||(ro=UA.createQualifiedName(UA.createIdentifier(Ll(no)),"createElement")),no}function Ei(e){if(e.localJsxNamespace)return e.localJsxNamespace;const t=e.pragmas.get("jsx");if(t){const n=mt(t)?t[0]:t;if(e.localJsxFactory=cP(n.arguments.factory,A),rB(e.localJsxFactory,Si,bd),e.localJsxFactory)return e.localJsxNamespace=SE(e.localJsxFactory).escapedText}}function Si(e){return Bx(e,-1,-1),fB(e,Si,void 0)}function Ti(e,t,n,...r){const o=Ai(t,n,...r);return o.skippedOn=e,o}function xi(e,t,...n){return e?d_(e,t,...n):sT(t,...n)}function Ai(e,t,...n){const r=xi(e,t,...n);return si.add(r),r}function Ii(e,t){e?si.add(t):li.add({...t,category:2})}function Ri(e,t,n,...r){if(t.pos<0||t.end<0){if(!e)return;const o=Yf(t);Ii(e,"message"in n?iT(o,0,0,n,...r):g_(o,n))}else Ii(e,"message"in n?d_(t,n,...r):f_(Yf(t),t,n))}function Ci(e,t,n,...r){const o=Ai(e,n,...r);if(t){xx(o,d_(e,Oa.Did_you_forget_to_use_await))}return o}function Di(e,t){const n=Array.isArray(e)?x(e,uc):uc(e);return n&&xx(t,d_(n,Oa.The_declaration_was_marked_as_deprecated_here)),li.add(t),t}function Ni(e){const t=ms(e);return t&&T(e.declarations)>1?64&t.flags?se(e.declarations,Mi):M(e.declarations,Mi):!!e.valueDeclaration&&Mi(e.valueDeclaration)||T(e.declarations)&&M(e.declarations,Mi)}function Mi(e){return!!(536870912&NG(e))}function Li(e,t,n){return Di(t,d_(e,Oa._0_is_deprecated,n))}function ki(e,t,n){m++;const r=new d(33554432|e,t);return r.links=new Bz,r.links.checkFlags=n||0,r}function Pi(e,t){const n=ki(1,e);return n.links.type=t,n}function wi(e,t){const n=ki(4,e);return n.links.type=t,n}function Oi(e){let t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function Fi(e,t){t.mergeId||(t.mergeId=Lz,Lz++),Uo[t.mergeId]=e}function Wi(e){const t=ki(e.flags,e.escapedName);return t.declarations=e.declarations?e.declarations.slice():[],t.parent=e.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),e.members&&(t.members=new Map(e.members)),e.exports&&(t.exports=new Map(e.exports)),Fi(t,e),t}function zi(e,t,n=!1){if(!(e.flags&Oi(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){const n=Fa(e);if(n===_t)return t;e=Wi(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&wg(e,t.valueDeclaration),xe(e.declarations,t.declarations),t.members&&(e.members||(e.members=Mf()),ji(e.members,t.members,n)),t.exports&&(e.exports||(e.exports=Mf()),ji(e.exports,t.exports,n)),n||Fi(e,t)}else if(1024&e.flags)e!==_e&&Ai(t.declarations&&jl(t.declarations[0]),Oa.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,rl(e));else{const n=!!(384&e.flags||384&t.flags),o=!!(2&e.flags||2&t.flags),i=n?Oa.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:o?Oa.Cannot_redeclare_block_scoped_variable_0:Oa.Duplicate_identifier_0,a=t.declarations&&Yf(t.declarations[0]),s=e.declarations&&Yf(e.declarations[0]),l=Zf(a,S.checkJs),c=Zf(s,S.checkJs),d=rl(t);if(a&&s&&Kn&&!n&&a!==s){const n=-1===Ia(a.path,s.path)?a:s,i=n===a?s:a,u=ne(Kn,`${n.path}|${i.path}`,(()=>({firstFile:n,secondFile:i,conflictingSymbols:new Map}))),p=ne(u.conflictingSymbols,d,(()=>({isBlockScoped:o,firstFileLocations:[],secondFileLocations:[]})));l||r(p.firstFileLocations,t),c||r(p.secondFileLocations,e)}else l||Bi(t,i,d,e),c||Bi(e,i,d,t)}return e;function r(e,t){if(t.declarations)for(const n of t.declarations)Ae(e,n)}}function Bi(e,t,n,r){x(e.declarations,(e=>{Gi(e,t,n,r.declarations)}))}function Gi(e,t,n,r){const i=(fg(e,!1)?_g(e):jl(e))||e,a=function(e,t,...n){const r=e?d_(e,t,...n):sT(t,...n);return si.lookup(r)||(si.add(r),r)}(i,t,n);for(const s of r||o){const e=(fg(s,!1)?_g(s):jl(s))||s;if(e===i)continue;a.relatedInformation=a.relatedInformation||[];const t=d_(e,Oa._0_was_also_declared_here,n),r=d_(e,Oa.and_here);T(a.relatedInformation)>=5||se(a.relatedInformation,(e=>0===pT(e,r)||0===pT(e,t)))||xx(a,T(a.relatedInformation)?r:t)}}function ji(e,t,n=!1){t.forEach(((t,r)=>{const o=e.get(r);e.set(r,o?zi(o,t,n):us(t))}))}function Vi(e){var t,n,r;const o=e.parent;if((null==(t=o.symbol.declarations)?void 0:t[0])===o)if(Bm(o))ji(fe,o.symbol.exports);else{let t=$a(e,e,33554432&e.parent.parent.flags?void 0:Oa.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!t)return;if(t=Za(t),1920&t.flags)if(se(Jn,(e=>t===e.symbol))){const n=zi(o.symbol,t,!0);Xn||(Xn=new Map),Xn.set(e.text,n)}else{if((null==(n=t.exports)?void 0:n.get("__export"))&&(null==(r=o.symbol.exports)?void 0:r.size)){const e=Nu(t,"resolvedExports");for(const[n,r]of Ye(o.symbol.exports.entries()))e.has(n)&&!t.exports.has(n)&&zi(e.get(n),r)}zi(t,o.symbol)}else Ai(e,Oa.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else In.assert(o.symbol.declarations.length>1)}function Ui(e){if(33554432&e.flags)return e.links;const t=Kz(e);return Ho[t]??(Ho[t]=new Bz)}function Hi(e){const t=Hz(e);return Ko[t]||(Ko[t]=new Uz)}function Ki(e){return 312===e.kind&&!T_(e)}function qi(e,t,n){if(n){const r=us(e.get(t));if(r){if(In.assert(0===(1&mS(r)),"Should never get an instantiated symbol here."),r.flags&n)return r;if(2097152&r.flags){if(za(r)&n)return r}}}}function Xi(t,n){const r=Yf(t),o=Yf(n),i=n_(t);if(r!==o){if(R&&(r.externalModuleIndicator||o.externalModuleIndicator)||!ob(S)||Eb(n)||33554432&t.flags)return!0;if(a(n,t))return!0;const i=e.getSourceFiles();return i.indexOf(r)<=i.indexOf(o)}if(16777216&n.flags||Eb(n)||$I(n))return!0;if(t.pos<=n.pos&&(!TC(t)||!Rh(n.parent)||t.initializer||t.exclamationToken)){if(208===t.kind){const e=jy(n,208);return e?Cl(e,iD)!==Cl(t,iD)||t.pos<e.pos:Xi(jy(t,260),n)}return 260===t.kind?!function(e,t){switch(e.parent.parent.kind){case 243:case 248:case 250:if(fa(t,e,i))return!0}const n=e.parent.parent;return vu(n)&&fa(t,n.expression,i)}(t,n):Md(t)?!Cl(n,(e=>yC(e)&&e.parent.parent===t)):TC(t)?!s(t,n,!1):!gl(t,t.parent)||!(N&&_h(t)===_h(n)&&a(n,t))}return!!(281===n.parent.kind||277===n.parent.kind&&n.parent.isExportEquals)||(!(277!==n.kind||!n.isExportEquals)||!!a(n,t)&&(!N||!_h(t)||!TC(t)&&!gl(t,t.parent)||!s(t,n,!0)));function a(e,t){return!!Cl(e,(n=>{if(n===i)return"quit";if(Td(n))return!0;if(IC(n))return t.pos<e.pos;const r=yt(n.parent,TC);if(r){if(r.initializer===n)if(jb(n.parent)){if(174===t.kind)return!0;if(TC(t)&&_h(e)===_h(t)){const e=t.name;if(nC(e)||rC(e)){if(function(e,t,n,r,o){for(const i of n)if(i.pos>=r&&i.pos<=o){const n=UA.createPropertyAccessExpression(UA.createThis(),e);Vx(n.expression,n),Vx(n,i),n.flowNode=i.returnFlowNode;if(!vT(fC(n,t,kA(t))))return!0}return!1}(e,sd(ps(t)),G(t.parent.members,IC),t.parent.pos,n.pos))return!0}}}else{if(!(172===t.kind&&!jb(t))||_h(e)!==_h(t))return!0}}return!1}))}function s(e,t,n){if(t.end>e.end)return!1;return void 0===Cl(t,(t=>{if(t===e)return"quit";switch(t.kind){case 219:return!0;case 172:return!n||!(TC(e)&&t.parent===e.parent||gl(e,e.parent)&&t.parent===e.parent.parent)||"quit";case 241:switch(t.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}}))}}function Zi(e,t,n){const r=jp(S),o=t;if(bC(n)&&o.body&&e.valueDeclaration&&e.valueDeclaration.pos>=o.body.pos&&e.valueDeclaration.end<=o.body.end&&r>=2){const e=Hi(o);return void 0===e.declarationRequiresScopeChange&&(e.declarationRequiresScopeChange=x(o.parameters,(function(e){return i(e.name)||!!e.initializer&&i(e.initializer)}))||!1),!e.declarationRequiresScopeChange}return!1;function i(e){switch(e.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return i(e.name);case 172:return Vb(e)?!N:i(e.name);default:return zc(e)||wc(e)?r<7:iD(e)&&e.dotDotDotToken&&rD(e.parent)?r<4:!Gd(e)&&(oP(e,i)||!1)}}}function ea(e){return pu(e)&&Bc(e.type)||zM(e)&&Bc(e.typeExpression)}function ta(e,t,n,r,o,i,a=!1,s=!0){return na(e,t,n,r,o,i,a,s,qi)}function na(e,t,n,r,o,i,a,s,c){var d,u,p;const f=e;let m,_,h,g,y,v=!1;const E=e;let x,A=!1;e:for(;e;){if("const"===t&&ea(e))return;if(Ru(e)&&_&&e.name===_&&(_=e,e=e.parent),Du(e)&&e.locals&&!Ki(e)&&(m=c(e.locals,t,n))){let t=!0;if(Td(e)&&_&&_!==e.body?(n&m.flags&788968&&327!==_.kind&&(t=!!(262144&m.flags)&&(_===e.type||169===_.kind||348===_.kind||349===_.kind||168===_.kind)),n&m.flags&3&&(Zi(m,e,_)?t=!1:1&m.flags&&(t=169===_.kind||_===e.type&&!!Cl(m.valueDeclaration,bC)))):194===e.kind&&(t=_===e.trueType),t)break e;m=void 0}switch(v=v||ia(e,_),e.kind){case 312:if(!T_(e))break;A=!0;case 267:const o=(null==(d=ps(e))?void 0:d.exports)||b;if(312===e.kind||pN(e)&&33554432&e.flags&&!Bm(e)){if(m=o.get("default")){const e=PE(m);if(e&&m.flags&n&&e.escapedName===t)break e;m=void 0}const e=o.get(t);if(e&&2097152===e.flags&&(Df(e,281)||Df(e,280)))break}if("default"!==t&&(m=c(o,t,2623475&n))){if(!rM(e)||!e.commonJsModuleIndicator||(null==(u=m.declarations)?void 0:u.some(Kg)))break e;m=void 0}break;case 266:if(m=c((null==(p=ps(e))?void 0:p.exports)||b,t,8&n)){!r||!Kp(S)||33554432&e.flags||Yf(e)===Yf(m.valueDeclaration)||Ai(E,Oa.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ll(t),Te,`${Ll(fs(e).escapedName)}.${Ll(t)}`);break e}break;case 172:if(!jb(e)){const r=As(e.parent);r&&r.locals&&c(r.locals,t,111551&n)&&(In.assertNode(e,TC),g=e)}break;case 263:case 231:case 264:if(m=c(ps(e).members||b,t,788968&n)){if(!la(m,e)){m=void 0;break}if(_&&jb(_))return void(r&&Ai(E,Oa.Static_members_cannot_reference_class_type_parameters));break e}if(CD(e)&&32&n){const n=e.name;if(n&&t===n.escapedText){m=e.symbol;break e}}break;case 233:if(_===e.expression&&96===e.parent.token){const o=e.parent.parent;if(Md(o)&&(m=c(ps(o).members,t,788968&n)))return void(r&&Ai(E,Oa.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 167:if(x=e.parent.parent,(Md(x)||264===x.kind)&&(m=c(ps(x).members,t,788968&n)))return void(r&&Ai(E,Oa.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type));break;case 219:if(jp(S)>=2)break;case 174:case 176:case 177:case 178:case 262:if(3&n&&"arguments"===t){m=ve;break e}break;case 218:if(3&n&&"arguments"===t){m=ve;break e}if(16&n){const n=e.name;if(n&&t===n.escapedText){m=e.symbol;break e}}break;case 170:e.parent&&169===e.parent.kind&&(e=e.parent),e.parent&&(Nd(e.parent)||263===e.parent.kind)&&(e=e.parent);break;case 353:case 345:case 347:const i=cy(e);i&&(e=i.parent);break;case 169:_&&(_===e.initializer||_===e.name&&Vd(_))&&(y||(y=e));break;case 208:_&&(_===e.initializer||_===e.name&&Vd(_))&&vv(e)&&!y&&(y=e);break;case 195:if(262144&n){const n=e.typeParameter.name;if(n&&t===n.escapedText){m=e.typeParameter.symbol;break e}}break;case 281:_&&_===e.propertyName&&e.parent.parent.moduleSpecifier&&(e=e.parent.parent.parent)}aa(e)&&(h=e),_=e,e=BM(e)?oy(e)||e.parent:(OM(e)||FM(e))&&ay(e)||e.parent}if(!i||!m||h&&m===h.symbol||(m.isReferenced|=n),!m){if(_&&(In.assertNode(_,rM),_.commonJsModuleIndicator&&"exports"===t&&n&_.symbol.flags))return _.symbol;a||(m=c(fe,t,n))}if(!m&&f&&$h(f)&&f.parent&&tg(f.parent,!1))return Se;function I(){return!(!g||N)&&(Ai(E,E&&g.type&&tl(g.type,E.pos)?Oa.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Oa.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,o_(g.name),sa(o)),!0)}if(m){if(!r||!I())return r&&l((()=>{var e;if(E&&(2&n||(32&n||384&n)&&111551===(111551&n))){const e=Ss(m);(2&e.flags||32&e.flags||384&e.flags)&&function(e,t){var n;if(In.assert(!!(2&e.flags||32&e.flags||384&e.flags)),67108881&e.flags&&32&e.flags)return;const r=null==(n=e.declarations)?void 0:n.find((e=>Lm(e)||Md(e)||266===e.kind));if(void 0===r)return In.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(33554432&r.flags)&&!Xi(r,t)){let n;const o=o_(jl(r));2&e.flags?n=Ai(t,Oa.Block_scoped_variable_0_used_before_its_declaration,o):32&e.flags?n=Ai(t,Oa.Class_0_used_before_its_declaration,o):256&e.flags?n=Ai(t,Oa.Enum_0_used_before_its_declaration,o):(In.assert(!!(128&e.flags)),Kp(S)&&(n=Ai(t,Oa.Enum_0_used_before_its_declaration,o))),n&&xx(n,d_(r,Oa._0_is_declared_here,o))}}(e,E)}if(m&&A&&111551===(111551&n)&&!(16777216&f.flags)){const e=us(m);T(e.declarations)&&M(e.declarations,(e=>_N(e)||rM(e)&&!!e.symbol.globalExports))&&Ri(!S.allowUmdGlobalAccess,E,Oa._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ll(t))}if(m&&y&&!v&&111551===(111551&n)){const e=us(ku(m)),t=bv(y);e===ps(y)?Ai(E,Oa.Parameter_0_cannot_reference_itself,o_(y.name)):e.valueDeclaration&&e.valueDeclaration.pos>y.pos&&t.parent.locals&&c(t.parent.locals,e.escapedName,n)===e&&Ai(E,Oa.Parameter_0_cannot_reference_identifier_1_declared_after_it,o_(y.name),o_(E))}if(m&&E&&111551&n&&2097152&m.flags&&!(111551&m.flags)&&!wx(E)){const e=ja(m,111551);if(e){const n=281===e.kind||278===e.kind||280===e.kind?Oa._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:Oa._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=Ll(t);oa(Ai(E,n,r),e,r)}}if(S.isolatedModules&&m&&A&&111551===(111551&n)){const r=c(fe,t,n)===m&&rM(_)&&_.locals&&c(_.locals,t,-111552);if(r){const n=null==(e=r.declarations)?void 0:e.find((e=>276===e.kind||273===e.kind||274===e.kind||271===e.kind));n&&!ad(n)&&Ai(n,Oa.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ll(t))}}})),m}else r&&l((()=>{if(!E||331!==E.parent.kind&&!function(e,t,n){if(!nC(e)||e.escapedText!==t||Nz(e)||Eb(e))return!1;const r=vh(e,!1,!1);let o=r;for(;o;){if(Md(o.parent)){const i=ps(o.parent);if(!i)break;if(kf(sd(i),t))return Ai(e,Oa.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,sa(n),rl(i)),!0;if(o===r&&!jb(o)){if(kf(ou(i).thisType,t))return Ai(e,Oa.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,sa(n)),!0}}o=o.parent}return!1}(E,t,o)&&!I()&&!ca(E)&&!function(e,t,n){const r=1920|($h(e)?111551:0);if(n===r){const n=Fa(ta(e,t,788968&~r,void 0,void 0,!1)),o=e.parent;if(n){if(gC(o)){In.assert(o.left===e,"Should only be resolving left side of qualified name as a namespace");const r=o.right.escapedText;if(kf(ou(n),r))return Ai(o,Oa.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ll(t),Ll(r)),!0}return Ai(e,Oa._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ll(t)),!0}}return!1}(E,t,n)&&!function(e,t){if(pa(t)&&281===e.parent.kind)return Ai(e,Oa.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0;return!1}(E,t)&&!function(e,t,n){if(111127&n){if(Fa(ta(e,t,1024,void 0,void 0,!1)))return Ai(e,Oa.Cannot_use_namespace_0_as_a_value,Ll(t)),!0}else if(788544&n){if(Fa(ta(e,t,1536,void 0,void 0,!1)))return Ai(e,Oa.Cannot_use_namespace_0_as_a_type,Ll(t)),!0}return!1}(E,t,n)&&!function(e,t,n){if(111551&n){if(pa(t)){const n=e.parent.parent;if(n&&n.parent&&$N(n)){const r=n.token,o=n.parent.kind;264===o&&96===r?Ai(e,Oa.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ll(t)):263===o&&96===r?Ai(e,Oa.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ll(t)):263===o&&119===r&&Ai(e,Oa.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ll(t))}else Ai(e,Oa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ll(t));return!0}const n=Fa(ta(e,t,788544,void 0,void 0,!1)),r=n&&za(n);if(n&&void 0!==r&&!(111551&r)){const r=Ll(t);return!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?!function(e,t){const n=Cl(e.parent,(e=>!yC(e)&&!SC(e)&&(WC(e)||"quit")));if(n&&1===n.members.length){const e=ou(t);return!!(1048576&e.flags)&&Bw(e,384,!0)}return!1}(e,n)?Ai(e,Oa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r):Ai(e,Oa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,"K"===r?"P":"K"):Ai(e,Oa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,r),!0}}return!1}(E,t,n)&&!function(e,t,n){if(788584&n){const n=Fa(ta(e,t,111127,void 0,void 0,!1));if(n&&!(1920&n.flags))return Ai(e,Oa._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ll(t)),!0}return!1}(E,t,n)){let e,i;if(o&&(i=function(e){const t=sa(e),n=fp().get(t);return n&&we(n.keys())}(o),i&&Ai(E,r,sa(o),i)),!i&&s&&jo<Vo){e=ik(f,t,n);if((null==e?void 0:e.valueDeclaration)&&Pm(e.valueDeclaration)&&Bm(e.valueDeclaration)&&(e=void 0),e){const t=rl(e),r=JL(f,e,!1),i=1920===n||o&&"string"!==typeof o&&Sv(o)?Oa.Cannot_find_namespace_0_Did_you_mean_1:r?Oa.Could_not_find_name_0_Did_you_mean_1:Oa.Cannot_find_name_0_Did_you_mean_1,a=xi(E,i,sa(o),t);Ii(!r,a),e.valueDeclaration&&xx(a,d_(e.valueDeclaration,Oa._0_is_declared_here,t))}}e||i||!o||Ai(E,r,sa(o)),jo++}}))}function oa(e,t,n){return t?xx(e,d_(t,281===t.kind||278===t.kind||280===t.kind?Oa._0_was_exported_here:Oa._0_was_imported_here,n)):e}function ia(e,t){return 219!==e.kind&&218!==e.kind?FC(e)||(Ad(e)||172===e.kind&&!jb(e))&&(!t||t!==e.name):(!t||t!==e.name)&&(!(!e.asteriskToken&&!Gb(e,1024))||!xh(e))}function aa(e){switch(e.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function sa(e){return ht(e)?Ll(e):o_(e)}function la(e,t){if(e.declarations)for(const n of e.declarations)if(168===n.kind){if((BM(n.parent)?ly(n.parent):n.parent)===t)return!(BM(n.parent)&&L(n.parent.parent.tags,Kg))}return!1}function ca(e){const t=da(e);return!(!t||!qa(t,64,!0))&&(Ai(e,Oa.Cannot_extend_an_interface_0_Did_you_mean_implements,xm(t)),!0)}function da(e){switch(e.kind){case 80:case 211:return e.parent?da(e.parent):void 0;case 233:if(EE(e.expression))return e.expression;default:return}}function pa(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function fa(e,t,n){return!!t&&!!Cl(e,(e=>e===t||!!(e===n||Td(e)&&(!xh(e)||3&Zy(e)))&&"quit"))}function _a(e){switch(e.kind){case 271:return e;case 273:return e.parent;case 274:return e.parent.parent;case 276:return e.parent.parent.parent;default:return}}function ha(e){return e.declarations&&k(e.declarations,ga)}function ga(e){return 271===e.kind||270===e.kind||273===e.kind&&!!e.name||274===e.kind||280===e.kind||276===e.kind||281===e.kind||277===e.kind&&ky(e)||TD(e)&&2===Eg(e)&&ky(e)||wS(e)&&TD(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&ya(e.parent.right)||304===e.kind||303===e.kind&&ya(e.initializer)||260===e.kind&&rg(e)||208===e.kind&&rg(e.parent.parent)}function ya(e){return Ly(e)||_D(e)&&gP(e)}function va(e,t){const n=Ma(e);if(n){const e=zS(n.expression).arguments[0];return nC(n.name)?Fa(kf(hm(e),n.name.escapedText)):void 0}if(iN(e)||283===e.moduleReference.kind){const t=Xa(e,Kh(e)||Hh(e)),n=Za(t);return Ba(e,t,n,!1),n}const r=Ha(e.moduleReference,t);return function(e,t){if(Ba(e,void 0,t,!1)&&!e.isTypeOnly){const t=ja(ps(e)),n=281===t.kind||278===t.kind,r=n?Oa.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:Oa.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,o=n?Oa._0_was_exported_here:Oa._0_was_imported_here,i=278===t.kind?"*":Ll(t.name.escapedText);xx(Ai(e.moduleReference,r),d_(t,o,i))}}(e,r),r}function ba(e,t,n,r){const o=e.exports.get("export="),i=o?kf(sd(o),t,!0):e.exports.get(t),a=Fa(i,r);return Ba(n,i,a,!1),a}function Ea(e){return CN(e)&&!e.isExportEquals||Gb(e,2048)||MN(e)||AN(e)}function Sa(t){return np(t)?e.getModeForUsageLocation(Yf(t),t):void 0}function Ta(e,t){return 99===e&&1===t}function xa(e){return 99===Sa(e)&&Yt(e.text,".json")}function Aa(e,t,n,r){const o=e&&Sa(r);if(e&&void 0!==o&&100<=R&&R<=199){const t=Ta(o,e.impliedNodeFormat);if(99===o||t)return t}if(!O)return!1;if(!e||e.isDeclarationFile){const e=ba(t,"default",void 0,!0);return(!e||!se(e.declarations,Ea))&&!ba(t,Ml("__esModule"),void 0,n)}return Jh(e)?"object"!==typeof e.externalModuleIndicator&&!ba(t,Ml("__esModule"),void 0,n):ns(t)}function Ra(e,t,n){var r;let o;o=Wm(e)?e:ba(e,"default",t,n);const i=null==(r=e.declarations)?void 0:r.find(rM),a=Ca(t);if(!a)return o;const s=xa(a),l=Aa(i,e,n,a);if(o||l||s){if(l||s){const r=Za(e,n)||Fa(e,n);return Ba(t,e,r,!1),r}}else if(ns(e)&&!O){const n=R>=5?"allowSyntheticDefaultImports":"esModuleInterop",r=e.exports.get("export=").valueDeclaration,o=Ai(t.name,Oa.Module_0_can_only_be_default_imported_using_the_1_flag,rl(e),n);r&&xx(o,d_(r,Oa.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,n))}else yN(t)?function(e,t){var n,r,o;if(null==(n=e.exports)?void 0:n.has(t.symbol.escapedName))Ai(t.name,Oa.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,rl(e),rl(t.symbol));else{const n=Ai(t.name,Oa.Module_0_has_no_default_export,rl(e)),i=null==(r=e.exports)?void 0:r.get("__export");if(i){const e=null==(o=i.declarations)?void 0:o.find((e=>{var t,n;return!!(DN(e)&&e.moduleSpecifier&&(null==(n=null==(t=Xa(e,e.moduleSpecifier))?void 0:t.exports)?void 0:n.has("default")))}));e&&xx(n,d_(e,Oa.export_Asterisk_does_not_re_export_a_default))}}}(e,t):Na(e,e,t,id(t)&&t.propertyName||t.name);return Ba(t,o,void 0,!1),o}function Ca(e){switch(e.kind){case 273:return e.parent.moduleSpecifier;case 271:return wN(e.moduleReference)?e.moduleReference.expression:void 0;case 274:case 281:return e.parent.parent.moduleSpecifier;case 276:return e.parent.parent.parent.moduleSpecifier;default:return In.assertNever(e)}}function Da(e,t,n=!1){var r;const o=Kh(e)||e.moduleSpecifier,i=Xa(e,o),a=!lD(t)&&t.propertyName||t.name;if(!nC(a))return;const s=es(i,o,!1,"default"===a.escapedText&&O);if(s&&a.escapedText){if(Wm(i))return i;let l;l=i&&i.exports&&i.exports.get("export=")?kf(sd(s),a.escapedText,!0):function(e,t){if(3&e.flags){const n=e.valueDeclaration.type;if(n)return Fa(kf(JE(n),t))}}(s,a.escapedText),l=Fa(l,n);let c=function(e,t,n,r){var o;if(1536&e.flags){const i=ss(e).get(t.escapedText),a=Fa(i,r);return Ba(n,i,a,!1,null==(o=Ui(e).typeOnlyExportStarMap)?void 0:o.get(t.escapedText),t.escapedText),a}}(s,a,t,n);if(void 0===c&&"default"===a.escapedText){const e=null==(r=i.declarations)?void 0:r.find(rM);(xa(o)||Aa(e,i,n,o))&&(c=Za(i,n)||Fa(i,n))}const d=c&&l&&c!==l?function(e,t){if(e===_t&&t===_t)return _t;if(790504&e.flags)return e;const n=ki(e.flags|t.flags,e.escapedName);return In.assert(e.declarations||t.declarations),n.declarations=pe(ce(e.declarations,t.declarations),kt),n.parent=e.parent||t.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),t.members&&(n.members=new Map(t.members)),e.exports&&(n.exports=new Map(e.exports)),n}(l,c):c||l;return d||Na(i,s,e,a),d}}function Na(e,t,n,r){var o;const i=Ka(e,n),a=o_(r),s=ak(r,t);if(void 0!==s){const e=rl(s),t=Ai(r,Oa._0_has_no_exported_member_named_1_Did_you_mean_2,i,a,e);s.valueDeclaration&&xx(t,d_(s.valueDeclaration,Oa._0_is_declared_here,e))}else(null==(o=e.exports)?void 0:o.has("default"))?Ai(r,Oa.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,i,a):function(e,t,n,r,o){var i,a;const s=null==(a=null==(i=yt(r.valueDeclaration,Du))?void 0:i.locals)?void 0:a.get(t.escapedText),l=r.exports;if(s){const r=null==l?void 0:l.get("export=");if(r)Es(r,s)?function(e,t,n,r){if(R>=5){Ai(t,qp(S)?Oa._0_can_only_be_imported_by_using_a_default_import:Oa._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n)}else if($h(e)){Ai(t,qp(S)?Oa._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:Oa._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n)}else{Ai(t,qp(S)?Oa._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:Oa._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,r)}}(e,t,n,o):Ai(t,Oa.Module_0_has_no_exported_member_1,o,n);else{const e=l?L(om(l),(e=>!!Es(e,s))):void 0,r=e?Ai(t,Oa.Module_0_declares_1_locally_but_it_is_exported_as_2,o,n,rl(e)):Ai(t,Oa.Module_0_declares_1_locally_but_it_is_not_exported,o,n);s.declarations&&xx(r,...U(s.declarations,((e,t)=>d_(e,0===t?Oa._0_is_declared_here:Oa.and_here,n))))}}else Ai(t,Oa.Module_0_has_no_exported_member_1,o,n)}(n,r,a,e,i)}function Ma(e){if(iN(e)&&e.initializer&&lD(e.initializer))return e.initializer}function La(e,t,n){if("default"===kl(e.propertyName||e.name)){const t=Ca(e),r=t&&Xa(e,t);if(r)return Ra(r,e,!!n)}const r=e.parent.parent.moduleSpecifier?Da(e.parent.parent,e,n):qa(e.propertyName||e.name,t,!1,n);return Ba(e,void 0,r,!1),r}function ka(e,t){if(CD(e))return tO(e).symbol;if(!bd(e)&&!EE(e))return;const n=qa(e,901119,!0,t);return n||(tO(e),Hi(e).resolvedSymbol)}function Pa(e,t=!1){switch(e.kind){case 271:case 260:return va(e,t);case 273:return function(e,t){const n=Xa(e,e.parent.moduleSpecifier);if(n)return Ra(n,e,t)}(e,t);case 274:return function(e,t){const n=e.parent.parent.moduleSpecifier,r=Xa(e,n),o=es(r,n,t,!1);return Ba(e,r,o,!1),o}(e,t);case 280:return function(e,t){const n=e.parent.moduleSpecifier,r=n&&Xa(e,n),o=n&&es(r,n,t,!1);return Ba(e,r,o,!1),o}(e,t);case 276:case 208:return function(e,t){if(RN(e)&&"default"===kl(e.propertyName||e.name)){const n=Ca(e),r=n&&Xa(e,n);if(r)return Ra(r,e,t)}const n=iD(e)?bv(e):e.parent.parent.parent,r=Ma(n),o=Da(n,r||e,t),i=e.propertyName||e.name;return r&&o&&nC(i)?Fa(kf(sd(o),i.escapedText),t):(Ba(e,void 0,o,!1),o)}(e,t);case 281:return La(e,901119,t);case 277:case 226:return function(e,t){const n=ka(CN(e)?e.expression:e.right,t);return Ba(e,void 0,n,!1),n}(e,t);case 270:return function(e,t){if(Cu(e.parent)){const n=Za(e.parent.symbol,t);return Ba(e,void 0,n,!1),n}}(e,t);case 304:return qa(e.name,901119,!0,t);case 303:return ka(e.initializer,t);case 212:case 211:return function(e,t){if(TD(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind)return ka(e.parent.right,t)}(e,t);default:return In.fail()}}function wa(e,t=901119){return!!e&&(2097152===(e.flags&(2097152|t))||!!(2097152&e.flags&&67108864&e.flags))}function Fa(e,t){return!t&&wa(e)?Wa(e):e}function Wa(e){In.assert(0!==(2097152&e.flags),"Should only get Alias here.");const t=Ui(e);if(t.aliasTarget)t.aliasTarget===gt&&(t.aliasTarget=_t);else{t.aliasTarget=gt;const n=ha(e);if(!n)return In.fail();const r=Pa(n);t.aliasTarget===gt?t.aliasTarget=r||_t:Ai(n,Oa.Circular_definition_of_import_alias_0,rl(e))}return t.aliasTarget}function za(e,t,n){const r=t&&ja(e),o=r&&DN(r),i=r&&(o?Xa(r.moduleSpecifier,r.moduleSpecifier,!0):Wa(r.symbol)),a=o&&i?ls(i):void 0;let s,l=n?0:e.flags;for(;2097152&e.flags;){const t=Ss(Wa(e));if(!o&&t===i||(null==a?void 0:a.get(t.escapedName))===t)break;if(t===_t)return-1;if(t===e||(null==s?void 0:s.has(t)))break;2097152&t.flags&&(s?s.add(t):s=new Set([e,t])),l|=t.flags,e=t}return l}function Ba(e,t,n,r,o,i){if(!e||lD(e))return!1;const a=ps(e);if(ld(e)){return Ui(a).typeOnlyDeclaration=e,!0}if(o){const e=Ui(a);return e.typeOnlyDeclaration=o,a.escapedName!==i&&(e.typeOnlyExportStarName=i),!0}const s=Ui(a);return Ga(s,t,r)||Ga(s,n,r)}function Ga(e,t,n){var r;if(t&&(void 0===e.typeOnlyDeclaration||n&&!1===e.typeOnlyDeclaration)){const n=(null==(r=t.exports)?void 0:r.get("export="))??t,o=n.declarations&&L(n.declarations,ld);e.typeOnlyDeclaration=o??Ui(n).typeOnlyDeclaration??!1}return!!e.typeOnlyDeclaration}function ja(e,t){if(!(2097152&e.flags))return;const n=Ui(e);if(void 0===t)return n.typeOnlyDeclaration||void 0;if(n.typeOnlyDeclaration){return za(278===n.typeOnlyDeclaration.kind?Fa(ls(n.typeOnlyDeclaration.symbol.parent).get(n.typeOnlyExportStarName||e.escapedName)):Wa(n.typeOnlyDeclaration.symbol))&t?n.typeOnlyDeclaration:void 0}}function Va(e){if(!Re)return;const t=ps(e),n=Wa(t);if(n){(n===_t||111551&za(t,!0)&&!EB(n))&&Ua(t)}}function Ua(e){In.assert(Re);const t=Ui(e);if(!t.referenced){t.referenced=!0;const n=ha(e);if(!n)return In.fail();qh(n)&&111551&za(Fa(e))&&tO(n.moduleReference)}}function Ha(e,t){return 80===e.kind&&RE(e)&&(e=e.parent),80===e.kind||166===e.parent.kind?qa(e,1920,!1,t):(In.assert(271===e.parent.kind),qa(e,901119,!1,t))}function Ka(e,t){return e.parent?Ka(e.parent,t)+"."+rl(e):rl(e,t,void 0,36)}function qa(e,t,n,r,o){if(im(e))return;const i=1920|($h(e)?111551&t:0);let a;if(80===e.kind){const r=t===i||Sv(e)?Oa.Cannot_find_namespace_0:qI(SE(e)),s=$h(e)&&!Sv(e)?function(e,t){if(dh(e.parent)){const n=function(e){if(Cl(e,(e=>Uu(e)||16777216&e.flags?Kg(e):"quit")))return;const t=ly(e);if(t&&VD(t)&&kg(t.expression)){const e=ps(t.expression.left);if(e)return Ja(e)}if(t&&_D(t)&&kg(t.parent)&&VD(t.parent.parent)){const e=ps(t.parent.left);if(e)return Ja(e)}if(t&&(oh(t)||QN(t))&&TD(t.parent.parent)&&6===Eg(t.parent.parent)){const e=ps(t.parent.parent.left);if(e)return Ja(e)}const n=sy(e);if(n&&Td(n)){const e=ps(n);return e&&e.valueDeclaration}}(e.parent);if(n)return ta(n,e.escapedText,t,void 0,e,!0)}}(e,t):void 0;if(a=us(ta(o||e,e.escapedText,t,n||s?void 0:r,e,!0,!1)),!a)return us(s)}else if(166===e.kind||211===e.kind){const r=166===e.kind?e.left:e.expression,s=166===e.kind?e.right:e.name;let l=qa(r,i,n,!1,o);if(!l||im(s))return;if(l===_t)return l;if(l.valueDeclaration&&$h(l.valueDeclaration)&&100!==Up(S)&&iN(l.valueDeclaration)&&l.valueDeclaration.initializer&&RP(l.valueDeclaration.initializer)){const e=l.valueDeclaration.initializer.arguments[0],t=Xa(e,e);if(t){const e=Za(t);e&&(l=e)}}if(a=us(qi(ss(l),s.escapedText,t)),!a&&2097152&l.flags&&(a=us(qi(ss(Wa(l)),s.escapedText,t))),!a){if(!n){const n=Ka(l),r=o_(s),o=ak(s,l);if(o)return void Ai(s,Oa._0_has_no_exported_member_named_1_Did_you_mean_2,n,r,rl(o));const i=gC(e)&&function(e){for(;gC(e.parent);)e=e.parent;return e}(e),a=$n&&788968&t&&i&&!yD(i.parent)&&function(e){let t=SE(e),n=ta(t,t.escapedText,111551,void 0,t,!0);if(n){for(;gC(t.parent);){if(n=kf(sd(n),t.parent.right.escapedText),!n)return;t=t.parent}return n}}(i);if(a)return void Ai(i,Oa._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,c_(i));if(1920&t&&gC(e.parent)){const t=us(qi(ss(l),s.escapedText,788968));if(t)return void Ai(e.parent.right,Oa.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,rl(t),Ll(e.parent.right.escapedText))}Ai(s,Oa.Namespace_0_has_no_exported_member_1,n,r)}return}}else In.assertNever(e,"Unknown entity name kind.");return In.assert(0===(1&mS(a)),"Should never get an instantiated symbol here."),!Sv(e)&&bd(e)&&(2097152&a.flags||277===e.parent.kind)&&Ba(My(e),a,void 0,!0),a.flags&t||r?a:Wa(a)}function Ja(e){const t=e.parent.valueDeclaration;if(!t)return;return(cg(t)?pg(t):Qu(t)?ug(t):void 0)||t}function Xa(e,t,n){const r=1===Up(S)?Oa.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:Oa.Cannot_find_module_0_or_its_corresponding_type_declarations;return $a(e,t,n?void 0:r)}function $a(e,t,n,r=!1){return np(t)?Ya(e,t.text,n,t,r):void 0}function Ya(t,n,r,o,i=!1){var a,s,l,c,d,u,p,f,m,_,h;if(dn(n,"@types/")){Ai(o,Oa.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,un(n,"@types/"),n)}const g=sm(n,!0);if(g)return g;const y=Yf(t),v=np(t)?t:(null==(a=pN(t)?t:t.parent&&pN(t.parent)&&t.parent.name===t?t.parent:void 0)?void 0:a.name)||(null==(s=P_(t)?t:void 0)?void 0:s.argument.literal)||(iN(t)&&t.initializer&&tg(t.initializer,!0)?t.initializer.arguments[0]:void 0)||(null==(l=Cl(t,L_))?void 0:l.arguments[0])||(null==(c=Cl(t,gN))?void 0:c.moduleSpecifier)||(null==(d=Cl(t,Uh))?void 0:d.moduleReference.expression)||(null==(u=Cl(t,DN))?void 0:u.moduleSpecifier),b=v&&np(v)?e.getModeForUsageLocation(y,v):y.impliedNodeFormat,E=Up(S),T=null==(p=e.getResolvedModule(y,n,b))?void 0:p.resolvedModule,x=T&&_H(S,T,y),A=T&&(!x||x===Oa.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(T.resolvedFileName);if(A){if(x&&Ai(o,x,n,T.resolvedFileName),T.resolvedUsingTsExtension&&_P(n)){const e=(null==(f=Cl(t,gN))?void 0:f.importClause)||Cl(t,_n(hN,DN));(e&&!e.isTypeOnly||Cl(t,L_))&&Ai(o,Oa.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){const t=ux(n,e);if(bT(R)||99===b){const r=_P(n)&&NW(S);return t+(".mts"===e||".d.mts"===e?r?".mts":".mjs":".cts"===e||".d.mts"===e?r?".cts":".cjs":r?".ts":".js")}return t}(In.checkDefined(wE(n))))}else if(T.resolvedUsingTsExtension&&!NW(S,y.fileName)){const e=(null==(m=Cl(t,gN))?void 0:m.importClause)||Cl(t,_n(hN,DN));if(!(null==e?void 0:e.isTypeOnly)&&!Cl(t,eD)){const e=In.checkDefined(wE(n));Ai(o,Oa.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}}if(A.symbol){if(T.isExternalLibraryImport&&!gx(T.extension)&&Qa(!1,o,y,b,T,n),3===E||99===E){const e=1===y.impliedNodeFormat&&!Cl(t,L_)||!!Cl(t,hN),r=Cl(t,(e=>eD(e)||DN(e)||gN(e)));if(e&&99===A.impliedNodeFormat&&!RA(r))if(Cl(t,hN))Ai(o,Oa.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{let e;const t=bx(y.fileName);if(".ts"===t||".js"===t||".tsx"===t||".jsx"===t){const n=y.packageJsonScope,r=".ts"===t?".mts":".js"===t?".mjs":void 0;e=n&&!n.contents.packageJsonContent.type?r?cT(void 0,Oa.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,ua(n.packageDirectory,"package.json")):cT(void 0,Oa.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,ua(n.packageDirectory,"package.json")):r?cT(void 0,Oa.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,r):cT(void 0,Oa.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}si.add(f_(Yf(o),o,cT(e,Oa.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,n)))}}return us(A.symbol)}r&&Ai(o,Oa.File_0_is_not_a_module,A.fileName)}else{if(Jn){const e=cn(Jn,(e=>e.pattern),n);if(e){const t=Xn&&Xn.get(n);return us(t?t:e.symbol)}}if((!T||gx(T.extension)||void 0!==x)&&x!==Oa.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(r){if(T){const t=e.getProjectReferenceRedirect(T.resolvedFileName);if(t)return void Ai(o,Oa.Output_file_0_has_not_been_built_from_source_file_1,t,T.resolvedFileName)}if(x)Ai(o,x,n,T.resolvedFileName);else{const t=Ji(n)&&!$i(n),i=3===E||99===E;if(!Yp(S)&&Yi(n,".json")&&1!==E&&ET(S))Ai(o,Oa.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(99===b&&i&&t){const t=ma(n,ra(y.path)),r=null==(_=gi.find((([n,r])=>e.fileExists(t+n))))?void 0:_[1];r?Ai(o,Oa.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+r):Ai(o,Oa.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if(null==(h=e.getResolvedModule(y,n,b))?void 0:h.alternateResult){Ri(!0,o,cT(Hf(y,e,n,b,n),r,n))}else Ai(o,r,n)}}return}if(i){Ai(o,Oa.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,T.resolvedFileName)}else Qa($&&!!r,o,y,b,T,n)}}function Qa(t,n,r,o,{packageId:i,resolvedFileName:a},s){let l;!Xs(s)&&i&&(l=Hf(r,e,s,o,i.name)),Ri(t,n,cT(l,Oa.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,s,a))}function Za(e,t){if(null==e?void 0:e.exports){const n=function(e,t){if(!e||e===_t||e===t||1===t.exports.size||2097152&e.flags)return e;const n=Ui(e);if(n.cjsExportMerged)return n.cjsExportMerged;const r=33554432&e.flags?e:Wi(e);r.flags=512|r.flags,void 0===r.exports&&(r.exports=Mf());t.exports.forEach(((e,t)=>{"export="!==t&&r.exports.set(t,r.exports.has(t)?zi(r.exports.get(t),e):e)})),r===e&&(Ui(r).resolvedExports=void 0,Ui(r).resolvedMembers=void 0);return Ui(r).cjsExportMerged=r,n.cjsExportMerged=r}(us(Fa(e.exports.get("export="),t)),us(e));return us(n)||e}}function es(e,t,n,r){var o;const i=Za(e,n);if(!n&&i){if(!r&&!(1539&i.flags)&&!Df(i,312)){const e=R>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Ai(t,Oa.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),i}const n=t.parent;if(gN(n)&&Gg(n)||L_(n)){const t=L_(n)?n.arguments[0]:n.moduleSpecifier,r=sd(i),a=AP(r,i,e,t);if(a)return ts(i,a,n);const s=null==(o=null==e?void 0:e.declarations)?void 0:o.find(rM),l=s&&Ta(Sa(t),s.impliedNodeFormat);if(qp(S)||l){let o=Pf(r,0);if(o&&o.length||(o=Pf(r,1)),o&&o.length||kf(r,"default",!0)||l){return ts(i,3670016&r.flags?IP(r,i,e,t):xP(i,i.parent),n)}}}}return i}function ts(e,t,n){const r=ki(e.flags,e.escapedName);r.declarations=e.declarations?e.declarations.slice():[],r.parent=e.parent,r.links.target=e,r.links.originatingImport=n,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),e.members&&(r.members=new Map(e.members)),e.exports&&(r.exports=new Map(e.exports));const i=Fp(t);return r.links.type=Os(r,i.members,o,o,i.indexInfos),r}function ns(e){return void 0!==e.exports.get("export=")}function rs(e){return om(ls(e))}function os(e,t){const n=ls(t);if(n)return n.get(e)}function is(e){return!(402784252&e.flags||1&RS(e)||cx(e)||tA(e))}function ss(e){return 6256&e.flags?Nu(e,"resolvedExports"):1536&e.flags?ls(e):e.exports||b}function ls(e){const t=Ui(e);if(!t.resolvedExports){const{exports:n,typeOnlyExportStarMap:r}=ds(e);t.resolvedExports=n,t.typeOnlyExportStarMap=r}return t.resolvedExports}function cs(e,t,n,r){t&&t.forEach(((t,o)=>{if("default"===o)return;const i=e.get(o);if(i){if(n&&r&&i&&Fa(i)!==Fa(t)){const e=n.get(o);e.exportsWithDuplicate?e.exportsWithDuplicate.push(r):e.exportsWithDuplicate=[r]}}else e.set(o,t),n&&r&&n.set(o,{specifierText:xm(r.moduleSpecifier)})}))}function ds(e){const t=[];let n;const r=new Set,o=function e(o,i,a){!a&&(null==o?void 0:o.exports)&&o.exports.forEach(((e,t)=>r.add(t)));if(!(o&&o.exports&&Ae(t,o)))return;const s=new Map(o.exports),l=o.exports.get("__export");if(l){const t=Mf(),n=new Map;if(l.declarations)for(const r of l.declarations){const o=Xa(r,r.moduleSpecifier);cs(t,e(o,r,a||r.isTypeOnly),n,r)}n.forEach((({exportsWithDuplicate:e},t)=>{if("export="!==t&&e&&e.length&&!s.has(t))for(const r of e)si.add(d_(r,Oa.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,n.get(t).specifierText,Ll(t)))})),cs(s,t)}(null==i?void 0:i.isTypeOnly)&&(n??(n=new Map),s.forEach(((e,t)=>n.set(t,i))));return s}(e=Za(e))||b;return n&&r.forEach((e=>n.delete(e))),{exports:o,typeOnlyExportStarMap:n}}function us(e){let t;return e&&e.mergeId&&(t=Uo[e.mergeId])?t:e}function ps(e){return us(e.symbol&&ku(e.symbol))}function fs(e){return Cu(e)?ps(e):void 0}function ms(e){return us(e.parent&&ku(e.parent))}function hs(e){var t,n;return(219===(null==(t=e.valueDeclaration)?void 0:t.kind)||218===(null==(n=e.valueDeclaration)?void 0:n.kind))&&fs(e.valueDeclaration.parent)||e}function gs(t,n,r){const i=ms(t);if(i&&!(262144&t.flags))return d(i);const a=Z(t.declarations,(e=>{if(!Pm(e)&&e.parent){if($s(e.parent))return ps(e.parent);if(fN(e.parent)&&e.parent.parent&&Za(ps(e.parent.parent))===t)return ps(e.parent.parent)}if(CD(e)&&TD(e.parent)&&64===e.parent.operatorToken.kind&&wS(e.parent.left)&&EE(e.parent.left.expression))return bg(e.parent.left)||yg(e.parent.left.expression)?ps(Yf(e)):(tO(e.parent.left.expression),Hi(e.parent.left.expression).resolvedSymbol)}));if(!T(a))return;const s=Z(a,(e=>bs(e,t)?e:void 0));let l=[],c=[];for(const e of s){const[t,...n]=d(e);l=Ee(l,t),c=xe(c,n)}return ce(l,c);function d(i){const a=Z(i.declarations,u),s=n&&function(t,n){const r=Yf(n),i=Hz(r),a=Ui(t);let s;if(a.extendedContainersByFile&&(s=a.extendedContainersByFile.get(i)))return s;if(r&&r.imports){for(const e of r.imports){if(Sv(e))continue;const r=Xa(n,e,!0);r&&(bs(r,t)&&(s=Ee(s,r)))}if(T(s))return(a.extendedContainersByFile||(a.extendedContainersByFile=new Map)).set(i,s),s}if(a.extendedContainers)return a.extendedContainers;const l=e.getSourceFiles();for(const e of l){if(!uP(e))continue;const n=ps(e);bs(n,t)&&(s=Ee(s,n))}return a.extendedContainers=s||o}(t,n),l=function(e,t){const n=!!T(e.declarations)&&Pe(e.declarations);if(111551&t&&n&&n.parent&&iN(n.parent)&&(sD(n)&&n===n.parent.initializer||WC(n)&&n===n.parent.type))return ps(n.parent)}(i,r);if(n&&i.flags&Ws(r)&&Bs(i,n,1920,!1))return Ee(ce(ce([i],a),s),l);const c=!(i.flags&Ws(r))&&788968&i.flags&&524288&ou(i).flags&&111551===r?Fs(n,(e=>Wf(e,(e=>{if(e.flags&Ws(r)&&sd(e)===ou(i))return e})))):void 0;let d=c?[c,...a,i]:[...a,i];return d=Ee(d,l),d=xe(d,s),d}function u(e){return i&&vs(e,i)}}function vs(e,t){const n=qs(e),r=n&&n.exports&&n.exports.get("export=");return r&&Es(r,t)?n:void 0}function bs(e,t){if(e===ms(t))return t;const n=e.exports&&e.exports.get("export=");if(n&&Es(n,t))return e;const r=ss(e),o=r.get(t.escapedName);return o&&Es(o,t)?o:Wf(r,(e=>{if(Es(e,t))return e}))}function Es(e,t){if(us(Fa(us(e)))===us(Fa(us(t))))return e}function Ss(e){return us(e&&0!==(1048576&e.flags)&&e.exportSymbol||e)}function xs(e,t){return!!(111551&e.flags||2097152&e.flags&&111551&za(e,!t))}function As(e){const t=e.members;for(const n of t)if(176===n.kind&&am(n.body))return n}function Is(e){var t;const n=new u(Ne,e);return f++,n.id=f,null==(t=kr)||t.recordType(n),n}function Rs(e,t){const n=Is(e);return n.symbol=t,n}function Cs(e){return new u(Ne,e)}function Ds(e,t,n=0,r){!function(e,t){const n=`${e},${t??""}`;St.has(n)&&In.fail(`Duplicate intrinsic type name ${e}${t?` (${t})`:""}; you may need to pass a name to createIntrinsicType.`);St.add(n)}(t,r);const o=Is(e);return o.intrinsicName=t,o.debugIntrinsicName=r,o.objectFlags=52953088|n,o}function Ns(e,t){const n=Rs(524288,t);return n.objectFlags=e,n.members=void 0,n.properties=void 0,n.callSignatures=void 0,n.constructSignatures=void 0,n.indexInfos=void 0,n}function Ms(e){return Rs(262144,e)}function Ls(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function ks(e){let t;return e.forEach(((e,n)=>{Ps(e,n)&&(t||(t=[])).push(e)})),t||o}function Ps(e,t){return!Ls(t)&&xs(e)}function ws(e,t,n,r,i){const a=e;return a.members=t,a.properties=o,a.callSignatures=n,a.constructSignatures=r,a.indexInfos=i,t!==b&&(a.properties=ks(t)),a}function Os(e,t,n,r,o){return ws(Ns(16,e),t,n,r,o)}function Fs(e,t){let n;for(let r=e;r;r=r.parent){if(Du(r)&&r.locals&&!Ki(r)&&(n=t(r.locals,void 0,!0,r)))return n;switch(r.kind){case 312:if(!T_(r))break;case 267:const e=ps(r);if(n=t((null==e?void 0:e.exports)||b,void 0,!0,r))return n;break;case 263:case 231:case 264:let o;if((ps(r).members||b).forEach(((e,t)=>{788968&e.flags&&(o||(o=Mf())).set(t,e)})),o&&(n=t(o,void 0,!1,r)))return n}}return t(fe,void 0,!0)}function Ws(e){return 111551===e?111551:1920}function Bs(e,t,n,r,o=new Map){if(!e||function(e){if(e.declarations&&e.declarations.length){for(const t of e.declarations)switch(t.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}(e))return;const i=Ui(e),a=i.accessibleChainCache||(i.accessibleChainCache=new Map),s=Fs(t,((e,t,n,r)=>r)),l=`${r?0:1}|${s&&Hz(s)}|${n}`;if(a.has(l))return a.get(l);const c=Kz(e);let d=o.get(c);d||o.set(c,d=[]);const u=Fs(t,p);return a.set(l,u),u;function p(n,o,i){if(!Ae(d,n))return;const a=function(n,o,i){if(m(n.get(e.escapedName),void 0,o))return[e];const a=Wf(n,(n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(DS(n)&&t&&uP(Yf(t)))&&(!r||se(n.declarations,Uh))&&(!i||!se(n.declarations,Vh))&&(o||!Df(n,281))){const e=_(n,Wa(n),o);if(e)return e}if(n.escapedName===e.escapedName&&n.exportSymbol&&m(us(n.exportSymbol),void 0,o))return[e]}));return a||(n===fe?_(_e,_e,o):void 0)}(n,o,i);return d.pop(),a}function f(e,n){return!Gs(e,t,n)||!!Bs(e.parent,t,Ws(n),r,o)}function m(t,r,o){return(e===(r||t)||us(e)===us(r||t))&&!se(t.declarations,$s)&&(o||f(us(t),n))}function _(e,t,r){if(m(e,t,r))return[e];const o=ss(t),i=o&&p(o,!0);return i&&f(e,Ws(n))?[e].concat(i):void 0}}function Gs(e,t,n){let r=!1;return Fs(t,(t=>{let o=us(t.get(e.escapedName));if(!o)return!1;if(o===e)return!0;const i=2097152&o.flags&&!Df(o,281);o=i?Wa(o):o;return!!((i?za(o):o.flags)&n)&&(r=!0,!0)})),r}function js(e,t){return 0===Ks(e,t,111551,!1,!0).accessibility}function Vs(e,t,n){return 0===Ks(e,t,n,!1,!1).accessibility}function Us(e,t,n,r,o,i){if(!T(e))return;let a,s=!1;for(const l of e){const e=Bs(l,t,r,!1);if(e){a=l;const t=Ys(e[0],o);if(t)return t}if(i&&se(l.declarations,$s)){if(o){s=!0;continue}return{accessibility:0}}const c=Us(gs(l,t,r),t,n,n===l?Ws(r):r,o,i);if(c)return c}return s?{accessibility:0}:a?{accessibility:1,errorSymbolName:rl(n,t,r),errorModuleName:a!==n?rl(a,t,1920):void 0}:void 0}function Hs(e,t,n,r){return Ks(e,t,n,r,!0)}function Ks(e,t,n,r,o){if(e&&t){const i=Us([e],t,e,n,r,o);if(i)return i;const a=x(e.declarations,qs);if(a){if(a!==qs(t))return{accessibility:2,errorSymbolName:rl(e,t,n),errorModuleName:rl(a),errorNode:$h(t)?t:void 0}}return{accessibility:1,errorSymbolName:rl(e,t,n)}}return{accessibility:0}}function qs(e){const t=Cl(e,Js);return t&&ps(t)}function Js(e){return Pm(e)||312===e.kind&&T_(e)}function $s(e){return wm(e)||312===e.kind&&T_(e)}function Ys(e,t){let n;if(M(G(e.declarations,(e=>80!==e.kind)),(function(t){var n,o;if(!yl(t)){const i=_a(t);if(i&&!Gb(i,32)&&yl(i.parent))return r(t,i);if(iN(t)&&GD(t.parent.parent)&&!Gb(t.parent.parent,32)&&yl(t.parent.parent.parent))return r(t,t.parent.parent);if(Qm(t)&&!Gb(t,32)&&yl(t.parent))return r(t,t);if(iD(t)){if(2097152&e.flags&&$h(t)&&(null==(n=t.parent)?void 0:n.parent)&&iN(t.parent.parent)&&(null==(o=t.parent.parent.parent)?void 0:o.parent)&&GD(t.parent.parent.parent.parent)&&!Gb(t.parent.parent.parent.parent,32)&&t.parent.parent.parent.parent.parent&&yl(t.parent.parent.parent.parent.parent))return r(t,t.parent.parent.parent.parent);if(2&e.flags){const e=Cl(t,GD);return!!Gb(e,32)||!!yl(e.parent)&&r(t,e)}}return!1}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function r(e,r){return t&&(Hi(e).isVisible=!0,n=Ie(n,r)),!0}}function Zs(e){let t;return t=186===e.parent.kind||233===e.parent.kind&&!j_(e.parent)||167===e.parent.kind?1160127:166===e.kind||211===e.kind||271===e.parent.kind||166===e.parent.kind&&e.parent.left===e||211===e.parent.kind&&e.parent.expression===e||212===e.parent.kind&&e.parent.expression===e?1920:788968,t}function nl(e,t){const n=Zs(e),r=SE(e),o=ta(t,r.escapedText,n,void 0,void 0,!1);return o&&262144&o.flags&&788968&n||!o&&bb(r)&&0===Hs(ps(vh(r,!1,!1)),r,n,!1).accessibility?{accessibility:0}:o&&Ys(o,!0)||{accessibility:1,errorSymbolName:xm(r),errorNode:r}}function rl(e,t,n,r=4,o){let i=70221824;2&r&&(i|=128),1&r&&(i|=512),8&r&&(i|=16384),32&r&&(i|=134217728),16&r&&(i|=1073741824);const a=4&r?de.symbolToNode:de.symbolToEntityName;return o?s(o).getText():Gf(s);function s(r){const o=a(e,n,t,i),s=312===(null==t?void 0:t.kind)?gV():hV(),l=t&&Yf(t);return s.writeNode(4,o,l,r),r}}function ol(e,t,n=0,r,o){return o?i(o).getText():Gf(i);function i(o){let i;i=262144&n?1===r?185:184:1===r?180:179;const a=de.signatureToSignatureDeclaration(e,i,t,70222336|cl(n)),s=yV(),l=t&&Yf(t);return s.writeNode(4,a,l,Kv(o)),o}}function il(e,t,n=1064960,r=Hv("")){const o=S.noErrorTruncation||1&n,i=de.typeToTypeNode(e,t,70221824|cl(n)|(o?1:0));if(void 0===i)return In.fail("should always get typenode");const a=e!==Ct?hV():_V(),s=t&&Yf(t);a.writeNode(4,i,s,r);const l=r.getText(),c=o?2*up:2*dp;return c&&l&&l.length>=c?l.substr(0,c-3)+"...":l}function al(e,t){let n=ll(e.symbol)?il(e,e.symbol.valueDeclaration):il(e),r=ll(t.symbol)?il(t,t.symbol.valueDeclaration):il(t);return n===r&&(n=sl(e),r=sl(t)),[n,r]}function sl(e){return il(e,void 0,64)}function ll(e){return e&&!!e.valueDeclaration&&uu(e.valueDeclaration)&&!kS(e.valueDeclaration)}function cl(e=0){return 848330095&e}function dl(e){return!!e.symbol&&!!(32&e.symbol.flags)&&(e===qd(e.symbol)||!!(524288&e.flags)&&!!(16777216&RS(e)))}function ul(e,t,n=16384,r){return r?o(r).getText():Gf(o);function o(r){const o=UA.createTypePredicateNode(2===e.kind||3===e.kind?UA.createToken(131):void 0,1===e.kind||3===e.kind?UA.createIdentifier(e.parameterName):UA.createThisTypeNode(),e.type&&de.typeToTypeNode(e.type,t,70222336|cl(n))),i=hV(),a=t&&Yf(t);return i.writeNode(4,o,a,r),r}}function pl(e){return 2===e?"private":4===e?"protected":"public"}function fl(e){return e&&e.parent&&268===e.parent.kind&&Gm(e.parent.parent)}function ml(e){return 312===e.kind||Pm(e)}function _l(e,t){const n=Ui(e).nameType;if(n){if(384&n.flags){const e=""+n.value;return zs(e,jp(S))||nA(e)?nA(e)&&dn(e,"-")?`[${e}]`:e:`"${Fv(e,34)}"`}if(8192&n.flags)return`[${hl(n.symbol,t)}]`}}function hl(e,t){var n;if((null==(n=null==t?void 0:t.remappedSymbolReferences)?void 0:n.has(Kz(e)))&&(e=t.remappedSymbolReferences.get(Kz(e))),t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&Cl(e.declarations[0],ml)!==Cl(t.enclosingDeclaration,ml)))return"default";if(e.declarations&&e.declarations.length){let n=I(e.declarations,(e=>jl(e)?e:void 0));const r=n&&jl(n);if(n&&r){if(dD(n)&&Sg(n))return wl(e);if(yC(r)&&!(4096&mS(e))){const n=Ui(e).nameType;if(n&&384&n.flags){const n=_l(e,t);if(void 0!==n)return n}}return o_(r)}if(n||(n=e.declarations[0]),n.parent&&260===n.parent.kind)return o_(n.parent.name);switch(n.kind){case 231:case 218:case 219:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),231===n.kind?"(Anonymous class)":"(Anonymous function)"}}const r=_l(e,t);return void 0!==r?r:wl(e)}function yl(e){if(e){const t=Hi(e);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(e.kind){case 345:case 353:case 347:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&rM(e.parent.parent.parent));case 208:return yl(e.parent.parent);case 260:if(Vd(e.name)&&!e.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(Gm(e))return!0;const t=Dl(e);return 32&DG(e)||271!==e.kind&&312!==t.kind&&33554432&t.flags?yl(t):Ki(t);case 172:case 171:case 177:case 178:case 174:case 173:if(Bb(e,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return yl(e.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;default:return!1}}()),t.isVisible}return!1}function vl(e,t){let n,r,o;return e.parent&&277===e.parent.kind?n=ta(e,e.escapedText,2998271,void 0,e,!1):281===e.parent.kind&&(n=La(e.parent,2998271)),n&&(o=new Set,o.add(Kz(n)),function e(n){x(n,(n=>{const i=_a(n)||n;if(t?Hi(n).isVisible=!0:(r=r||[],Ae(r,i)),qh(n)){const t=ta(n,SE(n.moduleReference).escapedText,901119,void 0,void 0,!1);t&&o&&re(o,Kz(t))&&e(t.declarations)}}))}(n.declarations)),r}function El(e,t){const n=Tl(e,t);if(n>=0){const{length:e}=Fo;for(let t=n;t<e;t++)Wo[t]=!1;return!1}return Fo.push(e),Wo.push(!0),zo.push(t),!0}function Tl(e,t){for(let n=Fo.length-1;n>=Bo;n--){if(Al(Fo[n],zo[n]))return-1;if(Fo[n]===e&&zo[n]===t)return n}return-1}function Al(e,t){switch(t){case 0:return!!Ui(e).type;case 5:return!!Hi(e).resolvedEnumType;case 2:return!!Ui(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 6:return!!e.resolvedTypeArguments;case 7:return!!e.baseTypesResolved;case 8:return!!Ui(e).writeType;case 9:return void 0!==Hi(e).parameterInitializerContainsUndefined}return In.assertNever(t)}function Il(){return Fo.pop(),zo.pop(),Wo.pop()}function Dl(e){return Cl(bv(e),(e=>{switch(e.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}})).parent}function Ol(e,t){const n=kf(e,t);return n?sd(n):void 0}function Fl(e,t){var n;let r;return Ol(e,t)||(r=null==(n=nm(e,t))?void 0:n.type)&&ac(r,!0,!0)}function zl(e){return e&&0!==(1&e.flags)}function Gl(e){return e===Rt||!!(1&e.flags&&e.aliasSymbol)}function Vl(e,t){if(0!==t)return sc(e,!1,t);const n=ps(e);return n&&Ui(n).type||sc(e,!1,t)}function Kl(e,t,n){if(131072&(e=BR(e,(e=>!(98304&e.flags)))).flags)return Nn;if(1048576&e.flags)return VR(e,(e=>Kl(e,t,n)));let r=mv(U(t,zv));const i=[],a=[];for(const o of Hp(e)){const e=Bv(o,8576);KS(e,r)||6&_S(o)||!LE(o)?a.push(e):i.push(o)}if(pb(e)||fb(r)){if(a.length&&(r=mv([r,...a])),131072&r.flags)return e;const t=(Br||(Br=Xh("Omit",2,!0)||_t),Br===_t?void 0:Br);return t?w_(t,[e,r]):Rt}const s=Mf();for(const o of i)s.set(o.escapedName,kE(o,!1));const l=Os(n,s,o,o,Kf(e));return l.objectFlags|=4194304,l}function Jl(e){return!!(465829888&e.flags)&&Ww(lf(e)||Mt,32768)}function Xl(e){return hR(OR(e,Jl)?VR(e,(e=>465829888&e.flags?cf(e):e)):e,524288)}function $l(e,t){const n=Yl(e);return n?fC(n,t):t}function Yl(e){const t=function(e){const t=e.parent.parent;switch(t.kind){case 208:case 303:return Yl(t);case 209:return Yl(e.parent);case 260:return t.initializer;case 226:return t.right}}(e);if(t&&Qg(t)&&t.flowNode){const n=Zl(e);if(n){const r=yk(Rk.createStringLiteral(n),e),o=iu(t)?t:Rk.createParenthesizedExpression(t),i=yk(Rk.createElementAccessExpression(o,r),e);return Vx(r,i),Vx(i,e),o!==t&&Vx(o,i),i.flowNode=t.flowNode,i}}}function Zl(e){const t=e.parent;return 208===e.kind&&206===t.kind?ec(e.propertyName||e.name):303===e.kind||304===e.kind?ec(e.name):""+t.elements.indexOf(e)}function ec(e){const t=zv(e);return 384&t.flags?""+t.value:void 0}function nc(e){const t=e.dotDotDotToken?32:0,n=Vl(e.parent.parent,t);return n&&rc(e,n,!1)}function rc(e,t,n){if(zl(t))return t;const r=e.parent;let o;if(z&&33554432&e.flags&&vv(e)?t=PA(t):z&&r.parent.initializer&&!mR(RR(r.parent.initializer),65536)&&(t=hR(t,524288)),206===r.kind)if(e.dotDotDotToken){if(2&(t=Tf(t)).flags||!KM(t))return Ai(e,Oa.Rest_types_may_only_be_created_from_object_types),Rt;const n=[];for(const e of r.elements)e.dotDotDotToken||n.push(e.propertyName||e.name);o=Kl(t,n,e.symbol)}else{const n=e.propertyName||e.name;o=$l(e,Mb(t,zv(n),32,n))}else{const i=$F(65|(e.dotDotDotToken?0:128),t,Pt,r),a=r.elements.indexOf(e);if(e.dotDotDotToken){const e=VR(t,(e=>58982400&e.flags?cf(e):e));o=WR(e,tA)?VR(e,(e=>Vy(e,a))):ey(i)}else if(_x(t)){o=$l(e,kb(t,GE(a),32|(n||RM(e)?16:0),e.name)||Rt)}else o=i}return e.initializer?Ab(bl(e))?z&&!mR(rO(e,0),16777216)?Xl(o):o:oO(e,mv([Xl(o),rO(e,0)],2)):o}function oc(e){const t=vc(e);if(t)return JE(t)}function ic(e){const t=Ty(e,!0);return 209===t.kind&&0===t.elements.length}function ac(e,t=!1,n=!0){return z&&n?kA(e,t):e}function sc(e,t,n){if(iN(e)&&249===e.parent.parent.kind){const t=Jv(ML(bO(e.parent.parent.expression,n)));return 4456448&t.flags?$v(t):jt}if(iN(e)&&250===e.parent.parent.kind){return XF(e.parent.parent)||Tt}if(Vd(e.parent))return nc(e);const r=TC(e)&&!qb(e)||SC(e)||VM(e),o=t&&fA(e),i=Vc(e);if(km(e))return i?zl(i)||i===Mt?i:Rt:Q?Mt:Tt;if(i)return ac(i,r,o);if(($||$h(e))&&iN(e)&&!Vd(e.name)&&!(32&DG(e))&&!(33554432&e.flags)){if(!(6&NG(e))&&(!e.initializer||function(e){const t=Ty(e,!0);return 106===t.kind||80===t.kind&&JI(t)===me}(e.initializer)))return xt;if(e.initializer&&ic(e.initializer))return lr}if(bC(e)){const t=e.parent;if(178===t.kind&&Au(t)){const n=Df(ps(e.parent),177);if(n){const r=pm(n),o=dG(t);return o&&e===o?(In.assert(!o.type),sd(r.thisParameter)):bm(r)}}const n=function(e,t){const n=fm(e);if(!n)return;const r=e.parameters.indexOf(t);return t.dotDotDotToken?qP(n,r):HP(n,r)}(t,e);if(n)return n;const r="this"===e.symbol.escapedName?YD(t):QD(e);if(r)return ac(r,!1,o)}if(Qu(e)&&e.initializer){if($h(e)&&!bC(e)){const t=gc(e,ps(e),ug(e));if(t)return t}return ac(oO(e,rO(e,n)),r,o)}if(TC(e)&&($||$h(e))){if(Vb(e)){const t=G(e.parent.members,IC),n=t.length?function(e,t){const n=dn(e.escapedName,"__#")?UA.createPrivateIdentifier(e.escapedName.split("@")[1]):Ll(e.escapedName);for(const r of t){const t=UA.createPropertyAccessExpression(UA.createThis(),n);Vx(t.expression,t),Vx(t,r),t.flowNode=r.returnFlowNode;const o=_c(t,e);if(!$||o!==xt&&o!==lr||Ai(e.valueDeclaration,Oa.Member_0_implicitly_has_an_1_type,rl(e),il(o)),!WR(o,NL))return FF(o)}}(e.symbol,t):128&Zb(e)?ZT(e.symbol):void 0;return n&&ac(n,!0,o)}{const t=As(e.parent),n=t?pc(e.symbol,t):128&Zb(e)?ZT(e.symbol):void 0;return n&&ac(n,!0,o)}}return VN(e)?qt:Vd(e.name)?Ic(e.name,!1,!0):void 0}function lc(e){if(e.valueDeclaration&&TD(e.valueDeclaration)){const t=Ui(e);return void 0===t.isConstructorDeclaredProperty&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!dc(e)&&M(e.declarations,(t=>TD(t)&&vN(t)&&(212!==t.left.kind||tv(t.left.argumentExpression))&&!bc(void 0,t,e,t)))),t.isConstructorDeclaredProperty}return!1}function cc(e){const t=e.valueDeclaration;return t&&TC(t)&&!Ab(t)&&!t.initializer&&($||$h(t))}function dc(e){if(e.declarations)for(const t of e.declarations){const e=vh(t,!1,!1);if(e&&(176===e.kind||gP(e)))return e}}function pc(e,t){const n=dn(e.escapedName,"__#")?UA.createPrivateIdentifier(e.escapedName.split("@")[1]):Ll(e.escapedName),r=UA.createPropertyAccessExpression(UA.createThis(),n);Vx(r.expression,r),Vx(r,t),r.flowNode=t.returnFlowNode;const o=_c(r,e);return!$||o!==xt&&o!==lr||Ai(e.valueDeclaration,Oa.Member_0_implicitly_has_an_1_type,rl(e),il(o)),WR(o,NL)?void 0:FF(o)}function _c(e,t){const n=(null==t?void 0:t.valueDeclaration)&&(!cc(t)||128&Zb(t.valueDeclaration))&&ZT(t)||Pt;return fC(e,xt,n)}function hc(e,t){const n=pg(e.valueDeclaration);if(n){const t=$h(n)?yc(n):void 0;if(t&&t.typeExpression)return JE(t.typeExpression);return e.valueDeclaration&&gc(e.valueDeclaration,e,n)||Kx(tO(n))}let r,o=!1,i=!1;if(lc(e)&&(r=pc(e,dc(e))),!r){let n;if(e.declarations){let a;for(const r of e.declarations){const s=TD(r)||dD(r)?r:wS(r)?TD(r.parent)?r.parent:r:void 0;if(!s)continue;const l=wS(s)?Mg(s):Eg(s);(4===l||TD(s)&&vN(s,l))&&(Tc(s)?o=!0:i=!0),dD(s)||(a=bc(a,s,e,r)),a||(n||(n=[])).push(TD(s)||dD(s)?Ec(e,t,s,l):tn)}r=a}if(!r){if(!T(n))return Rt;let t=o&&e.declarations?function(e,t){return In.assert(e.length===t.length),e.filter(((e,n)=>{const r=t[n],o=TD(r)?r:TD(r.parent)?r.parent:void 0;return o&&Tc(o)}))}(n,e.declarations):void 0;if(i){const n=ZT(e);n&&((t||(t=[])).push(n),o=!0)}r=mv(se(t,(e=>!!(-98305&e.flags)))?t:n)}}const a=YA(ac(r,!1,i&&!o));return e.valueDeclaration&&$h(e.valueDeclaration)&&BR(a,(e=>!!(-98305&e.flags)))===tn?(eI(e.valueDeclaration,Tt),Tt):a}function gc(e,t,n){var r,i;if(!$h(e)||!n||!sD(n)||n.properties.length)return;const a=Mf();for(;TD(e)||lD(e);){const t=fs(e);(null==(r=null==t?void 0:t.exports)?void 0:r.size)&&ji(a,t.exports),e=TD(e)?e.parent:e.parent.parent}const s=fs(e);(null==(i=null==s?void 0:s.exports)?void 0:i.size)&&ji(a,s.exports);const l=Os(t,a,o,o,o);return l.objectFlags|=4096,l}function bc(e,t,n,r){var o;const i=Ab(t.parent);if(i){const t=YA(JE(i));if(!e)return t;Gl(e)||Gl(t)||BS(e,t)||zF(void 0,e,r,t)}if(null==(o=n.parent)?void 0:o.valueDeclaration){const e=hs(n.parent);if(e.valueDeclaration){const t=Ab(e.valueDeclaration);if(t){const e=kf(JE(t),n.escapedName);if(e)return cd(e)}}}return e}function Ec(e,t,n,r){if(dD(n)){if(t)return sd(t);const e=tO(n.arguments[2]),r=Ol(e,"value");if(r)return r;const o=Ol(e,"get");if(o){const e=Nk(o);if(e)return bm(e)}const i=Ol(e,"set");if(i){const e=Nk(i);if(e)return ew(e)}return Tt}if(function(e,t){return lD(e)&&110===e.expression.kind&&iP(t,(t=>QI(e,t)))}(n.left,n.right))return Tt;const o=1===r&&(lD(n.left)||cD(n.left))&&(bg(n.left.expression)||nC(n.left.expression)&&yg(n.left.expression)),i=t?sd(t):o?WE(tO(n.right)):Kx(tO(n.right));if(524288&i.flags&&2===r&&"export="===e.escapedName){const n=Fp(i),r=Mf();Bf(n.members,r);const o=r.size;t&&!t.exports&&(t.exports=Mf()),(t||e).exports.forEach(((e,t)=>{var n;const o=r.get(t);if(!o||o===e||2097152&e.flags)r.set(t,e);else if(111551&e.flags&&111551&o.flags){if(e.valueDeclaration&&o.valueDeclaration&&Yf(e.valueDeclaration)!==Yf(o.valueDeclaration)){const t=Ll(e.escapedName),r=(null==(n=yt(o.valueDeclaration,Bl))?void 0:n.name)||o.valueDeclaration;xx(Ai(e.valueDeclaration,Oa.Duplicate_identifier_0,t),d_(r,Oa._0_was_also_declared_here,t)),xx(Ai(r,Oa.Duplicate_identifier_0,t),d_(e.valueDeclaration,Oa._0_was_also_declared_here,t))}const i=ki(e.flags|o.flags,t);i.links.type=mv([sd(e),sd(o)]),i.valueDeclaration=o.valueDeclaration,i.declarations=ce(o.declarations,e.declarations),r.set(t,i)}else r.set(t,zi(e,o))}));const a=Os(o!==r.size?void 0:n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);if(o===r.size&&(i.aliasSymbol&&(a.aliasSymbol=i.aliasSymbol,a.aliasTypeArguments=i.aliasTypeArguments),4&RS(i))){a.aliasSymbol=i.symbol;const e=D_(i);a.aliasTypeArguments=T(e)?e:void 0}return a.objectFlags|=4096&RS(i),a.symbol&&32&a.symbol.flags&&i===qd(a.symbol)&&(a.objectFlags|=16777216),a}return Sx(i)?(eI(n,sr),sr):i}function Tc(e){const t=vh(e,!1,!1);return 176===t.kind||262===t.kind||218===t.kind&&!kg(t.parent)}function xc(e,t,n){if(e.initializer){return ac(oO(e,rO(e,n?0:1,Vd(e.name)?Ic(e.name,!0,!1):Mt)))}return Vd(e.name)?Ic(e.name,t,n):(n&&!jc(e)&&eI(e,Tt),t?Dt:Tt)}function Ic(e,t=!1,n=!1){return 206===e.kind?function(e,t,n){const r=Mf();let i,a=131200;x(e.elements,(e=>{const o=e.propertyName||e.name;if(e.dotDotDotToken)return void(i=Hm(jt,Tt,!1));const s=zv(o);if(!xA(s))return void(a|=512);const l=AA(s),c=ki(4|(e.initializer?16777216:0),l);c.links.type=xc(e,t,n),c.links.bindingElement=e,r.set(c.escapedName,c)}));const s=Os(void 0,r,o,o,i?[i]:o);return s.objectFlags|=a,t&&(s.pattern=e,s.objectFlags|=131072),s}(e,t,n):function(e,t,n){const r=e.elements,o=Oe(r),i=o&&208===o.kind&&o.dotDotDotToken?o:void 0;if(0===r.length||1===r.length&&i)return A>=2?Yg(Tt):sr;const a=U(r,(e=>DD(e)?Tt:xc(e,t,n))),s=w(r,(e=>!(e===i||DD(e)||RM(e))),r.length-1)+1;let l=Dy(a,U(r,((e,t)=>e===i?4:t>=s?2:1)));return t&&(l=R_(l),l.pattern=e,l.objectFlags|=131072),l}(e,t,n)}function Nc(e,t){return Gc(sc(e,!0,0),e,t)}function Lc(e){const t=Hi(e);if(!t.resolvedType){const n=ki(4096,"__importAttributes"),r=Mf();x(e.elements,(e=>{const t=ki(4,DA(e));t.parent=n,t.links.type=function(e){return WE(tO(e.value))}(e),t.links.target=t,r.set(t.escapedName,t)}));const i=Os(n,r,o,o,o);i.objectFlags|=262272,t.resolvedType=i}return t.resolvedType}function kc(e){const t=fs(e),n=(r=!1,pr||(pr=Wh("SymbolConstructor",r)));var r;return n&&t&&t===n}function Gc(e,t,n){return e?(4096&e.flags&&kc(t.parent)&&(e=UE(t)),n&&tI(t,e),8192&e.flags&&(iD(t)||!t.type)&&e.symbol!==ps(t)&&(e=Zt),YA(e)):(e=bC(t)&&t.dotDotDotToken?sr:Tt,n&&(jc(t)||eI(t,e)),e)}function jc(e){const t=bv(e);return jO(169===t.kind?t.parent:t)}function Vc(e){const t=Ab(e);if(t)return JE(t)}function Uc(e,t){const n=Ui(e);if(!n.type){const r=function(e,t){if(4194304&e.flags)return function(e){const t=ou(ms(e));return t.typeParameters?v_(t,U(t.typeParameters,(e=>Tt))):t}(e);if(e===Se)return Tt;if(134217728&e.flags&&e.valueDeclaration){const t=ps(Yf(e.valueDeclaration)),n=ki(t.flags,"exports");n.declarations=t.declarations?t.declarations.slice():[],n.parent=e,n.links.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),t.members&&(n.members=new Map(t.members)),t.exports&&(n.exports=new Map(t.exports));const r=Mf();return r.set("exports",n),Os(e,r,o,o,o)}In.assertIsDefined(e.valueDeclaration);const n=e.valueDeclaration;if(rM(n)&&x_(n))return n.statements.length?YA(Kx(bO(n.statements[0].expression))):Nn;if(Ld(n))return Jc(e);if(!El(e,0))return 512&e.flags&&!(67108864&e.flags)?Yc(e):iD(n)&&1===t?Rt:nd(e);let r;if(277===n.kind)r=Gc(Vc(n)||tO(n.expression),n);else if(TD(n)||$h(n)&&(dD(n)||(lD(n)||Ig(n))&&TD(n.parent)))r=hc(e);else if(lD(n)||cD(n)||nC(n)||np(n)||FR(n)||lN(n)||sN(n)||AC(n)&&!oh(n)||xC(n)||rM(n)){if(9136&e.flags)return Yc(e);r=TD(n.parent)?hc(e):Vc(n)||Tt}else if(QN(n))r=Vc(n)||lO(n);else if(VN(n))r=Vc(n)||XM(n);else if(ZN(n))r=Vc(n)||sO(n.name,0);else if(oh(n))r=Vc(n)||cO(n,0);else if(bC(n)||TC(n)||SC(n)||iN(n)||iD(n)||qc(n))r=Nc(n,!0);else if(uN(n))r=Yc(e);else{if(!tM(n))return In.fail("Unhandled declaration kind! "+In.formatSyntaxKind(n.kind)+" for "+In.formatSymbol(e));r=Qc(e)}if(!Il())return 512&e.flags&&!(67108864&e.flags)?Yc(e):iD(n)&&1===t?r:nd(e);return r}(e,t);return n.type||function(e){let t=e.valueDeclaration;return!!t&&(iD(t)&&(t=bl(t)),!!bC(t)&&FS(t.parent))}(e)||t||(n.type=r),r}return n.type}function Hc(e){if(e)switch(e.kind){case 177:return Rb(e);case 178:return Db(e);case 172:In.assert(qb(e));return Ab(e)}}function Kc(e){const t=Hc(e);return t&&JE(t)}function Jc(e){const t=Ui(e);if(!t.type){if(!El(e,0))return Rt;const n=Df(e,177),r=Df(e,178),o=yt(Df(e,172),kd);let i=n&&$h(n)&&oc(n)||Kc(n)||Kc(r)||Kc(o)||n&&n.body&&bw(n)||o&&o.initializer&&Nc(o,!0);i||(r&&!jO(r)?Ri($,r,Oa.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,rl(e)):n&&!jO(n)?Ri($,n,Oa.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,rl(e)):o&&!jO(o)&&Ri($,o,Oa.Member_0_implicitly_has_an_1_type,rl(e),"any"),i=Tt),Il()||(Hc(n)?Ai(n,Oa._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,rl(e)):Hc(r)||Hc(o)?Ai(r,Oa._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,rl(e)):n&&$&&Ai(n,Oa._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,rl(e)),i=Tt),t.type=i}return t.type}function Xc(e){const t=Ui(e);if(!t.writeType){if(!El(e,8))return Rt;const n=Df(e,178)??yt(Df(e,172),kd);let r=Kc(n);Il()||(Hc(n)&&Ai(n,Oa._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,rl(e)),r=Tt),t.writeType=r||Jc(e)}return t.writeType}function $c(e){const t=Wd(qd(e));return 8650752&t.flags?t:2097152&t.flags?L(t.types,(e=>!!(8650752&e.flags))):void 0}function Yc(e){let t=Ui(e);const n=t;if(!t.type){const r=e.valueDeclaration&&vP(e.valueDeclaration,!1);if(r){const n=yP(e,r);n&&(e=n,t=n.links)}n.type=t.type=function(e){const t=e.valueDeclaration;if(1536&e.flags&&Wm(e))return Tt;if(t&&(226===t.kind||wS(t)&&226===t.parent.kind))return hc(e);if(512&e.flags&&t&&rM(t)&&t.commonJsModuleIndicator){const t=Za(e);if(t!==e){if(!El(e,0))return Rt;const n=us(e.exports.get("export=")),r=hc(n,n===t?void 0:t);return Il()?r:nd(e)}}const n=Ns(16,e);if(32&e.flags){const t=$c(e);return t?Cv([n,t]):n}return z&&16777216&e.flags?kA(n,!0):n}(e)}return t.type}function Qc(e){const t=Ui(e);return t.type||(t.type=Qd(e))}function Zc(e){const t=Ui(e);if(!t.type){if(!El(e,0))return Rt;const n=Wa(e),r=e.declarations&&Pa(ha(e),!0),o=I(null==r?void 0:r.declarations,(e=>CN(e)?Vc(e):void 0));if(t.type=(null==r?void 0:r.declarations)&&hz(r.declarations)&&e.declarations.length?function(e){const t=Yf(e.declarations[0]),n=Ll(e.escapedName),r=e.declarations.every((e=>$h(e)&&wS(e)&&bg(e.expression))),o=r?UA.createPropertyAccessExpression(UA.createPropertyAccessExpression(UA.createIdentifier("module"),UA.createIdentifier("exports")),n):UA.createPropertyAccessExpression(UA.createIdentifier("exports"),n);return r&&Vx(o.expression.expression,o.expression),Vx(o.expression,o),Vx(o,t),o.flowNode=t.endFlowNode,fC(o,xt,Pt)}(r):hz(e.declarations)?xt:o||(111551&za(n)?sd(n):Rt),!Il())return nd(r??e),t.type=Rt}return t.type}function nd(e){const t=e.valueDeclaration;if(t){if(Ab(t))return Ai(e.valueDeclaration,Oa._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,rl(e)),Rt;$&&(169!==t.kind||t.initializer)&&Ai(e.valueDeclaration,Oa._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,rl(e))}else if(2097152&e.flags){const t=ha(e);t&&Ai(t,Oa.Circular_definition_of_import_alias_0,rl(e))}return Tt}function rd(e){const t=Ui(e);return t.type||(In.assertIsDefined(t.deferralParent),In.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?mv(t.deferralConstituents):Cv(t.deferralConstituents)),t.type}function od(e){const t=mS(e);return 4&e.flags?2&t?65536&t?function(e){const t=Ui(e);return!t.writeType&&t.deferralWriteConstituents&&(In.assertIsDefined(t.deferralParent),In.assertIsDefined(t.deferralConstituents),t.writeType=1048576&t.deferralParent.flags?mv(t.deferralWriteConstituents):Cv(t.deferralWriteConstituents)),t.writeType}(e)||rd(e):e.links.writeType||e.links.type:zA(sd(e),!!(16777216&e.flags)):98304&e.flags?1&t?function(e){const t=Ui(e);return t.writeType||(t.writeType=AS(od(t.target),t.mapper))}(e):Xc(e):sd(e)}function sd(e,t){const n=mS(e);return 65536&n?rd(e):1&n?function(e){const t=Ui(e);return t.type||(t.type=AS(sd(t.target),t.mapper))}(e):262144&n?function(e){if(!e.links.type){const t=e.links.mappedType;if(!El(e,0))return t.containsError=!0,Rt;const n=AS(Cp(t.target||t),cS(t.mapper,Ap(t),e.links.keyType));let r=z&&16777216&e.flags&&!Ww(n,49152)?kA(n,!0):524288&e.links.checkFlags?GA(n):n;Il()||(Ai(i,Oa.Type_of_property_0_circularly_references_itself_in_mapped_type_1,rl(e),il(t)),r=Rt),e.links.type=r}return e.links.type}(e):8192&n?function(e){const t=Ui(e);t.type||(t.type=yI(e.links.propertyType,e.links.mappedType,e.links.constraintType));return t.type}(e):7&e.flags?Uc(e,t):9136&e.flags?Yc(e):8&e.flags?Qc(e):98304&e.flags?Jc(e):2097152&e.flags?Zc(e):Rt}function cd(e){return zA(sd(e),!!(16777216&e.flags))}function dd(e,t){return void 0!==e&&void 0!==t&&0!==(4&RS(e))&&e.target===t}function pd(e){return 4&RS(e)?e.target:e}function fd(e,t){return function e(n){if(7&RS(n)){const r=pd(n);return r===t||se(jd(r),e)}if(2097152&n.flags)return se(n.types,e);return!1}(e)}function hd(e,t){for(const n of t)e=Ie(e,eu(ps(n)));return e}function gd(e,t){for(;;){if((e=e.parent)&&TD(e)){const t=Eg(e);if(6===t||3===t){const t=ps(e.left);t&&t.parent&&!Cl(t.parent.valueDeclaration,(t=>e===t))&&(e=t.parent.valueDeclaration)}}if(!e)return;switch(e.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const n=gd(e,t);if(200===e.kind)return Ee(n,eu(ps(e.typeParameter)));if(194===e.kind)return ce(n,nE(e));const r=hd(n,Cc(e)),o=t&&(263===e.kind||231===e.kind||264===e.kind||gP(e))&&qd(ps(e)).thisType;return o?Ee(r,o):r}case 348:const n=ry(e);n&&(e=n.valueDeclaration);break;case 327:{const n=gd(e,t);return e.tags?hd(n,J(e.tags,(e=>BM(e)?e.typeParameters:void 0))):n}}}}function yd(e){var t;const n=32&e.flags||16&e.flags?e.valueDeclaration:null==(t=e.declarations)?void 0:t.find((e=>{if(264===e.kind)return!0;if(260!==e.kind)return!1;const t=e.initializer;return!!t&&(218===t.kind||219===t.kind)}));return In.assert(!!n,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),gd(n)}function Sd(e){if(!e.declarations)return;let t;for(const n of e.declarations)if(264===n.kind||263===n.kind||231===n.kind||gP(n)||qg(n)){t=hd(t,Cc(n))}return t}function Rd(e){const t=wf(e,1);if(1===t.length){const e=t[0];if(!e.typeParameters&&1===e.parameters.length&&Zz(e)){const t=zP(e.parameters[0]);return zl(t)||mx(t)===Tt}}return!1}function Cd(e){if(wf(e,1).length>0)return!0;if(8650752&e.flags){const t=lf(e);return!!t&&Rd(t)}return!1}function wd(e){const t=IS(e.symbol);return t&&Oy(t)}function Od(e,t,n){const r=T(t),o=$h(n);return G(wf(e,1),(e=>(o||r>=dm(e.typeParameters))&&r<=T(e.typeParameters)))}function Fd(e,t,n){const r=Od(e,t,n),o=U(t,JE);return K(r,(e=>se(e.typeParameters)?Am(e,o,$h(n)):e))}function Wd(e){if(!e.resolvedBaseConstructorType){const t=IS(e.symbol),n=t&&Oy(t),r=wd(e);if(!r)return e.resolvedBaseConstructorType=Pt;if(!El(e,1))return Rt;const o=bO(r.expression);if(n&&r!==n&&(In.assert(!n.typeArguments),bO(n.expression)),2621440&o.flags&&Fp(o),!Il())return Ai(e.symbol.valueDeclaration,Oa._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,rl(e.symbol)),e.resolvedBaseConstructorType=Rt;if(!(1&o.flags)&&o!==Gt&&!Cd(o)){const t=Ai(r.expression,Oa.Type_0_is_not_a_constructor_function_type,il(o));if(262144&o.flags){const e=Ym(o);let n=Mt;if(e){const t=wf(e,1);t[0]&&(n=bm(t[0]))}o.symbol.declarations&&xx(t,d_(o.symbol.declarations[0],Oa.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,rl(o.symbol),il(n)))}return e.resolvedBaseConstructorType=Rt}e.resolvedBaseConstructorType=o}return e.resolvedBaseConstructorType}function zd(e,t){Ai(e,Oa.Type_0_recursively_references_itself_as_a_base_type,il(t,void 0,2))}function jd(e){if(!e.baseTypesResolved){if(El(e,7)&&(8&e.objectFlags?e.resolvedBaseTypes=[Hd(e)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=lp;const t=yf(Wd(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=o;const n=wd(e);let r;const i=t.symbol?ou(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){const t=e.outerTypeParameters;if(t){const n=t.length-1,r=D_(e);return t[n].symbol!==r[n].symbol}return!0}(i))r=k_(n,t.symbol);else if(1&t.flags)r=t;else{const i=Fd(t,n.typeArguments,n);if(!i.length)return Ai(n.expression,Oa.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=o;r=bm(i[0])}if(Gl(r))return e.resolvedBaseTypes=o;const a=Tf(r);if(!Kd(a)){const t=cT(Cf(void 0,r),Oa.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,il(a));return si.add(f_(Yf(n.expression),n.expression,t)),e.resolvedBaseTypes=o}if(e===a||fd(a,e))return Ai(e.symbol.valueDeclaration,Oa.Type_0_recursively_references_itself_as_a_base_type,il(e,void 0,2)),e.resolvedBaseTypes=o;e.resolvedBaseTypes===lp&&(e.members=void 0);e.resolvedBaseTypes=[a]}(e),64&e.symbol.flags&&function(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||o,e.symbol.declarations)for(const t of e.symbol.declarations)if(264===t.kind&&By(t))for(const n of By(t)){const r=Tf(JE(n));Gl(r)||(Kd(r)?e===r||fd(r,e)?zd(t,e):e.resolvedBaseTypes===o?e.resolvedBaseTypes=[r]:e.resolvedBaseTypes.push(r):Ai(n,Oa.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(e)):In.fail("type must be class or interface"),!Il()&&e.symbol.declarations))for(const t of e.symbol.declarations)263!==t.kind&&264!==t.kind||zd(t,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function Hd(e){return ey(mv(K(e.typeParameters,((t,n)=>8&e.elementFlags[n]?Mb(t,Vt):t))||o),e.readonly)}function Kd(e){if(262144&e.flags){const t=lf(e);if(t)return Kd(t)}return!!(67633153&e.flags&&!wp(e)||2097152&e.flags&&M(e.types,Kd))}function qd(e){let t=Ui(e);const n=t;if(!t.declaredType){const r=32&e.flags?1:2,o=yP(e,e.valueDeclaration&&function(e){var t;const n=e&&vP(e,!0),r=null==(t=null==n?void 0:n.exports)?void 0:t.get("prototype"),o=(null==r?void 0:r.valueDeclaration)&&function(e){if(!e.parent)return!1;let t=e.parent;for(;t&&211===t.kind;)t=t.parent;if(t&&TD(t)&&IE(t.left)&&64===t.operatorToken.kind){const e=Lg(t);return sD(e)&&e}}(r.valueDeclaration);return o?ps(o):void 0}(e.valueDeclaration));o&&(e=o,t=o.links);const i=n.declaredType=t.declaredType=Ns(r,e),a=yd(e),s=Sd(e);(a||s||1===r||!function(e){if(!e.declarations)return!0;for(const t of e.declarations)if(264===t.kind){if(256&t.flags)return!1;const e=By(t);if(e)for(const t of e)if(EE(t.expression)){const e=qa(t.expression,788968,!0);if(!e||!(64&e.flags)||qd(e).thisType)return!1}}return!0}(e))&&(i.objectFlags|=4,i.typeParameters=ce(a,s),i.outerTypeParameters=a,i.localTypeParameters=s,i.instantiations=new Map,i.instantiations.set(s_(i.typeParameters),i),i.target=i,i.resolvedTypeArguments=i.typeParameters,i.thisType=Ms(e),i.thisType.isThisType=!0,i.thisType.constraint=i)}return t.declaredType}function Jd(e){var t;const n=Ui(e);if(!n.declaredType){if(!El(e,2))return Rt;const r=In.checkDefined(null==(t=e.declarations)?void 0:t.find(qg),"Type alias symbol with no valid declaration found"),o=Kg(r)?r.typeExpression:r.type;let i=o?JE(o):Rt;if(Il()){const t=Sd(e);t&&(n.typeParameters=t,n.instantiations=new Map,n.instantiations.set(s_(t),i))}else i=Rt,347===r.kind?Ai(r.typeExpression.type,Oa.Type_alias_0_circularly_references_itself,rl(e)):Ai(Bl(r)&&r.name||r,Oa.Type_alias_0_circularly_references_itself,rl(e));n.declaredType=i}return n.declaredType}function Xd(e){return 1056&e.flags&&8&e.symbol.flags?ou(ms(e.symbol)):e}function $d(e){const t=Ui(e);if(!t.declaredType){const n=[];if(e.declarations)for(const t of e.declarations)if(266===t.kind)for(const r of t.members)if(Au(r)){const t=ps(r),o=DB(r),i=FE(void 0!==o?VE(o,Kz(e),t):Yd(t));Ui(t).declaredType=i,n.push(WE(i))}const r=n.length?mv(n,1,e,void 0):Yd(e);1048576&r.flags&&(r.flags|=1024,r.symbol=e),t.declaredType=r}return t.declaredType}function Yd(e){const t=Rs(32,e),n=Rs(32,e);return t.regularType=t,t.freshType=n,n.regularType=t,n.freshType=n,t}function Qd(e){const t=Ui(e);if(!t.declaredType){const n=$d(ms(e));t.declaredType||(t.declaredType=n)}return t.declaredType}function eu(e){const t=Ui(e);return t.declaredType||(t.declaredType=Ms(e))}function ou(e){return au(e)||Rt}function au(e){return 96&e.flags?qd(e):524288&e.flags?Jd(e):262144&e.flags?eu(e):384&e.flags?$d(e):8&e.flags?Qd(e):2097152&e.flags?function(e){const t=Ui(e);return t.declaredType||(t.declaredType=ou(Wa(e)))}(e):void 0}function su(e){switch(e.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return su(e.elementType);case 183:return!e.typeArguments||e.typeArguments.every(su)}return!1}function lu(e){const t=Dc(e);return!t||su(t)}function cu(e){const t=Ab(e);return t?su(t):!Yu(e)}function du(e){if(e.declarations&&1===e.declarations.length){const t=e.declarations[0];if(t)switch(t.kind){case 172:case 171:return cu(t);case 174:case 173:case 176:case 177:case 178:return function(e){const t=Rb(e),n=Cc(e);return(176===e.kind||!!t&&su(t))&&e.parameters.every(cu)&&n.every(lu)}(t)}}return!1}function fu(e,t,n){const r=Mf();for(const o of e)r.set(o.escapedName,n&&du(o)?o:pS(o,t));return r}function _u(e,t){for(const n of t){if(bu(n))continue;const t=e.get(n.escapedName);(!t||t.valueDeclaration&&TD(t.valueDeclaration)&&!lc(t)&&!hh(t.valueDeclaration))&&(e.set(n.escapedName,n),e.set(n.escapedName,n))}}function bu(e){return!!e.valueDeclaration&&md(e.valueDeclaration)&&jb(e.valueDeclaration)}function Eu(e){if(!e.declaredProperties){const t=e.symbol,n=Mu(t);e.declaredProperties=ks(n),e.declaredCallSignatures=o,e.declaredConstructSignatures=o,e.declaredIndexInfos=o,e.declaredCallSignatures=_m(n.get("__call")),e.declaredConstructSignatures=_m(n.get("__new")),e.declaredIndexInfos=Km(t)}return e}function Su(e){if(!yC(e)&&!cD(e))return!1;const t=yC(e)?e.expression:e.argumentExpression;return EE(t)&&xA(yC(e)?MM(e):tO(t))}function Tu(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function xu(e){const t=jl(e);return!!t&&Su(t)}function Au(e){return!rv(e)||xu(e)}function Iu(e,t,n,r){In.assert(!!r.symbol,"The member is expected to have a symbol.");const o=Hi(r);if(!o.resolvedSymbol){o.resolvedSymbol=r.symbol;const i=TD(r)?r.left:r.name,a=cD(i)?tO(i.argumentExpression):MM(i);if(xA(a)){const s=AA(a),l=r.symbol.flags;let c=n.get(s);c||n.set(s,c=ki(0,s,4096));const d=t&&t.get(s);if(!(32&e.flags)&&(c.flags&Oi(l)||d)){const e=d?ce(d.declarations,c.declarations):c.declarations,t=!(8192&a.flags)&&Ll(s)||o_(i);x(e,(e=>Ai(jl(e)||e,Oa.Property_0_was_also_declared_here,t))),Ai(i||r,Oa.Duplicate_property_0,t),c=ki(0,s,4096)}return c.links.nameType=a,function(e,t,n){In.assert(!!(4096&mS(e)),"Expected a late-bound symbol."),e.flags|=n,Ui(t.symbol).lateSymbol=e,e.declarations?t.symbol.isReplaceableByMethod||e.declarations.push(t):e.declarations=[t],111551&n&&(e.valueDeclaration&&e.valueDeclaration.kind===t.kind||(e.valueDeclaration=t))}(c,r,l),c.parent?In.assert(c.parent===e,"Existing symbol parent should match new one"):c.parent=e,o.resolvedSymbol=c}}return o.resolvedSymbol}function Nu(e,t){const n=Ui(e);if(!n[t]){const r="resolvedExports"===t,i=r?1536&e.flags?ds(e).exports:e.exports:e.members;n[t]=i||b;const a=Mf();for(const t of e.declarations||o){const n=J_(t);if(n)for(const t of n)r===Vb(t)&&xu(t)&&Iu(e,i,a,t)}const s=hs(e).assignmentDeclarationMembers;if(s){const t=Ye(s.values());for(const n of t){const t=Eg(n);r===!(3===t||TD(n)&&vN(n,t)||9===t||6===t)&&xu(n)&&Iu(e,i,a,n)}}let l=function(e,t){if(!(null==e?void 0:e.size))return t;if(!(null==t?void 0:t.size))return e;const n=Mf();return ji(n,e),ji(n,t),n}(i,a);if(33554432&e.flags&&n.cjsExportMerged&&e.declarations)for(const n of e.declarations){const e=Ui(n.symbol)[t];l?e&&e.forEach(((e,t)=>{const n=l.get(t);if(n){if(n===e)return;l.set(t,zi(n,e))}else l.set(t,e)})):l=e}n[t]=l||b}return n[t]}function Mu(e){return 6256&e.flags?Nu(e,"resolvedMembers"):e.members||b}function ku(e){if(106500&e.flags&&"__computed"===e.escapedName){const t=Ui(e);if(!t.lateSymbol&&se(e.declarations,xu)){const t=us(e.parent);se(e.declarations,Vb)?ss(t):Mu(t)}return t.lateSymbol||(t.lateSymbol=e)}return e}function Pu(e,t,n){if(4&RS(e)){const n=e.target,r=D_(e);return T(n.typeParameters)===T(r)?v_(n,ce(r,[t||n.thisType])):e}if(2097152&e.flags){const r=K(e.types,(e=>Pu(e,t,n)));return r!==e.types?Cv(r):e}return n?yf(e):e}function Ou(e,t,n,r){let o,i,a,s,l;Me(n,r,0,n.length)?(i=t.symbol?Mu(t.symbol):Mf(t.declaredProperties),a=t.declaredCallSignatures,s=t.declaredConstructSignatures,l=t.declaredIndexInfos):(o=eS(n,r),i=fu(t.declaredProperties,o,1===n.length),a=QE(t.declaredCallSignatures,o),s=QE(t.declaredConstructSignatures,o),l=ZE(t.declaredIndexInfos,o));const c=jd(t);if(c.length){if(t.symbol&&i===Mu(t.symbol)){const e=Mf(t.declaredProperties),n=Fm(t.symbol);n&&e.set("__index",n),i=e}ws(e,i,a,s,l);const n=Oe(r);for(const e of c){const t=n?Pu(AS(e,o),n):e;_u(i,Hp(t)),a=ce(a,wf(t,0)),s=ce(s,wf(t,1));const r=t!==Tt?Kf(t):[Hm(jt,Tt,!1)];l=ce(l,G(r,(e=>!Ff(l,e.keyType))))}}ws(e,i,a,s,l)}function Fu(e,t,n,r,o,i,a,s){const l=new p(Ne,s);return l.declaration=e,l.typeParameters=t,l.parameters=r,l.thisParameter=n,l.resolvedReturnType=o,l.resolvedTypePredicate=i,l.minArgumentCount=a,l.resolvedMinArgumentCount=void 0,l.target=void 0,l.mapper=void 0,l.compositeSignatures=void 0,l.compositeKind=void 0,l}function Wu(e){const t=Fu(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,167&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function zu(e,t){const n=Wu(e);return n.compositeSignatures=t,n.compositeKind=1048576,n.target=void 0,n.mapper=void 0,n}function Gu(e,t){if((24&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});const n=8===t?"inner":"outer";return e.optionalCallSignatureCache[n]||(e.optionalCallSignatureCache[n]=function(e,t){In.assert(8===t||16===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const n=Wu(e);return n.flags|=t,n}(e,t))}function Vu(e,t){if(Zz(e)){const r=e.parameters.length-1,o=e.parameters[r].escapedName,i=sd(e.parameters[r]);if(tA(i))return[n(i,r,o)];if(!t&&1048576&i.flags&&M(i.types,tA))return U(i.types,(e=>n(e,r,o)))}return[e.parameters];function n(t,n,r){const o=D_(t),i=function(e,t){const n=new Map;return U(e.target.labeledElementDeclarations,((e,r)=>{const o=BP(e,r,t),i=n.get(o);return void 0===i?(n.set(o,1),o):(n.set(o,i+1),`${o}_${i}`)}))}(t,r),a=U(o,((r,o)=>{const a=i&&i[o]?i[o]:GP(e,n+o,t),s=t.target.elementFlags[o],l=ki(1,a,12&s?32768:2&s?16384:0);return l.links.type=4&s?ey(r):r,l}));return ce(e.parameters.slice(0,n),a)}}function Hu(e,t,n,r,o){for(const i of e)if(ax(i,t,n,r,o,n?VS:GS))return i}function Ku(e,t,n){if(t.typeParameters){if(n>0)return;for(let n=1;n<e.length;n++)if(!Hu(e[n],t,!1,!1,!1))return;return[t]}let r;for(let o=0;o<e.length;o++){const i=o===n?t:Hu(e[o],t,!1,!1,!0)||Hu(e[o],t,!0,!1,!0);if(!i)return;r=Ie(r,i)}return r}function Zu(e){let t,n;for(let r=0;r<e.length;r++){if(0===e[r].length)return o;e[r].length>1&&(n=void 0===n?r:-1);for(const n of e[r])if(!t||!Hu(t,n,!1,!1,!0)){const o=Ku(e,n,r);if(o){let e=n;if(o.length>1){let t=n.thisParameter;const r=x(o,(e=>e.thisParameter));if(r){t=VA(r,Cv(Z(o,(e=>e.thisParameter&&sd(e.thisParameter)))))}e=zu(n,o),e.thisParameter=t}(t||(t=[])).push(e)}}}if(!T(t)&&-1!==n){const r=e[void 0!==n?n:0];let o=r.slice();for(const t of e)if(t!==r){const e=t[0];if(In.assert(!!e,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),o=e.typeParameters&&se(o,(t=>!!t.typeParameters&&!tp(e.typeParameters,t.typeParameters)))?void 0:U(o,(t=>ap(t,e))),!o)break}t=o}return t||o}function tp(e,t){if(T(e)!==T(t))return!1;if(!e||!t)return!0;const n=eS(t,e);for(let r=0;r<e.length;r++){const o=e[r],i=t[r];if(o!==i&&!BS(Ym(o)||Mt,AS(Ym(i)||Mt,n)))return!1}return!0}function ap(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=eS(t.typeParameters,e.typeParameters));const o=e.declaration,i=function(e,t,n){const r=XP(e),o=XP(t),i=r>=o?e:t,a=i===e?t:e,s=i===e?r:o,l=YP(e)||YP(t),c=l&&!YP(i),d=new Array(s+(c?1:0));for(let u=0;u<s;u++){let p=KP(i,u);i===t&&(p=AS(p,n));let f=KP(a,u)||Mt;a===t&&(f=AS(f,n));const m=Cv([p,f]),_=l&&!c&&u===s-1,h=u>=$P(i)&&u>=$P(a),g=u>=r?void 0:GP(e,u),y=u>=o?void 0:GP(t,u),v=ki(1|(h&&!_?16777216:0),(g===y?g:g?y?void 0:g:y)||`arg${u}`,_?32768:h?16384:0);v.links.type=_?ey(m):m,d[u]=v}if(c){const e=ki(1,"args",32768);e.links.type=ey(HP(a,s)),a===t&&(e.links.type=AS(e.links.type,n)),d[s]=e}return d}(e,t,r),a=function(e,t,n){return e&&t?VA(e,Cv([sd(e),AS(sd(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),s=Fu(o,n,a,i,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),167&(e.flags|t.flags));return s.compositeKind=1048576,s.compositeSignatures=ce(2097152!==e.compositeKind&&e.compositeSignatures||[e],[t]),r?s.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?sS(e.mapper,r):r:2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures&&(s.mapper=e.mapper),s}function sp(e){const t=Kf(e[0]);if(t){const n=[];for(const r of t){const t=r.keyType;M(e,(e=>!!qf(e,t)))&&n.push(Hm(t,mv(U(e,(e=>Jf(e,t)))),se(e,(e=>qf(e,t).isReadonly))))}return n}return o}function pp(e,t){return e?t?Cv([e,t]):e:t}function mp(e){const t=B(e,(e=>wf(e,1).length>0)),n=U(e,Rd);if(t>0&&t===B(n,(e=>e))){const e=n.indexOf(!0);n[e]=!1}return n}function _p(e,t,n,r){const o=[];for(let i=0;i<t.length;i++)i===r?o.push(e):n[i]&&o.push(bm(wf(t[i],1)[0]));return Cv(o)}function hp(e,t){for(const n of t)e&&!M(e,(e=>!ax(e,n,!1,!1,!1,GS)))||(e=Ee(e,n));return e}function gp(e,t,n){if(e)for(let r=0;r<e.length;r++){const o=e[r];if(o.keyType===t.keyType)return e[r]=Hm(o.keyType,n?mv([o.type,t.type]):Cv([o.type,t.type]),n?o.isReadonly||t.isReadonly:o.isReadonly&&t.isReadonly),e}return Ee(e,t)}function yp(e){if(e.target){ws(e,b,o,o,o);return void ws(e,fu(zp(e.target),e.mapper,!1),QE(wf(e.target,0),e.mapper),QE(wf(e.target,1),e.mapper),ZE(Kf(e.target),e.mapper))}const t=us(e.symbol);if(2048&t.flags){ws(e,b,o,o,o);const n=Mu(t),r=_m(n.get("__call")),i=_m(n.get("__new"));return void ws(e,n,r,i,Km(t))}let n,r,i=ss(t);if(t===_e){const e=new Map;i.forEach((t=>{var n;418&t.flags||512&t.flags&&(null==(n=t.declarations)?void 0:n.length)&&M(t.declarations,Pm)||e.set(t.escapedName,t)})),i=e}if(ws(e,i,o,o,o),32&t.flags){const e=Wd(qd(t));11272192&e.flags?(i=Mf(function(e){const t=ks(e),n=jm(e);return n?ce(t,[n]):t}(i)),_u(i,Hp(e))):e===Tt&&(r=Hm(jt,Tt,!1))}const a=jm(i);if(a?n=qm(a):(r&&(n=Ee(n,r)),384&t.flags&&(32&ou(t).flags||se(e.properties,(e=>!!(296&sd(e).flags))))&&(n=Ee(n,co))),ws(e,i,o,o,n||o),8208&t.flags&&(e.callSignatures=_m(t)),32&t.flags){const n=qd(t);let r=t.members?_m(t.members.get("__constructor")):o;16&t.flags&&(r=xe(r.slice(),Z(e.callSignatures,(e=>gP(e.declaration)?Fu(e.declaration,e.typeParameters,e.thisParameter,e.parameters,n,void 0,e.minArgumentCount,167&e.flags):void 0)))),r.length||(r=function(e){const t=wf(Wd(e),1),n=IS(e.symbol),r=!!n&&Gb(n,64);if(0===t.length)return[Fu(void 0,e.localTypeParameters,void 0,o,e,void 0,0,r?4:0)];const i=wd(e),a=$h(i),s=Ah(i),l=T(s),c=[];for(const o of t){const t=dm(o.typeParameters),n=T(o.typeParameters);if(a||l>=t&&l<=n){const i=n?Cm(o,um(s,o.typeParameters,t,a)):Wu(o);i.typeParameters=e.localTypeParameters,i.resolvedReturnType=e,i.flags=r?4|i.flags:-5&i.flags,c.push(i)}}return c}(n)),e.constructSignatures=r}}function vp(e,t,n){return AS(e,eS([t.indexType,t.objectType],[GE(0),Dy([n])]))}function bp(e){const t=qf(e.source,jt),n=Lp(e.mappedType),r=!(1&n),i=4&n?0:16777216,a=t?[Hm(jt,yI(t.type,e.mappedType,e.constraintType),r&&t.isReadonly)]:o,s=Mf(),l=function(e){const t=Ip(e.mappedType);if(!(1048576&t.flags||2097152&t.flags))return;const n=1048576&t.flags?t.origin:t;if(!n||!(2097152&n.flags))return;const r=Cv(n.types.filter((t=>t!==e.constraintType)));return r!==tn?r:void 0}(e);for(const o of Hp(e.source)){if(l){if(!KS(Bv(o,8576),l))continue}const t=8192|(r&&Mw(o)?8:0),n=ki(4|o.flags&i,o.escapedName,t);if(n.declarations=o.declarations,n.links.nameType=Ui(o).nameType,n.links.propertyType=sd(o),8388608&e.constraintType.type.flags&&262144&e.constraintType.type.objectType.flags&&262144&e.constraintType.type.indexType.flags){const t=e.constraintType.type.objectType,r=vp(e.mappedType,e.constraintType.type,t);n.links.mappedType=r,n.links.constraintType=Jv(t)}else n.links.mappedType=e.mappedType,n.links.constraintType=e.constraintType;s.set(o.escapedName,n)}ws(e,s,o,o,a)}function Ep(e){if(4194304&e.flags){const t=yf(e.type);return iA(t)?Uy(t):Jv(t)}if(16777216&e.flags){if(e.root.isDistributive){const t=e.checkType,n=Ep(t);if(n!==t)return xS(e,lS(e.root.checkType,n,e.mapper),!1)}return e}if(1048576&e.flags)return VR(e,Ep,!0);if(2097152&e.flags){const t=e.types;return 2===t.length&&76&t[0].flags&&t[1]===kn?e:Cv(K(e.types,Ep))}return e}function Sp(e){return 4096&mS(e)}function Tp(e,t,n,r){for(const o of Hp(e))r(Bv(o,t));if(1&e.flags)r(jt);else for(const o of Kf(e))(!n||134217732&o.keyType.flags)&&r(o.keyType)}function xp(e){const t=Mf();let n;ws(e,b,o,o,o);const r=Ap(e),i=Ip(e),a=e.target||e,s=Rp(a),l=2!==Op(a),c=Cp(a),d=yf(Mp(e)),u=Lp(e),p=ee?128:8576;function f(o){wR(s?AS(s,cS(e.mapper,r,o)):o,(i=>function(o,i){if(xA(i)){const n=AA(i),r=t.get(n);if(r)r.links.nameType=mv([r.links.nameType,i]),r.links.keyType=mv([r.links.keyType,o]);else{const r=xA(o)?kf(d,AA(o)):void 0,a=!!(4&u||!(8&u)&&r&&16777216&r.flags),s=!!(1&u||!(2&u)&&r&&Mw(r)),c=z&&!a&&r&&16777216&r.flags,p=ki(4|(a?16777216:0),n,262144|(r?Sp(r):0)|(s?8:0)|(c?524288:0));p.links.mappedType=e,p.links.nameType=i,p.links.keyType=o,r&&(p.links.syntheticOrigin=r,p.declarations=l?r.declarations:void 0),t.set(n,p)}}else if(Jm(i)||33&i.flags){const t=5&i.flags?jt:40&i.flags?Vt:i,a=AS(c,cS(e.mapper,r,o)),s=tm(d,i),l=Hm(t,a,!!(1&u||!(2&u)&&(null==s?void 0:s.isReadonly)));n=gp(n,l,!0)}}(o,i)))}Np(e)?Tp(d,p,ee,f):wR(Ep(i),f),ws(e,t,o,o,n||o)}function Ap(e){return e.typeParameter||(e.typeParameter=eu(ps(e.declaration.typeParameter)))}function Ip(e){return e.constraintType||(e.constraintType=$p(Ap(e))||Rt)}function Rp(e){return e.declaration.nameType?e.nameType||(e.nameType=AS(JE(e.declaration.nameType),e.mapper)):void 0}function Cp(e){return e.templateType||(e.templateType=e.declaration.type?AS(ac(JE(e.declaration.type),!0,!!(4&Lp(e))),e.mapper):Rt)}function Dp(e){return Dc(e.declaration.typeParameter)}function Np(e){const t=Dp(e);return 198===t.kind&&143===t.operator}function Mp(e){if(!e.modifiersType)if(Np(e))e.modifiersType=AS(JE(Dp(e).type),e.mapper);else{const t=Ip(wb(e.declaration)),n=t&&262144&t.flags?$p(t):t;e.modifiersType=n&&4194304&n.flags?AS(n.type,e.mapper):Mt}return e.modifiersType}function Lp(e){const t=e.declaration;return(t.readonlyToken?41===t.readonlyToken.kind?2:1:0)|(t.questionToken?41===t.questionToken.kind?8:4:0)}function kp(e){const t=Lp(e);return 8&t?-1:4&t?1:0}function Pp(e){const t=kp(e),n=Mp(e);return t||(wp(n)?kp(n):0)}function wp(e){if(32&RS(e)){const t=Ip(e);if(fb(t))return!0;const n=Rp(e);if(n&&fb(AS(n,nS(Ap(e),t))))return!0}return!1}function Op(e){const t=Rp(e);return t?KS(t,Ap(e))?1:2:0}function Fp(e){return e.members||(524288&e.flags?4&e.objectFlags?function(e){const t=Eu(e.target),n=ce(t.typeParameters,[t.thisType]),r=D_(e);Ou(e,t,n,r.length===n.length?r:ce(r,[e]))}(e):3&e.objectFlags?function(e){Ou(e,Eu(e),o,o)}(e):1024&e.objectFlags?bp(e):16&e.objectFlags?yp(e):32&e.objectFlags?xp(e):In.fail("Unhandled object type "+In.formatObjectFlags(e.objectFlags)):1048576&e.flags?function(e){const t=Zu(U(e.types,(e=>e===Yn?[ao]:wf(e,0)))),n=Zu(U(e.types,(e=>wf(e,1)))),r=sp(e.types);ws(e,b,t,n,r)}(e):2097152&e.flags?function(e){let t,n,r;const i=e.types,a=mp(i),s=B(a,(e=>e));for(let o=0;o<i.length;o++){const l=e.types[o];if(!a[o]){let e=wf(l,1);e.length&&s>0&&(e=U(e,(e=>{const t=Wu(e);return t.resolvedReturnType=_p(bm(e),i,a,o),t}))),n=hp(n,e)}t=hp(t,wf(l,0)),r=Ue(Kf(l),((e,t)=>gp(e,t,!1)),r)}ws(e,b,t||o,n||o,r||o)}(e):In.fail("Unhandled type "+In.formatTypeFlags(e.flags))),e}function zp(e){return 524288&e.flags?Fp(e).properties:o}function Bp(e,t){if(524288&e.flags){const n=Fp(e).members.get(t);if(n&&xs(n))return n}}function Gp(e){if(!e.resolvedProperties){const t=Mf();for(const n of e.types){for(const r of Hp(n))if(!t.has(r.escapedName)){const n=Sf(e,r.escapedName,!!(2097152&e.flags));n&&t.set(r.escapedName,n)}if(1048576&e.flags&&0===Kf(n).length)break}e.resolvedProperties=ks(t)}return e.resolvedProperties}function Hp(e){return 3145728&(e=vf(e)).flags?Gp(e):zp(e)}function Xp(e){return 262144&e.flags?$p(e):8388608&e.flags?function(e){return df(e)?function(e){if(gf(e))return Nb(e.objectType,e.indexType);const t=tf(e.indexType);if(t&&t!==e.indexType){const n=kb(e.objectType,t,e.accessFlags);if(n)return n}const n=tf(e.objectType);if(n&&n!==e.objectType)return kb(n,e.indexType,e.accessFlags);return}(e):void 0}(e):16777216&e.flags?sf(e):lf(e)}function $p(e){return df(e)?Ym(e):void 0}function ef(e,t=0){var n;return t<5&&!(!e||!(262144&e.flags&&se(null==(n=e.symbol)?void 0:n.declarations,(e=>Gb(e,4096)))||3145728&e.flags&&se(e.types,(e=>ef(e,t)))||8388608&e.flags&&ef(e.objectType,t+1)||16777216&e.flags&&ef(sf(e),t+1)||33554432&e.flags&&ef(e.baseType,t)||32&RS(e)&&function(e,t){const n=bS(e);return!!n&&ef(n,t)}(e,t)||iA(e)&&P(qy(e),((n,r)=>!!(8&e.target.elementFlags[r])&&ef(n,t)))>=0))}function tf(e){const t=gb(e,!1);return t!==e?t:Xp(e)}function nf(e){if(!e.resolvedDefaultConstraint){const t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?AS(JE(e.root.node.trueType),e.combinedMapper):eE(e))}(e),n=tE(e);e.resolvedDefaultConstraint=zl(t)?n:zl(n)?t:mv([t,n])}return e.resolvedDefaultConstraint}function of(e){if(void 0!==e.resolvedConstraintOfDistributive)return e.resolvedConstraintOfDistributive||void 0;if(e.root.isDistributive&&e.restrictiveInstantiation!==e){const t=gb(e.checkType,!1),n=t===e.checkType?Xp(t):t;if(n&&n!==e.checkType){const t=xS(e,lS(e.root.checkType,n,e.mapper),!0);if(!(131072&t.flags))return e.resolvedConstraintOfDistributive=t,t}}e.resolvedConstraintOfDistributive=!1}function af(e){return of(e)||nf(e)}function sf(e){return df(e)?af(e):void 0}function lf(e){if(464781312&e.flags||iA(e)){const t=uf(e);return t!==Wn&&t!==zn?t:void 0}return 4194304&e.flags?gn:void 0}function cf(e){return lf(e)||e}function df(e){return uf(e)!==zn}function uf(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;const t=[];return e.resolvedBaseConstraint=n(e);function n(e){if(!e.immediateBaseConstraint){if(!El(e,4))return zn;let n;const o=ox(e);if((t.length<10||t.length<50&&!F(t,o))&&(t.push(o),n=function(e){if(262144&e.flags){const t=Ym(e);return e.isThisType||!t?t:r(t)}if(3145728&e.flags){const t=e.types,n=[];let o=!1;for(const e of t){const t=r(e);t?(t!==e&&(o=!0),n.push(t)):o=!0}return o?1048576&e.flags&&n.length===t.length?mv(n):2097152&e.flags&&n.length?Cv(n):void 0:e}if(4194304&e.flags)return gn;if(134217728&e.flags){const t=e.types,n=Z(t,r);return n.length===t.length?Yv(e.texts,n):jt}if(268435456&e.flags){const t=r(e.type);return t&&t!==e.type?Zv(e.symbol,t):jt}if(8388608&e.flags){if(gf(e))return r(Nb(e.objectType,e.indexType));const t=r(e.objectType),n=r(e.indexType),o=t&&n&&kb(t,n,e.accessFlags);return o&&r(o)}if(16777216&e.flags){const t=af(e);return t&&r(t)}if(33554432&e.flags)return r(sh(e));if(iA(e)){return Dy(U(qy(e),((t,n)=>{const o=262144&t.flags&&8&e.target.elementFlags[n]&&r(t)||t;return o!==t&&WR(o,(e=>px(e)&&!iA(e)))?o:t})),e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}return e}(gb(e,!1)),t.pop()),!Il()){if(262144&e.flags){const t=Xm(e);if(t){const n=Ai(t,Oa.Type_parameter_0_has_a_circular_constraint,il(e));!i||Ay(t,i)||Ay(i,t)||xx(n,d_(i,Oa.Circularity_originates_in_type_at_this_location))}}n=zn}e.immediateBaseConstraint=n||Wn}return e.immediateBaseConstraint}function r(e){const t=n(e);return t!==Wn&&t!==zn?t:void 0}}function pf(e){if(e.default)e.default===Bn&&(e.default=zn);else if(e.target){const t=pf(e.target);e.default=t?AS(t,e.mapper):Wn}else{e.default=Bn;const t=e.symbol&&x(e.symbol.declarations,(e=>vC(e)&&e.default)),n=t?JE(t):Wn;e.default===Bn&&(e.default=n)}return e.default}function ff(e){const t=pf(e);return t!==Wn&&t!==zn?t:void 0}function mf(e){return!(!e.symbol||!x(e.symbol.declarations,(e=>vC(e)&&e.default)))}function _f(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){const t=e.target??e,n=bS(t);if(n&&!t.declaration.nameType){const r=Mp(e),o=wp(r)?_f(r):lf(r);if(o&&WR(o,(e=>px(e)||hf(e))))return AS(t,lS(n,o,e.mapper))}return e}(e))}function hf(e){return!!(2097152&e.flags)&&M(e.types,px)}function gf(e){let t;return!(!(8388608&e.flags&&32&RS(t=e.objectType)&&!wp(t)&&fb(e.indexType))||8&Lp(t)||t.declaration.nameType)}function yf(e){const t=465829888&e.flags?lf(e)||Mt:e,n=RS(t);return 32&n?_f(t):4&n&&t!==e?Pu(t,e):2097152&t.flags?function(e,t){return e.resolvedApparentType||(e.resolvedApparentType=Pu(e,t,!0))}(t,e):402653316&t.flags?nr:296&t.flags?rr:2112&t.flags?jr||(jr=ng("BigInt",0,!1))||Nn:528&t.flags?or:12288&t.flags?xg():67108864&t.flags?Nn:4194304&t.flags?gn:2&t.flags&&!z?Nn:t}function vf(e){return Tf(yf(Tf(e)))}function bf(e,t,n){var r,o,i;let a,s,l;const c=1048576&e.flags;let d,u=4,p=c?0:8,f=!1;for(const x of e.types){const e=yf(x);if(!(Gl(e)||131072&e.flags)){const r=kf(e,t,n),o=r?_S(r):0;if(r){if(106500&r.flags&&(d??(d=c?0:16777216),c?d|=16777216&r.flags:d&=r.flags),a){if(r!==a){if((BW(r)||r)===(BW(a)||a)&&-1===ix(a,r,((e,t)=>e===t?-1:0)))f=!!a.parent&&!!T(Sd(a.parent));else{s||(s=new Map,s.set(Kz(a),a));const e=Kz(r);s.has(e)||s.set(e,r)}}}else a=r;c&&Mw(r)?p|=8:c||Mw(r)||(p&=-9),p|=(6&o?0:256)|(4&o?512:0)|(2&o?1024:0)|(256&o?2048:0),AL(r)||(u=2)}else if(c){const n=!Tu(t)&&nm(e,t);n?(p|=32|(n.isReadonly?8:0),l=Ee(l,tA(e)?uA(e)||Pt:n.type)):!WI(e)||2097152&RS(e)?p|=16:(p|=32,l=Ee(l,Pt))}}}if(!a||c&&(s||48&p)&&1536&p&&(!s||!function(e){let t;for(const n of e){if(!n.declarations)return;if(t){if(t.forEach((e=>{F(n.declarations,e)||t.delete(e)})),0===t.size)return}else t=new Set(n.declarations)}return t}(s.values())))return;if(!s&&!(16&p)&&!l){if(f){const t=null==(r=yt(a,Lf))?void 0:r.links,n=VA(a,null==t?void 0:t.type);return n.parent=null==(i=null==(o=a.valueDeclaration)?void 0:o.symbol)?void 0:i.parent,n.links.containingType=e,n.links.mapper=null==t?void 0:t.mapper,n.links.writeType=od(a),n}return a}const m=s?Ye(s.values()):[a];let _,h,g;const y=[];let v,b,E=!1;for(const T of m){b?T.valueDeclaration&&T.valueDeclaration!==b&&(E=!0):b=T.valueDeclaration,_=xe(_,T.declarations);const e=sd(T);h||(h=e,g=Ui(T).nameType);const t=od(T);(v||t!==e)&&(v=Ee(v||y.slice(),t)),e!==h&&(p|=64),(Gx(e)||cb(e))&&(p|=128),131072&e.flags&&e!==An&&(p|=131072),y.push(e)}xe(y,l);const S=ki(4|(d??0),t,u|p);return S.links.containingType=e,!E&&b&&(S.valueDeclaration=b,b.symbol.parent&&(S.parent=b.symbol.parent)),S.declarations=_,S.links.nameType=g,y.length>2?(S.links.checkFlags|=65536,S.links.deferralParent=e,S.links.deferralConstituents=y,S.links.deferralWriteConstituents=v):(S.links.type=c?mv(y):Cv(y),v&&(S.links.writeType=c?mv(v):Cv(v))),S}function Ef(e,t,n){var r,o,i;let a=n?null==(r=e.propertyCacheWithoutObjectFunctionPropertyAugment)?void 0:r.get(t):null==(o=e.propertyCache)?void 0:o.get(t);if(!a&&(a=bf(e,t,n),a)){if((n?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=Mf()):e.propertyCache||(e.propertyCache=Mf())).set(t,a),n&&!(48&mS(a))&&!(null==(i=e.propertyCache)?void 0:i.get(t))){(e.propertyCache||(e.propertyCache=Mf())).set(t,a)}}return a}function Sf(e,t,n){const r=Ef(e,t,n);return!r||16&mS(r)?void 0:r}function Tf(e){return 1048576&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){const t=K(e.types,Tf);if(t===e.types)return e;const n=mv(t);1048576&n.flags&&(n.resolvedReducedType=n);return n}(e)):2097152&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|(se(Gp(e),xf)?33554432:0)),33554432&e.objectFlags?tn:e):e}function xf(e){return Af(e)||If(e)}function Af(e){return!(16777216&e.flags)&&192===(131264&mS(e))&&!!(131072&sd(e).flags)}function If(e){return!e.valueDeclaration&&!!(1024&mS(e))}function Rf(e){return!!(1048576&e.flags&&16777216&e.objectFlags&&se(e.types,Rf)||2097152&e.flags&&function(e){const t=e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=AS(e,Rn));return Tf(t)!==t}(e))}function Cf(e,t){if(2097152&t.flags&&33554432&RS(t)){const n=L(Gp(t),Af);if(n)return cT(e,Oa.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,il(t,void 0,536870912),rl(n));const r=L(Gp(t),If);if(r)return cT(e,Oa.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,il(t,void 0,536870912),rl(r))}return e}function kf(e,t,n,r){var o,i;if(524288&(e=vf(e)).flags){const a=Fp(e),s=a.members.get(t);if(s&&!r&&512&(null==(o=e.symbol)?void 0:o.flags)&&(null==(i=Ui(e.symbol).typeOnlyExportStarMap)?void 0:i.has(t)))return;if(s&&xs(s,r))return s;if(n)return;const l=a===Fn?Yn:a.callSignatures.length?Qn:a.constructSignatures.length?Zn:void 0;if(l){const e=Bp(l,t);if(e)return e}return Bp($n,t)}if(2097152&e.flags){const r=Sf(e,t,!0);return r||(n?void 0:Sf(e,t,n))}if(1048576&e.flags)return Sf(e,t,n)}function Pf(e,t){if(3670016&e.flags){const n=Fp(e);return 0===t?n.callSignatures:n.constructSignatures}return o}function wf(e,t){const n=Pf(vf(e),t);if(0===t&&!T(n)&&1048576&e.flags){if(e.arrayFallbackSignatures)return e.arrayFallbackSignatures;let r;if(WR(e,(e=>{var t;return!!(null==(t=e.symbol)?void 0:t.parent)&&function(e){if(!e||!er.symbol||!tr.symbol)return!1;return!!Es(e,er.symbol)||!!Es(e,tr.symbol)}(e.symbol.parent)&&(r?r===e.symbol.escapedName:(r=e.symbol.escapedName,!0))}))){const n=ey(VR(e,(e=>tS((Of(e.symbol.parent)?tr:er).typeParameters[0],e.mapper))),OR(e,(e=>Of(e.symbol.parent))));return e.arrayFallbackSignatures=wf(Ol(n,r),t)}e.arrayFallbackSignatures=n}return n}function Of(e){return!(!e||!tr.symbol)&&!!Es(e,tr.symbol)}function Ff(e,t){return L(e,(e=>e.keyType===t))}function jf(e,t){let n,r,o;for(const i of e)i.keyType===jt?n=i:Vf(t,i.keyType)&&(r?(o||(o=[r])).push(i):r=i);return o?Hm(Mt,Cv(U(o,(e=>e.type))),Ue(o,((e,t)=>e&&t.isReadonly),!0)):r||(n&&Vf(t,jt)?n:void 0)}function Vf(e,t){return KS(e,t)||t===jt&&KS(e,Vt)||t===Vt&&(e===Sn||!!(128&e.flags)&&nA(e.value))}function Uf(e){if(3670016&e.flags){return Fp(e).indexInfos}return o}function Kf(e){return Uf(vf(e))}function qf(e,t){return Ff(Kf(e),t)}function Jf(e,t){var n;return null==(n=qf(e,t))?void 0:n.type}function Xf(e,t){return Kf(e).filter((e=>Vf(t,e.keyType)))}function tm(e,t){return jf(Kf(e),t)}function nm(e,t){return tm(e,Tu(t)?Zt:BE(Ll(t)))}function rm(e){var t;let n;for(const r of Cc(e))n=Ie(n,eu(r.symbol));return(null==n?void 0:n.length)?n:sN(e)?null==(t=fm(e))?void 0:t.typeParameters:void 0}function om(e){const t=[];return e.forEach(((e,n)=>{Ls(n)||t.push(e)})),t}function sm(e,t){if(Xs(e))return;const n=qi(fe,'"'+e+'"',512);return n&&t?us(n):n}function lm(e){if(Ug(e)||cA(e)||pA(e))return!0;if(e.initializer){const t=pm(e.parent),n=e.parent.parameters.indexOf(e);return In.assert(n>=0),n>=$P(t,3)}const t=xh(e.parent);return!!t&&(!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=Uk(t).length)}function cm(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function dm(e){let t=0;if(e)for(let n=0;n<e.length;n++)mf(e[n])||(t=n+1);return t}function um(e,t,n,r){const o=T(t);if(!o)return[];const i=T(e);if(r||i>=n&&i<=o){const n=e?e.slice():[];for(let e=i;e<o;e++)n[e]=Rt;const a=VI(r);for(let e=i;e<o;e++){let o=ff(t[e]);r&&o&&(BS(o,Mt)||BS(o,Nn))&&(o=Tt),n[e]=o?AS(o,eS(t,n)):a}return n.length=t.length,n}return e&&e.slice()}function pm(e){const t=Hi(e);if(!t.resolvedSignature){const n=[];let r,o=0,i=0,a=$h(e)?mc(e):void 0,s=!1;const l=xh(e),c=Hg(e);!l&&$h(e)&&gy(e)&&!Ql(e)&&!vc(e)&&(o|=32);for(let t=c?1:0;t<e.parameters.length;t++){const c=e.parameters[t];if($h(c)&&WM(c)){a=c;continue}let d=c.symbol;const u=OM(c)?c.typeExpression&&c.typeExpression.type:c.type;if(d&&4&d.flags&&!Vd(c.name)){d=ta(c,d.escapedName,111551,void 0,void 0,!1)}0===t&&"this"===d.escapedName?(s=!0,r=c.symbol):n.push(d),u&&201===u.kind&&(o|=2);cA(c)||c.initializer||c.questionToken||ip(c)||l&&n.length>l.arguments.length&&!u||pA(c)||(i=n.length)}if((177===e.kind||178===e.kind)&&Au(e)&&(!s||!r)){const t=177===e.kind?178:177,n=Df(ps(e),t);n&&(r=function(e){const t=dG(e);return t&&t.symbol}(n))}a&&a.typeExpression&&(r=VA(ki(1,"this"),JE(a.typeExpression)));const d=SM(e)?sy(e):e,u=d&&RC(d)?qd(us(d.parent.symbol)):void 0,p=u?u.localTypeParameters:rm(e);(op(e)||$h(e)&&function(e,t){if(SM(e)||!mm(e))return!1;const n=Oe(e.parameters),r=n?ql(n):Sc(e).filter(OM),o=I(r,(e=>e.typeExpression&&yM(e.typeExpression.type)?e.typeExpression.type:void 0)),i=ki(3,"args",32768);o?i.links.type=ey(JE(o.type)):(i.links.checkFlags|=65536,i.links.deferralParent=tn,i.links.deferralConstituents=[sr],i.links.deferralWriteConstituents=[sr]);o&&t.pop();return t.push(i),!0}(e,n))&&(o|=1),(OC(e)&&Gb(e,64)||RC(e)&&Gb(e.parent,64))&&(o|=4),t.resolvedSignature=Fu(e,p,r,n,void 0,void 0,i,o)}return t.resolvedSignature}function fm(e){if(!$h(e)||!Ad(e))return;const t=yc(e);return(null==t?void 0:t.typeExpression)&&Nk(JE(t.typeExpression))}function mm(e){const t=Hi(e);return void 0===t.containsArgumentsReference&&(512&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function e(t){if(!t)return!1;switch(t.kind){case 80:return t.escapedText===ve.escapedName&&WB(t)===ve;case 172:case 174:case 177:case 178:return 167===t.name.kind&&e(t.name);case 211:case 212:return e(t.expression);case 303:return e(t.initializer);default:return!Ev(t)&&!j_(t)&&!!oP(t,e)}}(e.body)),t.containsArgumentsReference}function _m(e){if(!e||!e.declarations)return o;const t=[];for(let n=0;n<e.declarations.length;n++){const r=e.declarations[n];if(Td(r)){if(n>0&&r.body){const t=e.declarations[n-1];if(r.parent===t.parent&&r.kind===t.kind&&r.pos===t.end)continue}if($h(r)&&r.jsDoc){const e=iy(r);if(T(e)){for(const n of e){const e=n.typeExpression;void 0!==e.type||RC(r)||eI(e,Tt),t.push(pm(e))}continue}}t.push(!eA(r)&&!oh(r)&&fm(r)||pm(r))}}return t}function hm(e){const t=Xa(e,e);if(t){const e=Za(t);if(e)return sd(e)}return Tt}function gm(e){if(e.thisParameter)return sd(e.thisParameter)}function ym(e){if(!e.resolvedTypePredicate){if(e.target){const r=ym(e.target);e.resolvedTypePredicate=r?(t=r,n=e.mapper,cm(t.kind,t.parameterName,t.parameterIndex,AS(t.type,n))):oo}else if(e.compositeSignatures)e.resolvedTypePredicate=function(e,t){let n;const r=[];for(const i of e){const e=ym(i);if(e){if(0!==e.kind&&1!==e.kind||n&&!gv(n,e))return;n=e,r.push(e.type)}else{const e=2097152!==t?bm(i):void 0;if(e!==Ht&&e!==Kt)return}}if(!n)return;const o=vm(r,t);return cm(n.kind,n.parameterName,n.parameterIndex,o)}(e.compositeSignatures,e.compositeKind)||oo;else{const t=e.declaration&&Rb(e.declaration);let n;if(!t){const t=fm(e.declaration);t&&e!==t&&(n=ym(t))}e.resolvedTypePredicate=t&&kC(t)?function(e,t){const n=e.parameterName,r=e.type&&JE(e.type);return 197===n.kind?cm(e.assertsModifier?2:0,void 0,void 0,r):cm(e.assertsModifier?3:1,n.escapedText,P(t.parameters,(e=>e.escapedName===n.escapedText)),r)}(t,e):n||oo}In.assert(!!e.resolvedTypePredicate)}var t,n;return e.resolvedTypePredicate===oo?void 0:e.resolvedTypePredicate}function vm(e,t,n){return 2097152!==t?mv(e,n):Cv(e)}function bm(e){if(!e.resolvedReturnType){if(!El(e,3))return Rt;let t=e.target?AS(bm(e.target),e.mapper):e.compositeSignatures?AS(vm(U(e.compositeSignatures,bm),e.compositeKind,2),e.mapper):Em(e.declaration)||(im(e.declaration.body)?Tt:bw(e.declaration));if(8&e.flags?t=wA(t):16&e.flags&&(t=kA(t)),!Il()){if(e.declaration){const t=Rb(e.declaration);if(t)Ai(t,Oa.Return_type_annotation_circularly_references_itself);else if($){const t=e.declaration,n=jl(t);n?Ai(n,Oa._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,o_(n)):Ai(t,Oa.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}t=Tt}e.resolvedReturnType=t}return e.resolvedReturnType}function Em(e){if(176===e.kind)return qd(us(e.parent.symbol));const t=Rb(e);if(SM(e)){const n=cy(e);if(n&&RC(n.parent)&&!t)return qd(us(n.parent.parent.symbol))}if(Hg(e))return JE(e.parameters[0].type);if(t)return JE(t);if(177===e.kind&&Au(e)){const t=$h(e)&&oc(e);if(t)return t;const n=Kc(Df(ps(e),178));if(n)return n}return function(e){const t=fm(e);return t&&bm(t)}(e)}function Sm(e){return e.compositeSignatures&&se(e.compositeSignatures,Sm)||!e.resolvedReturnType&&Tl(e,3)>=0}function Tm(e){if(Zz(e)){const t=sd(e.parameters[e.parameters.length-1]),n=tA(t)?uA(t):t;return n&&Jf(n,Vt)}}function Am(e,t,n,r){const o=Rm(e,um(t,e.typeParameters,dm(e.typeParameters),n));if(r){const e=Mk(bm(o));if(e){const t=Wu(e);t.typeParameters=r;const n=Wu(o);return n.resolvedReturnType=Om(t),n}}return o}function Rm(e,t){const n=e.instantiations||(e.instantiations=new Map),r=s_(t);let o=n.get(r);return o||n.set(r,o=Cm(e,t)),o}function Cm(e,t){return uS(e,function(e,t){return eS(e.typeParameters,t)}(e,t),!0)}function Dm(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return uS(e,aS(e.typeParameters),!0)}(e)):e}function Nm(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=function(e){return Am(e,U(e.typeParameters,(e=>e.target&&!$p(e.target)?e.target:e)),$h(e.declaration))}(e)):e}function Mm(e){const t=e.typeParameters;if(t){if(e.baseSignatureCache)return e.baseSignatureCache;const n=aS(t),r=eS(t,U(t,(e=>$p(e)||Mt)));let o=U(t,(e=>AS(e,r)||Mt));for(let e=0;e<t.length-1;e++)o=YE(o,r);return o=YE(o,n),e.baseSignatureCache=uS(e,eS(t,o),!0)}return e}function Om(e){var t;if(!e.isolatedSignatureType){const n=null==(t=e.declaration)?void 0:t.kind,r=void 0===n||176===n||180===n||185===n,i=Ns(16);i.members=b,i.properties=o,i.callSignatures=r?o:[e],i.constructSignatures=r?[e]:o,i.indexInfos=o,e.isolatedSignatureType=i}return e.isolatedSignatureType}function Fm(e){return e.members?jm(e.members):void 0}function jm(e){return e.get("__index")}function Hm(e,t,n,r){return{keyType:e,type:t,isReadonly:n,declaration:r}}function Km(e){const t=Fm(e);return t?qm(t):o}function qm(e){if(e.declarations){const t=[];for(const n of e.declarations)if(1===n.parameters.length){const e=n.parameters[0];e.type&&wR(JE(e.type),(e=>{Jm(e)&&!Ff(t,e)&&t.push(Hm(e,n.type?JE(n.type):Tt,Bb(n,8),n))}))}return t}return o}function Jm(e){return!!(4108&e.flags)||cb(e)||!!(2097152&e.flags)&&!ub(e)&&se(e.types,Jm)}function Xm(e){return Z(G(e.symbol&&e.symbol.declarations,vC),Dc)[0]}function $m(e,t){var n;let r;if(null==(n=e.symbol)?void 0:n.declarations)for(const o of e.symbol.declarations)if(195===o.parent.kind){const[n=o.parent,i]=Ey(o.parent.parent);if(183!==i.kind||t){if(169===i.kind&&i.dotDotDotToken||191===i.kind||202===i.kind&&i.dotDotDotToken)r=Ee(r,ey(Mt));else if(204===i.kind)r=Ee(r,jt);else if(168===i.kind&&200===i.parent.kind)r=Ee(r,gn);else if(200===i.kind&&i.type&&Ty(i.type)===o.parent&&194===i.parent.kind&&i.parent.extendsType===i&&200===i.parent.checkType.kind&&i.parent.checkType.type){const e=i.parent.checkType;r=Ee(r,AS(JE(e.type),nS(eu(ps(e.typeParameter)),e.typeParameter.constraint?JE(e.typeParameter.constraint):gn)))}}else{const t=i,o=OO(t);if(o){const i=t.typeArguments.indexOf(n);if(i<o.length){const n=$p(o[i]);if(n){const i=AS(n,oS(o,o.map(((e,n)=>()=>kO(t,o,n)))));i!==e&&(r=Ee(r,i))}}}}}return r&&Cv(r)}function Ym(e){if(!e.constraint)if(e.target){const t=$p(e.target);e.constraint=t?AS(t,e.mapper):Wn}else{const t=Xm(e);if(t){let n=JE(t);1&n.flags&&!Gl(n)&&(n=200===t.parent.parent.kind?gn:Mt),e.constraint=n}else e.constraint=$m(e)||Wn}return e.constraint===Wn?void 0:e.constraint}function e_(e){const t=Df(e.symbol,168),n=BM(t.parent)?oy(t.parent):t.parent;return n&&fs(n)}function s_(e){let t="";if(e){const n=e.length;let r=0;for(;r<n;){const o=e[r].id;let i=1;for(;r+i<n&&e[r+i].id===o+i;)i++;t.length&&(t+=","),t+=o,i>1&&(t+=":"+i),r+=i}}return t}function p_(e,t){return e?`@${Kz(e)}`+(t?`:${s_(t)}`:""):""}function __(e,t){let n=0;for(const r of e)void 0!==t&&r.flags&t||(n|=RS(r));return 458752&n}function h_(e,t){return se(t)&&e===On?Mt:v_(e,t)}function v_(e,t){const n=s_(t);let r=e.instantiations.get(n);return r||(r=Ns(4,e.symbol),e.instantiations.set(n,r),r.objectFlags|=t?__(t):0,r.target=e,r.resolvedTypeArguments=t),r}function R_(e){const t=Rs(e.flags,e.symbol);return t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function C_(e,t,n,r,o){if(!r){const e=dE(r=cE(t));o=n?YE(e,n):e}const i=Ns(4,e.symbol);return i.target=e,i.node=t,i.mapper=n,i.aliasSymbol=r,i.aliasTypeArguments=o,i}function D_(e){var t,n;if(!e.resolvedTypeArguments){if(!El(e,6))return(null==(t=e.target.localTypeParameters)?void 0:t.map((()=>Rt)))||o;const r=e.node,a=r?183===r.kind?ce(e.target.outerTypeParameters,PO(r,e.target.localTypeParameters)):188===r.kind?[JE(r.elementType)]:U(r.elements,JE):o;Il()?e.resolvedTypeArguments=e.mapper?YE(a,e.mapper):a:(e.resolvedTypeArguments=(null==(n=e.target.localTypeParameters)?void 0:n.map((()=>Rt)))||o,Ai(e.node||i,e.target.symbol?Oa.Type_arguments_for_0_circularly_reference_themselves:Oa.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&rl(e.target.symbol)))}return e.resolvedTypeArguments}function N_(e){return T(e.target.typeParameters)}function k_(e,t){const n=ou(us(t)),r=n.localTypeParameters;if(r){const t=T(e.typeArguments),o=dm(r),i=$h(e);if(!(!$&&i)&&(t<o||t>r.length)){const t=i&&ND(e)&&!TM(e.parent);if(Ai(e,o===r.length?t?Oa.Expected_0_type_arguments_provide_these_with_an_extends_tag:Oa.Generic_type_0_requires_1_type_argument_s:t?Oa.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:Oa.Generic_type_0_requires_between_1_and_2_type_arguments,il(n,void 0,2),o,r.length),!i)return Rt}if(183===e.kind&&hy(e,T(e.typeArguments)!==r.length))return C_(n,e,void 0);return v_(n,ce(n.outerTypeParameters,um(Ah(e),r,o,i)))}return uh(e,t)?n:Rt}function w_(e,t,n,r){const o=ou(e);if(o===Nt){const n=zz.get(e.escapedName);if(void 0!==n&&t&&1===t.length)return 4===n?G_(t[0]):Zv(e,t[0])}const i=Ui(e),a=i.typeParameters,s=s_(t)+p_(n,r);let l=i.instantiations.get(s);return l||i.instantiations.set(s,l=CS(o,eS(a,um(t,a,dm(a),$h(e.valueDeclaration))),n,r)),l}function O_(e){var t;const n=null==(t=e.declarations)?void 0:t.find(qg);return!(!n||!fh(n))}function F_(e){return e.parent?`${F_(e.parent)}.${e.escapedName}`:e.escapedName}function W_(e){const t=(166===e.kind?e.right:211===e.kind?e.name:e).escapedText;if(t){const n=166===e.kind?W_(e.left):211===e.kind?W_(e.expression):void 0,r=n?`${F_(n)}.${t}`:t;let o=bt.get(r);return o||(bt.set(r,o=ki(524288,t,1048576)),o.parent=n,o.links.declaredType=Ct),o}return _t}function z_(e,t,n){const r=function(e){switch(e.kind){case 183:return e.typeName;case 233:const t=e.expression;if(EE(t))return t}}(e);if(!r)return _t;const o=qa(r,t,n);return o&&o!==_t?o:n?_t:W_(r)}function B_(e,t){if(t===_t)return Rt;if(96&(t=function(e){const t=e.valueDeclaration;if(!t||!$h(t)||524288&e.flags||fg(t,!1))return;const n=iN(t)?ug(t):pg(t);if(n){const t=fs(n);if(t)return yP(t,e)}}(t)||t).flags)return k_(e,t);if(524288&t.flags)return function(e,t){if(1048576&mS(t)){const n=Ah(e),r=p_(t,n);let o=Et.get(r);return o||(o=Ds(1,"error",void 0,`alias ${r}`),o.aliasSymbol=t,o.aliasTypeArguments=n,Et.set(r,o)),o}const n=ou(t),r=Ui(t).typeParameters;if(r){const n=T(e.typeArguments),o=dm(r);if(n<o||n>r.length)return Ai(e,o===r.length?Oa.Generic_type_0_requires_1_type_argument_s:Oa.Generic_type_0_requires_between_1_and_2_type_arguments,rl(t),o,r.length),Rt;const i=cE(e);let a,s=!i||!O_(t)&&O_(i)?void 0:i;if(s)a=dE(s);else if(ep(e)){const t=z_(e,2097152,!0);if(t&&t!==_t){const n=Wa(t);n&&524288&n.flags&&(s=n,a=Ah(e)||(r?[]:void 0))}}return w_(t,Ah(e),s,a)}return uh(e,t)?n:Rt}(e,t);const n=au(t);if(n)return uh(e,t)?WE(n):Rt;if(111551&t.flags&&dh(e)){const n=function(e,t){const n=Hi(e);if(!n.resolvedJSDocType){const r=sd(t);let o=r;if(t.valueDeclaration){const n=205===e.kind&&e.qualifier;r.symbol&&r.symbol!==t&&n&&(o=B_(e,r.symbol))}n.resolvedJSDocType=o}return n.resolvedJSDocType}(e,t);return n||(z_(e,788968),sd(t))}return Rt}function G_(e){return V_(e)?rh(e,Mt):e}function V_(e){return!!(3145728&e.flags&&se(e.types,V_)||33554432&e.flags&&!U_(e)&&V_(e.baseType)||524288&e.flags&&!yT(e)||432275456&e.flags&&!cb(e))}function U_(e){return!!(33554432&e.flags&&2&e.constraint.flags)}function nh(e,t){return 3&t.flags||t===e||1&e.flags?e:rh(e,t)}function rh(e,t){const n=`${Jy(e)}>${Jy(t)}`,r=it.get(n);if(r)return r;const o=Is(33554432);return o.baseType=e,o.constraint=t,it.set(n,o),o}function sh(e){return U_(e)?e.baseType:Cv([e.constraint,e.baseType])}function lh(e){return 189===e.kind&&1===e.elements.length}function ch(e,t,n){return lh(t)&&lh(n)?ch(e,t.elements[0],n.elements[0]):Ob(JE(t))===Ob(e)?JE(n):void 0}function dh(e){return!!(16777216&e.flags)&&(183===e.kind||205===e.kind)}function uh(e,t){return!e.typeArguments||(Ai(e,Oa.Type_0_is_not_generic,t?rl(t):e.typeName?o_(e.typeName):Dz),!1)}function ph(e){if(nC(e.typeName)){const t=e.typeArguments;switch(e.typeName.escapedText){case"String":return uh(e),jt;case"Number":return uh(e),Vt;case"Boolean":return uh(e),Qt;case"Void":return uh(e),en;case"Undefined":return uh(e),Pt;case"Null":return uh(e),Bt;case"Function":case"function":return uh(e),Yn;case"array":return t&&t.length||$?void 0:sr;case"promise":return t&&t.length||$?void 0:gw(Tt);case"Object":if(t&&2===t.length){if(eg(e)){const e=JE(t[0]),n=JE(t[1]),r=e===jt||e===Vt?[Hm(e,n,!1)]:o;return Os(void 0,b,o,o,r)}return Tt}return uh(e),$?void 0:Tt}}}function mh(e){const t=Hi(e);if(!t.resolvedType){if(Bc(e)&&pu(e.parent))return t.resolvedSymbol=_t,t.resolvedType=tO(e.parent.expression);let n,r;const o=788968;dh(e)&&(r=ph(e),r||(n=z_(e,o,!0),n===_t?n=z_(e,111551|o):z_(e,o),r=B_(e,n))),r||(n=z_(e,o),r=B_(e,n)),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function Ah(e){return U(e.typeArguments,JE)}function kh(e){const t=Hi(e);if(!t.resolvedType){const n=kP(e);t.resolvedType=WE(YA(n))}return t.resolvedType}function Ph(e,t){function n(e){const t=e.declarations;if(t)for(const n of t)switch(n.kind){case 263:case 264:case 266:return n}}if(!e)return t?On:Nn;const r=ou(e);return 524288&r.flags?T(r.typeParameters)!==t?(Ai(n(e),Oa.Global_type_0_must_have_1_type_parameter_s,wl(e),t),t?On:Nn):r:(Ai(n(e),Oa.Global_type_0_must_be_a_class_or_interface_type,wl(e)),t?On:Nn)}function wh(e,t){return Qh(e,111551,t?Oa.Cannot_find_global_value_0:void 0)}function Wh(e,t){return Qh(e,788968,t?Oa.Cannot_find_global_type_0:void 0)}function Xh(e,t,n){const r=Qh(e,788968,n?Oa.Cannot_find_global_type_0:void 0);if(!r||(ou(r),T(Ui(r).typeParameters)===t))return r;Ai(r.declarations&&L(r.declarations,dN),Oa.Global_type_0_must_have_1_type_parameter_s,wl(r),t)}function Qh(e,t,n){return ta(void 0,e,t,n,e,!1,!1,!1)}function ng(e,t,n){const r=Wh(e,n);return r||n?Ph(r,t):void 0}function ig(){return Lr||(Lr=ng("ImportMeta",0,!0)||Nn)}function ag(){if(!Pr){const e=ki(0,"ImportMetaExpression"),t=ig(),n=ki(4,"meta",8);n.parent=e,n.links.type=t;const r=Mf([n]);e.members=r,Pr=Os(e,r,o,o,o)}return Pr}function lg(e){return wr||(wr=ng("ImportCallOptions",0,e))||Nn}function gg(e){return Or||(Or=ng("ImportAttributes",0,e))||Nn}function Tg(e){return ur||(ur=wh("Symbol",e))}function xg(){return fr||(fr=ng("Symbol",0,!1))||Nn}function Ag(e){return _r||(_r=ng("Promise",1,e))||On}function Cg(e){return hr||(hr=ng("PromiseLike",1,e))||On}function Dg(e){return gr||(gr=wh("Promise",e))}function Pg(e){return Rr||(Rr=ng("AsyncIterable",1,e))||On}function Og(e){return vr||(vr=ng("Iterable",1,e))||On}function Wg(e){return Fr||(Fr=ng("Disposable",0,e))||Nn}function zg(e,t=0){const n=Qh(e,788968,void 0);return n&&Ph(n,t)}function jg(e){return Gr||(Gr=Xh("Awaited",1,e)||(e?_t:void 0)),Gr===_t?void 0:Gr}function Jg(e,t){return e!==On?v_(e,t):Nn}function Xg(e){return Jg(mr||(mr=ng("TypedPropertyDescriptor",1,!0)||On),[e])}function Yg(e){return Jg(Og(!0),[e])}function ey(e,t){return Jg(t?tr:er,[e])}function ty(e){switch(e.kind){case 190:return 2;case 191:return ny(e);case 202:return e.questionToken?2:e.dotDotDotToken?ny(e):1;default:return 1}}function ny(e){return qE(e.type)?4:8}function uy(e){const t=function(e){return $C(e)&&148===e.operator}(e.parent);if(qE(e))return t?tr:er;return Ny(U(e.elements,ty),t,U(e.elements,py))}function py(e){return GC(e)||bC(e)?e:void 0}function hy(e,t){return!!cE(e)||yy(e)&&(188===e.kind?Ry(e.elementType):189===e.kind?se(e.elements,Ry):t||se(e.typeArguments,Ry))}function yy(e){const t=e.parent;switch(t.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return yy(t);case 265:return!0}return!1}function Ry(e){switch(e.kind){case 183:return dh(e)||!!(524288&z_(e,788968).flags);case 186:return!0;case 198:return 158!==e.operator&&Ry(e.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Ry(e.type);case 191:return 188!==e.type.kind||Ry(e.type.elementType);case 192:case 193:return se(e.types,Ry);case 199:return Ry(e.objectType)||Ry(e.indexType);case 194:return Ry(e.checkType)||Ry(e.extendsType)||Ry(e.trueType)||Ry(e.falseType)}return!1}function Dy(e,t,n=!1,r=[]){const o=Ny(t||U(e,(e=>1)),n,r);return o===On?Nn:e.length?zy(o,e):o}function Ny(e,t,n){if(1===e.length&&4&e[0])return t?tr:er;const r=U(e,(e=>1&e?"#":2&e?"?":4&e?".":"*")).join()+(t?"R":"")+(se(n,(e=>!!e))?","+U(n,(e=>e?Hz(e):"_")).join(","):"");let i=Ve.get(r);return i||Ve.set(r,i=function(e,t,n){const r=e.length,i=B(e,(e=>!!(9&e)));let a;const s=[];let l=0;if(r){a=new Array(r);for(let o=0;o<r;o++){const r=a[o]=Ms(),i=e[o];if(l|=i,!(12&l)){const e=ki(4|(2&i?16777216:0),""+o,t?8:0);e.links.tupleLabelDeclaration=null==n?void 0:n[o],e.links.type=r,s.push(e)}}}const c=s.length,d=ki(4,"length",t?8:0);if(12&l)d.links.type=Vt;else{const e=[];for(let t=i;t<=r;t++)e.push(GE(t));d.links.type=mv(e)}s.push(d);const u=Ns(12);return u.typeParameters=a,u.outerTypeParameters=void 0,u.localTypeParameters=a,u.instantiations=new Map,u.instantiations.set(s_(u.typeParameters),u),u.target=u,u.resolvedTypeArguments=u.typeParameters,u.thisType=Ms(),u.thisType.isThisType=!0,u.thisType.constraint=u,u.declaredProperties=s,u.declaredCallSignatures=o,u.declaredConstructSignatures=o,u.declaredIndexInfos=o,u.elementFlags=e,u.minLength=i,u.fixedLength=c,u.hasRestElement=!!(12&l),u.combinedFlags=l,u.readonly=t,u.labeledElementDeclarations=n,u}(e,t,n)),i}function zy(e,t){return 8&e.objectFlags?Gy(e,t):v_(e,t)}function Gy(e,t){var n,r,o,a;if(!(14&e.combinedFlags))return v_(e,t);if(8&e.combinedFlags){const n=P(t,((t,n)=>!!(8&e.elementFlags[n]&&1179648&t.flags)));if(n>=0)return Lv(U(t,((t,n)=>8&e.elementFlags[n]?t:Mt)))?VR(t[n],(r=>Gy(e,Ge(t,n,r)))):Rt}const s=[],l=[],c=[];let d=-1,u=-1,p=-1;for(let _=0;_<t.length;_++){const l=t[_],c=e.elementFlags[_];if(8&c)if(1&l.flags)m(l,4,null==(n=e.labeledElementDeclarations)?void 0:n[_]);else if(58982400&l.flags||wp(l))m(l,8,null==(r=e.labeledElementDeclarations)?void 0:r[_]);else if(tA(l)){const e=qy(l);if(e.length+s.length>=1e4)return Ai(i,j_(i)?Oa.Type_produces_a_tuple_type_that_is_too_large_to_represent:Oa.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Rt;x(e,((e,t)=>{var n;return m(e,l.target.elementFlags[t],null==(n=l.target.labeledElementDeclarations)?void 0:n[t])}))}else m(_x(l)&&Jf(l,Vt)||Rt,4,null==(o=e.labeledElementDeclarations)?void 0:o[_]);else m(l,c,null==(a=e.labeledElementDeclarations)?void 0:a[_])}for(let i=0;i<d;i++)2&l[i]&&(l[i]=1);u>=0&&u<p&&(s[u]=mv(K(s.slice(u,p+1),((e,t)=>8&l[u+t]?Mb(e,Vt):e))),s.splice(u+1,p-u),l.splice(u+1,p-u),c.splice(u+1,p-u));const f=Ny(l,e.readonly,c);return f===On?Nn:l.length?v_(f,s):f;function m(e,t,n){1&t&&(d=l.length),4&t&&u<0&&(u=l.length),6&t&&(p=l.length),s.push(2&t?ac(e,!0):e),l.push(t),c.push(n)}}function Vy(e,t,n=0){const r=e.target,i=N_(e)-n;return t>r.fixedLength?function(e){const t=uA(e);return t&&ey(t)}(e)||Dy(o):Dy(D_(e).slice(t,i),r.elementFlags.slice(t,i),!1,r.labeledElementDeclarations&&r.labeledElementDeclarations.slice(t,i))}function Uy(e){return mv(Ee($e(e.target.fixedLength,(e=>BE(""+e))),Jv(e.target.readonly?tr:er)))}function Hy(e,t){return e.elementFlags.length-w(e.elementFlags,(e=>!(e&t)))-1}function Ky(e){return e.fixedLength+Hy(e,3)}function qy(e){const t=D_(e),n=N_(e);return t.length===n?t:t.slice(0,n)}function Jy(e){return e.id}function $y(e,t){return je(e,t,Jy,Ft)>=0}function Yy(e,t){const n=je(e,t,Jy,Ft);return n<0&&(e.splice(~n,0,t),!0)}function Qy(e,t,n){const r=n.flags;if(!(131072&r))if(t|=473694207&r,465829888&r&&(t|=33554432),2097152&r&&67108864&RS(n)&&(t|=536870912),n===At&&(t|=8388608),!z&&98304&r)65536&RS(n)||(t|=4194304);else{const t=e.length,r=t&&n.id>e[t-1].id?~t:je(e,n,Jy,Ft);r<0&&e.splice(~r,0,n)}return t}function ev(e,t,n){let r;for(const o of n)o!==r&&(t=1048576&o.flags?ev(e,t|(cv(o)?1048576:0),o.types):Qy(e,t,o),r=o);return t}function nv(e,t){return 134217728&t.flags?LI(e,t):DI(e,t)}function cv(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}function pv(e,t){for(const n of t)if(1048576&n.flags){const t=n.origin;n.aliasSymbol||t&&!(1048576&t.flags)?Ae(e,n):t&&1048576&t.flags&&pv(e,t.types)}}function fv(e,t){const n=Cs(e);return n.types=t,n}function mv(e,t=1,n,r,o){if(0===e.length)return tn;if(1===e.length)return e[0];if(2===e.length&&!o&&(1048576&e[0].flags||1048576&e[1].flags)){const o=0===t?"N":2===t?"S":"L",i=e[0].id<e[1].id?0:1,a=e[i].id+o+e[1-i].id+p_(n,r);let s=Ke.get(a);return s||(s=_v(e,t,n,r,void 0),Ke.set(a,s)),s}return _v(e,t,n,r,o)}function _v(e,t,n,r,o){let a=[];const s=ev(a,0,e);if(0!==t){if(3&s)return 1&s?8388608&s?At:Tt:65536&s||$y(a,Mt)?Mt:Lt;if(32768&s&&a.length>=2&&a[0]===Pt&&a[1]===Ot&&nn(a,1),(402664352&s||16384&s&&32768&s)&&function(e,t,n){let r=e.length;for(;r>0;){r--;const o=e[r],i=o.flags;(402653312&i&&4&t||256&i&&8&t||2048&i&&64&t||8192&i&&4096&t||n&&32768&i&&16384&t||zE(o)&&$y(e,o.regularType))&&nn(e,r)}}(a,s,!!(2&t)),128&s&&402653184&s&&function(e){const t=G(e,cb);if(t.length){let n=e.length;for(;n>0;){n--;const r=e[n];128&r.flags&&se(t,(e=>nv(r,e)))&&nn(e,n)}}}(a),536870912&s&&function(e){const t=[];for(const n of e)if(2097152&n.flags&&67108864&RS(n)){const e=8650752&n.types[0].flags?0:1;Ae(t,n.types[e])}for(const n of t){const t=[];for(const r of e)if(2097152&r.flags&&67108864&RS(r)){const e=8650752&r.types[0].flags?0:1;r.types[e]===n&&Yy(t,r.types[1-e])}if(WR(lf(n),(e=>$y(t,e)))){let r=e.length;for(;r>0;){r--;const o=e[r];if(2097152&o.flags&&67108864&RS(o)){const i=8650752&o.types[0].flags?0:1;o.types[i]===n&&$y(t,o.types[1-i])&&nn(e,r)}}Yy(e,n)}}}(a),2===t&&(a=function(e,t){var n;if(e.length<2)return e;const r=s_(e),o=at.get(r);if(o)return o;const a=t&&se(e,(e=>!!(524288&e.flags)&&!wp(e)&&hT(Fp(e)))),s=e.length;let l=s,c=0;for(;l>0;){l--;const t=e[l];if(a||469499904&t.flags){if(262144&t.flags&&1048576&cf(t).flags){AT(t,mv(U(e,(e=>e===t?tn:e))),ui)&&nn(e,l);continue}const r=61603840&t.flags?L(Hp(t),(e=>Wx(sd(e)))):void 0,o=r&&WE(sd(r));for(const a of e)if(t!==a){if(1e5===c&&c/(s-l)*s>1e6)return null==(n=kr)||n.instant(kr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:e.map((e=>e.id))}),void Ai(i,Oa.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(c++,r&&61603840&a.flags){const e=Ol(a,r.escapedName);if(e&&Wx(e)&&WE(e)!==o)continue}if(AT(t,a,ui)&&(!(1&RS(pd(t)))||!(1&RS(pd(a)))||qS(t,a))){nn(e,l);break}}}}return at.set(r,e),e}(a,!!(524288&s)),!a))return Rt;if(0===a.length)return 65536&s?4194304&s?Bt:Gt:32768&s?4194304&s?Pt:wt:tn}if(!o&&1048576&s){const t=[];pv(t,e);const r=[];for(const e of a)se(t,(t=>$y(t.types,e)))||r.push(e);if(!n&&1===t.length&&0===r.length)return t[0];if(Ue(t,((e,t)=>e+t.types.length),0)+r.length===a.length){for(const e of t)Yy(r,e);o=fv(1048576,r)}}return Tv(a,(36323331&s?0:32768)|(2097152&s?16777216:0),n,r,o)}function gv(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Tv(e,t,n,r,o){if(0===e.length)return tn;if(1===e.length)return e[0];const i=(o?1048576&o.flags?`|${s_(o.types)}`:2097152&o.flags?`&${s_(o.types)}`:`#${o.type.id}|${s_(e)}`:s_(e))+p_(n,r);let a=He.get(i);return a||(a=Is(1048576),a.objectFlags=t|__(e,98304),a.types=e,a.origin=o,a.aliasSymbol=n,a.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(a.flags|=16,a.intrinsicName="boolean"),He.set(i,a)),a}function xv(e,t,n){const r=n.flags;return 2097152&r?Av(e,t,n.types):(yT(n)?16777216&t||(t|=16777216,e.set(n.id.toString(),n)):(3&r?n===At&&(t|=8388608):!z&&98304&r||(n===Ot&&(t|=262144,n=Pt),e.has(n.id.toString())||(109472&n.flags&&109472&t&&(t|=67108864),e.set(n.id.toString(),n))),t|=473694207&r),t)}function Av(e,t,n){for(const r of n)t=xv(e,t,WE(r));return t}function Iv(e,t){for(const n of e)if(!$y(n.types,t)){const e=128&t.flags?jt:288&t.flags?Vt:2048&t.flags?Ut:8192&t.flags?Zt:void 0;if(!e||!$y(n.types,e))return!1}return!0}function Rv(e,t){for(let n=0;n<e.length;n++)e[n]=BR(e[n],(e=>!(e.flags&t)))}function Cv(e,t,n,r){const o=new Map,i=Av(o,0,e),a=Ye(o.values());let s=0;if(131072&i)return F(a,rn)?rn:tn;if(z&&98304&i&&84410368&i||67108864&i&&402783228&i||402653316&i&&67238776&i||296&i&&469891796&i||2112&i&&469889980&i||12288&i&&469879804&i||49152&i&&469842940&i)return tn;if(402653184&i&&128&i&&function(e){let t=e.length;const n=G(e,(e=>!!(128&e.flags)));for(;t>0;){t--;const r=e[t];if(402653184&r.flags)for(const o of n){if(US(o,r)){nn(e,t);break}if(cb(r))return!0}}return!1}(a))return tn;if(1&i)return 8388608&i?At:Tt;if(!z&&98304&i)return 16777216&i?tn:32768&i?Pt:Bt;if((4&i&&402653312&i||8&i&&256&i||64&i&&2048&i||4096&i&&8192&i||16384&i&&32768&i||16777216&i&&470302716&i)&&(r||function(e,t){let n=e.length;for(;n>0;){n--;const r=e[n];(4&r.flags&&402653312&t||8&r.flags&&256&t||64&r.flags&&2048&t||4096&r.flags&&8192&t||16384&r.flags&&32768&t||yT(r)&&470302716&t)&&nn(e,n)}}(a,i)),262144&i&&(a[a.indexOf(Pt)]=Ot),0===a.length)return Mt;if(1===a.length)return a[0];if(2===a.length){const e=8650752&a[0].flags?0:1,t=a[e],n=a[1-e];if(8650752&t.flags&&(469893116&n.flags&&!db(n)||16777216&i)){const e=lf(t);if(e&&WR(e,(e=>!!(469893116&e.flags)||yT(e)))){if(HS(e,n))return t;if(!(1048576&e.flags&&OR(e,(e=>HS(e,n))))&&!HS(n,e))return tn;s=67108864}}}const l=s_(a)+p_(t,n);let c=qe.get(l);if(!c){if(1048576&i)if(function(e){let t;const n=P(e,(e=>!!(32768&RS(e))));if(n<0)return!1;let r=n+1;for(;r<e.length;){const o=e[r];32768&RS(o)?((t||(t=[e[n]])).push(o),nn(e,r)):r++}if(!t)return!1;const o=[],i=[];for(const a of t)for(const e of a.types)Yy(o,e)&&Iv(t,e)&&Yy(i,e);return e[n]=Tv(i,32768),!0}(a))c=Cv(a,t,n);else if(M(a,(e=>!!(1048576&e.flags&&32768&e.types[0].flags)))){const e=se(a,BA)?Ot:Pt;Rv(a,32768),c=mv([Cv(a),e],1,t,n)}else if(M(a,(e=>!!(1048576&e.flags&&(65536&e.types[0].flags||65536&e.types[1].flags)))))Rv(a,65536),c=mv([Cv(a),Bt],1,t,n);else if(a.length>=4){const e=Math.floor(a.length/2);c=Cv([Cv(a.slice(0,e)),Cv(a.slice(e))],t,n)}else{if(!Lv(a))return Rt;const e=function(e){const t=Dv(e),n=[];for(let r=0;r<t;r++){const t=e.slice();let o=r;for(let n=e.length-1;n>=0;n--)if(1048576&e[n].flags){const r=e[n].types,i=r.length;t[n]=r[o%i],o=Math.floor(o/i)}const i=Cv(t);131072&i.flags||n.push(i)}return n}(a);c=mv(e,1,t,n,se(e,(e=>!!(2097152&e.flags)))&&Pv(e)>Pv(a)?fv(2097152,a):void 0)}else c=function(e,t,n,r){const o=Is(2097152);return o.objectFlags=t|__(e,98304),o.types=e,o.aliasSymbol=n,o.aliasTypeArguments=r,o}(a,s,t,n);qe.set(l,c)}return c}function Dv(e){return Ue(e,((e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e),1)}function Lv(e){var t;const n=Dv(e);return!(n>=1e5)||(null==(t=kr)||t.instant(kr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map((e=>e.id)),size:n}),Ai(i,Oa.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function kv(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?kv(e.origin):Pv(e.types):1}function Pv(e){return Ue(e,((e,t)=>e+kv(t)),0)}function wv(e,t){const n=Is(4194304);return n.type=e,n.indexFlags=t,n}function Ov(e,t){return 1&t?e.resolvedStringIndexType||(e.resolvedStringIndexType=wv(e,1)):e.resolvedIndexType||(e.resolvedIndexType=wv(e,0))}function Wv(e,t){const n=Ap(e),r=Ip(e),o=Rp(e.target||e);if(!o&&!(2&t))return r;const i=[];if(fb(r)){if(Np(e))return Ov(e,t);wR(r,s)}else if(Np(e)){Tp(yf(Mp(e)),8576,!!(1&t),s)}else wR(Ep(r),s);const a=2&t?BR(mv(i),(e=>!(5&e.flags))):mv(i);return 1048576&a.flags&&1048576&r.flags&&s_(a.types)===s_(r.types)?r:a;function s(t){const r=o?AS(o,cS(e.mapper,n,t)):t;i.push(r===jt?pn:r)}}function zv(e){if(rC(e))return tn;if(FR(e))return WE(bO(e));if(yC(e))return WE(MM(e));const t=iv(e);return void 0!==t?BE(Ll(t)):uu(e)?WE(bO(e)):tn}function Bv(e,t,n){if(n||!(6&_S(e))){let n=Ui(ku(e)).nameType;if(!n){const t=jl(e.valueDeclaration);n="default"===e.escapedName?BE("default"):t&&zv(t)||(uv(e)?void 0:BE(wl(e)))}if(n&&n.flags&t)return n}return tn}function Vv(e,t){return!!(e.flags&t||2097152&e.flags&&se(e.types,(e=>Vv(e,t))))}function Uv(e,t,n){const r=n&&(7&RS(e)||e.aliasSymbol)?function(e){const t=Cs(4194304);return t.type=e,t}(e):void 0;return mv(ce(U(Hp(e),(e=>Bv(e,t))),U(Kf(e),(e=>e!==co&&Vv(e.keyType,t)?e.keyType===jt&&8&t?pn:e.keyType:tn))),1,void 0,void 0,r)}function qv(e,t=0){return!!(58982400&e.flags||iA(e)||wp(e)&&(!function(e){const t=Ap(e);return function e(n){return!!(470810623&n.flags)||(16777216&n.flags?n.root.isDistributive&&n.checkType===t:137363456&n.flags?M(n.types,e):8388608&n.flags?e(n.objectType)&&e(n.indexType):33554432&n.flags?e(n.baseType)&&e(n.constraint):!!(268435456&n.flags)&&e(n.type))}(Rp(e)||t)}(e)||2===Op(e))||1048576&e.flags&&!(4&t)&&Rf(e)||2097152&e.flags&&Ww(e,465829888)&&se(e.types,yT))}function Jv(e,t=te){return U_(e=Tf(e))?G_(Jv(e.baseType,t)):qv(e,t)?Ov(e,t):1048576&e.flags?Cv(U(e.types,(e=>Jv(e,t)))):2097152&e.flags?mv(U(e.types,(e=>Jv(e,t)))):32&RS(e)?Wv(e,t):e===At?At:2&e.flags?tn:131073&e.flags?gn:Uv(e,(2&t?128:402653316)|(1&t?0:12584),t===te)}function $v(e){if(ee)return e;const t=(zr||(zr=Xh("Extract",2,!0)||_t),zr===_t?void 0:zr);return t?w_(t,[e,jt]):jt}function Yv(e,t){const n=P(t,(e=>!!(1179648&e.flags)));if(n>=0)return Lv(t)?VR(t[n],(r=>Yv(e,Ge(t,n,r)))):Rt;if(F(t,At))return At;const r=[],o=[];let i=e[0];if(!function e(t,n){for(let a=0;a<n.length;a++){const s=n[a];if(101248&s.flags)i+=Qv(s)||"",i+=t[a+1];else if(134217728&s.flags){if(i+=s.texts[0],!e(s.texts,s.types))return!1;i+=t[a+1]}else{if(!fb(s)&&!lb(s))return!1;r.push(s),o.push(i),i=t[a+1]}}return!0}(e,t))return jt;if(0===r.length)return BE(i);if(o.push(i),M(o,(e=>""===e))){if(M(r,(e=>!!(4&e.flags))))return jt;if(1===r.length&&cb(r[0]))return r[0]}const a=`${s_(r)}|${U(o,(e=>e.length)).join(",")}|${o.join("")}`;let s=tt.get(a);return s||tt.set(a,s=function(e,t){const n=Is(134217728);return n.texts=e,n.types=t,n}(o,r)),s}function Qv(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?Mx(e.value):98816&e.flags?e.intrinsicName:void 0}function Zv(e,t){return 1179648&t.flags?VR(t,(t=>Zv(e,t))):128&t.flags?BE(eb(e,t.value)):134217728&t.flags?Yv(...function(e,t,n){switch(zz.get(e.escapedName)){case 0:return[t.map((e=>e.toUpperCase())),n.map((t=>Zv(e,t)))];case 1:return[t.map((e=>e.toLowerCase())),n.map((t=>Zv(e,t)))];case 2:return[""===t[0]?t:[t[0].charAt(0).toUpperCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[Zv(e,n[0]),...n.slice(1)]:n];case 3:return[""===t[0]?t:[t[0].charAt(0).toLowerCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[Zv(e,n[0]),...n.slice(1)]:n]}return[t,n]}(e,t.texts,t.types)):268435456&t.flags&&e===t.symbol?t:268435461&t.flags||fb(t)?tb(e,t):lb(t)?tb(e,Yv(["",""],[t])):t}function eb(e,t){switch(zz.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function tb(e,t){const n=`${Kz(e)},${Jy(t)}`;let r=ot.get(n);return r||ot.set(n,r=function(e,t){const n=Rs(268435456,e);return n.type=t,n}(e,t)),r}function nb(e){if($)return!1;if(4096&RS(e))return!0;if(1048576&e.flags)return M(e.types,nb);if(2097152&e.flags)return se(e.types,nb);if(465829888&e.flags){const t=uf(e);return t!==e&&nb(t)}return!1}function rb(e,t){return xA(e)?AA(e):t&&Ed(t)?iv(t):void 0}function ib(e,t){if(8208&t.flags){const n=Cl(e.parent,(e=>!wS(e)))||e.parent;return nu(n)?ru(n)&&nC(e)&&cR(n,e):M(t.declarations,(e=>!Td(e)||Mi(e)))}return!0}function ab(e,t,n,r,o,i){const a=o&&212===o.kind?o:void 0,s=o&&rC(o)?void 0:rb(n,o);if(void 0!==s){if(256&i)return EN(t,s)||Tt;const e=kf(t,s);if(e){if(64&i&&o&&e.declarations&&Ni(e)&&ib(o,e)){Li((null==a?void 0:a.argumentExpression)??(YC(o)?o.indexType:o),e.declarations,s)}if(a){if(lk(e,a,ck(a.expression,t.symbol)),Lw(a,e,fy(a)))return void Ai(a.argumentExpression,Oa.Cannot_assign_to_0_because_it_is_a_read_only_property,rl(e));if(8&i&&(Hi(o).resolvedSymbol=e),KL(a,e))return xt}const n=4&i?od(e):sd(e);return a&&1!==fy(a)?fC(a,n):o&&YC(o)&&BA(n)?mv([n,Pt]):n}if(WR(t,tA)&&nA(s)){const e=+s;if(o&&WR(t,(e=>!e.target.hasRestElement))&&!(16&i)){const n=sb(o);if(tA(t)){if(e<0)return Ai(n,Oa.A_tuple_type_cannot_be_indexed_with_a_negative_value),Pt;Ai(n,Oa.Tuple_type_0_of_length_1_has_no_element_at_index_2,il(t),N_(t),Ll(s))}else Ai(n,Oa.Property_0_does_not_exist_on_type_1,Ll(s),il(t))}if(e>=0)return l(qf(t,Vt)),bA(t,e,1&i?Ot:void 0)}}if(!(98304&n.flags)&&zw(n,402665900)){if(131073&t.flags)return t;const c=tm(t,n)||qf(t,jt);if(c){if(2&i&&c.keyType!==Vt)return void(a&&(4&i?Ai(a,Oa.Type_0_is_generic_and_can_only_be_indexed_for_reading,il(e)):Ai(a,Oa.Type_0_cannot_be_used_to_index_type_1,il(n),il(e))));if(o&&c.keyType===jt&&!zw(n,12)){return Ai(sb(o),Oa.Type_0_cannot_be_used_as_an_index_type,il(n)),1&i?mv([c.type,Ot]):c.type}return l(c),1&i&&!(t.symbol&&384&t.symbol.flags&&n.symbol&&1024&n.flags&&ms(n.symbol)===t.symbol)?mv([c.type,Ot]):c.type}if(131072&n.flags)return tn;if(nb(t))return Tt;if(a&&!Gw(t)){if(WI(t)){if($&&384&n.flags)return si.add(d_(a,Oa.Property_0_does_not_exist_on_type_1,n.value,il(t))),Pt;if(12&n.flags){return mv(Ee(U(t.properties,(e=>sd(e))),Pt))}}if(t.symbol===_e&&void 0!==s&&_e.exports.has(s)&&418&_e.exports.get(s).flags)Ai(a,Oa.Property_0_does_not_exist_on_type_1,Ll(s),il(t));else if($&&!S.suppressImplicitAnyIndexErrors&&!(128&i))if(void 0!==s&&ZL(s,t)){const e=il(t);Ai(a,Oa.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,e,e+"["+xm(a.argumentExpression)+"]")}else if(Jf(t,Vt))Ai(a.argumentExpression,Oa.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==s&&(e=ok(s,t)))void 0!==e&&Ai(a.argumentExpression,Oa.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,il(t),e);else{const e=function(e,t,n){function r(t){const r=Bp(e,t);if(r){const e=Nk(sd(r));return!!e&&$P(e)>=1&&KS(n,HP(e,0))}return!1}const o=my(t)?"set":"get";if(!r(o))return;let i=AE(t.expression);void 0===i?i=o:i+="."+o;return i}(t,a,n);if(void 0!==e)Ai(a,Oa.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,il(t),e);else{let e;if(1024&n.flags)e=cT(void 0,Oa.Property_0_does_not_exist_on_type_1,"["+il(n)+"]",il(t));else if(8192&n.flags){const r=Ka(n.symbol,a);e=cT(void 0,Oa.Property_0_does_not_exist_on_type_1,"["+r+"]",il(t))}else 128&n.flags||256&n.flags?e=cT(void 0,Oa.Property_0_does_not_exist_on_type_1,n.value,il(t)):12&n.flags&&(e=cT(void 0,Oa.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,il(n),il(t)));e=cT(e,Oa.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,il(r),il(t)),si.add(f_(Yf(a),a,e))}}}return}}if(nb(t))return Tt;if(o){const e=sb(o);384&n.flags?Ai(e,Oa.Property_0_does_not_exist_on_type_1,""+n.value,il(t)):12&n.flags?Ai(e,Oa.Type_0_has_no_matching_index_signature_for_type_1,il(t),il(n)):Ai(e,Oa.Type_0_cannot_be_used_as_an_index_type,il(n))}return zl(n)?n:void 0;function l(e){e&&e.isReadonly&&a&&(my(a)||xy(a))&&Ai(a,Oa.Index_signature_in_type_0_only_permits_reading,il(t))}}function sb(e){return 212===e.kind?e.argumentExpression:199===e.kind?e.indexType:167===e.kind?e.expression:e}function lb(e){if(2097152&e.flags){let t=!1;for(const n of e.types)if(101248&n.flags||lb(n))t=!0;else if(!(524288&n.flags))return!1;return t}return!!(77&e.flags)||cb(e)}function cb(e){return!!(134217728&e.flags)&&M(e.types,lb)||!!(268435456&e.flags)&&lb(e.type)}function db(e){return!!(402653184&e.flags)&&!cb(e)}function ub(e){return!!mb(e)}function pb(e){return!!(4194304&mb(e))}function fb(e){return!!(8388608&mb(e))}function mb(e){return 3145728&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|Ue(e.types,((e,t)=>e|mb(t)),0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|mb(e.baseType)|mb(e.constraint)),12582912&e.objectFlags):(58982400&e.flags||wp(e)||iA(e)?4194304:0)|(63176704&e.flags||db(e)?8388608:0)}function gb(e,t){return 8388608&e.flags?function(e,t){const n=t?"simplifiedForWriting":"simplifiedForReading";if(e[n])return e[n]===zn?e:e[n];e[n]=zn;const r=gb(e.objectType,t),o=gb(e.indexType,t),i=function(e,t,n){if(1048576&t.flags){const r=U(t.types,(t=>gb(Mb(e,t),n)));return n?Cv(r):mv(r)}}(r,o,t);if(i)return e[n]=i;if(!(465829888&o.flags)){const i=Tb(r,o,t);if(i)return e[n]=i}if(iA(r)&&296&o.flags){const i=SA(r,8&o.flags?0:r.target.fixedLength,0,t);if(i)return e[n]=i}if(wp(r)&&2!==Op(r))return e[n]=VR(Nb(r,e.indexType),(e=>gb(e,t)));return e[n]=e}(e,t):16777216&e.flags?function(e,t){const n=e.checkType,r=e.extendsType,o=eE(e),i=tE(e);if(131072&i.flags&&Ob(o)===Ob(n)){if(1&n.flags||KS(MS(n),MS(r)))return gb(o,t);if(Ib(n,r))return tn}else if(131072&o.flags&&Ob(i)===Ob(n)){if(!(1&n.flags)&&KS(MS(n),MS(r)))return tn;if(1&n.flags||Ib(n,r))return gb(i,t)}return e}(e,t):e}function Tb(e,t,n){if(1048576&e.flags||2097152&e.flags&&!qv(e)){const r=U(e.types,(e=>gb(Mb(e,t),n)));return 2097152&e.flags||n?Cv(r):mv(r)}}function Ib(e,t){return!!(131072&mv([pp(e,t),tn]).flags)}function Nb(e,t){const n=eS([Ap(e)],[t]),r=sS(e.mapper,n);return AS(Cp(e.target||e),r)}function Mb(e,t,n=0,r,o,i){return kb(e,t,n,r,o,i)||(r?Rt:Mt)}function Lb(e,t){return WR(e,(e=>{if(384&e.flags){const n=AA(e);if(nA(n)){const e=+n;return e>=0&&e<t}}return!1}))}function kb(e,t,n=0,r,o,i){if(e===At||t===At)return At;if(!ST(e=Tf(e))||98304&t.flags||!zw(t,12)||(t=jt),S.noUncheckedIndexedAccess&&32&n&&(n|=1),fb(t)||(r&&199!==r.kind?iA(e)&&!Lb(t,Ky(e.target)):pb(e)&&(!tA(e)||!Lb(t,Ky(e.target)))||Rf(e))){if(3&e.flags)return e;const r=1&n,a=e.id+","+t.id+","+r+p_(o,i);let s=et.get(a);return s||et.set(a,s=function(e,t,n,r,o){const i=Is(8388608);return i.objectType=e,i.indexType=t,i.accessFlags=n,i.aliasSymbol=r,i.aliasTypeArguments=o,i}(e,t,r,o,i)),s}const a=vf(e);if(1048576&t.flags&&!(16&t.flags)){const s=[];let l=!1;for(const o of t.types){const i=ab(e,a,o,t,r,n|(l?128:0));if(i)s.push(i);else{if(!r)return;l=!0}}if(l)return;return 4&n?Cv(s,o,i):mv(s,1,o,i)}return ab(e,a,t,t,r,72|n)}function Pb(e){const t=Hi(e);if(!t.resolvedType){const n=JE(e.objectType),r=JE(e.indexType),o=cE(e);t.resolvedType=Mb(n,r,0,e,o,dE(o))}return t.resolvedType}function wb(e){const t=Hi(e);if(!t.resolvedType){const n=Ns(32,e.symbol);n.declaration=e,n.aliasSymbol=cE(e),n.aliasTypeArguments=dE(n.aliasSymbol),t.resolvedType=n,Ip(n)}return t.resolvedType}function Ob(e){return 33554432&e.flags?Ob(e.baseType):8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?Mb(Ob(e.objectType),Ob(e.indexType)):e}function Fb(e){return BC(e)&&T(e.elements)>0&&!se(e.elements,(e=>jC(e)||VC(e)||GC(e)&&!(!e.questionToken&&!e.dotDotDotToken)))}function Yb(e,t){return ub(e)||t&&tA(e)&&se(qy(e),ub)}function Qb(e,t,n,r,o){let a,s,l=0;for(;;){if(1e3===l)return Ai(i,Oa.Type_instantiation_is_excessively_deep_and_possibly_infinite),Rt;const d=AS(Ob(e.checkType),t),u=AS(e.extendsType,t);if(d===Rt||u===Rt)return Rt;if(d===At||u===At)return At;const p=Sy(e.node.checkType),f=Sy(e.node.extendsType),m=Fb(p)&&Fb(f)&&T(p.elements)===T(f.elements),_=Yb(d,m);let h;if(e.inferTypeParameters){const n=oI(e.inferTypeParameters,void 0,0);t&&(n.nonFixingMapper=sS(n.nonFixingMapper,t)),_||wI(n.inferences,d,u,1536),h=t?sS(n.mapper,t):n.mapper}const g=h?AS(e.extendsType,h):u;if(!_&&!Yb(g,m)){if(!(3&g.flags)&&(1&d.flags||!KS(NS(d),NS(g)))){(1&d.flags||n&&!(131072&g.flags)&&OR(NS(g),(e=>KS(e,NS(d)))))&&(s||(s=[])).push(AS(JE(e.node.trueType),h||t));const r=JE(e.node.falseType);if(16777216&r.flags){const n=r.root;if(n.node.parent===e.node&&(!n.isDistributive||n.checkType===e.checkType)){e=n;continue}if(c(r,t))continue}a=AS(r,t);break}if(3&g.flags||KS(MS(d),MS(g))){const n=JE(e.node.trueType),r=h||t;if(c(n,r))continue;a=AS(n,r);break}}a=Is(16777216),a.root=e,a.checkType=AS(e.checkType,t),a.extendsType=AS(e.extendsType,t),a.mapper=t,a.combinedMapper=h,a.aliasSymbol=r||e.aliasSymbol,a.aliasTypeArguments=r?o:YE(e.aliasTypeArguments,t);break}return s?mv(Ee(s,a)):a;function c(n,i){if(16777216&n.flags&&i){const a=n.root;if(a.outerTypeParameters){const s=sS(n.mapper,i),c=U(a.outerTypeParameters,(e=>tS(e,s))),d=eS(a.outerTypeParameters,c),u=a.isDistributive?tS(a.checkType,d):void 0;if(!u||u===a.checkType||!(1179648&u.flags))return e=a,t=d,r=void 0,o=void 0,a.aliasSymbol&&l++,!0}}return!1}}function eE(e){return e.resolvedTrueType||(e.resolvedTrueType=AS(JE(e.root.node.trueType),e.mapper))}function tE(e){return e.resolvedFalseType||(e.resolvedFalseType=AS(JE(e.root.node.falseType),e.mapper))}function nE(e){let t;return e.locals&&e.locals.forEach((e=>{262144&e.flags&&(t=Ee(t,ou(e)))})),t}function rE(e){return nC(e)?[e]:Ee(rE(e.left),e.right)}function oE(e){var t;const n=Hi(e);if(!n.resolvedType){if(!P_(e))return Ai(e.argument,Oa.String_literal_expected),n.resolvedSymbol=_t,n.resolvedType=Rt;const r=e.isTypeOf?111551:16777216&e.flags?900095:788968,o=Xa(e,e.argument.literal);if(!o)return n.resolvedSymbol=_t,n.resolvedType=Rt;const i=!!(null==(t=o.exports)?void 0:t.get("export=")),a=Za(o,!1);if(im(e.qualifier))if(a.flags&r)n.resolvedType=iE(e,n,a,r);else{Ai(e,111551===r?Oa.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:Oa.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),n.resolvedSymbol=_t,n.resolvedType=Rt}else{const t=rE(e.qualifier);let o,s=a;for(;o=t.shift();){const a=t.length?1920:r,l=us(Fa(s)),c=e.isTypeOf||$h(e)&&i?kf(sd(l),o.escapedText,!1,!0):void 0,d=(e.isTypeOf?void 0:qi(ss(l),o.escapedText,a))??c;if(!d)return Ai(o,Oa.Namespace_0_has_no_exported_member_1,Ka(s),o_(o)),n.resolvedType=Rt;Hi(o).resolvedSymbol=d,Hi(o.parent).resolvedSymbol=d,s=d}n.resolvedType=iE(e,n,s,r)}}return n.resolvedType}function iE(e,t,n,r){const o=Fa(n);return t.resolvedSymbol=o,111551===r?PP(sd(n),e):B_(e,o)}function lE(e){const t=Hi(e);if(!t.resolvedType){const n=cE(e);if(0!==Mu(e.symbol).size||n){let r=Ns(16,e.symbol);r.aliasSymbol=n,r.aliasTypeArguments=dE(n),EM(e)&&e.isArrayType&&(r=ey(r)),t.resolvedType=r}else t.resolvedType=kn}return t.resolvedType}function cE(e){let t=e.parent;for(;JC(t)||aM(t)||$C(t)&&148===t.operator;)t=t.parent;return qg(t)?ps(t):void 0}function dE(e){return e?Sd(e):void 0}function uE(e){return!!(524288&e.flags)&&!wp(e)}function _E(e){return gT(e)||!!(474058748&e.flags)}function yE(e,t){if(!(1048576&e.flags))return e;if(M(e.types,_E))return L(e.types,gT)||Nn;const n=L(e.types,(e=>!_E(e)));if(!n)return e;return L(e.types,(e=>e!==n&&!_E(e)))?e:function(e){const n=Mf();for(const o of Hp(e))if(6&_S(o));else if(LE(o)){const e=65536&o.flags&&!(32768&o.flags),r=ki(16777220,o.escapedName,Sp(o)|(t?8:0));r.links.type=e?Pt:ac(sd(o),!0),r.declarations=o.declarations,r.links.nameType=Ui(o).nameType,r.links.syntheticOrigin=o,n.set(o.escapedName,r)}const r=Os(e.symbol,n,o,o,Kf(e));return r.objectFlags|=131200,r}(n)}function vE(e,t,n,r,i){if(1&e.flags||1&t.flags)return Tt;if(2&e.flags||2&t.flags)return Mt;if(131072&e.flags)return t;if(131072&t.flags)return e;if(1048576&(e=yE(e,i)).flags)return Lv([e,t])?VR(e,(e=>vE(e,t,n,r,i))):Rt;if(1048576&(t=yE(t,i)).flags)return Lv([e,t])?VR(t,(t=>vE(e,t,n,r,i))):Rt;if(473960444&t.flags)return e;if(pb(e)||pb(t)){if(gT(e))return t;if(2097152&e.flags){const o=e.types,a=o[o.length-1];if(uE(a)&&uE(t))return Cv(ce(o.slice(0,o.length-1),[vE(a,t,n,r,i)]))}return Cv([e,t])}const a=Mf(),s=new Set,l=e===Nn?Kf(t):sp([e,t]);for(const o of Hp(t))6&_S(o)?s.add(o.escapedName):LE(o)&&a.set(o.escapedName,kE(o,i));for(const o of Hp(e))if(!s.has(o.escapedName)&&LE(o))if(a.has(o.escapedName)){const e=a.get(o.escapedName),t=sd(e);if(16777216&e.flags){const n=ce(o.declarations,e.declarations),r=ki(4|16777216&o.flags,o.escapedName),i=sd(o),s=GA(i),l=GA(t);r.links.type=s===l?i:mv([i,l],2),r.links.leftSpread=o,r.links.rightSpread=e,r.declarations=n,r.links.nameType=Ui(o).nameType,a.set(o.escapedName,r)}}else a.set(o.escapedName,kE(o,i));const c=Os(n,a,o,o,K(l,(e=>function(e,t){return e.isReadonly!==t?Hm(e.keyType,e.type,t,e.declaration):e}(e,i))));return c.objectFlags|=2228352|r,c}function LE(e){var t;return!se(e.declarations,md)&&(!(106496&e.flags)||!(null==(t=e.declarations)?void 0:t.some((e=>Md(e.parent)))))}function kE(e,t){const n=65536&e.flags&&!(32768&e.flags);if(!n&&t===Mw(e))return e;const r=ki(4|16777216&e.flags,e.escapedName,Sp(e)|(t?8:0));return r.links.type=n?Pt:sd(e),r.declarations=e.declarations,r.links.nameType=Ui(e).nameType,r.links.syntheticOrigin=e,r}function OE(e,t,n,r){const o=Rs(e,n);return o.value=t,o.regularType=r||o,o}function FE(e){if(2976&e.flags){if(!e.freshType){const t=OE(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function WE(e){return 2976&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=VR(e,WE)):e}function zE(e){return!!(2976&e.flags)&&e.freshType===e}function BE(e){let t;return Je.get(e)||(Je.set(e,t=OE(128,e)),t)}function GE(e){let t;return Xe.get(e)||(Xe.set(e,t=OE(256,e)),t)}function jE(e){let t;const n=Mx(e);return Qe.get(n)||(Qe.set(n,t=OE(2048,e)),t)}function VE(e,t,n){let r;const o=`${t}${"string"===typeof e?"@":"#"}${e}`,i=1024|("string"===typeof e?128:256);return Ze.get(o)||(Ze.set(o,r=OE(i,e,n)),r)}function UE(e){if($h(e)&&aM(e)){const t=ly(e);t&&(e=$g(t)||t)}if(eh(e)){const t=Z_(e)?fs(e.left):fs(e);if(t){const e=Ui(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=function(e){const t=Rs(8192,e);return t.escapedName=`__@${t.symbol.escapedName}@${Kz(t.symbol)}`,t}(t))}}return Zt}function HE(e){const t=Hi(e);return t.resolvedType||(t.resolvedType=function(e){const t=vh(e,!1,!1),n=t&&t.parent;if(n&&(Md(n)||264===n.kind)&&!jb(t)&&(!RC(t)||Ay(e,t.body)))return qd(ps(n)).thisType;if(n&&sD(n)&&TD(n.parent)&&6===Eg(n.parent))return qd(fs(n.parent.left).parent).thisType;const r=16777216&e.flags?ay(e):void 0;return r&&_D(r)&&TD(r.parent)&&3===Eg(r.parent)?qd(fs(r.parent.left).parent).thisType:gP(t)&&Ay(e,t.body)?qd(ps(t)).thisType:(Ai(e,Oa.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Rt)}(e)),t.resolvedType}function KE(e){return JE(qE(e.type)||e.type)}function qE(e){switch(e.kind){case 196:return qE(e.type);case 189:if(1===e.elements.length&&(191===(e=e.elements[0]).kind||202===e.kind&&e.dotDotDotToken))return qE(e.type);break;case 188:return e.elementType}}function JE(e){return function(e,t){let n,r=!0;for(;t&&!wu(t)&&327!==t.kind;){const o=t.parent;if(169===o.kind&&(r=!r),(r||8650752&e.flags)&&194===o.kind&&t===o.trueType){const t=ch(e,o.checkType,o.extendsType);t&&(n=Ee(n,t))}else if(262144&e.flags&&200===o.kind&&!o.nameType&&t===o.type){const t=JE(o);if(Ap(t)===Ob(e)){const e=bS(t);if(e){const t=$p(e);t&&WR(t,px)&&(n=Ee(n,mv([Vt,Sn])))}}}t=o}return n?nh(e,Cv(n)):e}(XE(e),e)}function XE(e){switch(e.kind){case 133:case 319:case 320:return Tt;case 159:return Mt;case 154:return jt;case 150:return Vt;case 163:return Ut;case 136:return Qt;case 155:return Zt;case 116:return en;case 157:return Pt;case 106:return Bt;case 146:return tn;case 151:return 524288&e.flags&&!$?Tt:ln;case 141:return Nt;case 197:case 110:return HE(e);case 201:return function(e){if(106===e.literal.kind)return Bt;const t=Hi(e);return t.resolvedType||(t.resolvedType=WE(bO(e.literal))),t.resolvedType}(e);case 183:case 233:return mh(e);case 182:return e.assertsModifier?en:Qt;case 186:return kh(e);case 188:case 189:return function(e){const t=Hi(e);if(!t.resolvedType){const n=uy(e);if(n===On)t.resolvedType=Nn;else if(189===e.kind&&se(e.elements,(e=>!!(8&ty(e))))||!hy(e)){const r=188===e.kind?[JE(e.elementType)]:U(e.elements,JE);t.resolvedType=zy(n,r)}else t.resolvedType=189===e.kind&&0===e.elements.length?n:C_(n,e,void 0)}return t.resolvedType}(e);case 190:return function(e){return ac(JE(e.type),!0)}(e);case 192:return function(e){const t=Hi(e);if(!t.resolvedType){const n=cE(e);t.resolvedType=mv(U(e.types,JE),1,n,dE(n))}return t.resolvedType}(e);case 193:return function(e){const t=Hi(e);if(!t.resolvedType){const n=cE(e),r=U(e.types,JE),o=2===r.length?r.indexOf(kn):-1,i=o>=0?r[1-o]:Mt,a=!!(76&i.flags||134217728&i.flags&&cb(i));t.resolvedType=Cv(r,n,dE(n),a)}return t.resolvedType}(e);case 321:return function(e){const t=JE(e.type);return z?LA(t,65536):t}(e);case 323:return ac(JE(e.type));case 202:return function(e){const t=Hi(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?KE(e):ac(JE(e.type),!0,!!e.questionToken))}(e);case 196:case 322:case 316:return JE(e.type);case 191:return KE(e);case 325:return function(e){const t=JE(e.type),{parent:n}=e,r=e.parent.parent;if(aM(e.parent)&&OM(r)){const e=ay(r),n=IM(r.parent.parent);if(e||n){const o=Oe(n?r.parent.parent.typeExpression.parameters:e.parameters),i=ry(r);if(!o||i&&o.symbol===i&&ip(o))return ey(t)}}if(bC(n)&&gM(n.parent))return ey(t);return ac(t)}(e);case 184:case 185:case 187:case 329:case 324:case 330:return lE(e);case 198:return function(e){const t=Hi(e);if(!t.resolvedType)switch(e.operator){case 143:t.resolvedType=Jv(JE(e.type));break;case 158:t.resolvedType=155===e.type.kind?UE(vy(e.parent)):Rt;break;case 148:t.resolvedType=JE(e.type);break;default:In.assertNever(e.operator)}return t.resolvedType}(e);case 199:return Pb(e);case 200:return wb(e);case 194:return function(e){const t=Hi(e);if(!t.resolvedType){const n=JE(e.checkType),r=cE(e),o=dE(r),i=gd(e,!0),a=o?i:G(i,(t=>hS(t,e))),s={node:e,checkType:n,extendsType:JE(e.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:nE(e),outerTypeParameters:a,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:o};t.resolvedType=Qb(s,void 0,!1),a&&(s.instantiations=new Map,s.instantiations.set(s_(a),t.resolvedType))}return t.resolvedType}(e);case 195:return function(e){const t=Hi(e);return t.resolvedType||(t.resolvedType=eu(ps(e.typeParameter))),t.resolvedType}(e);case 203:return function(e){const t=Hi(e);return t.resolvedType||(t.resolvedType=Yv([e.head.text,...U(e.templateSpans,(e=>e.literal.text))],U(e.templateSpans,(e=>JE(e.type))))),t.resolvedType}(e);case 205:return oE(e);case 80:case 166:case 211:const t=Xz(e);return t?ou(t):Rt;default:return Rt}}function $E(e,t,n){if(e&&e.length)for(let r=0;r<e.length;r++){const o=e[r],i=n(o,t);if(o!==i){const o=0===r?[]:e.slice(0,r);for(o.push(i),r++;r<e.length;r++)o.push(n(e[r],t));return o}}return e}function YE(e,t){return $E(e,t,AS)}function QE(e,t){return $E(e,t,uS)}function ZE(e,t){return $E(e,t,LS)}function eS(e,t){return 1===e.length?nS(e[0],t?t[0]:Tt):function(e,t){return In.attachDebugPrototypeIfDebug({kind:1,sources:e,targets:t})}(e,t)}function tS(e,t){switch(t.kind){case 0:return e===t.source?t.target:e;case 1:{const n=t.sources,r=t.targets;for(let t=0;t<n.length;t++)if(e===n[t])return r?r[t]:Tt;return e}case 2:{const n=t.sources,r=t.targets;for(let t=0;t<n.length;t++)if(e===n[t])return r[t]();return e}case 3:return t.func(e);case 4:case 5:const n=tS(e,t.mapper1);return n!==e&&4===t.kind?AS(n,t.mapper2):tS(n,t.mapper2)}}function nS(e,t){return In.attachDebugPrototypeIfDebug({kind:0,source:e,target:t})}function rS(e,t){return In.attachDebugPrototypeIfDebug({kind:3,func:e,debugInfo:In.isDebugging?t:void 0})}function oS(e,t){return In.attachDebugPrototypeIfDebug({kind:2,sources:e,targets:t})}function iS(e,t,n){return In.attachDebugPrototypeIfDebug({kind:e,mapper1:t,mapper2:n})}function aS(e){return eS(e,void 0)}function sS(e,t){return e?iS(4,e,t):t}function lS(e,t,n){return n?iS(5,nS(e,t),n):nS(e,t)}function cS(e,t,n){return e?iS(5,e,nS(t,n)):nS(t,n)}function dS(e){const t=Ms(e.symbol);return t.target=e,t}function uS(e,t,n){let r;if(e.typeParameters&&!n){r=U(e.typeParameters,dS),t=sS(eS(e.typeParameters,r),t);for(const e of r)e.mapper=t}const o=Fu(e.declaration,r,e.thisParameter&&pS(e.thisParameter,t),$E(e.parameters,t,pS),void 0,void 0,e.minArgumentCount,167&e.flags);return o.target=e,o.mapper=t,o}function pS(e,t){const n=Ui(e);if(n.type&&!pI(n.type)){if(!(65536&e.flags))return e;if(n.writeType&&!pI(n.writeType))return e}1&mS(e)&&(e=n.target,t=sS(n.mapper,t));const r=ki(e.flags,e.escapedName,1|53256&mS(e));return r.declarations=e.declarations,r.parent=e.parent,r.links.target=e,r.links.mapper=t,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),n.nameType&&(r.links.nameType=n.nameType),r}function fS(e,t,n,r){const i=4&e.objectFlags||8388608&e.objectFlags?e.node:e.symbol.declarations[0],a=Hi(i),s=4&e.objectFlags?a.resolvedType:64&e.objectFlags?e.target:e;let l=a.outerTypeParameters;if(!l){let t=gd(i,!0);if(gP(i)){t=xe(t,rm(i))}l=t||o;const n=8388612&e.objectFlags?[i]:e.symbol.declarations;l=(8388612&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?G(l,(e=>se(n,(t=>hS(e,t))))):l,a.outerTypeParameters=l}if(l.length){const o=sS(e.mapper,t),i=U(l,(e=>tS(e,o))),a=n||e.aliasSymbol,c=n?r:YE(e.aliasTypeArguments,t),d=s_(i)+p_(a,c);s.instantiations||(s.instantiations=new Map,s.instantiations.set(s_(l)+p_(s.aliasSymbol,s.aliasTypeArguments),s));let u=s.instantiations.get(d);if(!u){const t=eS(l,i);u=4&s.objectFlags?C_(e.target,e.node,t,a,c):32&s.objectFlags?function(e,t,n,r){const o=bS(e);if(o){const e=AS(o,t);if(o!==e)return UR(Tf(e),i,n,r)}return AS(Ip(e),t)===At?At:TS(e,t,n,r);function i(n){if(61603843&n.flags&&n!==At&&!Gl(n)){if(!e.declaration.nameType){let r;if(cx(n)||1&n.flags&&Tl(o,4)<0&&(r=$p(o))&&WR(r,px))return function(e,t,n){const r=SS(t,Vt,!0,n);return Gl(r)?Rt:ey(r,ES(dx(e),Lp(t)))}(n,e,lS(o,n,t));if(tA(n))return function(e,t,n,r){const o=e.target.elementFlags,i=e.target.fixedLength,a=i?lS(n,e,r):r,s=U(qy(e),((e,s)=>{const l=o[s];return s<i?SS(t,BE(""+s),!!(2&l),a):8&l?AS(t,lS(n,e,r)):mx(AS(t,lS(n,ey(e),r)))??Mt})),l=Lp(t),c=4&l?U(o,(e=>1&e?2:e)):8&l?U(o,(e=>2&e?1:e)):o,d=ES(e.target.readonly,Lp(t));return F(s,Rt)?Rt:Dy(s,c,d,e.target.labeledElementDeclarations)}(n,e,o,t);if(hf(n))return Cv(U(n.types,i))}return TS(e,lS(o,n,t))}return n}}(s,t,a,c):TS(s,t,a,c),s.instantiations.set(d,u);const n=RS(u);if(3899393&u.flags&&!(524288&n)){const e=se(i,pI);524288&RS(u)||(u.objectFlags|=52&n?524288|(e?1048576:0):e?0:524288)}}return u}return e}function hS(e,t){if(e.symbol&&e.symbol.declarations&&1===e.symbol.declarations.length){const r=e.symbol.declarations[0].parent;for(let e=t;e!==r;e=e.parent)if(!e||241===e.kind||194===e.kind&&oP(e.extendsType,n))return!0;return n(t)}return!0;function n(t){switch(t.kind){case 197:return!!e.isThisType;case 80:return!e.isThisType&&j_(t)&&function(e){return!(183===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||205===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(t)&&XE(t)===e;case 186:const r=SE(t.exprName);if(!bb(r)){const o=JI(r),i=e.symbol.declarations[0],a=168===i.kind?i.parent:e.isThisType?i:void 0;if(o.declarations&&a)return se(o.declarations,(e=>Ay(e,a)))||se(t.typeArguments,n)}return!0;case 174:case 173:return!t.type&&!!t.body||se(t.typeParameters,n)||se(t.parameters,n)||!!t.type&&n(t.type)}return!!oP(t,n)}}function bS(e){const t=Ip(e);if(4194304&t.flags){const e=Ob(t.type);if(262144&e.flags)return e}}function ES(e,t){return!!(1&t)||!(2&t)&&e}function SS(e,t,n,r){const o=cS(r,Ap(e),t),i=AS(Cp(e.target||e),o),a=Lp(e);return z&&4&a&&!Ww(i,49152)?kA(i,!0):z&&8&a&&n?hR(i,524288):i}function TS(e,t,n,r){In.assert(e.symbol,"anonymous type must have symbol to be instantiated");const o=Ns(-1572865&e.objectFlags|64,e.symbol);if(32&e.objectFlags){o.declaration=e.declaration;const n=Ap(e),r=dS(n);o.typeParameter=r,t=sS(nS(n,r),t),r.mapper=t}return 8388608&e.objectFlags&&(o.node=e.node),o.target=e,o.mapper=t,o.aliasSymbol=n||e.aliasSymbol,o.aliasTypeArguments=n?r:YE(e.aliasTypeArguments,t),o.objectFlags|=o.aliasTypeArguments?__(o.aliasTypeArguments):0,o}function xS(e,t,n,r,o){const i=e.root;if(i.outerTypeParameters){const e=U(i.outerTypeParameters,(e=>tS(e,t))),a=(n?"C":"")+s_(e)+p_(r,o);let s=i.instantiations.get(a);if(!s){const t=eS(i.outerTypeParameters,e),l=i.checkType,c=i.isDistributive?Tf(tS(l,t)):void 0;s=c&&l!==c&&1179648&c.flags?UR(c,(e=>Qb(i,lS(l,e,t),n)),r,o):Qb(i,t,n,r,o),i.instantiations.set(a,s)}return s}return e}function AS(e,t){return e&&t?CS(e,t,void 0,void 0):e}function CS(e,t,n,r){var o;if(!pI(e))return e;if(100===g||h>=5e6)return null==(o=kr)||o.instant(kr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:g,instantiationCount:h}),Ai(i,Oa.Type_instantiation_is_excessively_deep_and_possibly_infinite),Rt;_++,h++,g++;const a=function(e,t,n,r){const o=e.flags;if(262144&o)return tS(e,t);if(524288&o){const o=e.objectFlags;if(52&o){if(4&o&&!e.node){const n=e.resolvedTypeArguments,r=YE(n,t);return r!==n?zy(e.target,r):e}return 1024&o?function(e,t){const n=AS(e.mappedType,t);if(!(32&RS(n)))return e;const r=AS(e.constraintType,t);if(!(4194304&r.flags))return e;const o=hI(AS(e.source,t),n,r);if(o)return o;return e}(e,t):fS(e,t,n,r)}return e}if(3145728&o){const i=1048576&e.flags?e.origin:void 0,a=i&&3145728&i.flags?i.types:e.types,s=YE(a,t);if(s===a&&n===e.aliasSymbol)return e;const l=n||e.aliasSymbol,c=n?r:YE(e.aliasTypeArguments,t);return 2097152&o||i&&2097152&i.flags?Cv(s,l,c):mv(s,1,l,c)}if(4194304&o)return Jv(AS(e.type,t));if(134217728&o)return Yv(e.texts,YE(e.types,t));if(268435456&o)return Zv(e.symbol,AS(e.type,t));if(8388608&o){const o=n||e.aliasSymbol,i=n?r:YE(e.aliasTypeArguments,t);return Mb(AS(e.objectType,t),AS(e.indexType,t),e.accessFlags,void 0,o,i)}if(16777216&o)return xS(e,sS(e.mapper,t),!1,n,r);if(33554432&o){const n=AS(e.baseType,t);if(U_(e))return G_(n);const r=AS(e.constraint,t);return 8650752&n.flags&&ub(r)?nh(n,r):3&r.flags||KS(MS(n),MS(r))?n:8650752&n.flags?nh(n,r):Cv([r,n])}return e}(e,t,n,r);return g--,a}function NS(e){return 402915327&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=AS(e,xn))}function MS(e){return 402915327&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=AS(e,Tn),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function LS(e,t){return Hm(e.keyType,AS(e.type,t),e.isReadonly,e.declaration)}function kS(e){switch(In.assert(174!==e.kind||oh(e)),e.kind){case 218:case 219:case 174:case 262:return OS(e);case 210:return se(e.properties,kS);case 209:return se(e.elements,kS);case 227:return kS(e.whenTrue)||kS(e.whenFalse);case 226:return(57===e.operatorToken.kind||61===e.operatorToken.kind)&&(kS(e.left)||kS(e.right));case 303:return kS(e.initializer);case 217:return kS(e.expression);case 292:return se(e.properties,kS)||WN(e.parent)&&se(e.parent.parent.children,kS);case 291:{const{initializer:t}=e;return!!t&&kS(t)}case 294:{const{expression:t}=e;return!!t&&kS(t)}}return!1}function OS(e){return Yx(e)||function(e){if(e.typeParameters||Rb(e)||!e.body)return!1;if(241!==e.body.kind)return kS(e.body);return!!H_(e.body,(e=>!!e.expression&&kS(e.expression)))}(e)}function FS(e){return(eA(e)||oh(e))&&OS(e)}function WS(e){if(524288&e.flags){const t=Fp(e);if(t.constructSignatures.length||t.callSignatures.length){const n=Ns(16,e.symbol);return n.members=t.members,n.properties=t.properties,n.callSignatures=o,n.constructSignatures=o,n.indexInfos=o,n}}else if(2097152&e.flags)return Cv(U(e.types,WS));return e}function BS(e,t){return AT(e,t,mi)}function GS(e,t){return AT(e,t,mi)?-1:0}function jS(e,t){return AT(e,t,pi)?-1:0}function VS(e,t){return AT(e,t,di)?-1:0}function US(e,t){return AT(e,t,di)}function HS(e,t){return AT(e,t,ui)}function KS(e,t){return AT(e,t,pi)}function qS(e,t){return 1048576&e.flags?M(e.types,(e=>qS(e,t))):1048576&t.flags?se(t.types,(t=>qS(e,t))):2097152&e.flags?se(e.types,(e=>qS(e,t))):58982400&e.flags?qS(lf(e)||Mt,t):yT(t)?!!(67633152&e.flags):t===$n?!!(67633152&e.flags)&&!yT(e):t===Yn?!!(524288&e.flags)&&pR(e):fd(e,pd(t))||cx(t)&&!dx(t)&&qS(e,tr)}function JS(e,t){return AT(e,t,fi)}function XS(e,t){return JS(e,t)||JS(t,e)}function $S(e,t,n,r,o,i){return wT(e,t,pi,n,r,o,i)}function YS(e,t,n,r,o,i){return QS(e,t,pi,n,r,o,i,void 0)}function QS(e,t,n,r,o,i,a,s){return!!AT(e,t,n)||(!r||!eT(o,e,t,n,i,a,s))&&wT(e,t,n,r,i,a,s)}function ZS(e){return!!(16777216&e.flags||2097152&e.flags&&se(e.types,ZS))}function eT(e,t,n,r,o,i,a){if(!e||ZS(n))return!1;if(!wT(t,n,r,void 0)&&function(e,t,n,r,o,i,a){const s=wf(t,0),l=wf(t,1);for(const c of[l,s])if(se(c,(e=>{const t=bm(e);return!(131073&t.flags)&&wT(t,n,r,void 0)}))){const r=a||{};$S(t,n,e,o,i,r);return xx(r.errors[r.errors.length-1],d_(e,c===l?Oa.Did_you_mean_to_use_new_with_this_expression:Oa.Did_you_mean_to_call_this_expression)),!0}return!1}(e,t,n,r,o,i,a))return!0;switch(e.kind){case 234:if(!ea(e))break;case 294:case 217:return eT(e.expression,t,n,r,o,i,a);case 226:switch(e.operatorToken.kind){case 64:case 28:return eT(e.right,t,n,r,o,i,a)}break;case 210:return function(e,t,n,r,o,i){return!(402915324&n.flags)&&rT(function*(e){if(!T(e.properties))return;for(const t of e.properties){if(eM(t))continue;const e=Bv(ps(t),8576);if(e&&!(131072&e.flags))switch(t.kind){case 178:case 177:case 174:case 304:yield{errorNode:t.name,innerExpression:void 0,nameType:e};break;case 303:yield{errorNode:t.name,innerExpression:t.initializer,nameType:e,errorMessage:a_(t.name)?Oa.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:In.assertNever(t)}}}(e),t,n,r,o,i)}(e,t,n,r,i,a);case 209:return function(e,t,n,r,o,i){if(402915324&n.flags)return!1;if(Tx(t))return rT(lT(e,n),t,n,r,o,i);nM(e,n,!1);const a=CM(e,1,!0);if(oM(),Tx(a))return rT(lT(e,n),a,n,r,o,i);return!1}(e,t,n,r,i,a);case 292:return function(e,t,n,r,o,i){let a,s=rT(function*(e){if(!T(e.properties))return;for(const t of e.properties)HN(t)||qM(vA(t.name))||(yield{errorNode:t.name,innerExpression:t.initializer,nameType:BE(vA(t.name))})}(e),t,n,r,o,i);if(WN(e.parent)&&ON(e.parent.parent)){const a=e.parent.parent,c=iL(rL(e)),d=void 0===c?"children":Ll(c),u=BE(d),p=Mb(n,u),f=Nv(a.children);if(!T(f))return s;const m=T(f)>1;let _,h;if(Og(!1)!==On){const e=Yg(Tt);_=BR(p,(t=>KS(t,e))),h=BR(p,(t=>!KS(t,e)))}else _=BR(p,Dx),h=BR(p,(e=>!Dx(e)));if(m){if(_!==tn){const e=Dy($M(a,0)),t=function*(e,t){if(!T(e.children))return;let n=0;for(let r=0;r<e.children.length;r++){const o=oT(e.children[r],GE(r-n),t);o?yield o:n++}}(a,l);s=function(e,t,n,r,o,i){const a=BR(n,Dx),s=BR(n,(e=>!Dx(e))),l=s!==tn?QF(13,0,s,void 0):void 0;let c=!1;for(let d=e.next();!d.done;d=e.next()){const{errorNode:e,innerExpression:n,nameType:s,errorMessage:u}=d.value;let p=l;const f=a!==tn?tT(t,a,s):void 0;if(!f||8388608&f.flags||(p=l?mv([l,f]):f),!p)continue;let m=kb(t,s);if(!m)continue;const _=rb(s,void 0);if(!wT(m,p,r,void 0)){if(c=!0,!(n&&eT(n,m,p,r,void 0,o,i))){const s=i||{},l=n?nT(n,m):m;if(ie&&WT(l,p)){const t=d_(e,Oa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,il(l),il(p));si.add(t),s.errors=[t]}else{const n=!!(_&&16777216&(kf(a,_)||_t).flags),i=!!(_&&16777216&(kf(t,_)||_t).flags);p=zA(p,n),m=zA(m,n&&i);wT(l,p,r,e,u,o,s)&&l!==m&&wT(m,p,r,e,u,o,s)}}}}return c}(t,e,_,r,o,i)||s}else if(!AT(Mb(t,u),p,r)){s=!0;const e=Ai(a.openingElement.tagName,Oa.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,d,il(p));i&&i.skipLogging&&(i.errors||(i.errors=[])).push(e)}}else if(h!==tn){const e=oT(f[0],u,l);e&&(s=rT(function*(){yield e}(),t,n,r,o,i)||s)}else if(!AT(Mb(t,u),p,r)){s=!0;const e=Ai(a.openingElement.tagName,Oa.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,d,il(p));i&&i.skipLogging&&(i.errors||(i.errors=[])).push(e)}}return s;function l(){if(!a){const t=xm(e.parent.tagName),r=iL(rL(e)),o=void 0===r?"children":Ll(r),i=Mb(n,BE(o)),s=Oa._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;a={...s,key:"!!ALREADY FORMATTED!!",message:aT(s,t,o,il(i))}}return a}}(e,t,n,r,i,a);case 219:return function(e,t,n,r,o,i){if(BD(e.body))return!1;if(se(e.parameters,$u))return!1;const a=Nk(t);if(!a)return!1;const s=wf(n,0);if(!T(s))return!1;const l=e.body,c=bm(a),d=mv(U(s,bm));if(!wT(c,d,r,void 0)){const t=l&&eT(l,c,d,r,void 0,o,i);if(t)return t;const a=i||{};if(wT(c,d,r,l,void 0,o,a),a.errors)return n.symbol&&T(n.symbol.declarations)&&xx(a.errors[a.errors.length-1],d_(n.symbol.declarations[0],Oa.The_expected_type_comes_from_the_return_type_of_this_signature)),0===(2&Zy(e))&&!Ol(c,"then")&&wT(gw(c),d,r,void 0)&&xx(a.errors[a.errors.length-1],d_(e,Oa.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,n,r,i,a)}return!1}function tT(e,t,n){const r=kb(t,n);if(r)return r;if(1048576&t.flags){const r=zT(e,t);if(r)return kb(r,n)}}function nT(e,t){nM(e,t,!1);const n=sO(e,1);return oM(),n}function rT(e,t,n,r,o,i){let a=!1;for(const s of e){const{errorNode:e,innerExpression:l,nameType:c,errorMessage:d}=s;let u=tT(t,n,c);if(!u||8388608&u.flags)continue;let p=kb(t,c);if(!p)continue;const f=rb(c,void 0);if(!wT(p,u,r,void 0)){if(a=!0,!(l&&eT(l,p,u,r,void 0,o,i))){const a=i||{},s=l?nT(l,p):p;if(ie&&WT(s,u)){const t=d_(e,Oa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,il(s),il(u));si.add(t),a.errors=[t]}else{const i=!!(f&&16777216&(kf(n,f)||_t).flags),l=!!(f&&16777216&(kf(t,f)||_t).flags);u=zA(u,i),p=zA(p,i&&l);wT(s,u,r,e,d,o,a)&&s!==p&&wT(p,u,r,e,d,o,a)}if(a.errors){const e=a.errors[a.errors.length-1],t=xA(c)?AA(c):void 0,r=void 0!==t?kf(n,t):void 0;let o=!1;if(!r){const t=tm(n,c);t&&t.declaration&&!Yf(t.declaration).hasNoDefaultLib&&(o=!0,xx(e,d_(t.declaration,Oa.The_expected_type_comes_from_this_index_signature)))}if(!o&&(r&&T(r.declarations)||n.symbol&&T(n.symbol.declarations))){const o=r&&T(r.declarations)?r.declarations[0]:n.symbol.declarations[0];Yf(o).hasNoDefaultLib||xx(e,d_(o,Oa.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!t||8192&c.flags?il(c):Ll(t),il(n)))}}}}}return a}function oT(e,t,n){switch(e.kind){case 294:return{errorNode:e,innerExpression:e.expression,nameType:t};case 12:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:void 0,nameType:t,errorMessage:n()};case 284:case 285:case 288:return{errorNode:e,innerExpression:e,nameType:t};default:return In.assertNever(e,"Found invalid jsx child")}}function*lT(e,t){const n=T(e.elements);if(n)for(let r=0;r<n;r++){if(Tx(t)&&!kf(t,""+r))continue;const n=e.elements[r];if(DD(n))continue;const o=GE(r),i=Bk(n);yield{errorNode:i,innerExpression:i,nameType:o}}}function uT(e,t,n,r,o){return wT(e,t,fi,n,r,o)}function fT(e){if(!e.typeParameters&&(!e.thisParameter||zl(zP(e.thisParameter)))&&1===e.parameters.length&&Zz(e)){const t=zP(e.parameters[0]);return!!(131073&(cx(t)?D_(t)[0]:t).flags&&3&bm(e).flags)}return!1}function mT(e,t,n,r,o,i,a,s){if(e===t)return-1;if(!(16&n&&fT(e))&&fT(t))return-1;if(16&n&&fT(e)&&!fT(t))return 0;const l=XP(t);if(!YP(t)&&(8&n?YP(e)||XP(e)>l:$P(e)>l))return!r||8&n||o(Oa.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,$P(e),l),0;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=kk(e,t=Nm(t),void 0,a));const c=XP(e),d=ZP(e),u=ZP(t);(d||u)&&AS(d||u,s);const p=t.declaration?t.declaration.kind:0,f=!(3&n)&&j&&174!==p&&173!==p&&176!==p;let m=-1;const _=gm(e);if(_&&_!==en){const e=gm(t);if(e){const t=!f&&a(_,e,!1)||a(e,_,r);if(!t)return r&&o(Oa.The_this_types_of_each_signature_are_incompatible),0;m&=t}}const h=d||u?Math.min(c,l):Math.max(c,l),g=d||u?h-1:-1;for(let y=0;y<h;y++){const l=y===g?JP(e,y):KP(e,y),c=y===g?JP(t,y):KP(t,y);if(l&&c){const d=3&n||Dk(e,y)?void 0:Nk(PA(l)),u=3&n||Dk(t,y)?void 0:Nk(PA(c));let p=d&&u&&!ym(d)&&!ym(u)&&fR(l,50331648)===fR(c,50331648)?mT(u,d,8&n|(f?2:1),r,o,i,a,s):!(3&n)&&!f&&a(l,c,!1)||a(c,l,r);if(p&&8&n&&y>=$P(e)&&y<$P(t)&&a(l,c,!1)&&(p=0),!p)return r&&o(Oa.Types_of_parameters_0_and_1_are_incompatible,Ll(GP(e,y)),Ll(GP(t,y))),0;m&=p}}if(!(4&n)){const s=Sm(t)?Tt:t.declaration&&gP(t.declaration)?qd(us(t.declaration.symbol)):bm(t);if(s===en||s===Tt)return m;const l=Sm(e)?Tt:e.declaration&&gP(e.declaration)?qd(us(e.declaration.symbol)):bm(e),c=ym(t);if(c){const t=ym(e);if(t)m&=function(e,t,n,r,o){if(e.kind!==t.kind)return n&&(r(Oa.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),r(Oa.Type_predicate_0_is_not_assignable_to_1,ul(e),ul(t))),0;if((1===e.kind||3===e.kind)&&e.parameterIndex!==t.parameterIndex)return n&&(r(Oa.Parameter_0_is_not_in_the_same_position_as_parameter_1,e.parameterName,t.parameterName),r(Oa.Type_predicate_0_is_not_assignable_to_1,ul(e),ul(t))),0;const i=e.type===t.type?-1:e.type&&t.type?o(e.type,t.type,n):0;0===i&&n&&r(Oa.Type_predicate_0_is_not_assignable_to_1,ul(e),ul(t));return i}(t,c,r,o,a);else if(ah(c))return r&&o(Oa.Signature_0_must_be_a_type_predicate,ol(e)),0}else m&=1&n&&a(s,l,!1)||a(l,s,r),!m&&r&&i&&i(l,s)}return m}function _T(e,t){const n=Dm(e),r=Dm(t),o=bm(n),i=bm(r);return!(i!==en&&!AT(i,o,pi)&&!AT(o,i,pi))&&0!==mT(n,r,!0?4:0,!1,void 0,void 0,jS,void 0)}function hT(e){return e!==Fn&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&0===e.indexInfos.length}function gT(e){return 524288&e.flags?!wp(e)&&hT(Fp(e)):!!(67108864&e.flags)||(1048576&e.flags?se(e.types,gT):!!(2097152&e.flags)&&M(e.types,gT))}function yT(e){return!!(16&RS(e)&&(e.members&&hT(e)||e.symbol&&2048&e.symbol.flags&&0===Mu(e.symbol).size))}function vT(e){return!!(32768&(1048576&e.flags?e.types[0]:e).flags)}function ST(e){return 524288&e.flags&&!wp(e)&&0===Hp(e).length&&1===Kf(e).length&&!!qf(e,jt)||3145728&e.flags&&M(e.types,ST)||!1}function TT(e,t,n){const r=8&e.flags?ms(e):e,o=8&t.flags?ms(t):t;if(r===o)return!0;if(r.escapedName!==o.escapedName||!(256&r.flags)||!(256&o.flags))return!1;const i=Kz(r)+","+Kz(o),a=_i.get(i);if(void 0!==a&&(4&a||!(2&a)||!n))return!!(1&a);const s=sd(o);for(const l of Hp(sd(r)))if(8&l.flags){const e=kf(s,l.escapedName);if(!e||!(8&e.flags))return n?(n(Oa.Property_0_is_missing_in_type_1,wl(l),il(ou(o),void 0,64)),_i.set(i,6)):_i.set(i,2),!1;const t=DB(Df(l,306)),r=DB(Df(e,306));if(t!==r){const a="string"===typeof t,s="string"===typeof r;if(void 0!==t&&void 0!==r){if(n){const l=a?`"${Fv(t)}"`:t,c=s?`"${Fv(r)}"`:r;n(Oa.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,wl(o),wl(e),c,l),_i.set(i,6)}else _i.set(i,2);return!1}if(a||s){if(n){const a=t??r;In.assert("string"===typeof a);const s=`"${Fv(a)}"`;n(Oa.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,wl(o),wl(e),s),_i.set(i,6)}else _i.set(i,2);return!1}}}return _i.set(i,1),!0}function xT(e,t,n,r){const o=e.flags,i=t.flags;if(1&i||131072&o||e===At)return!0;if(2&i&&!(n===ui&&1&o))return!0;if(131072&i)return!1;if(402653316&o&&4&i)return!0;if(128&o&&1024&o&&128&i&&!(1024&i)&&e.value===t.value)return!0;if(296&o&&8&i)return!0;if(256&o&&1024&o&&256&i&&!(1024&i)&&e.value===t.value)return!0;if(2112&o&&64&i)return!0;if(528&o&&16&i)return!0;if(12288&o&&4096&i)return!0;if(32&o&&32&i&&e.symbol.escapedName===t.symbol.escapedName&&TT(e.symbol,t.symbol,r))return!0;if(1024&o&&1024&i){if(1048576&o&&1048576&i&&TT(e.symbol,t.symbol,r))return!0;if(2944&o&&2944&i&&e.value===t.value&&TT(e.symbol,t.symbol,r))return!0}if(32768&o&&(!z&&!(3145728&i)||49152&i))return!0;if(65536&o&&(!z&&!(3145728&i)||65536&i))return!0;if(524288&o&&67108864&i&&(n!==ui||!yT(e)||8192&RS(e)))return!0;if(n===pi||n===fi){if(1&o)return!0;if(8&o&&(32&i||256&i&&1024&i))return!0;if(256&o&&!(1024&o)&&(32&i||256&i&&1024&i&&e.value===t.value))return!0;if(function(e){if(z&&1048576&e.flags){if(!(33554432&e.objectFlags)){const t=e.types;e.objectFlags|=33554432|(t.length>=3&&32768&t[0].flags&&65536&t[1].flags&&se(t,yT)?67108864:0)}return!!(67108864&e.objectFlags)}return!1}(t))return!0}return!1}function AT(e,t,n){if(zE(e)&&(e=e.regularType),zE(t)&&(t=t.regularType),e===t)return!0;if(n!==mi){if(n===fi&&!(131072&t.flags)&&xT(t,e,n)||xT(e,t,n))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){const r=n.get($T(e,t,0,n,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&t.flags)&&wT(e,t,n,void 0)}function CT(e,t){return 2048&RS(e)&&qM(t.escapedName)}function DT(e,t){for(;;){const n=zE(e)?e.regularType:iA(e)?MT(e,t):4&RS(e)?e.node?v_(e.target,D_(e)):yx(e)||e:3145728&e.flags?NT(e,t):33554432&e.flags?t?e.baseType:sh(e):25165824&e.flags?gb(e,t):e;if(n===e)return n;e=n}}function NT(e,t){const n=Tf(e);if(n!==e)return n;if(2097152&e.flags&&se(e.types,yT)){const n=K(e.types,(e=>DT(e,t)));if(n!==e.types)return Cv(n)}return e}function MT(e,t){const n=qy(e),r=K(n,(e=>25165824&e.flags?gb(e,t):e));return n!==r?Gy(e.target,r):e}function wT(e,t,n,r,a,s,l){var c;let d,u,p,f,m,_,h,g,y=0,v=0,b=0,E=0,x=!1,A=0,I=0,R=16e6-n.size>>3;In.assert(n!==mi||!r,"no error reporting in identity checking");const C=j(e,t,3,!!r,a);if(g&&L(),x){const o=$T(e,t,0,n,!1);n.set(o,6),null==(c=kr)||c.instant(kr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:t.id,depth:v,targetDepth:b});const a=R<=0?Oa.Excessive_complexity_comparing_types_0_and_1:Oa.Excessive_stack_depth_comparing_types_0_and_1,s=Ai(r||i,a,il(e),il(t));l&&(l.errors||(l.errors=[])).push(s)}else if(d){if(s){const e=s();e&&(dT(e,d),d=e)}let o;if(a&&r&&!C&&e.symbol){const r=Ui(e.symbol);if(r.originatingImport&&!L_(r.originatingImport)){if(wT(sd(r.target),t,n,void 0)){o=Ee(o,d_(r.originatingImport,Oa.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}const i=f_(Yf(r),r,d,o);u&&xx(i,...u),l&&(l.errors||(l.errors=[])).push(i),l&&l.skipLogging||si.add(i)}return r&&l&&l.skipLogging&&0===C&&In.assert(!!l.errors,"missed opportunity to interact with error."),0!==C;function D(e){d=e.errorInfo,h=e.lastSkippedInfo,g=e.incompatibleStack,A=e.overrideNextErrorInfo,I=e.skipParentCounter,u=e.relatedInfo}function N(){return{errorInfo:d,lastSkippedInfo:h,incompatibleStack:null==g?void 0:g.slice(),overrideNextErrorInfo:A,skipParentCounter:I,relatedInfo:null==u?void 0:u.slice()}}function M(e,...t){A++,h=void 0,(g||(g=[])).push([e,...t])}function L(){const e=g||[];g=void 0;const t=h;if(h=void 0,1===e.length)return k(...e[0]),void(t&&W(void 0,...t));let n="";const r=[];for(;e.length;){const[t,...o]=e.pop();switch(t.code){case Oa.Types_of_property_0_are_incompatible.code:{0===n.indexOf("new ")&&(n=`(${n})`);const e=""+o[0];n=0===n.length?`${e}`:zs(e,jp(S))?`${n}.${e}`:"["===e[0]&&"]"===e[e.length-1]?`${n}${e}`:`${n}[${e}]`;break}case Oa.Call_signature_return_types_0_and_1_are_incompatible.code:case Oa.Construct_signature_return_types_0_and_1_are_incompatible.code:case Oa.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case Oa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){let e=t;t.code===Oa.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=Oa.Call_signature_return_types_0_and_1_are_incompatible:t.code===Oa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=Oa.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,o[0],o[1]])}else{n=`${t.code===Oa.Construct_signature_return_types_0_and_1_are_incompatible.code||t.code===Oa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":""}${n}(${t.code===Oa.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||t.code===Oa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"..."})`}break;case Oa.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([Oa.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,o[0],o[1]]);break;case Oa.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([Oa.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,o[0],o[1],o[2]]);break;default:return In.fail(`Unhandled Diagnostic: ${t.code}`)}}n?k(")"===n[n.length-1]?Oa.The_types_returned_by_0_are_incompatible_between_these_types:Oa.The_types_of_0_are_incompatible_between_these_types,n):r.shift();for(const[o,...i]of r){const e=o.elidedInCompatabilityPyramid;o.elidedInCompatabilityPyramid=!1,k(o,...i),o.elidedInCompatabilityPyramid=e}t&&W(void 0,...t)}function k(e,...t){In.assert(!!r),g&&L(),e.elidedInCompatabilityPyramid||(0===I?d=cT(d,e,...t):I--)}function w(e,...t){k(e,...t),I++}function O(e){In.assert(!!d),u?u.push(e):u=[e]}function W(e,t,r){g&&L();const[o,i]=al(t,r);let a=t,s=o;Gx(t)&&!OT(r)&&(a=Ux(t),In.assert(!KS(a,r),"generalized source shouldn't be assignable"),s=sl(a));if(262144&(8388608&r.flags&&!(8388608&t.flags)?r.objectType.flags:r.flags)&&r!==Un&&r!==Hn){const e=lf(r);let n;e&&(KS(a,e)||(n=KS(t,e)))?k(Oa._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,n?o:s,i,il(e)):(d=void 0,k(Oa._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,i,s))}if(e)e===Oa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&ie&&FT(t,r).length&&(e=Oa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(n===fi)e=Oa.Type_0_is_not_comparable_to_type_1;else if(o===i)e=Oa.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(ie&&FT(t,r).length)e=Oa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&t.flags&&1048576&r.flags){const e=function(e,t){const n=t.types.filter((e=>!!(128&e.flags)));return Xt(e.value,n,(e=>e.value))}(t,r);if(e)return void k(Oa.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,i,il(e))}e=Oa.Type_0_is_not_assignable_to_type_1}k(e,s,i)}function B(e,t,n){return tA(e)?e.target.readonly&&fx(t)?(n&&k(Oa.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,il(e),il(t)),!1):px(t):dx(e)&&fx(t)?(n&&k(Oa.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,il(e),il(t)),!1):!tA(t)||cx(e)}function G(e,t,n){return j(e,t,3,n)}function j(e,t,o=3,i=!1,a,s=0){if(e===t)return-1;if(524288&e.flags&&402784252&t.flags)return n===fi&&!(131072&t.flags)&&xT(t,e,n)||xT(e,t,n,i?k:void 0)?-1:(i&&V(e,t,e,t,a),0);const l=DT(e,!1);let c=DT(t,!0);if(l===c)return-1;if(n===mi)return l.flags!==c.flags?0:67358815&l.flags?-1:(H(l,c),ee(l,c,!1,0,o));if(262144&l.flags&&Xp(l)===c)return-1;if(470302716&l.flags&&1048576&c.flags){const e=c.types,t=2===e.length&&98304&e[0].flags?e[1]:3===e.length&&98304&e[0].flags&&98304&e[1].flags?e[2]:void 0;if(t&&!(98304&t.flags)&&(c=DT(t,!0),l===c))return-1}if(n===fi&&!(131072&c.flags)&&xT(c,l,n)||xT(l,c,n,i?k:void 0))return-1;if(469499904&l.flags||469499904&c.flags){if(!(2&s)&&WI(l)&&8192&RS(l)&&function(e,t,o){var i;if(!bL(t)||!$&&4096&RS(t))return!1;const a=!!(2048&RS(e));if((n===pi||n===fi)&&(PR($n,t)||!a&&gT(t)))return!1;let s,l=t;1048576&t.flags&&(l=RG(e,t,j)||function(e){if(Ww(e,67108864)){const t=BR(e,(e=>!(402784252&e.flags)));if(!(131072&t.flags))return t}return e}(t),s=1048576&l.flags?l.types:[l]);for(const n of Hp(e))if(J(n,e.symbol)&&!CT(e,n)){if(!hL(l,n.escapedName,a)){if(o){const t=BR(l,bL);if(!r)return In.fail();if(UN(r)||ju(r)||ju(r.parent)){n.valueDeclaration&&VN(n.valueDeclaration)&&Yf(r)===Yf(n.valueDeclaration.name)&&(r=n.valueDeclaration.name);const e=rl(n),o=rk(e,t),i=o?rl(o):void 0;i?k(Oa.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,il(t),i):k(Oa.Property_0_does_not_exist_on_type_1,e,il(t))}else{const o=(null==(i=e.symbol)?void 0:i.declarations)&&Le(e.symbol.declarations);let a;if(n.valueDeclaration&&Cl(n.valueDeclaration,(e=>e===o))&&Yf(o)===Yf(r)){const e=n.valueDeclaration;In.assertNode(e,Bd);const o=e.name;r=o,nC(o)&&(a=ok(o,t))}void 0!==a?w(Oa.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,rl(n),il(t),a):w(Oa.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,rl(n),il(t))}}return!0}if(s&&!j(sd(n),q(s,n.escapedName),3,o))return o&&M(Oa.Types_of_property_0_are_incompatible,rl(n)),!0}return!1}(l,c,i))return i&&W(a,l,t.aliasSymbol?t:c),0;const d=(n!==fi||Wx(l))&&!(2&s)&&405405692&l.flags&&l!==$n&&2621440&c.flags&>(c)&&(Hp(l).length>0||cB(l)),u=!!(2048&RS(l));if(d&&!function(e,t,n){for(const r of Hp(e))if(hL(t,r.escapedName,n))return!0;return!1}(l,c,u)){if(i){const n=il(e.aliasSymbol?e:l),r=il(t.aliasSymbol?t:c),o=wf(l,0),i=wf(l,1);o.length>0&&j(bm(o[0]),c,1,!1)||i.length>0&&j(bm(i[0]),c,1,!1)?k(Oa.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,n,r):k(Oa.Type_0_has_no_properties_in_common_with_type_1,n,r)}return 0}H(l,c);const p=1048576&l.flags&&l.types.length<4&&!(1048576&c.flags)||1048576&c.flags&&c.types.length<4&&!(469499904&l.flags)?X(l,c,i,s):ee(l,c,i,s,o);if(p)return p}return i&&V(e,t,l,c,a),0}function V(e,t,n,o,i){var a,s;const l=!!yx(e),c=!!yx(t);n=e.aliasSymbol||l?e:n,o=t.aliasSymbol||c?t:o;let u=A>0;if(u&&A--,524288&n.flags&&524288&o.flags){const e=d;B(n,o,!0),d!==e&&(u=!!d)}if(524288&n.flags&&402784252&o.flags)!function(e,t){const n=ll(e.symbol)?il(e,e.symbol.valueDeclaration):il(e),r=ll(t.symbol)?il(t,t.symbol.valueDeclaration):il(t);(nr===e&&jt===t||rr===e&&Vt===t||or===e&&Qt===t||xg()===e&&Zt===t)&&k(Oa._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,n)}(n,o);else if(n.symbol&&524288&n.flags&&$n===n)k(Oa.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&RS(n)&&2097152&o.flags){const e=o.types,t=eL(Gz.IntrinsicAttributes,r),n=eL(Gz.IntrinsicClassAttributes,r);if(!Gl(t)&&!Gl(n)&&(F(e,t)||F(e,n)))return}else d=Cf(d,t);if(i||!u){if(W(i,n,o),262144&n.flags&&(null==(s=null==(a=n.symbol)?void 0:a.declarations)?void 0:s[0])&&!Xp(n)){const e=dS(n);if(e.constraint=AS(o,nS(n,e)),df(e)){const e=il(o,n.symbol.declarations[0]);O(d_(n.symbol.declarations[0],Oa.This_type_parameter_might_need_an_extends_0_constraint,e))}}}else h=[n,o]}function H(e,t){if(kr&&3145728&e.flags&&3145728&t.flags){const n=e,o=t;if(n.objectFlags&o.objectFlags&32768)return;const i=n.types.length,a=o.types.length;i*a>1e6&&kr.instant(kr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:e.id,sourceSize:i,targetId:t.id,targetSize:a,pos:null==r?void 0:r.pos,end:null==r?void 0:r.end})}}function q(e,t){return mv(Ue(e,((e,n)=>{var r;const o=3145728&(n=yf(n)).flags?Sf(n,t):Bp(n,t);return Ee(e,o&&sd(o)||(null==(r=nm(n,t))?void 0:r.type)||Pt)}),void 0)||o)}function J(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}function X(e,t,r,o){if(1048576&e.flags){if(1048576&t.flags){const n=e.origin;if(n&&2097152&n.flags&&t.aliasSymbol&&F(n.types,t))return-1;const r=t.origin;if(r&&1048576&r.flags&&e.aliasSymbol&&F(r.types,e))return-1}return n===fi?Z(e,t,r&&!(402784252&e.flags),o):function(e,t,n,r){let o=-1;const i=e.types,a=function(e,t){if(1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags)return HR(t,-32769);return t}(e,t);for(let s=0;s<i.length;s++){const e=i[s];if(1048576&a.flags&&i.length>=a.types.length&&i.length%a.types.length===0){const t=j(e,a.types[s%a.types.length],3,!1,void 0,r);if(t){o&=t;continue}}const l=j(e,t,1,n,void 0,r);if(!l)return 0;o&=l}return o}(e,t,r&&!(402784252&e.flags),o)}if(1048576&t.flags)return Q(HA(e),t,r&&!(402784252&e.flags)&&!(402784252&t.flags),o);if(2097152&t.flags)return function(e,t,n,r){let o=-1;const i=t.types;for(const a of i){const t=j(e,a,2,n,void 0,r);if(!t)return 0;o&=t}return o}(e,t,r,2);if(n===fi&&402784252&t.flags){const n=K(e.types,(e=>465829888&e.flags?lf(e)||Mt:e));if(n!==e.types){if(131072&(e=Cv(n)).flags)return 0;if(!(2097152&e.flags))return j(e,t,1,!1)||j(t,e,1,!1)}}return Z(e,t,!1,1)}function Y(e,t){let n=-1;const r=e.types;for(const o of r){const e=Q(o,t,!1,0);if(!e)return 0;n&=e}return n}function Q(e,t,r,o){const i=t.types;if(1048576&t.flags){if($y(i,e))return-1;if(n!==fi&&32768&RS(t)&&!(1024&e.flags)&&(2688&e.flags||(n===di||n===ui)&&256&e.flags)){const t=e===e.regularType?e.freshType:e.regularType,n=128&e.flags?jt:256&e.flags?Vt:2048&e.flags?Ut:void 0;return n&&$y(i,n)||t&&$y(i,t)?-1:0}const r=sR(t,e);if(r){const t=j(e,r,2,!1,void 0,o);if(t)return t}}for(const n of i){const t=j(e,n,2,!1,void 0,o);if(t)return t}if(r){const n=zT(e,t,j);n&&j(e,n,2,!0,void 0,o)}return 0}function Z(e,t,n,r){const o=e.types;if(1048576&e.flags&&$y(o,t))return-1;const i=o.length;for(let a=0;a<i;a++){const e=j(o[a],t,1,n&&a===i-1,void 0,r);if(e)return e}return 0}function ee(e,t,r,i,a){var s,l,c;if(x)return 0;const u=$T(e,t,i,n,!1),h=n.get(u);if(void 0!==h&&(!(r&&2&h)||4&h)){if($t){const t=24&h;8&t&&AS(e,Dn),16&t&&AS(e,Cn)}return 1&h?-1:0}if(R<=0)return x=!0,0;if(p){if(f.has(u))return 3;const r=u.startsWith("*")?$T(e,t,i,n,!0):void 0;if(r&&f.has(r))return 3;if(100===v||100===b)return x=!0,0}else p=[],f=new Set,m=[],_=[];const g=y;p[y]=u,f.add(u),y++;const S=E;let T;1&a&&(m[v]=e,v++,1&E||!tx(e,m,v)||(E|=1)),2&a&&(_[b]=t,b++,2&E||!tx(t,_,b)||(E|=2));let A,I=0;return $t&&(T=$t,$t=e=>(I|=e?16:8,T(e))),3===E?(null==(s=kr)||s.instant(kr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:m.map((e=>e.id)),targetId:t.id,targetIdStack:_.map((e=>e.id)),depth:v,targetDepth:b}),A=3):(null==(l=kr)||l.push(kr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:e.id,targetId:t.id}),A=function(e,t,r,i){const a=N();let s=function(e,t,r,i,a){let s,l,c=!1,u=e.flags;const p=t.flags;if(n===mi){if(3145728&u){let n=Y(e,t);return n&&(n&=Y(t,e)),n}if(4194304&u)return j(e.type,t.type,3,!1);if(8388608&u&&(s=j(e.objectType,t.objectType,3,!1))&&(s&=j(e.indexType,t.indexType,3,!1)))return s;if(16777216&u&&e.root.isDistributive===t.root.isDistributive&&(s=j(e.checkType,t.checkType,3,!1))&&(s&=j(e.extendsType,t.extendsType,3,!1))&&(s&=j(eE(e),eE(t),3,!1))&&(s&=j(tE(e),tE(t),3,!1)))return s;if(33554432&u&&(s=j(e.baseType,t.baseType,3,!1))&&(s&=j(e.constraint,t.constraint,3,!1)))return s;if(!(524288&u))return 0}else if(3145728&u||3145728&p){if(s=X(e,t,r,i))return s;if(!(465829888&u||524288&u&&1048576&p||2097152&u&&467402752&p))return 0}if(17301504&u&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol&&!KT(e)&&!KT(t)){const n=VT(e.aliasSymbol);if(n===o)return 1;const r=Ui(e.aliasSymbol).typeParameters,a=dm(r),s=y(um(e.aliasTypeArguments,r,a,$h(e.aliasSymbol.valueDeclaration)),um(t.aliasTypeArguments,r,a,$h(e.aliasSymbol.valueDeclaration)),n,i);if(void 0!==s)return s}if(aA(e)&&!e.target.readonly&&(s=j(D_(e)[0],t,1))||aA(t)&&(t.target.readonly||fx(lf(e)||e))&&(s=j(e,D_(t)[0],2)))return s;if(262144&p){if(32&RS(e)&&!e.declaration.nameType&&j(Jv(t),Ip(e),3)&&!(4&Lp(e))){const n=Cp(e),o=Mb(t,Ap(e));if(s=j(n,o,3,r))return s}if(n===fi&&262144&u){let n=$p(e);if(n)for(;n&&OR(n,(e=>!!(262144&e.flags)));){if(s=j(n,t,1,!1))return s;n=$p(n)}return 0}}else if(4194304&p){const n=t.type;if(4194304&u&&(s=j(n,e.type,3,!1)))return s;if(tA(n)){if(s=j(e,Uy(n),2,r))return s}else{const o=tf(n);if(o){if(-1===j(e,Jv(o,4|t.indexFlags),2,r))return-1}else if(wp(n)){const t=Rp(n),o=Ip(n);let i;if(t&&Np(n)){i=mv([te(t,n),t])}else i=t||o;if(-1===j(e,i,2,r))return-1}}}else if(8388608&p){if(8388608&u){if((s=j(e.objectType,t.objectType,3,r))&&(s&=j(e.indexType,t.indexType,3,r)),s)return s;r&&(l=d)}if(n===pi||n===fi){const n=t.objectType,o=t.indexType,c=lf(n)||n,u=lf(o)||o;if(!pb(c)&&!fb(u)){const t=kb(c,u,4|(c!==n?2:0));if(t){if(r&&l&&D(a),s=j(e,t,2,r,void 0,i))return s;r&&l&&d&&(d=g([l])<=g([d])?l:d)}}}r&&(l=void 0)}else if(wp(t)&&n!==mi){const n=!!t.declaration.nameType,o=Cp(t),i=Lp(t);if(!(8&i)){if(!n&&8388608&o.flags&&o.objectType===e&&o.indexType===Ap(t))return-1;if(!wp(e)){const o=n?Rp(t):Ip(t),c=Jv(e,2),u=4&i,p=u?pp(o,c):void 0;if(u?!(131072&p.flags):j(o,c,3)){const i=Cp(t),a=Ap(t),l=HR(i,-98305);if(!n&&8388608&l.flags&&l.indexType===a){if(s=j(e,l.objectType,2,r))return s}else{const t=Mb(e,n?p||o:p?Cv([p,a]):a);if(s=j(t,i,3,r))return s}}l=d,D(a)}}}else if(16777216&p){if(tx(t,_,b,10))return 3;const n=t;if(!n.root.inferTypeParameters&&(!(f=n.root).isDistributive||!hS(f.checkType,f.node.trueType)&&!hS(f.checkType,f.node.falseType))&&!(16777216&e.flags&&e.root===n.root)){const t=!KS(NS(n.checkType),NS(n.extendsType)),r=!t&&KS(MS(n.checkType),MS(n.extendsType));if((s=t?-1:j(e,eE(n),2,!1,void 0,i))&&(s&=r?-1:j(e,tE(n),2,!1,void 0,i),s))return s}}else if(134217728&p){if(134217728&u){if(n===fi)return function(e,t){const n=e.texts[0],r=t.texts[0],o=e.texts[e.texts.length-1],i=t.texts[t.texts.length-1],a=Math.min(n.length,r.length),s=Math.min(o.length,i.length);return n.slice(0,a)!==r.slice(0,a)||o.slice(o.length-s)!==i.slice(i.length-s)}(e,t)?0:-1;AS(e,Cn)}if(LI(e,t))return-1}else if(268435456&t.flags&&!(268435456&e.flags)&&DI(e,t))return-1;var f;if(8650752&u){if(!(8388608&u&&8388608&p)){const n=Xp(e)||Mt;if(s=j(n,t,1,!1,void 0,i))return s;if(s=j(Pu(n,e),t,1,r&&n!==Mt&&!(p&u&262144),void 0,i))return s;if(gf(e)){const n=Xp(e.indexType);if(n&&(s=j(Mb(e.objectType,n),t,1,r)))return s}}}else if(4194304&u){const n=qv(e.type,e.indexFlags)&&32&RS(e.type);if(s=j(gn,t,1,r&&!n))return s;if(n){const n=e.type,o=Rp(n),i=o&&Np(n)?te(o,n):o||Ip(n);if(s=j(i,t,1,r))return s}}else if(134217728&u&&!(524288&p)){if(!(134217728&p)){const n=lf(e);if(n&&n!==e&&(s=j(n,t,1,r)))return s}}else if(268435456&u)if(268435456&p){if(e.symbol!==t.symbol)return 0;if(s=j(e.type,t.type,3,r))return s}else{const n=lf(e);if(n&&(s=j(n,t,1,r)))return s}else if(16777216&u){if(tx(e,m,v,10))return 3;if(16777216&p){const n=e.root.inferTypeParameters;let o,i=e.extendsType;if(n){const e=oI(n,void 0,0,G);wI(e.inferences,t.extendsType,i,1536),i=AS(i,e.mapper),o=e.mapper}if(BS(i,t.extendsType)&&(j(e.checkType,t.checkType,3)||j(t.checkType,e.checkType,3))&&((s=j(AS(eE(e),o),eE(t),3,r))&&(s&=j(tE(e),tE(t),3,r)),s))return s}const n=nf(e);if(n&&(s=j(n,t,1,r)))return s;const o=16777216&p||!df(e)?void 0:of(e);if(o&&(D(a),s=j(o,t,1,r)))return s}else{if(n!==di&&n!==ui&&(32&RS(h=t)&&4&Lp(h))&&gT(e))return-1;if(wp(t))return wp(e)&&(s=function(e,t,r){const o=n===fi||(n===mi?Lp(e)===Lp(t):Pp(e)<=Pp(t));if(o){let n;if(n=j(Ip(t),AS(Ip(e),Pp(e)<0?Dn:Cn),3,r)){const o=eS([Ap(e)],[Ap(t)]);if(AS(Rp(e),o)===AS(Rp(t),o))return n&j(AS(Cp(e),o),Cp(t),3,r)}}return 0}(e,t,r))?s:0;const f=!!(402784252&u);if(n!==mi)u=(e=yf(e)).flags;else if(wp(e))return 0;if(4&RS(e)&&4&RS(t)&&e.target===t.target&&!tA(e)&&!KT(e)&&!KT(t)){if(Sx(e))return-1;const n=jT(e.target);if(n===o)return 1;const r=y(D_(e),D_(t),n,i);if(void 0!==r)return r}else{if(dx(t)?WR(e,px):cx(t)&&WR(e,(e=>tA(e)&&!e.target.readonly)))return n!==mi?j(Jf(e,Vt)||Tt,Jf(t,Vt)||Tt,3,r):0;if(iA(e)&&tA(t)&&!iA(t)){const n=cf(e);if(n!==e)return j(n,t,1,r)}else if((n===di||n===ui)&&gT(t)&&8192&RS(t)&&!gT(e))return 0}if(2621440&u&&524288&p){const n=r&&d===a.errorInfo&&!f;if(s=oe(e,t,n,void 0,!1,i),s&&(s&=ae(e,t,0,n,i),s&&(s&=ae(e,t,1,n,i),s&&(s&=pe(e,t,f,n,i)))),c&&s)d=l||d||a.errorInfo;else if(s)return s}if(2621440&u&&1048576&p){const r=HR(t,36175872);if(1048576&r.flags){const t=function(e,t){var r;const o=Hp(e),i=oR(o,t);if(!i)return 0;let a=1;for(const n of i)if(a*=jR(cd(n)),a>25)return null==(r=kr)||r.instant(kr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:e.id,targetId:t.id,numCombinations:a}),0;const s=new Array(i.length),l=new Set;for(let n=0;n<i.length;n++){const e=i[n],t=cd(e);s[n]=1048576&t.flags?t.types:[t],l.add(e.escapedName)}const c=bn(s),d=[];for(const p of c){let r=!1;e:for(const o of t.types){for(let r=0;r<i.length;r++){const a=i[r],s=kf(o,a.escapedName);if(!s)continue e;if(a===s)continue;if(!re(e,t,a,s,(e=>p[r]),!1,0,z||n===fi))continue e}Ae(d,o,kt),r=!0}if(!r)return 0}let u=-1;for(const n of d)if(u&=oe(e,n,!1,l,!1,0),u&&(u&=ae(e,n,0,!1,0),u&&(u&=ae(e,n,1,!1,0),!u||tA(e)&&tA(n)||(u&=pe(e,n,!1,!1,0)))),!u)return u;return u}(e,r);if(t)return t}}}var h;return 0;function g(e){return e?Ue(e,((e,t)=>e+1+g(t.next)),0):0}function y(e,t,i,u){if(s=function(e=o,t=o,r=o,i,a){if(e.length!==t.length&&n===mi)return 0;const s=e.length<=t.length?e.length:t.length;let l=-1;for(let o=0;o<s;o++){const s=o<r.length?r[o]:1,c=7&s;if(4!==c){const r=e[o],d=t[o];let u=-1;if(8&s?u=n===mi?j(r,d,3,!1):GS(r,d):1===c?u=j(r,d,3,i,void 0,a):2===c?u=j(d,r,3,i,void 0,a):3===c?(u=j(d,r,3,!1),u||(u=j(r,d,3,i,void 0,a))):(u=j(r,d,3,i,void 0,a),u&&(u&=j(d,r,3,i,void 0,a))),!u)return 0;l&=u}}return l}(e,t,i,r,u))return s;if(se(i,(e=>!!(24&e))))return l=void 0,void D(a);const p=t&&function(e,t){for(let n=0;n<t.length;n++)if(1===(7&t[n])&&16384&e[n].flags)return!0;return!1}(t,i);if(c=!p,i!==o&&!p){if(c&&(!r||!se(i,(e=>0===(7&e)))))return 0;l=d,D(a)}}}(e,t,r,i,a);if(n!==mi){if(!s&&(2097152&e.flags||262144&e.flags&&1048576&t.flags)){const n=function(e,t){let n,r=!1;for(const o of e)if(465829888&o.flags){let e=Xp(o);for(;e&&21233664&e.flags;)e=Xp(e);e&&(n=Ee(n,e),t&&(n=Ee(n,o)))}else(469892092&o.flags||yT(o))&&(r=!0);if(n&&(t||r)){if(r)for(const t of e)(469892092&t.flags||yT(t))&&(n=Ee(n,t));return DT(Cv(n),!1)}}(2097152&e.flags?e.types:[e],!!(1048576&t.flags));n&&WR(n,(t=>t!==e))&&(s=j(n,t,1,!1,void 0,i))}s&&!(2&i)&&2097152&t.flags&&!pb(t)&&2621440&e.flags?(s&=oe(e,t,r,void 0,!1,0),s&&WI(e)&&8192&RS(e)&&(s&=pe(e,t,!1,r,0))):s&&uE(t)&&!px(t)&&2097152&e.flags&&3670016&yf(e).flags&&!se(e.types,(e=>e===t||!!(262144&RS(e))))&&(s&=oe(e,t,r,void 0,!0,i))}s&&D(a);return s}(e,t,r,i),null==(c=kr)||c.pop()),$t&&($t=T),1&a&&v--,2&a&&b--,E=S,A?(-1===A||0===v&&0===b)&&C(-1===A||3===A):(n.set(u,2|(r?4:0)|I),R--,C(!1)),A;function C(e){for(let t=g;t<y;t++)f.delete(p[t]),e&&(n.set(p[t],1|I),R--);y=g}}function te(e,t){const n=yf(Mp(t)),r=[];return Tp(n,8576,!1,(n=>{r.push(AS(e,cS(t.mapper,Ap(t),n)))})),mv(r)}function ne(e,t){if(!t||0===e.length)return e;let n;for(let r=0;r<e.length;r++)t.has(e[r].escapedName)?n||(n=e.slice(0,r)):n&&n.push(e[r]);return n||e}function re(e,t,r,o,i,a,s,l){const c=_S(r),d=_S(o);if(2&c||2&d){if(r.valueDeclaration!==o.valueDeclaration)return a&&(2&c&&2&d?k(Oa.Types_have_separate_declarations_of_a_private_property_0,rl(o)):k(Oa.Property_0_is_private_in_type_1_but_not_in_type_2,rl(o),il(2&c?e:t),il(2&c?t:e))),0}else if(4&d){if(!function(e,t){return!YT(t,(t=>{return!!(4&_S(t))&&(n=e,r=QT(t),!YT(n,(e=>{const t=QT(e);return!!t&&fd(t,r)})));var n,r}))}(r,o))return a&&k(Oa.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,rl(o),il(QT(r)||e),il(QT(o)||t)),0}else if(4&c)return a&&k(Oa.Property_0_is_protected_in_type_1_but_public_in_type_2,rl(o),il(e),il(t)),0;if(n===ui&&Mw(r)&&!Mw(o))return 0;const u=function(e,t,n,r,o){const i=z&&!!(48&mS(t)),a=ac(cd(t),!1,i);return j(n(e),a,3,r,void 0,o)}(r,o,i,a,s);return u?!l&&16777216&r.flags&&106500&o.flags&&!(16777216&o.flags)?(a&&k(Oa.Property_0_is_optional_in_type_1_but_required_in_type_2,rl(o),il(e),il(t)),0):u:(a&&M(Oa.Types_of_property_0_are_incompatible,rl(o)),0)}function oe(e,t,r,o,i,s){if(n===mi)return function(e,t,n){if(!(524288&e.flags&&524288&t.flags))return 0;const r=ne(zp(e),n),o=ne(zp(t),n);if(r.length!==o.length)return 0;let i=-1;for(const a of r){const e=Bp(t,a.escapedName);if(!e)return 0;const n=ix(a,e,j);if(!n)return 0;i&=n}return i}(e,t,o);let l=-1;if(tA(t)){if(px(e)){if(!t.target.readonly&&(dx(e)||tA(e)&&e.target.readonly))return 0;const n=N_(e),i=N_(t),a=tA(e)?4&e.target.combinedFlags:4,c=4&t.target.combinedFlags,d=tA(e)?e.target.minLength:0,u=t.target.minLength;if(!a&&n<u)return r&&k(Oa.Source_has_0_element_s_but_target_requires_1,n,u),0;if(!c&&i<d)return r&&k(Oa.Source_has_0_element_s_but_target_allows_only_1,d,i),0;if(!c&&(a||i<n))return r&&(d<u?k(Oa.Target_requires_0_element_s_but_source_may_have_fewer,u):k(Oa.Target_allows_only_0_element_s_but_source_may_have_more,i)),0;const p=D_(e),f=D_(t),m=function(e,t){const n=P(e.elementFlags,(e=>!(e&t)));return n>=0?n:e.elementFlags.length}(t.target,11),_=Hy(t.target,11),h=t.target.hasRestElement;let g=!!o;for(let y=0;y<n;y++){const a=tA(e)?e.target.elementFlags[y]:4,c=n-1-y,d=h&&y>=m?i-1-Math.min(c,_):y,u=t.target.elementFlags[d];if(8&u&&!(8&a))return r&&k(Oa.Source_provides_no_match_for_variadic_element_at_position_0_in_target,d),0;if(8&a&&!(12&u))return r&&k(Oa.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,y,d),0;if(1&u&&!(1&a))return r&&k(Oa.Source_provides_no_match_for_required_element_at_position_0_in_target,d),0;if(g&&((12&a||12&u)&&(g=!1),g&&(null==o?void 0:o.has(""+y))))continue;const v=zA(p[y],!!(a&u&2)),b=f[d],E=j(v,8&a&&4&u?ey(b):zA(b,!!(2&u)),3,r,void 0,s);if(!E)return r&&(i>1||n>1)&&(h&&y>=m&&c>=_&&m!==n-_-1?M(Oa.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,m,n-_-1,d):M(Oa.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,y,d)),0;l&=E}return l}if(12&t.target.combinedFlags)return 0}const c=(n===di||n===ui)&&!WI(e)&&!Sx(e)&&!tA(e),u=bI(e,t,c,!1);if(u)return r&&function(e,t){const n=Pf(e,0),r=Pf(e,1),o=zp(e);if((n.length||r.length)&&!o.length)return!!(wf(t,0).length&&n.length||wf(t,1).length&&r.length);return!0}(e,t)&&function(e,t,n,r){let o=!1;if(n.valueDeclaration&&Bl(n.valueDeclaration)&&rC(n.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){const r=n.valueDeclaration.name.escapedText,o=dv(e.symbol,r);if(o&&kf(e,o)){const n=UA.getDeclarationName(e.symbol.valueDeclaration),o=UA.getDeclarationName(t.symbol.valueDeclaration);return void k(Oa.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,sa(r),sa(""===n.escapedText?Dz:n),sa(""===o.escapedText?Dz:o))}}const i=Ye(vI(e,t,r,!1));if((!a||a.code!==Oa.Class_0_incorrectly_implements_interface_1.code&&a.code!==Oa.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(o=!0),1===i.length){const r=rl(n,void 0,0,20);k(Oa.Property_0_is_missing_in_type_1_but_required_in_type_2,r,...al(e,t)),T(n.declarations)&&O(d_(n.declarations[0],Oa._0_is_declared_here,r)),o&&d&&A++}else B(e,t,!1)&&(i.length>5?k(Oa.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,il(e),il(t),U(i.slice(0,4),(e=>rl(e))).join(", "),i.length-4):k(Oa.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,il(e),il(t),U(i,(e=>rl(e))).join(", ")),o&&d&&A++)}(e,t,u,c),0;if(WI(t))for(const n of ne(Hp(e),o))if(!Bp(t,n.escapedName)){if(!(32768&sd(n).flags))return r&&k(Oa.Property_0_does_not_exist_on_type_1,rl(n),il(t)),0}const p=Hp(t),f=tA(e)&&tA(t);for(const a of ne(p,o)){const o=a.escapedName;if(!(4194304&a.flags)&&(!f||nA(o)||"length"===o)&&(!i||16777216&a.flags)){const i=kf(e,o);if(i&&i!==a){const o=re(e,t,i,a,cd,r,s,n===fi);if(!o)return 0;l&=o}}}return l}function ae(e,t,r,o,i){var a,s;if(n===mi)return function(e,t,n){const r=wf(e,n),o=wf(t,n);if(r.length!==o.length)return 0;let i=-1;for(let a=0;a<r.length;a++){const e=ax(r[a],o[a],!1,!1,!1,j);if(!e)return 0;i&=e}return i}(e,t,r);if(t===Fn||e===Fn)return-1;const l=e.symbol&&gP(e.symbol.valueDeclaration),c=t.symbol&&gP(t.symbol.valueDeclaration),d=wf(e,l&&1===r?0:r),u=wf(t,c&&1===r?0:r);if(1===r&&d.length&&u.length){const e=!!(4&d[0].flags),t=!!(4&u[0].flags);if(e&&!t)return o&&k(Oa.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(e,t,n){if(!e.declaration||!t.declaration)return!0;const r=$b(e.declaration,6),o=$b(t.declaration,6);if(2===o)return!0;if(4===o&&2!==r)return!0;if(4!==o&&!r)return!0;n&&k(Oa.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,pl(r),pl(o));return!1}(d[0],u[0],o))return 0}let p=-1;const f=1===r?ce:le,m=RS(e),_=RS(t);if(64&m&&64&_&&e.symbol===t.symbol||4&m&&4&_&&e.target===t.target){In.assertEqual(d.length,u.length);for(let e=0;e<u.length;e++){const t=de(d[e],u[e],!0,o,i,f(d[e],u[e]));if(!t)return 0;p&=t}}else if(1===d.length&&1===u.length){const e=n===fi||!!S.noStrictGenericChecks,t=Pe(d),l=Pe(u);if(p=de(t,l,e,o,i,f(t,l)),!p&&o&&1===r&&m&_&&(176===(null==(a=l.declaration)?void 0:a.kind)||176===(null==(s=t.declaration)?void 0:s.kind))){const e=e=>ol(e,void 0,262144,r);return k(Oa.Type_0_is_not_assignable_to_type_1,e(t),e(l)),k(Oa.Types_of_construct_signatures_are_incompatible),p}}else e:for(const n of u){const t=N();let a=o;for(const e of d){const r=de(e,n,!0,a,i,f(e,n));if(r){p&=r,D(t);continue e}a=!1}return a&&k(Oa.Type_0_provides_no_match_for_the_signature_1,il(e),ol(n,void 0,void 0,r)),0}return p}function le(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>M(Oa.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,il(e),il(t)):(e,t)=>M(Oa.Call_signature_return_types_0_and_1_are_incompatible,il(e),il(t))}function ce(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>M(Oa.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,il(e),il(t)):(e,t)=>M(Oa.Construct_signature_return_types_0_and_1_are_incompatible,il(e),il(t))}function de(e,t,r,o,i,a){const s=n===di?16:n===ui?24:0;return mT(r?Dm(e):e,r?Dm(t):t,s,o,k,a,(function(e,t,n){return j(e,t,3,n,void 0,i)}),Cn)}function ue(e,t,n,r){const o=j(e.type,t.type,3,n,void 0,r);return!o&&n&&(e.keyType===t.keyType?k(Oa._0_index_signatures_are_incompatible,il(e.keyType)):k(Oa._0_and_1_index_signatures_are_incompatible,il(e.keyType),il(t.keyType))),o}function pe(e,t,r,o,i){if(n===mi)return function(e,t){const n=Kf(e),r=Kf(t);if(n.length!==r.length)return 0;for(const o of r){const t=qf(e,o.keyType);if(!t||!j(t.type,o.type,3)||t.isReadonly!==o.isReadonly)return 0}return-1}(e,t);const a=Kf(t),s=se(a,(e=>e.keyType===jt));let l=-1;for(const c of a){const t=n!==ui&&!r&&s&&1&c.type.flags?-1:wp(e)&&s?j(Cp(e),c.type,3,o):fe(e,c,o,i);if(!t)return 0;l&=t}return l}function fe(e,t,r,o){const i=tm(e,t.keyType);return i?ue(i,t,r,o):1&o||!(n!==ui||8192&RS(e))||!jA(e)?(r&&k(Oa.Index_signature_for_type_0_is_missing_in_type_1,il(t.keyType),il(e)),0):function(e,t,n,r){let o=-1;const i=t.keyType,a=2097152&e.flags?Gp(e):zp(e);for(const s of a)if(!CT(e,s)&&Vf(Bv(s,8576),i)){const e=cd(s),a=j(ie||32768&e.flags||i===Vt||!(16777216&s.flags)?e:hR(e,524288),t.type,3,n,void 0,r);if(!a)return n&&k(Oa.Property_0_is_incompatible_with_index_signature,rl(s)),0;o&=a}for(const s of Kf(e))if(Vf(s.keyType,i)){const e=ue(s,t,n,r);if(!e)return 0;o&=e}return o}(e,t,r,o)}}function OT(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!x(e.types,OT);if(465829888&e.flags){const t=Xp(e);if(t&&t!==e)return OT(t)}return Wx(e)||!!(134217728&e.flags)||!!(268435456&e.flags)}function FT(e,t){return tA(e)&&tA(t)?o:Hp(t).filter((t=>WT(Ol(e,t.escapedName),sd(t))))}function WT(e,t){return!!e&&!!t&&Ww(e,32768)&&!!BA(t)}function zT(e,t,n=jS){return RG(e,t,n)||function(e,t){const n=RS(e);if(20&n&&1048576&t.flags)return L(t.types,(t=>{if(524288&t.flags){const r=n&RS(t);if(4&r)return e.target===t.target;if(16&r)return!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}return!1}))}(e,t)||function(e,t){if(128&RS(e)&&OR(t,_x))return L(t.types,(e=>!_x(e)))}(e,t)||function(e,t){let n=0;const r=wf(e,n).length>0||(n=1,wf(e,n).length>0);if(r)return L(t.types,(e=>wf(e,n).length>0))}(e,t)||function(e,t){let n;if(!(406978556&e.flags)){let r=0;for(const o of t.types)if(!(406978556&o.flags)){const t=Cv([Jv(e),Jv(o)]);if(4194304&t.flags)return o;if(Wx(t)||1048576&t.flags){const e=1048576&t.flags?B(t.types,Wx):1;e>=r&&(n=o,r=e)}}}return n}(e,t)}function BT(e,t,n){const r=e.types,o=r.map((e=>402784252&e.flags?0:-1));for(const[a,s]of t){let e=!1;for(let t=0;t<r.length;t++)if(o[t]){const i=Fl(r[t],s);i&&n(a(),i)?e=!0:o[t]=3}for(let t=0;t<r.length;t++)3===o[t]&&(o[t]=e?0:-1)}const i=F(o,0)?mv(r.filter(((e,t)=>o[t])),0):e;return 131072&i.flags?e:i}function GT(e){if(524288&e.flags){const t=Fp(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&t.properties.length>0&&M(t.properties,(e=>!!(16777216&e.flags)))}return!!(2097152&e.flags)&&M(e.types,GT)}function jT(e){return e===er||e===tr||8&e.objectFlags?E:UT(e.symbol,e.typeParameters)}function VT(e){return UT(e,Ui(e).typeParameters)}function UT(e,t=o){var n,r;const i=Ui(e);if(!i.variances){null==(n=kr)||n.push(kr.Phase.CheckTypes,"getVariancesWorker",{arity:t.length,id:Jy(ou(e))});const a=Go;Go||(Go=!0,Bo=Fo.length),i.variances=o;const s=[];for(const n of t){const t=qT(n);let r=16384&t?8192&t?0:1:8192&t?2:void 0;if(void 0===r){let t=!1,o=!1;const i=$t;$t=e=>e?o=!0:t=!0;const a=HT(e,n,Gn),s=HT(e,n,jn);r=(KS(s,a)?1:0)|(KS(a,s)?2:0),3===r&&KS(HT(e,n,Vn),a)&&(r=4),$t=i,(t||o)&&(t&&(r|=8),o&&(r|=16))}s.push(r)}a||(Go=!1,Bo=0),i.variances=s,null==(r=kr)||r.pop({variances:s.map(In.formatVariance)})}return i.variances}function HT(e,t,n){const r=nS(t,n),o=ou(e);if(Gl(o))return o;const i=524288&e.flags?w_(e,YE(Ui(e).typeParameters,r)):v_(o,YE(o.typeParameters,r));return ft.add(Jy(i)),i}function KT(e){return ft.has(Jy(e))}function qT(e){var t;return 28672&Ue(null==(t=e.symbol)?void 0:t.declarations,((e,t)=>e|Zb(t)),0)}function JT(e){return 262144&e.flags&&!$p(e)}function XT(e){return function(e){return!!(4&RS(e))&&!e.node}(e)&&se(D_(e),(e=>!!(262144&e.flags)||XT(e)))}function $T(e,t,n,r,o){if(r===mi&&e.id>t.id){const n=e;e=t,t=n}const i=n?":"+n:"";return XT(e)&&XT(t)?function(e,t,n,r){const o=[];let i="";const a=l(e,0),s=l(t,0);return`${i}${a},${s}${n}`;function l(e,t=0){let n=""+e.target.id;for(const a of D_(e)){if(262144&a.flags){if(r||JT(a)){let e=o.indexOf(a);e<0&&(e=o.length,o.push(a)),n+="="+e;continue}i="*"}else if(t<4&&XT(a)){n+="<"+l(a,t+1)+">";continue}n+="-"+a.id}return n}}(e,t,i,o):`${e.id},${t.id}${i}`}function YT(e,t){if(!(6&mS(e)))return t(e);for(const n of e.links.containingType.types){const r=kf(n,e.escapedName),o=r&&YT(r,t);if(o)return o}}function QT(e){return e.parent&&32&e.parent.flags?ou(ms(e)):void 0}function ZT(e){const t=QT(e),n=t&&jd(t)[0];return n&&Ol(n,e.escapedName)}function ex(e,t,n){return YT(t,(t=>!!(4&_S(t,n))&&!fd(e,QT(t))))?void 0:e}function tx(e,t,n,r=3){if(n>=r){if(96===(96&RS(e))&&(e=nx(e)),2097152&e.flags)return se(e.types,(e=>tx(e,t,n,r)));const o=ox(e);let i=0,a=0;for(let e=0;e<n;e++){const n=t[e];if(rx(n,o)){if(n.id>=a&&(i++,i>=r))return!0;a=n.id}}}return!1}function nx(e){let t;for(;96===(96&RS(e))&&(t=Mp(e))&&(t.symbol||2097152&t.flags&&se(t.types,(e=>!!e.symbol)));)e=t;return e}function rx(e,t){return 96===(96&RS(e))&&(e=nx(e)),2097152&e.flags?se(e.types,(e=>rx(e,t))):ox(e)===t}function ox(e){if(524288&e.flags&&!zI(e)){if(4&RS(e)&&e.node)return e.node;if(e.symbol&&!(16&RS(e)&&32&e.symbol.flags))return e.symbol;if(tA(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){do{e=e.objectType}while(8388608&e.flags);return e}return 16777216&e.flags?e.root:e}function ix(e,t,n){if(e===t)return-1;const r=6&_S(e);if(r!==(6&_S(t)))return 0;if(r){if(BW(e)!==BW(t))return 0}else if((16777216&e.flags)!==(16777216&t.flags))return 0;return Mw(e)!==Mw(t)?0:n(sd(e),sd(t))}function ax(e,t,n,r,o,i){if(e===t)return-1;if(!function(e,t,n){const r=XP(e),o=XP(t),i=$P(e),a=$P(t),s=YP(e),l=YP(t);return r===o&&i===a&&s===l||!!(n&&i<=a)}(e,t,n))return 0;if(T(e.typeParameters)!==T(t.typeParameters))return 0;if(t.typeParameters){const n=eS(e.typeParameters,t.typeParameters);for(let r=0;r<t.typeParameters.length;r++){const o=e.typeParameters[r],a=t.typeParameters[r];if(!(o===a||i(AS(Ym(o),n)||Mt,Ym(a)||Mt)&&i(AS(ff(o),n)||Mt,ff(a)||Mt)))return 0}e=uS(e,n,!0)}let a=-1;if(!r){const n=gm(e);if(n){const e=gm(t);if(e){const t=i(n,e);if(!t)return 0;a&=t}}}const s=XP(t);for(let l=0;l<s;l++){const n=HP(e,l),r=i(HP(t,l),n);if(!r)return 0;a&=r}if(!o){const n=ym(e),r=ym(t);a&=n||r?function(e,t,n){return e&&t&&gv(e,t)?e.type===t.type?-1:e.type&&t.type?n(e.type,t.type):0:0}(n,r,i):i(bm(e),bm(t))}return a}function sx(e){return Ue(e,((e,t)=>e|(1048576&t.flags?sx(t.types):t.flags)),0)}function lx(e){if(1===e.length)return e[0];const t=z?K(e,(e=>BR(e,(e=>!(98304&e.flags))))):e,n=function(e){let t;for(const n of e)if(!(131072&n.flags)){const e=Ux(n);if(t??(t=e),e===n||e!==t)return!1}return!0}(t)?mv(t):Ue(t,((e,t)=>US(e,t)?t:e));return t===e?n:LA(n,98304&sx(e))}function cx(e){return!!(4&RS(e))&&(e.target===er||e.target===tr)}function dx(e){return!!(4&RS(e))&&e.target===tr}function px(e){return cx(e)||tA(e)}function fx(e){return cx(e)&&!dx(e)||tA(e)&&!e.target.readonly}function mx(e){return cx(e)?D_(e)[0]:void 0}function _x(e){return cx(e)||!(98304&e.flags)&&KS(e,cr)}function hx(e){return fx(e)||!(98305&e.flags)&&KS(e,sr)}function yx(e){if(!(4&RS(e))||!(3&RS(e.target)))return;if(33554432&RS(e))return 67108864&RS(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;const t=e.target;if(1&RS(t)){const e=wd(t);if(e&&80!==e.expression.kind&&211!==e.expression.kind)return}const n=jd(t);if(1!==n.length)return;if(Mu(e.symbol).size)return;let r=T(t.typeParameters)?AS(n[0],eS(t.typeParameters,D_(e).slice(0,t.typeParameters.length))):n[0];return T(D_(e))>T(t.typeParameters)&&(r=Pu(r,Fe(D_(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function vx(e){return z?e===on:e===wt}function Sx(e){const t=mx(e);return!!t&&vx(t)}function Tx(e){let t;return tA(e)||!!kf(e,"0")||_x(e)&&!!(t=Ol(e,"length"))&&WR(t,(e=>!!(256&e.flags)))}function Dx(e){return _x(e)||Tx(e)}function Lx(e){return!(240544&e.flags)}function Wx(e){return!!(109472&e.flags)}function zx(e){const t=cf(e);return 2097152&t.flags?se(t.types,Wx):Wx(t)}function Gx(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||M(e.types,Wx):Wx(e))}function Ux(e){return 1056&e.flags?Xd(e):402653312&e.flags?jt:256&e.flags?Vt:2048&e.flags?Ut:512&e.flags?Qt:1048576&e.flags?function(e){const t=`B${Jy(e)}`;return yi(t)??vi(t,VR(e,Ux))}(e):e}function Hx(e){return 402653312&e.flags?jt:288&e.flags?Vt:2048&e.flags?Ut:512&e.flags?Qt:1048576&e.flags?VR(e,Hx):e}function Kx(e){return 1056&e.flags&&zE(e)?Xd(e):128&e.flags&&zE(e)?jt:256&e.flags&&zE(e)?Vt:2048&e.flags&&zE(e)?Ut:512&e.flags&&zE(e)?Qt:1048576&e.flags?VR(e,Kx):e}function qx(e){return 8192&e.flags?Zt:1048576&e.flags?VR(e,qx):e}function Xx(e,t){return iO(e,t)||(e=qx(Kx(e))),WE(e)}function $x(e,t,n,r){if(e&&Wx(e)){e=Xx(e,t?bW(n,t,r):void 0)}return e}function tA(e){return!!(4&RS(e)&&8&e.target.objectFlags)}function iA(e){return tA(e)&&!!(8&e.target.combinedFlags)}function aA(e){return iA(e)&&1===e.target.elementFlags.length}function uA(e){return SA(e,e.target.fixedLength)}function bA(e,t,n){return VR(e,(e=>{const r=e,o=uA(r);return o?n&&t>=Ky(r.target)?mv([o,n]):o:Pt}))}function SA(e,t,n=0,r=!1,o=!1){const i=N_(e)-n;if(t<i){const n=D_(e),a=[];for(let r=t;r<i;r++){const t=n[r];a.push(8&e.target.elementFlags[r]?Mb(t,Vt):t)}return r?Cv(a):mv(a,o?0:1)}}function CA({value:e}){return"0"===e.base10Value}function NA(e){return BR(e,(e=>mR(e,4194304)))}function MA(e){return 4&e.flags?ko:8&e.flags?Po:64&e.flags?Oo:e===Kt||e===Ht||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&CA(e)?e:tn}function LA(e,t){const n=t&~e.flags&98304;return 0===n?e:mv(32768===n?[e,Pt]:65536===n?[e,Bt]:[e,Pt,Bt])}function kA(e,t=!1){In.assert(z);const n=t?Wt:Pt;return e===n||1048576&e.flags&&e.types[0]===n?e:mv([e,n])}function PA(e){return z?gR(e,2097152):e}function wA(e){return z?mv([e,zt]):e}function OA(e){return z?GR(e,zt):e}function FA(e,t,n){return n?Wc(t)?kA(e):wA(e):e}function WA(e,t){return Fc(t)?PA(e):wc(t)?OA(e):e}function zA(e,t){return ie&&t?GR(e,Ot):e}function BA(e){return e===Ot||!!(1048576&e.flags)&&e.types[0]===Ot}function GA(e){return ie?GR(e,Ot):hR(e,524288)}function jA(e){const t=RS(e);return 2097152&e.flags?M(e.types,jA):!(!e.symbol||0===(7040&e.symbol.flags)||32&e.symbol.flags||cB(e))||!!(4194304&t)||!!(1024&t&&jA(e.source))}function VA(e,t){const n=ki(e.flags,e.escapedName,8&mS(e));n.declarations=e.declarations,n.parent=e.parent,n.links.type=t,n.links.target=e,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration);const r=Ui(e).nameType;return r&&(n.links.nameType=r),n}function HA(e){if(!(WI(e)&&8192&RS(e)))return e;const t=e.regularType;if(t)return t;const n=e,r=function(e,t){const n=Mf();for(const r of zp(e)){const e=sd(r),o=t(e);n.set(r.escapedName,o===e?r:VA(r,o))}return n}(e,HA),o=Os(n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);return o.flags=n.flags,o.objectFlags|=-8193&n.objectFlags,e.regularType=o,o}function KA(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedProperties:void 0}}function qA(e){if(!e.siblings){const t=[];for(const n of qA(e.parent))if(WI(n)){const r=Bp(n,e.propertyName);r&&wR(sd(r),(e=>{t.push(e)}))}e.siblings=t}return e.siblings}function JA(e){if(!e.resolvedProperties){const t=new Map;for(const n of qA(e))if(WI(n)&&!(2097152&RS(n)))for(const e of Hp(n))t.set(e.escapedName,e);e.resolvedProperties=Ye(t.values())}return e.resolvedProperties}function XA(e,t){if(!(4&e.flags))return e;const n=sd(e),r=QA(n,t&&KA(t,e.escapedName,void 0));return r===n?e:VA(e,r)}function $A(e){const t=pt.get(e.escapedName);if(t)return t;const n=VA(e,Wt);return n.flags|=16777216,pt.set(e.escapedName,n),n}function YA(e){return QA(e,void 0)}function QA(e,t){if(196608&RS(e)){if(void 0===t&&e.widened)return e.widened;let n;if(98305&e.flags)n=Tt;else if(WI(e))n=function(e,t){const n=Mf();for(const o of zp(e))n.set(o.escapedName,XA(o,t));if(t)for(const o of JA(t))n.has(o.escapedName)||n.set(o.escapedName,$A(o));const r=Os(e.symbol,n,o,o,K(Kf(e),(e=>Hm(e.keyType,YA(e.type),e.isReadonly))));return r.objectFlags|=266240&RS(e),r}(e,t);else if(1048576&e.flags){const r=t||KA(void 0,void 0,e.types),o=K(e.types,(e=>98304&e.flags?e:QA(e,r)));n=mv(o,se(o,gT)?2:1)}else 2097152&e.flags?n=Cv(K(e.types,YA)):px(e)&&(n=v_(e.target,K(D_(e),YA)));return n&&void 0===t&&(e.widened=n),n||e}return e}function ZA(e){let t=!1;if(65536&RS(e)){if(1048576&e.flags)if(se(e.types,gT))t=!0;else for(const n of e.types)ZA(n)&&(t=!0);if(px(e))for(const n of D_(e))ZA(n)&&(t=!0);if(WI(e))for(const n of zp(e)){const e=sd(n);65536&RS(e)&&(ZA(e)||Ai(n.valueDeclaration,Oa.Object_literal_s_property_0_implicitly_has_an_1_type,rl(n),il(YA(e))),t=!0)}}return t}function eI(e,t,n){const r=il(YA(t));if($h(e)&&!Ex(Yf(e),S))return;let o;switch(e.kind){case 226:case 172:case 171:o=$?Oa.Member_0_implicitly_has_an_1_type:Oa.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const t=e;if(nC(t.name)){const n=Pl(t.name);if((NC(t.parent)||xC(t.parent)||wC(t.parent))&&t.parent.parameters.includes(t)&&(ta(t,t.name.escapedText,788968,void 0,t.name.escapedText,!0)||n&&PS(n))){const n="arg"+t.parent.parameters.indexOf(t),r=o_(t.name)+(t.dotDotDotToken?"[]":"");return void Ri($,e,Oa.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,n,r)}}o=e.dotDotDotToken?$?Oa.Rest_parameter_0_implicitly_has_an_any_type:Oa.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:$?Oa.Parameter_0_implicitly_has_an_1_type:Oa.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(o=Oa.Binding_element_0_implicitly_has_an_1_type,!$)return;break;case 324:return void Ai(e,Oa.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 330:return void($&&LM(e.parent)&&Ai(e.parent.tagName,Oa.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r));case 262:case 174:case 173:case 177:case 178:case 218:case 219:if($&&!e.name)return void Ai(e,3===n?Oa.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:Oa.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);o=$?3===n?Oa._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:Oa._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:Oa._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:return void($&&Ai(e,Oa.Mapped_object_type_implicitly_has_an_any_template_type));default:o=$?Oa.Variable_0_implicitly_has_an_1_type:Oa.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Ri($,e,o,o_(jl(e)),r)}function tI(e,t,n){l((()=>{!($&&65536&RS(t))||n&&xM(e)||ZA(t)||eI(e,t,n)}))}function nI(e,t,n){const r=XP(e),o=XP(t),i=QP(e),a=QP(t),s=a?o-1:o,l=i?s:Math.min(r,s),c=gm(e);if(c){const e=gm(t);e&&n(c,e)}for(let d=0;d<l;d++)n(HP(e,d),HP(t,d));a&&n(qP(e,l,ef(a)&&!OR(a,hx)),a)}function rI(e,t,n){const r=ym(e),o=ym(t);r&&o&&gv(r,o)&&r.type&&o.type?n(r.type,o.type):n(bm(e),bm(t))}function oI(e,t,n,r){return iI(e.map(cI),t,n,r||jS)}function iI(e,t,n,r){const o={inferences:e,signature:t,flags:n,compareTypes:r,mapper:Dn,nonFixingMapper:Dn};return o.mapper=function(e){return oS(U(e.inferences,(e=>e.typeParameter)),U(e.inferences,((t,n)=>()=>(t.isFixed||(!function(e){if(e.intraExpressionInferenceSites){for(const{node:t,type:n}of e.intraExpressionInferenceSites){const r=174===t.kind?TN(t,2):JN(t,2);r&&wI(e.inferences,n,r)}e.intraExpressionInferenceSites=void 0}}(e),aI(e.inferences),t.isFixed=!0),jI(e,n)))))}(o),o.nonFixingMapper=function(e){return oS(U(e.inferences,(e=>e.typeParameter)),U(e.inferences,((t,n)=>()=>jI(e,n))))}(o),o}function aI(e){for(const t of e)t.isFixed||(t.inferredType=void 0)}function sI(e,t,n){(e.intraExpressionInferenceSites??(e.intraExpressionInferenceSites=[])).push({node:t,type:n})}function cI(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function dI(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function uI(e){return e&&e.mapper}function pI(e){const t=RS(e);if(524288&t)return!!(1048576&t);const n=!!(465829888&e.flags||524288&e.flags&&!mI(e)&&(4&t&&(e.node||se(D_(e),pI))||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&t)||3145728&e.flags&&!(1024&e.flags)&&!mI(e)&&se(e.types,pI));return 3899393&e.flags&&(e.objectFlags|=524288|(n?1048576:0)),n}function mI(e){if(e.aliasSymbol&&!e.aliasTypeArguments){const t=Df(e.aliasSymbol,265);return!(!t||!Cl(t.parent,(e=>312===e.kind||267!==e.kind&&"quit")))}return!1}function _I(e,t,n=0){return!!(e===t||3145728&e.flags&&se(e.types,(e=>_I(e,t,n)))||n<3&&16777216&e.flags&&(_I(eE(e),t,n+1)||_I(tE(e),t,n+1)))}function hI(e,t,n){const r=e.id+","+t.id+","+n.id;if(yo.has(r))return yo.get(r);const o=e.id+","+(t.target||t).id;if(F(vo,o))return;vo.push(o);const i=function(e,t,n){if(!(qf(e,jt)||0!==Hp(e).length&&gI(e)))return;if(cx(e))return ey(yI(D_(e)[0],t,n),dx(e));if(tA(e)){return Dy(U(qy(e),(e=>yI(e,t,n))),4&Lp(t)?K(e.target.elementFlags,(e=>2&e?1:e)):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}const r=Ns(1040,void 0);return r.source=e,r.mappedType=t,r.constraintType=n,r}(e,t,n);return vo.pop(),yo.set(r,i),i}function gI(e){return!(262144&RS(e))||WI(e)&&se(Hp(e),(e=>gI(sd(e))))||tA(e)&&se(qy(e),gI)}function yI(e,t,n){const r=Mb(n.type,Ap(t)),o=Cp(t),i=cI(r);return wI([i],e,o),EI(i)||Mt}function*vI(e,t,n,r){const o=Hp(t);for(const i of o)if(!bu(i)&&(n||!(16777216&i.flags||48&mS(i)))){const t=kf(e,i.escapedName);if(t){if(r){const e=sd(i);if(109472&e.flags){const n=sd(t);1&n.flags||WE(n)===WE(e)||(yield i)}}}else yield i}}function bI(e,t,n,r){return ke(vI(e,t,n,r))}function EI(e){return e.candidates?mv(e.candidates,2):e.contraCandidates?Cv(e.contraCandidates):void 0}function SI(e){return!!Hi(e).skipDirectInference}function TI(e){return!(!e.symbol||!se(e.symbol.declarations,SI))}function AI(e,t){if(""===e)return!1;const n=+e;return isFinite(n)&&(!t||""+n===e)}function CI(e){return jE(kx(e))}function DI(e,t){if(1&t.flags)return!0;if(134217732&t.flags)return KS(e,t);if(268435456&t.flags){const n=[];for(;268435456&t.flags;)n.unshift(t.symbol),t=t.type;return Ue(n,((e,t)=>Zv(t,e)),e)===e&&DI(e,t)}return!1}function NI(e,t){if(2097152&t.flags)return M(t.types,(t=>t===kn||NI(e,t)));if(4&t.flags||KS(e,t))return!0;if(128&e.flags){const n=e.value;return!!(8&t.flags&&AI(n,!1)||64&t.flags&&Px(n,!1)||98816&t.flags&&n===t.intrinsicName||268435456&t.flags&&DI(BE(n),t)||134217728&t.flags&&LI(e,t))}if(134217728&e.flags){const n=e.texts;return 2===n.length&&""===n[0]&&""===n[1]&&KS(e.types[0],t)}return!1}function MI(e,t){return 128&e.flags?PI([e.value],o,t):134217728&e.flags?W(e.texts,t.texts)?U(e.types,kI):PI(e.texts,e.types,t):void 0}function LI(e,t){const n=MI(e,t);return!!n&&M(n,((e,n)=>NI(e,t.types[n])))}function kI(e){return 402653317&e.flags?e:Yv(["",""],[e])}function PI(e,t,n){const r=e.length-1,o=e[0],i=e[r],a=n.texts,s=a.length-1,l=a[0],c=a[s];if(0===r&&o.length<l.length+c.length||!o.startsWith(l)||!i.endsWith(c))return;const d=i.slice(0,i.length-c.length),u=[];let p=0,f=l.length;for(let h=1;h<s;h++){const t=a[h];if(t.length>0){let n=p,r=f;for(;r=m(n).indexOf(t,r),!(r>=0);){if(n++,n===e.length)return;r=0}_(n,r),f+=t.length}else if(f<m(p).length)_(p,f+1);else{if(!(p<r))return;_(p+1,0)}}return _(r,m(r).length),u;function m(t){return t<r?e[t]:d}function _(n,r){const o=n===p?BE(m(n).slice(f,r)):Yv([e[p].slice(f),...e.slice(p+1,n),m(n).slice(0,r)],t.slice(p,n));u.push(o),p=n,f=r}}function wI(e,t,n,r=0,i=!1){let a,s,l,c,d=!1,u=2048,p=0;function f(t,s){if(pI(s)&&!U_(s)){if(t===At||t===It){const e=a;return a=t,f(s,s),void(a=e)}if(t.aliasSymbol&&t.aliasSymbol===s.aliasSymbol){if(t.aliasTypeArguments){const e=Ui(t.aliasSymbol).typeParameters,n=dm(e);g(um(t.aliasTypeArguments,e,n,$h(t.aliasSymbol.valueDeclaration)),um(s.aliasTypeArguments,e,n,$h(t.aliasSymbol.valueDeclaration)),VT(t.aliasSymbol))}}else if(t===s&&3145728&t.flags)for(const e of t.types)f(e,e);else{if(1048576&s.flags){const[e,n]=h(1048576&t.flags?t.types:[t],s.types,OI),[r,o]=h(e,n,FI);if(0===o.length)return;if(s=mv(o),0===r.length)return void m(t,s,1);t=mv(r)}else if(2097152&s.flags&&!M(s.types,uE)&&!(1048576&t.flags)){const[e,n]=h(2097152&t.flags?t.types:[t],s.types,BS);if(0===e.length||0===n.length)return;t=Cv(e),s=Cv(n)}if(41943040&s.flags){if(U_(s))return;s=Ob(s)}if(8650752&s.flags){if(TI(t))return;const o=b(s);if(o){if(262144&RS(t)||t===Dt)return;if(!o.isFixed){const l=a||t;if(l===It)return;(void 0===o.priority||r<o.priority)&&(o.candidates=void 0,o.contraCandidates=void 0,o.topLevel=!0,o.priority=r),r===o.priority&&(i&&!d?F(o.contraCandidates,l)||(o.contraCandidates=Ee(o.contraCandidates,l),aI(e)):F(o.candidates,l)||(o.candidates=Ee(o.candidates,l),aI(e))),!(128&r)&&262144&s.flags&&o.topLevel&&!_I(n,s)&&(o.topLevel=!1,aI(e))}return void(u=Math.min(u,r))}const l=gb(s,!1);if(l!==s)f(t,l);else if(8388608&s.flags){const e=gb(s.indexType,!1);if(465829888&e.flags){const n=Tb(gb(s.objectType,!1),e,!1);n&&n!==s&&f(t,n)}}}if(!(4&RS(t)&&4&RS(s)&&(t.target===s.target||cx(t)&&cx(s)))||t.node&&s.node)if(4194304&t.flags&&4194304&s.flags)y(t.type,s.type);else if((Gx(t)||4&t.flags)&&4194304&s.flags){!function(e,t,n){const o=r;r|=n,y(e,t),r=o}(function(e){const t=Mf();wR(e,(e=>{if(!(128&e.flags))return;const n=Ml(e.value),r=ki(4,n);r.links.type=Tt,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),t.set(n,r)}));const n=4&e.flags?[Hm(jt,Nn,!1)]:o;return Os(void 0,t,o,o,n)}(t),s.type,256)}else if(8388608&t.flags&&8388608&s.flags)f(t.objectType,s.objectType),f(t.indexType,s.indexType);else if(268435456&t.flags&&268435456&s.flags)t.symbol===s.symbol&&f(t.type,s.type);else if(33554432&t.flags)f(t.baseType,s),m(sh(t),s,4);else if(16777216&s.flags)_(t,s,T);else if(3145728&s.flags)E(t,s.types,s.flags);else if(1048576&t.flags){const e=t.types;for(const t of e)f(t,s)}else if(134217728&s.flags)!function(e,t){const n=MI(e,t),r=t.types;if(n||M(t.texts,(e=>0===e.length)))for(let o=0;o<r.length;o++){const e=n?n[o]:tn,t=r[o];if(128&e.flags&&8650752&t.flags){const n=b(t),r=n?lf(n.typeParameter):void 0;if(r&&!zl(r)){const n=1048576&r.flags?r.types:[r];let o=Ue(n,((e,t)=>e|t.flags),0);if(!(4&o)){const r=e.value;296&o&&!AI(r,!0)&&(o&=-297),2112&o&&!Px(r,!0)&&(o&=-2113);const i=Ue(n,((t,n)=>n.flags&o?4&t.flags?t:4&n.flags?e:134217728&t.flags?t:134217728&n.flags&&LI(e,n)?e:268435456&t.flags?t:268435456&n.flags&&r===eb(n.symbol,r)?e:128&t.flags?t:128&n.flags&&n.value===r?n:8&t.flags?t:8&n.flags?GE(+r):32&t.flags?t:32&n.flags?GE(+r):256&t.flags?t:256&n.flags&&n.value===+r?n:64&t.flags?t:64&n.flags?CI(r):2048&t.flags?t:2048&n.flags&&Mx(n.value)===r?n:16&t.flags?t:16&n.flags?"true"===r?qt:"false"===r?Ht:Qt:512&t.flags?t:512&n.flags&&n.intrinsicName===r?n:32768&t.flags?t:32768&n.flags&&n.intrinsicName===r?n:65536&t.flags?t:65536&n.flags&&n.intrinsicName===r?n:t:t),tn);if(!(131072&i.flags)){f(i,t);continue}}}}f(e,t)}}(t,s);else{if(wp(t=Tf(t))&&wp(s)&&_(t,s,x),!(512&r&&467927040&t.flags)){const e=yf(t);if(e!==t&&!(2621440&e.flags))return f(e,s);t=e}2621440&t.flags&&_(t,s,A)}else g(D_(t),D_(s),jT(t.target))}}}function m(e,t,n){const o=r;r|=n,f(e,t),r=o}function _(e,t,n){const r=e.id+","+t.id,o=s&&s.get(r);if(void 0!==o)return void(u=Math.min(u,o));(s||(s=new Map)).set(r,-1);const i=u;u=2048;const a=p;(l??(l=[])).push(e),(c??(c=[])).push(t),tx(e,l,l.length,2)&&(p|=1),tx(t,c,c.length,2)&&(p|=2),3!==p?n(e,t):u=-1,c.pop(),l.pop(),p=a,s.set(r,u),u=Math.min(u,i)}function h(e,t,n){let r,o;for(const i of t)for(const t of e)n(t,i)&&(f(t,i),r=Ie(r,t),o=Ie(o,i));return[r?G(e,(e=>!F(r,e))):e,o?G(t,(e=>!F(o,e))):t]}function g(e,t,n){const r=e.length<t.length?e.length:t.length;for(let o=0;o<r;o++)o<n.length&&2===(7&n[o])?y(e[o],t[o]):f(e[o],t[o])}function y(e,t){i=!i,f(e,t),i=!i}function v(e,t){j||1024&r?y(e,t):f(e,t)}function b(t){if(8650752&t.flags)for(const n of e)if(t===n.typeParameter)return n}function E(e,t,n){let o=0;if(1048576&n){let n;const i=1048576&e.flags?e.types:[e],a=new Array(i.length);let s=!1;for(const e of t)if(b(e))n=e,o++;else for(let t=0;t<i.length;t++){const n=u;u=2048,f(i[t],e),u===r&&(a[t]=!0),s=s||-1===u,u=Math.min(u,n)}if(0===o){const n=function(e){let t;for(const n of e){const e=2097152&n.flags&&L(n.types,(e=>!!b(e)));if(!e||t&&e!==t)return;t=e}return t}(t);return void(n&&m(e,n,1))}if(1===o&&!s){const e=J(i,((e,t)=>a[t]?void 0:e));if(e.length)return void f(mv(e),n)}}else for(const r of t)b(r)?o++:f(e,r);if(2097152&n?1===o:o>0)for(const r of t)b(r)&&m(e,r,1)}function S(e,t,n){if(1048576&n.flags||2097152&n.flags){let r=!1;for(const o of n.types)r=S(e,t,o)||r;return r}if(4194304&n.flags){const r=b(n.type);if(r&&!r.isFixed&&!TI(e)){const o=hI(e,t,n);o&&m(o,r.typeParameter,262144&RS(e)?16:8)}return!0}if(262144&n.flags){m(Jv(e,e.pattern?2:0),n,32);const r=Xp(n);if(r&&S(e,t,r))return!0;return f(mv(ce(U(Hp(e),sd),U(Kf(e),(e=>e!==co?e.type:tn)))),Cp(t)),!0}return!1}function T(e,t){if(16777216&e.flags)f(e.checkType,t.checkType),f(e.extendsType,t.extendsType),f(eE(e),eE(t)),f(tE(e),tE(t));else{!function(e,t,n,o){const i=r;r|=o,E(e,t,n),r=i}(e,[eE(t),tE(t)],t.flags,i?64:0)}}function x(e,t){f(Ip(e),Ip(t)),f(Cp(e),Cp(t));const n=Rp(e),r=Rp(t);n&&r&&f(n,r)}function A(e,t){var n,r;if(4&RS(e)&&4&RS(t)&&(e.target===t.target||cx(e)&&cx(t)))g(D_(e),D_(t),jT(e.target));else{if(wp(e)&&wp(t)&&x(e,t),32&RS(t)&&!t.declaration.nameType){if(S(e,t,Ip(t)))return}if(!function(e,t){return tA(e)&&tA(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength<e.target.fixedLength)}(e,t):!!bI(e,t,!1,!0)&&!!bI(t,e,!1,!1)}(e,t)){if(px(e)){if(tA(t)){const a=N_(e),s=N_(t),l=D_(t),c=t.target.elementFlags;if(tA(e)&&(i=t,N_(o=e)===N_(i)&&M(o.target.elementFlags,((e,t)=>(12&e)===(12&i.target.elementFlags[t]))))){for(let t=0;t<s;t++)f(D_(e)[t],l[t]);return}const d=tA(e)?Math.min(e.target.fixedLength,t.target.fixedLength):0,u=Math.min(tA(e)?Hy(e.target,3):0,t.target.hasRestElement?Hy(t.target,3):0);for(let t=0;t<d;t++)f(D_(e)[t],l[t]);if(!tA(e)||a-d-u===1&&4&e.target.elementFlags[d]){const t=D_(e)[d];for(let e=d;e<s-u;e++)f(8&c[e]?ey(t):t,l[e])}else{const o=s-d-u;if(2===o){if(c[d]&c[d+1]&8){const t=b(l[d]);t&&void 0!==t.impliedArity&&(f(Vy(e,d,u+a-t.impliedArity),l[d]),f(Vy(e,d+t.impliedArity,u),l[d+1]))}else if(8&c[d]&&4&c[d+1]){const t=null==(n=b(l[d]))?void 0:n.typeParameter,r=t&&lf(t);if(r&&tA(r)&&!r.target.hasRestElement){const t=r.target.fixedLength;f(Vy(e,d,a-(d+t)),l[d]),f(SA(e,d+t,u),l[d+1])}}else if(4&c[d]&&8&c[d+1]){const n=null==(r=b(l[d+1]))?void 0:r.typeParameter,o=n&&lf(n);if(o&&tA(o)&&!o.target.hasRestElement){const n=o.target.fixedLength,r=a-Hy(t.target,3),i=r-n,s=Dy(D_(e).slice(i,r),e.target.elementFlags.slice(i,r),!1,e.target.labeledElementDeclarations&&e.target.labeledElementDeclarations.slice(i,r));f(SA(e,d,u+n),l[d]),f(s,l[d+1])}}}else if(1===o&&8&c[d]){const n=2&t.target.elementFlags[s-1];m(Vy(e,d,u),l[d],n?2:0)}else if(1===o&&4&c[d]){const t=SA(e,d,u);t&&f(t,l[d])}}for(let t=0;t<u;t++)f(D_(e)[a-t-1],l[s-t-1]);return}if(cx(t))return void C(e,t)}!function(e,t){const n=zp(t);for(const r of n){const t=kf(e,r.escapedName);t&&!se(t.declarations,SI)&&f(sd(t),sd(r))}}(e,t),I(e,t,0),I(e,t,1),C(e,t)}var o,i}}function I(e,t,n){const r=wf(e,n),o=r.length;if(o>0){const e=wf(t,n),i=e.length;for(let t=0;t<i;t++){R(Mm(r[Math.max(o-i+t,0)]),Dm(e[t]))}}}function R(e,t){if(!(64&e.flags)){const n=d,r=t.declaration?t.declaration.kind:0;d=d||174===r||173===r||176===r,nI(e,t,v),d=n}rI(e,t,f)}function C(e,t){const n=RS(e)&RS(t)&32?8:0,r=Kf(t);if(jA(e))for(const o of r){const t=[];for(const n of Hp(e))if(Vf(Bv(n,8576),o.keyType)){const e=sd(n);t.push(16777216&n.flags?GA(e):e)}for(const n of Kf(e))Vf(n.keyType,o.keyType)&&t.push(n.type);t.length&&m(mv(t),o.type,n)}for(const o of r){const t=tm(e,o.keyType);t&&m(t.type,o.type,n)}}f(t,n)}function OI(e,t){return t===Ot?e===t:BS(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function FI(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function WI(e){return!!(128&RS(e))}function zI(e){return!!(16512&RS(e))}function BI(e){return 416&e.priority?Cv(e.contraCandidates):Ue(e.contraCandidates,((e,t)=>US(t,e)?t:e))}function GI(e,t){const n=function(e){if(e.length>1){const t=G(e,zI);if(t.length){const n=mv(t,2);return ce(G(e,(e=>!zI(e))),[n])}}return e}(e.candidates),r=function(e){const t=$p(e);return!!t&&Ww(16777216&t.flags?nf(t):t,406978556)}(e.typeParameter)||ef(e.typeParameter),o=!r&&e.topLevel&&(e.isFixed||!function(e,t){const n=ym(e);return n?!!n.type&&_I(n.type,t):_I(bm(e),t)}(t,e.typeParameter)),i=r?K(n,WE):o?K(n,Kx):n;return YA(416&e.priority?mv(i,2):lx(i))}function jI(e,t){const n=e.inferences[t];if(!n.inferredType){let i,a;if(e.signature){const s=n.candidates?GI(n,e.signature):void 0,l=n.contraCandidates?BI(n):void 0;if(s||l){const t=s&&(!l||!(131072&s.flags)&&se(n.contraCandidates,(e=>US(s,e)))&&M(e.inferences,(e=>e!==n&&$p(e.typeParameter)!==n.typeParameter||M(e.candidates,(e=>US(e,s))))));i=t?s:l,a=t?l:s}else if(1&e.flags)i=rn;else{const a=ff(n.typeParameter);a&&(i=AS(a,(r=function(e,t){const n=e.inferences.slice(t);return eS(U(n,(e=>e.typeParameter)),U(n,(()=>Mt)))}(e,t),o=e.nonFixingMapper,r?iS(5,r,o):o)))}}else i=EI(n);n.inferredType=i||VI(!!(2&e.flags));const s=$p(n.typeParameter);if(s){const t=AS(s,e.nonFixingMapper);i&&e.compareTypes(i,Pu(t,i))||(n.inferredType=a&&e.compareTypes(a,Pu(t,a))?a:t)}}var r,o;return n.inferredType}function VI(e){return e?Tt:Mt}function KI(e){const t=[];for(let n=0;n<e.inferences.length;n++)t.push(jI(e,n));return t}function qI(e){switch(e.escapedText){case"document":case"console":return Oa.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return S.types?Oa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:Oa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return S.types?Oa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:Oa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return S.types?Oa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:Oa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Bun":return S.types?Oa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:Oa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return Oa.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(dD(e.parent))return Oa.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return 304===e.parent.kind?Oa.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:Oa.Cannot_find_name_0}}function JI(e){const t=Hi(e);return t.resolvedSymbol||(t.resolvedSymbol=!im(e)&&ta(e,e.escapedText,1160127,qI(e),e,!yS(e),!1)||_t),t.resolvedSymbol}function $I(e){return!!(33554432&e.flags||Cl(e,(e=>cN(e)||dN(e)||WC(e))))}function YI(e,t,n,r){switch(e.kind){case 80:if(!Sb(e)){const o=JI(e);return o!==_t?`${r?Hz(r):"-1"}|${Jy(t)}|${Jy(n)}|${Kz(o)}`:void 0}case 110:return`0|${r?Hz(r):"-1"}|${Jy(t)}|${Jy(n)}`;case 235:case 217:return YI(e.expression,t,n,r);case 166:const o=YI(e.left,t,n,r);return o&&o+"."+e.right.escapedText;case 211:case 212:const i=ZI(e);if(void 0!==i){const o=YI(e.expression,t,n,r);return o&&o+"."+i}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${Hz(e)}#${Jy(t)}`}}function QI(e,t){switch(t.kind){case 217:case 235:return QI(e,t.expression);case 226:return gE(t)&&QI(e,t.left)||TD(t)&&28===t.operatorToken.kind&&QI(e,t.right)}switch(e.kind){case 236:return 236===t.kind&&e.keywordToken===t.keywordToken&&e.name.escapedText===t.name.escapedText;case 80:case 81:return Sb(e)?110===t.kind:80===t.kind&&JI(e)===JI(t)||(iN(t)||iD(t))&&Ss(JI(e))===ps(t);case 110:return 110===t.kind;case 108:return 108===t.kind;case 235:case 217:return QI(e.expression,t);case 211:case 212:const n=ZI(e),r=wS(t)?ZI(t):void 0;return void 0!==n&&void 0!==r&&r===n&&QI(e.expression,t.expression);case 166:return wS(t)&&e.right.escapedText===ZI(t)&&QI(e.left,t.expression);case 226:return TD(e)&&28===e.operatorToken.kind&&QI(e.right,t)}return!1}function ZI(e){if(lD(e))return e.name.escapedText;if(cD(e))return tv((t=e).argumentExpression)?Ml(t.argumentExpression.text):EE(t.argumentExpression)?function(e){const t=qa(e,111551,!0);if(!t||!(qC(t)||8&t.flags))return;const n=t.valueDeclaration;if(void 0===n)return;const r=Vc(n);if(r){const e=eR(r);if(void 0!==e)return e}if(Qu(n)&&Xi(n,e)){const e=dg(n);if(e){const t=Vd(n.parent)?nc(n):gO(e);return t&&eR(t)}if(tM(n))return l_(n.name)}}(t.argumentExpression):void 0;var t;if(iD(e)){const t=Zl(e);return t?Ml(t):void 0}return bC(e)?""+e.parent.parameters.indexOf(e):void 0}function eR(e){return 8192&e.flags?e.escapedName:384&e.flags?Ml(""+e.value):void 0}function tR(e,t){for(;wS(e);)if(QI(e=e.expression,t))return!0;return!1}function nR(e,t){for(;wc(e);)if(QI(e=e.expression,t))return!0;return!1}function rR(e,t){if(e&&1048576&e.flags){const n=Ef(e,t);if(n&&2&mS(n))return void 0===n.links.isDiscriminantProperty&&(n.links.isDiscriminantProperty=192===(192&n.links.checkFlags)&&!ub(sd(n))),!!n.links.isDiscriminantProperty}return!1}function oR(e,t){let n;for(const r of e)if(rR(t,r.escapedName)){if(n){n.push(r);continue}n=[r]}return n}function iR(e){const t=e.types;if(!(t.length<10||32768&RS(e)||B(t,(e=>!!(59506688&e.flags)))<10)){if(void 0===e.keyPropertyName){const n=x(t,(e=>59506688&e.flags?x(Hp(e),(e=>Wx(sd(e))?e.escapedName:void 0)):void 0)),r=n&&function(e,t){const n=new Map;let r=0;for(const o of e)if(61603840&o.flags){const e=Ol(o,t);if(e){if(!Gx(e))return;let t=!1;wR(e,(e=>{const r=Jy(WE(e)),i=n.get(r);i?i!==Mt&&(n.set(r,Mt),t=!0):n.set(r,o)})),t||r++}}return r>=10&&2*r>=e.length?n:void 0}(t,n);e.keyPropertyName=r?n:"",e.constituentMap=r}return e.keyPropertyName.length?e.keyPropertyName:void 0}}function aR(e,t){var n;const r=null==(n=e.constituentMap)?void 0:n.get(Jy(WE(t)));return r!==Mt?r:void 0}function sR(e,t){const n=iR(e),r=n&&Ol(t,n);return r&&aR(e,r)}function lR(e,t){return QI(e,t)||tR(e,t)}function cR(e,t){if(e.arguments)for(const n of e.arguments)if(lR(t,n)||nR(n,t))return!0;return!(211!==e.expression.kind||!lR(t,e.expression.expression))}function dR(e){return(!e.id||e.id<0)&&(e.id=kz,kz++),e.id}function uR(e,t){if(e===t)return e;if(131072&t.flags)return t;const n=`A${Jy(e)},${Jy(t)}`;return yi(n)??vi(n,function(e,t){const n=BR(e,(e=>function(e,t){if(!(1048576&e.flags))return KS(e,t);for(const n of e.types)if(KS(n,t))return!0;return!1}(t,e))),r=512&t.flags&&zE(t)?VR(n,FE):n;return KS(t,r)?r:e}(e,t))}function pR(e){const t=Fp(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&US(e,Yn))}function fR(e,t){return _R(e,t)&t}function mR(e,t){return 0!==fR(e,t)}function _R(e,t){467927040&e.flags&&(e=lf(e)||Mt);const n=e.flags;if(268435460&n)return z?16317953:16776705;if(134217856&n){const t=128&n&&""===e.value;return z?t?12123649:7929345:t?12582401:16776705}if(40&n)return z?16317698:16776450;if(256&n){const t=0===e.value;return z?t?12123394:7929090:t?12582146:16776450}if(64&n)return z?16317188:16775940;if(2048&n){const t=CA(e);return z?t?12122884:7928580:t?12581636:16775940}if(16&n)return z?16316168:16774920;if(528&n)return z?e===Ht||e===Kt?12121864:7927560:e===Ht||e===Kt?12580616:16774920;if(524288&n){return 0===(t&(z?83427327:83886079))?0:16&RS(e)&&gT(e)?z?83427327:83886079:pR(e)?z?7880640:16728e3:z?7888800:16736160}return 16384&n?9830144:32768&n?26607360:65536&n?42917664:12288&n?z?7925520:16772880:67108864&n?z?7888800:16736160:131072&n?0:1048576&n?Ue(e.types,((e,n)=>e|_R(n,t)),0):2097152&n?function(e,t){const n=Ww(e,402784252);let r=0,o=134217727;for(const i of e.types)if(!(n&&524288&i.flags)){const e=_R(i,t);r|=e,o&=e}return 8256&r|134209471&o}(e,t):83886079}function hR(e,t){return BR(e,(e=>mR(e,t)))}function gR(e,t){const n=yR(hR(z&&2&e.flags?wn:e,t));if(z)switch(t){case 524288:return VR(n,(e=>mR(e,65536)?Cv([e,mR(e,131072)&&!Ww(n,65536)?mv([Nn,Bt]):Nn]):e));case 1048576:return VR(n,(e=>mR(e,131072)?Cv([e,mR(e,65536)&&!Ww(n,32768)?mv([Nn,Pt]):Nn]):e));case 2097152:case 4194304:return VR(n,(e=>mR(e,262144)?function(e){return dr||(dr=Qh("NonNullable",524288,void 0)||_t),dr!==_t?w_(dr,[e]):Cv([e,Nn])}(e):e))}return n}function yR(e){return e===wn?Mt:e}function vR(e,t){return t?mv([Xl(e),gO(t)]):e}function bR(e,t){var n;const r=zv(t);if(!xA(r))return Rt;const o=AA(r);return Ol(e,o)||SR(null==(n=nm(e,o))?void 0:n.type)||Rt}function ER(e,t){return WR(e,Tx)&&function(e,t){const n=Ol(e,""+t);return n||(WR(e,tA)?bA(e,t,S.noUncheckedIndexedAccess?Pt:void 0):void 0)}(e,t)||SR($F(65,e,Pt,void 0))||Rt}function SR(e){return e&&S.noUncheckedIndexedAccess?mv([e,Ot]):e}function TR(e){return ey($F(65,e,Pt,void 0)||Rt)}function xR(e){return 226===e.parent.kind&&e.parent.left===e||250===e.parent.kind&&e.parent.initializer===e}function AR(e){return bR(IR(e.parent),e.name)}function IR(e){const{parent:t}=e;switch(t.kind){case 249:return jt;case 250:return XF(t)||Rt;case 226:return function(e){return 209===e.parent.kind&&xR(e.parent)||303===e.parent.kind&&xR(e.parent.parent)?vR(IR(e),e.right):gO(e.right)}(t);case 220:return Pt;case 209:return function(e,t){return ER(IR(e),e.elements.indexOf(t))}(t,e);case 230:return function(e){return TR(IR(e.parent))}(t);case 303:return AR(t);case 304:return function(e){return vR(AR(e),e.objectAssignmentInitializer)}(t)}return Rt}function RR(e){return Hi(e).resolvedType||gO(e)}function CR(e){return 260===e.kind?function(e){return e.initializer?RR(e.initializer):249===e.parent.parent.kind?jt:250===e.parent.parent.kind&&XF(e.parent.parent)||Rt}(e):function(e){const t=e.parent,n=CR(t.parent);return vR(206===t.kind?bR(n,e.propertyName||e.name):e.dotDotDotToken?TR(n):ER(n,t.elements.indexOf(e)),e.initializer)}(e)}function DR(e){switch(e.kind){case 217:return DR(e.expression);case 226:switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return DR(e.left);case 28:return DR(e.right)}}return e}function NR(e){const{parent:t}=e;return 217===t.kind||226===t.kind&&64===t.operatorToken.kind&&t.left===e||226===t.kind&&28===t.operatorToken.kind&&t.right===e?NR(t):e}function MR(e){return 296===e.kind?WE(gO(e.expression)):tn}function LR(e){const t=Hi(e);if(!t.switchTypes){t.switchTypes=[];for(const n of e.caseBlock.clauses)t.switchTypes.push(MR(n))}return t.switchTypes}function kR(e){if(se(e.caseBlock.clauses,(e=>296===e.kind&&!np(e.expression))))return;const t=[];for(const n of e.caseBlock.clauses){const e=296===n.kind?n.expression.text:void 0;t.push(e&&!F(t,e)?e:void 0)}return t}function PR(e,t){return!!(e===t||131072&e.flags||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(const n of e.types)if(!$y(t.types,n))return!1;return!0}if(1056&e.flags&&Xd(e)===t)return!0;return $y(t.types,e)}(e,t))}function wR(e,t){return 1048576&e.flags?x(e.types,t):t(e)}function OR(e,t){return 1048576&e.flags?se(e.types,t):t(e)}function WR(e,t){return 1048576&e.flags?M(e.types,t):t(e)}function BR(e,t){if(1048576&e.flags){const n=e.types,r=G(n,t);if(r===n)return e;const o=e.origin;let i;if(o&&1048576&o.flags){const e=o.types,a=G(e,(e=>!!(1048576&e.flags)||t(e)));if(e.length-a.length===n.length-r.length){if(1===a.length)return a[0];i=fv(1048576,a)}}return Tv(r,16809984&e.objectFlags,void 0,void 0,i)}return 131072&e.flags||t(e)?e:tn}function GR(e,t){return BR(e,(e=>e!==t))}function jR(e){return 1048576&e.flags?e.types.length:1}function VR(e,t,n){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);const r=e.origin,o=r&&1048576&r.flags?r.types:e.types;let i,a=!1;for(const s of o){const e=1048576&s.flags?VR(s,t,n):t(s);a||(a=s!==e),e&&(i?i.push(e):i=[e])}return a?i&&mv(i,n?0:1):e}function UR(e,t,n,r){return 1048576&e.flags&&n?mv(U(e.types,t),1,n,r):VR(e,t)}function HR(e,t){return BR(e,(e=>0!==(e.flags&t)))}function KR(e,t){return Ww(e,134217804)&&Ww(t,402655616)?VR(e,(e=>4&e.flags?HR(t,402653316):cb(e)&&!Ww(t,402653188)?HR(t,128):8&e.flags?HR(t,264):64&e.flags?HR(t,2112):e)):e}function qR(e){return 0===e.flags}function JR(e){return 0===e.flags?e.type:e}function XR(e,t){return t?{flags:0,type:131072&e.flags?rn:e}:e}function $R(e){return ut[e.id]||(ut[e.id]=function(e){const t=Ns(256);return t.elementType=e,t}(e))}function YR(e,t){const n=HA(Ux(vO(t)));return PR(n,e.elementType)?e:$R(mv([e.elementType,n]))}function QR(e){return e.finalArrayType||(e.finalArrayType=131072&(t=e.elementType).flags?lr:ey(1048576&t.flags?mv(t.types,2):t));var t}function ZR(e){return 256&RS(e)?QR(e):e}function eC(e){return 256&RS(e)?e.elementType:tn}function tC(e){const t=NR(e),n=t.parent,r=lD(n)&&("length"===n.name.escapedText||213===n.parent.kind&&nC(n.name)&&yv(n.name)),o=212===n.kind&&n.expression===t&&226===n.parent.kind&&64===n.parent.operatorToken.kind&&n.parent.left===n&&!my(n.parent)&&zw(gO(n.argumentExpression),296);return r||o}function oC(e,t){if(8752&(e=Fa(e)).flags)return sd(e);if(7&e.flags){if(262144&mS(e)){const t=e.links.syntheticOrigin;if(t&&oC(t))return sd(e)}const r=e.valueDeclaration;if(r){if((iN(n=r)||TC(n)||SC(n)||bC(n))&&(Ab(n)||$h(n)&&Yu(n)&&n.initializer&&eA(n.initializer)&&Rb(n.initializer)))return sd(e);if(iN(r)&&250===r.parent.parent.kind){const e=r.parent.parent,t=iC(e.expression,void 0);if(t){return $F(e.awaitModifier?15:13,t,Pt,void 0)}}t&&xx(t,d_(r,Oa._0_needs_an_explicit_type_annotation,rl(e)))}}var n}function iC(e,t){if(!(67108864&e.flags))switch(e.kind){case 80:return oC(Ss(JI(e)),t);case 110:return function(e){const t=vh(e,!1,!1);if(Td(t)){const e=pm(t);if(e.thisParameter)return oC(e.thisParameter)}if(Md(t.parent)){const e=ps(t.parent);return jb(t)?sd(e):ou(e).thisType}}(e);case 108:return zD(e);case 211:{const n=iC(e.expression,t);if(n){const r=e.name;let o;if(rC(r)){if(!n.symbol)return;o=kf(n,dv(n.symbol,r.escapedText))}else o=kf(n,r.escapedText);return o&&oC(o,t)}return}case 217:return iC(e.expression,t)}}function aC(e){const t=Hi(e);let n=t.effectsSignature;if(void 0===n){let r;if(TD(e)){r=Vw(DL(e.right))}else 244===e.parent.kind?r=iC(e.expression,void 0):108!==e.expression.kind&&(r=wc(e)?wL(WA(bO(e.expression),e.expression),e.expression):DL(e.expression));const o=wf(r&&yf(r)||Mt,0),i=1!==o.length||o[0].typeParameters?se(o,sC)?hP(e):void 0:o[0];n=t.effectsSignature=i&&sC(i)?i:ao}return n===ao?void 0:n}function sC(e){return!!(ym(e)||e.declaration&&131072&(Em(e.declaration)||Mt).flags)}function lC(e){const t=dC(e,!1);return Zr=e,eo=t,t}function cC(e){const t=Ty(e,!0);return 97===t.kind||226===t.kind&&(56===t.operatorToken.kind&&(cC(t.left)||cC(t.right))||57===t.operatorToken.kind&&cC(t.left)&&cC(t.right))}function dC(e,t){for(;;){if(e===Zr)return eo;const n=e.flags;if(4096&n){if(!t){const t=dR(e),n=Zo[t];return void 0!==n?n:Zo[t]=dC(e,!0)}t=!1}if(368&n)e=e.antecedent;else if(512&n){const t=aC(e.node);if(t){const n=ym(t);if(n&&3===n.kind&&!n.type){const t=e.node.arguments[n.parameterIndex];if(t&&cC(t))return!1}if(131072&bm(t).flags)return!1}e=e.antecedent}else{if(4&n)return se(e.antecedents,(e=>dC(e,!1)));if(8&n){const t=e.antecedents;if(void 0===t||0===t.length)return!1;e=t[0]}else{if(!(128&n)){if(1024&n){Zr=void 0;const t=e.target,n=t.antecedents;t.antecedents=e.antecedents;const r=dC(e.antecedent,!1);return t.antecedents=n,r}return!(1&n)}if(e.clauseStart===e.clauseEnd&&xw(e.switchStatement))return!1;e=e.antecedent}}}}function uC(e,t){for(;;){const n=e.flags;if(4096&n){if(!t){const t=dR(e),n=ei[t];return void 0!==n?n:ei[t]=uC(e,!0)}t=!1}if(496&n)e=e.antecedent;else if(512&n){if(108===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&n)return M(e.antecedents,(e=>uC(e,!1)));if(!(8&n)){if(1024&n){const t=e.target,n=t.antecedents;t.antecedents=e.antecedents;const r=uC(e.antecedent,!1);return t.antecedents=n,r}return!!(1&n)}e=e.antecedents[0]}}}function pC(e){switch(e.kind){case 110:return!0;case 80:if(!Sb(e)){const t=JI(e);return qC(t)||XC(t)&&!hC(t)}break;case 211:case 212:return pC(e.expression)&&Mw(Hi(e).resolvedSymbol||_t);case 206:case 207:const t=bv(e.parent);return bC(t)||Zx(t)?!zC(t):iN(t)&&MG(t)}return!1}function fC(e,t,n=t,r,o=(t=>null==(t=yt(e,Qg))?void 0:t.flowNode)()){let i,a=!1,s=0;if(xo)return Rt;if(!o)return t;Ao++;const l=To,c=JR(p(o));To=l;const d=256&RS(c)&&tC(e)?lr:ZR(c);return d===sn||e.parent&&235===e.parent.kind&&!(131072&d.flags)&&131072&hR(d,2097152).flags?t:d===Lt?Mt:d;function u(){return a?i:(a=!0,i=YI(e,t,n,r))}function p(o){var i;if(2e3===s)return null==(i=kr)||i.instant(kr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:o.id}),xo=!0,function(e){const t=Cl(e,Dd),n=Yf(e),r=b_(n,t.statements.pos);si.add(iT(n,r.start,r.length,Oa.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(e),Rt;let a;for(s++;;){const i=o.flags;if(4096&i){for(let e=l;e<To;e++)if(Yo[e]===o)return s--,Qo[e];a=o}let c;if(16&i){if(c=m(o),!c){o=o.antecedent;continue}}else if(512&i){if(c=h(o),!c){o=o.antecedent;continue}}else if(96&i)c=v(o);else if(128&i)c=b(o);else if(12&i){if(1===o.antecedents.length){o=o.antecedents[0];continue}c=4&i?E(o):S(o)}else if(256&i){if(c=g(o),!c){o=o.antecedent;continue}}else if(1024&i){const e=o.target,t=e.antecedents;e.antecedents=o.antecedents,c=p(o.antecedent),e.antecedents=t}else if(2&i){const t=o.node;if(t&&t!==r&&211!==e.kind&&212!==e.kind&&(110!==e.kind||219===t.kind)){o=t.flowNode;continue}c=n}else c=FF(t);return a&&(Yo[To]=a,Qo[To]=c,To++),s--,c}}function f(t){const n=t.node;return fD(260===n.kind||208===n.kind?CR(n):IR(n),e)}function m(n){const r=n.node;if(QI(e,r)){if(!lC(n))return sn;if(2===fy(r)){const e=p(n.antecedent);return XR(Ux(JR(e)),qR(e))}if(t===xt||t===lr){if(function(e){return 260===e.kind&&e.initializer&&ic(e.initializer)||208!==e.kind&&226===e.parent.kind&&ic(e.parent.right)}(r))return $R(tn);const e=Kx(f(n));return KS(e,t)?e:sr}const e=_y(r)?Ux(t):t;return 1048576&e.flags?uR(e,f(n)):e}if(tR(e,r)){if(!lC(n))return sn;if(iN(r)&&($h(r)||MG(r))){const e=ug(r);if(e&&(218===e.kind||219===e.kind))return p(n.antecedent)}return t}if(iN(r)&&249===r.parent.parent.kind&&(QI(e,r.parent.parent.expression)||nR(r.parent.parent.expression,e)))return ML(ZR(JR(p(n.antecedent))))}function _(e,t){const n=Ty(t,!0);if(97===n.kind)return sn;if(226===n.kind){if(56===n.operatorToken.kind)return _(_(e,n.left),n.right);if(57===n.operatorToken.kind)return mv([_(e,n.left),_(e,n.right)])}return Z(e,n,!0)}function h(e){const t=aC(e.node);if(t){const n=ym(t);if(n&&(2===n.kind||3===n.kind)){const t=p(e.antecedent),r=ZR(JR(t)),o=n.type?Q(r,n,e.node,!0):3===n.kind&&n.parameterIndex>=0&&n.parameterIndex<e.node.arguments.length?_(r,e.node.arguments[n.parameterIndex]):r;return o===r?t:XR(o,qR(t))}if(131072&bm(t).flags)return sn}}function g(n){if(t===xt||t===lr){const t=n.node,r=213===t.kind?t.expression.expression:t.left.expression;if(QI(e,DR(r))){const e=p(n.antecedent),r=JR(e);if(256&RS(r)){let n=r;if(213===t.kind)for(const e of t.arguments)n=YR(n,e);else{zw(vO(t.left.argumentExpression),296)&&(n=YR(n,t.right))}return n===r?e:XR(n,qR(e))}return e}}}function v(e){const t=p(e.antecedent),n=JR(t);if(131072&n.flags)return t;const r=0!==(32&e.flags),o=ZR(n),i=Z(o,e.node,r);return i===o?t:XR(i,qR(t))}function b(t){const n=Ty(t.switchStatement.expression),r=p(t.antecedent);let o=JR(r);if(QI(e,n))o=V(o,t.switchStatement,t.clauseStart,t.clauseEnd);else if(221===n.kind&&QI(e,n.expression))o=function(e,t,n,r){const o=kR(t);if(!o)return e;const i=P(t.caseBlock.clauses,(e=>297===e.kind));if(n===r||i>=n&&i<r){const t=Tw(n,r,o);return BR(e,(e=>fR(e,t)===t))}return mv(U(o.slice(n,r),(t=>t?H(e,t):tn)))}(o,t.switchStatement,t.clauseStart,t.clauseEnd);else if(112===n.kind)o=function(e,t,n,r){const o=P(t.caseBlock.clauses,(e=>297===e.kind)),i=n===r||o>=n&&o<r;for(let a=0;a<n;a++){const n=t.caseBlock.clauses[a];296===n.kind&&(e=Z(e,n.expression,!1))}if(i){for(let n=r;n<t.caseBlock.clauses.length;n++){const r=t.caseBlock.clauses[n];296===r.kind&&(e=Z(e,r.expression,!1))}return e}return mv(U(t.caseBlock.clauses.slice(n,r),(t=>296===t.kind?Z(e,t.expression,!0):tn)))}(o,t.switchStatement,t.clauseStart,t.clauseEnd);else{z&&(nR(n,e)?o=j(o,t.switchStatement,t.clauseStart,t.clauseEnd,(e=>!(163840&e.flags))):221===n.kind&&nR(n.expression,e)&&(o=j(o,t.switchStatement,t.clauseStart,t.clauseEnd,(e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value)))));const r=x(n,o);r&&(o=function(e,t,n,r,o){if(r<o&&1048576&e.flags&&iR(e)===ZI(t)){const t=mv(U(LR(n).slice(r,o),(t=>aR(e,t)||Mt)));if(t!==Mt)return t}return A(e,t,(e=>V(e,n,r,o)))}(o,r,t.switchStatement,t.clauseStart,t.clauseEnd))}return XR(o,qR(r))}function E(e){const r=[];let o,i=!1,a=!1;for(const s of e.antecedents){if(!o&&128&s.flags&&s.clauseStart===s.clauseEnd){o=s;continue}const e=p(s),l=JR(e);if(l===t&&t===n)return l;Ae(r,l),PR(l,n)||(i=!0),qR(e)&&(a=!0)}if(o){const e=p(o),s=JR(e);if(!(131072&s.flags)&&!F(r,s)&&!xw(o.switchStatement)){if(s===t&&t===n)return s;r.push(s),PR(s,n)||(i=!0),qR(e)&&(a=!0)}}return XR(T(r,i?2:1),a)}function S(e){const r=dR(e),o=qo[r]||(qo[r]=new Map),i=u();if(!i)return t;const a=o.get(i);if(a)return a;for(let t=Eo;t<So;t++)if(Jo[t]===e&&Xo[t]===i&&$o[t].length)return XR(T($o[t],1),!0);const s=[];let l,c=!1;for(const u of e.antecedents){let r;if(l){Jo[So]=e,Xo[So]=i,$o[So]=s,So++;const t=to;to=void 0,r=p(u),to=t,So--;const n=o.get(i);if(n)return n}else r=l=p(u);const a=JR(r);if(Ae(s,a),PR(a,n)||(c=!0),a===t)break}const d=T(s,c?2:1);return qR(l)?XR(d,!0):(o.set(i,d),d)}function T(e,n){if(function(e){let t=!1;for(const n of e)if(!(131072&n.flags)){if(!(256&RS(n)))return!1;t=!0}return t}(e))return $R(mv(U(e,eC)));const r=yR(mv(K(e,ZR),n));return r!==t&&r.flags&t.flags&1048576&&W(r.types,t.types)?t:r}function x(n,r){if(1048576&t.flags||1048576&r.flags){const o=function(t){if(Vd(e)||eA(e)||oh(e)){if(nC(t)){const n=JI(t).valueDeclaration;if(n&&(iD(n)||bC(n))&&e===n.parent&&!n.initializer&&!n.dotDotDotToken)return n}}else if(wS(t)){if(QI(e,t.expression))return t}else if(nC(t)){const n=JI(t);if(qC(n)){const t=n.valueDeclaration;if(iN(t)&&!t.type&&t.initializer&&wS(t.initializer)&&QI(e,t.initializer.expression))return t.initializer;if(iD(t)&&!t.initializer){const n=t.parent.parent;if(iN(n)&&!n.type&&n.initializer&&(nC(n.initializer)||wS(n.initializer))&&QI(e,n.initializer))return t}}}}(n);if(o){const e=ZI(o);if(e){if(rR(1048576&t.flags&&PR(r,t)?t:r,e))return o}}}}function A(e,t,n){const r=ZI(t);if(void 0===r)return e;const o=wc(t),i=z&&(o||mA(t))&&Ww(e,98304);let a=Ol(i?hR(e,2097152):e,r);if(!a)return e;a=i&&o?kA(a):a;const s=n(a);return BR(e,(e=>{const t=Fl(e,r)||Mt;return!(131072&t.flags)&&!(131072&s.flags)&&XS(s,t)}))}function I(e,t,n,r,o){if((37===n||38===n)&&1048576&e.flags){const i=iR(e);if(i&&i===ZI(t)){const t=aR(e,gO(r));if(t)return n===(o?37:38)?t:Wx(Ol(t,i)||Mt)?GR(e,t):e}}return A(e,t,(e=>O(e,n,r,o)))}function R(t,n,r){if(QI(e,n))return gR(t,r?4194304:8388608);z&&r&&nR(n,e)&&(t=gR(t,2097152));const o=x(n,t);return o?A(t,o,(e=>hR(e,r?4194304:8388608))):t}function C(e,t,n){const r=kf(e,t);return r?!!(16777216&r.flags||48&mS(r))||n:!!nm(e,t)||!n}function D(e,t,n){const r=AA(t);if(OR(e,(e=>C(e,r,!0))))return BR(e,(e=>C(e,r,n)));if(n){const n=(Ur||(Ur=Xh("Record",2,!0)||_t),Ur===_t?void 0:Ur);if(n)return Cv([e,w_(n,[t,Mt])])}return e}function N(e,t,n,r,o){return Z(e,t,o=o!==(112===n.kind)!==(38!==r&&36!==r))}function k(t,n,r){switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return R(Z(t,n.right,r),n.left,r);case 35:case 36:case 37:case 38:const o=n.operatorToken.kind,i=DR(n.left),a=DR(n.right);if(221===i.kind&&np(a))return B(t,i,o,a,r);if(221===a.kind&&np(i))return B(t,a,o,i,r);if(QI(e,i))return O(t,o,a,r);if(QI(e,a))return O(t,o,i,r);z&&(nR(i,e)?t=w(t,o,a,r):nR(a,e)&&(t=w(t,o,i,r)));const s=x(i,t);if(s)return I(t,s,o,a,r);const l=x(a,t);if(l)return I(t,l,o,i,r);if(J(i))return X(t,o,a,r);if(J(a))return X(t,o,i,r);if(Id(a)&&!wS(i))return N(t,i,a,o,r);if(Id(i)&&!wS(a))return N(t,a,i,o,r);break;case 104:return function(t,n,r){const o=DR(n.left);if(!QI(e,o))return r&&z&&nR(o,e)?gR(t,2097152):t;const i=n.right,a=gO(i);if(!qS(a,$n))return t;const s=aC(n),l=s&&ym(s);if(l&&1===l.kind&&0===l.parameterIndex)return Y(t,l.type,r,!0);if(!qS(a,Yn))return t;const c=VR(a,$);if(zl(t)&&(c===$n||c===Yn)||!r&&(!(524288&c.flags)||yT(c)))return t;return Y(t,c,r,!0)}(t,n,r);case 103:if(rC(n.left))return function(t,n,r){const o=DR(n.right);if(!QI(e,o))return t;In.assertNode(n.left,rC);const i=UL(n.left);if(void 0===i)return t;const a=i.parent,s=Vb(In.checkDefined(i.valueDeclaration,"should always have a declaration"))?sd(a):ou(a);return Y(t,s,r,!0)}(t,n,r);const c=DR(n.right);if(BA(t)&&wS(e)&&QI(e.expression,c)){const o=gO(n.left);if(xA(o)&&ZI(e)===AA(o))return hR(t,r?524288:65536)}if(QI(e,c)){const e=gO(n.left);if(xA(e))return D(t,e,r)}break;case 28:return Z(t,n.right,r);case 56:return r?Z(Z(t,n.left,!0),n.right,!0):mv([Z(t,n.left,!1),Z(t,n.right,!1)]);case 57:return r?mv([Z(t,n.left,!0),Z(t,n.right,!0)]):Z(Z(t,n.left,!1),n.right,!1)}return t}function w(e,t,n,r){const o=35===t||37===t,i=35===t||36===t?98304:32768,a=gO(n);return o!==r&&WR(a,(e=>!!(e.flags&i)))||o===r&&WR(a,(e=>!(e.flags&(3|i))))?gR(e,2097152):e}function O(e,t,n,r){if(1&e.flags)return e;36!==t&&38!==t||(r=!r);const o=gO(n),i=35===t||36===t;if(98304&o.flags){if(!z)return e;return gR(e,i?r?262144:2097152:65536&o.flags?r?131072:1048576:r?65536:524288)}if(r){if(!i&&(2&e.flags||OR(e,yT))){if(469893116&o.flags||yT(o))return o;if(524288&o.flags)return ln}return KR(BR(e,(e=>{return XS(e,o)||i&&(t=o,0!==(524&e.flags)&&0!==(28&t.flags));var t})),o)}return Wx(o)?BR(e,(e=>!(zx(e)&&XS(e,o)))):e}function B(t,n,r,o,i){36!==r&&38!==r||(i=!i);const a=DR(n.expression);if(!QI(e,a)){z&&nR(a,e)&&i===("undefined"!==o.text)&&(t=gR(t,2097152));const n=x(a,t);return n?A(t,n,(e=>G(e,o,i))):t}return G(t,o,i)}function G(e,t,n){return n?H(e,t.text):gR(e,wz.get(t.text)||32768)}function j(e,t,n,r,o){return n!==r&&M(LR(t).slice(n,r),o)?hR(e,2097152):e}function V(e,t,n,r){const o=LR(t);if(!o.length)return e;const i=o.slice(n,r),a=n===r||F(i,tn);if(2&e.flags&&!a){let t;for(let n=0;n<i.length;n+=1){const r=i[n];if(469893116&r.flags)void 0!==t&&t.push(r);else{if(!(524288&r.flags))return e;void 0===t&&(t=i.slice(0,n)),t.push(ln)}}return mv(void 0===t?i:t)}const s=mv(i),l=131072&s.flags?tn:KR(BR(e,(e=>XS(s,e))),s);if(!a)return l;const c=BR(e,(e=>!(zx(e)&&F(o,WE(function(e){return 2097152&e.flags&&L(e.types,Wx)||e}(e))))));return 131072&l.flags?c:mv([l,c])}function H(e,t){switch(t){case"string":return q(e,jt,1);case"number":return q(e,Vt,2);case"bigint":return q(e,Ut,4);case"boolean":return q(e,Qt,8);case"symbol":return q(e,Zt,16);case"object":return 1&e.flags?e:mv([q(e,ln,32),q(e,Bt,131072)]);case"function":return 1&e.flags?e:q(e,Yn,64);case"undefined":return q(e,Pt,65536)}return q(e,ln,128)}function q(e,t,n){return VR(e,(e=>AT(e,t,ui)?mR(e,n)?e:tn:US(t,e)?t:mR(e,n)?Cv([e,t]):tn))}function J(t){return(lD(t)&&"constructor"===kl(t.name)||cD(t)&&np(t.argumentExpression)&&"constructor"===t.argumentExpression.text)&&QI(e,t.expression)}function X(e,t,n,r){if(r?35!==t&&37!==t:36!==t&&38!==t)return e;const o=gO(n);if(!LB(o)&&!Cd(o))return e;const i=kf(o,"prototype");if(!i)return e;const a=sd(i),s=zl(a)?void 0:a;return s&&s!==$n&&s!==Yn?zl(e)?s:BR(e,(e=>function(e,t){if(524288&e.flags&&1&RS(e)||524288&t.flags&&1&RS(t))return e.symbol===t.symbol;return US(e,t)}(e,s))):e}function $(e){const t=Ol(e,"prototype");if(t&&!zl(t))return t;const n=wf(e,1);return n.length?mv(U(n,(e=>bm(Dm(e))))):Nn}function Y(e,t,n,r){const o=1048576&e.flags?`N${Jy(e)},${Jy(t)},${(n?1:0)|(r?2:0)}`:void 0;return yi(o)??vi(o,function(e,t,n,r){if(!n){if(e===t)return tn;if(r)return BR(e,(e=>!qS(e,t)));const n=Y(e,t,!0,!1);return BR(e,(e=>!PR(e,n)))}if(3&e.flags)return t;if(e===t)return t;const o=r?qS:US,i=1048576&e.flags?iR(e):void 0,a=VR(t,(t=>{const n=i&&Ol(t,i),a=VR(n&&aR(e,n)||e,r?e=>qS(e,t)?e:qS(t,e)?t:tn:e=>HS(e,t)?e:HS(t,e)?t:US(e,t)?e:US(t,e)?t:tn);return 131072&a.flags?VR(e,(e=>Ww(e,465829888)&&o(t,lf(e)||Mt)?Cv([e,t]):tn)):a}));return 131072&a.flags?US(t,e)?t:KS(e,t)?e:KS(t,e)?t:Cv([e,t]):a}(e,t,n,r))}function Q(t,n,r,o){if(n.type&&(!zl(t)||n.type!==$n&&n.type!==Yn)){const i=function(e,t){if(1===e.kind||3===e.kind)return t.arguments[e.parameterIndex];const n=Ty(t.expression);return wS(n)?Ty(n.expression):void 0}(n,r);if(i){if(QI(e,i))return Y(t,n.type,o,!1);z&&nR(i,e)&&(o&&!mR(n.type,65536)||!o&&WR(n.type,NL))&&(t=gR(t,2097152));const r=x(i,t);if(r)return A(t,r,(e=>Y(e,n.type,o,!1)))}}return t}function Z(t,n,r){if(Fc(n)||TD(n.parent)&&(61===n.parent.operatorToken.kind||78===n.parent.operatorToken.kind)&&n.parent.left===n)return function(t,n,r){if(QI(e,n))return gR(t,r?2097152:262144);const o=x(n,t);if(o)return A(t,o,(e=>hR(e,r?2097152:262144)));return t}(t,n,r);switch(n.kind){case 80:if(!QI(e,n)&&y<5){const o=JI(n);if(qC(o)){const n=o.valueDeclaration;if(n&&iN(n)&&!n.type&&n.initializer&&pC(e)){y++;const e=Z(t,n.initializer,r);return y--,e}}}case 110:case 108:case 211:case 212:return R(t,n,r);case 213:return function(t,n,r){if(cR(n,e)){const e=r||!Pc(n)?aC(n):void 0,o=e&&ym(e);if(o&&(0===o.kind||1===o.kind))return Q(t,o,n,r)}if(BA(t)&&wS(e)&&lD(n.expression)){const o=n.expression;if(QI(e.expression,DR(o.expression))&&nC(o.name)&&"hasOwnProperty"===o.name.escapedText&&1===n.arguments.length){const o=n.arguments[0];if(np(o)&&ZI(e)===Ml(o.text))return hR(t,r?524288:65536)}}return t}(t,n,r);case 217:case 235:return Z(t,n.expression,r);case 226:return k(t,n,r);case 224:if(54===n.operator)return Z(t,n.operand,!r)}return t}}function mC(e){return Cl(e.parent,(e=>Td(e)&&!xh(e)||268===e.kind||312===e.kind||172===e.kind))}function hC(e){return!LC(e,void 0)}function LC(e,t){const n=Cl(e.valueDeclaration,HC);if(!n)return!1;const r=Hi(n);return 131072&r.flags||(r.flags|=131072,Cl(n.parent,(e=>HC(e)&&!!(131072&Hi(e).flags)))||KC(n)),!e.lastAssignmentPos||t&&e.lastAssignmentPos<t.pos}function zC(e){return In.assert(iN(e)||bC(e)),UC(e.name)}function UC(e){return 80===e.kind?hC(ps(e.parent)):se(e.elements,(e=>232!==e.kind&&UC(e.name)))}function HC(e){return Ad(e)||rM(e)}function KC(e){switch(e.kind){case 80:if(my(e)){const t=JI(e);if(XC(t)&&t.lastAssignmentPos!==Number.MAX_VALUE){const n=Cl(e,HC),r=Cl(t.valueDeclaration,HC);t.lastAssignmentPos=n===r?function(e,t){let n=e.pos;for(;e&&e.pos>t.pos;){switch(e.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:n=e.end}e=e.parent}return n}(e,t.valueDeclaration):Number.MAX_VALUE}}return;case 281:const t=e.parent.parent;if(!e.isTypeOnly&&!t.isTypeOnly&&!t.moduleSpecifier){const t=qa(e.propertyName||e.name,111551,!0,!0);t&&XC(t)&&(t.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}Gd(e)||oP(e,KC)}function qC(e){return 3&e.flags&&0!==(6&xL(e))}function XC(e){const t=e.valueDeclaration&&bv(e.valueDeclaration);return!!t&&(bC(t)||iN(t)&&(YN(t.parent)||function(e){return!!(1&e.parent.flags)&&!(32&Sl(e)||243===e.parent.parent.kind&&Ki(e.parent.parent.parent))}(t)))}function QC(e,t){const n=z&&169===t.kind&&t.initializer&&mR(e,16777216)&&!function(e){const t=Hi(e);if(void 0===t.parameterInitializerContainsUndefined){if(!El(e,9))return nd(e.symbol),!0;const n=!!mR(rO(e,0),16777216);if(!Il())return nd(e.symbol),!0;t.parameterInitializerContainsUndefined=n}return t.parameterInitializerContainsUndefined}(t);return n?hR(e,524288):e}function tD(e){return 2097152&e.flags?se(e.types,tD):!!(465829888&e.flags&&1146880&cf(e).flags)}function nD(e){return 2097152&e.flags?se(e.types,nD):!(!(465829888&e.flags)||Ww(cf(e),98304))}function fD(e,t,n){const r=!(n&&2&n)&&OR(e,tD)&&(function(e,t){const n=t.parent;return 211===n.kind||166===n.kind||213===n.kind&&n.expression===t||212===n.kind&&n.expression===t&&!(OR(e,nD)&&fb(gO(n.argumentExpression)))}(e,t)||function(e,t){const n=(nC(e)||lD(e)||cD(e))&&!((WN(e.parent)||FN(e.parent))&&e.parent.tagName===e)&&JN(e,t&&32&t?8:void 0);return n&&!ub(n)}(t,n));return r?VR(e,cf):e}function gD(e){return!!Cl(e,(e=>{const t=e.parent;return void 0===t?"quit":CN(t)?t.expression===e&&EE(e):!!MN(t)&&(t.name===e||t.propertyName===e)}))}function vD(e,t){if(Re&&wa(e,111551)&&!Eb(t)){const n=Wa(e);1160127&za(e,!0)&&(Kp(S)||Zp(S)&&gD(t)||!EB(Ss(n))?Ua(e):function(e){const t=Ui(e);t.constEnumReferenced||(t.constEnumReferenced=!0)}(e))}}function SD(e,t){if(Sb(e))return wD(e);const n=JI(e);if(n===_t)return Rt;if(n===ve){if($L(e))return Ai(e,Oa.arguments_cannot_be_referenced_in_property_initializers),Rt;let t=fh(e);if(t)for(A<2&&(219===t.kind?Ai(e,Oa.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Gb(t,1024)&&Ai(e,Oa.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Hi(t).flags|=512;t&&hD(t);)t=fh(t),t&&(Hi(t).flags|=512);return sd(n)}(function(e){var t;const n=e.parent;if(n){if(lD(n)&&n.expression===e)return!1;if(MN(n)&&n.isTypeOnly)return!1;const r=null==(t=n.parent)?void 0:t.parent;if(r&&DN(r)&&r.isTypeOnly)return!1}return!0})(e)&&vD(n,e);const r=Ss(n),o=oz(r,e);Ni(o)&&ib(e,o)&&o.declarations&&Li(e,o.declarations,e.escapedText);let i=r.valueDeclaration;if(i&&32&r.flags&&Md(i)&&i.name!==e){let t=vh(e,!1,!1);for(;312!==t.kind&&t.parent!==i;)t=vh(t,!1,!1);312!==t.kind&&(Hi(i).flags|=262144,Hi(t).flags|=262144,Hi(e).flags|=536870912)}!function(e,t){if(A>=2||0===(34&t.flags)||!t.valueDeclaration||rM(t.valueDeclaration)||299===t.valueDeclaration.parent.kind)return;const n=n_(t.valueDeclaration),r=function(e,t){return!!Cl(e,(e=>e===t?"quit":Td(e)||e.parent&&TC(e.parent)&&!Vb(e.parent)&&e.parent.initializer===e))}(e,n),o=xD(n);if(o){if(r){let r=!0;if(qD(n)){const o=jy(t.valueDeclaration,261);if(o&&o.parent===n){const o=function(e,t){return Cl(e,(e=>e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement))}(e.parent,n);if(o){const e=Hi(o);e.flags|=8192;Ae(e.capturedBlockScopeBindings||(e.capturedBlockScopeBindings=[]),t),o===n.initializer&&(r=!1)}}}r&&(Hi(o).flags|=4096)}if(qD(n)){const r=jy(t.valueDeclaration,261);r&&r.parent===n&&function(e,t){let n=e;for(;217===n.parent.kind;)n=n.parent;let r=!1;if(my(n))r=!0;else if(224===n.parent.kind||225===n.parent.kind){const e=n.parent;r=46===e.operator||47===e.operator}if(!r)return!1;return!!Cl(n,(e=>e===t?"quit":e===t.statement))}(e,n)&&(Hi(t.valueDeclaration).flags|=65536)}Hi(t.valueDeclaration).flags|=32768}r&&(Hi(t.valueDeclaration).flags|=16384)}(e,n);let a=function(e,t,n){var r;const o=sd(e,n),i=e.valueDeclaration;if(i){if(iD(i)&&!i.initializer&&!i.dotDotDotToken&&i.parent.elements.length>=2){const e=i.parent.parent,n=bv(e);if(260===n.kind&&6&NG(n)||169===n.kind){const r=Hi(e);if(!(4194304&r.flags)){r.flags|=4194304;const o=Vl(e,0),a=o&&VR(o,cf);if(r.flags&=-4194305,a&&1048576&a.flags&&(169!==n.kind||!zC(n))){const e=fC(i.parent,a,a,void 0,t.flowNode);return 131072&e.flags?tn:rc(i,e,!0)}}}}if(bC(i)&&!i.type&&!i.initializer&&!i.dotDotDotToken){const e=i.parent;if(e.parameters.length>=2&&FS(e)){const n=AM(e);if(n&&1===n.parameters.length&&Zz(n)){const o=vf(AS(sd(n.parameters[0]),null==(r=cM(e))?void 0:r.nonFixingMapper));if(1048576&o.flags&&WR(o,tA)&&!se(e.parameters,zC))return Mb(fC(e,o,o,void 0,t.flowNode),GE(e.parameters.indexOf(i)-(yb(e)?1:0)))}}}}return o}(r,e,t);const s=fy(e);if(s){if(!(3&r.flags)&&!($h(e)&&512&r.flags)){return Ai(e,384&r.flags?Oa.Cannot_assign_to_0_because_it_is_an_enum:32&r.flags?Oa.Cannot_assign_to_0_because_it_is_a_class:1536&r.flags?Oa.Cannot_assign_to_0_because_it_is_a_namespace:16&r.flags?Oa.Cannot_assign_to_0_because_it_is_a_function:2097152&r.flags?Oa.Cannot_assign_to_0_because_it_is_an_import:Oa.Cannot_assign_to_0_because_it_is_not_a_variable,rl(n)),Rt}if(Mw(r))return 3&r.flags?Ai(e,Oa.Cannot_assign_to_0_because_it_is_a_constant,rl(n)):Ai(e,Oa.Cannot_assign_to_0_because_it_is_a_read_only_property,rl(n)),Rt}const l=2097152&r.flags;if(3&r.flags){if(1===s)return _y(e)?Ux(a):a}else{if(!l)return a;i=ha(n)}if(!i)return a;a=fD(a,e,t);const c=169===bv(i).kind,d=mC(i);let u=mC(e);const p=u!==d,f=e.parent&&e.parent.parent&&eM(e.parent)&&xR(e.parent.parent),m=134217728&n.flags,_=a===xt||a===lr,h=_&&235===e.parent.kind;for(;u!==d&&(218===u.kind||219===u.kind||ih(u))&&(qC(r)&&a!==lr||XC(r)&&LC(r,e));)u=mC(u);const g=c||l||p||f||m||function(e,t){if(iD(t)){const n=Cl(e,iD);return n&&bv(n)===bv(t)}}(e,i)||a!==xt&&a!==lr&&(!z||0!==(16387&a.flags)||Eb(e)||$I(e)||281===e.parent.kind)||235===e.parent.kind||260===i.kind&&i.exclamationToken||33554432&i.flags,y=h?Pt:g?c?QC(a,i):a:_?Pt:kA(a),v=h?PA(fC(e,a,y,u)):fC(e,a,y,u);if(tC(e)||a!==xt&&a!==lr){if(!g&&!vT(a)&&vT(v))return Ai(e,Oa.Variable_0_is_used_before_being_assigned,rl(n)),a}else if(v===xt||v===lr)return $&&(Ai(jl(i),Oa.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,rl(n),il(v)),Ai(e,Oa.Variable_0_implicitly_has_an_1_type,rl(n),il(v))),FF(v);return s?Ux(v):v}function xD(e){return Cl(e,(e=>!e||Ev(e)?"quit":mu(e,!1)))}function AD(e,t){if(Hi(e).flags|=2,172===t.kind||176===t.kind){Hi(t.parent).flags|=4}else Hi(t).flags|=4}function ID(e){return M_(e)?e:Td(e)?void 0:oP(e,ID)}function MD(e){return Wd(ou(ps(e)))===Gt}function kD(e,t,n){const r=t.parent;Fy(r)&&!MD(r)&&Qg(e)&&e.flowNode&&!uC(e.flowNode,!1)&&Ai(e,n)}function wD(e){const t=Eb(e);let n=vh(e,!0,!0),r=!1,o=!1;for(176===n.kind&&kD(e,n,Oa.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);219===n.kind&&(n=vh(n,!1,!o),r=!0),167===n.kind;)n=vh(n,!r,!1),o=!0;if(function(e,t){TC(t)&&Vb(t)&&C&&t.initializer&&tl(t.initializer,e.pos)&&Xb(t.parent)&&Ai(e,Oa.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(e,n),o)Ai(e,Oa.this_cannot_be_referenced_in_a_computed_property_name);else switch(n.kind){case 267:Ai(e,Oa.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Ai(e,Oa.this_cannot_be_referenced_in_current_location);break;case 176:FD(e,n)&&Ai(e,Oa.this_cannot_be_referenced_in_constructor_arguments)}!t&&r&&A<2&&AD(e,n);const i=OD(e,!0,n);if(Y){const t=sd(_e);if(i===t&&r)Ai(e,Oa.The_containing_arrow_function_captures_the_global_value_of_this);else if(!i){const r=Ai(e,Oa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!rM(n)){const e=OD(n);e&&e!==t&&xx(r,d_(n,Oa.An_outer_value_of_this_is_shadowed_by_this_container))}}}return i||Tt}function OD(e,t=!0,n=vh(e,!1,!1)){const r=$h(e);if(Td(n)&&(!eN(e)||yb(n))){let t=gm(pm(n))||r&&function(e){const t=mc(e);if(t&&t.typeExpression)return JE(t.typeExpression);const n=fm(e);if(n)return gm(n)}(n);if(!t){const e=function(e){if(218===e.kind&&TD(e.parent)&&3===Eg(e.parent))return e.parent.left.expression.expression;if(174===e.kind&&210===e.parent.kind&&TD(e.parent.parent)&&6===Eg(e.parent.parent))return e.parent.parent.left.expression;if(218===e.kind&&303===e.parent.kind&&210===e.parent.parent.kind&&TD(e.parent.parent.parent)&&6===Eg(e.parent.parent.parent))return e.parent.parent.parent.left.expression;if(218===e.kind&&QN(e.parent)&&nC(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&sD(e.parent.parent)&&dD(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===Eg(e.parent.parent.parent))return e.parent.parent.parent.arguments[0].expression;if(AC(e)&&nC(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&sD(e.parent)&&dD(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===Eg(e.parent.parent))return e.parent.parent.arguments[0].expression}(n);if(r&&e){const n=bO(e).symbol;n&&n.members&&16&n.flags&&(t=ou(n).thisType)}else gP(n)&&(t=ou(us(n.symbol)).thisType);t||(t=YD(n))}if(t)return fC(e,t)}if(Md(n.parent)){const t=ps(n.parent);return fC(e,jb(n)?sd(t):ou(t).thisType)}if(rM(n)){if(n.commonJsModuleIndicator){const e=ps(n);return e&&sd(e)}if(n.externalModuleIndicator)return Pt;if(t)return sd(_e)}}function FD(e,t){return!!Cl(e,(e=>Ad(e)?"quit":169===e.kind&&e.parent===t))}function zD(e){const t=213===e.parent.kind&&e.parent.expression===e,n=Th(e,!0);let r=n,o=!1,i=!1;if(!t){for(;r&&219===r.kind;)Gb(r,1024)&&(i=!0),r=Th(r,!0),o=A<2;r&&Gb(r,1024)&&(i=!0)}let a=0;if(!r||!function(e){if(t)return 176===e.kind;if(Md(e.parent)||210===e.parent.kind)return jb(e)?174===e.kind||173===e.kind||177===e.kind||178===e.kind||172===e.kind||175===e.kind:174===e.kind||173===e.kind||177===e.kind||178===e.kind||172===e.kind||171===e.kind||176===e.kind;return!1}(r)){const n=Cl(e,(e=>e===r?"quit":167===e.kind));return n&&167===n.kind?Ai(e,Oa.super_cannot_be_referenced_in_a_computed_property_name):t?Ai(e,Oa.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(Md(r.parent)||210===r.parent.kind)?Ai(e,Oa.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Ai(e,Oa.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Rt}if(t||176!==n.kind||kD(e,r,Oa.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),jb(r)||t?(a=32,!t&&A>=2&&A<=8&&(TC(r)||IC(r))&&r_(e.parent,(e=>{rM(e)&&!T_(e)||(Hi(e).flags|=2097152)}))):a=16,Hi(e).flags|=a,174===r.kind&&i&&(Ih(e.parent)&&my(e.parent)?Hi(r).flags|=256:Hi(r).flags|=128),o&&AD(e.parent,r),210===r.parent.kind)return A<2?(Ai(e,Oa.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Rt):Tt;const s=r.parent;if(!Fy(s))return Ai(e,Oa.super_can_only_be_referenced_in_a_derived_class),Rt;if(MD(s))return t?Rt:Gt;const l=ou(ps(s)),c=l&&jd(l)[0];return c?176===r.kind&&FD(e,r)?(Ai(e,Oa.super_cannot_be_referenced_in_constructor_arguments),Rt):32===a?Wd(l):Pu(c,l.thisType):Rt}function jD(e){return 174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind?218===e.kind&&303===e.parent.kind?e.parent.parent:void 0:e.parent}function HD(e){return 4&RS(e)&&e.target===ar?D_(e)[0]:void 0}function KD(e){return VR(e,(e=>2097152&e.flags?x(e.types,HD):HD(e)))}function $D(e,t){let n=e,r=t;for(;r;){const e=KD(r);if(e)return e;if(303!==n.parent.kind)break;n=n.parent.parent,r=BN(n,void 0)}}function YD(e){if(219===e.kind)return;if(FS(e)){const t=AM(e);if(t){const e=t.thisParameter;if(e)return sd(e)}}const t=$h(e);if(Y||t){const n=jD(e);if(n){const e=BN(n,void 0),t=$D(n,e);return t?AS(t,uI(cM(n))):YA(e?PA(e):tO(n))}const r=by(e.parent);if(gE(r)){const e=r.left;if(wS(e)){const{expression:n}=e;if(t&&nC(n)){const e=Yf(r);if(e.commonJsModuleIndicator&&JI(n)===e.symbol)return}return YA(tO(n))}}}}function QD(e){const t=e.parent;if(!FS(t))return;const n=xh(t);if(n&&n.arguments){const r=Uk(n),o=t.parameters.indexOf(e);if(e.dotDotDotToken)return Fk(r,o,r.length,Tt,void 0,0);const i=Hi(n),a=i.resolvedSignature;i.resolvedSignature=io;const s=o<r.length?Kx(bO(r[o])):e.initializer?void 0:wt;return i.resolvedSignature=a,s}const r=AM(t);if(r){const n=t.parameters.indexOf(e)-(yb(t)?1:0);return e.dotDotDotToken&&Oe(t.parameters)===e?qP(r,n):KP(r,n)}}function ZD(e,t){const n=Ab(e)||($h(e)?gA(e):void 0);if(n)return JE(n);switch(e.kind){case 169:return QD(e);case 208:return function(e,t){const n=e.parent.parent,r=e.propertyName||e.name,o=ZD(n,t)||208!==n.kind&&n.initializer&&rO(n,e.dotDotDotToken?32:0);if(!o||Vd(r)||a_(r))return;if(207===n.name.kind){const t=Im(e.parent.elements,e);if(t<0)return;return IN(o,t)}const i=zv(r);if(xA(i)){return Ol(o,AA(i))}}(e,t);case 172:if(jb(e))return function(e,t){const n=uu(e.parent)&&JN(e.parent,t);return n?EN(n,ps(e).escapedName):void 0}(e,t)}}function eN(e){let t=!1;for(;e.parent&&!Td(e.parent);){if(bC(e.parent)&&(t||e.parent.initializer===e))return!0;iD(e.parent)&&e.parent.initializer===e&&(t=!0),e=e.parent}return!1}function tN(e,t){const n=!!(2&Zy(t)),r=nN(t,void 0);if(r)return bW(e,r,n)||void 0}function nN(e,t){const n=Em(e);if(n)return n;const r=xM(e);if(r&&!Sm(r)){const t=bm(r),n=Zy(e);return 1&n?BR(t,(e=>!!(58998787&e.flags)||AO(e,n,void 0))):2&n?BR(t,(e=>!!(58998787&e.flags)||!!KO(e))):t}const o=xh(e);return o?JN(o,t):void 0}function rN(e,t){const n=Uk(e).indexOf(t);return-1===n?void 0:oN(e,n)}function oN(e,t){if(L_(e))return 0===t?jt:1===t?lg(!1):Tt;const n=Hi(e).resolvedSignature===so?so:hP(e);if(ju(e)&&0===t)return dM(n,e);const r=n.parameters.length-1;return Zz(n)&&t>=r?Mb(sd(n.parameters[r]),GE(t-r),256):HP(n,t)}function mN(e,t){const n=e.parent,{left:r,operatorToken:o,right:i}=n;switch(o.kind){case 64:case 77:case 76:case 78:return e===i?function(e){var t,n;const r=Eg(e);switch(r){case 0:case 4:const o=function(e){if(Cu(e)&&e.symbol)return e.symbol;if(nC(e))return JI(e);if(lD(e)){const n=gO(e.expression);return rC(e.name)?t(n,e.name):kf(n,e.name.escapedText)}if(cD(e)){const t=tO(e.argumentExpression);if(!xA(t))return;return kf(gO(e.expression),AA(t))}return;function t(e,t){const n=BL(t.escapedText,t);return n&&HL(e,n)}}(e.left),i=o&&o.valueDeclaration;if(i&&(TC(i)||SC(i))){const t=Ab(i);return t&&AS(JE(t),Ui(o).mapper)||(TC(i)?i.initializer&&gO(e.left):void 0)}return 0===r?gO(e.left):bN(e);case 5:if(vN(e,r))return bN(e);if(Cu(e.left)&&e.left.symbol){const t=e.left.symbol.valueDeclaration;if(!t)return;const n=vt(e.left,wS),r=Ab(t);if(r)return JE(r);if(nC(n.expression)){const e=n.expression,t=ta(e,e.escapedText,111551,void 0,e.escapedText,!0);if(t){const e=t.valueDeclaration&&Ab(t.valueDeclaration);if(e){const t=Ng(n);if(void 0!==t)return EN(JE(e),t)}return}}return $h(t)||t===e.left?void 0:gO(e.left)}return gO(e.left);case 1:case 6:case 3:case 2:let a;2!==r&&(a=Cu(e.left)?null==(t=e.left.symbol)?void 0:t.valueDeclaration:void 0),a||(a=null==(n=e.symbol)?void 0:n.valueDeclaration);const s=a&&Ab(a);return s?JE(s):void 0;case 7:case 8:case 9:return In.fail("Does not apply");default:return In.assertNever(r)}}(n):void 0;case 57:case 61:const o=JN(n,t);return e===i&&(o&&o.pattern||!o&&!mg(n))?gO(r):o;case 56:case 28:return e===i?JN(n,t):void 0;default:return}}function vN(e,t=Eg(e)){if(4===t)return!0;if(!$h(e)||5!==t||!nC(e.left.expression))return!1;const n=e.left.expression.escapedText,r=ta(e.left,n,111551,void 0,void 0,!0,!0);return Ch(null==r?void 0:r.valueDeclaration)}function bN(e){if(!e.symbol)return gO(e.left);if(e.symbol.valueDeclaration){const t=Ab(e.symbol.valueDeclaration);if(t){const e=JE(t);if(e)return e}}const t=vt(e.left,wS);if(!oh(vh(t.expression,!1,!1)))return;const n=wD(t.expression),r=Ng(t);return void 0!==r&&EN(n,r)||void 0}function EN(e,t,n){return VR(e,(e=>{var r,o;if(wp(e)&&!e.declaration.nameType){const r=Ip(e),o=lf(r)||r,i=n||BE(Ll(t));if(KS(i,o))return Nb(e,i)}else if(3670016&e.flags){const i=kf(e,t);if(i)return 262144&mS(o=i)&&!o.links.type&&Tl(o,0)>=0?void 0:zA(sd(i),!!(i&&16777216&i.flags));if(tA(e)&&nA(t)&&+t>=0){const t=SA(e,e.target.fixedLength,0,!1,!0);if(t)return t}return null==(r=jf(Uf(e),n||BE(Ll(t))))?void 0:r.type}}),!0)}function TN(e,t){if(In.assert(oh(e)),!(67108864&e.flags))return xN(e,t)}function xN(e,t){const n=e.parent,r=QN(e)&&ZD(e,t);if(r)return r;const o=BN(n,t);if(o){if(Au(e)){const t=ps(e);return EN(o,t.escapedName,Ui(t).nameType)}if(rv(e)){const t=jl(e);if(t&&yC(t)){const e=bO(t.expression),n=xA(e)&&EN(o,AA(e));if(n)return n}}if(e.name){const t=zv(e.name);return VR(o,(e=>{var n;return null==(n=jf(Uf(e),t))?void 0:n.type}),!0)}}}function IN(e,t,n,r,o){return e&&VR(e,(e=>{if(tA(e)){if((void 0===r||t<r)&&t<e.target.fixedLength)return zA(D_(e)[t],!!e.target.elementFlags[t]);const i=void 0!==n&&(void 0===o||t>o)?n-t:0,a=i>0&&e.target.hasRestElement?Hy(e.target,3):0;return i>0&&i<=a?D_(e)[N_(e)-i]:SA(e,void 0===r?e.target.fixedLength:Math.min(e.target.fixedLength,r),void 0===n||void 0===o?a:Math.min(a,n-o),!1,!0)}return(!r||t<r)&&EN(e,""+t)||YF(1,e,Pt,void 0,!1)}),!0)}function LN(e,t){const n=e.parent;return Bu(n)?JN(e,t):ON(n)?function(e,t,n){const r=BN(e.openingElement.attributes,n),o=iL(rL(e));if(!r||zl(r)||!o||""===o)return;const i=Nv(e.children),a=i.indexOf(t),s=EN(r,o);return s&&(1===i.length?s:VR(s,(e=>_x(e)?Mb(e,GE(a)):e),!0))}(n,e,t):void 0}function kN(e,t){if(VN(e)){const n=BN(e.parent,t);if(!n||zl(n))return;return EN(n,yA(e.name))}return JN(e.parent,t)}function PN(e){switch(e.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return PN(e.expression);case 294:return!e.expression||PN(e.expression)}return!1}function zN(e,t){return function(e,t){const n=iR(e),r=n&&L(t.properties,(e=>e.symbol&&303===e.kind&&e.symbol.escapedName===n&&PN(e.initializer))),o=r&&vO(r.initializer);return o&&aR(e,o)}(t,e)||BT(t,ce(U(G(e.properties,(e=>!!e.symbol&&(303===e.kind?PN(e.initializer)&&rR(t,e.symbol.escapedName):304===e.kind&&rR(t,e.symbol.escapedName)))),(e=>[()=>vO(303===e.kind?e.initializer:e.name),e.symbol.escapedName])),U(G(Hp(t),(n=>{var r;return!!(16777216&n.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(n.escapedName)&&rR(t,n.escapedName)})),(e=>[()=>Pt,e.escapedName]))),KS)}function BN(e,t){const n=jN(oh(e)?TN(e,t):JN(e,t),e,t);if(n&&!(t&&2&t&&8650752&n.flags)){const t=VR(n,(e=>32&RS(e)?e:yf(e)),!0);return 1048576&t.flags&&sD(e)?zN(e,t):1048576&t.flags&&UN(e)?function(e,t){const n=iL(rL(e));return BT(t,ce(U(G(e.properties,(e=>!!e.symbol&&291===e.kind&&rR(t,e.symbol.escapedName)&&(!e.initializer||PN(e.initializer)))),(e=>[e.initializer?()=>vO(e.initializer):()=>qt,e.symbol.escapedName])),U(G(Hp(t),(r=>{var o;if(!(16777216&r.flags)||!(null==(o=null==e?void 0:e.symbol)?void 0:o.members))return!1;const i=e.parent.parent;return(r.escapedName!==n||!ON(i)||!Nv(i.children).length)&&!e.symbol.members.has(r.escapedName)&&rR(t,r.escapedName)})),(e=>[()=>Pt,e.escapedName]))),KS)}(e,t):t}}function jN(e,t,n){if(e&&Ww(e,465829888)){const r=cM(t);if(r&&1&n&&se(r.inferences,fO))return KN(e,r.nonFixingMapper);if(null==r?void 0:r.returnMapper){const t=KN(e,r.returnMapper);return 1048576&t.flags&&$y(t.types,Kt)&&$y(t.types,Jt)?BR(t,(e=>e!==Kt&&e!==Jt)):t}}return e}function KN(e,t){return 465829888&e.flags?AS(e,t):1048576&e.flags?mv(U(e.types,(e=>KN(e,t))),0):2097152&e.flags?Cv(U(e.types,(e=>KN(e,t)))):e}function JN(e,t){var n;if(67108864&e.flags)return;const r=iM(e,!t);if(r>=0)return Ro[r];const{parent:o}=e;switch(o.kind){case 260:case 169:case 172:case 171:case 208:return function(e,t){const n=e.parent;if(Yu(n)&&e===n.initializer){const e=ZD(n,t);if(e)return e;if(!(8&t)&&Vd(n.name)&&n.name.elements.length>0)return Ic(n.name,!0,!1)}}(e,t);case 219:case 253:return function(e,t){const n=fh(e);if(n){let e=nN(n,t);if(e){const t=Zy(n);if(1&t){const n=0!==(2&t);1048576&e.flags&&(e=BR(e,(e=>!!bW(1,e,n))));const r=bW(1,e,0!==(2&t));if(!r)return;e=r}if(2&t){const t=VR(e,tF);return t&&mv([t,yw(t)])}return e}}}(e,t);case 229:return function(e,t){const n=fh(e);if(n){const r=Zy(n);let o=nN(n,t);if(o){const t=0!==(2&r);return!e.asteriskToken&&1048576&o.flags&&(o=BR(o,(e=>!!bW(1,e,t)))),e.asteriskToken?o:bW(0,o,t)}}}(o,t);case 223:return function(e,t){const n=JN(e,t);if(n){const e=tF(n);return e&&mv([e,yw(e)])}}(o,t);case 213:case 214:return rN(o,e);case 170:return function(e){const t=hw(e);return t?Om(t):void 0}(o);case 216:case 234:return Bc(o.type)?JN(o,t):JE(o.type);case 226:return mN(e,t);case 303:case 304:return xN(o,t);case 305:return JN(o.parent,t);case 209:{const r=o,i=BN(r,t),a=Im(r.elements,e),s=(n=Hi(r)).spreadIndices??(n.spreadIndices=function(e){let t,n;for(let r=0;r<e.length;r++)RD(e[r])&&(t??(t=r),n=r);return{first:t,last:n}}(r.elements));return IN(i,a,r.elements.length,s.first,s.last)}case 227:return function(e,t){const n=e.parent;return e===n.whenTrue||e===n.whenFalse?JN(n,t):void 0}(e,t);case 239:return In.assert(228===o.parent.kind),function(e,t){if(215===e.parent.kind)return rN(e.parent,t)}(o.parent,e);case 217:if($h(o)){if(_A(o))return JE(hA(o));const e=yc(o);if(e&&!Bc(e.typeExpression.type))return JE(e.typeExpression.type)}return JN(o,t);case 235:return JN(o,t);case 238:return JE(o.type);case 277:return Vc(o);case 294:return LN(o,t);case 291:case 293:return kN(o,t);case 286:case 285:return function(e,t){if(WN(e)&&4!==t){const n=iM(e.parent,!t);if(n>=0)return Ro[n]}return oN(e,0)}(o,t);case 301:return function(e){return EN(gg(!1),DA(e))}(o)}}function XN(e){nM(e,JN(e,void 0),!0)}function nM(e,t,n){Io[Do]=e,Ro[Do]=t,Co[Do]=n,Do++}function oM(){Do--}function iM(e,t){for(let n=Do-1;n>=0;n--)if(e===Io[n]&&(t||!Co[n]))return n;return-1}function cM(e){for(let t=Lo-1;t>=0;t--)if(Ay(e,No[t]))return Mo[t]}function dM(e,t){return 0!==zk(t)?function(e,t){let n=tw(e,Mt);n=uM(t,rL(t),n);const r=eL(Gz.IntrinsicAttributes,t);Gl(r)||(n=pp(r,n));return n}(e,t):function(e,t){const n=rL(t),r=(o=n,oL(Gz.ElementAttributesPropertyNameContainer,o));var o;let i=void 0===r?tw(e,Mt):""===r?bm(e):function(e,t){if(e.compositeSignatures){const n=[];for(const r of e.compositeSignatures){const e=bm(r);if(zl(e))return e;const o=Ol(e,t);if(!o)return;n.push(o)}return Cv(n)}const n=bm(e);return zl(n)?n:Ol(n,t)}(e,r);if(!i)return r&&T(t.attributes.properties)&&Ai(t,Oa.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Ll(r)),Mt;if(i=uM(t,n,i),zl(i))return i;{let n=i;const r=eL(Gz.IntrinsicClassAttributes,t);if(!Gl(r)){const o=Sd(r.symbol),i=bm(e);let a;if(o){a=AS(r,eS(o,um([i],o,dm(o),$h(t))))}else a=r;n=pp(a,n)}const o=eL(Gz.IntrinsicAttributes,t);return Gl(o)||(n=pp(o,n)),n}}(e,t)}function uM(e,t,n){const r=(o=t)&&qi(o.exports,Gz.LibraryManagedAttributes,788968);var o;if(r){const t=function(e){if(JM(e.tagName))return Om(pP(e,lL(e)));const t=tO(e.tagName);if(128&t.flags){const n=sL(t,e);return n?Om(pP(e,n)):Rt}return t}(e),o=fL(r,$h(e),t,n);if(o)return o}return n}function vM(e){return IT(S,"noImplicitAny")?Ue(e,((e,t)=>e!==t&&e?tp(e.typeParameters,t.typeParameters)?function(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=eS(t.typeParameters,e.typeParameters));const o=e.declaration,i=function(e,t,n){const r=XP(e),o=XP(t),i=r>=o?e:t,a=i===e?t:e,s=i===e?r:o,l=YP(e)||YP(t),c=l&&!YP(i),d=new Array(s+(c?1:0));for(let u=0;u<s;u++){let p=KP(i,u);i===t&&(p=AS(p,n));let f=KP(a,u)||Mt;a===t&&(f=AS(f,n));const m=mv([p,f]),_=l&&!c&&u===s-1,h=u>=$P(i)&&u>=$P(a),g=u>=r?void 0:GP(e,u),y=u>=o?void 0:GP(t,u),v=ki(1|(h&&!_?16777216:0),(g===y?g:g?y?void 0:g:y)||`arg${u}`);v.links.type=_?ey(m):m,d[u]=v}if(c){const e=ki(1,"args");e.links.type=ey(HP(a,s)),a===t&&(e.links.type=AS(e.links.type,n)),d[s]=e}return d}(e,t,r),a=function(e,t,n){if(!e||!t)return e||t;const r=mv([sd(e),AS(sd(t),n)]);return VA(e,r)}(e.thisParameter,t.thisParameter,r),s=Math.max(e.minArgumentCount,t.minArgumentCount),l=Fu(o,n,a,i,void 0,void 0,s,167&(e.flags|t.flags));l.compositeKind=2097152,l.compositeSignatures=ce(2097152===e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(l.mapper=2097152===e.compositeKind&&e.mapper&&e.compositeSignatures?sS(e.mapper,r):r);return l}(e,t):void 0:e)):void 0}function bM(e,t){const n=G(wf(e,0),(e=>!function(e,t){let n=0;for(;n<t.parameters.length;n++){const e=t.parameters[n];if(e.initializer||e.questionToken||e.dotDotDotToken||pA(e))break}t.parameters.length&&vb(t.parameters[0])&&n--;return!YP(e)&&XP(e)<n}(e,t)));return 1===n.length?n[0]:vM(n)}function xM(e){return eA(e)||oh(e)?AM(e):void 0}function AM(e){In.assert(174!==e.kind||oh(e));const t=fm(e);if(t)return t;const n=BN(e,1);if(!n)return;if(!(1048576&n.flags))return bM(n,e);let r;const o=n.types;for(const i of o){const t=bM(i,e);if(t)if(r){if(!ax(r[0],t,!1,!0,!0,GS))return;r.push(t)}else r=[t]}return r?1===r.length?r[0]:zu(r[0],r):void 0}function RM(e){return 208===e.kind&&!!e.initializer||226===e.kind&&64===e.operatorToken.kind}function CM(e,t,n){const r=e.elements,o=r.length,i=[],a=[];XN(e);const s=my(e),l=aO(e),c=BN(e,void 0),d=function(e){const t=by(e.parent);return RD(t)&&ru(t.parent)}(e)||!!c&&OR(c,(e=>Tx(e)||wp(e)&&!e.nameType&&!!bS(e.target||e)));let u=!1;for(let p=0;p<o;p++){const o=r[p];if(230===o.kind){A<2&&KB(o,S.downlevelIteration?1536:1024);const e=bO(o.expression,t,n);if(_x(e))i.push(e),a.push(8);else if(s){const t=Jf(e,Vt)||YF(65,e,Pt,void 0,!1)||Mt;i.push(t),a.push(4)}else i.push($F(33,e,Pt,o.expression)),a.push(4)}else if(ie&&232===o.kind)u=!0,i.push(Wt),a.push(2);else{const r=sO(o,t,n);if(i.push(ac(r,!0,u)),a.push(u?2:1),d&&t&&2&t&&!(4&t)&&kS(o)){const t=cM(e);In.assert(t),sI(t,o,r)}}}return oM(),s?Dy(i,a):DM(n||l||d?Dy(i,a,l&&!(c&&OR(c,hx))):ey(i.length?mv(K(i,((e,t)=>8&a[t]?kb(e,Vt)||Tt:e)),2):z?on:wt,l))}function DM(e){if(!(4&RS(e)))return e;let t=e.literalType;return t||(t=e.literalType=R_(e),t.objectFlags|=147456),t}function NM(e){switch(e.kind){case 167:return function(e){return zw(MM(e),296)}(e);case 80:return nA(e.escapedText);case 9:case 11:return nA(e.text);default:return!1}}function MM(e){const t=Hi(e.expression);if(!t.resolvedType){if((WC(e.parent.parent)||Md(e.parent.parent)||cN(e.parent.parent))&&TD(e.expression)&&103===e.expression.operatorToken.kind&&177!==e.parent.kind&&178!==e.parent.kind)return t.resolvedType=Rt;if(t.resolvedType=bO(e.expression),TC(e.parent)&&!Vb(e.parent)&&CD(e.parent.parent)){const t=xD(n_(e.parent.parent));t&&(Hi(t).flags|=4096,Hi(e).flags|=32768,Hi(e.parent.parent).flags|=32768)}(98304&t.resolvedType.flags||!zw(t.resolvedType,402665900)&&!KS(t.resolvedType,fn))&&Ai(e,Oa.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function kM(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return nA(e.escapedName)||n&&Bl(n)&&NM(n.name)}function PM(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return uv(e)||n&&Bl(n)&&yC(n.name)&&zw(MM(n.name),4096)}function wM(e,t,n,r){const o=[];for(let i=t;i<n.length;i++){const e=n[i];(r===jt&&!PM(e)||r===Vt&&kM(e)||r===Zt&&PM(e))&&o.push(sd(n[i]))}return Hm(r,o.length?mv(o,2):Pt,aO(e))}function jM(e){In.assert(0!==(2097152&e.flags),"Should only get Alias here.");const t=Ui(e);if(!t.immediateTarget){const n=ha(e);if(!n)return In.fail();t.immediateTarget=Pa(n,!0)}return t.immediateTarget}function UM(e,t=0){var n;const r=my(e);!function(e,t){const n=new Map;for(const r of e.properties){if(305===r.kind){if(t){const e=Ty(r.expression);if(aD(e)||sD(e))return SG(r.expression,Oa.A_rest_element_cannot_contain_a_binding_pattern)}continue}const e=r.name;if(167===e.kind&&iG(e),304===r.kind&&!t&&r.objectAssignmentInitializer&&SG(r.equalsToken,Oa.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),81===e.kind&&SG(e,Oa.Private_identifiers_are_not_allowed_outside_class_bodies),vk(r)&&r.modifiers)for(const t of r.modifiers)!vd(t)||134===t.kind&&174===r.kind||SG(t,Oa._0_modifier_cannot_be_used_here,xm(t));else if(VL(r)&&r.modifiers)for(const t of r.modifiers)vd(t)&&SG(t,Oa._0_modifier_cannot_be_used_here,xm(t));let o;switch(r.kind){case 304:case 303:lG(r.exclamationToken,Oa.A_definite_assignment_assertion_is_not_permitted_in_this_context),sG(r.questionToken,Oa.An_object_member_cannot_be_declared_optional),9===e.kind&&AG(e),o=4;break;case 174:o=8;break;case 177:o=1;break;case 178:o=2;break;default:In.assertNever(r,"Unexpected syntax kind:"+r.kind)}if(!t){const t=CG(e);if(void 0===t)continue;const r=n.get(t);if(r)if(8&o&&8&r)SG(e,Oa.Duplicate_identifier_0,xm(e));else if(4&o&&4&r)SG(e,Oa.An_object_literal_cannot_have_multiple_properties_with_the_same_name,xm(e));else{if(!(3&o&&3&r))return SG(e,Oa.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===r||o===r)return SG(e,Oa.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(t,o|r)}else n.set(t,o)}}}(e,r);const i=z?Mf():void 0;let a=Mf(),s=[],l=Nn;XN(e);const c=BN(e,void 0),d=c&&c.pattern&&(206===c.pattern.kind||210===c.pattern.kind),u=aO(e),p=u?8:0,f=$h(e)&&!Yh(e),m=f?fc(e):void 0,_=!c&&f&&!m;let h=oe,g=!1,y=!1,v=!1,b=!1;for(const o of e.properties)o.name&&yC(o.name)&&MM(o.name);let E=0;for(const o of e.properties){let n=ps(o);const _=o.name&&167===o.name.kind?MM(o.name):void 0;if(303===o.kind||304===o.kind||oh(o)){let a=303===o.kind?lO(o,t):304===o.kind?sO(!r&&o.objectAssignmentInitializer?o.objectAssignmentInitializer:o.name,t):cO(o,t);if(f){const e=oc(o);e?($S(a,e,o),a=e):m&&m.typeExpression&&$S(a,JE(m.typeExpression),o)}h|=458752&RS(a);const s=_&&xA(_)?_:void 0,l=s?ki(4|n.flags,AA(s),4096|p):ki(4|n.flags,n.escapedName,p);if(s&&(l.links.nameType=s),r){(303===o.kind&&RM(o.initializer)||304===o.kind&&o.objectAssignmentInitializer)&&(l.flags|=16777216)}else if(d&&!(512&RS(c))){const e=kf(c,n.escapedName);e?l.flags|=16777216&e.flags:S.suppressExcessPropertyErrors||qf(c,jt)||Ai(o.name,Oa.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,rl(n),il(c))}if(l.declarations=n.declarations,l.parent=n.parent,n.valueDeclaration&&(l.valueDeclaration=n.valueDeclaration),l.links.type=a,l.links.target=n,n=l,null==i||i.set(l.escapedName,l),c&&2&t&&!(4&t)&&(303===o.kind||174===o.kind)&&kS(o)){const t=cM(e);In.assert(t);sI(t,303===o.kind?o.initializer:o,a)}}else{if(305===o.kind){A<2&&KB(o,2),s.length>0&&(l=vE(l,T(),e.symbol,h,u),s=[],a=Mf(),y=!1,v=!1,b=!1);const n=Tf(bO(o.expression,2&t));if(KM(n)){const t=yE(n,u);if(i&&QM(t,i,o),E=s.length,Gl(l))continue;l=vE(l,t,e.symbol,h,u)}else Ai(o,Oa.Spread_types_may_only_be_created_from_object_types),l=Rt;continue}In.assert(177===o.kind||178===o.kind),bz(o)}!_||8576&_.flags?a.set(n.escapedName,n):KS(_,fn)&&(KS(_,Vt)?v=!0:KS(_,Zt)?b=!0:y=!0,r&&(g=!0)),s.push(n)}if(oM(),d){const t=Cl(c.pattern.parent,(e=>260===e.kind||226===e.kind||169===e.kind));if(305!==Cl(e,(e=>e===t||305===e.kind)).kind)for(const e of Hp(c))a.get(e.escapedName)||kf(l,e.escapedName)||(16777216&e.flags||Ai(e.valueDeclaration||(null==(n=yt(e,Lf))?void 0:n.links.bindingElement),Oa.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),a.set(e.escapedName,e),s.push(e))}return Gl(l)?Rt:l!==Nn?(s.length>0&&(l=vE(l,T(),e.symbol,h,u),s=[],a=Mf(),y=!1,v=!1),VR(l,(e=>e===Nn?T():e))):T();function T(){const t=[];y&&t.push(wM(e,E,s,jt)),v&&t.push(wM(e,E,s,Vt)),b&&t.push(wM(e,E,s,Zt));const n=Os(e.symbol,a,o,o,t);return n.objectFlags|=131200|h,_&&(n.objectFlags|=4096),g&&(n.objectFlags|=512),r&&(n.pattern=e),n}}function KM(e){const t=NA(VR(e,cf));return!!(126615553&t.flags||3145728&t.flags&&M(t.types,KM))}function qM(e){return e.includes("-")}function JM(e){return nC(e)&&jv(e.escapedText)||qN(e)}function XM(e,t){return e.initializer?sO(e.initializer,t):qt}function $M(e,t){const n=[];for(const r of e.children)if(12===r.kind)r.containsOnlyTriviaWhiteSpaces||n.push(jt);else{if(294===r.kind&&!r.expression)continue;n.push(sO(r,t))}return n}function QM(e,t,n){for(const r of Hp(e))if(!(16777216&r.flags)){const e=t.get(r.escapedName);if(e){xx(Ai(e.valueDeclaration,Oa._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Ll(e.escapedName)),d_(n,Oa.This_spread_always_overwrites_this_property))}}}function ZM(e,t){return function(e,t=0){const n=e.attributes,r=JN(n,0),i=z?Mf():void 0;let a,s=Mf(),l=Mn,c=!1,d=!1,u=2048;const p=iL(rL(e));for(const o of n.properties){const e=o.symbol;if(VN(o)){const a=XM(o,t);u|=458752&RS(a);const l=ki(4|e.flags,e.escapedName);if(l.declarations=e.declarations,l.parent=e.parent,e.valueDeclaration&&(l.valueDeclaration=e.valueDeclaration),l.links.type=a,l.links.target=e,s.set(l.escapedName,l),null==i||i.set(l.escapedName,l),yA(o.name)===p&&(d=!0),r){const t=kf(r,e.escapedName);t&&t.declarations&&Ni(t)&&nC(o.name)&&Li(o.name,t.declarations,o.name.escapedText)}if(r&&2&t&&!(4&t)&&kS(o)){const e=cM(n);In.assert(e),sI(e,o.initializer.expression,a)}}else{In.assert(293===o.kind),s.size>0&&(l=vE(l,m(),n.symbol,u,!1),s=Mf());const e=Tf(bO(o.expression,2&t));zl(e)&&(c=!0),KM(e)?(l=vE(l,e,n.symbol,u,!1),i&&QM(e,i,o)):(Ai(o.expression,Oa.Spread_types_may_only_be_created_from_object_types),a=a?Cv([a,e]):e)}}c||s.size>0&&(l=vE(l,m(),n.symbol,u,!1));const f=284===e.parent.kind?e.parent:void 0;if(f&&f.openingElement===e&&Nv(f.children).length>0){const r=$M(f,t);if(!c&&p&&""!==p){d&&Ai(n,Oa._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Ll(p));const t=BN(e.attributes,void 0),i=t&&EN(t,p),a=ki(4,p);a.links.type=1===r.length?r[0]:i&&OR(i,Tx)?Dy(r):ey(mv(r)),a.valueDeclaration=UA.createPropertySignature(void 0,Ll(p),void 0,void 0),Vx(a.valueDeclaration,n),a.valueDeclaration.symbol=a;const s=Mf();s.set(p,a),l=vE(l,Os(n.symbol,s,o,o,o),n.symbol,u,!1)}}return c?Tt:a&&l!==Mn?Cv([a,l]):a||(l===Mn?m():l);function m(){u|=oe;const e=Os(n.symbol,s,o,o,o);return e.objectFlags|=131200|u,e}}(e.parent,t)}function eL(e,t){const n=rL(t),r=n&&ss(n),o=r&&qi(r,e,788968);return o?ou(o):Rt}function tL(e){const t=Hi(e);if(!t.resolvedSymbol){const n=eL(Gz.IntrinsicElements,e);if(Gl(n))return $&&Ai(e,Oa.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Ll(Gz.IntrinsicElements)),t.resolvedSymbol=_t;{if(!nC(e.tagName)&&!qN(e.tagName))return In.fail();const r=qN(e.tagName)?EA(e.tagName):e.tagName.escapedText,o=kf(n,r);if(o)return t.jsxFlags|=1,t.resolvedSymbol=o;const i=Vz(n,BE(Ll(r)));return i?(t.jsxFlags|=2,t.resolvedSymbol=i):Fl(n,r)?(t.jsxFlags|=2,t.resolvedSymbol=n.symbol):(Ai(e,Oa.Property_0_does_not_exist_on_type_1,TA(e.tagName),"JSX."+Gz.IntrinsicElements),t.resolvedSymbol=_t)}}return t.resolvedSymbol}function nL(e){const t=e&&Yf(e),n=t&&Hi(t);if(n&&!1===n.jsxImplicitImportContainer)return;if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;const r=PT(kT(S,t),S);if(!r)return;const o=1===Up(S)?Oa.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:Oa.Cannot_find_module_0_or_its_corresponding_type_declarations,i=S.importHelpers?1:0,a=null==t?void 0:t.imports[i];a&&In.assert(Sv(a)&&a.text===r,`Expected sourceFile.imports[${i}] to be the synthesized JSX runtime import`);const s=Ya(a||e,r,o,e),l=s&&s!==_t?us(Fa(s)):void 0;return n&&(n.jsxImplicitImportContainer=l||!1),l}function rL(e){const t=e&&Hi(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){let n=nL(e);if(!n||n===_t){const t=bi(e);n=ta(e,t,1920,void 0,t,!1)}if(n){const e=Fa(qi(ss(Fa(n)),Gz.JSX,1920));if(e&&e!==_t)return t&&(t.jsxNamespace=e),e}t&&(t.jsxNamespace=!1)}const n=Fa(Qh(Gz.JSX,1920,void 0));return n!==_t?n:void 0}function oL(e,t){const n=t&&qi(t.exports,e,788968),r=n&&ou(n),o=r&&Hp(r);if(o){if(0===o.length)return"";if(1===o.length)return o[0].escapedName;o.length>1&&n.declarations&&Ai(n.declarations[0],Oa.The_global_type_JSX_0_may_not_have_more_than_one_property,Ll(e))}}function iL(e){return oL(Gz.ElementChildrenAttributeNameContainer,e)}function aL(e,t){if(4&e.flags)return[io];if(128&e.flags){const n=sL(e,t);if(n){return[pP(t,n)]}return Ai(t,Oa.Property_0_does_not_exist_on_type_1,e.value,"JSX."+Gz.IntrinsicElements),o}const n=yf(e);let r=wf(n,1);return 0===r.length&&(r=wf(n,0)),0===r.length&&1048576&n.flags&&(r=Zu(U(n.types,(e=>aL(e,t))))),r}function sL(e,t){const n=eL(Gz.IntrinsicElements,t);if(!Gl(n)){const t=kf(n,Ml(e.value));if(t)return sd(t);const r=Jf(n,jt);return r||void 0}return Tt}function lL(e){var t;In.assert(JM(e.tagName));const n=Hi(e);if(!n.resolvedJsxElementAttributesType){const r=tL(e);if(1&n.jsxFlags)return n.resolvedJsxElementAttributesType=sd(r)||Rt;if(2&n.jsxFlags){const r=qN(e.tagName)?EA(e.tagName):e.tagName.escapedText;return n.resolvedJsxElementAttributesType=(null==(t=nm(eL(Gz.IntrinsicElements,e),r))?void 0:t.type)||Rt}return n.resolvedJsxElementAttributesType=Rt}return n.resolvedJsxElementAttributesType}function cL(e){const t=eL(Gz.ElementClass,e);if(!Gl(t))return t}function dL(e){return eL(Gz.Element,e)}function uL(e){const t=dL(e);if(t)return mv([t,Bt])}function pL(e){const t=rL(e);if(!t)return;const n=(r=t)&&qi(r.exports,Gz.ElementType,788968);var r;if(!n)return;const o=fL(n,$h(e));return o&&!Gl(o)?o:void 0}function fL(e,t,...n){const r=ou(e);if(524288&e.flags){const o=Ui(e).typeParameters;if(T(o)>=n.length){const i=um(n,o,n.length,t);return 0===T(i)?r:w_(e,i)}}if(T(r.typeParameters)>=n.length){return v_(r,um(n,r.typeParameters,n.length,t))}}function _L(e){const t=ju(e);var n;if(t&&function(e){(function(e){if(lD(e)&&qN(e.expression))return SG(e.expression,Oa.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(qN(e)&<(S)&&!jv(e.namespace.escapedText))SG(e,Oa.React_components_cannot_include_JSX_namespace_names)})(e.tagName),tG(e,e.typeArguments);const t=new Map;for(const n of e.attributes.properties){if(293===n.kind)continue;const{name:e,initializer:r}=n,o=yA(e);if(t.get(o))return SG(e,Oa.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(o,!0),r&&294===r.kind&&!r.expression)return SG(r,Oa.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),n=e,0===(S.jsx||0)&&Ai(n,Oa.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===dL(n)&&$&&Ai(n,Oa.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),!nL(e)){const n=si&&2===S.jsx?Oa.Cannot_find_name_0:void 0,r=bi(e),o=t?e.tagName:e;let i;if(GN(e)&&"null"===r||(i=ta(o,r,111551,n,r,!0)),i&&(i.isReferenced=-1,Re&&2097152&i.flags&&!ja(i)&&Ua(i)),GN(e)){const t=Ei(Yf(e));t&&ta(o,t,111551,n,t,!0)}}if(t){const t=e,n=hP(t);bP(n,e);const r=pL(t);if(void 0!==r){const e=t.tagName;wT(JM(e)?BE(TA(e)):bO(e),r,pi,e,Oa.Its_type_0_is_not_a_valid_JSX_element_type,(()=>{const t=xm(e);return cT(void 0,Oa._0_cannot_be_used_as_a_JSX_component,t)}))}else!function(e,t,n){if(1===e){const e=uL(n);e&&wT(t,e,pi,n.tagName,Oa.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(0===e){const e=cL(n);e&&wT(t,e,pi,n.tagName,Oa.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{const e=uL(n),o=cL(n);if(!e||!o)return;wT(t,mv([e,o]),pi,n.tagName,Oa.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){const e=xm(n.tagName);return cT(void 0,Oa._0_cannot_be_used_as_a_JSX_component,e)}}(zk(t),bm(n),t)}}function hL(e,t,n){if(524288&e.flags){if(Bp(e,t)||nm(e,t)||Tu(t)&&qf(e,jt)||n&&qM(t))return!0}else if(3145728&e.flags&&bL(e))for(const r of e.types)if(hL(r,t,n))return!0;return!1}function bL(e){return!!(524288&e.flags&&!(512&RS(e))||67108864&e.flags||1048576&e.flags&&se(e.types,bL)||2097152&e.flags&&M(e.types,bL))}function TL(e,t){if(function(e){if(e.expression&&gL(e.expression))SG(e.expression,Oa.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){const n=bO(e.expression,t);return e.dotDotDotToken&&n!==Tt&&!cx(n)&&Ai(e,Oa.JSX_spread_child_must_be_an_array_type),n}return Rt}function xL(e){return e.valueDeclaration?NG(e.valueDeclaration):0}function AL(e){if(8192&e.flags||4&mS(e))return!0;if($h(e.valueDeclaration)){const t=e.valueDeclaration.parent;return t&&TD(t)&&3===Eg(t)}}function IL(e,t,n,r,o,i=!0){return RL(e,t,n,r,o,i?166===e.kind?e.right:205===e.kind?e:208===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function RL(e,t,n,r,o,i){var a;const s=_S(o,n);if(t){if(A<2&&CL(o))return i&&Ai(i,Oa.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(64&s)return i&&Ai(i,Oa.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,rl(o),il(QT(o))),!1;if(!(256&s)&&(null==(a=o.declarations)?void 0:a.some(Pd)))return i&&Ai(i,Oa.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,rl(o)),!1}if(64&s&&CL(o)&&(Rh(e)||Dh(e)||rD(e.parent)&&Ch(e.parent.parent))){const t=IS(ms(o));if(t&&Cl(e,(e=>!!(RC(e)&&am(e.body)||TC(e))||!(!Md(e)&&!Ad(e))&&"quit")))return i&&Ai(i,Oa.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,rl(o),sv(t.name)),!1}if(!(6&s))return!0;if(2&s){return!!Pz(e,IS(ms(o)))||(i&&Ai(i,Oa.Property_0_is_private_and_only_accessible_within_class_1,rl(o),il(QT(o))),!1)}if(t)return!0;let l=Mz(e,(e=>ex(ou(ps(e)),o,n)));return!l&&(l=function(e){const t=function(e){const t=vh(e,!1,!1);return t&&Td(t)?yb(t):void 0}(e);let n=(null==t?void 0:t.type)&&JE(t.type);n&&262144&n.flags&&(n=$p(n));if(n&&7&RS(n))return pd(n);return}(e),l=l&&ex(l,o,n),256&s||!l)?(i&&Ai(i,Oa.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,rl(o),il(QT(o)||r)),!1):!!(256&s)||(262144&r.flags&&(r=r.isThisType?$p(r):lf(r)),!(!r||!fd(r,l))||(i&&Ai(i,Oa.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,rl(o),il(l),il(r)),!1))}function CL(e){return!!YT(e,(e=>!(8192&e.flags)))}function DL(e){return wL(bO(e),e)}function NL(e){return mR(e,50331648)}function ML(e){return NL(e)?PA(e):e}function LL(e,t){const n=EE(e)?c_(e):void 0;if(106!==e.kind)if(void 0!==n&&n.length<100){if(nC(e)&&"undefined"===n)return void Ai(e,Oa.The_value_0_cannot_be_used_here,"undefined");Ai(e,16777216&t?33554432&t?Oa._0_is_possibly_null_or_undefined:Oa._0_is_possibly_undefined:Oa._0_is_possibly_null,n)}else Ai(e,16777216&t?33554432&t?Oa.Object_is_possibly_null_or_undefined:Oa.Object_is_possibly_undefined:Oa.Object_is_possibly_null);else Ai(e,Oa.The_value_0_cannot_be_used_here,"null")}function kL(e,t){Ai(e,16777216&t?33554432&t?Oa.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:Oa.Cannot_invoke_an_object_which_is_possibly_undefined:Oa.Cannot_invoke_an_object_which_is_possibly_null)}function PL(e,t,n){if(z&&2&e.flags){if(EE(t)){const e=c_(t);if(e.length<100)return Ai(t,Oa._0_is_of_type_unknown,e),Rt}return Ai(t,Oa.Object_is_of_type_unknown),Rt}const r=fR(e,50331648);if(50331648&r){n(t,r);const o=PA(e);return 229376&o.flags?Rt:o}return e}function wL(e,t){return PL(e,t,LL)}function OL(e,t){const n=wL(e,t);if(16384&n.flags){if(EE(t)){const e=c_(t);if(nC(t)&&"undefined"===e)return Ai(t,Oa.The_value_0_cannot_be_used_here,e),n;if(e.length<100)return Ai(t,Oa._0_is_possibly_undefined,e),n}Ai(t,Oa.Object_is_possibly_undefined)}return n}function FL(e,t,n){return 64&e.flags?function(e,t){const n=bO(e.expression),r=WA(n,e.expression);return FA(qL(e,e.expression,wL(r,e.expression),e.name,t),e,r!==n)}(e,t):qL(e,e.expression,DL(e.expression),e.name,t,n)}function WL(e,t){const n=jh(e)&&bb(e.left)?wL(wD(e.left),e.left):DL(e.left);return qL(e,e.left,n,e.right,t)}function zL(e){for(;217===e.parent.kind;)e=e.parent;return ru(e.parent)&&e.parent.expression===e}function BL(e,t){for(let n=yh(t);n;n=_h(n)){const{symbol:t}=n,r=dv(t,e),o=t.members&&t.members.get(r)||t.exports&&t.exports.get(r);if(o)return o}}function GL(e){!function(e){if(!_h(e))return SG(e,Oa.Private_identifiers_are_not_allowed_outside_class_bodies);if(!JD(e.parent)){if(!Bh(e))return SG(e,Oa.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const t=TD(e.parent)&&103===e.parent.operatorToken.kind;if(!UL(e)&&!t)return SG(e,Oa.Cannot_find_name_0,kl(e))}}(e);const t=UL(e);return t&&lk(t,void 0,!1),Tt}function UL(e){if(!Bh(e))return;const t=Hi(e);return void 0===t.resolvedSymbol&&(t.resolvedSymbol=BL(e.escapedText,e)),t.resolvedSymbol}function HL(e,t){return kf(e,t.escapedName)}function KL(e,t){return(lc(t)||Rh(e)&&cc(t))&&vh(e,!0,!1)===dc(t)}function qL(e,t,n,r,o,i){const a=Hi(t).resolvedSymbol,s=fy(e),l=yf(0!==s||zL(e)?YA(n):n),c=zl(l)||l===rn;let d,u;if(rC(r)){A<99&&(0!==s&&KB(e,1048576),1!==s&&KB(e,524288));const t=BL(r.escapedText,r);if(s&&t&&t.valueDeclaration&&AC(t.valueDeclaration)&&SG(r,Oa.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,kl(r)),c){if(t)return Gl(l)?Rt:l;if(void 0===yh(r))return SG(r,Oa.Private_identifiers_are_not_allowed_outside_class_bodies),Tt}if(d=t&&HL(n,t),void 0===d){if(function(e,t,n){let r;const o=Hp(e);o&&x(o,(e=>{const n=e.valueDeclaration;if(n&&Bl(n)&&rC(n.name)&&n.name.escapedText===t.escapedText)return r=e,!0}));const i=sa(t);if(r){const o=In.checkDefined(r.valueDeclaration),a=In.checkDefined(_h(o));if(null==n?void 0:n.valueDeclaration){const r=n.valueDeclaration,s=_h(r);if(In.assert(!!s),Cl(s,(e=>a===e)))return xx(Ai(t,Oa.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,i,il(e)),d_(r,Oa.The_shadowing_declaration_of_0_is_defined_here,i),d_(o,Oa.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,i)),!0}return Ai(t,Oa.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,i,sa(a.name||Dz)),!0}return!1}(n,r,t))return Rt;const e=yh(r);e&&Zf(Yf(e),S.checkJs)&&SG(r,Oa.Private_field_0_must_be_declared_in_an_enclosing_class,kl(r))}else{65536&d.flags&&!(32768&d.flags)&&1!==s&&Ai(e,Oa.Private_accessor_was_defined_without_a_getter)}}else{if(c)return nC(t)&&a&&vD(a,e),Gl(l)?Rt:l;d=kf(l,r.escapedText,Gw(l),166===e.kind)}if(nC(t)&&a&&(Kp(S)||!d||!(EB(d)||8&d.flags&&306===e.parent.kind)||Zp(S)&&gD(e))&&vD(a,e),d){const n=oz(d,r);if(Ni(n)&&ib(e,n)&&n.declarations&&Li(r,n.declarations,r.escapedText),function(e,t,n){const{valueDeclaration:r}=e;if(!r||Yf(t).isDeclarationFile)return;let o;const i=kl(n);!$L(t)||function(e){return TC(e)&&!qb(e)&&e.questionToken}(r)||wS(t)&&wS(t.expression)||Xi(r,n)||AC(r)&&256&DG(r)||!D&&function(e){if(!(32&e.parent.flags))return!1;let t=sd(e.parent);for(;;){if(t=t.symbol&&YL(t),!t)return!1;const n=kf(t,e.escapedName);if(n&&n.valueDeclaration)return!0}}(e)?263!==r.kind||183===t.parent.kind||33554432&r.flags||Xi(r,n)||(o=Ai(n,Oa.Class_0_used_before_its_declaration,i)):o=Ai(n,Oa.Property_0_is_used_before_its_initialization,i);o&&xx(o,d_(r,Oa._0_is_declared_here,i))}(d,e,r),lk(d,e,ck(t,a)),Hi(e).resolvedSymbol=d,IL(e,108===t.kind,vS(e),l,d),Lw(e,d,s))return Ai(r,Oa.Cannot_assign_to_0_because_it_is_a_read_only_property,kl(r)),Rt;u=KL(e,d)?xt:i||yS(e)?od(d):sd(d)}else{const t=rC(r)||0!==s&&pb(n)&&!oA(n)?void 0:nm(l,r.escapedText);if(!t||!t.type){const t=JL(e,n.symbol,!0);return!t&&nb(n)?Tt:n.symbol===_e?(_e.exports.has(r.escapedText)&&418&_e.exports.get(r.escapedText).flags?Ai(r,Oa.Property_0_does_not_exist_on_type_1,Ll(r.escapedText),il(n)):$&&Ai(r,Oa.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,il(n)),Tt):(r.escapedText&&!ca(e)&&QL(r,oA(n)?l:n,t),Rt)}t.isReadonly&&(my(e)||xy(e))&&Ai(e,Oa.Index_signature_in_type_0_only_permits_reading,il(l)),u=S.noUncheckedIndexedAccess&&!my(e)?mv([t.type,Ot]):t.type,S.noPropertyAccessFromIndexSignature&&lD(e)&&Ai(r,Oa.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Ll(r.escapedText)),t.declaration&&Mi(t.declaration)&&Li(r,[t.declaration],r.escapedText)}return XL(e,d,u,r,o)}function JL(e,t,n){var r;const o=Yf(e);if(o&&void 0===S.checkJs&&void 0===o.checkJsDirective&&(1===o.scriptKind||2===o.scriptKind)){const i=x(null==t?void 0:t.declarations,Yf),a=!(null==t?void 0:t.valueDeclaration)||!Md(t.valueDeclaration)||(null==(r=t.valueDeclaration.heritageClauses)?void 0:r.length)||Oh(!1,t.valueDeclaration);return!(o!==i&&i&&Ki(i))&&!(n&&t&&32&t.flags&&a)&&!(e&&n&&lD(e)&&110===e.expression.kind&&a)}return!1}function XL(e,t,n,r,o){const i=fy(e);if(1===i)return zA(n,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&n.flags)&&!hz(t.declarations))return n;if(n===xt)return _c(e,t);n=fD(n,e,o);let a=!1;if(z&&X&&wS(e)&&110===e.expression.kind){const n=t&&t.valueDeclaration;if(n&&jW(n)&&!jb(n)){const t=mC(e);176!==t.kind||t.parent!==n.parent||33554432&n.flags||(a=!0)}}else z&&t&&t.valueDeclaration&&lD(t.valueDeclaration)&&Mg(t.valueDeclaration)&&mC(e)===mC(t.valueDeclaration)&&(a=!0);const s=fC(e,n,a?kA(n):n);return a&&!vT(n)&&vT(s)?(Ai(r,Oa.Property_0_is_used_before_being_assigned,rl(t)),n):i?Ux(s):s}function $L(e){return!!Cl(e,(e=>{switch(e.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return!(!BD(e.parent)||!IC(e.parent.parent))||"quit";default:return!Bh(e)&&"quit"}}))}function YL(e){const t=jd(e);if(0!==t.length)return Cv(t)}function QL(e,t,n){let r,o;if(!rC(e)&&1048576&t.flags&&!(402784252&t.flags))for(const a of t.types)if(!kf(a,e.escapedText)&&!nm(a,e.escapedText)){r=cT(r,Oa.Property_0_does_not_exist_on_type_1,o_(e),il(a));break}if(ZL(e.escapedText,t)){const n=o_(e),o=il(t);r=cT(r,Oa.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,n,o,o+"."+n)}else{const i=qO(t);if(i&&kf(i,e.escapedText))r=cT(r,Oa.Property_0_does_not_exist_on_type_1,o_(e),il(t)),o=d_(e,Oa.Did_you_forget_to_use_await);else{const i=o_(e),a=il(t),s=function(e,t){const n=yf(t).symbol;if(!n)return;const r=wl(n),o=fp().get(r);if(o)for(const[i,a]of o)if(F(a,e))return i}(i,t);if(void 0!==s)r=cT(r,Oa.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,i,a,s);else{const s=nk(e,t);if(void 0!==s){const e=wl(s);r=cT(r,n?Oa.Property_0_may_not_exist_on_type_1_Did_you_mean_2:Oa.Property_0_does_not_exist_on_type_1_Did_you_mean_2,i,a,e),o=s.valueDeclaration&&d_(s.valueDeclaration,Oa._0_is_declared_here,e)}else{const e=function(e){return S.lib&&!S.lib.includes("dom")&&(t=e,n=e=>e.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Ll(e.symbol.escapedName)),3145728&t.flags?M(t.types,n):n(t))&&gT(e);var t,n}(t)?Oa.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:Oa.Property_0_does_not_exist_on_type_1;r=cT(Cf(r,t),e,i,a)}}}}const i=f_(Yf(e),e,r);o&&xx(i,o),Ii(!n||r.code!==Oa.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,i)}function ZL(e,t){const n=t.symbol&&kf(sd(t.symbol),e);return void 0!==n&&!!n.valueDeclaration&&jb(n.valueDeclaration)}function ek(e,t){return sk(e,Hp(t),106500)}function nk(e,t){let n=Hp(t);if("string"!==typeof e){const r=e.parent;lD(r)&&(n=G(n,(e=>dk(r,t,e)))),e=kl(e)}return sk(e,n,111551)}function rk(e,t){const n=ht(e)?e:kl(e),r=Hp(t);return("for"===n?L(r,(e=>"htmlFor"===wl(e))):"class"===n?L(r,(e=>"className"===wl(e))):void 0)??sk(n,r,111551)}function ok(e,t){const n=nk(e,t);return n&&wl(n)}function ik(e,t,n){In.assert(void 0!==t,"outername should always be defined");return na(e,t,n,void 0,t,!1,!1,!0,((e,n,r)=>{In.assertEqual(t,n,"name should equal outerName");const o=qi(e,n,r);if(o)return o;let i;if(e===fe){i=Z(["string","number","boolean","object","bigint","symbol"],(t=>e.has(t.charAt(0).toUpperCase()+t.slice(1))?ki(524288,t):void 0)).concat(Ye(e.values()))}else i=Ye(e.values());return sk(Ll(n),i,r)}))}function ak(e,t){return t.exports&&sk(kl(e),rs(t),2623475)}function sk(e,t,n){return Xt(e,t,(function(e){const t=wl(e);if(dn(t,'"'))return;if(e.flags&n)return t;if(2097152&e.flags){const r=function(e){if(Ui(e).aliasTarget!==gt)return Wa(e)}(e);if(r&&r.flags&n)return t}return}))}function lk(e,t,n){const r=e&&106500&e.flags&&e.valueDeclaration;if(!r)return;const o=Bb(r,2),i=e.valueDeclaration&&Bl(e.valueDeclaration)&&rC(e.valueDeclaration.name);if((o||i)&&(!t||!yS(t)||65536&e.flags)){if(n){const n=Cl(t,Ad);if(n&&n.symbol===e)return}(1&mS(e)?Ui(e).target:e).isReferenced=-1}}function ck(e,t){return 110===e.kind||!!t&&EE(e)&&t===JI(SE(e))}function dk(e,t,n){return pk(e,211===e.kind&&108===e.expression.kind,!1,t,n)}function uk(e,t,n,r){if(zl(r))return!0;const o=kf(r,n);return!!o&&pk(e,t,!1,r,o)}function pk(e,t,n,r,o){if(zl(r))return!0;if(o.valueDeclaration&&md(o.valueDeclaration)){const t=_h(o.valueDeclaration);return!wc(e)&&!!Cl(e,(e=>e===t))}return RL(e,t,n,r,o)}function fk(e){const t=e.initializer;if(261===t.kind){const e=t.declarations[0];if(e&&!Vd(e.name))return ps(e)}else if(80===t.kind)return JI(t)}function mk(e,t){return 64&e.flags?function(e,t){const n=bO(e.expression),r=WA(n,e.expression);return FA(_k(e,wL(r,e.expression),t),e,r!==n)}(e,t):_k(e,DL(e.expression),t)}function _k(e,t,n){const r=0!==fy(e)||zL(e)?YA(t):t,o=e.argumentExpression,i=bO(o);if(Gl(r)||r===rn)return r;if(Gw(r)&&!np(o))return Ai(o,Oa.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Rt;const a=function(e){const t=Ty(e);if(80===t.kind){const r=JI(t);if(3&r.flags){let t=e,o=e.parent;for(;o;){if(249===o.kind&&t===o.statement&&fk(o)===r&&1===Kf(n=gO(o.expression)).length&&qf(n,Vt))return!0;t=o,o=o.parent}}}var n;return!1}(o)?Vt:i,s=kb(r,a,my(e)?4|(pb(r)&&!oA(r)?2:0):32,e)||Rt;return zO(XL(e,Hi(e).resolvedSymbol,s,o,n),e)}function hk(e){return ru(e)||pD(e)||ju(e)}function gk(e){return hk(e)&&x(e.typeArguments,gz),215===e.kind?bO(e.template):ju(e)?bO(e.attributes):TD(e)?bO(e.left):ru(e)&&x(e.arguments,(e=>{bO(e)})),io}function Ek(e){return gk(e),ao}function Sk(e){return!!e&&(230===e.kind||237===e.kind&&e.isSpread)}function Tk(e){return P(e,Sk)}function xk(e){return!!(16384&e.flags)}function Ak(e){return!!(49155&e.flags)}function Ik(e,t,n,r=!1){let o,i=!1,a=XP(n),s=$P(n);if(215===e.kind)if(o=t.length,228===e.template.kind){const t=Fe(e.template.templateSpans);i=im(t.literal)||!!t.literal.isUnterminated}else{const t=e.template;In.assert(15===t.kind),i=!!t.isUnterminated}else if(170===e.kind)o=Hk(e,n);else if(226===e.kind)o=1;else if(ju(e)){if(i=e.attributes.end===e.end,i)return!0;o=0===s?t.length:1,a=0===t.length?a:1,s=Math.min(s,1)}else{if(!e.arguments)return In.assert(214===e.kind),0===$P(n);{o=r?t.length+1:t.length,i=e.arguments.end===e.end;const a=Tk(t);if(a>=0)return a>=$P(n)&&(YP(n)||a<XP(n))}}if(!YP(n)&&o>a)return!1;if(i||o>=s)return!0;for(let l=o;l<s;l++){if(131072&BR(HP(n,l),$h(e)&&!z?Ak:xk).flags)return!1}return!0}function Ck(e,t){const n=T(e.typeParameters),r=dm(e.typeParameters);return!se(t)||t.length>=r&&t.length<=n}function Dk(e,t){let n;return!!(e.target&&(n=KP(e.target,t))&&ub(n))}function Nk(e){return Lk(e,0,!1)}function Mk(e){return Lk(e,0,!1)||Lk(e,1,!1)}function Lk(e,t,n){if(524288&e.flags){const r=Fp(e);if(n||0===r.properties.length&&0===r.indexInfos.length){if(0===t&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===t&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function kk(e,t,n,r){const o=oI(e.typeParameters,e,0,r),i=QP(t),a=n&&(i&&262144&i.flags?n.nonFixingMapper:n.mapper);return nI(a?uS(t,a):t,e,((e,t)=>{wI(o.inferences,e,t)})),n||rI(t,e,((e,t)=>{wI(o.inferences,e,t,128)})),Am(e,KI(o),$h(t.declaration))}function Pk(e){if(!e)return en;const t=bO(e);return ME(e)?t:Oc(e.parent)?PA(t):wc(e.parent)?OA(t):t}function wk(e,t,n,r,o){if(ju(e))return function(e,t,n,r){const o=dM(t,e),i=eO(e.attributes,o,r,n);return wI(r.inferences,i,o),KI(r)}(e,t,r,o);if(170!==e.kind&&226!==e.kind){const n=M(t.typeParameters,(e=>!!ff(e))),r=JN(e,n?8:0);if(r){const i=bm(t);if(pI(i)){const a=cM(e);if(!(!n&&JN(e,8)!==r)){const e=uI(function(e,t=0){return e&&iI(U(e.inferences,dI),e.signature,e.flags|t,e.compareTypes)}(a,1)),t=AS(r,e),n=Nk(t),s=n&&n.typeParameters?Om(Rm(n,n.typeParameters)):t;wI(o.inferences,s,i,128)}const s=oI(t.typeParameters,t,o.flags),l=AS(r,a&&a.returnMapper);wI(s.inferences,l,i),o.returnMapper=se(s.inferences,pO)?uI(function(e){const t=G(e.inferences,pO);return t.length?iI(U(t,dI),e.signature,e.flags,e.compareTypes):void 0}(s)):void 0}}}const i=ZP(t),a=i?Math.min(XP(t)-1,n.length):n.length;if(i&&262144&i.flags){const e=L(o.inferences,(e=>e.typeParameter===i));e&&(e.impliedArity=P(n,Sk,a)<0?n.length-a:void 0)}const s=gm(t);if(s&&pI(s)){const t=jk(e);wI(o.inferences,Pk(t),s)}for(let l=0;l<a;l++){const e=n[l];if(232!==e.kind){const n=HP(t,l);if(pI(n)){const t=eO(e,n,o,r);wI(o.inferences,t,n)}}}if(i&&pI(i)){const e=Fk(n,a,n.length,i,o,r);wI(o.inferences,e,i)}return KI(o)}function Ok(e){return 1048576&e.flags?VR(e,Ok):1&e.flags||fx(lf(e)||e)?e:tA(e)?Dy(qy(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):Dy([e],[8])}function Fk(e,t,n,r,o,i){const a=ef(r);if(t>=n-1){const t=e[n-1];if(Sk(t)){const e=237===t.kind?t.type:eO(t.expression,r,o,i);return _x(e)?Ok(e):ey($F(33,e,Pt,230===t.kind?t.expression:t),a)}}const s=[],l=[],c=[];for(let d=t;d<n;d++){const u=e[d];if(Sk(u)){const e=237===u.kind?u.type:bO(u.expression);_x(e)?(s.push(e),l.push(8)):(s.push($F(33,e,Pt,230===u.kind?u.expression:u)),l.push(4))}else{const e=tA(r)?IN(r,d-t,n-t)||Mt:Mb(r,GE(d-t),256),c=eO(u,e,o,i),p=a||Ww(e,406978556);s.push(p?WE(c):Kx(c)),l.push(1)}237===u.kind&&u.tupleNameSource?c.push(u.tupleNameSource):c.push(void 0)}return Dy(s,l,a&&!OR(r,hx),c)}function Wk(e,t,n,r){const o=$h(e.declaration),i=e.typeParameters,a=um(U(t,JE),i,dm(i),o);let s;for(let l=0;l<t.length;l++){In.assert(void 0!==i[l],"Should not call checkTypeArguments with too many type arguments");const e=$p(i[l]);if(e){const o=n&&r?()=>cT(void 0,Oa.Type_0_does_not_satisfy_the_constraint_1):void 0,c=r||Oa.Type_0_does_not_satisfy_the_constraint_1;s||(s=eS(i,a));const d=a[l];if(!$S(d,Pu(AS(e,s),d),n?t[l]:void 0,c,o))return}}return a}function zk(e){if(JM(e.tagName))return 2;const t=yf(bO(e.tagName));return T(wf(t,1))?0:T(wf(t,0))?1:2}function Bk(e){return LD(e=Ty(e))?Ty(e.expression):e}function Gk(e,t,n,r,i,a,s){const l={errors:void 0,skipLogging:!0};if(ju(e))return function(e,t,n,r,o,i,a){const s=dM(t,e),l=eO(e.attributes,s,void 0,r),c=4&r?HA(l):l;return function(){var t;if(nL(e))return!0;const n=!WN(e)&&!FN(e)||JM(e.tagName)||qN(e.tagName)?void 0:bO(e.tagName);if(!n)return!0;const r=wf(n,0);if(!T(r))return!0;const i=VB(e);if(!i)return!0;const s=qa(i,111551,!0,!1,e);if(!s)return!0;const l=wf(sd(s),0);if(!T(l))return!0;let c=!1,d=0;for(const e of l){const t=wf(HP(e,0),0);if(T(t))for(const e of t){if(c=!0,YP(e))return!0;const t=XP(e);t>d&&(d=t)}}if(!c)return!0;let u=1/0;for(const e of r){const t=$P(e);t<u&&(u=t)}if(u<=d)return!0;if(o){const n=d_(e.tagName,Oa.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,c_(e.tagName),u,c_(i),d),r=null==(t=Xz(e.tagName))?void 0:t.valueDeclaration;r&&xx(n,d_(r,Oa._0_is_declared_here,c_(e.tagName))),a&&a.skipLogging&&(a.errors||(a.errors=[])).push(n),a.skipLogging||si.add(n)}return!1}()&&QS(c,s,n,o?e.tagName:void 0,e.attributes,void 0,i,a)}(e,n,r,i,a,s,l)?void 0:(In.assert(!a||!!l.errors,"jsx should have errors when reporting errors"),l.errors||o);const c=gm(n);if(c&&c!==en&&!(uD(e)||dD(e)&&Ih(e.expression))){const t=jk(e),n=Pk(t),i=a?t||e:void 0,d=Oa.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!wT(n,c,r,i,d,s,l))return In.assert(!a||!!l.errors,"this parameter should have errors when reporting errors"),l.errors||o}const d=Oa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,u=ZP(n),p=u?Math.min(XP(n)-1,t.length):t.length;for(let m=0;m<p;m++){const e=t[m];if(232!==e.kind){const t=HP(n,m),c=eO(e,t,void 0,i),u=4&i?HA(c):c,p=Bk(e);if(!QS(u,t,r,a?p:void 0,p,d,s,l))return In.assert(!a||!!l.errors,"parameter should have errors when reporting errors"),f(e,u,t),l.errors||o}}if(u){const n=Fk(t,p,t.length,u,void 0,i),s=t.length-p,c=a?0===s?e:1===s?Bk(t[p]):Bx(Vk(e,n),t[p].pos,t[t.length-1].end):void 0;if(!wT(n,u,r,c,d,void 0,l))return In.assert(!a||!!l.errors,"rest parameter should have errors when reporting errors"),f(c,n,u),l.errors||o}return;function f(e,t,n){if(e&&a&&l.errors&&l.errors.length){if(KO(n))return;const o=KO(t);o&&AT(o,n,r)&&xx(l.errors[0],d_(e,Oa.Did_you_forget_to_use_await))}}}function jk(e){if(226===e.kind)return e.right;const t=213===e.kind?e.expression:215===e.kind?e.tag:170!==e.kind||C?void 0:e.expression;if(t){const e=EL(t);if(wS(e))return e.expression}}function Vk(e,t,n,r){const o=Rk.createSyntheticExpression(t,n,r);return yk(o,e),Vx(o,e),o}function Uk(e){if(215===e.kind){const t=e.template,n=[Vk(t,Mr||(Mr=ng("TemplateStringsArray",0,!0)||Nn))];return 228===t.kind&&x(t.templateSpans,(e=>{n.push(e.expression)})),n}if(170===e.kind)return function(e){const t=e.expression,n=hw(e);if(n){const e=[];for(const r of n.parameters){const n=sd(r);e.push(Vk(t,n))}return e}return In.fail()}(e);if(226===e.kind)return[e.left];if(ju(e))return e.attributes.properties.length>0||WN(e)&&e.parent.children.length>0?[e.attributes]:o;const t=e.arguments||o,n=Tk(t);if(n>=0){const e=t.slice(0,n);for(let r=n;r<t.length;r++){const n=t[r],o=230===n.kind&&(So?bO(n.expression):tO(n.expression));o&&tA(o)?x(qy(o),((t,r)=>{var i;const a=o.target.elementFlags[r],s=Vk(n,4&a?ey(t):t,!!(12&a),null==(i=o.target.labeledElementDeclarations)?void 0:i[r]);e.push(s)})):e.push(n)}return e}return t}function Hk(e,t){return S.experimentalDecorators?function(e,t){switch(e.parent.kind){case 263:case 231:return 1;case 172:return qb(e.parent)?3:2;case 174:case 177:case 178:return 0===A||t.parameters.length<=2?2:3;case 169:return 3;default:return In.fail()}}(e,t):2}function Kk(e){const t=Yf(e),{start:n,length:r}=S_(t,lD(e.expression)?e.expression.name:e.expression);return{start:n,length:r,sourceFile:t}}function qk(e,t,...n){if(dD(e)){const{sourceFile:r,start:o,length:i}=Kk(e);return"message"in t?iT(r,o,i,t,...n):g_(r,t)}return"message"in t?d_(e,t,...n):f_(Yf(e),e,t)}function Jk(e,t,n,r){var o;const i=Tk(n);if(i>-1)return d_(n[i],Oa.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let a,s=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,c=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY;for(const _ of t){const e=$P(_),t=XP(_);e<s&&(s=e,a=_),l=Math.max(l,t),e<n.length&&e>c&&(c=e),n.length<t&&t<d&&(d=t)}const u=se(t,YP),p=u?s:s<l?s+"-"+l:s,f=!u&&1===p&&0===n.length&&function(e){if(!dD(e)||!nC(e.expression))return!1;const t=ta(e.expression,e.expression.escapedText,111551,void 0,void 0,!1),n=null==t?void 0:t.valueDeclaration;if(!n||!bC(n)||!eA(n.parent)||!uD(n.parent.parent)||!nC(n.parent.parent.expression))return!1;const r=Dg(!1);return!!r&&Xz(n.parent.parent.expression,!0)===r}(e);if(f&&$h(e))return qk(e,Oa.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);const m=EC(e)?u?Oa.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:Oa.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:u?Oa.Expected_at_least_0_arguments_but_got_1:f?Oa.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:Oa.Expected_0_arguments_but_got_1;if(s<n.length&&n.length<l){if(r){let t=cT(void 0,Oa.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,n.length,c,d);return t=cT(t,r),qk(e,t)}return qk(e,Oa.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,n.length,c,d)}if(n.length<s){let t;if(r){let o=cT(void 0,m,p,n.length);o=cT(o,r),t=qk(e,o)}else t=qk(e,m,p,n.length);const i=null==(o=null==a?void 0:a.declaration)?void 0:o.parameters[a.thisParameter?n.length+1:n.length];if(i){return xx(t,d_(i,...Vd(i.name)?[Oa.An_argument_matching_this_binding_pattern_was_not_provided]:ip(i)?[Oa.Arguments_for_the_rest_parameter_0_were_not_provided,kl(SE(i.name))]:[Oa.An_argument_for_0_was_not_provided,i.name?kl(SE(i.name)):n.length]))}return t}{const t=UA.createNodeArray(n.slice(l)),o=Pe(t).pos;let i=Fe(t).end;if(i===o&&i++,Bx(t,o,i),r){let o=cT(void 0,m,p,n.length);return o=cT(o,r),m_(Yf(e),t,o)}return u_(Yf(e),t,m,p,n.length)}}function Xk(e,t,n,r,i,a){const s=215===e.kind,l=170===e.kind,c=ju(e),d=226===e.kind,u=!v&&!n;let p;l||d||M_(e)||(p=e.typeArguments,(s||c||108!==e.expression.kind)&&x(p,gz));const f=n||[];!function(e,t,n){let r,o,i,a,s=0,l=-1;In.assert(!t.length);for(const c of e){const e=c.declaration&&ps(c.declaration),d=c.declaration&&c.declaration.parent;o&&e!==o?(i=s=t.length,r=d):r&&d===r?i+=1:(r=d,i=s),o=e,eB(c)?(l++,a=l,s++):a=i,t.splice(a,0,n?Gu(c,n):c)}}(t,f,i),In.assert(f.length,"Revert #54442 and add a testcase with whatever triggered this");const m=Uk(e),_=1===f.length&&!f[0].typeParameters;let h,g,y,b,E=l||_||!se(m,kS)?0:4;const S=!!(16&r)&&213===e.kind&&e.arguments.hasTrailingComma;if(f.length>1&&(b=R(f,di,_,S)),b||(b=R(f,pi,_,S)),b)return b;if(b=function(e,t,n,r,o){return In.assert(t.length>0),bz(e),r||1===t.length||t.some((e=>!!e.typeParameters))?function(e,t,n,r){const o=function(e,t){let n=-1,r=-1;for(let o=0;o<e.length;o++){const i=e[o],a=XP(i);if(YP(i)||a>=t)return o;a>r&&(r=a,n=o)}return n}(t,void 0===he?n.length:he),i=t[o],{typeParameters:a}=i;if(!a)return i;const s=hk(e)?e.typeArguments:void 0,l=s?Cm(i,function(e,t,n){const r=e.map(tB);for(;r.length>t.length;)r.pop();for(;r.length<t.length;)r.push(ff(t[r.length])||$p(t[r.length])||VI(n));return r}(s,a,$h(e))):function(e,t,n,r,o){const i=oI(t,n,$h(e)?2:0),a=wk(e,n,r,12|o,i);return Cm(n,a)}(e,a,i,n,r);return t[o]=l,l}(e,t,n,o):function(e){const t=Z(e,(e=>e.thisParameter));let n;t.length&&(n=Yk(t,t.map(zP)));const{min:r,max:o}=Ax(e,$k),i=[];for(let l=0;l<o;l++){const t=Z(e,(e=>Zz(e)?l<e.parameters.length-1?e.parameters[l]:Fe(e.parameters):l<e.parameters.length?e.parameters[l]:void 0));In.assert(0!==t.length),i.push(Yk(t,Z(e,(e=>KP(e,l)))))}const a=Z(e,(e=>Zz(e)?Fe(e.parameters):void 0));let s=128;if(0!==a.length){const t=ey(mv(Z(e,Tm),2));i.push(Qk(a,t)),s|=1}e.some(eB)&&(s|=2);return Fu(e[0].declaration,void 0,n,i,Cv(e.map(bm)),void 0,r,s)}(t)}(e,f,m,!!n,r),Hi(e).resolvedSignature=b,u)if(!a&&d&&(a=Oa.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),h)if(1===h.length||h.length>3){const t=h[h.length-1];let n;h.length>3&&(n=cT(n,Oa.The_last_overload_gave_the_following_error),n=cT(n,Oa.No_overload_matches_this_call)),a&&(n=cT(n,a));const r=Gk(e,m,t,pi,0,!0,(()=>n));if(r)for(const e of r)t.declaration&&h.length>3&&xx(e,d_(t.declaration,Oa.The_last_overload_is_declared_here)),I(t,e),si.add(e);else In.fail("No error for last overload signature")}else{const t=[];let n=0,r=Number.MAX_VALUE,o=0,i=0;for(const a of h){const s=Gk(e,m,a,pi,0,!0,(()=>cT(void 0,Oa.Overload_0_of_1_2_gave_the_following_error,i+1,f.length,ol(a))));s?(s.length<=r&&(r=s.length,o=i),n=Math.max(n,s.length),t.push(s)):In.fail("No error for 3 or fewer overload signatures"),i++}const s=n>1?t[o]:q(t);In.assert(s.length>0,"No errors reported for 3 or fewer overload signatures");let l=cT(U(s,y_),Oa.No_overload_matches_this_call);a&&(l=cT(l,a));const c=[...J(s,(e=>e.relatedInformation))];let d;if(M(s,(e=>e.start===s[0].start&&e.length===s[0].length&&e.file===s[0].file))){const{file:e,start:t,length:n}=s[0];d={file:e,start:t,length:n,code:l.code,category:l.category,messageText:l,relatedInformation:c}}else d=f_(Yf(e),ru(A=e)?lD(A.expression)?A.expression.name:A.expression:pD(A)?lD(A.tag)?A.tag.name:A.tag:ju(A)?A.tagName:A,l,c);I(h[0],d),si.add(d)}else if(g)si.add(Jk(e,[g],m,a));else if(y)Wk(y,e.typeArguments,!0,a);else{const n=G(t,(e=>Ck(e,p)));0===n.length?si.add(function(e,t,n,r){const o=n.length;if(1===t.length){const i=t[0],a=dm(i.typeParameters),s=T(i.typeParameters);if(r){let t=cT(void 0,Oa.Expected_0_type_arguments_but_got_1,a<s?a+"-"+s:a,o);return t=cT(t,r),m_(Yf(e),n,t)}return u_(Yf(e),n,Oa.Expected_0_type_arguments_but_got_1,a<s?a+"-"+s:a,o)}let i=-1/0,a=1/0;for(const s of t){const e=dm(s.typeParameters),t=T(s.typeParameters);e>o?a=Math.min(a,e):t<o&&(i=Math.max(i,t))}if(i!==-1/0&&a!==1/0){if(r){let t=cT(void 0,Oa.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,o,i,a);return t=cT(t,r),m_(Yf(e),n,t)}return u_(Yf(e),n,Oa.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,o,i,a)}if(r){let t=cT(void 0,Oa.Expected_0_type_arguments_but_got_1,i===-1/0?a:i,o);return t=cT(t,r),m_(Yf(e),n,t)}return u_(Yf(e),n,Oa.Expected_0_type_arguments_but_got_1,i===-1/0?a:i,o)}(e,t,p,a)):si.add(Jk(e,n,m,a))}var A;return b;function I(e,t){var n,r;const i=h,a=g,s=y,l=(null==(r=null==(n=e.declaration)?void 0:n.symbol)?void 0:r.declarations)||o,c=l.length>1?L(l,(e=>Ad(e)&&am(e.body))):void 0;if(c){const e=pm(c),n=!e.typeParameters;R([e],pi,n)&&xx(t,d_(c,Oa.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}h=i,g=a,y=s}function R(t,n,r,o=!1){if(h=void 0,g=void 0,y=void 0,r){const r=t[0];if(se(p)||!Ik(e,m,r,o))return;return Gk(e,m,r,n,0,!1,void 0)?void(h=[r]):r}for(let i=0;i<t.length;i++){const r=t[i];if(!Ck(r,p)||!Ik(e,m,r,o))continue;let a,s;if(r.typeParameters){let t;if(se(p)){if(t=Wk(r,p,!1),!t){y=r;continue}}else s=oI(r.typeParameters,r,$h(e)?2:0),t=wk(e,r,m,8|E,s),E|=4&s.flags?8:0;if(a=Am(r,t,$h(r.declaration),s&&s.inferredTypeParameters),ZP(r)&&!Ik(e,m,a,o)){g=a;continue}}else a=r;if(!Gk(e,m,a,n,E,!1,void 0)){if(E){if(E=0,s){if(a=Am(r,wk(e,r,m,E,s),$h(r.declaration),s.inferredTypeParameters),ZP(r)&&!Ik(e,m,a,o)){g=a;continue}}if(Gk(e,m,a,n,E,!1,void 0)){(h||(h=[])).push(a);continue}}return t[i]=a,a}(h||(h=[])).push(a)}}}function $k(e){const t=e.parameters.length;return Zz(e)?t-1:t}function Yk(e,t){return Qk(e,mv(t,2))}function Qk(e,t){return VA(Pe(e),t)}function Zk(e){return!(!e.typeParameters||!LB(bm(e)))}function eP(e,t,n,r){return zl(e)||zl(t)&&!!(262144&e.flags)||!n&&!r&&!(1048576&t.flags)&&!(131072&Tf(t).flags)&&KS(e,Yn)}function tP(e,t,n){if(e.arguments&&A<1){const t=Tk(e.arguments);t>=0&&Ai(e.arguments[t],Oa.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let r=DL(e.expression);if(r===rn)return lo;if(r=yf(r),Gl(r))return Ek(e);if(zl(r))return e.typeArguments&&Ai(e,Oa.Untyped_function_calls_may_not_accept_type_arguments),gk(e);const o=wf(r,1);if(o.length){if(!function(e,t){if(!t||!t.declaration)return!0;const n=t.declaration,r=$b(n,6);if(!r||176!==n.kind)return!0;const o=IS(n.parent.symbol),i=ou(n.parent.symbol);if(!Pz(e,o)){const t=_h(e);if(t&&4&r){const e=tB(t);if(rP(n.parent.symbol,e))return!0}return 2&r&&Ai(e,Oa.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,il(i)),4&r&&Ai(e,Oa.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,il(i)),!1}return!0}(e,o[0]))return Ek(e);if(nP(o,(e=>!!(4&e.flags))))return Ai(e,Oa.Cannot_create_an_instance_of_an_abstract_class),Ek(e);const i=r.symbol&&IS(r.symbol);return i&&Gb(i,64)?(Ai(e,Oa.Cannot_create_an_instance_of_an_abstract_class),Ek(e)):Xk(e,o,t,n,0)}const i=wf(r,0);if(i.length){const r=Xk(e,i,t,n,0);return $||(r.declaration&&!gP(r.declaration)&&bm(r)!==en&&Ai(e,Oa.Only_a_void_function_can_be_called_with_the_new_keyword),gm(r)===en&&Ai(e,Oa.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return sP(e.expression,r,1),Ek(e)}function nP(e,t){return mt(e)?se(e,(e=>nP(e,t))):1048576===e.compositeKind?se(e.compositeSignatures,t):t(e)}function rP(e,t){const n=jd(t);if(!T(n))return!1;const r=n[0];if(2097152&r.flags){const t=mp(r.types);let n=0;for(const o of r.types){if(!t[n]&&3&RS(o)){if(o.symbol===e)return!0;if(rP(e,o))return!0}n++}return!1}return r.symbol===e||rP(e,r)}function aP(e,t,n){let r;const o=0===n,i=eF(t),a=i&&wf(i,n).length>0;if(1048576&t.flags){const e=t.types;let i=!1;for(const a of e){if(0!==wf(a,n).length){if(i=!0,r)break}else if(r||(r=cT(r,o?Oa.Type_0_has_no_call_signatures:Oa.Type_0_has_no_construct_signatures,il(a)),r=cT(r,o?Oa.Not_all_constituents_of_type_0_are_callable:Oa.Not_all_constituents_of_type_0_are_constructable,il(t))),i)break}i||(r=cT(void 0,o?Oa.No_constituent_of_type_0_is_callable:Oa.No_constituent_of_type_0_is_constructable,il(t))),r||(r=cT(r,o?Oa.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Oa.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,il(t)))}else r=cT(r,o?Oa.Type_0_has_no_call_signatures:Oa.Type_0_has_no_construct_signatures,il(t));let s=o?Oa.This_expression_is_not_callable:Oa.This_expression_is_not_constructable;if(dD(e.parent)&&0===e.parent.arguments.length){const{resolvedSymbol:t}=Hi(e);t&&32768&t.flags&&(s=Oa.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:cT(r,s),relatedMessage:a?Oa.Did_you_forget_to_use_await:void 0}}function sP(e,t,n,r){const{messageChain:o,relatedMessage:i}=aP(e,t,n),a=f_(Yf(e),e,o);if(i&&xx(a,d_(e,i)),dD(e.parent)){const{start:t,length:n}=Kk(e.parent);a.start=t,a.length=n}si.add(a),lP(t,n,r?xx(a,r):a)}function lP(e,t,n){if(!e.symbol)return;const r=Ui(e.symbol).originatingImport;if(r&&!L_(r)){const o=wf(sd(Ui(e.symbol).target),t);if(!o||!o.length)return;xx(n,d_(r,Oa.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function dP(e,t,n){const r=bO(e.expression),o=yf(r);if(Gl(o))return Ek(e);const i=wf(o,0),a=wf(o,1).length;if(eP(r,o,i.length,a))return gk(e);if(s=e,(l=i).length&&M(l,(e=>0===e.minArgumentCount&&!Zz(e)&&e.parameters.length<Hk(s,e)))&&!mD(e.expression)){const t=xm(e.expression,!1);return Ai(e,Oa._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,t),Ek(e)}var s,l;const c=function(e){switch(e.parent.kind){case 263:case 231:return Oa.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return Oa.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return Oa.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return Oa.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return In.fail()}}(e);if(!i.length){const t=aP(e.expression,o,0),n=cT(t.messageChain,c),r=f_(Yf(e.expression),e.expression,n);return t.relatedMessage&&xx(r,d_(e.expression,t.relatedMessage)),si.add(r),lP(o,0,r),Ek(e)}return Xk(e,i,t,n,0,c)}function pP(e,t){const n=rL(e),r=n&&ss(n),o=r&&qi(r,Gz.Element,788968),i=o&&de.symbolToEntityName(o,788968,e),a=UA.createFunctionTypeNode(void 0,[UA.createParameterDeclaration(void 0,void 0,"props",void 0,de.typeToTypeNode(t,e))],i?UA.createTypeReferenceNode(i,void 0):UA.createKeywordTypeNode(133)),s=ki(1,"props");return s.links.type=t,Fu(a,void 0,void 0,[s],o?ou(o):Rt,void 0,1,0)}function fP(e,t,n){if(JM(e.tagName)){const t=lL(e),n=pP(e,t);return YS(eO(e.attributes,dM(n,e),void 0,0),t,e.tagName,e.attributes),T(e.typeArguments)&&(x(e.typeArguments,gz),si.add(u_(Yf(e),e.typeArguments,Oa.Expected_0_type_arguments_but_got_1,0,T(e.typeArguments)))),n}const r=bO(e.tagName),o=yf(r);if(Gl(o))return Ek(e);const i=aL(r,e);return eP(r,o,i.length,0)?gk(e):0===i.length?(Ai(e.tagName,Oa.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,xm(e.tagName)),Ek(e)):Xk(e,i,t,n,0)}function mP(e,t,n){switch(e.kind){case 213:return function(e,t,n){if(108===e.expression.kind){const r=zD(e.expression);if(zl(r)){for(const t of e.arguments)bO(t);return io}if(!Gl(r)){const o=Oy(_h(e));if(o)return Xk(e,Fd(r,o.typeArguments,o),t,n,0)}return gk(e)}let r,o=bO(e.expression);if(Pc(e)){const t=WA(o,e.expression);r=t===o?0:Wc(e)?16:8,o=t}else r=0;if(o=PL(o,e.expression,kL),o===rn)return lo;const i=yf(o);if(Gl(i))return Ek(e);const a=wf(i,0),s=wf(i,1).length;if(eP(o,i,a.length,s))return!Gl(o)&&e.typeArguments&&Ai(e,Oa.Untyped_function_calls_may_not_accept_type_arguments),gk(e);if(!a.length){if(s)Ai(e,Oa.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,il(o));else{let t;if(1===e.arguments.length){const n=Yf(e).text;ys(n.charCodeAt(Ts(n,e.expression.end,!0)-1))&&(t=d_(e.expression,Oa.Are_you_missing_a_semicolon))}sP(e.expression,i,0,t)}return Ek(e)}return 8&n&&!e.typeArguments&&a.some(Zk)?(uO(e,n),so):a.some((e=>$h(e.declaration)&&!!tc(e.declaration)))?(Ai(e,Oa.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,il(o)),Ek(e)):Xk(e,a,t,n,r)}(e,t,n);case 214:return tP(e,t,n);case 215:return function(e,t,n){const r=bO(e.tag),o=yf(r);if(Gl(o))return Ek(e);const i=wf(o,0),a=wf(o,1).length;if(eP(r,o,i.length,a))return gk(e);if(!i.length){if(aD(e.parent)){const t=d_(e.tag,Oa.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return si.add(t),Ek(e)}return sP(e.tag,o,0),Ek(e)}return Xk(e,i,t,n,0)}(e,t,n);case 170:return dP(e,t,n);case 286:case 285:return fP(e,t,n);case 226:return function(e,t,n){const r=bO(e.right);if(!zl(r)){const o=Vw(r);if(o){const r=yf(o);if(Gl(r))return Ek(e);const i=wf(r,0),a=wf(r,1);if(eP(o,r,i.length,a.length))return gk(e);if(i.length)return Xk(e,i,t,n,0)}else if(!cB(r)&&!US(r,Yn))return Ai(e.right,Oa.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),Ek(e)}return io}(e,t,n)}In.assertNever(e,"Branch in 'resolveSignature' should be unreachable.")}function hP(e,t,n){const r=Hi(e),o=r.resolvedSignature;if(o&&o!==so&&!t)return o;r.resolvedSignature=so;let i=mP(e,t,n||0);return i!==so&&(r.resolvedSignature!==so&&(i=r.resolvedSignature),r.resolvedSignature=Eo===So?i:o),i}function gP(e){var t;if(!e||!$h(e))return!1;const n=sN(e)||_D(e)?e:(iN(e)||QN(e))&&e.initializer&&_D(e.initializer)?e.initializer:void 0;if(n){if(tc(e))return!0;if(QN(by(n.parent)))return!1;const r=ps(n);return!!(null==(t=null==r?void 0:r.members)?void 0:t.size)}return!1}function yP(e,t){var n,r;if(t){const o=Ui(t);if(!o.inferredClassSymbol||!o.inferredClassSymbol.has(Kz(e))){const i=Lf(e)?e:Wi(e);return i.exports=i.exports||Mf(),i.members=i.members||Mf(),i.flags|=32&t.flags,(null==(n=t.exports)?void 0:n.size)&&ji(i.exports,t.exports),(null==(r=t.members)?void 0:r.size)&&ji(i.members,t.members),(o.inferredClassSymbol||(o.inferredClassSymbol=new Map)).set(Kz(i),i),i}return o.inferredClassSymbol.get(Kz(e))}}function vP(e,t){if(!e.parent)return;let n,r;if(iN(e.parent)&&e.parent.initializer===e){if(!$h(e)&&(!MG(e.parent)||!Ad(e)))return;n=e.parent.name,r=e.parent}else if(TD(e.parent)){const o=e.parent,i=e.parent.operatorToken.kind;if(64!==i||!t&&o.right!==e){if((57===i||61===i)&&(iN(o.parent)&&o.parent.initializer===o?(n=o.parent.name,r=o.parent):TD(o.parent)&&64===o.parent.operatorToken.kind&&(t||o.parent.right===o)&&(n=o.parent.left,r=n),!n||!Rg(n)||!hg(n,o.left)))return}else n=o.left,r=n}else t&&sN(e)&&(n=e.name,r=e);return r&&n&&(t||fg(e,IE(n)))?fs(r):void 0}function bP(e,t){var n,r,o,i;if(!(128&e.flags)&&(e.declaration&&536870912&e.declaration.flags)){const a=EP(t),s=AE(Mh(t));n=a,r=e.declaration,o=s,i=ol(e),Di(r,o?d_(n,Oa.The_signature_0_of_1_is_deprecated,i,o):d_(n,Oa._0_is_deprecated,i))}}function EP(e){switch((e=Ty(e)).kind){case 213:case 170:case 214:return EP(e.expression);case 215:return EP(e.tag);case 286:case 285:return EP(e.tagName);case 212:return e.argumentExpression;case 211:return e.name;case 183:const t=e;return gC(t.typeName)?t.typeName.right:t;default:return e}}function SP(e){if(!dD(e))return!1;let t=e.expression;if(lD(t)&&"for"===t.name.escapedText&&(t=t.expression),!nC(t)||"Symbol"!==t.escapedText)return!1;const n=Tg(!1);return!!n&&n===ta(t,"Symbol",111551,void 0,void 0,!1)}function TP(e){if(function(e){if(S.verbatimModuleSyntax&&1===R)return SG(e,Oa.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(5===R)return SG(e,Oa.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(e.typeArguments)return SG(e,Oa.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const t=e.arguments;if(99!==R&&199!==R&&100!==R&&(YB(t),t.length>1)){return SG(t[1],Oa.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(0===t.length||t.length>2)return SG(e,Oa.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const n=L(t,RD);if(n)return SG(n,Oa.Argument_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return vw(e,Tt);const t=e.arguments[0],n=tO(t),r=e.arguments.length>1?tO(e.arguments[1]):void 0;for(let i=2;i<e.arguments.length;++i)tO(e.arguments[i]);if((32768&n.flags||65536&n.flags||!KS(n,jt))&&Ai(t,Oa.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,il(n)),r){const t=lg(!0);t!==Nn&&$S(r,LA(t,32768),e.arguments[1])}const o=Xa(e,t);if(o){const n=es(o,t,!0,!1);if(n)return vw(e,AP(sd(n),n,o,t)||IP(sd(n),n,o,t))}return vw(e,Tt)}function xP(e,t,n){const r=Mf(),i=ki(2097152,"default");return i.parent=t,i.links.nameType=BE("default"),i.links.aliasTarget=Fa(e),r.set("default",i),Os(n,r,o,o,o)}function AP(e,t,n,r){if(xa(r)&&e&&!Gl(e)){const r=e;if(!r.defaultOnlyType){const e=xP(t,n);r.defaultOnlyType=e}return r.defaultOnlyType}}function IP(e,t,n,r){var o;if(O&&e&&!Gl(e)){const i=e;if(!i.syntheticType){if(Aa(null==(o=n.declarations)?void 0:o.find(rM),n,!1,r)){const r=ki(2048,"__type"),o=xP(t,n,r);r.links.type=o,i.syntheticType=KM(e)?vE(e,o,r,0,!1):o}else i.syntheticType=e}return i.syntheticType}return e}function RP(e){if(!tg(e,!0))return!1;if(!nC(e.expression))return In.fail();const t=ta(e.expression,e.expression.escapedText,111551,void 0,void 0,!0);if(t===Se)return!0;if(2097152&t.flags)return!1;const n=16&t.flags?262:3&t.flags?260:0;if(0!==n){const e=Df(t,n);return!!e&&!!(33554432&e.flags)}return!1}function CP(e){(function(e){if(e.questionDotToken||64&e.flags)return SG(e.template,Oa.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);return!1})(e)||tG(e,e.typeArguments),A<2&&KB(e,262144);const t=hP(e);return bP(t,e),bm(t)}function DP(e){switch(e.kind){case 11:case 15:case 9:case 10:case 112:case 97:case 209:case 210:case 228:return!0;case 217:return DP(e.expression);case 224:const t=e.operator,n=e.operand;return 41===t&&(9===n.kind||10===n.kind)||40===t&&9===n.kind;case 211:case 212:const r=Ty(e.expression),o=EE(r)?qa(r,111551,!0):void 0;return!!(o&&384&o.flags)}return!1}function NP(e,t){const{type:n,expression:r}=MP(e),o=bO(r,t);if(Bc(n))return DP(r)||Ai(r,Oa.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),WE(o);return Hi(e).assertionExpressionType=o,gz(n),bz(e),JE(n)}function MP(e){let t,n;switch(e.kind){case 234:case 216:t=e.type,n=e.expression;break;case 217:t=vL(e),n=e.expression}return{type:t,expression:n}}function LP(e){return 64&e.flags?function(e){const t=bO(e.expression),n=WA(t,e.expression);return FA(PA(n),e,n!==t)}(e):PA(bO(e.expression))}function kP(e){if(rG(e),x(e.typeArguments,gz),233===e.kind){const t=by(e.parent);226===t.kind&&104===t.operatorToken.kind&&Ay(e,t.right)&&Ai(e,Oa.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}return PP(233===e.kind?bO(e.expression):bb(e.exprName)?wD(e.exprName):bO(e.exprName),e)}function PP(e,t){const n=t.typeArguments;if(e===rn||Gl(e)||!se(n))return e;let r,o=!1;const i=function e(n){let i=!1,a=!1;const l=c(n);o||(o=a),i&&!a&&(r??(r=n));return l;function c(n){if(524288&n.flags){const e=Fp(n),r=s(e.callSignatures),o=s(e.constructSignatures);if(i||(i=0!==e.callSignatures.length||0!==e.constructSignatures.length),a||(a=0!==r.length||0!==o.length),r!==e.callSignatures||o!==e.constructSignatures){const n=Os(ki(0,"__instantiationExpression"),e.members,r,o,e.indexInfos);return n.objectFlags|=8388608,n.node=t,n}}else if(58982400&n.flags){const e=lf(n);if(e){const t=c(e);if(t!==e)return t}}else{if(1048576&n.flags)return VR(n,e);if(2097152&n.flags)return Cv(K(n.types,c))}return n}}(e),a=o?r:e;return a&&si.add(u_(Yf(t),n,Oa.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,il(a))),i;function s(e){return K(G(e,(e=>!!e.typeParameters&&Ck(e,n))),(e=>{const t=Wk(e,n,!0);return t?Am(e,t,$h(e.declaration)):e}))}}function wP(e,t,n){const r=bO(e,n),o=JE(t);if(Gl(o))return o;return YS(r,o,Cl(t.parent,(e=>238===e.kind||357===e.kind)),e,Oa.Type_0_does_not_satisfy_the_expected_type_1),r}function OP(e){return function(e){const t=e.name.escapedText;switch(e.keywordToken){case 105:if("target"!==t)return SG(e.name,Oa._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ll(e.name.escapedText),as(e.keywordToken),"target");break;case 102:if("meta"!==t)SG(e.name,Oa._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ll(e.name.escapedText),as(e.keywordToken),"meta")}}(e),105===e.keywordToken?WP(e):102===e.keywordToken?function(e){100===R||199===R?99!==Yf(e).impliedNodeFormat&&Ai(e,Oa.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):R<6&&4!==R&&Ai(e,Oa.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const t=Yf(e);return In.assert(!!(8388608&t.flags),"Containing file is missing import meta node flag."),"meta"===e.name.escapedText?ig():Rt}(e):In.assertNever(e.keywordToken)}function FP(e){switch(e.keywordToken){case 102:return ag();case 105:const t=WP(e);return Gl(t)?Rt:function(e){const t=ki(0,"NewTargetExpression"),n=ki(4,"target",8);n.parent=t,n.links.type=e;const r=Mf([n]);return t.members=r,Os(t,r,o,o,o)}(t);default:In.assertNever(e.keywordToken)}}function WP(e){const t=Sh(e);if(t){if(176===t.kind){return sd(ps(t.parent))}return sd(ps(t))}return Ai(e,Oa.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Rt}function zP(e){const t=e.valueDeclaration;return ac(sd(e),!1,!!t&&(Yu(t)||fA(t)))}function BP(e,t,n="arg"){return e?(In.assert(nC(e.name)),e.name.escapedText):`${n}_${t}`}function GP(e,t,n){const r=e.parameters.length-(Zz(e)?1:0);if(t<r)return e.parameters[t].escapedName;const o=e.parameters[r]||_t,i=n||sd(o);if(tA(i)){const e=i.target.labeledElementDeclarations,n=t-r;return BP(null==e?void 0:e[n],n,o.escapedName)}return o.escapedName}function jP(e){return e.valueDeclaration&&bC(e.valueDeclaration)&&nC(e.valueDeclaration.name)&&e.valueDeclaration.name}function VP(e){return 202===e.kind||bC(e)&&e.name&&nC(e.name)}function UP(e,t){const n=e.parameters.length-(Zz(e)?1:0);if(t<n){const n=e.parameters[t].valueDeclaration;return n&&VP(n)?n:void 0}const r=e.parameters[n]||_t,o=sd(r);if(tA(o)){const e=o.target.labeledElementDeclarations;return e&&e[t-n]}return r.valueDeclaration&&VP(r.valueDeclaration)?r.valueDeclaration:void 0}function HP(e,t){return KP(e,t)||Tt}function KP(e,t){const n=e.parameters.length-(Zz(e)?1:0);if(t<n)return zP(e.parameters[t]);if(Zz(e)){const r=sd(e.parameters[n]),o=t-n;if(!tA(r)||r.target.hasRestElement||o<r.target.fixedLength)return Mb(r,GE(o))}}function qP(e,t,n){const r=XP(e),o=$P(e),i=QP(e);if(i&&t>=r-1)return t===r-1?i:ey(Mb(i,Vt));const a=[],s=[],l=[];for(let c=t;c<r;c++)!i||c<r-1?(a.push(HP(e,c)),s.push(c<o?1:2)):(a.push(i),s.push(8)),l.push(UP(e,c));return Dy(a,s,n,l)}function JP(e,t){const n=qP(e,t),r=n&&mx(n);return r&&zl(r)?Tt:n}function XP(e){const t=e.parameters.length;if(Zz(e)){const n=sd(e.parameters[t-1]);if(tA(n))return t+n.target.fixedLength-(n.target.hasRestElement?0:1)}return t}function $P(e,t){const n=1&t,r=2&t;if(r||void 0===e.resolvedMinArgumentCount){let t;if(Zz(e)){const n=sd(e.parameters[e.parameters.length-1]);if(tA(n)){const r=P(n.target.elementFlags,(e=>!(1&e))),o=r<0?n.target.fixedLength:r;o>0&&(t=e.parameters.length-1+o)}}if(void 0===t){if(!n&&32&e.flags)return 0;t=e.minArgumentCount}if(r)return t;for(let n=t-1;n>=0;n--){if(131072&BR(HP(e,n),xk).flags)break;t=n}e.resolvedMinArgumentCount=t}return e.resolvedMinArgumentCount}function YP(e){if(Zz(e)){const t=sd(e.parameters[e.parameters.length-1]);return!tA(t)||t.target.hasRestElement}return!1}function QP(e){if(Zz(e)){const t=sd(e.parameters[e.parameters.length-1]);if(!tA(t))return zl(t)?sr:t;if(t.target.hasRestElement)return Vy(t,t.target.fixedLength)}}function ZP(e){const t=QP(e);return!t||cx(t)||zl(t)?void 0:t}function ew(e){return tw(e,tn)}function tw(e,t){return e.parameters.length>0?HP(e,0):t}function nw(e,t,n){const r=e.parameters.length-(Zz(e)?1:0);for(let o=0;o<r;o++){const r=e.parameters[o].valueDeclaration,i=Ab(r);if(i){const e=ac(JE(i),!1,fA(r)),a=HP(t,o);wI(n.inferences,e,a)}}}function rw(e,t){const n=Ui(e);if(n.type)t&&In.assertEqual(n.type,t,"Parameter symbol already has a cached type which differs from newly assigned type");else{const r=e.valueDeclaration;n.type=ac(t||(r?Nc(r,!0):sd(e)),!1,!!r&&!r.initializer&&fA(r)),r&&80!==r.name.kind&&(n.type===Mt&&(n.type=Ic(r.name)),ow(r.name,n.type))}}function ow(e,t){for(const n of e.elements)if(!DD(n)){const e=rc(n,t,!1);80===n.name.kind?Ui(ps(n)).type=e:ow(n.name,e)}}function iw(e){return h_((t=!0,Hr??(Hr=ng("ClassDecoratorContext",1,t))??On),[e]);var t}function aw(e,t){return h_((n=!0,Kr??(Kr=ng("ClassMethodDecoratorContext",2,n))??On),[e,t]);var n}function sw(e,t){return h_((n=!0,qr??(qr=ng("ClassGetterDecoratorContext",2,n))??On),[e,t]);var n}function lw(e,t){return h_((n=!0,Jr??(Jr=ng("ClassSetterDecoratorContext",2,n))??On),[e,t]);var n}function cw(e,t){return h_((n=!0,Xr??(Xr=ng("ClassAccessorDecoratorContext",2,n))??On),[e,t]);var n}function dw(e,t){return h_((n=!0,Qr??(Qr=ng("ClassFieldDecoratorContext",2,n))??On),[e,t]);var n}function uw(e,t,n){const r=Vb(e),i=rC(e.name),a=i?BE(kl(e.name)):zv(e.name),s=AC(e)?aw(t,n):CC(e)?sw(t,n):DC(e)?lw(t,n):kd(e)?cw(t,n):TC(e)?dw(t,n):In.failBadSyntaxKind(e),l=function(e,t,n){const r=`${t?"p":"P"}${n?"s":"S"}${e.id}`;let i=st.get(r);if(!i){const a=Mf();a.set("name",wi("name",e)),a.set("private",wi("private",t?qt:Ht)),a.set("static",wi("static",n?qt:Ht)),i=Os(void 0,a,o,o,o),st.set(r,i)}return i}(a,i,r);return Cv([s,l])}function pw(e,t){return h_((n=!0,$r??($r=ng("ClassAccessorDecoratorTarget",2,n))??On),[e,t]);var n}function fw(e,t){return h_((n=!0,Yr??(Yr=ng("ClassAccessorDecoratorResult",2,n))??On),[e,t]);var n}function mw(e,t,n){return rF(void 0,void 0,[Pi("target",e),Pi("context",t)],mv([n,en]))}function _w(e){const{parent:t}=e,n=Hi(t);if(!n.decoratorSignature)switch(n.decoratorSignature=io,t.kind){case 263:case 231:{const e=sd(ps(t)),r=iw(e);n.decoratorSignature=mw(e,r,e);break}case 174:case 177:case 178:{const e=t;if(!Md(e.parent))break;const r=AC(e)?Om(pm(e)):tB(e),o=Vb(e)?sd(ps(e.parent)):qd(ps(e.parent)),i=CC(e)?iF(r):DC(e)?aF(r):r,a=uw(e,o,r),s=CC(e)?iF(r):DC(e)?aF(r):r;n.decoratorSignature=mw(i,a,s);break}case 172:{const e=t;if(!Md(e.parent))break;const r=tB(e),o=Vb(e)?sd(ps(e.parent)):qd(ps(e.parent)),i=qb(e)?pw(o,r):Pt,a=uw(e,o,r),s=qb(e)?fw(o,r):function(e,t){return oF(void 0,Pi("this",e),[Pi("value",t)],t,void 0,1)}(o,r);n.decoratorSignature=mw(i,a,s);break}}return n.decoratorSignature===io?void 0:n.decoratorSignature}function hw(e){return C?function(e){const{parent:t}=e,n=Hi(t);if(!n.decoratorSignature)switch(n.decoratorSignature=io,t.kind){case 263:case 231:{const e=sd(ps(t)),r=Pi("target",e);n.decoratorSignature=rF(void 0,void 0,[r],mv([e,en]));break}case 169:{const e=t;if(!RC(e.parent)&&!(AC(e.parent)||DC(e.parent)&&Md(e.parent.parent)))break;if(yb(e.parent)===e)break;const r=yb(e.parent)?e.parent.parameters.indexOf(e)-1:e.parent.parameters.indexOf(e);In.assert(r>=0);const o=RC(e.parent)?sd(ps(e.parent.parent)):aB(e.parent),i=RC(e.parent)?Pt:sB(e.parent),a=GE(r),s=Pi("target",o),l=Pi("propertyKey",i),c=Pi("parameterIndex",a);n.decoratorSignature=rF(void 0,void 0,[s,l,c],en);break}case 174:case 177:case 178:case 172:{const e=t;if(!Md(e.parent))break;const r=Pi("target",aB(e)),o=Pi("propertyKey",sB(e)),i=TC(e)?en:Xg(tB(e));if(0===A||TC(t)&&!qb(t))n.decoratorSignature=rF(void 0,void 0,[r,o],mv([i,en]));else{const t=Pi("descriptor",Xg(tB(e)));n.decoratorSignature=rF(void 0,void 0,[r,o,t],mv([i,en]))}break}}return n.decoratorSignature===io?void 0:n.decoratorSignature}(e):_w(e)}function gw(e){const t=Ag(!0);return t!==On?v_(t,[e=tF(YO(e))||Mt]):Mt}function yw(e){const t=Cg(!0);return t!==On?v_(t,[e=tF(YO(e))||Mt]):Mt}function vw(e,t){const n=gw(t);return n===Mt?(Ai(e,L_(e)?Oa.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Oa.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Rt):(Dg(!0)||Ai(e,L_(e)?Oa.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Oa.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function bw(e,t){if(!e.body)return Rt;const n=Zy(e),r=0!==(2&n),o=0!==(1&n);let i,a,s,l=en;if(241!==e.body.kind)i=tO(e.body,t&&-9&t),r&&(i=YO(JO(i,!1,e,Oa.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(o){const n=Iw(e,t);n?n.length>0&&(i=mv(n,2)):l=tn;const{yieldTypes:r,nextTypes:o}=function(e,t){const n=[],r=[],o=0!==(2&Zy(e));return K_(e.body,(e=>{const i=e.expression?bO(e.expression,t):wt;let a;if(Ae(n,Sw(e,i,Tt,o)),e.asteriskToken){const t=rW(i,o?19:17,e.expression);a=t&&t.nextType}else a=JN(e,void 0);a&&Ae(r,a)})),{yieldTypes:n,nextTypes:r}}(e,t);a=se(r)?mv(r,2):void 0,s=se(o)?Cv(o):void 0}else{const r=Iw(e,t);if(!r)return 2&n?vw(e,tn):tn;if(0===r.length){const t=nN(e,void 0),r=t&&32768&(TW(t,n)||en).flags?Pt:en;return 2&n?vw(e,r):r}i=mv(r,2)}if(i||a||s){if(a&&tI(e,a,3),i&&tI(e,i,1),s&&tI(e,s,2),i&&Wx(i)||a&&Wx(a)||s&&Wx(s)){const t=xM(e),n=t?t===pm(e)?o?void 0:i:jN(bm(t),e,void 0):void 0;o?(a=$x(a,n,0,r),i=$x(i,n,1,r),s=$x(s,n,2,r)):i=function(e,t,n){e&&Wx(e)&&(e=Xx(e,t?n?qO(t):t:void 0));return e}(i,n,r)}a&&(a=YA(a)),i&&(i=YA(i)),s&&(s=YA(s))}return o?Ew(a||tn,i||l,s||tN(2,e)||Mt,r):r?gw(i||l):i||l}function Ew(e,t,n,r){const o=r?ho:go,i=o.getGlobalGeneratorType(!1);if(e=o.resolveIterationType(e,void 0)||Mt,t=o.resolveIterationType(t,void 0)||Mt,n=o.resolveIterationType(n,void 0)||Mt,i===On){const r=o.getGlobalIterableIteratorType(!1),i=r!==On?sW(r,o):void 0,a=i?i.returnType:Tt,s=i?i.nextType:Pt;return KS(t,a)&&KS(s,n)?r!==On?Jg(r,[e]):(o.getGlobalIterableIteratorType(!0),Nn):(o.getGlobalGeneratorType(!0),Nn)}return Jg(i,[e,t,n])}function Sw(e,t,n,r){const o=e.expression||e,i=e.asteriskToken?$F(r?19:17,t,n,o):t;return r?eF(i,o,e.asteriskToken?Oa.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Oa.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i}function Tw(e,t,n){let r=0;for(let o=0;o<n.length;o++){const i=o<e||o>=t?n[o]:void 0;r|=void 0!==i?wz.get(i)||32768:0}return r}function xw(e){const t=Hi(e);if(void 0===t.isExhaustive){t.isExhaustive=0;const n=function(e){if(221===e.expression.kind){const t=kR(e);if(!t)return!1;const n=cf(tO(e.expression.expression)),r=Tw(0,0,t);return 3&n.flags?556800===(556800&r):!OR(n,(e=>fR(e,r)===r))}const t=tO(e.expression);if(!Gx(t))return!1;const n=LR(e);if(!n.length||se(n,Lx))return!1;return r=VR(t,WE),o=n,1048576&r.flags?!x(r.types,(e=>!F(o,e))):F(o,r);var r,o}(e);0===t.isExhaustive&&(t.isExhaustive=n)}else 0===t.isExhaustive&&(t.isExhaustive=!1);return t.isExhaustive}function Aw(e){return e.endFlowNode&&lC(e.endFlowNode)}function Iw(e,t){const n=Zy(e),r=[];let o=Aw(e),i=!1;if(H_(e.body,(a=>{let s=a.expression;if(s){if(s=Ty(s,!0),2&n&&223===s.kind&&(s=Ty(s.expression,!0)),213===s.kind&&80===s.expression.kind&&tO(s.expression).symbol===e.symbol)return void(i=!0);let o=tO(s,t&&-9&t);2&n&&(o=YO(JO(o,!1,e,Oa.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&o.flags&&(i=!0),Ae(r,o)}else o=!0})),0!==r.length||o||!i&&!function(e){switch(e.kind){case 218:case 219:return!0;case 174:return 210===e.parent.kind;default:return!1}}(e))return!(z&&r.length&&o)||gP(e)&&r.some((t=>t.symbol===e.symbol))||Ae(r,Pt),r}function Rw(e,t){return void l((function(){const n=Zy(e),r=t&&TW(t,n);if(r&&(Ww(r,16384)||32769&r.flags))return;if(173===e.kind||im(e.body)||241!==e.body.kind||!Aw(e))return;const o=1024&e.flags,i=Rb(e)||e;if(r&&131072&r.flags)Ai(i,Oa.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!o)Ai(i,Oa.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(r&&z&&!KS(Pt,r))Ai(i,Oa.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(S.noImplicitReturns){if(!r){if(!o)return;const t=bm(pm(e));if(xW(e,t))return}Ai(i,Oa.Not_all_code_paths_return_a_value)}}))}function Cw(e,t){if(In.assert(174!==e.kind||oh(e)),bz(e),_D(e)&&OF(e,e.name),t&&4&t&&kS(e)){if(!Rb(e)&&!Yx(e)){const n=AM(e);if(n&&pI(bm(n))){const n=Hi(e);if(n.contextFreeType)return n.contextFreeType;const r=bw(e,t),i=Fu(void 0,void 0,void 0,o,r,void 0,0,64),a=Os(e.symbol,b,[i],o,o);return a.objectFlags|=262144,n.contextFreeType=a}}return Fn}return eG(e)||218!==e.kind||aG(e),function(e,t){const n=Hi(e);if(!(64&n.flags)){const r=AM(e);if(!(64&n.flags)){n.flags|=64;const o=Le(wf(sd(ps(e)),0));if(!o)return;if(kS(e))if(r){const n=cM(e);let i;if(t&&2&t){nw(o,r,n);const e=QP(r);e&&262144&e.flags&&(i=uS(r,n.nonFixingMapper))}i||(i=n?uS(r,n.mapper):r),function(e,t){if(t.typeParameters){if(e.typeParameters)return;e.typeParameters=t.typeParameters}if(t.thisParameter){const n=e.thisParameter;(!n||n.valueDeclaration&&!n.valueDeclaration.type)&&(n||(e.thisParameter=VA(t.thisParameter,void 0)),rw(e.thisParameter,sd(t.thisParameter)))}const n=e.parameters.length-(Zz(e)?1:0);for(let r=0;r<n;r++){const n=e.parameters[r],o=n.valueDeclaration;if(!Ab(o)){let e=KP(t,r);if(e&&o.initializer){let t=rO(o,0);!KS(t,e)&&KS(e,t=oO(o,t))&&(e=t)}rw(n,e)}}if(Zz(e)){const r=Fe(e.parameters);(r.valueDeclaration?!Ab(r.valueDeclaration):65536&mS(r))&&rw(r,qP(t,n))}}(o,i)}else!function(e){e.thisParameter&&rw(e.thisParameter);for(const t of e.parameters)rw(t)}(o);else if(r&&!e.typeParameters&&r.parameters.length>e.parameters.length){const n=cM(e);t&&2&t&&nw(o,r,n)}if(r&&!Em(e)&&!o.resolvedReturnType){const n=bw(e,t);o.resolvedReturnType||(o.resolvedReturnType=n)}xO(e)}}}(e,t),sd(ps(e))}function Dw(e,t,n,r=!1){if(!KS(t,vn)){const o=r&&KO(t);return Ci(e,!!o&&KS(o,vn),n),!1}return!0}function Nw(e){if(!dD(e))return!1;if(!Sg(e))return!1;const t=tO(e.arguments[2]);if(Ol(t,"value")){const e=kf(t,"writable"),n=e&&sd(e);if(!n||n===Ht||n===Kt)return!0;if(e&&e.valueDeclaration&&QN(e.valueDeclaration)){const t=bO(e.valueDeclaration.initializer);if(t===Ht||t===Kt)return!0}return!1}return!kf(t,"set")}function Mw(e){return!!(8&mS(e)||4&e.flags&&8&_S(e)||3&e.flags&&6&xL(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||se(e.declarations,Nw))}function Lw(e,t,n){var r,o;if(0===n)return!1;if(Mw(t)){if(4&t.flags&&wS(e)&&110===e.expression.kind){const n=fh(e);if(!n||176!==n.kind&&!gP(n))return!0;if(t.valueDeclaration){const e=TD(t.valueDeclaration),i=n.parent===t.valueDeclaration.parent,a=n===t.valueDeclaration.parent,s=e&&(null==(r=t.parent)?void 0:r.valueDeclaration)===n.parent,l=e&&(null==(o=t.parent)?void 0:o.valueDeclaration)===n;return!(i||a||s||l)}}return!0}if(wS(e)){const t=Ty(e.expression);if(80===t.kind){const e=Hi(t).resolvedSymbol;if(2097152&e.flags){const t=ha(e);return!!t&&274===t.kind}}}return!1}function kw(e,t,n){const r=EL(e,7);return 80===r.kind||wS(r)?!(64&r.flags)||(Ai(e,n),!1):(Ai(e,t),!1)}function Pw(e){bO(e.expression);const t=Ty(e.expression);if(!wS(t))return Ai(t,Oa.The_operand_of_a_delete_operator_must_be_a_property_reference),Qt;lD(t)&&rC(t.name)&&Ai(t,Oa.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const n=Ss(Hi(t).resolvedSymbol);return n&&(Mw(n)?Ai(t,Oa.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):function(e,t){const n=sd(t);!z||131075&n.flags||(ie?16777216&t.flags:mR(n,16777216))||Ai(e,Oa.The_operand_of_a_delete_operator_must_be_optional)}(t,n)),Qt}function ww(e){let t=!1;const n=gh(e);if(n&&IC(n)){Ai(e,bD(e)?Oa.await_expression_cannot_be_used_inside_a_class_static_block:Oa.await_using_statements_cannot_be_used_inside_a_class_static_block),t=!0}else if(!(65536&e.flags))if(Eh(e)){const n=Yf(e);if(!vG(n)){let r;if(!Um(n,S)){r??(r=b_(n,e.pos));const o=bD(e)?Oa.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Oa.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,i=iT(n,r.start,r.length,o);si.add(i),t=!0}switch(R){case 100:case 199:if(1===n.impliedNodeFormat){r??(r=b_(n,e.pos)),si.add(iT(n,r.start,r.length,Oa.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),t=!0;break}case 7:case 99:case 200:case 4:if(A>=4)break;default:r??(r=b_(n,e.pos));const o=bD(e)?Oa.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:Oa.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;si.add(iT(n,r.start,r.length,o)),t=!0}}}else{const r=Yf(e);if(!vG(r)){const o=b_(r,e.pos),i=bD(e)?Oa.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Oa.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,a=iT(r,o.start,o.length,i);if(n&&176!==n.kind&&0===(2&Zy(n))){xx(a,d_(n,Oa.Did_you_mean_to_mark_this_function_as_async))}si.add(a),t=!0}}return bD(e)&&eN(e)&&(Ai(e,Oa.await_expressions_cannot_be_used_in_a_parameter_initializer),t=!0),t}function Ow(e){return Ww(e,2112)?zw(e,3)||Ww(e,296)?vn:Ut:Vt}function Fw(e,t){if(Ww(e,t))return!0;const n=cf(e);return!!n&&Ww(n,t)}function Ww(e,t){if(e.flags&t)return!0;if(3145728&e.flags){const n=e.types;for(const e of n)if(Ww(e,t))return!0}return!1}function zw(e,t,n){return!!(e.flags&t)||!(n&&114691&e.flags)&&(!!(296&t)&&KS(e,Vt)||!!(2112&t)&&KS(e,Ut)||!!(402653316&t)&&KS(e,jt)||!!(528&t)&&KS(e,Qt)||!!(16384&t)&&KS(e,en)||!!(131072&t)&&KS(e,tn)||!!(65536&t)&&KS(e,Bt)||!!(32768&t)&&KS(e,Pt)||!!(4096&t)&&KS(e,Zt)||!!(67108864&t)&&KS(e,ln))}function Bw(e,t,n){return 1048576&e.flags?M(e.types,(e=>Bw(e,t,n))):zw(e,t,n)}function Gw(e){return!!(16&RS(e))&&!!e.symbol&&jw(e.symbol)}function jw(e){return 0!==(128&e.flags)}function Vw(e){const t=Bp(e,cW("hasInstance"));if(t){const e=sd(t);if(e&&0!==wf(e,0).length)return e}}function Uw(e,t,n,r){if(n===rn||r===rn)return rn;if(rC(e)){if(A<99&&KB(e,2097152),!Hi(e).resolvedSymbol&&_h(e)){QL(e,r,JL(e,r.symbol,!0))}}else $S(wL(n,e),fn,e);return $S(wL(r,t),ln,t)&&OR(r,(e=>e===Pn||!!(2097152&e.flags)&&yT(cf(e))))&&Ai(t,Oa.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,il(r)),Qt}function Hw(e,t,n,r,o=!1){const i=e.properties,a=i[n];if(303===a.kind||304===a.kind){const e=a.name,n=zv(e);if(xA(n)){const e=kf(t,AA(n));e&&(lk(e,a,o),IL(a,!1,!0,t,e))}const r=$l(a,Mb(t,n,32,e));return qw(304===a.kind?a:a.initializer,r)}if(305===a.kind){if(!(n<i.length-1)){A<99&&KB(a,4);const e=[];if(r)for(const t of r)eM(t)||e.push(t.name);const n=Kl(t,e,t.symbol);return YB(r,Oa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),qw(a.expression,n)}Ai(a,Oa.A_rest_element_must_be_last_in_a_destructuring_pattern)}else Ai(a,Oa.Property_assignment_expected)}function Kw(e,t,n,r,o){const i=e.elements,a=i[n];if(232!==a.kind){if(230!==a.kind){const e=GE(n);if(_x(t)){const n=kb(t,e,32|(RM(a)?16:0),Vk(a,e))||Rt;return qw(a,$l(a,RM(a)?hR(n,524288):n),o)}return qw(a,r,o)}if(n<i.length-1)Ai(a,Oa.A_rest_element_must_be_last_in_a_destructuring_pattern);else{const i=a.expression;if(226!==i.kind||64!==i.operatorToken.kind){YB(e.elements,Oa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);return qw(i,WR(t,tA)?VR(t,(e=>Vy(e,n))):ey(r),o)}Ai(i.operatorToken,Oa.A_rest_element_cannot_have_an_initializer)}}}function qw(e,t,n,r){let o;if(304===e.kind){const r=e;r.objectAssignmentInitializer&&(z&&!mR(bO(r.objectAssignmentInitializer),16777216)&&(t=hR(t,524288)),function(e,t,n,r,o){const i=t.kind;if(64===i&&(210===e.kind||209===e.kind))return qw(e,bO(n,r),r,110===n.kind);let a;a=pE(i)?qF(e,r):bO(e,r);const s=bO(n,r);$w(e,t,n,a,s,r,o)}(r.name,r.equalsToken,r.objectAssignmentInitializer,n)),o=e.name}else o=e;return 226===o.kind&&64===o.operatorToken.kind&&(ae(o,n),o=o.left,z&&(t=hR(t,524288))),210===o.kind?function(e,t,n){const r=e.properties;if(z&&0===r.length)return wL(t,e);for(let o=0;o<r.length;o++)Hw(e,t,o,r,n);return t}(o,t,r):209===o.kind?function(e,t,n){const r=e.elements;A<2&&S.downlevelIteration&&KB(e,512);const o=$F(193,t,Pt,e)||Rt;let i=S.noUncheckedIndexedAccess?void 0:o;for(let a=0;a<r.length;a++){let r=o;230===e.elements[a].kind&&(r=i=i??($F(65,t,Pt,e)||Rt)),Kw(e,t,a,r,n)}return t}(o,t,n):function(e,t,n){const r=bO(e,n),o=305===e.parent.kind?Oa.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:Oa.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,i=305===e.parent.kind?Oa.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:Oa.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;kw(e,o,i)&&YS(t,r,e,e);_d(e)&&KB(e.parent,1048576);return t}(o,t,n)}function Jw(e){switch((e=Ty(e)).kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return Jw(e.whenTrue)&&Jw(e.whenFalse);case 226:return!mE(e.operatorToken.kind)&&(Jw(e.left)&&Jw(e.right));case 224:case 225:switch(e.operator){case 54:case 40:case 41:case 55:return!0}return!1;default:return!1}}function Xw(e,t){return 0!==(98304&t.flags)||JS(e,t)}function $w(e,t,n,r,o,i,a){const s=t.kind;switch(s){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(r===rn||o===rn)return rn;let l;if(r=wL(r,e),o=wL(o,n),528&r.flags&&528&o.flags&&void 0!==(l=function(e){switch(e){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}(t.kind)))return Ai(a||t,Oa.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,as(t.kind),as(l)),Vt;{const t=Dw(e,r,Oa.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),i=Dw(n,o,Oa.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let l;if(zw(r,3)&&zw(o,3)||!Ww(r,2112)&&!Ww(o,2112))l=Vt;else if(u(r,o)){switch(s){case 50:case 73:_();break;case 43:case 68:A<3&&Ai(a,Oa.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}l=Ut}else _(u),l=Rt;return t&&i&&f(l),l}case 40:case 65:if(r===rn||o===rn)return rn;let g;if(zw(r,402653316)||zw(o,402653316)||(r=wL(r,e),o=wL(o,n)),zw(r,296,!0)&&zw(o,296,!0)?g=Vt:zw(r,2112,!0)&&zw(o,2112,!0)?g=Ut:zw(r,402653316,!0)||zw(o,402653316,!0)?g=jt:(zl(r)||zl(o))&&(g=Gl(r)||Gl(o)?Rt:Tt),g&&!p(s))return g;if(!g){const e=402655727;return _(((t,n)=>zw(t,e)&&zw(n,e))),Tt}return 65===s&&f(g),g;case 30:case 32:case 33:case 34:return p(s)&&(r=Hx(wL(r,e)),o=Hx(wL(o,n)),m(((e,t)=>{if(zl(e)||zl(t))return!0;const n=KS(e,vn),r=KS(t,vn);return n&&r||!n&&!r&&XS(e,t)}))),Qt;case 35:case 36:case 37:case 38:if(!(i&&64&i)){if((td(e)||td(n))&&(!$h(e)||37===s||38===s)){const e=35===s||37===s;Ai(a,Oa.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,e?"false":"true")}!function(e,t,n,r){const o=h(Ty(n)),i=h(Ty(r));if(o||i){const a=Ai(e,Oa.This_condition_will_always_return_0,as(37===t||35===t?97:112));if(o&&i)return;const s=38===t||36===t?as(54):"",l=o?r:n,c=Ty(l);xx(a,d_(l,Oa.Did_you_mean_0,`${s}Number.isNaN(${EE(c)?c_(c):"..."})`))}}(a,s,e,n),m(((e,t)=>Xw(e,t)||Xw(t,e)))}return Qt;case 104:return function(e,t,n,r,o){if(n===rn||r===rn)return rn;!zl(n)&&Bw(n,402784252)&&Ai(e,Oa.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),In.assert(NE(e.parent));const i=hP(e.parent,void 0,o);return i===so?rn:($S(bm(i),Qt,t,Oa.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),Qt)}(e,n,r,o,i);case 103:return Uw(e,n,r,o);case 56:case 77:{const e=mR(r,4194304)?mv([(d=z?r:Ux(o),VR(d,MA)),o]):r;return 77===s&&f(o),e}case 57:case 76:{const e=mR(r,8388608)?mv([PA(NA(r)),o],2):r;return 76===s&&f(o),e}case 61:case 78:{const e=mR(r,262144)?mv([PA(r),o],2):r;return 78===s&&f(o),e}case 64:const y=TD(e.parent)?Eg(e.parent):0;return function(e,t){if(2===e)for(const n of zp(t)){const e=sd(n);if(e.symbol&&32&e.symbol.flags){const e=n.escapedName,t=ta(n.valueDeclaration,e,788968,void 0,e,!1);(null==t?void 0:t.declarations)&&t.declarations.some(GM)&&(Bi(t,Oa.Duplicate_identifier_0,Ll(e),n),Bi(n,Oa.Duplicate_identifier_0,Ll(e),t))}}}(y,o),function(t){var r;switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const t=fs(e),o=pg(n);return!!o&&sD(o)&&!!(null==(r=null==t?void 0:t.exports)?void 0:r.size);default:return!1}}(y)?(524288&o.flags&&(2===y||6===y||gT(o)||pR(o)||1&RS(o))||f(o),r):(f(o),o);case 28:if(!S.allowUnreachableCode&&Jw(e)&&!(217===(c=e.parent).parent.kind&&FR(c.left)&&"0"===c.left.text&&(dD(c.parent.parent)&&c.parent.parent.expression===c.parent||215===c.parent.parent.kind)&&(wS(c.right)||nC(c.right)&&"eval"===c.right.escapedText))){const t=Yf(e),n=Ts(t.text,e.pos);t.parseDiagnostics.some((e=>e.code===Oa.JSX_expressions_must_have_one_parent_element.code&&el(e,n)))||Ai(e,Oa.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return o;default:return In.fail()}var c,d;function u(e,t){return zw(e,2112)&&zw(t,2112)}function p(t){const i=Fw(r,12288)?e:Fw(o,12288)?n:void 0;return!i||(Ai(i,Oa.The_0_operator_cannot_be_applied_to_type_symbol,as(t)),!1)}function f(o){mE(s)&&l((function(){let i=r;$B(t.kind)&&211===e.kind&&(i=FL(e,void 0,!0));if(kw(e,Oa.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,Oa.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let t;if(ie&&lD(e)&&Ww(o,32768)){const n=Ol(gO(e.expression),e.name.escapedText);WT(o,n)&&(t=Oa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}YS(o,i,e,n,t)}}))}function m(e){return!e(r,o)&&(_(e),!0)}function _(e){let n=!1;const i=a||t;if(e){const t=tF(r),i=tF(o);n=!(t===r&&i===o)&&!(!t||!i)&&e(t,i)}let s=r,l=o;!n&&e&&([s,l]=function(e,t,n){let r=e,o=t;const i=Ux(e),a=Ux(t);n(i,a)||(r=i,o=a);return[r,o]}(r,o,e));const[c,d]=al(s,l);(function(e,n,r,o){switch(t.kind){case 37:case 35:case 38:case 36:return Ci(e,n,Oa.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,o);default:return}})(i,n,c,d)||Ci(i,n,Oa.Operator_0_cannot_be_applied_to_types_1_and_2,as(t.kind),c,d)}function h(e){if(nC(e)&&"NaN"===e.escapedText){const t=Vr||(Vr=wh("NaN",!1));return!!t&&t===JI(e)}return!1}}function Yw(e){const t=e.parent;return mD(t)&&Yw(t)||cD(t)&&t.argumentExpression===e}function Qw(e){const t=[e.head.text],n=[];for(const o of e.templateSpans){const e=bO(o.expression);Fw(e,12288)&&Ai(o.expression,Oa.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(o.literal.text),n.push(KS(e,En)?e:jt)}if(aO(e)||Yw(e)||OR(JN(e,void 0)||Mt,Zw))return Yv(t,n);const r=215!==e.parent.kind&&YW(e);return r?FE(BE(r)):jt}function Zw(e){return!!(134217856&e.flags||58982400&e.flags&&Ww(lf(e)||Mt,402653316))}function eO(e,t,n,r){const o=function(e){return UN(e)&&!FN(e.parent)?e.parent.parent:e}(e);nM(o,t,!1),function(e,t){No[Lo]=e,Mo[Lo]=t,Lo++}(o,n);const i=bO(e,1|r|(n?2:0));n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0);const a=Ww(i,2944)&&iO(i,jN(t,e,void 0))?WE(i):i;return Lo--,oM(),a}function tO(e,t){if(t)return bO(e,t);const n=Hi(e);if(!n.resolvedType){const r=Eo,o=to;Eo=So,to=void 0,n.resolvedType=bO(e,t),to=o,Eo=r}return n.resolvedType}function nO(e){return 216===(e=Ty(e,!0)).kind||234===e.kind||yL(e)}function rO(e,t,n){const r=dg(e);if($h(e)){const n=gA(e);if(n)return wP(r,n,t)}const o=yO(r)||(n?eO(r,n,void 0,t||0):tO(r,t));return bC(e)&&207===e.name.kind&&tA(o)&&!o.target.hasRestElement&&N_(o)<e.name.elements.length?function(e,t){const n=t.elements,r=qy(e).slice(),o=e.target.elementFlags.slice();for(let i=N_(e);i<n.length;i++){const e=n[i];(i<n.length-1||208!==e.kind||!e.dotDotDotToken)&&(r.push(!DD(e)&&RM(e)?xc(e,!1,!1):Tt),o.push(2),DD(e)||RM(e)||eI(e,Tt))}return Dy(r,o,e.target.readonly)}(o,e.name):o}function oO(e,t){const n=6&NG(e)||I_(e)?t:Kx(t);if($h(e)){if(vx(n))return eI(e,Tt),Tt;if(Sx(n))return eI(e,sr),sr}return n}function iO(e,t){if(t){if(3145728&t.flags){return se(t.types,(t=>iO(e,t)))}if(58982400&t.flags){const n=lf(t)||Mt;return Ww(n,4)&&Ww(e,128)||Ww(n,8)&&Ww(e,256)||Ww(n,64)&&Ww(e,2048)||Ww(n,4096)&&Ww(e,8192)||iO(e,n)}return!!(406847616&t.flags&&Ww(e,128)||256&t.flags&&Ww(e,256)||2048&t.flags&&Ww(e,2048)||512&t.flags&&Ww(e,512)||8192&t.flags&&Ww(e,8192))}return!1}function aO(e){const t=e.parent;return pu(t)&&Bc(t.type)||yL(t)&&Bc(vL(t))||DP(e)&&ef(JN(e,0))||(mD(t)||aD(t)||RD(t))&&aO(t)||(QN(t)||ZN(t)||WD(t))&&aO(t.parent)}function sO(e,t,n){const r=bO(e,t,n);return aO(e)||Q_(e)?WE(r):nO(e)?r:Xx(r,jN(JN(e,void 0),e,void 0))}function lO(e,t){return 167===e.name.kind&&MM(e.name),sO(e.initializer,t)}function cO(e,t){pG(e),167===e.name.kind&&MM(e.name);return dO(e,Cw(e,t),t)}function dO(e,t,n){if(n&&10&n){const r=Lk(t,0,!0),o=Lk(t,1,!0),i=r||o;if(i&&i.typeParameters){const t=BN(e,2);if(t){const o=Lk(PA(t),r?0:1,!1);if(o&&!o.typeParameters){if(8&n)return uO(e,n),Fn;const t=cM(e),r=t.signature&&bm(t.signature),a=r&&Mk(r);if(a&&!a.typeParameters&&!M(t.inferences,pO)){const e=function(e,t){const n=[];let r,o;for(const i of t){const t=i.symbol.escapedName;if(mO(e.inferredTypeParameters,t)||mO(n,t)){const a=Ms(ki(262144,_O(ce(e.inferredTypeParameters,n),t)));a.target=i,r=Ee(r,i),o=Ee(o,a),n.push(a)}else n.push(i)}if(o){const e=eS(r,o);for(const t of o)t.mapper=e}return n}(t,i.typeParameters),n=Rm(i,e),r=U(t.inferences,(e=>cI(e.typeParameter)));if(nI(n,o,((e,t)=>{wI(r,e,t,0,!0)})),se(r,pO)&&(rI(n,o,((e,t)=>{wI(r,e,t)})),!function(e,t){for(let n=0;n<e.length;n++)if(pO(e[n])&&pO(t[n]))return!0;return!1}(t.inferences,r)))return function(e,t){for(let n=0;n<e.length;n++)!pO(e[n])&&pO(t[n])&&(e[n]=t[n])}(t.inferences,r),t.inferredTypeParameters=ce(t.inferredTypeParameters,e),Om(n)}return Om(kk(i,o,t))}}}}return t}function uO(e,t){if(2&t){cM(e).flags|=4}}function pO(e){return!(!e.candidates&&!e.contraCandidates)}function fO(e){return!!(e.candidates||e.contraCandidates||mf(e.typeParameter))}function mO(e,t){return se(e,(e=>e.symbol.escapedName===t))}function _O(e,t){let n=t.length;for(;n>1&&t.charCodeAt(n-1)>=48&&t.charCodeAt(n-1)<=57;)n--;const r=t.slice(0,n);for(let o=1;;o++){const t=r+o;if(!mO(e,t))return t}}function hO(e){const t=Nk(e);if(t&&!t.typeParameters)return bm(t)}function gO(e){const t=yO(e);if(t)return t;if(268435456&e.flags&&to){const t=to[Hz(e)];if(t)return t}const n=Ao,r=bO(e,64);if(Ao!==n){(to||(to=[]))[Hz(e)]=r,jx(e,268435456|e.flags)}return r}function yO(e){let t=Ty(e,!0);if(yL(t)){const e=vL(t);if(!Bc(e))return JE(e)}if(t=Ty(e),bD(t)){const e=yO(t.expression);return e?eF(e):void 0}return!dD(t)||108===t.expression.kind||tg(t,!0)||SP(t)?pu(t)&&!Bc(t.type)?JE(t.type):ed(e)||Id(e)?bO(e):void 0:Pc(t)?function(e){const t=bO(e.expression),n=WA(t,e.expression),r=hO(t);return r&&FA(r,e,n!==t)}(t):hO(DL(t.expression))}function vO(e){const t=Hi(e);if(t.contextFreeType)return t.contextFreeType;nM(e,Tt,!1);const n=t.contextFreeType=bO(e,4);return oM(),n}function bO(e,n,r){var a,s;null==(a=kr)||a.push(kr.Phase.Check,"checkExpression",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const c=i;i=e,h=0;const d=function(e,n,r){const i=e.kind;if(t)switch(i){case 231:case 218:case 219:t.throwIfCancellationRequested()}switch(i){case 80:return SD(e,n);case 81:return GL(e);case 110:return wD(e);case 108:return zD(e);case 106:return Gt;case 15:case 11:return SI(e)?It:FE(BE(e.text));case 9:return AG(e),FE(GE(+e.text));case 10:return function(e){const t=ZC(e.parent)||ED(e.parent)&&ZC(e.parent.parent);if(!t&&A<7&&SG(e,Oa.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(e),FE(jE({negative:!1,base10Value:Nx(e.text)}));case 112:return qt;case 97:return Ht;case 228:return Qw(e);case 14:return ir;case 209:return CM(e,n,r);case 210:return UM(e,n);case 211:return FL(e,n);case 166:return WL(e,n);case 212:return mk(e,n);case 213:if(102===e.expression.kind)return TP(e);case 214:return function(e,t){var n,r,i;tG(e,e.typeArguments);const a=hP(e,void 0,t);if(a===so)return rn;if(bP(a,e),108===e.expression.kind)return en;if(214===e.kind){const t=a.declaration;if(t&&176!==t.kind&&180!==t.kind&&185!==t.kind&&(!SM(t)||176!==(null==(r=null==(n=cy(t))?void 0:n.parent)?void 0:r.kind))&&!Hg(t)&&!gP(t))return $&&Ai(e,Oa.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Tt}if($h(e)&&RP(e))return hm(e.arguments[0]);const s=bm(a);if(12288&s.flags&&SP(e))return UE(by(e.parent));if(213===e.kind&&!e.questionDotToken&&244===e.parent.kind&&16384&s.flags&&ym(a))if(TE(e.expression)){if(!aC(e)){const t=Ai(e.expression,Oa.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);iC(e.expression,t)}}else Ai(e.expression,Oa.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if($h(e)){const t=vP(e,!1);if(null==(i=null==t?void 0:t.exports)?void 0:i.size){const e=Os(t,t.exports,o,o,o);return e.objectFlags|=4096,Cv([s,e])}}return s}(e,n);case 215:return CP(e);case 217:return function(e,t){if(Xu(e)){if(_A(e))return wP(e.expression,hA(e),t);if(yL(e))return NP(e,t)}return bO(e.expression,t)}(e,n);case 231:return function(e){return wW(e),bz(e),function(e){if(e.name)return;const t=SL(e);if(!hv(t))return;let n;n=!C&&A<99&&Oh(!1,e)?Le(Ul(e))??e:PW(e);n&&(KB(n,8388608),(QN(t)||TC(t)||iD(t))&&yC(t.name)&&KB(n,16777216))}(e),sd(ps(e))}(e);case 218:case 219:return Cw(e,n);case 221:return function(e){return bO(e.expression),ci}(e);case 216:case 234:return function(e,t){if(216===e.kind){const t=Yf(e);t&&Qi(t.fileName,[".cts",".mts"])&&SG(e,Oa.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return NP(e,t)}(e,n);case 235:return LP(e);case 233:return kP(e);case 238:return function(e){return gz(e.type),wP(e.expression,e.type)}(e);case 236:return OP(e);case 220:return Pw(e);case 222:return function(e){return bz(e),wt}(e);case 223:return function(e){l((()=>ww(e)));const t=bO(e.expression),n=JO(t,!0,e,Oa.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==t||Gl(n)||3&t.flags||Ii(!1,d_(e,Oa.await_has_no_effect_on_the_type_of_this_expression)),n}(e);case 224:return function(e){const t=bO(e.operand);if(t===rn)return rn;switch(e.operand.kind){case 9:switch(e.operator){case 41:return FE(GE(-e.operand.text));case 40:return FE(GE(+e.operand.text))}break;case 10:if(41===e.operator)return FE(jE({negative:!0,base10Value:Nx(e.operand.text)}))}switch(e.operator){case 40:case 41:case 55:return wL(t,e.operand),Fw(t,12288)&&Ai(e.operand,Oa.The_0_operator_cannot_be_applied_to_type_symbol,as(e.operator)),40===e.operator?(Fw(t,2112)&&Ai(e.operand,Oa.Operator_0_cannot_be_applied_to_type_1,as(e.operator),il(Ux(t))),Vt):Ow(t);case 54:KF(t,e.operand);const n=fR(t,12582912);return 4194304===n?Ht:8388608===n?qt:Qt;case 46:case 47:return Dw(e.operand,wL(t,e.operand),Oa.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&kw(e.operand,Oa.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,Oa.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Ow(t)}return Rt}(e);case 225:return function(e){const t=bO(e.operand);return t===rn?rn:(Dw(e.operand,wL(t,e.operand),Oa.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&kw(e.operand,Oa.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,Oa.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Ow(t))}(e);case 226:return ae(e,n);case 227:return function(e,t){const n=qF(e.condition,t);return HF(e.condition,n,e.whenTrue),mv([bO(e.whenTrue,t),bO(e.whenFalse,t)],2)}(e,n);case 230:return function(e,t){return A<2&&KB(e,S.downlevelIteration?1536:1024),$F(33,bO(e.expression,t),Pt,e.expression)}(e,n);case 232:return wt;case 229:return function(e){l((function(){16384&e.flags||bG(e,Oa.A_yield_expression_is_only_allowed_in_a_generator_body),eN(e)&&Ai(e,Oa.yield_expressions_cannot_be_used_in_a_parameter_initializer)}));const t=fh(e);if(!t)return Tt;const n=Zy(t);if(!(1&n))return Tt;const r=0!==(2&n);e.asteriskToken&&(r&&A<99&&KB(e,26624),!r&&A<2&&S.downlevelIteration&&KB(e,256));let o=Em(t);o&&1048576&o.flags&&(o=BR(o,(e=>AO(e,n,void 0))));const i=o&&EW(o,r),a=i&&i.yieldType||Tt,s=i&&i.nextType||Tt,c=r?eF(s)||Tt:s,d=e.expression?bO(e.expression):wt,u=Sw(e,d,c,r);if(o&&u&&YS(u,a,e.expression||e,e.expression),e.asteriskToken)return QF(r?19:17,1,d,e.expression)||Tt;if(o)return bW(2,o,r)||Tt;let p=tN(2,t);return p||(p=Tt,l((()=>{if($&&!Jx(e)){const t=JN(e,void 0);t&&!zl(t)||Ai(e,Oa.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),p}(e);case 237:return function(e){return e.isSpread?Mb(e.type,Vt):e.type}(e);case 294:return TL(e,n);case 284:case 285:return function(e){return bz(e),dL(e)||Tt}(e);case 288:return function(e){_L(e.openingFragment);const t=Yf(e);return!LT(S)||!S.jsxFactory&&!t.pragmas.has("jsx")||S.jsxFragmentFactory||t.pragmas.has("jsxfrag")||Ai(e,S.jsxFactory?Oa.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:Oa.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),$M(e),dL(e)||Tt}(e);case 292:return ZM(e,n);case 286:In.fail("Shouldn't ever directly check a JsxOpeningElement")}return Rt}(e,n,r),u=dO(e,d,n);return Gw(u)&&function(e,t){const n=211===e.parent.kind&&e.parent.expression===e||212===e.parent.kind&&e.parent.expression===e||(80===e.kind||166===e.kind)&&Oz(e)||186===e.parent.kind&&e.parent.exprName===e||281===e.parent.kind;n||Ai(e,Oa.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);if(Kp(S)){In.assert(!!(128&t.symbol.flags));33554432&t.symbol.valueDeclaration.flags&&!wx(e)&&Ai(e,Oa.Cannot_access_ambient_const_enums_when_0_is_enabled,Te)}}(e,u),i=c,null==(s=kr)||s.pop(),u}function EO(e){JB(e),e.expression&&bG(e.expression,Oa.Type_expected),gz(e.constraint),gz(e.default);const t=eu(ps(e));lf(t),function(e){return pf(e)!==zn}(t)||Ai(e.default,Oa.Type_parameter_0_has_a_circular_default,il(t));const n=$p(t),r=ff(t);n&&r&&$S(r,Pu(AS(n,nS(t,r)),r),e.default,Oa.Type_0_does_not_satisfy_the_constraint_1),bz(e),l((()=>DW(e.name,Oa.Type_parameter_name_cannot_be_0)))}function SO(e){JB(e),WF(e);const t=fh(e);Gb(e,31)&&(176===t.kind&&am(t.body)||Ai(e,Oa.A_parameter_property_is_only_allowed_in_a_constructor_implementation),176===t.kind&&nC(e.name)&&"constructor"===e.name.escapedText&&Ai(e.name,Oa.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&fA(e)&&Vd(e.name)&&t.body&&Ai(e,Oa.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&nC(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&Ai(e,Oa.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),176!==t.kind&&180!==t.kind&&185!==t.kind||Ai(e,Oa.A_constructor_cannot_have_a_this_parameter),219===t.kind&&Ai(e,Oa.An_arrow_function_cannot_have_a_this_parameter),177!==t.kind&&178!==t.kind||Ai(e,Oa.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||Vd(e.name)||KS(Tf(sd(e.symbol)),cr)||Ai(e,Oa.A_rest_parameter_must_be_of_an_array_type)}function TO(e,t,n){for(const r of e.elements){if(DD(r))continue;const e=r.name;if(80===e.kind&&e.escapedText===n)return Ai(t,Oa.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((207===e.kind||206===e.kind)&&TO(e,t,n))return!0}}function xO(e){181===e.kind?function(e){JB(e)||function(e){const t=e.parameters[0];if(1!==e.parameters.length)return SG(t?t.name:e,Oa.An_index_signature_must_have_exactly_one_parameter);if(YB(e.parameters,Oa.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return SG(t.dotDotDotToken,Oa.An_index_signature_cannot_have_a_rest_parameter);if(Wb(t))return SG(t.name,Oa.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return SG(t.questionToken,Oa.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return SG(t.name,Oa.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return SG(t.name,Oa.An_index_signature_parameter_must_have_a_type_annotation);const n=JE(t.type);if(OR(n,(e=>!!(8576&e.flags)))||ub(n))return SG(t.name,Oa.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead);if(!WR(n,Jm))return SG(t.name,Oa.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type);if(!e.type)return SG(e,Oa.An_index_signature_must_have_a_type_annotation)}(e)}(e):184!==e.kind&&262!==e.kind&&185!==e.kind&&179!==e.kind&&176!==e.kind&&180!==e.kind||eG(e);const t=Zy(e);4&t||(3===(3&t)&&A<99&&KB(e,6144),2===(3&t)&&A<4&&KB(e,64),0!==(3&t)&&A<2&&KB(e,128)),MW(Cc(e)),function(e){const t=G(Sc(e),OM);if(!T(t))return;const n=$h(e),r=new Set,o=new Set;x(e.parameters,(({name:e},t)=>{nC(e)&&r.add(e.escapedText),Vd(e)&&o.add(t)}));const i=mm(e);if(i){const e=t.length-1,i=t[e];n&&i&&nC(i.name)&&i.typeExpression&&i.typeExpression.type&&!r.has(i.name.escapedText)&&!o.has(e)&&!cx(JE(i.typeExpression.type))&&Ai(i.name,Oa.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,kl(i.name))}else x(t,(({name:e,isNameFirst:t},i)=>{o.has(i)||nC(e)&&r.has(e.escapedText)||(gC(e)?n&&Ai(e,Oa.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,c_(e),c_(e.left)):t||Ri(n,e,Oa.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,kl(e)))}))}(e),x(e.parameters,SO),e.type&&gz(e.type),l((function(){!function(e){if(A>=2||!op(e)||33554432&e.flags||im(e.body))return;x(e.parameters,(e=>{e.name&&!Vd(e.name)&&e.name.escapedText===ve.escapedName&&Ti("noEmit",e,Oa.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(e);let t=Rb(e),n=t;if($h(e)){const r=yc(e);if(r&&r.typeExpression&&PC(r.typeExpression.type)){const e=Nk(JE(r.typeExpression));e&&e.declaration&&(t=Rb(e.declaration),n=r.typeExpression.type)}}if($&&!t)switch(e.kind){case 180:Ai(e,Oa.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Ai(e,Oa.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(t&&n){const r=Zy(e);if(1===(5&r)){const e=JE(t);e===en?Ai(n,Oa.A_generator_cannot_have_a_void_type_annotation):AO(e,r,n)}else 2===(3&r)&&function(e,t,n){const r=JE(t);if(A>=2){if(Gl(r))return;const e=Ag(!0);if(e!==On&&!dd(r,e))return void i(Oa.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,t,n,il(tF(r)||en))}else{if(function(e){sF(e&&Nh(e),!1)}(t),Gl(r))return;const a=Nh(t);if(void 0===a)return void i(Oa.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,il(r));const s=qa(a,111551,!0),l=s?sd(s):Rt;if(Gl(l))return void(80===a.kind&&"Promise"===a.escapedText&&pd(r)===Ag(!1)?Ai(n,Oa.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):i(Oa.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,c_(a)));const c=(o=!0,yr||(yr=ng("PromiseConstructorLike",0,o))||Nn);if(c===Nn)return void i(Oa.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,c_(a));const d=Oa.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!$S(l,c,n,d,(()=>t===n?void 0:cT(void 0,Oa.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type))))return;const u=a&&SE(a),p=qi(e.locals,u.escapedText,111551);if(p)return void Ai(p.valueDeclaration,Oa.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,kl(u),c_(a))}var o;function i(e,t,n,r){if(t===n)Ai(n,e,r);else{xx(Ai(n,Oa.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),d_(t,e,r))}}JO(r,!1,e,Oa.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,t,n)}181!==e.kind&&324!==e.kind&&_F(e)}))}function AO(e,t,n){const r=bW(0,e,0!==(2&t))||Tt;return $S(Ew(r,bW(1,e,0!==(2&t))||r,bW(2,e,0!==(2&t))||Mt,!!(2&t)),e,n)}function IO(e){const t=new Map;for(const n of e.members)if(171===n.kind){let e;const r=n.name;switch(r.kind){case 11:case 9:e=r.text;break;case 80:e=kl(r);break;default:continue}t.get(e)?(Ai(jl(n.symbol.valueDeclaration),Oa.Duplicate_identifier_0,e),Ai(n.name,Oa.Duplicate_identifier_0,e)):t.set(e,!0)}}function RO(e){if(264===e.kind){const t=ps(e);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==e)return}const t=Fm(ps(e));if(null==t?void 0:t.declarations){const e=new Map;for(const n of t.declarations)1===n.parameters.length&&n.parameters[0].type&&wR(JE(n.parameters[0].type),(t=>{const r=e.get(Jy(t));r?r.declarations.push(n):e.set(Jy(t),{type:t,declarations:[n]})}));e.forEach((e=>{if(e.declarations.length>1)for(const t of e.declarations)Ai(t,Oa.Duplicate_index_signature_for_type_0,il(e.type))}))}}function CO(e){JB(e)||function(e){if(yC(e.name)&&TD(e.name.expression)&&103===e.name.expression.operatorToken.kind)return SG(e.parent.members[0],Oa.A_mapped_type_may_not_declare_properties_or_methods);if(Md(e.parent)){if(zR(e.name)&&"constructor"===e.name.text)return SG(e.name,Oa.Classes_may_not_have_a_field_named_constructor);if(uG(e.name,Oa.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(A<2&&rC(e.name))return SG(e.name,Oa.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(A<2&&kd(e))return SG(e.name,Oa.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(kd(e)&&sG(e.questionToken,Oa.An_accessor_property_cannot_be_declared_optional))return!0}else if(264===e.parent.kind){if(uG(e.name,Oa.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(In.assertNode(e,SC),e.initializer)return SG(e.initializer,Oa.An_interface_property_cannot_have_an_initializer)}else if(WC(e.parent)){if(uG(e.name,Oa.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(In.assertNode(e,SC),e.initializer)return SG(e.initializer,Oa.A_type_literal_property_cannot_have_an_initializer)}33554432&e.flags&&mG(e);if(TC(e)&&e.exclamationToken&&(!Md(e.parent)||!e.type||e.initializer||33554432&e.flags||jb(e)||Hb(e))){const t=e.initializer?Oa.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?Oa.A_definite_assignment_assertion_is_not_permitted_in_this_context:Oa.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return SG(e.exclamationToken,t)}}(e)||iG(e.name),WF(e),DO(e),Gb(e,64)&&172===e.kind&&e.initializer&&Ai(e,Oa.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,o_(e.name))}function DO(e){if(rC(e.name)&&A<99){for(let t=n_(e);t;t=n_(t))Hi(t).flags|=1048576;if(CD(e.parent)){const t=xD(e.parent);t&&(Hi(e.name).flags|=32768,Hi(t).flags|=4096)}}}function NO(e){xO(e),function(e){const t=$h(e)?Cb(e):void 0,n=e.typeParameters||t&&Le(t);if(n){const t=n.pos===n.end?n.pos:Ts(Yf(e).text,n.pos);return EG(e,t,n.end-t,Oa.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){const t=e.type||Rb(e);if(t)SG(t,Oa.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),gz(e.body);const t=ps(e),n=Df(t,e.kind);function r(e){return!!md(e)||172===e.kind&&!jb(e)&&!!e.initializer}e===n&&UO(t),im(e.body)||l((function(){const t=e.parent;if(Fy(t)){AD(e.parent,t);const n=MD(t),o=ID(e.body);if(o){n&&Ai(o,Oa.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);if(!N&&(se(e.parent.members,r)||se(e.parameters,(e=>Gb(e,31)))))if(function(e,t){const n=by(e.parent);return VD(n)&&n.parent===t}(o,e.body)){let t;for(const n of e.body.statements){if(VD(n)&&M_(EL(n.expression))){t=n;break}if(MO(n))break}void 0===t&&Ai(e,Oa.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else Ai(o,Oa.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else n||Ai(e,Oa.Constructors_for_derived_classes_must_contain_a_super_call)}}))}function MO(e){return 108===e.kind||110===e.kind||!bh(e)&&!!oP(e,MO)}function LO(e){nC(e.name)&&"constructor"===kl(e.name)&&Md(e.parent)&&Ai(e.name,Oa.Class_constructor_may_not_be_an_accessor),l((function(){eG(e)||function(e){if(!(33554432&e.flags)&&187!==e.parent.kind&&264!==e.parent.kind){if(A<1)return SG(e.name,Oa.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(A<2&&rC(e.name))return SG(e.name,Oa.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===e.body&&!Gb(e,64))return EG(e,e.end-1,1,Oa._0_expected,"{")}if(e.body){if(Gb(e,64))return SG(e,Oa.An_abstract_accessor_cannot_have_an_implementation);if(187===e.parent.kind||264===e.parent.kind)return SG(e.body,Oa.An_implementation_cannot_be_declared_in_ambient_contexts)}if(e.typeParameters)return SG(e.name,Oa.An_accessor_cannot_have_type_parameters);if(!function(e){return dG(e)||e.parameters.length===(177===e.kind?0:1)}(e))return SG(e.name,177===e.kind?Oa.A_get_accessor_cannot_have_parameters:Oa.A_set_accessor_must_have_exactly_one_parameter);if(178===e.kind){if(e.type)return SG(e.name,Oa.A_set_accessor_cannot_have_a_return_type_annotation);const t=In.checkDefined(hb(e),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return SG(t.dotDotDotToken,Oa.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return SG(t.questionToken,Oa.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return SG(e.name,Oa.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(e)||iG(e.name);pF(e),xO(e),177===e.kind&&!(33554432&e.flags)&&am(e.body)&&512&e.flags&&(1024&e.flags||Ai(e.name,Oa.A_get_accessor_must_return_a_value));167===e.name.kind&&MM(e.name);if(Au(e)){const t=ps(e),n=Df(t,177),r=Df(t,178);if(n&&r&&!(1&CB(n))){Hi(n).flags|=1;const e=Zb(n),t=Zb(r);(64&e)!==(64&t)&&(Ai(n.name,Oa.Accessors_must_both_be_abstract_or_non_abstract),Ai(r.name,Oa.Accessors_must_both_be_abstract_or_non_abstract)),(4&e&&!(6&t)||2&e&&!(2&t))&&(Ai(n.name,Oa.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Ai(r.name,Oa.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const t=Jc(ps(e));177===e.kind&&Rw(e,t)})),gz(e.body),DO(e)}function kO(e,t,n){return e.typeArguments&&n<e.typeArguments.length?JE(e.typeArguments[n]):PO(e,t)[n]}function PO(e,t){return um(U(e.typeArguments,JE),t,dm(t),$h(e))}function wO(e,t){let n,r,o=!0;for(let i=0;i<t.length;i++){const a=$p(t[i]);a&&(n||(n=PO(e,t),r=eS(t,n)),o=o&&$S(n[i],AS(a,r),e.typeArguments[i],Oa.Type_0_does_not_satisfy_the_constraint_1))}return o}function OO(e){const t=JE(e);if(!Gl(t)){const n=Hi(e).resolvedSymbol;if(n)return function(e,t){if(!Gl(e))return 524288&t.flags&&Ui(t).typeParameters||(4&RS(e)?e.target.localTypeParameters:void 0)}(t,n)}}function FO(e){if(tG(e,e.typeArguments),183===e.kind&&!$h(e)&&!Zh(e)&&e.typeArguments&&e.typeName.end!==e.typeArguments.pos){const t=Yf(e);25===E_(t,e.typeName.end)&&EG(e,Ts(t.text,e.typeName.end),1,Oa.JSDoc_types_can_only_be_used_inside_documentation_comments)}x(e.typeArguments,gz),WO(e)}function WO(e){if(!Gl(JE(e))){e.typeArguments&&l((()=>{const t=OO(e);t&&wO(e,t)}));const t=Hi(e).resolvedSymbol;t&&se(t.declarations,(e=>sA(e)&&!!(536870912&e.flags)))&&Li(EP(e),t.declarations,t.escapedName)}}function zO(e,t){if(!(8388608&e.flags))return e;const n=e.objectType,r=e.indexType,o=wp(n)&&2===Op(n)?Wv(n,0):Jv(n,0),i=!!qf(n,Vt);if(WR(r,(e=>KS(e,o)||i&&Vf(e,Vt))))return 212===t.kind&&my(t)&&32&RS(n)&&1&Lp(n)&&Ai(t,Oa.Index_signature_in_type_0_only_permits_reading,il(n)),e;if(pb(n)){const e=rb(r,t);if(e){const r=wR(yf(n),(t=>kf(t,e)));if(r&&6&_S(r))return Ai(t,Oa.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Ll(e)),Rt}}return Ai(t,Oa.Type_0_cannot_be_used_to_index_type_1,il(r),il(n)),Rt}function BO(e){!function(e){var t;if(null==(t=e.members)?void 0:t.length)SG(e.members[0],Oa.A_mapped_type_may_not_declare_properties_or_methods)}(e),gz(e.typeParameter),gz(e.nameType),gz(e.type),e.type||eI(e,Tt);const t=wb(e),n=Rp(t);if(n)$S(n,gn,e.nameType);else{$S(Ip(t),gn,Dc(e.typeParameter))}}function GO(e){!function(e){if(158===e.operator){if(155!==e.type.kind)return SG(e.type,Oa._0_expected,as(155));let t=vy(e.parent);if($h(t)&&aM(t)){const e=ly(t);e&&(t=$g(e)||e)}switch(t.kind){case 260:const n=t;if(80!==n.name.kind)return SG(e,Oa.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Y_(n))return SG(e,Oa.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return SG(t.name,Oa.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!jb(t)||!Jb(t))return SG(t.name,Oa.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Gb(t,8))return SG(t.name,Oa.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:SG(e,Oa.unique_symbol_types_are_not_allowed_here)}}else if(148===e.operator&&188!==e.type.kind&&189!==e.type.kind)bG(e,Oa.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,as(155))}(e),gz(e.type)}function jO(e){return(Bb(e,2)||md(e))&&!!(33554432&e.flags)}function VO(e,t){let n=DG(e);if(264!==e.parent.kind&&263!==e.parent.kind&&231!==e.parent.kind&&33554432&e.flags){const t=t_(e);!(t&&128&t.flags)||128&n||fN(e.parent)&&pN(e.parent.parent)&&Bm(e.parent.parent)||(n|=32),n|=128}return n&t}function UO(e){l((()=>function(e){function t(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function n(e,n,r,o,i){if(0!==(o^i)){const o=VO(t(e,n),r);x(e,(e=>{const t=VO(e,r)^o;32&t?Ai(jl(e),Oa.Overload_signatures_must_all_be_exported_or_non_exported):128&t?Ai(jl(e),Oa.Overload_signatures_must_all_be_ambient_or_non_ambient):6&t?Ai(jl(e)||e,Oa.Overload_signatures_must_all_be_public_private_or_protected):64&t&&Ai(jl(e),Oa.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}}function r(e,n,r,o){if(r!==o){const r=Ug(t(e,n));x(e,(e=>{Ug(e)!==r&&Ai(jl(e),Oa.Overload_signatures_must_all_be_optional_or_required)}))}}const o=230;let i,a,s,l=0,c=o,d=!1,u=!0,p=!1;const f=e.declarations,m=0!==(16384&e.flags);function _(e){if(e.name&&im(e.name))return;let t=!1;const n=oP(e.parent,(n=>{if(t)return n;t=n===e}));if(n&&n.pos===e.end&&n.kind===e.kind){const t=n.name||n,r=n.name;if(e.name&&r&&(rC(e.name)&&rC(r)&&e.name.escapedText===r.escapedText||yC(e.name)&&yC(r)&&BS(MM(e.name),MM(r))||av(e.name)&&av(r)&&lv(e.name)===lv(r))){if((174===e.kind||173===e.kind)&&jb(e)!==jb(n)){Ai(t,jb(e)?Oa.Function_overload_must_be_static:Oa.Function_overload_must_not_be_static)}return}if(am(n.body))return void Ai(t,Oa.Function_implementation_name_must_be_0,o_(e.name))}const r=e.name||e;m?Ai(r,Oa.Constructor_implementation_is_missing):Gb(e,64)?Ai(r,Oa.All_declarations_of_an_abstract_method_must_be_consecutive):Ai(r,Oa.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let h=!1,g=!1,y=!1;const v=[];if(f)for(const b of f){const e=b,t=33554432&e.flags,n=e.parent&&(264===e.parent.kind||187===e.parent.kind)||t;if(n&&(s=void 0),263!==e.kind&&231!==e.kind||t||(y=!0),262===e.kind||174===e.kind||173===e.kind||176===e.kind){v.push(e);const t=VO(e,o);l|=t,c&=t,d=d||Ug(e),u=u&&Ug(e);const r=am(e.body);r&&i?m?g=!0:h=!0:(null==s?void 0:s.parent)===e.parent&&s.end!==e.pos&&_(s),r?i||(i=e):p=!0,s=e,n||(a=e)}$h(b)&&Td(b)&&b.jsDoc&&(p=T(iy(b))>0)}g&&x(v,(e=>{Ai(e,Oa.Multiple_constructor_implementations_are_not_allowed)}));h&&x(v,(e=>{Ai(jl(e)||e,Oa.Duplicate_function_implementation)}));if(y&&!m&&16&e.flags&&f){const t=G(f,(e=>263===e.kind)).map((e=>d_(e,Oa.Consider_adding_a_declare_modifier_to_this_class)));x(f,(n=>{const r=263===n.kind?Oa.Class_declaration_cannot_implement_overload_list_for_0:262===n.kind?Oa.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&xx(Ai(jl(n)||n,r,wl(e)),...t)}))}!a||a.body||Gb(a,64)||a.questionToken||_(a);if(p&&(f&&(n(f,i,o,l,c),r(f,i,d,u)),i)){const t=_m(e),n=pm(i);for(const e of t)if(!_T(n,e)){xx(Ai(e.declaration&&SM(e.declaration)?e.declaration.parent.tagName:e.declaration,Oa.This_overload_signature_is_not_compatible_with_its_implementation_signature),d_(i,Oa.The_implementation_signature_is_declared_here));break}}}(e)))}function HO(e){l((()=>function(e){let t=e.localSymbol;if(!t&&(t=ps(e),!t.exportSymbol))return;if(Df(t,e.kind)!==e)return;let n=0,r=0,o=0;for(const l of t.declarations){const e=s(l),t=VO(l,2080);32&t?2048&t?o|=e:n|=e:r|=e}const i=n&r,a=o&(n|r);if(i||a)for(const l of t.declarations){const e=s(l),t=jl(l);e&a?Ai(t,Oa.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,o_(t)):e&i&&Ai(t,Oa.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,o_(t))}function s(e){let t=e;switch(t.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return Pm(t)||0!==zW(t)?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const e=t,n=CN(e)?e.expression:e.right;if(!EE(n))return 1;t=n;case 271:case 274:case 273:let r=0;return x(Wa(ps(t)).declarations,(e=>{r|=s(e)})),r;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return In.failBadSyntaxKind(t)}}}(e)))}function KO(e,t,n,...r){const o=qO(e,t);return o&&eF(o,t,n,...r)}function qO(e,t,n){if(zl(e))return;const r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(dd(e,Ag(!1)))return r.promisedTypeOfPromise=D_(e)[0];if(Bw(cf(e),402915324))return;const i=Ol(e,"then");if(zl(i))return;const a=i?wf(i,0):o;if(0===a.length)return void(t&&Ai(t,Oa.A_promise_must_have_a_then_method));let s,l;for(const o of a){const t=gm(o);t&&t!==en&&!AT(e,t,di)?s=t:l=Ee(l,o)}if(!l)return In.assertIsDefined(s),n&&(n.value=s),void(t&&Ai(t,Oa.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,il(e),il(s)));const c=hR(mv(U(l,ew)),2097152);if(zl(c))return;const d=wf(c,0);if(0!==d.length)return r.promisedTypeOfPromise=mv(U(d,ew),2);t&&Ai(t,Oa.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}function JO(e,t,n,r,...o){return(t?eF(e,n,r,...o):tF(e,n,r,...o))||Rt}function XO(e){if(Bw(cf(e),402915324))return!1;const t=Ol(e,"then");return!!t&&wf(hR(t,2097152),0).length>0}function $O(e){var t;if(16777216&e.flags){const n=jg(!1);return!!n&&e.aliasSymbol===n&&1===(null==(t=e.aliasTypeArguments)?void 0:t.length)}return!1}function YO(e){return 1048576&e.flags?VR(e,YO):$O(e)?e.aliasTypeArguments[0]:e}function QO(e){if(zl(e)||$O(e))return!1;if(pb(e)){const t=lf(e);if(t?3&t.flags||gT(t)||OR(t,XO):Ww(e,8650752))return!0}return!1}function ZO(e){if(QO(e)){const t=function(e){const t=jg(!0);if(t)return w_(t,[YO(e)])}(e);if(t)return t}return In.assert($O(e)||void 0===qO(e),"type provided should not be a non-generic 'promise'-like."),e}function eF(e,t,n,...r){const o=tF(e,t,n,...r);return o&&ZO(o)}function tF(e,t,n,...r){if(zl(e))return e;if($O(e))return e;const o=e;if(o.awaitedTypeOfType)return o.awaitedTypeOfType;if(1048576&e.flags){if(ai.lastIndexOf(e.id)>=0)return void(t&&Ai(t,Oa.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));const i=t?e=>tF(e,t,n,...r):tF;ai.push(e.id);const a=VR(e,i);return ai.pop(),o.awaitedTypeOfType=a}if(QO(e))return o.awaitedTypeOfType=e;const i={value:void 0},a=qO(e,void 0,i);if(a){if(e.id===a.id||ai.lastIndexOf(a.id)>=0)return void(t&&Ai(t,Oa.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));ai.push(e.id);const i=tF(a,t,n,...r);if(ai.pop(),!i)return;return o.awaitedTypeOfType=i}if(!XO(e))return o.awaitedTypeOfType=e;if(t){let o;In.assertIsDefined(n),i.value&&(o=cT(o,Oa.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,il(e),il(i.value))),o=cT(o,n,...r),si.add(f_(Yf(t),t,o))}}function nF(e){const t=hP(e);bP(t,e);const n=bm(t);if(1&n.flags)return;const r=hw(e);if(!(null==r?void 0:r.resolvedReturnType))return;let o;const i=r.resolvedReturnType;switch(e.parent.kind){case 263:case 231:o=Oa.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!C){o=Oa.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:o=Oa.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:o=Oa.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return In.failBadSyntaxKind(e.parent)}$S(n,i,e.expression,o)}function rF(e,t,n,r,i,a=n.length,s=0){return Fu(UA.createFunctionTypeNode(void 0,o,UA.createKeywordTypeNode(133)),e,t,n,r,i,a,s)}function oF(e,t,n,r,o,i,a){return Om(rF(e,t,n,r,o,i,a))}function iF(e){return oF(void 0,void 0,o,e)}function aF(e){return oF(void 0,void 0,[Pi("value",e)],en)}function sF(e,t){if(!e)return;const n=SE(e),r=2097152|(80===e.kind?788968:1920),i=ta(n,n.escapedText,r,void 0,void 0,!0);if(i&&2097152&i.flags)if(Re&&xs(i)&&!EB(Wa(i))&&!ja(i))Ua(i);else if(t&&Kp(S)&&Vp(S)>=5&&!xs(i)&&!se(i.declarations,ld)){const t=Ai(e,Oa.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),r=L(i.declarations||o,ga);r&&xx(t,d_(r,Oa._0_was_imported_here,kl(n)))}}function lF(e){const t=cF(e);t&&bd(t)&&sF(t,!0)}function cF(e){if(e)switch(e.kind){case 193:case 192:return dF(e.types);case 194:return dF([e.trueType,e.falseType]);case 196:case 202:return cF(e.type);case 183:return e.typeName}}function dF(e){let t;for(let n of e){for(;196===n.kind||202===n.kind;)n=n.type;if(146===n.kind)continue;if(!z&&(201===n.kind&&106===n.literal.kind||157===n.kind))continue;const e=cF(n);if(!e)return;if(t){if(!nC(t)||!nC(e)||t.escapedText!==e.escapedText)return}else t=e}return t}function uF(e){const t=Ab(e);return ip(e)?q_(t):t}function pF(e){if(!bk(e)||!Xb(e)||!e.modifiers||!Lh(C,e,e.parent,e.parent.parent))return;const t=L(e.modifiers,EC);if(t){if(C)KB(t,8),169===e.kind&&KB(t,32);else if(A<99)if(KB(t,8),lN(e))if(e.name){PW(e)&&KB(t,8388608)}else KB(t,8388608);else CD(e)||(rC(e.name)&&(AC(e)||Ld(e)||kd(e))&&KB(t,8388608),yC(e.name)&&KB(t,16777216));if(S.emitDecoratorMetadata)switch(KB(t,16),e.kind){case 263:const t=_b(e);if(t)for(const e of t.parameters)lF(uF(e));break;case 177:case 178:const n=177===e.kind?178:177,r=Df(ps(e),n);lF(Hc(e)||r&&Hc(r));break;case 174:for(const i of e.parameters)lF(uF(i));lF(Rb(e));break;case 172:lF(Ab(e));break;case 169:lF(uF(e));const o=e.parent;for(const e of o.parameters)lF(uF(e));lF(Rb(o))}for(const t of e.modifiers)EC(t)&&nF(t)}}function fF(e){switch(e.kind){case 80:return e;case 211:return e.name;default:return}}function mF(e){var t;pF(e),xO(e);const n=Zy(e);if(e.name&&167===e.name.kind&&MM(e.name),Au(e)){const n=ps(e),r=e.localSymbol||n,o=null==(t=r.declarations)?void 0:t.find((t=>t.kind===e.kind&&!(524288&t.flags)));e===o&&UO(r),n.parent&&UO(n)}const r=173===e.kind?void 0:e.body;if(gz(r),Rw(e,Em(e)),l((function(){Rb(e)||(im(r)&&!jO(e)&&eI(e,Tt),1&n&&am(r)&&bm(pm(e)))})),$h(e)){const t=yc(e);t&&t.typeExpression&&!bM(JE(t.typeExpression),e)&&Ai(t.typeExpression.type,Oa.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function _F(e){l((function(){const t=Yf(e);let n=bo.get(t.path);n||(n=[],bo.set(t.path,n));n.push(e)}))}function hF(e,t){for(const n of e)switch(n.kind){case 263:case 231:vF(n,t),EF(n,t);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:RF(n,t);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:n.body&&RF(n,t),EF(n,t);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:EF(n,t);break;case 195:bF(n,t);break;default:In.assertNever(n,"Node should not have been registered for unused identifiers check")}}function gF(e,t,n){n(e,0,d_(jl(e)||e,sA(e)?Oa._0_is_declared_but_never_used:Oa._0_is_declared_but_its_value_is_never_read,t))}function yF(e){return nC(e)&&95===kl(e).charCodeAt(0)}function vF(e,t){for(const n of e.members)switch(n.kind){case 174:case 172:case 177:case 178:if(178===n.kind&&32768&n.symbol.flags)break;const e=ps(n);e.isReferenced||!(Bb(n,2)||Bl(n)&&rC(n.name))||33554432&n.flags||t(n,0,d_(n.name,Oa._0_is_declared_but_its_value_is_never_read,rl(e)));break;case 176:for(const r of n.parameters)!r.symbol.isReferenced&&Gb(r,2)&&t(r,0,d_(r.name,Oa.Property_0_is_declared_but_its_value_is_never_read,wl(r.symbol)));break;case 181:case 240:case 175:break;default:In.fail("Unexpected class member")}}function bF(e,t){const{typeParameter:n}=e;SF(n)&&t(e,1,d_(e,Oa._0_is_declared_but_its_value_is_never_read,kl(n.name)))}function EF(e,t){const n=ps(e).declarations;if(!n||Fe(n)!==e)return;const r=Cc(e),o=new Set;for(const i of r){if(!SF(i))continue;const e=kl(i.name),{parent:n}=i;if(195!==n.kind&&n.typeParameters.every(SF)){if(re(o,n)){const r=Yf(n),o=BM(n)?Ix(n):Rx(r,n.typeParameters),a=1===n.typeParameters.length?[Oa._0_is_declared_but_its_value_is_never_read,e]:[Oa.All_type_parameters_are_unused];t(i,1,iT(r,o.pos,o.end-o.pos,...a))}}else t(i,1,d_(i,Oa._0_is_declared_but_its_value_is_never_read,e))}}function SF(e){return!(262144&us(e.symbol).isReferenced)&&!yF(e.name)}function TF(e,t,n,r){const o=String(r(t)),i=e.get(o);i?i[1].push(n):e.set(o,[t,[n]])}function AF(e){return yt(bv(e),bC)}function IF(e){return iD(e)?rD(e.parent)?!(!e.propertyName||!yF(e.name)):yF(e.name):Pm(e)||(iN(e)&&vu(e.parent.parent)||DF(e))&&yF(e.name)}function RF(e,t){const n=new Map,r=new Map,o=new Map;e.locals.forEach((e=>{var i;if(!(262144&e.flags?!(3&e.flags)||3&e.isReferenced:e.isReferenced||e.exportSymbol)&&e.declarations)for(const a of e.declarations)if(!IF(a))if(DF(a))TF(n,273===(i=a).kind?i:274===i.kind?i.parent:i.parent.parent,a,Hz);else if(iD(a)&&rD(a.parent)){a!==Fe(a.parent.elements)&&Fe(a.parent.elements).dotDotDotToken||TF(r,a.parent,a,Hz)}else if(iN(a)){const e=7&NG(a),t=jl(a);(4===e||6===e)&&t&&yF(t)||TF(o,a.parent,a,Hz)}else{const n=e.valueDeclaration&&AF(e.valueDeclaration),o=e.valueDeclaration&&jl(e.valueDeclaration);n&&o?gl(n,n.parent)||vb(n)||yF(o)||(iD(a)&&oD(a.parent)?TF(r,a.parent,a,Hz):t(n,1,d_(o,Oa._0_is_declared_but_its_value_is_never_read,wl(e)))):gF(a,wl(e),t)}})),n.forEach((([e,n])=>{const r=e.parent;if((e.name?1:0)+(e.namedBindings?274===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===n.length)t(r,0,1===n.length?d_(r,Oa._0_is_declared_but_its_value_is_never_read,kl(Pe(n).name)):d_(r,Oa.All_imports_in_import_declaration_are_unused));else for(const o of n)gF(o,kl(o.name),t)})),r.forEach((([e,n])=>{const r=AF(e.parent)?1:0;if(e.elements.length===n.length)1===n.length&&260===e.parent.kind&&261===e.parent.parent.kind?TF(o,e.parent.parent,e.parent,Hz):t(e,r,1===n.length?d_(e,Oa._0_is_declared_but_its_value_is_never_read,CF(Pe(n).name)):d_(e,Oa.All_destructured_elements_are_unused));else for(const o of n)t(o,r,d_(o,Oa._0_is_declared_but_its_value_is_never_read,CF(o.name)))})),o.forEach((([e,n])=>{if(e.declarations.length===n.length)t(e,0,1===n.length?d_(Pe(n).name,Oa._0_is_declared_but_its_value_is_never_read,CF(Pe(n).name)):d_(243===e.parent.kind?e.parent:e,Oa.All_variables_are_unused));else for(const r of n)t(r,0,d_(r,Oa._0_is_declared_but_its_value_is_never_read,CF(r.name)))}))}function CF(e){switch(e.kind){case 80:return kl(e);case 207:case 206:return CF(vt(Pe(e.elements),iD).name);default:return In.assertNever(e)}}function DF(e){return 273===e.kind||276===e.kind||274===e.kind}function NF(e){if(241===e.kind&&xG(e),Dd(e)){const t=xo;x(e.statements,gz),xo=t}else x(e.statements,gz);e.locals&&_F(e)}function MF(e,t,n){if((null==t?void 0:t.escapedText)!==n)return!1;if(172===e.kind||171===e.kind||174===e.kind||173===e.kind||177===e.kind||178===e.kind||303===e.kind)return!1;if(33554432&e.flags)return!1;if((yN(e)||hN(e)||RN(e))&&ld(e))return!1;const r=bv(e);return!bC(r)||!im(r.parent.body)}function LF(e){Cl(e,(t=>{if(4&CB(t)){return 80!==e.kind?Ai(jl(e),Oa.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Ai(e,Oa.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1}))}function kF(e){Cl(e,(t=>{if(8&CB(t)){return 80!==e.kind?Ai(jl(e),Oa.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Ai(e,Oa.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1}))}function PF(e){1048576&CB(n_(e))&&(In.assert(Bl(e)&&nC(e.name)&&"string"===typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Ti("noEmit",e,Oa.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function wF(e){let t=!1;if(CD(e)){for(const n of e.members)if(2097152&CB(n)){t=!0;break}}else if(_D(e))2097152&CB(e)&&(t=!0);else{const n=n_(e);n&&2097152&CB(n)&&(t=!0)}t&&(In.assert(Bl(e)&&nC(e.name),"The target of a Reflect collision check should be an identifier"),Ti("noEmit",e,Oa.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,o_(e.name),"Reflect"))}function OF(e,t){t&&(function(e,t){if(R>=5&&!(R>=100&&1===Yf(e).impliedNodeFormat))return;if(!t||!MF(e,t,"require")&&!MF(e,t,"exports"))return;if(pN(e)&&1!==zW(e))return;const n=Dl(e);312===n.kind&&T_(n)&&Ti("noEmit",t,Oa.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,o_(t),o_(t))}(e,t),function(e,t){if(!t||A>=4||!MF(e,t,"Promise"))return;if(pN(e)&&1!==zW(e))return;const n=Dl(e);312===n.kind&&T_(n)&&4096&n.flags&&Ti("noEmit",t,Oa.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,o_(t),o_(t))}(e,t),function(e,t){A<=8&&(MF(e,t,"WeakMap")||MF(e,t,"WeakSet"))&&ri.push(e)}(e,t),function(e,t){t&&A>=2&&A<=8&&MF(e,t,"Reflect")&&oi.push(e)}(e,t),Md(e)?(DW(t,Oa.Class_name_cannot_be_0),33554432&e.flags||function(e){A>=1&&"Object"===e.escapedText&&(R<5||1===Yf(e).impliedNodeFormat)&&Ai(e,Oa.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,wo[R])}(t)):uN(e)&&DW(t,Oa.Enum_name_cannot_be_0))}function FF(e){return e===xt?Tt:e===lr?sr:e}function WF(e){var t;if(pF(e),iD(e)||gz(e.type),!e.name)return;if(167===e.name.kind&&(MM(e.name),Qu(e)&&e.initializer&&tO(e.initializer)),iD(e)){if(e.propertyName&&nC(e.name)&&vv(e)&&im(fh(e).body))return void ii.push(e);rD(e.parent)&&e.dotDotDotToken&&A<5&&KB(e,4),e.propertyName&&167===e.propertyName.kind&&MM(e.propertyName);const t=e.parent.parent,n=Vl(t,e.dotDotDotToken?32:0),r=e.propertyName||e.name;if(n&&!Vd(r)){const o=zv(r);if(xA(o)){const r=kf(n,AA(o));r&&(lk(r,void 0,!1),IL(e,!!t.initializer&&108===t.initializer.kind,!1,n,r))}}}if(Vd(e.name)&&(207===e.name.kind&&A<2&&S.downlevelIteration&&KB(e,512),x(e.name.elements,gz)),e.initializer&&vv(e)&&im(fh(e).body))return void Ai(e,Oa.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);if(Vd(e.name)){if($I(e))return;const t=Qu(e)&&e.initializer&&249!==e.parent.parent.kind,n=!se(e.name.elements,hn(DD));if(t||n){const r=Nc(e);if(t){const t=tO(e.initializer);z&&n?OL(t,e):YS(t,Nc(e),e,e.initializer)}n&&(oD(e.name)?$F(65,r,Pt,e):z&&OL(r,e))}return}const n=ps(e);if(2097152&n.flags&&(rg(e)||og(e)))return void rz(e);const r=FF(sd(n));if(e===n.valueDeclaration){const i=Qu(e)&&dg(e);if(i){if(!($h(e)&&sD(i)&&(0===i.properties.length||IE(e.name))&&!!(null==(t=n.exports)?void 0:t.size))&&249!==e.parent.parent.kind){const t=tO(i);YS(t,r,e,i,void 0);const n=7&NG(e);if(6===n){const e=(o=!0,Wr||(Wr=ng("AsyncDisposable",0,o))||Nn),n=Wg(!0);if(e!==Nn&&n!==Nn){$S(t,mv([e,n,Bt,Pt]),i,Oa.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(4===n){const e=Wg(!0);if(e!==Nn){$S(t,mv([e,Bt,Pt]),i,Oa.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}}n.declarations&&n.declarations.length>1&&se(n.declarations,(t=>t!==e&&X_(t)&&!BF(t,e)))&&Ai(e.name,Oa.All_declarations_of_0_must_have_identical_modifiers,o_(e.name))}else{const t=FF(Nc(e));Gl(r)||Gl(t)||BS(r,t)||67108864&n.flags||zF(n.valueDeclaration,r,e,t),Qu(e)&&e.initializer&&YS(tO(e.initializer),t,e,e.initializer,void 0),n.valueDeclaration&&!BF(e,n.valueDeclaration)&&Ai(e.name,Oa.All_declarations_of_0_must_have_identical_modifiers,o_(e.name))}var o;172!==e.kind&&171!==e.kind&&(HO(e),260!==e.kind&&208!==e.kind||function(e){if(0!==(7&NG(e))||vv(e))return;const t=ps(e);if(1&t.flags){if(!nC(e.name))return In.fail();const n=ta(e,e.name.escapedText,3,void 0,void 0,!1);if(n&&n!==t&&2&n.flags&&7&xL(n)){const t=jy(n.valueDeclaration,261),r=243===t.parent.kind&&t.parent.parent?t.parent.parent:void 0;if(!r||!(241===r.kind&&Td(r.parent)||268===r.kind||267===r.kind||312===r.kind)){const t=rl(n);Ai(e,Oa.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,t,t)}}}}(e),OF(e,e.name))}function zF(e,t,n,r){const o=jl(n),i=172===n.kind||171===n.kind?Oa.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:Oa.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,a=o_(o),s=Ai(o,i,a,il(t),il(r));e&&xx(s,d_(e,Oa._0_was_also_declared_here,a))}function BF(e,t){if(169===e.kind&&260===t.kind||260===e.kind&&169===t.kind)return!0;if(Ug(e)!==Ug(t))return!1;return $b(e,1358)===$b(t,1358)}function GF(e){var t,n;null==(t=kr)||t.push(kr.Phase.Check,"checkVariableDeclaration",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath}),function(e){const t=NG(e),n=7&t;if(Vd(e.name))switch(n){case 6:return SG(e,Oa._0_declarations_may_not_have_binding_patterns,"await using");case 4:return SG(e,Oa._0_declarations_may_not_have_binding_patterns,"using")}if(249!==e.parent.parent.kind&&250!==e.parent.parent.kind)if(33554432&t)mG(e);else if(!e.initializer){if(Vd(e.name)&&!Vd(e.parent))return SG(e,Oa.A_destructuring_declaration_must_have_an_initializer);switch(n){case 6:return SG(e,Oa._0_declarations_must_be_initialized,"await using");case 4:return SG(e,Oa._0_declarations_must_be_initialized,"using");case 2:return SG(e,Oa._0_declarations_must_be_initialized,"const")}}if(e.exclamationToken&&(243!==e.parent.parent.kind||!e.type||e.initializer||33554432&t)){const t=e.initializer?Oa.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?Oa.A_definite_assignment_assertion_is_not_permitted_in_this_context:Oa.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return SG(e.exclamationToken,t)}!(R<5||1===Yf(e).impliedNodeFormat)||4===R||33554432&e.parent.parent.flags||!Gb(e.parent.parent,32)||_G(e.name);!!n&&hG(e.name)}(e),WF(e),null==(n=kr)||n.pop()}function jF(e){return function(e){if(e.dotDotDotToken){const t=e.parent.elements;if(e!==Fe(t))return SG(e,Oa.A_rest_element_must_be_last_in_a_destructuring_pattern);if(YB(t,Oa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return SG(e.name,Oa.A_rest_element_cannot_have_a_property_name)}if(e.dotDotDotToken&&e.initializer)EG(e,e.initializer.pos-1,1,Oa.A_rest_element_cannot_have_an_initializer)}(e),WF(e)}function VF(e){const t=7&xl(e);4!==t&&6!==t||KB(e,33554432),x(e.declarations,gz)}function UF(e){JB(e)||gG(e.declarationList)||function(e){if(!yG(e.parent)){const t=7&NG(e.declarationList);if(t){const n=1===t?"let":2===t?"const":4===t?"using":6===t?"await using":In.fail("Unknown BlockScope flag");SG(e,Oa._0_declarations_can_only_be_declared_inside_a_block,n)}}}(e),VF(e.declarationList)}function HF(e,t,n){function r(e,t){for(o(e=Ty(e),t);TD(e)&&(57===e.operatorToken.kind||61===e.operatorToken.kind);)o(e=Ty(e.left),t)}function o(e,n){const o=fE(e)?Ty(e.right):e;if(bg(o))return;if(fE(o))return void r(o,n);const i=o===e?t:qF(o),a=lD(o)&&nO(o.expression);if(!mR(i,4194304)||a)return;const s=wf(i,0),l=!!KO(i);if(0===s.length&&!l)return;const c=nC(o)?o:lD(o)?o.name:void 0,d=c&&Xz(c);if(!d&&!l)return;const u=d&&TD(e.parent)&&function(e,t){for(;TD(e)&&56===e.operatorToken.kind;){if(oP(e.right,(function e(n){if(nC(n)){const e=Xz(n);if(e&&e===t)return!0}return oP(n,e)})))return!0;e=e.parent}return!1}(e.parent,d)||d&&n&&function(e,t,n,r){return!!oP(t,(function t(o){if(nC(o)){const t=Xz(o);if(t&&t===r){if(nC(e)||nC(n)&&TD(n.parent))return!0;let t=n.parent,r=o.parent;for(;t&&r;){if(nC(t)&&nC(r)||110===t.kind&&110===r.kind)return Xz(t)===Xz(r);if(lD(t)&&lD(r)){if(Xz(t.name)!==Xz(r.name))return!1;r=r.expression,t=t.expression}else{if(!dD(t)||!dD(r))return!1;r=r.expression,t=t.expression}}}}return oP(o,t)}))}(e,n,c,d);u||(l?Ci(o,!0,Oa.This_condition_will_always_return_true_since_this_0_is_always_defined,sl(i)):Ai(o,Oa.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}z&&r(e,n)}function KF(e,t){return 16384&e.flags&&Ai(t,Oa.An_expression_of_type_void_cannot_be_tested_for_truthiness),e}function qF(e,t){return KF(bO(e,t),e)}function JF(e){cG(e);const t=ML(bO(e.expression));if(261===e.initializer.kind){const t=e.initializer.declarations[0];t&&Vd(t.name)&&Ai(t.name,Oa.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),VF(e.initializer)}else{const n=e.initializer,r=bO(n);209===n.kind||210===n.kind?Ai(n,Oa.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):KS(function(e){const t=$v(Jv(e));return 131072&t.flags?jt:t}(t),r)?kw(n,Oa.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,Oa.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Ai(n,Oa.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}t!==tn&&zw(t,126091264)||Ai(e.expression,Oa.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,il(t)),gz(e.statement),e.locals&&_F(e)}function XF(e){return $F(e.awaitModifier?15:13,DL(e.expression),Pt,e.expression)}function $F(e,t,n,r){return zl(t)?t:YF(e,t,n,r,!0)||Tt}function YF(e,t,n,r,o){const i=0!==(2&e);if(t===tn)return void uW(r,t,i);const a=A>=2,s=!a&&S.downlevelIteration,l=S.noUncheckedIndexedAccess&&!!(128&e);if(a||s||i){const i=rW(t,e,a?r:void 0);if(o&&i){const t=8&e?Oa.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?Oa.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?Oa.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?Oa.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;t&&$S(n,i.nextType,r,t)}if(i||a)return l?SR(i&&i.yieldType):i&&i.yieldType}let c=t,d=!1,u=!1;if(4&e){if(1048576&c.flags){const e=t.types,n=G(e,(e=>!(402653316&e.flags)));n!==e&&(c=mv(n,2))}else 402653316&c.flags&&(c=tn);if(u=c!==t,u&&(A<1&&r&&(Ai(r,Oa.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),d=!0),131072&c.flags))return l?SR(jt):jt}if(!_x(c)){if(r&&!d){const n=!!(4&e)&&!u,[o,i]=function(n,r){var o;if(r)return n?[Oa.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[Oa.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];if(QF(e,0,t,void 0))return[Oa.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1];if(function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null==(o=t.symbol)?void 0:o.escapedName))return[Oa.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0];return n?[Oa.Type_0_is_not_an_array_type_or_a_string_type,!0]:[Oa.Type_0_is_not_an_array_type,!0]}(n,s);Ci(r,i&&!!KO(c),o,il(c))}return u?l?SR(jt):jt:void 0}const p=Jf(c,Vt);return u&&p?402653316&p.flags&&!S.noUncheckedIndexedAccess?jt:mv(l?[p,jt,Pt]:[p,jt],2):128&e?SR(p):p}function QF(e,t,n,r){if(zl(n))return;const o=rW(n,e,r);return o&&o[Qz(t)]}function ZF(e=tn,t=tn,n=Mt){if(67359327&e.flags&&180227&t.flags&&180227&n.flags){const r=s_([e,t,n]);let o=uo.get(r);return o||(o={yieldType:e,returnType:t,nextType:n},uo.set(r,o)),o}return{yieldType:e,returnType:t,nextType:n}}function eW(e){let t,n,r;for(const o of e)if(void 0!==o&&o!==po){if(o===fo)return fo;t=Ee(t,o.yieldType),n=Ee(n,o.returnType),r=Ee(r,o.nextType)}return t||n||r?ZF(t&&mv(t),n&&mv(n),r&&Cv(r)):po}function tW(e,t){return e[t]}function nW(e,t,n){return e[t]=n}function rW(e,t,n){var r,o;if(zl(e))return fo;if(!(1048576&e.flags)){const o=n?{errors:void 0}:void 0,i=iW(e,t,n,o);if(i===po){if(n){const r=uW(n,e,!!(2&t));(null==o?void 0:o.errors)&&xx(r,...o.errors)}return}if(null==(r=null==o?void 0:o.errors)?void 0:r.length)for(const e of o.errors)si.add(e);return i}const i=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",a=tW(e,i);if(a)return a===po?void 0:a;let s;for(const c of e.types){const r=n?{errors:void 0}:void 0,a=iW(c,t,n,r);if(a===po){if(n){const o=uW(n,e,!!(2&t));(null==r?void 0:r.errors)&&xx(o,...r.errors)}return void nW(e,i,po)}if(null==(o=null==r?void 0:r.errors)?void 0:o.length)for(const e of r.errors)si.add(e);s=Ee(s,a)}const l=s?eW(s):po;return nW(e,i,l),l===po?void 0:l}function oW(e,t){if(e===po)return po;if(e===fo)return fo;const{yieldType:n,returnType:r,nextType:o}=e;return t&&jg(!0),ZF(eF(n,t)||Tt,eF(r,t)||Tt,o)}function iW(e,t,n,r){if(zl(e))return fo;let o=!1;if(2&t){const r=aW(e,ho)||lW(e,ho);if(r){if(r!==po||!n)return 8&t?oW(r,n):r;o=!0}}if(1&t){let r=aW(e,go)||lW(e,go);if(r)if(r===po&&n)o=!0;else{if(!(2&t))return r;if(r!==po)return r=oW(r,n),o?r:nW(e,"iterationTypesOfAsyncIterable",r)}}if(2&t){const t=dW(e,ho,n,r,o);if(t!==po)return t}if(1&t){let i=dW(e,go,n,r,o);if(i!==po)return 2&t?(i=oW(i,n),o?i:nW(e,"iterationTypesOfAsyncIterable",i)):i}return po}function aW(e,t){return tW(e,t.iterableCacheKey)}function sW(e,t){const n=aW(e,t)||dW(e,t,void 0,void 0,!1);return n===po?_o:n}function lW(e,t){let n;if(dd(e,n=t.getGlobalIterableType(!1))||dd(e,n=t.getGlobalIterableIteratorType(!1))){const[r]=D_(e),{returnType:o,nextType:i}=sW(n,t);return nW(e,t.iterableCacheKey,ZF(t.resolveIterationType(r,void 0)||r,t.resolveIterationType(o,void 0)||o,i))}if(dd(e,t.getGlobalGeneratorType(!1))){const[n,r,o]=D_(e);return nW(e,t.iterableCacheKey,ZF(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,o))}}function cW(e){const t=Tg(!1),n=t&&Ol(sd(t),Ml(e));return n&&xA(n)?AA(n):`__@${e}`}function dW(e,t,n,r,o){const i=kf(e,cW(t.iteratorSymbolName)),a=!i||16777216&i.flags?void 0:sd(i);if(zl(a))return o?fo:nW(e,t.iterableCacheKey,fo);const s=a?wf(a,0):void 0;if(!se(s))return o?po:nW(e,t.iterableCacheKey,po);const l=pW(Cv(U(s,bm)),t,n,r,o)??po;return o?l:nW(e,t.iterableCacheKey,l)}function uW(e,t,n){const r=n?Oa.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Oa.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return Ci(e,!!KO(t)||!n&&XD(e.parent)&&e.parent.expression===e&&Pg(!1)!==On&&KS(t,Pg(!1)),r,il(t))}function pW(e,t,n,r,o){if(zl(e))return fo;let i=fW(e,t)||function(e,t){const n=t.getGlobalIterableIteratorType(!1);if(dd(e,n)){const[r]=D_(e),o=fW(n,t)||vW(n,t,void 0,void 0,!1),{returnType:i,nextType:a}=o===po?_o:o;return nW(e,t.iteratorCacheKey,ZF(r,i,a))}if(dd(e,t.getGlobalIteratorType(!1))||dd(e,t.getGlobalGeneratorType(!1))){const[n,r,o]=D_(e);return nW(e,t.iteratorCacheKey,ZF(n,r,o))}}(e,t);return i===po&&n&&(i=void 0,o=!0),i??(i=vW(e,t,n,r,o)),i===po?void 0:i}function fW(e,t){return tW(e,t.iteratorCacheKey)}function mW(e,t){const n=Ol(e,"done")||Ht;return KS(0===t?Ht:qt,n)}function _W(e){return mW(e,0)}function hW(e){return mW(e,1)}function gW(e){if(zl(e))return fo;const t=tW(e,"iterationTypesOfIteratorResult");if(t)return t;if(dd(e,(n=!1,Ar||(Ar=ng("IteratorYieldResult",1,n))||On))){return nW(e,"iterationTypesOfIteratorResult",ZF(D_(e)[0],void 0,void 0))}var n;if(dd(e,function(e){return Ir||(Ir=ng("IteratorReturnResult",1,e))||On}(!1))){return nW(e,"iterationTypesOfIteratorResult",ZF(void 0,D_(e)[0],void 0))}const r=BR(e,_W),o=r!==tn?Ol(r,"value"):void 0,i=BR(e,hW),a=i!==tn?Ol(i,"value"):void 0;return nW(e,"iterationTypesOfIteratorResult",o||a?ZF(o,a||en,void 0):po)}function yW(e,t,n,r,i){var a,s,l,c;const d=kf(e,n);if(!d&&"next"!==n)return;const u=!d||"next"===n&&16777216&d.flags?void 0:"next"===n?sd(d):hR(sd(d),2097152);if(zl(u))return"next"===n?fo:mo;const p=u?wf(u,0):o;if(0===p.length){if(r){const e="next"===n?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;i?(i.errors??(i.errors=[]),i.errors.push(d_(r,e,n))):Ai(r,e,n)}return"next"===n?po:void 0}if((null==u?void 0:u.symbol)&&1===p.length){const e=t.getGlobalGeneratorType(!1),r=t.getGlobalIteratorType(!1),o=(null==(s=null==(a=e.symbol)?void 0:a.members)?void 0:s.get(n))===u.symbol,i=!o&&(null==(c=null==(l=r.symbol)?void 0:l.members)?void 0:c.get(n))===u.symbol;if(o||i){const t=o?e:r,{mapper:i}=u;return ZF(tS(t.typeParameters[0],i),tS(t.typeParameters[1],i),"next"===n?tS(t.typeParameters[2],i):void 0)}}let f,m,_,h,g;for(const o of p)"throw"!==n&&se(o.parameters)&&(f=Ee(f,HP(o,0))),m=Ee(m,bm(o));if("throw"!==n){const e=f?mv(f):Mt;if("next"===n)h=e;else if("return"===n){_=Ee(_,t.resolveIterationType(e,r)||Tt)}}const y=m?Cv(m):tn,v=gW(t.resolveIterationType(y,r)||Tt);return v===po?(r&&(i?(i.errors??(i.errors=[]),i.errors.push(d_(r,t.mustHaveAValueDiagnostic,n))):Ai(r,t.mustHaveAValueDiagnostic,n)),g=Tt,_=Ee(_,Tt)):(g=v.yieldType,_=Ee(_,v.returnType)),ZF(g,mv(_),h)}function vW(e,t,n,r,o){const i=eW([yW(e,t,"next",n,r),yW(e,t,"return",n,r),yW(e,t,"throw",n,r)]);return o?i:nW(e,t.iteratorCacheKey,i)}function bW(e,t,n){if(zl(t))return;const r=EW(t,n);return r&&r[Qz(e)]}function EW(e,t){if(zl(e))return fo;const n=t?ho:go;return rW(e,t?2:1,void 0)||function(e,t,n,r){return pW(e,t,n,r,!1)}(e,n,void 0,void 0)}function SW(e){xG(e)||function(e){let t=e;for(;t;){if(xd(t))return SG(e,Oa.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 256:if(e.label&&t.label.escapedText===e.label.escapedText){return!!(251===e.kind&&!mu(t.statement,!0))&&SG(e,Oa.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 255:if(252===e.kind&&!e.label)return!1;break;default:if(mu(t,!1)&&!e.label)return!1}t=t.parent}if(e.label){return SG(e,252===e.kind?Oa.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:Oa.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}SG(e,252===e.kind?Oa.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:Oa.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)}(e)}function TW(e,t){const n=!!(2&t);if(!!(1&t)){const t=bW(1,e,n);return t?n?tF(YO(t)):t:Rt}return n?tF(e)||Rt:e}function xW(e,t){const n=TW(t,Zy(e));return!(!n||!(Ww(n,16384)||32769&n.flags))}function AW(e){xG(e)||nC(e.expression)&&!e.expression.escapedText&&function(e,t,...n){const r=Yf(e);if(!vG(r)){const o=b_(r,e.pos);return si.add(iT(r,Qs(o),0,t,...n)),!0}}(e,Oa.Line_break_not_permitted_here),e.expression&&bO(e.expression)}function IW(e,t,n){const r=Kf(e);if(0===r.length)return;for(const i of zp(e))n&&4194304&i.flags||RW(e,i,Bv(i,8576,!0),cd(i));const o=t.valueDeclaration;if(o&&Md(o))for(const i of o.members)if(!jb(i)&&!Au(i)){const t=ps(i);RW(e,t,gO(i.name.expression),cd(t))}if(r.length>1)for(const i of r)CW(e,i)}function RW(e,t,n,r){const o=t.valueDeclaration,i=jl(o);if(i&&rC(i))return;const a=Xf(e,n),s=2&RS(e)?Df(e.symbol,264):void 0,l=o&&226===o.kind||i&&167===i.kind?o:void 0,c=ms(t)===e.symbol?o:void 0;for(const d of a){const n=d.declaration&&ms(ps(d.declaration))===e.symbol?d.declaration:void 0,o=c||n||(s&&!se(jd(e),(e=>!!Bp(e,t.escapedName)&&!!Jf(e,d.keyType)))?s:void 0);if(o&&!KS(r,d.type)){const e=xi(o,Oa.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,rl(t),il(r),il(d.keyType),il(d.type));l&&o!==l&&xx(e,d_(l,Oa._0_is_declared_here,rl(t))),si.add(e)}}}function CW(e,t){const n=t.declaration,r=Xf(e,t.keyType),o=2&RS(e)?Df(e.symbol,264):void 0,i=n&&ms(ps(n))===e.symbol?n:void 0;for(const a of r){if(a===t)continue;const n=a.declaration&&ms(ps(a.declaration))===e.symbol?a.declaration:void 0,r=i||n||(o&&!se(jd(e),(e=>!!qf(e,t.keyType)&&!!Jf(e,a.keyType)))?o:void 0);r&&!KS(t.type,a.type)&&Ai(r,Oa._0_index_type_1_is_not_assignable_to_2_index_type_3,il(t.keyType),il(t.type),il(a.keyType),il(a.type))}}function DW(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Ai(e,t,e.escapedText)}}function MW(e){let t=!1;if(e)for(let r=0;r<e.length;r++){const t=e[r];EO(t),l(n(t,r))}function n(n,r){return()=>{n.default?(t=!0,function(e,t,n){function r(e){if(183===e.kind){const r=mh(e);if(262144&r.flags)for(let o=n;o<t.length;o++)r.symbol===ps(t[o])&&Ai(e,Oa.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}oP(e,r)}r(e)}(n.default,e,r)):t&&Ai(n,Oa.Required_type_parameters_may_not_follow_optional_type_parameters);for(let t=0;t<r;t++)e[t].symbol===n.symbol&&Ai(n.name,Oa.Duplicate_identifier_0,o_(n.name))}}}function LW(e){if(e.declarations&&1===e.declarations.length)return;const t=Ui(e);if(!t.typeParametersChecked){t.typeParametersChecked=!0;const n=function(e){return G(e.declarations,(e=>263===e.kind||264===e.kind))}(e);if(!n||n.length<=1)return;if(!kW(n,ou(e).localTypeParameters,Cc)){const t=rl(e);for(const e of n)Ai(e.name,Oa.All_declarations_of_0_must_have_identical_type_parameters,t)}}}function kW(e,t,n){const r=T(t),o=dm(t);for(const i of e){const e=n(i),a=e.length;if(a<o||a>r)return!1;for(let n=0;n<a;n++){const r=e[n],o=t[n];if(r.name.escapedText!==o.symbol.escapedName)return!1;const i=Dc(r),a=i&&JE(i),s=$p(o);if(a&&s&&!BS(a,s))return!1;const l=r.default&&JE(r.default),c=ff(o);if(l&&c&&!BS(l,c))return!1}}return!0}function PW(e){const t=!C&&A<99&&Oh(!1,e),n=A<=9,r=!N;if(t||n)for(const o of e.members){if(t&&Fh(!1,o,e))return Le(Ul(e))??e;if(n){if(IC(o))return o;if(jb(o)&&(md(o)||r&&oG(o)))return o}}}function wW(e){!function(e){const t=Yf(e);(function(e){let t=!1,n=!1;if(!JB(e)&&e.heritageClauses)for(const r of e.heritageClauses){if(96===r.token){if(t)return bG(r,Oa.extends_clause_already_seen);if(n)return bG(r,Oa.extends_clause_must_precede_implements_clause);if(r.types.length>1)return bG(r.types[1],Oa.Classes_can_only_extend_a_single_class);t=!0}else{if(In.assert(119===r.token),n)return bG(r,Oa.implements_clause_already_seen);n=!0}nG(r)}})(e)||QB(e.typeParameters,t)}(e),pF(e),OF(e,e.name),MW(Cc(e)),HO(e);const t=ps(e),n=ou(t),r=Pu(n),o=sd(t);LW(t),UO(t),function(e){const t=new Map,n=new Map,r=new Map;for(const i of e.members)if(176===i.kind)for(const e of i.parameters)gl(e,i)&&!Vd(e.name)&&o(t,e.name,e.name.escapedText,3);else{const e=jb(i),a=i.name;if(!a)continue;const s=rC(a),l=s&&e?16:0,c=s?r:e?n:t,d=a&&CG(a);if(d)switch(i.kind){case 177:o(c,a,d,1|l);break;case 178:o(c,a,d,2|l);break;case 172:o(c,a,d,3|l);break;case 174:o(c,a,d,8|l)}}function o(e,t,n,r){const o=e.get(n);if(o)if((16&o)!==(16&r))Ai(t,Oa.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,xm(t));else{const i=!!(8&o),a=!!(8&r);i||a?i!==a&&Ai(t,Oa.Duplicate_identifier_0,xm(t)):o&r&-17?Ai(t,Oa.Duplicate_identifier_0,xm(t)):e.set(n,o|r)}else e.set(n,r)}}(e);!!(33554432&e.flags)||function(e){for(const t of e.members){const n=t.name;if(jb(t)&&n){const t=CG(n);switch(t){case"name":case"length":case"caller":case"arguments":if(D)break;case"prototype":Ai(n,Oa.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,t,hl(ps(e)))}}}}(e);const i=Oy(e);if(i){x(i.typeArguments,gz),A<2&&KB(i.parent,1);const t=Fy(e);t&&t!==i&&bO(t.expression);const a=jd(n);a.length&&l((()=>{const t=a[0],s=Wd(n),l=yf(s);if(function(e,t){const n=wf(e,1);if(n.length){const r=n[0].declaration;if(r&&Bb(r,2)){Pz(t,IS(e.symbol))||Ai(t,Oa.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Ka(e.symbol))}}}(l,i),gz(i.expression),se(i.typeArguments)){x(i.typeArguments,gz);for(const e of Od(l,i.typeArguments,i))if(!wO(i,e.typeParameters))break}const c=Pu(t,n.thisType);if($S(r,c,void 0)?$S(o,WS(l),e.name||e,Oa.Class_static_side_0_incorrectly_extends_base_class_static_side_1):WW(e,r,c,Oa.Class_0_incorrectly_extends_base_class_1),8650752&s.flags)if(Rd(o)){wf(s,1).some((e=>4&e.flags))&&!Gb(e,64)&&Ai(e.name||e,Oa.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}else Ai(e.name||e,Oa.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);if(!(l.symbol&&32&l.symbol.flags)&&!(8650752&s.flags)){x(Fd(l,i.typeArguments,i),(e=>!gP(e.declaration)&&!BS(bm(e),t)))&&Ai(i.expression,Oa.Base_constructors_must_all_have_the_same_return_type)}!function(e,t){var n,r,o,i;const a=Hp(t);let s;e:for(const l of a){const a=BW(l);if(4194304&a.flags)continue;const c=Bp(e,a.escapedName);if(!c)continue;const d=BW(c),u=_S(a);if(In.assert(!!d,"derived should point to something, even if it is the base class' declaration."),d===a){const n=IS(e.symbol);if(64&u&&(!n||!Gb(n,64))){for(const n of jd(e)){if(n===t)continue;const e=Bp(n,a.escapedName),r=e&&BW(e);if(r&&r!==a)continue e}s||(s=Ai(n,Oa.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,il(e),il(t))),231===n.kind?xx(s,d_(l.valueDeclaration??(l.declarations&&Pe(l.declarations))??n,Oa.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,rl(l),il(t))):xx(s,d_(l.valueDeclaration??(l.declarations&&Pe(l.declarations))??n,Oa.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,il(e),rl(l),il(t)))}}else{const s=_S(d);if(2&u||2&s)continue;let l;const c=98308&a.flags,p=98308&d.flags;if(c&&p){if((6&mS(a)?null==(n=a.declarations)?void 0:n.some((e=>GW(e,u))):null==(r=a.declarations)?void 0:r.every((e=>GW(e,u))))||262144&mS(a)||d.valueDeclaration&&TD(d.valueDeclaration))continue;const l=4!==c&&4===p;if(l||4===c&&4!==p){const n=l?Oa._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:Oa._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Ai(jl(d.valueDeclaration)||d.valueDeclaration,n,rl(a),il(t),il(e))}else if(D){const n=null==(o=d.declarations)?void 0:o.find((e=>172===e.kind&&!e.initializer));if(n&&!(33554432&d.flags)&&!(64&u)&&!(64&s)&&!(null==(i=d.declarations)?void 0:i.some((e=>!!(33554432&e.flags))))){const r=As(IS(e.symbol)),o=n.name;if(n.exclamationToken||!r||!nC(o)||!z||!UW(o,e,r)){const e=Oa.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Ai(jl(d.valueDeclaration)||d.valueDeclaration,e,rl(a),il(t))}}}continue}if(AL(a)){if(AL(d)||4&d.flags)continue;In.assert(!!(98304&d.flags)),l=Oa.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else l=98304&a.flags?Oa.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Oa.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Ai(jl(d.valueDeclaration)||d.valueDeclaration,l,il(t),rl(a),il(e))}}}(n,t)}))}!function(e,t,n,r){const o=Oy(e),i=o&&jd(t),a=(null==i?void 0:i.length)?Pu(Pe(i),t.thisType):void 0,s=Wd(t);for(const l of e.members)Kb(l)||(RC(l)&&x(l.parameters,(o=>{gl(o,l)&&OW(e,r,s,a,t,n,o,!0)})),OW(e,r,s,a,t,n,l,!1))}(e,n,r,o);const a=Wy(e);if(a)for(const c of a)EE(c.expression)&&!wc(c.expression)||Ai(c.expression,Oa.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),FO(c),l(s(c));function s(t){return()=>{const o=Tf(JE(t));if(!Gl(o))if(Kd(o)){const t=o.symbol&&32&o.symbol.flags?Oa.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:Oa.Class_0_incorrectly_implements_interface_1,i=Pu(o,n.thisType);$S(r,i,void 0)||WW(e,r,i,t)}else Ai(t,Oa.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}l((()=>{IW(n,t),IW(o,t,!0),RO(e),function(e){if(!z||!X||33554432&e.flags)return;const t=As(e);for(const n of e.members)if(!(128&Zb(n))&&!jb(n)&&jW(n)){const e=n.name;if(nC(e)||rC(e)||yC(e)){const r=sd(ps(n));3&r.flags||vT(r)||t&&UW(e,r,t)||Ai(n.name,Oa.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,o_(e))}}}(e)}))}function OW(e,t,n,r,o,i,a,s,l=!0){const c=a.name&&Xz(a.name)||Xz(a);return c?FW(e,t,n,r,o,i,Ub(a),Hb(a),jb(a),s,wl(c),l?a:void 0):0}function FW(e,t,n,r,o,i,a,s,l,c,d,u){const p=$h(e),f=!!(33554432&e.flags);if(r&&(a||S.noImplicitOverride)){const e=Ml(d),o=l?n:r,m=kf(l?t:i,e),_=kf(o,e),h=il(r);if(m&&!_&&a){if(u){const e=ek(d,o);e?Ai(u,p?Oa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:Oa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,h,rl(e)):Ai(u,p?Oa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:Oa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,h)}return 2}if(m&&(null==_?void 0:_.declarations)&&S.noImplicitOverride&&!f){const e=se(_.declarations,Hb);if(a)return 0;if(!e){if(u){Ai(u,c?p?Oa.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Oa.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:p?Oa.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Oa.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,h)}return 1}if(s&&e)return u&&Ai(u,Oa.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,h),1}}else if(a){if(u){const e=il(o);Ai(u,p?Oa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:Oa.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function WW(e,t,n,r){let o=!1;for(const i of e.members){if(jb(i))continue;const e=i.name&&Xz(i.name)||Xz(i);if(e){const r=kf(t,e.escapedName),a=kf(n,e.escapedName);if(r&&a){const s=()=>cT(void 0,Oa.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,rl(e),il(t),il(n));$S(sd(r),sd(a),i.name||i,void 0,s)||(o=!0)}}}o||$S(t,n,e.name||e,r)}function BW(e){return 1&mS(e)?e.links.target:e}function GW(e,t){return 64&t&&(!TC(e)||!e.initializer)||cN(e.parent)}function jW(e){return 172===e.kind&&!Hb(e)&&!e.exclamationToken&&!e.initializer}function UW(e,t,n){const r=yC(e)?UA.createElementAccessExpression(UA.createThis(),e.expression):UA.createPropertyAccessExpression(UA.createThis(),e);Vx(r.expression,r),Vx(r,n),r.flowNode=n.returnFlowNode;return!vT(fC(r,t,kA(t)))}function HW(e){JB(e)||function(e){let t=!1;if(e.heritageClauses)for(const n of e.heritageClauses){if(96!==n.token)return In.assert(119===n.token),bG(n,Oa.Interface_declaration_cannot_have_implements_clause);if(t)return bG(n,Oa.extends_clause_already_seen);t=!0,nG(n)}}(e),MW(e.typeParameters),l((()=>{DW(e.name,Oa.Interface_name_cannot_be_0),HO(e);const t=ps(e);LW(t);const n=Df(t,264);if(e===n){const n=ou(t),r=Pu(n);if(function(e,t){const n=jd(e);if(n.length<2)return!0;const r=new Map;x(Eu(e).declaredProperties,(t=>{r.set(t.escapedName,{prop:t,containingType:e})}));let o=!0;for(const i of n){const n=Hp(Pu(i,e.thisType));for(const a of n){const n=r.get(a.escapedName);if(n){if(n.containingType!==e&&0===ix(n.prop,a,GS)){o=!1;const r=il(n.containingType),s=il(i);let l=cT(void 0,Oa.Named_property_0_of_types_1_and_2_are_not_identical,rl(a),r,s);l=cT(l,Oa.Interface_0_cannot_simultaneously_extend_types_1_and_2,il(e),r,s),si.add(f_(Yf(t),t,l))}}else r.set(a.escapedName,{prop:a,containingType:i})}}return o}(n,e.name)){for(const t of jd(n))$S(r,Pu(t,n.thisType),e.name,Oa.Interface_0_incorrectly_extends_interface_1);IW(n,t)}}IO(e)})),x(By(e),(e=>{EE(e.expression)&&!wc(e.expression)||Ai(e.expression,Oa.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),FO(e)})),x(e.members,gz),l((()=>{RO(e),_F(e)}))}function KW(e){const t=Hi(e);if(!(1024&t.flags)){t.flags|=1024;let n=0;for(const t of e.members){const e=qW(t,n);Hi(t).enumMemberValue=e,n="number"===typeof e?e+1:void 0}}}function qW(e,t){if(a_(e.name))Ai(e.name,Oa.Computed_property_names_are_not_allowed_in_enums);else{const t=l_(e.name);nA(t)&&!Qx(t)&&Ai(e.name,Oa.An_enum_member_cannot_have_a_numeric_name)}return e.initializer?function(e){const t=A_(e.parent),n=e.initializer,r=JW(n,e);void 0!==r?t&&"number"===typeof r&&!isFinite(r)&&Ai(n,isNaN(r)?Oa.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:Oa.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):t?Ai(n,Oa.const_enum_member_initializers_must_be_constant_expressions):33554432&e.parent.flags?Ai(n,Oa.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):$S(bO(n),Vt,n,Oa.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values);return r}(e):33554432&e.parent.flags&&!A_(e.parent)?void 0:void 0!==t?t:void Ai(e.name,Oa.Enum_member_must_have_initializer)}function JW(e,t){switch(e.kind){case 224:const n=JW(e.operand,t);if("number"===typeof n)switch(e.operator){case 40:return n;case 41:return-n;case 55:return~n}break;case 226:const r=JW(e.left,t),o=JW(e.right,t);if("number"===typeof r&&"number"===typeof o)switch(e.operatorToken.kind){case 52:return r|o;case 51:return r&o;case 49:return r>>o;case 50:return r>>>o;case 48:return r<<o;case 53:return r^o;case 42:return r*o;case 44:return r/o;case 40:return r+o;case 41:return r-o;case 45:return r%o;case 43:return r**o}else if(("string"===typeof r||"number"===typeof r)&&("string"===typeof o||"number"===typeof o)&&40===e.operatorToken.kind)return""+r+o;break;case 11:case 15:return e.text;case 228:return YW(e,t);case 9:return AG(e),+e.text;case 217:return JW(e.expression,t);case 80:{const t=e;if(Qx(t.escapedText)&&qa(t,111551,!0)===Qh(t.escapedText,111551,void 0))return+t.escapedText}case 211:if(EE(e)){const n=qa(e,111551,!0);if(n){if(8&n.flags)return t?XW(e,n,t):DB(n.valueDeclaration);if(qC(n)){const e=n.valueDeclaration;if(e&&iN(e)&&!e.type&&e.initializer&&(!t||e!==t&&Xi(e,t)))return JW(e.initializer,e)}}}break;case 212:const i=e.expression;if(EE(i)&&np(e.argumentExpression)){const n=qa(i,111551,!0);if(n&&384&n.flags){const r=Ml(e.argumentExpression.text),o=n.exports.get(r);if(o)return t?XW(e,o,t):DB(o.valueDeclaration)}}}}function XW(e,t,n){const r=t.valueDeclaration;if(r&&r!==n)return Xi(r,n)?DB(r):(Ai(e,Oa.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);Ai(e,Oa.Property_0_is_used_before_being_assigned,rl(t))}function YW(e,t){let n=e.head.text;for(const r of e.templateSpans){const e=JW(r.expression,t);if(void 0===e)return;n+=e,n+=r.literal.text}return n}function QW(e){l((()=>function(e){JB(e),OF(e,e.name),HO(e),e.members.forEach(ZW),KW(e);const t=ps(e),n=Df(t,e.kind);if(e===n){if(t.declarations&&t.declarations.length>1){const n=A_(e);x(t.declarations,(e=>{uN(e)&&A_(e)!==n&&Ai(jl(e),Oa.Enum_declarations_must_all_be_const_or_non_const)}))}let n=!1;x(t.declarations,(e=>{if(266!==e.kind)return!1;const t=e;if(!t.members.length)return!1;const r=t.members[0];r.initializer||(n?Ai(r.name,Oa.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)}))}}(e)))}function ZW(e){rC(e.name)&&Ai(e,Oa.An_enum_member_cannot_be_named_with_a_private_identifier),e.initializer&&bO(e.initializer)}function ez(e){e.body&&(gz(e.body),Bm(e)||_F(e)),l((function(){var t,n;const r=Bm(e),o=33554432&e.flags;r&&!o&&Ai(e.name,Oa.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const i=Pm(e),a=i?Oa.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:Oa.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(uz(e,a))return;JB(e)||o||11!==e.name.kind||SG(e.name,Oa.Only_ambient_modules_can_use_quoted_names);nC(e.name)&&OF(e,e.name);HO(e);const s=ps(e);if(512&s.flags&&!o&&qz(e,Zp(S))){if(Kp(S)&&!Yf(e).externalModuleIndicator&&Ai(e.name,Oa.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Te),(null==(t=s.declarations)?void 0:t.length)>1){const t=function(e){const t=e.declarations;if(t)for(const n of t)if((263===n.kind||262===n.kind&&am(n.body))&&!(33554432&n.flags))return n}(s);t&&(Yf(e)!==Yf(t)?Ai(e.name,Oa.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):e.pos<t.pos&&Ai(e.name,Oa.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const n=Df(s,263);n&&function(e,t){const n=n_(e),r=n_(t);return Ki(n)?Ki(r):!Ki(r)&&n===r}(e,n)&&(Hi(e).flags|=2048)}if(S.verbatimModuleSyntax&&312===e.parent.kind&&(1===R||1===e.parent.impliedNodeFormat)){const t=null==(n=e.modifiers)?void 0:n.find((e=>95===e.kind));t&&Ai(t,Oa.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(i)if(Gm(e)){if((r||33554432&ps(e).flags)&&e.body)for(const t of e.body.statements)tz(t,r)}else Ki(e.parent)?r?Ai(e.name,Oa.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Xs(sv(e.name))&&Ai(e.name,Oa.Ambient_module_declaration_cannot_specify_relative_module_name):Ai(e.name,r?Oa.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:Oa.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}))}function tz(e,t){switch(e.kind){case 243:for(const r of e.declarationList.declarations)tz(r,t);break;case 277:case 278:bG(e,Oa.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:bG(e,Oa.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const n=e.name;if(Vd(n)){for(const e of n.elements)tz(e,t);break}case 263:case 266:case 262:case 264:case 267:case 265:if(t)return}}function nz(e){const t=Bg(e);if(!t||im(t))return!1;if(!zR(t))return Ai(t,Oa.String_literal_expected),!1;const n=268===e.parent.kind&&Pm(e.parent.parent);if(312!==e.parent.kind&&!n)return Ai(t,278===e.kind?Oa.Export_declarations_are_not_permitted_in_a_namespace:Oa.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(n&&Xs(t.text)&&!fl(e))return Ai(e,Oa.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!hN(e)&&e.attributes){const t=118===e.attributes.token?Oa.Import_attribute_values_must_be_string_literal_expressions:Oa.Import_assertion_values_must_be_string_literal_expressions;let n=!1;for(const r of e.attributes.elements)zR(r.value)||(n=!0,Ai(r.value,t));return!n}return!0}function rz(e){var t,n,r,o;let i=ps(e);const a=Wa(i);if(a!==_t){if(i=us(i.exportSymbol||i),$h(e)&&!(111551&a.flags)&&!ld(e)){const s=id(e)?e.propertyName||e.name:Bl(e)?e.name:e;if(In.assert(280!==e.kind),281===e.kind){const o=Ai(s,Oa.Types_cannot_appear_in_export_declarations_in_JavaScript_files),i=null==(n=null==(t=Yf(e).symbol)?void 0:t.exports)?void 0:n.get((e.propertyName||e.name).escapedText);if(i===a){const e=null==(r=i.declarations)?void 0:r.find(Uu);e&&xx(o,d_(e,Oa._0_is_automatically_exported_here,Ll(i.escapedName)))}}else{In.assert(260!==e.kind);const t=Cl(e,_n(gN,hN)),n=(t&&(null==(o=Fg(t))?void 0:o.text))??"...",r=Ll(nC(s)?s.escapedText:i.escapedName);Ai(s,Oa._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,r,`import("${n}").${r}`)}return}const s=za(a);if(s&((1160127&i.flags?111551:0)|(788968&i.flags?788968:0)|(1920&i.flags?1920:0))){Ai(e,281===e.kind?Oa.Export_declaration_conflicts_with_exported_declaration_of_0:Oa.Import_declaration_conflicts_with_local_declaration_of_0,rl(i))}else if(281!==e.kind){S.isolatedModules&&!Cl(e,ld)&&1160127&i.flags&&Ai(e,Oa.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,rl(i),Te)}if(Kp(S)&&!ld(e)&&!(33554432&e.flags)){const t=ja(i),n=!(111551&s);if(n||t)switch(e.kind){case 273:case 276:case 271:if(S.preserveValueImports||S.verbatimModuleSyntax){In.assertIsDefined(e.name,"An ImportClause with a symbol should have a name");const r=S.verbatimModuleSyntax&&qh(e)?Oa.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:n?S.verbatimModuleSyntax?Oa._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Oa._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:S.verbatimModuleSyntax?Oa._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Oa._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,o=kl(276===e.kind&&e.propertyName||e.name);oa(Ai(e,r,o),n?void 0:t,o)}n&&271===e.kind&&Bb(e,32)&&Ai(e,Oa.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Te);break;case 281:if(S.verbatimModuleSyntax||Yf(t)!==Yf(e)){const r=kl(e.propertyName||e.name);oa(n?Ai(e,Oa.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Te):Ai(e,Oa._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,r,Te),n?void 0:t,r);break}}!S.verbatimModuleSyntax||271===e.kind||$h(e)||1!==R&&1!==Yf(e).impliedNodeFormat||Ai(e,Oa.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(RN(e)){const t=oz(i,e);Ni(t)&&t.declarations&&Li(e,t.declarations,t.escapedName)}}}function oz(e,t){if(!(2097152&e.flags)||Ni(e)||!ha(e))return e;const n=Wa(e);if(n===_t)return n;for(;2097152&e.flags;){const r=jM(e);if(!r)break;if(r===n)break;if(r.declarations&&T(r.declarations)){if(Ni(r)){Li(t,r.declarations,r.escapedName);break}if(e===n)break;e=r}}return n}function iz(e){OF(e,e.name),rz(e),276===e.kind&&"default"===kl(e.propertyName||e.name)&&qp(S)&&4!==R&&(R<5||1===Yf(e).impliedNodeFormat)&&KB(e,131072)}function sz(e){var t;const n=e.attributes;if(n){const r=gg(!0);r!==Nn&&$S(Lc(n),LA(r,32768),n);const o=jU(e),i=HU(n,o?SG:void 0),a=118===e.attributes.token;if(o&&i)return;if(99!==(199===R&&e.moduleSpecifier&&Sa(e.moduleSpecifier))&&99!==R&&200!==R){return SG(n,a?199===R?Oa.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:Oa.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:199===R?Oa.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:Oa.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve)}if(gN(e)?null==(t=e.importClause)?void 0:t.isTypeOnly:e.isTypeOnly)return SG(n,a?Oa.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:Oa.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(i)return SG(n,Oa.resolution_mode_can_only_be_set_for_type_only_imports)}}function lz(e){if(!uz(e,$h(e)?Oa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Oa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!JB(e)&&Wb(e)&&bG(e,Oa.An_import_declaration_cannot_have_modifiers),nz(e)){const t=e.importClause;if(t&&!function(e){var t;if(e.isTypeOnly&&e.name&&e.namedBindings)return SG(e,Oa.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(e.isTypeOnly&&275===(null==(t=e.namedBindings)?void 0:t.kind))return IG(e.namedBindings);return!1}(t)&&(t.name&&iz(t),t.namedBindings))if(274===t.namedBindings.kind)iz(t.namedBindings),4!==R&&(R<5||1===Yf(e).impliedNodeFormat)&&qp(S)&&KB(e,65536);else{Xa(e,e.moduleSpecifier)&&x(t.namedBindings.elements,iz)}}sz(e)}}function cz(e){if(!uz(e,$h(e)?Oa.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:Oa.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!JB(e)&&zb(e)&&bG(e,Oa.An_export_declaration_cannot_have_modifiers),e.moduleSpecifier&&e.exportClause&&NN(e.exportClause)&&T(e.exportClause.elements)&&0===A&&KB(e,4194304),function(e){var t;if(e.isTypeOnly&&279===(null==(t=e.exportClause)?void 0:t.kind))return IG(e.exportClause)}(e),!e.moduleSpecifier||nz(e))if(e.exportClause&&!AN(e.exportClause)){x(e.exportClause.elements,mz);const t=268===e.parent.kind&&Pm(e.parent.parent),n=!t&&268===e.parent.kind&&!e.moduleSpecifier&&33554432&e.flags;312===e.parent.kind||t||n||Ai(e,Oa.Export_declarations_are_not_permitted_in_a_namespace)}else{const t=Xa(e,e.moduleSpecifier);t&&ns(t)?Ai(e.moduleSpecifier,Oa.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,rl(t)):e.exportClause&&rz(e.exportClause),4!==R&&(R<5||1===Yf(e).impliedNodeFormat)&&(e.exportClause?qp(S)&&KB(e,65536):KB(e,32768))}sz(e)}}function uz(e,t){const n=312===e.parent.kind||268===e.parent.kind||267===e.parent.kind;return n||bG(e,t),!n}function pz(e){return gN(e)&&e.importClause&&!e.importClause.isTypeOnly&&Vg(e.importClause,(e=>!!ps(e).isReferenced))&&!SB(e.importClause,!0)&&!function(e){return Vg(e,(e=>!!Ui(ps(e)).constEnumReferenced))}(e.importClause)}function fz(e){return hN(e)&&wN(e.moduleReference)&&!e.isTypeOnly&&ps(e).isReferenced&&!SB(e,!1)&&!Ui(ps(e)).constEnumReferenced}function mz(e){if(rz(e),Qp(S)&&vl(e.propertyName||e.name,!0),e.parent.parent.moduleSpecifier)qp(S)&&4!==R&&(R<5||1===Yf(e).impliedNodeFormat)&&"default"===kl(e.propertyName||e.name)&&KB(e,131072);else{const t=e.propertyName||e.name,n=ta(t,t.escapedText,2998271,void 0,void 0,!0);if(n&&(n===me||n===_e||n.declarations&&Ki(Dl(n.declarations[0]))))Ai(t,Oa.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,kl(t));else{e.isTypeOnly||e.parent.parent.isTypeOnly||Va(e);const t=n&&(2097152&n.flags?Wa(n):n);(!t||111551&za(t))&&tO(e.propertyName||e.name)}}}function _z(e){const t=ps(e),n=Ui(t);if(!n.exportsChecked){const e=t.exports.get("export=");if(e&&function(e){return Wf(e.exports,((e,t)=>"export="!==t))}(t)){const t=ha(e)||e.valueDeclaration;!t||fl(t)||$h(t)||Ai(t,Oa.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const r=ls(t);r&&r.forEach((({declarations:e,flags:t},n)=>{if("__export"===n)return;if(1920&t)return;const r=B(e,mn(Wz,hn(cN)));if(!(524288&t&&r<=2)&&r>1&&!hz(e))for(const o of e)$z(o)&&si.add(d_(o,Oa.Cannot_redeclare_exported_variable_0,Ll(n)))})),n.exportsChecked=!0}}function hz(e){return e&&e.length>1&&e.every((e=>$h(e)&&wS(e)&&(yg(e.expression)||bg(e.expression))))}function gz(e){if(e){const n=i;i=e,h=0,function(e){Zg(e)&&x(e.jsDoc,(({comment:t,tags:n})=>{yz(t),x(n,(t=>{yz(t.comment),$h(e)&&gz(t)}))}));const n=e.kind;if(t)switch(n){case 267:case 263:case 264:case 262:t.throwIfCancellationRequested()}n>=243&&n<=259&&Qg(e)&&e.flowNode&&!lC(e.flowNode)&&Ri(!1===S.allowUnreachableCode,e,Oa.Unreachable_code_detected);switch(n){case 168:return EO(e);case 169:return SO(e);case 172:return CO(e);case 171:return function(e){return rC(e.name)&&Ai(e,Oa.Private_identifiers_are_not_allowed_outside_class_bodies),CO(e)}(e);case 185:case 184:case 179:case 180:case 181:return xO(e);case 174:case 173:return function(e){pG(e)||iG(e.name),AC(e)&&e.asteriskToken&&nC(e.name)&&"constructor"===kl(e.name)&&Ai(e.name,Oa.Class_constructor_may_not_be_a_generator),mF(e),Gb(e,64)&&174===e.kind&&e.body&&Ai(e,Oa.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,o_(e.name)),rC(e.name)&&!_h(e)&&Ai(e,Oa.Private_identifiers_are_not_allowed_outside_class_bodies),DO(e)}(e);case 175:return function(e){JB(e),oP(e,gz)}(e);case 176:return NO(e);case 177:case 178:return LO(e);case 183:return FO(e);case 182:return function(e){const t=function(e){switch(e.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const t=e.parent;if(e===t.type)return t}}(e);if(!t)return void Ai(e,Oa.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);const n=pm(t),r=ym(n);if(!r)return;gz(e.type);const{parameterName:o}=e;if(0===r.kind||2===r.kind)HE(o);else if(r.parameterIndex>=0){if(Zz(n)&&r.parameterIndex===n.parameters.length-1)Ai(o,Oa.A_type_predicate_cannot_reference_a_rest_parameter);else if(r.type){const t=()=>cT(void 0,Oa.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);$S(r.type,sd(n.parameters[r.parameterIndex]),e.type,void 0,t)}}else if(o){let n=!1;for(const{name:e}of t.parameters)if(Vd(e)&&TO(e,o,r.parameterName)){n=!0;break}n||Ai(e.parameterName,Oa.Cannot_find_parameter_0,r.parameterName)}}(e);case 186:return function(e){kh(e)}(e);case 187:return function(e){x(e.members,gz),l((function(){const t=lE(e);IW(t,t.symbol),RO(e),IO(e)}))}(e);case 188:return function(e){gz(e.elementType)}(e);case 189:return function(e){let t=!1,n=!1;for(const r of e.elements){let e=ty(r);if(8&e){const t=JE(r.type);if(!_x(t)){Ai(r,Oa.A_rest_element_type_must_be_an_array_type);break}(cx(t)||tA(t)&&4&t.target.combinedFlags)&&(e|=4)}if(4&e){if(n){SG(r,Oa.A_rest_element_cannot_follow_another_rest_element);break}n=!0}else if(2&e){if(n){SG(r,Oa.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(1&e&&t){SG(r,Oa.A_required_element_cannot_follow_an_optional_element);break}}x(e.elements,gz),JE(e)}(e);case 192:case 193:return function(e){x(e.types,gz),JE(e)}(e);case 196:case 190:case 191:return gz(e.type);case 197:return function(e){HE(e)}(e);case 198:return GO(e);case 194:return function(e){oP(e,gz)}(e);case 195:return function(e){Cl(e,(e=>e.parent&&194===e.parent.kind&&e.parent.extendsType===e))||SG(e,Oa.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),gz(e.typeParameter);const t=ps(e.typeParameter);if(t.declarations&&t.declarations.length>1){const e=Ui(t);if(!e.typeParametersChecked){e.typeParametersChecked=!0;const n=eu(t),r=Nf(t,168);if(!kW(r,[n],(e=>[e]))){const e=rl(t);for(const t of r)Ai(t.name,Oa.All_declarations_of_0_must_have_identical_constraints,e)}}}_F(e)}(e);case 203:return function(e){for(const t of e.templateSpans)gz(t.type),$S(JE(t.type),En,t.type);JE(e)}(e);case 205:return function(e){gz(e.argument),e.attributes&&HU(e.attributes,SG),WO(e)}(e);case 202:return function(e){e.dotDotDotToken&&e.questionToken&&SG(e,Oa.A_tuple_member_cannot_be_both_optional_and_rest),190===e.type.kind&&SG(e.type,Oa.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),191===e.type.kind&&SG(e.type,Oa.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),gz(e.type),JE(e)}(e);case 335:return function(e){const t=sy(e);if(!t||!lN(t)&&!CD(t))return void Ai(t,Oa.JSDoc_0_is_not_attached_to_a_class,kl(e.tagName));const n=Sc(t).filter(TM);In.assert(n.length>0),n.length>1&&Ai(n[1],Oa.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const r=fF(e.class.expression),o=Fy(t);if(o){const t=fF(o.expression);t&&r.escapedText!==t.escapedText&&Ai(r,Oa.JSDoc_0_1_does_not_match_the_extends_2_clause,kl(e.tagName),kl(r),kl(t))}}(e);case 336:return function(e){const t=sy(e);t&&(lN(t)||CD(t))||Ai(t,Oa.JSDoc_0_is_not_attached_to_a_class,kl(e.tagName))}(e);case 353:case 345:case 347:return function(e){e.typeExpression||Ai(e.name,Oa.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&DW(e.name,Oa.Type_alias_name_cannot_be_0),gz(e.typeExpression),MW(Cc(e))}(e);case 352:return function(e){gz(e.constraint);for(const t of e.typeParameters)gz(t)}(e);case 351:return function(e){gz(e.typeExpression)}(e);case 331:case 332:case 333:return function(e){e.name&&Jz(e.name,!0)}(e);case 348:case 355:return function(e){gz(e.typeExpression)}(e);case 324:!function(e){l((function(){e.type||Hg(e)||eI(e,Tt)})),xO(e)}(e);case 322:case 321:case 319:case 320:case 329:return vz(e),void oP(e,gz);case 325:return void function(e){vz(e),gz(e.type);const{parent:t}=e;if(bC(t)&&gM(t.parent))return void(Fe(t.parent.parameters)!==t&&Ai(e,Oa.A_rest_parameter_must_be_last_in_a_parameter_list));aM(t)||Ai(e,Oa.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const n=e.parent.parent;if(!OM(n))return void Ai(e,Oa.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const r=ry(n);if(!r)return;const o=ay(n);o&&Fe(o.parameters).symbol===r||Ai(e,Oa.A_rest_parameter_must_be_last_in_a_parameter_list)}(e);case 316:return gz(e.type);case 340:case 342:case 341:return function(e){const t=ly(e);t&&md(t)&&Ai(e,Oa.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(e);case 357:return function(e){gz(e.typeExpression);const t=sy(e);if(t){const e=Ac(t,HM);if(T(e)>1)for(let t=1;t<T(e);t++){const n=e[t].tagName;Ai(n,Oa._0_tag_already_specified,kl(n))}}}(e);case 350:return function(e){const t=sy(e);t&&hD(t)&&Ai(e.tagName,Oa.An_arrow_function_cannot_have_a_this_parameter)}(e);case 199:return function(e){gz(e.objectType),gz(e.indexType),zO(Pb(e),e)}(e);case 200:return BO(e);case 262:return function(e){l((function(){mF(e),aG(e),OF(e,e.name)}))}(e);case 241:case 268:return NF(e);case 243:return UF(e);case 244:return function(e){xG(e),bO(e.expression)}(e);case 245:return function(e){xG(e);const t=qF(e.expression);HF(e.expression,t,e.thenStatement),gz(e.thenStatement),242===e.thenStatement.kind&&Ai(e.thenStatement,Oa.The_body_of_an_if_statement_cannot_be_the_empty_statement),gz(e.elseStatement)}(e);case 246:return function(e){xG(e),gz(e.statement),qF(e.expression)}(e);case 247:return function(e){xG(e),qF(e.expression),gz(e.statement)}(e);case 248:return function(e){xG(e)||e.initializer&&261===e.initializer.kind&&gG(e.initializer),e.initializer&&(261===e.initializer.kind?VF(e.initializer):bO(e.initializer)),e.condition&&qF(e.condition),e.incrementor&&bO(e.incrementor),gz(e.statement),e.locals&&_F(e)}(e);case 249:return JF(e);case 250:return function(e){cG(e);const t=gh(e);e.awaitModifier?t&&IC(t)?SG(e.awaitModifier,Oa.for_await_loops_cannot_be_used_inside_a_class_static_block):2===(6&Zy(t))&&A<99&&KB(e,16384):S.downlevelIteration&&A<2&&KB(e,256);if(261===e.initializer.kind)VF(e.initializer);else{const t=e.initializer,n=XF(e);if(209===t.kind||210===t.kind)qw(t,n||Rt);else{const r=bO(t);kw(t,Oa.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,Oa.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),n&&YS(n,r,t,e.expression)}}gz(e.statement),e.locals&&_F(e)}(e);case 251:case 252:return SW(e);case 253:return function(e){if(xG(e))return;const t=gh(e);if(t&&IC(t))return void bG(e,Oa.A_return_statement_cannot_be_used_inside_a_class_static_block);if(!t)return void bG(e,Oa.A_return_statement_can_only_be_used_within_a_function_body);const n=bm(pm(t)),r=Zy(t);if(z||e.expression||131072&n.flags){const o=e.expression?tO(e.expression):Pt;if(178===t.kind)e.expression&&Ai(e,Oa.Setters_cannot_return_a_value);else if(176===t.kind)e.expression&&!YS(o,n,e,e.expression)&&Ai(e,Oa.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Em(t)){const t=TW(n,r)??n,i=2&r?JO(o,!1,e,Oa.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o;t&&YS(i,t,e,e.expression)}}else 176!==t.kind&&S.noImplicitReturns&&!xW(t,n)&&Ai(e,Oa.Not_all_code_paths_return_a_value)}(e);case 254:return function(e){xG(e)||65536&e.flags&&bG(e,Oa.with_statements_are_not_allowed_in_an_async_function_block),bO(e.expression);const t=Yf(e);if(!vG(t)){const n=b_(t,e.pos).start;EG(t,n,e.statement.pos-n,Oa.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(e);case 255:return function(e){let t;xG(e);let n=!1;const r=bO(e.expression);x(e.caseBlock.clauses,(e=>{var o;297!==e.kind||n||(void 0===t?t=e:(SG(e,Oa.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),296===e.kind&&l((o=e,()=>{const e=bO(o.expression);Xw(r,e)||uT(e,r,o.expression,void 0)})),x(e.statements,gz),S.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&lC(e.fallthroughFlowNode)&&Ai(e,Oa.Fallthrough_case_in_switch)})),e.caseBlock.locals&&_F(e.caseBlock)}(e);case 256:return function(e){xG(e)||Cl(e.parent,(t=>Td(t)?"quit":256===t.kind&&t.label.escapedText===e.label.escapedText&&(SG(e.label,Oa.Duplicate_label_0,xm(e.label)),!0))),gz(e.statement)}(e);case 257:return AW(e);case 258:return function(e){xG(e),NF(e.tryBlock);const t=e.catchClause;if(t){if(t.variableDeclaration){const e=t.variableDeclaration;WF(e);const n=Ab(e);if(n){const e=JE(n);!e||3&e.flags||bG(n,Oa.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)bG(e.initializer,Oa.Catch_clause_variable_cannot_have_an_initializer);else{const e=t.block.locals;e&&zf(t.locals,(t=>{const n=e.get(t);(null==n?void 0:n.valueDeclaration)&&0!==(2&n.flags)&&SG(n.valueDeclaration,Oa.Cannot_redeclare_identifier_0_in_catch_clause,Ll(t))}))}}NF(t.block)}e.finallyBlock&&NF(e.finallyBlock)}(e);case 260:return GF(e);case 208:return jF(e);case 263:return function(e){const t=L(e.modifiers,EC);C&&t&&se(e.members,(e=>Vb(e)&&md(e)))&&SG(t,Oa.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||Gb(e,2048)||bG(e,Oa.A_class_declaration_without_the_default_modifier_must_have_a_name),wW(e),x(e.members,gz),_F(e)}(e);case 264:return HW(e);case 265:return function(e){JB(e),DW(e.name,Oa.Type_alias_name_cannot_be_0),HO(e),MW(e.typeParameters),141===e.type.kind?zz.has(e.name.escapedText)&&1===T(e.typeParameters)||Ai(e.type,Oa.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(gz(e.type),_F(e))}(e);case 266:return QW(e);case 267:return ez(e);case 272:return lz(e);case 271:return function(e){if(!uz(e,$h(e)?Oa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Oa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(JB(e),qh(e)||nz(e)))if(iz(e),Gb(e,32)&&Va(e),283!==e.moduleReference.kind){const t=Wa(ps(e));if(t!==_t){const n=za(t);if(111551&n){const t=SE(e.moduleReference);1920&qa(t,112575).flags||Ai(t,Oa.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,o_(t))}788968&n&&DW(e.name,Oa.Import_name_cannot_be_0)}e.isTypeOnly&&SG(e,Oa.An_import_alias_cannot_use_import_type)}else!(R>=5&&200!==R&&void 0===Yf(e).impliedNodeFormat)||e.isTypeOnly||33554432&e.flags||SG(e,Oa.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(e);case 278:return cz(e);case 277:return function(e){if(uz(e,e.isExportEquals?Oa.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:Oa.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;const t=312===e.parent.kind?e.parent:e.parent.parent;if(267===t.kind&&!Pm(t))return void(e.isExportEquals?Ai(e,Oa.An_export_assignment_cannot_be_used_in_a_namespace):Ai(e,Oa.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!JB(e)&&Wb(e)&&bG(e,Oa.An_export_assignment_cannot_have_modifiers);const n=Ab(e);n&&$S(tO(e.expression),JE(n),e.expression);const r=!e.isExportEquals&&!(33554432&e.flags)&&S.verbatimModuleSyntax&&(1===R||1===Yf(e).impliedNodeFormat);if(80===e.expression.kind){const t=e.expression,n=Ss(qa(t,-1,!0,!0,e));if(n){const o=ja(n,111551);if(vD(n,t),111551&za(n)?(tO(t),r||33554432&e.flags||!S.verbatimModuleSyntax||!o||Ai(t,e.isExportEquals?Oa.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Oa.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,kl(t))):r||33554432&e.flags||!S.verbatimModuleSyntax||Ai(t,e.isExportEquals?Oa.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Oa.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,kl(t)),!r&&!(33554432&e.flags)&&Kp(S)&&!(111551&n.flags)){const r=za(n,!1,!0);!(2097152&n.flags&&788968&r)||111551&r||o&&Yf(o)===Yf(e)?o&&Yf(o)!==Yf(e)&&oa(Ai(t,e.isExportEquals?Oa._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:Oa._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,kl(t),Te),o,kl(t)):Ai(t,e.isExportEquals?Oa._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:Oa._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,kl(t),Te)}}else tO(t);Qp(S)&&vl(t,!0)}else tO(e.expression);r&&Ai(e,Oa.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),_z(t),33554432&e.flags&&!EE(e.expression)&&SG(e.expression,Oa.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),e.isExportEquals&&(R>=5&&200!==R&&(33554432&e.flags&&99===Yf(e).impliedNodeFormat||!(33554432&e.flags)&&1!==Yf(e).impliedNodeFormat)?SG(e,Oa.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==R||33554432&e.flags||SG(e,Oa.Export_assignment_is_not_supported_when_module_flag_is_system))}(e);case 242:case 259:return void xG(e);case 282:(function(e){pF(e)})(e)}}(e),i=n}}function yz(e){mt(e)&&x(e,(e=>{rp(e)&&gz(e)}))}function vz(e){if(!$h(e))if(_M(e)||mM(e)){const t=as(_M(e)?54:58),n=e.postfix?Oa._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Oa._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=JE(e.type);SG(e,n,t,il(mM(e)&&r!==tn&&r!==en?mv(Ee([r,Pt],e.postfix?void 0:Bt)):r))}else SG(e,Oa.JSDoc_types_can_only_be_used_inside_documentation_comments)}function bz(e){const t=Hi(Yf(e));1&t.flags?In.assert(!t.deferredNodes,"A type-checked file should have no deferred nodes."):(t.deferredNodes||(t.deferredNodes=new Set),t.deferredNodes.add(e))}function Ez(e){var t,n;null==(t=kr)||t.push(kr.Phase.Check,"checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const r=i;switch(i=e,h=0,e.kind){case 213:case 214:case 215:case 170:case 286:gk(e);break;case 218:case 219:case 174:case 173:!function(e){In.assert(174!==e.kind||oh(e));const t=Zy(e),n=Em(e);if(Rw(e,n),e.body)if(Rb(e)||bm(pm(e)),241===e.body.kind)gz(e.body);else{const r=bO(e.body),o=n&&TW(n,t);if(o){const n=Bk(e.body);YS(2===(3&t)?JO(r,!1,n,Oa.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):r,o,n,n)}}}(e);break;case 177:case 178:LO(e);break;case 231:!function(e){x(e.members,gz),_F(e)}(e);break;case 168:!function(e){var t,n;if(cN(e.parent)||Md(e.parent)||dN(e.parent)){const r=eu(ps(e)),o=24576&qT(r);if(o){const i=ps(e.parent);if(!dN(e.parent)||52&RS(ou(i))){if(8192===o||16384===o){null==(t=kr)||t.push(kr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Jy(ou(i)),id:Jy(r)});const s=HT(i,r,16384===o?Hn:Un),l=HT(i,r,16384===o?Un:Hn),c=r;a=r,$S(s,l,e,Oa.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),a=c,null==(n=kr)||n.pop()}}else Ai(e,Oa.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(e);break;case 285:!function(e){_L(e)}(e);break;case 284:!function(e){_L(e.openingElement),JM(e.closingElement.tagName)?tL(e.closingElement):bO(e.closingElement.tagName),$M(e)}(e);break;case 216:case 234:case 217:!function(e){const{type:t}=MP(e),n=mD(e)?t:e,r=Hi(e);In.assertIsDefined(r.assertionExpressionType);const o=HA(Ux(r.assertionExpressionType)),i=JE(t);Gl(i)||l((()=>{const e=YA(o);JS(i,e)||uT(o,i,n,Oa.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}))}(e);break;case 222:bO(e.expression);break;case 226:NE(e)&&gk(e)}i=r,null==(n=kr)||n.pop()}function Sz(t){var n,r;null==(n=kr)||n.push(kr.Phase.Check,"checkSourceFile",{path:t.path},!0),br("beforeCheck"),function(t){const n=Hi(t);if(!(1&n.flags)){if(Cx(t,S,e))return;!function(e){!!(33554432&e.flags)&&function(e){for(const t of e.statements)if((Lu(t)||243===t.kind)&&TG(t))return!0}(e)}(t),V(ti),V(ni),V(ri),V(oi),V(ii),x(t.statements,gz),gz(t.endOfFileToken),function(e){const t=Hi(e);t.deferredNodes&&t.deferredNodes.forEach(Ez),t.deferredNodes=void 0}(t),T_(t)&&_F(t),l((()=>{t.isDeclarationFile||!S.noUnusedLocals&&!S.noUnusedParameters||hF(xz(t),((e,t,n)=>{!$f(e)&&Tz(t,!!(33554432&e.flags))&&si.add(n)})),t.isDeclarationFile||function(){var e;for(const t of ii)if(!(null==(e=ps(t))?void 0:e.isReferenced)){const e=bl(t);In.assert(vv(e),"Only parameter declaration should be checked here");const n=d_(t.name,Oa._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,o_(t.name),o_(t.propertyName));e.type||xx(n,iT(Yf(e),e.end,1,Oa.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,o_(t.propertyName))),si.add(n)}}()})),2===S.importsNotUsedAsValues&&!t.isDeclarationFile&&uP(t)&&function(e){if(Re)for(const t of e.statements)(pz(t)||fz(t))&&Ai(t,Oa.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}(t),T_(t)&&_z(t),ti.length&&(x(ti,LF),V(ti)),ni.length&&(x(ni,kF),V(ni)),ri.length&&(x(ri,PF),V(ri)),oi.length&&(x(oi,wF),V(oi)),n.flags|=1}}(t),br("afterCheck"),Er("Check","beforeCheck","afterCheck"),null==(r=kr)||r.pop()}function Tz(e,t){if(t)return!1;switch(e){case 0:return!!S.noUnusedLocals;case 1:return!!S.noUnusedParameters;default:return In.assertNever(e)}}function xz(e){return bo.get(e.path)||o}function Az(n,r){try{return t=r,function(t){if(t){Iz();const e=si.getGlobalDiagnostics(),n=e.length;Rz(t);const r=si.getDiagnostics(t.fileName),o=si.getGlobalDiagnostics();if(o!==e){return ce(be(e,o,pT),r)}return 0===n&&o.length>0?ce(o,r):r}return x(e.getSourceFiles(),Rz),si.getDiagnostics()}(n)}finally{t=void 0}}function Iz(){for(const e of s)e();s=[]}function Rz(e){Iz();const t=l;l=e=>e(),Sz(e),l=t}function Nz(e){for(;166===e.parent.kind;)e=e.parent;return 183===e.parent.kind}function Mz(e,t){let n,r=_h(e);for(;r&&!(n=t(r));)r=_h(r);return n}function Pz(e,t){return!!Mz(e,(e=>e===t))}function Oz(e){return void 0!==function(e){for(;166===e.parent.kind;)e=e.parent;return 271===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:277===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function Fz(e){if(Iy(e))return fs(e.parent);if($h(e)&&211===e.parent.kind&&e.parent===e.parent.parent.left&&!rC(e)&&!lM(e)&&!function(e){if(110===e.expression.kind){const t=vh(e,!1,!1);if(Td(t)){const e=jD(t);if(e){const t=$D(e,BN(e,void 0));return t&&!zl(t)}}}}(e.parent)){const t=function(e){switch(Eg(e.parent.parent)){case 1:case 3:return fs(e.parent);case 5:if(lD(e.parent)&&zS(e.parent)===e)return;case 4:case 2:return ps(e.parent.parent)}}(e);if(t)return t}if(277===e.parent.kind&&EE(e)){const t=qa(e,2998271,!0);if(t&&t!==_t)return t}else if(bd(e)&&Oz(e)){const t=jy(e,271);return In.assert(void 0!==t),Ha(e,!0)}if(bd(e)){const t=function(e){let t=e.parent;for(;gC(t);)e=t,t=t.parent;if(t&&205===t.kind&&t.qualifier===e)return t}(e);if(t){JE(t);const n=Hi(e).resolvedSymbol;return n===_t?void 0:n}}for(;DE(e);)e=e.parent;if(function(e){for(;211===e.parent.kind;)e=e.parent;return 233===e.parent.kind}(e)){let t=0;233===e.parent.kind?(t=j_(e)?788968:111551,bE(e.parent)&&(t|=111551)):t=1920,t|=2097152;const n=EE(e)?qa(e,t,!0):void 0;if(n)return n}if(348===e.parent.kind)return ry(e.parent);if(168===e.parent.kind&&352===e.parent.parent.kind){In.assert(!$h(e));const t=dy(e.parent);return t&&t.symbol}if(Bh(e)){if(im(e))return;const t=Cl(e,_n(rp,sM,lM)),n=t?901119:111551;if(80===e.kind){if(zh(e)&&JM(e)){const t=tL(e.parent);return t===_t?void 0:t}const r=qa(e,n,!0,!0,ay(e));if(!r&&t){const t=Cl(e,_n(Md,cN));if(t)return Jz(e,!0,ps(t))}if(r&&t){const t=ly(e);if(t&&tM(t)&&t===r.valueDeclaration)return qa(e,n,!0,!0,Yf(t))||r}return r}if(rC(e))return UL(e);if(211===e.kind||166===e.kind){const n=Hi(e);return n.resolvedSymbol?n.resolvedSymbol:(211===e.kind?(FL(e,0),n.resolvedSymbol||(n.resolvedSymbol=Vz(tO(e.expression),zv(e.name)))):WL(e,0),!n.resolvedSymbol&&t&&gC(e)?Jz(e):n.resolvedSymbol)}if(lM(e))return Jz(e)}else if(Nz(e)){const t=qa(e,183===e.parent.kind?788968:1920,!1,!0);return t&&t!==_t?t:W_(e)}return 182===e.parent.kind?qa(e,1):void 0}function Vz(e,t){const n=Xf(e,t);if(n.length&&e.members){const t=jm(Fp(e).members);if(n===Kf(e))return t;if(t){const r=Ui(t),o=U(Z(n,(e=>e.declaration)),Hz).join(",");if(r.filteredIndexSymbolCache||(r.filteredIndexSymbolCache=new Map),r.filteredIndexSymbolCache.has(o))return r.filteredIndexSymbolCache.get(o);{const t=ki(131072,"__index");return t.declarations=Z(n,(e=>e.declaration)),t.parent=e.aliasSymbol?e.aliasSymbol:e.symbol?e.symbol:Xz(t.declarations[0].parent),r.filteredIndexSymbolCache.set(o,t),t}}}}function Jz(e,t,n){if(bd(e)){const r=901119;let o=qa(e,r,t,!0,ay(e));if(!o&&nC(e)&&n&&(o=us(qi(ss(n),e.escapedText,r))),o)return o}const r=nC(e)?n:Jz(e.left,t,n),o=nC(e)?e.escapedText:e.right.escapedText;if(r){const e=111551&r.flags&&kf(sd(r),"prototype");return kf(e?sd(e):ou(r),o)}}function Xz(e,t){if(rM(e))return uP(e)?us(e.symbol):void 0;const{parent:n}=e,r=n.parent;if(!(67108864&e.flags)){if(Yz(e)){const t=ps(n);return id(e.parent)&&e.parent.propertyName===e?jM(t):t}if(Cy(e))return ps(n.parent);if(80===e.kind){if(Oz(e))return Fz(e);if(208===n.kind&&206===r.kind&&e===n.propertyName){const t=kf(tB(r),e.escapedText);if(t)return t}else if(PD(n)&&n.name===e)return 105===n.keywordToken&&"target"===kl(e)?WP(n).symbol:102===n.keywordToken&&"meta"===kl(e)?ag().members.get("meta"):void 0}switch(e.kind){case 80:case 81:case 211:case 166:if(!Sb(e))return Fz(e);case 110:const o=vh(e,!1,!1);if(Td(o)){const e=pm(o);if(e.thisParameter)return e.thisParameter}if(Gh(e))return bO(e).symbol;case 197:return HE(e).symbol;case 108:return bO(e).symbol;case 137:const i=e.parent;return i&&176===i.kind?i.parent.symbol:void 0;case 11:case 15:if(Uh(e.parent.parent)&&Hh(e.parent.parent)===e||(272===e.parent.kind||278===e.parent.kind)&&e.parent.moduleSpecifier===e||$h(e)&&tg(e.parent,!1)||L_(e.parent)||ZC(e.parent)&&P_(e.parent.parent)&&e.parent.parent.argument===e.parent)return Xa(e,e,t);if(dD(n)&&Sg(n)&&n.arguments[1]===e)return ps(n);case 9:const a=cD(n)?n.argumentExpression===e?gO(n.expression):void 0:ZC(n)&&YC(r)?JE(r.objectType):void 0;return a&&kf(a,Ml(e.text));case 90:case 100:case 39:case 86:return fs(e.parent);case 205:return P_(e)?Xz(e.argument.literal,t):void 0;case 95:return CN(e.parent)?In.checkDefined(e.parent.symbol):void 0;case 102:case 105:return PD(e.parent)?FP(e.parent).symbol:void 0;case 104:if(TD(e.parent)){const t=gO(e.parent.right),n=Vw(t);return(null==n?void 0:n.symbol)??t.symbol}return;case 236:return bO(e).symbol;case 295:if(zh(e)&&JM(e)){const t=tL(e.parent);return t===_t?void 0:t}default:return}}}function tB(e){if(rM(e)&&!uP(e))return Rt;if(67108864&e.flags)return Rt;const t=hE(e),n=t&&qd(ps(t.class));if(j_(e)){const t=JE(e);return n?Pu(t,n.thisType):t}if(Bh(e))return iB(e);if(n&&!t.isImplements){const e=Le(jd(n));return e?Pu(e,n.thisType):Rt}if(sA(e)){return ou(ps(e))}if(80===(r=e).kind&&sA(r.parent)&&jl(r.parent)===r){const t=Xz(e);return t?ou(t):Rt}var r;if(iD(e))return sc(e,!0,0)||Rt;if(Lu(e)){const t=ps(e);return t?sd(t):Rt}if(Yz(e)){const t=Xz(e);return t?sd(t):Rt}if(Vd(e))return sc(e.parent,!0,0)||Rt;if(Oz(e)){const t=Xz(e);if(t){const e=ou(t);return Gl(e)?sd(t):e}}return PD(e.parent)&&e.parent.keywordToken===e.kind?FP(e.parent):SN(e)?gg(!1):Rt}function nB(e){if(In.assert(210===e.kind||209===e.kind),250===e.parent.kind){return qw(e,XF(e.parent)||Rt)}if(226===e.parent.kind){return qw(e,gO(e.parent.right)||Rt)}if(303===e.parent.kind){const t=vt(e.parent.parent,sD);return Hw(t,nB(t)||Rt,Im(t.properties,e.parent))}const t=vt(e.parent,aD),n=nB(t)||Rt,r=$F(65,n,Pt,e.parent)||Rt;return Kw(t,n,t.elements.indexOf(e),r)}function iB(e){return RE(e)&&(e=e.parent),WE(gO(e))}function aB(e){const t=fs(e.parent);return jb(e)?sd(t):ou(t)}function sB(e){const t=e.name;switch(t.kind){case 80:return BE(kl(t));case 9:case 11:return BE(t.text);case 167:const e=MM(t);return zw(e,12288)?e:jt;default:return In.fail("Unsupported property name.")}}function lB(e){const t=Mf(Hp(e=yf(e))),n=wf(e,0).length?Qn:wf(e,1).length?Zn:void 0;return n&&x(Hp(n),(e=>{t.has(e.escapedName)||t.set(e.escapedName,e)})),ks(t)}function cB(e){return 0!==wf(e,0).length||0!==wf(e,1).length}function dB(e){if(ud(e))return!1;const t=Nl(e,nC);if(!t)return!1;const n=t.parent;if(!n)return!1;return!((lD(n)||QN(n))&&n.name===t)&&WB(t)===ve}function uB(e){let t=Xa(e.parent,e);if(!t||Wm(t))return!0;const n=ns(t);t=Za(t);const r=Ui(t);return void 0===r.exportsSomeValue&&(r.exportsSomeValue=n?!!(111551&t.flags):Wf(ls(t),(function(e){return(e=Fa(e))&&!!(111551&za(e))}))),r.exportsSomeValue}function pB(e,t){var n;const r=Nl(e,nC);if(r){let e=WB(r,function(e){return Ru(e.parent)&&e===e.parent.name}(r));if(e){if(1048576&e.flags){const n=us(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}const o=ms(e);if(o){if(512&o.flags&&312===(null==(n=o.valueDeclaration)?void 0:n.kind)){const e=o.valueDeclaration;return e!==Yf(r)?void 0:e}return Cl(r.parent,(e=>Ru(e)&&ps(e)===o))}}}}function mB(e){const t=XI(e);if(t)return t;const n=Nl(e,nC);if(n){const e=function(e){const t=Hi(e).resolvedSymbol;if(t&&t!==_t)return t;return ta(e,e.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}(n);if(wa(e,111551)&&!ja(e,111551))return ha(e)}}function _B(e){if(418&e.flags&&e.valueDeclaration&&!rM(e.valueDeclaration)){const t=Ui(e);if(void 0===t.isDeclarationWithCollidingName){const n=n_(e.valueDeclaration);if(em(n)||function(e){return e.valueDeclaration&&iD(e.valueDeclaration)&&299===bl(e.valueDeclaration).parent.kind}(e)){const r=Hi(e.valueDeclaration);if(ta(n.parent,e.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(16384&r.flags){const e=32768&r.flags,o=mu(n,!1),i=241===n.kind&&mu(n.parent,!1);t.isDeclarationWithCollidingName=!zm(n)&&(!e||!o&&!i)}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function hB(e){if(!ud(e)){const t=Nl(e,nC);if(t){const e=WB(t);if(e&&_B(e))return e.valueDeclaration}}}function gB(e){const t=Nl(e,Lu);if(t){const e=ps(t);if(e)return _B(e)}return!1}function yB(e){switch(In.assert(Re),e.kind){case 271:return bB(ps(e));case 273:case 274:case 276:case 281:const t=ps(e);return!!t&&bB(t,!0);case 278:const n=e.exportClause;return!!n&&(AN(n)||se(n.elements,yB));case 277:return!e.expression||80!==e.expression.kind||bB(ps(e),!0)}return!1}function vB(e){const t=Nl(e,hN);if(void 0===t||312!==t.parent.kind||!qh(t))return!1;return bB(ps(t))&&t.moduleReference&&!im(t.moduleReference)}function bB(e,t){if(!e)return!1;const n=Ss(Wa(e));return n===_t?!t||!ja(e):!!(111551&za(e,t,!0))&&(Zp(S)||!EB(n))}function EB(e){return jw(e)||!!e.constEnumOnlyModule}function SB(e,t){if(In.assert(Re),ga(e)){const t=ps(e),n=t&&Ui(t);if(null==n?void 0:n.referenced)return!0;const r=Ui(t).aliasTarget;if(r&&32&Zb(e)&&111551&za(r)&&(Zp(S)||!EB(r)))return!0}return!!t&&!!oP(e,(e=>SB(e,t)))}function TB(e){if(am(e.body)){if(Ju(e)||qu(e))return!1;const t=_m(ps(e));return t.length>1||1===t.length&&t[0].declaration!==e}return!1}function xB(e){return!!z&&!lm(e)&&!OM(e)&&!!e.initializer&&!Gb(e,31)}function AB(e){return z&&lm(e)&&!e.initializer&&Gb(e,31)}function IB(e){const t=Nl(e,sN);if(!t)return!1;const n=ps(t);return!!(n&&16&n.flags)&&!!Wf(ss(n),(e=>111551&e.flags&&IA(e.valueDeclaration)))}function RB(e){const t=Nl(e,sN);if(!t)return o;const n=ps(t);return n&&Hp(sd(n))||o}function CB(e){var t;const n=e.id||0;return n<0||n>=Ko.length?0:(null==(t=Ko[n])?void 0:t.flags)||0}function DB(e){return KW(e.parent),Hi(e).enumMemberValue}function NB(e){switch(e.kind){case 306:case 211:case 212:return!0}return!1}function MB(e){if(306===e.kind)return DB(e);const t=Hi(e).resolvedSymbol;if(t&&8&t.flags){const e=t.valueDeclaration;if(A_(e.parent))return DB(e)}}function LB(e){return!!(524288&e.flags)&&wf(e,0).length>0}function kB(e,t){var n;const r=Nl(e,bd);if(!r)return 0;if(t&&!(t=Nl(t)))return 0;let o=!1;if(gC(r)){const e=qa(SE(r),111551,!0,!0,t);o=!!(null==(n=null==e?void 0:e.declarations)?void 0:n.every(ld))}const i=qa(r,111551,!0,!0,t),a=i&&2097152&i.flags?Wa(i):i;o||(o=!(!i||!ja(i,111551)));const s=qa(r,788968,!0,!0,t),l=s&&2097152&s.flags?Wa(s):s;if(i||o||(o=!(!s||!ja(s,788968))),a&&a===l){const e=Dg(!1);if(e&&a===e)return 9;const t=sd(a);if(t&&Cd(t))return o?10:1}if(!l)return o?11:0;const c=ou(l);return Gl(c)?o?11:0:3&c.flags?11:zw(c,245760)?2:zw(c,528)?6:zw(c,296)?3:zw(c,2112)?4:zw(c,402653316)?5:tA(c)?7:zw(c,12288)?8:LB(c)?10:cx(c)?7:11}function PB(e,t,n,r,o){const i=Nl(e,$_);if(!i)return UA.createToken(133);const a=ps(i);let s=!a||133120&a.flags?Rt:Kx(sd(a));return 8192&s.flags&&s.symbol===a&&(n|=1048576),o&&(s=kA(s)),de.typeToTypeNode(s,t,1024|n,r)}function wB(e,t,n,r){const o=Nl(e,Td);if(!o)return UA.createToken(133);const i=pm(o);return de.typeToTypeNode(bm(i),t,1024|n,r)}function OB(e,t,n,r){const o=Nl(e,uu);if(!o)return UA.createToken(133);const i=YA(iB(o));return de.typeToTypeNode(i,t,1024|n,r)}function FB(e){return fe.has(Ml(e))}function WB(e,t){const n=Hi(e).resolvedSymbol;if(n)return n;let r=e;if(t){const t=e.parent;Lu(t)&&e===t.name&&(r=Dl(t))}return ta(r,e.escapedText,3257279,void 0,void 0,!0)}function zB(e){if(!ud(e)){const t=Nl(e,nC);if(t){const e=WB(t);if(e)return Ss(e).valueDeclaration}}}function BB(e){if(!ud(e)){const t=Nl(e,nC);if(t){const e=WB(t);if(e)return G(Ss(e).declarations,(e=>{switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1}))}}}function GB(e){return!!(I_(e)||iN(e)&&MG(e))&&zE(sd(ps(e)))}function jB(e,t){return function(e,t,n){const r=1056&e.flags?de.symbolToExpression(e.symbol,111551,t,void 0,n):e===qt?UA.createTrue():e===Ht&&UA.createFalse();if(r)return r;const o=e.value;return"object"===typeof o?UA.createBigIntLiteral(o):"string"===typeof o?UA.createStringLiteral(o):o<0?UA.createPrefixUnaryExpression(41,UA.createNumericLiteral(-o)):UA.createNumericLiteral(o)}(sd(ps(e)),e,t)}function VB(e){return e?(bi(e),Yf(e).localJsxFactory||ro):ro}function UB(e){if(e){const t=Yf(e);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;const e=t.pragmas.get("jsxfrag"),n=mt(e)?e[0]:e;if(n)return t.localJsxFragmentFactory=cP(n.arguments.factory,A),t.localJsxFragmentFactory}}if(S.jsxFragmentFactory)return cP(S.jsxFragmentFactory,A)}function HB(e){const t=267===e.kind?yt(e.name,zR):Bg(e),n=$a(t,t,void 0);if(n)return Df(n,312)}function KB(e,t){if((n&t)!==t&&S.importHelpers){const o=Yf(e);if(Um(o,S)&&!(33554432&e.flags)){const i=function(e,t){r||(r=Ya(e,cp,Oa.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||_t);return r}(o,e);if(i!==_t){const r=t&~n;for(let t=1;t<=33554432;t<<=1)if(r&t)for(const n of qB(t)){if(c.has(n))continue;c.add(n);const r=Fa(qi(ls(i),Ml(n),111551));r?524288&t?se(_m(r),(e=>XP(e)>3))||Ai(e,Oa.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,cp,n,4):1048576&t?se(_m(r),(e=>XP(e)>4))||Ai(e,Oa.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,cp,n,5):1024&t&&(se(_m(r),(e=>XP(e)>2))||Ai(e,Oa.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,cp,n,3)):Ai(e,Oa.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,cp,n)}}n|=t}}}function qB(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return C?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return In.fail("Unrecognized helper")}}function JB(e){var t;const n=function(e){const t=function(e){return jL(e)?L(e.modifiers,EC):void 0}(e);return t&&bG(t,Oa.Decorators_are_not_valid_here)}(e)||function(e){if(!e.modifiers)return!1;const t=function(e){switch(e.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return L(e.modifiers,vd);default:if(268===e.parent.kind||312===e.parent.kind)return;switch(e.kind){case 262:return XB(e,134);case 263:case 185:return XB(e,128);case 231:case 264:case 265:return L(e.modifiers,vd);case 243:return 4&e.declarationList.flags?XB(e,135):L(e.modifiers,vd);case 266:return XB(e,87);default:In.assertNever(e)}}}(e);return t&&bG(t,Oa.Modifiers_cannot_appear_here)}(e);if(void 0!==n)return n;if(bC(e)&&vb(e))return bG(e,Oa.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const r=GD(e)?7&e.declarationList.flags:0;let o,i,a,s,l,c=0,d=!1,u=!1;for(const p of e.modifiers)if(EC(p)){if(!Lh(C,e,e.parent,e.parent.parent))return 174!==e.kind||am(e.body)?bG(e,Oa.Decorators_are_not_valid_here):bG(e,Oa.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(C&&(177===e.kind||178===e.kind)){const t=xb(e.parent.members,e);if(Xb(t.firstAccessor)&&e===t.secondAccessor)return bG(e,Oa.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(-34849&c)return SG(p,Oa.Decorators_are_not_valid_here);if(u&&98303&c){In.assertIsDefined(l);return!vG(Yf(p))&&(xx(Ai(p,Oa.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),d_(l,Oa.Decorator_used_before_export_here)),!0)}c|=32768,98303&c?32&c&&(d=!0):u=!0,l??(l=p)}else{if(148!==p.kind){if(171===e.kind||173===e.kind)return SG(p,Oa._0_modifier_cannot_appear_on_a_type_member,as(p.kind));if(181===e.kind&&(126!==p.kind||!Md(e.parent)))return SG(p,Oa._0_modifier_cannot_appear_on_an_index_signature,as(p.kind))}if(103!==p.kind&&147!==p.kind&&87!==p.kind&&168===e.kind)return SG(p,Oa._0_modifier_cannot_appear_on_a_type_parameter,as(p.kind));switch(p.kind){case 87:{if(266!==e.kind&&168!==e.kind)return SG(e,Oa.A_class_member_cannot_have_the_0_keyword,as(87));const t=BM(e.parent)&&sy(e.parent)||e.parent;if(168===e.kind&&!(Ad(t)||Md(t)||wC(t)||OC(t)||NC(t)||MC(t)||xC(t)))return SG(p,Oa._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,as(p.kind));break}case 164:if(16&c)return SG(p,Oa._0_modifier_already_seen,"override");if(128&c)return SG(p,Oa._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(8&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,"override","readonly");if(512&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,"override","accessor");if(1024&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,"override","async");c|=16,s=p;break;case 125:case 124:case 123:const n=pl(sE(p.kind));if(7&c)return SG(p,Oa.Accessibility_modifier_already_seen);if(16&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,n,"override");if(256&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,n,"static");if(512&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,n,"accessor");if(8&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,n,"readonly");if(1024&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,n,"async");if(268===e.parent.kind||312===e.parent.kind)return SG(p,Oa._0_modifier_cannot_appear_on_a_module_or_namespace_element,n);if(64&c)return 123===p.kind?SG(p,Oa._0_modifier_cannot_be_used_with_1_modifier,n,"abstract"):SG(p,Oa._0_modifier_must_precede_1_modifier,n,"abstract");if(md(e))return SG(p,Oa.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);c|=sE(p.kind);break;case 126:if(256&c)return SG(p,Oa._0_modifier_already_seen,"static");if(8&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,"static","readonly");if(1024&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,"static","async");if(512&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,"static","accessor");if(268===e.parent.kind||312===e.parent.kind)return SG(p,Oa._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(169===e.kind)return SG(p,Oa._0_modifier_cannot_appear_on_a_parameter,"static");if(64&c)return SG(p,Oa._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,"static","override");c|=256,o=p;break;case 129:if(512&c)return SG(p,Oa._0_modifier_already_seen,"accessor");if(8&c)return SG(p,Oa._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(128&c)return SG(p,Oa._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(172!==e.kind)return SG(p,Oa.accessor_modifier_can_only_appear_on_a_property_declaration);c|=512;break;case 148:if(8&c)return SG(p,Oa._0_modifier_already_seen,"readonly");if(172!==e.kind&&171!==e.kind&&181!==e.kind&&169!==e.kind)return SG(p,Oa.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(512&c)return SG(p,Oa._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");c|=8;break;case 95:if(S.verbatimModuleSyntax&&!(33554432&e.flags)&&265!==e.kind&&264!==e.kind&&267!==e.kind&&312===e.parent.kind&&(1===R||1===Yf(e).impliedNodeFormat))return SG(p,Oa.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(32&c)return SG(p,Oa._0_modifier_already_seen,"export");if(128&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,"export","declare");if(64&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,"export","abstract");if(1024&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,"export","async");if(Md(e.parent))return SG(p,Oa._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(169===e.kind)return SG(p,Oa._0_modifier_cannot_appear_on_a_parameter,"export");if(4===r)return SG(p,Oa._0_modifier_cannot_appear_on_a_using_declaration,"export");if(6===r)return SG(p,Oa._0_modifier_cannot_appear_on_an_await_using_declaration,"export");c|=32;break;case 90:const u=312===e.parent.kind?e.parent:e.parent.parent;if(267===u.kind&&!Pm(u))return SG(p,Oa.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(4===r)return SG(p,Oa._0_modifier_cannot_appear_on_a_using_declaration,"default");if(6===r)return SG(p,Oa._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(!(32&c))return SG(p,Oa._0_modifier_must_precede_1_modifier,"export","default");if(d)return SG(l,Oa.Decorators_are_not_valid_here);c|=2048;break;case 138:if(128&c)return SG(p,Oa._0_modifier_already_seen,"declare");if(1024&c)return SG(p,Oa._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16&c)return SG(p,Oa._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Md(e.parent)&&!TC(e))return SG(p,Oa._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(169===e.kind)return SG(p,Oa._0_modifier_cannot_appear_on_a_parameter,"declare");if(4===r)return SG(p,Oa._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(6===r)return SG(p,Oa._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(33554432&e.parent.flags&&268===e.parent.kind)return SG(p,Oa.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(md(e))return SG(p,Oa._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(512&c)return SG(p,Oa._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");c|=128,i=p;break;case 128:if(64&c)return SG(p,Oa._0_modifier_already_seen,"abstract");if(263!==e.kind&&185!==e.kind){if(174!==e.kind&&172!==e.kind&&177!==e.kind&&178!==e.kind)return SG(p,Oa.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(263!==e.parent.kind||!Gb(e.parent,64)){return SG(p,172===e.kind?Oa.Abstract_properties_can_only_appear_within_an_abstract_class:Oa.Abstract_methods_can_only_appear_within_an_abstract_class)}if(256&c)return SG(p,Oa._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(2&c)return SG(p,Oa._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(1024&c&&a)return SG(a,Oa._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,"abstract","override");if(512&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Bl(e)&&81===e.name.kind)return SG(p,Oa._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");c|=64;break;case 134:if(1024&c)return SG(p,Oa._0_modifier_already_seen,"async");if(128&c||33554432&e.parent.flags)return SG(p,Oa._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(169===e.kind)return SG(p,Oa._0_modifier_cannot_appear_on_a_parameter,"async");if(64&c)return SG(p,Oa._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");c|=1024,a=p;break;case 103:case 147:{const n=103===p.kind?8192:16384,r=103===p.kind?"in":"out",o=BM(e.parent)&&(sy(e.parent)||L(null==(t=cy(e.parent))?void 0:t.tags,GM))||e.parent;if(168!==e.kind||o&&!(cN(o)||Md(o)||dN(o)||GM(o)))return SG(p,Oa._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,r);if(c&n)return SG(p,Oa._0_modifier_already_seen,r);if(8192&n&&16384&c)return SG(p,Oa._0_modifier_must_precede_1_modifier,"in","out");c|=n;break}}}return 176===e.kind?256&c?SG(o,Oa._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16&c?SG(s,Oa._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(1024&c)&&SG(a,Oa._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(272===e.kind||271===e.kind)&&128&c?SG(i,Oa.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):169===e.kind&&31&c&&Vd(e.name)?SG(e,Oa.A_parameter_property_may_not_be_declared_using_a_binding_pattern):169===e.kind&&31&c&&e.dotDotDotToken?SG(e,Oa.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(1024&c)&&function(e,t){switch(e.kind){case 174:case 262:case 218:case 219:return!1}return SG(t,Oa._0_modifier_cannot_be_used_here,"async")}(e,a)}function XB(e,t){const n=L(e.modifiers,vd);return n&&n.kind!==t?n:void 0}function YB(e,t=Oa.Trailing_comma_not_allowed){return!(!e||!e.hasTrailingComma)&&EG(e[0],e.end-1,1,t)}function QB(e,t){if(e&&0===e.length){const n=e.pos-1;return EG(t,n,Ts(t.text,e.end)+1-n,Oa.Type_parameter_list_cannot_be_empty)}return!1}function ZB(e){if(A>=3){const t=e.body&&BD(e.body)&&mL(e.body.statements);if(t){const n=G(e.parameters,(e=>!!e.initializer||Vd(e.name)||ip(e)));if(T(n)){x(n,(e=>{xx(Ai(e,Oa.This_parameter_is_not_allowed_with_use_strict_directive),d_(t,Oa.use_strict_directive_used_here))}));const e=n.map(((e,t)=>d_(e,0===t?Oa.Non_simple_parameter_declared_here:Oa.and_here)));return xx(Ai(t,Oa.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}function eG(e){const t=Yf(e);return JB(e)||QB(e.typeParameters,t)||function(e){let t=!1;const n=e.length;for(let r=0;r<n;r++){const o=e[r];if(o.dotDotDotToken){if(r!==n-1)return SG(o.dotDotDotToken,Oa.A_rest_parameter_must_be_last_in_a_parameter_list);if(33554432&o.flags||YB(e,Oa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),o.questionToken)return SG(o.questionToken,Oa.A_rest_parameter_cannot_be_optional);if(o.initializer)return SG(o.name,Oa.A_rest_parameter_cannot_have_an_initializer)}else if(lm(o)){if(t=!0,o.questionToken&&o.initializer)return SG(o.name,Oa.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!o.initializer)return SG(o.name,Oa.A_required_parameter_cannot_follow_an_optional_parameter)}}(e.parameters)||function(e,t){if(!hD(e))return!1;e.typeParameters&&!(T(e.typeParameters)>1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&t&&Qi(t.fileName,[".mts",".cts"])&&SG(e.typeParameters[0],Oa.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:n}=e,r=_s(t,n.pos).line,o=_s(t,n.end).line;return r!==o&&SG(n,Oa.Line_terminator_not_permitted_before_arrow)}(e,t)||Ad(e)&&ZB(e)}function tG(e,t){return YB(t)||function(e,t){if(t&&0===t.length){const n=Yf(e),r=t.pos-1;return EG(n,r,Ts(n.text,t.end)+1-r,Oa.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function nG(e){const t=e.types;if(YB(t))return!0;if(t&&0===t.length){const n=as(e.token);return EG(e,t.pos,0,Oa._0_list_cannot_be_empty,n)}return se(t,rG)}function rG(e){return ND(e)&&_C(e.expression)&&e.typeArguments?SG(e,Oa.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):tG(e,e.typeArguments)}function iG(e){if(167!==e.kind)return!1;const t=e;return 226===t.expression.kind&&28===t.expression.operatorToken.kind&&SG(t.expression,Oa.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function aG(e){if(e.asteriskToken){if(In.assert(262===e.kind||218===e.kind||174===e.kind),33554432&e.flags)return SG(e.asteriskToken,Oa.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return SG(e.asteriskToken,Oa.An_overload_signature_cannot_be_declared_as_a_generator)}}function sG(e,t){return!!e&&SG(e,t)}function lG(e,t){return!!e&&SG(e,t)}function cG(e){if(xG(e))return!0;if(250===e.kind&&e.awaitModifier&&!(65536&e.flags)){const t=Yf(e);if(Eh(e)){if(!vG(t))switch(Um(t,S)||si.add(d_(e.awaitModifier,Oa.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),R){case 100:case 199:if(1===t.impliedNodeFormat){si.add(d_(e.awaitModifier,Oa.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(A>=4)break;default:si.add(d_(e.awaitModifier,Oa.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!vG(t)){const t=d_(e.awaitModifier,Oa.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n=fh(e);if(n&&176!==n.kind){In.assert(0===(2&Zy(n)),"Enclosing function should never be an async function.");xx(t,d_(n,Oa.Did_you_mean_to_mark_this_function_as_async))}return si.add(t),!0}return!1}if(XD(e)&&!(65536&e.flags)&&nC(e.initializer)&&"async"===e.initializer.escapedText)return SG(e.initializer,Oa.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(261===e.initializer.kind){const t=e.initializer;if(!gG(t)){const n=t.declarations;if(!n.length)return!1;if(n.length>1){const n=249===e.kind?Oa.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:Oa.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return bG(t.declarations[1],n)}const r=n[0];if(r.initializer){const t=249===e.kind?Oa.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:Oa.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return SG(r.name,t)}if(r.type){return SG(r,249===e.kind?Oa.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:Oa.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}}return!1}function dG(e){if(e.parameters.length===(177===e.kind?1:2))return yb(e)}function uG(e,t){if(function(e){return ov(e)&&!Su(e)}(e))return SG(e,t)}function pG(e){if(eG(e))return!0;if(174===e.kind){if(210===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||134!==Pe(e.modifiers).kind))return bG(e,Oa.Modifiers_cannot_appear_here);if(sG(e.questionToken,Oa.An_object_member_cannot_be_declared_optional))return!0;if(lG(e.exclamationToken,Oa.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return EG(e,e.end-1,1,Oa._0_expected,"{")}if(aG(e))return!0}if(Md(e.parent)){if(A<2&&rC(e.name))return SG(e.name,Oa.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(33554432&e.flags)return uG(e.name,Oa.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(174===e.kind&&!e.body)return uG(e.name,Oa.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(264===e.parent.kind)return uG(e.name,Oa.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(187===e.parent.kind)return uG(e.name,Oa.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function fG(e){return tv(e)||224===e.kind&&41===e.operator&&9===e.operand.kind}function mG(e){const t=e.initializer;if(t){const r=!(fG(t)||function(e){if((lD(e)||cD(e)&&fG(e.argumentExpression))&&EE(e.expression))return!!(1056&tO(e).flags)}(t)||112===t.kind||97===t.kind||(n=t,10===n.kind||224===n.kind&&41===n.operator&&10===n.operand.kind));if(!(I_(e)||iN(e)&&MG(e))||e.type)return SG(t,Oa.Initializers_are_not_allowed_in_ambient_contexts);if(r)return SG(t,Oa.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}var n}function _G(e){if(80===e.kind){if("__esModule"===kl(e))return function(e,t,n,...r){if(!vG(Yf(t)))return Ti(e,t,n,...r),!0;return!1}("noEmit",e,Oa.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const t=e.elements;for(const e of t)if(!DD(e))return _G(e.name)}return!1}function hG(e){if(80===e.kind){if("let"===e.escapedText)return SG(e,Oa.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const t=e.elements;for(const e of t)DD(e)||hG(e.name)}return!1}function gG(e){const t=e.declarations;if(YB(e.declarations))return!0;if(!e.declarations.length)return EG(e,t.pos,t.end-t.pos,Oa.Variable_declaration_list_cannot_be_empty);const n=7&e.flags;return 4!==n&&6!==n||!JD(e.parent)?6===n&&ww(e):SG(e,4===n?Oa.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:Oa.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration)}function yG(e){switch(e.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return yG(e.parent)}return!0}function vG(e){return e.parseDiagnostics.length>0}function bG(e,t,...n){const r=Yf(e);if(!vG(r)){const o=b_(r,e.pos);return si.add(iT(r,o.start,o.length,t,...n)),!0}return!1}function EG(e,t,n,r,...o){const i=Yf(e);return!vG(i)&&(si.add(iT(i,t,n,r,...o)),!0)}function SG(e,t,...n){return!vG(Yf(e))&&(si.add(d_(e,t,...n)),!0)}function TG(e){return 264!==e.kind&&265!==e.kind&&272!==e.kind&&271!==e.kind&&278!==e.kind&&277!==e.kind&&270!==e.kind&&!Gb(e,2208)&&bG(e,Oa.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function xG(e){if(33554432&e.flags){if(!Hi(e).hasReportedStatementInAmbientContext&&(Td(e.parent)||Ld(e.parent)))return Hi(e).hasReportedStatementInAmbientContext=bG(e,Oa.An_implementation_cannot_be_declared_in_ambient_contexts);if(241===e.parent.kind||268===e.parent.kind||312===e.parent.kind){const t=Hi(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=bG(e,Oa.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function AG(e){const t=xm(e).includes("."),n=16&e.numericLiteralFlags;if(t||n)return;+e.text<=2**53-1||Ii(!1,d_(e,Oa.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function IG(e){return!!x(e.elements,(e=>{if(e.isTypeOnly)return bG(e,276===e.kind?Oa.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:Oa.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function RG(e,t,n){if(1048576&t.flags&&2621440&e.flags){const r=sR(t,e);if(r)return r;const o=Hp(e);if(o){const e=oR(o,t);if(e){const r=BT(t,U(e,(e=>[()=>sd(e),e.escapedName])),n);if(r!==t)return r}}}}function CG(e){const t=iv(e);return t||(yC(e)?eR(gO(e.expression)):void 0)}function DG(e){return ye===e?De:(ye=e,De=Sl(e))}function NG(e){return ge===e?Ce:(ge=e,Ce=xl(e))}function MG(e){const t=7&NG(e);return 2===t||4===t||6===t}}function Xz(e){return!Ld(e)}function $z(e){return 262!==e.kind&&174!==e.kind||!!e.body}function Yz(e){switch(e.parent.kind){case 276:case 281:return nC(e);default:return Iy(e)}}function Qz(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Zz(e){return!!(1&e.flags)}function eB(e){return!!(2&e.flags)}var tB,nB=b({"src/compiler/checker.ts"(){var e;JJ(),Vz(),oi(),Cz=/^".+"$/,Dz="(anonymous)",Nz=1,Mz=1,Lz=1,kz=1,Pz=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(Pz||{}),wz=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),Oz=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(Oz||{}),Fz=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(Fz||{}),Wz=mn($z,Xz),zz=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),Bz=class{},(e=Gz||(Gz={})).JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes",jz=class e{constructor(t,n,r){var o;for(this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;n instanceof e;)n=n.inner;this.inner=n,this.moduleResolverHost=r,this.context=t,this.canTrackSymbol=!!(null==(o=this.inner)?void 0:o.trackSymbol)}trackSymbol(e,t,n){var r,o;if((null==(r=this.inner)?void 0:r.trackSymbol)&&!this.disableTrackSymbol){if(this.inner.trackSymbol(e,t,n))return this.onDiagnosticReported(),!0;262144&e.flags||((o=this.context).trackedSymbols??(o.trackedSymbols=[])).push([e,t,n])}return!1}reportInaccessibleThisError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleThisError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(null==(t=this.inner)?void 0:t.reportPrivateInBaseOfClassExpression)&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleUniqueSymbolError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(null==(e=this.inner)?void 0:e.reportCyclicStructureError)&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(null==(t=this.inner)?void 0:t.reportLikelyUnsafeImportRequiredError)&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(null==(e=this.inner)?void 0:e.reportTruncationError)&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(e,t){var n;(null==(n=this.inner)?void 0:n.trackReferencedAmbientModule)&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(e,t))}trackExternalModuleSymbolOfImportTypeNode(e){var t;(null==(t=this.inner)?void 0:t.trackExternalModuleSymbolOfImportTypeNode)&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(e))}reportNonlocalAugmentation(e,t,n){var r;(null==(r=this.inner)?void 0:r.reportNonlocalAugmentation)&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,n))}reportNonSerializableProperty(e){var t;(null==(t=this.inner)?void 0:t.reportNonSerializableProperty)&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function rB(e,t,n,r){if(void 0===e)return e;const o=t(e);let i;return void 0!==o?(i=mt(o)?(r||mB)(o):o,In.assertNode(i,n),i):void 0}function oB(e,t,n,r,o){if(void 0===e)return e;const i=e.length;let a;(void 0===r||r<0)&&(r=0),(void 0===o||o>i-r)&&(o=i-r);let s=-1,l=-1;r>0||o<i?a=e.hasTrailingComma&&r+o===i:(s=e.pos,l=e.end,a=e.hasTrailingComma);const c=aB(e,t,n,r,o);if(c!==e){const e=UA.createNodeArray(c,a);return Bx(e,s,l),e}return e}function iB(e,t,n,r,o){if(void 0===e)return e;const i=e.length;return(void 0===r||r<0)&&(r=0),(void 0===o||o>i-r)&&(o=i-r),aB(e,t,n,r,o)}function aB(e,t,n,r,o){let i;const a=e.length;(r>0||o<a)&&(i=[]);for(let s=0;s<o;s++){const o=e[s+r],a=void 0!==o?t?t(o):o:void 0;if((void 0!==i||void 0===a||a!==o)&&(void 0===i&&(i=e.slice(0,s),In.assertEachNode(i,n)),a))if(mt(a))for(const e of a)In.assertNode(e,n),i.push(e);else In.assertNode(a,n),i.push(a)}return i||(In.assertEachNode(e,n),e)}function sB(e,t,n,r,o,i=oB){return n.startLexicalEnvironment(),e=i(e,t,wu,r),o&&(e=n.factory.ensureUseStrict(e)),UA.mergeLexicalEnvironment(e,n.endLexicalEnvironment())}function lB(e,t,n,r=oB){let o;return n.startLexicalEnvironment(),e&&(n.setLexicalEnvironmentFlags(1,!0),o=r(e,t,bC),2&n.getLexicalEnvironmentFlags()&&jp(n.getCompilerOptions())>=2&&(o=function(e,t){let n;for(let r=0;r<e.length;r++){const o=e[r],i=cB(o,t);(n||i!==o)&&(n||(n=e.slice(0,r)),n[r]=i)}if(n)return yk(t.factory.createNodeArray(n,e.hasTrailingComma),e);return e}(o,n)),n.setLexicalEnvironmentFlags(1,!1)),n.suspendLexicalEnvironment(),o}function cB(e,t){return e.dotDotDotToken?e:Vd(e.name)?function(e,t){const{factory:n}=t;return t.addInitializationStatement(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(e.name,void 0,e.type,e.initializer?n.createConditionalExpression(n.createStrictEquality(n.getGeneratedNameForNode(e),n.createVoidZero()),void 0,e.initializer,void 0,n.getGeneratedNameForNode(e)):n.getGeneratedNameForNode(e))]))),n.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,n.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}(e,t):e.initializer?function(e,t,n,r){const o=r.factory;return r.addInitializationStatement(o.createIfStatement(o.createTypeCheck(o.cloneNode(t),"undefined"),fI(yk(o.createBlock([o.createExpressionStatement(fI(yk(o.createAssignment(fI(o.cloneNode(t),96),fI(n,3168|Rm(n))),e),3072))]),e),3905))),o.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}(e,e.name,e.initializer,t):e}function dB(e,t,n,r=rB){n.resumeLexicalEnvironment();const o=r(e,t,bu),i=n.endLexicalEnvironment();if(se(i)){if(!o)return n.factory.createBlock(i);const e=n.factory.converters.convertToFunctionBlock(o),t=UA.mergeLexicalEnvironment(e.statements,i);return n.factory.updateBlock(e,t)}return o}function uB(e,t,n,r=rB){n.startBlockScope();const o=r(e,t,wu,n.factory.liftToBlock);In.assert(o);const i=n.endBlockScope();return se(i)?BD(o)?(i.push(...o.statements),n.factory.updateBlock(o,i)):(i.push(o),n.factory.createBlock(i)):o}function pB(e,t,n=t){if(n===t||e.length<=1)return oB(e,t,uu);let r=0;const o=e.length;return oB(e,(e=>{const i=r<o-1;return r++,i?n(e):t(e)}),uu)}function fB(e,t,n=nV,r=oB,o,i=rB){if(void 0===e)return;const a=tB[e.kind];return void 0===a?e:a(e,t,n,r,i,o)}function mB(e){return In.assert(e.length<=1,"Too many nodes written to output."),We(e)}var _B,hB,gB,yB,vB=b({"src/compiler/visitorPublic.ts"(){JJ(),tB={166:function(e,t,n,r,o,i){return n.factory.updateQualifiedName(e,In.checkDefined(o(e.left,t,bd)),In.checkDefined(o(e.right,t,nC)))},167:function(e,t,n,r,o,i){return n.factory.updateComputedPropertyName(e,In.checkDefined(o(e.expression,t,uu)))},168:function(e,t,n,r,o,i){return n.factory.updateTypeParameterDeclaration(e,r(e.modifiers,t,vd),In.checkDefined(o(e.name,t,nC)),o(e.constraint,t,Gd),o(e.default,t,Gd))},169:function(e,t,n,r,o,i){return n.factory.updateParameterDeclaration(e,r(e.modifiers,t,Fd),i?o(e.dotDotDotToken,i,KR):e.dotDotDotToken,In.checkDefined(o(e.name,t,Sd)),i?o(e.questionToken,i,QR):e.questionToken,o(e.type,t,Gd),o(e.initializer,t,uu))},170:function(e,t,n,r,o,i){return n.factory.updateDecorator(e,In.checkDefined(o(e.expression,t,uu)))},171:function(e,t,n,r,o,i){return n.factory.updatePropertySignature(e,r(e.modifiers,t,vd),In.checkDefined(o(e.name,t,Ed)),i?o(e.questionToken,i,QR):e.questionToken,o(e.type,t,Gd))},172:function(e,t,n,r,o,i){return n.factory.updatePropertyDeclaration(e,r(e.modifiers,t,Fd),In.checkDefined(o(e.name,t,Ed)),i?o(e.questionToken??e.exclamationToken,i,UL):e.questionToken??e.exclamationToken,o(e.type,t,Gd),o(e.initializer,t,uu))},173:function(e,t,n,r,o,i){return n.factory.updateMethodSignature(e,r(e.modifiers,t,vd),In.checkDefined(o(e.name,t,Ed)),i?o(e.questionToken,i,QR):e.questionToken,r(e.typeParameters,t,vC),r(e.parameters,t,bC),o(e.type,t,Gd))},174:function(e,t,n,r,o,i){return n.factory.updateMethodDeclaration(e,r(e.modifiers,t,Fd),i?o(e.asteriskToken,i,$R):e.asteriskToken,In.checkDefined(o(e.name,t,Ed)),i?o(e.questionToken,i,QR):e.questionToken,r(e.typeParameters,t,vC),lB(e.parameters,t,n,r),o(e.type,t,Gd),dB(e.body,t,n,o))},176:function(e,t,n,r,o,i){return n.factory.updateConstructorDeclaration(e,r(e.modifiers,t,Fd),lB(e.parameters,t,n,r),dB(e.body,t,n,o))},177:function(e,t,n,r,o,i){return n.factory.updateGetAccessorDeclaration(e,r(e.modifiers,t,Fd),In.checkDefined(o(e.name,t,Ed)),lB(e.parameters,t,n,r),o(e.type,t,Gd),dB(e.body,t,n,o))},178:function(e,t,n,r,o,i){return n.factory.updateSetAccessorDeclaration(e,r(e.modifiers,t,Fd),In.checkDefined(o(e.name,t,Ed)),lB(e.parameters,t,n,r),dB(e.body,t,n,o))},175:function(e,t,n,r,o,i){return n.startLexicalEnvironment(),n.suspendLexicalEnvironment(),n.factory.updateClassStaticBlockDeclaration(e,dB(e.body,t,n,o))},179:function(e,t,n,r,o,i){return n.factory.updateCallSignature(e,r(e.typeParameters,t,vC),r(e.parameters,t,bC),o(e.type,t,Gd))},180:function(e,t,n,r,o,i){return n.factory.updateConstructSignature(e,r(e.typeParameters,t,vC),r(e.parameters,t,bC),o(e.type,t,Gd))},181:function(e,t,n,r,o,i){return n.factory.updateIndexSignature(e,r(e.modifiers,t,Fd),r(e.parameters,t,bC),In.checkDefined(o(e.type,t,Gd)))},182:function(e,t,n,r,o,i){return n.factory.updateTypePredicateNode(e,o(e.assertsModifier,t,sC),In.checkDefined(o(e.parameterName,t,HL)),o(e.type,t,Gd))},183:function(e,t,n,r,o,i){return n.factory.updateTypeReferenceNode(e,In.checkDefined(o(e.typeName,t,bd)),r(e.typeArguments,t,Gd))},184:function(e,t,n,r,o,i){return n.factory.updateFunctionTypeNode(e,r(e.typeParameters,t,vC),r(e.parameters,t,bC),In.checkDefined(o(e.type,t,Gd)))},185:function(e,t,n,r,o,i){return n.factory.updateConstructorTypeNode(e,r(e.modifiers,t,vd),r(e.typeParameters,t,vC),r(e.parameters,t,bC),In.checkDefined(o(e.type,t,Gd)))},186:function(e,t,n,r,o,i){return n.factory.updateTypeQueryNode(e,In.checkDefined(o(e.exprName,t,bd)),r(e.typeArguments,t,Gd))},187:function(e,t,n,r,o,i){return n.factory.updateTypeLiteralNode(e,r(e.members,t,Wd))},188:function(e,t,n,r,o,i){return n.factory.updateArrayTypeNode(e,In.checkDefined(o(e.elementType,t,Gd)))},189:function(e,t,n,r,o,i){return n.factory.updateTupleTypeNode(e,r(e.elements,t,Gd))},190:function(e,t,n,r,o,i){return n.factory.updateOptionalTypeNode(e,In.checkDefined(o(e.type,t,Gd)))},191:function(e,t,n,r,o,i){return n.factory.updateRestTypeNode(e,In.checkDefined(o(e.type,t,Gd)))},192:function(e,t,n,r,o,i){return n.factory.updateUnionTypeNode(e,r(e.types,t,Gd))},193:function(e,t,n,r,o,i){return n.factory.updateIntersectionTypeNode(e,r(e.types,t,Gd))},194:function(e,t,n,r,o,i){return n.factory.updateConditionalTypeNode(e,In.checkDefined(o(e.checkType,t,Gd)),In.checkDefined(o(e.extendsType,t,Gd)),In.checkDefined(o(e.trueType,t,Gd)),In.checkDefined(o(e.falseType,t,Gd)))},195:function(e,t,n,r,o,i){return n.factory.updateInferTypeNode(e,In.checkDefined(o(e.typeParameter,t,vC)))},205:function(e,t,n,r,o,i){return n.factory.updateImportTypeNode(e,In.checkDefined(o(e.argument,t,Gd)),o(e.attributes,t,SN),o(e.qualifier,t,bd),r(e.typeArguments,t,Gd),e.isTypeOf)},302:function(e,t,n,r,o,i){return n.factory.updateImportTypeAssertionContainer(e,In.checkDefined(o(e.assertClause,t,bN)),e.multiLine)},202:function(e,t,n,r,o,i){return n.factory.updateNamedTupleMember(e,i?o(e.dotDotDotToken,i,KR):e.dotDotDotToken,In.checkDefined(o(e.name,t,nC)),i?o(e.questionToken,i,QR):e.questionToken,In.checkDefined(o(e.type,t,Gd)))},196:function(e,t,n,r,o,i){return n.factory.updateParenthesizedType(e,In.checkDefined(o(e.type,t,Gd)))},198:function(e,t,n,r,o,i){return n.factory.updateTypeOperatorNode(e,In.checkDefined(o(e.type,t,Gd)))},199:function(e,t,n,r,o,i){return n.factory.updateIndexedAccessTypeNode(e,In.checkDefined(o(e.objectType,t,Gd)),In.checkDefined(o(e.indexType,t,Gd)))},200:function(e,t,n,r,o,i){return n.factory.updateMappedTypeNode(e,i?o(e.readonlyToken,i,KL):e.readonlyToken,In.checkDefined(o(e.typeParameter,t,vC)),o(e.nameType,t,Gd),i?o(e.questionToken,i,qL):e.questionToken,o(e.type,t,Gd),r(e.members,t,Wd))},201:function(e,t,n,r,o,i){return n.factory.updateLiteralTypeNode(e,In.checkDefined(o(e.literal,t,du)))},203:function(e,t,n,r,o,i){return n.factory.updateTemplateLiteralType(e,In.checkDefined(o(e.head,t,VR)),r(e.templateSpans,t,tD))},204:function(e,t,n,r,o,i){return n.factory.updateTemplateLiteralTypeSpan(e,In.checkDefined(o(e.type,t,Gd)),In.checkDefined(o(e.literal,t,od)))},206:function(e,t,n,r,o,i){return n.factory.updateObjectBindingPattern(e,r(e.elements,t,iD))},207:function(e,t,n,r,o,i){return n.factory.updateArrayBindingPattern(e,r(e.elements,t,Hd))},208:function(e,t,n,r,o,i){return n.factory.updateBindingElement(e,i?o(e.dotDotDotToken,i,KR):e.dotDotDotToken,o(e.propertyName,t,Ed),In.checkDefined(o(e.name,t,Sd)),o(e.initializer,t,uu))},209:function(e,t,n,r,o,i){return n.factory.updateArrayLiteralExpression(e,r(e.elements,t,uu))},210:function(e,t,n,r,o,i){return n.factory.updateObjectLiteralExpression(e,r(e.properties,t,Bd))},211:function(e,t,n,r,o,i){return Lc(e)?n.factory.updatePropertyAccessChain(e,In.checkDefined(o(e.expression,t,uu)),i?o(e.questionDotToken,i,eC):e.questionDotToken,In.checkDefined(o(e.name,t,Nc))):n.factory.updatePropertyAccessExpression(e,In.checkDefined(o(e.expression,t,uu)),In.checkDefined(o(e.name,t,Nc)))},212:function(e,t,n,r,o,i){return kc(e)?n.factory.updateElementAccessChain(e,In.checkDefined(o(e.expression,t,uu)),i?o(e.questionDotToken,i,eC):e.questionDotToken,In.checkDefined(o(e.argumentExpression,t,uu))):n.factory.updateElementAccessExpression(e,In.checkDefined(o(e.expression,t,uu)),In.checkDefined(o(e.argumentExpression,t,uu)))},213:function(e,t,n,r,o,i){return Pc(e)?n.factory.updateCallChain(e,In.checkDefined(o(e.expression,t,uu)),i?o(e.questionDotToken,i,eC):e.questionDotToken,r(e.typeArguments,t,Gd),r(e.arguments,t,uu)):n.factory.updateCallExpression(e,In.checkDefined(o(e.expression,t,uu)),r(e.typeArguments,t,Gd),r(e.arguments,t,uu))},214:function(e,t,n,r,o,i){return n.factory.updateNewExpression(e,In.checkDefined(o(e.expression,t,uu)),r(e.typeArguments,t,Gd),r(e.arguments,t,uu))},215:function(e,t,n,r,o,i){return n.factory.updateTaggedTemplateExpression(e,In.checkDefined(o(e.tag,t,uu)),r(e.typeArguments,t,Gd),In.checkDefined(o(e.template,t,ou)))},216:function(e,t,n,r,o,i){return n.factory.updateTypeAssertion(e,In.checkDefined(o(e.type,t,Gd)),In.checkDefined(o(e.expression,t,uu)))},217:function(e,t,n,r,o,i){return n.factory.updateParenthesizedExpression(e,In.checkDefined(o(e.expression,t,uu)))},218:function(e,t,n,r,o,i){return n.factory.updateFunctionExpression(e,r(e.modifiers,t,vd),i?o(e.asteriskToken,i,$R):e.asteriskToken,o(e.name,t,nC),r(e.typeParameters,t,vC),lB(e.parameters,t,n,r),o(e.type,t,Gd),dB(e.body,t,n,o))},219:function(e,t,n,r,o,i){return n.factory.updateArrowFunction(e,r(e.modifiers,t,vd),r(e.typeParameters,t,vC),lB(e.parameters,t,n,r),o(e.type,t,Gd),i?In.checkDefined(o(e.equalsGreaterThanToken,i,tC)):e.equalsGreaterThanToken,dB(e.body,t,n,o))},220:function(e,t,n,r,o,i){return n.factory.updateDeleteExpression(e,In.checkDefined(o(e.expression,t,uu)))},221:function(e,t,n,r,o,i){return n.factory.updateTypeOfExpression(e,In.checkDefined(o(e.expression,t,uu)))},222:function(e,t,n,r,o,i){return n.factory.updateVoidExpression(e,In.checkDefined(o(e.expression,t,uu)))},223:function(e,t,n,r,o,i){return n.factory.updateAwaitExpression(e,In.checkDefined(o(e.expression,t,uu)))},224:function(e,t,n,r,o,i){return n.factory.updatePrefixUnaryExpression(e,In.checkDefined(o(e.operand,t,uu)))},225:function(e,t,n,r,o,i){return n.factory.updatePostfixUnaryExpression(e,In.checkDefined(o(e.operand,t,uu)))},226:function(e,t,n,r,o,i){return n.factory.updateBinaryExpression(e,In.checkDefined(o(e.left,t,uu)),i?In.checkDefined(o(e.operatorToken,i,ek)):e.operatorToken,In.checkDefined(o(e.right,t,uu)))},227:function(e,t,n,r,o,i){return n.factory.updateConditionalExpression(e,In.checkDefined(o(e.condition,t,uu)),i?In.checkDefined(o(e.questionToken,i,QR)):e.questionToken,In.checkDefined(o(e.whenTrue,t,uu)),i?In.checkDefined(o(e.colonToken,i,ZR)):e.colonToken,In.checkDefined(o(e.whenFalse,t,uu)))},228:function(e,t,n,r,o,i){return n.factory.updateTemplateExpression(e,In.checkDefined(o(e.head,t,VR)),r(e.templateSpans,t,WD))},229:function(e,t,n,r,o,i){return n.factory.updateYieldExpression(e,i?o(e.asteriskToken,i,$R):e.asteriskToken,o(e.expression,t,uu))},230:function(e,t,n,r,o,i){return n.factory.updateSpreadElement(e,In.checkDefined(o(e.expression,t,uu)))},231:function(e,t,n,r,o,i){return n.factory.updateClassExpression(e,r(e.modifiers,t,Fd),o(e.name,t,nC),r(e.typeParameters,t,vC),r(e.heritageClauses,t,$N),r(e.members,t,Nd))},233:function(e,t,n,r,o,i){return n.factory.updateExpressionWithTypeArguments(e,In.checkDefined(o(e.expression,t,uu)),r(e.typeArguments,t,Gd))},234:function(e,t,n,r,o,i){return n.factory.updateAsExpression(e,In.checkDefined(o(e.expression,t,uu)),In.checkDefined(o(e.type,t,Gd)))},238:function(e,t,n,r,o,i){return n.factory.updateSatisfiesExpression(e,In.checkDefined(o(e.expression,t,uu)),In.checkDefined(o(e.type,t,Gd)))},235:function(e,t,n,r,o,i){return wc(e)?n.factory.updateNonNullChain(e,In.checkDefined(o(e.expression,t,uu))):n.factory.updateNonNullExpression(e,In.checkDefined(o(e.expression,t,uu)))},236:function(e,t,n,r,o,i){return n.factory.updateMetaProperty(e,In.checkDefined(o(e.name,t,nC)))},239:function(e,t,n,r,o,i){return n.factory.updateTemplateSpan(e,In.checkDefined(o(e.expression,t,uu)),In.checkDefined(o(e.literal,t,od)))},241:function(e,t,n,r,o,i){return n.factory.updateBlock(e,r(e.statements,t,wu))},243:function(e,t,n,r,o,i){return n.factory.updateVariableStatement(e,r(e.modifiers,t,Fd),In.checkDefined(o(e.declarationList,t,aN)))},244:function(e,t,n,r,o,i){return n.factory.updateExpressionStatement(e,In.checkDefined(o(e.expression,t,uu)))},245:function(e,t,n,r,o,i){return n.factory.updateIfStatement(e,In.checkDefined(o(e.expression,t,uu)),In.checkDefined(o(e.thenStatement,t,wu,n.factory.liftToBlock)),o(e.elseStatement,t,wu,n.factory.liftToBlock))},246:function(e,t,n,r,o,i){return n.factory.updateDoStatement(e,uB(e.statement,t,n,o),In.checkDefined(o(e.expression,t,uu)))},247:function(e,t,n,r,o,i){return n.factory.updateWhileStatement(e,In.checkDefined(o(e.expression,t,uu)),uB(e.statement,t,n,o))},248:function(e,t,n,r,o,i){return n.factory.updateForStatement(e,o(e.initializer,t,Su),o(e.condition,t,uu),o(e.incrementor,t,uu),uB(e.statement,t,n,o))},249:function(e,t,n,r,o,i){return n.factory.updateForInStatement(e,In.checkDefined(o(e.initializer,t,Su)),In.checkDefined(o(e.expression,t,uu)),uB(e.statement,t,n,o))},250:function(e,t,n,r,o,i){return n.factory.updateForOfStatement(e,i?o(e.awaitModifier,i,lC):e.awaitModifier,In.checkDefined(o(e.initializer,t,Su)),In.checkDefined(o(e.expression,t,uu)),uB(e.statement,t,n,o))},251:function(e,t,n,r,o,i){return n.factory.updateContinueStatement(e,o(e.label,t,nC))},252:function(e,t,n,r,o,i){return n.factory.updateBreakStatement(e,o(e.label,t,nC))},253:function(e,t,n,r,o,i){return n.factory.updateReturnStatement(e,o(e.expression,t,uu))},254:function(e,t,n,r,o,i){return n.factory.updateWithStatement(e,In.checkDefined(o(e.expression,t,uu)),In.checkDefined(o(e.statement,t,wu,n.factory.liftToBlock)))},255:function(e,t,n,r,o,i){return n.factory.updateSwitchStatement(e,In.checkDefined(o(e.expression,t,uu)),In.checkDefined(o(e.caseBlock,t,mN)))},256:function(e,t,n,r,o,i){return n.factory.updateLabeledStatement(e,In.checkDefined(o(e.label,t,nC)),In.checkDefined(o(e.statement,t,wu,n.factory.liftToBlock)))},257:function(e,t,n,r,o,i){return n.factory.updateThrowStatement(e,In.checkDefined(o(e.expression,t,uu)))},258:function(e,t,n,r,o,i){return n.factory.updateTryStatement(e,In.checkDefined(o(e.tryBlock,t,BD)),o(e.catchClause,t,YN),o(e.finallyBlock,t,BD))},260:function(e,t,n,r,o,i){return n.factory.updateVariableDeclaration(e,In.checkDefined(o(e.name,t,Sd)),i?o(e.exclamationToken,i,YR):e.exclamationToken,o(e.type,t,Gd),o(e.initializer,t,uu))},261:function(e,t,n,r,o,i){return n.factory.updateVariableDeclarationList(e,r(e.declarations,t,iN))},262:function(e,t,n,r,o,i){return n.factory.updateFunctionDeclaration(e,r(e.modifiers,t,vd),i?o(e.asteriskToken,i,$R):e.asteriskToken,o(e.name,t,nC),r(e.typeParameters,t,vC),lB(e.parameters,t,n,r),o(e.type,t,Gd),dB(e.body,t,n,o))},263:function(e,t,n,r,o,i){return n.factory.updateClassDeclaration(e,r(e.modifiers,t,Fd),o(e.name,t,nC),r(e.typeParameters,t,vC),r(e.heritageClauses,t,$N),r(e.members,t,Nd))},264:function(e,t,n,r,o,i){return n.factory.updateInterfaceDeclaration(e,r(e.modifiers,t,Fd),In.checkDefined(o(e.name,t,nC)),r(e.typeParameters,t,vC),r(e.heritageClauses,t,$N),r(e.members,t,Wd))},265:function(e,t,n,r,o,i){return n.factory.updateTypeAliasDeclaration(e,r(e.modifiers,t,Fd),In.checkDefined(o(e.name,t,nC)),r(e.typeParameters,t,vC),In.checkDefined(o(e.type,t,Gd)))},266:function(e,t,n,r,o,i){return n.factory.updateEnumDeclaration(e,r(e.modifiers,t,Fd),In.checkDefined(o(e.name,t,nC)),r(e.members,t,tM))},267:function(e,t,n,r,o,i){return n.factory.updateModuleDeclaration(e,r(e.modifiers,t,Fd),In.checkDefined(o(e.name,t,JL)),o(e.body,t,Tu))},268:function(e,t,n,r,o,i){return n.factory.updateModuleBlock(e,r(e.statements,t,wu))},269:function(e,t,n,r,o,i){return n.factory.updateCaseBlock(e,r(e.clauses,t,Vu))},270:function(e,t,n,r,o,i){return n.factory.updateNamespaceExportDeclaration(e,In.checkDefined(o(e.name,t,nC)))},271:function(e,t,n,r,o,i){return n.factory.updateImportEqualsDeclaration(e,r(e.modifiers,t,Fd),e.isTypeOnly,In.checkDefined(o(e.name,t,nC)),In.checkDefined(o(e.moduleReference,t,Fu)))},272:function(e,t,n,r,o,i){return n.factory.updateImportDeclaration(e,r(e.modifiers,t,Fd),o(e.importClause,t,yN),In.checkDefined(o(e.moduleSpecifier,t,uu)),o(e.attributes,t,SN))},300:function(e,t,n,r,o,i){return n.factory.updateImportAttributes(e,r(e.elements,t,TN),e.multiLine)},301:function(e,t,n,r,o,i){return n.factory.updateImportAttribute(e,In.checkDefined(o(e.name,t,dd)),In.checkDefined(o(e.value,t,uu)))},273:function(e,t,n,r,o,i){return n.factory.updateImportClause(e,e.isTypeOnly,o(e.name,t,nC),o(e.namedBindings,t,Iu))},274:function(e,t,n,r,o,i){return n.factory.updateNamespaceImport(e,In.checkDefined(o(e.name,t,nC)))},280:function(e,t,n,r,o,i){return n.factory.updateNamespaceExport(e,In.checkDefined(o(e.name,t,nC)))},275:function(e,t,n,r,o,i){return n.factory.updateNamedImports(e,r(e.elements,t,RN))},276:function(e,t,n,r,o,i){return n.factory.updateImportSpecifier(e,e.isTypeOnly,o(e.propertyName,t,nC),In.checkDefined(o(e.name,t,nC)))},277:function(e,t,n,r,o,i){return n.factory.updateExportAssignment(e,r(e.modifiers,t,Fd),In.checkDefined(o(e.expression,t,uu)))},278:function(e,t,n,r,o,i){return n.factory.updateExportDeclaration(e,r(e.modifiers,t,Fd),e.isTypeOnly,o(e.exportClause,t,Uc),o(e.moduleSpecifier,t,uu),o(e.attributes,t,SN))},279:function(e,t,n,r,o,i){return n.factory.updateNamedExports(e,r(e.elements,t,MN))},281:function(e,t,n,r,o,i){return n.factory.updateExportSpecifier(e,e.isTypeOnly,o(e.propertyName,t,nC),In.checkDefined(o(e.name,t,nC)))},283:function(e,t,n,r,o,i){return n.factory.updateExternalModuleReference(e,In.checkDefined(o(e.expression,t,uu)))},284:function(e,t,n,r,o,i){return n.factory.updateJsxElement(e,In.checkDefined(o(e.openingElement,t,WN)),r(e.children,t,zu),In.checkDefined(o(e.closingElement,t,zN)))},285:function(e,t,n,r,o,i){return n.factory.updateJsxSelfClosingElement(e,In.checkDefined(o(e.tagName,t,Wu)),r(e.typeArguments,t,Gd),In.checkDefined(o(e.attributes,t,UN)))},286:function(e,t,n,r,o,i){return n.factory.updateJsxOpeningElement(e,In.checkDefined(o(e.tagName,t,Wu)),r(e.typeArguments,t,Gd),In.checkDefined(o(e.attributes,t,UN)))},287:function(e,t,n,r,o,i){return n.factory.updateJsxClosingElement(e,In.checkDefined(o(e.tagName,t,Wu)))},295:function(e,t,n,r,o,i){return n.factory.updateJsxNamespacedName(e,In.checkDefined(o(e.namespace,t,nC)),In.checkDefined(o(e.name,t,nC)))},288:function(e,t,n,r,o,i){return n.factory.updateJsxFragment(e,In.checkDefined(o(e.openingFragment,t,GN)),r(e.children,t,zu),In.checkDefined(o(e.closingFragment,t,jN)))},291:function(e,t,n,r,o,i){return n.factory.updateJsxAttribute(e,In.checkDefined(o(e.name,t,bA)),o(e.initializer,t,Gu))},292:function(e,t,n,r,o,i){return n.factory.updateJsxAttributes(e,r(e.properties,t,Bu))},293:function(e,t,n,r,o,i){return n.factory.updateJsxSpreadAttribute(e,In.checkDefined(o(e.expression,t,uu)))},294:function(e,t,n,r,o,i){return n.factory.updateJsxExpression(e,o(e.expression,t,uu))},296:function(e,t,n,r,o,i){return n.factory.updateCaseClause(e,In.checkDefined(o(e.expression,t,uu)),r(e.statements,t,wu))},297:function(e,t,n,r,o,i){return n.factory.updateDefaultClause(e,r(e.statements,t,wu))},298:function(e,t,n,r,o,i){return n.factory.updateHeritageClause(e,r(e.types,t,ND))},299:function(e,t,n,r,o,i){return n.factory.updateCatchClause(e,o(e.variableDeclaration,t,iN),In.checkDefined(o(e.block,t,BD)))},303:function(e,t,n,r,o,i){return n.factory.updatePropertyAssignment(e,In.checkDefined(o(e.name,t,Ed)),In.checkDefined(o(e.initializer,t,uu)))},304:function(e,t,n,r,o,i){return n.factory.updateShorthandPropertyAssignment(e,In.checkDefined(o(e.name,t,nC)),o(e.objectAssignmentInitializer,t,uu))},305:function(e,t,n,r,o,i){return n.factory.updateSpreadAssignment(e,In.checkDefined(o(e.expression,t,uu)))},306:function(e,t,n,r,o,i){return n.factory.updateEnumMember(e,In.checkDefined(o(e.name,t,Ed)),o(e.initializer,t,uu))},312:function(e,t,n,r,o,i){return n.factory.updateSourceFile(e,sB(e.statements,t,n))},360:function(e,t,n,r,o,i){return n.factory.updatePartiallyEmittedExpression(e,In.checkDefined(o(e.expression,t,uu)))},361:function(e,t,n,r,o,i){return n.factory.updateCommaListExpression(e,r(e.elements,t,uu))}}}});function bB(e,t,n,r,o){var i,a,{enter:s,exit:l}=o.extendedDiagnostics?vr("Source Map","beforeSourcemap","afterSourcemap"):dr,c=[],d=[],u=new Map,p=[],f=[],m="",_=0,h=0,g=0,y=0,v=0,b=0,E=!1,S=0,T=0,x=0,A=0,I=0,R=0,C=!1,D=!1,N=!1;return{getSources:()=>c,addSource:M,setSourceContent:L,addName:k,addMapping:P,appendSourceMap:function(e,t,n,r,o,i){In.assert(e>=S,"generatedLine cannot backtrack"),In.assert(t>=0,"generatedCharacter cannot be negative"),s();const a=[];let c;const d=IB(n.mappings);for(const s of d){if(i&&(s.generatedLine>i.line||s.generatedLine===i.line&&s.generatedCharacter>i.character))break;if(o&&(s.generatedLine<o.line||o.line===s.generatedLine&&s.generatedCharacter<o.character))continue;let l,d,u,p;if(void 0!==s.sourceIndex){if(l=a[s.sourceIndex],void 0===l){const e=n.sources[s.sourceIndex],t=n.sourceRoot?ua(n.sourceRoot,e):e,o=ua(ra(r),t);a[s.sourceIndex]=l=M(o),n.sourcesContent&&"string"===typeof n.sourcesContent[s.sourceIndex]&&L(l,n.sourcesContent[s.sourceIndex])}d=s.sourceLine,u=s.sourceCharacter,n.names&&void 0!==s.nameIndex&&(c||(c=[]),p=c[s.nameIndex],void 0===p&&(c[s.nameIndex]=p=k(n.names[s.nameIndex])))}const f=s.generatedLine-(o?o.line:0),m=f+e,_=o&&o.line===s.generatedLine?s.generatedCharacter-o.character:s.generatedCharacter;P(m,0===f?_+t:_,l,d,u,p)}l()},toJSON:W,toString:()=>JSON.stringify(W())};function M(t){s();const n=ka(r,t,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let o=u.get(n);return void 0===o&&(o=d.length,d.push(n),c.push(t),u.set(n,o)),l(),o}function L(e,t){if(s(),null!==t){for(i||(i=[]);i.length<e;)i.push(null);i[e]=t}l()}function k(e){s(),a||(a=new Map);let t=a.get(e);return void 0===t&&(t=p.length,p.push(e),a.set(e,t)),l(),t}function P(e,t,n,r,o,i){In.assert(e>=S,"generatedLine cannot backtrack"),In.assert(t>=0,"generatedCharacter cannot be negative"),In.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),In.assert(void 0===r||r>=0,"sourceLine cannot be negative"),In.assert(void 0===o||o>=0,"sourceCharacter cannot be negative"),s(),(function(e,t){return!C||S!==e||T!==t}(e,t)||function(e,t,n){return void 0!==e&&void 0!==t&&void 0!==n&&x===e&&(A>t||A===t&&I>n)}(n,r,o))&&(O(),S=e,T=t,D=!1,N=!1,C=!0),void 0!==n&&void 0!==r&&void 0!==o&&(x=n,A=r,I=o,D=!0,void 0!==i&&(R=i,N=!0)),l()}function w(e){f.push(e),f.length>=1024&&F()}function O(){if(C&&(!E||_!==S||h!==T||g!==x||y!==A||v!==I||b!==R)){if(s(),_<S){do{w(59),_++}while(_<S);h=0}else In.assertEqual(_,S,"generatedLine cannot backtrack"),E&&w(44);z(T-h),h=T,D&&(z(x-g),g=x,z(A-y),y=A,z(I-v),v=I,N&&(z(R-b),b=R)),E=!0,l()}}function F(){f.length>0&&(m+=String.fromCharCode.apply(void 0,f),f.length=0)}function W(){return O(),F(),{version:3,file:t,sourceRoot:n,sources:d,names:p,mappings:m,sourcesContent:i}}function z(e){e<0?e=1+(-e<<1):e<<=1;do{let n=31&e;(e>>=5)>0&&(n|=32),w((t=n)>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:62===t?43:63===t?47:In.fail(`${t}: not a base64 value`))}while(e>0);var t}}function EB(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function SB(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),r=hB.exec(n);if(r)return r[1].trimEnd();if(!n.match(gB))break}}function TB(e){return"string"===typeof e||null===e}function xB(e){return null!==e&&"object"===typeof e&&3===e.version&&"string"===typeof e.file&&"string"===typeof e.mappings&&mt(e.sources)&&M(e.sources,ht)&&(void 0===e.sourceRoot||null===e.sourceRoot||"string"===typeof e.sourceRoot)&&(void 0===e.sourcesContent||null===e.sourcesContent||mt(e.sourcesContent)&&M(e.sourcesContent,TB))&&(void 0===e.names||null===e.names||mt(e.names)&&M(e.names,ht))}function AB(e){try{const t=JSON.parse(e);if(xB(t))return t}catch{}}function IB(e){let t,n=!1,r=0,o=0,i=0,a=0,s=0,l=0,c=0;return{get pos(){return r},get error(){return t},get state(){return d(!0,!0)},next(){for(;!n&&r<e.length;){const t=e.charCodeAt(r);if(59===t){o++,i=0,r++;continue}if(44===t){r++;continue}let p=!1,g=!1;if(i+=h(),m())return u();if(i<0)return f("Invalid generatedCharacter found");if(!_()){if(p=!0,a+=h(),m())return u();if(a<0)return f("Invalid sourceIndex found");if(_())return f("Unsupported Format: No entries after sourceIndex");if(s+=h(),m())return u();if(s<0)return f("Invalid sourceLine found");if(_())return f("Unsupported Format: No entries after sourceLine");if(l+=h(),m())return u();if(l<0)return f("Invalid sourceCharacter found");if(!_()){if(g=!0,c+=h(),m())return u();if(c<0)return f("Invalid nameIndex found");if(!_())return f("Unsupported Error Format: Entries after nameIndex")}}return{value:d(p,g),done:n}}return u()},[Symbol.iterator](){return this}};function d(e,t){return{generatedLine:o,generatedCharacter:i,sourceIndex:e?a:void 0,sourceLine:e?s:void 0,sourceCharacter:e?l:void 0,nameIndex:t?c:void 0}}function u(){return n=!0,{value:void 0,done:!0}}function p(e){void 0===t&&(t=e)}function f(e){return p(e),u()}function m(){return void 0!==t}function _(){return r===e.length||44===e.charCodeAt(r)||59===e.charCodeAt(r)}function h(){let t=!0,n=0,o=0;for(;t;r++){if(r>=e.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const a=(i=e.charCodeAt(r))>=65&&i<=90?i-65:i>=97&&i<=122?i-97+26:i>=48&&i<=57?i-48+52:43===i?62:47===i?63:-1;if(-1===a)return p("Invalid character in VLQ"),-1;t=0!==(32&a),o|=(31&a)<<n,n+=5}var i;return 0===(1&o)?o>>=1:(o>>=1,o=-o),o}}function RB(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function CB(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function DB(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function NB(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function MB(e,t){return In.assert(e.sourceIndex===t.sourceIndex),Ft(e.sourcePosition,t.sourcePosition)}function LB(e,t){return Ft(e.generatedPosition,t.generatedPosition)}function kB(e){return e.sourcePosition}function PB(e){return e.generatedPosition}function wB(e,t,n){const r=ra(n),i=t.sourceRoot?ma(t.sourceRoot,r):r,a=ma(t.file,r),s=e.getSourceFileLike(a),l=t.sources.map((e=>ma(e,i))),c=new Map(l.map(((t,n)=>[e.getCanonicalFileName(t),n])));let d,u,p;return{getSourcePosition:function(e){const t=function(){if(void 0===u){const e=[];for(const t of m())e.push(t);u=_e(e,LB,NB)}return u}();if(!se(t))return e;let n=Ve(t,e.pos,PB,Ft);n<0&&(n=~n);const r=t[n];if(void 0===r||!DB(r))return e;return{fileName:l[r.sourceIndex],pos:r.sourcePosition}},getGeneratedPosition:function(t){const n=c.get(e.getCanonicalFileName(t.fileName));if(void 0===n)return t;const r=function(e){if(void 0===p){const e=[];for(const t of m()){if(!DB(t))continue;let n=e[t.sourceIndex];n||(e[t.sourceIndex]=n=[]),n.push(t)}p=e.map((e=>_e(e,MB,NB)))}return p[e]}(n);if(!se(r))return t;let o=Ve(r,t.pos,kB,Ft);o<0&&(o=~o);const i=r[o];if(void 0===i||i.sourceIndex!==n)return t;return{fileName:a,pos:i.generatedPosition}}};function f(n){const r=void 0!==s?cs(s,n.generatedLine,n.generatedCharacter,!0):-1;let o,i;if(CB(n)){const r=e.getSourceFileLike(l[n.sourceIndex]);o=t.sources[n.sourceIndex],i=void 0!==r?cs(r,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:r,source:o,sourceIndex:n.sourceIndex,sourcePosition:i,nameIndex:n.nameIndex}}function m(){if(void 0===d){const n=IB(t.mappings),r=Ye(n,f);void 0!==n.error?(e.log&&e.log(`Encountered error while decoding sourcemap: ${n.error}`),d=o):d=r}return d}}var OB,FB,WB=b({"src/compiler/sourcemap.ts"(){JJ(),oi(),_B=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,hB=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,gB=/^\s*(\/\/[@#] .*)?$/,yB={getSourcePosition:xt,getGeneratedPosition:xt}}});function zB(e){return(e=Rl(e))?Hz(e):0}function BB(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function GB(e,t){return function(n){return 312===n.kind?t(n):function(n){return e.factory.createBundle(U(n.sourceFiles,t),n.prepends)}(n)}}function jB(e){return!!Gg(e)}function VB(e){if(Gg(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!IN(t))return!1;let n=0;for(const r of t.elements)BB(r)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&jg(e)}function UB(e){return!VB(e)&&(jg(e)||!!e.importClause&&IN(e.importClause.namedBindings)&&function(e){return!!e&&!!IN(e)&&se(e.elements,BB)}(e.importClause.namedBindings))}function HB(e,t){const n=e.getEmitResolver(),r=e.getCompilerOptions(),o=[],i=new FB,a=[],s=new Map;let l,c,d=!1,u=!1,p=!1,f=!1;for(const h of t.statements)switch(h.kind){case 272:o.push(h),!p&&VB(h)&&(p=!0),!f&&UB(h)&&(f=!0);break;case 271:283===h.moduleReference.kind&&o.push(h);break;case 278:if(h.moduleSpecifier)if(h.exportClause)if(o.push(h),NN(h.exportClause))_(h);else{const e=h.exportClause.name;s.get(kl(e))||(qB(a,zB(h),e),s.set(kl(e),!0),l=Ee(l,e)),p=!0}else o.push(h),u=!0;else _(h);break;case 277:h.isExportEquals&&!c&&(c=h);break;case 243:if(Gb(h,32))for(const e of h.declarationList.declarations)l=KB(e,s,l,a);break;case 262:if(Gb(h,32))if(Gb(h,2048))d||(qB(a,zB(h),e.factory.getDeclarationName(h)),d=!0);else{const e=h.name;s.get(kl(e))||(qB(a,zB(h),e),s.set(kl(e),!0),l=Ee(l,e))}break;case 263:if(Gb(h,32))if(Gb(h,2048))d||(qB(a,zB(h),e.factory.getDeclarationName(h)),d=!0);else{const e=h.name;e&&!s.get(kl(e))&&(qB(a,zB(h),e),s.set(kl(e),!0),l=Ee(l,e))}}const m=RL(e.factory,e.getEmitHelperFactory(),t,r,u,p,f);return m&&o.unshift(m),{externalImports:o,exportSpecifiers:i,exportEquals:c,hasExportStarsToExportValues:u,exportedBindings:a,exportedNames:l,externalHelpersImportDeclaration:m};function _(e){for(const t of vt(e.exportClause,NN).elements)if(!s.get(kl(t.name))){const r=t.propertyName||t.name;e.moduleSpecifier||i.add(r,t);const o=n.getReferencedImportDeclaration(r)||n.getReferencedValueDeclaration(r);o&&qB(a,zB(o),t.name),s.set(kl(t.name),!0),l=Ee(l,t.name)}}}function KB(e,t,n,r){if(Vd(e.name))for(const o of e.name.elements)DD(o)||(n=KB(o,t,n,r));else if(!ud(e.name)){const o=kl(e.name);t.get(o)||(t.set(o,!0),n=Ee(n,e.name),uL(e.name)&&qB(r,zB(e),e.name))}return n}function qB(e,t,n){let r=e[t];return r?r.push(n):e[t]=r=[n],r}function JB(e){return np(e)||9===e.kind||Vy(e.kind)||nC(e)}function XB(e){return!nC(e)&&JB(e)}function $B(e){return e>=65&&e<=79}function YB(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function QB(e){if(!VD(e))return;const t=Ty(e.expression);return M_(t)?t:void 0}function ZB(e,t,n){for(let r=t;r<e.length;r+=1){const t=e[r];if(QB(t))return n.unshift(r),!0;if(rN(t)&&ZB(t.tryBlock.statements,0,n))return n.unshift(r),!0}return!1}function eG(e,t){const n=[];return ZB(e,t,n),n}function tG(e,t,n){return G(e.members,(e=>function(e,t,n){return TC(e)&&(!!e.initializer||!t)&&Vb(e)===n}(e,t,n)))}function nG(e){return TC(t=e)&&Vb(t)||IC(e);var t}function rG(e){return G(e.members,nG)}function oG(e){return 172===e.kind&&void 0!==e.initializer}function iG(e){return!jb(e)&&(wd(e)||kd(e))&&rC(e.name)}function aG(e){let t;if(e){const n=e.parameters,r=n.length>0&&vb(n[0]),o=r?1:0,i=r?n.length-1:n.length;for(let e=0;e<i;e++){const r=n[e+o];(t||Xb(r))&&(t||(t=new Array(i)),t[e]=Ul(r))}}return t}function sG(e){const t=Ul(e),n=aG(_b(e));if(se(t)||se(n))return{decorators:t,parameters:n}}function lG(e,t,n){switch(e.kind){case 177:case 178:return n?function(e,t){if(!e.body)return;const{firstAccessor:n,secondAccessor:r,getAccessor:o,setAccessor:i}=xb(t.members,e),a=Xb(n)?n:r&&Xb(r)?r:void 0;if(!a||e!==a)return;const s=Ul(a),l=aG(i);if(!se(s)&&!se(l))return;return{decorators:s,parameters:l,getDecorators:o&&Ul(o),setDecorators:i&&Ul(i)}}(e,t):cG(e);case 174:return cG(e);case 172:return function(e){const t=Ul(e);if(!se(t))return;return{decorators:t}}(e);default:return}}function cG(e){if(!e.body)return;const t=Ul(e),n=aG(e);return se(t)||se(n)?{decorators:t,parameters:n}:void 0}function dG(e,t){for(;e;){const n=t(e);if(void 0!==n)return n;e=e.previous}}function uG(e){return{data:e}}function pG(e,t){var n,r;return pd(t)?null==(n=null==e?void 0:e.generatedIdentifiers)?void 0:n.get(ak(t)):null==(r=null==e?void 0:e.identifiers)?void 0:r.get(t.escapedText)}function fG(e,t,n){pd(t)?(e.generatedIdentifiers??(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(ak(t),n)):(e.identifiers??(e.identifiers=new Map),e.identifiers.set(t.escapedText,n))}function mG(e,t){return dG(e,(e=>pG(e.privateEnv,t)))}function _G(e){return!e.initializer&&nC(e.name)}function hG(e){return M(e,_G)}var gG,yG=b({"src/compiler/transformers/utilities.ts"(){JJ(),OB=class e{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(e.toKey(t))}get(t){return this._map.get(e.toKey(t))}set(t,n){return this._map.set(e.toKey(t),n),this}delete(t){var n;return(null==(n=this._map)?void 0:n.delete(e.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(pd(t)||ud(t)){const n=t.emitNode.autoGenerate;if(4===(7&n.flags)){const r=ak(t),o=Nc(r)&&r!==t?e.toKey(r):`(generated@${Hz(r)})`;return ck(!1,n.prefix,o,n.suffix,e.toKey)}{const t=`(auto@${n.id})`;return ck(!1,n.prefix,t,n.suffix,e.toKey)}}return rC(t)?kl(t).slice(1):kl(t)}},FB=class extends OB{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){const n=this.get(e);n&&(on(n,t),n.length||this.delete(e))}}}});function vG(e,t,n,r,o,i){let a,s,l=e;if(vE(e))for(a=e.right;kE(e.left)||LE(e.left);){if(!vE(a))return In.checkDefined(rB(a,t,uu));l=e=a,a=e.right}const c={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:d,emitBindingOrAssignment:function(e,r,o,a){In.assertNode(e,i?nC:uu);const s=i?i(e,r,o):yk(n.factory.createAssignment(In.checkDefined(rB(e,t,uu)),r),o);s.original=a,d(s)},createArrayBindingOrAssignmentPattern:e=>function(e,t){return In.assertEachNode(t,Qd),e.createArrayLiteralExpression(U(t,e.converters.convertToArrayAssignmentElement))}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return In.assertEachNode(t,$d),e.createObjectLiteralExpression(U(t,e.converters.convertToObjectAssignmentElement))}(n.factory,e),createArrayBindingOrAssignmentElement:RG,visitor:t};if(a&&(a=rB(a,t,uu),In.assert(a),nC(a)&&bG(e,a.escapedText)||EG(e)?a=IG(c,a,!1,l):o?a=IG(c,a,!0,l):Sv(e)&&(l=a)),TG(c,e,a,l,vE(e)),a&&o){if(!se(s))return a;s.push(a)}return n.factory.inlineExpressions(s)||n.factory.createOmittedExpression();function d(e){s=Ee(s,e)}}function bG(e,t){const n=kL(e);return Jd(n)?function(e,t){const n=WL(e);for(const r of n)if(bG(r,t))return!0;return!1}(n,t):!!nC(n)&&n.escapedText===t}function EG(e){const t=OL(e);if(t&&yC(t)&&!ed(t.expression))return!0;const n=kL(e);return!!n&&Jd(n)&&!!x(WL(n),EG)}function SG(e,t,n,r,o,i=!1,a){let s;const l=[],c=[],d={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:i,emitExpression:function(e){s=Ee(s,e)},emitBindingOrAssignment:u,createArrayBindingOrAssignmentPattern:e=>function(e,t){return In.assertEachNode(t,Hd),e.createArrayBindingPattern(t)}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return In.assertEachNode(t,iD),e.createObjectBindingPattern(t)}(n.factory,e),createArrayBindingOrAssignmentElement:e=>function(e,t){return e.createBindingElement(void 0,void 0,t)}(n.factory,e),visitor:t};if(iN(e)){let t=LL(e);t&&(nC(t)&&bG(e,t.escapedText)||EG(e))&&(t=IG(d,In.checkDefined(rB(t,d.visitor,uu)),!1,t),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t))}if(TG(d,e,o,e,a),s){const e=n.factory.createTempVariable(void 0);if(i){const t=n.factory.inlineExpressions(s);s=void 0,u(e,t,void 0,void 0)}else{n.hoistVariableDeclaration(e);const t=Fe(l);t.pendingExpressions=Ee(t.pendingExpressions,n.factory.createAssignment(e,t.value)),xe(t.pendingExpressions,s),t.value=e}}for(const{pendingExpressions:p,name:f,value:m,location:_,original:h}of l){const e=n.factory.createVariableDeclaration(f,void 0,void 0,p?n.factory.inlineExpressions(Ee(p,m)):m);e.original=h,yk(e,_),c.push(e)}return c;function u(e,t,r,o){In.assertNode(e,Sd),s&&(t=n.factory.inlineExpressions(Ee(s,t)),s=void 0),l.push({pendingExpressions:s,name:e,value:t,location:r,original:o})}}function TG(e,t,n,r,o){const i=kL(t);if(!o){const o=rB(LL(t),e.visitor,uu);o?n?(n=function(e,t,n,r){return t=IG(e,t,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}(e,n,o,r),!XB(o)&&Jd(i)&&(n=IG(e,n,!0,r))):n=o:n||(n=e.context.factory.createVoidZero())}Xd(i)?function(e,t,n,r,o){const i=WL(n),a=i.length;if(1!==a){r=IG(e,r,!Kd(t)||0!==a,o)}let s,l;for(let c=0;c<a;c++){const t=i[c];if(PL(t)){if(c===a-1){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,o,n),s=void 0);const a=e.context.getEmitHelperFactory().createRestHelper(r,i,l,n);TG(e,t,a,t)}}else{const i=wL(t);if(!(e.level>=1)||98304&t.transformFlags||98304&kL(t).transformFlags||yC(i)){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,o,n),s=void 0);const a=AG(e,r,i);yC(i)&&(l=Ee(l,a.argumentExpression)),TG(e,t,a,t)}else s=Ee(s,rB(t,e.visitor,qd))}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,o,n)}(e,t,i,n,r):Yd(i)?function(e,t,n,r,o){const i=WL(n),a=i.length;if(e.level<1&&e.downlevelIteration)r=IG(e,yk(e.context.getEmitHelperFactory().createReadHelper(r,a>0&&PL(i[a-1])?void 0:a),o),!1,o);else if(1!==a&&(e.level<1||0===a)||M(i,DD)){r=IG(e,r,!Kd(t)||0!==a,o)}let s,l;for(let c=0;c<a;c++){const t=i[c];if(e.level>=1)if(65536&t.transformFlags||e.hasTransformedPriorElement&&!xG(t)){e.hasTransformedPriorElement=!0;const n=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(n),l=Ee(l,[n,t]),s=Ee(s,e.createArrayBindingOrAssignmentElement(n))}else s=Ee(s,t);else{if(DD(t))continue;if(PL(t)){if(c===a-1){const n=e.context.factory.createArraySliceCall(r,c);TG(e,t,n,t)}}else{const n=e.context.factory.createElementAccessExpression(r,c);TG(e,t,n,t)}}}s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,o,n);if(l)for(const[c,d]of l)TG(e,d,c,d)}(e,t,i,n,r):e.emitBindingOrAssignment(i,n,r,t)}function xG(e){const t=kL(e);if(!t||DD(t))return!0;const n=OL(e);if(n&&!av(n))return!1;const r=LL(e);return!(r&&!XB(r))&&(Jd(t)?M(WL(t),xG):nC(t))}function AG(e,t,n){const{factory:r}=e.context;if(yC(n)){const r=IG(e,In.checkDefined(rB(n.expression,e.visitor,uu)),!1,n);return e.context.factory.createElementAccessExpression(t,r)}if(tv(n)){const o=r.cloneNode(n);return e.context.factory.createElementAccessExpression(t,o)}{const r=e.context.factory.createIdentifier(kl(n));return e.context.factory.createPropertyAccessExpression(t,r)}}function IG(e,t,n,r){if(nC(t)&&n)return t;{const n=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(n),e.emitExpression(yk(e.context.factory.createAssignment(n,t),r))):e.emitBindingOrAssignment(n,t,r,void 0),n}}function RG(e){return e}var CG=b({"src/compiler/transformers/destructuring.ts"(){JJ(),gG=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(gG||{})}});function DG(e,t,n=e.createThis()){const r=e.createAssignment(t,n),o=e.createExpressionStatement(r),i=e.createBlock([o],!1),a=e.createClassStaticBlockDeclaration(i);return dI(a).classThis=t,a}function NG(e){var t;if(!IC(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return VD(n)&&gE(n.expression,!0)&&nC(n.expression.left)&&(null==(t=e.emitNode)?void 0:t.classThis)===n.expression.left&&110===n.expression.right.kind}function MG(e){var t;return!!(null==(t=e.emitNode)?void 0:t.classThis)&&se(e.members,NG)}function LG(e,t,n,r){if(MG(t))return t;const o=DG(e,n,r);t.name&&yI(o.body.statements[0],t.name);const i=e.createNodeArray([o,...t.members]);yk(i,t.members);const a=lN(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,i):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,i);return dI(a).classThis=n,a}var kG=b({"src/compiler/transformers/classThis.ts"(){JJ()}});function PG(e,t,n){const r=Rl(EL(n));return(lN(r)||sN(r))&&!r.name&&Gb(r,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function wG(e,t,n){const{factory:r}=e;if(void 0!==n){return{assignedName:r.createStringLiteral(n),name:t}}if(av(t)||rC(t)){return{assignedName:r.createStringLiteralFromNode(t),name:t}}if(av(t.expression)&&!nC(t.expression)){return{assignedName:r.createStringLiteralFromNode(t.expression),name:t}}const o=r.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);const i=e.getEmitHelperFactory().createPropKeyHelper(t.expression),a=r.createAssignment(o,i);return{assignedName:o,name:r.updateComputedPropertyName(t,a)}}function OG(e,t,n=e.factory.createThis()){const{factory:r}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),i=r.createExpressionStatement(o),a=r.createBlock([i],!1),s=r.createClassStaticBlockDeclaration(a);return dI(s).assignedName=t,s}function FG(e){var t;if(!IC(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return VD(n)&&wR(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===(null==(t=e.emitNode)?void 0:t.assignedName)}function WG(e){var t;return!!(null==(t=e.emitNode)?void 0:t.assignedName)&&se(e.members,FG)}function zG(e){return!!e.name||WG(e)}function BG(e,t,n,r){if(WG(t))return t;const{factory:o}=e,i=OG(e,n,r);t.name&&yI(i.body.statements[0],t.name);const a=P(t.members,NG)+1,s=t.members.slice(0,a),l=t.members.slice(a),c=o.createNodeArray([...s,i,...l]);return yk(c,t.members),dI(t=lN(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,c):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,c)).assignedName=n,t}function GG(e,t,n,r){if(r&&zR(n)&&Wh(n))return t;const{factory:o}=e,i=EL(t),a=CD(i)?vt(BG(e,i,n),CD):e.getEmitHelperFactory().createSetFunctionNameHelper(i,n);return o.restoreOuterExpressions(t,a)}function jG(e,t,n,r){switch(t.kind){case 303:return function(e,t,n,r){const{factory:o}=e,{assignedName:i,name:a}=wG(e,t.name,r),s=GG(e,t.initializer,i,n);return o.updatePropertyAssignment(t,a,s)}(e,t,n,r);case 304:return function(e,t,n,r){const{factory:o}=e,i=void 0!==r?o.createStringLiteral(r):PG(o,t.name,t.objectAssignmentInitializer),a=GG(e,t.objectAssignmentInitializer,i,n);return o.updateShorthandPropertyAssignment(t,t.name,a)}(e,t,n,r);case 260:return function(e,t,n,r){const{factory:o}=e,i=void 0!==r?o.createStringLiteral(r):PG(o,t.name,t.initializer),a=GG(e,t.initializer,i,n);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,a)}(e,t,n,r);case 169:return function(e,t,n,r){const{factory:o}=e,i=void 0!==r?o.createStringLiteral(r):PG(o,t.name,t.initializer),a=GG(e,t.initializer,i,n);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,a)}(e,t,n,r);case 208:return function(e,t,n,r){const{factory:o}=e,i=void 0!==r?o.createStringLiteral(r):PG(o,t.name,t.initializer),a=GG(e,t.initializer,i,n);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,a)}(e,t,n,r);case 172:return function(e,t,n,r){const{factory:o}=e,{assignedName:i,name:a}=wG(e,t.name,r),s=GG(e,t.initializer,i,n);return o.updatePropertyDeclaration(t,t.modifiers,a,t.questionToken??t.exclamationToken,t.type,s)}(e,t,n,r);case 226:return function(e,t,n,r){const{factory:o}=e,i=void 0!==r?o.createStringLiteral(r):PG(o,t.left,t.right),a=GG(e,t.right,i,n);return o.updateBinaryExpression(t,t.left,t.operatorToken,a)}(e,t,n,r);case 277:return function(e,t,n,r){const{factory:o}=e,i=void 0!==r?o.createStringLiteral(r):o.createStringLiteral(t.isExportEquals?"":"default"),a=GG(e,t.expression,i,n);return o.updateExportAssignment(t,t.modifiers,a)}(e,t,n,r)}}var VG,UG=b({"src/compiler/transformers/namedEvaluation.ts"(){JJ()}});function HG(e,t,n,r,o,i){const a=rB(t.tag,n,uu);In.assert(a);const s=[void 0],l=[],c=[],d=t.template;if(0===i&&!Pv(d))return fB(t,n,e);const{factory:u}=e;if(jR(d))l.push(KG(u,d)),c.push(qG(u,d,r));else{l.push(KG(u,d.head)),c.push(qG(u,d.head,r));for(const e of d.templateSpans)l.push(KG(u,e.literal)),c.push(qG(u,e.literal,r)),s.push(In.checkDefined(rB(e.expression,n,uu)))}const p=e.getEmitHelperFactory().createTemplateObjectHelper(u.createArrayLiteralExpression(l),u.createArrayLiteralExpression(c));if(uP(r)){const e=u.createUniqueName("templateObject");o(e),s[0]=u.createLogicalOr(e,u.createAssignment(e,p))}else s[0]=p;return u.createCallExpression(a,void 0,s)}function KG(e,t){return 26656&t.templateFlags?e.createVoidZero():e.createStringLiteral(t.text)}function qG(e,t,n){let r=t.rawText;if(void 0===r){In.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=Em(n,t);const e=15===t.kind||18===t.kind;r=r.substring(1,r.length-(e?1:2))}return r=r.replace(/\r\n?/g,"\n"),yk(e.createStringLiteral(r),t)}var JG,XG=b({"src/compiler/transformers/taggedTemplate.ts"(){JJ(),VG=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(VG||{})}});function $G(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:o,endLexicalEnvironment:i,hoistVariableDeclaration:a}=e,s=e.getEmitResolver(),l=e.getCompilerOptions(),c=jp(l),d=Vp(l),u=!!l.experimentalDecorators,p=l.emitDecoratorMetadata?tj(e):void 0,f=e.onEmitNode,m=e.onSubstituteNode;let _,h,g,y,v,b,E,S;return e.onEmitNode=function(e,t,n){const r=S,o=_;rM(t)&&(_=t);2&E&&function(e){return 267===Rl(e).kind}(t)&&(S|=2);8&E&&function(e){return 266===Rl(e).kind}(t)&&(S|=8);f(e,t,n),S=r,_=o},e.onSubstituteNode=function(e,n){if(n=m(e,n),1===e)return function(e){switch(e.kind){case 80:return function(e){return Re(e)||e}(e);case 211:case 212:return function(e){return Ce(e)}(e)}return e}(n);if(ZN(n))return function(e){if(2&E){const n=e.name,r=Re(n);if(r){if(e.objectAssignmentInitializer){const o=t.createAssignment(r,e.objectAssignmentInitializer);return yk(t.createPropertyAssignment(n,o),e)}return yk(t.createPropertyAssignment(n,r),e)}}return e}(n);return n},e.enableSubstitution(211),e.enableSubstitution(212),function(e){if(313===e.kind)return function(e){return t.createBundle(e.sourceFiles.map(T),Z(e.prepends,(e=>315===e.kind?rI(e,"js"):e)))}(e);return T(e)};function T(t){if(t.isDeclarationFile)return t;_=t;const n=x(t,F);return wI(n,e.readEmitHelpers()),_=void 0,n}function x(e,t){const n=y,r=v,o=b;!function(e){switch(e.kind){case 312:case 269:case 268:case 241:y=e,v=void 0;break;case 263:case 262:if(Gb(e,128))break;e.name?ie(e):In.assert(263===e.kind||Gb(e,2048))}}(e);const i=t(e);return y!==n&&(v=r),y=n,b=o,i}function A(e){return x(e,I)}function I(e){return 1&e.transformFlags?O(e):e}function R(e){return x(e,C)}function C(n){switch(n.kind){case 272:case 271:case 277:case 278:return function(n){if(function(e){const t=Nl(e);if(t===e||CN(e))return!1;if(!t||t.kind!==e.kind)return!0;switch(e.kind){case 272:if(In.assertNode(t,gN),e.importClause!==t.importClause)return!0;if(e.attributes!==t.attributes)return!0;break;case 271:if(In.assertNode(t,hN),e.name!==t.name)return!0;if(e.isTypeOnly!==t.isTypeOnly)return!0;if(e.moduleReference!==t.moduleReference&&(bd(e.moduleReference)||bd(t.moduleReference)))return!0;break;case 278:if(In.assertNode(t,DN),e.exportClause!==t.exportClause)return!0;if(e.attributes!==t.attributes)return!0}return!1}(n))return 1&n.transformFlags?fB(n,A,e):n;switch(n.kind){case 272:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;const n=rB(e.importClause,pe,yN);return n||1===l.importsNotUsedAsValues||2===l.importsNotUsedAsValues?t.updateImportDeclaration(e,void 0,n,e.moduleSpecifier,e.attributes):void 0}(n);case 271:return he(n);case 277:return function(t){return l.verbatimModuleSyntax||s.isValueAliasDeclaration(t)?fB(t,A,e):void 0}(n);case 278:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||AN(e.exportClause))return e;const n=l.verbatimModuleSyntax||!!e.moduleSpecifier&&(1===l.importsNotUsedAsValues||2===l.importsNotUsedAsValues),r=rB(e.exportClause,(e=>function(e,n){return AN(e)?function(e){return t.updateNamespaceExport(e,In.checkDefined(rB(e.name,A,nC)))}(e):function(e,n){const r=oB(e.elements,_e,MN);return n||se(r)?t.updateNamedExports(e,r):void 0}(e,n)}(e,n)),Uc);return r?t.updateExportDeclaration(e,void 0,e.isTypeOnly,r,e.moduleSpecifier,e.attributes):void 0}(n);default:In.fail("Unhandled ellided statement")}}(n);default:return I(n)}}function D(e){return x(e,N)}function N(e){if(278!==e.kind&&272!==e.kind&&273!==e.kind&&(271!==e.kind||283!==e.moduleReference.kind))return 1&e.transformFlags||Gb(e,32)?O(e):e}function M(n){return r=>x(r,(r=>function(n,r){switch(n.kind){case 176:return function(n){if(!X(n))return;return t.updateConstructorDeclaration(n,void 0,lB(n.parameters,A,e),function(n,r){const a=r&&G(r.parameters,(e=>gl(e,r)));if(!se(a))return dB(n,A,e);let s=[];o();const l=t.copyPrologue(n.statements,s,!1,A),c=eG(n.statements,l),d=Z(a,Y);c.length?$(s,n.statements,l,c,0,d):(xe(s,d),xe(s,oB(n.statements,A,wu,l)));s=t.mergeLexicalEnvironment(s,i());const u=t.createBlock(yk(t.createNodeArray(s),n.statements),!0);return yk(u,n),lI(u,n),u}(n.body,n))}(n);case 172:return function(e,n){const r=33554432&e.flags||Gb(e,64);if(r&&(!u||!Xb(e)))return;let o=Md(n)?oB(e.modifiers,r?P:A,Fd):oB(e.modifiers,k,Fd);if(o=j(o,e,n),r)return t.updatePropertyDeclaration(e,ce(o,t.createModifiersFromModifierFlags(128)),In.checkDefined(rB(e.name,A,Ed)),void 0,void 0,void 0);return t.updatePropertyDeclaration(e,o,J(e),void 0,void 0,rB(e.initializer,A,uu))}(n,r);case 177:return te(n,r);case 178:return ne(n,r);case 174:return Q(n,r);case 175:return fB(n,A,e);case 240:return n;case 181:return;default:return In.failBadSyntaxKind(n)}}(r,n)))}function L(e){return t=>x(t,(t=>function(e,t){switch(e.kind){case 303:case 304:case 305:return A(e);case 177:return te(e,t);case 178:return ne(e,t);case 174:return Q(e,t);default:return In.failBadSyntaxKind(e)}}(t,e)))}function k(e){return EC(e)?void 0:A(e)}function P(e){return vd(e)?void 0:A(e)}function w(e){if(!EC(e)&&!(28895&sE(e.kind))&&(!h||95!==e.kind))return e}function O(n){if(wu(n)&&Gb(n,128))return t.createNotEmittedStatement(n);switch(n.kind){case 95:case 90:return h?void 0:n;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:case 270:return;case 265:case 264:return t.createNotEmittedStatement(n);case 263:return function(n){const r=function(e){let t=0;se(tG(e,!0,!0))&&(t|=1);const n=Oy(e);n&&106!==EL(n.expression).kind&&(t|=64);Oh(u,e)&&(t|=2);wh(u,e)&&(t|=4);ge(e)?t|=8:!function(e){return ye(e)&&Gb(e,2048)}(e)?ve(e)&&(t|=16):t|=32;return t}(n),o=c<=1&&!!(7&r);if(!function(e){return Xb(e)||se(e.typeParameters)||se(e.heritageClauses,W)||se(e.members,W)}(n)&&!Oh(u,n)&&!ge(n))return t.updateClassDeclaration(n,oB(n.modifiers,w,vd),n.name,void 0,oB(n.heritageClauses,A,$N),oB(n.members,M(n),Nd));o&&e.startLexicalEnvironment();const i=o||8&r;let a=oB(n.modifiers,i?P:A,Fd);2&r&&(a=B(a,n));const s=i&&!n.name||4&r||1&r,l=s?n.name??t.getGeneratedNameForNode(n):n.name,d=t.updateClassDeclaration(n,a,l,void 0,oB(n.heritageClauses,A,$N),z(n));let p,f=Rm(n);1&r&&(f|=64);if(fI(d,f),o){const r=[d],o=$E(Ts(_.text,n.members.end),20),i=t.getInternalName(n),a=t.createPartiallyEmittedExpression(i);zx(a,o.end),fI(a,3072);const s=t.createReturnStatement(a);Wx(s,o.pos),fI(s,3840),r.push(s),pm(r,e.endLexicalEnvironment());const l=t.createImmediatelyInvokedArrowFunction(r);_I(l,1);const c=t.createVariableDeclaration(t.getLocalName(n,!1,!1),void 0,void 0,l);lI(c,n);const u=t.createVariableStatement(void 0,t.createVariableDeclarationList([c],1));lI(u,n),xI(u,n),yI(u,qE(n)),xL(u),p=u}else p=d;if(i){if(8&r)return[p,be(n)];if(32&r)return[p,t.createExportDefault(t.getLocalName(n,!1,!0))];if(16&r)return[p,t.createExternalModuleExport(t.getDeclarationName(n,!1,!0))]}return p}(n);case 231:return function(e){let n=oB(e.modifiers,P,Fd);Oh(u,e)&&(n=B(n,e));return t.updateClassExpression(e,n,e.name,void 0,oB(e.heritageClauses,A,$N),z(e))}(n);case 298:return function(t){if(119===t.token)return;return fB(t,A,e)}(n);case 233:return function(e){return t.updateExpressionWithTypeArguments(e,In.checkDefined(rB(e.expression,A,iu)),void 0)}(n);case 210:return function(e){return t.updateObjectLiteralExpression(e,oB(e.properties,L(e),Bd))}(n);case 176:case 172:case 174:case 177:case 178:case 175:return In.fail("Class and object literal elements must be visited with their respective visitors");case 262:return function(n){if(!X(n))return t.createNotEmittedStatement(n);const r=t.updateFunctionDeclaration(n,oB(n.modifiers,w,vd),n.asteriskToken,n.name,void 0,lB(n.parameters,A,e),void 0,dB(n.body,A,e)||t.createBlock([]));if(ge(n)){const e=[r];return function(e,t){e.push(be(t))}(e,n),e}return r}(n);case 218:return function(n){if(!X(n))return t.createOmittedExpression();const r=t.updateFunctionExpression(n,oB(n.modifiers,w,vd),n.asteriskToken,n.name,void 0,lB(n.parameters,A,e),void 0,dB(n.body,A,e)||t.createBlock([]));return r}(n);case 219:return function(n){const r=t.updateArrowFunction(n,oB(n.modifiers,w,vd),void 0,lB(n.parameters,A,e),void 0,n.equalsGreaterThanToken,dB(n.body,A,e));return r}(n);case 169:return function(e){if(vb(e))return;const n=t.updateParameterDeclaration(e,oB(e.modifiers,(e=>EC(e)?A(e):void 0),Fd),e.dotDotDotToken,In.checkDefined(rB(e.name,A,Sd)),void 0,void 0,rB(e.initializer,A,uu));n!==e&&(xI(n,e),yk(n,JE(e)),yI(n,JE(e)),fI(n.name,64));return n}(n);case 217:return function(n){const r=EL(n.expression,-7);if(pu(r)){const e=rB(n.expression,A,uu);return In.assert(e),t.createPartiallyEmittedExpression(e,n)}return fB(n,A,e)}(n);case 216:case 234:return function(e){const n=rB(e.expression,A,uu);return In.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 238:return function(e){const n=rB(e.expression,A,uu);return In.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 213:return function(e){return t.updateCallExpression(e,In.checkDefined(rB(e.expression,A,uu)),void 0,oB(e.arguments,A,uu))}(n);case 214:return function(e){return t.updateNewExpression(e,In.checkDefined(rB(e.expression,A,uu)),void 0,oB(e.arguments,A,uu))}(n);case 215:return function(e){return t.updateTaggedTemplateExpression(e,In.checkDefined(rB(e.tag,A,uu)),void 0,In.checkDefined(rB(e.template,A,ou)))}(n);case 235:return function(e){const n=rB(e.expression,A,iu);return In.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 266:return function(e){if(!function(e){return!A_(e)||Zp(l)}(e))return t.createNotEmittedStatement(e);const n=[];let o=4;const a=le(n,e);a&&(4===d&&y===_||(o|=1024));const s=Ae(e),c=Ie(e),u=ge(e)?t.getExternalModuleOrNamespaceExportName(g,e,!1,!0):t.getDeclarationName(e,!1,!0);let p=t.createLogicalOr(u,t.createAssignment(u,t.createObjectLiteralExpression()));if(ge(e)){const n=t.getLocalName(e,!1,!0);p=t.createAssignment(n,p)}const f=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,s)],void 0,function(e,n){const o=g;g=n;const a=[];r();const s=U(e.members,oe);return pm(a,i()),xe(a,s),g=o,t.createBlock(yk(t.createNodeArray(a),e.members),!0)}(e,c)),void 0,[p]));lI(f,e),a&&(II(f,void 0),DI(f,void 0));return yk(f,e),mI(f,o),n.push(f),n}(n);case 243:return function(n){if(ge(n)){const e=dS(n.declarationList);if(0===e.length)return;return yk(t.createExpressionStatement(t.inlineExpressions(U(e,re))),n)}return fB(n,A,e)}(n);case 260:return function(e){const n=t.updateVariableDeclaration(e,In.checkDefined(rB(e.name,A,Sd)),void 0,void 0,rB(e.initializer,A,uu));e.type&&jI(n.name,e.type);return n}(n);case 267:return de(n);case 271:return he(n);case 285:return function(e){return t.updateJsxSelfClosingElement(e,In.checkDefined(rB(e.tagName,A,Wu)),void 0,In.checkDefined(rB(e.attributes,A,UN)))}(n);case 286:return function(e){return t.updateJsxOpeningElement(e,In.checkDefined(rB(e.tagName,A,Wu)),void 0,In.checkDefined(rB(e.attributes,A,UN)))}(n);default:return fB(n,A,e)}}function F(n){const r=IT(l,"alwaysStrict")&&!(uP(n)&&d>=5)&&!x_(n);return t.updateSourceFile(n,sB(n.statements,R,e,0,r))}function W(e){return!!(8192&e.transformFlags)}function z(e){const n=oB(e.members,M(e),Nd);let r;const o=_b(e),i=o&&G(o.parameters,(e=>gl(e,o)));if(i)for(const a of i){const e=t.createPropertyDeclaration(void 0,a.name,void 0,void 0,void 0);lI(e,a),r=Ee(r,e)}return r?(r=xe(r,n),yk(t.createNodeArray(r),e.members)):n}function B(e,n){const r=V(n,n);if(se(r)){const n=[];xe(n,Sn(e,rk)),xe(n,G(e,EC)),xe(n,r),xe(n,G(Tn(e,rk),vd)),e=yk(t.createNodeArray(n),e)}return e}function j(e,n,r){if(Md(r)&&Fh(u,n,r)){const o=V(n,r);if(se(o)){const n=[];xe(n,G(e,EC)),xe(n,o),xe(n,G(e,vd)),e=yk(t.createNodeArray(n),e)}}return e}function V(e,r){if(u)return JG?function(e,r){if(p){let o;if(H(e)){o=Ee(o,t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),p.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))}if(q(e)){o=Ee(o,t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),p.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))}if(K(e)){o=Ee(o,t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),p.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))}if(o){const e=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(o,!0));return[t.createDecorator(e)]}}}(e,r):function(e,r){if(p){let o;if(H(e)){const i=n().createMetadataHelper("design:type",p.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));o=Ee(o,t.createDecorator(i))}if(q(e)){const i=n().createMetadataHelper("design:paramtypes",p.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r));o=Ee(o,t.createDecorator(i))}if(K(e)){const i=n().createMetadataHelper("design:returntype",p.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));o=Ee(o,t.createDecorator(i))}return o}}(e,r)}function H(e){const t=e.kind;return 174===t||177===t||178===t||172===t}function K(e){return 174===e.kind}function q(e){switch(e.kind){case 263:case 231:return void 0!==_b(e);case 174:case 177:case 178:return!0}return!1}function J(e){const n=e.name;if(yC(n)&&(!Vb(e)&&b||Xb(e)&&u)){const e=rB(n.expression,A,uu);In.assert(e);if(!XB(Gc(e))){const r=t.getGeneratedNameForNode(n);return a(r),t.updateComputedPropertyName(n,t.createAssignment(r,e))}}return In.checkDefined(rB(n,A,Ed))}function X(e){return!im(e.body)}function $(e,n,r,o,i,a){const s=o[i],l=n[s];if(xe(e,oB(n,A,wu,r,s-r)),rN(l)){const n=[];$(n,l.tryBlock.statements,0,o,i+1,a);yk(t.createNodeArray(n),l.tryBlock.statements),e.push(t.updateTryStatement(l,t.updateBlock(l.tryBlock,n),rB(l.catchClause,A,YN),rB(l.finallyBlock,A,BD)))}else xe(e,oB(n,A,wu,s,1)),xe(e,a);xe(e,oB(n,A,wu,s+1))}function Y(e){const n=e.name;if(!nC(n))return;const r=Vx(yk(t.cloneNode(n),n),n.parent);fI(r,3168);const o=Vx(yk(t.cloneNode(n),n),n.parent);return fI(o,3072),xL(pI(yk(lI(t.createExpressionStatement(t.createAssignment(yk(t.createPropertyAccessExpression(t.createThis(),r),e.name),o)),e),KE(e,-1))))}function Q(n,r){if(!(1&n.transformFlags))return n;if(!X(n))return;let o=Md(r)?oB(n.modifiers,A,Fd):oB(n.modifiers,k,Fd);return o=j(o,n,r),t.updateMethodDeclaration(n,o,n.asteriskToken,J(n),void 0,void 0,lB(n.parameters,A,e),void 0,dB(n.body,A,e))}function ee(e){return!(im(e.body)&&Gb(e,64))}function te(n,r){if(!(1&n.transformFlags))return n;if(!ee(n))return;let o=Md(r)?oB(n.modifiers,A,Fd):oB(n.modifiers,k,Fd);return o=j(o,n,r),t.updateGetAccessorDeclaration(n,o,J(n),lB(n.parameters,A,e),void 0,dB(n.body,A,e)||t.createBlock([]))}function ne(n,r){if(!(1&n.transformFlags))return n;if(!ee(n))return;let o=Md(r)?oB(n.modifiers,A,Fd):oB(n.modifiers,k,Fd);return o=j(o,n,r),t.updateSetAccessorDeclaration(n,o,J(n),lB(n.parameters,A,e),dB(n.body,A,e)||t.createBlock([]))}function re(n){const r=n.name;return Vd(r)?vG(n,A,e,0,!1,Se):yk(t.createAssignment(Te(r),In.checkDefined(rB(n.initializer,A,uu))),n)}function oe(n){const r=function(e,n){const r=e.name;return rC(r)?t.createIdentifier(""):yC(r)?n&&!XB(r.expression)?t.getGeneratedNameForNode(r):r.expression:nC(r)?t.createStringLiteral(kl(r)):t.cloneNode(r)}(n,!1),o=function(n){const r=s.getConstantValue(n);return void 0!==r?"string"===typeof r?t.createStringLiteral(r):r<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-r)):t.createNumericLiteral(r):(0===(8&E)&&(E|=8,e.enableSubstitution(80)),n.initializer?In.checkDefined(rB(n.initializer,A,uu)):t.createVoidZero())}(n),i=t.createAssignment(t.createElementAccessExpression(g,r),o),a=11===o.kind?i:t.createAssignment(t.createElementAccessExpression(g,i),r);return yk(t.createExpressionStatement(yk(a,n)),n)}function ie(e){v||(v=new Map);const t=ae(e);v.has(t)||v.set(t,e)}function ae(e){return In.assertNode(e.name,nC),e.name.escapedText}function le(e,n){const r=t.createVariableDeclaration(t.getLocalName(n,!1,!0)),o=312===y.kind?0:1,i=t.createVariableStatement(oB(n.modifiers,w,vd),t.createVariableDeclarationList([r],o));return lI(r,n),II(r,void 0),DI(r,void 0),lI(i,n),ie(n),!!function(e){if(v){const t=ae(e);return v.get(t)===e}return!0}(n)&&(266===n.kind?yI(i.declarationList,n):yI(i,n),xI(i,n),mI(i,2048),e.push(i),!0)}function de(n){if(!function(e){const t=Nl(e,pN);return!t||qz(t,Zp(l))}(n))return t.createNotEmittedStatement(n);In.assertNode(n.name,nC,"A TypeScript namespace should have an Identifier name."),0===(2&E)&&(E|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267));const o=[];let a=4;const s=le(o,n);s&&(4===d&&y===_||(a|=1024));const c=Ae(n),u=Ie(n),p=ge(n)?t.getExternalModuleOrNamespaceExportName(g,n,!1,!0):t.getDeclarationName(n,!1,!0);let f=t.createLogicalOr(p,t.createAssignment(p,t.createObjectLiteralExpression()));if(ge(n)){const e=t.getLocalName(n,!1,!0);f=t.createAssignment(e,f)}const m=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,c)],void 0,function(e,n){const o=g,a=h,s=v;g=n,h=e,v=void 0;const l=[];let c,d;if(r(),e.body)if(268===e.body.kind)x(e.body,(e=>xe(l,oB(e.statements,D,wu)))),c=e.body.statements,d=e.body;else{const t=de(e.body);t&&(mt(t)?xe(l,t):l.push(t));c=KE(ue(e).body.statements,-1)}pm(l,i()),g=o,h=a,v=s;const u=t.createBlock(yk(t.createNodeArray(l),c),!0);yk(u,d),e.body&&268===e.body.kind||fI(u,3072|Rm(u));return u}(n,u)),void 0,[f]));return lI(m,n),s&&(II(m,void 0),DI(m,void 0)),yk(m,n),mI(m,a),o.push(m),o}function ue(e){if(267===e.body.kind){return ue(e.body)||e.body}}function pe(e){In.assert(!e.isTypeOnly);const n=De(e)?e.name:void 0,r=rB(e.namedBindings,fe,Iu);return n||r?t.updateImportClause(e,!1,n,r):void 0}function fe(e){if(274===e.kind)return De(e)?e:void 0;{const n=l.verbatimModuleSyntax||l.preserveValueImports&&(1===l.importsNotUsedAsValues||2===l.importsNotUsedAsValues),r=oB(e.elements,me,RN);return n||se(r)?t.updateNamedImports(e,r):void 0}}function me(e){return!e.isTypeOnly&&De(e)?e:void 0}function _e(e){return e.isTypeOnly||!l.verbatimModuleSyntax&&!s.isValueAliasDeclaration(e)?void 0:e}function he(n){if(n.isTypeOnly)return;if(Uh(n)){const r=De(n);return r||1!==l.importsNotUsedAsValues?r?fB(n,A,e):void 0:lI(yk(t.createImportDeclaration(void 0,void 0,n.moduleReference.expression,void 0),n),n)}if(!function(e){return De(e)||!uP(_)&&s.isTopLevelValueImportEqualsWithEntityName(e)}(n))return;const r=aL(t,n.moduleReference);return fI(r,7168),ve(n)||!ge(n)?lI(yk(t.createVariableStatement(oB(n.modifiers,w,vd),t.createVariableDeclarationList([lI(t.createVariableDeclaration(n.name,void 0,void 0,r),n)])),n),n):lI((o=n.name,i=r,a=n,yk(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(g,o,!1,!0),i)),a)),n);var o,i,a}function ge(e){return void 0!==h&&Gb(e,32)}function ye(e){return void 0===h&&Gb(e,32)}function ve(e){return ye(e)&&!Gb(e,2048)}function be(e){const n=t.createAssignment(t.getExternalModuleOrNamespaceExportName(g,e,!1,!0),t.getLocalName(e));yI(n,UE(e.name?e.name.pos:e.pos,e.end));const r=t.createExpressionStatement(n);return yI(r,UE(-1,e.end)),r}function Se(e,n,r){return yk(t.createAssignment(Te(e),n),r)}function Te(e){return t.getNamespaceMemberName(g,e,!1,!0)}function Ae(e){const n=t.getGeneratedNameForNode(e);return yI(n,e.name),n}function Ie(e){return t.getGeneratedNameForNode(e)}function Re(e){if(E&S&&!ud(e)&&!uL(e)){const n=s.getReferencedExportContainer(e,!1);if(n&&312!==n.kind){if(2&S&&267===n.kind||8&S&&266===n.kind)return yk(t.createPropertyAccessExpression(t.getGeneratedNameForNode(n),e),e)}}}function Ce(e){const n=function(e){if(Kp(l))return;return lD(e)||cD(e)?s.getConstantValue(e):void 0}(e);if(void 0!==n){kI(e,n);const o="string"===typeof n?t.createStringLiteral(n):n<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-n)):t.createNumericLiteral(n);if(!l.removeComments){const t=Rl(e,wS);NI(o,3,` ${r=xm(t),r.replace(/\*\//g,"*_/")} `)}return o}var r;return e}function De(e){return l.verbatimModuleSyntax||$h(e)||(l.preserveValueImports?s.isValueAliasDeclaration(e):s.isReferencedAliasDeclaration(e))}}var YG=b({"src/compiler/transformers/ts.ts"(){JJ(),JG=!1}});function QG(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,endLexicalEnvironment:o,startLexicalEnvironment:i,resumeLexicalEnvironment:a,addBlockScopedVariable:s}=e,l=e.getEmitResolver(),c=e.getCompilerOptions(),d=jp(c),u=rf(c),p=!!c.experimentalDecorators,f=!u,m=u&&d<9,_=f||m,h=d<9,g=d<99?-1:u?0:3,y=d<9,v=y&&d>=2,b=_||h||-1===g,E=e.onSubstituteNode;e.onSubstituteNode=function(e,n){if(n=E(e,n),1===e)return function(e){switch(e.kind){case 80:return function(e){return function(e){if(1&T&&536870912&l.getNodeCheckFlags(e)){const n=l.getReferencedValueDeclaration(e);if(n){const r=x[n.id];if(r){const n=t.cloneNode(r);return yI(n,e),xI(n,e),n}}}return}(e)||e}(e);case 110:return function(e){if(2&T&&(null==R?void 0:R.data)&&!N.has(e)){const{facts:n,classConstructor:r,classThis:o}=R.data,i=P?o??r:r;if(i)return yk(lI(t.cloneNode(i),e),e);if(1&n&&p)return t.createParenthesizedExpression(t.createVoidZero())}return e}(e)}return e}(n);return n};const S=e.onEmitNode;e.onEmitNode=function(e,t,n){const r=Rl(t),o=D.get(r);if(o){const i=R,a=w;return R=o,w=P,P=!IC(r)||!(32&Cm(r)),S(e,t,n),P=w,w=a,void(R=i)}switch(t.kind){case 218:if(hD(r)||524288&Rm(t))break;case 262:case 176:case 177:case 178:case 174:case 172:{const r=R,o=w;return R=void 0,w=P,P=!1,S(e,t,n),P=w,w=o,void(R=r)}case 167:{const r=R,o=P;return R=null==R?void 0:R.previous,P=w,S(e,t,n),P=o,void(R=r)}}S(e,t,n)};let T,x,A,I,R,C=!1;const D=new Map,N=new Set;let M,k,P=!1,w=!1;return GB(e,(function(t){if(t.isDeclarationFile)return t;if(R=void 0,C=!!(32&Cm(t)),!b&&!C)return t;const n=fB(t,F,e);return wI(n,e.readEmitHelpers()),n}));function O(e){return 129===e.kind?te()?void 0:e:yt(e,vd)}function F(n){if(!(16777216&n.transformFlags)&&!(134234112&n.transformFlags))return n;switch(n.kind){case 129:return In.fail("Use `modifierVisitor` instead.");case 263:return function(e){return _e(e,he)}(n);case 231:return function(e){return _e(e,ge)}(n);case 175:case 172:return In.fail("Use `classElementVisitor` instead.");case 303:case 260:case 169:case 208:return function(t){gv(t,de)&&(t=jG(e,t));return fB(t,F,e)}(n);case 243:return function(t){const n=I;I=[];const r=fB(t,F,e),o=se(I)?[r,...I]:r;return I=n,o}(n);case 277:return function(t){gv(t,de)&&(t=jG(e,t,!0,t.isExportEquals?"":"default"));return fB(t,F,e)}(n);case 81:return function(e){if(!h)return e;if(wu(e.parent))return e;return lI(t.createIdentifier(""),e)}(n);case 211:return function(n){if(rC(n.name)){const e=We(n.name);if(e)return yk(lI(oe(e,n.expression),n),n)}if(v&&k&&Ih(n)&&nC(n.name)&&ZG(k)&&(null==R?void 0:R.data)){const{classConstructor:e,superClassReference:r,facts:o}=R.data;if(1&o)return De(n);if(e&&r){const o=t.createReflectGetCall(r,t.createStringLiteralFromNode(n.name),e);return lI(o,n.expression),yk(o,n.expression),o}}return fB(n,F,e)}(n);case 212:return function(n){if(v&&k&&Ih(n)&&ZG(k)&&(null==R?void 0:R.data)){const{classConstructor:e,superClassReference:r,facts:o}=R.data;if(1&o)return De(n);if(e&&r){const o=t.createReflectGetCall(r,rB(n.argumentExpression,F,uu),e);return lI(o,n.expression),yk(o,n.expression),o}}return fB(n,F,e)}(n);case 224:case 225:return ae(n,!1);case 226:return ue(n,!1);case 217:return pe(n,!1);case 213:return function(n){var o;if(_d(n.expression)&&We(n.expression.name)){const{thisArg:e,target:o}=t.createCallBinding(n.expression,r,d);return Pc(n)?t.updateCallChain(n,t.createPropertyAccessChain(rB(o,F,uu),n.questionDotToken,"call"),void 0,void 0,[rB(e,F,uu),...oB(n.arguments,F,uu)]):t.updateCallExpression(n,t.createPropertyAccessExpression(rB(o,F,uu),"call"),void 0,[rB(e,F,uu),...oB(n.arguments,F,uu)])}if(v&&k&&Ih(n.expression)&&ZG(k)&&(null==(o=null==R?void 0:R.data)?void 0:o.classConstructor)){const e=t.createFunctionCallCall(rB(n.expression,F,uu),R.data.classConstructor,oB(n.arguments,F,uu));return lI(e,n),yk(e,n),e}return fB(n,F,e)}(n);case 244:return function(e){return t.updateExpressionStatement(e,rB(e.expression,z,uu))}(n);case 215:return function(n){var o;if(_d(n.tag)&&We(n.tag.name)){const{thisArg:e,target:o}=t.createCallBinding(n.tag,r,d);return t.updateTaggedTemplateExpression(n,t.createCallExpression(t.createPropertyAccessExpression(rB(o,F,uu),"bind"),void 0,[rB(e,F,uu)]),void 0,rB(n.template,F,ou))}if(v&&k&&Ih(n.tag)&&ZG(k)&&(null==(o=null==R?void 0:R.data)?void 0:o.classConstructor)){const e=t.createFunctionBindCall(rB(n.tag,F,uu),R.data.classConstructor,[]);return lI(e,n),yk(e,n),t.updateTaggedTemplateExpression(n,e,void 0,rB(n.template,F,ou))}return fB(n,F,e)}(n);case 248:return function(n){return t.updateForStatement(n,rB(n.initializer,z,Su),rB(n.condition,F,uu),rB(n.incrementor,z,uu),uB(n.statement,F,e))}(n);case 110:return function(e){if(y&&k&&IC(k)&&(null==R?void 0:R.data)){const{classThis:t,classConstructor:n}=R.data;return t??n??e}return e}(n);case 262:case 218:return Y(void 0,W,n);case 176:case 174:case 177:case 178:return Y(n,W,n);default:return W(n)}}function W(t){return fB(t,F,e)}function z(e){switch(e.kind){case 224:case 225:return ae(e,!0);case 226:return ue(e,!0);case 361:return function(e,n){const r=n?pB(e.elements,z):pB(e.elements,F,z);return t.updateCommaListExpression(e,r)}(e,!0);case 217:return pe(e,!0);default:return F(e)}}function B(n){switch(n.kind){case 298:return fB(n,B,e);case 233:return function(n){var o;if(4&((null==(o=null==R?void 0:R.data)?void 0:o.facts)||0)){const e=t.createTempVariable(r,!0);return Ne().superClassReference=e,t.updateExpressionWithTypeArguments(n,t.createAssignment(e,rB(n.expression,F,uu)),void 0)}return fB(n,F,e)}(n);default:return F(n)}}function j(e){switch(e.kind){case 210:case 209:return Ve(e);default:return F(e)}}function V(e){switch(e.kind){case 176:return Y(e,J,e);case 177:case 178:case 174:return Y(e,$,e);case 172:return Y(e,ne,e);case 175:return Y(e,ye,e);case 167:return q(e);case 240:return e;default:return Fd(e)?O(e):F(e)}}function H(e){return 167===e.kind?q(e):F(e)}function K(e){switch(e.kind){case 172:return ee(e);case 177:case 178:return V(e);default:In.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function q(e){const n=rB(e.expression,F,uu);return t.updateComputedPropertyName(e,function(e){return se(A)&&(mD(e)?(A.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(A))):(A.push(e),e=t.inlineExpressions(A)),A=void 0),e}(n))}function J(e){return M?Se(e,M):W(e)}function X(e){return!!h||!!(Vb(e)&&32&Cm(e))}function $(n){if(In.assert(!Xb(n)),!md(n)||!X(n))return fB(n,V,e);const r=We(n.name);if(In.assert(r,"Undeclared private name for property declaration."),!r.isValid)return n;const o=function(e){In.assert(rC(e.name));const t=We(e.name);if(In.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind){if(Ju(e))return t.getterName;if(qu(e))return t.setterName}}(n);o&&Le().push(t.createAssignment(o,t.createFunctionExpression(G(n.modifiers,(e=>vd(e)&&!dC(e)&&!fC(e))),n.asteriskToken,o,void 0,lB(n.parameters,F,e),void 0,dB(n.body,F,e))))}function Y(e,t,n){if(e!==k){const r=k;k=e;const o=t(n);return k=r,o}return t(n)}function Q(e){const n=TI(e),o=gI(e),i=e.name;let a=i,s=i;if(yC(i)&&!XB(i.expression)){const e=fk(i);if(e)a=t.updateComputedPropertyName(i,rB(i.expression,F,uu)),s=t.updateComputedPropertyName(i,e.left);else{const e=t.createTempVariable(r);yI(e,i.expression);const n=rB(i.expression,F,uu),o=t.createAssignment(e,n);yI(o,i.expression),a=t.updateComputedPropertyName(i,o),s=t.updateComputedPropertyName(i,e)}}const l=oB(e.modifiers,O,vd),c=dk(t,e,l,e.initializer);lI(c,e),fI(c,3072),yI(c,o);const d=jb(e)?function(){const e=Ne(),t=e.classThis??e.classConstructor??(null==M?void 0:M.name);return In.checkDefined(t)}():t.createThis(),u=uk(t,e,l,a,d);lI(u,e),xI(u,n),yI(u,o);const p=t.createModifiersFromModifierFlags(aE(l)),f=pk(t,e,p,s,d);return lI(f,e),fI(f,3072),yI(f,o),iB([c,u,f],K,Nd)}function Z(e){if(!_||kd(e))return t.updatePropertyDeclaration(e,oB(e.modifiers,O,vd),rB(e.name,H,Ed),void 0,void 0,rB(e.initializer,F,uu));{const n=function(e,n){if(yC(e)){const o=fk(e),i=rB(e.expression,F,uu),a=Gc(i),c=XB(a);if(!(!!o||gE(a)&&ud(a.left))&&!c&&n){const n=t.getGeneratedNameForNode(e);return 32768&l.getNodeCheckFlags(e)?s(n):r(n),t.createAssignment(n,i)}return c||nC(a)?void 0:i}}(e.name,!!e.initializer||u);if(n&&Le().push(..._k(n)),jb(e)&&!h){const n=Ie(e,t.createThis());if(n){const r=t.createClassStaticBlockDeclaration(t.createBlock([n]));return lI(r,e),xI(r,e),xI(n,{pos:-1,end:-1}),II(n,void 0),DI(n,void 0),r}}}}function ee(n){return In.assert(!Xb(n),"Decorators should already have been transformed and elided."),md(n)?function(n){if(!X(n))return f&&!jb(n)&&(null==R?void 0:R.data)&&16&R.data.facts?t.updatePropertyDeclaration(n,oB(n.modifiers,F,Fd),n.name,void 0,void 0,void 0):(gv(n,de)&&(n=jG(e,n)),t.updatePropertyDeclaration(n,oB(n.modifiers,O,vd),rB(n.name,H,Ed),void 0,void 0,rB(n.initializer,F,uu)));{const e=We(n.name);if(In.assert(e,"Undeclared private name for property declaration."),!e.isValid)return n;if(e.isStatic&&!h){const e=Ie(n,t.createThis());if(e)return t.createClassStaticBlockDeclaration(t.createBlock([e],!0))}}}(n):Z(n)}function te(){return-1===g||3===g&&!!(null==R?void 0:R.data)&&!!(16&R.data.facts)}function ne(e){return kd(e)&&(te()||Vb(e)&&32&Cm(e))?Q(e):ee(e)}function re(e){if(k&&Vb(k)&&Ld(k)&&kd(Rl(k))){const t=EL(e);110===t.kind&&N.add(t)}}function oe(e,t){return re(t=rB(t,F,uu)),ie(e,t)}function ie(e,t){switch(xI(t,KE(t,-1)),e.kind){case"a":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.getterName);case"m":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.methodName);case"f":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return In.fail("Access helpers should not be created for untransformed private elements");default:In.assertNever(e,"Unknown private element type")}}function ae(n,o){if(46===n.operator||47===n.operator){const e=Ty(n.operand);if(_d(e)){let i;if(i=We(e.name)){const a=rB(e.expression,F,uu);re(a);const{readExpression:s,initializeExpression:l}=le(a);let c=oe(i,s);const d=ED(n)||o?void 0:t.createTempVariable(r);return c=cL(t,n,c,r,d),c=fe(i,l||s,c,64),lI(c,n),yk(c,n),d&&(c=t.createComma(c,d),yk(c,n)),c}}else if(v&&k&&Ih(e)&&ZG(k)&&(null==R?void 0:R.data)){const{classConstructor:i,superClassReference:a,facts:s}=R.data;if(1&s){const r=De(e);return ED(n)?t.updatePrefixUnaryExpression(n,r):t.updatePostfixUnaryExpression(n,r)}if(i&&a){let s,l;if(lD(e)?nC(e.name)&&(l=s=t.createStringLiteralFromNode(e.name)):XB(e.argumentExpression)?l=s=e.argumentExpression:(l=t.createTempVariable(r),s=t.createAssignment(l,rB(e.argumentExpression,F,uu))),s&&l){let c=t.createReflectGetCall(a,l,i);yk(c,e);const d=o?void 0:t.createTempVariable(r);return c=cL(t,n,c,r,d),c=t.createReflectSetCall(a,s,c,i),lI(c,n),yk(c,n),d&&(c=t.createComma(c,d),yk(c,n)),c}}}}return fB(n,F,e)}function le(e){const n=Sv(e)?e:t.cloneNode(e);if(110===e.kind&&N.has(e)&&N.add(n),XB(e))return{readExpression:n,initializeExpression:void 0};const o=t.createTempVariable(r);return{readExpression:o,initializeExpression:t.createAssignment(o,n)}}function ce(e){if(R&&D.set(Rl(e),R),h){if(NG(e)){const t=rB(e.body.statements[0].expression,F,uu);if(gE(t,!0)&&t.left===t.right)return;return t}if(FG(e))return rB(e.body.statements[0].expression,F,uu);i();let n=Y(e,(e=>oB(e,F,wu)),e.body.statements);n=t.mergeLexicalEnvironment(n,o());const r=t.createImmediatelyInvokedArrowFunction(n);return lI(Ty(r.expression),e),mI(Ty(r.expression),4),lI(r,e),yk(r,e),r}}function de(e){if(CD(e)&&!e.name){const t=rG(e);if(se(t,FG))return!1;return(h||!!Cm(e))&&se(t,(e=>IC(e)||md(e)||_&&oG(e)))}return!1}function ue(o,i){if(vE(o)){const e=A;A=void 0,o=t.updateBinaryExpression(o,rB(o.left,j,uu),o.operatorToken,rB(o.right,F,uu));const n=se(A)?t.inlineExpressions(ve([...A,o])):o;return A=e,n}if(gE(o)){gv(o,de)&&(o=jG(e,o),In.assertNode(o,gE));const n=EL(o.left,9);if(_d(n)){const e=We(n.name);if(e)return yk(lI(fe(e,n.expression,o.right,o.operatorToken.kind),o),o)}else if(v&&k&&Ih(o.left)&&ZG(k)&&(null==R?void 0:R.data)){const{classConstructor:e,superClassReference:n,facts:a}=R.data;if(1&a)return t.updateBinaryExpression(o,De(o.left),o.operatorToken,rB(o.right,F,uu));if(e&&n){let a=cD(o.left)?rB(o.left.argumentExpression,F,uu):nC(o.left.name)?t.createStringLiteralFromNode(o.left.name):void 0;if(a){let s=rB(o.right,F,uu);if($B(o.operatorToken.kind)){let i=a;XB(a)||(i=t.createTempVariable(r),a=t.createAssignment(i,a));const l=t.createReflectGetCall(n,i,e);lI(l,o.left),yk(l,o.left),s=t.createBinaryExpression(l,YB(o.operatorToken.kind),s),yk(s,o)}const l=i?void 0:t.createTempVariable(r);return l&&(s=t.createAssignment(l,s),yk(l,o)),s=t.createReflectSetCall(n,a,s,e),lI(s,o),yk(s,o),l&&(s=t.createComma(s,l),yk(s,o)),s}}}}return function(e){return rC(e.left)&&103===e.operatorToken.kind}(o)?function(t){const r=We(t.left);if(r){const e=rB(t.right,F,uu);return lI(n().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),t)}return fB(t,F,e)}(o):fB(o,F,e)}function pe(e,n){const r=n?z:F,o=rB(e.expression,r,uu);return t.updateParenthesizedExpression(e,o)}function fe(e,r,o,i){if(r=rB(r,F,uu),o=rB(o,F,uu),re(r),$B(i)){const{readExpression:n,initializeExpression:a}=le(r);r=a||n,o=t.createBinaryExpression(ie(e,n),YB(i),o)}switch(xI(r,KE(r,-1)),e.kind){case"a":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,o,e.kind,e.setterName);case"m":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,o,e.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,o,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return In.fail("Access helpers should not be created for untransformed private elements");default:In.assertNever(e,"Unknown private element type")}}function me(e){return G(e.members,iG)}function _e(n,r){var o;const i=M,a=A,s=R;M=n,A=void 0,R={previous:R,data:void 0};const c=32&Cm(n);if(h||c){const e=jl(n);if(e&&nC(e))Me().data.className=e;else if((null==(o=n.emitNode)?void 0:o.assignedName)&&zR(n.emitNode.assignedName))if(n.emitNode.assignedName.textSourceNode&&nC(n.emitNode.assignedName.textSourceNode))Me().data.className=n.emitNode.assignedName.textSourceNode;else if(zs(n.emitNode.assignedName.text,d)){const e=t.createIdentifier(n.emitNode.assignedName.text);Me().data.className=e}}if(h){const e=me(n);se(e)&&(Me().data.weakSetName=Oe("instances",e[0].name))}const u=function(e){var t;let n=0;const r=Rl(e);lN(r)&&Oh(p,r)&&(n|=1),h&&(MG(e)||WG(e))&&(n|=2);let o=!1,i=!1,a=!1,s=!1;for(const c of e.members)jb(c)?(c.name&&(rC(c.name)||kd(c))&&h?n|=2:!kd(c)||-1!==g||e.name||(null==(t=e.emitNode)?void 0:t.classThis)||(n|=2),(TC(c)||IC(c))&&(y&&16384&c.transformFlags&&(n|=8,1&n||(n|=2)),v&&134217728&c.transformFlags&&(1&n||(n|=6)))):Hb(Rl(c))||(kd(c)?(s=!0,a||(a=md(c))):md(c)?(a=!0,262144&l.getNodeCheckFlags(c)&&(n|=2)):TC(c)&&(o=!0,i||(i=!!c.initializer)));return(m&&o||f&&i||h&&a||h&&s&&-1===g)&&(n|=16),n}(n);u&&(Ne().facts=u),8&u&&0===(2&T)&&(T|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167));const _=r(n,u);return R=null==R?void 0:R.previous,In.assert(R===s),M=i,A=a,_}function he(e,n){var o,i;let a;if(2&n)if(h&&(null==(o=e.emitNode)?void 0:o.classThis))Ne().classConstructor=e.emitNode.classThis,a=t.createAssignment(e.emitNode.classThis,t.getInternalName(e));else{const n=t.createTempVariable(r,!0);Ne().classConstructor=t.cloneNode(n),a=t.createAssignment(n,t.getInternalName(e))}(null==(i=e.emitNode)?void 0:i.classThis)&&(Ne().classThis=e.emitNode.classThis);const s=262144&l.getNodeCheckFlags(e),c=Gb(e,32),d=Gb(e,2048);let u=oB(e.modifiers,O,vd);const p=oB(e.heritageClauses,B,$N),{members:m,prologue:_}=be(e),g=[];if(a&&Le().unshift(a),se(A)&&g.push(t.createExpressionStatement(t.inlineExpressions(A))),f||h||32&Cm(e)){const n=rG(e);se(n)&&Ae(g,n,t.getInternalName(e))}g.length>0&&c&&d&&(u=oB(u,(e=>rk(e)?void 0:e),vd),g.push(t.createExportAssignment(void 0,!1,t.getLocalName(e,!1,!0))));const y=Ne().classConstructor;s&&y&&(Ce(),x[zB(e)]=y);const v=t.updateClassDeclaration(e,u,e.name,void 0,p,m);return g.unshift(v),_&&g.unshift(t.createExpressionStatement(_)),g}function ge(e,n){var o,i,a;const c=!!(1&n),d=rG(e),u=l.getNodeCheckFlags(e),p=262144&u;let f;function m(){var n;if(h&&(null==(n=e.emitNode)?void 0:n.classThis))return Ne().classConstructor=e.emitNode.classThis;const o=32768&u,i=t.createTempVariable(o?s:r,!0);return Ne().classConstructor=t.cloneNode(i),i}(null==(o=e.emitNode)?void 0:o.classThis)&&(Ne().classThis=e.emitNode.classThis),2&n&&(f??(f=m()));const g=oB(e.modifiers,O,vd),y=oB(e.heritageClauses,B,$N),{members:v,prologue:b}=be(e),E=t.updateClassExpression(e,g,e.name,void 0,y,v),S=[];b&&S.push(b);if((h||32&Cm(e))&&se(d,(e=>IC(e)||md(e)||_&&oG(e)))||se(A))if(c)In.assertIsDefined(I,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),se(A)&&xe(I,U(A,t.createExpressionStatement)),se(d)&&Ae(I,d,(null==(i=e.emitNode)?void 0:i.classThis)??t.getInternalName(e)),f?S.push(t.createAssignment(f,E)):h&&(null==(a=e.emitNode)?void 0:a.classThis)?S.push(t.createAssignment(e.emitNode.classThis,E)):S.push(E);else{if(f??(f=m()),p){Ce();const n=t.cloneNode(f);n.emitNode.autoGenerate.flags&=-9,x[zB(e)]=n}S.push(t.createAssignment(f,E)),xe(S,A),xe(S,function(e,t){const n=[];for(const r of e){const e=IC(r)?Y(r,ce,r):Y(r,(()=>Re(r,t)),void 0);e&&(xL(e),lI(e,r),mI(e,3072&Rm(r)),yI(e,JE(r)),xI(e,r),n.push(e))}return n}(d,f)),S.push(t.cloneNode(f))}else S.push(E);return S.length>1&&(mI(E,131072),S.forEach(xL)),t.inlineExpressions(S)}function ye(t){if(!h)return fB(t,F,e)}function be(e){const n=!!(32&Cm(e));if(h||C){for(const t of e.members)if(md(t))if(X(t))we(t,t.name,ke);else{fG(Me(),t.name,{kind:"untransformed"})}if(h&&se(me(e))&&function(){const{weakSetName:e}=Me().data;In.assert(e,"weakSetName should be set in private identifier environment"),Le().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}(),te())for(const r of e.members)if(kd(r)){const e=t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage");if(h||n&&Vb(r))we(r,e,Pe);else{fG(Me(),e,{kind:"untransformed"})}}}let o,i,a,s=oB(e.members,V,Nd);if(se(s,RC)||(o=Se(void 0,e)),!h&&se(A)){let e=t.createExpressionStatement(t.inlineExpressions(A));if(134234112&e.transformFlags){const n=t.createTempVariable(r),o=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([e]));i=t.createAssignment(n,o),e=t.createExpressionStatement(t.createCallExpression(n,void 0,[]))}const n=t.createBlock([e]);a=t.createClassStaticBlockDeclaration(n),A=void 0}if(o||a){let n;const r=L(s,NG),i=L(s,FG);n=Ee(n,r),n=Ee(n,i),n=Ee(n,o),n=Ee(n,a);n=xe(n,r||i?G(s,(e=>e!==r&&e!==i)):s),s=yk(t.createNodeArray(n),e.members)}return{members:s,prologue:i}}function Se(n,r){if(n=rB(n,F,RC),!(null==R?void 0:R.data)||!(16&R.data.facts))return n;const i=Oy(r),s=!(!i||106===EL(i.expression).kind),l=lB(n?n.parameters:void 0,F,e),c=function(n,r,i){const s=tG(n,!1,!1);let l=s;u||(l=G(l,(e=>!!e.initializer||rC(e.name)||qb(e))));const c=me(n),d=se(l)||se(c);if(!r&&!d)return dB(void 0,F,e);a();const p=!r&&i;let f=0,m=[];const _=[],g=t.createThis();if(function(e,n,r){if(!h||!se(n))return;const{weakSetName:o}=Me().data;In.assert(o,"weakSetName should be set in private identifier environment"),e.push(t.createExpressionStatement(function(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}(t,r,o)))}(_,c,g),r){const e=G(s,(e=>gl(Rl(e),r))),t=G(l,(e=>!gl(Rl(e),r)));Ae(_,e,g),Ae(_,t,g)}else Ae(_,l,g);if(null==r?void 0:r.body){f=t.copyPrologue(r.body.statements,m,!1,F);const e=eG(r.body.statements,f);if(e.length)Te(m,r.body.statements,f,e,0,_,r);else{for(;f<r.body.statements.length;){if(!gl(Rl(r.body.statements[f]),r))break;f++}xe(m,_),xe(m,oB(r.body.statements,F,wu,f))}}else p&&m.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),xe(m,_);if(m=t.mergeLexicalEnvironment(m,o()),0===m.length&&!r)return;const y=(null==r?void 0:r.body)&&r.body.statements.length>=m.length?r.body.multiLine??m.length>0:m.length>0;return yk(t.createBlock(yk(t.createNodeArray(m),r?r.body.statements:n.members),y),r?r.body:void 0)}(r,n,s);return c?n?(In.assert(l),t.updateConstructorDeclaration(n,void 0,l,c)):xL(lI(yk(t.createConstructorDeclaration(void 0,l??[],c),n||r),n)):n}function Te(e,n,r,o,i,a,s){const l=o[i],c=n[l];if(xe(e,oB(n,F,wu,r,l-r)),r=l+1,rN(c)){const n=[];Te(n,c.tryBlock.statements,0,o,i+1,a,s);yk(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),rB(c.catchClause,F,YN),rB(c.finallyBlock,F,BD)))}else{for(xe(e,oB(n,F,wu,l,1));r<n.length;){if(!gl(Rl(n[r]),s))break;r++}xe(e,a)}xe(e,oB(n,F,wu,r))}function Ae(e,t,n){for(const r of t){if(jb(r)&&!h)continue;const t=Ie(r,n);t&&e.push(t)}}function Ie(e,n){const r=IC(e)?Y(e,ce,e):Re(e,n);if(!r)return;const o=t.createExpressionStatement(r);lI(o,e),mI(o,3072&Rm(e)),xI(o,e);const i=Rl(e);return bC(i)?(yI(o,i),pI(o)):yI(o,JE(e)),II(r,void 0),DI(r,void 0),qb(i)&&mI(o,3072),o}function Re(n,r){var o;const i=k,a=function(n,r){const o=!u;gv(n,de)&&(n=jG(e,n));const i=qb(n)?t.getGeneratedPrivateNameForNode(n.name):yC(n.name)&&!XB(n.name.expression)?t.updateComputedPropertyName(n.name,t.getGeneratedNameForNode(n.name)):n.name;Vb(n)&&(k=n);if(rC(i)&&X(n)){const e=We(i);if(e)return"f"===e.kind?e.isStatic?function(e,t,n){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",n||e.createVoidZero())]))}(t,e.variableName,rB(n.initializer,F,uu)):function(e,t,n,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"set"),void 0,[t,n||e.createVoidZero()])}(t,r,rB(n.initializer,F,uu),e.brandCheckIdentifier):void 0;In.fail("Undeclared private name for property declaration.")}if((rC(i)||Vb(n))&&!n.initializer)return;const a=Rl(n);if(Gb(a,64))return;let s=rB(n.initializer,F,uu);if(gl(a,a.parent)&&nC(i)){const e=t.cloneNode(i);s?(mD(s)&&hL(s.expression)&&wR(s.expression.left,"___runInitializers")&&vD(s.expression.right)&&FR(s.expression.right.expression)&&(s=s.expression.left),s=t.inlineExpressions([s,e])):s=e,fI(i,3168),yI(e,a.name),fI(e,3072)}else s??(s=t.createVoidZero());if(o||rC(i)){const e=QM(t,r,i,i);mI(e,1024);return t.createAssignment(e,s)}{const e=yC(i)?i.expression:nC(i)?t.createStringLiteral(Ll(i.escapedText)):i,n=t.createPropertyDescriptor({value:s,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(r,e,n)}}(n,r);return a&&Vb(n)&&(null==(o=null==R?void 0:R.data)?void 0:o.facts)&&(lI(a,n),mI(a,4),yI(a,gI(n.name)),D.set(Rl(n),R)),k=i,a}function Ce(){0===(1&T)&&(T|=1,e.enableSubstitution(80),x=[])}function De(e){return lD(e)?t.updatePropertyAccessExpression(e,t.createVoidZero(),e.name):t.updateElementAccessExpression(e,t.createVoidZero(),rB(e.argumentExpression,F,uu))}function Ne(){return In.assert(R),R.data??(R.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Me(){return In.assert(R),R.privateEnv??(R.privateEnv=uG({className:void 0,weakSetName:void 0}))}function Le(){return A??(A=[])}function ke(e,t,n,r,o,i,a){kd(e)?function(e,t,n,r,o,i){const a=Fe(t,"_get"),s=Fe(t,"_set"),l=o?In.checkDefined(n.classThis??n.classConstructor,"classConstructor should be set in private identifier environment"):In.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");fG(r,t,{kind:"a",getterName:a,setterName:s,brandCheckIdentifier:l,isStatic:o,isValid:i})}(0,t,n,r,o,i):TC(e)?Pe(e,t,n,r,o,i,a):AC(e)?function(e,t,n,r,o,i){const a=Fe(t),s=o?In.checkDefined(n.classThis??n.classConstructor,"classConstructor should be set in private identifier environment"):In.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");fG(r,t,{kind:"m",methodName:a,brandCheckIdentifier:s,isStatic:o,isValid:i})}(0,t,n,r,o,i):CC(e)?function(e,t,n,r,o,i,a){const s=Fe(t,"_get"),l=o?In.checkDefined(n.classThis??n.classConstructor,"classConstructor should be set in private identifier environment"):In.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");"a"!==(null==a?void 0:a.kind)||a.isStatic!==o||a.getterName?fG(r,t,{kind:"a",getterName:s,setterName:void 0,brandCheckIdentifier:l,isStatic:o,isValid:i}):a.getterName=s}(0,t,n,r,o,i,a):DC(e)&&function(e,t,n,r,o,i,a){const s=Fe(t,"_set"),l=o?In.checkDefined(n.classThis??n.classConstructor,"classConstructor should be set in private identifier environment"):In.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");"a"!==(null==a?void 0:a.kind)||a.isStatic!==o||a.setterName?fG(r,t,{kind:"a",getterName:void 0,setterName:s,brandCheckIdentifier:l,isStatic:o,isValid:i}):a.setterName=s}(0,t,n,r,o,i,a)}function Pe(e,n,r,o,i,a,s){if(i){fG(o,n,{kind:"f",isStatic:!0,brandCheckIdentifier:In.checkDefined(r.classThis??r.classConstructor,"classConstructor should be set in private identifier environment"),variableName:Fe(n),isValid:a})}else{const e=Fe(n);fG(o,n,{kind:"f",isStatic:!1,brandCheckIdentifier:e,isValid:a}),Le().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function we(e,t,n){const r=Ne(),o=Me(),i=pG(o,t),a=Vb(e),s=!function(e){return!pd(e)&&"#constructor"===e.escapedText}(t)&&void 0===i;n(e,t,r,o,a,s,i)}function Oe(e,n,o){const{className:i}=Me().data,a=i?{prefix:"_",node:i,suffix:"_"}:"_",c="object"===typeof e?t.getGeneratedNameForNode(e,24,a,o):"string"===typeof e?t.createUniqueName(e,16,a,o):t.createTempVariable(void 0,!0,a,o);return 32768&l.getNodeCheckFlags(n)?s(c):r(c),c}function Fe(e,t){const n=s_(e);return Oe((null==n?void 0:n.substring(1))??e,e,t)}function We(e){const t=mG(R,e);return"untransformed"===(null==t?void 0:t.kind)?void 0:t}function ze(n){if(sD(n)||aD(n))return Ve(n);if(_d(n))return function(n){const o=t.getGeneratedNameForNode(n),i=We(n.name);if(!i)return fB(n,F,e);let a=n.expression;return(Rh(n)||Ih(n)||!JB(n.expression))&&(a=t.createTempVariable(r,!0),Le().push(t.createBinaryExpression(a,64,rB(n.expression,F,uu)))),t.createAssignmentTargetWrapper(o,fe(i,a,o,64))}(n);if(v&&k&&Ih(n)&&ZG(k)&&(null==R?void 0:R.data)){const{classConstructor:e,superClassReference:r,facts:o}=R.data;if(1&o)return De(n);if(e&&r){const o=cD(n)?rB(n.argumentExpression,F,uu):nC(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(o){const n=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(n,t.createReflectSetCall(r,o,n,e))}}}return fB(n,F,e)}function Be(n){if(gv(n,de)&&(n=jG(e,n)),gE(n,!0)){const e=ze(n.left),r=rB(n.right,F,uu);return t.updateBinaryExpression(n,e,n.operatorToken,r)}return ze(n)}function Ge(n){if(Qd(n)){if(RD(n))return function(n){if(iu(n.expression)){const e=ze(n.expression);return t.updateSpreadElement(n,e)}return fB(n,F,e)}(n);if(!DD(n))return Be(n)}return fB(n,F,e)}function je(n){return In.assertNode(n,$d),eM(n)?function(n){if(iu(n.expression)){const e=ze(n.expression);return t.updateSpreadAssignment(n,e)}return fB(n,F,e)}(n):ZN(n)?function(t){return gv(t,de)&&(t=jG(e,t)),fB(t,F,e)}(n):QN(n)?function(n){const r=rB(n.name,F,Ed);if(gE(n.initializer,!0)){const e=Be(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(iu(n.initializer)){const e=ze(n.initializer);return t.updatePropertyAssignment(n,r,e)}return fB(n,F,e)}(n):fB(n,F,e)}function Ve(e){return aD(e)?t.updateArrayLiteralExpression(e,oB(e.elements,Ge,uu)):t.updateObjectLiteralExpression(e,oB(e.properties,je,Bd))}}function ZG(e){return IC(e)||function(e){return TC(e)&&Vb(e)}(e)}var ej=b({"src/compiler/transformers/classFields.ts"(){JJ()}});function tj(e){const{factory:t,hoistVariableDeclaration:n}=e,r=e.getEmitResolver(),o=e.getCompilerOptions(),i=jp(o),a=IT(o,"strictNullChecks");let s,l;return{serializeTypeNode:(e,t)=>c(e,f,t),serializeTypeOfNode:(e,t)=>c(e,d,t),serializeParameterTypesOfNode:(e,t,n)=>c(e,u,t,n),serializeReturnTypeOfNode:(e,t)=>c(e,p,t)};function c(e,t,n,r){const o=s,i=l;s=e.currentLexicalScope,l=e.currentNameScope;const a=void 0===r?t(n):t(n,r);return s=o,l=i,a}function d(e){switch(e.kind){case 172:case 169:return f(e.type);case 178:case 177:return f(function(e){const t=r.getAllAccessorDeclarations(e);return t.setAccessor&&gb(t.setAccessor)||t.getAccessor&&Rb(t.getAccessor)}(e));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function u(e,n){const r=Md(e)?_b(e):Td(e)&&am(e.body)?e:void 0,o=[];if(r){const e=function(e,t){if(t&&177===e.kind){const{setAccessor:n}=xb(t.members,e);if(n)return n.parameters}return e.parameters}(r,n),t=e.length;for(let n=0;n<t;n++){const t=e[n];0===n&&nC(t.name)&&"this"===t.name.escapedText||(t.dotDotDotToken?o.push(f(q_(t.type))):o.push(d(t)))}}return t.createArrayLiteralExpression(o)}function p(e){return Td(e)&&e.type?f(e.type):ev(e)?t.createIdentifier("Promise"):t.createVoidZero()}function f(e){if(void 0===e)return t.createIdentifier("Object");switch((e=Sy(e)).kind){case 116:case 157:case 146:return t.createVoidZero();case 184:case 185:return t.createIdentifier("Function");case 188:case 189:return t.createIdentifier("Array");case 182:return e.assertsModifier?t.createVoidZero():t.createIdentifier("Boolean");case 136:return t.createIdentifier("Boolean");case 203:case 154:return t.createIdentifier("String");case 151:return t.createIdentifier("Object");case 201:return m(e.literal);case 150:return t.createIdentifier("Number");case 163:return b("BigInt",7);case 155:return b("Symbol",2);case 183:return function(e){const o=r.getTypeReferenceSerializationKind(e.typeName,l??s);switch(o){case 0:if(Cl(e,(e=>e.parent&&KC(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e))))return t.createIdentifier("Object");const r=y(e.typeName),i=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(i,r),"function"),void 0,i,void 0,t.createIdentifier("Object"));case 1:return v(e.typeName);case 2:return t.createVoidZero();case 4:return b("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return b("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return In.assertNever(o)}}(e);case 193:return _(e.types,!0);case 192:return _(e.types,!1);case 194:return _([e.trueType,e.falseType],!1);case 198:if(148===e.operator)return f(e.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:case 319:case 320:case 324:case 325:case 326:break;case 321:case 322:case 323:return f(e.type);default:return In.failBadSyntaxKind(e)}return t.createIdentifier("Object")}function m(e){switch(e.kind){case 11:case 15:return t.createIdentifier("String");case 224:{const t=e.operand;switch(t.kind){case 9:case 10:return m(t);default:return In.failBadSyntaxKind(t)}}case 9:return t.createIdentifier("Number");case 10:return b("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return In.failBadSyntaxKind(e)}}function _(e,n){let r;for(let o of e){if(o=Sy(o),146===o.kind){if(n)return t.createVoidZero();continue}if(159===o.kind){if(!n)return t.createIdentifier("Object");continue}if(133===o.kind)return t.createIdentifier("Object");if(!a&&(ZC(o)&&106===o.literal.kind||157===o.kind))continue;const e=f(o);if(nC(e)&&"Object"===e.escapedText)return e;if(r){if(!h(r,e))return t.createIdentifier("Object")}else r=e}return r??t.createVoidZero()}function h(e,t){return ud(e)?ud(t):nC(e)?nC(t)&&e.escapedText===t.escapedText:lD(e)?lD(t)&&h(e.expression,t.expression)&&h(e.name,t.name):vD(e)?vD(t)&&FR(e.expression)&&"0"===e.expression.text&&FR(t.expression)&&"0"===t.expression.text:zR(e)?zR(t)&&e.text===t.text:yD(e)?yD(t)&&h(e.expression,t.expression):mD(e)?mD(t)&&h(e.expression,t.expression):xD(e)?xD(t)&&h(e.condition,t.condition)&&h(e.whenTrue,t.whenTrue)&&h(e.whenFalse,t.whenFalse):!!TD(e)&&(TD(t)&&e.operatorToken.kind===t.operatorToken.kind&&h(e.left,t.left)&&h(e.right,t.right))}function g(e,n){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(e),t.createStringLiteral("undefined")),n)}function y(e){if(80===e.kind){const t=v(e);return g(t,t)}if(80===e.left.kind)return g(v(e.left),v(e));const r=y(e.left),o=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(r.left,t.createStrictInequality(t.createAssignment(o,r.right),t.createVoidZero())),t.createPropertyAccessExpression(o,e.right))}function v(e){switch(e.kind){case 80:const n=Vx(yk(Rk.cloneNode(e),e),e.parent);return n.original=void 0,Vx(n,Nl(s)),n;case 166:return function(e){return t.createPropertyAccessExpression(v(e.left),e.right)}(e)}}function b(e,n){return i<n?function(e){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(e),"function"),void 0,t.createIdentifier(e),void 0,t.createIdentifier("Object"))}(e):t.createIdentifier(e)}}var nj=b({"src/compiler/transformers/typeSerializer.ts"(){JJ()}});function rj(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r}=e,o=e.getEmitResolver(),i=e.getCompilerOptions(),a=jp(i),s=e.onSubstituteNode;let l;return e.onSubstituteNode=function(e,n){if(n=s(e,n),1===e)return function(e){if(80===e.kind)return function(e){return function(e){if(l&&536870912&o.getNodeCheckFlags(e)){const n=o.getReferencedValueDeclaration(e);if(n){const r=l[n.id];if(r){const n=t.cloneNode(r);return yI(n,e),xI(n,e),n}}}return}(e)??e}(e);return e}(n);return n},GB(e,(function(t){const n=fB(t,d,e);return wI(n,e.readEmitHelpers()),n}));function c(e){return EC(e)?void 0:e}function d(i){if(!(33554432&i.transformFlags))return i;switch(i.kind){case 170:return;case 263:return function(i){if(!Oh(!0,i)&&!wh(!0,i))return fB(i,d,e);const s=Oh(!0,i)?function(i,s){const c=Gb(i,32),u=Gb(i,2048),p=oB(i.modifiers,(e=>rk(e)||EC(e)?void 0:e),Fd),m=JE(i),_=function(n){if(262144&o.getNodeCheckFlags(n)){l||(e.enableSubstitution(80),l=[]);const o=t.createUniqueName(n.name&&!ud(n.name)?kl(n.name):"default");return l[zB(n)]=o,r(o),o}}(i),g=a<2?t.getInternalName(i,!1,!0):t.getLocalName(i,!1,!0),y=oB(i.heritageClauses,d,$N);let v=oB(i.members,d,Nd),b=[];({members:v,decorationStatements:b}=f(i,v));const E=a>=9&&!!_&&se(v,(e=>TC(e)&&Gb(e,256)||IC(e)));E&&(v=yk(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(_,t.createThis()))])),...v]),v));const S=t.createClassExpression(p,s&&ud(s)?void 0:s,void 0,y,v);lI(S,i),yk(S,m);const T=_&&!E?t.createAssignment(_,S):S,x=t.createVariableDeclaration(g,void 0,void 0,T);lI(x,i);const A=t.createVariableDeclarationList([x],1),I=t.createVariableStatement(void 0,A);lI(I,i),yk(I,m),xI(I,i);const R=[I];if(xe(R,b),function(e,r){const o=function(e){const r=sG(e),o=h(r);if(!o)return;const i=l&&l[zB(e)],s=a<2?t.getInternalName(e,!1,!0):t.getDeclarationName(e,!1,!0),c=n().createDecorateHelper(o,s),d=t.createAssignment(s,i?t.createAssignment(i,c):c);return fI(d,3072),yI(d,JE(e)),d}(r);o&&e.push(lI(t.createExpressionStatement(o),r))}(R,i),c)if(u){const e=t.createExportDefault(g);R.push(e)}else{const e=t.createExternalModuleExport(t.getDeclarationName(i));R.push(e)}return R}(i,i.name):function(e,n){const r=oB(e.modifiers,c,vd),o=oB(e.heritageClauses,d,$N);let i=oB(e.members,d,Nd),a=[];({members:i,decorationStatements:a}=f(e,i));const s=t.updateClassDeclaration(e,r,n,void 0,o,i);return xe([s],a)}(i,i.name);return Be(s)}(i);case 231:return function(e){return t.updateClassExpression(e,oB(e.modifiers,c,vd),e.name,void 0,oB(e.heritageClauses,d,$N),oB(e.members,d,Nd))}(i);case 176:return function(e){return t.updateConstructorDeclaration(e,oB(e.modifiers,c,vd),oB(e.parameters,d,bC),rB(e.body,d,BD))}(i);case 174:return function(e){return m(t.updateMethodDeclaration(e,oB(e.modifiers,c,vd),e.asteriskToken,In.checkDefined(rB(e.name,d,Ed)),void 0,void 0,oB(e.parameters,d,bC),void 0,rB(e.body,d,BD)),e)}(i);case 178:return function(e){return m(t.updateSetAccessorDeclaration(e,oB(e.modifiers,c,vd),In.checkDefined(rB(e.name,d,Ed)),oB(e.parameters,d,bC),rB(e.body,d,BD)),e)}(i);case 177:return function(e){return m(t.updateGetAccessorDeclaration(e,oB(e.modifiers,c,vd),In.checkDefined(rB(e.name,d,Ed)),oB(e.parameters,d,bC),void 0,rB(e.body,d,BD)),e)}(i);case 172:return function(e){if(33554432&e.flags||Gb(e,128))return;return m(t.updatePropertyDeclaration(e,oB(e.modifiers,c,vd),In.checkDefined(rB(e.name,d,Ed)),void 0,void 0,rB(e.initializer,d,uu)),e)}(i);case 169:return function(e){const n=t.updateParameterDeclaration(e,ik(t,e.modifiers),e.dotDotDotToken,In.checkDefined(rB(e.name,d,Sd)),void 0,void 0,rB(e.initializer,d,uu));n!==e&&(xI(n,e),yk(n,JE(e)),yI(n,JE(e)),fI(n.name,64));return n}(i);default:return fB(i,d,e)}}function u(e){return!!(536870912&e.transformFlags)}function p(e){return se(e,u)}function f(e,n){let r=[];return g(r,e,!1),g(r,e,!0),function(e){for(const t of e.members){if(!bk(t))continue;const n=lG(t,e,!0);if(se(null==n?void 0:n.decorators,u))return!0;if(se(null==n?void 0:n.parameters,p))return!0}return!1}(e)&&(n=yk(t.createNodeArray([...n,t.createClassStaticBlockDeclaration(t.createBlock(r,!0))]),n),r=void 0),{decorationStatements:r,members:n}}function m(e,t){return e!==t&&(xI(e,t),yI(e,JE(t))),e}function _(e){return wR(e.expression,"___metadata")}function h(e){if(!e)return;const{false:t,true:n}=ot(e.decorators,_),r=[];return xe(r,U(t,v)),xe(r,J(e.parameters,b)),xe(r,U(n,v)),r}function g(e,n,r){xe(e,U(function(e,t){const n=function(e,t){return G(e.members,(n=>{return o=t,Ph(!0,r=n,e)&&o===jb(r);var r,o}))}(e,t);let r;for(const o of n)r=Ee(r,y(e,o));return r}(n,r),(e=>t.createExpressionStatement(e))))}function y(e,r){const o=h(lG(r,e,!0));if(!o)return;const i=function(e,n){return jb(n)?t.getDeclarationName(e):function(e){return t.createPropertyAccessExpression(t.getDeclarationName(e),"prototype")}(e)}(e,r),s=function(e,n){const r=e.name;return rC(r)?t.createIdentifier(""):yC(r)?n&&!XB(r.expression)?t.getGeneratedNameForNode(r):r.expression:nC(r)?t.createStringLiteral(kl(r)):t.cloneNode(r)}(r,!Gb(r,128)),l=a>0?TC(r)&&!qb(r)?t.createVoidZero():t.createNull():void 0,c=n().createDecorateHelper(o,i,s,l);return fI(c,3072),yI(c,JE(r)),c}function v(e){return In.checkDefined(rB(e.expression,d,uu))}function b(e,t){let r;if(e){r=[];for(const o of e){const e=n().createParamHelper(v(o),t);yk(e,o.expression),fI(e,3072),r.push(e)}}return r}}var oj=b({"src/compiler/transformers/legacyDecorators.ts"(){JJ()}});function ij(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:o,hoistVariableDeclaration:i}=e,a=jp(e.getCompilerOptions());let s,l,c,d,u,p;return GB(e,(function(t){s=void 0,p=!1;const n=fB(t,b,e);wI(n,e.readEmitHelpers()),p&&(hI(n,32),p=!1);return n}));function f(){switch(l=void 0,c=void 0,d=void 0,null==s?void 0:s.kind){case"class":l=s.classInfo;break;case"class-element":l=s.next.classInfo,c=s.classThis,d=s.classSuper;break;case"name":const e=s.next.next.next;"class-element"===(null==e?void 0:e.kind)&&(l=e.next.classInfo,c=e.classThis,d=e.classSuper)}}function m(e){s={kind:"class",next:s,classInfo:e,savedPendingExpressions:u},u=void 0,f()}function _(){In.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),u=s.savedPendingExpressions,s=s.next,f()}function h(e){var t,n;In.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"class-element",next:s},(IC(e)||TC(e)&&Vb(e))&&(s.classThis=null==(t=s.next.classInfo)?void 0:t.classThis,s.classSuper=null==(n=s.next.classInfo)?void 0:n.classSuper),f()}function g(){var e;In.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),In.assert("class"===(null==(e=s.next)?void 0:e.kind),"Incorrect value for top.next.kind.",(()=>{var e;return`Expected top.next.kind to be 'class' but got '${null==(e=s.next)?void 0:e.kind}' instead.`})),s=s.next,f()}function y(){In.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"name",next:s},f()}function v(){In.assert("name"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'name' but got '${null==s?void 0:s.kind}' instead.`)),s=s.next,f()}function b(n){if(!function(e){return!!(33554432&e.transformFlags)||!!c&&!!(16384&e.transformFlags)||!!c&&!!d&&!!(134217728&e.transformFlags)}(n))return n;switch(n.kind){case 170:return In.fail("Use `modifierVisitor` instead.");case 263:return function(n){if(C(n)){const r=[],o=Rl(n,Md)??n,i=o.name?t.createStringLiteralFromNode(o.name):t.createStringLiteral("default"),a=Gb(n,32),s=Gb(n,2048);if(n.name||(n=BG(e,n,i)),a&&s){const e=R(n);if(n.name){const o=t.createVariableDeclaration(t.getLocalName(n),void 0,void 0,e);lI(o,n);const i=t.createVariableDeclarationList([o],1),a=t.createVariableStatement(void 0,i);r.push(a);const s=t.createExportDefault(t.getDeclarationName(n));lI(s,n),xI(s,TI(n)),yI(s,qE(n)),r.push(s)}else{const o=t.createExportDefault(e);lI(o,n),xI(o,TI(n)),yI(o,qE(n)),r.push(o)}}else{In.assertIsDefined(n.name,"A class declaration that is not a default export must have a name.");const e=R(n),o=a?e=>oC(e)?void 0:S(e):S,i=oB(n.modifiers,o,vd),s=t.getLocalName(n,!1,!0),l=t.createVariableDeclaration(s,void 0,void 0,e);lI(l,n);const c=t.createVariableDeclarationList([l],1),d=t.createVariableStatement(i,c);if(lI(d,n),xI(d,TI(n)),r.push(d),a){const e=t.createExternalModuleExport(s);lI(e,n),r.push(e)}}return Be(r)}{const e=oB(n.modifiers,S,vd),r=oB(n.heritageClauses,b,$N);m(void 0);const o=oB(n.members,T,Nd);return _(),t.updateClassDeclaration(n,e,n.name,void 0,r,o)}}(n);case 231:return function(e){if(C(e)){const t=R(e);return lI(t,e),t}{const n=oB(e.modifiers,S,vd),r=oB(e.heritageClauses,b,$N);m(void 0);const o=oB(e.members,T,Nd);return _(),t.updateClassExpression(e,n,e.name,void 0,r,o)}}(n);case 176:case 172:case 175:return In.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return function(n){gv(n,k)&&(n=jG(e,n,P(n.initializer)));const r=t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,rB(n.name,b,Sd),void 0,void 0,rB(n.initializer,b,uu));r!==n&&(xI(r,n),yk(r,JE(n)),yI(r,JE(n)),fI(r.name,64));return r}(n);case 226:return w(n,!1);case 303:case 260:case 208:return function(t){gv(t,k)&&(t=jG(e,t,P(t.initializer)));return fB(t,b,e)}(n);case 277:return function(t){gv(t,k)&&(t=jG(e,t,P(t.expression)));return fB(t,b,e)}(n);case 110:return function(e){return c??e}(n);case 248:return function(n){return t.updateForStatement(n,rB(n.initializer,x,Su),rB(n.condition,b,uu),rB(n.incrementor,x,uu),uB(n.statement,b,e))}(n);case 244:return function(t){return fB(t,x,e)}(n);case 361:return F(n,!1);case 217:return K(n,!1);case 360:return function(e,n){const r=n?x:b,o=rB(e.expression,r,uu);return t.updatePartiallyEmittedExpression(e,o)}(n,!1);case 213:return function(n){if(Ih(n.expression)&&c){const e=rB(n.expression,b,uu),r=oB(n.arguments,b,uu),o=t.createFunctionCallCall(e,c,r);return lI(o,n),yk(o,n),o}return fB(n,b,e)}(n);case 215:return function(n){if(Ih(n.tag)&&c){const e=rB(n.tag,b,uu),r=t.createFunctionBindCall(e,c,[]);lI(r,n),yk(r,n);const o=rB(n.template,b,ou);return t.updateTaggedTemplateExpression(n,r,void 0,o)}return fB(n,b,e)}(n);case 224:case 225:return O(n,!1);case 211:return function(n){if(Ih(n)&&nC(n.name)&&c&&d){const e=t.createStringLiteralFromNode(n.name),r=t.createReflectGetCall(d,e,c);return lI(r,n.expression),yk(r,n.expression),r}return fB(n,b,e)}(n);case 212:return function(n){if(Ih(n)&&c&&d){const e=rB(n.argumentExpression,b,uu),r=t.createReflectGetCall(d,e,c);return lI(r,n.expression),yk(r,n.expression),r}return fB(n,b,e)}(n);case 167:return z(n);case 174:case 178:case 177:case 218:case 262:{"other"===(null==s?void 0:s.kind)?(In.assert(!u),s.depth++):(s={kind:"other",next:s,depth:0,savedPendingExpressions:u},u=void 0,f());const t=fB(n,E,e);return In.assert("other"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'other' but got '${null==s?void 0:s.kind}' instead.`)),s.depth>0?(In.assert(!u),s.depth--):(u=s.savedPendingExpressions,s=s.next,f()),t}default:return fB(n,E,e)}}function E(e){if(170!==e.kind)return b(e)}function S(e){if(170!==e.kind)return e}function T(a){switch(a.kind){case 176:return function(e){h(e);const n=oB(e.modifiers,S,vd),r=oB(e.parameters,b,bC);let o;if(e.body&&l){const n=D(l.class,l);if(n){const r=[],i=t.copyPrologue(e.body.statements,r,!1,b),a=eG(e.body.statements,i);a.length>0?N(r,e.body.statements,i,a,0,n):(xe(r,n),xe(r,oB(e.body.statements,b,wu))),o=t.createBlock(r,!0),lI(o,e.body),yk(o,e.body)}}return o??(o=rB(e.body,b,BD)),g(),t.updateConstructorDeclaration(e,n,r,o)}(a);case 174:return function(e){h(e);const{modifiers:n,name:r,descriptorName:o}=L(e,l,Z);if(o)return g(),M(function(e,n,r){return e=oB(e,(e=>dC(e)?e:void 0),vd),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(r,t.createIdentifier("value")))]))}(n,r,o),e);{const o=oB(e.parameters,b,bC),i=rB(e.body,b,BD);return g(),M(t.updateMethodDeclaration(e,n,e.asteriskToken,r,void 0,void 0,o,void 0,i),e)}}(a);case 177:return function(e){h(e);const{modifiers:n,name:r,descriptorName:o}=L(e,l,ee);if(o)return g(),M(re(n,r,o),e);{const o=oB(e.parameters,b,bC),i=rB(e.body,b,BD);return g(),M(t.updateGetAccessorDeclaration(e,n,r,o,void 0,i),e)}}(a);case 178:return function(e){h(e);const{modifiers:n,name:r,descriptorName:o}=L(e,l,te);if(o)return g(),M(oe(n,r,o),e);{const o=oB(e.parameters,b,bC),i=rB(e.body,b,BD);return g(),M(t.updateSetAccessorDeclaration(e,n,r,o,i),e)}}(a);case 172:return function(a){gv(a,k)&&(a=jG(e,a,P(a.initializer)));h(a),In.assert(!Km(a),"Not yet implemented.");const{modifiers:s,name:c,initializersName:d,extraInitializersName:u,descriptorName:p,thisArg:f}=L(a,l,qb(a)?ne:void 0);r();let m=rB(a.initializer,b,uu);d&&(m=n().createRunInitializersHelper(f??t.createThis(),d,m??t.createVoidZero()));jb(a)&&l&&m&&(l.hasStaticInitializers=!0);const _=o();se(_)&&(m=t.createImmediatelyInvokedArrowFunction([..._,t.createReturnStatement(m)]));l&&(jb(a)?(m=X(l,!0,m),u&&(l.pendingStaticInitializers??(l.pendingStaticInitializers=[]),l.pendingStaticInitializers.push(n().createRunInitializersHelper(l.classThis??t.createThis(),u)))):(m=X(l,!1,m),u&&(l.pendingInstanceInitializers??(l.pendingInstanceInitializers=[]),l.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),u)))));if(g(),qb(a)&&p){const e=TI(a),n=gI(a),r=a.name;let o=r,l=r;if(yC(r)&&!XB(r.expression)){const e=fk(r);if(e)o=t.updateComputedPropertyName(r,rB(r.expression,b,uu)),l=t.updateComputedPropertyName(r,e.left);else{const e=t.createTempVariable(i);yI(e,r.expression);const n=rB(r.expression,b,uu),a=t.createAssignment(e,n);yI(a,r.expression),o=t.updateComputedPropertyName(r,a),l=t.updateComputedPropertyName(r,e)}}const c=oB(s,(e=>129!==e.kind?e:void 0),vd),d=dk(t,a,c,m);lI(d,a),fI(d,3072),yI(d,n),yI(d.name,a.name);const u=re(c,o,p);lI(u,a),xI(u,e),yI(u,n);const f=oe(c,l,p);return lI(f,a),fI(f,3072),yI(f,n),[d,u,f]}return M(t.updatePropertyDeclaration(a,s,c,void 0,void 0,m),a)}(a);case 175:return function(n){let r;if(h(n),FG(n))r=fB(n,b,e);else if(NG(n)){const t=c;c=void 0,r=fB(n,b,e),c=t}else if(r=n=fB(n,b,e),l&&(l.hasStaticInitializers=!0,se(l.pendingStaticInitializers))){const e=[];for(const r of l.pendingStaticInitializers){const n=t.createExpressionStatement(r);yI(n,gI(r)),e.push(n)}const n=t.createBlock(e,!0);r=[t.createClassStaticBlockDeclaration(n),r],l.pendingStaticInitializers=void 0}return g(),r}(a);default:return b(a)}}function x(e){switch(e.kind){case 224:case 225:return O(e,!0);case 226:return w(e,!0);case 361:return F(e,!0);case 217:return K(e,!0);default:return b(e)}}function A(e,n){return t.createUniqueName(`${function(e){let t=e.name&&nC(e.name)&&!ud(e.name)?kl(e.name):e.name&&rC(e.name)&&!ud(e.name)?kl(e.name).slice(1):e.name&&zR(e.name)&&zs(e.name.text,99)?e.name.text:Md(e)?"class":"member";return Ju(e)&&(t=`get_${t}`),qu(e)&&(t=`set_${t}`),e.name&&rC(e.name)&&(t=`private_${t}`),jb(e)&&(t=`static_${t}`),"_"+t}(e)}_${n}`,24)}function I(e,n){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n)],1))}function R(i){r(),!zG(i)&&Oh(!1,i)&&(i=BG(e,i,t.createStringLiteral("")));const a=t.getLocalName(i,!1,!1,!0),s=function(e){const r=t.createUniqueName("_metadata",48);let o,i,a,s,l,c=!1,d=!1,u=!1;if(kh(!1,e)){const n=se(e.members,(e=>(md(e)||kd(e))&&Vb(e)));a=t.createUniqueName("_classThis",n?24:48)}for(const p of e.members){if(wd(p)&&Ph(!1,p,e))if(Vb(p)){if(!i){i=t.createUniqueName("_staticExtraInitializers",48);const r=n().createRunInitializersHelper(a??t.createThis(),i);yI(r,e.name??qE(e)),s??(s=[]),s.push(r)}}else{if(!o){o=t.createUniqueName("_instanceExtraInitializers",48);const r=n().createRunInitializersHelper(t.createThis(),o);yI(r,e.name??qE(e)),l??(l=[]),l.push(r)}o??(o=t.createUniqueName("_instanceExtraInitializers",48))}if(IC(p)?FG(p)||(c=!0):TC(p)&&(Vb(p)?c||(c=!!p.initializer||Xb(p)):d||(d=!Km(p))),(md(p)||kd(p))&&Vb(p)&&(u=!0),i&&o&&c&&d&&u)break}return{class:e,classThis:a,metadataReference:r,instanceMethodExtraInitializersName:o,staticMethodExtraInitializersName:i,hasStaticInitializers:c,hasNonAmbientInstanceFields:d,hasStaticPrivateClassElements:u,pendingStaticInitializers:s,pendingInstanceInitializers:l}}(i),l=[];let c,d,f,h,g=!1;const y=$(sG(i));y&&(s.classDecoratorsName=t.createUniqueName("_classDecorators",48),s.classDescriptorName=t.createUniqueName("_classDescriptor",48),s.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),In.assertIsDefined(s.classThis),l.push(I(s.classDecoratorsName,t.createArrayLiteralExpression(y)),I(s.classDescriptorName),I(s.classExtraInitializersName,t.createArrayLiteralExpression()),I(s.classThis)),s.hasStaticPrivateClassElements&&(g=!0,p=!0));const v=Gy(i.heritageClauses,96),E=v&&Le(v.types),S=E&&rB(E.expression,b,uu);if(S){s.classSuper=t.createUniqueName("_classSuper",48);const e=EL(S),n=CD(e)&&!e.name||_D(e)&&!e.name||hD(e)?t.createComma(t.createNumericLiteral(0),S):S;l.push(I(s.classSuper,n));const r=t.updateExpressionWithTypeArguments(E,s.classSuper,void 0),o=t.updateHeritageClause(v,[r]);h=t.createNodeArray([o])}const x=s.classThis??t.createThis();m(s),c=Ee(c,function(e,n){const r=t.createVariableDeclaration(e,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[n?ie(n):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([r],2))}(s.metadataReference,s.classSuper));let A=i.members;if(A=oB(A,(e=>RC(e)?e:T(e)),Nd),A=oB(A,(e=>RC(e)?T(e):e),Nd),u){let n;for(let r of u){r=rB(r,(function r(o){return 16384&o.transformFlags?110===o.kind?(n||(n=t.createUniqueName("_outerThis",16),l.unshift(I(n,t.createThis()))),n):fB(o,r,e):o}),uu);c=Ee(c,t.createExpressionStatement(r))}u=void 0}if(_(),se(s.pendingInstanceInitializers)&&!_b(i)){const e=D(i,s);if(e){const n=Oy(i),r=[];if(!(!n||106===EL(n.expression).kind)){const e=t.createSpreadElement(t.createIdentifier("arguments")),n=t.createCallExpression(t.createSuper(),void 0,[e]);r.push(t.createExpressionStatement(n))}xe(r,e);const o=t.createBlock(r,!0);f=t.createConstructorDeclaration(void 0,[],o)}}if(s.staticMethodExtraInitializersName&&l.push(I(s.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),s.instanceMethodExtraInitializersName&&l.push(I(s.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),s.memberInfos&&Wf(s.memberInfos,((e,n)=>{jb(n)&&(l.push(I(e.memberDecoratorsName)),e.memberInitializersName&&l.push(I(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&l.push(I(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&l.push(I(e.memberDescriptorName)))})),s.memberInfos&&Wf(s.memberInfos,((e,n)=>{jb(n)||(l.push(I(e.memberDecoratorsName)),e.memberInitializersName&&l.push(I(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&l.push(I(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&l.push(I(e.memberDescriptorName)))})),c=xe(c,s.staticNonFieldDecorationStatements),c=xe(c,s.nonStaticNonFieldDecorationStatements),c=xe(c,s.staticFieldDecorationStatements),c=xe(c,s.nonStaticFieldDecorationStatements),s.classDescriptorName&&s.classDecoratorsName&&s.classExtraInitializersName&&s.classThis){c??(c=[]);const e=t.createPropertyAssignment("value",x),r=t.createObjectLiteralExpression([e]),o=t.createAssignment(s.classDescriptorName,r),l=t.createPropertyAccessExpression(x,"name"),d=n().createESDecorateHelper(t.createNull(),o,s.classDecoratorsName,{kind:"class",name:l,metadata:s.metadataReference},t.createNull(),s.classExtraInitializersName),u=t.createExpressionStatement(d);yI(u,qE(i)),c.push(u);const p=t.createPropertyAccessExpression(s.classDescriptorName,"value"),f=t.createAssignment(s.classThis,p),m=t.createAssignment(a,f);c.push(t.createExpressionStatement(m))}if(c.push(function(e,n){const r=t.createObjectDefinePropertyCall(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:n},!0));return fI(t.createIfStatement(n,t.createExpressionStatement(r)),1)}(x,s.metadataReference)),se(s.pendingStaticInitializers)){for(const e of s.pendingStaticInitializers){const n=t.createExpressionStatement(e);yI(n,gI(e)),d=Ee(d,n)}s.pendingStaticInitializers=void 0}if(s.classExtraInitializersName){const e=n().createRunInitializersHelper(x,s.classExtraInitializersName),r=t.createExpressionStatement(e);yI(r,i.name??qE(i)),d=Ee(d,r)}c&&d&&!s.hasStaticInitializers&&(xe(c,d),d=void 0);const R=c&&t.createClassStaticBlockDeclaration(t.createBlock(c,!0));R&&g&&_I(R,32);const C=d&&t.createClassStaticBlockDeclaration(t.createBlock(d,!0));if(R||f||C){const e=[],n=A.findIndex(FG);R?(xe(e,A,0,n+1),e.push(R),xe(e,A,n+1)):xe(e,A),f&&e.push(f),C&&e.push(C),A=yk(t.createNodeArray(e),A)}const N=o();let M;if(y){M=t.createClassExpression(void 0,void 0,void 0,h,A),s.classThis&&(M=LG(t,M,s.classThis));const e=t.createVariableDeclaration(a,void 0,void 0,M),n=t.createVariableDeclarationList([e]),r=s.classThis?t.createAssignment(a,s.classThis):a;l.push(t.createVariableStatement(void 0,n),t.createReturnStatement(r))}else M=t.createClassExpression(void 0,i.name,void 0,h,A),l.push(t.createReturnStatement(M));if(g){hI(M,32);for(const e of M.members)(md(e)||kd(e))&&Vb(e)&&hI(e,32)}return lI(M,i),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(l,N))}function C(e){return Oh(!1,e)||wh(!1,e)}function D(e,n){if(se(n.pendingInstanceInitializers)){const e=[];return e.push(t.createExpressionStatement(t.inlineExpressions(n.pendingInstanceInitializers))),n.pendingInstanceInitializers=void 0,e}}function N(e,n,r,o,i,a){const s=o[i],l=n[s];if(xe(e,oB(n,b,wu,r,s-r)),rN(l)){const n=[];N(n,l.tryBlock.statements,0,o,i+1,a);yk(t.createNodeArray(n),l.tryBlock.statements),e.push(t.updateTryStatement(l,t.updateBlock(l.tryBlock,n),rB(l.catchClause,b,YN),rB(l.finallyBlock,b,BD)))}else xe(e,oB(n,b,wu,s,1)),xe(e,a);xe(e,oB(n,b,wu,s+1))}function M(e,t){return e!==t&&(xI(e,t),yI(e,qE(t))),e}function L(e,r,o){let a,s,l,c,d,p;if(!r){const t=oB(e.modifiers,S,vd);return y(),s=W(e.name),v(),{modifiers:t,referencedName:a,name:s,initializersName:l,descriptorName:p,thisArg:d}}const f=$(lG(e,r.class,!1)),m=oB(e.modifiers,S,vd);if(f){const _=A(e,"decorators"),h=t.createArrayLiteralExpression(f),g=t.createAssignment(_,h),E={memberDecoratorsName:_};r.memberInfos??(r.memberInfos=new Map),r.memberInfos.set(e,E),u??(u=[]),u.push(g);const S=wd(e)||kd(e)?jb(e)?r.staticNonFieldDecorationStatements??(r.staticNonFieldDecorationStatements=[]):r.nonStaticNonFieldDecorationStatements??(r.nonStaticNonFieldDecorationStatements=[]):TC(e)&&!kd(e)?jb(e)?r.staticFieldDecorationStatements??(r.staticFieldDecorationStatements=[]):r.nonStaticFieldDecorationStatements??(r.nonStaticFieldDecorationStatements=[]):In.fail(),T=CC(e)?"getter":DC(e)?"setter":AC(e)?"method":kd(e)?"accessor":TC(e)?"field":In.fail();let x;if(nC(e.name)||rC(e.name))x={computed:!1,name:e.name};else if(av(e.name))x={computed:!0,name:t.createStringLiteralFromNode(e.name)};else{const r=e.name.expression;av(r)&&!nC(r)?x={computed:!0,name:t.createStringLiteralFromNode(r)}:(y(),({referencedName:a,name:s}=function(e){if(av(e)||rC(e)){return{referencedName:t.createStringLiteralFromNode(e),name:rB(e,b,Ed)}}if(av(e.expression)&&!nC(e.expression)){return{referencedName:t.createStringLiteralFromNode(e.expression),name:rB(e,b,Ed)}}const r=t.getGeneratedNameForNode(e);i(r);const o=n().createPropKeyHelper(rB(e.expression,b,uu)),a=t.createAssignment(r,o),s=t.updateComputedPropertyName(e,J(a));return{referencedName:r,name:s}}(e.name)),x={computed:!0,name:a},v())}const I={kind:T,name:x,static:jb(e),private:rC(e.name),access:{get:TC(e)||CC(e)||AC(e),set:TC(e)||DC(e)},metadata:r.metadataReference};if(wd(e)){const i=jb(e)?r.staticMethodExtraInitializersName:r.instanceMethodExtraInitializersName;let a;In.assertIsDefined(i),md(e)&&o&&(a=o(e,oB(m,(e=>yt(e,aC)),vd)),E.memberDescriptorName=p=A(e,"descriptor"),a=t.createAssignment(p,a));const s=n().createESDecorateHelper(t.createThis(),a??t.createNull(),_,I,t.createNull(),i),l=t.createExpressionStatement(s);yI(l,qE(e)),S.push(l)}else if(TC(e)){let i;l=E.memberInitializersName??(E.memberInitializersName=A(e,"initializers")),c=E.memberExtraInitializersName??(E.memberExtraInitializersName=A(e,"extraInitializers")),jb(e)&&(d=r.classThis),md(e)&&qb(e)&&o&&(i=o(e,void 0),E.memberDescriptorName=p=A(e,"descriptor"),i=t.createAssignment(p,i));const a=n().createESDecorateHelper(kd(e)?t.createThis():t.createNull(),i??t.createNull(),_,I,l,c),s=t.createExpressionStatement(a);yI(s,qE(e)),S.push(s)}}return void 0===s&&(y(),s=W(e.name),v()),se(m)||!AC(e)&&!TC(e)||fI(s,1024),{modifiers:m,referencedName:a,name:s,initializersName:l,extraInitializersName:c,descriptorName:p,thisArg:d}}function k(e){return CD(e)&&!e.name&&C(e)}function P(e){const t=EL(e);return CD(t)&&!t.name&&!Oh(!1,t)}function w(n,r){if(vE(n)){const e=H(n.left),r=rB(n.right,b,uu);return t.updateBinaryExpression(n,e,n.operatorToken,r)}if(gE(n)){if(gv(n,k))return fB(n=jG(e,n,P(n.right)),b,e);if(Ih(n.left)&&c&&d){let e=cD(n.left)?rB(n.left.argumentExpression,b,uu):nC(n.left.name)?t.createStringLiteralFromNode(n.left.name):void 0;if(e){let o=rB(n.right,b,uu);if($B(n.operatorToken.kind)){let r=e;XB(e)||(r=t.createTempVariable(i),e=t.createAssignment(r,e));const a=t.createReflectGetCall(d,r,c);lI(a,n.left),yk(a,n.left),o=t.createBinaryExpression(a,YB(n.operatorToken.kind),o),yk(o,n)}const a=r?void 0:t.createTempVariable(i);return a&&(o=t.createAssignment(a,o),yk(a,n)),o=t.createReflectSetCall(d,e,o,c),lI(o,n),yk(o,n),a&&(o=t.createComma(o,a),yk(o,n)),o}}}if(28===n.operatorToken.kind){const e=rB(n.left,x,uu),o=rB(n.right,r?x:b,uu);return t.updateBinaryExpression(n,e,n.operatorToken,o)}return fB(n,b,e)}function O(n,r){if(46===n.operator||47===n.operator){const e=Ty(n.operand);if(Ih(e)&&c&&d){let o=cD(e)?rB(e.argumentExpression,b,uu):nC(e.name)?t.createStringLiteralFromNode(e.name):void 0;if(o){let e=o;XB(o)||(e=t.createTempVariable(i),o=t.createAssignment(e,o));let a=t.createReflectGetCall(d,e,c);lI(a,n),yk(a,n);const s=r?void 0:t.createTempVariable(i);return a=cL(t,n,a,i,s),a=t.createReflectSetCall(d,o,a,c),lI(a,n),yk(a,n),s&&(a=t.createComma(a,s),yk(a,n)),a}}}return fB(n,b,e)}function F(e,n){const r=n?pB(e.elements,x):pB(e.elements,b,x);return t.updateCommaListExpression(e,r)}function W(e){return yC(e)?z(e):rB(e,b,Ed)}function z(e){let n=rB(e.expression,b,uu);return XB(n)||(n=J(n)),t.updateComputedPropertyName(e,n)}function B(n){if(sD(n)||aD(n))return H(n);if(Ih(n)&&c&&d){const e=cD(n)?rB(n.argumentExpression,b,uu):nC(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(e){const r=t.createTempVariable(void 0),o=t.createAssignmentTargetWrapper(r,t.createReflectSetCall(d,e,r,c));return lI(o,n),yk(o,n),o}}return fB(n,b,e)}function G(n){if(gE(n,!0)){gv(n,k)&&(n=jG(e,n,P(n.right)));const r=B(n.left),o=rB(n.right,b,uu);return t.updateBinaryExpression(n,r,n.operatorToken,o)}return B(n)}function j(n){return In.assertNode(n,Qd),RD(n)?function(n){if(iu(n.expression)){const e=B(n.expression);return t.updateSpreadElement(n,e)}return fB(n,b,e)}(n):DD(n)?fB(n,b,e):G(n)}function V(n){return In.assertNode(n,$d),eM(n)?function(n){if(iu(n.expression)){const e=B(n.expression);return t.updateSpreadAssignment(n,e)}return fB(n,b,e)}(n):ZN(n)?function(t){return gv(t,k)&&(t=jG(e,t,P(t.objectAssignmentInitializer))),fB(t,b,e)}(n):QN(n)?function(n){const r=rB(n.name,b,Ed);if(gE(n.initializer,!0)){const e=G(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(iu(n.initializer)){const e=B(n.initializer);return t.updatePropertyAssignment(n,r,e)}return fB(n,b,e)}(n):fB(n,b,e)}function H(e){if(aD(e)){const n=oB(e.elements,j,uu);return t.updateArrayLiteralExpression(e,n)}{const n=oB(e.properties,V,Bd);return t.updateObjectLiteralExpression(e,n)}}function K(e,n){const r=n?x:b,o=rB(e.expression,r,uu);return t.updateParenthesizedExpression(e,o)}function q(e,n){return se(e)&&(n?mD(n)?(e.push(n.expression),n=t.updateParenthesizedExpression(n,t.inlineExpressions(e))):(e.push(n),n=t.inlineExpressions(e)):n=t.inlineExpressions(e)),n}function J(e){const t=q(u,e);return In.assertIsDefined(t),t!==e&&(u=void 0),t}function X(e,t,n){const r=q(t?e.pendingStaticInitializers:e.pendingInstanceInitializers,n);return r!==n&&(t?e.pendingStaticInitializers=void 0:e.pendingInstanceInitializers=void 0),r}function $(e){if(!e)return;const t=[];return xe(t,U(e.decorators,Y)),t}function Y(e){const n=rB(e.expression,b,uu);fI(n,3072);if(wS(EL(n))){const{target:e,thisArg:r}=t.createCallBinding(n,i,a,!0);return t.restoreOuterExpressions(n,t.createFunctionBindCall(e,r,[]))}return n}function Q(e,r,o,i,a,s,l){const c=t.createFunctionExpression(o,i,void 0,void 0,s,void 0,l??t.createBlock([]));lI(c,e),yI(c,qE(e)),fI(c,3072);const d="get"===a||"set"===a?a:void 0,u=t.createStringLiteralFromNode(r,void 0),p=n().createSetFunctionNameHelper(c,u,d),f=t.createPropertyAssignment(t.createIdentifier(a),p);return lI(f,e),yI(f,qE(e)),fI(f,3072),f}function Z(e,n){return t.createObjectLiteralExpression([Q(e,e.name,n,e.asteriskToken,"value",oB(e.parameters,b,bC),rB(e.body,b,BD))])}function ee(e,n){return t.createObjectLiteralExpression([Q(e,e.name,n,void 0,"get",[],rB(e.body,b,BD))])}function te(e,n){return t.createObjectLiteralExpression([Q(e,e.name,n,void 0,"set",oB(e.parameters,b,bC),rB(e.body,b,BD))])}function ne(e,n){return t.createObjectLiteralExpression([Q(e,e.name,n,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)))])),Q(e,e.name,n,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)),t.createIdentifier("value")))]))])}function re(e,n,r){return e=oB(e,(e=>dC(e)?e:void 0),vd),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("get")),t.createThis(),[]))]))}function oe(e,n,r){return e=oB(e,(e=>dC(e)?e:void 0),vd),t.createSetAccessorDeclaration(e,n,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function ie(e){return t.createBinaryExpression(t.createElementAccessExpression(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var aj=b({"src/compiler/transformers/esDecorators.ts"(){JJ()}});function sj(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:o,hoistVariableDeclaration:i}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),l=jp(s);let c,d,u,p,f,m=0;const _=[];let h=0;const g=e.onEmitNode,y=e.onSubstituteNode;return e.onEmitNode=function(e,t,n){if(1&c&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===t}(t)){const r=384&a.getNodeCheckFlags(t);if(r!==m){const o=m;return m=r,g(e,t,n),void(m=o)}}else if(c&&_[Hz(t)]){const r=m;return m=0,g(e,t,n),void(m=r)}g(e,t,n)},e.onSubstituteNode=function(e,n){if(n=y(e,n),1===e&&m)return function(e){switch(e.kind){case 211:return K(e);case 212:return q(e);case 213:return function(e){const n=e.expression;if(Ih(n)){const r=lD(n)?K(n):q(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n);return n},GB(e,(function(t){if(t.isDeclarationFile)return t;v(1,!1),v(2,!Hm(t,s));const n=fB(t,A,e);return wI(n,e.readEmitHelpers()),n}));function v(e,t){h=t?h|e:h&~e}function b(e){return 0!==(h&e)}function E(e,t,n){const r=e&~h;if(r){v(r,!0);const e=t(n);return v(r,!1),e}return t(n)}function S(t){return fB(t,A,e)}function T(t){switch(t.kind){case 218:case 262:case 174:case 177:case 178:case 176:return t;case 169:case 208:case 260:break;case 80:if(f&&a.isArgumentsLocalBinding(t))return f}return fB(t,T,e)}function A(n){if(0===(256&n.transformFlags))return f?T(n):n;switch(n.kind){case 134:return;case 223:return function(n){if(!b(1))return fB(n,A,e);return lI(yk(t.createYieldExpression(void 0,rB(n.expression,A,uu)),n),n)}(n);case 174:return E(3,C,n);case 262:return E(3,M,n);case 218:return E(3,L,n);case 219:return E(1,k,n);case 211:return u&&lD(n)&&108===n.expression.kind&&u.add(n.name.escapedText),fB(n,A,e);case 212:return u&&108===n.expression.kind&&(p=!0),fB(n,A,e);case 177:return E(3,D,n);case 178:return E(3,N,n);case 176:return E(3,R,n);case 263:case 231:return E(3,S,n);default:return fB(n,A,e)}}function I(n){if(hy(n))switch(n.kind){case 243:return function(n){if(w(n.declarationList)){const e=O(n.declarationList,!1);return e?t.createExpressionStatement(e):void 0}return fB(n,A,e)}(n);case 248:return function(n){const r=n.initializer;return t.updateForStatement(n,w(r)?O(r,!1):rB(n.initializer,A,Su),rB(n.condition,A,uu),rB(n.incrementor,A,uu),uB(n.statement,I,e))}(n);case 249:return function(n){return t.updateForInStatement(n,w(n.initializer)?O(n.initializer,!0):In.checkDefined(rB(n.initializer,A,Su)),In.checkDefined(rB(n.expression,A,uu)),uB(n.statement,I,e))}(n);case 250:return function(n){return t.updateForOfStatement(n,rB(n.awaitModifier,A,lC),w(n.initializer)?O(n.initializer,!0):In.checkDefined(rB(n.initializer,A,Su)),In.checkDefined(rB(n.expression,A,uu)),uB(n.statement,I,e))}(n);case 299:return function(t){const n=new Set;let r;if(P(t.variableDeclaration,n),n.forEach(((e,t)=>{d.has(t)&&(r||(r=new Set(d)),r.delete(t))})),r){const n=d;d=r;const o=fB(t,I,e);return d=n,o}return fB(t,I,e)}(n);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return fB(n,I,e);default:return In.assertNever(n,"Unhandled node.")}return A(n)}function R(n){const r=f;f=void 0;const o=t.updateConstructorDeclaration(n,oB(n.modifiers,A,vd),lB(n.parameters,A,e),B(n));return f=r,o}function C(n){let r;const o=Zy(n),i=f;f=void 0;const a=t.updateMethodDeclaration(n,oB(n.modifiers,A,Fd),n.asteriskToken,n.name,void 0,void 0,r=2&o?j(n):lB(n.parameters,A,e),void 0,2&o?V(n,r):B(n));return f=i,a}function D(n){const r=f;f=void 0;const o=t.updateGetAccessorDeclaration(n,oB(n.modifiers,A,Fd),n.name,lB(n.parameters,A,e),void 0,B(n));return f=r,o}function N(n){const r=f;f=void 0;const o=t.updateSetAccessorDeclaration(n,oB(n.modifiers,A,Fd),n.name,lB(n.parameters,A,e),B(n));return f=r,o}function M(n){let r;const o=f;f=void 0;const i=Zy(n),a=t.updateFunctionDeclaration(n,oB(n.modifiers,A,Fd),n.asteriskToken,n.name,void 0,r=2&i?j(n):lB(n.parameters,A,e),void 0,2&i?V(n,r):dB(n.body,A,e));return f=o,a}function L(n){let r;const o=f;f=void 0;const i=Zy(n),a=t.updateFunctionExpression(n,oB(n.modifiers,A,vd),n.asteriskToken,n.name,void 0,r=2&i?j(n):lB(n.parameters,A,e),void 0,2&i?V(n,r):dB(n.body,A,e));return f=o,a}function k(n){let r;const o=Zy(n);return t.updateArrowFunction(n,oB(n.modifiers,A,vd),void 0,r=2&o?j(n):lB(n.parameters,A,e),void 0,n.equalsGreaterThanToken,2&o?V(n,r):dB(n.body,A,e))}function P({name:e},t){if(nC(e))t.add(e.escapedText);else for(const n of e.elements)DD(n)||P(n,t)}function w(e){return!!e&&aN(e)&&!(7&e.flags)&&e.declarations.some(z)}function O(e,n){!function(e){x(e.declarations,F)}(e);const r=dS(e);return 0===r.length?n?rB(t.converters.convertToAssignmentElementTarget(e.declarations[0].name),A,uu):void 0:t.inlineExpressions(U(r,W))}function F({name:e}){if(nC(e))i(e);else for(const t of e.elements)DD(t)||F(t)}function W(e){const n=yI(t.createAssignment(t.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return In.checkDefined(rB(n,A,uu))}function z({name:e}){if(nC(e))return d.has(e.escapedText);for(const t of e.elements)if(!DD(t)&&z(t))return!0;return!1}function B(n){In.assertIsDefined(n.body);const r=u,o=p;u=new Set,p=!1;let i=dB(n.body,A,e);const s=Rl(n,Ad);if(l>=2&&384&a.getNodeCheckFlags(n)&&3!==(3&Zy(s))){if(H(),u.size){const e=lj(t,a,n,u);_[Hz(e)]=!0;const r=i.statements.slice();pm(r,[e]),i=t.updateBlock(i,r)}p&&(256&a.getNodeCheckFlags(n)?PI(i,DR):128&a.getNodeCheckFlags(n)&&PI(i,CR))}return u=r,p=o,i}function G(){In.assert(f);const e=t.createVariableDeclaration(f,void 0,void 0,t.createIdentifier("arguments")),n=t.createVariableStatement(void 0,[e]);return xL(n),mI(n,2097152),n}function j(n){if(hG(n.parameters))return lB(n.parameters,A,e);const r=[];for(const e of n.parameters){if(e.initializer||e.dotDotDotToken){if(219===n.kind){const e=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));r.push(e)}break}const o=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e.name,8));r.push(o)}const o=t.createNodeArray(r);return yk(o,n.parameters),o}function V(i,s){const c=hG(i.parameters)?void 0:lB(i.parameters,A,e);r();const m=Rl(i,Td).type,h=l<2?function(e){const t=e&&Nh(e);if(t&&bd(t)){const e=a.getTypeReferenceSerializationKind(t);if(1===e||0===e)return t}return}(m):void 0,g=219===i.kind,y=f,v=0!==(512&a.getNodeCheckFlags(i))&&!f;let E;if(v&&(f=t.createUniqueName("arguments")),c)if(g){const e=[];In.assert(s.length<=i.parameters.length);for(let n=0;n<i.parameters.length;n++){In.assert(n<s.length);const r=i.parameters[n],o=s[n];if(In.assertNode(o.name,nC),r.initializer||r.dotDotDotToken){In.assert(n===s.length-1),e.push(t.createSpreadElement(o.name));break}e.push(o.name)}E=t.createArrayLiteralExpression(e)}else E=t.createIdentifier("arguments");const S=d;d=new Set;for(const e of i.parameters)P(e,d);const T=u,x=p;g||(u=new Set,p=!1);const R=b(2);let C=BD(D=i.body)?t.updateBlock(D,oB(D.statements,I,wu,N)):t.converters.convertToFunctionBlock(In.checkDefined(rB(D,I,bu)));var D,N;let M;if(C=t.updateBlock(C,t.mergeLexicalEnvironment(C.statements,o())),g){if(M=n().createAwaiterHelper(R,E,h,c,C),v){const e=t.converters.convertToFunctionBlock(M);M=t.updateBlock(e,t.mergeLexicalEnvironment(e.statements,[G()]))}}else{const e=[];e.push(t.createReturnStatement(n().createAwaiterHelper(R,E,h,c,C)));const r=l>=2&&384&a.getNodeCheckFlags(i);if(r&&(H(),u.size)){const n=lj(t,a,i,u);_[Hz(n)]=!0,pm(e,[n])}v&&pm(e,[G()]);const o=t.createBlock(e,!0);yk(o,i.body),r&&p&&(256&a.getNodeCheckFlags(i)?PI(o,DR):128&a.getNodeCheckFlags(i)&&PI(o,CR)),M=o}return d=S,g||(u=T,p=x,f=y),M}function H(){0===(1&c)&&(c|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function K(e){return 108===e.expression.kind?yk(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function q(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,yk(256&m?t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),"value"):t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),r)):e;var n,r}}function lj(e,t,n,r){const o=0!==(256&t.getNodeCheckFlags(n)),i=[];return r.forEach(((t,n)=>{const r=Ll(n),a=[];a.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,fI(e.createPropertyAccessExpression(fI(e.createSuper(),8),r),8)))),o&&a.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(fI(e.createPropertyAccessExpression(fI(e.createSuper(),8),r),8),e.createIdentifier("v"))))),i.push(e.createPropertyAssignment(r,e.createObjectLiteralExpression(a)))})),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(i,!0)]))],2))}var cj=b({"src/compiler/transformers/es2017.ts"(){JJ()}});function dj(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:o,hoistVariableDeclaration:i}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),l=jp(s),c=e.onEmitNode;e.onEmitNode=function(e,t,n){if(1&u&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===t}(t)){const r=384&a.getNodeCheckFlags(t);if(r!==v){const o=v;return v=r,c(e,t,n),void(v=o)}}else if(u&&E[Hz(t)]){const r=v;return v=0,c(e,t,n),void(v=r)}c(e,t,n)};const d=e.onSubstituteNode;e.onSubstituteNode=function(e,n){if(n=d(e,n),1===e&&v)return function(e){switch(e.kind){case 211:return X(e);case 212:return $(e);case 213:return function(e){const n=e.expression;if(Ih(n)){const r=lD(n)?X(n):$(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n);return n};let u,p,f,m,_,h,g,y=!1,v=0,b=0;const E=[];return GB(e,(function(n){if(n.isDeclarationFile)return n;m=n;const r=function(n){const r=S(2,Hm(n,s)?0:1);y=!1;const o=fB(n,A,e),i=ce(o.statements,_&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(_))]),a=t.updateSourceFile(o,yk(t.createNodeArray(i),n.statements));return T(r),a}(n);return wI(r,e.readEmitHelpers()),m=void 0,_=void 0,r}));function S(e,t){const n=b;return b=3&(b&~e|t),n}function T(e){b=e}function x(e){_=Ee(_,t.createVariableDeclaration(e))}function A(e){return N(e,!1)}function I(e){return N(e,!0)}function R(e){if(134!==e.kind)return e}function C(e,t,n,r){if(function(e,t){return b!==(b&~e|t)}(n,r)){const o=S(n,r),i=e(t);return T(o),i}return e(t)}function D(t){return fB(t,A,e)}function N(r,o){if(0===(128&r.transformFlags))return r;switch(r.kind){case 223:return function(r){if(2&p&&1&p)return lI(yk(t.createYieldExpression(void 0,n().createAwaitHelper(rB(r.expression,A,uu))),r),r);return fB(r,A,e)}(r);case 229:return function(r){if(2&p&&1&p){if(r.asteriskToken){const e=rB(In.checkDefined(r.expression),A,uu);return lI(yk(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(r,r.asteriskToken,yk(n().createAsyncDelegatorHelper(yk(n().createAsyncValuesHelper(e),e)),e)))),r),r)}return lI(yk(t.createYieldExpression(void 0,P(r.expression?rB(r.expression,A,uu):t.createVoidZero())),r),r)}return fB(r,A,e)}(r);case 253:return function(n){if(2&p&&1&p)return t.updateReturnStatement(n,P(n.expression?rB(n.expression,A,uu):t.createVoidZero()));return fB(n,A,e)}(r);case 256:return function(n){if(2&p){const e=nh(n);return 250===e.kind&&e.awaitModifier?k(e,n):t.restoreEnclosingLabel(rB(e,A,wu,t.liftToBlock),n)}return fB(n,A,e)}(r);case 210:return function(r){if(65536&r.transformFlags){const e=function(e){let n;const r=[];for(const o of e)if(305===o.kind){n&&(r.push(t.createObjectLiteralExpression(n)),n=void 0);const e=o.expression;r.push(rB(e,A,uu))}else n=Ee(n,303===o.kind?t.createPropertyAssignment(o.name,rB(o.initializer,A,uu)):rB(o,A,Bd));n&&r.push(t.createObjectLiteralExpression(n));return r}(r.properties);e.length&&210!==e[0].kind&&e.unshift(t.createObjectLiteralExpression());let o=e[0];if(e.length>1){for(let t=1;t<e.length;t++)o=n().createAssignHelper([o,e[t]]);return o}return n().createAssignHelper(e)}return fB(r,A,e)}(r);case 226:return function(n,r){if(vE(n)&&hk(n.left))return vG(n,A,e,1,!r);if(28===n.operatorToken.kind)return t.updateBinaryExpression(n,rB(n.left,I,uu),n.operatorToken,rB(n.right,r?I:A,uu));return fB(n,A,e)}(r,o);case 361:return function(n,r){if(r)return fB(n,I,e);let o;for(let e=0;e<n.elements.length;e++){const t=n.elements[e],r=rB(t,e<n.elements.length-1?I:A,uu);(o||r!==t)&&(o||(o=n.elements.slice(0,e)),o.push(r))}const i=o?yk(t.createNodeArray(o),n.elements):n.elements;return t.updateCommaListExpression(n,i)}(r,o);case 299:return function(n){if(n.variableDeclaration&&Vd(n.variableDeclaration.name)&&65536&n.variableDeclaration.name.transformFlags){const r=t.getGeneratedNameForNode(n.variableDeclaration.name),o=SG(t.updateVariableDeclaration(n.variableDeclaration,n.variableDeclaration.name,void 0,void 0,r),A,e,1);let i=rB(n.block,A,BD);return se(o)&&(i=t.updateBlock(i,[t.createVariableStatement(void 0,o),...i.statements])),t.updateCatchClause(n,t.updateVariableDeclaration(n.variableDeclaration,r,void 0,void 0,void 0),i)}return fB(n,A,e)}(r);case 243:return function(t){if(Gb(t,32)){const n=y;y=!0;const r=fB(t,A,e);return y=n,r}return fB(t,A,e)}(r);case 260:return function(e){if(y){const t=y;y=!1;const n=M(e,!0);return y=t,n}return M(e,!1)}(r);case 246:case 247:case 249:return C(D,r,0,2);case 250:return k(r,void 0);case 248:return C(L,r,0,2);case 222:case 244:return function(t){return fB(t,I,e)}(r);case 176:return C(W,r,2,1);case 174:return C(G,r,2,1);case 177:return C(z,r,2,1);case 178:return C(B,r,2,1);case 262:return C(j,r,2,1);case 218:return C(U,r,2,1);case 219:return C(V,r,2,0);case 169:return O(r);case 217:return function(t,n){return fB(t,n?I:A,e)}(r,o);case 215:return function(t){return HG(e,t,A,m,x,0)}(r);case 211:return h&&lD(r)&&108===r.expression.kind&&h.add(r.name.escapedText),fB(r,A,e);case 212:return h&&108===r.expression.kind&&(g=!0),fB(r,A,e);case 263:case 231:return C(D,r,2,1);default:return fB(r,A,e)}}function M(t,n){return Vd(t.name)&&65536&t.name.transformFlags?SG(t,A,e,1,void 0,n):fB(t,A,e)}function L(n){return t.updateForStatement(n,rB(n.initializer,I,Su),rB(n.condition,A,uu),rB(n.incrementor,I,uu),uB(n.statement,A,e))}function k(r,o){const a=S(0,2);(65536&r.initializer.transformFlags||Ud(r.initializer)&&hk(r.initializer))&&(r=function(e){const n=Ty(e.initializer);if(aN(n)||Ud(n)){let r,o;const i=t.createTempVariable(void 0),a=[oL(t,n,i)];return BD(e.statement)?(xe(a,e.statement.statements),r=e.statement,o=e.statement.statements):e.statement&&(Ee(a,e.statement),r=e.statement,o=e.statement),t.updateForOfStatement(e,e.awaitModifier,yk(t.createVariableDeclarationList([yk(t.createVariableDeclaration(i),e.initializer)],1),e.initializer),e.expression,yk(t.createBlock(yk(t.createNodeArray(a),o),!0),r))}return e}(r));const s=r.awaitModifier?function(r,o,a){const s=rB(r.expression,A,uu),l=nC(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),c=nC(s)?t.getGeneratedNameForNode(l):t.createTempVariable(void 0),d=t.createTempVariable(void 0),u=t.createTempVariable(i),p=t.createUniqueName("e"),f=t.getGeneratedNameForNode(p),m=t.createTempVariable(void 0),_=yk(n().createAsyncValuesHelper(s),r.expression),h=t.createCallExpression(t.createPropertyAccessExpression(l,"next"),void 0,[]),g=t.createPropertyAccessExpression(c,"done"),y=t.createPropertyAccessExpression(c,"value"),v=t.createFunctionCallCall(m,l,[]);i(p),i(m);const b=2&a?t.inlineExpressions([t.createAssignment(p,t.createVoidZero()),_]):_,E=fI(yk(t.createForStatement(fI(yk(t.createVariableDeclarationList([t.createVariableDeclaration(d,void 0,void 0,t.createTrue()),yk(t.createVariableDeclaration(l,void 0,void 0,b),r.expression),t.createVariableDeclaration(c)]),r.expression),4194304),t.inlineExpressions([t.createAssignment(c,P(h)),t.createAssignment(u,g),t.createLogicalNot(u)]),t.createAssignment(d,t.createTrue()),function(n,r,o){const a=t.createTempVariable(i),s=t.createAssignment(a,r),l=t.createExpressionStatement(s);yI(l,n.expression);const c=t.createAssignment(o,t.createFalse()),d=t.createExpressionStatement(c);yI(d,n.expression);const u=[l,d],p=oL(t,n.initializer,a);let f,m;u.push(rB(p,A,wu));const _=uB(n.statement,A,e);BD(_)?(xe(u,_.statements),f=_,m=_.statements):u.push(_);return yk(t.createBlock(yk(t.createNodeArray(u),m),!0),f)}(r,y,d)),r),512);return lI(E,r),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(E,o)]),t.createCatchClause(t.createVariableDeclaration(f),fI(t.createBlock([t.createExpressionStatement(t.createAssignment(p,t.createObjectLiteralExpression([t.createPropertyAssignment("error",f)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([fI(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(d),t.createLogicalNot(u)),t.createAssignment(m,t.createPropertyAccessExpression(l,"return"))),t.createExpressionStatement(P(v))),1)]),void 0,fI(t.createBlock([fI(t.createIfStatement(p,t.createThrowStatement(t.createPropertyAccessExpression(p,"error"))),1)]),1))]))}(r,o,a):t.restoreEnclosingLabel(fB(r,A,e),o);return T(a),s}function P(e){return 1&p?t.createYieldExpression(void 0,n().createAwaitHelper(e)):t.createAwaitExpression(e)}function w(e){return In.assertNode(e,bC),O(e)}function O(n){return(null==f?void 0:f.has(n))?t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,Vd(n.name)?t.getGeneratedNameForNode(n):n.name,void 0,void 0,void 0):65536&n.transformFlags?t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,t.getGeneratedNameForNode(n),void 0,void 0,rB(n.initializer,A,uu)):fB(n,A,e)}function F(e){let t;for(const n of e.parameters)t?t.add(n):65536&n.transformFlags&&(t=new Set);return t}function W(n){const r=p,o=f;p=Zy(n),f=F(n);const i=t.updateConstructorDeclaration(n,n.modifiers,lB(n.parameters,w,e),q(n));return p=r,f=o,i}function z(n){const r=p,o=f;p=Zy(n),f=F(n);const i=t.updateGetAccessorDeclaration(n,n.modifiers,rB(n.name,A,Ed),lB(n.parameters,w,e),void 0,q(n));return p=r,f=o,i}function B(n){const r=p,o=f;p=Zy(n),f=F(n);const i=t.updateSetAccessorDeclaration(n,n.modifiers,rB(n.name,A,Ed),lB(n.parameters,w,e),q(n));return p=r,f=o,i}function G(n){const r=p,o=f;p=Zy(n),f=F(n);const i=t.updateMethodDeclaration(n,1&p?oB(n.modifiers,R,Fd):n.modifiers,2&p?void 0:n.asteriskToken,rB(n.name,A,Ed),rB(void 0,A,QR),void 0,2&p&&1&p?H(n):lB(n.parameters,w,e),void 0,2&p&&1&p?K(n):q(n));return p=r,f=o,i}function j(n){const r=p,o=f;p=Zy(n),f=F(n);const i=t.updateFunctionDeclaration(n,1&p?oB(n.modifiers,R,vd):n.modifiers,2&p?void 0:n.asteriskToken,n.name,void 0,2&p&&1&p?H(n):lB(n.parameters,w,e),void 0,2&p&&1&p?K(n):q(n));return p=r,f=o,i}function V(n){const r=p,o=f;p=Zy(n),f=F(n);const i=t.updateArrowFunction(n,n.modifiers,void 0,lB(n.parameters,w,e),void 0,n.equalsGreaterThanToken,q(n));return p=r,f=o,i}function U(n){const r=p,o=f;p=Zy(n),f=F(n);const i=t.updateFunctionExpression(n,1&p?oB(n.modifiers,R,vd):n.modifiers,2&p?void 0:n.asteriskToken,n.name,void 0,2&p&&1&p?H(n):lB(n.parameters,w,e),void 0,2&p&&1&p?K(n):q(n));return p=r,f=o,i}function H(n){if(hG(n.parameters))return lB(n.parameters,A,e);const r=[];for(const e of n.parameters){if(e.initializer||e.dotDotDotToken)break;const n=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e.name,8));r.push(n)}const o=t.createNodeArray(r);return yk(o,n.parameters),o}function K(i){const s=hG(i.parameters)?void 0:lB(i.parameters,A,e);r();const c=h,d=g;h=new Set,g=!1;const p=[];let f=t.updateBlock(i.body,oB(i.body.statements,A,wu));f=t.updateBlock(f,t.mergeLexicalEnvironment(f.statements,J(o(),i)));const m=t.createReturnStatement(n().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(42),i.name&&t.getGeneratedNameForNode(i.name),void 0,s??[],void 0,f),!!(1&b))),_=l>=2&&384&a.getNodeCheckFlags(i);if(_){0===(1&u)&&(u|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243));const n=lj(t,a,i,h);E[Hz(n)]=!0,pm(p,[n])}p.push(m);const y=t.updateBlock(i.body,p);return _&&g&&(256&a.getNodeCheckFlags(i)?PI(y,DR):128&a.getNodeCheckFlags(i)&&PI(y,CR)),h=c,g=d,y}function q(e){r();let n=0;const i=[],a=rB(e.body,A,bu)??t.createBlock([]);BD(a)&&(n=t.copyPrologue(a.statements,i,!1,A)),xe(i,J(void 0,e));const s=o();if(n>0||se(i)||se(s)){const e=t.converters.convertToFunctionBlock(a,!0);return pm(i,s),xe(i,e.statements.slice(n)),t.updateBlock(e,yk(t.createNodeArray(i),e.statements))}return a}function J(n,r){let o=!1;for(const i of r.parameters)if(o){if(Vd(i.name)){if(i.name.elements.length>0){const r=SG(i,A,e,0,t.getGeneratedNameForNode(i));if(se(r)){const e=t.createVariableDeclarationList(r),o=t.createVariableStatement(void 0,e);fI(o,2097152),n=Ee(n,o)}}else if(i.initializer){const e=t.getGeneratedNameForNode(i),r=rB(i.initializer,A,uu),o=t.createAssignment(e,r),a=t.createExpressionStatement(o);fI(a,2097152),n=Ee(n,a)}}else if(i.initializer){const e=t.cloneNode(i.name);yk(e,i.name),fI(e,96);const r=rB(i.initializer,A,uu);mI(r,3168);const o=t.createAssignment(e,r);yk(o,i),fI(o,3072);const a=t.createBlock([t.createExpressionStatement(o)]);yk(a,i),fI(a,3905);const s=t.createTypeCheck(t.cloneNode(i.name),"undefined"),l=t.createIfStatement(s,a);xL(l),yk(l,i),fI(l,2101056),n=Ee(n,l)}}else if(65536&i.transformFlags){o=!0;const r=SG(i,A,e,1,t.getGeneratedNameForNode(i),!1,!0);if(se(r)){const e=t.createVariableDeclarationList(r),o=t.createVariableStatement(void 0,e);fI(o,2097152),n=Ee(n,o)}}return n}function X(e){return 108===e.expression.kind?yk(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function $(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,yk(256&v?t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),"value"):t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),r)):e;var n,r}}var uj=b({"src/compiler/transformers/es2018.ts"(){JJ()}});function pj(e){const t=e.factory;return GB(e,(function(t){if(t.isDeclarationFile)return t;return fB(t,n,e)}));function n(r){return 0===(64&r.transformFlags)?r:299===r.kind?function(r){if(!r.variableDeclaration)return t.updateCatchClause(r,t.createVariableDeclaration(t.createTempVariable(void 0)),rB(r.block,n,BD));return fB(r,n,e)}(r):fB(r,n,e)}}var fj=b({"src/compiler/transformers/es2019.ts"(){JJ()}});function mj(e){const{factory:t,hoistVariableDeclaration:n}=e;return GB(e,(function(t){if(t.isDeclarationFile)return t;return fB(t,r,e)}));function r(o){if(0===(32&o.transformFlags))return o;switch(o.kind){case 213:{const e=i(o,!1);return In.assertNotNode(e,PN),e}case 211:case 212:if(wc(o)){const e=s(o,!1,!1);return In.assertNotNode(e,PN),e}return fB(o,r,e);case 226:return 61===o.operatorToken.kind?function(e){let o=rB(e.left,r,uu),i=o;JB(o)||(i=t.createTempVariable(n),o=t.createAssignment(i,o));return yk(t.createConditionalExpression(l(o,i),void 0,i,void 0,rB(e.right,r,uu)),e)}(o):fB(o,r,e);case 220:return function(e){return wc(Ty(e.expression))?lI(a(e.expression,!1,!0),e):t.updateDeleteExpression(e,rB(e.expression,r,uu))}(o);default:return fB(o,r,e)}}function o(e,n,r){const o=a(e.expression,n,r);return PN(o)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(e,o.expression),o.thisArg):t.updateParenthesizedExpression(e,o)}function i(n,i){if(wc(n))return s(n,i,!1);if(mD(n.expression)&&wc(Ty(n.expression))){const e=o(n.expression,!0,!1),i=oB(n.arguments,r,uu);return PN(e)?yk(t.createFunctionCallCall(e.expression,e.thisArg,i),n):t.updateCallExpression(n,e,void 0,i)}return fB(n,r,e)}function a(e,a,l){switch(e.kind){case 217:return o(e,a,l);case 211:case 212:return function(e,o,i){if(wc(e))return s(e,o,i);let a,l=rB(e.expression,r,uu);return In.assertNotNode(l,PN),o&&(JB(l)?a=l:(a=t.createTempVariable(n),l=t.createAssignment(a,l))),l=211===e.kind?t.updatePropertyAccessExpression(e,l,rB(e.name,r,nC)):t.updateElementAccessExpression(e,l,rB(e.argumentExpression,r,uu)),a?t.createSyntheticReferenceExpression(l,a):l}(e,a,l);case 213:return i(e,a);default:return rB(e,r,uu)}}function s(e,o,i){const{expression:s,chain:c}=function(e){In.assertNotNode(e,jc);const t=[e];for(;!e.questionDotToken&&!pD(e);)e=vt(Gc(e.expression),wc),In.assertNotNode(e,jc),t.unshift(e);return{expression:e.expression,chain:t}}(e),d=a(Gc(s),Pc(c[0]),!1);let u=PN(d)?d.thisArg:void 0,p=PN(d)?d.expression:d,f=t.restoreOuterExpressions(s,p,8);JB(p)||(p=t.createTempVariable(n),f=t.createAssignment(p,f));let m,_=p;for(let a=0;a<c.length;a++){const e=c[a];switch(e.kind){case 211:case 212:a===c.length-1&&o&&(JB(_)?m=_:(m=t.createTempVariable(n),_=t.createAssignment(m,_))),_=211===e.kind?t.createPropertyAccessExpression(_,rB(e.name,r,nC)):t.createElementAccessExpression(_,rB(e.argumentExpression,r,uu));break;case 213:0===a&&u?(ud(u)||(u=t.cloneNode(u),mI(u,3072)),_=t.createFunctionCallCall(_,108===u.kind?t.createThis():u,oB(e.arguments,r,uu))):_=t.createCallExpression(_,void 0,oB(e.arguments,r,uu))}lI(_,e)}const h=i?t.createConditionalExpression(l(f,p,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(_)):t.createConditionalExpression(l(f,p,!0),void 0,t.createVoidZero(),void 0,_);return yk(h,e),m?t.createSyntheticReferenceExpression(h,m):h}function l(e,n,r){return t.createBinaryExpression(t.createBinaryExpression(e,t.createToken(r?37:38),t.createNull()),t.createToken(r?57:56),t.createBinaryExpression(n,t.createToken(r?37:38),t.createVoidZero()))}}var _j=b({"src/compiler/transformers/es2020.ts"(){JJ()}});function hj(e){const{hoistVariableDeclaration:t,factory:n}=e;return GB(e,(function(t){if(t.isDeclarationFile)return t;return fB(t,r,e)}));function r(o){return 0===(16&o.transformFlags)?o:uE(o)?function(e){const o=YB(e.operatorToken.kind);let i=Ty(rB(e.left,r,iu)),a=i;const s=Ty(rB(e.right,r,uu));if(wS(i)){const e=JB(i.expression),r=e?i.expression:n.createTempVariable(t),o=e?i.expression:n.createAssignment(r,i.expression);if(lD(i))a=n.createPropertyAccessExpression(r,i.name),i=n.createPropertyAccessExpression(o,i.name);else{const e=JB(i.argumentExpression),s=e?i.argumentExpression:n.createTempVariable(t);a=n.createElementAccessExpression(r,s),i=n.createElementAccessExpression(o,e?i.argumentExpression:n.createAssignment(s,i.argumentExpression))}}return n.createBinaryExpression(i,o,n.createParenthesizedExpression(n.createAssignment(a,s)))}(o):fB(o,r,e)}}var gj=b({"src/compiler/transformers/es2021.ts"(){JJ()}});function yj(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,startLexicalEnvironment:o,endLexicalEnvironment:i}=e;let a,s,l,c;return GB(e,(function(t){if(t.isDeclarationFile)return t;const n=rB(t,d,rM);return wI(n,e.readEmitHelpers()),s=void 0,a=void 0,l=void 0,n}));function d(n){if(0===(4&n.transformFlags))return n;switch(n.kind){case 312:return function(n){const r=Tj(n.statements);if(r){o(),a=new OB,s=[];const e=vj(n.statements),l=[];xe(l,iB(n.statements,d,wu,0,e));let p=e;for(;p<n.statements.length;){if(0!==Sj(n.statements[p])){p>e&&xe(l,oB(n.statements,d,wu,e,p-e));break}p++}In.assert(p<n.statements.length,"Should have encountered at least one 'using' statement.");const f=_(),m=u(n.statements,p,n.statements.length,f,l);return a.size&&Ee(l,t.createExportDeclaration(void 0,!1,t.createNamedExports(Ye(a.values())))),xe(l,i()),s.length&&l.push(t.createVariableStatement(t.createModifiersFromModifierFlags(32),t.createVariableDeclarationList(s,1))),xe(l,h(m,f,2===r)),c&&l.push(t.createExportAssignment(void 0,!0,c)),t.updateSourceFile(n,l)}return fB(n,d,e)}(n);case 241:return function(n){const r=Tj(n.statements);if(r){const e=vj(n.statements),o=_();return t.updateBlock(n,[...iB(n.statements,d,wu,0,e),...h(u(n.statements,e,n.statements.length,o,void 0),o,2===r)])}return fB(n,d,e)}(n);case 248:return function(n){if(n.initializer&&bj(n.initializer))return rB(t.createBlock([t.createVariableStatement(void 0,n.initializer),t.updateForStatement(n,void 0,n.condition,n.incrementor,n.statement)]),d,wu);return fB(n,d,e)}(n);case 250:return function(n){if(bj(n.initializer)){const e=n.initializer;In.assertNode(e,bj),In.assert(1===e.declarations.length,"ForInitializer may only have one declaration");const r=e.declarations[0];In.assert(!r.initializer,"ForInitializer may not have an initializer");const o=2===Ej(e),i=t.getGeneratedNameForNode(r.name),a=t.updateVariableDeclaration(r,r.name,void 0,void 0,i),s=t.createVariableDeclarationList([a],o?6:4),l=t.createVariableStatement(void 0,s);return rB(t.updateForOfStatement(n,n.awaitModifier,t.createVariableDeclarationList([t.createVariableDeclaration(i)],2),n.expression,BD(n.statement)?t.updateBlock(n.statement,[l,...n.statement.statements]):t.createBlock([l,n.statement],!0)),d,wu)}return fB(n,d,e)}(n);case 255:return function(n){const r=function(e){let t=0;for(const n of e){const e=Tj(n.statements);if(2===e)return 2;e>t&&(t=e)}return t}(n.caseBlock.clauses);if(r){const o=_();return h([t.updateSwitchStatement(n,rB(n.expression,d,uu),t.updateCaseBlock(n.caseBlock,n.caseBlock.clauses.map((n=>function(n,r){if(0!==Tj(n.statements))return JN(n)?t.updateCaseClause(n,rB(n.expression,d,uu),u(n.statements,0,n.statements.length,r,void 0)):t.updateDefaultClause(n,u(n.statements,0,n.statements.length,r,void 0));return fB(n,d,e)}(n,o)))))],o,2===r)}return fB(n,d,e)}(n);default:return fB(n,d,e)}}function u(o,i,a,s,u){const _=[];for(let r=i;r<a;r++){const i=o[r],a=Sj(i);if(a){In.assertNode(i,GD);const r=[];for(let o of i.declarationList.declarations){if(!nC(o.name)){r.length=0;break}gv(o)&&(o=jG(e,o));const i=rB(o.initializer,d,uu)??t.createVoidZero();r.push(t.updateVariableDeclaration(o,o.name,void 0,void 0,n().createAddDisposableResourceHelper(s,i,2===a)))}if(r.length){const e=t.createVariableDeclarationList(r,2);lI(e,i.declarationList),yk(e,i.declarationList),h(t.updateVariableStatement(i,void 0,e));continue}}const l=d(i);mt(l)?l.forEach(h):l&&h(l)}return _;function h(n){In.assertNode(n,wu),Ee(_,function(n){if(!u)return n;switch(n.kind){case 272:case 271:case 278:case 262:return function(e,t){return void t.push(e)}(n,u);case 277:return function(n){return n.isExportEquals?function(e){if(c)return e;c=t.createUniqueName("_default",56),r(c);const n=t.createAssignment(c,e.expression);return t.createExpressionStatement(n)}(n):function(n){if(l)return n;l=t.createUniqueName("_default",56),m(l,!0,"default",n);let r=n.expression,o=EL(r);gv(o)&&(o=jG(e,o,!1,"default"),r=t.restoreOuterExpressions(r,o));const i=t.createAssignment(l,r);return t.createExpressionStatement(i)}(n)}(n);case 263:return function(n){if(!n.name&&l)return n;const r=Gb(n,32),o=Gb(n,2048);let i=t.converters.convertToClassExpression(n);n.name&&(m(t.getLocalName(n),r&&!o,void 0,n),i=t.createAssignment(t.getDeclarationName(n),i),gv(i)&&(i=jG(e,i,!1)),lI(i,n),yI(i,n),xI(i,n));o&&!l&&(l=t.createUniqueName("_default",56),m(l,!0,"default",n),i=t.createAssignment(l,i),gv(i)&&(i=jG(e,i,!1,"default")),lI(i,n));return t.createExpressionStatement(i)}(n);case 243:return function(e){let n;const r=Gb(e,32);for(const t of e.declarationList.declarations)f(t,r,t),t.initializer&&(n=Ee(n,p(t)));if(n){const r=t.createExpressionStatement(t.inlineExpressions(n));return lI(r,e),xI(r,e),yI(r,e),r}return}(n)}return n}(n))}}function p(e){let n;In.assertIsDefined(e.initializer),nC(e.name)?(n=t.cloneNode(e.name),fI(n,-114689&Rm(n))):n=t.converters.convertToAssignmentPattern(e.name);const r=t.createAssignment(n,e.initializer);return lI(r,e),xI(r,e),yI(r,e),r}function f(e,t,n){if(Vd(e.name))for(const r of e.name.elements)DD(r)||f(r,t,n);else m(e.name,t,void 0,n)}function m(e,n,o,i){const l=ud(e)?e:t.cloneNode(e);if(n){if(void 0===o&&!uL(l)){const e=t.createVariableDeclaration(l);return i&&lI(e,i),void s.push(e)}const e=void 0!==o?l:void 0,n=void 0!==o?o:l,r=t.createExportSpecifier(!1,e,n);i&&lI(r,i),a.set(l,r)}r(l)}function _(){return t.createUniqueName("env")}function h(e,r,o){const i=[],a=t.createObjectLiteralExpression([t.createPropertyAssignment("stack",t.createArrayLiteralExpression()),t.createPropertyAssignment("error",t.createVoidZero()),t.createPropertyAssignment("hasError",t.createFalse())]),s=t.createVariableDeclaration(r,void 0,void 0,a),l=t.createVariableDeclarationList([s],2),c=t.createVariableStatement(void 0,l);i.push(c);const d=t.createBlock(e,!0),u=t.createUniqueName("e"),p=t.createCatchClause(u,t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(r,"error"),u)),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(r,"hasError"),t.createTrue()))],!0));let f;if(o){const e=t.createUniqueName("result");f=t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n().createDisposeResourcesHelper(r))],2)),t.createIfStatement(e,t.createExpressionStatement(t.createAwaitExpression(e)))],!0)}else f=t.createBlock([t.createExpressionStatement(n().createDisposeResourcesHelper(r))],!0);const m=t.createTryStatement(d,p,f);return i.push(m),i}}function vj(e){for(let t=0;t<e.length;t++)if(!w_(e[t])&&!O_(e[t]))return t;return 0}function bj(e){return aN(e)&&0!==Ej(e)}function Ej(e){return 6===(7&e.flags)?2:4===(7&e.flags)?1:0}function Sj(e){return GD(e)?Ej(e.declarationList):0}function Tj(e){let t=0;for(const n of e){const e=Sj(n);if(2===e)return 2;e>t&&(t=e)}return t}var xj,Aj=b({"src/compiler/transformers/esnext.ts"(){JJ()}});function Ij(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getCompilerOptions();let i,a;return GB(e,(function(n){if(n.isDeclarationFile)return n;i=n,a={},a.importSpecifier=kT(r,n);let o=fB(n,d,e);wI(o,e.readEmitHelpers());let s=o.statements;a.filenameDeclaration&&(s=_m(s.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([a.filenameDeclaration],2))));if(a.utilizedImplicitRuntimeImports)for(const[e,r]of Ye(a.utilizedImplicitRuntimeImports.entries()))if(uP(n)){const n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Ye(r.values()))),t.createStringLiteral(e),void 0);Hx(n,!1),s=_m(s.slice(),n)}else if(T_(n)){const n=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Ye(r.values(),(e=>t.createBindingElement(void 0,e.propertyName,e.name)))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(e)]))],2));Hx(n,!1),s=_m(s.slice(),n)}s!==o.statements&&(o=t.updateSourceFile(o,s));return a=void 0,o}));function s(){if(a.filenameDeclaration)return a.filenameDeclaration.name;const e=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(i.fileName));return a.filenameDeclaration=e,a.filenameDeclaration.name}function l(e){const t=function(e){return 5===r.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return c(t)}function c(e){var n,o;const i="createElement"===e?a.importSpecifier:PT(a.importSpecifier,r),s=null==(o=null==(n=a.utilizedImplicitRuntimeImports)?void 0:n.get(i))?void 0:o.get(e);if(s)return s.name;a.utilizedImplicitRuntimeImports||(a.utilizedImplicitRuntimeImports=new Map);let l=a.utilizedImplicitRuntimeImports.get(i);l||(l=new Map,a.utilizedImplicitRuntimeImports.set(i,l));const c=t.createUniqueName(`_${e}`,112),d=t.createImportSpecifier(!1,t.createIdentifier(e),c);return JI(c,d),l.set(e,d),c}function d(t){return 2&t.transformFlags?function(t){switch(t.kind){case 284:return m(t,!1);case 285:return _(t,!1);case 288:return h(t,!1);case 294:return N(t);default:return fB(t,d,e)}}(t):t}function u(e){switch(e.kind){case 12:return function(e){const n=function(e){let t,n=0,r=-1;for(let o=0;o<e.length;o++){const i=e.charCodeAt(o);ys(i)?(-1!==n&&-1!==r&&(t=R(t,e.substr(n,r-n+1))),n=-1):gs(i)||(r=o,-1===n&&(n=o))}return-1!==n?R(t,e.substr(n)):t}(e.text);return void 0===n?void 0:t.createStringLiteral(n)}(e);case 294:return N(e);case 284:return m(e,!0);case 285:return _(e,!0);case 288:return h(e,!0);default:return In.failBadSyntaxKind(e)}}function p(e){return e.properties.some((e=>QN(e)&&(nC(e.name)&&"__proto__"===kl(e.name)||zR(e.name)&&"__proto__"===e.name.text)))}function f(e){return void 0===a.importSpecifier||function(e){let t=!1;for(const n of e.attributes.properties)if(!HN(n)||sD(n.expression)&&!n.expression.properties.some(eM)){if(t&&VN(n)&&nC(n.name)&&"key"===n.name.escapedText)return!0}else t=!0;return!1}(e)}function m(e,t){return(f(e.openingElement)?b:y)(e.openingElement,e.children,t,e)}function _(e,t){return(f(e)?b:y)(e,void 0,t,e)}function h(e,t){return(void 0===a.importSpecifier?S:E)(e.openingFragment,e.children,t,e)}function g(e){const n=Nv(e);if(1===T(n)&&!n[0].dotDotDotToken){const e=u(n[0]);return e&&t.createPropertyAssignment("children",e)}const r=Z(e,u);return T(r)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(r)):void 0}function y(e,n,r,i){const a=D(e),s=n&&n.length?g(n):void 0,l=L(e.attributes.properties,(e=>!!e.name&&nC(e.name)&&"key"===e.name.escapedText)),c=l?G(e.attributes.properties,(e=>e!==l)):e.attributes.properties;return v(a,T(c)?x(c,s):t.createObjectLiteralExpression(s?[s]:o),l,n||o,r,i)}function v(e,n,o,a,c,d){var u;const p=Nv(a),f=T(p)>1||!!(null==(u=p[0])?void 0:u.dotDotDotToken),m=[e,n];if(o&&m.push(I(o.initializer)),5===r.jsx){const e=Rl(i);if(e&&rM(e)){void 0===o&&m.push(t.createVoidZero()),m.push(f?t.createTrue():t.createFalse());const n=_s(e,d.pos);m.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",s()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(n.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(n.character+1))])),m.push(t.createThis())}}const _=yk(t.createCallExpression(l(f),void 0,m),d);return c&&xL(_),_}function b(n,o,s,l){const d=D(n),p=n.attributes.properties,f=T(p)?x(p):t.createNull(),m=void 0===a.importSpecifier?tL(t,e.getEmitResolver().getJsxFactoryEntity(i),r.reactNamespace,n):c("createElement"),_=nL(t,m,d,f,Z(o,u),l);return s&&xL(_),_}function E(e,n,r,o){let i;if(n&&n.length){const e=function(e){const n=g(e);return n&&t.createObjectLiteralExpression([n])}(n);e&&(i=e)}return v(c("Fragment"),i||t.createObjectLiteralExpression([]),void 0,n,r,o)}function S(n,o,a,s){const l=rL(t,e.getEmitResolver().getJsxFactoryEntity(i),e.getEmitResolver().getJsxFragmentFactoryEntity(i),r.reactNamespace,Z(o,u),n,s);return a&&xL(l),l}function x(e,o){const i=jp(r);return i&&i>=5?t.createObjectLiteralExpression(function(e,n){const r=q(ie(e,HN,((e,n)=>q(U(e,(e=>{return n?sD((r=e).expression)&&!p(r.expression)?K(r.expression.properties,(e=>In.checkDefined(rB(e,d,Bd)))):t.createSpreadAssignment(In.checkDefined(rB(r.expression,d,uu))):A(e);var r}))))));n&&r.push(n);return r}(e,o)):function(e,r){const o=[];let i=[];for(const t of e)if(HN(t)){if(sD(t.expression)&&!p(t.expression)){for(const e of t.expression.properties)eM(e)?(a(),o.push(In.checkDefined(rB(e.expression,d,uu)))):i.push(In.checkDefined(rB(e,d)));continue}a(),o.push(In.checkDefined(rB(t.expression,d,uu)))}else i.push(A(t));r&&i.push(r);a(),o.length&&!sD(o[0])&&o.unshift(t.createObjectLiteralExpression());return We(o)||n().createAssignHelper(o);function a(){i.length&&(o.push(t.createObjectLiteralExpression(i)),i=[])}}(e,o)}function A(e){const n=function(e){const n=e.name;if(nC(n)){const e=kl(n);return/^[A-Za-z_]\w*$/.test(e)?n:t.createStringLiteral(e)}return t.createStringLiteral(kl(n.namespace)+":"+kl(n.name))}(e),r=I(e.initializer);return t.createPropertyAssignment(n,r)}function I(e){if(void 0===e)return t.createTrue();if(11===e.kind){const n=void 0!==e.singleQuote?e.singleQuote:!lg(e,i);return yk(t.createStringLiteral(function(e){const t=C(e);return t===e?void 0:t}(e.text)||e.text,n),e)}return 294===e.kind?void 0===e.expression?t.createTrue():In.checkDefined(rB(e.expression,d,uu)):ON(e)?m(e,!1):FN(e)?_(e,!1):BN(e)?h(e,!1):In.failBadSyntaxKind(e)}function R(e,t){const n=C(t);return void 0===e?n:e+" "+n}function C(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,((e,t,n,r,o,i,a)=>{if(o)return Us(parseInt(o,10));if(i)return Us(parseInt(i,16));{const t=xj.get(a);return t?Us(t):e}}))}function D(e){if(284===e.kind)return D(e.openingElement);{const n=e.tagName;return nC(n)&&jv(n.escapedText)?t.createStringLiteral(kl(n)):qN(n)?t.createStringLiteral(kl(n.namespace)+":"+kl(n.name)):aL(t,n)}}function N(e){const n=rB(e.expression,d,uu);return e.dotDotDotToken?t.createSpreadElement(n):n}}var Rj=b({"src/compiler/transformers/jsx.ts"(){JJ(),xj=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function Cj(e){const{factory:t,hoistVariableDeclaration:n}=e;return GB(e,(function(t){if(t.isDeclarationFile)return t;return fB(t,r,e)}));function r(o){return 0===(512&o.transformFlags)?o:226===o.kind?function(o){switch(o.operatorToken.kind){case 68:return function(e){let o,i;const a=rB(e.left,r,uu),s=rB(e.right,r,uu);if(cD(a)){const e=t.createTempVariable(n),r=t.createTempVariable(n);o=yk(t.createElementAccessExpression(yk(t.createAssignment(e,a.expression),a.expression),yk(t.createAssignment(r,a.argumentExpression),a.argumentExpression)),a),i=yk(t.createElementAccessExpression(e,r),a)}else if(lD(a)){const e=t.createTempVariable(n);o=yk(t.createPropertyAccessExpression(yk(t.createAssignment(e,a.expression),a.expression),a.name),a),i=yk(t.createPropertyAccessExpression(e,a.name),a)}else o=a,i=a;return yk(t.createAssignment(o,yk(t.createGlobalMethodCall("Math","pow",[i,s]),e)),e)}(o);case 43:return function(e){const n=rB(e.left,r,uu),o=rB(e.right,r,uu);return yk(t.createGlobalMethodCall("Math","pow",[n,o]),e)}(o);default:return fB(o,r,e)}}(o):fB(o,r,e)}}var Dj=b({"src/compiler/transformers/es2016.ts"(){JJ()}});function Nj(e,t){return{kind:e,expression:t}}function Mj(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:o,endLexicalEnvironment:i,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),c=e.onSubstituteNode,d=e.onEmitNode;let p,f,m,_,h,g;function y(e){_=Ee(_,t.createVariableDeclaration(e))}return e.onEmitNode=function(e,t,n){if(1&g&&Td(t)){const r=v(32670,16&Rm(t)?81:65);return d(e,t,n),void b(r,0,0)}d(e,t,n)},e.onSubstituteNode=function(e,n){if(n=c(e,n),1===e)return function(e){switch(e.kind){case 80:return function(e){if(2&g&&!dL(e)){const n=l.getReferencedDeclarationWithCollidingName(e);if(n&&(!Md(n)||!function(e,t){let n=Nl(t);if(!n||n===e||n.end<=e.pos||n.pos>=e.end)return!1;const r=n_(e);for(;n;){if(n===r||n===e)return!1;if(Nd(n)&&n.parent===e)return!0;n=n.parent}return!1}(n,e)))return yk(t.getGeneratedNameForNode(jl(n)),e)}return e}(e);case 110:return function(e){if(1&g&&16&m)return yk(D(),e);return e}(e)}return e}(n);if(nC(n))return function(e){if(2&g&&!dL(e)){const n=Nl(e,nC);if(n&&function(e){switch(e.parent.kind){case 208:case 263:case 266:case 260:return e.parent.name===e&&l.isDeclarationWithCollidingName(e.parent)}return!1}(n))return yk(t.getGeneratedNameForNode(n),e)}return e}(n);return n},GB(e,(function(n){if(n.isDeclarationFile)return n;p=n,f=n.text;const o=function(e){const n=v(8064,64),o=[],a=[];r();const s=t.copyPrologue(e.statements,o,!1,T);xe(a,oB(e.statements,T,wu,s)),_&&a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(_)));return t.mergeLexicalEnvironment(o,i()),re(o,e),b(n,0,0),t.updateSourceFile(e,yk(t.createNodeArray(ce(o,a)),e.statements))}(n);return wI(o,e.readEmitHelpers()),p=void 0,f=void 0,_=void 0,m=0,o}));function v(e,t){const n=m;return m=32767&(m&~e|t),n}function b(e,t,n){m=-32768&(m&~t|n)|e}function E(e){return 0!==(8192&m)&&253===e.kind&&!e.expression}function S(e){return 0!==(1024&e.transformFlags)||void 0!==h||8192&m&&function(e){return 4194304&e.transformFlags&&(QD(e)||UD(e)||ZD(e)||eN(e)||mN(e)||JN(e)||XN(e)||rN(e)||YN(e)||tN(e)||mu(e,!1)||BD(e))}(e)||mu(e,!1)&&je(e)||0!==(1&Cm(e))}function T(e){return S(e)?R(e,!1):e}function x(e){return S(e)?R(e,!0):e}function A(e){if(S(e)){const t=Rl(e);if(TC(t)&&Vb(t)){const t=v(32670,16449),n=R(e,!1);return b(t,229376,0),n}return R(e,!1)}return e}function I(e){return 108===e.kind?st(e,!0):T(e)}function R(n,r){switch(n.kind){case 126:return;case 263:return function(e){const n=t.createVariableDeclaration(t.getLocalName(e,!0),void 0,void 0,L(e));lI(n,e);const r=[],o=t.createVariableStatement(void 0,t.createVariableDeclarationList([n]));if(lI(o,e),yk(o,e),xL(o),r.push(o),Gb(e,32)){const n=Gb(e,2048)?t.createExportDefault(t.getLocalName(e)):t.createExternalModuleExport(t.getLocalName(e));lI(n,o),r.push(n)}return Be(r)}(n);case 231:return function(e){return L(e)}(n);case 169:return function(e){return e.dotDotDotToken?void 0:Vd(e.name)?lI(yk(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?lI(yk(t.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(n);case 262:return function(n){const r=h;h=void 0;const o=v(32670,65),i=lB(n.parameters,T,e),a=me(n),s=32768&m?t.getLocalName(n):n.name;return b(o,229376,0),h=r,t.updateFunctionDeclaration(n,oB(n.modifiers,T,vd),n.asteriskToken,s,void 0,i,void 0,a)}(n);case 219:return function(n){16384&n.transformFlags&&!(16384&m)&&(m|=131072);const r=h;h=void 0;const o=v(15232,66),i=t.createFunctionExpression(void 0,void 0,void 0,void 0,lB(n.parameters,T,e),void 0,me(n));return yk(i,n),lI(i,n),fI(i,16),b(o,0,0),h=r,i}(n);case 218:return function(n){const r=524288&Rm(n)?v(32662,69):v(32670,65),o=h;h=void 0;const i=lB(n.parameters,T,e),a=me(n),s=32768&m?t.getLocalName(n):n.name;return b(r,229376,0),h=o,t.updateFunctionExpression(n,void 0,n.asteriskToken,s,void 0,i,void 0,a)}(n);case 260:return ge(n);case 80:return N(n);case 261:return function(n){if(7&n.flags||524288&n.transformFlags){7&n.flags&<();const e=oB(n.declarations,1&n.flags?he:ge,iN),r=t.createVariableDeclarationList(e);return lI(r,n),yk(r,n),xI(r,n),524288&n.transformFlags&&(Vd(n.declarations[0].name)||Vd(Fe(n.declarations).name))&&yI(r,function(e){let t=-1,n=-1;for(const r of e)t=-1===t?r.pos:-1===r.pos?t:Math.min(t,r.pos),n=Math.max(n,r.end);return UE(t,n)}(e)),r}return fB(n,T,e)}(n);case 255:return function(t){if(void 0!==h){const n=h.allowedNonLabeledJumps;h.allowedNonLabeledJumps|=2;const r=fB(t,T,e);return h.allowedNonLabeledJumps=n,r}return fB(t,T,e)}(n);case 269:return function(t){const n=v(7104,0),r=fB(t,T,e);return b(n,0,0),r}(n);case 241:return function(t,n){if(n)return fB(t,T,e);const r=256&m?v(7104,512):v(6976,128),o=fB(t,T,e);return b(r,0,0),o}(n,!1);case 252:case 251:return function(n){if(h){const e=252===n.kind?2:4;if(!(n.label&&h.labels&&h.labels.get(kl(n.label))||!n.label&&h.allowedNonLabeledJumps&e)){let e;const r=n.label;r?252===n.kind?(e=`break-${r.escapedText}`,Xe(h,!0,kl(r),e)):(e=`continue-${r.escapedText}`,Xe(h,!1,kl(r),e)):252===n.kind?(h.nonLocalJumps|=2,e="break"):(h.nonLocalJumps|=4,e="continue");let o=t.createStringLiteral(e);if(h.loopOutParameters.length){const e=h.loopOutParameters;let n;for(let r=0;r<e.length;r++){const o=qe(e[r],1);n=0===r?o:t.createBinaryExpression(n,28,o)}o=t.createBinaryExpression(n,28,o)}return t.createReturnStatement(o)}}return fB(n,T,e)}(n);case 256:return function(e){h&&!h.labels&&(h.labels=new Map);const n=nh(e,h&&ve);return mu(n,!1)?function(e,t){switch(e.kind){case 246:case 247:return Te(e,t);case 248:return Ae(e,t);case 249:return Ie(e,t);case 250:return Re(e,t)}}(n,e):t.restoreEnclosingLabel(In.checkDefined(rB(n,T,wu,t.liftToBlock)),e,h&&be)}(n);case 246:case 247:return Te(n,void 0);case 248:return Ae(n,void 0);case 249:return Ie(n,void 0);case 250:return Re(n,void 0);case 244:case 222:return function(t){return fB(t,x,e)}(n);case 210:return function(n){const r=n.properties;let o=-1,i=!1;for(let e=0;e<r.length;e++){const t=r[e];if(1048576&t.transformFlags&&4&m||(i=167===In.checkDefined(t.name).kind)){o=e;break}}if(o<0)return fB(n,T,e);const s=t.createTempVariable(a),l=[],c=t.createAssignment(s,fI(t.createObjectLiteralExpression(oB(r,T,Bd,0,o),n.multiLine),i?131072:0));n.multiLine&&xL(c);return l.push(c),function(e,t,n,r){const o=t.properties,i=o.length;for(let a=r;a<i;a++){const r=o[a];switch(r.kind){case 177:case 178:const o=xb(t.properties,r);r===o.firstAccessor&&e.push(pe(n,o,t,!!t.multiLine));break;case 174:e.push(et(r,n,t,t.multiLine));break;case 303:e.push(Qe(r,n,t.multiLine));break;case 304:e.push(Ze(r,n,t.multiLine));break;default:In.failBadSyntaxKind(t)}}}(l,n,s,o),l.push(n.multiLine?xL(Vx(yk(t.cloneNode(s),s),s.parent)):s),t.inlineExpressions(l)}(n);case 299:return function(n){const r=v(7104,0);let o;if(In.assert(!!n.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),Vd(n.variableDeclaration.name)){const r=t.createTempVariable(void 0),i=t.createVariableDeclaration(r);yk(i,n.variableDeclaration);const a=SG(n.variableDeclaration,T,e,0,r),s=t.createVariableDeclarationList(a);yk(s,n.variableDeclaration);const l=t.createVariableStatement(void 0,s);o=t.updateCatchClause(n,i,function(e,n){const r=oB(e.statements,T,wu);return t.updateBlock(e,[n,...r])}(n.block,l))}else o=fB(n,T,e);return b(r,0,0),o}(n);case 304:return function(e){return yk(t.createPropertyAssignment(e.name,N(t.cloneNode(e.name))),e)}(n);case 167:case 229:return function(t){return fB(t,T,e)}(n);case 209:return function(t){if(se(t.elements,RD))return tt(t.elements,!1,!!t.multiLine,!!t.elements.hasTrailingComma);return fB(t,T,e)}(n);case 213:return function(n){if(1&Cm(n))return function(e){const n=vt(vt(EL(e.expression),hD).body,BD),r=e=>GD(e)&&!!Pe(e.declarationList.declarations).initializer,o=h;h=void 0;const i=oB(n.statements,A,wu);h=o;const a=G(i,r),s=G(i,(e=>!r(e))),l=vt(Pe(a),GD).declarationList.declarations[0],c=EL(l.initializer);let d=yt(c,gE);!d&&TD(c)&&28===c.operatorToken.kind&&(d=yt(c.left,gE));const p=vt(d?EL(d.right):c,dD),f=vt(EL(p.expression),_D),m=f.body.statements;let _=0,g=-1;const y=[];if(d){const e=yt(m[_],VD);e&&(y.push(e),_++),y.push(m[_]),_++,y.push(t.createExpressionStatement(t.createAssignment(d.left,vt(l.name,nC))))}for(;!QD(u(m,g));)g--;xe(y,m,_,g),g<-1&&xe(y,m,g+1);const v=yt(u(m,g),QD);for(const t of s)QD(t)&&(null==v?void 0:v.expression)&&!nC(v.expression)?y.push(v):y.push(t);return xe(y,a,1),t.restoreOuterExpressions(e.expression,t.restoreOuterExpressions(l.initializer,t.restoreOuterExpressions(d&&d.right,t.updateCallExpression(p,t.restoreOuterExpressions(p.expression,t.updateFunctionExpression(f,void 0,void 0,void 0,void 0,f.parameters,void 0,t.updateBlock(f.body,y))),void 0,p.arguments))))}(n);const r=EL(n.expression);if(108===r.kind||Ih(r)||se(n.arguments,RD))return function(n,r){if(32768&n.transformFlags||108===n.expression.kind||Ih(EL(n.expression))){const{target:e,thisArg:o}=t.createCallBinding(n.expression,a);let i;if(108===n.expression.kind&&fI(o,8),i=32768&n.transformFlags?t.createFunctionApplyCall(In.checkDefined(rB(e,I,uu)),108===n.expression.kind?o:In.checkDefined(rB(o,T,uu)),tt(n.arguments,!0,!1,!1)):yk(t.createFunctionCallCall(In.checkDefined(rB(e,I,uu)),108===n.expression.kind?o:In.checkDefined(rB(o,T,uu)),oB(n.arguments,T,uu)),n),108===n.expression.kind){const e=t.createLogicalOr(i,Y());i=r?t.createAssignment(D(),e):e}return lI(i,n)}M_(n)&&(m|=131072);return fB(n,T,e)}(n,!0);return t.updateCallExpression(n,In.checkDefined(rB(n.expression,I,uu)),void 0,oB(n.arguments,T,uu))}(n);case 214:return function(n){if(se(n.arguments,RD)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return t.createNewExpression(t.createFunctionApplyCall(In.checkDefined(rB(e,T,uu)),r,tt(t.createNodeArray([t.createVoidZero(),...n.arguments]),!0,!1,!1)),void 0,[])}return fB(n,T,e)}(n);case 217:return function(t,n){return fB(t,n?x:T,e)}(n,r);case 226:return _e(n,r);case 361:return function(n,r){if(r)return fB(n,x,e);let o;for(let e=0;e<n.elements.length;e++){const t=n.elements[e],r=rB(t,e<n.elements.length-1?x:T,uu);(o||r!==t)&&(o||(o=n.elements.slice(0,e)),In.assert(r),o.push(r))}const i=o?yk(t.createNodeArray(o),n.elements):n.elements;return t.updateCommaListExpression(n,i)}(n,r);case 15:case 16:case 17:case 18:return function(e){return yk(t.createStringLiteral(e.text),e)}(n);case 11:return function(e){if(e.hasExtendedUnicodeEscape)return yk(t.createStringLiteral(e.text),e);return e}(n);case 9:return function(e){if(384&e.numericLiteralFlags)return yk(t.createNumericLiteral(e.text),e);return e}(n);case 215:return function(t){return HG(e,t,T,p,y,1)}(n);case 228:return function(e){let n=t.createStringLiteral(e.head.text);for(const r of e.templateSpans){const e=[In.checkDefined(rB(r.expression,T,uu))];r.literal.text.length>0&&e.push(t.createStringLiteral(r.literal.text)),n=t.createCallExpression(t.createPropertyAccessExpression(n,"concat"),void 0,e)}return yk(n,e)}(n);case 230:return function(e){return rB(e.expression,T,uu)}(n);case 108:return st(n,!1);case 110:return function(e){m|=65536,2&m&&!(16384&m)&&(m|=131072);if(h)return 2&m?(h.containsLexicalThis=!0,e):h.thisName||(h.thisName=t.createUniqueName("this"));return e}(n);case 236:return function(e){if(105===e.keywordToken&&"target"===e.name.escapedText)return m|=32768,t.createUniqueName("_newTarget",48);return e}(n);case 174:return function(e){In.assert(!yC(e.name));const n=fe(e,KE(e,-1),void 0,void 0);return fI(n,1024|Rm(n)),yk(t.createPropertyAssignment(e.name,n),e)}(n);case 177:case 178:return function(n){In.assert(!yC(n.name));const r=h;h=void 0;const o=v(32670,65);let i;const a=lB(n.parameters,T,e),s=me(n);i=177===n.kind?t.updateGetAccessorDeclaration(n,n.modifiers,n.name,a,n.type,s):t.updateSetAccessorDeclaration(n,n.modifiers,n.name,a,s);return b(o,229376,0),h=r,i}(n);case 243:return function(n){const r=v(0,Gb(n,32)?32:0);let o;if(h&&0===(7&n.declarationList.flags)&&!function(e){return 1===e.declarationList.declarations.length&&!!e.declarationList.declarations[0].initializer&&!!(1&Cm(e.declarationList.declarations[0].initializer))}(n)){let r;for(const o of n.declarationList.declarations)if(Ue(h,o),o.initializer){let n;Vd(o.name)?n=vG(o,T,e,0):(n=t.createBinaryExpression(o.name,64,In.checkDefined(rB(o.initializer,T,uu))),yk(n,o)),r=Ee(r,n)}o=r?yk(t.createExpressionStatement(t.inlineExpressions(r)),n):void 0}else o=fB(n,T,e);return b(r,0,0),o}(n);case 253:return function(n){if(h)return h.nonLocalJumps|=8,E(n)&&(n=C(n)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),n.expression?In.checkDefined(rB(n.expression,T,uu)):t.createVoidZero())]));if(E(n))return C(n);return fB(n,T,e)}(n);default:return fB(n,T,e)}}function C(e){return lI(t.createReturnStatement(D()),e)}function D(){return t.createUniqueName("_this",48)}function N(e){return h&&l.isArgumentsLocalBinding(e)?h.argumentsName||(h.argumentsName=t.createUniqueName("arguments")):256&e.flags?lI(yk(t.createIdentifier(Ll(e.escapedText)),e),e):e}function L(a){a.name&<();const s=Fy(a),l=t.createFunctionExpression(void 0,void 0,void 0,void 0,s?[t.createParameterDeclaration(void 0,void 0,at())]:[],void 0,function(a,s){const l=[],c=t.getInternalName(a),d=Yy(c)?t.getGeneratedNameForNode(c):c;r(),function(e,r,o){o&&e.push(yk(t.createExpressionStatement(n().createExtendsHelper(t.getInternalName(r))),o))}(l,a,s),function(n,r,a,s){const l=h;h=void 0;const c=v(32662,73),d=_b(r),u=function(e,t){if(!e||!t)return!1;if(se(e.parameters))return!1;const n=Le(e.body.statements);if(!n||!Sv(n)||244!==n.kind)return!1;const r=n.expression;if(!Sv(r)||213!==r.kind)return!1;const o=r.expression;if(!Sv(o)||108!==o.kind)return!1;const i=We(r.arguments);if(!i||!Sv(i)||230!==i.kind)return!1;const a=i.expression;return nC(a)&&"arguments"===a.escapedText}(d,void 0!==s),p=t.createFunctionDeclaration(void 0,void 0,a,void 0,function(t,n){return lB(t&&!n?t.parameters:void 0,T,e)||[]}(d,u),void 0,function(e,n,r,a){const s=!!r&&106!==EL(r.expression).kind;if(!e)return function(e,n){const r=[];o(),t.mergeLexicalEnvironment(r,i()),n&&r.push(t.createReturnStatement(t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(at(),t.createNull()),t.createFunctionApplyCall(at(),Y(),t.createIdentifier("arguments"))),Y())));const a=t.createNodeArray(r);yk(a,e.members);const s=t.createBlock(a,!0);return yk(s,e),fI(s,3072),s}(n,s);const l=[],c=[];o();const d=t.copyStandardPrologue(e.body.statements,l,0);(a||P(e.body))&&(m|=8192);xe(c,oB(e.body.statements,T,wu,d));const u=s||8192&m;Z(l,e),ne(l,e,a),ae(l,e),u?oe(l,e,Y()):re(l,e);t.mergeLexicalEnvironment(l,i()),u&&!$(e.body)&&c.push(t.createReturnStatement(D()));const p=t.createBlock(yk(t.createNodeArray([...l,...c]),e.body.statements),!0);return yk(p,e.body),function(e,n,r){const o=e;e=function(e){for(let n=0;n<e.statements.length-1;n++){const r=e.statements[n];if(!F(r))continue;const o=r.declarationList.declarations[0];if(110!==o.initializer.kind)continue;const i=n;let a=n+1;for(;a<e.statements.length;){const t=e.statements[a];if(VD(t)&&K(EL(t.expression)))break;if(!k(t))return e;a++}const s=e.statements[a];let l=s.expression;W(l)&&(l=l.right);const c=t.updateVariableDeclaration(o,o.name,void 0,void 0,l),d=t.updateVariableDeclarationList(r.declarationList,[c]),u=t.createVariableStatement(r.modifiers,d);lI(u,s),yk(u,s);const p=t.createNodeArray([...e.statements.slice(0,i),...e.statements.slice(i+1,a),u,...e.statements.slice(a+1)]);return yk(p,e.statements),t.updateBlock(e,p)}return e}(e),e=function(e,n){for(const t of n.statements)if(134217728&t.transformFlags&&!QB(t))return e;const r=!(16384&n.transformFlags)&&!(65536&m)&&!(131072&m);for(let o=e.statements.length-1;o>0;o--){const n=e.statements[o];if(QD(n)&&n.expression&&w(n.expression)){const n=e.statements[o-1];let i;if(VD(n)&&H(EL(n.expression)))i=n.expression;else if(r&&F(n)){const e=n.declarationList.declarations[0];K(EL(e.initializer))&&(i=t.createAssignment(D(),e.initializer))}if(!i)break;const a=t.createReturnStatement(i);lI(a,n),yk(a,n);const s=t.createNodeArray([...e.statements.slice(0,o-1),a,...e.statements.slice(o+1)]);return yk(s,e.statements),t.updateBlock(e,s)}}return e}(e,n),e!==o&&(e=function(e,n){if(16384&n.transformFlags||65536&m||131072&m)return e;for(const t of n.statements)if(134217728&t.transformFlags&&!QB(t))return e;return t.updateBlock(e,oB(e.statements,J,wu))}(e,n));r&&(e=function(e){return t.updateBlock(e,oB(e.statements,X,wu))}(e));return e}(p,e.body,a)}(d,r,s,u));yk(p,d||r),s&&fI(p,16);n.push(p),b(c,229376,0),h=l}(l,a,d,s),function(e,t){for(const n of t.members)switch(n.kind){case 240:e.push(le(n));break;case 174:e.push(de(ct(t,n),n,t));break;case 177:case 178:const r=xb(t.members,n);n===r.firstAccessor&&e.push(ue(ct(t,n),r,t));break;case 176:case 175:break;default:In.failBadSyntaxKind(n,p&&p.fileName)}}(l,a);const u=$E(Ts(f,a.members.end),20),_=t.createPartiallyEmittedExpression(d);zx(_,u.end),fI(_,3072);const g=t.createReturnStatement(_);Wx(g,u.pos),fI(g,3840),l.push(g),pm(l,i());const y=t.createBlock(yk(t.createNodeArray(l),a.members),!0);return fI(y,3072),y}(a,s));fI(l,131072&Rm(a)|1048576);const c=t.createPartiallyEmittedExpression(l);zx(c,a.end),fI(c,3072);const d=t.createPartiallyEmittedExpression(c);zx(d,Ts(f,a.pos)),fI(d,3072);const u=t.createParenthesizedExpression(t.createCallExpression(d,void 0,s?[In.checkDefined(rB(s.expression,T,uu))]:[]));return RI(u,3,"* @class "),u}function k(e){return GD(e)&&M(e.declarationList.declarations,(e=>nC(e.name)&&!e.initializer))}function P(e){if(M_(e))return!0;if(!(134217728&e.transformFlags))return!1;switch(e.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const t=e;return!!yC(t.name)&&!!oP(t.name,P)}}return!!oP(e,P)}function w(e){return ud(e)&&"_this"===kl(e)}function O(e){return ud(e)&&"_super"===kl(e)}function F(e){return GD(e)&&1===e.declarationList.declarations.length&&function(e){return iN(e)&&w(e.name)&&!!e.initializer}(e.declarationList.declarations[0])}function W(e){return gE(e,!0)&&w(e.left)}function z(e){return dD(e)&&lD(e.expression)&&O(e.expression.expression)&&nC(e.expression.name)&&("call"===kl(e.expression.name)||"apply"===kl(e.expression.name))&&e.arguments.length>=1&&110===e.arguments[0].kind}function B(e){return TD(e)&&57===e.operatorToken.kind&&110===e.right.kind&&z(e.left)}function j(e){return TD(e)&&56===e.operatorToken.kind&&TD(e.left)&&38===e.left.operatorToken.kind&&O(e.left.left)&&106===e.left.right.kind&&z(e.right)&&"apply"===kl(e.right.expression.name)}function V(e){return TD(e)&&57===e.operatorToken.kind&&110===e.right.kind&&j(e.left)}function H(e){return W(e)&&B(e.right)}function K(e){return z(e)||B(e)||H(e)||j(e)||V(e)||function(e){return W(e)&&V(e.right)}(e)}function J(e){if(F(e)){if(110===e.declarationList.declarations[0].initializer.kind)return}else if(W(e))return t.createPartiallyEmittedExpression(e.right,e);switch(e.kind){case 219:case 218:case 262:case 176:case 175:return e;case 177:case 178:case 174:case 172:{const n=e;return yC(n.name)?t.replacePropertyName(n,fB(n.name,J,void 0)):e}}return fB(e,J,void 0)}function X(e){if(z(e)&&2===e.arguments.length&&nC(e.arguments[1])&&"arguments"===kl(e.arguments[1]))return t.createLogicalAnd(t.createStrictInequality(at(),t.createNull()),e);switch(e.kind){case 219:case 218:case 262:case 176:case 175:return e;case 177:case 178:case 174:case 172:{const n=e;return yC(n.name)?t.replacePropertyName(n,fB(n.name,X,void 0)):e}}return fB(e,X,void 0)}function $(e){if(253===e.kind)return!0;if(245===e.kind){const t=e;if(t.elseStatement)return $(t.thenStatement)&&$(t.elseStatement)}else if(241===e.kind){const t=Oe(e.statements);if(t&&$(t))return!0}return!1}function Y(){return fI(t.createThis(),8)}function Q(e){return void 0!==e.initializer||Vd(e.name)}function Z(e,t){if(!se(t.parameters,Q))return!1;let n=!1;for(const r of t.parameters){const{name:t,initializer:o,dotDotDotToken:i}=r;i||(Vd(t)?n=ee(e,r,t,o)||n:o&&(te(e,r,t,o),n=!0))}return n}function ee(n,r,o,i){return o.elements.length>0?(_m(n,fI(t.createVariableStatement(void 0,t.createVariableDeclarationList(SG(r,T,e,0,t.getGeneratedNameForNode(r)))),2097152)),!0):!!i&&(_m(n,fI(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(r),In.checkDefined(rB(i,T,uu)))),2097152)),!0)}function te(e,n,r,o){o=In.checkDefined(rB(o,T,uu));const i=t.createIfStatement(t.createTypeCheck(t.cloneNode(r),"undefined"),fI(yk(t.createBlock([t.createExpressionStatement(fI(yk(t.createAssignment(fI(Vx(yk(t.cloneNode(r),r),r.parent),96),fI(o,3168|Rm(o))),n),3072))]),n),3905));xL(i),yk(i,n),fI(i,2101056),_m(e,i)}function ne(n,r,o){const i=[],a=Oe(r.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(a,o))return!1;const s=80===a.name.kind?Vx(yk(t.cloneNode(a.name),a.name),a.name.parent):t.createTempVariable(void 0);fI(s,96);const l=80===a.name.kind?t.cloneNode(a.name):s,c=r.parameters.length-1,d=t.createLoopVariable();i.push(fI(yk(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(s,void 0,void 0,t.createArrayLiteralExpression([]))])),a),2097152));const u=t.createForStatement(yk(t.createVariableDeclarationList([t.createVariableDeclaration(d,void 0,void 0,t.createNumericLiteral(c))]),a),yk(t.createLessThan(d,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),a),yk(t.createPostfixIncrement(d),a),t.createBlock([xL(yk(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(l,0===c?d:t.createSubtract(d,t.createNumericLiteral(c))),t.createElementAccessExpression(t.createIdentifier("arguments"),d))),a))]));return fI(u,2097152),xL(u),i.push(u),80!==a.name.kind&&i.push(fI(yk(t.createVariableStatement(void 0,t.createVariableDeclarationList(SG(a,T,e,0,l))),a),2097152)),fm(n,i),!0}function re(e,n){return!!(131072&m&&219!==n.kind)&&(oe(e,n,t.createThis()),!0)}function oe(n,r,o){0===(1&g)&&(g|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262));const i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(D(),void 0,void 0,o)]));fI(i,2100224),yI(i,r),_m(n,i)}function ae(e,n){if(32768&m){let r;switch(n.kind){case 219:return e;case 174:case 177:case 178:r=t.createVoidZero();break;case 176:r=t.createPropertyAccessExpression(fI(t.createThis(),8),"constructor");break;case 262:case 218:r=t.createConditionalExpression(t.createLogicalAnd(fI(t.createThis(),8),t.createBinaryExpression(fI(t.createThis(),8),104,t.getLocalName(n))),void 0,t.createPropertyAccessExpression(fI(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return In.failBadSyntaxKind(n)}const o=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,r)]));fI(o,2100224),_m(e,o)}return e}function le(e){return yk(t.createEmptyStatement(),e)}function de(n,r,o){const i=TI(r),a=gI(r),s=fe(r,r,void 0,o),l=rB(r.name,T,Ed);let c;if(In.assert(l),!rC(l)&&rf(e.getCompilerOptions())){const e=yC(l)?l.expression:nC(l)?t.createStringLiteral(Ll(l.escapedText)):l;c=t.createObjectDefinePropertyCall(n,e,t.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{const e=QM(t,n,l,r.name);c=t.createAssignment(e,s)}fI(s,3072),yI(s,a);const d=yk(t.createExpressionStatement(c),r);return lI(d,r),xI(d,i),fI(d,96),d}function ue(e,n,r){const o=t.createExpressionStatement(pe(e,n,r,!1));return fI(o,3072),yI(o,gI(n.firstAccessor)),o}function pe(e,{firstAccessor:n,getAccessor:r,setAccessor:o},i,a){const s=Vx(yk(t.cloneNode(e),e),e.parent);fI(s,3136),yI(s,n.name);const l=rB(n.name,T,Ed);if(In.assert(l),rC(l))return In.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");const c=sL(t,l);fI(c,3104),yI(c,n.name);const d=[];if(r){const e=fe(r,void 0,void 0,i);yI(e,gI(r)),fI(e,1024);const n=t.createPropertyAssignment("get",e);xI(n,TI(r)),d.push(n)}if(o){const e=fe(o,void 0,void 0,i);yI(e,gI(o)),fI(e,1024);const n=t.createPropertyAssignment("set",e);xI(n,TI(o)),d.push(n)}d.push(t.createPropertyAssignment("enumerable",r||o?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const u=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[s,c,t.createObjectLiteralExpression(d,!0)]);return a&&xL(u),u}function fe(n,r,o,i){const a=h;h=void 0;const s=i&&Md(i)&&!jb(n)?v(32670,73):v(32670,65),l=lB(n.parameters,T,e),c=me(n);return 32768&m&&!o&&(262===n.kind||218===n.kind)&&(o=t.getGeneratedNameForNode(n)),b(s,229376,0),h=a,lI(yk(t.createFunctionExpression(void 0,n.asteriskToken,o,void 0,l,void 0,c),r),n)}function me(e){let n,r,a=!1,s=!1;const l=[],c=[],d=e.body;let u;if(o(),BD(d)&&(u=t.copyStandardPrologue(d.statements,l,0,!1),u=t.copyCustomPrologue(d.statements,c,u,T,F_),u=t.copyCustomPrologue(d.statements,c,u,T,z_)),a=Z(c,e)||a,a=ne(c,e,!1)||a,BD(d))u=t.copyCustomPrologue(d.statements,c,u,T),n=d.statements,xe(c,oB(d.statements,T,wu,u)),!a&&d.multiLine&&(a=!0);else{In.assert(219===e.kind),n=HE(d,-1);const o=e.equalsGreaterThanToken;Sv(o)||Sv(d)||(tS(o,d,p)?s=!0:a=!0);const i=rB(d,T,uu),l=t.createReturnStatement(i);yk(l,d),MI(l,d),fI(l,2880),c.push(l),r=d}if(t.mergeLexicalEnvironment(l,i()),ae(l,e),re(l,e),se(l)&&(a=!0),c.unshift(...l),BD(d)&&ye(c,d.statements))return d;const f=t.createBlock(yk(t.createNodeArray(c),n),a);return yk(f,e.body),!a&&s&&fI(f,1),r&&bI(f,20,r),lI(f,e.body),f}function _e(n,r){return vE(n)?vG(n,T,e,0,!r):28===n.operatorToken.kind?t.updateBinaryExpression(n,In.checkDefined(rB(n.left,x,uu)),n.operatorToken,In.checkDefined(rB(n.right,r?x:T,uu))):fB(n,T,e)}function he(n){return Vd(n.name)?ge(n):!n.initializer&&function(e){const t=l.getNodeCheckFlags(e),n=16384&t,r=32768&t;return!(0!==(64&m)||n&&r&&0!==(512&m))&&0===(4096&m)&&(!l.isDeclarationWithCollidingName(e)||r&&!n&&0===(6144&m))}(n)?t.updateVariableDeclaration(n,n.name,void 0,void 0,t.createVoidZero()):fB(n,T,e)}function ge(t){const n=v(32,0);let r;return r=Vd(t.name)?SG(t,T,e,0,void 0,0!==(32&n)):fB(t,T,e),b(n,0,0),r}function ve(e){h.labels.set(kl(e.label),!0)}function be(e){h.labels.set(kl(e.label),!1)}function Se(n,o,a,s,l){const c=v(n,o),d=function(n,o,a,s){if(!je(n)){let r;h&&(r=h.allowedNonLabeledJumps,h.allowedNonLabeledJumps=6);const i=s?s(n,o,void 0,a):t.restoreEnclosingLabel(qD(n)?function(e){return t.updateForStatement(e,rB(e.initializer,x,Su),rB(e.condition,T,uu),rB(e.incrementor,x,uu),In.checkDefined(rB(e.statement,T,wu,t.liftToBlock)))}(n):fB(n,T,e),o,h&&be);return h&&(h.allowedNonLabeledJumps=r),i}const l=function(e){let t;switch(e.kind){case 248:case 249:case 250:const n=e.initializer;n&&261===n.kind&&(t=n)}const n=[],r=[];if(t&&7&xl(t)){const o=we(e)||ze(e)||Ge(e);for(const i of t.declarations)Ye(e,i,n,r,o)}const o={loopParameters:n,loopOutParameters:r};h&&(h.argumentsName&&(o.argumentsName=h.argumentsName),h.thisName&&(o.thisName=h.thisName),h.hoistedLocalVariables&&(o.hoistedLocalVariables=h.hoistedLocalVariables));return o}(n),c=[],d=h;h=l;const u=we(n)?function(e,n){const r=t.createUniqueName("_loop_init"),o=0!==(1048576&e.initializer.transformFlags);let i=0;n.containsLexicalThis&&(i|=16);o&&4&m&&(i|=524288);const a=[];a.push(t.createVariableStatement(void 0,e.initializer)),Je(n.loopOutParameters,2,1,a);const s=t.createVariableStatement(void 0,fI(t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,fI(t.createFunctionExpression(void 0,o?t.createToken(42):void 0,void 0,void 0,void 0,void 0,In.checkDefined(rB(t.createBlock(a,!0),T,BD))),i))]),4194304)),l=t.createVariableDeclarationList(U(n.loopOutParameters,Ke));return{functionName:r,containsYield:o,functionDeclaration:s,part:l}}(n,l):void 0,p=Ve(n)?function(e,n,o){const a=t.createUniqueName("_loop");r();const s=rB(e.statement,T,wu,t.liftToBlock),l=i(),c=[];(ze(e)||Ge(e))&&(n.conditionVariable=t.createUniqueName("inc"),e.incrementor?c.push(t.createIfStatement(n.conditionVariable,t.createExpressionStatement(In.checkDefined(rB(e.incrementor,T,uu))),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))):c.push(t.createIfStatement(t.createLogicalNot(n.conditionVariable),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))),ze(e)&&c.push(t.createIfStatement(t.createPrefixUnaryExpression(54,In.checkDefined(rB(e.condition,T,uu))),In.checkDefined(rB(t.createBreakStatement(),T,wu)))));In.assert(s),BD(s)?xe(c,s.statements):c.push(s);Je(n.loopOutParameters,1,1,c),pm(c,l);const d=t.createBlock(c,!0);BD(s)&&lI(d,s);const u=0!==(1048576&e.statement.transformFlags);let p=1048576;n.containsLexicalThis&&(p|=16);u&&0!==(4&m)&&(p|=524288);const f=t.createVariableStatement(void 0,fI(t.createVariableDeclarationList([t.createVariableDeclaration(a,void 0,void 0,fI(t.createFunctionExpression(void 0,u?t.createToken(42):void 0,void 0,void 0,n.loopParameters,void 0,d),p))]),4194304)),_=function(e,n,r,o){const i=[],a=!(-5&n.nonLocalJumps)&&!n.labeledNonLocalBreaks&&!n.labeledNonLocalContinues,s=t.createCallExpression(e,void 0,U(n.loopParameters,(e=>e.name))),l=o?t.createYieldExpression(t.createToken(42),fI(s,8388608)):s;if(a)i.push(t.createExpressionStatement(l)),Je(n.loopOutParameters,1,0,i);else{const e=t.createUniqueName("state"),o=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,l)]));if(i.push(o),Je(n.loopOutParameters,1,0,i),8&n.nonLocalJumps){let n;r?(r.nonLocalJumps|=8,n=t.createReturnStatement(e)):n=t.createReturnStatement(t.createPropertyAccessExpression(e,"value")),i.push(t.createIfStatement(t.createTypeCheck(e,"object"),n))}if(2&n.nonLocalJumps&&i.push(t.createIfStatement(t.createStrictEquality(e,t.createStringLiteral("break")),t.createBreakStatement())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){const o=[];$e(n.labeledNonLocalBreaks,!0,e,r,o),$e(n.labeledNonLocalContinues,!1,e,r,o),i.push(t.createSwitchStatement(e,t.createCaseBlock(o)))}}return i}(a,n,o,u);return{functionName:a,containsYield:u,functionDeclaration:f,part:_}}(n,l,d):void 0;h=d,u&&c.push(u.functionDeclaration);p&&c.push(p.functionDeclaration);(function(e,n,r){let o;n.argumentsName&&(r?r.argumentsName=n.argumentsName:(o||(o=[])).push(t.createVariableDeclaration(n.argumentsName,void 0,void 0,t.createIdentifier("arguments"))));n.thisName&&(r?r.thisName=n.thisName:(o||(o=[])).push(t.createVariableDeclaration(n.thisName,void 0,void 0,t.createIdentifier("this"))));if(n.hoistedLocalVariables)if(r)r.hoistedLocalVariables=n.hoistedLocalVariables;else{o||(o=[]);for(const e of n.hoistedLocalVariables)o.push(t.createVariableDeclaration(e))}if(n.loopOutParameters.length){o||(o=[]);for(const e of n.loopOutParameters)o.push(t.createVariableDeclaration(e.outParamName))}n.conditionVariable&&(o||(o=[]),o.push(t.createVariableDeclaration(n.conditionVariable,void 0,void 0,t.createFalse())));o&&e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(o)))})(c,l,d),u&&c.push(function(e,n){const r=t.createCallExpression(e,void 0,[]),o=n?t.createYieldExpression(t.createToken(42),fI(r,8388608)):r;return t.createExpressionStatement(o)}(u.functionName,u.containsYield));let f;if(p)if(s)f=s(n,o,p.part,a);else{const e=He(n,u,t.createBlock(p.part,!0));f=t.restoreEnclosingLabel(e,o,h&&be)}else{const e=He(n,u,In.checkDefined(rB(n.statement,T,wu,t.liftToBlock)));f=t.restoreEnclosingLabel(e,o,h&&be)}return c.push(f),c}(a,s,c,l);return b(c,0,0),d}function Te(e,t){return Se(0,1280,e,t)}function Ae(e,t){return Se(5056,3328,e,t)}function Ie(e,t){return Se(3008,5376,e,t)}function Re(e,t){return Se(3008,5376,e,t,s.downlevelIteration?Me:Ne)}function Ce(n,r,o){const i=[],a=n.initializer;if(aN(a)){7&n.initializer.flags&<();const o=Le(a.declarations);if(o&&Vd(o.name)){const a=SG(o,T,e,0,r),s=yk(t.createVariableDeclarationList(a),n.initializer);lI(s,n.initializer),yI(s,UE(a[0].pos,Fe(a).end)),i.push(t.createVariableStatement(void 0,s))}else i.push(yk(t.createVariableStatement(void 0,lI(yk(t.createVariableDeclarationList([t.createVariableDeclaration(o?o.name:t.createTempVariable(void 0),void 0,void 0,r)]),KE(a,-1)),a)),HE(a,-1)))}else{const e=t.createAssignment(a,r);vE(e)?i.push(t.createExpressionStatement(_e(e,!0))):(zx(e,a.end),i.push(yk(t.createExpressionStatement(In.checkDefined(rB(e,T,uu))),HE(a,-1))))}if(o)return De(xe(i,o));{const e=rB(n.statement,T,wu,t.liftToBlock);return In.assert(e),BD(e)?t.updateBlock(e,yk(t.createNodeArray(ce(i,e.statements)),e.statements)):(i.push(e),De(i))}}function De(e){return fI(t.createBlock(t.createNodeArray(e),!0),864)}function Ne(e,n,r){const o=rB(e.expression,T,uu);In.assert(o);const i=t.createLoopVariable(),a=nC(o)?t.getGeneratedNameForNode(o):t.createTempVariable(void 0);fI(o,96|Rm(o));const s=yk(t.createForStatement(fI(yk(t.createVariableDeclarationList([yk(t.createVariableDeclaration(i,void 0,void 0,t.createNumericLiteral(0)),KE(e.expression,-1)),yk(t.createVariableDeclaration(a,void 0,void 0,o),e.expression)]),e.expression),4194304),yk(t.createLessThan(i,t.createPropertyAccessExpression(a,"length")),e.expression),yk(t.createPostfixIncrement(i),e.expression),Ce(e,t.createElementAccessExpression(a,i),r)),e);return fI(s,512),yk(s,e),t.restoreEnclosingLabel(s,n,h&&be)}function Me(e,r,o,i){const s=rB(e.expression,T,uu);In.assert(s);const l=nC(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),c=nC(s)?t.getGeneratedNameForNode(l):t.createTempVariable(void 0),d=t.createUniqueName("e"),u=t.getGeneratedNameForNode(d),p=t.createTempVariable(void 0),f=yk(n().createValuesHelper(s),e.expression),m=t.createCallExpression(t.createPropertyAccessExpression(l,"next"),void 0,[]);a(d),a(p);const _=1024&i?t.inlineExpressions([t.createAssignment(d,t.createVoidZero()),f]):f,g=fI(yk(t.createForStatement(fI(yk(t.createVariableDeclarationList([yk(t.createVariableDeclaration(l,void 0,void 0,_),e.expression),t.createVariableDeclaration(c,void 0,void 0,m)]),e.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(c,"done")),t.createAssignment(c,m),Ce(e,t.createPropertyAccessExpression(c,"value"),o)),e),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(g,r,h&&be)]),t.createCatchClause(t.createVariableDeclaration(u),fI(t.createBlock([t.createExpressionStatement(t.createAssignment(d,t.createObjectLiteralExpression([t.createPropertyAssignment("error",u)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([fI(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(c,t.createLogicalNot(t.createPropertyAccessExpression(c,"done"))),t.createAssignment(p,t.createPropertyAccessExpression(l,"return"))),t.createExpressionStatement(t.createFunctionCallCall(p,l,[]))),1)]),void 0,fI(t.createBlock([fI(t.createIfStatement(d,t.createThrowStatement(t.createPropertyAccessExpression(d,"error"))),1)]),1))]))}function ke(e){return 0!==(8192&l.getNodeCheckFlags(e))}function we(e){return qD(e)&&!!e.initializer&&ke(e.initializer)}function ze(e){return qD(e)&&!!e.condition&&ke(e.condition)}function Ge(e){return qD(e)&&!!e.incrementor&&ke(e.incrementor)}function je(e){return Ve(e)||we(e)}function Ve(e){return 0!==(4096&l.getNodeCheckFlags(e))}function Ue(e,t){e.hoistedLocalVariables||(e.hoistedLocalVariables=[]),function t(n){if(80===n.kind)e.hoistedLocalVariables.push(n);else for(const e of n.elements)DD(e)||t(e.name)}(t.name)}function He(e,n,r){switch(e.kind){case 248:return function(e,n,r){const o=e.condition&&ke(e.condition),i=o||e.incrementor&&ke(e.incrementor);return t.updateForStatement(e,rB(n?n.part:e.initializer,x,Su),rB(o?void 0:e.condition,T,uu),rB(i?void 0:e.incrementor,x,uu),r)}(e,n,r);case 249:return function(e,n){return t.updateForInStatement(e,In.checkDefined(rB(e.initializer,T,Su)),In.checkDefined(rB(e.expression,T,uu)),n)}(e,r);case 250:return function(e,n){return t.updateForOfStatement(e,void 0,In.checkDefined(rB(e.initializer,T,Su)),In.checkDefined(rB(e.expression,T,uu)),n)}(e,r);case 246:return function(e,n){return t.updateDoStatement(e,n,In.checkDefined(rB(e.expression,T,uu)))}(e,r);case 247:return function(e,n){return t.updateWhileStatement(e,In.checkDefined(rB(e.expression,T,uu)),n)}(e,r);default:return In.failBadSyntaxKind(e,"IterationStatement expected")}}function Ke(e){return t.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function qe(e,n){const r=0===n?e.outParamName:e.originalName,o=0===n?e.originalName:e.outParamName;return t.createBinaryExpression(o,64,r)}function Je(e,n,r,o){for(const i of e)i.flags&n&&o.push(t.createExpressionStatement(qe(i,r)))}function Xe(e,t,n,r){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Map),e.labeledNonLocalBreaks.set(n,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Map),e.labeledNonLocalContinues.set(n,r))}function $e(e,n,r,o,i){e&&e.forEach(((e,a)=>{const s=[];if(!o||o.labels&&o.labels.get(a)){const e=t.createIdentifier(a);s.push(n?t.createBreakStatement(e):t.createContinueStatement(e))}else Xe(o,n,a,e),s.push(t.createReturnStatement(r));i.push(t.createCaseClause(t.createStringLiteral(e),s))}))}function Ye(e,n,r,o,i){const a=n.name;if(Vd(a))for(const t of a.elements)DD(t)||Ye(e,t,r,o,i);else{r.push(t.createParameterDeclaration(void 0,void 0,a));const s=l.getNodeCheckFlags(n);if(65536&s||i){const r=t.createUniqueName("out_"+kl(a));let i=0;65536&s&&(i|=1),qD(e)&&(e.initializer&&l.isBindingCapturedByNode(e.initializer,n)&&(i|=2),(e.condition&&l.isBindingCapturedByNode(e.condition,n)||e.incrementor&&l.isBindingCapturedByNode(e.incrementor,n))&&(i|=1)),o.push({flags:i,originalName:a,outParamName:r})}}}function Qe(e,n,r){const o=t.createAssignment(QM(t,n,In.checkDefined(rB(e.name,T,Ed))),In.checkDefined(rB(e.initializer,T,uu)));return yk(o,e),r&&xL(o),o}function Ze(e,n,r){const o=t.createAssignment(QM(t,n,In.checkDefined(rB(e.name,T,Ed))),t.cloneNode(e.name));return yk(o,e),r&&xL(o),o}function et(e,n,r,o){const i=t.createAssignment(QM(t,n,In.checkDefined(rB(e.name,T,Ed))),fe(e,e,void 0,r));return yk(i,e),o&&xL(i),i}function tt(e,r,o,i){const a=e.length,l=q(ie(e,nt,((e,t,n,r)=>t(e,o,i&&r===a))));if(1===l.length){const e=l[0];if(r&&!s.downlevelIteration||qx(e.expression)||wR(e.expression,"___spreadArray"))return e.expression}const c=n(),d=0!==l[0].kind;let u=d?t.createArrayLiteralExpression():l[0].expression;for(let t=d?0:1;t<l.length;t++){const e=l[t];u=c.createSpreadArrayHelper(u,e.expression,1===e.kind&&!r)}return u}function nt(e){return RD(e)?rt:it}function rt(e){return U(e,ot)}function ot(e){In.assertNode(e,RD);let t=rB(e.expression,T,uu);In.assert(t);const r=wR(t,"___read");let o=r||qx(t)?2:1;return!s.downlevelIteration||1!==o||aD(t)||r||(t=n().createReadHelper(t,void 0),o=2),Nj(o,t)}function it(e,n,r){return Nj(0,t.createArrayLiteralExpression(oB(t.createNodeArray(e,r),T,uu),n))}function at(){return t.createUniqueName("_super",48)}function st(e,n){const r=8&m&&!n?t.createPropertyAccessExpression(lI(at(),e),"prototype"):at();return lI(r,e),xI(r,e),yI(r,e),r}function lt(){0===(2&g)&&(g|=2,e.enableSubstitution(80))}function ct(e,n){return jb(n)?t.getInternalName(e):t.createPropertyAccessExpression(t.getInternalName(e),"prototype")}}var Lj=b({"src/compiler/transformers/es2015.ts"(){JJ()}});function kj(e){const{factory:t}=e,n=e.getCompilerOptions();let r,o;1!==n.jsx&&3!==n.jsx||(r=e.onEmitNode,e.onEmitNode=function(e,t,n){switch(t.kind){case 286:case 287:case 285:const e=t.tagName;o[zB(e)]=!0}r(e,t,n)},e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),o=[]);const i=e.onSubstituteNode;return e.onSubstituteNode=function(e,n){if(n.id&&o&&o[n.id])return i(e,n);if(lD(n=i(e,n)))return function(e){if(rC(e.name))return e;const n=a(e.name);if(n)return yk(t.createElementAccessExpression(e.expression,n),e);return e}(n);if(QN(n))return function(e){const n=nC(e.name)&&a(e.name);if(n)return t.updatePropertyAssignment(e,n,e.initializer);return e}(n);return n},e.enableSubstitution(211),e.enableSubstitution(303),GB(e,(function(e){return e}));function a(e){const n=Pl(e);if(void 0!==n&&n>=83&&n<=118)return yk(t.createStringLiteralFromNode(e),e)}}var Pj=b({"src/compiler/transformers/es5.ts"(){JJ()}});function wj(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:o,hoistFunctionDeclaration:i,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),l=jp(s),c=e.getEmitResolver(),d=e.onSubstituteNode;let u,p,f,m,_,h,g,y,v,b;e.onSubstituteNode=function(e,n){if(n=d(e,n),1===e)return function(e){if(nC(e))return function(e){if(!ud(e)&&u&&u.has(kl(e))){const n=Rl(e);if(nC(n)&&n.parent){const r=c.getReferencedValueDeclaration(n);if(r){const n=p[zB(r)];if(n){const r=Vx(yk(t.cloneNode(n),n),n.parent);return yI(r,e),xI(r,e),r}}}}return e}(e);return e}(n);return n};let E,S,T,A,I,R,C,D,N,M,L,k,P=1,w=0,O=0;return GB(e,(function(t){if(t.isDeclarationFile||0===(2048&t.transformFlags))return t;const n=fB(t,F,e);return wI(n,e.readEmitHelpers()),n}));function F(t){const n=t.transformFlags;return m?function(t){switch(t.kind){case 246:case 247:return function(t){return m?(ae(),t=fB(t,F,e),le(),t):fB(t,F,e)}(t);case 255:return function(t){m&&ne({kind:2,isScript:!0,breakLabel:-1});t=fB(t,F,e),m&&ce();return t}(t);case 256:return function(t){m&&ne({kind:4,isScript:!0,labelText:kl(t.label),breakLabel:-1});t=fB(t,F,e),m&&de();return t}(t);default:return W(t)}}(t):f?W(t):Ad(t)&&t.asteriskToken?function(e){switch(e.kind){case 262:return z(e);case 218:return B(e);default:return In.failBadSyntaxKind(e)}}(t):2048&n?fB(t,F,e):t}function W(r){switch(r.kind){case 262:return z(r);case 218:return B(r);case 177:case 178:return function(t){const n=f,r=m;return f=!1,m=!1,t=fB(t,F,e),f=n,m=r,t}(r);case 243:return function(e){if(1048576&e.transformFlags)return void J(e.declarationList);{if(2097152&Rm(e))return e;for(const t of e.declarationList.declarations)a(t.name);const n=dS(e.declarationList);if(0===n.length)return;return yI(t.createExpressionStatement(t.inlineExpressions(U(n,X))),e)}}(r);case 248:return function(n){m&&ae();const r=n.initializer;if(r&&aN(r)){for(const e of r.declarations)a(e.name);const o=dS(r);n=t.updateForStatement(n,o.length>0?t.inlineExpressions(U(o,X)):void 0,rB(n.condition,F,uu),rB(n.incrementor,F,uu),uB(n.statement,F,e))}else n=fB(n,F,e);m&&le();return n}(r);case 249:return function(n){m&&ae();const r=n.initializer;if(aN(r)){for(const e of r.declarations)a(e.name);n=t.updateForInStatement(n,r.declarations[0].name,In.checkDefined(rB(n.expression,F,uu)),In.checkDefined(rB(n.statement,F,wu,t.liftToBlock)))}else n=fB(n,F,e);m&&le();return n}(r);case 252:return function(t){if(m){const e=_e(t.label&&kl(t.label));if(e>0)return ve(e,t)}return fB(t,F,e)}(r);case 251:return function(t){if(m){const e=he(t.label&&kl(t.label));if(e>0)return ve(e,t)}return fB(t,F,e)}(r);case 253:return function(e){return n=rB(e.expression,F,uu),r=e,yk(t.createReturnStatement(t.createArrayLiteralExpression(n?[ye(2),n]:[ye(2)])),r);var n,r}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 226:return function(n){const r=xv(n);switch(r){case 0:return function(n){if($(n.right))return cE(n.operatorToken.kind)?function(e){const t=ee(),n=Z();Se(n,In.checkDefined(rB(e.left,F,uu)),e.left),56===e.operatorToken.kind?Ae(t,n,e.left):xe(t,n,e.left);return Se(n,In.checkDefined(rB(e.right,F,uu)),e.right),te(t),n}(n):28===n.operatorToken.kind?j(n):t.updateBinaryExpression(n,Q(In.checkDefined(rB(n.left,F,uu))),n.operatorToken,In.checkDefined(rB(n.right,F,uu)));return fB(n,F,e)}(n);case 1:return function(n){const{left:r,right:o}=n;if($(o)){let e;switch(r.kind){case 211:e=t.updatePropertyAccessExpression(r,Q(In.checkDefined(rB(r.expression,F,iu))),r.name);break;case 212:e=t.updateElementAccessExpression(r,Q(In.checkDefined(rB(r.expression,F,iu))),Q(In.checkDefined(rB(r.argumentExpression,F,uu))));break;default:e=In.checkDefined(rB(r,F,uu))}const i=n.operatorToken.kind;return $B(i)?yk(t.createAssignment(e,yk(t.createBinaryExpression(Q(e),YB(i),In.checkDefined(rB(o,F,uu))),n)),n):t.updateBinaryExpression(n,e,n.operatorToken,In.checkDefined(rB(o,F,uu)))}return fB(n,F,e)}(n);default:return In.assertNever(r)}}(r);case 361:return function(e){let n=[];for(const r of e.elements)TD(r)&&28===r.operatorToken.kind?n.push(j(r)):($(r)&&n.length>0&&(Ie(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(In.checkDefined(rB(r,F,uu))));return t.inlineExpressions(n)}(r);case 227:return function(t){if($(t.whenTrue)||$(t.whenFalse)){const e=ee(),n=ee(),r=Z();return Ae(e,In.checkDefined(rB(t.condition,F,uu)),t.condition),Se(r,In.checkDefined(rB(t.whenTrue,F,uu)),t.whenTrue),Te(n),te(e),Se(r,In.checkDefined(rB(t.whenFalse,F,uu)),t.whenFalse),te(n),r}return fB(t,F,e)}(r);case 229:return function(e){const r=ee(),o=rB(e.expression,F,uu);if(e.asteriskToken){!function(e,t){Ie(7,[e],t)}(0===(8388608&Rm(e.expression))?yk(n().createValuesHelper(o),e):o,e)}else!function(e,t){Ie(6,[e],t)}(o,e);return te(r),function(e){return yk(t.createCallExpression(t.createPropertyAccessExpression(A,"sent"),void 0,[]),e)}(e)}(r);case 209:return function(e){return V(e.elements,void 0,void 0,e.multiLine)}(r);case 210:return function(e){const n=e.properties,r=e.multiLine,o=Y(n),i=Z();Se(i,t.createObjectLiteralExpression(oB(n,F,Bd,0,o),r));const a=Ue(n,s,[],o);return a.push(r?xL(Vx(yk(t.cloneNode(i),i),i.parent)):i),t.inlineExpressions(a);function s(n,o){$(o)&&n.length>0&&(Ee(t.createExpressionStatement(t.inlineExpressions(n))),n=[]);const a=rB(lL(t,e,o,i),F,uu);return a&&(r&&xL(a),n.push(a)),n}}(r);case 212:return function(n){if($(n.argumentExpression))return t.updateElementAccessExpression(n,Q(In.checkDefined(rB(n.expression,F,iu))),In.checkDefined(rB(n.argumentExpression,F,uu)));return fB(n,F,e)}(r);case 213:return function(n){if(!L_(n)&&x(n.arguments,$)){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a,l,!0);return lI(yk(t.createFunctionApplyCall(Q(In.checkDefined(rB(e,F,iu))),r,V(n.arguments)),n),n)}return fB(n,F,e)}(r);case 214:return function(n){if(x(n.arguments,$)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return lI(yk(t.createNewExpression(t.createFunctionApplyCall(Q(In.checkDefined(rB(e,F,uu))),r,V(n.arguments,t.createVoidZero())),void 0,[]),n),n)}return fB(n,F,e)}(r);default:return fB(r,F,e)}}(r):4196352&r.transformFlags?fB(r,F,e):r}}function z(n){if(n.asteriskToken)n=lI(yk(t.createFunctionDeclaration(n.modifiers,void 0,n.name,void 0,lB(n.parameters,F,e),void 0,G(n.body)),n),n);else{const t=f,r=m;f=!1,m=!1,n=fB(n,F,e),f=t,m=r}return f?void i(n):n}function B(n){if(n.asteriskToken)n=lI(yk(t.createFunctionExpression(void 0,void 0,n.name,void 0,lB(n.parameters,F,e),void 0,G(n.body)),n),n);else{const t=f,r=m;f=!1,m=!1,n=fB(n,F,e),f=t,m=r}return n}function G(e){const i=[],a=f,s=m,l=_,c=h,d=g,u=y,p=v,x=b,W=P,z=E,B=S,G=T,j=A;f=!0,m=!1,_=void 0,h=void 0,g=void 0,y=void 0,v=void 0,b=void 0,P=1,E=void 0,S=void 0,T=void 0,A=t.createTempVariable(void 0),r();const V=t.copyPrologue(e.statements,i,!1,F);H(e.statements,V);const U=function(){w=0,O=0,I=void 0,R=!1,C=!1,D=void 0,N=void 0,M=void 0,L=void 0,k=void 0;const e=function(){if(E){for(let e=0;e<E.length;e++)Ne(e);Re(E.length)}else Re(0);if(D){const e=t.createPropertyAccessExpression(A,"label");return[xL(t.createSwitchStatement(e,t.createCaseBlock(D)))]}if(N)return N;return[]}();return n().createGeneratorHelper(fI(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,A)],void 0,t.createBlock(e,e.length>0)),1048576))}();return pm(i,o()),i.push(t.createReturnStatement(U)),f=a,m=s,_=l,h=c,g=d,y=u,v=p,b=x,P=W,E=z,S=B,T=G,A=j,yk(t.createBlock(i,e.multiLine),e)}function j(e){let n=[];return r(e.left),r(e.right),t.inlineExpressions(n);function r(e){TD(e)&&28===e.operatorToken.kind?(r(e.left),r(e.right)):($(e)&&n.length>0&&(Ie(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(In.checkDefined(rB(e,F,uu))))}}function V(e,n,r,o){const i=Y(e);let a;if(i>0){a=Z();const r=oB(e,F,uu,0,i);Se(a,t.createArrayLiteralExpression(n?[n,...r]:r)),n=void 0}const s=Ue(e,(function(e,r){if($(r)&&e.length>0){const r=void 0!==a;a||(a=Z()),Se(a,r?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(e,o)]):t.createArrayLiteralExpression(n?[n,...e]:e,o)),n=void 0,e=[]}return e.push(In.checkDefined(rB(r,F,uu))),e}),[],i);return a?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(s,o)]):yk(t.createArrayLiteralExpression(n?[n,...s]:s,o),r)}function H(e,t=0){const n=e.length;for(let r=t;r<n;r++)q(e[r])}function K(e){BD(e)?H(e.statements):q(e)}function q(n){const r=m;m||(m=$(n)),function(n){switch(n.kind){case 241:return function(e){$(e)?H(e.statements):Ee(rB(e,F,wu))}(n);case 244:return function(e){Ee(rB(e,F,wu))}(n);case 245:return function(e){if($(e))if($(e.thenStatement)||$(e.elseStatement)){const t=ee(),n=e.elseStatement?ee():void 0;Ae(e.elseStatement?n:t,In.checkDefined(rB(e.expression,F,uu)),e.expression),K(e.thenStatement),e.elseStatement&&(Te(t),te(n),K(e.elseStatement)),te(t)}else Ee(rB(e,F,wu));else Ee(rB(e,F,wu))}(n);case 246:return function(e){if($(e)){const t=ee(),n=ee();se(t),te(n),K(e.statement),te(t),xe(n,In.checkDefined(rB(e.expression,F,uu))),le()}else Ee(rB(e,F,wu))}(n);case 247:return function(e){if($(e)){const t=ee(),n=se(t);te(t),Ae(n,In.checkDefined(rB(e.expression,F,uu))),K(e.statement),Te(t),le()}else Ee(rB(e,F,wu))}(n);case 248:return function(e){if($(e)){const n=ee(),r=ee(),o=se(r);if(e.initializer){const n=e.initializer;aN(n)?J(n):Ee(yk(t.createExpressionStatement(In.checkDefined(rB(n,F,uu))),n))}te(n),e.condition&&Ae(o,In.checkDefined(rB(e.condition,F,uu))),K(e.statement),te(r),e.incrementor&&Ee(yk(t.createExpressionStatement(In.checkDefined(rB(e.incrementor,F,uu))),e.incrementor)),Te(n),le()}else Ee(rB(e,F,wu))}(n);case 249:return function(e){if($(e)){const n=Z(),r=Z(),o=Z(),i=t.createLoopVariable(),s=e.initializer;a(i),Se(n,In.checkDefined(rB(e.expression,F,uu))),Se(r,t.createArrayLiteralExpression()),Ee(t.createForInStatement(o,n,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(r,"push"),void 0,[o])))),Se(i,t.createNumericLiteral(0));const l=ee(),c=ee(),d=se(c);let u;if(te(l),Ae(d,t.createLessThan(i,t.createPropertyAccessExpression(r,"length"))),Se(o,t.createElementAccessExpression(r,i)),Ae(c,t.createBinaryExpression(o,103,n)),aN(s)){for(const e of s.declarations)a(e.name);u=t.cloneNode(s.declarations[0].name)}else u=In.checkDefined(rB(s,F,uu)),In.assert(iu(u));Se(u,o),K(e.statement),te(c),Ee(t.createExpressionStatement(t.createPostfixIncrement(i))),Te(l),le()}else Ee(rB(e,F,wu))}(n);case 251:return function(e){const t=he(e.label?kl(e.label):void 0);t>0?Te(t,e):Ee(e)}(n);case 252:return function(e){const t=_e(e.label?kl(e.label):void 0);t>0?Te(t,e):Ee(e)}(n);case 253:return function(e){t=rB(e.expression,F,uu),n=e,Ie(8,[t],n);var t,n}(n);case 254:return function(e){$(e)?(function(e){const t=ee(),n=ee();te(t),ne({kind:1,expression:e,startLabel:t,endLabel:n})}(Q(In.checkDefined(rB(e.expression,F,uu)))),K(e.statement),function(){In.assert(1===ie());te(re().endLabel)}()):Ee(rB(e,F,wu))}(n);case 255:return function(e){if($(e.caseBlock)){const n=e.caseBlock,r=n.clauses.length,o=function(){const e=ee();return ne({kind:2,isScript:!1,breakLabel:e}),e}(),i=Q(In.checkDefined(rB(e.expression,F,uu))),a=[];let s=-1;for(let e=0;e<r;e++){const t=n.clauses[e];a.push(ee()),297===t.kind&&-1===s&&(s=e)}let l=0,c=[];for(;l<r;){let e=0;for(let o=l;o<r;o++){const r=n.clauses[o];if(296===r.kind){if($(r.expression)&&c.length>0)break;c.push(t.createCaseClause(In.checkDefined(rB(r.expression,F,uu)),[ve(a[o],r.expression)]))}else e++}c.length&&(Ee(t.createSwitchStatement(i,t.createCaseBlock(c))),l+=c.length,c=[]),e>0&&(l+=e,e=0)}Te(s>=0?a[s]:o);for(let e=0;e<r;e++)te(a[e]),H(n.clauses[e].statements);ce()}else Ee(rB(e,F,wu))}(n);case 256:return function(e){$(e)?(!function(e){const t=ee();ne({kind:4,isScript:!1,labelText:e,breakLabel:t})}(kl(e.label)),K(e.statement),de()):Ee(rB(e,F,wu))}(n);case 257:return function(e){n=In.checkDefined(rB(e.expression??t.createVoidZero(),F,uu)),r=e,Ie(9,[n],r);var n,r}(n);case 258:return function(n){$(n)?(function(){const e=ee(),t=ee();te(e),ne({kind:0,state:0,startLabel:e,endLabel:t}),be()}(),K(n.tryBlock),n.catchClause&&(!function(n){let r;if(In.assert(0===ie()),ud(n.name))r=n.name,a(n.name);else{const t=kl(n.name);r=Z(t),u||(u=new Map,p=[],e.enableSubstitution(80)),u.set(t,!0),p[zB(n)]=r}const o=oe();In.assert(o.state<1);Te(o.endLabel);const i=ee();te(i),o.state=1,o.catchVariable=r,o.catchLabel=i,Se(r,t.createCallExpression(t.createPropertyAccessExpression(A,"sent"),void 0,[])),be()}(n.catchClause.variableDeclaration),K(n.catchClause.block)),n.finallyBlock&&(!function(){In.assert(0===ie());const e=oe();In.assert(e.state<2);Te(e.endLabel);const t=ee();te(t),e.state=2,e.finallyLabel=t}(),K(n.finallyBlock)),function(){In.assert(0===ie());const e=re();e.state<2?Te(e.endLabel):Ie(10);te(e.endLabel),be(),e.state=3}()):Ee(fB(n,F,e))}(n);default:Ee(rB(n,F,wu))}}(n),m=r}function J(e){for(const s of e.declarations){const e=t.cloneNode(s.name);xI(e,s.name),a(e)}const n=dS(e),r=n.length;let o=0,i=[];for(;o<r;){for(let e=o;e<r;e++){const t=n[e];if($(t.initializer)&&i.length>0)break;i.push(X(t))}i.length&&(Ee(t.createExpressionStatement(t.inlineExpressions(i))),o+=i.length,i=[])}}function X(e){return yI(t.createAssignment(yI(t.cloneNode(e.name),e.name),In.checkDefined(rB(e.initializer,F,uu))),e)}function $(e){return!!e&&0!==(1048576&e.transformFlags)}function Y(e){const t=e.length;for(let n=0;n<t;n++)if($(e[n]))return n;return-1}function Q(e){if(ud(e)||8192&Rm(e))return e;const n=t.createTempVariable(a);return Se(n,e,e),n}function Z(e){const n=e?t.createUniqueName(e):t.createTempVariable(void 0);return a(n),n}function ee(){v||(v=[]);const e=P;return P++,v[e]=-1,e}function te(e){In.assert(void 0!==v,"No labels were defined."),v[e]=E?E.length:0}function ne(e){_||(_=[],g=[],h=[],y=[]);const t=g.length;return g[t]=0,h[t]=E?E.length:0,_[t]=e,y.push(e),t}function re(){const e=oe();if(void 0===e)return In.fail("beginBlock was never called.");const t=g.length;return g[t]=1,h[t]=E?E.length:0,_[t]=e,y.pop(),e}function oe(){return Oe(y)}function ie(){const e=oe();return e&&e.kind}function ae(){ne({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function se(e){const t=ee();return ne({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function le(){In.assert(3===ie());const e=re(),t=e.breakLabel;e.isScript||te(t)}function ce(){In.assert(2===ie());const e=re(),t=e.breakLabel;e.isScript||te(t)}function de(){In.assert(4===ie());const e=re();e.isScript||te(e.breakLabel)}function ue(e){return 2===e.kind||3===e.kind}function pe(e){return 4===e.kind}function fe(e){return 3===e.kind}function me(e,t){for(let n=t;n>=0;n--){const t=y[n];if(!pe(t))break;if(t.labelText===e)return!0}return!1}function _e(e){if(y)if(e)for(let t=y.length-1;t>=0;t--){const n=y[t];if(pe(n)&&n.labelText===e)return n.breakLabel;if(ue(n)&&me(e,t-1))return n.breakLabel}else for(let t=y.length-1;t>=0;t--){const e=y[t];if(ue(e))return e.breakLabel}return 0}function he(e){if(y)if(e)for(let t=y.length-1;t>=0;t--){const n=y[t];if(fe(n)&&me(e,t-1))return n.continueLabel}else for(let t=y.length-1;t>=0;t--){const e=y[t];if(fe(e))return e.continueLabel}return 0}function ge(e){if(void 0!==e&&e>0){void 0===b&&(b=[]);const n=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return void 0===b[e]?b[e]=[n]:b[e].push(n),n}return t.createOmittedExpression()}function ye(e){const n=t.createNumericLiteral(e);return NI(n,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(e)),n}function ve(e,n){return In.assertLessThan(0,e,"Invalid label"),yk(t.createReturnStatement(t.createArrayLiteralExpression([ye(3),ge(e)])),n)}function be(){Ie(0)}function Ee(e){e?Ie(1,[e]):be()}function Se(e,t,n){Ie(2,[e,t],n)}function Te(e,t){Ie(3,[e],t)}function xe(e,t,n){Ie(4,[e,t],n)}function Ae(e,t,n){Ie(5,[e,t],n)}function Ie(e,t,n){void 0===E&&(E=[],S=[],T=[]),void 0===v&&te(ee());const r=E.length;E[r]=e,S[r]=t,T[r]=n}function Re(e){(function(e){if(!C)return!0;if(!v||!b)return!1;for(let t=0;t<v.length;t++)if(v[t]===e&&b[t])return!0;return!1})(e)&&(De(e),k=void 0,Le(void 0,void 0)),N&&D&&Ce(!1),function(){if(void 0!==b&&void 0!==I)for(let e=0;e<I.length;e++){const t=I[e];if(void 0!==t)for(const n of t){const t=b[n];if(void 0!==t)for(const n of t)n.text=String(e)}}}()}function Ce(e){if(D||(D=[]),N){if(k)for(let e=k.length-1;e>=0;e--){const n=k[e];N=[t.createWithStatement(n.expression,t.createBlock(N))]}if(L){const{startLabel:e,catchLabel:n,finallyLabel:r,endLabel:o}=L;N.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(A,"trys"),"push"),void 0,[t.createArrayLiteralExpression([ge(e),ge(n),ge(r),ge(o)])]))),L=void 0}e&&N.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(A,"label"),t.createNumericLiteral(O+1))))}D.push(t.createCaseClause(t.createNumericLiteral(O),N||[])),N=void 0}function De(e){if(v)for(let t=0;t<v.length;t++)v[t]===e&&(N&&(Ce(!R),R=!1,C=!1,O++),void 0===I&&(I=[]),void 0===I[O]?I[O]=[t]:I[O].push(t))}function Ne(e){if(De(e),function(e){if(_)for(;w<g.length&&h[w]<=e;w++){const e=_[w],t=g[w];switch(e.kind){case 0:0===t?(M||(M=[]),N||(N=[]),M.push(L),L=e):1===t&&(L=M.pop());break;case 1:0===t?(k||(k=[]),k.push(e)):1===t&&k.pop()}}}(e),R)return;R=!1,C=!1;const n=E[e];if(0===n)return;if(10===n)return R=!0,void Me(t.createReturnStatement(t.createArrayLiteralExpression([ye(7)])));const r=S[e];if(1===n)return Me(r[0]);const o=T[e];switch(n){case 2:return i=r[0],a=r[1],s=o,void Me(yk(t.createExpressionStatement(t.createAssignment(i,a)),s));case 3:return function(e,n){R=!0,Me(fI(yk(t.createReturnStatement(t.createArrayLiteralExpression([ye(3),ge(e)])),n),768))}(r[0],o);case 4:return function(e,n,r){Me(fI(t.createIfStatement(n,fI(yk(t.createReturnStatement(t.createArrayLiteralExpression([ye(3),ge(e)])),r),768)),1))}(r[0],r[1],o);case 5:return function(e,n,r){Me(fI(t.createIfStatement(t.createLogicalNot(n),fI(yk(t.createReturnStatement(t.createArrayLiteralExpression([ye(3),ge(e)])),r),768)),1))}(r[0],r[1],o);case 6:return function(e,n){R=!0,Me(fI(yk(t.createReturnStatement(t.createArrayLiteralExpression(e?[ye(4),e]:[ye(4)])),n),768))}(r[0],o);case 7:return function(e,n){R=!0,Me(fI(yk(t.createReturnStatement(t.createArrayLiteralExpression([ye(5),e])),n),768))}(r[0],o);case 8:return Le(r[0],o);case 9:return function(e,n){R=!0,C=!0,Me(yk(t.createThrowStatement(e),n))}(r[0],o)}var i,a,s}function Me(e){e&&(N?N.push(e):N=[e])}function Le(e,n){R=!0,C=!0,Me(fI(yk(t.createReturnStatement(t.createArrayLiteralExpression(e?[ye(2),e]:[ye(2)])),n),768))}}var Oj,Fj=b({"src/compiler/transformers/generators.ts"(){JJ()}});function Wj(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),c=e.getEmitHost(),d=jp(s),u=Vp(s),p=e.onSubstituteNode,f=e.onEmitNode;e.onSubstituteNode=function(e,n){if((n=p(e,n)).id&&g[n.id])return n;if(1===e)return function(e){switch(e.kind){case 80:return $(e);case 213:return function(e){if(nC(e.expression)){const n=$(e.expression);if(g[Hz(n)]=!0,!nC(n)&&!(8192&Rm(e.expression)))return hI(t.updateCallExpression(e,n,void 0,e.arguments),16)}return e}(e);case 215:return function(e){if(nC(e.tag)){const n=$(e.tag);if(g[Hz(n)]=!0,!nC(n)&&!(8192&Rm(e.tag)))return hI(t.updateTaggedTemplateExpression(e,n,void 0,e.template),16)}return e}(e);case 226:return function(e){if(mE(e.operatorToken.kind)&&nC(e.left)&&(!ud(e.left)||fd(e.left))&&!uL(e.left)){const t=Y(e.left);if(t){let n=e;for(const r of t)g[Hz(n)]=!0,n=J(r,n,e);return n}}return e}(e)}return e}(n);if(ZN(n))return function(e){const n=e.name,r=$(n);if(r!==n){if(e.objectAssignmentInitializer){const o=t.createAssignment(r,e.objectAssignmentInitializer);return yk(t.createPropertyAssignment(n,o),e)}return yk(t.createPropertyAssignment(n,r),e)}return e}(n);return n},e.onEmitNode=function(e,t,n){312===t.kind?(_=t,h=m[zB(_)],f(e,t,n),_=void 0,h=void 0):f(e,t,n)},e.enableSubstitution(213),e.enableSubstitution(215),e.enableSubstitution(80),e.enableSubstitution(226),e.enableSubstitution(304),e.enableEmitNotification(312);const m=[];let _,h;const g=[];let y;return GB(e,(function(t){if(t.isDeclarationFile||!(Um(t,s)||8388608&t.transformFlags||x_(t)&&ET(s)&&ob(s)))return t;_=t,h=HB(e,t),m[zB(t)]=h;const n=function(e){switch(e){case 2:return E;case 3:return S;default:return b}}(u)(t);return _=void 0,h=void 0,y=!1,n}));function v(){return!(h.exportEquals||!uP(_))}function b(n){r();const o=[],a=IT(s,"alwaysStrict")||!s.noImplicitUseStrict&&uP(_),l=t.copyPrologue(n.statements,o,a&&!x_(n),C);if(v()&&Ee(o,K()),T(h.exportedNames)){const e=50;for(let n=0;n<h.exportedNames.length;n+=e)Ee(o,t.createExpressionStatement(Ue(h.exportedNames.slice(n,n+e),((e,n)=>t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(kl(n))),e)),t.createVoidZero())))}Ee(o,rB(h.externalHelpersImportDeclaration,C,wu)),xe(o,oB(n.statements,C,wu,l)),R(o,!1),pm(o,i());const c=t.updateSourceFile(n,yk(t.createNodeArray(o),n.statements));return wI(c,e.readEmitHelpers()),c}function E(n){const r=t.createIdentifier("define"),i=ML(t,n,c,s),a=x_(n)&&n,{aliasedModuleNames:l,unaliasedModuleNames:d,importAliasNames:u}=x(n,!0),p=t.updateSourceFile(n,yk(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(r,void 0,[...i?[i]:[],t.createArrayLiteralExpression(a?o:[t.createStringLiteral("require"),t.createStringLiteral("exports"),...l,...d]),a?a.statements.length?a.statements[0].expression:t.createObjectLiteralExpression():t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...u],void 0,I(n))]))]),n.statements));return wI(p,e.readEmitHelpers()),p}function S(n){const{aliasedModuleNames:r,unaliasedModuleNames:o,importAliasNames:i}=x(n,!1),a=ML(t,n,c,s),l=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"factory")],void 0,yk(t.createBlock([t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("module"),"object"),t.createTypeCheck(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),"object")),t.createBlock([t.createVariableStatement(void 0,[t.createVariableDeclaration("v",void 0,void 0,t.createCallExpression(t.createIdentifier("factory"),void 0,[t.createIdentifier("require"),t.createIdentifier("exports")]))]),fI(t.createIfStatement(t.createStrictInequality(t.createIdentifier("v"),t.createIdentifier("undefined")),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),t.createIdentifier("v")))),1)]),t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("define"),"function"),t.createPropertyAccessExpression(t.createIdentifier("define"),"amd")),t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("define"),void 0,[...a?[a]:[],t.createArrayLiteralExpression([t.createStringLiteral("require"),t.createStringLiteral("exports"),...r,...o]),t.createIdentifier("factory")]))])))],!0),void 0)),d=t.updateSourceFile(n,yk(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(l,void 0,[t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...i],void 0,I(n))]))]),n.statements));return wI(d,e.readEmitHelpers()),d}function x(e,n){const r=[],o=[],i=[];for(const a of e.amdDependencies)a.name?(r.push(t.createStringLiteral(a.path)),i.push(t.createParameterDeclaration(void 0,void 0,a.name))):o.push(t.createStringLiteral(a.path));for(const a of h.externalImports){const e=NL(t,a,_,c,l,s),d=DL(t,a,_);e&&(n&&d?(fI(d,8),r.push(e),i.push(t.createParameterDeclaration(void 0,void 0,d))):o.push(e))}return{aliasedModuleNames:r,unaliasedModuleNames:o,importAliasNames:i}}function A(e){if(hN(e)||DN(e)||!NL(t,e,_,c,l,s))return;const n=DL(t,e,_),r=F(e,n);return r!==n?t.createExpressionStatement(t.createAssignment(n,r)):void 0}function I(e){r();const n=[],o=t.copyPrologue(e.statements,n,!s.noImplicitUseStrict,C);v()&&Ee(n,K()),T(h.exportedNames)&&Ee(n,t.createExpressionStatement(Ue(h.exportedNames,((e,n)=>t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(kl(n))),e)),t.createVoidZero()))),Ee(n,rB(h.externalHelpersImportDeclaration,C,wu)),2===u&&xe(n,Z(h.externalImports,A)),xe(n,oB(e.statements,C,wu,o)),R(n,!0),pm(n,i());const a=t.createBlock(n,!0);return y&&PI(a,Oj),a}function R(e,n){if(h.exportEquals){const r=rB(h.exportEquals.expression,M,uu);if(r)if(n){const n=t.createReturnStatement(r);yk(n,h.exportEquals),fI(n,3840),e.push(n)}else{const n=t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),r));yk(n,h.exportEquals),fI(n,3072),e.push(n)}}}function C(e){switch(e.kind){case 272:return function(e){let n;const r=Gg(e);if(2!==u){if(!e.importClause)return lI(yk(t.createExpressionStatement(W(e)),e),e);{const o=[];r&&!jg(e)?o.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,F(e,W(e)))):(o.push(t.createVariableDeclaration(t.getGeneratedNameForNode(e),void 0,void 0,F(e,W(e)))),r&&jg(e)&&o.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)))),n=Ee(n,lI(yk(t.createVariableStatement(void 0,t.createVariableDeclarationList(o,d>=2?2:0)),e),e))}}else r&&jg(e)&&(n=Ee(n,t.createVariableStatement(void 0,t.createVariableDeclarationList([lI(yk(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)),e),e)],d>=2?2:0))));return n=function(e,t){if(h.exportEquals)return e;const n=t.importClause;if(!n)return e;const r=new OB;n.name&&(e=U(e,r,n));const o=n.namedBindings;if(o)switch(o.kind){case 274:e=U(e,r,o);break;case 275:for(const t of o.elements)e=U(e,r,t,!0)}return e}(n,e),Be(n)}(e);case 271:return function(e){let n;In.assert(Uh(e),"import= for internal module references should be handled in an earlier transformer."),2!==u?n=Gb(e,32)?Ee(n,lI(yk(t.createExpressionStatement(J(e.name,W(e))),e),e)):Ee(n,lI(yk(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,W(e))],d>=2?2:0)),e),e)):Gb(e,32)&&(n=Ee(n,lI(yk(t.createExpressionStatement(J(t.getExportName(e),t.getLocalName(e))),e),e)));return n=function(e,t){if(h.exportEquals)return e;return U(e,new OB,t)}(n,e),Be(n)}(e);case 278:return function(e){if(!e.moduleSpecifier)return;const r=t.getGeneratedNameForNode(e);if(e.exportClause&&NN(e.exportClause)){const o=[];2!==u&&o.push(lI(yk(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,W(e))])),e),e));for(const i of e.exportClause.elements)if(0===d)o.push(lI(yk(t.createExpressionStatement(n().createCreateBindingHelper(r,t.createStringLiteralFromNode(i.propertyName||i.name),i.propertyName?t.createStringLiteralFromNode(i.name):void 0)),i),i));else{const a=!!qp(s)&&!(2&Cm(e))&&"default"===kl(i.propertyName||i.name),l=t.createPropertyAccessExpression(a?n().createImportDefaultHelper(r):r,i.propertyName||i.name);o.push(lI(yk(t.createExpressionStatement(J(t.getExportName(i),l,void 0,!0)),i),i))}return Be(o)}if(e.exportClause){const o=[];return o.push(lI(yk(t.createExpressionStatement(J(t.cloneNode(e.exportClause.name),function(e,t){if(!qp(s)||2&Cm(e))return t;if(jB(e))return n().createImportStarHelper(t);return t}(e,2!==u?W(e):Sm(e)?r:t.createIdentifier(kl(e.exportClause.name))))),e),e)),Be(o)}return lI(yk(t.createExpressionStatement(n().createExportStarHelper(2!==u?W(e):r)),e),e)}(e);case 277:return function(e){if(e.isExportEquals)return;return q(t.createIdentifier("default"),rB(e.expression,M,uu),e,!0)}(e);default:return D(e)}}function D(n){switch(n.kind){case 243:return function(n){let r,o,i;if(Gb(n,32)){let e,a=!1;for(const r of n.declarationList.declarations)if(nC(r.name)&&uL(r.name))if(e||(e=oB(n.modifiers,X,vd)),r.initializer){o=Ee(o,t.updateVariableDeclaration(r,r.name,void 0,void 0,J(r.name,rB(r.initializer,M,uu))))}else o=Ee(o,r);else if(r.initializer)if(!Vd(r.name)&&(hD(r.initializer)||_D(r.initializer)||CD(r.initializer))){const e=t.createAssignment(yk(t.createPropertyAccessExpression(t.createIdentifier("exports"),r.name),r.name),t.createIdentifier(sv(r.name)));o=Ee(o,t.createVariableDeclaration(r.name,r.exclamationToken,r.type,rB(r.initializer,M,uu))),i=Ee(i,e),a=!0}else i=Ee(i,B(r));if(o&&(r=Ee(r,t.updateVariableStatement(n,e,t.updateVariableDeclarationList(n.declarationList,o)))),i){const e=lI(yk(t.createExpressionStatement(t.inlineExpressions(i)),n),n);a&&pI(e),r=Ee(r,e)}}else r=Ee(r,fB(n,M,e));return r=function(e,t){return G(e,t.declarationList,!1)}(r,n),Be(r)}(n);case 262:return function(n){let r;r=Gb(n,32)?Ee(r,lI(yk(t.createFunctionDeclaration(oB(n.modifiers,X,vd),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,oB(n.parameters,M,bC),void 0,fB(n.body,M,e)),n),n)):Ee(r,fB(n,M,e));return r=V(r,n),Be(r)}(n);case 263:return function(n){let r;r=Gb(n,32)?Ee(r,lI(yk(t.createClassDeclaration(oB(n.modifiers,X,Fd),t.getDeclarationName(n,!0,!0),void 0,oB(n.heritageClauses,M,$N),oB(n.members,M,Nd)),n),n)):Ee(r,fB(n,M,e));return r=V(r,n),Be(r)}(n);case 248:return P(n,!0);case 249:return function(n){if(aN(n.initializer)&&!(7&n.initializer.flags)){const r=G(void 0,n.initializer,!0);if(se(r)){const o=rB(n.initializer,L,Su),i=rB(n.expression,M,uu),a=uB(n.statement,D,e),s=BD(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0);return t.updateForInStatement(n,o,i,s)}}return t.updateForInStatement(n,rB(n.initializer,L,Su),rB(n.expression,M,uu),uB(n.statement,D,e))}(n);case 250:return function(n){if(aN(n.initializer)&&!(7&n.initializer.flags)){const r=G(void 0,n.initializer,!0),o=rB(n.initializer,L,Su),i=rB(n.expression,M,uu);let a=uB(n.statement,D,e);return se(r)&&(a=BD(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0)),t.updateForOfStatement(n,n.awaitModifier,o,i,a)}return t.updateForOfStatement(n,n.awaitModifier,rB(n.initializer,L,Su),rB(n.expression,M,uu),uB(n.statement,D,e))}(n);case 246:return function(n){return t.updateDoStatement(n,uB(n.statement,D,e),rB(n.expression,M,uu))}(n);case 247:return function(n){return t.updateWhileStatement(n,rB(n.expression,M,uu),uB(n.statement,D,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,In.checkDefined(rB(e.statement,D,wu,t.liftToBlock)))}(n);case 254:return function(e){return t.updateWithStatement(e,rB(e.expression,M,uu),In.checkDefined(rB(e.statement,D,wu,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,rB(e.expression,M,uu),In.checkDefined(rB(e.thenStatement,D,wu,t.liftToBlock)),rB(e.elseStatement,D,wu,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,rB(e.expression,M,uu),In.checkDefined(rB(e.caseBlock,D,mN)))}(n);case 269:return function(e){return t.updateCaseBlock(e,oB(e.clauses,D,Vu))}(n);case 296:return function(e){return t.updateCaseClause(e,rB(e.expression,M,uu),oB(e.statements,D,wu))}(n);case 297:case 258:return function(t){return fB(t,D,e)}(n);case 299:return function(e){return t.updateCatchClause(e,e.variableDeclaration,In.checkDefined(rB(e.block,D,BD)))}(n);case 241:return function(t){return t=fB(t,D,e),t}(n);default:return M(n)}}function N(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 248:return P(n,!1);case 244:return function(e){return t.updateExpressionStatement(e,rB(e.expression,L,uu))}(n);case 217:return function(e,n){return t.updateParenthesizedExpression(e,rB(e.expression,n?L:M,uu))}(n,r);case 360:return function(e,n){return t.updatePartiallyEmittedExpression(e,rB(e.expression,n?L:M,uu))}(n,r);case 213:if(L_(n)&&void 0===_.impliedNodeFormat)return function(n){if(0===u&&d>=7)return fB(n,M,e);const r=NL(t,n,_,c,l,s),o=rB(Le(n.arguments),M,uu),i=!r||o&&zR(o)&&o.text===r.text?o:r,p=!!(16384&n.transformFlags);switch(s.module){case 2:return w(i,p);case 3:return function(e,n){if(y=!0,JB(e)){const r=ud(e)?e:zR(e)?t.createStringLiteralFromNode(e):fI(yk(t.cloneNode(e),e),3072);return t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,O(e),void 0,w(r,n))}{const r=t.createTempVariable(a);return t.createComma(t.createAssignment(r,e),t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,O(r,!0),void 0,w(r,n)))}}(i??t.createVoidZero(),p);default:return O(i)}}(n);break;case 226:if(vE(n))return function(t,n){if(k(t.left))return vG(t,M,e,0,!n,z);return fB(t,M,e)}(n,r);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&nC(n.operand)&&!ud(n.operand)&&!uL(n.operand)&&!cS(n.operand)){const e=Y(n.operand);if(e){let o,i=rB(n.operand,M,uu);ED(n)?i=t.updatePrefixUnaryExpression(n,i):(i=t.updatePostfixUnaryExpression(n,i),r||(o=t.createTempVariable(a),i=t.createAssignment(o,i),yk(i,n)),i=t.createComma(i,t.cloneNode(n.operand)),yk(i,n));for(const t of e)g[Hz(i)]=!0,i=J(t,i),yk(i,n);return o&&(g[Hz(i)]=!0,i=t.createComma(i,o),yk(i,n)),i}}return fB(n,M,e)}(n,r)}return fB(n,M,e)}function M(e){return N(e,!1)}function L(e){return N(e,!0)}function k(e){if(sD(e))for(const t of e.properties)switch(t.kind){case 303:if(k(t.initializer))return!0;break;case 304:if(k(t.name))return!0;break;case 305:if(k(t.expression))return!0;break;case 174:case 177:case 178:return!1;default:In.assertNever(t,"Unhandled object member kind")}else if(aD(e)){for(const t of e.elements)if(RD(t)){if(k(t.expression))return!0}else if(k(t))return!0}else if(nC(e))return T(Y(e))>(pL(e)?1:0);return!1}function P(n,r){if(r&&n.initializer&&aN(n.initializer)&&!(7&n.initializer.flags)){const o=G(void 0,n.initializer,!1);if(o){const i=[],a=rB(n.initializer,L,aN),s=t.createVariableStatement(void 0,a);i.push(s),xe(i,o);const l=rB(n.condition,M,uu),c=rB(n.incrementor,L,uu),d=uB(n.statement,r?D:M,e);return i.push(t.updateForStatement(n,void 0,l,c,d)),i}}return t.updateForStatement(n,rB(n.initializer,L,Su),rB(n.condition,M,uu),rB(n.incrementor,L,uu),uB(n.statement,r?D:M,e))}function w(e,r){const o=t.createUniqueName("resolve"),i=t.createUniqueName("reject"),a=[t.createParameterDeclaration(void 0,void 0,o),t.createParameterDeclaration(void 0,void 0,i)],l=t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("require"),void 0,[t.createArrayLiteralExpression([e||t.createOmittedExpression()]),o,i]))]);let c;d>=2?c=t.createArrowFunction(void 0,void 0,a,void 0,void 0,l):(c=t.createFunctionExpression(void 0,void 0,void 0,void 0,a,void 0,l),r&&fI(c,16));const u=t.createNewExpression(t.createIdentifier("Promise"),void 0,[c]);return qp(s)?t.createCallExpression(t.createPropertyAccessExpression(u,t.createIdentifier("then")),void 0,[n().createImportStarCallbackHelper()]):u}function O(e,r){const o=e&&!XB(e)&&!r,i=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Promise"),"resolve"),void 0,o?d>=2?[t.createTemplateExpression(t.createTemplateHead(""),[t.createTemplateSpan(e,t.createTemplateTail(""))])]:[t.createCallExpression(t.createPropertyAccessExpression(t.createStringLiteral(""),"concat"),void 0,[e])]:[]);let a=t.createCallExpression(t.createIdentifier("require"),void 0,o?[t.createIdentifier("s")]:e?[e]:[]);qp(s)&&(a=n().createImportStarHelper(a));const l=o?[t.createParameterDeclaration(void 0,void 0,"s")]:[];let c;c=d>=2?t.createArrowFunction(void 0,void 0,l,void 0,void 0,a):t.createFunctionExpression(void 0,void 0,void 0,void 0,l,void 0,t.createBlock([t.createReturnStatement(a)]));return t.createCallExpression(t.createPropertyAccessExpression(i,"then"),void 0,[c])}function F(e,t){return!qp(s)||2&Cm(e)?t:VB(e)?n().createImportStarHelper(t):UB(e)?n().createImportDefaultHelper(t):t}function W(e){const n=NL(t,e,_,c,l,s),r=[];return n&&r.push(n),t.createCallExpression(t.createIdentifier("require"),void 0,r)}function z(e,n,r){const o=Y(e);if(o){let i=pL(e)?n:t.createAssignment(e,n);for(const e of o)fI(i,8),i=J(e,i,r);return i}return t.createAssignment(e,n)}function B(n){return Vd(n.name)?vG(rB(n,M,uS),M,e,0,!1,z):t.createAssignment(yk(t.createPropertyAccessExpression(t.createIdentifier("exports"),n.name),n.name),n.initializer?rB(n.initializer,M,uu):t.createVoidZero())}function G(e,t,n){if(h.exportEquals)return e;for(const r of t.declarations)e=j(e,r,n);return e}function j(e,t,n){if(h.exportEquals)return e;if(Vd(t.name))for(const r of t.name.elements)DD(r)||(e=j(e,r,n));else ud(t.name)||iN(t)&&!t.initializer&&!n||(e=U(e,new OB,t));return e}function V(e,n){if(h.exportEquals)return e;const r=new OB;if(Gb(n,32)){e=H(e,r,Gb(n,2048)?t.createIdentifier("default"):t.getDeclarationName(n),t.getLocalName(n),n)}return n.name&&(e=U(e,r,n)),e}function U(e,n,r,o){const i=t.getDeclarationName(r),a=h.exportSpecifiers.get(i);if(a)for(const t of a)e=H(e,n,t.name,i,t.name,void 0,o);return e}function H(e,t,n,r,o,i,a){return t.has(n)||(t.set(n,!0),e=Ee(e,q(n,r,o,i,a))),e}function K(){let e;return e=0===d?t.createExpressionStatement(J(t.createIdentifier("__esModule"),t.createTrue())):t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteral("__esModule"),t.createObjectLiteralExpression([t.createPropertyAssignment("value",t.createTrue())])])),fI(e,2097152),e}function q(e,n,r,o,i){const a=yk(t.createExpressionStatement(J(e,n,void 0,i)),r);return xL(a),o||fI(a,3072),a}function J(e,n,r,o){return yk(o&&0!==d?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteralFromNode(e),t.createObjectLiteralExpression([t.createPropertyAssignment("enumerable",t.createTrue()),t.createPropertyAssignment("get",t.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,t.createBlock([t.createReturnStatement(n)])))])]):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),n),r)}function X(e){switch(e.kind){case 95:case 90:return}return e}function $(e){var n,r;if(8192&Rm(e)){const n=AL(_);return n?t.createPropertyAccessExpression(n,e):e}if((!ud(e)||64&e.emitNode.autoGenerate.flags)&&!uL(e)){const o=l.getReferencedExportContainer(e,pL(e));if(o&&312===o.kind)return yk(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),e);const i=l.getReferencedImportDeclaration(e);if(i){if(yN(i))return yk(t.createPropertyAccessExpression(t.getGeneratedNameForNode(i.parent),t.createIdentifier("default")),e);if(RN(i)){const o=i.propertyName||i.name;return yk(t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=i.parent)?void 0:n.parent)?void 0:r.parent)||i),t.cloneNode(o)),e)}}}return e}function Y(e){if(ud(e)){if(fd(e)){const t=null==h?void 0:h.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}}else{const t=l.getReferencedImportDeclaration(e);if(t)return null==h?void 0:h.exportedBindings[zB(t)];const n=new Set,r=l.getReferencedValueDeclarations(e);if(r){for(const e of r){const t=null==h?void 0:h.exportedBindings[zB(e)];if(t)for(const e of t)n.add(e)}if(n.size)return Ye(n)}}}}var zj=b({"src/compiler/transformers/module/module.ts"(){JJ(),Oj={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}});function Bj(e){const{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:r,hoistVariableDeclaration:o}=e,i=e.getCompilerOptions(),a=e.getEmitResolver(),s=e.getEmitHost(),l=e.onSubstituteNode,c=e.onEmitNode;e.onSubstituteNode=function(e,n){if(function(e){return b&&e.id&&b[e.id]}(n=l(e,n)))return n;if(1===e)return function(e){switch(e.kind){case 80:return function(e){var n,r;if(8192&Rm(e)){const n=AL(m);return n?t.createPropertyAccessExpression(n,e):e}if(!ud(e)&&!uL(e)){const o=a.getReferencedImportDeclaration(e);if(o){if(yN(o))return yk(t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default")),e);if(RN(o))return yk(t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o),t.cloneNode(o.propertyName||o.name)),e)}}return e}(e);case 226:return function(e){if(mE(e.operatorToken.kind)&&nC(e.left)&&(!ud(e.left)||fd(e.left))&&!uL(e.left)){const t=q(e.left);if(t){let n=e;for(const e of t)n=F(e,J(n));return n}}return e}(e);case 236:return function(e){if(k_(e))return t.createPropertyAccessExpression(g,t.createIdentifier("meta"));return e}(e)}return e}(n);if(4===e)return function(e){if(304===e.kind)return function(e){var n,r;const o=e.name;if(!ud(o)&&!uL(o)){const i=a.getReferencedImportDeclaration(o);if(i){if(yN(i))return yk(t.createPropertyAssignment(t.cloneNode(o),t.createPropertyAccessExpression(t.getGeneratedNameForNode(i.parent),t.createIdentifier("default"))),e);if(RN(i))return yk(t.createPropertyAssignment(t.cloneNode(o),t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=i.parent)?void 0:n.parent)?void 0:r.parent)||i),t.cloneNode(i.propertyName||i.name))),e)}}return e}(e);return e}(n);return n},e.onEmitNode=function(e,t,n){if(312===t.kind){const r=zB(t);m=t,_=d[r],h=u[r],b=p[r],g=f[r],b&&delete p[r],c(e,t,n),m=void 0,_=void 0,h=void 0,g=void 0,b=void 0}else c(e,t,n)},e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const d=[],u=[],p=[],f=[];let m,_,h,g,y,v,b;return GB(e,(function(o){if(o.isDeclarationFile||!(Um(o,i)||8388608&o.transformFlags))return o;const l=zB(o);m=o,v=o,_=d[l]=HB(e,o),h=t.createUniqueName("exports"),u[l]=h,g=f[l]=t.createUniqueName("context");const c=function(e){const n=new Map,r=[];for(const o of e){const e=NL(t,o,m,s,a,i);if(e){const t=e.text,i=n.get(t);void 0!==i?r[i].externalImports.push(o):(n.set(t,r.length),r.push({name:e,externalImports:[o]}))}}return r}(_.externalImports),x=function(e,o){const a=[];n();const s=IT(i,"alwaysStrict")||!i.noImplicitUseStrict&&uP(m),l=t.copyPrologue(e.statements,a,s,T);a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(g,t.createPropertyAccessExpression(g,"id")))]))),rB(_.externalHelpersImportDeclaration,T,wu);const c=oB(e.statements,T,wu,l);xe(a,y),pm(a,r());const d=function(e){if(!_.hasExportStarsToExportValues)return;if(!_.exportedNames&&0===_.exportSpecifiers.size){let t=!1;for(const e of _.externalImports)if(278===e.kind&&e.exportClause){t=!0;break}if(!t){const t=E(void 0);return e.push(t),t.name}}const n=[];if(_.exportedNames)for(const i of _.exportedNames)"default"!==i.escapedText&&n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(i),t.createTrue()));const r=t.createUniqueName("exportedNames");e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createObjectLiteralExpression(n,!0))])));const o=E(r);return e.push(o),o.name}(a),u=2097152&e.transformFlags?t.createModifiersFromModifierFlags(1024):void 0,p=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",S(d,o)),t.createPropertyAssignment("execute",t.createFunctionExpression(u,void 0,void 0,void 0,[],void 0,t.createBlock(c,!0)))],!0);return a.push(t.createReturnStatement(p)),t.createBlock(a,!0)}(o,c),A=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,h),t.createParameterDeclaration(void 0,void 0,g)],void 0,x),I=ML(t,o,s,i),R=t.createArrayLiteralExpression(U(c,(e=>e.name))),C=fI(t.updateSourceFile(o,yk(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,I?[I,R,A]:[R,A]))]),o.statements)),2048);ob(i)||WI(C,x,(e=>!e.scoped));b&&(p[l]=b,b=void 0);return m=void 0,_=void 0,h=void 0,g=void 0,y=void 0,v=void 0,C}));function E(e){const n=t.createUniqueName("exportStar"),r=t.createIdentifier("m"),o=t.createIdentifier("n"),i=t.createIdentifier("exports");let a=t.createStrictInequality(o,t.createStringLiteral("default"));return e&&(a=t.createLogicalAnd(a,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[o])))),t.createFunctionDeclaration(void 0,void 0,n,void 0,[t.createParameterDeclaration(void 0,void 0,r)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(i,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(o)]),r,t.createBlock([fI(t.createIfStatement(a,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(i,o),t.createElementAccessExpression(r,o)))),1)])),t.createExpressionStatement(t.createCallExpression(h,void 0,[i]))],!0))}function S(e,n){const r=[];for(const o of n){const n=x(o.externalImports,(e=>DL(t,e,m))),i=n?t.getGeneratedNameForNode(n):t.createUniqueName(""),a=[];for(const r of o.externalImports){const n=DL(t,r,m);switch(r.kind){case 272:if(!r.importClause)break;case 271:In.assert(void 0!==n),a.push(t.createExpressionStatement(t.createAssignment(n,i))),Gb(r,32)&&a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(kl(n)),i])));break;case 278:if(In.assert(void 0!==n),r.exportClause)if(NN(r.exportClause)){const e=[];for(const n of r.exportClause.elements)e.push(t.createPropertyAssignment(t.createStringLiteral(kl(n.name)),t.createElementAccessExpression(i,t.createStringLiteral(kl(n.propertyName||n.name)))));a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createObjectLiteralExpression(e,!0)])))}else a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(kl(r.exportClause.name)),i])));else a.push(t.createExpressionStatement(t.createCallExpression(e,void 0,[i])))}}r.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,i)],void 0,t.createBlock(a,!0)))}return t.createArrayLiteralExpression(r,!0)}function T(e){switch(e.kind){case 272:return function(e){let n;e.importClause&&o(DL(t,e,m));return Be(function(e,t){if(_.exportEquals)return e;const n=t.importClause;if(!n)return e;n.name&&(e=P(e,n));const r=n.namedBindings;if(r)switch(r.kind){case 274:e=P(e,r);break;case 275:for(const t of r.elements)e=P(e,t)}return e}(n,e))}(e);case 271:return function(e){let n;return In.assert(Uh(e),"import= for internal module references should be handled in an earlier transformer."),o(DL(t,e,m)),Be(function(e,t){if(_.exportEquals)return e;return P(e,t)}(n,e))}(e);case 278:return function(e){return void In.assertIsDefined(e)}(e);case 277:return function(e){if(e.isExportEquals)return;const n=rB(e.expression,j,uu);return O(t.createIdentifier("default"),n,!0)}(e);default:return W(e)}}function A(e){if(!R(e.declarationList))return rB(e,j,wu);let n;if(C_(e.declarationList)||R_(e.declarationList)){const r=oB(e.modifiers,K,Fd),o=[];for(const n of e.declarationList.declarations)o.push(t.updateVariableDeclaration(n,t.getGeneratedNameForNode(n.name),void 0,void 0,C(n,!1)));const i=t.updateVariableDeclarationList(e.declarationList,o);n=Ee(n,t.updateVariableStatement(e,r,i))}else{let r;const o=Gb(e,32);for(const t of e.declarationList.declarations)t.initializer?r=Ee(r,C(t,o)):I(t);r&&(n=Ee(n,yk(t.createExpressionStatement(t.inlineExpressions(r)),e)))}return n=function(e,t,n){if(_.exportEquals)return e;for(const r of t.declarationList.declarations)(r.initializer||n)&&(e=L(e,r,n));return e}(n,e,!1),Be(n)}function I(e){if(Vd(e.name))for(const t of e.name.elements)DD(t)||I(t);else o(t.cloneNode(e.name))}function R(e){return 0===(4194304&Rm(e))&&(312===v.kind||0===(7&Rl(e).flags))}function C(t,n){const r=n?D:N;return Vd(t.name)?vG(t,j,e,0,!1,r):t.initializer?r(t.name,rB(t.initializer,j,uu)):t.name}function D(e,t,n){return M(e,t,n,!0)}function N(e,t,n){return M(e,t,n,!1)}function M(e,n,r,i){return o(t.cloneNode(e)),i?F(e,J(yk(t.createAssignment(e,n),r))):J(yk(t.createAssignment(e,n),r))}function L(e,n,r){if(_.exportEquals)return e;if(Vd(n.name))for(const t of n.name.elements)DD(t)||(e=L(e,t,r));else if(!ud(n.name)){let o;r&&(e=w(e,n.name,t.getLocalName(n)),o=kl(n.name)),e=P(e,n,o)}return e}function k(e,n){if(_.exportEquals)return e;let r;if(Gb(n,32)){const o=Gb(n,2048)?t.createStringLiteral("default"):n.name;e=w(e,o,t.getLocalName(n)),r=sv(o)}return n.name&&(e=P(e,n,r)),e}function P(e,n,r){if(_.exportEquals)return e;const o=t.getDeclarationName(n),i=_.exportSpecifiers.get(o);if(i)for(const t of i)t.name.escapedText!==r&&(e=w(e,t.name,o));return e}function w(e,t,n,r){return e=Ee(e,O(t,n,r))}function O(e,n,r){const o=t.createExpressionStatement(F(e,n));return xL(o),r||fI(o,3072),o}function F(e,n){const r=nC(e)?t.createStringLiteralFromNode(e):e;return fI(n,3072|Rm(n)),xI(t.createCallExpression(h,void 0,[r,n]),n)}function W(n){switch(n.kind){case 243:return A(n);case 262:return function(n){y=Gb(n,32)?Ee(y,t.updateFunctionDeclaration(n,oB(n.modifiers,K,Fd),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,oB(n.parameters,j,bC),void 0,rB(n.body,j,BD))):Ee(y,fB(n,j,e)),y=k(y,n)}(n);case 263:return function(e){let n;const r=t.getLocalName(e);return o(r),n=Ee(n,yk(t.createExpressionStatement(t.createAssignment(r,yk(t.createClassExpression(oB(e.modifiers,K,Fd),e.name,void 0,oB(e.heritageClauses,j,$N),oB(e.members,j,Nd)),e))),e)),n=k(n,e),Be(n)}(n);case 248:return z(n,!0);case 249:return function(n){const r=v;return v=n,n=t.updateForInStatement(n,B(n.initializer),rB(n.expression,j,uu),uB(n.statement,W,e)),v=r,n}(n);case 250:return function(n){const r=v;return v=n,n=t.updateForOfStatement(n,n.awaitModifier,B(n.initializer),rB(n.expression,j,uu),uB(n.statement,W,e)),v=r,n}(n);case 246:return function(n){return t.updateDoStatement(n,uB(n.statement,W,e),rB(n.expression,j,uu))}(n);case 247:return function(n){return t.updateWhileStatement(n,rB(n.expression,j,uu),uB(n.statement,W,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,In.checkDefined(rB(e.statement,W,wu,t.liftToBlock)))}(n);case 254:return function(e){return t.updateWithStatement(e,rB(e.expression,j,uu),In.checkDefined(rB(e.statement,W,wu,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,rB(e.expression,j,uu),In.checkDefined(rB(e.thenStatement,W,wu,t.liftToBlock)),rB(e.elseStatement,W,wu,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,rB(e.expression,j,uu),In.checkDefined(rB(e.caseBlock,W,mN)))}(n);case 269:return function(e){const n=v;return v=e,e=t.updateCaseBlock(e,oB(e.clauses,W,Vu)),v=n,e}(n);case 296:return function(e){return t.updateCaseClause(e,rB(e.expression,j,uu),oB(e.statements,W,wu))}(n);case 297:case 258:return function(t){return fB(t,W,e)}(n);case 299:return function(e){const n=v;return v=e,e=t.updateCatchClause(e,e.variableDeclaration,In.checkDefined(rB(e.block,W,BD))),v=n,e}(n);case 241:return function(t){const n=v;return v=t,t=fB(t,W,e),v=n,t}(n);default:return j(n)}}function z(n,r){const o=v;return v=n,n=t.updateForStatement(n,rB(n.initializer,r?B:V,Su),rB(n.condition,j,uu),rB(n.incrementor,V,uu),uB(n.statement,r?W:j,e)),v=o,n}function B(e){if(function(e){return aN(e)&&R(e)}(e)){let n;for(const t of e.declarations)n=Ee(n,C(t,!1)),t.initializer||I(t);return n?t.inlineExpressions(n):t.createOmittedExpression()}return rB(e,V,Su)}function G(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 248:return z(n,!1);case 244:return function(e){return t.updateExpressionStatement(e,rB(e.expression,V,uu))}(n);case 217:return function(e,n){return t.updateParenthesizedExpression(e,rB(e.expression,n?V:j,uu))}(n,r);case 360:return function(e,n){return t.updatePartiallyEmittedExpression(e,rB(e.expression,n?V:j,uu))}(n,r);case 226:if(vE(n))return function(t,n){if(H(t.left))return vG(t,j,e,0,!n);return fB(t,j,e)}(n,r);break;case 213:if(L_(n))return function(e){const n=NL(t,e,m,s,a,i),r=rB(Le(e.arguments),j,uu),o=!n||r&&zR(r)&&r.text===n.text?r:n;return t.createCallExpression(t.createPropertyAccessExpression(g,t.createIdentifier("import")),void 0,o?[o]:[])}(n);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&nC(n.operand)&&!ud(n.operand)&&!uL(n.operand)&&!cS(n.operand)){const e=q(n.operand);if(e){let i,a=rB(n.operand,j,uu);ED(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(i=t.createTempVariable(o),a=t.createAssignment(i,a),yk(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),yk(a,n));for(const t of e)a=F(t,J(a));return i&&(a=t.createComma(a,i),yk(a,n)),a}}return fB(n,j,e)}(n,r)}return fB(n,j,e)}function j(e){return G(e,!1)}function V(e){return G(e,!0)}function H(e){if(gE(e,!0))return H(e.left);if(RD(e))return H(e.expression);if(sD(e))return se(e.properties,H);if(aD(e))return se(e.elements,H);if(ZN(e))return H(e.name);if(QN(e))return H(e.initializer);if(nC(e)){const t=a.getReferencedExportContainer(e);return void 0!==t&&312===t.kind}return!1}function K(e){switch(e.kind){case 95:case 90:return}return e}function q(e){let n;const r=function(e){if(!ud(e)){const t=a.getReferencedImportDeclaration(e);if(t)return t;const n=a.getReferencedValueDeclaration(e);if(n&&(null==_?void 0:_.exportedBindings[zB(n)]))return n;const r=a.getReferencedValueDeclarations(e);if(r)for(const e of r)if(e!==n&&(null==_?void 0:_.exportedBindings[zB(e)]))return e;return n}}(e);if(r){const o=a.getReferencedExportContainer(e,!1);o&&312===o.kind&&(n=Ee(n,t.getDeclarationName(r))),n=xe(n,null==_?void 0:_.exportedBindings[zB(r)])}else if(ud(e)&&fd(e)){const t=null==_?void 0:_.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}return n}function J(e){return void 0===b&&(b=[]),b[Hz(e)]=!0,e}}var Gj=b({"src/compiler/transformers/module/system.ts"(){JJ()}});function jj(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getEmitHost(),o=e.getEmitResolver(),i=e.getCompilerOptions(),a=jp(i),s=e.onEmitNode,l=e.onSubstituteNode;let c,d,u;return e.onEmitNode=function(e,t,n){rM(t)?((uP(t)||Kp(i))&&i.importHelpers&&(c=new Map),s(e,t,n),c=void 0):s(e,t,n)},e.onSubstituteNode=function(e,n){if(n=l(e,n),c&&nC(n)&&8192&Rm(n))return function(e){const n=kl(e);let r=c.get(n);r||c.set(n,r=t.createUniqueName(n,48));return r}(n);return n},e.enableEmitNotification(312),e.enableSubstitution(80),GB(e,(function(r){if(r.isDeclarationFile)return r;if(uP(r)||Kp(i)){d=r,u=void 0;let o=function(r){const o=RL(t,n(),r,i);if(o){const e=[],n=t.copyPrologue(r.statements,e);return Ee(e,o),xe(e,oB(r.statements,p,wu,n)),t.updateSourceFile(r,yk(t.createNodeArray(e),r.statements))}return fB(r,p,e)}(r);return d=void 0,u&&(o=t.updateSourceFile(o,yk(t.createNodeArray(fm(o.statements.slice(),u)),o.statements))),!uP(r)||200===Vp(i)||se(o.statements,yu)?o:t.updateSourceFile(o,yk(t.createNodeArray([...o.statements,YM(t)]),o.statements))}return r}));function p(e){switch(e.kind){case 271:return Vp(i)>=100?function(e){let n;return In.assert(Uh(e),"import= for internal module references should be handled in an earlier transformer."),n=Ee(n,lI(yk(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,f(e))],a>=2?2:0)),e),e)),n=function(e,n){Gb(n,32)&&(e=Ee(e,t.createExportDeclaration(void 0,n.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,kl(n.name))]))));return e}(n,e),Be(n)}(e):void 0;case 277:return function(e){if(e.isExportEquals){if(200===Vp(i)){return lI(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),e.expression)),e)}return}return e}(e);case 278:return function(e){if(void 0!==i.module&&i.module>5)return e;if(!e.exportClause||!AN(e.exportClause)||!e.moduleSpecifier)return e;const n=e.exportClause.name,r=t.getGeneratedNameForNode(n),o=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(r)),e.moduleSpecifier,e.attributes);lI(o,e.exportClause);const a=Sm(e)?t.createExportDefault(r):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,r,n)]));return lI(a,e),[o,a]}(e)}return e}function f(e){const n=NL(t,e,In.checkDefined(d),r,o,i),s=[];if(n&&s.push(n),200===Vp(i))return t.createCallExpression(t.createIdentifier("require"),void 0,s);if(!u){const e=t.createUniqueName("_createRequire",48),n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),e)])),t.createStringLiteral("module"),void 0),r=t.createUniqueName("__require",48),o=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createCallExpression(t.cloneNode(e),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],a>=2?2:0));u=[n,o]}const l=u[1].declarationList.declarations[0].name;return In.assertNode(l,nC),t.createCallExpression(t.cloneNode(l),void 0,s)}}var Vj=b({"src/compiler/transformers/module/esnextAnd2015.ts"(){JJ()}});function Uj(e){const t=e.onSubstituteNode,n=e.onEmitNode,r=jj(e),o=e.onSubstituteNode,i=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const a=Wj(e),s=e.onSubstituteNode,l=e.onEmitNode;let c;return e.onSubstituteNode=function(e,n){return rM(n)?(c=n,t(e,n)):c?99===c.impliedNodeFormat?o(e,n):s(e,n):t(e,n)},e.onEmitNode=function(e,t,r){rM(t)&&(c=t);if(!c)return n(e,t,r);if(99===c.impliedNodeFormat)return i(e,t,r);return l(e,t,r)},e.enableSubstitution(312),e.enableEmitNotification(312),function(t){return 312===t.kind?d(t):function(t){return e.factory.createBundle(U(t.sourceFiles,d),t.prepends)}(t)};function d(e){if(e.isDeclarationFile)return e;c=e;const t=(99===e.impliedNodeFormat?r:a)(e);return c=void 0,In.assert(rM(t)),t}}var Hj=b({"src/compiler/transformers/module/node.ts"(){JJ()}});function Kj(e){return iN(e)||TC(e)||SC(e)||iD(e)||qu(e)||Ju(e)||MC(e)||NC(e)||AC(e)||xC(e)||sN(e)||bC(e)||vC(e)||ND(e)||hN(e)||dN(e)||RC(e)||LC(e)||lD(e)||cD(e)||TD(e)||Kg(e)}function qj(e){return qu(e)||Ju(e)?function(t){const n=function(t){return jb(e)?t.errorModuleName?2===t.accessibility?Oa.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Oa.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Oa.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?Oa.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Oa.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Oa.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Oa.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Oa.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:xC(e)||AC(e)?function(t){const n=function(t){return jb(e)?t.errorModuleName?2===t.accessibility?Oa.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Oa.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Oa.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?Oa.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Oa.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Oa.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Oa.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Oa.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:Jj(e)}function Jj(e){return iN(e)||TC(e)||SC(e)||lD(e)||cD(e)||TD(e)||iD(e)||RC(e)?t:qu(e)||Ju(e)?function(t){let n;n=178===e.kind?jb(e)?t.errorModuleName?Oa.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Oa.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Oa.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Oa.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:jb(e)?t.errorModuleName?2===t.accessibility?Oa.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Oa.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Oa.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?Oa.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Oa.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Oa.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:n,errorNode:e.name,typeName:e.name}}:MC(e)||NC(e)||AC(e)||xC(e)||sN(e)||LC(e)?function(t){let n;switch(e.kind){case 180:n=t.errorModuleName?Oa.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Oa.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:n=t.errorModuleName?Oa.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Oa.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:n=t.errorModuleName?Oa.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Oa.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:n=jb(e)?t.errorModuleName?2===t.accessibility?Oa.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Oa.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Oa.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:263===e.parent.kind?t.errorModuleName?2===t.accessibility?Oa.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Oa.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Oa.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?Oa.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Oa.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:n=t.errorModuleName?2===t.accessibility?Oa.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Oa.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:Oa.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return In.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:n,errorNode:e.name||e}}:bC(e)?gl(e,e.parent)&&Gb(e.parent,2)?t:function(t){const n=function(t){switch(e.parent.kind){case 176:return t.errorModuleName?2===t.accessibility?Oa.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Oa.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:Oa.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return t.errorModuleName?Oa.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Oa.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return t.errorModuleName?Oa.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Oa.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return t.errorModuleName?Oa.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Oa.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return jb(e.parent)?t.errorModuleName?2===t.accessibility?Oa.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Oa.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Oa.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?t.errorModuleName?2===t.accessibility?Oa.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Oa.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Oa.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Oa.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Oa.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return t.errorModuleName?2===t.accessibility?Oa.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Oa.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:Oa.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return t.errorModuleName?2===t.accessibility?Oa.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Oa.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:Oa.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return In.fail(`Unknown parent for parameter: ${In.formatSyntaxKind(e.parent.kind)}`)}}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:vC(e)?function(){let t;switch(e.parent.kind){case 263:t=Oa.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:t=Oa.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:t=Oa.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:t=Oa.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:t=Oa.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:t=jb(e.parent)?Oa.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?Oa.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Oa.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:t=Oa.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:t=Oa.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:t=Oa.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return In.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:t,errorNode:e,typeName:e.name}}:ND(e)?function(){let t;t=lN(e.parent.parent)?$N(e.parent)&&119===e.parent.token?Oa.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?Oa.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:Oa.extends_clause_of_exported_class_has_or_is_using_private_name_0:Oa.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:t,errorNode:e,typeName:jl(e.parent.parent)}}:hN(e)?function(){return{diagnosticMessage:Oa.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}:dN(e)||Kg(e)?function(t){return{diagnosticMessage:t.errorModuleName?Oa.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:Oa.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Kg(e)?In.checkDefined(e.typeExpression):e.type,typeName:Kg(e)?jl(e):e.name}}:In.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${In.formatSyntaxKind(e.kind)}`);function t(t){const n=function(t){return 260===e.kind||208===e.kind?t.errorModuleName?2===t.accessibility?Oa.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Oa.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:Oa.Exported_variable_0_has_or_is_using_private_name_1:172===e.kind||211===e.kind||212===e.kind||226===e.kind||171===e.kind||169===e.kind&&Gb(e.parent,2)?jb(e)?t.errorModuleName?2===t.accessibility?Oa.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Oa.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Oa.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind||169===e.kind?t.errorModuleName?2===t.accessibility?Oa.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Oa.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Oa.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Oa.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Oa.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}}var Xj,$j=b({"src/compiler/transformers/declarations/diagnostics.ts"(){JJ()}});function Yj(e,t,n){const r=e.getCompilerOptions();return pV(t,e,UA,r,n?[n]:G(e.getSourceFiles(),Qh),[Qj],!1).diagnostics}function Qj(e){const t=()=>In.fail("Diagnostic emitted without context");let n,r,i,a,s,l,c=t,d=!0,u=!1,p=!1,f=!1,m=!1;const{factory:_}=e,h=e.getEmitHost(),g={trackSymbol:function(e,t,n){if(262144&e.flags)return!1;const r=k(I.isSymbolAccessible(e,t,n,!0));return N(I.getTypeReferenceDirectivesForSymbol(e,n)),r},reportInaccessibleThisError:function(){(y||v)&&e.addDiagnostic(d_(y||v,Oa.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,P(),"this"))},reportInaccessibleUniqueSymbolError:function(){(y||v)&&e.addDiagnostic(d_(y||v,Oa.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,P(),"unique symbol"))},reportCyclicStructureError:function(){(y||v)&&e.addDiagnostic(d_(y||v,Oa.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,P()))},reportPrivateInBaseOfClassExpression:function(t){(y||v)&&e.addDiagnostic(d_(y||v,Oa.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))},reportLikelyUnsafeImportRequiredError:function(t){(y||v)&&e.addDiagnostic(d_(y||v,Oa.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,P(),t))},reportTruncationError:function(){(y||v)&&e.addDiagnostic(d_(y||v,Oa.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:h,trackReferencedAmbientModule:M,trackExternalModuleSymbolOfImportTypeNode:function(e){u||(l||(l=[])).push(e)},reportNonlocalAugmentation:function(t,n,r){var o;const i=null==(o=n.declarations)?void 0:o.find((e=>Yf(e)===t)),a=G(r.declarations,(e=>Yf(e)!==t));if(i&&a)for(const s of a)e.addDiagnostic(xx(d_(s,Oa.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),d_(i,Oa.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(t){(y||v)&&e.addDiagnostic(d_(y||v,Oa.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,t))}};let y,v,b,E,S,A;const I=e.getEmitResolver(),R=e.getCompilerOptions(),{noResolve:C,stripInternal:D}=R;return function(o){if(312===o.kind&&o.isDeclarationFile)return o;if(313===o.kind){u=!0,E=new Map,S=new Map;let r=!1;const l=_.createBundle(U(o.sourceFiles,(o=>{if(o.isDeclarationFile)return;if(r=r||o.hasNoDefaultLib,b=o,n=o,i=void 0,s=!1,a=new Map,c=t,f=!1,m=!1,O(o,E),W(o,S),T_(o)||x_(o)){p=!1,d=!1;const t=Jh(o)?_.createNodeArray(w(o,!0)):oB(o.statements,le,wu);return _.updateSourceFile(o,[_.createModuleDeclaration([_.createModifier(138)],_.createStringLiteral(Xv(e.getEmitHost(),o)),_.createModuleBlock(yk(_.createNodeArray(ie(t)),o.statements)))],!0,[],[],!1,[])}d=!0;const l=Jh(o)?_.createNodeArray(w(o)):oB(o.statements,le,wu);return _.updateSourceFile(o,ie(l),!0,[],[],!1,[])})),Z(o.prepends,(e=>{if(315===e.kind){const t=rI(e,"dts",D);return r=r||!!t.hasNoDefaultLib,O(t,E),N(U(t.typeReferenceDirectives,(e=>[e.fileName,e.resolutionMode]))),W(t,S),t}return e})));l.syntheticFileReferences=[],l.syntheticTypeReferences=C(),l.syntheticLibReferences=I(),l.hasNoDefaultLib=r;const g=ra(ca(xV(o,h,!0).declarationFilePath)),y=L(l.syntheticFileReferences,g);return E.forEach(y),l}d=!0,f=!1,m=!1,n=o,b=o,c=t,u=!1,p=!1,s=!1,i=void 0,a=new Map,r=void 0,E=O(b,new Map),S=W(b,new Map);const g=[],y=ra(ca(xV(o,h,!0).declarationFilePath)),v=L(g,y);let T;if(Jh(b))T=_.createNodeArray(w(o)),E.forEach(v),A=G(T,$m);else{const e=oB(o.statements,le,wu);T=yk(_.createNodeArray(ie(e)),o.statements),E.forEach(v),A=G(T,$m),uP(o)&&(!p||f&&!m)&&(T=yk(_.createNodeArray([...T,YM(_)]),T))}const x=_.updateSourceFile(o,T,!0,g,C(),o.hasNoDefaultLib,I());return x.exportedModulesFromDeclarationEmit=l,x;function I(){return Ye(S.keys(),(e=>({fileName:e,pos:-1,end:-1})))}function C(){return r?Z(Ye(r.keys()),M):[]}function M([e,t]){if(A)for(const n of A)if(hN(n)&&wN(n.moduleReference)){const t=n.moduleReference.expression;if(np(t)&&t.text===e)return}else if(gN(n)&&zR(n.moduleSpecifier)&&n.moduleSpecifier.text===e)return;return{fileName:e,pos:-1,end:-1,...t?{resolutionMode:t}:void 0}}function L(e,t){return n=>{if(null==l?void 0:l.includes(n.symbol))return;let r;if(n.isDeclarationFile)r=n.fileName;else{if(u&&F(o.sourceFiles,n))return;const e=xV(n,h,!0);r=e.declarationFilePath||e.jsFilePath||n.fileName}if(r){const n=tz(R,b,ma(t,h.getCurrentDirectory()),ma(r,h.getCurrentDirectory()),h);if(!Ji(n))return void N([[n,void 0]]);let o=ka(t,r,h.getCurrentDirectory(),h.getCanonicalFileName,!1);if(dn(o,"./")&&$i(o)&&(o=o.substring(2)),dn(o,"node_modules/")||HF(o))return;e.push({pos:-1,end:-1,fileName:o})}}}};function N(e){if(e){r=r||new Set;for(const t of e)r.add(t)}}function M(e,t){const n=I.getTypeReferenceDirectivesForSymbol(t,-1);if(T(n))return N(n);const r=Yf(e);E.set(zB(r),r)}function L(e){const t=Fg(e),n=t&&I.tryFindAmbientModule(t);if(null==n?void 0:n.declarations)for(const r of n.declarations)Pm(r)&&Yf(r)!==b&&M(r,n)}function k(t){if(0===t.accessibility){if(t.aliasesToMakeVisible)if(i)for(const e of t.aliasesToMakeVisible)Ae(i,e);else i=t.aliasesToMakeVisible}else{const n=c(t);if(n)return n.typeName?e.addDiagnostic(d_(t.errorNode||n.errorNode,n.diagnosticMessage,xm(n.typeName),t.errorSymbolName,t.errorModuleName)):e.addDiagnostic(d_(t.errorNode||n.errorNode,n.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function P(){return y?o_(y):v&&jl(v)?o_(jl(v)):v&&CN(v)?v.isExportEquals?"export=":"default":"(Missing)"}function w(e,t){const n=c;c=t=>t.errorNode&&Kj(t.errorNode)?Jj(t.errorNode)(t):{diagnosticMessage:t.errorModuleName?Oa.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:Oa.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:t.errorNode||e};const r=I.getDeclarationStatementsForSourceFile(e,Xj,g,t);return c=n,r}function O(e,t){return C||!iM(e)&&Jh(e)||x(e.referencedFiles,(n=>{const r=h.getSourceFileFromReference(e,n);r&&t.set(zB(r),r)})),t}function W(e,t){return x(e.libReferenceDirectives,(e=>{h.getLibFileFromReference(e)&&t.set(It(e.fileName),!0)})),t}function z(e){return 80===e.kind?e:207===e.kind?_.updateArrayBindingPattern(e,oB(e.elements,t,Hd)):_.updateObjectBindingPattern(e,oB(e.elements,t,iD));function t(e){return 232===e.kind?e:(e.propertyName&&yC(e.propertyName)&&EE(e.propertyName.expression)&&te(e.propertyName.expression,n),_.updateBindingElement(e,e.dotDotDotToken,e.propertyName,z(e.name),j(e)?e.initializer:void 0))}}function B(e,t,n){let r;s||(r=c,c=Jj(e));const o=_.updateParameterDeclaration(e,function(e,t,n,r){return e.createModifiersFromModifierFlags(Zj(t,n,r))}(_,e,t),e.dotDotDotToken,z(e.name),I.isOptionalParameter(e)?e.questionToken||_.createToken(58):void 0,H(e,n||e.type,!0),V(e));return s||(c=r),o}function j(e){return function(e){switch(e.kind){case 172:case 171:return!Bb(e,2);case 169:case 260:return!0}return!1}(e)&&I.isLiteralConstDeclaration(Nl(e))}function V(e){if(j(e))return I.createLiteralConstValue(Nl(e),g)}function H(e,t,r){if(!r&&Bb(e,2))return;if(j(e))return;const o=169===e.kind&&(I.isRequiredInitializedParameter(e)||I.isOptionalUninitializedParameterProperty(e));if(t&&!o)return rB(t,ae,Gd);if(!Nl(e))return t?rB(t,ae,Gd):_.createKeywordTypeNode(133);if(178===e.kind)return _.createKeywordTypeNode(133);let i;return y=e.name,s||(i=c,c=Jj(e)),260===e.kind||208===e.kind?a(I.createTypeOfDeclaration(e,n,Xj,g)):169===e.kind||172===e.kind||171===e.kind?SC(e)||!e.initializer?a(I.createTypeOfDeclaration(e,n,Xj,g,o)):a(I.createTypeOfDeclaration(e,n,Xj,g,o)||I.createTypeOfExpression(e.initializer,n,Xj,g)):a(I.createReturnTypeOfSignatureDeclaration(e,n,Xj,g));function a(e){return y=void 0,s||(c=i),e||_.createKeywordTypeNode(133)}}function K(e){switch((e=Nl(e)).kind){case 262:case 267:case 264:case 263:case 265:case 266:return!I.isDeclarationVisible(e);case 260:return!X(e);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function X(e){return!DD(e)&&(Vd(e.name)?se(e.name.elements,X):I.isDeclarationVisible(e))}function $(e,t,n){if(Bb(e,2))return _.createNodeArray();const r=U(t,(e=>B(e,n)));return r?_.createNodeArray(r,t.hasTrailingComma):_.createNodeArray()}function Y(e,t){let n;if(!t){const t=yb(e);t&&(n=[B(t)])}if(DC(e)){let r;if(!t){const t=hb(e);if(t){r=B(t,void 0,ge(e,I.getAllAccessorDeclarations(e)))}}r||(r=_.createParameterDeclaration(void 0,void 0,"value")),n=Ee(n,r)}return _.createNodeArray(n||o)}function Q(e,t){return Bb(e,2)?void 0:oB(t,ae,vC)}function ee(e){return rM(e)||dN(e)||pN(e)||lN(e)||cN(e)||Td(e)||LC(e)||QC(e)}function te(e,t){k(I.isEntityNameVisible(e,t)),N(I.getTypeReferenceDirectivesForEntityName(e))}function ne(e,t){return Xu(e)&&Xu(t)&&(e.jsDoc=t.jsDoc),xI(e,TI(t))}function re(t,n){if(n){if(p=p||267!==t.kind&&205!==t.kind,np(n))if(u){const n=Yv(e.getEmitHost(),I,t);if(n)return _.createStringLiteral(n)}else{const e=I.getSymbolOfExternalModuleSpecifier(n);e&&(l||(l=[])).push(e)}return n}}function oe(e){const t=HU(e);return e&&void 0!==t?e:void 0}function ie(e){for(;T(i);){const e=i.shift();if(!Qm(e))return In.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${In.formatSyntaxKind(e.kind)}`);const t=d;d=e.parent&&rM(e.parent)&&!(uP(e.parent)&&u);const n=pe(e);d=t,a.set(zB(e),n)}return oB(e,(function(e){if(Qm(e)){const t=zB(e);if(a.has(t)){const n=a.get(t);return a.delete(t),n&&((mt(n)?se(n,gu):gu(n))&&(f=!0),rM(e.parent)&&(mt(n)?se(n,yu):yu(n))&&(p=!0)),n}}return e}),wu)}function ae(t){if(me(t))return;if(Lu(t)){if(K(t))return;if(rv(t)&&!I.isLateBound(Nl(t)))return}if(Td(t)&&I.isImplementationOfOverload(t))return;if(zD(t))return;let r;ee(t)&&(r=n,n=t);const o=c,i=Kj(t),a=s;let l=(187===t.kind||200===t.kind)&&265!==t.parent.kind;if((AC(t)||xC(t))&&Bb(t,2)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return u(_.createPropertyDeclaration(he(t),t.name,void 0,void 0,void 0))}if(i&&!s&&(c=Jj(t)),FC(t)&&te(t.exprName,n),l&&(s=!0),function(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}(t))switch(t.kind){case 233:{(bd(t.expression)||EE(t.expression))&&te(t.expression,n);const r=fB(t,ae,e);return u(_.updateExpressionWithTypeArguments(r,r.expression,r.typeArguments))}case 183:{te(t.typeName,n);const r=fB(t,ae,e);return u(_.updateTypeReferenceNode(r,r.typeName,r.typeArguments))}case 180:return u(_.updateConstructSignature(t,Q(t,t.typeParameters),$(t,t.parameters),H(t,t.type)));case 176:return u(_.createConstructorDeclaration(he(t),$(t,t.parameters,0),void 0));case 174:if(rC(t.name))return u(void 0);return u(_.createMethodDeclaration(he(t),void 0,t.name,t.questionToken,Q(t,t.typeParameters),$(t,t.parameters),H(t,t.type),void 0));case 177:{if(rC(t.name))return u(void 0);const e=ge(t,I.getAllAccessorDeclarations(t));return u(_.updateGetAccessorDeclaration(t,he(t),t.name,Y(t,Bb(t,2)),H(t,e),void 0))}case 178:return rC(t.name)?u(void 0):u(_.updateSetAccessorDeclaration(t,he(t),t.name,Y(t,Bb(t,2)),void 0));case 172:return rC(t.name)?u(void 0):u(_.updatePropertyDeclaration(t,he(t),t.name,t.questionToken,H(t,t.type),V(t)));case 171:return rC(t.name)?u(void 0):u(_.updatePropertySignature(t,he(t),t.name,t.questionToken,H(t,t.type)));case 173:return rC(t.name)?u(void 0):u(_.updateMethodSignature(t,he(t),t.name,t.questionToken,Q(t,t.typeParameters),$(t,t.parameters),H(t,t.type)));case 179:return u(_.updateCallSignature(t,Q(t,t.typeParameters),$(t,t.parameters),H(t,t.type)));case 181:return u(_.updateIndexSignature(t,he(t),$(t,t.parameters),rB(t.type,ae,Gd)||_.createKeywordTypeNode(133)));case 260:return Vd(t.name)?fe(t.name):(l=!0,s=!0,u(_.updateVariableDeclaration(t,t.name,void 0,H(t,t.type),V(t))));case 168:return 174===(d=t).parent.kind&&Bb(d.parent,2)&&(t.default||t.constraint)?u(_.updateTypeParameterDeclaration(t,t.modifiers,t.name,void 0,void 0)):u(fB(t,ae,e));case 194:{const e=rB(t.checkType,ae,Gd),r=rB(t.extendsType,ae,Gd),o=n;n=t.trueType;const i=rB(t.trueType,ae,Gd);n=o;const a=rB(t.falseType,ae,Gd);return In.assert(e),In.assert(r),In.assert(i),In.assert(a),u(_.updateConditionalTypeNode(t,e,r,i,a))}case 184:return u(_.updateFunctionTypeNode(t,oB(t.typeParameters,ae,vC),$(t,t.parameters),In.checkDefined(rB(t.type,ae,Gd))));case 185:return u(_.updateConstructorTypeNode(t,he(t),oB(t.typeParameters,ae,vC),$(t,t.parameters),In.checkDefined(rB(t.type,ae,Gd))));case 205:return P_(t)?(L(t),u(_.updateImportTypeNode(t,_.updateLiteralTypeNode(t.argument,re(t,t.argument.literal)),t.attributes,t.qualifier,oB(t.typeArguments,ae,Gd),t.isTypeOf))):u(t);default:In.assertNever(t,`Attempted to process unhandled node kind: ${In.formatSyntaxKind(t.kind)}`)}var d;return BC(t)&&_s(b,t.pos).line===_s(b,t.end).line&&fI(t,1),u(fB(t,ae,e));function u(e){return e&&i&&rv(t)&&function(e){let t;s||(t=c,c=qj(e));y=e.name,In.assert(I.isLateBound(Nl(e)));const r=e;te(r.name.expression,n),s||(c=t);y=void 0}(t),ee(t)&&(n=r),i&&!s&&(c=o),l&&(s=a),e===t?e:e&&lI(ne(e,t),t)}}function le(e){if(!function(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}(e))return;if(me(e))return;switch(e.kind){case 278:return rM(e.parent)&&(p=!0),m=!0,L(e),_.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,re(e,e.moduleSpecifier),oe(e.attributes));case 277:if(rM(e.parent)&&(p=!0),m=!0,80===e.expression.kind)return e;{const t=_.createUniqueName("_default",16);c=()=>({diagnosticMessage:Oa.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),v=e;const n=_.createVariableDeclaration(t,void 0,I.createTypeOfExpression(e.expression,e,Xj,g),void 0);v=void 0;const r=_.createVariableStatement(d?[_.createModifier(138)]:[],_.createVariableDeclarationList([n],2));return ne(r,e),pI(e),[r,_.updateExportAssignment(e,e.modifiers,t)]}}const t=pe(e);return a.set(zB(e),t),e}function de(e){if(hN(e)||Bb(e,2048)||!vk(e))return e;const t=_.createModifiersFromModifierFlags(131039&Zb(e));return _.replaceModifiers(e,t)}function ue(e,t,n,r){const o=_.updateModuleDeclaration(e,t,n,r);if(Pm(o)||32&o.flags)return o;const i=_.createModuleDeclaration(o.modifiers,o.name,o.body,32|o.flags);return lI(i,o),yk(i,o),i}function pe(e){if(i)for(;tn(i,e););if(me(e))return;switch(e.kind){case 271:{const t=function(e){if(I.isDeclarationVisible(e)){if(283===e.moduleReference.kind){const t=Hh(e);return _.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,_.updateExternalModuleReference(e.moduleReference,re(e,t)))}{const t=c;return c=Jj(e),te(e.moduleReference,n),c=t,e}}}(e);return t&&L(e),t}case 272:{const t=function(e){if(!e.importClause)return _.updateImportDeclaration(e,e.modifiers,e.importClause,re(e,e.moduleSpecifier),oe(e.attributes));const t=e.importClause&&e.importClause.name&&I.isDeclarationVisible(e.importClause)?e.importClause.name:void 0;if(!e.importClause.namedBindings)return t&&_.updateImportDeclaration(e,e.modifiers,_.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,void 0),re(e,e.moduleSpecifier),oe(e.attributes));if(274===e.importClause.namedBindings.kind){const n=I.isDeclarationVisible(e.importClause.namedBindings)?e.importClause.namedBindings:void 0;return t||n?_.updateImportDeclaration(e,e.modifiers,_.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),re(e,e.moduleSpecifier),oe(e.attributes)):void 0}const n=Z(e.importClause.namedBindings.elements,(e=>I.isDeclarationVisible(e)?e:void 0));return n&&n.length||t?_.updateImportDeclaration(e,e.modifiers,_.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n&&n.length?_.updateNamedImports(e.importClause.namedBindings,n):void 0),re(e,e.moduleSpecifier),oe(e.attributes)):I.isImportRequiredByAugmentation(e)?_.updateImportDeclaration(e,e.modifiers,void 0,re(e,e.moduleSpecifier),oe(e.attributes)):void 0}(e);return t&&L(e),t}}if(Lu(e)&&K(e))return;if(Td(e)&&I.isImplementationOfOverload(e))return;let t;ee(e)&&(t=n,n=e);const r=Kj(e),o=c;r&&(c=Jj(e));const s=d;switch(e.kind){case 265:{d=!1;const t=l(_.updateTypeAliasDeclaration(e,he(e),e.name,oB(e.typeParameters,ae,vC),In.checkDefined(rB(e.type,ae,Gd))));return d=s,t}case 264:return l(_.updateInterfaceDeclaration(e,he(e),e.name,Q(e,e.typeParameters),ye(e.heritageClauses),oB(e.members,ae,Wd)));case 262:{const t=l(_.updateFunctionDeclaration(e,he(e),void 0,e.name,Q(e,e.typeParameters),$(e,e.parameters),H(e,e.type),void 0));if(t&&I.isExpandoFunctionDeclaration(e)&&function(e){var t;if(e.body)return!0;const n=null==(t=e.symbol.declarations)?void 0:t.filter((e=>sN(e)&&!e.body));return!n||n.indexOf(e)===n.length-1}(e)){const r=I.getPropertiesOfContainerFunction(e),i=Rk.createModuleDeclaration(void 0,t.name||_.createIdentifier("_default"),_.createModuleBlock([]),32);Vx(i,n),i.locals=Mf(r),i.symbol=r[0].parent;const a=[];let s=Z(r,(e=>{if(!IA(e.valueDeclaration))return;const t=Ll(e.escapedName);if(!zs(t,99))return;c=Jj(e.valueDeclaration);const n=I.createTypeOfDeclaration(e.valueDeclaration,i,Xj,g);c=o;const r=Xy(t),s=r?_.getGeneratedNameForNode(e.valueDeclaration):_.createIdentifier(t);r&&a.push([s,t]);const l=_.createVariableDeclaration(s,void 0,n,void 0);return _.createVariableStatement(r?void 0:[_.createToken(95)],_.createVariableDeclarationList([l]))}));a.length?s.push(_.createExportDeclaration(void 0,!1,_.createNamedExports(U(a,(([e,t])=>_.createExportSpecifier(!1,e,t)))))):s=Z(s,(e=>_.replaceModifiers(e,0)));const l=_.createModuleDeclaration(he(e),e.name,_.createModuleBlock(s),32);if(!Bb(t,2048))return[t,l];const d=_.createModifiersFromModifierFlags(-2081&Zb(t)|128),u=_.updateFunctionDeclaration(t,d,void 0,t.name,t.typeParameters,t.parameters,t.type,void 0),f=_.updateModuleDeclaration(l,d,l.name,l.body),h=_.createExportAssignment(void 0,!1,l.name);return rM(e.parent)&&(p=!0),m=!0,[u,f,h]}return t}case 267:{d=!1;const t=e.body;if(t&&268===t.kind){const n=f,r=m;m=!1,f=!1;let o=ie(oB(t.statements,le,wu));33554432&e.flags&&(f=!1),Bm(e)||function(e){return se(e,_e)}(o)||m||(o=f?_.createNodeArray([...o,YM(_)]):oB(o,de,wu));const i=_.updateModuleBlock(t,o);d=s,f=n,m=r;const a=he(e);return l(ue(e,a,Gm(e)?re(e,e.name):e.name,i))}{d=s;const n=he(e);d=!1,rB(t,le);const r=zB(t),o=a.get(r);return a.delete(r),l(ue(e,n,e.name,o))}}case 263:{y=e.name,v=e;const t=_.createNodeArray(he(e)),n=Q(e,e.typeParameters),r=_b(e);let o;if(r){const e=c;o=ve(J(r.parameters,(e=>{if(Gb(e,31)&&!me(e))return c=Jj(e),80===e.name.kind?ne(_.createPropertyDeclaration(he(e),e.name,e.questionToken,H(e,e.type),V(e)),e):function t(n){let r;for(const o of n.elements)DD(o)||(Vd(o.name)&&(r=ce(r,t(o.name))),r=r||[],r.push(_.createPropertyDeclaration(he(e),o.name,void 0,H(o,void 0),void 0)));return r}(e.name)}))),c=e}const i=ce(ce(se(e.members,(e=>!!e.name&&rC(e.name)))?[_.createPropertyDeclaration(void 0,_.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,o),oB(e.members,ae,Nd)),a=_.createNodeArray(i),s=Oy(e);if(s&&!EE(s.expression)&&106!==s.expression.kind){const r=e.name?Ll(e.name.escapedText):"default",o=_.createUniqueName(`${r}_base`,16);c=()=>({diagnosticMessage:Oa.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:s,typeName:e.name});const i=_.createVariableDeclaration(o,void 0,I.createTypeOfExpression(s.expression,e,Xj,g),void 0),u=_.createVariableStatement(d?[_.createModifier(138)]:[],_.createVariableDeclarationList([i],2)),p=_.createNodeArray(U(e.heritageClauses,(e=>{if(96===e.token){const t=c;c=Jj(e.types[0]);const n=_.updateHeritageClause(e,U(e.types,(e=>_.updateExpressionWithTypeArguments(e,o,oB(e.typeArguments,ae,Gd)))));return c=t,n}return _.updateHeritageClause(e,oB(_.createNodeArray(G(e.types,(e=>EE(e.expression)||106===e.expression.kind))),ae,ND))})));return[u,l(_.updateClassDeclaration(e,t,e.name,n,p,a))]}{const r=ye(e.heritageClauses);return l(_.updateClassDeclaration(e,t,e.name,n,r,a))}}case 243:return l(function(e){if(!x(e.declarationList.declarations,X))return;const t=oB(e.declarationList.declarations,ae,iN);if(!T(t))return;const n=_.createNodeArray(he(e));let r;C_(e.declarationList)||R_(e.declarationList)?(r=_.createVariableDeclarationList(t,2),lI(r,e.declarationList),yk(r,e.declarationList),xI(r,e.declarationList)):r=_.updateVariableDeclarationList(e.declarationList,t);return _.updateVariableStatement(e,n,r)}(e));case 266:return l(_.updateEnumDeclaration(e,_.createNodeArray(he(e)),e.name,_.createNodeArray(Z(e.members,(e=>{if(me(e))return;const t=I.getConstantValue(e),n=void 0===t?void 0:"string"===typeof t?_.createStringLiteral(t):t<0?_.createPrefixUnaryExpression(41,_.createNumericLiteral(-t)):_.createNumericLiteral(t);return ne(_.updateEnumMember(e,e.name,n),e)})))))}return In.assertNever(e,`Unhandled top-level node in declaration emit: ${In.formatSyntaxKind(e.kind)}`);function l(i){return ee(e)&&(n=t),r&&(c=o),267===e.kind&&(d=s),i===e?i:(v=void 0,y=void 0,i&&lI(ne(i,e),e))}}function fe(e){return q(Z(e.elements,(e=>function(e){if(232===e.kind)return;if(e.name){if(!X(e))return;return Vd(e.name)?fe(e.name):_.createVariableDeclaration(e.name,void 0,H(e,void 0),void 0)}}(e))))}function me(e){return!!D&&!!e&&sp(e,b)}function _e(e){return CN(e)||DN(e)}function he(e){const t=Zb(e),n=function(e){let t=130030,n=d&&!function(e){if(264===e.kind)return!0;return!1}(e)?128:0;const r=312===e.parent.kind;(!r||u&&r&&uP(e.parent))&&(t^=128,n=0);return Zj(e,t,n)}(e);return t===n?iB(e.modifiers,(e=>yt(e,vd)),vd):_.createModifiersFromModifierFlags(n)}function ge(e,t){let n=eV(e);return n||e===t.firstAccessor||(n=eV(t.firstAccessor),c=Jj(t.firstAccessor)),!n&&t.secondAccessor&&e!==t.secondAccessor&&(n=eV(t.secondAccessor),c=Jj(t.secondAccessor)),n}function ye(e){return _.createNodeArray(G(U(e,(e=>_.updateHeritageClause(e,oB(_.createNodeArray(G(e.types,(t=>EE(t.expression)||96===e.token&&106===t.expression.kind))),ae,ND)))),(e=>e.types&&!!e.types.length)))}}function Zj(e,t=131070,n=0){let r=Zb(e)&t|n;return 2048&r&&!(32&r)&&(r^=32),2048&r&&128&r&&(r^=128),r}function eV(e){if(e)return 177===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}var tV,nV,rV=b({"src/compiler/transformers/declarations.ts"(){JJ(),Vz(),Xj=531469}});function oV(e,t,n){return{scriptTransformers:iV(e,t,n),declarationTransformers:aV(t)}}function iV(e,t,n){if(n)return o;const r=jp(e),i=Vp(e),a=rf(e),s=[];return xe(s,t&&U(t.before,lV)),s.push($G),e.experimentalDecorators&&s.push(rj),LT(e)&&s.push(Ij),r<99&&s.push(yj),e.experimentalDecorators||!(r<99)&&a||s.push(ij),s.push(QG),r<8&&s.push(hj),r<7&&s.push(mj),r<6&&s.push(pj),r<5&&s.push(dj),r<4&&s.push(sj),r<3&&s.push(Cj),r<2&&(s.push(Mj),s.push(wj)),s.push(function(e){switch(e){case 99:case 7:case 6:case 5:case 200:return jj;case 4:return Bj;case 100:case 199:return Uj;default:return Wj}}(i)),r<1&&s.push(kj),xe(s,t&&U(t.after,lV)),s}function aV(e){const t=[];return t.push(Qj),xe(t,e&&U(e.afterDeclarations,cV)),t}function sV(e,t){return n=>{const r=e(n);return"function"===typeof r?t(n,r):function(e){return t=>oM(t)?e.transformBundle(t):e.transformSourceFile(t)}(r)}}function lV(e){return sV(e,GB)}function cV(e){return sV(e,((e,t)=>t))}function dV(e,t){return t}function uV(e,t,n){n(e,t)}function pV(e,t,n,r,o,i,a){var s,l;const c=new Array(363);let d,u,p,f,m,_=0,h=[],g=[],y=[],v=[],b=0,E=!1,S=[],T=0,x=dV,A=uV,I=0;const R=[],C={factory:n,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Ct((()=>MR(C))),startLexicalEnvironment:function(){In.assert(I>0,"Cannot modify the lexical environment during initialization."),In.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),In.assert(!E,"Lexical environment is suspended."),h[b]=d,g[b]=u,y[b]=p,v[b]=_,b++,d=void 0,u=void 0,p=void 0,_=0},suspendLexicalEnvironment:function(){In.assert(I>0,"Cannot modify the lexical environment during initialization."),In.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),In.assert(!E,"Lexical environment is already suspended."),E=!0},resumeLexicalEnvironment:function(){In.assert(I>0,"Cannot modify the lexical environment during initialization."),In.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),In.assert(E,"Lexical environment is not suspended."),E=!1},endLexicalEnvironment:function(){let e;if(In.assert(I>0,"Cannot modify the lexical environment during initialization."),In.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),In.assert(!E,"Lexical environment is suspended."),d||u||p){if(u&&(e=[...u]),d){const t=n.createVariableStatement(void 0,n.createVariableDeclarationList(d));fI(t,2097152),e?e.push(t):e=[t]}p&&(e=e?[...e,...p]:[...p])}b--,d=h[b],u=g[b],p=y[b],_=v[b],0===b&&(h=[],g=[],y=[],v=[]);return e},setLexicalEnvironmentFlags:function(e,t){_=t?_|e:_&~e},getLexicalEnvironmentFlags:function(){return _},hoistVariableDeclaration:function(e){In.assert(I>0,"Cannot modify the lexical environment during initialization."),In.assert(I<2,"Cannot modify the lexical environment after transformation has completed.");const t=fI(n.createVariableDeclaration(e),128);d?d.push(t):d=[t];1&_&&(_|=2)},hoistFunctionDeclaration:function(e){In.assert(I>0,"Cannot modify the lexical environment during initialization."),In.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),fI(e,2097152),u?u.push(e):u=[e]},addInitializationStatement:function(e){In.assert(I>0,"Cannot modify the lexical environment during initialization."),In.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),fI(e,2097152),p?p.push(e):p=[e]},startBlockScope:function(){In.assert(I>0,"Cannot start a block scope during initialization."),In.assert(I<2,"Cannot start a block scope after transformation has completed."),S[T]=f,T++,f=void 0},endBlockScope:function(){In.assert(I>0,"Cannot end a block scope during initialization."),In.assert(I<2,"Cannot end a block scope after transformation has completed.");const e=se(f)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(f.map((e=>n.createVariableDeclaration(e))),1))]:void 0;T--,f=S[T],0===T&&(S=[]);return e},addBlockScopedVariable:function(e){In.assert(T>0,"Cannot add a block scoped variable outside of an iteration body."),(f||(f=[])).push(e)},requestEmitHelper:function e(t){if(In.assert(I>0,"Cannot modify the transformation context during initialization."),In.assert(I<2,"Cannot modify the transformation context after transformation has completed."),In.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(const n of t.dependencies)e(n);m=Ee(m,t)},readEmitHelpers:function(){In.assert(I>0,"Cannot modify the transformation context during initialization."),In.assert(I<2,"Cannot modify the transformation context after transformation has completed.");const e=m;return m=void 0,e},enableSubstitution:function(e){In.assert(I<2,"Cannot modify the transformation context after transformation has completed."),c[e]|=1},enableEmitNotification:function(e){In.assert(I<2,"Cannot modify the transformation context after transformation has completed."),c[e]|=2},isSubstitutionEnabled:k,isEmitNotificationEnabled:P,get onSubstituteNode(){return x},set onSubstituteNode(e){In.assert(I<1,"Cannot modify transformation hooks after initialization has completed."),In.assert(void 0!==e,"Value must not be 'undefined'"),x=e},get onEmitNode(){return A},set onEmitNode(e){In.assert(I<1,"Cannot modify transformation hooks after initialization has completed."),In.assert(void 0!==e,"Value must not be 'undefined'"),A=e},addDiagnostic(e){R.push(e)}};for(const w of o)uI(Yf(Nl(w)));br("beforeTransform");const D=i.map((e=>e(C))),N=e=>{for(const t of D)e=t(e);return e};I=1;const M=[];for(const w of o)null==(s=kr)||s.push(kr.Phase.Emit,"transformNodes",312===w.kind?{path:w.path}:{kind:w.kind,pos:w.pos,end:w.end}),M.push((a?N:L)(w)),null==(l=kr)||l.pop();return I=2,br("afterTransform"),Er("transformTime","beforeTransform","afterTransform"),{transformed:M,substituteNode:function(e,t){return In.assert(I<3,"Cannot substitute a node after the result is disposed."),t&&k(t)&&x(e,t)||t},emitNodeWithNotification:function(e,t,n){In.assert(I<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(P(t)?A(e,t,n):n(e,t))},isEmitNotificationEnabled:P,dispose:function(){if(I<3){for(const e of o)uI(Yf(Nl(e)));d=void 0,h=void 0,u=void 0,g=void 0,x=void 0,A=void 0,m=void 0,I=3}},diagnostics:R};function L(e){return!e||rM(e)&&e.isDeclarationFile?e:N(e)}function k(e){return 0!==(1&c[e.kind])&&0===(8&Rm(e))}function P(e){return 0!==(2&c[e.kind])||0!==(4&Rm(e))}}var fV,mV,_V,hV,gV,yV,vV=b({"src/compiler/transformer.ts"(){JJ(),oi(),tV={scriptTransformers:o,declarationTransformers:o},nV={factory:UA,getCompilerOptions:()=>({}),getEmitResolver:Rt,getEmitHost:Rt,getEmitHelperFactory:Rt,startLexicalEnvironment:bt,resumeLexicalEnvironment:bt,suspendLexicalEnvironment:bt,endLexicalEnvironment:Tt,setLexicalEnvironmentFlags:bt,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:bt,hoistFunctionDeclaration:bt,addInitializationStatement:bt,startBlockScope:bt,endBlockScope:Tt,addBlockScopedVariable:bt,requestEmitHelper:bt,readEmitHelpers:Rt,enableSubstitution:bt,enableEmitNotification:bt,isSubstitutionEnabled:Rt,isEmitNotificationEnabled:Rt,onSubstituteNode:dV,onEmitNode:uV,addDiagnostic:bt}}});function bV(e){return Yi(e,".tsbuildinfo")}function EV(e,t,n,r=!1,o,i){const a=mt(n)?n:ab(e,n,r),s=e.getCompilerOptions();if(ob(s)){const n=e.getPrependNodes();if(a.length||n.length){const o=UA.createBundle(a,n),i=t(xV(o,e,r),o);if(i)return i}}else{if(!o)for(const n of a){const o=t(xV(n,e,r),n);if(o)return o}if(i){const e=SV(s);if(e)return t({buildInfoPath:e},void 0)}}}function SV(e){const t=e.configFilePath;if(!ef(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=ob(e);let r;if(n)r=cx(n);else{if(!t)return;const n=cx(t);r=e.outDir?e.rootDir?pa(e.outDir,Na(e.rootDir,n,!0)):ua(e.outDir,oa(n)):n}return r+".tsbuildinfo"}function TV(e,t){const n=ob(e),r=e.emitDeclarationOnly?void 0:n,o=r&&AV(r,e),i=t||Qp(e)?cx(n)+".d.ts":void 0;return{jsFilePath:r,sourceMapFilePath:o,declarationFilePath:i,declarationMapPath:i&&tf(e)?i+".map":void 0,buildInfoPath:SV(e)}}function xV(e,t,n){const r=t.getCompilerOptions();if(313===e.kind)return TV(r,n);{const o=Zv(e.fileName,t,IV(e.fileName,r)),i=x_(e),a=i&&0===Ia(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),s=r.emitDeclarationOnly||a?void 0:o,l=!s||x_(e)?void 0:AV(s,r),c=n||Qp(r)&&!i?eb(e.fileName,t):void 0;return{jsFilePath:s,sourceMapFilePath:l,declarationFilePath:c,declarationMapPath:c&&tf(r)?c+".map":void 0,buildInfoPath:void 0}}}function AV(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function IV(e,t){return Yi(e,".json")?".json":1===t.jsx&&Qi(e,[".jsx",".tsx"])?".jsx":Qi(e,[".mts",".mjs"])?".mjs":Qi(e,[".cts",".cjs"])?".cjs":".js"}function RV(e,t,n,r){return n?pa(n,Na(r(),e,t)):e}function CV(e,t,n,r=()=>OV(t,n)){return DV(e,t.options,n,r)}function DV(e,t,n,r){return px(RV(e,n,t.declarationDir||t.outDir,r),nb(e))}function NV(e,t,n,r=()=>OV(t,n)){if(t.options.emitDeclarationOnly)return;const o=Yi(e,".json"),i=MV(e,t.options,n,r);return o&&0===Ia(e,i,In.checkDefined(t.options.configFilePath),n)?void 0:i}function MV(e,t,n,r){return px(RV(e,n,t.outDir,r),IV(e,t))}function LV(){let e;return{addOutput:function(t){t&&(e||(e=[])).push(t)},getOutputs:function(){return e||o}}}function kV(e,t){const{jsFilePath:n,sourceMapFilePath:r,declarationFilePath:o,declarationMapPath:i,buildInfoPath:a}=TV(e.options,!1);t(n),t(r),t(o),t(i),t(a)}function PV(e,t,n,r,o){if(_P(t))return;const i=NV(t,e,n,o);if(r(i),!Yi(t,".json")&&(i&&e.options.sourceMap&&r(`${i}.map`),Qp(e.options))){const i=CV(t,e,n,o);r(i),e.options.declarationMap&&r(`${i}.map`)}}function wV(e,t,n,r,o){let i;return e.rootDir?(i=ma(e.rootDir,n),null==o||o(e.rootDir)):e.composite&&e.configFilePath?(i=ra(ca(e.configFilePath)),null==o||o(i)):i=AU(t(),n,r),i&&i[i.length-1]!==Fi&&(i+=Fi),i}function OV({options:e,fileNames:t},n){return wV(e,(()=>G(t,(t=>!(e.noEmitForJsFiles&&Qi(t,yf))&&!_P(t)))),ra(ca(In.checkDefined(e.configFilePath))),an(!n))}function FV(e,t){const{addOutput:n,getOutputs:r}=LV();if(ob(e.options))kV(e,n);else{const r=Ct((()=>OV(e,t)));for(const o of e.fileNames)PV(e,o,t,n,r);n(SV(e.options))}return r()}function WV(e,t,n){t=_a(t),In.assert(F(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:r,getOutputs:o}=LV();return ob(e.options)?kV(e,r):PV(e,t,n,r),o()}function zV(e,t){if(ob(e.options)){const{jsFilePath:t,declarationFilePath:n}=TV(e.options,!1);return In.checkDefined(t||n,`project ${e.options.configFilePath} expected to have at least one output`)}const n=Ct((()=>OV(e,t)));for(const o of e.fileNames){if(_P(o))continue;const r=NV(o,e,t,n);if(r)return r;if(!Yi(o,".json")&&Qp(e.options))return CV(o,e,t,n)}const r=SV(e.options);return r||In.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function BV(e,t,n,{scriptTransformers:r,declarationTransformers:o},i,a,s){var l,c=t.getCompilerOptions(),d=c.sourceMap||c.inlineSourceMap||tf(c)?[]:void 0,u=c.listEmittedFiles?[]:void 0,p=Mv(),f=VE(c),m=Hv(f),{enter:_,exit:h}=vr("printTime","beforePrint","afterPrint"),g=!1;return _(),EV(t,(function({jsFilePath:a,sourceMapFilePath:d,declarationFilePath:f,declarationMapPath:m,buildInfoPath:_},h){var b,E,S,x,A,I;let R;_&&h&&oM(h)&&(R=ra(ma(_,t.getCurrentDirectory())),l={commonSourceDirectory:C(t.getCommonSourceDirectory()),sourceFiles:h.sourceFiles.map((e=>C(ma(e.fileName,t.getCurrentDirectory()))))});function C(e){return ba(Na(R,e,t.getCanonicalFileName))}null==(b=kr)||b.push(kr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:a}),function(n,o,a,s){if(!n||i||!o)return;if(t.isEmitBlocked(o)||c.noEmit)return void(g=!0);const d=pV(e,t,UA,c,[n],r,!1),p={removeComments:c.removeComments,newLine:c.newLine,noEmitHelpers:c.noEmitHelpers,module:c.module,target:c.target,sourceMap:c.sourceMap,inlineSourceMap:c.inlineSourceMap,inlineSources:c.inlineSources,extendedDiagnostics:c.extendedDiagnostics,writeBundleFileInfo:!!l,relativeToBuildInfo:s},f=HV(p,{hasGlobalName:e.hasGlobalName,onEmitNode:d.emitNodeWithNotification,isEmitNotificationEnabled:d.isEmitNotificationEnabled,substituteNode:d.substituteNode});In.assert(1===d.transformed.length,"Should only see one output from the transform"),v(o,a,d,f,c),d.dispose(),l&&(l.js=f.bundleFileInfo);u&&(u.push(o),a&&u.push(a))}(h,a,d,C),null==(E=kr)||E.pop(),null==(S=kr)||S.push(kr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:f}),function(n,r,a,d){if(!n||0===i)return;if(!r)return void((i||c.emitDeclarationOnly)&&(g=!0));const f=rM(n)?[n]:n.sourceFiles,m=s?f:G(f,Qh),_=ob(c)?[UA.createBundle(m,rM(n)?void 0:n.prepends)]:m;i&&!Qp(c)&&m.forEach(y);const h=pV(e,t,UA,c,_,o,!1);if(T(h.diagnostics))for(const e of h.diagnostics)p.add(e);const b=!!h.diagnostics&&!!h.diagnostics.length||!!t.isEmitBlocked(r)||!!c.noEmit;if(g=g||b,!b||s){In.assert(1===h.transformed.length,"Should only see one output from the decl transform");const t={removeComments:c.removeComments,newLine:c.newLine,noEmitHelpers:!0,module:c.module,target:c.target,sourceMap:!s&&c.declarationMap,inlineSourceMap:c.inlineSourceMap,extendedDiagnostics:c.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!l,recordInternalSection:!!l,relativeToBuildInfo:d},n=HV(t,{hasGlobalName:e.hasGlobalName,onEmitNode:h.emitNodeWithNotification,isEmitNotificationEnabled:h.isEmitNotificationEnabled,substituteNode:h.substituteNode});v(r,a,h,n,{sourceMap:t.sourceMap,sourceRoot:c.sourceRoot,mapRoot:c.mapRoot,extendedDiagnostics:c.extendedDiagnostics}),u&&(u.push(r),a&&u.push(a)),l&&(l.dts=n.bundleFileInfo)}h.dispose()}(h,f,m,C),null==(x=kr)||x.pop(),null==(A=kr)||A.push(kr.Phase.Emit,"emitBuildInfo",{buildInfoPath:_}),function(e,r){if(!r||n||g)return;if(t.isEmitBlocked(r))return void(g=!0);const o=t.getBuildInfo(e)||GV(void 0,e);db(t,p,r,jV(o),!1,void 0,{buildInfo:o}),null==u||u.push(r)}(l,_),null==(I=kr)||I.pop()}),ab(t,n,s),s,a,!n),h(),{emitSkipped:g,diagnostics:p.getDiagnostics(),emittedFiles:u,sourceMaps:d};function y(t){CN(t)?80===t.expression.kind&&e.collectLinkedAliases(t.expression,!0):MN(t)?e.collectLinkedAliases(t.propertyName||t.name,!0):oP(t,y)}function v(e,n,r,o,i){const a=r.transformed[0],s=313===a.kind?a:void 0,l=312===a.kind?a:void 0,u=s?s.sourceFiles:[l];let _,h;if(function(e,t){return(e.sourceMap||e.inlineSourceMap)&&(312!==t.kind||!Yi(t.fileName,".json"))}(i,a)&&(_=bB(t,oa(ca(e)),function(e){const t=ca(e.sourceRoot||"");return t?va(t):t}(i),function(e,n,r){if(e.sourceRoot)return t.getCommonSourceDirectory();if(e.mapRoot){let n=ca(e.mapRoot);return r&&(n=ra(lb(r.fileName,t,n))),0===na(n)&&(n=ua(t.getCommonSourceDirectory(),n)),n}return ra(_a(n))}(i,e,l),i)),s?o.writeBundle(s,m,_):o.writeFile(l,m,_),_){d&&d.push({inputSourceFileNames:_.getSources(),sourceMap:_.toJSON()});const r=function(e,n,r,o,i){if(e.inlineSourceMap){const e=n.toString();return`data:application/json;base64,${FE(hi,e)}`}const a=oa(ca(In.checkDefined(o)));if(e.mapRoot){let n=ca(e.mapRoot);return i&&(n=ra(lb(i.fileName,t,n))),0===na(n)?(n=ua(t.getCommonSourceDirectory(),n),encodeURI(ka(ra(_a(r)),ua(n,a),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(ua(n,a))}return encodeURI(a)}(i,_,e,n,l);if(r&&(m.isAtStartOfLine()||m.rawWrite(f),h=m.getTextPos(),m.writeComment(`//# sourceMappingURL=${r}`)),n){const e=_.toString();db(t,p,n,e,!1,u),o.bundleFileInfo&&(o.bundleFileInfo.mapHash=XH(e,t))}}else m.writeLine();const g=m.getText();db(t,p,e,g,!!c.emitBOM,u,{sourceMapUrlPos:h,diagnostics:r.diagnostics}),o.bundleFileInfo&&(o.bundleFileInfo.hash=XH(g,t)),m.clear()}}function GV(e,n){return{bundle:n,program:e,version:t}}function jV(e){return JSON.stringify(e)}function VV(e,t){return zE(e,t)}function UV(e,t,n,r){var o,i;null==(o=kr)||o.push(kr.Phase.Emit,"emitUsingBuildInfo",{},!0),br("beforeEmit");const a=function(e,t,n,r){const{buildInfoPath:o,jsFilePath:i,sourceMapFilePath:a,declarationFilePath:s,declarationMapPath:l}=TV(e.options,!1),c=t.getBuildInfo(o,e.options.configFilePath);if(!c)return o;if(!c.bundle||!c.bundle.js||s&&!c.bundle.dts)return o;const d=t.readFile(In.checkDefined(i));if(!d)return i;if(XH(d,t)!==c.bundle.js.hash)return i;const u=a&&t.readFile(a);if(a&&!u||e.options.inlineSourceMap)return a||"inline sourcemap decoding";if(a&&XH(u,t)!==c.bundle.js.mapHash)return a;const p=s&&t.readFile(s);if(s&&!p)return s;if(s&&XH(p,t)!==c.bundle.dts.hash)return s;const f=l&&t.readFile(l);if(l&&!f||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&XH(f,t)!==c.bundle.dts.mapHash)return l;const m=ra(ma(o,t.getCurrentDirectory())),_=aI(i,d,a,u,s,p,l,f,o,c,!0),h=[],g=fH(e.projectReferences,n,(e=>t.readFile(e)),t),y=function(e,t,n){var r;const o=In.checkDefined(e.js),i=(null==(r=o.sources)?void 0:r.prologues)&&et(o.sources.prologues,(e=>e.file));return e.sourceFiles.map(((e,r)=>{const o=null==i?void 0:i.get(r),a=null==o?void 0:o.directives.map((e=>{const t=yk(UA.createStringLiteral(e.expression.text),e.expression),n=yk(UA.createExpressionStatement(t),e);return Vx(t,n),n})),s=UA.createToken(1),l=UA.createSourceFile(a??[],s,0);return l.fileName=Na(n.getCurrentDirectory(),ma(e,t),!n.useCaseSensitiveFileNames()),l.text=(null==o?void 0:o.text)??"",Gx(l,0,(null==o?void 0:o.text.length)??0),Ux(l.statements,l),Gx(s,l.end,0),Vx(s,l),l}))}(c.bundle,m,t);let v,b;const E={getPrependNodes:Ct((()=>[...g,_])),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>ma(c.bundle.commonSourceDirectory,m),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:Tt,getSourceFileByPath:Tt,getSourceFiles:()=>y,getLibFileFromReference:Rt,isSourceFileFromExternalLibrary:Et,getResolvedProjectReferenceToRedirect:Tt,getProjectReferenceRedirect:Tt,isSourceOfProjectReferenceRedirect:Et,writeFile:(e,t,n,r,c,m)=>{switch(e){case i:if(d===t)return;break;case a:if(u===t)return;break;case o:break;case s:if(p===t)return;v=t,b=m;break;case l:if(f===t)return;break;default:In.fail(`Unexpected path: ${e}`)}h.push({name:e,text:t,writeByteOrderMark:n,data:m})},isEmitBlocked:Et,readFile:e=>t.readFile(e),fileExists:e=>t.fileExists(e),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:n=>{const r=c.program;r&&void 0!==v&&e.options.composite&&(r.outSignature=XH(v,t,b));const{js:o,dts:i,sourceFiles:a}=c.bundle;return n.js.sources=o.sources,i&&(n.dts.sources=i.sources),n.sourceFiles=a,GV(r,n)},getSourceFileFromReference:Tt,redirectTargetsMap:ct(),getFileIncludeReasons:Rt,createHash:lt(t,t.createHash)};return BV(mV,E,void 0,oV(e.options,r)),h}(e,t,n,r);return br("afterEmit"),Er("Emit","beforeEmit","afterEmit"),null==(i=kr)||i.pop(),a}function HV(e={},t={}){var n,r,o,i,a,s,l,c,d,u,p,f,m,_,h,g,y,v,b,E,S,T,A,I,R,C,{hasGlobalName:D,onEmitNode:N=uV,isEmitNotificationEnabled:L,substituteNode:k=dV,onBeforeEmitNode:w,onAfterEmitNode:O,onBeforeEmitNodeArray:F,onAfterEmitNodeArray:W,onBeforeEmitToken:z,onAfterEmitToken:B}=t,G=!!e.extendedDiagnostics,j=!!e.omitBraceSourceMapPositions,V=VE(e),U=Vp(e),H=new Map,K=e.preserveSourceNewlines,q=function(e){y.write(e)},J=e.writeBundleFileInfo?{sections:[]}:void 0,X=J?In.checkDefined(e.relativeToBuildInfo):void 0,$=e.recordInternalSection,Y=0,Q="text",Z=!0,ee=-1,te=-1,ne=-1,re=-1,oe=-1,ie=!1,ae=!!e.removeComments,{enter:le,exit:ce}=yr(G,"commentTime","beforeComment","afterComment"),de=UA.parenthesizer,ue={select:e=>0===e?de.parenthesizeLeadingTypeArgument:void 0},pe=function(){return tk((function(e,t){if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=K,t.containerPosStack[t.stackIndex]=ne,t.containerEndStack[t.stackIndex]=re,t.declarationListContainerEndStack[t.stackIndex]=oe;const n=t.shouldEmitCommentsStack[t.stackIndex]=Ve(e),r=t.shouldEmitSourceMapsStack[t.stackIndex]=Ue(e);null==w||w(e),n&&ir(e),r&&Cr(e),Be(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}),(function(t,n,r){return e(t,r,"left")}),(function(e,t,n){const r=28!==e.kind,o=kn(n,n.left,e),i=kn(n,e,n.right);Tn(o,r),gr(e.pos),vn(e,103===e.kind?ln:cn),br(e.end,!0),Tn(i,!0)}),(function(t,n,r){return e(t,r,"right")}),(function(e,t){const n=kn(e,e.left,e.operatorToken),r=kn(e,e.operatorToken,e.right);if(xn(n,r),t.stackIndex>0){const n=t.preserveSourceNewlinesStack[t.stackIndex],r=t.containerPosStack[t.stackIndex],o=t.containerEndStack[t.stackIndex],i=t.declarationListContainerEndStack[t.stackIndex],a=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Ge(n),s&&Dr(e),a&&ar(e,r,o,i),null==O||O(e),t.stackIndex--}}),void 0);function e(e,t,n){const r="left"===n?de.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):de.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind);let o=He(0,1,e);if(o===$e&&(In.assertIsDefined(R),o=Ke(1,1,e=r(vt(R,uu))),R=void 0),(o===or||o===Rr||o===Je)&&TD(e))return e;C=r,o(1,e)}}();return De(),{printNode:function(e,t,n){switch(e){case 0:In.assert(rM(t),"Expected a SourceFile node.");break;case 2:In.assert(nC(t),"Expected an Identifier node.");break;case 1:In.assert(uu(t),"Expected an Expression node.")}switch(t.kind){case 312:return me(t);case 313:return fe(t);case 314:return function(e,t){const n=y;Ce(t,void 0),Ie(4,e,void 0),De(),y=n}(t,xe()),Ae()}return _e(e,t,n,xe()),Ae()},printList:function(e,t,n){return he(e,t,n,xe()),Ae()},printFile:me,printBundle:fe,writeNode:_e,writeList:he,writeFile:Te,writeBundle:Se,bundleFileInfo:J};function fe(e){return Se(e,xe(),void 0),Ae()}function me(e){return Te(e,xe(),void 0),Ae()}function _e(e,t,n,r){const o=y;Ce(r,void 0),Ie(e,t,n),De(),y=o}function he(e,t,n,r){const o=y;Ce(r,void 0),n&&Re(n),Zt(void 0,t,e),De(),y=o}function ge(){return y.getTextPosWithWriteLine?y.getTextPosWithWriteLine():y.getTextPos()}function ye(e,t,n){const r=Oe(J.sections);r&&r.kind===n?r.end=t:J.sections.push({pos:e,end:t,kind:n})}function ve(e){if($&&J&&n&&(Lu(e)||GD(e))&&sp(e,n)&&"internal"!==Q){const e=Q;return Ee(y.getTextPos()),Y=ge(),Q="internal",e}}function be(e){e&&(Ee(y.getTextPos()),Y=ge(),Q=e)}function Ee(e){return Y<e&&(ye(Y,e,Q),!0)}function Se(t,n,r){b=!1;const o=y;Ce(n,r),zt(t),Wt(t),Ye(t),function(e){Pt(!!e.hasNoDefaultLib,e.syntheticFileReferences||[],e.syntheticTypeReferences||[],e.syntheticLibReferences||[]);for(const t of e.prepends)if(iM(t)&&t.syntheticReferences)for(const e of t.syntheticReferences)ke(e),_n()}(t);for(const e of t.prepends){_n();const t=y.getTextPos(),n=J&&J.sections;if(n&&(J.sections=[]),Ie(4,e,void 0),J){const r=J.sections;J.sections=n,e.oldFileOfCurrentEmit?J.sections.push(...r):(r.forEach((e=>In.assert(FS(e)))),J.sections.push({pos:t,end:y.getTextPos(),kind:"prepend",data:X(e.fileName),texts:r}))}}Y=ge();for(const e of t.sourceFiles)Ie(0,e,e);if(J&&t.sourceFiles.length){if(Ee(y.getTextPos())){const n=function(e){const t=new Set;let n;for(let r=0;r<e.sourceFiles.length;r++){const o=e.sourceFiles[r];let i,a=0;for(const e of o.statements){if(!w_(e))break;t.has(e.expression.text)||(t.add(e.expression.text),(i||(i=[])).push({pos:e.pos,end:e.end,expression:{pos:e.expression.pos,end:e.expression.end,text:e.expression.text}}),a=a<e.end?e.end:a)}i&&(n||(n=[])).push({file:r,text:o.text.substring(0,a),directives:i})}return n}(t);n&&(J.sources||(J.sources={}),J.sources.prologues=n);const r=function(t){let n;if(0===U||e.noEmitHelpers)return;const r=new Map;for(const e of t.sourceFiles){const t=void 0!==AL(e),o=Qe(e);if(o)for(const e of o)e.scoped||t||r.get(e.name)||(r.set(e.name,!0),(n||(n=[])).push(e.name))}return n}(t);r&&(J.sources||(J.sources={}),J.sources.helpers=r)}}De(),y=o}function Te(e,t,n){b=!0;const r=y;Ce(t,n),zt(e),Wt(e),Ie(0,e,e),De(),y=r}function xe(){return v||(v=Hv(V))}function Ae(){const e=v.getText();return v.clear(),e}function Ie(e,t,n){n&&Re(n),je(e,t,void 0)}function Re(e){n=e,A=void 0,I=void 0,e&&kr(e)}function Ce(t,n){t&&e.omitTrailingSemicolon&&(t=Kv(t)),E=n,Z=!(y=t)||!E}function De(){r=[],o=[],i=[],a=new Set,s=[],l=new Map,c=[],d=0,u=[],p=0,f=[],m=void 0,_=[],h=void 0,n=void 0,A=void 0,I=void 0,Ce(void 0,void 0)}function Me(){return A||(A=us(In.checkDefined(n)))}function ke(e,t){if(void 0===e)return;const n=ve(e);je(4,e,t),be(n)}function Pe(e){void 0!==e&&je(2,e,void 0)}function we(e,t){void 0!==e&&je(1,e,t)}function ze(e){je(zR(e)?6:4,e)}function Be(e){K&&4&Cm(e)&&(K=!1)}function Ge(e){K=e}function je(e,t,n){C=n;He(0,e,t)(e,t),C=void 0}function Ve(e){return!ae&&!rM(e)}function Ue(e){return!Z&&!rM(e)&&!Yh(e)&&!iM(e)&&!nM(e)}function He(e,t,n){switch(e){case 0:if(N!==uV&&(!L||L(n)))return qe;case 1:if(k!==dV&&(R=k(t,n)||n)!==n)return C&&(R=C(R)),$e;case 2:if(Ve(n))return or;case 3:if(Ue(n))return Rr;case 4:return Je;default:return In.assertNever(e)}}function Ke(e,t,n){return He(e+1,t,n)}function qe(e,t){const n=Ke(0,e,t);N(e,t,n)}function Je(e,t){if(null==w||w(t),K){const n=K;Be(t),Xe(e,t),Ge(n)}else Xe(e,t);null==O||O(t),C=void 0}function Xe(e,t,r=!0){if(r){const n=zI(t);if(n)return function(e,t,n){switch(n.kind){case 1:!function(e,t,n){mn(`\${${n.order}:`),Xe(e,t,!1),mn("}")}(e,t,n);break;case 0:!function(e,t,n){In.assert(242===t.kind,`A tab stop cannot be attached to a node of kind ${In.formatSyntaxKind(t.kind)}.`),In.assert(5!==e,"A tab stop cannot be attached to an embedded statement."),mn(`$${n.order}`)}(e,t,n)}}(e,t,n)}if(0===e)return kt(vt(t,rM));if(2===e)return tt(vt(t,nC));if(6===e)return Ze(vt(t,zR),!0);if(3===e)return function(e){ke(e.name),pn(),ln("in"),pn(),ke(e.constraint)}(vt(t,vC));if(7===e)return function(e){an("{"),pn(),ln(132===e.token?"assert":"with"),an(":"),pn();const t=e.elements;Zt(e,t,526226),pn(),an("}")}(vt(t,SN));if(5===e)return In.assertNode(t,jD),st(!0);if(4===e){switch(t.kind){case 16:case 17:case 18:return Ze(t,!1);case 80:return tt(t);case 81:return nt(t);case 166:return function(e){(function(e){80===e.kind?we(e):ke(e)})(e.left),an("."),ke(e.right)}(t);case 167:return function(e){const t=d,n=h;jn(),an("["),we(e.expression,de.parenthesizeExpressionOfComputedPropertyName),an("]"),Gn(t,n)}(t);case 168:return function(e){jt(e,e.modifiers),ke(e.name),e.constraint&&(pn(),ln("extends"),pn(),ke(e.constraint));e.default&&(pn(),cn("="),pn(),ke(e.default))}(t);case 169:return function(e){Gt(e,e.modifiers,!0),ke(e.dotDotDotToken),Bt(e.name,dn),ke(e.questionToken),e.parent&&324===e.parent.kind&&!e.name?ke(e.type):Vt(e.type);Ut(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.pos,e,de.parenthesizeExpressionForDisallowedComma)}(t);case 170:return i=t,an("@"),void we(i.expression,de.parenthesizeLeftSideOfAccess);case 171:return function(e){jt(e,e.modifiers),Bt(e.name,fn),ke(e.questionToken),Vt(e.type),sn()}(t);case 172:return function(e){Gt(e,e.modifiers,!0),ke(e.name),ke(e.questionToken),ke(e.exclamationToken),Vt(e.type),Ut(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),sn()}(t);case 173:return function(e){Wn(e),jt(e,e.modifiers),ke(e.name),ke(e.questionToken),Xt(e,e.typeParameters),$t(e,e.parameters),Vt(e.type),sn(),zn(e)}(t);case 174:return function(e){Gt(e,e.modifiers,!0),ke(e.asteriskToken),ke(e.name),ke(e.questionToken),ht(e,gt)}(t);case 175:return function(e){ln("static"),bt(e.body)}(t);case 176:return function(e){Gt(e,e.modifiers,!1),ln("constructor"),ht(e,gt)}(t);case 177:case 178:return function(e){const t=Gt(e,e.modifiers,!0),n=177===e.kind?139:153;dt(n,t,ln,e),pn(),ke(e.name),ht(e,gt)}(t);case 179:return function(e){Wn(e),Xt(e,e.typeParameters),$t(e,e.parameters),Vt(e.type),sn(),zn(e)}(t);case 180:return function(e){Wn(e),ln("new"),pn(),Xt(e,e.typeParameters),$t(e,e.parameters),Vt(e.type),sn(),zn(e)}(t);case 181:return function(e){Gt(e,e.modifiers,!1),t=e,n=e.parameters,Zt(t,n,8848),Vt(e.type),sn();var t,n}(t);case 182:return function(e){e.assertsModifier&&(ke(e.assertsModifier),pn());ke(e.parameterName),e.type&&(pn(),ln("is"),pn(),ke(e.type))}(t);case 183:return function(e){ke(e.typeName),Jt(e,e.typeArguments)}(t);case 184:return function(e){Wn(e),Xt(e,e.typeParameters),Yt(e,e.parameters),pn(),an("=>"),pn(),ke(e.type),zn(e)}(t);case 185:return function(e){Wn(e),jt(e,e.modifiers),ln("new"),pn(),Xt(e,e.typeParameters),$t(e,e.parameters),pn(),an("=>"),pn(),ke(e.type),zn(e)}(t);case 186:return function(e){ln("typeof"),pn(),ke(e.exprName),Jt(e,e.typeArguments)}(t);case 187:return function(e){Gn(0,void 0),an("{");const t=1&Rm(e)?768:32897;Zt(e,e.members,524288|t),an("}"),jn()}(t);case 188:return function(e){ke(e.elementType,de.parenthesizeNonArrayTypeOfPostfixType),an("["),an("]")}(t);case 189:return function(e){dt(23,e.pos,an,e);const t=1&Rm(e)?528:657;Zt(e,e.elements,524288|t,de.parenthesizeElementTypeOfTupleType),dt(24,e.elements.end,an,e)}(t);case 190:return function(e){ke(e.type,de.parenthesizeTypeOfOptionalType),an("?")}(t);case 192:return function(e){Zt(e,e.types,516,de.parenthesizeConstituentTypeOfUnionType)}(t);case 193:return function(e){Zt(e,e.types,520,de.parenthesizeConstituentTypeOfIntersectionType)}(t);case 194:return function(e){ke(e.checkType,de.parenthesizeCheckTypeOfConditionalType),pn(),ln("extends"),pn(),ke(e.extendsType,de.parenthesizeExtendsTypeOfConditionalType),pn(),an("?"),pn(),ke(e.trueType),pn(),an(":"),pn(),ke(e.falseType)}(t);case 195:return function(e){ln("infer"),pn(),ke(e.typeParameter)}(t);case 196:return function(e){an("("),ke(e.type),an(")")}(t);case 233:return ot(t);case 197:return void ln("this");case 198:return function(e){bn(e.operator,ln),pn();const t=148===e.operator?de.parenthesizeOperandOfReadonlyTypeOperator:de.parenthesizeOperandOfTypeOperator;ke(e.type,t)}(t);case 199:return function(e){ke(e.objectType,de.parenthesizeNonArrayTypeOfPostfixType),an("["),ke(e.indexType),an("]")}(t);case 200:return function(e){const t=Rm(e);an("{"),1&t?pn():(_n(),hn());e.readonlyToken&&(ke(e.readonlyToken),148!==e.readonlyToken.kind&&ln("readonly"),pn());an("["),je(3,e.typeParameter),e.nameType&&(pn(),ln("as"),pn(),ke(e.nameType));an("]"),e.questionToken&&(ke(e.questionToken),58!==e.questionToken.kind&&an("?"));an(":"),pn(),ke(e.type),sn(),1&t?pn():(_n(),gn());Zt(e,e.members,2),an("}")}(t);case 201:return function(e){we(e.literal)}(t);case 202:return function(e){ke(e.dotDotDotToken),ke(e.name),ke(e.questionToken),dt(59,e.name.end,an,e),pn(),ke(e.type)}(t);case 203:return function(e){ke(e.head),Zt(e,e.templateSpans,262144)}(t);case 204:return function(e){ke(e.type),ke(e.literal)}(t);case 205:return function(e){e.isTypeOf&&(ln("typeof"),pn());ln("import"),an("("),ke(e.argument),e.attributes&&(an(","),pn(),je(7,e.attributes));an(")"),e.qualifier&&(an("."),ke(e.qualifier));Jt(e,e.typeArguments)}(t);case 206:return function(e){an("{"),Zt(e,e.elements,525136),an("}")}(t);case 207:return function(e){an("["),Zt(e,e.elements,524880),an("]")}(t);case 208:return function(e){ke(e.dotDotDotToken),e.propertyName&&(ke(e.propertyName),an(":"),pn());ke(e.name),Ut(e.initializer,e.name.end,e,de.parenthesizeExpressionForDisallowedComma)}(t);case 239:return function(e){we(e.expression),ke(e.literal)}(t);case 240:return void sn();case 241:return function(e){at(e,!e.multiLine&&Pn(e))}(t);case 243:return function(e){Gt(e,e.modifiers,!1),ke(e.declarationList),sn()}(t);case 242:return st(!1);case 244:return function(e){we(e.expression,de.parenthesizeExpressionOfExpressionStatement),n&&x_(n)&&!Sv(e.expression)||sn()}(t);case 245:return function(e){const t=dt(101,e.pos,ln,e);pn(),dt(21,t,an,e),we(e.expression),dt(22,e.expression.end,an,e),qt(e,e.thenStatement),e.elseStatement&&(En(e,e.thenStatement,e.elseStatement),dt(93,e.thenStatement.end,ln,e),245===e.elseStatement.kind?(pn(),ke(e.elseStatement)):qt(e,e.elseStatement))}(t);case 246:return function(e){dt(92,e.pos,ln,e),qt(e,e.statement),BD(e.statement)&&!K?pn():En(e,e.statement,e.expression);lt(e,e.statement.end),sn()}(t);case 247:return function(e){lt(e,e.pos),qt(e,e.statement)}(t);case 248:return function(e){const t=dt(99,e.pos,ln,e);pn();let n=dt(21,t,an,e);ct(e.initializer),n=dt(27,e.initializer?e.initializer.end:n,an,e),Kt(e.condition),n=dt(27,e.condition?e.condition.end:n,an,e),Kt(e.incrementor),dt(22,e.incrementor?e.incrementor.end:n,an,e),qt(e,e.statement)}(t);case 249:return function(e){const t=dt(99,e.pos,ln,e);pn(),dt(21,t,an,e),ct(e.initializer),pn(),dt(103,e.initializer.end,ln,e),pn(),we(e.expression),dt(22,e.expression.end,an,e),qt(e,e.statement)}(t);case 250:return function(e){const t=dt(99,e.pos,ln,e);pn(),function(e){e&&(ke(e),pn())}(e.awaitModifier),dt(21,t,an,e),ct(e.initializer),pn(),dt(165,e.initializer.end,ln,e),pn(),we(e.expression),dt(22,e.expression.end,an,e),qt(e,e.statement)}(t);case 251:return function(e){dt(88,e.pos,ln,e),Ht(e.label),sn()}(t);case 252:return function(e){dt(83,e.pos,ln,e),Ht(e.label),sn()}(t);case 253:return function(e){dt(107,e.pos,ln,e),Kt(e.expression&&ft(e.expression),ft),sn()}(t);case 254:return function(e){const t=dt(118,e.pos,ln,e);pn(),dt(21,t,an,e),we(e.expression),dt(22,e.expression.end,an,e),qt(e,e.statement)}(t);case 255:return function(e){const t=dt(109,e.pos,ln,e);pn(),dt(21,t,an,e),we(e.expression),dt(22,e.expression.end,an,e),pn(),ke(e.caseBlock)}(t);case 256:return function(e){ke(e.label),dt(59,e.label.end,an,e),pn(),ke(e.statement)}(t);case 257:return function(e){dt(111,e.pos,ln,e),Kt(ft(e.expression),ft),sn()}(t);case 258:return function(e){dt(113,e.pos,ln,e),pn(),ke(e.tryBlock),e.catchClause&&(En(e,e.tryBlock,e.catchClause),ke(e.catchClause));e.finallyBlock&&(En(e,e.catchClause||e.tryBlock,e.finallyBlock),dt(98,(e.catchClause||e.tryBlock).end,ln,e),pn(),ke(e.finallyBlock))}(t);case 259:return function(e){yn(89,e.pos,ln),sn()}(t);case 260:return function(e){var t,n,r;ke(e.name),ke(e.exclamationToken),Vt(e.type),Ut(e.initializer,(null==(t=e.type)?void 0:t.end)??(null==(r=null==(n=e.name.emitNode)?void 0:n.typeNode)?void 0:r.end)??e.name.end,e,de.parenthesizeExpressionForDisallowedComma)}(t);case 261:return function(e){if(R_(e))ln("await"),pn(),ln("using");else{ln(N_(e)?"let":D_(e)?"const":C_(e)?"using":"var")}pn(),Zt(e,e.declarations,528)}(t);case 262:return function(e){_t(e)}(t);case 263:return function(e){Tt(e)}(t);case 264:return function(e){Gn(0,void 0),Gt(e,e.modifiers,!1),ln("interface"),pn(),ke(e.name),Xt(e,e.typeParameters),Zt(e,e.heritageClauses,512),pn(),an("{"),Zt(e,e.members,129),an("}"),jn()}(t);case 265:return function(e){Gt(e,e.modifiers,!1),ln("type"),pn(),ke(e.name),Xt(e,e.typeParameters),pn(),an("="),pn(),ke(e.type),sn()}(t);case 266:return function(e){Gt(e,e.modifiers,!1),ln("enum"),pn(),ke(e.name),pn(),an("{"),Zt(e,e.members,145),an("}")}(t);case 267:return function(e){Gt(e,e.modifiers,!1),2048&~e.flags&&(ln(32&e.flags?"namespace":"module"),pn());ke(e.name);let t=e.body;if(!t)return sn();for(;t&&pN(t);)an("."),ke(t.name),t=t.body;pn(),ke(t)}(t);case 268:return function(e){Wn(e),x(e.statements,Un),at(e,Pn(e)),zn(e)}(t);case 269:return function(e){dt(19,e.pos,an,e),Zt(e,e.clauses,129),dt(20,e.clauses.end,an,e,!0)}(t);case 270:return function(e){let t=dt(95,e.pos,ln,e);pn(),t=dt(130,t,ln,e),pn(),t=dt(145,t,ln,e),pn(),ke(e.name),sn()}(t);case 271:return function(e){Gt(e,e.modifiers,!1),dt(102,e.modifiers?e.modifiers.end:e.pos,ln,e),pn(),e.isTypeOnly&&(dt(156,e.pos,ln,e),pn());ke(e.name),pn(),dt(64,e.name.end,an,e),pn(),function(e){80===e.kind?we(e):ke(e)}(e.moduleReference),sn()}(t);case 272:return function(e){Gt(e,e.modifiers,!1),dt(102,e.modifiers?e.modifiers.end:e.pos,ln,e),pn(),e.importClause&&(ke(e.importClause),pn(),dt(161,e.importClause.end,ln,e),pn());we(e.moduleSpecifier),e.attributes&&Ht(e.attributes);sn()}(t);case 273:return function(e){e.isTypeOnly&&(dt(156,e.pos,ln,e),pn());ke(e.name),e.name&&e.namedBindings&&(dt(28,e.name.end,an,e),pn());ke(e.namedBindings)}(t);case 274:return function(e){const t=dt(42,e.pos,an,e);pn(),dt(130,t,ln,e),pn(),ke(e.name)}(t);case 280:return function(e){const t=dt(42,e.pos,an,e);pn(),dt(130,t,ln,e),pn(),ke(e.name)}(t);case 275:case 279:return function(e){xt(e)}(t);case 276:case 281:return function(e){At(e)}(t);case 277:return function(e){const t=dt(95,e.pos,ln,e);pn(),e.isExportEquals?dt(64,t,cn,e):dt(90,t,ln,e);pn(),we(e.expression,e.isExportEquals?de.getParenthesizeRightSideOfBinaryForOperator(64):de.parenthesizeExpressionOfExportDefault),sn()}(t);case 278:return function(e){Gt(e,e.modifiers,!1);let t=dt(95,e.pos,ln,e);pn(),e.isTypeOnly&&(t=dt(156,t,ln,e),pn());e.exportClause?ke(e.exportClause):t=dt(42,t,an,e);if(e.moduleSpecifier){pn();dt(161,e.exportClause?e.exportClause.end:t,ln,e),pn(),we(e.moduleSpecifier)}e.attributes&&Ht(e.attributes);sn()}(t);case 300:return function(e){dt(e.token,e.pos,ln,e),pn();const t=e.elements;Zt(e,t,526226)}(t);case 301:return function(e){ke(e.name),an(":"),pn();const t=e.value;if(0===(1024&Rm(t))){br(TI(t).pos)}ke(t)}(t);case 282:case 326:case 337:case 338:case 340:case 341:case 342:case 343:case 359:return;case 283:return function(e){ln("require"),an("("),we(e.expression),an(")")}(t);case 12:return function(e){y.writeLiteral(e.text)}(t);case 286:case 289:return function(e){if(an("<"),WN(e)){const t=Nn(e.tagName,e);It(e.tagName),Jt(e,e.typeArguments),e.attributes.properties&&e.attributes.properties.length>0&&pn(),ke(e.attributes),Mn(e.attributes,e),xn(t)}an(">")}(t);case 287:case 290:return function(e){an("</"),zN(e)&&It(e.tagName);an(">")}(t);case 291:return function(e){ke(e.name),function(e,t,n,r){n&&(t(e),r(n))}("=",an,e.initializer,ze)}(t);case 292:return function(e){Zt(e,e.properties,262656)}(t);case 293:return function(e){an("{..."),we(e.expression),an("}")}(t);case 294:return function(e){var t;if(e.expression||!ae&&!Sv(e)&&(r=e.pos,function(e){let t=!1;return Ns((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r)||function(e){let t=!1;return Ds((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r))){const r=n&&!Sv(e)&&_s(n,e.pos).line!==_s(n,e.end).line;r&&y.increaseIndent();const o=dt(19,e.pos,an,e);ke(e.dotDotDotToken),we(e.expression),dt(20,(null==(t=e.expression)?void 0:t.end)||o,an,e),r&&y.decreaseIndent()}var r}(t);case 295:return function(e){Pe(e.namespace),an(":"),Pe(e.name)}(t);case 296:return function(e){dt(84,e.pos,ln,e),pn(),we(e.expression,de.parenthesizeExpressionForDisallowedComma),Rt(e,e.statements,e.expression.end)}(t);case 297:return function(e){const t=dt(90,e.pos,ln,e);Rt(e,e.statements,t)}(t);case 298:return function(e){pn(),bn(e.token,ln),pn(),Zt(e,e.types,528)}(t);case 299:return function(e){const t=dt(85,e.pos,ln,e);pn(),e.variableDeclaration&&(dt(21,t,an,e),ke(e.variableDeclaration),dt(22,e.variableDeclaration.end,an,e),pn());ke(e.block)}(t);case 303:return function(e){ke(e.name),an(":"),pn();const t=e.initializer;if(0===(1024&Rm(t))){br(TI(t).pos)}we(t,de.parenthesizeExpressionForDisallowedComma)}(t);case 304:return function(e){ke(e.name),e.objectAssignmentInitializer&&(pn(),an("="),pn(),we(e.objectAssignmentInitializer,de.parenthesizeExpressionForDisallowedComma))}(t);case 305:return function(e){e.expression&&(dt(26,e.pos,an,e),we(e.expression,de.parenthesizeExpressionForDisallowedComma))}(t);case 306:return function(e){ke(e.name),Ut(e.initializer,e.name.end,e,de.parenthesizeExpressionForDisallowedComma)}(t);case 307:return et(t);case 314:case 308:return function(e){for(const t of e.texts)_n(),ke(t)}(t);case 309:case 310:return function(e){const t=ge();et(e),J&&ye(t,y.getTextPos(),309===e.kind?"text":"internal")}(t);case 311:return function(e){const t=ge();if(et(e),J){const n=it(e.section);n.pos=t,n.end=y.getTextPos(),J.sections.push(n)}}(t);case 312:return kt(t);case 313:return In.fail("Bundles should be printed using printBundle");case 315:return In.fail("InputFiles should not be printed");case 316:return Lt(t);case 317:return function(e){pn(),an("{"),ke(e.name),an("}")}(t);case 319:return an("*");case 320:return an("?");case 321:return function(e){an("?"),ke(e.type)}(t);case 322:return function(e){an("!"),ke(e.type)}(t);case 323:return function(e){ke(e.type),an("=")}(t);case 324:return function(e){ln("function"),$t(e,e.parameters),an(":"),ke(e.type)}(t);case 191:case 325:return function(e){an("..."),ke(e.type)}(t);case 327:return function(e){if(q("/**"),e.comment){const t=Rc(e.comment);if(t){const e=t.split(/\r\n?|\n/g);for(const t of e)_n(),pn(),an("*"),pn(),q(t)}}e.tags&&(1!==e.tags.length||351!==e.tags[0].kind||e.comment?Zt(e,e.tags,33):(pn(),ke(e.tags[0])));pn(),q("*/")}(t);case 329:return Ct(t);case 330:return Dt(t);case 334:case 339:case 344:return Nt((o=t).tagName),void Mt(o.comment);case 335:case 336:return function(e){Nt(e.tagName),pn(),an("{"),ke(e.class),an("}"),Mt(e.comment)}(t);case 345:return function(e){Nt(e.tagName),e.name&&(pn(),ke(e.name));Mt(e.comment),Dt(e.typeExpression)}(t);case 346:return function(e){Mt(e.comment),Dt(e.typeExpression)}(t);case 348:case 355:return function(e){Nt(e.tagName),Lt(e.typeExpression),pn(),e.isBracketed&&an("[");ke(e.name),e.isBracketed&&an("]");Mt(e.comment)}(t);case 347:case 349:case 350:case 351:case 356:case 357:return function(e){Nt(e.tagName),Lt(e.typeExpression),Mt(e.comment)}(t);case 352:return function(e){Nt(e.tagName),Lt(e.constraint),pn(),Zt(e,e.typeParameters,528),Mt(e.comment)}(t);case 353:return function(e){Nt(e.tagName),e.typeExpression&&(316===e.typeExpression.kind?Lt(e.typeExpression):(pn(),an("{"),q("Object"),e.typeExpression.isArrayType&&(an("["),an("]")),an("}")));e.fullName&&(pn(),ke(e.fullName));Mt(e.comment),e.typeExpression&&329===e.typeExpression.kind&&Ct(e.typeExpression)}(t);case 354:return function(e){Nt(e.tagName),ke(e.name),Mt(e.comment)}(t)}if(uu(t)&&(e=1,k!==dV)){const n=k(e,t)||t;n!==t&&(t=n,C&&(t=C(t)))}}var o,i;if(1===e)switch(t.kind){case 9:case 10:return function(e){Ze(e,!1)}(t);case 11:case 14:case 15:return Ze(t,!1);case 80:return tt(t);case 81:return nt(t);case 209:return function(e){const t=e.elements,n=e.multiLine?65536:0;en(e,t,8914|n,de.parenthesizeExpressionForDisallowedComma)}(t);case 210:return function(e){Gn(0,void 0),x(e.properties,Hn);const t=131072&Rm(e);t&&hn();const r=e.multiLine?65536:0,o=n&&n.languageVersion>=1&&!x_(n)?64:0;Zt(e,e.properties,526226|o|r),t&&gn();jn()}(t);case 211:return function(e){we(e.expression,de.parenthesizeLeftSideOfAccess);const t=e.questionDotToken||Bx(UA.createToken(25),e.expression.end,e.name.pos),n=kn(e,e.expression,t),r=kn(e,t,e.name);Tn(n,!1);const o=29!==t.kind&&function(e){if(FR(e=Gc(e))){const t=Fn(e,!0,!1);return!(448&e.numericLiteralFlags)&&!t.includes(as(25))&&!t.includes(String.fromCharCode(69))&&!t.includes(String.fromCharCode(101))}if(wS(e)){const t=LI(e);return"number"===typeof t&&isFinite(t)&&t>=0&&Math.floor(t)===t}}(e.expression)&&!y.hasTrailingComment()&&!y.hasTrailingWhitespace();o&&an(".");e.questionDotToken?ke(t):dt(t.kind,e.expression.end,an,e);Tn(r,!1),ke(e.name),xn(n,r)}(t);case 212:return function(e){we(e.expression,de.parenthesizeLeftSideOfAccess),ke(e.questionDotToken),dt(23,e.expression.end,an,e),we(e.argumentExpression),dt(24,e.argumentExpression.end,an,e)}(t);case 213:return function(e){const t=16&Cm(e);t&&(an("("),rn("0"),an(","),pn());we(e.expression,de.parenthesizeLeftSideOfAccess),t&&an(")");ke(e.questionDotToken),Jt(e,e.typeArguments),en(e,e.arguments,2576,de.parenthesizeExpressionForDisallowedComma)}(t);case 214:return function(e){dt(105,e.pos,ln,e),pn(),we(e.expression,de.parenthesizeExpressionOfNew),Jt(e,e.typeArguments),en(e,e.arguments,18960,de.parenthesizeExpressionForDisallowedComma)}(t);case 215:return function(e){const t=16&Cm(e);t&&(an("("),rn("0"),an(","),pn());we(e.tag,de.parenthesizeLeftSideOfAccess),t&&an(")");Jt(e,e.typeArguments),pn(),we(e.template)}(t);case 216:return function(e){an("<"),ke(e.type),an(">"),we(e.expression,de.parenthesizeOperandOfPrefixUnary)}(t);case 217:return function(e){const t=dt(21,e.pos,an,e),n=Nn(e.expression,e);we(e.expression,void 0),Mn(e.expression,e),xn(n),dt(22,e.expression?e.expression.end:t,an,e)}(t);case 218:return function(e){Kn(e.name),_t(e)}(t);case 219:return function(e){jt(e,e.modifiers),ht(e,rt)}(t);case 220:return function(e){dt(91,e.pos,ln,e),pn(),we(e.expression,de.parenthesizeOperandOfPrefixUnary)}(t);case 221:return function(e){dt(114,e.pos,ln,e),pn(),we(e.expression,de.parenthesizeOperandOfPrefixUnary)}(t);case 222:return function(e){dt(116,e.pos,ln,e),pn(),we(e.expression,de.parenthesizeOperandOfPrefixUnary)}(t);case 223:return function(e){dt(135,e.pos,ln,e),pn(),we(e.expression,de.parenthesizeOperandOfPrefixUnary)}(t);case 224:return function(e){bn(e.operator,cn),function(e){const t=e.operand;return 224===t.kind&&(40===e.operator&&(40===t.operator||46===t.operator)||41===e.operator&&(41===t.operator||47===t.operator))}(e)&&pn();we(e.operand,de.parenthesizeOperandOfPrefixUnary)}(t);case 225:return function(e){we(e.operand,de.parenthesizeOperandOfPostfixUnary),bn(e.operator,cn)}(t);case 226:return pe(t);case 227:return function(e){const t=kn(e,e.condition,e.questionToken),n=kn(e,e.questionToken,e.whenTrue),r=kn(e,e.whenTrue,e.colonToken),o=kn(e,e.colonToken,e.whenFalse);we(e.condition,de.parenthesizeConditionOfConditionalExpression),Tn(t,!0),ke(e.questionToken),Tn(n,!0),we(e.whenTrue,de.parenthesizeBranchOfConditionalExpression),xn(t,n),Tn(r,!0),ke(e.colonToken),Tn(o,!0),we(e.whenFalse,de.parenthesizeBranchOfConditionalExpression),xn(r,o)}(t);case 228:return function(e){ke(e.head),Zt(e,e.templateSpans,262144)}(t);case 229:return function(e){dt(127,e.pos,ln,e),ke(e.asteriskToken),Kt(e.expression&&ft(e.expression),mt)}(t);case 230:return function(e){dt(26,e.pos,an,e),we(e.expression,de.parenthesizeExpressionForDisallowedComma)}(t);case 231:return function(e){Kn(e.name),Tt(e)}(t);case 232:case 282:case 359:return;case 234:return function(e){we(e.expression,void 0),e.type&&(pn(),ln("as"),pn(),ke(e.type))}(t);case 235:return function(e){we(e.expression,de.parenthesizeLeftSideOfAccess),cn("!")}(t);case 233:return ot(t);case 238:return function(e){we(e.expression,void 0),e.type&&(pn(),ln("satisfies"),pn(),ke(e.type))}(t);case 236:return function(e){yn(e.keywordToken,e.pos,an),an("."),ke(e.name)}(t);case 237:return In.fail("SyntheticExpression should never be printed.");case 284:return function(e){ke(e.openingElement),Zt(e,e.children,262144),ke(e.closingElement)}(t);case 285:return function(e){an("<"),It(e.tagName),Jt(e,e.typeArguments),pn(),ke(e.attributes),an("/>")}(t);case 288:return function(e){ke(e.openingFragment),Zt(e,e.children,262144),ke(e.closingFragment)}(t);case 358:return In.fail("SyntaxList should not be printed");case 360:return function(e){const t=Rm(e);1024&t||e.pos===e.expression.pos||br(e.expression.pos);we(e.expression),2048&t||e.end===e.expression.end||gr(e.expression.end)}(t);case 361:return function(e){en(e,e.elements,528,void 0)}(t);case 362:return In.fail("SyntheticReferenceExpression should not be printed")}return Vy(t.kind)?vn(t,ln):$c(t.kind)?vn(t,an):void In.fail(`Unhandled SyntaxKind: ${In.formatSyntaxKind(t.kind)}.`)}function $e(e,t){const n=Ke(1,e,t);In.assertIsDefined(R),t=R,R=void 0,n(e,t)}function Ye(t){let r=!1;const o=313===t.kind?t:void 0;if(o&&0===U)return;const i=o?o.prepends.length:0,a=o?o.sourceFiles.length+i:1;for(let s=0;s<a;s++){const a=o?s<i?o.prepends[s]:o.sourceFiles[s-i]:t,l=rM(a)?a:iM(a)?void 0:n,c=e.noEmitHelpers||!!l&&IL(l),d=(rM(a)||iM(a))&&!b,u=iM(a)?a.helpers:Qe(a);if(u)for(const e of u){if(e.scoped){if(o)continue}else{if(c)continue;if(d){if(H.get(e.name))continue;H.set(e.name,!0)}}const t=ge();"string"===typeof e.text?Sn(e.text):Sn(e.text(er)),J&&J.sections.push({pos:t,end:y.getTextPos(),kind:"emitHelpers",data:e.name}),r=!0}}return r}function Qe(e){const t=FI(e);return t&&Ne(t,LR)}function Ze(t,n){const r=Fn(t,e.neverAsciiEscape,n);var o;!e.sourceMap&&!e.inlineSourceMap||11!==t.kind&&!nd(t.kind)?(o=r,y.writeStringLiteral(o)):rn(r)}function et(e){y.rawWrite(e.parent.text.substring(e.pos,e.end))}function tt(e){(e.symbol?on:q)(On(e,!1),e.symbol),Zt(e,HI(e),53776)}function nt(e){q(On(e,!1))}function rt(e){Xt(e,e.typeParameters),Yt(e,e.parameters),Vt(e.type),pn(),ke(e.equalsGreaterThanToken)}function ot(e){we(e.expression,de.parenthesizeLeftSideOfAccess),Jt(e,e.typeArguments)}function at(e,t){dt(19,e.pos,an,e);const n=t||1&Rm(e)?768:129;Zt(e,e.statements,n),dt(20,e.statements.end,an,e,!!(1&n))}function st(e){e?an(";"):sn()}function lt(e,t){const n=dt(117,t,ln,e);pn(),dt(21,n,an,e),we(e.expression),dt(22,e.expression.end,an,e)}function ct(e){void 0!==e&&(261===e.kind?ke(e):we(e))}function dt(e,t,r,o,i){const a=Nl(o),s=a&&a.kind===o.kind,l=t;if(s&&n&&(t=Ts(n.text,t)),s&&o.pos!==l){const e=i&&n&&!iS(l,t,n);e&&hn(),gr(l),e&&gn()}if(t=j||19!==e&&20!==e?bn(e,r,t):yn(e,t,r,o),s&&o.end!==t){const e=294===o.kind;br(t,!e,e)}return t}function ut(e){return 2===e.kind||!!e.hasTrailingNewLine}function pt(e){if(!n)return!1;const t=Ps(n.text,e.pos);if(t){const t=Nl(e);if(t&&mD(t.parent))return!0}return!!se(t,ut)||(!!se(AI(e),ut)||!!OD(e)&&(!(e.pos===e.expression.pos||!se(ws(n.text,e.expression.pos),ut))||pt(e.expression)))}function ft(e){if(!ae&&OD(e)&&pt(e)){const t=Nl(e);if(t&&mD(t)){const n=UA.createParenthesizedExpression(e.expression);return lI(n,e),yk(n,t),n}return UA.createParenthesizedExpression(e)}return e}function mt(e){return ft(de.parenthesizeExpressionForDisallowedComma(e))}function _t(e){Gt(e,e.modifiers,!1),ln("function"),ke(e.asteriskToken),pn(),Pe(e.name),ht(e,gt)}function ht(e,t){const n=e.body;if(n)if(BD(n)){const r=131072&Rm(e);r&&hn(),Wn(e),x(e.parameters,Un),Un(e.body),t(e),bt(n),zn(e),r&&gn()}else t(e),pn(),we(n,de.parenthesizeConciseBodyOfArrowFunction);else t(e),sn()}function gt(e){Xt(e,e.typeParameters),$t(e,e.parameters),Vt(e.type)}function bt(e){null==w||w(e),pn(),an("{"),hn();const t=function(e){if(1&Rm(e))return!0;if(e.multiLine)return!1;if(!Sv(e)&&n&&!YE(e,n))return!1;if(An(e,Le(e.statements),2)||Cn(e,Oe(e.statements),2,e.statements))return!1;let t;for(const n of e.statements){if(Rn(t,n,2)>0)return!1;t=n}return!0}(e)?Et:St;ur(e,e.statements,t),gn(),yn(20,e.statements.end,an,e),null==O||O(e)}function Et(e){St(e,!0)}function St(e,t){const n=Ot(e.statements),r=y.getTextPos();Ye(e),0===n&&r===y.getTextPos()&&t?(gn(),Zt(e,e.statements,768),hn()):Zt(e,e.statements,1,void 0,n)}function Tt(e){Gn(0,void 0),x(e.members,Hn),Gt(e,e.modifiers,!0),dt(86,JE(e).pos,ln,e),e.name&&(pn(),Pe(e.name));const t=131072&Rm(e);t&&hn(),Xt(e,e.typeParameters),Zt(e,e.heritageClauses,0),pn(),an("{"),Zt(e,e.members,129),an("}"),t&&gn(),jn()}function xt(e){an("{"),Zt(e,e.elements,525136),an("}")}function At(e){e.isTypeOnly&&(ln("type"),pn()),e.propertyName&&(ke(e.propertyName),pn(),dt(130,e.propertyName.end,ln,e),pn()),ke(e.name)}function It(e){80===e.kind?we(e):ke(e)}function Rt(e,t,r){let o=163969;1===t.length&&(!n||Sv(e)||Sv(t[0])||QE(e,t[0],n))?(yn(59,r,an,e),pn(),o&=-130):dt(59,r,an,e),Zt(e,t,o)}function Ct(e){Zt(e,UA.createNodeArray(e.jsDocPropertyTags),33)}function Dt(e){e.typeParameters&&Zt(e,UA.createNodeArray(e.typeParameters),33),e.parameters&&Zt(e,UA.createNodeArray(e.parameters),33),e.type&&(_n(),pn(),an("*"),pn(),ke(e.type))}function Nt(e){an("@"),ke(e)}function Mt(e){const t=Rc(e);t&&(pn(),q(t))}function Lt(e){e&&(pn(),an("{"),ke(e.type),an("}"))}function kt(e){_n();const t=e.statements;0===t.length||!w_(t[0])||Sv(t[0])?ur(e,t,wt):wt(e)}function Pt(e,t,r,o){if(e){const e=y.getTextPos();un('/// <reference no-default-lib="true"/>'),J&&J.sections.push({pos:e,end:y.getTextPos(),kind:"no-default-lib"}),_n()}if(n&&n.moduleName&&(un(`/// <amd-module name="${n.moduleName}" />`),_n()),n&&n.amdDependencies)for(const i of n.amdDependencies)i.name?un(`/// <amd-dependency name="${i.name}" path="${i.path}" />`):un(`/// <amd-dependency path="${i.path}" />`),_n();for(const n of t){const e=y.getTextPos();un(`/// <reference path="${n.fileName}" />`),J&&J.sections.push({pos:e,end:y.getTextPos(),kind:"reference",data:n.fileName}),_n()}for(const i of r){const e=y.getTextPos(),t=i.resolutionMode&&i.resolutionMode!==(null==n?void 0:n.impliedNodeFormat)?`resolution-mode="${99===i.resolutionMode?"import":"require"}"`:"";un(`/// <reference types="${i.fileName}" ${t}/>`),J&&J.sections.push({pos:e,end:y.getTextPos(),kind:i.resolutionMode?99===i.resolutionMode?"type-import":"type-require":"type",data:i.fileName}),_n()}for(const n of o){const e=y.getTextPos();un(`/// <reference lib="${n.fileName}" />`),J&&J.sections.push({pos:e,end:y.getTextPos(),kind:"lib",data:n.fileName}),_n()}}function wt(e){const t=e.statements;Wn(e),x(e.statements,Un),Ye(e);const n=P(t,(e=>!w_(e)));!function(e){e.isDeclarationFile&&Pt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(e),Zt(e,t,1,void 0,-1===n?t.length:n),zn(e)}function Ot(e,t,n,r){let o=!!t;for(let i=0;i<e.length;i++){const a=e[i];if(!w_(a))return i;if(!n||!n.has(a.expression.text)){o&&(o=!1,Re(t)),_n();const e=y.getTextPos();ke(a),r&&J&&J.sections.push({pos:e,end:y.getTextPos(),kind:"prologue",data:a.expression.text}),n&&n.add(a.expression.text)}}return e.length}function Ft(e,t){for(const n of e)if(!t.has(n.data)){_n();const e=y.getTextPos();ke(n),J&&J.sections.push({pos:e,end:y.getTextPos(),kind:"prologue",data:n.data}),t&&t.add(n.data)}}function Wt(e){if(rM(e))Ot(e.statements,e);else{const t=new Set;for(const n of e.prepends)Ft(n.prologues,t);for(const n of e.sourceFiles)Ot(n.statements,n,t,!0);Re(void 0)}}function zt(e){if(rM(e)||iM(e)){const t=Os(e.text);if(t)return un(t),_n(),!0}else{for(const t of e.prepends)if(In.assertNode(t,iM),zt(t))return!0;for(const t of e.sourceFiles)if(zt(t))return!0}}function Bt(e,t){if(!e)return;const n=q;q=t,ke(e),q=n}function Gt(e,t,n){if(null==t?void 0:t.length){if(M(t,vd))return jt(e,t);if(M(t,EC))return n?function(e,t){Zt(e,t,2146305);const n=Oe(t);return n&&!_x(n.end)?n.end:e.pos}(e,t):e.pos;let r,o;null==F||F(t);let i,a=0,s=0;for(;a<t.length;){for(;s<t.length;){if(i=t[s],o=EC(i)?"decorators":"modifiers",void 0===r)r=o;else if(o!==r)break;s++}const l={pos:-1,end:-1};0===a&&(l.pos=t.pos),s===t.length-1&&(l.end=t.end),("modifiers"===r||n)&&nn(ke,e,t,"modifiers"===r?2359808:2146305,void 0,a,s-a,!1,l),a=s,r=o,s++}if(null==W||W(t),i&&!_x(i.end))return i.end}return e.pos}function jt(e,t){Zt(e,t,2359808);const n=Oe(t);return n&&!_x(n.end)?n.end:e.pos}function Vt(e){e&&(an(":"),pn(),ke(e))}function Ut(e,t,n,r){e&&(pn(),dt(64,t,cn,n),pn(),we(e,r))}function Ht(e){e&&(pn(),ke(e))}function Kt(e,t){e&&(pn(),we(e,t))}function qt(e,t){BD(t)||1&Rm(e)||K&&!An(e,t,0)?(pn(),ke(t)):(_n(),hn(),jD(t)?je(5,t):ke(t),gn())}function Jt(e,t){Zt(e,t,53776,ue)}function Xt(e,t){if(Td(e)&&e.typeArguments)return Jt(e,e.typeArguments);Zt(e,t,53776)}function $t(e,t){Zt(e,t,2576)}function Yt(e,t){!function(e,t){const n=We(t);return n&&n.pos===e.pos&&hD(e)&&!e.type&&!se(e.modifiers)&&!se(e.typeParameters)&&!se(n.modifiers)&&!n.dotDotDotToken&&!n.questionToken&&!n.type&&!n.initializer&&nC(n.name)}(e,t)?$t(e,t):Zt(e,t,528)}function Qt(e){switch(60&e){case 0:break;case 16:an(",");break;case 4:pn(),an("|");break;case 32:pn(),an("*"),pn();break;case 8:pn(),an("&")}}function Zt(e,t,n,r,o,i){tn(ke,e,t,n|(e&&2&Rm(e)?65536:0),r,o,i)}function en(e,t,n,r,o,i){tn(we,e,t,n,r,o,i)}function tn(e,t,r,o,i,a=0,s=(r?r.length-a:0)){if(void 0===r&&16384&o)return;const l=void 0===r||a>=r.length||0===s;if(l&&32768&o)return null==F||F(r),void(null==W||W(r));15360&o&&(an(function(e){return fV[15360&e][0]}(o)),l&&r&&br(r.pos,!0)),null==F||F(r),l?!(1&o)||K&&(!t||n&&YE(t,n))?256&o&&!(524288&o)&&pn():_n():nn(e,t,r,o,i,a,s,r.hasTrailingComma,r),null==W||W(r),15360&o&&(l&&r&&gr(r.end),an(function(e){return fV[15360&e][1]}(o)))}function nn(e,t,n,r,o,i,a,s,l){const c=0===(262144&r);let d=c;const u=An(t,n[i],r);u?(_n(u),d=!1):256&r&&pn(),128&r&&hn();const p=function(e,t){return 1===e.length?KV:"object"===typeof t?qV:JV}(e,o);let f,m,_=!1;for(let E=0;E<a;E++){const a=n[i+E];if(32&r)_n(),Qt(r);else if(f){if(60&r&&f.end!==(t?t.end:-1)){2048&Rm(f)||gr(f.end)}Qt(r),be(m);const e=Rn(f,a,r);if(e>0){if(0===(131&r)&&(hn(),_=!0),d&&60&r&&!_x(a.pos)){br(TI(a).pos,!!(512&r),!0)}_n(e),d=!1}else f&&512&r&&pn()}if(m=ve(a),d){br(TI(a).pos)}else d=c;g=a.pos,p(a,e,o,E),_&&(gn(),_=!1),f=a}const h=f?Rm(f):0,y=ae||!!(2048&h),v=s&&64&r&&16&r;v&&(f&&!y?dt(28,f.end,an,f):an(",")),f&&(t?t.end:-1)!==f.end&&60&r&&!y&&gr(v&&(null==l?void 0:l.end)?l.end:f.end),128&r&&gn(),be(m);const b=Cn(t,n[i+a-1],r,l);b?_n(b):2097408&r&&pn()}function rn(e){y.writeLiteral(e)}function on(e,t){y.writeSymbol(e,t)}function an(e){y.writePunctuation(e)}function sn(){y.writeTrailingSemicolon(";")}function ln(e){y.writeKeyword(e)}function cn(e){y.writeOperator(e)}function dn(e){y.writeParameter(e)}function un(e){y.writeComment(e)}function pn(){y.writeSpace(" ")}function fn(e){y.writeProperty(e)}function mn(e){y.nonEscapingWrite?y.nonEscapingWrite(e):y.write(e)}function _n(e=1){for(let t=0;t<e;t++)y.writeLine(t>0)}function hn(){y.increaseIndent()}function gn(){y.decreaseIndent()}function yn(e,t,n,r){return Z?bn(e,n,t):function(e,t,n,r,o){if(Z||e&&Yh(e))return o(t,n,r);const i=e&&e.emitNode,a=i&&i.flags||0,s=i&&i.tokenSourceMapRanges&&i.tokenSourceMapRanges[t],l=s&&s.source||S;r=Nr(l,s?s.pos:r),0===(256&a)&&r>=0&&Lr(l,r);r=o(t,n,r),s&&(r=s.end);0===(512&a)&&r>=0&&Lr(l,r);return r}(r,e,n,t,bn)}function vn(e,t){z&&z(e),t(as(e.kind)),B&&B(e)}function bn(e,t,n){const r=as(e);return t(r),n<0?n:n+r.length}function En(e,t,n){if(1&Rm(e))pn();else if(K){const r=kn(e,t,n);r?_n(r):pn()}else _n()}function Sn(e){const t=e.split(/\r\n?|\n/g),n=tp(t);for(const r of t){const e=n?r.slice(n):r;e.length&&(_n(),q(e))}}function Tn(e,t){e?(hn(),_n(e)):t&&pn()}function xn(e,t){e&&gn(),t&&gn()}function An(e,t,r){if(2&r||K){if(65536&r)return 1;if(void 0===t)return!e||n&&YE(e,n)?0:1;if(t.pos===g)return 0;if(12===t.kind)return 0;if(n&&e&&!_x(e.pos)&&!Sv(t)&&(!t.parent||Rl(t.parent)===Rl(e)))return K?Dn((r=>sS(t.pos,e.pos,n,r))):QE(e,t,n)?0:1;if(Ln(t,r))return 1}return 1&r?1:0}function Rn(e,t,r){if(2&r||K){if(void 0===e||void 0===t)return 0;if(12===t.kind)return 0;if(n&&!Sv(e)&&!Sv(t))return K&&function(e,t){if(t.pos<e.end)return!1;e=Rl(e),t=Rl(t);const n=e.parent;if(!n||n!==t.parent)return!1;const r=$x(e),o=null==r?void 0:r.indexOf(e);return void 0!==o&&o>-1&&r.indexOf(t)===o+1}(e,t)?Dn((r=>nS(e,t,n,r))):!K&&(i=t,(o=Rl(o=e)).parent&&o.parent===Rl(i).parent)?tS(e,t,n)?0:1:65536&r?1:0;if(Ln(e,r)||Ln(t,r))return 1}else if(EI(t))return 1;var o,i;return 1&r?1:0}function Cn(e,t,r,o){if(2&r||K){if(65536&r)return 1;if(void 0===t)return!e||n&&YE(e,n)?0:1;if(n&&e&&!_x(e.pos)&&!Sv(t)&&(!t.parent||t.parent===e)){if(K){const r=o&&!_x(o.end)?o.end:t.end;return Dn((t=>lS(r,e.end,n,t)))}return ZE(e,t,n)?0:1}if(Ln(t,r))return 1}return 1&r&&!(131072&r)?1:0}function Dn(e){In.assert(!!K);const t=e(!0);return 0===t?e(!1):t}function Nn(e,t){const n=K&&An(t,e,0);return n&&Tn(n,!1),!!n}function Mn(e,t){const n=K&&Cn(t,e,0,void 0);n&&_n(n)}function Ln(e,t){if(Sv(e)){const n=EI(e);return void 0===n?0!==(65536&t):n}return 0!==(65536&t)}function kn(e,t,r){return 262144&Rm(e)?0:(e=wn(e),t=wn(t),EI(r=wn(r))?1:!n||Sv(e)||Sv(t)||Sv(r)?0:K?Dn((e=>nS(t,r,n,e))):tS(t,r,n)?0:1)}function Pn(e){return 0===e.statements.length&&(!n||tS(e,e,n))}function wn(e){for(;217===e.kind&&Sv(e);)e=e.expression;return e}function On(e,t){if(ud(e)||pd(e))return qn(e);if(zR(e)&&e.textSourceNode)return On(e.textSourceNode,t);const r=n,o=!!r&&!!e.parent&&!Sv(e);if(Nc(e)){if(!o||Yf(e)!==Rl(r))return kl(e)}else if(qN(e)){if(!o||Yf(e)!==Rl(r))return SA(e)}else if(In.assertNode(e,ed),!o)return e.text;return Em(r,e,t)}function Fn(t,r,o){if(11===t.kind&&t.textSourceNode){const e=t.textSourceNode;if(nC(e)||rC(e)||FR(e)||qN(e)){const n=FR(e)?e.text:On(e);return o?`"${Bv(n)}"`:r||16777216&Rm(t)?`"${Fv(n)}"`:`"${Wv(n)}"`}return Fn(e,r,o)}const i=(r?1:0)|(o?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Dm(t,n,i)}function Wn(e){e&&1048576&Rm(e)||(u.push(p),p=0,s.push(l),l=void 0,f.push(m))}function zn(e){e&&1048576&Rm(e)||(p=u.pop(),l=s.pop(),m=f.pop())}function Bn(e){m&&m!==Oe(f)||(m=new Set),m.add(e)}function Gn(e,t){c.push(d),d=e,_.push(m),h=t}function jn(){d=c.pop(),h=_.pop()}function Vn(e){h&&h!==Oe(_)||(h=new Set),h.add(e)}function Un(e){if(e)switch(e.kind){case 241:case 296:case 297:x(e.statements,Un);break;case 256:case 254:case 246:case 247:Un(e.statement);break;case 245:Un(e.thenStatement),Un(e.elseStatement);break;case 248:case 250:case 249:Un(e.initializer),Un(e.statement);break;case 255:Un(e.caseBlock);break;case 269:x(e.clauses,Un);break;case 258:Un(e.tryBlock),Un(e.catchClause),Un(e.finallyBlock);break;case 299:Un(e.variableDeclaration),Un(e.block);break;case 243:Un(e.declarationList);break;case 261:x(e.declarations,Un);break;case 260:case 169:case 208:case 263:case 274:case 280:Kn(e.name);break;case 262:Kn(e.name),1048576&Rm(e)&&(x(e.parameters,Un),Un(e.body));break;case 206:case 207:case 275:x(e.elements,Un);break;case 272:Un(e.importClause);break;case 273:Kn(e.name),Un(e.namedBindings);break;case 276:Kn(e.propertyName||e.name)}}function Hn(e){if(e)switch(e.kind){case 303:case 304:case 172:case 174:case 177:case 178:Kn(e.name)}}function Kn(e){e&&(ud(e)||pd(e)?qn(e):Vd(e)&&Un(e))}function qn(e){const t=e.emitNode.autoGenerate;if(4===(7&t.flags))return Jn(ak(e),rC(e),t.flags,t.prefix,t.suffix);{const n=t.id;return i[n]||(i[n]=function(e){const t=e.emitNode.autoGenerate,n=sk(t.prefix,qn),r=sk(t.suffix);switch(7&t.flags){case 1:return Qn(0,!!(8&t.flags),rC(e),n,r);case 2:return In.assertNode(e,nC),Qn(268435456,!!(8&t.flags),!1,n,r);case 3:return Zn(kl(e),32&t.flags?$n:Xn,!!(16&t.flags),!!(8&t.flags),rC(e),n,r)}return In.fail(`Unsupported GeneratedIdentifierKind: ${In.formatEnum(7&t.flags,jr,!0)}.`)}(e))}}function Jn(e,t,n,i,a){const s=Hz(e),l=t?o:r;return l[s]||(l[s]=rr(e,t,n??0,sk(i,qn),sk(a)))}function Xn(e,t){return $n(e,t)&&!function(e,t){return t?!!(null==h?void 0:h.has(e)):!!(null==m?void 0:m.has(e))}(e,t)&&!a.has(e)}function $n(e,t){return!n||om(n,e,D)}function Yn(e,t){switch(e){case"":p=t;break;case"#":d=t;break;default:l??(l=new Map),l.set(e,t)}}function Qn(e,t,n,r,o){r.length>0&&35===r.charCodeAt(0)&&(r=r.slice(1));const i=ck(n,r,"",o);let a=function(e){switch(e){case"":return p;case"#":return d;default:return(null==l?void 0:l.get(e))??0}}(i);if(e&&!(a&e)){const s=ck(n,r,268435456===e?"_i":"_n",o);if(Xn(s,n))return a|=e,n?Vn(s):t&&Bn(s),Yn(i,a),s}for(;;){const e=268435455&a;if(a++,8!==e&&13!==e){const s=ck(n,r,e<26?"_"+String.fromCharCode(97+e):"_"+(e-26),o);if(Xn(s,n))return n?Vn(s):t&&Bn(s),Yn(i,a),s}}}function Zn(e,t=Xn,n,r,o,i,s){if(e.length>0&&35===e.charCodeAt(0)&&(e=e.slice(1)),i.length>0&&35===i.charCodeAt(0)&&(i=i.slice(1)),n){const n=ck(o,i,e,s);if(t(n,o))return o?Vn(n):r?Bn(n):a.add(n),n}95!==e.charCodeAt(e.length-1)&&(e+="_");let l=1;for(;;){const n=ck(o,i,e+l,s);if(t(n,o))return o?Vn(n):r?Bn(n):a.add(n),n;l++}}function er(e){return Zn(e,$n,!0,!1,!1,"","")}function tr(e){const t=On(e.name);return function(e,t){for(let n=t;n&&Ay(n,t);n=n.nextContainer)if(Du(n)&&n.locals){const t=n.locals.get(Ml(e));if(t&&3257279&t.flags)return!1}return!0}(t,yt(e,Du))?t:Zn(t,Xn,!1,!1,!1,"","")}function nr(){return Zn("default",Xn,!1,!1,!1,"","")}function rr(e,t,n,r,o){switch(e.kind){case 80:case 81:return Zn(On(e),Xn,!!(16&n),!!(8&n),t,r,o);case 267:case 266:return In.assert(!r&&!o&&!t),tr(e);case 272:case 278:return In.assert(!r&&!o&&!t),function(e){const t=Bg(e);return Zn(zR(t)?Mm(t.text):"module",Xn,!1,!1,!1,"","")}(e);case 262:case 263:{In.assert(!r&&!o&&!t);const i=e.name;return i&&!ud(i)?rr(i,!1,n,r,o):nr()}case 277:return In.assert(!r&&!o&&!t),nr();case 231:return In.assert(!r&&!o&&!t),Zn("class",Xn,!1,!1,!1,"","");case 174:case 177:case 178:return function(e,t,n,r){return nC(e.name)?Jn(e.name,t):Qn(0,!1,t,n,r)}(e,t,r,o);case 167:return Qn(0,!0,t,r,o);default:return Qn(0,!1,t,r,o)}}function or(e,t){const n=Ke(2,e,t),r=ne,o=re,i=oe;ir(t),n(e,t),ar(t,r,o,i)}function ir(e){const t=Rm(e),n=TI(e);!function(e,t,n,r){le(),ie=!1;const o=n<0||0!==(1024&t)||12===e.kind,i=r<0||0!==(2048&t)||12===e.kind;(n>0||r>0)&&n!==r&&(o||pr(n,359!==e.kind),(!o||n>=0&&0!==(1024&t))&&(ne=n),(!i||r>=0&&0!==(2048&t))&&(re=r,261===e.kind&&(oe=r)));x(AI(e),lr),ce()}(e,t,n.pos,n.end),4096&t&&(ae=!0)}function ar(e,t,n,r){const o=Rm(e),i=TI(e);4096&o&&(ae=!1),sr(e,o,i.pos,i.end,t,n,r);const a=VI(e);a&&sr(e,o,a.pos,a.end,t,n,r)}function sr(e,t,n,r,o,i,a){le();const s=r<0||0!==(2048&t)||12===e.kind;x(CI(e),cr),(n>0||r>0)&&n!==r&&(ne=o,re=i,oe=a,s||359===e.kind||function(e){xr(e,vr)}(r)),ce()}function lr(e){(e.hasLeadingNewline||2===e.kind)&&y.writeLine(),dr(e),e.hasTrailingNewLine||2===e.kind?y.writeLine():y.writeSpace(" ")}function cr(e){y.isAtStartOfLine()||y.writeSpace(" "),dr(e),e.hasTrailingNewLine&&y.writeLine()}function dr(e){const t=function(e){return 3===e.kind?`/*${e.text}*/`:`//${e.text}`}(e);wb(t,3===e.kind?ls(t):void 0,y,0,t.length,V)}function ur(e,t,r){le();const{pos:o,end:i}=t,a=Rm(e),s=ae||i<0||0!==(2048&a);o<0||0!==(1024&a)||function(e){const t=n&&Pb(n.text,Me(),y,Ar,e,V,ae);t&&(I?I.push(t):I=[t])}(t),ce(),4096&a&&!ae?(ae=!0,r(e),ae=!1):r(e),le(),s||(pr(t.end,!0),ie&&!y.isAtStartOfLine()&&y.writeLine()),ce()}function pr(e,t){ie=!1,t?0===e&&(null==n?void 0:n.isDeclarationFile)?Tr(e,mr):Tr(e,hr):0===e&&Tr(e,fr)}function fr(e,t,n,r,o){Ir(e,t)&&hr(e,t,n,r,o)}function mr(e,t,n,r,o){Ir(e,t)||hr(e,t,n,r,o)}function _r(t,n){return!e.onlyPrintJsDocStyle||(Fk(t,n)||gm(t,n))}function hr(e,t,r,o,i){n&&_r(n.text,e)&&(ie||(Lb(Me(),y,i,e),ie=!0),Mr(e),wb(n.text,Me(),y,e,t,V),Mr(t),o?y.writeLine():3===r&&y.writeSpace(" "))}function gr(e){ae||-1===e||pr(e,!0)}function vr(e,t,r,o){n&&_r(n.text,e)&&(y.isAtStartOfLine()||y.writeSpace(" "),Mr(e),wb(n.text,Me(),y,e,t,V),Mr(t),o&&y.writeLine())}function br(e,t,n){ae||(le(),xr(e,t?vr:n?Er:Sr),ce())}function Er(e,t,r){n&&(Mr(e),wb(n.text,Me(),y,e,t,V),Mr(t),2===r&&y.writeLine())}function Sr(e,t,r,o){n&&(Mr(e),wb(n.text,Me(),y,e,t,V),Mr(t),o?y.writeLine():y.writeSpace(" "))}function Tr(e,t){!n||-1!==ne&&e===ne||(function(e){return void 0!==I&&Fe(I).nodePos===e}(e)?function(e){if(!n)return;const t=Fe(I).detachedCommentEndPos;I.length-1?I.pop():I=void 0;Ds(n.text,t,e,t)}(t):Ds(n.text,e,t,e))}function xr(e,t){n&&(-1===re||e!==re&&e!==oe)&&Ns(n.text,e,t)}function Ar(e,t,r,o,i,a){n&&_r(n.text,o)&&(Mr(o),wb(e,t,r,o,i,a),Mr(i))}function Ir(e,t){return!!n&&hm(n.text,e,t)}function Rr(e,t){const n=Ke(3,e,t);Cr(t),n(e,t),Dr(t)}function Cr(e){const t=Rm(e),n=gI(e);if(Kc(e)){In.assertIsDefined(e.parent,"UnparsedNodes must have parent pointers");const t=function(e){return void 0===e.parsedSourceMap&&void 0!==e.sourceMapText&&(e.parsedSourceMap=AB(e.sourceMapText)||!1),e.parsedSourceMap||void 0}(e.parent);t&&E&&E.appendSourceMap(y.getLine(),y.getColumn(),t,e.parent.sourceMapPath,e.parent.getLineAndCharacterOfPosition(e.pos),e.parent.getLineAndCharacterOfPosition(e.end))}else{const r=n.source||S;359!==e.kind&&0===(32&t)&&n.pos>=0&&Lr(n.source||S,Nr(r,n.pos)),128&t&&(Z=!0)}}function Dr(e){const t=Rm(e),n=gI(e);Kc(e)||(128&t&&(Z=!1),359!==e.kind&&0===(64&t)&&n.end>=0&&Lr(n.source||S,n.end))}function Nr(e,t){return e.skipTrivia?e.skipTrivia(t):Ts(e.text,t)}function Mr(e){if(Z||_x(e)||Pr(S))return;const{line:t,character:n}=_s(S,e);E.addMapping(y.getLine(),y.getColumn(),ee,t,n,void 0)}function Lr(e,t){if(e!==S){const n=S,r=ee;kr(e),Mr(t),function(e,t){S=e,ee=t}(n,r)}else Mr(t)}function kr(t){Z||(S=t,t!==T?Pr(t)||(ee=E.addSource(t.fileName),e.inlineSources&&E.setSourceContent(ee,t.text),T=t,te=ee):ee=te)}function Pr(e){return Yi(e.fileName,".json")}}function KV(e,t,n,r){t(e)}function qV(e,t,n,r){t(e,n.select(r))}function JV(e,t,n,r){t(e,n)}var XV,$V,YV=b({"src/compiler/emitter.ts"(){JJ(),JJ(),oi(),fV=function(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}(),mV={hasGlobalName:Rt,getReferencedExportContainer:Rt,getReferencedImportDeclaration:Rt,getReferencedDeclarationWithCollidingName:Rt,isDeclarationWithCollidingName:Rt,isValueAliasDeclaration:Rt,isReferencedAliasDeclaration:Rt,isTopLevelValueImportEqualsWithEntityName:Rt,getNodeCheckFlags:Rt,isDeclarationVisible:Rt,isLateBound:e=>!1,collectLinkedAliases:Rt,isImplementationOfOverload:Rt,isRequiredInitializedParameter:Rt,isOptionalUninitializedParameterProperty:Rt,isExpandoFunctionDeclaration:Rt,getPropertiesOfContainerFunction:Rt,createTypeOfDeclaration:Rt,createReturnTypeOfSignatureDeclaration:Rt,createTypeOfExpression:Rt,createLiteralConstValue:Rt,isSymbolAccessible:Rt,isEntityNameVisible:Rt,getConstantValue:Rt,getReferencedValueDeclaration:Rt,getReferencedValueDeclarations:Rt,getTypeReferenceSerializationKind:Rt,isOptionalParameter:Rt,moduleExportsSomeValue:Rt,isArgumentsLocalBinding:Rt,getExternalModuleFileFromDeclaration:Rt,getTypeReferenceDirectivesForEntityName:Rt,getTypeReferenceDirectivesForSymbol:Rt,isLiteralConstDeclaration:Rt,getJsxFactoryEntity:Rt,getJsxFragmentFactoryEntity:Rt,getAllAccessorDeclarations:Rt,getSymbolOfExternalModuleSpecifier:Rt,isBindingCapturedByNode:Rt,getDeclarationStatementsForSourceFile:Rt,isImportRequiredByAugmentation:Rt,tryFindAmbientModule:Rt},_V=Ct((()=>HV({}))),hV=Ct((()=>HV({removeComments:!0}))),gV=Ct((()=>HV({removeComments:!0,neverAsciiEscape:!0}))),yV=Ct((()=>HV({removeComments:!0,omitTrailingSemicolon:!0})))}});function QV(e,t,n){if(!e.getDirectories||!e.readDirectory)return;const r=new Map,i=an(n);return{useCaseSensitiveFileNames:n,fileExists:function(t){const n=l(a(t));return n&&u(n.sortedAndCanonicalizedFiles,i(c(t)))||e.fileExists(t)},readFile:(t,n)=>e.readFile(t,n),directoryExists:e.directoryExists&&function(t){const n=a(t);return r.has(va(n))||e.directoryExists(t)},getDirectories:function(t){const n=a(t),r=d(t,n);if(r)return r.directories.slice();return e.getDirectories(t)},readDirectory:function(r,i,s,l,u){const f=a(r),m=d(r,f);let _;if(void 0!==m)return XT(r,i,s,l,n,t,u,(function(e){const t=a(e);if(t===f)return m||h(e,t);const n=d(e,t);return void 0!==n?n||h(e,t):If}),p);return e.readDirectory(r,i,s,l,u);function h(t,n){if(_&&n===f)return _;const r={files:U(e.readDirectory(t,void 0,void 0,["*.*"]),c)||o,directories:e.getDirectories(t)||o};return n===f&&(_=r),r}},createDirectory:e.createDirectory&&function(t){const n=l(a(t));if(n){const e=c(t),r=i(e);me(n.sortedAndCanonicalizedDirectories,r,jt)&&n.directories.push(e)}e.createDirectory(t)},writeFile:e.writeFile&&function(t,n,r){const o=l(a(t));o&&f(o,c(t),!0);return e.writeFile(t,n,r)},addOrDeleteFileOrDirectory:function(t,n){if(void 0!==s(n))return void m();const r=l(n);if(!r)return;if(!e.directoryExists)return void m();const o=c(t),a={fileExists:e.fileExists(t),directoryExists:e.directoryExists(t)};a.directoryExists||u(r.sortedAndCanonicalizedDirectories,i(o))?m():f(r,o,a.fileExists);return a},addOrDeleteFile:function(e,t,n){if(1===n)return;const r=l(t);r&&f(r,c(e),0===n)},clearCache:m,realpath:e.realpath&&p};function a(e){return ga(e,t,i)}function s(e){return r.get(va(e))}function l(e){const t=s(ra(e));return t?(t.sortedAndCanonicalizedFiles||(t.sortedAndCanonicalizedFiles=t.files.map(i).sort(),t.sortedAndCanonicalizedDirectories=t.directories.map(i).sort()),t):t}function c(e){return oa(_a(e))}function d(t,n){const o=s(n=va(n));if(o)return o;try{return function(t,n){var o;if(!e.realpath||va(a(e.realpath(t)))===n){const o={files:U(e.readDirectory(t,void 0,void 0,["*.*"]),c)||[],directories:e.getDirectories(t)||[]};return r.set(va(n),o),o}if(null==(o=e.directoryExists)?void 0:o.call(e,t))return r.set(n,!1),!1}(t,n)}catch(i){return void In.assert(!r.has(va(n)))}}function u(e,t){return je(e,t,xt,jt)>=0}function p(t){return e.realpath?e.realpath(t):t}function f(e,t,n){const r=e.sortedAndCanonicalizedFiles,o=i(t);if(n)me(r,o,jt)&&e.files.push(t);else{const t=je(r,o,xt,jt);if(t>=0){r.splice(t,1);const n=e.files.findIndex((e=>i(e)===o));e.files.splice(n,1)}}}function m(){r.clear()}}function ZV(e,t,n,r,i){var a;const s=et((null==(a=null==t?void 0:t.configFile)?void 0:a.extendedSourceFiles)||o,i);n.forEach(((t,n)=>{s.has(n)||(t.projects.delete(e),t.close())})),s.forEach(((t,o)=>{const i=n.get(o);i?i.projects.add(e):n.set(o,{projects:new Set([e]),watcher:r(t,o),close:()=>{const e=n.get(o);e&&0===e.projects.size&&(e.watcher.close(),n.delete(o))}})}))}function eU(e,t){t.forEach((t=>{t.projects.delete(e)&&t.close()}))}function tU(e,t,n){e.delete(t)&&e.forEach((({extendedResult:r},o)=>{var i;(null==(i=r.extendedSourceFiles)?void 0:i.some((e=>n(e)===t)))&&tU(e,o,n)}))}function nU(e,t,n){xS(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:fS})}function rU(e,t,n){function r(e,t){return{watcher:n(e,t),flags:t}}t?xS(e,new Map(Object.entries(t)),{createNewValue:r,onDeleteValue:lU,onExistingValue:function(t,n,o){if(t.flags===n)return;t.watcher.close(),e.set(o,r(o,n))}}):SS(e,lU)}function oU({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:r,options:o,program:i,extraFileExtensions:a,currentDirectory:s,useCaseSensitiveFileNames:l,writeLog:c,toPath:d,getScriptKind:u}){const p=cK(n);if(!p)return c(`Project: ${r} Detected ignored path: ${t}`),!0;if((n=p)===e)return!1;if($i(n)&&!ax(t,o,a)&&!function(){if(!u)return!1;switch(u(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return nf(o);case 6:return Yp(o);case 0:return!1}}())return c(`Project: ${r} Detected file add/remove of non supported extension: ${t}`),!0;if(CO(t,o.configFile.configFileSpecs,ma(ra(r),s),l,s))return c(`Project: ${r} Detected excluded file: ${t}`),!0;if(!i)return!1;if(ob(o)||o.outDir)return!1;if(_P(n)){if(o.declarationDir)return!1}else if(!Qi(n,yf))return!1;const f=cx(n),m=mt(i)?void 0:function(e){return!!e.getState}(i)?i.getProgramOrUndefined():i,_=m||mt(i)?void 0:i;return!(!h(f+".ts")&&!h(f+".tsx"))&&(c(`Project: ${r} Detected output file: ${t}`),!0);function h(e){return m?!!m.getSourceFileByPath(e):_?_.getState().fileInfos.has(e):!!L(i,(t=>d(t)===e))}}function iU(e,t){return!!e&&e.isEmittedFile(t)}function aU(e,t,n,r){Ni(2===t?n:bt);const o={watchFile:(t,n,r,o)=>e.watchFile(t,n,r,o),watchDirectory:(t,n,r,o)=>e.watchDirectory(t,n,0!==(1&r),o)},i=0!==t?{watchFile:c("watchFile"),watchDirectory:c("watchDirectory")}:void 0,a=2===t?{watchFile:function(e,t,o,a,s,l){n(`FileWatcher:: Added:: ${d(e,o,a,s,l,r)}`);const c=i.watchFile(e,t,o,a,s,l);return{close:()=>{n(`FileWatcher:: Close:: ${d(e,o,a,s,l,r)}`),c.close()}}},watchDirectory:function(e,t,o,a,s,l){const c=`DirectoryWatcher:: Added:: ${d(e,o,a,s,l,r)}`;n(c);const u=nr(),p=i.watchDirectory(e,t,o,a,s,l),f=nr()-u;return n(`Elapsed:: ${f}ms ${c}`),{close:()=>{const t=`DirectoryWatcher:: Close:: ${d(e,o,a,s,l,r)}`;n(t);const i=nr();p.close();const c=nr()-i;n(`Elapsed:: ${c}ms ${t}`)}}}}:i||o,s=2===t?function(e,t,o,i,a){return n(`ExcludeWatcher:: Added:: ${d(e,t,o,i,a,r)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${d(e,t,o,i,a,r)}`)}}:DK;return{watchFile:l("watchFile"),watchDirectory:l("watchDirectory")};function l(t){return(n,r,o,i,l,c)=>{var d;return NO(n,"watchFile"===t?null==i?void 0:i.excludeFiles:null==i?void 0:i.excludeDirectories,"boolean"===typeof e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),(null==(d=e.getCurrentDirectory)?void 0:d.call(e))||"")?s(n,o,i,l,c):a[t].call(void 0,n,r,o,i,l,c)}}function c(e){return(t,i,a,s,l,c)=>o[e].call(void 0,t,((...o)=>{const u=`${"watchFile"===e?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${o[0]} ${void 0!==o[1]?o[1]:""}:: ${d(t,a,s,l,c,r)}`;n(u);const p=nr();i.call(void 0,...o);const f=nr()-p;n(`Elapsed:: ${f}ms ${u}`)}),a,s,l,c)}function d(e,t,n,r,o,i){return`WatchInfo: ${e} ${t} ${JSON.stringify(n)} ${i?i(r,o):void 0===o?r:`${r} ${o}`}`}}function sU(e){const t=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==t?t:1}}function lU(e){e.watcher.close()}var cU,dU,uU,pU,fU,mU,_U,hU,gU,yU,vU,bU,EU,SU=b({"src/compiler/watchUtilities.ts"(){JJ(),XV=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(XV||{}),$V=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))($V||{})}});function TU(e,t,n="tsconfig.json"){return Pa(e,(e=>{const r=ua(e,n);return t(r)?r:void 0}))}function xU(e,t){const n=ra(t);return _a(Hi(e)?e:ua(n,e))}function AU(e,t,n){let r;return x(e,(e=>{const o=fa(e,t);if(o.pop(),!r)return void(r=o);const i=Math.min(r.length,o.length);for(let t=0;t<i;t++)if(n(r[t])!==n(o[t])){if(0===t)return!0;r.length=t;break}o.length<r.length&&(r.length=o.length)}))?"":r?la(r):t}function IU(e,t){return DU(e,t)}function RU(e,t,n){return(r,o,i)=>{let a;try{br("beforeIORead"),a=e(r,t().charset),br("afterIORead"),Er("I/O Read","beforeIORead","afterIORead")}catch(s){i&&i(s.message),a=""}return void 0!==a?lP(r,a,o,n):void 0}}function CU(e,t,n){return(r,o,i,a)=>{try{br("beforeIOWrite"),pb(r,o,i,e,t,n),br("afterIOWrite"),Er("I/O Write","beforeIOWrite","afterIOWrite")}catch(s){a&&a(s.message)}}}function DU(e,t,n=hi){const r=new Map,o=an(n.useCaseSensitiveFileNames);function i(){return ra(_a(n.getExecutingFilePath()))}const a=VE(e),s=n.realpath&&(e=>n.realpath(e)),l={getSourceFile:RU((e=>l.readFile(e)),(()=>e),t),getDefaultLibLocation:i,getDefaultLibFileName:e=>ua(i(),Ys(e)),writeFile:CU(((e,t,r)=>n.writeFile(e,t,r)),(e=>(l.createDirectory||n.createDirectory)(e)),(e=>{return t=e,!!r.has(t)||!!(l.directoryExists||n.directoryExists)(t)&&(r.set(t,!0),!0);var t})),getCurrentDirectory:Ct((()=>n.getCurrentDirectory())),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>a,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+a),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):"",getDirectories:e=>n.getDirectories(e),realpath:s,readDirectory:(e,t,r,o,i)=>n.readDirectory(e,t,r,o,i),createDirectory:e=>n.createDirectory(e),createHash:lt(n,n.createHash)};return l}function NU(e,t,n){const r=e.readFile,o=e.fileExists,i=e.directoryExists,a=e.createDirectory,s=e.writeFile,l=new Map,c=new Map,d=new Map,u=new Map,p=(t,n)=>{const o=r.call(e,n);return l.set(t,void 0!==o&&o),o};e.readFile=n=>{const o=t(n),i=l.get(o);return void 0!==i?!1!==i?i:void 0:Yi(n,".json")||bV(n)?p(o,n):r.call(e,n)};const f=n?(e,r,o,i)=>{const a=t(e),s="object"===typeof r?r.impliedNodeFormat:void 0,l=u.get(s),c=null==l?void 0:l.get(a);if(c)return c;const d=n(e,r,o,i);return d&&(_P(e)||Yi(e,".json"))&&u.set(s,(l||new Map).set(a,d)),d}:void 0;return e.fileExists=n=>{const r=t(n),i=c.get(r);if(void 0!==i)return i;const a=o.call(e,n);return c.set(r,!!a),a},s&&(e.writeFile=(n,r,...o)=>{const i=t(n);c.delete(i);const a=l.get(i);void 0!==a&&a!==r?(l.delete(i),u.forEach((e=>e.delete(i)))):f&&u.forEach((e=>{const t=e.get(i);t&&t.text!==r&&e.delete(i)})),s.call(e,n,r,...o)}),i&&(e.directoryExists=n=>{const r=t(n),o=d.get(r);if(void 0!==o)return o;const a=i.call(e,n);return d.set(r,!!a),a},a&&(e.createDirectory=n=>{const r=t(n);d.delete(r),a.call(e,n)})),{originalReadFile:r,originalFileExists:o,originalDirectoryExists:i,originalCreateDirectory:a,originalWriteFile:s,getSourceFileWithCache:f,readFileWithCache:e=>{const n=t(e),r=l.get(n);return void 0!==r?!1!==r?r:void 0:p(n,e)}}}function MU(e,t,n){let r;return r=xe(r,e.getConfigFileParsingDiagnostics()),r=xe(r,e.getOptionsDiagnostics(n)),r=xe(r,e.getSyntacticDiagnostics(t,n)),r=xe(r,e.getGlobalDiagnostics(n)),r=xe(r,e.getSemanticDiagnostics(t,n)),Qp(e.getCompilerOptions())&&(r=xe(r,e.getDeclarationDiagnostics(t,n))),$s(r||o)}function LU(e,t){let n="";for(const r of e)n+=kU(r,t);return n}function kU(e,t){const n=`${ai(e)} TS${e.code}: ${zU(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:r,character:o}=_s(e.file,e.start);return`${Ma(e.file.fileName,t.getCurrentDirectory(),(e=>t.getCanonicalFileName(e)))}(${r+1},${o+1}): `+n}return n}function PU(e){switch(e){case 1:return"\x1b[91m";case 0:return"\x1b[93m";case 2:return In.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1b[94m"}}function wU(e,t){return t+e+pU}function OU(e,t,n,r,o,i){const{line:a,character:s}=_s(e,t),{line:l,character:c}=_s(e,t+n),d=_s(e,e.text.length).line,u=l-a>=4;let p=(l+1+"").length;u&&(p=Math.max(fU.length,p));let f="";for(let m=a;m<=l;m++){f+=i.getNewLine(),u&&a+1<m&&m<l-1&&(f+=r+wU(fU.padStart(p),dU)+uU+i.getNewLine(),m=l-1);const t=cs(e,m,0),n=m<d?cs(e,m+1,0):e.text.length;let _=e.text.slice(t,n);if(_=_.trimEnd(),_=_.replace(/\t/g," "),f+=r+wU((m+1+"").padStart(p),dU)+uU,f+=_+i.getNewLine(),f+=r+wU("".padStart(p),dU)+uU,f+=o,m===a){const e=m===l?c:void 0;f+=_.slice(0,s).replace(/\S/g," "),f+=_.slice(s,e).replace(/./g,"~")}else f+=m===l?_.slice(0,c).replace(/./g,"~"):_.replace(/./g,"~");f+=pU}return f}function FU(e,t,n,r=wU){const{line:o,character:i}=_s(e,t);let a="";return a+=r(n?Ma(e.fileName,n.getCurrentDirectory(),(e=>n.getCanonicalFileName(e))):e.fileName,"\x1b[96m"),a+=":",a+=r(`${o+1}`,"\x1b[93m"),a+=":",a+=r(`${i+1}`,"\x1b[93m"),a}function WU(e,t){let n="";for(const r of e){if(r.file){const{file:e,start:o}=r;n+=FU(e,o,t),n+=" - "}if(n+=wU(ai(r),PU(r.category)),n+=wU(` TS${r.code}: `,"\x1b[90m"),n+=zU(r.messageText,t.getNewLine()),r.file&&r.code!==Oa.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=OU(r.file,r.start,r.length,"",PU(r.category),t)),r.relatedInformation){n+=t.getNewLine();for(const{file:e,start:o,length:i,messageText:a}of r.relatedInformation)e&&(n+=t.getNewLine(),n+=mU+FU(e,o,t),n+=OU(e,o,i,_U,"\x1b[96m",t)),n+=t.getNewLine(),n+=_U+zU(a,t.getNewLine())}n+=t.getNewLine()}return n}function zU(e,t,n=0){if(ht(e))return e;if(void 0===e)return"";let r="";if(n){r+=t;for(let e=0;e<n;e++)r+=" "}if(r+=e.messageText,n++,e.next)for(const o of e.next)r+=zU(o,t,n);return r}function BU(e,t){return(ht(e)?t:e.resolutionMode)||t}function GU(e,t,n){return UU(e,gH(e,t),n)}function jU(e){var t;return DN(e)?e.isTypeOnly:!!(null==(t=e.importClause)?void 0:t.isTypeOnly)}function VU(e,t,n){return UU(e,t,n)}function UU(e,t,n){var r;if(gN(t.parent)||DN(t.parent)){if(jU(t.parent)){const e=HU(t.parent.attributes);if(e)return e}}if(t.parent.parent&&eD(t.parent.parent)){const e=HU(t.parent.parent.attributes);if(e)return e}if(n&&200===Vp(n))return t.parent.parent&&hN(t.parent.parent)||tg(t.parent,!1)?1:99;if(void 0===e.impliedNodeFormat)return;if(99!==e.impliedNodeFormat)return L_(by(t.parent))?99:1;const o=null==(r=by(t.parent))?void 0:r.parent;return o&&hN(o)?1:99}function HU(e,t){if(!e)return;if(1!==T(e.elements))return void(null==t||t(e,118===e.token?Oa.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:Oa.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require));const n=e.elements[0];if(np(n.name))if("resolution-mode"===n.name.text){if(np(n.value)){if("import"===n.value.text||"require"===n.value.text)return"import"===n.value.text?99:1;null==t||t(n.value,Oa.resolution_mode_should_be_either_require_or_import)}}else null==t||t(n.name,118===e.token?Oa.resolution_mode_is_the_only_valid_key_for_type_import_attributes:Oa.resolution_mode_is_the_only_valid_key_for_type_import_assertions)}function KU(e){return e.text}function qU(e,t,n,r,o){return{nameAndMode:gU,resolve:(i,a)=>wF(i,e,n,r,o,t,a)}}function JU(e){return ht(e)?e:It(e.fileName)}function XU(e,t,n,r,o){return{nameAndMode:yU,resolve:(i,a)=>fF(i,e,n,r,t,o,a)}}function $U(e,t,n,r,i,a,s,l){if(0===e.length)return o;const c=[],d=new Map,u=l(t,n,r,a,s);for(const o of e){const e=u.nameAndMode.getName(o),t=u.nameAndMode.getMode(o,i,(null==n?void 0:n.commandLine.options)||r),a=xF(e,t);let s=d.get(a);s||d.set(a,s=u.resolve(e,t)),c.push(s)}return c}function YU(e,t){return QU(void 0,e,((e,n)=>e&&t(e,n)))}function QU(e,t,n,r){let o;return function e(t,i,a){if(r){const e=r(t,a);if(e)return e}return x(i,((t,r)=>{if(t&&(null==o?void 0:o.has(t.sourceFile.path)))return;const i=n(t,a,r);return i||!t?i:((o||(o=new Set)).add(t.sourceFile.path),e(t.commandLine.projectReferences,t.references,t))}))}(e,t,void 0)}function ZU(e,t,n){return ua(e.configFilePath?ra(e.configFilePath):t,`__lib_node_modules_lookup_${n}__.ts`)}function eH(e){const t=e.split(".");let n=t[1],r=2;for(;t[r]&&"d"!==t[r];)n+=(2===r?"/":"-")+t[r],r++;return"@typescript/lib-"+n}function tH(e){const t=It(e.fileName);return{libName:t,libFileName:CP.get(t)}}function nH(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function rH(e){return void 0!==e.pos}function oH(e,t){var n,r,o,i;const a=In.checkDefined(e.getSourceFileByPath(t.file)),{kind:s,index:l}=t;let c,d,u,p;switch(s){case 3:const t=gH(a,l);if(u=null==(r=null==(n=e.getResolvedModule(a,t.text,e.getModeForUsageLocation(a,t)))?void 0:n.resolvedModule)?void 0:r.packageId,-1===t.pos)return{file:a,packageId:u,text:t.text};c=Ts(a.text,t.pos),d=t.end;break;case 4:({pos:c,end:d}=a.referencedFiles[l]);break;case 5:({pos:c,end:d,resolutionMode:p}=a.typeReferenceDirectives[l]),u=null==(i=null==(o=e.getResolvedTypeReferenceDirective(a,It(a.typeReferenceDirectives[l].fileName),p||a.impliedNodeFormat))?void 0:o.resolvedTypeReferenceDirective)?void 0:i.packageId;break;case 7:({pos:c,end:d}=a.libReferenceDirectives[l]);break;default:return In.assertNever(s)}return{file:a,pos:c,end:d,packageId:u}}function iH(e,t,n,r,o,i,a,s,l,c){if(!e||(null==s?void 0:s()))return!1;if(!ye(e.getRootFileNames(),t))return!1;let d;if(!ye(e.getProjectReferences(),c,(function(t,n,r){return Vf(t,n)&&f(e.getResolvedProjectReferences()[r],t)})))return!1;if(e.getSourceFiles().some((function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||i(e.path)})))return!1;const u=e.getMissingFilePaths();if(u&&Wf(u,o))return!1;const p=e.getCompilerOptions();return!!ES(p,n)&&((!e.resolvedLibReferences||!Wf(e.resolvedLibReferences,((e,t)=>a(t))))&&(!p.configFile||!n.configFile||p.configFile.text===n.configFile.text));function f(e,t){if(e){if(F(d,e))return!0;const n=mH(t),r=l(n);return!!r&&(e.commandLine.options.configFile===r.options.configFile&&(!!ye(e.commandLine.fileNames,r.fileNames)&&((d||(d=[])).push(e),!x(e.references,((t,n)=>!f(t,e.commandLine.projectReferences[n]))))))}const n=mH(t);return!l(n)}}function aH(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function sH(e,t,n,r){const o=lH(e,t,n,r);return"object"===typeof o?o.impliedNodeFormat:o}function lH(e,t,n,r){switch(Up(r)){case 3:case 99:return Qi(e,[".d.mts",".mts",".mjs"])?99:Qi(e,[".d.cts",".cts",".cjs"])?1:Qi(e,[".d.ts",".ts",".tsx",".js",".jsx"])?function(){const o=oW(t,n,r),i=[];o.failedLookupLocations=i,o.affectingLocations=i;const a=iW(e,o);return{impliedNodeFormat:"module"===(null==a?void 0:a.contents.packageJsonContent.type)?99:1,packageJsonLocations:i,packageJsonScope:a}}():void 0;default:return}}function cH(t,n,r,i,a){var s,l,c,d,u,p,f,m,_,h,g,y,v,b,E,S;const T=mt(t)?function(e,t,n,r,o,i){return{rootNames:e,options:t,host:n,oldProgram:r,configFileParsingDiagnostics:o,typeScriptVersion:i}}(t,n,r,i,a):t,{rootNames:A,options:I,configFileParsingDiagnostics:C,projectReferences:D,typeScriptVersion:N}=T;let{oldProgram:M}=T;const k=Ct((()=>Vn("ignoreDeprecations",Oa.Invalid_value_for_ignoreDeprecations)));let w,O,W,z,B,j,V;const U=new Map;let H=ct();const K={},X={};let $,Y,Q,ee,te,ne,re,oe,ie,ae,le=AF();const de="number"===typeof I.maxNodeModuleJsDepth?I.maxNodeModuleJsDepth:0;let ue=0;const pe=new Map,fe=new Map;null==(s=kr)||s.push(kr.Phase.Program,"createProgram",{configFilePath:I.configFilePath,rootDir:I.rootDir},!0),br("beforeProgram");const me=T.host||IU(I),_e=pH(me);let he=I.noLib;const ge=Ct((()=>me.getDefaultLibFileName(I))),ve=me.getDefaultLibLocation?me.getDefaultLibLocation():ra(ge()),be=Mv(),Se=me.getCurrentDirectory(),Te=ex(I),xe=tx(I,Te),Ae=new Map;let Ie,Re,Ce;const De=me.hasInvalidatedResolutions||Et;let Me;if(me.resolveModuleNameLiterals?(Ce=me.resolveModuleNameLiterals.bind(me),Re=null==(l=me.getModuleResolutionCache)?void 0:l.call(me)):me.resolveModuleNames?(Ce=(e,t,n,r,o,i)=>me.resolveModuleNames(e.map(KU),t,null==i?void 0:i.map(KU),n,r,o).map((e=>e?void 0!==e.extension?{resolvedModule:e}:{resolvedModule:{...e,extension:yx(e.resolvedFileName)}}:hU)),Re=null==(c=me.getModuleResolutionCache)?void 0:c.call(me)):(Re=NF(Se,Dn,I),Ce=(e,t,n,r,o)=>$U(e,t,n,r,o,me,Re,qU)),me.resolveTypeReferenceDirectiveReferences)Me=me.resolveTypeReferenceDirectiveReferences.bind(me);else if(me.resolveTypeReferenceDirectives)Me=(e,t,n,r,o)=>me.resolveTypeReferenceDirectives(e.map(JU),t,n,r,null==o?void 0:o.impliedNodeFormat).map((e=>({resolvedTypeReferenceDirective:e})));else{const e=MF(Se,Dn,void 0,null==Re?void 0:Re.getPackageJsonInfoCache(),null==Re?void 0:Re.optionsToRedirectsKey);Me=(t,n,r,o,i)=>$U(t,n,r,o,i,me,e,XU)}const Le=me.hasInvalidatedLibResolutions||Et;let ke;if(me.resolveLibrary)ke=me.resolveLibrary.bind(me);else{const e=NF(Se,Dn,I,null==Re?void 0:Re.getPackageJsonInfoCache());ke=(t,n,r)=>kF(t,n,r,me,e)}const Pe=new Map;let we=new Map,Oe=ct(),Fe=!1;const We=new Map;let ze=new Map;const Be=me.useCaseSensitiveFileNames()?new Map:void 0;let Ge,je,Ve,Ue;const Ke=!!(null==(d=me.useSourceOfProjectReferenceRedirect)?void 0:d.call(me))&&!I.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:qe,fileExists:Je,directoryExists:Xe}=function(e){let t;const n=e.compilerHost.fileExists,r=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,i=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:bt,fileExists:l};let a;e.compilerHost.fileExists=l,r&&(a=e.compilerHost.directoryExists=n=>r.call(e.compilerHost,n)?(u(n),!0):!!e.getResolvedProjectReferences()&&(t||(t=new Set,e.forEachResolvedProjectReference((n=>{const r=ob(n.commandLine.options);if(r)t.add(ra(e.toPath(r)));else{const r=n.commandLine.options.declarationDir||n.commandLine.options.outDir;r&&t.add(e.toPath(r))}}))),p(n,!1)));o&&(e.compilerHost.getDirectories=t=>!e.getResolvedProjectReferences()||r&&r.call(e.compilerHost,t)?o.call(e.compilerHost,t):[]);i&&(e.compilerHost.realpath=t=>{var n;return(null==(n=e.getSymlinkCache().getSymlinkedFiles())?void 0:n.get(e.toPath(t)))||i.call(e.compilerHost,t)});return{onProgramCreateComplete:s,fileExists:l,directoryExists:a};function s(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=r,e.compilerHost.getDirectories=o}function l(t){return!!n.call(e.compilerHost,t)||!!e.getResolvedProjectReferences()&&(!!_P(t)&&p(t,!0))}function c(t){const r=e.getSourceOfProjectReferenceRedirect(e.toPath(t));return void 0!==r?!ht(r)||n.call(e.compilerHost,r):void 0}function d(n){const r=e.toPath(n),o=`${r}${Fi}`;return zf(t,(e=>r===e||dn(e,o)||dn(r,`${e}/`)))}function u(t){var n;if(!e.getResolvedProjectReferences()||Xx(t))return;if(!i||!t.includes(HO))return;const r=e.getSymlinkCache(),o=va(e.toPath(t));if(null==(n=r.getSymlinkedDirectories())?void 0:n.has(o))return;const a=_a(i.call(e.compilerHost,t));let s;a!==t&&(s=va(e.toPath(a)))!==o?r.setSymlinkedDirectory(t,{real:va(a),realPath:s}):r.setSymlinkedDirectory(o,!1)}function p(t,n){var r;const o=n?e=>c(e):e=>d(e),i=o(t);if(void 0!==i)return i;const a=e.getSymlinkCache(),s=a.getSymlinkedDirectories();if(!s)return!1;const l=e.toPath(t);return!!l.includes(HO)&&(!(!n||!(null==(r=a.getSymlinkedFiles())?void 0:r.has(l)))||(R(s.entries(),(([r,i])=>{if(!i||!dn(l,r))return;const s=o(l.replace(r,i.realPath));if(n&&s){const n=ma(t,e.compilerHost.getCurrentDirectory());a.setSymlinkedFile(l,`${i.real}${n.replace(new RegExp(r,"i"),"")}`)}return s}))||!1))}}({compilerHost:me,getSymlinkCache:Yn,useSourceOfProjectReferenceRedirect:Ke,toPath:_t,getResolvedProjectReferences:At,getSourceOfProjectReferenceRedirect:vn,forEachResolvedProjectReference:yn}),$e=me.readFile.bind(me);null==(u=kr)||u.push(kr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!M});const Ye=function(e,t){return!!e&&Of(e.getCompilerOptions(),t,zP)}(M,I);let Qe;if(null==(p=kr)||p.pop(),null==(f=kr)||f.push(kr.Phase.Program,"tryReuseStructureFromOldProgram",{}),Qe=function(){var e;if(!M)return 0;const t=M.getCompilerOptions();if(kf(t,I))return 0;if(!ye(M.getRootFileNames(),A))return 0;if(QU(M.getProjectReferences(),M.getResolvedProjectReferences(),((e,t,n)=>{const r=Mn((t?t.commandLine.projectReferences:D)[n]);return e?!r||r.sourceFile!==e.sourceFile||!ye(e.commandLine.fileNames,r.commandLine.fileNames):void 0!==r}),((e,t)=>!ye(e,t?En(t.sourceFile.path).commandLine.projectReferences:D,Vf))))return 0;D&&(Ge=D.map(Mn));const n=[],r=[];if(Qe=2,Wf(M.getMissingFilePaths(),(e=>me.fileExists(e))))return 0;const o=M.getSourceFiles();let i;a=i||(i={}),a[a.Exists=0]="Exists",a[a.Modified=1]="Modified";var a;const s=new Map;for(const l of o){const t=ln(l.fileName,Re,me,I);let o,i=me.getSourceFileByPath?me.getSourceFileByPath(l.fileName,l.resolvedPath,t,void 0,Ye):me.getSourceFile(l.fileName,t,void 0,Ye);if(!i)return 0;if(i.packageJsonLocations=(null==(e=t.packageJsonLocations)?void 0:e.length)?t.packageJsonLocations:void 0,i.packageJsonScope=t.packageJsonScope,In.assert(!i.redirectInfo,"Host should not return a redirect source file from `getSourceFile`"),l.redirectInfo){if(i!==l.redirectInfo.unredirected)return 0;o=!1,i=l}else if(M.redirectTargetsMap.has(l.path)){if(i!==l)return 0;o=!1}else o=i!==l;i.path=l.path,i.originalFileName=l.originalFileName,i.resolvedPath=l.resolvedPath,i.fileName=l.fileName;const a=M.sourceFileToPackageName.get(l.path);if(void 0!==a){const e=s.get(a),t=o?1:0;if(void 0!==e&&1===t||1===e)return 0;s.set(a,t)}if(o)l.impliedNodeFormat!==i.impliedNodeFormat?Qe=1:ye(l.libReferenceDirectives,i.libReferenceDirectives,Yt)?l.hasNoDefaultLib!==i.hasNoDefaultLib?Qe=1:ye(l.referencedFiles,i.referencedFiles,Yt)?(tn(i),ye(l.imports,i.imports,Zt)&&ye(l.moduleAugmentations,i.moduleAugmentations,Zt)?(12582912&l.flags)!==(12582912&i.flags)?Qe=1:ye(l.typeReferenceDirectives,i.typeReferenceDirectives,Yt)||(Qe=1):Qe=1):Qe=1:Qe=1,r.push(i);else if(De(l.path))Qe=1,r.push(i);else for(const e of l.ambientModuleNames)U.set(e,l.fileName);n.push(i)}if(2!==Qe)return Qe;for(const l of r){const e=hH(l),t=yt(e,l);(re??(re=new Map)).set(l.path,t);Xf(e,t,(e=>M.getResolvedModule(l,e.text,Qn(l,e))),Uf)&&(Qe=1);const n=l.typeReferenceDirectives,r=vt(n,l);(ie??(ie=new Map)).set(l.path,r);Xf(n,r,(e=>M.getResolvedTypeReferenceDirective(l,JU(e),BU(e,l.impliedNodeFormat))),Jf)&&(Qe=1)}if(2!==Qe)return Qe;if(wf(t,I))return 1;if(M.resolvedLibReferences&&Wf(M.resolvedLibReferences,((e,t)=>Rn(t).actual!==e.actual)))return 1;if(me.hasChangedAutomaticTypeDirectiveNames){if(me.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Y=gF(I,me),!ye(M.getAutomaticTypeDirectiveNames(),Y))return 1;ze=M.getMissingFilePaths(),In.assert(n.length===M.getSourceFiles().length);for(const l of n)We.set(l.path,l);return M.getFilesByNameMap().forEach(((e,t)=>{e?e.path!==t?We.set(t,We.get(e.path)):M.isSourceFileFromExternalLibrary(e)&&fe.set(e.path,!0):We.set(t,e)})),W=n,H=M.getFileIncludeReasons(),$=M.getFileProcessingDiagnostics(),le=M.getResolvedTypeReferenceDirectives(),Y=M.getAutomaticTypeDirectiveNames(),Q=M.getAutomaticTypeDirectiveResolutions(),we=M.sourceFileToPackageName,Oe=M.redirectTargetsMap,Fe=M.usesUriStyleNodeCoreModules,ne=M.resolvedModules,oe=M.resolvedTypeReferenceDirectiveNames,ee=M.resolvedLibReferences,ae=M.getCurrentPackagesMap(),2}(),null==(m=kr)||m.pop(),2!==Qe){if(w=[],O=[],D&&(Ge||(Ge=D.map(Mn)),A.length&&(null==Ge||Ge.forEach(((e,t)=>{if(!e)return;const n=ob(e.commandLine.options);if(Ke){if(n||0===Vp(e.commandLine.options))for(const r of e.commandLine.fileNames)on(r,{kind:1,index:t})}else if(n)on(px(n,".d.ts"),{kind:2,index:t});else if(0===Vp(e.commandLine.options)){const n=Ct((()=>OV(e.commandLine,!me.useCaseSensitiveFileNames())));for(const r of e.commandLine.fileNames)_P(r)||Yi(r,".json")||on(CV(r,e.commandLine,!me.useCaseSensitiveFileNames(),n),{kind:2,index:t})}})))),null==(_=kr)||_.push(kr.Phase.Program,"processRootFiles",{count:A.length}),x(A,((e,t)=>$t(e,!1,!1,{kind:0,index:t}))),null==(h=kr)||h.pop(),Y??(Y=A.length?gF(I,me):o),Q=AF(),Y.length){null==(g=kr)||g.push(kr.Phase.Program,"processTypeReferences",{count:Y.length});const e=ua(I.configFilePath?ra(I.configFilePath):Se,vU),t=vt(Y,e);for(let n=0;n<Y.length;n++)Q.set(Y[n],void 0,t[n]),xn(Y[n],void 0,t[n],{kind:8,typeReference:Y[n],packageId:null==(v=null==(y=t[n])?void 0:y.resolvedTypeReferenceDirective)?void 0:v.packageId});null==(b=kr)||b.pop()}if(A.length&&!he){const e=ge();!I.lib&&e?$t(e,!0,!1,{kind:6}):x(I.lib,((e,t)=>{$t(An(e),!0,!1,{kind:6,index:t})}))}W=Ne(w,(function(e,t){return Ft(ft(e),ft(t))})).concat(O),w=void 0,O=void 0}if(M&&me.onReleaseOldSourceFile){const e=M.getSourceFiles();for(const t of e){const e=kt(t.resolvedPath);(Ye||!e||e.impliedNodeFormat!==t.impliedNodeFormat||t.resolvedPath===t.path&&e.resolvedPath!==t.path)&&me.onReleaseOldSourceFile(t,M.getCompilerOptions(),!!kt(t.path))}me.getParsedCommandLine||M.forEachResolvedProjectReference((e=>{En(e.sourceFile.path)||me.onReleaseOldSourceFile(e.sourceFile,M.getCompilerOptions(),!1)}))}M&&me.onReleaseParsedCommandLine&&QU(M.getProjectReferences(),M.getResolvedProjectReferences(),((e,t,n)=>{const r=mH((null==t?void 0:t.commandLine.projectReferences[n])||M.getProjectReferences()[n]);(null==je?void 0:je.has(_t(r)))||me.onReleaseParsedCommandLine(r,e,M.getCompilerOptions())})),M=void 0,te=void 0,re=void 0,ie=void 0;const Ze={getRootFileNames:()=>A,getSourceFile:Lt,getSourceFileByPath:kt,getSourceFiles:()=>W,getMissingFilePaths:()=>ze,getModuleResolutionCache:()=>Re,getFilesByNameMap:()=>We,getCompilerOptions:()=>I,getSyntacticDiagnostics:function(e,t){return Ot(e,zt,t)},getOptionsDiagnostics:function(){return $s(ce(be.getGlobalDiagnostics(),function(){if(!I.configFile)return o;let e=be.getDiagnostics(I.configFile.fileName);return yn((t=>{e=ce(e,be.getDiagnostics(t.sourceFile.fileName))})),e}()))},getGlobalDiagnostics:function(){return A.length?$s(Nt().getGlobalDiagnostics().slice()):o},getSemanticDiagnostics:function(e,t){return Ot(e,Gt,t)},getCachedSemanticDiagnostics:function(e){var t;return e?null==(t=K.perFile)?void 0:t.get(e.path):K.allDiagnostics},getSuggestionDiagnostics:function(e,t){return Bt((()=>Nt().getSuggestionDiagnostics(e,t)))},getDeclarationDiagnostics:function(e,t){const n=Ze.getCompilerOptions();return!e||ob(n)?Ht(e,t):Ot(e,Jt,t)},getBindAndCheckDiagnostics:function(e,t){return jt(e,t)},getProgramDiagnostics:Wt,getTypeChecker:Nt,getClassifiableNames:function(){var e;if(!V){Nt(),V=new Set;for(const t of W)null==(e=t.classifiableNames)||e.forEach((e=>V.add(e)))}return V},getCommonSourceDirectory:gt,emit:function(e,t,n,r,o,i){var a,s;null==(a=kr)||a.push(kr.Phase.Emit,"emit",{path:null==e?void 0:e.path},!0);const l=Bt((()=>function(e,t,n,r,o,i,a){if(!a){const o=dH(e,t,n,r);if(o)return o}const s=Nt().getEmitResolver(ob(I)?void 0:t,r);br("beforeEmit");const l=BV(s,St(n),t,oV(I,i,o),o,!1,a);return br("afterEmit"),Er("Emit","beforeEmit","afterEmit"),l}(Ze,e,t,n,r,o,i)));return null==(s=kr)||s.pop(),l},getCurrentDirectory:()=>Se,getNodeCount:()=>Nt().getNodeCount(),getIdentifierCount:()=>Nt().getIdentifierCount(),getSymbolCount:()=>Nt().getSymbolCount(),getTypeCount:()=>Nt().getTypeCount(),getInstantiationCount:()=>Nt().getInstantiationCount(),getRelationCacheSizes:()=>Nt().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>$,getResolvedTypeReferenceDirectives:()=>le,getAutomaticTypeDirectiveNames:()=>Y,getAutomaticTypeDirectiveResolutions:()=>Q,isSourceFileFromExternalLibrary:Dt,isSourceFileDefaultLibrary:function(e){if(!e.isDeclarationFile)return!1;if(e.hasNoDefaultLib)return!0;if(!I.noLib)return!1;const t=me.useCaseSensitiveFileNames()?wt:Pt;return I.lib?se(I.lib,(n=>t(e.fileName,ee.get(n).actual))):t(e.fileName,ge())},getModeForUsageLocation:Qn,getModeForResolutionAtIndex:function(e,t){return Qn(e,gH(e,t))},getSourceFileFromReference:function(e,t){return nn(xU(t.fileName,e.fileName),Lt)},getLibFileFromReference:function(e){var t;const{libFileName:n}=tH(e),r=n&&(null==(t=null==ee?void 0:ee.get(n))?void 0:t.actual);return void 0!==r?Lt(r):void 0},sourceFileToPackageName:we,redirectTargetsMap:Oe,usesUriStyleNodeCoreModules:Fe,resolvedModules:ne,resolvedTypeReferenceDirectiveNames:oe,resolvedLibReferences:ee,getResolvedModule:et,getResolvedModuleFromModuleSpecifier:function(e){const t=Yf(e);return In.assertIsDefined(t,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),et(t,e.text,Qn(t,e))},getResolvedTypeReferenceDirective:function(e,t,n){var r;return null==(r=null==oe?void 0:oe.get(e.path))?void 0:r.get(t,n)},forEachResolvedModule:tt,forEachResolvedTypeReferenceDirective:nt,getCurrentPackagesMap:()=>ae,typesPackageExists:function(e){return ot().has(TW(e))},packageBundlesTypes:function(e){return!!ot().get(e)},isEmittedFile:function(e){if(I.noEmit)return!1;const t=_t(e);if(kt(t))return!1;const n=ob(I);if(n)return $n(t,n)||$n(t,cx(n)+".d.ts");if(I.declarationDir&&Ra(I.declarationDir,t,Se,!me.useCaseSensitiveFileNames()))return!0;if(I.outDir)return Ra(I.outDir,t,Se,!me.useCaseSensitiveFileNames());if(Qi(t,yf)||_P(t)){const e=cx(t);return!!kt(e+".ts")||!!kt(e+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return C||o},getProjectReferences:function(){return D},getResolvedProjectReferences:At,getProjectReferenceRedirect:mn,getResolvedProjectReferenceToRedirect:gn,getResolvedProjectReferenceByPath:En,forEachResolvedProjectReference:yn,isSourceOfProjectReferenceRedirect:bn,emitBuildInfo:function(e){var t,n;In.assert(!ob(I)),null==(t=kr)||t.push(kr.Phase.Emit,"emitBuildInfo",{},!0),br("beforeEmit");const r=BV(mV,St(e),void 0,tV,!1,!0);return br("afterEmit"),Er("Emit","beforeEmit","afterEmit"),null==(n=kr)||n.pop(),r},fileExists:Je,readFile:$e,directoryExists:Xe,getSymlinkCache:Yn,realpath:null==(E=me.realpath)?void 0:E.bind(me),useCaseSensitiveFileNames:()=>me.useCaseSensitiveFileNames(),getCanonicalFileName:Dn,getFileIncludeReasons:()=>H,structureIsReused:Qe,writeFile:Tt};return qe(),null==$||$.forEach((e=>{switch(e.kind){case 1:return be.add(kn(e.file&&kt(e.file),e.fileProcessingReason,e.diagnostic,e.args||o));case 0:const{file:t,pos:n,end:r}=oH(Ze,e.reason);return be.add(iT(t,In.checkDefined(n),In.checkDefined(r)-n,e.diagnostic,...e.args||o));case 2:return e.diagnostics.forEach((e=>be.add(e)));default:In.assertNever(e)}})),function(){I.strictPropertyInitialization&&!IT(I,"strictNullChecks")&&jn(Oa.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks");I.exactOptionalPropertyTypes&&!IT(I,"strictNullChecks")&&jn(Oa.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks");(I.isolatedModules||I.verbatimModuleSyntax)&&(I.out&&jn(Oa.Option_0_cannot_be_specified_with_option_1,"out",I.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),I.outFile&&jn(Oa.Option_0_cannot_be_specified_with_option_1,"outFile",I.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"));I.inlineSourceMap&&(I.sourceMap&&jn(Oa.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),I.mapRoot&&jn(Oa.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"));I.composite&&(!1===I.declaration&&jn(Oa.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===I.incremental&&jn(Oa.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const e=ob(I);I.tsBuildInfoFile?ef(I)||jn(Oa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!I.incremental||e||I.configFilePath||be.add(sT(Oa.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));if(function(){Ln("5.0","5.5",(function(e,t,n,r,...o){if(n){const i=cT(void 0,Oa.Use_0_instead,n);Hn(!t,e,void 0,cT(i,r,...o))}else Hn(!t,e,void 0,r,...o)}),(e=>{0===I.target&&e("target","ES3"),I.noImplicitUseStrict&&e("noImplicitUseStrict"),I.keyofStringsOnly&&e("keyofStringsOnly"),I.suppressExcessPropertyErrors&&e("suppressExcessPropertyErrors"),I.suppressImplicitAnyIndexErrors&&e("suppressImplicitAnyIndexErrors"),I.noStrictGenericChecks&&e("noStrictGenericChecks"),I.charset&&e("charset"),I.out&&e("out",void 0,"outFile"),I.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),I.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")}))}(),function(){const e=I.suppressOutputPathCheck?void 0:SV(I);QU(D,Ge,((t,n,r)=>{const o=(n?n.commandLine.projectReferences:D)[r],i=n&&n.sourceFile;if(function(e,t,n){function r(e,r,o,i,...a){Un(t,n,i,...a)}Ln("5.0","5.5",r,(t=>{e.prepend&&t("prepend")}))}(o,i,r),!t)return void Un(i,r,Oa.File_0_not_found,o.path);const a=t.commandLine.options;if(!a.composite||a.noEmit){(n?n.commandLine.fileNames:A).length&&(a.composite||Un(i,r,Oa.Referenced_project_0_must_have_setting_composite_Colon_true,o.path),a.noEmit&&Un(i,r,Oa.Referenced_project_0_may_not_disable_emit,o.path))}if(o.prepend){const e=ob(a);e?me.fileExists(e)||Un(i,r,Oa.Output_file_0_from_project_1_does_not_exist,e,o.path):Un(i,r,Oa.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,o.path)}!n&&e&&e===SV(a)&&(Un(i,r,Oa.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,o.path),Ae.set(_t(e),!0))}))}(),I.composite){const e=new Set(A.map(_t));for(const t of W)sb(t,Ze)&&!e.has(t.path)&&On(t,Oa.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[t.fileName,I.configFilePath||""])}if(I.paths)for(const a in I.paths)if(He(I.paths,a))if(wT(a)||Wn(!0,a,Oa.Pattern_0_can_have_at_most_one_Asterisk_character,a),mt(I.paths[a])){const e=I.paths[a].length;0===e&&Wn(!1,a,Oa.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,a);for(let t=0;t<e;t++){const e=I.paths[a][t],n=typeof e;"string"===n?(wT(e)||Fn(a,t,Oa.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,e,a),I.baseUrl||Ji(e)||qi(e)||Fn(a,t,Oa.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Fn(a,t,Oa.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,e,a,n)}}else Wn(!1,a,Oa.Substitutions_for_pattern_0_should_be_an_array,a);I.sourceMap||I.inlineSourceMap||(I.inlineSources&&jn(Oa.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),I.sourceRoot&&jn(Oa.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot"));I.out&&I.outFile&&jn(Oa.Option_0_cannot_be_specified_with_option_1,"out","outFile");!I.mapRoot||I.sourceMap||I.declarationMap||jn(Oa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap");I.declarationDir&&(Qp(I)||jn(Oa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),e&&jn(Oa.Option_0_cannot_be_specified_with_option_1,"declarationDir",I.out?"out":"outFile"));I.declarationMap&&!Qp(I)&&jn(Oa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite");I.lib&&I.noLib&&jn(Oa.Option_0_cannot_be_specified_with_option_1,"lib","noLib");I.noImplicitUseStrict&&IT(I,"alwaysStrict")&&jn(Oa.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");const t=jp(I),n=L(W,(e=>uP(e)&&!e.isDeclarationFile));if(I.isolatedModules||I.verbatimModuleSyntax)0===I.module&&t<2&&I.isolatedModules&&jn(Oa.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===I.preserveConstEnums&&jn(Oa.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,I.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(n&&t<2&&0===I.module){const e=S_(n,"boolean"===typeof n.externalModuleIndicator?n:n.externalModuleIndicator);be.add(iT(n,e.start,e.length,Oa.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!I.emitDeclarationOnly)if(I.module&&2!==I.module&&4!==I.module)jn(Oa.Only_amd_and_system_modules_are_supported_alongside_0,I.out?"out":"outFile","module");else if(void 0===I.module&&n){const e=S_(n,"boolean"===typeof n.externalModuleIndicator?n:n.externalModuleIndicator);be.add(iT(n,e.start,e.length,Oa.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,I.out?"out":"outFile"))}Yp(I)&&(1===Up(I)?jn(Oa.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):ET(I)||jn(Oa.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module"));if(I.outDir||I.rootDir||I.sourceRoot||I.mapRoot){const e=gt();I.outDir&&""===e&&W.some((e=>na(e.fileName)>1))&&jn(Oa.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}I.useDefineForClassFields&&0===t&&jn(Oa.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");I.checkJs&&!nf(I)&&be.add(sT(Oa.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));I.emitDeclarationOnly&&(Qp(I)||jn(Oa.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),I.noEmit&&jn(Oa.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));I.emitDecoratorMetadata&&!I.experimentalDecorators&&jn(Oa.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");I.jsxFactory?(I.reactNamespace&&jn(Oa.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==I.jsx&&5!==I.jsx||jn(Oa.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",AP.get(""+I.jsx)),cP(I.jsxFactory,t)||Vn("jsxFactory",Oa.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,I.jsxFactory)):I.reactNamespace&&!zs(I.reactNamespace,t)&&Vn("reactNamespace",Oa.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,I.reactNamespace);I.jsxFragmentFactory&&(I.jsxFactory||jn(Oa.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==I.jsx&&5!==I.jsx||jn(Oa.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",AP.get(""+I.jsx)),cP(I.jsxFragmentFactory,t)||Vn("jsxFragmentFactory",Oa.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,I.jsxFragmentFactory));I.reactNamespace&&(4!==I.jsx&&5!==I.jsx||jn(Oa.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",AP.get(""+I.jsx)));I.jsxImportSource&&2===I.jsx&&jn(Oa.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",AP.get(""+I.jsx));I.preserveValueImports&&Vp(I)<5&&jn(Oa.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");const r=Vp(I);I.verbatimModuleSyntax&&(2!==r&&3!==r&&4!==r||jn(Oa.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),I.preserveValueImports&&Jn("preserveValueImports","verbatimModuleSyntax"),I.importsNotUsedAsValues&&Jn("importsNotUsedAsValues","verbatimModuleSyntax"));!I.allowImportingTsExtensions||I.noEmit||I.emitDeclarationOnly||Vn("allowImportingTsExtensions",Oa.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const o=Up(I);I.resolvePackageJsonExports&&!AT(o)&&jn(Oa.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports");I.resolvePackageJsonImports&&!AT(o)&&jn(Oa.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports");I.customConditions&&!AT(o)&&jn(Oa.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions");100!==o||bT(r)||200===r||Vn("moduleResolution",Oa.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler");if(wo[r]&&100<=r&&r<=199&&!(3<=o&&o<=99)){const e=wo[r];Vn("moduleResolution",Oa.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,e,e)}else if(No[o]&&3<=o&&o<=99&&!(100<=r&&r<=199)){const e=No[o];Vn("module",Oa.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,e,e)}if(!I.noEmit&&!I.suppressOutputPathCheck){const e=St(),t=new Set;EV(e,(e=>{I.emitDeclarationOnly||i(e.jsFilePath,t),i(e.declarationFilePath,t)}))}function i(e,t){if(e){const n=_t(e);if(We.has(n)){let t;I.configFilePath||(t=cT(void 0,Oa.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),t=cT(t,Oa.Cannot_write_file_0_because_it_would_overwrite_input_file,e),Xn(e,lT(t))}const r=me.useCaseSensitiveFileNames()?n:It(n);t.has(r)?Xn(e,sT(Oa.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(r)}}}(),br("afterProgram"),Er("Program","beforeProgram","afterProgram"),null==(S=kr)||S.pop(),Ze;function et(e,t,n){var r;return null==(r=null==ne?void 0:ne.get(e.path))?void 0:r.get(t,n)}function tt(e,t){rt(ne,e,t)}function nt(e,t){rt(oe,e,t)}function rt(e,t,n){var r;n?null==(r=null==e?void 0:e.get(n.path))||r.forEach(((e,r,o)=>t(e,r,o,n.path))):null==e||e.forEach(((e,n)=>e.forEach(((e,r,o)=>t(e,r,o,n)))))}function ot(){return ae||(ae=new Map,tt((({resolvedModule:e})=>{(null==e?void 0:e.packageId)&&ae.set(e.packageId.name,".d.ts"===e.extension||!!ae.get(e.packageId.name))})),ae)}function it(e){var t;(null==(t=e.resolutionDiagnostics)?void 0:t.length)&&($??($=[])).push({kind:2,diagnostics:e.resolutionDiagnostics})}function at(e,t,n,r){if(me.resolveModuleNameLiterals||!me.resolveModuleNames)return it(n);if(!Re||Xs(t))return;const o=ra(ma(e.originalFileName,Se)),i=ut(e),a=Re.getFromNonRelativeNameCache(t,r,o,i);a&&it(a)}function st(e,t,n){var r,i;if(!e.length)return o;const a=ma(t.originalFileName,Se),s=ut(t);null==(r=kr)||r.push(kr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:a}),br("beforeResolveModule");const l=Ce(e,a,s,I,t,n);return br("afterResolveModule"),Er("ResolveModule","beforeResolveModule","afterResolveModule"),null==(i=kr)||i.pop(),l}function dt(e,t,n){var r,o;if(!e.length)return[];const i=ht(t)?void 0:t,a=ht(t)?t:ma(t.originalFileName,Se),s=i&&ut(i);null==(r=kr)||r.push(kr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:a}),br("beforeResolveTypeReference");const l=Me(e,a,s,I,i,n);return br("afterResolveTypeReference"),Er("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null==(o=kr)||o.pop(),l}function ut(e){const t=gn(e.originalFileName);if(t||!_P(e.originalFileName))return t;const n=pt(e.path);if(n)return n;if(!me.realpath||!I.preserveSymlinks||!e.originalFileName.includes(HO))return;const r=_t(me.realpath(e.originalFileName));return r===e.path?void 0:pt(r)}function pt(e){const t=vn(e);return ht(t)?gn(t):t?yn((t=>{const n=ob(t.commandLine.options);if(n)return _t(n)===e?t:void 0})):void 0}function ft(e){if(Ra(ve,e.fileName,!1)){const t=oa(e.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;const n=Qt(un(t,"lib."),".d.ts"),r=RP.indexOf(n);if(-1!==r)return r+1}return RP.length+2}function _t(e){return ga(e,Se,Dn)}function gt(){if(void 0===B){const e=G(W,(e=>sb(e,Ze)));B=wV(I,(()=>Z(e,(e=>e.isDeclarationFile?void 0:e.fileName))),Se,Dn,(t=>function(e,t){let n=!0;const r=me.getCanonicalFileName(ma(t,Se));for(const o of e)if(!o.isDeclarationFile){0!==me.getCanonicalFileName(ma(o.fileName,Se)).indexOf(r)&&(On(o,Oa.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[o.fileName,t]),n=!1)}return n}(e,t)))}return B}function yt(e,t){if(0===Qe&&!t.ambientModuleNames.length)return st(e,t,void 0);let n,r,i;const a=hU,s=M&&M.getSourceFile(t.fileName);for(let o=0;o<e.length;o++){const l=e[o];if(t===s&&!De(t.path)){const n=null==M?void 0:M.getResolvedModule(t,l.text,Qn(t,l));if(null==n?void 0:n.resolvedModule){XO(I,me)&&JO(me,n.resolvedModule.packageId?Oa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Oa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,l.text,ma(t.originalFileName,Se),n.resolvedModule.resolvedFileName,n.resolvedModule.packageId&&qf(n.resolvedModule.packageId)),(r??(r=new Array(e.length)))[o]=n,(i??(i=[])).push(l);continue}}let c=!1;F(t.ambientModuleNames,l.text)?(c=!0,XO(I,me)&&JO(me,Oa.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,l.text,ma(t.originalFileName,Se))):c=d(l),c?(r||(r=new Array(e.length)))[o]=a:(n??(n=[])).push(l)}const l=n&&n.length?st(n,t,i):o;if(!r)return In.assert(l.length===e.length),l;let c=0;for(let o=0;o<r.length;o++)r[o]||(r[o]=l[c],c++);return In.assert(c===l.length),r;function d(e){var n;const r=null==(n=null==M?void 0:M.getResolvedModule(t,e.text,Qn(t,e)))?void 0:n.resolvedModule,o=r&&M.getSourceFile(r.resolvedFileName);if(r&&o)return!1;const i=U.get(e.text);return!!i&&(XO(I,me)&&JO(me,Oa.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,e.text,i),!0)}}function vt(e,t){var n;if(0===Qe)return dt(e,t,void 0);let r,i,a;const s=ht(t)?void 0:t,l=ht(t)?void 0:M&&M.getSourceFile(t.fileName),c=ht(t)?!De(_t(t)):t===l&&!De(t.path);for(let o=0;o<e.length;o++){const l=e[o];if(c){const r=JU(l),c=BU(l,null==s?void 0:s.impliedNodeFormat),d=ht(t)?null==(n=null==M?void 0:M.getAutomaticTypeDirectiveResolutions())?void 0:n.get(r,c):null==M?void 0:M.getResolvedTypeReferenceDirective(t,r,c);if(null==d?void 0:d.resolvedTypeReferenceDirective){XO(I,me)&&JO(me,d.resolvedTypeReferenceDirective.packageId?Oa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Oa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,r,ht(t)?t:ma(t.originalFileName,Se),d.resolvedTypeReferenceDirective.resolvedFileName,d.resolvedTypeReferenceDirective.packageId&&qf(d.resolvedTypeReferenceDirective.packageId)),(i??(i=new Array(e.length)))[o]=d,(a??(a=[])).push(l);continue}}(r??(r=[])).push(l)}if(!r)return i||o;const d=dt(r,t,a);if(!i)return In.assert(d.length===e.length),d;let u=0;for(let o=0;o<i.length;o++)i[o]||(i[o]=d[u],u++);return In.assert(u===d.length),i}function St(e){return{getPrependNodes:Rt,getCanonicalFileName:Dn,getCommonSourceDirectory:Ze.getCommonSourceDirectory,getCompilerOptions:Ze.getCompilerOptions,getCurrentDirectory:()=>Se,getSourceFile:Ze.getSourceFile,getSourceFileByPath:Ze.getSourceFileByPath,getSourceFiles:Ze.getSourceFiles,getLibFileFromReference:Ze.getLibFileFromReference,isSourceFileFromExternalLibrary:Dt,getResolvedProjectReferenceToRedirect:gn,getProjectReferenceRedirect:mn,isSourceOfProjectReferenceRedirect:bn,getSymlinkCache:Yn,writeFile:e||Tt,isEmitBlocked:Mt,readFile:e=>me.readFile(e),fileExists:e=>{const t=_t(e);return!!kt(t)||!ze.has(t)&&me.fileExists(e)},useCaseSensitiveFileNames:()=>me.useCaseSensitiveFileNames(),getBuildInfo:e=>{var t;return null==(t=Ze.getBuildInfo)?void 0:t.call(Ze,e)},getSourceFileFromReference:(e,t)=>Ze.getSourceFileFromReference(e,t),redirectTargetsMap:Oe,getFileIncludeReasons:Ze.getFileIncludeReasons,createHash:lt(me,me.createHash)}}function Tt(e,t,n,r,o,i){me.writeFile(e,t,n,r,o,i)}function At(){return Ge}function Rt(){return fH(D,((e,t)=>{var n;return null==(n=Ge[t])?void 0:n.commandLine}),(e=>{const t=_t(e),n=kt(t);return n?n.text:We.has(t)?void 0:me.readFile(t)}),me)}function Dt(e){return!!fe.get(e.path)}function Nt(){return j||(j=Jz(Ze))}function Mt(e){return Ae.has(_t(e))}function Lt(e){return kt(_t(e))}function kt(e){return We.get(e)||void 0}function Ot(e,t,n){return $s(e?t(e,n):J(Ze.getSourceFiles(),(e=>(n&&n.throwIfCancellationRequested(),t(e,n)))))}function Wt(e){var t;if(Cx(e,I,Ze))return o;const n=be.getDiagnostics(e.fileName);return(null==(t=e.commentDirectives)?void 0:t.length)?Ut(e,e.commentDirectives,n).diagnostics:n}function zt(e){return Jh(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=function(e){return Bt((()=>{const t=[];return n(e,e),iP(e,n,r),t;function n(e,n){switch(n.kind){case 169:case 172:case 174:if(n.questionToken===e)return t.push(a(e,Oa.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(n.type===e)return t.push(a(e,Oa.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 273:if(e.isTypeOnly)return t.push(a(n,Oa._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(e.isTypeOnly)return t.push(a(e,Oa._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(e.isTypeOnly)return t.push(a(e,Oa._0_declarations_can_only_be_used_in_TypeScript_files,RN(e)?"import...type":"export...type")),"skip";break;case 271:return t.push(a(e,Oa.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(e.isExportEquals)return t.push(a(e,Oa.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(119===e.token)return t.push(a(e,Oa.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const r=as(120);return In.assertIsDefined(r),t.push(a(e,Oa._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 267:const o=32&e.flags?as(145):as(144);return In.assertIsDefined(o),t.push(a(e,Oa._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 265:return t.push(a(e,Oa.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return e.body?void 0:(t.push(a(e,Oa.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const i=In.checkDefined(as(94));return t.push(a(e,Oa._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 235:return t.push(a(e,Oa.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return t.push(a(e.type,Oa.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return t.push(a(e.type,Oa.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:In.fail()}}function r(e,n){if(jL(n)){const e=L(n.modifiers,EC);e&&t.push(a(e,Oa.Decorators_are_not_valid_here))}else if(bk(n)&&n.modifiers){const e=P(n.modifiers,EC);if(e>=0)if(bC(n)&&!I.experimentalDecorators)t.push(a(n.modifiers[e],Oa.Decorators_are_not_valid_here));else if(lN(n)){const r=P(n.modifiers,oC);if(r>=0){const o=P(n.modifiers,iC);if(e>r&&o>=0&&e<o)t.push(a(n.modifiers[e],Oa.Decorators_are_not_valid_here));else if(r>=0&&e<r){const o=P(n.modifiers,EC,r);o>=0&&t.push(xx(a(n.modifiers[o],Oa.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),a(n.modifiers[e],Oa.Decorator_used_before_export_here)))}}}}switch(n.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(e===n.typeParameters)return t.push(i(e,Oa.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(e===n.modifiers)return o(n.modifiers,243===n.kind),"skip";break;case 172:if(e===n.modifiers){for(const n of e)vd(n)&&126!==n.kind&&129!==n.kind&&t.push(a(n,Oa.The_0_modifier_can_only_be_used_in_TypeScript_files,as(n.kind)));return"skip"}break;case 169:if(e===n.modifiers&&se(e,vd))return t.push(i(e,Oa.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(e===n.typeArguments)return t.push(i(e,Oa.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}function o(e,n){for(const r of e)switch(r.kind){case 87:if(n)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:t.push(a(r,Oa.The_0_modifier_can_only_be_used_in_TypeScript_files,as(r.kind)))}}function i(t,n,...r){const o=t.pos;return iT(e,o,t.end-o,n,...r)}function a(t,n,...r){return p_(e,t,n,...r)}}))}(e)),ce(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function Bt(e){try{return e()}catch(t){throw t instanceof Kr&&(j=void 0),t}}function Gt(e,t){return ce(uH(jt(e,t),I),Wt(e))}function jt(e,t){return qt(e,t,K,Vt)}function Vt(e,t){return Bt((()=>{if(Cx(e,I,Ze))return o;const n=Nt();In.assert(!!e.bindDiagnostics);const r=(1===e.scriptKind||2===e.scriptKind)&&Ex(e,I),i=Zf(e,I.checkJs),a=!(!!e.checkJsDirective&&!1===e.checkJsDirective.enabled)&&(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind||i||r||7===e.scriptKind);let s=a?e.bindDiagnostics:o,l=a?n.getDiagnostics(e,t):o;return i&&(s=G(s,(e=>bU.has(e.code))),l=G(l,(e=>bU.has(e.code)))),function(e,t,...n){var r;const o=q(n);if(!t||!(null==(r=e.commentDirectives)?void 0:r.length))return o;const{diagnostics:i,directives:a}=Ut(e,e.commentDirectives,o);for(const s of a.getUnusedExpectations())i.push(v_(e,s.range,Oa.Unused_ts_expect_error_directive));return i}(e,a&&!i,s,l,r?e.jsDocDiagnostics:void 0)}))}function Ut(e,t,n){const r=ym(e,t),o=n.filter((e=>-1===function(e,t){const{file:n,start:r}=e;if(!n)return-1;const o=us(n);let i=ps(o,r).line-1;for(;i>=0;){if(t.markUsed(i))return i;const e=n.text.slice(o[i],o[i+1]).trim();if(""!==e&&!/^(\s*)\/\/(.*)$/.test(e))return-1;i--}return-1}(e,r)));return{diagnostics:o,directives:r}}function Ht(e,t){return qt(e,t,X,Kt)}function Kt(e,t){return Bt((()=>{const n=Nt().getEmitResolver(e,t);return Yj(St(bt),n,e)||o}))}function qt(e,t,n,r){var o;const i=e?null==(o=n.perFile)?void 0:o.get(e.path):n.allDiagnostics;if(i)return i;const a=r(e,t);return e?(n.perFile||(n.perFile=new Map)).set(e.path,a):n.allDiagnostics=a,a}function Jt(e,t){return e.isDeclarationFile?[]:Ht(e,t)}function $t(e,t,n,r){rn(_a(e),t,n,void 0,r)}function Yt(e,t){return e.fileName===t.fileName}function Zt(e,t){return 80===e.kind?80===t.kind&&e.escapedText===t.escapedText:11===t.kind&&e.text===t.text}function en(e,t){const n=UA.createStringLiteral(e),r=UA.createImportDeclaration(void 0,void 0,n,void 0);return hI(r,2),Vx(n,r),Vx(r,t),n.flags&=-17,r.flags&=-17,n}function tn(e){if(e.imports)return;const t=Jh(e),n=uP(e);let r,i,a;if((Kp(I)||n)&&!e.isDeclarationFile){I.importHelpers&&(r=[en(cp,e)]);const t=PT(kT(I,e),I);t&&(r||(r=[])).push(en(t,e))}for(const o of e.statements)s(o,!1);return(4194304&e.flags||t)&&function(e){const n=/import|require/g;for(;null!==n.exec(e.text);){const o=l(e,n.lastIndex);t&&tg(o,!0)||L_(o)&&o.arguments.length>=1&&np(o.arguments[0])?(Hx(o,!1),r=Ee(r,o.arguments[0])):P_(o)&&(Hx(o,!1),r=Ee(r,o.argument.literal))}}(e),e.imports=r||o,e.moduleAugmentations=i||o,void(e.ambientModuleNames=a||o);function s(t,o){if(e_(t)){const n=Bg(t);!(n&&zR(n)&&n.text)||o&&Xs(n.text)||(Hx(t,!1),r=Ee(r,n),Fe||0!==ue||e.isDeclarationFile||(Fe=dn(n.text,"node:")))}else if(pN(t)&&Pm(t)&&(o||Gb(t,128)||e.isDeclarationFile)){t.name.parent=t;const r=sv(t.name);if(n||o&&!Xs(r))(i||(i=[])).push(t.name);else if(!o){e.isDeclarationFile&&(a||(a=[])).push(r);const n=t.body;if(n)for(const e of n.statements)s(e,!0)}}}function l(e,n){let r=e;const o=e=>{if(e.pos<=n&&(n<e.end||n===e.end&&1===e.kind))return e};for(;;){const e=t&&Xu(r)&&x(r.jsDoc,o)||oP(r,o);if(!e)return r;r=e}}}function nn(e,t,n,r){if($i(e)){const o=me.getCanonicalFileName(e);if(!I.allowNonTsExtensions&&!x(q(xe),(e=>Yi(o,e))))return void(n&&(nx(o)?n(Oa.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):n(Oa.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,"'"+q(Te).join("', '")+"'")));const i=t(e);if(n)if(i)nH(r)&&o===me.getCanonicalFileName(kt(r.file).fileName)&&n(Oa.A_file_cannot_have_a_reference_to_itself);else{const t=mn(e);t?n(Oa.Output_file_0_has_not_been_built_from_source_file_1,t,e):n(Oa.File_0_not_found,e)}return i}{const r=I.allowNonTsExtensions&&t(e);if(r)return r;if(n&&I.allowNonTsExtensions)return void n(Oa.File_0_not_found,e);const o=x(Te[0],(n=>t(e+n)));return n&&!o&&n(Oa.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,"'"+q(Te).join("', '")+"'"),o}}function rn(e,t,n,r,o){nn(e,(e=>sn(e,t,n,o,r)),((e,...t)=>wn(void 0,o,e,t)),o)}function on(e,t){return rn(e,!1,!1,void 0,t)}function an(e,t,n){!nH(n)&&se(H.get(t.path),nH)?wn(t,n,Oa.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):wn(t,n,Oa.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function sn(e,t,n,r,o){var i,a;null==(i=kr)||i.push(kr.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:qr[r.kind]});const s=function(e,t,n,r,o){var i;const a=_t(e);if(Ke){let i=vn(a);if(!i&&me.realpath&&I.preserveSymlinks&&_P(e)&&e.includes(HO)){const t=_t(me.realpath(e));t!==a&&(i=vn(t))}if(i){const s=ht(i)?sn(i,t,n,r,o):void 0;return s&&pn(s,a,e,void 0),s}}const s=e;if(We.has(a)){const n=We.get(a);if(cn(n||void 0,r),n&&!1!==I.forceConsistentCasingInFileNames){const t=n.fileName;_t(t)!==_t(e)&&(e=mn(e)||e);ha(t,Se)!==ha(e,Se)&&an(e,n,r)}return n&&fe.get(n.path)&&0===ue?(fe.set(n.path,!1),I.noResolve||(Sn(n,t),Tn(n)),I.noLib||Cn(n),pe.set(n.path,!1),Nn(n)):n&&pe.get(n.path)&&ue<de&&(pe.set(n.path,!1),Nn(n)),n||void 0}let l;if(nH(r)&&!Ke){const t=_n(e);if(t){if(ob(t.commandLine.options))return;const n=hn(t,e);e=n,l=_t(n)}}const c=ln(e,Re,me,I),d=me.getSourceFile(e,c,(t=>wn(void 0,r,Oa.Cannot_read_file_0_Colon_1,[e,t])),Ye);if(o){const t=qf(o),n=Pe.get(t);if(n){const t=function(e,t,n,r,o,i,a){var s;const l=Rk.createRedirectedSourceFile({redirectTarget:e,unredirected:t});return l.fileName=n,l.path=r,l.resolvedPath=o,l.originalFileName=i,l.packageJsonLocations=(null==(s=a.packageJsonLocations)?void 0:s.length)?a.packageJsonLocations:void 0,l.packageJsonScope=a.packageJsonScope,fe.set(r,ue>0),l}(n,d,e,a,_t(e),s,c);return Oe.add(n.path,e),pn(t,a,e,l),cn(t,r),we.set(a,Kf(o)),O.push(t),t}d&&(Pe.set(t,d),we.set(a,Kf(o)))}if(pn(d,a,e,l),d){if(fe.set(a,ue>0),d.fileName=e,d.path=a,d.resolvedPath=_t(e),d.originalFileName=s,d.packageJsonLocations=(null==(i=c.packageJsonLocations)?void 0:i.length)?c.packageJsonLocations:void 0,d.packageJsonScope=c.packageJsonScope,cn(d,r),me.useCaseSensitiveFileNames()){const t=It(a),n=Be.get(t);n?an(e,n,r):Be.set(t,d)}he=he||d.hasNoDefaultLib&&!n,I.noResolve||(Sn(d,t),Tn(d)),I.noLib||Cn(d),Nn(d),t?w.push(d):O.push(d)}return d}(e,t,n,r,o);return null==(a=kr)||a.pop(),s}function ln(e,t,n,r){const o=lH(ma(e,Se),null==t?void 0:t.getPackageJsonInfoCache(),n,r),i=jp(r),a=vT(r);return"object"===typeof o?{...o,languageVersion:i,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}:{languageVersion:i,impliedNodeFormat:o,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}}function cn(e,t){e&&H.add(e.path,t)}function pn(e,t,n,r){r?(fn(n,r,e),fn(n,t,e||!1)):fn(n,t,e)}function fn(e,t,n){We.set(t,n),void 0!==n?ze.delete(t):ze.set(t,e)}function mn(e){const t=_n(e);return t&&hn(t,e)}function _n(e){if(Ge&&Ge.length&&!_P(e)&&!Yi(e,".json"))return gn(e)}function hn(e,t){const n=ob(e.commandLine.options);return n?px(n,".d.ts"):CV(t,e.commandLine,!me.useCaseSensitiveFileNames())}function gn(e){void 0===Ve&&(Ve=new Map,yn((e=>{_t(I.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((t=>Ve.set(_t(t),e.sourceFile.path)))})));const t=Ve.get(_t(e));return t&&En(t)}function yn(e){return YU(Ge,e)}function vn(e){if(_P(e))return void 0===Ue&&(Ue=new Map,yn((e=>{const t=ob(e.commandLine.options);if(t){const e=px(t,".d.ts");Ue.set(_t(e),!0)}else{const t=Ct((()=>OV(e.commandLine,!me.useCaseSensitiveFileNames())));x(e.commandLine.fileNames,(n=>{if(!_P(n)&&!Yi(n,".json")){const r=CV(n,e.commandLine,!me.useCaseSensitiveFileNames(),t);Ue.set(_t(r),n)}}))}}))),Ue.get(e)}function bn(e){return Ke&&!!gn(e)}function En(e){if(je)return je.get(e)||void 0}function Sn(e,t){x(e.referencedFiles,((n,r)=>{rn(xU(n.fileName,e.fileName),t,!1,void 0,{kind:4,file:e.path,index:r})}))}function Tn(e){const t=e.typeReferenceDirectives;if(!t.length)return;const n=(null==ie?void 0:ie.get(e.path))||vt(t,e),r=AF();(oe??(oe=new Map)).set(e.path,r);for(let o=0;o<t.length;o++){const t=e.typeReferenceDirectives[o],i=n[o],a=It(t.fileName);r.set(a,BU(t,e.impliedNodeFormat),i);xn(a,t.resolutionMode||e.impliedNodeFormat,i,{kind:5,file:e.path,index:o})}}function xn(e,t,n,r){var o,i;null==(o=kr)||o.push(kr.Phase.Program,"processTypeReferenceDirective",{directive:e,hasResolved:!!n.resolvedTypeReferenceDirective,refKind:r.kind,refPath:nH(r)?r.file:void 0}),function(e,t,n,r){var o;it(n);const i=null==(o=le.get(e,t))?void 0:o.resolvedTypeReferenceDirective;if(i&&i.primary)return;let a=!0;const{resolvedTypeReferenceDirective:s}=n;if(s){if(s.isExternalLibraryImport&&ue++,s.primary)rn(s.resolvedFileName,!1,!1,s.packageId,r);else if(i){if(s.resolvedFileName!==i.resolvedFileName){const t=me.readFile(s.resolvedFileName),n=Lt(i.resolvedFileName);t!==n.text&&wn(n,r,Oa.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[e,s.resolvedFileName,i.resolvedFileName])}a=!1}else rn(s.resolvedFileName,!1,!1,s.packageId,r);s.isExternalLibraryImport&&ue--}else wn(void 0,r,Oa.Cannot_find_type_definition_file_for_0,[e]);a&&le.set(e,t,n)}(e,t,n,r),null==(i=kr)||i.pop()}function An(e){const t=null==ee?void 0:ee.get(e);if(t)return t.actual;const n=Rn(e);return(ee??(ee=new Map)).set(e,n),n.actual}function Rn(e){var t,n,r,o,i;const a=null==te?void 0:te.get(e);if(a)return a;if(0!==Qe&&M&&!Le(e)){const o=null==(t=M.resolvedLibReferences)?void 0:t.get(e);if(o){if(o.resolution&&XO(I,me)){const t=eH(e),i=ZU(I,Se,e);JO(me,o.resolution.resolvedModule?o.resolution.resolvedModule.packageId?Oa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Oa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Oa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,ma(i,Se),null==(n=o.resolution.resolvedModule)?void 0:n.resolvedFileName,(null==(r=o.resolution.resolvedModule)?void 0:r.packageId)&&qf(o.resolution.resolvedModule.packageId))}return(te??(te=new Map)).set(e,o),o}}const s=eH(e),l=ZU(I,Se,e);null==(o=kr)||o.push(kr.Phase.Program,"resolveLibrary",{resolveFrom:l}),br("beforeResolveLibrary");const c=ke(s,l,I,e);br("afterResolveLibrary"),Er("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),null==(i=kr)||i.pop();const d={resolution:c,actual:c.resolvedModule?c.resolvedModule.resolvedFileName:ua(ve,e)};return(te??(te=new Map)).set(e,d),d}function Cn(e){x(e.libReferenceDirectives,((t,n)=>{const{libName:r,libFileName:o}=tH(t);if(o)$t(An(o),!0,!0,{kind:7,file:e.path,index:n});else{const t=Xt(Qt(un(r,"lib."),".d.ts"),RP,xt),o=t?Oa.Cannot_find_lib_definition_for_0_Did_you_mean_1:Oa.Cannot_find_lib_definition_for_0,i=t?[r,t]:[r];($||($=[])).push({kind:0,reason:{kind:7,file:e.path,index:n},diagnostic:o,args:i})}}))}function Dn(e){return me.getCanonicalFileName(e)}function Nn(e){var t;if(tn(e),e.imports.length||e.moduleAugmentations.length){const n=hH(e),r=(null==re?void 0:re.get(e.path))||yt(n,e);In.assert(r.length===n.length);const o=(null==(t=ut(e))?void 0:t.commandLine.options)||I,i=AF();(ne??(ne=new Map)).set(e.path,i);for(let t=0;t<n.length;t++){const a=r[t].resolvedModule,s=n[t].text,l=UU(e,n[t],o);if(i.set(s,l,r[t]),at(e,s,r[t],l),!a)continue;const c=a.isExternalLibraryImport,d=!gx(a.extension),u=c&&d&&(!a.originalPath||HF(a.resolvedFileName)),p=a.resolvedFileName;c&&ue++;const f=u&&ue>de,m=p&&!_H(o,a,e)&&!o.noResolve&&t<e.imports.length&&!f&&!(d&&!nf(o))&&($h(e.imports[t])||!(16777216&e.imports[t].flags));f?pe.set(e.path,!0):m&&sn(p,!1,!1,{kind:3,file:e.path,index:t},a.packageId),c&&ue--}}}function Mn(e){je||(je=new Map);const t=mH(e),n=_t(t),r=je.get(n);if(void 0!==r)return r||void 0;let o,i;if(me.getParsedCommandLine){if(o=me.getParsedCommandLine(t),!o)return pn(void 0,n,t,void 0),void je.set(n,!1);i=In.checkDefined(o.options.configFile),In.assert(!i.path||i.path===n),pn(i,n,t,void 0)}else{const e=ma(ra(t),Se);if(i=me.getSourceFile(t,100),pn(i,n,t,void 0),void 0===i)return void je.set(n,!1);o=rO(i,_e,e,void 0,t)}i.fileName=t,i.path=n,i.resolvedPath=n,i.originalFileName=t;const a={commandLine:o,sourceFile:i};return je.set(n,a),o.projectReferences&&(a.references=o.projectReferences.map(Mn)),a}function Ln(t,n,r,o){const i=new Pn(t),a=new Pn(n),s=new Pn(N||e),l=function(){const e=I.ignoreDeprecations;if(e){if("5.0"===e)return new Pn(e);k()}return Pn.zero}(),c=!(1===a.compareTo(s)),d=!c&&-1===l.compareTo(i);(c||d)&&o(((e,o,i)=>{c?void 0===o?r(e,o,i,Oa.Option_0_has_been_removed_Please_remove_it_from_your_configuration,e):r(e,o,i,Oa.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,e,o):void 0===o?r(e,o,i,Oa.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,e,n,t):r(e,o,i,Oa.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,e,o,n,t)}))}function kn(e,t,n,r){var i;let a,s,l=nH(t)?t:void 0;e&&(null==(i=H.get(e.path))||i.forEach(f)),t&&f(t),l&&1===(null==a?void 0:a.length)&&(a=void 0);const c=l&&oH(Ze,l),d=a&&cT(a,Oa.The_file_is_in_the_program_because_Colon),u=e&&HK(e),p=cT(u?d?[d,...u]:u:d,n,...r||o);return c&&rH(c)?h_(c.file,c.pos,c.end-c.pos,p,s):lT(p,s);function f(e){(a||(a=[])).push(JK(Ze,e)),!l&&nH(e)?l=e:l!==e&&(s=Ee(s,function(e){if(nH(e)){const t=oH(Ze,e);let n;switch(e.kind){case 3:n=Oa.File_is_included_via_import_here;break;case 4:n=Oa.File_is_included_via_reference_here;break;case 5:n=Oa.File_is_included_via_type_library_reference_here;break;case 7:n=Oa.File_is_included_via_library_reference_here;break;default:In.assertNever(e)}return rH(t)?iT(t.file,t.pos,t.end-t.pos,n):void 0}if(!I.configFile)return;let t,n;switch(e.kind){case 0:if(!I.configFile.configFileSpecs)return;const o=ma(A[e.index],Se),i=KK(Ze,o);if(i){t=uh(I.configFile,"files",i),n=Oa.File_is_matched_by_files_list_specified_here;break}const a=qK(Ze,o);if(!a||!ht(a))return;t=uh(I.configFile,"include",a),n=Oa.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const s=In.checkDefined(null==Ge?void 0:Ge[e.index]),l=QU(D,Ge,((e,t,n)=>e===s?{sourceFile:(null==t?void 0:t.sourceFile)||I.configFile,index:n}:void 0));if(!l)return;const{sourceFile:c,index:d}=l,u=ph(c,"references",(e=>aD(e.initializer)?e.initializer:void 0));return u&&u.elements.length>d?p_(c,u.elements[d],2===e.kind?Oa.File_is_output_from_referenced_project_specified_here:Oa.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!I.types)return;t=Gn("types",e.typeReference),n=Oa.File_is_entry_point_of_type_library_specified_here;break;case 6:if(void 0!==e.index){t=Gn("lib",I.lib[e.index]),n=Oa.File_is_library_specified_here;break}const p=Wf(MP.type,((e,t)=>e===jp(I)?t:void 0));t=p?(r=p,zn("target",(e=>zR(e.initializer)&&e.initializer.text===r?e.initializer:void 0))):void 0,n=Oa.File_is_default_library_for_target_specified_here;break;default:In.assertNever(e)}var r;return t&&p_(I.configFile,t,n)}(e))),e===t&&(t=void 0)}}function wn(e,t,n,r){($||($=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:n,args:r})}function On(e,t,n){be.add(kn(e,void 0,t,n))}function Fn(e,t,n,...r){let o=!0;Bn((i=>{sD(i.initializer)&&lh(i.initializer,e,(e=>{const i=e.initializer;aD(i)&&i.elements.length>t&&(be.add(p_(I.configFile,i.elements[t],n,...r)),o=!1)}))})),o&&be.add(sT(n,...r))}function Wn(e,t,n,...r){let o=!0;Bn((i=>{sD(i.initializer)&&qn(i.initializer,e,t,void 0,n,...r)&&(o=!1)})),o&&be.add(sT(n,...r))}function zn(e,t){return lh(Kn(),e,t)}function Bn(e){return zn("paths",e)}function Gn(e,t){const n=Kn();return n&&ch(n,e,t)}function jn(e,t,n,r){Hn(!0,t,n,e,t,n,r)}function Vn(e,t,...n){Hn(!1,e,void 0,t,...n)}function Un(e,t,n,...r){const o=ph(e||I.configFile,"references",(e=>aD(e.initializer)?e.initializer:void 0));o&&o.elements.length>t?be.add(p_(e||I.configFile,o.elements[t],n,...r)):be.add(sT(n,...r))}function Hn(e,t,n,r,...o){const i=Kn();(!i||!qn(i,e,t,n,r,...o))&&("messageText"in r?be.add(lT(r)):be.add(sT(r,...o)))}function Kn(){return void 0===Ie&&(Ie=lh(dh(I.configFile),"compilerOptions",(e=>sD(e.initializer)?e.initializer:void 0))||!1),Ie||void 0}function qn(e,t,n,r,o,...i){let a=!1;return lh(e,n,(e=>{"messageText"in o?be.add(f_(I.configFile,t?e.name:e.initializer,o)):be.add(p_(I.configFile,t?e.name:e.initializer,o,...i)),a=!0}),r),a}function Jn(e,t){const n=Kn();n?qn(n,!0,e,void 0,Oa.Option_0_is_redundant_and_cannot_be_specified_with_option_1,e,t):jn(Oa.Option_0_is_redundant_and_cannot_be_specified_with_option_1,e,t)}function Xn(e,t){Ae.set(_t(e),!0),be.add(t)}function $n(e,t){return 0===Ia(e,t,Se,!me.useCaseSensitiveFileNames())}function Yn(){return me.getSymlinkCache?me.getSymlinkCache():(z||(z=OT(Se,Dn)),W&&!z.hasProcessedResolutions()&&z.setSymlinksFromResolutions(tt,nt,Q),z)}function Qn(e,t){var n;return UU(e,t,(null==(n=ut(e))?void 0:n.commandLine.options)||I)}}function dH(e,t,n,r){const o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,r),t||ob(o)?EU:e.emitBuildInfo(n,r);if(!o.noEmitOnError)return;let i,a=[...e.getOptionsDiagnostics(r),...e.getSyntacticDiagnostics(t,r),...e.getGlobalDiagnostics(r),...e.getSemanticDiagnostics(t,r)];if(0===a.length&&Qp(e.getCompilerOptions())&&(a=e.getDeclarationDiagnostics(void 0,r)),a.length){if(!t&&!ob(o)){const t=e.emitBuildInfo(n,r);t.diagnostics&&(a=[...a,...t.diagnostics]),i=t.emittedFiles}return{diagnostics:a,sourceMaps:void 0,emittedFiles:i,emitSkipped:!0}}}function uH(e,t){return G(e,(e=>!e.skippedOn||!t[e.skippedOn]))}function pH(e,t=e){return{fileExists:e=>t.fileExists(e),readDirectory:(e,n,r,o,i)=>(In.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(e,n,r,o,i)),readFile:e=>t.readFile(e),directoryExists:lt(t,t.directoryExists),getDirectories:lt(t,t.getDirectories),realpath:lt(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Tt,trace:e.trace?t=>e.trace(t):void 0}}function fH(e,t,n,r){if(!e)return o;let i;for(let o=0;o<e.length;o++){const a=e[o],s=t(a,o);if(a.prepend&&s&&s.options){if(!ob(s.options))continue;const{jsFilePath:e,sourceMapFilePath:t,declarationFilePath:o,declarationMapPath:a,buildInfoPath:l}=TV(s.options,!0),c=iI(n,e,t,o,a,l,r,s.options);(i||(i=[])).push(c)}}return i||o}function mH(e){return gq(e.path)}function _H(e,{extension:t},{isDeclarationFile:n}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return r();case".jsx":return r()||o();case".js":case".mjs":case".cjs":return o();case".json":return Yp(e)?void 0:Oa.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;default:return n||e.allowArbitraryExtensions?void 0:Oa.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}function r(){return e.jsx?void 0:Oa.Module_0_was_resolved_to_1_but_jsx_is_not_set}function o(){return nf(e)||!IT(e,"noImplicitAny")?void 0:Oa.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function hH({imports:e,moduleAugmentations:t}){const n=e.map((e=>e));for(const r of t)11===r.kind&&n.push(r);return n}function gH({imports:e,moduleAugmentations:t},n){if(n<e.length)return e[n];let r=e.length;for(const o of t)if(11===o.kind){if(n===r)return o;r++}In.fail("should never ask for module name at index higher than possible module name")}var yH,vH=b({"src/compiler/program.ts"(){JJ(),oi(),cU=(e=>(e.Grey="\x1b[90m",e.Red="\x1b[91m",e.Yellow="\x1b[93m",e.Blue="\x1b[94m",e.Cyan="\x1b[96m",e))(cU||{}),dU="\x1b[7m",uU=" ",pU="\x1b[0m",fU="...",mU=" ",_U=" ",hU={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},gU={getName:KU,getMode:(e,t,n)=>VU(t,e,n)},yU={getName:JU,getMode:(e,t)=>BU(e,null==t?void 0:t.impliedNodeFormat)},vU="__inferred type names__.ts",bU=new Set([Oa.Cannot_redeclare_block_scoped_variable_0.code,Oa.A_module_cannot_have_multiple_default_exports.code,Oa.Another_export_default_is_here.code,Oa.The_first_export_default_is_here.code,Oa.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,Oa.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,Oa.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,Oa.constructor_is_a_reserved_word.code,Oa.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,Oa.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,Oa.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,Oa.Invalid_use_of_0_in_strict_mode.code,Oa.A_label_is_not_allowed_here.code,Oa.with_statements_are_not_allowed_in_strict_mode.code,Oa.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,Oa.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,Oa.A_class_declaration_without_the_default_modifier_must_have_a_name.code,Oa.A_class_member_cannot_have_the_0_keyword.code,Oa.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,Oa.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,Oa.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,Oa.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,Oa.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,Oa.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,Oa.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,Oa.A_destructuring_declaration_must_have_an_initializer.code,Oa.A_get_accessor_cannot_have_parameters.code,Oa.A_rest_element_cannot_contain_a_binding_pattern.code,Oa.A_rest_element_cannot_have_a_property_name.code,Oa.A_rest_element_cannot_have_an_initializer.code,Oa.A_rest_element_must_be_last_in_a_destructuring_pattern.code,Oa.A_rest_parameter_cannot_have_an_initializer.code,Oa.A_rest_parameter_must_be_last_in_a_parameter_list.code,Oa.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,Oa.A_return_statement_cannot_be_used_inside_a_class_static_block.code,Oa.A_set_accessor_cannot_have_rest_parameter.code,Oa.A_set_accessor_must_have_exactly_one_parameter.code,Oa.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,Oa.An_export_declaration_cannot_have_modifiers.code,Oa.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,Oa.An_import_declaration_cannot_have_modifiers.code,Oa.An_object_member_cannot_be_declared_optional.code,Oa.Argument_of_dynamic_import_cannot_be_spread_element.code,Oa.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,Oa.Cannot_redeclare_identifier_0_in_catch_clause.code,Oa.Catch_clause_variable_cannot_have_an_initializer.code,Oa.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,Oa.Classes_can_only_extend_a_single_class.code,Oa.Classes_may_not_have_a_field_named_constructor.code,Oa.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,Oa.Duplicate_label_0.code,Oa.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,Oa.for_await_loops_cannot_be_used_inside_a_class_static_block.code,Oa.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,Oa.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,Oa.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,Oa.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,Oa.Jump_target_cannot_cross_function_boundary.code,Oa.Line_terminator_not_permitted_before_arrow.code,Oa.Modifiers_cannot_appear_here.code,Oa.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,Oa.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,Oa.Private_identifiers_are_not_allowed_outside_class_bodies.code,Oa.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,Oa.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,Oa.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,Oa.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,Oa.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,Oa.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,Oa.Trailing_comma_not_allowed.code,Oa.Variable_declaration_list_cannot_be_empty.code,Oa._0_and_1_operations_cannot_be_mixed_without_parentheses.code,Oa._0_expected.code,Oa._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,Oa._0_list_cannot_be_empty.code,Oa._0_modifier_already_seen.code,Oa._0_modifier_cannot_appear_on_a_constructor_declaration.code,Oa._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,Oa._0_modifier_cannot_appear_on_a_parameter.code,Oa._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,Oa._0_modifier_cannot_be_used_here.code,Oa._0_modifier_must_precede_1_modifier.code,Oa._0_declarations_can_only_be_declared_inside_a_block.code,Oa._0_declarations_must_be_initialized.code,Oa.extends_clause_already_seen.code,Oa.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,Oa.Class_constructor_may_not_be_a_generator.code,Oa.Class_constructor_may_not_be_an_accessor.code,Oa.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Oa.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Oa.Private_field_0_must_be_declared_in_an_enclosing_class.code,Oa.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),EU={diagnostics:o,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),bH=b({"src/compiler/builderStatePublic.ts"(){}});function EH(e,t,n,r,o,i){const a=[],{emitSkipped:s,diagnostics:l}=e.emit(t,(function(e,t,n){a.push({name:e,writeByteOrderMark:n,text:t})}),r,n,o,i);return{outputFiles:a,emitSkipped:s,diagnostics:l}}var SH,TH,xH=b({"src/compiler/builderState.ts"(){JJ(),(e=>{function t(){return function(e,t,r){const o={getKeys:e=>t.get(e),getValues:t=>e.get(t),keys:()=>e.keys(),deleteKey:o=>{(r||(r=new Set)).add(o);const i=e.get(o);return!!i&&(i.forEach((e=>n(t,e,o))),e.delete(o),!0)},set:(i,a)=>{null==r||r.delete(i);const s=e.get(i);return e.set(i,a),null==s||s.forEach((e=>{a.has(e)||n(t,e,i)})),a.forEach((e=>{(null==s?void 0:s.has(e))||function(e,t,n){let r=e.get(t);r||(r=new Set,e.set(t,r));r.add(n)}(t,e,i)})),o}};return o}(new Map,new Map,void 0)}function n(e,t,n){const r=e.get(t);return!!(null==r?void 0:r.delete(n))&&(r.size||e.delete(t),!0)}function r(e){return Z(e.declarations,(e=>{var t;return null==(t=Yf(e))?void 0:t.resolvedPath}))}function i(e,t){const n=e.getSymbolAtLocation(t);return n&&r(n)}function a(e,t,n,r){return ga(e.getProjectReferenceRedirect(t)||t,n,r)}function s(e,t,n){let r;if(t.imports&&t.imports.length>0){const n=e.getTypeChecker();for(const e of t.imports){const t=i(n,e);null==t||t.forEach(l)}}const o=ra(t.resolvedPath);if(t.referencedFiles&&t.referencedFiles.length>0)for(const i of t.referencedFiles){l(a(e,i.fileName,o,n))}if(e.forEachResolvedTypeReferenceDirective((({resolvedTypeReferenceDirective:t})=>{if(!t)return;const r=t.resolvedFileName;l(a(e,r,o,n))}),t),t.moduleAugmentations.length){const n=e.getTypeChecker();for(const e of t.moduleAugmentations){if(!zR(e))continue;const t=n.getSymbolAtLocation(e);t&&s(t)}}for(const i of e.getTypeChecker().getAmbientModules())i.declarations&&i.declarations.length>1&&s(i);return r;function s(e){if(e.declarations)for(const n of e.declarations){const e=Yf(n);e&&e!==t&&l(e.resolvedPath)}}function l(e){(r||(r=new Set)).add(e)}}function l(e,t){return t&&!t.referencedMap===!e}function c(e,t,n,r,i){const a=t.getSourceFileByPath(n);return a?u(e,t,a,r,i)?(e.referencedMap?v:y)(e,t,a,r,i):[a]:o}function d(e,t,n,r,o){e.emit(t,((n,i,a,s,l,c)=>{In.assert(_P(n),`File extension for signature expected to be dts: Got:: ${n}`),o(JH(e,t,i,r,c),l)}),n,!0,void 0,!0)}function u(e,t,n,r,o,i=e.useFileVersionAsSignature){var a;if(null==(a=e.hasCalledUpdateShapeSignature)?void 0:a.has(n.resolvedPath))return!1;const s=e.fileInfos.get(n.resolvedPath),l=s.signature;let c;if(n.isDeclarationFile||i||d(t,n,r,o,((t,r)=>{c=t,c!==l&&p(e,n,r[0].exportedModulesFromDeclarationEmit)})),void 0===c&&(c=n.version,e.exportedModulesMap&&c!==l)){(e.oldExportedModulesMap||(e.oldExportedModulesMap=new Map)).set(n.resolvedPath,e.exportedModulesMap.getValues(n.resolvedPath)||!1);const t=e.referencedMap?e.referencedMap.getValues(n.resolvedPath):void 0;t?e.exportedModulesMap.set(n.resolvedPath,t):e.exportedModulesMap.deleteKey(n.resolvedPath)}return(e.oldSignatures||(e.oldSignatures=new Map)).set(n.resolvedPath,l||!1),(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n.resolvedPath),s.signature=c,c!==l}function p(e,t,n){if(!e.exportedModulesMap)return;(e.oldExportedModulesMap||(e.oldExportedModulesMap=new Map)).set(t.resolvedPath,e.exportedModulesMap.getValues(t.resolvedPath)||!1);const r=f(n);r?e.exportedModulesMap.set(t.resolvedPath,r):e.exportedModulesMap.deleteKey(t.resolvedPath)}function f(e){let t;return null==e||e.forEach((e=>r(e).forEach((e=>(t??(t=new Set)).add(e))))),t}function m(e,t){if(!e.allFileNames){const n=t.getSourceFiles();e.allFileNames=n===o?o:n.map((e=>e.fileName))}return e.allFileNames}function _(e,t){const n=e.referencedMap.getKeys(t);return n?Ye(n.keys()):[]}function h(e){return function(e){return se(e.moduleAugmentations,(e=>Bm(e.parent)))}(e)||!T_(e)&&!x_(e)&&!function(e){for(const t of e.statements)if(!wm(t))return!1;return!0}(e)}function g(e,t,n){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;let r;n&&i(n);for(const o of t.getSourceFiles())o!==n&&i(o);return e.allFilesExcludingDefaultLibraryFile=r||o,e.allFilesExcludingDefaultLibraryFile;function i(e){t.isSourceFileDefaultLibrary(e)||(r||(r=[])).push(e)}}function y(e,t,n){const r=t.getCompilerOptions();return r&&ob(r)?[n]:g(e,t,n)}function v(e,t,n,r,o){if(h(n))return g(e,t,n);const i=t.getCompilerOptions();if(i&&(Kp(i)||ob(i)))return[n];const a=new Map;a.set(n.resolvedPath,n);const s=_(e,n.resolvedPath);for(;s.length>0;){const n=s.pop();if(!a.has(n)){const i=t.getSourceFileByPath(n);a.set(n,i),i&&u(e,t,i,r,o)&&s.push(..._(e,i.resolvedPath))}}return Ye(ee(a.values(),(e=>e)))}e.createManyToManyPathMap=t,e.canReuseOldState=l,e.create=function(e,n,r){var o,i,a;const c=new Map,d=e.getCompilerOptions(),u=ob(d),p=0===d.module||u?void 0:t(),f=p?t():void 0,m=l(p,n);e.getTypeChecker();for(const t of e.getSourceFiles()){const r=In.checkDefined(t.version,"Program intended to be used with Builder should have source files with versions set"),l=m?null==(o=n.oldSignatures)?void 0:o.get(t.resolvedPath):void 0,d=void 0===l?m?null==(i=n.fileInfos.get(t.resolvedPath))?void 0:i.signature:void 0:l||void 0;if(p){const r=s(e,t,e.getCanonicalFileName);if(r&&p.set(t.resolvedPath,r),m){const e=null==(a=n.oldExportedModulesMap)?void 0:a.get(t.resolvedPath),r=void 0===e?n.exportedModulesMap.getValues(t.resolvedPath):e||void 0;r&&f.set(t.resolvedPath,r)}}c.set(t.resolvedPath,{version:r,signature:d,affectsGlobalScope:u?void 0:h(t)||void 0,impliedFormat:t.impliedNodeFormat})}return{fileInfos:c,referencedMap:p,exportedModulesMap:f,useFileVersionAsSignature:!r&&!m}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.getFilesAffectedBy=function(e,t,n,r,o){var i,a;const s=c(e,t,n,r,o);return null==(i=e.oldSignatures)||i.clear(),null==(a=e.oldExportedModulesMap)||a.clear(),s},e.getFilesAffectedByWithOldState=c,e.updateSignatureOfFile=function(e,t,n){e.fileInfos.get(n).signature=t,(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n)},e.computeDtsSignature=d,e.updateShapeSignature=u,e.updateExportedModules=p,e.getExportedModules=f,e.getAllDependencies=function(e,t,n){if(ob(t.getCompilerOptions()))return m(e,t);if(!e.referencedMap||h(n))return m(e,t);const r=new Set,o=[n.resolvedPath];for(;o.length;){const t=o.pop();if(!r.has(t)){r.add(t);const n=e.referencedMap.getValues(t);if(n)for(const e of n.keys())o.push(e)}}return Ye(ee(r.keys(),(e=>{var n;return(null==(n=t.getSourceFileByPath(e))?void 0:n.fileName)??e})))},e.getReferencedByPaths=_,e.getAllFilesExcludingDefaultLibraryFile=g})(yH||(yH={}))}});function AH(e){let t=1;return e.sourceMap&&(t|=2),e.inlineSourceMap&&(t|=4),Qp(e)&&(t|=8),e.declarationMap&&(t|=16),e.emitDeclarationOnly&&(t&=24),t}function IH(e,t){const n=t&&(gt(t)?t:AH(t)),r=gt(e)?e:AH(e);if(n===r)return 0;if(!n||!r)return r;const o=n^r;let i=0;return 7&o&&(i=7&r),24&o&&(i|=24&r),i}function RH(e,t){var n,r;const o=yH.create(e,t,!1);o.program=e;const i=e.getCompilerOptions();o.compilerOptions=i;const a=ob(i);a?i.composite&&(null==t?void 0:t.outSignature)&&a===ob(null==t?void 0:t.compilerOptions)&&(o.outSignature=t.outSignature&&DH(i,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=i.composite?null==t?void 0:t.latestChangedDtsFile:void 0;const s=yH.canReuseOldState(o.referencedMap,t),l=s?t.compilerOptions:void 0,c=s&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!CT(i,l),d=i.composite&&(null==t?void 0:t.emitSignatures)&&!a&&!NT(i,t.compilerOptions);s?(null==(n=t.changedFilesSet)||n.forEach((e=>o.changedFilesSet.add(e))),!a&&(null==(r=t.affectedFilesPendingEmit)?void 0:r.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;const u=o.referencedMap,p=s?t.referencedMap:void 0,f=c&&!i.skipLibCheck===!l.skipLibCheck,m=f&&!i.skipDefaultLibCheck===!l.skipDefaultLibCheck;if(o.fileInfos.forEach(((n,r)=>{var a;let l,_;if(!s||!(l=t.fileInfos.get(r))||l.version!==n.version||l.impliedFormat!==n.impliedFormat||(h=_=u&&u.getValues(r),g=p&&p.getValues(r),h!==g&&(void 0===h||void 0===g||h.size!==g.size||zf(h,(e=>!g.has(e)))))||_&&zf(_,(e=>!o.fileInfos.has(e)&&t.fileInfos.has(e))))CH(o,r);else{const n=e.getSourceFileByPath(r),i=null==(a=t.emitDiagnosticsPerFile)?void 0:a.get(r);if(i&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(r,t.hasReusableDiagnostic?kH(i,e):NH(i,e)),c){if(n.isDeclarationFile&&!f)return;if(n.hasNoDefaultLib&&!m)return;const i=t.semanticDiagnosticsPerFile.get(r);i&&(o.semanticDiagnosticsPerFile.set(r,t.hasReusableDiagnostic?kH(i,e):NH(i,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(r))}}var h,g;if(d){const e=t.emitSignatures.get(r);e&&(o.emitSignatures??(o.emitSignatures=new Map)).set(r,DH(i,t.compilerOptions,e))}})),s&&Wf(t.fileInfos,((e,t)=>!o.fileInfos.has(t)&&(!(!a&&!e.affectsGlobalScope)||(o.buildInfoEmitPending=!0,!1)))))yH.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach((e=>CH(o,e.resolvedPath)));else if(l){const t=DT(i,l)?AH(i):IH(i,l);0!==t&&(a?o.programEmitPending=o.programEmitPending?o.programEmitPending|t:t:(e.getSourceFiles().forEach((e=>{o.changedFilesSet.has(e.resolvedPath)||YH(o,e.resolvedPath,t)})),In.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return a&&!o.changedFilesSet.size&&(s&&(o.bundle=t.bundle),se(e.getProjectReferences(),(e=>!!e.prepend))&&(o.programEmitPending=AH(i))),o}function CH(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function DH(e,t,n){return!!e.declarationMap===!!t.declarationMap?n:ht(n)?[n]:n[0]}function NH(e,t){return e.length?K(e,(e=>{if(ht(e.messageText))return e;const n=MH(e.messageText,e.file,t,(e=>{var t;return null==(t=e.repopulateInfo)?void 0:t.call(e)}));return n===e.messageText?e:{...e,messageText:n}})):e}function MH(e,t,n,r){const o=r(e);if(o)return{...Hf(t,n,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:LH(e.next,t,n,r)};const i=LH(e.next,t,n,r);return i===e.next?e:{...e,next:i}}function LH(e,t,n,r){return K(e,(e=>MH(e,t,n,r)))}function kH(e,t){if(!e.length)return o;let n;return e.map((e=>{const n=PH(e,t,r);n.reportsUnnecessary=e.reportsUnnecessary,n.reportsDeprecated=e.reportDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;const{relatedInformation:o}=e;return n.relatedInformation=o?o.length?o.map((e=>PH(e,t,r))):[]:void 0,n}));function r(e){return n??(n=ra(ma(SV(t.getCompilerOptions()),t.getCurrentDirectory()))),ga(e,n,t.getCanonicalFileName)}}function PH(e,t,n){const{file:r}=e,o=r?t.getSourceFileByPath(n(r)):void 0;return{...e,file:o,messageText:ht(e.messageText)?e.messageText:MH(e.messageText,o,t,(e=>e.info))}}function wH(e,t){In.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function OH(e,t,n){for(var r,o;;){const{affectedFiles:i}=e;if(i){const a=e.seenAffectedFiles;let s=e.affectedFilesIndex;for(;s<i.length;){const r=i[s];if(!a.has(r.resolvedPath))return e.affectedFilesIndex=s,YH(e,r.resolvedPath,AH(e.compilerOptions)),WH(e,r,t,n),r;s++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,null==(r=e.oldSignatures)||r.clear(),null==(o=e.oldExportedModulesMap)||o.clear(),e.affectedFiles=void 0}const a=e.changedFilesSet.keys().next();if(a.done)return;const s=In.checkDefined(e.program);if(ob(s.getCompilerOptions()))return In.assert(!e.semanticDiagnosticsPerFile),s;e.affectedFiles=yH.getFilesAffectedByWithOldState(e,s,a.value,t,n),e.currentChangedFilePath=a.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function FH(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=In.checkDefined(e.program),n=t.getCompilerOptions();x(t.getSourceFiles(),(r=>t.isSourceFileDefaultLibrary(r)&&!Cx(r,n,t)&&BH(e,r.resolvedPath)))}}function WH(e,t,n,r){if(BH(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles)return FH(e),void yH.updateShapeSignature(e,In.checkDefined(e.program),t,n,r);e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(e,t,n,r){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath))return;if(!GH(e,t.resolvedPath))return;if(Kp(e.compilerOptions)){const o=new Map;o.set(t.resolvedPath,!0);const i=yH.getReferencedByPaths(e,t.resolvedPath);for(;i.length>0;){const t=i.pop();if(!o.has(t)){if(o.set(t,!0),jH(e,t,n,r))return;if(zH(e,t,n,r),GH(e,t)){const n=In.checkDefined(e.program).getSourceFileByPath(t);i.push(...yH.getReferencedByPaths(e,n.resolvedPath))}}}}const i=new Set;null==(o=e.exportedModulesMap.getKeys(t.resolvedPath))||o.forEach((t=>{if(jH(e,t,n,r))return!0;const o=e.referencedMap.getKeys(t);return o&&zf(o,(t=>VH(e,t,i,n,r)))}))}(e,t,n,r)}function zH(e,t,n,r){if(BH(e,t),!e.changedFilesSet.has(t)){const o=In.checkDefined(e.program),i=o.getSourceFileByPath(t);i&&(yH.updateShapeSignature(e,o,i,n,r,!0),Qp(e.compilerOptions)&&YH(e,t,e.compilerOptions.declarationMap?24:8))}}function BH(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function GH(e,t){const n=In.checkDefined(e.oldSignatures).get(t)||void 0;return In.checkDefined(e.fileInfos.get(t)).signature!==n}function jH(e,t,n,r){var o;return!!(null==(o=e.fileInfos.get(t))?void 0:o.affectsGlobalScope)&&(yH.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach((t=>zH(e,t.resolvedPath,n,r))),FH(e),!0)}function VH(e,t,n,r,o){var i,a;if(re(n,t)){if(jH(e,t,r,o))return!0;zH(e,t,r,o),null==(i=e.exportedModulesMap.getKeys(t))||i.forEach((t=>VH(e,t,n,r,o))),null==(a=e.referencedMap.getKeys(t))||a.forEach((t=>!n.has(t)&&zH(e,t,r,o)))}}function UH(e,t,n){return ce(function(e,t,n){const r=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const t=e.semanticDiagnosticsPerFile.get(r);if(t)return uH(t,e.compilerOptions)}const o=In.checkDefined(e.program).getBindAndCheckDiagnostics(t,n);e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(r,o);return uH(o,e.compilerOptions)}(e,t,n),In.checkDefined(e.program).getProgramDiagnostics(t))}function HH(e){return!!ob(e.options||{})}function KH(e,t,n,r,i,a){let s,l,c;return void 0===e?(In.assert(void 0===t),s=n,c=r,In.assert(!!c),l=c.getProgram()):mt(e)?(c=r,l=cH({rootNames:e,options:t,host:n,oldProgram:c&&c.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:a}),s=n):(l=e,s=t,c=n,i=r),{host:s,newProgram:l,oldProgram:c,configFileParsingDiagnostics:i||o}}function qH(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function JH(e,t,n,r,o){var i;let a;return n=qH(n,o),(null==(i=null==o?void 0:o.diagnostics)?void 0:i.length)&&(n+=o.diagnostics.map((n=>`${function(n){if(n.file.resolvedPath===t.resolvedPath)return`(${n.start},${n.length})`;void 0===a&&(a=ra(t.resolvedPath));return`${ba(Na(a,n.file.resolvedPath,e.getCanonicalFileName))}(${n.start},${n.length})`}(n)}${Do[n.category]}${n.code}: ${s(n.messageText)}`)).join("\n")),(r.createHash??yi)(n);function s(e){return ht(e)?e:void 0===e?"":e.next?e.messageText+e.next.map(s).join("\n"):e.messageText}}function XH(e,t,n){return(t.createHash??yi)(qH(e,n))}function $H(e,{newProgram:t,host:n,oldProgram:r,configFileParsingDiagnostics:i}){let a=r&&r.getState();if(a&&t===a.program&&i===t.getConfigFileParsingDiagnostics())return t=void 0,a=void 0,r;const s=RH(t,a);t.getBuildInfo=e=>function(e,t){var n,r,i;const a=In.checkDefined(e.program).getCurrentDirectory(),s=ra(ma(SV(e.compilerOptions),a)),l=e.latestChangedDtsFile?S(e.latestChangedDtsFile):void 0,c=[],d=new Map,u=[];if(ob(e.compilerOptions)){const o=Ye(e.fileInfos.entries(),(([e,t])=>(R(e,A(e)),t.impliedFormat?{version:t.version,impliedFormat:t.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:t.version))),i={fileNames:c,fileInfos:o,root:u,options:C(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:l,pendingEmit:e.programEmitPending?e.programEmitPending!==AH(e.compilerOptions)&&e.programEmitPending:void 0},{js:a,dts:s,commonSourceDirectory:d,sourceFiles:p}=t;return e.bundle=t={commonSourceDirectory:d,sourceFiles:p,js:a||(e.compilerOptions.emitDeclarationOnly||null==(n=e.bundle)?void 0:n.js),dts:s||(Qp(e.compilerOptions)?null==(r=e.bundle)?void 0:r.dts:void 0)},GV(i,t)}let p,f,m;const _=Ye(e.fileInfos.entries(),(([t,n])=>{var r,i;const a=A(t);R(t,a),In.assert(c[a-1]===T(t));const s=null==(r=e.oldSignatures)?void 0:r.get(t),l=void 0!==s?s||void 0:n.signature;if(e.compilerOptions.composite){const n=e.program.getSourceFileByPath(t);if(!x_(n)&&sb(n,e.program)){const n=null==(i=e.emitSignatures)?void 0:i.get(t);n!==l&&(m||(m=[])).push(void 0===n?a:[a,ht(n)||n[0]!==l?n:o])}}return n.version===l?n.affectsGlobalScope||n.impliedFormat?{version:n.version,signature:void 0,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:n.version:void 0!==l?void 0===s?n:{version:n.version,signature:l,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:{version:n.version,signature:!1,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}}));let h,g;e.referencedMap&&(h=Ye(e.referencedMap.keys()).sort(jt).map((t=>[A(t),I(e.referencedMap.getValues(t))]))),e.exportedModulesMap&&(g=Z(Ye(e.exportedModulesMap.keys()).sort(jt),(t=>{var n;const r=null==(n=e.oldExportedModulesMap)?void 0:n.get(t);return void 0===r?[A(t),I(e.exportedModulesMap.getValues(t))]:r?[A(t),I(r)]:void 0})));const y=N(e.semanticDiagnosticsPerFile);let v,b;if(null==(i=e.affectedFilesPendingEmit)?void 0:i.size){const t=AH(e.compilerOptions),n=new Set;for(const r of Ye(e.affectedFilesPendingEmit.keys()).sort(jt))if(re(n,r)){const n=e.program.getSourceFileByPath(r);if(!n||!sb(n,e.program))continue;const o=A(r),i=e.affectedFilesPendingEmit.get(r);(v||(v=[])).push(i===t?o:8===i?[o]:[o,i])}}if(e.changedFilesSet.size)for(const o of Ye(e.changedFilesSet.keys()).sort(jt))(b||(b=[])).push(A(o));const E=N(e.emitDiagnosticsPerFile);return GV({fileNames:c,fileInfos:_,root:u,options:C(e.compilerOptions),fileIdsList:p,referencedMap:h,exportedModulesMap:g,semanticDiagnosticsPerFile:y,emitDiagnosticsPerFile:E,affectedFilesPendingEmit:v,changeFileSet:b,emitSignatures:m,latestChangedDtsFile:l},t);function S(e){return T(ma(e,a))}function T(t){return ba(Na(s,t,e.program.getCanonicalFileName))}function A(e){let t=d.get(e);return void 0===t&&(c.push(T(e)),d.set(e,t=c.length)),t}function I(e){const t=Ye(e.keys(),A).sort(Ft),n=t.join();let r=null==f?void 0:f.get(n);return void 0===r&&((p||(p=[])).push(t),(f||(f=new Map)).set(n,r=p.length)),r}function R(t,n){const r=e.program.getSourceFile(t);if(!e.program.getFileIncludeReasons().get(r.path).some((e=>0===e.kind)))return;if(!u.length)return u.push(n);const o=u[u.length-1],i=mt(o);if(i&&o[1]===n-1)return o[1]=n;if(i||1===u.length||o!==n-1)return u.push(n);const a=u[u.length-2];return gt(a)&&a===o-1?(u[u.length-2]=[a,n],u.length=u.length-1):u.push(n)}function C(e){let t;const{optionsNameMap:n}=mw();for(const r of qe(e).sort(jt)){const o=n.get(r.toLowerCase());(null==o?void 0:o.affectsBuildInfo)&&((t||(t={}))[r]=D(o,e[r]))}return t}function D(e,t){if(e)if(In.assert("listOrElement"!==e.type),"list"===e.type){const n=t;if(e.element.isFilePath&&n.length)return n.map(S)}else if(e.isFilePath)return S(t);return t}function N(e){let t;if(e)for(const n of Ye(e.keys()).sort(jt)){const r=e.get(n);(t||(t=[])).push(r.length?[A(n),M(r)]:A(n))}return t}function M(e){return In.assert(!!e.length),e.map((e=>{const t=L(e);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;const{relatedInformation:n}=e;return t.relatedInformation=n?n.length?n.map((e=>L(e))):[]:void 0,t}))}function L(e){const{file:t}=e;return{...e,file:t?T(t.resolvedPath):void 0,messageText:ht(e.messageText)?e.messageText:k(e.messageText)}}function k(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:P(e.next)};const t=P(e.next);return t===e.next?e:{...e,next:t}}function P(e){return e&&x(e,((t,n)=>{const r=k(t);if(t===r)return;const o=n>0?e.slice(0,n-1):[];o.push(r);for(let i=n+1;i<e.length;i++)o.push(k(e[i]));return o}))||e}}(s,e),t=void 0,r=void 0,a=void 0;const l=()=>s,c=rK(l,i);return c.getState=l,c.saveEmitState=()=>function(e){const t=ob(e.compilerOptions);return In.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)}}(s),c.restoreEmitState=e=>function(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,e.buildInfoEmitPending=t.buildInfoEmitPending,e.emitDiagnosticsPerFile=t.emitDiagnosticsPerFile,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}(s,e),c.hasChangedEmitSignature=()=>!!s.hasChangedEmitSignature,c.getAllDependencies=e=>yH.getAllDependencies(s,In.checkDefined(s.program),e),c.getSemanticDiagnostics=function(e,t){wH(s,e);if(ob(In.checkDefined(s.program).getCompilerOptions()))return In.assert(!s.semanticDiagnosticsPerFile),In.checkDefined(s.program).getSemanticDiagnostics(e,t);if(e)return UH(s,e,t);for(;p(t););let n;for(const r of In.checkDefined(s.program).getSourceFiles())n=xe(n,UH(s,r,t));return n||o},c.emit=function(t,n,r,i,a){1===e&&wH(s,t);const l=dH(c,t,n,r);if(l)return l;if(!t){if(1===e){let e,t,s=[],l=!1,c=[];for(;t=d(n,r,i,a);)l=l||t.result.emitSkipped,e=xe(e,t.result.diagnostics),c=xe(c,t.result.emittedFiles),s=xe(s,t.result.sourceMaps);return{emitSkipped:l,diagnostics:e||o,emittedFiles:c,sourceMaps:s}}!function(e,t){var n;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size)t?e.affectedFilesPendingEmit.forEach(((t,n)=>{const r=7&t;r?e.affectedFilesPendingEmit.set(n,r):e.affectedFilesPendingEmit.delete(n)})):e.affectedFilesPendingEmit=void 0}(s,i)}return In.checkDefined(s.program).emit(t,u(n,a),r,i,a)},c.releaseProgram=()=>function(e){yH.releaseCache(e),e.program=void 0}(s),0===e?c.getSemanticDiagnosticsOfNextAffectedFile=p:1===e?(c.getSemanticDiagnosticsOfNextAffectedFile=p,c.emitNextAffectedFile=d,c.emitBuildInfo=function(e,t){if(s.buildInfoEmitPending){const r=In.checkDefined(s.program).emitBuildInfo(e||lt(n,n.writeFile),t);return s.buildInfoEmitPending=!1,r}return EU}):Rt(),c;function d(e,t,r,o){var i,a,l;let c=OH(s,t,n);const d=AH(s.compilerOptions);let p,f=r?24&d:d;if(!c)if(ob(s.compilerOptions)){if(!s.programEmitPending)return;if(f=s.programEmitPending,r&&(f&=24),!f)return;c=s.program}else{const o=function(e,t){var n;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size)return Wf(e.affectedFilesPendingEmit,((n,r)=>{var o;const i=e.program.getSourceFileByPath(r);if(!i||!sb(i,e.program))return void e.affectedFilesPendingEmit.delete(r);let a=IH(n,null==(o=e.seenEmittedFiles)?void 0:o.get(i.resolvedPath));return t&&(a&=24),a?{affectedFile:i,emitKind:a}:void 0}))}(s,r);if(!o){const r=function(e){var t;if(null==(t=e.emitDiagnosticsPerFile)?void 0:t.size)return Wf(e.emitDiagnosticsPerFile,((t,n)=>{var r;const o=e.program.getSourceFileByPath(n);if(!o||!sb(o,e.program))return void e.emitDiagnosticsPerFile.delete(n);const i=(null==(r=e.seenEmittedFiles)?void 0:r.get(o.resolvedPath))||0;return 24&i?void 0:{affectedFile:o,diagnostics:t,seenKind:i}}))}(s);if(r)return(s.seenEmittedFiles??(s.seenEmittedFiles=new Map)).set(r.affectedFile.resolvedPath,24|r.seenKind),{result:{emitSkipped:!0,diagnostics:r.diagnostics},affected:r.affectedFile};if(!s.buildInfoEmitPending)return;const o=s.program,i=o.emitBuildInfo(e||lt(n,n.writeFile),t);return s.buildInfoEmitPending=!1,{result:i,affected:o}}({affectedFile:c,emitKind:f}=o)}7&f&&(p=0),24&f&&(p=void 0===p?1:void 0),c===s.program&&(s.programEmitPending=s.changedFilesSet.size?IH(d,f):s.programEmitPending?IH(s.programEmitPending,f):void 0);const m=s.program.emit(c===s.program?void 0:c,u(e,o),t,p,o);if(c!==s.program){const e=c;s.seenAffectedFiles.add(e.resolvedPath),void 0!==s.affectedFilesIndex&&s.affectedFilesIndex++,s.buildInfoEmitPending=!0;const t=(null==(i=s.seenEmittedFiles)?void 0:i.get(e.resolvedPath))||0;(s.seenEmittedFiles??(s.seenEmittedFiles=new Map)).set(e.resolvedPath,f|t);const n=IH((null==(a=s.affectedFilesPendingEmit)?void 0:a.get(e.resolvedPath))||d,f|t);n?(s.affectedFilesPendingEmit??(s.affectedFilesPendingEmit=new Map)).set(e.resolvedPath,n):null==(l=s.affectedFilesPendingEmit)||l.delete(e.resolvedPath),m.diagnostics.length&&(s.emitDiagnosticsPerFile??(s.emitDiagnosticsPerFile=new Map)).set(e.resolvedPath,m.diagnostics)}else s.changedFilesSet.clear();return{result:m,affected:c}}function u(e,t){return Qp(s.compilerOptions)?(r,o,i,a,l,c)=>{var d,u,p,f;if(_P(r))if(ob(s.compilerOptions)){if(s.compilerOptions.composite){const e=m(s.outSignature,void 0);if(!e)return;s.outSignature=e}}else{let e;if(In.assert(1===(null==l?void 0:l.length)),!t){const t=l[0],r=s.fileInfos.get(t.resolvedPath);if(r.signature===t.version){const i=JH(s.program,t,o,n,c);if((null==(d=null==c?void 0:c.diagnostics)?void 0:d.length)||(e=i),i!==t.version)if(n.storeFilesChangingSignatureDuringEmit&&(s.filesChangingSignature??(s.filesChangingSignature=new Set)).add(t.resolvedPath),s.exportedModulesMap&&yH.updateExportedModules(s,t,t.exportedModulesFromDeclarationEmit),s.affectedFiles){void 0===(null==(u=s.oldSignatures)?void 0:u.get(t.resolvedPath))&&(s.oldSignatures??(s.oldSignatures=new Map)).set(t.resolvedPath,r.signature||!1),r.signature=i}else r.signature=i,null==(p=s.oldExportedModulesMap)||p.clear()}}if(s.compilerOptions.composite){const t=l[0].resolvedPath;if(e=m(null==(f=s.emitSignatures)?void 0:f.get(t),e),!e)return;(s.emitSignatures??(s.emitSignatures=new Map)).set(t,e)}}function m(e,t){const i=!e||ht(e)?e:e[0];if(t??(t=XH(o,n,c)),t===i){if(e===i)return;c?c.differsOnlyInMap=!0:c={differsOnlyInMap:!0}}else s.hasChangedEmitSignature=!0,s.latestChangedDtsFile=r;return t}e?e(r,o,i,a,l,c):n.writeFile?n.writeFile(r,o,i,a,l,c):s.program.writeFile(r,o,i,a,l,c)}:e||lt(n,n.writeFile)}function p(e,t){for(;;){const r=OH(s,e,n);let o;if(!r)return;if(r!==s.program){const n=r;if(t&&t(n)||(o=UH(s,n,e)),s.seenAffectedFiles.add(n.resolvedPath),s.affectedFilesIndex++,s.buildInfoEmitPending=!0,!o)continue}else o=s.program.getSemanticDiagnostics(void 0,e),s.changedFilesSet.clear(),s.programEmitPending=AH(s.compilerOptions);return{result:o,affected:r}}}}function YH(e,t,n){var r,o;const i=(null==(r=e.affectedFilesPendingEmit)?void 0:r.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,i|n),null==(o=e.emitDiagnosticsPerFile)||o.delete(t)}function QH(e){return ht(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:ht(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function ZH(e,t){return gt(e)?t:e[1]||8}function eK(e,t){return e||AH(t||{})}function tK(e,t,n){var r,i,a,s;const l=e.program,c=ra(ma(t,n.getCurrentDirectory())),d=an(n.useCaseSensitiveFileNames());let u;const p=null==(r=l.fileNames)?void 0:r.map((function(e){return ga(e,c,d)}));let f;const m=l.latestChangedDtsFile?_(l.latestChangedDtsFile):void 0;if(HH(l)){const t=new Map;l.fileInfos.forEach(((e,n)=>{const r=h(n+1);t.set(r,ht(e)?{version:e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:e)})),u={fileInfos:t,compilerOptions:l.options?eO(l.options,_):{},latestChangedDtsFile:m,outSignature:l.outSignature,programEmitPending:void 0===l.pendingEmit?void 0:eK(l.pendingEmit,l.options),bundle:e.bundle}}else{f=null==(i=l.fileIdsList)?void 0:i.map((e=>new Set(e.map(h))));const e=new Map,t=(null==(a=l.options)?void 0:a.composite)&&!ob(l.options)?new Map:void 0;l.fileInfos.forEach(((n,r)=>{const o=h(r+1),i=QH(n);e.set(o,i),t&&i.signature&&t.set(o,i.signature)})),null==(s=l.emitSignatures)||s.forEach((e=>{if(gt(e))t.delete(h(e));else{const n=h(e[0]);t.set(n,ht(e[1])||e[1].length?e[1]:[t.get(n)])}}));const n=l.affectedFilesPendingEmit?AH(l.options||{}):void 0;u={fileInfos:e,compilerOptions:l.options?eO(l.options,_):{},referencedMap:g(l.referencedMap),exportedModulesMap:g(l.exportedModulesMap),semanticDiagnosticsPerFile:y(l.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:y(l.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:l.affectedFilesPendingEmit&&et(l.affectedFilesPendingEmit,(e=>h(gt(e)?e:e[0])),(e=>ZH(e,n))),changedFilesSet:new Set(U(l.changeFileSet,h)),latestChangedDtsFile:m,emitSignatures:(null==t?void 0:t.size)?t:void 0}}return{getState:()=>u,saveEmitState:bt,restoreEmitState:bt,getProgram:Rt,getProgramOrUndefined:Tt,releaseProgram:bt,getCompilerOptions:()=>u.compilerOptions,getSourceFile:Rt,getSourceFiles:Rt,getOptionsDiagnostics:Rt,getGlobalDiagnostics:Rt,getConfigFileParsingDiagnostics:Rt,getSyntacticDiagnostics:Rt,getDeclarationDiagnostics:Rt,getSemanticDiagnostics:Rt,emit:Rt,getAllDependencies:Rt,getCurrentDirectory:Rt,emitNextAffectedFile:Rt,getSemanticDiagnosticsOfNextAffectedFile:Rt,emitBuildInfo:Rt,close:bt,hasChangedEmitSignature:Et};function _(e){return ma(e,c)}function h(e){return p[e-1]}function g(e){if(!e)return;const t=yH.createManyToManyPathMap();return e.forEach((([e,n])=>t.set(h(e),f[n-1]))),t}function y(e){return e&&et(e,(e=>h(gt(e)?e:e[0])),(e=>gt(e)?o:e[1]))}}function nK(e,t,n){const r=ra(ma(t,n.getCurrentDirectory())),o=an(n.useCaseSensitiveFileNames()),i=new Map;let a=0;const s=[];return e.fileInfos.forEach(((t,n)=>{const l=ga(e.fileNames[n],r,o),c=ht(t)?t:t.version;if(i.set(l,c),a<e.root.length){const t=e.root[a],r=n+1;mt(t)?t[0]<=r&&r<=t[1]&&(s.push(l),t[1]===r&&a++):t===r&&(s.push(l),a++)}})),{fileInfos:i,roots:s}}function rK(e,t){return{getState:Rt,saveEmitState:bt,restoreEmitState:bt,getProgram:n,getProgramOrUndefined:()=>e().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:e=>n().getSourceFile(e),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:e=>n().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>n().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(e,t)=>n().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>n().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>n().getSemanticDiagnostics(e,t),emit:(e,t,r,o,i)=>n().emit(e,t,r,o,i),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:Rt,getCurrentDirectory:()=>n().getCurrentDirectory(),close:bt};function n(){return In.checkDefined(e().program)}}var oK=b({"src/compiler/builder.ts"(){JJ(),SH=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(SH||{}),TH=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(TH||{})}});function iK(e,t,n,r,o,i){return $H(0,KH(e,t,n,r,o,i))}function aK(e,t,n,r,o,i){return $H(1,KH(e,t,n,r,o,i))}function sK(e,t,n,r,o,i){const{newProgram:a,configFileParsingDiagnostics:s}=KH(e,t,n,r,o,i);return rK((()=>({program:a,compilerOptions:a.getCompilerOptions()})),s)}var lK=b({"src/compiler/builderPublic.ts"(){JJ()}});function cK(e){return Yt(e,"/node_modules/.staging")?Qt(e,"/.staging"):se(fi,(t=>e.includes(t)))?void 0:e}function dK(e,t){if(t<=1)return 1;let n=1,r=0===e[0].search(/[a-zA-Z]:/);if(e[0]!==Fi&&!r&&0===e[1].search(/[a-zA-Z]\$$/)){if(2===t)return 2;n=2,r=!0}return r&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function uK(e,t){if(void 0===t&&(t=e.length),t<=2)return!1;return t>dK(e,t)+1}function pK(e){return mK(ra(e))}function fK(e,t){if(t.length<t.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function mK(e){return uK(sa(e))}function _K(e){return mK(e)}function hK(e,t,n,r,o,i){const a=sa(t),s=sa(e=Hi(e)?_a(e):ma(e,i())),l=dK(a,a.length);if(a.length<=l+1)return;const c=a.indexOf("node_modules");return-1!==c&&c+1<=l+1?void 0:fK(o,a)?a.length>o.length+1?yK(s,a,Math.max(o.length+1,l+1)):{dir:n,dirPath:r,nonRecursive:!0}:gK(s,a,a.length-1,l,c,o)}function gK(e,t,n,r,o,i){if(-1!==o)return yK(e,t,o+1);let a=!0,s=n;for(let l=0;l<n;l++)if(t[l]!==i[l]){a=!1,s=Math.max(l+1,r+1);break}return yK(e,t,s,a)}function yK(e,t,n,r){return{dir:la(e,n),dirPath:la(t,n),nonRecursive:r}}function vK(e,t,n,r,o,i){const a=sa(t);if(fK(r,a))return n;const s=gK(sa(e=Hi(e)?_a(e):ma(e,o())),a,a.length,dK(a,a.length),a.indexOf("node_modules"),r);return s&&i(s.dirPath)?s.dirPath:void 0}function bK(e,t){const n=ma(e,t());return Ki(n)?n:ya(n)}function EK(e){return e.split(Fi).length-(Zi(e)?1:0)}function SK(e){var t;return(null==(t=e.getCompilerHost)?void 0:t.call(e))||e}function TK(e,t,n,r,o){return{nameAndMode:gU,resolve:(i,a)=>function(e,t,n,r,o,i,a){const s=SK(e),l=wF(n,r,o,s,t,i,a);if(!e.getGlobalCache)return l;const c=e.getGlobalCache();if(void 0!==c&&!Xs(n)&&(!l.resolvedModule||!hx(l.resolvedModule.extension))){const{resolvedModule:r,failedLookupLocations:i,affectingLocations:a,resolutionDiagnostics:d}=MW(In.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,o,s,c,t);if(r)return l.resolvedModule=r,l.failedLookupLocations=oF(l.failedLookupLocations,i),l.affectingLocations=oF(l.affectingLocations,a),l.resolutionDiagnostics=oF(l.resolutionDiagnostics,d),l}return l}(r,o,i,e,n,t,a)}}function xK(e,t,n){let r,i,a;const s=ct(),l=new Set,c=new Set,d=new Map,u=new Map;let p,f,m,_,h,g=!1,y=!1;const v=Ct((()=>e.getCurrentDirectory())),b=e.getCachedDirectoryStructureHost(),E=new Map,S=NF(v(),e.getCanonicalFileName,e.getCompilationSettings()),T=new Map,x=MF(v(),e.getCanonicalFileName,e.getCompilationSettings(),S.getPackageJsonInfoCache(),S.optionsToRedirectsKey),A=new Map,I=NF(v(),e.getCanonicalFileName,LF(e.getCompilationSettings()),S.getPackageJsonInfoCache()),C=new Map,D=new Map,N=bK(t,v),M=e.toPath(N),L=sa(M),k=new Map;return{rootDirForResolution:t,resolvedModuleNames:E,resolvedTypeReferenceDirectives:T,resolvedLibraries:A,resolvedFileToResolution:d,resolutionsWithFailedLookups:l,resolutionsWithOnlyAffectingLocations:c,directoryWatchesOfFailedLookups:C,fileWatchesOfAffectingLocations:D,watchFailedLookupLocationsOfExternalModuleResolutions:G,getModuleResolutionCache:()=>S,startRecordingFilesWithChangedResolutions:function(){r=[]},finishRecordingFilesWithChangedResolutions:function(){const e=r;return r=void 0,e},startCachingPerDirectoryResolution:function(){S.isReadonly=void 0,x.isReadonly=void 0,I.isReadonly=void 0,S.getPackageJsonInfoCache().isReadonly=void 0,S.clearAllExceptPackageJsonInfoCache(),x.clearAllExceptPackageJsonInfoCache(),I.clearAllExceptPackageJsonInfoCache(),s.forEach(q),s.clear()},finishCachingPerDirectoryResolution:function(t,n){a=void 0,y=!1,s.forEach(q),s.clear(),t!==n&&(!function(t){A.forEach(((n,r)=>{var o;(null==(o=null==t?void 0:t.resolvedLibReferences)?void 0:o.has(r))||($(n,e.toPath(ZU(e.getCompilationSettings(),v(),r)),P),A.delete(r))}))}(t),null==t||t.getSourceFiles().forEach((e=>{var t;const n=T_(e)?(null==(t=e.packageJsonLocations)?void 0:t.length)??0:0,r=u.get(e.path)??o;for(let o=r.length;o<n;o++)H(e.packageJsonLocations[o],!1);if(r.length>n)for(let o=n;o<r.length;o++)D.get(r[o]).files--;n?u.set(e.path,e.packageJsonLocations):u.delete(e.path)})),u.forEach(((e,n)=>{(null==t?void 0:t.getSourceFileByPath(n))||(e.forEach((e=>D.get(e).files--)),u.delete(n))})));C.forEach(F),D.forEach(W),g=!1,S.isReadonly=!0,x.isReadonly=!0,I.isReadonly=!0,S.getPackageJsonInfoCache().isReadonly=!0},resolveModuleNameLiterals:function(t,r,o,i,a,s){return z({entries:t,containingFile:r,containingSourceFile:a,redirectedReference:o,options:i,reusedNames:s,perFileCache:E,loader:TK(r,o,i,e,S),getResolutionWithResolvedFileName:P,shouldRetryResolution:e=>!e.resolvedModule||!gx(e.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})},resolveTypeReferenceDirectiveReferences:function(t,n,r,o,i,a){return z({entries:t,containingFile:n,containingSourceFile:i,redirectedReference:r,options:o,reusedNames:a,perFileCache:T,loader:XU(n,r,o,SK(e),x),getResolutionWithResolvedFileName:w,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,deferWatchingNonRelativeResolution:!1})},resolveLibrary:function(t,n,r,o){const i=SK(e);let a=null==A?void 0:A.get(o);if(!a||a.isInvalidated){const s=a;a=kF(t,n,r,i,I);const l=e.toPath(n);G(t,a,l,P,!1),A.set(o,a),s&&$(s,l,P)}else if(XO(r,i)){const e=P(a);JO(i,(null==e?void 0:e.resolvedFileName)?e.packageId?Oa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Oa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Oa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&qf(e.packageId))}return a},resolveSingleModuleNameWithoutWatching:function(t,n){var r,o;const i=e.toPath(n),a=E.get(i),s=null==a?void 0:a.get(t,void 0);if(s&&!s.isInvalidated)return s;const l=null==(r=e.beforeResolveSingleModuleNameWithoutWatching)?void 0:r.call(e,S),c=SK(e),d=wF(t,n,e.getCompilationSettings(),c,S);return null==(o=e.afterResolveSingleModuleNameWithoutWatching)||o.call(e,S,t,n,d,l),d},removeResolutionsFromProjectReferenceRedirects:function(t){if(!Yi(t,".json"))return;const n=e.getCurrentProgram();if(!n)return;const r=n.getResolvedProjectReferenceByPath(t);if(!r)return;r.commandLine.fileNames.forEach((t=>ee(e.toPath(t))))},removeResolutionsOfFile:ee,hasChangedAutomaticTypeDirectiveNames:()=>g,invalidateResolutionOfFile:function(t){ee(t);const n=g;te(d.get(t),St)&&g&&!n&&e.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:oe,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){In.assert(a===e||void 0===a),a=e},createHasInvalidatedResolutions:function(e,t){oe();const n=i;return i=void 0,{hasInvalidatedResolutions:t=>e(t)||y||!!(null==n?void 0:n.has(t))||O(t),hasInvalidatedLibResolutions:e=>{var n;return t(e)||!!(null==(n=null==A?void 0:A.get(e))?void 0:n.isInvalidated)}}},isFileWithInvalidatedNonRelativeUnresolvedImports:O,updateTypeRootsWatch:function(){const t=e.getCompilationSettings();if(t.types)return void ce();const n=dF(t,{getCurrentDirectory:v});n?xS(k,new Set(n),{createNewValue:de,onDeleteValue:fS}):ce()},closeTypeRootsWatch:ce,clear:function(){SS(C,lU),SS(D,lU),s.clear(),ce(),E.clear(),T.clear(),d.clear(),l.clear(),c.clear(),m=void 0,_=void 0,h=void 0,f=void 0,p=void 0,y=!1,S.clear(),x.clear(),S.update(e.getCompilationSettings()),x.update(e.getCompilationSettings()),I.clear(),u.clear(),A.clear(),g=!1},onChangesAffectModuleResolution:function(){y=!0,S.clearAllExceptPackageJsonInfoCache(),x.clearAllExceptPackageJsonInfoCache(),S.update(e.getCompilationSettings()),x.update(e.getCompilationSettings())}};function P(e){return e.resolvedModule}function w(e){return e.resolvedTypeReferenceDirective}function O(e){if(!a)return!1;const t=a.get(e);return!!t&&!!t.length}function F(e,t){0===e.refCount&&(C.delete(t),e.watcher.close())}function W(e,t){var n;0!==e.files||0!==e.resolutions||(null==(n=e.symlinks)?void 0:n.size)||(D.delete(t),e.watcher.close())}function z({entries:t,containingFile:n,containingSourceFile:o,redirectedReference:i,options:a,perFileCache:s,reusedNames:l,loader:c,getResolutionWithResolvedFileName:d,deferWatchingNonRelativeResolution:u,shouldRetryResolution:p,logChanges:f}){const m=e.toPath(n),_=s.get(m)||s.set(m,AF()).get(m),h=[],g=f&&O(m),v=e.getCurrentProgram(),b=v&&v.getResolvedProjectReferenceToRedirect(n),S=b?!i||i.sourceFile.path!==b.sourceFile.path:!!i,T=AF();for(const A of t){const t=c.nameAndMode.getName(A),l=c.nameAndMode.getMode(A,o,(null==i?void 0:i.commandLine.options)||a);let v=_.get(t,l);if(!T.has(t,l)&&(y||S||!v||v.isInvalidated||g&&!Xs(t)&&p(v))){const n=v;v=c.resolve(t,l),e.onDiscoveredSymlink&&AK(v)&&e.onDiscoveredSymlink(),_.set(t,l,v),v!==n&&(G(t,v,m,d,u),n&&$(n,m,d)),f&&r&&!x(n,v)&&(r.push(m),f=!1)}else{const r=SK(e);if(XO(a,r)&&!T.has(t,l)){const e=d(v);JO(r,s===E?(null==e?void 0:e.resolvedFileName)?e.packageId?Oa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Oa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Oa.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==e?void 0:e.resolvedFileName)?e.packageId?Oa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Oa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Oa.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&qf(e.packageId))}}In.assert(void 0!==v&&!v.isInvalidated),T.set(t,l,!0),h.push(v)}return null==l||l.forEach((e=>T.set(c.nameAndMode.getName(e),c.nameAndMode.getMode(e,o,(null==i?void 0:i.commandLine.options)||a),!0))),_.size()!==T.size()&&_.forEach(((e,t,n)=>{T.has(t,n)||($(e,m,d),_.delete(t,n))})),h;function x(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=d(e),r=d(t);return n===r||!(!n||!r)&&n.resolvedFileName===r.resolvedFileName}}function B(e){return Yt(e,"/node_modules/@types")}function G(t,n,r,o,i){var a;if(n.refCount)n.refCount++,In.assertIsDefined(n.files);else{n.refCount=1,In.assert(!(null==(a=n.files)?void 0:a.size)),!i||Xs(t)?V(n):s.add(t,n);const r=o(n);if(r&&r.resolvedFileName){const t=e.toPath(r.resolvedFileName);let o=d.get(t);o||d.set(t,o=new Set),o.add(n)}}(n.files??(n.files=new Set)).add(r)}function j(t,n){const r=hK(t,e.toPath(t),N,M,L,v);if(r){const{dir:e,dirPath:t,nonRecursive:o}=r;t===M?(In.assert(o),n=!0):J(e,t,o)}return n}function V(e){In.assert(!!e.refCount);const{failedLookupLocations:t,affectingLocations:n,alternateResult:r}=e;if(!(null==t?void 0:t.length)&&!(null==n?void 0:n.length)&&!r)return;((null==t?void 0:t.length)||r)&&l.add(e);let o=!1;if(t)for(const i of t)o=j(i,o);r&&(o=j(r,o)),o&&J(N,M,!0),U(e,!(null==t?void 0:t.length)&&!r)}function U(e,t){In.assert(!!e.refCount);const{affectingLocations:n}=e;if(null==n?void 0:n.length){t&&c.add(e);for(const e of n)H(e,!0)}}function H(t,n){const r=D.get(t);if(r)return void(n?r.resolutions++:r.files++);let o,i=t,a=!1;e.realpath&&(i=e.realpath(t),t!==i&&(a=!0,o=D.get(i)));const s=n?1:0,l=n?0:1;if(!a||!o){const t={watcher:_K(e.toPath(i))?e.watchAffectingFileLocation(i,((t,n)=>{null==b||b.addOrDeleteFile(t,e.toPath(i),n),K(i,S.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()})):CK,resolutions:a?0:s,files:a?0:l,symlinks:void 0};D.set(i,t),a&&(o=t)}if(a){In.assert(!!o);const e={watcher:{close:()=>{var e;const n=D.get(i);!(null==(e=null==n?void 0:n.symlinks)?void 0:e.delete(t))||n.symlinks.size||n.resolutions||n.files||(D.delete(i),n.watcher.close())}},resolutions:s,files:l,symlinks:void 0};D.set(t,e),(o.symlinks??(o.symlinks=new Set)).add(t)}}function K(t,n){var r;const o=D.get(t);(null==o?void 0:o.resolutions)&&(f??(f=new Set)).add(t),(null==o?void 0:o.files)&&(p??(p=new Set)).add(t),null==(r=null==o?void 0:o.symlinks)||r.forEach((e=>K(e,n))),null==n||n.delete(e.toPath(t))}function q(t,n){const r=e.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(n)?t.forEach((e=>U(e,!0))):t.forEach(V)}function J(e,t,n){const r=C.get(t);r?(In.assert(!!n===!!r.nonRecursive),r.refCount++):C.set(t,{watcher:Q(e,t,n),refCount:1,nonRecursive:n})}function X(t,n,r){const o=hK(t,e.toPath(t),N,M,L,v);if(o){const{dirPath:e}=o;e===M?n=!0:Y(e,r)}return n}function $(t,n,r,o){if(In.checkDefined(t.files).delete(n),t.refCount--,t.refCount)return;const i=r(t);if(i&&i.resolvedFileName){const n=e.toPath(i.resolvedFileName),r=d.get(n);(null==r?void 0:r.delete(t))&&!r.size&&d.delete(n)}const{failedLookupLocations:a,affectingLocations:s,alternateResult:u}=t;if(l.delete(t)){let e=!1;if(a)for(const t of a)e=X(t,e,o);u&&(e=X(u,e,o)),e&&Y(M,o)}else(null==s?void 0:s.length)&&c.delete(t);if(s)for(const e of s){const t=D.get(e);t.resolutions--,o&&W(t,e)}}function Y(e,t){const n=C.get(e);n.refCount--,t&&F(n,e)}function Q(t,n,r){return e.watchDirectoryOfFailedLookupLocation(t,(t=>{const r=e.toPath(t);b&&b.addOrDeleteFileOrDirectory(t,r),ne(r,n===r)}),r?0:1)}function Z(e,t,n,r){const o=e.get(t);o&&(o.forEach((e=>$(e,t,n,r))),e.delete(t))}function ee(e,t){Z(E,e,P,t),Z(T,e,w,t)}function te(e,t){if(!e)return!1;let n=!1;return e.forEach((e=>{if(!e.isInvalidated&&t(e)){e.isInvalidated=n=!0;for(const t of In.checkDefined(e.files))(i??(i=new Set)).add(t),g=g||Yt(t,vU)}})),n}function ne(t,n){if(n)(h||(h=new Set)).add(t);else{const n=cK(t);if(!n)return!1;if(t=n,e.fileIsOpen(t))return!1;const r=ra(t);if(B(t)||wa(t)||B(r)||wa(r))(m||(m=new Set)).add(t),(_||(_=new Set)).add(t);else{if(iU(e.getCurrentProgram(),t))return!1;if(Yi(t,".map"))return!1;(m||(m=new Set)).add(t);const n=KF(t,!0);n&&(_||(_=new Set)).add(n)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function re(){const e=S.getPackageJsonInfoCache().getInternalMap();e&&(m||_||h)&&e.forEach(((t,n)=>ae(n)?e.delete(n):void 0))}function oe(){var t;if(y)return p=void 0,re(),(m||_||h||f)&&te(A,ie),m=void 0,_=void 0,h=void 0,f=void 0,!0;let n=!1;return p&&(null==(t=e.getCurrentProgram())||t.getSourceFiles().forEach((e=>{se(e.packageJsonLocations,(e=>p.has(e)))&&((i??(i=new Set)).add(e.path),n=!0)})),p=void 0),m||_||h||f?(n=te(l,ie)||n,re(),m=void 0,_=void 0,h=void 0,n=te(c,le)||n,f=void 0,n):n}function ie(t){var n;return!!le(t)||!!(m||_||h)&&((null==(n=t.failedLookupLocations)?void 0:n.some((t=>ae(e.toPath(t)))))||!!t.alternateResult&&ae(e.toPath(t.alternateResult)))}function ae(e){return(null==m?void 0:m.has(e))||R((null==_?void 0:_.keys())||[],(t=>!!dn(e,t)||void 0))||R((null==h?void 0:h.keys())||[],(t=>!(!(e.length>t.length&&dn(e,t))||!Ki(t)&&e[t.length]!==Fi)||void 0))}function le(e){var t;return!!f&&(null==(t=e.affectingLocations)?void 0:t.some((e=>f.has(e))))}function ce(){SS(k,fS)}function de(t){return function(t){return!!e.getCompilationSettings().typeRoots||pK(e.toPath(t))}(t)?e.watchTypeRootsDirectory(t,(n=>{const r=e.toPath(n);b&&b.addOrDeleteFileOrDirectory(n,r),g=!0,e.onChangedAutomaticTypeDirectiveNames();const o=vK(t,e.toPath(t),M,L,v,(e=>C.has(e)));o&&ne(r,o===r)}),1):CK}}function AK(e){var t,n;return!(!(null==(t=e.resolvedModule)?void 0:t.originalPath)&&!(null==(n=e.resolvedTypeReferenceDirective)?void 0:n.originalPath))}var IK,RK,CK,DK,NK,MK=b({"src/compiler/resolutionCache.ts"(){JJ()}});function LK(e,t){const n=e===hi&&IK?IK:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:an(e.useCaseSensitiveFileNames)};if(!t)return t=>e.write(kU(t,n));const r=new Array(1);return t=>{r[0]=t,e.write(WU(r,n)+n.getNewLine()),r[0]=void 0}}function kK(e,t,n){return!(!e.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!F(RK,t.code))&&(e.clearScreen(),!0)}function PK(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202f"," "):(new Date).toLocaleTimeString()}function wK(e,t){return t?(t,n,r)=>{kK(e,t,r);let o=`[${wU(PK(e),"\x1b[90m")}] `;o+=`${zU(t.messageText,e.newLine)}${n+n}`,e.write(o)}:(t,n,r)=>{let o="";kK(e,t,r)||(o+=n),o+=`${PK(e)} - `,o+=`${zU(t.messageText,e.newLine)}${function(e,t){return F(RK,e.code)?t+t:t}(t,n)}`,e.write(o)}}function OK(e,t,n,r,o,i){const a=o;a.onUnRecoverableConfigFileDiagnostic=e=>iq(o,i,e);const s=Dw(e,t,a,n,r);return a.onUnRecoverableConfigFileDiagnostic=void 0,s}function FK(e){return B(e,(e=>1===e.category))}function WK(e){return G(e,(e=>1===e.category)).map((e=>{if(void 0!==e.file)return`${e.file.fileName}`})).map((t=>{if(void 0===t)return;const n=L(e,(e=>void 0!==e.file&&e.file.fileName===t));if(void 0!==n){const{line:e}=_s(n.file,n.start);return{fileName:t,line:e+1}}}))}function zK(e){return 1===e?Oa.Found_1_error_Watching_for_file_changes:Oa.Found_0_errors_Watching_for_file_changes}function BK(e,t){const n=wU(":"+e.line,"\x1b[90m");return qi(e.fileName)&&qi(t)?Na(t,e.fileName,!1)+n:e.fileName+n}function GK(e,t,n,r){if(0===e)return"";const o=t.filter((e=>void 0!==e)),i=o.map((e=>`${e.fileName}:${e.line}`)).filter(((e,t,n)=>n.indexOf(e)===t)),a=o[0]&&BK(o[0],r.getCurrentDirectory());let s;s=1===e?void 0!==t[0]?[Oa.Found_1_error_in_0,a]:[Oa.Found_1_error]:0===i.length?[Oa.Found_0_errors,e]:1===i.length?[Oa.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,a]:[Oa.Found_0_errors_in_1_files,e,i.length];const l=sT(...s),c=i.length>1?function(e,t){const n=e.filter(((e,t,n)=>t===n.findIndex((t=>(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)))));if(0===n.length)return"";const r=e=>Math.log(e)*Math.LOG10E+1,o=n.map((t=>[t,B(e,(e=>e.fileName===t.fileName))])),i=o.reduce(((e,t)=>Math.max(e,t[1]||0)),0),a=Oa.Errors_Files.message,s=a.split(" ")[0].length,l=Math.max(s,r(i)),c=Math.max(r(i)-s,0);let d="";return d+=" ".repeat(c)+a+"\n",o.forEach((e=>{const[n,r]=e,o=Math.log(r)*Math.LOG10E+1|0,i=o<l?" ".repeat(l-o):"",a=BK(n,t.getCurrentDirectory());d+=`${i}${r} ${a}\n`})),d}(o,r):"";return`${n}${zU(l.messageText,n)}${n}${n}${c}`}function jK(e){return!!e.getState}function VK(e,t){const n=e.getCompilerOptions();n.explainFiles?UK(jK(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&x(e.getSourceFiles(),(e=>{t(e.fileName)}))}function UK(e,t){var n,r;const o=e.getFileIncludeReasons(),i=t=>Ma(t,e.getCurrentDirectory(),e.getCanonicalFileName);for(const a of e.getSourceFiles())t(`${XK(a,i)}`),null==(n=o.get(a.path))||n.forEach((n=>t(` ${JK(e,n,i).messageText}`))),null==(r=HK(a,i))||r.forEach((e=>t(` ${e.messageText}`)))}function HK(e,t){var n;let r;if(e.path!==e.resolvedPath&&(r??(r=[])).push(cT(void 0,Oa.File_is_output_of_project_reference_source_0,XK(e.originalFileName,t))),e.redirectInfo&&(r??(r=[])).push(cT(void 0,Oa.File_redirects_to_file_0,XK(e.redirectInfo.redirectTarget,t))),T_(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(r??(r=[])).push(cT(void 0,Oa.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,XK(Fe(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(r??(r=[])).push(cT(void 0,e.packageJsonScope.contents.packageJsonContent.type?Oa.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:Oa.File_is_CommonJS_module_because_0_does_not_have_field_type,XK(Fe(e.packageJsonLocations),t))):(null==(n=e.packageJsonLocations)?void 0:n.length)&&(r??(r=[])).push(cT(void 0,Oa.File_is_CommonJS_module_because_package_json_was_not_found))}return r}function KK(e,t){var n;const r=e.getCompilerOptions().configFile;if(!(null==(n=null==r?void 0:r.configFileSpecs)?void 0:n.validatedFilesSpec))return;const o=e.getCanonicalFileName(t),i=ra(ma(r.fileName,e.getCurrentDirectory()));return L(r.configFileSpecs.validatedFilesSpec,(t=>e.getCanonicalFileName(ma(t,i))===o))}function qK(e,t){var n,r;const o=e.getCompilerOptions().configFile;if(!(null==(n=null==o?void 0:o.configFileSpecs)?void 0:n.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;const i=Yi(t,".json"),a=ra(ma(o.fileName,e.getCurrentDirectory())),s=e.useCaseSensitiveFileNames();return L(null==(r=null==o?void 0:o.configFileSpecs)?void 0:r.validatedIncludeSpecs,(e=>{if(i&&!Yt(e,".json"))return!1;const n=UT(e,a,"files");return!!n&&JT(`(${n})$`,s).test(t)}))}function JK(e,t,n){var r,o;const i=e.getCompilerOptions();if(nH(t)){const r=oH(e,t),o=rH(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`;let i;switch(In.assert(rH(r)||3===t.kind,"Only synthetic references are imports"),t.kind){case 3:i=rH(r)?r.packageId?Oa.Imported_via_0_from_file_1_with_packageId_2:Oa.Imported_via_0_from_file_1:r.text===cp?r.packageId?Oa.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:Oa.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?Oa.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:Oa.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:In.assert(!r.packageId),i=Oa.Referenced_via_0_from_file_1;break;case 5:i=r.packageId?Oa.Type_library_referenced_via_0_from_file_1_with_packageId_2:Oa.Type_library_referenced_via_0_from_file_1;break;case 7:In.assert(!r.packageId),i=Oa.Library_referenced_via_0_from_file_1;break;default:In.assertNever(t)}return cT(void 0,i,o,XK(r.file,n),r.packageId&&qf(r.packageId))}switch(t.kind){case 0:if(!(null==(r=i.configFile)?void 0:r.configFileSpecs))return cT(void 0,Oa.Root_file_specified_for_compilation);const a=ma(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(KK(e,a))return cT(void 0,Oa.Part_of_files_list_in_tsconfig_json);const s=qK(e,a);return ht(s)?cT(void 0,Oa.Matched_by_include_pattern_0_in_1,s,XK(i.configFile,n)):cT(void 0,s?Oa.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:Oa.Root_file_specified_for_compilation);case 1:case 2:const l=2===t.kind,c=In.checkDefined(null==(o=e.getResolvedProjectReferences())?void 0:o[t.index]);return cT(void 0,ob(i)?l?Oa.Output_from_referenced_project_0_included_because_1_specified:Oa.Source_from_referenced_project_0_included_because_1_specified:l?Oa.Output_from_referenced_project_0_included_because_module_is_specified_as_none:Oa.Source_from_referenced_project_0_included_because_module_is_specified_as_none,XK(c.sourceFile.fileName,n),i.outFile?"--outFile":"--out");case 8:return cT(void 0,...i.types?t.packageId?[Oa.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,qf(t.packageId)]:[Oa.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[Oa.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,qf(t.packageId)]:[Oa.Entry_point_for_implicit_type_library_0,t.typeReference]);case 6:{if(void 0!==t.index)return cT(void 0,Oa.Library_0_specified_in_compilerOptions,i.lib[t.index]);const e=Wf(MP.type,((e,t)=>e===jp(i)?t:void 0));return cT(void 0,...e?[Oa.Default_library_for_target_0,e]:[Oa.Default_library])}default:In.assertNever(t)}}function XK(e,t){const n=ht(e)?e:e.fileName;return t?t(n):n}function $K(e,t,n,r,i,a,s,l){const c=!!e.getCompilerOptions().listFilesOnly,d=e.getConfigFileParsingDiagnostics().slice(),u=d.length;xe(d,e.getSyntacticDiagnostics(void 0,a)),d.length===u&&(xe(d,e.getOptionsDiagnostics(a)),c||(xe(d,e.getGlobalDiagnostics(a)),d.length===u&&xe(d,e.getSemanticDiagnostics(void 0,a))));const p=c?{emitSkipped:!0,diagnostics:o}:e.emit(void 0,i,a,s,l),{emittedFiles:f,diagnostics:m}=p;xe(d,m);const _=$s(d);if(_.forEach(t),n){const t=e.getCurrentDirectory();x(f,(e=>{const r=ma(e,t);n(`TSFILE: ${r}`)})),VK(e,n)}return r&&r(FK(_),WK(_)),{emitResult:p,diagnostics:_}}function YK(e,t,n,r,o,i,a,s){const{emitResult:l,diagnostics:c}=$K(e,t,n,r,o,i,a,s);return l.emitSkipped&&c.length>0?1:c.length>0?2:0}function QK(e=hi,t){return{onWatchStatusChange:t||wK(e),watchFile:lt(e,e.watchFile)||DK,watchDirectory:lt(e,e.watchDirectory)||DK,setTimeout:lt(e,e.setTimeout)||bt,clearTimeout:lt(e,e.clearTimeout)||bt}}function ZK(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,r=0!==n?t=>e.trace(t):bt,o=aU(e,n,r);return o.writeLog=r,o}function eq(e,t,n=e){const r=e.useCaseSensitiveFileNames(),o={getSourceFile:RU(((t,n)=>n?e.readFile(t,n):o.readFile(t)),t,void 0),getDefaultLibLocation:lt(e,e.getDefaultLibLocation),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:CU(((t,n,r)=>e.writeFile(t,n,r)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t))),getCurrentDirectory:Ct((()=>e.getCurrentDirectory())),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:an(r),getNewLine:()=>VE(t()),fileExists:t=>e.fileExists(t),readFile:t=>e.readFile(t),trace:lt(e,e.trace),directoryExists:lt(n,n.directoryExists),getDirectories:lt(n,n.getDirectories),realpath:lt(e,e.realpath),getEnvironmentVariable:lt(e,e.getEnvironmentVariable)||(()=>""),createHash:lt(e,e.createHash),readDirectory:lt(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return o}function tq(e,t){if(t.match(_B)){let e=t.length,n=e;for(let r=e-1;r>=0;r--){const o=t.charCodeAt(r);switch(o){case 10:r&&13===t.charCodeAt(r-1)&&r--;case 13:break;default:if(o<127||!ys(o)){n=r;continue}}const i=t.substring(n,e);if(i.match(hB)){t=t.substring(0,n);break}if(!i.match(gB))break;e=n}}return(e.createHash||yi)(t)}function nq(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const r=t.call(e,...n);return r&&(r.version=tq(e,r.text)),r}}function rq(e,t){const n=Ct((()=>ra(_a(e.getExecutingFilePath()))));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Ct((()=>e.getCurrentDirectory())),getDefaultLibLocation:n,getDefaultLibFileName:e=>ua(n(),Ys(e)),fileExists:t=>e.fileExists(t),readFile:(t,n)=>e.readFile(t,n),directoryExists:t=>e.directoryExists(t),getDirectories:t=>e.getDirectories(t),readDirectory:(t,n,r,o,i)=>e.readDirectory(t,n,r,o,i),realpath:lt(e,e.realpath),getEnvironmentVariable:lt(e,e.getEnvironmentVariable),trace:t=>e.write(t+e.newLine),createDirectory:t=>e.createDirectory(t),writeFile:(t,n,r)=>e.writeFile(t,n,r),createHash:lt(e,e.createHash),createProgram:t||aK,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:lt(e,e.now)}}function oq(e=hi,t,n,r){const o=t=>e.write(t+e.newLine),i=rq(e,t);return st(i,QK(e,r)),i.afterProgramCreate=e=>{const t=e.getCompilerOptions(),r=VE(t);$K(e,n,o,(e=>i.onWatchStatusChange(sT(zK(e),e),r,t,e)))},i}function iq(e,t,n){t(n),e.exit(1)}function aq({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:r,system:o,createProgram:i,reportDiagnostic:a,reportWatchStatus:s}){const l=a||LK(o),c=oq(o,i,l,s);return c.onUnRecoverableConfigFileDiagnostic=e=>iq(o,l,e),c.configFileName=e,c.optionsToExtend=t,c.watchOptionsToExtend=n,c.extraFileExtensions=r,c}function sq({rootFiles:e,options:t,watchOptions:n,projectReferences:r,system:o,createProgram:i,reportDiagnostic:a,reportWatchStatus:s}){const l=oq(o,i,a||LK(o),s);return l.rootFiles=e,l.options=t,l.watchOptions=n,l.projectReferences=r,l}function lq(e){const t=e.system||hi,n=e.host||(e.host=uq(e.options,t)),r=pq(e),o=YK(r,e.reportDiagnostic||LK(t),(e=>n.trace&&n.trace(e)),e.reportErrorSummary||e.options.pretty?(e,r)=>t.write(GK(e,r,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),o}var cq=b({"src/compiler/watch.ts"(){JJ(),IK=hi?{getCurrentDirectory:()=>hi.getCurrentDirectory(),getNewLine:()=>hi.newLine,getCanonicalFileName:an(hi.useCaseSensitiveFileNames)}:void 0,RK=[Oa.Starting_compilation_in_watch_mode.code,Oa.File_change_detected_Starting_incremental_compilation.code],CK={close:bt},DK=()=>CK,NK={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function dq(e,n){const r=SV(e);if(!r)return;let o;if(n.getBuildInfo)o=n.getBuildInfo(r,e.configFilePath);else{const e=n.readFile(r);if(!e)return;o=VV(r,e)}return o&&o.version===t&&o.program?tK(o,r,n):void 0}function uq(e,t=hi){const n=DU(e,void 0,t);return n.createHash=lt(t,t.createHash),n.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,nq(n),NU(n,(e=>ga(e,n.getCurrentDirectory(),n.getCanonicalFileName))),n}function pq({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:r,host:o,createProgram:i}){return(i=i||aK)(e,t,o=o||uq(t),dq(t,o),n,r)}function fq(e,t,n,r,o,i,a,s){return mt(e)?sq({rootFiles:e,options:t,watchOptions:s,projectReferences:a,system:n,createProgram:r,reportDiagnostic:o,reportWatchStatus:i}):aq({configFileName:e,optionsToExtend:t,watchOptionsToExtend:a,extraFileExtensions:s,system:n,createProgram:r,reportDiagnostic:o,reportWatchStatus:i})}function mq(e){let t,n,r,o,i,a,s,l,c=e.extendedConfigCache,d=!1;const u=new Map;let p,f=!1;const m=e.useCaseSensitiveFileNames(),_=e.getCurrentDirectory(),{configFileName:h,optionsToExtend:g={},watchOptionsToExtend:y,extraFileExtensions:v,createProgram:b}=e;let E,S,{rootFiles:T,options:x,watchOptions:A,projectReferences:I}=e,R=!1,C=!1;const D=void 0===h?void 0:QV(e,_,m),N=D||e,M=pH(e,N);let L=J();h&&e.configFileParsingResult&&(se(e.configFileParsingResult),L=J()),Z(Oa.Starting_compilation_in_watch_mode),h&&!e.configFileParsingResult&&(L=VE(g),In.assert(!T),ae(),L=J()),In.assert(x),In.assert(T);const{watchFile:k,watchDirectory:P,writeLog:w}=ZK(e,x),O=an(m);let F;w(`Current directory: ${_} CaseSensitiveFileNames: ${m}`),h&&(F=k(h,(function(){In.assert(!!h),n=2,re()}),2e3,A,NK.ConfigFile));const W=eq(e,(()=>x),N);nq(W);const z=W.getSourceFile;W.getSourceFile=(e,...t)=>Y(e,X(e),...t),W.getSourceFileByPath=Y,W.getNewLine=()=>L,W.fileExists=function(e){const t=X(e);if($(u.get(t)))return!1;return N.fileExists(e)},W.onReleaseOldSourceFile=function(e,t,n){const r=u.get(e.resolvedPath);void 0!==r&&($(r)?(p||(p=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),u.delete(e.resolvedPath),n||B.removeResolutionsOfFile(e.path)))},W.onReleaseParsedCommandLine=function(e){var t;const n=X(e),r=null==s?void 0:s.get(n);if(!r)return;s.delete(n),r.watchedDirectories&&SS(r.watchedDirectories,lU);null==(t=r.watcher)||t.close(),eU(n,l)},W.toPath=X,W.getCompilationSettings=()=>x,W.useSourceOfProjectReferenceRedirect=lt(e,e.useSourceOfProjectReferenceRedirect),W.watchDirectoryOfFailedLookupLocation=(e,t,n)=>P(e,t,n,A,NK.FailedLookupLocations),W.watchAffectingFileLocation=(e,t)=>k(e,t,2e3,A,NK.AffectingFileLocation),W.watchTypeRootsDirectory=(e,t,n)=>P(e,t,n,A,NK.TypeRoots),W.getCachedDirectoryStructureHost=()=>D,W.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!e.setTimeout||!e.clearTimeout)return B.invalidateResolutionsOfFailedLookupLocations();const t=te();w("Scheduling invalidateFailedLookup"+(t?", Cancelled earlier one":"")),a=e.setTimeout(ne,250,"timerToInvalidateFailedLookupResolutions")},W.onInvalidatedResolution=re,W.onChangedAutomaticTypeDirectiveNames=re,W.fileIsOpen=Et,W.getCurrentProgram=K,W.writeLog=w,W.getParsedCommandLine=le;const B=xK(W,h?ra(ma(h,_)):_,!1);W.resolveModuleNameLiterals=lt(e,e.resolveModuleNameLiterals),W.resolveModuleNames=lt(e,e.resolveModuleNames),W.resolveModuleNameLiterals||W.resolveModuleNames||(W.resolveModuleNameLiterals=B.resolveModuleNameLiterals.bind(B)),W.resolveTypeReferenceDirectiveReferences=lt(e,e.resolveTypeReferenceDirectiveReferences),W.resolveTypeReferenceDirectives=lt(e,e.resolveTypeReferenceDirectives),W.resolveTypeReferenceDirectiveReferences||W.resolveTypeReferenceDirectives||(W.resolveTypeReferenceDirectiveReferences=B.resolveTypeReferenceDirectiveReferences.bind(B)),W.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):B.resolveLibrary.bind(B),W.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?lt(e,e.getModuleResolutionCache):()=>B.getModuleResolutionCache();const G=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?lt(e,e.hasInvalidatedResolutions)||St:Et,j=e.resolveLibrary?lt(e,e.hasInvalidatedLibResolutions)||St:Et;return t=dq(x,W),q(),me(),h&&he(X(h),x,A,NK.ExtendedConfigFile),h?{getCurrentProgram:H,getProgram:ie,close:V,getResolutionCache:U}:{getCurrentProgram:H,getProgram:ie,updateRootFileNames:function(e){In.assert(!h,"Cannot update root file names with config file watch mode"),T=e,re()},close:V,getResolutionCache:U};function V(){te(),B.clear(),SS(u,(e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),F&&(F.close(),F=void 0),null==c||c.clear(),c=void 0,l&&(SS(l,lU),l=void 0),o&&(SS(o,lU),o=void 0),r&&(SS(r,fS),r=void 0),s&&(SS(s,(e=>{var t;null==(t=e.watcher)||t.close(),e.watcher=void 0,e.watchedDirectories&&SS(e.watchedDirectories,lU),e.watchedDirectories=void 0})),s=void 0)}function U(){return B}function H(){return t}function K(){return t&&t.getProgramOrUndefined()}function q(){w("Synchronizing program"),In.assert(x),In.assert(T),te();const n=H();f&&(L=J(),n&&kf(n.getCompilerOptions(),x)&&B.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:i}=B.createHasInvalidatedResolutions(G,j),{originalReadFile:a,originalFileExists:s,originalDirectoryExists:l,originalCreateDirectory:c,originalWriteFile:m,readFileWithCache:_}=NU(W,X);return iH(K(),T,x,(e=>function(e,t){const n=u.get(e);if(!n)return;if(n.version)return n.version;const r=t(e);return void 0!==r?tq(W,r):void 0}(e,_)),(e=>W.fileExists(e)),o,i,ee,le,I)?C&&(d&&Z(Oa.File_change_detected_Starting_incremental_compilation),t=b(void 0,void 0,W,t,S,I),C=!1):(d&&Z(Oa.File_change_detected_Starting_incremental_compilation),function(e,n){w("CreatingProgramWith::"),w(` roots: ${JSON.stringify(T)}`),w(` options: ${JSON.stringify(x)}`),I&&w(` projectReferences: ${JSON.stringify(I)}`);const o=f||!K();f=!1,C=!1,B.startCachingPerDirectoryResolution(),W.hasInvalidatedResolutions=e,W.hasInvalidatedLibResolutions=n,W.hasChangedAutomaticTypeDirectiveNames=ee;const i=K();t=b(T,x,W,t,S,I),B.finishCachingPerDirectoryResolution(t.getProgram(),i),nU(t.getProgram(),r||(r=new Map),pe),o&&B.updateTypeRootsWatch();if(p){for(const e of p)r.has(e)||u.delete(e);p=void 0}}(o,i)),d=!1,e.afterProgramCreate&&n!==t&&e.afterProgramCreate(t),W.readFile=a,W.fileExists=s,W.directoryExists=l,W.createDirectory=c,W.writeFile=m,t}function J(){return VE(x||g)}function X(e){return ga(e,_,O)}function $(e){return"boolean"===typeof e}function Y(e,t,n,r,o){const i=u.get(t);if($(i))return;const a="object"===typeof n?n.impliedNodeFormat:void 0;if(void 0===i||o||function(e){return"boolean"===typeof e.version}(i)||i.sourceFile.impliedNodeFormat!==a){const o=z(e,n,r);if(i)o?(i.sourceFile=o,i.version=o.version,i.fileWatcher||(i.fileWatcher=ce(t,e,de,250,A,NK.SourceFile))):(i.fileWatcher&&i.fileWatcher.close(),u.set(t,!1));else if(o){const n=ce(t,e,de,250,A,NK.SourceFile);u.set(t,{sourceFile:o,version:o.version,fileWatcher:n})}else u.set(t,!1);return o}return i.sourceFile}function Q(e){const t=u.get(e);void 0!==t&&($(t)?u.set(e,{version:!1}):t.version=!1)}function Z(t){e.onWatchStatusChange&&e.onWatchStatusChange(sT(t),L,x||g)}function ee(){return B.hasChangedAutomaticTypeDirectiveNames()}function te(){return!!a&&(e.clearTimeout(a),a=void 0,!0)}function ne(){a=void 0,B.invalidateResolutionsOfFailedLookupLocations()&&re()}function re(){e.setTimeout&&e.clearTimeout&&(i&&e.clearTimeout(i),w("Scheduling update"),i=e.setTimeout(oe,250,"timerToUpdateProgram"))}function oe(){i=void 0,d=!0,ie()}function ie(){var e,t,r,o;switch(n){case 1:null==(e=sr)||e.logStartUpdateProgram("PartialConfigReload"),function(){w("Reloading new file names and options"),In.assert(x),In.assert(h),n=0,T=RO(x.configFile.configFileSpecs,ma(ra(h),_),x,M,v),uO(T,ma(h,_),x.configFile.configFileSpecs,S,R)&&(C=!0);q()}();break;case 2:null==(t=sr)||t.logStartUpdateProgram("FullConfigReload"),function(){In.assert(h),w(`Reloading config file: ${h}`),n=0,D&&D.clearCache();ae(),f=!0,q(),me(),he(X(h),x,A,NK.ExtendedConfigFile)}();break;default:null==(r=sr)||r.logStartUpdateProgram("SynchronizeProgram"),q()}return null==(o=sr)||o.logStopUpdateProgram("Done"),H()}function ae(){In.assert(h),se(Dw(h,g,M,c||(c=new Map),y,v))}function se(e){T=e.fileNames,x=e.options,A=e.watchOptions,I=e.projectReferences,E=e.wildcardDirectories,S=aH(e).slice(),R=dO(e.raw),C=!0}function le(t){const n=X(t);let r=null==s?void 0:s.get(n);if(r){if(!r.updateLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&1===r.updateLevel&&!e.getParsedCommandLine){w("Reloading new file names and options"),In.assert(x);const e=RO(r.parsedCommandLine.options.configFile.configFileSpecs,ma(ra(t),_),x,M);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:e},r.updateLevel=void 0,r.parsedCommandLine}}w(`Loading config file: ${t}`);const o=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=M.onUnRecoverableConfigFileDiagnostic;M.onUnRecoverableConfigFileDiagnostic=bt;const n=Dw(e,void 0,M,c||(c=new Map),y);return M.onUnRecoverableConfigFileDiagnostic=t,n}(t);return r?(r.parsedCommandLine=o,r.updateLevel=void 0):(s||(s=new Map)).set(n,r={parsedCommandLine:o}),function(e,t,n){var r,o,i,a;n.watcher||(n.watcher=k(e,((n,r)=>{ue(e,t,r);const o=null==s?void 0:s.get(t);o&&(o.updateLevel=2),B.removeResolutionsFromProjectReferenceRedirects(t),re()}),2e3,(null==(r=n.parsedCommandLine)?void 0:r.watchOptions)||A,NK.ConfigFileOfReferencedProject)),rU(n.watchedDirectories||(n.watchedDirectories=new Map),null==(o=n.parsedCommandLine)?void 0:o.wildcardDirectories,((r,o)=>{var i;return P(r,(n=>{const o=X(n);D&&D.addOrDeleteFileOrDirectory(n,o),Q(o);const i=null==s?void 0:s.get(t);(null==i?void 0:i.parsedCommandLine)&&(oU({watchedDirPath:X(r),fileOrDirectory:n,fileOrDirectoryPath:o,configFileName:e,options:i.parsedCommandLine.options,program:i.parsedCommandLine.fileNames,currentDirectory:_,useCaseSensitiveFileNames:m,writeLog:w,toPath:X})||2!==i.updateLevel&&(i.updateLevel=1,re()))}),o,(null==(i=n.parsedCommandLine)?void 0:i.watchOptions)||A,NK.WildcardDirectoryOfReferencedProject)})),he(t,null==(i=n.parsedCommandLine)?void 0:i.options,(null==(a=n.parsedCommandLine)?void 0:a.watchOptions)||A,NK.ExtendedConfigOfReferencedProject)}(t,n,r),o}function ce(e,t,n,r,o,i){return k(t,((t,r)=>n(t,r,e)),r,o,i)}function de(e,t,n){ue(e,n,t),2===t&&u.has(n)&&B.invalidateResolutionOfFile(n),Q(n),re()}function ue(e,t,n){D&&D.addOrDeleteFile(e,t,n)}function pe(e,t){return(null==s?void 0:s.has(e))?CK:ce(e,t,fe,500,A,NK.MissingFile)}function fe(e,t,n){ue(e,n,t),0===t&&r.has(n)&&(r.get(n).close(),r.delete(n),Q(n),re())}function me(){rU(o||(o=new Map),E,_e)}function _e(e,t){return P(e,(t=>{In.assert(h),In.assert(x);const r=X(t);D&&D.addOrDeleteFileOrDirectory(t,r),Q(r),oU({watchedDirPath:X(e),fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:h,extraFileExtensions:v,options:x,program:H()||T,currentDirectory:_,useCaseSensitiveFileNames:m,writeLog:w,toPath:X})||2!==n&&(n=1,re())}),t,A,NK.WildcardDirectory)}function he(e,t,r,o){ZV(e,t,l||(l=new Map),((e,t)=>k(e,((r,o)=>{var i;ue(e,t,o),c&&tU(c,t,X);const a=null==(i=l.get(t))?void 0:i.projects;(null==a?void 0:a.size)&&a.forEach((e=>{if(h&&X(h)===e)n=2;else{const t=null==s?void 0:s.get(e);t&&(t.updateLevel=2),B.removeResolutionsFromProjectReferenceRedirects(e)}re()}))}),2e3,r,o)),X)}}var _q,hq=b({"src/compiler/watchPublic.ts"(){JJ()}});function gq(e){return Yi(e,".json")?e:ua(e,"tsconfig.json")}var yq,vq,bq,Eq=b({"src/compiler/tsbuild.ts"(){JJ(),_q=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(_q||{})}});function Sq(e,t){return function(e,t,n){const r=e.get(t);let o;return r||(o=n(),e.set(t,o)),r||o}(e,t,(()=>new Map))}function Tq(e){return e.now?e.now():new Date}function xq(e){return!!e&&!!e.buildOrder}function Aq(e){return xq(e)?e.buildOrder:e}function Iq(e,t){return n=>{let r=t?`[${wU(PK(e),"\x1b[90m")}] `:`${PK(e)} - `;r+=`${zU(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function Rq(e,t,n,r){const o=rq(e,t);return o.getModifiedTime=e.getModifiedTime?t=>e.getModifiedTime(t):Tt,o.setModifiedTime=e.setModifiedTime?(t,n)=>e.setModifiedTime(t,n):bt,o.deleteFile=e.deleteFile?t=>e.deleteFile(t):bt,o.reportDiagnostic=n||LK(e),o.reportSolutionBuilderStatus=r||Iq(e),o.now=lt(e,e.now),o}function Cq(e=hi,t,n,r,o){const i=Rq(e,t,n,r);return i.reportErrorSummary=o,i}function Dq(e=hi,t,n,r,o){const i=Rq(e,t,n,r);return st(i,QK(e,o)),i}function Nq(e,t,n){return RJ(!1,e,t,n)}function Mq(e,t,n,r){return RJ(!0,e,t,n,r)}function Lq(e,t,n,r,o){const i=t,a=t,s=function(e){const t={};return NP.forEach((n=>{He(e,n.name)&&(t[n.name]=e[n.name])})),t}(r),l=eq(i,(()=>_.projectCompilerOptions));let c,d,u;nq(l),l.getParsedCommandLine=e=>Fq(_,e,Pq(_,e)),l.resolveModuleNameLiterals=lt(i,i.resolveModuleNameLiterals),l.resolveTypeReferenceDirectiveReferences=lt(i,i.resolveTypeReferenceDirectiveReferences),l.resolveLibrary=lt(i,i.resolveLibrary),l.resolveModuleNames=lt(i,i.resolveModuleNames),l.resolveTypeReferenceDirectives=lt(i,i.resolveTypeReferenceDirectives),l.getModuleResolutionCache=lt(i,i.getModuleResolutionCache),l.resolveModuleNameLiterals||l.resolveModuleNames||(c=NF(l.getCurrentDirectory(),l.getCanonicalFileName),l.resolveModuleNameLiterals=(e,t,n,r,o)=>$U(e,t,n,r,o,i,c,qU),l.getModuleResolutionCache=()=>c),l.resolveTypeReferenceDirectiveReferences||l.resolveTypeReferenceDirectives||(d=MF(l.getCurrentDirectory(),l.getCanonicalFileName,void 0,null==c?void 0:c.getPackageJsonInfoCache(),null==c?void 0:c.optionsToRedirectsKey),l.resolveTypeReferenceDirectiveReferences=(e,t,n,r,o)=>$U(e,t,n,r,o,i,d,XU)),l.resolveLibrary||(u=NF(l.getCurrentDirectory(),l.getCanonicalFileName,void 0,null==c?void 0:c.getPackageJsonInfoCache()),l.resolveLibrary=(e,t,n)=>kF(e,t,n,i,u)),l.getBuildInfo=(e,t)=>lJ(_,e,Pq(_,t),void 0);const{watchFile:p,watchDirectory:f,writeLog:m}=ZK(a,r),_={host:i,hostWithWatch:a,parseConfigFileHost:pH(i),write:lt(i,i.trace),options:r,baseCompilerOptions:s,rootNames:n,baseWatchOptions:o,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:l,moduleResolutionCache:c,typeReferenceDirectiveResolutionCache:d,libraryResolutionCache:u,buildOrder:void 0,readFileWithCache:e=>i.readFile(e),projectCompilerOptions:s,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:p,watchDirectory:f,writeLog:m};return _}function kq(e,t){return ga(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Pq(e,t){const{resolvedConfigFilePaths:n}=e,r=n.get(t);if(void 0!==r)return r;const o=kq(e,t);return n.set(t,o),o}function wq(e){return!!e.options}function Oq(e,t){const n=e.configFileCache.get(t);return n&&wq(n)?n:void 0}function Fq(e,t,n){const{configFileCache:r}=e,o=r.get(n);if(o)return wq(o)?o:void 0;let i;br("SolutionBuilder::beforeConfigFileParsing");const{parseConfigFileHost:a,baseCompilerOptions:s,baseWatchOptions:l,extendedConfigCache:c,host:d}=e;let u;return d.getParsedCommandLine?(u=d.getParsedCommandLine(t),u||(i=sT(Oa.File_0_not_found,t))):(a.onUnRecoverableConfigFileDiagnostic=e=>i=e,u=Dw(t,s,a,c,l),a.onUnRecoverableConfigFileDiagnostic=bt),r.set(n,u||i),br("SolutionBuilder::afterConfigFileParsing"),Er("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),u}function Wq(e,t){return gq(pa(e.compilerHost.getCurrentDirectory(),t))}function zq(e,t){const n=new Map,r=new Map,i=[];let a,s;for(const o of t)l(o);return s?{buildOrder:a||o,circularDiagnostics:s}:a||o;function l(t,o){const c=Pq(e,t);if(r.has(c))return;if(n.has(c))return void(o||(s||(s=[])).push(sT(Oa.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,i.join("\r\n"))));n.set(c,!0),i.push(t);const d=Fq(e,t,c);if(d&&d.projectReferences)for(const n of d.projectReferences){l(Wq(e,n.path),o||n.circular)}i.pop(),r.set(c,!0),(a||(a=[])).push(t)}}function Bq(e){return e.buildOrder||function(e){const t=zq(e,e.rootNames.map((t=>Wq(e,t))));e.resolvedConfigFilePaths.clear();const n=new Set(Aq(t).map((t=>Pq(e,t)))),r={onDeleteValue:bt};TS(e.configFileCache,n,r),TS(e.projectStatus,n,r),TS(e.builderPrograms,n,r),TS(e.diagnostics,n,r),TS(e.projectPendingBuild,n,r),TS(e.projectErrorsReported,n,r),TS(e.buildInfoCache,n,r),TS(e.outputTimeStamps,n,r),TS(e.lastCachedPackageJsonLookups,n,r),e.watch&&(TS(e.allWatchedConfigFiles,n,{onDeleteValue:fS}),e.allWatchedExtendedConfigFiles.forEach((e=>{e.projects.forEach((t=>{n.has(t)||e.projects.delete(t)})),e.close()})),TS(e.allWatchedWildcardDirectories,n,{onDeleteValue:e=>e.forEach(lU)}),TS(e.allWatchedInputFiles,n,{onDeleteValue:e=>e.forEach(fS)}),TS(e.allWatchedPackageJsonFiles,n,{onDeleteValue:e=>e.forEach(fS)}));return e.buildOrder=t}(e)}function Gq(e,t,n){const r=t&&Wq(e,t),o=Bq(e);if(xq(o))return o;if(r){const t=Pq(e,r);if(-1===P(o,(n=>Pq(e,n)===t)))return}const i=r?zq(e,[r]):o;return In.assert(!xq(i)),In.assert(!n||void 0!==r),In.assert(!n||i[i.length-1]===r),n?i.slice(0,i.length-1):i}function jq(e){e.cache&&Vq(e);const{compilerHost:t,host:n}=e,r=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:i,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:c,getSourceFileWithCache:d,readFileWithCache:u}=NU(n,(t=>kq(e,t)),((...e)=>o.call(t,...e)));e.readFileWithCache=u,t.getSourceFile=d,e.cache={originalReadFile:i,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:c,originalReadFileWithCache:r,originalGetSourceFile:o}}function Vq(e){if(!e.cache)return;const{cache:t,host:n,compilerHost:r,extendedConfigCache:o,moduleResolutionCache:i,typeReferenceDirectiveResolutionCache:a,libraryResolutionCache:s}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,r.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),null==i||i.clear(),null==a||a.clear(),null==s||s.clear(),e.cache=void 0}function Uq(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function Hq({projectPendingBuild:e},t,n){const r=e.get(t);(void 0===r||r<n)&&e.set(t,n)}function Kq(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&NJ(e,Oa.Starting_compilation_in_watch_mode),jq(e);Aq(Bq(e)).forEach((t=>e.projectPendingBuild.set(Pq(e,t),0))),t&&t.throwIfCancellationRequested()}function qq(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function Jq(e,t,n,r,i,a,s){let l,c,d,u=0===e?0:4;return 0===e?{kind:e,project:n,projectPath:r,buildOrder:s,getCompilerOptions:()=>a.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>f(xt),getProgram:()=>f((e=>e.getProgramOrUndefined())),getSourceFile:e=>f((t=>t.getSourceFile(e))),getSourceFiles:()=>m((e=>e.getSourceFiles())),getOptionsDiagnostics:e=>m((t=>t.getOptionsDiagnostics(e))),getGlobalDiagnostics:e=>m((t=>t.getGlobalDiagnostics(e))),getConfigFileParsingDiagnostics:()=>m((e=>e.getConfigFileParsingDiagnostics())),getSyntacticDiagnostics:(e,t)=>m((n=>n.getSyntacticDiagnostics(e,t))),getAllDependencies:e=>m((t=>t.getAllDependencies(e))),getSemanticDiagnostics:(e,t)=>m((n=>n.getSemanticDiagnostics(e,t))),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>f((n=>n.getSemanticDiagnosticsOfNextAffectedFile&&n.getSemanticDiagnosticsOfNextAffectedFile(e,t))),emit:(e,r,o,i,a)=>e||i?f((s=>{var l,c;return s.emit(e,r,o,i,a||(null==(c=(l=t.host).getCustomTransformers)?void 0:c.call(l,n)))})):(T(2,o),5===u?b(r,o):3===u?v(r,o,a):void 0),done:p}:{kind:e,project:n,projectPath:r,buildOrder:s,getCompilerOptions:()=>a.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(e,t)=>4!==u?d:S(e,t),done:p};function p(n,o,i){return T(8,n,o,i),br(0===e?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),qq(t,r)}function f(e){return T(0),l&&e(l)}function m(e){return f(e)||o}function _(){var e,o,i;if(In.assert(void 0===l),t.options.dry)return DJ(t,Oa.A_non_dry_build_would_build_project_0,n),c=1,void(u=7);if(t.options.verbose&&DJ(t,Oa.Building_project_0,n),0===a.fileNames.length)return LJ(t,r,aH(a)),c=0,void(u=7);const{host:s,compilerHost:d}=t;if(t.projectCompilerOptions=a.options,null==(e=t.moduleResolutionCache)||e.update(a.options),null==(o=t.typeReferenceDirectiveResolutionCache)||o.update(a.options),l=s.createProgram(a.fileNames,a.options,d,function({options:e,builderPrograms:t,compilerHost:n},r,o){if(e.force)return;const i=t.get(r);return i||dq(o.options,n)}(t,r,a),aH(a),a.projectReferences),t.watch){const e=null==(i=t.moduleResolutionCache)?void 0:i.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(r,e&&new Set(Ye(e.values(),(e=>t.host.realpath&&(yF(e)||e.directoryExists)?t.host.realpath(ua(e.packageDirectory,"package.json")):ua(e.packageDirectory,"package.json"))))),t.builderPrograms.set(r,l)}u++}function h(e,n,o){e.length?({buildResult:c,step:u}=tJ(t,r,l,a,e,n,o)):u++}function g(e){In.assertIsDefined(l),h([...l.getConfigFileParsingDiagnostics(),...l.getOptionsDiagnostics(e),...l.getGlobalDiagnostics(e),...l.getSyntacticDiagnostics(void 0,e)],8,"Syntactic")}function y(e){h(In.checkDefined(l).getSemanticDiagnostics(void 0,e),16,"Semantic")}function v(e,o,i){var s,d,p;In.assertIsDefined(l),In.assert(3===u);const f=l.saveEmitState();let m;const _=[],{emitResult:h}=$K(l,(e=>(m||(m=[])).push(e)),void 0,void 0,((e,t,n,r,o,i)=>_.push({name:e,text:t,writeByteOrderMark:n,data:i})),o,!1,i||(null==(d=(s=t.host).getCustomTransformers)?void 0:d.call(s,n)));if(m)return l.restoreEmitState(f),({buildResult:c,step:u}=tJ(t,r,l,a,m,32,"Declaration file")),{emitSkipped:!0,diagnostics:h.diagnostics};const{host:g,compilerHost:y}=t,v=(null==(p=l.hasChangedEmitSignature)?void 0:p.call(l))?0:2,b=Mv(),S=new Map,T=l.getCompilerOptions(),x=ef(T);let A,I;return _.forEach((({name:n,text:o,writeByteOrderMark:i,data:a})=>{const s=kq(t,n);S.set(kq(t,n),n),(null==a?void 0:a.buildInfo)&&aJ(t,a.buildInfo,r,T,v);const l=(null==a?void 0:a.differsOnlyInMap)?bi(t.host,n):void 0;db(e?{writeFile:e}:y,b,n,o,i),(null==a?void 0:a.differsOnlyInMap)?t.host.setModifiedTime(n,l):!x&&t.watch&&(A||(A=iJ(t,r))).set(s,I||(I=Tq(t.host)))})),E(b,S,_.length?_[0].name:zV(a,!g.useCaseSensitiveFileNames()),v),h}function b(e,n){In.assertIsDefined(l),In.assert(5===u);const o=l.emitBuildInfo(((n,o,i,a,s,c)=>{(null==c?void 0:c.buildInfo)&&aJ(t,c.buildInfo,r,l.getCompilerOptions(),2),e?e(n,o,i,a,s,c):t.compilerHost.writeFile(n,o,i,a,s,c)}),n);return o.diagnostics.length&&(MJ(t,o.diagnostics),t.diagnostics.set(r,[...t.diagnostics.get(r),...o.diagnostics]),c&=64),o.emittedFiles&&t.write&&o.emittedFiles.forEach((e=>Zq(t,a,e))),eJ(t,l,a),u=7,o}function E(e,n,o,i){const s=e.getDiagnostics();return s.length?(({buildResult:c,step:u}=tJ(t,r,l,a,s,64,"Emit")),s):(t.write&&n.forEach((e=>Zq(t,a,e))),pJ(t,a,r,Oa.Updating_unchanged_output_timestamps_of_project_0,n),t.diagnostics.delete(r),t.projectStatus.set(r,{type:1,oldestOutputFileName:o}),eJ(t,l,a),u=7,c=i,s)}function S(o,l){var p,f,m,_;if(In.assert(1===e),t.options.dry)return DJ(t,Oa.A_non_dry_build_would_update_output_of_project_0,n),c=1,void(u=7);t.options.verbose&&DJ(t,Oa.Updating_output_of_project_0,n);const{compilerHost:h}=t;t.projectCompilerOptions=a.options,null==(f=(p=t.host).beforeEmitBundle)||f.call(p,a);const g=UV(a,h,(e=>{const n=Wq(t,e.path);return Fq(t,n,Pq(t,n))}),l||(null==(_=(m=t.host).getCustomTransformers)?void 0:_.call(m,n)));if(ht(g))return DJ(t,Oa.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,n,CJ(t,g)),u=6,d=Jq(0,t,n,r,i,a,s);In.assert(!!g.length);const y=Mv(),v=new Map;let b=2;const S=t.buildInfoCache.get(r).buildInfo||void 0;g.forEach((({name:e,text:n,writeByteOrderMark:i,data:s})=>{var l,c;v.set(kq(t,e),e),(null==s?void 0:s.buildInfo)&&((null==(l=s.buildInfo.program)?void 0:l.outSignature)!==(null==(c=null==S?void 0:S.program)?void 0:c.outSignature)&&(b&=-3),aJ(t,s.buildInfo,r,a.options,b)),db(o?{writeFile:o}:h,y,e,n,i)}));return{emitSkipped:!1,diagnostics:E(y,v,g[0].name,b)}}function T(e,o,l,p){for(;u<=e&&u<8;){const e=u;switch(u){case 0:_();break;case 1:g(o);break;case 2:y(o);break;case 3:v(l,o,p);break;case 5:b(l,o);break;case 4:S(l,p);break;case 6:In.checkDefined(d).done(o,l,p),u=8;break;case 7:_J(t,n,r,i,a,s,In.checkDefined(c)),u++}In.assert(u>e)}}}function Xq({options:e},t,n){return!(3===t.type&&!e.force)||(0===n.fileNames.length||!!aH(n).length||!ef(n.options))}function $q(e,t,n){if(!e.projectPendingBuild.size)return;if(xq(t))return;const{options:r,projectPendingBuild:o}=e;for(let i=0;i<t.length;i++){const a=t[i],s=Pq(e,a),l=e.projectPendingBuild.get(s);if(void 0===l)continue;n&&(n=!1,wJ(e,t));const c=Fq(e,a,s);if(!c){kJ(e,s),o.delete(s);continue}2===l?(SJ(e,a,s,c),TJ(e,s,c),xJ(e,a,s,c),AJ(e,a,s,c),IJ(e,a,s,c)):1===l&&(c.fileNames=RO(c.options.configFile.configFileSpecs,ra(a),c.options,e.parseConfigFileHost),uO(c.fileNames,a,c.options.configFile.configFileSpecs,c.errors,dO(c.raw)),AJ(e,a,s,c),IJ(e,a,s,c));const d=uJ(e,c,s);if(!r.force){if(1===d.type){OJ(e,a,d),LJ(e,s,aH(c)),o.delete(s),r.dry&&DJ(e,Oa.Project_0_is_up_to_date,a);continue}if(2===d.type||15===d.type)return LJ(e,s,aH(c)),{kind:2,status:d,project:a,projectPath:s,projectIndex:i,config:c}}if(12!==d.type){if(16!==d.type)return{kind:Xq(e,d,c)?0:1,status:d,project:a,projectPath:s,projectIndex:i,config:c};OJ(e,a,d),LJ(e,s,aH(c)),o.delete(s)}else OJ(e,a,d),LJ(e,s,aH(c)),o.delete(s),r.verbose&&DJ(e,d.upstreamProjectBlocked?Oa.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:Oa.Skipping_build_of_project_0_because_its_dependency_1_has_errors,a,d.upstreamProjectName)}}function Yq(e,t,n){return OJ(e,t.project,t.status),2!==t.kind?Jq(t.kind,e,t.project,t.projectPath,t.projectIndex,t.config,n):function(e,t,n,r,o){let i=!0;return{kind:2,project:t,projectPath:n,buildOrder:o,getCompilerOptions:()=>r.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{mJ(e,r,n),i=!1},done:()=>(i&&mJ(e,r,n),br("SolutionBuilder::Timestamps only updates"),qq(e,n))}}(e,t.project,t.projectPath,t.config,n)}function Qq(e,t,n){const r=$q(e,t,n);return r?Yq(e,r,t):r}function Zq({write:e},t,n){e&&t.options.listEmittedFiles&&e(`TSFILE: ${n}`)}function eJ(e,t,n){t?(e.write&&VK(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(n),e.projectCompilerOptions=e.baseCompilerOptions}function tJ(e,t,n,r,o,i,a){const s=n&&!ob(n.getCompilerOptions());return LJ(e,t,o),e.projectStatus.set(t,{type:0,reason:`${a} errors`}),s?{buildResult:i,step:5}:(eJ(e,n,r),{buildResult:i,step:7})}function nJ(e){return!!e.watcher}function rJ(e,t){const n=kq(e,t),r=e.filesWatched.get(n);if(e.watch&&r){if(!nJ(r))return r;if(r.modifiedTime)return r.modifiedTime}const o=bi(e.host,t);return e.watch&&(r?r.modifiedTime=o:e.filesWatched.set(n,o)),o}function oJ(e,t,n,r,o,i,a){const s=kq(e,t),l=e.filesWatched.get(s);if(l&&nJ(l))l.callbacks.push(n);else{const c=e.watchFile(t,((t,n,r)=>{const o=In.checkDefined(e.filesWatched.get(s));In.assert(nJ(o)),o.modifiedTime=r,o.callbacks.forEach((e=>e(t,n,r)))}),r,o,i,a);e.filesWatched.set(s,{callbacks:[n],watcher:c,modifiedTime:l})}return{close:()=>{const t=In.checkDefined(e.filesWatched.get(s));In.assert(nJ(t)),1===t.callbacks.length?(e.filesWatched.delete(s),lU(t)):on(t.callbacks,n)}}}function iJ(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function aJ(e,t,n,r,o){const i=SV(r),a=sJ(e,i,n),s=Tq(e.host);a?(a.buildInfo=t,a.modifiedTime=s,2&o||(a.latestChangedDtsTime=s)):e.buildInfoCache.set(n,{path:kq(e,i),buildInfo:t,modifiedTime:s,latestChangedDtsTime:2&o?void 0:s})}function sJ(e,t,n){const r=kq(e,t),o=e.buildInfoCache.get(n);return(null==o?void 0:o.path)===r?o:void 0}function lJ(e,t,n,r){const o=kq(e,t),i=e.buildInfoCache.get(n);if(void 0!==i&&i.path===o)return i.buildInfo||void 0;const a=e.readFileWithCache(t),s=a?VV(t,a):void 0;return e.buildInfoCache.set(n,{path:o,buildInfo:s||!1,modifiedTime:r||ci}),s}function cJ(e,t,n,r){if(n<rJ(e,t))return{type:6,outOfDateOutputFileName:r,newerInputFileName:t}}function dJ(e,t,n){return e.buildInfoCache.get(n).path===t.path}function uJ(e,n,r){if(void 0===n)return{type:0,reason:"File deleted mid-build"};const i=e.projectStatus.get(r);if(void 0!==i)return i;br("SolutionBuilder::beforeUpToDateCheck");const a=function(e,n,r){var i,a,s;if(!n.fileNames.length&&!dO(n.raw))return{type:16};let l;const c=!!e.options.force;if(n.projectReferences){e.projectStatus.set(r,{type:13});for(const t of n.projectReferences){const n=mH(t),r=Pq(e,n),o=Fq(e,n,r),i=uJ(e,o,r);if(13!==i.type&&16!==i.type){if(0===i.type||12===i.type)return{type:12,upstreamProjectName:t.path,upstreamProjectBlocked:12===i.type};if(1!==i.type)return{type:11,upstreamProjectName:t.path};c||(l||(l=[])).push({ref:t,refStatus:i,resolvedRefPath:r,resolvedConfig:o})}}}if(c)return{type:17};const{host:d}=e,u=SV(n.options);let p,f,m,_,h,g=vq;if(u){const o=sJ(e,u,r);if(f=(null==o?void 0:o.modifiedTime)||bi(d,u),f===ci)return o||e.buildInfoCache.set(r,{path:kq(e,u),buildInfo:!1,modifiedTime:f}),{type:4,missingOutputFileName:u};const l=lJ(e,u,r,f);if(!l)return{type:5,fileName:u};if((l.bundle||l.program)&&l.version!==t)return{type:14,version:l.version};if(l.program){if((null==(i=l.program.changeFileSet)?void 0:i.length)||(n.options.noEmit?se(l.program.semanticDiagnosticsPerFile,mt):(null==(a=l.program.affectedFilesPendingEmit)?void 0:a.length)||(null==(s=l.program.emitDiagnosticsPerFile)?void 0:s.length)))return{type:8,buildInfoFile:u};if(!n.options.noEmit&&IH(n.options,l.program.options||{}))return{type:9,buildInfoFile:u};m=l.program}g=f,p=u}let y=yq,v=!1;const b=new Set;for(const t of n.fileNames){const n=rJ(e,t);if(n===ci)return{type:0,reason:`${t} does not exist`};if(f&&f<n){let n,r;if(m){_||(_=nK(m,u,d)),n=_.fileInfos.get(kq(e,t));const o=n?e.readFileWithCache(t):void 0;r=void 0!==o?tq(d,o):void 0,n&&n===r&&(v=!0)}if(!n||n!==r)return{type:6,outOfDateOutputFileName:u,newerInputFileName:t}}n>y&&(h=t,y=n),m&&b.add(kq(e,t))}if(m){_||(_=nK(m,u,d));for(const e of _.roots)if(!b.has(e))return{type:10,buildInfoFile:u,inputFile:e}}if(!u){const t=FV(n,!d.useCaseSensitiveFileNames()),o=iJ(e,r);for(const n of t){const t=kq(e,n);let r=null==o?void 0:o.get(t);if(r||(r=bi(e.host,n),null==o||o.set(t,r)),r===ci)return{type:4,missingOutputFileName:n};if(r<y)return{type:6,outOfDateOutputFileName:n,newerInputFileName:h};r<g&&(g=r,p=n)}}const E=e.buildInfoCache.get(r);let S,T=!1,A=!1;if(l)for(const{ref:t,refStatus:o,resolvedConfig:x,resolvedRefPath:N}of l){if(A=A||!!t.prepend,o.newestInputFileTime&&o.newestInputFileTime<=g)continue;if(E&&dJ(e,E,N))return{type:7,outOfDateOutputFileName:u,newerProjectName:t.path};const n=fJ(e,x.options,N);if(!(n&&n<=g))return In.assert(void 0!==p,"Should have an oldest output filename here"),{type:7,outOfDateOutputFileName:p,newerProjectName:t.path};T=!0,S=t.path}const I=cJ(e,n.options.configFilePath,g,p);if(I)return I;const R=x(n.options.configFile.extendedSourceFiles||o,(t=>cJ(e,t,g,p)));if(R)return R;const C=e.lastCachedPackageJsonLookups.get(r),D=C&&zf(C,(t=>cJ(e,t,g,p)));return D||(A&&T?{type:3,outOfDateOutputFileName:p,newerProjectName:S}:{type:T?2:v?15:1,newestInputFileTime:y,newestInputFileName:h,oldestOutputFileName:p})}(e,n,r);return br("SolutionBuilder::afterUpToDateCheck"),Er("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,a),a}function pJ(e,t,n,r,o){if(t.options.noEmit)return;let i;const a=SV(t.options);if(a)return(null==o?void 0:o.has(kq(e,a)))||(e.options.verbose&&DJ(e,r,t.options.configFilePath),e.host.setModifiedTime(a,i=Tq(e.host)),sJ(e,a,n).modifiedTime=i),void e.outputTimeStamps.delete(n);const{host:s}=e,l=FV(t,!s.useCaseSensitiveFileNames()),c=iJ(e,n),d=c?new Set:void 0;if(!o||l.length!==o.size){let n=!!e.options.verbose;for(const a of l){const l=kq(e,a);(null==o?void 0:o.has(l))||(n&&(n=!1,DJ(e,r,t.options.configFilePath)),s.setModifiedTime(a,i||(i=Tq(e.host))),c&&(c.set(l,i),d.add(l)))}}null==c||c.forEach(((e,t)=>{(null==o?void 0:o.has(t))||d.has(t)||c.delete(t)}))}function fJ(e,t,n){if(!t.composite)return;const r=In.checkDefined(e.buildInfoCache.get(n));if(void 0!==r.latestChangedDtsTime)return r.latestChangedDtsTime||void 0;const o=r.buildInfo&&r.buildInfo.program&&r.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(ma(r.buildInfo.program.latestChangedDtsFile,ra(r.path))):void 0;return r.latestChangedDtsTime=o||!1,o}function mJ(e,t,n){if(e.options.dry)return DJ(e,Oa.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);pJ(e,t,n,Oa.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:zV(t,!e.host.useCaseSensitiveFileNames())})}function _J(e,t,n,r,o,i,a){if(!(124&a)&&o.options.composite)for(let s=r+1;s<i.length;s++){const r=i[s],o=Pq(e,r);if(e.projectPendingBuild.has(o))continue;const l=Fq(e,r,o);if(l&&l.projectReferences)for(const i of l.projectReferences){if(Pq(e,Wq(e,i.path))!==n)continue;const r=e.projectStatus.get(o);if(r)switch(r.type){case 1:if(2&a){i.prepend?e.projectStatus.set(o,{type:3,outOfDateOutputFileName:r.oldestOutputFileName,newerProjectName:t}):r.type=2;break}case 15:case 2:case 3:2&a||e.projectStatus.set(o,{type:7,outOfDateOutputFileName:3===r.type?r.outOfDateOutputFileName:r.oldestOutputFileName,newerProjectName:t});break;case 12:Pq(e,Wq(e,r.upstreamProjectName))===n&&Uq(e,o)}Hq(e,o,0);break}}}function hJ(e,t,n,r,o,i){br("SolutionBuilder::beforeBuild");const a=function(e,t,n,r,o,i){const a=Gq(e,t,i);if(!a)return 3;Kq(e,n);let s=!0,l=0;for(;;){const t=Qq(e,a,s);if(!t)break;s=!1,t.done(n,r,null==o?void 0:o(t.project)),e.diagnostics.has(t.projectPath)||l++}return Vq(e),PJ(e,a),function(e,t){if(!e.watchAllProjectsPending)return;br("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const n of Aq(t)){const t=Pq(e,n),r=Fq(e,n,t);SJ(e,n,t,r),TJ(e,t,r),r&&(xJ(e,n,t,r),AJ(e,n,t,r),IJ(e,n,t,r))}br("SolutionBuilder::afterWatcherCreation"),Er("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}(e,a),xq(a)?4:a.some((t=>e.diagnostics.has(Pq(e,t))))?l?2:1:0}(e,t,n,r,o,i);return br("SolutionBuilder::afterBuild"),Er("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),a}function gJ(e,t,n){br("SolutionBuilder::beforeClean");const r=function(e,t,n){const r=Gq(e,t,n);if(!r)return 3;if(xq(r))return MJ(e,r.circularDiagnostics),4;const{options:o,host:i}=e,a=o.dry?[]:void 0;for(const s of r){const t=Pq(e,s),n=Fq(e,s,t);if(void 0===n){kJ(e,t);continue}const r=FV(n,!i.useCaseSensitiveFileNames());if(!r.length)continue;const o=new Set(n.fileNames.map((t=>kq(e,t))));for(const s of r)o.has(kq(e,s))||i.fileExists(s)&&(a?a.push(s):(i.deleteFile(s),yJ(e,t,0)))}a&&DJ(e,Oa.A_non_dry_build_would_delete_the_following_files_Colon_0,a.map((e=>`\r\n * ${e}`)).join(""));return 0}(e,t,n);return br("SolutionBuilder::afterClean"),Er("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),r}function yJ(e,t,n){e.host.getParsedCommandLine&&1===n&&(n=2),2===n&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,Uq(e,t),Hq(e,t,n),jq(e)}function vJ(e,t,n){e.reportFileChangeDetected=!0,yJ(e,t,n),bJ(e,250,!0)}function bJ(e,t,n){const{hostWithWatch:r}=e;r.setTimeout&&r.clearTimeout&&(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout(EJ,t,"timerToBuildInvalidatedProject",e,n))}function EJ(e,t,n){br("SolutionBuilder::beforeBuild");const r=function(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),NJ(e,Oa.File_change_detected_Starting_incremental_compilation));let n=0;const r=Bq(e),o=Qq(e,r,!1);if(o)for(o.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const o=$q(e,r,!1);if(!o)break;if(2!==o.kind&&(t||5===n))return void bJ(e,100,!1);Yq(e,o,r).done(),2!==o.kind&&n++}return Vq(e),r}(t,n);br("SolutionBuilder::afterBuild"),Er("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&PJ(t,r)}function SJ(e,t,n,r){e.watch&&!e.allWatchedConfigFiles.has(n)&&e.allWatchedConfigFiles.set(n,oJ(e,t,(()=>vJ(e,n,2)),2e3,null==r?void 0:r.watchOptions,NK.ConfigFile,t))}function TJ(e,t,n){ZV(t,null==n?void 0:n.options,e.allWatchedExtendedConfigFiles,((t,r)=>oJ(e,t,(()=>{var t;return null==(t=e.allWatchedExtendedConfigFiles.get(r))?void 0:t.projects.forEach((t=>vJ(e,t,2)))}),2e3,null==n?void 0:n.watchOptions,NK.ExtendedConfigFile)),(t=>kq(e,t)))}function xJ(e,t,n,r){e.watch&&rU(Sq(e.allWatchedWildcardDirectories,n),r.wildcardDirectories,((o,i)=>e.watchDirectory(o,(i=>{var a;oU({watchedDirPath:kq(e,o),fileOrDirectory:i,fileOrDirectoryPath:kq(e,i),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(n)||(null==(a=Oq(e,n))?void 0:a.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:t=>e.writeLog(t),toPath:t=>kq(e,t)})||vJ(e,n,1)}),i,null==r?void 0:r.watchOptions,NK.WildcardDirectory,t)))}function AJ(e,t,n,r){e.watch&&xS(Sq(e.allWatchedInputFiles,n),new Set(r.fileNames),{createNewValue:o=>oJ(e,o,(()=>vJ(e,n,0)),250,null==r?void 0:r.watchOptions,NK.SourceFile,t),onDeleteValue:fS})}function IJ(e,t,n,r){e.watch&&e.lastCachedPackageJsonLookups&&xS(Sq(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:o=>oJ(e,o,(()=>vJ(e,n,0)),2e3,null==r?void 0:r.watchOptions,NK.PackageJson,t),onDeleteValue:fS})}function RJ(e,t,n,r,o){const i=Lq(e,t,n,r,o);return{build:(e,t,n,r)=>hJ(i,e,t,n,r),clean:e=>gJ(i,e),buildReferences:(e,t,n,r)=>hJ(i,e,t,n,r,!0),cleanReferences:e=>gJ(i,e,!0),getNextInvalidatedProject:e=>(Kq(i,e),Qq(i,Bq(i),!1)),getBuildOrder:()=>Bq(i),getUpToDateStatusOfProject:e=>{const t=Wq(i,e),n=Pq(i,t);return uJ(i,Fq(i,t,n),n)},invalidateProject:(e,t)=>yJ(i,e,t||0),close:()=>function(e){SS(e.allWatchedConfigFiles,fS),SS(e.allWatchedExtendedConfigFiles,lU),SS(e.allWatchedWildcardDirectories,(e=>SS(e,lU))),SS(e.allWatchedInputFiles,(e=>SS(e,fS))),SS(e.allWatchedPackageJsonFiles,(e=>SS(e,fS)))}(i)}}function CJ(e,t){return Ma(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function DJ(e,t,...n){e.host.reportSolutionBuilderStatus(sT(t,...n))}function NJ(e,t,...n){var r,o;null==(o=(r=e.hostWithWatch).onWatchStatusChange)||o.call(r,sT(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function MJ({host:e},t){t.forEach((t=>e.reportDiagnostic(t)))}function LJ(e,t,n){MJ(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function kJ(e,t){LJ(e,t,[e.configFileCache.get(t)])}function PJ(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:r}=e;let i=0,a=[];xq(t)?(wJ(e,t.buildOrder),MJ(e,t.circularDiagnostics),n&&(i+=FK(t.circularDiagnostics)),n&&(a=[...a,...WK(t.circularDiagnostics)])):(t.forEach((t=>{const n=Pq(e,t);e.projectErrorsReported.has(n)||MJ(e,r.get(n)||o)})),n&&r.forEach((e=>i+=FK(e))),n&&r.forEach((e=>[...a,...WK(e)]))),e.watch?NJ(e,zK(i),i):e.host.reportErrorSummary&&e.host.reportErrorSummary(i,a)}function wJ(e,t){e.options.verbose&&DJ(e,Oa.Projects_in_this_build_Colon_0,t.map((t=>"\r\n * "+CJ(e,t))).join(""))}function OJ(e,n,r){e.options.verbose&&function(e,n,r){switch(r.type){case 6:return DJ(e,Oa.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,CJ(e,n),CJ(e,r.outOfDateOutputFileName),CJ(e,r.newerInputFileName));case 7:return DJ(e,Oa.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,CJ(e,n),CJ(e,r.outOfDateOutputFileName),CJ(e,r.newerProjectName));case 4:return DJ(e,Oa.Project_0_is_out_of_date_because_output_file_1_does_not_exist,CJ(e,n),CJ(e,r.missingOutputFileName));case 5:return DJ(e,Oa.Project_0_is_out_of_date_because_there_was_error_reading_file_1,CJ(e,n),CJ(e,r.fileName));case 8:return DJ(e,Oa.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,CJ(e,n),CJ(e,r.buildInfoFile));case 9:return DJ(e,Oa.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,CJ(e,n),CJ(e,r.buildInfoFile));case 10:return DJ(e,Oa.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,CJ(e,n),CJ(e,r.buildInfoFile),CJ(e,r.inputFile));case 1:if(void 0!==r.newestInputFileTime)return DJ(e,Oa.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,CJ(e,n),CJ(e,r.newestInputFileName||""),CJ(e,r.oldestOutputFileName||""));break;case 3:return DJ(e,Oa.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,CJ(e,n),CJ(e,r.newerProjectName));case 2:return DJ(e,Oa.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,CJ(e,n));case 15:return DJ(e,Oa.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,CJ(e,n));case 11:return DJ(e,Oa.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,CJ(e,n),CJ(e,r.upstreamProjectName));case 12:return DJ(e,r.upstreamProjectBlocked?Oa.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:Oa.Project_0_can_t_be_built_because_its_dependency_1_has_errors,CJ(e,n),CJ(e,r.upstreamProjectName));case 0:return DJ(e,Oa.Failed_to_parse_file_0_Colon_1,CJ(e,n),r.reason);case 14:return DJ(e,Oa.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,CJ(e,n),r.version,t);case 17:DJ(e,Oa.Project_0_is_being_forcibly_rebuilt,CJ(e,n))}}(e,n,r)}var FJ,WJ,zJ,BJ,GJ,jJ,VJ,UJ,HJ,KJ,qJ=b({"src/compiler/tsbuildPublic.ts"(){JJ(),oi(),yq=new Date(-864e13),vq=new Date(864e13),bq=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(bq||{})}}),JJ=b({"src/compiler/_namespaces/ts.ts"(){S(),Gn(),jn(),rr(),hr(),gr(),ii(),gi(),ji(),Fa(),ts(),Js(),Cf(),NA(),kA(),OA(),KA(),cI(),NR(),OR(),$M(),gk(),Pk(),pw(),qO(),WW(),XW(),QW(),nB(),vB(),WB(),yG(),CG(),kG(),UG(),XG(),YG(),ej(),nj(),oj(),aj(),cj(),uj(),fj(),_j(),gj(),Aj(),Rj(),Dj(),Lj(),Pj(),Fj(),zj(),Gj(),Vj(),Hj(),$j(),rV(),vV(),YV(),SU(),vH(),bH(),xH(),oK(),lK(),MK(),cq(),hq(),Eq(),qJ(),Vz(),oi()}});function XJ(e){return hi.args.includes(e)}function $J(e){const t=hi.args.indexOf(e);return t>=0&&t<hi.args.length-1?hi.args[t+1]:void 0}function YJ(){const e=new Date;return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`}function QJ(e){return KJ+e.replace(/\n/g,KJ)}function ZJ(e){return QJ(JSON.stringify(e,void 0,2))}var eX,tX,nX,rX,oX,iX,aX=b({"src/jsTyping/shared.ts"(){var e;UX(),FJ="action::set",WJ="action::invalidate",zJ="action::packageInstalled",BJ="event::typesRegistry",GJ="event::beginInstallTypes",jJ="event::endInstallTypes",VJ="event::initializationFailed",UJ="action::watchTypingLocations",(e=HJ||(HJ={})).GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation",KJ="\n "}}),sX=b({"src/jsTyping/types.ts"(){}}),lX=b({"src/jsTyping/_namespaces/ts.server.ts"(){aX(),sX()}});function cX(t,n){return new Pn(Ke(n,`ts${e}`)||Ke(n,"latest")).compareTo(t.version)<=0}function dX(e){return rX.has(e)?"node":e}function uX(e,t){const n=Nw(t,(t=>e.readFile(t)));return new Map(Object.entries(n.config))}function pX(e,t){var n;const r=Nw(t,(t=>e.readFile(t)));if(null==(n=r.config)?void 0:n.simpleMap)return new Map(Object.entries(r.config.simpleMap))}function fX(e,t,n,r,o,i,a,s,l,c){if(!a||!a.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const d=new Map;n=Z(n,(e=>{const t=_a(e);if(nx(t))return t}));const u=[];a.include&&g(a.include,"Explicitly included types");const p=a.exclude||[];if(!c.types){const e=new Set(n.map(ra));e.add(r),e.forEach((e=>{y(e,"bower.json","bower_components",u),y(e,"package.json","node_modules",u)}))}if(a.disableFilenameBasedTypeAcquisition||function(e){const n=Z(e,(e=>{if(!nx(e))return;const t=en(cx(It(oa(e))));return o.get(t)}));n.length&&g(n,"Inferred typings from file names");se(e,(e=>Yi(e,".jsx")))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),h("react"))}(n),s){g(pe(s.map(dX),wt,jt),"Inferred typings from unresolved imports")}for(const v of p){d.delete(v)&&t&&t(`Typing for ${v} is in exclude list, will be ignored.`)}i.forEach(((e,t)=>{const n=l.get(t);!1===d.get(t)&&void 0!==n&&cX(e,n)&&d.set(t,e.typingLocation)}));const f=[],m=[];d.forEach(((e,t)=>{e?m.push(e):f.push(t)}));const _={cachedTypingPaths:m,newTypingNames:f,filesToWatch:u};return t&&t(`Finished typings discovery:${ZJ(_)}`),_;function h(e){d.has(e)||d.set(e,!1)}function g(e,n){t&&t(`${n}: ${JSON.stringify(e)}`),x(e,h)}function y(n,r,o,i){const a=ua(n,r);let s,l;e.fileExists(a)&&(i.push(a),s=Nw(a,(t=>e.readFile(t))).config,l=J([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],qe),g(l,`Typing names in '${a}' dependencies`));const c=ua(n,o);if(i.push(c),!e.directoryExists(c))return;const u=[],p=l?l.map((e=>ua(c,e,r))):e.readDirectory(c,[".json"],void 0,void 0,3).filter((e=>{if(oa(e)!==r)return!1;const t=sa(_a(e)),n="@"===t[t.length-3][0];return n&&It(t[t.length-4])===o||!n&&It(t[t.length-3])===o}));t&&t(`Searching for typing names in ${c}; all files: ${JSON.stringify(p)}`);for(const f of p){const n=_a(f),r=Nw(n,(t=>e.readFile(t))).config;if(!r.name)continue;const o=r.types||r.typings;if(o){const i=ma(o,ra(n));e.fileExists(i)?(t&&t(` Package '${r.name}' provides its own types.`),d.set(r.name,i)):t&&t(` Package '${r.name}' provides its own types but they are missing.`)}else u.push(r.name)}g(u," Found package names")}}function mX(e){return _X(e,!0)}function _X(e,t){if(!e)return 1;if(e.length>iX)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){const t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){const e=_X(t[1],!1);if(0!==e)return{name:t[1],isScopeName:!0,result:e};const n=_X(t[2],!1);return 0!==n?{name:t[2],isScopeName:!1,result:n}:0}}return encodeURIComponent(e)!==e?5:0}function hX(e,t){return"object"===typeof e?gX(t,e.result,e.name,e.isScopeName):gX(t,e,t,!1)}function gX(e,t,n,r){const o=r?"Scope":"Package";switch(t){case 1:return`'${e}':: ${o} name '${n}' cannot be empty`;case 2:return`'${e}':: ${o} name '${n}' should be less than ${iX} characters`;case 3:return`'${e}':: ${o} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${o} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${o} name '${n}' contains non URI safe characters`;case 0:return In.fail();default:In.assertNever(t)}}var yX=b({"src/jsTyping/jsTyping.ts"(){UX(),lX(),tX=(eX=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"]).map((e=>`node:${e}`)),nX=[...eX,...tX],rX=new Set(nX),oX=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(oX||{}),iX=214}}),vX={};E(vX,{NameValidationResult:()=>oX,discoverTypings:()=>fX,isTypingUpToDate:()=>cX,loadSafeList:()=>uX,loadTypesMap:()=>pX,nodeCoreModuleList:()=>nX,nodeCoreModules:()=>rX,nonRelativeModuleNameForTypingCache:()=>dX,prefixedNodeCoreModuleList:()=>tX,renderPackageNameValidationFailure:()=>hX,validatePackageName:()=>mX});var bX,EX,SX,TX,xX,AX,IX,RX,CX,DX,NX,MX,LX,kX,PX,wX,OX,FX,WX,zX,BX,GX,jX,VX=b({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){yX()}}),UX=b({"src/jsTyping/_namespaces/ts.ts"(){JJ(),VX(),lX()}});function HX(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var KX,qX,JX,XX,$X,YX,QX,ZX,e$,t$=b({"src/services/types.ts"(){(e=>{class t{constructor(e){this.text=e}getText(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)}getLength(){return this.text.length}getChangeRange(){}}e.fromString=function(e){return new t(e)}})(bX||(bX={})),EX=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(EX||{}),SX=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(SX||{}),TX=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(TX||{}),xX={},AX=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(AX||{}),IX=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(IX||{}),RX=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(RX||{}),CX=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(CX||{}),DX=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(DX||{}),NX=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(NX||{}),MX=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(MX||{}),LX=HX("\n"),kX=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(kX||{}),PX=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(PX||{}),wX=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(wX||{}),OX=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(OX||{}),FX=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(FX||{}),WX=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(WX||{}),zX=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(zX||{}),BX=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(BX||{}),GX=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(GX||{}),jX=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(jX||{})}});function n$(e){switch(e.kind){case 260:return $h(e)&&fc(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return void 0===e.name?3:2;case 306:case 263:return 3;case 267:return Pm(e)||1===zW(e)?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function r$(e){const t=(e=oY(e)).parent;return 312===e.kind?1:CN(t)||MN(t)||wN(t)||RN(t)||yN(t)||hN(t)&&e===t.name?7:o$(e)?function(e){const t=166===e.kind?e:gC(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&271===t.parent.kind?7:4}(e):Iy(e)?n$(t):bd(e)&&Cl(e,_n(sM,rp,lM))?7:function(e){RE(e)&&(e=e.parent);switch(e.kind){case 110:return!Bh(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return j_(e.parent)}return!1}(e)?2:function(e){return function(e){let t=e,n=!0;if(166===t.parent.kind){for(;t.parent&&166===t.parent.kind;)t=t.parent;n=t.right===e}return 183===t.parent.kind&&!n}(e)||function(e){let t=e,n=!0;if(211===t.parent.kind){for(;t.parent&&211===t.parent.kind;)t=t.parent;n=t.name===e}if(!n&&233===t.parent.kind&&298===t.parent.parent.kind){const e=t.parent.parent.parent;return 263===e.kind&&119===t.parent.parent.token||264===e.kind&&96===t.parent.parent.token}return!1}(e)}(e)?4:vC(t)?(In.assert(BM(t.parent)),2):ZC(t)?3:1}function o$(e){for(;166===e.parent.kind;)e=e.parent;return qh(e.parent)&&e.parent.moduleReference===e}function i$(e,t=!1,n=!1){return m$(e,dD,u$,t,n)}function a$(e,t=!1,n=!1){return m$(e,uD,u$,t,n)}function s$(e,t=!1,n=!1){return m$(e,ru,u$,t,n)}function l$(e,t=!1,n=!1){return m$(e,pD,p$,t,n)}function c$(e,t=!1,n=!1){return m$(e,EC,u$,t,n)}function d$(e,t=!1,n=!1){return m$(e,ju,f$,t,n)}function u$(e){return e.expression}function p$(e){return e.tag}function f$(e){return e.tagName}function m$(e,t,n,r,o){let i=r?h$(e):_$(e);return o&&(i=EL(i)),!!i&&!!i.parent&&t(i.parent)&&n(i.parent)===i}function _$(e){return x$(e)?e.parent:e}function h$(e){return x$(e)||A$(e)?e.parent:e}function g$(e,t){for(;e;){if(256===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}}function y$(e,t){return!!lD(e.expression)&&e.expression.name.text===t}function v$(e){var t;return nC(e)&&(null==(t=yt(e.parent,Vc))?void 0:t.label)===e}function b$(e){var t;return nC(e)&&(null==(t=yt(e.parent,tN))?void 0:t.label)===e}function E$(e){return b$(e)||v$(e)}function S$(e){var t;return(null==(t=yt(e.parent,Ku))?void 0:t.tagName)===e}function T$(e){var t;return(null==(t=yt(e.parent,gC))?void 0:t.right)===e}function x$(e){var t;return(null==(t=yt(e.parent,lD))?void 0:t.name)===e}function A$(e){var t;return(null==(t=yt(e.parent,cD))?void 0:t.argumentExpression)===e}function I$(e){var t;return(null==(t=yt(e.parent,pN))?void 0:t.name)===e}function R$(e){var t;return nC(e)&&(null==(t=yt(e.parent,Td))?void 0:t.name)===e}function C$(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return jl(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return 199===e.parent.parent.kind;default:return!1}}function D$(e){return Uh(e.parent.parent)&&Hh(e.parent.parent)===e}function N$(e){for(Kg(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function M$(e){switch(e.kind){case 312:return uP(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(bv(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:n}=e;return Td(n)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Gb(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const r=Eg(e),{right:o}=e;switch(r){case 7:case 8:case 9:case 0:default:return"";case 1:case 2:const e=M$(o);return""===e?"const":e;case 3:case 5:return _D(o)?"method":"property";case 4:return"property";case 6:return"local class"}case 80:return yN(e.parent)?"alias":"";case 277:const i=M$(e.expression);return""===i?"const":i;default:return""}function t(e){return D_(e)?"const":N_(e)?"let":"var"}}function L$(e){switch(e.kind){case 110:return!0;case 80:return Tb(e)&&169===e.parent.kind;default:return!1}}function k$(e,t){return us(t)[t.getLineAndCharacterOfPosition(e).line]}function P$(e,t){return W$(e.pos,e.end,t)}function w$(e,t){return F$(e,t.pos)&&F$(e,t.end)}function O$(e,t){return e.pos<=t&&t<=e.end}function F$(e,t){return e.pos<t&&t<e.end}function W$(e,t,n){return e<=n.pos&&t>=n.end}function z$(e,t,n){return e.pos<=t&&e.end>=n}function B$(e,t,n){return j$(e.pos,e.end,t,n)}function G$(e,t,n,r){return j$(e.getStart(t),e.end,n,r)}function j$(e,t,n,r){return Math.max(e,n)<Math.min(t,r)}function V$(e,t,n){return In.assert(e.pos<=t),t<e.end||!U$(e,n)}function U$(e,t){if(void 0===e||im(e))return!1;switch(e.kind){case 263:case 264:case 266:case 210:case 206:case 187:case 241:case 268:case 269:case 275:case 279:return H$(e,20,t);case 299:return U$(e.block,t);case 214:if(!e.arguments)return!0;case 213:case 217:case 196:return H$(e,22,t);case 184:case 185:return U$(e.type,t);case 176:case 177:case 178:case 262:case 218:case 174:case 173:case 180:case 179:case 219:return e.body?U$(e.body,t):e.type?U$(e.type,t):q$(e,22,t);case 267:return!!e.body&&U$(e.body,t);case 245:return e.elseStatement?U$(e.elseStatement,t):U$(e.thenStatement,t);case 244:return U$(e.expression,t)||q$(e,27,t);case 209:case 207:case 212:case 167:case 189:return H$(e,24,t);case 181:return e.type?U$(e.type,t):q$(e,24,t);case 296:case 297:return!1;case 248:case 249:case 250:case 247:return U$(e.statement,t);case 246:return q$(e,117,t)?H$(e,22,t):U$(e.statement,t);case 186:return U$(e.exprName,t);case 221:case 220:case 222:case 229:case 230:return U$(e.expression,t);case 215:return U$(e.template,t);case 228:return U$(Oe(e.templateSpans),t);case 239:return am(e.literal);case 278:case 272:return am(e.moduleSpecifier);case 224:return U$(e.operand,t);case 226:return U$(e.right,t);case 227:return U$(e.whenFalse,t);default:return!0}}function H$(e,t,n){const r=e.getChildren(n);if(r.length){const e=Fe(r);if(e.kind===t)return!0;if(27===e.kind&&1!==r.length)return r[r.length-2].kind===t}return!1}function K$(e){const t=X$(e);if(!t)return;return{listItemIndex:Im(t.getChildren(),e),list:t}}function q$(e,t,n){return!!J$(e,t,n)}function J$(e,t,n){return L(e.getChildren(n),(e=>e.kind===t))}function X$(e){const t=L(e.parent.getChildren(),(t=>qM(t)&&P$(t,e)));return In.assert(!t||F(t.getChildren(),e)),t}function $$(e){return 90===e.kind}function Y$(e){return 86===e.kind}function Q$(e){return 100===e.kind}function Z$(e,t){if(16777216&e.flags)return;const n=kZ(e,t);if(n)return n;const r=function(e){let t;return Cl(e,(e=>(Gd(e)&&(t=e),!gC(e.parent)&&!Gd(e.parent)&&!Wd(e.parent)))),t}(e);return r&&t.getTypeAtLocation(r)}function eY(e,t){if(!t)switch(e.kind){case 263:case 231:return function(e){if(Bl(e))return e.name;if(lN(e)){const t=e.modifiers&&L(e.modifiers,$$);if(t)return t}if(CD(e)){const t=L(e.getChildren(),Y$);if(t)return t}}(e);case 262:case 218:return function(e){if(Bl(e))return e.name;if(sN(e)){const t=L(e.modifiers,$$);if(t)return t}if(_D(e)){const t=L(e.getChildren(),Q$);if(t)return t}}(e);case 176:return e}if(Bl(e))return e.name}function tY(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(IN(e.importClause.namedBindings)){const t=We(e.importClause.namedBindings.elements);if(!t)return;return t.name}if(xN(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function nY(e,t){if(e.exportClause){if(NN(e.exportClause)){if(!We(e.exportClause.elements))return;return e.exportClause.elements[0].name}if(AN(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function rY(e,t){const{parent:n}=e;if(vd(e)&&(t||90!==e.kind)?vk(n)&&F(n.modifiers,e):86===e.kind?lN(n)||CD(e):100===e.kind?sN(n)||_D(e):120===e.kind?cN(n):94===e.kind?uN(n):156===e.kind?dN(n):145===e.kind||144===e.kind?pN(n):102===e.kind?hN(n):139===e.kind?CC(n):153===e.kind&&DC(n)){const e=eY(n,t);if(e)return e}if((115===e.kind||87===e.kind||121===e.kind)&&aN(n)&&1===n.declarations.length){const e=n.declarations[0];if(nC(e.name))return e.name}if(156===e.kind){if(yN(n)&&n.isTypeOnly){const e=tY(n.parent,t);if(e)return e}if(DN(n)&&n.isTypeOnly){const e=nY(n,t);if(e)return e}}if(130===e.kind){if(RN(n)&&n.propertyName||MN(n)&&n.propertyName||xN(n)||AN(n))return n.name;if(DN(n)&&n.exportClause&&AN(n.exportClause))return n.exportClause.name}if(102===e.kind&&gN(n)){const e=tY(n,t);if(e)return e}if(95===e.kind){if(DN(n)){const e=nY(n,t);if(e)return e}if(CN(n))return EL(n.expression)}if(149===e.kind&&wN(n))return n.expression;if(161===e.kind&&(gN(n)||DN(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((96===e.kind||119===e.kind)&&$N(n)&&n.token===e.kind){const e=function(e){if(1===e.types.length)return e.types[0].expression}(n);if(e)return e}if(96===e.kind){if(vC(n)&&n.constraint&&PC(n.constraint))return n.constraint.typeName;if(KC(n)&&PC(n.extendsType))return n.extendsType.typeName}if(140===e.kind&&qC(n))return n.typeParameter.name;if(103===e.kind&&vC(n)&&QC(n.parent))return n.name;if(143===e.kind&&$C(n)&&143===n.operator&&PC(n.type))return n.type.typeName;if(148===e.kind&&$C(n)&&148===n.operator&&zC(n.type)&&PC(n.type.elementType))return n.type.elementType.typeName;if(!t){if((105===e.kind&&uD(n)||116===e.kind&&vD(n)||114===e.kind&&yD(n)||135===e.kind&&bD(n)||127===e.kind&&ID(n)||91===e.kind&&gD(n))&&n.expression)return EL(n.expression);if((103===e.kind||104===e.kind)&&TD(n)&&n.operatorToken===e)return EL(n.right);if(130===e.kind&&MD(n)&&PC(n.type))return n.type.typeName;if(103===e.kind&&JD(n)||165===e.kind&&XD(n))return EL(n.expression)}return e}function oY(e){return rY(e,!1)}function iY(e){return rY(e,!0)}function aY(e,t){return sY(e,t,(e=>av(e)||Vy(e.kind)||rC(e)))}function sY(e,t,n){return cY(e,t,!1,n,!1)}function lY(e,t){return cY(e,t,!0,void 0,!1)}function cY(e,t,n,r,o){let i,a=e;for(;;){const o=a.getChildren(e),l=Ve(o,t,((e,t)=>t),((i,a)=>{const l=o[i].getEnd();if(l<t)return-1;const c=n?o[i].getFullStart():o[i].getStart(e,!0);return c>t?1:s(o[i],c,l)?o[i-1]&&s(o[i-1])?1:0:r&&c===t&&o[i-1]&&o[i-1].getEnd()===t&&s(o[i-1])?1:-1}));if(i)return i;if(!(l>=0&&o[l]))return a;a=o[l]}function s(a,s,l){if(l??(l=a.getEnd()),l<t)return!1;if(s??(s=n?a.getFullStart():a.getStart(e,!0)),s>t)return!1;if(t<l||t===l&&(1===a.kind||o))return!0;if(r&&l===t){const n=fY(t,e,a);if(n&&r(n))return i=n,!0}return!1}}function dY(e,t){let n=lY(e,t);for(;vY(n);){const t=pY(n,n.parent,e);if(!t)return;n=t}return n}function uY(e,t){const n=lY(e,t);return Yc(n)&&t>n.getStart(e)&&t<n.getEnd()?n:fY(t,e)}function pY(e,t,n){return function t(r){if(Yc(r)&&r.pos===e.end)return r;return I(r.getChildren(n),(r=>(r.pos<=e.pos&&r.end>e.end||r.pos===e.end)&&NY(r,n)?t(r):void 0))}(t)}function fY(e,t,n,r){const o=function o(i){if(mY(i)&&1!==i.kind)return i;const a=i.getChildren(t),s=Ve(a,e,((e,t)=>t),((t,n)=>e<a[t].end?!a[t-1]||e>=a[t-1].end?0:1:-1));if(s>=0&&a[s]){const n=a[s];if(e<n.end){if(n.getStart(t,!r)>=e||!NY(n,t)||vY(n)){const e=hY(a,s,t,i.kind);return e?!r&&Hu(e)&&e.getChildren(t).length?o(e):_Y(e,t):void 0}return o(n)}}In.assert(void 0!==n||312===i.kind||1===i.kind||Hu(i));const l=hY(a,a.length,t,i.kind);return l&&_Y(l,t)}(n||t);return In.assert(!(o&&vY(o))),o}function mY(e){return Yc(e)&&!vY(e)}function _Y(e,t){if(mY(e))return e;const n=e.getChildren(t);if(0===n.length)return e;const r=hY(n,n.length,t,e.kind);return r&&_Y(r,t)}function hY(e,t,n,r){for(let o=t-1;o>=0;o--){if(vY(e[o]))0!==o||12!==r&&285!==r||In.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(NY(e[o],n))return e[o]}}function gY(e,t,n=fY(t,e)){if(n&&cd(n)){const r=n.getStart(e),o=n.getEnd();if(r<t&&t<o)return!0;if(t===o)return!!n.isUnterminated}return!1}function yY(e,t){const n=lY(e,t);return!!n&&(12===n.kind||(30===n.kind&&12===n.parent.kind||(30===n.kind&&294===n.parent.kind||(!(!n||20!==n.kind||294!==n.parent.kind)||30===n.kind&&287===n.parent.kind))))}function vY(e){return BR(e)&&e.containsOnlyTriviaWhiteSpaces}function bY(e,t){const n=lY(e,t);return nd(n.kind)&&t>n.getStart(e)}function EY(e,t){const n=lY(e,t);return!!BR(n)||(!(19!==n.kind||!KN(n.parent)||!ON(n.parent.parent))||!(30!==n.kind||!ju(n.parent)||!ON(n.parent.parent)))}function SY(e,t){return function(n){for(;n;)if(n.kind>=285&&n.kind<=294||12===n.kind||30===n.kind||32===n.kind||80===n.kind||20===n.kind||19===n.kind||44===n.kind)n=n.parent;else{if(284!==n.kind)return!1;if(t>n.getStart(e))return!0;n=n.parent}return!1}(lY(e,t))}function TY(e,t,n){const r=as(e.kind),o=as(t),i=e.getFullStart(),a=n.text.lastIndexOf(o,i);if(-1===a)return;if(n.text.lastIndexOf(r,i-1)<a){const e=fY(a+1,n);if(e&&e.kind===t)return e}const s=e.kind;let l=0;for(;;){const r=fY(e.getFullStart(),n);if(!r)return;if((e=r).kind===t){if(0===l)return e;l--}else e.kind===s&&l++}}function xY(e,t,n){return t?e.getNonNullableType():n?e.getNonOptionalType():e}function AY(e,t,n){const r=RY(e,t);return void 0!==r&&(j_(r.called)||0!==IY(r.called,r.nTypeArguments,n).length||AY(r.called,t,n))}function IY(e,t,n){let r=n.getTypeAtLocation(e);wc(e.parent)&&(r=xY(r,Oc(e.parent),!0));return(uD(e.parent)?r.getConstructSignatures():r.getCallSignatures()).filter((e=>!!e.typeParameters&&e.typeParameters.length>=t))}function RY(e,t){if(-1===t.text.lastIndexOf("<",e?e.pos:t.text.length))return;let n=e,r=0,o=0;for(;n;){switch(n.kind){case 30:if(n=fY(n.getFullStart(),t),n&&29===n.kind&&(n=fY(n.getFullStart(),t)),!n||!nC(n))return;if(!r)return Iy(n)?void 0:{called:n,nTypeArguments:o};r--;break;case 50:r=3;break;case 49:r=2;break;case 32:r++;break;case 20:if(n=TY(n,19,t),!n)return;break;case 22:if(n=TY(n,21,t),!n)return;break;case 24:if(n=TY(n,23,t),!n)return;break;case 28:o++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Gd(n))break;return}n=fY(n.getFullStart(),t)}}function CY(e,t,n){return vge.getRangeOfEnclosingComment(e,t,void 0,n)}function DY(e,t){return!!Cl(lY(e,t),bM)}function NY(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function MY(e,t=0){const n=[],r=Lu(e)?Tl(e)&~t:0;return 2&r&&n.push("private"),4&r&&n.push("protected"),1&r&&n.push("public"),(256&r||IC(e))&&n.push("static"),64&r&&n.push("abstract"),32&r&&n.push("export"),65536&r&&n.push("deprecated"),33554432&e.flags&&n.push("declare"),277===e.kind&&n.push("export"),n.length>0?n.join(","):""}function LY(e){return 183===e.kind||213===e.kind?e.typeArguments:Td(e)||263===e.kind||264===e.kind?e.typeParameters:void 0}function kY(e){return 2===e||3===e}function PY(e){return!(11!==e&&14!==e&&!nd(e))}function wY(e,t,n){return!!(4&t.flags)&&e.isEmptyAnonymousObjectType(n)}function OY(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return 2===t.length&&(wY(n,t[0],t[1])||wY(n,t[1],t[0]))}function FY(e,t,n){return nd(e.kind)&&e.getStart(n)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function WY(e){switch(e){case 125:case 123:case 124:return!0}return!1}function zY(e){const t=it(e);return oO(t,e&&e.configFile),t}function BY(e){if(209===e.kind||210===e.kind){if(226===e.parent.kind&&e.parent.left===e&&64===e.parent.operatorToken.kind)return!0;if(250===e.parent.kind&&e.parent.initializer===e)return!0;if(BY(303===e.parent.kind?e.parent.parent:e.parent))return!0}return!1}function GY(e,t){return VY(e,t,!0)}function jY(e,t){return VY(e,t,!1)}function VY(e,t,n){const r=CY(e,t,void 0);return!!r&&n===JX.test(e.text.substring(r.pos,r.end))}function UY(e){if(e)switch(e.kind){case 11:case 15:return KY(e);default:return HY(e)}}function HY(e,t,n){return ul(e.getStart(t),(n||e).getEnd())}function KY(e){if(!e.isUnterminated)return ul(e.getStart()+1,e.getEnd()-1)}function qY(e,t){return UE(e.getStart(t),e.end)}function JY(e){return ul(e.pos,e.end)}function XY(e){return UE(e.start,e.start+e.length)}function $Y(e,t,n){return YY(dl(e,t),n)}function YY(e,t){return{span:e,newText:t}}function QY(e){return F(XX,e)}function ZY(e){return 156===e.kind}function eQ(e){return ZY(e)||nC(e)&&"type"===e.text}function tQ(e){return!!(1536&e.flags)&&34===e.name.charCodeAt(0)}function nQ(){const e=[];return t=>{const n=Hz(t);return!e[n]&&(e[n]=!0)}}function rQ(e){return e.getText(0,e.getLength())}function oQ(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function iQ(e){return e.isTypeParameter()&&e.getConstraint()||e}function aQ(e){return 167===e.kind?tv(e.expression)?e.expression.text:void 0:rC(e)?kl(e):sv(e)}function sQ(e){return e.getSourceFiles().some((t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)))}function lQ(e){return e.getSourceFiles().some((t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator))}function cQ(e){return!!e.module||jp(e)>=2||!!e.noEmit}function dQ(e,t){return{fileExists:t=>e.fileExists(t),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:lt(t,t.readFile),useCaseSensitiveFileNames:lt(t,t.useCaseSensitiveFileNames),getSymlinkCache:lt(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:lt(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getModuleResolutionCache())?void 0:t.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:lt(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),getNearestAncestorDirectoryWithPackageJson:lt(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function uQ(e,t){return{...dQ(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function pQ(e){return 2===e||e>=3&&e<=99||100===e}function fQ(e,t,n,r){return e||t&&t.length?mQ(e,t,n,r):void 0}function mQ(e,t,n,r,o){return UA.createImportDeclaration(void 0,e||t?UA.createImportClause(!!o,e,t&&t.length?UA.createNamedImports(t):void 0):void 0,"string"===typeof n?_Q(n,r):n,void 0)}function _Q(e,t){return UA.createStringLiteral(e,0===t)}function hQ(e,t){return lg(e,t)?1:0}function gQ(e,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;{const t=e.imports&&L(e.imports,(e=>zR(e)&&!Sv(e.parent)));return t?hQ(t,e):1}}function yQ(e){switch(e){case 0:return"'";case 1:return'"';default:return In.assertNever(e)}}function vQ(e){const t=bQ(e);return void 0===t?void 0:Ll(t)}function bQ(e){return"default"!==e.escapedName?e.escapedName:I(e.declarations,(e=>{const t=jl(e);return t&&80===t.kind?t.escapedText:void 0}))}function EQ(e){return np(e)&&(wN(e.parent)||gN(e.parent)||tg(e.parent,!1)&&e.parent.arguments[0]===e||L_(e.parent)&&e.parent.arguments[0]===e)}function SQ(e){return iD(e)&&rD(e.parent)&&nC(e.name)&&!e.propertyName}function TQ(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function xQ(e,t,n){if(e)for(;e.parent;){if(rM(e.parent)||!AQ(n,e.parent,t))return e;e=e.parent}}function AQ(e,t,n){return el(e,t.getStart(n))&&t.getEnd()<=Qs(e)}function IQ(e,t){return vk(e)?L(e.modifiers,(e=>e.kind===t)):void 0}function RQ(e,t,n,r,o){const i=243===(mt(n)?n[0]:n).kind?ag:$m,a=G(t.statements,i);let s=mt(n)?gfe.detectImportDeclarationSorting(n,o):3;const l=gfe.getOrganizeImportsComparer(o,2===s),c=mt(n)?Ne(n,((e,t)=>gfe.compareImportsOrRequireStatements(e,t,l))):[n];if(a.length)if(a&&(s=gfe.detectImportDeclarationSorting(a,o))){const n=gfe.getOrganizeImportsComparer(o,2===s);for(const r of c){const o=gfe.getImportDeclarationInsertionIndex(a,r,n);if(0===o){const n=a[0]===t.statements[0]?{leadingTriviaOption:p_e.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,a[0],r,!1,n)}else{const n=a[o-1];e.insertNodeAfter(t,n,r)}}}else{const n=Oe(a);n?e.insertNodesAfter(t,n,c):e.insertNodesAtTopOfFile(t,c,r)}else e.insertNodesAtTopOfFile(t,c,r)}function CQ(e,t){return In.assert(e.isTypeOnly),vt(e.getChildAt(0,t),ZY)}function DQ(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function NQ(e,t,n){return(n?wt:Pt)(e.fileName,t.fileName)&&DQ(e.textSpan,t.textSpan)}function MQ(e){return(t,n)=>NQ(t,n,e)}function LQ(e,t){if(e)for(let n=0;n<e.length;n++)if(e.indexOf(e[n])===n){const r=t(e[n],n);if(r)return r}}function kQ(e,t,n){for(let r=t;r<n;r++)if(!hs(e.charCodeAt(r)))return!1;return!0}function PQ(e,t,n){const r=t.tryGetSourcePosition(e);return r&&(!n||n(_a(r.fileName))?r:void 0)}function wQ(e,t,n){const{fileName:r,textSpan:o}=e,i=PQ({fileName:r,pos:o.start},t,n);if(!i)return;const a=PQ({fileName:r,pos:o.start+o.length},t,n),s=a?a.pos-i.pos:o.length;return{fileName:i.fileName,textSpan:{start:i.pos,length:s},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:OQ(e,t,n),originalContextSpan:e.contextSpan}}function OQ(e,t,n){const r=e.contextSpan&&PQ({fileName:e.fileName,pos:e.contextSpan.start},t,n),o=e.contextSpan&&PQ({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,n);return r&&o?{start:r.pos,length:o.pos-r.pos}:void 0}function FQ(e){return!!Cl(e.declarations?Le(e.declarations):void 0,(e=>!!bC(e)||!(iD(e)||rD(e)||oD(e))&&"quit"))}function WQ(e,t){return zQ(e,function(e){const t=e.flags;if(3&t)return FQ(e)?13:9;return 4&t||32768&t||65536&t?14:8&t?19:16&t?20:32&t?1:64&t?4:384&t?2:1536&t?11:8192&t?10:262144&t?18:524288&t||2097152&t?0:17}(t))}function zQ(e,t){return{text:e,kind:kX[t]}}function BQ(){return zQ(" ",16)}function GQ(e){return zQ(as(e),5)}function jQ(e){return zQ(as(e),15)}function VQ(e){return zQ(as(e),12)}function UQ(e){return zQ(e,13)}function HQ(e){return zQ(e,14)}function KQ(e){const t=ss(e);return void 0===t?qQ(e):GQ(t)}function qQ(e){return zQ(e,17)}function JQ(e){return zQ(e,0)}function XQ(e){return zQ(e,18)}function $Q(e){return zQ(e,24)}function YQ(e,t){return{text:e,kind:kX[23],target:{fileName:Yf(t).fileName,textSpan:HY(t)}}}function QQ(e){return zQ(e,22)}function ZQ(e,t){var n;const r=[QQ(`{@${cM(e)?"link":dM(e)?"linkcode":"linkplain"} `)];if(e.name){const o=null==t?void 0:t.getSymbolAtLocation(e.name),i=o&&t?cZ(o,t):void 0,a=function(e){let t=e.indexOf("://");if(0===t){for(;t<e.length&&124!==e.charCodeAt(t);)t++;return t}if(0===e.indexOf("()"))return 2;if("<"===e.charAt(0)){let t=0,n=0;for(;n<e.length;)if("<"===e[n]&&t++,">"===e[n]&&t--,n++,!t)return n}return 0}(e.text),s=xm(e.name)+e.text.slice(0,a),l=function(e){let t=0;if(124===e.charCodeAt(t++)){for(;t<e.length&&32===e.charCodeAt(t);)t++;return e.slice(t)}return e}(e.text.slice(a)),c=(null==i?void 0:i.valueDeclaration)||(null==(n=null==i?void 0:i.declarations)?void 0:n[0]);if(c)r.push(YQ(s,c)),l&&r.push($Q(l));else{const t=0===a||124===e.text.charCodeAt(a)&&32!==s.charCodeAt(s.length-1)?" ":"";r.push($Q(s+t+l))}}else e.text&&r.push($Q(e.text));return r.push(QQ("}")),r}function eZ(e,t){var n;return(null==t?void 0:t.newLineCharacter)||(null==(n=e.getNewLine)?void 0:n.call(e))||QX}function tZ(){return zQ("\n",6)}function nZ(e){try{return e(YX),YX.displayParts()}finally{YX.clear()}}function rZ(e,t,n,r=0){return nZ((o=>{e.writeType(t,n,17408|r,o)}))}function oZ(e,t,n,r,o=0){return nZ((i=>{e.writeSymbol(t,n,r,8|o,i)}))}function iZ(e,t,n,r=0){return r|=25632,nZ((o=>{e.writeSignature(t,n,r,void 0,o)}))}function aZ(e,t){const n=t.getSourceFile();return nZ((t=>{yV().writeNode(4,e,n,t)}))}function sZ(e){return!!e.parent&&id(e.parent)&&e.parent.propertyName===e}function lZ(e,t){return QT(e,t.getScriptKind&&t.getScriptKind(e))}function cZ(e,t){let n=e;for(;dZ(n)||Lf(n)&&n.links.target;)n=Lf(n)&&n.links.target?n.links.target:hS(n,t);return n}function dZ(e){return 0!==(2097152&e.flags)}function uZ(e,t){return Kz(hS(e,t))}function pZ(e,t){for(;hs(e.charCodeAt(t));)t+=1;return t}function fZ(e,t){for(;t>-1&&gs(e.charCodeAt(t));)t-=1;return t+1}function mZ(e,t=!0){const n=e&&hZ(e);return n&&!t&&vZ(n),n}function _Z(e,t,n){let r=n(e);return r?lI(r,e):r=hZ(e,n),r&&!t&&vZ(r),r}function hZ(e,t){const n=t?e=>_Z(e,!0,t):mZ,r=fB(e,n,void 0,t?e=>e&&yZ(e,!0,t):e=>e&&gZ(e),n);if(r===e){return yk(zR(e)?lI(UA.createStringLiteralFromNode(e),e):FR(e)?lI(UA.createNumericLiteral(e.text,e.numericLiteralFlags),e):UA.cloneNode(e),e)}return r.parent=void 0,r}function gZ(e,t=!0){if(e){const n=UA.createNodeArray(e.map((e=>mZ(e,t))),e.hasTrailingComma);return yk(n,e),n}return e}function yZ(e,t,n){return UA.createNodeArray(e.map((e=>_Z(e,t,n))),e.hasTrailingComma)}function vZ(e){bZ(e),EZ(e)}function bZ(e){TZ(e,1024,xZ)}function EZ(e){TZ(e,2048,MS)}function SZ(e,t){const n=e.getSourceFile();!function(e,t){const n=e.getFullStart(),r=e.getStart();for(let o=n;o<r;o++)if(10===t.charCodeAt(o))return!0;return!1}(e,n.text)?DZ(e,t,n):RZ(e,t,n),CZ(e,t,n)}function TZ(e,t,n){mI(e,t);const r=n(e);r&&TZ(r,t,n)}function xZ(e){return e.forEachChild((e=>e))}function AZ(e,t){let n=e;for(let r=1;!om(t,n);r++)n=`${e}_${r}`;return n}function IZ(e,t,n,r){let o=0,i=-1;for(const{fileName:a,textChanges:s}of e){In.assert(a===t);for(const e of s){const{span:t,newText:a}=e,s=MZ(a,Fv(n));if(-1!==s&&(i=t.start+o+s,!r))return i;o+=a.length-t.length}}return In.assert(r),In.assert(i>=0),i}function RZ(e,t,n,r,o){Ds(n.text,e.pos,NZ(t,n,r,o,RI))}function CZ(e,t,n,r,o){Ns(n.text,e.end,NZ(t,n,r,o,NI))}function DZ(e,t,n,r,o){Ns(n.text,e.pos,NZ(t,n,r,o,RI))}function NZ(e,t,n,r,o){return(i,a,s,l)=>{3===s?(i+=2,a-=2):i+=2,o(e,n||s,t.text.slice(i,a),void 0!==r?r:l)}}function MZ(e,t){if(dn(e,t))return 0;let n=e.indexOf(" "+t);return-1===n&&(n=e.indexOf("."+t)),-1===n&&(n=e.indexOf('"'+t)),-1===n?-1:n+1}function LZ(e){return TD(e)&&28===e.operatorToken.kind||sD(e)||(MD(e)||LD(e))&&sD(e.expression)}function kZ(e,t,n){const r=by(e.parent);switch(r.kind){case 214:return t.getContextualType(r,n);case 226:{const{left:o,operatorToken:i,right:a}=r;return wZ(i.kind)?t.getTypeAtLocation(e===a?o:a):t.getContextualType(e,n)}case 296:return WZ(r,t);default:return t.getContextualType(e,n)}}function PZ(e,t,n){const r=gQ(e,t),o=JSON.stringify(n);return 0===r?`'${Gv(o).replace(/'/g,(()=>"\\'")).replace(/\\"/g,'"')}'`:o}function wZ(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function OZ(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function FZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function WZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function zZ(e,t,n,r){const o=n.getTypeChecker();let i=!0;const a=()=>i=!1,s=o.typeToTypeNode(e,t,1,{trackSymbol:(e,t,n)=>(i=i&&0===o.isSymbolAccessible(e,t,n,!1).accessibility,!i),reportInaccessibleThisError:a,reportPrivateInBaseOfClassExpression:a,reportInaccessibleUniqueSymbolError:a,moduleResolverHost:uQ(n,r)});return i?s:void 0}function BZ(e){return 179===e||180===e||181===e||171===e||173===e}function GZ(e){return 262===e||176===e||174===e||177===e||178===e}function jZ(e){return 267===e}function VZ(e){return 243===e||244===e||246===e||251===e||252===e||253===e||257===e||259===e||172===e||265===e||272===e||271===e||278===e||270===e||277===e}function UZ(e,t,n){const r=Cl(t,(t=>t.end!==e?"quit":e$(t.kind)));return!!r&&function(e,t){const n=e.getLastToken(t);if(n&&27===n.kind)return!1;if(BZ(e.kind)){if(n&&28===n.kind)return!1}else if(jZ(e.kind)){const n=Fe(e.getChildren(t));if(n&&fN(n))return!1}else if(GZ(e.kind)){const n=Fe(e.getChildren(t));if(n&&rh(n))return!1}else if(!VZ(e.kind))return!1;if(246===e.kind)return!0;const r=pY(e,Cl(e,(e=>!e.parent)),t);return!r||20===r.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(r.getStart(t)).line}(r,n)}function HZ(e){let t=0,n=0;return oP(e,(function r(o){if(VZ(o.kind)){const r=o.getLastToken(e);27===(null==r?void 0:r.kind)?t++:n++}else if(BZ(o.kind)){const r=o.getLastToken(e);if(27===(null==r?void 0:r.kind))t++;else if(r&&28!==r.kind){_s(e,r.getStart(e)).line!==_s(e,b_(e,r.end).start).line&&n++}}return t+n>=5||oP(o,r)})),0===t&&n<=1||t/n>.2}function KZ(e,t){return YZ(e,e.getDirectories,t)||[]}function qZ(e,t,n,r,i){return YZ(e,e.readDirectory,t,n,r,i)||o}function JZ(e,t){return YZ(e,e.fileExists,t)}function XZ(e,t){return $Z((()=>jE(t,e)))||!1}function $Z(e){try{return e()}catch{return}}function YZ(e,t,...n){return $Z((()=>t&&t.apply(e,n)))}function QZ(e,t,n){const r=[];return Pa(e,(e=>{if(e===n)return!0;const o=ua(e,"package.json");JZ(t,o)&&r.push(o)})),r}function ZZ(e,t){let n;return Pa(e,(e=>"node_modules"===e||(n=TU(e,(e=>JZ(t,e)),"package.json"),!!n||void 0))),n}function e0(e,t){if(!t.fileExists)return[];const n=[];return Pa(ra(e),(e=>{const r=ua(e,"package.json");if(t.fileExists(r)){const e=t0(r,t);e&&n.push(e)}})),n}function t0(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],r=GE(t.readFile(e)||""),o={};if(r)for(const s of n){const e=r[s];if(!e)continue;const t=new Map;for(const n in e)t.set(n,e[n]);o[s]=t}const i=[[1,o.dependencies],[2,o.devDependencies],[8,o.optionalDependencies],[4,o.peerDependencies]];return{...o,parseable:!!r,fileName:e,get:a,has:(e,t)=>!!a(e,t)};function a(e,t=15){for(const[n,r]of i)if(r&&t&n){const t=r.get(e);if(void 0!==t)return t}}}function n0(e,t,n){const r=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||e0(e.fileName,n)).filter((e=>e.parseable));let o,i,a;return{allowsImportingAmbientModule:function(e,t){if(!r.length||!e.valueDeclaration)return!0;if(i){const t=i.get(e);if(void 0!==t)return t}else i=new Map;const n=Gv(e.getName());if(l(n))return i.set(e,!0),!0;const o=c(e.valueDeclaration.getSourceFile().fileName,t);if("undefined"===typeof o)return i.set(e,!0),!0;const a=s(o)||s(n);return i.set(e,a),a},allowsImportingSourceFile:function(e,t){if(!r.length)return!0;if(a){const t=a.get(e);if(void 0!==t)return t}else a=new Map;const n=c(e.fileName,t);if(!n)return a.set(e,!0),!0;const o=s(n);return a.set(e,o),o},allowsImportingSpecifier:function(e){if(!r.length||l(e))return!0;if(Ji(e)||Hi(e))return!0;return s(e)}};function s(e){const t=d(e);for(const n of r)if(n.has(t)||n.has(TW(t)))return!0;return!1}function l(t){return!!(Jh(e)&&vX.nodeCoreModules.has(t)&&(void 0===o&&(o=r0(e)),o))}function c(r,o){if(!r.includes("node_modules"))return;const i=Rz.getNodeModulesPackageName(n.getCompilationSettings(),e,r,o,t);return i?Ji(i)||Hi(i)?void 0:d(i):void 0}function d(e){const t=sa(AW(e)).slice(1);return dn(t[0],"@")?`${t[0]}/${t[1]}`:t[0]}}function r0(e){return se(e.imports,(({text:e})=>vX.nodeCoreModules.has(e)))}function o0(e){return F(sa(e),"node_modules")}function i0(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function a0(e,t){const n=Ve(t,HY(e),xt,Wt);if(n>=0){const r=t[n];return In.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),vt(r,i0)}}function s0(e,t){var n;let r=Ve(t,e.start,(e=>e.start),Ft);for(r<0&&(r=~r);(null==(n=t[r-1])?void 0:n.start)===e.start;)r--;const o=[],i=Qs(e);for(;;){const n=yt(t[r],i0);if(!n||n.start>i)break;nl(e,n)&&o.push(n),r++}return o}function l0({startPosition:e,endPosition:t}){return ul(e,void 0===t?e:t)}function c0(e,t){return Cl(lY(e,t.start),(n=>n.getStart(e)<t.start||n.getEnd()>Qs(t)?"quit":uu(n)&&DQ(t,HY(n,e))))}function d0(e,t,n=xt){return e?mt(e)?n(U(e,t)):t(e,0):void 0}function u0(e){return mt(e)?Pe(e):e}function p0(e,t){if(m0(e)){const n=_0(e);if(n)return n;const r=Qle.moduleSymbolToValidIdentifier(h0(e),t,!1),o=Qle.moduleSymbolToValidIdentifier(h0(e),t,!0);return r===o?r:[r,o]}return e.name}function f0(e,t,n){return m0(e)?_0(e)||Qle.moduleSymbolToValidIdentifier(h0(e),t,!!n):e.name}function m0(e){return!(33554432&e.flags)&&("export="===e.escapedName||"default"===e.escapedName)}function _0(e){return I(e.declarations,(e=>{var t,n,r;return CN(e)?null==(t=yt(EL(e.expression),nC))?void 0:t.text:MN(e)&&2097152===e.symbol.flags?null==(n=yt(e.propertyName,nC))?void 0:n.text:null==(r=yt(jl(e),nC))?void 0:r.text}))}function h0(e){var t;return In.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${In.formatSymbolFlags(e.flags)}. Declarations: ${null==(t=e.declarations)?void 0:t.map((e=>{const t=In.formatSyntaxKind(e.kind),n=$h(e),{expression:r}=e;return(n?"[JS]":"")+t+(r?` (expression: ${In.formatSyntaxKind(r.kind)})`:"")})).join(", ")}.`)}function g0(e,t,n){const r=t.length;if(r+n>e.length)return!1;for(let o=0;o<r;o++)if(t.charCodeAt(o)!==e.charCodeAt(o+n))return!1;return!0}function y0(e){return 95===e.charCodeAt(0)}function v0(e){return!b0(e)}function b0(e){const t=e.getSourceFile();return!(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)&&($h(e)||!Cl(e,(e=>pN(e)&&Bm(e))))}function E0(e){return!!(65536&Tl(e))}function S0(e,t){return I(e.imports,(e=>{if(vX.nodeCoreModules.has(e.text))return dn(e.text,"node:")}))??t.usesUriStyleNodeCoreModules}function T0(e){return"\n"===e?1:0}function x0(e){return mt(e)?YS(eT(e[0]),e.slice(1)):eT(e)}function A0({options:e},t){const n=!e.semicolons||"ignore"===e.semicolons,r="remove"===e.semicolons||n&&!HZ(t);return{...e,semicolons:r?"remove":"ignore"}}function I0(e){return 2===e||3===e}function R0(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function C0(e,t){const n=new Set,r=new Set,o=new Set;for(const a of t)if(!XN(a)){const t=Ty(a.expression);if(ed(t))switch(t.kind){case 15:case 11:n.add(t.text);break;case 9:r.add(parseInt(t.text));break;case 10:const e=Lx(Yt(t.text,"n")?t.text.slice(0,-1):t.text);e&&o.add(Mx(e))}else{const t=e.getSymbolAtLocation(a.expression);if(t&&t.valueDeclaration&&tM(t.valueDeclaration)){const n=e.getConstantValue(t.valueDeclaration);void 0!==n&&i(n)}}}return{addValue:i,hasValue:function(e){switch(typeof e){case"string":return n.has(e);case"number":return r.has(e);case"object":return o.has(Mx(e))}}};function i(e){switch(typeof e){case"string":n.add(e);break;case"number":r.add(e)}}}function D0(e,t,n,r){var o;if(!nx("string"===typeof e?e:e.fileName))return!1;const i=t.getCompilerOptions(),a=Vp(i),s="string"===typeof e?sH(ga(e,n.getCurrentDirectory(),Jv(n)),null==(o=t.getPackageJsonInfoCache)?void 0:o.call(t),n,i):e.impliedNodeFormat;if(99===s)return!1;if(1===s)return!0;if(i.verbatimModuleSyntax&&1===a)return!0;if(i.verbatimModuleSyntax&&bT(a))return!1;if("object"===typeof e){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return r}var N0,M0,L0=b({"src/services/utilities.ts"(){Tge(),KX=Bs(99,!0),qX=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(qX||{}),JX=/^\/\/\/\s*</,XX=[133,131,163,136,97,140,143,146,106,150,151,148,154,155,114,112,116,157,158,159],$X=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))($X||{}),YX=function(){const e=10*dp;let t,n,r,o;l();const i=e=>s(e,17);return{displayParts:()=>{const n=t.length&&t[t.length-1].text;return o>e&&n&&"..."!==n&&(hs(n.charCodeAt(n.length-1))||t.push(zQ(" ",16)),t.push(zQ("...",15))),t},writeKeyword:e=>s(e,5),writeOperator:e=>s(e,12),writePunctuation:e=>s(e,15),writeTrailingSemicolon:e=>s(e,15),writeSpace:e=>s(e,16),writeStringLiteral:e=>s(e,8),writeParameter:e=>s(e,13),writeProperty:e=>s(e,14),writeLiteral:e=>s(e,8),writeSymbol:function(n,r){o>e||(a(),o+=n.length,t.push(WQ(n,r)))},writeLine:function(){o>e||(o+=1,t.push(tZ()),n=!0)},write:i,writeComment:i,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Rt,getIndent:()=>r,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},clear:l};function a(){if(!(o>e)&&n){const e=Vv(r);e&&(o+=e.length,t.push(zQ(e,16))),n=!1}}function s(n,r){o>e||(a(),o+=n.length,t.push(zQ(n,r)))}function l(){t=[],n=!0,r=0,o=0}}(),QX="\n",ZX="anonymous function",e$=_n(BZ,GZ,jZ,VZ)}});function k0(e){let t=1;const n=ct(),r=new Map,i=new Map;let a;const s={isUsableByFile:e=>e===a,isEmpty:()=>!n.size,clear:()=>{n.clear(),r.clear(),a=void 0},add:(e,o,l,c,d,u,p,f)=>{let m;if(e!==a&&(s.clear(),a=e),d){const t=iA(d.fileName);if(t){const{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:o}=t;if(m=IW(AW(d.fileName.substring(r+1,o))),dn(e,d.path.substring(0,n))){const e=i.get(m),t=d.fileName.substring(0,r+1);if(e){n>e.indexOf(HO)&&i.set(m,t)}else i.set(m,t)}}}const _=1===u&&PE(o)||o,h=0===u||tQ(_)?Ll(l):p0(_,void 0),g="string"===typeof h?h:h[0],y="string"===typeof h?void 0:h[1],v=Gv(c.name),b=t++,E=hS(o,f),S=33554432&o.flags?void 0:o,T=33554432&c.flags?void 0:c;S&&T||r.set(b,[o,c]),n.add(function(e,t,n,r){const o=n||"";return`${e.length} ${Kz(hS(t,r))} ${e} ${o}`}(g,o,Xs(v)?void 0:v,f),{id:b,symbolTableKey:l,symbolName:g,capitalizedSymbolName:y,moduleName:v,moduleFile:d,moduleFileName:null==d?void 0:d.fileName,packageName:m,exportKind:u,targetFlags:E.flags,isFromPackageJson:p,symbol:S,moduleSymbol:T})},get:(e,t)=>{if(e!==a)return;const r=n.get(t);return null==r?void 0:r.map(l)},search:(t,r,o,s)=>{if(t===a)return Wf(n,((t,n)=>{const{symbolName:a,ambientModuleName:c}=function(e){const t=e.indexOf(" "),n=e.indexOf(" ",t+1),r=parseInt(e.substring(0,t),10),o=e.substring(n+1),i=o.substring(0,r),a=o.substring(r+1),s=""===a?void 0:a;return{symbolName:i,ambientModuleName:s}}(n),d=r&&t[0].capitalizedSymbolName||a;if(o(d,t[0].targetFlags)){const r=t.map(l).filter(((n,r)=>function(t,n){if(!n||!t.moduleFileName)return!0;const r=e.getGlobalTypingsCacheLocation();if(r&&dn(t.moduleFileName,r))return!0;const o=i.get(n);return!o||dn(t.moduleFileName,o)}(n,t[r].packageName)));if(r.length){const e=s(r,d,!!c,n);if(void 0!==e)return e}}}))},releaseSymbols:()=>{r.clear()},onFileChanged:(e,t,n)=>(!c(e)||!c(t))&&(a&&a!==t.path||n&&r0(e)!==r0(t)||!ye(e.moduleAugmentations,t.moduleAugmentations)||!function(e,t){if(!ye(e.ambientModuleNames,t.ambientModuleNames))return!1;let n=-1,r=-1;for(const o of t.ambientModuleNames){const i=e=>Om(e)&&e.name.text===o;if(n=P(e.statements,i,n+1),r=P(t.statements,i,r+1),e.statements[n]!==t.statements[r])return!1}return!0}(e,t)?(s.clear(),!0):(a=t.path,!1))};return In.isDebugging&&Object.defineProperty(s,"__cache",{value:n}),s;function l(t){if(t.symbol&&t.moduleSymbol)return t;const{id:n,exportKind:i,targetFlags:a,isFromPackageJson:s,moduleFileName:l}=t,[c,d]=r.get(n)||o;if(c&&d)return{symbol:c,moduleSymbol:d,moduleFileName:l,exportKind:i,targetFlags:a,isFromPackageJson:s};const u=(s?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),p=t.moduleSymbol||d||In.checkDefined(t.moduleFile?u.getMergedSymbol(t.moduleFile.symbol):u.tryFindAmbientModule(t.moduleName)),f=t.symbol||c||In.checkDefined(2===i?u.resolveExternalModuleSymbol(p):u.tryGetMemberInModuleExportsAndProperties(Ll(t.symbolTableKey),p),`Could not find symbol '${t.symbolName}' by key '${t.symbolTableKey}' in module ${p.name}`);return r.set(n,[f,p]),{symbol:f,moduleSymbol:p,moduleFileName:l,exportKind:i,targetFlags:a,isFromPackageJson:s}}function c(e){return!e.commonJsModuleIndicator&&!e.externalModuleIndicator&&!e.moduleAugmentations&&!e.ambientModuleNames}}function P0(e,t,n,r,o,i,a){var s;if(t===n)return!1;const l=null==a?void 0:a.get(t.path,n.path,r,{});if(void 0!==(null==l?void 0:l.isBlockedByPackageJsonDependencies))return!l.isBlockedByPackageJsonDependencies;const c=Jv(i),d=null==(s=i.getGlobalTypingsCacheLocation)?void 0:s.call(i),u=!!Rz.forEachFileNameOfModule(t.fileName,n.fileName,i,!1,(r=>{const o=e.getSourceFile(r);return(o===n||!o)&&function(e,t,n,r){const o=Pa(t,(e=>"node_modules"===oa(e)?e:void 0)),i=o&&ra(n(o));return void 0===i||dn(n(e),i)||!!r&&dn(n(r),i)}(t.fileName,r,c,d)}));if(o){const e=u&&o.allowsImportingSourceFile(n,i);return null==a||a.setBlockedByPackageJsonDependencies(t.path,n.path,r,{},!e),e}return u}function w0(e,t,n,r,o){var i,a;const s=qv(t),l=n.autoImportFileExcludePatterns&&Z(n.autoImportFileExcludePatterns,(e=>{const t=HT(e,"","exclude");return t?JT(t,s):void 0}));O0(e.getTypeChecker(),e.getSourceFiles(),l,t,((t,n)=>o(t,n,e,!1)));const c=r&&(null==(i=t.getPackageJsonAutoImportProvider)?void 0:i.call(t));if(c){const n=nr(),r=e.getTypeChecker();O0(c.getTypeChecker(),c.getSourceFiles(),l,t,((t,n)=>{(n&&!e.getSourceFile(n.fileName)||!n&&!r.resolveName(t.name,void 0,1536,!1))&&o(t,n,c,!0)})),null==(a=t.log)||a.call(t,"forEachExternalModuleToImportFrom autoImportProvider: "+(nr()-n))}}function O0(e,t,n,r,o){var i,a;const s=null==(i=r.getSymlinkCache)?void 0:i.call(r).getSymlinkedDirectoriesByRealpath(),l=n&&(({fileName:e,path:t})=>{if(n.some((t=>t.test(e))))return!0;if((null==s?void 0:s.size)&&HF(e)){let r=ra(e);return Pa(ra(t),(t=>{const o=s.get(va(t));if(o)return o.some((t=>n.some((n=>n.test(e.replace(r,t))))));r=ra(r)}))??!1}return!1});for(const c of e.getAmbientModules())c.name.includes("*")||n&&(null==(a=c.declarations)?void 0:a.every((e=>l(e.getSourceFile()))))||o(c,void 0);for(const c of t)T_(c)&&!(null==l?void 0:l(c))&&o(e.getMergedSymbol(c.symbol),c)}function F0(e,t,n,r,o){var i,a,s,l,c;const d=nr();null==(i=t.getPackageJsonAutoImportProvider)||i.call(t);const u=(null==(a=t.getCachedExportInfoMap)?void 0:a.call(t))||k0({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var e;return null==(e=t.getPackageJsonAutoImportProvider)?void 0:e.call(t)},getGlobalTypingsCacheLocation:()=>{var e;return null==(e=t.getGlobalTypingsCacheLocation)?void 0:e.call(t)}});if(u.isUsableByFile(e.path))return null==(s=t.log)||s.call(t,"getExportInfoMap: cache hit"),u;null==(l=t.log)||l.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const p=n.getCompilerOptions();let f=0;try{w0(n,t,r,!0,((t,n,r,i)=>{++f%100===0&&(null==o||o.throwIfCancellationRequested());const a=new Map,s=r.getTypeChecker(),l=W0(t,s,p);l&&z0(l.symbol,s)&&u.add(e.path,l.symbol,1===l.exportKind?"default":"export=",t,n,l.exportKind,i,s),s.forEachExportAndPropertyOfModule(t,((r,o)=>{r!==(null==l?void 0:l.symbol)&&z0(r,s)&&LS(a,o)&&u.add(e.path,r,o,t,n,0,i,s)}))}))}catch(m){throw u.clear(),m}return null==(c=t.log)||c.call(t,`getExportInfoMap: done in ${nr()-d} ms`),u}function W0(e,t,n){const r=function(e,t){const n=t.resolveExternalModuleSymbol(e);if(n!==e)return{symbol:n,exportKind:2};const r=t.tryGetMemberInModuleExports("default",e);if(r)return{symbol:r,exportKind:1}}(e,t);if(!r)return;const{symbol:o,exportKind:i}=r,a=B0(o,t,n);return a&&{symbol:o,exportKind:i,...a}}function z0(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!uv(e)&&!pv(e)}function B0(e,t,n){const r=PE(e);if(r)return{resolvedSymbol:r,name:r.name};const o=(i=e).declarations&&I(i.declarations,(e=>{var t;return CN(e)?null==(t=yt(EL(e.expression),nC))?void 0:t.text:MN(e)?(In.assert("default"===e.name.text,"Expected the specifier to be a default export"),e.propertyName&&e.propertyName.text):void 0}));var i;if(void 0!==o)return{resolvedSymbol:e,name:o};if(2097152&e.flags){const r=t.getImmediateAliasedSymbol(e);if(r&&r.parent)return B0(r,t,n)}return"default"!==e.escapedName&&"export="!==e.escapedName?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:f0(e,n.target)}}var G0,j0=b({"src/services/exportInfoMap.ts"(){Tge(),N0=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(N0||{}),M0=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(M0||{})}});function V0(){const e=Bs(99,!1);function t(t,n,r){let o=0,i=0;const a=[],{prefix:s,pushTemplate:l}=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return In.assertNever(e)}}(n);t=s+t;const c=s.length;l&&a.push(16),e.setText(t);let d=0;const u=[];let p=0;do{o=e.scan(),Qy(o)||(f(),i=o);const n=e.getTokenEnd();if(H0(e.getTokenStart(),n,c,q0(o),u),n>=t.length){const t=U0(e,o,Oe(a));void 0!==t&&(d=t)}}while(1!==o);function f(){switch(o){case 44:case 69:G0[i]||14!==e.reScanSlashToken()||(o=14);break;case 30:80===i&&p++;break;case 32:p>0&&p--;break;case 133:case 154:case 150:case 136:case 155:p>0&&!r&&(o=80);break;case 16:a.push(o);break;case 19:a.length>0&&a.push(o);break;case 20:if(a.length>0){const t=Oe(a);16===t?(o=e.reScanTemplateToken(!1),18===o?a.pop():In.assertEqual(o,17,"Should have been a template middle.")):(In.assertEqual(t,19,"Should have been an open brace"),a.pop())}break;default:if(!Vy(o))break;(25===i||Vy(i)&&Vy(o)&&!function(e,t){if(!WY(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}(i,o))&&(o=80)}}return{endOfLineState:d,spans:u}}return{getClassificationsForLine:function(e,n,r){return function(e,t){const n=[],r=e.spans;let o=0;for(let a=0;a<r.length;a+=3){const e=r[a],t=r[a+1],i=r[a+2];if(o>=0){const t=e-o;t>0&&n.push({length:t,classification:4})}n.push({length:t,classification:K0(i)}),o=e+t}const i=t.length-o;i>0&&n.push({length:i,classification:4});return{entries:n,finalLexState:e.endOfLineState}}(t(e,n,r),e)},getEncodedLexicalClassifications:t}}function U0(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;const t=e.getTokenText(),n=t.length-1;let r=0;for(;92===t.charCodeAt(n-r);)r++;if(0===(1&r))return;return 34===t.charCodeAt(0)?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(nd(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return In.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 16===n?6:void 0}}function H0(e,t,n,r,o){if(8===r)return;0===e&&n>0&&(e+=n);const i=t-e;i>0&&o.push(e-n,i,r)}function K0(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function q0(e){if(Vy(e))return 3;if(function(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}(e)||function(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return nd(e)?6:2}}function J0(e,t,n,r,o){return Z0($0(e,t,n,r,o))}function X0(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function $0(e,t,n,r,o){const i=[];return n.forEachChild((function a(s){if(s&&al(o,s.pos,s.getFullWidth())){if(X0(t,s.kind),nC(s)&&!im(s)&&r.has(s.escapedText)){const t=e.getSymbolAtLocation(s),r=t&&Y0(t,r$(s),e);r&&function(e,t,n){const r=t-e;In.assert(r>0,`Classification had non-positive length of ${r}`),i.push(e),i.push(r),i.push(n)}(s.getStart(n),s.getEnd(),r)}s.forEachChild(a)}})),{spans:i,endOfLineState:0}}function Y0(e,t,n){const r=e.getFlags();return 0===(2885600&r)?void 0:32&r?11:384&r?12:524288&r?16:1536&r?4&t||1&t&&function(e){return se(e.declarations,(e=>pN(e)&&1===zW(e)))}(e)?14:void 0:2097152&r?Y0(n.getAliasedSymbol(e),t,n):2&t?64&r?13:262144&r?15:void 0:void 0}function Q0(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function Z0(e){In.assert(e.spans.length%3===0);const t=e.spans,n=[];for(let r=0;r<t.length;r+=3)n.push({textSpan:dl(t[r],t[r+1]),classificationType:Q0(t[r+2])});return n}function e1(e,t,n){return Z0(t1(e,t,n))}function t1(e,t,n){const r=n.start,o=n.length,i=Bs(99,!1,t.languageVariant,t.text),a=Bs(99,!1,t.languageVariant,t.text),s=[];return h(t),{spans:s,endOfLineState:0};function l(e,t,n){s.push(e),s.push(t),s.push(n)}function c(e,n,r,o){if(3===n){const n=fP(t.text,r,o);if(n&&n.jsDoc)return Vx(n.jsDoc,e),void function(e){var t,n,r,o,i,a,s,c;let p=e.pos;if(e.tags)for(const m of e.tags){m.pos!==p&&d(p,m.pos-p),l(m.pos,1,10),l(m.tagName.pos,m.tagName.end-m.tagName.pos,18),p=m.tagName.end;let e=m.tagName.end;switch(m.kind){case 348:const l=m;f(l),e=l.isNameFirst&&(null==(t=l.typeExpression)?void 0:t.end)||l.name.end;break;case 355:const d=m;e=d.isNameFirst&&(null==(n=d.typeExpression)?void 0:n.end)||d.name.end;break;case 352:u(m),p=m.end,e=m.typeParameters.end;break;case 353:const _=m;e=316===(null==(r=_.typeExpression)?void 0:r.kind)&&(null==(o=_.fullName)?void 0:o.end)||(null==(i=_.typeExpression)?void 0:i.end)||e;break;case 345:case 350:case 347:e=m.typeExpression.end;break;case 351:h(m.typeExpression),p=m.end,e=m.typeExpression.end;break;case 349:h(m.typeExpression),p=m.end,e=(null==(a=m.typeExpression)?void 0:a.end)||e;break;case 354:e=(null==(s=m.name)?void 0:s.end)||e;break;case 335:case 336:e=m.class.end;break;case 356:h(m.typeExpression),p=m.end,e=(null==(c=m.typeExpression)?void 0:c.end)||e}"object"===typeof m.comment?d(m.comment.pos,m.comment.end-m.comment.pos):"string"===typeof m.comment&&d(e,m.end-e)}p!==e.end&&d(p,e.end-p);return;function f(e){e.isNameFirst&&(d(p,e.name.pos-p),l(e.name.pos,e.name.end-e.name.pos,17),p=e.name.end),e.typeExpression&&(d(p,e.typeExpression.pos-p),h(e.typeExpression),p=e.typeExpression.end),e.isNameFirst||(d(p,e.name.pos-p),l(e.name.pos,e.name.end-e.name.pos,17),p=e.name.end)}}(n.jsDoc)}else if(2===n&&function(e,n){const r=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,o=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,i=t.text.substr(e,n),a=r.exec(i);if(!a)return!1;if(!a[3]||!(a[3]in ni))return!1;let s=e;d(s,a[1].length),s+=a[1].length,l(s,a[2].length,10),s+=a[2].length,l(s,a[3].length,21),s+=a[3].length;const c=a[4];let u=s;for(;;){const e=o.exec(c);if(!e)break;const t=s+e.index+e[1].length;t>u&&(d(u,t-u),u=t),l(u,e[2].length,22),u+=e[2].length,e[3].length&&(d(u,e[3].length),u+=e[3].length),l(u,e[4].length,5),u+=e[4].length,e[5].length&&(d(u,e[5].length),u+=e[5].length),l(u,e[6].length,24),u+=e[6].length}s+=a[4].length,s>u&&d(u,s-u);a[5]&&(l(s,a[5].length,10),s+=a[5].length);const p=e+n;s<p&&d(s,p-s);return!0}(r,o))return;d(r,o)}function d(e,t){l(e,t,1)}function u(e){for(const t of e.getChildren())h(t)}function p(e,t,n){let r;for(r=t;r<n&&!ys(e.charCodeAt(r));r++);for(l(t,r-t,1),a.resetTokenState(r);a.getTokenEnd()<n;)f()}function f(){const e=a.getTokenEnd(),t=a.scan(),n=a.getTokenEnd(),r=_(t);r&&l(e,n-e,r)}function m(e){if(bM(e))return!0;if(im(e))return!0;const n=function(e){switch(e.parent&&e.parent.kind){case 286:if(e.parent.tagName===e)return 19;break;case 287:if(e.parent.tagName===e)return 20;break;case 285:if(e.parent.tagName===e)return 21;break;case 291:if(e.parent.name===e)return 22}return}(e);if(!Yc(e)&&12!==e.kind&&void 0===n)return!1;const r=12===e.kind?e.pos:function(e){for(i.resetTokenState(e.pos);;){const n=i.getTokenEnd();if(!Ss(t.text,n))return n;const r=i.scan(),o=i.getTokenEnd(),a=o-n;if(!Qy(r))return n;switch(r){case 4:case 5:continue;case 2:case 3:c(e,r,n,a),i.resetTokenState(o);continue;case 7:const s=t.text,d=s.charCodeAt(n);if(60===d||62===d){l(n,a,1);continue}In.assert(124===d||61===d),p(s,n,o);break;case 6:break;default:In.assertNever(r)}}}(e),o=e.end-r;if(In.assert(o>=0),o>0){const t=n||_(e.kind,e);t&&l(r,o,t)}return!0}function _(e,t){if(Vy(e))return 3;if((30===e||32===e)&&t&&LY(t.parent))return 10;if(Uy(e)){if(t){const n=t.parent;if(64===e&&(260===n.kind||172===n.kind||169===n.kind||291===n.kind))return 5;if(226===n.kind||224===n.kind||225===n.kind||227===n.kind)return 5}return 10}if(9===e)return 4;if(10===e)return 25;if(11===e)return t&&291===t.parent.kind?24:6;if(14===e)return 6;if(nd(e))return 6;if(12===e)return 23;if(80===e){if(t){switch(t.parent.kind){case 263:return t.parent.name===t?11:void 0;case 168:return t.parent.name===t?15:void 0;case 264:return t.parent.name===t?13:void 0;case 266:return t.parent.name===t?12:void 0;case 267:return t.parent.name===t?14:void 0;case 169:return t.parent.name===t?bb(t)?3:17:void 0}if(Bc(t.parent))return 3}return 2}}function h(n){if(n&&sl(r,o,n.pos,n.getFullWidth())){X0(e,n.kind);for(const e of n.getChildren(t))m(e)||h(e)}}}var n1,r1=b({"src/services/classifier.ts"(){Tge(),G0=tt([80,11,9,10,14,110,46,47,22,24,20,112,97],(e=>e),(()=>!0))}}),o1=b({"src/services/documentHighlights.ts"(){Tge(),(e=>{function t(e,t){return{fileName:t.fileName,textSpan:HY(e,t),kind:"none"}}function n(e){return nN(e)?[e]:rN(e)?ce(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):Td(e)?void 0:o(e,n)}function r(e){return Vc(e)?[e]:Td(e)?void 0:o(e,r)}function o(e,t){const n=[];return e.forEachChild((e=>{const r=t(e);void 0!==r&&n.push(..._t(r))})),n}function i(e,t){const n=a(t);return!!n&&n===e}function a(e){return Cl(e,(t=>{switch(t.kind){case 255:if(251===e.kind)return!1;case 248:case 249:case 250:case 247:case 246:return!e.label||function(e,t){return!!Cl(e.parent,(e=>tN(e)?e.label.escapedText===t:"quit"))}(t,e.label.escapedText);default:return Td(t)&&"quit"}}))}function s(e,t,...n){return!(!t||!F(n,t.kind))&&(e.push(t),!0)}function l(e){const t=[];if(s(t,e.getFirstToken(),99,117,92)&&246===e.kind){const n=e.getChildren();for(let e=n.length-1;e>=0&&!s(t,n[e],117);e--);}return x(r(e.statement),(n=>{i(e,n)&&s(t,n.getFirstToken(),83,88)})),t}function c(e){const t=a(e);if(t)switch(t.kind){case 248:case 249:case 250:case 246:case 247:return l(t);case 255:return d(t)}}function d(e){const t=[];return s(t,e.getFirstToken(),109),x(e.caseBlock.clauses,(n=>{s(t,n.getFirstToken(),84,90),x(r(n),(n=>{i(e,n)&&s(t,n.getFirstToken(),83)}))})),t}function u(e,t){const n=[];if(s(n,e.getFirstToken(),113),e.catchClause&&s(n,e.catchClause.getFirstToken(),85),e.finallyBlock){s(n,J$(e,98,t),98)}return n}function p(e,t){const r=function(e){let t=e;for(;t.parent;){const e=t.parent;if(rh(e)||312===e.kind)return e;if(rN(e)&&e.tryBlock===t&&e.catchClause)return t;t=e}}(e);if(!r)return;const o=[];return x(n(r),(e=>{o.push(J$(e,111,t))})),rh(r)&&H_(r,(e=>{o.push(J$(e,107,t))})),o}function f(e,t){const r=fh(e);if(!r)return;const o=[];return H_(vt(r.body,BD),(e=>{o.push(J$(e,107,t))})),x(n(r.body),(e=>{o.push(J$(e,111,t))})),o}function m(e){const t=fh(e);if(!t)return;const n=[];return t.modifiers&&t.modifiers.forEach((e=>{s(n,e,134)})),oP(t,(e=>{_(e,(e=>{bD(e)&&s(n,e.getFirstToken(),135)}))})),n}function _(e,t){t(e),Td(e)||Md(e)||cN(e)||pN(e)||dN(e)||Gd(e)||oP(e,(e=>_(e,t)))}e.getDocumentHighlights=function(e,n,r,o,i){const a=aY(r,o);if(a.parent&&(WN(a.parent)&&a.parent.tagName===a||zN(a.parent))){const{openingElement:e,closingElement:n}=a.parent.parent,o=[e,n].map((({tagName:e})=>t(e,r)));return[{fileName:r.fileName,highlightSpans:o}]}return function(e,t,n,r,o){const i=new Set(o.map((e=>e.fileName))),a=Hue.getReferenceEntriesForNode(e,t,n,o,r,void 0,i);if(!a)return;const s=nt(a.map(Hue.toHighlightSpan),(e=>e.fileName),(e=>e.span)),l=an(n.useCaseSensitiveFileNames());return Ye(ee(s.entries(),(([e,t])=>{if(!i.has(e)){if(!n.redirectTargetsMap.has(ga(e,n.getCurrentDirectory(),l)))return;const t=n.getSourceFile(e);e=L(o,(e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===t)).fileName,In.assert(i.has(e))}return{fileName:e,highlightSpans:t}})))}(o,a,e,n,i)||function(e,n){const r=function(e,n){switch(e.kind){case 101:case 93:return UD(e.parent)?function(e,n){const r=function(e,t){const n=[];for(;UD(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){const r=e.getChildren(t);s(n,r[0],101);for(let e=r.length-1;e>=0&&!s(n,r[e],93);e--);if(!e.elseStatement||!UD(e.elseStatement))break;e=e.elseStatement}return n}(e,n),o=[];for(let i=0;i<r.length;i++){if(93===r[i].kind&&i<r.length-1){const e=r[i],t=r[i+1];let a=!0;for(let r=t.getStart(n)-1;r>=e.end;r--)if(!gs(n.text.charCodeAt(r))){a=!1;break}if(a){o.push({fileName:n.fileName,textSpan:ul(e.getStart(),t.end),kind:"reference"}),i++;continue}}o.push(t(r[i],n))}return o}(e.parent,n):void 0;case 107:return i(e.parent,QD,f);case 111:return i(e.parent,nN,p);case 113:case 85:case 98:return i(85===e.kind?e.parent.parent:e.parent,rN,u);case 109:return i(e.parent,eN,d);case 84:case 90:return XN(e.parent)||JN(e.parent)?i(e.parent.parent.parent,eN,d):void 0;case 83:case 88:return i(e.parent,Vc,c);case 99:case 117:case 92:return i(e.parent,(e=>mu(e,!0)),l);case 137:return o(RC,[137]);case 139:case 153:return o(Ld,[139,153]);case 135:return i(e.parent,bD,m);case 134:return a(m(e));case 127:return a(function(e){const t=fh(e);if(!t)return;const n=[];return oP(t,(e=>{_(e,(e=>{ID(e)&&s(n,e.getFirstToken(),127)}))})),n}(e));case 103:case 147:return;default:return hd(e.kind)&&(Lu(e.parent)||GD(e.parent))?a((r=e.kind,Z(function(e,t){const n=e.parent;switch(n.kind){case 268:case 312:case 241:case 296:case 297:return 64&t&&lN(e)?[...e.members,e]:n.statements;case 176:case 174:case 262:return[...n.parameters,...Md(n.parent)?n.parent.members:[]];case 263:case 231:case 264:case 187:const r=n.members;if(15&t){const e=L(n.members,RC);if(e)return[...r,...e.parameters]}else if(64&t)return[...r,n];return r;case 210:return;default:In.assertNever(n,"Invalid container kind.")}}(e.parent,sE(r)),(e=>IQ(e,r))))):void 0}var r;function o(t,r){return i(e.parent,t,(e=>{var o;return Z(null==(o=yt(e,Cu))?void 0:o.symbol.declarations,(e=>t(e)?L(e.getChildren(n),(e=>F(r,e.kind))):void 0))}))}function i(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map((e=>t(e,n)))}}(e,n);return r&&[{fileName:n.fileName,highlightSpans:r}]}(a,r)}})(n1||(n1={}))}});function i1(e){return!!e.sourceFile}function a1(e,t,n){return s1(e,t,n)}function s1(e,t="",n,r){const o=new Map,i=an(!!e);function a(e){return"function"===typeof e.getCompilationSettings?e.getCompilationSettings():e}function s(e,t,n,r,o,i,a,s){return d(e,t,n,r,o,i,!0,a,s)}function l(e,t,n,r,o,i,s,l){return d(e,t,a(n),r,o,i,!1,s,l)}function c(e,t){const n=i1(e)?e:e.get(In.checkDefined(t,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return In.assert(void 0===t||!n||n.sourceFile.scriptKind===t,`Script kind should match provided ScriptKind:${t} and sourceFile.scriptKind: ${null==n?void 0:n.sourceFile.scriptKind}, !entry: ${!n}`),n}function d(e,t,i,s,l,d,u,p,f){var m,_,h,g;p=QT(e,p);const y=a(i),v=i===y?void 0:i,b=6===p?100:jp(y),E="object"===typeof f?f:{languageVersion:b,impliedNodeFormat:v&&sH(t,null==(g=null==(h=null==(_=null==(m=v.getCompilerHost)?void 0:m.call(v))?void 0:_.getModuleResolutionCache)?void 0:h.call(_))?void 0:g.getPackageJsonInfoCache(),v,y),setExternalModuleIndicator:vT(y),jsDocParsingMode:n};E.languageVersion=b,In.assertEqual(n,E.jsDocParsingMode);const S=o.size,T=c1(s,E.impliedNodeFormat),x=ne(o,T,(()=>new Map));if(kr){o.size>S&&kr.instant(kr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:y.configFilePath,key:T});const e=!_P(t)&&Wf(o,((e,n)=>n!==T&&e.has(t)&&n));e&&kr.instant(kr.Phase.Session,"documentRegistryBucketOverlap",{path:t,key1:e,key2:T})}const A=x.get(t);let I=A&&c(A,p);if(!I&&r){const e=r.getDocument(T,t);e&&(In.assert(u),I={sourceFile:e,languageServiceRefCount:0},R())}if(I)I.sourceFile.version!==d&&(I.sourceFile=E7(I.sourceFile,l,d,l.getChangeRange(I.sourceFile.scriptSnapshot)),r&&r.setDocument(T,t,I.sourceFile)),u&&I.languageServiceRefCount++;else{const n=b7(e,l,E,d,!1,p);r&&r.setDocument(T,t,n),I={sourceFile:n,languageServiceRefCount:1},R()}return In.assert(0!==I.languageServiceRefCount),I.sourceFile;function R(){if(A)if(i1(A)){const e=new Map;e.set(A.sourceFile.scriptKind,A),e.set(p,I),x.set(t,e)}else A.set(p,I);else x.set(t,I)}}function u(e,t,n,r){const i=In.checkDefined(o.get(c1(t,r))),a=i.get(e),s=c(a,n);s.languageServiceRefCount--,In.assert(s.languageServiceRefCount>=0),0===s.languageServiceRefCount&&(i1(a)?i.delete(e):(a.delete(n),1===a.size&&i.set(e,R(a.values(),xt))))}return{acquireDocument:function(e,n,r,o,l,c){return s(e,ga(e,t,i),n,l1(a(n)),r,o,l,c)},acquireDocumentWithKey:s,updateDocument:function(e,n,r,o,s,c){return l(e,ga(e,t,i),n,l1(a(n)),r,o,s,c)},updateDocumentWithKey:l,releaseDocument:function(e,n,r,o){return u(ga(e,t,i),l1(n),r,o)},releaseDocumentWithKey:u,getKeyForCompilationSettings:l1,getDocumentRegistryBucketKeyWithMode:c1,reportStats:function(){const e=Ye(o.keys()).filter((e=>e&&"_"===e.charAt(0))).map((e=>{const t=o.get(e),n=[];return t.forEach(((e,t)=>{i1(e)?n.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(((e,r)=>n.push({name:t,scriptKind:r,refCount:e.languageServiceRefCount})))})),n.sort(((e,t)=>t.refCount-e.refCount)),{bucket:e,sourceFiles:n}}));return JSON.stringify(e,void 0,2)},getBuckets:()=>o}}function l1(e){return EF(e,zP)}function c1(e,t){return t?`${e}|${t}`:e}var d1=b({"src/services/documentRegistry.ts"(){Tge()}});function u1(e,t,n,r,o,i,a){const s=qv(r),l=an(s),c=p1(t,n,l,a),d=p1(n,t,l,a);return p_e.ChangeTracker.with({host:r,formatContext:o,preferences:i},(o=>{!function(e,t,n,r,o,i,a){const{configFile:s}=e.getCompilerOptions();if(!s)return;const l=ra(s.fileName),c=dh(s);if(!c)return;function d(e){const t=aD(e.initializer)?e.initializer.elements:[e.initializer];let n=!1;for(const r of t)n=u(r)||n;return n}function u(e){if(!zR(e))return!1;const r=f1(l,e.text),o=n(r);return void 0!==o&&(t.replaceRangeWithText(s,g1(e,s),p(o)),!0)}function p(e){return Na(l,e,!a)}y1(c,((e,n)=>{switch(n){case"files":case"include":case"exclude":{if(d(e)||"include"!==n||!aD(e.initializer))return;const c=Z(e.initializer.elements,(e=>zR(e)?e.text:void 0));if(0===c.length)return;const u=qT(l,[],c,a,i);return void(JT(In.checkDefined(u.includeFilePattern),a).test(r)&&!JT(In.checkDefined(u.includeFilePattern),a).test(o)&&t.insertNodeAfter(s,Fe(e.initializer.elements),UA.createStringLiteral(p(o))))}case"compilerOptions":return void y1(e.initializer,((e,t)=>{const n=xw(t);In.assert("listOrElement"!==(null==n?void 0:n.type)),n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?d(e):"paths"===t&&y1(e.initializer,(e=>{if(aD(e.initializer))for(const t of e.initializer.elements)u(t)}))}))}}))}(e,o,c,t,n,r.getCurrentDirectory(),s),function(e,t,n,r,o,i){const a=e.getSourceFiles();for(const s of a){const l=n(s.fileName),c=l??s.fileName,d=ra(c),u=r(s.fileName),p=u||s.fileName,f=ra(p),m=void 0!==l||void 0!==u;h1(s,t,(e=>{if(!Ji(e))return;const t=f1(f,e),r=n(t);return void 0===r?void 0:ba(Na(d,r,i))}),(t=>{const r=e.getTypeChecker().getSymbolAtLocation(t);if((null==r?void 0:r.declarations)&&r.declarations.some((e=>Pm(e))))return;const i=void 0!==u?_1(t,wF(t.text,p,e.getCompilerOptions(),o),n,a):m1(r,t,s,e,o,n);return void 0!==i&&(i.updated||m&&Ji(t.text))?Rz.updateModuleSpecifier(e.getCompilerOptions(),s,c,i.newFileName,dQ(e,o),t.text):void 0}))}}(e,o,c,d,r,l)}))}function p1(e,t,n,r){const o=n(e);return e=>{const i=r&&r.tryGetSourcePosition({fileName:e,pos:0}),a=function(e){if(n(e)===o)return t;const r=WT(e,o,n);return void 0===r?void 0:t+"/"+r}(i?i.fileName:e);return i?void 0===a?void 0:function(e,t,n,r){const o=La(e,t,r);return f1(ra(n),o)}(i.fileName,a,e,n):a}}function f1(e,t){return ba(function(e,t){return _a(ua(e,t))}(e,t))}function m1(e,t,n,r,o,i){if(e){const t=L(e.declarations,rM).fileName,n=i(t);return void 0===n?{newFileName:t,updated:!1}:{newFileName:n,updated:!0}}{const e=r.getModeForUsageLocation(n,t);return _1(t,o.resolveModuleNameLiterals||!o.resolveModuleNames?r.getResolvedModuleFromModuleSpecifier(t):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,e),i,r.getSourceFiles())}}function _1(e,t,n,r){if(!t)return;if(t.resolvedModule){const e=a(t.resolvedModule.resolvedFileName);if(e)return e}const o=x(t.failedLookupLocations,(function(e){const t=n(e);return t&&L(r,(e=>e.fileName===t))?i(e):void 0}))||Ji(e.text)&&x(t.failedLookupLocations,i);return o||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function i(e){return Yt(e,"/package.json")?void 0:a(e)}function a(e){const t=n(e);return t&&{newFileName:t,updated:!0}}}function h1(e,t,n,r){for(const i of e.referencedFiles||o){const r=n(i.fileName);void 0!==r&&r!==e.text.slice(i.pos,i.end)&&t.replaceRangeWithText(e,i,r)}for(const o of e.imports){const n=r(o);void 0!==n&&n!==o.text&&t.replaceRangeWithText(e,g1(o,e),n)}}function g1(e,t){return UE(e.getStart(t)+1,e.end-1)}function y1(e,t){if(sD(e))for(const n of e.properties)QN(n)&&zR(n.name)&&t(n,n.name.text)}var v1,b1=b({"src/services/getEditsForFileRename.ts"(){Tge()}});function E1(e,t){return{kind:e,isCaseSensitive:t}}function S1(e){const t=new Map,n=e.trim().split(".").map((e=>{return{totalTextChunk:O1(t=e.trim()),subWordTextChunks:w1(t)};var t}));return 1===n.length&&""===n[0].totalTextChunk.text?{getMatchForLastSegmentOfPattern:()=>E1(2,!0),getFullMatch:()=>E1(2,!0),patternContainsDots:!1}:n.some((e=>!e.subWordTextChunks.length))?void 0:{getFullMatch:(e,r)=>function(e,t,n,r){const o=A1(t,Fe(n),r);if(!o)return;if(n.length-1>e.length)return;let i;for(let a=n.length-2,s=e.length-1;a>=0;a-=1,s-=1)i=I1(i,A1(e[s],n[a],r));return i}(e,r,n,t),getMatchForLastSegmentOfPattern:e=>A1(e,Fe(n),t),patternContainsDots:n.length>1}}function T1(e,t){let n=t.get(e);return n||t.set(e,n=W1(e)),n}function x1(e,t,n){const r=function(e,t){const n=e.length-t.length;for(let r=0;r<=n;r++)if(H1(t,((t,n)=>L1(e.charCodeAt(n+r))===t)))return r;return-1}(e,t.textLowerCase);if(0===r)return E1(t.text.length===e.length?0:1,dn(e,t.text));if(t.isLowerCase){if(-1===r)return;const o=T1(e,n);for(const n of o)if(C1(e,n,t.text,!0))return E1(2,C1(e,n,t.text,!1));if(t.text.length<e.length&&N1(e.charCodeAt(r)))return E1(2,!1)}else{if(e.indexOf(t.text)>0)return E1(2,!0);if(t.characterSpans.length>0){const r=T1(e,n),o=!!D1(e,r,t,!1)||!D1(e,r,t,!0)&&void 0;if(void 0!==o)return E1(3,o)}}}function A1(e,t,n){if(H1(t.totalTextChunk.text,(e=>32!==e&&42!==e))){const r=x1(e,t.totalTextChunk,n);if(r)return r}const r=t.subWordTextChunks;let o;for(const i of r)o=I1(o,x1(e,i,n));return o}function I1(e,t){return zt([e,t],R1)}function R1(e,t){return void 0===e?1:void 0===t?-1:Ft(e.kind,t.kind)||Jt(!e.isCaseSensitive,!t.isCaseSensitive)}function C1(e,t,n,r,o={start:0,length:n.length}){return o.length<=t.length&&U1(0,o.length,(i=>function(e,t,n){return n?L1(e)===L1(t):e===t}(n.charCodeAt(o.start+i),e.charCodeAt(t.start+i),r)))}function D1(e,t,n,r){const o=n.characterSpans;let i,a,s=0,l=0;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let c=t[s],d=!1;for(;l<o.length;l++){const t=o[l];if(d&&(!N1(n.text.charCodeAt(o[l-1].start))||!N1(n.text.charCodeAt(o[l].start))))break;if(!C1(e,c,n.text,r,t))break;d=!0,i=void 0===i?s:i,a=void 0===a||a,c=dl(c.start+t.length,c.length-t.length)}d||void 0===a||(a=!1),s++}}function N1(e){if(e>=65&&e<=90)return!0;if(e<127||!is(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function M1(e){if(e>=97&&e<=122)return!0;if(e<127||!is(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function L1(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function k1(e){return e>=48&&e<=57}function P1(e){return N1(e)||M1(e)||k1(e)||95===e||36===e}function w1(e){const t=[];let n=0,r=0;for(let o=0;o<e.length;o++){P1(e.charCodeAt(o))?(0===r&&(n=o),r++):r>0&&(t.push(O1(e.substr(n,r))),r=0)}return r>0&&t.push(O1(e.substr(n,r))),t}function O1(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:F1(e)}}function F1(e){return z1(e,!1)}function W1(e){return z1(e,!0)}function z1(e,t){const n=[];let r=0;for(let o=1;o<e.length;o++){const i=k1(e.charCodeAt(o-1)),a=k1(e.charCodeAt(o)),s=V1(e,t,o),l=t&&j1(e,o,r);(B1(e.charCodeAt(o-1))||B1(e.charCodeAt(o))||i!==a||s||l)&&(G1(e,r,o)||n.push(dl(r,o-r)),r=o)}return G1(e,r,e.length)||n.push(dl(r,e.length-r)),n}function B1(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function G1(e,t,n){return H1(e,(e=>B1(e)&&95!==e),t,n)}function j1(e,t,n){return t!==n&&t+1<e.length&&N1(e.charCodeAt(t))&&M1(e.charCodeAt(t+1))&&H1(e,N1,n,t)}function V1(e,t,n){const r=N1(e.charCodeAt(n-1));return N1(e.charCodeAt(n))&&(!t||!r)}function U1(e,t,n){for(let r=e;r<t;r++)if(!n(r))return!1;return!0}function H1(e,t,n=0,r=e.length){return U1(n,r,(n=>t(e.charCodeAt(n),n)))}var K1=b({"src/services/patternMatcher.ts"(){Tge(),v1=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(v1||{})}});function q1(e,t=!0,n=!1){const r={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[];let i,a,s,l=0,c=!1;function d(){return a=s,s=KX.scan(),19===s?l++:20===s&&l--,s}function u(){const e=KX.getTokenValue(),t=KX.getTokenStart();return{fileName:e,pos:t,end:t+e.length}}function p(){o.push(u()),f()}function f(){0===l&&(c=!0)}function m(){let e=KX.getToken();return 138===e&&(e=d(),144===e&&(e=d(),11===e&&(i||(i=[]),i.push({ref:u(),depth:l}))),!0)}function _(){if(25===a)return!1;let e=KX.getToken();if(102===e){if(e=d(),21===e){if(e=d(),11===e||15===e)return p(),!0}else{if(11===e)return p(),!0;if(156===e){KX.lookAhead((()=>{const e=KX.scan();return 161!==e&&(42===e||19===e||80===e||Vy(e))}))&&(e=d())}if(80===e||Vy(e))if(e=d(),161===e){if(e=d(),11===e)return p(),!0}else if(64===e){if(g(!0))return!0}else{if(28!==e)return!0;e=d()}if(19===e){for(e=d();20!==e&&1!==e;)e=d();20===e&&(e=d(),161===e&&(e=d(),11===e&&p()))}else 42===e&&(e=d(),130===e&&(e=d(),(80===e||Vy(e))&&(e=d(),161===e&&(e=d(),11===e&&p()))))}return!0}return!1}function h(){let e=KX.getToken();if(95===e){if(f(),e=d(),156===e){KX.lookAhead((()=>{const e=KX.scan();return 42===e||19===e}))&&(e=d())}if(19===e){for(e=d();20!==e&&1!==e;)e=d();20===e&&(e=d(),161===e&&(e=d(),11===e&&p()))}else if(42===e)e=d(),161===e&&(e=d(),11===e&&p());else if(102===e){if(e=d(),156===e){KX.lookAhead((()=>{const e=KX.scan();return 80===e||Vy(e)}))&&(e=d())}if((80===e||Vy(e))&&(e=d(),64===e&&g(!0)))return!0}return!0}return!1}function g(e,t=!1){let n=e?d():KX.getToken();return 149===n&&(n=d(),21===n&&(n=d(),(11===n||t&&15===n)&&p()),!0)}function y(){let e=KX.getToken();if(80===e&&"define"===KX.getTokenValue()){if(e=d(),21!==e)return!0;if(e=d(),11===e||15===e){if(e=d(),28!==e)return!0;e=d()}if(23!==e)return!0;for(e=d();24!==e&&1!==e;)11!==e&&15!==e||p(),e=d();return!0}return!1}if(t&&function(){for(KX.setText(e),d();1!==KX.getToken();){if(16===KX.getToken()){const e=[KX.getToken()];e:for(;T(e);){const t=KX.scan();switch(t){case 1:break e;case 102:_();break;case 16:e.push(t);break;case 19:T(e)&&e.push(t);break;case 20:T(e)&&(16===Oe(e)?18===KX.reScanTemplateToken(!1)&&e.pop():e.pop())}}d()}m()||_()||h()||n&&(g(!1,!0)||y())||d()}KX.setText(void 0)}(),gP(r,e),yP(r,bt),c){if(i)for(const e of i)o.push(e.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:o,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:void 0}}{let e;if(i)for(const t of i)0===t.depth?(e||(e=[]),e.push(t.ref.fileName)):o.push(t.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:o,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:e}}}var J1,X1=b({"src/services/preProcess.ts"(){Tge()}});function $1(e){const t=an(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),r=new Map,o=new Map;return{tryGetSourcePosition:function e(t){if(!_P(t.fileName))return;if(!s(t.fileName))return;const n=a(t.fileName).getSourcePosition(t);return n&&n!==t?e(n)||n:void 0},tryGetGeneratedPosition:function(r){if(_P(r.fileName))return;const o=s(r.fileName);if(!o)return;const i=e.getProgram();if(i.isSourceOfProjectReferenceRedirect(o.fileName))return;const l=ob(i.getCompilerOptions()),c=l?cx(l)+".d.ts":tb(r.fileName,i.getCompilerOptions(),n,i.getCommonSourceDirectory(),t);if(void 0===c)return;const d=a(c,r.fileName).getGeneratedPosition(r);return d===r?void 0:d},toLineColumnOffset:function(e,t){return c(e).getLineAndCharacterOfPosition(t)},clearCache:function(){r.clear(),o.clear()}};function i(e){return ga(e,n,t)}function a(n,r){const a=i(n),s=o.get(a);if(s)return s;let l;if(e.getDocumentPositionMapper)l=e.getDocumentPositionMapper(n,r);else if(e.readFile){const r=c(n);l=r&&Y1({getSourceFileLike:c,getCanonicalFileName:t,log:t=>e.log(t)},n,EB(r.text,us(r)),(t=>!e.fileExists||e.fileExists(t)?e.readFile(t):void 0))}return o.set(a,l||yB),l||yB}function s(t){const n=e.getProgram();if(!n)return;const r=i(t),o=n.getSourceFileByPath(r);return o&&o.resolvedPath===r?o:void 0}function l(t){const n=i(t),o=r.get(n);if(void 0!==o)return o||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(t))return void r.set(n,!1);const a=e.readFile(t),s=!!a&&function(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(e){return ps(us(this),e)}}}(a);return r.set(n,s),s||void 0}function c(t){return e.getSourceFileLike?e.getSourceFileLike(t):s(t)||l(t)}}function Y1(e,t,n,r){let o=SB(n);if(o){const n=J1.exec(o);if(n){if(n[1]){const r=n[1];return Q1(e,WE(hi,r),t)}o=void 0}}const i=[];o&&i.push(o),i.push(t+".map");const a=o&&ma(o,ra(t));for(const s of i){const n=ma(s,ra(t)),o=r(n,a);if(ht(o))return Q1(e,o,n);if(void 0!==o)return o||void 0}}function Q1(e,t,n){const r=AB(t);if(r&&r.sources&&r.file&&r.mappings&&(!r.sourcesContent||!r.sourcesContent.some(ht)))return wB(e,r,n)}var Z1,e2=b({"src/services/sourcemaps.ts"(){Tge(),J1=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function t2(e,t,n){var r;t.getSemanticDiagnostics(e,n);const o=[],i=t.getTypeChecker();var a;!(1===e.impliedNodeFormat||Qi(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(lQ(t)||cQ(t.getCompilerOptions()))&&function(e){return e.statements.some((e=>{switch(e.kind){case 243:return e.declarationList.declarations.some((e=>!!e.initializer&&tg(n2(e.initializer),!0)));case 244:{const{expression:t}=e;if(!TD(t))return tg(t,!0);const n=Eg(t);return 1===n||2===n}default:return!1}}))}(e)&&o.push(d_(TD(a=e.commonJsModuleIndicator)?a.left:a,Oa.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const s=Jh(e);if(Z1.clear(),function t(n){if(s)(function(e,t){var n,r,o,i;if(_D(e)){if(iN(e.parent)&&(null==(n=e.symbol.members)?void 0:n.size))return!0;const i=t.getSymbolOfExpando(e,!1);return!(!i||!(null==(r=i.exports)?void 0:r.size)&&!(null==(o=i.members)?void 0:o.size))}if(sN(e))return!!(null==(i=e.symbol.members)?void 0:i.size);return!1})(n,i)&&o.push(d_(iN(n.parent)?n.parent.name:n,Oa.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(GD(n)&&n.parent===e&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){const e=n.declarationList.declarations[0].initializer;e&&tg(e,!0)&&o.push(d_(e,Oa.require_call_may_be_converted_to_an_import))}const t=Qle.getJSDocTypedefNodes(n);for(const e of t)o.push(d_(e,Oa.JSDoc_typedef_may_be_converted_to_TypeScript_type));Qle.parameterShouldGetTypeFromJSDoc(n)&&o.push(d_(n.name||n,Oa.JSDoc_types_may_be_moved_to_TypeScript_types))}u2(n)&&function(e,t,n){(function(e,t){return!ev(e)&&e.body&&BD(e.body)&&function(e,t){return!!H_(e,(e=>i2(e,t)))}(e.body,t)&&o2(e,t)})(e,t)&&!Z1.has(d2(e))&&n.push(d_(!e.name&&iN(e.parent)&&nC(e.parent.name)?e.parent.name:e,Oa.This_may_be_converted_to_an_async_function))}(n,i,o);n.forEachChild(t)}(e),Jp(t.getCompilerOptions()))for(const l of e.imports){const e=r2(Wg(l));if(!e)continue;const n=null==(r=t.getResolvedModuleFromModuleSpecifier(l))?void 0:r.resolvedModule,i=n&&t.getSourceFile(n.resolvedFileName);i&&i.externalModuleIndicator&&!0!==i.externalModuleIndicator&&CN(i.externalModuleIndicator)&&i.externalModuleIndicator.isExportEquals&&o.push(d_(e,Oa.Import_may_be_converted_to_a_default_import))}return xe(o,e.bindSuggestionDiagnostics),xe(o,t.getSuggestionDiagnostics(e,n)),o.sort(((e,t)=>e.start-t.start))}function n2(e){return lD(e)?n2(e.expression):e}function r2(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&274===t.namedBindings.kind&&zR(n)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function o2(e,t){const n=t.getSignatureFromDeclaration(e),r=n?t.getReturnTypeOfSignature(n):void 0;return!!r&&!!t.getPromisedTypeOfPromise(r)}function i2(e,t){return QD(e)&&!!e.expression&&a2(e.expression,t)}function a2(e,t){if(!s2(e)||!l2(e)||!e.arguments.every((e=>c2(e,t))))return!1;let n=e.expression.expression;for(;s2(n)||lD(n);)if(dD(n)){if(!l2(n)||!n.arguments.every((e=>c2(e,t))))return!1;n=n.expression.expression}else n=n.expression;return!0}function s2(e){return dD(e)&&(y$(e,"then")||y$(e,"catch")||y$(e,"finally"))}function l2(e){const t=e.expression.name.text,n="then"===t?2:"catch"===t||"finally"===t?1:0;return!(e.arguments.length>n)&&(e.arguments.length<n||(1===n||se(e.arguments,(e=>106===e.kind||nC(e)&&"undefined"===e.text))))}function c2(e,t){switch(e.kind){case 262:case 218:if(1&Zy(e))return!1;case 219:Z1.set(d2(e),!0);case 106:return!0;case 80:case 211:{const n=t.getSymbolAtLocation(e);return!!n&&(t.isUndefinedSymbol(n)||se(hS(n,t).declarations,(e=>Td(e)||Yu(e)&&!!e.initializer&&Td(e.initializer))))}default:return!1}}function d2(e){return`${e.pos.toString()}:${e.end.toString()}`}function u2(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var p2,f2,m2=b({"src/services/suggestionDiagnostics.ts"(){Tge(),Z1=new Map}});function _2(e,t){const n=[],r=t.compilerOptions?g2(t.compilerOptions,n):{},o={target:1,jsx:1};for(const p in o)He(o,p)&&void 0===r[p]&&(r[p]=o[p]);for(const p of GP)r.verbatimModuleSyntax&&p2.has(p.name)||(r[p.name]=p.transpileOptionValue);r.suppressOutputPathCheck=!0,r.allowNonTsExtensions=!0;const i=VE(r),a={getSourceFile:e=>e===_a(s)?l:void 0,writeFile:(e,t)=>{Yi(e,".map")?(In.assertEqual(d,void 0,"Unexpected multiple source map outputs, file:",e),d=t):(In.assertEqual(c,void 0,"Unexpected multiple outputs, file:",e),c=t)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>i,fileExists:e=>e===s,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},s=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),l=lP(s,e,{languageVersion:jp(r),impliedNodeFormat:sH(ga(s,"",a.getCanonicalFileName),void 0,a,r),setExternalModuleIndicator:vT(r),jsDocParsingMode:t.jsDocParsingMode??0});let c,d;t.moduleName&&(l.moduleName=t.moduleName),t.renamedDependencies&&(l.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));const u=cH([s],r,a);return t.reportDiagnostics&&(xe(n,u.getSyntacticDiagnostics(l)),xe(n,u.getOptionsDiagnostics())),u.emit(void 0,void 0,void 0,void 0,t.transformers),void 0===c?In.fail("Output generation failed"):{outputText:c,diagnostics:n,sourceMapText:d}}function h2(e,t,n,r,o){const i=_2(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!r,moduleName:o});return xe(r,i.diagnostics),i.outputText}function g2(e,t){f2=f2||G(PP,(e=>"object"===typeof e.type&&!Wf(e.type,(e=>"number"!==typeof e)))),e=zY(e);for(const n of f2){if(!He(e,n.name))continue;const r=e[n.name];ht(r)?e[n.name]=gw(n,r,t):Wf(n.type,(e=>e===r))||t.push(_w(n))}return e}var y2=b({"src/services/transpile.ts"(){Tge(),p2=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function v2(e,t,n,r,i,a,s){const l=S1(r);if(!l)return o;const c=[],d=1===e.length?e[0]:void 0;for(const o of e)n.throwIfCancellationRequested(),a&&o.isDeclarationFile||b2(o,!!s,d)||o.getNamedDeclarations().forEach(((e,n)=>{E2(l,n,e,t,o.fileName,!!s,d,c)}));return c.sort(R2),(void 0===i?c:c.slice(0,i)).map(C2)}function b2(e,t,n){return e!==n&&t&&(o0(e.path)||e.hasNoDefaultLib)}function E2(e,t,n,r,o,i,a,s){const l=e.getMatchForLastSegmentOfPattern(t);if(l)for(const c of n)if(S2(c,r,i,a))if(e.patternContainsDots){const n=e.getFullMatch(I2(c),t);n&&s.push({name:t,fileName:o,matchKind:n.kind,isCaseSensitive:n.isCaseSensitive,declaration:c})}else s.push({name:t,fileName:o,matchKind:l.kind,isCaseSensitive:l.isCaseSensitive,declaration:c})}function S2(e,t,n,r){var o;switch(e.kind){case 273:case 276:case 271:const i=t.getSymbolAtLocation(e.name),a=t.getAliasedSymbol(i);return i.escapedName!==a.escapedName&&!(null==(o=a.declarations)?void 0:o.every((e=>b2(e.getSourceFile(),n,r))));default:return!0}}function T2(e,t){const n=jl(e);return!!n&&(A2(n,t)||167===n.kind&&x2(n.expression,t))}function x2(e,t){return A2(e,t)||lD(e)&&(t.push(e.name.text),!0)&&x2(e.expression,t)}function A2(e,t){return av(e)&&(t.push(sv(e)),!0)}function I2(e){const t=[],n=jl(e);if(n&&167===n.kind&&!x2(n.expression,t))return o;t.shift();let r=N$(e);for(;r;){if(!T2(r,t))return o;r=N$(r)}return t.reverse()}function R2(e,t){return Ft(e.matchKind,t.matchKind)||Kt(e.name,t.name)}function C2(e){const t=e.declaration,n=N$(t),r=n&&jl(n);return{name:e.name,kind:M$(t),kindModifiers:MY(t),matchKind:v1[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:HY(t),containerName:r?r.text:"",containerKind:r?M$(n):""}}var D2=b({"src/services/navigateTo.ts"(){Tge()}}),N2={};E(N2,{getNavigateToItems:()=>v2});var M2,L2,k2,P2,w2,O2,F2,W2,z2,B2,G2=b({"src/services/_namespaces/ts.NavigateTo.ts"(){D2()}});function j2(e,t){k2=t,P2=e;try{return U(function(e){const t=[];function n(e){if(r(e)&&(t.push(e),e.children))for(const t of e.children)n(t)}return n(e),t;function r(e){if(e.children)return!0;switch(K2(e)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(K2(e.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}(J2(e)),h4)}finally{U2()}}function V2(e,t){k2=t,P2=e;try{return _4(J2(e))}finally{U2()}}function U2(){P2=void 0,k2=void 0,w2=[],O2=void 0,z2=[]}function H2(e){return I4(e.getText(P2))}function K2(e){return e.node.kind}function q2(e,t){e.children?e.children.push(t):e.children=[t]}function J2(e){In.assert(!w2.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};O2=t;for(const n of e.statements)i4(n);return t4(),In.assert(!O2&&!w2.length),t}function X2(e,t){q2(O2,$2(e,t))}function $2(e,t){return{node:e,name:t||(Lu(e)||uu(e)?jl(e):void 0),additionalNodes:void 0,parent:O2,children:void 0,indent:O2.indent+1}}function Y2(e){W2||(W2=new Map),W2.set(e,!0)}function Q2(e){for(let t=0;t<e;t++)t4()}function Z2(e,t){const n=[];for(;!av(t);){const e=Cg(t),r=Ng(t);t=t.expression,"prototype"===r||rC(e)||n.push(e)}n.push(t);for(let r=n.length-1;r>0;r--){e4(e,n[r])}return[n.length-1,n[0]]}function e4(e,t){const n=$2(e,t);q2(O2,n),w2.push(O2),F2.push(W2),W2=void 0,O2=n}function t4(){O2.children&&(a4(O2.children,O2),u4(O2.children)),O2=w2.pop(),W2=F2.pop()}function n4(e,t,n){e4(e,n),i4(t),t4()}function r4(e){e.initializer&&function(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}(e.initializer)?(e4(e),oP(e.initializer,i4),t4()):n4(e,e.initializer)}function o4(e){const t=jl(e);if(void 0===t)return!1;if(yC(t)){const e=t.expression;return EE(e)||FR(e)||tv(e)}return!!t}function i4(e){if(k2.throwIfCancellationRequested(),e&&!Yc(e))switch(e.kind){case 176:const t=e;n4(t,t.body);for(const e of t.parameters)gl(e,t)&&X2(e);break;case 174:case 177:case 178:case 173:o4(e)&&n4(e,e.body);break;case 172:o4(e)&&r4(e);break;case 171:o4(e)&&X2(e);break;case 273:const n=e;n.name&&X2(n.name);const{namedBindings:r}=n;if(r)if(274===r.kind)X2(r);else for(const e of r.elements)X2(e);break;case 304:n4(e,e.name);break;case 305:const{expression:o}=e;nC(o)?X2(e,o):X2(e);break;case 208:case 303:case 260:{const t=e;Vd(t.name)?i4(t.name):r4(t);break}case 262:const i=e.name;i&&nC(i)&&Y2(i.text),n4(e,e.body);break;case 219:case 218:n4(e,e.body);break;case 266:e4(e);for(const a of e.members)E4(a)||X2(a);t4();break;case 263:case 231:case 264:e4(e);for(const a of e.members)i4(a);t4();break;case 267:n4(e,b4(e).body);break;case 277:{const t=e.expression,n=sD(t)||dD(t)?t:hD(t)||_D(t)?t.body:void 0;n?(e4(e),i4(n),t4()):X2(e);break}case 281:case 271:case 181:case 179:case 180:case 265:X2(e);break;case 213:case 226:{const t=Eg(e);switch(t){case 1:case 2:return void n4(e,e.right);case 6:case 3:{const n=e,r=n.left,o=3===t?r.expression:r;let i,a=0;return nC(o.expression)?(Y2(o.expression.text),i=o.expression):[a,i]=Z2(n,o.expression),6===t?sD(n.right)&&n.right.properties.length>0&&(e4(n,i),oP(n.right,i4),t4()):_D(n.right)||hD(n.right)?n4(e,n.right,i):(e4(n,i),n4(e,n.right,r.name),t4()),void Q2(a)}case 7:case 9:{const n=e,r=7===t?n.arguments[0]:n.arguments[0].expression,o=n.arguments[1],[i,a]=Z2(e,r);return e4(e,a),e4(e,yk(UA.createIdentifier(o.text),o)),i4(e.arguments[2]),t4(),t4(),void Q2(i)}case 5:{const t=e,n=t.left,r=n.expression;if(nC(r)&&"prototype"!==Ng(n)&&W2&&W2.has(r.text))return void(_D(t.right)||hD(t.right)?n4(e,t.right,r):Ag(n)&&(e4(t,r),n4(t.left,t.right,Cg(n)),t4()));break}case 4:case 0:case 8:break;default:In.assertNever(t)}}default:Xu(e)&&x(e.jsDoc,(e=>{x(e.tags,(e=>{Kg(e)&&X2(e)}))})),oP(e,i4)}}function a4(e,t){const n=new Map;j(e,((e,r)=>{const o=e.name||jl(e.node),i=o&&H2(o);if(!i)return!0;const a=n.get(i);if(!a)return n.set(i,e),!0;if(a instanceof Array){for(const n of a)if(s4(n,e,r,t))return!1;return a.push(e),!0}{const o=a;return!s4(o,e,r,t)&&(n.set(i,[o,e]),!0)}}))}function s4(e,t,n,r){return!!function(e,t,n,r){function o(e){return _D(e)||sN(e)||iN(e)}const i=TD(t.node)||dD(t.node)?Eg(t.node):0,a=TD(e.node)||dD(e.node)?Eg(e.node):0;if(B2[i]&&B2[a]||o(e.node)&&B2[i]||o(t.node)&&B2[a]||lN(e.node)&&l4(e.node)&&B2[i]||lN(t.node)&&B2[a]||lN(e.node)&&l4(e.node)&&o(t.node)||lN(t.node)&&o(e.node)&&l4(e.node)){let i=e.additionalNodes&&Oe(e.additionalNodes)||e.node;if(!lN(e.node)&&!lN(t.node)||o(e.node)||o(t.node)){const n=o(e.node)?e.node:o(t.node)?t.node:void 0;if(void 0!==n){const r=$2(yk(UA.createConstructorDeclaration(void 0,[],void 0),n));r.indent=e.indent+1,r.children=e.node===n?e.children:t.children,e.children=e.node===n?ce([r],t.children||[t]):ce(e.children||[{...e}],[r])}else(e.children||t.children)&&(e.children=ce(e.children||[{...e}],t.children||[t]),e.children&&(a4(e.children,e),u4(e.children)));i=e.node=yk(UA.createClassDeclaration(void 0,e.name||UA.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=ce(e.children,t.children),e.children&&a4(e.children,e);const a=t.node;return r.children[n-1].node.end===i.end?yk(i,{pos:i.pos,end:a.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(yk(UA.createClassDeclaration(void 0,e.name||UA.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return 0!==i}(e,t,n,r)||!!function(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&(!c4(e,n)||!c4(t,n)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return jb(e)===jb(t);case 267:return d4(e,t)&&v4(e)===v4(t);default:return!0}}(e.node,t.node,r)&&(function(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes);e.children=ce(e.children,t.children),e.children&&(a4(e.children,e),u4(e.children))}(e,t),!0)}function l4(e){return!!(16&e.flags)}function c4(e,t){const n=fN(e.parent)?e.parent.parent:e.parent;return n===t.node||F(t.additionalNodes,n)}function d4(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(267!==e.body.kind||d4(e.body,t.body)):e.body===t.body}function u4(e){e.sort(p4)}function p4(e,t){return Kt(f4(e.node),f4(t.node))||Ft(K2(e),K2(t))}function f4(e){if(267===e.kind)return y4(e);const t=jl(e);if(t&&Ed(t)){const e=iv(t);return e&&Ll(e)}switch(e.kind){case 218:case 219:case 231:return x4(e);default:return}}function m4(e,t){if(267===e.kind)return I4(y4(e));if(t){const e=nC(t)?t.text:cD(t)?`[${H2(t.argumentExpression)}]`:H2(t);if(e.length>0)return I4(e)}switch(e.kind){case 312:const t=e;return uP(t)?`"${Fv(oa(cx(_a(t.fileName))))}"`:"<global>";case 277:return CN(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return 2048&tE(e)?"default":x4(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return"<unknown>"}}function _4(e){return{text:m4(e.node,e.name),kind:M$(e.node),kindModifiers:T4(e.node),spans:g4(e),nameSpan:e.name&&S4(e.name),childItems:U(e.children,_4)}}function h4(e){return{text:m4(e.node,e.name),kind:M$(e.node),kindModifiers:T4(e.node),spans:g4(e),childItems:U(e.children,(function(e){return{text:m4(e.node,e.name),kind:M$(e.node),kindModifiers:MY(e.node),spans:g4(e),childItems:z2,indent:0,bolded:!1,grayed:!1}}))||z2,indent:e.indent,bolded:!1,grayed:!1}}function g4(e){const t=[S4(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push(S4(n));return t}function y4(e){return Pm(e)?xm(e.name):v4(e)}function v4(e){const t=[sv(e.name)];for(;e.body&&267===e.body.kind;)e=e.body,t.push(sv(e.name));return t.join(".")}function b4(e){return e.body&&pN(e.body)?b4(e.body):e}function E4(e){return!e.name||167===e.name.kind}function S4(e){return 312===e.kind?JY(e):HY(e,P2)}function T4(e){return e.parent&&260===e.parent.kind&&(e=e.parent),MY(e)}function x4(e){const{parent:t}=e;if(e.name&&jf(e.name)>0)return I4(o_(e.name));if(iN(t))return I4(o_(t.name));if(TD(t)&&64===t.operatorToken.kind)return H2(t.left).replace(M2,"");if(QN(t))return H2(t.name);if(2048&tE(e))return"default";if(Md(e))return"<class>";if(dD(t)){let e=A4(t.expression);if(void 0!==e){if(e=I4(e),e.length>L2)return`${e} callback`;return`${e}(${I4(Z(t.arguments,(e=>np(e)||ou(e)?e.getText(P2):void 0)).join(", "))}) callback`}}return"<function>"}function A4(e){if(nC(e))return e.text;if(lD(e)){const t=A4(e.expression),n=e.name.text;return void 0===t?n:`${t}.${n}`}}function I4(e){return(e=e.length>L2?e.substring(0,L2)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var R4=b({"src/services/navigationBar.ts"(){Tge(),M2=/\s+/g,L2=150,w2=[],F2=[],z2=[],B2={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),C4={};E(C4,{getNavigationBarItems:()=>j2,getNavigationTree:()=>V2});var D4,N4=b({"src/services/_namespaces/ts.NavigationBar.ts"(){R4()}});function M4(e,t){D4.set(e,t)}function L4(e,t){return Ye($(D4.values(),(n=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!(null==(r=n.kinds)?void 0:r.some((t=>l6(t,e.kind))))?void 0:n.getAvailableActions(e,t)})))}function k4(e,t,n,r){const o=D4.get(t);return o&&o.getEditsForAction(e,n,r)}var P4,w4,O4,F4=b({"src/services/refactorProvider.ts"(){Tge(),F5(),D4=new Map}});function W4(e,t=!0){const{file:n,program:r}=e,o=l0(e),i=lY(n,o.start),a=i.parent&&32&tE(i.parent)&&t?i.parent:xQ(i,n,o);if(!a||!rM(a.parent)&&(!fN(a.parent)||!Pm(a.parent.parent)))return{error:eT(Oa.Could_not_find_export_statement)};const s=r.getTypeChecker(),l=function(e,t){if(rM(e))return e.symbol;const n=e.parent.symbol;if(n.valueDeclaration&&Gm(n.valueDeclaration))return t.getMergedSymbol(n);return n}(a.parent,s),c=tE(a)||(CN(a)&&!a.isExportEquals?2080:0),d=!!(2048&c);if(!(32&c)||!d&&l.exports.has("default"))return{error:eT(Oa.This_file_already_has_a_default_export)};const u=e=>nC(e)&&s.getSymbolAtLocation(e)?void 0:{error:eT(Oa.Can_only_convert_named_export)};switch(a.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const e=a;if(!e.name)return;return u(e.name)||{exportNode:e,exportName:e.name,wasDefault:d,exportingModuleSymbol:l}}case 243:{const e=a;if(!(2&e.declarationList.flags)||1!==e.declarationList.declarations.length)return;const t=Pe(e.declarationList.declarations);if(!t.initializer)return;return In.assert(!d,"Can't have a default flag here"),u(t.name)||{exportNode:e,exportName:t.name,wasDefault:d,exportingModuleSymbol:l}}case 277:{const e=a;if(e.isExportEquals)return;return u(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:d,exportingModuleSymbol:l}}default:return}}function z4(e,t,n,r,o){!function(e,{wasDefault:t,exportNode:n,exportName:r},o,i){if(t)if(CN(n)&&!n.isExportEquals){const t=n.expression,r=G4(t.text,t.text);o.replaceNode(e,n,UA.createExportDeclaration(void 0,!1,UA.createNamedExports([r])))}else o.delete(e,In.checkDefined(IQ(n,90),"Should find a default keyword in modifier list"));else{const t=In.checkDefined(IQ(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 262:case 263:case 264:o.insertNodeAfter(e,t,UA.createToken(90));break;case 243:const a=Pe(n.declarationList.declarations);if(!Hue.Core.isSymbolReferencedInFile(r,i,e)&&!a.type){o.replaceNode(e,n,UA.createExportDefault(In.checkDefined(a.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:o.deleteModifier(e,t),o.insertNodeAfter(e,n,UA.createExportDefault(UA.createIdentifier(r.text)));break;default:In.fail(`Unexpected exportNode kind ${n.kind}`)}}}(e,n,r,t.getTypeChecker()),function(e,{wasDefault:t,exportName:n,exportingModuleSymbol:r},o,i){const a=e.getTypeChecker(),s=In.checkDefined(a.getSymbolAtLocation(n),"Export name should resolve to a symbol");Hue.Core.eachExportReference(e.getSourceFiles(),a,i,s,r,n.text,t,(e=>{if(n===e)return;const r=e.getSourceFile();t?function(e,t,n,r){const{parent:o}=t;switch(o.kind){case 211:n.replaceNode(e,t,UA.createIdentifier(r));break;case 276:case 281:{const t=o;n.replaceNode(e,t,B4(r,t.name.text));break}case 273:{const i=o;In.assert(i.name===t,"Import clause name should match provided ref");const a=B4(r,t.text),{namedBindings:s}=i;if(s)if(274===s.kind){n.deleteRange(e,{pos:t.getStart(e),end:s.getStart(e)});const o=zR(i.parent.moduleSpecifier)?hQ(i.parent.moduleSpecifier,e):1,a=mQ(void 0,[B4(r,t.text)],i.parent.moduleSpecifier,o);n.insertNodeAfter(e,i.parent,a)}else n.delete(e,t),n.insertNodeAtEndOfList(e,s.elements,a);else n.replaceNode(e,t,UA.createNamedImports([a]));break}case 205:const i=o;n.replaceNode(e,o,UA.createImportTypeNode(i.argument,i.attributes,UA.createIdentifier(r),i.typeArguments,i.isTypeOf));break;default:In.failBadSyntaxKind(o)}}(r,e,o,n.text):function(e,t,n){const r=t.parent;switch(r.kind){case 211:n.replaceNode(e,t,UA.createIdentifier("default"));break;case 276:{const t=UA.createIdentifier(r.name.text);1===r.parent.elements.length?n.replaceNode(e,r.parent,t):(n.delete(e,r),n.insertNodeBefore(e,r.parent,t));break}case 281:n.replaceNode(e,r,G4("default",r.name.text));break;default:In.assertNever(r,`Unexpected parent kind ${r.kind}`)}}(r,e,o)}))}(t,n,r,o)}function B4(e,t){return UA.createImportSpecifier(!1,e===t?void 0:UA.createIdentifier(e),UA.createIdentifier(t))}function G4(e,t){return UA.createExportSpecifier(!1,e===t?void 0:UA.createIdentifier(e),UA.createIdentifier(t))}var j4,V4,U4=b({"src/services/refactors/convertExport.ts"(){Tge(),F5(),P4="Convert export",w4={name:"Convert default export to named export",description:eT(Oa.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},O4={name:"Convert named export to default export",description:eT(Oa.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},M4(P4,{kinds:[w4.kind,O4.kind],getAvailableActions:function(e){const t=W4(e,"invoked"===e.triggerReason);if(!t)return o;if(!s6(t)){const e=t.wasDefault?w4:O4;return[{name:P4,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:P4,description:eT(Oa.Convert_default_export_to_named_export),actions:[{...w4,notApplicableReason:t.error},{...O4,notApplicableReason:t.error}]}]:o},getEditsForAction:function(e,t){In.assert(t===w4.name||t===O4.name,"Unexpected action name");const n=W4(e);In.assert(n&&!s6(n),"Expected applicable refactor info");return{edits:p_e.ChangeTracker.with(e,(t=>z4(e.file,e.program,n,t,e.cancellationToken))),renameFilename:void 0,renameLocation:void 0}}})}});function H4(e,t=!0){const{file:n}=e,r=l0(e),o=lY(n,r.start),i=t?Cl(o,gN):xQ(o,n,r);if(!i||!gN(i))return{error:"Selection is not an import declaration."};const a=r.start+r.length,s=pY(i,i.parent,n);if(s&&a>s.getStart())return;const{importClause:l}=i;if(!l)return{error:eT(Oa.Could_not_find_import_clause)};if(!l.namedBindings)return{error:eT(Oa.Could_not_find_namespace_import_or_named_imports)};if(274===l.namedBindings.kind)return{convertTo:0,import:l.namedBindings};return K4(e.program,l)?{convertTo:1,import:l.namedBindings}:{convertTo:2,import:l.namedBindings}}function K4(e,t){return Jp(e.getCompilerOptions())&&function(e,t){const n=t.resolveExternalModuleName(e);if(!n)return!1;const r=t.resolveExternalModuleSymbol(n);return n!==r}(t.parent.moduleSpecifier,e.getTypeChecker())}function q4(e,t,n,r){const o=t.getTypeChecker();0===r.convertTo?function(e,t,n,r,o){let i=!1;const a=[],s=new Map;Hue.Core.eachSymbolReferenceInFile(r.name,t,e,(e=>{if(eu(e.parent)){const r=J4(e.parent).text;t.resolveName(r,e,-1,!0)&&s.set(r,!0),In.assert((lD(n=e.parent)?n.expression:n.left)===e,"Parent expression should match id"),a.push(e.parent)}else i=!0;var n}));const l=new Map;for(const u of a){const t=J4(u).text;let r=l.get(t);void 0===r&&l.set(t,r=s.has(t)?AZ(t,e):t),n.replaceNode(e,u,UA.createIdentifier(r))}const c=[];l.forEach(((e,t)=>{c.push(UA.createImportSpecifier(!1,e===t?void 0:UA.createIdentifier(t),UA.createIdentifier(e)))}));const d=r.parent.parent;i&&!o?n.insertNodeAfter(e,d,$4(d,void 0,c)):n.replaceNode(e,d,$4(d,i?UA.createIdentifier(r.name.text):void 0,c))}(e,o,n,r.import,Jp(t.getCompilerOptions())):X4(e,t,n,r.import,1===r.convertTo)}function J4(e){return lD(e)?e.name:e.right}function X4(e,t,n,r,o=K4(t,r.parent)){const i=t.getTypeChecker(),a=r.parent.parent,{moduleSpecifier:s}=a,l=new Set;r.elements.forEach((e=>{const t=i.getSymbolAtLocation(e.name);t&&l.add(t)}));const c=s&&zR(s)?Qle.moduleSpecifierToValidIdentifier(s.text,99):"module";const d=r.elements.some((function(t){return!!Hue.Core.eachSymbolReferenceInFile(t.name,i,e,(e=>{const t=i.resolveName(c,e,-1,!0);return!!t&&(!l.has(t)||MN(e.parent))}))}))?AZ(c,e):c,u=new Set;for(const p of r.elements){const t=(p.propertyName||p.name).text;Hue.Core.eachSymbolReferenceInFile(p.name,i,e,(r=>{const o=UA.createPropertyAccessExpression(UA.createIdentifier(d),t);ZN(r.parent)?n.replaceNode(e,r.parent,UA.createPropertyAssignment(r.text,o)):MN(r.parent)?u.add(p):n.replaceNode(e,r,o)}))}if(n.replaceNode(e,r,o?UA.createIdentifier(d):UA.createNamespaceImport(UA.createIdentifier(d))),u.size){const t=Ye(u.values(),(e=>UA.createImportSpecifier(e.isTypeOnly,e.propertyName&&UA.createIdentifier(e.propertyName.text),UA.createIdentifier(e.name.text))));n.insertNodeAfter(e,r.parent.parent,$4(a,void 0,t))}}function $4(e,t,n){return UA.createImportDeclaration(void 0,UA.createImportClause(!1,t,n&&n.length?UA.createNamedImports(n):void 0),e.moduleSpecifier,void 0)}var Y4,Q4,Z4,e6,t6=b({"src/services/refactors/convertImport.ts"(){Tge(),F5(),j4="Convert import",V4={0:{name:"Convert namespace import to named imports",description:eT(Oa.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:eT(Oa.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:eT(Oa.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},M4(j4,{kinds:Xe(V4).map((e=>e.kind)),getAvailableActions:function(e){const t=H4(e,"invoked"===e.triggerReason);if(!t)return o;if(!s6(t)){const e=V4[t.convertTo];return[{name:j4,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?Xe(V4).map((e=>({name:j4,description:e.description,actions:[{...e,notApplicableReason:t.error}]}))):o},getEditsForAction:function(e,t){In.assert(se(Xe(V4),(e=>e.name===t)),"Unexpected action name");const n=H4(e);In.assert(n&&!s6(n),"Expected applicable refactor info");return{edits:p_e.ChangeTracker.with(e,(t=>q4(e.file,e.program,t,n))),renameFilename:void 0,renameLocation:void 0}}})}});function n6(e,t=!0){const{file:n,startPosition:r}=e,i=Jh(n),a=XY(l0(e)),s=a.pos===a.end&&t,l=function(e,t,n,r){const o=[()=>lY(e,t),()=>sY(e,t,(()=>!0))];for(const i of o){const t=i(),o=G$(t,e,n.pos,n.end),a=Cl(t,(t=>t.parent&&Gd(t)&&!o6(n,t.parent,e)&&(r||o)));if(a)return a}return}(n,r,a,s);if(!l||!Gd(l))return{error:eT(Oa.Selection_is_not_a_valid_type_node)};const c=e.program.getTypeChecker(),d=function(e,t){return Cl(e,wu)||(t?Cl(e,bM):void 0)}(l,i);if(void 0===d)return{error:eT(Oa.No_type_could_be_extracted_from_this_type_node)};const u=function(e,t){return Cl(e,(e=>e===t?"quit":!(!UC(e.parent)&&!HC(e.parent))))??e}(l,d);if(!Gd(u))return{error:eT(Oa.Selection_is_not_a_valid_type_node)};const p=[];(UC(u.parent)||HC(u.parent))&&a.end>l.end&&xe(p,u.parent.types.filter((e=>G$(e,n,a.pos,a.end))));const f=p.length>1?p:u,m=function(e,t,n,r){const i=[],a=_t(t),s={pos:a[0].pos,end:a[a.length-1].end};for(const o of a)if(l(o))return;return i;function l(t){if(PC(t)){if(nC(t.typeName)){const a=t.typeName,l=e.resolveName(a.text,a,262144,!0);for(const e of(null==l?void 0:l.declarations)||o)if(vC(e)&&e.getSourceFile()===r){if(e.name.escapedText===a.escapedText&&o6(e,s,r))return!0;if(o6(n,e,r)&&!o6(s,e,r)){Ae(i,e);break}}}}else if(qC(t)){const e=Cl(t,(e=>KC(e)&&o6(e.extendsType,t,r)));if(!e||!o6(s,e,r))return!0}else if(kC(t)||XC(t)){const e=Cl(t.parent,Td);if(e&&e.type&&o6(e.type,t,r)&&!o6(s,e,r))return!0}else if(FC(t))if(nC(t.exprName)){const o=e.resolveName(t.exprName.text,t.exprName,111551,!1);if((null==o?void 0:o.valueDeclaration)&&o6(n,o.valueDeclaration,r)&&!o6(s,o.valueDeclaration,r))return!0}else if(bb(t.exprName.left)&&!o6(s,t.parent,r))return!0;return r&&BC(t)&&_s(r,t.pos).line===_s(r,t.end).line&&fI(t,1),oP(t,l)}}(c,f,d,n);if(!m)return{error:eT(Oa.No_type_could_be_extracted_from_this_type_node)};return{isJS:i,selection:f,enclosingNode:d,typeParameters:m,typeElements:r6(c,f)}}function r6(e,t){if(t){if(mt(t)){const n=[];for(const r of t){const t=r6(e,r);if(!t)return;xe(n,t)}return n}if(HC(t)){const n=[],r=new Map;for(const o of t.types){const t=r6(e,o);if(!t||!t.every((e=>e.name&&LS(r,aQ(e.name)))))return;xe(n,t)}return n}return JC(t)?r6(e,t.type):WC(t)?t.members:void 0}}function o6(e,t,n){return z$(e,Ts(n.text,t.pos),t.end)}function i6(e){return mt(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:UC(e.selection[0].parent)?UA.createUnionTypeNode(e.selection):UA.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}var a6=b({"src/services/refactors/extractType.ts"(){Tge(),F5(),Y4="Extract type",Q4={name:"Extract to type alias",description:eT(Oa.Extract_to_type_alias),kind:"refactor.extract.type"},Z4={name:"Extract to interface",description:eT(Oa.Extract_to_interface),kind:"refactor.extract.interface"},e6={name:"Extract to typedef",description:eT(Oa.Extract_to_typedef),kind:"refactor.extract.typedef"},M4(Y4,{kinds:[Q4.kind,Z4.kind,e6.kind],getAvailableActions:function(e){const t=n6(e,"invoked"===e.triggerReason);return t?s6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:Y4,description:eT(Oa.Extract_type),actions:[{...e6,notApplicableReason:t.error},{...Q4,notApplicableReason:t.error},{...Z4,notApplicableReason:t.error}]}]:o:[{name:Y4,description:eT(Oa.Extract_type),actions:t.isJS?[e6]:Ee([Q4],t.typeElements&&Z4)}]:o},getEditsForAction:function(e,t){const{file:n}=e,r=n6(e);In.assert(r&&!s6(r),"Expected to find a range to extract");const o=AZ("NewType",n),i=p_e.ChangeTracker.with(e,(i=>{switch(t){case Q4.name:return In.assert(!r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r){const{enclosingNode:o,typeParameters:i}=r,{firstTypeNode:a,lastTypeNode:s,newTypeNode:l}=i6(r),c=UA.createTypeAliasDeclaration(void 0,n,i.map((e=>UA.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0))),l);e.insertNodeBefore(t,o,GI(c),!0),e.replaceNodeRange(t,a,s,UA.createTypeReferenceNode(n,i.map((e=>UA.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:p_e.LeadingTriviaOption.Exclude,trailingTriviaOption:p_e.TrailingTriviaOption.ExcludeWhitespace})}(i,n,o,r);case e6.name:return In.assert(r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r,o){var i;_t(o.selection).forEach((e=>{fI(e,7168)}));const{enclosingNode:a,typeParameters:s}=o,{firstTypeNode:l,lastTypeNode:c,newTypeNode:d}=i6(o),u=UA.createJSDocTypedefTag(UA.createIdentifier("typedef"),UA.createJSDocTypeExpression(d),UA.createIdentifier(r)),p=[];x(s,(e=>{const t=Dc(e),n=UA.createTypeParameterDeclaration(void 0,e.name),r=UA.createJSDocTemplateTag(UA.createIdentifier("template"),t&&vt(t,aM),[n]);p.push(r)}));const f=UA.createJSDocComment(void 0,UA.createNodeArray(ce(p,[u])));if(bM(a)){const r=a.getStart(n),o=eZ(t.host,null==(i=t.formatContext)?void 0:i.options);e.insertNodeAt(n,a.getStart(n),f,{suffix:o+o+n.text.slice(fZ(n.text,r-1),r)})}else e.insertNodeBefore(n,a,f,!0);e.replaceNodeRange(n,l,c,UA.createTypeReferenceNode(r,s.map((e=>UA.createTypeReferenceNode(e.name,void 0)))))}(i,e,n,o,r);case Z4.name:return In.assert(!r.isJS&&!!r.typeElements,"Invalid actionName/JS combo"),function(e,t,n,r){var o;const{enclosingNode:i,typeParameters:a,typeElements:s}=r,l=UA.createInterfaceDeclaration(void 0,n,a,void 0,s);yk(l,null==(o=s[0])?void 0:o.parent),e.insertNodeBefore(t,i,GI(l),!0);const{firstTypeNode:c,lastTypeNode:d}=i6(r);e.replaceNodeRange(t,c,d,UA.createTypeReferenceNode(n,a.map((e=>UA.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:p_e.LeadingTriviaOption.Exclude,trailingTriviaOption:p_e.TrailingTriviaOption.ExcludeWhitespace})}(i,n,o,r);default:In.fail("Unexpected action name")}})),a=n.fileName;return{edits:i,renameFilename:a,renameLocation:IZ(i,a,o,!1)}}})}});function s6(e){return void 0!==e.error}function l6(e,t){return!t||e.substr(0,t.length)===t}var c6,d6,u6,p6=b({"src/services/refactors/helpers.ts"(){}});function f6(e,t,n,r){var o,i;const a=r.getTypeChecker(),s=aY(e,t),l=s.parent;if(nC(s)){if(uS(l)&&Y_(l)&&nC(l.name)){if(1!==(null==(o=a.getMergedSymbol(l.symbol).declarations)?void 0:o.length))return{error:eT(Oa.Variables_with_multiple_declarations_cannot_be_inlined)};if(m6(l))return;const t=_6(l,a,e);return t&&{references:t,declaration:l,replacement:l.initializer}}if(n){let t=a.resolveName(s.text,s,111551,!1);if(t=t&&a.getMergedSymbol(t),1!==(null==(i=null==t?void 0:t.declarations)?void 0:i.length))return{error:eT(Oa.Variables_with_multiple_declarations_cannot_be_inlined)};const n=t.declarations[0];if(!uS(n)||!Y_(n)||!nC(n.name))return;if(m6(n))return;const r=_6(n,a,e);return r&&{references:r,declaration:n,replacement:n.initializer}}return{error:eT(Oa.Could_not_find_variable_to_inline)}}}function m6(e){return se(vt(e.parent.parent,GD).modifiers,oC)}function _6(e,t,n){const r=[],o=Hue.Core.eachSymbolReferenceInFile(e.name,t,n,(t=>!(!Hue.isWriteAccessForReference(t)||ZN(t.parent))||(!(!MN(t.parent)&&!CN(t.parent))||(!!FC(t.parent)||(!!tl(e,t.pos)||void r.push(t))))));return 0===r.length||o?void 0:r}function h6(e,t){t=mZ(t);const{parent:n}=e;return uu(n)&&(Iv(t)<Iv(n)||LZ(n))||Td(t)&&(nu(n)||lD(n))||lD(n)&&(FR(t)||sD(t))?UA.createParenthesizedExpression(t):nC(e)&&ZN(n)?UA.createPropertyAssignment(e,t):t}var g6,y6,v6,b6=b({"src/services/refactors/inlineVariable.ts"(){Tge(),F5(),c6="Inline variable",d6=eT(Oa.Inline_variable),M4(c6,{kinds:[(u6={name:c6,description:d6,kind:"refactor.inline.variable"}).kind],getAvailableActions(e){const{file:t,program:n,preferences:r,startPosition:i,triggerReason:a}=e,s=f6(t,i,"invoked"===a,n);return s?L5.isRefactorErrorInfo(s)?r.provideRefactorNotApplicableReason?[{name:c6,description:d6,actions:[{...u6,notApplicableReason:s.error}]}]:o:[{name:c6,description:d6,actions:[u6]}]:o},getEditsForAction(e,t){In.assert(t===c6,"Unexpected refactor invoked");const{file:n,program:r,startPosition:o}=e,i=f6(n,o,!0,r);if(!i||L5.isRefactorErrorInfo(i))return;const{references:a,declaration:s,replacement:l}=i;return{edits:p_e.ChangeTracker.with(e,(e=>{for(const t of a)e.replaceNode(n,t,h6(t,l));e.delete(n,s)}))}}})}});function E6(e,t,n,r,o,i){const a=t.getTypeChecker(),s=n8(e,n.all,a),l=Q6(e,t,o,n);r.createNewFile(e,l,function(e,t,n,r,o,i,a,s){const l=o.getTypeChecker(),c=Sn(e.statements,w_);if(void 0===e.externalModuleIndicator&&void 0===e.commonJsModuleIndicator&&0===t.oldImportsNeededByTargetFile.size)return N6(e,r.ranges,n),[...c,...r.all];const d=!D0(a,o,i,!!e.commonJsModuleIndicator),u=gQ(e,s),p=W6(e,t.oldFileImportsFromTargetFile,a,o,i,d,u);p&&RQ(n,e,p,!0,s);M6(e,r.all,n,t.unusedImportsFromOldFile,l),N6(e,r.ranges,n),L6(n,o,i,e,t.movedSymbols,a,u);const f=function(e,t,n,r,o,i,a,s,l){const c=[];for(const f of e.statements)F6(f,(e=>{Ee(c,J6(e,O6(e),(e=>t.has(o.getSymbolAtLocation(e)))))}));let d;const u=[],p=nQ();return n.forEach((t=>{if(t.declarations)for(const n of t.declarations){if(!s8(n))continue;const t=X6(n);if(!t)continue;const o=$6(n);p(o)&&Y6(e,o,t,r,s),Gb(n,2048)?d=t:u.push(t.text)}})),Ee(c,z6(e,d,u,oa(e.fileName),i,a,s,l)),c}(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,n,l,o,i,d,u),m=G6(e,r.all,t.oldFileImportsFromTargetFile,d);if(f.length&&m.length)return[...c,...f,4,...m];return[...c,...f,...m]}(e,s,r,n,t,o,l,i)),D6(t,r,e.fileName,l,Jv(o))}var S6,T6,x6,A6=b({"src/services/refactors/moveToNewFile.ts"(){Tge(),F5(),g6="Move to a new file",y6=eT(Oa.Move_to_a_new_file),M4(g6,{kinds:[(v6={name:g6,description:y6,kind:"refactor.move.newFile"}).kind],getAvailableActions:function(e){const t=Z6(e);return e.preferences.allowTextChangesInNewFiles&&t?[{name:g6,description:y6,actions:[v6]}]:e.preferences.provideRefactorNotApplicableReason?[{name:g6,description:y6,actions:[{...v6,notApplicableReason:eT(Oa.Selection_is_not_a_valid_statement_or_statements)}]}]:o},getEditsForAction:function(e,t){In.assert(t===g6,"Wrong refactor invoked");const n=In.checkDefined(Z6(e));return{edits:p_e.ChangeTracker.with(e,(t=>E6(e.file,e.program,n,t,e.host,e.preferences))),renameFilename:void 0,renameLocation:void 0}}})}});function I6(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function R6(e,t,n,r,o,i,a,s){const l=r.getTypeChecker();if(a.fileExists(n)){const c=In.checkDefined(r.getSourceFile(n)),d=Qle.createImportAdder(c,e.program,e.preferences,e.host);C6(t,c,n8(t,o.all,l,function(e,t,n){const r=new Set;for(const o of e.imports){const e=Wg(o);if(gN(e)&&e.importClause&&e.importClause.namedBindings&&IN(e.importClause.namedBindings))for(const t of e.importClause.namedBindings.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(hS(e,n))}if(ng(e.parent)&&rD(e.parent.name))for(const t of e.parent.name.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(hS(e,n))}}for(const o of t)r8(o,n,(t=>{const o=hS(t,n);o.valueDeclaration&&Yf(o.valueDeclaration)===e&&r.add(o)}));return r}(c,o.all,l)),i,o,r,a,s,d)}else i.createNewFile(t,n,C6(t,n,n8(t,o.all,l),i,o,r,a,s)),D6(r,i,t.fileName,n,Jv(a))}function C6(e,t,n,r,o,i,a,s,l){const c=i.getTypeChecker(),d=Sn(e.statements,w_);if(void 0===e.externalModuleIndicator&&void 0===e.commonJsModuleIndicator&&0===n.oldImportsNeededByTargetFile.size&&0===n.targetFileImportsFromOldFile.size&&"string"===typeof t)return N6(e,o.ranges,r),[...d,...o.all];const u="string"===typeof t?t:t.fileName,p=!D0(u,i,a,!!e.commonJsModuleIndicator),f=gQ(e,s),m=W6(e,n.oldFileImportsFromTargetFile,u,i,a,p,f);m&&RQ(r,e,m,!0,s),M6(e,o.all,r,n.unusedImportsFromOldFile,c),N6(e,o.ranges,r),L6(r,i,a,e,n.movedSymbols,u,f);const _=function(e,t,n,r,o,i,a,s,l,c,d){const u=[];if(d)n.forEach(((t,r)=>{try{d.addImportFromExportedSymbol(hS(r,i),t)}catch{for(const t of e.statements)F6(t,(e=>{Ee(u,J6(e,UA.createStringLiteral(O6(e).text),(e=>n.has(i.getSymbolAtLocation(e)))))}))}}));else{const r=a.getSourceFile(t);for(const t of e.statements)F6(t,(e=>{var t;const o=O6(e),l=a.getCompilerOptions(),d=a.getResolvedModuleFromModuleSpecifier(o),p=null==(t=null==d?void 0:d.resolvedModule)?void 0:t.resolvedFileName;if(p&&r){const t=tz(l,r,r.fileName,p,dQ(a,s));Ee(u,J6(e,_Q(t,c),(e=>n.has(i.getSymbolAtLocation(e)))))}else Ee(u,J6(e,UA.createStringLiteral(O6(e).text),(e=>n.has(i.getSymbolAtLocation(e)))))}))}const p=a.getSourceFile(t);let f;const m=[],_=nQ();return r.forEach((t=>{if(t.declarations)for(const n of t.declarations){if(!s8(n))continue;const r=X6(n);if(!r)continue;const a=$6(n);_(a)&&Y6(e,a,r,o,l),d&&i.isUnknownSymbol(t)?d.addImportFromExportedSymbol(hS(t,i)):Gb(n,2048)?f=r:m.push(r.text)}})),Ee(u,z6(p||e,f,m,e.fileName,a,s,l,c))}(e,u,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,r,c,i,a,p,f,l),h=G6(e,o.all,n.oldFileImportsFromTargetFile,p);return"string"!==typeof t&&(t.statements.length>0?function(e,t,n,r,o){var i;const a=new Set,s=null==(i=r.symbol)?void 0:i.exports;if(s){const n=t.getTypeChecker(),i=new Map;for(const e of o.all)U6(e)&&Gb(e,32)&&o8(e,(e=>{var t;const n=I(Cu(e)?null==(t=s.get(e.symbol.escapedName))?void 0:t.declarations:void 0,(e=>DN(e)?e:MN(e)?yt(e.parent.parent,DN):void 0));n&&n.moduleSpecifier&&i.set(n,(i.get(n)||new Set).add(e))}));for(const[t,o]of Ye(i))if(t.exportClause&&NN(t.exportClause)&&T(t.exportClause.elements)){const i=t.exportClause.elements,s=G(i,(e=>void 0===L(hS(e.symbol,n).declarations,(e=>s8(e)&&o.has(e)))));if(0===T(s)){e.deleteNode(r,t),a.add(t);continue}T(s)<T(i)&&e.replaceNode(r,t,UA.updateExportDeclaration(t,t.modifiers,t.isTypeOnly,UA.updateNamedExports(t.exportClause,UA.createNodeArray(s,i.hasTrailingComma)),t.moduleSpecifier,t.attributes))}}const l=k(r.statements,(e=>DN(e)&&!!e.moduleSpecifier&&!a.has(e)));l?e.insertNodesBefore(r,l,n,!0):e.insertNodesAfter(r,r.statements[r.statements.length-1],n)}(r,i,h,t,o):r.insertNodesAtEndOfFile(t,h,!1),_.length>0&&RQ(r,t,_,!0,s)),l&&l.writeFixes(r,f),_.length&&h.length?[...d,..._,4,...h]:[...d,..._,...h]}function D6(e,t,n,r,o){const i=e.getCompilerOptions().configFile;if(!i)return;const a=_a(ua(n,"..",r)),s=La(i.fileName,a,o),l=i.statements[0]&&yt(i.statements[0].expression,sD),c=l&&L(l.properties,(e=>QN(e)&&zR(e.name)&&"files"===e.name.text));c&&aD(c.initializer)&&t.insertNodeInListAfter(i,Fe(c.initializer.elements),UA.createStringLiteral(s),c.initializer.elements)}function N6(e,t,n){for(const{first:r,afterLast:o}of t)n.deleteNodeRangeExcludingEnd(e,r,o)}function M6(e,t,n,r,o){for(const i of e.statements)F(t,i)||F6(i,(t=>V6(e,t,n,(e=>r.has(o.getSymbolAtLocation(e))))))}function L6(e,t,n,r,o,i,a){const s=t.getTypeChecker();for(const l of t.getSourceFiles())if(l!==r)for(const c of l.statements)F6(c,(d=>{if(s.getSymbolAtLocation(O6(d))!==r.symbol)return;const u=e=>{const t=iD(e.parent)?TQ(s,e.parent):hS(s.getSymbolAtLocation(e),s);return!!t&&o.has(t)};V6(l,d,e,u);const p=pa(ra(r.path),i),f=tz(t.getCompilerOptions(),l,l.fileName,p,dQ(t,n)),m=J6(d,_Q(f,a),u);m&&e.insertNodeAfter(l,c,m);const _=k6(d);_&&P6(e,l,s,o,f,_,d,a)}))}function k6(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&274===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return yt(e.name,nC);default:return In.assertNever(e,`Unexpected node kind ${e.kind}`)}}function P6(e,t,n,r,o,i,a,s){const l=Qle.moduleSpecifierToValidIdentifier(o,99);let c=!1;const d=[];if(Hue.Core.eachSymbolReferenceInFile(i,n,t,(e=>{lD(e.parent)&&(c=c||!!n.resolveName(l,e,-1,!0),r.has(n.getSymbolAtLocation(e.parent.name))&&d.push(e))})),d.length){const n=c?AZ(l,t):l;for(const r of d)e.replaceNode(t,r,UA.createIdentifier(n));e.insertNodeAfter(t,a,function(e,t,n,r){const o=UA.createIdentifier(t),i=_Q(n,r);switch(e.kind){case 272:return UA.createImportDeclaration(void 0,UA.createImportClause(!1,void 0,UA.createNamespaceImport(o)),i,void 0);case 271:return UA.createImportEqualsDeclaration(void 0,!1,o,UA.createExternalModuleReference(i));case 260:return UA.createVariableDeclaration(o,void 0,void 0,w6(i));default:return In.assertNever(e,`Unexpected node kind ${e.kind}`)}}(a,l,o,s))}}function w6(e){return UA.createCallExpression(UA.createIdentifier("require"),void 0,[e])}function O6(e){return 272===e.kind?e.moduleSpecifier:271===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function F6(e,t){if(gN(e))zR(e.moduleSpecifier)&&t(e);else if(hN(e))wN(e.moduleReference)&&np(e.moduleReference.expression)&&t(e);else if(GD(e))for(const n of e.declarationList.declarations)n.initializer&&tg(n.initializer,!0)&&t(n)}function W6(e,t,n,r,o,i,a){let s;const l=[];return t.forEach((e=>{"default"===e.escapedName?s=UA.createIdentifier(vQ(e)):l.push(e.name)})),z6(e,s,l,n,r,o,i,a)}function z6(e,t,n,r,o,i,a,s){const l=pa(ra(e.path),r),c=tz(o.getCompilerOptions(),e,e.fileName,l,dQ(o,i));if(a){return fQ(t,n.map((e=>UA.createImportSpecifier(!1,void 0,UA.createIdentifier(e)))),c,s)}{In.assert(!t,"No default import should exist");const e=n.map((e=>UA.createBindingElement(void 0,void 0,e)));return e.length?B6(UA.createObjectBindingPattern(e),void 0,w6(_Q(c,s))):void 0}}function B6(e,t,n,r=2){return UA.createVariableStatement(void 0,UA.createVariableDeclarationList([UA.createVariableDeclaration(e,void 0,t,n)],r))}function G6(e,t,n,r){return J(t,(t=>{if(U6(t)&&!j6(e,t,r)&&o8(t,(e=>{var t;return n.has(In.checkDefined(null==(t=yt(e,Cu))?void 0:t.symbol))}))){const e=function(e,t){return t?[H6(e)]:function(e){return[e,...q6(e).map(K6)]}(e)}(mZ(t),r);if(e)return e}return mZ(t)}))}function j6(e,t,n,r){var o;return n?!VD(t)&&Gb(t,32)||!!(r&&e.symbol&&(null==(o=e.symbol.exports)?void 0:o.has(r.escapedText))):!!e.symbol&&!!e.symbol.exports&&q6(t).some((t=>e.symbol.exports.has(Ml(t))))}function V6(e,t,n,r){switch(t.kind){case 272:!function(e,t,n,r){if(!t.importClause)return;const{name:o,namedBindings:i}=t.importClause,a=!o||r(o),s=!i||(274===i.kind?r(i.name):0!==i.elements.length&&i.elements.every((e=>r(e.name))));if(a&&s)n.delete(e,t);else if(o&&a&&n.delete(e,o),i)if(s)n.replaceNode(e,t.importClause,UA.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(275===i.kind)for(const l of i.elements)r(l.name)&&n.delete(e,l)}(e,t,n,r);break;case 271:r(t.name)&&n.delete(e,t);break;case 260:!function(e,t,n,r){const{name:o}=t;switch(o.kind){case 80:r(o)&&(t.initializer&&tg(t.initializer,!0)?n.delete(e,aN(t.parent)&&1===T(t.parent.declarations)?t.parent.parent:t):n.delete(e,o));break;case 207:break;case 206:if(o.elements.every((e=>nC(e.name)&&r(e.name))))n.delete(e,aN(t.parent)&&1===t.parent.declarations.length?t.parent.parent:t);else for(const t of o.elements)nC(t.name)&&r(t.name)&&n.delete(e,t.name)}}(e,t,n,r);break;default:In.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function U6(e){return In.assert(rM(e.parent),"Node parent should be a SourceFile"),c8(e)||GD(e)}function H6(e){const t=vk(e)?ce([UA.createModifier(95)],Hl(e)):void 0;switch(e.kind){case 262:return UA.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const n=bk(e)?Ul(e):void 0;return UA.updateClassDeclaration(e,ce(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return UA.updateVariableStatement(e,t,e.declarationList);case 267:return UA.updateModuleDeclaration(e,t,e.name,e.body);case 266:return UA.updateEnumDeclaration(e,t,e.name,e.members);case 265:return UA.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return UA.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return UA.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return In.fail();default:return In.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function K6(e){return UA.createExpressionStatement(UA.createBinaryExpression(UA.createPropertyAccessExpression(UA.createIdentifier("exports"),UA.createIdentifier(e)),64,UA.createIdentifier(e)))}function q6(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Z(e.declarationList.declarations,(e=>nC(e.name)?e.name.text:void 0));case 267:case 266:case 265:case 264:case 271:return o;case 244:return In.fail("Can't export an ExpressionStatement");default:return In.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function J6(e,t,n){switch(e.kind){case 272:{const r=e.importClause;if(!r)return;const o=r.name&&n(r.name)?r.name:void 0,i=r.namedBindings&&function(e,t){if(274===e.kind)return t(e.name)?e:void 0;{const n=e.elements.filter((e=>t(e.name)));return n.length?UA.createNamedImports(n):void 0}}(r.namedBindings,n);return o||i?UA.createImportDeclaration(void 0,UA.createImportClause(r.isTypeOnly,o,i),mZ(t),void 0):void 0}case 271:return n(e.name)?e:void 0;case 260:{const r=function(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const n=e.elements.filter((e=>e.propertyName||!nC(e.name)||t(e.name)));return n.length?UA.createObjectBindingPattern(n):void 0}}}(e.name,n);return r?B6(r,e.type,w6(t),e.parent.flags):void 0}default:return In.assertNever(e,`Unexpected import kind ${e.kind}`)}}function X6(e){return VD(e)?yt(e.expression.left.name,nC):yt(e.name,nC)}function $6(e){switch(e.kind){case 260:return e.parent.parent;case 208:return $6(vt(e.parent.parent,(e=>iN(e)||iD(e))));default:return e}}function Y6(e,t,n,r,o){if(!j6(e,t,o,n))if(o)VD(t)||r.insertExportModifier(e,t);else{const n=q6(t);0!==n.length&&r.insertNodesAfter(e,t,n.map(K6))}}function Q6(e,t,n,r){const o=t.getTypeChecker();if(r){const t=n8(e,r.all,o),s=ra(e.fileName),l=yx(e.fileName),c=ua(s,function(e,t,n,r){let o=e;for(let i=1;;i++){const a=ua(n,o+t);if(!r.fileExists(a))return o;o=`${e}.${i}`}}((i=t.oldFileImportsFromTargetFile,a=t.movedSymbols,zf(i,vQ)||zf(a,vQ)||"newFile"),l,s,n))+l;return c}var i,a;return""}function Z6(e){const t=function(e){const{file:t}=e,n=XY(l0(e)),{statements:r}=t;let o=P(r,(e=>e.end>n.pos));if(-1===o)return;const i=d8(t,r[o]);i&&(o=i.start);let a=P(r,(e=>e.end>=n.end),o);-1!==a&&n.end<=r[a].getStart()&&a--;const s=d8(t,r[a]);return s&&(a=s.end),{toMove:r.slice(o,-1===a?r.length:a+1),afterLast:-1===a?void 0:r[a+1]}}(e);if(void 0===t)return;const n=[],r=[],{toMove:o,afterLast:i}=t;return le(o,t8,((e,t)=>{for(let r=e;r<t;r++)n.push(o[r]);r.push({first:o[e],afterLast:i})})),0===n.length?void 0:{all:n,ranges:r}}function e8(e){return L(e,(e=>!!(2&e.transformFlags)))}function t8(e){return!function(e){switch(e.kind){case 272:return!0;case 271:return!Gb(e,32);case 243:return e.declarationList.declarations.every((e=>!!e.initializer&&tg(e.initializer,!0)));default:return!1}}(e)&&!w_(e)}function n8(e,t,n,r=new Set){const o=new Set,i=new Map,a=new Set,s=function(e){if(void 0===e)return;const t=n.getJsxNamespace(e),r=n.resolveName(t,e,1920,!0);return r&&se(r.declarations,i8)?r:void 0}(e8(t));s&&i.set(s,!1);for(const d of t)o8(d,(e=>{o.add(In.checkDefined(VD(e)?n.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))}));const l=new Set;for(const d of t)r8(d,n,((t,s)=>{var c;if(t.declarations)if(r.has(hS(t,n)))l.add(t);else for(const n of t.declarations)if(i8(n)){const e=i.get(t);i.set(t,(void 0===e||e)&&s)}else s8(n)&&(iN(c=n)?c.parent.parent.parent:c.parent)===e&&!o.has(t)&&a.add(t)}));for(const d of i.keys())l.add(d);const c=new Set;for(const d of e.statements)F(t,d)||(s&&2&d.transformFlags&&l.delete(s),r8(d,n,(e=>{o.has(e)&&c.add(e),l.delete(e)})));return{movedSymbols:o,targetFileImportsFromOldFile:a,oldFileImportsFromTargetFile:c,oldImportsNeededByTargetFile:i,unusedImportsFromOldFile:l}}function r8(e,t,n){e.forEachChild((function e(r){if(nC(r)&&!Iy(r)){const e=t.getSymbolAtLocation(r);e&&n(e,wx(r))}else r.forEachChild(e)}))}function o8(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return I(e.declarationList.declarations,(e=>l8(e.name,t)));case 244:{const{expression:n}=e;return TD(n)&&1===Eg(n)?t(e):void 0}}}function i8(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return a8(e);case 208:return iN(e.parent.parent)&&a8(e.parent.parent);default:return!1}}function a8(e){return rM(e.parent.parent.parent)&&!!e.initializer&&tg(e.initializer,!0)}function s8(e){return c8(e)&&rM(e.parent)||iN(e)&&rM(e.parent.parent.parent)}function l8(e,t){switch(e.kind){case 80:return t(vt(e.parent,(e=>iN(e)||iD(e))));case 207:case 206:return I(e.elements,(e=>DD(e)?void 0:l8(e.name,t)));default:return In.assertNever(e,`Unexpected name kind ${e.kind}`)}}function c8(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function d8(e,t){if(Ad(t)){const n=t.symbol.declarations;if(void 0===n||T(n)<=1||!F(n,t))return;const r=n[0],o=n[T(n)-1],i=Z(n,(t=>Yf(t)===e&&wu(t)?t:void 0)),a=P(e.statements,(e=>e.end>=o.end));return{toMove:i,start:P(e.statements,(e=>e.end>=r.end)),end:a}}}var u8,p8,f8,m8=b({"src/services/refactors/moveToFile.ts"(){Iz(),Tge(),F4(),S6="Move to file",T6=eT(Oa.Move_to_file),M4(S6,{kinds:[(x6={name:"Move to file",description:T6,kind:"refactor.move.file"}).kind],getAvailableActions:function(e,t){const n=Z6(e);return t?e.preferences.allowTextChangesInNewFiles&&n?[{name:S6,description:T6,actions:[x6]}]:e.preferences.provideRefactorNotApplicableReason?[{name:S6,description:T6,actions:[{...x6,notApplicableReason:eT(Oa.Selection_is_not_a_valid_statement_or_statements)}]}]:o:o},getEditsForAction:function(e,t,n){In.assert(t===S6,"Wrong refactor invoked");const r=In.checkDefined(Z6(e)),{host:o,program:i}=e;In.assert(n,"No interactive refactor arguments available");const a=n.targetFile;if(nx(a)||rx(a)){if(o.fileExists(a)&&void 0===i.getSourceFile(a))return I6(eT(Oa.Cannot_move_statements_to_the_selected_file));return{edits:p_e.ChangeTracker.with(e,(t=>R6(e,e.file,n.targetFile,e.program,r,t,e.host,e.preferences))),renameFilename:void 0,renameLocation:void 0}}return I6(eT(Oa.Cannot_move_to_file_selected_file_is_invalid))}})}});function _8(e){const{file:t,startPosition:n,program:r}=e;return y8(t,n,r)?[{name:u8,description:p8,actions:[f8]}]:o}function h8(e){const{file:t,startPosition:n,program:r}=e,o=y8(t,n,r);if(!o)return;const i=r.getTypeChecker(),a=o[o.length-1];let s=a;switch(a.kind){case 173:s=UA.updateMethodSignature(a,a.modifiers,a.name,a.questionToken,a.typeParameters,l(o),a.type);break;case 174:s=UA.updateMethodDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.questionToken,a.typeParameters,l(o),a.type,a.body);break;case 179:s=UA.updateCallSignature(a,a.typeParameters,l(o),a.type);break;case 176:s=UA.updateConstructorDeclaration(a,a.modifiers,l(o),a.body);break;case 180:s=UA.updateConstructSignature(a,a.typeParameters,l(o),a.type);break;case 262:s=UA.updateFunctionDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.typeParameters,l(o),a.type,a.body);break;default:return In.failBadSyntaxKind(a,"Unhandled signature kind in overload list conversion refactoring")}if(s===a)return;return{renameFilename:void 0,renameLocation:void 0,edits:p_e.ChangeTracker.with(e,(e=>{e.replaceNodeRange(t,o[0],o[o.length-1],s)}))};function l(e){const t=e[e.length-1];return Ad(t)&&t.body&&(e=e.slice(0,e.length-1)),UA.createNodeArray([UA.createParameterDeclaration(void 0,UA.createToken(26),"args",void 0,UA.createUnionTypeNode(U(e,c)))])}function c(e){const t=U(e.parameters,d);return fI(UA.createTupleTypeNode(t),se(t,(e=>!!T(AI(e))))?0:1)}function d(e){In.assert(nC(e.name));const t=yk(UA.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||UA.createKeywordTypeNode(133)),e),n=e.symbol&&e.symbol.getDocumentationComment(i);if(n){const e=h7(n);e.length&&II(t,[{text:`*\n${e.split("\n").map((e=>` * ${e}`)).join("\n")}\n `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}}function g8(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function y8(e,t,n){const r=Cl(lY(e,t),g8);if(!r)return;if(Ad(r)&&r.body&&O$(r.body,t))return;const o=n.getTypeChecker(),i=r.symbol;if(!i)return;const a=i.declarations;if(T(a)<=1)return;if(!M(a,(t=>Yf(t)===e)))return;if(!g8(a[0]))return;const s=a[0].kind;if(!M(a,(e=>e.kind===s)))return;const l=a;if(se(l,(e=>!!e.typeParameters||se(e.parameters,(e=>!!e.modifiers||!nC(e.name))))))return;const c=Z(l,(e=>o.getSignatureFromDeclaration(e)));if(T(c)!==T(a))return;const d=o.getReturnTypeOfSignature(c[0]);return M(c,(e=>o.getReturnTypeOfSignature(e)===d))?l:void 0}var v8,b8,E8,S8,T8=b({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){Tge(),F5(),u8="Convert overload list to single signature",p8=eT(Oa.Convert_overload_list_to_single_signature),M4(u8,{kinds:[(f8={name:u8,description:p8,kind:"refactor.rewrite.function.overloadList"}).kind],getEditsForAction:h8,getAvailableActions:_8})}});function x8(e){const{file:t,startPosition:n,triggerReason:r}=e,i=I8(t,n,"invoked"===r);return i?s6(i)?e.preferences.provideRefactorNotApplicableReason?[{name:v8,description:b8,actions:[{...E8,notApplicableReason:i.error},{...S8,notApplicableReason:i.error}]}]:o:[{name:v8,description:b8,actions:[i.addBraces?E8:S8]}]:o}function A8(e,t){const{file:n,startPosition:r}=e,o=I8(n,r);In.assert(o&&!s6(o),"Expected applicable refactor info");const{expression:i,returnStatement:a,func:s}=o;let l;if(t===E8.name){const e=UA.createReturnStatement(i);l=UA.createBlock([e],!0),RZ(i,e,n,3,!0)}else if(t===S8.name&&a){const e=i||UA.createVoidZero();l=LZ(e)?UA.createParenthesizedExpression(e):e,DZ(a,l,n,3,!1),RZ(a,l,n,3,!1),CZ(a,l,n,3,!1)}else In.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:p_e.ChangeTracker.with(e,(e=>{e.replaceNode(n,s.body,l)}))}}function I8(e,t,n=!0,r){const o=lY(e,t),i=fh(o);if(!i)return{error:eT(Oa.Could_not_find_a_containing_arrow_function)};if(!hD(i))return{error:eT(Oa.Containing_function_is_not_an_arrow_function)};if(P$(i,o)&&(!P$(i.body,o)||n)){if(l6(E8.kind,r)&&uu(i.body))return{func:i,addBraces:!0,expression:i.body};if(l6(S8.kind,r)&&BD(i.body)&&1===i.body.statements.length){const e=Pe(i.body.statements);if(QD(e)){return{func:i,addBraces:!1,expression:e.expression&&sD(GS(e.expression,!1))?UA.createParenthesizedExpression(e.expression):e.expression,returnStatement:e}}}}}var R8,C8,D8,N8,M8,L8=b({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){Tge(),F5(),v8="Add or remove braces in an arrow function",b8=eT(Oa.Add_or_remove_braces_in_an_arrow_function),E8={name:"Add braces to arrow function",description:eT(Oa.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},S8={name:"Remove braces from arrow function",description:eT(Oa.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},M4(v8,{kinds:[S8.kind],getEditsForAction:A8,getAvailableActions:x8})}}),k8={},P8=b({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){T8(),L8()}});function w8(e){const{file:t,startPosition:n,program:r,kind:i}=e,a=W8(t,n,r);if(!a)return o;const{selectedVariableDeclaration:s,func:l}=a,c=[],d=[];if(l6(N8.kind,i)){const e=s||hD(l)&&iN(l.parent)?void 0:eT(Oa.Could_not_convert_to_named_function);e?d.push({...N8,notApplicableReason:e}):c.push(N8)}if(l6(D8.kind,i)){const e=!s&&hD(l)?void 0:eT(Oa.Could_not_convert_to_anonymous_function);e?d.push({...D8,notApplicableReason:e}):c.push(D8)}if(l6(M8.kind,i)){const e=_D(l)?void 0:eT(Oa.Could_not_convert_to_arrow_function);e?d.push({...M8,notApplicableReason:e}):c.push(M8)}return[{name:R8,description:C8,actions:0===c.length&&e.preferences.provideRefactorNotApplicableReason?d:c}]}function O8(e,t){const{file:n,startPosition:r,program:o}=e,i=W8(n,r,o);if(!i)return;const{func:a}=i,s=[];switch(t){case D8.name:s.push(...function(e,t){const{file:n}=e,r=z8(t.body),o=UA.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,r);return p_e.ChangeTracker.with(e,(e=>e.replaceNode(n,t,o)))}(e,a));break;case N8.name:const t=function(e){const t=e.parent;if(!iN(t)||!Y_(t))return;const n=t.parent,r=n.parent;return aN(n)&&GD(r)&&nC(t.name)?{variableDeclaration:t,variableDeclarationList:n,statement:r,name:t.name}:void 0}(a);if(!t)return;s.push(...function(e,t,n){const{file:r}=e,o=z8(t.body),{variableDeclaration:i,variableDeclarationList:a,statement:s,name:l}=n;bZ(s);const c=32&Sl(i)|Zb(t),d=UA.createModifiersFromModifierFlags(c),u=UA.createFunctionDeclaration(T(d)?d:void 0,t.asteriskToken,l,t.typeParameters,t.parameters,t.type,o);return 1===a.declarations.length?p_e.ChangeTracker.with(e,(e=>e.replaceNode(r,s,u))):p_e.ChangeTracker.with(e,(e=>{e.delete(r,i),e.insertNodeAfter(r,s,u)}))}(e,a,t));break;case M8.name:if(!_D(a))return;s.push(...function(e,t){const{file:n}=e,r=t.body.statements,o=r[0];let i;!function(e,t){return 1===e.statements.length&&QD(t)&&!!t.expression}(t.body,o)?i=t.body:(i=o.expression,vZ(i),SZ(o,i));const a=UA.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,UA.createToken(39),i);return p_e.ChangeTracker.with(e,(e=>e.replaceNode(n,t,a)))}(e,a));break;default:return In.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:s}}function F8(e){let t=!1;return e.forEachChild((function e(n){L$(n)?t=!0:Md(n)||sN(n)||_D(n)||oP(n,e)})),t}function W8(e,t,n){const r=lY(e,t),o=n.getTypeChecker(),i=function(e,t,n){if(!function(e){return iN(e)||aN(e)&&1===e.declarations.length}(n))return;const r=(iN(n)?n:Pe(n.declarations)).initializer;if(r&&(hD(r)||_D(r)&&!B8(e,t,r)))return r;return}(e,o,r.parent);if(i&&!F8(i.body)&&!o.containsArgumentsReference(i))return{selectedVariableDeclaration:!0,func:i};const a=fh(r);if(a&&(_D(a)||hD(a))&&!P$(a.body,r)&&!F8(a.body)&&!o.containsArgumentsReference(a)){if(_D(a)&&B8(e,o,a))return;return{selectedVariableDeclaration:!1,func:a}}}function z8(e){if(uu(e)){const t=UA.createReturnStatement(e),n=e.getSourceFile();return yk(t,e),vZ(t),DZ(e,t,n,void 0,!0),UA.createBlock([t],!0)}return e}function B8(e,t,n){return!!n.name&&Hue.Core.isSymbolReferencedInFile(n.name,t,e)}var G8,j8,V8,U8,H8=b({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){Tge(),F5(),R8="Convert arrow function or function expression",C8=eT(Oa.Convert_arrow_function_or_function_expression),D8={name:"Convert to anonymous function",description:eT(Oa.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},N8={name:"Convert to named function",description:eT(Oa.Convert_to_named_function),kind:"refactor.rewrite.function.named"},M8={name:"Convert to arrow function",description:eT(Oa.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},M4(R8,{kinds:[D8.kind,N8.kind,M8.kind],getEditsForAction:O8,getAvailableActions:w8})}}),K8={},q8=b({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){H8()}});function J8(e){const{file:t,startPosition:n}=e;if(Jh(t))return o;return n3(t,n,e.program.getTypeChecker())?[{name:G8,description:V8,actions:[U8]}]:o}function X8(e,t){In.assert(t===G8,"Unexpected action name");const{file:n,startPosition:r,program:o,cancellationToken:i,host:a}=e,s=n3(n,r,o.getTypeChecker());if(!s||!i)return;const l=function(e,t,n){const r=function(e){switch(e.kind){case 262:if(e.name)return[e.name];return[In.checkDefined(IQ(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const t=In.checkDefined(J$(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");if(231===e.parent.kind){return[e.parent.parent.name,t]}return[t];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return In.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}(e),o=RC(e)?function(e){switch(e.parent.kind){case 263:const t=e.parent;if(t.name)return[t.name];return[In.checkDefined(IQ(t,90),"Nameless class declaration should be a default export")];case 231:const n=e.parent,r=e.parent.parent,o=n.name;return o?[o,r.name]:[r.name]}}(e):[],i=pe([...r,...o],kt),a=t.getTypeChecker(),s=J(i,(e=>Hue.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n))),l=c(s);M(l.declarations,(e=>F(i,e)))||(l.valid=!1);return l;function c(t){const n={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:n,valid:!0},s=U(r,d),l=U(o,d),c=RC(e),u=U(r,(e=>$8(e,a)));for(const r of t){if(r.kind===Hue.EntryKind.Span){i.valid=!1;continue}if(F(u,d(r.node))){if(r3(r.node.parent)){i.signature=r.node.parent;continue}const e=Z8(r);if(e){i.functionCalls.push(e);continue}}const t=$8(r.node,a);if(t&&F(u,t)){const e=Q8(r);if(e){i.declarations.push(e);continue}}if(F(s,d(r.node))||a$(r.node)){if(Y8(r))continue;const e=Q8(r);if(e){i.declarations.push(e);continue}const t=Z8(r);if(t){i.functionCalls.push(t);continue}}if(c&&F(l,d(r.node))){if(Y8(r))continue;const t=Q8(r);if(t){i.declarations.push(t);continue}const o=e3(r);if(o){n.accessExpressions.push(o);continue}if(lN(e.parent)){const e=t3(r);if(e){n.typeUsages.push(e);continue}}}i.valid=!1}return i}function d(e){const t=a.getSymbolAtLocation(e);return t&&cZ(t,a)}}(s,o,i);if(l.valid){const t=p_e.ChangeTracker.with(e,(e=>function(e,t,n,r,o,i){const a=i.signature,s=U(d3(o,t,n),(e=>mZ(e)));if(a){c(a,U(d3(a,t,n),(e=>mZ(e))))}c(o,s);const l=_e(i.functionCalls,((e,t)=>Ft(e.pos,t.pos)));for(const d of l)if(d.arguments&&d.arguments.length){const e=mZ(c3(o,d.arguments),!0);r.replaceNodeRange(Yf(d),Pe(d.arguments),Fe(d.arguments),e,{leadingTriviaOption:p_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:p_e.TrailingTriviaOption.Include})}function c(t,n){r.replaceNodeRangeWithNodes(e,Pe(t.parameters),Fe(t.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:p_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:p_e.TrailingTriviaOption.Include})}}(n,o,a,e,s,l)));return{renameFilename:void 0,renameLocation:void 0,edits:t}}return{edits:[]}}function $8(e,t){const n=x7(e);if(n){const e=t.getContextualTypeForObjectLiteralElement(n),r=null==e?void 0:e.getSymbol();if(r&&!(6&mS(r)))return r}}function Y8(e){const t=e.node;return RN(t.parent)||yN(t.parent)||hN(t.parent)||xN(t.parent)||MN(t.parent)||CN(t.parent)?t:void 0}function Q8(e){if(Lu(e.node.parent))return e.node}function Z8(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 213:case 214:const e=yt(n,ru);if(e&&e.expression===t)return e;break;case 211:const r=yt(n,lD);if(r&&r.parent&&r.name===t){const e=yt(r.parent,ru);if(e&&e.expression===r)return e}break;case 212:const o=yt(n,cD);if(o&&o.parent&&o.argumentExpression===t){const e=yt(o.parent,ru);if(e&&e.expression===o)return e}}}}function e3(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 211:const e=yt(n,lD);if(e&&e.expression===t)return e;break;case 212:const r=yt(n,cD);if(r&&r.expression===t)return r}}}function t3(e){const t=e.node;if(2===r$(t)||bE(t.parent))return t}function n3(e,t,n){const r=sY(e,t),o=mh(r);if(!function(e){const t=Cl(e,Uu);if(t){const e=Cl(t,(e=>!Uu(e)));return!!e&&Ad(e)}return!1}(r))return!(o&&function(e,t){var n;if(!function(e,t){return function(e){if(s3(e))return e.length-1;return e.length}(e)>=j8&&M(e,(e=>function(e,t){if(ip(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&nC(e.name)}(e,t)))}(e.parameters,t))return!1;switch(e.kind){case 262:return i3(e)&&o3(e,t);case 174:if(sD(e.parent)){const r=$8(e.name,t);return 1===(null==(n=null==r?void 0:r.declarations)?void 0:n.length)&&o3(e,t)}return o3(e,t);case 176:return lN(e.parent)?i3(e.parent)&&o3(e,t):a3(e.parent.parent)&&o3(e,t);case 218:case 219:return a3(e.parent)}return!1}(o,n)&&P$(o,r))||o.body&&P$(o.body,r)?void 0:o}function r3(e){return xC(e)&&(cN(e.parent)||WC(e.parent))}function o3(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function i3(e){if(!e.name){return!!IQ(e,90)}return!0}function a3(e){return iN(e)&&D_(e)&&nC(e.name)&&!e.type}function s3(e){return e.length>0&&L$(e[0].name)}function l3(e){return s3(e)&&(e=UA.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function c3(e,t){const n=l3(e.parameters),r=ip(Fe(n)),o=U(r?t.slice(0,n.length-1):t,((e,t)=>{const r=u3(n[t]),o=(i=r,nC(a=e)&&sv(a)===i?UA.createShorthandPropertyAssignment(i):UA.createPropertyAssignment(i,a));var i,a;return vZ(o.name),QN(o)&&vZ(o.initializer),SZ(e,o),o}));if(r&&t.length>=n.length){const e=t.slice(n.length-1),r=UA.createPropertyAssignment(u3(Fe(n)),UA.createArrayLiteralExpression(e));o.push(r)}return UA.createObjectLiteralExpression(o,!1)}function d3(e,t,n){const r=t.getTypeChecker(),o=l3(e.parameters),i=U(o,(function(e){const t=UA.createBindingElement(void 0,void 0,u3(e),ip(e)&&u(e)?UA.createArrayLiteralExpression():e.initializer);vZ(t),e.initializer&&t.initializer&&SZ(e.initializer,t.initializer);return t})),a=UA.createObjectBindingPattern(i),s=function(e){const t=U(e,d);return mI(UA.createTypeLiteralNode(t),1)}(o);let l;M(o,u)&&(l=UA.createObjectLiteralExpression());const c=UA.createParameterDeclaration(void 0,void 0,a,void 0,s,l);if(s3(e.parameters)){const t=e.parameters[0],n=UA.createParameterDeclaration(void 0,void 0,t.name,void 0,t.type);return vZ(n.name),SZ(t.name,n.name),t.type&&(vZ(n.type),SZ(t.type,n.type)),UA.createNodeArray([n,c])}return UA.createNodeArray([c]);function d(e){let o=e.type;var i;o||!e.initializer&&!ip(e)||(i=e,o=zZ(r.getTypeAtLocation(i),i,t,n));const a=UA.createPropertySignature(void 0,u3(e),u(e)?UA.createToken(58):e.questionToken,o);return vZ(a),SZ(e.name,a.name),e.type&&a.type&&SZ(e.type,a.type),a}function u(e){if(ip(e)){const t=r.getTypeAtLocation(e);return!r.isTupleType(t)}return r.isOptionalParameter(e)}}function u3(e){return sv(e.name)}var p3,f3,m3,_3,h3,g3=b({"src/services/refactors/convertParamsToDestructuredObject.ts"(){Tge(),F5(),G8="Convert parameters to destructured object",j8=1,V8=eT(Oa.Convert_parameters_to_destructured_object),M4(G8,{kinds:[(U8={name:G8,description:V8,kind:"refactor.rewrite.parameters.toDestructured"}).kind],getEditsForAction:X8,getAvailableActions:J8})}}),y3={},v3=b({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){g3()}});function b3(e){const{file:t,startPosition:n}=e,r=x3(E3(t,n)),i=zR(r),a={name:p3,description:f3,actions:[]};return i&&"invoked"!==e.triggerReason?o:Bh(r)&&(i||TD(r)&&A3(r).isValidConcatenation)?(a.actions.push(m3),[a]):e.preferences.provideRefactorNotApplicableReason?(a.actions.push({...m3,notApplicableReason:eT(Oa.Can_only_convert_string_concatenations_and_string_literals)}),[a]):o}function E3(e,t){const n=lY(e,t),r=x3(n);return!A3(r).isValidConcatenation&&mD(r.parent)&&TD(r.parent.parent)?r.parent.parent:n}function S3(e,t){const{file:n,startPosition:r}=e,o=E3(n,r);return t===f3?{edits:T3(e,o)}:In.fail("invalid action")}function T3(e,t){const n=x3(t),r=e.file,o=function({nodes:e,operators:t},n){const r=_3(t,n),o=h3(e,n,r),[i,a,s,l]=R3(0,e);if(i===e.length){const e=UA.createNoSubstitutionTemplateLiteral(a,s);return o(l,e),e}const c=[],d=UA.createTemplateHead(a,s);o(l,d);for(let u=i;u<e.length;u++){const t=D3(e[u]);r(u,t);const[n,i,a,s]=R3(u+1,e);u=n-1;const l=u===e.length-1;if(AD(t)){const e=U(t.templateSpans,((e,n)=>{C3(e);const r=n===t.templateSpans.length-1,o=e.literal.text+(r?i:""),s=I3(e.literal)+(r?a:"");return UA.createTemplateSpan(e.expression,l&&r?UA.createTemplateTail(o,s):UA.createTemplateMiddle(o,s))}));c.push(...e)}else{const e=l?UA.createTemplateTail(i,a):UA.createTemplateMiddle(i,a);o(s,e),c.push(UA.createTemplateSpan(t,e))}}return UA.createTemplateExpression(d,c)}(A3(n),r),i=ws(r.text,n.end);if(i){const t=i[i.length-1],a={pos:i[0].pos,end:t.end};return p_e.ChangeTracker.with(e,(e=>{e.deleteRange(r,a),e.replaceNode(r,n,o)}))}return p_e.ChangeTracker.with(e,(e=>e.replaceNode(r,n,o)))}function x3(e){return Cl(e.parent,(e=>{switch(e.kind){case 211:case 212:return!1;case 228:case 226:return!(TD(e.parent)&&(t=e.parent,64!==t.operatorToken.kind&&65!==t.operatorToken.kind));default:return"quit"}var t}))||e}function A3(e){const t=e=>{if(!TD(e))return{nodes:[e],operators:[],validOperators:!0,hasString:zR(e)||jR(e)};const{nodes:n,operators:r,hasString:o,validOperators:i}=t(e.left);if(!(o||zR(e.right)||AD(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};const a=40===e.operatorToken.kind,s=i&&a;return n.push(e.right),r.push(e.operatorToken),{nodes:n,operators:r,hasString:!0,validOperators:s}},{nodes:n,operators:r,validOperators:o,hasString:i}=t(e);return{nodes:n,operators:r,isValidConcatenation:o&&i}}function I3(e){const t=VR(e)||UR(e)?-2:-1;return xm(e).slice(1,t)}function R3(e,t){const n=[];let r="",o="";for(;e<t.length;){const i=t[e];if(!np(i)){if(AD(i)){r+=i.head.text,o+=I3(i.head);break}break}r+=i.text,o+=xm(i).slice(1,-1).replace(/\\.|[$`]/g,(e=>"\\"===e[0]?e:"\\"+e)),n.push(e),e++}return[e,r,o,n]}function C3(e){const t=e.getSourceFile();CZ(e,e.expression,t,3,!1),DZ(e.expression,e.expression,t,3,!1)}function D3(e){return mD(e)&&(C3(e),e=e.expression),e}var N3,M3,L3,k3=b({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){Tge(),F5(),p3="Convert to template string",f3=eT(Oa.Convert_to_template_string),M4(p3,{kinds:[(m3={name:p3,description:f3,kind:"refactor.rewrite.string"}).kind],getEditsForAction:S3,getAvailableActions:b3}),_3=(e,t)=>(n,r)=>{n<e.length&&CZ(e[n],r,t,3,!1)},h3=(e,t,n)=>(r,o)=>{for(;r.length>0;){const i=r.shift();CZ(e[i],o,t,3,!1),n(i,o)}}}}),P3={},w3=b({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){k3()}});function O3(e){const t=B3(e,"invoked"===e.triggerReason);return t?s6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:N3,description:M3,actions:[{...L3,notApplicableReason:t.error}]}]:o:[{name:N3,description:M3,actions:[L3]}]:o}function F3(e,t){const n=B3(e);In.assert(n&&!s6(n),"Expected applicable refactor info");const r=p_e.ChangeTracker.with(e,(t=>function(e,t,n,r){const{finalExpression:o,occurrences:i,expression:a}=r,s=i[i.length-1],l=H3(t,o,i);l&&(lD(l)||cD(l)||dD(l))&&(TD(a)?n.replaceNodeRange(e,s,o,l):xD(a)&&n.replaceNode(e,a,UA.createBinaryExpression(l,UA.createToken(61),a.whenFalse)))}(e.file,e.program.getTypeChecker(),t,n)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}function W3(e){return TD(e)||xD(e)}function z3(e){return W3(e)||function(e){return VD(e)||QD(e)||GD(e)}(e)}function B3(e,t=!0){const{file:n,program:r}=e,o=l0(e),i=0===o.length;if(i&&!t)return;const a=lY(n,o.start),s=uY(n,o.start+o.length),l=ul(a.pos,s&&s.end>=a.pos?s.getEnd():a.getEnd()),c=i?function(e){for(;e.parent;){if(z3(e)&&!z3(e.parent))return e;e=e.parent}return}(a):function(e,t){for(;e.parent;){if(z3(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}return}(a,l),d=c&&z3(c)?function(e){if(W3(e))return e;if(GD(e)){const t=$g(e),n=null==t?void 0:t.initializer;return n&&W3(n)?n:void 0}return e.expression&&W3(e.expression)?e.expression:void 0}(c):void 0;if(!d)return{error:eT(Oa.Could_not_find_convertible_access_expression)};const u=r.getTypeChecker();return xD(d)?function(e,t){const n=e.condition,r=U3(e.whenTrue);if(!r||t.isNullableType(t.getTypeAtLocation(r)))return{error:eT(Oa.Could_not_find_convertible_access_expression)};if((lD(n)||nC(n))&&j3(n,r.expression))return{finalExpression:r,occurrences:[n],expression:e};if(TD(n)){const t=G3(r.expression,n);return t?{finalExpression:r,occurrences:t,expression:e}:{error:eT(Oa.Could_not_find_matching_access_expressions)}}}(d,u):function(e){if(56!==e.operatorToken.kind)return{error:eT(Oa.Can_only_convert_logical_AND_access_chains)};const t=U3(e.right);if(!t)return{error:eT(Oa.Could_not_find_convertible_access_expression)};const n=G3(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:eT(Oa.Could_not_find_matching_access_expressions)}}(d)}function G3(e,t){const n=[];for(;TD(t)&&56===t.operatorToken.kind;){const r=j3(Ty(e),Ty(t.right));if(!r)break;n.push(r),e=r,t=t.left}const r=j3(e,t);return r&&n.push(r),n.length>0?n:void 0}function j3(e,t){if(nC(t)||lD(t)||cD(t))return function(e,t){for(;(dD(e)||lD(e)||cD(e))&&V3(e)!==V3(t);)e=e.expression;for(;lD(e)&&lD(t)||cD(e)&&cD(t);){if(V3(e)!==V3(t))return!1;e=e.expression,t=t.expression}return nC(e)&&nC(t)&&e.getText()===t.getText()}(e,t)?t:void 0}function V3(e){return nC(e)||tv(e)?e.getText():lD(e)?V3(e.name):cD(e)?V3(e.argumentExpression):void 0}function U3(e){return TD(e=Ty(e))?U3(e.left):(lD(e)||cD(e)||dD(e))&&!wc(e)?e:void 0}function H3(e,t,n){if(lD(t)||cD(t)||dD(t)){const r=H3(e,t.expression,n),o=n.length>0?n[n.length-1]:void 0,i=(null==o?void 0:o.getText())===t.expression.getText();if(i&&n.pop(),dD(t))return i?UA.createCallChain(r,UA.createToken(29),t.typeArguments,t.arguments):UA.createCallChain(r,t.questionDotToken,t.typeArguments,t.arguments);if(lD(t))return i?UA.createPropertyAccessChain(r,UA.createToken(29),t.name):UA.createPropertyAccessChain(r,t.questionDotToken,t.name);if(cD(t))return i?UA.createElementAccessChain(r,UA.createToken(29),t.argumentExpression):UA.createElementAccessChain(r,t.questionDotToken,t.argumentExpression)}return t}var K3,q3,J3,X3,$3,Y3=b({"src/services/refactors/convertToOptionalChainExpression.ts"(){Tge(),F5(),N3="Convert to optional chain expression",M3=eT(Oa.Convert_to_optional_chain_expression),M4(N3,{kinds:[(L3={name:N3,description:M3,kind:"refactor.rewrite.expression.optionalChain"}).kind],getEditsForAction:F3,getAvailableActions:O3})}}),Q3={},Z3=b({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){Y3()}});function e5(e){const t=e.kind,n=n5(e.file,l0(e),"invoked"===e.triggerReason),r=n.targetRange;if(void 0===r){if(!n.errors||0===n.errors.length||!e.preferences.provideRefactorNotApplicableReason)return o;const r=[];return l6(J3.kind,t)&&r.push({name:K3,description:J3.description,actions:[{...J3,notApplicableReason:m(n.errors)}]}),l6(q3.kind,t)&&r.push({name:K3,description:q3.description,actions:[{...q3,notApplicableReason:m(n.errors)}]}),r}const i=function(e,t){const{scopes:n,readsAndWrites:{functionErrorsPerScope:r,constantErrorsPerScope:o}}=i5(e,t),i=n.map(((e,t)=>{const n=function(e){return Ad(e)?"inner function":Md(e)?"method":"function"}(e),i=function(e){return Md(e)?"readonly field":"constant"}(e),a=Ad(e)?function(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:ZX;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:In.assertNever(e,`Unexpected scope kind ${e.kind}`)}}(e):Md(e)?function(e){return 263===e.kind?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}(e):function(e){return 268===e.kind?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}(e);let s,l;return 1===a?(s=YS(eT(Oa.Extract_to_0_in_1_scope),[n,"global"]),l=YS(eT(Oa.Extract_to_0_in_1_scope),[i,"global"])):0===a?(s=YS(eT(Oa.Extract_to_0_in_1_scope),[n,"module"]),l=YS(eT(Oa.Extract_to_0_in_1_scope),[i,"module"])):(s=YS(eT(Oa.Extract_to_0_in_1),[n,a]),l=YS(eT(Oa.Extract_to_0_in_1),[i,a])),0!==t||Md(e)||(l=YS(eT(Oa.Extract_to_0_in_enclosing_scope),[i])),{functionExtraction:{description:s,errors:r[t]},constantExtraction:{description:l,errors:o[t]}}}));return i}(r,e);if(void 0===i)return o;const a=[],s=new Map;let l;const c=[],d=new Map;let u,p=0;for(const{functionExtraction:o,constantExtraction:_}of i){if(l6(J3.kind,t)){const e=o.description;0===o.errors.length?s.has(e)||(s.set(e,!0),a.push({description:e,name:`function_scope_${p}`,kind:J3.kind})):l||(l={description:e,name:`function_scope_${p}`,notApplicableReason:m(o.errors),kind:J3.kind})}if(l6(q3.kind,t)){const e=_.description;0===_.errors.length?d.has(e)||(d.set(e,!0),c.push({description:e,name:`constant_scope_${p}`,kind:q3.kind})):u||(u={description:e,name:`constant_scope_${p}`,notApplicableReason:m(_.errors),kind:q3.kind})}p++}const f=[];return a.length?f.push({name:K3,description:eT(Oa.Extract_function),actions:a}):e.preferences.provideRefactorNotApplicableReason&&l&&f.push({name:K3,description:eT(Oa.Extract_function),actions:[l]}),c.length?f.push({name:K3,description:eT(Oa.Extract_constant),actions:c}):e.preferences.provideRefactorNotApplicableReason&&u&&f.push({name:K3,description:eT(Oa.Extract_constant),actions:[u]}),f.length?f:o;function m(e){let t=e[0].messageText;return"string"!==typeof t&&(t=t.messageText),t}}function t5(e,t){const n=n5(e.file,l0(e)).targetRange,r=/^function_scope_(\d+)$/.exec(t);if(r){const t=+r[1];return In.assert(isFinite(t),"Expected to parse a finite number from the function scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:a,functionErrorsPerScope:s,exposedVariableDeclarations:l}}=i5(e,t);return In.assert(!s[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{usages:n,typeParameterUsages:r,substitutions:i},a,s,l){const c=l.program.getTypeChecker(),d=jp(l.program.getCompilerOptions()),u=Qle.createImportAdder(l.file,l.program,l.preferences,l.host),p=t.getSourceFile(),f=AZ(Md(t)?"newMethod":"newFunction",p),m=$h(t),_=UA.createIdentifier(f);let h;const g=[],y=[];let v;n.forEach(((e,n)=>{let r;if(!m){let n=c.getTypeOfSymbolAtLocation(e.symbol,e.node);n=c.getBaseTypeOfLiteralType(n),r=Qle.typeToAutoImportableTypeNode(c,u,n,t,d,1)}const o=UA.createParameterDeclaration(void 0,void 0,n,void 0,r);g.push(o),2===e.usage&&(v||(v=[])).push(e),y.push(UA.createIdentifier(n))}));const b=Ye(r.values(),(e=>({type:e,declaration:a5(e,l.startPosition)}))),E=b.sort(s5),S=0===E.length?void 0:Z(E,(({declaration:e})=>e)),T=void 0!==S?S.map((e=>UA.createTypeReferenceNode(e.name,void 0))):void 0;if(uu(e)&&!m){const n=c.getContextualType(e);h=c.typeToTypeNode(n,t,1)}const{body:x,returnValueProperty:A}=function(e,t,n,r,o){const i=void 0!==n||t.length>0;if(BD(e)&&!i&&0===r.size)return{body:UA.createBlock(e.statements,!0),returnValueProperty:void 0};let a,s=!1;const l=UA.createNodeArray(BD(e)?e.statements.slice(0):[wu(e)?e:UA.createReturnStatement(Ty(e))]);if(i||r.size){const r=oB(l,c,wu).slice();if(i&&!o&&wu(e)){const e=l5(t,n);1===e.length?r.push(UA.createReturnStatement(e[0].name)):r.push(UA.createReturnStatement(UA.createObjectLiteralExpression(e)))}return{body:UA.createBlock(r,!0),returnValueProperty:a}}return{body:UA.createBlock(l,!0),returnValueProperty:void 0};function c(e){if(!s&&QD(e)&&i){const r=l5(t,n);return e.expression&&(a||(a="__return"),r.unshift(UA.createPropertyAssignment(a,rB(e.expression,c,uu)))),1===r.length?UA.createReturnStatement(r[0].name):UA.createReturnStatement(UA.createObjectLiteralExpression(r))}{const t=s;s=s||Ad(e)||Md(e);const n=r.get(Hz(e).toString()),o=n?mZ(n):fB(e,c,void 0);return s=t,o}}}(e,a,v,i,!!(1&s.facts));let I;vZ(x);const R=!!(16&s.facts);if(Md(t)){const e=m?[]:[UA.createModifier(123)];32&s.facts&&e.push(UA.createModifier(126)),4&s.facts&&e.push(UA.createModifier(134)),I=UA.createMethodDeclaration(e.length?e:void 0,2&s.facts?UA.createToken(42):void 0,_,void 0,S,g,h,x)}else R&&g.unshift(UA.createParameterDeclaration(void 0,void 0,"this",void 0,c.typeToTypeNode(c.getTypeAtLocation(s.thisNode),t,1),void 0)),I=UA.createFunctionDeclaration(4&s.facts?[UA.createToken(134)]:void 0,2&s.facts?UA.createToken(42):void 0,_,S,g,h,x);const C=p_e.ChangeTracker.fromContext(l),D=function(e,t){return L(function(e){if(Ad(e)){const t=e.body;if(BD(t))return t.statements}else{if(fN(e)||rM(e))return e.statements;if(Md(e))return e.members}return o}(t),(t=>t.pos>=e&&Ad(t)&&!RC(t)))}((c5(s.range)?Fe(s.range):s.range).end,t);D?C.insertNodeBefore(l.file,D,I,!0):C.insertNodeAtEndOfScope(l.file,t,I);u.writeFixes(C);const N=[],M=function(e,t,n){const r=UA.createIdentifier(n);if(Md(e)){const n=32&t.facts?UA.createIdentifier(e.name.text):UA.createThis();return UA.createPropertyAccessExpression(n,r)}return r}(t,s,f);R&&y.unshift(UA.createIdentifier("this"));let k=UA.createCallExpression(R?UA.createPropertyAccessExpression(M,"call"):M,T,y);2&s.facts&&(k=UA.createYieldExpression(UA.createToken(42),k));4&s.facts&&(k=UA.createAwaitExpression(k));p5(e)&&(k=UA.createJsxExpression(void 0,k));if(a.length&&!v)if(In.assert(!A,"Expected no returnValueProperty"),In.assert(!(1&s.facts),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){const e=a[0];N.push(UA.createVariableStatement(void 0,UA.createVariableDeclarationList([UA.createVariableDeclaration(mZ(e.name),void 0,mZ(e.type),k)],e.parent.flags)))}else{const e=[],n=[];let r=a[0].parent.flags,o=!1;for(const s of a){e.push(UA.createBindingElement(void 0,void 0,mZ(s.name)));const i=c.typeToTypeNode(c.getBaseTypeOfLiteralType(c.getTypeAtLocation(s)),t,1);n.push(UA.createPropertySignature(void 0,s.symbol.name,void 0,i)),o=o||void 0!==s.type,r&=s.parent.flags}const i=o?UA.createTypeLiteralNode(n):void 0;i&&fI(i,1),N.push(UA.createVariableStatement(void 0,UA.createVariableDeclarationList([UA.createVariableDeclaration(UA.createObjectBindingPattern(e),void 0,i,k)],r)))}else if(a.length||v){if(a.length)for(const t of a){let e=t.parent.flags;2&e&&(e=-3&e|1),N.push(UA.createVariableStatement(void 0,UA.createVariableDeclarationList([UA.createVariableDeclaration(t.symbol.name,void 0,F(t.type))],e)))}A&&N.push(UA.createVariableStatement(void 0,UA.createVariableDeclarationList([UA.createVariableDeclaration(A,void 0,F(h))],1)));const e=l5(a,v);A&&e.unshift(UA.createShorthandPropertyAssignment(A)),1===e.length?(In.assert(!A,"Shouldn't have returnValueProperty here"),N.push(UA.createExpressionStatement(UA.createAssignment(e[0].name,k))),1&s.facts&&N.push(UA.createReturnStatement())):(N.push(UA.createExpressionStatement(UA.createAssignment(UA.createObjectLiteralExpression(e),k))),A&&N.push(UA.createReturnStatement(UA.createIdentifier(A))))}else 1&s.facts?N.push(UA.createReturnStatement(k)):c5(s.range)?N.push(UA.createExpressionStatement(k)):N.push(k);c5(s.range)?C.replaceNodeRangeWithNodes(l.file,Pe(s.range),Fe(s.range),N):C.replaceNodeWithNodes(l.file,s.range,N);const P=C.getChanges(),w=(c5(s.range)?Pe(s.range):s.range).getSourceFile().fileName,O=IZ(P,w,f,!1);return{renameFilename:w,renameLocation:O,edits:P};function F(e){if(void 0===e)return;const t=mZ(e);let n=t;for(;JC(n);)n=n.type;return UC(n)&&L(n.types,(e=>157===e.kind))?t:UA.createUnionTypeNode([t,UA.createKeywordTypeNode(157)])}}(i,r[n],a[n],l,e,t)}(n,e,t)}const i=/^constant_scope_(\d+)$/.exec(t);if(i){const t=+i[1];return In.assert(isFinite(t),"Expected to parse a finite number from the constant scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:o,usagesPerScope:i,constantErrorsPerScope:a,exposedVariableDeclarations:s}}=i5(e,t);In.assert(!a[n].length,"The extraction went missing? How?"),In.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();return function(e,t,{substitutions:n},r,o){const i=o.program.getTypeChecker(),a=t.getSourceFile(),s=!lD(e)||Md(t)||i.resolveName(e.name.text,e,111551,!1)||rC(e.name)||Pl(e.name)?AZ(Md(t)?"newProperty":"newLocal",a):e.name.text,l=$h(t);let c=l||!i.isContextSensitive(e)?void 0:i.typeToTypeNode(i.getContextualType(e),t,1),d=function(e,t){return t.size?n(e):e;function n(e){const r=t.get(Hz(e).toString());return r?mZ(r):fB(e,n,void 0)}}(Ty(e),n);({variableType:c,initializer:d}=_(c,d)),vZ(d);const u=p_e.ChangeTracker.fromContext(o);if(Md(t)){In.assert(!l,"Cannot extract to a JS class");const n=[];n.push(UA.createModifier(123)),32&r&&n.push(UA.createModifier(126)),n.push(UA.createModifier(148));const i=UA.createPropertyDeclaration(n,s,void 0,c,d);let a=UA.createPropertyAccessExpression(32&r?UA.createIdentifier(t.name.getText()):UA.createThis(),UA.createIdentifier(s));p5(e)&&(a=UA.createJsxExpression(void 0,a));const p=function(e,t){const n=t.members;let r;In.assert(n.length>0,"Found no members");let o=!0;for(const i of n){if(i.pos>e)return r||n[0];if(o&&!TC(i)){if(void 0!==r)return i;o=!1}r=i}return void 0===r?In.fail():r}(e.pos,t);u.insertNodeBefore(o.file,p,i,!0),u.replaceNode(o.file,e,a)}else{const n=UA.createVariableDeclaration(s,void 0,c,d),r=function(e,t){let n;for(;void 0!==e&&e!==t;){if(iN(e)&&e.initializer===n&&aN(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}(e,t);if(r){u.insertNodeBefore(o.file,r,n);const t=UA.createIdentifier(s);u.replaceNode(o.file,e,t)}else if(244===e.parent.kind&&t===Cl(e,o5)){const t=UA.createVariableStatement(void 0,UA.createVariableDeclarationList([n],2));u.replaceNode(o.file,e.parent,t)}else{const r=UA.createVariableStatement(void 0,UA.createVariableDeclarationList([n],2)),i=function(e,t){let n;In.assert(!Md(t));for(let r=e;r!==t;r=r.parent)o5(r)&&(n=r);for(let r=(n||e).parent;;r=r.parent){if(u5(r)){let t;for(const n of r.statements){if(n.pos>e.pos)break;t=n}return!t&&JN(r)?(In.assert(eN(r.parent.parent),"Grandparent isn't a switch statement"),r.parent.parent):In.checkDefined(t,"prevStatement failed to get set")}In.assert(r!==t,"Didn't encounter a block-like before encountering scope")}}(e,t);if(0===i.pos?u.insertNodeAtTopOfFile(o.file,r,!1):u.insertNodeBefore(o.file,i,r,!1),244===e.parent.kind)u.delete(o.file,e.parent);else{let t=UA.createIdentifier(s);p5(e)&&(t=UA.createJsxExpression(void 0,t)),u.replaceNode(o.file,e,t)}}}const p=u.getChanges(),f=e.getSourceFile().fileName,m=IZ(p,f,s,!0);return{renameFilename:f,renameLocation:m,edits:p};function _(n,r){if(void 0===n)return{variableType:n,initializer:r};if(!_D(r)&&!hD(r)||r.typeParameters)return{variableType:n,initializer:r};const o=i.getTypeAtLocation(e),a=We(i.getSignaturesOfType(o,0));if(!a)return{variableType:n,initializer:r};if(a.getTypeParameters())return{variableType:n,initializer:r};const s=[];let l=!1;for(const e of r.parameters)if(e.type)s.push(e);else{const n=i.getTypeAtLocation(e);n===i.getAnyType()&&(l=!0),s.push(UA.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type||i.typeToTypeNode(n,t,1),e.initializer))}if(l)return{variableType:n,initializer:r};if(n=void 0,hD(r))r=UA.updateArrowFunction(r,vk(e)?Hl(e):void 0,r.typeParameters,s,r.type||i.typeToTypeNode(a.getReturnType(),t,1),r.equalsGreaterThanToken,r.body);else{if(a&&a.thisParameter){const n=Le(s);if(!n||nC(n.name)&&"this"!==n.name.escapedText){const n=i.getTypeOfSymbolAtLocation(a.thisParameter,e);s.splice(0,0,UA.createParameterDeclaration(void 0,void 0,"this",void 0,i.typeToTypeNode(n,t,1)))}}r=UA.updateFunctionExpression(r,vk(e)?Hl(e):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||i.typeToTypeNode(a.getReturnType(),t,1),r.body)}return{variableType:n,initializer:r}}}(uu(o)?o:o.statements[0].expression,r[n],i[n],e.facts,t)}(n,e,t)}In.fail("Unrecognized action name")}function n5(e,t,n=!0){const{length:r}=t;if(0===r&&!n)return{errors:[iT(e,t.start,r,X3.cannotExtractEmpty)]};const o=0===r&&n,i=dY(e,t.start),a=uY(e,Qs(t)),s=i&&a&&n?function(e,t,n){const r=e.getStart(n);let o=t.getEnd();59===n.text.charCodeAt(o)&&o++;return{start:r,length:o-r}}(i,a,e):t,l=o?function(e){return Cl(e,(e=>e.parent&&d5(e)&&!TD(e.parent)))}(i):xQ(i,e,s),c=o?l:xQ(a,e,s);let d,u=0;if(!l||!c)return{errors:[iT(e,t.start,r,X3.cannotExtractRange)]};if(16777216&l.flags)return{errors:[iT(e,t.start,r,X3.cannotExtractJSDoc)]};if(l.parent!==c.parent)return{errors:[iT(e,t.start,r,X3.cannotExtractRange)]};if(l!==c){if(!u5(l.parent))return{errors:[iT(e,t.start,r,X3.cannotExtractRange)]};const n=[];for(const e of l.parent.statements){if(e===l||n.length){const t=m(e);if(t)return{errors:t};n.push(e)}if(e===c)break}return n.length?{targetRange:{range:n,facts:u,thisNode:d}}:{errors:[iT(e,t.start,r,X3.cannotExtractRange)]}}if(QD(l)&&!l.expression)return{errors:[iT(e,t.start,r,X3.cannotExtractRange)]};const p=function(e){if(QD(e)){if(e.expression)return e.expression}else if(GD(e)||aN(e)){const t=GD(e)?e.declarationList.declarations:e.declarations;let n,r=0;for(const e of t)e.initializer&&(r++,n=e.initializer);if(1===r)return n}else if(iN(e)&&e.initializer)return e.initializer;return e}(l),f=function(e){if(nC(VD(e)?e.expression:e))return[d_(e,X3.cannotExtractIdentifier)];return}(p)||m(p);return f?{errors:f}:{targetRange:{range:r5(p),facts:u,thisNode:d}};function m(e){let n;var r;if((r=n||(n={}))[r.None=0]="None",r[r.Break=1]="Break",r[r.Continue=2]="Continue",r[r.Return=4]="Return",In.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),In.assert(!_x(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!wu(e)&&(!Bh(e)||!d5(e))&&!f5(e))return[d_(e,X3.statementOrExpressionExpected)];if(33554432&e.flags)return[d_(e,X3.cannotExtractAmbientBlock)];const o=_h(e);let i;o&&function(e,t){let n=e;for(;n!==t;){if(172===n.kind){jb(n)&&(u|=32);break}if(169===n.kind){176===fh(n).kind&&(u|=32);break}174===n.kind&&jb(n)&&(u|=32),n=n.parent}}(e,o);let a,s=4;if(function e(n){if(i)return!0;if(Lu(n)){if(Gb(260===n.kind?n.parent.parent:n,32))return(i||(i=[])).push(d_(n,X3.cannotExtractExportedEntity)),!0}switch(n.kind){case 272:return(i||(i=[])).push(d_(n,X3.cannotExtractImport)),!0;case 277:return(i||(i=[])).push(d_(n,X3.cannotExtractExportedEntity)),!0;case 108:if(213===n.parent.kind){const e=_h(n);if(void 0===e||e.pos<t.start||e.end>=t.start+t.length)return(i||(i=[])).push(d_(n,X3.cannotExtractSuper)),!0}else u|=8,d=n;break;case 219:oP(n,(function e(t){if(L$(t))u|=8,d=n;else{if(Md(t)||Td(t)&&!hD(t))return!1;oP(t,e)}}));case 263:case 262:rM(n.parent)&&void 0===n.parent.externalModuleIndicator&&(i||(i=[])).push(d_(n,X3.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const r=s;switch(n.kind){case 245:s&=-5;break;case 258:s=0;break;case 241:n.parent&&258===n.parent.kind&&n.parent.finallyBlock===n&&(s=4);break;case 297:case 296:s|=1;break;default:mu(n,!1)&&(s|=3)}switch(n.kind){case 197:case 110:u|=8,d=n;break;case 256:{const t=n.label;(a||(a=[])).push(t.escapedText),oP(n,e),a.pop();break}case 252:case 251:{const e=n.label;e?F(a,e.escapedText)||(i||(i=[])).push(d_(n,X3.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(252===n.kind?1:2)||(i||(i=[])).push(d_(n,X3.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:u|=4;break;case 229:u|=2;break;case 253:4&s?u|=1:(i||(i=[])).push(d_(n,X3.cannotExtractRangeContainingConditionalReturnStatement));break;default:oP(n,e)}s=r}(e),8&u){const t=vh(e,!1,!1);(262===t.kind||174===t.kind&&210===t.parent.kind||218===t.kind)&&(u|=16)}return i}}function r5(e){return wu(e)?[e]:Bh(e)?VD(e.parent)?[e.parent]:e:f5(e)?e:void 0}function o5(e){return hD(e)?Eu(e.body):Ad(e)||rM(e)||fN(e)||Md(e)}function i5(e,t){const{file:n}=t,r=function(e){let t=c5(e.range)?Pe(e.range):e.range;if(8&e.facts&&!(16&e.facts)){const e=_h(t);if(e){const n=Cl(t,Ad);return n?[n,e]:[e]}}const n=[];for(;;)if(t=t.parent,169===t.kind&&(t=Cl(t,(e=>Ad(e))).parent),o5(t)&&(n.push(t),312===t.kind))return n}(e),o=function(e,t){return c5(e.range)?{pos:Pe(e.range).getStart(t),end:Fe(e.range).getEnd()}:e.range}(e,n),i=function(e,t,n,r,o,i){const a=new Map,s=[],l=[],c=[],d=[],u=[],p=new Map,f=[];let m;const _=c5(e.range)?1===e.range.length&&VD(e.range[0])?e.range[0].expression:void 0:e.range;let h;if(void 0===_){const t=e.range,n=Pe(t).getStart(),o=Fe(t).end;h=iT(r,n,o-n,X3.expressionExpected)}else 147456&o.getTypeAtLocation(_).flags&&(h=d_(_,X3.uselessConstantType));for(const D of t){s.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),l.push(new Map),c.push([]);const e=[];h&&e.push(h),Md(D)&&$h(D)&&e.push(d_(D,X3.cannotExtractToJSClass)),hD(D)&&!BD(D.body)&&e.push(d_(D,X3.cannotExtractToExpressionArrowFunction)),d.push(e)}const g=new Map,y=c5(e.range)?UA.createBlock(e.range):e.range,v=c5(e.range)?Pe(e.range):e.range,b=E(v);if(T(y),b&&!c5(e.range)&&!VN(e.range)){S(o.getContextualType(e.range))}if(a.size>0){const e=new Map;let n=0;for(let r=v;void 0!==r&&n<t.length;r=r.parent)if(r===t[n]&&(e.forEach(((e,t)=>{s[n].typeParameterUsages.set(t,e)})),n++),Jm(r))for(const t of Cc(r)){const n=o.getTypeAtLocation(t);a.has(n.id.toString())&&e.set(n.id.toString(),n)}In.assert(n===t.length,"Should have iterated all scopes")}if(u.length){oP(qm(t[0],t[0].parent)?t[0]:n_(t[0]),I)}for(let D=0;D<t.length;D++){const n=s[D];if(D>0&&(n.usages.size>0||n.typeParameterUsages.size>0)){const t=c5(e.range)?e.range[0]:e.range;d[D].push(d_(t,X3.cannotAccessVariablesFromNestedScopes))}16&e.facts&&Md(t[D])&&c[D].push(d_(e.thisNode,X3.cannotExtractFunctionsContainingThisToMethod));let r,o=!1;if(s[D].usages.forEach((e=>{2===e.usage&&(o=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&Bb(e.symbol.valueDeclaration,8)&&(r=e.symbol.valueDeclaration))})),In.assert(c5(e.range)||0===f.length,"No variable declarations expected if something was extracted"),o&&!c5(e.range)){const t=d_(e.range,X3.cannotWriteInExpression);c[D].push(t),d[D].push(t)}else if(r&&D>0){const e=d_(r,X3.cannotExtractReadonlyPropertyInitializerOutsideConstructor);c[D].push(e),d[D].push(e)}else if(m){const e=d_(m,X3.cannotExtractExportedEntity);c[D].push(e),d[D].push(e)}}return{target:y,usagesPerScope:s,functionErrorsPerScope:c,constantErrorsPerScope:d,exposedVariableDeclarations:f};function E(e){return!!Cl(e,(e=>Jm(e)&&0!==Cc(e).length))}function S(e){const t=o.getSymbolWalker((()=>(i.throwIfCancellationRequested(),!0))),{visitedTypes:n}=t.walkType(e);for(const r of n)r.isTypeParameter()&&a.set(r.id.toString(),r)}function T(e,t=1){if(b){S(o.getTypeAtLocation(e))}if(Lu(e)&&e.symbol&&u.push(e),gE(e))T(e.left,2),T(e.right);else if(cu(e))T(e.operand,2);else if(lD(e)||cD(e))oP(e,T);else if(nC(e)){if(!e.parent)return;if(gC(e.parent)&&e!==e.parent.left)return;if(lD(e.parent)&&e!==e.parent.expression)return;x(e,t,j_(e))}else oP(e,T)}function x(e,n,r){const o=A(e,n,r);if(o)for(let i=0;i<t.length;i++){const t=l[i].get(o);t&&s[i].substitutions.set(Hz(e).toString(),t)}}function A(i,a,u){const p=R(i);if(!p)return;const f=Kz(p).toString(),m=g.get(f);if(m&&m>=a)return f;if(g.set(f,a),m){for(const e of s){e.usages.get(i.text)&&e.usages.set(i.text,{usage:a,symbol:p,node:i})}return f}const _=p.getDeclarations(),h=_&&L(_,(e=>e.getSourceFile()===r));if(h&&!z$(n,h.getStart(),h.end)){if(2&e.facts&&2===a){const e=d_(i,X3.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const t of c)t.push(e);for(const t of d)t.push(e)}for(let e=0;e<t.length;e++){const n=t[e];if(o.resolveName(p.name,n,p.flags,!1)!==p&&!l[e].has(f)){const t=C(p.exportSymbol||p,n,u);if(t)l[e].set(f,t);else if(u){if(!(262144&p.flags)){const t=d_(i,X3.typeWillNotBeVisibleInTheNewScope);c[e].push(t),d[e].push(t)}}else s[e].usages.set(i.text,{usage:a,symbol:p,node:i})}}return f}}function I(t){if(t===e.range||c5(e.range)&&e.range.includes(t))return;const n=nC(t)?R(t):o.getSymbolAtLocation(t);if(n){const e=L(u,(e=>e.symbol===n));if(e)if(iN(e)){const t=e.symbol.id.toString();p.has(t)||(f.push(e),p.set(t,!0))}else m=m||e}oP(t,I)}function R(e){return e.parent&&ZN(e.parent)&&e.parent.name===e?o.getShorthandAssignmentValueSymbol(e.parent):o.getSymbolAtLocation(e)}function C(e,t,n){if(!e)return;const r=e.getDeclarations();if(r&&r.some((e=>e.parent===t)))return UA.createIdentifier(e.name);const o=C(e.parent,t,n);return void 0!==o?n?UA.createQualifiedName(o,UA.createIdentifier(e.name)):UA.createPropertyAccessExpression(o,e.name):void 0}}(e,r,o,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:r,readsAndWrites:i}}function a5(e,t){let n;const r=e.symbol;if(r&&r.declarations)for(const o of r.declarations)(void 0===n||o.pos<n.pos)&&o.pos<t&&(n=o);return n}function s5({type:e,declaration:t},{type:n,declaration:r}){return qt(t,r,"pos",Ft)||jt(e.symbol?e.symbol.getName():"",n.symbol?n.symbol.getName():"")||Ft(e.id,n.id)}function l5(e,t){const n=U(e,(e=>UA.createShorthandPropertyAssignment(e.symbol.name))),r=U(t,(e=>UA.createShorthandPropertyAssignment(e.symbol.name)));return void 0===n?r:void 0===r?n:n.concat(r)}function c5(e){return mt(e)}function d5(e){const{parent:t}=e;if(306===t.kind)return!1;switch(e.kind){case 11:return 272!==t.kind&&276!==t.kind;case 230:case 206:case 208:return!1;case 80:return 208!==t.kind&&276!==t.kind&&281!==t.kind}return!0}function u5(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function p5(e){return f5(e)||(ON(e)||FN(e)||BN(e))&&(ON(e.parent)||BN(e.parent))}function f5(e){return zR(e)&&e.parent&&VN(e.parent)}var m5=b({"src/services/refactors/extractSymbol.ts"(){Tge(),F5(),K3="Extract Symbol",q3={name:"Extract Constant",description:eT(Oa.Extract_constant),kind:"refactor.extract.constant"},J3={name:"Extract Function",description:eT(Oa.Extract_function),kind:"refactor.extract.function"},M4(K3,{kinds:[q3.kind,J3.kind],getEditsForAction:t5,getAvailableActions:e5}),(e=>{function t(e){return{message:e,code:0,category:3,key:e}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(X3||(X3={})),$3=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))($3||{})}}),_5={};E(_5,{Messages:()=>X3,RangeFacts:()=>$3,getRangeToExtract:()=>n5,getRefactorActionsToExtractSymbol:()=>e5,getRefactorEditsToExtractSymbol:()=>t5});var h5,g5,y5,v5,b5,E5,S5=b({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){m5()}}),T5=b({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){Tge(),F5(),h5="Generate 'get' and 'set' accessors",g5=eT(Oa.Generate_get_and_set_accessors),M4(h5,{kinds:[(y5={name:h5,description:g5,kind:"refactor.rewrite.property.generateAccessors"}).kind],getEditsForAction:function(e,t){if(!e.endPosition)return;const n=Qle.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);In.assert(n&&!s6(n),"Expected applicable refactor info");const r=Qle.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t);if(!r)return;const o=e.file.fileName,i=n.renameAccessor?n.accessorName:n.fieldName;return{renameFilename:o,renameLocation:(nC(i)?0:-1)+IZ(r,o,i.text,bC(n.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return o;const t=Qle.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return t?s6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:h5,description:g5,actions:[{...y5,notApplicableReason:t.error}]}]:o:[{name:h5,description:g5,actions:[y5]}]:o}})}}),x5={},A5=b({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){T5()}});function I5(e){const t=C5(e);if(t&&!s6(t)){return{renameFilename:void 0,renameLocation:void 0,edits:p_e.ChangeTracker.with(e,(n=>function(e,t,n,r){const o=J$(n,22,e),i=hD(n)&&void 0===o,a=i?Pe(n.parameters):o;a&&(i&&(t.insertNodeBefore(e,a,UA.createToken(21)),t.insertNodeAfter(e,a,UA.createToken(22))),t.insertNodeAt(e,a.end,r,{prefix:": "}))}(e.file,n,t.declaration,t.returnTypeNode)))}}}function R5(e){const t=C5(e);return t?s6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:v5,description:b5,actions:[{...E5,notApplicableReason:t.error}]}]:o:[{name:v5,description:b5,actions:[E5]}]:o}function C5(e){if($h(e.file)||!l6(E5.kind,e.kind))return;const t=Cl(aY(e.file,e.startPosition),(e=>BD(e)||e.parent&&hD(e.parent)&&(39===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}(e)));if(!t||!t.body||t.type)return{error:eT(Oa.Return_type_must_be_inferred_from_a_function)};const n=e.program.getTypeChecker(),r=function(e,t){if(e.isImplementationOfOverload(t)){const n=e.getTypeAtLocation(t).getCallSignatures();if(n.length>1)return e.getUnionType(Z(n,(e=>e.getReturnType())))}const n=e.getSignatureFromDeclaration(t);if(n)return e.getReturnTypeOfSignature(n)}(n,t);if(!r)return{error:eT(Oa.Could_not_determine_function_return_type)};const o=n.typeToTypeNode(r,t,1);return o?{declaration:t,returnTypeNode:o}:void 0}var D5=b({"src/services/refactors/inferFunctionReturnType.ts"(){Tge(),F5(),v5="Infer function return type",b5=eT(Oa.Infer_function_return_type),M4(v5,{kinds:[(E5={name:v5,description:b5,kind:"refactor.rewrite.function.returnType"}).kind],getEditsForAction:I5,getAvailableActions:R5})}}),N5={},M5=b({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){D5()}}),L5={};E(L5,{addExportToChanges:()=>Y6,addExports:()=>G6,addNewFileToTsconfig:()=>D6,addOrRemoveBracesToArrowFunction:()=>k8,containsJsx:()=>e8,convertArrowFunctionOrFunctionExpression:()=>K8,convertParamsToDestructuredObject:()=>y3,convertStringOrTemplateLiteral:()=>P3,convertToOptionalChainExpression:()=>Q3,createNewFileName:()=>Q6,createOldFileImportsFromTargetFile:()=>W6,deleteMovedStatements:()=>N6,deleteUnusedImports:()=>V6,deleteUnusedOldImports:()=>M6,doChangeNamedToNamespaceOrDefault:()=>X4,extractSymbol:()=>_5,filterImport:()=>J6,forEachImportInStatement:()=>F6,generateGetAccessorAndSetAccessor:()=>x5,getApplicableRefactors:()=>L4,getEditsForRefactor:()=>k4,getStatementsToMove:()=>Z6,getTopLevelDeclarationStatement:()=>$6,getUsageInfo:()=>n8,inferFunctionReturnType:()=>N5,isRefactorErrorInfo:()=>s6,isTopLevelDeclaration:()=>s8,makeImportOrRequire:()=>z6,moduleSpecifierFromImport:()=>O6,nameOfTopLevelDeclaration:()=>X6,refactorKindBeginsWith:()=>l6,registerRefactor:()=>M4,updateImportsInOtherFiles:()=>L6});var k5,P5,w5,O5,F5=b({"src/services/_namespaces/ts.refactor.ts"(){F4(),U4(),t6(),a6(),p6(),b6(),A6(),m8(),P8(),q8(),v3(),w3(),Z3(),S5(),A5(),M5()}});function W5(e,t,n,r){const o=z5(e,t,n,r);In.assert(o.spans.length%3===0);const i=o.spans,a=[];for(let s=0;s<i.length;s+=3)a.push({textSpan:dl(i[s],i[s+1]),classificationType:i[s+2]});return a}function z5(e,t,n,r){return{spans:B5(e,n,r,t),endOfLineState:0}}function B5(e,t,n,r){const o=[];return e&&t&&function(e,t,n,r,o){const i=e.getTypeChecker();let a=!1;function s(l){switch(l.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:o.throwIfCancellationRequested()}if(!l||!al(n,l.pos,l.getFullWidth())||0===l.getFullWidth())return;const c=a;if((ON(l)||FN(l))&&(a=!0),KN(l)&&(a=!1),nC(l)&&!a&&!function(e){const t=e.parent;return t&&(yN(t)||RN(t)||xN(t))}(l)&&!Qx(l.escapedText)){let n=i.getSymbolAtLocation(l);if(n){2097152&n.flags&&(n=i.getAliasedSymbol(n));let o=function(e,t){const n=e.getFlags();if(32&n)return 0;if(384&n)return 1;if(524288&n)return 5;if(64&n){if(2&t)return 2}else if(262144&n)return 4;let r=e.valueDeclaration||e.declarations&&e.declarations[0];r&&iD(r)&&(r=G5(r));return r&&O5.get(r.kind)}(n,r$(l));if(void 0!==o){let a=0;if(l.parent){(iD(l.parent)||O5.get(l.parent.kind)===o)&&l.parent.name===l&&(a=1)}6===o&&j5(l)&&(o=9),o=function(e,t,n){if(7===n||9===n||6===n){const r=e.getTypeAtLocation(t);if(r){const e=e=>e(r)||r.isUnion()&&r.types.some(e);if(6!==n&&e((e=>e.getConstructSignatures().length>0)))return 0;if(e((e=>e.getCallSignatures().length>0))&&!e((e=>e.getProperties().length>0))||function(e){for(;j5(e);)e=e.parent;return dD(e.parent)&&e.parent.expression===e}(t))return 9===n?11:10}}return n}(i,l,o);const s=n.valueDeclaration;if(s){const r=Sl(s),i=xl(s);256&r&&(a|=2),1024&r&&(a|=4),0!==o&&2!==o&&(8&r||2&i||8&n.getFlags())&&(a|=8),7!==o&&10!==o||!function(e,t){iD(e)&&(e=G5(e));if(iN(e))return(!rM(e.parent.parent.parent)||YN(e.parent))&&e.getSourceFile()===t;if(sN(e))return!rM(e.parent)&&e.getSourceFile()===t;return!1}(s,t)||(a|=32),e.isSourceFileDefaultLibrary(s.getSourceFile())&&(a|=16)}else n.declarations&&n.declarations.some((t=>e.isSourceFileDefaultLibrary(t.getSourceFile())))&&(a|=16);r(l,o,a)}}}oP(l,s),a=c}s(t)}(e,t,n,((e,n,r)=>{o.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)}),r),o}function G5(e){for(;;){if(!iD(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function j5(e){return gC(e.parent)&&e.parent.right===e||lD(e.parent)&&e.parent.name===e}var V5,U5,H5,K5,q5,J5,X5,$5,Y5,Q5,Z5,e7,t7,n7,r7,o7,i7,a7=b({"src/services/classifier2020.ts"(){Tge(),k5=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(k5||{}),P5=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(P5||{}),w5=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(w5||{}),O5=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function s7(e,t,n,r){const o=Xc(e)?new U5(e,t,n):80===e?new J5(80,t,n):81===e?new X5(81,t,n):new q5(e,t,n);return o.parent=r,o.flags=101441536&r.flags,o}function l7(e,t){if(!Xc(e.kind))return o;const n=[];if(Hu(e))return e.forEachChild((e=>{n.push(e)})),n;KX.setText((t||e.getSourceFile()).text);let r=e.pos;const i=t=>{c7(n,r,t.pos,e),n.push(t),r=t.end};return x(e.jsDoc,i),r=e.pos,e.forEachChild(i,(t=>{c7(n,r,t.pos,e),n.push(function(e,t){const n=s7(358,e.pos,e.end,t);n._children=[];let r=e.pos;for(const o of e)c7(n._children,r,o.pos,t),n._children.push(o),r=o.end;return c7(n._children,r,e.end,t),n}(t,e)),r=t.end})),c7(n,r,e.end,e),KX.setText(void 0),n}function c7(e,t,n,r){for(KX.resetTokenState(t);t<n;){const o=KX.scan(),i=KX.getTokenEnd();if(i<=n){if(80===o){if(uA(r))continue;In.fail(`Did not expect ${In.formatSyntaxKind(r.kind)} to have an Identifier in its trivia`)}e.push(s7(o,t,i,r))}if(t=i,1===o)break}}function d7(e){return Sc(e).some((e=>"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text))}function u7(e,t){if(!e)return o;let n=Bpe.getJsDocTagsFromDeclarations(e,t);if(t&&(0===n.length||e.some(d7))){const r=new Set;for(const o of e){const e=f7(t,o,(e=>{var n;if(!r.has(e))return r.add(e),177===o.kind||178===o.kind?e.getContextualJsDocTags(o,t):1===(null==(n=e.declarations)?void 0:n.length)?e.getJsDocTags():void 0}));e&&(n=[...e,...n])}}return n}function p7(e,t){if(!e)return o;let n=Bpe.getJsDocCommentsFromDeclarations(e,t);if(t&&(0===n.length||e.some(d7))){const r=new Set;for(const o of e){const e=f7(t,o,(e=>{if(!r.has(e))return r.add(e),177===o.kind||178===o.kind?e.getContextualDocumentationComment(o,t):e.getDocumentationComment(t)}));e&&(n=0===n.length?e.slice():e.concat(tZ(),n))}}return n}function f7(e,t,n){var r;const o=176===(null==(r=t.parent)?void 0:r.kind)?t.parent.parent:t.parent;if(!o)return;const i=Vb(t);return I(zy(o),(r=>{const o=e.getTypeAtLocation(r),a=i&&o.symbol?e.getTypeOfSymbol(o.symbol):o,s=e.getPropertyOfType(a,t.symbol.name);return s?n(s):void 0}))}function m7(e){let t=!0;for(const r in e)if(He(e,r)&&!_7(r)){t=!1;break}if(t)return e;const n={};for(const r in e)if(He(e,r)){n[_7(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=e[r]}return n}function _7(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function h7(e){return e?U(e,(e=>e.text)).join(""):""}function g7(){return{target:1,jsx:1}}function y7(){return Qle.getSupportedErrorCodes()}function v7(e,t,n){e.version=n,e.scriptSnapshot=t}function b7(e,t,n,r,o,i){const a=lP(e,rQ(t),n,o,i);return v7(a,t,r),a}function E7(e,t,n,r,o){if(r&&n!==e.version){let i;const a=0!==r.span.start?e.text.substr(0,r.span.start):"",s=Qs(r.span)!==e.text.length?e.text.substr(Qs(r.span)):"";if(0===r.newLength)i=a&&s?a+s:a||s;else{const e=t.getText(r.span.start,r.span.start+r.newLength);i=a&&s?a+e+s:a?a+e:e+s}const l=pP(e,i,r,o);return v7(l,t,n),l.nameTable=void 0,e!==l&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),l}const i={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return b7(e.fileName,t,i,n,!0,e.scriptKind)}function S7(e,t=a1(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),n){var r;let i;i=void 0===n?0:"boolean"===typeof n?n?2:0:n;const a=new e7(e);let s,l,c=0;const d=e.getCancellationToken?new n7(e.getCancellationToken()):t7,u=e.getCurrentDirectory();function p(t){e.log&&e.log(t)}ZS(null==(r=e.getLocalizedDiagnosticMessages)?void 0:r.bind(e));const f=qv(e),m=an(f),_=$1({useCaseSensitiveFileNames:()=>f,getCurrentDirectory:()=>u,getProgram:y,fileExists:lt(e,e.fileExists),readFile:lt(e,e.readFile),getDocumentPositionMapper:lt(e,e.getDocumentPositionMapper),getSourceFileLike:lt(e,e.getSourceFileLike),log:p});function h(e){const t=s.getSourceFile(e);if(!t){const t=new Error(`Could not find source file: '${e}'.`);throw t.ProgramFiles=s.getSourceFiles().map((e=>e.fileName)),t}return t}function g(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():function(){var n,r,o;if(In.assert(2!==i),e.getProjectVersion){const t=e.getProjectVersion();if(t){if(l===t&&!(null==(n=e.hasChangedAutomaticTypeDirectiveNames)?void 0:n.call(e)))return;l=t}}const a=e.getTypeRootsVersion?e.getTypeRootsVersion():0;c!==a&&(p("TypeRoots version has changed; provide new program"),s=void 0,c=a);const h=e.getScriptFileNames().slice(),g=e.getCompilationSettings()||{target:1,jsx:1},y=e.hasInvalidatedResolutions||Et,v=lt(e,e.hasInvalidatedLibResolutions)||Et,b=lt(e,e.hasChangedAutomaticTypeDirectiveNames),E=null==(r=e.getProjectReferences)?void 0:r.call(e);let S,T={getSourceFile:k,getSourceFileByPath:P,getCancellationToken:()=>d,getCanonicalFileName:m,useCaseSensitiveFileNames:()=>f,getNewLine:()=>VE(g),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:bt,getCurrentDirectory:()=>u,fileExists:t=>e.fileExists(t),readFile:t=>e.readFile&&e.readFile(t),getSymlinkCache:lt(e,e.getSymlinkCache),realpath:lt(e,e.realpath),directoryExists:t=>jE(t,e),getDirectories:t=>e.getDirectories?e.getDirectories(t):[],readDirectory:(t,n,r,o,i)=>(In.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(t,n,r,o,i)),onReleaseOldSourceFile:L,onReleaseParsedCommandLine:M,hasInvalidatedResolutions:y,hasInvalidatedLibResolutions:v,hasChangedAutomaticTypeDirectiveNames:b,trace:lt(e,e.trace),resolveModuleNames:lt(e,e.resolveModuleNames),getModuleResolutionCache:lt(e,e.getModuleResolutionCache),createHash:lt(e,e.createHash),resolveTypeReferenceDirectives:lt(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:lt(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:lt(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:lt(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:lt(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:D,jsDocParsingMode:e.jsDocParsingMode};const x=T.getSourceFile,{getSourceFileWithCache:A}=NU(T,(e=>ga(e,u,m)),((...e)=>x.call(T,...e)));T.getSourceFile=A,null==(o=e.setCompilerHost)||o.call(e,T);const I={useCaseSensitiveFileNames:f,fileExists:e=>T.fileExists(e),readFile:e=>T.readFile(e),directoryExists:e=>T.directoryExists(e),getDirectories:e=>T.getDirectories(e),realpath:T.realpath,readDirectory:(...e)=>T.readDirectory(...e),trace:T.trace,getCurrentDirectory:T.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:bt},R=t.getKeyForCompilationSettings(g);let C=new Set;if(iH(s,h,g,((t,n)=>e.getScriptVersion(n)),(e=>T.fileExists(e)),y,v,b,D,E))return T=void 0,S=void 0,void(C=void 0);return s=cH({rootNames:h,options:g,host:T,oldProgram:s,projectReferences:E}),T=void 0,S=void 0,C=void 0,_.clearCache(),void s.getTypeChecker();function D(t){const n=ga(t,u,m),r=null==S?void 0:S.get(n);if(void 0!==r)return r||void 0;const o=e.getParsedCommandLine?e.getParsedCommandLine(t):N(t);return(S||(S=new Map)).set(n,o||!1),o}function N(e){const t=k(e,100);if(t)return t.path=ga(e,u,m),t.resolvedPath=t.path,t.originalFileName=t.fileName,rO(t,I,ma(ra(e),u),void 0,ma(e,u))}function M(t,n,r){var o;e.getParsedCommandLine?null==(o=e.onReleaseParsedCommandLine)||o.call(e,t,n,r):n&&L(n.sourceFile,r)}function L(e,n){const r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind,e.impliedNodeFormat)}function k(e,t,n,r){return P(e,ga(e,u,m),t,n,r)}function P(n,r,o,i,a){In.assert(T,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const l=e.getScriptSnapshot(n);if(!l)return;const c=lZ(n,e),d=e.getScriptVersion(n);if(!a){const i=s&&s.getSourceFileByPath(r);if(i){if(c===i.scriptKind||C.has(i.resolvedPath))return t.updateDocumentWithKey(n,r,e,R,l,d,c,o);t.releaseDocumentWithKey(i.resolvedPath,t.getKeyForCompilationSettings(s.getCompilerOptions()),i.scriptKind,i.impliedNodeFormat),C.add(i.resolvedPath)}}return t.acquireDocumentWithKey(n,r,e,R,l,d,c,o)}}()}function y(){if(2!==i)return g(),s;In.assert(void 0===s)}function v(){if(s){const e=t.getKeyForCompilationSettings(s.getCompilerOptions());x(s.getSourceFiles(),(n=>t.releaseDocumentWithKey(n.resolvedPath,e,n.scriptKind,n.impliedNodeFormat))),s=void 0}}function b(e,t,n,r){g();const o=n&&n.use===Hue.FindReferencesUse.Rename?s.getSourceFiles().filter((e=>!s.isSourceFileDefaultLibrary(e))):s.getSourceFiles();return Hue.findReferenceOrRenameEntries(s,d,o,e,t,n,r)}const E=new Map(Object.entries({19:20,21:22,23:24,32:30}));function S(t){return In.assertEqual(t.type,"install package"),e.installPackage?e.installPackage({fileName:(n=t.file,ga(n,u,m)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`");var n}function T(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function A(e,t,n){const r=a.getCurrentSourceFile(e),o=[],{lineStarts:i,firstLine:s,lastLine:l}=T(r,t);let c=n||!1,d=Number.MAX_VALUE;const u=new Map,p=new RegExp(/\S/),f=SY(r,i[s]),m=f?"{/*":"//";for(let a=s;a<=l;a++){const e=r.text.substring(i[a],r.getLineEndOfPosition(i[a])),t=p.exec(e);t&&(d=Math.min(d,t.index),u.set(a.toString(),t.index),e.substr(t.index,m.length)!==m&&(c=void 0===n||n))}for(let a=s;a<=l;a++){if(s!==l&&i[a]===t.end)continue;const n=u.get(a.toString());void 0!==n&&(f?o.push(...I(e,{pos:i[a]+d,end:r.getLineEndOfPosition(i[a])},c,f)):c?o.push({newText:m,span:{length:0,start:i[a]+d}}):r.text.substr(i[a]+n,m.length)===m&&o.push({newText:"",span:{length:m.length,start:i[a]+n}}))}return o}function I(e,t,n,r){var o;const i=a.getCurrentSourceFile(e),s=[],{text:l}=i;let c=!1,d=n||!1;const u=[];let{pos:p}=t;const f=void 0!==r?r:SY(i,p),m=f?"{/*":"/*",_=f?"*/}":"*/",h=f?"\\{\\/\\*":"\\/\\*",g=f?"\\*\\/\\}":"\\*\\/";for(;p<=t.end;){const e=CY(i,p+(l.substr(p,m.length)===m?m.length:0));if(e)f&&(e.pos--,e.end++),u.push(e.pos),3===e.kind&&u.push(e.end),c=!0,p=e.end+1;else{const e=l.substring(p,t.end).search(`(${h})|(${g})`);d=void 0!==n?n:d||!kQ(l,p,-1===e?t.end:p+e),p=-1===e?t.end+1:p+e+_.length}}if(d||!c){2!==(null==(o=CY(i,t.pos))?void 0:o.kind)&&me(u,t.pos,Ft),me(u,t.end,Ft);const e=u[0];l.substr(e,m.length)!==m&&s.push({newText:m,span:{length:0,start:e}});for(let t=1;t<u.length-1;t++)l.substr(u[t]-_.length,_.length)!==_&&s.push({newText:_,span:{length:0,start:u[t]}}),l.substr(u[t],m.length)!==m&&s.push({newText:m,span:{length:0,start:u[t]}});s.length%2!==0&&s.push({newText:_,span:{length:0,start:u[u.length-1]}})}else for(const a of u){const e=a-_.length>0?a-_.length:0,t=l.substr(e,_.length)===_?_.length:0;s.push({newText:"",span:{length:m.length,start:a-t}})}return s}function R({openingElement:e,closingElement:t,parent:n}){return!SP(e.tagName,t.tagName)||ON(n)&&SP(e.tagName,n.openingElement.tagName)&&R(n)}function C({closingFragment:e,parent:t}){return!!(262144&e.flags)||BN(t)&&C(t)}function D(t,n,r,o,i,a){const[s,l]="number"===typeof n?[n,void 0]:[n.pos,n.end];return{file:t,startPosition:s,endPosition:l,program:y(),host:e,formatContext:vge.getFormatContext(o,e),cancellationToken:d,preferences:r,triggerReason:i,kind:a}}E.forEach(((e,t)=>E.set(e.toString(),Number(t))));const N={dispose:function(){v(),e=void 0},cleanupSemanticCache:v,getSyntacticDiagnostics:function(e){return g(),s.getSyntacticDiagnostics(h(e),d).slice()},getSemanticDiagnostics:function(e){g();const t=h(e),n=s.getSemanticDiagnostics(t,d);if(!Qp(s.getCompilerOptions()))return n.slice();const r=s.getDeclarationDiagnostics(t,d);return[...n,...r]},getSuggestionDiagnostics:function(e){return g(),t2(h(e),s,d)},getCompilerOptionsDiagnostics:function(){return g(),[...s.getOptionsDiagnostics(d),...s.getGlobalDiagnostics(d)]},getSyntacticClassifications:function(e,t){return e1(d,a.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,n){return g(),"2020"===(n||"original")?W5(s,d,h(e),t):J0(s.getTypeChecker(),d,h(e),s.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(e,t){return t1(d,a.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,n){return g(),"original"===(n||"original")?$0(s.getTypeChecker(),d,h(e),s.getClassifiableNames(),t):z5(s,d,h(e),t)},getCompletionsAtPosition:function(t,n,r=xX,o){const i={...r,includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return g(),tue.getCompletionsAtPosition(e,s,p,h(t),n,i,r.triggerCharacter,r.triggerKind,d,o&&vge.getFormatContext(o,e),r.includeSymbol)},getCompletionEntryDetails:function(t,n,r,o,i,a=xX,l){return g(),tue.getCompletionEntryDetails(s,p,h(t),n,{name:r,source:i,data:l},e,o&&vge.getFormatContext(o,e),a,d)},getCompletionEntrySymbol:function(t,n,r,o,i=xX){return g(),tue.getCompletionEntrySymbol(s,p,h(t),n,{name:r,source:o},e,i)},getSignatureHelpItems:function(e,t,{triggerReason:n}=xX){g();const r=h(e);return ume.getSignatureHelpItems(s,r,t,n,d)},getQuickInfoAtPosition:function(e,t){g();const n=h(e),r=aY(n,t);if(r===n)return;const o=s.getTypeChecker(),i=function(e){if(uD(e.parent)&&e.pos===e.parent.pos)return e.parent.expression;if(GC(e.parent)&&e.pos===e.parent.pos)return e.parent;if(k_(e.parent)&&e.parent.name===e)return e.parent;if(qN(e.parent))return e.parent;return e}(r),a=function(e,t){const n=x7(e);if(n){const e=t.getContextualType(n.parent),r=e&&A7(n,t,e,!1);if(r&&1===r.length)return Pe(r)}return t.getSymbolAtLocation(e)}(i,o);if(!a||o.isUnknownSymbol(a)){const e=function(e,t,n){switch(t.kind){case 80:return!E$(t)&&!S$(t)&&!Bc(t.parent);case 211:case 166:return!CY(e,n);case 110:case 197:case 108:case 202:return!0;case 236:return k_(t);default:return!1}}(n,i,t)?o.getTypeAtLocation(i):void 0;return e&&{kind:"",kindModifiers:"",textSpan:HY(i,n),displayParts:o.runWithCancellationToken(d,(t=>rZ(t,e,N$(i)))),documentation:e.symbol?e.symbol.getDocumentationComment(o):void 0,tags:e.symbol?e.symbol.getJsDocTags(o):void 0}}const{symbolKind:l,displayParts:c,documentation:u,tags:p}=o.runWithCancellationToken(d,(e=>wme.getSymbolDisplayPartsDocumentationAndSymbolKind(e,a,n,N$(i),i)));return{kind:l,kindModifiers:wme.getSymbolModifiers(o,a),textSpan:HY(i,n),displayParts:c,documentation:u,tags:p}},getDefinitionAtPosition:function(e,t,n,r){return g(),upe.getDefinitionAtPosition(s,h(e),t,n,r)},getDefinitionAndBoundSpan:function(e,t){return g(),upe.getDefinitionAndBoundSpan(s,h(e),t)},getImplementationAtPosition:function(e,t){return g(),Hue.getImplementationsAtPosition(s,d,s.getSourceFiles(),h(e),t)},getTypeDefinitionAtPosition:function(e,t){return g(),upe.getTypeDefinitionAtPosition(s.getTypeChecker(),h(e),t)},getReferencesAtPosition:function(e,t){return g(),b(aY(h(e),t),t,{use:Hue.FindReferencesUse.References},Hue.toReferenceEntry)},findReferences:function(e,t){return g(),Hue.findReferencedSymbols(s,d,s.getSourceFiles(),h(e),t)},getFileReferences:function(e){return g(),Hue.Core.getReferencesForFileName(e,s,s.getSourceFiles()).map(Hue.toReferenceEntry)},getDocumentHighlights:function(e,t,n){const r=_a(e);In.assert(n.some((e=>_a(e)===r))),g();const o=Z(n,(e=>s.getSourceFile(e))),i=h(e);return n1.getDocumentHighlights(s,d,i,t,o)},getNameOrDottedNameSpan:function(e,t,n){const r=a.getCurrentSourceFile(e),o=aY(r,t);if(o===r)return;switch(o.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let i=o;for(;;)if(x$(i)||T$(i))i=i.parent;else{if(!I$(i))break;if(267!==i.parent.parent.kind||i.parent.parent.body!==i.parent)break;i=i.parent.parent.name}return ul(i.getStart(),o.getEnd())},getBreakpointStatementAtPosition:function(e,t){const n=a.getCurrentSourceFile(e);return L7.spanInSourceFileAtLocation(n,t)},getNavigateToItems:function(e,t,n,r=!1,o=!1){return g(),v2(n?[h(n)]:s.getSourceFiles(),s.getTypeChecker(),d,e,t,r,o)},getRenameInfo:function(e,t,n){return g(),Ffe.getRenameInfo(s,h(e),t,n||{})},getSmartSelectionRange:function(e,t){return xme.getSmartSelectionRange(t,a.getCurrentSourceFile(e))},findRenameLocations:function(e,t,n,r,o){g();const i=h(e),a=iY(aY(i,t));if(Ffe.nodeIsEligibleForRename(a)){if(nC(a)&&(WN(a.parent)||zN(a.parent))&&jv(a.escapedText)){const{openingElement:e,closingElement:t}=a.parent.parent;return[e,t].map((e=>{const t=HY(e.tagName,i);return{fileName:i.fileName,textSpan:t,...Hue.toContextSpan(t,i,e.parent)}}))}{const e=gQ(i,o??xX),s="boolean"===typeof o?o:null==o?void 0:o.providePrefixAndSuffixTextForRename;return b(a,t,{findInStrings:n,findInComments:r,providePrefixAndSuffixTextForRename:s,use:Hue.FindReferencesUse.Rename},((t,n,r)=>Hue.toRenameLocation(t,n,r,s||!1,e)))}}},getNavigationBarItems:function(e){return j2(a.getCurrentSourceFile(e),d)},getNavigationTree:function(e){return V2(a.getCurrentSourceFile(e),d)},getOutliningSpans:function(e){const t=a.getCurrentSourceFile(e);return Cfe.collectElements(t,d)},getTodoComments:function(e,t){g();const n=h(e);d.throwIfCancellationRequested();const r=n.text,o=[];if(t.length>0&&!n.fileName.includes("/node_modules/")){const e=function(){const e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+U(t,(e=>"("+(e.text.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+")"))).join("|")+")";return new RegExp(e+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}();let a;for(;a=e.exec(r);){d.throwIfCancellationRequested();const e=3;In.assert(a.length===t.length+e);const s=a[1],l=a.index+s.length;if(!CY(n,l))continue;let c;for(let n=0;n<t.length;n++)a[n+e]&&(c=t[n]);if(void 0===c)return In.fail();if((i=r.charCodeAt(l+c.text.length))>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)continue;const u=a[2];o.push({descriptor:c,message:u,position:l})}}var i;return o},getBraceMatchingAtPosition:function(e,t){const n=a.getCurrentSourceFile(e),r=sY(n,t),i=r.getStart(n)===t?E.get(r.kind.toString()):void 0,s=i&&J$(r.parent,i,n);return s?[HY(r,n),HY(s,n)].sort(((e,t)=>e.start-t.start)):o},getIndentationAtPosition:function(e,t,n){let r=nr();const o=m7(n),i=a.getCurrentSourceFile(e);p("getIndentationAtPosition: getCurrentSourceFile: "+(nr()-r)),r=nr();const s=vge.SmartIndenter.getIndentation(t,i,o);return p("getIndentationAtPosition: computeIndentation : "+(nr()-r)),s},getFormattingEditsForRange:function(t,n,r,o){const i=a.getCurrentSourceFile(t);return vge.formatSelection(n,r,i,vge.getFormatContext(m7(o),e))},getFormattingEditsForDocument:function(t,n){return vge.formatDocument(a.getCurrentSourceFile(t),vge.getFormatContext(m7(n),e))},getFormattingEditsAfterKeystroke:function(t,n,r,o){const i=a.getCurrentSourceFile(t),s=vge.getFormatContext(m7(o),e);if(!CY(i,n))switch(r){case"{":return vge.formatOnOpeningCurly(n,i,s);case"}":return vge.formatOnClosingCurly(n,i,s);case";":return vge.formatOnSemicolon(n,i,s);case"\n":return vge.formatOnEnter(n,i,s)}return[]},getDocCommentTemplateAtPosition:function(t,n,r,o){const i=o?vge.getFormatContext(o,e).options:void 0;return Bpe.getDocCommentTemplateAtPosition(eZ(e,i),a.getCurrentSourceFile(t),n,r)},isValidBraceCompletionAtPosition:function(e,t,n){if(60===n)return!1;const r=a.getCurrentSourceFile(e);if(gY(r,t))return!1;if(yY(r,t))return 123===n;if(bY(r,t))return!1;switch(n){case 39:case 34:case 96:return!CY(r,t)}return!0},getJsxClosingTagAtPosition:function(e,t){const n=a.getCurrentSourceFile(e),r=fY(t,n);if(!r)return;const o=32===r.kind&&WN(r.parent)?r.parent.parent:BR(r)&&ON(r.parent)?r.parent:void 0;if(o&&R(o))return{newText:`</${o.openingElement.tagName.getText(n)}>`};const i=32===r.kind&&GN(r.parent)?r.parent.parent:BR(r)&&BN(r.parent)?r.parent:void 0;return i&&C(i)?{newText:"</>"}:void 0},getLinkedEditingRangeAtPosition:function(e,t){const n=a.getCurrentSourceFile(e),r=fY(t,n);if(!r||312===r.parent.kind)return;const o="[a-zA-Z0-9:\\-\\._$]*";if(BN(r.parent.parent)){const e=r.parent.parent.openingFragment,i=r.parent.parent.closingFragment;if($f(e)||$f(i))return;const a=e.getStart(n)+1,s=i.getStart(n)+2;if(t!==a&&t!==s)return;return{ranges:[{start:a,length:0},{start:s,length:0}],wordPattern:o}}{const e=Cl(r.parent,(e=>!(!WN(e)&&!zN(e))));if(!e)return;In.assert(WN(e)||zN(e),"tag should be opening or closing element");const i=e.parent.openingElement,a=e.parent.closingElement,s=i.tagName.getStart(n),l=i.tagName.end,c=a.tagName.getStart(n),d=a.tagName.end;if(s===i.getStart(n)||c===a.getStart(n)||l===i.getEnd()||d===a.getEnd())return;if(!(s<=t&&t<=l||c<=t&&t<=d))return;if(i.tagName.getText(n)!==a.tagName.getText(n))return;return{ranges:[{start:s,length:l-s},{start:c,length:d-c}],wordPattern:o}}},getSpanOfEnclosingComment:function(e,t,n){const r=a.getCurrentSourceFile(e),o=vge.getRangeOfEnclosingComment(r,t);return!o||n&&3!==o.kind?void 0:JY(o)},getCodeFixesAtPosition:function(t,n,r,o,i,a=xX){g();const l=h(t),c=ul(n,r),u=vge.getFormatContext(i,e);return J(pe(o,kt,Ft),(t=>(d.throwIfCancellationRequested(),Qle.getFixes({errorCode:t,sourceFile:l,span:c,program:s,host:e,cancellationToken:d,formatContext:u,preferences:a}))))},getCombinedCodeFix:function(t,n,r,o=xX){g(),In.assert("file"===t.type);const i=h(t.fileName),a=vge.getFormatContext(r,e);return Qle.getAllFixes({fixId:n,sourceFile:i,program:s,host:e,cancellationToken:d,formatContext:a,preferences:o})},applyCodeActionCommand:function(e,t){const n="string"===typeof e?t:e;return mt(n)?Promise.all(n.map((e=>S(e)))):S(n)},organizeImports:function(t,n,r=xX){g(),In.assert("file"===t.type);const o=h(t.fileName),i=vge.getFormatContext(n,e),a=t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":"All");return gfe.organizeImports(o,i,e,s,r,a)},getEditsForFileRename:function(t,n,r,o=xX){return u1(y(),t,n,e,vge.getFormatContext(r,e),o,_)},getEmitOutput:function(t,n,r){g();const o=h(t),i=e.getCustomTransformers&&e.getCustomTransformers();return EH(s,o,!!n,d,i,r)},getNonBoundSourceFile:function(e){return a.getCurrentSourceFile(e)},getProgram:y,getCurrentProgram:()=>s,getAutoImportProvider:function(){var t;return null==(t=e.getPackageJsonAutoImportProvider)?void 0:t.call(e)},updateIsDefinitionOfReferencedSymbols:function(t,n){const r=s.getTypeChecker(),o=function(){for(const o of t)for(const t of o.references){if(n.has(t)){const e=i(t);return In.assertIsDefined(e),r.getSymbolAtLocation(e)}const o=wQ(t,_,lt(e,e.fileExists));if(o&&n.has(o)){const e=i(o);if(e)return r.getSymbolAtLocation(e)}}return}();if(!o)return!1;for(const a of t)for(const t of a.references){const r=i(t);if(In.assertIsDefined(r),n.has(t)||Hue.isDeclarationOfSymbol(r,o)){n.add(t),t.isDefinition=!0;const r=wQ(t,_,lt(e,e.fileExists));r&&n.add(r)}else t.isDefinition=!1}return!0;function i(e){const t=s.getSourceFile(e.fileName);if(!t)return;const n=aY(t,e.textSpan.start);return Hue.Core.getAdjustedNode(n,{use:Hue.FindReferencesUse.References})}},getApplicableRefactors:function(e,t,n=xX,r,o,i){g();const a=h(e);return L5.getApplicableRefactors(D(a,t,n,xX,r,o),i)},getEditsForRefactor:function(e,t,n,r,o,i=xX,a){g();const s=h(e);return L5.getEditsForRefactor(D(s,n,i,t),r,o,a)},getMoveToRefactoringFileSuggestions:function(t,n,r=xX){g();const o=h(t),i=In.checkDefined(s.getSourceFiles()),a=yx(t),l=Z6(D(o,n,r,xX)),c=e8(null==l?void 0:l.all),d=Z(i,(e=>{const t=yx(e.fileName);return!(null==s?void 0:s.isSourceFileFromExternalLibrary(o))&&!(o===h(e.fileName)||".ts"===a&&".d.ts"===t||".d.ts"===a&&dn(oa(e.fileName),"lib.")&&".d.ts"===t)&&(a===t||(".tsx"===a&&".ts"===t||".jsx"===a&&".js"===t)&&!c)?e.fileName:void 0}));return{newFileName:Q6(o,s,e,l),files:d}},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:_.toLineColumnOffset(e,t)},getSourceMapper:()=>_,clearSourceMapperCache:()=>_.clearCache(),prepareCallHierarchy:function(e,t){g();const n=Z7.resolveCallHierarchyDeclaration(s,aY(h(e),t));return n&&d0(n,(e=>Z7.createCallHierarchyItem(s,e)))},provideCallHierarchyIncomingCalls:function(e,t){g();const n=h(e),r=u0(Z7.resolveCallHierarchyDeclaration(s,0===t?n:aY(n,t)));return r?Z7.getIncomingCalls(s,r,d):[]},provideCallHierarchyOutgoingCalls:function(e,t){g();const n=h(e),r=u0(Z7.resolveCallHierarchyDeclaration(s,0===t?n:aY(n,t)));return r?Z7.getOutgoingCalls(s,r):[]},toggleLineComment:A,toggleMultilineComment:I,commentSelection:function(e,t){const n=a.getCurrentSourceFile(e),{firstLine:r,lastLine:o}=T(n,t);return r===o&&t.pos!==t.end?I(e,t,!0):A(e,t,!0)},uncommentSelection:function(e,t){const n=a.getCurrentSourceFile(e),r=[],{pos:o}=t;let{end:i}=t;o===i&&(i+=SY(n,o)?2:1);for(let a=o;a<=i;a++){const t=CY(n,a);if(t){switch(t.kind){case 2:r.push(...A(e,{end:t.end,pos:t.pos+1},!1));break;case 3:r.push(...I(e,{end:t.end,pos:t.pos+1},!1))}a=t.end+1}}return r},provideInlayHints:function(t,n,r=xX){g();const o=h(t);return ype.provideInlayHints(function(t,n,r){return{file:t,program:y(),host:e,span:n,preferences:r,cancellationToken:d}}(o,n,r))},getSupportedCodeFixes:y7};switch(i){case 0:break;case 1:o7.forEach((e=>N[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:i7.forEach((e=>N[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)}));break;default:In.assertNever(i)}return N}function T7(e){return e.nameTable||function(e){const t=e.nameTable=new Map;e.forEachChild((function e(n){if(nC(n)&&!S$(n)&&n.escapedText||tv(n)&&function(e){return Iy(e)||283===e.parent.kind||function(e){return e&&e.parent&&212===e.parent.kind&&e.parent.argumentExpression===e}(e)||Cy(e)}(n)){const e=lv(n);t.set(e,void 0===t.get(e)?n.pos:-1)}else if(rC(n)){const e=n.escapedText;t.set(e,void 0===t.get(e)?n.pos:-1)}if(oP(n,e),Xu(n))for(const t of n.jsDoc)oP(t,e)}))}(e),e.nameTable}function x7(e){const t=function(e){switch(e.kind){case 11:case 15:case 9:if(167===e.parent.kind)return Zu(e.parent.parent)?e.parent.parent:void 0;case 80:return!Zu(e.parent)||210!==e.parent.parent.kind&&292!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}return}(e);return t&&(sD(t.parent)||UN(t.parent))?t:void 0}function A7(e,t,n,r){const i=aQ(e.name);if(!i)return o;if(!n.isUnion()){const e=n.getProperty(i);return e?[e]:o}const a=sD(e.parent)||UN(e.parent)?G(n.types,(n=>!t.isTypeInvalidDueToUnionDiscriminant(n,e.parent))):n.types,s=Z(a,(e=>e.getProperty(i)));if(r&&(0===s.length||s.length===n.types.length)){const e=n.getProperty(i);if(e)return[e]}return a.length||s.length?pe(s,kt):Z(n.types,(e=>e.getProperty(i)))}function I7(e){if(hi)return ua(ra(_a(hi.getExecutingFilePath())),Ys(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var R7=b({"src/services/services.ts"(){Tge(),G2(),N4(),F5(),r1(),a7(),V5="0.8",U5=class{constructor(e,t,n){this.pos=t,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){In.assert(!_x(this.pos)&&!_x(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Yf(this)}getStart(e,t){return this.assertHasRealPosition(),vm(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=l7(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const n=L(t,(e=>e.kind<316||e.kind>357));return n.kind<166?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=Oe(this.getChildren(e));if(t)return t.kind<166?t:t.getLastToken(e)}forEachChild(e,t){return oP(this,e,t)}},H5=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Yf(this)}getStart(e,t){return vm(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return 1===this.kind&&this.jsDoc||o}getFirstToken(){}getLastToken(){}forEachChild(){}},K5=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return wl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=o,!this.declarations&&Lf(this)&&this.links.target&&Lf(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=p7([t],e)}else this.documentationComment=p7(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Ju(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=p7(G(this.declarations,Ju),t)),T(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(qu(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=p7(G(this.declarations,qu),t)),T(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return void 0===this.tags&&(this.tags=u7(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Ju(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=u7(G(this.declarations,Ju),t)),T(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(qu(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=u7(G(this.declarations,qu),t)),T(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},q5=class extends H5{constructor(e,t,n){super(t,n),this.kind=e}},(J5=class extends H5{constructor(e,t,n){super(t,n),this.kind=80}get text(){return kl(this)}}).prototype.kind=80,(X5=class extends H5{constructor(e,t,n){super(t,n),this.kind=81}get text(){return kl(this)}}).prototype.kind=81,$5=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(1048576&this.flags)}isIntersection(){return!!(2097152&this.flags)}isUnionOrIntersection(){return!!(3145728&this.flags)}isLiteral(){return!!(2432&this.flags)}isStringLiteral(){return!!(128&this.flags)}isNumberLiteral(){return!!(256&this.flags)}isTypeParameter(){return!!(262144&this.flags)}isClassOrInterface(){return!!(3&RS(this))}isClass(){return!!(1&RS(this))}isIndexType(){return!!(4194304&this.flags)}get typeArguments(){if(4&RS(this))return this.checker.getTypeArguments(this)}},Y5=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&oA(t.type)){const e=t.type.getConstraint();if(e)return this.checker.getIndexType(e)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=p7(yn(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=u7(yn(this.declaration),this.checker))}},Q5=class extends U5{constructor(e,t,n){super(e,t,n),this.kind=312}update(e,t){return pP(this,e,t)}getLineAndCharacterOfPosition(e){return _s(this,e)}getLineStarts(){return us(this)}getPositionOfLineAndCharacter(e,t,n){return ds(us(this),e,t,this.text,n)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts();let r;t+1>=n.length&&(r=this.getEnd()),r||(r=n[t+1]-1);const o=this.getFullText();return"\n"===o[r]&&"\r"===o[r-1]?r-1:r}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=ct();return this.forEachChild((function r(o){switch(o.kind){case 262:case 218:case 174:case 173:const i=o,a=n(i);if(a){const t=function(t){let n=e.get(t);n||e.set(t,n=[]);return n}(a),n=Oe(t);n&&i.parent===n.parent&&i.symbol===n.symbol?i.body&&!n.body&&(t[t.length-1]=i):t.push(i)}oP(o,r);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(o),oP(o,r);break;case 169:if(!Gb(o,31))break;case 260:case 208:{const e=o;if(Vd(e.name)){oP(e.name,r);break}e.initializer&&r(e.initializer)}case 306:case 172:case 171:t(o);break;case 278:const s=o;s.exportClause&&(NN(s.exportClause)?x(s.exportClause.elements,r):r(s.exportClause.name));break;case 272:const l=o.importClause;l&&(l.name&&t(l.name),l.namedBindings&&(274===l.namedBindings.kind?t(l.namedBindings):x(l.namedBindings.elements,r)));break;case 226:0!==Eg(o)&&t(o);default:oP(o,r)}})),e;function t(t){const r=n(t);r&&e.add(r,t)}function n(e){const t=Gl(e);return t&&(yC(t)&&lD(t.expression)?t.expression.name.text:Ed(t)?aQ(t):void 0)}}},Z5=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}getLineAndCharacterOfPosition(e){return _s(this,e)}},e7=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,r,o,i,a,s,l;const c=this.host.getScriptSnapshot(e);if(!c)throw new Error("Could not find file: '"+e+"'.");const d=lZ(e,this.host),u=this.host.getScriptVersion(e);let p;if(this.currentFileName!==e){p=b7(e,c,{languageVersion:99,impliedNodeFormat:sH(ga(e,this.host.getCurrentDirectory(),(null==(r=null==(n=(t=this.host).getCompilerHost)?void 0:n.call(t))?void 0:r.getCanonicalFileName)||Jv(this.host)),null==(l=null==(s=null==(a=null==(i=(o=this.host).getCompilerHost)?void 0:i.call(o))?void 0:a.getModuleResolutionCache)?void 0:s.call(a))?void 0:l.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:vT(this.host.getCompilationSettings()),jsDocParsingMode:0},u,!0,d)}else if(this.currentFileVersion!==u){const e=c.getChangeRange(this.currentFileScriptSnapshot);p=E7(this.currentSourceFile,c,u,e)}return p&&(this.currentFileVersion=u,this.currentFileName=e,this.currentFileScriptSnapshot=c,this.currentSourceFile=p),this.currentSourceFile}},t7={isCancellationRequested:Et,throwIfCancellationRequested:bt},n7=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=kr)||e.instant(kr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Kr}},r7=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=nr();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=kr)||e.instant(kr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Kr}},o7=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],i7=[...o7,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],$S({getNodeConstructor:()=>U5,getTokenConstructor:()=>q5,getIdentifierConstructor:()=>J5,getPrivateIdentifierConstructor:()=>X5,getSourceFileConstructor:()=>Q5,getSymbolConstructor:()=>K5,getTypeConstructor:()=>$5,getSignatureConstructor:()=>Y5,getSourceMapSourceConstructor:()=>Z5})}});function C7(e,t,n){const r=[];n=g2(n,r);const o=mt(e)?e:[e],i=pV(void 0,void 0,UA,n,o,t,!0);return i.diagnostics=ce(i.diagnostics,r),i}var D7=b({"src/services/transform.ts"(){Tge()}});function N7(e,t){if(e.isDeclarationFile)return;let n=lY(e,t);const r=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>r){const t=fY(n.pos,e);if(!t||e.getLineAndCharacterOfPosition(t.getEnd()).line!==r)return;n=t}if(!(33554432&n.flags))return c(n);function o(t,n){const r=bk(t)?k(t.modifiers,EC):void 0;return ul(r?Ts(e.text,r.end):t.getStart(e),(n||t).getEnd())}function i(t,n){return o(t,pY(n,n.parent,e))}function a(t,n){return t&&r===e.getLineAndCharacterOfPosition(t.getStart(e)).line?c(t):c(n)}function s(t){return c(fY(t.pos,e))}function l(t){return c(pY(t,t.parent,e))}function c(t){if(t){const{parent:n}=t;switch(t.kind){case 243:return r(t.declarationList.declarations[0]);case 260:case 172:case 171:return r(t);case 169:return function e(t){if(Vd(t.name))return f(t.name);if(function(e){return!!e.initializer||void 0!==e.dotDotDotToken||Gb(e,3)}(t))return o(t);{const n=t.parent,r=n.parameters.indexOf(t);return In.assert(-1!==r),0!==r?e(n.parameters[r-1]):c(n.body)}}(t);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return function(e){if(!e.body)return;if(d(e))return o(e);return c(e.body)}(t);case 241:if(rh(t))return function(e){const t=e.statements.length?e.statements[0]:e.getLastToken();if(d(e.parent))return a(e.parent,t);return c(t)}(t);case 268:return u(t);case 299:return u(t.block);case 244:return o(t.expression);case 253:return o(t.getChildAt(0),t.expression);case 247:return i(t,t.expression);case 246:return c(t.statement);case 259:return o(t.getChildAt(0));case 245:return i(t,t.expression);case 256:return c(t.statement);case 252:case 251:return o(t.getChildAt(0),t.label);case 248:return function(e){if(e.initializer)return p(e);if(e.condition)return o(e.condition);if(e.incrementor)return o(e.incrementor)}(t);case 249:return i(t,t.expression);case 250:return p(t);case 255:return i(t,t.expression);case 296:case 297:return c(t.statements[0]);case 258:return u(t.tryBlock);case 257:case 277:return o(t,t.expression);case 271:return o(t,t.moduleReference);case 272:case 278:return o(t,t.moduleSpecifier);case 267:if(1!==zW(t))return;case 263:case 266:case 306:case 208:return o(t);case 254:return c(t.statement);case 170:return function(t,n,r){if(t){const o=t.indexOf(n);if(o>=0){let n=o,i=o+1;for(;n>0&&r(t[n-1]);)n--;for(;i<t.length&&r(t[i]);)i++;return ul(Ts(e.text,t[n].pos),t[i-1].end)}}return o(n)}(n.modifiers,t,EC);case 206:case 207:return f(t);case 264:case 265:return;case 27:case 1:return a(fY(t.pos,e));case 28:return s(t);case 19:return function(t){switch(t.parent.kind){case 266:const n=t.parent;return a(fY(t.pos,e,t.parent),n.members.length?n.members[0]:n.getLastToken(e));case 263:const r=t.parent;return a(fY(t.pos,e,t.parent),r.members.length?r.members[0]:r.getLastToken(e));case 269:return a(t.parent.parent,t.parent.clauses[0])}return c(t.parent)}(t);case 20:return function(e){switch(e.parent.kind){case 268:if(1!==zW(e.parent.parent))return;case 266:case 263:return o(e);case 241:if(rh(e.parent))return o(e);case 299:return c(Oe(e.parent.statements));case 269:const t=Oe(e.parent.clauses);return t?c(Oe(t.statements)):void 0;case 206:const n=e.parent;return c(Oe(n.elements)||n);default:if(BY(e.parent)){const t=e.parent;return o(Oe(t.properties)||t)}return c(e.parent)}}(t);case 24:return function(e){if(207===e.parent.kind){const t=e.parent;return o(Oe(t.elements)||t)}if(BY(e.parent)){const t=e.parent;return o(Oe(t.elements)||t)}return c(e.parent)}(t);case 21:return function(e){if(246===e.parent.kind||213===e.parent.kind||214===e.parent.kind)return s(e);if(217===e.parent.kind)return l(e);return c(e.parent)}(t);case 22:return function(e){switch(e.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return s(e);default:return c(e.parent)}}(t);case 59:return function(e){if(Td(e.parent)||303===e.parent.kind||169===e.parent.kind)return s(e);return c(e.parent)}(t);case 32:case 30:return function(e){if(216===e.parent.kind)return l(e);return c(e.parent)}(t);case 117:return function(e){if(246===e.parent.kind)return i(e,e.parent.expression);return c(e.parent)}(t);case 93:case 85:case 98:return l(t);case 165:return function(e){if(250===e.parent.kind)return l(e);return c(e.parent)}(t);default:if(BY(t))return m(t);if((80===t.kind||230===t.kind||303===t.kind||304===t.kind)&&BY(n))return o(t);if(226===t.kind){const{left:e,operatorToken:n}=t;if(BY(e))return m(e);if(64===n.kind&&BY(t.parent))return o(t);if(28===n.kind)return c(e)}if(Bh(t))switch(n.kind){case 246:return s(t);case 170:return c(t.parent);case 248:case 250:return o(t);case 226:if(28===t.parent.operatorToken.kind)return o(t);break;case 219:if(t.parent.body===t)return o(t)}switch(t.parent.kind){case 303:if(t.parent.name===t&&!BY(t.parent.parent))return c(t.parent.initializer);break;case 216:if(t.parent.type===t)return l(t.parent.type);break;case 260:case 169:{const{initializer:e,type:n}=t.parent;if(e===t||n===t||mE(t.kind))return s(t);break}case 226:{const{left:e}=t.parent;if(BY(e)&&t!==e)return s(t);break}default:if(Td(t.parent)&&t.parent.type===t)return s(t)}return c(t.parent)}}function n(t){return aN(t.parent)&&t.parent.declarations[0]===t?o(fY(t.pos,e,t.parent),t):o(t)}function r(t){if(249===t.parent.parent.kind)return c(t.parent.parent);const r=t.parent;return Vd(t.name)?f(t.name):Qu(t)&&t.initializer||Gb(t,32)||250===r.parent.kind?n(t):aN(t.parent)&&t.parent.declarations[0]!==t?c(fY(t.pos,e,t.parent)):void 0}function d(e){return Gb(e,32)||263===e.parent.kind&&176!==e.kind}function u(t){switch(t.parent.kind){case 267:if(1!==zW(t.parent))return;case 247:case 245:case 249:return a(t.parent,t.statements[0]);case 248:case 250:return a(fY(t.pos,e,t.parent),t.statements[0])}return c(t.statements[0])}function p(e){if(261!==e.initializer.kind)return c(e.initializer);{const t=e.initializer;if(t.declarations.length>0)return c(t.declarations[0])}}function f(e){const t=x(e.elements,(e=>232!==e.kind?e:void 0));return t?c(t):208===e.parent.kind?o(e.parent):n(e.parent)}function m(e){In.assert(207!==e.kind&&206!==e.kind);const t=x(209===e.kind?e.elements:e.properties,(e=>232!==e.kind?e:void 0));return t?c(t):o(226===e.parent.kind?e.parent:e)}}}var M7=b({"src/services/breakpoints.ts"(){Tge()}}),L7={};E(L7,{spanInSourceFileAtLocation:()=>N7});var k7=b({"src/services/_namespaces/ts.BreakpointResolver.ts"(){M7()}});function P7(e){return TC(e)||iN(e)}function w7(e){return(_D(e)||hD(e)||CD(e))&&P7(e.parent)&&e===e.parent.initializer&&nC(e.parent.name)&&(!!(2&xl(e.parent))||TC(e.parent))}function O7(e){return rM(e)||pN(e)||sN(e)||_D(e)||lN(e)||CD(e)||IC(e)||AC(e)||xC(e)||CC(e)||DC(e)}function F7(e){return rM(e)||pN(e)&&nC(e.name)||sN(e)||lN(e)||IC(e)||AC(e)||xC(e)||CC(e)||DC(e)||function(e){return(_D(e)||CD(e))&&Bl(e)}(e)||w7(e)}function W7(e){return rM(e)?e:Bl(e)?e.name:w7(e)?e.parent.name:In.checkDefined(e.modifiers&&L(e.modifiers,z7))}function z7(e){return 90===e.kind}function B7(e,t){const n=W7(t);return n&&e.getSymbolAtLocation(n)}function G7(e,t){if(t.body)return t;if(RC(t))return _b(t.parent);if(sN(t)||AC(t)){const n=B7(e,t);return n&&n.valueDeclaration&&Ad(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function j7(e,t){const n=B7(e,t);let r;if(n&&n.declarations){const e=ue(n.declarations),t=U(n.declarations,(e=>({file:e.getSourceFile().fileName,pos:e.pos})));e.sort(((e,n)=>jt(t[e].file,t[n].file)||t[e].pos-t[n].pos));const o=U(e,(e=>n.declarations[e]));let i;for(const n of o)F7(n)&&(i&&i.parent===n.parent&&i.end===n.pos||(r=Ee(r,n)),i=n)}return r}function V7(e,t){return IC(t)?t:Ad(t)?G7(e,t)??j7(e,t)??t:j7(e,t)??t}function U7(e,t){const n=e.getTypeChecker();let r=!1;for(;;){if(F7(t))return V7(n,t);if(O7(t)){const e=Cl(t,F7);return e&&V7(n,e)}if(Iy(t)){if(F7(t.parent))return V7(n,t.parent);if(O7(t.parent)){const e=Cl(t.parent,F7);return e&&V7(n,e)}return P7(t.parent)&&t.parent.initializer&&w7(t.parent.initializer)?t.parent.initializer:void 0}if(RC(t))return F7(t.parent)?t.parent:void 0;if(126!==t.kind||!IC(t.parent)){if(iN(t)&&t.initializer&&w7(t.initializer))return t.initializer;if(!r){let e=n.getSymbolAtLocation(t);if(e&&(2097152&e.flags&&(e=n.getAliasedSymbol(e)),e.valueDeclaration)){r=!0,t=e.valueDeclaration;continue}}return}t=t.parent}}function H7(e,t){const n=t.getSourceFile(),r=function(e,t){if(rM(t))return{text:t.fileName,pos:0,end:0};if((sN(t)||lN(t))&&!Bl(t)){const e=t.modifiers&&L(t.modifiers,z7);if(e)return{text:"default",pos:e.getStart(),end:e.getEnd()}}if(IC(t)){const n=Ts(t.getSourceFile().text,JE(t).pos),r=n+6,o=e.getTypeChecker(),i=o.getSymbolAtLocation(t.parent);return{text:(i?`${o.symbolToString(i,t.parent)} `:"")+"static {}",pos:n,end:r}}const n=w7(t)?t.parent.name:In.checkDefined(jl(t),"Expected call hierarchy item to have a name");let r=nC(n)?kl(n):tv(n)?n.text:yC(n)&&tv(n.expression)?n.expression.text:void 0;if(void 0===r){const o=e.getTypeChecker(),i=o.getSymbolAtLocation(n);i&&(r=o.symbolToString(i,t))}if(void 0===r){const e=yV();r=Gf((n=>e.writeNode(4,t,t.getSourceFile(),n)))}return{text:r,pos:n.getStart(),end:n.getEnd()}}(e,t),o=function(e){var t,n,r,o;if(w7(e))return TC(e.parent)&&Md(e.parent.parent)?CD(e.parent.parent)?null==(t=Vl(e.parent.parent))?void 0:t.getText():null==(n=e.parent.parent.name)?void 0:n.getText():fN(e.parent.parent.parent.parent)&&nC(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return 210===e.parent.kind?null==(r=Vl(e.parent))?void 0:r.getText():null==(o=jl(e.parent))?void 0:o.getText();case 262:case 263:case 267:if(fN(e.parent)&&nC(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),i=M$(t),a=MY(t),s=ul(Ts(n.text,t.getFullStart(),!1,!0),t.getEnd()),l=ul(r.pos,r.end);return{file:n.fileName,kind:i,kindModifiers:a,name:r.text,containerName:o,span:s,selectionSpan:l}}function K7(e){return void 0!==e}function q7(e){if(e.kind===Hue.EntryKind.Node){const{node:t}=e;if(s$(t,!0,!0)||l$(t,!0,!0)||c$(t,!0,!0)||d$(t,!0,!0)||x$(t)||A$(t)){const e=t.getSourceFile();return{declaration:Cl(t,F7)||e,range:qY(t,e)}}}}function J7(e){return Hz(e.declaration)}function X7(e,t,n){if(rM(t)||pN(t)||IC(t))return[];const r=W7(t),o=G(Hue.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),r,0,{use:Hue.FindReferencesUse.References},q7),K7);return o?rt(o,J7,(t=>function(e,t){return n=H7(e,t[0].declaration),r=U(t,(e=>JY(e.range))),{from:n,fromSpans:r};var n,r}(e,t))):[]}function $7(e,t){const n=[],r=function(e,t){function n(n){const r=pD(n)?n.tag:ju(n)?n.tagName:wS(n)||IC(n)?n:n.expression,o=U7(e,r);if(o){const e=qY(r,n.getSourceFile());if(mt(o))for(const n of o)t.push({declaration:n,range:e});else t.push({declaration:o,range:e})}}return function e(t){if(t&&!(33554432&t.flags))if(F7(t)){if(Md(t))for(const n of t.members)n.name&&yC(n.name)&&e(n.name.expression)}else{switch(t.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:return void n(t);case 216:case 234:case 238:return void e(t.expression);case 260:case 169:return e(t.name),void e(t.initializer);case 213:case 214:return n(t),e(t.expression),void x(t.arguments,e);case 215:return n(t),e(t.tag),void e(t.template);case 286:case 285:return n(t),e(t.tagName),void e(t.attributes);case 170:return n(t),void e(t.expression);case 211:case 212:n(t),oP(t,e)}j_(t)||oP(t,e)}}}(e,n);switch(t.kind){case 312:!function(e,t){x(e.statements,t)}(t,r);break;case 267:!function(e,t){!Gb(e,128)&&e.body&&fN(e.body)&&x(e.body.statements,t)}(t,r);break;case 262:case 218:case 219:case 174:case 177:case 178:!function(e,t,n){const r=G7(e,t);r&&(x(r.parameters,n),n(r.body))}(e.getTypeChecker(),t,r);break;case 263:case 231:!function(e,t){x(e.modifiers,t);const n=Fy(e);n&&t(n.expression);for(const r of e.members)vk(r)&&x(r.modifiers,t),TC(r)?t(r.initializer):RC(r)&&r.body?(x(r.parameters,t),t(r.body)):IC(r)&&t(r)}(t,r);break;case 175:!function(e,t){t(e.body)}(t,r);break;default:In.assertNever(t)}return n}function Y7(e,t){return 33554432&t.flags||xC(t)?[]:rt($7(e,t),J7,(t=>function(e,t){return n=H7(e,t[0].declaration),r=U(t,(e=>JY(e.range))),{to:n,fromSpans:r};var n,r}(e,t)))}var Q7=b({"src/services/callHierarchy.ts"(){Tge()}}),Z7={};E(Z7,{createCallHierarchyItem:()=>H7,getIncomingCalls:()=>X7,getOutgoingCalls:()=>Y7,resolveCallHierarchyDeclaration:()=>U7});var e9=b({"src/services/_namespaces/ts.CallHierarchy.ts"(){Q7()}}),t9={};E(t9,{TokenEncodingConsts:()=>k5,TokenModifier:()=>w5,TokenType:()=>P5,getEncodedSemanticClassifications:()=>z5,getSemanticClassifications:()=>W5});var n9=b({"src/services/_namespaces/ts.classifier.v2020.ts"(){a7()}}),r9={};E(r9,{v2020:()=>t9});var o9,i9,a9,s9=b({"src/services/_namespaces/ts.classifier.ts"(){n9()}});function l9(e,t,n){return u9(e,x0(n),t,void 0,void 0)}function c9(e,t,n,r,o,i){return u9(e,x0(n),t,r,x0(o),i)}function d9(e,t,n,r,o,i){return u9(e,x0(n),t,r,o&&x0(o),i)}function u9(e,t,n,r,o,i){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:o,commands:i?[i]:void 0}}function p9(e){for(const t of e.errorCodes)a9=void 0,o9.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)In.assert(!i9.has(t)),i9.set(t,e)}function f9(){return a9??(a9=Ye(o9.keys()))}function m9(e){const t=b9(e);return J(o9.get(String(e.errorCode)),(n=>U(n.getCodeActions(e),function(e,t){const{errorCodes:n}=e;let r=0;for(const i of t)if(F(n,i.code)&&r++,r>1)break;const o=r<2;return({fixId:e,fixAllDescription:t,...n})=>o?n:{...n,fixId:e,fixAllDescription:t}}(n,t))))}function _9(e){return i9.get(vt(e.fixId,ht)).getAllCodeActions(e)}function h9(e,t){return{changes:e,commands:t}}function g9(e,t){return{fileName:e,textChanges:t}}function y9(e,t,n){const r=[];return h9(p_e.ChangeTracker.with(e,(o=>v9(e,t,(e=>n(o,e,r))))),0===r.length?void 0:r)}function v9(e,t,n){for(const r of b9(e))F(t,r.code)&&n(r)}function b9({program:e,sourceFile:t,cancellationToken:n}){return[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...t2(t,e,n)]}var E9,S9,T9=b({"src/services/codeFixProvider.ts"(){Tge(),o9=ct(),i9=new Map}});function x9(e,t,n){const r=MD(n)?UA.createAsExpression(n.expression,UA.createKeywordTypeNode(159)):UA.createTypeAssertion(UA.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,r)}function A9(e,t){if(!$h(e))return Cl(lY(e,t),(e=>MD(e)||fD(e)))}var I9,R9,C9=b({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){Tge(),sce(),E9="addConvertToUnknownForNonOverlappingTypes",p9({errorCodes:S9=[Oa.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],getCodeActions:function(e){const t=A9(e.sourceFile,e.span.start);if(void 0===t)return;const n=p_e.ChangeTracker.with(e,(n=>x9(n,e.sourceFile,t)));return[c9(E9,n,Oa.Add_unknown_conversion_for_non_overlapping_types,E9,Oa.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[E9],getAllCodeActions:e=>y9(e,S9,((e,t)=>{const n=A9(t.file,t.start);n&&x9(e,t.file,n)}))})}}),D9=b({"src/services/codefixes/addEmptyExportDeclaration.ts"(){Tge(),sce(),p9({errorCodes:[Oa.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,Oa.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,Oa.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(e){const{sourceFile:t}=e;return[l9("addEmptyExportDeclaration",p_e.ChangeTracker.with(e,(e=>{const n=UA.createExportDeclaration(void 0,!1,UA.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(t,t,n)})),Oa.Add_export_to_make_this_file_into_a_module)]}})}});function N9(e,t,n,r){const o=n((n=>function(e,t,n,r){if(r&&r.has(Hz(n)))return;null==r||r.add(Hz(n));const o=UA.replaceModifiers(mZ(n,!0),UA.createNodeArray(UA.createModifiersFromModifierFlags(1024|tE(n))));e.replaceNode(t,n,o)}(n,e.sourceFile,t,r)));return c9(I9,o,Oa.Add_async_modifier_to_containing_function,I9,Oa.Add_all_missing_async_modifiers)}function M9(e,t){if(!t)return;return Cl(lY(e,t.start),(n=>n.getStart(e)<t.start||n.getEnd()>Qs(t)?"quit":(hD(n)||AC(n)||_D(n)||sN(n))&&DQ(t,HY(n,e))))}var L9,k9,P9,w9,O9=b({"src/services/codefixes/addMissingAsync.ts"(){Tge(),sce(),I9="addMissingAsync",R9=[Oa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Oa.Type_0_is_not_assignable_to_type_1.code,Oa.Type_0_is_not_comparable_to_type_1.code],p9({fixIds:[I9],errorCodes:R9,getCodeActions:function(e){const{sourceFile:t,errorCode:n,cancellationToken:r,program:o,span:i}=e,a=L(o.getTypeChecker().getDiagnostics(t,r),function(e,t){return({start:n,length:r,relatedInformation:o,code:i})=>gt(n)&>(r)&&DQ({start:n,length:r},e)&&i===t&&!!o&&se(o,(e=>e.code===Oa.Did_you_mean_to_mark_this_function_as_async.code))}(i,n)),s=M9(t,a&&a.relatedInformation&&L(a.relatedInformation,(e=>e.code===Oa.Did_you_mean_to_mark_this_function_as_async.code)));if(!s)return;return[N9(e,s,(t=>p_e.ChangeTracker.with(e,t)))]},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return y9(e,R9,((r,o)=>{const i=o.relatedInformation&&L(o.relatedInformation,(e=>e.code===Oa.Did_you_mean_to_mark_this_function_as_async.code)),a=M9(t,i);if(!a)return;return N9(e,a,(e=>(e(r),[])),n)}))}})}});function F9(e,t,n,r,o){const i=c0(e,n);return i&&function(e,t,n,r,o){const i=o.getTypeChecker(),a=i.getDiagnostics(e,r);return se(a,(({start:e,length:r,relatedInformation:o,code:i})=>gt(e)&>(r)&&DQ({start:e,length:r},n)&&i===t&&!!o&&se(o,(e=>e.code===Oa.Did_you_forget_to_use_await.code))))}(e,t,n,r,o)&&G9(i)?i:void 0}function W9(e,t,n,r,o,i){const{sourceFile:a,program:s,cancellationToken:l}=e,c=function(e,t,n,r,o){const i=function(e,t){if(lD(e.parent)&&nC(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(nC(e))return{identifiers:[e],isCompleteFix:!0};if(TD(e)){let n,r=!0;for(const o of[e.left,e.right]){const e=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(e)){if(!nC(o)){r=!1;continue}(n||(n=[])).push(o)}}return n&&{identifiers:n,isCompleteFix:r}}}(e,o);if(!i)return;let a,s=i.isCompleteFix;for(const l of i.identifiers){const e=o.getSymbolAtLocation(l);if(!e)continue;const i=yt(e.valueDeclaration,iN),c=i&&yt(i.name,nC),d=jy(i,243);if(!i||!d||i.type||!i.initializer||d.getSourceFile()!==t||Gb(d,32)||!c||!G9(i.initializer)){s=!1;continue}const u=r.getSemanticDiagnostics(t,n);Hue.Core.eachSymbolReferenceInFile(c,o,t,(e=>l!==e&&!B9(e,u,t,o)))?s=!1:(a||(a=[])).push({expression:i.initializer,declarationSymbol:e})}return a&&{initializers:a,needsSecondPassForFixAll:!s}}(t,a,l,s,r);if(c){return l9("addMissingAwaitToInitializer",o((e=>{x(c.initializers,(({expression:t})=>j9(e,n,a,r,t,i))),i&&c.needsSecondPassForFixAll&&j9(e,n,a,r,t,i)})),1===c.initializers.length?[Oa.Add_await_to_initializer_for_0,c.initializers[0].declarationSymbol.name]:Oa.Add_await_to_initializers)}}function z9(e,t,n,r,o,i){const a=o((o=>j9(o,n,e.sourceFile,r,t,i)));return c9(L9,a,Oa.Add_await,L9,Oa.Fix_all_expressions_possibly_missing_await)}function B9(e,t,n,r){const o=lD(e.parent)?e.parent.name:TD(e.parent)?e.parent:e,i=L(t,(e=>e.start===o.getStart(n)&&e.start+e.length===o.getEnd()));return i&&F(w9,i.code)||1&r.getTypeAtLocation(o).flags}function G9(e){return 65536&e.flags||!!Cl(e,(e=>e.parent&&hD(e.parent)&&e.parent.body===e||BD(e)&&(262===e.parent.kind||218===e.parent.kind||219===e.parent.kind||174===e.parent.kind)))}function j9(e,t,n,r,o,i){if(XD(o.parent)&&!o.parent.awaitModifier){const t=r.getTypeAtLocation(o),i=r.getAsyncIterableType();if(i&&r.isTypeAssignableTo(t,i)){const t=o.parent;return void e.replaceNode(n,t,UA.updateForOfStatement(t,UA.createToken(135),t.initializer,t.expression,t.statement))}}if(TD(o))for(const a of[o.left,o.right]){if(i&&nC(a)){const e=r.getSymbolAtLocation(a);if(e&&i.has(Kz(e)))continue}const t=r.getTypeAtLocation(a),o=r.getPromisedTypeOfPromise(t)?UA.createAwaitExpression(a):a;e.replaceNode(n,a,o)}else if(t===k9&&lD(o.parent)){if(i&&nC(o.parent.expression)){const e=r.getSymbolAtLocation(o.parent.expression);if(e&&i.has(Kz(e)))return}e.replaceNode(n,o.parent.expression,UA.createParenthesizedExpression(UA.createAwaitExpression(o.parent.expression))),V9(e,o.parent.expression,n)}else if(F(P9,t)&&ru(o.parent)){if(i&&nC(o)){const e=r.getSymbolAtLocation(o);if(e&&i.has(Kz(e)))return}e.replaceNode(n,o,UA.createParenthesizedExpression(UA.createAwaitExpression(o))),V9(e,o,n)}else{if(i&&iN(o.parent)&&nC(o.parent.name)){const e=r.getSymbolAtLocation(o.parent.name);if(e&&!re(i,Kz(e)))return}e.replaceNode(n,o,UA.createAwaitExpression(o))}}function V9(e,t,n){const r=fY(t.pos,n);r&&UZ(r.end,r.parent,n)&&e.insertText(n,t.getStart(n),";")}var U9,H9,K9=b({"src/services/codefixes/addMissingAwait.ts"(){Tge(),sce(),L9="addMissingAwait",k9=Oa.Property_0_does_not_exist_on_type_1.code,P9=[Oa.This_expression_is_not_callable.code,Oa.This_expression_is_not_constructable.code],w9=[Oa.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,Oa.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,Oa.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,Oa.Operator_0_cannot_be_applied_to_type_1.code,Oa.Operator_0_cannot_be_applied_to_types_1_and_2.code,Oa.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,Oa.This_condition_will_always_return_true_since_this_0_is_always_defined.code,Oa.Type_0_is_not_an_array_type.code,Oa.Type_0_is_not_an_array_type_or_a_string_type.code,Oa.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,Oa.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Oa.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Oa.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Oa.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,Oa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,k9,...P9],p9({fixIds:[L9],errorCodes:w9,getCodeActions:function(e){const{sourceFile:t,errorCode:n,span:r,cancellationToken:o,program:i}=e,a=F9(t,n,r,o,i);if(!a)return;const s=e.program.getTypeChecker(),l=t=>p_e.ChangeTracker.with(e,t);return ve([W9(e,a,n,s,l),z9(e,a,n,s,l)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,o=e.program.getTypeChecker(),i=new Set;return y9(e,w9,((a,s)=>{const l=F9(t,s.code,s,r,n);if(!l)return;const c=e=>(e(a),[]);return W9(e,l,s.code,o,c,i)||z9(e,l,s.code,o,c,i)}))}})}});function q9(e,t,n,r,o){const i=lY(t,n),a=Cl(i,(e=>vu(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}(e)&&"quit"));if(a)return J9(e,a,t,o);const s=i.parent;if(TD(s)&&64===s.operatorToken.kind&&VD(s.parent))return J9(e,i,t,o);if(aD(s)){const n=r.getTypeChecker();if(!M(s.elements,(e=>function(e,t){const n=nC(e)?e:gE(e,!0)&&nC(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}(e,n))))return;return J9(e,s,t,o)}const l=Cl(i,(e=>!!VD(e.parent)||!function(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}(e)&&"quit"));if(l){if(!X9(l,r.getTypeChecker()))return;return J9(e,l,t,o)}}function J9(e,t,n,r){r&&!re(r,t)||e.insertModifierBefore(n,87,t)}function X9(e,t){return!!TD(e)&&(28===e.operatorToken.kind?M([e.left,e.right],(e=>X9(e,t))):64===e.operatorToken.kind&&nC(e.left)&&!t.getSymbolAtLocation(e.left))}var $9,Y9,Q9=b({"src/services/codefixes/addMissingConst.ts"(){Tge(),sce(),U9="addMissingConst",p9({errorCodes:H9=[Oa.Cannot_find_name_0.code,Oa.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],getCodeActions:function(e){const t=p_e.ChangeTracker.with(e,(t=>q9(t,e.sourceFile,e.span.start,e.program)));if(t.length>0)return[c9(U9,t,Oa.Add_const_to_unresolved_variable,U9,Oa.Add_const_to_all_unresolved_variables)]},fixIds:[U9],getAllCodeActions:e=>{const t=new Set;return y9(e,H9,((n,r)=>q9(n,r.file,r.start,e.program,t)))}})}});function Z9(e,t,n,r){const o=lY(t,n);if(!nC(o))return;const i=o.parent;172!==i.kind||r&&!re(r,i)||e.insertModifierBefore(t,138,i)}var eee,tee,nee=b({"src/services/codefixes/addMissingDeclareProperty.ts"(){Tge(),sce(),$9="addMissingDeclareProperty",p9({errorCodes:Y9=[Oa.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],getCodeActions:function(e){const t=p_e.ChangeTracker.with(e,(t=>Z9(t,e.sourceFile,e.span.start)));if(t.length>0)return[c9($9,t,Oa.Prefix_with_declare,$9,Oa.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[$9],getAllCodeActions:e=>{const t=new Set;return y9(e,Y9,((e,n)=>Z9(e,n.file,n.start,t)))}})}});function ree(e,t,n){const r=Cl(lY(t,n),EC);In.assert(!!r,"Expected position to be owned by a decorator.");const o=UA.createCallExpression(r.expression,void 0,void 0);e.replaceNode(t,r.expression,o)}var oee,iee,aee=b({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){Tge(),sce(),eee="addMissingInvocationForDecorator",p9({errorCodes:tee=[Oa._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],getCodeActions:function(e){const t=p_e.ChangeTracker.with(e,(t=>ree(t,e.sourceFile,e.span.start)));return[c9(eee,t,Oa.Call_decorator_expression,eee,Oa.Add_to_all_uncalled_decorators)]},fixIds:[eee],getAllCodeActions:e=>y9(e,tee,((e,t)=>ree(e,t.file,t.start)))})}});function see(e,t,n){const r=lY(t,n),o=r.parent;if(!bC(o))return In.fail("Tried to add a parameter name to a non-parameter: "+In.formatSyntaxKind(r.kind));const i=o.parent.parameters.indexOf(o);In.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),In.assert(i>-1,"Parameter not found in parent parameter list.");let a=o.name.getEnd(),s=UA.createTypeReferenceNode(o.name,void 0),l=lee(t,o);for(;l;)s=UA.createArrayTypeNode(s),a=l.getEnd(),l=lee(t,l);const c=UA.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+i,o.questionToken,o.dotDotDotToken&&!zC(s)?UA.createArrayTypeNode(s):s,o.initializer);e.replaceRange(t,UE(o.getStart(t),a),c)}function lee(e,t){const n=pY(t.name,t.parent,e);if(n&&23===n.kind&&oD(n.parent)&&bC(n.parent.parent))return n.parent.parent}var cee,dee=b({"src/services/codefixes/addNameToNamelessParameter.ts"(){Tge(),sce(),oee="addNameToNamelessParameter",p9({errorCodes:iee=[Oa.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],getCodeActions:function(e){const t=p_e.ChangeTracker.with(e,(t=>see(t,e.sourceFile,e.span.start)));return[c9(oee,t,Oa.Add_parameter_name,oee,Oa.Add_names_to_all_parameters_without_names)]},fixIds:[oee],getAllCodeActions:e=>y9(e,iee,((e,t)=>see(e,t.file,t.start)))})}});function uee(e,t,n){var r,i;const a=pee(c0(e,t),n);if(!a)return o;const{source:s,target:l}=a,c=function(e,t,n){return lD(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}(s,l,n)?n.getTypeAtLocation(l.expression):n.getTypeAtLocation(l);return(null==(i=null==(r=c.symbol)?void 0:r.declarations)?void 0:i.some((e=>Yf(e).fileName.match(/\.d\.ts$/))))?o:n.getExactOptionalProperties(c)}function pee(e,t){var n;if(e){if(TD(e.parent)&&64===e.parent.operatorToken.kind)return{source:e.parent.right,target:e.parent.left};if(iN(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(dD(e.parent)){const n=t.getSymbolAtLocation(e.parent.expression);if(!(null==n?void 0:n.valueDeclaration)||!Cd(n.valueDeclaration.kind))return;if(!uu(e))return;const r=e.parent.arguments.indexOf(e);if(-1===r)return;const o=n.valueDeclaration.parameters[r].name;if(nC(o))return{source:e,target:o}}else if(QN(e.parent)&&nC(e.parent.name)||ZN(e.parent)){const r=pee(e.parent.parent,t);if(!r)return;const o=t.getPropertyOfType(t.getTypeAtLocation(r.target),e.parent.name.text),i=null==(n=null==o?void 0:o.declarations)?void 0:n[0];if(!i)return;return{source:QN(e.parent)?e.parent.initializer:e.parent.name,target:i}}}}var fee,mee,_ee=b({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){Tge(),sce(),cee="addOptionalPropertyUndefined",p9({errorCodes:[Oa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,Oa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,Oa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],getCodeActions(e){const t=e.program.getTypeChecker(),n=uee(e.sourceFile,e.span,t);if(!n.length)return;const r=p_e.ChangeTracker.with(e,(e=>function(e,t){for(const n of t){const t=n.valueDeclaration;if(t&&(SC(t)||TC(t))&&t.type){const n=UA.createUnionTypeNode([...192===t.type.kind?t.type.types:[t.type],UA.createTypeReferenceNode("undefined")]);e.replaceNode(t.getSourceFile(),t.type,n)}}}(e,n)));return[l9(cee,r,Oa.Add_undefined_to_optional_property_type)]},fixIds:[cee]})}});function hee(e,t){const n=lY(e,t);return yt(bC(n.parent)?n.parent.parent:n.parent,gee)}function gee(e){return function(e){return Ad(e)||260===e.kind||171===e.kind||172===e.kind}(e)&&yee(e)}function yee(e){return Ad(e)?e.parameters.some(yee)||!e.type&&!!bc(e):!e.type&&!!vc(e)}function vee(e,t,n){if(Ad(n)&&(bc(n)||n.parameters.some((e=>!!vc(e))))){if(!n.typeParameters){const r=Cb(n);r.length&&e.insertTypeParameters(t,n,r)}const r=hD(n)&&!J$(n,21,t);r&&e.insertNodeBefore(t,Pe(n.parameters),UA.createToken(21));for(const o of n.parameters)if(!o.type){const n=vc(o);n&&e.tryInsertTypeAnnotation(t,o,rB(n,bee,Gd))}if(r&&e.insertNodeAfter(t,Fe(n.parameters),UA.createToken(22)),!n.type){const r=bc(n);r&&e.tryInsertTypeAnnotation(t,n,rB(r,bee,Gd))}}else{const r=In.checkDefined(vc(n),"A JSDocType for this declaration should exist");In.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,rB(r,bee,Gd))}}function bee(e){switch(e.kind){case 319:case 320:return UA.createTypeReferenceNode("any",o);case 323:return function(e){return UA.createUnionTypeNode([rB(e.type,bee,Gd),UA.createTypeReferenceNode("undefined",o)])}(e);case 322:return bee(e.type);case 321:return function(e){return UA.createUnionTypeNode([rB(e.type,bee,Gd),UA.createTypeReferenceNode("null",o)])}(e);case 325:return function(e){return UA.createArrayTypeNode(rB(e.type,bee,Gd))}(e);case 324:return function(e){return UA.createFunctionTypeNode(o,e.parameters.map(Eee),e.type??UA.createKeywordTypeNode(133))}(e);case 183:return function(e){let t=e.typeName,n=e.typeArguments;if(nC(e.typeName)){if(eg(e))return function(e){const t=UA.createParameterDeclaration(void 0,void 0,150===e.typeArguments[0].kind?"n":"s",void 0,UA.createTypeReferenceNode(150===e.typeArguments[0].kind?"number":"string",[]),void 0),n=UA.createTypeLiteralNode([UA.createIndexSignature(void 0,[t],e.typeArguments[1])]);return fI(n,1),n}(e);let r=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":r=r.toLowerCase();break;case"array":case"date":case"promise":r=r[0].toUpperCase()+r.slice(1)}t=UA.createIdentifier(r),n="Array"!==r&&"Promise"!==r||e.typeArguments?oB(e.typeArguments,bee,Gd):UA.createNodeArray([UA.createTypeReferenceNode("any",o)])}return UA.createTypeReferenceNode(t,n)}(e);case 329:return function(e){const t=UA.createTypeLiteralNode(U(e.jsDocPropertyTags,(e=>UA.createPropertySignature(void 0,nC(e.name)?e.name:e.name.right,cA(e)?UA.createToken(58):void 0,e.typeExpression&&rB(e.typeExpression.type,bee,Gd)||UA.createKeywordTypeNode(133)))));return fI(t,1),t}(e);default:const t=fB(e,bee,void 0);return fI(t,1),t}}function Eee(e){const t=e.parent.parameters.indexOf(e),n=325===e.type.kind&&t===e.parent.parameters.length-1,r=e.name||(n?"rest":"arg"+t),o=n?UA.createToken(26):e.dotDotDotToken;return UA.createParameterDeclaration(e.modifiers,o,r,e.questionToken,rB(e.type,bee,Gd),e.initializer)}var See,Tee,xee=b({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){Tge(),sce(),fee="annotateWithTypeFromJSDoc",p9({errorCodes:mee=[Oa.JSDoc_types_may_be_moved_to_TypeScript_types.code],getCodeActions(e){const t=hee(e.sourceFile,e.span.start);if(!t)return;const n=p_e.ChangeTracker.with(e,(n=>vee(n,e.sourceFile,t)));return[c9(fee,n,Oa.Annotate_with_type_from_JSDoc,fee,Oa.Annotate_everything_with_types_from_JSDoc)]},fixIds:[fee],getAllCodeActions:e=>y9(e,mee,((e,t)=>{const n=hee(t.file,t.start);n&&vee(e,t.file,n)}))})}});function Aee(e,t,n,r,o,i){const a=r.getSymbolAtLocation(lY(t,n));if(!a||!a.valueDeclaration||!(19&a.flags))return;const s=a.valueDeclaration;if(sN(s)||_D(s))e.replaceNode(t,s,function(e){const t=l(a);e.body&&t.unshift(UA.createConstructorDeclaration(void 0,e.parameters,e.body));const n=Iee(e,95);return UA.createClassDeclaration(n,e.name,void 0,void 0,t)}(s));else if(iN(s)){const n=function(e){const t=e.initializer;if(!t||!_D(t)||!nC(e.name))return;const n=l(e.symbol);t.body&&n.unshift(UA.createConstructorDeclaration(void 0,t.parameters,t.body));const r=Iee(e.parent.parent,95);return UA.createClassDeclaration(r,e.name,void 0,void 0,n)}(s);if(!n)return;const r=s.parent.parent;aN(s.parent)&&s.parent.declarations.length>1?(e.delete(t,s),e.insertNodeAfter(t,r,n)):e.replaceNode(t,r,n)}function l(n){const r=[];return n.exports&&n.exports.forEach((e=>{if("prototype"===e.name&&e.declarations){const t=e.declarations[0];if(1===e.declarations.length&&lD(t)&&TD(t.parent)&&64===t.parent.operatorToken.kind&&sD(t.parent.right)){a(t.parent.right.symbol,void 0,r)}}else a(e,[UA.createToken(126)],r)})),n.members&&n.members.forEach(((o,i)=>{var s,l,c,d;if("constructor"===i&&o.valueDeclaration){const r=null==(d=null==(c=null==(l=null==(s=n.exports)?void 0:s.get("prototype"))?void 0:l.declarations)?void 0:c[0])?void 0:d.parent;r&&TD(r)&&sD(r.right)&&se(r.right.properties,Ree)||e.delete(t,o.valueDeclaration.parent)}else a(o,void 0,r)})),r;function a(n,r,a){if(!(8192&n.flags)&&!(4096&n.flags))return;const s=n.valueDeclaration,l=s.parent,c=l.right;if(u=c,!(wS(d=s)?lD(d)&&Ree(d)||Td(u):M(d.properties,(e=>!(!AC(e)&&!Mc(e))||!!(QN(e)&&_D(e.initializer)&&e.name)||!!Ree(e)))))return;var d,u;if(se(a,(e=>{const t=jl(e);return!(!t||!nC(t)||kl(t)!==wl(n))})))return;const p=l.parent&&244===l.parent.kind?l.parent:l;if(e.delete(t,p),c)if(wS(s)&&(_D(c)||hD(c))){const e=gQ(t,o),n=function(e,t,n){if(lD(e))return e.name;const r=e.argumentExpression;if(FR(r))return r;if(np(r))return zs(r.text,jp(t))?UA.createIdentifier(r.text):jR(r)?UA.createStringLiteral(r.text,0===n):r;return}(s,i,e);n&&f(a,c,n)}else{if(!sD(c)){if(Jh(t))return;if(!lD(s))return;const e=UA.createPropertyDeclaration(r,s.name,void 0,void 0,c);return RZ(l.parent,e,t),void a.push(e)}x(c.properties,(e=>{(AC(e)||Mc(e))&&a.push(e),QN(e)&&_D(e.initializer)&&f(a,e.initializer,e.name),Ree(e)}))}else a.push(UA.createPropertyDeclaration(r,n.name,void 0,void 0,void 0));function f(e,n,o){return _D(n)?function(e,n,o){const i=ce(r,Iee(n,134)),a=UA.createMethodDeclaration(i,void 0,o,void 0,void 0,n.parameters,void 0,n.body);return RZ(l,a,t),void e.push(a)}(e,n,o):function(e,n,o){const i=n.body;let a;a=241===i.kind?i:UA.createBlock([UA.createReturnStatement(i)]);const s=ce(r,Iee(n,134)),c=UA.createMethodDeclaration(s,void 0,o,void 0,void 0,n.parameters,void 0,a);RZ(l,c,t),e.push(c)}(e,n,o)}}}}function Iee(e,t){return vk(e)?G(e.modifiers,(e=>e.kind===t)):void 0}function Ree(e){return!!e.name&&!(!nC(e.name)||"constructor"!==e.name.text)}var Cee,Dee,Nee,Mee=b({"src/services/codefixes/convertFunctionToEs6Class.ts"(){Tge(),sce(),See="convertFunctionToEs6Class",p9({errorCodes:Tee=[Oa.This_constructor_function_may_be_converted_to_a_class_declaration.code],getCodeActions(e){const t=p_e.ChangeTracker.with(e,(t=>Aee(t,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())));return[c9(See,t,Oa.Convert_function_to_an_ES2015_class,See,Oa.Convert_all_constructor_functions_to_classes)]},fixIds:[See],getAllCodeActions:e=>y9(e,Tee,((t,n)=>Aee(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())))})}});function Lee(e,t,n,r){const i=lY(t,n);let a;if(a=nC(i)&&iN(i.parent)&&i.parent.initializer&&Ad(i.parent.initializer)?i.parent.initializer:yt(fh(lY(t,n)),u2),!a)return;const s=new Map,l=$h(a),c=function(e,t){if(!e.body)return new Set;const n=new Set;return oP(e.body,(function e(r){kee(r,t,"then")?(n.add(Hz(r)),x(r.arguments,e)):kee(r,t,"catch")||kee(r,t,"finally")?(n.add(Hz(r)),oP(r,e)):Oee(r,t)?n.add(Hz(r)):oP(r,e)})),n}(a,r),d=function(e,t,n){const r=new Map,o=ct();return oP(e,(function e(i){if(!nC(i))return void oP(i,e);const a=t.getSymbolAtLocation(i);if(a){const e=Xee(t.getTypeAtLocation(i),t),s=Kz(a).toString();if(!e||bC(i.parent)||Ad(i.parent)||n.has(s)){if(i.parent&&(bC(i.parent)||iN(i.parent)||iD(i.parent))){const e=i.text,t=o.get(e);if(t&&t.some((e=>e!==a))){const t=Fee(i,o);r.set(s,t.identifier),n.set(s,t),o.add(e,a)}else{const t=mZ(i);n.set(s,Zee(t)),o.add(e,a)}}}else{const t=Le(e.parameters),r=(null==t?void 0:t.valueDeclaration)&&bC(t.valueDeclaration)&&yt(t.valueDeclaration.name,nC)||UA.createUniqueName("result",16),i=Fee(r,o);n.set(s,i),o.add(r.text,a)}}})),_Z(e,!0,(e=>{if(iD(e)&&nC(e.name)&&rD(e.parent)){const n=t.getSymbolAtLocation(e.name),o=n&&r.get(String(Kz(n)));if(o&&o.text!==(e.name||e.propertyName).getText())return UA.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,o,e.initializer)}else if(nC(e)){const n=t.getSymbolAtLocation(e),o=n&&r.get(String(Kz(n)));if(o)return UA.createIdentifier(o.text)}}))}(a,r,s);if(!o2(d,r))return;const u=d.body&&BD(d.body)?function(e,t){const n=[];return H_(e,(e=>{i2(e,t)&&n.push(e)})),n}(d.body,r):o,p={checker:r,synthNamesMap:s,setOfExpressionsToReturn:c,isInJSFile:l};if(!u.length)return;const f=Ts(t.text,JE(a).pos);e.insertModifierAt(t,f,134,{suffix:" "});for(const o of u)if(oP(o,(function n(r){if(dD(r)){const n=Bee(r,r,p,!1);if(Wee())return!0;e.replaceNodeWithNodes(t,o,n)}else if(!Td(r)&&(oP(r,n),Wee()))return!0})),Wee())return}function kee(e,t,n){if(!dD(e))return!1;const r=y$(e,n)&&t.getTypeAtLocation(e);return!(!r||!t.getPromisedTypeOfPromise(r))}function Pee(e,t){return 0!==(4&RS(e))&&e.target===t}function wee(e,t,n){if("finally"===e.expression.name.escapedText)return;const r=n.getTypeAtLocation(e.expression.expression);if(Pee(r,n.getPromiseType())||Pee(r,n.getPromiseLikeType())){if("then"!==e.expression.name.escapedText)return u(e.typeArguments,0);if(t===u(e.arguments,0))return u(e.typeArguments,0);if(t===u(e.arguments,1))return u(e.typeArguments,1)}}function Oee(e,t){return!!uu(e)&&!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function Fee(e,t){const n=(t.get(e.text)||o).length;return Zee(0===n?e:UA.createIdentifier(e.text+"_"+n))}function Wee(){return!Nee}function zee(){return Nee=!1,o}function Bee(e,t,n,r,o){if(kee(t,n.checker,"then"))return function(e,t,n,r,o,i){if(!t||Gee(r,t))return Uee(e,n,r,o,i);if(n&&!Gee(r,n))return zee();const a=Yee(t,r),s=Bee(e.expression.expression,e.expression.expression,r,!0,a);if(Wee())return zee();const l=qee(t,o,i,a,e,r);return Wee()?zee():ce(s,l)}(t,u(t.arguments,0),u(t.arguments,1),n,r,o);if(kee(t,n.checker,"catch"))return Uee(t,u(t.arguments,0),n,r,o);if(kee(t,n.checker,"finally"))return function(e,t,n,r,o){if(!t||Gee(n,t))return Bee(e,e.expression.expression,n,r,o);const i=jee(e,n,o),a=Bee(e,e.expression.expression,n,!0,i);if(Wee())return zee();const s=qee(t,r,void 0,void 0,e,n);if(Wee())return zee();const l=UA.createBlock(a),c=UA.createBlock(s),d=UA.createTryStatement(l,void 0,c);return Vee(e,n,d,i,o)}(t,u(t.arguments,0),n,r,o);if(lD(t))return Bee(e,t.expression,n,r,o);const i=n.checker.getTypeAtLocation(t);return i&&n.checker.getPromisedTypeOfPromise(i)?(In.assertNode(Rl(t).parent,lD),function(e,t,n,r,o){if(ite(e,n)){let e=mZ(t);return r&&(e=UA.createAwaitExpression(e)),[UA.createReturnStatement(e)]}return Hee(o,UA.createAwaitExpression(t),void 0)}(e,t,n,r,o)):zee()}function Gee({checker:e},t){if(106===t.kind)return!0;if(nC(t)&&!ud(t)&&"undefined"===kl(t)){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function jee(e,t,n){let r;return n&&!ite(e,t)&&(ote(n)?(r=n,t.synthNamesMap.forEach(((e,r)=>{if(e.identifier.text===n.identifier.text){const e=(o=n,Zee(UA.createUniqueName(o.identifier.text,16)));t.synthNamesMap.set(r,e)}var o}))):r=Zee(UA.createUniqueName("result",16),n.types),rte(r)),r}function Vee(e,t,n,r,o){const i=[];let a;if(r&&!ite(e,t)){a=mZ(rte(r));const e=r.types,n=t.checker.getUnionType(e,2),o=t.isInJSFile?void 0:t.checker.typeToTypeNode(n,void 0,void 0),s=[UA.createVariableDeclaration(a,void 0,o)],l=UA.createVariableStatement(void 0,UA.createVariableDeclarationList(s,1));i.push(l)}return i.push(n),o&&a&&1===o.kind&&i.push(UA.createVariableStatement(void 0,UA.createVariableDeclarationList([UA.createVariableDeclaration(mZ(nte(o)),void 0,void 0,a)],2))),i}function Uee(e,t,n,r,o){if(!t||Gee(n,t))return Bee(e,e.expression.expression,n,r,o);const i=Yee(t,n),a=jee(e,n,o),s=Bee(e,e.expression.expression,n,!0,a);if(Wee())return zee();const l=qee(t,r,a,i,e,n);if(Wee())return zee();const c=UA.createBlock(s),d=UA.createCatchClause(i&&mZ(tte(i)),UA.createBlock(l));return Vee(e,n,UA.createTryStatement(c,d,void 0),a,o)}function Hee(e,t,n){return!e||Qee(e)?[UA.createExpressionStatement(t)]:ote(e)&&e.hasBeenDeclared?[UA.createExpressionStatement(UA.createAssignment(mZ(ete(e)),t))]:[UA.createVariableStatement(void 0,UA.createVariableDeclarationList([UA.createVariableDeclaration(mZ(tte(e)),void 0,n,t)],2))]}function Kee(e,t){if(t&&e){const n=UA.createUniqueName("result",16);return[...Hee(Zee(n),e,t),UA.createReturnStatement(n)]}return[UA.createReturnStatement(e)]}function qee(e,t,n,r,i,a){var s;switch(e.kind){case 106:break;case 211:case 80:if(!r)break;const l=UA.createCallExpression(mZ(e),void 0,ote(r)?[ete(r)]:[]);if(ite(i,a))return Kee(l,wee(i,e,a.checker));const c=a.checker.getTypeAtLocation(e),d=a.checker.getSignaturesOfType(c,0);if(!d.length)return zee();const u=d[0].getReturnType(),p=Hee(n,UA.createAwaitExpression(l),wee(i,e,a.checker));return n&&n.types.push(a.checker.getAwaitedType(u)||u),p;case 218:case 219:{const r=e.body,l=null==(s=Xee(a.checker.getTypeAtLocation(e),a.checker))?void 0:s.getReturnType();if(BD(r)){let o=[],s=!1;for(const c of r.statements)if(QD(c))if(s=!0,i2(c,a.checker))o=o.concat($ee(a,c,t,n));else{const t=l&&c.expression?Jee(a.checker,l,c.expression):c.expression;o.push(...Kee(t,wee(i,e,a.checker)))}else{if(t&&H_(c,St))return zee();o.push(c)}return ite(i,a)?o.map((e=>mZ(e))):function(e,t,n,r){const o=[];for(const i of e)if(QD(i)){if(i.expression){const e=Oee(i.expression,n.checker)?UA.createAwaitExpression(i.expression):i.expression;void 0===t?o.push(UA.createExpressionStatement(e)):ote(t)&&t.hasBeenDeclared?o.push(UA.createExpressionStatement(UA.createAssignment(ete(t),e))):o.push(UA.createVariableStatement(void 0,UA.createVariableDeclarationList([UA.createVariableDeclaration(tte(t),void 0,void 0,e)],2)))}}else o.push(mZ(i));r||void 0===t||o.push(UA.createVariableStatement(void 0,UA.createVariableDeclarationList([UA.createVariableDeclaration(tte(t),void 0,void 0,UA.createIdentifier("undefined"))],2)));return o}(o,n,a,s)}{const s=a2(r,a.checker)?$ee(a,UA.createReturnStatement(r),t,n):o;if(s.length>0)return s;if(l){const t=Jee(a.checker,l,r);if(ite(i,a))return Kee(t,wee(i,e,a.checker));{const e=Hee(n,t,void 0);return n&&n.types.push(a.checker.getAwaitedType(l)||l),e}}return zee()}}default:return zee()}return o}function Jee(e,t,n){const r=mZ(n);return e.getPromisedTypeOfPromise(t)?UA.createAwaitExpression(r):r}function Xee(e,t){return Oe(t.getSignaturesOfType(e,0))}function $ee(e,t,n,r){let o=[];return oP(t,(function t(i){if(dD(i)){const t=Bee(i,i,e,n,r);if(o=o.concat(t),o.length>0)return}else Td(i)||oP(i,t)})),o}function Yee(e,t){const n=[];let r;if(Ad(e)){if(e.parameters.length>0){r=function e(t){if(nC(t))return i(t);const n=J(t.elements,(t=>DD(t)?[]:[e(t.name)]));return function(e,t=o,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}(t,n)}(e.parameters[0].name)}}else nC(e)?r=i(e):lD(e)&&nC(e.name)&&(r=i(e.name));if(r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function i(e){var r;const o=function(e){var n;return(null==(n=yt(e,Cu))?void 0:n.symbol)??t.checker.getSymbolAtLocation(e)}((r=e).original?r.original:r);if(!o)return Zee(e,n);return t.synthNamesMap.get(Kz(o).toString())||Zee(e,n)}}function Qee(e){return!e||(ote(e)?!e.identifier.text:M(e.elements,Qee))}function Zee(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function ete(e){return e.hasBeenReferenced=!0,e.identifier}function tte(e){return ote(e)?rte(e):nte(e)}function nte(e){for(const t of e.elements)tte(t);return e.bindingPattern}function rte(e){return e.hasBeenDeclared=!0,e.identifier}function ote(e){return 0===e.kind}function ite(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(Hz(e.original))}var ate=b({"src/services/codefixes/convertToAsyncFunction.ts"(){Tge(),sce(),Cee="convertToAsyncFunction",Dee=[Oa.This_may_be_converted_to_an_async_function.code],Nee=!0,p9({errorCodes:Dee,getCodeActions(e){Nee=!0;const t=p_e.ChangeTracker.with(e,(t=>Lee(t,e.sourceFile,e.span.start,e.program.getTypeChecker())));return Nee?[c9(Cee,t,Oa.Convert_to_async_function,Cee,Oa.Convert_all_to_async_functions)]:[]},fixIds:[Cee],getAllCodeActions:e=>y9(e,Dee,((t,n)=>Lee(t,n.file,n.start,e.program.getTypeChecker())))})}});function ste(e,t,n,r,o){var i;for(const a of e.imports){const s=null==(i=n.getResolvedModuleFromModuleSpecifier(a))?void 0:i.resolvedModule;if(!s||s.resolvedFileName!==t.fileName)continue;const l=Wg(a);switch(l.kind){case 271:r.replaceNode(e,l,mQ(l.name,void 0,a,o));break;case 213:tg(l,!1)&&r.replaceNode(e,l,UA.createPropertyAccessExpression(mZ(l),"default"))}}}function lte(e,t,n,r,o){const i={original:hte(e),additional:new Set},a=function(e,t,n){const r=new Map;return cte(e,(e=>{const{text:o}=e.name;r.has(o)||!Yy(e.name)&&!t.resolveName(o,e,111551,!0)||r.set(o,_te(`_${o}`,n))})),r}(e,t,i);!function(e,t,n){cte(e,((r,o)=>{if(o)return;const{text:i}=r.name;n.replaceNode(e,r,UA.createIdentifier(t.get(i)||i))}))}(e,a,n);let s,l=!1;for(const c of G(e.statements,GD)){const a=ute(e,c,n,t,i,r,o);a&&Bf(a,s??(s=new Map))}for(const c of G(e.statements,(e=>!GD(e)))){const d=dte(e,c,t,n,i,r,a,s,o);l=l||d}return null==s||s.forEach(((t,r)=>{n.replaceNode(e,r,t)})),l}function cte(e,t){e.forEachChild((function n(r){if(lD(r)&&KW(e,r.expression)&&nC(r.name)){const{parent:e}=r;t(r,TD(e)&&e.left===r&&64===e.operatorToken.kind)}r.forEachChild(n)}))}function dte(e,t,n,r,o,a,s,l,c){switch(t.kind){case 243:return ute(e,t,r,n,o,a,c),!1;case 244:{const{expression:o}=t;switch(o.kind){case 213:return tg(o,!0)&&r.replaceNode(e,t,mQ(void 0,void 0,o.arguments[0],c)),!1;case 226:{const{operatorToken:t}=o;return 64===t.kind&&function(e,t,n,r,o,a){const{left:s,right:l}=n;if(!lD(s))return!1;if(KW(e,s)){if(!KW(e,l)){const o=sD(l)?function(e,t){const n=Q(e.properties,(e=>{switch(e.kind){case 177:case 178:case 304:case 305:return;case 303:return nC(e.name)?function(e,t,n){const r=[UA.createToken(95)];switch(t.kind){case 218:{const{name:n}=t;if(n&&n.text!==e)return o()}case 219:return yte(e,r,t,n);case 231:return function(e,t,n,r){return UA.createClassDeclaration(ce(t,gZ(n.modifiers)),e,gZ(n.typeParameters),gZ(n.heritageClauses),mte(n.members,r))}(e,r,t,n);default:return o()}function o(){return Ete(r,UA.createIdentifier(e),mte(t,n))}}(e.name.text,e.initializer,t):void 0;case 174:return nC(e.name)?yte(e.name.text,[UA.createToken(95)],e,t):void 0;default:In.assertNever(e,`Convert to ES6 got invalid prop kind ${e.kind}`)}}));return n&&[n,!1]}(l,a):tg(l,!0)?function(e,t){const n=e.text,r=t.getSymbolAtLocation(e),o=r?r.exports:i;return o.has("export=")?[[fte(n)],!0]:o.has("default")?o.size>1?[[pte(n),fte(n)],!0]:[[fte(n)],!0]:[[pte(n)],!1]}(l.arguments[0],t):void 0;return o?(r.replaceNodeWithNodes(e,n.parent,o[0]),o[1]):(r.replaceRangeWithText(e,UE(s.getStart(e),l.pos),"export default"),!0)}r.delete(e,n.parent)}else KW(e,s.expression)&&function(e,t,n,r){const{text:o}=t.left.name,i=r.get(o);if(void 0!==i){const r=[Ete(void 0,i,t.right),Ste([UA.createExportSpecifier(!1,i,o)])];n.replaceNodeWithNodes(e,t.parent,r)}else!function({left:e,right:t,parent:n},r,o){const i=e.name.text;if(!(_D(t)||hD(t)||CD(t))||t.name&&t.name.text!==i)o.replaceNodeRangeWithNodes(r,e.expression,J$(e,25,r),[UA.createToken(95),UA.createToken(87)],{joiner:" ",suffix:" "});else{o.replaceRange(r,{pos:e.getStart(r),end:t.getStart(r)},UA.createToken(95),{suffix:" "}),t.name||o.insertName(r,t,i);const a=J$(n,27,r);a&&o.delete(r,a)}}(t,e,n)}(e,n,r,o);return!1}(e,n,o,r,s,l)}}}default:return!1}}function ute(e,t,n,r,o,i,a){const{declarationList:s}=t;let l=!1;const c=U(s.declarations,(t=>{const{name:n,initializer:c}=t;if(c){if(KW(e,c))return l=!0,Tte([]);if(tg(c,!0))return l=!0,function(e,t,n,r,o,i){switch(e.kind){case 206:{const n=Q(e.elements,(e=>e.dotDotDotToken||e.initializer||e.propertyName&&!nC(e.propertyName)||!nC(e.name)?void 0:bte(e.propertyName&&e.propertyName.text,e.name.text)));if(n)return Tte([mQ(void 0,n,t,i)])}case 207:{const n=_te(jne(t.text,o),r);return Tte([mQ(UA.createIdentifier(n),void 0,t,i),Ete(void 0,mZ(e),UA.createIdentifier(n))])}case 80:return function(e,t,n,r,o){const i=n.getSymbolAtLocation(e),a=new Map;let s,l=!1;for(const d of r.original.get(e.text)){if(n.getSymbolAtLocation(d)!==i||d===e)continue;const{parent:t}=d;if(lD(t)){const{name:{text:e}}=t;if("default"===e){l=!0;const e=d.getText();(s??(s=new Map)).set(t,UA.createIdentifier(e))}else{In.assert(t.expression===d,"Didn't expect expression === use");let n=a.get(e);void 0===n&&(n=_te(e,r),a.set(e,n)),(s??(s=new Map)).set(t,UA.createIdentifier(n))}}else l=!0}const c=0===a.size?void 0:Ye(H(a.entries(),(([e,t])=>UA.createImportSpecifier(!1,e===t?void 0:UA.createIdentifier(e),UA.createIdentifier(t)))));c||(l=!0);return Tte([mQ(l?mZ(e):void 0,c,t,o)],s)}(e,t,n,r,i);default:return In.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}(n,c.arguments[0],r,o,i,a);if(lD(c)&&tg(c.expression,!0))return l=!0,function(e,t,n,r,o){switch(e.kind){case 206:case 207:{const i=_te(t,r);return Tte([vte(i,t,n,o),Ete(void 0,e,UA.createIdentifier(i))])}case 80:return Tte([vte(e.text,t,n,o)]);default:return In.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}(n,c.name.text,c.expression.arguments[0],o,a)}return Tte([UA.createVariableStatement(void 0,UA.createVariableDeclarationList([t],s.flags))])}));if(l){let r;return n.replaceNodeWithNodes(e,t,J(c,(e=>e.newImports))),x(c,(e=>{e.useSitesToUnqualify&&Bf(e.useSitesToUnqualify,r??(r=new Map))})),r}}function pte(e){return Ste(void 0,e)}function fte(e){return Ste([UA.createExportSpecifier(!1,void 0,"default")],e)}function mte(e,t){return t&&se(Ye(t.keys()),(t=>P$(e,t)))?mt(e)?yZ(e,!0,n):_Z(e,!0,n):e;function n(e){if(211===e.kind){const n=t.get(e);return t.delete(e),n}}}function _te(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function hte(e){const t=ct();return gte(e,(e=>t.add(e.text,e))),t}function gte(e,t){nC(e)&&function(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:case 276:return t.propertyName!==e;default:return!0}}(e)&&t(e),e.forEachChild((e=>gte(e,t)))}function yte(e,t,n,r){return UA.createFunctionDeclaration(ce(t,gZ(n.modifiers)),mZ(n.asteriskToken),e,gZ(n.typeParameters),gZ(n.parameters),mZ(n.type),UA.converters.convertToFunctionBlock(mte(n.body,r)))}function vte(e,t,n,r){return"default"===t?mQ(UA.createIdentifier(e),void 0,n,r):mQ(void 0,[bte(t,e)],n,r)}function bte(e,t){return UA.createImportSpecifier(!1,void 0!==e&&e!==t?UA.createIdentifier(e):void 0,UA.createIdentifier(t))}function Ete(e,t,n){return UA.createVariableStatement(e,UA.createVariableDeclarationList([UA.createVariableDeclaration(t,void 0,void 0,n)],2))}function Ste(e,t){return UA.createExportDeclaration(void 0,!1,e&&UA.createNamedExports(e),void 0===t?void 0:UA.createStringLiteral(t))}function Tte(e,t){return{newImports:e,useSitesToUnqualify:t}}var xte,Ate,Ite=b({"src/services/codefixes/convertToEsModule.ts"(){Tge(),sce(),p9({errorCodes:[Oa.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:n,preferences:r}=e;return[l9("convertToEsModule",p_e.ChangeTracker.with(e,(e=>{if(lte(t,n.getTypeChecker(),e,jp(n.getCompilerOptions()),gQ(t,r)))for(const o of n.getSourceFiles())ste(o,t,n,e,gQ(o,r))})),Oa.Convert_to_ES_module)]}})}});function Rte(e,t){const n=Cl(lY(e,t),gC);return In.assert(!!n,"Expected position to be owned by a qualified name."),nC(n.left)?n:void 0}function Cte(e,t,n){const r=n.right.text,o=UA.createIndexedAccessTypeNode(UA.createTypeReferenceNode(n.left,void 0),UA.createLiteralTypeNode(UA.createStringLiteral(r)));e.replaceNode(t,n,o)}var Dte,Nte,Mte=b({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){Tge(),sce(),xte="correctQualifiedNameToIndexedAccessType",p9({errorCodes:Ate=[Oa.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],getCodeActions(e){const t=Rte(e.sourceFile,e.span.start);if(!t)return;const n=p_e.ChangeTracker.with(e,(n=>Cte(n,e.sourceFile,t))),r=`${t.left.text}["${t.right.text}"]`;return[c9(xte,n,[Oa.Rewrite_as_the_indexed_access_type_0,r],xte,Oa.Rewrite_all_as_indexed_access_types)]},fixIds:[xte],getAllCodeActions:e=>y9(e,Ate,((e,t)=>{const n=Rte(t.file,t.start);n&&Cte(e,t.file,n)}))})}});function Lte(e,t){return yt(lY(t,e.start).parent,MN)}function kte(e,t,n){if(!t)return;const r=t.parent,o=r.parent,i=function(e,t){const n=e.parent;if(1===n.elements.length)return n.elements;const r=s0(HY(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return G(n.elements,(t=>{var n;return t===e||(null==(n=a0(t,r))?void 0:n.code)===Dte[0]}))}(t,n);if(i.length===r.elements.length)e.insertModifierBefore(n.sourceFile,156,r);else{const t=UA.updateExportDeclaration(o,o.modifiers,!1,UA.updateNamedExports(r,G(r.elements,(e=>!F(i,e)))),o.moduleSpecifier,void 0),a=UA.createExportDeclaration(void 0,!0,UA.createNamedExports(i),o.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,o,t,{leadingTriviaOption:p_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:p_e.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,o,a)}}var Pte,wte,Ote=b({"src/services/codefixes/convertToTypeOnlyExport.ts"(){Tge(),sce(),p9({errorCodes:Dte=[Oa.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],getCodeActions:function(e){const t=p_e.ChangeTracker.with(e,(t=>kte(t,Lte(e.span,e.sourceFile),e)));if(t.length)return[c9(Nte,t,Oa.Convert_to_type_only_export,Nte,Oa.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[Nte="convertToTypeOnlyExport"],getAllCodeActions:function(e){const t=new Map;return y9(e,Dte,((n,r)=>{const o=Lte(r,e.sourceFile);o&&LS(t,Hz(o.parent.parent))&&kte(n,o,e)}))}})}});function Fte(e,t){const{parent:n}=lY(e,t);return RN(n)||gN(n)&&n.importClause?n:void 0}function Wte(e,t,n){if(e.parent.parent.name)return!1;const r=e.parent.elements.filter((e=>!e.isTypeOnly));if(1===r.length)return!0;const o=n.getTypeChecker();for(const i of r){if(Hue.Core.eachSymbolReferenceInFile(i.name,o,t,(e=>!wx(e))))return!1}return!0}function zte(e,t,n){var r;if(RN(n))e.replaceNode(t,n,UA.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const o=n.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,n,[UA.createImportDeclaration(gZ(n.modifiers,!0),UA.createImportClause(!0,mZ(o.name,!0),void 0),mZ(n.moduleSpecifier,!0),mZ(n.attributes,!0)),UA.createImportDeclaration(gZ(n.modifiers,!0),UA.createImportClause(!0,void 0,mZ(o.namedBindings,!0)),mZ(n.moduleSpecifier,!0),mZ(n.attributes,!0))]);else{const i=275===(null==(r=o.namedBindings)?void 0:r.kind)?UA.updateNamedImports(o.namedBindings,K(o.namedBindings.elements,(e=>UA.updateImportSpecifier(e,!1,e.propertyName,e.name)))):o.namedBindings,a=UA.updateImportDeclaration(n,n.modifiers,UA.updateImportClause(o,!0,o.name,i),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,a)}}}var Bte,Gte,jte=b({"src/services/codefixes/convertToTypeOnlyImport.ts"(){Tge(),sce(),p9({errorCodes:Pte=[Oa.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,Oa._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,Oa._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],getCodeActions:function(e){var t;const n=Fte(e.sourceFile,e.span.start);if(n){const r=p_e.ChangeTracker.with(e,(t=>zte(t,e.sourceFile,n))),o=276===n.kind&&Wte(n,e.sourceFile,e.program)?p_e.ChangeTracker.with(e,(t=>zte(t,e.sourceFile,n.parent.parent.parent))):void 0,i=c9(wte,r,276===n.kind?[Oa.Use_type_0,(null==(t=n.propertyName)?void 0:t.text)??n.name.text]:Oa.Use_import_type,wte,Oa.Fix_all_with_type_only_imports);return se(o)?[l9(wte,o,Oa.Use_import_type),i]:[i]}},fixIds:[wte="convertToTypeOnlyImport"],getAllCodeActions:function(e){const t=new Set;return y9(e,Pte,((n,r)=>{const o=Fte(r.file,r.start);272!==(null==o?void 0:o.kind)||t.has(o)?276===(null==o?void 0:o.kind)&&!t.has(o.parent.parent.parent)&&Wte(o,r.file,e.program)?(zte(n,r.file,o.parent.parent.parent),t.add(o.parent.parent.parent)):276===(null==o?void 0:o.kind)&&zte(n,r.file,o):(zte(n,r.file,o),t.add(o))}))}})}});function Vte(e,t,n,r,o=!1){if(!GM(t))return;const i=function(e){var t;const{typeExpression:n}=e;if(!n)return;const r=null==(t=e.name)?void 0:t.getText();if(!r)return;if(329===n.kind)return function(e,t){const n=Hte(t);if(!se(n))return;return UA.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}(r,n);if(316===n.kind)return function(e,t){const n=mZ(t.type);if(!n)return;return UA.createTypeAliasDeclaration(void 0,UA.createIdentifier(e),void 0,n)}(r,n)}(t);if(!i)return;const a=t.parent,{leftSibling:s,rightSibling:l}=function(e){const t=e.parent,n=t.getChildCount()-1,r=t.getChildren().findIndex((t=>t.getStart()===e.getStart()&&t.getEnd()===e.getEnd())),o=r>0?t.getChildAt(r-1):void 0,i=r<n?t.getChildAt(r+1):void 0;return{leftSibling:o,rightSibling:i}}(t);let c=a.getStart(),d="";!s&&a.comment&&(c=Ute(a,a.getStart(),t.getStart()),d=`${r} */${r}`),s&&(o&&GM(s)?(c=t.getStart(),d=""):(c=Ute(a,s.getStart(),t.getStart()),d=`${r} */${r}`));let u=a.getEnd(),p="";l&&(o&&GM(l)?(u=l.getStart(),p=`${r}${r}`):(u=l.getStart(),p=`${r}/**${r} * `)),e.replaceRange(n,{pos:c,end:u},i,{prefix:d,suffix:p})}function Ute(e,t,n){const r=e.getText().substring(t-e.getStart(),n-e.getStart());for(let o=r.length;o>0;o--)if(!/[*/\s]/g.test(r.substring(o-1,o)))return t+o;return n}function Hte(e){const t=e.jsDocPropertyTags;if(!se(t))return;return Z(t,(e=>{var t;const n=function(e){return 80===e.name.kind?e.name.text:e.name.right.text}(e),r=null==(t=e.typeExpression)?void 0:t.type,o=e.isBracketed;let i;if(r&&EM(r)){const e=Hte(r);i=UA.createTypeLiteralNode(e)}else r&&(i=mZ(r));if(i&&n){const e=o?UA.createToken(58):void 0;return UA.createPropertySignature(void 0,n,e,i)}}))}function Kte(e){return Xu(e)?J(e.jsDoc,(e=>{var t;return null==(t=e.tags)?void 0:t.filter((e=>GM(e)))})):[]}var qte,Jte,Xte=b({"src/services/codefixes/convertTypedefToType.ts"(){Tge(),sce(),Bte="convertTypedefToType",Gte=[Oa.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],p9({fixIds:[Bte],errorCodes:Gte,getCodeActions(e){const t=eZ(e.host,e.formatContext.options),n=lY(e.sourceFile,e.span.start);if(!n)return;const r=p_e.ChangeTracker.with(e,(r=>Vte(r,n,e.sourceFile,t)));return r.length>0?[c9(Bte,r,Oa.Convert_typedef_to_TypeScript_type,Bte,Oa.Convert_all_typedef_to_TypeScript_types)]:void 0},getAllCodeActions:e=>y9(e,Gte,((t,n)=>{const r=eZ(e.host,e.formatContext.options),o=lY(n.file,n.start);o&&Vte(t,o,n.file,r,!0)}))})}});function $te(e,t){const n=lY(e,t);if(nC(n)){const t=vt(n.parent.parent,SC),r=n.getText(e);return{container:vt(t.parent,WC),typeNode:t.type,constraint:r,name:"K"===r?"P":"K"}}}function Yte(e,t,{container:n,typeNode:r,constraint:o,name:i}){e.replaceNode(t,n,UA.createMappedTypeNode(void 0,UA.createTypeParameterDeclaration(void 0,i,UA.createTypeReferenceNode(o)),void 0,void 0,r,void 0))}var Qte,Zte,ene=b({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){Tge(),sce(),qte="convertLiteralTypeToMappedType",p9({errorCodes:Jte=[Oa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=$te(t,n.start);if(!r)return;const{name:o,constraint:i}=r,a=p_e.ChangeTracker.with(e,(e=>Yte(e,t,r)));return[c9(qte,a,[Oa.Convert_0_to_1_in_0,i,o],qte,Oa.Convert_all_type_literals_to_mapped_type)]},fixIds:[qte],getAllCodeActions:e=>y9(e,Jte,((e,t)=>{const n=$te(t.file,t.start);n&&Yte(e,t.file,n)}))})}});function tne(e,t){return In.checkDefined(_h(lY(e,t)),"There should be a containing class")}function nne(e){return!e.valueDeclaration||!(2&Zb(e.valueDeclaration))}function rne(e,t,n,r,o,i){const a=e.program.getTypeChecker(),s=function(e,t){const n=Oy(e);if(!n)return Mf();const r=t.getTypeAtLocation(n),o=t.getPropertiesOfType(r);return Mf(o.filter(nne))}(r,a),l=a.getTypeAtLocation(t),c=a.getPropertiesOfType(l).filter(mn(nne,(e=>!s.has(e.escapedName)))),d=a.getTypeAtLocation(r),u=L(r.members,(e=>RC(e)));d.getNumberIndexType()||f(l,1),d.getStringIndexType()||f(l,0);const p=lne(n,e.program,i,e.host);function f(t,o){const i=a.getIndexInfoOfType(t,o);i&&m(n,r,a.indexInfoToIndexSignatureDeclaration(i,r,void 0,rse(e)))}function m(e,t,n){u?o.insertNodeAfter(e,u,n):o.insertMemberAtStart(e,t,n)}nse(r,c,n,e,i,p,(e=>m(n,r,e))),p.writeFixes(o)}var one,ine,ane,sne=b({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){Tge(),sce(),Qte=[Oa.Class_0_incorrectly_implements_interface_1.code,Oa.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],Zte="fixClassIncorrectlyImplementsInterface",p9({errorCodes:Qte,getCodeActions(e){const{sourceFile:t,span:n}=e,r=tne(t,n.start);return Z(Wy(r),(n=>{const o=p_e.ChangeTracker.with(e,(o=>rne(e,n,t,r,o,e.preferences)));return 0===o.length?void 0:c9(Zte,o,[Oa.Implement_interface_0,n.getText(t)],Zte,Oa.Implement_all_unimplemented_interfaces)}))},fixIds:[Zte],getAllCodeActions(e){const t=new Map;return y9(e,Qte,((n,r)=>{const o=tne(r.file,r.start);if(LS(t,Hz(o)))for(const t of Wy(o))rne(e,t,r.file,o,n,e.preferences)}))}})}});function lne(e,t,n,r,o){return cne(e,t,!1,n,r,o)}function cne(e,t,n,r,o,i){const a=t.getCompilerOptions(),s=[],l=[],c=new Map,d=new Map;return{addImportFromDiagnostic:function(e,t){const r=Sne(t,e.code,e.start,n);if(!r||!r.length)return;u(Pe(r))},addImportFromExportedSymbol:function(n,s){const l=In.checkDefined(n.parent),c=f0(n,jp(a)),d=t.getTypeChecker(),p=d.getMergedSymbol(hS(n,d)),f=_ne(e,p,c,l,!1,t,o,r,i),m=bne(e,t),_=fne(e,In.checkDefined(f),t,void 0,!!s,m,o,r);_&&u({fix:_,symbolName:c,errorIdentifierText:void 0})},writeFixes:function(t,n){let o,i;o=0===e.imports.length&&void 0!==n?n:gQ(e,r);for(const r of s)Lne(t,e,r);for(const r of l)kne(t,e,r,o);c.forEach((({importClauseOrBindingPattern:n,defaultImport:o,namedImports:i})=>{Mne(t,e,n,o,Ye(i.entries(),(([e,t])=>({addAsTypeOnly:t,name:e}))),r)})),d.forEach((({useRequire:e,defaultImport:t,namedImports:n,namespaceLikeImport:s},l)=>{const c=(e?Wne:Fne)(l.slice(2),o,t,n&&Ye(n.entries(),(([e,t])=>({addAsTypeOnly:t,name:e}))),s,a,r);i=Se(i,c)})),i&&RQ(t,e,i,!0,r)},hasFixes:function(){return s.length>0||l.length>0||c.size>0||d.size>0}};function u(e){var t,n;const{fix:r,symbolName:o}=e;switch(r.kind){case 0:s.push(r);break;case 1:l.push(r);break;case 2:{const{importClauseOrBindingPattern:e,importKind:n,addAsTypeOnly:a}=r,s=String(Hz(e));let l=c.get(s);if(l||c.set(s,l={importClauseOrBindingPattern:e,defaultImport:void 0,namedImports:new Map}),0===n){const e=null==l?void 0:l.namedImports.get(o);l.namedImports.set(o,i(e,a))}else In.assert(void 0===l.defaultImport||l.defaultImport.name===o,"(Add to Existing) Default import should be missing or match symbolName"),l.defaultImport={name:o,addAsTypeOnly:i(null==(t=l.defaultImport)?void 0:t.addAsTypeOnly,a)};break}case 3:{const{moduleSpecifier:e,importKind:t,useRequire:s,addAsTypeOnly:l}=r,c=function(e,t,n,r){const o=a(e,!0),i=a(e,!1),s=d.get(o),l=d.get(i),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:n};if(1===t&&2===r)return s||(d.set(o,c),c);if(1===r&&(s||l))return s||l;if(l)return l;return d.set(i,c),c}(e,t,s,l);switch(In.assert(c.useRequire===s,"(Add new) Tried to add an `import` and a `require` for the same module"),t){case 1:In.assert(void 0===c.defaultImport||c.defaultImport.name===o,"(Add new) Default import should be missing or match symbolName"),c.defaultImport={name:o,addAsTypeOnly:i(null==(n=c.defaultImport)?void 0:n.addAsTypeOnly,l)};break;case 0:const e=(c.namedImports||(c.namedImports=new Map)).get(o);c.namedImports.set(o,i(e,l));break;case 3:case 2:In.assert(void 0===c.namespaceLikeImport||c.namespaceLikeImport.name===o,"Namespacelike import shoudl be missing or match symbolName"),c.namespaceLikeImport={importKind:t,name:o,addAsTypeOnly:l}}break}case 4:break;default:In.assertNever(r,`fix wasn't never - got kind ${r.kind}`)}function i(e,t){return Math.max(e??0,t)}function a(e,t){return`${t?1:0}|${e}`}}}function dne(e,t,n,r){const o=n0(e,r,n),i=vne(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:function(a,s,l,c){const{fixes:d,computedWithoutCacheCount:u}=gne(a,s,l,!1,t,e,n,r,i,c),p=Tne(d,e,t,o,n);return p&&{...p,computedWithoutCacheCount:u}}}}function une(e,t,n,r,o,i,a,s,l,c,d,u){let p;n?(p=F0(r,a,s,d,u).get(r.path,n),In.assertIsDefined(p,"Some exportInfo should match the specified exportMapKey")):(p=Xi(Gv(t.name))?[hne(e,o,t,s,a)]:_ne(r,e,o,t,i,s,a,d,u),In.assertIsDefined(p,"Some exportInfo should match the specified symbol / moduleSymbol"));const f=bne(r,s),m=wx(lY(r,c)),_=In.checkDefined(fne(r,p,s,c,m,f,a,d));return{moduleSpecifier:_.moduleSpecifier,codeAction:mne(Dne({host:a,formatContext:l,preferences:d},r,o,_,!1,s,d))}}function pne(e,t,n,r,o,i){const a=n.getCompilerOptions(),s=ze(Cne(e,n.getTypeChecker(),t,a)),l=Rne(e,t,s,n),c=s!==t.text;return l&&mne(Dne({host:r,formatContext:o,preferences:i},e,s,l,c,n,i))}function fne(e,t,n,r,o,i,a,s){const l=n0(e,s,a);return Tne(gne(t,r,o,i,n,e,a,s).fixes,e,n,l,a)}function mne({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function _ne(e,t,n,r,o,i,a,s,l){const c=Ene(i,a);return F0(e,a,i,s,l).search(e.path,o,(e=>e===n),(e=>{if(hS(e[0].symbol,c(e[0].isFromPackageJson))===t&&e.some((e=>e.moduleSymbol===r||e.symbol.parent===r)))return e}))}function hne(e,t,n,r,o){var i,a;const s=r.getCompilerOptions(),l=d(r.getTypeChecker(),!1);if(l)return l;const c=null==(a=null==(i=o.getPackageJsonAutoImportProvider)?void 0:i.call(o))?void 0:a.getTypeChecker();return In.checkDefined(c&&d(c,!0),"Could not find symbol in specified module for code actions");function d(r,o){const i=W0(n,r,s);if(i&&hS(i.symbol,r)===e)return{symbol:i.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:i.exportKind,targetFlags:hS(e,r).flags,isFromPackageJson:o};const a=r.tryGetMemberInModuleExportsAndProperties(t,n);return a&&hS(a,r)===e?{symbol:a,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:hS(e,r).flags,isFromPackageJson:o}:void 0}}function gne(e,t,n,r,i,a,s,l,c=vne(i.getTypeChecker(),a,i.getCompilerOptions()),d){const u=i.getTypeChecker(),p=J(e,c.getImportsForExportInfo),f=void 0!==t&&function(e,t){return I(e,(({declaration:e,importKind:n})=>{var r;if(0!==n)return;const o=function(e){var t,n,r;switch(e.kind){case 260:return null==(t=yt(e.name,nC))?void 0:t.text;case 271:return e.name.text;case 272:return null==(r=yt(null==(n=e.importClause)?void 0:n.namedBindings,xN))?void 0:r.name.text;default:return In.assertNever(e)}}(e),i=o&&(null==(r=Fg(e))?void 0:r.text);return i?{kind:0,namespacePrefix:o,usagePosition:t,moduleSpecifier:i}:void 0}))}(p,t),m=function(e,t,n,r){let o;for(const a of e){const e=i(a);if(!e)continue;const t=ad(e.importClauseOrBindingPattern);if(4!==e.addAsTypeOnly&&t||4===e.addAsTypeOnly&&!t)return e;o??(o=e)}return o;function i({declaration:e,importKind:o,symbol:i,targetFlags:a}){if(3===o||2===o||271===e.kind)return;if(260===e.kind)return 0!==o&&1!==o||206!==e.name.kind?void 0:{kind:2,importClauseOrBindingPattern:e.name,importKind:o,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4};const{importClause:s}=e;if(!s||!np(e.moduleSpecifier))return;const{name:l,namedBindings:c}=s;if(s.isTypeOnly&&(0!==o||!c))return;const d=yne(t,!1,i,a,n,r);return 1===o&&(l||2===d&&c)||0===o&&274===(null==c?void 0:c.kind)?void 0:{kind:2,importClauseOrBindingPattern:s,importKind:o,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:d}}}(p,n,u,i.getCompilerOptions());if(m)return{computedWithoutCacheCount:0,fixes:[...f?[f]:o,m]};const{fixes:_,computedWithoutCacheCount:h=0}=function(e,t,n,r,o,i,a,s,l,c){const d=I(t,(e=>function({declaration:e,importKind:t,symbol:n,targetFlags:r},o,i,a,s){var l;const c=null==(l=Fg(e))?void 0:l.text;if(c){return{kind:3,moduleSpecifier:c,importKind:t,addAsTypeOnly:i?4:yne(o,!0,n,r,a,s),useRequire:i}}}(e,i,a,n.getTypeChecker(),n.getCompilerOptions())));return d?{fixes:[d]}:function(e,t,n,r,o,i,a,s,l){const c=Jh(t),d=e.getCompilerOptions(),u=dQ(e,a),p=Ene(e,a),f=pQ(Up(d)),m=l?e=>({moduleSpecifiers:Rz.tryGetModuleSpecifiersFromCache(e,t,u,s),computedWithoutCache:!1}):(e,n)=>Rz.getModuleSpecifiersWithCacheInfo(e,n,d,t,u,s,void 0,!0);let _=0;const h=J(i,((e,i)=>{const a=p(e.isFromPackageJson),{computedWithoutCache:s,moduleSpecifiers:l}=m(e.moduleSymbol,a),u=!!(111551&e.targetFlags),h=yne(r,!0,e.symbol,e.targetFlags,a,d);return _+=s?1:0,Z(l,(r=>{var s;if(f&&HF(r))return;if(!u&&c&&void 0!==n)return{kind:1,moduleSpecifier:r,usagePosition:n,exportInfo:e,isReExport:i>0};const l=Ine(t,e.exportKind,d);let p;if(void 0!==n&&3===l&&0===e.exportKind){const t=a.resolveExternalModuleSymbol(e.moduleSymbol);let r;t!==e.moduleSymbol&&(r=null==(s=B0(t,a,d))?void 0:s.name),r||(r=Gne(e.moduleSymbol,jp(d),!1)),p={namespacePrefix:r,usagePosition:n}}return{kind:3,moduleSpecifier:r,importKind:l,useRequire:o,addAsTypeOnly:h,exportInfo:e,isReExport:i>0,qualification:p}}))}));return{computedWithoutCacheCount:_,fixes:h}}(n,r,o,i,a,e,s,l,c)}(e,p,i,a,t,n,r,s,l,d);return{computedWithoutCacheCount:h,fixes:[...f?[f]:o,..._]}}function yne(e,t,n,r,o,i){return e?t&&2===i.importsNotUsedAsValues?2:!ST(i)||111551&r&&!o.getTypeOnlyAliasDeclaration(n)?1:2:4}function vne(e,t,n){let r;for(const o of t.imports){const t=Wg(o);if(ng(t.parent)){const n=e.resolveExternalModuleName(o);n&&(r||(r=ct())).add(Kz(n),t.parent)}else if(272===t.kind||271===t.kind){const n=e.getSymbolAtLocation(o);n&&(r||(r=ct())).add(Kz(n),t)}}return{getImportsForExportInfo:({moduleSymbol:e,exportKind:i,targetFlags:a,symbol:s})=>{if(!(111551&a)&&Jh(t))return o;const l=null==r?void 0:r.get(Kz(e));if(!l)return o;const c=Ine(t,i,n);return l.map((e=>({declaration:e,importKind:c,symbol:s,targetFlags:a})))}}}function bne(e,t){if(!Jh(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const n=t.getCompilerOptions();if(n.configFile)return Vp(n)<5;if(1===e.impliedNodeFormat)return!0;if(99===e.impliedNodeFormat)return!1;for(const r of t.getSourceFiles())if(r!==e&&Jh(r)&&!t.isSourceFileFromExternalLibrary(r)){if(r.commonJsModuleIndicator&&!r.externalModuleIndicator)return!0;if(r.externalModuleIndicator&&!r.commonJsModuleIndicator)return!1}return!0}function Ene(e,t){return Dt((n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker()))}function Sne(e,t,n,r){const o=lY(e.sourceFile,n);let i;if(t===Oa._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)i=function({sourceFile:e,program:t,host:n,preferences:r},o){const i=t.getTypeChecker(),a=function(e,t){const n=nC(e)?t.getSymbolAtLocation(e):void 0;if(DS(n))return n;const{parent:r}=e;if(ju(r)&&r.tagName===e||GN(r)){const n=t.resolveName(t.getJsxNamespace(r),ju(r)?e:r,111551,!1);if(DS(n))return n}return}(o,i);if(!a)return;const s=i.getAliasedSymbol(a),l=a.name,c=[{symbol:a,moduleSymbol:s,moduleFileName:void 0,exportKind:3,targetFlags:s.flags,isFromPackageJson:!1}],d=bne(e,t);return gne(c,void 0,!1,d,t,e,n,r).fixes.map((e=>{var t;return{fix:e,symbolName:l,errorIdentifierText:null==(t=yt(o,nC))?void 0:t.text}}))}(e,o);else{if(!nC(o))return;if(t===Oa._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const t=ze(Cne(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),n=Rne(e.sourceFile,o,t,e.program);return n&&[{fix:n,symbolName:t,errorIdentifierText:o.text}]}i=function({sourceFile:e,program:t,cancellationToken:n,host:r,preferences:o},i,a){const s=t.getTypeChecker(),l=t.getCompilerOptions();return J(Cne(e,s,i,l),(s=>{if("default"===s)return;const l=wx(i),c=bne(e,t),d=function(e,t,n,r,o,i,a,s,l){var c;const d=ct(),u=n0(o,l,s),p=null==(c=s.getModuleSpecifierCache)?void 0:c.call(s),f=Dt((e=>dQ(e?s.getPackageJsonAutoImportProvider():i,s)));function m(e,t,n,r,i,a){const s=f(a);if(t&&P0(i,o,t,l,u,s,p)||!t&&u.allowsImportingAmbientModule(e,s)){const o=i.getTypeChecker();d.add(uZ(n,o).toString(),{symbol:n,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:r,targetFlags:hS(n,o).flags,isFromPackageJson:a})}}return w0(i,s,l,a,((o,i,a,s)=>{const l=a.getTypeChecker();r.throwIfCancellationRequested();const c=a.getCompilerOptions(),d=W0(o,l,c);d&&(d.name===e||Gne(o,jp(c),t)===e)&&Bne(d.resolvedSymbol,n)&&m(o,i,d.symbol,d.exportKind,a,s);const u=l.tryGetMemberInModuleExportsAndProperties(e,o);u&&Bne(u,n)&&m(o,i,u,0,a,s)})),d}(s,zh(i),r$(i),n,e,t,a,r,o);return Ye($(d.values(),(n=>gne(n,i.getStart(e),l,c,t,e,r,o).fixes)),(e=>({fix:e,symbolName:s,errorIdentifierText:i.text,isJsxNamespaceFix:s!==i.text})))}))}(e,o,r)}const a=n0(e.sourceFile,e.preferences,e.host);return i&&function(e,t,n,r,o){const i=e=>ga(e,o.getCurrentDirectory(),Jv(o));return Ce(e,((e,o)=>Jt(!!e.isJsxNamespaceFix,!!o.isJsxNamespaceFix)||Ft(e.fix.kind,o.fix.kind)||xne(e.fix,o.fix,t,n,r.allowsImportingSpecifier,i)))}(i,e.sourceFile,e.program,a,e.host)}function Tne(e,t,n,r,o){if(se(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce(((e,i)=>-1===xne(i,e,t,n,r.allowsImportingSpecifier,(e=>ga(e,o.getCurrentDirectory(),Jv(o))))?i:e))}function xne(e,t,n,r,o,i){return 0!==e.kind&&0!==t.kind?Jt(o(t.moduleSpecifier),o(e.moduleSpecifier))||function(e,t,n,r){return dn(e,"node:")&&!dn(t,"node:")?S0(n,r)?-1:1:dn(t,"node:")&&!dn(e,"node:")?S0(n,r)?1:-1:0}(e.moduleSpecifier,t.moduleSpecifier,n,r)||Jt(Ane(e,n,r.getCompilerOptions(),i),Ane(t,n,r.getCompilerOptions(),i))||lx(e.moduleSpecifier,t.moduleSpecifier):0}function Ane(e,t,n,r){var o;if(e.isReExport&&(null==(o=e.exportInfo)?void 0:o.moduleFileName)&&"index"===oa(e.exportInfo.moduleFileName,[".js",".jsx",".d.ts",".ts",".tsx"],!0)){const n=r(ra(e.exportInfo.moduleFileName));return dn(t.path,n)}return!1}function Ine(e,t,n,r){if(n.verbatimModuleSyntax&&(1===Vp(n)||1===e.impliedNodeFormat))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return function(e,t,n){const r=Jp(t),o=$h(e);if(!o&&Vp(t)>=5)return r?1:2;if(o)return uP(e)||n?r?1:2:3;for(const i of e.statements)if(hN(i)&&!im(i.moduleReference))return 3;return r?1:3}(e,n,!!r);case 3:return function(e,t,n){if(Jp(t))return 1;const r=Vp(t);switch(r){case 2:case 1:case 3:return $h(e)&&(uP(e)||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return 99===e.impliedNodeFormat?2:3;default:return In.assertNever(r,`Unexpected moduleKind ${r}`)}}(e,n,!!r);default:return In.assertNever(t)}}function Rne(e,t,n,r){const o=r.getTypeChecker(),i=o.resolveName(n,t,111551,!0);if(!i)return;const a=o.getTypeOnlyAliasDeclaration(i);return a&&Yf(a)===e?{kind:4,typeOnlyAliasDeclaration:a}:void 0}function Cne(e,t,n,r){const o=n.parent;if((ju(o)||zN(o))&&o.tagName===n&&I0(r.jsx)){const r=t.getJsxNamespace(e);if(function(e,t,n){if(jv(t.text))return!0;const r=n.resolveName(e,t,111551,!0);return!r||se(r.declarations,ld)&&!(111551&r.flags)}(r,n,t)){return!jv(n.text)&&!t.resolveName(n.text,n,111551,!1)?[n.text,r]:[r]}}return[n.text]}function Dne(e,t,n,r,i,a,s){let l;const c=p_e.ChangeTracker.with(e,(e=>{l=function(e,t,n,r,i,a,s){const l=gQ(t,s);switch(r.kind){case 0:return Lne(e,t,r),[Oa.Change_0_to_1,n,`${r.namespacePrefix}.${n}`];case 1:return kne(e,t,r,l),[Oa.Change_0_to_1,n,Pne(r.moduleSpecifier,l)+n];case 2:{const{importClauseOrBindingPattern:a,importKind:l,addAsTypeOnly:c,moduleSpecifier:d}=r;Mne(e,t,a,1===l?{name:n,addAsTypeOnly:c}:void 0,0===l?[{name:n,addAsTypeOnly:c}]:o,s);const u=Gv(d);return i?[Oa.Import_0_from_1,n,u]:[Oa.Update_import_from_0,u]}case 3:{const{importKind:o,moduleSpecifier:c,addAsTypeOnly:d,useRequire:u,qualification:p}=r;return RQ(e,t,(u?Wne:Fne)(c,l,1===o?{name:n,addAsTypeOnly:d}:void 0,0===o?[{name:n,addAsTypeOnly:d}]:void 0,2===o||3===o?{importKind:o,name:(null==p?void 0:p.namespacePrefix)||n,addAsTypeOnly:d}:void 0,a.getCompilerOptions(),s),!0,s),p&&Lne(e,t,p),i?[Oa.Import_0_from_1,n,c]:[Oa.Add_import_from_0,c]}case 4:{const{typeOnlyAliasDeclaration:o}=r,i=function(e,t,n,r,o){const i=n.getCompilerOptions(),a=ST(i);switch(t.kind){case 276:if(t.isTypeOnly){const n=gfe.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&n){const i=UA.updateImportSpecifier(t,!1,t.propertyName,t.name),a=gfe.getOrganizeImportsComparer(o,2===n),s=gfe.getImportSpecifierInsertionIndex(t.parent.elements,i,a,o);if(s!==t.parent.elements.indexOf(t))return e.delete(r,t),e.insertImportSpecifierAtIndex(r,i,t.parent,s),t}return e.deleteRange(r,{pos:vm(t.getFirstToken()),end:vm(t.propertyName??t.name)}),t}return In.assert(t.parent.parent.isTypeOnly),s(t.parent.parent),t.parent.parent;case 273:return s(t),t;case 274:return s(t.parent),t.parent;case 271:return e.deleteRange(r,t.getChildAt(1)),t;default:In.failBadSyntaxKind(t)}function s(s){var l;if(e.delete(r,CQ(s,r)),!i.allowImportingTsExtensions){const t=Fg(s.parent),o=t&&(null==(l=n.getResolvedModuleFromModuleSpecifier(t))?void 0:l.resolvedModule);if(null==o?void 0:o.resolvedUsingTsExtension){const n=Ea(t.text,IV(t.text,i));e.replaceNode(r,t,UA.createStringLiteral(n))}}if(a){const n=yt(s.namedBindings,IN);if(n&&n.elements.length>1){gfe.detectImportSpecifierSorting(n.elements,o)&&276===t.kind&&0!==n.elements.indexOf(t)&&(e.delete(r,t),e.insertImportSpecifierAtIndex(r,t,n,0));for(const o of n.elements)o===t||o.isTypeOnly||e.insertModifierBefore(r,156,o)}}}}(e,o,a,t,s);return 276===i.kind?[Oa.Remove_type_from_import_of_0_from_1,n,Nne(i.parent.parent)]:[Oa.Remove_type_from_import_declaration_from_0,Nne(i)]}default:return In.assertNever(r,`Unexpected fix kind ${r.kind}`)}}(e,t,n,r,i,a,s)}));return c9(one,c,l,ine,Oa.Add_all_missing_imports)}function Nne(e){var t,n;return 271===e.kind?(null==(n=yt(null==(t=yt(e.moduleReference,wN))?void 0:t.expression,np))?void 0:n.text)||e.moduleReference.getText():vt(e.parent.moduleSpecifier,zR).text}function Mne(e,t,n,r,o,i){var a;if(206===n.kind){r&&c(n,r.name,"default");for(const e of o)c(n,e.name,void 0);return}const s=n.isTypeOnly&&se([r,...o],(e=>4===(null==e?void 0:e.addAsTypeOnly))),l=n.namedBindings&&(null==(a=yt(n.namedBindings,IN))?void 0:a.elements);if(r&&(In.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),UA.createIdentifier(r.name),{suffix:", "})),o.length){let r;if("boolean"===typeof i.organizeImportsIgnoreCase)r=i.organizeImportsIgnoreCase;else if(l){const e=gfe.detectImportSpecifierSorting(l,i);3!==e&&(r=2===e)}void 0===r&&(r=2===gfe.detectSorting(t,i));const a=gfe.getOrganizeImportsComparer(i,r),c=Ne(o.map((e=>UA.createImportSpecifier((!n.isTypeOnly||s)&&One(e,i),void 0,UA.createIdentifier(e.name)))),((e,t)=>gfe.compareImportOrExportSpecifiers(e,t,a))),d=(null==l?void 0:l.length)&&gfe.detectImportSpecifierSorting(l,i);if(!d||r&&1===d){if(null==l?void 0:l.length)for(const n of c)e.insertNodeInListAfter(t,Fe(l),n,l);else if(c.length){const r=UA.createNamedImports(c);n.namedBindings?e.replaceNode(t,n.namedBindings,r):e.insertNodeAfter(t,In.checkDefined(n.name,"Import clause must have either named imports or a default import"),r)}}else for(const o of c){const r=s&&!o.isTypeOnly?0:gfe.getImportSpecifierInsertionIndex(l,o,a,i);e.insertImportSpecifierAtIndex(t,o,n.namedBindings,r)}}if(s&&(e.delete(t,CQ(n,t)),l))for(const d of l)e.insertModifierBefore(t,156,d);function c(n,r,o){const i=UA.createBindingElement(void 0,o,r);n.elements.length?e.insertNodeInListAfter(t,Fe(n.elements),i):e.replaceNode(t,n,UA.createObjectBindingPattern([i]))}}function Lne(e,t,{namespacePrefix:n,usagePosition:r}){e.insertText(t,r,n+".")}function kne(e,t,{moduleSpecifier:n,usagePosition:r},o){e.insertText(t,r,Pne(n,o))}function Pne(e,t){const n=yQ(t);return`import(${n}${e}${n}).`}function wne({addAsTypeOnly:e}){return 2===e}function One(e,t){return wne(e)||!!t.preferTypeOnlyAutoImports&&4!==e.addAsTypeOnly}function Fne(e,t,n,r,o,i,a){const s=_Q(e,t);let l;if(void 0!==n||(null==r?void 0:r.length)){const o=(!n||wne(n))&&M(r,wne)||(i.verbatimModuleSyntax||a.preferTypeOnlyAutoImports)&&4!==(null==n?void 0:n.addAsTypeOnly)&&!se(r,(e=>4===e.addAsTypeOnly));l=Se(l,mQ(n&&UA.createIdentifier(n.name),null==r?void 0:r.map((e=>UA.createImportSpecifier(!o&&One(e,a),void 0,UA.createIdentifier(e.name)))),e,t,o))}if(o){l=Se(l,3===o.importKind?UA.createImportEqualsDeclaration(void 0,One(o,a),UA.createIdentifier(o.name),UA.createExternalModuleReference(s)):UA.createImportDeclaration(void 0,UA.createImportClause(One(o,a),void 0,UA.createNamespaceImport(UA.createIdentifier(o.name))),s,void 0))}return In.checkDefined(l)}function Wne(e,t,n,r,o){const i=_Q(e,t);let a;if(n||(null==r?void 0:r.length)){const e=(null==r?void 0:r.map((({name:e})=>UA.createBindingElement(void 0,void 0,e))))||[];n&&e.unshift(UA.createBindingElement(void 0,"default",n.name));a=Se(a,zne(UA.createObjectBindingPattern(e),i))}if(o){a=Se(a,zne(o.name,i))}return In.checkDefined(a)}function zne(e,t){return UA.createVariableStatement(void 0,UA.createVariableDeclarationList([UA.createVariableDeclaration("string"===typeof e?UA.createIdentifier(e):e,void 0,void 0,UA.createCallExpression(UA.createIdentifier("require"),void 0,[t]))],2))}function Bne({declarations:e},t){return se(e,(e=>!!(n$(e)&t)))}function Gne(e,t,n){return jne(cx(Gv(e.name)),t,n)}function jne(e,t,n){const r=oa(Qt(e,"/index"));let o="",i=!0;const a=r.charCodeAt(0);Fs(a,t)?(o+=String.fromCharCode(a),n&&(o=o.toUpperCase())):i=!1;for(let s=1;s<r.length;s++){const e=r.charCodeAt(s),n=Ws(e,t);if(n){let t=String.fromCharCode(e);i||(t=t.toUpperCase()),o+=t}i=n}return Xy(o)?`_${o}`:o||"_"}var Vne,Une,Hne=b({"src/services/codefixes/importFixes.ts"(){Tge(),sce(),one="import",ine="fixMissingImport",p9({errorCodes:ane=[Oa.Cannot_find_name_0.code,Oa.Cannot_find_name_0_Did_you_mean_1.code,Oa.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Oa.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Oa.Cannot_find_namespace_0.code,Oa._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,Oa._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,Oa.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,Oa._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,Oa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,Oa.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,Oa.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,Oa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,Oa.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,Oa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,Oa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,Oa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,Oa.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,Oa.Cannot_find_namespace_0_Did_you_mean_1.code],getCodeActions(e){const{errorCode:t,preferences:n,sourceFile:r,span:o,program:i}=e,a=Sne(e,t,o.start,!0);if(a)return a.map((({fix:t,symbolName:o,errorIdentifierText:a})=>Dne(e,r,o,t,o!==a,i,n)))},fixIds:[ine],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:r,host:o,cancellationToken:i}=e,a=cne(t,n,!0,r,o,i);return v9(e,ane,(t=>a.addImportFromDiagnostic(t,e))),h9(p_e.ChangeTracker.with(e,a.writeFixes))}})}});function Kne(e,t,n){const r=L(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const o=L(r.relatedInformation,(e=>e.code===Oa.This_type_parameter_might_need_an_extends_0_constraint.code));if(void 0===o||void 0===o.file||void 0===o.start||void 0===o.length)return;let i=Sse(o.file,dl(o.start,o.length));if(void 0!==i&&(nC(i)&&vC(i.parent)&&(i=i.parent),vC(i))){if(QC(i.parent))return;const r=lY(t,n.start),a=function(e,t){if(Gd(t.parent))return e.getTypeArgumentConstraint(t.parent);const n=uu(t)?e.getContextualType(t):void 0;return n||e.getTypeAtLocation(t)}(e.getTypeChecker(),r)||function(e){const[,t]=zU(e,"\n",0).match(/`extends (.*)`/)||[];return t}(o.messageText);return{constraint:a,declaration:i,token:r}}}function qne(e,t,n,r,o,i){const{declaration:a,constraint:s}=i,l=t.getTypeChecker();if(ht(s))e.insertText(o,a.name.end,` extends ${s}`);else{const i=jp(t.getCompilerOptions()),c=rse({program:t,host:r}),d=lne(o,t,n,r),u=lse(l,d,s,void 0,i,void 0,c);u&&(e.replaceNode(o,a,UA.updateTypeParameterDeclaration(a,void 0,a.name,u,a.default)),d.writeFixes(e))}}var Jne,Xne,$ne,Yne,Qne,Zne=b({"src/services/codefixes/fixAddMissingConstraint.ts"(){Tge(),sce(),Vne="addMissingConstraint",p9({errorCodes:Une=[Oa.Type_0_is_not_comparable_to_type_1.code,Oa.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,Oa.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,Oa.Type_0_is_not_assignable_to_type_1.code,Oa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,Oa.Property_0_is_incompatible_with_index_signature.code,Oa.Property_0_in_type_1_is_not_assignable_to_type_2.code,Oa.Type_0_does_not_satisfy_the_constraint_1.code],getCodeActions(e){const{sourceFile:t,span:n,program:r,preferences:o,host:i}=e,a=Kne(r,t,n);if(void 0===a)return;const s=p_e.ChangeTracker.with(e,(e=>qne(e,r,o,i,t,a)));return[c9(Vne,s,Oa.Add_extends_constraint,Vne,Oa.Add_extends_constraint_to_all_type_parameters)]},fixIds:[Vne],getAllCodeActions:e=>{const{program:t,preferences:n,host:r}=e,o=new Map;return h9(p_e.ChangeTracker.with(e,(i=>{v9(e,Une,(e=>{const a=Kne(t,e.file,dl(e.start,e.length));if(a&&LS(o,Hz(a.declaration)))return qne(i,t,n,r,e.file,a)}))})))}})}});function ere(e,t,n,r){switch(n){case Oa.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case Oa.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case Oa.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case Oa.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case Oa.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(e,t,n){const r=nre(t,n);if(Jh(t))return void e.addJSDocTags(t,r,[UA.createJSDocOverrideTag(UA.createIdentifier("override"))]);const i=r.modifiers||o,a=L(i,dC),s=L(i,uC),l=L(i,(e=>WY(e.kind))),c=k(i,EC),d=s?s.end:a?a.end:l?l.end:c?Ts(t.text,c.end):r.getStart(t),u=l||a||s?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,d,164,u)}(e,t.sourceFile,r);case Oa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case Oa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case Oa.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case Oa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(e,t,n){const r=nre(t,n);if(Jh(t))return void e.filterJSDocTags(t,r,hn(MM));const o=L(r.modifiers,pC);In.assertIsDefined(o),e.deleteModifier(t,o)}(e,t.sourceFile,r);default:In.fail("Unexpected error code: "+n)}}function tre(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return gl(e,e.parent);default:return!1}}function nre(e,t){const n=Cl(lY(e,t),(e=>Md(e)?"quit":tre(e)));return In.assert(n&&tre(n)),n}var rre,ore,ire=b({"src/services/codefixes/fixOverrideModifier.ts"(){Tge(),sce(),Jne="fixOverrideModifier",Xne="fixAddOverrideModifier",$ne="fixRemoveOverrideModifier",Yne=[Oa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,Oa.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,Oa.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,Oa.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,Oa.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,Oa.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,Oa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,Oa.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,Oa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Qne={[Oa.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Oa.Add_override_modifier,fixId:Xne,fixAllDescriptions:Oa.Add_all_missing_override_modifiers},[Oa.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Oa.Add_override_modifier,fixId:Xne,fixAllDescriptions:Oa.Add_all_missing_override_modifiers},[Oa.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:Oa.Remove_override_modifier,fixId:$ne,fixAllDescriptions:Oa.Remove_all_unnecessary_override_modifiers},[Oa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:Oa.Remove_override_modifier,fixId:$ne,fixAllDescriptions:Oa.Remove_override_modifier},[Oa.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:Oa.Add_override_modifier,fixId:Xne,fixAllDescriptions:Oa.Add_all_missing_override_modifiers},[Oa.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Oa.Add_override_modifier,fixId:Xne,fixAllDescriptions:Oa.Add_all_missing_override_modifiers},[Oa.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:Oa.Add_override_modifier,fixId:Xne,fixAllDescriptions:Oa.Remove_all_unnecessary_override_modifiers},[Oa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:Oa.Remove_override_modifier,fixId:$ne,fixAllDescriptions:Oa.Remove_all_unnecessary_override_modifiers},[Oa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:Oa.Remove_override_modifier,fixId:$ne,fixAllDescriptions:Oa.Remove_all_unnecessary_override_modifiers}},p9({errorCodes:Yne,getCodeActions:function(e){const{errorCode:t,span:n}=e,r=Qne[t];if(!r)return o;const{descriptions:i,fixId:a,fixAllDescriptions:s}=r,l=p_e.ChangeTracker.with(e,(r=>ere(r,e,t,n.start)));return[d9(Jne,l,i,a,s)]},fixIds:[Jne,Xne,$ne],getAllCodeActions:e=>y9(e,Yne,((t,n)=>{const{code:r,start:o}=n,i=Qne[r];i&&i.fixId===e.fixId&&ere(t,e,r,o)}))})}});function are(e,t,n,r){const o=gQ(t,r),i=UA.createStringLiteral(n.name.text,0===o);e.replaceNode(t,n,Lc(n)?UA.createElementAccessChain(n.expression,n.questionDotToken,i):UA.createElementAccessExpression(n.expression,i))}function sre(e,t){return vt(lY(e,t).parent,lD)}var lre,cre,dre=b({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){Tge(),sce(),rre="fixNoPropertyAccessFromIndexSignature",p9({errorCodes:ore=[Oa.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],fixIds:[rre],getCodeActions(e){const{sourceFile:t,span:n,preferences:r}=e,o=sre(t,n.start),i=p_e.ChangeTracker.with(e,(t=>are(t,e.sourceFile,o,r)));return[c9(rre,i,[Oa.Use_element_access_for_0,o.name.text],rre,Oa.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>y9(e,ore,((t,n)=>are(t,n.file,sre(n.file,n.start),e.preferences)))})}});function ure(e,t,n,r){const o=lY(t,n);if(!L$(o))return;const i=vh(o,!1,!1);if((sN(i)||_D(i))&&!rM(vh(i,!1,!1))){const n=In.checkDefined(J$(i,100,t)),{name:o}=i,a=In.checkDefined(i.body);if(_D(i)){if(o&&Hue.Core.isSymbolReferencedInFile(o,r,t,a))return;return e.delete(t,n),o&&e.delete(t,o),e.insertText(t,a.pos," =>"),[Oa.Convert_function_expression_0_to_arrow_function,o?o.text:ZX]}return e.replaceNode(t,n,UA.createToken(87)),e.insertText(t,o.end," = "),e.insertText(t,a.pos," =>"),[Oa.Convert_function_declaration_0_to_arrow_function,o.text]}}var pre,fre,mre=b({"src/services/codefixes/fixImplicitThis.ts"(){Tge(),sce(),lre="fixImplicitThis",p9({errorCodes:cre=[Oa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e;let i;const a=p_e.ChangeTracker.with(e,(e=>{i=ure(e,t,r.start,n.getTypeChecker())}));return i?[c9(lre,a,i,lre,Oa.Fix_all_implicit_this_errors)]:o},fixIds:[lre],getAllCodeActions:e=>y9(e,cre,((t,n)=>{ure(t,n.file,n.start,e.program.getTypeChecker())}))})}});function _re(e,t,n){var r,o;const i=lY(e,t);if(nC(i)){const e=Cl(i,gN);if(void 0===e)return;const t=zR(e.moduleSpecifier)?e.moduleSpecifier:void 0;if(void 0===t)return;const a=null==(r=n.getResolvedModuleFromModuleSpecifier(t))?void 0:r.resolvedModule;if(void 0===a)return;const s=n.getSourceFile(a.resolvedFileName);if(void 0===s||R0(n,s))return;const l=null==(o=yt(s.symbol.valueDeclaration,Du))?void 0:o.locals;if(void 0===l)return;const c=l.get(i.escapedText);if(void 0===c)return;const d=function(e){if(void 0===e.valueDeclaration)return Le(e.declarations);const t=e.valueDeclaration,n=iN(t)?yt(t.parent.parent,GD):void 0;return n&&1===T(n.declarationList.declarations)?n:t}(c);if(void 0===d)return;return{exportName:{node:i,isTypeOnly:sA(d)},node:d,moduleSourceFile:s,moduleSpecifier:t.text}}}function hre(e,t,n,r,o){T(r)&&(o?yre(e,t,n,o,r):vre(e,t,n,r))}function gre(e,t){return k(e.statements,(e=>DN(e)&&(t&&e.isTypeOnly||!e.isTypeOnly)))}function yre(e,t,n,r,o){const i=r.exportClause&&NN(r.exportClause)?r.exportClause.elements:UA.createNodeArray([]),a=!r.isTypeOnly&&!(!Kp(t.getCompilerOptions())&&!L(i,(e=>e.isTypeOnly)));e.replaceNode(n,r,UA.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,UA.createNamedExports(UA.createNodeArray([...i,...bre(o,a)],i.hasTrailingComma)),r.moduleSpecifier,r.attributes))}function vre(e,t,n,r){e.insertNodeAtEndOfScope(n,n,UA.createExportDeclaration(void 0,!1,UA.createNamedExports(bre(r,Kp(t.getCompilerOptions()))),void 0,void 0))}function bre(e,t){return UA.createNodeArray(U(e,(e=>UA.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node))))}var Ere,Sre=b({"src/services/codefixes/fixImportNonExportedMember.ts"(){Tge(),sce(),pre="fixImportNonExportedMember",p9({errorCodes:fre=[Oa.Module_0_declares_1_locally_but_it_is_not_exported.code],fixIds:[pre],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,o=_re(t,n.start,r);if(void 0===o)return;const i=p_e.ChangeTracker.with(e,(e=>function(e,t,{exportName:n,node:r,moduleSourceFile:o}){const i=gre(o,n.isTypeOnly);i?yre(e,t,o,i,[n]):lA(r)?e.insertExportModifier(o,r):vre(e,t,o,[n])}(e,r,o)));return[c9(pre,i,[Oa.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],pre,Oa.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return h9(p_e.ChangeTracker.with(e,(n=>{const r=new Map;v9(e,fre,(e=>{const o=_re(e.file,e.start,t);if(void 0===o)return;const{exportName:i,node:a,moduleSourceFile:s}=o;if(void 0===gre(s,i.isTypeOnly)&&lA(a))n.insertExportModifier(s,a);else{const e=r.get(s)||{typeOnlyExports:[],exports:[]};i.isTypeOnly?e.typeOnlyExports.push(i):e.exports.push(i),r.set(s,e)}})),r.forEach(((e,r)=>{const o=gre(r,!0);o&&o.isTypeOnly?(hre(n,t,r,e.typeOnlyExports,o),hre(n,t,r,e.exports,gre(r,!1))):hre(n,t,r,[...e.exports,...e.typeOnlyExports],o)}))})))}})}});var Tre,xre,Are=b({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){Tge(),sce(),Ere="fixIncorrectNamedTupleSyntax",p9({errorCodes:[Oa.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,Oa.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=function(e,t){return Cl(lY(e,t),(e=>202===e.kind))}(t,n.start),o=p_e.ChangeTracker.with(e,(e=>function(e,t,n){if(!n)return;let r=n.type,o=!1,i=!1;for(;190===r.kind||191===r.kind||196===r.kind;)190===r.kind?o=!0:191===r.kind&&(i=!0),r=r.type;const a=UA.updateNamedTupleMember(n,n.dotDotDotToken||(i?UA.createToken(26):void 0),n.name,n.questionToken||(o?UA.createToken(58):void 0),r);a!==n&&e.replaceNode(t,n,a)}(e,t,r)));return[c9(Ere,o,Oa.Move_labeled_tuple_element_modifiers_to_labels,Ere,Oa.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[Ere]})}});function Ire(e,t,n,r){const o=lY(e,t),i=o.parent;if((r===Oa.No_overload_matches_this_call.code||r===Oa.Type_0_is_not_assignable_to_type_1.code)&&!VN(i))return;const a=n.program.getTypeChecker();let s;if(lD(i)&&i.name===o){In.assert(Nc(o),"Expected an identifier for spelling (property access)");let e=a.getTypeAtLocation(i.expression);64&i.flags&&(e=a.getNonNullableType(e)),s=a.getSuggestedSymbolForNonexistentProperty(o,e)}else if(TD(i)&&103===i.operatorToken.kind&&i.left===o&&rC(o)){const e=a.getTypeAtLocation(i.right);s=a.getSuggestedSymbolForNonexistentProperty(o,e)}else if(gC(i)&&i.right===o){const e=a.getSymbolAtLocation(i.left);e&&1536&e.flags&&(s=a.getSuggestedSymbolForNonexistentModule(i.right,e))}else if(RN(i)&&i.name===o){In.assertNode(o,nC,"Expected an identifier for spelling (import)");const e=function(e,t){var n;if(!t||!np(t.moduleSpecifier))return;const r=null==(n=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))?void 0:n.resolvedModule;return r?e.program.getSourceFile(r.resolvedFileName):void 0}(n,Cl(o,gN));e&&e.symbol&&(s=a.getSuggestedSymbolForNonexistentModule(o,e.symbol))}else if(VN(i)&&i.name===o){In.assertNode(o,nC,"Expected an identifier for JSX attribute");const e=Cl(o,ju),t=a.getContextualTypeForArgumentAtIndex(e,0);s=a.getSuggestedSymbolForNonexistentJSXAttribute(o,t)}else if(Ub(i)&&Nd(i)&&i.name===o){const e=Cl(o,Md),t=e?Oy(e):void 0,n=t?a.getTypeAtLocation(t):void 0;n&&(s=a.getSuggestedSymbolForNonexistentClassMember(xm(o),n))}else{const e=r$(o),t=xm(o);In.assert(void 0!==t,"name should be defined"),s=a.getSuggestedSymbolForNonexistentSymbol(o,t,function(e){let t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(e))}return void 0===s?void 0:{node:o,suggestedSymbol:s}}function Rre(e,t,n,r,o){const i=wl(r);if(!zs(i,o)&&lD(n.parent)){const o=r.valueDeclaration;o&&Bl(o)&&rC(o.name)?e.replaceNode(t,n,UA.createIdentifier(i)):e.replaceNode(t,n.parent,UA.createElementAccessExpression(n.parent.expression,UA.createStringLiteral(i)))}else e.replaceNode(t,n,UA.createIdentifier(i))}var Cre,Dre,Nre,Mre,Lre,kre=b({"src/services/codefixes/fixSpelling.ts"(){Tge(),sce(),Tre="fixSpelling",p9({errorCodes:xre=[Oa.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,Oa.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,Oa.Cannot_find_name_0_Did_you_mean_1.code,Oa.Could_not_find_name_0_Did_you_mean_1.code,Oa.Cannot_find_namespace_0_Did_you_mean_1.code,Oa.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Oa.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Oa._0_has_no_exported_member_named_1_Did_you_mean_2.code,Oa.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,Oa.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,Oa.No_overload_matches_this_call.code,Oa.Type_0_is_not_assignable_to_type_1.code],getCodeActions(e){const{sourceFile:t,errorCode:n}=e,r=Ire(t,e.span.start,e,n);if(!r)return;const{node:o,suggestedSymbol:i}=r,a=jp(e.host.getCompilationSettings());return[c9("spelling",p_e.ChangeTracker.with(e,(e=>Rre(e,t,o,i,a))),[Oa.Change_spelling_to_0,wl(i)],Tre,Oa.Fix_all_detected_spelling_errors)]},fixIds:[Tre],getAllCodeActions:e=>y9(e,xre,((t,n)=>{const r=Ire(n.file,n.start,e,n.code),o=jp(e.host.getCompilationSettings());r&&Rre(t,e.sourceFile,r.node,r.suggestedSymbol,o)}))})}});function Pre(e,t,n){const r=e.createSymbol(4,t.escapedText);r.links.type=e.getTypeAtLocation(n);const o=Mf([r]);return e.createAnonymousType(void 0,o,[],[],[])}function wre(e,t,n,r){if(!t.body||!BD(t.body)||1!==T(t.body.statements))return;const o=Pe(t.body.statements);if(VD(o)&&Ore(e,t,e.getTypeAtLocation(o.expression),n,r))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(tN(o)&&VD(o.statement)){const i=UA.createObjectLiteralExpression([UA.createPropertyAssignment(o.label,o.statement.expression)]);if(Ore(e,t,Pre(e,o.label,o.statement.expression),n,r))return hD(t)?{declaration:t,kind:1,expression:i,statement:o,commentSource:o.statement.expression}:{declaration:t,kind:0,expression:i,statement:o,commentSource:o.statement.expression}}else if(BD(o)&&1===T(o.statements)){const i=Pe(o.statements);if(tN(i)&&VD(i.statement)){const a=UA.createObjectLiteralExpression([UA.createPropertyAssignment(i.label,i.statement.expression)]);if(Ore(e,t,Pre(e,i.label,i.statement.expression),n,r))return{declaration:t,kind:0,expression:a,statement:o,commentSource:i}}}}function Ore(e,t,n,r,o){if(o){const r=e.getSignatureFromDeclaration(t);if(r){Gb(t,1024)&&(n=e.createPromiseType(n));const o=e.createSignature(t,r.typeParameters,r.thisParameter,r.parameters,n,void 0,r.minArgumentCount,r.flags);n=e.createAnonymousType(void 0,Mf(),[o],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,r)}function Fre(e,t,n,r){const o=lY(t,n);if(!o.parent)return;const i=Cl(o.parent,Ad);switch(r){case Oa.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:if(!i||!i.body||!i.type||!P$(i.type,o))return;return wre(e,i,e.getTypeFromTypeNode(i.type),!1);case Oa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!i||!dD(i.parent)||!i.body)return;const t=i.parent.arguments.indexOf(i);if(-1===t)return;const n=e.getContextualTypeForArgumentAtIndex(i.parent,t);if(!n)return;return wre(e,i,n,!0);case Oa.Type_0_is_not_assignable_to_type_1.code:if(!Iy(o)||!X_(o.parent)&&!VN(o.parent))return;const r=function(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(KN(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}(o.parent);if(!r||!Ad(r)||!r.body)return;return wre(e,r,e.getTypeAtLocation(o.parent),!0)}}function Wre(e,t,n,r){vZ(n);const o=HZ(t);e.replaceNode(t,r,UA.createReturnStatement(n),{leadingTriviaOption:p_e.LeadingTriviaOption.Exclude,trailingTriviaOption:p_e.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function zre(e,t,n,r,o,i){const a=i||LZ(r)?UA.createParenthesizedExpression(r):r;vZ(o),SZ(o,a),e.replaceNode(t,n.body,a)}function Bre(e,t,n,r){e.replaceNode(t,n.body,UA.createParenthesizedExpression(r))}function Gre(e,t,n){const r=p_e.ChangeTracker.with(e,(r=>Wre(r,e.sourceFile,t,n)));return c9(Cre,r,Oa.Add_a_return_statement,Dre,Oa.Add_all_missing_return_statement)}function jre(e,t,n){const r=p_e.ChangeTracker.with(e,(r=>Bre(r,e.sourceFile,t,n)));return c9(Cre,r,Oa.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Mre,Oa.Wrap_all_object_literal_with_parentheses)}var Vre,Ure,Hre,Kre,qre,Jre=b({"src/services/codefixes/returnValueCorrect.ts"(){Tge(),sce(),Cre="returnValueCorrect",Dre="fixAddReturnStatement",Nre="fixRemoveBracesFromArrowFunctionBody",Mre="fixWrapTheBlockWithParen",p9({errorCodes:Lre=[Oa.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,Oa.Type_0_is_not_assignable_to_type_1.code,Oa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],fixIds:[Dre,Nre,Mre],getCodeActions:function(e){const{program:t,sourceFile:n,span:{start:r},errorCode:o}=e,i=Fre(t.getTypeChecker(),n,r,o);if(i)return 0===i.kind?Ee([Gre(e,i.expression,i.statement)],hD(i.declaration)?function(e,t,n,r){const o=p_e.ChangeTracker.with(e,(o=>zre(o,e.sourceFile,t,n,r,!1)));return c9(Cre,o,Oa.Remove_braces_from_arrow_function_body,Nre,Oa.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(e,i.declaration,i.expression,i.commentSource):void 0):[jre(e,i.declaration,i.expression)]},getAllCodeActions:e=>y9(e,Lre,((t,n)=>{const r=Fre(e.program.getTypeChecker(),n.file,n.start,n.code);if(r)switch(e.fixId){case Dre:Wre(t,n.file,r.expression,r.statement);break;case Nre:if(!hD(r.declaration))return;zre(t,n.file,r.declaration,r.expression,r.commentSource,!1);break;case Mre:if(!hD(r.declaration))return;Bre(t,n.file,r.declaration,r.expression);break;default:In.fail(JSON.stringify(e.fixId))}}))})}});function Xre(e,t,n,r,i){var a;const s=lY(e,t),l=s.parent;if(n===Oa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(19!==s.kind||!sD(l)||!dD(l.parent))return;const e=P(l.parent.arguments,(e=>e===l));if(e<0)return;const t=r.getResolvedSignature(l.parent);if(!(t&&t.declaration&&t.parameters[e]))return;const n=t.parameters[e].valueDeclaration;if(!(n&&bC(n)&&nC(n.name)))return;const o=Ye(r.getUnmatchedProperties(r.getTypeAtLocation(l),r.getParameterType(t,e),!1,!1));if(!T(o))return;return{kind:3,token:n.name,identifier:n.name.text,properties:o,parentDeclaration:l}}if(19===s.kind&&sD(l)){const e=r.getContextualType(l)||r.getTypeAtLocation(l),t=Ye(r.getUnmatchedProperties(r.getTypeAtLocation(l),e,!1,!1));if(!T(t))return;return{kind:3,token:l,identifier:"",properties:t,parentDeclaration:l}}if(!Nc(s))return;if(nC(s)&&Yu(l)&&l.initializer&&sD(l.initializer)){const e=r.getContextualType(s)||r.getTypeAtLocation(s),t=Ye(r.getUnmatchedProperties(r.getTypeAtLocation(l.initializer),e,!1,!1));if(!T(t))return;return{kind:3,token:s,identifier:s.text,properties:t,parentDeclaration:l.initializer}}if(nC(s)&&ju(s.parent)){const e=function(e,t,n){const r=e.getContextualType(n.attributes);if(void 0===r)return o;const i=r.getProperties();if(!T(i))return o;const a=new Set;for(const o of n.attributes.properties)if(VN(o)&&a.add(yA(o.name)),HN(o)){const t=e.getTypeAtLocation(o.expression);for(const e of t.getProperties())a.add(e.escapedName)}return G(i,(e=>zs(e.name,t,1)&&!(16777216&e.flags||48&mS(e)||a.has(e.escapedName))))}(r,jp(i.getCompilerOptions()),s.parent);if(!T(e))return;return{kind:4,token:s,attributes:e,parentDeclaration:s.parent}}if(nC(s)){const t=null==(a=r.getContextualType(s))?void 0:a.getNonNullableType();if(t&&16&RS(t)){const n=Le(r.getSignaturesOfType(t,0));if(void 0===n)return;return{kind:5,token:s,signature:n,sourceFile:e,parentDeclaration:coe(s)}}if(dD(l)&&l.expression===s)return{kind:2,token:s,call:l,sourceFile:e,modifierFlags:0,parentDeclaration:coe(s)}}if(!lD(l))return;const c=iQ(r.getTypeAtLocation(l.expression)),d=c.symbol;if(!d||!d.declarations)return;if(nC(s)&&dD(l.parent)){const t=L(d.declarations,pN),n=null==t?void 0:t.getSourceFile();if(t&&n&&!R0(i,n))return{kind:2,token:s,call:l.parent,sourceFile:e,modifierFlags:32,parentDeclaration:t};const r=L(d.declarations,rM);if(e.commonJsModuleIndicator)return;if(r&&!R0(i,r))return{kind:2,token:s,call:l.parent,sourceFile:r,modifierFlags:32,parentDeclaration:r}}const u=L(d.declarations,Md);if(!u&&rC(s))return;const p=u||L(d.declarations,(e=>cN(e)||WC(e)));if(p&&!R0(i,p.getSourceFile())){const e=!WC(p)&&(c.target||c)!==r.getDeclaredTypeOfSymbol(d);if(e&&(rC(s)||cN(p)))return;const t=p.getSourceFile(),n=WC(p)?0:(e?256:0)|(y0(s.text)?2:0),o=Jh(t);return{kind:0,token:s,call:yt(l.parent,dD),modifierFlags:n,parentDeclaration:p,declSourceFile:t,isJSFile:o}}const f=L(d.declarations,uN);return!f||1056&c.flags||rC(s)||R0(i,f.getSourceFile())?void 0:{kind:1,token:s,parentDeclaration:f}}function $re(e,t){return t.isJSFile?yn(function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:o}){if(cN(t)||WC(t))return;const i=p_e.ChangeTracker.with(e,(e=>Yre(e,n,t,o,!!(256&r))));if(0===i.length)return;const a=256&r?Oa.Initialize_static_property_0:rC(o)?Oa.Declare_a_private_field_named_0:Oa.Initialize_property_0_in_the_constructor;return c9(Vre,i,[a,o.text],Vre,Oa.Add_all_missing_members)}(e,t)):function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:o}){const i=o.text,a=256&r,s=Zre(e.program.getTypeChecker(),t,o),l=r=>p_e.ChangeTracker.with(e,(e=>eoe(e,n,t,i,s,r))),c=[c9(Vre,l(256&r),[a?Oa.Declare_static_property_0:Oa.Declare_property_0,i],Vre,Oa.Add_all_missing_members)];if(a||rC(o))return c;2&r&&c.unshift(l9(Vre,l(2),[Oa.Declare_private_property_0,i]));return c.push(function(e,t,n,r,o){const i=UA.createKeywordTypeNode(154),a=UA.createParameterDeclaration(void 0,void 0,"x",void 0,i,void 0),s=UA.createIndexSignature(void 0,[a],o),l=p_e.ChangeTracker.with(e,(e=>e.insertMemberAtStart(t,n,s)));return l9(Vre,l,[Oa.Add_index_signature_for_property_0,r])}(e,n,t,o.text,s)),c}(e,t)}function Yre(e,t,n,r,o){const i=r.text;if(o){if(231===n.kind)return;const r=n.name.getText(),o=Qre(UA.createIdentifier(r),i);e.insertNodeAfter(t,n,o)}else if(rC(r)){const r=UA.createPropertyDeclaration(void 0,i,void 0,void 0,void 0),o=toe(n);o?e.insertNodeAfter(t,o,r):e.insertMemberAtStart(t,n,r)}else{const r=_b(n);if(!r)return;const o=Qre(UA.createThis(),i);e.insertNodeAtConstructorEnd(t,r,o)}}function Qre(e,t){return UA.createExpressionStatement(UA.createAssignment(UA.createPropertyAccessExpression(e,t),loe()))}function Zre(e,t,n){let r;if(226===n.parent.parent.kind){const o=n.parent.parent,i=n.parent===o.left?o.right:o.left,a=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(i)));r=e.typeToTypeNode(a,t,1)}else{const t=e.getContextualType(n.parent);r=t?e.typeToTypeNode(t,void 0,1):void 0}return r||UA.createKeywordTypeNode(133)}function eoe(e,t,n,r,o,i){const a=i?UA.createNodeArray(UA.createModifiersFromModifierFlags(i)):void 0,s=Md(n)?UA.createPropertyDeclaration(a,r,void 0,o,void 0):UA.createPropertySignature(void 0,r,void 0,o),l=toe(n);l?e.insertNodeAfter(t,l,s):e.insertMemberAtStart(t,n,s)}function toe(e){let t;for(const n of e.members){if(!TC(n))break;t=n}return t}function noe(e,t,n,r,o,i,a){const s=lne(a,e.program,e.preferences,e.host),l=ase(Md(i)?174:173,e,s,n,r,o,i),c=function(e,t){if(WC(e))return;const n=Cl(t,(e=>AC(e)||RC(e)));return n&&n.parent===e?n:void 0}(i,n);c?t.insertNodeAfter(a,c,l):t.insertMemberAtStart(a,i,l),s.writeFixes(t)}function roe(e,t,{token:n,parentDeclaration:r}){const o=se(r.members,(e=>{const n=t.getTypeAtLocation(e);return!!(n&&402653316&n.flags)})),i=r.getSourceFile(),a=UA.createEnumMember(n,o?UA.createStringLiteral(n.text):void 0),s=Oe(r.members);s?e.insertNodeInListAfter(i,s,a,r.members):e.insertMemberAtStart(i,r,a)}function ooe(e,t,n){const r=gQ(t.sourceFile,t.preferences),o=lne(t.sourceFile,t.program,t.preferences,t.host),i=2===n.kind?ase(262,t,o,n.call,kl(n.token),n.modifierFlags,n.parentDeclaration):ise(262,t,r,n.signature,mse(Oa.Function_not_implemented.message,r),n.token,void 0,void 0,void 0,o);void 0===i&&In.fail("fixMissingFunctionDeclaration codefix got unexpected error."),QD(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,i,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,i),o.writeFixes(e)}function ioe(e,t,n){const r=lne(t.sourceFile,t.program,t.preferences,t.host),o=gQ(t.sourceFile,t.preferences),i=t.program.getTypeChecker(),a=n.parentDeclaration.attributes,s=se(a.properties,HN),l=U(n.attributes,(e=>{const a=soe(t,i,r,o,i.getTypeOfSymbol(e),n.parentDeclaration),s=UA.createIdentifier(e.name),l=UA.createJsxAttribute(s,UA.createJsxExpression(void 0,a));return Vx(s,l),l})),c=UA.createJsxAttributes(s?[...l,...a.properties]:[...a.properties,...l]),d={prefix:a.pos===a.end?" ":void 0};e.replaceNode(t.sourceFile,a,c,d),r.writeFixes(e)}function aoe(e,t,n){const r=lne(t.sourceFile,t.program,t.preferences,t.host),o=gQ(t.sourceFile,t.preferences),i=jp(t.program.getCompilerOptions()),a=t.program.getTypeChecker(),s=U(n.properties,(e=>{const s=soe(t,a,r,o,a.getTypeOfSymbol(e),n.parentDeclaration);return UA.createPropertyAssignment(function(e,t,n,r){if(Lf(e)){const t=r.symbolToNode(e,111551,void 0,1073741824);if(t&&yC(t))return t}return rA(e.name,t,0===n,!1,!1)}(e,i,o,a),s)})),l={leadingTriviaOption:p_e.LeadingTriviaOption.Exclude,trailingTriviaOption:p_e.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,UA.createObjectLiteralExpression([...n.parentDeclaration.properties,...s],!0),l),r.writeFixes(e)}function soe(e,t,n,r,i,a){if(3&i.flags)return loe();if(134217732&i.flags)return UA.createStringLiteral("",0===r);if(8&i.flags)return UA.createNumericLiteral(0);if(64&i.flags)return UA.createBigIntLiteral("0n");if(16&i.flags)return UA.createFalse();if(1056&i.flags){const e=i.symbol.exports?ke(i.symbol.exports.values()):i.symbol,n=t.symbolToExpression(i.symbol.parent?i.symbol.parent:i.symbol,111551,void 0,64);return void 0===e||void 0===n?UA.createNumericLiteral(0):UA.createPropertyAccessExpression(n,t.symbolToString(e))}if(256&i.flags)return UA.createNumericLiteral(i.value);if(2048&i.flags)return UA.createBigIntLiteral(i.value);if(128&i.flags)return UA.createStringLiteral(i.value,0===r);if(512&i.flags)return i===t.getFalseType()||i===t.getFalseType(!0)?UA.createFalse():UA.createTrue();if(65536&i.flags)return UA.createNull();if(1048576&i.flags){return I(i.types,(o=>soe(e,t,n,r,o,a)))??loe()}if(t.isArrayLikeType(i))return UA.createArrayLiteralExpression();if(function(e){return 524288&e.flags&&(128&RS(e)||e.symbol&&yt(We(e.symbol.declarations),WC))}(i)){const o=U(t.getPropertiesOfType(i),(o=>{const i=soe(e,t,n,r,t.getTypeOfSymbol(o),a);return UA.createPropertyAssignment(o.name,i)}));return UA.createObjectLiteralExpression(o,!0)}if(16&RS(i)){if(void 0===L(i.symbol.declarations||o,_n(wC,xC,AC)))return loe();const s=t.getSignaturesOfType(i,0);if(void 0===s)return loe();return ise(218,e,r,s[0],mse(Oa.Function_not_implemented.message,r),void 0,void 0,void 0,a,n)??loe()}if(1&RS(i)){const e=IS(i.symbol);if(void 0===e||Hb(e))return loe();const t=_b(e);return t&&T(t.parameters)?loe():UA.createNewExpression(UA.createIdentifier(i.symbol.name),void 0,void 0)}return loe()}function loe(){return UA.createIdentifier("undefined")}function coe(e){if(Cl(e,KN)){const t=Cl(e.parent,QD);if(t)return t}return Yf(e)}var doe,uoe,poe=b({"src/services/codefixes/fixAddMissingMember.ts"(){Tge(),sce(),Vre="fixMissingMember",Ure="fixMissingProperties",Hre="fixMissingAttributes",Kre="fixMissingFunctionDeclaration",p9({errorCodes:qre=[Oa.Property_0_does_not_exist_on_type_1.code,Oa.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,Oa.Property_0_is_missing_in_type_1_but_required_in_type_2.code,Oa.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,Oa.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,Oa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Oa.Cannot_find_name_0.code],getCodeActions(e){const t=e.program.getTypeChecker(),n=Xre(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(3===n.kind){const t=p_e.ChangeTracker.with(e,(t=>aoe(t,e,n)));return[c9(Ure,t,Oa.Add_missing_properties,Ure,Oa.Add_all_missing_properties)]}if(4===n.kind){const t=p_e.ChangeTracker.with(e,(t=>ioe(t,e,n)));return[c9(Hre,t,Oa.Add_missing_attributes,Hre,Oa.Add_all_missing_attributes)]}if(2===n.kind||5===n.kind){const t=p_e.ChangeTracker.with(e,(t=>ooe(t,e,n)));return[c9(Kre,t,[Oa.Add_missing_function_declaration_0,n.token.text],Kre,Oa.Add_all_missing_function_declarations)]}if(1===n.kind){const t=p_e.ChangeTracker.with(e,(t=>roe(t,e.program.getTypeChecker(),n)));return[c9(Vre,t,[Oa.Add_missing_enum_member_0,n.token.text],Vre,Oa.Add_all_missing_members)]}return ce(function(e,t){const{parentDeclaration:n,declSourceFile:r,modifierFlags:o,token:i,call:a}=t;if(void 0===a)return;const s=i.text,l=t=>p_e.ChangeTracker.with(e,(o=>noe(e,o,a,i,t,n,r))),c=[c9(Vre,l(256&o),[256&o?Oa.Declare_static_method_0:Oa.Declare_method_0,s],Vre,Oa.Add_all_missing_members)];return 2&o&&c.unshift(l9(Vre,l(2),[Oa.Declare_private_method_0,s])),c}(e,n),$re(e,n))}},fixIds:[Vre,Kre,Ure,Hre],getAllCodeActions:e=>{const{program:t,fixId:n}=e,r=t.getTypeChecker(),o=new Map,i=new Map;return h9(p_e.ChangeTracker.with(e,(t=>{v9(e,qre,(a=>{const s=Xre(a.file,a.start,a.code,r,e.program);if(s&&LS(o,Hz(s.parentDeclaration)+"#"+(3===s.kind?s.identifier:s.token.text)))if(n!==Kre||2!==s.kind&&5!==s.kind){if(n===Ure&&3===s.kind)aoe(t,e,s);else if(n===Hre&&4===s.kind)ioe(t,e,s);else if(1===s.kind&&roe(t,r,s),0===s.kind){const{parentDeclaration:e,token:t}=s,n=ne(i,e,(()=>[]));n.some((e=>e.token.text===t.text))||n.push(s)}}else ooe(t,e,s)})),i.forEach(((n,o)=>{const a=WC(o)?void 0:Mse(o,r);for(const s of n){if(null==a?void 0:a.some((e=>{const t=i.get(e);return!!t&&t.some((({token:e})=>e.text===s.token.text))})))continue;const{parentDeclaration:n,declSourceFile:o,modifierFlags:l,token:c,call:d,isJSFile:u}=s;if(d&&!rC(c))noe(e,t,d,c,256&l,n,o);else if(!u||cN(n)||WC(n)){const e=Zre(r,n,c);eoe(t,o,n,c.text,e,256&l)}else Yre(t,o,n,c,!!(256&l))}}))})))}})}});function foe(e,t,n){const r=vt(function(e,t){let n=lY(e,t.start);const r=Qs(t);for(;n.end<r;)n=n.parent;return n}(t,n),dD),o=UA.createNewExpression(r.expression,r.typeArguments,r.arguments);e.replaceNode(t,r,o)}var moe,_oe,hoe,goe=b({"src/services/codefixes/fixAddMissingNewOperator.ts"(){Tge(),sce(),doe="addMissingNewOperator",p9({errorCodes:uoe=[Oa.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=p_e.ChangeTracker.with(e,(e=>foe(e,t,n)));return[c9(doe,r,Oa.Add_missing_new_operator_to_call,doe,Oa.Add_missing_new_operator_to_all_calls)]},fixIds:[doe],getAllCodeActions:e=>y9(e,uoe,((t,n)=>foe(t,e.sourceFile,n)))})}});function yoe(e,t,n){const r=Cl(lY(e,n),dD);if(void 0===r||0===T(r.arguments))return;const o=t.getTypeChecker(),i=G(o.getTypeAtLocation(r.expression).symbol.declarations,Eoe);if(void 0===i)return;const a=Oe(i);if(void 0===a||void 0===a.body||R0(t,a.getSourceFile()))return;const s=function(e){const t=jl(e);if(t)return t;if(iN(e.parent)&&nC(e.parent.name)||TC(e.parent)||bC(e.parent))return e.parent.name}(a);if(void 0===s)return;const l=[],c=[],d=T(a.parameters),u=T(r.arguments);if(d>u)return;const p=[a,...Toe(a,i)];for(let f=0,m=0,_=0;f<u;f++){const e=r.arguments[f],t=wS(e)?OS(e):e,n=o.getWidenedType(o.getBaseTypeOfLiteralType(o.getTypeAtLocation(e))),i=m<d?a.parameters[m]:void 0;if(i&&o.isTypeAssignableTo(n,o.getTypeAtLocation(i))){m++;continue}const s=t&&nC(t)?t.text:"p"+_++,u=voe(o,n,a);Ee(l,{pos:f,declaration:Aoe(s,u,void 0)}),Ioe(p,m)||Ee(c,{pos:f,declaration:Aoe(s,u,UA.createToken(58))})}return{newParameters:l,newOptionalParameters:c,name:o_(s),declarations:p}}function voe(e,t,n){return e.typeToTypeNode(e.getWidenedType(t),n,1)??UA.createKeywordTypeNode(159)}function boe(e,t,n,r){x(n,(n=>{T(n.parameters)?e.replaceNodeRangeWithNodes(t,Pe(n.parameters),Fe(n.parameters),Soe(n,r),{joiner:", ",indentation:0,leadingTriviaOption:p_e.LeadingTriviaOption.IncludeAll,trailingTriviaOption:p_e.TrailingTriviaOption.Include}):x(Soe(n,r),((r,o)=>{0===T(n.parameters)&&0===o?e.insertNodeAt(t,n.parameters.end,r):e.insertNodeAtEndOfList(t,n.parameters,r)}))}))}function Eoe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function Soe(e,t){const n=U(e.parameters,(e=>UA.createParameterDeclaration(e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer)));for(const{pos:r,declaration:o}of t){const e=r>0?n[r-1]:void 0;n.splice(r,0,UA.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,e&&e.questionToken?UA.createToken(58):o.questionToken,o.type,o.initializer))}return n}function Toe(e,t){const n=[];for(const r of t)if(xoe(r)){if(T(r.parameters)===T(e.parameters)){n.push(r);continue}if(T(r.parameters)>T(e.parameters))return[]}return n}function xoe(e){return Eoe(e)&&void 0===e.body}function Aoe(e,t,n){return UA.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function Ioe(e,t){return T(e)&&se(e,(e=>t<T(e.parameters)&&!!e.parameters[t]&&void 0===e.parameters[t].questionToken))}var Roe,Coe,Doe,Noe=b({"src/services/codefixes/fixAddMissingParam.ts"(){Tge(),sce(),moe="addMissingParam",_oe="addOptionalParam",p9({errorCodes:hoe=[Oa.Expected_0_arguments_but_got_1.code],fixIds:[moe,_oe],getCodeActions(e){const t=yoe(e.sourceFile,e.program,e.span.start);if(void 0===t)return;const{name:n,declarations:r,newParameters:o,newOptionalParameters:i}=t,a=[];return T(o)&&Ee(a,c9(moe,p_e.ChangeTracker.with(e,(t=>boe(t,e.sourceFile,r,o))),[T(o)>1?Oa.Add_missing_parameters_to_0:Oa.Add_missing_parameter_to_0,n],moe,Oa.Add_all_missing_parameters)),T(i)&&Ee(a,c9(_oe,p_e.ChangeTracker.with(e,(t=>boe(t,e.sourceFile,r,i))),[T(i)>1?Oa.Add_optional_parameters_to_0:Oa.Add_optional_parameter_to_0,n],_oe,Oa.Add_all_optional_parameters)),a},getAllCodeActions:e=>y9(e,hoe,((t,n)=>{const r=yoe(e.sourceFile,e.program,n.start);if(r){const{declarations:n,newParameters:o,newOptionalParameters:i}=r;e.fixId===moe&&boe(t,e.sourceFile,n,o),e.fixId===_oe&&boe(t,e.sourceFile,n,i)}}))})}});function Moe(e,t){return{type:"install package",file:e,packageName:t}}function Loe(e,t){const n=yt(lY(e,t),zR);if(!n)return;const r=n.text,{packageName:o}=dW(r);return Xs(o)?void 0:o}function koe(e,t,n){var r;return n===Coe?vX.nodeCoreModules.has(e)?"@types/node":void 0:(null==(r=t.isKnownTypesPackageName)?void 0:r.call(t,e))?TW(e):void 0}var Poe,woe,Ooe=b({"src/services/codefixes/fixCannotFindModule.ts"(){Tge(),sce(),Roe="installTypesPackage",Coe=Oa.Cannot_find_module_0_or_its_corresponding_type_declarations.code,p9({errorCodes:Doe=[Coe,Oa.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],getCodeActions:function(e){const{host:t,sourceFile:n,span:{start:r}}=e,o=Loe(n,r);if(void 0===o)return;const i=koe(o,t,e.errorCode);return void 0===i?[]:[c9("fixCannotFindModule",[],[Oa.Install_0,i],Roe,Oa.Install_all_missing_types_packages,Moe(n.fileName,i))]},fixIds:[Roe],getAllCodeActions:e=>y9(e,Doe,((t,n,r)=>{const o=Loe(n.file,n.start);if(void 0!==o)switch(e.fixId){case Roe:{const t=koe(o,e.host,n.code);t&&r.push(Moe(n.file.fileName,t));break}default:In.fail(`Bad fixId: ${e.fixId}`)}}))})}});function Foe(e,t){return vt(lY(e,t).parent,Md)}function Woe(e,t,n,r,o){const i=Oy(e),a=n.program.getTypeChecker(),s=a.getTypeAtLocation(i),l=a.getPropertiesOfType(s).filter(zoe),c=lne(t,n.program,o,n.host);nse(e,l,t,n,o,c,(n=>r.insertMemberAtStart(t,e,n))),c.writeFixes(r)}function zoe(e){const t=tE(Pe(e.getDeclarations()));return!(2&t)&&!!(64&t)}var Boe,Goe,joe=b({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){Tge(),sce(),p9({errorCodes:Poe=[Oa.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=p_e.ChangeTracker.with(e,(r=>Woe(Foe(t,n.start),t,e,r,e.preferences)));return 0===r.length?void 0:[c9(woe,r,Oa.Implement_inherited_abstract_class,woe,Oa.Implement_all_inherited_abstract_classes)]},fixIds:[woe="fixClassDoesntImplementInheritedAbstractMember"],getAllCodeActions:function(e){const t=new Map;return y9(e,Poe,((n,r)=>{const o=Foe(r.file,r.start);LS(t,Hz(o))&&Woe(o,e.sourceFile,e,n,e.preferences)}))}})}});function Voe(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e.delete(t,r)}function Uoe(e,t){const n=lY(e,t);if(110!==n.kind)return;const r=fh(n),o=Hoe(r.body);return o&&!o.expression.arguments.some((e=>lD(e)&&e.expression===n))?{constructor:r,superCall:o}:void 0}function Hoe(e){return VD(e)&&M_(e.expression)?e:Td(e)?void 0:oP(e,Hoe)}var Koe,qoe,Joe=b({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){Tge(),sce(),Boe="classSuperMustPrecedeThisAccess",p9({errorCodes:Goe=[Oa.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Uoe(t,n.start);if(!r)return;const{constructor:o,superCall:i}=r,a=p_e.ChangeTracker.with(e,(e=>Voe(e,t,o,i)));return[c9(Boe,a,Oa.Make_super_call_the_first_statement_in_the_constructor,Boe,Oa.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Boe],getAllCodeActions(e){const{sourceFile:t}=e,n=new Map;return y9(e,Goe,((e,r)=>{const o=Uoe(r.file,r.start);if(!o)return;const{constructor:i,superCall:a}=o;LS(n,Hz(i.parent))&&Voe(e,t,i,a)}))}})}});function Xoe(e,t){const n=lY(e,t);return In.assert(RC(n.parent),"token should be at the constructor declaration"),n.parent}function $oe(e,t,n){const r=UA.createExpressionStatement(UA.createCallExpression(UA.createSuper(),void 0,o));e.insertNodeAtConstructorStart(t,n,r)}var Yoe,Qoe,Zoe=b({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){Tge(),sce(),Koe="constructorForDerivedNeedSuperCall",p9({errorCodes:qoe=[Oa.Constructors_for_derived_classes_must_contain_a_super_call.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Xoe(t,n.start),o=p_e.ChangeTracker.with(e,(e=>$oe(e,t,r)));return[c9(Koe,o,Oa.Add_missing_super_call,Koe,Oa.Add_all_missing_super_calls)]},fixIds:[Koe],getAllCodeActions:e=>y9(e,qoe,((t,n)=>$oe(t,e.sourceFile,Xoe(n.file,n.start))))})}});function eie(e,t){hse(e,t,"jsx",UA.createStringLiteral("react"))}var tie,nie,rie=b({"src/services/codefixes/fixEnableJsxFlag.ts"(){Tge(),sce(),Yoe="fixEnableJsxFlag",p9({errorCodes:Qoe=[Oa.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],getCodeActions:function(e){const{configFile:t}=e.program.getCompilerOptions();if(void 0===t)return;const n=p_e.ChangeTracker.with(e,(e=>eie(e,t)));return[l9(Yoe,n,Oa.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Yoe],getAllCodeActions:e=>y9(e,Qoe,(t=>{const{configFile:n}=e.program.getCompilerOptions();void 0!==n&&eie(t,n)}))})}});function oie(e,t,n){const r=L(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const o=L(r.relatedInformation,(e=>e.code===Oa.Did_you_mean_0.code));if(void 0===o||void 0===o.file||void 0===o.start||void 0===o.length)return;const i=Sse(o.file,dl(o.start,o.length));return void 0!==i&&uu(i)&&TD(i.parent)?{suggestion:aie(o.messageText),expression:i.parent,arg:i}:void 0}function iie(e,t,n,r){const o=UA.createCallExpression(UA.createPropertyAccessExpression(UA.createIdentifier("Number"),UA.createIdentifier("isNaN")),void 0,[n]),i=r.operatorToken.kind;e.replaceNode(t,r,38===i||36===i?UA.createPrefixUnaryExpression(54,o):o)}function aie(e){const[,t]=zU(e,"\n",0).match(/'(.*)'/)||[];return t}var sie,lie,cie=b({"src/services/codefixes/fixNaNEquality.ts"(){Tge(),sce(),tie="fixNaNEquality",p9({errorCodes:nie=[Oa.This_condition_will_always_return_0.code],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,o=oie(r,t,n);if(void 0===o)return;const{suggestion:i,expression:a,arg:s}=o,l=p_e.ChangeTracker.with(e,(e=>iie(e,t,s,a)));return[c9(tie,l,[Oa.Use_0,i],tie,Oa.Use_Number_isNaN_in_all_conditions)]},fixIds:[tie],getAllCodeActions:e=>y9(e,nie,((t,n)=>{const r=oie(e.program,n.file,dl(n.start,n.length));r&&iie(t,n.file,r.arg,r.expression)}))})}}),die=b({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){Tge(),sce(),p9({errorCodes:[Oa.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,Oa.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,Oa.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){const t=e.program.getCompilerOptions(),{configFile:n}=t;if(void 0===n)return;const r=[],o=Vp(t);if(o>=5&&o<99){const t=p_e.ChangeTracker.with(e,(e=>{hse(e,n,"module",UA.createStringLiteral("esnext"))}));r.push(l9("fixModuleOption",t,[Oa.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const i=jp(t);if(i<4||i>99){const t=p_e.ChangeTracker.with(e,(e=>{if(!dh(n))return;const t=[["target",UA.createStringLiteral("es2017")]];1===o&&t.push(["module",UA.createStringLiteral("commonjs")]),_se(e,n,t)}));r.push(l9("fixTargetOption",t,[Oa.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return r.length?r:void 0}})}});function uie(e,t,n){e.replaceNode(t,n,UA.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function pie(e,t){return vt(lY(e,t).parent,ZN)}var fie,mie,_ie=b({"src/services/codefixes/fixPropertyAssignment.ts"(){Tge(),sce(),sie="fixPropertyAssignment",p9({errorCodes:lie=[Oa.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],fixIds:[sie],getCodeActions(e){const{sourceFile:t,span:n}=e,r=pie(t,n.start),o=p_e.ChangeTracker.with(e,(t=>uie(t,e.sourceFile,r)));return[c9(sie,o,[Oa.Change_0_to_1,"=",":"],sie,[Oa.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>y9(e,lie,((e,t)=>uie(e,t.file,pie(t.file,t.start))))})}});function hie(e,t){const n=_h(lY(e,t)).heritageClauses,r=n[0].getFirstToken();return 96===r.kind?{extendsToken:r,heritageClauses:n}:void 0}function gie(e,t,n,r){if(e.replaceNode(t,n,UA.createToken(119)),2===r.length&&96===r[0].token&&119===r[1].token){const n=r[1].getFirstToken(),o=n.getFullStart();e.replaceRange(t,{pos:o,end:o},UA.createToken(28));const i=t.text;let a=n.end;for(;a<i.length&&gs(i.charCodeAt(a));)a++;e.deleteRange(t,{pos:n.getStart(),end:a})}}var yie,vie,bie,Eie=b({"src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts"(){Tge(),sce(),fie="extendsInterfaceBecomesImplements",p9({errorCodes:mie=[Oa.Cannot_extend_an_interface_0_Did_you_mean_implements.code],getCodeActions(e){const{sourceFile:t}=e,n=hie(t,e.span.start);if(!n)return;const{extendsToken:r,heritageClauses:o}=n,i=p_e.ChangeTracker.with(e,(e=>gie(e,t,r,o)));return[c9(fie,i,Oa.Change_extends_to_implements,fie,Oa.Change_all_extended_interfaces_to_implements)]},fixIds:[fie],getAllCodeActions:e=>y9(e,mie,((e,t)=>{const n=hie(t.file,t.start);n&&gie(e,t.file,n.extendsToken,n.heritageClauses)}))})}});function Sie(e,t,n){const r=lY(e,t);if(nC(r)||rC(r))return{node:r,className:n===vie?_h(r).name.text:void 0}}function Tie(e,t,{node:n,className:r}){vZ(n),e.replaceNode(t,n,UA.createPropertyAccessExpression(r?UA.createIdentifier(r):UA.createThis(),n))}var xie,Aie,Iie,Rie,Cie=b({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){Tge(),sce(),yie="forgottenThisPropertyAccess",vie=Oa.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,p9({errorCodes:bie=[Oa.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Oa.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,vie],getCodeActions(e){const{sourceFile:t}=e,n=Sie(t,e.span.start,e.errorCode);if(!n)return;const r=p_e.ChangeTracker.with(e,(e=>Tie(e,t,n)));return[c9(yie,r,[Oa.Add_0_to_unresolved_variable,n.className||"this"],yie,Oa.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[yie],getAllCodeActions:e=>y9(e,bie,((t,n)=>{const r=Sie(n.file,n.start,n.code);r&&Tie(t,e.sourceFile,r)}))})}});function Die(e,t,n,r,o){const i=n.getText()[r];if(!function(e){return He(Rie,e)}(i))return;const a=o?Rie[i]:`{${PZ(n,t,i)}}`;e.replaceRangeWithText(n,{pos:r,end:r+1},a)}var Nie,Mie,Lie,kie=b({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){Tge(),sce(),xie="fixInvalidJsxCharacters_expression",Aie="fixInvalidJsxCharacters_htmlEntity",p9({errorCodes:Iie=[Oa.Unexpected_token_Did_you_mean_or_gt.code,Oa.Unexpected_token_Did_you_mean_or_rbrace.code],fixIds:[xie,Aie],getCodeActions(e){const{sourceFile:t,preferences:n,span:r}=e,o=p_e.ChangeTracker.with(e,(e=>Die(e,n,t,r.start,!1))),i=p_e.ChangeTracker.with(e,(e=>Die(e,n,t,r.start,!0)));return[c9(xie,o,Oa.Wrap_invalid_character_in_an_expression_container,xie,Oa.Wrap_all_invalid_characters_in_an_expression_container),c9(Aie,i,Oa.Convert_invalid_character_to_its_html_entity_code,Aie,Oa.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>y9(e,Iie,((t,n)=>Die(t,e.preferences,n.file,n.start,e.fixId===Aie)))}),Rie={">":">","}":"}"}}});function Pie(e,t){const n=lY(e,t);if(n.parent&&OM(n.parent)&&nC(n.parent.name)){const e=n.parent,t=ly(e),r=ay(e);if(t&&r)return{jsDocHost:t,signature:r,name:n.parent.name,jsDocParameterTag:e}}}var wie,Oie=b({"src/services/codefixes/fixUnmatchedParameter.ts"(){Tge(),sce(),Nie="deleteUnmatchedParameter",Mie="renameUnmatchedParameter",Lie=[Oa.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],p9({fixIds:[Nie,Mie],errorCodes:Lie,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=[],o=Pie(t,n.start);if(o)return Ee(r,function(e,{name:t,jsDocHost:n,jsDocParameterTag:r}){const o=p_e.ChangeTracker.with(e,(t=>t.filterJSDocTags(e.sourceFile,n,(e=>e!==r))));return c9(Nie,o,[Oa.Delete_unused_param_tag_0,t.getText(e.sourceFile)],Nie,Oa.Delete_all_unused_param_tags)}(e,o)),Ee(r,function(e,{name:t,jsDocHost:n,signature:r,jsDocParameterTag:o}){if(!T(r.parameters))return;const i=e.sourceFile,a=Sc(r),s=new Set;for(const u of a)OM(u)&&nC(u.name)&&s.add(u.name.escapedText);const l=I(r.parameters,(e=>nC(e.name)&&!s.has(e.name.escapedText)?e.name.getText(i):void 0));if(void 0===l)return;const c=UA.updateJSDocParameterTag(o,o.tagName,UA.createIdentifier(l),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),d=p_e.ChangeTracker.with(e,(e=>e.replaceJSDocComment(i,n,U(a,(e=>e===o?c:e)))));return l9(Mie,d,[Oa.Rename_param_tag_name_0_to_1,t.getText(i),l])}(e,o)),r},getAllCodeActions:function(e){const t=new Map;return h9(p_e.ChangeTracker.with(e,(n=>{v9(e,Lie,(({file:e,start:n})=>{const r=Pie(e,n);r&&t.set(r.signature,Ee(t.get(r.signature),r.jsDocParameterTag))})),t.forEach(((t,r)=>{if(e.fixId===Nie){const e=new Set(t);n.filterJSDocTags(r.getSourceFile(),r,(t=>!e.has(t)))}}))})))}})}});var Fie,Wie,zie,Bie,Gie,jie,Vie=b({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){Tge(),sce(),wie="fixUnreferenceableDecoratorMetadata",p9({errorCodes:[Oa.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],getCodeActions:e=>{const t=function(e,t,n){const r=yt(lY(e,n),nC);if(!r||183!==r.parent.kind)return;const i=t.getTypeChecker().getSymbolAtLocation(r);return L((null==i?void 0:i.declarations)||o,_n(yN,RN,hN))}(e.sourceFile,e.program,e.span.start);if(!t)return;const n=p_e.ChangeTracker.with(e,(n=>276===t.kind&&function(e,t,n,r){L5.doChangeNamedToNamespaceOrDefault(t,r,e,n.parent)}(n,e.sourceFile,t,e.program))),r=p_e.ChangeTracker.with(e,(n=>function(e,t,n,r){if(271===n.kind)return void e.insertModifierBefore(t,156,n.name);const o=273===n.kind?n:n.parent.parent;if(o.name&&o.namedBindings)return;const i=r.getTypeChecker();Vg(o,(e=>{if(111551&hS(e.symbol,i).flags)return!0}))||e.insertModifierBefore(t,156,o)}(n,e.sourceFile,t,e.program)));let i;return n.length&&(i=Ee(i,l9(wie,n,Oa.Convert_named_imports_to_namespace_import))),r.length&&(i=Ee(i,l9(wie,r,Oa.Use_import_type))),i},fixIds:[wie]})}});function Uie(e,t,n){e.replaceNode(t,n.parent,UA.createKeywordTypeNode(159))}function Hie(e,t){return c9(Fie,e,t,zie,Oa.Delete_all_unused_declarations)}function Kie(e,t,n){e.delete(t,In.checkDefined(vt(n.parent,Xm).typeParameters,"The type parameter to delete should exist"))}function qie(e){return 102===e.kind||80===e.kind&&(276===e.parent.kind||273===e.parent.kind)}function Jie(e){return 102===e.kind?yt(e.parent,gN):void 0}function Xie(e,t){return aN(t.parent)&&Pe(t.parent.getChildren(e))===t}function $ie(e,t,n){e.delete(t,243===n.parent.kind?n.parent:n)}function Yie(e,t,n,r){t!==Oa.Property_0_is_declared_but_its_value_is_never_read.code&&(140===r.kind&&(r=vt(r.parent,qC).typeParameter.name),nC(r)&&function(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}(r)&&(e.replaceNode(n,r,UA.createIdentifier(`_${r.text}`)),bC(r.parent)&&ql(r.parent).forEach((t=>{nC(t.name)&&e.replaceNode(n,t.name,UA.createIdentifier(`_${t.name.text}`))}))))}function Qie(e,t,n,r,o,i,a,s){!function(e,t,n,r,o,i,a,s){const{parent:l}=e;if(bC(l))!function(e,t,n,r,o,i,a,s=!1){if(function(e,t,n,r,o,i,a){const{parent:s}=n;switch(s.kind){case 174:case 176:const l=s.parameters.indexOf(n),c=AC(s)?s.name:s,d=Hue.Core.getReferencedSymbolsForNode(s.pos,c,o,r,i);if(d)for(const e of d)for(const t of e.references)if(t.kind===Hue.EntryKind.Node){const e=mC(t.node)&&dD(t.node.parent)&&t.node.parent.arguments.length>l,r=lD(t.node.parent)&&mC(t.node.parent.expression)&&dD(t.node.parent.parent)&&t.node.parent.parent.arguments.length>l,o=(AC(t.node.parent)||xC(t.node.parent))&&t.node.parent!==n.parent&&t.node.parent.parameters.length>l;if(e||r||o)return!1}return!0;case 262:return!s.name||!function(e,t,n){return!!Hue.Core.eachSymbolReferenceInFile(n,e,t,(e=>nC(e)&&dD(e.parent)&&e.parent.arguments.includes(e)))}(e,t,s.name)||eae(s,n,a);case 218:case 219:return eae(s,n,a);case 178:return!1;case 177:return!0;default:return In.failBadSyntaxKind(s)}}(r,t,n,o,i,a,s))if(n.modifiers&&n.modifiers.length>0&&(!nC(n.name)||Hue.Core.isSymbolReferencedInFile(n.name,r,t)))for(const l of n.modifiers)vd(l)&&e.deleteModifier(t,l);else!n.initializer&&Zie(n,r,o)&&e.delete(t,n)}(t,n,l,r,o,i,a,s);else if(!(s&&nC(e)&&Hue.Core.isSymbolReferencedInFile(e,r,n))){const r=yN(l)?e:yC(l)?l.parent:l;In.assert(r!==n,"should not delete whole source file"),t.delete(n,r)}}(t,n,e,r,o,i,a,s),nC(t)&&Hue.Core.eachSymbolReferenceInFile(t,r,e,(t=>{var r;lD(t.parent)&&t.parent.name===t&&(t=t.parent),!s&&((TD((r=t).parent)&&r.parent.left===r||(SD(r.parent)||ED(r.parent))&&r.parent.operand===r)&&VD(r.parent.parent))&&n.delete(e,t.parent.parent)}))}function Zie(e,t,n){const r=e.parent.parameters.indexOf(e);return!Hue.Core.someSignatureUsage(e.parent,n,t,((e,t)=>!t||t.arguments.length>r))}function eae(e,t,n){const r=e.parameters,o=r.indexOf(t);return In.assert(-1!==o,"The parameter should already be in the list"),n?r.slice(o+1).every((e=>nC(e.name)&&!e.symbol.isReferenced)):o===r.length-1}var tae,nae,rae=b({"src/services/codefixes/fixUnusedIdentifier.ts"(){Tge(),sce(),Fie="unusedIdentifier",Wie="unusedIdentifier_prefix",zie="unusedIdentifier_delete",Bie="unusedIdentifier_deleteImports",Gie="unusedIdentifier_infer",p9({errorCodes:jie=[Oa._0_is_declared_but_its_value_is_never_read.code,Oa._0_is_declared_but_never_used.code,Oa.Property_0_is_declared_but_its_value_is_never_read.code,Oa.All_imports_in_import_declaration_are_unused.code,Oa.All_destructured_elements_are_unused.code,Oa.All_variables_are_unused.code,Oa.All_type_parameters_are_unused.code],getCodeActions(e){const{errorCode:t,sourceFile:n,program:r,cancellationToken:o}=e,i=r.getTypeChecker(),a=r.getSourceFiles(),s=lY(n,e.span.start);if(BM(s))return[Hie(p_e.ChangeTracker.with(e,(e=>e.delete(n,s))),Oa.Remove_template_tag)];if(30===s.kind){return[Hie(p_e.ChangeTracker.with(e,(e=>Kie(e,n,s))),Oa.Remove_type_parameters)]}const l=Jie(s);if(l){const t=p_e.ChangeTracker.with(e,(e=>e.delete(n,l)));return[c9(Fie,t,[Oa.Remove_import_from_0,NS(l)],Bie,Oa.Delete_all_unused_imports)]}if(qie(s)){const t=p_e.ChangeTracker.with(e,(e=>Qie(n,s,e,i,a,r,o,!1)));if(t.length)return[c9(Fie,t,[Oa.Remove_unused_declaration_for_Colon_0,s.getText(n)],Bie,Oa.Delete_all_unused_imports)]}if(rD(s.parent)||oD(s.parent)){if(bC(s.parent.parent)){const t=s.parent.elements,r=[t.length>1?Oa.Remove_unused_declarations_for_Colon_0:Oa.Remove_unused_declaration_for_Colon_0,U(t,(e=>e.getText(n))).join(", ")];return[Hie(p_e.ChangeTracker.with(e,(e=>function(e,t,n){x(n.elements,(n=>e.delete(t,n)))}(e,n,s.parent))),r)]}return[Hie(p_e.ChangeTracker.with(e,(t=>function(e,t,n,{parent:r}){if(iN(r)&&r.initializer&&nu(r.initializer))if(aN(r.parent)&&T(r.parent.declarations)>1){const o=r.parent.parent,i=o.getStart(n),a=o.end;t.delete(n,r),t.insertNodeAt(n,a,r.initializer,{prefix:eZ(e.host,e.formatContext.options)+n.text.slice(fZ(n.text,i-1),i),suffix:HZ(n)?";":""})}else t.replaceNode(n,r.parent,r.initializer);else t.delete(n,r)}(e,t,n,s.parent))),Oa.Remove_unused_destructuring_declaration)]}if(Xie(n,s))return[Hie(p_e.ChangeTracker.with(e,(e=>$ie(e,n,s.parent))),Oa.Remove_variable_statement)];const c=[];if(140===s.kind){const t=p_e.ChangeTracker.with(e,(e=>Uie(e,n,s))),r=vt(s.parent,qC).typeParameter.name.text;c.push(c9(Fie,t,[Oa.Replace_infer_0_with_unknown,r],Gie,Oa.Replace_all_unused_infer_with_unknown))}else{const t=p_e.ChangeTracker.with(e,(e=>Qie(n,s,e,i,a,r,o,!1)));if(t.length){const e=yC(s.parent)?s.parent:s;c.push(Hie(t,[Oa.Remove_unused_declaration_for_Colon_0,e.getText(n)]))}}const d=p_e.ChangeTracker.with(e,(e=>Yie(e,t,n,s)));return d.length&&c.push(c9(Fie,d,[Oa.Prefix_0_with_an_underscore,s.getText(n)],Wie,Oa.Prefix_all_unused_declarations_with_where_possible)),c},fixIds:[Wie,zie,Bie,Gie],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,o=n.getTypeChecker(),i=n.getSourceFiles();return y9(e,jie,((a,s)=>{const l=lY(t,s.start);switch(e.fixId){case Wie:Yie(a,s.code,t,l);break;case Bie:{const e=Jie(l);e?a.delete(t,e):qie(l)&&Qie(t,l,a,o,i,n,r,!0);break}case zie:if(140===l.kind||qie(l))break;if(BM(l))a.delete(t,l);else if(30===l.kind)Kie(a,t,l);else if(rD(l.parent)){if(l.parent.parent.initializer)break;bC(l.parent.parent)&&!Zie(l.parent.parent,o,i)||a.delete(t,l.parent.parent)}else{if(oD(l.parent.parent)&&l.parent.parent.parent.initializer)break;Xie(t,l)?$ie(a,t,l.parent):Qie(t,l,a,o,i,n,r,!0)}break;case Gie:140===l.kind&&Uie(a,t,l);break;default:In.fail(JSON.stringify(e.fixId))}}))}})}});function oae(e,t,n,r,i){const a=lY(t,n),s=Cl(a,wu);if(s.getStart(t)!==a.getStart(t)){const e=JSON.stringify({statementKind:In.formatSyntaxKind(s.kind),tokenKind:In.formatSyntaxKind(a.kind),errorCode:i,start:n,length:r});In.fail("Token and statement should start at the same point. "+e)}const l=(BD(s.parent)?s.parent:s).parent;if(!BD(s.parent)||s===Pe(s.parent.statements))switch(l.kind){case 245:if(l.elseStatement){if(BD(s.parent))break;return void e.replaceNode(t,s,UA.createBlock(o))}case 247:case 248:return void e.delete(t,l)}if(BD(s.parent)){const o=n+r,i=In.checkDefined(function(e,t){let n;for(const r of e){if(!t(r))break;n=r}return n}(Tx(s.parent.statements,s),(e=>e.pos<o)),"Some statement should be last");e.deleteNodeRange(t,s,i)}else e.delete(t,s)}var iae,aae,sae=b({"src/services/codefixes/fixUnreachableCode.ts"(){Tge(),sce(),tae="fixUnreachableCode",p9({errorCodes:nae=[Oa.Unreachable_code_detected.code],getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const t=p_e.ChangeTracker.with(e,(t=>oae(t,e.sourceFile,e.span.start,e.span.length,e.errorCode)));return[c9(tae,t,Oa.Remove_unreachable_code,tae,Oa.Remove_all_unreachable_code)]},fixIds:[tae],getAllCodeActions:e=>y9(e,nae,((e,t)=>oae(e,t.file,t.start,t.length,t.code)))})}});function lae(e,t,n){const r=lY(t,n),o=vt(r.parent,tN),i=r.getStart(t),a=o.statement.getStart(t),s=iS(i,a,t)?a:Ts(t.text,J$(o,59,t).end,!0);e.deleteRange(t,{pos:i,end:s})}var cae,dae,uae,pae=b({"src/services/codefixes/fixUnusedLabel.ts"(){Tge(),sce(),iae="fixUnusedLabel",p9({errorCodes:aae=[Oa.Unused_label.code],getCodeActions(e){const t=p_e.ChangeTracker.with(e,(t=>lae(t,e.sourceFile,e.span.start)));return[c9(iae,t,Oa.Remove_unused_label,iae,Oa.Remove_all_unused_labels)]},fixIds:[iae],getAllCodeActions:e=>y9(e,aae,((e,t)=>lae(e,t.file,t.start)))})}});function fae(e,t,n,r,o){e.replaceNode(t,n,o.typeToTypeNode(r,n,void 0))}function mae(e,t,n){const r=Cl(lY(e,t),_ae),o=r&&r.type;return o&&{typeNode:o,type:hae(n,o)}}function _ae(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function hae(e,t){if(mM(t)){const n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(Ee([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var gae,yae,vae=b({"src/services/codefixes/fixJSDocTypes.ts"(){Tge(),sce(),cae="fixJSDocTypes_plain",dae="fixJSDocTypes_nullable",p9({errorCodes:uae=[Oa.JSDoc_types_can_only_be_used_inside_documentation_comments.code,Oa._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,Oa._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),r=mae(t,e.span.start,n);if(!r)return;const{typeNode:o,type:i}=r,a=o.getText(t),s=[l(i,cae,Oa.Change_all_jsdoc_style_types_to_TypeScript)];return 321===o.kind&&s.push(l(i,dae,Oa.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function l(r,i,s){return c9("jdocTypes",p_e.ChangeTracker.with(e,(e=>fae(e,t,o,r,n))),[Oa.Change_0_to_1,a,n.typeToString(r)],i,s)}},fixIds:[cae,dae],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:r}=e,o=n.getTypeChecker();return y9(e,uae,((e,n)=>{const i=mae(n.file,n.start,o);if(!i)return;const{typeNode:a,type:s}=i,l=321===a.kind&&t===dae?o.getNullableType(s,32768):s;fae(e,r,a,l,o)}))}})}});function bae(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function Eae(e,t){const n=lY(e,t);if(lD(n.parent)){let e=n.parent;for(;lD(e.parent);)e=e.parent;return e.name}if(nC(n))return n}var Sae,Tae,xae=b({"src/services/codefixes/fixMissingCallParentheses.ts"(){Tge(),sce(),gae="fixMissingCallParentheses",p9({errorCodes:yae=[Oa.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],fixIds:[gae],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Eae(t,n.start);if(!r)return;const o=p_e.ChangeTracker.with(e,(t=>bae(t,e.sourceFile,r)));return[c9(gae,o,Oa.Add_missing_call_parentheses,gae,Oa.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>y9(e,yae,((e,t)=>{const n=Eae(t.file,t.start);n&&bae(e,t.file,n)}))})}});function Aae(e,t){const n=fh(lY(e,t));if(!n)return;let r;switch(n.kind){case 174:r=n.name;break;case 262:case 218:r=J$(n,100,e);break;case 219:r=J$(n,n.typeParameters?30:21,e)||Pe(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:(o=n,o.type?o.type:iN(o.parent)&&o.parent.type&&wC(o.parent.type)?o.parent.type.type:void 0)};var o}function Iae(e,t,{insertBefore:n,returnType:r}){if(r){const n=Nh(r);n&&80===n.kind&&"Promise"===n.text||e.replaceNode(t,r,UA.createTypeReferenceNode("Promise",UA.createNodeArray([r])))}e.insertModifierBefore(t,134,n)}var Rae,Cae,Dae=b({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){Tge(),sce(),Sae="fixAwaitInSyncFunction",p9({errorCodes:Tae=[Oa.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Oa.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Oa.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Oa.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Aae(t,n.start);if(!r)return;const o=p_e.ChangeTracker.with(e,(e=>Iae(e,t,r)));return[c9(Sae,o,Oa.Add_async_modifier_to_containing_function,Sae,Oa.Add_all_missing_async_modifiers)]},fixIds:[Sae],getAllCodeActions:function(e){const t=new Map;return y9(e,Tae,((n,r)=>{const o=Aae(r.file,r.start);o&&LS(t,Hz(o.insertBefore))&&Iae(n,e.sourceFile,o)}))}})}});function Nae(e,t,n,r,o){let i,a;if(r===Oa._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)i=t,a=t+n;else if(r===Oa._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const n=o.program.getTypeChecker(),r=lY(e,t).parent;In.assert(Ld(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");const s=r.parent;In.assert(Md(s),"erroneous accessors should only be inside classes");const l=We(Mse(s,n));if(!l)return[];const c=Ll(l_(r.name)),d=n.getPropertyOfType(n.getTypeAtLocation(l),c);if(!d||!d.valueDeclaration)return[];i=d.valueDeclaration.pos,a=d.valueDeclaration.end,e=Yf(d.valueDeclaration)}else In.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+r);return xse(e,o.program,i,a,o,Oa.Generate_get_and_set_accessors.message)}var Mae,Lae,kae=b({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){Tge(),sce(),Rae=[Oa._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,Oa._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],Cae="fixPropertyOverrideAccessor",p9({errorCodes:Rae,getCodeActions(e){const t=Nae(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[c9(Cae,t,Oa.Generate_get_and_set_accessors,Cae,Oa.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Cae],getAllCodeActions:e=>y9(e,Rae,((t,n)=>{const r=Nae(n.file,n.start,n.length,n.code,e);if(r)for(const o of r)t.pushRaw(e.sourceFile,o)}))})}});function Pae(e,t){switch(e){case Oa.Parameter_0_implicitly_has_an_1_type.code:case Oa.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return DC(fh(t))?Oa.Infer_type_of_0_from_usage:Oa.Infer_parameter_types_from_usage;case Oa.Rest_parameter_0_implicitly_has_an_any_type.code:case Oa.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return Oa.Infer_parameter_types_from_usage;case Oa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return Oa.Infer_this_type_of_0_from_usage;default:return Oa.Infer_type_of_0_from_usage}}function wae(e,t,n,r,o,i,a,s,l){if(!gd(n.kind)&&80!==n.kind&&26!==n.kind&&110!==n.kind)return;const{parent:c}=n,d=lne(t,o,l,s);switch(r=function(e){switch(e){case Oa.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return Oa.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case Oa.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Oa.Variable_0_implicitly_has_an_1_type.code;case Oa.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Oa.Parameter_0_implicitly_has_an_1_type.code;case Oa.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return Oa.Rest_parameter_0_implicitly_has_an_any_type.code;case Oa.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return Oa.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case Oa._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return Oa._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case Oa.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return Oa.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case Oa.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Oa.Member_0_implicitly_has_an_1_type.code}return e}(r)){case Oa.Member_0_implicitly_has_an_1_type.code:case Oa.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(iN(c)&&a(c)||TC(c)||SC(c))return Oae(e,d,t,c,o,s,i),d.writeFixes(e),c;if(lD(c)){const n=zZ(Gae(c.name,o,i),c,o,s);if(n){const r=UA.createJSDocTypeTag(void 0,UA.createJSDocTypeExpression(n),void 0);e.addJSDocTags(t,vt(c.parent.parent,VD),[r])}return d.writeFixes(e),c}return;case Oa.Variable_0_implicitly_has_an_1_type.code:{const t=o.getTypeChecker().getSymbolAtLocation(n);return t&&t.valueDeclaration&&iN(t.valueDeclaration)&&a(t.valueDeclaration)?(Oae(e,d,Yf(t.valueDeclaration),t.valueDeclaration,o,s,i),d.writeFixes(e),t.valueDeclaration):void 0}}const u=fh(n);if(void 0===u)return;let p;switch(r){case Oa.Parameter_0_implicitly_has_an_1_type.code:if(DC(u)){Fae(e,d,t,u,o,s,i),p=u;break}case Oa.Rest_parameter_0_implicitly_has_an_any_type.code:if(a(u)){const n=vt(c,bC);!function(e,t,n,r,o,i,a,s){if(!nC(r.name))return;const l=function(e,t,n,r){const o=jae(e,t,n,r);return o&&Vae(n,o,r).parameters(e)||e.parameters.map((e=>({declaration:e,type:nC(e.name)?Gae(e.name,n,r):n.getTypeChecker().getAnyType()})))}(o,n,i,s);if(In.assert(o.parameters.length===l.length,"Parameter count and inference count should match"),$h(o))zae(e,n,l,i,a);else{const r=hD(o)&&!J$(o,21,n);r&&e.insertNodeBefore(n,Pe(o.parameters),UA.createToken(21));for(const{declaration:o,type:s}of l)!o||o.type||o.initializer||Wae(e,t,n,o,s,i,a);r&&e.insertNodeAfter(n,Fe(o.parameters),UA.createToken(22))}}(e,d,t,n,u,o,s,i),p=n}break;case Oa.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case Oa._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:CC(u)&&nC(u.name)&&(Wae(e,d,t,u,Gae(u.name,o,i),o,s),p=u);break;case Oa.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:DC(u)&&(Fae(e,d,t,u,o,s,i),p=u);break;case Oa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:p_e.isThisTypeAnnotatable(u)&&a(u)&&(!function(e,t,n,r,o,i){const a=jae(n,t,r,i);if(!a||!a.length)return;const s=Vae(r,a,i).thisParameter(),l=zZ(s,n,r,o);if(!l)return;$h(n)?function(e,t,n,r){e.addJSDocTags(t,n,[UA.createJSDocThisTag(void 0,UA.createJSDocTypeExpression(r))])}(e,t,n,l):e.tryInsertThisTypeAnnotation(t,n,l)}(e,t,u,o,s,i),p=u);break;default:return In.fail(String(r))}return d.writeFixes(e),p}function Oae(e,t,n,r,o,i,a){nC(r.name)&&Wae(e,t,n,r,Gae(r.name,o,a),o,i)}function Fae(e,t,n,r,o,i,a){const s=Le(r.parameters);if(s&&nC(r.name)&&nC(s.name)){let l=Gae(r.name,o,a);l===o.getTypeChecker().getAnyType()&&(l=Gae(s.name,o,a)),$h(r)?zae(e,n,[{declaration:s,type:l}],o,i):Wae(e,t,n,s,l,o,i)}}function Wae(e,t,n,r,o,i,a){const s=zZ(o,r,i,a);if(s)if($h(n)&&171!==r.kind){const t=iN(r)?yt(r.parent.parent,GD):r;if(!t)return;const o=UA.createJSDocTypeExpression(s),i=CC(r)?UA.createJSDocReturnTag(void 0,o,void 0):UA.createJSDocTypeTag(void 0,o,void 0);e.addJSDocTags(n,t,[i])}else(function(e,t,n,r,o,i){const a=vse(e,i);if(a&&r.tryInsertTypeAnnotation(n,t,a.typeNode))return x(a.symbols,(e=>o.addImportFromExportedSymbol(e,!0))),!0;return!1})(s,r,n,e,t,jp(i.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,r,s)}function zae(e,t,n,r,o){const i=n.length&&n[0].declaration.parent;if(!i)return;const a=Z(n,(e=>{const t=e.declaration;if(t.initializer||vc(t)||!nC(t.name))return;const n=e.type&&zZ(e.type,t,r,o);if(n){return fI(UA.cloneNode(t.name),7168),{name:UA.cloneNode(t.name),param:t,isOptional:!!e.isOptional,typeNode:n}}}));if(a.length)if(hD(i)||_D(i)){const n=hD(i)&&!J$(i,21,t);n&&e.insertNodeBefore(t,Pe(i.parameters),UA.createToken(21)),x(a,(({typeNode:n,param:r})=>{const o=UA.createJSDocTypeTag(void 0,UA.createJSDocTypeExpression(n)),i=UA.createJSDocComment(void 0,[o]);e.insertNodeAt(t,r.getStart(t),i,{suffix:" "})})),n&&e.insertNodeAfter(t,Fe(i.parameters),UA.createToken(22))}else{const n=U(a,(({name:e,typeNode:t,isOptional:n})=>UA.createJSDocParameterTag(void 0,e,!!n,UA.createJSDocTypeExpression(t),!1,void 0)));e.addJSDocTags(t,i,n)}}function Bae(e,t,n){return Z(Hue.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),(e=>e.kind!==Hue.EntryKind.Span?yt(e.node,nC):void 0))}function Gae(e,t,n){return Vae(t,Bae(e,t,n),n).single()}function jae(e,t,n,r){let o;switch(e.kind){case 176:o=J$(e,137,t);break;case 219:case 218:const n=e.parent;o=(iN(n)||TC(n))&&nC(n.name)?n.name:e.name;break;case 262:case 174:case 173:o=e.name}if(o)return Bae(o,n,r)}function Vae(e,t,n){const r=e.getTypeChecker(),i={string:()=>r.getStringType(),number:()=>r.getNumberType(),Array:e=>r.createArrayType(e),Promise:e=>r.createPromiseType(e)},a=[r.getStringType(),r.getNumberType(),r.createArrayType(r.getAnyType()),r.createPromiseType(r.getAnyType())];return{single:function(){return p(l(t))},parameters:function(o){if(0===t.length||!o.parameters)return;const i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const e of t)n.throwIfCancellationRequested(),c(e,i);const a=[...i.constructs||[],...i.calls||[]];return o.parameters.map(((t,i)=>{const s=[],c=ip(t);let d=!1;for(const e of a)if(e.argumentTypes.length<=i)d=$h(o),s.push(r.getUndefinedType());else if(c)for(let t=i;t<e.argumentTypes.length;t++)s.push(r.getBaseTypeOfLiteralType(e.argumentTypes[t]));else s.push(r.getBaseTypeOfLiteralType(e.argumentTypes[i]));if(nC(t.name)){const o=l(Bae(t.name,e,n));s.push(...c?Z(o,r.getElementTypeOfArrayType):o)}const u=p(s);return{type:c?r.createArrayType(u):u,isOptional:d&&!c,declaration:t}}))},thisParameter:function(){const e={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of t)n.throwIfCancellationRequested(),c(r,e);return p(e.candidateThisTypes||o)}};function s(e){const t=new Map;for(const r of e)r.properties&&r.properties.forEach(((e,n)=>{t.has(n)||t.set(n,[]),t.get(n).push(e)}));const n=new Map;return t.forEach(((e,t)=>{n.set(t,s(e))})),{isNumber:e.some((e=>e.isNumber)),isString:e.some((e=>e.isString)),isNumberOrString:e.some((e=>e.isNumberOrString)),candidateTypes:J(e,(e=>e.candidateTypes)),properties:n,calls:J(e,(e=>e.calls)),constructs:J(e,(e=>e.constructs)),numberIndex:x(e,(e=>e.numberIndex)),stringIndex:x(e,(e=>e.stringIndex)),candidateThisTypes:J(e,(e=>e.candidateThisTypes)),inferredTypes:void 0}}function l(e){const t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of e)n.throwIfCancellationRequested(),c(r,t);return f(t)}function c(e,t){for(;RE(e);)e=e.parent;switch(e.parent.kind){case 244:!function(e,t){g(t,dD(e)?r.getVoidType():r.getAnyType())}(e,t);break;case 225:t.isNumber=!0;break;case 224:!function(e,t){switch(e.operator){case 46:case 47:case 41:case 55:t.isNumber=!0;break;case 40:t.isNumberOrString=!0}}(e.parent,t);break;case 226:!function(e,t,n){switch(t.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const o=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&o.flags?g(n,o):n.isNumber=!0;break;case 65:case 40:const i=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&i.flags?g(n,i):296&i.flags?n.isNumber=!0:402653316&i.flags?n.isString=!0:1&i.flags||(n.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:g(n,r.getTypeAtLocation(t.left===e?t.right:t.left));break;case 103:e===t.left&&(n.isString=!0);break;case 57:case 61:e!==t.left||260!==e.parent.parent.kind&&!gE(e.parent.parent,!0)||g(n,r.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 296:case 297:!function(e,t){g(t,r.getTypeAtLocation(e.parent.parent.expression))}(e.parent,t);break;case 213:case 214:e.parent.expression===e?function(e,t){const n={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(const o of e.arguments)n.argumentTypes.push(r.getTypeAtLocation(o));c(e,n.return_),213===e.kind?(t.calls||(t.calls=[])).push(n):(t.constructs||(t.constructs=[])).push(n)}(e.parent,t):d(e,t);break;case 211:!function(e,t){const n=Ml(e.name.text);t.properties||(t.properties=new Map);const r=t.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};c(e,r),t.properties.set(n,r)}(e.parent,t);break;case 212:!function(e,t,n){if(t===e.argumentExpression)return void(n.isNumberOrString=!0);{const t=r.getTypeAtLocation(e.argumentExpression),o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};c(e,o),296&t.flags?n.numberIndex=o:n.stringIndex=o}}(e.parent,e,t);break;case 303:case 304:!function(e,t){const n=iN(e.parent.parent)?e.parent.parent:e.parent;y(t,r.getTypeAtLocation(n))}(e.parent,t);break;case 172:!function(e,t){y(t,r.getTypeAtLocation(e.parent))}(e.parent,t);break;case 260:{const{name:n,initializer:o}=e.parent;if(e===n){o&&g(t,r.getTypeAtLocation(o));break}}default:return d(e,t)}}function d(e,t){Bh(e)&&g(t,r.getContextualType(e))}function u(e){return p(f(e))}function p(e){if(!e.length)return r.getAnyType();const t=r.getUnionType([r.getStringType(),r.getNumberType()]);let n=function(e,t){const n=[];for(const r of e)for(const{high:e,low:o}of t)e(r)&&(In.assert(!o(r),"Priority can't have both low and high"),n.push(o));return e.filter((e=>n.every((t=>!t(e)))))}(e,[{high:e=>e===r.getStringType()||e===r.getNumberType(),low:e=>e===t},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:e=>!(114689&e.flags)&&!(16&RS(e)),low:e=>!!(16&RS(e))}]);const o=n.filter((e=>16&RS(e)));return o.length&&(n=n.filter((e=>!(16&RS(e)))),n.push(function(e){if(1===e.length)return e[0];const t=[],n=[],o=[],i=[];let a=!1,s=!1;const l=ct();for(const u of e){for(const t of r.getPropertiesOfType(u))l.add(t.escapedName,t.valueDeclaration?r.getTypeOfSymbolAtLocation(t,t.valueDeclaration):r.getAnyType());t.push(...r.getSignaturesOfType(u,0)),n.push(...r.getSignaturesOfType(u,1));const e=r.getIndexInfoOfType(u,0);e&&(o.push(e.type),a=a||e.isReadonly);const c=r.getIndexInfoOfType(u,1);c&&(i.push(c.type),s=s||c.isReadonly)}const c=ae(l,((t,n)=>{const o=n.length<e.length?16777216:0,i=r.createSymbol(4|o,t);return i.links.type=r.getUnionType(n),[t,i]})),d=[];o.length&&d.push(r.createIndexInfo(r.getStringType(),r.getUnionType(o),a));i.length&&d.push(r.createIndexInfo(r.getNumberType(),r.getUnionType(i),s));return r.createAnonymousType(e[0].symbol,c,t,n,d)}(o))),r.getWidenedType(r.getUnionType(n.map(r.getBaseTypeOfLiteralType),2))}function f(e){var t,n,s;const l=[];e.isNumber&&l.push(r.getNumberType()),e.isString&&l.push(r.getStringType()),e.isNumberOrString&&l.push(r.getUnionType([r.getStringType(),r.getNumberType()])),e.numberIndex&&l.push(r.createArrayType(u(e.numberIndex))),((null==(t=e.properties)?void 0:t.size)||(null==(n=e.constructs)?void 0:n.length)||e.stringIndex)&&l.push(m(e));const c=(e.candidateTypes||[]).map((e=>r.getBaseTypeOfLiteralType(e))),d=(null==(s=e.calls)?void 0:s.length)?m(e):void 0;return d&&c?l.push(r.getUnionType([d,...c],2)):(d&&l.push(d),T(c)&&l.push(...c)),l.push(...function(e){if(!e.properties||!e.properties.size)return[];const t=a.filter((t=>function(e,t){return!!t.properties&&!Wf(t.properties,((t,n)=>{const i=r.getTypeOfPropertyOfType(e,n);if(!i)return!0;if(t.calls){return!r.getSignaturesOfType(i,0).length||!r.isTypeAssignableTo(i,(a=t.calls,r.createAnonymousType(void 0,Mf(),[h(a)],o,o)))}return!r.isTypeAssignableTo(i,u(t));var a}))}(t,e)));if(0<t.length&&t.length<3)return t.map((t=>function(e,t){if(!(4&RS(e))||!t.properties)return e;const n=e.target,o=We(n.typeParameters);if(!o)return e;const a=[];return t.properties.forEach(((e,t)=>{const i=r.getTypeOfPropertyOfType(n,t);In.assert(!!i,"generic should have all the properties of its reference."),a.push(..._(i,u(e),o))})),i[e.symbol.escapedName](p(a))}(t,e)));return[]}(e)),l}function m(e){const t=new Map;e.properties&&e.properties.forEach(((e,n)=>{const o=r.createSymbol(4,n);o.links.type=u(e),t.set(n,o)}));const n=e.calls?[h(e.calls)]:[],o=e.constructs?[h(e.constructs)]:[],i=e.stringIndex?[r.createIndexInfo(r.getStringType(),u(e.stringIndex),!1)]:[];return r.createAnonymousType(void 0,t,n,o,i)}function _(e,t,n){if(e===n)return[t];if(3145728&e.flags)return J(e.types,(e=>_(e,t,n)));if(4&RS(e)&&4&RS(t)){const o=r.getTypeArguments(e),i=r.getTypeArguments(t),a=[];if(o&&i)for(let e=0;e<o.length;e++)i[e]&&a.push(..._(o[e],i[e],n));return a}const o=r.getSignaturesOfType(e,0),i=r.getSignaturesOfType(t,0);return 1===o.length&&1===i.length?function(e,t,n){var o;const i=[];for(let l=0;l<e.parameters.length;l++){const a=e.parameters[l],s=t.parameters[l],c=e.declaration&&ip(e.declaration.parameters[l]);if(!s)break;let d=a.valueDeclaration?r.getTypeOfSymbolAtLocation(a,a.valueDeclaration):r.getAnyType();const u=c&&r.getElementTypeOfArrayType(d);u&&(d=u);const p=(null==(o=yt(s,Lf))?void 0:o.links.type)||(s.valueDeclaration?r.getTypeOfSymbolAtLocation(s,s.valueDeclaration):r.getAnyType());i.push(..._(d,p,n))}const a=r.getReturnTypeOfSignature(e),s=r.getReturnTypeOfSignature(t);return i.push(..._(a,s,n)),i}(o[0],i[0],n):[]}function h(e){const t=[],n=Math.max(...e.map((e=>e.argumentTypes.length)));for(let i=0;i<n;i++){const n=r.createSymbol(1,Ml(`arg${i}`));n.links.type=p(e.map((e=>e.argumentTypes[i]||r.getUndefinedType()))),e.some((e=>void 0===e.argumentTypes[i]))&&(n.flags|=16777216),t.push(n)}const o=u(s(e.map((e=>e.return_))));return r.createSignature(void 0,void 0,void 0,t,o,void 0,n,0)}function g(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function y(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}var Uae,Hae,Kae=b({"src/services/codefixes/inferFromUsage.ts"(){Tge(),sce(),Mae="inferFromUsage",p9({errorCodes:Lae=[Oa.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,Oa.Variable_0_implicitly_has_an_1_type.code,Oa.Parameter_0_implicitly_has_an_1_type.code,Oa.Rest_parameter_0_implicitly_has_an_any_type.code,Oa.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,Oa._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,Oa.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,Oa.Member_0_implicitly_has_an_1_type.code,Oa.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,Oa.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Oa.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Oa.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,Oa.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,Oa._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,Oa.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,Oa.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Oa.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],getCodeActions(e){const{sourceFile:t,program:n,span:{start:r},errorCode:o,cancellationToken:i,host:a,preferences:s}=e,l=lY(t,r);let c;const d=p_e.ChangeTracker.with(e,(e=>{c=wae(e,t,l,o,n,i,St,a,s)})),u=c&&jl(c);return u&&0!==d.length?[c9(Mae,d,[Pae(o,l),xm(u)],Mae,Oa.Infer_all_types_from_usage)]:void 0},fixIds:[Mae],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:r,host:o,preferences:i}=e,a=nQ();return y9(e,Lae,((e,s)=>{wae(e,t,lY(s.file,s.start),s.code,n,r,a,o,i)}))}})}});function qae(e,t,n){if($h(e))return;const r=Cl(lY(e,n),Ad),o=null==r?void 0:r.type;if(!o)return;const i=t.getTypeFromTypeNode(o),a=t.getAwaitedType(i)||t.getVoidType(),s=t.typeToTypeNode(a,o,void 0);return s?{returnTypeNode:o,returnType:i,promisedTypeNode:s,promisedType:a}:void 0}function Jae(e,t,n,r){e.replaceNode(t,n,UA.createTypeReferenceNode("Promise",[r]))}var Xae,$ae,Yae,Qae=b({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){Tge(),sce(),Uae="fixReturnTypeInAsyncFunction",p9({errorCodes:Hae=[Oa.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],fixIds:[Uae],getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e,o=n.getTypeChecker(),i=qae(t,n.getTypeChecker(),r.start);if(!i)return;const{returnTypeNode:a,returnType:s,promisedTypeNode:l,promisedType:c}=i,d=p_e.ChangeTracker.with(e,(e=>Jae(e,t,a,l)));return[c9(Uae,d,[Oa.Replace_0_with_Promise_1,o.typeToString(s),o.typeToString(c)],Uae,Oa.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>y9(e,Hae,((t,n)=>{const r=qae(n.file,e.program.getTypeChecker(),n.start);r&&Jae(t,n.file,r.returnTypeNode,r.promisedTypeNode)}))})}});function Zae(e,t,n,r){const{line:o}=_s(t,n);r&&!re(r,o)||e.insertCommentBeforeLine(t,o,n," @ts-ignore")}var ese,tse=b({"src/services/codefixes/disableJsDiagnostics.ts"(){Tge(),sce(),Xae="disableJsDiagnostics",$ae="disableJsDiagnostics",p9({errorCodes:Yae=Z(Object.keys(Oa),(e=>{const t=Oa[e];return 1===t.category?t.code:void 0})),getCodeActions:function(e){const{sourceFile:t,program:n,span:r,host:o,formatContext:i}=e;if(!$h(t)||!Ex(t,n.getCompilerOptions()))return;const a=t.checkJsDirective?"":eZ(o,i.options),s=[l9(Xae,[g9(t.fileName,[YY(t.checkJsDirective?ul(t.checkJsDirective.pos,t.checkJsDirective.end):dl(0,0),`// @ts-nocheck${a}`)])],Oa.Disable_checking_for_this_file)];return p_e.isValidLocationToAddComment(t,r.start)&&s.unshift(c9(Xae,p_e.ChangeTracker.with(e,(e=>Zae(e,t,r.start))),Oa.Ignore_this_error_message,$ae,Oa.Add_ts_ignore_to_all_error_messages)),s},fixIds:[$ae],getAllCodeActions:e=>{const t=new Set;return y9(e,Yae,((e,n)=>{p_e.isValidLocationToAddComment(n.file,n.start)&&Zae(e,n.file,n.start,t)}))}})}});function nse(e,t,n,r,o,i,a){const s=e.symbol.members;for(const l of t)s.has(l.escapedName)||ose(l,e,n,r,o,i,a,void 0)}function rse(e){return{trackSymbol:()=>!1,moduleResolverHost:uQ(e.program,e.host)}}function ose(e,t,n,r,i,a,s,l,c=3,d=!1){const u=e.getDeclarations(),p=Le(u),f=r.program.getTypeChecker(),m=jp(r.program.getCompilerOptions()),_=(null==p?void 0:p.kind)??171,h=function(e,t){if(262144&mS(e)){const t=e.links.nameType;if(t&&xA(t))return UA.createIdentifier(Ll(AA(t)))}return mZ(jl(t),!1)}(e,p),g=p?Zb(p):0;let y=256&g;y|=1&g?1:4&g?4:0,p&&kd(p)&&(y|=512);const v=function(){let e;y&&(e=Se(e,UA.createModifiersFromModifierFlags(y)));r.program.getCompilerOptions().noImplicitOverride&&p&&Hb(p)&&(e=Ee(e,UA.createToken(164)));return e&&UA.createNodeArray(e)}(),b=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,t)),E=!!(16777216&e.flags),S=!!(33554432&t.flags)||d,x=gQ(n,i);switch(_){case 171:case 172:const n=0===x?268435456:void 0;let i=f.typeToTypeNode(b,t,n,rse(r));if(a){const e=vse(i,m);e&&(i=e.typeNode,Ese(a,e.symbols))}s(UA.createPropertyDeclaration(v,p?I(h):e.getName(),E&&2&c?UA.createToken(58):void 0,i,void 0));break;case 177:case 178:{In.assertIsDefined(u);let e=f.typeToTypeNode(b,t,void 0,rse(r));const n=xb(u,p),i=n.secondAccessor?[n.firstAccessor,n.secondAccessor]:[n.firstAccessor];if(a){const t=vse(e,m);t&&(e=t.typeNode,Ese(a,t.symbols))}for(const t of i)if(CC(t))s(UA.createGetAccessorDeclaration(v,I(h),o,C(e),R(l,x,S)));else{In.assertNode(t,DC,"The counterpart to a getter should be a setter");const n=hb(t),r=n&&nC(n.name)?kl(n.name):void 0;s(UA.createSetAccessorDeclaration(v,I(h),pse(1,[r],[C(e)],1,!1),R(l,x,S)))}break}case 173:case 174:In.assertIsDefined(u);const d=b.isUnion()?J(b.types,(e=>e.getCallSignatures())):b.getCallSignatures();if(!se(d))break;if(1===u.length){In.assert(1===d.length,"One declaration implies one signature");const e=d[0];A(x,e,v,I(h),R(l,x,S));break}for(const e of d)A(x,e,v,I(h));if(!S)if(u.length>d.length){const e=f.getSignatureFromDeclaration(u[u.length-1]);A(x,e,v,I(h),R(l,x))}else In.assert(u.length===d.length,"Declarations and signatures should match count"),s(function(e,t,n,r,o,i,a,s,l){let c=r[0],d=r[0].minArgumentCount,u=!1;for(const _ of r)d=Math.min(_.minArgumentCount,d),Zz(_)&&(u=!0),_.parameters.length>=c.parameters.length&&(!Zz(_)||Zz(c))&&(c=_);const p=c.parameters.length-(Zz(c)?1:0),f=c.parameters.map((e=>e.name)),m=pse(p,f,void 0,d,!1);if(u){const e=UA.createParameterDeclaration(void 0,UA.createToken(26),f[p]||"rest",p>=d?UA.createToken(58):void 0,UA.createArrayTypeNode(UA.createKeywordTypeNode(159)),void 0);m.push(e)}return function(e,t,n,r,o,i,a,s){return UA.createMethodDeclaration(e,void 0,t,n?UA.createToken(58):void 0,r,o,i,s||fse(a))}(a,o,i,void 0,m,function(e,t,n,r){if(T(e)){const o=t.getUnionType(U(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,r,1,rse(n))}}(r,e,t,n),s,l)}(f,r,t,d,I(h),E&&!!(1&c),v,x,l))}function A(e,n,o,i,l){const d=ise(174,r,e,n,l,i,o,E&&!!(1&c),t,a);d&&s(d)}function I(e){return nC(e)&&"constructor"===e.escapedText?UA.createComputedPropertyName(UA.createStringLiteral(kl(e),0===x)):mZ(e,!1)}function R(e,t,n){return n?void 0:mZ(e,!1)||fse(t)}function C(e){return mZ(e,!1)}}function ise(e,t,n,r,o,i,a,s,l,c){const d=t.program,u=d.getTypeChecker(),p=jp(d.getCompilerOptions()),f=$h(l),m=524545|(0===n?268435456:0),_=u.signatureToSignatureDeclaration(r,e,l,m,rse(t));if(!_)return;let h=f?void 0:_.typeParameters,g=_.parameters,y=f?void 0:_.type;if(c){if(h){const e=K(h,(e=>{let t=e.constraint,n=e.default;if(t){const e=vse(t,p);e&&(t=e.typeNode,Ese(c,e.symbols))}if(n){const e=vse(n,p);e&&(n=e.typeNode,Ese(c,e.symbols))}return UA.updateTypeParameterDeclaration(e,e.modifiers,e.name,t,n)}));h!==e&&(h=yk(UA.createNodeArray(e,h.hasTrailingComma),h))}const e=K(g,(e=>{let t=f?void 0:e.type;if(t){const e=vse(t,p);e&&(t=e.typeNode,Ese(c,e.symbols))}return UA.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,f?void 0:e.questionToken,t,e.initializer)}));if(g!==e&&(g=yk(UA.createNodeArray(e,g.hasTrailingComma),g)),y){const e=vse(y,p);e&&(y=e.typeNode,Ese(c,e.symbols))}}const v=s?UA.createToken(58):void 0,b=_.asteriskToken;return _D(_)?UA.updateFunctionExpression(_,a,_.asteriskToken,yt(i,nC),h,g,y,o??_.body):hD(_)?UA.updateArrowFunction(_,a,h,g,y,_.equalsGreaterThanToken,o??_.body):AC(_)?UA.updateMethodDeclaration(_,a,b,i??UA.createIdentifier(""),v,h,g,y,o):sN(_)?UA.updateFunctionDeclaration(_,a,_.asteriskToken,yt(i,nC),h,g,y,o??_.body):void 0}function ase(e,t,n,r,o,i,a){const s=gQ(t.sourceFile,t.preferences),l=jp(t.program.getCompilerOptions()),c=rse(t),d=t.program.getTypeChecker(),u=$h(a),{typeArguments:p,arguments:f,parent:m}=r,_=u?void 0:d.getContextualType(r),h=U(f,(e=>nC(e)?e.text:lD(e)&&nC(e.name)?e.name.text:void 0)),g=u?[]:U(f,(e=>d.getTypeAtLocation(e))),{argumentTypeNodes:y,argumentTypeParameters:v}=dse(d,n,g,a,l,1,c),b=i?UA.createNodeArray(UA.createModifiersFromModifierFlags(i)):void 0,E=ID(m)?UA.createToken(42):void 0,S=u?void 0:function(e,t,n){const r=new Set(t.map((e=>e[0]))),o=new Map(t);if(n){const o=n.filter((n=>!t.some((t=>{var r;return e.getTypeAtLocation(n)===(null==(r=t[1])?void 0:r.argumentType)})))),i=r.size+o.length;for(let e=0;r.size<i;e+=1)r.add(sse(e))}return Ye(r.values(),(e=>{var t;return UA.createTypeParameterDeclaration(void 0,e,null==(t=o.get(e))?void 0:t.constraint)}))}(d,v,p),T=pse(f.length,h,y,void 0,u),x=u||void 0===_?void 0:d.typeToTypeNode(_,a,void 0,c);switch(e){case 174:return UA.createMethodDeclaration(b,E,o,void 0,S,T,x,fse(s));case 173:return UA.createMethodSignature(b,o,void 0,S,T,void 0===x?UA.createKeywordTypeNode(159):x);case 262:return In.assert("string"===typeof o||nC(o),"Unexpected name"),UA.createFunctionDeclaration(b,E,o,S,T,x,mse(Oa.Function_not_implemented.message,s));default:In.fail("Unexpected kind")}}function sse(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function lse(e,t,n,r,o,i,a){let s=e.typeToTypeNode(n,r,i,a);if(s&&eD(s)){const e=vse(s,o);e&&(Ese(t,e.symbols),s=e.typeNode)}return mZ(s)}function cse(e){return e.isUnionOrIntersection()?e.types.some(cse):262144&e.flags}function dse(e,t,n,r,o,i,a){const s=[],l=new Map;for(let d=0;d<n.length;d+=1){const u=n[d];if(u.isUnionOrIntersection()&&u.types.some(cse)){const e=sse(d);s.push(UA.createTypeReferenceNode(e)),l.set(e,void 0);continue}const p=e.getBaseTypeOfLiteralType(u),f=lse(e,t,p,r,o,i,a);if(!f)continue;s.push(f);const m=use(u),_=!u.isTypeParameter()||!u.constraint||524288&(c=u.constraint).flags&&16===c.objectFlags?void 0:lse(e,t,u.constraint,r,o,i,a);m&&l.set(m,{argumentType:u,constraint:_})}var c;return{argumentTypeNodes:s,argumentTypeParameters:Ye(l.entries())}}function use(e){var t;if(3145728&e.flags)for(const n of e.types){const e=use(n);if(e)return e}return 262144&e.flags?null==(t=e.getSymbol())?void 0:t.getName():void 0}function pse(e,t,n,r,o){const i=[],a=new Map;for(let s=0;s<e;s++){const e=(null==t?void 0:t[s])||`arg${s}`,l=a.get(e);a.set(e,(l||0)+1);const c=UA.createParameterDeclaration(void 0,void 0,e+(l||""),void 0!==r&&s>=r?UA.createToken(58):void 0,o?void 0:(null==n?void 0:n[s])||UA.createKeywordTypeNode(159),void 0);i.push(c)}return i}function fse(e){return mse(Oa.Method_not_implemented.message,e)}function mse(e,t){return UA.createBlock([UA.createThrowStatement(UA.createNewExpression(UA.createIdentifier("Error"),void 0,[UA.createStringLiteral(e,0===t)]))],!0)}function _se(e,t,n){const r=dh(t);if(!r)return;const o=yse(r,"compilerOptions");if(void 0===o)return void e.insertNodeAtObjectStart(t,r,gse("compilerOptions",UA.createObjectLiteralExpression(n.map((([e,t])=>gse(e,t))),!0)));const i=o.initializer;if(sD(i))for(const[a,s]of n){const n=yse(i,a);void 0===n?e.insertNodeAtObjectStart(t,i,gse(a,s)):e.replaceNode(t,n.initializer,s)}}function hse(e,t,n,r){_se(e,t,[[n,r]])}function gse(e,t){return UA.createPropertyAssignment(UA.createStringLiteral(e),t)}function yse(e,t){return L(e.properties,(e=>QN(e)&&!!e.name&&zR(e.name)&&e.name.text===t))}function vse(e,t){let n;const r=rB(e,(function e(r){if(P_(r)&&r.qualifier){const o=SE(r.qualifier),i=f0(o.symbol,t),a=i!==o.text?bse(r.qualifier,UA.createIdentifier(i)):r.qualifier;n=Ee(n,o.symbol);const s=oB(r.typeArguments,e,Gd);return UA.createTypeReferenceNode(a,s)}return fB(r,e,void 0)}),Gd);if(n&&r)return{typeNode:r,symbols:n}}function bse(e,t){return 80===e.kind?t:UA.createQualifiedName(bse(e.left,t),e.right)}function Ese(e,t){t.forEach((t=>e.addImportFromExportedSymbol(t,!0)))}function Sse(e,t){const n=Qs(t);let r=lY(e,t.start);for(;r.end<n;)r=r.parent;return r}var Tse=b({"src/services/codefixes/helpers.ts"(){Tge(),ese=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(ese||{})}});function xse(e,t,n,r,o,i){const a=Cse(e,t,n,r);if(!a||L5.isRefactorErrorInfo(a))return;const s=p_e.ChangeTracker.fromContext(o),{isStatic:l,isReadonly:c,fieldName:d,accessorName:u,originalName:p,type:f,container:m,declaration:_}=a;let h,g;if(vZ(d),vZ(u),vZ(_),vZ(m),Md(m)){const t=Zb(_);if(Jh(e)){const e=UA.createModifiersFromModifierFlags(t);h=e,g=e}else h=UA.createModifiersFromModifierFlags(function(e){e&=-9,e&=-3,4&e||(e|=1);return e}(t)),g=UA.createModifiersFromModifierFlags(function(e){return e&=-2,e&=-5,e|=2,e}(t));bk(_)&&(g=ce(Ul(_),g))}!function(e,t,n,r,o,i){TC(n)?function(e,t,n,r,o,i){const a=UA.updatePropertyDeclaration(n,i,o,n.questionToken||n.exclamationToken,r,n.initializer);e.replaceNode(t,n,a)}(e,t,n,r,o,i):QN(n)?function(e,t,n,r){let o=UA.updatePropertyAssignment(n,r,n.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===n&&(o=UA.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0);e.replacePropertyAssignment(t,n,o)}(e,t,n,o):e.replaceNode(t,n,UA.updateParameterDeclaration(n,i,n.dotDotDotToken,vt(o,nC),n.questionToken,n.type,n.initializer))}(s,e,_,f,d,g);const y=function(e,t,n,r,o,i){return UA.createGetAccessorDeclaration(r,t,[],n,UA.createBlock([UA.createReturnStatement(Rse(e,o,i))],!0))}(d,u,f,h,l,m);if(vZ(y),Dse(s,e,y,_,m),c){const t=_b(m);t&&function(e,t,n,r,o){if(!n.body)return;n.body.forEachChild((function n(i){cD(i)&&110===i.expression.kind&&zR(i.argumentExpression)&&i.argumentExpression.text===o&&vS(i)&&e.replaceNode(t,i.argumentExpression,UA.createStringLiteral(r)),lD(i)&&110===i.expression.kind&&i.name.text===o&&vS(i)&&e.replaceNode(t,i.name,UA.createIdentifier(r)),Td(i)||Md(i)||i.forEachChild(n)}))}(s,e,t,d.text,p)}else{const t=function(e,t,n,r,o,i){return UA.createSetAccessorDeclaration(r,t,[UA.createParameterDeclaration(void 0,void 0,UA.createIdentifier("value"),void 0,n)],UA.createBlock([UA.createExpressionStatement(UA.createAssignment(Rse(e,o,i),UA.createIdentifier("value")))],!0))}(d,u,f,h,l,m);vZ(t),Dse(s,e,t,_,m)}return s.getChanges()}function Ase(e){return gl(e,e.parent)||TC(e)||QN(e)}function Ise(e,t){return nC(t)?UA.createIdentifier(e):UA.createStringLiteral(e)}function Rse(e,t,n){const r=t?n.name:UA.createThis();return nC(e)?UA.createPropertyAccessExpression(r,e):UA.createElementAccessExpression(r,UA.createStringLiteralFromNode(e))}function Cse(e,t,n,r,o=!0){const i=n===r&&o,a=Cl(lY(e,n).parent,Ase);if(!a||!G$(a.name,e,n,r)&&!i)return{error:eT(Oa.Could_not_find_property_for_which_to_generate_accessor)};if(!function(e){return nC(e)||zR(e)}(a.name))return{error:eT(Oa.Name_is_not_valid)};if(271!==(98303&Zb(a)|271))return{error:eT(Oa.Can_only_convert_property_with_modifier)};const s=a.name.text,l=y0(s),c=Ise(l?s:AZ(`_${s}`,e),a.name),d=Ise(l?AZ(s.substring(1),e):s,a.name);return{isStatic:Vb(a),isReadonly:Jb(a),type:Nse(a,t),container:169===a.kind?a.parent.parent:a.parent,originalName:a.name.text,declaration:a,fieldName:c,accessorName:d,renameAccessor:l}}function Dse(e,t,n,r,o){gl(r,r.parent)?e.insertMemberAtStart(t,o,n):QN(r)?e.insertNodeAfterComma(t,r,n):e.insertNodeAfter(t,r,n)}function Nse(e,t){const n=Ib(e);if(TC(e)&&n&&e.questionToken){const e=t.getTypeChecker(),r=e.getTypeFromTypeNode(n);if(!e.isTypeAssignableTo(e.getUndefinedType(),r)){const e=UC(n)?n.types:[n];return UA.createUnionTypeNode([...e,UA.createKeywordTypeNode(157)])}}return n}function Mse(e,t){const n=[];for(;e;){const r=Fy(e),o=r&&t.getSymbolAtLocation(r.expression);if(!o)break;const i=2097152&o.flags?t.getAliasedSymbol(o):o,a=i.declarations&&L(i.declarations,Md);if(!a)break;n.push(a),e=a}return n}var Lse,kse=b({"src/services/codefixes/generateAccessors.ts"(){Tge()}});function Pse(e,t,n,r){const o=p_e.ChangeTracker.with(e,(e=>e.replaceNode(t,n,r)));return l9(Lse,o,[Oa.Replace_import_with_0,o[0].textChanges[0].newText])}function wse(e){const t=e.sourceFile,n=Oa.This_expression_is_not_callable.code===e.errorCode?213:214,r=Cl(lY(t,e.span.start),(e=>e.kind===n));if(!r)return[];return Fse(e,r.expression)}function Ose(e){const t=Cl(lY(e.sourceFile,e.span.start),(t=>t.getStart()===e.span.start&&t.getEnd()===e.span.start+e.span.length));return t?Fse(e,t):[]}function Fse(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&Lf(n.symbol)&&n.symbol.links.originatingImport))return[];const r=[],o=n.symbol.links.originatingImport;if(L_(o)||xe(r,function(e,t){const n=Yf(t),r=Gg(t),o=e.program.getCompilerOptions(),i=[];return i.push(Pse(e,n,t,mQ(r.name,void 0,t.moduleSpecifier,gQ(n,e.preferences)))),1===Vp(o)&&i.push(Pse(e,n,t,UA.createImportEqualsDeclaration(void 0,!1,r.name,UA.createExternalModuleReference(t.moduleSpecifier)))),i}(e,o)),uu(t)&&(!Bl(t.parent)||t.parent.name!==t)){const n=e.sourceFile,o=p_e.ChangeTracker.with(e,(e=>e.replaceNode(n,t,UA.createPropertyAccessExpression(t,"default"),{})));r.push(l9(Lse,o,Oa.Use_synthetic_default_member))}return r}var Wse,zse,Bse,Gse,jse,Vse=b({"src/services/codefixes/fixInvalidImportSyntax.ts"(){Tge(),sce(),Lse="invalidImportSyntax",p9({errorCodes:[Oa.This_expression_is_not_callable.code,Oa.This_expression_is_not_constructable.code],getCodeActions:wse}),p9({errorCodes:[Oa.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Oa.Type_0_does_not_satisfy_the_constraint_1.code,Oa.Type_0_is_not_assignable_to_type_1.code,Oa.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,Oa.Type_predicate_0_is_not_assignable_to_1.code,Oa.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,Oa._0_index_type_1_is_not_assignable_to_2_index_type_3.code,Oa.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,Oa.Property_0_in_type_1_is_not_assignable_to_type_2.code,Oa.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,Oa.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:Ose})}});function Use(e,t){const n=lY(e,t);if(nC(n)&&TC(n.parent)){const e=Ab(n.parent);if(e)return{type:e,prop:n.parent,isJs:$h(n.parent)}}}function Hse(e,t,n){vZ(n);const r=UA.updatePropertyDeclaration(n,n.modifiers,n.name,UA.createToken(54),n.type,n.initializer);e.replaceNode(t,n,r)}function Kse(e,t,n){const r=UA.createKeywordTypeNode(157),o=UC(n.type)?n.type.types.concat(r):[n.type,r],i=UA.createUnionTypeNode(o);n.isJs?e.addJSDocTags(t,n.prop,[UA.createJSDocTypeTag(void 0,UA.createJSDocTypeExpression(i))]):e.replaceNode(t,n.type,i)}function qse(e,t,n,r){vZ(n);const o=UA.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,r);e.replaceNode(t,n,o)}function Jse(e,t){return Xse(e,e.getTypeFromTypeNode(t.type))}function Xse(e,t){if(512&t.flags)return t===e.getFalseType()||t===e.getFalseType(!0)?UA.createFalse():UA.createTrue();if(t.isStringLiteral())return UA.createStringLiteral(t.value);if(t.isNumberLiteral())return UA.createNumericLiteral(t.value);if(2048&t.flags)return UA.createBigIntLiteral(t.value);if(t.isUnion())return I(t.types,(t=>Xse(e,t)));if(t.isClass()){const e=IS(t.symbol);if(!e||Gb(e,64))return;const n=_b(e);if(n&&n.parameters.length)return;return UA.createNewExpression(UA.createIdentifier(t.symbol.name),void 0,void 0)}return e.isArrayLikeType(t)?UA.createArrayLiteralExpression():void 0}var $se,Yse,Qse=b({"src/services/codefixes/fixStrictClassInitialization.ts"(){Tge(),sce(),Wse="strictClassInitialization",zse="addMissingPropertyDefiniteAssignmentAssertions",Bse="addMissingPropertyUndefinedType",Gse="addMissingPropertyInitializer",p9({errorCodes:jse=[Oa.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],getCodeActions:function(e){const t=Use(e.sourceFile,e.span.start);if(!t)return;const n=[];return Ee(n,function(e,t){const n=p_e.ChangeTracker.with(e,(n=>Kse(n,e.sourceFile,t)));return c9(Wse,n,[Oa.Add_undefined_type_to_property_0,t.prop.name.getText()],Bse,Oa.Add_undefined_type_to_all_uninitialized_properties)}(e,t)),Ee(n,function(e,t){if(t.isJs)return;const n=p_e.ChangeTracker.with(e,(n=>Hse(n,e.sourceFile,t.prop)));return c9(Wse,n,[Oa.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],zse,Oa.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,t)),Ee(n,function(e,t){if(t.isJs)return;const n=Jse(e.program.getTypeChecker(),t.prop);if(!n)return;const r=p_e.ChangeTracker.with(e,(r=>qse(r,e.sourceFile,t.prop,n)));return c9(Wse,r,[Oa.Add_initializer_to_property_0,t.prop.name.getText()],Gse,Oa.Add_initializers_to_all_uninitialized_properties)}(e,t)),n},fixIds:[zse,Bse,Gse],getAllCodeActions:e=>y9(e,jse,((t,n)=>{const r=Use(n.file,n.start);if(r)switch(e.fixId){case zse:Hse(t,n.file,r.prop);break;case Bse:Kse(t,n.file,r);break;case Gse:const o=Jse(e.program.getTypeChecker(),r.prop);if(!o)return;qse(t,n.file,r.prop,o);break;default:In.fail(JSON.stringify(e.fixId))}}))})}});function Zse(e,t,n){const{allowSyntheticDefaults:r,defaultImportName:o,namedImports:i,statement:a,required:s}=n;e.replaceNode(t,a,o&&!r?UA.createImportEqualsDeclaration(void 0,!1,o,UA.createExternalModuleReference(s)):UA.createImportDeclaration(void 0,UA.createImportClause(!1,o,i),s,void 0))}function ele(e,t,n){const{parent:r}=lY(e,n);tg(r,!0)||In.failBadSyntaxKind(r);const o=vt(r.parent,iN),i=yt(o.name,nC),a=rD(o.name)?function(e){const t=[];for(const n of e.elements){if(!nC(n.name)||n.initializer)return;t.push(UA.createImportSpecifier(!1,yt(n.propertyName,nC),n.name))}if(t.length)return UA.createNamedImports(t)}(o.name):void 0;if(i||a)return{allowSyntheticDefaults:Jp(t.getCompilerOptions()),defaultImportName:i,namedImports:a,statement:vt(o.parent.parent,GD),required:Pe(r.arguments)}}var tle,nle,rle=b({"src/services/codefixes/requireInTs.ts"(){Tge(),sce(),$se="requireInTs",p9({errorCodes:Yse=[Oa.require_call_may_be_converted_to_an_import.code],getCodeActions(e){const t=ele(e.sourceFile,e.program,e.span.start);if(!t)return;const n=p_e.ChangeTracker.with(e,(n=>Zse(n,e.sourceFile,t)));return[c9($se,n,Oa.Convert_require_to_import,$se,Oa.Convert_all_require_to_import)]},fixIds:[$se],getAllCodeActions:e=>y9(e,Yse,((t,n)=>{const r=ele(n.file,e.program,n.start);r&&Zse(t,e.sourceFile,r)}))})}});function ole(e,t){const n=lY(e,t);if(!nC(n))return;const{parent:r}=n;if(hN(r)&&wN(r.moduleReference))return{importNode:r,name:n,moduleSpecifier:r.moduleReference.expression};if(xN(r)){const e=r.parent.parent;return{importNode:e,name:n,moduleSpecifier:e.moduleSpecifier}}}function ile(e,t,n,r){e.replaceNode(t,n.importNode,mQ(n.name,void 0,n.moduleSpecifier,gQ(t,r)))}var ale,sle,lle=b({"src/services/codefixes/useDefaultImport.ts"(){Tge(),sce(),tle="useDefaultImport",p9({errorCodes:nle=[Oa.Import_may_be_converted_to_a_default_import.code],getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,r=ole(t,n);if(!r)return;const o=p_e.ChangeTracker.with(e,(n=>ile(n,t,r,e.preferences)));return[c9(tle,o,Oa.Convert_to_default_import,tle,Oa.Convert_all_to_default_imports)]},fixIds:[tle],getAllCodeActions:e=>y9(e,nle,((t,n)=>{const r=ole(n.file,n.start);r&&ile(t,n.file,r,e.preferences)}))})}});function cle(e,t,n){const r=yt(lY(t,n.start),FR);if(!r)return;const o=r.getText(t)+"n";e.replaceNode(t,r,UA.createBigIntLiteral(o))}var dle,ule,ple=b({"src/services/codefixes/useBigintLiteral.ts"(){Tge(),sce(),ale="useBigintLiteral",p9({errorCodes:sle=[Oa.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],getCodeActions:function(e){const t=p_e.ChangeTracker.with(e,(t=>cle(t,e.sourceFile,e.span)));if(t.length>0)return[c9(ale,t,Oa.Convert_to_a_bigint_numeric_literal,ale,Oa.Convert_all_to_bigint_numeric_literals)]},fixIds:[ale],getAllCodeActions:e=>y9(e,sle,((e,t)=>cle(e,t.file,t)))})}});function fle(e,t){const n=lY(e,t);return In.assert(102===n.kind,"This token should be an ImportKeyword"),In.assert(205===n.parent.kind,"Token parent should be an ImportType"),n.parent}function mle(e,t,n){const r=UA.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,r)}var _le,hle,gle=b({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){Tge(),sce(),dle="fixAddModuleReferTypeMissingTypeof",p9({errorCodes:ule=[Oa.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=fle(t,n.start),o=p_e.ChangeTracker.with(e,(e=>mle(e,t,r)));return[c9(dle,o,Oa.Add_missing_typeof,dle,Oa.Add_missing_typeof)]},fixIds:[dle],getAllCodeActions:e=>y9(e,ule,((t,n)=>mle(t,e.sourceFile,fle(n.file,n.start))))})}});function yle(e,t){let n=lY(e,t).parent.parent;if((TD(n)||(n=n.parent,TD(n)))&&im(n.operatorToken))return n}function vle(e,t,n){const r=function(e){const t=[];let n=e;for(;;){if(TD(n)&&im(n.operatorToken)&&28===n.operatorToken.kind){if(t.push(n.left),zu(n.right))return t.push(n.right),t;if(TD(n.right)){n=n.right;continue}return}return}}(n);r&&e.replaceNode(t,n,UA.createJsxFragment(UA.createJsxOpeningFragment(),r,UA.createJsxJsxClosingFragment()))}var ble,Ele,Sle=b({"src/services/codefixes/wrapJsxInFragment.ts"(){Tge(),sce(),_le="wrapJsxInFragment",p9({errorCodes:hle=[Oa.JSX_expressions_must_have_one_parent_element.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=yle(t,n.start);if(!r)return;const o=p_e.ChangeTracker.with(e,(e=>vle(e,t,r)));return[c9(_le,o,Oa.Wrap_in_JSX_fragment,_le,Oa.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[_le],getAllCodeActions:e=>y9(e,hle,((t,n)=>{const r=yle(e.sourceFile,n.start);r&&vle(t,e.sourceFile,r)}))})}});function Tle(e,t){const n=yt(lY(e,t).parent.parent,LC);if(!n)return;const r=cN(n.parent)?n.parent:yt(n.parent.parent,dN);return r?{indexSignature:n,container:r}:void 0}function xle(e,t,{indexSignature:n,container:r}){const i=(cN(r)?r.members:r.type.members).filter((e=>!LC(e))),a=Pe(n.parameters),s=UA.createTypeParameterDeclaration(void 0,vt(a.name,nC),a.type),l=UA.createMappedTypeNode(Jb(n)?UA.createModifier(148):void 0,s,void 0,n.questionToken,n.type,void 0),c=UA.createIntersectionTypeNode([...zy(r),l,...i.length?[UA.createTypeLiteralNode(i)]:o]);var d,u;e.replaceNode(t,r,(d=r,u=c,UA.createTypeAliasDeclaration(d.modifiers,d.name,d.typeParameters,u)))}var Ale,Ile,Rle,Cle=b({"src/services/codefixes/convertToMappedObjectType.ts"(){Tge(),sce(),ble="fixConvertToMappedObjectType",p9({errorCodes:Ele=[Oa.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Tle(t,n.start);if(!r)return;const o=p_e.ChangeTracker.with(e,(e=>xle(e,t,r))),i=kl(r.container.name);return[c9(ble,o,[Oa.Convert_0_to_mapped_object_type,i],ble,[Oa.Convert_0_to_mapped_object_type,i])]},fixIds:[ble],getAllCodeActions:e=>y9(e,Ele,((e,t)=>{const n=Tle(t.file,t.start);n&&xle(e,t.file,n)}))})}}),Dle=b({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){Tge(),sce(),Ale="removeAccidentalCallParentheses",p9({errorCodes:[Oa.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){const t=Cl(lY(e.sourceFile,e.span.start),dD);if(!t)return;const n=p_e.ChangeTracker.with(e,(n=>{n.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})}));return[l9(Ale,n,Oa.Remove_parentheses)]},fixIds:[Ale]})}});function Nle(e,t,n){const r=yt(lY(t,n.start),(e=>135===e.kind)),o=r&&yt(r.parent,bD);if(!o)return;let i=o;if(mD(o.parent)){if(nC(GS(o.expression,!1))){const e=fY(o.parent.pos,t);e&&105!==e.kind&&(i=o.parent)}}e.replaceNode(t,i,o.expression)}var Mle,Lle,kle=b({"src/services/codefixes/removeUnnecessaryAwait.ts"(){Tge(),sce(),Ile="removeUnnecessaryAwait",p9({errorCodes:Rle=[Oa.await_has_no_effect_on_the_type_of_this_expression.code],getCodeActions:function(e){const t=p_e.ChangeTracker.with(e,(t=>Nle(t,e.sourceFile,e.span)));if(t.length>0)return[c9(Ile,t,Oa.Remove_unnecessary_await,Ile,Oa.Remove_all_unnecessary_uses_of_await)]},fixIds:[Ile],getAllCodeActions:e=>y9(e,Rle,((e,t)=>Nle(e,t.file,t)))})}});function Ple(e,t){return Cl(lY(e,t.start),gN)}function wle(e,t,n){if(!t)return;const r=In.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,UA.updateImportDeclaration(t,t.modifiers,UA.updateImportClause(r,r.isTypeOnly,r.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,UA.createImportDeclaration(void 0,UA.updateImportClause(r,r.isTypeOnly,void 0,r.namedBindings),t.moduleSpecifier,t.attributes))}var Ole,Fle,Wle=b({"src/services/codefixes/splitTypeOnlyImport.ts"(){Tge(),sce(),p9({errorCodes:Mle=[Oa.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],fixIds:[Lle="splitTypeOnlyImport"],getCodeActions:function(e){const t=p_e.ChangeTracker.with(e,(t=>wle(t,Ple(e.sourceFile,e.span),e)));if(t.length)return[c9(Lle,t,Oa.Split_into_two_separate_import_declarations,Lle,Oa.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>y9(e,Mle,((t,n)=>{wle(t,Ple(e.sourceFile,n),e)}))})}});function zle(e,t,n){var r;const o=n.getTypeChecker().getSymbolAtLocation(lY(e,t));if(void 0===o)return;const i=yt(null==(r=null==o?void 0:o.valueDeclaration)?void 0:r.parent,aN);if(void 0===i)return;const a=J$(i,87,e);return void 0!==a?{symbol:o,token:a}:void 0}function Ble(e,t,n){e.replaceNode(t,n,UA.createToken(121))}var Gle,jle,Vle,Ule=b({"src/services/codefixes/convertConstToLet.ts"(){Tge(),sce(),Ole="fixConvertConstToLet",p9({errorCodes:Fle=[Oa.Cannot_assign_to_0_because_it_is_a_constant.code],getCodeActions:function(e){const{sourceFile:t,span:n,program:r}=e,o=zle(t,n.start,r);if(void 0===o)return;const i=p_e.ChangeTracker.with(e,(e=>Ble(e,t,o.token)));return[d9(Ole,i,Oa.Convert_const_to_let,Ole,Oa.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Map;return h9(p_e.ChangeTracker.with(e,(r=>{v9(e,Fle,(e=>{const o=zle(e.file,e.start,t);if(o&&LS(n,Kz(o.symbol)))return Ble(r,e.file,o.token)}))})))},fixIds:[Ole]})}});function Hle(e,t,n){const r=lY(e,t);return 27===r.kind&&r.parent&&(sD(r.parent)||aD(r.parent))?{node:r}:void 0}function Kle(e,t,{node:n}){const r=UA.createToken(28);e.replaceNode(t,n,r)}var qle,Jle,Xle=b({"src/services/codefixes/fixExpectedComma.ts"(){Tge(),sce(),Gle="fixExpectedComma",jle=Oa._0_expected.code,p9({errorCodes:Vle=[jle],getCodeActions(e){const{sourceFile:t}=e,n=Hle(t,e.span.start,e.errorCode);if(!n)return;const r=p_e.ChangeTracker.with(e,(e=>Kle(e,t,n)));return[c9(Gle,r,[Oa.Change_0_to_1,";",","],Gle,[Oa.Change_0_to_1,";",","])]},fixIds:[Gle],getAllCodeActions:e=>y9(e,Vle,((t,n)=>{const r=Hle(n.file,n.start,n.code);r&&Kle(t,e.sourceFile,r)}))})}});function $le(e,t,n,r,o){const i=lY(t,n.start);if(!nC(i)||!dD(i.parent)||i.parent.expression!==i||0!==i.parent.arguments.length)return;const a=r.getTypeChecker(),s=a.getSymbolAtLocation(i),l=null==s?void 0:s.valueDeclaration;if(!l||!bC(l)||!uD(l.parent.parent))return;if(null==o?void 0:o.has(l))return;null==o||o.add(l);const c=function(e){var t;if(!$h(e))return e.typeArguments;if(mD(e.parent)){const n=null==(t=yc(e.parent))?void 0:t.typeExpression.type;if(n&&PC(n)&&nC(n.typeName)&&"Promise"===kl(n.typeName))return n.typeArguments}}(l.parent.parent);if(se(c)){const n=c[0],r=!UC(n)&&!JC(n)&&JC(UA.createUnionTypeNode([n,UA.createKeywordTypeNode(116)]).types[0]);r&&e.insertText(t,n.pos,"("),e.insertText(t,n.end,r?") | void":" | void")}else{const n=a.getResolvedSignature(i.parent),r=null==n?void 0:n.parameters[0],o=r&&a.getTypeOfSymbolAtLocation(r,l.parent.parent);$h(l)?(!o||3&o.flags)&&(e.insertText(t,l.parent.parent.end,")"),e.insertText(t,Ts(t.text,l.parent.parent.pos),"/** @type {Promise<void>} */(")):(!o||2&o.flags)&&e.insertText(t,l.parent.parent.expression.end,"<void>")}}var Yle=b({"src/services/codefixes/fixAddVoidToPromise.ts"(){Tge(),sce(),qle="addVoidToPromise",p9({errorCodes:Jle=[Oa.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,Oa.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],fixIds:[qle],getCodeActions(e){const t=p_e.ChangeTracker.with(e,(t=>$le(t,e.sourceFile,e.span,e.program)));if(t.length>0)return[c9("addVoidToPromise",t,Oa.Add_void_to_Promise_resolved_without_a_value,qle,Oa.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:e=>y9(e,Jle,((t,n)=>$le(t,n.file,n,e.program,new Set)))})}}),Qle={};E(Qle,{PreserveOptionalFlags:()=>ese,addNewNodeForMemberSymbol:()=>ose,codeFixAll:()=>y9,createCodeFixAction:()=>c9,createCodeFixActionMaybeFixAll:()=>d9,createCodeFixActionWithoutFixAll:()=>l9,createCombinedCodeActions:()=>h9,createFileTextChanges:()=>g9,createImportAdder:()=>lne,createImportSpecifierResolver:()=>dne,createJsonPropertyAssignment:()=>gse,createMissingMemberNodes:()=>nse,createSignatureDeclarationFromCallExpression:()=>ase,createSignatureDeclarationFromSignature:()=>ise,createStubbedBody:()=>mse,eachDiagnostic:()=>v9,findAncestorMatchingSpan:()=>Sse,findJsonProperty:()=>yse,generateAccessorFromProperty:()=>xse,getAccessorConvertiblePropertyAtPosition:()=>Cse,getAllFixes:()=>_9,getAllSupers:()=>Mse,getArgumentTypesAndTypeParameters:()=>dse,getFixes:()=>m9,getImportCompletionAction:()=>une,getImportKind:()=>Ine,getJSDocTypedefNodes:()=>Kte,getNoopSymbolTrackerWithResolver:()=>rse,getPromoteTypeOnlyCompletionAction:()=>pne,getSupportedErrorCodes:()=>f9,importFixName:()=>one,importSymbols:()=>Ese,moduleSpecifierToValidIdentifier:()=>jne,moduleSymbolToValidIdentifier:()=>Gne,parameterShouldGetTypeFromJSDoc:()=>gee,registerCodeFix:()=>p9,setJsonCompilerOptionValue:()=>hse,setJsonCompilerOptionValues:()=>_se,tryGetAutoImportableReferenceFromTypeNode:()=>vse,typeToAutoImportableTypeNode:()=>lse});var Zle,ece,tce,nce,rce,oce,ice,ace,sce=b({"src/services/_namespaces/ts.codefix.ts"(){T9(),C9(),D9(),O9(),K9(),Q9(),nee(),aee(),dee(),_ee(),xee(),Mee(),ate(),Ite(),Mte(),Ote(),jte(),Xte(),ene(),sne(),Hne(),Zne(),ire(),dre(),mre(),Sre(),Are(),kre(),Jre(),poe(),goe(),Noe(),Ooe(),joe(),Joe(),Zoe(),rie(),cie(),die(),_ie(),Eie(),Cie(),kie(),Oie(),Vie(),rae(),sae(),pae(),vae(),xae(),Dae(),kae(),Kae(),Qae(),tse(),Tse(),kse(),Vse(),Qse(),rle(),lle(),ple(),gle(),Sle(),Cle(),Dle(),kle(),Wle(),Ule(),Xle(),Yle()}});function lce(e){return!!(e&&4&e.kind)}function cce(e){return!(!e||32!==e.kind)}function dce(e){return(lce(e)||cce(e))&&!!e.isFromPackageJson}function uce(e){return!!(e&&64&e.kind)}function pce(e){return!!(e&&128&e.kind)}function fce(e){return!!(e&&512&e.kind)}function mce(e,t,n,r,o,i,a,s,l){var c,d,u;const p=nr(),f=a||AT(Up(r.getCompilerOptions()));let m=!1,_=0,h=0,g=0,y=0;const v=l({tryResolve:function(e,t){if(t){const t=n.getModuleSpecifierForBestExportInfo(e,o,s);return t&&_++,t||"failed"}const r=f||i.allowIncompleteCompletions&&h<Zle,a=!r&&i.allowIncompleteCompletions&&y<ece,l=r||a?n.getModuleSpecifierForBestExportInfo(e,o,s,a):void 0;(!r&&!a||a&&!l)&&(m=!0);h+=(null==l?void 0:l.computedWithoutCacheCount)||0,g+=e.length-((null==l?void 0:l.computedWithoutCacheCount)||0),a&&y++;return l||(f?"failed":"skipped")},skippedAny:()=>m,resolvedAny:()=>h>0,resolvedBeyondLimit:()=>h>Zle}),b=y?` (${(g/y*100).toFixed(1)}% hit rate)`:"";return null==(c=t.log)||c.call(t,`${e}: resolved ${h} module specifiers, plus ${_} ambient and ${g} from cache${b}`),null==(d=t.log)||d.call(t,`${e}: response is ${m?"incomplete":"complete"}`),null==(u=t.log)||u.call(t,`${e}: ${nr()-p}`),v}function _ce(e,t,n,r,o,i,a,s,l,c,d=!1){var u;const{previousToken:p}=Xce(o,r);if(a&&!gY(r,o,p)&&!function(e,t,n,r){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&OZ(n)&&r===n.getStart(e)+1;case"#":return!!n&&rC(n)&&!!_h(n);case"<":return!!n&&30===n.kind&&(!TD(n.parent)||cde(n.parent));case"/":return!!n&&(np(n)?!!zg(n):44===n.kind&&zN(n.parent));case" ":return!!n&&_C(n)&&312===n.parent.kind;default:return In.assertNever(t)}}(r,a,p,o))return;if(" "===a)return i.includeCompletionsForImportStatements&&i.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;const f=t.getCompilerOptions(),m=t.getTypeChecker(),_=i.allowIncompleteCompletions?null==(u=e.getIncompleteCompletionsCache)?void 0:u.call(e):void 0;if(_&&3===s&&p&&nC(p)){const n=function(e,t,n,r,o,i,a,s){const l=e.get();if(!l)return;const c=aY(t,s),d=n.text.toLowerCase(),u=F0(t,o,r,i,a),p=mce("continuePreviousIncompleteResponse",o,Qle.createImportSpecifierResolver(t,r,o,i),r,n.getStart(),i,!1,wx(n),(e=>{const n=Z(l.entries,(n=>{var i;if(!n.hasAction||!n.source||!n.data||gce(n.data))return n;if(!vde(n.name,d))return;const{origin:a}=In.checkDefined($ce(n.name,n.data,r,o)),s=u.get(t.path,n.data.exportMapKey),l=s&&e.tryResolve(s,!Xs(Gv(a.moduleSymbol.name)));if("skipped"===l)return n;if(!l||"failed"===l)return void(null==(i=o.log)||i.call(o,`Unexpected failure resolving auto import for '${n.name}' from '${n.source}'`));const c={...a,kind:32,moduleSpecifier:l.moduleSpecifier};return n.data=wce(c),n.source=zce(c),n.sourceDisplay=[qQ(c.moduleSpecifier)],n}));return e.skippedAny()||(l.isIncomplete=void 0),n}));return l.entries=p,l.flags=4|(l.flags||0),l.optionalReplacementSpan=Tce(c),l}(_,r,p,t,e,i,l,o);if(n)return n}else null==_||_.clear();const h=Zde.getStringLiteralCompletions(r,o,p,f,e,t,n,i,d);if(h)return h;if(p&&Vc(p.parent)&&(83===p.kind||88===p.kind||80===p.kind))return function(e){const t=function(e){const t=[],n=new Map;let r=e;for(;r&&!Td(r);){if(tN(r)){const e=r.label.text;n.has(e)||(n.set(e,!0),t.push({name:e,kindModifiers:"",kind:"label",sortText:tce.LocationPriority}))}r=r.parent}return t}(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}(p.parent);const g=Jce(t,n,r,f,o,i,void 0,e,c,l);var y;if(g)switch(g.kind){case 0:const a=function(e,t,n,r,o,i,a,s,l,c){const{symbols:d,contextToken:u,completionKind:p,isInSnippetScope:f,isNewIdentifierLocation:m,location:_,propertyAccessToConvert:h,keywordFilters:g,symbolToOriginInfoMap:y,recommendedCompletion:v,isJsxInitializer:b,isTypeOnlyLocation:E,isJsxIdentifierExpected:S,isRightOfOpenTag:T,isRightOfDotOrQuestionDot:x,importStatementCompletion:A,insideJsDocTagTypeExpression:I,symbolToSortTextMap:R,hasUnresolvedAutoImports:C}=i;let D=i.literals;const N=n.getTypeChecker();if(1===_T(e.scriptKind)){const t=function(e,t){const n=Cl(e,(e=>{switch(e.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}}));if(n){const e=!!J$(n,32,t),r=n.parent.openingElement.tagName.getText(t)+(e?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:HY(n.tagName),entries:[{name:r,kind:"class",kindModifiers:void 0,sortText:tce.LocationPriority}]}}return}(_,e);if(t)return t}const M=Cl(u,JN);if(M&&(hC(u)||Ay(u,M.expression))){const e=C0(N,M.parent.clauses);D=D.filter((t=>!e.hasValue(t))),d.forEach(((t,n)=>{if(t.valueDeclaration&&tM(t.valueDeclaration)){const r=N.getConstantValue(t.valueDeclaration);void 0!==r&&e.hasValue(r)&&(y[n]={kind:256})}}))}const L=[],k=xce(e,r);if(k&&!m&&(!d||0===d.length)&&0===g)return;const P=Bce(d,L,void 0,u,_,l,e,t,n,jp(r),o,p,a,r,s,E,h,S,b,A,v,y,R,S,T,c);if(0!==g)for(const O of Qce(g,!I&&Jh(e)))(E&&QY(ss(O.name))||!E&&Ede(O.name)||!P.has(O.name))&&(P.add(O.name),me(L,O,hce,!0));for(const O of function(e,t){const n=[];if(e){const r=e.getSourceFile(),o=e.parent,i=r.getLineAndCharacterOfPosition(e.end).line,a=r.getLineAndCharacterOfPosition(t).line;(gN(o)||DN(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&i===a&&n.push({name:as(132),kind:"keyword",kindModifiers:"",sortText:tce.GlobalsOrKeywords})}return n}(u,l))P.has(O.name)||(P.add(O.name),me(L,O,hce,!0));for(const O of D){const t=Nce(e,a,O);P.add(t.name),me(L,t,hce,!0)}k||function(e,t,n,r,o){T7(e).forEach(((e,i)=>{if(e===t)return;const a=Ll(i);!n.has(a)&&zs(a,r)&&(n.add(a),me(o,{name:a,kind:"warning",kindModifiers:"",sortText:tce.JavascriptIdentifiers,isFromUncheckedFile:!0},hce))}))}(e,_.pos,P,jp(r),L);let w;if(a.includeCompletionsWithInsertText&&u&&!T&&!x&&(w=Cl(u,mN))){const o=Ace(w,e,a,r,t,n,s);o&&L.push(o.entry)}return{flags:i.flags,isGlobalCompletion:f,isIncomplete:!(!a.allowIncompleteCompletions||!C)||void 0,isMemberCompletion:Cce(p),isNewIdentifierLocation:m,optionalReplacementSpan:Tce(_),entries:L}}(r,e,t,f,n,g,i,c,o,d);return(null==a?void 0:a.isIncomplete)&&(null==_||_.set(a)),a;case 1:return yce([...Bpe.getJSDocTagNameCompletions(),...vce(r,o,m,f,i,!0)]);case 2:return yce([...Bpe.getJSDocTagCompletions(),...vce(r,o,m,f,i,!1)]);case 3:return yce(Bpe.getJSDocParameterNameCompletions(g.tag));case 4:return y=g.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:g.isNewIdentifierLocation,entries:y.slice()};default:return In.assertNever(g)}}function hce(e,t){var n,r;let o=Kt(e.sortText,t.sortText);return 0===o&&(o=Kt(e.name,t.name)),0===o&&(null==(n=e.data)?void 0:n.moduleSpecifier)&&(null==(r=t.data)?void 0:r.moduleSpecifier)&&(o=lx(e.data.moduleSpecifier,t.data.moduleSpecifier)),0===o?-1:o}function gce(e){return!!(null==e?void 0:e.moduleSpecifier)}function yce(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function vce(e,t,n,r,o,i){const a=lY(e,t);if(!Ku(a)&&!bM(a))return[];const s=bM(a)?a:a.parent;if(!bM(s))return[];const l=s.parent;if(!Td(l))return[];const c=Jh(e),d=o.includeCompletionsWithSnippetText||void 0,u=B(s.tags,(e=>OM(e)&&e.getEnd()<=t));return Z(l.parameters,(e=>{if(!ql(e).length){if(nC(e.name)){const t={tabstop:1},a=e.name.text;let s=Ece(a,e.initializer,e.dotDotDotToken,c,!1,!1,n,r,o),l=d?Ece(a,e.initializer,e.dotDotDotToken,c,!1,!0,n,r,o,t):void 0;return i&&(s=s.slice(1),l&&(l=l.slice(1))),{name:s,kind:"parameter",sortText:tce.LocationPriority,insertText:d?l:void 0,isSnippet:d}}if(e.parent.parameters.indexOf(e)===u){const t=`param${u}`,a=bce(t,e.name,e.initializer,e.dotDotDotToken,c,!1,n,r,o),s=d?bce(t,e.name,e.initializer,e.dotDotDotToken,c,!0,n,r,o):void 0;let l=a.join(VE(r)+"* "),p=null==s?void 0:s.join(VE(r)+"* ");return i&&(l=l.slice(1),p&&(p=p.slice(1))),{name:l,kind:"parameter",sortText:tce.LocationPriority,insertText:d?p:void 0,isSnippet:d}}}}))}function bce(e,t,n,r,o,i,a,s,l){return o?c(e,t,n,r,{tabstop:1}):[Ece(e,n,r,o,!1,i,a,s,l,{tabstop:1})];function c(e,t,n,r,c){if(rD(t)&&!r){const u={tabstop:c.tabstop},p=Ece(e,n,r,o,!0,i,a,s,l,u);let f=[];for(const n of t.elements){const t=d(e,n,u);if(!t){f=void 0;break}f.push(...t)}if(f)return c.tabstop=u.tabstop,[p,...f]}return[Ece(e,n,r,o,!1,i,a,s,l,c)]}function d(e,t,n){if(!t.propertyName&&nC(t.name)||nC(t.name)){const r=t.propertyName?s_(t.propertyName):t.name.text;if(!r)return;return[Ece(`${e}.${r}`,t.initializer,t.dotDotDotToken,o,!1,i,a,s,l,n)]}if(t.propertyName){const r=s_(t.propertyName);return r&&c(`${e}.${r}`,t.name,t.initializer,t.dotDotDotToken,n)}}}function Ece(e,t,n,r,o,i,a,s,l,c){if(i&&In.assertIsDefined(c),t&&(e=function(e,t){const n=t.getText().trim();if(n.includes("\n")||n.length>80)return`[${e}]`;return`[${e}=${n}]`}(e,t)),i&&(e=tA(e)),r){let r="*";if(o)In.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),r="Object";else{if(t){const e=a.getTypeAtLocation(t.parent);if(!(16385&e.flags)){const n=t.getSourceFile(),o=0===gQ(n,l)?268435456:0,c=a.typeToTypeNode(e,Cl(t,Td),o);if(c){const e=i?Pce({removeComments:!0,module:s.module,target:s.target}):HV({removeComments:!0,module:s.module,target:s.target});fI(c,1),r=e.printNode(4,c,n)}}}i&&"*"===r&&(r=`\${${c.tabstop++}:${r}}`)}return`@param {${!o&&n?"...":""}${r}} ${e} ${i?`\${${c.tabstop++}}`:""}`}return`@param ${e} ${i?`\${${c.tabstop++}}`:""}`}function Sce(e,t,n){return{kind:4,keywordCompletions:Qce(e,t),isNewIdentifierLocation:n}}function Tce(e){return 80===(null==e?void 0:e.kind)?HY(e):void 0}function xce(e,t){return!Jh(e)||!!Ex(e,t)}function Ace(e,t,n,r,o,i,a){const s=e.clauses,l=i.getTypeChecker(),c=l.getTypeAtLocation(e.parent.expression);if(c&&c.isUnion()&&M(c.types,(e=>e.isLiteral()))){const d=C0(l,s),u=jp(r),p=gQ(t,n),f=Qle.createImportAdder(t,i,n,o),m=[];for(const t of c.types)if(1024&t.flags){In.assert(t.symbol,"An enum member type should have a symbol"),In.assert(t.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const n=t.symbol.valueDeclaration&&l.getConstantValue(t.symbol.valueDeclaration);if(void 0!==n){if(d.hasValue(n))continue;d.addValue(n)}const r=Qle.typeToAutoImportableTypeNode(l,f,t,e,u);if(!r)return;const o=Ice(r,u,p);if(!o)return;m.push(o)}else if(!d.hasValue(t.value))switch(typeof t.value){case"object":m.push(t.value.negative?UA.createPrefixUnaryExpression(41,UA.createBigIntLiteral({negative:!1,base10Value:t.value.base10Value})):UA.createBigIntLiteral(t.value));break;case"number":m.push(t.value<0?UA.createPrefixUnaryExpression(41,UA.createNumericLiteral(-t.value)):UA.createNumericLiteral(t.value));break;case"string":m.push(UA.createStringLiteral(t.value,0===p))}if(0===m.length)return;const _=U(m,(e=>UA.createCaseClause(e,[]))),h=eZ(o,null==a?void 0:a.options),g=Pce({removeComments:!0,module:r.module,target:r.target,newLine:T0(h)}),y=a?e=>g.printAndFormatNode(4,e,t,a):e=>g.printNode(4,e,t),v=U(_,((e,t)=>n.includeCompletionsWithSnippetText?`${y(e)}$${t+1}`:`${y(e)}`)).join(h);return{entry:{name:`${g.printNode(4,_[0],t)} ...`,kind:"",sortText:tce.GlobalsOrKeywords,insertText:v,hasAction:f.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!n.includeCompletionsWithSnippetText||void 0},importAdder:f}}}function Ice(e,t,n){switch(e.kind){case 183:return Rce(e.typeName,t,n);case 199:const r=Ice(e.objectType,t,n),o=Ice(e.indexType,t,n);return r&&o&&UA.createElementAccessExpression(r,o);case 201:const i=e.literal;switch(i.kind){case 11:return UA.createStringLiteral(i.text,0===n);case 9:return UA.createNumericLiteral(i.text,i.numericLiteralFlags)}return;case 196:const a=Ice(e.type,t,n);return a&&(nC(a)?a:UA.createParenthesizedExpression(a));case 186:return Rce(e.exprName,t,n);case 205:In.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function Rce(e,t,n){if(nC(e))return e;const r=Ll(e.right.escapedText);return dA(r,t)?UA.createPropertyAccessExpression(Rce(e.left,t,n),r):UA.createElementAccessExpression(Rce(e.left,t,n),UA.createStringLiteral(r,0===n))}function Cce(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Dce(e,t,n){return"object"===typeof n?Mx(n)+"n":ht(n)?PZ(e,t,n):JSON.stringify(n)}function Nce(e,t,n){return{name:Dce(e,t,n),kind:"string",kindModifiers:"",sortText:tce.LocationPriority}}function Mce(e,t,n,r,o,i,a,s,l,c,d,u,p,f,m,_,h,g,y,v,b,E,S,T){var x,A;let I,R,C,D,N,k,P,w=UY(n),O=zce(u);const F=l.getTypeChecker(),W=u&&function(e){return!!(16&e.kind)}(u),z=u&&function(e){return!!(2&e.kind)}(u)||d;if(u&&function(e){return!!(1&e.kind)}(u))I=d?`this${W?"?.":""}[${Fce(a,y,c)}]`:`this${W?"?.":"."}${c}`;else if((z||W)&&f){I=z?d?`[${Fce(a,y,c)}]`:`[${c}]`:c,(W||f.questionDotToken)&&(I=`?.${I}`);const e=J$(f,25,a)||J$(f,29,a);if(!e)return;const t=dn(c,f.name.text)?f.name.end:e.end;w=ul(e.getStart(a),t)}if(m&&(void 0===I&&(I=c),I=`{${I}}`,"boolean"!==typeof m&&(w=HY(m,a))),u&&function(e){return!!(8&e.kind)}(u)&&f){void 0===I&&(I=c);const e=fY(f.pos,a);let t="";e&&UZ(e.end,e.parent,a)&&(t=";"),t+=`(await ${f.expression.getText()})`,I=d?`${t}${I}`:`${t}${W?"?.":"."}${I}`;w=ul((yt(f.parent,bD)?f.parent:f.expression).getStart(a),f.end)}if(cce(u)&&(N=[qQ(u.moduleSpecifier)],_&&(({insertText:I,replacementSpan:w}=function(e,t,n,r,o,i,a){const s=t.replacementSpan,l=tA(PZ(o,a,n.moduleSpecifier)),c=n.isDefaultExport?1:"export="===n.exportName?2:0,d=a.includeCompletionsWithSnippetText?"$1":"",u=Qle.getImportKind(o,c,i,!0),p=t.couldBeTypeOnlyImportSpecifier,f=t.isTopLevelTypeOnly?` ${as(156)} `:" ",m=p?`${as(156)} `:"",_=r?";":"";switch(u){case 3:return{replacementSpan:s,insertText:`import${f}${tA(e)}${d} = require(${l})${_}`};case 1:return{replacementSpan:s,insertText:`import${f}${tA(e)}${d} from ${l}${_}`};case 2:return{replacementSpan:s,insertText:`import${f}* as ${tA(e)} from ${l}${_}`};case 0:return{replacementSpan:s,insertText:`import${f}{ ${m}${tA(e)}${d} } from ${l}${_}`}}}(c,_,u,h,a,g,y)),D=!!y.includeCompletionsWithSnippetText||void 0)),64===(null==u?void 0:u.kind)&&(k=!0),0===v&&r&&28!==(null==(x=fY(r.pos,a,r))?void 0:x.kind)&&(AC(r.parent.parent)||CC(r.parent.parent)||DC(r.parent.parent)||eM(r.parent)||(null==(A=Cl(r.parent,QN))?void 0:A.getLastToken(a))===r||ZN(r.parent)&&_s(a,r.getEnd()).line!==_s(a,i).line)&&(O="ObjectLiteralMemberWithComma/",k=!0),y.includeCompletionsWithClassMemberSnippets&&y.includeCompletionsWithInsertText&&3===v&&function(e,t,n){if($h(t))return!1;const r=106500;return!!(e.flags&r)&&(Md(t)||t.parent&&t.parent.parent&&Nd(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&Md(t.parent.parent)||t.parent&&qM(t)&&Md(t.parent))}(e,o,a)){let t;const n=Lce(s,l,g,y,c,e,o,i,r,b);if(!n)return;({insertText:I,filterText:R,isSnippet:D,importAdder:t}=n),(null==t?void 0:t.hasFixes())&&(k=!0,O="ClassMemberSnippet/")}if(u&&pce(u)&&(({insertText:I,isSnippet:D,labelDetails:P}=u),y.useLabelDetailsInCompletionEntries||(c+=P.detail,P=void 0),O="ObjectLiteralMethodSnippet/",t=tce.SortBelow(t)),E&&!S&&y.includeCompletionsWithSnippetText&&y.jsxAttributeCompletionStyle&&"none"!==y.jsxAttributeCompletionStyle&&(!VN(o.parent)||!o.parent.initializer)){let t="braces"===y.jsxAttributeCompletionStyle;const n=F.getTypeOfSymbolAtLocation(e,o);"auto"!==y.jsxAttributeCompletionStyle||528&n.flags||1048576&n.flags&&L(n.types,(e=>!!(528&e.flags)))||(402653316&n.flags||1048576&n.flags&&M(n.types,(e=>!!(402686084&e.flags||OY(e))))?(I=`${tA(c)}=${PZ(a,y,"$1")}`,D=!0):t=!0),t&&(I=`${tA(c)}={$1}`,D=!0)}if(void 0!==I&&!y.includeCompletionsWithInsertText)return;(lce(u)||cce(u))&&(C=wce(u),k=!_);const B=Cl(o,WS);if(275===(null==B?void 0:B.kind)){const e=ss(c);B&&e&&(135===e||qy(e))&&(I=`${c} as ${c}_`)}return{name:c,kind:wme.getSymbolKind(F,e,o),kindModifiers:wme.getSymbolModifiers(F,e),sortText:t,source:O,hasAction:!!k||void 0,isRecommended:Wce(e,p,F)||void 0,insertText:I,filterText:R,replacementSpan:w,sourceDisplay:N,labelDetails:P,isSnippet:D,isPackageJsonImport:dce(u)||void 0,isImportStatementCompletion:!!_||void 0,data:C,...T?{symbol:e}:void 0}}function Lce(e,t,n,r,o,i,a,s,l,c){const d=Cl(a,Md);if(!d)return;let u,p=o;const f=o,m=t.getTypeChecker(),_=a.getSourceFile(),h=Pce({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:T0(eZ(e,null==c?void 0:c.options))}),g=Qle.createImportAdder(_,t,r,e);let y;if(r.includeCompletionsWithSnippetText){u=!0;const e=UA.createEmptyStatement();y=UA.createBlock([e],!0),BI(e,{kind:0,order:0})}else y=UA.createBlock([],!0);let v=0;const{modifiers:b,range:E,decorators:S}=function(e,t,n){if(!e||_s(t,n).line>_s(t,e.getEnd()).line)return{modifiers:0};let r,o,i=0;const a={pos:n,end:n};TC(e.parent)&&e.parent.modifiers&&(i|=98303&aE(e.parent.modifiers),r=e.parent.modifiers.filter(EC)||[],a.pos=Math.min(a.pos,e.parent.modifiers.pos));if(o=function(e){if(vd(e))return e.kind;if(nC(e)){const t=Pl(e);if(t&&hd(t))return t}return}(e)){const t=sE(o);i&t||(i|=t,a.pos=Math.min(a.pos,e.pos))}return{modifiers:i,decorators:r,range:a.pos!==n?a:void 0}}(l,_,s),T=64&b&&64&d.modifierFlagsCache;let x=[];if(Qle.addNewNodeForMemberSymbol(i,d,_,{program:t,host:e},r,g,(e=>{let t=0;T&&(t|=64),Nd(e)&&1===m.getMemberOverrideModifierStatus(d,e,i)&&(t|=16),x.length||(v=e.modifierFlagsCache|t),e=UA.replaceModifiers(e,v),x.push(e)}),y,Qle.PreserveOptionalFlags.Property,!!T),x.length){const e=8192&i.flags;let t=17|v;t|=e?1024:136;const n=b&t;if(b&~t)return;if(4&v&&1&n&&(v&=-5),0===n||1&n||(v&=-2),v|=n,x=x.map((e=>UA.replaceModifiers(e,v))),null==S?void 0:S.length){const e=x[x.length-1];bk(e)&&(x[x.length-1]=UA.replaceDecoratorsAndModifiers(e,S.concat(Hl(e)||[])))}const r=131073;p=c?h.printAndFormatSnippetList(r,UA.createNodeArray(x),_,c):h.printSnippetList(r,UA.createNodeArray(x),_)}return{insertText:p,filterText:f,isSnippet:u,importAdder:g,eraseRange:E}}function kce(e,t,n,r,o,i,a,s){const l=a.includeCompletionsWithSnippetText||void 0;let c=t;const d=n.getSourceFile(),u=function(e,t,n,r,o,i){const a=e.getDeclarations();if(!a||!a.length)return;const s=r.getTypeChecker(),l=a[0],c=mZ(jl(l),!1),d=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,t)),u=gQ(n,i),p=33554432|(0===u?268435456:0);switch(l.kind){case 171:case 172:case 173:case 174:{let e=1048576&d.flags&&d.types.length<10?s.getUnionType(d.types,2):d;if(1048576&e.flags){const t=G(e.types,(e=>s.getSignaturesOfType(e,0).length>0));if(1!==t.length)return;e=t[0]}if(1!==s.getSignaturesOfType(e,0).length)return;const n=s.typeToTypeNode(e,t,p,Qle.getNoopSymbolTrackerWithResolver({program:r,host:o}));if(!n||!wC(n))return;let a;if(i.includeCompletionsWithSnippetText){const e=UA.createEmptyStatement();a=UA.createBlock([e],!0),BI(e,{kind:0,order:0})}else a=UA.createBlock([],!0);const l=n.parameters.map((e=>UA.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer)));return UA.createMethodDeclaration(void 0,void 0,c,void 0,void 0,l,void 0,a)}default:return}}(e,n,d,r,o,a);if(!u)return;const p=Pce({removeComments:!0,module:i.module,target:i.target,omitTrailingSemicolon:!1,newLine:T0(eZ(o,null==s?void 0:s.options))});c=s?p.printAndFormatSnippetList(80,UA.createNodeArray([u],!0),d,s):p.printSnippetList(80,UA.createNodeArray([u],!0),d);const f=HV({removeComments:!0,module:i.module,target:i.target,omitTrailingSemicolon:!0}),m=UA.createMethodSignature(void 0,"",u.questionToken,u.typeParameters,u.parameters,u.type);return{isSnippet:l,insertText:c,labelDetails:{detail:f.printNode(4,m,d)}}}function Pce(e){let t;const n=p_e.createWriter(VE(e)),r=HV(e,n),o={...n,write:e=>i(e,(()=>n.write(e))),nonEscapingWrite:n.write,writeLiteral:e=>i(e,(()=>n.writeLiteral(e))),writeStringLiteral:e=>i(e,(()=>n.writeStringLiteral(e))),writeSymbol:(e,t)=>i(e,(()=>n.writeSymbol(e,t))),writeParameter:e=>i(e,(()=>n.writeParameter(e))),writeComment:e=>i(e,(()=>n.writeComment(e))),writeProperty:e=>i(e,(()=>n.writeProperty(e)))};return{printSnippetList:function(e,n,r){const o=a(e,n,r);return t?p_e.applyChanges(o,t):o},printAndFormatSnippetList:function(e,n,r,o){const i={text:a(e,n,r),getLineAndCharacterOfPosition(e){return _s(this,e)}},s=A0(o,r),l=J(n,(e=>{const t=p_e.assignPositionsToNode(e);return vge.formatNodeGivenIndentation(t,i,r.languageVariant,0,0,{...o,options:s})})),c=t?Ne(ce(l,t),((e,t)=>Wt(e.span,t.span))):l;return p_e.applyChanges(i.text,c)},printNode:function(e,n,r){const o=s(e,n,r);return t?p_e.applyChanges(o,t):o},printAndFormatNode:function(e,n,r,o){const i={text:s(e,n,r),getLineAndCharacterOfPosition(e){return _s(this,e)}},a=A0(o,r),l=p_e.assignPositionsToNode(n),c=vge.formatNodeGivenIndentation(l,i,r.languageVariant,0,0,{...o,options:a}),d=t?Ne(ce(c,t),((e,t)=>Wt(e.span,t.span))):c;return p_e.applyChanges(i.text,d)}};function i(e,r){const o=tA(e);if(o!==e){const e=n.getTextPos();r();const i=n.getTextPos();t=Ee(t||(t=[]),{newText:o,span:{start:e,length:i-e}})}else r()}function a(e,n,i){return t=void 0,o.clear(),r.writeList(e,n,i,o),o.getText()}function s(e,n,i){return t=void 0,o.clear(),r.writeNode(e,n,i,o),o.getText()}}function wce(e){const t=e.fileName?void 0:Gv(e.moduleSymbol.name),n=!!e.isFromPackageJson||void 0;if(cce(e)){return{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}}return{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Gv(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function Oce(e,t,n){const r="default"===e.exportName,o=!!e.isPackageJsonImport;if(gce(e)){return{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:o}}return{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:o}}function Fce(e,t,n){return/^\d+$/.test(n)?n:PZ(e,t,n)}function Wce(e,t,n){return e===t||!!(1048576&e.flags)&&n.getExportSymbolOfSymbol(e)===t}function zce(e){return lce(e)?Gv(e.moduleSymbol.name):cce(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function Bce(e,t,n,r,o,i,a,s,l,c,d,u,p,f,m,_,h,g,y,v,b,E,S,T,x,A=!1){const I=nr(),R=function(e,t){if(!e)return;const n=Cl(e,(e=>rh(e)||hde(e)||Vd(e)?"quit":(bC(e)||vC(e))&&!LC(e.parent))),r=Cl(t,(e=>rh(e)||hde(e)||Vd(e)?"quit":iN(e)));return n||r}(r,o),C=HZ(a),D=l.getTypeChecker(),N=new Map;for(let k=0;k<e.length;k++){const d=e[k],I=null==E?void 0:E[k],R=Yce(d,c,I,u,!!g);if(!R||N.get(R.name)&&(!I||!pce(I))||1===u&&S&&!M(d,S))continue;if(!_&&$h(a)&&L(d))continue;const{name:P,needsConvertPropertyAccess:w}=R,O=(null==S?void 0:S[Kz(d)])??tce.LocationPriority,F=Mce(d,yde(d,D)?tce.Deprecated(O):O,n,r,o,i,a,s,l,P,w,I,b,h,y,v,C,f,p,u,m,T,x,A);if(!F)continue;const W=(!I||uce(I))&&!(void 0===d.parent&&!se(d.declarations,(e=>e.getSourceFile()===o.getSourceFile())));N.set(P,W),me(t,F,hce,!0)}return d("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(nr()-I)),{has:e=>N.has(e),add:e=>N.set(e,!0)};function M(e,t){var n;let r=e.flags;if(!rM(o)){if(CN(o.parent))return!0;if(yt(R,iN)&&e.valueDeclaration===R)return!1;const i=e.valueDeclaration??(null==(n=e.declarations)?void 0:n[0]);if(R&&i&&(vC(R)&&vC(i)||bC(R)&&bC(i))){const e=i.pos,t=bC(R)?R.parent.parameters:qC(R.parent)?void 0:R.parent.typeParameters;if(e>=R.pos&&t&&e<t.end)return!1}const s=hS(e,D);if(a.externalModuleIndicator&&!f.allowUmdGlobalAccess&&t[Kz(e)]===tce.GlobalsOrKeywords&&(t[Kz(s)]===tce.AutoImportSuggestions||t[Kz(s)]===tce.LocationPriority))return!1;if(r|=gS(s),o$(o))return!!(1920&r);if(_)return gde(e,D)}return!!(111551&r)}function L(e){var t;const n=gS(hS(e,D));return!(111551&n)&&(!$h(null==(t=e.declarations)?void 0:t[0])||!!(788968&n))}}function Gce(e,t,n,r,o,i,a){if("SwitchCases/"===o.source)return{type:"cases"};if(o.data){const t=$ce(o.name,o.data,e,i);if(t){const{contextToken:e,previousToken:o}=Xce(r,n);return{type:"symbol",symbol:t.symbol,location:aY(n,r),previousToken:o,contextToken:e,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:t.origin}}}const s=e.getCompilerOptions(),l=Jce(e,t,n,s,r,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,i,void 0);if(!l)return{type:"none"};if(0!==l.kind)return{type:"request",request:l};const{symbols:c,literals:d,location:u,completionKind:p,symbolToOriginInfoMap:f,contextToken:m,previousToken:_,isJsxInitializer:h,isTypeOnlyLocation:g}=l,y=L(d,(e=>Dce(n,a,e)===o.name));return void 0!==y?{type:"literal",literal:y}:I(c,((e,t)=>{const n=f[t],r=Yce(e,jp(s),n,p,l.isJsxIdentifierExpected);return r&&r.name===o.name&&("ClassMemberSnippet/"===o.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===o.source&&8196&e.flags||zce(n)===o.source||"ObjectLiteralMemberWithComma/"===o.source)?{type:"symbol",symbol:e,location:u,origin:n,contextToken:m,previousToken:_,isJsxInitializer:h,isTypeOnlyLocation:g}:void 0}))||{type:"none"}}function jce(e,t,n,r,o,i,a,s,l){const c=e.getTypeChecker(),d=e.getCompilerOptions(),{name:u,source:p,data:f}=o,{previousToken:m,contextToken:_}=Xce(r,n);if(gY(n,r,m))return Zde.getStringLiteralCompletionDetails(u,n,r,m,e,i,l,s);const h=Gce(e,t,n,r,o,i,s);switch(h.type){case"request":{const{request:e}=h;switch(e.kind){case 1:return Bpe.getJSDocTagNameCompletionDetails(u);case 2:return Bpe.getJSDocTagCompletionDetails(u);case 3:return Bpe.getJSDocParameterNameCompletionDetails(u);case 4:return se(e.keywordCompletions,(e=>e.name===u))?Vce(u,"keyword",5):void 0;default:return In.assertNever(e)}}case"symbol":{const{symbol:t,location:o,contextToken:m,origin:_,previousToken:g}=h,{codeActions:y,sourceDisplay:v}=function(e,t,n,r,o,i,a,s,l,c,d,u,p,f,m,_){if((null==f?void 0:f.moduleSpecifier)&&d&&dde(n||d,l).replacementSpan)return{codeActions:void 0,sourceDisplay:[qQ(f.moduleSpecifier)]};if("ClassMemberSnippet/"===m){const{importAdder:r,eraseRange:d}=Lce(a,i,s,p,e,o,t,c,n,u);if(r||d){return{sourceDisplay:void 0,codeActions:[{changes:p_e.ChangeTracker.with({host:a,formatContext:u,preferences:p},(e=>{r&&r.writeFixes(e),d&&e.deleteRange(l,d)})),description:x0([Oa.Includes_imports_of_types_referenced_by_0,e])}]}}}if(uce(r)){const e=Qle.getPromoteTypeOnlyCompletionAction(l,r.declaration.name,i,a,u,p);return In.assertIsDefined(e,"Expected to have a code action for promoting type-only alias"),{codeActions:[e],sourceDisplay:void 0}}if("ObjectLiteralMemberWithComma/"===m&&n){const t=p_e.ChangeTracker.with({host:a,formatContext:u,preferences:p},(e=>e.insertText(l,n.end,",")));if(t)return{sourceDisplay:void 0,codeActions:[{changes:t,description:x0([Oa.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!r||!lce(r)&&!cce(r))return{codeActions:void 0,sourceDisplay:void 0};const h=r.isFromPackageJson?a.getPackageJsonAutoImportProvider().getTypeChecker():i.getTypeChecker(),{moduleSymbol:g}=r,y=h.getMergedSymbol(hS(o.exportSymbol||o,h)),v=30===(null==n?void 0:n.kind)&&ju(n.parent),{moduleSpecifier:b,codeAction:E}=Qle.getImportCompletionAction(y,g,null==f?void 0:f.exportMapKey,l,e,v,a,i,u,d&&nC(d)?d.getStart(l):c,p,_);return In.assert(!(null==f?void 0:f.moduleSpecifier)||b===f.moduleSpecifier),{sourceDisplay:[qQ(b)],codeActions:[E]}}(u,o,m,_,t,e,i,d,n,r,g,a,s,f,p,l);return Uce(t,fce(_)?_.symbolName:t.name,c,n,o,l,y,v)}case"literal":{const{literal:e}=h;return Vce(Dce(n,s,e),"string","string"===typeof e?8:7)}case"cases":{const t=Ace(_.parent,n,s,e.getCompilerOptions(),i,e,void 0);if(null==t?void 0:t.importAdder.hasFixes()){const{entry:e,importAdder:n}=t,r=p_e.ChangeTracker.with({host:i,formatContext:a,preferences:s},n.writeFixes);return{name:e.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:r,description:x0([Oa.Includes_imports_of_types_referenced_by_0,u])}]}}return{name:u,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return ace().some((e=>e.name===u))?Vce(u,"keyword",5):void 0;default:In.assertNever(h)}}function Vce(e,t,n){return Hce(e,"",t,[zQ(e,n)])}function Uce(e,t,n,r,o,i,a,s){const{displayParts:l,documentation:c,symbolKind:d,tags:u}=n.runWithCancellationToken(i,(t=>wme.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r,o,o,7)));return Hce(t,wme.getSymbolModifiers(n,e),d,l,c,u,a,s)}function Hce(e,t,n,r,o,i,a,s){return{name:e,kindModifiers:t,kind:n,displayParts:r,documentation:o,tags:i,codeActions:a,source:s,sourceDisplay:s}}function Kce(e,t,n,r,o,i,a){const s=Gce(e,t,n,r,o,i,a);return"symbol"===s.type?s.symbol:void 0}function qce(e,t,n){const r=n.getAccessibleSymbolChain(e,t,-1,!1);return r?Pe(r):e.parent&&(function(e){var t;return!!(null==(t=e.declarations)?void 0:t.some((e=>312===e.kind)))}(e.parent)?e:qce(e.parent,t,n))}function Jce(e,t,n,r,o,i,a,s,l,c){const d=e.getTypeChecker(),u=xce(n,r);let p=nr(),f=lY(n,o);t("getCompletionData: Get current token: "+(nr()-p)),p=nr();const m=CY(n,o,f);t("getCompletionData: Is inside comment: "+(nr()-p));let _=!1,h=!1;if(m){if(DY(n,o)){if(64===n.text.charCodeAt(o-1))return{kind:1};{const e=k$(o,n);if(!/[^*|\s(/)]/.test(n.text.substring(e,o)))return{kind:2}}}const e=function(e,t){return Cl(e,(e=>!(!Ku(e)||!O$(e,t))||!!bM(e)&&"quit"))}(f,o);if(e){if(e.tagName.pos<=o&&o<=e.tagName.end)return{kind:1};const t=function(e){if(function(e){switch(e.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!e.constraint;default:return!1}}(e)){const t=BM(e)?e.constraint:e.typeExpression;return t&&316===t.kind?t:void 0}if(TM(e)||UM(e))return e.class;return}(e);if(t&&(f=lY(n,o),f&&(Iy(f)||355===f.parent.kind&&f.parent.name===f)||(_=me(t))),!_&&OM(e)&&(im(e.name)||e.name.pos<=o&&o<=e.name.end))return{kind:3,tag:e}}if(!_)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}p=nr();const g=!_&&Jh(n),y=Xce(o,n),v=y.previousToken;let b=y.contextToken;t("getCompletionData: Get previous token: "+(nr()-p));let E,S,T=f,A=!1,R=!1,C=!1,D=!1,N=!1,M=!1,k=aY(n,o),P=0,w=!1,O=0;if(b){const e=dde(b,n);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(F=e.keywordCompletion,{name:as(F),kind:"keyword",kindModifiers:"",sortText:tce.GlobalsOrKeywords})],isNewIdentifierLocation:e.isNewIdentifierLocation};P=function(e){if(156===e)return 8;In.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(e.keywordCompletion)}if(e.replacementSpan&&i.includeCompletionsForImportStatements&&i.includeCompletionsWithInsertText&&(O|=2,S=e,w=e.isNewIdentifierLocation),!e.replacementSpan&&function(e){const r=nr(),i=function(e){return(GR(e)||cd(e))&&(F$(e,o)||o===e.end&&(!!e.isUnterminated||GR(e)))}(e)||function(e){const t=e.parent,r=t.kind;switch(e.kind){case 28:return 260===r||261===(i=e).parent.kind&&!AY(i,n,d)||243===r||266===r||de(r)||264===r||207===r||265===r||Md(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 25:case 23:return 207===r;case 59:return 208===r;case 21:return 299===r||de(r);case 19:return 266===r;case 30:return 263===r||231===r||264===r||265===r||Cd(r);case 126:return 172===r&&!Md(t.parent);case 26:return 169===r||!!t.parent&&207===t.parent.kind;case 125:case 123:case 124:return 169===r&&!RC(t.parent);case 130:return 276===r||281===r||274===r;case 139:case 153:return!lde(e);case 80:if(276===r&&e===t.name&&"type"===e.text)return!1;if(Cl(e.parent,iN)&&function(e,t){return n.getLineEndOfPosition(e.getEnd())<t}(e,o))return!1;break;case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return 276!==r;case 42:return Td(e.parent)&&!AC(e.parent)}var i;if(tde(rde(e))&&lde(e))return!1;if(ae(e)&&(!nC(e)||gd(rde(e))||me(e)))return!1;switch(rde(e)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return TC(e.parent)}const a=Cl(e.parent,Md);if(a&&e===v&&le(e,o))return!1;const s=jy(e.parent,172);if(s&&e!==v&&Md(v.parent.parent)&&o<=v.end){if(le(e,v.end))return!1;if(64!==e.kind&&(oG(s)||$u(s)))return!0}return Iy(e)&&!ZN(e.parent)&&!VN(e.parent)&&!((Md(e.parent)||cN(e.parent)||vC(e.parent))&&(e!==v||o>v.end))}(e)||function(e){if(9===e.kind){const t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(e)||function(e){if(12===e.kind)return!0;if(32===e.kind&&e.parent){if(k===e.parent&&(286===k.kind||285===k.kind))return!1;if(286===e.parent.kind)return 286!==k.parent.kind;if(287===e.parent.kind||285===e.parent.kind)return!!e.parent.parent&&284===e.parent.parent.kind}return!1}(e)||WR(e);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(nr()-r)),i}(b))return t("Returning an empty list because completion was requested in an invalid position."),P?Sce(P,g,ie()):void 0;let r=b.parent;if(25===b.kind||29===b.kind)switch(A=25===b.kind,R=29===b.kind,r.kind){case 211:E=r,T=E.expression;if(im(zS(E))||(dD(T)||Td(T))&&T.end===b.pos&&T.getChildCount(n)&&22!==Fe(T.getChildren(n)).kind)return;break;case 166:T=r.left;break;case 267:T=r.name;break;case 205:T=r;break;case 236:T=r.getFirstToken(n),In.assert(102===T.kind||105===T.kind);break;default:return}else if(!S){if(r&&211===r.kind&&(b=r,r=r.parent),f.parent===k)switch(f.kind){case 32:284!==f.parent.kind&&286!==f.parent.kind||(k=f);break;case 44:285===f.parent.kind&&(k=f)}switch(r.kind){case 287:44===b.kind&&(D=!0,k=b);break;case 226:if(!cde(r))break;case 285:case 284:case 286:M=!0,30===b.kind&&(C=!0,k=b);break;case 294:case 293:(20===v.kind||80===v.kind&&291===v.parent.kind)&&(M=!0);break;case 291:if(r.initializer===v&&v.end<o){M=!0;break}switch(v.kind){case 64:N=!0;break;case 80:M=!0,r!==v.parent&&!r.initializer&&J$(r,64,n)&&(N=v)}}}}var F;const W=nr();let z,B=5,j=!1,V=[];const U=[],H=[],K=new Map,q=function(){return _||!!S&&ld(k.parent)||(e=b,!(e&&(114===e.kind&&(186===e.parent.kind||yD(e.parent))||131===e.kind&&182===e.parent.kind))&&(AY(b,n,d)||j_(k)||function(e){if(e){const t=e.parent.kind;switch(e.kind){case 59:return 172===t||171===t||169===t||260===t||Cd(t);case 64:return 265===t||168===t;case 130:return 234===t;case 30:return 183===t||216===t;case 96:return 168===t;case 152:return 238===t}}return!1}(b)));var e}(),X=Dt((t=>dQ(t?s.getPackageJsonAutoImportProvider():e,s)));if(A||R)!function(){B=2;const e=P_(T),t=e&&!T.isTypeOf||j_(T.parent)||AY(b,n,d),r=o$(T);if(bd(T)||e||lD(T)){const n=pN(T.parent);n&&(w=!0);let o=d.getSymbolAtLocation(T);if(o&&(o=hS(o,d),1920&o.flags)){const a=d.getExportsOfModule(o);In.assertEachIsDefined(a,"getExportsOfModule() should all be defined");const s=t=>d.isValidPropertyAccess(e?T:T.parent,t.name),l=e=>gde(e,d),c=n?e=>{var t;return!!(1920&e.flags)&&!(null==(t=e.declarations)?void 0:t.every((e=>e.parent===T.parent)))}:r?e=>l(e)||s(e):t||_?l:s;for(const e of a)c(e)&&V.push(e);if(!t&&!_&&o.declarations&&o.declarations.some((e=>312!==e.kind&&267!==e.kind&&266!==e.kind))){let e=d.getTypeOfSymbolAtLocation(o,T).getNonOptionalType(),t=!1;if(e.isNullableType()){const n=A&&!R&&!1!==i.includeAutomaticOptionalChainCompletions;(n||R)&&(e=e.getNonNullableType(),n&&(t=!0))}ee(e,!!(65536&T.flags),t)}return}}if(!t||Eb(T)){d.tryGetThisTypeAt(T,!1);let e=d.getTypeAtLocation(T).getNonOptionalType();if(t)ee(e.getNonNullableType(),!1,!1);else{let t=!1;if(e.isNullableType()){const n=A&&!R&&!1!==i.includeAutomaticOptionalChainCompletions;(n||R)&&(e=e.getNonNullableType(),n&&(t=!0))}ee(e,!!(65536&T.flags),t)}}}();else if(C)V=d.getJsxIntrinsicTagNamesAt(k),In.assertEachIsDefined(V,"getJsxIntrinsicTagNames() should all be defined"),re(),B=1,P=0;else if(D){const e=b.parent.parent.openingElement.tagName,t=d.getSymbolAtLocation(e);t&&(V=[t]),B=1,P=0}else if(!re())return P?Sce(P,g,w):void 0;t("getCompletionData: Semantic work: "+(nr()-W));const $=v&&function(e,t,n,r){const{parent:o}=e;switch(e.kind){case 80:return kZ(e,r);case 64:switch(o.kind){case 260:return r.getContextualType(o.initializer);case 226:return r.getTypeAtLocation(o.left);case 291:return r.getContextualTypeForJsxAttribute(o);default:return}case 105:return r.getContextualType(o);case 84:const i=yt(o,JN);return i?WZ(i,r):void 0;case 19:return!KN(o)||ON(o.parent)||BN(o.parent)?void 0:r.getContextualTypeForJsxAttribute(o.parent);default:const a=ume.getArgumentInfoForCompletions(e,t,n,r);return a?r.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex):wZ(e.kind)&&TD(o)&&wZ(o.operatorToken.kind)?r.getTypeAtLocation(o.left):r.getContextualType(e,4)||r.getContextualType(e)}}(v,o,n,d),Y=!yt(v,np)&&!M?Z($&&($.isUnion()?$.types:[$]),(e=>!e.isLiteral()||1024&e.flags?void 0:e.value)):[],Q=v&&$&&function(e,t,n){return I(t&&(t.isUnion()?t.types:[t]),(t=>{const r=t&&t.symbol;return r&&424&r.flags&&!AS(r)?qce(r,e,n):void 0}))}(v,$,d);return{kind:0,symbols:V,completionKind:B,isInSnippetScope:h,propertyAccessToConvert:E,isNewIdentifierLocation:w,location:k,keywordFilters:P,literals:Y,symbolToOriginInfoMap:U,recommendedCompletion:Q,previousToken:v,contextToken:b,isJsxInitializer:N,insideJsDocTagTypeExpression:_,symbolToSortTextMap:H,isTypeOnlyLocation:q,isJsxIdentifierExpected:M,isRightOfOpenTag:C,isRightOfDotOrQuestionDot:A||R,importStatementCompletion:S,hasUnresolvedAutoImports:j,flags:O};function ee(e,t,n){w=!!e.getStringIndexType(),R&&se(e.getCallSignatures())&&(w=!0);const r=205===T.kind?T:T.parent;if(u)for(const o of e.getApparentProperties())d.isValidPropertyAccessForCompletions(r,e,o)&&te(o,!1,n);else V.push(...G(ade(e,d),(t=>d.isValidPropertyAccessForCompletions(r,e,t))));if(t&&i.includeCompletionsWithInsertText){const t=d.getPromisedTypeOfPromise(e);if(t)for(const e of t.getApparentProperties())d.isValidPropertyAccessForCompletions(r,t,e)&&te(e,!0,n)}}function te(t,r,a){var l;const c=I(t.declarations,(e=>yt(jl(e),yC)));if(c){const r=ne(c.expression),a=r&&d.getSymbolAtLocation(r),m=a&&qce(a,b,d),_=m&&Kz(m);if(_&&LS(K,_)){const t=V.length;V.push(m);const r=m.parent;if(r&&tQ(r)&&d.tryGetMemberInModuleExportsAndProperties(m.name,r)===m){const a=Xs(Gv(r.name))?null==(l=Qf(r))?void 0:l.fileName:void 0,{moduleSpecifier:c}=(z||(z=Qle.createImportSpecifierResolver(n,e,s,i))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:r,symbol:m,targetFlags:hS(m,d).flags}],o,wx(k))||{};if(c){const e={kind:f(6),moduleSymbol:r,isDefaultExport:!1,symbolName:m.name,exportName:m.name,fileName:a,moduleSpecifier:c};U[t]=e}}else U[t]={kind:f(2)}}else if(i.includeCompletionsWithInsertText){if(_&&K.has(_))return;p(t),u(t),V.push(t)}}else p(t),u(t),V.push(t);function u(e){(function(e){return!!(e.valueDeclaration&&256&Zb(e.valueDeclaration)&&Md(e.valueDeclaration.parent))})(e)&&(H[Kz(e)]=tce.LocalDeclarationPriority)}function p(e){i.includeCompletionsWithInsertText&&(r&&LS(K,Kz(e))?U[V.length]={kind:f(8)}:a&&(U[V.length]={kind:16}))}function f(e){return a?16|e:e}}function ne(e){return nC(e)?e:lD(e)?ne(e.expression):void 0}function re(){const t=function(){const e=function(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(WC(t))return t;break;case 27:case 28:case 80:if(171===t.kind&&WC(t.parent))return t.parent}return}(b);if(!e)return 0;const t=(HC(e.parent)?e.parent:void 0)||e,n=sde(t,d);if(!n)return 0;const r=d.getTypeFromTypeNode(t),o=ade(n,d),i=ade(r,d),a=new Set;return i.forEach((e=>a.add(e.escapedName))),V=ce(V,G(o,(e=>!a.has(e.escapedName)))),B=0,w=!0,1}()||function(){const t=V.length,a=function(e,t,n){var r;if(e){const{parent:o}=e;switch(e.kind){case 19:case 28:if(sD(o)||rD(o))return o;break;case 42:return AC(o)?yt(o.parent,sD):void 0;case 134:return yt(o.parent,sD);case 80:if("async"===e.text&&ZN(e.parent))return e.parent.parent;{if(sD(e.parent.parent)&&(eM(e.parent)||ZN(e.parent)&&_s(n,e.getEnd()).line!==_s(n,t).line))return e.parent.parent;const r=Cl(o,QN);if((null==r?void 0:r.getLastToken(n))===e&&sD(r.parent))return r.parent}break;default:if((null==(r=o.parent)?void 0:r.parent)&&(AC(o.parent)||CC(o.parent)||DC(o.parent))&&sD(o.parent.parent))return o.parent.parent;if(eM(o)&&sD(o.parent))return o.parent;const i=Cl(o,QN);if(59!==e.kind&&(null==i?void 0:i.getLastToken(n))===e&&sD(i.parent))return i.parent}}return}(b,o,n);if(!a)return 0;let c,u;if(B=0,210===a.kind){const e=function(e,t){const n=t.getContextualType(e);if(n)return n;const r=by(e.parent);if(TD(r)&&64===r.operatorToken.kind&&e===r.left)return t.getTypeAtLocation(r);if(uu(r))return t.getContextualType(r);return}(a,d);if(void 0===e)return 67108864&a.flags?2:0;const t=d.getContextualType(a,4),n=(t||e).getStringIndexType(),r=(t||e).getNumberIndexType();if(w=!!n||!!r,c=ode(e,t,a,d),u=a.properties,0===c.length&&!r)return 0}else{In.assert(206===a.kind),w=!1;const e=bv(a.parent);if(!X_(e))return In.fail("Root declaration is not variable-like.");let t=Yu(e)||!!Ab(e)||250===e.parent.parent.kind;if(t||169!==e.kind||(uu(e.parent)?t=!!d.getContextualType(e.parent):174!==e.parent.kind&&178!==e.parent.kind||(t=uu(e.parent.parent)&&!!d.getContextualType(e.parent.parent))),t){const e=d.getTypeAtLocation(a);if(!e)return 2;c=d.getPropertiesOfType(e).filter((t=>d.isPropertyAccessible(a,!1,!1,e,t))),u=a.elements}}if(c&&c.length>0){const n=function(e,t){if(0===t.length)return e;const n=new Set,r=new Set;for(const i of t){if(303!==i.kind&&304!==i.kind&&208!==i.kind&&174!==i.kind&&177!==i.kind&&178!==i.kind&&305!==i.kind)continue;if(me(i))continue;let e;if(eM(i))ue(i,n);else if(iD(i)&&i.propertyName)80===i.propertyName.kind&&(e=i.propertyName.escapedText);else{const t=jl(i);e=t&&av(t)?lv(t):void 0}void 0!==e&&r.add(e)}const o=e.filter((e=>!r.has(e.escapedName)));return fe(n,o),o}(c,In.checkDefined(u));V=ce(V,n),pe(),210===a.kind&&i.includeCompletionsWithObjectLiteralMethodSnippets&&i.includeCompletionsWithInsertText&&(function(e){for(let t=e;t<V.length;t++){const e=V[t],n=Kz(e),o=null==U?void 0:U[t],i=Yce(e,jp(r),o,0,!1);if(i){const e=H[n]??tce.LocationPriority,{name:t}=i;H[n]=tce.ObjectLiteralProperty(e,t)}}}(t),function(t,n){if($h(k))return;t.forEach((t=>{if(!function(e){if(!(8196&e.flags))return!1;return!0}(t))return;const o=Yce(t,jp(r),void 0,0,!1);if(!o)return;const{name:a}=o,c=kce(t,a,n,e,s,r,i,l);if(!c)return;const d={kind:128,...c};O|=32,U[V.length]=d,V.push(t)}))}(n,a))}return 1}()||(S?(w=!0,oe(),1):0)||function(){if(!b)return 0;const e=19===b.kind||28===b.kind?yt(b.parent,WS):eQ(b)?yt(b.parent.parent,WS):void 0;if(!e)return 0;eQ(b)||(P=8);const{moduleSpecifier:t}=275===e.kind?e.parent.parent:e.parent;if(!t)return w=!0,275===e.kind?2:0;const n=d.getSymbolAtLocation(t);if(!n)return w=!0,2;B=3,w=!1;const r=d.getExportsAndPropertiesOfModule(n),o=new Set(e.elements.filter((e=>!me(e))).map((e=>(e.propertyName||e.name).escapedText))),i=r.filter((e=>"default"!==e.escapedName&&!o.has(e.escapedName)));V=ce(V,i),i.length||(P=0);return 1}()||function(){if(void 0===b)return 0;const e=19===b.kind||28===b.kind?yt(b.parent,SN):59===b.kind?yt(b.parent.parent,SN):void 0;if(void 0===e)return 0;const t=new Set(e.elements.map(DA));return V=G(d.getTypeAtLocation(e).getApparentProperties(),(e=>!t.has(e.escapedName))),1}()||function(){var e;const t=!b||19!==b.kind&&28!==b.kind?void 0:yt(b.parent,NN);if(!t)return 0;const n=Cl(t,_n(rM,pN));return B=5,w=!1,null==(e=n.locals)||e.forEach(((e,t)=>{var r,o;V.push(e),(null==(o=null==(r=n.symbol)?void 0:r.exports)?void 0:o.has(t))&&(H[Kz(e)]=tce.OptionalMember)})),1}()||(function(e){if(e){const t=e.parent;switch(e.kind){case 21:case 28:return RC(e.parent)?e.parent:void 0;default:if(ae(e))return t.parent}}}(b)?(B=5,w=!0,P=4,1):0)||function(){const e=function(e,t,n,r){switch(n.kind){case 358:return yt(n.parent,kS);case 1:const t=yt(Oe(vt(n.parent,rM).statements),kS);if(t&&!J$(t,20,e))return t;break;case 81:if(yt(n.parent,TC))return Cl(n,Md);break;case 80:if(Pl(n))return;if(TC(n.parent)&&n.parent.initializer===n)return;if(lde(n))return Cl(n,kS)}if(!t)return;if(137===n.kind||nC(t)&&TC(t.parent)&&Md(n))return Cl(t,Md);switch(t.kind){case 64:return;case 27:case 20:return lde(n)&&n.parent.name===n?n.parent.parent:yt(n,kS);case 19:case 28:return yt(t.parent,kS);default:if(kS(n)){if(_s(e,t.getEnd()).line!==_s(e,r).line)return n;const o=Md(t.parent.parent)?tde:ede;return o(t.kind)||42===t.kind||nC(t)&&o(Pl(t)??0)?t.parent.parent:void 0}return}}(n,b,k,o);if(!e)return 0;if(B=3,w=!0,P=42===b.kind?0:Md(e)?2:3,!Md(e))return 1;const t=27===b.kind?b.parent.parent:b.parent;let r=Nd(t)?Zb(t):0;if(80===b.kind&&!me(b))switch(b.getText()){case"private":r|=2;break;case"static":r|=256;break;case"override":r|=16}IC(t)&&(r|=256);if(!(2&r)){const t=J(Md(e)&&16&r?yn(Oy(e)):zy(e),(t=>{const n=d.getTypeAtLocation(t);return 256&r?(null==n?void 0:n.symbol)&&d.getPropertiesOfType(d.getTypeOfSymbolAtLocation(n.symbol,e)):n&&d.getPropertiesOfType(n)}));V=ce(V,function(e,t,n){const r=new Set;for(const o of t){if(172!==o.kind&&174!==o.kind&&177!==o.kind&&178!==o.kind)continue;if(me(o))continue;if(Bb(o,2))continue;if(jb(o)!==!!(256&n))continue;const e=iv(o.name);e&&r.add(e)}return e.filter((e=>!r.has(e.escapedName)&&!!e.declarations&&!(2&_S(e))&&!(e.valueDeclaration&&md(e.valueDeclaration))))}(t,e.members,r)),x(V,((e,t)=>{const n=null==e?void 0:e.valueDeclaration;if(n&&Nd(n)&&n.name&&yC(n.name)){const n={kind:512,symbolName:d.symbolToString(e)};U[t]=n}}))}return 1}()||function(){const e=function(e){if(e){const t=e.parent;switch(e.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(t&&(285===t.kind||286===t.kind)){if(32===e.kind){const r=fY(e.pos,n,void 0);if(!t.typeArguments||r&&44===r.kind)break}return t}if(291===t.kind)return t.parent.parent;break;case 11:if(t&&(291===t.kind||293===t.kind))return t.parent.parent;break;case 20:if(t&&294===t.kind&&t.parent&&291===t.parent.kind)return t.parent.parent.parent;if(t&&293===t.kind)return t.parent.parent}}return}(b),t=e&&d.getContextualType(e.attributes);if(!t)return 0;const r=e&&d.getContextualType(e.attributes,4);return V=ce(V,function(e,t){const n=new Set,r=new Set;for(const i of t)me(i)||(291===i.kind?n.add(yA(i.name)):HN(i)&&ue(i,r));const o=e.filter((e=>!n.has(e.escapedName)));return fe(r,o),o}(ode(t,r,e.attributes,d),e.attributes.properties)),pe(),B=3,w=!1,1}()||(function(){P=function(e){if(e){let t;const n=Cl(e.parent,(e=>Md(e)?"quit":!(!Ad(e)||t!==e.body)||(t=e,!1)));return n&&n}}(b)?5:1,B=1,w=ie(),v!==b&&In.assert(!!v,"Expected 'contextToken' to be defined when different from 'previousToken'.");const e=v!==b?v.getStart():o,t=function(e,t,n){let r=e;for(;r&&!V$(r,t,n);)r=r.parent;return r}(b,e,n)||n;h=function(e){switch(e.kind){case 312:case 228:case 294:case 241:return!0;default:return wu(e)}}(t);const r=2887656|(q?0:111551),a=v&&!wx(v);V=ce(V,d.getSymbolsInScope(t,r)),In.assertEachIsDefined(V,"getSymbolsInScope() should all be defined");for(let o=0;o<V.length;o++){const e=V[o];if(d.isArgumentsSymbol(e)||se(e.declarations,(e=>e.getSourceFile()===n))||(H[Kz(e)]=tce.GlobalsOrKeywords),a&&!(111551&e.flags)){const t=e.declarations&&L(e.declarations,ad);if(t){const e={kind:64,declaration:t};U[o]=e}}}if(i.includeCompletionsWithInsertText&&312!==t.kind){const e=d.tryGetThisTypeAt(t,!1,Md(t.parent)?t:void 0);if(e&&!function(e,t,n){const r=n.resolveName("self",void 0,111551,!1);if(r&&n.getTypeOfSymbolAtLocation(r,t)===e)return!0;const o=n.resolveName("global",void 0,111551,!1);if(o&&n.getTypeOfSymbolAtLocation(o,t)===e)return!0;const i=n.resolveName("globalThis",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;return!1}(e,n,d))for(const t of ade(e,d))U[V.length]={kind:1},V.push(t),H[Kz(t)]=tce.SuggestedClassMembers}oe(),q&&(P=b&&pu(b.parent)?6:7)}(),1);return 1===t}function oe(){var t,r;if(!(S||i.includeCompletionsForModuleExports&&(n.externalModuleIndicator||n.commonJsModuleIndicator||cQ(e.getCompilerOptions())||sQ(e))))return;if(In.assert(!(null==a?void 0:a.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),a&&!a.source)return;O|=1;const l=v===b&&S?"":v&&nC(v)?v.text.toLowerCase():"",d=null==(t=s.getModuleSpecifierCache)?void 0:t.call(s),u=F0(n,s,e,i,c),p=null==(r=s.getPackageJsonAutoImportProvider)?void 0:r.call(s),f=a?void 0:n0(n,i,s);function m(t){const r=yt(t.moduleSymbol.valueDeclaration,rM);if(!r){const r=Gv(t.moduleSymbol.name);return(!vX.nodeCoreModules.has(r)||dn(r,"node:")===S0(n,e))&&(!f||f.allowsImportingAmbientModule(t.moduleSymbol,X(t.isFromPackageJson)))}return P0(t.isFromPackageJson?p:e,n,r,i,f,X(t.isFromPackageJson),d)}mce("collectAutoImports",s,z||(z=Qle.createImportSpecifierResolver(n,e,s,i)),e,o,i,!!S,wx(k),(e=>{u.search(n.path,C,((e,t)=>{if(!zs(e,jp(s.getCompilationSettings())))return!1;if(!a&&Xy(e))return!1;if(!q&&!S&&!(111551&t))return!1;if(q&&!(790504&t))return!1;const n=e.charCodeAt(0);return(!C||!(n<65||n>90))&&(!!a||vde(e,l))}),((t,n,r,o)=>{if(a&&!se(t,(e=>a.source===Gv(e.moduleSymbol.name))))return;if(!(t=G(t,m)).length)return;const i=e.tryResolve(t,r)||{};if("failed"===i)return;let s,l=t[0];"skipped"!==i&&({exportInfo:l=t[0],moduleSpecifier:s}=i);const c=1===l.exportKind;!function(e,t){const n=Kz(e);if(H[n]===tce.GlobalsOrKeywords)return;U[V.length]=t,H[n]=S?tce.LocationPriority:tce.AutoImportSuggestions,V.push(e)}(c&&PE(l.symbol)||l.symbol,{kind:s?32:4,moduleSpecifier:s,symbolName:n,exportMapKey:o,exportName:2===l.exportKind?"export=":l.symbol.name,fileName:l.moduleFileName,isDefaultExport:c,moduleSymbol:l.moduleSymbol,isFromPackageJson:l.isFromPackageJson})})),j=e.skippedAny(),O|=e.resolvedAny()?8:0,O|=e.resolvedBeyondLimit()?16:0}))}function ie(){if(b){const e=b.parent.kind,t=rde(b);switch(t){case 28:return 213===e||176===e||214===e||209===e||226===e||184===e||210===e;case 21:return 213===e||176===e||214===e||217===e||196===e;case 23:return 209===e||181===e||167===e;case 144:case 145:case 102:return!0;case 25:return 267===e;case 19:return 263===e||210===e;case 64:return 260===e||226===e;case 16:return 228===e;case 17:return 239===e;case 134:return 174===e||304===e;case 42:return 174===e}if(tde(t))return!0}return!1}function ae(e){return!!e.parent&&bC(e.parent)&&RC(e.parent.parent)&&(gd(e.kind)||Iy(e))}function le(e,t){return 64!==e.kind&&(27===e.kind||!iS(e.end,t,n))}function de(e){return Cd(e)&&176!==e}function ue(e,t){const n=e.expression,r=d.getSymbolAtLocation(n),o=r&&d.getTypeOfSymbolAtLocation(r,n),i=o&&o.properties;i&&i.forEach((e=>{t.add(e.name)}))}function pe(){V.forEach((e=>{if(16777216&e.flags){const t=Kz(e);H[t]=H[t]??tce.OptionalMember}}))}function fe(e,t){if(0!==e.size)for(const n of t)e.has(n.name)&&(H[Kz(n)]=tce.MemberDeclaredBySpreadAssignment)}function me(e){return e.getStart(n)<=o&&o<=e.getEnd()}}function Xce(e,t){const n=fY(e,t);if(n&&e<=n.end&&(Nc(n)||Vy(n.kind))){return{contextToken:fY(n.getFullStart(),t,void 0),previousToken:n}}return{contextToken:n,previousToken:n}}function $ce(e,t,n,r){const o=t.isPackageJsonImport?r.getPackageJsonAutoImportProvider():n,i=o.getTypeChecker(),a=t.ambientModuleName?i.tryFindAmbientModule(t.ambientModuleName):t.fileName?i.getMergedSymbol(In.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!a)return;let s="export="===t.exportName?i.resolveExternalModuleSymbol(a):i.tryGetMemberInModuleExportsAndProperties(t.exportName,a);if(!s)return;return s="default"===t.exportName&&PE(s)||s,{symbol:s,origin:Oce(t,e,a)}}function Yce(e,t,n,r,o){if(function(e){return!!(e&&256&e.kind)}(n))return;const i=function(e){return lce(e)||cce(e)||fce(e)}(n)?n.symbolName:e.name;if(void 0===i||1536&e.flags&&sg(i.charCodeAt(0))||uv(e))return;const a={name:i,needsConvertPropertyAccess:!1};if(zs(i,t,o?1:0)||e.valueDeclaration&&md(e.valueDeclaration))return a;switch(r){case 3:return fce(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(i),needsConvertPropertyAccess:!1};case 2:case 1:return 32===i.charCodeAt(0)?void 0:{name:i,needsConvertPropertyAccess:!0};case 5:case 4:return a;default:In.assertNever(r)}}function Qce(e,t){if(!t)return Zce(e);const n=e+8+1;return ice[n]||(ice[n]=Zce(e).filter((e=>!function(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}(ss(e.name)))))}function Zce(e){return ice[e]||(ice[e]=ace().filter((t=>{const n=ss(t.name);switch(e){case 0:return!1;case 1:return nde(n)||138===n||144===n||156===n||145===n||128===n||QY(n)&&157!==n;case 5:return nde(n);case 2:return tde(n);case 3:return ede(n);case 4:return gd(n);case 6:return QY(n)||87===n;case 7:return QY(n);case 8:return 156===n;default:return In.assertNever(e)}})))}function ede(e){return 148===e}function tde(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return yd(e)}}function nde(e){return 134===e||135===e||160===e||130===e||152===e||156===e||!Ky(e)&&!tde(e)}function rde(e){return nC(e)?Pl(e)??0:e.kind}function ode(e,t,n,r){const o=t&&t!==e,i=!o||3&t.flags?e:r.getUnionType([e,t]),a=function(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(G(e.types,(e=>!(402784252&e.flags||n.isArrayLikeType(e)||n.isTypeInvalidDueToUnionDiscriminant(e,t)||n.typeHasCallOrConstructSignatures(e)||e.isClass()&&ide(e.getApparentProperties()))))):e.getApparentProperties()}(i,n,r);return i.isClass()&&ide(a)?[]:o?G(a,(function(e){return!T(e.declarations)||se(e.declarations,(e=>e.parent!==n))})):a}function ide(e){return se(e,(e=>!!(6&_S(e))))}function ade(e,t){return e.isUnion()?In.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):In.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function sde(e,t){if(!e)return;if(Gd(e)&&ep(e.parent))return t.getTypeArgumentConstraint(e);const n=sde(e.parent,t);if(n)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 193:case 187:case 192:return n}}function lde(e){return e.parent&&zd(e.parent)&&kS(e.parent.parent)}function cde({left:e}){return im(e)}function dde(e,t){var n,r,o;let i,a=!1;const s=function(){const n=e.parent;if(hN(n)){const r=n.getLastToken(t);return nC(e)&&r!==e?(i=161,void(a=!0)):(i=156===e.kind?void 0:156,_de(n.moduleReference)?n:void 0)}if(fde(n,e)&&mde(n.parent))return n;if(IN(n)||xN(n)){if(n.parent.isTypeOnly||19!==e.kind&&102!==e.kind&&28!==e.kind||(i=156),mde(n)){if(20!==e.kind&&80!==e.kind)return n.parent.parent;a=!0,i=161}return}if(DN(n)&&42===e.kind||NN(n)&&20===e.kind)return a=!0,void(i=161);if(_C(e)&&rM(n))return i=156,e;if(_C(e)&&gN(n))return i=156,_de(n.moduleSpecifier)?n:void 0;return}();return{isKeywordOnlyCompletion:a,keywordCompletion:i,isNewIdentifierLocation:!(!s&&156!==i),isTopLevelTypeOnly:!!(null==(r=null==(n=yt(s,gN))?void 0:n.importClause)?void 0:r.isTypeOnly)||!!(null==(o=yt(s,hN))?void 0:o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!s&&fde(s,e),replacementSpan:ude(s)}}function ude(e){var t;if(!e)return;const n=Cl(e,_n(gN,hN))??e,r=n.getSourceFile();if(YE(n,r))return HY(n,r);In.assert(102!==n.kind&&276!==n.kind);const o=272===n.kind?pde(null==(t=n.importClause)?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,i={pos:n.getFirstToken().getStart(),end:o.pos};return YE(i,r)?JY(i):void 0}function pde(e){var t;return L(null==(t=yt(e,IN))?void 0:t.elements,(t=>{var n;return!t.propertyName&&Xy(t.name.text)&&28!==(null==(n=fY(t.name.pos,e.getSourceFile(),e))?void 0:n.kind)}))}function fde(e,t){return RN(e)&&(e.isTypeOnly||t===e.name&&eQ(t))}function mde(e){if(!_de(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(IN(e)){const t=pde(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function _de(e){var t;return!!im(e)||!(null==(t=yt(wN(e)?e.expression:e,np))?void 0:t.text)}function hde(e){return e.parent&&hD(e.parent)&&(e.parent.body===e||39===e.kind)}function gde(e,t,n=new Map){return r(e)||r(hS(e.exportSymbol||e,t));function r(e){return!!(788968&e.flags)||t.isUnknownSymbol(e)||!!(1536&e.flags)&&LS(n,Kz(e))&&t.getExportsOfModule(e).some((e=>gde(e,t,n)))}}function yde(e,t){const n=hS(e,t).declarations;return!!T(n)&&M(n,E0)}function vde(e,t){if(0===t.length)return!0;let n,r=!1,o=0;const i=e.length;for(let a=0;a<i;a++){const i=e.charCodeAt(a),s=t.charCodeAt(o);if((i===s||i===bde(s))&&(r||(r=void 0===n||97<=n&&n<=122&&65<=i&&i<=90||95===n&&95!==i),r&&o++,o===t.length))return!0;n=i}return!1}function bde(e){return 97<=e&&e<=122?e-32:e}function Ede(e){return"abstract"===e||"async"===e||"await"===e||"declare"===e||"module"===e||"namespace"===e||"type"===e}var Sde,Tde,xde,Ade=b({"src/services/completions.ts"(){Tge(),oue(),Zle=100,ece=1e3,tce={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:e=>"z"+e,ObjectLiteralProperty:(e,t)=>`${e}\0${t}\0`,SortBelow:e=>e+"1"},nce=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(nce||{}),rce=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(rce||{}),oce=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(oce||{}),ice=[],ace=Ct((()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:as(t),kind:"keyword",kindModifiers:"",sortText:tce.GlobalsOrKeywords});return e}))}});function Ide(){const e=new Map;return{add:function(t){const n=e.get(t.name);(!n||Sde[n.kind]<Sde[t.kind])&&e.set(t.name,t)},has:e.has.bind(e),values:e.values.bind(e)}}function Rde(e,t,n,r,o,i,a,s,l){if(GY(e,t)){const n=function(e,t,n,r){const o=lY(e,t),i=Ps(e.text,o.pos),a=i&&L(i,(e=>t>=e.pos&&t<=e.end));if(!a)return;const s=e.text.slice(a.pos,t),l=Tde.exec(s);if(!l)return;const[,c,d,u]=l,p=ra(e.path),f="path"===d?Gde(u,p,zde(n,0,e),r,!0,e.path):"types"===d?$de(r,n,p,Kde(u),zde(n,1,e)):In.fail();return Fde(u,a.pos+c.length,Ye(f.values()))}(e,t,r,o);return n&&Dde(n)}if(gY(e,t,n)){if(!n||!np(n))return;return function(e,t,n,r,o,i,a,s,l,c){if(void 0===e)return;const d=KY(t);switch(e.kind){case 0:return Dde(e.paths);case 1:{const u=[];return Bce(e.symbols,u,t,t,n,l,n,r,o,99,i,4,s,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,c),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:d,entries:u}}case 2:{const n=15===t.kind?96:dn(xm(t),"'")?39:34,r=e.types.map((e=>({name:Fv(e.value,n),kindModifiers:"",kind:"string",sortText:tce.LocationPriority,replacementSpan:UY(t)})));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:d,entries:r}}default:return In.assertNever(e)}}(Mde(e,n,t,i,o,s),n,e,o,i,a,r,s,t,l)}}function Cde(e,t,n,r,o,i,a,s){if(!r||!np(r))return;const l=Mde(t,r,n,o,i,s);return l&&function(e,t,n,r,o,i){switch(n.kind){case 0:{const t=L(n.paths,(t=>t.name===e));return t&&Hce(e,Nde(t.extension),t.kind,[qQ(e)])}case 1:{const a=L(n.symbols,(t=>t.name===e));return a&&Uce(a,a.name,o,r,t,i)}case 2:return L(n.types,(t=>t.value===e))?Hce(e,"","string",[qQ(e)]):void 0;default:return In.assertNever(n)}}(e,r,l,t,o.getTypeChecker(),a)}function Dde(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((({name:e,kind:t,span:n,extension:r})=>({name:e,kind:t,kindModifiers:Nde(r),sortText:tce.LocationPriority,replacementSpan:n})))}}function Nde(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return In.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return In.assertNever(e)}}function Mde(e,t,n,r,o,i){const a=r.getTypeChecker(),s=Lde(t.parent);switch(s.kind){case 201:{const l=Lde(s.parent);return 205===l.kind?{kind:0,paths:Wde(e,t,r,o,i)}:function e(t){switch(t.kind){case 233:case 183:{const e=Cl(s,(e=>e.parent===t));return e?{kind:2,types:Pde(a.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 199:const{indexType:o,objectType:i}=t;if(!O$(o,n))return;return kde(a.getTypeFromTypeNode(i));case 192:{const n=e(Lde(t.parent));if(!n)return;const o=(r=s,Z(t.types,(e=>e!==r&&ZC(e)&&zR(e.literal)?e.literal.text:void 0)));return 1===n.kind?{kind:1,symbols:n.symbols.filter((e=>!F(o,e.name))),hasIndexSignature:n.hasIndexSignature}:{kind:2,types:n.types.filter((e=>!F(o,e.value))),isNewIdentifier:!1}}default:return}var r}(l)}case 303:return sD(s.parent)&&s.name===t?function(e,t){const n=e.getContextualType(t);if(!n)return;const r=e.getContextualType(t,4);return{kind:1,symbols:ode(n,r,t,e),hasIndexSignature:FZ(n)}}(a,s.parent):l()||l(0);case 212:{const{expression:e,argumentExpression:n}=s;return t===Ty(n)?kde(a.getTypeAtLocation(e)):void 0}case 213:case 214:case 291:if(!function(e){return dD(e.parent)&&Le(e.parent.arguments)===e&&nC(e.parent.expression)&&"require"===e.parent.expression.escapedText}(t)&&!L_(s)){const r=ume.getArgumentInfoForCompletions(291===s.kind?s.parent:t,n,e,a);return r&&function(e,t,n,r){let o=!1;const i=new Map,a=ju(e)?In.checkDefined(Cl(t.parent,VN)):t,s=J(r.getCandidateSignaturesForStringLiteralCompletions(e,a),(t=>{if(!Zz(t)&&n.argumentCount>t.parameters.length)return;let s=t.getTypeParameterAtPosition(n.argumentIndex);if(ju(e)){const e=r.getTypeOfPropertyOfType(s,vA(a.name));e&&(s=e)}return o=o||!!(4&s.flags),Pde(s,i)}));return T(s)?{kind:2,types:s,isNewIdentifier:o}:void 0}(r.invocation,t,r,a)||l(0)}case 272:case 278:case 283:return{kind:0,paths:Wde(e,t,r,o,i)};case 296:const c=C0(a,s.parent.clauses),d=l();if(!d)return;return{kind:2,types:d.types.filter((e=>!c.hasValue(e.value))),isNewIdentifier:!1};default:return l()||l(0)}function l(e=4){const n=Pde(kZ(t,a,e));if(n.length)return{kind:2,types:n,isNewIdentifier:!1}}}function Lde(e){switch(e.kind){case 196:return vy(e);case 217:return by(e);default:return e}}function kde(e){return e&&{kind:1,symbols:G(e.getApparentProperties(),(e=>!(e.valueDeclaration&&md(e.valueDeclaration)))),hasIndexSignature:FZ(e)}}function Pde(e,t=new Map){return e?(e=iQ(e)).isUnion()?J(e.types,(e=>Pde(e,t))):!e.isStringLiteral()||1024&e.flags||!LS(t,e.value)?o:[e]:o}function wde(e,t,n){return{name:e,kind:t,extension:n}}function Ode(e){return wde(e,"directory",void 0)}function Fde(e,t,n){const r=function(e,t){const n=Math.max(e.lastIndexOf(Fi),e.lastIndexOf(Wi)),r=-1!==n?n+1:0,o=e.length-r;return 0===o||zs(e.substr(r,o),99)?void 0:dl(t+r,o)}(e,t),o=0===e.length?void 0:dl(t,e.length);return n.map((({name:e,kind:t,extension:n})=>e.includes(Fi)||e.includes(Wi)?{name:e,kind:t,extension:n,span:o}:{name:e,kind:t,extension:n,span:r}))}function Wde(e,t,n,r,i){return Fde(t.text,t.getStart(e)+1,function(e,t,n,r,i){const a=ca(t.text),s=np(t)?n.getModeForUsageLocation(e,t):void 0,l=e.path,c=ra(l),d=n.getCompilerOptions(),u=n.getTypeChecker(),p=zde(d,1,e,u,i,s);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){const t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}(a)||!d.baseUrl&&!d.paths&&(Hi(a)||Ui(a))?function(e,t,n,r,o,i){return n.rootDirs?function(e,t,n,r,o,i,a){const s=o.project||i.getCurrentDirectory(),l=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames()),c=function(e,t,n,r){e=e.map((e=>va(_a(Hi(e)?e:ua(t,e)))));const o=I(e,(e=>Ra(e,n,t,r)?n.substr(e.length):void 0));return pe([...e.map((e=>ua(e,o))),n].map((e=>ya(e))),wt,jt)}(e,s,n,l);return pe(J(c,(e=>Ye(Gde(t,e,r,i,!0,a).values()))),((e,t)=>e.name===t.name&&e.kind===t.kind&&e.extension===t.extension))}(n.rootDirs,e,t,i,n,r,o):Ye(Gde(e,t,i,r,!0,o).values())}(a,c,d,r,l,p):function(e,t,n,r,i,a,s){const{baseUrl:l,paths:c}=r,d=Ide(),u=Up(r);if(l){const t=_a(ua(i.getCurrentDirectory(),l));Gde(e,t,a,i,!1,void 0,d)}if(c){const t=ib(r,i);Vde(d,e,t,a,i,c)}const p=Kde(e);for(const o of function(e,t,n){const r=n.getAmbientModules().map((e=>Gv(e.name))).filter((t=>dn(t,e)&&!t.includes("*")));if(void 0!==t){const e=va(t);return r.map((t=>un(t,e)))}return r}(e,p,s))d.add(wde(o,"external module name",void 0));if($de(i,r,t,p,a,d),pQ(u)){let s=!1;if(void 0===p)for(const e of function(e,t){if(!e.readFile||!e.fileExists)return o;const n=[];for(const r of QZ(t,e)){const t=BE(r,e);for(const e of xde){const r=t[e];if(r)for(const e in r)He(r,e)&&!dn(e,"@types/")&&n.push(e)}}return n}(i,t)){const t=wde(e,"external module name",void 0);d.has(t.name)||(s=!0,d.add(t))}if(!s){let o=t=>{const n=ua(t,"node_modules");XZ(i,n)&&Gde(e,n,a,i,!1,void 0,d)};if(p&&Xp(r)){const t=o;o=o=>{const s=sa(e);s.shift();let l=s.shift();if(!l)return t(o);if(dn(l,"@")){const e=s.shift();if(!e)return t(o);l=ua(l,e)}const c=ua(o,"node_modules",l),u=ua(c,"package.json");if(JZ(i,u)){const t=BE(u,i).exports;if(t){if("object"!==typeof t||null===t)return;const o=qe(t),l=s.join("/")+(s.length&&Zi(e)?"/":""),u=_F(r,n);return void Ude(d,!0,l,c,a,i,o,(e=>yn(Hde(t[e],u))),fW)}}return t(o)}}Pa(t,o)}}return Ye(d.values())}(a,c,s,d,r,p,u)}(e,t,n,r,i))}function zde(e,t,n,r,o,i){return{extensionsToSearch:q(Bde(e,r)),referenceKind:t,importingSourceFile:n,endingPreference:null==o?void 0:o.importModuleSpecifierEnding,resolutionMode:i}}function Bde(e,t){const n=t?Z(t.getAmbientModules(),(e=>{const t=e.name.slice(1,-1);if(t.startsWith("*.")&&!t.includes("/"))return t.slice(1)})):[],r=[...ex(e),n];return pQ(Up(e))?tx(e,r):r}function Gde(e,t,n,r,o,i,a=Ide()){var s;void 0===e&&(e=""),Zi(e=ca(e))||(e=ra(e)),""===e&&(e="."+Fi);const l=pa(t,e=va(e)),c=Zi(l)?l:ra(l);if(!o){const e=ZZ(c,r);if(e){const t=BE(e,r).typesVersions;if("object"===typeof t){const o=null==(s=cF(t))?void 0:s.paths;if(o){const t=ra(e);if(Vde(a,l.slice(va(t).length),t,n,r,o))return a}}}}const d=!(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames());if(!XZ(r,c))return a;const u=qZ(r,c,n.extensionsToSearch,void 0,["./*"]);if(u)for(let f of u){if(f=_a(f),i&&0===Ia(f,i,t,d))continue;const{name:e,extension:o}=jde(oa(f),r.getCompilationSettings(),n,!1);a.add(wde(e,"script",o))}const p=KZ(r,c);if(p)for(const f of p){const e=oa(_a(f));"@types"!==e&&a.add(Ode(e))}return a}function jde(e,t,n,r){const o=Rz.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:bx(o)};if(0===n.referenceKind)return{name:e,extension:bx(e)};let i=ZW({importModuleSpecifierEnding:n.endingPreference},t,n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(r&&(i=i.filter((e=>0!==e&&1!==e))),3===i[0]){if(Qi(e,Sf))return{name:e,extension:bx(e)};const n=Rz.tryGetJSExtensionForFile(e,t);return n?{name:px(e,n),extension:n}:{name:e,extension:bx(e)}}if(!r&&(0===i[0]||1===i[0])&&Qi(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:cx(e),extension:bx(e)};const a=Rz.tryGetJSExtensionForFile(e,t);return a?{name:px(e,a),extension:a}:{name:e,extension:bx(e)}}function Vde(e,t,n,r,o,i){return Ude(e,!1,t,n,r,o,qe(i),(e=>i[e]),((e,t)=>{const n=fx(e),r=fx(t),o="object"===typeof n?n.prefix.length:e.length;return Ft("object"===typeof r?r.prefix.length:t.length,o)}))}function Ude(e,t,n,r,o,i,a,s,l){let c,d=[];for(const u of a){if("."===u)continue;const e=u.replace(/^\.\//,""),a=s(u);if(a){const s=fx(e);if(!s)continue;const p="object"===typeof s&&fn(s,n);p&&(void 0===c||-1===l(u,c))&&(c=u,d=d.filter((e=>!e.matchedPattern))),"string"!==typeof s&&void 0!==c&&1===l(u,c)||d.push({matchedPattern:p,results:qde(e,a,n,r,o,t&&p,i).map((({name:e,kind:t,extension:n})=>wde(e,t,n)))})}}return d.forEach((t=>t.results.forEach((t=>e.add(t))))),void 0!==c}function Hde(e,t){if("string"===typeof e)return e;if(e&&"object"===typeof e&&!mt(e))for(const n in e)if("default"===n||t.includes(n)||hW(t,n)){return Hde(e[n],t)}}function Kde(e){return Yde(e)?Zi(e)?e:ra(e):void 0}function qde(e,t,n,r,i,a,s){if(!Yt(e,"*"))return e.includes("*")?o:d(e,"script");const l=e.slice(0,e.length-1),c=pn(n,l);if(void 0===c){return"/"===e[e.length-2]?d(l,"directory"):J(t,(e=>{var t;return null==(t=Jde("",r,e,i,a,s))?void 0:t.map((({name:e,...t})=>({name:l+e,...t})))}))}return J(t,(e=>Jde(c,r,e,i,a,s)));function d(e,t){return dn(e,n)?[{name:ya(e),kind:t,extension:void 0}]:o}}function Jde(e,t,n,r,i,a){if(!a.readDirectory)return;const s=fx(n);if(void 0===s||ht(s))return;const l=pa(s.prefix),c=Zi(s.prefix)?l:ra(l),d=Zi(s.prefix)?"":oa(l),u=Yde(e),p=u?Zi(e)?e:ra(e):void 0,f=u?ua(c,d+p):c,m=_a(s.suffix),_=m&&nb("_"+m),h=_?[px(m,_),m]:[m],g=_a(ua(t,f)),y=u?g:va(g)+d,v=m?h.map((e=>"**/*"+e)):["./*"];return[...Z(qZ(a,g,r.extensionsToSearch,void 0,v),(e=>{const t=(n=e,I(h,(e=>{const t=(r=_a(n),i=e,dn(r,o=y)&&Yt(r,i)?r.slice(o.length,r.length-i.length):void 0);var r,o,i;return void 0===t?void 0:Xde(t)})));var n;if(t){if(Yde(t))return Ode(sa(Xde(t))[1]);const{name:e,extension:n}=jde(t,a.getCompilationSettings(),r,i);return wde(e,"script",n)}})),...m?o:Z(KZ(a,g),(e=>"node_modules"===e?void 0:Ode(e)))]}function Xde(e){return e[0]===Fi?e.slice(1):e}function $de(e,t,n,r,i,a=Ide()){const s=new Map,l=$Z((()=>dF(t,e)))||o;for(const o of l)c(o);for(const o of QZ(n,e)){c(ua(ra(o),"node_modules/@types"))}return a;function c(n){if(XZ(e,n))for(const o of KZ(e,n)){const l=IW(o);if(!t.types||F(t.types,l))if(void 0===r)s.has(l)||(a.add(wde(l,"external module name",void 0)),s.set(l,!0));else{const t=ua(n,o),s=WT(r,l,Jv(e));void 0!==s&&Gde(s,t,i,e,!1,void 0,a)}}}}function Yde(e){return e.includes(Fi)}var Qde=b({"src/services/stringCompletions.ts"(){Iz(),Tge(),oue(),Sde={directory:0,script:1,"external module name":2},Tde=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,xde=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}}),Zde={};E(Zde,{getStringLiteralCompletionDetails:()=>Cde,getStringLiteralCompletions:()=>Rde});var eue=b({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){Qde()}}),tue={};E(tue,{CompletionKind:()=>oce,CompletionSource:()=>nce,SortText:()=>tce,StringCompletions:()=>Zde,SymbolOriginInfoKind:()=>rce,createCompletionDetails:()=>Hce,createCompletionDetailsForSymbol:()=>Uce,getCompletionEntriesFromSymbols:()=>Bce,getCompletionEntryDetails:()=>jce,getCompletionEntrySymbol:()=>Kce,getCompletionsAtPosition:()=>_ce,getPropertiesForObjectExpression:()=>ode,moduleSpecifierResolutionCacheAttemptLimit:()=>ece,moduleSpecifierResolutionLimit:()=>Zle});var nue,rue,oue=b({"src/services/_namespaces/ts.Completions.ts"(){Ade(),eue()}});function iue(e,t,n,r){const o=function(e,t,n){const r=new Map;for(const o of e)n&&n.throwIfCancellationRequested(),cue(o,((e,n)=>{const o=t.getSymbolAtLocation(n);if(o){const t=Kz(o).toString();let n=r.get(t);n||r.set(t,n=[]),n.push(e)}}));return r}(e,n,r);return(i,a,s)=>{const{directImports:l,indirectUsers:c}=function(e,t,n,{exportingModuleSymbol:r,exportKind:o},i,a){const s=nQ(),l=nQ(),c=[],d=!!r.globalExports,u=d?void 0:[];return f(r),{directImports:c,indirectUsers:p()};function p(){if(d)return e;if(r.declarations)for(const e of r.declarations)Gm(e)&&t.has(e.getSourceFile().fileName)&&g(e);return u.map(Yf)}function f(e){const t=y(e);if(t)for(const n of t)if(s(n))switch(a&&a.throwIfCancellationRequested(),n.kind){case 213:if(L_(n)){m(n);break}if(!d){const e=n.parent;if(2===o&&260===e.kind){const{name:t}=e;if(80===t.kind){c.push(t);break}}}break;case 80:break;case 271:h(n,n.name,Gb(n,32),!1);break;case 272:c.push(n);const e=n.importClause&&n.importClause.namedBindings;e&&274===e.kind?h(n,e.name,!1,!0):!d&&jg(n)&&g(fue(n));break;case 278:n.exportClause?280===n.exportClause.kind?g(fue(n),!0):c.push(n):f(pue(n,i));break;case 205:!d&&n.isTypeOf&&!n.qualifier&&_(n)&&g(n.getSourceFile(),!0),c.push(n);break;default:In.failBadSyntaxKind(n,"Unexpected import kind.")}}function m(e){g(Cl(e,mue)||e.getSourceFile(),!!_(e,!0))}function _(e,t=!1){return Cl(e,(e=>t&&mue(e)?"quit":vk(e)&&se(e.modifiers,oC)))}function h(e,t,n,r){if(2===o)r||c.push(e);else if(!d){const r=fue(e);In.assert(312===r.kind||267===r.kind),n||function(e,t,n){const r=n.getSymbolAtLocation(t);return!!lue(e,(e=>{if(!DN(e))return;const{exportClause:t,moduleSpecifier:o}=e;return!o&&t&&NN(t)&&t.elements.some((e=>n.getExportSpecifierLocalTargetSymbol(e)===r))}))}(r,t,i)?g(r,!0):g(r)}}function g(e,t=!1){In.assert(!d);if(!l(e))return;if(u.push(e),!t)return;const n=i.getMergedSymbol(e.symbol);if(!n)return;In.assert(!!(1536&n.flags));const r=y(n);if(r)for(const o of r)eD(o)||g(fue(o),!0)}function y(e){return n.get(Kz(e).toString())}}(e,t,o,a,n,r);return{indirectUsers:c,...aue(l,i,a.exportKind,n,s)}}}function aue(e,t,n,r,o){const i=[],a=[];function s(e,t){i.push([e,t])}if(e)for(const p of e)l(p);return{importSearches:i,singleReferences:a};function l(e){if(271===e.kind)return void(_ue(e)&&c(e.name));if(80===e.kind)return void c(e);if(205===e.kind){if(e.qualifier){const n=SE(e.qualifier);n.escapedText===wl(t)&&a.push(n)}else 2===n&&a.push(e.argument.literal);return}if(11!==e.moduleSpecifier.kind)return;if(278===e.kind)return void(e.exportClause&&NN(e.exportClause)&&d(e.exportClause));const{name:i,namedBindings:l}=e.importClause||{name:void 0,namedBindings:void 0};if(l)switch(l.kind){case 274:c(l.name);break;case 275:0!==n&&1!==n||d(l);break;default:In.assertNever(l)}if(i&&(1===n||2===n)&&(!o||i.escapedText===bQ(t))){s(i,r.getSymbolAtLocation(i))}}function c(e){2!==n||o&&!u(e.escapedText)||s(e,r.getSymbolAtLocation(e))}function d(e){if(e)for(const n of e.elements){const{name:e,propertyName:i}=n;if(u((i||e).escapedText))if(i)a.push(i),o&&e.escapedText!==t.escapedName||s(e,r.getSymbolAtLocation(e));else{s(e,281===n.kind&&n.propertyName?r.getExportSpecifierLocalTargetSymbol(n):r.getSymbolAtLocation(e))}}}function u(e){return e===t.escapedName||0!==n&&"default"===e}}function sue(e,t,n){var r;const o=[],i=e.getTypeChecker();for(const a of t){const t=n.valueDeclaration;if(312===(null==t?void 0:t.kind)){for(const n of a.referencedFiles)e.getSourceFileFromReference(a,n)===t&&o.push({kind:"reference",referencingFile:a,ref:n});for(const n of a.typeReferenceDirectives){const i=null==(r=e.getResolvedTypeReferenceDirectives().get(n.fileName,n.resolutionMode||a.impliedNodeFormat))?void 0:r.resolvedTypeReferenceDirective;void 0!==i&&i.resolvedFileName===t.fileName&&o.push({kind:"reference",referencingFile:a,ref:n})}}cue(a,((e,t)=>{i.getSymbolAtLocation(t)===n&&o.push(Sv(e)?{kind:"implicit",literal:t,referencingFile:a}:{kind:"import",literal:t})}))}return o}function lue(e,t){return x(312===e.kind?e.statements:e.body.statements,(e=>t(e)||mue(e)&&x(e.body&&e.body.statements,t)))}function cue(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(const n of e.imports)t(Wg(n),n);else lue(e,(e=>{switch(e.kind){case 278:case 272:{const n=e;n.moduleSpecifier&&zR(n.moduleSpecifier)&&t(n,n.moduleSpecifier);break}case 271:{const n=e;_ue(n)&&t(n,n.moduleReference.expression);break}}}))}function due(e,t,n,r){return r?o():o()||function(){if(!function(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&_ue(t);case 276:return!t.propertyName;case 273:case 274:return In.assert(t.name===e),!0;case 208:return $h(e)&&rg(t.parent.parent);default:return!1}}(e))return;let r=n.getImmediateAliasedSymbol(t);if(!r)return;if(r=function(e,t){if(e.declarations)for(const n of e.declarations){if(MN(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(lD(n)&&bg(n.expression)&&!rC(n.name))return t.getSymbolAtLocation(n);if(ZN(n)&&TD(n.parent.parent)&&2===Eg(n.parent.parent))return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}(r,n),"export="===r.escapedName&&(r=function(e,t){var n,r;if(2097152&e.flags)return t.getImmediateAliasedSymbol(e);const o=In.checkDefined(e.valueDeclaration);if(CN(o))return null==(n=yt(o.expression,Cu))?void 0:n.symbol;if(TD(o))return null==(r=yt(o.right,Cu))?void 0:r.symbol;if(rM(o))return o.symbol;return}(r,n),void 0===r))return;const o=bQ(r);if(void 0===o||"default"===o||o===t.escapedName)return{kind:0,symbol:r}}();function o(){var o;const{parent:s}=e,l=s.parent;if(t.exportSymbol)return 211===s.kind?(null==(o=t.declarations)?void 0:o.some((e=>e===s)))&&TD(l)?d(l,!1):void 0:i(t.exportSymbol,a(s));{const o=function(e,t){const n=iN(e)?e:iD(e)?bl(e):void 0;return n?e.name!==t||YN(n.parent)?void 0:GD(n.parent.parent)?n.parent.parent:void 0:e}(s,e);if(o&&Gb(o,32)){if(hN(o)&&o.moduleReference===e){if(r)return;return{kind:0,symbol:n.getSymbolAtLocation(o.name)}}return i(t,a(o))}if(AN(s))return i(t,0);if(CN(s))return c(s);if(CN(l))return c(l);if(TD(s))return d(s,!0);if(TD(l))return d(l,!0);if(GM(s)||IM(s))return i(t,0)}function c(e){if(!e.symbol.parent)return;const n=e.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:n}}}function d(e,r){let o;switch(Eg(e)){case 1:o=0;break;case 2:o=2;break;default:return}const a=r?n.getSymbolAtLocation(OS(vt(e.left,wS))):t;return a&&i(a,o)}}function i(e,t){const r=uue(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function a(e){return Gb(e,2048)?1:0}}function uue(e,t,n){const r=e.parent;if(!r)return;const o=n.getMergedSymbol(r);return tQ(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function pue(e,t){return t.getMergedSymbol(fue(e).symbol)}function fue(e){if(213===e.kind)return e.getSourceFile();const{parent:t}=e;return 312===t.kind?t:(In.assert(268===t.kind),vt(t.parent,mue))}function mue(e){return 267===e.kind&&11===e.name.kind}function _ue(e){return 283===e.moduleReference.kind&&11===e.moduleReference.expression.kind}var hue,gue,yue,vue,bue=b({"src/services/importTracker.ts"(){Tge(),nue=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(nue||{}),rue=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(rue||{})}});function Eue(e,t=1){return{kind:t,node:e.name||e,context:Tue(e)}}function Sue(e){return e&&void 0===e.kind}function Tue(e){if(Lu(e))return xue(e);if(e.parent){if(!Lu(e.parent)&&!CN(e.parent)){if($h(e)){const t=TD(e.parent)?e.parent:wS(e.parent)&&TD(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==Eg(t))return xue(t)}if(WN(e.parent)||zN(e.parent))return e.parent.parent;if(FN(e.parent)||tN(e.parent)||Vc(e.parent))return e.parent;if(np(e)){const t=zg(e);if(t){const e=Cl(t,(e=>Lu(e)||wu(e)||Ku(e)));return Lu(e)?xue(e):e}}const t=Cl(e,yC);return t?xue(t.parent):void 0}return e.parent.name===e||RC(e.parent)||CN(e.parent)||(id(e.parent)||iD(e.parent))&&e.parent.propertyName===e||90===e.kind&&Gb(e.parent,2080)?xue(e.parent):void 0}}function xue(e){if(e)switch(e.kind){case 260:return aN(e.parent)&&1===e.parent.declarations.length?GD(e.parent.parent)?e.parent.parent:vu(e.parent.parent)?xue(e.parent.parent):e.parent:e;case 208:return xue(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return VD(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return BY(e.parent)?xue(Cl(e.parent,(e=>TD(e)||vu(e)))):e;case 255:return{start:L(e.getChildren(e.getSourceFile()),(e=>109===e.kind)),end:e.caseBlock};default:return e}}function Aue(e,t,n){if(!n)return;const r=Sue(n)?Bue(n.start,t,n.end):Bue(n,t);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}function Iue(e,t,n,r,o){const i=aY(r,o),a={use:1},s=vue.getReferencedSymbolsForNode(o,i,e,n,t,a),l=e.getTypeChecker(),c=vue.getAdjustedNode(i,a),d=function(e){return 90===e.kind||!!Ry(e)||Cy(e)||137===e.kind&&RC(e.parent)}(c)?l.getSymbolAtLocation(c):void 0;return s&&s.length?Z(s,(({definition:e,references:n})=>e&&{definition:l.runWithCancellationToken(t,(t=>function(e,t,n){const r=(()=>{switch(e.type){case 0:{const{symbol:r}=e,{displayParts:o,kind:i}=kue(r,t,n),a=o.map((e=>e.text)).join(""),s=r.declarations&&Le(r.declarations);return{...Lue(s?jl(s)||s:n),name:a,kind:i,displayParts:o,context:xue(s)}}case 1:{const{node:t}=e;return{...Lue(t),name:t.text,kind:"label",displayParts:[zQ(t.text,17)]}}case 2:{const{node:t}=e,n=as(t.kind);return{...Lue(t),name:n,kind:"keyword",displayParts:[{text:n,kind:"keyword"}]}}case 3:{const{node:n}=e,r=t.getSymbolAtLocation(n),o=r&&wme.getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n.getSourceFile(),N$(n),n).displayParts||[qQ("this")];return{...Lue(n),name:"this",kind:"var",displayParts:o}}case 4:{const{node:t}=e;return{...Lue(t),name:t.text,kind:"var",displayParts:[zQ(xm(t),8)]}}case 5:return{textSpan:JY(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[zQ(`"${e.reference.fileName}"`,8)]};default:return In.assertNever(e)}})(),{sourceFile:o,textSpan:i,name:a,kind:s,displayParts:l,context:c}=r;return{containerKind:"",containerName:"",fileName:o.fileName,kind:s,name:a,textSpan:i,displayParts:l,...Aue(i,o,c)}}(e,t,i))),references:n.map((e=>function(e,t){const n=wue(e);return t?{...n,isDefinition:0!==e.kind&&Vue(e.node,t)}:n}(e,d)))})):void 0}function Rue(e,t,n,r,o){const i=aY(r,o);let a;const s=Cue(e,t,n,i,o);if(211===i.parent.kind||208===i.parent.kind||212===i.parent.kind||108===i.kind)a=s&&[...s];else if(s){const r=pt(s),o=new Map;for(;!r.isEmpty();){const i=r.dequeue();if(!LS(o,Hz(i.node)))continue;a=Ee(a,i);const s=Cue(e,t,n,i.node,i.node.pos);s&&r.enqueue(...s)}}const l=e.getTypeChecker();return U(a,(e=>function(e,t){const n=Oue(e);if(0!==e.kind){const{node:r}=e;return{...n,...Wue(r,t)}}return{...n,kind:"",displayParts:[]}}(e,l)))}function Cue(e,t,n,r,o){if(312===r.kind)return;const i=e.getTypeChecker();if(304===r.parent.kind){const e=[];return vue.getReferenceEntriesForShorthandPropertyAssignment(r,i,(t=>e.push(Eue(t)))),e}if(108===r.kind||Ih(r.parent)){const e=i.getSymbolAtLocation(r);return e.valueDeclaration&&[Eue(e.valueDeclaration)]}return Nue(o,r,e,n,t,{implementations:!0,use:1})}function Due(e,t,n,r,o,i,a){return U(Mue(vue.getReferencedSymbolsForNode(o,r,e,n,t,i)),(t=>a(t,r,e.getTypeChecker())))}function Nue(e,t,n,r,o,i={},a=new Set(r.map((e=>e.fileName)))){return Mue(vue.getReferencedSymbolsForNode(e,t,n,r,o,i,a))}function Mue(e){return e&&J(e,(e=>e.references))}function Lue(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:Bue(yC(e)?e.expression:e,t)}}function kue(e,t,n){const r=vue.getIntersectingMeaningFromDeclarations(n,e),o=e.declarations&&Le(e.declarations)||n,{displayParts:i,symbolKind:a}=wme.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,r);return{displayParts:i,kind:a}}function Pue(e,t,n,r,o){return{...Oue(e),...r&&Fue(e,t,n,o)}}function wue(e){const t=Oue(e);if(0===e.kind)return{...t,isWriteAccess:!1};const{kind:n,node:r}=e;return{...t,isWriteAccess:jue(r),isInString:2===n||void 0}}function Oue(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=Bue(e.node,t);return{textSpan:n,fileName:t.fileName,...Aue(n,t,e.context)}}}function Fue(e,t,n,r){if(0!==e.kind&&nC(t)){const{node:r,kind:o}=e,i=r.parent,a=t.text,s=ZN(i);if(s||SQ(i)&&i.name===r&&void 0===i.dotDotDotToken){const e={prefixText:a+": "},t={suffixText:": "+a};if(3===o)return e;if(4===o)return t;if(s){const n=i.parent;return sD(n)&&TD(n.parent)&&bg(n.parent.left)?e:t}return e}if(RN(i)&&!i.propertyName){return F((MN(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t)).declarations,i)?{prefixText:a+" as "}:xX}if(MN(i)&&!i.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:a+" as "}:{suffixText:" as "+a}}if(0!==e.kind&&FR(e.node)&&wS(e.node.parent)){const e=yQ(r);return{prefixText:e,suffixText:e}}return xX}function Wue(e,t){const n=t.getSymbolAtLocation(Lu(e)&&e.name?e.name:e);return n?kue(n,t,e):210===e.kind?{kind:"interface",displayParts:[jQ(21),qQ("object literal"),jQ(22)]}:231===e.kind?{kind:"local class",displayParts:[jQ(21),qQ("anonymous local class"),jQ(22)]}:{kind:M$(e),displayParts:[]}}function zue(e){const t=Oue(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=jue(e.node),r={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:2===e.kind||void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:r}}function Bue(e,t,n){let r=e.getStart(t),o=(n||e).getEnd();return np(e)&&o-r>2&&(In.assert(void 0===n),r+=1,o-=1),269===(null==n?void 0:n.kind)&&(o=n.getFullStart()),ul(r,o)}function Gue(e){return 0===e.kind?e.textSpan:Bue(e.node,e.node.getSourceFile())}function jue(e){const t=Ry(e);return!!t&&function(e){if(33554432&e.flags)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!BY(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||YN(e.parent);case 173:case 171:case 355:case 348:return!1;default:return In.failBadSyntaxKind(e)}}(t)||90===e.kind||vS(e)}function Vue(e,t){var n;if(!t)return!1;const r=Ry(e)||(90===e.kind?e.parent:Cy(e)||137===e.kind&&RC(e.parent)?e.parent.parent:void 0),o=r&&TD(r)?r.left:void 0;return!(!r||!(null==(n=t.declarations)?void 0:n.some((e=>e===r||e===o))))}var Uue=b({"src/services/findAllReferences.ts"(){Tge(),que(),hue=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(hue||{}),gue=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(gue||{}),yue=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(yue||{}),(e=>{function t(e,t){return 1===t.use?e=oY(e):2===t.use&&(e=iY(e)),e}function n(e,t,n){let r;const i=t.get(e.path)||o;for(const o of i)if(nH(o)){const e=n.getSourceFileByPath(o.file),t=oH(n,o);rH(t)&&(r=Ee(r,{kind:0,fileName:e.fileName,textSpan:JY(t)}))}return r}function r(e,t,n){if(e.parent&&_N(e.parent)){const e=n.getAliasedSymbol(t),r=n.getMergedSymbol(e);if(e!==r)return r}}function i(e,t,n,r,o,i){const s=1536&e.flags&&e.declarations&&L(e.declarations,rM);if(!s)return;const c=e.exports.get("export="),u=l(t,e,!!c,n,i);if(!c||!i.has(s.fileName))return u;const p=t.getTypeChecker();return a(t,u,d(e=hS(c,p),void 0,n,i,p,r,o))}function a(e,...t){let n;for(const r of t)if(r&&r.length)if(n)for(const t of r){if(!t.definition||0!==t.definition.type){n.push(t);continue}const r=t.definition.symbol,o=P(n,(e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===r));if(-1===o){n.push(t);continue}const i=n[o];n[o]={definition:i.definition,references:i.references.concat(t.references).sort(((t,n)=>{const r=s(e,t),o=s(e,n);if(r!==o)return Ft(r,o);const i=Gue(t),a=Gue(n);return i.start!==a.start?Ft(i.start,a.start):Ft(i.length,a.length)}))}}else n=r;return n}function s(e,t){const n=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(n)}function l(e,t,n,r,i){In.assert(!!t.valueDeclaration);const a=Z(sue(e,r,t),(e=>{if("import"===e.kind){const t=e.literal.parent;if(ZC(t)){const e=vt(t.parent,eD);if(n&&!e.qualifier)return}return Eue(e.literal)}if("implicit"===e.kind){return Eue(e.literal.text!==cp&&iP(e.referencingFile,(e=>2&e.transformFlags?ON(e)||FN(e)||BN(e)?e:void 0:"skip"))||e.referencingFile.statements[0]||e.referencingFile)}return{kind:0,fileName:e.referencingFile.fileName,textSpan:JY(e.ref)}}));if(t.declarations)for(const o of t.declarations)switch(o.kind){case 312:break;case 267:i.has(o.getSourceFile().fileName)&&a.push(Eue(o.name));break;default:In.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const s=t.exports.get("export=");if(null==s?void 0:s.declarations)for(const o of s.declarations){const e=o.getSourceFile();if(i.has(e.fileName)){const t=TD(o)&&lD(o.left)?o.left.expression:CN(o)?In.checkDefined(J$(o,95,e)):jl(o)||o;a.push(Eue(t))}}return a.length?[{definition:{type:0,symbol:t},references:a}]:o}function c(e){return 148===e.kind&&$C(e.parent)&&148===e.parent.operator}function d(e,t,n,r,o,i,a){const s=t&&function(e,t,n,r){const{parent:o}=t;if(MN(o)&&r)return k(t,e,o,n);return I(e.declarations,(r=>{if(!r.parent){if(33554432&e.flags)return;In.fail(`Unexpected symbol at ${In.formatSyntaxKind(t.kind)}: ${In.formatSymbol(e)}`)}return WC(r.parent)&&UC(r.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(r.parent.parent),e.name):void 0}))}(e,t,o,!$(a))||e,l=t?K(t,s):7,c=[],d=new _(n,r,t?function(e){switch(e.kind){case 176:case 137:return 1;case 80:if(Md(e.parent))return In.assert(e.parent.name===e),2;default:return 0}}(t):0,o,i,l,a,c),p=$(a)&&s.declarations?L(s.declarations,MN):void 0;if(p)M(p.name,s,p,d.createSearch(t,e,void 0),d,!0,!0);else if(t&&90===t.kind&&"default"===s.escapedName&&s.parent)w(t,s,d),h(t,s,{exportingModuleSymbol:s.parent,exportKind:1},d);else{const e=d.createSearch(t,s,void 0,{allSearchSymbols:t?V(s,t,o,2===a.use,!!a.providePrefixAndSuffixTextForRename,!!a.implementations):[s]});u(s,d,e)}return c}function u(e,t,n){const r=function(e){const{declarations:t,flags:n,parent:r,valueDeclaration:o}=e;if(o&&(218===o.kind||231===o.kind))return o;if(!t)return;if(8196&n){const e=L(t,(e=>Bb(e,2)||md(e)));return e?jy(e,263):void 0}if(t.some(SQ))return;const i=r&&!(262144&e.flags);if(i&&(!tQ(r)||r.globalExports))return;let a;for(const s of t){const e=N$(s);if(a&&a!==e)return;if(!e||312===e.kind&&!T_(e))return;if(a=e,_D(a)){let e;for(;e=ny(a);)a=e}}return i?a.getSourceFile():a}(e);if(r)C(r,r.getSourceFile(),n,t,!(rM(r)&&!F(t.sourceFiles,r)));else for(const o of t.sourceFiles)t.cancellationToken.throwIfCancellationRequested(),v(o,n,t)}let p;var f;function m(e){if(!(33555968&e.flags))return;const t=e.declarations&&L(e.declarations,(e=>!rM(e)&&!pN(e)));return t&&t.symbol}e.getReferencedSymbolsForNode=function(e,s,u,p,f,m={},_=new Set(p.map((e=>e.fileName)))){var h,g;if(rM(s=t(s,m))){const t=upe.getReferenceAtPosition(s,e,u);if(!(null==t?void 0:t.file))return;const r=u.getTypeChecker().getMergedSymbol(t.file.symbol);if(r)return l(u,r,!1,p,_);const i=u.getFileIncludeReasons();if(!i)return;return[{definition:{type:5,reference:t.reference,file:s},references:n(t.file,i,u)||o}]}if(!m.implementations){const e=function(e,t,n){if(QY(e.kind)){if(116===e.kind&&vD(e.parent))return;if(148===e.kind&&!c(e))return;return function(e,t,n,r){const o=J(e,(e=>(n.throwIfCancellationRequested(),Z(E(e,as(t),e),(e=>{if(e.kind===t&&(!r||r(e)))return Eue(e)})))));return o.length?[{definition:{type:2,node:o[0].node},references:o}]:void 0}(t,e.kind,n,148===e.kind?c:void 0)}if(k_(e.parent)&&e.parent.name===e)return function(e,t){const n=J(e,(e=>(t.throwIfCancellationRequested(),Z(E(e,"meta",e),(e=>{const t=e.parent;if(k_(t))return Eue(t)})))));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0}(t,n);if(dC(e)&&IC(e.parent))return[{definition:{type:2,node:e},references:[Eue(e)]}];if(v$(e)){const t=g$(e.parent,e.text);return t&&A(t.parent,t)}if(b$(e))return A(e.parent,e);if(L$(e))return function(e,t,n){let r=vh(e,!1,!1),o=256;switch(r.kind){case 174:case 173:if(oh(r)){o&=tE(r),r=r.parent;break}case 172:case 171:case 176:case 177:case 178:o&=tE(r),r=r.parent;break;case 312:if(uP(r)||j(e))return;case 262:case 218:break;default:return}const i=J(312===r.kind?t:[r.getSourceFile()],(e=>(n.throwIfCancellationRequested(),E(e,"this",rM(r)?e:r).filter((e=>{if(!L$(e))return!1;const t=vh(e,!1,!1);if(!Cu(t))return!1;switch(r.kind){case 218:case 262:return r.symbol===t.symbol;case 174:case 173:return oh(r)&&r.symbol===t.symbol;case 231:case 263:case 210:return t.parent&&Cu(t.parent)&&r.symbol===t.parent.symbol&&jb(t)===!!o;case 312:return 312===t.kind&&!uP(t)&&!j(e)}}))))).map((e=>Eue(e))),a=I(i,(e=>bC(e.node.parent)?e.node:void 0));return[{definition:{type:3,node:a||e},references:i}]}(e,t,n);if(108===e.kind)return function(e){let t=Th(e,!1);if(!t)return;let n=256;switch(t.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:n&=tE(t),t=t.parent;break;default:return}const r=Z(E(t.getSourceFile(),"super",t),(e=>{if(108!==e.kind)return;const r=Th(e,!1);return r&&jb(r)===!!n&&r.parent.symbol===t.symbol?Eue(e):void 0}));return[{definition:{type:0,symbol:t.symbol},references:r}]}(e);return}(s,p,f);if(e)return e}const y=u.getTypeChecker(),v=y.getSymbolAtLocation(RC(s)&&s.parent.name||s);if(!v){if(!m.implementations&&np(s)){if(EQ(s)){const e=u.getFileIncludeReasons(),t=null==(g=null==(h=u.getResolvedModuleFromModuleSpecifier(s))?void 0:h.resolvedModule)?void 0:g.resolvedFileName,r=t?u.getSourceFile(t):void 0;if(r)return[{definition:{type:4,node:s},references:n(r,e,u)||o}]}return function(e,t,n,r){const o=Z$(e,n),i=J(t,(t=>(r.throwIfCancellationRequested(),Z(E(t,e.text),(r=>{if(np(r)&&r.text===e.text){if(!o)return jR(r)&&!YE(r,t)?void 0:Eue(r,2);{const e=Z$(r,n);if(o!==n.getStringType()&&(o===e||function(e,t){if(SC(e.parent))return t.getPropertyOfType(t.getTypeAtLocation(e.parent.parent),e.text)}(r,n)))return Eue(r,2)}}})))));return[{definition:{type:4,node:e},references:i}]}(s,p,y,f)}return}if("export="===v.escapedName)return l(u,v.parent,!1,p,_);const b=i(v,u,p,f,m,_);if(b&&!(33554432&v.flags))return b;const S=r(s,v,y),T=S&&i(S,u,p,f,m,_);return a(u,b,d(v,s,p,_,y,f,m),T)},e.getAdjustedNode=t,e.getReferencesForFileName=function(e,t,r,i=new Set(r.map((e=>e.fileName)))){var a,s;const c=null==(a=t.getSourceFile(e))?void 0:a.symbol;if(c)return(null==(s=l(t,c,!1,r,i)[0])?void 0:s.references)||o;const d=t.getFileIncludeReasons(),u=t.getSourceFile(e);return u&&d&&n(u,d,t)||o},(f=p||(p={}))[f.None=0]="None",f[f.Constructor=1]="Constructor",f[f.Class=2]="Class";class _{constructor(e,t,n,r,o,i,a,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=n,this.checker=r,this.cancellationToken=o,this.searchMeaning=i,this.options=a,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=nQ(),this.markSeenReExportRHS=nQ(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,t){return this.importTracker||(this.importTracker=iue(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)}createSearch(e,t,n,r={}){const{text:o=Gv(wl(PE(t)||m(t)||t)),allSearchSymbols:i=[t]}=r,a=Ml(o),s=this.options.implementations&&e?function(e,t,n){const r=x$(e)?e.parent:void 0,o=r&&n.getTypeAtLocation(r.expression),i=Z(o&&(o.isUnionOrIntersection()?o.types:o.symbol===t.parent?void 0:[o]),(e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0));return 0===i.length?void 0:i}(e,t,this.checker):void 0;return{symbol:t,comingFrom:n,text:o,escapedText:a,parents:s,allSearchSymbols:i,includes:e=>F(i,e)}}referenceAdder(e){const t=Kz(e);let n=this.symbolIdToReferences[t];return n||(n=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:n})),(e,t)=>n.push(Eue(e,t))}addStringOrCommentReference(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})}markSearchedSymbols(e,t){const n=Hz(e),r=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new Set);let o=!1;for(const i of t)o=re(r,Kz(i))||o;return o}}function h(e,t,n,r){const{importSearches:o,singleReferences:i,indirectUsers:a}=r.getImportSearches(t,n);if(i.length){const e=r.referenceAdder(t);for(const t of i)g(t,r)&&e(t)}for(const[s,l]of o)R(s.getSourceFile(),r.createSearch(s,l,1),r);if(a.length){let o;switch(n.exportKind){case 0:o=r.createSearch(e,t,1);break;case 1:o=2===r.options.use?void 0:r.createSearch(e,t,1,{text:"default"})}if(o)for(const e of a)v(e,o,r)}}function g(e,t){return!!D(e,t)&&(2!==t.options.use||!!nC(e)&&!(id(e.parent)&&"default"===e.escapedText))}function y(e,t){if(e.declarations)for(const n of e.declarations){const r=n.getSourceFile();R(r,t.createSearch(n,e,0),t,t.includesSourceFile(r))}}function v(e,t,n){void 0!==T7(e).get(t.escapedText)&&R(e,t,n)}function b(e,t,n,r,o=n){const i=gl(e.parent,e.parent.parent)?Pe(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(i)for(const a of E(n,i.name,o)){if(!nC(a)||a===e||a.escapedText!==e.escapedText)continue;const n=t.getSymbolAtLocation(a);if(n===i||t.getShorthandAssignmentValueSymbol(a.parent)===i||MN(a.parent)&&k(a,n,a.parent,t)===i){const e=r(a);if(e)return e}}}function E(e,t,n=e){return Z(S(e,t,n),(t=>{const n=aY(e,t);return n===e?void 0:n}))}function S(e,t,n=e){const r=[];if(!t||!t.length)return r;const o=e.text,i=o.length,a=t.length;let s=o.indexOf(t,n.pos);for(;s>=0&&!(s>n.end);){const e=s+a;0!==s&&Ws(o.charCodeAt(s-1),99)||e!==i&&Ws(o.charCodeAt(e),99)||r.push(s),s=o.indexOf(t,s+a+1)}return r}function A(e,t){const n=e.getSourceFile(),r=t.text,o=Z(E(n,r,e),(e=>e===t||v$(e)&&g$(e,r)===t?Eue(e):void 0));return[{definition:{type:1,node:t},references:o}]}function R(e,t,n,r=!0){return n.cancellationToken.throwIfCancellationRequested(),C(e,e,t,n,r)}function C(e,t,n,r,o){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(const i of S(t,n.text,e))N(t,i,n,r,o)}function D(e,t){return!!(r$(e)&t.searchMeaning)}function N(e,t,n,r,o){const i=aY(e,t);if(!function(e,t){switch(e.kind){case 81:if(lM(e.parent))return!0;case 80:return e.text.length===t.length;case 15:case 11:{const n=e;return(C$(n)||I$(e)||D$(e)||dD(e.parent)&&Sg(e.parent)&&e.parent.arguments[1]===e)&&n.text.length===t.length}case 9:return C$(e)&&e.text.length===t.length;case 90:return 7===t.length;default:return!1}}(i,n.text))return void(!r.options.implementations&&(r.options.findInStrings&&gY(e,t)||r.options.findInComments&&jY(e,t))&&r.addStringOrCommentReference(e.fileName,dl(t,n.text.length)));if(!D(i,r))return;let a=r.checker.getSymbolAtLocation(i);if(!a)return;const s=i.parent;if(RN(s)&&s.propertyName===i)return;if(MN(s))return In.assert(80===i.kind),void M(i,a,s,n,r,o);if(qc(s)&&s.isNameFirst&&s.typeExpression&&EM(s.typeExpression.type)&&s.typeExpression.type.jsDocPropertyTags&&T(s.typeExpression.type.jsDocPropertyTags))return void function(e,t,n,r){const o=r.referenceAdder(n.symbol);w(t,n.symbol,r),x(e,(e=>{gC(e.name)&&o(e.name.left)}))}(s.typeExpression.type.jsDocPropertyTags,i,n,r);const l=function(e,t,n,r){const{checker:o}=r;return U(t,n,o,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,((n,r,o,i)=>(o&&H(t)!==H(o)&&(o=void 0),e.includes(o||r||n)?{symbol:!r||6&mS(n)?n:r,kind:i}:void 0)),(t=>!(e.parents&&!e.parents.some((e=>B(t.parent,e,r.inheritsFromCache,o))))))}(n,a,i,r);if(l){switch(r.specialSearchKind){case 0:o&&w(i,l,r);break;case 1:!function(e,t,n,r){a$(e)&&w(e,n.symbol,r);const o=()=>r.referenceAdder(n.symbol);if(Md(e.parent))In.assert(90===e.kind||e.parent.name===e),function(e,t,n){const r=O(e);if(r&&r.declarations)for(const o of r.declarations){const e=J$(o,137,t);In.assert(176===o.kind&&!!e),n(e)}e.exports&&e.exports.forEach((e=>{const t=e.valueDeclaration;if(t&&174===t.kind){const e=t.body;e&&X(e,110,(e=>{a$(e)&&n(e)}))}}))}(n.symbol,t,o());else{const t=_E(_$(e).parent);t&&(function(e,t){const n=O(e.symbol);if(!n||!n.declarations)return;for(const r of n.declarations){In.assert(176===r.kind);const e=r.body;e&&X(e,108,(e=>{i$(e)&&t(e)}))}}(t,o()),function(e,t){if(function(e){return!!O(e.symbol)}(e))return;const n=e.symbol,r=t.createSearch(void 0,n,void 0);u(n,t,r)}(t,r))}}(i,e,n,r);break;case 2:!function(e,t,n){w(e,t.symbol,n);const r=e.parent;if(2===n.options.use||!Md(r))return;In.assert(r.name===e);const o=n.referenceAdder(t.symbol);for(const i of r.members)wd(i)&&jb(i)&&i.body&&i.body.forEachChild((function e(t){110===t.kind?o(t):Td(t)||Md(t)||t.forEachChild(e)}))}(i,n,r);break;default:In.assertNever(r.specialSearchKind)}$h(i)&&iD(i.parent)&&rg(i.parent.parent.parent)&&(a=i.parent.symbol,!a)||function(e,t,n,r){const o=due(e,t,r.checker,1===n.comingFrom);if(!o)return;const{symbol:i}=o;0===o.kind?$(r.options)||y(i,r):h(e,i,o.exportInfo,r)}(i,a,n,r)}else!function({flags:e,valueDeclaration:t},n,r){const o=r.checker.getShorthandAssignmentValueSymbol(t),i=t&&jl(t);33554432&e||!i||!n.includes(o)||w(i,o,r)}(a,n,r)}function M(e,t,n,r,o,i,a){In.assert(!a||!!o.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:s,propertyName:l,name:c}=n,d=s.parent,u=k(e,t,n,o.checker);if(a||r.includes(u)){if(l?e===l?(d.moduleSpecifier||p(),i&&2!==o.options.use&&o.markSeenReExportRHS(c)&&w(c,In.checkDefined(n.symbol),o)):o.markSeenReExportRHS(e)&&p():2===o.options.use&&"default"===c.escapedText||p(),!$(o.options)||a){const t="default"===e.escapedText||"default"===n.name.escapedText?1:0,r=In.checkDefined(n.symbol),i=uue(r,t,o.checker);i&&h(e,r,i,o)}if(1!==r.comingFrom&&d.moduleSpecifier&&!l&&!$(o.options)){const e=o.checker.getExportSpecifierLocalTargetSymbol(n);e&&y(e,o)}}function p(){i&&w(e,u,o)}}function k(e,t,n,r){return function(e,t){const{parent:n,propertyName:r,name:o}=t;return In.assert(r===e||o===e),r?r===e:!n.parent.moduleSpecifier}(e,n)&&r.getExportSpecifierLocalTargetSymbol(n)||t}function w(e,t,n){const{kind:r,symbol:o}="kind"in t?t:{kind:void 0,symbol:t};if(2===n.options.use&&90===e.kind)return;const i=n.referenceAdder(o);n.options.implementations?function(e,t,n){if(Iy(e)&&(r=e.parent,33554432&r.flags?!cN(r)&&!dN(r):X_(r)?Yu(r):Ad(r)?r.body:Md(r)||Ru(r)))return void t(e);var r;if(80!==e.kind)return;304===e.parent.kind&&q(e,n.checker,t);const o=W(e);if(o)return void t(o);const i=Cl(e,(e=>!gC(e.parent)&&!Gd(e.parent)&&!Wd(e.parent))),a=i.parent;if($u(a)&&a.type===i&&n.markSeenContainingTypeReference(a))if(Yu(a))s(a.initializer);else if(Td(a)&&a.body){const e=a.body;241===e.kind?H_(e,(e=>{e.expression&&s(e.expression)})):s(e)}else pu(a)&&s(a.expression);function s(e){z(e)&&t(e)}}(e,i,n):i(e,r)}function O(e){return e.members&&e.members.get("__constructor")}function W(e){return nC(e)||lD(e)?W(e.parent):ND(e)?yt(e.parent.parent,_n(Md,cN)):void 0}function z(e){switch(e.kind){case 217:return z(e.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function B(e,t,n,r){if(e===t)return!0;const o=Kz(e)+","+Kz(t),i=n.get(o);if(void 0!==i)return i;n.set(o,!1);const a=!!e.declarations&&e.declarations.some((e=>zy(e).some((e=>{const o=r.getTypeAtLocation(e);return!!o&&!!o.symbol&&B(o.symbol,t,n,r)}))));return n.set(o,a),a}function j(e){return 80===e.kind&&169===e.parent.kind&&e.parent.name===e}function V(e,t,n,r,o,i){const a=[];return U(e,t,n,r,!(r&&o),((t,n,r)=>{r&&H(e)!==H(r)&&(r=void 0),a.push(r||n||t)}),(()=>!i)),a}function U(e,t,n,o,i,a,s){const l=x7(t);if(l){const e=n.getShorthandAssignmentValueSymbol(t.parent);if(e&&o)return a(e,void 0,void 0,3);const r=n.getContextualType(l.parent),i=r&&I(A7(l,n,r,!0),(e=>p(e,4)));if(i)return i;const s=function(e,t){return BY(e.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(e):void 0}(t,n),c=s&&a(s,void 0,void 0,4);if(c)return c;const d=e&&a(e,void 0,void 0,3);if(d)return d}const c=r(t,e,n);if(c){const e=a(c,void 0,void 0,1);if(e)return e}const d=p(e);if(d)return d;if(e.valueDeclaration&&gl(e.valueDeclaration,e.valueDeclaration.parent)){const t=n.getSymbolsOfParameterPropertyDeclaration(vt(e.valueDeclaration,bC),e.name);return In.assert(2===t.length&&!!(1&t[0].flags)&&!!(4&t[1].flags)),p(1&e.flags?t[1]:t[0])}const u=Df(e,281);if(!o||u&&!u.propertyName){const e=u&&n.getExportSpecifierLocalTargetSymbol(u);if(e){const t=a(e,void 0,void 0,1);if(t)return t}}if(!o){let r;return r=i?SQ(t.parent)?TQ(n,t.parent):void 0:f(e,n),r&&p(r,4)}In.assert(o);if(i){const t=f(e,n);return t&&p(t,4)}function p(e,t){return I(n.getRootSymbols(e),(r=>a(e,r,void 0,t)||(r.parent&&96&r.parent.flags&&s(r)?function(e,t,n,r){const o=new Map;return i(e);function i(e){if(96&e.flags&&LS(o,Kz(e)))return I(e.declarations,(e=>I(zy(e),(e=>{const o=n.getTypeAtLocation(e),a=o&&o.symbol&&n.getPropertyOfType(o,t);return o&&a&&(I(n.getRootSymbols(a),r)||i(o.symbol))}))))}}(r.parent,r.name,n,(n=>a(e,r,n,t))):void 0)))}function f(e,t){const n=Df(e,208);if(n&&SQ(n))return TQ(t,n)}}function H(e){if(!e.valueDeclaration)return!1;return!!(256&Zb(e.valueDeclaration))}function K(e,t){let n=r$(e);const{declarations:r}=t;if(r){let e;do{e=n;for(const e of r){const t=n$(e);t&n&&(n|=t)}}while(n!==e)}return n}function q(e,t,n){const r=t.getSymbolAtLocation(e),o=t.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(o)for(const i of o.getDeclarations())1&n$(i)&&n(i)}function X(e,t,n){oP(e,(e=>{e.kind===t&&n(e),X(e,t,n)}))}function $(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,n,r,o,i,a,s){const l=iue(e,new Set(e.map((e=>e.fileName))),t,n),{importSearches:c,indirectUsers:d,singleReferences:u}=l(r,{exportKind:a?1:0,exportingModuleSymbol:o},!1);for(const[p]of c)s(p);for(const p of u)nC(p)&&eD(p.parent)&&s(p);for(const p of d)for(const e of E(p,a?"default":i)){const n=t.getSymbolAtLocation(e),o=se(null==n?void 0:n.declarations,(e=>!!yt(e,CN)));!nC(e)||id(e.parent)||n!==r&&!o||s(e)}},e.isSymbolReferencedInFile=function(e,t,n,r=n){return b(e,t,n,(()=>!0),r)||!1},e.eachSymbolReferenceInFile=b,e.getTopMostDeclarationNamesInFile=function(e,t){return G(E(t,e),(e=>!!Ry(e))).reduce(((e,t)=>{const n=function(e){let t=0;for(;e;)e=N$(e),t++;return t}(t);return se(e.declarationNames)&&n!==e.depth?n<e.depth&&(e.declarationNames=[t],e.depth=n):(e.declarationNames.push(t),e.depth=n),e}),{depth:1/0,declarationNames:[]}).declarationNames},e.someSignatureUsage=function(e,t,n,r){if(!e.name||!nC(e.name))return!1;const o=In.checkDefined(n.getSymbolAtLocation(e.name));for(const i of t)for(const t of E(i,o.name)){if(!nC(t)||t===e.name||t.escapedText!==e.name.escapedText)continue;const i=_$(t),a=dD(i.parent)&&i.parent.expression===i?i.parent:void 0,s=n.getSymbolAtLocation(t);if(s&&n.getRootSymbols(s).some((e=>e===o))&&r(t,a))return!0}return!1},e.getIntersectingMeaningFromDeclarations=K,e.getReferenceEntriesForShorthandPropertyAssignment=q})(vue||(vue={}))}}),Hue={};E(Hue,{Core:()=>vue,DefinitionKind:()=>hue,EntryKind:()=>gue,ExportKind:()=>nue,FindReferencesUse:()=>yue,ImportExport:()=>rue,createImportTracker:()=>iue,findModuleReferences:()=>sue,findReferenceOrRenameEntries:()=>Due,findReferencedSymbols:()=>Iue,getContextNode:()=>xue,getExportInfo:()=>uue,getImplementationsAtPosition:()=>Rue,getImportOrExportSymbol:()=>due,getReferenceEntriesForNode:()=>Nue,getTextSpanOfEntry:()=>Gue,isContextWithStartAndEndNode:()=>Sue,isDeclarationOfSymbol:()=>Vue,isWriteAccessForReference:()=>jue,nodeEntry:()=>Eue,toContextSpan:()=>Aue,toHighlightSpan:()=>zue,toReferenceEntry:()=>wue,toRenameLocation:()=>Pue});var Kue,que=b({"src/services/_namespaces/ts.FindAllReferences.ts"(){bue(),Uue()}});function Jue(e,t,n,r,i){var a;const s=$ue(t,n,e),l=s&&[(c=s.reference.fileName,d=s.fileName,u=s.unverified,{fileName:d,textSpan:ul(0,0),kind:"script",name:c,containerName:void 0,containerKind:void 0,unverified:u})]||o;var c,d,u;if(null==s?void 0:s.file)return l;const p=aY(t,n);if(p===t)return;const{parent:f}=p,m=e.getTypeChecker();if(164===p.kind||nC(p)&&MM(f)&&f.tagName===p)return function(e,t){const n=Cl(t,Nd);if(!n||!n.name)return;const r=Cl(n,Md);if(!r)return;const o=Oy(r);if(!o)return;const i=Ty(o.expression),a=CD(i)?i.symbol:e.getSymbolAtLocation(i);if(!a)return;const s=Ll(l_(n.name)),l=Vb(n)?e.getPropertyOfType(e.getTypeOfSymbol(a),s):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(a),s);if(!l)return;return rpe(e,l,t)}(m,p)||o;if(v$(p)){const e=g$(p.parent,p.text);return e?[ipe(m,e,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:const e=Cl(p.parent,(e=>IC(e)?"quit":Ad(e)));return e?[lpe(m,e)]:void 0;case 90:if(!XN(p.parent))break;case 84:const n=Cl(p.parent,eN);if(n)return[ape(n,t)]}if(135===p.kind){const e=Cl(p,(e=>Ad(e)));return e&&se(e.modifiers,(e=>134===e.kind))?[lpe(m,e)]:void 0}if(127===p.kind){const e=Cl(p,(e=>Ad(e)));return e&&e.asteriskToken?[lpe(m,e)]:void 0}if(dC(p)&&IC(p.parent)){const e=p.parent.parent,{symbol:t,failedAliasResolution:n}=npe(e,m,i),r=G(e.members,IC),o=t?m.symbolToString(t,e):"",a=p.getSourceFile();return U(r,(e=>{let{pos:t}=JE(e);return t=Ts(a.text,t),ipe(m,e,"constructor","static {}",o,!1,n,{start:t,length:6})}))}let{symbol:_,failedAliasResolution:h}=npe(p,m,i),g=p;if(r&&h){const e=x([p,...(null==_?void 0:_.declarations)||o],(e=>Cl(e,Ym))),t=e&&Fg(e);t&&(({symbol:_,failedAliasResolution:h}=npe(t,m,i)),g=t)}if(!_&&EQ(g)){const t=null==(a=e.getResolvedModuleFromModuleSpecifier(g))?void 0:a.resolvedModule;if(t)return[{name:g.text,fileName:t.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:dl(0,0),failedAliasResolution:h,isAmbient:_P(t.resolvedFileName),unverified:g!==p}]}if(!_)return ce(l,function(e,t){return Z(t.getIndexInfosAtLocation(e),(e=>e.declaration&&lpe(t,e.declaration)))}(p,m));if(r&&M(_.declarations,(e=>e.getSourceFile().fileName===t.fileName)))return;const y=function(e,t){const n=function(e){const t=Cl(e,(e=>!x$(e))),n=null==t?void 0:t.parent;return n&&nu(n)&&Mh(n)===t?n:void 0}(t),r=n&&e.getResolvedSignature(n);return yt(r&&r.declaration,(e=>Td(e)&&!wC(e)))}(m,p);if(y&&(!ju(p.parent)||!function(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}(y))){const e=lpe(m,y,h);if(m.getRootSymbols(_).some((e=>function(e,t){var n;return e===t.symbol||e===t.symbol.parent||gE(t.parent)||!nu(t.parent)&&e===(null==(n=yt(t.parent,Cu))?void 0:n.symbol)}(e,y))))return[e];{const t=rpe(m,_,p,h,y)||o;return 108===p.kind?[e,...t]:[...t,e]}}if(304===p.parent.kind){const e=m.getShorthandAssignmentValueSymbol(_.valueDeclaration);return ce((null==e?void 0:e.declarations)?e.declarations.map((t=>ope(t,m,e,p,!1,h))):o,Xue(m,p))}if(Ed(p)&&iD(f)&&rD(f.parent)&&p===(f.propertyName||f.name)){const e=aQ(p),t=m.getTypeAtLocation(f.parent);return void 0===e?o:J(t.isUnion()?t.types:[t],(t=>{const n=t.getProperty(e);return n&&rpe(m,n,p)}))}const v=Xue(m,p);return ce(l,v.length?v:rpe(m,_,p,h))}function Xue(e,t){const n=x7(t);if(n){const r=n&&e.getContextualType(n.parent);if(r)return J(A7(n,e,r,!1),(n=>rpe(e,n,t)))}return o}function $ue(e,t,n){var r,o;const i=cpe(e.referencedFiles,t);if(i){const t=n.getSourceFileFromReference(e,i);return t&&{reference:i,fileName:t.fileName,file:t,unverified:!1}}const a=cpe(e.typeReferenceDirectives,t);if(a){const t=null==(r=n.getResolvedTypeReferenceDirectives().get(a.fileName,a.resolutionMode||e.impliedNodeFormat))?void 0:r.resolvedTypeReferenceDirective,o=t&&n.getSourceFile(t.resolvedFileName);return o&&{reference:a,fileName:o.fileName,file:o,unverified:!1}}const s=cpe(e.libReferenceDirectives,t);if(s){const e=n.getLibFileFromReference(s);return e&&{reference:s,fileName:e.fileName,file:e,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const r=sY(e,t);let i;if(EQ(r)&&Xs(r.text)&&(i=n.getResolvedModuleFromModuleSpecifier(r))){const t=null==(o=i.resolvedModule)?void 0:o.resolvedFileName,a=t||pa(ra(e.fileName),r.text);return{file:n.getSourceFile(a),fileName:a,reference:{pos:r.getStart(),end:r.getEnd(),fileName:r.text},unverified:!t}}}}function Yue(e,t){if(!t.aliasSymbol)return!1;const n=t.aliasSymbol.name;if(!Kue.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.aliasSymbol}function Que(e,t,n,r){var o,i;if(4&RS(t)&&function(e,t){const n=t.symbol.name;if(!Kue.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.target.symbol}(e,t))return epe(e.getTypeArguments(t)[0],e,n,r);if(Yue(e,t)&&t.aliasTypeArguments)return epe(t.aliasTypeArguments[0],e,n,r);if(32&RS(t)&&t.target&&Yue(e,t.target)){const a=null==(i=null==(o=t.aliasSymbol)?void 0:o.declarations)?void 0:i[0];if(a&&dN(a)&&PC(a.type)&&a.type.typeArguments)return epe(e.getTypeAtLocation(a.type.typeArguments[0]),e,n,r)}return[]}function Zue(e,t,n){const r=aY(t,n);if(r===t)return;if(k_(r.parent)&&r.parent.name===r)return epe(e.getTypeAtLocation(r.parent),e,r.parent,!1);const{symbol:o,failedAliasResolution:i}=npe(r,e,!1);if(!o)return;const a=e.getTypeOfSymbolAtLocation(o,r),s=function(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&iN(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const e=t.getCallSignatures();if(1===e.length)return n.getReturnTypeOfSignature(Pe(e))}return}(o,a,e),l=s&&epe(s,e,r,i),[c,d]=l&&0!==l.length?[s,l]:[a,epe(a,e,r,i)];return d.length?[...Que(e,c,r,i),...d]:!(111551&o.flags)&&788968&o.flags?rpe(e,hS(o,e),r,i):void 0}function epe(e,t,n,r){return J(!e.isUnion()||32&e.flags?[e]:e.types,(e=>e.symbol&&rpe(t,e.symbol,n,r)))}function tpe(e,t,n){const r=Jue(e,t,n);if(!r||0===r.length)return;const o=cpe(t.referencedFiles,n)||cpe(t.typeReferenceDirectives,n)||cpe(t.libReferenceDirectives,n);if(o)return{definitions:r,textSpan:JY(o)};const i=aY(t,n);return{definitions:r,textSpan:dl(i.getStart(),i.getWidth())}}function npe(e,t,n){const r=t.getSymbolAtLocation(e);let o=!1;if((null==r?void 0:r.declarations)&&2097152&r.flags&&!n&&function(e,t){if(80!==e.kind)return!1;if(e.parent===t)return!0;if(274===t.kind)return!1;return!0}(e,r.declarations[0])){const e=t.getAliasedSymbol(r);if(e.declarations)return{symbol:e};o=!0}return{symbol:r,failedAliasResolution:o}}function rpe(e,t,n,r,o){const i=G(t.declarations,(e=>e!==o)),a=G(i,(e=>!function(e){if(!cg(e))return!1;const t=Cl(e,(e=>!!gE(e)||!cg(e)&&"quit"));return!!t&&5===Eg(t)}(e))),s=se(a)?a:i;return function(){if(32&t.flags&&!(19&t.flags)&&(a$(n)||137===n.kind)){return l((L(i,Md)||In.fail("Expected declaration to have at least one class-like declaration")).members,!0)}}()||(s$(n)||R$(n)?l(i,!1):void 0)||U(s,(o=>ope(o,e,t,n,!1,r)));function l(o,i){if(!o)return;const a=o.filter(i?RC:Td),s=a.filter((e=>!!e.body));return a.length?0!==s.length?s.map((r=>ope(r,e,t,n))):[ope(Fe(a),e,t,n,!1,r)]:void 0}}function ope(e,t,n,r,o,i){const a=t.symbolToString(n),s=wme.getSymbolKind(t,n,r),l=n.parent?t.symbolToString(n.parent,r):"";return ipe(t,e,s,a,l,o,i)}function ipe(e,t,n,r,o,i,a,s){const l=t.getSourceFile();if(!s){s=HY(jl(t)||t,l)}return{fileName:l.fileName,textSpan:s,kind:n,name:r,containerKind:void 0,containerName:o,...Hue.toContextSpan(s,l,Hue.getContextNode(t)),isLocal:!spe(e,t),isAmbient:!!(33554432&t.flags),unverified:i,failedAliasResolution:a}}function ape(e,t){const n=Hue.getContextNode(e),r=HY(Sue(n)?n.start:n,t);return{fileName:t.fileName,textSpan:r,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Hue.toContextSpan(r,t,n),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function spe(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Yu(t.parent)&&t.parent.initializer===t)return spe(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(Bb(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return spe(e,t.parent);default:return!1}}function lpe(e,t,n){return ope(t,e,t.symbol,t,!1,n)}function cpe(e,t){return L(e,(e=>tl(e,t)))}var dpe=b({"src/services/goToDefinition.ts"(){Tge(),que(),Kue=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),upe={};E(upe,{createDefinitionInfo:()=>ope,findReferenceInPosition:()=>cpe,getDefinitionAndBoundSpan:()=>tpe,getDefinitionAtPosition:()=>Jue,getReferenceAtPosition:()=>$ue,getTypeDefinitionAtPosition:()=>Zue});var ppe,fpe=b({"src/services/_namespaces/ts.GoToDefinition.ts"(){dpe()}});function mpe(e){return"literals"===e.includeInlayParameterNameHints}function _pe(e){return!0===e.interactiveInlayHints}function hpe(e){const{file:t,program:n,span:r,cancellationToken:o,preferences:i}=e,a=t.text,s=n.getCompilerOptions(),l=gQ(t,i),c=n.getTypeChecker(),d=[];return function e(n){if(!n||0===n.getFullWidth())return;switch(n.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:o.throwIfCancellationRequested()}if(!al(r,n.pos,n.getFullWidth()))return;if(Gd(n)&&!ND(n))return;i.includeInlayVariableTypeHints&&iN(n)||i.includeInlayPropertyDeclarationTypeHints&&TC(n)?m(n):i.includeInlayEnumMemberValueHints&&tM(n)?function(e){if(e.initializer)return;const t=c.getConstantValue(e);void 0!==t&&(n=t.toString(),r=e.end,d.push({text:`= ${n}`,position:r,kind:"Enum",whitespaceBefore:!0}));var n,r}(n):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(i)&&(dD(n)||uD(n))?function(e){const t=e.arguments;if(!t||!t.length)return;const n=[],r=c.getResolvedSignatureForSignatureHelp(e,n);if(!r||!n.length)return;let o=0;for(const a of t){const e=Ty(a);if(mpe(i)&&!g(e)){o++;continue}let t=0;if(RD(e)){const n=c.getTypeAtLocation(e.expression);if(c.isTupleType(n)){const{elementFlags:e,fixedLength:r}=n.target;if(0===r)continue;const o=P(e,(e=>!(1&e)));(o<0?r:o)>0&&(t=o<0?r:o)}}const n=c.getParameterIdentifierInfoAtPosition(r,o);if(o+=t||1,n){const{parameter:t,parameterName:r,isRestParameter:o}=n;if(!(i.includeInlayParameterNameHintsWhenArgumentMatchesName||!_(e,r))&&!o)continue;const s=Ll(r);if(h(e,s))continue;u(s,t,a.getStart(),o)}}}(n):(i.includeInlayFunctionParameterTypeHints&&Ad(n)&&Yx(n)&&function(e){const t=c.getSignatureFromDeclaration(e);if(!t)return;for(let n=0;n<e.parameters.length&&n<t.parameters.length;++n){const r=e.parameters[n];if(!b(r))continue;if(Ab(r))continue;const o=y(t.parameters[n]);o&&p(o,r.questionToken?r.questionToken.end:r.name.end)}}(n),i.includeInlayFunctionLikeReturnTypeHints&&function(e){return hD(e)||_D(e)||sN(e)||AC(e)||CC(e)}(n)&&function(e){if(hD(e)&&!J$(e,21,t))return;if(Rb(e)||!e.body)return;const n=c.getSignatureFromDeclaration(e);if(!n)return;const r=c.getReturnTypeOfSignature(n);if(f(r))return;const o=v(r);o&&p(o,function(e){const n=J$(e,22,t);if(n)return n.end;return e.parameters.end}(e))}(n));return oP(n,e)}(t),d;function u(e,t,n,r){let o,a=`${r?"...":""}${e}`;_pe(i)?(o=[E(a,t),{text:":"}],a=""):a+=":",d.push({text:a,position:n,kind:"Parameter",whitespaceAfter:!0,displayParts:o})}function p(e,t){d.push({text:"string"===typeof e?`: ${e}`:"",displayParts:"string"===typeof e?void 0:[{text:": "},...e],position:t,kind:"Type",whitespaceBefore:!0})}function f(e){return e.symbol&&1536&e.symbol.flags}function m(e){if(!e.initializer||Vd(e.name)||iN(e)&&!b(e))return;if(Ab(e))return;const t=c.getTypeAtLocation(e);if(f(t))return;const n=v(t);if(n){const t="string"===typeof n?n:n.map((e=>e.text)).join("");if(!1===i.includeInlayVariableTypeHintsWhenTypeMatchesName&&Pt(e.name.getText(),t))return;p(n,e.name.end)}}function _(e,t){return nC(e)?e.text===t:!!lD(e)&&e.name.text===t}function h(e,n){if(!zs(n,s.target,_T(t.scriptKind)))return!1;const r=Ps(a,e.pos);if(!(null==r?void 0:r.length))return!1;const o=ppe(n);return se(r,(e=>o.test(a.substring(e.pos,e.end))))}function g(e){switch(e.kind){case 224:{const t=e.operand;return ed(t)||nC(t)&&Qx(t.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const t=e.escapedText;return function(e){return"undefined"===e}(t)||Qx(t)}}return ed(e)}function y(e){const t=e.valueDeclaration;if(!t||!bC(t))return;const n=c.getTypeOfSymbolAtLocation(e,t);return f(n)?void 0:v(n)}function v(e){if(!_pe(i))return function(e){const n=hV();return Gf((r=>{const o=c.typeToTypeNode(e,void 0,71286784);In.assertIsDefined(o,"should always get typenode"),n.writeNode(4,o,t,r)}))}(e);const n=c.typeToTypeNode(e,void 0,71286784);In.assertIsDefined(n,"should always get typenode");const r=[];return o(n),r;function o(e){var t,n;if(!e)return;const i=as(e.kind);if(i)r.push({text:i});else if(ed(e))r.push({text:d(e)});else switch(e.kind){case 80:In.assertNode(e,nC);const i=kl(e),l=e.symbol&&e.symbol.declarations&&e.symbol.declarations.length&&jl(e.symbol.declarations[0]);l?r.push(E(i,l)):r.push({text:i});break;case 166:In.assertNode(e,gC),o(e.left),r.push({text:"."}),o(e.right);break;case 182:In.assertNode(e,kC),e.assertsModifier&&r.push({text:"asserts "}),o(e.parameterName),e.type&&(r.push({text:" is "}),o(e.type));break;case 183:In.assertNode(e,PC),o(e.typeName),e.typeArguments&&(r.push({text:"<"}),s(e.typeArguments,", "),r.push({text:">"}));break;case 168:In.assertNode(e,vC),e.modifiers&&s(e.modifiers," "),o(e.name),e.constraint&&(r.push({text:" extends "}),o(e.constraint)),e.default&&(r.push({text:" = "}),o(e.default));break;case 169:In.assertNode(e,bC),e.modifiers&&s(e.modifiers," "),e.dotDotDotToken&&r.push({text:"..."}),o(e.name),e.questionToken&&r.push({text:"?"}),e.type&&(r.push({text:": "}),o(e.type));break;case 185:In.assertNode(e,OC),r.push({text:"new "}),a(e),r.push({text:" => "}),o(e.type);break;case 186:In.assertNode(e,FC),r.push({text:"typeof "}),o(e.exprName),e.typeArguments&&(r.push({text:"<"}),s(e.typeArguments,", "),r.push({text:">"}));break;case 187:In.assertNode(e,WC),r.push({text:"{"}),e.members.length&&(r.push({text:" "}),s(e.members,"; "),r.push({text:" "})),r.push({text:"}"});break;case 188:In.assertNode(e,zC),o(e.elementType),r.push({text:"[]"});break;case 189:In.assertNode(e,BC),r.push({text:"["}),s(e.elements,", "),r.push({text:"]"});break;case 202:In.assertNode(e,GC),e.dotDotDotToken&&r.push({text:"..."}),o(e.name),e.questionToken&&r.push({text:"?"}),r.push({text:": "}),o(e.type);break;case 190:In.assertNode(e,jC),o(e.type),r.push({text:"?"});break;case 191:In.assertNode(e,VC),r.push({text:"..."}),o(e.type);break;case 192:In.assertNode(e,UC),s(e.types," | ");break;case 193:In.assertNode(e,HC),s(e.types," & ");break;case 194:In.assertNode(e,KC),o(e.checkType),r.push({text:" extends "}),o(e.extendsType),r.push({text:" ? "}),o(e.trueType),r.push({text:" : "}),o(e.falseType);break;case 195:In.assertNode(e,qC),r.push({text:"infer "}),o(e.typeParameter);break;case 196:In.assertNode(e,JC),r.push({text:"("}),o(e.type),r.push({text:")"});break;case 198:In.assertNode(e,$C),r.push({text:`${as(e.operator)} `}),o(e.type);break;case 199:In.assertNode(e,YC),o(e.objectType),r.push({text:"["}),o(e.indexType),r.push({text:"]"});break;case 200:In.assertNode(e,QC),r.push({text:"{ "}),e.readonlyToken&&(40===e.readonlyToken.kind?r.push({text:"+"}):41===e.readonlyToken.kind&&r.push({text:"-"}),r.push({text:"readonly "})),r.push({text:"["}),o(e.typeParameter),e.nameType&&(r.push({text:" as "}),o(e.nameType)),r.push({text:"]"}),e.questionToken&&(40===e.questionToken.kind?r.push({text:"+"}):41===e.questionToken.kind&&r.push({text:"-"}),r.push({text:"?"})),r.push({text:": "}),e.type&&o(e.type),r.push({text:"; }"});break;case 201:In.assertNode(e,ZC),o(e.literal);break;case 184:In.assertNode(e,wC),a(e),r.push({text:" => "}),o(e.type);break;case 205:In.assertNode(e,eD),e.isTypeOf&&r.push({text:"typeof "}),r.push({text:"import("}),o(e.argument),e.assertions&&(r.push({text:", { assert: "}),s(e.assertions.assertClause.elements,", "),r.push({text:" }"})),r.push({text:")"}),e.qualifier&&(r.push({text:"."}),o(e.qualifier)),e.typeArguments&&(r.push({text:"<"}),s(e.typeArguments,", "),r.push({text:">"}));break;case 171:In.assertNode(e,SC),(null==(t=e.modifiers)?void 0:t.length)&&(s(e.modifiers," "),r.push({text:" "})),o(e.name),e.questionToken&&r.push({text:"?"}),e.type&&(r.push({text:": "}),o(e.type));break;case 181:In.assertNode(e,LC),r.push({text:"["}),s(e.parameters,", "),r.push({text:"]"}),e.type&&(r.push({text:": "}),o(e.type));break;case 173:In.assertNode(e,xC),(null==(n=e.modifiers)?void 0:n.length)&&(s(e.modifiers," "),r.push({text:" "})),o(e.name),e.questionToken&&r.push({text:"?"}),a(e),e.type&&(r.push({text:": "}),o(e.type));break;case 179:In.assertNode(e,NC),a(e),e.type&&(r.push({text:": "}),o(e.type));break;case 207:In.assertNode(e,oD),r.push({text:"["}),s(e.elements,", "),r.push({text:"]"});break;case 206:In.assertNode(e,rD),r.push({text:"{"}),e.elements.length&&(r.push({text:" "}),s(e.elements,", "),r.push({text:" "})),r.push({text:"}"});break;case 208:In.assertNode(e,iD),o(e.name);break;case 224:In.assertNode(e,ED),r.push({text:as(e.operator)}),o(e.operand);break;case 203:In.assertNode(e,nD),o(e.head),e.templateSpans.forEach(o);break;case 16:In.assertNode(e,VR),r.push({text:d(e)});break;case 204:In.assertNode(e,tD),o(e.type),o(e.literal);break;case 17:In.assertNode(e,UR),r.push({text:d(e)});break;case 18:In.assertNode(e,HR),r.push({text:d(e)});break;case 197:In.assertNode(e,XC),r.push({text:"this"});break;default:In.failBadSyntaxKind(e)}}function a(e){e.typeParameters&&(r.push({text:"<"}),s(e.typeParameters,", "),r.push({text:">"})),r.push({text:"("}),s(e.parameters,", "),r.push({text:")"})}function s(e,t){e.forEach(((e,n)=>{n>0&&r.push({text:t}),o(e)}))}function d(e){switch(e.kind){case 11:return 0===l?`'${Fv(e.text,39)}'`:`"${Fv(e.text,34)}"`;case 16:case 17:case 18:{const t=e.rawText??Lv(Fv(e.text,96));switch(e.kind){case 16:return"`"+t+"${";case 17:return"}"+t+"${";case 18:return"}"+t+"`"}}}return e.text}}function b(e){if((vv(e)||iN(e)&&D_(e))&&e.initializer){const t=Ty(e.initializer);return!(g(t)||uD(t)||sD(t)||pu(t))}return!0}function E(e,t){const n=t.getSourceFile();return{text:e,span:HY(t,n),file:n.fileName}}}var gpe=b({"src/services/inlayHints.ts"(){Tge(),ppe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),ype={};E(ype,{provideInlayHints:()=>hpe});var vpe,bpe,Epe,Spe,Tpe=b({"src/services/_namespaces/ts.InlayHints.ts"(){gpe()}});function xpe(e,t){const n=[];return LQ(e,(e=>{for(const r of function(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(LM(e.parent))return[e.parent.parent];default:return ey(e)}}(e)){const o=bM(r)&&r.tags&&L(r.tags,(e=>334===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText)));if(void 0===r.comment&&!o||bM(r)&&353!==e.kind&&345!==e.kind&&r.tags&&r.tags.some((e=>353===e.kind||345===e.kind))&&!r.tags.some((e=>348===e.kind||349===e.kind)))continue;let i=r.comment?Dpe(r.comment,t):[];o&&o.comment&&(i=i.concat(Dpe(o.comment,t))),F(n,i,Ape)||n.push(i)}})),q(N(n,[tZ()]))}function Ape(e,t){return W(e,t,((e,t)=>e.kind===t.kind&&e.text===t.text))}function Ipe(e,t){const n=[];return LQ(e,(e=>{const r=Sc(e);if(!r.some((e=>353===e.kind||345===e.kind))||r.some((e=>348===e.kind||349===e.kind)))for(const o of r)n.push({name:o.tagName.text,text:Npe(o,t)}),n.push(...Rpe(Cpe(o),t))})),n}function Rpe(e,t){return J(e,(e=>ce([{name:e.tagName.text,text:Npe(e,t)}],Rpe(Cpe(e),t))))}function Cpe(e){return qc(e)&&e.isNameFirst&&e.typeExpression&&EM(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function Dpe(e,t){return"string"===typeof e?[qQ(e)]:J(e,(e=>328===e.kind?[qQ(e.text)]:ZQ(e,t)))}function Npe(e,t){const{comment:n,kind:r}=e,o=function(e){switch(e){case 348:return UQ;case 355:return HQ;case 352:return XQ;case 353:case 345:return JQ;default:return qQ}}(r);switch(r){case 356:const r=e.typeExpression;return r?i(r):void 0===n?void 0:Dpe(n,t);case 336:case 335:return i(e.class);case 352:const a=e,s=[];if(a.constraint&&s.push(qQ(a.constraint.getText())),T(a.typeParameters)){T(s)&&s.push(BQ());const e=a.typeParameters[a.typeParameters.length-1];x(a.typeParameters,(t=>{s.push(o(t.getText())),e!==t&&s.push(jQ(28),BQ())}))}return n&&s.push(BQ(),...Dpe(n,t)),s;case 351:case 357:return i(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:l}=e;return l?i(l):void 0===n?void 0:Dpe(n,t);default:return void 0===n?void 0:Dpe(n,t)}function i(e){return r=e.getText(),n?r.match(/^https?$/)?[qQ(r),...Dpe(n,t)]:[o(r),BQ(),...Dpe(n,t)]:[qQ(r)];var r}}function Mpe(){return bpe||(bpe=U(vpe,(e=>({name:e,kind:"keyword",kindModifiers:"",sortText:tue.SortText.LocationPriority}))))}function Lpe(){return Epe||(Epe=U(vpe,(e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:tue.SortText.LocationPriority}))))}function kpe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[qQ(e)],documentation:o,tags:void 0,codeActions:void 0}}function Ppe(e){if(!nC(e.name))return o;const t=e.name.text,n=e.parent,r=n.parent;return Td(r)?Z(r.parameters,(r=>{if(!nC(r.name))return;const o=r.name.text;return n.tags.some((t=>t!==e&&OM(t)&&nC(t.name)&&t.name.escapedText===o))||void 0!==t&&!dn(o,t)?void 0:{name:o,kind:"parameter",kindModifiers:"",sortText:tue.SortText.LocationPriority}})):[]}function wpe(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[qQ(e)],documentation:o,tags:void 0,codeActions:void 0}}function Ope(e,t,n,r){const o=lY(t,n),i=Cl(o,bM);if(i&&(void 0!==i.comment||T(i.tags)))return;const a=o.getStart(t);if(!i&&a<n)return;const s=function(e,t){return Ff(e,(e=>Fpe(e,t)))}(o,r);if(!s)return;const{commentOwner:l,parameters:c,hasReturn:d}=s,u=Oe(Xu(l)&&l.jsDoc?l.jsDoc:void 0);if(l.getStart(t)<n||u&&i&&u!==i)return;const p=function(e,t){const{text:n}=e,r=k$(t,e);let o=r;for(;o<=t&&gs(n.charCodeAt(o));o++);return n.slice(r,o)}(t,n),f=nx(t.fileName),m=(c?function(e,t,n,r){return e.map((({name:e,dotDotDotToken:o},i)=>{const a=80===e.kind?e.text:"param"+i;return`${n} * @param ${t?o?"{...any} ":"{any} ":""}${a}${r}`})).join("")}(c||[],f,p,e):"")+(d?function(e,t){return`${e} * @returns${t}`}(p,e):""),_=T(Sc(l))>0;if(m&&!_){const t="/**"+e+p+" * ";return{newText:t+e+m+p+" */"+(a===n?e+p:""),caretOffset:t.length}}return{newText:"/** */",caretOffset:3}}function Fpe(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:Wpe(n,t)};case 303:return Fpe(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const n=e;return n.type&&wC(n.type)?{commentOwner:e,parameters:n.type.parameters,hasReturn:Wpe(n.type,t)}:{commentOwner:e}}case 243:{const n=e.declarationList.declarations,r=1===n.length&&n[0].initializer?function(e){for(;217===e.kind;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return L(e.members,RC)}}(n[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:Wpe(r,t)}:{commentOwner:e}}case 312:return"quit";case 267:return 267===e.parent.kind?void 0:{commentOwner:e};case 244:return Fpe(e.expression,t);case 226:{const n=e;return 0===Eg(n)?"quit":Td(n.right)?{commentOwner:e,parameters:n.right.parameters,hasReturn:Wpe(n.right,t)}:{commentOwner:e}}case 172:const r=e.initializer;if(r&&(_D(r)||hD(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:Wpe(r,t)}}}function Wpe(e,t){return!!(null==t?void 0:t.generateReturnInDocTemplate)&&(wC(e)||hD(e)&&uu(e.body)||Ad(e)&&e.body&&BD(e.body)&&!!H_(e.body,(e=>e)))}var zpe=b({"src/services/jsDoc.ts"(){Tge(),vpe=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],Spe=kpe}}),Bpe={};E(Bpe,{getDocCommentTemplateAtPosition:()=>Ope,getJSDocParameterNameCompletionDetails:()=>wpe,getJSDocParameterNameCompletions:()=>Ppe,getJSDocTagCompletionDetails:()=>kpe,getJSDocTagCompletions:()=>Lpe,getJSDocTagNameCompletionDetails:()=>Spe,getJSDocTagNameCompletions:()=>Mpe,getJsDocCommentsFromDeclarations:()=>xpe,getJsDocTagsFromDeclarations:()=>Ipe});var Gpe,jpe=b({"src/services/_namespaces/ts.JsDoc.ts"(){zpe()}});function Vpe(e,t,n,r,o,i){const a=p_e.ChangeTracker.fromContext({host:n,formatContext:t,preferences:o}),s="SortAndCombine"===i||"All"===i,l=s,c="RemoveUnused"===i||"All"===i,d=Upe(e,e.statements.filter(gN)),u=function(e,t){const n="boolean"===typeof e.organizeImportsIgnoreCase?e.organizeImportsIgnoreCase:(null==t?void 0:t())??!1;return _fe(e,n)}(o,s?()=>2===afe(d,o):void 0),p=t=>(c&&(t=function(e,t,n){const r=n.getTypeChecker(),o=n.getCompilerOptions(),i=r.getJsxNamespace(t),a=r.getJsxFragmentFactory(t),s=!!(2&t.transformFlags),l=[];for(const d of e){const{importClause:e,moduleSpecifier:n}=d;if(!e){l.push(d);continue}let{name:r,namedBindings:o}=e;if(r&&!c(r)&&(r=void 0),o)if(xN(o))c(o.name)||(o=void 0);else{const e=o.elements.filter((e=>c(e.name)));e.length<o.elements.length&&(o=e.length?UA.updateNamedImports(o,e):void 0)}r||o?l.push(Zpe(d,r,o)):Kpe(t,n)&&(t.isDeclarationFile?l.push(UA.createImportDeclaration(d.modifiers,void 0,n,void 0)):l.push(d))}return l;function c(e){return s&&(e.text===i||a&&e.text===a)&&I0(o.jsx)||Hue.Core.isSymbolReferencedInFile(e,r,t)}}(t,e,r)),l&&(t=Xpe(t,u,e,o)),s&&(t=Ne(t,((e,t)=>dfe(e,t,u)))),t);d.forEach((e=>f(e,p))),"RemoveUnused"!==i&&function(e){const t=[],n=e.statements,r=T(n);let o=0,i=0;for(;o<r;)if(DN(n[o])){void 0===t[i]&&(t[i]=[]);const e=n[o];if(e.moduleSpecifier)t[i].push(e),o++;else{for(;o<r&&DN(n[o]);)t[i].push(n[o++]);i++}}else o++;return J(t,(t=>Upe(e,t)))}(e).forEach((e=>f(e,(e=>Qpe(e,u,o)))));for(const m of e.statements.filter(Pm)){if(!m.body)continue;if(Upe(e,m.body.statements.filter(gN)).forEach((e=>f(e,p))),"RemoveUnused"!==i){f(m.body.statements.filter(DN),(e=>Qpe(e,u,o)))}}return a.getChanges();function f(r,o){if(0===T(r))return;fI(r[0],1024);const i=l?rt(r,(e=>qpe(e.moduleSpecifier))):[r],c=J(s?Ne(i,((e,t)=>rfe(e[0].moduleSpecifier,t[0].moduleSpecifier,u))):i,(e=>qpe(e[0].moduleSpecifier)||void 0===e[0].moduleSpecifier?o(e):e));if(0===c.length)a.deleteNodes(e,r,{leadingTriviaOption:p_e.LeadingTriviaOption.Exclude,trailingTriviaOption:p_e.TrailingTriviaOption.Include},!0);else{const o={leadingTriviaOption:p_e.LeadingTriviaOption.Exclude,trailingTriviaOption:p_e.TrailingTriviaOption.Include,suffix:eZ(n,t.options)};a.replaceNodeWithNodes(e,r[0],c,o);const i=a.nodeHasTrailingComment(e,r[0],o);a.deleteNodes(e,r.slice(1),{trailingTriviaOption:p_e.TrailingTriviaOption.Include},i)}}}function Upe(e,t){const n=Bs(e.languageVersion,!1,e.languageVariant),r=[];let o=0;for(const i of t)r[o]&&Hpe(e,i,n)&&o++,r[o]||(r[o]=[]),r[o].push(i);return r}function Hpe(e,t,n){const r=t.getFullStart(),o=t.getStart();n.setText(e.text,r,o-r);let i=0;for(;n.getTokenStart()<o;){if(4===n.scan()&&(i++,i>=2))return!0}return!1}function Kpe(e,t){const n=zR(t)&&t.text;return ht(n)&&se(e.moduleAugmentations,(e=>zR(e)&&e.text===n))}function qpe(e){return void 0!==e&&np(e)?e.text:void 0}function Jpe(e,t,n,r){return Xpe(e,ffe(t),n,r)}function Xpe(e,t,n,r){if(0===e.length)return e;const i=ot(e,(e=>{if(e.attributes){let t=e.attributes.token+" ";for(const n of Ce(e.attributes.elements,((e,t)=>jt(e.name.text,t.name.text))))t+=n.name.text+":",t+=np(n.value)?`"${n.value.text}"`:n.value.getText()+" ";return t}return""})),a=[];for(const s in i){const e=i[s],{importWithoutClause:l,typeOnlyImports:c,regularImports:d}=$pe(e);l&&a.push(l);for(const i of[d,c]){const e=i===c,{defaultImports:s,namespaceImports:l,namedImports:d}=i;if(!e&&1===s.length&&1===l.length&&0===d.length){const e=s[0];a.push(Zpe(e,e.importClause.name,l[0].importClause.namedBindings));continue}const u=Ne(l,((e,n)=>t(e.importClause.namedBindings.name.text,n.importClause.namedBindings.name.text)));for(const t of u)a.push(Zpe(t,void 0,t.importClause.namedBindings));const p=Le(s),f=Le(d),m=p??f;if(!m)continue;let _;const h=[];if(1===s.length)_=s[0].importClause.name;else for(const t of s)h.push(UA.createImportSpecifier(!1,UA.createIdentifier("default"),t.importClause.name));h.push(...pfe(d));const g=UA.createNodeArray(efe(h,t,r),null==f?void 0:f.importClause.namedBindings.elements.hasTrailingComma),y=0===g.length?_?void 0:UA.createNamedImports(o):f?UA.updateNamedImports(f.importClause.namedBindings,g):UA.createNamedImports(g);n&&y&&(null==f?void 0:f.importClause.namedBindings)&&!YE(f.importClause.namedBindings,n)&&fI(y,2),e&&_&&y?(a.push(Zpe(m,_,void 0)),a.push(Zpe(f??m,void 0,y))):a.push(Zpe(m,_,y))}}return a}function $pe(e){let t;const n={defaultImports:[],namespaceImports:[],namedImports:[]},r={defaultImports:[],namespaceImports:[],namedImports:[]};for(const o of e){if(void 0===o.importClause){t=t||o;continue}const e=o.importClause.isTypeOnly?n:r,{name:i,namedBindings:a}=o.importClause;i&&e.defaultImports.push(o),a&&(xN(a)?e.namespaceImports.push(o):e.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:r}}function Ype(e,t,n){return Qpe(e,ffe(t),n)}function Qpe(e,t,n){if(0===e.length)return e;const{exportWithoutClause:r,namedExports:i,typeOnlyExports:a}=function(e){let t;const n=[],r=[];for(const o of e)void 0===o.exportClause?t=t||o:o.isTypeOnly?r.push(o):n.push(o);return{exportWithoutClause:t,namedExports:n,typeOnlyExports:r}}(e),s=[];r&&s.push(r);for(const l of[i,a]){if(0===l.length)continue;const e=[];e.push(...J(l,(e=>e.exportClause&&NN(e.exportClause)?e.exportClause.elements:o)));const r=efe(e,t,n),i=l[0];s.push(UA.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,i.exportClause&&(NN(i.exportClause)?UA.updateNamedExports(i.exportClause,r):UA.updateNamespaceExport(i.exportClause,i.exportClause.name)),i.moduleSpecifier,i.attributes))}return s}function Zpe(e,t,n){return UA.updateImportDeclaration(e,e.modifiers,UA.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.attributes)}function efe(e,t,n){return Ne(e,((e,r)=>tfe(e,r,t,n)))}function tfe(e,t,n,r){switch(null==r?void 0:r.organizeImportsTypeOrder){case"first":return Jt(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case"inline":return n(e.name.text,t.name.text);default:return Jt(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function nfe(e,t,n){return rfe(e,t,ffe(!!n))}function rfe(e,t,n){const r=void 0===e?void 0:qpe(e),o=void 0===t?void 0:qpe(t);return Jt(void 0===r,void 0===o)||Jt(Xs(r),Xs(o))||n(r,o)}function ofe(e){var t;switch(e.kind){case 271:return null==(t=yt(e.moduleReference,wN))?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function ife(e,t){return afe(Upe(e,e.statements.filter(gN)),t)}function afe(e,t){const n=_fe(t,!1),r=_fe(t,!0);let o=3,i=!1;for(const a of e){if(a.length>1){const e=ge(a,(e=>{var t;return(null==(t=yt(e.moduleSpecifier,zR))?void 0:t.text)??""}),n,r);if(e&&(o&=e,i=!0),!o)return o}const e=L(a,(e=>{var t,n;return(null==(n=yt(null==(t=e.importClause)?void 0:t.namedBindings,IN))?void 0:n.elements.length)>1}));if(e){const n=Gpe(e.importClause.namedBindings.elements,t);if(n&&(o&=n,i=!0),!o)return o}if(3!==o)return o}return i?0:o}function sfe(e,t){return ge(e,(e=>qpe(ofe(e))||""),_fe(t,!1),_fe(t,!0))}function lfe(e,t,n){const r=je(e,t,xt,((e,t)=>dfe(e,t,n)));return r<0?~r:r}function cfe(e,t,n,r){const o=je(e,t,xt,((e,t)=>tfe(e,t,n,r)));return o<0?~o:o}function dfe(e,t,n){return rfe(ofe(e),ofe(t),n)||function(e,t){return Ft(ufe(e),ufe(t))}(e,t)}function ufe(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:274===(null==(t=e.importClause.namedBindings)?void 0:t.kind)?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function pfe(e){return J(e,(e=>U(function(e){var t;return(null==(t=e.importClause)?void 0:t.namedBindings)&&IN(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}(e),(e=>e.name&&e.propertyName&&e.name.escapedText===e.propertyName.escapedText?UA.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))))}function ffe(e){return e?Gt:jt}function mfe(e,t){const n=function(e){let t=e.organizeImportsLocale;"auto"===t&&(t=Ut());void 0===t&&(t="en");const n=Intl.Collator.supportedLocalesOf(t),r=n.length?n[0]:"en";return r}(t),r=t.organizeImportsCaseFirst??!1,o=t.organizeImportsNumericCollation??!1,i=t.organizeImportsAccentCollation??!0,a=e?i?"accent":"base":i?"variant":"case";return new Intl.Collator(n,{usage:"sort",caseFirst:r||"false",sensitivity:a,numeric:o}).compare}function _fe(e,t){return"unicode"===(e.organizeImportsCollation??"ordinal")?mfe(t,e):ffe(t)}var hfe=b({"src/services/organizeImports.ts"(){Tge(),Gpe=Mt(((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!he(e,((e,t)=>Jt(t.isTypeOnly,e.isTypeOnly))))return 0;break;case"inline":if(!he(e,((e,t)=>Vt(!0)(e.name.text,t.name.text))))return 0;break;default:if(!he(e,((e,t)=>Jt(e.isTypeOnly,t.isTypeOnly))))return 0}const n=_fe(t,!1),r=_fe(t,!0);if("inline"!==t.organizeImportsTypeOrder){const{type:t,regular:o}=ot(e,(e=>e.isTypeOnly?"type":"regular")),i=(null==t?void 0:t.length)?ge(t,(e=>e.name.text),n,r):void 0,a=(null==o?void 0:o.length)?ge(o,(e=>e.name.text??""),n,r):void 0;return void 0===i?a??0:void 0===a?i:0===i||0===a?0:a&i}return ge(e,(e=>e.name.text),n,r)}),new class{has([e,t]){return!(this._lastPreferences!==t||!this._cache)&&this._cache.has(e)}get([e,t]){if(this._lastPreferences===t&&this._cache)return this._cache.get(e)}set([e,t],n){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,n)}})}}),gfe={};E(gfe,{coalesceExports:()=>Ype,coalesceImports:()=>Jpe,compareImportOrExportSpecifiers:()=>tfe,compareImportsOrRequireStatements:()=>dfe,compareModuleSpecifiers:()=>nfe,detectImportDeclarationSorting:()=>sfe,detectImportSpecifierSorting:()=>Gpe,detectSorting:()=>ife,getImportDeclarationInsertionIndex:()=>lfe,getImportSpecifierInsertionIndex:()=>cfe,getOrganizeImportsComparer:()=>_fe,organizeImports:()=>Vpe});var yfe,vfe=b({"src/services/_namespaces/ts.OrganizeImports.ts"(){hfe()}});function bfe(e,t){const n=[];return function(e,t,n){let r=40,o=0;const i=[...e.statements,e.endOfFileToken],a=i.length;for(;o<a;){for(;o<a&&!$m(i[o]);)s(i[o]),o++;if(o===a)break;const t=o;for(;o<a&&$m(i[o]);)s(i[o]),o++;const r=o-1;r!==t&&n.push(xfe(J$(i[t],102,e).getStart(e),i[r].getEnd(),"imports"))}function s(o){var i;if(0===r)return;t.throwIfCancellationRequested(),(Lu(o)||GD(o)||QD(o)||ru(o)||1===o.kind)&&Tfe(o,e,t,n),Td(o)&&TD(o.parent)&&lD(o.parent.left)&&Tfe(o.parent.left,e,t,n),(BD(o)||fN(o))&&Sfe(o.statements.end,e,t,n),(Md(o)||cN(o))&&Sfe(o.members.end,e,t,n);const a=function(e,t){switch(e.kind){case 241:if(Td(e.parent))return function(e,t,n){const r=function(e,t,n){if(oS(e.parameters,n)){const t=J$(e,21,n);if(t)return t}return J$(t,19,n)}(e,t,n),o=J$(t,20,n);return r&&o&&Afe(r,o,e,n,219!==e.kind)}(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return d(e.parent);case 258:const n=e.parent;if(n.tryBlock===e)return d(e.parent);if(n.finallyBlock===e){const e=J$(n,98,t);if(e)return d(e)}default:return Ife(HY(e,t),"code")}case 268:return d(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return d(e);case 189:return d(e,!1,!BC(e.parent),23);case 296:case 297:return u(e.statements);case 210:return c(e);case 209:return c(e,23);case 284:return i(e);case 288:return a(e);case 285:case 286:return s(e.attributes);case 228:case 15:return l(e);case 207:return d(e,!1,!iD(e.parent),23);case 219:return o(e);case 213:return r(e);case 217:return p(e);case 275:case 279:case 300:return n(e)}function n(e){if(!e.elements.length)return;const n=J$(e,19,t),r=J$(e,20,t);return n&&r&&!iS(n.pos,r.pos,t)?Afe(n,r,e,t,!1,!1):void 0}function r(e){if(!e.arguments.length)return;const n=J$(e,21,t),r=J$(e,22,t);return n&&r&&!iS(n.pos,r.pos,t)?Afe(n,r,e,t,!1,!0):void 0}function o(e){if(BD(e.body)||mD(e.body)||iS(e.body.getFullStart(),e.body.getEnd(),t))return;return Ife(ul(e.body.getFullStart(),e.body.getEnd()),"code",HY(e))}function i(e){const n=ul(e.openingElement.getStart(t),e.closingElement.getEnd()),r=e.openingElement.tagName.getText(t);return Ife(n,"code",n,!1,"<"+r+">...</"+r+">")}function a(e){const n=ul(e.openingFragment.getStart(t),e.closingFragment.getEnd());return Ife(n,"code",n,!1,"<>...</>")}function s(e){if(0!==e.properties.length)return xfe(e.getStart(t),e.getEnd(),"code")}function l(e){if(15!==e.kind||0!==e.text.length)return xfe(e.getStart(t),e.getEnd(),"code")}function c(e,t=19){return d(e,!1,!aD(e.parent)&&!dD(e.parent),t)}function d(n,r=!1,o=!0,i=19,a=(19===i?20:24)){const s=J$(e,i,t),l=J$(e,a,t);return s&&l&&Afe(s,l,n,t,r,o)}function u(e){return e.length?Ife(JY(e),"code"):void 0}function p(e){if(iS(e.getStart(),e.getEnd(),t))return;return Ife(ul(e.getStart(),e.getEnd()),"code",HY(e))}}(o,e);a&&n.push(a),r--,dD(o)?(r++,s(o.expression),r--,o.arguments.forEach(s),null==(i=o.typeArguments)||i.forEach(s)):UD(o)&&o.elseStatement&&UD(o.elseStatement)?(s(o.expression),s(o.thenStatement),r++,s(o.elseStatement),r--):o.forEachChild(s),r++}}(e,t,n),function(e,t){const n=[],r=e.getLineStarts();for(const o of r){const r=e.getLineEndOfPosition(o),i=Efe(e.text.substring(o,r));if(i&&!CY(e,o))if(i[1]){const e=n.pop();e&&(e.textSpan.length=r-e.textSpan.start,e.hintSpan.length=r-e.textSpan.start,t.push(e))}else{const t=ul(e.text.indexOf("//",o),r);n.push(Ife(t,"region",t,!1,i[2]||"#region"))}}}(e,n),n.sort(((e,t)=>e.textSpan.start-t.textSpan.start))}function Efe(e){return dn(e=e.trimStart(),"//")?(e=e.slice(2).trim(),yfe.exec(e)):null}function Sfe(e,t,n,r){const o=Ps(t.text,e);if(!o)return;let i=-1,a=-1,s=0;const l=t.getFullText();for(const{kind:d,pos:u,end:p}of o)switch(n.throwIfCancellationRequested(),d){case 2:if(Efe(l.slice(u,p))){c(),s=0;break}0===s&&(i=u),a=p,s++;break;case 3:c(),r.push(xfe(u,p,"comment")),s=0;break;default:In.assertNever(d)}function c(){s>1&&r.push(xfe(i,a,"comment"))}c()}function Tfe(e,t,n,r){BR(e)||Sfe(e.pos,t,n,r)}function xfe(e,t,n){return Ife(ul(e,t),n)}function Afe(e,t,n,r,o=!1,i=!0){return Ife(ul(i?e.getFullStart():e.getStart(r),t.getEnd()),"code",HY(n,r),o)}function Ife(e,t,n=e,r=!1,o="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:o,autoCollapse:r}}var Rfe=b({"src/services/outliningElementsCollector.ts"(){Tge(),yfe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),Cfe={};E(Cfe,{collectElements:()=>bfe});var Dfe=b({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){Rfe()}});function Nfe(e,t,n,r){const o=iY(aY(t,n));if(wfe(o)){const n=function(e,t,n,r,o){const i=t.getSymbolAtLocation(e);if(!i){if(np(e)){const r=Z$(e,t);if(r&&(128&r.flags||1048576&r.flags&&M(r.types,(e=>!!(128&e.flags)))))return Lfe(e.text,e.text,"string","",e,n)}else if(E$(e)){const t=xm(e);return Lfe(t,t,"label","",e,n)}return}const{declarations:a}=i;if(!a||0===a.length)return;if(a.some((e=>function(e,t){const n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&Yi(n.fileName,".d.ts")}(r,e))))return kfe(Oa.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(nC(e)&&"default"===e.escapedText&&i.parent&&1536&i.parent.flags)return;if(np(e)&&zg(e))return o.allowRenameOfImportPath?function(e,t,n){if(!Xs(e.text))return kfe(Oa.You_cannot_rename_a_module_via_a_global_import);const r=n.declarations&&L(n.declarations,rM);if(!r)return;const o=Yt(e.text,"/index")||Yt(e.text,"/index.js")?void 0:Zt(cx(r.fileName),"/index"),i=void 0===o?r.fileName:o,a=void 0===o?"module":"directory",s=e.text.lastIndexOf("/")+1,l=dl(e.getStart(t)+1+s,e.text.length-s);return{canRename:!0,fileToRename:i,kind:a,displayName:i,fullDisplayName:e.text,kindModifiers:"",triggerSpan:l}}(e,n,i):void 0;const s=function(e,t,n,r){if(!r.providePrefixAndSuffixTextForRename&&2097152&t.flags){const e=t.declarations&&L(t.declarations,(e=>RN(e)));e&&!e.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:o}=t;if(!o)return;const i=Mfe(e.path);if(void 0===i)return se(o,(e=>o0(e.getSourceFile().path)))?Oa.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const a of o){const e=Mfe(a.getSourceFile().path);if(e){const t=Math.min(i.length,e.length);for(let n=0;n<=t;n++)if(0!==jt(i[n],e[n]))return Oa.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}return}(n,i,t,o);if(s)return kfe(s);const l=wme.getSymbolKind(t,i,e),c=sZ(e)||tv(e)&&167===e.parent.kind?Gv(sv(e)):void 0,d=c||t.symbolToString(i),u=c||t.getFullyQualifiedName(i);return Lfe(d,u,l,wme.getSymbolModifiers(t,i),e,n)}(o,e.getTypeChecker(),t,e,r);if(n)return n}return kfe(Oa.You_cannot_rename_this_element)}function Mfe(e){const t=sa(e),n=t.lastIndexOf("node_modules");if(-1!==n)return t.slice(0,n+2)}function Lfe(e,t,n,r,o,i){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:r,triggerSpan:Pfe(o,i)}}function kfe(e){return{canRename:!1,localizedErrorMessage:eT(e)}}function Pfe(e,t){let n=e.getStart(t),r=e.getWidth(t);return np(e)&&(n+=1,r-=2),dl(n,r)}function wfe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return C$(e);default:return!1}}var Ofe=b({"src/services/rename.ts"(){Tge()}}),Ffe={};E(Ffe,{getRenameInfo:()=>Nfe,nodeIsEligibleForRename:()=>wfe});var Wfe,zfe,Bfe=b({"src/services/_namespaces/ts.Rename.ts"(){Ofe()}});function Gfe(e,t,n,r,o){const i=e.getTypeChecker(),a=uY(t,n);if(!a)return;const s=!!r&&"characterTyped"===r.kind;if(s&&(gY(t,n,a)||CY(t,n)))return;const l=!!r&&"invoked"===r.kind,c=function(e,t,n,r,o){for(let i=e;!rM(i)&&(o||!BD(i));i=i.parent){In.assert(P$(i.parent,i),"Not a subspan",(()=>`Child: ${In.formatSyntaxKind(i.kind)}, parent: ${In.formatSyntaxKind(i.parent.kind)}`));const e=Kfe(i,t,n,r);if(e)return e}return}(a,n,t,i,l);if(!c)return;o.throwIfCancellationRequested();const d=function({invocation:e,argumentCount:t},n,r,o,i){switch(e.kind){case 0:{if(i&&!function(e,t,n){if(!ru(t))return!1;const r=t.getChildren(n);switch(e.kind){case 21:return F(r,e);case 28:{const t=X$(e);return!!t&&F(r,t)}case 30:return jfe(e,n,t.expression);default:return!1}}(o,e.node,r))return;const a=[],s=n.getResolvedSignatureForSignatureHelp(e.node,a,t);return 0===a.length?void 0:{kind:0,candidates:a,resolvedSignature:s}}case 1:{const{called:a}=e;if(i&&!jfe(o,r,nC(a)?a.parent:a))return;const s=IY(a,t,n);if(0!==s.length)return{kind:0,candidates:s,resolvedSignature:Pe(s)};const l=n.getSymbolAtLocation(a);return l&&{kind:1,symbol:l}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return In.assertNever(e)}}(c,i,t,a,s);return o.throwIfCancellationRequested(),d?i.runWithCancellationToken(o,(e=>0===d.kind?ome(d.candidates,d.resolvedSignature,c,t,e):function(e,{argumentCount:t,argumentsSpan:n,invocation:r,argumentIndex:o},i,a){const s=a.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(!s)return;const l=[ime(e,s,a,rme(r),i)];return{items:l,applicableSpan:n,selectedItemIndex:0,argumentIndex:o,argumentCount:t}}(d.symbol,c,t,e))):Jh(t)?function(e,t,n){if(2===e.invocation.kind)return;const r=nme(e.invocation),o=lD(r)?r.name.text:void 0,i=t.getTypeChecker();return void 0===o?void 0:I(t.getSourceFiles(),(t=>I(t.getNamedDeclarations().get(o),(r=>{const o=r.symbol&&i.getTypeOfSymbolAtLocation(r.symbol,r),a=o&&o.getCallSignatures();if(a&&a.length)return i.runWithCancellationToken(n,(n=>ome(a,a[0],e,t,n,!0)))}))))}(c,e,o):void 0}function jfe(e,t,n){const r=e.getFullStart();let o=e.parent;for(;o;){const e=fY(r,t,o,!0);if(e)return P$(n,e);o=o.parent}return In.fail("Could not find preceding token")}function Vfe(e,t,n,r){const o=Hfe(e,t,n,r);return!o||o.isTypeParameterList||0!==o.invocation.kind?void 0:{invocation:o.invocation.node,argumentCount:o.argumentCount,argumentIndex:o.argumentIndex}}function Ufe(e,t,n,r){const o=function(e,t,n){if(30===e.kind||21===e.kind)return{list:tme(e.parent,e,t),argumentIndex:0};{const t=X$(e);return t&&{list:t,argumentIndex:Yfe(n,t,e)}}}(e,n,r);if(!o)return;const{list:i,argumentIndex:a}=o,s=function(e,t){return Qfe(e,t,void 0)}(r,i);0!==a&&In.assertLessThan(a,s);const l=function(e,t){const n=e.getFullStart(),r=Ts(t.text,e.getEnd(),!1);return dl(n,r-n)}(i,n);return{list:i,argumentIndex:a,argumentCount:s,argumentsSpan:l}}function Hfe(e,t,n,r){const{parent:o}=e;if(ru(o)){const t=o,i=Ufe(e,0,n,r);if(!i)return;const{list:a,argumentIndex:s,argumentCount:l,argumentsSpan:c}=i;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===a.pos,invocation:{kind:0,node:t},argumentsSpan:c,argumentIndex:s,argumentCount:l}}if(jR(e)&&pD(o))return FY(e,t,n)?Zfe(o,0,n):void 0;if(VR(e)&&215===o.parent.kind){const r=o,i=r.parent;In.assert(228===r.kind);return Zfe(i,FY(e,t,n)?0:1,n)}if(WD(o)&&pD(o.parent.parent)){const r=o,i=o.parent.parent;if(HR(e)&&!FY(e,t,n))return;const a=function(e,t,n,r){if(In.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),rd(t))return FY(t,n,r)?0:e+2;return e+1}(r.parent.templateSpans.indexOf(r),e,t,n);return Zfe(i,a,n)}if(ju(o)){const e=o.attributes.pos;return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:dl(e,Ts(n.text,o.attributes.end,!1)-e),argumentIndex:0,argumentCount:1}}{const t=RY(e,n);if(t){const{called:r,nTypeArguments:o}=t;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:ul(r.getStart(n),e.end),argumentIndex:o,argumentCount:o+1}}return}}function Kfe(e,t,n,r){return function(e,t,n,r){const o=function(e){switch(e.kind){case 21:case 28:return e;default:return Cl(e.parent,(e=>!!bC(e)||!(iD(e)||rD(e)||oD(e))&&"quit"))}}(e);if(void 0===o)return;const i=function(e,t,n,r){const{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:const n=Ufe(e,0,t,r);if(!n)return;const{argumentIndex:i,argumentCount:a,argumentsSpan:s}=n,l=AC(o)?r.getContextualTypeForObjectLiteralElement(o):r.getContextualType(o);return l&&{contextualType:l,argumentIndex:i,argumentCount:a,argumentsSpan:s};case 226:{const t=qfe(o),n=r.getContextualType(t),i=21===e.kind?0:Jfe(o)-1,a=Jfe(t);return n&&{contextualType:n,argumentIndex:i,argumentCount:a,argumentsSpan:HY(o)}}default:return}}(o,n,0,r);if(void 0===i)return;const{contextualType:a,argumentIndex:s,argumentCount:l,argumentsSpan:c}=i,d=a.getNonNullableType(),u=d.symbol;if(void 0===u)return;const p=Oe(d.getCallSignatures());if(void 0===p)return;return{isTypeParameterList:!1,invocation:{kind:2,signature:p,node:e,symbol:Xfe(u)},argumentsSpan:c,argumentIndex:s,argumentCount:l}}(e,0,n,r)||Hfe(e,t,n,r)}function qfe(e){return TD(e.parent)?qfe(e.parent):e}function Jfe(e){return TD(e.left)?Jfe(e.left)+1:2}function Xfe(e){return"__type"===e.name&&I(e.declarations,(e=>{var t;return wC(e)?null==(t=yt(e.parent,Cu))?void 0:t.symbol:void 0}))||e}function $fe(e,t){const n=t.getTypeAtLocation(e.expression);if(t.isTupleType(n)){const{elementFlags:e,fixedLength:t}=n.target;if(0===t)return 0;const r=P(e,(e=>!(1&e)));return r<0?t:r}return 0}function Yfe(e,t,n){return Qfe(e,t,n)}function Qfe(e,t,n){const r=t.getChildren();let o=0,i=!1;for(const a of r){if(n&&a===n)return i||28!==a.kind||o++,o;RD(a)?(o+=$fe(a,e),i=!0):28===a.kind?i?i=!1:o++:(o++,i=!0)}return n?o:r.length&&28===Fe(r).kind?o+1:o}function Zfe(e,t,n){const r=jR(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&In.assertLessThan(t,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:eme(e,n),argumentIndex:t,argumentCount:r}}function eme(e,t){const n=e.template,r=n.getStart();let o=n.getEnd();if(228===n.kind){0===Fe(n.templateSpans).literal.getFullWidth()&&(o=Ts(t.text,o,!1))}return dl(r,o-r)}function tme(e,t,n){const r=e.getChildren(n),o=r.indexOf(t);return In.assert(o>=0&&r.length>o+1),r[o+1]}function nme(e){return 0===e.kind?Mh(e.node):e.called}function rme(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}function ome(e,t,{isTypeParameterList:n,argumentCount:r,argumentsSpan:i,invocation:a,argumentIndex:s},l,c,d){var u;const p=rme(a),f=2===a.kind?a.symbol:c.getSymbolAtLocation(nme(a))||d&&(null==(u=t.declaration)?void 0:u.symbol),m=f?oZ(c,f,d?l:void 0,void 0):o,_=U(e,(e=>function(e,t,n,r,o,i){const a=(n?sme:lme)(e,r,o,i);return U(a,(({isVariadic:n,parameters:i,prefix:a,suffix:s})=>{const l=[...t,...a],c=[...s,...ame(e,o,r)],d=e.getDocumentationComment(r),u=e.getJsDocTags();return{isVariadic:n,prefixDisplayParts:l,suffixDisplayParts:c,separatorDisplayParts:zfe,parameters:i,documentation:d,tags:u}}))}(e,m,n,c,p,l)));0!==s&&In.assertLessThan(s,r);let h=0,g=0;for(let o=0;o<_.length;o++){const n=_[o];if(e[o]===t&&(h=g,n.length>1)){let e=0;for(const t of n){if(t.isVariadic||t.parameters.length>=r){h=g+e;break}e++}}g+=n.length}In.assert(-1!==h);const y={items:X(_,xt),applicableSpan:i,selectedItemIndex:h,argumentIndex:s,argumentCount:r},v=y.items[h];if(v.isVariadic){const e=P(v.parameters,(e=>!!e.isRest));-1<e&&e<v.parameters.length-1?y.argumentIndex=v.parameters.length:y.argumentIndex=Math.min(y.argumentIndex,v.parameters.length-1)}return y}function ime(e,t,n,r,o){const i=oZ(n,e),a=hV(),s=t.map((e=>cme(e,n,r,o,a))),l=e.getDocumentationComment(n),c=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...i,jQ(30)],suffixDisplayParts:[jQ(32)],separatorDisplayParts:zfe,parameters:s,documentation:l,tags:c}}function ame(e,t,n){return nZ((r=>{r.writePunctuation(":"),r.writeSpace(" ");const o=n.getTypePredicateOfSignature(e);o?n.writeTypePredicate(o,t,void 0,r):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,r)}))}function sme(e,t,n,r){const i=(e.target||e).typeParameters,a=hV(),s=(i||o).map((e=>cme(e,t,n,r,a))),l=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,Wfe)]:[];return t.getExpandedParameters(e).map((e=>{const o=UA.createNodeArray([...l,...U(e,(e=>t.symbolToParameterDeclaration(e,n,Wfe)))]),i=nZ((e=>{a.writeList(2576,o,r,e)}));return{isVariadic:!1,parameters:s,prefix:[jQ(30)],suffix:[jQ(32),...i]}}))}function lme(e,t,n,r){const o=hV(),i=nZ((i=>{if(e.typeParameters&&e.typeParameters.length){const a=UA.createNodeArray(e.typeParameters.map((e=>t.typeParameterToDeclaration(e,n,Wfe))));o.writeList(53776,a,r,i)}})),a=t.getExpandedParameters(e),s=t.hasEffectiveRestParameter(e)?1===a.length?e=>!0:e=>{var t;return!!(e.length&&32768&(null==(t=yt(e[e.length-1],Lf))?void 0:t.links.checkFlags))}:e=>!1;return a.map((e=>({isVariadic:s(e),parameters:e.map((e=>function(e,t,n,r,o){const i=nZ((i=>{const a=t.symbolToParameterDeclaration(e,n,Wfe);o.writeNode(4,a,r,i)})),a=t.isOptionalParameter(e.valueDeclaration),s=Lf(e)&&!!(32768&e.links.checkFlags);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:i,isOptional:a,isRest:s}}(e,t,n,r,o))),prefix:[...i,jQ(21)],suffix:[jQ(22)]})))}function cme(e,t,n,r,o){const i=nZ((i=>{const a=t.typeParameterToDeclaration(e,n,Wfe);o.writeNode(4,a,r,i)}));return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:i,isOptional:!1,isRest:!1}}var dme=b({"src/services/signatureHelp.ts"(){Tge(),Wfe=70246400,zfe=[jQ(28),BQ()]}}),ume={};E(ume,{getArgumentInfoForCompletions:()=>Vfe,getSignatureHelpItems:()=>Gfe});var pme,fme=b({"src/services/_namespaces/ts.SignatureHelp.ts"(){dme()}});function mme(e,t){var n,r;let o={textSpan:ul(t.getFullStart(),t.getEnd())},i=t;e:for(;;){const o=hme(i);if(!o.length)break;for(let l=0;l<o.length;l++){const c=o[l-1],d=o[l],u=o[l+1];if(vm(d,t,!0)>e)break e;const p=We(ws(t.text,d.end));if(p&&2===p.kind&&s(p.pos,p.end),_me(t,e,d)){if(Eu(d)&&Ad(i)&&!iS(d.getStart(t),d.getEnd(),t)&&a(d.getStart(t),d.getEnd()),BD(d)||WD(d)||VR(d)||HR(d)||c&&VR(c)||aN(d)&&GD(i)||qM(d)&&aN(i)||iN(d)&&qM(i)&&1===o.length||aM(d)||SM(d)||EM(d)){i=d;break}if(WD(i)&&u&&od(u)){a(d.getFullStart()-2,u.getStart()+1)}const e=qM(d)&&bme(c)&&Eme(u)&&!iS(c.getStart(),u.getStart(),t);let s=e?c.getEnd():d.getStart();const l=e?u.getStart():Sme(t,d);if(Xu(d)&&(null==(n=d.jsDoc)?void 0:n.length)&&a(Pe(d.jsDoc).getStart(),l),qM(d)){const e=d.getChildren()[0];e&&Xu(e)&&(null==(r=e.jsDoc)?void 0:r.length)&&e.getStart()!==d.pos&&(s=Math.min(s,Pe(e.jsDoc).getStart()))}a(s,l),(zR(d)||ou(d))&&a(s+1,l-1),i=d;break}if(l===o.length-1)break e}}return o;function a(t,n){if(t!==n){const r=ul(t,n);(!o||!DQ(r,o.textSpan)&&ll(r,e))&&(o={textSpan:r,...o&&{parent:o}})}}function s(e,n){a(e,n);let r=e;for(;47===t.text.charCodeAt(r);)r++;a(r,n)}}function _me(e,t,n){if(In.assert(n.pos<=t),t<n.end)return!0;return n.getEnd()===t&&aY(e,t).pos<n.end}function hme(e){var t;if(rM(e))return gme(e.getChildAt(0).getChildren(),pme);if(QC(e)){const[t,...n]=e.getChildren(),r=In.checkDefined(n.pop());In.assertEqual(t.kind,19),In.assertEqual(r.kind,20);const o=gme(n,(t=>t===e.readonlyToken||148===t.kind||t===e.questionToken||58===t.kind));return[t,vme(yme(gme(o,(({kind:e})=>23===e||168===e||24===e)),(({kind:e})=>59===e))),r]}if(SC(e)){const n=gme(e.getChildren(),(t=>t===e.name||F(e.modifiers,t))),r=327===(null==(t=n[0])?void 0:t.kind)?n[0]:void 0,o=yme(r?n.slice(1):n,(({kind:e})=>59===e));return r?[r,vme(o)]:o}if(bC(e)){const t=gme(e.getChildren(),(t=>t===e.dotDotDotToken||t===e.name));return yme(gme(t,(n=>n===t[0]||n===e.questionToken)),(({kind:e})=>64===e))}return iD(e)?yme(e.getChildren(),(({kind:e})=>64===e)):e.getChildren()}function gme(e,t){const n=[];let r;for(const o of e)t(o)?(r=r||[],r.push(o)):(r&&(n.push(vme(r)),r=void 0),n.push(o));return r&&n.push(vme(r)),n}function yme(e,t,n=!0){if(e.length<2)return e;const r=P(e,t);if(-1===r)return e;const o=e.slice(0,r),i=e[r],a=Fe(e),s=n&&27===a.kind,l=e.slice(r+1,s?e.length-1:void 0),c=ve([o.length?vme(o):void 0,i,l.length?vme(l):void 0]);return s?c.concat(a):c}function vme(e){return In.assertGreaterThanOrEqual(e.length,1),Bx(Rk.createSyntaxList(e),e[0].pos,Fe(e).end)}function bme(e){const t=e&&e.kind;return 19===t||23===t||21===t||286===t}function Eme(e){const t=e&&e.kind;return 20===t||24===t||22===t||287===t}function Sme(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var Tme=b({"src/services/smartSelection.ts"(){Tge(),pme=_n(gN,hN)}}),xme={};E(xme,{getSmartSelectionRange:()=>mme});var Ame,Ime=b({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){Tme()}});function Rme(e,t,n){const r=Cme(e,t,n);if(""!==r)return r;const o=gS(t);return 32&o?Df(t,231)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":r}function Cme(e,t,n){const r=e.getRootSymbols(t);if(1===r.length&&8192&Pe(r).flags&&0!==e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(110===n.kind&&uu(n)||Sb(n))return"parameter";const o=gS(t);if(3&o)return FQ(t)?"parameter":t.valueDeclaration&&D_(t.valueDeclaration)?"const":t.valueDeclaration&&C_(t.valueDeclaration)?"using":t.valueDeclaration&&R_(t.valueDeclaration)?"await using":x(t.declarations,N_)?"let":kme(t)?"local var":"var";if(16&o)return kme(t)?"local function":"function";if(32768&o)return"getter";if(65536&o)return"setter";if(8192&o)return"method";if(16384&o)return"constructor";if(131072&o)return"index";if(4&o){if(33554432&o&&6&t.links.checkFlags){const r=x(e.getRootSymbols(t),(e=>{if(98311&e.getFlags())return"property"}));if(!r){return e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property"}return r}return"property"}return""}function Dme(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,r=MY(t,T(n)&&E0(t)&&se(n,(e=>!E0(e)))?65536:0);if(r)return r.split(",")}return[]}function Nme(e,t){if(!t)return"";const n=new Set(Dme(t));if(2097152&t.flags){const r=e.getAliasedSymbol(t);r!==t&&x(Dme(r),(e=>{n.add(e)}))}return 16777216&t.flags&&n.add("optional"),n.size>0?Ye(n.values()).join(","):""}function Mme(e,t,n,r,i,a,s,l){var c;const d=[];let u=[],p=[];const f=gS(t);let m=1&s?Cme(e,t,i):"",_=!1;const h=110===i.kind&&Gh(i)||Sb(i);let g,y,v=!1;if(110===i.kind&&!h)return{displayParts:[GQ(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==m||32&f||2097152&f){if("getter"===m||"setter"===m){const e=L(t.declarations,(e=>e.name===i));if(e)switch(e.kind){case 177:m="getter";break;case 178:m="setter";break;case 172:m="accessor";break;default:In.assertNever(e)}else m="property"}let n,o;if(a??(a=h?e.getTypeAtLocation(i):e.getTypeOfSymbolAtLocation(t,i)),i.parent&&211===i.parent.kind){const e=i.parent.name;(e===i||e&&0===e.getFullWidth())&&(i=i.parent)}if(ru(i)?o=i:(i$(i)||a$(i)||i.parent&&(ju(i.parent)||pD(i.parent))&&Td(t.valueDeclaration))&&(o=i.parent),o){n=e.getResolvedSignature(o);const i=214===o.kind||dD(o)&&108===o.expression.kind,s=i?a.getConstructSignatures():a.getCallSignatures();if(!n||F(s,n.target)||F(s,n)||(n=s.length?s[0]:void 0),n){switch(i&&32&f?(m="constructor",R(a.symbol,m)):2097152&f?(m="alias",C(m),d.push(BQ()),i&&(4&n.flags&&(d.push(GQ(128)),d.push(BQ())),d.push(GQ(105)),d.push(BQ())),A(t)):R(t,m),m){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":d.push(jQ(59)),d.push(BQ()),16&RS(a)||!a.symbol||(xe(d,oZ(e,a.symbol,r,void 0,5)),d.push(tZ())),i&&(4&n.flags&&(d.push(GQ(128)),d.push(BQ())),d.push(GQ(105)),d.push(BQ())),D(n,s,262144);break;default:D(n,s)}_=!0,v=s.length>1}}else if(R$(i)&&!(98304&f)||137===i.kind&&176===i.parent.kind){const r=i.parent;if(t.declarations&&L(t.declarations,(e=>e===(137===i.kind?r.parent:r)))){const o=176===r.kind?a.getNonNullableType().getConstructSignatures():a.getNonNullableType().getCallSignatures();n=e.isImplementationOfOverload(r)?o[0]:e.getSignatureFromDeclaration(r),176===r.kind?(m="constructor",R(a.symbol,m)):R(179!==r.kind||2048&a.symbol.flags||4096&a.symbol.flags?t:a.symbol,m),n&&D(n,o),_=!0,v=o.length>1}}}if(32&f&&!_&&!h&&(S(),Df(t,231)?C("local class"):d.push(GQ(86)),d.push(BQ()),A(t),N(t,n)),64&f&&2&s&&(E(),d.push(GQ(120)),d.push(BQ()),A(t),N(t,n)),524288&f&&2&s&&(E(),d.push(GQ(156)),d.push(BQ()),A(t),N(t,n),d.push(BQ()),d.push(VQ(64)),d.push(BQ()),xe(d,rZ(e,i.parent&&Bc(i.parent)?e.getTypeAtLocation(i.parent):e.getDeclaredTypeOfSymbol(t),r,8388608))),384&f&&(E(),se(t.declarations,(e=>uN(e)&&A_(e)))&&(d.push(GQ(87)),d.push(BQ())),d.push(GQ(94)),d.push(BQ()),A(t)),1536&f&&!h){E();const e=Df(t,267),n=e&&e.name&&80===e.name.kind;d.push(GQ(n?145:144)),d.push(BQ()),A(t)}if(262144&f&&2&s)if(E(),d.push(jQ(21)),d.push(qQ("type parameter")),d.push(jQ(22)),d.push(BQ()),A(t),t.parent)T(),A(t.parent,r),N(t.parent,r);else{const r=Df(t,168);if(void 0===r)return In.fail();const o=r.parent;if(o)if(Td(o)){T();const t=e.getSignatureFromDeclaration(o);180===o.kind?(d.push(GQ(105)),d.push(BQ())):179!==o.kind&&o.name&&A(o.symbol),xe(d,iZ(e,t,n,32))}else dN(o)&&(T(),d.push(GQ(156)),d.push(BQ()),A(o.symbol),N(o.symbol,n))}if(8&f){m="enum member",R(t,"enum member");const n=null==(c=t.declarations)?void 0:c[0];if(306===(null==n?void 0:n.kind)){const t=e.getConstantValue(n);void 0!==t&&(d.push(BQ()),d.push(VQ(64)),d.push(BQ()),d.push(zQ(Nm(t),"number"===typeof t?7:8)))}}if(2097152&t.flags){if(E(),!_||0===u.length&&0===p.length){const n=e.getAliasedSymbol(t);if(n!==t&&n.declarations&&n.declarations.length>0){const r=n.declarations[0],o=jl(r);if(o&&!_){const i=wm(r)&&Gb(r,128),l="default"!==t.name&&!i,c=Mme(e,n,Yf(r),r,o,a,s,l?t:n);d.push(...c.displayParts),d.push(tZ()),g=c.documentation,y=c.tags}else g=n.getContextualDocumentationComment(r,e),y=n.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:d.push(GQ(95)),d.push(BQ()),d.push(GQ(145));break;case 277:d.push(GQ(95)),d.push(BQ()),d.push(GQ(t.declarations[0].isExportEquals?64:90));break;case 281:d.push(GQ(95));break;default:d.push(GQ(102))}d.push(BQ()),A(t),x(t.declarations,(t=>{if(271===t.kind){const n=t;if(Uh(n))d.push(BQ()),d.push(VQ(64)),d.push(BQ()),d.push(GQ(149)),d.push(jQ(21)),d.push(zQ(xm(Hh(n)),8)),d.push(jQ(22));else{const t=e.getSymbolAtLocation(n.moduleReference);t&&(d.push(BQ()),d.push(VQ(64)),d.push(BQ()),A(t,r))}return!0}}))}if(!_)if(""!==m){if(a)if(h?(E(),d.push(GQ(110))):R(t,m),"property"===m||"accessor"===m||"getter"===m||"setter"===m||"JSX attribute"===m||3&f||"local var"===m||"index"===m||"using"===m||"await using"===m||h){if(d.push(jQ(59)),d.push(BQ()),a.symbol&&262144&a.symbol.flags&&"index"!==m){const t=nZ((t=>{const n=e.typeParameterToDeclaration(a,r,Ame);b().writeNode(4,n,Yf(Nl(r)),t)}));xe(d,t)}else xe(d,rZ(e,a,r));if(Lf(t)&&t.links.target&&Lf(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const e=t.links.target.links.tupleLabelDeclaration;In.assertNode(e.name,nC),d.push(BQ()),d.push(jQ(21)),d.push(qQ(kl(e.name))),d.push(jQ(22))}}else if(16&f||8192&f||16384&f||131072&f||98304&f||"method"===m){const e=a.getNonNullableType().getCallSignatures();e.length&&(D(e[0],e),v=e.length>1)}}else m=Rme(e,t,i);if(0!==u.length||v||(u=t.getContextualDocumentationComment(r,e)),0===u.length&&4&f&&t.parent&&t.declarations&&x(t.parent.declarations,(e=>312===e.kind)))for(const o of t.declarations){if(!o.parent||226!==o.parent.kind)continue;const t=e.getSymbolAtLocation(o.parent.right);if(t&&(u=t.getDocumentationComment(e),p=t.getJsDocTags(e),u.length>0))break}if(0===u.length&&nC(i)&&t.valueDeclaration&&iD(t.valueDeclaration)){const n=t.valueDeclaration,r=n.parent,i=n.propertyName||n.name;if(nC(i)&&rD(r)){const t=sv(i),n=e.getTypeAtLocation(r);u=I(n.isUnion()?n.types:[n],(n=>{const r=n.getProperty(t);return r?r.getDocumentationComment(e):void 0}))||o}}return 0!==p.length||v||(p=t.getContextualJsDocTags(r,e)),0===u.length&&g&&(u=g),0===p.length&&y&&(p=y),{displayParts:d,documentation:u,symbolKind:m,tags:0===p.length?void 0:p};function b(){return hV()}function E(){d.length&&d.push(tZ()),S()}function S(){l&&(C("alias"),d.push(BQ()))}function T(){d.push(BQ()),d.push(GQ(103)),d.push(BQ())}function A(r,o){let i;l&&r===t&&(r=l),"index"===m&&(i=e.getIndexInfosOfIndexSymbol(r));let a=[];131072&r.flags&&i?(r.parent&&(a=oZ(e,r.parent)),a.push(jQ(23)),i.forEach(((t,n)=>{a.push(...rZ(e,t.keyType)),n!==i.length-1&&(a.push(BQ()),a.push(jQ(52)),a.push(BQ()))})),a.push(jQ(24))):a=oZ(e,r,o||n,void 0,7),xe(d,a),16777216&t.flags&&d.push(jQ(58))}function R(e,t){E(),t&&(C(t),e&&!se(e.declarations,(e=>hD(e)||(_D(e)||CD(e))&&!e.name))&&(d.push(BQ()),A(e)))}function C(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":return void d.push(KQ(e));default:return d.push(jQ(21)),d.push(KQ(e)),void d.push(jQ(22))}}function D(t,n,o=0){xe(d,iZ(e,t,r,32|o)),n.length>1&&(d.push(BQ()),d.push(jQ(21)),d.push(VQ(40)),d.push(zQ((n.length-1).toString(),7)),d.push(BQ()),d.push(qQ(2===n.length?"overload":"overloads")),d.push(jQ(22))),u=t.getDocumentationComment(e),p=t.getJsDocTags(),n.length>1&&0===u.length&&0===p.length&&(u=n[0].getDocumentationComment(e),p=n[0].getJsDocTags().filter((e=>"deprecated"!==e.name)))}function N(t,n){const r=nZ((r=>{const o=e.symbolToTypeParameterDeclarations(t,n,Ame);b().writeList(53776,o,Yf(Nl(n)),r)}));xe(d,r)}}function Lme(e,t,n,r,o,i=r$(o),a){return Mme(e,t,n,r,o,void 0,i,a)}function kme(e){return!e.parent&&x(e.declarations,(e=>{if(218===e.kind)return!0;if(260!==e.kind&&262!==e.kind)return!1;for(let t=e.parent;!rh(t);t=t.parent)if(312===t.kind||268===t.kind)return!1;return!0}))}var Pme=b({"src/services/symbolDisplay.ts"(){Tge(),Ame=70246400}}),wme={};E(wme,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>Lme,getSymbolKind:()=>Rme,getSymbolModifiers:()=>Nme});var Ome,Fme,Wme,zme,Bme,Gme,jme,Vme=b({"src/services/_namespaces/ts.SymbolDisplay.ts"(){Pme()}});function Ume(e){const t=e.__pos;return In.assert("number"===typeof t),t}function Hme(e,t){In.assert("number"===typeof t),e.__pos=t}function Kme(e){const t=e.__end;return In.assert("number"===typeof t),t}function qme(e,t){In.assert("number"===typeof t),e.__end=t}function Jme(e,t){return Ts(e,t,!1,!0)}function Xme(e,t,n,r){return{pos:$me(e,t,r),end:Qme(e,n,r)}}function $me(e,t,n,r=!1){var o,i;const{leadingTriviaOption:a}=n;if(0===a)return t.getStart(e);if(3===a){const n=t.getStart(e),r=k$(n,e);return O$(t,r)?r:n}if(2===a){const n=G_(t,e.text);if(null==n?void 0:n.length)return k$(n[0].pos,e)}const s=t.getFullStart(),l=t.getStart(e);if(s===l)return l;const c=k$(s,e);if(k$(l,e)===c)return 1===a?s:l;if(r){const t=(null==(o=Ps(e.text,s))?void 0:o[0])||(null==(i=ws(e.text,s))?void 0:i[0]);if(t)return Ts(e.text,t.end,!0,!0)}const d=s>0?1:0;let u=tm(fb(e,c)+d,e);return u=Jme(e.text,u),tm(fb(e,u),e)}function Yme(e,t,n){const{end:r}=t,{trailingTriviaOption:o}=n;if(2===o){const n=ws(e.text,r);if(n){const r=fb(e,t.end);for(const t of n){if(2===t.kind||fb(e,t.pos)>r)break;if(fb(e,t.end)>r)return Ts(e.text,t.end,!0,!0)}}}}function Qme(e,t,n){var r;const{end:o}=t,{trailingTriviaOption:i}=n;if(0===i)return o;if(1===i){const t=ce(ws(e.text,o),Ps(e.text,o)),n=null==(r=null==t?void 0:t[t.length-1])?void 0:r.end;return n||o}const a=Yme(e,t,n);if(a)return a;const s=Ts(e.text,o,!0);return s===o||2!==i&&!ys(e.text.charCodeAt(s-1))?o:s}function Zme(e,t){return!!t&&!!e.parent&&(28===t.kind||27===t.kind&&210===e.parent.kind)}function e_e(e){return _D(e)||sN(e)}function t_e(e,t){return Ts(e.text,$me(e,t,{leadingTriviaOption:1}),!1,!0)}function n_e(e,t,n,r){const o=t_e(e,r);if(void 0===n||iS(Qme(e,t,{}),o,e))return o;const i=fY(r.getStart(e),e);if(Zme(t,i)){const r=fY(t.getStart(e),e);if(Zme(n,r)){const t=Ts(e.text,i.getEnd(),!0,!0);if(iS(r.getStart(e),i.getStart(e),e))return ys(e.text.charCodeAt(t-1))?t-1:t;if(ys(e.text.charCodeAt(t)))return t}}return o}function r_e(e){return sD(e)?e.properties:e.members}function o_e(e,t){for(let n=t.length-1;n>=0;n--){const{span:r,newText:o}=t[n];e=`${e.substring(0,r.start)}${o}${e.substring(Qs(r))}`}return e}function i_e(e){const t=fB(e,i_e,Gme,a_e,i_e),n=Sv(t)?t:Object.create(t);return Bx(n,Ume(e),Kme(e)),n}function a_e(e,t,n,r,o){const i=oB(e,t,n,r,o);if(!i)return i;In.assert(e);const a=i===e?UA.createNodeArray(i.slice(0)):i;return Bx(a,Ume(e),Kme(e)),a}function s_e(e){let t=0;const n=Hv(e);function r(e,r){if(r||!function(e){return Ts(e,0)===e.length}(e)){t=n.getTextPos();let r=0;for(;hs(e.charCodeAt(e.length-r-1));)r++;t-=r}}return{onBeforeEmitNode:e=>{e&&Hme(e,t)},onAfterEmitNode:e=>{e&&qme(e,t)},onBeforeEmitNodeArray:e=>{e&&Hme(e,t)},onAfterEmitNodeArray:e=>{e&&qme(e,t)},onBeforeEmitToken:e=>{e&&Hme(e,t)},onAfterEmitToken:e=>{e&&qme(e,t)},write:function(e){n.write(e),r(e,!1)},writeComment:function(e){n.writeComment(e)},writeKeyword:function(e){n.writeKeyword(e),r(e,!1)},writeOperator:function(e){n.writeOperator(e),r(e,!1)},writePunctuation:function(e){n.writePunctuation(e),r(e,!1)},writeTrailingSemicolon:function(e){n.writeTrailingSemicolon(e),r(e,!1)},writeParameter:function(e){n.writeParameter(e),r(e,!1)},writeProperty:function(e){n.writeProperty(e),r(e,!1)},writeSpace:function(e){n.writeSpace(e),r(e,!1)},writeStringLiteral:function(e){n.writeStringLiteral(e),r(e,!1)},writeSymbol:function(e,t){n.writeSymbol(e,t),r(e,!1)},writeLine:function(e){n.writeLine(e)},increaseIndent:function(){n.increaseIndent()},decreaseIndent:function(){n.decreaseIndent()},getText:function(){return n.getText()},rawWrite:function(e){n.rawWrite(e),r(e,!1)},writeLiteral:function(e){n.writeLiteral(e),r(e,!0)},getTextPos:function(){return n.getTextPos()},getLine:function(){return n.getLine()},getColumn:function(){return n.getColumn()},getIndent:function(){return n.getIndent()},isAtStartOfLine:function(){return n.isAtStartOfLine()},hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:function(){n.clear(),t=0}}}function l_e(e,t){return!CY(e,t)&&!gY(e,t)&&!bY(e,t)&&!EY(e,t)}function c_e(e,t,n,r={leadingTriviaOption:1}){const o=$me(t,n,r),i=Qme(t,n,r);e.deleteRange(t,{pos:o,end:i})}function d_e(e,t,n,r){const o=In.checkDefined(vge.SmartIndenter.getContainingList(r,n)),i=Im(o,r);In.assert(-1!==i),1!==o.length?(In.assert(!t.has(r),"Deleting a node twice"),t.add(r),e.deleteRange(n,{pos:t_e(n,r),end:i===o.length-1?Qme(n,r,{}):n_e(n,r,o[i-1],o[i+1])})):c_e(e,n,r)}var u_e=b({"src/services/textChanges.ts"(){Tge(),Ome=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Ome||{}),Fme=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(Fme||{}),Wme={leadingTriviaOption:0,trailingTriviaOption:0},zme=class e{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new e(eZ(t.host,t.formatContext.options),t.formatContext)}static with(t,n){const r=e.fromContext(t);return n(r),r.getChanges()}pushRaw(e,t){In.assertEqual(e.fileName,t.fileName);for(const n of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:n.newText,range:XY(n.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,n={leadingTriviaOption:1}){this.deleteRange(e,Xme(e,t,t,n))}deleteNodes(e,t,n={leadingTriviaOption:1},r){for(const o of t){const t=$me(e,o,n,r),i=Qme(e,o,n);this.deleteRange(e,{pos:t,end:i}),r=!!Yme(e,o,n)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:Ts(e.text,t.end,!0)})}deleteNodeRange(e,t,n,r={leadingTriviaOption:1}){const o=$me(e,t,r),i=Qme(e,n,r);this.deleteRange(e,{pos:o,end:i})}deleteNodeRangeExcludingEnd(e,t,n,r={leadingTriviaOption:1}){const o=$me(e,t,r),i=void 0===n?e.text.length:$me(e,n,r);this.deleteRange(e,{pos:o,end:i})}replaceRange(e,t,n,r={}){this.changes.push({kind:1,sourceFile:e,range:t,options:r,node:n})}replaceNode(e,t,n,r=Wme){this.replaceRange(e,Xme(e,t,t,r),n,r)}replaceNodeRange(e,t,n,r,o=Wme){this.replaceRange(e,Xme(e,t,n,o),r,o)}replaceRangeWithNodes(e,t,n,r={}){this.changes.push({kind:2,sourceFile:e,range:t,options:r,nodes:n})}replaceNodeWithNodes(e,t,n,r=Wme){this.replaceRangeWithNodes(e,Xme(e,t,t,r),n,r)}replaceNodeWithText(e,t,n){this.replaceRangeWithText(e,Xme(e,t,t,Wme),n)}replaceNodeRangeWithNodes(e,t,n,r,o=Wme){this.replaceRangeWithNodes(e,Xme(e,t,n,o),r,o)}nodeHasTrailingComment(e,t,n=Wme){return!!Yme(e,t,n)}nextCommaToken(e,t){const n=pY(t,t.parent,e);return n&&28===n.kind?n:void 0}replacePropertyAssignment(e,t,n){const r=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,n,{suffix:r})}insertNodeAt(e,t,n,r={}){this.replaceRange(e,UE(t),n,r)}insertNodesAt(e,t,n,r={}){this.replaceRangeWithNodes(e,UE(t),n,r)}insertNodeAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertNodesAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertAtTopOfFile(e,t,n){const r=function(e){let t;for(const c of e.statements){if(!w_(c))break;t=c}let n=0;const r=e.text;if(t)return n=t.end,l(),n;const o=Os(r);void 0!==o&&(n=o.length,l());const i=Ps(r,n);if(!i)return n;let a,s;for(const c of i){if(3===c.kind){if(gm(r,c.pos)){a={range:c,pinnedOrTripleSlash:!0};continue}}else if(hm(r,c.pos,c.end)){a={range:c,pinnedOrTripleSlash:!0};continue}if(a){if(a.pinnedOrTripleSlash)break;if(e.getLineAndCharacterOfPosition(c.pos).line>=e.getLineAndCharacterOfPosition(a.range.end).line+2)break}if(e.statements.length&&(void 0===s&&(s=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line),s<e.getLineAndCharacterOfPosition(c.end).line+2))break;a={range:c,pinnedOrTripleSlash:!1}}return a&&(n=a.range.end,l()),n;function l(){if(n<r.length){const e=r.charCodeAt(n);ys(e)&&(n++,n<r.length&&13===e&&10===r.charCodeAt(n)&&n++)}}}(e),o={prefix:0===r?void 0:this.newLineCharacter,suffix:(ys(e.text.charCodeAt(r))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")};mt(t)?this.insertNodesAt(e,r,t,o):this.insertNodeAt(e,r,t,o)}insertNodesAtEndOfFile(e,t,n){this.insertAtEndOfFile(e,t,n)}insertAtEndOfFile(e,t,n){const r=e.end+1,o={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(n?this.newLineCharacter:"")};this.insertNodesAt(e,r,t,o)}insertStatementsInNewFile(e,t,n){this.newFileChanges||(this.newFileChanges=ct()),this.newFileChanges.add(e,{oldFile:n,statements:t})}insertFirstParameter(e,t,n){const r=Le(t);r?this.insertNodeBefore(e,r,n):this.insertNodeAt(e,t.pos,n)}insertNodeBefore(e,t,n,r=!1,o={}){this.insertNodeAt(e,$me(e,t,o),n,this.getOptionsForInsertNodeBefore(t,n,r))}insertNodesBefore(e,t,n,r=!1,o={}){this.insertNodesAt(e,$me(e,t,o),n,this.getOptionsForInsertNodeBefore(t,Pe(n),r))}insertModifierAt(e,t,n,r={}){this.insertNodeAt(e,t,UA.createToken(n),r)}insertModifierBefore(e,t,n){return this.insertModifierAt(e,n.getStart(e),t,{suffix:" "})}insertCommentBeforeLine(e,t,n,r){const o=tm(t,e),i=pZ(e.text,o),a=l_e(e,i),s=sY(e,a?i:n),l=e.text.slice(o,i),c=`${a?"":this.newLineCharacter}//${r}${this.newLineCharacter}${l}`;this.insertText(e,s.getStart(e),c)}insertJsdocCommentBefore(e,t,n){const r=t.getStart(e);if(t.jsDoc)for(const a of t.jsDoc)this.deleteRange(e,{pos:k$(a.getStart(e),e),end:Qme(e,a,{})});const o=fZ(e.text,r-1),i=e.text.slice(o,r);this.insertNodeAt(e,r,n,{suffix:this.newLineCharacter+i})}createJSDocText(e,t){const n=J(t.jsDoc,(e=>ht(e.comment)?UA.createJSDocText(e.comment):e.comment)),r=We(t.jsDoc);return r&&iS(r.pos,r.end,e)&&0===T(n)?void 0:UA.createNodeArray(N(n,UA.createJSDocText("\n")))}replaceJSDocComment(e,t,n){this.insertJsdocCommentBefore(e,function(e){if(219!==e.kind)return e;const t=172===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}(t),UA.createJSDocComment(this.createJSDocText(e,t),UA.createNodeArray(n)))}addJSDocTags(e,t,n){const r=X(t.jsDoc,(e=>e.tags)),o=n.filter((e=>!r.some(((t,n)=>{const o=function(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{const n=e,r=t;return nC(n.name)&&nC(r.name)&&n.name.escapedText===r.name.escapedText?UA.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,n.comment):void 0}case 349:return UA.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return UA.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}(t,e);return o&&(r[n]=o),!!o}))));this.replaceJSDocComment(e,t,[...r,...o])}filterJSDocTags(e,t,n){this.replaceJSDocComment(e,t,G(X(t.jsDoc,(e=>e.tags)),n))}replaceRangeWithText(e,t,n){this.changes.push({kind:3,sourceFile:e,range:t,text:n})}insertText(e,t,n){this.replaceRangeWithText(e,UE(t),n)}tryInsertTypeAnnotation(e,t,n){let r;if(Td(t)){if(r=J$(t,22,e),!r){if(!hD(t))return!1;r=Pe(t.parameters)}}else r=(260===t.kind?t.exclamationToken:t.questionToken)??t.name;return this.insertNodeAt(e,r.end,n,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,n){const r=J$(t,21,e).getStart(e)+1,o=t.parameters.length?", ":"";this.insertNodeAt(e,r,n,{prefix:"this: ",suffix:o})}insertTypeParameters(e,t,n){const r=(J$(t,21,e)||Pe(t.parameters)).getStart(e);this.insertNodesAt(e,r,n,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,n){return wu(e)||Nd(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:iN(e)?{suffix:", "}:bC(e)?bC(t)?{suffix:", "}:{}:zR(e)&&gN(e.parent)||IN(e)?{suffix:", "}:RN(e)?{suffix:","+(n?this.newLineCharacter:" ")}:In.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,n){const r=Le(t.body.statements);r&&t.body.multiLine?this.insertNodeBefore(e,r,n):this.replaceConstructorBody(e,t,[n,...t.body.statements])}insertNodeAtConstructorStartAfterSuperCall(e,t,n){const r=L(t.body.statements,(e=>VD(e)&&M_(e.expression)));r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}insertNodeAtConstructorEnd(e,t,n){const r=Oe(t.body.statements);r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}replaceConstructorBody(e,t,n){this.replaceNode(e,t.body,UA.createBlock(n,!0))}insertNodeAtEndOfScope(e,t,n){const r=$me(e,t.getLastToken(),{});this.insertNodeAt(e,r,n,{prefix:ys(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtObjectStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtStartWorker(e,t,n){const r=this.guessIndentationFromExistingMembers(e,t)??this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,r_e(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,r))}guessIndentationFromExistingMembers(e,t){let n,r=t;for(const o of r_e(t)){if(QE(r,o,e))return;const t=o.getStart(e),i=vge.SmartIndenter.findFirstNonWhitespaceColumn(k$(t,e),t,e,this.formatContext.options);if(void 0===n)n=i;else if(i!==n)return;r=o}return n}computeIndentationForNewMember(e,t){const n=t.getStart(e);return vge.SmartIndenter.findFirstNonWhitespaceColumn(k$(n,e),n,e,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(e,t,n){const r=0===r_e(t).length,o=LS(this.classesWithNodesInsertedAtStart,Hz(t),{node:t,sourceFile:e}),i=sD(t)&&(!x_(e)||!r);return{indentation:n,prefix:(sD(t)&&x_(e)&&r&&!o?",":"")+this.newLineCharacter,suffix:i?",":cN(t)&&r?";":""}}insertNodeAfterComma(e,t,n){const r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,n){this.insertNodeAt(e,t.end,n,{prefix:", "})}insertNodesAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,Pe(n));this.insertNodesAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,n){var r,o;o=n,((SC(r=t)||TC(r))&&zd(o)&&167===o.name.kind||Pu(r)&&Pu(o))&&59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,UE(t.end),UA.createToken(27));return Qme(e,t,{})}getInsertNodeAfterOptions(e,t){const n=this.getInsertNodeAfterOptionsWorker(t);return{...n,prefix:t.end===e.end&&wu(t)?n.prefix?`\n${n.prefix}`:"\n":n.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return In.assert(wu(e)||zd(e)),{suffix:this.newLineCharacter}}}insertName(e,t,n){if(In.assert(!t.name),219===t.kind){const r=J$(t,39,e),o=J$(t,21,e);o?(this.insertNodesAt(e,o.getStart(e),[UA.createToken(100),UA.createIdentifier(n)],{joiner:" "}),c_e(this,e,r)):(this.insertText(e,Pe(t.parameters).getStart(e),`function ${n}(`),this.replaceRange(e,r,UA.createToken(22))),241!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[UA.createToken(19),UA.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[UA.createToken(27),UA.createToken(20)],{joiner:" "}))}else{const r=J$(t,218===t.kind?100:86,e).end;this.insertNodeAt(e,r,UA.createIdentifier(n),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,n,r){const o=n.elements[r-1];o?this.insertNodeInListAfter(e,o,t):this.insertNodeBefore(e,n.elements[0],t,!iS(n.elements[0].getStart(),n.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,n,r=vge.SmartIndenter.getContainingList(t,e)){if(!r)return void In.fail("node is not a list element");const o=Im(r,t);if(o<0)return;const i=t.getEnd();if(o!==r.length-1){const i=lY(e,t.end);if(i&&Zme(t,i)){const t=r[o+1],a=Jme(e.text,t.getFullStart()),s=`${as(i.kind)}${e.text.substring(i.end,a)}`;this.insertNodesAt(e,a,[n],{suffix:s})}}else{const a=t.getStart(e),s=k$(a,e);let l,c=!1;if(1===r.length)l=28;else{const n=fY(t.pos,e);l=Zme(t,n)?n.kind:28;c=k$(r[o-1].getStart(e),e)!==s}if(!function(e,t){let n=t;for(;n<e.length;){const t=e.charCodeAt(n);if(!gs(t))return 47===t;n++}return!1}(e.text,t.end)&&iS(r.pos,r.end,e)||(c=!0),c){this.replaceRange(e,UE(i),UA.createToken(l));const t=vge.SmartIndenter.findFirstNonWhitespaceColumn(s,a,e,this.formatContext.options);let r=Ts(e.text,i,!0,!1);for(;r!==i&&ys(e.text.charCodeAt(r-1));)r--;this.replaceRange(e,UE(r),n,{indentation:t,prefix:this.newLineCharacter})}else this.replaceRange(e,UE(i),n,{prefix:`${as(l)} `})}}parenthesizeExpression(e,t){this.replaceRange(e,Ix(t),UA.createParenthesizedExpression(t))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach((({node:e,sourceFile:t})=>{const[n,r]=function(e,t){const n=J$(e,19,t),r=J$(e,20,t);return[null==n?void 0:n.end,null==r?void 0:r.end]}(e,t);if(void 0!==n&&void 0!==r){const o=0===r_e(e).length,i=iS(n,r,t);o&&i&&n!==r-1&&this.deleteRange(t,UE(n,r-1)),i&&this.insertText(t,r-1,this.newLineCharacter)}}))}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:n}of this.deletedNodes)this.deletedNodes.some((e=>e.sourceFile===t&&w$(e.node,n)))||(mt(n)?this.deleteRange(t,Rx(t,n)):jme.deleteDeclaration(this,e,t,n));e.forEach((t=>{const n=t.getSourceFile(),r=vge.SmartIndenter.getContainingList(t,n);if(t!==Fe(r))return;const o=w(r,(t=>!e.has(t)),r.length-2);-1!==o&&this.deleteRange(n,{pos:r[o].end,end:t_e(n,r[o+1])})}))}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=Bme.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach(((e,n)=>{t.push(Bme.newFileChanges(n,e,this.newLineCharacter,this.formatContext))})),t}createNewFile(e,t,n){this.insertStatementsInNewFile(t,n,e)}},(e=>{function t(e,t,r,o){const i=J(t,(e=>e.statements.map((t=>4===t?"":n(t,e.oldFile,r).text)))).join(r),a=lP("any file name",i,{languageVersion:99,jsDocParsingMode:1},!0,e);return o_e(i,vge.formatDocument(a,o))+r}function n(e,t,n){const r=s_e(n);return HV({newLine:T0(n),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,t,r),{text:r.getText(),node:i_e(e)}}e.getTextChangesFromChanges=function(e,t,r,o){return Z(rt(e,(e=>e.sourceFile.path)),(e=>{const i=e[0].sourceFile,a=Ne(e,((e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end));for(let t=0;t<a.length-1;t++)In.assert(a[t].range.end<=a[t+1].range.pos,"Changes overlap",(()=>`${JSON.stringify(a[t].range)} and ${JSON.stringify(a[t+1].range)}`));const s=Z(a,(e=>{const a=JY(e.range),s=1===e.kind?Yf(Rl(e.node))??e.sourceFile:2===e.kind?Yf(Rl(e.nodes[0]))??e.sourceFile:e.sourceFile,l=function(e,t,r,o,i,a){var s;if(0===e.kind)return"";if(3===e.kind)return e.text;const{options:l={},range:{pos:c}}=e,d=e=>function(e,t,r,o,{indentation:i,prefix:a,delta:s},l,c,d){const{node:u,text:p}=n(e,t,l);d&&d(u,p);const f=A0(c,t),m=void 0!==i?i:vge.SmartIndenter.getIndentation(o,r,f,a===l||k$(o,t)===o);void 0===s&&(s=vge.SmartIndenter.shouldIndentChildNode(f,e)&&f.indentSize||0);const _={text:p,getLineAndCharacterOfPosition(e){return _s(this,e)}},h=vge.formatNodeGivenIndentation(u,_,t.languageVariant,m,s,{...c,options:f});return o_e(p,h)}(e,t,r,c,l,o,i,a),u=2===e.kind?e.nodes.map((e=>Qt(d(e),o))).join((null==(s=e.options)?void 0:s.joiner)||o):d(e.node),p=void 0!==l.indentation||k$(c,t)===c?u:u.replace(/^\s+/,"");return(l.prefix||"")+p+(!l.suffix||Yt(p,l.suffix)?"":l.suffix)}(e,s,i,t,r,o);if(a.length!==l.length||!g0(s.text,l,a.start))return YY(a,l)}));return s.length>0?{fileName:i.fileName,textChanges:s}:void 0}))},e.newFileChanges=function(e,n,r,o){const i=t(ZT(e),n,r,o);return{fileName:e,textChanges:[YY(dl(0,0),i)],isNewFile:!0}},e.newFileChangesWorker=t,e.getNonformattedText=n})(Bme||(Bme={})),Gme={...nV,factory:JA(1|nV.factory.flags,nV.factory.baseFactory)},(e=>{function t(e,t,n){if(n.parent.name){const r=In.checkDefined(lY(t,n.pos-1));e.deleteRange(t,{pos:r.getStart(t),end:n.end})}else{c_e(e,t,jy(n,272))}}e.deleteDeclaration=function(e,n,r,o){switch(o.kind){case 169:{const t=o.parent;hD(t)&&1===t.parameters.length&&!J$(t,21,r)?e.replaceNodeWithText(r,o,"()"):d_e(e,n,r,o);break}case 272:case 271:c_e(e,r,o,{leadingTriviaOption:r.imports.length&&o===Pe(r.imports).parent||o===L(r.statements,$m)?0:Xu(o)?2:3});break;case 208:const i=o.parent;207===i.kind&&o!==Fe(i.elements)?c_e(e,r,o):d_e(e,n,r,o);break;case 260:!function(e,t,n,r){const{parent:o}=r;if(299===o.kind)return void e.deleteNodeRange(n,J$(o,21,n),J$(o,22,n));if(1!==o.declarations.length)return void d_e(e,t,n,r);const i=o.parent;switch(i.kind){case 250:case 249:e.replaceNode(n,r,UA.createObjectLiteralExpression());break;case 248:c_e(e,n,o);break;case 243:c_e(e,n,i,{leadingTriviaOption:Xu(i)?2:3});break;default:In.assertNever(i)}}(e,n,r,o);break;case 168:d_e(e,n,r,o);break;case 276:const a=o.parent;1===a.elements.length?t(e,r,a):d_e(e,n,r,o);break;case 274:t(e,r,o);break;case 27:c_e(e,r,o,{trailingTriviaOption:0});break;case 100:c_e(e,r,o,{leadingTriviaOption:0});break;case 263:case 262:c_e(e,r,o,{leadingTriviaOption:Xu(o)?2:3});break;default:o.parent?yN(o.parent)&&o.parent.name===o?function(e,t,n){if(n.namedBindings){const r=n.name.getStart(t),o=lY(t,n.name.end);if(o&&28===o.kind){const n=Ts(t.text,o.end,!1,!0);e.deleteRange(t,{pos:r,end:n})}else c_e(e,t,n.name)}else c_e(e,t,n.parent)}(e,r,o.parent):dD(o.parent)&&F(o.parent.arguments,o)?d_e(e,n,r,o):c_e(e,r,o):c_e(e,r,o)}}})(jme||(jme={}))}}),p_e={};E(p_e,{ChangeTracker:()=>zme,LeadingTriviaOption:()=>Ome,TrailingTriviaOption:()=>Fme,applyChanges:()=>o_e,assignPositionsToNode:()=>i_e,createWriter:()=>s_e,deleteNode:()=>c_e,isThisTypeAnnotatable:()=>e_e,isValidLocationToAddComment:()=>l_e});var f_e,m_e,__e,h_e,g_e=b({"src/services/_namespaces/ts.textChanges.ts"(){u_e()}}),y_e=b({"src/services/formatting/formattingContext.ts"(){Tge(),f_e=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(f_e||{}),m_e=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,r,o){this.currentTokenSpan=In.checkDefined(e),this.currentTokenParent=In.checkDefined(t),this.nextTokenSpan=In.checkDefined(n),this.nextTokenParent=In.checkDefined(r),this.contextNode=In.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(void 0===this.tokensAreOnSameLine){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line}BlockIsOnOneLine(e){const t=J$(e,19,this.sourceFile),n=J$(e,20,this.sourceFile);if(t&&n){return this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line}return!1}}}});function v_e(e,t,n,r,o){const i=1===t?h_e:__e;i.setText(e),i.resetTokenState(n);let a,s,l,c,d,u=!0;const p=o({advance:function(){d=void 0;i.getTokenFullStart()!==n?u=!!s&&4===Fe(s).kind:i.scan();a=void 0,s=void 0;let e=i.getTokenFullStart();for(;e<r;){const t=i.getToken();if(!Qy(t))break;i.scan();const n={pos:e,end:i.getTokenFullStart(),kind:t};e=i.getTokenFullStart(),a=Ee(a,n)}l=i.getTokenFullStart()},readTokenInfo:function(e){In.assert(f());const t=function(e){switch(e.kind){case 34:case 72:case 73:case 50:case 49:return!0}return!1}(e)?1:(o=e,14===o.kind?2:function(e){return 17===e.kind||18===e.kind}(e)?3:function(e){if(e.parent)switch(e.parent.kind){case 291:case 286:case 287:case 285:return Vy(e.kind)||80===e.kind}return!1}(e)?4:(n=e,BR(n)||ON(n)&&12===(null==d?void 0:d.token.kind)?5:function(e){return e.parent&&VN(e.parent)&&e.parent.initializer===e}(e)?6:0));var n;var o;if(d&&t===c)return _(d,e);i.getTokenFullStart()!==l&&(In.assert(void 0!==d),i.resetTokenState(l),i.scan());let u=function(e,t){const n=i.getToken();switch(c=0,t){case 1:if(32===n){c=1;const t=i.reScanGreaterToken();return In.assert(e.kind===t),t}break;case 2:if(44===(r=n)||69===r){c=2;const t=i.reScanSlashToken();return In.assert(e.kind===t),t}break;case 3:if(20===n)return c=3,i.reScanTemplateToken(!1);break;case 4:return c=4,i.scanJsxIdentifier();case 5:return c=5,i.reScanJsxToken(!1);case 6:return c=6,i.reScanJsxAttributeValue();case 0:break;default:In.assertNever(t)}var r;return n}(e,t);const p=ege(i.getTokenFullStart(),i.getTokenEnd(),u);s&&(s=void 0);for(;i.getTokenFullStart()<r&&(u=i.scan(),Qy(u));){const e=ege(i.getTokenFullStart(),i.getTokenEnd(),u);if(s||(s=[]),s.push(e),4===u){i.scan();break}}return d={leadingTrivia:a,trailingTrivia:s,token:p},_(d,e)},readEOFTokenRange:function(){return In.assert(m()),ege(i.getTokenFullStart(),i.getTokenEnd(),1)},isOnToken:f,isOnEOF:m,getCurrentLeadingTrivia:()=>a,lastTrailingTriviaWasNewLine:()=>u,skipToEndOf:function(e){i.resetTokenState(e.end),l=i.getTokenFullStart(),c=void 0,d=void 0,u=!1,a=void 0,s=void 0},skipToStartOf:function(e){i.resetTokenState(e.pos),l=i.getTokenFullStart(),c=void 0,d=void 0,u=!1,a=void 0,s=void 0},getTokenFullStart:()=>(null==d?void 0:d.token.pos)??i.getTokenStart(),getStartPos:()=>(null==d?void 0:d.token.pos)??i.getTokenStart()});return d=void 0,i.setText(void 0),p;function f(){const e=d?d.token.kind:i.getToken();return 1!==e&&!Qy(e)}function m(){return 1===(d?d.token.kind:i.getToken())}function _(e,t){return Yc(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}var b_e,E_e,S_e,T_e=b({"src/services/formatting/formattingScanner.ts"(){Tge(),Sge(),__e=Bs(99,!1,0),h_e=Bs(99,!1,1)}}),x_e=b({"src/services/formatting/rule.ts"(){Tge(),b_e=o,E_e=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(E_e||{}),S_e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(S_e||{})}});function A_e(){const e=[];for(let p=0;p<=165;p++)1!==p&&e.push(p);function t(...t){return{tokens:e.filter((e=>!t.some((t=>t===e)))),isSpecific:!1}}const n={tokens:e,isSpecific:!1},r=R_e([...e,3]),o=R_e([...e,1]),i=D_e(83,165),a=D_e(30,79),s=[103,104,165,130,142,152],l=[80,...XX],c=r,d=R_e([80,32,3,86,95,102]),u=R_e([22,3,92,113,98,93,85]);return[...[I_e("IgnoreBeforeComment",n,[2,3],b_e,1),I_e("IgnoreAfterLineComment",2,n,b_e,1),I_e("NotSpaceBeforeColon",n,59,[uhe,z_e,B_e],16),I_e("SpaceAfterColon",59,n,[uhe,z_e,ghe],4),I_e("NoSpaceBeforeQuestionMark",n,58,[uhe,z_e,B_e],16),I_e("SpaceAfterQuestionMarkInConditionalOperator",58,n,[uhe,V_e],4),I_e("NoSpaceAfterQuestionMark",58,n,[uhe,j_e],16),I_e("NoSpaceBeforeDot",n,[25,29],[uhe,Whe],16),I_e("NoSpaceAfterDot",[25,29],n,[uhe],16),I_e("NoSpaceBetweenImportParenInImportType",102,21,[uhe,dhe],16),I_e("NoSpaceAfterUnaryPrefixOperator",[46,47,55,54],[9,10,80,21,23,19,110,105],[uhe,z_e],16),I_e("NoSpaceAfterUnaryPreincrementOperator",46,[80,21,110,105],[uhe],16),I_e("NoSpaceAfterUnaryPredecrementOperator",47,[80,21,110,105],[uhe],16),I_e("NoSpaceBeforeUnaryPostincrementOperator",[80,22,24,105],46,[uhe,whe],16),I_e("NoSpaceBeforeUnaryPostdecrementOperator",[80,22,24,105],47,[uhe,whe],16),I_e("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[uhe,W_e],4),I_e("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[uhe,W_e],4),I_e("SpaceAfterAddWhenFollowedByPreincrement",40,46,[uhe,W_e],4),I_e("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[uhe,W_e],4),I_e("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[uhe,W_e],4),I_e("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[uhe,W_e],4),I_e("NoSpaceAfterCloseBrace",20,[28,27],[uhe],16),I_e("NewLineBeforeCloseBraceInBlockContext",r,20,[q_e],8),I_e("SpaceAfterCloseBrace",20,t(22),[uhe,nhe],4),I_e("SpaceBetweenCloseBraceAndElse",20,93,[uhe],4),I_e("SpaceBetweenCloseBraceAndWhile",20,117,[uhe],4),I_e("NoSpaceBetweenEmptyBraceBrackets",19,20,[uhe,ohe],16),I_e("SpaceAfterConditionalClosingParen",22,23,[rhe],4),I_e("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Z_e],16),I_e("SpaceAfterStarInGeneratorDeclaration",42,80,[Z_e],4),I_e("SpaceAfterFunctionInFuncDecl",100,n,[Y_e],4),I_e("NewLineAfterOpenBraceInBlockContext",19,n,[q_e],8),I_e("SpaceAfterGetSetInMember",[139,153],80,[Y_e],4),I_e("NoSpaceBetweenYieldKeywordAndStar",127,42,[uhe,khe],16),I_e("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[uhe,khe],4),I_e("NoSpaceBetweenReturnAndSemicolon",107,27,[uhe],16),I_e("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[uhe],4),I_e("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[uhe,The],4),I_e("NoSpaceBeforeOpenParenInFuncCall",n,21,[uhe,ihe,ahe],16),I_e("SpaceBeforeBinaryKeywordOperator",n,s,[uhe,W_e],4),I_e("SpaceAfterBinaryKeywordOperator",s,n,[uhe,W_e],4),I_e("SpaceAfterVoidOperator",116,n,[uhe,Lhe],4),I_e("SpaceBetweenAsyncAndOpenParen",134,21,[che,uhe],4),I_e("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[uhe],4),I_e("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[uhe],16),I_e("SpaceBeforeJsxAttribute",n,80,[_he,uhe],4),I_e("SpaceBeforeSlashInJsxOpeningElement",n,44,[vhe,uhe],4),I_e("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[vhe,uhe],16),I_e("NoSpaceBeforeEqualInJsxAttribute",n,64,[hhe,uhe],16),I_e("NoSpaceAfterEqualInJsxAttribute",64,n,[hhe,uhe],16),I_e("NoSpaceBeforeJsxNamespaceColon",80,59,[yhe],16),I_e("NoSpaceAfterJsxNamespaceColon",59,80,[yhe],16),I_e("NoSpaceAfterModuleImport",[144,149],21,[uhe],16),I_e("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],n,[uhe],4),I_e("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[uhe],4),I_e("SpaceAfterModuleName",11,19,[Ahe],4),I_e("SpaceBeforeArrow",n,39,[uhe],4),I_e("SpaceAfterArrow",39,n,[uhe],4),I_e("NoSpaceAfterEllipsis",26,80,[uhe],16),I_e("NoSpaceAfterOptionalParameters",58,[22,28],[uhe,z_e],16),I_e("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[uhe,Ihe],16),I_e("NoSpaceBeforeOpenAngularBracket",l,30,[uhe,Dhe],16),I_e("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[uhe,Dhe],16),I_e("NoSpaceAfterOpenAngularBracket",30,n,[uhe,Dhe],16),I_e("NoSpaceBeforeCloseAngularBracket",n,32,[uhe,Dhe],16),I_e("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[uhe,Dhe,Q_e,Mhe],16),I_e("SpaceBeforeAt",[22,80],60,[uhe],4),I_e("NoSpaceAfterAt",60,n,[uhe],16),I_e("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Ehe],4),I_e("NoSpaceBeforeNonNullAssertionOperator",n,54,[uhe,Phe],16),I_e("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[uhe,Rhe],16),I_e("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[uhe],4)],...[I_e("SpaceAfterConstructor",137,21,[M_e("insertSpaceAfterConstructor"),uhe],4),I_e("NoSpaceAfterConstructor",137,21,[k_e("insertSpaceAfterConstructor"),uhe],16),I_e("SpaceAfterComma",28,n,[M_e("insertSpaceAfterCommaDelimiter"),uhe,fhe,she,lhe],4),I_e("NoSpaceAfterComma",28,n,[k_e("insertSpaceAfterCommaDelimiter"),uhe,fhe],16),I_e("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[M_e("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Y_e],4),I_e("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[k_e("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Y_e],16),I_e("SpaceAfterKeywordInControl",i,21,[M_e("insertSpaceAfterKeywordsInControlFlowStatements"),rhe],4),I_e("NoSpaceAfterKeywordInControl",i,21,[k_e("insertSpaceAfterKeywordsInControlFlowStatements"),rhe],16),I_e("SpaceAfterOpenParen",21,n,[M_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),uhe],4),I_e("SpaceBeforeCloseParen",n,22,[M_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),uhe],4),I_e("SpaceBetweenOpenParens",21,21,[M_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),uhe],4),I_e("NoSpaceBetweenParens",21,22,[uhe],16),I_e("NoSpaceAfterOpenParen",21,n,[k_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),uhe],16),I_e("NoSpaceBeforeCloseParen",n,22,[k_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),uhe],16),I_e("SpaceAfterOpenBracket",23,n,[M_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),uhe],4),I_e("SpaceBeforeCloseBracket",n,24,[M_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),uhe],4),I_e("NoSpaceBetweenBrackets",23,24,[uhe],16),I_e("NoSpaceAfterOpenBracket",23,n,[k_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),uhe],16),I_e("NoSpaceBeforeCloseBracket",n,24,[k_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),uhe],16),I_e("SpaceAfterOpenBrace",19,n,[w_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),H_e],4),I_e("SpaceBeforeCloseBrace",n,20,[w_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),H_e],4),I_e("NoSpaceBetweenEmptyBraceBrackets",19,20,[uhe,ohe],16),I_e("NoSpaceAfterOpenBrace",19,n,[L_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),uhe],16),I_e("NoSpaceBeforeCloseBrace",n,20,[L_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),uhe],16),I_e("SpaceBetweenEmptyBraceBrackets",19,20,[M_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),I_e("NoSpaceBetweenEmptyBraceBrackets",19,20,[L_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),uhe],16),I_e("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[M_e("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),phe],4,1),I_e("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[M_e("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),uhe],4),I_e("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[k_e("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),phe],16,1),I_e("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[k_e("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),uhe],16),I_e("SpaceAfterOpenBraceInJsxExpression",19,n,[M_e("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),uhe,mhe],4),I_e("SpaceBeforeCloseBraceInJsxExpression",n,20,[M_e("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),uhe,mhe],4),I_e("NoSpaceAfterOpenBraceInJsxExpression",19,n,[k_e("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),uhe,mhe],16),I_e("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[k_e("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),uhe,mhe],16),I_e("SpaceAfterSemicolonInFor",27,n,[M_e("insertSpaceAfterSemicolonInForStatements"),uhe,O_e],4),I_e("NoSpaceAfterSemicolonInFor",27,n,[k_e("insertSpaceAfterSemicolonInForStatements"),uhe,O_e],16),I_e("SpaceBeforeBinaryOperator",n,a,[M_e("insertSpaceBeforeAndAfterBinaryOperators"),uhe,W_e],4),I_e("SpaceAfterBinaryOperator",a,n,[M_e("insertSpaceBeforeAndAfterBinaryOperators"),uhe,W_e],4),I_e("NoSpaceBeforeBinaryOperator",n,a,[k_e("insertSpaceBeforeAndAfterBinaryOperators"),uhe,W_e],16),I_e("NoSpaceAfterBinaryOperator",a,n,[k_e("insertSpaceBeforeAndAfterBinaryOperators"),uhe,W_e],16),I_e("SpaceBeforeOpenParenInFuncDecl",n,21,[M_e("insertSpaceBeforeFunctionParenthesis"),uhe,Y_e],4),I_e("NoSpaceBeforeOpenParenInFuncDecl",n,21,[k_e("insertSpaceBeforeFunctionParenthesis"),uhe,Y_e],16),I_e("NewLineBeforeOpenBraceInControl",u,19,[M_e("placeOpenBraceOnNewLineForControlBlocks"),rhe,K_e],8,1),I_e("NewLineBeforeOpenBraceInFunction",c,19,[M_e("placeOpenBraceOnNewLineForFunctions"),Y_e,K_e],8,1),I_e("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",d,19,[M_e("placeOpenBraceOnNewLineForFunctions"),ehe,K_e],8,1),I_e("SpaceAfterTypeAssertion",32,n,[M_e("insertSpaceAfterTypeAssertion"),uhe,Nhe],4),I_e("NoSpaceAfterTypeAssertion",32,n,[k_e("insertSpaceAfterTypeAssertion"),uhe,Nhe],16),I_e("SpaceBeforeTypeAnnotation",n,[58,59],[M_e("insertSpaceBeforeTypeAnnotation"),uhe,G_e],4),I_e("NoSpaceBeforeTypeAnnotation",n,[58,59],[k_e("insertSpaceBeforeTypeAnnotation"),uhe,G_e],16),I_e("NoOptionalSemicolon",27,o,[N_e("semicolons","remove"),Ohe],32),I_e("OptionalSemicolon",n,o,[N_e("semicolons","insert"),Fhe],64)],...[I_e("NoSpaceBeforeSemicolon",n,27,[uhe],16),I_e("SpaceBeforeOpenBraceInControl",u,19,[P_e("placeOpenBraceOnNewLineForControlBlocks"),rhe,xhe,U_e],4,1),I_e("SpaceBeforeOpenBraceInFunction",c,19,[P_e("placeOpenBraceOnNewLineForFunctions"),Y_e,X_e,xhe,U_e],4,1),I_e("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",d,19,[P_e("placeOpenBraceOnNewLineForFunctions"),ehe,xhe,U_e],4,1),I_e("NoSpaceBeforeComma",n,28,[uhe],16),I_e("NoSpaceBeforeOpenBracket",t(134,84),23,[uhe],16),I_e("NoSpaceAfterCloseBracket",24,n,[uhe,bhe],16),I_e("SpaceAfterSemicolon",27,n,[uhe],4),I_e("SpaceBetweenForAndAwaitKeyword",99,135,[uhe],4),I_e("SpaceBetweenStatements",[22,92,93,84],n,[uhe,fhe,F_e],4),I_e("SpaceAfterTryCatchFinally",[113,85,98],19,[uhe],4)]]}function I_e(e,t,n,r,o,i=0){return{leftTokenRange:C_e(t),rightTokenRange:C_e(n),rule:{debugName:e,context:r,action:o,flags:i}}}function R_e(e){return{tokens:e,isSpecific:!0}}function C_e(e){return"number"===typeof e?R_e([e]):mt(e)?R_e(e):e}function D_e(e,t,n=[]){const r=[];for(let o=e;o<=t;o++)F(n,o)||r.push(o);return R_e(r)}function N_e(e,t){return n=>n.options&&n.options[e]===t}function M_e(e){return t=>t.options&&He(t.options,e)&&!!t.options[e]}function L_e(e){return t=>t.options&&He(t.options,e)&&!t.options[e]}function k_e(e){return t=>!t.options||!He(t.options,e)||!t.options[e]}function P_e(e){return t=>!t.options||!He(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function w_e(e){return t=>!t.options||!He(t.options,e)||!!t.options[e]}function O_e(e){return 248===e.contextNode.kind}function F_e(e){return!O_e(e)}function W_e(e){switch(e.contextNode.kind){case 226:return 28!==e.contextNode.operatorToken.kind;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return 64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 249:case 168:return 103===e.currentTokenSpan.kind||103===e.nextTokenSpan.kind||64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 250:return 165===e.currentTokenSpan.kind||165===e.nextTokenSpan.kind}return!1}function z_e(e){return!W_e(e)}function B_e(e){return!G_e(e)}function G_e(e){const t=e.contextNode.kind;return 172===t||171===t||169===t||260===t||Cd(t)}function j_e(e){return!function(e){return TC(e.contextNode)&&e.contextNode.questionToken}(e)}function V_e(e){return 227===e.contextNode.kind||194===e.contextNode.kind}function U_e(e){return e.TokensAreOnSameLine()||X_e(e)}function H_e(e){return 206===e.contextNode.kind||200===e.contextNode.kind||function(e){return J_e(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function K_e(e){return X_e(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function q_e(e){return J_e(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function J_e(e){return $_e(e.contextNode)}function X_e(e){return $_e(e.nextTokenParent)}function $_e(e){if(the(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function Y_e(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function Q_e(e){return!Y_e(e)}function Z_e(e){return 262===e.contextNode.kind||218===e.contextNode.kind}function ehe(e){return the(e.contextNode)}function the(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function nhe(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||219!==t.kind&&218!==t.kind)return!0}}return!1}function rhe(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function ohe(e){return 210===e.contextNode.kind}function ihe(e){return function(e){return 213===e.contextNode.kind}(e)||function(e){return 214===e.contextNode.kind}(e)}function ahe(e){return 28!==e.currentTokenSpan.kind}function she(e){return 24!==e.nextTokenSpan.kind}function lhe(e){return 22!==e.nextTokenSpan.kind}function che(e){return 219===e.contextNode.kind}function dhe(e){return 205===e.contextNode.kind}function uhe(e){return e.TokensAreOnSameLine()&&12!==e.contextNode.kind}function phe(e){return 12!==e.contextNode.kind}function fhe(e){return 284!==e.contextNode.kind&&288!==e.contextNode.kind}function mhe(e){return 294===e.contextNode.kind||293===e.contextNode.kind}function _he(e){return 291===e.nextTokenParent.kind||295===e.nextTokenParent.kind&&291===e.nextTokenParent.parent.kind}function hhe(e){return 291===e.contextNode.kind}function ghe(e){return 295!==e.nextTokenParent.kind}function yhe(e){return 295===e.nextTokenParent.kind}function vhe(e){return 285===e.contextNode.kind}function bhe(e){return!Y_e(e)&&!X_e(e)}function Ehe(e){return e.TokensAreOnSameLine()&&Xb(e.contextNode)&&She(e.currentTokenParent)&&!She(e.nextTokenParent)}function She(e){for(;e&&uu(e);)e=e.parent;return e&&170===e.kind}function The(e){return 261===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function xhe(e){return 2!==e.formattingRequestKind}function Ahe(e){return 267===e.contextNode.kind}function Ihe(e){return 187===e.contextNode.kind}function Rhe(e){return 180===e.contextNode.kind}function Che(e,t){if(30!==e.kind&&32!==e.kind)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function Dhe(e){return Che(e.currentTokenSpan,e.currentTokenParent)||Che(e.nextTokenSpan,e.nextTokenParent)}function Nhe(e){return 216===e.contextNode.kind}function Mhe(e){return!Nhe(e)}function Lhe(e){return 116===e.currentTokenSpan.kind&&222===e.currentTokenParent.kind}function khe(e){return 229===e.contextNode.kind&&void 0!==e.contextNode.expression}function Phe(e){return 235===e.contextNode.kind}function whe(e){return!function(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}(e)}function Ohe(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(Qy(t)){const r=e.nextTokenParent===e.currentTokenParent?pY(e.currentTokenParent,Cl(e.currentTokenParent,(e=>!e.parent)),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!r)return!0;t=r.kind,n=r.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(n).line?20===t||1===t:240!==t&&27!==t&&(264===e.contextNode.kind||265===e.contextNode.kind?!SC(e.currentTokenParent)||!!e.currentTokenParent.type||21!==t:TC(e.currentTokenParent)?!e.currentTokenParent.initializer:248!==e.currentTokenParent.kind&&242!==e.currentTokenParent.kind&&240!==e.currentTokenParent.kind&&23!==t&&21!==t&&40!==t&&41!==t&&44!==t&&14!==t&&28!==t&&228!==t&&16!==t&&15!==t&&25!==t)}function Fhe(e){return UZ(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Whe(e){return!lD(e.contextNode)||!FR(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var zhe,Bhe,Ghe,jhe,Vhe,Uhe=b({"src/services/formatting/rules.ts"(){Tge(),Sge()}});function Hhe(e,t){return{options:e,getRules:Khe(),host:t}}function Khe(){return void 0===zhe&&(zhe=function(e){const t=function(e){const t=new Array(jhe*jhe),n=new Array(t.length);for(const r of e){const e=r.leftTokenRange.isSpecific&&r.rightTokenRange.isSpecific;for(const o of r.leftTokenRange.tokens)for(const i of r.rightTokenRange.tokens){const a=Jhe(o,i);let s=t[a];void 0===s&&(s=t[a]=[]),Xhe(s,r.rule,e,n,a)}}return t}(e);return e=>{const n=t[Jhe(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(n){const t=[];let r=0;for(const o of n){const n=~qhe(r);o.action&n&&M(o.context,(t=>t(e)))&&(t.push(o),r|=o.action)}if(t.length)return t}}}(A_e())),zhe}function qhe(e){let t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function Jhe(e,t){return In.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*jhe+t}function Xhe(e,t,n,r,o){const i=3&t.action?n?0:Vhe.StopRulesAny:t.context!==b_e?n?Vhe.ContextRulesSpecific:Vhe.ContextRulesAny:n?Vhe.NoContextRulesSpecific:Vhe.NoContextRulesAny,a=r[o]||0;e.splice(function(e,t){let n=0;for(let r=0;r<=t;r+=Bhe)n+=e&Ghe,e>>=Bhe;return n}(a,i),0,t),r[o]=function(e,t){const n=1+(e>>t&Ghe);return In.assert((n&Ghe)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(Ghe<<t)|n<<t}(a,i)}var $he,Yhe,Qhe,Zhe=b({"src/services/formatting/rulesMap.ts"(){var e;Tge(),Sge(),Bhe=5,Ghe=31,jhe=166,(e=Vhe||{})[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=1*Bhe]="StopRulesAny",e[e.ContextRulesSpecific=2*Bhe]="ContextRulesSpecific",e[e.ContextRulesAny=3*Bhe]="ContextRulesAny",e[e.NoContextRulesSpecific=4*Bhe]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*Bhe]="NoContextRulesAny",Vhe=e}});function ege(e,t,n){const r={pos:e,end:t,kind:n};return In.isDebugging&&Object.defineProperty(r,"__debugKind",{get:()=>In.formatSyntaxKind(n)}),r}function tge(e,t,n){const r=t.getLineAndCharacterOfPosition(e).line;if(0===r)return[];let o=rm(r,t);for(;gs(t.text.charCodeAt(o));)o--;ys(t.text.charCodeAt(o))&&o--;return pge({pos:tm(r-1,t),end:o+1},t,n,2)}function nge(e,t,n){return uge(lge(sge(e,27,t)),t,n,3)}function rge(e,t,n){const r=sge(e,19,t);if(!r)return[];return pge({pos:k$(lge(r.parent).getStart(t),t),end:e},t,n,4)}function oge(e,t,n){return uge(lge(sge(e,20,t)),t,n,5)}function ige(e,t){return pge({pos:0,end:e.text.length},e,t,0)}function age(e,t,n,r){return pge({pos:k$(e,n),end:t},n,r,1)}function sge(e,t,n){const r=fY(e,n);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function lge(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!cge(t.parent,t);)t=t.parent;return t}function cge(e,t){switch(e.kind){case 263:case 264:return P$(e.members,t);case 267:const n=e.body;return!!n&&268===n.kind&&P$(n.statements,t);case 312:case 241:case 268:return P$(e.statements,t);case 299:return P$(e.block.statements,t)}return!1}function dge(e,t,n,r,o,i){const a={pos:e.pos,end:e.end};return v_e(t.text,n,a.pos,a.end,(n=>fge(a,e,r,o,n,i,1,(e=>!1),t)))}function uge(e,t,n,r){if(!e)return[];return pge({pos:k$(e.getStart(t),t),end:e.end},t,n,r)}function pge(e,t,n,r){const o=function(e,t){return function n(r){const o=oP(r,(n=>W$(n.getStart(t),n.end,e)&&n));if(o){const e=n(o);if(e)return e}return r}(t)}(e,t);return v_e(t.text,t.languageVariant,function(e,t,n){const r=e.getStart(n);if(r===t.pos&&e.end===t.end)return r;const o=fY(t.pos,n);return o?o.end>=t.pos?e.pos:o.end:e.pos}(o,e,t),e.end,(i=>fge(e,o,hge.getIndentationForNode(o,e,t,n.options),function(e,t,n){let r,o=-1;for(;e;){const i=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==o&&i!==o)break;if(hge.shouldIndentChildNode(t,e,r,n))return t.indentSize;o=i,r=e,e=e.parent}return 0}(o,n.options,t),i,n,r,function(e,t){if(!e.length)return o;const n=e.filter((e=>B$(t,e.start,e.start+e.length))).sort(((e,t)=>e.start-t.start));if(!n.length)return o;let r=0;return e=>{for(;;){if(r>=n.length)return!1;const t=n[r];if(e.end<=t.start)return!1;if(j$(e.pos,e.end,t.start,t.start+t.length))return!0;r++}};function o(){return!1}}(t.parseDiagnostics,e),t)))}function fge(e,t,n,r,o,{options:i,getRules:a,host:s},l,c,d){var u;const p=new m_e(d,l,i);let f,m,_,h,g,y=-1;const v=[];if(o.advance(),o.isOnToken()){const a=d.getLineAndCharacterOfPosition(t.getStart(d)).line;let s=a;Xb(t)&&(s=d.getLineAndCharacterOfPosition(bm(t,d)).line),function t(n,r,a,s,l,u){if(!B$(e,n.getStart(d),n.getEnd()))return;const p=E(n,a,l,u);let _=r;oP(n,(e=>{h(e,-1,n,p,a,s,!1)}),(e=>{v(e,n,a,p)}));for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){const t=o.readTokenInfo(n);if(t.token.end>Math.min(n.end,e.end))break;b(t,n,p,n)}function h(r,a,s,l,c,u,p,f){if(In.assert(!Sv(r)),im(r)||sm(s,r))return a;const m=r.getStart(d),h=d.getLineAndCharacterOfPosition(m).line;let v=h;Xb(r)&&(v=d.getLineAndCharacterOfPosition(bm(r,d)).line);let E=-1;if(p&&P$(e,s)&&(E=function(e,t,n,r,o){if(B$(r,e,t)||z$(r,e,t)){if(-1!==o)return o}else{const t=d.getLineAndCharacterOfPosition(e).line,r=k$(e,d),o=hge.findFirstNonWhitespaceColumn(r,e,d,i);if(t!==n||e===o){const e=hge.getBaseIndentation(i);return e>o?e:o}}return-1}(m,r.end,c,e,a),-1!==E&&(a=E)),!B$(e,r.pos,r.end))return r.end<e.pos&&o.skipToEndOf(r),a;if(0===r.getFullWidth())return a;for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){const t=o.readTokenInfo(n);if(t.token.end>e.end)return a;if(t.token.end>m){t.token.pos>m&&o.skipToStartOf(r);break}b(t,n,l,n)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return a;if(Yc(r)){const e=o.readTokenInfo(r);if(12!==r.kind)return In.assert(e.token.end===r.end,"Token end is child end"),b(e,n,l,r),a}const S=170===r.kind?h:u,T=function(e,t,n,r,o,a){const s=hge.shouldIndentChildNode(i,e)?i.indentSize:0;return a===t?{indentation:t===g?y:o.getIndentation(),delta:Math.min(i.indentSize,o.getDelta(e)+s)}:-1===n?21===e.kind&&t===g?{indentation:y,delta:o.getDelta(e)}:hge.childStartsOnTheSameLineWithElseInIfStatement(r,e,t,d)||hge.childIsUnindentedBranchOfConditionalExpression(r,e,t,d)||hge.argumentStartsOnSameLineAsPreviousArgument(r,e,t,d)?{indentation:o.getIndentation(),delta:s}:{indentation:o.getIndentation()+o.getDelta(e),delta:s}:{indentation:n,delta:s}}(r,h,E,n,l,S);return t(r,_,h,v,T.indentation,T.delta),_=n,f&&209===s.kind&&-1===a&&(a=T.indentation),a}function v(t,r,a,s){In.assert(Qc(t)),In.assert(!Sv(t));const l=function(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}(r,t);let c=s,u=a;if(!B$(e,t.pos,t.end))return void(t.end<e.pos&&o.skipToEndOf(t));if(0!==l)for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){const e=o.readTokenInfo(r);if(e.token.end>t.pos)break;if(e.token.kind===l){let t;if(u=d.getLineAndCharacterOfPosition(e.token.pos).line,b(e,r,s,r),-1!==y)t=y;else{const n=k$(e.token.pos,d);t=hge.findFirstNonWhitespaceColumn(n,e.token.pos,d,i)}c=E(r,a,t,i.indentSize)}else b(e,r,s,r)}let p=-1;for(let e=0;e<t.length;e++){p=h(t[e],p,n,c,u,u,!0,0===e)}const f=function(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}(l);if(0!==f&&o.isOnToken()&&o.getTokenFullStart()<e.end){let e=o.readTokenInfo(r);28===e.token.kind&&(b(e,r,c,r),e=o.isOnToken()?o.readTokenInfo(r):void 0),e&&e.token.kind===f&&P$(r,e.token)&&b(e,r,c,r,!0)}}function b(t,n,r,i,a){In.assert(P$(n,t.token));const s=o.lastTrailingTriviaWasNewLine();let l=!1;t.leadingTrivia&&T(t.leadingTrivia,n,_,r);let u=0;const p=P$(e,t.token),h=d.getLineAndCharacterOfPosition(t.token.pos);if(p){const e=c(t.token),o=m;if(u=x(t.token,h,n,_,r),!e)if(0===u){const e=o&&d.getLineAndCharacterOfPosition(o.end).line;l=s&&h.line!==e}else l=1===u}if(t.trailingTrivia&&(f=Fe(t.trailingTrivia).end,T(t.trailingTrivia,n,_,r)),l){const e=p&&!c(t.token)?r.getIndentationForToken(h.line,t.token.kind,i,!!a):-1;let n=!0;if(t.leadingTrivia){const o=r.getIndentationForComment(t.token.kind,e,i);n=S(t.leadingTrivia,o,n,(e=>R(e.pos,o,!1)))}-1!==e&&n&&(R(t.token.pos,e,1===u),g=h.line,y=e)}o.advance(),_=n}}(t,t,a,s,n,r)}const b=o.getCurrentLeadingTrivia();if(b){const r=hge.nodeWillIndentChild(i,t,void 0,d,!1)?n+i.indentSize:n;S(b,r,!0,(e=>{x(e,d.getLineAndCharacterOfPosition(e.pos),t,t,void 0),R(e.pos,r,!1)})),!1!==i.trimTrailingWhitespace&&function(t){let n=m?m.end:e.pos;for(const e of t)kY(e.kind)&&(n<e.pos&&M(n,e.pos-1,m),n=e.end+1);n<e.end&&M(n,e.end,m)}(b)}if(m&&o.getTokenFullStart()>=e.end){const e=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(e&&e.pos===f){const n=(null==(u=fY(e.end,d,t))?void 0:u.parent)||_;I(e,d.getLineAndCharacterOfPosition(e.pos).line,n,m,h,_,n,void 0)}}return v;function E(e,t,n,r){return{getIndentationForComment:(e,t,r)=>{switch(e){case 20:case 24:case 22:return n+o(r)}return-1!==t?t:n},getIndentationForToken:(r,i,a,s)=>!s&&function(n,r,o){switch(r){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(o.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(200!==o.kind)return!1}return t!==n&&!(Xb(e)&&r===function(e){if(vk(e)){const t=L(e.modifiers,vd,P(e.modifiers,EC));if(t)return t.kind}switch(e.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(e.asteriskToken)return 42;case 172:case 169:const t=jl(e);if(t)return t.kind}}(e))}(r,i,a)?n+o(a):n,getIndentation:()=>n,getDelta:o,recomputeIndentation:(t,o)=>{hge.shouldIndentChildNode(i,o,e,d)&&(n+=t?i.indentSize:-i.indentSize,r=hge.shouldIndentChildNode(i,e)?i.indentSize:0)}};function o(t){return hge.nodeWillIndentChild(i,e,t,d,!0)?r:0}}function S(t,n,r,o){for(const i of t){const t=P$(e,i);switch(i.kind){case 3:t&&C(i,n,!r),r=!1;break;case 2:r&&t&&o(i),r=!1;break;case 4:r=!0}}return r}function T(t,n,r,o){for(const i of t)if(kY(i.kind)&&P$(e,i)){x(i,d.getLineAndCharacterOfPosition(i.pos),n,r,o)}}function x(t,n,r,o,i){let a=0;if(!c(t))if(m)a=I(t,n.line,r,m,h,_,o,i);else{D(d.getLineAndCharacterOfPosition(e.pos).line,n.line)}return m=t,f=t.end,_=r,h=n.line,a}function I(e,t,n,r,o,l,c,u){p.updateContext(r,l,e,n,c);const f=a(p);let m=!1!==p.options.trimTrailingWhitespace,_=0;return f?A(f,(a=>{if(_=function(e,t,n,r,o){const a=o!==n;switch(e.action){case 1:return 0;case 16:if(t.end!==r.pos)return k(t.end,r.pos-t.end),a?2:0;break;case 32:k(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&n!==o)return 0;if(1!==o-n)return w(t.end,r.pos-t.end,eZ(s,i)),a?0:1;break;case 4:if(1!==e.flags&&n!==o)return 0;if(1!==r.pos-t.end||32!==d.text.charCodeAt(t.end))return w(t.end,r.pos-t.end," "),a?2:0;break;case 64:l=t.end,(c=";")&&v.push($Y(l,0,c))}var l,c;return 0}(a,r,o,e,t),u)switch(_){case 2:n.getStart(d)===e.pos&&u.recomputeIndentation(!1,c);break;case 1:n.getStart(d)===e.pos&&u.recomputeIndentation(!0,c);break;default:In.assert(0===_)}m=m&&!(16&a.action)&&1!==a.flags})):m=m&&1!==e.kind,t!==o&&m&&D(o,t,r),_}function R(e,t,n){const r=_ge(t,i);if(n)w(e,0,r);else{const n=d.getLineAndCharacterOfPosition(e),o=tm(n.line,d);(t!==function(e,t){let n=0;for(let r=0;r<t;r++)9===d.text.charCodeAt(e+r)?n+=i.tabSize-n%i.tabSize:n++;return n}(o,n.character)||function(e,t){return e!==d.text.substr(t,e.length)}(r,o))&&w(o,n.character,r)}}function C(e,t,n,r=!0){let o=d.getLineAndCharacterOfPosition(e.pos).line;const a=d.getLineAndCharacterOfPosition(e.end).line;if(o===a)return void(n||R(e.pos,t,!1));const s=[];let l=e.pos;for(let i=o;i<a;i++){const e=rm(i,d);s.push({pos:l,end:e}),l=tm(i+1,d)}if(r&&s.push({pos:l,end:e.end}),0===s.length)return;const c=tm(o,d),u=hge.findFirstNonWhitespaceCharacterAndColumn(c,s[0].pos,d,i);let p=0;n&&(p=1,o++);const f=t-u.column;for(let m=p;m<s.length;m++,o++){const e=tm(o,d),t=0===m?u:hge.findFirstNonWhitespaceCharacterAndColumn(s[m].pos,s[m].end,d,i),n=t.column+f;if(n>0){const r=_ge(n,i);w(e,t.character,r)}else k(e,t.character)}}function D(e,t,n){for(let r=e;r<t;r++){const e=tm(r,d),t=rm(r,d);if(n&&(kY(n.kind)||PY(n.kind))&&n.pos<=t&&n.end>t)continue;const o=N(e,t);-1!==o&&(In.assert(o===e||!gs(d.text.charCodeAt(o-1))),k(o,t+1-o))}}function N(e,t){let n=t;for(;n>=e&&gs(d.text.charCodeAt(n));)n--;return n!==t?n+1:-1}function M(e,t,n){D(d.getLineAndCharacterOfPosition(e).line,d.getLineAndCharacterOfPosition(t).line+1,n)}function k(e,t){t&&v.push($Y(e,t,""))}function w(e,t,n){(t||n)&&v.push($Y(e,t,n))}}function mge(e,t,n,r=lY(e,t)){const o=Cl(r,bM);o&&(r=o.parent);if(r.getStart(e)<=t&&t<r.getEnd())return;const i=ce((n=null===n?void 0:void 0===n?fY(t,e):n)&&ws(e.text,n.end),B_(r,e));return i&&L(i,(n=>F$(n,t)||t===n.end&&(2===n.kind||t===e.getFullWidth())))}function _ge(e,t){if((!$he||$he.tabSize!==t.tabSize||$he.indentSize!==t.indentSize)&&($he={tabSize:t.tabSize,indentSize:t.indentSize},Yhe=Qhe=void 0),t.convertTabsToSpaces){let n;const r=Math.floor(e/t.indentSize),o=e%t.indentSize;return Qhe||(Qhe=[]),void 0===Qhe[r]?(n=oQ(" ",t.indentSize*r),Qhe[r]=n):n=Qhe[r],o?n+oQ(" ",o):n}{const n=Math.floor(e/t.tabSize),r=e-n*t.tabSize;let o;return Yhe||(Yhe=[]),void 0===Yhe[n]?Yhe[n]=o=oQ("\t",n):o=Yhe[n],r?o+oQ(" ",r):o}}var hge,gge=b({"src/services/formatting/formatting.ts"(){Tge(),Sge()}}),yge=b({"src/services/formatting/smartIndenter.ts"(){Tge(),Sge(),(e=>{let t;var n;function r(e){return e.baseIndentSize||0}function o(e,t,n,o,s,l,c){var m;let _=e.parent;for(;_;){let r=!0;if(n){const t=e.getStart(s);r=t<n.pos||t>n.end}const g=i(_,e,s),y=g.line===t.line||p(_,e,t.line,s);if(r){const n=null==(m=f(e,s))?void 0:m[0];let r=h(e,s,c,!!n&&d(n,s).line>g.line);if(-1!==r)return r+o;if(r=a(e,_,t,y,s,c),-1!==r)return r+o}S(c,_,e,s,l)&&!y&&(o+=c.indentSize);const v=u(_,e,t.line,s);_=(e=_).parent,t=v?s.getLineAndCharacterOfPosition(e.getStart(s)):g}return o+r(c)}function i(e,t,n){const r=f(t,n),o=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(o)}function a(e,t,n,r,o,i){return(Lu(e)||Pu(e))&&(312===t.kind||!r)?y(n,o,i):-1}let s;var l;function c(e,t,n,r){const o=pY(e,t,r);if(!o)return 0;if(19===o.kind)return 1;if(20===o.kind){return n===d(o,r).line?2:0}return 0}function d(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function u(e,t,n,r){if(!dD(e)||!F(e.arguments,t))return!1;return _s(r,e.expression.getEnd()).line===n}function p(e,t,n,r){if(245===e.kind&&e.elseStatement===t){const t=J$(e,93,r);In.assert(void 0!==t);return d(t,r).line===n}return!1}function f(e,t){return e.parent&&m(e.getStart(t),e.getEnd(),e.parent,t)}function m(e,t,n,r){switch(n.kind){case 183:return o(n.typeArguments);case 210:return o(n.properties);case 209:case 275:case 279:case 206:case 207:return o(n.elements);case 187:return o(n.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return o(n.typeParameters)||o(n.parameters);case 177:return o(n.parameters);case 263:case 231:case 264:case 265:case 352:return o(n.typeParameters);case 214:case 213:return o(n.typeArguments)||o(n.arguments);case 261:return o(n.declarations)}function o(o){return o&&z$(function(e,t,n){const r=e.getChildren(n);for(let o=1;o<r.length-1;o++)if(r[o].pos===t.pos&&r[o].end===t.end)return{pos:r[o-1].end,end:r[o+1].getStart(n)};return t}(n,o,r),e,t)?o:void 0}}function _(e,t,n){return e?y(t.getLineAndCharacterOfPosition(e.pos),t,n):-1}function h(e,t,n,r){if(e.parent&&261===e.parent.kind)return-1;const o=f(e,t);if(o){const i=o.indexOf(e);if(-1!==i){const e=g(o,i,t,n);if(-1!==e)return e}return _(o,t,n)+(r?n.indentSize:0)}return-1}function g(e,t,n,r){In.assert(t>=0&&t<e.length);let o=d(e[t],n);for(let i=t-1;i>=0;i--){if(28===e[i].kind)continue;if(n.getLineAndCharacterOfPosition(e[i].end).line!==o.line)return y(o,n,r);o=d(e[i],n)}return-1}function y(e,t,n){const r=t.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,t,n)}function v(e,t,n,r){let o=0,i=0;for(let a=e;a<t;a++){const e=n.text.charCodeAt(a);if(!gs(e))break;9===e?i+=r.tabSize+i%r.tabSize:i++,o++}return{column:i,character:o}}function b(e,t,n,r){return v(e,t,n,r).column}function E(e,t,n,r,o){const i=n?n.kind:0;switch(t.kind){case 244:case 263:case 231:case 264:case 266:case 265:case 209:case 241:case 268:case 210:case 187:case 200:case 189:case 217:case 211:case 213:case 214:case 243:case 277:case 253:case 227:case 207:case 206:case 286:case 289:case 285:case 294:case 173:case 179:case 180:case 169:case 184:case 185:case 196:case 215:case 223:case 279:case 275:case 281:case 276:case 172:case 296:case 297:return!0;case 269:return e.indentSwitchCase??!0;case 260:case 303:case 226:if(!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&r&&210===i)return T(r,n);if(226===t.kind&&r&&n&&284===i){return r.getLineAndCharacterOfPosition(Ts(r.text,t.pos)).line!==r.getLineAndCharacterOfPosition(Ts(r.text,n.pos)).line}if(226!==t.kind)return!0;break;case 246:case 247:case 249:case 250:case 248:case 245:case 262:case 218:case 174:case 176:case 177:case 178:return 241!==i;case 219:return r&&217===i?T(r,n):241!==i;case 278:return 279!==i;case 272:return 273!==i||!!n.namedBindings&&275!==n.namedBindings.kind;case 284:return 287!==i;case 288:return 290!==i;case 193:case 192:if(187===i||189===i)return!1}return o}function S(e,t,n,r,o=!1){return E(e,t,n,r,!1)&&!(o&&n&&function(e,t){switch(e){case 253:case 257:case 251:case 252:return 241!==t.kind;default:return!1}}(n.kind,t))}function T(e,t){const n=Ts(e.text,t.pos);return e.getLineAndCharacterOfPosition(n).line===e.getLineAndCharacterOfPosition(t.end).line}(n=t||(t={}))[n.Unknown=-1]="Unknown",e.getIndentation=function(e,t,n,i=!1){if(e>t.text.length)return r(n);if(0===n.indentStyle)return 0;const a=fY(e,t,void 0,!0),s=mge(t,e,a||null);if(s&&3===s.kind)return function(e,t,n,r){const o=_s(e,t).line-1,i=_s(e,r.pos).line;if(In.assert(i>=0),o<=i)return b(tm(i,e),t,e,n);const a=tm(o,e),{column:s,character:l}=v(a,t,e,n);if(0===s)return s;const c=e.text.charCodeAt(a+l);return 42===c?s-1:s}(t,e,n,s);if(!a)return r(n);if(PY(a.kind)&&a.getStart(t)<=e&&e<a.end)return 0;const l=t.getLineAndCharacterOfPosition(e).line,u=lY(t,e),p=19===u.kind&&210===u.parent.kind;if(1===n.indentStyle||p)return function(e,t,n){let r=t;for(;r>0;){if(!hs(e.text.charCodeAt(r)))break;r--}const o=k$(r,e);return b(o,r,e,n)}(t,e,n);if(28===a.kind&&226!==a.parent.kind){const e=function(e,t,n){const r=K$(e);return r&&r.listItemIndex>0?g(r.list.getChildren(),r.listItemIndex-1,t,n):-1}(a,t,n);if(-1!==e)return e}const f=function(e,t,n){return t&&m(e,e,t,n)}(e,a.parent,t);if(f&&!P$(f,a)){const e=[218,219].includes(u.parent.kind)?0:n.indentSize;return _(f,t,n)+e}return function(e,t,n,i,a,s){let l,u=n;for(;u;){if(V$(u,t,e)&&S(s,u,l,e,!0)){const t=d(u,e),r=c(n,u,i,e);return o(u,t,void 0,0!==r?a&&2===r?s.indentSize:0:i!==t.line?s.indentSize:0,e,!0,s)}const r=h(u,e,s,!0);if(-1!==r)return r;l=u,u=u.parent}return r(s)}(t,e,a,l,i,n)},e.getIndentationForNode=function(e,t,n,r){const i=n.getLineAndCharacterOfPosition(e.getStart(n));return o(e,i,t,0,n,!1,r)},e.getBaseIndentation=r,(l=s||(s={}))[l.Unknown=0]="Unknown",l[l.OpenBrace=1]="OpenBrace",l[l.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=u,e.childStartsOnTheSameLineWithElseInIfStatement=p,e.childIsUnindentedBranchOfConditionalExpression=function(e,t,n,r){if(xD(e)&&(t===e.whenTrue||t===e.whenFalse)){const o=_s(r,e.condition.end).line;if(t===e.whenTrue)return n===o;{const t=d(e.whenTrue,r).line,i=_s(r,e.whenTrue.end).line;return o===t&&i===n}}return!1},e.argumentStartsOnSameLineAsPreviousArgument=function(e,t,n,r){if(ru(e)){if(!e.arguments)return!1;const o=L(e.arguments,(e=>e.pos===t.pos));if(!o)return!1;const i=e.arguments.indexOf(o);if(0===i)return!1;if(n===_s(r,e.arguments[i-1].getEnd()).line)return!0}return!1},e.getContainingList=f,e.findFirstNonWhitespaceCharacterAndColumn=v,e.findFirstNonWhitespaceColumn=b,e.nodeWillIndentChild=E,e.shouldIndentChildNode=S})(hge||(hge={}))}}),vge={};E(vge,{FormattingContext:()=>m_e,FormattingRequestKind:()=>f_e,RuleAction:()=>E_e,RuleFlags:()=>S_e,SmartIndenter:()=>hge,anyContext:()=>b_e,createTextRangeWithKind:()=>ege,formatDocument:()=>ige,formatNodeGivenIndentation:()=>dge,formatOnClosingCurly:()=>oge,formatOnEnter:()=>tge,formatOnOpeningCurly:()=>rge,formatOnSemicolon:()=>nge,formatSelection:()=>age,getAllRules:()=>A_e,getFormatContext:()=>Hhe,getFormattingScanner:()=>v_e,getIndentationString:()=>_ge,getRangeOfEnclosingComment:()=>mge});var bge,Ege,Sge=b({"src/services/_namespaces/ts.formatting.ts"(){y_e(),T_e(),x_e(),Uhe(),Zhe(),gge(),yge()}}),Tge=b({"src/services/_namespaces/ts.ts"(){JJ(),UX(),t$(),L0(),j0(),r1(),o1(),d1(),b1(),K1(),X1(),e2(),m2(),y2(),R7(),D7(),k7(),e9(),s9(),sce(),oue(),que(),fpe(),Tpe(),jpe(),G2(),N4(),vfe(),Dfe(),F5(),Bfe(),fme(),Ime(),Vme(),g_e(),Sge()}});function xge(e,t,n,r,o){let i=t?"DeprecationError: ":"DeprecationWarning: ";return i+=`'${e}' `,i+=r?`has been deprecated since v${r}`:"is deprecated",i+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",i+=o?` ${YS(o,[e])}`:"",i}function Age(e,n={}){const r="string"===typeof n.typeScriptVersion?new Pn(n.typeScriptVersion):n.typeScriptVersion??Ege??(Ege=new Pn(t)),o="string"===typeof n.errorAfter?new Pn(n.errorAfter):n.errorAfter,i="string"===typeof n.warnAfter?new Pn(n.warnAfter):n.warnAfter,a="string"===typeof n.since?new Pn(n.since):n.since??i,s=n.error||o&&r.compareTo(o)>=0,l=!i||r.compareTo(i)>=0;return s?function(e,t,n,r){const o=xge(e,!0,t,n,r);return()=>{throw new TypeError(o)}}(e,o,a,n.message):l?function(e,t,n,r){let o=!1;return()=>{bge&&!o&&(In.log.warn(xge(e,!1,t,n,r)),o=!0)}}(e,o,a,n.message):bt}function Ige(e,t){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(Age((null==t?void 0:t.name)??In.getFunctionName(e),t),e)}var Rge=b({"src/deprecatedCompat/deprecate.ts"(){Pge(),bge=!0}});function Cge(e,t,n,r){if(Object.defineProperty(i,"name",{...Object.getOwnPropertyDescriptor(i,"name"),value:e}),r)for(const a of Object.keys(r)){const n=+a;!isNaN(n)&&He(t,`${n}`)&&(t[n]=Ige(t[n],{...r[n],name:e}))}const o=function(e,t){return n=>{for(let r=0;He(e,`${r}`)&&He(t,`${r}`);r++){if((0,t[r])(n))return r}}}(t,n);return i;function i(...e){const n=o(e),r=void 0!==n?t[n]:void 0;if("function"===typeof r)return r(...e);throw new TypeError("Invalid arguments")}}function Dge(e){return{overload:t=>({bind:n=>({finish:()=>Cge(e,t,n),deprecate:r=>({finish:()=>Cge(e,t,n,r)})})})}}var Nge,Mge,Lge=b({"src/deprecatedCompat/deprecations.ts"(){Pge(),Rge()}}),kge=b({"src/deprecatedCompat/5.0/identifierProperties.ts"(){Pge(),Rge(),XS((e=>{const t=e.getIdentifierConstructor();He(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:Ige((function(){return Pl(this)}),{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),He(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:Ige((function(){return!!(4096&this.flags)||void 0}),{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})}))}}),Pge=b({"src/deprecatedCompat/_namespaces/ts.ts"(){JJ(),Lge(),kge()}}),wge=b({"src/typingsInstallerCore/_namespaces/ts.ts"(){JJ(),UX(),qge()}});function Oge(e,t,n,r){try{const r=wF(t,ua(e,"index.d.ts"),{moduleResolution:2},n);return r.resolvedModule&&r.resolvedModule.resolvedFileName}catch(o){return void(r.isEnabled()&&r.writeLine(`Failed to resolve ${t} in folder '${e}': ${o.message}`))}}function Fge(e,t,n,r){let o=!1;for(let i=n.length;i>0;){const a=Wge(e,t,n,i);i=a.remaining,o=r(a.command)||o}return o}function Wge(e,t,n,r){const o=n.length-r;let i,a=r;for(;i=`${e} install --ignore-scripts ${(a===n.length?n:n.slice(o,o+a)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(i.length<8e3);)a-=Math.floor(a/2);return{command:i,remaining:r-a}}function zge(t){return`@types/${t}@ts${e}`}var Bge=b({"src/typingsInstallerCore/typingsInstaller.ts"(){wge(),qge(),Nge={isEnabled:()=>!1,writeLine:bt},Mge=class{constructor(e,t,n,r,o,i=Nge){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=r,this.throttleLimit=o,this.log=i,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest";this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${n}', types map path ${r}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const e={};this.typesRegistry.forEach(((t,n)=>{e[n]=t}));const t={kind:BJ,typesRegistry:e};this.sendResponse(t);break}case"installPackage":this.installPackage(e);break;default:In.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`);this.projectWatchers.get(e)?(this.projectWatchers.delete(e),this.sendResponse({kind:UJ,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)):this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${ZJ(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),void 0===this.safeList&&this.initializeSafeList();const t=vX.discoverTypings(this.installTypingHost,this.log.isEnabled()?e=>this.log.writeLine(e):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:t,packageName:n,projectName:r,projectRootPath:o,id:i}=e,a=Pa(ra(t),(e=>{if(this.installTypingHost.fileExists(ua(e,"package.json")))return e}))||o;if(a)this.installWorker(-1,[n],a,(e=>{const t={kind:zJ,projectName:r,id:i,success:e,message:e?`Package ${n} installed.`:`There was an error installing ${n}.`};this.sendResponse(t)}));else{const e={kind:zJ,projectName:r,id:i,success:!1,message:"Could not determine a project root path."};this.sendResponse(e)}}initializeSafeList(){if(this.typesMapLocation){const e=vX.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e)return this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),void(this.safeList=e);this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=vX.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e))return void(this.log.isEnabled()&&this.log.writeLine("Cache location was already processed..."));const t=ua(e,"package.json"),n=ua(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){const r=JSON.parse(this.installTypingHost.readFile(t)),o=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${ZJ(r)}`),this.log.writeLine(`Loaded content of '${n}':${ZJ(o)}`)),r.devDependencies&&o.dependencies)for(const t in r.devDependencies){if(!He(o.dependencies,t))continue;const n=oa(t);if(!n)continue;const r=Oge(e,n,this.installTypingHost,this.log);if(!r){this.missingTypingsSet.add(n);continue}const i=this.packageNameToTypingLocation.get(n);if(i){if(i.typingLocation===r)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${n} from '${r}' conflicts with existing typing file '${i}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${n}' => '${r}'`);const a=Ke(o.dependencies,t),s=a&&a.version;if(!s)continue;const l={typingLocation:r,version:new Pn(s)};this.packageNameToTypingLocation.set(n,l)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Z(e,(e=>{const t=xW(e);if(this.missingTypingsSet.has(t))return void(this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' is in missingTypingsSet - skipping...`));const n=vX.validatePackageName(e);if(n!==vX.NameValidationResult.Ok)return this.missingTypingsSet.add(t),void(this.log.isEnabled()&&this.log.writeLine(vX.renderPackageNameValidationFailure(n,e)));if(this.typesRegistry.has(t)){if(!this.packageNameToTypingLocation.get(t)||!vX.isTypingUpToDate(this.packageNameToTypingLocation.get(t),this.typesRegistry.get(t)))return t;this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' already has an up-to-date typing - skipping...`)}else this.log.isEnabled()&&this.log.writeLine(`'${e}':: Entry for package '${t}' does not exist in local types registry - skipping...`)}))}ensurePackageDirectoryExists(e){const t=ua(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(n,r,o,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);const a=this.filterTypings(i);if(0===a.length)return this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),void this.sendResponse(this.createSetTypings(n,o));this.ensurePackageDirectoryExists(r);const s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:GJ,eventId:s,typingsInstallerVersion:t,projectName:n.projectName});const l=a.map(zge);this.installTypingsAsync(s,l,r,(i=>{try{if(!i){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(a)}`);for(const e of a)this.missingTypingsSet.add(e);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);const t=[];for(const n of a){const o=Oge(r,n,this.installTypingHost,this.log);if(!o){this.missingTypingsSet.add(n);continue}const i=this.typesRegistry.get(n),a={typingLocation:o,version:new Pn(i[`ts${e}`]||i[this.latestDistTag])};this.packageNameToTypingLocation.set(n,a),t.push(o)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(t)}`),this.sendResponse(this.createSetTypings(n,o.concat(t)))}finally{const e={kind:jJ,eventId:s,projectName:n.projectName,packagesToInstall:l,installSuccess:i,typingsInstallerVersion:t};this.sendResponse(e)}}))}ensureDirectoryExists(e,t){const n=ra(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length)return void this.closeWatchers(e);const n=this.projectWatchers.get(e),r=new Set(t);!n||zf(r,(e=>!n.has(e)))||zf(n,(e=>!r.has(e)))?(this.projectWatchers.set(e,r),this.sendResponse({kind:UJ,projectName:e,files:t})):this.sendResponse({kind:UJ,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:FJ}}installTypingsAsync(e,t,n,r){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:r}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount<this.throttleLimit&&this.pendingRunRequests.length;){this.inFlightRequestCount++;const e=this.pendingRunRequests.pop();this.installWorker(e.requestId,e.packageNames,e.cwd,(t=>{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()}))}}}}}),Gge={};E(Gge,{TypingsInstaller:()=>Mge,getNpmCommandForInstallation:()=>Wge,installNpmPackages:()=>Fge,typingsName:()=>zge});var jge,Vge,Uge,Hge,Kge=b({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){Bge()}}),qge=b({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){lX(),Kge()}}),Jge=b({"src/server/types.ts"(){}});function Xge(e,t,n,r){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:r,kind:"discover"}}function $ge(e){return _a(e)}function Yge(e,t,n){return n(Hi(e)?e:ma(e,t))}function Qge(e){return e}function Zge(){const e=new Map;return{get:t=>e.get(t),set(t,n){e.set(t,n)},contains:t=>e.has(t),remove(t){e.delete(t)}}}function eye(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function tye(e){return`/dev/null/inferredProject${e}*`}function nye(e){return`/dev/null/autoImportProviderProject${e}*`}function rye(e){return`/dev/null/auxiliaryProject${e}*`}function oye(){return[]}var iye,aye,sye=b({"src/server/utilitiesPublic.ts"(){var e;Xbe(),jge=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(jge||{}),Vge=[],Uge=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(Uge||{}),(e=Hge||(Hge={})).ThrowNoProject=function(){throw new Error("No Project.")},e.ThrowProjectLanguageServiceDisabled=function(){throw new Error("The project's language service is disabled.")},e.ThrowProjectDoesNotContainDocument=function(e,t){throw new Error(`Project '${t.getProjectName()}' does not contain document '${e}'`)}}});function lye(e){const t=oa(e);return"tsconfig.json"===t||"jsconfig.json"===t?t:void 0}function cye(e,t,n){if(!e||0===e.length)return;if(e[0]===t)return void e.splice(0,1);const r=je(e,t,xt,n);r>=0&&e.splice(r,1)}var dye,uye,pye,fye,mye,_ye,hye,gye,yye,vye,bye,Eye,Sye,Tye,xye=b({"src/server/utilities.ts"(){Xbe(),qbe(),iye=class e{constructor(e,t){this.host=e,this.pendingTimeouts=new Map,this.logger=t.hasLevel(3)?t:void 0}schedule(t,n,r){const o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(e.run,n,t,this,r)),this.logger&&this.logger.info(`Scheduled: ${t}${o?", Cancelled earlier one":""}`)}cancel(e){const t=this.pendingTimeouts.get(e);return!!t&&(this.host.clearTimeout(t),this.pendingTimeouts.delete(e))}static run(e,t,n){var r,o;null==(r=sr)||r.logStartScheduledOperation(e),t.pendingTimeouts.delete(e),t.logger&&t.logger.info(`Running: ${e}`),n(),null==(o=sr)||o.logStopScheduledOperation()}},aye=class e{constructor(e,t,n){this.host=e,this.delay=t,this.logger=n}scheduleCollect(){this.host.gc&&void 0===this.timerId&&(this.timerId=this.host.setTimeout(e.run,this.delay,this))}static run(e){var t,n;e.timerId=void 0,null==(t=sr)||t.logStartScheduledOperation("GC collect");const r=e.logger.hasLevel(2),o=r&&e.host.getMemoryUsage();if(e.host.gc(),r){const t=e.host.getMemoryUsage();e.logger.perftrc(`GC::before ${o}, after ${t}`)}null==(n=sr)||n.logStopScheduledOperation()}}}}),Aye=b({"src/server/protocol.ts"(){dye=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e))(dye||{}),uye=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(uye||{}),pye=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(pye||{}),fye=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(fye||{}),mye=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(mye||{}),_ye=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(_ye||{}),hye=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(hye||{}),gye=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(gye||{}),yye=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(yye||{}),vye=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e.Node16="Node16",e.NodeNext="NodeNext",e.Preserve="Preserve",e))(vye||{}),bye=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(bye||{}),Eye=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Eye||{}),Sye=(e=>(e.ES3="ES3",e.ES5="ES5",e.ES6="ES6",e.ES2015="ES2015",e.ES2016="ES2016",e.ES2017="ES2017",e.ES2018="ES2018",e.ES2019="ES2019",e.ES2020="ES2020",e.ES2021="ES2021",e.ES2022="ES2022",e.ESNext="ESNext",e))(Sye||{}),Tye=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(Tye||{})}}),Iye={};E(Iye,{ClassificationType:()=>Tye,CommandTypes:()=>dye,CompletionTriggerKind:()=>_ye,IndentStyle:()=>hye,JsxEmit:()=>yye,ModuleKind:()=>vye,ModuleResolutionKind:()=>bye,NewLineKind:()=>Eye,OrganizeImportsMode:()=>uye,PollingWatchKind:()=>mye,ScriptTarget:()=>Sye,SemicolonPreference:()=>gye,WatchDirectoryKind:()=>fye,WatchFileKind:()=>pye});var Rye,Cye,Dye=b({"src/server/_namespaces/ts.server.protocol.ts"(){Aye()}});function Nye(e){return"^"===e[0]||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&"^"===oa(e)[0]||e.includes(":^")&&!e.includes(Fi)}function Mye(e){return!e||eve(e)?Hge.ThrowNoProject():e}var Lye,kye,Pye=b({"src/server/scriptInfo.ts"(){Xbe(),qbe(),Rye=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return void 0!==this.svc}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return In.assert(void 0!==e),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=rQ(this.svc.getSnapshot())),this.text!==e&&(this.useText(e),this.ownFileText=!1,!0)}reloadWithFileText(e){const{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},r=this.reload(t);return this.fileSize=n,this.ownFileText=!e||e===this.info.fileName,r}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText&&(this.pendingReloadFromDisk=!0)}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return(null==(e=this.tryUseScriptVersionCache())?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=bX.fromString(In.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const n=this.getLineMap();return ul(n[e],e+1<n.length?n[e+1]:this.text.length)}lineOffsetToPosition(e,t,n){const r=this.tryUseScriptVersionCache();return r?r.lineOffsetToPosition(e,t):ds(this.getLineMap(),e-1,t-1,this.text,n)}positionToLineOffset(e){const t=this.tryUseScriptVersionCache();if(t)return t.positionToLineOffset(e);const{line:n,character:r}=ps(this.getLineMap(),e);return{line:n+1,offset:r+1}}getFileTextAndSize(e){let t;const n=e||this.info.fileName,r=()=>void 0===t?t=this.host.readFile(n)||"":t;if(!rx(this.info.fileName)){const e=this.host.getFileSize?this.host.getFileSize(n):r().length;if(e>nve){In.assert(!!this.info.containingProjects.length);return this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${e}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,e),{text:"",fileSize:e}}}return{text:r()}}switchToScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||(this.svc=Obe.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return this.svc&&!this.pendingReloadFromDisk||this.getOrLoadText(),this.isOpen?(this.svc||this.textSnapshot||(this.svc=Obe.fromString(In.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(void 0===this.text||this.pendingReloadFromDisk)&&(In.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return In.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=ls(In.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:t=>e.getAbsolutePositionAndLineText(t+1).lineText};const t=this.getLineMap();return EB(this.text,t)}},Cye=class{constructor(e,t,n,r,o,i){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=r,this.path=o,this.containingProjects=[],this.isDynamic=Nye(t),this.textStorage=new Rye(e,this,i),(r||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||ZT(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,void 0!==e&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(void 0===this.realpath&&(this.realpath=this.path,this.host.realpath)){In.assert(!!this.containingProjects.length);const e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return F(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:tn(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink())}}detachAllProjects(){for(const e of this.containingProjects){Qye(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!Yye(e)&&e.addMissingFileRoot(t.fileName)}V(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Hge.ThrowNoProject();case 1:return Mye(this.containingProjects[0]);default:let e,t,n,r,o;for(let i=0;i<this.containingProjects.length;i++){const a=this.containingProjects[i];if(Qye(a)){if(!a.isSourceOfProjectReferenceRedirect(this.fileName)){if(void 0===o&&i!==this.containingProjects.length-1&&(o=a.projectService.findDefaultConfiguredProject(this)||!1),o===a)return a;r||(r=a)}t||(t=a)}else!e&&Zye(a)?e=a:!n&&Yye(a)&&(n=a)}return Mye(o||r||t||e||n)}}registerFileUpdate(){for(const e of this.containingProjects)e.registerFileUpdate(this.path)}setOptions(e,t){e&&(this.formatSettings?this.formatSettings={...this.formatSettings,...e}:(this.formatSettings=HX(this.host.newLine),Qe(this.formatSettings,e))),t&&(this.preferences||(this.preferences=xX),this.preferences={...this.preferences,...t})}getLatestVersion(){return this.textStorage.getSnapshot(),this.textStorage.getVersion()}saveTo(e){this.host.writeFile(e,rQ(this.textStorage.getSnapshot()))}delayReloadNonMixedContentFile(){In.assert(!this.isDynamicOrHasMixedContent()),this.textStorage.delayReloadFromFileIntoText(),this.markContainingProjectsAsDirty()}reloadFromFile(e){return!!this.textStorage.reloadWithFileText(e)&&(this.markContainingProjectsAsDirty(),!0)}editContent(e,t,n){this.textStorage.edit(e,t,n),this.markContainingProjectsAsDirty()}markContainingProjectsAsDirty(){for(const e of this.containingProjects)e.markFileAsDirty(this.path)}isOrphan(){return!x(this.containingProjects,(e=>!e.isOrphan()))}isContainedByBackgroundProject(){return se(this.containingProjects,eve)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){!function(e){In.assert("number"===typeof e,`Expected position ${e} to be a number.`),In.assert(e>=0,"Expected position to be non-negative.")}(e);const t=this.textStorage.positionToLineOffset(e);return function(e){In.assert("number"===typeof e.line,`Expected line ${e.line} to be a number.`),In.assert("number"===typeof e.offset,`Expected offset ${e.offset} to be a number.`),In.assert(e.line>0,"Expected line to be non-"+(0===e.line?"zero":"negative")),In.assert(e.offset>0,"Expected offset to be non-"+(0===e.offset?"zero":"negative"))}(t),t}isJavaScript(){return 1===this.scriptKind||2===this.scriptKind}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!ht(this.sourceMapFilePath)&&(lU(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function wye(e,t){if(e===t)return!0;if(0===(e||Vge).length&&0===(t||Vge).length)return!0;const n=new Map;let r=0;for(const o of e)!0!==n.get(o)&&(n.set(o,!0),r++);for(const o of t){const e=n.get(o);if(void 0===e)return!1;!0===e&&(n.set(o,!1),r--)}return 0===r}var Oye,Fye,Wye,zye,Bye,Gye,jye,Vye,Uye=b({"src/server/typingsCache.ts"(){Xbe(),qbe(),Lye={isKnownTypesPackageName:Et,installPackage:Rt,enqueueInstallTypingsRequest:bt,attach:bt,onProjectClosed:bt,globalTypingsCacheLocation:void 0},kye=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,n){const r=e.getTypeAcquisition();if(!r||!r.enable)return;const o=this.perProjectCache.get(e.getProjectName());var i,a,s,l;!n&&o&&(s=r,l=o.typeAcquisition,s.enable===l.enable&&wye(s.include,l.include)&&wye(s.exclude,l.exclude))&&!function(e,t){return nf(e)!==nf(t)}(e.getCompilationSettings(),o.compilerOptions)&&(i=t,a=o.unresolvedImports,i===a||ye(i,a))||(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:r,typings:o?o.typings:Vge,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,r,t))}updateTypingsForProject(e,t,n,r,o){const i=Ce(o);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:n,typings:i,unresolvedImports:r,poisoned:!1}),n&&n.enable?i:Vge}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function Hye(e,t=!1){const n={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const r of e){const e=t?r.textStorage.getTelemetryFileSize():0;switch(r.scriptKind){case 1:n.js+=1,n.jsSize+=e;break;case 2:n.jsx+=1,n.jsxSize+=e;break;case 3:_P(r.fileName)?(n.dts+=1,n.dtsSize+=e):(n.ts+=1,n.tsSize+=e);break;case 4:n.tsx+=1,n.tsxSize+=e;break;case 7:n.deferred+=1,n.deferredSize+=e}}return n}function Kye(e){const t=Hye(e.getRootScriptInfos());return 0===t.ts&&0===t.tsx}function qye(e){const t=Hye(e.getScriptInfos());return 0===t.ts&&0===t.tsx}function Jye(e){return!e.some((e=>Yi(e,".ts")&&!_P(e)||Yi(e,".tsx")))}function Xye(e){return void 0!==e.generatedFilePath}function $ye(e,t){var n,r;const o=e.getSourceFiles();null==(n=kr)||n.push(kr.Phase.Session,"getUnresolvedImports",{count:o.length});const i=e.getTypeChecker().getAmbientModules().map((e=>Gv(e.getName()))),a=_e(J(o,(n=>function(e,t,n,r){return ne(r,t.path,(()=>{let r;return e.forEachResolvedModule((({resolvedModule:e},t)=>{e&&gx(e.extension)||Xs(t)||n.some((e=>e===t))||(r=Ee(r,dW(t).packageName))}),t),r||Vge}))}(e,n,i,t))));return null==(r=kr)||r.pop(),a}function Yye(e){return 0===e.projectKind}function Qye(e){return 1===e.projectKind}function Zye(e){return 2===e.projectKind}function eve(e){return 3===e.projectKind||4===e.projectKind}var tve,nve,rve,ove,ive,ave,sve,lve,cve,dve,uve,pve,fve,mve,_ve,hve,gve,yve,vve,bve,Eve,Sve,Tve,xve,Ave=b({"src/server/project.ts"(){Xbe(),Xbe(),qbe(),Oye=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(Oye||{}),Fye=class e{constructor(e,t,n,r,o,i,a,s,l,c,d){switch(this.projectKind=t,this.projectService=n,this.documentRegistry=r,this.compilerOptions=a,this.compileOnSaveEnabled=s,this.watchOptions=l,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=Et,this.dirty=!1,this.typingFiles=Vge,this.moduleSpecifierCache=Zve(this),this.createHash=lt(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=vX.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=e,this.directoryStructureHost=c,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(d),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new r7(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(o||nf(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions={target:1,jsx:1},this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),n.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:In.assertNever(n.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const u=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=e=>this.writeLog(e):u.trace&&(this.trace=e=>u.trace(e)),this.realpath=lt(u,u.realpath),this.resolutionCache=xK(this,this.currentDirectory,!0),this.languageService=S7(this,this.documentRegistry,this.projectService.serverMode),i&&this.disableLanguageService(i),this.markAsDirty(),eve(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(e){}isNonTsProject(){return Hve(this),qye(this)}isJsOnlyProject(){return Hve(this),function(e){const t=Hye(e.getScriptInfos());return t.js>0&&0===t.ts&&0===t.tsx}(this)}static resolveModule(t,n,r,o){return e.importServicePluginSync({name:t},[n],r,o).resolvedModule}static importServicePluginSync(e,t,n,r){let o,i;In.assertIsDefined(n.require);for(const a of t){const t=ca(n.resolvePath(ua(a,"node_modules")));r(`Loading ${e.name} from ${a} (resolved to ${t})`);const s=n.require(t,e.name);if(!s.error){i=s.module;break}const l=s.error.stack||s.error.message||JSON.stringify(s.error);(o??(o=[])).push(`Failed to load module '${e.name}' from ${t}: ${l}`)}return{pluginConfigEntry:e,resolvedModule:i,errorLogs:o}}static async importServicePluginAsync(e,t,n,r){let o,i;In.assertIsDefined(n.importPlugin);for(const s of t){const t=ua(s,"node_modules");let l;r(`Dynamically importing ${e.name} from ${s} (resolved to ${t})`);try{l=await n.importPlugin(t,e.name)}catch(a){l={module:void 0,error:a}}if(!l.error){i=l.module;break}const c=l.error.stack||l.error.message||JSON.stringify(l.error);(o??(o=[])).push(`Failed to dynamically import module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:i,errorLogs:o}}isKnownTypesPackageName(e){return this.typingsCache.isKnownTypesPackageName(e)}installPackage(e){return this.typingsCache.installPackage({...e,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=OT(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFiles)return o;let e;return this.rootFilesMap.forEach((t=>{(this.languageServiceEnabled||t.info&&t.info.isScriptOpen())&&(e||(e=[])).push(t.fileName)})),xe(e,this.typingFiles)||o}getOrCreateScriptInfoAndAttachToProject(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost);if(t){const e=this.rootFilesMap.get(t.path);e&&e.info!==t&&(this.rootFiles.push(t),e.info=t),t.attachToProject(this)}return t}getScriptKind(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&t.scriptKind}getScriptVersion(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost);return t&&t.getLatestVersion()}getScriptSnapshot(e){const t=this.getOrCreateScriptInfoAndAttachToProject(e);if(t)return t.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){return ua(ra(_a(this.projectService.getExecutingFilePath())),Ys(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(e,t,n,r,o){return this.directoryStructureHost.readDirectory(e,t,n,r,o)}readFile(e){return this.projectService.host.readFile(e)}writeFile(e,t){return this.projectService.host.writeFile(e,t)}fileExists(e){const t=this.toPath(e);return!this.isWatchedMissingFile(t)&&this.directoryStructureHost.fileExists(e)}resolveModuleNameLiterals(e,t,n,r,o,i){return this.resolutionCache.resolveModuleNameLiterals(e,t,n,r,o,i)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(e,t,n,r,o,i){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(e,t,n,r,o,i)}resolveLibrary(e,t,n,r){return this.resolutionCache.resolveLibrary(e,t,n,r)}directoryExists(e){return this.directoryStructureHost.directoryExists(e)}getDirectories(e){return this.directoryStructureHost.getDirectories(e)}getCachedDirectoryStructureHost(){}toPath(e){return ga(e,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),NK.FailedLookupLocations,this)}watchAffectingFileLocation(e,t){return this.projectService.watchFactory.watchFile(e,t,2e3,this.projectService.getWatchOptions(this),NK.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,(()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}))}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),NK.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(e){return this.projectService.openFiles.has(e)}writeLog(e){this.projectService.logger.info(e)}log(e){this.writeLog(e)}error(e){this.projectService.logger.msg(e,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){0!==this.projectKind&&2!==this.projectKind||(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return G(this.projectErrors,(e=>!e.file))||Vge}getAllProjectErrors(){return this.projectErrors||Vge}setProjectErrors(e){this.projectErrors=e}getLanguageService(e=!0){return e&&Hve(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(e,t){return this.projectService.getDocumentPositionMapper(this,e,t)}getSourceFileLike(e){return this.projectService.getSourceFileLike(e,this)}shouldEmitFile(e){return e&&!e.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(e.path)}getCompileOnSaveAffectedFileList(e){return this.languageServiceEnabled?(Hve(this),this.builderState=yH.create(this.program,this.builderState,!0),Z(yH.getFilesAffectedBy(this.builderState,this.program,e.path,this.cancellationToken,this.projectService.host),(e=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(e.path))?e.fileName:void 0))):[]}emitFile(e,t){if(!this.languageServiceEnabled||!this.shouldEmitFile(e))return{emitSkipped:!0,diagnostics:Vge};const{emitSkipped:n,diagnostics:r,outputFiles:o}=this.getLanguageService().getEmitOutput(e.fileName);if(!n){for(const e of o){t(ma(e.name,this.currentDirectory),e.text,e.writeByteOrderMark)}if(this.builderState&&Qp(this.compilerOptions)){const t=o.filter((e=>_P(e.name)));if(1===t.length){const n=this.program.getSourceFile(e.fileName),r=this.projectService.host.createHash?this.projectService.host.createHash(t[0].text):yi(t[0].text);yH.updateSignatureOfFile(this.builderState,r,n.resolvedPath)}}}return{emitSkipped:n,diagnostics:r}}enableLanguageService(){this.languageServiceEnabled||2===this.projectService.serverMode||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const e of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(e.fileName);this.program.forEachResolvedProjectReference((e=>this.detachScriptInfoFromProject(e.sourceFile.fileName))),this.program=void 0}}disableLanguageService(e){this.languageServiceEnabled&&(In.assert(2!==this.projectService.serverMode),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=e,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(e){return e&&e.include?{...e,include:this.removeExistingTypings(e.include)}:e}getExternalFiles(e){return Ce(J(this.plugins,(t=>{if("function"===typeof t.module.getExternalFiles)try{return t.module.getExternalFiles(this,e||0)}catch(n){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${n}`),n.stack&&this.projectService.logger.info(n.stack)}})))}getSourceFile(e){if(this.program)return this.program.getSourceFileByPath(e)}getSourceFileOrConfigFile(e){const t=this.program.getCompilerOptions();return e===t.configFilePath?t.configFile:this.getSourceFile(e)}close(){var e;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),x(this.externalFiles,(e=>this.detachScriptInfoIfNotRoot(e)));for(const t of this.rootFiles)t.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,null==(e=this.packageJsonWatches)||e.forEach((e=>{e.projects.delete(this),e.close()})),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(SS(this.missingFilesMap,fS),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(e){const t=this.projectService.getScriptInfo(e);t&&!this.isRoot(t)&&t.detachFromProject(this)}isClosed(){return void 0===this.rootFiles}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map((e=>e.fileName))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?U(this.program.getSourceFiles(),(e=>{const t=this.projectService.getScriptInfoForPath(e.resolvedPath);return In.assert(!!t,"getScriptInfo",(()=>`scriptInfo for a file '${e.fileName}' Path: '${e.path}' / '${e.resolvedPath}' is missing.`)),t})):this.rootFiles}getExcludedFiles(){return Vge}getFileNames(e,t){if(!this.program)return[];if(!this.languageServiceEnabled){let e=this.getRootFiles();if(this.compilerOptions){const t=I7(this.compilerOptions);t&&(e||(e=[])).push(t)}return e}const n=[];for(const r of this.program.getSourceFiles())e&&this.program.isSourceFileFromExternalLibrary(r)||n.push(r.fileName);if(!t){const e=this.program.getCompilerOptions().configFile;if(e&&(n.push(e.fileName),e.extendedSourceFiles))for(const t of e.extendedSourceFiles)n.push(t)}return n}getFileNamesWithRedirectInfo(e){return this.getFileNames().map((t=>({fileName:t,isSourceOfProjectReferenceRedirect:e&&this.isSourceOfProjectReferenceRedirect(t)})))}hasConfigFile(e){if(this.program&&this.languageServiceEnabled){const t=this.program.getCompilerOptions().configFile;if(t){if(e===t.fileName)return!0;if(t.extendedSourceFiles)for(const n of t.extendedSourceFiles)if(e===n)return!0}}return!1}containsScriptInfo(e){if(this.isRoot(e))return!0;if(!this.program)return!1;const t=this.program.getSourceFileByPath(e.path);return!!t&&t.resolvedPath===e.path}containsFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(e);return!(!n||!n.isScriptOpen()&&t)&&this.containsScriptInfo(n)}isRoot(e){var t;return this.rootFilesMap&&(null==(t=this.rootFilesMap.get(e.path))?void 0:t.info)===e}addRoot(e,t){In.assert(!this.isRoot(e)),this.rootFiles.push(e),this.rootFilesMap.set(e.path,{fileName:t||e.fileName,info:e}),e.attachToProject(this),this.markAsDirty()}addMissingFileRoot(e){const t=this.projectService.toPath(e);this.rootFilesMap.set(t,{fileName:e}),this.markAsDirty()}removeFile(e,t,n){this.isRoot(e)&&this.removeRoot(e),t?this.resolutionCache.removeResolutionsOfFile(e.path):this.resolutionCache.invalidateResolutionOfFile(e.path),this.cachedUnresolvedImportsPerFile.delete(e.path),n&&e.detachFromProject(this),this.markAsDirty()}registerFileUpdate(e){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(e)}markFileAsDirty(e){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(e)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var e;!1===this.autoImportProviderHost?this.autoImportProviderHost=void 0:null==(e=this.autoImportProviderHost)||e.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(e){this.hasAddedorRemovedFiles=!0,e&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){Hve(this)}updateGraph(){var e,t,n,r,o;null==(e=kr)||e.push(kr.Phase.Session,"updateGraph",{name:this.projectName,kind:Oye[this.projectKind]}),null==(t=sr)||t.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const i=this.updateGraphWorker(),a=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const s=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Vge;for(const c of s)this.cachedUnresolvedImportsPerFile.delete(c);this.languageServiceEnabled&&0===this.projectService.serverMode&&!this.isOrphan()?((i||s.length)&&(this.lastCachedUnresolvedImportsList=$ye(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,a)):this.lastCachedUnresolvedImportsList=void 0;const l=0===this.projectProgramVersion&&i;return i&&this.projectProgramVersion++,a&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),null==(n=this.autoImportProviderHost)||n.markAsDirty()),l&&this.getPackageJsonAutoImportProvider(),null==(r=sr)||r.logStopUpdateGraph(),null==(o=kr)||o.pop(),!i}updateTypingFiles(e){vn(e,this.typingFiles,Vt(!this.useCaseSensitiveFileNames()),bt,(e=>this.detachScriptInfoFromProject(e)))&&(this.typingFiles=e,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&SS(this.typingWatchers,fS),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:WJ})}watchTypingLocations(e){if(!e)return void(this.typingWatchers.isInvoked=!1);if(!e.length)return void this.closeWatchingTypingLocations();const t=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const n=(e,n)=>{const r=this.toPath(e);t.delete(r),this.typingWatchers.has(r)||this.typingWatchers.set(r,"FileWatcher"===n?this.projectService.watchFactory.watchFile(e,(()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke()),2e3,this.projectService.getWatchOptions(this),NK.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(e,(e=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):Yi(e,".json")?Ia(e,ua(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames())?this.writeLog("Ignoring package.json change at global typings location"):void this.onTypingInstallerWatchInvoke():this.writeLog("Ignoring files that are not *.json")),1,this.projectService.getWatchOptions(this),NK.TypingInstallerLocationDirectory,this))};for(const r of e){const e=oa(r);if("package.json"!==e&&"bower.json"!==e)if(Ra(this.currentDirectory,r,this.currentDirectory,!this.useCaseSensitiveFileNames())){const e=r.indexOf(Fi,this.currentDirectory.length+1);n(-1!==e?r.substr(0,e):r,"DirectoryWatcher")}else Ra(this.projectService.typingsInstaller.globalTypingsCacheLocation,r,this.currentDirectory,!this.useCaseSensitiveFileNames())?n(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher"):n(r,"DirectoryWatcher");else n(r,"FileWatcher")}t.forEach(((e,t)=>{e.close(),this.typingWatchers.delete(t)}))}getCurrentProgram(){return this.program}removeExistingTypings(e){const t=gF(this.getCompilerOptions(),this.directoryStructureHost);return e.filter((e=>!t.includes(e)))}updateGraphWorker(){var e,t;const n=this.languageService.getCurrentProgram();In.assert(n===this.program),In.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const r=nr(),{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:i}=this.resolutionCache.createHasInvalidatedResolutions(Et,Et);this.hasInvalidatedResolutions=o,this.hasInvalidatedLibResolutions=i,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,null==(e=kr)||e.push(kr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,n),null==(t=kr)||t.pop(),In.assert(void 0===n||void 0!==this.program);let a=!1;if(this.program&&(!n||this.program!==n&&2!==this.program.structureIsReused)){if(a=!0,n){for(const e of n.getSourceFiles()){const t=this.program.getSourceFileByPath(e.resolvedPath);(!t||e.resolvedPath===e.path&&t.resolvedPath!==e.path)&&this.detachScriptInfoFromProject(e.fileName,!!this.program.getSourceFileByPath(e.path),!0)}n.forEachResolvedProjectReference((e=>{this.program.getResolvedProjectReferenceByPath(e.sourceFile.path)||this.detachScriptInfoFromProject(e.sourceFile.fileName,void 0,!0)}))}if(nU(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),((e,t)=>this.addMissingFileWatcher(e,t))),this.generatedFilesMap){const e=ob(this.compilerOptions);Xye(this.generatedFilesMap)?e&&this.isValidGeneratedFileWatcher(cx(e)+".d.ts",this.generatedFilesMap)||this.clearGeneratedFileWatch():e?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach(((e,t)=>{const n=this.program.getSourceFileByPath(t);n&&n.resolvedPath===t&&this.isValidGeneratedFileWatcher(tb(n.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),e)||(lU(e),this.generatedFilesMap.delete(t))}))}this.languageServiceEnabled&&0===this.projectService.serverMode&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||n&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&n&&this.program&&zf(this.changedFilesForExportMapCache,(e=>{const t=n.getSourceFileByPath(e),r=this.program.getSourceFileByPath(e);return t&&r?this.exportMapCache.onFileChanged(t,r,!!this.getTypeAcquisition().enable):(this.exportMapCache.clear(),!0)}))),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const s=this.externalFiles||Vge;this.externalFiles=this.getExternalFiles(),vn(this.externalFiles,s,Vt(!this.useCaseSensitiveFileNames()),(e=>{const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost);null==t||t.attachToProject(this)}),(e=>this.detachScriptInfoFromProject(e)));const l=nr()-r;return this.sendPerformanceEvent("UpdateGraph",l),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${a}${this.program?` structureIsReused:: ${$r[this.program.structureIsReused]}`:""} Elapsed: ${l}ms`),this.projectService.logger.isTestLogger?this.program!==n?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==n&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),a}sendPerformanceEvent(e,t){this.projectService.sendPerformanceEvent(e,t)}detachScriptInfoFromProject(e,t,n){const r=this.projectService.getScriptInfo(e);r&&(r.detachFromProject(this),t||this.resolutionCache.removeResolutionsOfFile(r.path,n))}addMissingFileWatcher(e,t){var n;if(Qye(this)){const t=this.projectService.configFileExistenceInfoCache.get(e);if(null==(n=null==t?void 0:t.config)?void 0:n.projects.has(this.canonicalConfigFilePath))return CK}const r=this.projectService.watchFactory.watchFile(ma(t,this.currentDirectory),((t,n)=>{Qye(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(t,e,n),0===n&&this.missingFilesMap.has(e)&&(this.missingFilesMap.delete(e),r.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}),500,this.projectService.getWatchOptions(this),NK.MissingFile,this);return r}isWatchedMissingFile(e){return!!this.missingFilesMap&&this.missingFilesMap.has(e)}addGeneratedFileWatch(e,t){if(ob(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(e));else{const n=this.toPath(t);if(this.generatedFilesMap){if(Xye(this.generatedFilesMap))return void In.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);if(this.generatedFilesMap.has(n))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(n,this.createGeneratedFileWatcher(e))}}createGeneratedFileWatcher(e){return{generatedFilePath:this.toPath(e),watcher:this.projectService.watchFactory.watchFile(e,(()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}),2e3,this.projectService.getWatchOptions(this),NK.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(e,t){return this.toPath(e)===t.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(Xye(this.generatedFilesMap)?lU(this.generatedFilesMap):SS(this.generatedFilesMap,lU),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&!t.isAttached(this)?Hge.ThrowProjectDoesNotContainDocument(e,this):t}getScriptInfo(e){return this.projectService.getScriptInfo(e)}filesToString(e){return this.filesToStringWorker(e,!0,!1)}filesToStringWorker(e,t,n){if(this.isInitialLoadPending())return"\tFiles (0) InitialLoadPending\n";if(!this.program)return"\tFiles (0) NoProgram\n";const r=this.program.getSourceFiles();let o=`\tFiles (${r.length})\n`;if(e){for(const e of r)o+=`\t${e.fileName}${n?` ${e.version} ${JSON.stringify(e.text)}`:""}\n`;t&&(o+="\n\n",UK(this.program,(e=>o+=`\t${e}\n`)))}return o}print(e,t,n){var r;this.writeLog(`Project '${this.projectName}' (${Oye[this.projectKind]})`),this.writeLog(this.filesToStringWorker(e&&this.projectService.logger.hasLevel(3),t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),null==(r=this.noDtsResolutionProject)||r.print(!1,!1,!1)}setCompilerOptions(e){var t;if(e){e.allowNonTsExtensions=!0;const n=this.compilerOptions;this.compilerOptions=e,this.setInternalCompilerOptionsForEmittingJsFiles(),null==(t=this.noDtsResolutionProject)||t.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),kf(n,e)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(e){this.watchOptions=e}getWatchOptions(){return this.watchOptions}setTypeAcquisition(e){e&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(e))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(e,t){var n,r;const o=t?e=>Ye(e.entries(),(([e,t])=>({fileName:e,isSourceOfProjectReferenceRedirect:t}))):e=>Ye(e.keys());this.isInitialLoadPending()||Hve(this);const i={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:Yye(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},a=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&e===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!a)return{info:i,projectErrors:this.getGlobalProjectErrors()};const e=this.lastReportedFileNames,r=(null==(n=this.externalFiles)?void 0:n.map((e=>({fileName:$ge(e),isSourceOfProjectReferenceRedirect:!1}))))||Vge,s=et(this.getFileNamesWithRedirectInfo(!!t).concat(r),(e=>e.fileName),(e=>e.isSourceOfProjectReferenceRedirect)),l=new Map,c=new Map,d=a?Ye(a.keys()):[],u=[];return Wf(s,((n,r)=>{e.has(r)?t&&n!==e.get(r)&&u.push({fileName:r,isSourceOfProjectReferenceRedirect:n}):l.set(r,n)})),Wf(e,((e,t)=>{s.has(t)||c.set(t,e)})),this.lastReportedFileNames=s,this.lastReportedVersion=this.projectProgramVersion,{info:i,changes:{added:o(l),removed:o(c),updated:t?d.map((e=>({fileName:e,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(e)}))):d,updatedRedirects:t?u:void 0},projectErrors:this.getGlobalProjectErrors()}}{const e=this.getFileNamesWithRedirectInfo(!!t),n=(null==(r=this.externalFiles)?void 0:r.map((e=>({fileName:$ge(e),isSourceOfProjectReferenceRedirect:!1}))))||Vge,o=e.concat(n);return this.lastReportedFileNames=et(o,(e=>e.fileName),(e=>e.isSourceOfProjectReferenceRedirect)),this.lastReportedVersion=this.projectProgramVersion,{info:i,files:t?o:o.map((e=>e.fileName)),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(e){tn(this.rootFiles,e),this.rootFilesMap.delete(e.path)}isSourceOfProjectReferenceRedirect(e){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(e)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,ua(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(e){if(!this.projectService.globalPlugins.length)return;const t=this.projectService.host;if(!t.require&&!t.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const n=this.getGlobalPluginSearchPaths();for(const r of this.projectService.globalPlugins)r&&(e.plugins&&e.plugins.some((e=>e.name===r))||(this.projectService.logger.info(`Loading global plugin ${r}`),this.enablePlugin({name:r,global:!0},n)))}enablePlugin(e,t){this.projectService.requestEnablePlugin(this,e,t)}enableProxy(e,t){try{if("function"!==typeof e)return void this.projectService.logger.info(`Skipped loading plugin ${t.name} because it did not expose a proper factory function`);const n={config:t,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},r=e({typescript:Jbe}),o=r.create(n);for(const e of Object.keys(this.languageService))e in o||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${e} in created LS. Patching.`),o[e]=this.languageService[e]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=o,this.plugins.push({name:t.name,module:r})}catch(n){this.projectService.logger.info(`Plugin activation failed: ${n}`)}}onPluginConfigurationChanged(e,t){this.plugins.filter((t=>t.name===e)).forEach((e=>{e.module.onConfigurationChanged&&e.module.onConfigurationChanged(t)}))}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(e,t){return 0!==this.projectService.serverMode?Vge:this.projectService.getPackageJsonsVisibleToFile(e,this,t)}getNearestAncestorDirectoryWithPackageJson(e){return this.projectService.getNearestAncestorDirectoryWithPackageJson(e)}getPackageJsonsForAutoImport(e){return this.getPackageJsonsVisibleToFile(ua(this.currentDirectory,vU),e)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=k0(this))}clearCachedExportInfoMap(){var e;null==(e=this.exportMapCache)||e.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return 0!==this.projectService.includePackageJsonAutoImports()&&this.languageServiceEnabled&&!o0(this.currentDirectory)&&this.isDefaultProjectForOpenFiles()?this.projectService.includePackageJsonAutoImports():0}getHostForAutoImportProvider(){var e,t;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||(null==(e=this.projectService.host.realpath)?void 0:e.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:null==(t=this.projectService.host.trace)?void 0:t.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var e,t,n;if(!1===this.autoImportProviderHost)return;if(0!==this.projectService.serverMode)return void(this.autoImportProviderHost=!1);if(this.autoImportProviderHost)return Hve(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()?(this.autoImportProviderHost.close(),void(this.autoImportProviderHost=void 0)):this.autoImportProviderHost.getCurrentProgram();const r=this.includePackageJsonAutoImports();if(r){null==(e=kr)||e.push(kr.Phase.Session,"getPackageJsonAutoImportProvider");const o=nr();if(this.autoImportProviderHost=Gye.create(r,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Hve(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",nr()-o),null==(t=kr)||t.pop(),this.autoImportProviderHost.getCurrentProgram();null==(n=kr)||n.pop()}}isDefaultProjectForOpenFiles(){return!!Wf(this.projectService.openFiles,((e,t)=>this.projectService.tryGetDefaultProjectForFile($ge(t))===this))}watchNodeModulesForPackageJsonChanges(e){return this.projectService.watchPackageJsonsInNodeModules(e,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(e){return In.assert(0===this.projectService.serverMode),this.noDtsResolutionProject||(this.noDtsResolutionProject=new zye(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==e&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[e]),this.noDtsResolutionProject.rootFile=e),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:o,lib:o,noLib:!0}}},Wye=class extends Fye{constructor(e,t,n,r,o,i,a){super(e.newInferredProjectName(),0,e,t,void 0,void 0,n,!1,r,e.host,i),this._isJsInferredProject=!1,this.typeAcquisition=a,this.projectRootPath=o&&e.toCanonicalFileName(o),o||e.useSingleInferredProject||(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const t=zY(e||this.getCompilationSettings());this._isJsInferredProject&&"number"!==typeof t.maxNodeModuleJsDepth?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){In.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&M(this.getRootScriptInfos(),(e=>!e.isJavaScript()))&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||1===this.getRootScriptInfos().length}close(){x(this.getRootScriptInfos(),(e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e))),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:Kye(this),include:o,exclude:o}}},zye=class extends Fye{constructor(e,t,n,r){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,n,!1,void 0,e.host,r)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},(Bye=class e extends Fye{constructor(e,t,n,r){super(e.projectService.newAutoImportProviderProjectName(),3,e.projectService,n,!1,void 0,r,!1,e.getWatchOptions(),e.projectService.host,e.currentDirectory),this.hostProject=e,this.rootFileNames=t,this.useSourceOfProjectReferenceRedirect=lt(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=lt(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(e,t,n,r){var i,a;if(!e)return o;const s=t.getCurrentProgram();if(!s)return o;const l=nr();let c,d;const u=ua(t.currentDirectory,vU),p=t.getPackageJsonsForAutoImport(ua(t.currentDirectory,u));for(const o of p)null==(i=o.dependencies)||i.forEach(((e,t)=>m(t))),null==(a=o.peerDependencies)||a.forEach(((e,t)=>m(t)));let f=0;if(c){const i=t.getSymlinkCache();for(const a of Ye(c.keys())){if(2===e&&f>this.maxDependencies)return t.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),o;const l=hF(a,t.currentDirectory,r,n,s.getModuleResolutionCache());if(l){const e=_(l,s,i);if(e){d=ce(d,e),f+=e.length?1:0;continue}}if(!x([t.currentDirectory,t.getGlobalTypingsCacheLocation()],(e=>{if(e){const t=hF(`@types/${a}`,e,r,n,s.getModuleResolutionCache());if(t){const e=_(t,s,i);return d=ce(d,e),f+=(null==e?void 0:e.length)?1:0,!0}}}))&&(l&&r.allowJs&&r.maxNodeModuleJsDepth)){const e=_(l,s,i,!0);d=ce(d,e),f+=(null==e?void 0:e.length)?1:0}}}return(null==d?void 0:d.length)&&t.log(`AutoImportProviderProject: found ${d.length} root files in ${f} dependencies in ${nr()-l} ms`),d||o;function m(e){dn(e,"@types/")||(c||(c=new Set)).add(e)}function _(e,o,i,a){var s;const l=nW(e,r,n,o.getModuleResolutionCache(),a);if(l){const r=null==(s=n.realpath)?void 0:s.call(n,e.packageDirectory),a=r?t.toPath(r):void 0,c=a&&a!==t.toPath(e.packageDirectory);return c&&i.setSymlinkedDirectory(e.packageDirectory,{real:va(r),realPath:va(a)}),Z(l,(t=>{const n=c?t.replace(e.packageDirectory,r):t;if(!o.getSourceFile(n)&&(!c||!o.getSourceFile(t)))return n}))}}}static create(t,n,r,o){if(0===t)return;const i={...n.getCompilerOptions(),...this.compilerOptionsOverrides},a=this.getRootFileNames(t,n,r,i);return a.length?new e(n,a,o,i):void 0}isEmpty(){return!se(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const n=this.getCurrentProgram(),r=super.updateGraph();return n&&n!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),r}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var e;return!!(null==(e=this.rootFileNames)?void 0:e.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||o}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var e;return null==(e=this.hostProject.getCurrentProgram())?void 0:e.getModuleResolutionCache()}}).maxDependencies=10,Bye.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:o,lib:o,noLib:!0},Gye=Bye,jye=class extends Fye{constructor(e,t,n,r,o){super(e,1,n,r,!1,void 0,{},!1,void 0,o,ra(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=St,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=_a(e),n=this.projectService.toCanonicalFileName(t);let r=this.projectService.configFileExistenceInfoCache.get(n);return r||this.projectService.configFileExistenceInfoCache.set(n,r={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,r,this),this.languageServiceEnabled&&0===this.projectService.serverMode&&this.projectService.watchWildcards(t,r,this),r.exists?r.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(_a(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){const e=this.isInitialLoadPending();this.isInitialLoadPending=Et;const t=this.pendingUpdateLevel;let n;switch(this.pendingUpdateLevel=0,t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const t=In.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,t,e,!1),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){In.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return null==(t=this.getCurrentProgram())?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!(null==(t=e.plugins)?void 0:t.length)&&!this.projectService.globalPlugins.length)return;const n=this.projectService.host;if(!n.require&&!n.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const r=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const e=ra(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${e} to search paths`),r.unshift(e)}if(e.plugins)for(const o of e.plugins)this.enablePlugin(o,r);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return G(this.projectErrors,(e=>!e.file))||Vge}getAllProjectErrors(){return this.projectErrors||Vge}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach(((e,t)=>this.releaseParsedConfig(t))),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return 0===this.getRootFilesMap().size&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(e){return Fve(this,e.path,(t=>Uve(t,e)?t:void 0),0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!(null==(e=t.openFilesImpactedByConfigFile)?void 0:e.size):!!t.openFilesImpactedByConfigFile&&Wf(t.openFilesImpactedByConfigFile,((e,t)=>{const n=this.projectService.getScriptInfoForPath(t);return this.containsScriptInfo(n)||!!Fve(this,n.path,(e=>e.containsScriptInfo(n)),0)}))||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return dF(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){uO(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},Vye=class extends Fye{constructor(e,t,n,r,o,i,a,s){super(e,2,t,n,!0,o,r,i,s,t.host,ra(a||ca(e))),this.externalProjectName=e,this.compileOnSaveEnabled=i,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function Ive(e){const t=new Map;for(const n of e)if("object"===typeof n.type){const e=n.type;e.forEach((e=>{In.assert("number"===typeof e)})),t.set(n.name,e)}return t}function Rve(e){return ht(e.indentStyle)&&(e.indentStyle=gve.get(e.indentStyle.toLowerCase()),In.assert(void 0!==e.indentStyle)),e}function Cve(e){return _ve.forEach(((t,n)=>{const r=e[n];ht(r)&&(e[n]=t.get(r.toLowerCase()))})),e}function Dve(e,t){let n,r;return DP.forEach((o=>{const i=e[o.name];if(void 0===i)return;const a=hve.get(o.name);(n||(n={}))[o.name]=a?ht(i)?a.get(i.toLowerCase()):i:TO(o,i,t||"",r||(r=[]))})),n&&{watchOptions:n,errors:r}}function Nve(e){let t;return UP.forEach((n=>{const r=e[n.name];void 0!==r&&((t||(t={}))[n.name]=r)})),t}function Mve(e){return ht(e)?Lve(e):e}function Lve(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function kve(e){const{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}function Pve(e,t){for(const n of t)if(n.getProjectName()===e)return n}function wve(e){return!!e.containingProjects}function Ove(e){return!!e.configFileInfo}function Fve(e,t,n,r,o){var i;const a=null==(i=e.getCurrentProgram())?void 0:i.getResolvedProjectReferences();if(!a)return;let s;const l=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(l){const t=$ge(l.sourceFile.fileName),o=e.projectService.findConfiguredProjectByProjectName(t);if(o){const e=n(o);if(e)return e}else if(0!==r){s=new Map;const t=Wve(a,e.getCompilerOptions(),((e,t)=>l===e?c(e,t):void 0),r,e.projectService,s);if(t)return t;s.clear()}}return Wve(a,e.getCompilerOptions(),((e,t)=>l!==e?c(e,t):void 0),r,e.projectService,s);function c(t,r){const i=$ge(t.sourceFile.fileName),a=e.projectService.findConfiguredProjectByProjectName(i)||(0===r?void 0:1===r?e.projectService.createConfiguredProject(i):2===r?e.projectService.createAndLoadConfiguredProject(i,o):In.assertNever(r));return a&&n(a)}}function Wve(e,t,n,r,o,i){const a=t.disableReferencedProjectLoad?0:r;return x(e,(e=>{if(!e)return;const t=$ge(e.sourceFile.fileName),r=o.toCanonicalFileName(t),s=null==i?void 0:i.get(r);if(void 0!==s&&s>=a)return;const l=n(e,a);return l||((i||(i=new Map)).set(r,a),e.references&&Wve(e.references,e.commandLine.options,n,a,o,i))}))}function zve(e,t){return e.potentialProjectReferences&&zf(e.potentialProjectReferences,t)}function Bve(e,t,n){const r=n&&e.projectService.configuredProjects.get(n);return r&&t(r)}function Gve(e,t){return function(e,t,n,r){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?zve(e,r):x(e.getProjectReferences(),n)}(e,(n=>Bve(e,t,n.sourceFile.path)),(n=>Bve(e,t,e.toPath(mH(n)))),(n=>Bve(e,t,n)))}function jve(e,t){return`${ht(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Vve(e){return!e.isScriptOpen()&&void 0!==e.mTime}function Uve(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function Hve(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function Kve(e){Qye(e)&&(e.projectOptions=!0)}function qve(e){let t=1;return()=>e(t++)}function Jve(){return{idToCallbacks:new Map,pathToId:new Map}}function Xve(e,t){if(!t||!e.eventHandler||!e.session)return;const n=Jve(),r=Jve(),o=Jve();let i=1;return e.session.addProtocolHandler("watchChange",(e=>{var t;return mt(t=e.arguments)?t.forEach(s):s(t),{responseRequired:!1}})),{watchFile:function(e,t){return a(n,e,t,(t=>({eventName:uve,data:{id:t,path:e}})))},watchDirectory:function(e,t,n){return a(n?o:r,e,t,(t=>({eventName:pve,data:{id:t,path:e,recursive:!!n,ignoreUpdate:!e.endsWith("/node_modules")||void 0}})))},getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function a({pathToId:t,idToCallbacks:n},r,o,a){const s=e.toPath(r);let l=t.get(s);l||t.set(s,l=i++);let c=n.get(l);return c||(n.set(l,c=new Set),e.eventHandler(a(l))),c.add(o),{close(){const r=n.get(l);(null==r?void 0:r.delete(o))&&(r.size||(n.delete(l),t.delete(s),e.eventHandler({eventName:fve,data:{id:l}})))}}}function s({id:e,created:t,deleted:n,updated:r}){l(e,t,0),l(e,n,2),l(e,r,1)}function l(e,t,i){(null==t?void 0:t.length)&&(c(n,e,t,((e,t)=>e(t,i))),c(r,e,t,((e,t)=>e(t))),c(o,e,t,((e,t)=>e(t))))}function c(e,t,n,r){var o;null==(o=e.idToCallbacks.get(t))||o.forEach((e=>{n.forEach((t=>r(e,ca(t))))}))}}function $ve(e){return void 0!==e.kind}function Yve(e){e.print(!1,!1,!1)}var Qve=b({"src/server/editorServices.ts"(){Xbe(),qbe(),Aye(),tve=20971520,nve=4194304,rve="projectsUpdatedInBackground",ove="projectLoadingStart",ive="projectLoadingFinish",ave="largeFileReferenced",sve="configFileDiag",lve="projectLanguageServiceState",cve="projectInfo",dve="openFileInfo",uve="createFileWatcher",pve="createDirectoryWatcher",fve="closeFileWatcher",mve="*ensureProjectForOpenFiles*",_ve=Ive(PP),hve=Ive(DP),gve=new Map(Object.entries({none:0,block:1,smart:2})),yve={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}},vve={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){const r=aa(e);r&&se(t,(e=>e.extension===r&&(n=e.scriptKind,!0)))}return n},hasMixedContent:(e,t)=>se(t,(t=>t.isMixedContent&&Yi(e,t.extension)))},bve={getFileName:e=>e.fileName,getScriptKind:e=>Mve(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},Eve={close:bt},Sve=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(Sve||{}),(Tve=class e{constructor(e){var t;this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=qve(tye),this.newAutoImportProviderProjectName=qve(nye),this.newAuxiliaryProjectName=qve(rye),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=yve,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=bt,this.verifyDocumentRegistry=bt,this.verifyProgram=bt,this.onProjectCreation=bt,this.host=e.host,this.logger=e.logger,this.cancellationToken=e.cancellationToken,this.useSingleInferredProject=e.useSingleInferredProject,this.useInferredProjectPerProjectRoot=e.useInferredProjectPerProjectRoot,this.typingsInstaller=e.typingsInstaller||Lye,this.throttleWaitMilliseconds=e.throttleWaitMilliseconds,this.eventHandler=e.eventHandler,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.globalPlugins=e.globalPlugins||Vge,this.pluginProbeLocations=e.pluginProbeLocations||Vge,this.allowLocalPluginLoads=!!e.allowLocalPluginLoads,this.typesMapLocation=void 0===e.typesMapLocation?ua(ra(this.getExecutingFilePath()),"typesMap.json"):e.typesMapLocation,this.session=e.session,this.jsDocParsingMode=e.jsDocParsingMode,void 0!==e.serverMode?this.serverMode=e.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=ct()),this.currentDirectory=$ge(this.host.getCurrentDirectory()),this.toCanonicalFileName=an(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?va(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new iye(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new kye(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:HX(this.host.newLine),preferences:xX,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=s1(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const n=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,r=0!==n?e=>this.logger.info(e):bt;this.packageJsonCache=tbe(this),this.watchFactory=0!==this.serverMode?{watchFile:DK,watchDirectory:DK}:aU(Xve(this,e.canUseWatchEvents)||this.host,n,r,jve),null==(t=e.incrementalVerifier)||t.call(e,this)}toPath(e){return ga(e,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(e){return ma(e,this.host.getCurrentDirectory())}setDocument(e,t,n){In.checkDefined(this.getScriptInfoForPath(t)).cacheSourceFile={key:e,sourceFile:n}}getDocument(e,t){const n=this.getScriptInfoForPath(t);return n&&n.cacheSourceFile&&n.cacheSourceFile.key===e?n.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(e,t){if(!this.eventHandler)return;const n={eventName:lve,data:{project:e,languageServiceEnabled:t}};this.eventHandler(n)}loadTypesMap(){try{const e=this.host.readFile(this.typesMapLocation);if(void 0===e)return void this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);const t=JSON.parse(e);for(const n of Object.keys(t.typesMap))t.typesMap[n].match=new RegExp(t.typesMap[n].match,"i");this.safelist=t.typesMap;for(const n in t.simpleMap)He(t.simpleMap,n)&&this.legacySafelist.set(n,t.simpleMap[n].toLowerCase())}catch(e){this.logger.info(`Error loading types map: ${e}`),this.safelist=yve,this.legacySafelist.clear()}}updateTypingsForProject(e){const t=this.findProject(e.projectName);if(t)switch(e.kind){case FJ:return void t.updateTypingFiles(this.typingsCache.updateTypingsForProject(e.projectName,e.compilerOptions,e.typeAcquisition,e.unresolvedImports,e.typings));case WJ:return void this.typingsCache.enqueueInstallTypingsForProject(t,t.lastCachedUnresolvedImportsList,!0)}}watchTypingLocations(e){var t;null==(t=this.findProject(e.projectName))||t.watchTypingLocations(e.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(mve,2500,(()=>{0!==this.pendingProjectUpdates.size?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())})))}delayUpdateProjectGraph(e){if(e.markAsDirty(),eve(e))return;const t=e.getProjectName();this.pendingProjectUpdates.set(t,e),this.throttledOperations.schedule(t,250,(()=>{this.pendingProjectUpdates.delete(t)&&Hve(e)}))}hasPendingProjectUpdate(e){return this.pendingProjectUpdates.has(e.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const e={eventName:rve,data:{openFiles:Ye(this.openFiles.keys(),(e=>this.getScriptInfoForPath(e).fileName))}};this.eventHandler(e)}sendLargeFileReferencedEvent(e,t){if(!this.eventHandler)return;const n={eventName:ave,data:{file:e,fileSize:t,maxFileSize:nve}};this.eventHandler(n)}sendProjectLoadingStartEvent(e,t){if(!this.eventHandler)return;e.sendLoadingProjectFinish=!0;const n={eventName:ove,data:{project:e,reason:t}};this.eventHandler(n)}sendProjectLoadingFinishEvent(e){if(!this.eventHandler||!e.sendLoadingProjectFinish)return;e.sendLoadingProjectFinish=!1;const t={eventName:ive,data:{project:e}};this.eventHandler(t)}sendPerformanceEvent(e,t){this.performanceEventHandler&&this.performanceEventHandler({kind:e,durationMs:t})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(e){this.delayUpdateProjectGraph(e),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(e,t){if(e.length){for(const n of e)t&&n.clearSourceMapperCache(),this.delayUpdateProjectGraph(n);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(e,t){In.assert(void 0===t||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const n=Cve(e),r=Dve(e,t),o=Nve(e);n.allowNonTsExtensions=!0;const i=t&&this.toCanonicalFileName(t);i?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(i,n),this.watchOptionsForInferredProjectsPerProjectRoot.set(i,r||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(i,o)):(this.compilerOptionsForInferredProjects=n,this.watchOptionsForInferredProjects=r,this.typeAcquisitionForInferredProjects=o);for(const a of this.inferredProjects)(i?a.projectRootPath!==i:a.projectRootPath&&this.compilerOptionsForInferredProjectsPerProjectRoot.has(a.projectRootPath))||(a.setCompilerOptions(n),a.setTypeAcquisition(o),a.setWatchOptions(null==r?void 0:r.watchOptions),a.setProjectErrors(null==r?void 0:r.errors),a.compileOnSaveEnabled=n.compileOnSave,a.markAsDirty(),this.delayUpdateProjectGraph(a));this.delayEnsureProjectForOpenFiles()}findProject(e){if(void 0!==e)return eye(e)?Pve(e,this.inferredProjects):this.findExternalProjectByProjectName(e)||this.findConfiguredProjectByProjectName($ge(e))}forEachProject(e){this.externalProjects.forEach(e),this.configuredProjects.forEach(e),this.inferredProjects.forEach(e)}forEachEnabledProject(e){this.forEachProject((t=>{!t.isOrphan()&&t.languageServiceEnabled&&e(t)}))}getDefaultProjectForFile(e,t){return t?this.ensureDefaultProjectForFile(e):this.tryGetDefaultProjectForFile(e)}tryGetDefaultProjectForFile(e){const t=ht(e)?this.getScriptInfoForNormalizedPath(e):e;return t&&!t.isOrphan()?t.getDefaultProject():void 0}ensureDefaultProjectForFile(e){return this.tryGetDefaultProjectForFile(e)||this.doEnsureDefaultProjectForFile(e)}doEnsureDefaultProjectForFile(e){this.ensureProjectStructuresUptoDate();const t=ht(e)?this.getScriptInfoForNormalizedPath(e):e;return t?t.getDefaultProject():(this.logErrorForScriptInfoNotFound(ht(e)?e:e.fileName),Hge.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(e){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(e)}ensureProjectStructuresUptoDate(){let e=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const t=t=>{e=Hve(t)||e};this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t),e&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(e){const t=this.getScriptInfoForNormalizedPath(e);return t&&t.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(e){const t=this.getScriptInfoForNormalizedPath(e);return{...this.hostConfiguration.preferences,...t&&t.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(e,t){2===t?this.handleDeletedFile(e):e.isScriptOpen()||(e.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e))}handleSourceMapProjects(e){if(e.sourceMapFilePath)if(ht(e.sourceMapFilePath)){const t=this.getScriptInfoForPath(e.sourceMapFilePath);this.delayUpdateSourceInfoProjects(t&&t.sourceInfos)}else this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(e.sourceInfos),e.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(e.declarationInfoPath)}delayUpdateSourceInfoProjects(e){e&&e.forEach(((e,t)=>this.delayUpdateProjectsOfScriptInfoPath(t)))}delayUpdateProjectsOfScriptInfoPath(e){const t=this.getScriptInfoForPath(e);t&&this.delayUpdateProjectGraphs(t.containingProjects,!0)}handleDeletedFile(e){if(this.stopWatchingScriptInfo(e),!e.isScriptOpen()){this.deleteScriptInfo(e);const t=e.containingProjects.slice();if(e.detachAllProjects(),this.delayUpdateProjectGraphs(t,!1),this.handleSourceMapProjects(e),e.closeSourceMapFileWatcher(),e.declarationInfoPath){const t=this.getScriptInfoForPath(e.declarationInfoPath);t&&(t.sourceMapFilePath=void 0)}}}watchWildcardDirectory(e,t,n,r){let o=this.watchFactory.watchDirectory(e,(t=>{const o=this.toPath(t),a=r.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(t,o);if("package.json"===oa(o)&&!o0(o)&&(a&&a.fileExists||!a&&this.host.fileExists(t))){const e=this.getNormalizedAbsolutePath(t);this.logger.info(`Config: ${n} Detected new package.json: ${e}`),this.packageJsonCache.addOrUpdate(e,o),this.watchPackageJsonFile(e,o,i)}const s=this.findConfiguredProjectByProjectName(n);oU({watchedDirPath:this.toPath(e),fileOrDirectory:t,fileOrDirectoryPath:o,configFileName:n,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:r.parsedCommandLine.options,program:(null==s?void 0:s.getCurrentProgram())||r.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:e=>this.logger.info(e),toPath:e=>this.toPath(e),getScriptKind:s?e=>s.getScriptKind(e):void 0})||(2!==r.updateLevel&&(r.updateLevel=1),r.projects.forEach(((e,t)=>{if(!e)return;const n=this.getConfiguredProjectByCanonicalConfigFilePath(t);if(!n)return;const r=s===n?1:0;if(!(void 0!==n.pendingUpdateLevel&&n.pendingUpdateLevel>r))if(this.openFiles.has(o)){if(In.checkDefined(this.getScriptInfoForPath(o)).isAttached(n)){const e=Math.max(r,n.openFileWatchTriggered.get(o)||0);n.openFileWatchTriggered.set(o,e)}else n.pendingUpdateLevel=r,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(n)}else n.pendingUpdateLevel=r,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(n)})))}),t,this.getWatchOptionsFromProjectWatchOptions(r.parsedCommandLine.watchOptions),NK.WildcardDirectory,n);const i={packageJsonWatches:void 0,close(){var e;o&&(o.close(),o=void 0,null==(e=i.packageJsonWatches)||e.forEach((e=>{e.projects.delete(i),e.close()})),i.packageJsonWatches=void 0)}};return i}delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,t){const n=this.configFileExistenceInfoCache.get(e);if(!(null==n?void 0:n.config))return!1;let r=!1;return n.config.updateLevel=2,n.config.projects.forEach(((n,o)=>{const i=this.getConfiguredProjectByCanonicalConfigFilePath(o);if(i)if(r=!0,o===e){if(i.isInitialLoadPending())return;i.pendingUpdateLevel=2,i.pendingUpdateReason=t,this.delayUpdateProjectGraph(i)}else i.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(e)),this.delayUpdateProjectGraph(i)})),r}onConfigFileChanged(e,t){var n;const r=this.configFileExistenceInfoCache.get(e);if(2===t){r.exists=!1;const t=(null==(n=r.config)?void 0:n.projects.has(e))?this.getConfiguredProjectByCanonicalConfigFilePath(e):void 0;t&&this.removeProject(t)}else r.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,"Change in config file detected"),this.reloadConfiguredProjectForFiles(r.openFilesImpactedByConfigFile,!1,!0,2!==t?xt:St,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(e){switch(this.logger.info("`remove Project::"),e.print(!0,!0,!1),e.close(),In.shouldAssert(1)&&this.filenameToScriptInfo.forEach((t=>In.assert(!t.isAttached(e),"Found script Info still attached to project",(()=>`${e.projectName}: ScriptInfos still attached: ${JSON.stringify(Ye(ee(this.filenameToScriptInfo.values(),(t=>t.isAttached(e)?{fileName:t.fileName,projects:t.containingProjects.map((e=>e.projectName)),hasMixedContent:t.hasMixedContent}:void 0))),void 0," ")}`)))),this.pendingProjectUpdates.delete(e.getProjectName()),e.projectKind){case 2:on(this.externalProjects,e),this.projectToSizeMap.delete(e.getProjectName());break;case 1:this.configuredProjects.delete(e.canonicalConfigFilePath),this.projectToSizeMap.delete(e.canonicalConfigFilePath);break;case 0:on(this.inferredProjects,e)}}assignOrphanScriptInfoToInferredProject(e,t){In.assert(e.isOrphan());const n=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(e.isDynamic?t||this.currentDirectory:ra(Hi(e.fileName)?e.fileName:ma(e.fileName,t?this.getNormalizedAbsolutePath(t):this.currentDirectory)));if(n.addRoot(e),e.containingProjects[0]!==n&&(tn(e.containingProjects,n),e.containingProjects.unshift(n)),n.updateGraph(),!this.useSingleInferredProject&&!n.projectRootPath)for(const r of this.inferredProjects){if(r===n||r.isOrphan())continue;const e=r.getRootScriptInfos();In.assert(1===e.length||!!r.projectRootPath),1===e.length&&x(e[0].containingProjects,(t=>t!==e[0].containingProjects[0]&&!t.isOrphan()))&&r.removeFile(e[0],!0,!0)}return n}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,e)}))}closeOpenFile(e,t){const n=!e.isDynamic&&this.host.fileExists(e.fileName);e.close(n),this.stopWatchingConfigFilesForClosedScriptInfo(e);const r=this.toCanonicalFileName(e.fileName);this.openFilesWithNonRootedDiskPath.get(r)===e&&this.openFilesWithNonRootedDiskPath.delete(r);let o=!1;for(const i of e.containingProjects){if(Qye(i)){e.hasMixedContent&&e.registerFileUpdate();const t=i.openFileWatchTriggered.get(e.path);void 0!==t&&(i.openFileWatchTriggered.delete(e.path),void 0!==i.pendingUpdateLevel&&i.pendingUpdateLevel<t&&(i.pendingUpdateLevel=t,i.markFileAsDirty(e.path)))}else Yye(i)&&i.isRoot(e)&&(i.isProjectWithSingleRoot()&&(o=!0),i.removeFile(e,n,!0));i.languageServiceEnabled||i.markAsDirty()}return this.openFiles.delete(e.path),this.configFileForOpenFiles.delete(e.path),!t&&o&&this.assignOrphanScriptInfosToInferredProject(),n?this.watchClosedScriptInfo(e):this.handleDeletedFile(e),o}deleteScriptInfo(e){this.filenameToScriptInfo.delete(e.path),this.filenameToScriptInfoVersion.set(e.path,e.textStorage.version);const t=e.getRealpathIfDifferent();t&&this.realpathToScriptInfos.remove(t,e)}configFileExists(e,t,n){var r;let o=this.configFileExistenceInfoCache.get(t);if(o)return wve(n)&&!(null==(r=o.openFilesImpactedByConfigFile)?void 0:r.has(n.path))&&(o.openFilesImpactedByConfigFile||(o.openFilesImpactedByConfigFile=new Map)).set(n.path,!1),o.exists;const i=this.host.fileExists(e);let a;return wve(n)&&(a||(a=new Map)).set(n.path,!1),o={exists:i,openFilesImpactedByConfigFile:a},this.configFileExistenceInfoCache.set(t,o),i}createConfigFileWatcherForParsedConfig(e,t,n){var r,o;const i=this.configFileExistenceInfoCache.get(t);i.watcher&&i.watcher!==Eve||(i.watcher=this.watchFactory.watchFile(e,((e,n)=>this.onConfigFileChanged(t,n)),2e3,this.getWatchOptionsFromProjectWatchOptions(null==(o=null==(r=null==i?void 0:i.config)?void 0:r.parsedCommandLine)?void 0:o.watchOptions),NK.ConfigFile,n));const a=i.config.projects;a.set(n.canonicalConfigFilePath,a.get(n.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(e){return e.openFilesImpactedByConfigFile&&Wf(e.openFilesImpactedByConfigFile,xt)}releaseParsedConfig(e,t){var n,r,o;const i=this.configFileExistenceInfoCache.get(e);(null==(n=i.config)?void 0:n.projects.delete(t.canonicalConfigFilePath))&&((null==(r=i.config)?void 0:r.projects.size)||(i.config=void 0,eU(e,this.sharedExtendedConfigFileWatchers),In.checkDefined(i.watcher),(null==(o=i.openFilesImpactedByConfigFile)?void 0:o.size)?this.configFileExistenceImpactsRootOfInferredProject(i)?uK(sa(ra(e)))||(i.watcher.close(),i.watcher=Eve):(i.watcher.close(),i.watcher=void 0):(i.watcher.close(),this.configFileExistenceInfoCache.delete(e))))}closeConfigFileWatcherOnReleaseOfOpenFile(e){!e.watcher||e.config||this.configFileExistenceImpactsRootOfInferredProject(e)||(e.watcher.close(),e.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(e){In.assert(!e.isScriptOpen()),this.forEachConfigFileLocation(e,(t=>{var n,r,o;const i=this.configFileExistenceInfoCache.get(t);if(i){const a=null==(n=i.openFilesImpactedByConfigFile)?void 0:n.get(e.path);null==(r=i.openFilesImpactedByConfigFile)||r.delete(e.path),a&&this.closeConfigFileWatcherOnReleaseOfOpenFile(i),(null==(o=i.openFilesImpactedByConfigFile)?void 0:o.size)||i.config||(In.assert(!i.watcher),this.configFileExistenceInfoCache.delete(t))}}))}startWatchingConfigFilesForInferredProjectRoot(e){In.assert(e.isScriptOpen()),this.forEachConfigFileLocation(e,((t,n)=>{let r=this.configFileExistenceInfoCache.get(t);r||(r={exists:this.host.fileExists(n)},this.configFileExistenceInfoCache.set(t,r)),(r.openFilesImpactedByConfigFile||(r.openFilesImpactedByConfigFile=new Map)).set(e.path,!0),r.watcher||(r.watcher=uK(sa(ra(t)))?this.watchFactory.watchFile(n,((e,n)=>this.onConfigFileChanged(t,n)),2e3,this.hostConfiguration.watchOptions,NK.ConfigFileForInferredRoot):Eve)}))}stopWatchingConfigFilesForInferredProjectRoot(e){this.forEachConfigFileLocation(e,(t=>{var n;const r=this.configFileExistenceInfoCache.get(t);(null==(n=null==r?void 0:r.openFilesImpactedByConfigFile)?void 0:n.has(e.path))&&(In.assert(e.isScriptOpen()),r.openFilesImpactedByConfigFile.set(e.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(r))}))}forEachConfigFileLocation(e,t){if(0!==this.serverMode)return;In.assert(!wve(e)||this.openFiles.has(e.path));const n=this.openFiles.get(e.path);if(In.checkDefined(this.getScriptInfo(e.path)).isDynamic)return;let r=ra(e.fileName);const o=()=>Ra(n,r,this.currentDirectory,!this.host.useCaseSensitiveFileNames),i=!n||!o();let a=!Ove(e);do{if(a){const e=Yge(r,this.currentDirectory,this.toCanonicalFileName),n=ua(r,"tsconfig.json");let o=t(ua(e,"tsconfig.json"),n);if(o)return n;const i=ua(r,"jsconfig.json");if(o=t(ua(e,"jsconfig.json"),i),o)return i;if(wa(e))break}const e=ra(r);if(e===r)break;r=e,a=!0}while(i||o())}findDefaultConfiguredProject(e){if(!e.isScriptOpen())return;const t=this.getConfigFileNameForFile(e),n=t&&this.findConfiguredProjectByProjectName(t);return n&&Uve(n,e)?n:null==n?void 0:n.getDefaultChildProjectFromProjectWithReferences(e)}getConfigFileNameForFile(e){if(!Ove(e)){const t=this.configFileForOpenFiles.get(e.path);if(void 0!==t)return t||void 0}this.logger.info(`Search path: ${ra(e.fileName)}`);const t=this.forEachConfigFileLocation(e,((t,n)=>this.configFileExists(n,t,e)));return t?this.logger.info(`For info: ${e.fileName} :: Config file name: ${t}`):this.logger.info(`For info: ${e.fileName} :: No config files found.`),wve(e)&&this.configFileForOpenFiles.set(e.path,t||!1),t}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Yve),this.configuredProjects.forEach(Yve),this.inferredProjects.forEach(Yve),this.logger.info("Open files: "),this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);this.logger.info(`\tFileName: ${n.fileName} ProjectRootPath: ${e}`),this.logger.info(`\t\tProjects: ${n.containingProjects.map((e=>e.getProjectName()))}`)})),this.logger.endGroup())}findConfiguredProjectByProjectName(e){const t=this.toCanonicalFileName(e);return this.getConfiguredProjectByCanonicalConfigFilePath(t)}getConfiguredProjectByCanonicalConfigFilePath(e){return this.configuredProjects.get(e)}findExternalProjectByProjectName(e){return Pve(e,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(e,t,n,r){if(t&&t.disableSizeLimit||!this.host.getFileSize)return;let o=tve;this.projectToSizeMap.set(e,0),this.projectToSizeMap.forEach((e=>o-=e||0));let i=0;for(const a of n){const e=r.getFileName(a);if(!rx(e)&&(i+=this.host.getFileSize(e),i>tve||i>o)){const t=n.map((e=>r.getFileName(e))).filter((e=>!rx(e))).map((e=>({name:e,size:this.host.getFileSize(e)}))).sort(((e,t)=>t.size-e.size)).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${i}). Largest files: ${t.map((e=>`${e.name}:${e.size}`)).join(", ")}`),e}}this.projectToSizeMap.set(e,i)}createExternalProject(e,t,n,r,o){const i=Cve(n),a=Dve(n,ra(ca(e))),s=new Vye(e,this,this.documentRegistry,i,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e,i,t,bve),void 0===n.compileOnSave||n.compileOnSave,void 0,null==a?void 0:a.watchOptions);return s.setProjectErrors(null==a?void 0:a.errors),s.excludedFiles=o,this.addFilesToNonInferredProject(s,t,bve,r),this.externalProjects.push(s),s}sendProjectTelemetry(e){if(this.seenProjects.has(e.projectName))return void Kve(e);if(this.seenProjects.set(e.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash)return void Kve(e);const n=Qye(e)?e.projectOptions:void 0;Kve(e);const r={projectId:this.host.createSHA256Hash(e.projectName),fileStats:Hye(e.getScriptInfos(),!0),compilerOptions:zO(e.getCompilationSettings()),typeAcquisition:function({enable:e,include:t,exclude:n}){return{enable:e,include:void 0!==t&&0!==t.length,exclude:void 0!==n&&0!==n.length}}(e.getTypeAcquisition()),extends:n&&n.configHasExtendsProperty,files:n&&n.configHasFilesProperty,include:n&&n.configHasIncludeProperty,exclude:n&&n.configHasExcludeProperty,compileOnSave:e.compileOnSaveEnabled,configFileName:function(){if(!Qye(e))return"other";return lye(e.getConfigFilePath())||"other"}(),projectType:e instanceof Vye?"external":"configured",languageServiceEnabled:e.languageServiceEnabled,version:t};this.eventHandler({eventName:cve,data:r})}addFilesToNonInferredProject(e,t,n,r){this.updateNonInferredProjectFiles(e,t,n),e.setTypeAcquisition(r),e.markAsDirty()}createConfiguredProject(e){var t;null==(t=kr)||t.instant(kr.Phase.Session,"createConfiguredProject",{configFilePath:e}),this.logger.info(`Creating configuration project ${e}`);const n=this.toCanonicalFileName(e);let r=this.configFileExistenceInfoCache.get(n);r?r.exists=!0:this.configFileExistenceInfoCache.set(n,r={exists:!0}),r.config||(r.config={cachedDirectoryStructureHost:QV(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const o=new jye(e,n,this,this.documentRegistry,r.config.cachedDirectoryStructureHost);return this.configuredProjects.set(n,o),this.createConfigFileWatcherForParsedConfig(e,n,o),o}createConfiguredProjectWithDelayLoad(e,t){const n=this.createConfiguredProject(e);return n.pendingUpdateLevel=2,n.pendingUpdateReason=t,n}createAndLoadConfiguredProject(e,t){const n=this.createConfiguredProject(e);return this.loadConfiguredProject(n,t),n}createLoadAndUpdateConfiguredProject(e,t){const n=this.createAndLoadConfiguredProject(e,t);return n.updateGraph(),n}loadConfiguredProject(e,t){var n,r;null==(n=kr)||n.push(kr.Phase.Session,"loadConfiguredProject",{configFilePath:e.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(e,t);const o=_a(e.getConfigFilePath()),i=this.ensureParsedConfigUptoDate(o,e.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),a=i.config.parsedCommandLine;In.assert(!!a.fileNames);const s=a.options;e.projectOptions||(e.projectOptions={configHasExtendsProperty:void 0!==a.raw.extends,configHasFilesProperty:void 0!==a.raw.files,configHasIncludeProperty:void 0!==a.raw.include,configHasExcludeProperty:void 0!==a.raw.exclude}),e.canConfigFileJsonReportNoInputFiles=dO(a.raw),e.setProjectErrors(a.options.configFile.parseDiagnostics),e.updateReferences(a.projectReferences);const l=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.canonicalConfigFilePath,s,a.fileNames,vve);l?(e.disableLanguageService(l),this.configFileExistenceInfoCache.forEach(((t,n)=>this.stopWatchingWildCards(n,e)))):(e.setCompilerOptions(s),e.setWatchOptions(a.watchOptions),e.enableLanguageService(),this.watchWildcards(o,i,e)),e.enablePluginsWithOptions(s);const c=a.fileNames.concat(e.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(e,c,vve,s,a.typeAcquisition,a.compileOnSave,a.watchOptions),null==(r=kr)||r.pop()}ensureParsedConfigUptoDate(e,t,n,r){var o,i,a;if(n.config){if(!n.config.updateLevel)return n;if(1===n.config.updateLevel)return this.reloadFileNamesOfParsedConfig(e,n.config),n}const s=(null==(o=n.config)?void 0:o.cachedDirectoryStructureHost)||QV(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),l=kw(e,(e=>this.host.readFile(e))),c=dP(e,ht(l)?l:""),d=c.parseDiagnostics;ht(l)||d.push(l);const u=rO(c,s,ra(e),{},e,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);u.errors.length&&d.push(...u.errors),this.logger.info(`Config: ${e} : ${JSON.stringify({rootNames:u.fileNames,options:u.options,watchOptions:u.watchOptions,projectReferences:u.projectReferences},void 0," ")}`);const p=null==(i=n.config)?void 0:i.parsedCommandLine;return n.config?(n.config.parsedCommandLine=u,n.config.watchedDirectoriesStale=!0,n.config.updateLevel=void 0):n.config={parsedCommandLine:u,cachedDirectoryStructureHost:s,projects:new Map},p||Dx(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(u.watchOptions))||(null==(a=n.watcher)||a.close(),n.watcher=void 0),this.createConfigFileWatcherForParsedConfig(e,t,r),ZV(t,u.options,this.sharedExtendedConfigFileWatchers,((t,n)=>this.watchFactory.watchFile(t,(()=>{var e;tU(this.extendedConfigCache,n,(e=>this.toPath(e)));let r=!1;null==(e=this.sharedExtendedConfigFileWatchers.get(n))||e.projects.forEach((e=>{r=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,`Change in extended config file ${t} detected`)||r})),r&&this.delayEnsureProjectForOpenFiles()}),2e3,this.hostConfiguration.watchOptions,NK.ExtendedConfigFile,e)),(e=>this.toPath(e))),n}watchWildcards(e,{exists:t,config:n},r){if(n.projects.set(r.canonicalConfigFilePath,!0),t){if(n.watchedDirectories&&!n.watchedDirectoriesStale)return;n.watchedDirectoriesStale=!1,rU(n.watchedDirectories||(n.watchedDirectories=new Map),n.parsedCommandLine.wildcardDirectories,((t,r)=>this.watchWildcardDirectory(t,r,e,n)))}else{if(n.watchedDirectoriesStale=!1,!n.watchedDirectories)return;SS(n.watchedDirectories,lU),n.watchedDirectories=void 0}}stopWatchingWildCards(e,t){const n=this.configFileExistenceInfoCache.get(e);n.config&&n.config.projects.get(t.canonicalConfigFilePath)&&(n.config.projects.set(t.canonicalConfigFilePath,!1),Wf(n.config.projects,xt)||(n.config.watchedDirectories&&(SS(n.config.watchedDirectories,lU),n.config.watchedDirectories=void 0),n.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(e,t,n){const r=e.getRootFilesMap(),o=new Map;for(const i of t){const t=n.getFileName(i),a=$ge(t);let s;if(Nye(a)||e.fileExists(t)){const t=n.getScriptKind(i,this.hostConfiguration.extraFileExtensions),o=n.hasMixedContent(i,this.hostConfiguration.extraFileExtensions),l=In.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(a,e.currentDirectory,t,o,e.directoryStructureHost));s=l.path;const c=r.get(s);c&&c.info===l?c.fileName=a:(e.addRoot(l,a),l.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(l))}else{s=Yge(a,this.currentDirectory,this.toCanonicalFileName);const t=r.get(s);t?(t.info&&(e.removeFile(t.info,!1,!0),t.info=void 0),t.fileName=a):r.set(s,{fileName:a})}o.set(s,!0)}r.size>o.size&&r.forEach(((t,n)=>{o.has(n)||(t.info?e.removeFile(t.info,e.fileExists(t.info.fileName),!0):r.delete(n))}))}updateRootAndOptionsOfNonInferredProject(e,t,n,r,o,i,a){e.setCompilerOptions(r),e.setWatchOptions(a),void 0!==i&&(e.compileOnSaveEnabled=i),this.addFilesToNonInferredProject(e,t,n,o)}reloadFileNamesOfConfiguredProject(e){const t=this.reloadFileNamesOfParsedConfig(e.getConfigFilePath(),this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath).config);return e.updateErrorOnNoInputFiles(t),this.updateNonInferredProjectFiles(e,t.concat(e.getExternalFiles(1)),vve),e.markAsDirty(),e.updateGraph()}reloadFileNamesOfParsedConfig(e,t){if(void 0===t.updateLevel)return t.parsedCommandLine.fileNames;In.assert(1===t.updateLevel);const n=RO(t.parsedCommandLine.options.configFile.configFileSpecs,ra(e),t.parsedCommandLine.options,t.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return t.parsedCommandLine={...t.parsedCommandLine,fileNames:n},n}setFileNamesOfAutpImportProviderOrAuxillaryProject(e,t){this.updateNonInferredProjectFiles(e,t,vve)}reloadConfiguredProject(e,t,n,r){const o=e.getCachedDirectoryStructureHost();r&&this.clearSemanticCache(e),o.clearCache();const i=e.getConfigFilePath();this.logger.info(`${n?"Loading":"Reloading"} configured project ${i}`),this.loadConfiguredProject(e,t),e.updateGraph(),this.sendConfigFileDiagEvent(e,i)}clearSemanticCache(e){e.resolutionCache.clear(),e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram(),e.markAsDirty()}sendConfigFileDiagEvent(e,t){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const n=e.getLanguageService().getCompilerOptionsDiagnostics();n.push(...e.getAllProjectErrors()),this.eventHandler({eventName:sve,data:{configFileName:e.getConfigFilePath(),diagnostics:n,triggerFile:t}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t){if(!this.useInferredProjectPerProjectRoot||e.isDynamic&&void 0===t)return;if(t){const e=this.toCanonicalFileName(t);for(const t of this.inferredProjects)if(t.projectRootPath===e)return t;return this.createInferredProject(t,!1,t)}let n;for(const r of this.inferredProjects)r.projectRootPath&&Ra(r.projectRootPath,e.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(n&&n.projectRootPath.length>r.projectRootPath.length||(n=r));return n}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&void 0===this.inferredProjects[0].projectRootPath?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(e){In.assert(!this.useSingleInferredProject);const t=this.toCanonicalFileName(this.getNormalizedAbsolutePath(e));for(const n of this.inferredProjects)if(!n.projectRootPath&&n.isOrphan()&&n.canonicalCurrentDirectory===t)return n;return this.createInferredProject(e)}createInferredProject(e,t,n){const r=n&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(n)||this.compilerOptionsForInferredProjects;let o,i;n&&(o=this.watchOptionsForInferredProjectsPerProjectRoot.get(n),i=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(n)),void 0===o&&(o=this.watchOptionsForInferredProjects),void 0===i&&(i=this.typeAcquisitionForInferredProjects),o=o||void 0;const a=new Wye(this,this.documentRegistry,r,null==o?void 0:o.watchOptions,n,e,i);return a.setProjectErrors(null==o?void 0:o.errors),t?this.inferredProjects.unshift(a):this.inferredProjects.push(a),a}getOrCreateScriptInfoNotOpenedByClient(e,t,n){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath($ge(e),t,void 0,void 0,n)}getScriptInfo(e){return this.getScriptInfoForNormalizedPath($ge(e))}getScriptInfoOrConfig(e){const t=$ge(e),n=this.getScriptInfoForNormalizedPath(t);if(n)return n;const r=this.configuredProjects.get(this.toPath(e));return r&&r.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(e){const t=Ye(this.filenameToScriptInfo.entries(),(([e,t])=>({path:e,fileName:t.fileName})));this.logger.msg(`Could not find file ${JSON.stringify(e)}.\nAll files are: ${JSON.stringify(t)}`,"Err")}getSymlinkedProjects(e){let t;if(this.realpathToScriptInfos){const t=e.getRealpathIfDifferent();t&&x(this.realpathToScriptInfos.get(t),n),x(this.realpathToScriptInfos.get(e.path),n)}return t;function n(n){if(n!==e)for(const r of n.containingProjects)!r.languageServiceEnabled||r.isOrphan()||r.getCompilerOptions().preserveSymlinks||e.isAttached(r)||(t?Wf(t,((e,t)=>t!==n.path&&F(e,r)))||t.add(n.path,r):(t=ct(),t.add(n.path,r)))}}watchClosedScriptInfo(e){if(In.assert(!e.fileWatcher),!e.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!dn(e.path,this.globalCacheLocationDirectoryPath))){const t=e.fileName.indexOf("/node_modules/");this.host.getModifiedTime&&-1!==t?(e.mTime=this.getModifiedTime(e),e.fileWatcher=this.watchClosedScriptInfoInNodeModules(e.fileName.substring(0,t))):e.fileWatcher=this.watchFactory.watchFile(e.fileName,((t,n)=>this.onSourceFileChanged(e,n)),500,this.hostConfiguration.watchOptions,NK.ClosedScriptInfo)}}createNodeModulesWatcher(e,t){let n=this.watchFactory.watchDirectory(e,(e=>{var n;const o=cK(this.toPath(e));if(!o)return;const i=oa(o);if(!(null==(n=r.affectedModuleSpecifierCacheProjects)?void 0:n.size)||"package.json"!==i&&"node_modules"!==i||r.affectedModuleSpecifierCacheProjects.forEach((e=>{var t;null==(t=e.getModuleSpecifierCache())||t.clear()})),r.refreshScriptInfoRefCount)if(t===o)this.refreshScriptInfosInDirectory(t);else{const e=this.getScriptInfoForPath(o);e?Vve(e)&&this.refreshScriptInfo(e):$i(o)||this.refreshScriptInfosInDirectory(o)}}),1,this.hostConfiguration.watchOptions,NK.NodeModules);const r={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var e;!n||r.refreshScriptInfoRefCount||(null==(e=r.affectedModuleSpecifierCacheProjects)?void 0:e.size)||(n.close(),n=void 0,this.nodeModulesWatchers.delete(t))}};return this.nodeModulesWatchers.set(t,r),r}watchPackageJsonsInNodeModules(e,t){var n;const r=this.toPath(e),o=this.nodeModulesWatchers.get(r)||this.createNodeModulesWatcher(e,r);return In.assert(!(null==(n=o.affectedModuleSpecifierCacheProjects)?void 0:n.has(t))),(o.affectedModuleSpecifierCacheProjects||(o.affectedModuleSpecifierCacheProjects=new Set)).add(t),{close:()=>{var e;null==(e=o.affectedModuleSpecifierCacheProjects)||e.delete(t),o.close()}}}watchClosedScriptInfoInNodeModules(e){const t=e+"/node_modules",n=this.toPath(t),r=this.nodeModulesWatchers.get(n)||this.createNodeModulesWatcher(t,n);return r.refreshScriptInfoRefCount++,{close:()=>{r.refreshScriptInfoRefCount--,r.close()}}}getModifiedTime(e){return(this.host.getModifiedTime(e.fileName)||ci).getTime()}refreshScriptInfo(e){const t=this.getModifiedTime(e);if(t!==e.mTime){const n=Ci(e.mTime,t);e.mTime=t,this.onSourceFileChanged(e,n)}}refreshScriptInfosInDirectory(e){e+=Fi,this.filenameToScriptInfo.forEach((t=>{Vve(t)&&dn(t.path,e)&&this.refreshScriptInfo(t)}))}stopWatchingScriptInfo(e){e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(e,t,n,r,o){if(Hi(e)||Nye(e))return this.getOrCreateScriptInfoWorker(e,t,!1,void 0,n,r,o);const i=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e));return i||void 0}getOrCreateScriptInfoOpenedByClientForNormalizedPath(e,t,n,r,o){return this.getOrCreateScriptInfoWorker(e,t,!0,n,r,o)}getOrCreateScriptInfoForNormalizedPath(e,t,n,r,o,i){return this.getOrCreateScriptInfoWorker(e,this.currentDirectory,t,n,r,o,i)}getOrCreateScriptInfoWorker(e,t,n,r,o,i,a){In.assert(void 0===r||n,"ScriptInfo needs to be opened by client to be able to set its user defined content");const s=Yge(e,t,this.toCanonicalFileName);let l=this.getScriptInfoForPath(s);if(!l){const r=Nye(e);if(In.assert(Hi(e)||r||n,"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Ye(this.openFilesWithNonRootedDiskPath.keys())})}\nScript info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`)),In.assert(!Hi(e)||this.currentDirectory===t||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(e)),"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Ye(this.openFilesWithNonRootedDiskPath.keys())})}\nOpen script files with non rooted disk path opened with current directory context cannot have same canonical names`)),In.assert(!r||this.currentDirectory===t||this.useInferredProjectPerProjectRoot,"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:Ye(this.openFilesWithNonRootedDiskPath.keys())})}\nDynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`)),!n&&!r&&!(a||this.host).fileExists(e))return;l=new Cye(this.host,e,o,!!i,s,this.filenameToScriptInfoVersion.get(s)),this.filenameToScriptInfo.set(l.path,l),this.filenameToScriptInfoVersion.delete(l.path),n?Hi(e)||r&&this.currentDirectory===t||this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(e),l):this.watchClosedScriptInfo(l)}return n&&(this.stopWatchingScriptInfo(l),l.open(r),i&&l.registerFileUpdate()),l}getScriptInfoForNormalizedPath(e){return!Hi(e)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||this.getScriptInfoForPath(Yge(e,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(e){return this.filenameToScriptInfo.get(e)}getDocumentPositionMapper(e,t,n){const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host);if(!r)return void(n&&e.addGeneratedFileWatch(t,n));if(r.getSnapshot(),ht(r.sourceMapFilePath)){const t=this.getScriptInfoForPath(r.sourceMapFilePath);if(t&&(t.getSnapshot(),void 0!==t.documentPositionMapper))return t.sourceInfos=this.addSourceInfoToSourceMap(n,e,t.sourceInfos),t.documentPositionMapper?t.documentPositionMapper:void 0;r.sourceMapFilePath=void 0}else{if(r.sourceMapFilePath)return void(r.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(n,e,r.sourceMapFilePath.sourceInfos));if(void 0!==r.sourceMapFilePath)return}let o,i,a=(t,n)=>{const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host);if(!r)return void(i=n);o=r;const a=r.getSnapshot();return void 0!==r.documentPositionMapper?r.documentPositionMapper:rQ(a)};const s=e.projectName,l=Y1({getCanonicalFileName:this.toCanonicalFileName,log:e=>this.logger.info(e),getSourceFileLike:e=>this.getSourceFileLike(e,s,r)},r.fileName,r.textStorage.getLineInfo(),a);return a=void 0,o?(r.sourceMapFilePath=o.path,o.declarationInfoPath=r.path,o.documentPositionMapper=l||!1,o.sourceInfos=this.addSourceInfoToSourceMap(n,e,o.sourceInfos)):r.sourceMapFilePath=!!i&&{watcher:this.addMissingSourceMapFile(e.currentDirectory===this.currentDirectory?i:ma(i,e.currentDirectory),r.path),sourceInfos:this.addSourceInfoToSourceMap(n,e)},l}addSourceInfoToSourceMap(e,t,n){if(e){const r=this.getOrCreateScriptInfoNotOpenedByClient(e,t.currentDirectory,t.directoryStructureHost);(n||(n=new Set)).add(r.path)}return n}addMissingSourceMapFile(e,t){return this.watchFactory.watchFile(e,(()=>{const e=this.getScriptInfoForPath(t);e&&e.sourceMapFilePath&&!ht(e.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(e.containingProjects,!0),this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos),e.closeSourceMapFileWatcher())}),2e3,this.hostConfiguration.watchOptions,NK.MissingSourceMapFile)}getSourceFileLike(e,t,n){const r=t.projectName?t:this.findProject(t);if(r){const t=r.toPath(e),n=r.getSourceFile(t);if(n&&n.resolvedPath===t)return n}const o=this.getOrCreateScriptInfoNotOpenedByClient(e,(r||this).currentDirectory,r?r.directoryStructureHost:this.host);if(o){if(n&&ht(n.sourceMapFilePath)&&o!==n){const e=this.getScriptInfoForPath(n.sourceMapFilePath);e&&(e.sourceInfos||(e.sourceInfos=new Set)).add(o.path)}return o.cacheSourceFile?o.cacheSourceFile.sourceFile:(o.sourceFileLike||(o.sourceFileLike={get text(){return In.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:e=>{const t=o.positionToLineOffset(e);return{line:t.line-1,character:t.offset-1}},getPositionOfLineAndCharacter:(e,t,n)=>o.lineOffsetToPosition(e+1,t+1,n)}),o.sourceFileLike)}}setPerformanceEventHandler(e){this.performanceEventHandler=e}setHostConfiguration(e){var t;if(e.file){const t=this.getScriptInfoForNormalizedPath($ge(e.file));t&&(t.setOptions(Rve(e.formatOptions),e.preferences),this.logger.info(`Host configuration update for file ${e.file}`))}else{if(void 0!==e.hostInfo&&(this.hostConfiguration.hostInfo=e.hostInfo,this.logger.info(`Host information ${e.hostInfo}`)),e.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...Rve(e.formatOptions)},this.logger.info("Format host information updated")),e.preferences){const{lazyConfiguredProjectsFromExternalProject:t,includePackageJsonAutoImports:n}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...e.preferences},t&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach((e=>e.forEach((e=>{e.isClosed()||!e.hasExternalProjectRef()||2!==e.pendingUpdateLevel||this.pendingProjectUpdates.has(e.getProjectName())||e.updateGraph()})))),n!==e.preferences.includePackageJsonAutoImports&&this.forEachProject((e=>{e.onAutoImportProviderSettingsChanged()}))}e.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=e.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),e.watchOptions&&(this.hostConfiguration.watchOptions=null==(t=Dve(e.watchOptions))?void 0:t.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(e){return this.getWatchOptionsFromProjectWatchOptions(e.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(e){return e&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...e}:e||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach((e=>{this.openFiles.has(e.path)||e.fileWatcher&&this.onSourceFileChanged(e,this.host.fileExists(e.fileName)?1:2)})),this.pendingProjectUpdates.forEach(((e,t)=>{this.throttledOperations.cancel(t),this.pendingProjectUpdates.delete(t)})),this.throttledOperations.cancel(mve),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach((e=>{e.config&&(e.config.updateLevel=2)})),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,St,"User requested reload projects"),this.externalProjects.forEach((e=>{this.clearSemanticCache(e),e.updateGraph()})),this.inferredProjects.forEach((e=>this.clearSemanticCache(e))),this.ensureProjectForOpenFiles(),this.logger.info("After reloading projects.."),this.printProjects()}reloadConfiguredProjectForFiles(e,t,n,r,o){const i=new Map,a=e=>{i.has(e.canonicalConfigFilePath)||(i.set(e.canonicalConfigFilePath,!0),this.reloadConfiguredProject(e,o,!1,t))};null==e||e.forEach(((e,s)=>{if(this.configFileForOpenFiles.delete(s),!r(e))return;const l=this.getScriptInfoForPath(s);In.assert(l.isScriptOpen());const c=this.getConfigFileNameForFile(l);if(c){const e=this.findConfiguredProjectByProjectName(c)||this.createConfiguredProject(c);if(!i.has(e.canonicalConfigFilePath))if(i.set(e.canonicalConfigFilePath,!0),n)e.pendingUpdateLevel=2,e.pendingUpdateReason=o,t&&this.clearSemanticCache(e),this.delayUpdateProjectGraph(e);else if(this.reloadConfiguredProject(e,o,!1,t),!Uve(e,l)){Fve(e,l.path,(e=>(a(e),Uve(e,l))),1)&&Fve(e,void 0,a,0)}}}))}removeRootOfInferredProjectIfNowPartOfOtherProject(e){In.assert(e.containingProjects.length>0);const t=e.containingProjects[0];!t.isOrphan()&&Yye(t)&&t.isRoot(e)&&x(e.containingProjects,(e=>e!==t&&!e.isOrphan()))&&t.removeFile(e,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()?this.assignOrphanScriptInfoToInferredProject(n,e):this.removeRootOfInferredProjectIfNowPartOfOtherProject(n)})),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Hve),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(e,t,n,r){return this.openClientFileWithNormalizedPath($ge(e),t,n,!1,r?$ge(r):void 0)}getOriginalLocationEnsuringConfiguredProject(e,t){const n=e.isSourceOfProjectReferenceRedirect(t.fileName),r=n?t:e.getSourceMapper().tryGetSourcePosition(t);if(!r)return;const{fileName:o}=r,i=this.getScriptInfo(o);if(!i&&!this.host.fileExists(o))return;const a={fileName:$ge(o),path:this.toPath(o)},s=this.getConfigFileNameForFile(a);if(!s)return;let l=this.findConfiguredProjectByProjectName(s);if(!l){if(e.getCompilerOptions().disableReferencedProjectLoad)return n?t:(null==i?void 0:i.containingProjects.length)?r:t;l=this.createAndLoadConfiguredProject(s,`Creating project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`)}Hve(l);const c=e=>{const t=this.getScriptInfo(o);return t&&Uve(e,t)};if(l.isSolution()||!c(l)){if(l=Fve(l,o,(e=>(Hve(e),c(e)?e:void 0)),2,`Creating project referenced in solution ${l.projectName} to find possible configured project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`),!l)return;if(l===e)return r}u(l);const d=this.getScriptInfo(o);if(d&&d.containingProjects.length)return d.containingProjects.forEach((e=>{Qye(e)&&u(e)})),r;function u(t){e.originalConfiguredProjects||(e.originalConfiguredProjects=new Set),e.originalConfiguredProjects.add(t.canonicalConfigFilePath)}}fileExists(e){return!!this.getScriptInfoForNormalizedPath(e)||this.host.fileExists(e)}findExternalProjectContainingOpenScriptInfo(e){return L(this.externalProjects,(t=>(Hve(t),t.containsScriptInfo(e))))}getOrCreateOpenScriptInfo(e,t,n,r,o){const i=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(e,o?this.getNormalizedAbsolutePath(o):this.currentDirectory,t,n,r);return this.openFiles.set(i.path,o),i}assignProjectToOpenedScriptInfo(e){let t,n,r,o,i=this.findExternalProjectContainingOpenScriptInfo(e),a=!1;return i||0!==this.serverMode||(t=this.getConfigFileNameForFile(e),t&&(i=this.findConfiguredProjectByProjectName(t),i?Hve(i):(i=this.createLoadAndUpdateConfiguredProject(t,`Creating possible configured project for ${e.fileName} to open`),a=!0),o=i.containsScriptInfo(e)?i:void 0,r=i,Uve(i,e)||Fve(i,e.path,(t=>{if(Hve(t),mt(r)?r.push(t):r=[i,t],Uve(t,e))return o=t,t;!o&&t.containsScriptInfo(e)&&(o=t)}),2,`Creating project referenced in solution ${i.projectName} to find possible configured project for ${e.fileName} to open`),o?(t=o.getConfigFilePath(),(o!==i||a)&&(n=o.getAllProjectErrors(),this.sendConfigFileDiagEvent(o,e.fileName))):t=void 0,this.createAncestorProjects(e,i))),e.containingProjects.forEach(Hve),e.isOrphan()&&(mt(r)?r.forEach((t=>this.sendConfigFileDiagEvent(t,e.fileName))):r&&this.sendConfigFileDiagEvent(r,e.fileName),In.assert(this.openFiles.has(e.path)),this.assignOrphanScriptInfoToInferredProject(e,this.openFiles.get(e.path))),In.assert(!e.isOrphan()),{configFileName:t,configFileErrors:n,retainProjects:r}}createAncestorProjects(e,t){if(e.isAttached(t))for(;;){if(!t.isInitialLoadPending()&&(!t.getCompilerOptions().composite||t.getCompilerOptions().disableSolutionSearching))return;const n=this.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0});if(!n)return;const r=this.findConfiguredProjectByProjectName(n)||this.createConfiguredProjectWithDelayLoad(n,`Creating project possibly referencing default composite project ${t.getProjectName()} of open file ${e.fileName}`);r.isInitialLoadPending()&&r.setPotentialProjectReference(t.canonicalConfigFilePath),t=r}}loadAncestorProjectTree(e){e=e||te(this.configuredProjects,((e,t)=>t.isInitialLoadPending()?void 0:[e,!0]));const t=new Set;for(const n of Ye(this.configuredProjects.values()))zve(n,(t=>e.has(t)))&&Hve(n),this.ensureProjectChildren(n,e,t)}ensureProjectChildren(e,t,n){var r;if(!re(n,e.canonicalConfigFilePath))return;if(e.getCompilerOptions().disableReferencedProjectLoad)return;const o=null==(r=e.getCurrentProgram())?void 0:r.getResolvedProjectReferences();if(o)for(const i of o){if(!i)continue;const r=YU(i.references,(e=>t.has(e.sourceFile.path)?e:void 0));if(!r)continue;const o=$ge(i.sourceFile.fileName),a=e.projectService.findConfiguredProjectByProjectName(o)||e.projectService.createAndLoadConfiguredProject(o,`Creating project referenced by : ${e.projectName} as it references project ${r.sourceFile.fileName}`);Hve(a),this.ensureProjectChildren(a,t,n)}}cleanupAfterOpeningFile(e){this.removeOrphanConfiguredProjects(e);for(const t of this.inferredProjects.slice())t.isOrphan()&&this.removeProject(t);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(e,t,n,r,o){const i=this.getOrCreateOpenScriptInfo(e,t,n,r,o),{retainProjects:a,...s}=this.assignProjectToOpenedScriptInfo(i);return this.cleanupAfterOpeningFile(a),this.telemetryOnOpenFile(i),this.printProjects(),s}removeOrphanConfiguredProjects(e){const t=new Map(this.configuredProjects),n=e=>{!e.isOrphan()&&e.originalConfiguredProjects&&e.originalConfiguredProjects.forEach(((e,t)=>{const n=this.getConfiguredProjectByCanonicalConfigFilePath(t);return n&&r(n)}))};function r(e){t.delete(e.canonicalConfigFilePath)&&(n(e),Gve(e,r))}e&&(mt(e)?e.forEach(r):r(e)),this.inferredProjects.forEach(n),this.externalProjects.forEach(n),this.configuredProjects.forEach((e=>{e.hasOpenRef()?r(e):t.has(e.canonicalConfigFilePath)&&Gve(e,(n=>function(e){return e.hasOpenRef()||!t.has(e.canonicalConfigFilePath)}(n)&&r(e)))})),t.forEach((e=>this.removeProject(e)))}removeOrphanScriptInfos(){const e=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach((t=>{if(!t.isScriptOpen()&&t.isOrphan()&&!t.isContainedByBackgroundProject()){if(!t.sourceMapFilePath)return;let e;if(ht(t.sourceMapFilePath)){const n=this.getScriptInfoForPath(t.sourceMapFilePath);e=n&&n.sourceInfos}else e=t.sourceMapFilePath.sourceInfos;if(!e)return;if(!zf(e,(e=>{const t=this.getScriptInfoForPath(e);return!!t&&(t.isScriptOpen()||!t.isOrphan())})))return}if(e.delete(t.path),t.sourceMapFilePath){let n;if(ht(t.sourceMapFilePath)){e.delete(t.sourceMapFilePath);const r=this.getScriptInfoForPath(t.sourceMapFilePath);n=r&&r.sourceInfos}else n=t.sourceMapFilePath.sourceInfos;n&&n.forEach(((t,n)=>e.delete(n)))}})),e.forEach((e=>{this.stopWatchingScriptInfo(e),this.deleteScriptInfo(e),e.closeSourceMapFileWatcher()}))}telemetryOnOpenFile(e){if(0!==this.serverMode||!this.eventHandler||!e.isJavaScript()||!LS(this.allJsFilesForOpenFileTelemetry,e.path))return;const t=this.ensureDefaultProjectForFile(e);if(!t.languageServiceEnabled)return;const n=t.getSourceFile(e.path),r=!!n&&!!n.checkJsDirective;this.eventHandler({eventName:dve,data:{info:{checkJs:r}}})}closeClientFile(e,t){const n=this.getScriptInfoForNormalizedPath($ge(e)),r=!!n&&this.closeOpenFile(n,t);return t||this.printProjects(),r}collectChanges(e,t,n,r){for(const o of t){const t=L(e,(e=>e.projectName===o.getProjectName()));r.push(o.getChangesSinceVersion(t&&t.version,n))}}synchronizeProjectList(e,t){const n=[];return this.collectChanges(e,this.externalProjects,t,n),this.collectChanges(e,this.configuredProjects.values(),t,n),this.collectChanges(e,this.inferredProjects,t,n),n}applyChangesInOpenFiles(e,t,n){let r,o,i=!1;if(e)for(const a of e){const e=this.getOrCreateOpenScriptInfo($ge(a.fileName),a.content,Mve(a.scriptKind),a.hasMixedContent,a.projectRootPath?$ge(a.projectRootPath):void 0);(r||(r=[])).push(e)}if(t)for(const a of t){const e=this.getScriptInfo(a.fileName);In.assert(!!e),this.applyChangesToFile(e,a.changes)}if(n)for(const a of n)i=this.closeClientFile(a,!0)||i;r&&(o=J(r,(e=>this.assignProjectToOpenedScriptInfo(e).retainProjects))),i&&this.assignOrphanScriptInfosToInferredProject(),r?(this.cleanupAfterOpeningFile(o),r.forEach((e=>this.telemetryOnOpenFile(e))),this.printProjects()):T(n)&&this.printProjects()}applyChangesToFile(e,t){for(const n of t)e.editContent(n.span.start,n.span.start+n.span.length,n.newText)}closeConfiguredProjectReferencedFromExternalProject(e){null==e||e.forEach((e=>{e.isClosed()||(e.deleteExternalProjectReference(),e.hasOpenRef()||this.removeProject(e))}))}closeExternalProject(e,t){const n=$ge(e),r=this.externalProjectToConfiguredProjectMap.get(n);if(r)this.closeConfiguredProjectReferencedFromExternalProject(r),this.externalProjectToConfiguredProjectMap.delete(n);else{const t=this.findExternalProjectByProjectName(e);t&&this.removeProject(t)}t&&this.printProjects()}openExternalProjects(e){const t=et(this.externalProjects,(e=>e.getProjectName()),(e=>!0));zf(this.externalProjectToConfiguredProjectMap,(e=>{t.set(e,!0)}));for(const n of e)this.openExternalProject(n,!1),t.delete(n.projectFileName);zf(t,(e=>{this.closeExternalProject(e,!1)})),this.printProjects()}static escapeFilenameForRegex(e){return e.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=yve}applySafeList(e){const t=e.typeAcquisition;In.assert(!!t,"proj.typeAcquisition should be set by now");const n=this.applySafeListWorker(e,e.rootFiles,t);return(null==n?void 0:n.excludedFiles)??[]}applySafeListWorker(t,n,r){if(!1===r.enable||r.disableFilenameBasedTypeAcquisition)return;const o=r.include||(r.include=[]),i=[],a=n.map((e=>ca(e.fileName)));for(const u of Object.keys(this.safelist)){const t=this.safelist[u];for(const n of a)if(t.match.test(n)){if(this.logger.info(`Excluding files based on rule ${u} matching file '${n}'`),t.types)for(const e of t.types)o.includes(e)||o.push(e);if(t.exclude)for(const r of t.exclude){const o=n.replace(t.match,((...t)=>r.map((n=>"number"===typeof n?ht(t[n])?e.escapeFilenameForRegex(t[n]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${u} - not enough groups`),"\\*"):n)).join("")));i.includes(o)||i.push(o)}else{const t=e.escapeFilenameForRegex(n);i.includes(t)||i.push(t)}}}const s=i.map((e=>new RegExp(e,"i")));let l,c;for(let e=0;e<n.length;e++)if(s.some((t=>t.test(a[e]))))d(e);else{if(r.enable){const t=oa(It(a[e]));if(Yi(t,"js")){const n=en(cx(t)),r=this.legacySafelist.get(n);if(void 0!==r){this.logger.info(`Excluded '${a[e]}' because it matched ${n} from the legacy safelist`),d(e),o.includes(r)||o.push(r);continue}}}/^.+[.-]min\.js$/.test(a[e])?d(e):null==l||l.push(n[e])}return c?{rootFiles:l,excludedFiles:c}:void 0;function d(e){c||(In.assert(!l),l=n.slice(0,e),c=[]),c.push(a[e])}}openExternalProject(e,t){const n=this.findExternalProjectByProjectName(e.projectFileName),r=this.externalProjectToConfiguredProjectMap.get(e.projectFileName);let o,i=[];for(const a of e.rootFiles){const t=$ge(a.fileName);if(lye(t)){if(0===this.serverMode&&this.host.fileExists(t)){let n=this.findConfiguredProjectByProjectName(t);n||(n=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(t,`Creating configured project in external project: ${e.projectFileName}`):this.createLoadAndUpdateConfiguredProject(t,`Creating configured project in external project: ${e.projectFileName}`)),(null==r?void 0:r.has(n))||n.addExternalProjectReference(),(o??(o=new Set)).add(n),null==r||r.delete(n)}}else i.push(a)}if(o)this.externalProjectToConfiguredProjectMap.set(e.projectFileName,o),n&&this.removeProject(n);else{this.externalProjectToConfiguredProjectMap.delete(e.projectFileName);const t=e.typeAcquisition||{};t.include=t.include||[],t.exclude=t.exclude||[],void 0===t.enable&&(t.enable=Jye(i.map((e=>e.fileName))));const r=this.applySafeListWorker(e,i,t),o=(null==r?void 0:r.excludedFiles)??[];if(i=(null==r?void 0:r.rootFiles)??i,n){n.excludedFiles=o;const r=Cve(e.options),a=Dve(e.options,n.getCurrentDirectory()),s=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.projectFileName,r,i,bve);s?n.disableLanguageService(s):n.enableLanguageService(),n.setProjectErrors(null==a?void 0:a.errors),this.updateRootAndOptionsOfNonInferredProject(n,i,bve,r,t,e.options.compileOnSave,null==a?void 0:a.watchOptions),n.updateGraph()}else{this.createExternalProject(e.projectFileName,i,e.options,t,o).updateGraph()}}this.closeConfiguredProjectReferencedFromExternalProject(r),t&&this.printProjects()}hasDeferredExtension(){for(const e of this.hostConfiguration.extraFileExtensions)if(7===e.scriptKind)return!0;return!1}requestEnablePlugin(e,t,n){if(this.host.importPlugin||this.host.require)if(this.logger.info(`Enabling plugin ${t.name} from candidate paths: ${n.join(",")}`),t.name&&!dW(t.name).rest){if(this.host.importPlugin){const r=Fye.importServicePluginAsync(t,n,this.host,(e=>this.logger.info(e)));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let o=this.pendingPluginEnablements.get(e);return o||this.pendingPluginEnablements.set(e,o=[]),void o.push(r)}this.endEnablePlugin(e,Fye.importServicePluginSync(t,n,this.host,(e=>this.logger.info(e))))}else this.logger.info(`Skipped loading plugin ${t.name||JSON.stringify(t)} because only package name is allowed plugin name`);else this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded")}endEnablePlugin(e,{pluginConfigEntry:t,resolvedModule:n,errorLogs:r}){var o;if(n){const r=null==(o=this.currentPluginConfigOverrides)?void 0:o.get(t.name);if(r){const e=t.name;(t=r).name=e}e.enableProxy(n,t)}else x(r,(e=>this.logger.info(e))),this.logger.info(`Couldn't find ${t.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const e=Ye(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(e),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(e){In.assert(void 0===this.currentPluginEnablementPromise),await Promise.all(U(e,(([e,t])=>this.enableRequestedPluginsForProjectAsync(e,t)))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(e,t){const n=await Promise.all(t);if(!e.isClosed()){for(const t of n)this.endEnablePlugin(e,t);this.delayUpdateProjectGraph(e)}}configurePlugin(e){this.forEachEnabledProject((t=>t.onPluginConfigurationChanged(e.pluginName,e.configuration))),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(e.pluginName,e.configuration)}getPackageJsonsVisibleToFile(e,t,n){const r=this.packageJsonCache,o=n&&this.toPath(n),i=[],a=e=>{switch(r.directoryHasPackageJson(e)){case 3:return r.searchDirectoryAndAncestors(e),a(e);case-1:const n=ua(e,"package.json");this.watchPackageJsonFile(n,this.toPath(n),t);const o=r.getInDirectory(e);o&&i.push(o)}if(o&&o===e)return!0};return Pa(ra(e),a),i}getNearestAncestorDirectoryWithPackageJson(e){return Pa(e,(e=>{switch(this.packageJsonCache.directoryHasPackageJson(e)){case-1:return e;case 0:return;case 3:return this.host.fileExists(ua(e,"package.json"))?e:void 0}}))}watchPackageJsonFile(e,t,n){In.assert(void 0!==n);let r=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(t);if(!r){let n=this.watchFactory.watchFile(e,((e,n)=>{switch(n){case 0:return In.fail();case 1:this.packageJsonCache.addOrUpdate(e,t),this.onPackageJsonChange(r);break;case 2:this.packageJsonCache.delete(t),this.onPackageJsonChange(r),r.projects.clear(),r.close()}}),250,this.hostConfiguration.watchOptions,NK.PackageJson);r={projects:new Set,close:()=>{var e;!r.projects.size&&n&&(n.close(),n=void 0,null==(e=this.packageJsonFilesMap)||e.delete(t),this.packageJsonCache.invalidate(t))}},this.packageJsonFilesMap.set(t,r)}r.projects.add(n),(n.packageJsonWatches??(n.packageJsonWatches=new Set)).add(r)}onPackageJsonChange(e){e.projects.forEach((e=>{var t;return null==(t=e.onPackageJsonChange)?void 0:t.call(e)}))}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=function(){let e;return{get:()=>e,set(t){e=t},clear(){e=void 0}}}())}}).filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,xve=Tve}});function Zve(e){let t,n,r;const o={get(e,t,o,i){if(n&&r===a(e,o,i))return n.get(t)},set(n,r,o,a,l,c){if(i(n,o,a).set(r,s(l,c,!1)),c)for(const i of l)if(i.isInNodeModules){const n=i.path.substring(0,i.path.indexOf(HO)+HO.length-1),r=e.toPath(n);(null==t?void 0:t.has(r))||(t||(t=new Map)).set(r,e.watchNodeModulesForPackageJsonChanges(n))}},setModulePaths(e,t,n,r,o){const a=i(e,n,r),l=a.get(t);l?l.modulePaths=o:a.set(t,s(o,void 0,void 0))},setBlockedByPackageJsonDependencies(e,t,n,r,o){const a=i(e,n,r),l=a.get(t);l?l.isBlockedByPackageJsonDependencies=o:a.set(t,s(void 0,void 0,o))},clear(){null==t||t.forEach(fS),null==n||n.clear(),null==t||t.clear(),r=void 0},count:()=>n?n.size:0};return In.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>n}),o;function i(e,t,i){const s=a(e,t,i);return n&&r!==s&&o.clear(),r=s,n||(n=new Map)}function a(e,t,n){return`${e},${t.importModuleSpecifierEnding},${t.importModuleSpecifierPreference},${n.overrideImportMode}`}function s(e,t,n){return{modulePaths:e,moduleSpecifiers:t,isBlockedByPackageJsonDependencies:n}}}var ebe=b({"src/server/moduleSpecifierCache.ts"(){Xbe()}});function tbe(e){const t=new Map,n=new Map;return{addOrUpdate:r,invalidate:function(e){t.delete(e),n.delete(ra(e))},delete:e=>{t.delete(e),n.set(ra(e),!0)},getInDirectory:n=>t.get(e.toPath(ua(n,"package.json")))||void 0,directoryHasPackageJson:t=>o(e.toPath(t)),searchDirectoryAndAncestors:t=>{Pa(t,(t=>{const i=e.toPath(t);if(3!==o(i))return!0;const a=ua(t,"package.json");JZ(e,a)?r(a,ua(i,"package.json")):n.set(i,!0)}))}};function r(r,o){const i=In.checkDefined(t0(r,e.host));t.set(o,i),n.delete(ra(o))}function o(e){return t.has(ua(e,"package.json"))?-1:n.has(e)?0:3}}var nbe,rbe,obe,ibe,abe,sbe,lbe=b({"src/server/packageJsonCache.ts"(){Xbe()}});function cbe(e,t){if((Yye(e)||Zye(e))&&e.isJsOnlyProject()){const n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function dbe(e,t,n){const r=t.getScriptInfoForNormalizedPath(e);return{start:r.positionToLineOffset(n.start),end:r.positionToLineOffset(n.start+n.length),text:zU(n.messageText,"\n"),code:n.code,category:ai(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:U(n.relatedInformation,ube)}}function ube(e){return e.file?{span:{start:pbe(_s(e.file,e.start)),end:pbe(_s(e.file,e.start+e.length)),file:e.file.fileName},message:zU(e.messageText,"\n"),category:ai(e),code:e.code}:{message:zU(e.messageText,"\n"),category:ai(e),code:e.code}}function pbe(e){return{line:e.line+1,offset:e.character+1}}function fbe(e,t){const n=e.file&&pbe(_s(e.file,e.start)),r=e.file&&pbe(_s(e.file,e.start+e.length)),o=zU(e.messageText,"\n"),{code:i,source:a}=e,s={start:n,end:r,text:o,code:i,category:ai(e),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:a,relatedInformation:U(e.relatedInformation,ube)};return t?{...s,fileName:e.file&&e.file.fileName}:s}function mbe(e,t,n,r){const o=t.hasLevel(3),i=JSON.stringify(e);o&&t.info(`${e.type}:${ZJ(e)}`);return`Content-Length: ${1+n(i,"utf8")}\r\n\r\n${i}${r}`}function _be(e,t){return{seq:0,type:"event",event:e,body:t}}function hbe(e){return ft((({textSpan:e})=>e.start+100003*e.length),MQ(e))}function gbe(e,t,n){for(const r of mt(e)?e:e.projects)n(r,t);!mt(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach(((e,t)=>{for(const r of e)n(r,t)}))}function ybe(e,t,n,r,o,i){const a=new Map,s=pt();s.enqueue({project:t,location:n}),gbe(e,n.fileName,((e,t)=>{const r={fileName:t,pos:n.pos};s.enqueue({project:e,location:r})}));const l=t.projectService,c=t.getCancellationToken(),d=function(e,t,n){const r=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),o=r&&Le(r);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}(t,n,r),u=Ct((()=>t.isSourceOfProjectReferenceRedirect(d.fileName)?d:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(d))),p=Ct((()=>t.isSourceOfProjectReferenceRedirect(d.fileName)?d:t.getLanguageService().getSourceMapper().tryGetSourcePosition(d))),f=new Set;e:for(;!s.isEmpty();){for(;!s.isEmpty();){if(c.isCancellationRequested())break e;const{project:e,location:t}=s.dequeue();if(a.has(e))continue;if(bbe(e,t))continue;if(Hve(e),!e.containsFile($ge(t.fileName)))continue;const n=m(e,t);a.set(e,n??Vge),f.add(Ebe(e))}d&&(l.loadAncestorProjectTree(f),l.forEachEnabledProject((e=>{if(c.isCancellationRequested())return;if(a.has(e))return;const t=vbe(d,e,u,p);t&&s.enqueue({project:e,location:t})})))}return 1===a.size?we(a.values()):a;function m(e,t){const n=o(e,t);if(n){for(const t of n)i(t,(t=>{const n=l.getOriginalLocationEnsuringConfiguredProject(e,t);if(!n)return;const r=l.getScriptInfo(n.fileName);for(const e of r.containingProjects)e.isOrphan()||a.has(e)||s.enqueue({project:e,location:n});const o=l.getSymlinkedProjects(r);o&&o.forEach(((e,t)=>{for(const r of e)r.isOrphan()||a.has(r)||s.enqueue({project:r,location:{fileName:t,pos:n.pos}})}))}));return n}}}function vbe(e,t,n,r){if(t.containsFile($ge(e.fileName))&&!bbe(t,e))return e;const o=n();if(o&&t.containsFile($ge(o.fileName)))return o;const i=r();return i&&t.containsFile($ge(i.fileName))?i:void 0}function bbe(e,t){if(!t)return!1;const n=e.getLanguageService().getProgram();if(!n)return!1;const r=n.getSourceFile(t.fileName);return!!r&&r.resolvedPath!==r.path&&r.resolvedPath!==e.toPath(t.fileName)}function Ebe(e){return Qye(e)?e.canonicalConfigFilePath:e.getProjectName()}function Sbe({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function Tbe(e,t){return PQ(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function xbe(e,t){return wQ(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function Abe(e,t){return OQ(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function Ibe(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Qs(e))}}function Rbe(e,t,n){const r=Ibe(e,n),o=t&&Ibe(t,n);return o?{...r,contextStart:o.start,contextEnd:o.end}:r}function Cbe(e,t){return $ve(e)?{line:(n=e.getLineAndCharacterOfPosition(t)).line+1,offset:n.character+1}:e.positionToLineOffset(t);var n}function Dbe(e,t,n,r){const o=function(e,t,n){for(const{fileName:r,textChanges:o}of n)if(r===t)for(let t=o.length-1;t>=0;t--){const{newText:n,span:{start:r,length:i}}=o[t];e=e.slice(0,r)+n+e.slice(r+i)}return e}(e,t,r),{line:i,character:a}=ps(ls(o),n);return{line:i+1,offset:a+1}}function Nbe(e,{fileName:t,textSpan:n,contextSpan:r,isWriteAccess:o,isDefinition:i},{disableLineTextInReferences:a}){const s=In.checkDefined(e.getScriptInfo(t)),l=Rbe(n,r,s),c=a?void 0:function(e,t){const n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,Qs(n)).replace(/\r|\n/g,"")}(s,l);return{file:t,...l,lineText:c,isWriteAccess:o,isDefinition:i}}function Mbe(e){return void 0===e||e&&"object"===typeof e&&"string"===typeof e.exportName&&(void 0===e.fileName||"string"===typeof e.fileName)&&(void 0===e.ambientModuleName||"string"===typeof e.ambientModuleName&&(void 0===e.isPackageJsonImport||"boolean"===typeof e.isPackageJsonImport))}var Lbe,kbe,Pbe,wbe,Obe,Fbe,Wbe,zbe,Bbe,Gbe,jbe,Vbe=b({"src/server/session.ts"(){Xbe(),qbe(),Aye(),nbe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},rbe=dye,obe=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){void 0!==this.requestId&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){const n=this.requestId;In.assert(n===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate((()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(n,(()=>this.executeAction(t)))}),e))}delay(e,t,n){const r=this.requestId;In.assert(r===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout((()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(r,(()=>this.executeAction(n)))}),t,e))}executeAction(e){var t,n,r,o,i,a;let s=!1;try{this.operationHost.isCancellationRequested()?(s=!0,null==(t=kr)||t.instant(kr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):(null==(n=kr)||n.push(kr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),null==(r=kr)||r.pop())}catch(l){null==(o=kr)||o.popAll(),s=!0,l instanceof Kr?null==(i=kr)||i.instant(kr.Phase.Session,"stepCanceled",{seq:this.requestId}):(null==(a=kr)||a.instant(kr.Phase.Session,"stepError",{seq:this.requestId,message:l.message}),this.operationHost.logError(l,`delayed processing of request ${this.requestId}`))}!s&&this.hasPendingWork()||this.complete()}setTimerHandle(e){void 0!==this.timerHandle&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){void 0!==this.immediateId&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},ibe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],abe=[...ibe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],sbe=class e{constructor(e){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const e={version:t};return this.requiredResponse(e)},openExternalProject:e=>(this.projectService.openExternalProject(e.arguments,!0),this.requiredResponse(!0)),openExternalProjects:e=>(this.projectService.openExternalProjects(e.arguments.projects),this.requiredResponse(!0)),closeExternalProject:e=>(this.projectService.closeExternalProject(e.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:e=>{const t=this.projectService.synchronizeProjectList(e.arguments.knownProjects,e.arguments.includeProjectReferenceRedirectInfo);if(!t.some((e=>e.projectErrors&&0!==e.projectErrors.length)))return this.requiredResponse(t);const n=U(t,(e=>e.projectErrors&&0!==e.projectErrors.length?{info:e.info,changes:e.changes,files:e.files,projectErrors:this.convertToDiagnosticsWithLinePosition(e.projectErrors,void 0)}:e));return this.requiredResponse(n)},updateOpen:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles&&H(e.arguments.openFiles,(e=>({fileName:e.file,content:e.fileContent,scriptKind:e.scriptKindName,projectRootPath:e.projectRootPath}))),e.arguments.changedFiles&&H(e.arguments.changedFiles,(e=>({fileName:e.fileName,changes:ee(De(e.textChanges),(t=>{const n=In.checkDefined(this.projectService.getScriptInfo(e.fileName)),r=n.lineOffsetToPosition(t.start.line,t.start.offset),o=n.lineOffsetToPosition(t.end.line,t.end.offset);return r>=0?{span:{start:r,length:o-r},newText:t.newText}:void 0}))}))),e.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles,e.arguments.changedFiles&&H(e.arguments.changedFiles,(e=>({fileName:e.fileName,changes:De(e.changes)}))),e.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:e=>this.requiredResponse(this.getDefinition(e.arguments,!0)),"definition-full":e=>this.requiredResponse(this.getDefinition(e.arguments,!1)),definitionAndBoundSpan:e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!0)),"definitionAndBoundSpan-full":e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!1)),findSourceDefinition:e=>this.requiredResponse(this.findSourceDefinition(e.arguments)),"emit-output":e=>this.requiredResponse(this.getEmitOutput(e.arguments)),typeDefinition:e=>this.requiredResponse(this.getTypeDefinition(e.arguments)),implementation:e=>this.requiredResponse(this.getImplementation(e.arguments,!0)),"implementation-full":e=>this.requiredResponse(this.getImplementation(e.arguments,!1)),references:e=>this.requiredResponse(this.getReferences(e.arguments,!0)),"references-full":e=>this.requiredResponse(this.getReferences(e.arguments,!1)),rename:e=>this.requiredResponse(this.getRenameLocations(e.arguments,!0)),"renameLocations-full":e=>this.requiredResponse(this.getRenameLocations(e.arguments,!1)),"rename-full":e=>this.requiredResponse(this.getRenameInfo(e.arguments)),open:e=>(this.openClientFile($ge(e.arguments.file),e.arguments.fileContent,Lve(e.arguments.scriptKindName),e.arguments.projectRootPath?$ge(e.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!0)),"quickinfo-full":e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!1)),getOutliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!0)),outliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!1)),todoComments:e=>this.requiredResponse(this.getTodoComments(e.arguments)),indentation:e=>this.requiredResponse(this.getIndentation(e.arguments)),nameOrDottedNameSpan:e=>this.requiredResponse(this.getNameOrDottedNameSpan(e.arguments)),breakpointStatement:e=>this.requiredResponse(this.getBreakpointStatement(e.arguments)),braceCompletion:e=>this.requiredResponse(this.isValidBraceCompletion(e.arguments)),docCommentTemplate:e=>this.requiredResponse(this.getDocCommentTemplate(e.arguments)),getSpanOfEnclosingComment:e=>this.requiredResponse(this.getSpanOfEnclosingComment(e.arguments)),fileReferences:e=>this.requiredResponse(this.getFileReferences(e.arguments,!0)),"fileReferences-full":e=>this.requiredResponse(this.getFileReferences(e.arguments,!1)),format:e=>this.requiredResponse(this.getFormattingEditsForRange(e.arguments)),formatonkey:e=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(e.arguments)),"format-full":e=>this.requiredResponse(this.getFormattingEditsForDocumentFull(e.arguments)),"formatonkey-full":e=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(e.arguments)),"formatRange-full":e=>this.requiredResponse(this.getFormattingEditsForRangeFull(e.arguments)),completionInfo:e=>this.requiredResponse(this.getCompletions(e.arguments,"completionInfo")),completions:e=>this.requiredResponse(this.getCompletions(e.arguments,"completions")),"completions-full":e=>this.requiredResponse(this.getCompletions(e.arguments,"completions-full")),completionEntryDetails:e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!1)),"completionEntryDetails-full":e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!0)),compileOnSaveAffectedFileList:e=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(e.arguments)),compileOnSaveEmitFile:e=>this.requiredResponse(this.emitFile(e.arguments)),signatureHelp:e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!0)),"signatureHelp-full":e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!1)),"compilerOptionsDiagnostics-full":e=>this.requiredResponse(this.getCompilerOptionsDiagnostics(e.arguments)),"encodedSyntacticClassifications-full":e=>this.requiredResponse(this.getEncodedSyntacticClassifications(e.arguments)),"encodedSemanticClassifications-full":e=>this.requiredResponse(this.getEncodedSemanticClassifications(e.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:e=>this.requiredResponse(this.getSemanticDiagnosticsSync(e.arguments)),syntacticDiagnosticsSync:e=>this.requiredResponse(this.getSyntacticDiagnosticsSync(e.arguments)),suggestionDiagnosticsSync:e=>this.requiredResponse(this.getSuggestionDiagnosticsSync(e.arguments)),geterr:e=>(this.errorCheck.startNew((t=>this.getDiagnostics(t,e.arguments.delay,e.arguments.files))),this.notRequired()),geterrForProject:e=>(this.errorCheck.startNew((t=>this.getDiagnosticsForProject(t,e.arguments.delay,e.arguments.file))),this.notRequired()),change:e=>(this.change(e.arguments),this.notRequired()),configure:e=>(this.projectService.setHostConfiguration(e.arguments),this.doOutput(void 0,"configure",e.seq,!0),this.notRequired()),reload:e=>(this.reload(e.arguments,e.seq),this.requiredResponse({reloadFinished:!0})),saveto:e=>{const t=e.arguments;return this.saveToTmp(t.file,t.tmpfile),this.notRequired()},close:e=>{const t=e.arguments;return this.closeClientFile(t.file),this.notRequired()},navto:e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!0)),"navto-full":e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!1)),brace:e=>this.requiredResponse(this.getBraceMatching(e.arguments,!0)),"brace-full":e=>this.requiredResponse(this.getBraceMatching(e.arguments,!1)),navbar:e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!0)),"navbar-full":e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!1)),navtree:e=>this.requiredResponse(this.getNavigationTree(e.arguments,!0)),"navtree-full":e=>this.requiredResponse(this.getNavigationTree(e.arguments,!1)),documentHighlights:e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!0)),"documentHighlights-full":e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!1)),compilerOptionsForInferredProjects:e=>(this.setCompilerOptionsForInferredProjects(e.arguments),this.requiredResponse(!0)),projectInfo:e=>this.requiredResponse(this.getProjectInfo(e.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:e=>this.requiredResponse(this.getJsxClosingTag(e.arguments)),linkedEditingRange:e=>this.requiredResponse(this.getLinkedEditingRange(e.arguments)),getCodeFixes:e=>this.requiredResponse(this.getCodeFixes(e.arguments,!0)),"getCodeFixes-full":e=>this.requiredResponse(this.getCodeFixes(e.arguments,!1)),getCombinedCodeFix:e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!0)),"getCombinedCodeFix-full":e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!1)),applyCodeActionCommand:e=>this.requiredResponse(this.applyCodeActionCommand(e.arguments)),getSupportedCodeFixes:e=>this.requiredResponse(this.getSupportedCodeFixes(e.arguments)),getApplicableRefactors:e=>this.requiredResponse(this.getApplicableRefactors(e.arguments)),getEditsForRefactor:e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!0)),getMoveToRefactoringFileSuggestions:e=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(e.arguments)),"getEditsForRefactor-full":e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!1)),organizeImports:e=>this.requiredResponse(this.organizeImports(e.arguments,!0)),"organizeImports-full":e=>this.requiredResponse(this.organizeImports(e.arguments,!1)),getEditsForFileRename:e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!0)),"getEditsForFileRename-full":e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!1)),configurePlugin:e=>(this.configurePlugin(e.arguments),this.doOutput(void 0,"configurePlugin",e.seq,!0),this.notRequired()),selectionRange:e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!0)),"selectionRange-full":e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!1)),prepareCallHierarchy:e=>this.requiredResponse(this.prepareCallHierarchy(e.arguments)),provideCallHierarchyIncomingCalls:e=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(e.arguments)),provideCallHierarchyOutgoingCalls:e=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(e.arguments)),toggleLineComment:e=>this.requiredResponse(this.toggleLineComment(e.arguments,!0)),"toggleLineComment-full":e=>this.requiredResponse(this.toggleLineComment(e.arguments,!1)),toggleMultilineComment:e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!0)),"toggleMultilineComment-full":e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!1)),commentSelection:e=>this.requiredResponse(this.commentSelection(e.arguments,!0)),"commentSelection-full":e=>this.requiredResponse(this.commentSelection(e.arguments,!1)),uncommentSelection:e=>this.requiredResponse(this.uncommentSelection(e.arguments,!0)),"uncommentSelection-full":e=>this.requiredResponse(this.uncommentSelection(e.arguments,!1)),provideInlayHints:e=>this.requiredResponse(this.provideInlayHints(e.arguments))})),this.host=e.host,this.cancellationToken=e.cancellationToken,this.typingsInstaller=e.typingsInstaller||Lye,this.byteLength=e.byteLength,this.hrtime=e.hrtime,this.logger=e.logger,this.canUseEvents=e.canUseEvents,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=e.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:n}=e;this.eventHandler=this.canUseEvents?e.eventHandler||(e=>this.defaultEventHandler(e)):void 0;const r={executeWithRequestId:(e,t)=>this.executeWithRequestId(e,t),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(e,t)=>this.logError(e,t),sendRequestCompletedEvent:e=>this.sendRequestCompletedEvent(e),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new obe(r);const o={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:e.useSingleInferredProject,useInferredProjectPerProjectRoot:e.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:n,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:e.globalPlugins,pluginProbeLocations:e.pluginProbeLocations,allowLocalPluginLoads:e.allowLocalPluginLoads,typesMapLocation:e.typesMapLocation,serverMode:e.serverMode,session:this,canUseWatchEvents:e.canUseWatchEvents,incrementalVerifier:e.incrementalVerifier};switch(this.projectService=new xve(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new aye(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:ibe.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.PartialSemantic`)}))));break;case 2:abe.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.Syntactic`)}))));break;default:In.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(e){this.event({request_seq:e},"requestCompleted")}addPerformanceData(e,t){this.performanceData||(this.performanceData={}),this.performanceData[e]=(this.performanceData[e]??0)+t}performanceEventHandler(e){switch(e.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",e.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",e.durationMs)}}defaultEventHandler(e){switch(e.eventName){case rve:this.projectsUpdatedInBackgroundEvent(e.data.openFiles);break;case ove:this.event({projectName:e.data.project.getProjectName(),reason:e.data.reason},e.eventName);break;case ive:this.event({projectName:e.data.project.getProjectName()},e.eventName);break;case ave:case uve:case pve:case fve:this.event(e.data,e.eventName);break;case sve:this.event({triggerFile:e.data.triggerFile,configFile:e.data.configFileName,diagnostics:U(e.data.diagnostics,(e=>fbe(e,!0)))},e.eventName);break;case lve:this.event({projectName:e.data.project.getProjectName(),languageServiceEnabled:e.data.languageServiceEnabled},e.eventName);break;case cve:{const t="telemetry";this.event({telemetryEventName:e.eventName,payload:e.data},t);break}}}projectsUpdatedInBackgroundEvent(e){this.projectService.logger.info(`got projects updated in background ${e}`),e.length&&(this.suppressDiagnosticEvents||this.noGetErrOnBackgroundUpdate||(this.projectService.logger.info(`Queueing diagnostics update for ${e}`),this.errorCheck.startNew((t=>this.updateErrorCheck(t,e,100,!0)))),this.event({openFiles:e},rve))}logError(e,t){this.logErrorWorker(e,t)}logErrorWorker(e,t,n){let r="Exception on executing command "+t;if(e.message&&(r+=":\n"+QJ(e.message),e.stack&&(r+="\n"+QJ(e.stack))),this.logger.hasLevel(3)){if(n)try{const{file:e,project:t}=this.getFileAndProject(n),o=t.getScriptInfoForNormalizedPath(e);if(o){const e=rQ(o.getSnapshot());r+=`\n\nFile text of ${n.file}:${QJ(e)}\n`}}catch{}if(e.ProgramFiles){r+=`\n\nProgram files: ${JSON.stringify(e.ProgramFiles)}\n`,r+="\n\nProjects::\n";let t=0;const n=e=>{r+=`\nProject '${e.projectName}' (${Oye[e.projectKind]}) ${t}\n`,r+=e.filesToString(!0),r+="\n-----------------------------------------------\n",t++};this.projectService.externalProjects.forEach(n),this.projectService.configuredProjects.forEach(n),this.projectService.inferredProjects.forEach(n)}}this.logger.msg(r,"Err")}send(e){"event"!==e.type||this.canUseEvents?this.writeMessage(e):this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${ZJ(e)}`)}writeMessage(e){var t;const n=mbe(e,this.logger,this.byteLength,this.host.newLine);null==(t=sr)||t.logEvent(`Response message size: ${n.length}`),this.host.write(n)}event(e,t){this.send(_be(t,e))}doOutput(e,t,n,r,o){const i={seq:0,type:"response",command:t,request_seq:n,success:r,performanceData:this.performanceData};if(r){let t;if(mt(e))i.body=e,t=e.metadata,delete e.metadata;else if("object"===typeof e)if(e.metadata){const{metadata:n,...r}=e;i.body=r,t=n}else i.body=e;else i.body=e;t&&(i.metadata=t)}else In.assert(void 0===e);o&&(i.message=o),this.send(i)}semanticCheck(e,t){var n,r;null==(n=kr)||n.push(kr.Phase.Session,"semanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath});const o=cbe(t,e)?Vge:t.getLanguageService().getSemanticDiagnostics(e).filter((e=>!!e.file));this.sendDiagnosticsEvent(e,t,o,"semanticDiag"),null==(r=kr)||r.pop()}syntacticCheck(e,t){var n,r;null==(n=kr)||n.push(kr.Phase.Session,"syntacticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSyntacticDiagnostics(e),"syntaxDiag"),null==(r=kr)||r.pop()}suggestionCheck(e,t){var n,r;null==(n=kr)||n.push(kr.Phase.Session,"suggestionCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSuggestionDiagnostics(e),"suggestionDiag"),null==(r=kr)||r.pop()}sendDiagnosticsEvent(e,t,n,r){try{this.event({file:e,diagnostics:n.map((n=>dbe(e,t,n)))},r)}catch(o){this.logError(o,r)}}updateErrorCheck(e,t,n,r=!0){In.assert(!this.suppressDiagnosticEvents);const o=this.changeSeq,i=Math.min(n,200);let a=0;const s=()=>{a++,t.length>a&&e.delay("checkOne",i,l)},l=()=>{if(this.changeSeq!==o)return;let n=t[a];if(ht(n)&&(n=this.toPendingErrorCheck(n),!n))return void s();const{fileName:i,project:l}=n;Hve(l),l.containsFile(i,r)&&(this.syntacticCheck(i,l),this.changeSeq===o&&(0===l.projectService.serverMode?e.immediate("semanticCheck",(()=>{this.semanticCheck(i,l),this.changeSeq===o&&(this.getPreferences(i).disableSuggestions?s():e.immediate("suggestionCheck",(()=>{this.suggestionCheck(i,l),s()})))})):s()))};t.length>a&&this.changeSeq===o&&e.delay("checkOne",n,l)}cleanProjects(e,t){if(t){this.logger.info(`cleaning ${e}`);for(const e of t)e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Ye(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e);return n.getEncodedSyntacticClassifications(t,e)}getEncodedSemanticClassifications(e){const{file:t,project:n}=this.getFileAndProject(e),r="2020"===e.format?"2020":"original";return n.getLanguageService().getEncodedSemanticClassifications(t,e,r)}getProject(e){return void 0===e?void 0:this.projectService.findProject(e)}getConfigFileAndProject(e){const t=this.getProject(e.projectFileName),n=$ge(e.file);return{configFile:t&&t.hasConfigFile(n)?n:void 0,project:t}}getConfigFileDiagnostics(e,t,n){const r=G(ce(t.getAllProjectErrors(),t.getLanguageService().getCompilerOptionsDiagnostics()),(t=>!!t.file&&t.file.fileName===e));return n?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r):U(r,(e=>fbe(e,!1)))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(e){return e.map((e=>({message:zU(e.messageText,this.host.newLine),start:e.start,length:e.length,category:ai(e),code:e.code,source:e.source,startLocation:e.file&&pbe(_s(e.file,e.start)),endLocation:e.file&&pbe(_s(e.file,e.start+e.length)),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:U(e.relatedInformation,ube)})))}getCompilerOptionsDiagnostics(e){const t=this.getProject(e.projectFileName);return this.convertToDiagnosticsWithLinePosition(G(t.getLanguageService().getCompilerOptionsDiagnostics(),(e=>!e.file)),void 0)}convertToDiagnosticsWithLinePosition(e,t){return e.map((e=>({message:zU(e.messageText,this.host.newLine),start:e.start,length:e.length,category:ai(e),code:e.code,source:e.source,startLocation:t&&t.positionToLineOffset(e.start),endLocation:t&&t.positionToLineOffset(e.start+e.length),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:U(e.relatedInformation,ube)})))}getDiagnosticsWorker(e,t,n,r){const{project:o,file:i}=this.getFileAndProject(e);if(t&&cbe(o,i))return Vge;const a=o.getScriptInfoForNormalizedPath(i),s=n(o,i);return r?this.convertToDiagnosticsWithLinePosition(s,a):s.map((e=>dbe(i,o,e)))}getDefinition(t,n){const{file:r,project:o}=this.getFileAndProject(t),i=this.getPositionInFile(t,r),a=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(r,i)||Vge,o);return n?this.mapDefinitionInfo(a,o):a.map(e.mapToOriginalLocation)}mapDefinitionInfoLocations(e,t){return e.map((e=>{const n=xbe(e,t);return n?{...n,containerKind:e.containerKind,containerName:e.containerName,kind:e.kind,name:e.name,failedAliasResolution:e.failedAliasResolution,...e.unverified&&{unverified:e.unverified}}:e}))}getDefinitionAndBoundSpan(t,n){const{file:r,project:o}=this.getFileAndProject(t),i=this.getPositionInFile(t,r),a=In.checkDefined(o.getScriptInfo(r)),s=o.getLanguageService().getDefinitionAndBoundSpan(r,i);if(!s||!s.definitions)return{definitions:Vge,textSpan:void 0};const l=this.mapDefinitionInfoLocations(s.definitions,o),{textSpan:c}=s;return n?{definitions:this.mapDefinitionInfo(l,o),textSpan:Ibe(c,a)}:{definitions:l.map(e.mapToOriginalLocation),textSpan:c}}findSourceDefinition(e){var t;const{file:n,project:r}=this.getFileAndProject(e),o=this.getPositionInFile(e,n),i=r.getLanguageService().getDefinitionAtPosition(n,o);let a=this.mapDefinitionInfoLocations(i||Vge,r).slice();if(0===this.projectService.serverMode&&(!se(a,(e=>$ge(e.fileName)!==n&&!e.isAmbient))||se(a,(e=>!!e.failedAliasResolution)))){const e=ft((e=>e.textSpan.start),MQ(this.host.useCaseSensitiveFileNames));null==a||a.forEach((t=>e.add(t)));const i=r.getNoDtsResolutionProject(n),d=i.getLanguageService(),u=null==(t=d.getDefinitionAtPosition(n,o,!0,!1))?void 0:t.filter((e=>$ge(e.fileName)!==n));if(se(u))for(const t of u){if(t.unverified){const n=l(t,r.getLanguageService().getProgram(),d.getProgram());if(se(n)){for(const t of n)e.add(t);continue}}e.add(t)}else{const t=a.filter((e=>$ge(e.fileName)!==n&&e.isAmbient));for(const a of se(t)?t:function(){const e=r.getLanguageService(),t=e.getProgram(),i=aY(t.getSourceFile(n),o);if((np(i)||nC(i))&&wS(i.parent))return BS(i,(t=>{var r;if(t===i)return;const o=null==(r=e.getDefinitionAtPosition(n,t.getStart(),!0,!1))?void 0:r.filter((e=>$ge(e.fileName)!==n&&e.isAmbient)).map((e=>({fileName:e.fileName,name:sv(i)})));return se(o)?o:void 0}))||Vge;return Vge}()){const t=s(a.fileName,n,i);if(!t)continue;const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,i.currentDirectory,i.directoryStructureHost);if(!r)continue;i.containsScriptInfo(r)||(i.addRoot(r),i.updateGraph());const o=d.getProgram(),l=In.checkDefined(o.getSourceFile(t));for(const n of c(a.name,l,o))e.add(n)}}a=Ye(e.values())}return a=a.filter((e=>!e.isAmbient&&!e.failedAliasResolution)),this.mapDefinitionInfo(a,r);function s(e,t,n){var o,i,a;const s=iA(e);if(s&&e.lastIndexOf(HO)===s.topLevelNodeModulesIndex){const l=e.substring(0,s.packageRootIndex),c=null==(o=r.getModuleResolutionCache())?void 0:o.getPackageJsonInfoCache(),d=r.getCompilationSettings(),u=iW(ma(l+"/package.json",r.getCurrentDirectory()),oW(c,r,d));if(!u)return;const p=nW(u,{moduleResolution:2},r,r.getModuleResolutionCache()),f=AW(IW(e.substring(s.topLevelPackageNameIndex+1,s.packageRootIndex))),m=r.toPath(e);if(p&&se(p,(e=>r.toPath(e)===m)))return null==(i=n.resolutionCache.resolveSingleModuleNameWithoutWatching(f,t).resolvedModule)?void 0:i.resolvedFileName;{const r=`${f}/${cx(e.substring(s.packageRootIndex+1))}`;return null==(a=n.resolutionCache.resolveSingleModuleNameWithoutWatching(r,t).resolvedModule)?void 0:a.resolvedFileName}}}function l(e,t,r){var i;const a=r.getSourceFile(e.fileName);if(!a)return;const s=aY(t.getSourceFile(n),o),l=t.getTypeChecker().getSymbolAtLocation(s),d=l&&Df(l,276);if(!d)return;return c((null==(i=d.propertyName)?void 0:i.text)||d.name.text,a,r)}function c(e,t,n){return Z(Hue.Core.getTopMostDeclarationNamesInFile(e,t),(e=>{const t=n.getTypeChecker().getSymbolAtLocation(e),r=Ry(e);if(t&&r)return upe.createDefinitionInfo(r,n.getTypeChecker(),t,r,!0)}))}}getEmitOutput(e){const{file:t,project:n}=this.getFileAndProject(e);if(!n.shouldEmitFile(n.getScriptInfo(t)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const r=n.getLanguageService().getEmitOutput(t);return e.richResponse?{...r,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r.diagnostics):r.diagnostics.map((e=>fbe(e,!0)))}:r}mapJSDocTagInfo(e,t,n){return e?e.map((e=>{var r;return{...e,text:n?this.mapDisplayParts(e.text,t):null==(r=e.text)?void 0:r.map((e=>e.text)).join("")}})):[]}mapDisplayParts(e,t){return e?e.map((e=>"linkName"!==e.kind?e:{...e,target:this.toFileSpan(e.target.fileName,e.target.textSpan,t)})):[]}mapSignatureHelpItems(e,t,n){return e.map((e=>({...e,documentation:this.mapDisplayParts(e.documentation,t),parameters:e.parameters.map((e=>({...e,documentation:this.mapDisplayParts(e.documentation,t)}))),tags:this.mapJSDocTagInfo(e.tags,t,n)})))}mapDefinitionInfo(e,t){return e.map((e=>({...this.toFileSpanWithContext(e.fileName,e.textSpan,e.contextSpan,t),...e.unverified&&{unverified:e.unverified}})))}static mapToOriginalLocation(e){return e.originalFileName?(In.assert(void 0!==e.originalTextSpan,"originalTextSpan should be present if originalFileName is"),{...e,fileName:e.originalFileName,textSpan:e.originalTextSpan,targetFileName:e.fileName,targetTextSpan:e.textSpan,contextSpan:e.originalContextSpan,targetContextSpan:e.contextSpan}):e}toFileSpan(e,t,n){const r=n.getLanguageService(),o=r.toLineColumnOffset(e,t.start),i=r.toLineColumnOffset(e,Qs(t));return{file:e,start:{line:o.line+1,offset:o.character+1},end:{line:i.line+1,offset:i.character+1}}}toFileSpanWithContext(e,t,n,r){const o=this.toFileSpan(e,t,r),i=n&&this.toFileSpan(e,n,r);return i?{...o,contextStart:i.start,contextEnd:i.end}:o}getTypeDefinition(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),o=this.mapDefinitionInfoLocations(n.getLanguageService().getTypeDefinitionAtPosition(t,r)||Vge,n);return this.mapDefinitionInfo(o,n)}mapImplementationLocations(e,t){return e.map((e=>{const n=xbe(e,t);return n?{...n,kind:e.kind,displayParts:e.displayParts}:e}))}getImplementation(t,n){const{file:r,project:o}=this.getFileAndProject(t),i=this.getPositionInFile(t,r),a=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(r,i)||Vge,o);return n?a.map((({fileName:e,textSpan:t,contextSpan:n})=>this.toFileSpanWithContext(e,t,n,o))):a.map(e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?Vge:this.getDiagnosticsWorker(e,!1,((e,t)=>e.getLanguageService().getSyntacticDiagnostics(t)),!!e.includeLinePosition)}getSemanticDiagnosticsSync(e){const{configFile:t,project:n}=this.getConfigFileAndProject(e);return t?this.getConfigFileDiagnostics(t,n,!!e.includeLinePosition):this.getDiagnosticsWorker(e,!0,((e,t)=>e.getLanguageService().getSemanticDiagnostics(t).filter((e=>!!e.file))),!!e.includeLinePosition)}getSuggestionDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?Vge:this.getDiagnosticsWorker(e,!0,((e,t)=>e.getLanguageService().getSuggestionDiagnostics(t)),!!e.includeLinePosition)}getJsxClosingTag(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),o=n.getJsxClosingTagAtPosition(t,r);return void 0===o?void 0:{newText:o.newText,caretOffset:0}}getLinkedEditingRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),o=n.getLinkedEditingRangeAtPosition(t,r),i=this.projectService.getScriptInfoForNormalizedPath(t);if(void 0!==i&&void 0!==o)return function(e,t){const n=e.ranges.map((e=>({start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(e.start+e.length)})));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}(o,i)}getDocumentHighlights(e,t){const{file:n,project:r}=this.getFileAndProject(e),o=this.getPositionInFile(e,n),i=r.getLanguageService().getDocumentHighlights(n,o,e.filesToSearch);return i?t?i.map((({fileName:e,highlightSpans:t})=>{const n=r.getScriptInfo(e);return{file:e,highlightSpans:t.map((({textSpan:e,kind:t,contextSpan:r})=>({...Rbe(e,r,n),kind:t})))}})):i:Vge}provideInlayHints(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);return n.getLanguageService().provideInlayHints(t,e,this.getPreferences(t)).map((e=>{const{position:t,displayParts:n}=e;return{...e,position:r.positionToLineOffset(t),displayParts:null==n?void 0:n.map((({text:e,span:t,file:n})=>{if(t){In.assertIsDefined(n,"Target file should be defined together with its span.");const r=this.projectService.getScriptInfo(n);return{text:e,span:{start:r.positionToLineOffset(t.start),end:r.positionToLineOffset(t.start+t.length),file:n}}}return{text:e}}))}}))}setCompilerOptionsForInferredProjects(e){this.projectService.setCompilerOptionsForInferredProjects(e.options,e.projectRootPath)}getProjectInfo(e){return this.getProjectInfoWorker(e.file,e.projectFileName,e.needFileNameList,!1)}getProjectInfoWorker(e,t,n,r){const{project:o}=this.getFileAndProjectWorker(e,t);Hve(o);return{configFileName:o.getProjectName(),languageServiceDisabled:!o.languageServiceEnabled,fileNames:n?o.getFileNames(!1,r):void 0}}getRenameInfo(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),o=this.getPreferences(t);return n.getLanguageService().getRenameInfo(t,r,o)}getProjects(e,t,n){let r,o;if(e.projectFileName){const t=this.getProject(e.projectFileName);t&&(r=[t])}else{const i=t?this.projectService.getScriptInfoEnsuringProjectsUptoDate(e.file):this.projectService.getScriptInfo(e.file);if(!i)return n?Vge:(this.projectService.logErrorForScriptInfoNotFound(e.file),Hge.ThrowNoProject());t||this.projectService.ensureDefaultProjectForFile(i),r=i.containingProjects,o=this.projectService.getSymlinkedProjects(i)}return r=G(r,(e=>e.languageServiceEnabled&&!e.isOrphan())),n||r&&r.length||o?o?{projects:r,symLinkedProjects:o}:r:(this.projectService.logErrorForScriptInfoNotFound(e.file??e.projectFileName),Hge.ThrowNoProject())}getDefaultProject(e){if(e.projectFileName){const t=this.getProject(e.projectFileName);if(t)return t;if(!e.file)return Hge.ThrowNoProject()}return this.projectService.getScriptInfo(e.file).getDefaultProject()}getRenameLocations(e,t){const n=$ge(e.file),r=this.getPositionInFile(e,n),o=this.getProjects(e),i=this.getDefaultProject(e),a=this.getPreferences(n),s=this.mapRenameInfo(i.getLanguageService().getRenameInfo(n,r,a),In.checkDefined(this.projectService.getScriptInfo(n)));if(!s.canRename)return t?{info:s,locs:[]}:[];const l=function(e,t,n,r,o,i,a){const s=ybe(e,t,n,!0,((e,t)=>e.getLanguageService().findRenameLocations(t.fileName,t.pos,r,o,i)),((e,t)=>t(Sbe(e))));if(mt(s))return s;const l=[],c=hbe(a);return s.forEach(((e,t)=>{for(const n of e)c.has(n)||Tbe(Sbe(n),t)||(l.push(n),c.add(n))})),l}(o,i,{fileName:e.file,pos:r},!!e.findInStrings,!!e.findInComments,a,this.host.useCaseSensitiveFileNames);return t?{info:s,locs:this.toSpanGroups(l)}:l}mapRenameInfo(e,t){if(e.canRename){const{canRename:n,fileToRename:r,displayName:o,fullDisplayName:i,kind:a,kindModifiers:s,triggerSpan:l}=e;return{canRename:n,fileToRename:r,displayName:o,fullDisplayName:i,kind:a,kindModifiers:s,triggerSpan:Ibe(l,t)}}return e}toSpanGroups(e){const t=new Map;for(const{fileName:n,textSpan:r,contextSpan:o,originalContextSpan:i,originalTextSpan:a,originalFileName:s,...l}of e){let e=t.get(n);e||t.set(n,e={file:n,locs:[]});const i=In.checkDefined(this.projectService.getScriptInfo(n));e.locs.push({...Rbe(r,o,i),...l})}return Ye(t.values())}getReferences(e,t){const n=$ge(e.file),r=this.getProjects(e),o=this.getPositionInFile(e,n),i=function(e,t,n,r,o){var i,a;const s=ybe(e,t,n,!1,((e,t)=>(o.info(`Finding references to ${t.fileName} position ${t.pos} in project ${e.getProjectName()}`),e.getLanguageService().findReferences(t.fileName,t.pos))),((e,t)=>{t(Sbe(e.definition));for(const n of e.references)t(Sbe(n))}));if(mt(s))return s;const l=s.get(t);if(void 0===(null==(a=null==(i=null==l?void 0:l[0])?void 0:i.references[0])?void 0:a.isDefinition))s.forEach((e=>{for(const t of e)for(const e of t.references)delete e.isDefinition}));else{const e=hbe(r);for(const n of l)for(const t of n.references)if(t.isDefinition){e.add(t);break}const t=new Set;for(;;){let n=!1;if(s.forEach(((r,o)=>{t.has(o)||o.getLanguageService().updateIsDefinitionOfReferencedSymbols(r,e)&&(t.add(o),n=!0)})),!n)break}s.forEach(((e,n)=>{if(!t.has(n))for(const t of e)for(const e of t.references)e.isDefinition=!1}))}const c=[],d=hbe(r);return s.forEach(((e,t)=>{for(const n of e){const e=Tbe(Sbe(n.definition),t),o=void 0===e?n.definition:{...n.definition,textSpan:dl(e.pos,n.definition.textSpan.length),fileName:e.fileName,contextSpan:Abe(n.definition,t)};let i=L(c,(e=>NQ(e.definition,o,r)));i||(i={definition:o,references:[]},c.push(i));for(const r of n.references)d.has(r)||Tbe(Sbe(r),t)||(d.add(r),i.references.push(r))}})),c.filter((e=>0!==e.references.length))}(r,this.getDefaultProject(e),{fileName:e.file,pos:o},this.host.useCaseSensitiveFileNames,this.logger);if(!t)return i;const a=this.getPreferences(n),s=this.getDefaultProject(e),l=s.getScriptInfoForNormalizedPath(n),c=s.getLanguageService().getQuickInfoAtPosition(n,o),d=c?h7(c.displayParts):"",u=c&&c.textSpan,p=u?l.positionToLineOffset(u.start).offset:0,f=u?l.getSnapshot().getText(u.start,Qs(u)):"";return{refs:J(i,(e=>e.references.map((e=>Nbe(this.projectService,e,a))))),symbolName:f,symbolStartOffset:p,symbolDisplayString:d}}getFileReferences(e,t){const n=this.getProjects(e),r=e.file,o=this.getPreferences($ge(r)),i=[],a=hbe(this.host.useCaseSensitiveFileNames);if(gbe(n,void 0,(e=>{if(e.getCancellationToken().isCancellationRequested())return;const t=e.getLanguageService().getFileReferences(r);if(t)for(const n of t)a.has(n)||(i.push(n),a.add(n))})),!t)return i;return{refs:i.map((e=>Nbe(this.projectService,e,o))),symbolName:`"${e.file}"`}}openClientFile(e,t,n,r){this.projectService.openClientFileWithNormalizedPath(e,t,n,!1,r)}getPosition(e,t){return void 0!==e.position?e.position:t.lineOffsetToPosition(e.line,e.offset)}getPositionInFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(t);return this.getPosition(e,n)}getFileAndProject(e){return this.getFileAndProjectWorker(e.file,e.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(e){const{file:t,project:n}=this.getFileAndProject(e);return{file:t,languageService:n.getLanguageService(!1)}}getFileAndProjectWorker(e,t){const n=$ge(e);return{file:n,project:this.getProject(t)||this.projectService.ensureDefaultProjectForFile(n)}}getOutliningSpans(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=r.getOutliningSpans(n);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return o.map((t=>({textSpan:Ibe(t.textSpan,e),hintSpan:Ibe(t.hintSpan,e),bannerText:t.bannerText,autoCollapse:t.autoCollapse,kind:t.kind})))}return o}getTodoComments(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getTodoComments(t,e.descriptors)}getDocCommentTemplate(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getDocCommentTemplateAtPosition(t,r,this.getPreferences(t),this.getFormatOptions(t))}getSpanOfEnclosingComment(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.onlyMultiLine,o=this.getPositionInFile(e,t);return n.getSpanOfEnclosingComment(t,o,r)}getIndentation(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),o=e.options?Rve(e.options):this.getFormatOptions(t);return{position:r,indentation:n.getIndentationAtPosition(t,r,o)}}getBreakpointStatement(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getBreakpointStatementAtPosition(t,r)}getNameOrDottedNameSpan(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getNameOrDottedNameSpan(t,r,r)}isValidBraceCompletion(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.isValidBraceCompletionAtPosition(t,r,e.openingBrace.charCodeAt(0))}getQuickInfoWorker(e,t){const{file:n,project:r}=this.getFileAndProject(e),o=this.projectService.getScriptInfoForNormalizedPath(n),i=r.getLanguageService().getQuickInfoAtPosition(n,this.getPosition(e,o));if(!i)return;const a=!!this.getPreferences(n).displayPartsForJSDoc;if(t){const e=h7(i.displayParts);return{kind:i.kind,kindModifiers:i.kindModifiers,start:o.positionToLineOffset(i.textSpan.start),end:o.positionToLineOffset(Qs(i.textSpan)),displayString:e,documentation:a?this.mapDisplayParts(i.documentation,r):h7(i.documentation),tags:this.mapJSDocTagInfo(i.tags,r,a)}}return a?i:{...i,tags:this.mapJSDocTagInfo(i.tags,r,!1)}}getFormattingEditsForRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),o=r.lineOffsetToPosition(e.line,e.offset),i=r.lineOffsetToPosition(e.endLine,e.endOffset),a=n.getFormattingEditsForRange(t,o,i,this.getFormatOptions(t));if(a)return a.map((e=>this.convertTextChangeToCodeEdit(e,r)))}getFormattingEditsForRangeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?Rve(e.options):this.getFormatOptions(t);return n.getFormattingEditsForRange(t,e.position,e.endPosition,r)}getFormattingEditsForDocumentFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?Rve(e.options):this.getFormatOptions(t);return n.getFormattingEditsForDocument(t,r)}getFormattingEditsAfterKeystrokeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?Rve(e.options):this.getFormatOptions(t);return n.getFormattingEditsAfterKeystroke(t,e.position,e.key,r)}getFormattingEditsAfterKeystroke(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),o=r.lineOffsetToPosition(e.line,e.offset),i=this.getFormatOptions(t),a=n.getFormattingEditsAfterKeystroke(t,o,e.key,i);if("\n"===e.key&&(!a||0===a.length||function(e,t){return e.every((e=>Qs(e.span)<t))}(a,o))){const{lineText:s,absolutePosition:l}=r.textStorage.getAbsolutePositionAndLineText(e.line);if(s&&s.search("\\S")<0){const e=n.getIndentationAtPosition(t,o,i);let r,c,d=0;for(r=0,c=s.length;r<c;r++)if(" "===s.charAt(r))d++;else{if("\t"!==s.charAt(r))break;d+=i.tabSize}if(e!==d){const t=l+r;a.push({span:ul(l,t),newText:vge.getIndentationString(e,i)})}}}if(a)return a.map((e=>({start:r.positionToLineOffset(e.span.start),end:r.positionToLineOffset(Qs(e.span)),newText:e.newText?e.newText:""})))}getCompletions(e,t){const{file:n,project:r}=this.getFileAndProject(e),o=this.projectService.getScriptInfoForNormalizedPath(n),i=this.getPosition(e,o),a=r.getLanguageService().getCompletionsAtPosition(n,i,{...kve(this.getPreferences(n)),triggerCharacter:e.triggerCharacter,triggerKind:e.triggerKind,includeExternalModuleExports:e.includeExternalModuleExports,includeInsertTextCompletions:e.includeInsertTextCompletions},r.projectService.getFormatCodeOptions(n));if(void 0===a)return;if("completions-full"===t)return a;const s=e.prefix||"",l=Z(a.entries,(e=>{if(a.isMemberCompletion||dn(e.name.toLowerCase(),s.toLowerCase())){const{name:t,kind:n,kindModifiers:r,sortText:i,insertText:a,filterText:s,replacementSpan:l,hasAction:c,source:d,sourceDisplay:u,labelDetails:p,isSnippet:f,isRecommended:m,isPackageJsonImport:_,isImportStatementCompletion:h,data:g}=e;return{name:t,kind:n,kindModifiers:r,sortText:i,insertText:a,filterText:s,replacementSpan:l?Ibe(l,o):void 0,isSnippet:f,hasAction:c||void 0,source:d,sourceDisplay:u,labelDetails:p,isRecommended:m,isPackageJsonImport:_,isImportStatementCompletion:h,data:g}}}));if("completions"===t)return a.metadata&&(l.metadata=a.metadata),l;return{...a,optionalReplacementSpan:a.optionalReplacementSpan&&Ibe(a.optionalReplacementSpan,o),entries:l}}getCompletionEntryDetails(e,t){const{file:n,project:r}=this.getFileAndProject(e),o=this.projectService.getScriptInfoForNormalizedPath(n),i=this.getPosition(e,o),a=r.projectService.getFormatCodeOptions(n),s=!!this.getPreferences(n).displayPartsForJSDoc,l=Z(e.entryNames,(e=>{const{name:t,source:o,data:s}="string"===typeof e?{name:e,source:void 0,data:void 0}:e;return r.getLanguageService().getCompletionEntryDetails(n,i,t,a,o,this.getPreferences(n),s?vt(s,Mbe):void 0)}));return t?s?l:l.map((e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)}))):l.map((e=>({...e,codeActions:U(e.codeActions,(e=>this.mapCodeAction(e))),documentation:this.mapDisplayParts(e.documentation,r),tags:this.mapJSDocTagInfo(e.tags,r,s)})))}getCompileOnSaveAffectedFileList(e){const t=this.getProjects(e,!0,!0),n=this.projectService.getScriptInfo(e.file);return n?function(e,t,n,r){const o=X(mt(n)?n:n.projects,(t=>r(t,e)));return!mt(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach(((e,n)=>{const i=t(n);o.push(...J(e,(e=>r(e,i))))})),pe(o,kt)}(n,(e=>this.projectService.getScriptInfoForPath(e)),t,((e,t)=>{if(!e.compileOnSaveEnabled||!e.languageServiceEnabled||e.isOrphan())return;const n=e.getCompilationSettings();return n.noEmit||_P(t.fileName)&&!function(e){return Qp(e)||!!e.emitDecoratorMetadata}(n)?void 0:{projectFileName:e.getProjectName(),fileNames:e.getCompileOnSaveAffectedFileList(t),projectUsesOutFile:!!ob(n)}})):Vge}emitFile(e){const{file:t,project:n}=this.getFileAndProject(e);if(n||Hge.ThrowNoProject(),!n.languageServiceEnabled)return!!e.richResponse&&{emitSkipped:!0,diagnostics:[]};const r=n.getScriptInfo(t),{emitSkipped:o,diagnostics:i}=n.emitFile(r,((e,t,n)=>this.host.writeFile(e,t,n)));return e.richResponse?{emitSkipped:o,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(i):i.map((e=>fbe(e,!0)))}:!o}getSignatureHelpItems(e,t){const{file:n,project:r}=this.getFileAndProject(e),o=this.projectService.getScriptInfoForNormalizedPath(n),i=this.getPosition(e,o),a=r.getLanguageService().getSignatureHelpItems(n,i,e),s=!!this.getPreferences(n).displayPartsForJSDoc;if(a&&t){const e=a.applicableSpan;return{...a,applicableSpan:{start:o.positionToLineOffset(e.start),end:o.positionToLineOffset(e.start+e.length)},items:this.mapSignatureHelpItems(a.items,r,s)}}return s||!a?a:{...a,items:a.items.map((e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)})))}}toPendingErrorCheck(e){const t=$ge(e),n=this.projectService.tryGetDefaultProjectForFile(t);return n&&{fileName:t,project:n}}getDiagnostics(e,t,n){this.suppressDiagnosticEvents||n.length>0&&this.updateErrorCheck(e,n,t)}change(e){const t=this.projectService.getScriptInfo(e.file);In.assert(!!t),t.textStorage.switchToScriptVersionCache();const n=t.lineOffsetToPosition(e.line,e.offset),r=t.lineOffsetToPosition(e.endLine,e.endOffset);n>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(t,oe({span:{start:n,length:r-n},newText:e.insertString})))}reload(e,t){const n=$ge(e.file),r=void 0===e.tmpfile?void 0:$ge(e.tmpfile),o=this.projectService.getScriptInfoForNormalizedPath(n);o&&(this.changeSeq++,o.reloadFromFile(r)&&this.doOutput(void 0,"reload",t,!0))}saveToTmp(e,t){const n=this.projectService.getScriptInfo(e);n&&n.saveTo(t)}closeClientFile(e){if(!e)return;const t=_a(e);this.projectService.closeClientFile(t)}mapLocationNavigationBarItems(e,t){return U(e,(e=>({text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map((e=>Ibe(e,t))),childItems:this.mapLocationNavigationBarItems(e.childItems,t),indent:e.indent})))}getNavigationBarItems(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=r.getNavigationBarItems(n);return o?t?this.mapLocationNavigationBarItems(o,this.projectService.getScriptInfoForNormalizedPath(n)):o:void 0}toLocationNavigationTree(e,t){return{text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map((e=>Ibe(e,t))),nameSpan:e.nameSpan&&Ibe(e.nameSpan,t),childItems:U(e.childItems,(e=>this.toLocationNavigationTree(e,t)))}}getNavigationTree(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=r.getNavigationTree(n);return o?t?this.toLocationNavigationTree(o,this.projectService.getScriptInfoForNormalizedPath(n)):o:void 0}getNavigateToItems(e,t){const n=this.getFullNavigateToItems(e);return J(n,t?({project:e,navigateToItems:t})=>t.map((t=>{const n=e.getScriptInfo(t.fileName),r={name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,isCaseSensitive:t.isCaseSensitive,matchKind:t.matchKind,file:t.fileName,start:n.positionToLineOffset(t.textSpan.start),end:n.positionToLineOffset(Qs(t.textSpan))};return t.kindModifiers&&""!==t.kindModifiers&&(r.kindModifiers=t.kindModifiers),t.containerName&&t.containerName.length>0&&(r.containerName=t.containerName),t.containerKind&&t.containerKind.length>0&&(r.containerKind=t.containerKind),r})):({navigateToItems:e})=>e)}getFullNavigateToItems(e){const{currentFileOnly:t,searchValue:n,maxResultCount:r,projectFileName:o}=e;if(t){In.assertIsDefined(e.file);const{file:t,project:o}=this.getFileAndProject(e);return[{project:o,navigateToItems:o.getLanguageService().getNavigateToItems(n,r,t)}]}const i=this.getHostPreferences(),a=[],s=new Map;if(e.file||o){gbe(this.getProjects(e),void 0,(e=>l(e)))}else this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject((e=>l(e)));return a;function l(e){const t=G(e.getLanguageService().getNavigateToItems(n,r,void 0,e.isNonTsProject(),i.excludeLibrarySymbolsInNavTo),(t=>function(e){const t=e.name;if(!s.has(t))return s.set(t,[e]),!0;const n=s.get(t);for(const r of n)if(c(r,e))return!1;return n.push(e),!0}(t)&&!Tbe(Sbe(t),e)));t.length&&a.push({project:e,navigateToItems:t})}function c(e,t){return e===t||!(!e||!t)&&(e.containerKind===t.containerKind&&e.containerName===t.containerName&&e.fileName===t.fileName&&e.isCaseSensitive===t.isCaseSensitive&&e.kind===t.kind&&e.kindModifiers===t.kindModifiers&&e.matchKind===t.matchKind&&e.name===t.name&&e.textSpan.start===t.textSpan.start&&e.textSpan.length===t.textSpan.length)}}getSupportedCodeFixes(e){if(!e)return y7();if(e.file){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getSupportedCodeFixes(t)}const t=this.getProject(e.projectFileName);return t||Hge.ThrowNoProject(),t.getLanguageService().getSupportedCodeFixes()}isLocation(e){return void 0!==e.line}extractPositionOrRange(e,t){let n,r;var o;return this.isLocation(e)?n=void 0!==(o=e).position?o.position:t.lineOffsetToPosition(o.line,o.offset):r=this.getRange(e,t),In.checkDefined(void 0===n?r:n)}getRange(e,t){const{startPosition:n,endPosition:r}=this.getStartAndEndPosition(e,t);return{pos:n,end:r}}getApplicableRefactors(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getApplicableRefactors(t,this.extractPositionOrRange(e,r),this.getPreferences(t),e.triggerReason,e.kind,e.includeInteractiveActions)}getEditsForRefactor(e,t){const{file:n,project:r}=this.getFileAndProject(e),o=r.getScriptInfoForNormalizedPath(n),i=r.getLanguageService().getEditsForRefactor(n,this.getFormatOptions(n),this.extractPositionOrRange(e,o),e.refactor,e.action,this.getPreferences(n),e.interactiveRefactorArguments);if(void 0===i)return{edits:[]};if(t){const{renameFilename:e,renameLocation:t,edits:n}=i;let o;if(void 0!==e&&void 0!==t){o=Dbe(rQ(r.getScriptInfoForNormalizedPath($ge(e)).getSnapshot()),e,t,n)}return{renameLocation:o,renameFilename:e,edits:this.mapTextChangesToCodeEdits(n),notApplicableReason:i.notApplicableReason}}return i}getMoveToRefactoringFileSuggestions(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getMoveToRefactoringFileSuggestions(t,this.extractPositionOrRange(e,r),this.getPreferences(t))}organizeImports(e,t){In.assert("file"===e.scope.type);const{file:n,project:r}=this.getFileAndProject(e.scope.args),o=r.getLanguageService().organizeImports({fileName:n,mode:e.mode??(e.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(n),this.getPreferences(n));return t?this.mapTextChangesToCodeEdits(o):o}getEditsForFileRename(e,t){const n=$ge(e.oldFilePath),r=$ge(e.newFilePath),o=this.getHostFormatOptions(),i=this.getHostPreferences(),a=new Set,s=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject((e=>{const t=e.getLanguageService().getEditsForFileRename(n,r,o,i),l=[];for(const n of t)a.has(n.fileName)||(s.push(n),l.push(n.fileName));for(const n of l)a.add(n)})),t?s.map((e=>this.mapTextChangeToCodeEdit(e))):s}getCodeFixes(e,t){const{file:n,project:r}=this.getFileAndProject(e),o=r.getScriptInfoForNormalizedPath(n),{startPosition:i,endPosition:a}=this.getStartAndEndPosition(e,o);let s;try{s=r.getLanguageService().getCodeFixesAtPosition(n,i,a,e.errorCodes,this.getFormatOptions(n),this.getPreferences(n))}catch(l){const t=r.getLanguageService(),o=[...t.getSyntacticDiagnostics(n),...t.getSemanticDiagnostics(n),...t.getSuggestionDiagnostics(n)].map((e=>sl(i,a-i,e.start,e.length)&&e.code)),s=e.errorCodes.find((e=>!o.includes(e)));throw void 0!==s&&(l.message=`BADCLIENT: Bad error code, ${s} not found in range ${i}..${a} (found: ${o.join(", ")}); could have caused this error:\n${l.message}`),l}return t?s.map((e=>this.mapCodeFixAction(e))):s}getCombinedCodeFix({scope:e,fixId:t},n){In.assert("file"===e.type);const{file:r,project:o}=this.getFileAndProject(e.args),i=o.getLanguageService().getCombinedCodeFix({type:"file",fileName:r},t,this.getFormatOptions(r),this.getPreferences(r));return n?{changes:this.mapTextChangesToCodeEdits(i.changes),commands:i.commands}:i}applyCodeActionCommand(e){const t=e.command;for(const n of _t(t)){const{file:e,project:t}=this.getFileAndProject(n);t.getLanguageService().applyCodeActionCommand(n,this.getFormatOptions(e)).then((e=>{}),(e=>{}))}return{}}getStartAndEndPosition(e,t){let n,r;return void 0!==e.startPosition?n=e.startPosition:(n=t.lineOffsetToPosition(e.startLine,e.startOffset),e.startPosition=n),void 0!==e.endPosition?r=e.endPosition:(r=t.lineOffsetToPosition(e.endLine,e.endOffset),e.endPosition=r),{startPosition:n,endPosition:r}}mapCodeAction({description:e,changes:t,commands:n}){return{description:e,changes:this.mapTextChangesToCodeEdits(t),commands:n}}mapCodeFixAction({fixName:e,description:t,changes:n,commands:r,fixId:o,fixAllDescription:i}){return{fixName:e,description:t,changes:this.mapTextChangesToCodeEdits(n),commands:r,fixId:o,fixAllDescription:i}}mapTextChangesToCodeEdits(e){return e.map((e=>this.mapTextChangeToCodeEdit(e)))}mapTextChangeToCodeEdit(e){const t=this.projectService.getScriptInfoOrConfig(e.fileName);return!!e.isNewFile===!!t&&(t||this.projectService.logErrorForScriptInfoNotFound(e.fileName),In.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!e.isNewFile,hasScriptInfo:!!t}))),t?{fileName:e.fileName,textChanges:e.textChanges.map((e=>function(e,t){return{start:Cbe(t,e.span.start),end:Cbe(t,Qs(e.span)),newText:e.newText}}(e,t)))}:function(e){In.assert(1===e.textChanges.length);const t=Pe(e.textChanges);return In.assert(0===t.span.start&&0===t.span.length),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}(e)}convertTextChangeToCodeEdit(e,t){return{start:t.positionToLineOffset(e.span.start),end:t.positionToLineOffset(e.span.start+e.span.length),newText:e.newText?e.newText:""}}getBraceMatching(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=this.projectService.getScriptInfoForNormalizedPath(n),i=this.getPosition(e,o),a=r.getBraceMatchingAtPosition(n,i);return a?t?a.map((e=>Ibe(e,o))):a:void 0}getDiagnosticsForProject(e,t,n){if(this.suppressDiagnosticEvents)return;const{fileNames:r,languageServiceDisabled:o}=this.getProjectInfoWorker(n,void 0,!0,!0);if(o)return;const i=r.filter((e=>!e.includes("lib.d.ts")));if(0===i.length)return;const a=[],s=[],l=[],c=[],d=$ge(n),u=this.projectService.ensureDefaultProjectForFile(d);for(const f of i)if(this.getCanonicalFileName(f)===this.getCanonicalFileName(n))a.push(f);else{this.projectService.getScriptInfo(f).isScriptOpen()?s.push(f):_P(f)?c.push(f):l.push(f)}const p=[...a,...s,...l,...c].map((e=>({fileName:e,project:u})));this.updateErrorCheck(e,p,t,!1)}configurePlugin(e){this.projectService.configurePlugin(e)}getSmartSelectionRange(e,t){const{locations:n}=e,{file:r,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=In.checkDefined(this.projectService.getScriptInfo(r));return U(n,(e=>{const n=this.getPosition(e,i),a=o.getSmartSelectionRange(r,n);return t?this.mapSelectionRange(a,i):a}))}toggleLineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=this.projectService.getScriptInfo(n),i=this.getRange(e,o),a=r.toggleLineComment(n,i);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}toggleMultilineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=this.projectService.getScriptInfoForNormalizedPath(n),i=this.getRange(e,o),a=r.toggleMultilineComment(n,i);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}commentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=this.projectService.getScriptInfoForNormalizedPath(n),i=this.getRange(e,o),a=r.commentSelection(n,i);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}uncommentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=this.projectService.getScriptInfoForNormalizedPath(n),i=this.getRange(e,o),a=r.uncommentSelection(n,i);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}mapSelectionRange(e,t){const n={textSpan:Ibe(e.textSpan,t)};return e.parent&&(n.parent=this.mapSelectionRange(e.parent,t)),n}getScriptInfoFromProjectService(e){const t=$ge(e),n=this.projectService.getScriptInfoForNormalizedPath(t);return n||(this.projectService.logErrorForScriptInfoNotFound(t),Hge.ThrowNoProject())}toProtocolCallHierarchyItem(e){const t=this.getScriptInfoFromProjectService(e.file);return{name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,file:e.file,containerName:e.containerName,span:Ibe(e.span,t),selectionSpan:Ibe(e.selectionSpan,t)}}toProtocolCallHierarchyIncomingCall(e){const t=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map((e=>Ibe(e,t)))}}toProtocolCallHierarchyOutgoingCall(e,t){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map((e=>Ibe(e,t)))}}prepareCallHierarchy(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);if(r){const o=this.getPosition(e,r),i=n.getLanguageService().prepareCallHierarchy(t,o);return i&&d0(i,(e=>this.toProtocolCallHierarchyItem(e)))}}provideCallHierarchyIncomingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyIncomingCalls(t,this.getPosition(e,r)).map((e=>this.toProtocolCallHierarchyIncomingCall(e)))}provideCallHierarchyOutgoingCalls(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyOutgoingCalls(t,this.getPosition(e,r)).map((e=>this.toProtocolCallHierarchyOutgoingCall(e,r)))}getCanonicalFileName(e){return _a(this.host.useCaseSensitiveFileNames?e:It(e))}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(e){return{response:e,responseRequired:!0}}addProtocolHandler(e,t){if(this.handlers.has(e))throw new Error(`Protocol handler already exists for command "${e}"`);this.handlers.set(e,t)}setCurrentRequest(e){In.assert(void 0===this.currentRequestId),this.currentRequestId=e,this.cancellationToken.setRequest(e)}resetCurrentRequest(e){In.assert(this.currentRequestId===e),this.currentRequestId=void 0,this.cancellationToken.resetRequest(e)}executeWithRequestId(e,t){try{return this.setCurrentRequest(e),t()}finally{this.resetCurrentRequest(e)}}executeCommand(e){const t=this.handlers.get(e.command);if(t){const n=this.executeWithRequestId(e.seq,(()=>t(e)));return this.projectService.enableRequestedPlugins(),n}return this.logger.msg(`Unrecognized JSON command:${ZJ(e)}`,"Err"),this.doOutput(void 0,"unknown",e.seq,!1,`Unrecognized JSON command: ${e.command}`),{responseRequired:!1}}onMessage(e){var t,n,r,o,i,a,s,l,c,d,u;let p,f,m;this.gcTimer.scheduleCollect(),this.performanceData=void 0,this.logger.hasLevel(2)&&(p=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${QJ(this.toStringMessage(e))}`));try{f=this.parseMessage(e),m=f.arguments&&f.arguments.file?f.arguments:void 0,null==(t=kr)||t.instant(kr.Phase.Session,"request",{seq:f.seq,command:f.command}),null==(n=sr)||n.logStartCommand(""+f.command,this.toStringMessage(e).substring(0,100)),null==(r=kr)||r.push(kr.Phase.Session,"executeCommand",{seq:f.seq,command:f.command},!0);const{response:s,responseRequired:l}=this.executeCommand(f);if(null==(o=kr)||o.pop(),this.logger.hasLevel(2)){const e=(_=this.hrtime(p),(1e9*_[0]+_[1])/1e6).toFixed(4);l?this.logger.perftrc(`${f.seq}::${f.command}: elapsed time (in milliseconds) ${e}`):this.logger.perftrc(`${f.seq}::${f.command}: async elapsed time (in milliseconds) ${e}`)}null==(i=sr)||i.logStopCommand(""+f.command,"Success"),null==(a=kr)||a.instant(kr.Phase.Session,"response",{seq:f.seq,command:f.command,success:!!s}),s?this.doOutput(s,f.command,f.seq,!0):l&&this.doOutput(void 0,f.command,f.seq,!1,"No content available.")}catch(h){if(null==(s=kr)||s.popAll(),h instanceof Kr)return null==(l=sr)||l.logStopCommand(""+(f&&f.command),"Canceled: "+h),null==(c=kr)||c.instant(kr.Phase.Session,"commandCanceled",{seq:null==f?void 0:f.seq,command:null==f?void 0:f.command}),void this.doOutput({canceled:!0},f.command,f.seq,!0);this.logErrorWorker(h,this.toStringMessage(e),m),null==(d=sr)||d.logStopCommand(""+(f&&f.command),"Error: "+h),null==(u=kr)||u.instant(kr.Phase.Session,"commandError",{seq:null==f?void 0:f.seq,command:null==f?void 0:f.command,message:h.message}),this.doOutput(void 0,f?f.command:"unknown",f?f.seq:0,!1,"Error processing request. "+h.message+"\n"+h.stack)}var _}parseMessage(e){return JSON.parse(e)}toStringMessage(e){return e}getFormatOptions(e){return this.projectService.getFormatCodeOptions(e)}getPreferences(e){return this.projectService.getPreferences(e)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),Ube=b({"src/server/scriptVersionCache.ts"(){Xbe(),qbe(),Lbe=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(Lbe||{}),kbe=class{constructor(){this.goSubtree=!0,this.lineIndex=new Wbe,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new zbe,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e=e?this.initialText+e+this.trailingText:this.initialText+this.trailingText;const n=Wbe.linesFromText(e).lines;let r,o;n.length>1&&""===n[n.length-1]&&n.pop();for(let a=this.endBranch.length-1;a>=0;a--)this.endBranch[a].updateCounts(),0===this.endBranch[a].charCount()&&(o=this.endBranch[a],r=a>0?this.endBranch[a-1]:this.branchNode);o&&r.remove(o);const i=this.startPath[this.startPath.length-1];if(n.length>0)if(i.text=n[0],n.length>1){let e=new Array(n.length-1),t=i;for(let i=1;i<n.length;i++)e[i-1]=new Bbe(n[i]);let r=this.startPath.length-2;for(;r>=0;){const n=this.startPath[r];e=n.insertAt(t,e),r--,t=n}let o=e.length;for(;o>0;){const t=new zbe;t.add(this.lineIndex.root),e=t.insertAt(this.lineIndex.root,e),o=e.length,this.lineIndex.root=t}this.lineIndex.root.updateCounts()}else for(let a=this.startPath.length-2;a>=0;a--)this.startPath[a].updateCounts();else{this.startPath[this.startPath.length-2].remove(i);for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,r,o){const i=this.stack[this.stack.length-1];let a;function s(e){return e.isLeaf()?new Bbe(""):new zbe}switch(2===this.state&&1===o&&(this.state=1,this.branchNode=i,this.lineCollectionAtBranch=n),o){case 0:this.goSubtree=!1,4!==this.state&&i.add(n);break;case 1:4===this.state?this.goSubtree=!1:(a=s(n),i.add(a),this.startPath.push(a));break;case 2:4!==this.state?(a=s(n),i.add(a),this.startPath.push(a)):n.isLeaf()||(a=s(n),i.add(a),this.endBranch.push(a));break;case 3:this.goSubtree=!1;break;case 4:4!==this.state?this.goSubtree=!1:n.isLeaf()||(a=s(n),i.add(a),this.endBranch.push(a));break;case 5:this.goSubtree=!1,1!==this.state&&i.add(n)}this.goSubtree&&this.stack.push(a)}leaf(e,t,n){1===this.state?this.initialText=n.text.substring(0,e):2===this.state?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},Pbe=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return ml(dl(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},(wbe=class e{constructor(){this.changes=[],this.versions=new Array(e.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion||t>this.currentVersion))return t%e.maxVersions}currentVersionToIndex(){return this.currentVersion%e.maxVersions}edit(t,n,r){this.changes.push(new Pbe(t,n,r)),(this.changes.length>e.changeNumberThreshold||n>e.changeLengthThreshold||r&&r.length>e.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(const e of this.changes)n=n.edit(e.pos,e.deleteLen,e.insertedText);t=new Fbe(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=e.maxVersions&&(this.minVersion=this.currentVersion-e.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(e){return this._getSnapshot().index.lineNumberToInfo(e)}lineOffsetToPosition(e,t){return this._getSnapshot().index.absolutePositionOfStartOfLine(e)+(t-1)}positionToLineOffset(e){return this._getSnapshot().index.positionToLineOffset(e)}lineToTextSpan(e){const t=this._getSnapshot().index,{lineText:n,absolutePosition:r}=t.lineNumberToInfo(e+1);return dl(r,void 0!==n?n.length:t.absolutePositionOfStartOfLine(e+2)-r)}getTextChangesBetweenVersions(e,t){if(!(e<t))return Hs;if(e>=this.minVersion){const n=[];for(let r=e+1;r<=t;r++){const e=this.versions[this.versionToIndex(r)];for(const t of e.changesSincePreviousVersion)n.push(t.getTextChangeRange())}return _l(n)}}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const n=new e,r=new Fbe(0,n,new Wbe);n.versions[n.currentVersion]=r;const o=Wbe.linesFromText(t);return r.index.load(o.lines),n}}).changeNumberThreshold=8,wbe.changeLengthThreshold=256,wbe.maxVersions=8,Obe=wbe,Fbe=class e{constructor(e,t,n,r=Vge){this.version=e,this.cache=t,this.index=n,this.changesSincePreviousVersion=r}getText(e,t){return this.index.getText(e,t-e)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof e&&this.cache===t.cache)return this.version<=t.version?Hs:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},Wbe=class e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(e){return this.lineNumberToInfo(e).absolutePosition}positionToLineOffset(e){const{oneBasedLine:t,zeroBasedColumn:n}=this.root.charOffsetToLineInfo(1,e);return{line:t,offset:n+1}}positionToColumnAndLineText(e){return this.root.charOffsetToLineInfo(1,e)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(e){if(e<=this.getLineCount()){const{position:t,leaf:n}=this.root.lineNumberToInfo(e,0);return{absolutePosition:t,lineText:n&&n.text}}return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const n=[];for(let e=0;e<t.length;e++)n[e]=new Bbe(t[e]);this.root=e.buildTreeFromBottom(n)}else this.root=new zbe}walk(e,t,n){this.root.walk(e,t,n)}getText(e,t){let n="";return t>0&&e<this.root.charCount()&&this.walk(e,t,{goSubtree:!0,done:!1,leaf:(e,t,r)=>{n=n.concat(r.text.substring(e,e+t))}}),n}getLength(){return this.root.charCount()}every(e,t,n){n||(n=this.root.charCount());const r={goSubtree:!0,done:!1,leaf(t,n,r){e(r,t,n)||(this.done=!0)}};return this.walk(t,n-t,r),!r.done}edit(t,n,r){if(0===this.root.charCount())return In.assert(0===n),void 0!==r?(this.load(e.linesFromText(r).lines),this):void 0;{let e;if(this.checkEdits){const o=this.getText(0,this.root.charCount());e=o.slice(0,t)+r+o.slice(t+n)}const o=new kbe;let i=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const e=this.getText(t,1);r=r?e+r:e,n=0,i=!0}else if(n>0){const e=t+n,{zeroBasedColumn:o,lineText:i}=this.positionToColumnAndLineText(e);0===o&&(n+=i.length,r=r?r+i:i)}if(this.root.walk(t,n,o),o.insertLines(r,i),this.checkEdits){const t=o.lineIndex.getText(0,o.lineIndex.getLength());In.assert(e===t,"buffer edit mismatch")}return o.lineIndex}}static buildTreeFromBottom(e){if(e.length<4)return new zbe(e);const t=new Array(Math.ceil(e.length/4));let n=0;for(let r=0;r<t.length;r++){const o=Math.min(n+4,e.length);t[r]=new zbe(e.slice(n,o)),n=o}return this.buildTreeFromBottom(t)}static linesFromText(e){const t=ls(e);if(0===t.length)return{lines:[],lineMap:t};const n=new Array(t.length),r=t.length-1;for(let i=0;i<r;i++)n[i]=e.substring(t[i],t[i+1]);const o=e.substring(t[r]);return o.length>0?n[r]=o:n.pop(),{lines:n,lineMap:t}}},zbe=class e{constructor(e=[]){this.children=e,this.totalChars=0,this.totalLines=0,e.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const e of this.children)this.totalChars+=e.charCount(),this.totalLines+=e.lineCount()}execWalk(e,t,n,r,o){return n.pre&&n.pre(e,t,this.children[r],this,o),n.goSubtree?(this.children[r].walk(e,t,n),n.post&&n.post(e,t,this.children[r],this,o)):n.goSubtree=!0,n.done}skipChild(e,t,n,r,o){r.pre&&!r.done&&(r.pre(e,t,this.children[n],this,o),r.goSubtree=!0)}walk(e,t,n){let r=0,o=this.children[r].charCount(),i=e;for(;i>=o;)this.skipChild(i,t,r,n,0),i-=o,r++,o=this.children[r].charCount();if(i+t<=o){if(this.execWalk(i,t,n,r,2))return}else{if(this.execWalk(i,o-i,n,r,1))return;let e=t-(o-i);r++;for(o=this.children[r].charCount();e>o;){if(this.execWalk(0,o,n,r,3))return;e-=o,r++,o=this.children[r].charCount()}if(e>0&&this.execWalk(0,e,n,r,4))return}if(n.pre){const e=this.children.length;if(r<e-1)for(let t=r+1;t<e;t++)this.skipChild(0,0,t,n,5)}}charOffsetToLineInfo(e,t){if(0===this.children.length)return{oneBasedLine:e,zeroBasedColumn:t,lineText:void 0};for(const r of this.children){if(r.charCount()>t)return r.isLeaf()?{oneBasedLine:e,zeroBasedColumn:t,lineText:r.text}:r.charOffsetToLineInfo(e,t);t-=r.charCount(),e+=r.lineCount()}const n=this.lineCount();if(0===n)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};return{oneBasedLine:n,zeroBasedColumn:In.checkDefined(this.lineNumberToInfo(n,0).leaf).charCount(),lineText:void 0}}lineNumberToInfo(e,t){for(const n of this.children){const r=n.lineCount();if(r>=e)return n.isLeaf()?{position:t,leaf:n}:n.lineNumberToInfo(e,t);e-=r,t+=n.charCount()}return{position:t,leaf:void 0}}splitAfter(t){let n;const r=this.children.length,o=++t;if(t<r){for(n=new e;t<r;)n.add(this.children[t]),t++;n.updateCounts()}return this.children.length=o,n}remove(e){const t=this.findChildIndex(e),n=this.children.length;if(t<n-1)for(let r=t;r<n-1;r++)this.children[r]=this.children[r+1];this.children.pop()}findChildIndex(e){const t=this.children.indexOf(e);return In.assert(-1!==t),t}insertAt(t,n){let r=this.findChildIndex(t);const o=this.children.length,i=n.length;if(o<4&&r===o-1&&1===i)return this.add(n[0]),this.updateCounts(),[];{const t=this.splitAfter(r);let o=0;for(r++;r<4&&o<i;)this.children[r]=n[o],r++,o++;let a=[],s=0;if(o<i){s=Math.ceil((i-o)/4),a=new Array(s);let t=0;for(let n=0;n<s;n++)a[n]=new e;let r=a[0];for(;o<i;)r.add(n[o]),o++,4===r.children.length&&(t++,r=a[t]);for(let e=a.length-1;e>=0;e--)0===a[e].children.length&&a.pop()}t&&a.push(t),this.updateCounts();for(let e=0;e<s;e++)a[e].updateCounts();return a}}add(e){this.children.push(e),In.assert(this.children.length<=4)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},Bbe=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,n){n.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}}}}),Hbe=b({"src/server/typingInstallerAdapter.ts"(){Xbe(),qbe(),(Gbe=class e{constructor(e,t,n,r,o,i){this.telemetryEnabled=e,this.logger=t,this.host=n,this.globalTypingsCacheLocation=r,this.event=o,this.maxActiveRequestCount=i,this.activeRequestCount=0,this.requestQueue=pt(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(e){var t;return vX.validatePackageName(e)===vX.NameValidationResult.Ok&&(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!(null==(t=this.typesRegistryCache)?void 0:t.has(e)))}installPackage(e){this.packageInstallId++;const t={kind:"installPackage",...e,id:this.packageInstallId},n=new Promise(((e,t)=>{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:e,reject:t})}));return this.installer.send(t),n}attach(e){this.projectService=e,this.installer=this.createInstallerProcess()}onProjectClosed(e){this.installer.send({projectName:e.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(e,t,n){const r=Xge(e,t,n);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${ZJ(r)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(r):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${r.projectName}`),this.requestQueue.enqueue(r),this.requestMap.set(r.projectName,r))}handleMessage(e){var t,n;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${ZJ(e)}`),e.kind){case BJ:this.typesRegistryCache=new Map(Object.entries(e.typesRegistry));break;case zJ:{const r=null==(t=this.packageInstalledPromise)?void 0:t.get(e.id);In.assertIsDefined(r,"Should find the promise for package install"),null==(n=this.packageInstalledPromise)||n.delete(e.id),e.success?r.resolve({successMessage:e.message}):r.reject(e.message),this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break}case VJ:{const t={message:e.message},n="typesInstallerInitializationFailed";this.event(t,n);break}case GJ:{const t={eventId:e.eventId,packages:e.packagesToInstall},n="beginInstallTypes";this.event(t,n);break}case jJ:{if(this.telemetryEnabled){const t={telemetryEventName:"typingsInstalled",payload:{installedPackages:e.packagesToInstall.join(","),installSuccess:e.installSuccess,typingsInstallerVersion:e.typingsInstallerVersion}},n="telemetry";this.event(t,n)}const t={eventId:e.eventId,packages:e.packagesToInstall,success:e.installSuccess},n="endInstallTypes";this.event(t,n);break}case WJ:this.projectService.updateTypingsForProject(e);break;case FJ:for(this.activeRequestCount>0?this.activeRequestCount--:In.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const e=this.requestQueue.dequeue();if(this.requestMap.get(e.projectName)===e){this.requestMap.delete(e.projectName),this.scheduleRequest(e);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${e.projectName}`)}this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break;case UJ:this.projectService.watchTypingLocations(e)}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout((()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${ZJ(t)}`),this.installer.send(t)}),e.requestDelayMillis,`${t.projectName}::${t.kind}`)}}).requestDelayMillis=100,jbe=Gbe}}),Kbe={};E(Kbe,{ActionInvalidate:()=>WJ,ActionPackageInstalled:()=>zJ,ActionSet:()=>FJ,ActionWatchTypingLocations:()=>UJ,Arguments:()=>HJ,AutoImportProviderProject:()=>Gye,AuxiliaryProject:()=>zye,CharRangeSection:()=>Lbe,CloseFileWatcherEvent:()=>fve,CommandNames:()=>rbe,ConfigFileDiagEvent:()=>sve,ConfiguredProject:()=>jye,CreateDirectoryWatcherEvent:()=>pve,CreateFileWatcherEvent:()=>uve,Errors:()=>Hge,EventBeginInstallTypes:()=>GJ,EventEndInstallTypes:()=>jJ,EventInitializationFailed:()=>VJ,EventTypesRegistry:()=>BJ,ExternalProject:()=>Vye,GcTimer:()=>aye,InferredProject:()=>Wye,LargeFileReferencedEvent:()=>ave,LineIndex:()=>Wbe,LineLeaf:()=>Bbe,LineNode:()=>zbe,LogLevel:()=>jge,Msg:()=>Uge,OpenFileInfoTelemetryEvent:()=>dve,Project:()=>Fye,ProjectInfoTelemetryEvent:()=>cve,ProjectKind:()=>Oye,ProjectLanguageServiceStateEvent:()=>lve,ProjectLoadingFinishEvent:()=>ive,ProjectLoadingStartEvent:()=>ove,ProjectReferenceProjectLoadKind:()=>Sve,ProjectService:()=>xve,ProjectsUpdatedInBackgroundEvent:()=>rve,ScriptInfo:()=>Cye,ScriptVersionCache:()=>Obe,Session:()=>sbe,TextStorage:()=>Rye,ThrottledOperations:()=>iye,TypingsCache:()=>kye,TypingsInstallerAdapter:()=>jbe,allFilesAreJsOrDts:()=>qye,allRootFilesAreJsOrDts:()=>Kye,asNormalizedPath:()=>Qge,convertCompilerOptions:()=>Cve,convertFormatOptions:()=>Rve,convertScriptKindName:()=>Lve,convertTypeAcquisition:()=>Nve,convertUserPreferences:()=>kve,convertWatchOptions:()=>Dve,countEachFileTypes:()=>Hye,createInstallTypingsRequest:()=>Xge,createModuleSpecifierCache:()=>Zve,createNormalizedPathMap:()=>Zge,createPackageJsonCache:()=>tbe,createSortedArray:()=>oye,emptyArray:()=>Vge,findArgument:()=>$J,forEachResolvedProjectReferenceProject:()=>Fve,formatDiagnosticToProtocol:()=>fbe,formatMessage:()=>mbe,getBaseConfigFileName:()=>lye,getLocationInNewDocument:()=>Dbe,hasArgument:()=>XJ,hasNoTypeScriptSource:()=>Jye,indent:()=>QJ,isBackgroundProject:()=>eve,isConfigFile:()=>$ve,isConfiguredProject:()=>Qye,isDynamicFileName:()=>Nye,isExternalProject:()=>Zye,isInferredProject:()=>Yye,isInferredProjectName:()=>eye,makeAutoImportProviderProjectName:()=>nye,makeAuxiliaryProjectName:()=>rye,makeInferredProjectName:()=>tye,maxFileSize:()=>nve,maxProgramSizeForNonTsFiles:()=>tve,normalizedPathToPath:()=>Yge,nowString:()=>YJ,nullCancellationToken:()=>nbe,nullTypingsInstaller:()=>Lye,projectContainsInfoDirectly:()=>Uve,protocol:()=>Iye,removeSorted:()=>cye,stringifyIndented:()=>ZJ,toEvent:()=>_be,toNormalizedPath:()=>$ge,tryConvertScriptKindName:()=>Mve,typingsInstaller:()=>Gge,updateProjectIfDirty:()=>Hve});var qbe=b({"src/server/_namespaces/ts.server.ts"(){lX(),qge(),Jge(),sye(),xye(),Dye(),Pye(),Uye(),Ave(),Qve(),ebe(),lbe(),Vbe(),Ube(),Hbe()}}),Jbe={};E(Jbe,{ANONYMOUS:()=>ZX,AccessFlags:()=>yo,AssertionLevel:()=>m,AssignmentDeclarationKind:()=>Co,AssignmentKind:()=>Ep,Associativity:()=>Tp,BreakpointResolver:()=>L7,BuilderFileEmit:()=>SH,BuilderProgramKind:()=>TH,BuilderState:()=>yH,BundleFileSectionKind:()=>Zo,CallHierarchy:()=>Z7,CharacterCodes:()=>Vo,CheckFlags:()=>uo,CheckMode:()=>Oz,ClassificationType:()=>jX,ClassificationTypeNames:()=>GX,CommentDirectiveType:()=>Hr,Comparison:()=>r,CompletionInfoFlags:()=>PX,CompletionTriggerKind:()=>RX,Completions:()=>tue,ContainerFlags:()=>OW,ContextFlags:()=>eo,Debug:()=>In,DiagnosticCategory:()=>Do,Diagnostics:()=>Oa,DocumentHighlights:()=>n1,ElementFlags:()=>go,EmitFlags:()=>qo,EmitHint:()=>$o,EmitOnly:()=>Xr,EndOfLineState:()=>FX,EnumKind:()=>co,ExitStatus:()=>Yr,ExportKind:()=>M0,Extension:()=>Uo,ExternalEmitHelpers:()=>Xo,FileIncludeKind:()=>qr,FilePreprocessingDiagnosticsKind:()=>Jr,FileSystemEntryKind:()=>_i,FileWatcherEventKind:()=>si,FindAllReferences:()=>Hue,FlattenLevel:()=>gG,FlowFlags:()=>Ur,ForegroundColorEscapeSequences:()=>cU,FunctionFlags:()=>Sp,GeneratedIdentifierFlags:()=>jr,GetLiteralTextFlags:()=>mp,GoToDefinition:()=>upe,HighlightSpanKind:()=>DX,IdentifierNameMap:()=>OB,IdentifierNameMultiMap:()=>FB,ImportKind:()=>N0,ImportsNotUsedAsValues:()=>Fo,IndentStyle:()=>NX,IndexFlags:()=>vo,IndexKind:()=>To,InferenceFlags:()=>Io,InferencePriority:()=>Ao,InlayHintKind:()=>CX,InlayHints:()=>ype,InternalEmitFlags:()=>Jo,InternalSymbolName:()=>po,InvalidatedProjectKind:()=>bq,JSDocParsingMode:()=>ri,JsDoc:()=>Bpe,JsTyping:()=>vX,JsxEmit:()=>Oo,JsxFlags:()=>Br,JsxReferenceKind:()=>bo,LanguageServiceMode:()=>TX,LanguageVariant:()=>Go,LexicalEnvironmentFlags:()=>Qo,ListFormat:()=>ei,LogLevel:()=>An,MemberOverrideStatus:()=>Qr,ModifierFlags:()=>zr,ModuleDetectionKind:()=>Mo,ModuleInstanceState:()=>wW,ModuleKind:()=>wo,ModuleResolutionKind:()=>No,ModuleSpecifierEnding:()=>xf,NavigateTo:()=>N2,NavigationBar:()=>C4,NewLineKind:()=>Wo,NodeBuilderFlags:()=>to,NodeCheckFlags:()=>fo,NodeFactoryFlags:()=>zA,NodeFlags:()=>Wr,NodeResolutionFeatures:()=>UO,ObjectFlags:()=>_o,OperationCanceledException:()=>Kr,OperatorPrecedence:()=>xp,OrganizeImports:()=>gfe,OrganizeImportsMode:()=>IX,OuterExpressionKinds:()=>Yo,OutliningElementsCollector:()=>Cfe,OutliningSpanKind:()=>wX,OutputFileType:()=>OX,PackageJsonAutoImportPreference:()=>SX,PackageJsonDependencyGroup:()=>EX,PatternMatchKind:()=>v1,PollingInterval:()=>li,PollingWatchKind:()=>Po,PragmaKindFlags:()=>ti,PrivateIdentifierKind:()=>$I,ProcessLevel:()=>VG,ProgramUpdateLevel:()=>XV,QuotePreference:()=>$X,RelationComparisonResult:()=>Gr,Rename:()=>Ffe,ScriptElementKind:()=>zX,ScriptElementKindModifier:()=>BX,ScriptKind:()=>zo,ScriptSnapshot:()=>bX,ScriptTarget:()=>Bo,SemanticClassificationFormat:()=>AX,SemanticMeaning:()=>qX,SemicolonPreference:()=>MX,SignatureCheckMode:()=>Fz,SignatureFlags:()=>So,SignatureHelp:()=>ume,SignatureKind:()=>Eo,SmartSelectionRange:()=>xme,SnippetKind:()=>Ko,SortKind:()=>l,StructureIsReused:()=>$r,SymbolAccessibility:()=>oo,SymbolDisplay:()=>wme,SymbolDisplayPartKind:()=>kX,SymbolFlags:()=>lo,SymbolFormatFlags:()=>ro,SyntaxKind:()=>Fr,SyntheticSymbolKind:()=>io,Ternary:()=>Ro,ThrottledCancellationToken:()=>r7,TokenClass:()=>WX,TokenFlags:()=>Vr,TransformFlags:()=>Ho,TypeFacts:()=>Pz,TypeFlags:()=>mo,TypeFormatFlags:()=>no,TypeMapKind:()=>xo,TypePredicateKind:()=>ao,TypeReferenceSerializationKind:()=>so,UnionReduction:()=>Zr,UpToDateStatusType:()=>_q,VarianceFlags:()=>ho,Version:()=>Pn,VersionRange:()=>wn,WatchDirectoryFlags:()=>jo,WatchDirectoryKind:()=>ko,WatchFileKind:()=>Lo,WatchLogLevel:()=>$V,WatchType:()=>NK,accessPrivateIdentifier:()=>mG,addDisposableResourceHelper:()=>AR,addEmitFlags:()=>mI,addEmitHelper:()=>PI,addEmitHelpers:()=>wI,addInternalEmitFlags:()=>hI,addNodeFactoryPatcher:()=>qA,addObjectAllocatorPatcher:()=>XS,addRange:()=>xe,addRelatedInfo:()=>xx,addSyntheticLeadingComment:()=>RI,addSyntheticTrailingComment:()=>NI,addToSeen:()=>LS,advancedAsyncSuperHelper:()=>DR,affectsDeclarationPathOptionDeclarations:()=>FP,affectsEmitOptionDeclarations:()=>OP,allKeysStartWithDot:()=>uW,altDirectorySeparator:()=>Wi,and:()=>mn,append:()=>Ee,appendIfUnique:()=>Ie,arrayFrom:()=>Ye,arrayIsEqualTo:()=>ye,arrayIsHomogeneous:()=>Fx,arrayIsSorted:()=>he,arrayOf:()=>$e,arrayReverseIterator:()=>De,arrayToMap:()=>et,arrayToMultiMap:()=>nt,arrayToNumericMap:()=>tt,arraysEqual:()=>W,assertType:()=>gn,assign:()=>Qe,assignHelper:()=>nR,asyncDelegator:()=>iR,asyncGeneratorHelper:()=>oR,asyncSuperHelper:()=>CR,asyncValues:()=>aR,attachFileToDiagnostics:()=>oT,awaitHelper:()=>rR,awaiterHelper:()=>lR,base64decode:()=>WE,base64encode:()=>FE,binarySearch:()=>je,binarySearchKey:()=>Ve,bindSourceFile:()=>VW,breakIntoCharacterSpans:()=>F1,breakIntoWordSpans:()=>W1,buildLinkParts:()=>ZQ,buildOpts:()=>VP,buildOverload:()=>Dge,bundlerModuleNameResolver:()=>zF,canBeConvertedToAsync:()=>u2,canHaveDecorators:()=>bk,canHaveExportModifier:()=>lA,canHaveFlowNode:()=>Qg,canHaveIllegalDecorators:()=>jL,canHaveIllegalModifiers:()=>VL,canHaveIllegalType:()=>BL,canHaveIllegalTypeParameters:()=>GL,canHaveJSDoc:()=>Zg,canHaveLocals:()=>Du,canHaveModifiers:()=>vk,canHaveSymbol:()=>Cu,canJsonReportNoInputFiles:()=>dO,canProduceDiagnostics:()=>Kj,canUsePropertyAccess:()=>dA,canWatchAffectingLocation:()=>_K,canWatchAtTypes:()=>pK,canWatchDirectoryOrFile:()=>uK,cartesianProduct:()=>bn,cast:()=>vt,chainBundle:()=>GB,chainDiagnosticMessages:()=>cT,changeAnyExtension:()=>Ea,changeCompilerHostLikeToUseCache:()=>NU,changeExtension:()=>px,changeFullExtension:()=>Sa,changesAffectModuleResolution:()=>kf,changesAffectingProgramStructure:()=>wf,childIsDecorated:()=>wh,classElementOrClassElementParameterIsDecorated:()=>Fh,classHasClassThisAssignment:()=>MG,classHasDeclaredOrExplicitlyAssignedName:()=>zG,classHasExplicitlyAssignedName:()=>WG,classOrConstructorParameterIsDecorated:()=>Oh,classPrivateFieldGetHelper:()=>SR,classPrivateFieldInHelper:()=>xR,classPrivateFieldSetHelper:()=>TR,classicNameResolver:()=>CW,classifier:()=>r9,cleanExtendedConfigCache:()=>tU,clear:()=>V,clearMap:()=>SS,clearSharedExtendedConfigFileWatcher:()=>eU,climbPastPropertyAccess:()=>_$,climbPastPropertyOrElementAccess:()=>h$,clone:()=>it,cloneCompilerOptions:()=>zY,closeFileWatcher:()=>fS,closeFileWatcherOf:()=>lU,codefix:()=>Qle,collapseTextChangeRangesAcrossMultipleVersions:()=>_l,collectExternalModuleInfo:()=>HB,combine:()=>Se,combinePaths:()=>ua,commentPragmas:()=>ni,commonOptionsWithBuild:()=>NP,commonPackageFolders:()=>sf,compact:()=>ve,compareBooleans:()=>Jt,compareDataObjects:()=>ES,compareDiagnostics:()=>pT,compareDiagnosticsSkipRelatedInformation:()=>fT,compareEmitHelpers:()=>LR,compareNumberOfDirectorySeparators:()=>lx,comparePaths:()=>Ia,comparePathsCaseInsensitive:()=>Aa,comparePathsCaseSensitive:()=>xa,comparePatternKeys:()=>fW,compareProperties:()=>qt,compareStringsCaseInsensitive:()=>Bt,compareStringsCaseInsensitiveEslintCompatible:()=>Gt,compareStringsCaseSensitive:()=>jt,compareStringsCaseSensitiveUI:()=>Kt,compareTextSpans:()=>Wt,compareValues:()=>Ft,compileOnSaveCommandLineOption:()=>TP,compilerOptionsAffectDeclarationPath:()=>NT,compilerOptionsAffectEmit:()=>DT,compilerOptionsAffectSemanticDiagnostics:()=>CT,compilerOptionsDidYouMeanDiagnostics:()=>JP,compilerOptionsIndicateEsModules:()=>cQ,compose:()=>Lt,computeCommonSourceDirectoryOfFilenames:()=>AU,computeLineAndCharacterOfPosition:()=>ps,computeLineOfPosition:()=>fs,computeLineStarts:()=>ls,computePositionOfLineAndCharacter:()=>ds,computeSignature:()=>XH,computeSignatureWithDiagnostics:()=>JH,computeSuggestionDiagnostics:()=>t2,computedOptions:()=>Gp,concatenate:()=>ce,concatenateDiagnosticMessageChains:()=>dT,consumesNodeCoreModules:()=>r0,contains:()=>F,containsIgnoredPath:()=>Xx,containsObjectRestOrSpread:()=>hk,containsParseError:()=>$f,containsPath:()=>Ra,convertCompilerOptionsForTelemetry:()=>zO,convertCompilerOptionsFromJson:()=>_O,convertJsonOption:()=>TO,convertToBase64:()=>OE,convertToJson:()=>Gw,convertToObject:()=>Bw,convertToOptionsWithAbsolutePaths:()=>eO,convertToRelativePath:()=>Ma,convertToTSConfig:()=>Uw,convertTypeAcquisitionFromJson:()=>hO,copyComments:()=>SZ,copyEntries:()=>Bf,copyLeadingComments:()=>RZ,copyProperties:()=>st,copyTrailingAsLeadingComments:()=>DZ,copyTrailingComments:()=>CZ,couldStartTrivia:()=>Ss,countWhere:()=>B,createAbstractBuilder:()=>sK,createAccessorPropertyBackingField:()=>dk,createAccessorPropertyGetRedirector:()=>uk,createAccessorPropertySetRedirector:()=>pk,createBaseNodeFactory:()=>MA,createBinaryExpressionTrampoline:()=>tk,createBindingHelper:()=>gR,createBuildInfo:()=>GV,createBuilderProgram:()=>$H,createBuilderProgramUsingProgramBuildInfo:()=>tK,createBuilderStatusReporter:()=>Iq,createCacheWithRedirects:()=>SF,createCacheableExportInfoMap:()=>k0,createCachedDirectoryStructureHost:()=>QV,createClassNamedEvaluationHelperBlock:()=>OG,createClassThisAssignmentBlock:()=>DG,createClassifier:()=>V0,createCommentDirectivesMap:()=>ym,createCompilerDiagnostic:()=>sT,createCompilerDiagnosticForInvalidCustomType:()=>_w,createCompilerDiagnosticFromMessageChain:()=>lT,createCompilerHost:()=>IU,createCompilerHostFromProgramHost:()=>eq,createCompilerHostWorker:()=>DU,createDetachedDiagnostic:()=>tT,createDiagnosticCollection:()=>Mv,createDiagnosticForFileFromMessageChain:()=>g_,createDiagnosticForNode:()=>d_,createDiagnosticForNodeArray:()=>u_,createDiagnosticForNodeArrayFromMessageChain:()=>m_,createDiagnosticForNodeFromMessageChain:()=>f_,createDiagnosticForNodeInSourceFile:()=>p_,createDiagnosticForRange:()=>v_,createDiagnosticMessageChainFromDiagnostic:()=>y_,createDiagnosticReporter:()=>LK,createDocumentPositionMapper:()=>wB,createDocumentRegistry:()=>a1,createDocumentRegistryInternal:()=>s1,createEmitAndSemanticDiagnosticsBuilderProgram:()=>aK,createEmitHelperFactory:()=>MR,createEmptyExports:()=>YM,createExpressionForJsxElement:()=>nL,createExpressionForJsxFragment:()=>rL,createExpressionForObjectLiteralElementLike:()=>lL,createExpressionForPropertyName:()=>sL,createExpressionFromEntityName:()=>aL,createExternalHelpersImportDeclarationIfNeeded:()=>RL,createFileDiagnostic:()=>iT,createFileDiagnosticFromMessageChain:()=>h_,createForOfBindingStatement:()=>oL,createGetCanonicalFileName:()=>an,createGetSourceFile:()=>RU,createGetSymbolAccessibilityDiagnosticForNode:()=>Jj,createGetSymbolAccessibilityDiagnosticForNodeName:()=>qj,createGetSymbolWalker:()=>$W,createIncrementalCompilerHost:()=>uq,createIncrementalProgram:()=>pq,createInputFiles:()=>oI,createInputFilesWithFilePaths:()=>iI,createInputFilesWithFileTexts:()=>aI,createJsxFactoryExpression:()=>tL,createLanguageService:()=>S7,createLanguageServiceSourceFile:()=>b7,createMemberAccessForPropertyName:()=>QM,createModeAwareCache:()=>AF,createModeAwareCacheKey:()=>xF,createModuleNotFoundChain:()=>Hf,createModuleResolutionCache:()=>NF,createModuleResolutionLoader:()=>qU,createModuleResolutionLoaderUsingGlobalCache:()=>TK,createModuleSpecifierResolutionHost:()=>dQ,createMultiMap:()=>ct,createNodeConverters:()=>FA,createNodeFactory:()=>JA,createOptionNameMap:()=>fw,createOverload:()=>Cge,createPackageJsonImportFilter:()=>n0,createPackageJsonInfo:()=>t0,createParenthesizerRules:()=>PA,createPatternMatcher:()=>S1,createPrependNodes:()=>fH,createPrinter:()=>HV,createPrinterWithDefaults:()=>_V,createPrinterWithRemoveComments:()=>hV,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>gV,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>yV,createProgram:()=>cH,createProgramHost:()=>rq,createPropertyNameNodeForIdentifierOrLiteral:()=>rA,createQueue:()=>pt,createRange:()=>UE,createRedirectedBuilderProgram:()=>rK,createResolutionCache:()=>xK,createRuntimeTypeSerializer:()=>tj,createScanner:()=>Bs,createSemanticDiagnosticsBuilderProgram:()=>iK,createSet:()=>ft,createSolutionBuilder:()=>Nq,createSolutionBuilderHost:()=>Cq,createSolutionBuilderWithWatch:()=>Mq,createSolutionBuilderWithWatchHost:()=>Dq,createSortedArray:()=>fe,createSourceFile:()=>lP,createSourceMapGenerator:()=>bB,createSourceMapSource:()=>sI,createSuperAccessVariableStatement:()=>lj,createSymbolTable:()=>Mf,createSymlinkCache:()=>OT,createSystemWatchFunctions:()=>Pi,createTextChange:()=>YY,createTextChangeFromStartLength:()=>$Y,createTextChangeRange:()=>ml,createTextRangeFromNode:()=>qY,createTextRangeFromSpan:()=>XY,createTextSpan:()=>dl,createTextSpanFromBounds:()=>ul,createTextSpanFromNode:()=>HY,createTextSpanFromRange:()=>JY,createTextSpanFromStringLiteralLikeContent:()=>KY,createTextWriter:()=>Hv,createTokenRange:()=>$E,createTypeChecker:()=>Jz,createTypeReferenceDirectiveResolutionCache:()=>MF,createTypeReferenceResolutionLoader:()=>XU,createUnparsedSourceFile:()=>rI,createWatchCompilerHost:()=>fq,createWatchCompilerHostOfConfigFile:()=>aq,createWatchCompilerHostOfFilesAndCompilerOptions:()=>sq,createWatchFactory:()=>ZK,createWatchHost:()=>QK,createWatchProgram:()=>mq,createWatchStatusReporter:()=>wK,createWriteFileMeasuringIO:()=>CU,declarationNameToString:()=>o_,decodeMappings:()=>IB,decodedTextSpanIntersectsWith:()=>sl,decorateHelper:()=>YI,deduplicate:()=>pe,defaultIncludeSpec:()=>cw,defaultInitCompilerOptions:()=>qP,defaultMaximumTruncationLength:()=>dp,detectSortCaseSensitivity:()=>ge,diagnosticCategoryName:()=>ai,diagnosticToString:()=>x0,directoryProbablyExists:()=>jE,directorySeparator:()=>Fi,displayPart:()=>zQ,displayPartsToString:()=>h7,disposeEmitNodes:()=>uI,disposeResourcesHelper:()=>IR,documentSpansEqual:()=>NQ,dumpTracingLegend:()=>Or,elementAt:()=>u,elideNodes:()=>ik,emitComments:()=>kb,emitDetachedComments:()=>Pb,emitFiles:()=>BV,emitFilesAndReportErrors:()=>$K,emitFilesAndReportErrorsAndGetExitStatus:()=>YK,emitModuleKindIsNonNodeESM:()=>bT,emitNewLineBeforeLeadingCommentOfPosition:()=>Lb,emitNewLineBeforeLeadingComments:()=>Nb,emitNewLineBeforeLeadingCommentsOfPosition:()=>Mb,emitSkippedWithNoDiagnostics:()=>EU,emitUsingBuildInfo:()=>UV,emptyArray:()=>o,emptyFileSystemEntries:()=>If,emptyMap:()=>i,emptyOptions:()=>xX,emptySet:()=>s,endsWith:()=>Yt,ensurePathIsNonModuleName:()=>ba,ensureScriptKind:()=>QT,ensureTrailingDirectorySeparator:()=>va,entityNameToString:()=>c_,enumerateInsertsAndDeletes:()=>vn,equalOwnProperties:()=>Ze,equateStringsCaseInsensitive:()=>Pt,equateStringsCaseSensitive:()=>wt,equateValues:()=>kt,esDecorateHelper:()=>eR,escapeJsxAttributeString:()=>Bv,escapeLeadingUnderscores:()=>Ml,escapeNonAsciiString:()=>Wv,escapeSnippetText:()=>tA,escapeString:()=>Fv,escapeTemplateSubstitution:()=>Lv,every:()=>M,expandPreOrPostfixIncrementOrDecrementExpression:()=>cL,explainFiles:()=>UK,explainIfFileIsRedirectAndImpliedFormat:()=>HK,exportAssignmentIsAlias:()=>ky,exportStarHelper:()=>ER,expressionResultIsUnused:()=>Jx,extend:()=>at,extendsHelper:()=>cR,extensionFromPath:()=>yx,extensionIsTS:()=>hx,extensionsNotSupportingExtensionlessResolution:()=>Tf,externalHelpersModuleNameText:()=>cp,factory:()=>UA,fileExtensionIs:()=>Yi,fileExtensionIsOneOf:()=>Qi,fileIncludeReasonToDiagnostics:()=>JK,fileShouldUseJavaScriptRequire:()=>D0,filter:()=>G,filterMutate:()=>j,filterSemanticDiagnostics:()=>uH,find:()=>L,findAncestor:()=>Cl,findBestPatternMatch:()=>cn,findChildOfKind:()=>J$,findComputedPropertyNameCacheAssignment:()=>fk,findConfigFile:()=>TU,findContainingList:()=>X$,findDiagnosticForNode:()=>a0,findFirstNonJsxWhitespaceToken:()=>dY,findIndex:()=>P,findLast:()=>k,findLastIndex:()=>w,findListItemInfo:()=>K$,findMap:()=>O,findModifier:()=>IQ,findNextToken:()=>pY,findPackageJson:()=>ZZ,findPackageJsons:()=>QZ,findPrecedingMatchingToken:()=>TY,findPrecedingToken:()=>fY,findSuperStatementIndexPath:()=>eG,findTokenOnLeftOfPosition:()=>uY,findUseStrictPrologue:()=>mL,first:()=>Pe,firstDefined:()=>I,firstDefinedIterator:()=>R,firstIterator:()=>we,firstOrOnly:()=>u0,firstOrUndefined:()=>Le,firstOrUndefinedIterator:()=>ke,fixupCompilerOptions:()=>g2,flatMap:()=>J,flatMapIterator:()=>$,flatMapToMutable:()=>X,flatten:()=>q,flattenCommaList:()=>_k,flattenDestructuringAssignment:()=>vG,flattenDestructuringBinding:()=>SG,flattenDiagnosticMessageText:()=>zU,forEach:()=>x,forEachAncestor:()=>Ff,forEachAncestorDirectory:()=>Pa,forEachChild:()=>oP,forEachChildRecursively:()=>iP,forEachEmittedFile:()=>EV,forEachEnclosingBlockScopeContainer:()=>r_,forEachEntry:()=>Wf,forEachExternalModuleToImportFrom:()=>w0,forEachImportClauseDeclaration:()=>Vg,forEachKey:()=>zf,forEachLeadingCommentRange:()=>Ds,forEachNameInAccessChainWalkingLeft:()=>BS,forEachPropertyAssignment:()=>lh,forEachResolvedProjectReference:()=>YU,forEachReturnStatement:()=>H_,forEachRight:()=>A,forEachTrailingCommentRange:()=>Ns,forEachTsConfigPropArray:()=>ph,forEachUnique:()=>LQ,forEachYieldExpression:()=>K_,forSomeAncestorDirectory:()=>CS,formatColorAndReset:()=>wU,formatDiagnostic:()=>kU,formatDiagnostics:()=>LU,formatDiagnosticsWithColorAndContext:()=>WU,formatGeneratedName:()=>ck,formatGeneratedNamePart:()=>sk,formatLocation:()=>FU,formatMessage:()=>aT,formatStringFromArgs:()=>YS,formatting:()=>vge,fullTripleSlashAMDReferencePathRegEx:()=>yp,fullTripleSlashReferencePathRegEx:()=>_p,generateDjb2Hash:()=>yi,generateTSConfig:()=>Zw,generatorHelper:()=>hR,getAdjustedReferenceLocation:()=>oY,getAdjustedRenameLocation:()=>iY,getAliasDeclarationFromName:()=>My,getAllAccessorDeclarations:()=>xb,getAllDecoratorsOfClass:()=>sG,getAllDecoratorsOfClassElement:()=>lG,getAllJSDocTags:()=>Ac,getAllJSDocTagsOfKind:()=>Ic,getAllKeys:()=>Je,getAllProjectOutputs:()=>FV,getAllSuperTypeNodes:()=>zy,getAllUnscopedEmitHelpers:()=>PR,getAllowJSCompilerOption:()=>nf,getAllowSyntheticDefaultImports:()=>Jp,getAncestor:()=>jy,getAnyExtensionFromPath:()=>aa,getAreDeclarationMapsEnabled:()=>tf,getAssignedExpandoInitializer:()=>pg,getAssignedName:()=>Vl,getAssignedNameOfIdentifier:()=>PG,getAssignmentDeclarationKind:()=>Eg,getAssignmentDeclarationPropertyAccessKind:()=>Mg,getAssignmentTargetKind:()=>fy,getAutomaticTypeDirectiveNames:()=>gF,getBaseFileName:()=>oa,getBinaryOperatorPrecedence:()=>Dv,getBuildInfo:()=>VV,getBuildInfoFileVersionMap:()=>nK,getBuildInfoText:()=>jV,getBuildOrderFromAnyBuildOrder:()=>Aq,getBuilderCreationParameters:()=>KH,getBuilderFileEmit:()=>AH,getCheckFlags:()=>mS,getClassExtendsHeritageElement:()=>Fy,getClassLikeDeclarationOfSymbol:()=>IS,getCombinedLocalAndExportSymbolFlags:()=>gS,getCombinedModifierFlags:()=>Sl,getCombinedNodeFlags:()=>xl,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Tl,getCommentRange:()=>TI,getCommonSourceDirectory:()=>wV,getCommonSourceDirectoryOfConfig:()=>OV,getCompilerOptionValue:()=>MT,getCompilerOptionsDiffValue:()=>Yw,getConditions:()=>_F,getConfigFileParsingDiagnostics:()=>aH,getConstantValue:()=>LI,getContainerFlags:()=>qW,getContainerNode:()=>N$,getContainingClass:()=>_h,getContainingClassExcludingClassDecorators:()=>yh,getContainingClassStaticBlock:()=>hh,getContainingFunction:()=>fh,getContainingFunctionDeclaration:()=>mh,getContainingFunctionOrClassStaticBlock:()=>gh,getContainingNodeArray:()=>$x,getContainingObjectLiteralElement:()=>x7,getContextualTypeFromParent:()=>kZ,getContextualTypeFromParentOrAncestorTypeNode:()=>Z$,getCurrentTime:()=>Tq,getDeclarationDiagnostics:()=>Yj,getDeclarationEmitExtensionForPath:()=>nb,getDeclarationEmitOutputFilePath:()=>eb,getDeclarationEmitOutputFilePathWorker:()=>tb,getDeclarationFileExtension:()=>hP,getDeclarationFromName:()=>Ry,getDeclarationModifierFlagsFromSymbol:()=>_S,getDeclarationOfKind:()=>Df,getDeclarationsOfKind:()=>Nf,getDeclaredExpandoInitializer:()=>ug,getDecorators:()=>Ul,getDefaultCompilerOptions:()=>g7,getDefaultExportInfoWorker:()=>B0,getDefaultFormatCodeSettings:()=>HX,getDefaultLibFileName:()=>Ys,getDefaultLibFilePath:()=>I7,getDefaultLikeExportInfo:()=>W0,getDiagnosticText:()=>Cw,getDiagnosticsWithinSpan:()=>s0,getDirectoryPath:()=>ra,getDirectoryToWatchFailedLookupLocation:()=>hK,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>vK,getDocumentPositionMapper:()=>Y1,getDocumentSpansEqualityComparer:()=>MQ,getESModuleInterop:()=>qp,getEditsForFileRename:()=>u1,getEffectiveBaseTypeNode:()=>Oy,getEffectiveConstraintOfTypeParameter:()=>Dc,getEffectiveContainerForJSDocTemplateTag:()=>oy,getEffectiveImplementsTypeNodes:()=>Wy,getEffectiveInitializer:()=>dg,getEffectiveJSDocHost:()=>sy,getEffectiveModifierFlags:()=>Zb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>eE,getEffectiveModifierFlagsNoCache:()=>oE,getEffectiveReturnTypeNode:()=>Rb,getEffectiveSetAccessorTypeAnnotationNode:()=>Db,getEffectiveTypeAnnotationNode:()=>Ab,getEffectiveTypeParameterDeclarations:()=>Cc,getEffectiveTypeRoots:()=>dF,getElementOrPropertyAccessArgumentExpressionOrName:()=>Dg,getElementOrPropertyAccessName:()=>Ng,getElementsOfBindingOrAssignmentPattern:()=>WL,getEmitDeclarations:()=>Qp,getEmitFlags:()=>Rm,getEmitHelpers:()=>FI,getEmitModuleDetectionKind:()=>Hp,getEmitModuleKind:()=>Vp,getEmitModuleResolutionKind:()=>Up,getEmitScriptTarget:()=>jp,getEmitStandardClassFields:()=>RT,getEnclosingBlockScopeContainer:()=>n_,getEnclosingContainer:()=>t_,getEncodedSemanticClassifications:()=>$0,getEncodedSyntacticClassifications:()=>t1,getEndLinePosition:()=>rm,getEntityNameFromTypeNode:()=>Nh,getEntrypointsFromPackageJsonInfo:()=>nW,getErrorCountForSummary:()=>FK,getErrorSpanForNode:()=>S_,getErrorSummaryText:()=>GK,getEscapedTextOfIdentifierOrLiteral:()=>lv,getEscapedTextOfJsxAttributeName:()=>yA,getEscapedTextOfJsxNamespacedName:()=>EA,getExpandoInitializer:()=>fg,getExportAssignmentExpression:()=>Py,getExportInfoMap:()=>F0,getExportNeedsImportStarHelper:()=>jB,getExpressionAssociativity:()=>xv,getExpressionPrecedence:()=>Iv,getExternalHelpersModuleName:()=>AL,getExternalModuleImportEqualsDeclarationExpression:()=>Hh,getExternalModuleName:()=>Bg,getExternalModuleNameFromDeclaration:()=>Yv,getExternalModuleNameFromPath:()=>Qv,getExternalModuleNameLiteral:()=>NL,getExternalModuleRequireArgument:()=>Kh,getFallbackOptions:()=>sU,getFileEmitOutput:()=>EH,getFileMatcherPatterns:()=>qT,getFileNamesFromConfigSpecs:()=>RO,getFileWatcherEventKind:()=>Ci,getFilesInErrorForSummary:()=>WK,getFirstConstructorWithBody:()=>_b,getFirstIdentifier:()=>SE,getFirstNonSpaceCharacterPosition:()=>pZ,getFirstProjectOutput:()=>zV,getFixableErrorSpanExpression:()=>c0,getFormatCodeSettingsForWriting:()=>A0,getFullWidth:()=>jf,getFunctionFlags:()=>Zy,getHeritageClause:()=>Gy,getHostSignatureFromJSDoc:()=>ay,getIdentifierAutoGenerate:()=>qI,getIdentifierGeneratedImportReference:()=>XI,getIdentifierTypeArguments:()=>HI,getImmediatelyInvokedFunctionExpression:()=>xh,getImpliedNodeFormatForFile:()=>sH,getImpliedNodeFormatForFileWorker:()=>lH,getImportNeedsImportDefaultHelper:()=>UB,getImportNeedsImportStarHelper:()=>VB,getIndentSize:()=>Uv,getIndentString:()=>Vv,getInferredLibraryNameResolveFrom:()=>ZU,getInitializedVariables:()=>dS,getInitializerOfBinaryExpression:()=>Lg,getInitializerOfBindingOrAssignmentElement:()=>LL,getInterfaceBaseTypeNodes:()=>By,getInternalEmitFlags:()=>Cm,getInvokedExpression:()=>Mh,getIsolatedModules:()=>Kp,getJSDocAugmentsTag:()=>Zl,getJSDocClassTag:()=>tc,getJSDocCommentRanges:()=>G_,getJSDocCommentsAndTags:()=>ey,getJSDocDeprecatedTag:()=>uc,getJSDocDeprecatedTagNoCache:()=>pc,getJSDocEnumTag:()=>fc,getJSDocHost:()=>ly,getJSDocImplementsTags:()=>ec,getJSDocOverloadTags:()=>iy,getJSDocOverrideTagNoCache:()=>dc,getJSDocParameterTags:()=>ql,getJSDocParameterTagsNoCache:()=>Jl,getJSDocPrivateTag:()=>oc,getJSDocPrivateTagNoCache:()=>ic,getJSDocProtectedTag:()=>ac,getJSDocProtectedTagNoCache:()=>sc,getJSDocPublicTag:()=>nc,getJSDocPublicTagNoCache:()=>rc,getJSDocReadonlyTag:()=>lc,getJSDocReadonlyTagNoCache:()=>cc,getJSDocReturnTag:()=>_c,getJSDocReturnType:()=>bc,getJSDocRoot:()=>cy,getJSDocSatisfiesExpressionType:()=>hA,getJSDocSatisfiesTag:()=>gc,getJSDocTags:()=>Sc,getJSDocTagsNoCache:()=>Tc,getJSDocTemplateTag:()=>hc,getJSDocThisTag:()=>mc,getJSDocType:()=>vc,getJSDocTypeAliasName:()=>zL,getJSDocTypeAssertionType:()=>vL,getJSDocTypeParameterDeclarations:()=>Cb,getJSDocTypeParameterTags:()=>$l,getJSDocTypeParameterTagsNoCache:()=>Yl,getJSDocTypeTag:()=>yc,getJSXImplicitImportBase:()=>kT,getJSXRuntimeImport:()=>PT,getJSXTransformEnabled:()=>LT,getKeyForCompilerOptions:()=>EF,getLanguageVariant:()=>_T,getLastChild:()=>MS,getLeadingCommentRanges:()=>Ps,getLeadingCommentRangesOfNode:()=>B_,getLeftmostAccessExpression:()=>zS,getLeftmostExpression:()=>GS,getLibraryNameFromLibFileName:()=>eH,getLineAndCharacterOfPosition:()=>_s,getLineInfo:()=>EB,getLineOfLocalPosition:()=>fb,getLineOfLocalPositionFromLineMap:()=>mb,getLineStartPositionForPosition:()=>k$,getLineStarts:()=>us,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>lS,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>sS,getLinesBetweenPositions:()=>ms,getLinesBetweenRangeEndAndRangeStart:()=>nS,getLinesBetweenRangeEndPositions:()=>rS,getLiteralText:()=>Dm,getLocalNameForExternalImport:()=>DL,getLocalSymbolForExportDefault:()=>PE,getLocaleSpecificMessage:()=>eT,getLocaleTimeString:()=>PK,getMappedContextSpan:()=>OQ,getMappedDocumentSpan:()=>wQ,getMappedLocation:()=>PQ,getMatchedFileSpec:()=>KK,getMatchedIncludeSpec:()=>qK,getMeaningFromDeclaration:()=>n$,getMeaningFromLocation:()=>r$,getMembersOfDeclaration:()=>J_,getModeForFileReference:()=>BU,getModeForResolutionAtIndex:()=>GU,getModeForUsageLocation:()=>VU,getModifiedTime:()=>bi,getModifiers:()=>Hl,getModuleInstanceState:()=>zW,getModuleNameStringLiteralAt:()=>gH,getModuleSpecifierEndingPreference:()=>ix,getModuleSpecifierResolverHost:()=>uQ,getNameForExportedSymbol:()=>f0,getNameFromImportAttribute:()=>DA,getNameFromIndexInfo:()=>i_,getNameFromPropertyName:()=>aQ,getNameOfAccessExpression:()=>OS,getNameOfCompilerOptionValue:()=>Jw,getNameOfDeclaration:()=>jl,getNameOfExpando:()=>_g,getNameOfJSDocTypedef:()=>zl,getNameOrArgument:()=>Cg,getNameTable:()=>T7,getNamesForExportedSymbol:()=>p0,getNamespaceDeclarationNode:()=>Gg,getNewLineCharacter:()=>VE,getNewLineKind:()=>T0,getNewLineOrDefaultFromHost:()=>eZ,getNewTargetContainer:()=>Sh,getNextJSDocCommentLocation:()=>ny,getNodeForGeneratedName:()=>ak,getNodeId:()=>Hz,getNodeKind:()=>M$,getNodeModifiers:()=>MY,getNodeModulePathParts:()=>iA,getNonAssignedNameOfDeclaration:()=>Gl,getNonAssignmentOperatorForCompoundAssignment:()=>YB,getNonAugmentationDeclaration:()=>Vm,getNonDecoratorTokenPosOfNode:()=>bm,getNormalizedAbsolutePath:()=>ma,getNormalizedAbsolutePathWithoutRoot:()=>ha,getNormalizedPathComponents:()=>fa,getObjectFlags:()=>RS,getOperator:()=>Rv,getOperatorAssociativity:()=>Av,getOperatorPrecedence:()=>Cv,getOptionFromName:()=>xw,getOptionsForLibraryResolution:()=>LF,getOptionsNameMap:()=>mw,getOrCreateEmitNode:()=>dI,getOrCreateExternalHelpersModuleNameIfNeeded:()=>CL,getOrUpdate:()=>ne,getOriginalNode:()=>Rl,getOriginalNodeId:()=>zB,getOriginalSourceFile:()=>Tv,getOutputDeclarationFileName:()=>CV,getOutputDeclarationFileNameWorker:()=>DV,getOutputExtension:()=>IV,getOutputFileNames:()=>WV,getOutputJSFileNameWorker:()=>MV,getOutputPathsFor:()=>xV,getOutputPathsForBundle:()=>TV,getOwnEmitOutputFilePath:()=>Zv,getOwnKeys:()=>qe,getOwnValues:()=>Xe,getPackageJsonInfo:()=>sW,getPackageJsonTypesVersionsPaths:()=>cF,getPackageJsonsVisibleToFile:()=>e0,getPackageNameFromTypesPackageName:()=>AW,getPackageScopeForPath:()=>iW,getParameterSymbolFromJSDoc:()=>ry,getParameterTypeNode:()=>aA,getParentNodeInSpan:()=>xQ,getParseTreeNode:()=>Nl,getParsedCommandLineOfConfigFile:()=>Dw,getPathComponents:()=>sa,getPathComponentsRelativeTo:()=>Da,getPathFromPathComponents:()=>la,getPathUpdater:()=>p1,getPathsBasePath:()=>ib,getPatternFromSpec:()=>UT,getPendingEmitKind:()=>IH,getPositionOfLineAndCharacter:()=>cs,getPossibleGenericSignatures:()=>IY,getPossibleOriginalInputExtensionForExtension:()=>rb,getPossibleTypeArgumentsInfo:()=>RY,getPreEmitDiagnostics:()=>MU,getPrecedingNonSpaceCharacterPosition:()=>fZ,getPrivateIdentifier:()=>pG,getProperties:()=>tG,getProperty:()=>Ke,getPropertyArrayElementValue:()=>ch,getPropertyAssignmentAliasLikeExpression:()=>wy,getPropertyNameForPropertyNameNode:()=>iv,getPropertyNameForUniqueESSymbol:()=>cv,getPropertyNameFromType:()=>AA,getPropertyNameOfBindingOrAssignmentElement:()=>wL,getPropertySymbolFromBindingElement:()=>TQ,getPropertySymbolsFromContextualType:()=>A7,getQuoteFromPreference:()=>yQ,getQuotePreference:()=>gQ,getRangesWhere:()=>le,getRefactorContextSpan:()=>l0,getReferencedFileLocation:()=>oH,getRegexFromPattern:()=>JT,getRegularExpressionForWildcard:()=>GT,getRegularExpressionsForWildcards:()=>jT,getRelativePathFromDirectory:()=>Na,getRelativePathFromFile:()=>La,getRelativePathToDirectoryOrUrl:()=>ka,getRenameLocation:()=>IZ,getReplacementSpanForContextToken:()=>UY,getResolutionDiagnostic:()=>_H,getResolutionModeOverride:()=>HU,getResolveJsonModule:()=>Yp,getResolvePackageJsonExports:()=>Xp,getResolvePackageJsonImports:()=>$p,getResolvedExternalModuleName:()=>Xv,getRestIndicatorOfBindingOrAssignmentElement:()=>PL,getRestParameterElementType:()=>q_,getRightMostAssignedExpression:()=>gg,getRootDeclaration:()=>bv,getRootDirectoryOfResolutionCache:()=>bK,getRootLength:()=>na,getRootPathSplitLength:()=>EK,getScriptKind:()=>lZ,getScriptKindFromFileName:()=>ZT,getScriptTargetFeatures:()=>fp,getSelectedEffectiveModifierFlags:()=>$b,getSelectedSyntacticModifierFlags:()=>Yb,getSemanticClassifications:()=>J0,getSemanticJsxChildren:()=>Nv,getSetAccessorTypeAnnotationNode:()=>gb,getSetAccessorValueParameter:()=>hb,getSetExternalModuleIndicator:()=>vT,getShebang:()=>Os,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Xg,getSingleVariableOfVariableStatement:()=>$g,getSnapshotText:()=>rQ,getSnippetElement:()=>zI,getSourceFileOfModule:()=>Qf,getSourceFileOfNode:()=>Yf,getSourceFilePathInNewDir:()=>lb,getSourceFilePathInNewDirWorker:()=>cb,getSourceFileVersionAsHashFromText:()=>tq,getSourceFilesToEmit:()=>ab,getSourceMapRange:()=>gI,getSourceMapper:()=>$1,getSourceTextOfNodeFromSourceFile:()=>Em,getSpanOfTokenAtPosition:()=>b_,getSpellingSuggestion:()=>Xt,getStartPositionOfLine:()=>tm,getStartPositionOfRange:()=>aS,getStartsOnNewLine:()=>EI,getStaticPropertiesAndClassStaticBlock:()=>rG,getStrictOptionValue:()=>IT,getStringComparer:()=>Vt,getSubPatternFromSpec:()=>HT,getSuperCallFromStatement:()=>QB,getSuperContainer:()=>Th,getSupportedCodeFixes:()=>y7,getSupportedExtensions:()=>ex,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>tx,getSwitchedType:()=>WZ,getSymbolId:()=>Kz,getSymbolNameForPrivateIdentifier:()=>dv,getSymbolTarget:()=>cZ,getSyntacticClassifications:()=>e1,getSyntacticModifierFlags:()=>tE,getSyntacticModifierFlagsNoCache:()=>iE,getSynthesizedDeepClone:()=>mZ,getSynthesizedDeepCloneWithReplacements:()=>_Z,getSynthesizedDeepClones:()=>gZ,getSynthesizedDeepClonesWithReplacements:()=>yZ,getSyntheticLeadingComments:()=>AI,getSyntheticTrailingComments:()=>CI,getTargetLabel:()=>g$,getTargetOfBindingOrAssignmentElement:()=>kL,getTemporaryModuleResolutionState:()=>oW,getTextOfConstantValue:()=>Nm,getTextOfIdentifierOrLiteral:()=>sv,getTextOfJSDocComment:()=>Rc,getTextOfJsxAttributeName:()=>vA,getTextOfJsxNamespacedName:()=>SA,getTextOfNode:()=>xm,getTextOfNodeFromSourceText:()=>Tm,getTextOfPropertyName:()=>l_,getThisContainer:()=>vh,getThisParameter:()=>yb,getTokenAtPosition:()=>lY,getTokenPosOfNode:()=>vm,getTokenSourceMapRange:()=>vI,getTouchingPropertyName:()=>aY,getTouchingToken:()=>sY,getTrailingCommentRanges:()=>ws,getTrailingSemicolonDeferringWriter:()=>Kv,getTransformFlagsSubtreeExclusions:()=>tI,getTransformers:()=>oV,getTsBuildInfoEmitOutputFilePath:()=>SV,getTsConfigObjectLiteralExpression:()=>dh,getTsConfigPropArrayElementValue:()=>uh,getTypeAnnotationNode:()=>Ib,getTypeArgumentOrTypeParameterList:()=>LY,getTypeKeywordOfTypeOnlyImport:()=>CQ,getTypeNode:()=>VI,getTypeNodeIfAccessible:()=>zZ,getTypeParameterFromJsDoc:()=>dy,getTypeParameterOwner:()=>hl,getTypesPackageName:()=>TW,getUILocale:()=>Ut,getUniqueName:()=>AZ,getUniqueSymbolId:()=>uZ,getUseDefineForClassFields:()=>rf,getWatchErrorSummaryDiagnosticMessage:()=>zK,getWatchFactory:()=>aU,group:()=>rt,groupBy:()=>ot,guessIndentation:()=>tp,handleNoEmitOptions:()=>dH,hasAbstractModifier:()=>Hb,hasAccessorModifier:()=>qb,hasAmbientModifier:()=>Kb,hasChangesInResolutions:()=>Xf,hasChildOfKind:()=>q$,hasContextSensitiveParameters:()=>Yx,hasDecorators:()=>Xb,hasDocComment:()=>DY,hasDynamicName:()=>rv,hasEffectiveModifier:()=>Bb,hasEffectiveModifiers:()=>Wb,hasEffectiveReadonlyModifier:()=>Jb,hasExtension:()=>$i,hasIndexSignature:()=>FZ,hasInitializer:()=>Yu,hasInvalidEscape:()=>Pv,hasJSDocNodes:()=>Xu,hasJSDocParameterTags:()=>Ql,hasJSFileExtension:()=>nx,hasJsonModuleEmitEnabled:()=>ET,hasOnlyExpressionInitializer:()=>Qu,hasOverrideModifier:()=>Ub,hasPossibleExternalModuleReference:()=>Zm,hasProperty:()=>He,hasPropertyAccessExpressionWithName:()=>y$,hasQuestionToken:()=>Ug,hasRecordedExternalHelpers:()=>IL,hasResolutionModeOverride:()=>RA,hasRestParameter:()=>op,hasScopeMarker:()=>hu,hasStaticModifier:()=>Vb,hasSyntacticModifier:()=>Gb,hasSyntacticModifiers:()=>zb,hasTSFileExtension:()=>rx,hasTabstop:()=>uA,hasTrailingDirectorySeparator:()=>Zi,hasType:()=>$u,hasTypeArguments:()=>uy,hasZeroOrOneAsteriskCharacter:()=>wT,helperString:()=>kR,hostGetCanonicalFileName:()=>Jv,hostUsesCaseSensitiveFileNames:()=>qv,idText:()=>kl,identifierIsThisKeyword:()=>Tb,identifierToKeywordKind:()=>Pl,identity:()=>xt,identitySourceMapConsumer:()=>yB,ignoreSourceNewlines:()=>GI,ignoredPaths:()=>fi,importDefaultHelper:()=>bR,importFromModuleSpecifier:()=>Wg,importNameElisionDisabled:()=>ST,importStarHelper:()=>vR,indexOfAnyCharCode:()=>z,indexOfNode:()=>Im,indicesOf:()=>ue,inferredTypesContainingFile:()=>vU,injectClassNamedEvaluationHelperBlockIfMissing:()=>BG,injectClassThisAssignmentIfMissing:()=>LG,insertImports:()=>RQ,insertLeadingStatement:()=>iL,insertSorted:()=>me,insertStatementAfterCustomPrologue:()=>_m,insertStatementAfterStandardPrologue:()=>mm,insertStatementsAfterCustomPrologue:()=>fm,insertStatementsAfterStandardPrologue:()=>pm,intersperse:()=>N,intrinsicTagNameToString:()=>TA,introducesArgumentsExoticObject:()=>th,inverseJsxOptionMap:()=>AP,isAbstractConstructorSymbol:()=>AS,isAbstractModifier:()=>uC,isAccessExpression:()=>wS,isAccessibilityModifier:()=>WY,isAccessor:()=>Ld,isAccessorModifier:()=>fC,isAliasSymbolDeclaration:()=>Ny,isAliasableExpression:()=>Ly,isAmbientModule:()=>Pm,isAmbientPropertyDeclaration:()=>Km,isAnonymousFunctionDefinition:()=>_v,isAnyDirectorySeparator:()=>Vi,isAnyImportOrBareOrAccessedRequire:()=>Ym,isAnyImportOrReExport:()=>e_,isAnyImportSyntax:()=>$m,isAnySupportedFileExtension:()=>vx,isApplicableVersionedTypesKey:()=>hW,isArgumentExpressionOfElementAccess:()=>A$,isArray:()=>mt,isArrayBindingElement:()=>Hd,isArrayBindingOrAssignmentElement:()=>Qd,isArrayBindingOrAssignmentPattern:()=>Yd,isArrayBindingPattern:()=>oD,isArrayLiteralExpression:()=>aD,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>BY,isArrayTypeNode:()=>zC,isArrowFunction:()=>hD,isAsExpression:()=>MD,isAssertClause:()=>bN,isAssertEntry:()=>EN,isAssertionExpression:()=>pu,isAssertsKeyword:()=>sC,isAssignmentDeclaration:()=>cg,isAssignmentExpression:()=>gE,isAssignmentOperator:()=>mE,isAssignmentPattern:()=>Ud,isAssignmentTarget:()=>my,isAsteriskToken:()=>$R,isAsyncFunction:()=>ev,isAsyncModifier:()=>aC,isAutoAccessorPropertyDeclaration:()=>kd,isAwaitExpression:()=>bD,isAwaitKeyword:()=>lC,isBigIntLiteral:()=>WR,isBinaryExpression:()=>TD,isBinaryOperatorToken:()=>ek,isBindableObjectDefinePropertyCall:()=>Sg,isBindableStaticAccessExpression:()=>Ag,isBindableStaticElementAccessExpression:()=>Ig,isBindableStaticNameExpression:()=>Rg,isBindingElement:()=>iD,isBindingElementOfBareOrAccessedRequire:()=>og,isBindingName:()=>Sd,isBindingOrAssignmentElement:()=>qd,isBindingOrAssignmentPattern:()=>Jd,isBindingPattern:()=>Vd,isBlock:()=>BD,isBlockOrCatchScoped:()=>Lm,isBlockScope:()=>qm,isBlockScopedContainerTopLevel:()=>zm,isBooleanLiteral:()=>Id,isBreakOrContinueStatement:()=>Vc,isBreakStatement:()=>YD,isBuildInfoFile:()=>bV,isBuilderProgram:()=>jK,isBundle:()=>oM,isBundleFileTextLike:()=>FS,isCallChain:()=>Pc,isCallExpression:()=>dD,isCallExpressionTarget:()=>i$,isCallLikeExpression:()=>nu,isCallLikeOrFunctionLikeExpression:()=>tu,isCallOrNewExpression:()=>ru,isCallOrNewExpressionTarget:()=>s$,isCallSignatureDeclaration:()=>NC,isCallToHelper:()=>wR,isCaseBlock:()=>mN,isCaseClause:()=>JN,isCaseKeyword:()=>hC,isCaseOrDefaultClause:()=>Vu,isCatchClause:()=>YN,isCatchClauseVariableDeclaration:()=>Zx,isCatchClauseVariableDeclarationOrBindingElement:()=>km,isCheckJsEnabledForFile:()=>Ex,isChildOfNodeWithKind:()=>U_,isCircularBuildOrder:()=>xq,isClassDeclaration:()=>lN,isClassElement:()=>Nd,isClassExpression:()=>CD,isClassInstanceProperty:()=>Pd,isClassLike:()=>Md,isClassMemberModifier:()=>yd,isClassNamedEvaluationHelperBlock:()=>FG,isClassOrTypeElement:()=>zd,isClassStaticBlockDeclaration:()=>IC,isClassThisAssignmentBlock:()=>NG,isCollapsedRange:()=>XE,isColonToken:()=>ZR,isCommaExpression:()=>hL,isCommaListExpression:()=>FD,isCommaSequence:()=>gL,isCommaToken:()=>qR,isComment:()=>kY,isCommonJsExportPropertyAssignment:()=>Z_,isCommonJsExportedExpression:()=>Q_,isCompoundAssignment:()=>$B,isComputedNonLiteralName:()=>a_,isComputedPropertyName:()=>yC,isConciseBody:()=>bu,isConditionalExpression:()=>xD,isConditionalTypeNode:()=>KC,isConstTypeReference:()=>Bc,isConstructSignatureDeclaration:()=>MC,isConstructorDeclaration:()=>RC,isConstructorTypeNode:()=>OC,isContextualKeyword:()=>Ky,isContinueStatement:()=>$D,isCustomPrologue:()=>O_,isDebuggerStatement:()=>oN,isDeclaration:()=>Lu,isDeclarationBindingElement:()=>Kd,isDeclarationFileName:()=>_P,isDeclarationName:()=>Iy,isDeclarationNameOfEnumOrNamespace:()=>cS,isDeclarationReadonly:()=>I_,isDeclarationStatement:()=>ku,isDeclarationWithTypeParameterChildren:()=>Xm,isDeclarationWithTypeParameters:()=>Jm,isDecorator:()=>EC,isDecoratorTarget:()=>c$,isDefaultClause:()=>XN,isDefaultImport:()=>jg,isDefaultModifier:()=>iC,isDefaultedExpandoInitializer:()=>mg,isDeleteExpression:()=>gD,isDeleteTarget:()=>xy,isDeprecatedDeclaration:()=>E0,isDestructuringAssignment:()=>vE,isDiagnosticWithLocation:()=>i0,isDiskPathRoot:()=>Ki,isDoStatement:()=>HD,isDocumentRegistryEntry:()=>i1,isDotDotDotToken:()=>KR,isDottedName:()=>TE,isDynamicName:()=>ov,isESSymbolIdentifier:()=>fv,isEffectiveExternalModule:()=>Um,isEffectiveModuleDeclaration:()=>Fm,isEffectiveStrictModeSourceFile:()=>Hm,isElementAccessChain:()=>kc,isElementAccessExpression:()=>cD,isEmittedFileOfProgram:()=>iU,isEmptyArrayLiteral:()=>kE,isEmptyBindingElement:()=>vl,isEmptyBindingPattern:()=>yl,isEmptyObjectLiteral:()=>LE,isEmptyStatement:()=>jD,isEmptyStringLiteral:()=>Wh,isEntityName:()=>bd,isEntityNameExpression:()=>EE,isEnumConst:()=>A_,isEnumDeclaration:()=>uN,isEnumMember:()=>tM,isEqualityOperatorKind:()=>wZ,isEqualsGreaterThanToken:()=>tC,isExclamationToken:()=>YR,isExcludedFile:()=>CO,isExclusivelyTypeOnlyImportOrExport:()=>jU,isExpandoPropertyDeclaration:()=>IA,isExportAssignment:()=>CN,isExportDeclaration:()=>DN,isExportModifier:()=>oC,isExportName:()=>pL,isExportNamespaceAsDefaultDeclaration:()=>Sm,isExportOrDefaultModifier:()=>rk,isExportSpecifier:()=>MN,isExportsIdentifier:()=>yg,isExportsOrModuleExportsOrAlias:()=>KW,isExpression:()=>uu,isExpressionNode:()=>Bh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>D$,isExpressionOfOptionalChainRoot:()=>Fc,isExpressionStatement:()=>VD,isExpressionWithTypeArguments:()=>ND,isExpressionWithTypeArgumentsInClassExtendsClause:()=>bE,isExternalModule:()=>uP,isExternalModuleAugmentation:()=>Gm,isExternalModuleImportEqualsDeclaration:()=>Uh,isExternalModuleIndicator:()=>yu,isExternalModuleNameRelative:()=>Xs,isExternalModuleReference:()=>wN,isExternalModuleSymbol:()=>tQ,isExternalOrCommonJsModule:()=>T_,isFileLevelReservedGeneratedIdentifier:()=>fd,isFileLevelUniqueName:()=>om,isFileProbablyExternalModule:()=>Wk,isFirstDeclarationOfSymbolParameter:()=>FQ,isFixablePromiseHandler:()=>a2,isForInOrOfStatement:()=>vu,isForInStatement:()=>JD,isForInitializer:()=>Su,isForOfStatement:()=>XD,isForStatement:()=>qD,isFunctionBlock:()=>rh,isFunctionBody:()=>Eu,isFunctionDeclaration:()=>sN,isFunctionExpression:()=>_D,isFunctionExpressionOrArrowFunction:()=>eA,isFunctionLike:()=>Td,isFunctionLikeDeclaration:()=>Ad,isFunctionLikeKind:()=>Cd,isFunctionLikeOrClassStaticBlockDeclaration:()=>xd,isFunctionOrConstructorTypeNode:()=>jd,isFunctionOrModuleBlock:()=>Dd,isFunctionSymbol:()=>Og,isFunctionTypeNode:()=>wC,isFutureReservedKeyword:()=>Jy,isGeneratedIdentifier:()=>ud,isGeneratedPrivateIdentifier:()=>pd,isGetAccessor:()=>Ju,isGetAccessorDeclaration:()=>CC,isGetOrSetAccessorDeclaration:()=>Mc,isGlobalDeclaration:()=>v0,isGlobalScopeAugmentation:()=>Bm,isGrammarError:()=>sm,isHeritageClause:()=>$N,isHoistedFunction:()=>F_,isHoistedVariableStatement:()=>z_,isIdentifier:()=>nC,isIdentifierANonContextualKeyword:()=>Yy,isIdentifierName:()=>Dy,isIdentifierOrThisTypeNode:()=>HL,isIdentifierPart:()=>Ws,isIdentifierStart:()=>Fs,isIdentifierText:()=>zs,isIdentifierTypePredicate:()=>ah,isIdentifierTypeReference:()=>Ox,isIfStatement:()=>UD,isIgnoredFileFromWildCardWatching:()=>oU,isImplicitGlob:()=>VT,isImportAttribute:()=>TN,isImportAttributeName:()=>dd,isImportAttributes:()=>SN,isImportCall:()=>L_,isImportClause:()=>yN,isImportDeclaration:()=>gN,isImportEqualsDeclaration:()=>hN,isImportKeyword:()=>_C,isImportMeta:()=>k_,isImportOrExportSpecifier:()=>id,isImportOrExportSpecifierName:()=>sZ,isImportSpecifier:()=>RN,isImportTypeAssertionContainer:()=>vN,isImportTypeNode:()=>eD,isImportableFile:()=>P0,isInComment:()=>CY,isInCompoundLikeAssignment:()=>_y,isInExpressionContext:()=>Gh,isInJSDoc:()=>Zh,isInJSFile:()=>$h,isInJSXText:()=>EY,isInJsonFile:()=>Yh,isInNonReferenceComment:()=>jY,isInReferenceComment:()=>GY,isInRightSideOfInternalImportEqualsDeclaration:()=>o$,isInString:()=>gY,isInTemplateString:()=>bY,isInTopLevelContext:()=>Eh,isInTypeQuery:()=>Eb,isIncrementalCompilation:()=>ef,isIndexSignatureDeclaration:()=>LC,isIndexedAccessTypeNode:()=>YC,isInferTypeNode:()=>qC,isInfinityOrNaNString:()=>Qx,isInitializedProperty:()=>oG,isInitializedVariable:()=>uS,isInsideJsxElement:()=>SY,isInsideJsxElementOrAttribute:()=>yY,isInsideNodeModules:()=>o0,isInsideTemplateLiteral:()=>FY,isInstanceOfExpression:()=>NE,isInstantiatedModule:()=>qz,isInterfaceDeclaration:()=>cN,isInternalDeclaration:()=>sp,isInternalModuleImportEqualsDeclaration:()=>qh,isInternalName:()=>dL,isIntersectionTypeNode:()=>HC,isIntrinsicJsxName:()=>jv,isIterationStatement:()=>mu,isJSDoc:()=>bM,isJSDocAllType:()=>pM,isJSDocAugmentsTag:()=>TM,isJSDocAuthorTag:()=>xM,isJSDocCallbackTag:()=>IM,isJSDocClassTag:()=>AM,isJSDocCommentContainingNode:()=>Hu,isJSDocConstructSignature:()=>Hg,isJSDocDeprecatedTag:()=>kM,isJSDocEnumTag:()=>wM,isJSDocFunctionType:()=>gM,isJSDocImplementsTag:()=>UM,isJSDocIndexSignature:()=>eg,isJSDocLikeText:()=>Fk,isJSDocLink:()=>cM,isJSDocLinkCode:()=>dM,isJSDocLinkLike:()=>rp,isJSDocLinkPlain:()=>uM,isJSDocMemberName:()=>lM,isJSDocNameReference:()=>sM,isJSDocNamepathType:()=>vM,isJSDocNamespaceBody:()=>Au,isJSDocNode:()=>Uu,isJSDocNonNullableType:()=>_M,isJSDocNullableType:()=>mM,isJSDocOptionalParameter:()=>pA,isJSDocOptionalType:()=>hM,isJSDocOverloadTag:()=>LM,isJSDocOverrideTag:()=>MM,isJSDocParameterTag:()=>OM,isJSDocPrivateTag:()=>CM,isJSDocPropertyLikeTag:()=>qc,isJSDocPropertyTag:()=>VM,isJSDocProtectedTag:()=>DM,isJSDocPublicTag:()=>RM,isJSDocReadonlyTag:()=>NM,isJSDocReturnTag:()=>FM,isJSDocSatisfiesExpression:()=>_A,isJSDocSatisfiesTag:()=>HM,isJSDocSeeTag:()=>PM,isJSDocSignature:()=>SM,isJSDocTag:()=>Ku,isJSDocTemplateTag:()=>BM,isJSDocThisTag:()=>WM,isJSDocThrowsTag:()=>KM,isJSDocTypeAlias:()=>Kg,isJSDocTypeAssertion:()=>yL,isJSDocTypeExpression:()=>aM,isJSDocTypeLiteral:()=>EM,isJSDocTypeTag:()=>zM,isJSDocTypedefTag:()=>GM,isJSDocUnknownTag:()=>jM,isJSDocUnknownType:()=>fM,isJSDocVariadicType:()=>yM,isJSXTagName:()=>zh,isJsonEqual:()=>Dx,isJsonSourceFile:()=>x_,isJsxAttribute:()=>VN,isJsxAttributeLike:()=>Bu,isJsxAttributeName:()=>bA,isJsxAttributes:()=>UN,isJsxChild:()=>zu,isJsxClosingElement:()=>zN,isJsxClosingFragment:()=>jN,isJsxElement:()=>ON,isJsxExpression:()=>KN,isJsxFragment:()=>BN,isJsxNamespacedName:()=>qN,isJsxOpeningElement:()=>WN,isJsxOpeningFragment:()=>GN,isJsxOpeningLikeElement:()=>ju,isJsxOpeningLikeElementTagName:()=>d$,isJsxSelfClosingElement:()=>FN,isJsxSpreadAttribute:()=>HN,isJsxTagNameExpression:()=>Wu,isJsxText:()=>BR,isJumpStatementTarget:()=>v$,isKeyword:()=>Vy,isKeywordOrPunctuation:()=>Hy,isKnownSymbol:()=>uv,isLabelName:()=>E$,isLabelOfLabeledStatement:()=>b$,isLabeledStatement:()=>tN,isLateVisibilityPaintedStatement:()=>Qm,isLeftHandSideExpression:()=>iu,isLeftHandSideOfAssignment:()=>yE,isLet:()=>N_,isLineBreak:()=>ys,isLiteralComputedPropertyDeclarationName:()=>Cy,isLiteralExpression:()=>ed,isLiteralExpressionOfObject:()=>td,isLiteralImportTypeNode:()=>P_,isLiteralKind:()=>Zc,isLiteralLikeAccess:()=>Tg,isLiteralLikeElementAccess:()=>xg,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>C$,isLiteralTypeLikeExpression:()=>XL,isLiteralTypeLiteral:()=>du,isLiteralTypeNode:()=>ZC,isLocalName:()=>uL,isLogicalOperator:()=>cE,isLogicalOrCoalescingAssignmentExpression:()=>uE,isLogicalOrCoalescingAssignmentOperator:()=>dE,isLogicalOrCoalescingBinaryExpression:()=>fE,isLogicalOrCoalescingBinaryOperator:()=>pE,isMappedTypeNode:()=>QC,isMemberName:()=>Nc,isMetaProperty:()=>PD,isMethodDeclaration:()=>AC,isMethodOrAccessor:()=>wd,isMethodSignature:()=>xC,isMinusToken:()=>XR,isMissingDeclaration:()=>LN,isMissingPackageJsonInfo:()=>vF,isModifier:()=>vd,isModifierKind:()=>hd,isModifierLike:()=>Fd,isModuleAugmentationExternal:()=>jm,isModuleBlock:()=>fN,isModuleBody:()=>Tu,isModuleDeclaration:()=>pN,isModuleExportsAccessExpression:()=>bg,isModuleIdentifier:()=>vg,isModuleName:()=>JL,isModuleOrEnumDeclaration:()=>Ru,isModuleReference:()=>Fu,isModuleSpecifierLike:()=>EQ,isModuleWithStringLiteralName:()=>wm,isNameOfFunctionDeclaration:()=>R$,isNameOfModuleDeclaration:()=>I$,isNamedClassElement:()=>Od,isNamedDeclaration:()=>Bl,isNamedEvaluation:()=>gv,isNamedEvaluationSource:()=>hv,isNamedExportBindings:()=>Uc,isNamedExports:()=>NN,isNamedImportBindings:()=>Iu,isNamedImports:()=>IN,isNamedImportsOrExports:()=>WS,isNamedTupleMember:()=>GC,isNamespaceBody:()=>xu,isNamespaceExport:()=>AN,isNamespaceExportDeclaration:()=>_N,isNamespaceImport:()=>xN,isNamespaceReexportDeclaration:()=>Vh,isNewExpression:()=>uD,isNewExpressionTarget:()=>a$,isNoSubstitutionTemplateLiteral:()=>jR,isNode:()=>Jc,isNodeArray:()=>Qc,isNodeArrayMultiLine:()=>oS,isNodeDescendantOf:()=>Ay,isNodeKind:()=>Xc,isNodeLikeSystem:()=>xn,isNodeModulesDirectory:()=>wa,isNodeWithPossibleHoistedDeclaration:()=>hy,isNonContextualKeyword:()=>qy,isNonExportDefaultModifier:()=>ok,isNonGlobalAmbientModule:()=>Om,isNonGlobalDeclaration:()=>b0,isNonNullAccess:()=>mA,isNonNullChain:()=>jc,isNonNullExpression:()=>kD,isNonStaticMethodOrAccessorWithPrivateName:()=>iG,isNotEmittedOrPartiallyEmittedNode:()=>fu,isNotEmittedStatement:()=>kN,isNullishCoalesce:()=>zc,isNumber:()=>gt,isNumericLiteral:()=>FR,isNumericLiteralName:()=>nA,isObjectBindingElementWithoutPropertyName:()=>SQ,isObjectBindingOrAssignmentElement:()=>$d,isObjectBindingOrAssignmentPattern:()=>Xd,isObjectBindingPattern:()=>rD,isObjectLiteralElement:()=>Zu,isObjectLiteralElementLike:()=>Bd,isObjectLiteralExpression:()=>sD,isObjectLiteralMethod:()=>oh,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>ih,isObjectTypeDeclaration:()=>kS,isOctalDigit:()=>Es,isOmittedExpression:()=>DD,isOptionalChain:()=>wc,isOptionalChainRoot:()=>Oc,isOptionalDeclaration:()=>fA,isOptionalJSDocPropertyLikeTag:()=>cA,isOptionalTypeNode:()=>jC,isOuterExpression:()=>bL,isOutermostOptionalChain:()=>Wc,isOverrideModifier:()=>pC,isPackageJsonInfo:()=>yF,isPackedArrayLiteral:()=>qx,isParameter:()=>bC,isParameterDeclaration:()=>vv,isParameterPropertyDeclaration:()=>gl,isParameterPropertyModifier:()=>gd,isParenthesizedExpression:()=>mD,isParenthesizedTypeNode:()=>JC,isParseTreeNode:()=>Dl,isPartOfTypeNode:()=>j_,isPartOfTypeQuery:()=>jh,isPartiallyEmittedExpression:()=>OD,isPatternMatch:()=>fn,isPinnedComment:()=>gm,isPlainJsFile:()=>Zf,isPlusToken:()=>JR,isPossiblyTypeArgumentPosition:()=>AY,isPostfixUnaryExpression:()=>SD,isPrefixUnaryExpression:()=>ED,isPrivateIdentifier:()=>rC,isPrivateIdentifierClassElementDeclaration:()=>md,isPrivateIdentifierPropertyAccessExpression:()=>_d,isPrivateIdentifierSymbol:()=>pv,isProgramBundleEmitBuildInfo:()=>HH,isProgramUptoDate:()=>iH,isPrologueDirective:()=>w_,isPropertyAccessChain:()=>Lc,isPropertyAccessEntityNameExpression:()=>xE,isPropertyAccessExpression:()=>lD,isPropertyAccessOrQualifiedName:()=>eu,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Zd,isPropertyAssignment:()=>QN,isPropertyDeclaration:()=>TC,isPropertyName:()=>Ed,isPropertyNameLiteral:()=>av,isPropertySignature:()=>SC,isProtoSetter:()=>mv,isPrototypeAccess:()=>IE,isPrototypePropertyAssignment:()=>kg,isPunctuation:()=>Uy,isPushOrUnshiftIdentifier:()=>yv,isQualifiedName:()=>gC,isQuestionDotToken:()=>eC,isQuestionOrExclamationToken:()=>UL,isQuestionOrPlusOrMinusToken:()=>qL,isQuestionToken:()=>QR,isRawSourceMap:()=>xB,isReadonlyKeyword:()=>cC,isReadonlyKeywordOrPlusOrMinusToken:()=>KL,isRecognizedTripleSlashComment:()=>hm,isReferenceFileLocation:()=>rH,isReferencedFile:()=>nH,isRegularExpressionLiteral:()=>GR,isRequireCall:()=>tg,isRequireVariableStatement:()=>ag,isRestParameter:()=>ip,isRestTypeNode:()=>VC,isReturnStatement:()=>QD,isReturnStatementWithFixablePromiseHandler:()=>i2,isRightSideOfAccessExpression:()=>CE,isRightSideOfInstanceofExpression:()=>ME,isRightSideOfPropertyAccess:()=>x$,isRightSideOfQualifiedName:()=>T$,isRightSideOfQualifiedNameOrPropertyAccess:()=>RE,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>DE,isRootedDiskPath:()=>Hi,isSameEntityName:()=>hg,isSatisfiesExpression:()=>LD,isScopeMarker:()=>_u,isSemicolonClassElement:()=>zD,isSetAccessor:()=>qu,isSetAccessorDeclaration:()=>DC,isShebangTrivia:()=>Is,isShiftOperatorOrHigher:()=>$L,isShorthandAmbientModuleSymbol:()=>Wm,isShorthandPropertyAssignment:()=>ZN,isSignedNumericLiteral:()=>nv,isSimpleCopiableExpression:()=>JB,isSimpleInlineableExpression:()=>XB,isSimpleParameter:()=>_G,isSimpleParameterList:()=>hG,isSingleOrDoubleQuote:()=>sg,isSourceFile:()=>rM,isSourceFileFromLibrary:()=>R0,isSourceFileJS:()=>Jh,isSourceFileNotJS:()=>Xh,isSourceFileNotJson:()=>Qh,isSourceMapping:()=>CB,isSpecialPropertyDeclaration:()=>Pg,isSpreadAssignment:()=>eM,isSpreadElement:()=>RD,isStatement:()=>wu,isStatementButNotDeclaration:()=>Pu,isStatementOrBlock:()=>Ou,isStatementWithLocals:()=>em,isStatic:()=>jb,isStaticModifier:()=>dC,isString:()=>ht,isStringAKeyword:()=>$y,isStringANonContextualKeyword:()=>Xy,isStringAndEmptyAnonymousObjectIntersection:()=>OY,isStringDoubleQuoted:()=>lg,isStringLiteral:()=>zR,isStringLiteralLike:()=>np,isStringLiteralOrJsxExpression:()=>Gu,isStringLiteralOrTemplate:()=>OZ,isStringOrNumericLiteralLike:()=>tv,isStringOrRegularExpressionOrTemplateLiteral:()=>PY,isStringTextContainingNode:()=>cd,isSuperCall:()=>M_,isSuperKeyword:()=>mC,isSuperOrSuperProperty:()=>Ah,isSuperProperty:()=>Ih,isSupportedSourceFileName:()=>ax,isSwitchStatement:()=>eN,isSyntaxList:()=>qM,isSyntheticExpression:()=>wD,isSyntheticReference:()=>PN,isTagName:()=>S$,isTaggedTemplateExpression:()=>pD,isTaggedTemplateTag:()=>l$,isTemplateExpression:()=>AD,isTemplateHead:()=>VR,isTemplateLiteral:()=>ou,isTemplateLiteralKind:()=>nd,isTemplateLiteralToken:()=>rd,isTemplateLiteralTypeNode:()=>nD,isTemplateLiteralTypeSpan:()=>tD,isTemplateMiddle:()=>UR,isTemplateMiddleOrTemplateTail:()=>od,isTemplateSpan:()=>WD,isTemplateTail:()=>HR,isTextWhiteSpaceLike:()=>kQ,isThis:()=>L$,isThisContainerOrFunctionBlock:()=>bh,isThisIdentifier:()=>bb,isThisInTypeQuery:()=>Sb,isThisInitializedDeclaration:()=>Ch,isThisInitializedObjectBindingExpression:()=>Dh,isThisProperty:()=>Rh,isThisTypeNode:()=>XC,isThisTypeParameter:()=>oA,isThisTypePredicate:()=>sh,isThrowStatement:()=>nN,isToken:()=>Yc,isTokenKind:()=>$c,isTraceEnabled:()=>XO,isTransientSymbol:()=>Lf,isTrivia:()=>Qy,isTryStatement:()=>rN,isTupleTypeNode:()=>BC,isTypeAlias:()=>qg,isTypeAliasDeclaration:()=>dN,isTypeAssertionExpression:()=>fD,isTypeDeclaration:()=>sA,isTypeElement:()=>Wd,isTypeKeyword:()=>QY,isTypeKeywordToken:()=>ZY,isTypeKeywordTokenOrIdentifier:()=>eQ,isTypeLiteralNode:()=>WC,isTypeNode:()=>Gd,isTypeNodeKind:()=>PS,isTypeOfExpression:()=>yD,isTypeOnlyExportDeclaration:()=>sd,isTypeOnlyImportDeclaration:()=>ad,isTypeOnlyImportOrExportDeclaration:()=>ld,isTypeOperatorNode:()=>$C,isTypeParameterDeclaration:()=>vC,isTypePredicateNode:()=>kC,isTypeQueryNode:()=>FC,isTypeReferenceNode:()=>PC,isTypeReferenceType:()=>ep,isTypeUsableAsPropertyName:()=>xA,isUMDExportSymbol:()=>DS,isUnaryExpression:()=>su,isUnaryExpressionWithWrite:()=>cu,isUnicodeIdentifierStart:()=>is,isUnionTypeNode:()=>UC,isUnparsedNode:()=>Kc,isUnparsedPrepend:()=>nM,isUnparsedSource:()=>iM,isUnparsedTextLike:()=>Hc,isUrl:()=>Ui,isValidBigIntString:()=>Px,isValidESSymbolDeclaration:()=>eh,isValidTypeOnlyAliasUseSite:()=>wx,isValueSignatureDeclaration:()=>gy,isVarAwaitUsing:()=>R_,isVarConst:()=>D_,isVarUsing:()=>C_,isVariableDeclaration:()=>iN,isVariableDeclarationInVariableStatement:()=>Y_,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>rg,isVariableDeclarationInitializedToRequire:()=>ng,isVariableDeclarationList:()=>aN,isVariableLike:()=>X_,isVariableLikeOrAccessor:()=>$_,isVariableStatement:()=>GD,isVoidExpression:()=>vD,isWatchSet:()=>pS,isWhileStatement:()=>KD,isWhiteSpaceLike:()=>hs,isWhiteSpaceSingleLine:()=>gs,isWithStatement:()=>ZD,isWriteAccess:()=>vS,isWriteOnlyAccess:()=>yS,isYieldExpression:()=>ID,jsxModeNeedsExplicitImport:()=>I0,keywordPart:()=>GQ,last:()=>Fe,lastOrUndefined:()=>Oe,length:()=>T,libMap:()=>CP,libs:()=>RP,lineBreakPart:()=>tZ,linkNamePart:()=>YQ,linkPart:()=>QQ,linkTextPart:()=>$Q,listFiles:()=>VK,loadModuleFromGlobalCache:()=>MW,loadWithModeAwareCache:()=>$U,makeIdentifierFromModuleName:()=>Mm,makeImport:()=>mQ,makeImportIfNecessary:()=>fQ,makeStringLiteral:()=>_Q,mangleScopedPackageName:()=>xW,map:()=>U,mapAllOrFail:()=>Q,mapDefined:()=>Z,mapDefinedEntries:()=>te,mapDefinedIterator:()=>ee,mapEntries:()=>ae,mapIterator:()=>H,mapOneOrMany:()=>d0,mapToDisplayParts:()=>nZ,matchFiles:()=>XT,matchPatternOrExact:()=>Sx,matchedText:()=>ln,matchesExclude:()=>NO,maybeBind:()=>lt,maybeSetLocalizedDiagnosticMessages:()=>ZS,memoize:()=>Ct,memoizeCached:()=>Mt,memoizeOne:()=>Dt,memoizeWeak:()=>Nt,metadataHelper:()=>QI,min:()=>zt,minAndMax:()=>Ax,missingFileModifiedTime:()=>ci,modifierToFlag:()=>sE,modifiersToFlags:()=>aE,moduleOptionDeclaration:()=>LP,moduleResolutionIsEqualTo:()=>Uf,moduleResolutionNameAndModeGetter:()=>gU,moduleResolutionOptionDeclarations:()=>WP,moduleResolutionSupportsPackageJsonExportsAndImports:()=>AT,moduleResolutionUsesNodeModules:()=>pQ,moduleSpecifiers:()=>Rz,moveEmitHelpers:()=>WI,moveRangeEnd:()=>HE,moveRangePastDecorators:()=>qE,moveRangePastModifiers:()=>JE,moveRangePos:()=>KE,moveSyntheticComments:()=>MI,mutateMap:()=>xS,mutateMapSkippingNewValues:()=>TS,needsParentheses:()=>LZ,needsScopeMarker:()=>gu,newCaseClauseTracker:()=>C0,newPrivateEnvironment:()=>uG,noEmitNotification:()=>uV,noEmitSubstitution:()=>dV,noTransformers:()=>tV,noTruncationMaximumTruncationLength:()=>up,nodeCanBeDecorated:()=>Lh,nodeHasName:()=>Wl,nodeIsDecorated:()=>kh,nodeIsMissing:()=>im,nodeIsPresent:()=>am,nodeIsSynthesized:()=>Sv,nodeModuleNameResolver:()=>BF,nodeModulesPathPart:()=>HO,nodeNextJsonConfigResolver:()=>GF,nodeOrChildIsDecorated:()=>Ph,nodeOverlapsWithStartEnd:()=>G$,nodePosToString:()=>nm,nodeSeenTracker:()=>nQ,nodeStartsNewLexicalEnvironment:()=>Ev,nodeToDisplayParts:()=>aZ,noop:()=>bt,noopFileWatcher:()=>CK,normalizePath:()=>_a,normalizeSlashes:()=>ca,not:()=>hn,notImplemented:()=>Rt,notImplementedResolver:()=>mV,nullNodeConverters:()=>wA,nullParenthesizerRules:()=>LA,nullTransformationContext:()=>nV,objectAllocator:()=>Wp,operatorPart:()=>VQ,optionDeclarations:()=>PP,optionMapToObject:()=>Hw,optionsAffectingProgramStructure:()=>BP,optionsForBuild:()=>jP,optionsForWatch:()=>DP,optionsHaveChanges:()=>Of,optionsHaveModuleResolutionChanges:()=>Pf,or:()=>_n,orderedRemoveItem:()=>tn,orderedRemoveItemAt:()=>nn,outFile:()=>ob,packageIdToPackageName:()=>Kf,packageIdToString:()=>qf,paramHelper:()=>ZI,parameterIsThisKeyword:()=>vb,parameterNamePart:()=>UQ,parseBaseNodeFactory:()=>Ik,parseBigInt:()=>Lx,parseBuildCommand:()=>Rw,parseCommandLine:()=>Tw,parseCommandLineWorker:()=>Ew,parseConfigFileTextToJson:()=>Mw,parseConfigFileWithSystem:()=>OK,parseConfigHostFromCompilerHostLike:()=>pH,parseCustomTypeOption:()=>gw,parseIsolatedEntityName:()=>cP,parseIsolatedJSDocComment:()=>fP,parseJSDocTypeExpressionForTests:()=>mP,parseJsonConfigFileContent:()=>nO,parseJsonSourceFileConfigFileContent:()=>rO,parseJsonText:()=>dP,parseListTypeOption:()=>yw,parseNodeFactory:()=>Rk,parseNodeModuleFromPath:()=>KF,parsePackageName:()=>dW,parsePseudoBigInt:()=>Nx,parseValidBigInt:()=>kx,patchWriteFileEnsuringDirectory:()=>wi,pathContainsNodeModules:()=>HF,pathIsAbsolute:()=>qi,pathIsBareSpecifier:()=>Xi,pathIsRelative:()=>Ji,patternText:()=>sn,perfLogger:()=>sr,performIncrementalCompilation:()=>lq,performance:()=>Lr,plainJSErrors:()=>bU,positionBelongsToNode:()=>V$,positionIsASICandidate:()=>UZ,positionIsSynthesized:()=>_x,positionsAreOnSameLine:()=>iS,preProcessFile:()=>q1,probablyUsesSemicolons:()=>HZ,processCommentPragmas:()=>gP,processPragmasIntoFields:()=>yP,processTaggedTemplateExpression:()=>HG,programContainsEsModules:()=>lQ,programContainsModules:()=>sQ,projectReferenceIsEqualTo:()=>Vf,propKeyHelper:()=>fR,propertyNamePart:()=>HQ,pseudoBigIntToString:()=>Mx,punctuationPart:()=>jQ,pushIfUnique:()=>Ae,quote:()=>PZ,quotePreferenceFromString:()=>hQ,rangeContainsPosition:()=>O$,rangeContainsPositionExclusive:()=>F$,rangeContainsRange:()=>P$,rangeContainsRangeExclusive:()=>w$,rangeContainsStartEnd:()=>z$,rangeEndIsOnSameLineAsRangeStart:()=>tS,rangeEndPositionsAreOnSameLine:()=>ZE,rangeEquals:()=>Me,rangeIsOnSingleLine:()=>YE,rangeOfNode:()=>Ix,rangeOfTypeParameters:()=>Rx,rangeOverlapsWithStartEnd:()=>B$,rangeStartIsOnSameLineAsRangeEnd:()=>eS,rangeStartPositionsAreOnSameLine:()=>QE,readBuilderProgram:()=>dq,readConfigFile:()=>Nw,readHelper:()=>uR,readJson:()=>BE,readJsonConfigFile:()=>Lw,readJsonOrUndefined:()=>zE,reduceEachLeadingCommentRange:()=>Ms,reduceEachTrailingCommentRange:()=>Ls,reduceLeft:()=>Ue,reduceLeftIterator:()=>C,reducePathComponents:()=>da,refactor:()=>L5,regExpEscape:()=>zT,relativeComplement:()=>be,removeAllComments:()=>pI,removeEmitHelper:()=>OI,removeExtension:()=>ux,removeFileExtension:()=>cx,removeIgnoredPath:()=>cK,removeMinAndVersionNumbers:()=>en,removeOptionality:()=>xY,removePrefix:()=>un,removeSuffix:()=>Qt,removeTrailingDirectorySeparator:()=>ya,repeatString:()=>oQ,replaceElement:()=>Ge,replaceFirstStar:()=>CA,resolutionExtensionIsTSOrJson:()=>gx,resolveConfigFileProjectName:()=>gq,resolveJSModule:()=>FF,resolveLibrary:()=>kF,resolveModuleName:()=>wF,resolveModuleNameFromCache:()=>PF,resolvePackageNameToPackageJson:()=>hF,resolvePath:()=>pa,resolveProjectReferencePath:()=>mH,resolveTripleslashReference:()=>xU,resolveTypeReferenceDirective:()=>fF,resolvingEmptyArray:()=>lp,restHelper:()=>sR,returnFalse:()=>Et,returnNoopFileWatcher:()=>DK,returnTrue:()=>St,returnUndefined:()=>Tt,returnsPromise:()=>o2,runInitializersHelper:()=>tR,sameFlatMap:()=>Y,sameMap:()=>K,sameMapping:()=>RB,scanShebangTrivia:()=>Rs,scanTokenAtPosition:()=>E_,scanner:()=>KX,screenStartingMessageCodes:()=>RK,semanticDiagnosticsOptionDeclarations:()=>wP,serializeCompilerOptions:()=>Xw,server:()=>Kbe,servicesVersion:()=>V5,setCommentRange:()=>xI,setConfigFileInOptions:()=>oO,setConstantValue:()=>kI,setEachParent:()=>Ux,setEmitFlags:()=>fI,setFunctionNameHelper:()=>mR,setGetSourceFileAsHashVersioned:()=>nq,setIdentifierAutoGenerate:()=>KI,setIdentifierGeneratedImportReference:()=>JI,setIdentifierTypeArguments:()=>UI,setInternalEmitFlags:()=>_I,setLocalizedDiagnosticMessages:()=>QS,setModuleDefaultHelper:()=>yR,setNodeFlags:()=>jx,setObjectAllocator:()=>$S,setOriginalNode:()=>lI,setParent:()=>Vx,setParentRecursive:()=>Hx,setPrivateIdentifier:()=>fG,setSnippetElement:()=>BI,setSourceMapRange:()=>yI,setStackTraceLimit:()=>vi,setStartsOnNewLine:()=>SI,setSyntheticLeadingComments:()=>II,setSyntheticTrailingComments:()=>DI,setSys:()=>Oi,setSysLog:()=>Ni,setTextRange:()=>yk,setTextRangeEnd:()=>zx,setTextRangePos:()=>Wx,setTextRangePosEnd:()=>Bx,setTextRangePosWidth:()=>Gx,setTokenSourceMapRange:()=>bI,setTypeNode:()=>jI,setUILocale:()=>Ht,setValueDeclaration:()=>wg,shouldAllowImportingTsExtension:()=>NW,shouldPreserveConstEnums:()=>Zp,shouldUseUriStyleNodeCoreModules:()=>S0,showModuleSpecifier:()=>NS,signatureHasLiteralTypes:()=>eB,signatureHasRestParameter:()=>Zz,signatureToDisplayParts:()=>iZ,single:()=>ze,singleElementArray:()=>yn,singleIterator:()=>oe,singleOrMany:()=>Be,singleOrUndefined:()=>We,skipAlias:()=>hS,skipAssertions:()=>TL,skipConstraint:()=>iQ,skipOuterExpressions:()=>EL,skipParentheses:()=>Ty,skipPartiallyEmittedExpressions:()=>Gc,skipTrivia:()=>Ts,skipTypeChecking:()=>Cx,skipTypeParentheses:()=>Sy,skipWhile:()=>Tn,sliceAfter:()=>Tx,some:()=>se,sort:()=>Ce,sortAndDeduplicate:()=>_e,sortAndDeduplicateDiagnostics:()=>$s,sourceFileAffectingCompilerOptions:()=>zP,sourceFileMayBeEmitted:()=>sb,sourceMapCommentRegExp:()=>hB,sourceMapCommentRegExpDontCareLineStart:()=>_B,spacePart:()=>BQ,spanMap:()=>ie,spreadArrayHelper:()=>pR,stableSort:()=>Ne,startEndContainsRange:()=>W$,startEndOverlapsWithStartEnd:()=>j$,startOnNewLine:()=>xL,startTracing:()=>wr,startsWith:()=>dn,startsWithDirectory:()=>Ca,startsWithUnderscore:()=>y0,startsWithUseStrict:()=>_L,stringContainsAt:()=>g0,stringToToken:()=>ss,stripQuotes:()=>Gv,supportedDeclarationExtensions:()=>Ef,supportedJSExtensions:()=>gf,supportedJSExtensionsFlat:()=>yf,supportedLocaleDirectories:()=>Ks,supportedTSExtensions:()=>ff,supportedTSExtensionsFlat:()=>mf,supportedTSImplementationExtensions:()=>Sf,suppressLeadingAndTrailingTrivia:()=>vZ,suppressLeadingTrivia:()=>bZ,suppressTrailingTrivia:()=>EZ,symbolEscapedNameNoDefault:()=>bQ,symbolName:()=>wl,symbolNameNoDefault:()=>vQ,symbolPart:()=>WQ,symbolToDisplayParts:()=>oZ,syntaxMayBeASICandidate:()=>e$,syntaxRequiresTrailingSemicolonOrASI:()=>VZ,sys:()=>hi,sysLog:()=>Di,tagNamesAreEquivalent:()=>SP,takeWhile:()=>Sn,targetOptionDeclaration:()=>MP,templateObjectHelper:()=>dR,testFormatSettings:()=>LX,textChangeRangeIsUnchanged:()=>fl,textChangeRangeNewSpan:()=>pl,textChanges:()=>p_e,textOrKeywordPart:()=>KQ,textPart:()=>qQ,textRangeContainsPositionInclusive:()=>tl,textSpanContainsPosition:()=>el,textSpanContainsTextSpan:()=>nl,textSpanEnd:()=>Qs,textSpanIntersection:()=>cl,textSpanIntersectsWith:()=>al,textSpanIntersectsWithPosition:()=>ll,textSpanIntersectsWithTextSpan:()=>il,textSpanIsEmpty:()=>Zs,textSpanOverlap:()=>ol,textSpanOverlapsWith:()=>rl,textSpansEqual:()=>DQ,textToKeywordObj:()=>za,timestamp:()=>nr,toArray:()=>_t,toBuilderFileEmit:()=>ZH,toBuilderStateFileInfoForMultiEmit:()=>QH,toEditorSettings:()=>m7,toFileNameLowerCase:()=>It,toLowerCase:()=>At,toPath:()=>ga,toProgramEmitPending:()=>eK,tokenIsIdentifierOrKeyword:()=>ns,tokenIsIdentifierOrKeywordOrGreaterThan:()=>rs,tokenToString:()=>as,trace:()=>JO,tracing:()=>kr,tracingEnabled:()=>Pr,transform:()=>C7,transformClassFields:()=>QG,transformDeclarations:()=>Qj,transformECMAScriptModule:()=>jj,transformES2015:()=>Mj,transformES2016:()=>Cj,transformES2017:()=>sj,transformES2018:()=>dj,transformES2019:()=>pj,transformES2020:()=>mj,transformES2021:()=>hj,transformES5:()=>kj,transformESDecorators:()=>ij,transformESNext:()=>yj,transformGenerators:()=>wj,transformJsx:()=>Ij,transformLegacyDecorators:()=>rj,transformModule:()=>Wj,transformNamedEvaluation:()=>jG,transformNodeModule:()=>Uj,transformNodes:()=>pV,transformSystemModule:()=>Bj,transformTypeScript:()=>$G,transpile:()=>h2,transpileModule:()=>_2,transpileOptionValueCompilerOptions:()=>GP,tryAddToSet:()=>re,tryAndIgnoreErrors:()=>$Z,tryCast:()=>yt,tryDirectoryExists:()=>XZ,tryExtractTSExtension:()=>wE,tryFileExists:()=>JZ,tryGetClassExtendingExpressionWithTypeArguments:()=>_E,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>hE,tryGetDirectories:()=>KZ,tryGetExtensionFromPath:()=>bx,tryGetImportFromModuleSpecifier:()=>zg,tryGetJSDocSatisfiesTypeNode:()=>gA,tryGetModuleNameFromFile:()=>ML,tryGetModuleSpecifierFromDeclaration:()=>Fg,tryGetNativePerformanceHooks:()=>ir,tryGetPropertyAccessOrIdentifierToString:()=>AE,tryGetPropertyNameOfBindingOrAssignmentElement:()=>OL,tryGetSourceMappingURL:()=>SB,tryGetTextOfPropertyName:()=>s_,tryIOAndConsumeErrors:()=>YZ,tryParseJson:()=>GE,tryParsePattern:()=>fx,tryParsePatterns:()=>mx,tryParseRawSourceMap:()=>AB,tryReadDirectory:()=>qZ,tryReadFile:()=>kw,tryRemoveDirectoryPrefix:()=>WT,tryRemoveExtension:()=>dx,tryRemovePrefix:()=>pn,tryRemoveSuffix:()=>Zt,typeAcquisitionDeclarations:()=>UP,typeAliasNamePart:()=>JQ,typeDirectiveIsEqualTo:()=>Jf,typeKeywords:()=>XX,typeParameterNamePart:()=>XQ,typeToDisplayParts:()=>rZ,unchangedPollThresholds:()=>pi,unchangedTextChangeRange:()=>Hs,unescapeLeadingUnderscores:()=>Ll,unmangleScopedPackageName:()=>IW,unorderedRemoveItem:()=>on,unorderedRemoveItemAt:()=>rn,unreachableCodeIsError:()=>TT,unusedLabelIsError:()=>xT,unwrapInnermostStatementOfLabel:()=>nh,updateErrorForNoInputFiles:()=>uO,updateLanguageServiceSourceFile:()=>E7,updateMissingFilePathsWatch:()=>nU,updateResolutionField:()=>oF,updateSharedExtendedConfigFileWatcher:()=>ZV,updateSourceFile:()=>pP,updateWatchingWildcardDirectories:()=>rU,usesExtensionsOnImports:()=>ox,usingSingleLineStringWriter:()=>Gf,utf16EncodeAsString:()=>Us,validateLocaleAndSetLanguage:()=>Il,valuesHelper:()=>_R,version:()=>t,versionMajorMinor:()=>e,visitArray:()=>iB,visitCommaListElements:()=>pB,visitEachChild:()=>fB,visitFunctionBody:()=>dB,visitIterationBody:()=>uB,visitLexicalEnvironment:()=>sB,visitNode:()=>rB,visitNodes:()=>oB,visitParameterList:()=>lB,walkUpBindingElementsAndPatterns:()=>bl,walkUpLexicalEnvironments:()=>dG,walkUpOuterExpressions:()=>SL,walkUpParenthesizedExpressions:()=>by,walkUpParenthesizedTypes:()=>vy,walkUpParenthesizedTypesAndGetParentAndChild:()=>Ey,whitespaceOrMapCommentRegExp:()=>gB,writeCommentRange:()=>wb,writeFile:()=>db,writeFileEnsuringDirectories:()=>pb,zipWith:()=>D});var Xbe=b({"src/server/_namespaces/ts.ts"(){JJ(),UX(),Tge(),Pge(),qbe()}}),$be={};E($be,{ActionInvalidate:()=>WJ,ActionPackageInstalled:()=>zJ,ActionSet:()=>FJ,ActionWatchTypingLocations:()=>UJ,Arguments:()=>HJ,AutoImportProviderProject:()=>Gye,AuxiliaryProject:()=>zye,CharRangeSection:()=>Lbe,CloseFileWatcherEvent:()=>fve,CommandNames:()=>rbe,ConfigFileDiagEvent:()=>sve,ConfiguredProject:()=>jye,CreateDirectoryWatcherEvent:()=>pve,CreateFileWatcherEvent:()=>uve,Errors:()=>Hge,EventBeginInstallTypes:()=>GJ,EventEndInstallTypes:()=>jJ,EventInitializationFailed:()=>VJ,EventTypesRegistry:()=>BJ,ExternalProject:()=>Vye,GcTimer:()=>aye,InferredProject:()=>Wye,LargeFileReferencedEvent:()=>ave,LineIndex:()=>Wbe,LineLeaf:()=>Bbe,LineNode:()=>zbe,LogLevel:()=>jge,Msg:()=>Uge,OpenFileInfoTelemetryEvent:()=>dve,Project:()=>Fye,ProjectInfoTelemetryEvent:()=>cve,ProjectKind:()=>Oye,ProjectLanguageServiceStateEvent:()=>lve,ProjectLoadingFinishEvent:()=>ive,ProjectLoadingStartEvent:()=>ove,ProjectReferenceProjectLoadKind:()=>Sve,ProjectService:()=>xve,ProjectsUpdatedInBackgroundEvent:()=>rve,ScriptInfo:()=>Cye,ScriptVersionCache:()=>Obe,Session:()=>sbe,TextStorage:()=>Rye,ThrottledOperations:()=>iye,TypingsCache:()=>kye,TypingsInstallerAdapter:()=>jbe,allFilesAreJsOrDts:()=>qye,allRootFilesAreJsOrDts:()=>Kye,asNormalizedPath:()=>Qge,convertCompilerOptions:()=>Cve,convertFormatOptions:()=>Rve,convertScriptKindName:()=>Lve,convertTypeAcquisition:()=>Nve,convertUserPreferences:()=>kve,convertWatchOptions:()=>Dve,countEachFileTypes:()=>Hye,createInstallTypingsRequest:()=>Xge,createModuleSpecifierCache:()=>Zve,createNormalizedPathMap:()=>Zge,createPackageJsonCache:()=>tbe,createSortedArray:()=>oye,emptyArray:()=>Vge,findArgument:()=>$J,forEachResolvedProjectReferenceProject:()=>Fve,formatDiagnosticToProtocol:()=>fbe,formatMessage:()=>mbe,getBaseConfigFileName:()=>lye,getLocationInNewDocument:()=>Dbe,hasArgument:()=>XJ,hasNoTypeScriptSource:()=>Jye,indent:()=>QJ,isBackgroundProject:()=>eve,isConfigFile:()=>$ve,isConfiguredProject:()=>Qye,isDynamicFileName:()=>Nye,isExternalProject:()=>Zye,isInferredProject:()=>Yye,isInferredProjectName:()=>eye,makeAutoImportProviderProjectName:()=>nye,makeAuxiliaryProjectName:()=>rye,makeInferredProjectName:()=>tye,maxFileSize:()=>nve,maxProgramSizeForNonTsFiles:()=>tve,normalizedPathToPath:()=>Yge,nowString:()=>YJ,nullCancellationToken:()=>nbe,nullTypingsInstaller:()=>Lye,projectContainsInfoDirectly:()=>Uve,protocol:()=>Iye,removeSorted:()=>cye,stringifyIndented:()=>ZJ,toEvent:()=>_be,toNormalizedPath:()=>$ge,tryConvertScriptKindName:()=>Mve,typingsInstaller:()=>Gge,updateProjectIfDirty:()=>Hve});var Ybe=b({"src/typescript/_namespaces/ts.server.ts"(){lX(),qbe()}}),Qbe={};E(Qbe,{ANONYMOUS:()=>ZX,AccessFlags:()=>yo,AssertionLevel:()=>m,AssignmentDeclarationKind:()=>Co,AssignmentKind:()=>Ep,Associativity:()=>Tp,BreakpointResolver:()=>L7,BuilderFileEmit:()=>SH,BuilderProgramKind:()=>TH,BuilderState:()=>yH,BundleFileSectionKind:()=>Zo,CallHierarchy:()=>Z7,CharacterCodes:()=>Vo,CheckFlags:()=>uo,CheckMode:()=>Oz,ClassificationType:()=>jX,ClassificationTypeNames:()=>GX,CommentDirectiveType:()=>Hr,Comparison:()=>r,CompletionInfoFlags:()=>PX,CompletionTriggerKind:()=>RX,Completions:()=>tue,ContainerFlags:()=>OW,ContextFlags:()=>eo,Debug:()=>In,DiagnosticCategory:()=>Do,Diagnostics:()=>Oa,DocumentHighlights:()=>n1,ElementFlags:()=>go,EmitFlags:()=>qo,EmitHint:()=>$o,EmitOnly:()=>Xr,EndOfLineState:()=>FX,EnumKind:()=>co,ExitStatus:()=>Yr,ExportKind:()=>M0,Extension:()=>Uo,ExternalEmitHelpers:()=>Xo,FileIncludeKind:()=>qr,FilePreprocessingDiagnosticsKind:()=>Jr,FileSystemEntryKind:()=>_i,FileWatcherEventKind:()=>si,FindAllReferences:()=>Hue,FlattenLevel:()=>gG,FlowFlags:()=>Ur,ForegroundColorEscapeSequences:()=>cU,FunctionFlags:()=>Sp,GeneratedIdentifierFlags:()=>jr,GetLiteralTextFlags:()=>mp,GoToDefinition:()=>upe,HighlightSpanKind:()=>DX,IdentifierNameMap:()=>OB,IdentifierNameMultiMap:()=>FB,ImportKind:()=>N0,ImportsNotUsedAsValues:()=>Fo,IndentStyle:()=>NX,IndexFlags:()=>vo,IndexKind:()=>To,InferenceFlags:()=>Io,InferencePriority:()=>Ao,InlayHintKind:()=>CX,InlayHints:()=>ype,InternalEmitFlags:()=>Jo,InternalSymbolName:()=>po,InvalidatedProjectKind:()=>bq,JSDocParsingMode:()=>ri,JsDoc:()=>Bpe,JsTyping:()=>vX,JsxEmit:()=>Oo,JsxFlags:()=>Br,JsxReferenceKind:()=>bo,LanguageServiceMode:()=>TX,LanguageVariant:()=>Go,LexicalEnvironmentFlags:()=>Qo,ListFormat:()=>ei,LogLevel:()=>An,MemberOverrideStatus:()=>Qr,ModifierFlags:()=>zr,ModuleDetectionKind:()=>Mo,ModuleInstanceState:()=>wW,ModuleKind:()=>wo,ModuleResolutionKind:()=>No,ModuleSpecifierEnding:()=>xf,NavigateTo:()=>N2,NavigationBar:()=>C4,NewLineKind:()=>Wo,NodeBuilderFlags:()=>to,NodeCheckFlags:()=>fo,NodeFactoryFlags:()=>zA,NodeFlags:()=>Wr,NodeResolutionFeatures:()=>UO,ObjectFlags:()=>_o,OperationCanceledException:()=>Kr,OperatorPrecedence:()=>xp,OrganizeImports:()=>gfe,OrganizeImportsMode:()=>IX,OuterExpressionKinds:()=>Yo,OutliningElementsCollector:()=>Cfe,OutliningSpanKind:()=>wX,OutputFileType:()=>OX,PackageJsonAutoImportPreference:()=>SX,PackageJsonDependencyGroup:()=>EX,PatternMatchKind:()=>v1,PollingInterval:()=>li,PollingWatchKind:()=>Po,PragmaKindFlags:()=>ti,PrivateIdentifierKind:()=>$I,ProcessLevel:()=>VG,ProgramUpdateLevel:()=>XV,QuotePreference:()=>$X,RelationComparisonResult:()=>Gr,Rename:()=>Ffe,ScriptElementKind:()=>zX,ScriptElementKindModifier:()=>BX,ScriptKind:()=>zo,ScriptSnapshot:()=>bX,ScriptTarget:()=>Bo,SemanticClassificationFormat:()=>AX,SemanticMeaning:()=>qX,SemicolonPreference:()=>MX,SignatureCheckMode:()=>Fz,SignatureFlags:()=>So,SignatureHelp:()=>ume,SignatureKind:()=>Eo,SmartSelectionRange:()=>xme,SnippetKind:()=>Ko,SortKind:()=>l,StructureIsReused:()=>$r,SymbolAccessibility:()=>oo,SymbolDisplay:()=>wme,SymbolDisplayPartKind:()=>kX,SymbolFlags:()=>lo,SymbolFormatFlags:()=>ro,SyntaxKind:()=>Fr,SyntheticSymbolKind:()=>io,Ternary:()=>Ro,ThrottledCancellationToken:()=>r7,TokenClass:()=>WX,TokenFlags:()=>Vr,TransformFlags:()=>Ho,TypeFacts:()=>Pz,TypeFlags:()=>mo,TypeFormatFlags:()=>no,TypeMapKind:()=>xo,TypePredicateKind:()=>ao,TypeReferenceSerializationKind:()=>so,UnionReduction:()=>Zr,UpToDateStatusType:()=>_q,VarianceFlags:()=>ho,Version:()=>Pn,VersionRange:()=>wn,WatchDirectoryFlags:()=>jo,WatchDirectoryKind:()=>ko,WatchFileKind:()=>Lo,WatchLogLevel:()=>$V,WatchType:()=>NK,accessPrivateIdentifier:()=>mG,addDisposableResourceHelper:()=>AR,addEmitFlags:()=>mI,addEmitHelper:()=>PI,addEmitHelpers:()=>wI,addInternalEmitFlags:()=>hI,addNodeFactoryPatcher:()=>qA,addObjectAllocatorPatcher:()=>XS,addRange:()=>xe,addRelatedInfo:()=>xx,addSyntheticLeadingComment:()=>RI,addSyntheticTrailingComment:()=>NI,addToSeen:()=>LS,advancedAsyncSuperHelper:()=>DR,affectsDeclarationPathOptionDeclarations:()=>FP,affectsEmitOptionDeclarations:()=>OP,allKeysStartWithDot:()=>uW,altDirectorySeparator:()=>Wi,and:()=>mn,append:()=>Ee,appendIfUnique:()=>Ie,arrayFrom:()=>Ye,arrayIsEqualTo:()=>ye,arrayIsHomogeneous:()=>Fx,arrayIsSorted:()=>he,arrayOf:()=>$e,arrayReverseIterator:()=>De,arrayToMap:()=>et,arrayToMultiMap:()=>nt,arrayToNumericMap:()=>tt,arraysEqual:()=>W,assertType:()=>gn,assign:()=>Qe,assignHelper:()=>nR,asyncDelegator:()=>iR,asyncGeneratorHelper:()=>oR,asyncSuperHelper:()=>CR,asyncValues:()=>aR,attachFileToDiagnostics:()=>oT,awaitHelper:()=>rR,awaiterHelper:()=>lR,base64decode:()=>WE,base64encode:()=>FE,binarySearch:()=>je,binarySearchKey:()=>Ve,bindSourceFile:()=>VW,breakIntoCharacterSpans:()=>F1,breakIntoWordSpans:()=>W1,buildLinkParts:()=>ZQ,buildOpts:()=>VP,buildOverload:()=>Dge,bundlerModuleNameResolver:()=>zF,canBeConvertedToAsync:()=>u2,canHaveDecorators:()=>bk,canHaveExportModifier:()=>lA,canHaveFlowNode:()=>Qg,canHaveIllegalDecorators:()=>jL,canHaveIllegalModifiers:()=>VL,canHaveIllegalType:()=>BL,canHaveIllegalTypeParameters:()=>GL,canHaveJSDoc:()=>Zg,canHaveLocals:()=>Du,canHaveModifiers:()=>vk,canHaveSymbol:()=>Cu,canJsonReportNoInputFiles:()=>dO,canProduceDiagnostics:()=>Kj,canUsePropertyAccess:()=>dA,canWatchAffectingLocation:()=>_K,canWatchAtTypes:()=>pK,canWatchDirectoryOrFile:()=>uK,cartesianProduct:()=>bn,cast:()=>vt,chainBundle:()=>GB,chainDiagnosticMessages:()=>cT,changeAnyExtension:()=>Ea,changeCompilerHostLikeToUseCache:()=>NU,changeExtension:()=>px,changeFullExtension:()=>Sa,changesAffectModuleResolution:()=>kf,changesAffectingProgramStructure:()=>wf,childIsDecorated:()=>wh,classElementOrClassElementParameterIsDecorated:()=>Fh,classHasClassThisAssignment:()=>MG,classHasDeclaredOrExplicitlyAssignedName:()=>zG,classHasExplicitlyAssignedName:()=>WG,classOrConstructorParameterIsDecorated:()=>Oh,classPrivateFieldGetHelper:()=>SR,classPrivateFieldInHelper:()=>xR,classPrivateFieldSetHelper:()=>TR,classicNameResolver:()=>CW,classifier:()=>r9,cleanExtendedConfigCache:()=>tU,clear:()=>V,clearMap:()=>SS,clearSharedExtendedConfigFileWatcher:()=>eU,climbPastPropertyAccess:()=>_$,climbPastPropertyOrElementAccess:()=>h$,clone:()=>it,cloneCompilerOptions:()=>zY,closeFileWatcher:()=>fS,closeFileWatcherOf:()=>lU,codefix:()=>Qle,collapseTextChangeRangesAcrossMultipleVersions:()=>_l,collectExternalModuleInfo:()=>HB,combine:()=>Se,combinePaths:()=>ua,commentPragmas:()=>ni,commonOptionsWithBuild:()=>NP,commonPackageFolders:()=>sf,compact:()=>ve,compareBooleans:()=>Jt,compareDataObjects:()=>ES,compareDiagnostics:()=>pT,compareDiagnosticsSkipRelatedInformation:()=>fT,compareEmitHelpers:()=>LR,compareNumberOfDirectorySeparators:()=>lx,comparePaths:()=>Ia,comparePathsCaseInsensitive:()=>Aa,comparePathsCaseSensitive:()=>xa,comparePatternKeys:()=>fW,compareProperties:()=>qt,compareStringsCaseInsensitive:()=>Bt,compareStringsCaseInsensitiveEslintCompatible:()=>Gt,compareStringsCaseSensitive:()=>jt,compareStringsCaseSensitiveUI:()=>Kt,compareTextSpans:()=>Wt,compareValues:()=>Ft,compileOnSaveCommandLineOption:()=>TP,compilerOptionsAffectDeclarationPath:()=>NT,compilerOptionsAffectEmit:()=>DT,compilerOptionsAffectSemanticDiagnostics:()=>CT,compilerOptionsDidYouMeanDiagnostics:()=>JP,compilerOptionsIndicateEsModules:()=>cQ,compose:()=>Lt,computeCommonSourceDirectoryOfFilenames:()=>AU,computeLineAndCharacterOfPosition:()=>ps,computeLineOfPosition:()=>fs,computeLineStarts:()=>ls,computePositionOfLineAndCharacter:()=>ds,computeSignature:()=>XH,computeSignatureWithDiagnostics:()=>JH,computeSuggestionDiagnostics:()=>t2,computedOptions:()=>Gp,concatenate:()=>ce,concatenateDiagnosticMessageChains:()=>dT,consumesNodeCoreModules:()=>r0,contains:()=>F,containsIgnoredPath:()=>Xx,containsObjectRestOrSpread:()=>hk,containsParseError:()=>$f,containsPath:()=>Ra,convertCompilerOptionsForTelemetry:()=>zO,convertCompilerOptionsFromJson:()=>_O,convertJsonOption:()=>TO,convertToBase64:()=>OE,convertToJson:()=>Gw,convertToObject:()=>Bw,convertToOptionsWithAbsolutePaths:()=>eO,convertToRelativePath:()=>Ma,convertToTSConfig:()=>Uw,convertTypeAcquisitionFromJson:()=>hO,copyComments:()=>SZ,copyEntries:()=>Bf,copyLeadingComments:()=>RZ,copyProperties:()=>st,copyTrailingAsLeadingComments:()=>DZ,copyTrailingComments:()=>CZ,couldStartTrivia:()=>Ss,countWhere:()=>B,createAbstractBuilder:()=>sK,createAccessorPropertyBackingField:()=>dk,createAccessorPropertyGetRedirector:()=>uk,createAccessorPropertySetRedirector:()=>pk,createBaseNodeFactory:()=>MA,createBinaryExpressionTrampoline:()=>tk,createBindingHelper:()=>gR,createBuildInfo:()=>GV,createBuilderProgram:()=>$H,createBuilderProgramUsingProgramBuildInfo:()=>tK,createBuilderStatusReporter:()=>Iq,createCacheWithRedirects:()=>SF,createCacheableExportInfoMap:()=>k0,createCachedDirectoryStructureHost:()=>QV,createClassNamedEvaluationHelperBlock:()=>OG,createClassThisAssignmentBlock:()=>DG,createClassifier:()=>V0,createCommentDirectivesMap:()=>ym,createCompilerDiagnostic:()=>sT,createCompilerDiagnosticForInvalidCustomType:()=>_w,createCompilerDiagnosticFromMessageChain:()=>lT,createCompilerHost:()=>IU,createCompilerHostFromProgramHost:()=>eq,createCompilerHostWorker:()=>DU,createDetachedDiagnostic:()=>tT,createDiagnosticCollection:()=>Mv,createDiagnosticForFileFromMessageChain:()=>g_,createDiagnosticForNode:()=>d_,createDiagnosticForNodeArray:()=>u_,createDiagnosticForNodeArrayFromMessageChain:()=>m_,createDiagnosticForNodeFromMessageChain:()=>f_,createDiagnosticForNodeInSourceFile:()=>p_,createDiagnosticForRange:()=>v_,createDiagnosticMessageChainFromDiagnostic:()=>y_,createDiagnosticReporter:()=>LK,createDocumentPositionMapper:()=>wB,createDocumentRegistry:()=>a1,createDocumentRegistryInternal:()=>s1,createEmitAndSemanticDiagnosticsBuilderProgram:()=>aK,createEmitHelperFactory:()=>MR,createEmptyExports:()=>YM,createExpressionForJsxElement:()=>nL,createExpressionForJsxFragment:()=>rL,createExpressionForObjectLiteralElementLike:()=>lL,createExpressionForPropertyName:()=>sL,createExpressionFromEntityName:()=>aL,createExternalHelpersImportDeclarationIfNeeded:()=>RL,createFileDiagnostic:()=>iT,createFileDiagnosticFromMessageChain:()=>h_,createForOfBindingStatement:()=>oL,createGetCanonicalFileName:()=>an,createGetSourceFile:()=>RU,createGetSymbolAccessibilityDiagnosticForNode:()=>Jj,createGetSymbolAccessibilityDiagnosticForNodeName:()=>qj,createGetSymbolWalker:()=>$W,createIncrementalCompilerHost:()=>uq,createIncrementalProgram:()=>pq,createInputFiles:()=>oI,createInputFilesWithFilePaths:()=>iI,createInputFilesWithFileTexts:()=>aI,createJsxFactoryExpression:()=>tL,createLanguageService:()=>S7,createLanguageServiceSourceFile:()=>b7,createMemberAccessForPropertyName:()=>QM,createModeAwareCache:()=>AF,createModeAwareCacheKey:()=>xF,createModuleNotFoundChain:()=>Hf,createModuleResolutionCache:()=>NF,createModuleResolutionLoader:()=>qU,createModuleResolutionLoaderUsingGlobalCache:()=>TK,createModuleSpecifierResolutionHost:()=>dQ,createMultiMap:()=>ct,createNodeConverters:()=>FA,createNodeFactory:()=>JA,createOptionNameMap:()=>fw,createOverload:()=>Cge,createPackageJsonImportFilter:()=>n0,createPackageJsonInfo:()=>t0,createParenthesizerRules:()=>PA,createPatternMatcher:()=>S1,createPrependNodes:()=>fH,createPrinter:()=>HV,createPrinterWithDefaults:()=>_V,createPrinterWithRemoveComments:()=>hV,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>gV,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>yV,createProgram:()=>cH,createProgramHost:()=>rq,createPropertyNameNodeForIdentifierOrLiteral:()=>rA,createQueue:()=>pt,createRange:()=>UE,createRedirectedBuilderProgram:()=>rK,createResolutionCache:()=>xK,createRuntimeTypeSerializer:()=>tj,createScanner:()=>Bs,createSemanticDiagnosticsBuilderProgram:()=>iK,createSet:()=>ft,createSolutionBuilder:()=>Nq,createSolutionBuilderHost:()=>Cq,createSolutionBuilderWithWatch:()=>Mq,createSolutionBuilderWithWatchHost:()=>Dq,createSortedArray:()=>fe,createSourceFile:()=>lP,createSourceMapGenerator:()=>bB,createSourceMapSource:()=>sI,createSuperAccessVariableStatement:()=>lj,createSymbolTable:()=>Mf,createSymlinkCache:()=>OT,createSystemWatchFunctions:()=>Pi,createTextChange:()=>YY,createTextChangeFromStartLength:()=>$Y,createTextChangeRange:()=>ml,createTextRangeFromNode:()=>qY,createTextRangeFromSpan:()=>XY,createTextSpan:()=>dl,createTextSpanFromBounds:()=>ul,createTextSpanFromNode:()=>HY,createTextSpanFromRange:()=>JY,createTextSpanFromStringLiteralLikeContent:()=>KY,createTextWriter:()=>Hv,createTokenRange:()=>$E,createTypeChecker:()=>Jz,createTypeReferenceDirectiveResolutionCache:()=>MF,createTypeReferenceResolutionLoader:()=>XU,createUnparsedSourceFile:()=>rI,createWatchCompilerHost:()=>fq,createWatchCompilerHostOfConfigFile:()=>aq,createWatchCompilerHostOfFilesAndCompilerOptions:()=>sq,createWatchFactory:()=>ZK,createWatchHost:()=>QK,createWatchProgram:()=>mq,createWatchStatusReporter:()=>wK,createWriteFileMeasuringIO:()=>CU,declarationNameToString:()=>o_,decodeMappings:()=>IB,decodedTextSpanIntersectsWith:()=>sl,decorateHelper:()=>YI,deduplicate:()=>pe,defaultIncludeSpec:()=>cw,defaultInitCompilerOptions:()=>qP,defaultMaximumTruncationLength:()=>dp,detectSortCaseSensitivity:()=>ge,diagnosticCategoryName:()=>ai,diagnosticToString:()=>x0,directoryProbablyExists:()=>jE,directorySeparator:()=>Fi,displayPart:()=>zQ,displayPartsToString:()=>h7,disposeEmitNodes:()=>uI,disposeResourcesHelper:()=>IR,documentSpansEqual:()=>NQ,dumpTracingLegend:()=>Or,elementAt:()=>u,elideNodes:()=>ik,emitComments:()=>kb,emitDetachedComments:()=>Pb,emitFiles:()=>BV,emitFilesAndReportErrors:()=>$K,emitFilesAndReportErrorsAndGetExitStatus:()=>YK,emitModuleKindIsNonNodeESM:()=>bT,emitNewLineBeforeLeadingCommentOfPosition:()=>Lb,emitNewLineBeforeLeadingComments:()=>Nb,emitNewLineBeforeLeadingCommentsOfPosition:()=>Mb,emitSkippedWithNoDiagnostics:()=>EU,emitUsingBuildInfo:()=>UV,emptyArray:()=>o,emptyFileSystemEntries:()=>If,emptyMap:()=>i,emptyOptions:()=>xX,emptySet:()=>s,endsWith:()=>Yt,ensurePathIsNonModuleName:()=>ba,ensureScriptKind:()=>QT,ensureTrailingDirectorySeparator:()=>va,entityNameToString:()=>c_,enumerateInsertsAndDeletes:()=>vn,equalOwnProperties:()=>Ze,equateStringsCaseInsensitive:()=>Pt,equateStringsCaseSensitive:()=>wt,equateValues:()=>kt,esDecorateHelper:()=>eR,escapeJsxAttributeString:()=>Bv,escapeLeadingUnderscores:()=>Ml,escapeNonAsciiString:()=>Wv,escapeSnippetText:()=>tA,escapeString:()=>Fv,escapeTemplateSubstitution:()=>Lv,every:()=>M,expandPreOrPostfixIncrementOrDecrementExpression:()=>cL,explainFiles:()=>UK,explainIfFileIsRedirectAndImpliedFormat:()=>HK,exportAssignmentIsAlias:()=>ky,exportStarHelper:()=>ER,expressionResultIsUnused:()=>Jx,extend:()=>at,extendsHelper:()=>cR,extensionFromPath:()=>yx,extensionIsTS:()=>hx,extensionsNotSupportingExtensionlessResolution:()=>Tf,externalHelpersModuleNameText:()=>cp,factory:()=>UA,fileExtensionIs:()=>Yi,fileExtensionIsOneOf:()=>Qi,fileIncludeReasonToDiagnostics:()=>JK,fileShouldUseJavaScriptRequire:()=>D0,filter:()=>G,filterMutate:()=>j,filterSemanticDiagnostics:()=>uH,find:()=>L,findAncestor:()=>Cl,findBestPatternMatch:()=>cn,findChildOfKind:()=>J$,findComputedPropertyNameCacheAssignment:()=>fk,findConfigFile:()=>TU,findContainingList:()=>X$,findDiagnosticForNode:()=>a0,findFirstNonJsxWhitespaceToken:()=>dY,findIndex:()=>P,findLast:()=>k,findLastIndex:()=>w,findListItemInfo:()=>K$,findMap:()=>O,findModifier:()=>IQ,findNextToken:()=>pY,findPackageJson:()=>ZZ,findPackageJsons:()=>QZ,findPrecedingMatchingToken:()=>TY,findPrecedingToken:()=>fY,findSuperStatementIndexPath:()=>eG,findTokenOnLeftOfPosition:()=>uY,findUseStrictPrologue:()=>mL,first:()=>Pe,firstDefined:()=>I,firstDefinedIterator:()=>R,firstIterator:()=>we,firstOrOnly:()=>u0,firstOrUndefined:()=>Le,firstOrUndefinedIterator:()=>ke,fixupCompilerOptions:()=>g2,flatMap:()=>J,flatMapIterator:()=>$,flatMapToMutable:()=>X,flatten:()=>q,flattenCommaList:()=>_k,flattenDestructuringAssignment:()=>vG,flattenDestructuringBinding:()=>SG,flattenDiagnosticMessageText:()=>zU,forEach:()=>x,forEachAncestor:()=>Ff,forEachAncestorDirectory:()=>Pa,forEachChild:()=>oP,forEachChildRecursively:()=>iP,forEachEmittedFile:()=>EV,forEachEnclosingBlockScopeContainer:()=>r_,forEachEntry:()=>Wf,forEachExternalModuleToImportFrom:()=>w0,forEachImportClauseDeclaration:()=>Vg,forEachKey:()=>zf,forEachLeadingCommentRange:()=>Ds,forEachNameInAccessChainWalkingLeft:()=>BS,forEachPropertyAssignment:()=>lh,forEachResolvedProjectReference:()=>YU,forEachReturnStatement:()=>H_,forEachRight:()=>A,forEachTrailingCommentRange:()=>Ns,forEachTsConfigPropArray:()=>ph,forEachUnique:()=>LQ,forEachYieldExpression:()=>K_,forSomeAncestorDirectory:()=>CS,formatColorAndReset:()=>wU,formatDiagnostic:()=>kU,formatDiagnostics:()=>LU,formatDiagnosticsWithColorAndContext:()=>WU,formatGeneratedName:()=>ck,formatGeneratedNamePart:()=>sk,formatLocation:()=>FU,formatMessage:()=>aT,formatStringFromArgs:()=>YS,formatting:()=>vge,fullTripleSlashAMDReferencePathRegEx:()=>yp,fullTripleSlashReferencePathRegEx:()=>_p,generateDjb2Hash:()=>yi,generateTSConfig:()=>Zw,generatorHelper:()=>hR,getAdjustedReferenceLocation:()=>oY,getAdjustedRenameLocation:()=>iY,getAliasDeclarationFromName:()=>My,getAllAccessorDeclarations:()=>xb,getAllDecoratorsOfClass:()=>sG,getAllDecoratorsOfClassElement:()=>lG,getAllJSDocTags:()=>Ac,getAllJSDocTagsOfKind:()=>Ic,getAllKeys:()=>Je,getAllProjectOutputs:()=>FV,getAllSuperTypeNodes:()=>zy,getAllUnscopedEmitHelpers:()=>PR,getAllowJSCompilerOption:()=>nf,getAllowSyntheticDefaultImports:()=>Jp,getAncestor:()=>jy,getAnyExtensionFromPath:()=>aa,getAreDeclarationMapsEnabled:()=>tf,getAssignedExpandoInitializer:()=>pg,getAssignedName:()=>Vl,getAssignedNameOfIdentifier:()=>PG,getAssignmentDeclarationKind:()=>Eg,getAssignmentDeclarationPropertyAccessKind:()=>Mg,getAssignmentTargetKind:()=>fy,getAutomaticTypeDirectiveNames:()=>gF,getBaseFileName:()=>oa,getBinaryOperatorPrecedence:()=>Dv,getBuildInfo:()=>VV,getBuildInfoFileVersionMap:()=>nK,getBuildInfoText:()=>jV,getBuildOrderFromAnyBuildOrder:()=>Aq,getBuilderCreationParameters:()=>KH,getBuilderFileEmit:()=>AH,getCheckFlags:()=>mS,getClassExtendsHeritageElement:()=>Fy,getClassLikeDeclarationOfSymbol:()=>IS,getCombinedLocalAndExportSymbolFlags:()=>gS,getCombinedModifierFlags:()=>Sl,getCombinedNodeFlags:()=>xl,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Tl,getCommentRange:()=>TI,getCommonSourceDirectory:()=>wV,getCommonSourceDirectoryOfConfig:()=>OV,getCompilerOptionValue:()=>MT,getCompilerOptionsDiffValue:()=>Yw,getConditions:()=>_F,getConfigFileParsingDiagnostics:()=>aH,getConstantValue:()=>LI,getContainerFlags:()=>qW,getContainerNode:()=>N$,getContainingClass:()=>_h,getContainingClassExcludingClassDecorators:()=>yh,getContainingClassStaticBlock:()=>hh,getContainingFunction:()=>fh,getContainingFunctionDeclaration:()=>mh,getContainingFunctionOrClassStaticBlock:()=>gh,getContainingNodeArray:()=>$x,getContainingObjectLiteralElement:()=>x7,getContextualTypeFromParent:()=>kZ,getContextualTypeFromParentOrAncestorTypeNode:()=>Z$,getCurrentTime:()=>Tq,getDeclarationDiagnostics:()=>Yj,getDeclarationEmitExtensionForPath:()=>nb,getDeclarationEmitOutputFilePath:()=>eb,getDeclarationEmitOutputFilePathWorker:()=>tb,getDeclarationFileExtension:()=>hP,getDeclarationFromName:()=>Ry,getDeclarationModifierFlagsFromSymbol:()=>_S,getDeclarationOfKind:()=>Df,getDeclarationsOfKind:()=>Nf,getDeclaredExpandoInitializer:()=>ug,getDecorators:()=>Ul,getDefaultCompilerOptions:()=>g7,getDefaultExportInfoWorker:()=>B0,getDefaultFormatCodeSettings:()=>HX,getDefaultLibFileName:()=>Ys,getDefaultLibFilePath:()=>I7,getDefaultLikeExportInfo:()=>W0,getDiagnosticText:()=>Cw,getDiagnosticsWithinSpan:()=>s0,getDirectoryPath:()=>ra,getDirectoryToWatchFailedLookupLocation:()=>hK,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>vK,getDocumentPositionMapper:()=>Y1,getDocumentSpansEqualityComparer:()=>MQ,getESModuleInterop:()=>qp,getEditsForFileRename:()=>u1,getEffectiveBaseTypeNode:()=>Oy,getEffectiveConstraintOfTypeParameter:()=>Dc,getEffectiveContainerForJSDocTemplateTag:()=>oy,getEffectiveImplementsTypeNodes:()=>Wy,getEffectiveInitializer:()=>dg,getEffectiveJSDocHost:()=>sy,getEffectiveModifierFlags:()=>Zb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>eE,getEffectiveModifierFlagsNoCache:()=>oE,getEffectiveReturnTypeNode:()=>Rb,getEffectiveSetAccessorTypeAnnotationNode:()=>Db,getEffectiveTypeAnnotationNode:()=>Ab,getEffectiveTypeParameterDeclarations:()=>Cc,getEffectiveTypeRoots:()=>dF,getElementOrPropertyAccessArgumentExpressionOrName:()=>Dg,getElementOrPropertyAccessName:()=>Ng,getElementsOfBindingOrAssignmentPattern:()=>WL,getEmitDeclarations:()=>Qp,getEmitFlags:()=>Rm,getEmitHelpers:()=>FI,getEmitModuleDetectionKind:()=>Hp,getEmitModuleKind:()=>Vp,getEmitModuleResolutionKind:()=>Up,getEmitScriptTarget:()=>jp,getEmitStandardClassFields:()=>RT,getEnclosingBlockScopeContainer:()=>n_,getEnclosingContainer:()=>t_,getEncodedSemanticClassifications:()=>$0,getEncodedSyntacticClassifications:()=>t1,getEndLinePosition:()=>rm,getEntityNameFromTypeNode:()=>Nh,getEntrypointsFromPackageJsonInfo:()=>nW,getErrorCountForSummary:()=>FK,getErrorSpanForNode:()=>S_,getErrorSummaryText:()=>GK,getEscapedTextOfIdentifierOrLiteral:()=>lv,getEscapedTextOfJsxAttributeName:()=>yA,getEscapedTextOfJsxNamespacedName:()=>EA,getExpandoInitializer:()=>fg,getExportAssignmentExpression:()=>Py,getExportInfoMap:()=>F0,getExportNeedsImportStarHelper:()=>jB,getExpressionAssociativity:()=>xv,getExpressionPrecedence:()=>Iv,getExternalHelpersModuleName:()=>AL,getExternalModuleImportEqualsDeclarationExpression:()=>Hh,getExternalModuleName:()=>Bg,getExternalModuleNameFromDeclaration:()=>Yv,getExternalModuleNameFromPath:()=>Qv,getExternalModuleNameLiteral:()=>NL,getExternalModuleRequireArgument:()=>Kh,getFallbackOptions:()=>sU,getFileEmitOutput:()=>EH,getFileMatcherPatterns:()=>qT,getFileNamesFromConfigSpecs:()=>RO,getFileWatcherEventKind:()=>Ci,getFilesInErrorForSummary:()=>WK,getFirstConstructorWithBody:()=>_b,getFirstIdentifier:()=>SE,getFirstNonSpaceCharacterPosition:()=>pZ,getFirstProjectOutput:()=>zV,getFixableErrorSpanExpression:()=>c0,getFormatCodeSettingsForWriting:()=>A0,getFullWidth:()=>jf,getFunctionFlags:()=>Zy,getHeritageClause:()=>Gy,getHostSignatureFromJSDoc:()=>ay,getIdentifierAutoGenerate:()=>qI,getIdentifierGeneratedImportReference:()=>XI,getIdentifierTypeArguments:()=>HI,getImmediatelyInvokedFunctionExpression:()=>xh,getImpliedNodeFormatForFile:()=>sH,getImpliedNodeFormatForFileWorker:()=>lH,getImportNeedsImportDefaultHelper:()=>UB,getImportNeedsImportStarHelper:()=>VB,getIndentSize:()=>Uv,getIndentString:()=>Vv,getInferredLibraryNameResolveFrom:()=>ZU,getInitializedVariables:()=>dS,getInitializerOfBinaryExpression:()=>Lg,getInitializerOfBindingOrAssignmentElement:()=>LL,getInterfaceBaseTypeNodes:()=>By,getInternalEmitFlags:()=>Cm,getInvokedExpression:()=>Mh,getIsolatedModules:()=>Kp,getJSDocAugmentsTag:()=>Zl,getJSDocClassTag:()=>tc,getJSDocCommentRanges:()=>G_,getJSDocCommentsAndTags:()=>ey,getJSDocDeprecatedTag:()=>uc,getJSDocDeprecatedTagNoCache:()=>pc,getJSDocEnumTag:()=>fc,getJSDocHost:()=>ly,getJSDocImplementsTags:()=>ec,getJSDocOverloadTags:()=>iy,getJSDocOverrideTagNoCache:()=>dc,getJSDocParameterTags:()=>ql,getJSDocParameterTagsNoCache:()=>Jl,getJSDocPrivateTag:()=>oc,getJSDocPrivateTagNoCache:()=>ic,getJSDocProtectedTag:()=>ac,getJSDocProtectedTagNoCache:()=>sc,getJSDocPublicTag:()=>nc,getJSDocPublicTagNoCache:()=>rc,getJSDocReadonlyTag:()=>lc,getJSDocReadonlyTagNoCache:()=>cc,getJSDocReturnTag:()=>_c,getJSDocReturnType:()=>bc,getJSDocRoot:()=>cy,getJSDocSatisfiesExpressionType:()=>hA,getJSDocSatisfiesTag:()=>gc,getJSDocTags:()=>Sc,getJSDocTagsNoCache:()=>Tc,getJSDocTemplateTag:()=>hc,getJSDocThisTag:()=>mc,getJSDocType:()=>vc,getJSDocTypeAliasName:()=>zL,getJSDocTypeAssertionType:()=>vL,getJSDocTypeParameterDeclarations:()=>Cb,getJSDocTypeParameterTags:()=>$l,getJSDocTypeParameterTagsNoCache:()=>Yl,getJSDocTypeTag:()=>yc,getJSXImplicitImportBase:()=>kT,getJSXRuntimeImport:()=>PT,getJSXTransformEnabled:()=>LT,getKeyForCompilerOptions:()=>EF,getLanguageVariant:()=>_T,getLastChild:()=>MS,getLeadingCommentRanges:()=>Ps,getLeadingCommentRangesOfNode:()=>B_,getLeftmostAccessExpression:()=>zS,getLeftmostExpression:()=>GS,getLibraryNameFromLibFileName:()=>eH,getLineAndCharacterOfPosition:()=>_s,getLineInfo:()=>EB,getLineOfLocalPosition:()=>fb,getLineOfLocalPositionFromLineMap:()=>mb,getLineStartPositionForPosition:()=>k$,getLineStarts:()=>us,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>lS,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>sS,getLinesBetweenPositions:()=>ms,getLinesBetweenRangeEndAndRangeStart:()=>nS,getLinesBetweenRangeEndPositions:()=>rS,getLiteralText:()=>Dm,getLocalNameForExternalImport:()=>DL,getLocalSymbolForExportDefault:()=>PE,getLocaleSpecificMessage:()=>eT,getLocaleTimeString:()=>PK,getMappedContextSpan:()=>OQ,getMappedDocumentSpan:()=>wQ,getMappedLocation:()=>PQ,getMatchedFileSpec:()=>KK,getMatchedIncludeSpec:()=>qK,getMeaningFromDeclaration:()=>n$,getMeaningFromLocation:()=>r$,getMembersOfDeclaration:()=>J_,getModeForFileReference:()=>BU,getModeForResolutionAtIndex:()=>GU,getModeForUsageLocation:()=>VU,getModifiedTime:()=>bi,getModifiers:()=>Hl,getModuleInstanceState:()=>zW,getModuleNameStringLiteralAt:()=>gH,getModuleSpecifierEndingPreference:()=>ix,getModuleSpecifierResolverHost:()=>uQ,getNameForExportedSymbol:()=>f0,getNameFromImportAttribute:()=>DA,getNameFromIndexInfo:()=>i_,getNameFromPropertyName:()=>aQ,getNameOfAccessExpression:()=>OS,getNameOfCompilerOptionValue:()=>Jw,getNameOfDeclaration:()=>jl,getNameOfExpando:()=>_g,getNameOfJSDocTypedef:()=>zl,getNameOrArgument:()=>Cg,getNameTable:()=>T7,getNamesForExportedSymbol:()=>p0,getNamespaceDeclarationNode:()=>Gg,getNewLineCharacter:()=>VE,getNewLineKind:()=>T0,getNewLineOrDefaultFromHost:()=>eZ,getNewTargetContainer:()=>Sh,getNextJSDocCommentLocation:()=>ny,getNodeForGeneratedName:()=>ak,getNodeId:()=>Hz,getNodeKind:()=>M$,getNodeModifiers:()=>MY,getNodeModulePathParts:()=>iA,getNonAssignedNameOfDeclaration:()=>Gl,getNonAssignmentOperatorForCompoundAssignment:()=>YB,getNonAugmentationDeclaration:()=>Vm,getNonDecoratorTokenPosOfNode:()=>bm,getNormalizedAbsolutePath:()=>ma,getNormalizedAbsolutePathWithoutRoot:()=>ha,getNormalizedPathComponents:()=>fa,getObjectFlags:()=>RS,getOperator:()=>Rv,getOperatorAssociativity:()=>Av,getOperatorPrecedence:()=>Cv,getOptionFromName:()=>xw,getOptionsForLibraryResolution:()=>LF,getOptionsNameMap:()=>mw,getOrCreateEmitNode:()=>dI,getOrCreateExternalHelpersModuleNameIfNeeded:()=>CL,getOrUpdate:()=>ne,getOriginalNode:()=>Rl,getOriginalNodeId:()=>zB,getOriginalSourceFile:()=>Tv,getOutputDeclarationFileName:()=>CV,getOutputDeclarationFileNameWorker:()=>DV,getOutputExtension:()=>IV,getOutputFileNames:()=>WV,getOutputJSFileNameWorker:()=>MV,getOutputPathsFor:()=>xV,getOutputPathsForBundle:()=>TV,getOwnEmitOutputFilePath:()=>Zv,getOwnKeys:()=>qe,getOwnValues:()=>Xe,getPackageJsonInfo:()=>sW,getPackageJsonTypesVersionsPaths:()=>cF,getPackageJsonsVisibleToFile:()=>e0,getPackageNameFromTypesPackageName:()=>AW,getPackageScopeForPath:()=>iW,getParameterSymbolFromJSDoc:()=>ry,getParameterTypeNode:()=>aA,getParentNodeInSpan:()=>xQ,getParseTreeNode:()=>Nl,getParsedCommandLineOfConfigFile:()=>Dw,getPathComponents:()=>sa,getPathComponentsRelativeTo:()=>Da,getPathFromPathComponents:()=>la,getPathUpdater:()=>p1,getPathsBasePath:()=>ib,getPatternFromSpec:()=>UT,getPendingEmitKind:()=>IH,getPositionOfLineAndCharacter:()=>cs,getPossibleGenericSignatures:()=>IY,getPossibleOriginalInputExtensionForExtension:()=>rb,getPossibleTypeArgumentsInfo:()=>RY,getPreEmitDiagnostics:()=>MU,getPrecedingNonSpaceCharacterPosition:()=>fZ,getPrivateIdentifier:()=>pG,getProperties:()=>tG,getProperty:()=>Ke,getPropertyArrayElementValue:()=>ch,getPropertyAssignmentAliasLikeExpression:()=>wy,getPropertyNameForPropertyNameNode:()=>iv,getPropertyNameForUniqueESSymbol:()=>cv,getPropertyNameFromType:()=>AA,getPropertyNameOfBindingOrAssignmentElement:()=>wL,getPropertySymbolFromBindingElement:()=>TQ,getPropertySymbolsFromContextualType:()=>A7,getQuoteFromPreference:()=>yQ,getQuotePreference:()=>gQ,getRangesWhere:()=>le,getRefactorContextSpan:()=>l0,getReferencedFileLocation:()=>oH,getRegexFromPattern:()=>JT,getRegularExpressionForWildcard:()=>GT,getRegularExpressionsForWildcards:()=>jT,getRelativePathFromDirectory:()=>Na,getRelativePathFromFile:()=>La,getRelativePathToDirectoryOrUrl:()=>ka,getRenameLocation:()=>IZ,getReplacementSpanForContextToken:()=>UY,getResolutionDiagnostic:()=>_H,getResolutionModeOverride:()=>HU,getResolveJsonModule:()=>Yp,getResolvePackageJsonExports:()=>Xp,getResolvePackageJsonImports:()=>$p,getResolvedExternalModuleName:()=>Xv,getRestIndicatorOfBindingOrAssignmentElement:()=>PL,getRestParameterElementType:()=>q_,getRightMostAssignedExpression:()=>gg,getRootDeclaration:()=>bv,getRootDirectoryOfResolutionCache:()=>bK,getRootLength:()=>na,getRootPathSplitLength:()=>EK,getScriptKind:()=>lZ,getScriptKindFromFileName:()=>ZT,getScriptTargetFeatures:()=>fp,getSelectedEffectiveModifierFlags:()=>$b,getSelectedSyntacticModifierFlags:()=>Yb,getSemanticClassifications:()=>J0,getSemanticJsxChildren:()=>Nv,getSetAccessorTypeAnnotationNode:()=>gb,getSetAccessorValueParameter:()=>hb,getSetExternalModuleIndicator:()=>vT,getShebang:()=>Os,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Xg,getSingleVariableOfVariableStatement:()=>$g,getSnapshotText:()=>rQ,getSnippetElement:()=>zI,getSourceFileOfModule:()=>Qf,getSourceFileOfNode:()=>Yf,getSourceFilePathInNewDir:()=>lb,getSourceFilePathInNewDirWorker:()=>cb,getSourceFileVersionAsHashFromText:()=>tq,getSourceFilesToEmit:()=>ab,getSourceMapRange:()=>gI,getSourceMapper:()=>$1,getSourceTextOfNodeFromSourceFile:()=>Em,getSpanOfTokenAtPosition:()=>b_,getSpellingSuggestion:()=>Xt,getStartPositionOfLine:()=>tm,getStartPositionOfRange:()=>aS,getStartsOnNewLine:()=>EI,getStaticPropertiesAndClassStaticBlock:()=>rG,getStrictOptionValue:()=>IT,getStringComparer:()=>Vt,getSubPatternFromSpec:()=>HT,getSuperCallFromStatement:()=>QB,getSuperContainer:()=>Th,getSupportedCodeFixes:()=>y7,getSupportedExtensions:()=>ex,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>tx,getSwitchedType:()=>WZ,getSymbolId:()=>Kz,getSymbolNameForPrivateIdentifier:()=>dv,getSymbolTarget:()=>cZ,getSyntacticClassifications:()=>e1,getSyntacticModifierFlags:()=>tE,getSyntacticModifierFlagsNoCache:()=>iE,getSynthesizedDeepClone:()=>mZ,getSynthesizedDeepCloneWithReplacements:()=>_Z,getSynthesizedDeepClones:()=>gZ,getSynthesizedDeepClonesWithReplacements:()=>yZ,getSyntheticLeadingComments:()=>AI,getSyntheticTrailingComments:()=>CI,getTargetLabel:()=>g$,getTargetOfBindingOrAssignmentElement:()=>kL,getTemporaryModuleResolutionState:()=>oW,getTextOfConstantValue:()=>Nm,getTextOfIdentifierOrLiteral:()=>sv,getTextOfJSDocComment:()=>Rc,getTextOfJsxAttributeName:()=>vA,getTextOfJsxNamespacedName:()=>SA,getTextOfNode:()=>xm,getTextOfNodeFromSourceText:()=>Tm,getTextOfPropertyName:()=>l_,getThisContainer:()=>vh,getThisParameter:()=>yb,getTokenAtPosition:()=>lY,getTokenPosOfNode:()=>vm,getTokenSourceMapRange:()=>vI,getTouchingPropertyName:()=>aY,getTouchingToken:()=>sY,getTrailingCommentRanges:()=>ws,getTrailingSemicolonDeferringWriter:()=>Kv,getTransformFlagsSubtreeExclusions:()=>tI,getTransformers:()=>oV,getTsBuildInfoEmitOutputFilePath:()=>SV,getTsConfigObjectLiteralExpression:()=>dh,getTsConfigPropArrayElementValue:()=>uh,getTypeAnnotationNode:()=>Ib,getTypeArgumentOrTypeParameterList:()=>LY,getTypeKeywordOfTypeOnlyImport:()=>CQ,getTypeNode:()=>VI,getTypeNodeIfAccessible:()=>zZ,getTypeParameterFromJsDoc:()=>dy,getTypeParameterOwner:()=>hl,getTypesPackageName:()=>TW,getUILocale:()=>Ut,getUniqueName:()=>AZ,getUniqueSymbolId:()=>uZ,getUseDefineForClassFields:()=>rf,getWatchErrorSummaryDiagnosticMessage:()=>zK,getWatchFactory:()=>aU,group:()=>rt,groupBy:()=>ot,guessIndentation:()=>tp,handleNoEmitOptions:()=>dH,hasAbstractModifier:()=>Hb,hasAccessorModifier:()=>qb,hasAmbientModifier:()=>Kb,hasChangesInResolutions:()=>Xf,hasChildOfKind:()=>q$,hasContextSensitiveParameters:()=>Yx,hasDecorators:()=>Xb,hasDocComment:()=>DY,hasDynamicName:()=>rv,hasEffectiveModifier:()=>Bb,hasEffectiveModifiers:()=>Wb,hasEffectiveReadonlyModifier:()=>Jb,hasExtension:()=>$i,hasIndexSignature:()=>FZ,hasInitializer:()=>Yu,hasInvalidEscape:()=>Pv,hasJSDocNodes:()=>Xu,hasJSDocParameterTags:()=>Ql,hasJSFileExtension:()=>nx,hasJsonModuleEmitEnabled:()=>ET,hasOnlyExpressionInitializer:()=>Qu,hasOverrideModifier:()=>Ub,hasPossibleExternalModuleReference:()=>Zm,hasProperty:()=>He,hasPropertyAccessExpressionWithName:()=>y$,hasQuestionToken:()=>Ug,hasRecordedExternalHelpers:()=>IL,hasResolutionModeOverride:()=>RA,hasRestParameter:()=>op,hasScopeMarker:()=>hu,hasStaticModifier:()=>Vb,hasSyntacticModifier:()=>Gb,hasSyntacticModifiers:()=>zb,hasTSFileExtension:()=>rx,hasTabstop:()=>uA,hasTrailingDirectorySeparator:()=>Zi,hasType:()=>$u,hasTypeArguments:()=>uy,hasZeroOrOneAsteriskCharacter:()=>wT,helperString:()=>kR,hostGetCanonicalFileName:()=>Jv,hostUsesCaseSensitiveFileNames:()=>qv,idText:()=>kl,identifierIsThisKeyword:()=>Tb,identifierToKeywordKind:()=>Pl,identity:()=>xt,identitySourceMapConsumer:()=>yB,ignoreSourceNewlines:()=>GI,ignoredPaths:()=>fi,importDefaultHelper:()=>bR,importFromModuleSpecifier:()=>Wg,importNameElisionDisabled:()=>ST,importStarHelper:()=>vR,indexOfAnyCharCode:()=>z,indexOfNode:()=>Im,indicesOf:()=>ue,inferredTypesContainingFile:()=>vU,injectClassNamedEvaluationHelperBlockIfMissing:()=>BG,injectClassThisAssignmentIfMissing:()=>LG,insertImports:()=>RQ,insertLeadingStatement:()=>iL,insertSorted:()=>me,insertStatementAfterCustomPrologue:()=>_m,insertStatementAfterStandardPrologue:()=>mm,insertStatementsAfterCustomPrologue:()=>fm,insertStatementsAfterStandardPrologue:()=>pm,intersperse:()=>N,intrinsicTagNameToString:()=>TA,introducesArgumentsExoticObject:()=>th,inverseJsxOptionMap:()=>AP,isAbstractConstructorSymbol:()=>AS,isAbstractModifier:()=>uC,isAccessExpression:()=>wS,isAccessibilityModifier:()=>WY,isAccessor:()=>Ld,isAccessorModifier:()=>fC,isAliasSymbolDeclaration:()=>Ny,isAliasableExpression:()=>Ly,isAmbientModule:()=>Pm,isAmbientPropertyDeclaration:()=>Km,isAnonymousFunctionDefinition:()=>_v,isAnyDirectorySeparator:()=>Vi,isAnyImportOrBareOrAccessedRequire:()=>Ym,isAnyImportOrReExport:()=>e_,isAnyImportSyntax:()=>$m,isAnySupportedFileExtension:()=>vx,isApplicableVersionedTypesKey:()=>hW,isArgumentExpressionOfElementAccess:()=>A$,isArray:()=>mt,isArrayBindingElement:()=>Hd,isArrayBindingOrAssignmentElement:()=>Qd,isArrayBindingOrAssignmentPattern:()=>Yd,isArrayBindingPattern:()=>oD,isArrayLiteralExpression:()=>aD,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>BY,isArrayTypeNode:()=>zC,isArrowFunction:()=>hD,isAsExpression:()=>MD,isAssertClause:()=>bN,isAssertEntry:()=>EN,isAssertionExpression:()=>pu,isAssertsKeyword:()=>sC,isAssignmentDeclaration:()=>cg,isAssignmentExpression:()=>gE,isAssignmentOperator:()=>mE,isAssignmentPattern:()=>Ud,isAssignmentTarget:()=>my,isAsteriskToken:()=>$R,isAsyncFunction:()=>ev,isAsyncModifier:()=>aC,isAutoAccessorPropertyDeclaration:()=>kd,isAwaitExpression:()=>bD,isAwaitKeyword:()=>lC,isBigIntLiteral:()=>WR,isBinaryExpression:()=>TD,isBinaryOperatorToken:()=>ek,isBindableObjectDefinePropertyCall:()=>Sg,isBindableStaticAccessExpression:()=>Ag,isBindableStaticElementAccessExpression:()=>Ig,isBindableStaticNameExpression:()=>Rg,isBindingElement:()=>iD,isBindingElementOfBareOrAccessedRequire:()=>og,isBindingName:()=>Sd,isBindingOrAssignmentElement:()=>qd,isBindingOrAssignmentPattern:()=>Jd,isBindingPattern:()=>Vd,isBlock:()=>BD,isBlockOrCatchScoped:()=>Lm,isBlockScope:()=>qm,isBlockScopedContainerTopLevel:()=>zm,isBooleanLiteral:()=>Id,isBreakOrContinueStatement:()=>Vc,isBreakStatement:()=>YD,isBuildInfoFile:()=>bV,isBuilderProgram:()=>jK,isBundle:()=>oM,isBundleFileTextLike:()=>FS,isCallChain:()=>Pc,isCallExpression:()=>dD,isCallExpressionTarget:()=>i$,isCallLikeExpression:()=>nu,isCallLikeOrFunctionLikeExpression:()=>tu,isCallOrNewExpression:()=>ru,isCallOrNewExpressionTarget:()=>s$,isCallSignatureDeclaration:()=>NC,isCallToHelper:()=>wR,isCaseBlock:()=>mN,isCaseClause:()=>JN,isCaseKeyword:()=>hC,isCaseOrDefaultClause:()=>Vu,isCatchClause:()=>YN,isCatchClauseVariableDeclaration:()=>Zx,isCatchClauseVariableDeclarationOrBindingElement:()=>km,isCheckJsEnabledForFile:()=>Ex,isChildOfNodeWithKind:()=>U_,isCircularBuildOrder:()=>xq,isClassDeclaration:()=>lN,isClassElement:()=>Nd,isClassExpression:()=>CD,isClassInstanceProperty:()=>Pd,isClassLike:()=>Md,isClassMemberModifier:()=>yd,isClassNamedEvaluationHelperBlock:()=>FG,isClassOrTypeElement:()=>zd,isClassStaticBlockDeclaration:()=>IC,isClassThisAssignmentBlock:()=>NG,isCollapsedRange:()=>XE,isColonToken:()=>ZR,isCommaExpression:()=>hL,isCommaListExpression:()=>FD,isCommaSequence:()=>gL,isCommaToken:()=>qR,isComment:()=>kY,isCommonJsExportPropertyAssignment:()=>Z_,isCommonJsExportedExpression:()=>Q_,isCompoundAssignment:()=>$B,isComputedNonLiteralName:()=>a_,isComputedPropertyName:()=>yC,isConciseBody:()=>bu,isConditionalExpression:()=>xD,isConditionalTypeNode:()=>KC,isConstTypeReference:()=>Bc,isConstructSignatureDeclaration:()=>MC,isConstructorDeclaration:()=>RC,isConstructorTypeNode:()=>OC,isContextualKeyword:()=>Ky,isContinueStatement:()=>$D,isCustomPrologue:()=>O_,isDebuggerStatement:()=>oN,isDeclaration:()=>Lu,isDeclarationBindingElement:()=>Kd,isDeclarationFileName:()=>_P,isDeclarationName:()=>Iy,isDeclarationNameOfEnumOrNamespace:()=>cS,isDeclarationReadonly:()=>I_,isDeclarationStatement:()=>ku,isDeclarationWithTypeParameterChildren:()=>Xm,isDeclarationWithTypeParameters:()=>Jm,isDecorator:()=>EC,isDecoratorTarget:()=>c$,isDefaultClause:()=>XN,isDefaultImport:()=>jg,isDefaultModifier:()=>iC,isDefaultedExpandoInitializer:()=>mg,isDeleteExpression:()=>gD,isDeleteTarget:()=>xy,isDeprecatedDeclaration:()=>E0,isDestructuringAssignment:()=>vE,isDiagnosticWithLocation:()=>i0,isDiskPathRoot:()=>Ki,isDoStatement:()=>HD,isDocumentRegistryEntry:()=>i1,isDotDotDotToken:()=>KR,isDottedName:()=>TE,isDynamicName:()=>ov,isESSymbolIdentifier:()=>fv,isEffectiveExternalModule:()=>Um,isEffectiveModuleDeclaration:()=>Fm,isEffectiveStrictModeSourceFile:()=>Hm,isElementAccessChain:()=>kc,isElementAccessExpression:()=>cD,isEmittedFileOfProgram:()=>iU,isEmptyArrayLiteral:()=>kE,isEmptyBindingElement:()=>vl,isEmptyBindingPattern:()=>yl,isEmptyObjectLiteral:()=>LE,isEmptyStatement:()=>jD,isEmptyStringLiteral:()=>Wh,isEntityName:()=>bd,isEntityNameExpression:()=>EE,isEnumConst:()=>A_,isEnumDeclaration:()=>uN,isEnumMember:()=>tM,isEqualityOperatorKind:()=>wZ,isEqualsGreaterThanToken:()=>tC,isExclamationToken:()=>YR,isExcludedFile:()=>CO,isExclusivelyTypeOnlyImportOrExport:()=>jU,isExpandoPropertyDeclaration:()=>IA,isExportAssignment:()=>CN,isExportDeclaration:()=>DN,isExportModifier:()=>oC,isExportName:()=>pL,isExportNamespaceAsDefaultDeclaration:()=>Sm,isExportOrDefaultModifier:()=>rk,isExportSpecifier:()=>MN,isExportsIdentifier:()=>yg,isExportsOrModuleExportsOrAlias:()=>KW,isExpression:()=>uu,isExpressionNode:()=>Bh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>D$,isExpressionOfOptionalChainRoot:()=>Fc,isExpressionStatement:()=>VD,isExpressionWithTypeArguments:()=>ND,isExpressionWithTypeArgumentsInClassExtendsClause:()=>bE,isExternalModule:()=>uP,isExternalModuleAugmentation:()=>Gm,isExternalModuleImportEqualsDeclaration:()=>Uh,isExternalModuleIndicator:()=>yu,isExternalModuleNameRelative:()=>Xs,isExternalModuleReference:()=>wN,isExternalModuleSymbol:()=>tQ,isExternalOrCommonJsModule:()=>T_,isFileLevelReservedGeneratedIdentifier:()=>fd,isFileLevelUniqueName:()=>om,isFileProbablyExternalModule:()=>Wk,isFirstDeclarationOfSymbolParameter:()=>FQ,isFixablePromiseHandler:()=>a2,isForInOrOfStatement:()=>vu,isForInStatement:()=>JD,isForInitializer:()=>Su,isForOfStatement:()=>XD,isForStatement:()=>qD,isFunctionBlock:()=>rh,isFunctionBody:()=>Eu,isFunctionDeclaration:()=>sN,isFunctionExpression:()=>_D,isFunctionExpressionOrArrowFunction:()=>eA,isFunctionLike:()=>Td,isFunctionLikeDeclaration:()=>Ad,isFunctionLikeKind:()=>Cd,isFunctionLikeOrClassStaticBlockDeclaration:()=>xd,isFunctionOrConstructorTypeNode:()=>jd,isFunctionOrModuleBlock:()=>Dd,isFunctionSymbol:()=>Og,isFunctionTypeNode:()=>wC,isFutureReservedKeyword:()=>Jy,isGeneratedIdentifier:()=>ud,isGeneratedPrivateIdentifier:()=>pd,isGetAccessor:()=>Ju,isGetAccessorDeclaration:()=>CC,isGetOrSetAccessorDeclaration:()=>Mc,isGlobalDeclaration:()=>v0,isGlobalScopeAugmentation:()=>Bm,isGrammarError:()=>sm,isHeritageClause:()=>$N,isHoistedFunction:()=>F_,isHoistedVariableStatement:()=>z_,isIdentifier:()=>nC,isIdentifierANonContextualKeyword:()=>Yy,isIdentifierName:()=>Dy,isIdentifierOrThisTypeNode:()=>HL,isIdentifierPart:()=>Ws,isIdentifierStart:()=>Fs,isIdentifierText:()=>zs,isIdentifierTypePredicate:()=>ah,isIdentifierTypeReference:()=>Ox,isIfStatement:()=>UD,isIgnoredFileFromWildCardWatching:()=>oU,isImplicitGlob:()=>VT,isImportAttribute:()=>TN,isImportAttributeName:()=>dd,isImportAttributes:()=>SN,isImportCall:()=>L_,isImportClause:()=>yN,isImportDeclaration:()=>gN,isImportEqualsDeclaration:()=>hN,isImportKeyword:()=>_C,isImportMeta:()=>k_,isImportOrExportSpecifier:()=>id,isImportOrExportSpecifierName:()=>sZ,isImportSpecifier:()=>RN,isImportTypeAssertionContainer:()=>vN,isImportTypeNode:()=>eD,isImportableFile:()=>P0,isInComment:()=>CY,isInCompoundLikeAssignment:()=>_y,isInExpressionContext:()=>Gh,isInJSDoc:()=>Zh,isInJSFile:()=>$h,isInJSXText:()=>EY,isInJsonFile:()=>Yh,isInNonReferenceComment:()=>jY,isInReferenceComment:()=>GY,isInRightSideOfInternalImportEqualsDeclaration:()=>o$,isInString:()=>gY,isInTemplateString:()=>bY,isInTopLevelContext:()=>Eh,isInTypeQuery:()=>Eb,isIncrementalCompilation:()=>ef,isIndexSignatureDeclaration:()=>LC,isIndexedAccessTypeNode:()=>YC,isInferTypeNode:()=>qC,isInfinityOrNaNString:()=>Qx,isInitializedProperty:()=>oG,isInitializedVariable:()=>uS,isInsideJsxElement:()=>SY,isInsideJsxElementOrAttribute:()=>yY,isInsideNodeModules:()=>o0,isInsideTemplateLiteral:()=>FY,isInstanceOfExpression:()=>NE,isInstantiatedModule:()=>qz,isInterfaceDeclaration:()=>cN,isInternalDeclaration:()=>sp,isInternalModuleImportEqualsDeclaration:()=>qh,isInternalName:()=>dL,isIntersectionTypeNode:()=>HC,isIntrinsicJsxName:()=>jv,isIterationStatement:()=>mu,isJSDoc:()=>bM,isJSDocAllType:()=>pM,isJSDocAugmentsTag:()=>TM,isJSDocAuthorTag:()=>xM,isJSDocCallbackTag:()=>IM,isJSDocClassTag:()=>AM,isJSDocCommentContainingNode:()=>Hu,isJSDocConstructSignature:()=>Hg,isJSDocDeprecatedTag:()=>kM,isJSDocEnumTag:()=>wM,isJSDocFunctionType:()=>gM,isJSDocImplementsTag:()=>UM,isJSDocIndexSignature:()=>eg,isJSDocLikeText:()=>Fk,isJSDocLink:()=>cM,isJSDocLinkCode:()=>dM,isJSDocLinkLike:()=>rp,isJSDocLinkPlain:()=>uM,isJSDocMemberName:()=>lM,isJSDocNameReference:()=>sM,isJSDocNamepathType:()=>vM,isJSDocNamespaceBody:()=>Au,isJSDocNode:()=>Uu,isJSDocNonNullableType:()=>_M,isJSDocNullableType:()=>mM,isJSDocOptionalParameter:()=>pA,isJSDocOptionalType:()=>hM,isJSDocOverloadTag:()=>LM,isJSDocOverrideTag:()=>MM,isJSDocParameterTag:()=>OM,isJSDocPrivateTag:()=>CM,isJSDocPropertyLikeTag:()=>qc,isJSDocPropertyTag:()=>VM,isJSDocProtectedTag:()=>DM,isJSDocPublicTag:()=>RM,isJSDocReadonlyTag:()=>NM,isJSDocReturnTag:()=>FM,isJSDocSatisfiesExpression:()=>_A,isJSDocSatisfiesTag:()=>HM,isJSDocSeeTag:()=>PM,isJSDocSignature:()=>SM,isJSDocTag:()=>Ku,isJSDocTemplateTag:()=>BM,isJSDocThisTag:()=>WM,isJSDocThrowsTag:()=>KM,isJSDocTypeAlias:()=>Kg,isJSDocTypeAssertion:()=>yL,isJSDocTypeExpression:()=>aM,isJSDocTypeLiteral:()=>EM,isJSDocTypeTag:()=>zM,isJSDocTypedefTag:()=>GM,isJSDocUnknownTag:()=>jM,isJSDocUnknownType:()=>fM,isJSDocVariadicType:()=>yM,isJSXTagName:()=>zh,isJsonEqual:()=>Dx,isJsonSourceFile:()=>x_,isJsxAttribute:()=>VN,isJsxAttributeLike:()=>Bu,isJsxAttributeName:()=>bA,isJsxAttributes:()=>UN,isJsxChild:()=>zu,isJsxClosingElement:()=>zN,isJsxClosingFragment:()=>jN,isJsxElement:()=>ON,isJsxExpression:()=>KN,isJsxFragment:()=>BN,isJsxNamespacedName:()=>qN,isJsxOpeningElement:()=>WN,isJsxOpeningFragment:()=>GN,isJsxOpeningLikeElement:()=>ju,isJsxOpeningLikeElementTagName:()=>d$,isJsxSelfClosingElement:()=>FN,isJsxSpreadAttribute:()=>HN,isJsxTagNameExpression:()=>Wu,isJsxText:()=>BR,isJumpStatementTarget:()=>v$,isKeyword:()=>Vy,isKeywordOrPunctuation:()=>Hy,isKnownSymbol:()=>uv,isLabelName:()=>E$,isLabelOfLabeledStatement:()=>b$,isLabeledStatement:()=>tN,isLateVisibilityPaintedStatement:()=>Qm,isLeftHandSideExpression:()=>iu,isLeftHandSideOfAssignment:()=>yE,isLet:()=>N_,isLineBreak:()=>ys,isLiteralComputedPropertyDeclarationName:()=>Cy,isLiteralExpression:()=>ed,isLiteralExpressionOfObject:()=>td,isLiteralImportTypeNode:()=>P_,isLiteralKind:()=>Zc,isLiteralLikeAccess:()=>Tg,isLiteralLikeElementAccess:()=>xg,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>C$,isLiteralTypeLikeExpression:()=>XL,isLiteralTypeLiteral:()=>du,isLiteralTypeNode:()=>ZC,isLocalName:()=>uL,isLogicalOperator:()=>cE,isLogicalOrCoalescingAssignmentExpression:()=>uE,isLogicalOrCoalescingAssignmentOperator:()=>dE,isLogicalOrCoalescingBinaryExpression:()=>fE,isLogicalOrCoalescingBinaryOperator:()=>pE,isMappedTypeNode:()=>QC,isMemberName:()=>Nc,isMetaProperty:()=>PD,isMethodDeclaration:()=>AC,isMethodOrAccessor:()=>wd,isMethodSignature:()=>xC,isMinusToken:()=>XR,isMissingDeclaration:()=>LN,isMissingPackageJsonInfo:()=>vF,isModifier:()=>vd,isModifierKind:()=>hd,isModifierLike:()=>Fd,isModuleAugmentationExternal:()=>jm,isModuleBlock:()=>fN,isModuleBody:()=>Tu,isModuleDeclaration:()=>pN,isModuleExportsAccessExpression:()=>bg,isModuleIdentifier:()=>vg,isModuleName:()=>JL,isModuleOrEnumDeclaration:()=>Ru,isModuleReference:()=>Fu,isModuleSpecifierLike:()=>EQ,isModuleWithStringLiteralName:()=>wm,isNameOfFunctionDeclaration:()=>R$,isNameOfModuleDeclaration:()=>I$,isNamedClassElement:()=>Od,isNamedDeclaration:()=>Bl,isNamedEvaluation:()=>gv,isNamedEvaluationSource:()=>hv,isNamedExportBindings:()=>Uc,isNamedExports:()=>NN,isNamedImportBindings:()=>Iu,isNamedImports:()=>IN,isNamedImportsOrExports:()=>WS,isNamedTupleMember:()=>GC,isNamespaceBody:()=>xu,isNamespaceExport:()=>AN,isNamespaceExportDeclaration:()=>_N,isNamespaceImport:()=>xN,isNamespaceReexportDeclaration:()=>Vh,isNewExpression:()=>uD,isNewExpressionTarget:()=>a$,isNoSubstitutionTemplateLiteral:()=>jR,isNode:()=>Jc,isNodeArray:()=>Qc,isNodeArrayMultiLine:()=>oS,isNodeDescendantOf:()=>Ay,isNodeKind:()=>Xc,isNodeLikeSystem:()=>xn,isNodeModulesDirectory:()=>wa,isNodeWithPossibleHoistedDeclaration:()=>hy,isNonContextualKeyword:()=>qy,isNonExportDefaultModifier:()=>ok,isNonGlobalAmbientModule:()=>Om,isNonGlobalDeclaration:()=>b0,isNonNullAccess:()=>mA,isNonNullChain:()=>jc,isNonNullExpression:()=>kD,isNonStaticMethodOrAccessorWithPrivateName:()=>iG,isNotEmittedOrPartiallyEmittedNode:()=>fu,isNotEmittedStatement:()=>kN,isNullishCoalesce:()=>zc,isNumber:()=>gt,isNumericLiteral:()=>FR,isNumericLiteralName:()=>nA,isObjectBindingElementWithoutPropertyName:()=>SQ,isObjectBindingOrAssignmentElement:()=>$d,isObjectBindingOrAssignmentPattern:()=>Xd,isObjectBindingPattern:()=>rD,isObjectLiteralElement:()=>Zu,isObjectLiteralElementLike:()=>Bd,isObjectLiteralExpression:()=>sD,isObjectLiteralMethod:()=>oh,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>ih,isObjectTypeDeclaration:()=>kS,isOctalDigit:()=>Es,isOmittedExpression:()=>DD,isOptionalChain:()=>wc,isOptionalChainRoot:()=>Oc,isOptionalDeclaration:()=>fA,isOptionalJSDocPropertyLikeTag:()=>cA,isOptionalTypeNode:()=>jC,isOuterExpression:()=>bL,isOutermostOptionalChain:()=>Wc,isOverrideModifier:()=>pC,isPackageJsonInfo:()=>yF,isPackedArrayLiteral:()=>qx,isParameter:()=>bC,isParameterDeclaration:()=>vv,isParameterPropertyDeclaration:()=>gl,isParameterPropertyModifier:()=>gd,isParenthesizedExpression:()=>mD,isParenthesizedTypeNode:()=>JC,isParseTreeNode:()=>Dl,isPartOfTypeNode:()=>j_,isPartOfTypeQuery:()=>jh,isPartiallyEmittedExpression:()=>OD,isPatternMatch:()=>fn,isPinnedComment:()=>gm,isPlainJsFile:()=>Zf,isPlusToken:()=>JR,isPossiblyTypeArgumentPosition:()=>AY,isPostfixUnaryExpression:()=>SD,isPrefixUnaryExpression:()=>ED,isPrivateIdentifier:()=>rC,isPrivateIdentifierClassElementDeclaration:()=>md,isPrivateIdentifierPropertyAccessExpression:()=>_d,isPrivateIdentifierSymbol:()=>pv,isProgramBundleEmitBuildInfo:()=>HH,isProgramUptoDate:()=>iH,isPrologueDirective:()=>w_,isPropertyAccessChain:()=>Lc,isPropertyAccessEntityNameExpression:()=>xE,isPropertyAccessExpression:()=>lD,isPropertyAccessOrQualifiedName:()=>eu,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Zd,isPropertyAssignment:()=>QN,isPropertyDeclaration:()=>TC,isPropertyName:()=>Ed,isPropertyNameLiteral:()=>av,isPropertySignature:()=>SC,isProtoSetter:()=>mv,isPrototypeAccess:()=>IE,isPrototypePropertyAssignment:()=>kg,isPunctuation:()=>Uy,isPushOrUnshiftIdentifier:()=>yv,isQualifiedName:()=>gC,isQuestionDotToken:()=>eC,isQuestionOrExclamationToken:()=>UL,isQuestionOrPlusOrMinusToken:()=>qL,isQuestionToken:()=>QR,isRawSourceMap:()=>xB,isReadonlyKeyword:()=>cC,isReadonlyKeywordOrPlusOrMinusToken:()=>KL,isRecognizedTripleSlashComment:()=>hm,isReferenceFileLocation:()=>rH,isReferencedFile:()=>nH,isRegularExpressionLiteral:()=>GR,isRequireCall:()=>tg,isRequireVariableStatement:()=>ag,isRestParameter:()=>ip,isRestTypeNode:()=>VC,isReturnStatement:()=>QD,isReturnStatementWithFixablePromiseHandler:()=>i2,isRightSideOfAccessExpression:()=>CE,isRightSideOfInstanceofExpression:()=>ME,isRightSideOfPropertyAccess:()=>x$,isRightSideOfQualifiedName:()=>T$,isRightSideOfQualifiedNameOrPropertyAccess:()=>RE,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>DE,isRootedDiskPath:()=>Hi,isSameEntityName:()=>hg,isSatisfiesExpression:()=>LD,isScopeMarker:()=>_u,isSemicolonClassElement:()=>zD,isSetAccessor:()=>qu,isSetAccessorDeclaration:()=>DC,isShebangTrivia:()=>Is,isShiftOperatorOrHigher:()=>$L,isShorthandAmbientModuleSymbol:()=>Wm,isShorthandPropertyAssignment:()=>ZN,isSignedNumericLiteral:()=>nv,isSimpleCopiableExpression:()=>JB,isSimpleInlineableExpression:()=>XB,isSimpleParameter:()=>_G,isSimpleParameterList:()=>hG,isSingleOrDoubleQuote:()=>sg,isSourceFile:()=>rM,isSourceFileFromLibrary:()=>R0,isSourceFileJS:()=>Jh,isSourceFileNotJS:()=>Xh,isSourceFileNotJson:()=>Qh,isSourceMapping:()=>CB,isSpecialPropertyDeclaration:()=>Pg,isSpreadAssignment:()=>eM,isSpreadElement:()=>RD,isStatement:()=>wu,isStatementButNotDeclaration:()=>Pu,isStatementOrBlock:()=>Ou,isStatementWithLocals:()=>em,isStatic:()=>jb,isStaticModifier:()=>dC,isString:()=>ht,isStringAKeyword:()=>$y,isStringANonContextualKeyword:()=>Xy,isStringAndEmptyAnonymousObjectIntersection:()=>OY,isStringDoubleQuoted:()=>lg,isStringLiteral:()=>zR,isStringLiteralLike:()=>np,isStringLiteralOrJsxExpression:()=>Gu,isStringLiteralOrTemplate:()=>OZ,isStringOrNumericLiteralLike:()=>tv,isStringOrRegularExpressionOrTemplateLiteral:()=>PY,isStringTextContainingNode:()=>cd,isSuperCall:()=>M_,isSuperKeyword:()=>mC,isSuperOrSuperProperty:()=>Ah,isSuperProperty:()=>Ih,isSupportedSourceFileName:()=>ax,isSwitchStatement:()=>eN,isSyntaxList:()=>qM,isSyntheticExpression:()=>wD,isSyntheticReference:()=>PN,isTagName:()=>S$,isTaggedTemplateExpression:()=>pD,isTaggedTemplateTag:()=>l$,isTemplateExpression:()=>AD,isTemplateHead:()=>VR,isTemplateLiteral:()=>ou,isTemplateLiteralKind:()=>nd,isTemplateLiteralToken:()=>rd,isTemplateLiteralTypeNode:()=>nD,isTemplateLiteralTypeSpan:()=>tD,isTemplateMiddle:()=>UR,isTemplateMiddleOrTemplateTail:()=>od,isTemplateSpan:()=>WD,isTemplateTail:()=>HR,isTextWhiteSpaceLike:()=>kQ,isThis:()=>L$,isThisContainerOrFunctionBlock:()=>bh,isThisIdentifier:()=>bb,isThisInTypeQuery:()=>Sb,isThisInitializedDeclaration:()=>Ch,isThisInitializedObjectBindingExpression:()=>Dh,isThisProperty:()=>Rh,isThisTypeNode:()=>XC,isThisTypeParameter:()=>oA,isThisTypePredicate:()=>sh,isThrowStatement:()=>nN,isToken:()=>Yc,isTokenKind:()=>$c,isTraceEnabled:()=>XO,isTransientSymbol:()=>Lf,isTrivia:()=>Qy,isTryStatement:()=>rN,isTupleTypeNode:()=>BC,isTypeAlias:()=>qg,isTypeAliasDeclaration:()=>dN,isTypeAssertionExpression:()=>fD,isTypeDeclaration:()=>sA,isTypeElement:()=>Wd,isTypeKeyword:()=>QY,isTypeKeywordToken:()=>ZY,isTypeKeywordTokenOrIdentifier:()=>eQ,isTypeLiteralNode:()=>WC,isTypeNode:()=>Gd,isTypeNodeKind:()=>PS,isTypeOfExpression:()=>yD,isTypeOnlyExportDeclaration:()=>sd,isTypeOnlyImportDeclaration:()=>ad,isTypeOnlyImportOrExportDeclaration:()=>ld,isTypeOperatorNode:()=>$C,isTypeParameterDeclaration:()=>vC,isTypePredicateNode:()=>kC,isTypeQueryNode:()=>FC,isTypeReferenceNode:()=>PC,isTypeReferenceType:()=>ep,isTypeUsableAsPropertyName:()=>xA,isUMDExportSymbol:()=>DS,isUnaryExpression:()=>su,isUnaryExpressionWithWrite:()=>cu,isUnicodeIdentifierStart:()=>is,isUnionTypeNode:()=>UC,isUnparsedNode:()=>Kc,isUnparsedPrepend:()=>nM,isUnparsedSource:()=>iM,isUnparsedTextLike:()=>Hc,isUrl:()=>Ui,isValidBigIntString:()=>Px,isValidESSymbolDeclaration:()=>eh,isValidTypeOnlyAliasUseSite:()=>wx,isValueSignatureDeclaration:()=>gy,isVarAwaitUsing:()=>R_,isVarConst:()=>D_,isVarUsing:()=>C_,isVariableDeclaration:()=>iN,isVariableDeclarationInVariableStatement:()=>Y_,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>rg,isVariableDeclarationInitializedToRequire:()=>ng,isVariableDeclarationList:()=>aN,isVariableLike:()=>X_,isVariableLikeOrAccessor:()=>$_,isVariableStatement:()=>GD,isVoidExpression:()=>vD,isWatchSet:()=>pS,isWhileStatement:()=>KD,isWhiteSpaceLike:()=>hs,isWhiteSpaceSingleLine:()=>gs,isWithStatement:()=>ZD,isWriteAccess:()=>vS,isWriteOnlyAccess:()=>yS,isYieldExpression:()=>ID,jsxModeNeedsExplicitImport:()=>I0,keywordPart:()=>GQ,last:()=>Fe,lastOrUndefined:()=>Oe,length:()=>T,libMap:()=>CP,libs:()=>RP,lineBreakPart:()=>tZ,linkNamePart:()=>YQ,linkPart:()=>QQ,linkTextPart:()=>$Q,listFiles:()=>VK,loadModuleFromGlobalCache:()=>MW,loadWithModeAwareCache:()=>$U,makeIdentifierFromModuleName:()=>Mm,makeImport:()=>mQ,makeImportIfNecessary:()=>fQ,makeStringLiteral:()=>_Q,mangleScopedPackageName:()=>xW,map:()=>U,mapAllOrFail:()=>Q,mapDefined:()=>Z,mapDefinedEntries:()=>te,mapDefinedIterator:()=>ee,mapEntries:()=>ae,mapIterator:()=>H,mapOneOrMany:()=>d0,mapToDisplayParts:()=>nZ,matchFiles:()=>XT,matchPatternOrExact:()=>Sx,matchedText:()=>ln,matchesExclude:()=>NO,maybeBind:()=>lt,maybeSetLocalizedDiagnosticMessages:()=>ZS,memoize:()=>Ct,memoizeCached:()=>Mt,memoizeOne:()=>Dt,memoizeWeak:()=>Nt,metadataHelper:()=>QI,min:()=>zt,minAndMax:()=>Ax,missingFileModifiedTime:()=>ci,modifierToFlag:()=>sE,modifiersToFlags:()=>aE,moduleOptionDeclaration:()=>LP,moduleResolutionIsEqualTo:()=>Uf,moduleResolutionNameAndModeGetter:()=>gU,moduleResolutionOptionDeclarations:()=>WP,moduleResolutionSupportsPackageJsonExportsAndImports:()=>AT,moduleResolutionUsesNodeModules:()=>pQ,moduleSpecifiers:()=>Rz,moveEmitHelpers:()=>WI,moveRangeEnd:()=>HE,moveRangePastDecorators:()=>qE,moveRangePastModifiers:()=>JE,moveRangePos:()=>KE,moveSyntheticComments:()=>MI,mutateMap:()=>xS,mutateMapSkippingNewValues:()=>TS,needsParentheses:()=>LZ,needsScopeMarker:()=>gu,newCaseClauseTracker:()=>C0,newPrivateEnvironment:()=>uG,noEmitNotification:()=>uV,noEmitSubstitution:()=>dV,noTransformers:()=>tV,noTruncationMaximumTruncationLength:()=>up,nodeCanBeDecorated:()=>Lh,nodeHasName:()=>Wl,nodeIsDecorated:()=>kh,nodeIsMissing:()=>im,nodeIsPresent:()=>am,nodeIsSynthesized:()=>Sv,nodeModuleNameResolver:()=>BF,nodeModulesPathPart:()=>HO,nodeNextJsonConfigResolver:()=>GF,nodeOrChildIsDecorated:()=>Ph,nodeOverlapsWithStartEnd:()=>G$,nodePosToString:()=>nm,nodeSeenTracker:()=>nQ,nodeStartsNewLexicalEnvironment:()=>Ev,nodeToDisplayParts:()=>aZ,noop:()=>bt,noopFileWatcher:()=>CK,normalizePath:()=>_a,normalizeSlashes:()=>ca,not:()=>hn,notImplemented:()=>Rt,notImplementedResolver:()=>mV,nullNodeConverters:()=>wA,nullParenthesizerRules:()=>LA,nullTransformationContext:()=>nV,objectAllocator:()=>Wp,operatorPart:()=>VQ,optionDeclarations:()=>PP,optionMapToObject:()=>Hw,optionsAffectingProgramStructure:()=>BP,optionsForBuild:()=>jP,optionsForWatch:()=>DP,optionsHaveChanges:()=>Of,optionsHaveModuleResolutionChanges:()=>Pf,or:()=>_n,orderedRemoveItem:()=>tn,orderedRemoveItemAt:()=>nn,outFile:()=>ob,packageIdToPackageName:()=>Kf,packageIdToString:()=>qf,paramHelper:()=>ZI,parameterIsThisKeyword:()=>vb,parameterNamePart:()=>UQ,parseBaseNodeFactory:()=>Ik,parseBigInt:()=>Lx,parseBuildCommand:()=>Rw,parseCommandLine:()=>Tw,parseCommandLineWorker:()=>Ew,parseConfigFileTextToJson:()=>Mw,parseConfigFileWithSystem:()=>OK,parseConfigHostFromCompilerHostLike:()=>pH,parseCustomTypeOption:()=>gw,parseIsolatedEntityName:()=>cP,parseIsolatedJSDocComment:()=>fP,parseJSDocTypeExpressionForTests:()=>mP,parseJsonConfigFileContent:()=>nO,parseJsonSourceFileConfigFileContent:()=>rO,parseJsonText:()=>dP,parseListTypeOption:()=>yw,parseNodeFactory:()=>Rk,parseNodeModuleFromPath:()=>KF,parsePackageName:()=>dW,parsePseudoBigInt:()=>Nx,parseValidBigInt:()=>kx,patchWriteFileEnsuringDirectory:()=>wi,pathContainsNodeModules:()=>HF,pathIsAbsolute:()=>qi,pathIsBareSpecifier:()=>Xi,pathIsRelative:()=>Ji,patternText:()=>sn,perfLogger:()=>sr,performIncrementalCompilation:()=>lq,performance:()=>Lr,plainJSErrors:()=>bU,positionBelongsToNode:()=>V$,positionIsASICandidate:()=>UZ,positionIsSynthesized:()=>_x,positionsAreOnSameLine:()=>iS,preProcessFile:()=>q1,probablyUsesSemicolons:()=>HZ,processCommentPragmas:()=>gP,processPragmasIntoFields:()=>yP,processTaggedTemplateExpression:()=>HG,programContainsEsModules:()=>lQ,programContainsModules:()=>sQ,projectReferenceIsEqualTo:()=>Vf,propKeyHelper:()=>fR,propertyNamePart:()=>HQ,pseudoBigIntToString:()=>Mx,punctuationPart:()=>jQ,pushIfUnique:()=>Ae,quote:()=>PZ,quotePreferenceFromString:()=>hQ,rangeContainsPosition:()=>O$,rangeContainsPositionExclusive:()=>F$,rangeContainsRange:()=>P$,rangeContainsRangeExclusive:()=>w$,rangeContainsStartEnd:()=>z$,rangeEndIsOnSameLineAsRangeStart:()=>tS,rangeEndPositionsAreOnSameLine:()=>ZE,rangeEquals:()=>Me,rangeIsOnSingleLine:()=>YE,rangeOfNode:()=>Ix,rangeOfTypeParameters:()=>Rx,rangeOverlapsWithStartEnd:()=>B$,rangeStartIsOnSameLineAsRangeEnd:()=>eS,rangeStartPositionsAreOnSameLine:()=>QE,readBuilderProgram:()=>dq,readConfigFile:()=>Nw,readHelper:()=>uR,readJson:()=>BE,readJsonConfigFile:()=>Lw,readJsonOrUndefined:()=>zE,reduceEachLeadingCommentRange:()=>Ms,reduceEachTrailingCommentRange:()=>Ls,reduceLeft:()=>Ue,reduceLeftIterator:()=>C,reducePathComponents:()=>da,refactor:()=>L5,regExpEscape:()=>zT,relativeComplement:()=>be,removeAllComments:()=>pI,removeEmitHelper:()=>OI,removeExtension:()=>ux,removeFileExtension:()=>cx,removeIgnoredPath:()=>cK,removeMinAndVersionNumbers:()=>en,removeOptionality:()=>xY,removePrefix:()=>un,removeSuffix:()=>Qt,removeTrailingDirectorySeparator:()=>ya,repeatString:()=>oQ,replaceElement:()=>Ge,replaceFirstStar:()=>CA,resolutionExtensionIsTSOrJson:()=>gx,resolveConfigFileProjectName:()=>gq,resolveJSModule:()=>FF,resolveLibrary:()=>kF,resolveModuleName:()=>wF,resolveModuleNameFromCache:()=>PF,resolvePackageNameToPackageJson:()=>hF,resolvePath:()=>pa,resolveProjectReferencePath:()=>mH,resolveTripleslashReference:()=>xU,resolveTypeReferenceDirective:()=>fF,resolvingEmptyArray:()=>lp,restHelper:()=>sR,returnFalse:()=>Et,returnNoopFileWatcher:()=>DK,returnTrue:()=>St,returnUndefined:()=>Tt,returnsPromise:()=>o2,runInitializersHelper:()=>tR,sameFlatMap:()=>Y,sameMap:()=>K,sameMapping:()=>RB,scanShebangTrivia:()=>Rs,scanTokenAtPosition:()=>E_,scanner:()=>KX,screenStartingMessageCodes:()=>RK,semanticDiagnosticsOptionDeclarations:()=>wP,serializeCompilerOptions:()=>Xw,server:()=>$be,servicesVersion:()=>V5,setCommentRange:()=>xI,setConfigFileInOptions:()=>oO,setConstantValue:()=>kI,setEachParent:()=>Ux,setEmitFlags:()=>fI,setFunctionNameHelper:()=>mR,setGetSourceFileAsHashVersioned:()=>nq,setIdentifierAutoGenerate:()=>KI,setIdentifierGeneratedImportReference:()=>JI,setIdentifierTypeArguments:()=>UI,setInternalEmitFlags:()=>_I,setLocalizedDiagnosticMessages:()=>QS,setModuleDefaultHelper:()=>yR,setNodeFlags:()=>jx,setObjectAllocator:()=>$S,setOriginalNode:()=>lI,setParent:()=>Vx,setParentRecursive:()=>Hx,setPrivateIdentifier:()=>fG,setSnippetElement:()=>BI,setSourceMapRange:()=>yI,setStackTraceLimit:()=>vi,setStartsOnNewLine:()=>SI,setSyntheticLeadingComments:()=>II,setSyntheticTrailingComments:()=>DI,setSys:()=>Oi,setSysLog:()=>Ni,setTextRange:()=>yk,setTextRangeEnd:()=>zx,setTextRangePos:()=>Wx,setTextRangePosEnd:()=>Bx,setTextRangePosWidth:()=>Gx,setTokenSourceMapRange:()=>bI,setTypeNode:()=>jI,setUILocale:()=>Ht,setValueDeclaration:()=>wg,shouldAllowImportingTsExtension:()=>NW,shouldPreserveConstEnums:()=>Zp,shouldUseUriStyleNodeCoreModules:()=>S0,showModuleSpecifier:()=>NS,signatureHasLiteralTypes:()=>eB,signatureHasRestParameter:()=>Zz,signatureToDisplayParts:()=>iZ,single:()=>ze,singleElementArray:()=>yn,singleIterator:()=>oe,singleOrMany:()=>Be,singleOrUndefined:()=>We,skipAlias:()=>hS,skipAssertions:()=>TL,skipConstraint:()=>iQ,skipOuterExpressions:()=>EL,skipParentheses:()=>Ty,skipPartiallyEmittedExpressions:()=>Gc,skipTrivia:()=>Ts,skipTypeChecking:()=>Cx,skipTypeParentheses:()=>Sy,skipWhile:()=>Tn,sliceAfter:()=>Tx,some:()=>se,sort:()=>Ce,sortAndDeduplicate:()=>_e,sortAndDeduplicateDiagnostics:()=>$s,sourceFileAffectingCompilerOptions:()=>zP,sourceFileMayBeEmitted:()=>sb,sourceMapCommentRegExp:()=>hB,sourceMapCommentRegExpDontCareLineStart:()=>_B,spacePart:()=>BQ,spanMap:()=>ie,spreadArrayHelper:()=>pR,stableSort:()=>Ne,startEndContainsRange:()=>W$,startEndOverlapsWithStartEnd:()=>j$,startOnNewLine:()=>xL,startTracing:()=>wr,startsWith:()=>dn,startsWithDirectory:()=>Ca,startsWithUnderscore:()=>y0,startsWithUseStrict:()=>_L,stringContainsAt:()=>g0,stringToToken:()=>ss,stripQuotes:()=>Gv,supportedDeclarationExtensions:()=>Ef,supportedJSExtensions:()=>gf,supportedJSExtensionsFlat:()=>yf,supportedLocaleDirectories:()=>Ks,supportedTSExtensions:()=>ff,supportedTSExtensionsFlat:()=>mf,supportedTSImplementationExtensions:()=>Sf,suppressLeadingAndTrailingTrivia:()=>vZ,suppressLeadingTrivia:()=>bZ,suppressTrailingTrivia:()=>EZ,symbolEscapedNameNoDefault:()=>bQ,symbolName:()=>wl,symbolNameNoDefault:()=>vQ,symbolPart:()=>WQ,symbolToDisplayParts:()=>oZ,syntaxMayBeASICandidate:()=>e$,syntaxRequiresTrailingSemicolonOrASI:()=>VZ,sys:()=>hi,sysLog:()=>Di,tagNamesAreEquivalent:()=>SP,takeWhile:()=>Sn,targetOptionDeclaration:()=>MP,templateObjectHelper:()=>dR,testFormatSettings:()=>LX,textChangeRangeIsUnchanged:()=>fl,textChangeRangeNewSpan:()=>pl,textChanges:()=>p_e,textOrKeywordPart:()=>KQ,textPart:()=>qQ,textRangeContainsPositionInclusive:()=>tl,textSpanContainsPosition:()=>el,textSpanContainsTextSpan:()=>nl,textSpanEnd:()=>Qs,textSpanIntersection:()=>cl,textSpanIntersectsWith:()=>al,textSpanIntersectsWithPosition:()=>ll,textSpanIntersectsWithTextSpan:()=>il,textSpanIsEmpty:()=>Zs,textSpanOverlap:()=>ol,textSpanOverlapsWith:()=>rl,textSpansEqual:()=>DQ,textToKeywordObj:()=>za,timestamp:()=>nr,toArray:()=>_t,toBuilderFileEmit:()=>ZH,toBuilderStateFileInfoForMultiEmit:()=>QH,toEditorSettings:()=>m7,toFileNameLowerCase:()=>It,toLowerCase:()=>At,toPath:()=>ga,toProgramEmitPending:()=>eK,tokenIsIdentifierOrKeyword:()=>ns,tokenIsIdentifierOrKeywordOrGreaterThan:()=>rs,tokenToString:()=>as,trace:()=>JO,tracing:()=>kr,tracingEnabled:()=>Pr,transform:()=>C7,transformClassFields:()=>QG,transformDeclarations:()=>Qj,transformECMAScriptModule:()=>jj,transformES2015:()=>Mj,transformES2016:()=>Cj,transformES2017:()=>sj,transformES2018:()=>dj,transformES2019:()=>pj,transformES2020:()=>mj,transformES2021:()=>hj,transformES5:()=>kj,transformESDecorators:()=>ij,transformESNext:()=>yj,transformGenerators:()=>wj,transformJsx:()=>Ij,transformLegacyDecorators:()=>rj,transformModule:()=>Wj,transformNamedEvaluation:()=>jG,transformNodeModule:()=>Uj,transformNodes:()=>pV,transformSystemModule:()=>Bj,transformTypeScript:()=>$G,transpile:()=>h2,transpileModule:()=>_2,transpileOptionValueCompilerOptions:()=>GP,tryAddToSet:()=>re,tryAndIgnoreErrors:()=>$Z,tryCast:()=>yt,tryDirectoryExists:()=>XZ,tryExtractTSExtension:()=>wE,tryFileExists:()=>JZ,tryGetClassExtendingExpressionWithTypeArguments:()=>_E,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>hE,tryGetDirectories:()=>KZ,tryGetExtensionFromPath:()=>bx,tryGetImportFromModuleSpecifier:()=>zg,tryGetJSDocSatisfiesTypeNode:()=>gA,tryGetModuleNameFromFile:()=>ML,tryGetModuleSpecifierFromDeclaration:()=>Fg,tryGetNativePerformanceHooks:()=>ir,tryGetPropertyAccessOrIdentifierToString:()=>AE,tryGetPropertyNameOfBindingOrAssignmentElement:()=>OL,tryGetSourceMappingURL:()=>SB,tryGetTextOfPropertyName:()=>s_,tryIOAndConsumeErrors:()=>YZ,tryParseJson:()=>GE,tryParsePattern:()=>fx,tryParsePatterns:()=>mx,tryParseRawSourceMap:()=>AB,tryReadDirectory:()=>qZ,tryReadFile:()=>kw,tryRemoveDirectoryPrefix:()=>WT,tryRemoveExtension:()=>dx,tryRemovePrefix:()=>pn,tryRemoveSuffix:()=>Zt,typeAcquisitionDeclarations:()=>UP,typeAliasNamePart:()=>JQ,typeDirectiveIsEqualTo:()=>Jf,typeKeywords:()=>XX,typeParameterNamePart:()=>XQ,typeToDisplayParts:()=>rZ,unchangedPollThresholds:()=>pi,unchangedTextChangeRange:()=>Hs,unescapeLeadingUnderscores:()=>Ll,unmangleScopedPackageName:()=>IW,unorderedRemoveItem:()=>on,unorderedRemoveItemAt:()=>rn,unreachableCodeIsError:()=>TT,unusedLabelIsError:()=>xT,unwrapInnermostStatementOfLabel:()=>nh,updateErrorForNoInputFiles:()=>uO,updateLanguageServiceSourceFile:()=>E7,updateMissingFilePathsWatch:()=>nU,updateResolutionField:()=>oF,updateSharedExtendedConfigFileWatcher:()=>ZV,updateSourceFile:()=>pP,updateWatchingWildcardDirectories:()=>rU,usesExtensionsOnImports:()=>ox,usingSingleLineStringWriter:()=>Gf,utf16EncodeAsString:()=>Us,validateLocaleAndSetLanguage:()=>Il,valuesHelper:()=>_R,version:()=>t,versionMajorMinor:()=>e,visitArray:()=>iB,visitCommaListElements:()=>pB,visitEachChild:()=>fB,visitFunctionBody:()=>dB,visitIterationBody:()=>uB,visitLexicalEnvironment:()=>sB,visitNode:()=>rB,visitNodes:()=>oB,visitParameterList:()=>lB,walkUpBindingElementsAndPatterns:()=>bl,walkUpLexicalEnvironments:()=>dG,walkUpOuterExpressions:()=>SL,walkUpParenthesizedExpressions:()=>by,walkUpParenthesizedTypes:()=>vy,walkUpParenthesizedTypesAndGetParentAndChild:()=>Ey,whitespaceOrMapCommentRegExp:()=>gB,writeCommentRange:()=>wb,writeFile:()=>db,writeFileEnsuringDirectories:()=>pb,zipWith:()=>D});var Zbe,eEe,tEe=b({"src/typescript/_namespaces/ts.ts"(){JJ(),UX(),Tge(),Xbe(),Ybe()}});return(Zbe={"src/typescript/typescript.ts"(e,t){tEe(),tEe(),"undefined"!==typeof console&&(In.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:case 4:return console.log(t)}}}),t.exports=Qbe}},function(){return eEe||(0,Zbe[v(Zbe)[0]])((eEe={exports:{}}).exports,eEe),eEe.exports})()})();"undefined"!==typeof d&&d.exports&&(d.exports=u);var p=u.createClassifier,f=u.createLanguageService,m=u.displayPartsToString,_=u.EndOfLineState,h=u.flattenDiagnosticMessageText,g=u.IndentStyle,y=u.ScriptKind,v=u.ScriptTarget,b=u.TokenClass,E=u,S={};function T(e){return"string"===typeof e?!!/^file:\/\/\//.test(e)&&!!S[e.substr(8)]:0===e.path.indexOf("/lib.")&&!!S[e.path.slice(1)]}S["lib.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es5" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n',S["lib.decorators.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/**\n * The decorator context types provided to class element decorators.\n */\ntype ClassMemberDecoratorContext =\n | ClassMethodDecoratorContext\n | ClassGetterDecoratorContext\n | ClassSetterDecoratorContext\n | ClassFieldDecoratorContext\n | ClassAccessorDecoratorContext;\n\n/**\n * The decorator context types provided to any decorator.\n */\ntype DecoratorContext =\n | ClassDecoratorContext\n | ClassMemberDecoratorContext;\n\ntype DecoratorMetadataObject = Record<PropertyKey, unknown> & object;\n\ntype DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined;\n\n/**\n * Context provided to a class decorator.\n * @template Class The type of the decorated class associated with this context.\n */\ninterface ClassDecoratorContext<\n Class extends abstract new (...args: any) => any = abstract new (...args: any) => any,\n> {\n /** The kind of element that was decorated. */\n readonly kind: "class";\n\n /** The name of the decorated class. */\n readonly name: string | undefined;\n\n /**\n * Adds a callback to be invoked after the class definition has been finalized.\n *\n * @example\n * ```ts\n * function customElement(name: string): ClassDecoratorFunction {\n * return (target, context) => {\n * context.addInitializer(function () {\n * customElements.define(name, this);\n * });\n * }\n * }\n *\n * @customElement("my-element")\n * class MyElement {}\n * ```\n */\n addInitializer(initializer: (this: Class) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Context provided to a class method decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of the decorated class method.\n */\ninterface ClassMethodDecoratorContext<\n This = unknown,\n Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "method";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n /**\n * Gets the current value of the method from the provided object.\n *\n * @example\n * let fn = context.access.get(instance);\n */\n get(object: This): Value;\n };\n\n /**\n * Adds a callback to be invoked either before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * decorating a non-`static` element).\n *\n * @example\n * ```ts\n * const bound: ClassMethodDecoratorFunction = (value, context) {\n * if (context.private) throw new TypeError("Not supported on private methods.");\n * context.addInitializer(function () {\n * this[context.name] = this[context.name].bind(this);\n * });\n * }\n *\n * class C {\n * message = "Hello";\n *\n * @bound\n * m() {\n * console.log(this.message);\n * }\n * }\n * ```\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Context provided to a class getter decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The property type of the decorated class getter.\n */\ninterface ClassGetterDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "getter";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n /**\n * Invokes the getter on the provided object.\n *\n * @example\n * let value = context.access.get(instance);\n */\n get(object: This): Value;\n };\n\n /**\n * Adds a callback to be invoked either before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * decorating a non-`static` element).\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Context provided to a class setter decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of the decorated class setter.\n */\ninterface ClassSetterDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "setter";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n /**\n * Invokes the setter on the provided object.\n *\n * @example\n * context.access.set(instance, value);\n */\n set(object: This, value: Value): void;\n };\n\n /**\n * Adds a callback to be invoked either before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * decorating a non-`static` element).\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Context provided to a class `accessor` field decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of decorated class field.\n */\ninterface ClassAccessorDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "accessor";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n\n /**\n * Invokes the getter on the provided object.\n *\n * @example\n * let value = context.access.get(instance);\n */\n get(object: This): Value;\n\n /**\n * Invokes the setter on the provided object.\n *\n * @example\n * context.access.set(instance, value);\n */\n set(object: This, value: Value): void;\n };\n\n /**\n * Adds a callback to be invoked either before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * decorating a non-`static` element).\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Describes the target provided to class `accessor` field decorators.\n * @template This The `this` type to which the target applies.\n * @template Value The property type for the class `accessor` field.\n */\ninterface ClassAccessorDecoratorTarget<This, Value> {\n /**\n * Invokes the getter that was defined prior to decorator application.\n *\n * @example\n * let value = target.get.call(instance);\n */\n get(this: This): Value;\n\n /**\n * Invokes the setter that was defined prior to decorator application.\n *\n * @example\n * target.set.call(instance, value);\n */\n set(this: This, value: Value): void;\n}\n\n/**\n * Describes the allowed return value from a class `accessor` field decorator.\n * @template This The `this` type to which the target applies.\n * @template Value The property type for the class `accessor` field.\n */\ninterface ClassAccessorDecoratorResult<This, Value> {\n /**\n * An optional replacement getter function. If not provided, the existing getter function is used instead.\n */\n get?(this: This): Value;\n\n /**\n * An optional replacement setter function. If not provided, the existing setter function is used instead.\n */\n set?(this: This, value: Value): void;\n\n /**\n * An optional initializer mutator that is invoked when the underlying field initializer is evaluated.\n * @param value The incoming initializer value.\n * @returns The replacement initializer value.\n */\n init?(this: This, value: Value): Value;\n}\n\n/**\n * Context provided to a class field decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of the decorated class field.\n */\ninterface ClassFieldDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: "field";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n\n /**\n * Gets the value of the field on the provided object.\n */\n get(object: This): Value;\n\n /**\n * Sets the value of the field on the provided object.\n */\n set(object: This, value: Value): void;\n };\n\n /**\n * Adds a callback to be invoked either before static initializers are run (when\n * decorating a `static` element), or before instance initializers are run (when\n * decorating a non-`static` element).\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n',S["lib.decorators.legacy.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;\ndeclare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;\ndeclare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;\ndeclare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void;\n',S["lib.dom.asynciterable.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Window Async Iterable APIs\n/////////////////////////////\n\ninterface FileSystemDirectoryHandle {\n [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;\n entries(): AsyncIterableIterator<[string, FileSystemHandle]>;\n keys(): AsyncIterableIterator<string>;\n values(): AsyncIterableIterator<FileSystemHandle>;\n}\n',S["lib.dom.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Window APIs\n/////////////////////////////\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n signal?: AbortSignal;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: BufferSource;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: BufferSource;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: BufferSource;\n iv: BufferSource;\n tagLength?: number;\n}\n\ninterface AesKeyAlgorithm extends KeyAlgorithm {\n length: number;\n}\n\ninterface AesKeyGenParams extends Algorithm {\n length: number;\n}\n\ninterface Algorithm {\n name: string;\n}\n\ninterface AnalyserOptions extends AudioNodeOptions {\n fftSize?: number;\n maxDecibels?: number;\n minDecibels?: number;\n smoothingTimeConstant?: number;\n}\n\ninterface AnimationEventInit extends EventInit {\n animationName?: string;\n elapsedTime?: number;\n pseudoElement?: string;\n}\n\ninterface AnimationPlaybackEventInit extends EventInit {\n currentTime?: CSSNumberish | null;\n timelineTime?: CSSNumberish | null;\n}\n\ninterface AssignedNodesOptions {\n flatten?: boolean;\n}\n\ninterface AudioBufferOptions {\n length: number;\n numberOfChannels?: number;\n sampleRate: number;\n}\n\ninterface AudioBufferSourceOptions {\n buffer?: AudioBuffer | null;\n detune?: number;\n loop?: boolean;\n loopEnd?: number;\n loopStart?: number;\n playbackRate?: number;\n}\n\ninterface AudioConfiguration {\n bitrate?: number;\n channels?: string;\n contentType: string;\n samplerate?: number;\n spatialRendering?: boolean;\n}\n\ninterface AudioContextOptions {\n latencyHint?: AudioContextLatencyCategory | number;\n sampleRate?: number;\n}\n\ninterface AudioNodeOptions {\n channelCount?: number;\n channelCountMode?: ChannelCountMode;\n channelInterpretation?: ChannelInterpretation;\n}\n\ninterface AudioProcessingEventInit extends EventInit {\n inputBuffer: AudioBuffer;\n outputBuffer: AudioBuffer;\n playbackTime: number;\n}\n\ninterface AudioTimestamp {\n contextTime?: number;\n performanceTime?: DOMHighResTimeStamp;\n}\n\ninterface AudioWorkletNodeOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n numberOfOutputs?: number;\n outputChannelCount?: number[];\n parameterData?: Record<string, number>;\n processorOptions?: any;\n}\n\ninterface AuthenticationExtensionsClientInputs {\n appid?: string;\n credProps?: boolean;\n hmacCreateSecret?: boolean;\n minPinLength?: boolean;\n}\n\ninterface AuthenticationExtensionsClientOutputs {\n appid?: boolean;\n credProps?: CredentialPropertiesOutput;\n hmacCreateSecret?: boolean;\n}\n\ninterface AuthenticatorSelectionCriteria {\n authenticatorAttachment?: AuthenticatorAttachment;\n requireResidentKey?: boolean;\n residentKey?: ResidentKeyRequirement;\n userVerification?: UserVerificationRequirement;\n}\n\ninterface AvcEncoderConfig {\n format?: AvcBitstreamFormat;\n}\n\ninterface BiquadFilterOptions extends AudioNodeOptions {\n Q?: number;\n detune?: number;\n frequency?: number;\n gain?: number;\n type?: BiquadFilterType;\n}\n\ninterface BlobEventInit {\n data: Blob;\n timecode?: DOMHighResTimeStamp;\n}\n\ninterface BlobPropertyBag {\n endings?: EndingType;\n type?: string;\n}\n\ninterface CSSMatrixComponentOptions {\n is2D?: boolean;\n}\n\ninterface CSSNumericType {\n angle?: number;\n flex?: number;\n frequency?: number;\n length?: number;\n percent?: number;\n percentHint?: CSSNumericBaseType;\n resolution?: number;\n time?: number;\n}\n\ninterface CSSStyleSheetInit {\n baseURL?: string;\n disabled?: boolean;\n media?: MediaList | string;\n}\n\ninterface CacheQueryOptions {\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface CanvasRenderingContext2DSettings {\n alpha?: boolean;\n colorSpace?: PredefinedColorSpace;\n desynchronized?: boolean;\n willReadFrequently?: boolean;\n}\n\ninterface ChannelMergerOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n}\n\ninterface ChannelSplitterOptions extends AudioNodeOptions {\n numberOfOutputs?: number;\n}\n\ninterface CheckVisibilityOptions {\n checkOpacity?: boolean;\n checkVisibilityCSS?: boolean;\n}\n\ninterface ClientQueryOptions {\n includeUncontrolled?: boolean;\n type?: ClientTypes;\n}\n\ninterface ClipboardEventInit extends EventInit {\n clipboardData?: DataTransfer | null;\n}\n\ninterface ClipboardItemOptions {\n presentationStyle?: PresentationStyle;\n}\n\ninterface CloseEventInit extends EventInit {\n code?: number;\n reason?: string;\n wasClean?: boolean;\n}\n\ninterface CompositionEventInit extends UIEventInit {\n data?: string;\n}\n\ninterface ComputedEffectTiming extends EffectTiming {\n activeDuration?: CSSNumberish;\n currentIteration?: number | null;\n endTime?: CSSNumberish;\n localTime?: CSSNumberish | null;\n progress?: number | null;\n startTime?: CSSNumberish;\n}\n\ninterface ComputedKeyframe {\n composite: CompositeOperationOrAuto;\n computedOffset: number;\n easing: string;\n offset: number | null;\n [property: string]: string | number | null | undefined;\n}\n\ninterface ConstantSourceOptions {\n offset?: number;\n}\n\ninterface ConstrainBooleanParameters {\n exact?: boolean;\n ideal?: boolean;\n}\n\ninterface ConstrainDOMStringParameters {\n exact?: string | string[];\n ideal?: string | string[];\n}\n\ninterface ConstrainDoubleRange extends DoubleRange {\n exact?: number;\n ideal?: number;\n}\n\ninterface ConstrainULongRange extends ULongRange {\n exact?: number;\n ideal?: number;\n}\n\ninterface ConvolverOptions extends AudioNodeOptions {\n buffer?: AudioBuffer | null;\n disableNormalization?: boolean;\n}\n\ninterface CredentialCreationOptions {\n publicKey?: PublicKeyCredentialCreationOptions;\n signal?: AbortSignal;\n}\n\ninterface CredentialPropertiesOutput {\n rk?: boolean;\n}\n\ninterface CredentialRequestOptions {\n mediation?: CredentialMediationRequirement;\n publicKey?: PublicKeyCredentialRequestOptions;\n signal?: AbortSignal;\n}\n\ninterface CryptoKeyPair {\n privateKey: CryptoKey;\n publicKey: CryptoKey;\n}\n\ninterface CustomEventInit<T = any> extends EventInit {\n detail?: T;\n}\n\ninterface DOMMatrix2DInit {\n a?: number;\n b?: number;\n c?: number;\n d?: number;\n e?: number;\n f?: number;\n m11?: number;\n m12?: number;\n m21?: number;\n m22?: number;\n m41?: number;\n m42?: number;\n}\n\ninterface DOMMatrixInit extends DOMMatrix2DInit {\n is2D?: boolean;\n m13?: number;\n m14?: number;\n m23?: number;\n m24?: number;\n m31?: number;\n m32?: number;\n m33?: number;\n m34?: number;\n m43?: number;\n m44?: number;\n}\n\ninterface DOMPointInit {\n w?: number;\n x?: number;\n y?: number;\n z?: number;\n}\n\ninterface DOMQuadInit {\n p1?: DOMPointInit;\n p2?: DOMPointInit;\n p3?: DOMPointInit;\n p4?: DOMPointInit;\n}\n\ninterface DOMRectInit {\n height?: number;\n width?: number;\n x?: number;\n y?: number;\n}\n\ninterface DelayOptions extends AudioNodeOptions {\n delayTime?: number;\n maxDelayTime?: number;\n}\n\ninterface DeviceMotionEventAccelerationInit {\n x?: number | null;\n y?: number | null;\n z?: number | null;\n}\n\ninterface DeviceMotionEventInit extends EventInit {\n acceleration?: DeviceMotionEventAccelerationInit;\n accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;\n interval?: number;\n rotationRate?: DeviceMotionEventRotationRateInit;\n}\n\ninterface DeviceMotionEventRotationRateInit {\n alpha?: number | null;\n beta?: number | null;\n gamma?: number | null;\n}\n\ninterface DeviceOrientationEventInit extends EventInit {\n absolute?: boolean;\n alpha?: number | null;\n beta?: number | null;\n gamma?: number | null;\n}\n\ninterface DisplayMediaStreamOptions {\n audio?: boolean | MediaTrackConstraints;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface DocumentTimelineOptions {\n originTime?: DOMHighResTimeStamp;\n}\n\ninterface DoubleRange {\n max?: number;\n min?: number;\n}\n\ninterface DragEventInit extends MouseEventInit {\n dataTransfer?: DataTransfer | null;\n}\n\ninterface DynamicsCompressorOptions extends AudioNodeOptions {\n attack?: number;\n knee?: number;\n ratio?: number;\n release?: number;\n threshold?: number;\n}\n\ninterface EcKeyAlgorithm extends KeyAlgorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface EffectTiming {\n delay?: number;\n direction?: PlaybackDirection;\n duration?: number | CSSNumericValue | string;\n easing?: string;\n endDelay?: number;\n fill?: FillMode;\n iterationStart?: number;\n iterations?: number;\n playbackRate?: number;\n}\n\ninterface ElementCreationOptions {\n is?: string;\n}\n\ninterface ElementDefinitionOptions {\n extends?: string;\n}\n\ninterface EncodedVideoChunkInit {\n data: AllowSharedBufferSource;\n duration?: number;\n timestamp: number;\n type: EncodedVideoChunkType;\n}\n\ninterface EncodedVideoChunkMetadata {\n decoderConfig?: VideoDecoderConfig;\n}\n\ninterface ErrorEventInit extends EventInit {\n colno?: number;\n error?: any;\n filename?: string;\n lineno?: number;\n message?: string;\n}\n\ninterface EventInit {\n bubbles?: boolean;\n cancelable?: boolean;\n composed?: boolean;\n}\n\ninterface EventListenerOptions {\n capture?: boolean;\n}\n\ninterface EventModifierInit extends UIEventInit {\n altKey?: boolean;\n ctrlKey?: boolean;\n metaKey?: boolean;\n modifierAltGraph?: boolean;\n modifierCapsLock?: boolean;\n modifierFn?: boolean;\n modifierFnLock?: boolean;\n modifierHyper?: boolean;\n modifierNumLock?: boolean;\n modifierScrollLock?: boolean;\n modifierSuper?: boolean;\n modifierSymbol?: boolean;\n modifierSymbolLock?: boolean;\n shiftKey?: boolean;\n}\n\ninterface EventSourceInit {\n withCredentials?: boolean;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FileSystemCreateWritableOptions {\n keepExistingData?: boolean;\n}\n\ninterface FileSystemFlags {\n create?: boolean;\n exclusive?: boolean;\n}\n\ninterface FileSystemGetDirectoryOptions {\n create?: boolean;\n}\n\ninterface FileSystemGetFileOptions {\n create?: boolean;\n}\n\ninterface FileSystemRemoveOptions {\n recursive?: boolean;\n}\n\ninterface FocusEventInit extends UIEventInit {\n relatedTarget?: EventTarget | null;\n}\n\ninterface FocusOptions {\n preventScroll?: boolean;\n}\n\ninterface FontFaceDescriptors {\n ascentOverride?: string;\n descentOverride?: string;\n display?: FontDisplay;\n featureSettings?: string;\n lineGapOverride?: string;\n stretch?: string;\n style?: string;\n unicodeRange?: string;\n weight?: string;\n}\n\ninterface FontFaceSetLoadEventInit extends EventInit {\n fontfaces?: FontFace[];\n}\n\ninterface FormDataEventInit extends EventInit {\n formData: FormData;\n}\n\ninterface FullscreenOptions {\n navigationUI?: FullscreenNavigationUI;\n}\n\ninterface GainOptions extends AudioNodeOptions {\n gain?: number;\n}\n\ninterface GamepadEffectParameters {\n duration?: number;\n startDelay?: number;\n strongMagnitude?: number;\n weakMagnitude?: number;\n}\n\ninterface GamepadEventInit extends EventInit {\n gamepad: Gamepad;\n}\n\ninterface GetAnimationsOptions {\n subtree?: boolean;\n}\n\ninterface GetNotificationOptions {\n tag?: string;\n}\n\ninterface GetRootNodeOptions {\n composed?: boolean;\n}\n\ninterface HashChangeEventInit extends EventInit {\n newURL?: string;\n oldURL?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n info: BufferSource;\n salt: BufferSource;\n}\n\ninterface HmacImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface HmacKeyAlgorithm extends KeyAlgorithm {\n hash: KeyAlgorithm;\n length: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface IDBDatabaseInfo {\n name?: string;\n version?: number;\n}\n\ninterface IDBIndexParameters {\n multiEntry?: boolean;\n unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n autoIncrement?: boolean;\n keyPath?: string | string[] | null;\n}\n\ninterface IDBTransactionOptions {\n durability?: IDBTransactionDurability;\n}\n\ninterface IDBVersionChangeEventInit extends EventInit {\n newVersion?: number | null;\n oldVersion?: number;\n}\n\ninterface IIRFilterOptions extends AudioNodeOptions {\n feedback: number[];\n feedforward: number[];\n}\n\ninterface IdleRequestOptions {\n timeout?: number;\n}\n\ninterface ImageBitmapOptions {\n colorSpaceConversion?: ColorSpaceConversion;\n imageOrientation?: ImageOrientation;\n premultiplyAlpha?: PremultiplyAlpha;\n resizeHeight?: number;\n resizeQuality?: ResizeQuality;\n resizeWidth?: number;\n}\n\ninterface ImageBitmapRenderingContextSettings {\n alpha?: boolean;\n}\n\ninterface ImageDataSettings {\n colorSpace?: PredefinedColorSpace;\n}\n\ninterface ImageEncodeOptions {\n quality?: number;\n type?: string;\n}\n\ninterface ImportMeta {\n url: string;\n}\n\ninterface InputEventInit extends UIEventInit {\n data?: string | null;\n dataTransfer?: DataTransfer | null;\n inputType?: string;\n isComposing?: boolean;\n targetRanges?: StaticRange[];\n}\n\ninterface IntersectionObserverEntryInit {\n boundingClientRect: DOMRectInit;\n intersectionRatio: number;\n intersectionRect: DOMRectInit;\n isIntersecting: boolean;\n rootBounds: DOMRectInit | null;\n target: Element;\n time: DOMHighResTimeStamp;\n}\n\ninterface IntersectionObserverInit {\n root?: Element | Document | null;\n rootMargin?: string;\n threshold?: number | number[];\n}\n\ninterface JsonWebKey {\n alg?: string;\n crv?: string;\n d?: string;\n dp?: string;\n dq?: string;\n e?: string;\n ext?: boolean;\n k?: string;\n key_ops?: string[];\n kty?: string;\n n?: string;\n oth?: RsaOtherPrimesInfo[];\n p?: string;\n q?: string;\n qi?: string;\n use?: string;\n x?: string;\n y?: string;\n}\n\ninterface KeyAlgorithm {\n name: string;\n}\n\ninterface KeyboardEventInit extends EventModifierInit {\n /** @deprecated */\n charCode?: number;\n code?: string;\n isComposing?: boolean;\n key?: string;\n /** @deprecated */\n keyCode?: number;\n location?: number;\n repeat?: boolean;\n}\n\ninterface Keyframe {\n composite?: CompositeOperationOrAuto;\n easing?: string;\n offset?: number | null;\n [property: string]: string | number | null | undefined;\n}\n\ninterface KeyframeAnimationOptions extends KeyframeEffectOptions {\n id?: string;\n timeline?: AnimationTimeline | null;\n}\n\ninterface KeyframeEffectOptions extends EffectTiming {\n composite?: CompositeOperation;\n iterationComposite?: IterationCompositeOperation;\n pseudoElement?: string | null;\n}\n\ninterface LockInfo {\n clientId?: string;\n mode?: LockMode;\n name?: string;\n}\n\ninterface LockManagerSnapshot {\n held?: LockInfo[];\n pending?: LockInfo[];\n}\n\ninterface LockOptions {\n ifAvailable?: boolean;\n mode?: LockMode;\n signal?: AbortSignal;\n steal?: boolean;\n}\n\ninterface MIDIConnectionEventInit extends EventInit {\n port?: MIDIPort;\n}\n\ninterface MIDIMessageEventInit extends EventInit {\n data?: Uint8Array;\n}\n\ninterface MIDIOptions {\n software?: boolean;\n sysex?: boolean;\n}\n\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaDecodingConfiguration;\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaEncodingConfiguration;\n}\n\ninterface MediaCapabilitiesInfo {\n powerEfficient: boolean;\n smooth: boolean;\n supported: boolean;\n}\n\ninterface MediaConfiguration {\n audio?: AudioConfiguration;\n video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\n type: MediaDecodingType;\n}\n\ninterface MediaElementAudioSourceOptions {\n mediaElement: HTMLMediaElement;\n}\n\ninterface MediaEncodingConfiguration extends MediaConfiguration {\n type: MediaEncodingType;\n}\n\ninterface MediaEncryptedEventInit extends EventInit {\n initData?: ArrayBuffer | null;\n initDataType?: string;\n}\n\ninterface MediaImage {\n sizes?: string;\n src: string;\n type?: string;\n}\n\ninterface MediaKeyMessageEventInit extends EventInit {\n message: ArrayBuffer;\n messageType: MediaKeyMessageType;\n}\n\ninterface MediaKeySystemConfiguration {\n audioCapabilities?: MediaKeySystemMediaCapability[];\n distinctiveIdentifier?: MediaKeysRequirement;\n initDataTypes?: string[];\n label?: string;\n persistentState?: MediaKeysRequirement;\n sessionTypes?: string[];\n videoCapabilities?: MediaKeySystemMediaCapability[];\n}\n\ninterface MediaKeySystemMediaCapability {\n contentType?: string;\n encryptionScheme?: string | null;\n robustness?: string;\n}\n\ninterface MediaMetadataInit {\n album?: string;\n artist?: string;\n artwork?: MediaImage[];\n title?: string;\n}\n\ninterface MediaPositionState {\n duration?: number;\n playbackRate?: number;\n position?: number;\n}\n\ninterface MediaQueryListEventInit extends EventInit {\n matches?: boolean;\n media?: string;\n}\n\ninterface MediaRecorderOptions {\n audioBitsPerSecond?: number;\n bitsPerSecond?: number;\n mimeType?: string;\n videoBitsPerSecond?: number;\n}\n\ninterface MediaSessionActionDetails {\n action: MediaSessionAction;\n fastSeek?: boolean;\n seekOffset?: number;\n seekTime?: number;\n}\n\ninterface MediaStreamAudioSourceOptions {\n mediaStream: MediaStream;\n}\n\ninterface MediaStreamConstraints {\n audio?: boolean | MediaTrackConstraints;\n peerIdentity?: string;\n preferCurrentTab?: boolean;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface MediaStreamTrackEventInit extends EventInit {\n track: MediaStreamTrack;\n}\n\ninterface MediaTrackCapabilities {\n aspectRatio?: DoubleRange;\n autoGainControl?: boolean[];\n channelCount?: ULongRange;\n deviceId?: string;\n displaySurface?: string;\n echoCancellation?: boolean[];\n facingMode?: string[];\n frameRate?: DoubleRange;\n groupId?: string;\n height?: ULongRange;\n noiseSuppression?: boolean[];\n sampleRate?: ULongRange;\n sampleSize?: ULongRange;\n width?: ULongRange;\n}\n\ninterface MediaTrackConstraintSet {\n aspectRatio?: ConstrainDouble;\n autoGainControl?: ConstrainBoolean;\n channelCount?: ConstrainULong;\n deviceId?: ConstrainDOMString;\n displaySurface?: ConstrainDOMString;\n echoCancellation?: ConstrainBoolean;\n facingMode?: ConstrainDOMString;\n frameRate?: ConstrainDouble;\n groupId?: ConstrainDOMString;\n height?: ConstrainULong;\n noiseSuppression?: ConstrainBoolean;\n sampleRate?: ConstrainULong;\n sampleSize?: ConstrainULong;\n width?: ConstrainULong;\n}\n\ninterface MediaTrackConstraints extends MediaTrackConstraintSet {\n advanced?: MediaTrackConstraintSet[];\n}\n\ninterface MediaTrackSettings {\n aspectRatio?: number;\n autoGainControl?: boolean;\n channelCount?: number;\n deviceId?: string;\n displaySurface?: string;\n echoCancellation?: boolean;\n facingMode?: string;\n frameRate?: number;\n groupId?: string;\n height?: number;\n noiseSuppression?: boolean;\n sampleRate?: number;\n sampleSize?: number;\n width?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n aspectRatio?: boolean;\n autoGainControl?: boolean;\n channelCount?: boolean;\n deviceId?: boolean;\n displaySurface?: boolean;\n echoCancellation?: boolean;\n facingMode?: boolean;\n frameRate?: boolean;\n groupId?: boolean;\n height?: boolean;\n noiseSuppression?: boolean;\n sampleRate?: boolean;\n sampleSize?: boolean;\n width?: boolean;\n}\n\ninterface MessageEventInit<T = any> extends EventInit {\n data?: T;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: MessageEventSource | null;\n}\n\ninterface MouseEventInit extends EventModifierInit {\n button?: number;\n buttons?: number;\n clientX?: number;\n clientY?: number;\n movementX?: number;\n movementY?: number;\n relatedTarget?: EventTarget | null;\n screenX?: number;\n screenY?: number;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n cacheName?: string;\n}\n\ninterface MutationObserverInit {\n /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */\n attributeFilter?: string[];\n /** Set to true if attributes is true or omitted and target\'s attribute value before the mutation needs to be recorded. */\n attributeOldValue?: boolean;\n /** Set to true if mutations to target\'s attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */\n attributes?: boolean;\n /** Set to true if mutations to target\'s data are to be observed. Can be omitted if characterDataOldValue is specified. */\n characterData?: boolean;\n /** Set to true if characterData is set to true or omitted and target\'s data before the mutation needs to be recorded. */\n characterDataOldValue?: boolean;\n /** Set to true if mutations to target\'s children are to be observed. */\n childList?: boolean;\n /** Set to true if mutations to not just target, but also target\'s descendants are to be observed. */\n subtree?: boolean;\n}\n\ninterface NavigationPreloadState {\n enabled?: boolean;\n headerValue?: string;\n}\n\ninterface NotificationOptions {\n badge?: string;\n body?: string;\n data?: any;\n dir?: NotificationDirection;\n icon?: string;\n lang?: string;\n requireInteraction?: boolean;\n silent?: boolean | null;\n tag?: string;\n}\n\ninterface OfflineAudioCompletionEventInit extends EventInit {\n renderedBuffer: AudioBuffer;\n}\n\ninterface OfflineAudioContextOptions {\n length: number;\n numberOfChannels?: number;\n sampleRate: number;\n}\n\ninterface OptionalEffectTiming {\n delay?: number;\n direction?: PlaybackDirection;\n duration?: number | string;\n easing?: string;\n endDelay?: number;\n fill?: FillMode;\n iterationStart?: number;\n iterations?: number;\n playbackRate?: number;\n}\n\ninterface OscillatorOptions extends AudioNodeOptions {\n detune?: number;\n frequency?: number;\n periodicWave?: PeriodicWave;\n type?: OscillatorType;\n}\n\ninterface PageTransitionEventInit extends EventInit {\n persisted?: boolean;\n}\n\ninterface PannerOptions extends AudioNodeOptions {\n coneInnerAngle?: number;\n coneOuterAngle?: number;\n coneOuterGain?: number;\n distanceModel?: DistanceModelType;\n maxDistance?: number;\n orientationX?: number;\n orientationY?: number;\n orientationZ?: number;\n panningModel?: PanningModelType;\n positionX?: number;\n positionY?: number;\n positionZ?: number;\n refDistance?: number;\n rolloffFactor?: number;\n}\n\ninterface PaymentCurrencyAmount {\n currency: string;\n value: string;\n}\n\ninterface PaymentDetailsBase {\n displayItems?: PaymentItem[];\n modifiers?: PaymentDetailsModifier[];\n}\n\ninterface PaymentDetailsInit extends PaymentDetailsBase {\n id?: string;\n total: PaymentItem;\n}\n\ninterface PaymentDetailsModifier {\n additionalDisplayItems?: PaymentItem[];\n data?: any;\n supportedMethods: string;\n total?: PaymentItem;\n}\n\ninterface PaymentDetailsUpdate extends PaymentDetailsBase {\n paymentMethodErrors?: any;\n total?: PaymentItem;\n}\n\ninterface PaymentItem {\n amount: PaymentCurrencyAmount;\n label: string;\n pending?: boolean;\n}\n\ninterface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {\n methodDetails?: any;\n methodName?: string;\n}\n\ninterface PaymentMethodData {\n data?: any;\n supportedMethods: string;\n}\n\ninterface PaymentRequestUpdateEventInit extends EventInit {\n}\n\ninterface PaymentValidationErrors {\n error?: string;\n paymentMethod?: any;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: HashAlgorithmIdentifier;\n iterations: number;\n salt: BufferSource;\n}\n\ninterface PerformanceMarkOptions {\n detail?: any;\n startTime?: DOMHighResTimeStamp;\n}\n\ninterface PerformanceMeasureOptions {\n detail?: any;\n duration?: DOMHighResTimeStamp;\n end?: string | DOMHighResTimeStamp;\n start?: string | DOMHighResTimeStamp;\n}\n\ninterface PerformanceObserverInit {\n buffered?: boolean;\n entryTypes?: string[];\n type?: string;\n}\n\ninterface PeriodicWaveConstraints {\n disableNormalization?: boolean;\n}\n\ninterface PeriodicWaveOptions extends PeriodicWaveConstraints {\n imag?: number[] | Float32Array;\n real?: number[] | Float32Array;\n}\n\ninterface PermissionDescriptor {\n name: PermissionName;\n}\n\ninterface PictureInPictureEventInit extends EventInit {\n pictureInPictureWindow: PictureInPictureWindow;\n}\n\ninterface PlaneLayout {\n offset: number;\n stride: number;\n}\n\ninterface PointerEventInit extends MouseEventInit {\n coalescedEvents?: PointerEvent[];\n height?: number;\n isPrimary?: boolean;\n pointerId?: number;\n pointerType?: string;\n predictedEvents?: PointerEvent[];\n pressure?: number;\n tangentialPressure?: number;\n tiltX?: number;\n tiltY?: number;\n twist?: number;\n width?: number;\n}\n\ninterface PopStateEventInit extends EventInit {\n state?: any;\n}\n\ninterface PositionOptions {\n enableHighAccuracy?: boolean;\n maximumAge?: number;\n timeout?: number;\n}\n\ninterface ProgressEventInit extends EventInit {\n lengthComputable?: boolean;\n loaded?: number;\n total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n promise: Promise<any>;\n reason?: any;\n}\n\ninterface PropertyDefinition {\n inherits: boolean;\n initialValue?: string;\n name: string;\n syntax?: string;\n}\n\ninterface PropertyIndexedKeyframes {\n composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];\n easing?: string | string[];\n offset?: number | (number | null)[];\n [property: string]: string | string[] | number | null | (number | null)[] | undefined;\n}\n\ninterface PublicKeyCredentialCreationOptions {\n attestation?: AttestationConveyancePreference;\n authenticatorSelection?: AuthenticatorSelectionCriteria;\n challenge: BufferSource;\n excludeCredentials?: PublicKeyCredentialDescriptor[];\n extensions?: AuthenticationExtensionsClientInputs;\n pubKeyCredParams: PublicKeyCredentialParameters[];\n rp: PublicKeyCredentialRpEntity;\n timeout?: number;\n user: PublicKeyCredentialUserEntity;\n}\n\ninterface PublicKeyCredentialDescriptor {\n id: BufferSource;\n transports?: AuthenticatorTransport[];\n type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialEntity {\n name: string;\n}\n\ninterface PublicKeyCredentialParameters {\n alg: COSEAlgorithmIdentifier;\n type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialRequestOptions {\n allowCredentials?: PublicKeyCredentialDescriptor[];\n challenge: BufferSource;\n extensions?: AuthenticationExtensionsClientInputs;\n rpId?: string;\n timeout?: number;\n userVerification?: UserVerificationRequirement;\n}\n\ninterface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {\n id?: string;\n}\n\ninterface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {\n displayName: string;\n id: BufferSource;\n}\n\ninterface PushSubscriptionJSON {\n endpoint?: string;\n expirationTime?: EpochTimeStamp | null;\n keys?: Record<string, string>;\n}\n\ninterface PushSubscriptionOptionsInit {\n applicationServerKey?: BufferSource | string | null;\n userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy<T = any> {\n highWaterMark?: number;\n size?: QueuingStrategySize<T>;\n}\n\ninterface QueuingStrategyInit {\n /**\n * Creates a new ByteLengthQueuingStrategy with the provided high water mark.\n *\n * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.\n */\n highWaterMark: number;\n}\n\ninterface RTCAnswerOptions extends RTCOfferAnswerOptions {\n}\n\ninterface RTCCertificateExpiration {\n expires?: number;\n}\n\ninterface RTCConfiguration {\n bundlePolicy?: RTCBundlePolicy;\n certificates?: RTCCertificate[];\n iceCandidatePoolSize?: number;\n iceServers?: RTCIceServer[];\n iceTransportPolicy?: RTCIceTransportPolicy;\n rtcpMuxPolicy?: RTCRtcpMuxPolicy;\n}\n\ninterface RTCDTMFToneChangeEventInit extends EventInit {\n tone?: string;\n}\n\ninterface RTCDataChannelEventInit extends EventInit {\n channel: RTCDataChannel;\n}\n\ninterface RTCDataChannelInit {\n id?: number;\n maxPacketLifeTime?: number;\n maxRetransmits?: number;\n negotiated?: boolean;\n ordered?: boolean;\n protocol?: string;\n}\n\ninterface RTCDtlsFingerprint {\n algorithm?: string;\n value?: string;\n}\n\ninterface RTCEncodedAudioFrameMetadata {\n contributingSources?: number[];\n payloadType?: number;\n sequenceNumber?: number;\n synchronizationSource?: number;\n}\n\ninterface RTCEncodedVideoFrameMetadata {\n contributingSources?: number[];\n dependencies?: number[];\n frameId?: number;\n height?: number;\n payloadType?: number;\n spatialIndex?: number;\n synchronizationSource?: number;\n temporalIndex?: number;\n timestamp?: number;\n width?: number;\n}\n\ninterface RTCErrorEventInit extends EventInit {\n error: RTCError;\n}\n\ninterface RTCErrorInit {\n errorDetail: RTCErrorDetailType;\n httpRequestStatusCode?: number;\n receivedAlert?: number;\n sctpCauseCode?: number;\n sdpLineNumber?: number;\n sentAlert?: number;\n}\n\ninterface RTCIceCandidateInit {\n candidate?: string;\n sdpMLineIndex?: number | null;\n sdpMid?: string | null;\n usernameFragment?: string | null;\n}\n\ninterface RTCIceCandidatePair {\n local?: RTCIceCandidate;\n remote?: RTCIceCandidate;\n}\n\ninterface RTCIceCandidatePairStats extends RTCStats {\n availableIncomingBitrate?: number;\n availableOutgoingBitrate?: number;\n bytesReceived?: number;\n bytesSent?: number;\n currentRoundTripTime?: number;\n lastPacketReceivedTimestamp?: DOMHighResTimeStamp;\n lastPacketSentTimestamp?: DOMHighResTimeStamp;\n localCandidateId: string;\n nominated?: boolean;\n remoteCandidateId: string;\n requestsReceived?: number;\n requestsSent?: number;\n responsesReceived?: number;\n responsesSent?: number;\n state: RTCStatsIceCandidatePairState;\n totalRoundTripTime?: number;\n transportId: string;\n}\n\ninterface RTCIceServer {\n credential?: string;\n urls: string | string[];\n username?: string;\n}\n\ninterface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {\n audioLevel?: number;\n bytesReceived?: number;\n concealedSamples?: number;\n concealmentEvents?: number;\n decoderImplementation?: string;\n estimatedPlayoutTimestamp?: DOMHighResTimeStamp;\n fecPacketsDiscarded?: number;\n fecPacketsReceived?: number;\n firCount?: number;\n frameHeight?: number;\n frameWidth?: number;\n framesDecoded?: number;\n framesDropped?: number;\n framesPerSecond?: number;\n framesReceived?: number;\n headerBytesReceived?: number;\n insertedSamplesForDeceleration?: number;\n jitterBufferDelay?: number;\n jitterBufferEmittedCount?: number;\n keyFramesDecoded?: number;\n lastPacketReceivedTimestamp?: DOMHighResTimeStamp;\n mid?: string;\n nackCount?: number;\n packetsDiscarded?: number;\n pliCount?: number;\n qpSum?: number;\n remoteId?: string;\n removedSamplesForAcceleration?: number;\n silentConcealedSamples?: number;\n totalAudioEnergy?: number;\n totalDecodeTime?: number;\n totalInterFrameDelay?: number;\n totalProcessingDelay?: number;\n totalSamplesDuration?: number;\n totalSamplesReceived?: number;\n totalSquaredInterFrameDelay?: number;\n trackIdentifier: string;\n}\n\ninterface RTCLocalSessionDescriptionInit {\n sdp?: string;\n type?: RTCSdpType;\n}\n\ninterface RTCOfferAnswerOptions {\n}\n\ninterface RTCOfferOptions extends RTCOfferAnswerOptions {\n iceRestart?: boolean;\n offerToReceiveAudio?: boolean;\n offerToReceiveVideo?: boolean;\n}\n\ninterface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {\n firCount?: number;\n frameHeight?: number;\n frameWidth?: number;\n framesEncoded?: number;\n framesPerSecond?: number;\n framesSent?: number;\n headerBytesSent?: number;\n hugeFramesSent?: number;\n keyFramesEncoded?: number;\n mediaSourceId?: string;\n nackCount?: number;\n pliCount?: number;\n qpSum?: number;\n qualityLimitationResolutionChanges?: number;\n remoteId?: string;\n retransmittedBytesSent?: number;\n retransmittedPacketsSent?: number;\n rid?: string;\n rtxSsrc?: number;\n targetBitrate?: number;\n totalEncodeTime?: number;\n totalEncodedBytesTarget?: number;\n totalPacketSendDelay?: number;\n}\n\ninterface RTCPeerConnectionIceErrorEventInit extends EventInit {\n address?: string | null;\n errorCode: number;\n errorText?: string;\n port?: number | null;\n url?: string;\n}\n\ninterface RTCPeerConnectionIceEventInit extends EventInit {\n candidate?: RTCIceCandidate | null;\n url?: string | null;\n}\n\ninterface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {\n jitter?: number;\n packetsLost?: number;\n packetsReceived?: number;\n}\n\ninterface RTCRtcpParameters {\n cname?: string;\n reducedSize?: boolean;\n}\n\ninterface RTCRtpCapabilities {\n codecs: RTCRtpCodecCapability[];\n headerExtensions: RTCRtpHeaderExtensionCapability[];\n}\n\ninterface RTCRtpCodec {\n channels?: number;\n clockRate: number;\n mimeType: string;\n sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodecCapability extends RTCRtpCodec {\n}\n\ninterface RTCRtpCodecParameters extends RTCRtpCodec {\n payloadType: number;\n}\n\ninterface RTCRtpCodingParameters {\n rid?: string;\n}\n\ninterface RTCRtpContributingSource {\n audioLevel?: number;\n rtpTimestamp: number;\n source: number;\n timestamp: DOMHighResTimeStamp;\n}\n\ninterface RTCRtpEncodingParameters extends RTCRtpCodingParameters {\n active?: boolean;\n maxBitrate?: number;\n maxFramerate?: number;\n networkPriority?: RTCPriorityType;\n priority?: RTCPriorityType;\n scaleResolutionDownBy?: number;\n}\n\ninterface RTCRtpHeaderExtensionCapability {\n uri: string;\n}\n\ninterface RTCRtpHeaderExtensionParameters {\n encrypted?: boolean;\n id: number;\n uri: string;\n}\n\ninterface RTCRtpParameters {\n codecs: RTCRtpCodecParameters[];\n headerExtensions: RTCRtpHeaderExtensionParameters[];\n rtcp: RTCRtcpParameters;\n}\n\ninterface RTCRtpReceiveParameters extends RTCRtpParameters {\n}\n\ninterface RTCRtpSendParameters extends RTCRtpParameters {\n degradationPreference?: RTCDegradationPreference;\n encodings: RTCRtpEncodingParameters[];\n transactionId: string;\n}\n\ninterface RTCRtpStreamStats extends RTCStats {\n codecId?: string;\n kind: string;\n ssrc: number;\n transportId?: string;\n}\n\ninterface RTCRtpSynchronizationSource extends RTCRtpContributingSource {\n}\n\ninterface RTCRtpTransceiverInit {\n direction?: RTCRtpTransceiverDirection;\n sendEncodings?: RTCRtpEncodingParameters[];\n streams?: MediaStream[];\n}\n\ninterface RTCSentRtpStreamStats extends RTCRtpStreamStats {\n bytesSent?: number;\n packetsSent?: number;\n}\n\ninterface RTCSessionDescriptionInit {\n sdp?: string;\n type: RTCSdpType;\n}\n\ninterface RTCSetParameterOptions {\n}\n\ninterface RTCStats {\n id: string;\n timestamp: DOMHighResTimeStamp;\n type: RTCStatsType;\n}\n\ninterface RTCTrackEventInit extends EventInit {\n receiver: RTCRtpReceiver;\n streams?: MediaStream[];\n track: MediaStreamTrack;\n transceiver: RTCRtpTransceiver;\n}\n\ninterface RTCTransportStats extends RTCStats {\n bytesReceived?: number;\n bytesSent?: number;\n dtlsCipher?: string;\n dtlsState: RTCDtlsTransportState;\n localCertificateId?: string;\n remoteCertificateId?: string;\n selectedCandidatePairId?: string;\n srtpCipher?: string;\n tlsVersion?: string;\n}\n\ninterface ReadableStreamGetReaderOptions {\n /**\n * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.\n *\n * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.\n */\n mode?: ReadableStreamReaderMode;\n}\n\ninterface ReadableStreamReadDoneResult<T> {\n done: true;\n value?: T;\n}\n\ninterface ReadableStreamReadValueResult<T> {\n done: false;\n value: T;\n}\n\ninterface ReadableWritablePair<R = any, W = any> {\n readable: ReadableStream<R>;\n /**\n * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n */\n writable: WritableStream<W>;\n}\n\ninterface RegistrationOptions {\n scope?: string;\n type?: WorkerType;\n updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface ReportingObserverOptions {\n buffered?: boolean;\n types?: string[];\n}\n\ninterface RequestInit {\n /** A BodyInit object or null to set request\'s body. */\n body?: BodyInit | null;\n /** A string indicating how the request will interact with the browser\'s cache to set request\'s cache. */\n cache?: RequestCache;\n /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request\'s credentials. */\n credentials?: RequestCredentials;\n /** A Headers object, an object literal, or an array of two-item arrays to set request\'s headers. */\n headers?: HeadersInit;\n /** A cryptographic hash of the resource to be fetched by request. Sets request\'s integrity. */\n integrity?: string;\n /** A boolean to set request\'s keepalive. */\n keepalive?: boolean;\n /** A string to set request\'s method. */\n method?: string;\n /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request\'s mode. */\n mode?: RequestMode;\n priority?: RequestPriority;\n /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request\'s redirect. */\n redirect?: RequestRedirect;\n /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request\'s referrer. */\n referrer?: string;\n /** A referrer policy to set request\'s referrerPolicy. */\n referrerPolicy?: ReferrerPolicy;\n /** An AbortSignal to set request\'s signal. */\n signal?: AbortSignal | null;\n /** Can only be null. Used to disassociate request from any Window. */\n window?: null;\n}\n\ninterface ResizeObserverOptions {\n box?: ResizeObserverBoxOptions;\n}\n\ninterface ResponseInit {\n headers?: HeadersInit;\n status?: number;\n statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {\n hash: KeyAlgorithm;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaKeyAlgorithm extends KeyAlgorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaOaepParams extends Algorithm {\n label?: BufferSource;\n}\n\ninterface RsaOtherPrimesInfo {\n d?: string;\n r?: string;\n t?: string;\n}\n\ninterface RsaPssParams extends Algorithm {\n saltLength: number;\n}\n\ninterface SVGBoundingBoxOptions {\n clipped?: boolean;\n fill?: boolean;\n markers?: boolean;\n stroke?: boolean;\n}\n\ninterface ScrollIntoViewOptions extends ScrollOptions {\n block?: ScrollLogicalPosition;\n inline?: ScrollLogicalPosition;\n}\n\ninterface ScrollOptions {\n behavior?: ScrollBehavior;\n}\n\ninterface ScrollToOptions extends ScrollOptions {\n left?: number;\n top?: number;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n blockedURI?: string;\n columnNumber?: number;\n disposition: SecurityPolicyViolationEventDisposition;\n documentURI: string;\n effectiveDirective: string;\n lineNumber?: number;\n originalPolicy: string;\n referrer?: string;\n sample?: string;\n sourceFile?: string;\n statusCode: number;\n violatedDirective: string;\n}\n\ninterface ShadowRootInit {\n delegatesFocus?: boolean;\n mode: ShadowRootMode;\n slotAssignment?: SlotAssignmentMode;\n}\n\ninterface ShareData {\n files?: File[];\n text?: string;\n title?: string;\n url?: string;\n}\n\ninterface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {\n error: SpeechSynthesisErrorCode;\n}\n\ninterface SpeechSynthesisEventInit extends EventInit {\n charIndex?: number;\n charLength?: number;\n elapsedTime?: number;\n name?: string;\n utterance: SpeechSynthesisUtterance;\n}\n\ninterface StaticRangeInit {\n endContainer: Node;\n endOffset: number;\n startContainer: Node;\n startOffset: number;\n}\n\ninterface StereoPannerOptions extends AudioNodeOptions {\n pan?: number;\n}\n\ninterface StorageEstimate {\n quota?: number;\n usage?: number;\n}\n\ninterface StorageEventInit extends EventInit {\n key?: string | null;\n newValue?: string | null;\n oldValue?: string | null;\n storageArea?: Storage | null;\n url?: string;\n}\n\ninterface StreamPipeOptions {\n preventAbort?: boolean;\n preventCancel?: boolean;\n /**\n * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n *\n * Errors and closures of the source and destination streams propagate as follows:\n *\n * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source\'s error, or with any error that occurs during aborting the destination.\n *\n * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination\'s error, or with any error that occurs during canceling the source.\n *\n * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.\n *\n * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.\n *\n * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.\n */\n preventClose?: boolean;\n signal?: AbortSignal;\n}\n\ninterface StructuredSerializeOptions {\n transfer?: Transferable[];\n}\n\ninterface SubmitEventInit extends EventInit {\n submitter?: HTMLElement | null;\n}\n\ninterface TextDecodeOptions {\n stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n fatal?: boolean;\n ignoreBOM?: boolean;\n}\n\ninterface TextEncoderEncodeIntoResult {\n read: number;\n written: number;\n}\n\ninterface ToggleEventInit extends EventInit {\n newState?: string;\n oldState?: string;\n}\n\ninterface TouchEventInit extends EventModifierInit {\n changedTouches?: Touch[];\n targetTouches?: Touch[];\n touches?: Touch[];\n}\n\ninterface TouchInit {\n altitudeAngle?: number;\n azimuthAngle?: number;\n clientX?: number;\n clientY?: number;\n force?: number;\n identifier: number;\n pageX?: number;\n pageY?: number;\n radiusX?: number;\n radiusY?: number;\n rotationAngle?: number;\n screenX?: number;\n screenY?: number;\n target: EventTarget;\n touchType?: TouchType;\n}\n\ninterface TrackEventInit extends EventInit {\n track?: TextTrack | null;\n}\n\ninterface Transformer<I = any, O = any> {\n flush?: TransformerFlushCallback<O>;\n readableType?: undefined;\n start?: TransformerStartCallback<O>;\n transform?: TransformerTransformCallback<I, O>;\n writableType?: undefined;\n}\n\ninterface TransitionEventInit extends EventInit {\n elapsedTime?: number;\n propertyName?: string;\n pseudoElement?: string;\n}\n\ninterface UIEventInit extends EventInit {\n detail?: number;\n view?: Window | null;\n /** @deprecated */\n which?: number;\n}\n\ninterface ULongRange {\n max?: number;\n min?: number;\n}\n\ninterface UnderlyingByteSource {\n autoAllocateChunkSize?: number;\n cancel?: UnderlyingSourceCancelCallback;\n pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;\n start?: (controller: ReadableByteStreamController) => any;\n type: "bytes";\n}\n\ninterface UnderlyingDefaultSource<R = any> {\n cancel?: UnderlyingSourceCancelCallback;\n pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;\n start?: (controller: ReadableStreamDefaultController<R>) => any;\n type?: undefined;\n}\n\ninterface UnderlyingSink<W = any> {\n abort?: UnderlyingSinkAbortCallback;\n close?: UnderlyingSinkCloseCallback;\n start?: UnderlyingSinkStartCallback;\n type?: undefined;\n write?: UnderlyingSinkWriteCallback<W>;\n}\n\ninterface UnderlyingSource<R = any> {\n autoAllocateChunkSize?: number;\n cancel?: UnderlyingSourceCancelCallback;\n pull?: UnderlyingSourcePullCallback<R>;\n start?: UnderlyingSourceStartCallback<R>;\n type?: ReadableStreamType;\n}\n\ninterface ValidityStateFlags {\n badInput?: boolean;\n customError?: boolean;\n patternMismatch?: boolean;\n rangeOverflow?: boolean;\n rangeUnderflow?: boolean;\n stepMismatch?: boolean;\n tooLong?: boolean;\n tooShort?: boolean;\n typeMismatch?: boolean;\n valueMissing?: boolean;\n}\n\ninterface VideoColorSpaceInit {\n fullRange?: boolean | null;\n matrix?: VideoMatrixCoefficients | null;\n primaries?: VideoColorPrimaries | null;\n transfer?: VideoTransferCharacteristics | null;\n}\n\ninterface VideoConfiguration {\n bitrate: number;\n colorGamut?: ColorGamut;\n contentType: string;\n framerate: number;\n hdrMetadataType?: HdrMetadataType;\n height: number;\n scalabilityMode?: string;\n transferFunction?: TransferFunction;\n width: number;\n}\n\ninterface VideoDecoderConfig {\n codec: string;\n codedHeight?: number;\n codedWidth?: number;\n colorSpace?: VideoColorSpaceInit;\n description?: AllowSharedBufferSource;\n displayAspectHeight?: number;\n displayAspectWidth?: number;\n hardwareAcceleration?: HardwareAcceleration;\n optimizeForLatency?: boolean;\n}\n\ninterface VideoDecoderInit {\n error: WebCodecsErrorCallback;\n output: VideoFrameOutputCallback;\n}\n\ninterface VideoDecoderSupport {\n config?: VideoDecoderConfig;\n supported?: boolean;\n}\n\ninterface VideoEncoderConfig {\n alpha?: AlphaOption;\n avc?: AvcEncoderConfig;\n bitrate?: number;\n bitrateMode?: VideoEncoderBitrateMode;\n codec: string;\n displayHeight?: number;\n displayWidth?: number;\n framerate?: number;\n hardwareAcceleration?: HardwareAcceleration;\n height: number;\n latencyMode?: LatencyMode;\n scalabilityMode?: string;\n width: number;\n}\n\ninterface VideoEncoderEncodeOptions {\n keyFrame?: boolean;\n}\n\ninterface VideoEncoderInit {\n error: WebCodecsErrorCallback;\n output: EncodedVideoChunkOutputCallback;\n}\n\ninterface VideoEncoderSupport {\n config?: VideoEncoderConfig;\n supported?: boolean;\n}\n\ninterface VideoFrameBufferInit {\n codedHeight: number;\n codedWidth: number;\n colorSpace?: VideoColorSpaceInit;\n displayHeight?: number;\n displayWidth?: number;\n duration?: number;\n format: VideoPixelFormat;\n layout?: PlaneLayout[];\n timestamp: number;\n visibleRect?: DOMRectInit;\n}\n\ninterface VideoFrameCallbackMetadata {\n captureTime?: DOMHighResTimeStamp;\n expectedDisplayTime: DOMHighResTimeStamp;\n height: number;\n mediaTime: number;\n presentationTime: DOMHighResTimeStamp;\n presentedFrames: number;\n processingDuration?: number;\n receiveTime?: DOMHighResTimeStamp;\n rtpTimestamp?: number;\n width: number;\n}\n\ninterface VideoFrameCopyToOptions {\n layout?: PlaneLayout[];\n rect?: DOMRectInit;\n}\n\ninterface VideoFrameInit {\n alpha?: AlphaOption;\n displayHeight?: number;\n displayWidth?: number;\n duration?: number;\n timestamp?: number;\n visibleRect?: DOMRectInit;\n}\n\ninterface WaveShaperOptions extends AudioNodeOptions {\n curve?: number[] | Float32Array;\n oversample?: OverSampleType;\n}\n\ninterface WebGLContextAttributes {\n alpha?: boolean;\n antialias?: boolean;\n depth?: boolean;\n desynchronized?: boolean;\n failIfMajorPerformanceCaveat?: boolean;\n powerPreference?: WebGLPowerPreference;\n premultipliedAlpha?: boolean;\n preserveDrawingBuffer?: boolean;\n stencil?: boolean;\n}\n\ninterface WebGLContextEventInit extends EventInit {\n statusMessage?: string;\n}\n\ninterface WebTransportCloseInfo {\n closeCode?: number;\n reason?: string;\n}\n\ninterface WebTransportErrorOptions {\n source?: WebTransportErrorSource;\n streamErrorCode?: number | null;\n}\n\ninterface WebTransportHash {\n algorithm?: string;\n value?: BufferSource;\n}\n\ninterface WebTransportOptions {\n allowPooling?: boolean;\n congestionControl?: WebTransportCongestionControl;\n requireUnreliable?: boolean;\n serverCertificateHashes?: WebTransportHash[];\n}\n\ninterface WebTransportSendStreamOptions {\n sendOrder?: number;\n}\n\ninterface WheelEventInit extends MouseEventInit {\n deltaMode?: number;\n deltaX?: number;\n deltaY?: number;\n deltaZ?: number;\n}\n\ninterface WindowPostMessageOptions extends StructuredSerializeOptions {\n targetOrigin?: string;\n}\n\ninterface WorkerOptions {\n credentials?: RequestCredentials;\n name?: string;\n type?: WorkerType;\n}\n\ninterface WorkletOptions {\n credentials?: RequestCredentials;\n}\n\ninterface WriteParams {\n data?: BufferSource | Blob | string | null;\n position?: number | null;\n size?: number | null;\n type: WriteCommandType;\n}\n\ntype NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };\n\ndeclare var NodeFilter: {\n readonly FILTER_ACCEPT: 1;\n readonly FILTER_REJECT: 2;\n readonly FILTER_SKIP: 3;\n readonly SHOW_ALL: 0xFFFFFFFF;\n readonly SHOW_ELEMENT: 0x1;\n readonly SHOW_ATTRIBUTE: 0x2;\n readonly SHOW_TEXT: 0x4;\n readonly SHOW_CDATA_SECTION: 0x8;\n readonly SHOW_ENTITY_REFERENCE: 0x10;\n readonly SHOW_ENTITY: 0x20;\n readonly SHOW_PROCESSING_INSTRUCTION: 0x40;\n readonly SHOW_COMMENT: 0x80;\n readonly SHOW_DOCUMENT: 0x100;\n readonly SHOW_DOCUMENT_TYPE: 0x200;\n readonly SHOW_DOCUMENT_FRAGMENT: 0x400;\n readonly SHOW_NOTATION: 0x800;\n};\n\ntype XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };\n\n/**\n * The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays)\n */\ninterface ANGLE_instanced_arrays {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */\n vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;\n}\n\ninterface ARIAMixin {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */\n ariaAtomic: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */\n ariaAutoComplete: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */\n ariaBusy: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */\n ariaChecked: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */\n ariaColCount: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */\n ariaColIndex: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */\n ariaColSpan: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */\n ariaCurrent: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */\n ariaDescription: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */\n ariaDisabled: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */\n ariaExpanded: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */\n ariaHasPopup: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */\n ariaHidden: string | null;\n ariaInvalid: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */\n ariaKeyShortcuts: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */\n ariaLabel: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */\n ariaLevel: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */\n ariaLive: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */\n ariaModal: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */\n ariaMultiLine: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */\n ariaMultiSelectable: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */\n ariaOrientation: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */\n ariaPlaceholder: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */\n ariaPosInSet: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */\n ariaPressed: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */\n ariaReadOnly: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */\n ariaRequired: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */\n ariaRoleDescription: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */\n ariaRowCount: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */\n ariaRowIndex: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */\n ariaRowSpan: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */\n ariaSelected: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */\n ariaSetSize: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */\n ariaSort: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */\n ariaValueMax: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */\n ariaValueMin: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */\n ariaValueNow: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */\n ariaValueText: string | null;\n role: string | null;\n}\n\n/**\n * A controller object that allows you to abort one or more DOM requests as and when desired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)\n */\ninterface AbortController {\n /**\n * Returns the AbortSignal object associated with this object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)\n */\n readonly signal: AbortSignal;\n /**\n * Invoking this method will set this object\'s AbortSignal\'s aborted flag and signal to any observers that the associated activity is to be aborted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)\n */\n abort(reason?: any): void;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n "abort": Event;\n}\n\n/**\n * A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)\n */\ninterface AbortSignal extends EventTarget {\n /**\n * Returns true if this AbortSignal\'s AbortController has signaled to abort, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)\n */\n readonly aborted: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */\n onabort: ((this: AbortSignal, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */\n readonly reason: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */\n throwIfAborted(): void;\n addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AbortSignal: {\n prototype: AbortSignal;\n new(): AbortSignal;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */\n abort(reason?: any): AbortSignal;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */\n timeout(milliseconds: number): AbortSignal;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */\ninterface AbstractRange {\n /**\n * Returns true if range is collapsed, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed)\n */\n readonly collapsed: boolean;\n /**\n * Returns range\'s end node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer)\n */\n readonly endContainer: Node;\n /**\n * Returns range\'s end offset.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset)\n */\n readonly endOffset: number;\n /**\n * Returns range\'s start node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer)\n */\n readonly startContainer: Node;\n /**\n * Returns range\'s start offset.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset)\n */\n readonly startOffset: number;\n}\n\ndeclare var AbstractRange: {\n prototype: AbstractRange;\n new(): AbstractRange;\n};\n\ninterface AbstractWorkerEventMap {\n "error": ErrorEvent;\n}\n\ninterface AbstractWorker {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */\n onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;\n addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/**\n * A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode)\n */\ninterface AnalyserNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */\n fftSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */\n readonly frequencyBinCount: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */\n maxDecibels: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */\n minDecibels: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */\n smoothingTimeConstant: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */\n getByteFrequencyData(array: Uint8Array): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */\n getByteTimeDomainData(array: Uint8Array): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */\n getFloatFrequencyData(array: Float32Array): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */\n getFloatTimeDomainData(array: Float32Array): void;\n}\n\ndeclare var AnalyserNode: {\n prototype: AnalyserNode;\n new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;\n};\n\ninterface Animatable {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */\n animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */\n getAnimations(options?: GetAnimationsOptions): Animation[];\n}\n\ninterface AnimationEventMap {\n "cancel": AnimationPlaybackEvent;\n "finish": AnimationPlaybackEvent;\n "remove": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */\ninterface Animation extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */\n currentTime: CSSNumberish | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */\n effect: AnimationEffect | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */\n readonly finished: Promise<Animation>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */\n id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */\n oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */\n onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */\n onremove: ((this: Animation, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */\n readonly pending: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */\n readonly playState: AnimationPlayState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */\n playbackRate: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */\n readonly ready: Promise<Animation>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */\n readonly replaceState: AnimationReplaceState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */\n startTime: CSSNumberish | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */\n timeline: AnimationTimeline | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */\n cancel(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */\n commitStyles(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */\n finish(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */\n pause(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */\n persist(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */\n play(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */\n reverse(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */\n updatePlaybackRate(playbackRate: number): void;\n addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Animation: {\n prototype: Animation;\n new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */\ninterface AnimationEffect {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */\n getComputedTiming(): ComputedEffectTiming;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */\n getTiming(): EffectTiming;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */\n updateTiming(timing?: OptionalEffectTiming): void;\n}\n\ndeclare var AnimationEffect: {\n prototype: AnimationEffect;\n new(): AnimationEffect;\n};\n\n/**\n * Events providing information related to animations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent)\n */\ninterface AnimationEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */\n readonly animationName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */\n readonly elapsedTime: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */\n readonly pseudoElement: string;\n}\n\ndeclare var AnimationEvent: {\n prototype: AnimationEvent;\n new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;\n};\n\ninterface AnimationFrameProvider {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */\n cancelAnimationFrame(handle: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */\n requestAnimationFrame(callback: FrameRequestCallback): number;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */\ninterface AnimationPlaybackEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */\n readonly currentTime: CSSNumberish | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */\n readonly timelineTime: CSSNumberish | null;\n}\n\ndeclare var AnimationPlaybackEvent: {\n prototype: AnimationPlaybackEvent;\n new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */\ninterface AnimationTimeline {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */\n readonly currentTime: CSSNumberish | null;\n}\n\ndeclare var AnimationTimeline: {\n prototype: AnimationTimeline;\n new(): AnimationTimeline;\n};\n\n/**\n * A DOM element\'s attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr)\n */\ninterface Attr extends Node {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */\n readonly localName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */\n readonly namespaceURI: string | null;\n readonly ownerDocument: Document;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */\n readonly ownerElement: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */\n readonly prefix: string | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified)\n */\n readonly specified: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */\n value: string;\n}\n\ndeclare var Attr: {\n prototype: Attr;\n new(): Attr;\n};\n\n/**\n * A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer)\n */\ninterface AudioBuffer {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */\n readonly duration: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */\n readonly numberOfChannels: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */\n readonly sampleRate: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */\n copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */\n copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */\n getChannelData(channel: number): Float32Array;\n}\n\ndeclare var AudioBuffer: {\n prototype: AudioBuffer;\n new(options: AudioBufferOptions): AudioBuffer;\n};\n\n/**\n * An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It\'s especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode)\n */\ninterface AudioBufferSourceNode extends AudioScheduledSourceNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */\n buffer: AudioBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */\n readonly detune: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */\n loop: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */\n loopEnd: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */\n loopStart: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */\n readonly playbackRate: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */\n start(when?: number, offset?: number, duration?: number): void;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioBufferSourceNode: {\n prototype: AudioBufferSourceNode;\n new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;\n};\n\n/**\n * An audio-processing graph built from audio modules linked together, each represented by an AudioNode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext)\n */\ninterface AudioContext extends BaseAudioContext {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */\n readonly baseLatency: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */\n readonly outputLatency: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */\n close(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */\n createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */\n createMediaStreamDestination(): MediaStreamAudioDestinationNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */\n createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */\n getOutputTimestamp(): AudioTimestamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */\n resume(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */\n suspend(): Promise<void>;\n addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioContext: {\n prototype: AudioContext;\n new(contextOptions?: AudioContextOptions): AudioContext;\n};\n\n/**\n * AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode)\n */\ninterface AudioDestinationNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */\n readonly maxChannelCount: number;\n}\n\ndeclare var AudioDestinationNode: {\n prototype: AudioDestinationNode;\n new(): AudioDestinationNode;\n};\n\n/**\n * The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener)\n */\ninterface AudioListener {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */\n readonly forwardX: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */\n readonly forwardY: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */\n readonly forwardZ: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */\n readonly positionX: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */\n readonly positionY: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */\n readonly positionZ: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */\n readonly upX: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */\n readonly upY: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */\n readonly upZ: AudioParam;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation)\n */\n setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition)\n */\n setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var AudioListener: {\n prototype: AudioListener;\n new(): AudioListener;\n};\n\n/**\n * A generic interface for representing an audio processing module. Examples include:\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode)\n */\ninterface AudioNode extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */\n channelCount: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */\n channelCountMode: ChannelCountMode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */\n channelInterpretation: ChannelInterpretation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */\n readonly context: BaseAudioContext;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */\n readonly numberOfInputs: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */\n readonly numberOfOutputs: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */\n connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;\n connect(destinationParam: AudioParam, output?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */\n disconnect(): void;\n disconnect(output: number): void;\n disconnect(destinationNode: AudioNode): void;\n disconnect(destinationNode: AudioNode, output: number): void;\n disconnect(destinationNode: AudioNode, output: number, input: number): void;\n disconnect(destinationParam: AudioParam): void;\n disconnect(destinationParam: AudioParam, output: number): void;\n}\n\ndeclare var AudioNode: {\n prototype: AudioNode;\n new(): AudioNode;\n};\n\n/**\n * The Web Audio API\'s AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam)\n */\ninterface AudioParam {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */\n automationRate: AutomationRate;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */\n readonly defaultValue: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */\n readonly maxValue: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */\n readonly minValue: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */\n value: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */\n cancelAndHoldAtTime(cancelTime: number): AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */\n cancelScheduledValues(cancelTime: number): AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */\n exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */\n linearRampToValueAtTime(value: number, endTime: number): AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */\n setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */\n setValueAtTime(value: number, startTime: number): AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */\n setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;\n}\n\ndeclare var AudioParam: {\n prototype: AudioParam;\n new(): AudioParam;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */\ninterface AudioParamMap {\n forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;\n}\n\ndeclare var AudioParamMap: {\n prototype: AudioParamMap;\n new(): AudioParamMap;\n};\n\n/**\n * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.\n * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent)\n */\ninterface AudioProcessingEvent extends Event {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer)\n */\n readonly inputBuffer: AudioBuffer;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer)\n */\n readonly outputBuffer: AudioBuffer;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime)\n */\n readonly playbackTime: number;\n}\n\n/** @deprecated */\ndeclare var AudioProcessingEvent: {\n prototype: AudioProcessingEvent;\n new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;\n};\n\ninterface AudioScheduledSourceNodeEventMap {\n "ended": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode) */\ninterface AudioScheduledSourceNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */\n onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */\n start(when?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */\n stop(when?: number): void;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioScheduledSourceNode: {\n prototype: AudioScheduledSourceNode;\n new(): AudioScheduledSourceNode;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet)\n */\ninterface AudioWorklet extends Worklet {\n}\n\ndeclare var AudioWorklet: {\n prototype: AudioWorklet;\n new(): AudioWorklet;\n};\n\ninterface AudioWorkletNodeEventMap {\n "processorerror": Event;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode)\n */\ninterface AudioWorkletNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */\n onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */\n readonly parameters: AudioParamMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */\n readonly port: MessagePort;\n addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioWorkletNode: {\n prototype: AudioWorkletNode;\n new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse)\n */\ninterface AuthenticatorAssertionResponse extends AuthenticatorResponse {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */\n readonly authenticatorData: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */\n readonly signature: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */\n readonly userHandle: ArrayBuffer | null;\n}\n\ndeclare var AuthenticatorAssertionResponse: {\n prototype: AuthenticatorAssertionResponse;\n new(): AuthenticatorAssertionResponse;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse)\n */\ninterface AuthenticatorAttestationResponse extends AuthenticatorResponse {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */\n readonly attestationObject: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */\n getAuthenticatorData(): ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */\n getPublicKey(): ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */\n getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */\n getTransports(): string[];\n}\n\ndeclare var AuthenticatorAttestationResponse: {\n prototype: AuthenticatorAttestationResponse;\n new(): AuthenticatorAttestationResponse;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse)\n */\ninterface AuthenticatorResponse {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */\n readonly clientDataJSON: ArrayBuffer;\n}\n\ndeclare var AuthenticatorResponse: {\n prototype: AuthenticatorResponse;\n new(): AuthenticatorResponse;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */\ninterface BarProp {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */\n readonly visible: boolean;\n}\n\ndeclare var BarProp: {\n prototype: BarProp;\n new(): BarProp;\n};\n\ninterface BaseAudioContextEventMap {\n "statechange": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */\ninterface BaseAudioContext extends EventTarget {\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet)\n */\n readonly audioWorklet: AudioWorklet;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */\n readonly currentTime: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */\n readonly destination: AudioDestinationNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */\n readonly listener: AudioListener;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */\n onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */\n readonly sampleRate: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */\n readonly state: AudioContextState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */\n createAnalyser(): AnalyserNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */\n createBiquadFilter(): BiquadFilterNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */\n createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */\n createBufferSource(): AudioBufferSourceNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */\n createChannelMerger(numberOfInputs?: number): ChannelMergerNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */\n createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */\n createConstantSource(): ConstantSourceNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */\n createConvolver(): ConvolverNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */\n createDelay(maxDelayTime?: number): DelayNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */\n createDynamicsCompressor(): DynamicsCompressorNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */\n createGain(): GainNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */\n createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */\n createOscillator(): OscillatorNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */\n createPanner(): PannerNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */\n createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor)\n */\n createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */\n createStereoPanner(): StereoPannerNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */\n createWaveShaper(): WaveShaperNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */\n decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;\n addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BaseAudioContext: {\n prototype: BaseAudioContext;\n new(): BaseAudioContext;\n};\n\n/**\n * The beforeunload event is fired when the window, the document and its resources are about to be unloaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent)\n */\ninterface BeforeUnloadEvent extends Event {\n /** @deprecated */\n returnValue: any;\n}\n\ndeclare var BeforeUnloadEvent: {\n prototype: BeforeUnloadEvent;\n new(): BeforeUnloadEvent;\n};\n\n/**\n * A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode)\n */\ninterface BiquadFilterNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */\n readonly Q: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */\n readonly detune: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */\n readonly frequency: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */\n readonly gain: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */\n type: BiquadFilterType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */\n getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var BiquadFilterNode: {\n prototype: BiquadFilterNode;\n new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;\n};\n\n/**\n * A file-like object of immutable, raw data. Blobs represent data that isn\'t necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user\'s system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)\n */\ninterface Blob {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */\n readonly size: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */\n readonly type: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */\n arrayBuffer(): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */\n slice(start?: number, end?: number, contentType?: string): Blob;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */\n stream(): ReadableStream<Uint8Array>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */\n text(): Promise<string>;\n}\n\ndeclare var Blob: {\n prototype: Blob;\n new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */\ninterface BlobEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */\n readonly data: Blob;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */\n readonly timecode: DOMHighResTimeStamp;\n}\n\ndeclare var BlobEvent: {\n prototype: BlobEvent;\n new(type: string, eventInitDict: BlobEventInit): BlobEvent;\n};\n\ninterface Body {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */\n readonly body: ReadableStream<Uint8Array> | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */\n readonly bodyUsed: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */\n arrayBuffer(): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */\n blob(): Promise<Blob>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */\n formData(): Promise<FormData>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */\n json(): Promise<any>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */\n text(): Promise<string>;\n}\n\ninterface BroadcastChannelEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */\ninterface BroadcastChannel extends EventTarget {\n /**\n * Returns the channel name (as passed to the constructor).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name)\n */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */\n onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */\n onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /**\n * Closes the BroadcastChannel object, opening it up to garbage collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)\n */\n close(): void;\n /**\n * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)\n */\n postMessage(message: any): void;\n addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BroadcastChannel: {\n prototype: BroadcastChannel;\n new(name: string): BroadcastChannel;\n};\n\n/**\n * This Streams API interface provides\xa0a built-in byte length queuing strategy that can be used when constructing streams.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)\n */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */\n readonly highWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */\n readonly size: QueuingStrategySize<ArrayBufferView>;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n prototype: ByteLengthQueuingStrategy;\n new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;\n};\n\n/**\n * A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\u2019t need escaping as they normally do when inside a CDATA section.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection)\n */\ninterface CDATASection extends Text {\n}\n\ndeclare var CDATASection: {\n prototype: CDATASection;\n new(): CDATASection;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */\ninterface CSSAnimation extends Animation {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */\n readonly animationName: string;\n addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CSSAnimation: {\n prototype: CSSAnimation;\n new(): CSSAnimation;\n};\n\n/**\n * A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule)\n */\ninterface CSSConditionRule extends CSSGroupingRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */\n readonly conditionText: string;\n}\n\ndeclare var CSSConditionRule: {\n prototype: CSSConditionRule;\n new(): CSSConditionRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */\ninterface CSSContainerRule extends CSSConditionRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */\n readonly containerName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */\n readonly containerQuery: string;\n}\n\ndeclare var CSSContainerRule: {\n prototype: CSSContainerRule;\n new(): CSSContainerRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */\ninterface CSSCounterStyleRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */\n additiveSymbols: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */\n fallback: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */\n name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */\n negative: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */\n pad: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */\n prefix: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */\n range: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */\n speakAs: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */\n suffix: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */\n symbols: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */\n system: string;\n}\n\ndeclare var CSSCounterStyleRule: {\n prototype: CSSCounterStyleRule;\n new(): CSSCounterStyleRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */\ninterface CSSFontFaceRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSFontFaceRule: {\n prototype: CSSFontFaceRule;\n new(): CSSFontFaceRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */\ninterface CSSFontFeatureValuesRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */\n fontFamily: string;\n}\n\ndeclare var CSSFontFeatureValuesRule: {\n prototype: CSSFontFeatureValuesRule;\n new(): CSSFontFeatureValuesRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */\ninterface CSSFontPaletteValuesRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */\n readonly basePalette: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */\n readonly fontFamily: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */\n readonly overrideColors: string;\n}\n\ndeclare var CSSFontPaletteValuesRule: {\n prototype: CSSFontPaletteValuesRule;\n new(): CSSFontPaletteValuesRule;\n};\n\n/**\n * Any CSS at-rule that contains other rules nested within it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule)\n */\ninterface CSSGroupingRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */\n readonly cssRules: CSSRuleList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */\n deleteRule(index: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */\n insertRule(rule: string, index?: number): number;\n}\n\ndeclare var CSSGroupingRule: {\n prototype: CSSGroupingRule;\n new(): CSSGroupingRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */\ninterface CSSImageValue extends CSSStyleValue {\n}\n\ndeclare var CSSImageValue: {\n prototype: CSSImageValue;\n new(): CSSImageValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */\ninterface CSSImportRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */\n readonly href: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */\n readonly layerName: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */\n readonly media: MediaList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */\n readonly styleSheet: CSSStyleSheet | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */\n readonly supportsText: string | null;\n}\n\ndeclare var CSSImportRule: {\n prototype: CSSImportRule;\n new(): CSSImportRule;\n};\n\n/**\n * An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule)\n */\ninterface CSSKeyframeRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */\n keyText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSKeyframeRule: {\n prototype: CSSKeyframeRule;\n new(): CSSKeyframeRule;\n};\n\n/**\n * An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule)\n */\ninterface CSSKeyframesRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */\n readonly cssRules: CSSRuleList;\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */\n name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */\n appendRule(rule: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */\n deleteRule(select: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */\n findRule(select: string): CSSKeyframeRule | null;\n [index: number]: CSSKeyframeRule;\n}\n\ndeclare var CSSKeyframesRule: {\n prototype: CSSKeyframesRule;\n new(): CSSKeyframesRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */\ninterface CSSKeywordValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */\n value: string;\n}\n\ndeclare var CSSKeywordValue: {\n prototype: CSSKeywordValue;\n new(value: string): CSSKeywordValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */\ninterface CSSLayerBlockRule extends CSSGroupingRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */\n readonly name: string;\n}\n\ndeclare var CSSLayerBlockRule: {\n prototype: CSSLayerBlockRule;\n new(): CSSLayerBlockRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */\ninterface CSSLayerStatementRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */\n readonly nameList: ReadonlyArray<string>;\n}\n\ndeclare var CSSLayerStatementRule: {\n prototype: CSSLayerStatementRule;\n new(): CSSLayerStatementRule;\n};\n\ninterface CSSMathClamp extends CSSMathValue {\n readonly lower: CSSNumericValue;\n readonly upper: CSSNumericValue;\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathClamp: {\n prototype: CSSMathClamp;\n new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */\ninterface CSSMathInvert extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathInvert: {\n prototype: CSSMathInvert;\n new(arg: CSSNumberish): CSSMathInvert;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */\ninterface CSSMathMax extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathMax: {\n prototype: CSSMathMax;\n new(...args: CSSNumberish[]): CSSMathMax;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */\ninterface CSSMathMin extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathMin: {\n prototype: CSSMathMin;\n new(...args: CSSNumberish[]): CSSMathMin;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */\ninterface CSSMathNegate extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathNegate: {\n prototype: CSSMathNegate;\n new(arg: CSSNumberish): CSSMathNegate;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */\ninterface CSSMathProduct extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathProduct: {\n prototype: CSSMathProduct;\n new(...args: CSSNumberish[]): CSSMathProduct;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */\ninterface CSSMathSum extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathSum: {\n prototype: CSSMathSum;\n new(...args: CSSNumberish[]): CSSMathSum;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */\ninterface CSSMathValue extends CSSNumericValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */\n readonly operator: CSSMathOperator;\n}\n\ndeclare var CSSMathValue: {\n prototype: CSSMathValue;\n new(): CSSMathValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */\ninterface CSSMatrixComponent extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */\n matrix: DOMMatrix;\n}\n\ndeclare var CSSMatrixComponent: {\n prototype: CSSMatrixComponent;\n new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;\n};\n\n/**\n * A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule)\n */\ninterface CSSMediaRule extends CSSConditionRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */\n readonly media: MediaList;\n}\n\ndeclare var CSSMediaRule: {\n prototype: CSSMediaRule;\n new(): CSSMediaRule;\n};\n\n/**\n * An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule)\n */\ninterface CSSNamespaceRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */\n readonly namespaceURI: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */\n readonly prefix: string;\n}\n\ndeclare var CSSNamespaceRule: {\n prototype: CSSNamespaceRule;\n new(): CSSNamespaceRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */\ninterface CSSNumericArray {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */\n readonly length: number;\n forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;\n [index: number]: CSSNumericValue;\n}\n\ndeclare var CSSNumericArray: {\n prototype: CSSNumericArray;\n new(): CSSNumericArray;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */\ninterface CSSNumericValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */\n add(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */\n div(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */\n equals(...value: CSSNumberish[]): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */\n max(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */\n min(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */\n mul(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */\n sub(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */\n to(unit: string): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */\n toSum(...units: string[]): CSSMathSum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */\n type(): CSSNumericType;\n}\n\ndeclare var CSSNumericValue: {\n prototype: CSSNumericValue;\n new(): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */\n parse(cssText: string): CSSNumericValue;\n};\n\n/**\n * CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule)\n */\ninterface CSSPageRule extends CSSGroupingRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */\n selectorText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSPageRule: {\n prototype: CSSPageRule;\n new(): CSSPageRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */\ninterface CSSPerspective extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */\n length: CSSPerspectiveValue;\n}\n\ndeclare var CSSPerspective: {\n prototype: CSSPerspective;\n new(length: CSSPerspectiveValue): CSSPerspective;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */\ninterface CSSPropertyRule extends CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */\n readonly inherits: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */\n readonly initialValue: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */\n readonly syntax: string;\n}\n\ndeclare var CSSPropertyRule: {\n prototype: CSSPropertyRule;\n new(): CSSPropertyRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */\ninterface CSSRotate extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */\n angle: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */\n x: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */\n y: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */\n z: CSSNumberish;\n}\n\ndeclare var CSSRotate: {\n prototype: CSSRotate;\n new(angle: CSSNumericValue): CSSRotate;\n new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;\n};\n\n/**\n * A single CSS rule. There are several types of rules, listed in the Type constants section below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule)\n */\ninterface CSSRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */\n cssText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */\n readonly parentRule: CSSRule | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */\n readonly parentStyleSheet: CSSStyleSheet | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type)\n */\n readonly type: number;\n readonly STYLE_RULE: 1;\n readonly CHARSET_RULE: 2;\n readonly IMPORT_RULE: 3;\n readonly MEDIA_RULE: 4;\n readonly FONT_FACE_RULE: 5;\n readonly PAGE_RULE: 6;\n readonly NAMESPACE_RULE: 10;\n readonly KEYFRAMES_RULE: 7;\n readonly KEYFRAME_RULE: 8;\n readonly SUPPORTS_RULE: 12;\n readonly COUNTER_STYLE_RULE: 11;\n readonly FONT_FEATURE_VALUES_RULE: 14;\n}\n\ndeclare var CSSRule: {\n prototype: CSSRule;\n new(): CSSRule;\n readonly STYLE_RULE: 1;\n readonly CHARSET_RULE: 2;\n readonly IMPORT_RULE: 3;\n readonly MEDIA_RULE: 4;\n readonly FONT_FACE_RULE: 5;\n readonly PAGE_RULE: 6;\n readonly NAMESPACE_RULE: 10;\n readonly KEYFRAMES_RULE: 7;\n readonly KEYFRAME_RULE: 8;\n readonly SUPPORTS_RULE: 12;\n readonly COUNTER_STYLE_RULE: 11;\n readonly FONT_FEATURE_VALUES_RULE: 14;\n};\n\n/**\n * A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList)\n */\ninterface CSSRuleList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */\n item(index: number): CSSRule | null;\n [index: number]: CSSRule;\n}\n\ndeclare var CSSRuleList: {\n prototype: CSSRuleList;\n new(): CSSRuleList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */\ninterface CSSScale extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */\n x: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */\n y: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */\n z: CSSNumberish;\n}\n\ndeclare var CSSScale: {\n prototype: CSSScale;\n new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */\ninterface CSSSkew extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */\n ax: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */\n ay: CSSNumericValue;\n}\n\ndeclare var CSSSkew: {\n prototype: CSSSkew;\n new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */\ninterface CSSSkewX extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */\n ax: CSSNumericValue;\n}\n\ndeclare var CSSSkewX: {\n prototype: CSSSkewX;\n new(ax: CSSNumericValue): CSSSkewX;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */\ninterface CSSSkewY extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */\n ay: CSSNumericValue;\n}\n\ndeclare var CSSSkewY: {\n prototype: CSSSkewY;\n new(ay: CSSNumericValue): CSSSkewY;\n};\n\n/**\n * An object that is a CSS declaration block, and exposes style information and various style-related methods and properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)\n */\ninterface CSSStyleDeclaration {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */\n accentColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */\n alignContent: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */\n alignItems: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */\n alignSelf: string;\n alignmentBaseline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */\n all: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */\n animation: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */\n animationComposition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */\n animationDelay: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */\n animationDirection: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */\n animationDuration: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */\n animationFillMode: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */\n animationIterationCount: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */\n animationName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */\n animationPlayState: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */\n animationTimingFunction: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */\n appearance: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */\n aspectRatio: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */\n backdropFilter: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */\n backfaceVisibility: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */\n background: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */\n backgroundAttachment: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */\n backgroundBlendMode: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */\n backgroundClip: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */\n backgroundColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */\n backgroundImage: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */\n backgroundOrigin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */\n backgroundPosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */\n backgroundPositionX: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */\n backgroundPositionY: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */\n backgroundRepeat: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */\n backgroundSize: string;\n baselineShift: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/baseline-source) */\n baselineSource: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */\n blockSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */\n border: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */\n borderBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */\n borderBlockColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */\n borderBlockEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */\n borderBlockEndColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */\n borderBlockEndStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */\n borderBlockEndWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */\n borderBlockStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */\n borderBlockStartColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */\n borderBlockStartStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */\n borderBlockStartWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */\n borderBlockStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */\n borderBlockWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */\n borderBottom: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */\n borderBottomColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */\n borderBottomLeftRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */\n borderBottomRightRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */\n borderBottomStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */\n borderBottomWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */\n borderCollapse: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */\n borderColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */\n borderEndEndRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */\n borderEndStartRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */\n borderImage: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */\n borderImageOutset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */\n borderImageRepeat: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */\n borderImageSlice: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */\n borderImageSource: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */\n borderImageWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */\n borderInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */\n borderInlineColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */\n borderInlineEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */\n borderInlineEndColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */\n borderInlineEndStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */\n borderInlineEndWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */\n borderInlineStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */\n borderInlineStartColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */\n borderInlineStartStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */\n borderInlineStartWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */\n borderInlineStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */\n borderInlineWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */\n borderLeft: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */\n borderLeftColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */\n borderLeftStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */\n borderLeftWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */\n borderRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */\n borderRight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */\n borderRightColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */\n borderRightStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */\n borderRightWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */\n borderSpacing: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */\n borderStartEndRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */\n borderStartStartRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */\n borderStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */\n borderTop: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */\n borderTopColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */\n borderTopLeftRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */\n borderTopRightRadius: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */\n borderTopStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */\n borderTopWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */\n borderWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */\n bottom: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */\n boxShadow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */\n boxSizing: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */\n breakAfter: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */\n breakBefore: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */\n breakInside: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */\n captionSide: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */\n caretColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */\n clear: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip)\n */\n clip: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */\n clipPath: string;\n clipRule: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */\n color: string;\n colorInterpolation: string;\n colorInterpolationFilters: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */\n colorScheme: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */\n columnCount: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */\n columnFill: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */\n columnGap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */\n columnRule: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */\n columnRuleColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */\n columnRuleStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */\n columnRuleWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */\n columnSpan: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */\n columnWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */\n columns: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */\n contain: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size) */\n containIntrinsicBlockSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */\n containIntrinsicHeight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size) */\n containIntrinsicInlineSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */\n containIntrinsicSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */\n containIntrinsicWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */\n container: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */\n containerName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */\n containerType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */\n content: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */\n counterIncrement: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */\n counterReset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */\n counterSet: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */\n cssFloat: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) */\n cssText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */\n cursor: string;\n cx: string;\n cy: string;\n d: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */\n direction: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */\n display: string;\n dominantBaseline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */\n emptyCells: string;\n fill: string;\n fillOpacity: string;\n fillRule: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */\n filter: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */\n flex: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */\n flexBasis: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */\n flexDirection: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */\n flexFlow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */\n flexGrow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */\n flexShrink: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */\n flexWrap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */\n float: string;\n floodColor: string;\n floodOpacity: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */\n font: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */\n fontFamily: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */\n fontFeatureSettings: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */\n fontKerning: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */\n fontOpticalSizing: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */\n fontPalette: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */\n fontSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */\n fontSizeAdjust: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */\n fontStretch: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */\n fontStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */\n fontSynthesis: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */\n fontSynthesisSmallCaps: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */\n fontSynthesisStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */\n fontSynthesisWeight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */\n fontVariant: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */\n fontVariantAlternates: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */\n fontVariantCaps: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */\n fontVariantEastAsian: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */\n fontVariantLigatures: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */\n fontVariantNumeric: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */\n fontVariantPosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */\n fontVariationSettings: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */\n fontWeight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */\n forcedColorAdjust: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */\n gap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */\n grid: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */\n gridArea: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */\n gridAutoColumns: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */\n gridAutoFlow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */\n gridAutoRows: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */\n gridColumn: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */\n gridColumnEnd: string;\n /** @deprecated This is a legacy alias of `columnGap`. */\n gridColumnGap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */\n gridColumnStart: string;\n /** @deprecated This is a legacy alias of `gap`. */\n gridGap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */\n gridRow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */\n gridRowEnd: string;\n /** @deprecated This is a legacy alias of `rowGap`. */\n gridRowGap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */\n gridRowStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */\n gridTemplate: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */\n gridTemplateAreas: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */\n gridTemplateColumns: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */\n gridTemplateRows: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */\n height: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */\n hyphenateCharacter: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */\n hyphens: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation)\n */\n imageOrientation: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */\n imageRendering: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */\n inlineSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */\n inset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */\n insetBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */\n insetBlockEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */\n insetBlockStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */\n insetInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */\n insetInlineEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */\n insetInlineStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */\n isolation: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */\n justifyContent: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */\n justifyItems: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */\n justifySelf: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */\n left: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */\n letterSpacing: string;\n lightingColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */\n lineBreak: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */\n lineHeight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */\n listStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */\n listStyleImage: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */\n listStylePosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */\n listStyleType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */\n margin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */\n marginBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */\n marginBlockEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */\n marginBlockStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */\n marginBottom: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */\n marginInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */\n marginInlineEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */\n marginInlineStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */\n marginLeft: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */\n marginRight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */\n marginTop: string;\n marker: string;\n markerEnd: string;\n markerMid: string;\n markerStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */\n mask: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */\n maskClip: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */\n maskComposite: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */\n maskImage: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */\n maskMode: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */\n maskOrigin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */\n maskPosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */\n maskRepeat: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */\n maskSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */\n maskType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */\n mathDepth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */\n mathStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */\n maxBlockSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */\n maxHeight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */\n maxInlineSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */\n maxWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */\n minBlockSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */\n minHeight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */\n minInlineSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */\n minWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */\n mixBlendMode: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */\n objectFit: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */\n objectPosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */\n offset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */\n offsetAnchor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */\n offsetDistance: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */\n offsetPath: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */\n offsetPosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */\n offsetRotate: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */\n opacity: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */\n order: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */\n orphans: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */\n outline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */\n outlineColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */\n outlineOffset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */\n outlineStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */\n outlineWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */\n overflow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */\n overflowAnchor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */\n overflowClipMargin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */\n overflowWrap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */\n overflowX: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */\n overflowY: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */\n overscrollBehavior: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */\n overscrollBehaviorBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */\n overscrollBehaviorInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */\n overscrollBehaviorX: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */\n overscrollBehaviorY: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */\n padding: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */\n paddingBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */\n paddingBlockEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */\n paddingBlockStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */\n paddingBottom: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */\n paddingInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */\n paddingInlineEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */\n paddingInlineStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */\n paddingLeft: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */\n paddingRight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */\n paddingTop: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */\n page: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */\n pageBreakAfter: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */\n pageBreakBefore: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */\n pageBreakInside: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */\n paintOrder: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */\n readonly parentRule: CSSRule | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */\n perspective: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */\n perspectiveOrigin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */\n placeContent: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */\n placeItems: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */\n placeSelf: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */\n pointerEvents: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */\n position: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */\n printColorAdjust: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */\n quotes: string;\n r: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */\n resize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */\n right: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */\n rotate: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */\n rowGap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */\n rubyPosition: string;\n rx: string;\n ry: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */\n scale: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */\n scrollBehavior: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */\n scrollMargin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */\n scrollMarginBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */\n scrollMarginBlockEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */\n scrollMarginBlockStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */\n scrollMarginBottom: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */\n scrollMarginInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */\n scrollMarginInlineEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */\n scrollMarginInlineStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */\n scrollMarginLeft: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */\n scrollMarginRight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */\n scrollMarginTop: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */\n scrollPadding: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */\n scrollPaddingBlock: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */\n scrollPaddingBlockEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */\n scrollPaddingBlockStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */\n scrollPaddingBottom: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */\n scrollPaddingInline: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */\n scrollPaddingInlineEnd: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */\n scrollPaddingInlineStart: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */\n scrollPaddingLeft: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */\n scrollPaddingRight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */\n scrollPaddingTop: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */\n scrollSnapAlign: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */\n scrollSnapStop: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */\n scrollSnapType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */\n scrollbarColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */\n scrollbarGutter: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */\n scrollbarWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */\n shapeImageThreshold: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */\n shapeMargin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */\n shapeOutside: string;\n shapeRendering: string;\n stopColor: string;\n stopOpacity: string;\n stroke: string;\n strokeDasharray: string;\n strokeDashoffset: string;\n strokeLinecap: string;\n strokeLinejoin: string;\n strokeMiterlimit: string;\n strokeOpacity: string;\n strokeWidth: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */\n tabSize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */\n tableLayout: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */\n textAlign: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */\n textAlignLast: string;\n textAnchor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */\n textCombineUpright: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */\n textDecoration: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */\n textDecorationColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */\n textDecorationLine: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */\n textDecorationSkipInk: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */\n textDecorationStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */\n textDecorationThickness: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */\n textEmphasis: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */\n textEmphasisColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */\n textEmphasisPosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */\n textEmphasisStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */\n textIndent: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */\n textOrientation: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */\n textOverflow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */\n textRendering: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */\n textShadow: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */\n textTransform: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */\n textUnderlineOffset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */\n textUnderlinePosition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */\n textWrap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */\n top: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */\n touchAction: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */\n transform: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */\n transformBox: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */\n transformOrigin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */\n transformStyle: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */\n transition: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */\n transitionDelay: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */\n transitionDuration: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */\n transitionProperty: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */\n transitionTimingFunction: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */\n translate: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */\n unicodeBidi: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */\n userSelect: string;\n vectorEffect: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */\n verticalAlign: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */\n visibility: string;\n /**\n * @deprecated This is a legacy alias of `alignContent`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content)\n */\n webkitAlignContent: string;\n /**\n * @deprecated This is a legacy alias of `alignItems`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items)\n */\n webkitAlignItems: string;\n /**\n * @deprecated This is a legacy alias of `alignSelf`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self)\n */\n webkitAlignSelf: string;\n /**\n * @deprecated This is a legacy alias of `animation`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation)\n */\n webkitAnimation: string;\n /**\n * @deprecated This is a legacy alias of `animationDelay`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay)\n */\n webkitAnimationDelay: string;\n /**\n * @deprecated This is a legacy alias of `animationDirection`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction)\n */\n webkitAnimationDirection: string;\n /**\n * @deprecated This is a legacy alias of `animationDuration`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration)\n */\n webkitAnimationDuration: string;\n /**\n * @deprecated This is a legacy alias of `animationFillMode`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode)\n */\n webkitAnimationFillMode: string;\n /**\n * @deprecated This is a legacy alias of `animationIterationCount`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count)\n */\n webkitAnimationIterationCount: string;\n /**\n * @deprecated This is a legacy alias of `animationName`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name)\n */\n webkitAnimationName: string;\n /**\n * @deprecated This is a legacy alias of `animationPlayState`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state)\n */\n webkitAnimationPlayState: string;\n /**\n * @deprecated This is a legacy alias of `animationTimingFunction`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function)\n */\n webkitAnimationTimingFunction: string;\n /**\n * @deprecated This is a legacy alias of `appearance`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance)\n */\n webkitAppearance: string;\n /**\n * @deprecated This is a legacy alias of `backfaceVisibility`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility)\n */\n webkitBackfaceVisibility: string;\n /**\n * @deprecated This is a legacy alias of `backgroundClip`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip)\n */\n webkitBackgroundClip: string;\n /**\n * @deprecated This is a legacy alias of `backgroundOrigin`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin)\n */\n webkitBackgroundOrigin: string;\n /**\n * @deprecated This is a legacy alias of `backgroundSize`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size)\n */\n webkitBackgroundSize: string;\n /**\n * @deprecated This is a legacy alias of `borderBottomLeftRadius`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius)\n */\n webkitBorderBottomLeftRadius: string;\n /**\n * @deprecated This is a legacy alias of `borderBottomRightRadius`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius)\n */\n webkitBorderBottomRightRadius: string;\n /**\n * @deprecated This is a legacy alias of `borderRadius`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius)\n */\n webkitBorderRadius: string;\n /**\n * @deprecated This is a legacy alias of `borderTopLeftRadius`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius)\n */\n webkitBorderTopLeftRadius: string;\n /**\n * @deprecated This is a legacy alias of `borderTopRightRadius`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius)\n */\n webkitBorderTopRightRadius: string;\n /**\n * @deprecated This is a legacy alias of `boxAlign`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align)\n */\n webkitBoxAlign: string;\n /**\n * @deprecated This is a legacy alias of `boxFlex`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex)\n */\n webkitBoxFlex: string;\n /**\n * @deprecated This is a legacy alias of `boxOrdinalGroup`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group)\n */\n webkitBoxOrdinalGroup: string;\n /**\n * @deprecated This is a legacy alias of `boxOrient`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient)\n */\n webkitBoxOrient: string;\n /**\n * @deprecated This is a legacy alias of `boxPack`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack)\n */\n webkitBoxPack: string;\n /**\n * @deprecated This is a legacy alias of `boxShadow`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow)\n */\n webkitBoxShadow: string;\n /**\n * @deprecated This is a legacy alias of `boxSizing`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing)\n */\n webkitBoxSizing: string;\n /**\n * @deprecated This is a legacy alias of `filter`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter)\n */\n webkitFilter: string;\n /**\n * @deprecated This is a legacy alias of `flex`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex)\n */\n webkitFlex: string;\n /**\n * @deprecated This is a legacy alias of `flexBasis`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis)\n */\n webkitFlexBasis: string;\n /**\n * @deprecated This is a legacy alias of `flexDirection`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction)\n */\n webkitFlexDirection: string;\n /**\n * @deprecated This is a legacy alias of `flexFlow`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow)\n */\n webkitFlexFlow: string;\n /**\n * @deprecated This is a legacy alias of `flexGrow`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow)\n */\n webkitFlexGrow: string;\n /**\n * @deprecated This is a legacy alias of `flexShrink`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink)\n */\n webkitFlexShrink: string;\n /**\n * @deprecated This is a legacy alias of `flexWrap`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap)\n */\n webkitFlexWrap: string;\n /**\n * @deprecated This is a legacy alias of `justifyContent`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content)\n */\n webkitJustifyContent: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */\n webkitLineClamp: string;\n /**\n * @deprecated This is a legacy alias of `mask`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask)\n */\n webkitMask: string;\n /**\n * @deprecated This is a legacy alias of `maskBorder`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border)\n */\n webkitMaskBoxImage: string;\n /**\n * @deprecated This is a legacy alias of `maskBorderOutset`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset)\n */\n webkitMaskBoxImageOutset: string;\n /**\n * @deprecated This is a legacy alias of `maskBorderRepeat`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat)\n */\n webkitMaskBoxImageRepeat: string;\n /**\n * @deprecated This is a legacy alias of `maskBorderSlice`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice)\n */\n webkitMaskBoxImageSlice: string;\n /**\n * @deprecated This is a legacy alias of `maskBorderSource`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source)\n */\n webkitMaskBoxImageSource: string;\n /**\n * @deprecated This is a legacy alias of `maskBorderWidth`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width)\n */\n webkitMaskBoxImageWidth: string;\n /**\n * @deprecated This is a legacy alias of `maskClip`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip)\n */\n webkitMaskClip: string;\n /**\n * @deprecated This is a legacy alias of `maskComposite`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite)\n */\n webkitMaskComposite: string;\n /**\n * @deprecated This is a legacy alias of `maskImage`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image)\n */\n webkitMaskImage: string;\n /**\n * @deprecated This is a legacy alias of `maskOrigin`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin)\n */\n webkitMaskOrigin: string;\n /**\n * @deprecated This is a legacy alias of `maskPosition`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position)\n */\n webkitMaskPosition: string;\n /**\n * @deprecated This is a legacy alias of `maskRepeat`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat)\n */\n webkitMaskRepeat: string;\n /**\n * @deprecated This is a legacy alias of `maskSize`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size)\n */\n webkitMaskSize: string;\n /**\n * @deprecated This is a legacy alias of `order`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order)\n */\n webkitOrder: string;\n /**\n * @deprecated This is a legacy alias of `perspective`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective)\n */\n webkitPerspective: string;\n /**\n * @deprecated This is a legacy alias of `perspectiveOrigin`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin)\n */\n webkitPerspectiveOrigin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */\n webkitTextFillColor: string;\n /**\n * @deprecated This is a legacy alias of `textSizeAdjust`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust)\n */\n webkitTextSizeAdjust: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */\n webkitTextStroke: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */\n webkitTextStrokeColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */\n webkitTextStrokeWidth: string;\n /**\n * @deprecated This is a legacy alias of `transform`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform)\n */\n webkitTransform: string;\n /**\n * @deprecated This is a legacy alias of `transformOrigin`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin)\n */\n webkitTransformOrigin: string;\n /**\n * @deprecated This is a legacy alias of `transformStyle`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style)\n */\n webkitTransformStyle: string;\n /**\n * @deprecated This is a legacy alias of `transition`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition)\n */\n webkitTransition: string;\n /**\n * @deprecated This is a legacy alias of `transitionDelay`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay)\n */\n webkitTransitionDelay: string;\n /**\n * @deprecated This is a legacy alias of `transitionDuration`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration)\n */\n webkitTransitionDuration: string;\n /**\n * @deprecated This is a legacy alias of `transitionProperty`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property)\n */\n webkitTransitionProperty: string;\n /**\n * @deprecated This is a legacy alias of `transitionTimingFunction`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function)\n */\n webkitTransitionTimingFunction: string;\n /**\n * @deprecated This is a legacy alias of `userSelect`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select)\n */\n webkitUserSelect: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */\n whiteSpace: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */\n widows: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */\n width: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */\n willChange: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */\n wordBreak: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */\n wordSpacing: string;\n /** @deprecated */\n wordWrap: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */\n writingMode: string;\n x: string;\n y: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */\n zIndex: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */\n getPropertyPriority(property: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */\n getPropertyValue(property: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */\n item(index: number): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */\n removeProperty(property: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */\n setProperty(property: string, value: string | null, priority?: string): void;\n [index: number]: string;\n}\n\ndeclare var CSSStyleDeclaration: {\n prototype: CSSStyleDeclaration;\n new(): CSSStyleDeclaration;\n};\n\n/**\n * CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule)\n */\ninterface CSSStyleRule extends CSSGroupingRule {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */\n selectorText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */\n readonly style: CSSStyleDeclaration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */\n readonly styleMap: StylePropertyMap;\n}\n\ndeclare var CSSStyleRule: {\n prototype: CSSStyleRule;\n new(): CSSStyleRule;\n};\n\n/**\n * A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet)\n */\ninterface CSSStyleSheet extends StyleSheet {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */\n readonly cssRules: CSSRuleList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */\n readonly ownerRule: CSSRule | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules)\n */\n readonly rules: CSSRuleList;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule)\n */\n addRule(selector?: string, style?: string, index?: number): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */\n deleteRule(index: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */\n insertRule(rule: string, index?: number): number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule)\n */\n removeRule(index?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */\n replace(text: string): Promise<CSSStyleSheet>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */\n replaceSync(text: string): void;\n}\n\ndeclare var CSSStyleSheet: {\n prototype: CSSStyleSheet;\n new(options?: CSSStyleSheetInit): CSSStyleSheet;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */\ninterface CSSStyleValue {\n toString(): string;\n}\n\ndeclare var CSSStyleValue: {\n prototype: CSSStyleValue;\n new(): CSSStyleValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */\n parse(property: string, cssText: string): CSSStyleValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */\n parseAll(property: string, cssText: string): CSSStyleValue[];\n};\n\n/**\n * An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule)\n */\ninterface CSSSupportsRule extends CSSConditionRule {\n}\n\ndeclare var CSSSupportsRule: {\n prototype: CSSSupportsRule;\n new(): CSSSupportsRule;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */\ninterface CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */\n is2D: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */\n toMatrix(): DOMMatrix;\n toString(): string;\n}\n\ndeclare var CSSTransformComponent: {\n prototype: CSSTransformComponent;\n new(): CSSTransformComponent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */\ninterface CSSTransformValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */\n readonly is2D: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */\n toMatrix(): DOMMatrix;\n forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;\n [index: number]: CSSTransformComponent;\n}\n\ndeclare var CSSTransformValue: {\n prototype: CSSTransformValue;\n new(transforms: CSSTransformComponent[]): CSSTransformValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */\ninterface CSSTransition extends Animation {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */\n readonly transitionProperty: string;\n addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CSSTransition: {\n prototype: CSSTransition;\n new(): CSSTransition;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */\ninterface CSSTranslate extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */\n x: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */\n y: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */\n z: CSSNumericValue;\n}\n\ndeclare var CSSTranslate: {\n prototype: CSSTranslate;\n new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */\ninterface CSSUnitValue extends CSSNumericValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */\n readonly unit: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */\n value: number;\n}\n\ndeclare var CSSUnitValue: {\n prototype: CSSUnitValue;\n new(value: number, unit: string): CSSUnitValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */\ninterface CSSUnparsedValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */\n readonly length: number;\n forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;\n [index: number]: CSSUnparsedSegment;\n}\n\ndeclare var CSSUnparsedValue: {\n prototype: CSSUnparsedValue;\n new(members: CSSUnparsedSegment[]): CSSUnparsedValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */\ninterface CSSVariableReferenceValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */\n readonly fallback: CSSUnparsedValue | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */\n variable: string;\n}\n\ndeclare var CSSVariableReferenceValue: {\n prototype: CSSVariableReferenceValue;\n new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;\n};\n\n/**\n * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don\'t have to use it in conjunction with service workers, even though it is defined in the service worker spec.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)\n */\ninterface Cache {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */\n add(request: RequestInfo | URL): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */\n addAll(requests: RequestInfo[]): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */\n delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */\n keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */\n match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */\n matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */\n put(request: RequestInfo | URL, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n prototype: Cache;\n new(): Cache;\n};\n\n/**\n * The storage for Cache objects.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage)\n */\ninterface CacheStorage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */\n delete(cacheName: string): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */\n has(cacheName: string): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */\n keys(): Promise<string[]>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */\n match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */\n open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n prototype: CacheStorage;\n new(): CacheStorage;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */\ninterface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */\n readonly canvas: HTMLCanvasElement;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */\n requestFrame(): void;\n addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CanvasCaptureMediaStreamTrack: {\n prototype: CanvasCaptureMediaStreamTrack;\n new(): CanvasCaptureMediaStreamTrack;\n};\n\ninterface CanvasCompositing {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */\n globalAlpha: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */\n globalCompositeOperation: GlobalCompositeOperation;\n}\n\ninterface CanvasDrawImage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */\n drawImage(image: CanvasImageSource, dx: number, dy: number): void;\n drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;\n drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;\n}\n\ninterface CanvasDrawPath {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */\n beginPath(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */\n clip(fillRule?: CanvasFillRule): void;\n clip(path: Path2D, fillRule?: CanvasFillRule): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */\n fill(fillRule?: CanvasFillRule): void;\n fill(path: Path2D, fillRule?: CanvasFillRule): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */\n isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;\n isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */\n isPointInStroke(x: number, y: number): boolean;\n isPointInStroke(path: Path2D, x: number, y: number): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */\n stroke(): void;\n stroke(path: Path2D): void;\n}\n\ninterface CanvasFillStrokeStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */\n fillStyle: string | CanvasGradient | CanvasPattern;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */\n strokeStyle: string | CanvasGradient | CanvasPattern;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */\n createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */\n createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */\n createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */\n createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n}\n\ninterface CanvasFilters {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */\n filter: string;\n}\n\n/**\n * An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)\n */\ninterface CanvasGradient {\n /**\n * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.\n *\n * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)\n */\n addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n prototype: CanvasGradient;\n new(): CanvasGradient;\n};\n\ninterface CanvasImageData {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */\n createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n createImageData(imagedata: ImageData): ImageData;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */\n getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */\n putImageData(imagedata: ImageData, dx: number, dy: number): void;\n putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;\n}\n\ninterface CanvasImageSmoothing {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */\n imageSmoothingEnabled: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */\n imageSmoothingQuality: ImageSmoothingQuality;\n}\n\ninterface CanvasPath {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */\n arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */\n bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */\n closePath(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */\n ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */\n lineTo(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */\n moveTo(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */\n quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */\n rect(x: number, y: number, w: number, h: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */\n roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;\n}\n\ninterface CanvasPathDrawingStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */\n lineCap: CanvasLineCap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */\n lineDashOffset: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */\n lineJoin: CanvasLineJoin;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */\n lineWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */\n miterLimit: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */\n getLineDash(): number[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */\n setLineDash(segments: number[]): void;\n}\n\n/**\n * An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern)\n */\ninterface CanvasPattern {\n /**\n * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform)\n */\n setTransform(transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var CanvasPattern: {\n prototype: CanvasPattern;\n new(): CanvasPattern;\n};\n\ninterface CanvasRect {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */\n clearRect(x: number, y: number, w: number, h: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */\n fillRect(x: number, y: number, w: number, h: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */\n strokeRect(x: number, y: number, w: number, h: number): void;\n}\n\n/**\n * The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D)\n */\ninterface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */\n readonly canvas: HTMLCanvasElement;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */\n getContextAttributes(): CanvasRenderingContext2DSettings;\n}\n\ndeclare var CanvasRenderingContext2D: {\n prototype: CanvasRenderingContext2D;\n new(): CanvasRenderingContext2D;\n};\n\ninterface CanvasShadowStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */\n shadowBlur: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */\n shadowColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */\n shadowOffsetX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */\n shadowOffsetY: number;\n}\n\ninterface CanvasState {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */\n reset(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */\n restore(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */\n save(): void;\n}\n\ninterface CanvasText {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */\n fillText(text: string, x: number, y: number, maxWidth?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */\n measureText(text: string): TextMetrics;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */\n strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n}\n\ninterface CanvasTextDrawingStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */\n direction: CanvasDirection;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */\n font: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */\n fontKerning: CanvasFontKerning;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */\n fontStretch: CanvasFontStretch;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */\n fontVariantCaps: CanvasFontVariantCaps;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */\n letterSpacing: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */\n textAlign: CanvasTextAlign;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */\n textBaseline: CanvasTextBaseline;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */\n textRendering: CanvasTextRendering;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */\n wordSpacing: string;\n}\n\ninterface CanvasTransform {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */\n getTransform(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */\n resetTransform(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */\n rotate(angle: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */\n scale(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */\n setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n setTransform(transform?: DOMMatrix2DInit): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */\n transform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */\n translate(x: number, y: number): void;\n}\n\ninterface CanvasUserInterface {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */\n drawFocusIfNeeded(element: Element): void;\n drawFocusIfNeeded(path: Path2D, element: Element): void;\n}\n\n/**\n * The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode)\n */\ninterface ChannelMergerNode extends AudioNode {\n}\n\ndeclare var ChannelMergerNode: {\n prototype: ChannelMergerNode;\n new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;\n};\n\n/**\n * The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode)\n */\ninterface ChannelSplitterNode extends AudioNode {\n}\n\ndeclare var ChannelSplitterNode: {\n prototype: ChannelSplitterNode;\n new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;\n};\n\n/**\n * The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren\'t any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren\'t abstract.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData)\n */\ninterface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */\n data: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */\n readonly length: number;\n readonly ownerDocument: Document;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */\n appendData(data: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */\n deleteData(offset: number, count: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */\n insertData(offset: number, data: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */\n replaceData(offset: number, count: number, data: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */\n substringData(offset: number, count: number): string;\n}\n\ndeclare var CharacterData: {\n prototype: CharacterData;\n new(): CharacterData;\n};\n\ninterface ChildNode extends Node {\n /**\n * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after)\n */\n after(...nodes: (Node | string)[]): void;\n /**\n * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before)\n */\n before(...nodes: (Node | string)[]): void;\n /**\n * Removes node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove)\n */\n remove(): void;\n /**\n * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith)\n */\n replaceWith(...nodes: (Node | string)[]): void;\n}\n\n/** @deprecated */\ninterface ClientRect extends DOMRect {\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard)\n */\ninterface Clipboard extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */\n read(): Promise<ClipboardItems>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */\n readText(): Promise<string>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */\n write(data: ClipboardItems): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */\n writeText(data: string): Promise<void>;\n}\n\ndeclare var Clipboard: {\n prototype: Clipboard;\n new(): Clipboard;\n};\n\n/**\n * Events providing information related to modification of the clipboard, that is cut, copy, and paste events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent)\n */\ninterface ClipboardEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */\n readonly clipboardData: DataTransfer | null;\n}\n\ndeclare var ClipboardEvent: {\n prototype: ClipboardEvent;\n new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem)\n */\ninterface ClipboardItem {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */\n readonly types: ReadonlyArray<string>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */\n getType(type: string): Promise<Blob>;\n}\n\ndeclare var ClipboardItem: {\n prototype: ClipboardItem;\n new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;\n};\n\n/**\n * A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object\'s onclose attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)\n */\ninterface CloseEvent extends Event {\n /**\n * Returns the WebSocket connection close code provided by the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)\n */\n readonly code: number;\n /**\n * Returns the WebSocket connection close reason provided by the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)\n */\n readonly reason: string;\n /**\n * Returns true if the connection closed cleanly; false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)\n */\n readonly wasClean: boolean;\n}\n\ndeclare var CloseEvent: {\n prototype: CloseEvent;\n new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\n/**\n * Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment)\n */\ninterface Comment extends CharacterData {\n}\n\ndeclare var Comment: {\n prototype: Comment;\n new(data?: string): Comment;\n};\n\n/**\n * The DOM CompositionEvent represents events that occur due to the user indirectly entering text.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent)\n */\ninterface CompositionEvent extends UIEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */\n readonly data: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent)\n */\n initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;\n}\n\ndeclare var CompositionEvent: {\n prototype: CompositionEvent;\n new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */\ninterface CompressionStream extends GenericTransformStream {\n}\n\ndeclare var CompressionStream: {\n prototype: CompressionStream;\n new(format: CompressionFormat): CompressionStream;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */\ninterface ConstantSourceNode extends AudioScheduledSourceNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */\n readonly offset: AudioParam;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ConstantSourceNode: {\n prototype: ConstantSourceNode;\n new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;\n};\n\n/**\n * An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode)\n */\ninterface ConvolverNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */\n buffer: AudioBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */\n normalize: boolean;\n}\n\ndeclare var ConvolverNode: {\n prototype: ConvolverNode;\n new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;\n};\n\n/**\n * This Streams API interface provides\xa0a built-in byte length queuing strategy that can be used when constructing streams.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)\n */\ninterface CountQueuingStrategy extends QueuingStrategy {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */\n readonly highWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */\n readonly size: QueuingStrategySize;\n}\n\ndeclare var CountQueuingStrategy: {\n prototype: CountQueuingStrategy;\n new(init: QueuingStrategyInit): CountQueuingStrategy;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential)\n */\ninterface Credential {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */\n readonly type: string;\n}\n\ndeclare var Credential: {\n prototype: Credential;\n new(): Credential;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer)\n */\ninterface CredentialsContainer {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */\n create(options?: CredentialCreationOptions): Promise<Credential | null>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */\n get(options?: CredentialRequestOptions): Promise<Credential | null>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */\n preventSilentAccess(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */\n store(credential: Credential): Promise<void>;\n}\n\ndeclare var CredentialsContainer: {\n prototype: CredentialsContainer;\n new(): CredentialsContainer;\n};\n\n/**\n * Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)\n */\ninterface Crypto {\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)\n */\n readonly subtle: SubtleCrypto;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */\n getRandomValues<T extends ArrayBufferView | null>(array: T): T;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)\n */\n randomUUID(): `${string}-${string}-${string}-${string}-${string}`;\n}\n\ndeclare var Crypto: {\n prototype: Crypto;\n new(): Crypto;\n};\n\n/**\n * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)\n */\ninterface CryptoKey {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */\n readonly algorithm: KeyAlgorithm;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */\n readonly extractable: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */\n readonly type: KeyType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */\n readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */\ninterface CustomElementRegistry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */\n define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */\n get(name: string): CustomElementConstructor | undefined;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */\n getName(constructor: CustomElementConstructor): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */\n upgrade(root: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */\n whenDefined(name: string): Promise<CustomElementConstructor>;\n}\n\ndeclare var CustomElementRegistry: {\n prototype: CustomElementRegistry;\n new(): CustomElementRegistry;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */\ninterface CustomEvent<T = any> extends Event {\n /**\n * Returns any custom data event was created with. Typically used for synthetic events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)\n */\n readonly detail: T;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)\n */\n initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;\n}\n\ndeclare var CustomEvent: {\n prototype: CustomEvent;\n new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\n/**\n * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)\n */\ninterface DOMException extends Error {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)\n */\n readonly code: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */\n readonly message: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */\n readonly name: string;\n readonly INDEX_SIZE_ERR: 1;\n readonly DOMSTRING_SIZE_ERR: 2;\n readonly HIERARCHY_REQUEST_ERR: 3;\n readonly WRONG_DOCUMENT_ERR: 4;\n readonly INVALID_CHARACTER_ERR: 5;\n readonly NO_DATA_ALLOWED_ERR: 6;\n readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n readonly NOT_FOUND_ERR: 8;\n readonly NOT_SUPPORTED_ERR: 9;\n readonly INUSE_ATTRIBUTE_ERR: 10;\n readonly INVALID_STATE_ERR: 11;\n readonly SYNTAX_ERR: 12;\n readonly INVALID_MODIFICATION_ERR: 13;\n readonly NAMESPACE_ERR: 14;\n readonly INVALID_ACCESS_ERR: 15;\n readonly VALIDATION_ERR: 16;\n readonly TYPE_MISMATCH_ERR: 17;\n readonly SECURITY_ERR: 18;\n readonly NETWORK_ERR: 19;\n readonly ABORT_ERR: 20;\n readonly URL_MISMATCH_ERR: 21;\n readonly QUOTA_EXCEEDED_ERR: 22;\n readonly TIMEOUT_ERR: 23;\n readonly INVALID_NODE_TYPE_ERR: 24;\n readonly DATA_CLONE_ERR: 25;\n}\n\ndeclare var DOMException: {\n prototype: DOMException;\n new(message?: string, name?: string): DOMException;\n readonly INDEX_SIZE_ERR: 1;\n readonly DOMSTRING_SIZE_ERR: 2;\n readonly HIERARCHY_REQUEST_ERR: 3;\n readonly WRONG_DOCUMENT_ERR: 4;\n readonly INVALID_CHARACTER_ERR: 5;\n readonly NO_DATA_ALLOWED_ERR: 6;\n readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n readonly NOT_FOUND_ERR: 8;\n readonly NOT_SUPPORTED_ERR: 9;\n readonly INUSE_ATTRIBUTE_ERR: 10;\n readonly INVALID_STATE_ERR: 11;\n readonly SYNTAX_ERR: 12;\n readonly INVALID_MODIFICATION_ERR: 13;\n readonly NAMESPACE_ERR: 14;\n readonly INVALID_ACCESS_ERR: 15;\n readonly VALIDATION_ERR: 16;\n readonly TYPE_MISMATCH_ERR: 17;\n readonly SECURITY_ERR: 18;\n readonly NETWORK_ERR: 19;\n readonly ABORT_ERR: 20;\n readonly URL_MISMATCH_ERR: 21;\n readonly QUOTA_EXCEEDED_ERR: 22;\n readonly TIMEOUT_ERR: 23;\n readonly INVALID_NODE_TYPE_ERR: 24;\n readonly DATA_CLONE_ERR: 25;\n};\n\n/**\n * An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation)\n */\ninterface DOMImplementation {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */\n createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */\n createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */\n createHTMLDocument(title?: string): Document;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature)\n */\n hasFeature(...args: any[]): true;\n}\n\ndeclare var DOMImplementation: {\n prototype: DOMImplementation;\n new(): DOMImplementation;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */\ninterface DOMMatrix extends DOMMatrixReadOnly {\n a: number;\n b: number;\n c: number;\n d: number;\n e: number;\n f: number;\n m11: number;\n m12: number;\n m13: number;\n m14: number;\n m21: number;\n m22: number;\n m23: number;\n m24: number;\n m31: number;\n m32: number;\n m33: number;\n m34: number;\n m41: number;\n m42: number;\n m43: number;\n m44: number;\n invertSelf(): DOMMatrix;\n multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */\n scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */\n scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n setMatrixValue(transformList: string): DOMMatrix;\n skewXSelf(sx?: number): DOMMatrix;\n skewYSelf(sy?: number): DOMMatrix;\n translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrix: {\n prototype: DOMMatrix;\n new(init?: string | number[]): DOMMatrix;\n fromFloat32Array(array32: Float32Array): DOMMatrix;\n fromFloat64Array(array64: Float64Array): DOMMatrix;\n fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\ntype SVGMatrix = DOMMatrix;\ndeclare var SVGMatrix: typeof DOMMatrix;\n\ntype WebKitCSSMatrix = DOMMatrix;\ndeclare var WebKitCSSMatrix: typeof DOMMatrix;\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */\ninterface DOMMatrixReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */\n readonly a: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */\n readonly b: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */\n readonly c: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */\n readonly d: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */\n readonly e: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */\n readonly f: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */\n readonly is2D: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */\n readonly isIdentity: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */\n readonly m11: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */\n readonly m12: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */\n readonly m13: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */\n readonly m14: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */\n readonly m21: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */\n readonly m22: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */\n readonly m23: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */\n readonly m24: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */\n readonly m31: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */\n readonly m32: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */\n readonly m33: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */\n readonly m34: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */\n readonly m41: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */\n readonly m42: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */\n readonly m43: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */\n readonly m44: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */\n flipX(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */\n flipY(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */\n inverse(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */\n multiply(other?: DOMMatrixInit): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */\n rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */\n rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */\n rotateFromVector(x?: number, y?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */\n scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */\n scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)\n */\n scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */\n skewX(sx?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */\n skewY(sy?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */\n toFloat32Array(): Float32Array;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */\n toFloat64Array(): Float64Array;\n toJSON(): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */\n transformPoint(point?: DOMPointInit): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */\n translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\n toString(): string;\n}\n\ndeclare var DOMMatrixReadOnly: {\n prototype: DOMMatrixReadOnly;\n new(init?: string | number[]): DOMMatrixReadOnly;\n fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;\n fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\n fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n};\n\n/**\n * Provides the ability to parse XML or HTML source code from a string into a DOM Document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser)\n */\ninterface DOMParser {\n /**\n * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser).\n *\n * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.\n *\n * Note that script elements are not evaluated during parsing, and the resulting document\'s encoding will always be UTF-8.\n *\n * Values other than the above for type will cause a TypeError exception to be thrown.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString)\n */\n parseFromString(string: string, type: DOMParserSupportedType): Document;\n}\n\ndeclare var DOMParser: {\n prototype: DOMParser;\n new(): DOMParser;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */\ninterface DOMPoint extends DOMPointReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */\n w: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */\n x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */\n y: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */\n z: number;\n}\n\ndeclare var DOMPoint: {\n prototype: DOMPoint;\n new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */\n fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\ntype SVGPoint = DOMPoint;\ndeclare var SVGPoint: typeof DOMPoint;\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */\ninterface DOMPointReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */\n readonly w: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */\n readonly x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */\n readonly y: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */\n readonly z: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */\n matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */\n toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n prototype: DOMPointReadOnly;\n new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */\n fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */\ninterface DOMQuad {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */\n readonly p1: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */\n readonly p2: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */\n readonly p3: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */\n readonly p4: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */\n getBounds(): DOMRect;\n toJSON(): any;\n}\n\ndeclare var DOMQuad: {\n prototype: DOMQuad;\n new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\n fromQuad(other?: DOMQuadInit): DOMQuad;\n fromRect(other?: DOMRectInit): DOMQuad;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */\ninterface DOMRect extends DOMRectReadOnly {\n height: number;\n width: number;\n x: number;\n y: number;\n}\n\ndeclare var DOMRect: {\n prototype: DOMRect;\n new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n fromRect(other?: DOMRectInit): DOMRect;\n};\n\ntype SVGRect = DOMRect;\ndeclare var SVGRect: typeof DOMRect;\n\ninterface DOMRectList {\n readonly length: number;\n item(index: number): DOMRect | null;\n [index: number]: DOMRect;\n}\n\ndeclare var DOMRectList: {\n prototype: DOMRectList;\n new(): DOMRectList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */\ninterface DOMRectReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */\n readonly bottom: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */\n readonly height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */\n readonly left: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */\n readonly right: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */\n readonly top: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */\n readonly width: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */\n readonly x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */\n readonly y: number;\n toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */\n fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/**\n * A type returned by some APIs which contains a list of DOMString (strings).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)\n */\ninterface DOMStringList {\n /**\n * Returns the number of strings in strings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)\n */\n readonly length: number;\n /**\n * Returns true if strings contains string, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)\n */\n contains(string: string): boolean;\n /**\n * Returns the string with index index from strings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)\n */\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var DOMStringList: {\n prototype: DOMStringList;\n new(): DOMStringList;\n};\n\n/**\n * Used by the dataset\xa0HTML\xa0attribute to represent data for custom attributes added to elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap)\n */\ninterface DOMStringMap {\n [name: string]: string | undefined;\n}\n\ndeclare var DOMStringMap: {\n prototype: DOMStringMap;\n new(): DOMStringMap;\n};\n\n/**\n * A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList)\n */\ninterface DOMTokenList {\n /**\n * Returns the number of tokens.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length)\n */\n readonly length: number;\n /**\n * Returns the associated set as string.\n *\n * Can be set, to change the associated attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value)\n */\n value: string;\n toString(): string;\n /**\n * Adds all arguments passed, except those already present.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add)\n */\n add(...tokens: string[]): void;\n /**\n * Returns true if token is present, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains)\n */\n contains(token: string): boolean;\n /**\n * Returns the token with index index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item)\n */\n item(index: number): string | null;\n /**\n * Removes arguments passed, if they are present.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove)\n */\n remove(...tokens: string[]): void;\n /**\n * Replaces token with newToken.\n *\n * Returns true if token was replaced with newToken, and false otherwise.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace)\n */\n replace(token: string, newToken: string): boolean;\n /**\n * Returns true if token is in the associated attribute\'s supported tokens. Returns false otherwise.\n *\n * Throws a TypeError if the associated attribute has no supported tokens defined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports)\n */\n supports(token: string): boolean;\n /**\n * If force is not given, "toggles" token, removing it if it\'s present and adding it if it\'s not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).\n *\n * Returns true if token is now present, and false otherwise.\n *\n * Throws a "SyntaxError" DOMException if token is empty.\n *\n * Throws an "InvalidCharacterError" DOMException if token contains any spaces.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle)\n */\n toggle(token: string, force?: boolean): boolean;\n forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;\n [index: number]: string;\n}\n\ndeclare var DOMTokenList: {\n prototype: DOMTokenList;\n new(): DOMTokenList;\n};\n\n/**\n * Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer)\n */\ninterface DataTransfer {\n /**\n * Returns the kind of operation that is currently selected. If the kind of operation isn\'t one of those that is allowed by the effectAllowed attribute, then the operation will fail.\n *\n * Can be set, to change the selected operation.\n *\n * The possible values are "none", "copy", "link", and "move".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect)\n */\n dropEffect: "none" | "copy" | "link" | "move";\n /**\n * Returns the kinds of operations that are to be allowed.\n *\n * Can be set (during the dragstart event), to change the allowed operations.\n *\n * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed)\n */\n effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";\n /**\n * Returns a FileList of the files being dragged, if any.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files)\n */\n readonly files: FileList;\n /**\n * Returns a DataTransferItemList object, with the drag data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items)\n */\n readonly items: DataTransferItemList;\n /**\n * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types)\n */\n readonly types: ReadonlyArray<string>;\n /**\n * Removes the data of the specified formats. Removes all data if the argument is omitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData)\n */\n clearData(format?: string): void;\n /**\n * Returns the specified data. If there is no such data, returns the empty string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData)\n */\n getData(format: string): string;\n /**\n * Adds the specified data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData)\n */\n setData(format: string, data: string): void;\n /**\n * Uses the given element to update the drag feedback, replacing any previously specified feedback.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage)\n */\n setDragImage(image: Element, x: number, y: number): void;\n}\n\ndeclare var DataTransfer: {\n prototype: DataTransfer;\n new(): DataTransfer;\n};\n\n/**\n * One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem)\n */\ninterface DataTransferItem {\n /**\n * Returns the drag data item kind, one of: "string", "file".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind)\n */\n readonly kind: string;\n /**\n * Returns the drag data item type string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type)\n */\n readonly type: string;\n /**\n * Returns a File object, if the drag data item kind is File.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile)\n */\n getAsFile(): File | null;\n /**\n * Invokes the callback with the string data as the argument, if the drag data item kind is text.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString)\n */\n getAsString(callback: FunctionStringCallback | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */\n webkitGetAsEntry(): FileSystemEntry | null;\n}\n\ndeclare var DataTransferItem: {\n prototype: DataTransferItem;\n new(): DataTransferItem;\n};\n\n/**\n * A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList)\n */\ninterface DataTransferItemList {\n /**\n * Returns the number of items in the drag data store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length)\n */\n readonly length: number;\n /**\n * Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add)\n */\n add(data: string, type: string): DataTransferItem | null;\n add(data: File): DataTransferItem | null;\n /**\n * Removes all the entries in the drag data store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear)\n */\n clear(): void;\n /**\n * Removes the indexth entry in the drag data store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove)\n */\n remove(index: number): void;\n [index: number]: DataTransferItem;\n}\n\ndeclare var DataTransferItemList: {\n prototype: DataTransferItemList;\n new(): DataTransferItemList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */\ninterface DecompressionStream extends GenericTransformStream {\n}\n\ndeclare var DecompressionStream: {\n prototype: DecompressionStream;\n new(format: CompressionFormat): DecompressionStream;\n};\n\n/**\n * A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode)\n */\ninterface DelayNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */\n readonly delayTime: AudioParam;\n}\n\ndeclare var DelayNode: {\n prototype: DelayNode;\n new(context: BaseAudioContext, options?: DelayOptions): DelayNode;\n};\n\n/**\n * The DeviceMotionEvent provides web developers with information about the speed of changes for the device\'s position and orientation.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent)\n */\ninterface DeviceMotionEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */\n readonly acceleration: DeviceMotionEventAcceleration | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */\n readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */\n readonly interval: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */\n readonly rotationRate: DeviceMotionEventRotationRate | null;\n}\n\ndeclare var DeviceMotionEvent: {\n prototype: DeviceMotionEvent;\n new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration)\n */\ninterface DeviceMotionEventAcceleration {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */\n readonly x: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */\n readonly y: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */\n readonly z: number | null;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate)\n */\ninterface DeviceMotionEventRotationRate {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */\n readonly alpha: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */\n readonly beta: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */\n readonly gamma: number | null;\n}\n\n/**\n * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent)\n */\ninterface DeviceOrientationEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */\n readonly absolute: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */\n readonly alpha: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */\n readonly beta: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */\n readonly gamma: number | null;\n}\n\ndeclare var DeviceOrientationEvent: {\n prototype: DeviceOrientationEvent;\n new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;\n};\n\ninterface DocumentEventMap extends GlobalEventHandlersEventMap {\n "DOMContentLoaded": Event;\n "fullscreenchange": Event;\n "fullscreenerror": Event;\n "pointerlockchange": Event;\n "pointerlockerror": Event;\n "readystatechange": Event;\n "visibilitychange": Event;\n}\n\n/**\n * Any web page loaded in the browser and serves as an entry point into the web page\'s content, which is the DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document)\n */\ninterface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {\n /**\n * Sets or gets the URL for the current document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL)\n */\n readonly URL: string;\n /**\n * Sets or gets the color of all active links in the document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor)\n */\n alinkColor: string;\n /**\n * Returns a reference to the collection of elements contained by the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all)\n */\n readonly all: HTMLAllCollection;\n /**\n * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors)\n */\n readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;\n /**\n * Retrieves a collection of all applet objects in the document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets)\n */\n readonly applets: HTMLCollection;\n /**\n * Deprecated. Sets or retrieves a value that indicates the background color behind the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor)\n */\n bgColor: string;\n /**\n * Specifies the beginning and end of the document body.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body)\n */\n body: HTMLElement;\n /**\n * Returns document\'s encoding.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)\n */\n readonly characterSet: string;\n /**\n * Gets or sets the character set used to encode the object.\n * @deprecated This is a legacy alias of `characterSet`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)\n */\n readonly charset: string;\n /**\n * Gets a value that indicates whether standards-compliant mode is switched on for the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode)\n */\n readonly compatMode: string;\n /**\n * Returns document\'s content type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType)\n */\n readonly contentType: string;\n /**\n * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can\'t be applied to this resource, the empty string will be returned.\n *\n * Can be set, to add a new cookie to the element\'s set of HTTP cookies.\n *\n * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie)\n */\n cookie: string;\n /**\n * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.\n *\n * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript)\n */\n readonly currentScript: HTMLOrSVGScriptElement | null;\n /**\n * Returns the Window object of the active document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView)\n */\n readonly defaultView: (WindowProxy & typeof globalThis) | null;\n /**\n * Sets or gets a value that indicates whether the document can be edited.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode)\n */\n designMode: string;\n /**\n * Sets or retrieves a value that indicates the reading order of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir)\n */\n dir: string;\n /**\n * Gets an object representing the document type declaration associated with the current document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype)\n */\n readonly doctype: DocumentType | null;\n /**\n * Gets a reference to the root node of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement)\n */\n readonly documentElement: HTMLElement;\n /**\n * Returns document\'s URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI)\n */\n readonly documentURI: string;\n /**\n * Sets or gets the security domain of the document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain)\n */\n domain: string;\n /**\n * Retrieves a collection of all embed objects in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds)\n */\n readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;\n /**\n * Sets or gets the foreground (text) color of the document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor)\n */\n fgColor: string;\n /**\n * Retrieves a collection, in source order, of all form objects in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms)\n */\n readonly forms: HTMLCollectionOf<HTMLFormElement>;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen)\n */\n readonly fullscreen: boolean;\n /**\n * Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled)\n */\n readonly fullscreenEnabled: boolean;\n /**\n * Returns the head element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head)\n */\n readonly head: HTMLHeadElement;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */\n readonly hidden: boolean;\n /**\n * Retrieves a collection, in source order, of img objects in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images)\n */\n readonly images: HTMLCollectionOf<HTMLImageElement>;\n /**\n * Gets the implementation object of the current document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation)\n */\n readonly implementation: DOMImplementation;\n /**\n * Returns the character encoding used to create the webpage that is loaded into the document object.\n * @deprecated This is a legacy alias of `characterSet`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)\n */\n readonly inputEncoding: string;\n /**\n * Gets the date that the page was last modified, if the page supplies one.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified)\n */\n readonly lastModified: string;\n /**\n * Sets or gets the color of the document links.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor)\n */\n linkColor: string;\n /**\n * Retrieves a collection of all a objects that specify the href property and all area objects in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links)\n */\n readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;\n /**\n * Contains information about the current URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location)\n */\n get location(): Location;\n set location(href: string | Location);\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */\n onfullscreenchange: ((this: Document, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */\n onfullscreenerror: ((this: Document, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */\n onpointerlockchange: ((this: Document, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */\n onpointerlockerror: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when the state of the object has changed.\n * @param ev The event\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event)\n */\n onreadystatechange: ((this: Document, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */\n onvisibilitychange: ((this: Document, ev: Event) => any) | null;\n readonly ownerDocument: null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */\n readonly pictureInPictureEnabled: boolean;\n /**\n * Return an HTMLCollection of the embed elements in the Document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins)\n */\n readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;\n /**\n * Retrieves a value that indicates the current state of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState)\n */\n readonly readyState: DocumentReadyState;\n /**\n * Gets the URL of the location that referred the user to the current page.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer)\n */\n readonly referrer: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement)\n */\n readonly rootElement: SVGSVGElement | null;\n /**\n * Retrieves a collection of all script objects in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts)\n */\n readonly scripts: HTMLCollectionOf<HTMLScriptElement>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */\n readonly scrollingElement: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */\n readonly timeline: DocumentTimeline;\n /**\n * Contains the title of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title)\n */\n title: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */\n readonly visibilityState: DocumentVisibilityState;\n /**\n * Sets or gets the color of the links that the user has visited.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor)\n */\n vlinkColor: string;\n /**\n * Moves node from another document and returns it.\n *\n * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode)\n */\n adoptNode<T extends Node>(node: T): T;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/captureEvents)\n */\n captureEvents(): void;\n /** @deprecated */\n caretRangeFromPoint(x: number, y: number): Range | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear)\n */\n clear(): void;\n /**\n * Closes an output stream and forces the sent data to display.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close)\n */\n close(): void;\n /**\n * Creates an attribute object with a specified name.\n * @param name String that sets the attribute object\'s name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute)\n */\n createAttribute(localName: string): Attr;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */\n createAttributeNS(namespace: string | null, qualifiedName: string): Attr;\n /**\n * Returns a CDATASection node whose data is data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection)\n */\n createCDATASection(data: string): CDATASection;\n /**\n * Creates a comment object with the specified data.\n * @param data Sets the comment object\'s data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment)\n */\n createComment(data: string): Comment;\n /**\n * Creates a new document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment)\n */\n createDocumentFragment(): DocumentFragment;\n /**\n * Creates an instance of the element for the specified tag.\n * @param tagName The name of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement)\n */\n createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];\n /** @deprecated */\n createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];\n createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;\n /**\n * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.\n *\n * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.\n *\n * If one of the following conditions is true a "NamespaceError" DOMException will be thrown:\n *\n * localName does not match the QName production.\n * Namespace prefix is not null and namespace is the empty string.\n * Namespace prefix is "xml" and namespace is not the XML namespace.\n * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.\n * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".\n *\n * When supplied, options\'s is can be used to create a customized built-in element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS)\n */\n createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;\n createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;\n createElementNS<K extends keyof MathMLElementTagNameMap>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K];\n createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement;\n createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;\n createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */\n createEvent(eventInterface: "AnimationEvent"): AnimationEvent;\n createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;\n createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;\n createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;\n createEvent(eventInterface: "BlobEvent"): BlobEvent;\n createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;\n createEvent(eventInterface: "CloseEvent"): CloseEvent;\n createEvent(eventInterface: "CompositionEvent"): CompositionEvent;\n createEvent(eventInterface: "CustomEvent"): CustomEvent;\n createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;\n createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;\n createEvent(eventInterface: "DragEvent"): DragEvent;\n createEvent(eventInterface: "ErrorEvent"): ErrorEvent;\n createEvent(eventInterface: "Event"): Event;\n createEvent(eventInterface: "Events"): Event;\n createEvent(eventInterface: "FocusEvent"): FocusEvent;\n createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;\n createEvent(eventInterface: "FormDataEvent"): FormDataEvent;\n createEvent(eventInterface: "GamepadEvent"): GamepadEvent;\n createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;\n createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;\n createEvent(eventInterface: "InputEvent"): InputEvent;\n createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;\n createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;\n createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;\n createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;\n createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;\n createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;\n createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;\n createEvent(eventInterface: "MessageEvent"): MessageEvent;\n createEvent(eventInterface: "MouseEvent"): MouseEvent;\n createEvent(eventInterface: "MouseEvents"): MouseEvent;\n createEvent(eventInterface: "MutationEvent"): MutationEvent;\n createEvent(eventInterface: "MutationEvents"): MutationEvent;\n createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;\n createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;\n createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;\n createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;\n createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent;\n createEvent(eventInterface: "PointerEvent"): PointerEvent;\n createEvent(eventInterface: "PopStateEvent"): PopStateEvent;\n createEvent(eventInterface: "ProgressEvent"): ProgressEvent;\n createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;\n createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;\n createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;\n createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;\n createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;\n createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;\n createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;\n createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;\n createEvent(eventInterface: "StorageEvent"): StorageEvent;\n createEvent(eventInterface: "SubmitEvent"): SubmitEvent;\n createEvent(eventInterface: "ToggleEvent"): ToggleEvent;\n createEvent(eventInterface: "TouchEvent"): TouchEvent;\n createEvent(eventInterface: "TrackEvent"): TrackEvent;\n createEvent(eventInterface: "TransitionEvent"): TransitionEvent;\n createEvent(eventInterface: "UIEvent"): UIEvent;\n createEvent(eventInterface: "UIEvents"): UIEvent;\n createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;\n createEvent(eventInterface: "WheelEvent"): WheelEvent;\n createEvent(eventInterface: string): Event;\n /**\n * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n * @param root The root element or node to start traversing on.\n * @param whatToShow The type of nodes or elements to appear in the node list\n * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator)\n */\n createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;\n /**\n * Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction)\n */\n createProcessingInstruction(target: string, data: string): ProcessingInstruction;\n /**\n * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange)\n */\n createRange(): Range;\n /**\n * Creates a text string from the specified value.\n * @param data String that specifies the nodeValue property of the text node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode)\n */\n createTextNode(data: string): Text;\n /**\n * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.\n * @param root The root element or node to start traversing on.\n * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.\n * @param filter A custom NodeFilter function to use.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker)\n */\n createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;\n /**\n * Executes a command on the current document, current selection, or the given range.\n * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.\n * @param showUI Display the user interface, defaults to false.\n * @param value Value to assign.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand)\n */\n execCommand(commandId: string, showUI?: boolean, value?: string): boolean;\n /**\n * Stops document\'s fullscreen element from being displayed fullscreen and resolves promise when done.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen)\n */\n exitFullscreen(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */\n exitPictureInPicture(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */\n exitPointerLock(): void;\n /**\n * Returns a reference to the first object with the specified value of the ID attribute.\n * @param elementId String that specifies the ID value.\n */\n getElementById(elementId: string): HTMLElement | null;\n /**\n * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName)\n */\n getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n /**\n * Gets a collection of objects based on the value of the NAME or ID attribute.\n * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName)\n */\n getElementsByName(elementName: string): NodeListOf<HTMLElement>;\n /**\n * Retrieves a collection of objects based on the specified element name.\n * @param name Specifies the name of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName)\n */\n getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;\n /** @deprecated */\n getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;\n getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;\n /**\n * If namespace and localName are "*" returns a HTMLCollection of all descendant elements.\n *\n * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.\n *\n * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.\n *\n * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS)\n */\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;\n getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;\n /**\n * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection)\n */\n getSelection(): Selection | null;\n /**\n * Gets a value indicating whether the object currently has focus.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus)\n */\n hasFocus(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */\n hasStorageAccess(): Promise<boolean>;\n /**\n * Returns a copy of node. If deep is true, the copy also includes the node\'s descendants.\n *\n * If node is a document or a shadow root, throws a "NotSupportedError" DOMException.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode)\n */\n importNode<T extends Node>(node: T, deep?: boolean): T;\n /**\n * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.\n * @param url Specifies a MIME type for the document.\n * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.\n * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.\n * @param replace Specifies whether the existing entry for the document is replaced in the history list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open)\n */\n open(unused1?: string, unused2?: string): Document;\n open(url: string | URL, name: string, features: string): WindowProxy | null;\n /**\n * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.\n * @param commandId Specifies a command identifier.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled)\n */\n queryCommandEnabled(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.\n * @param commandId String that specifies a command identifier.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandIndeterm)\n */\n queryCommandIndeterm(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates the current state of the command.\n * @param commandId String that specifies a command identifier.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState)\n */\n queryCommandState(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates whether the current command is supported on the current range.\n * @param commandId Specifies a command identifier.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported)\n */\n queryCommandSupported(commandId: string): boolean;\n /**\n * Returns the current value of the document, range, or current selection for the given command.\n * @param commandId String that specifies a command identifier.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandValue)\n */\n queryCommandValue(commandId: string): string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/releaseEvents)\n */\n releaseEvents(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */\n requestStorageAccess(): Promise<void>;\n /**\n * Writes one or more HTML expressions to a document in the specified window.\n * @param content Specifies the text and HTML tags to write.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write)\n */\n write(...text: string[]): void;\n /**\n * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.\n * @param content The text and HTML tags to write.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln)\n */\n writeln(...text: string[]): void;\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Document: {\n prototype: Document;\n new(): Document;\n};\n\n/**\n * A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn\'t part of the active document tree structure, changes made to the fragment don\'t affect the document, cause reflow, or incur any performance impact that can occur when changes are made.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment)\n */\ninterface DocumentFragment extends Node, NonElementParentNode, ParentNode {\n readonly ownerDocument: Document;\n getElementById(elementId: string): HTMLElement | null;\n}\n\ndeclare var DocumentFragment: {\n prototype: DocumentFragment;\n new(): DocumentFragment;\n};\n\ninterface DocumentOrShadowRoot {\n /**\n * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.\n *\n * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe\'s node document.\n *\n * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that\'s located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement)\n */\n readonly activeElement: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */\n adoptedStyleSheets: CSSStyleSheet[];\n /**\n * Returns document\'s fullscreen element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement)\n */\n readonly fullscreenElement: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */\n readonly pictureInPictureElement: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */\n readonly pointerLockElement: Element | null;\n /**\n * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets)\n */\n readonly styleSheets: StyleSheetList;\n /**\n * Returns the element for the specified x coordinate and the specified y coordinate.\n * @param x The x-offset\n * @param y The y-offset\n */\n elementFromPoint(x: number, y: number): Element | null;\n elementsFromPoint(x: number, y: number): Element[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */\n getAnimations(): Animation[];\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */\ninterface DocumentTimeline extends AnimationTimeline {\n}\n\ndeclare var DocumentTimeline: {\n prototype: DocumentTimeline;\n new(options?: DocumentTimelineOptions): DocumentTimeline;\n};\n\n/**\n * A Node containing a doctype.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType)\n */\ninterface DocumentType extends Node, ChildNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */\n readonly name: string;\n readonly ownerDocument: Document;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */\n readonly publicId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */\n readonly systemId: string;\n}\n\ndeclare var DocumentType: {\n prototype: DocumentType;\n new(): DocumentType;\n};\n\n/**\n * A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent)\n */\ninterface DragEvent extends MouseEvent {\n /**\n * Returns the DataTransfer object for the event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer)\n */\n readonly dataTransfer: DataTransfer | null;\n}\n\ndeclare var DragEvent: {\n prototype: DragEvent;\n new(type: string, eventInitDict?: DragEventInit): DragEvent;\n};\n\n/**\n * Inherits properties from its parent, AudioNode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode)\n */\ninterface DynamicsCompressorNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */\n readonly attack: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */\n readonly knee: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */\n readonly ratio: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */\n readonly reduction: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */\n readonly release: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */\n readonly threshold: AudioParam;\n}\n\ndeclare var DynamicsCompressorNode: {\n prototype: DynamicsCompressorNode;\n new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */\ninterface EXT_blend_minmax {\n readonly MIN_EXT: 0x8007;\n readonly MAX_EXT: 0x8008;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */\ninterface EXT_color_buffer_float {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */\ninterface EXT_color_buffer_half_float {\n readonly RGBA16F_EXT: 0x881A;\n readonly RGB16F_EXT: 0x881B;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */\ninterface EXT_float_blend {\n}\n\n/**\n * The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth)\n */\ninterface EXT_frag_depth {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */\ninterface EXT_sRGB {\n readonly SRGB_EXT: 0x8C40;\n readonly SRGB_ALPHA_EXT: 0x8C42;\n readonly SRGB8_ALPHA8_EXT: 0x8C43;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */\ninterface EXT_shader_texture_lod {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */\ninterface EXT_texture_compression_bptc {\n readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;\n readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;\n readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;\n readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */\ninterface EXT_texture_compression_rgtc {\n readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;\n readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;\n readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;\n readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;\n}\n\n/**\n * The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic)\n */\ninterface EXT_texture_filter_anisotropic {\n readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */\ninterface EXT_texture_norm16 {\n readonly R16_EXT: 0x822A;\n readonly RG16_EXT: 0x822C;\n readonly RGB16_EXT: 0x8054;\n readonly RGBA16_EXT: 0x805B;\n readonly R16_SNORM_EXT: 0x8F98;\n readonly RG16_SNORM_EXT: 0x8F99;\n readonly RGB16_SNORM_EXT: 0x8F9A;\n readonly RGBA16_SNORM_EXT: 0x8F9B;\n}\n\ninterface ElementEventMap {\n "fullscreenchange": Event;\n "fullscreenerror": Event;\n}\n\n/**\n * Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element)\n */\ninterface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */\n readonly attributes: NamedNodeMap;\n /**\n * Allows for manipulation of element\'s class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList)\n */\n readonly classList: DOMTokenList;\n /**\n * Returns the value of element\'s class content attribute. Can be set to change it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className)\n */\n className: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */\n readonly clientHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */\n readonly clientLeft: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */\n readonly clientTop: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */\n readonly clientWidth: number;\n /**\n * Returns the value of element\'s id content attribute. Can be set to change it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id)\n */\n id: string;\n /**\n * Returns the local name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName)\n */\n readonly localName: string;\n /**\n * Returns the namespace.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI)\n */\n readonly namespaceURI: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */\n onfullscreenchange: ((this: Element, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */\n onfullscreenerror: ((this: Element, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */\n outerHTML: string;\n readonly ownerDocument: Document;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */\n readonly part: DOMTokenList;\n /**\n * Returns the namespace prefix.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix)\n */\n readonly prefix: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */\n readonly scrollHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */\n scrollLeft: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */\n scrollTop: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */\n readonly scrollWidth: number;\n /**\n * Returns element\'s shadow root, if any, and if shadow root\'s mode is "open", and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot)\n */\n readonly shadowRoot: ShadowRoot | null;\n /**\n * Returns the value of element\'s slot content attribute. Can be set to change it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot)\n */\n slot: string;\n /**\n * Returns the HTML-uppercased qualified name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName)\n */\n readonly tagName: string;\n /**\n * Creates a shadow root for element and returns it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow)\n */\n attachShadow(init: ShadowRootInit): ShadowRoot;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */\n checkVisibility(options?: CheckVisibilityOptions): boolean;\n /**\n * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest)\n */\n closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;\n closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;\n closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;\n closest<E extends Element = Element>(selectors: string): E | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */\n computedStyleMap(): StylePropertyMapReadOnly;\n /**\n * Returns element\'s first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute)\n */\n getAttribute(qualifiedName: string): string | null;\n /**\n * Returns element\'s attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS)\n */\n getAttributeNS(namespace: string | null, localName: string): string | null;\n /**\n * Returns the qualified names of all element\'s attributes. Can contain duplicates.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames)\n */\n getAttributeNames(): string[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */\n getAttributeNode(qualifiedName: string): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */\n getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */\n getBoundingClientRect(): DOMRect;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */\n getClientRects(): DOMRectList;\n /**\n * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName)\n */\n getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */\n getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;\n getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;\n /** @deprecated */\n getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;\n getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;\n getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;\n /**\n * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute)\n */\n hasAttribute(qualifiedName: string): boolean;\n /**\n * Returns true if element has an attribute whose namespace is namespace and local name is localName.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS)\n */\n hasAttributeNS(namespace: string | null, localName: string): boolean;\n /**\n * Returns true if element has attributes, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes)\n */\n hasAttributes(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */\n hasPointerCapture(pointerId: number): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */\n insertAdjacentElement(where: InsertPosition, element: Element): Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */\n insertAdjacentHTML(position: InsertPosition, text: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */\n insertAdjacentText(where: InsertPosition, data: string): void;\n /**\n * Returns true if matching selectors against element\'s root yields element, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)\n */\n matches(selectors: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */\n releasePointerCapture(pointerId: number): void;\n /**\n * Removes element\'s first attribute whose qualified name is qualifiedName.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute)\n */\n removeAttribute(qualifiedName: string): void;\n /**\n * Removes element\'s attribute whose namespace is namespace and local name is localName.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS)\n */\n removeAttributeNS(namespace: string | null, localName: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */\n removeAttributeNode(attr: Attr): Attr;\n /**\n * Displays element fullscreen and resolves promise when done.\n *\n * When supplied, options\'s navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application\'s. The default value "auto" indicates no application preference.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen)\n */\n requestFullscreen(options?: FullscreenOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */\n requestPointerLock(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */\n scroll(options?: ScrollToOptions): void;\n scroll(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */\n scrollBy(options?: ScrollToOptions): void;\n scrollBy(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */\n scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */\n scrollTo(options?: ScrollToOptions): void;\n scrollTo(x: number, y: number): void;\n /**\n * Sets the value of element\'s first attribute whose qualified name is qualifiedName to value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute)\n */\n setAttribute(qualifiedName: string, value: string): void;\n /**\n * Sets the value of element\'s attribute whose namespace is namespace and local name is localName to value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS)\n */\n setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */\n setAttributeNode(attr: Attr): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */\n setAttributeNodeNS(attr: Attr): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */\n setPointerCapture(pointerId: number): void;\n /**\n * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.\n *\n * Returns true if qualifiedName is now present, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute)\n */\n toggleAttribute(qualifiedName: string, force?: boolean): boolean;\n /**\n * @deprecated This is a legacy alias of `matches`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)\n */\n webkitMatchesSelector(selectors: string): boolean;\n addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Element: {\n prototype: Element;\n new(): Element;\n};\n\ninterface ElementCSSInlineStyle {\n readonly attributeStyleMap: StylePropertyMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */\n readonly style: CSSStyleDeclaration;\n}\n\ninterface ElementContentEditable {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */\n contentEditable: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */\n enterKeyHint: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */\n inputMode: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */\n readonly isContentEditable: boolean;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */\ninterface ElementInternals extends ARIAMixin {\n /**\n * Returns the form owner of internals\'s target element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * Returns a NodeList of all the label elements that internals\'s target element is associated with.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels)\n */\n readonly labels: NodeList;\n /**\n * Returns the ShadowRoot for internals\'s target element, if the target element is a shadow host, or null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot)\n */\n readonly shadowRoot: ShadowRoot | null;\n /**\n * Returns the error message that would be shown to the user if internals\'s target element was to be checked for validity.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * Returns the ValidityState object for internals\'s target element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity)\n */\n readonly validity: ValidityState;\n /**\n * Returns true if internals\'s target element will be validated when the form is submitted; false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * Returns true if internals\'s target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity)\n */\n checkValidity(): boolean;\n /**\n * Returns true if internals\'s target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn\'t canceled) reports the problem to the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity)\n */\n reportValidity(): boolean;\n /**\n * Sets both the state and submission value of internals\'s target element to value.\n *\n * If value is null, the element won\'t participate in form submission.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue)\n */\n setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;\n /**\n * Marks internals\'s target element as suffering from the constraints indicated by the flags argument, and sets the element\'s validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals\'s target element when the form owner is validated interactively or reportValidity() is called.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity)\n */\n setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;\n}\n\ndeclare var ElementInternals: {\n prototype: ElementInternals;\n new(): ElementInternals;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */\ninterface EncodedVideoChunk {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */\n readonly byteLength: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */\n readonly duration: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */\n readonly type: EncodedVideoChunkType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */\n copyTo(destination: AllowSharedBufferSource): void;\n}\n\ndeclare var EncodedVideoChunk: {\n prototype: EncodedVideoChunk;\n new(init: EncodedVideoChunkInit): EncodedVideoChunk;\n};\n\n/**\n * Events providing information related to errors in scripts or in files.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)\n */\ninterface ErrorEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */\n readonly colno: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */\n readonly error: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */\n readonly filename: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */\n readonly lineno: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */\n readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/**\n * An event which takes place in the DOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)\n */\ninterface Event {\n /**\n * Returns true or false depending on how event was initialized. True if event goes through its target\'s ancestors in reverse tree order, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)\n */\n readonly bubbles: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)\n */\n cancelBubble: boolean;\n /**\n * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)\n */\n readonly cancelable: boolean;\n /**\n * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)\n */\n readonly composed: boolean;\n /**\n * Returns the object whose event listener\'s callback is currently being invoked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)\n */\n readonly currentTarget: EventTarget | null;\n /**\n * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)\n */\n readonly defaultPrevented: boolean;\n /**\n * Returns the event\'s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)\n */\n readonly eventPhase: number;\n /**\n * Returns true if event was dispatched by the user agent, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)\n */\n readonly isTrusted: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)\n */\n returnValue: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)\n */\n readonly srcElement: EventTarget | null;\n /**\n * Returns the object to which event is dispatched (its target).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)\n */\n readonly target: EventTarget | null;\n /**\n * Returns the event\'s timestamp as the number of milliseconds measured relative to the time origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)\n */\n readonly timeStamp: DOMHighResTimeStamp;\n /**\n * Returns the type of event, e.g. "click", "hashchange", or "submit".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)\n */\n readonly type: string;\n /**\n * Returns the invocation target objects of event\'s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root\'s mode is "closed" that are not reachable from event\'s currentTarget.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)\n */\n composedPath(): EventTarget[];\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)\n */\n initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n /**\n * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)\n */\n preventDefault(): void;\n /**\n * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)\n */\n stopImmediatePropagation(): void;\n /**\n * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)\n */\n stopPropagation(): void;\n readonly NONE: 0;\n readonly CAPTURING_PHASE: 1;\n readonly AT_TARGET: 2;\n readonly BUBBLING_PHASE: 3;\n}\n\ndeclare var Event: {\n prototype: Event;\n new(type: string, eventInitDict?: EventInit): Event;\n readonly NONE: 0;\n readonly CAPTURING_PHASE: 1;\n readonly AT_TARGET: 2;\n readonly BUBBLING_PHASE: 3;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */\ninterface EventCounts {\n forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;\n}\n\ndeclare var EventCounts: {\n prototype: EventCounts;\n new(): EventCounts;\n};\n\ninterface EventListener {\n (evt: Event): void;\n}\n\ninterface EventListenerObject {\n handleEvent(object: Event): void;\n}\n\ninterface EventSourceEventMap {\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */\ninterface EventSource extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */\n onerror: ((this: EventSource, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */\n onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */\n onopen: ((this: EventSource, ev: Event) => any) | null;\n /**\n * Returns the state of this EventSource object\'s connection. It can have the values described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)\n */\n readonly readyState: number;\n /**\n * Returns the URL providing the event stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)\n */\n readonly url: string;\n /**\n * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)\n */\n readonly withCredentials: boolean;\n /**\n * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)\n */\n close(): void;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSED: 2;\n addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var EventSource: {\n prototype: EventSource;\n new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSED: 2;\n};\n\n/**\n * EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)\n */\ninterface EventTarget {\n /**\n * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.\n *\n * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options\'s capture.\n *\n * When set to true, options\'s capture prevents callback from being invoked when the event\'s eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event\'s eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event\'s eventPhase attribute value is AT_TARGET.\n *\n * When set to true, options\'s passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xa7 2.8 Observing event listeners.\n *\n * When set to true, options\'s once indicates that the callback will only be invoked once after which the event listener will be removed.\n *\n * If an AbortSignal is passed for options\'s signal, then the event listener will be removed when signal is aborted.\n *\n * The event listener is appended to target\'s event listener list and is not appended if it has the same type, callback, and capture.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)\n */\n addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;\n /**\n * Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)\n */\n dispatchEvent(event: Event): boolean;\n /**\n * Removes the event listener in target\'s event listener list with the same type, callback, and options.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)\n */\n removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\n}\n\ndeclare var EventTarget: {\n prototype: EventTarget;\n new(): EventTarget;\n};\n\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External)\n */\ninterface External {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/AddSearchProvider)\n */\n AddSearchProvider(): void;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/IsSearchProviderInstalled)\n */\n IsSearchProviderInstalled(): void;\n}\n\n/** @deprecated */\ndeclare var External: {\n prototype: External;\n new(): External;\n};\n\n/**\n * Provides information about files and allows JavaScript in a web page to access their content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)\n */\ninterface File extends Blob {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */\n readonly lastModified: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */\n readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n prototype: File;\n new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\n};\n\n/**\n * An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It\'s also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)\n */\ninterface FileList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */\n item(index: number): File | null;\n [index: number]: File;\n}\n\ndeclare var FileList: {\n prototype: FileList;\n new(): FileList;\n};\n\ninterface FileReaderEventMap {\n "abort": ProgressEvent<FileReader>;\n "error": ProgressEvent<FileReader>;\n "load": ProgressEvent<FileReader>;\n "loadend": ProgressEvent<FileReader>;\n "loadstart": ProgressEvent<FileReader>;\n "progress": ProgressEvent<FileReader>;\n}\n\n/**\n * Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user\'s computer, using File or Blob objects to specify the file or data to read.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader)\n */\ninterface FileReader extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */\n readonly error: DOMException | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */\n onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */\n onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */\n onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */\n onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */\n onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */\n onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */\n readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */\n readonly result: string | ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */\n abort(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */\n readAsArrayBuffer(blob: Blob): void;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)\n */\n readAsBinaryString(blob: Blob): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */\n readAsDataURL(blob: Blob): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */\n readAsText(blob: Blob, encoding?: string): void;\n readonly EMPTY: 0;\n readonly LOADING: 1;\n readonly DONE: 2;\n addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FileReader: {\n prototype: FileReader;\n new(): FileReader;\n readonly EMPTY: 0;\n readonly LOADING: 1;\n readonly DONE: 2;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */\ninterface FileSystem {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */\n readonly root: FileSystemDirectoryEntry;\n}\n\ndeclare var FileSystem: {\n prototype: FileSystem;\n new(): FileSystem;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */\ninterface FileSystemDirectoryEntry extends FileSystemEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */\n createReader(): FileSystemDirectoryReader;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */\n getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */\n getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemDirectoryEntry: {\n prototype: FileSystemDirectoryEntry;\n new(): FileSystemDirectoryEntry;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)\n */\ninterface FileSystemDirectoryHandle extends FileSystemHandle {\n readonly kind: "directory";\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */\n getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */\n getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */\n removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */\n resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;\n}\n\ndeclare var FileSystemDirectoryHandle: {\n prototype: FileSystemDirectoryHandle;\n new(): FileSystemDirectoryHandle;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */\ninterface FileSystemDirectoryReader {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */\n readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemDirectoryReader: {\n prototype: FileSystemDirectoryReader;\n new(): FileSystemDirectoryReader;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */\ninterface FileSystemEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */\n readonly filesystem: FileSystem;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */\n readonly fullPath: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */\n readonly isDirectory: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */\n readonly isFile: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */\n getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemEntry: {\n prototype: FileSystemEntry;\n new(): FileSystemEntry;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */\ninterface FileSystemFileEntry extends FileSystemEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */\n file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemFileEntry: {\n prototype: FileSystemFileEntry;\n new(): FileSystemFileEntry;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)\n */\ninterface FileSystemFileHandle extends FileSystemHandle {\n readonly kind: "file";\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */\n createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */\n getFile(): Promise<File>;\n}\n\ndeclare var FileSystemFileHandle: {\n prototype: FileSystemFileHandle;\n new(): FileSystemFileHandle;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)\n */\ninterface FileSystemHandle {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */\n readonly kind: FileSystemHandleKind;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */\n isSameEntry(other: FileSystemHandle): Promise<boolean>;\n}\n\ndeclare var FileSystemHandle: {\n prototype: FileSystemHandle;\n new(): FileSystemHandle;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)\n */\ninterface FileSystemWritableFileStream extends WritableStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */\n seek(position: number): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */\n truncate(size: number): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */\n write(data: FileSystemWriteChunkType): Promise<void>;\n}\n\ndeclare var FileSystemWritableFileStream: {\n prototype: FileSystemWritableFileStream;\n new(): FileSystemWritableFileStream;\n};\n\n/**\n * Focus-related events like focus, blur, focusin, or focusout.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent)\n */\ninterface FocusEvent extends UIEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */\n readonly relatedTarget: EventTarget | null;\n}\n\ndeclare var FocusEvent: {\n prototype: FocusEvent;\n new(type: string, eventInitDict?: FocusEventInit): FocusEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */\ninterface FontFace {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */\n ascentOverride: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */\n descentOverride: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */\n display: FontDisplay;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */\n family: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */\n featureSettings: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */\n lineGapOverride: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */\n readonly loaded: Promise<FontFace>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */\n readonly status: FontFaceLoadStatus;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */\n stretch: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */\n style: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */\n unicodeRange: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */\n weight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */\n load(): Promise<FontFace>;\n}\n\ndeclare var FontFace: {\n prototype: FontFace;\n new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n "loading": Event;\n "loadingdone": Event;\n "loadingerror": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */\ninterface FontFaceSet extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */\n onloading: ((this: FontFaceSet, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */\n onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */\n onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */\n readonly ready: Promise<FontFaceSet>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */\n readonly status: FontFaceSetLoadStatus;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */\n check(font: string, text?: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */\n load(font: string, text?: string): Promise<FontFace[]>;\n forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;\n addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FontFaceSet: {\n prototype: FontFaceSet;\n new(initialFaces: FontFace[]): FontFaceSet;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */\ninterface FontFaceSetLoadEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */\n readonly fontfaces: ReadonlyArray<FontFace>;\n}\n\ndeclare var FontFaceSetLoadEvent: {\n prototype: FontFaceSetLoadEvent;\n new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;\n};\n\ninterface FontFaceSource {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */\n readonly fonts: FontFaceSet;\n}\n\n/**\n * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)\n */\ninterface FormData {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */\n append(name: string, value: string | Blob): void;\n append(name: string, value: string): void;\n append(name: string, blobValue: Blob, filename?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */\n delete(name: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */\n get(name: string): FormDataEntryValue | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */\n getAll(name: string): FormDataEntryValue[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */\n has(name: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */\n set(name: string, value: string | Blob): void;\n set(name: string, value: string): void;\n set(name: string, blobValue: Blob, filename?: string): void;\n forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;\n}\n\ndeclare var FormData: {\n prototype: FormData;\n new(form?: HTMLFormElement, submitter?: HTMLElement | null): FormData;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */\ninterface FormDataEvent extends Event {\n /**\n * Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData)\n */\n readonly formData: FormData;\n}\n\ndeclare var FormDataEvent: {\n prototype: FormDataEvent;\n new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;\n};\n\n/**\n * A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode)\n */\ninterface GainNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */\n readonly gain: AudioParam;\n}\n\ndeclare var GainNode: {\n prototype: GainNode;\n new(context: BaseAudioContext, options?: GainOptions): GainNode;\n};\n\n/**\n * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad)\n */\ninterface Gamepad {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */\n readonly axes: ReadonlyArray<number>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */\n readonly buttons: ReadonlyArray<GamepadButton>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */\n readonly connected: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */\n readonly index: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */\n readonly mapping: GamepadMappingType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */\n readonly timestamp: DOMHighResTimeStamp;\n readonly vibrationActuator: GamepadHapticActuator | null;\n}\n\ndeclare var Gamepad: {\n prototype: Gamepad;\n new(): Gamepad;\n};\n\n/**\n * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton)\n */\ninterface GamepadButton {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */\n readonly pressed: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */\n readonly touched: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */\n readonly value: number;\n}\n\ndeclare var GamepadButton: {\n prototype: GamepadButton;\n new(): GamepadButton;\n};\n\n/**\n * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)\n */\ninterface GamepadEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */\n readonly gamepad: Gamepad;\n}\n\ndeclare var GamepadEvent: {\n prototype: GamepadEvent;\n new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;\n};\n\n/**\n * This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator)\n */\ninterface GamepadHapticActuator {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */\n readonly type: GamepadHapticActuatorType;\n playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;\n reset(): Promise<GamepadHapticsResult>;\n}\n\ndeclare var GamepadHapticActuator: {\n prototype: GamepadHapticActuator;\n new(): GamepadHapticActuator;\n};\n\ninterface GenericTransformStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */\n readonly readable: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */\n readonly writable: WritableStream;\n}\n\n/**\n * An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user\'s location.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation)\n */\ninterface Geolocation {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */\n clearWatch(watchId: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */\n getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */\n watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;\n}\n\ndeclare var Geolocation: {\n prototype: Geolocation;\n new(): Geolocation;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates)\n */\ninterface GeolocationCoordinates {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */\n readonly accuracy: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */\n readonly altitude: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */\n readonly altitudeAccuracy: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */\n readonly heading: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */\n readonly latitude: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */\n readonly longitude: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */\n readonly speed: number | null;\n}\n\ndeclare var GeolocationCoordinates: {\n prototype: GeolocationCoordinates;\n new(): GeolocationCoordinates;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition)\n */\ninterface GeolocationPosition {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */\n readonly coords: GeolocationCoordinates;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */\n readonly timestamp: EpochTimeStamp;\n}\n\ndeclare var GeolocationPosition: {\n prototype: GeolocationPosition;\n new(): GeolocationPosition;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */\ninterface GeolocationPositionError {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */\n readonly code: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */\n readonly message: string;\n readonly PERMISSION_DENIED: 1;\n readonly POSITION_UNAVAILABLE: 2;\n readonly TIMEOUT: 3;\n}\n\ndeclare var GeolocationPositionError: {\n prototype: GeolocationPositionError;\n new(): GeolocationPositionError;\n readonly PERMISSION_DENIED: 1;\n readonly POSITION_UNAVAILABLE: 2;\n readonly TIMEOUT: 3;\n};\n\ninterface GlobalEventHandlersEventMap {\n "abort": UIEvent;\n "animationcancel": AnimationEvent;\n "animationend": AnimationEvent;\n "animationiteration": AnimationEvent;\n "animationstart": AnimationEvent;\n "auxclick": MouseEvent;\n "beforeinput": InputEvent;\n "beforetoggle": Event;\n "blur": FocusEvent;\n "cancel": Event;\n "canplay": Event;\n "canplaythrough": Event;\n "change": Event;\n "click": MouseEvent;\n "close": Event;\n "compositionend": CompositionEvent;\n "compositionstart": CompositionEvent;\n "compositionupdate": CompositionEvent;\n "contextmenu": MouseEvent;\n "copy": ClipboardEvent;\n "cuechange": Event;\n "cut": ClipboardEvent;\n "dblclick": MouseEvent;\n "drag": DragEvent;\n "dragend": DragEvent;\n "dragenter": DragEvent;\n "dragleave": DragEvent;\n "dragover": DragEvent;\n "dragstart": DragEvent;\n "drop": DragEvent;\n "durationchange": Event;\n "emptied": Event;\n "ended": Event;\n "error": ErrorEvent;\n "focus": FocusEvent;\n "focusin": FocusEvent;\n "focusout": FocusEvent;\n "formdata": FormDataEvent;\n "gotpointercapture": PointerEvent;\n "input": Event;\n "invalid": Event;\n "keydown": KeyboardEvent;\n "keypress": KeyboardEvent;\n "keyup": KeyboardEvent;\n "load": Event;\n "loadeddata": Event;\n "loadedmetadata": Event;\n "loadstart": Event;\n "lostpointercapture": PointerEvent;\n "mousedown": MouseEvent;\n "mouseenter": MouseEvent;\n "mouseleave": MouseEvent;\n "mousemove": MouseEvent;\n "mouseout": MouseEvent;\n "mouseover": MouseEvent;\n "mouseup": MouseEvent;\n "paste": ClipboardEvent;\n "pause": Event;\n "play": Event;\n "playing": Event;\n "pointercancel": PointerEvent;\n "pointerdown": PointerEvent;\n "pointerenter": PointerEvent;\n "pointerleave": PointerEvent;\n "pointermove": PointerEvent;\n "pointerout": PointerEvent;\n "pointerover": PointerEvent;\n "pointerup": PointerEvent;\n "progress": ProgressEvent;\n "ratechange": Event;\n "reset": Event;\n "resize": UIEvent;\n "scroll": Event;\n "scrollend": Event;\n "securitypolicyviolation": SecurityPolicyViolationEvent;\n "seeked": Event;\n "seeking": Event;\n "select": Event;\n "selectionchange": Event;\n "selectstart": Event;\n "slotchange": Event;\n "stalled": Event;\n "submit": SubmitEvent;\n "suspend": Event;\n "timeupdate": Event;\n "toggle": Event;\n "touchcancel": TouchEvent;\n "touchend": TouchEvent;\n "touchmove": TouchEvent;\n "touchstart": TouchEvent;\n "transitioncancel": TransitionEvent;\n "transitionend": TransitionEvent;\n "transitionrun": TransitionEvent;\n "transitionstart": TransitionEvent;\n "volumechange": Event;\n "waiting": Event;\n "webkitanimationend": Event;\n "webkitanimationiteration": Event;\n "webkitanimationstart": Event;\n "webkittransitionend": Event;\n "wheel": WheelEvent;\n}\n\ninterface GlobalEventHandlers {\n /**\n * Fires when the user aborts the download.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event)\n */\n onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */\n onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */\n onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */\n onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */\n onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */\n onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */\n onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */\n onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)\n */\n onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */\n oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when playback is possible, but would require further buffering.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event)\n */\n oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */\n oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the contents of the object or selection have changed.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event)\n */\n onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user clicks the left mouse button on the object\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)\n */\n onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */\n onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)\n */\n oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */\n oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */\n oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */\n oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;\n /**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event)\n */\n ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event)\n */\n ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the source object when the user releases the mouse at the close of a drag operation.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event)\n */\n ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target element when the user drags the object to a valid drop target.\n * @param ev The drag event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event)\n */\n ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n * @param ev The drag event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event)\n */\n ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target element continuously while the user drags the object over a valid drop target.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event)\n */\n ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the source object when the user starts to drag a text selection or selected object.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event)\n */\n ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */\n ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event)\n */\n ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the media element is reset to its initial state.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event)\n */\n onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the end of playback is reached.\n * @param ev The event\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event)\n */\n onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event)\n */\n onerror: OnErrorEventHandler;\n /**\n * Fires when the object receives focus.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event)\n */\n onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */\n onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */\n ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */\n oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */\n oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event)\n */\n onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)\n */\n onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event)\n */\n onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event)\n */\n onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when media data is loaded at the current playback position.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event)\n */\n onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the duration and dimensions of the media have been determined.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event)\n */\n onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event)\n */\n onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */\n onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /**\n * Fires when the user clicks the object with either mouse button.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event)\n */\n onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */\n onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */\n onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse over the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event)\n */\n onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse pointer outside the boundaries of the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event)\n */\n onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse pointer into the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event)\n */\n onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user releases a mouse button while the mouse is over the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event)\n */\n onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */\n onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;\n /**\n * Occurs when playback is paused.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event)\n */\n onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the play method is requested.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event)\n */\n onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event)\n */\n onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */\n onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */\n onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */\n onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */\n onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */\n onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */\n onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */\n onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */\n onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event)\n */\n onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;\n /**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event)\n */\n onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user resets a form.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event)\n */\n onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */\n onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n /**\n * Fires when the user repositions the scroll box in the scroll bar on the object.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)\n */\n onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */\n onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */\n onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;\n /**\n * Occurs when the seek operation ends.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event)\n */\n onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event)\n */\n onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the current selection changes.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event)\n */\n onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */\n onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */\n onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */\n onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the download has stopped.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event)\n */\n onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */\n onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;\n /**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event)\n */\n onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event)\n */\n ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */\n ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */\n ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */\n ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */\n ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */\n ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */\n ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */\n ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */\n ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */\n ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n /**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event)\n */\n onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when playback stops because the next frame of a video resource is not available.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event)\n */\n onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * @deprecated This is a legacy alias of `onanimationend`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event)\n */\n onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * @deprecated This is a legacy alias of `onanimationiteration`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event)\n */\n onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * @deprecated This is a legacy alias of `onanimationstart`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event)\n */\n onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * @deprecated This is a legacy alias of `ontransitionend`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event)\n */\n onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */\n onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;\n addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */\ninterface HTMLAllCollection {\n /**\n * Returns the number of elements in the collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length)\n */\n readonly length: number;\n /**\n * Returns the item with index index from the collection (determined by tree order).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item)\n */\n item(nameOrIndex?: string): HTMLCollection | Element | null;\n /**\n * Returns the item with ID or name name from the collection.\n *\n * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.\n *\n * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem)\n */\n namedItem(name: string): HTMLCollection | Element | null;\n [index: number]: Element;\n}\n\ndeclare var HTMLAllCollection: {\n prototype: HTMLAllCollection;\n new(): HTMLAllCollection;\n};\n\n/**\n * Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement)\n */\ninterface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/charset)\n */\n charset: string;\n /**\n * Sets or retrieves the coordinates of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/coords)\n */\n coords: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */\n download: string;\n /**\n * Sets or retrieves the language code of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang)\n */\n hreflang: string;\n /**\n * Sets or retrieves the shape of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name)\n */\n name: string;\n ping: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */\n referrerPolicy: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel)\n */\n rel: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rev)\n */\n rev: string;\n /**\n * Sets or retrieves the shape of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/shape)\n */\n shape: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target)\n */\n target: string;\n /**\n * Retrieves or sets the text of the object as a string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text)\n */\n text: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAnchorElement: {\n prototype: HTMLAnchorElement;\n new(): HTMLAnchorElement;\n};\n\n/**\n * Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement)\n */\ninterface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {\n /**\n * Sets or retrieves a text alternative to the graphic.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt)\n */\n alt: string;\n /**\n * Sets or retrieves the coordinates of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords)\n */\n coords: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */\n download: string;\n /**\n * Sets or gets whether clicks in this region cause action.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref)\n */\n noHref: boolean;\n ping: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */\n referrerPolicy: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */\n rel: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the shape of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape)\n */\n shape: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target)\n */\n target: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAreaElement: {\n prototype: HTMLAreaElement;\n new(): HTMLAreaElement;\n};\n\n/**\n * Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAudioElement)\n */\ninterface HTMLAudioElement extends HTMLMediaElement {\n addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAudioElement: {\n prototype: HTMLAudioElement;\n new(): HTMLAudioElement;\n};\n\n/**\n * A HTML line break element (<br>). It inherits from HTMLElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement)\n */\ninterface HTMLBRElement extends HTMLElement {\n /**\n * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement/clear)\n */\n clear: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBRElement: {\n prototype: HTMLBRElement;\n new(): HTMLBRElement;\n};\n\n/**\n * Contains the base URI\xa0for a document. This object inherits all of the properties and methods as described in the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement)\n */\ninterface HTMLBaseElement extends HTMLElement {\n /**\n * Gets or sets the baseline URL on which relative links are based.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href)\n */\n href: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/target)\n */\n target: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBaseElement: {\n prototype: HTMLBaseElement;\n new(): HTMLBaseElement;\n};\n\ninterface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n}\n\n/**\n * Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement)\n */\ninterface HTMLBodyElement extends HTMLElement, WindowEventHandlers {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/aLink)\n */\n aLink: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/background)\n */\n background: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/bgColor)\n */\n bgColor: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/link)\n */\n link: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/text)\n */\n text: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/vLink)\n */\n vLink: string;\n addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBodyElement: {\n prototype: HTMLBodyElement;\n new(): HTMLBodyElement;\n};\n\n/**\n * Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)\n */\ninterface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * Overrides the action attribute (where the data on a form is sent) on the parent form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction)\n */\n formAction: string;\n /**\n * Used to override the encoding (formEnctype attribute) specified on the form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype)\n */\n formEnctype: string;\n /**\n * Overrides the submit method attribute previously specified on a form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod)\n */\n formMethod: string;\n /**\n * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate)\n */\n formNoValidate: boolean;\n /**\n * Overrides the target attribute on a form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget)\n */\n formTarget: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * Sets or retrieves the name of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/name)\n */\n name: string;\n /**\n * Gets the classification and default behavior of the button.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/type)\n */\n type: "submit" | "reset" | "button";\n /**\n * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validity)\n */\n readonly validity: ValidityState;\n /**\n * Sets or retrieves the default or selected value of the control.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value)\n */\n value: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/willValidate)\n */\n readonly willValidate: boolean;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity) */\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLButtonElement: {\n prototype: HTMLButtonElement;\n new(): HTMLButtonElement;\n};\n\n/**\n * Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement)\n */\ninterface HTMLCanvasElement extends HTMLElement {\n /**\n * Gets or sets the height of a canvas element on a document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/height)\n */\n height: number;\n /**\n * Gets or sets the width of a canvas element on a document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/width)\n */\n width: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/captureStream) */\n captureStream(frameRequestRate?: number): MediaStream;\n /**\n * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.\n * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext)\n */\n getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;\n getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;\n getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;\n getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;\n getContext(contextId: string, options?: any): RenderingContext | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob) */\n toBlob(callback: BlobCallback, type?: string, quality?: any): void;\n /**\n * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.\n * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL)\n */\n toDataURL(type?: string, quality?: any): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen) */\n transferControlToOffscreen(): OffscreenCanvas;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLCanvasElement: {\n prototype: HTMLCanvasElement;\n new(): HTMLCanvasElement;\n};\n\n/**\n * A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection)\n */\ninterface HTMLCollectionBase {\n /**\n * Sets or retrieves the number of objects in a collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length)\n */\n readonly length: number;\n /**\n * Retrieves an object from various collections.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/item)\n */\n item(index: number): Element | null;\n [index: number]: Element;\n}\n\ninterface HTMLCollection extends HTMLCollectionBase {\n /**\n * Retrieves a select object or an object from an options collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/namedItem)\n */\n namedItem(name: string): Element | null;\n}\n\ndeclare var HTMLCollection: {\n prototype: HTMLCollection;\n new(): HTMLCollection;\n};\n\ninterface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {\n item(index: number): T | null;\n namedItem(name: string): T | null;\n [index: number]: T;\n}\n\n/**\n * Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement)\n */\ninterface HTMLDListElement extends HTMLElement {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement/compact)\n */\n compact: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDListElement: {\n prototype: HTMLDListElement;\n new(): HTMLDListElement;\n};\n\n/**\n * Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement)\n */\ninterface HTMLDataElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement/value) */\n value: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDataElement: {\n prototype: HTMLDataElement;\n new(): HTMLDataElement;\n};\n\n/**\n * Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement)\n */\ninterface HTMLDataListElement extends HTMLElement {\n /**\n * Returns an HTMLCollection of the option elements of the datalist element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement/options)\n */\n readonly options: HTMLCollectionOf<HTMLOptionElement>;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDataListElement: {\n prototype: HTMLDataListElement;\n new(): HTMLDataListElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement) */\ninterface HTMLDetailsElement extends HTMLElement {\n name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */\n open: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDetailsElement: {\n prototype: HTMLDetailsElement;\n new(): HTMLDetailsElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement) */\ninterface HTMLDialogElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/open) */\n open: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/returnValue) */\n returnValue: string;\n /**\n * Closes the dialog element.\n *\n * The argument, if provided, provides a return value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close)\n */\n close(returnValue?: string): void;\n /**\n * Displays the dialog element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/show)\n */\n show(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/showModal) */\n showModal(): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDialogElement: {\n prototype: HTMLDialogElement;\n new(): HTMLDialogElement;\n};\n\n/** @deprecated */\ninterface HTMLDirectoryElement extends HTMLElement {\n /** @deprecated */\n compact: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLDirectoryElement: {\n prototype: HTMLDirectoryElement;\n new(): HTMLDirectoryElement;\n};\n\n/**\n * Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement)\n */\ninterface HTMLDivElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement/align)\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDivElement: {\n prototype: HTMLDivElement;\n new(): HTMLDivElement;\n};\n\n/** @deprecated use Document */\ninterface HTMLDocument extends Document {\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLDocument: {\n prototype: HTMLDocument;\n new(): HTMLDocument;\n};\n\ninterface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {\n}\n\n/**\n * Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)\n */\ninterface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) */\n accessKey: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) */\n readonly accessKeyLabel: string;\n autocapitalize: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) */\n dir: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) */\n draggable: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) */\n hidden: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) */\n inert: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) */\n innerText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) */\n lang: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) */\n readonly offsetHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) */\n readonly offsetLeft: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) */\n readonly offsetParent: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) */\n readonly offsetTop: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) */\n readonly offsetWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) */\n outerText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) */\n popover: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) */\n spellcheck: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */\n title: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) */\n translate: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) */\n attachInternals(): ElementInternals;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) */\n click(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) */\n hidePopover(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */\n showPopover(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */\n togglePopover(force?: boolean): boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLElement: {\n prototype: HTMLElement;\n new(): HTMLElement;\n};\n\n/**\n * Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement)\n */\ninterface HTMLEmbedElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /** Sets or retrieves the height of the object. */\n height: string;\n /**\n * Sets or retrieves the name of the object.\n * @deprecated\n */\n name: string;\n /** Sets or retrieves a URL to be loaded by the object. */\n src: string;\n type: string;\n /** Sets or retrieves the width of the object. */\n width: string;\n getSVGDocument(): Document | null;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLEmbedElement: {\n prototype: HTMLEmbedElement;\n new(): HTMLEmbedElement;\n};\n\n/**\n * Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement)\n */\ninterface HTMLFieldSetElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/disabled) */\n disabled: boolean;\n /**\n * Returns an HTMLCollection of the form controls in the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/elements)\n */\n readonly elements: HTMLCollection;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/form)\n */\n readonly form: HTMLFormElement | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name) */\n name: string;\n /**\n * Returns the string "fieldset".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/type)\n */\n readonly type: string;\n /**\n * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validity)\n */\n readonly validity: ValidityState;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/willValidate)\n */\n readonly willValidate: boolean;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity) */\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLFieldSetElement: {\n prototype: HTMLFieldSetElement;\n new(): HTMLFieldSetElement;\n};\n\n/**\n * Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement)\n */\ninterface HTMLFontElement extends HTMLElement {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/color)\n */\n color: string;\n /**\n * Sets or retrieves the current typeface family.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/face)\n */\n face: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/size)\n */\n size: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFontElement: {\n prototype: HTMLFontElement;\n new(): HTMLFontElement;\n};\n\n/**\n * A collection of HTML form control elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection)\n */\ninterface HTMLFormControlsCollection extends HTMLCollectionBase {\n /**\n * Returns the item with ID or name name from the collection.\n *\n * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection/namedItem)\n */\n namedItem(name: string): RadioNodeList | Element | null;\n}\n\ndeclare var HTMLFormControlsCollection: {\n prototype: HTMLFormControlsCollection;\n new(): HTMLFormControlsCollection;\n};\n\n/**\n * A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement)\n */\ninterface HTMLFormElement extends HTMLElement {\n /**\n * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/acceptCharset)\n */\n acceptCharset: string;\n /**\n * Sets or retrieves the URL to which the form content is sent for processing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/action)\n */\n action: string;\n /**\n * Specifies whether autocomplete is applied to an editable text field.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete)\n */\n autocomplete: AutoFillBase;\n /**\n * Retrieves a collection, in source order, of all controls in a given form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/elements)\n */\n readonly elements: HTMLFormControlsCollection;\n /**\n * Sets or retrieves the MIME encoding for the form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/encoding)\n */\n encoding: string;\n /**\n * Sets or retrieves the encoding type for the form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/enctype)\n */\n enctype: string;\n /**\n * Sets or retrieves the number of objects in a collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/length)\n */\n readonly length: number;\n /**\n * Sets or retrieves how to send the form data to the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/method)\n */\n method: string;\n /**\n * Sets or retrieves the name of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name)\n */\n name: string;\n /**\n * Designates a form that is not validated when submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/noValidate)\n */\n noValidate: boolean;\n rel: string;\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the window or frame at which to target content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target)\n */\n target: string;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity)\n */\n checkValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity) */\n reportValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/requestSubmit) */\n requestSubmit(submitter?: HTMLElement | null): void;\n /**\n * Fires when the user resets a form.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset)\n */\n reset(): void;\n /**\n * Fires when a FORM is about to be submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit)\n */\n submit(): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: Element;\n [name: string]: any;\n}\n\ndeclare var HTMLFormElement: {\n prototype: HTMLFormElement;\n new(): HTMLFormElement;\n};\n\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement)\n */\ninterface HTMLFrameElement extends HTMLElement {\n /**\n * Retrieves the document object of the page or frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentDocument)\n */\n readonly contentDocument: Document | null;\n /**\n * Retrieves the object of the specified.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentWindow)\n */\n readonly contentWindow: WindowProxy | null;\n /**\n * Sets or retrieves whether to display a border for the frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/frameBorder)\n */\n frameBorder: string;\n /**\n * Sets or retrieves a URI to a long description of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/longDesc)\n */\n longDesc: string;\n /**\n * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginHeight)\n */\n marginHeight: string;\n /**\n * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginWidth)\n */\n marginWidth: string;\n /**\n * Sets or retrieves the frame name.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/name)\n */\n name: string;\n /**\n * Sets or retrieves whether the user can resize the frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/noResize)\n */\n noResize: boolean;\n /**\n * Sets or retrieves whether the frame can be scrolled.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/scrolling)\n */\n scrolling: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/src)\n */\n src: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFrameElement: {\n prototype: HTMLFrameElement;\n new(): HTMLFrameElement;\n};\n\ninterface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n}\n\n/**\n * Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameSetElement)\n */\ninterface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {\n /**\n * Sets or retrieves the frame widths of the object.\n * @deprecated\n */\n cols: string;\n /**\n * Sets or retrieves the frame heights of the object.\n * @deprecated\n */\n rows: string;\n addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLFrameSetElement: {\n prototype: HTMLFrameSetElement;\n new(): HTMLFrameSetElement;\n};\n\n/**\n * Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHRElement)\n */\ninterface HTMLHRElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /** @deprecated */\n color: string;\n /**\n * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.\n * @deprecated\n */\n noShade: boolean;\n /** @deprecated */\n size: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n */\n width: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHRElement: {\n prototype: HTMLHRElement;\n new(): HTMLHRElement;\n};\n\n/**\n * Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadElement)\n */\ninterface HTMLHeadElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHeadElement: {\n prototype: HTMLHeadElement;\n new(): HTMLHeadElement;\n};\n\n/**\n * The different heading elements. It inherits methods and properties from the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement)\n */\ninterface HTMLHeadingElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement/align)\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHeadingElement: {\n prototype: HTMLHeadingElement;\n new(): HTMLHeadingElement;\n};\n\n/**\n * Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement)\n */\ninterface HTMLHtmlElement extends HTMLElement {\n /**\n * Sets or retrieves the DTD version that governs the current document.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement/version)\n */\n version: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHtmlElement: {\n prototype: HTMLHtmlElement;\n new(): HTMLHtmlElement;\n};\n\ninterface HTMLHyperlinkElementUtils {\n /**\n * Returns the hyperlink\'s URL\'s fragment (includes leading "#" if non-empty).\n *\n * Can be set, to change the URL\'s fragment (ignores leading "#").\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hash)\n */\n hash: string;\n /**\n * Returns the hyperlink\'s URL\'s host and port (if different from the default port for the scheme).\n *\n * Can be set, to change the URL\'s host and port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/host)\n */\n host: string;\n /**\n * Returns the hyperlink\'s URL\'s host.\n *\n * Can be set, to change the URL\'s host.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hostname)\n */\n hostname: string;\n /**\n * Returns the hyperlink\'s URL.\n *\n * Can be set, to change the URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/href)\n */\n href: string;\n toString(): string;\n /**\n * Returns the hyperlink\'s URL\'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/origin)\n */\n readonly origin: string;\n /**\n * Returns the hyperlink\'s URL\'s password.\n *\n * Can be set, to change the URL\'s password.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/password)\n */\n password: string;\n /**\n * Returns the hyperlink\'s URL\'s path.\n *\n * Can be set, to change the URL\'s path.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/pathname)\n */\n pathname: string;\n /**\n * Returns the hyperlink\'s URL\'s port.\n *\n * Can be set, to change the URL\'s port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/port)\n */\n port: string;\n /**\n * Returns the hyperlink\'s URL\'s scheme.\n *\n * Can be set, to change the URL\'s scheme.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/protocol)\n */\n protocol: string;\n /**\n * Returns the hyperlink\'s URL\'s query (includes leading "?" if non-empty).\n *\n * Can be set, to change the URL\'s query (ignores leading "?").\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/search)\n */\n search: string;\n /**\n * Returns the hyperlink\'s URL\'s username.\n *\n * Can be set, to change the URL\'s username.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/username)\n */\n username: string;\n}\n\n/**\n * Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement)\n */\ninterface HTMLIFrameElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/align)\n */\n align: string;\n allow: string;\n allowFullscreen: boolean;\n /**\n * Retrieves the document object of the page or frame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentDocument)\n */\n readonly contentDocument: Document | null;\n /**\n * Retrieves the object of the specified.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentWindow)\n */\n readonly contentWindow: WindowProxy | null;\n /**\n * Sets or retrieves whether to display a border for the frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/frameBorder)\n */\n frameBorder: string;\n /**\n * Sets or retrieves the height of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)\n */\n height: string;\n loading: string;\n /**\n * Sets or retrieves a URI to a long description of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/longDesc)\n */\n longDesc: string;\n /**\n * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginHeight)\n */\n marginHeight: string;\n /**\n * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginWidth)\n */\n marginWidth: string;\n /**\n * Sets or retrieves the frame name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/name)\n */\n name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */\n referrerPolicy: ReferrerPolicy;\n readonly sandbox: DOMTokenList;\n /**\n * Sets or retrieves whether the frame can be scrolled.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/scrolling)\n */\n scrolling: string;\n /**\n * Sets or retrieves a URL to be loaded by the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/src)\n */\n src: string;\n /**\n * Sets or retrives the content of the page that is to contain.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/srcdoc)\n */\n srcdoc: string;\n /**\n * Sets or retrieves the width of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/width)\n */\n width: string;\n getSVGDocument(): Document | null;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLIFrameElement: {\n prototype: HTMLIFrameElement;\n new(): HTMLIFrameElement;\n};\n\n/**\n * Provides special properties and methods for manipulating <img> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement)\n */\ninterface HTMLImageElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/align)\n */\n align: string;\n /**\n * Sets or retrieves a text alternative to the graphic.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/alt)\n */\n alt: string;\n /**\n * Specifies the properties of a border drawn around an object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/border)\n */\n border: string;\n /**\n * Retrieves whether the object is fully loaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/complete)\n */\n readonly complete: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/crossOrigin) */\n crossOrigin: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/currentSrc) */\n readonly currentSrc: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding) */\n decoding: "async" | "sync" | "auto";\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority) */\n fetchPriority: string;\n /**\n * Sets or retrieves the height of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/height)\n */\n height: number;\n /**\n * Sets or retrieves the width of the border to draw around the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/hspace)\n */\n hspace: number;\n /**\n * Sets or retrieves whether the image is a server-side image map.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/isMap)\n */\n isMap: boolean;\n /**\n * Sets or retrieves the policy for loading image elements that are outside the viewport.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading)\n */\n loading: "eager" | "lazy";\n /**\n * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/longDesc)\n */\n longDesc: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/lowsrc)\n */\n lowsrc: string;\n /**\n * Sets or retrieves the name of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/name)\n */\n name: string;\n /**\n * The original height of the image resource before sizing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalHeight)\n */\n readonly naturalHeight: number;\n /**\n * The original width of the image resource before sizing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalWidth)\n */\n readonly naturalWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/referrerPolicy) */\n referrerPolicy: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes) */\n sizes: string;\n /**\n * The address or URL of the a media resource that is to be considered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/src)\n */\n src: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/srcset) */\n srcset: string;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/useMap)\n */\n useMap: string;\n /**\n * Sets or retrieves the vertical margin for the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/vspace)\n */\n vspace: number;\n /**\n * Sets or retrieves the width of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/width)\n */\n width: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/x) */\n readonly x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */\n readonly y: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decode) */\n decode(): Promise<void>;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLImageElement: {\n prototype: HTMLImageElement;\n new(): HTMLImageElement;\n};\n\n/**\n * Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement)\n */\ninterface HTMLInputElement extends HTMLElement, PopoverInvokerElement {\n /** Sets or retrieves a comma-separated list of content types. */\n accept: string;\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n */\n align: string;\n /** Sets or retrieves a text alternative to the graphic. */\n alt: string;\n /**\n * Specifies whether autocomplete is applied to an editable text field.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete)\n */\n autocomplete: AutoFill;\n capture: string;\n /** Sets or retrieves the state of the check box or radio button. */\n checked: boolean;\n /** Sets or retrieves the state of the check box or radio button. */\n defaultChecked: boolean;\n /** Sets or retrieves the initial contents of the object. */\n defaultValue: string;\n dirName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */\n disabled: boolean;\n /**\n * Returns a FileList object on a file type input object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/files)\n */\n files: FileList | null;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n /**\n * Overrides the action attribute (where the data on a form is sent) on the parent form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formAction)\n */\n formAction: string;\n /**\n * Used to override the encoding (formEnctype attribute) specified on the form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formEnctype)\n */\n formEnctype: string;\n /**\n * Overrides the submit method attribute previously specified on a form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod)\n */\n formMethod: string;\n /**\n * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formNoValidate)\n */\n formNoValidate: boolean;\n /**\n * Overrides the target attribute on a form element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formTarget)\n */\n formTarget: string;\n /**\n * Sets or retrieves the height of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height)\n */\n height: number;\n /** When set, overrides the rendering of checkbox controls so that the current value is not visible. */\n indeterminate: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels) */\n readonly labels: NodeListOf<HTMLLabelElement> | null;\n /**\n * Specifies the ID of a pre-defined datalist of options for an input element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)\n */\n readonly list: HTMLDataListElement | null;\n /** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */\n max: string;\n /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */\n maxLength: number;\n /** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */\n min: string;\n minLength: number;\n /**\n * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/multiple)\n */\n multiple: boolean;\n /** Sets or retrieves the name of the object. */\n name: string;\n /**\n * Gets or sets a string containing a regular expression that the user\'s input must match.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/pattern)\n */\n pattern: string;\n /**\n * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/placeholder)\n */\n placeholder: string;\n readOnly: boolean;\n /**\n * When present, marks an element that can\'t be submitted without a value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/required)\n */\n required: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */\n selectionDirection: "forward" | "backward" | "none" | null;\n /** Gets or sets the end position or offset of a text selection. */\n selectionEnd: number | null;\n /** Gets or sets the starting position or offset of a text selection. */\n selectionStart: number | null;\n size: number;\n /** The address or URL of the a media resource that is to be considered. */\n src: string;\n /** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */\n step: string;\n /** Returns the content type of the object. */\n type: string;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n * @deprecated\n */\n useMap: string;\n /**\n * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)\n */\n readonly validity: ValidityState;\n /** Returns the value of the data at the cursor\'s current position. */\n value: string;\n /** Returns a Date object representing the form control\'s value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn\'t date- or time-based. */\n valueAsDate: Date | null;\n /** Returns the input field value as a number. */\n valueAsNumber: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */\n readonly webkitEntries: ReadonlyArray<FileSystemEntry>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory) */\n webkitdirectory: boolean;\n /**\n * Sets or retrieves the width of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/width)\n */\n width: number;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checkValidity)\n */\n checkValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/reportValidity) */\n reportValidity(): boolean;\n /**\n * Makes the selection equal to the current object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select)\n */\n select(): void;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setCustomValidity)\n */\n setCustomValidity(error: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setRangeText) */\n setRangeText(replacement: string): void;\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n /**\n * Sets the start and end positions of a selection in a text field.\n * @param start The offset into the text field for the start of the selection.\n * @param end The offset into the text field for the end of the selection.\n * @param direction The direction in which the selection is performed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)\n */\n setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/showPicker) */\n showPicker(): void;\n /**\n * Decrements a range input control\'s value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control\'s step value multiplied by the parameter\'s value.\n * @param n Value to decrement the value by.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepDown)\n */\n stepDown(n?: number): void;\n /**\n * Increments a range input control\'s value by the value given by the Step attribute. If the optional parameter is used, will increment the input control\'s value by that value.\n * @param n Value to increment the value by.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepUp)\n */\n stepUp(n?: number): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLInputElement: {\n prototype: HTMLInputElement;\n new(): HTMLInputElement;\n};\n\n/**\n * Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLIElement)\n */\ninterface HTMLLIElement extends HTMLElement {\n /** @deprecated */\n type: string;\n /** Sets or retrieves the value of a list item. */\n value: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLIElement: {\n prototype: HTMLLIElement;\n new(): HTMLLIElement;\n};\n\n/**\n * Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement)\n */\ninterface HTMLLabelElement extends HTMLElement {\n /**\n * Returns the form control that is associated with this element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/control)\n */\n readonly control: HTMLElement | null;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the object to which the given label object is assigned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/htmlFor)\n */\n htmlFor: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLabelElement: {\n prototype: HTMLLabelElement;\n new(): HTMLLabelElement;\n};\n\n/**\n * The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement)\n */\ninterface HTMLLegendElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLegendElement: {\n prototype: HTMLLegendElement;\n new(): HTMLLegendElement;\n};\n\n/**\n * Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement)\n */\ninterface HTMLLinkElement extends HTMLElement, LinkStyle {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */\n as: string;\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n */\n charset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/crossOrigin) */\n crossOrigin: string | null;\n disabled: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */\n fetchPriority: string;\n /**\n * Sets or retrieves a destination URL or an anchor point.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/href)\n */\n href: string;\n /**\n * Sets or retrieves the language code of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/hreflang)\n */\n hreflang: string;\n imageSizes: string;\n imageSrcset: string;\n integrity: string;\n /** Sets or retrieves the media type. */\n media: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/referrerPolicy) */\n referrerPolicy: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/rel)\n */\n rel: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList) */\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n * @deprecated\n */\n rev: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sizes) */\n readonly sizes: DOMTokenList;\n /**\n * Sets or retrieves the window or frame at which to target content.\n * @deprecated\n */\n target: string;\n /** Sets or retrieves the MIME type of the object. */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLinkElement: {\n prototype: HTMLLinkElement;\n new(): HTMLLinkElement;\n};\n\n/**\n * Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement)\n */\ninterface HTMLMapElement extends HTMLElement {\n /**\n * Retrieves a collection of the area objects defined for the given map object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/areas)\n */\n readonly areas: HTMLCollection;\n /**\n * Sets or retrieves the name of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/name)\n */\n name: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMapElement: {\n prototype: HTMLMapElement;\n new(): HTMLMapElement;\n};\n\n/**\n * Provides methods to manipulate <marquee> elements.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMarqueeElement)\n */\ninterface HTMLMarqueeElement extends HTMLElement {\n /** @deprecated */\n behavior: string;\n /** @deprecated */\n bgColor: string;\n /** @deprecated */\n direction: string;\n /** @deprecated */\n height: string;\n /** @deprecated */\n hspace: number;\n /** @deprecated */\n loop: number;\n /** @deprecated */\n scrollAmount: number;\n /** @deprecated */\n scrollDelay: number;\n /** @deprecated */\n trueSpeed: boolean;\n /** @deprecated */\n vspace: number;\n /** @deprecated */\n width: string;\n /** @deprecated */\n start(): void;\n /** @deprecated */\n stop(): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLMarqueeElement: {\n prototype: HTMLMarqueeElement;\n new(): HTMLMarqueeElement;\n};\n\ninterface HTMLMediaElementEventMap extends HTMLElementEventMap {\n "encrypted": MediaEncryptedEvent;\n "waitingforkey": Event;\n}\n\n/**\n * Adds to HTMLElement the properties and methods needed to support basic media-related capabilities\xa0that are\xa0common to audio and video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement)\n */\ninterface HTMLMediaElement extends HTMLElement {\n /**\n * Gets or sets a value that indicates whether to start playing the media automatically.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/autoplay)\n */\n autoplay: boolean;\n /**\n * Gets a collection of buffered time ranges.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/buffered)\n */\n readonly buffered: TimeRanges;\n /**\n * Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/controls)\n */\n controls: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/crossOrigin) */\n crossOrigin: string | null;\n /**\n * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentSrc)\n */\n readonly currentSrc: string;\n /**\n * Gets or sets the current playback position, in seconds.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentTime)\n */\n currentTime: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultMuted) */\n defaultMuted: boolean;\n /**\n * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultPlaybackRate)\n */\n defaultPlaybackRate: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/disableRemotePlayback) */\n disableRemotePlayback: boolean;\n /**\n * Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/duration)\n */\n readonly duration: number;\n /**\n * Gets information about whether the playback has ended or not.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended)\n */\n readonly ended: boolean;\n /**\n * Returns an object representing the current error state of the audio or video element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/error)\n */\n readonly error: MediaError | null;\n /**\n * Gets or sets a flag to specify whether playback should restart after it completes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loop)\n */\n loop: boolean;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/mediaKeys)\n */\n readonly mediaKeys: MediaKeys | null;\n /**\n * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/muted)\n */\n muted: boolean;\n /**\n * Gets the current network activity for the element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/networkState)\n */\n readonly networkState: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/encrypted_event) */\n onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waitingforkey_event) */\n onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;\n /**\n * Gets a flag that specifies whether playback is paused.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/paused)\n */\n readonly paused: boolean;\n /**\n * Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playbackRate)\n */\n playbackRate: number;\n /**\n * Gets TimeRanges for the current media resource that has been played.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/played)\n */\n readonly played: TimeRanges;\n /**\n * Gets or sets a value indicating what data should be preloaded, if any.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preload)\n */\n preload: "none" | "metadata" | "auto" | "";\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preservesPitch) */\n preservesPitch: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/readyState) */\n readonly readyState: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/remote) */\n readonly remote: RemotePlayback;\n /**\n * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seekable)\n */\n readonly seekable: TimeRanges;\n /**\n * Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking)\n */\n readonly seeking: boolean;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/sinkId)\n */\n readonly sinkId: string;\n /**\n * The address or URL of the a media resource that is to be considered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/src)\n */\n src: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/srcObject) */\n srcObject: MediaProvider | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/textTracks) */\n readonly textTracks: TextTrackList;\n /**\n * Gets or sets the volume level for audio portions of the media element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volume)\n */\n volume: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/addTextTrack) */\n addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;\n /**\n * Returns a string that specifies whether the client can play a given media resource type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType)\n */\n canPlayType(type: string): CanPlayTypeResult;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/fastSeek) */\n fastSeek(time: number): void;\n /**\n * Resets the audio or video object and loads a new media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/load)\n */\n load(): void;\n /**\n * Pauses the current playback and sets paused to TRUE.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause)\n */\n pause(): void;\n /**\n * Loads and starts playback of a media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play)\n */\n play(): Promise<void>;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setMediaKeys)\n */\n setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setSinkId)\n */\n setSinkId(sinkId: string): Promise<void>;\n readonly NETWORK_EMPTY: 0;\n readonly NETWORK_IDLE: 1;\n readonly NETWORK_LOADING: 2;\n readonly NETWORK_NO_SOURCE: 3;\n readonly HAVE_NOTHING: 0;\n readonly HAVE_METADATA: 1;\n readonly HAVE_CURRENT_DATA: 2;\n readonly HAVE_FUTURE_DATA: 3;\n readonly HAVE_ENOUGH_DATA: 4;\n addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMediaElement: {\n prototype: HTMLMediaElement;\n new(): HTMLMediaElement;\n readonly NETWORK_EMPTY: 0;\n readonly NETWORK_IDLE: 1;\n readonly NETWORK_LOADING: 2;\n readonly NETWORK_NO_SOURCE: 3;\n readonly HAVE_NOTHING: 0;\n readonly HAVE_METADATA: 1;\n readonly HAVE_CURRENT_DATA: 2;\n readonly HAVE_FUTURE_DATA: 3;\n readonly HAVE_ENOUGH_DATA: 4;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement) */\ninterface HTMLMenuElement extends HTMLElement {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement/compact)\n */\n compact: boolean;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMenuElement: {\n prototype: HTMLMenuElement;\n new(): HTMLMenuElement;\n};\n\n/**\n * Contains descriptive metadata about a document. It\xa0inherits all of the properties and methods described in the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement)\n */\ninterface HTMLMetaElement extends HTMLElement {\n /** Gets or sets meta-information to associate with httpEquiv or name. */\n content: string;\n /** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */\n httpEquiv: string;\n media: string;\n /** Sets or retrieves the value specified in the content attribute of the meta object. */\n name: string;\n /**\n * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.\n * @deprecated\n */\n scheme: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMetaElement: {\n prototype: HTMLMetaElement;\n new(): HTMLMetaElement;\n};\n\n/**\n * The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement)\n */\ninterface HTMLMeterElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/high) */\n high: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/labels) */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/low) */\n low: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/max) */\n max: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/min) */\n min: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/optimum) */\n optimum: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/value) */\n value: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMeterElement: {\n prototype: HTMLMeterElement;\n new(): HTMLMeterElement;\n};\n\n/**\n * Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement)\n */\ninterface HTMLModElement extends HTMLElement {\n /**\n * Sets or retrieves reference information about the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/cite)\n */\n cite: string;\n /**\n * Sets or retrieves the date and time of a modification to the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/dateTime)\n */\n dateTime: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLModElement: {\n prototype: HTMLModElement;\n new(): HTMLModElement;\n};\n\n/**\n * Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement)\n */\ninterface HTMLOListElement extends HTMLElement {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/compact)\n */\n compact: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/reversed) */\n reversed: boolean;\n /**\n * The starting number.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/start)\n */\n start: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/type) */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOListElement: {\n prototype: HTMLOListElement;\n new(): HTMLOListElement;\n};\n\n/**\n * Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement)\n */\ninterface HTMLObjectElement extends HTMLElement {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/align)\n */\n align: string;\n /**\n * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/archive)\n */\n archive: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/border)\n */\n border: string;\n /**\n * Sets or retrieves the URL of the file containing the compiled Java class.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/code)\n */\n code: string;\n /**\n * Sets or retrieves the URL of the component.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeBase)\n */\n codeBase: string;\n /**\n * Sets or retrieves the Internet media type for the code associated with the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeType)\n */\n codeType: string;\n /**\n * Retrieves the document object of the page or frame.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentDocument)\n */\n readonly contentDocument: Document | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentWindow) */\n readonly contentWindow: WindowProxy | null;\n /**\n * Sets or retrieves the URL that references the data of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/data)\n */\n data: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/declare)\n */\n declare: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the height of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/height)\n */\n height: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/hspace)\n */\n hspace: number;\n /**\n * Sets or retrieves the name of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/name)\n */\n name: string;\n /**\n * Sets or retrieves a message to be displayed while an object is loading.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/standby)\n */\n standby: string;\n /**\n * Sets or retrieves the MIME type of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/type)\n */\n type: string;\n /**\n * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap)\n */\n useMap: string;\n /**\n * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validity)\n */\n readonly validity: ValidityState;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/vspace)\n */\n vspace: number;\n /**\n * Sets or retrieves the width of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/width)\n */\n width: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/checkValidity)\n */\n checkValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/getSVGDocument) */\n getSVGDocument(): Document | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity) */\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/setCustomValidity)\n */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLObjectElement: {\n prototype: HTMLObjectElement;\n new(): HTMLObjectElement;\n};\n\n/**\n * Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement)\n */\ninterface HTMLOptGroupElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/disabled) */\n disabled: boolean;\n /**\n * Sets or retrieves a value that you can use to implement your own label functionality for the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/label)\n */\n label: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOptGroupElement: {\n prototype: HTMLOptGroupElement;\n new(): HTMLOptGroupElement;\n};\n\n/**\n * <option> elements and inherits all classes and methods of the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement)\n */\ninterface HTMLOptionElement extends HTMLElement {\n /**\n * Sets or retrieves the status of an option.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/defaultSelected)\n */\n defaultSelected: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/disabled) */\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/form)\n */\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the ordinal position of an option in a list box.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/index)\n */\n readonly index: number;\n /**\n * Sets or retrieves a value that you can use to implement your own label functionality for the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/label)\n */\n label: string;\n /**\n * Sets or retrieves whether the option in the list box is the default item.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/selected)\n */\n selected: boolean;\n /**\n * Sets or retrieves the text string specified by the option tag.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/text)\n */\n text: string;\n /**\n * Sets or retrieves the value which is returned to the server when the form control is submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/value)\n */\n value: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOptionElement: {\n prototype: HTMLOptionElement;\n new(): HTMLOptionElement;\n};\n\n/**\n * HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection)\n */\ninterface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {\n /**\n * Returns the number of elements in the collection.\n *\n * When set to a smaller number, truncates the number of option elements in the corresponding container.\n *\n * When set to a greater number, adds new blank option elements to that container.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/length)\n */\n length: number;\n /**\n * Returns the index of the first selected item, if any, or \u22121 if there is no selected item.\n *\n * Can be set, to change the selection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/selectedIndex)\n */\n selectedIndex: number;\n /**\n * Inserts element before the node given by before.\n *\n * The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.\n *\n * If before is omitted, null, or a number out of range, then element will be added at the end of the list.\n *\n * This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/add)\n */\n add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n /**\n * Removes the item with index index from the collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/remove)\n */\n remove(index: number): void;\n}\n\ndeclare var HTMLOptionsCollection: {\n prototype: HTMLOptionsCollection;\n new(): HTMLOptionsCollection;\n};\n\ninterface HTMLOrSVGElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */\n autofocus: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */\n readonly dataset: DOMStringMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) */\n nonce?: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) */\n tabIndex: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) */\n blur(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) */\n focus(options?: FocusOptions): void;\n}\n\n/**\n * Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement)\n */\ninterface HTMLOutputElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/defaultValue) */\n defaultValue: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form) */\n readonly form: HTMLFormElement | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor) */\n readonly htmlFor: DOMTokenList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */\n name: string;\n /**\n * Returns the string "output".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/type)\n */\n readonly type: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validationMessage) */\n readonly validationMessage: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validity) */\n readonly validity: ValidityState;\n /**\n * Returns the element\'s current value.\n *\n * Can be set, to change the value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value)\n */\n value: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/willValidate) */\n readonly willValidate: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity) */\n checkValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity) */\n reportValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/setCustomValidity) */\n setCustomValidity(error: string): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOutputElement: {\n prototype: HTMLOutputElement;\n new(): HTMLOutputElement;\n};\n\n/**\n * Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement)\n */\ninterface HTMLParagraphElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement/align)\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLParagraphElement: {\n prototype: HTMLParagraphElement;\n new(): HTMLParagraphElement;\n};\n\n/**\n * Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement)\n */\ninterface HTMLParamElement extends HTMLElement {\n /**\n * Sets or retrieves the name of an input parameter for an element.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/name)\n */\n name: string;\n /**\n * Sets or retrieves the content type of the resource designated by the value attribute.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/type)\n */\n type: string;\n /**\n * Sets or retrieves the value of an input parameter for an element.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/value)\n */\n value: string;\n /**\n * Sets or retrieves the data type of the value attribute.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/valueType)\n */\n valueType: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var HTMLParamElement: {\n prototype: HTMLParamElement;\n new(): HTMLParamElement;\n};\n\n/**\n * A <picture> HTML element. It doesn\'t implement specific properties or methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPictureElement)\n */\ninterface HTMLPictureElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLPictureElement: {\n prototype: HTMLPictureElement;\n new(): HTMLPictureElement;\n};\n\n/**\n * Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement)\n */\ninterface HTMLPreElement extends HTMLElement {\n /**\n * Sets or gets a value that you can use to implement your own width functionality for the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement/width)\n */\n width: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLPreElement: {\n prototype: HTMLPreElement;\n new(): HTMLPreElement;\n};\n\n/**\n * Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement)\n */\ninterface HTMLProgressElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/labels) */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * Defines the maximum, or "done" value for a progress element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/max)\n */\n max: number;\n /**\n * Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/position)\n */\n readonly position: number;\n /**\n * Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/value)\n */\n value: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLProgressElement: {\n prototype: HTMLProgressElement;\n new(): HTMLProgressElement;\n};\n\n/**\n * Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement)\n */\ninterface HTMLQuoteElement extends HTMLElement {\n /**\n * Sets or retrieves reference information about the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement/cite)\n */\n cite: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLQuoteElement: {\n prototype: HTMLQuoteElement;\n new(): HTMLQuoteElement;\n};\n\n/**\n * HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement)\n */\ninterface HTMLScriptElement extends HTMLElement {\n async: boolean;\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n */\n charset: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */\n crossOrigin: string | null;\n /** Sets or retrieves the status of the script. */\n defer: boolean;\n /**\n * Sets or retrieves the event for which the script is written.\n * @deprecated\n */\n event: string;\n fetchPriority: string;\n /**\n * Sets or retrieves the object that is bound to the event script.\n * @deprecated\n */\n htmlFor: string;\n integrity: string;\n noModule: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy) */\n referrerPolicy: string;\n /** Retrieves the URL to an external file that contains the source code or data. */\n src: string;\n /** Retrieves or sets the text of the object as a string. */\n text: string;\n /** Sets or retrieves the MIME type for the associated scripting engine. */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLScriptElement: {\n prototype: HTMLScriptElement;\n new(): HTMLScriptElement;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static) */\n supports(type: string): boolean;\n};\n\n/**\n * A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement)\n */\ninterface HTMLSelectElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete) */\n autocomplete: AutoFill;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled) */\n disabled: boolean;\n /**\n * Retrieves a reference to the form that the object is embedded in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/form)\n */\n readonly form: HTMLFormElement | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/labels) */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /**\n * Sets or retrieves the number of objects in a collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/length)\n */\n length: number;\n /**\n * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/multiple)\n */\n multiple: boolean;\n /**\n * Sets or retrieves the name of the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/name)\n */\n name: string;\n /**\n * Returns an HTMLOptionsCollection of the list of options.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/options)\n */\n readonly options: HTMLOptionsCollection;\n /**\n * When present, marks an element that can\'t be submitted without a value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/required)\n */\n required: boolean;\n /**\n * Sets or retrieves the index of the selected option in a select object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedIndex)\n */\n selectedIndex: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedOptions) */\n readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;\n /**\n * Sets or retrieves the number of rows in the list box.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/size)\n */\n size: number;\n /**\n * Retrieves the type of select control based on the value of the MULTIPLE attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type)\n */\n readonly type: string;\n /**\n * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validationMessage)\n */\n readonly validationMessage: string;\n /**\n * Returns a ValidityState object that represents the validity states of an element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validity)\n */\n readonly validity: ValidityState;\n /**\n * Sets or retrieves the value which is returned to the server when the form control is submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/value)\n */\n value: string;\n /**\n * Returns whether an element will successfully validate based on forms validation rules and constraints.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/willValidate)\n */\n readonly willValidate: boolean;\n /**\n * Adds an element to the areas, controlRange, or options collection.\n * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.\n * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/add)\n */\n add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n /**\n * Returns whether a form will validate when it is submitted, without having to submit it.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/checkValidity)\n */\n checkValidity(): boolean;\n /**\n * Retrieves a select object or an object from an options collection.\n * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.\n * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/item)\n */\n item(index: number): HTMLOptionElement | null;\n /**\n * Retrieves a select object or an object from an options collection.\n * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/namedItem)\n */\n namedItem(name: string): HTMLOptionElement | null;\n /**\n * Removes an element from the collection.\n * @param index Number that specifies the zero-based index of the element to remove from the collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/remove)\n */\n remove(): void;\n remove(index: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity) */\n reportValidity(): boolean;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity)\n */\n setCustomValidity(error: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/showPicker) */\n showPicker(): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [name: number]: HTMLOptionElement | HTMLOptGroupElement;\n}\n\ndeclare var HTMLSelectElement: {\n prototype: HTMLSelectElement;\n new(): HTMLSelectElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement) */\ninterface HTMLSlotElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/name) */\n name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assign) */\n assign(...nodes: (Element | Text)[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedElements) */\n assignedElements(options?: AssignedNodesOptions): Element[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedNodes) */\n assignedNodes(options?: AssignedNodesOptions): Node[];\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSlotElement: {\n prototype: HTMLSlotElement;\n new(): HTMLSlotElement;\n};\n\n/**\n * Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement)\n */\ninterface HTMLSourceElement extends HTMLElement {\n height: number;\n /**\n * Gets or sets the intended media type of the media source.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/media)\n */\n media: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/sizes) */\n sizes: string;\n /**\n * The address or URL of the a media resource that is to be considered.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/src)\n */\n src: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/srcset) */\n srcset: string;\n /**\n * Gets or sets the MIME type of a media resource.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)\n */\n type: string;\n width: number;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSourceElement: {\n prototype: HTMLSourceElement;\n new(): HTMLSourceElement;\n};\n\n/**\n * A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSpanElement)\n */\ninterface HTMLSpanElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSpanElement: {\n prototype: HTMLSpanElement;\n new(): HTMLSpanElement;\n};\n\n/**\n * A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)\n */\ninterface HTMLStyleElement extends HTMLElement, LinkStyle {\n /**\n * Enables or disables the style sheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/disabled)\n */\n disabled: boolean;\n /**\n * Sets or retrieves the media type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/media)\n */\n media: string;\n /**\n * Retrieves the CSS language in which the style sheet is written.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/type)\n */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLStyleElement: {\n prototype: HTMLStyleElement;\n new(): HTMLStyleElement;\n};\n\n/**\n * Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement)\n */\ninterface HTMLTableCaptionElement extends HTMLElement {\n /**\n * Sets or retrieves the alignment of the caption or legend.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement/align)\n */\n align: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableCaptionElement: {\n prototype: HTMLTableCaptionElement;\n new(): HTMLTableCaptionElement;\n};\n\n/**\n * Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement)\n */\ninterface HTMLTableCellElement extends HTMLElement {\n /**\n * Sets or retrieves abbreviated text for the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/abbr)\n */\n abbr: string;\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/align)\n */\n align: string;\n /**\n * Sets or retrieves a comma-delimited list of conceptual categories associated with the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/axis)\n */\n axis: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/bgColor)\n */\n bgColor: string;\n /**\n * Retrieves the position of the object in the cells collection of a row.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/cellIndex)\n */\n readonly cellIndex: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/ch)\n */\n ch: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/chOff)\n */\n chOff: string;\n /**\n * Sets or retrieves the number columns in the table that the object should span.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/colSpan)\n */\n colSpan: number;\n /**\n * Sets or retrieves a list of header cells that provide information for the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/headers)\n */\n headers: string;\n /**\n * Sets or retrieves the height of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/height)\n */\n height: string;\n /**\n * Sets or retrieves whether the browser automatically performs wordwrap.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/noWrap)\n */\n noWrap: boolean;\n /**\n * Sets or retrieves how many rows in a table the cell should span.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/rowSpan)\n */\n rowSpan: number;\n /**\n * Sets or retrieves the group of cells in a table to which the object\'s information applies.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/scope)\n */\n scope: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/vAlign)\n */\n vAlign: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/width)\n */\n width: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableCellElement: {\n prototype: HTMLTableCellElement;\n new(): HTMLTableCellElement;\n};\n\n/**\n * Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement)\n */\ninterface HTMLTableColElement extends HTMLElement {\n /**\n * Sets or retrieves the alignment of the object relative to the display or table.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/align)\n */\n align: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/ch)\n */\n ch: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/chOff)\n */\n chOff: string;\n /**\n * Sets or retrieves the number of columns in the group.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/span)\n */\n span: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/vAlign)\n */\n vAlign: string;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/width)\n */\n width: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableColElement: {\n prototype: HTMLTableColElement;\n new(): HTMLTableColElement;\n};\n\n/** @deprecated prefer HTMLTableCellElement */\ninterface HTMLTableDataCellElement extends HTMLTableCellElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/**\n * Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement)\n */\ninterface HTMLTableElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/align)\n */\n align: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/bgColor)\n */\n bgColor: string;\n /**\n * Sets or retrieves the width of the border to draw around the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/border)\n */\n border: string;\n /**\n * Retrieves the caption object of a table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/caption)\n */\n caption: HTMLTableCaptionElement | null;\n /**\n * Sets or retrieves the amount of space between the border of the cell and the content of the cell.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellPadding)\n */\n cellPadding: string;\n /**\n * Sets or retrieves the amount of space between cells in a table.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellSpacing)\n */\n cellSpacing: string;\n /**\n * Sets or retrieves the way the border frame around the table is displayed.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/frame)\n */\n frame: string;\n /**\n * Sets or retrieves the number of horizontal rows contained in the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rows)\n */\n readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n /**\n * Sets or retrieves which dividing lines (inner borders) are displayed.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rules)\n */\n rules: string;\n /**\n * Sets or retrieves a description and/or structure of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/summary)\n */\n summary: string;\n /**\n * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tBodies)\n */\n readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;\n /**\n * Retrieves the tFoot object of the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tFoot)\n */\n tFoot: HTMLTableSectionElement | null;\n /**\n * Retrieves the tHead object of the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tHead)\n */\n tHead: HTMLTableSectionElement | null;\n /**\n * Sets or retrieves the width of the object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/width)\n */\n width: string;\n /**\n * Creates an empty caption element in the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createCaption)\n */\n createCaption(): HTMLTableCaptionElement;\n /**\n * Creates an empty tBody element in the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTBody)\n */\n createTBody(): HTMLTableSectionElement;\n /**\n * Creates an empty tFoot element in the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTFoot)\n */\n createTFoot(): HTMLTableSectionElement;\n /**\n * Returns the tHead element object if successful, or null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTHead)\n */\n createTHead(): HTMLTableSectionElement;\n /**\n * Deletes the caption element and its contents from the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteCaption)\n */\n deleteCaption(): void;\n /**\n * Removes the specified row (tr) from the element and from the rows collection.\n * @param index Number that specifies the zero-based position in the rows collection of the row to remove.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteRow)\n */\n deleteRow(index: number): void;\n /**\n * Deletes the tFoot element and its contents from the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTFoot)\n */\n deleteTFoot(): void;\n /**\n * Deletes the tHead element and its contents from the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTHead)\n */\n deleteTHead(): void;\n /**\n * Creates a new row (tr) in the table, and adds the row to the rows collection.\n * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/insertRow)\n */\n insertRow(index?: number): HTMLTableRowElement;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableElement: {\n prototype: HTMLTableElement;\n new(): HTMLTableElement;\n};\n\n/** @deprecated prefer HTMLTableCellElement */\ninterface HTMLTableHeaderCellElement extends HTMLTableCellElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/**\n * Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement)\n */\ninterface HTMLTableRowElement extends HTMLElement {\n /**\n * Sets or retrieves how the object is aligned with adjacent text.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/align)\n */\n align: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/bgColor)\n */\n bgColor: string;\n /**\n * Retrieves a collection of all cells in the table row.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/cells)\n */\n readonly cells: HTMLCollectionOf<HTMLTableCellElement>;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/ch)\n */\n ch: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/chOff)\n */\n chOff: string;\n /**\n * Retrieves the position of the object in the rows collection for the table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/rowIndex)\n */\n readonly rowIndex: number;\n /**\n * Retrieves the position of the object in the collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/sectionRowIndex)\n */\n readonly sectionRowIndex: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/vAlign)\n */\n vAlign: string;\n /**\n * Removes the specified cell from the table row, as well as from the cells collection.\n * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/deleteCell)\n */\n deleteCell(index: number): void;\n /**\n * Creates a new cell in the table row, and adds the cell to the cells collection.\n * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/insertCell)\n */\n insertCell(index?: number): HTMLTableCellElement;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableRowElement: {\n prototype: HTMLTableRowElement;\n new(): HTMLTableRowElement;\n};\n\n/**\n * Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement)\n */\ninterface HTMLTableSectionElement extends HTMLElement {\n /**\n * Sets or retrieves a value that indicates the table alignment.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/align)\n */\n align: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/ch)\n */\n ch: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/chOff)\n */\n chOff: string;\n /**\n * Sets or retrieves the number of horizontal rows contained in the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/rows)\n */\n readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/vAlign)\n */\n vAlign: string;\n /**\n * Removes the specified row (tr) from the element and from the rows collection.\n * @param index Number that specifies the zero-based position in the rows collection of the row to remove.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/deleteRow)\n */\n deleteRow(index: number): void;\n /**\n * Creates a new row (tr) in the table, and adds the row to the rows collection.\n * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/insertRow)\n */\n insertRow(index?: number): HTMLTableRowElement;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableSectionElement: {\n prototype: HTMLTableSectionElement;\n new(): HTMLTableSectionElement;\n};\n\n/**\n * Enables access to the contents of an HTML <template> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement)\n */\ninterface HTMLTemplateElement extends HTMLElement {\n /**\n * Returns the template contents (a DocumentFragment).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content)\n */\n readonly content: DocumentFragment;\n shadowRootMode: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTemplateElement: {\n prototype: HTMLTemplateElement;\n new(): HTMLTemplateElement;\n};\n\n/**\n * Provides special properties and methods for manipulating the layout and presentation of <textarea> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement)\n */\ninterface HTMLTextAreaElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */\n autocomplete: AutoFill;\n /** Sets or retrieves the width of the object. */\n cols: number;\n /** Sets or retrieves the initial contents of the object. */\n defaultValue: string;\n dirName: string;\n disabled: boolean;\n /** Retrieves a reference to the form that the object is embedded in. */\n readonly form: HTMLFormElement | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/labels) */\n readonly labels: NodeListOf<HTMLLabelElement>;\n /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */\n maxLength: number;\n minLength: number;\n /** Sets or retrieves the name of the object. */\n name: string;\n /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */\n placeholder: string;\n /** Sets or retrieves the value indicated whether the content of the object is read-only. */\n readOnly: boolean;\n /** When present, marks an element that can\'t be submitted without a value. */\n required: boolean;\n /** Sets or retrieves the number of horizontal rows contained in the object. */\n rows: number;\n selectionDirection: "forward" | "backward" | "none";\n /** Gets or sets the end position or offset of a text selection. */\n selectionEnd: number;\n /** Gets or sets the starting position or offset of a text selection. */\n selectionStart: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */\n readonly textLength: number;\n /** Retrieves the type of control. */\n readonly type: string;\n /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */\n readonly validationMessage: string;\n /** Returns a ValidityState object that represents the validity states of an element. */\n readonly validity: ValidityState;\n /** Retrieves or sets the text in the entry field of the textArea element. */\n value: string;\n /** Returns whether an element will successfully validate based on forms validation rules and constraints. */\n readonly willValidate: boolean;\n /** Sets or retrieves how to handle wordwrapping in the object. */\n wrap: string;\n /** Returns whether a form will validate when it is submitted, without having to submit it. */\n checkValidity(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity) */\n reportValidity(): boolean;\n /** Highlights the input area of a form element. */\n select(): void;\n /**\n * Sets a custom error message that is displayed when a form is submitted.\n * @param error Sets a custom error message that is displayed when a form is submitted.\n */\n setCustomValidity(error: string): void;\n setRangeText(replacement: string): void;\n setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n /**\n * Sets the start and end positions of a selection in a text field.\n * @param start The offset into the text field for the start of the selection.\n * @param end The offset into the text field for the end of the selection.\n * @param direction The direction in which the selection is performed.\n */\n setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTextAreaElement: {\n prototype: HTMLTextAreaElement;\n new(): HTMLTextAreaElement;\n};\n\n/**\n * Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement)\n */\ninterface HTMLTimeElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement/dateTime) */\n dateTime: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTimeElement: {\n prototype: HTMLTimeElement;\n new(): HTMLTimeElement;\n};\n\n/**\n * Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement)\n */\ninterface HTMLTitleElement extends HTMLElement {\n /**\n * Retrieves or sets the text of the object as a string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement/text)\n */\n text: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTitleElement: {\n prototype: HTMLTitleElement;\n new(): HTMLTitleElement;\n};\n\n/**\n * The HTMLTrackElement\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement)\n */\ninterface HTMLTrackElement extends HTMLElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/default) */\n default: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/kind) */\n kind: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/label) */\n label: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/readyState) */\n readonly readyState: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/src) */\n src: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/srclang) */\n srclang: string;\n /**\n * Returns the TextTrack object corresponding to the text track of the track element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/track)\n */\n readonly track: TextTrack;\n readonly NONE: 0;\n readonly LOADING: 1;\n readonly LOADED: 2;\n readonly ERROR: 3;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTrackElement: {\n prototype: HTMLTrackElement;\n new(): HTMLTrackElement;\n readonly NONE: 0;\n readonly LOADING: 1;\n readonly LOADED: 2;\n readonly ERROR: 3;\n};\n\n/**\n * Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement)\n */\ninterface HTMLUListElement extends HTMLElement {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/compact)\n */\n compact: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/type)\n */\n type: string;\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLUListElement: {\n prototype: HTMLUListElement;\n new(): HTMLUListElement;\n};\n\n/**\n * An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUnknownElement)\n */\ninterface HTMLUnknownElement extends HTMLElement {\n addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLUnknownElement: {\n prototype: HTMLUnknownElement;\n new(): HTMLUnknownElement;\n};\n\ninterface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {\n "enterpictureinpicture": Event;\n "leavepictureinpicture": Event;\n}\n\n/**\n * Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)\n */\ninterface HTMLVideoElement extends HTMLMediaElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/disablePictureInPicture) */\n disablePictureInPicture: boolean;\n /**\n * Gets or sets the height of the video element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/height)\n */\n height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */\n onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */\n onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;\n /** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */\n playsInline: boolean;\n /**\n * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/poster)\n */\n poster: string;\n /**\n * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoHeight)\n */\n readonly videoHeight: number;\n /**\n * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoWidth)\n */\n readonly videoWidth: number;\n /**\n * Gets or sets the width of the video element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width)\n */\n width: number;\n cancelVideoFrameCallback(handle: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality) */\n getVideoPlaybackQuality(): VideoPlaybackQuality;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture) */\n requestPictureInPicture(): Promise<PictureInPictureWindow>;\n requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;\n addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLVideoElement: {\n prototype: HTMLVideoElement;\n new(): HTMLVideoElement;\n};\n\n/**\n * Events that fire when the fragment identifier of the URL has changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent)\n */\ninterface HashChangeEvent extends Event {\n /**\n * Returns the URL of the session history entry that is now current.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/newURL)\n */\n readonly newURL: string;\n /**\n * Returns the URL of the session history entry that was previously current.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/oldURL)\n */\n readonly oldURL: string;\n}\n\ndeclare var HashChangeEvent: {\n prototype: HashChangeEvent;\n new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;\n};\n\n/**\n * This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xa0of zero or more name and value pairs. \xa0You can add to this using methods like append() (see Examples.)\xa0In all methods of this interface, header names are matched by case-insensitive byte sequence.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)\n */\ninterface Headers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */\n append(name: string, value: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */\n delete(name: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */\n get(name: string): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */\n getSetCookie(): string[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */\n has(name: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */\n set(name: string, value: string): void;\n forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;\n}\n\ndeclare var Headers: {\n prototype: Headers;\n new(init?: HeadersInit): Headers;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight) */\ninterface Highlight {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority) */\n priority: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type) */\n type: HighlightType;\n forEach(callbackfn: (value: AbstractRange, key: AbstractRange, parent: Highlight) => void, thisArg?: any): void;\n}\n\ndeclare var Highlight: {\n prototype: Highlight;\n new(...initialRanges: AbstractRange[]): Highlight;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */\ninterface HighlightRegistry {\n forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void;\n}\n\ndeclare var HighlightRegistry: {\n prototype: HighlightRegistry;\n new(): HighlightRegistry;\n};\n\n/**\n * Allows\xa0manipulation of\xa0the browser session history, that is the pages visited in the tab or frame that the current page is loaded in.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History)\n */\ninterface History {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/scrollRestoration) */\n scrollRestoration: ScrollRestoration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/state) */\n readonly state: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/back) */\n back(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/forward) */\n forward(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/go) */\n go(delta?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/pushState) */\n pushState(data: any, unused: string, url?: string | URL | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/replaceState) */\n replaceState(data: any, unused: string, url?: string | URL | null): void;\n}\n\ndeclare var History: {\n prototype: History;\n new(): History;\n};\n\n/**\n * This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor)\n */\ninterface IDBCursor {\n /**\n * Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)\n */\n readonly direction: IDBCursorDirection;\n /**\n * Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)\n */\n readonly key: IDBValidKey;\n /**\n * Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)\n */\n readonly primaryKey: IDBValidKey;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) */\n readonly request: IDBRequest;\n /**\n * Returns the IDBObjectStore or IDBIndex the cursor was opened from.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)\n */\n readonly source: IDBObjectStore | IDBIndex;\n /**\n * Advances the cursor through the next count records in range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)\n */\n advance(count: number): void;\n /**\n * Advances the cursor to the next record in range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)\n */\n continue(key?: IDBValidKey): void;\n /**\n * Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)\n */\n continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n /**\n * Delete the record pointed at by the cursor with a new value.\n *\n * If successful, request\'s result will be undefined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)\n */\n delete(): IDBRequest<undefined>;\n /**\n * Updated the record pointed at by the cursor with a new value.\n *\n * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.\n *\n * If successful, request\'s result will be the record\'s key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)\n */\n update(value: any): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBCursor: {\n prototype: IDBCursor;\n new(): IDBCursor;\n};\n\n/**\n * This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)\n */\ninterface IDBCursorWithValue extends IDBCursor {\n /**\n * Returns the cursor\'s current value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/value)\n */\n readonly value: any;\n}\n\ndeclare var IDBCursorWithValue: {\n prototype: IDBCursorWithValue;\n new(): IDBCursorWithValue;\n};\n\ninterface IDBDatabaseEventMap {\n "abort": Event;\n "close": Event;\n "error": Event;\n "versionchange": IDBVersionChangeEvent;\n}\n\n/**\n * This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)\n */\ninterface IDBDatabase extends EventTarget {\n /**\n * Returns the name of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)\n */\n readonly name: string;\n /**\n * Returns a list of the names of object stores in the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)\n */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */\n onclose: ((this: IDBDatabase, ev: Event) => any) | null;\n onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */\n onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;\n /**\n * Returns the version of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)\n */\n readonly version: number;\n /**\n * Closes the connection once all running transactions have finished.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)\n */\n close(): void;\n /**\n * Creates a new object store with the given name and options and returns a new IDBObjectStore.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)\n */\n createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;\n /**\n * Deletes the object store with the given name.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)\n */\n deleteObjectStore(name: string): void;\n /**\n * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)\n */\n transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;\n addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBDatabase: {\n prototype: IDBDatabase;\n new(): IDBDatabase;\n};\n\n/**\n * In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.)\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)\n */\ninterface IDBFactory {\n /**\n * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.\n *\n * Throws a "DataError" DOMException if either input is not a valid key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)\n */\n cmp(first: any, second: any): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) */\n databases(): Promise<IDBDatabaseInfo[]>;\n /**\n * Attempts to delete the named database. If the database already exists and there are open connections that don\'t close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request\'s result will be null.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)\n */\n deleteDatabase(name: string): IDBOpenDBRequest;\n /**\n * Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request\'s result will be the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open)\n */\n open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n prototype: IDBFactory;\n new(): IDBFactory;\n};\n\n/**\n * IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)\n */\ninterface IDBIndex {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) */\n readonly keyPath: string | string[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) */\n readonly multiEntry: boolean;\n /**\n * Returns the name of the index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)\n */\n name: string;\n /**\n * Returns the IDBObjectStore the index belongs to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)\n */\n readonly objectStore: IDBObjectStore;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) */\n readonly unique: boolean;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue, or null if there were no matching records.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursor, or null if there were no matching records.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor)\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n}\n\ndeclare var IDBIndex: {\n prototype: IDBIndex;\n new(): IDBIndex;\n};\n\n/**\n * A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs:\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)\n */\ninterface IDBKeyRange {\n /**\n * Returns lower bound, or undefined if none.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)\n */\n readonly lower: any;\n /**\n * Returns true if the lower open flag is set, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)\n */\n readonly lowerOpen: boolean;\n /**\n * Returns upper bound, or undefined if none.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)\n */\n readonly upper: any;\n /**\n * Returns true if the upper open flag is set, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)\n */\n readonly upperOpen: boolean;\n /**\n * Returns true if key is included in the range, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)\n */\n includes(key: any): boolean;\n}\n\ndeclare var IDBKeyRange: {\n prototype: IDBKeyRange;\n new(): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)\n */\n bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)\n */\n lowerBound(lower: any, open?: boolean): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange spanning only key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)\n */\n only(value: any): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)\n */\n upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\n/**\n * This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xa0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xa0To-do Notifications\xa0app (view example live.)\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)\n */\ninterface IDBObjectStore {\n /**\n * Returns true if the store has a key generator, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)\n */\n readonly autoIncrement: boolean;\n /**\n * Returns a list of the names of indexes in the store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)\n */\n readonly indexNames: DOMStringList;\n /**\n * Returns the key path of the store, or null if none.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)\n */\n readonly keyPath: string | string[];\n /**\n * Returns the name of the store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)\n */\n name: string;\n /**\n * Returns the associated transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)\n */\n readonly transaction: IDBTransaction;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n *\n * If successful, request\'s result will be the record\'s key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)\n */\n add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n /**\n * Deletes all records in store.\n *\n * If successful, request\'s result will be undefined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)\n */\n clear(): IDBRequest<undefined>;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)\n */\n createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n /**\n * Deletes records in store with the given key or in the given key range in query.\n *\n * If successful, request\'s result will be undefined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)\n */\n delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n /**\n * Deletes the index in store with the given name.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)\n */\n deleteIndex(name: string): void;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) */\n index(name: string): IDBIndex;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n *\n * If successful, request\'s result will be the record\'s key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put)\n */\n put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBObjectStore: {\n prototype: IDBObjectStore;\n new(): IDBObjectStore;\n};\n\ninterface IDBOpenDBRequestEventMap extends IDBRequestEventMap {\n "blocked": IDBVersionChangeEvent;\n "upgradeneeded": IDBVersionChangeEvent;\n}\n\n/**\n * Also inherits methods from its parents IDBRequest and EventTarget.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest)\n */\ninterface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */\n onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */\n onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBOpenDBRequest: {\n prototype: IDBOpenDBRequest;\n new(): IDBOpenDBRequest;\n};\n\ninterface IDBRequestEventMap {\n "error": Event;\n "success": Event;\n}\n\n/**\n * The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)\n */\ninterface IDBRequest<T = any> extends EventTarget {\n /**\n * When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error)\n */\n readonly error: DOMException | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */\n onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */\n onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;\n /**\n * Returns "pending" until a request is complete, then returns "done".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)\n */\n readonly readyState: IDBRequestReadyState;\n /**\n * When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)\n */\n readonly result: T;\n /**\n * Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)\n */\n readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n /**\n * Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction)\n */\n readonly transaction: IDBTransaction | null;\n addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBRequest: {\n prototype: IDBRequest;\n new(): IDBRequest;\n};\n\ninterface IDBTransactionEventMap {\n "abort": Event;\n "complete": Event;\n "error": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction) */\ninterface IDBTransaction extends EventTarget {\n /**\n * Returns the transaction\'s connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)\n */\n readonly db: IDBDatabase;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) */\n readonly durability: IDBTransactionDurability;\n /**\n * If the transaction was aborted, returns the error (a DOMException) providing the reason.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)\n */\n readonly error: DOMException | null;\n /**\n * Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)\n */\n readonly mode: IDBTransactionMode;\n /**\n * Returns a list of the names of object stores in the transaction\'s scope. For an upgrade transaction this is all object stores in the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)\n */\n readonly objectStoreNames: DOMStringList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */\n onabort: ((this: IDBTransaction, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */\n oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */\n onerror: ((this: IDBTransaction, ev: Event) => any) | null;\n /**\n * Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)\n */\n abort(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) */\n commit(): void;\n /**\n * Returns an IDBObjectStore in the transaction\'s scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore)\n */\n objectStore(name: string): IDBObjectStore;\n addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBTransaction: {\n prototype: IDBTransaction;\n new(): IDBTransaction;\n};\n\n/**\n * This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)\n */\ninterface IDBVersionChangeEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) */\n readonly newVersion: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) */\n readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n prototype: IDBVersionChangeEvent;\n new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;\n};\n\n/**\n * The\xa0IIRFilterNode\xa0interface of the\xa0Web Audio API\xa0is a AudioNode processor which implements a general infinite impulse response (IIR)\xa0 filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode)\n */\ninterface IIRFilterNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode/getFrequencyResponse) */\n getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var IIRFilterNode: {\n prototype: IIRFilterNode;\n new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline) */\ninterface IdleDeadline {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/didTimeout) */\n readonly didTimeout: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/timeRemaining) */\n timeRemaining(): DOMHighResTimeStamp;\n}\n\ndeclare var IdleDeadline: {\n prototype: IdleDeadline;\n new(): IdleDeadline;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap) */\ninterface ImageBitmap {\n /**\n * Returns the intrinsic height of the image, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)\n */\n readonly height: number;\n /**\n * Returns the intrinsic width of the image, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)\n */\n readonly width: number;\n /**\n * Releases imageBitmap\'s underlying bitmap data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)\n */\n close(): void;\n}\n\ndeclare var ImageBitmap: {\n prototype: ImageBitmap;\n new(): ImageBitmap;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */\ninterface ImageBitmapRenderingContext {\n /** Returns the canvas element that the context is bound to. */\n readonly canvas: HTMLCanvasElement | OffscreenCanvas;\n /**\n * Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)\n */\n transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n prototype: ImageBitmapRenderingContext;\n new(): ImageBitmapRenderingContext;\n};\n\n/**\n * The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)\n */\ninterface ImageData {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) */\n readonly colorSpace: PredefinedColorSpace;\n /**\n * Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)\n */\n readonly data: Uint8ClampedArray;\n /**\n * Returns the actual dimensions of the data in the ImageData object, in pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)\n */\n readonly height: number;\n /**\n * Returns the actual dimensions of the data in the ImageData object, in pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width)\n */\n readonly width: number;\n}\n\ndeclare var ImageData: {\n prototype: ImageData;\n new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;\n};\n\ninterface InnerHTML {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */\n innerHTML: string;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo)\n */\ninterface InputDeviceInfo extends MediaDeviceInfo {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo/getCapabilities) */\n getCapabilities(): MediaTrackCapabilities;\n}\n\ndeclare var InputDeviceInfo: {\n prototype: InputDeviceInfo;\n new(): InputDeviceInfo;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent) */\ninterface InputEvent extends UIEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/data) */\n readonly data: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/dataTransfer) */\n readonly dataTransfer: DataTransfer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/inputType) */\n readonly inputType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/isComposing) */\n readonly isComposing: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/getTargetRanges) */\n getTargetRanges(): StaticRange[];\n}\n\ndeclare var InputEvent: {\n prototype: InputEvent;\n new(type: string, eventInitDict?: InputEventInit): InputEvent;\n};\n\n/**\n * provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document\'s viewport.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver)\n */\ninterface IntersectionObserver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root) */\n readonly root: Element | Document | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin) */\n readonly rootMargin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds) */\n readonly thresholds: ReadonlyArray<number>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect) */\n disconnect(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe) */\n observe(target: Element): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords) */\n takeRecords(): IntersectionObserverEntry[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve) */\n unobserve(target: Element): void;\n}\n\ndeclare var IntersectionObserver: {\n prototype: IntersectionObserver;\n new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;\n};\n\n/**\n * This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry)\n */\ninterface IntersectionObserverEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect) */\n readonly boundingClientRect: DOMRectReadOnly;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio) */\n readonly intersectionRatio: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect) */\n readonly intersectionRect: DOMRectReadOnly;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting) */\n readonly isIntersecting: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds) */\n readonly rootBounds: DOMRectReadOnly | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target) */\n readonly target: Element;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time) */\n readonly time: DOMHighResTimeStamp;\n}\n\ndeclare var IntersectionObserverEntry: {\n prototype: IntersectionObserverEntry;\n new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */\ninterface KHR_parallel_shader_compile {\n readonly COMPLETION_STATUS_KHR: 0x91B1;\n}\n\n/**\n * KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent)\n */\ninterface KeyboardEvent extends UIEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/altKey) */\n readonly altKey: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/charCode)\n */\n readonly charCode: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/code) */\n readonly code: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/ctrlKey) */\n readonly ctrlKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/isComposing) */\n readonly isComposing: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/key) */\n readonly key: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/keyCode)\n */\n readonly keyCode: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/location) */\n readonly location: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/metaKey) */\n readonly metaKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/repeat) */\n readonly repeat: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/shiftKey) */\n readonly shiftKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/getModifierState) */\n getModifierState(keyArg: string): boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/initKeyboardEvent)\n */\n initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;\n readonly DOM_KEY_LOCATION_STANDARD: 0x00;\n readonly DOM_KEY_LOCATION_LEFT: 0x01;\n readonly DOM_KEY_LOCATION_RIGHT: 0x02;\n readonly DOM_KEY_LOCATION_NUMPAD: 0x03;\n}\n\ndeclare var KeyboardEvent: {\n prototype: KeyboardEvent;\n new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;\n readonly DOM_KEY_LOCATION_STANDARD: 0x00;\n readonly DOM_KEY_LOCATION_LEFT: 0x01;\n readonly DOM_KEY_LOCATION_RIGHT: 0x02;\n readonly DOM_KEY_LOCATION_NUMPAD: 0x03;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect) */\ninterface KeyframeEffect extends AnimationEffect {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/composite) */\n composite: CompositeOperation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/iterationComposite) */\n iterationComposite: IterationCompositeOperation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/pseudoElement) */\n pseudoElement: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/target) */\n target: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/getKeyframes) */\n getKeyframes(): ComputedKeyframe[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/setKeyframes) */\n setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;\n}\n\ndeclare var KeyframeEffect: {\n prototype: KeyframeEffect;\n new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;\n new(source: KeyframeEffect): KeyframeEffect;\n};\n\ninterface LinkStyle {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */\n readonly sheet: CSSStyleSheet | null;\n}\n\n/**\n * The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location)\n */\ninterface Location {\n /**\n * Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/ancestorOrigins)\n */\n readonly ancestorOrigins: DOMStringList;\n /**\n * Returns the Location object\'s URL\'s fragment (includes leading "#" if non-empty).\n *\n * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hash)\n */\n hash: string;\n /**\n * Returns the Location object\'s URL\'s host and port (if different from the default port for the scheme).\n *\n * Can be set, to navigate to the same URL with a changed host and port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/host)\n */\n host: string;\n /**\n * Returns the Location object\'s URL\'s host.\n *\n * Can be set, to navigate to the same URL with a changed host.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hostname)\n */\n hostname: string;\n /**\n * Returns the Location object\'s URL.\n *\n * Can be set, to navigate to the given URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/href)\n */\n href: string;\n toString(): string;\n /**\n * Returns the Location object\'s URL\'s origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/origin)\n */\n readonly origin: string;\n /**\n * Returns the Location object\'s URL\'s path.\n *\n * Can be set, to navigate to the same URL with a changed path.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/pathname)\n */\n pathname: string;\n /**\n * Returns the Location object\'s URL\'s port.\n *\n * Can be set, to navigate to the same URL with a changed port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/port)\n */\n port: string;\n /**\n * Returns the Location object\'s URL\'s scheme.\n *\n * Can be set, to navigate to the same URL with a changed scheme.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/protocol)\n */\n protocol: string;\n /**\n * Returns the Location object\'s URL\'s query (includes leading "?" if non-empty).\n *\n * Can be set, to navigate to the same URL with a changed query (ignores leading "?").\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/search)\n */\n search: string;\n /**\n * Navigates to the given URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/assign)\n */\n assign(url: string | URL): void;\n /**\n * Reloads the current page.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/reload)\n */\n reload(): void;\n /**\n * Removes the current page from the session history and navigates to the given URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/replace)\n */\n replace(url: string | URL): void;\n}\n\ndeclare var Location: {\n prototype: Location;\n new(): Location;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)\n */\ninterface Lock {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) */\n readonly mode: LockMode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) */\n readonly name: string;\n}\n\ndeclare var Lock: {\n prototype: Lock;\n new(): Lock;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)\n */\ninterface LockManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */\n query(): Promise<LockManagerSnapshot>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */\n request(name: string, callback: LockGrantedCallback): Promise<any>;\n request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;\n}\n\ndeclare var LockManager: {\n prototype: LockManager;\n new(): LockManager;\n};\n\ninterface MIDIAccessEventMap {\n "statechange": Event;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess)\n */\ninterface MIDIAccess extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */\n readonly inputs: MIDIInputMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */\n onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) */\n readonly outputs: MIDIOutputMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) */\n readonly sysexEnabled: boolean;\n addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIAccess: {\n prototype: MIDIAccess;\n new(): MIDIAccess;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent)\n */\ninterface MIDIConnectionEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent/port) */\n readonly port: MIDIPort | null;\n}\n\ndeclare var MIDIConnectionEvent: {\n prototype: MIDIConnectionEvent;\n new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;\n};\n\ninterface MIDIInputEventMap extends MIDIPortEventMap {\n "midimessage": MIDIMessageEvent;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput)\n */\ninterface MIDIInput extends MIDIPort {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput/midimessage_event) */\n onmidimessage: ((this: MIDIInput, ev: MIDIMessageEvent) => any) | null;\n addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIInput: {\n prototype: MIDIInput;\n new(): MIDIInput;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap)\n */\ninterface MIDIInputMap {\n forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;\n}\n\ndeclare var MIDIInputMap: {\n prototype: MIDIInputMap;\n new(): MIDIInputMap;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent)\n */\ninterface MIDIMessageEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent/data) */\n readonly data: Uint8Array | null;\n}\n\ndeclare var MIDIMessageEvent: {\n prototype: MIDIMessageEvent;\n new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput)\n */\ninterface MIDIOutput extends MIDIPort {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */\n send(data: number[], timestamp?: DOMHighResTimeStamp): void;\n addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIOutput: {\n prototype: MIDIOutput;\n new(): MIDIOutput;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap)\n */\ninterface MIDIOutputMap {\n forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;\n}\n\ndeclare var MIDIOutputMap: {\n prototype: MIDIOutputMap;\n new(): MIDIOutputMap;\n};\n\ninterface MIDIPortEventMap {\n "statechange": MIDIConnectionEvent;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort)\n */\ninterface MIDIPort extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/connection) */\n readonly connection: MIDIPortConnectionState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/id) */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/manufacturer) */\n readonly manufacturer: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/name) */\n readonly name: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/statechange_event) */\n onstatechange: ((this: MIDIPort, ev: MIDIConnectionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/state) */\n readonly state: MIDIPortDeviceState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/type) */\n readonly type: MIDIPortType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/version) */\n readonly version: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/close) */\n close(): Promise<MIDIPort>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/open) */\n open(): Promise<MIDIPort>;\n addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MIDIPort: {\n prototype: MIDIPort;\n new(): MIDIPort;\n};\n\ninterface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement) */\ninterface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {\n addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MathMLElement: {\n prototype: MathMLElement;\n new(): MathMLElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities) */\ninterface MediaCapabilities {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) */\n decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) */\n encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;\n}\n\ndeclare var MediaCapabilities: {\n prototype: MediaCapabilities;\n new(): MediaCapabilities;\n};\n\n/**\n * The MediaDevicesInfo interface contains information that describes a single media input or output device.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo)\n */\ninterface MediaDeviceInfo {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/deviceId) */\n readonly deviceId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/groupId) */\n readonly groupId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/kind) */\n readonly kind: MediaDeviceKind;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/label) */\n readonly label: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON) */\n toJSON(): any;\n}\n\ndeclare var MediaDeviceInfo: {\n prototype: MediaDeviceInfo;\n new(): MediaDeviceInfo;\n};\n\ninterface MediaDevicesEventMap {\n "devicechange": Event;\n}\n\n/**\n * Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices)\n */\ninterface MediaDevices extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/devicechange_event) */\n ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/enumerateDevices) */\n enumerateDevices(): Promise<MediaDeviceInfo[]>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getDisplayMedia) */\n getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getSupportedConstraints) */\n getSupportedConstraints(): MediaTrackSupportedConstraints;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getUserMedia) */\n getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;\n addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaDevices: {\n prototype: MediaDevices;\n new(): MediaDevices;\n};\n\n/**\n * A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode)\n */\ninterface MediaElementAudioSourceNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode/mediaElement) */\n readonly mediaElement: HTMLMediaElement;\n}\n\ndeclare var MediaElementAudioSourceNode: {\n prototype: MediaElementAudioSourceNode;\n new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent) */\ninterface MediaEncryptedEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initData) */\n readonly initData: ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initDataType) */\n readonly initDataType: string;\n}\n\ndeclare var MediaEncryptedEvent: {\n prototype: MediaEncryptedEvent;\n new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;\n};\n\n/**\n * An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError)\n */\ninterface MediaError {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/code) */\n readonly code: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/message) */\n readonly message: string;\n readonly MEDIA_ERR_ABORTED: 1;\n readonly MEDIA_ERR_NETWORK: 2;\n readonly MEDIA_ERR_DECODE: 3;\n readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;\n}\n\ndeclare var MediaError: {\n prototype: MediaError;\n new(): MediaError;\n readonly MEDIA_ERR_ABORTED: 1;\n readonly MEDIA_ERR_NETWORK: 2;\n readonly MEDIA_ERR_DECODE: 3;\n readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;\n};\n\n/**\n * This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent)\n */\ninterface MediaKeyMessageEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/message) */\n readonly message: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/messageType) */\n readonly messageType: MediaKeyMessageType;\n}\n\ndeclare var MediaKeyMessageEvent: {\n prototype: MediaKeyMessageEvent;\n new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;\n};\n\ninterface MediaKeySessionEventMap {\n "keystatuseschange": Event;\n "message": MediaKeyMessageEvent;\n}\n\n/**\n * This EncryptedMediaExtensions API interface represents a\xa0context for message exchange with a content decryption module (CDM).\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession)\n */\ninterface MediaKeySession extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/closed) */\n readonly closed: Promise<MediaKeySessionClosedReason>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/expiration) */\n readonly expiration: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keyStatuses) */\n readonly keyStatuses: MediaKeyStatusMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keystatuseschange_event) */\n onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/message_event) */\n onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/sessionId) */\n readonly sessionId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/close) */\n close(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/generateRequest) */\n generateRequest(initDataType: string, initData: BufferSource): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/load) */\n load(sessionId: string): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/remove) */\n remove(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/update) */\n update(response: BufferSource): Promise<void>;\n addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaKeySession: {\n prototype: MediaKeySession;\n new(): MediaKeySession;\n};\n\n/**\n * This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap)\n */\ninterface MediaKeyStatusMap {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/size) */\n readonly size: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/get) */\n get(keyId: BufferSource): MediaKeyStatus | undefined;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/has) */\n has(keyId: BufferSource): boolean;\n forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;\n}\n\ndeclare var MediaKeyStatusMap: {\n prototype: MediaKeyStatusMap;\n new(): MediaKeyStatusMap;\n};\n\n/**\n * This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess)\n */\ninterface MediaKeySystemAccess {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/keySystem) */\n readonly keySystem: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/createMediaKeys) */\n createMediaKeys(): Promise<MediaKeys>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/getConfiguration) */\n getConfiguration(): MediaKeySystemConfiguration;\n}\n\ndeclare var MediaKeySystemAccess: {\n prototype: MediaKeySystemAccess;\n new(): MediaKeySystemAccess;\n};\n\n/**\n * This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys)\n */\ninterface MediaKeys {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession) */\n createSession(sessionType?: MediaKeySessionType): MediaKeySession;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate) */\n setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;\n}\n\ndeclare var MediaKeys: {\n prototype: MediaKeys;\n new(): MediaKeys;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList) */\ninterface MediaList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/mediaText) */\n mediaText: string;\n toString(): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/appendMedium) */\n appendMedium(medium: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/deleteMedium) */\n deleteMedium(medium: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/item) */\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var MediaList: {\n prototype: MediaList;\n new(): MediaList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata) */\ninterface MediaMetadata {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/album) */\n album: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artist) */\n artist: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artwork) */\n artwork: ReadonlyArray<MediaImage>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/title) */\n title: string;\n}\n\ndeclare var MediaMetadata: {\n prototype: MediaMetadata;\n new(init?: MediaMetadataInit): MediaMetadata;\n};\n\ninterface MediaQueryListEventMap {\n "change": MediaQueryListEvent;\n}\n\n/**\n * Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList)\n */\ninterface MediaQueryList extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/matches) */\n readonly matches: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/media) */\n readonly media: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/change_event) */\n onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/addListener)\n */\n addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/removeListener)\n */\n removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;\n addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaQueryList: {\n prototype: MediaQueryList;\n new(): MediaQueryList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent) */\ninterface MediaQueryListEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/matches) */\n readonly matches: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/media) */\n readonly media: string;\n}\n\ndeclare var MediaQueryListEvent: {\n prototype: MediaQueryListEvent;\n new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;\n};\n\ninterface MediaRecorderEventMap {\n "dataavailable": BlobEvent;\n "error": Event;\n "pause": Event;\n "resume": Event;\n "start": Event;\n "stop": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder) */\ninterface MediaRecorder extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/audioBitsPerSecond) */\n readonly audioBitsPerSecond: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/mimeType) */\n readonly mimeType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */\n ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */\n onerror: ((this: MediaRecorder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */\n onpause: ((this: MediaRecorder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */\n onresume: ((this: MediaRecorder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start_event) */\n onstart: ((this: MediaRecorder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop_event) */\n onstop: ((this: MediaRecorder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/state) */\n readonly state: RecordingState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stream) */\n readonly stream: MediaStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/videoBitsPerSecond) */\n readonly videoBitsPerSecond: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause) */\n pause(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/requestData) */\n requestData(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume) */\n resume(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start) */\n start(timeslice?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop) */\n stop(): void;\n addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaRecorder: {\n prototype: MediaRecorder;\n new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported_static) */\n isTypeSupported(type: string): boolean;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession) */\ninterface MediaSession {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/metadata) */\n metadata: MediaMetadata | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/playbackState) */\n playbackState: MediaSessionPlaybackState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler) */\n setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setPositionState) */\n setPositionState(state?: MediaPositionState): void;\n}\n\ndeclare var MediaSession: {\n prototype: MediaSession;\n new(): MediaSession;\n};\n\ninterface MediaSourceEventMap {\n "sourceclose": Event;\n "sourceended": Event;\n "sourceopen": Event;\n}\n\n/**\n * This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource)\n */\ninterface MediaSource extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/activeSourceBuffers) */\n readonly activeSourceBuffers: SourceBufferList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/duration) */\n duration: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceclose_event) */\n onsourceclose: ((this: MediaSource, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceended_event) */\n onsourceended: ((this: MediaSource, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceopen_event) */\n onsourceopen: ((this: MediaSource, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/readyState) */\n readonly readyState: ReadyState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceBuffers) */\n readonly sourceBuffers: SourceBufferList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/addSourceBuffer) */\n addSourceBuffer(type: string): SourceBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/clearLiveSeekableRange) */\n clearLiveSeekableRange(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/endOfStream) */\n endOfStream(error?: EndOfStreamError): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/removeSourceBuffer) */\n removeSourceBuffer(sourceBuffer: SourceBuffer): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/setLiveSeekableRange) */\n setLiveSeekableRange(start: number, end: number): void;\n addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaSource: {\n prototype: MediaSource;\n new(): MediaSource;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */\n isTypeSupported(type: string): boolean;\n};\n\ninterface MediaStreamEventMap {\n "addtrack": MediaStreamTrackEvent;\n "removetrack": MediaStreamTrackEvent;\n}\n\n/**\n * A stream of media content. A stream consists of several tracks such as\xa0video or audio tracks. Each track is specified as an instance of MediaStreamTrack.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream)\n */\ninterface MediaStream extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/active) */\n readonly active: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/id) */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addtrack_event) */\n onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removetrack_event) */\n onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addTrack) */\n addTrack(track: MediaStreamTrack): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/clone) */\n clone(): MediaStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getAudioTracks) */\n getAudioTracks(): MediaStreamTrack[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTrackById) */\n getTrackById(trackId: string): MediaStreamTrack | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTracks) */\n getTracks(): MediaStreamTrack[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getVideoTracks) */\n getVideoTracks(): MediaStreamTrack[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removeTrack) */\n removeTrack(track: MediaStreamTrack): void;\n addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaStream: {\n prototype: MediaStream;\n new(): MediaStream;\n new(stream: MediaStream): MediaStream;\n new(tracks: MediaStreamTrack[]): MediaStream;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode) */\ninterface MediaStreamAudioDestinationNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode/stream) */\n readonly stream: MediaStream;\n}\n\ndeclare var MediaStreamAudioDestinationNode: {\n prototype: MediaStreamAudioDestinationNode;\n new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;\n};\n\n/**\n * A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode)\n */\ninterface MediaStreamAudioSourceNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode/mediaStream) */\n readonly mediaStream: MediaStream;\n}\n\ndeclare var MediaStreamAudioSourceNode: {\n prototype: MediaStreamAudioSourceNode;\n new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;\n};\n\ninterface MediaStreamTrackEventMap {\n "ended": Event;\n "mute": Event;\n "unmute": Event;\n}\n\n/**\n * A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack)\n */\ninterface MediaStreamTrack extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint) */\n contentHint: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled) */\n enabled: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id) */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind) */\n readonly kind: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label) */\n readonly label: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/muted) */\n readonly muted: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/ended_event) */\n onended: ((this: MediaStreamTrack, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/mute_event) */\n onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/unmute_event) */\n onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState) */\n readonly readyState: MediaStreamTrackState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints) */\n applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone) */\n clone(): MediaStreamTrack;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities) */\n getCapabilities(): MediaTrackCapabilities;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints) */\n getConstraints(): MediaTrackConstraints;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings) */\n getSettings(): MediaTrackSettings;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/stop) */\n stop(): void;\n addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaStreamTrack: {\n prototype: MediaStreamTrack;\n new(): MediaStreamTrack;\n};\n\n/**\n * Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent)\n */\ninterface MediaStreamTrackEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent/track) */\n readonly track: MediaStreamTrack;\n}\n\ndeclare var MediaStreamTrackEvent: {\n prototype: MediaStreamTrackEvent;\n new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;\n};\n\n/**\n * This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)\n */\ninterface MessageChannel {\n /**\n * Returns the first MessagePort object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)\n */\n readonly port1: MessagePort;\n /**\n * Returns the second MessagePort object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)\n */\n readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n prototype: MessageChannel;\n new(): MessageChannel;\n};\n\n/**\n * A message received by a target object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)\n */\ninterface MessageEvent<T = any> extends Event {\n /**\n * Returns the data of the message.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)\n */\n readonly data: T;\n /**\n * Returns the last event ID string, for server-sent events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)\n */\n readonly lastEventId: string;\n /**\n * Returns the origin of the message, for server-sent events and cross-document messaging.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)\n */\n readonly origin: string;\n /**\n * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)\n */\n readonly ports: ReadonlyArray<MessagePort>;\n /**\n * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)\n */\n readonly source: MessageEventSource | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)\n */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;\n}\n\ndeclare var MessageEvent: {\n prototype: MessageEvent;\n new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;\n};\n\ninterface MessagePortEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)\n */\ninterface MessagePort extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */\n onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */\n onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;\n /**\n * Disconnects the port, so that it is no longer active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)\n */\n close(): void;\n /**\n * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /**\n * Begins dispatching messages received on the port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)\n */\n start(): void;\n addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MessagePort: {\n prototype: MessagePort;\n new(): MessagePort;\n};\n\n/**\n * Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType)\n */\ninterface MimeType {\n /**\n * Returns the MIME type\'s description.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/description)\n */\n readonly description: string;\n /**\n * Returns the Plugin object that implements this MIME type.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/enabledPlugin)\n */\n readonly enabledPlugin: Plugin;\n /**\n * Returns the MIME type\'s typical file extensions, in a comma-separated list.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/suffixes)\n */\n readonly suffixes: string;\n /**\n * Returns the MIME type.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/type)\n */\n readonly type: string;\n}\n\n/** @deprecated */\ndeclare var MimeType: {\n prototype: MimeType;\n new(): MimeType;\n};\n\n/**\n * Returns an array of MimeType instances, each of which contains information\xa0about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray)\n */\ninterface MimeTypeArray {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/length)\n */\n readonly length: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/item)\n */\n item(index: number): MimeType | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/namedItem)\n */\n namedItem(name: string): MimeType | null;\n [index: number]: MimeType;\n}\n\n/** @deprecated */\ndeclare var MimeTypeArray: {\n prototype: MimeTypeArray;\n new(): MimeTypeArray;\n};\n\n/**\n * Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent)\n */\ninterface MouseEvent extends UIEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/altKey) */\n readonly altKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/button) */\n readonly button: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/buttons) */\n readonly buttons: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientX) */\n readonly clientX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientY) */\n readonly clientY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/ctrlKey) */\n readonly ctrlKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerX) */\n readonly layerX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerY) */\n readonly layerY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/metaKey) */\n readonly metaKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementX) */\n readonly movementX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementY) */\n readonly movementY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetX) */\n readonly offsetX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetY) */\n readonly offsetY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageX) */\n readonly pageX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageY) */\n readonly pageY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/relatedTarget) */\n readonly relatedTarget: EventTarget | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenX) */\n readonly screenX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenY) */\n readonly screenY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/shiftKey) */\n readonly shiftKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/x) */\n readonly x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/y) */\n readonly y: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/getModifierState) */\n getModifierState(keyArg: string): boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/initMouseEvent)\n */\n initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void;\n}\n\ndeclare var MouseEvent: {\n prototype: MouseEvent;\n new(type: string, eventInitDict?: MouseEventInit): MouseEvent;\n};\n\n/**\n * Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.\n * @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent)\n */\ninterface MutationEvent extends Event {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/attrChange)\n */\n readonly attrChange: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/attrName)\n */\n readonly attrName: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/newValue)\n */\n readonly newValue: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/prevValue)\n */\n readonly prevValue: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/relatedNode)\n */\n readonly relatedNode: Node | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/initMutationEvent)\n */\n initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;\n readonly MODIFICATION: 1;\n readonly ADDITION: 2;\n readonly REMOVAL: 3;\n}\n\n/** @deprecated */\ndeclare var MutationEvent: {\n prototype: MutationEvent;\n new(): MutationEvent;\n readonly MODIFICATION: 1;\n readonly ADDITION: 2;\n readonly REMOVAL: 3;\n};\n\n/**\n * Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver)\n */\ninterface MutationObserver {\n /**\n * Stops observer from observing any mutations. Until the observe() method is used again, observer\'s callback will not be invoked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/disconnect)\n */\n disconnect(): void;\n /**\n * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).\n *\n * The options argument allows for setting mutation observation options via object members.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe)\n */\n observe(target: Node, options?: MutationObserverInit): void;\n /**\n * Empties the record queue and returns what was in there.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/takeRecords)\n */\n takeRecords(): MutationRecord[];\n}\n\ndeclare var MutationObserver: {\n prototype: MutationObserver;\n new(callback: MutationCallback): MutationObserver;\n};\n\n/**\n * A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver\'s callback.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord)\n */\ninterface MutationRecord {\n /**\n * Return the nodes added and removed respectively.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/addedNodes)\n */\n readonly addedNodes: NodeList;\n /**\n * Returns the local name of the changed attribute, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeName)\n */\n readonly attributeName: string | null;\n /**\n * Returns the namespace of the changed attribute, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeNamespace)\n */\n readonly attributeNamespace: string | null;\n /**\n * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/nextSibling)\n */\n readonly nextSibling: Node | null;\n /**\n * The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/oldValue)\n */\n readonly oldValue: string | null;\n /**\n * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/previousSibling)\n */\n readonly previousSibling: Node | null;\n /**\n * Return the nodes added and removed respectively.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/removedNodes)\n */\n readonly removedNodes: NodeList;\n /**\n * Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/target)\n */\n readonly target: Node;\n /**\n * Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/type)\n */\n readonly type: MutationRecordType;\n}\n\ndeclare var MutationRecord: {\n prototype: MutationRecord;\n new(): MutationRecord;\n};\n\n/**\n * A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap)\n */\ninterface NamedNodeMap {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItem) */\n getNamedItem(qualifiedName: string): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItemNS) */\n getNamedItemNS(namespace: string | null, localName: string): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/item) */\n item(index: number): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItem) */\n removeNamedItem(qualifiedName: string): Attr;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItemNS) */\n removeNamedItemNS(namespace: string | null, localName: string): Attr;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItem) */\n setNamedItem(attr: Attr): Attr | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItemNS) */\n setNamedItemNS(attr: Attr): Attr | null;\n [index: number]: Attr;\n}\n\ndeclare var NamedNodeMap: {\n prototype: NamedNodeMap;\n new(): NamedNodeMap;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)\n */\ninterface NavigationPreloadManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) */\n disable(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) */\n enable(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) */\n getState(): Promise<NavigationPreloadState>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue) */\n setHeaderValue(value: string): Promise<void>;\n}\n\ndeclare var NavigationPreloadManager: {\n prototype: NavigationPreloadManager;\n new(): NavigationPreloadManager;\n};\n\n/**\n * The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)\n */\ninterface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clipboard)\n */\n readonly clipboard: Clipboard;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/credentials)\n */\n readonly credentials: CredentialsContainer;\n readonly doNotTrack: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/geolocation) */\n readonly geolocation: Geolocation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/maxTouchPoints) */\n readonly maxTouchPoints: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaCapabilities) */\n readonly mediaCapabilities: MediaCapabilities;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaDevices)\n */\n readonly mediaDevices: MediaDevices;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaSession) */\n readonly mediaSession: MediaSession;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/permissions) */\n readonly permissions: Permissions;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/serviceWorker)\n */\n readonly serviceWorker: ServiceWorkerContainer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userActivation) */\n readonly userActivation: UserActivation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/wakeLock) */\n readonly wakeLock: WakeLock;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/canShare)\n */\n canShare(data?: ShareData): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/getGamepads) */\n getGamepads(): (Gamepad | null)[];\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMIDIAccess)\n */\n requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)\n */\n requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon) */\n sendBeacon(url: string | URL, data?: BodyInit | null): boolean;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/share)\n */\n share(data?: ShareData): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */\n vibrate(pattern: VibratePattern): boolean;\n}\n\ndeclare var Navigator: {\n prototype: Navigator;\n new(): Navigator;\n};\n\ninterface NavigatorAutomationInformation {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/webdriver) */\n readonly webdriver: boolean;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorBadge {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */\n clearAppBadge(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */\n setAppBadge(contents?: number): Promise<void>;\n}\n\ninterface NavigatorConcurrentHardware {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */\n readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorContentUtils {\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/registerProtocolHandler)\n */\n registerProtocolHandler(scheme: string, url: string | URL): void;\n}\n\ninterface NavigatorCookies {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/cookieEnabled) */\n readonly cookieEnabled: boolean;\n}\n\ninterface NavigatorID {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)\n */\n readonly appCodeName: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)\n */\n readonly appName: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)\n */\n readonly appVersion: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)\n */\n readonly platform: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)\n */\n readonly product: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/productSub)\n */\n readonly productSub: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */\n readonly userAgent: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendor)\n */\n readonly vendor: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendorSub)\n */\n readonly vendorSub: string;\n}\n\ninterface NavigatorLanguage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */\n readonly language: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */\n readonly languages: ReadonlyArray<string>;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorLocks {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */\n readonly locks: LockManager;\n}\n\ninterface NavigatorOnLine {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */\n readonly onLine: boolean;\n}\n\ninterface NavigatorPlugins {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigatorPlugins/mimeTypes)\n */\n readonly mimeTypes: MimeTypeArray;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/pdfViewerEnabled) */\n readonly pdfViewerEnabled: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/plugins)\n */\n readonly plugins: PluginArray;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/javaEnabled)\n */\n javaEnabled(): boolean;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorStorage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */\n readonly storage: StorageManager;\n}\n\n/**\n * Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node)\n */\ninterface Node extends EventTarget {\n /**\n * Returns node\'s node document\'s document base URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/baseURI)\n */\n readonly baseURI: string;\n /**\n * Returns the children.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/childNodes)\n */\n readonly childNodes: NodeListOf<ChildNode>;\n /**\n * Returns the first child.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/firstChild)\n */\n readonly firstChild: ChildNode | null;\n /**\n * Returns true if node is connected and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isConnected)\n */\n readonly isConnected: boolean;\n /**\n * Returns the last child.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lastChild)\n */\n readonly lastChild: ChildNode | null;\n /**\n * Returns the next sibling.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nextSibling)\n */\n readonly nextSibling: ChildNode | null;\n /**\n * Returns a string appropriate for the type of node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName)\n */\n readonly nodeName: string;\n /**\n * Returns the type of node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeType)\n */\n readonly nodeType: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) */\n nodeValue: string | null;\n /**\n * Returns the node document. Returns null for documents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument)\n */\n readonly ownerDocument: Document | null;\n /**\n * Returns the parent element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentElement)\n */\n readonly parentElement: HTMLElement | null;\n /**\n * Returns the parent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentNode)\n */\n readonly parentNode: ParentNode | null;\n /**\n * Returns the previous sibling.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/previousSibling)\n */\n readonly previousSibling: ChildNode | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent) */\n textContent: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/appendChild) */\n appendChild<T extends Node>(node: T): T;\n /**\n * Returns a copy of node. If deep is true, the copy also includes the node\'s descendants.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode)\n */\n cloneNode(deep?: boolean): Node;\n /**\n * Returns a bitmask indicating the position of other relative to node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition)\n */\n compareDocumentPosition(other: Node): number;\n /**\n * Returns true if other is an inclusive descendant of node, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/contains)\n */\n contains(other: Node | null): boolean;\n /**\n * Returns node\'s root.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/getRootNode)\n */\n getRootNode(options?: GetRootNodeOptions): Node;\n /**\n * Returns whether node has children.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes)\n */\n hasChildNodes(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) */\n insertBefore<T extends Node>(node: T, child: Node | null): T;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) */\n isDefaultNamespace(namespace: string | null): boolean;\n /**\n * Returns whether node and otherNode have the same properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode)\n */\n isEqualNode(otherNode: Node | null): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) */\n isSameNode(otherNode: Node | null): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) */\n lookupNamespaceURI(prefix: string | null): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) */\n lookupPrefix(namespace: string | null): string | null;\n /**\n * Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/normalize)\n */\n normalize(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/removeChild) */\n removeChild<T extends Node>(child: T): T;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) */\n replaceChild<T extends Node>(node: Node, child: T): T;\n /** node is an element. */\n readonly ELEMENT_NODE: 1;\n readonly ATTRIBUTE_NODE: 2;\n /** node is a Text node. */\n readonly TEXT_NODE: 3;\n /** node is a CDATASection node. */\n readonly CDATA_SECTION_NODE: 4;\n readonly ENTITY_REFERENCE_NODE: 5;\n readonly ENTITY_NODE: 6;\n /** node is a ProcessingInstruction node. */\n readonly PROCESSING_INSTRUCTION_NODE: 7;\n /** node is a Comment node. */\n readonly COMMENT_NODE: 8;\n /** node is a document. */\n readonly DOCUMENT_NODE: 9;\n /** node is a doctype. */\n readonly DOCUMENT_TYPE_NODE: 10;\n /** node is a DocumentFragment node. */\n readonly DOCUMENT_FRAGMENT_NODE: 11;\n readonly NOTATION_NODE: 12;\n /** Set when node and other are not in the same tree. */\n readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;\n /** Set when other is preceding node. */\n readonly DOCUMENT_POSITION_PRECEDING: 0x02;\n /** Set when other is following node. */\n readonly DOCUMENT_POSITION_FOLLOWING: 0x04;\n /** Set when other is an ancestor of node. */\n readonly DOCUMENT_POSITION_CONTAINS: 0x08;\n /** Set when other is a descendant of node. */\n readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;\n readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;\n}\n\ndeclare var Node: {\n prototype: Node;\n new(): Node;\n /** node is an element. */\n readonly ELEMENT_NODE: 1;\n readonly ATTRIBUTE_NODE: 2;\n /** node is a Text node. */\n readonly TEXT_NODE: 3;\n /** node is a CDATASection node. */\n readonly CDATA_SECTION_NODE: 4;\n readonly ENTITY_REFERENCE_NODE: 5;\n readonly ENTITY_NODE: 6;\n /** node is a ProcessingInstruction node. */\n readonly PROCESSING_INSTRUCTION_NODE: 7;\n /** node is a Comment node. */\n readonly COMMENT_NODE: 8;\n /** node is a document. */\n readonly DOCUMENT_NODE: 9;\n /** node is a doctype. */\n readonly DOCUMENT_TYPE_NODE: 10;\n /** node is a DocumentFragment node. */\n readonly DOCUMENT_FRAGMENT_NODE: 11;\n readonly NOTATION_NODE: 12;\n /** Set when node and other are not in the same tree. */\n readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;\n /** Set when other is preceding node. */\n readonly DOCUMENT_POSITION_PRECEDING: 0x02;\n /** Set when other is following node. */\n readonly DOCUMENT_POSITION_FOLLOWING: 0x04;\n /** Set when other is an ancestor of node. */\n readonly DOCUMENT_POSITION_CONTAINS: 0x08;\n /** Set when other is a descendant of node. */\n readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;\n readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;\n};\n\n/**\n * An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator)\n */\ninterface NodeIterator {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/filter) */\n readonly filter: NodeFilter | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/pointerBeforeReferenceNode) */\n readonly pointerBeforeReferenceNode: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/referenceNode) */\n readonly referenceNode: Node;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/root) */\n readonly root: Node;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/whatToShow) */\n readonly whatToShow: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/detach)\n */\n detach(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/nextNode) */\n nextNode(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/previousNode) */\n previousNode(): Node | null;\n}\n\ndeclare var NodeIterator: {\n prototype: NodeIterator;\n new(): NodeIterator;\n};\n\n/**\n * NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList)\n */\ninterface NodeList {\n /**\n * Returns the number of nodes in the collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/length)\n */\n readonly length: number;\n /**\n * Returns the node with index index from the collection. The nodes are sorted in tree order.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/item)\n */\n item(index: number): Node | null;\n /**\n * Performs the specified action for each node in an list.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;\n [index: number]: Node;\n}\n\ndeclare var NodeList: {\n prototype: NodeList;\n new(): NodeList;\n};\n\ninterface NodeListOf<TNode extends Node> extends NodeList {\n item(index: number): TNode;\n /**\n * Performs the specified action for each node in an list.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;\n [index: number]: TNode;\n}\n\ninterface NonDocumentTypeChildNode {\n /**\n * Returns the first following sibling that is an element, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling)\n */\n readonly nextElementSibling: Element | null;\n /**\n * Returns the first preceding sibling that is an element, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling)\n */\n readonly previousElementSibling: Element | null;\n}\n\ninterface NonElementParentNode {\n /**\n * Returns the first element within node\'s descendants whose ID is elementId.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementById)\n */\n getElementById(elementId: string): Element | null;\n}\n\ninterface NotificationEventMap {\n "click": Event;\n "close": Event;\n "error": Event;\n "show": Event;\n}\n\n/**\n * This Notifications API interface is used to configure and display desktop notifications to the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)\n */\ninterface Notification extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */\n readonly badge: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */\n readonly body: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */\n readonly data: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) */\n readonly dir: NotificationDirection;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) */\n readonly icon: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) */\n readonly lang: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */\n onclick: ((this: Notification, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */\n onclose: ((this: Notification, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */\n onerror: ((this: Notification, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */\n onshow: ((this: Notification, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */\n readonly requireInteraction: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */\n readonly silent: boolean | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */\n readonly tag: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */\n readonly title: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) */\n close(): void;\n addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Notification: {\n prototype: Notification;\n new(title: string, options?: NotificationOptions): Notification;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */\n readonly permission: NotificationPermission;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission_static) */\n requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed) */\ninterface OES_draw_buffers_indexed {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) */\n blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) */\n blendEquationiOES(buf: GLuint, mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) */\n blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) */\n blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) */\n colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) */\n disableiOES(target: GLenum, index: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) */\n enableiOES(target: GLenum, index: GLuint): void;\n}\n\n/**\n * The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)\n */\ninterface OES_element_index_uint {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap) */\ninterface OES_fbo_render_mipmap {\n}\n\n/**\n * The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)\n */\ninterface OES_standard_derivatives {\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;\n}\n\n/**\n * The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float)\n */\ninterface OES_texture_float {\n}\n\n/**\n * The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear)\n */\ninterface OES_texture_float_linear {\n}\n\n/**\n * The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float)\n */\ninterface OES_texture_half_float {\n readonly HALF_FLOAT_OES: 0x8D61;\n}\n\n/**\n * The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear)\n */\ninterface OES_texture_half_float_linear {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object) */\ninterface OES_vertex_array_object {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */\n bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */\n createVertexArrayOES(): WebGLVertexArrayObjectOES | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */\n deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */\n isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2) */\ninterface OVR_multiview2 {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) */\n framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;\n readonly MAX_VIEWS_OVR: 0x9631;\n readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;\n}\n\n/**\n * The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent)\n */\ninterface OfflineAudioCompletionEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer) */\n readonly renderedBuffer: AudioBuffer;\n}\n\ndeclare var OfflineAudioCompletionEvent: {\n prototype: OfflineAudioCompletionEvent;\n new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;\n};\n\ninterface OfflineAudioContextEventMap extends BaseAudioContextEventMap {\n "complete": OfflineAudioCompletionEvent;\n}\n\n/**\n * An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn\'t render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext)\n */\ninterface OfflineAudioContext extends BaseAudioContext {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/complete_event) */\n oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/resume) */\n resume(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/startRendering) */\n startRendering(): Promise<AudioBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/suspend) */\n suspend(suspendTime: number): Promise<void>;\n addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OfflineAudioContext: {\n prototype: OfflineAudioContext;\n new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;\n new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;\n};\n\ninterface OffscreenCanvasEventMap {\n "contextlost": Event;\n "contextrestored": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) */\ninterface OffscreenCanvas extends EventTarget {\n /**\n * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n *\n * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)\n */\n height: number;\n oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;\n oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;\n /**\n * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n *\n * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)\n */\n width: number;\n /**\n * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.\n *\n * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn\'t supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)\n */\n convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;\n /**\n * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.\n *\n * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]\n *\n * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)\n */\n getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;\n getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;\n getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;\n getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;\n getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;\n /**\n * Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)\n */\n transferToImageBitmap(): ImageBitmap;\n addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OffscreenCanvas: {\n prototype: OffscreenCanvas;\n new(width: number, height: number): OffscreenCanvas;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */\ninterface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {\n readonly canvas: OffscreenCanvas;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */\n commit(): void;\n}\n\ndeclare var OffscreenCanvasRenderingContext2D: {\n prototype: OffscreenCanvasRenderingContext2D;\n new(): OffscreenCanvasRenderingContext2D;\n};\n\n/**\n * The OscillatorNode\xa0interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency\xa0of a given wave to be created\u2014in effect, a constant tone.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode)\n */\ninterface OscillatorNode extends AudioScheduledSourceNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/detune) */\n readonly detune: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/frequency) */\n readonly frequency: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/type) */\n type: OscillatorType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/setPeriodicWave) */\n setPeriodicWave(periodicWave: PeriodicWave): void;\n addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OscillatorNode: {\n prototype: OscillatorNode;\n new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError) */\ninterface OverconstrainedError extends DOMException {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint) */\n readonly constraint: string;\n}\n\ndeclare var OverconstrainedError: {\n prototype: OverconstrainedError;\n new(constraint: string, message?: string): OverconstrainedError;\n};\n\n/**\n * The PageTransitionEvent is fired when a document is being loaded or unloaded.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent)\n */\ninterface PageTransitionEvent extends Event {\n /**\n * For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.\n *\n * For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page.\n *\n * Things that can cause the page to be unsalvageable include:\n *\n * The user agent decided to not keep the Document alive in a session history entry after unload\n * Having iframes that are not salvageable\n * Active WebSocket objects\n * Aborting a Document\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent/persisted)\n */\n readonly persisted: boolean;\n}\n\ndeclare var PageTransitionEvent: {\n prototype: PageTransitionEvent;\n new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;\n};\n\n/**\n * A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can\'t have panning effects without at least two audio channels!\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode)\n */\ninterface PannerNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneInnerAngle) */\n coneInnerAngle: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterAngle) */\n coneOuterAngle: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterGain) */\n coneOuterGain: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/distanceModel) */\n distanceModel: DistanceModelType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/maxDistance) */\n maxDistance: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationX) */\n readonly orientationX: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationY) */\n readonly orientationY: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationZ) */\n readonly orientationZ: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/panningModel) */\n panningModel: PanningModelType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionX) */\n readonly positionX: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionY) */\n readonly positionY: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionZ) */\n readonly positionZ: AudioParam;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/refDistance) */\n refDistance: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/rolloffFactor) */\n rolloffFactor: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setOrientation)\n */\n setOrientation(x: number, y: number, z: number): void;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setPosition)\n */\n setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var PannerNode: {\n prototype: PannerNode;\n new(context: BaseAudioContext, options?: PannerOptions): PannerNode;\n};\n\ninterface ParentNode extends Node {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/childElementCount) */\n readonly childElementCount: number;\n /**\n * Returns the child elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/children)\n */\n readonly children: HTMLCollection;\n /**\n * Returns the first child that is an element, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild)\n */\n readonly firstElementChild: Element | null;\n /**\n * Returns the last child that is an element, and null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastElementChild)\n */\n readonly lastElementChild: Element | null;\n /**\n * Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append)\n */\n append(...nodes: (Node | string)[]): void;\n /**\n * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/prepend)\n */\n prepend(...nodes: (Node | string)[]): void;\n /**\n * Returns the first element that is a descendant of node that matches selectors.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelector)\n */\n querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;\n querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;\n querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;\n /** @deprecated */\n querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;\n querySelector<E extends Element = Element>(selectors: string): E | null;\n /**\n * Returns all element descendants of node that match selectors.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll)\n */\n querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;\n querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;\n querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;\n /** @deprecated */\n querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;\n querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;\n /**\n * Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren)\n */\n replaceChildren(...nodes: (Node | string)[]): void;\n}\n\n/**\n * This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)\n */\ninterface Path2D extends CanvasPath {\n /**\n * Adds to the path the path given by the argument.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)\n */\n addPath(path: Path2D, transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var Path2D: {\n prototype: Path2D;\n new(path?: Path2D | string): Path2D;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent)\n */\ninterface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails) */\n readonly methodDetails: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodName) */\n readonly methodName: string;\n}\n\ndeclare var PaymentMethodChangeEvent: {\n prototype: PaymentMethodChangeEvent;\n new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;\n};\n\ninterface PaymentRequestEventMap {\n "paymentmethodchange": Event;\n}\n\n/**\n * This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest)\n */\ninterface PaymentRequest extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id) */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */\n onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) */\n abort(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment) */\n canMakePayment(): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/show) */\n show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;\n addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PaymentRequest: {\n prototype: PaymentRequest;\n new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;\n};\n\n/**\n * This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent)\n */\ninterface PaymentRequestUpdateEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent/updateWith) */\n updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;\n}\n\ndeclare var PaymentRequestUpdateEvent: {\n prototype: PaymentRequestUpdateEvent;\n new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;\n};\n\n/**\n * This Payment Request API interface is returned after a user selects a payment method and approves a payment request.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse)\n */\ninterface PaymentResponse extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details) */\n readonly details: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */\n readonly methodName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */\n readonly requestId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */\n complete(result?: PaymentComplete): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry) */\n retry(errorFields?: PaymentValidationErrors): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PaymentResponse: {\n prototype: PaymentResponse;\n new(): PaymentResponse;\n};\n\ninterface PerformanceEventMap {\n "resourcetimingbufferfull": Event;\n}\n\n/**\n * Provides access to performance-related information for the current page. It\'s part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance)\n */\ninterface Performance extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts) */\n readonly eventCounts: EventCounts;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/navigation)\n */\n readonly navigation: PerformanceNavigation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */\n onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */\n readonly timeOrigin: DOMHighResTimeStamp;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timing)\n */\n readonly timing: PerformanceTiming;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */\n clearMarks(markName?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */\n clearMeasures(measureName?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */\n clearResourceTimings(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */\n getEntries(): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */\n getEntriesByType(type: string): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */\n mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */\n measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */\n now(): DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */\n setResourceTimingBufferSize(maxSize: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */\n toJSON(): any;\n addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Performance: {\n prototype: Performance;\n new(): Performance;\n};\n\n/**\n * Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)\n */\ninterface PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */\n readonly duration: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */\n readonly entryType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */\n readonly startTime: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n prototype: PerformanceEntry;\n new(): PerformanceEntry;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming) */\ninterface PerformanceEventTiming extends PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable) */\n readonly cancelable: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingEnd) */\n readonly processingEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingStart) */\n readonly processingStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/target) */\n readonly target: Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceEventTiming: {\n prototype: PerformanceEventTiming;\n new(): PerformanceEventTiming;\n};\n\n/**\n * PerformanceMark\xa0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)\n */\ninterface PerformanceMark extends PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */\n readonly detail: any;\n}\n\ndeclare var PerformanceMark: {\n prototype: PerformanceMark;\n new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n};\n\n/**\n * PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)\n */\ninterface PerformanceMeasure extends PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */\n readonly detail: any;\n}\n\ndeclare var PerformanceMeasure: {\n prototype: PerformanceMeasure;\n new(): PerformanceMeasure;\n};\n\n/**\n * The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.\n * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation)\n */\ninterface PerformanceNavigation {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/redirectCount)\n */\n readonly redirectCount: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/type)\n */\n readonly type: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/toJSON)\n */\n toJSON(): any;\n readonly TYPE_NAVIGATE: 0;\n readonly TYPE_RELOAD: 1;\n readonly TYPE_BACK_FORWARD: 2;\n readonly TYPE_RESERVED: 255;\n}\n\n/** @deprecated */\ndeclare var PerformanceNavigation: {\n prototype: PerformanceNavigation;\n new(): PerformanceNavigation;\n readonly TYPE_NAVIGATE: 0;\n readonly TYPE_RELOAD: 1;\n readonly TYPE_BACK_FORWARD: 2;\n readonly TYPE_RESERVED: 255;\n};\n\n/**\n * Provides methods and properties to store and retrieve metrics regarding the browser\'s document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming)\n */\ninterface PerformanceNavigationTiming extends PerformanceResourceTiming {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domComplete) */\n readonly domComplete: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd) */\n readonly domContentLoadedEventEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart) */\n readonly domContentLoadedEventStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domInteractive) */\n readonly domInteractive: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventEnd) */\n readonly loadEventEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventStart) */\n readonly loadEventStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/redirectCount) */\n readonly redirectCount: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/type) */\n readonly type: NavigationTimingType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd) */\n readonly unloadEventEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart) */\n readonly unloadEventStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceNavigationTiming: {\n prototype: PerformanceNavigationTiming;\n new(): PerformanceNavigationTiming;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) */\ninterface PerformanceObserver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */\n disconnect(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */\n observe(options?: PerformanceObserverInit): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */\n takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n prototype: PerformanceObserver;\n new(callback: PerformanceObserverCallback): PerformanceObserver;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */\n readonly supportedEntryTypes: ReadonlyArray<string>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) */\ninterface PerformanceObserverEntryList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */\n getEntries(): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */\n getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n prototype: PerformanceObserverEntryList;\n new(): PerformanceObserverEntryList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming) */\ninterface PerformancePaintTiming extends PerformanceEntry {\n}\n\ndeclare var PerformancePaintTiming: {\n prototype: PerformancePaintTiming;\n new(): PerformancePaintTiming;\n};\n\n/**\n * Enables retrieval and analysis of detailed network timing data regarding the loading of an application\'s resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)\n */\ninterface PerformanceResourceTiming extends PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */\n readonly connectEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */\n readonly connectStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */\n readonly decodedBodySize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */\n readonly domainLookupEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */\n readonly domainLookupStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */\n readonly encodedBodySize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */\n readonly fetchStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */\n readonly initiatorType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */\n readonly nextHopProtocol: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */\n readonly redirectEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */\n readonly redirectStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */\n readonly requestStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */\n readonly responseEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */\n readonly responseStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */\n readonly secureConnectionStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */\n readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */\n readonly transferSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */\n readonly workerStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n prototype: PerformanceResourceTiming;\n new(): PerformanceResourceTiming;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming) */\ninterface PerformanceServerTiming {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) */\n readonly description: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) */\n readonly duration: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceServerTiming: {\n prototype: PerformanceServerTiming;\n new(): PerformanceServerTiming;\n};\n\n/**\n * A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.\n * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming)\n */\ninterface PerformanceTiming {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectEnd)\n */\n readonly connectEnd: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectStart)\n */\n readonly connectStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domComplete)\n */\n readonly domComplete: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd)\n */\n readonly domContentLoadedEventEnd: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventStart)\n */\n readonly domContentLoadedEventStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domInteractive)\n */\n readonly domInteractive: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domLoading)\n */\n readonly domLoading: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupEnd)\n */\n readonly domainLookupEnd: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupStart)\n */\n readonly domainLookupStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/fetchStart)\n */\n readonly fetchStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventEnd)\n */\n readonly loadEventEnd: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventStart)\n */\n readonly loadEventStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/navigationStart)\n */\n readonly navigationStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectEnd)\n */\n readonly redirectEnd: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectStart)\n */\n readonly redirectStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/requestStart)\n */\n readonly requestStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseEnd)\n */\n readonly responseEnd: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseStart)\n */\n readonly responseStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/secureConnectionStart)\n */\n readonly secureConnectionStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventEnd)\n */\n readonly unloadEventEnd: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventStart)\n */\n readonly unloadEventStart: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/toJSON)\n */\n toJSON(): any;\n}\n\n/** @deprecated */\ndeclare var PerformanceTiming: {\n prototype: PerformanceTiming;\n new(): PerformanceTiming;\n};\n\n/**\n * PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PeriodicWave)\n */\ninterface PeriodicWave {\n}\n\ndeclare var PeriodicWave: {\n prototype: PeriodicWave;\n new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;\n};\n\ninterface PermissionStatusEventMap {\n "change": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus) */\ninterface PermissionStatus extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */\n onchange: ((this: PermissionStatus, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */\n readonly state: PermissionState;\n addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PermissionStatus: {\n prototype: PermissionStatus;\n new(): PermissionStatus;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions) */\ninterface Permissions {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) */\n query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n prototype: Permissions;\n new(): Permissions;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent) */\ninterface PictureInPictureEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent/pictureInPictureWindow) */\n readonly pictureInPictureWindow: PictureInPictureWindow;\n}\n\ndeclare var PictureInPictureEvent: {\n prototype: PictureInPictureEvent;\n new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;\n};\n\ninterface PictureInPictureWindowEventMap {\n "resize": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow) */\ninterface PictureInPictureWindow extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/height) */\n readonly height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/resize_event) */\n onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/width) */\n readonly width: number;\n addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PictureInPictureWindow: {\n prototype: PictureInPictureWindow;\n new(): PictureInPictureWindow;\n};\n\n/**\n * Provides information about a browser plugin.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin)\n */\ninterface Plugin {\n /**\n * Returns the plugin\'s description.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/description)\n */\n readonly description: string;\n /**\n * Returns the plugin library\'s filename, if applicable on the current platform.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/filename)\n */\n readonly filename: string;\n /**\n * Returns the number of MIME types, represented by MimeType objects, supported by the plugin.\n * @deprecated\n */\n readonly length: number;\n /**\n * Returns the plugin\'s name.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/name)\n */\n readonly name: string;\n /**\n * Returns the specified MimeType object.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/item)\n */\n item(index: number): MimeType | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/namedItem)\n */\n namedItem(name: string): MimeType | null;\n [index: number]: MimeType;\n}\n\n/** @deprecated */\ndeclare var Plugin: {\n prototype: Plugin;\n new(): Plugin;\n};\n\n/**\n * Used to store a list of Plugin objects describing the available plugins; it\'s returned by the window.navigator.plugins\xa0property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray)\n */\ninterface PluginArray {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/length)\n */\n readonly length: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/item)\n */\n item(index: number): Plugin | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/namedItem)\n */\n namedItem(name: string): Plugin | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/refresh)\n */\n refresh(): void;\n [index: number]: Plugin;\n}\n\n/** @deprecated */\ndeclare var PluginArray: {\n prototype: PluginArray;\n new(): PluginArray;\n};\n\n/**\n * The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent)\n */\ninterface PointerEvent extends MouseEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/height) */\n readonly height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary) */\n readonly isPrimary: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerId) */\n readonly pointerId: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerType) */\n readonly pointerType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pressure) */\n readonly pressure: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tangentialPressure) */\n readonly tangentialPressure: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltX) */\n readonly tiltX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltY) */\n readonly tiltY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/twist) */\n readonly twist: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/width) */\n readonly width: number;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getCoalescedEvents)\n */\n getCoalescedEvents(): PointerEvent[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getPredictedEvents) */\n getPredictedEvents(): PointerEvent[];\n}\n\ndeclare var PointerEvent: {\n prototype: PointerEvent;\n new(type: string, eventInitDict?: PointerEventInit): PointerEvent;\n};\n\n/**\n * PopStateEvent is an event handler for the popstate event on the window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent)\n */\ninterface PopStateEvent extends Event {\n /**\n * Returns a copy of the information that was provided to pushState() or replaceState().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent/state)\n */\n readonly state: any;\n}\n\ndeclare var PopStateEvent: {\n prototype: PopStateEvent;\n new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;\n};\n\ninterface PopoverInvokerElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetAction) */\n popoverTargetAction: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetElement) */\n popoverTargetElement: Element | null;\n}\n\n/**\n * A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don\'t recognize them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction)\n */\ninterface ProcessingInstruction extends CharacterData, LinkStyle {\n readonly ownerDocument: Document;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction/target) */\n readonly target: string;\n}\n\ndeclare var ProcessingInstruction: {\n prototype: ProcessingInstruction;\n new(): ProcessingInstruction;\n};\n\n/**\n * Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)\n */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) */\n readonly lengthComputable: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */\n readonly loaded: number;\n readonly target: T | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */\n readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n prototype: ProgressEvent;\n new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */\ninterface PromiseRejectionEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */\n readonly promise: Promise<any>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */\n readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n prototype: PromiseRejectionEvent;\n new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential)\n */\ninterface PublicKeyCredential extends Credential {\n readonly authenticatorAttachment: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId) */\n readonly rawId: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/response) */\n readonly response: AuthenticatorResponse;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */\n getClientExtensionResults(): AuthenticationExtensionsClientOutputs;\n}\n\ndeclare var PublicKeyCredential: {\n prototype: PublicKeyCredential;\n new(): PublicKeyCredential;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable) */\n isConditionalMediationAvailable(): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */\n isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;\n};\n\n/**\n * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)\n */\ninterface PushManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) */\n getSubscription(): Promise<PushSubscription | null>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) */\n permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) */\n subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n prototype: PushManager;\n new(): PushManager;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */\n readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\n/**\n * This Push API interface provides a subcription\'s URL endpoint and allows unsubscription from a push service.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)\n */\ninterface PushSubscription {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) */\n readonly endpoint: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) */\n readonly expirationTime: EpochTimeStamp | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) */\n readonly options: PushSubscriptionOptions;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) */\n getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) */\n toJSON(): PushSubscriptionJSON;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) */\n unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n prototype: PushSubscription;\n new(): PushSubscription;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)\n */\ninterface PushSubscriptionOptions {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) */\n readonly applicationServerKey: ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) */\n readonly userVisibleOnly: boolean;\n}\n\ndeclare var PushSubscriptionOptions: {\n prototype: PushSubscriptionOptions;\n new(): PushSubscriptionOptions;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate) */\ninterface RTCCertificate {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/expires) */\n readonly expires: EpochTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/getFingerprints) */\n getFingerprints(): RTCDtlsFingerprint[];\n}\n\ndeclare var RTCCertificate: {\n prototype: RTCCertificate;\n new(): RTCCertificate;\n};\n\ninterface RTCDTMFSenderEventMap {\n "tonechange": RTCDTMFToneChangeEvent;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender) */\ninterface RTCDTMFSender extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/canInsertDTMF) */\n readonly canInsertDTMF: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/tonechange_event) */\n ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/toneBuffer) */\n readonly toneBuffer: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/insertDTMF) */\n insertDTMF(tones: string, duration?: number, interToneGap?: number): void;\n addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDTMFSender: {\n prototype: RTCDTMFSender;\n new(): RTCDTMFSender;\n};\n\n/**\n * Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent)\n */\ninterface RTCDTMFToneChangeEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent/tone) */\n readonly tone: string;\n}\n\ndeclare var RTCDTMFToneChangeEvent: {\n prototype: RTCDTMFToneChangeEvent;\n new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;\n};\n\ninterface RTCDataChannelEventMap {\n "bufferedamountlow": Event;\n "close": Event;\n "closing": Event;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel) */\ninterface RTCDataChannel extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType) */\n binaryType: BinaryType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount) */\n readonly bufferedAmount: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold) */\n bufferedAmountLowThreshold: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id) */\n readonly id: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label) */\n readonly label: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime) */\n readonly maxPacketLifeTime: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits) */\n readonly maxRetransmits: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated) */\n readonly negotiated: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */\n onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */\n onclose: ((this: RTCDataChannel, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */\n onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */\n onerror: ((this: RTCDataChannel, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */\n onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */\n onopen: ((this: RTCDataChannel, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered) */\n readonly ordered: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol) */\n readonly protocol: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState) */\n readonly readyState: RTCDataChannelState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send) */\n send(data: string): void;\n send(data: Blob): void;\n send(data: ArrayBuffer): void;\n send(data: ArrayBufferView): void;\n addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDataChannel: {\n prototype: RTCDataChannel;\n new(): RTCDataChannel;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent) */\ninterface RTCDataChannelEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent/channel) */\n readonly channel: RTCDataChannel;\n}\n\ndeclare var RTCDataChannelEvent: {\n prototype: RTCDataChannelEvent;\n new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;\n};\n\ninterface RTCDtlsTransportEventMap {\n "error": Event;\n "statechange": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport) */\ninterface RTCDtlsTransport extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */\n readonly iceTransport: RTCIceTransport;\n onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/statechange_event) */\n onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */\n readonly state: RTCDtlsTransportState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */\n getRemoteCertificates(): ArrayBuffer[];\n addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDtlsTransport: {\n prototype: RTCDtlsTransport;\n new(): RTCDtlsTransport;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */\ninterface RTCEncodedAudioFrame {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */\n data: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */\n getMetadata(): RTCEncodedAudioFrameMetadata;\n}\n\ndeclare var RTCEncodedAudioFrame: {\n prototype: RTCEncodedAudioFrame;\n new(): RTCEncodedAudioFrame;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */\ninterface RTCEncodedVideoFrame {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */\n data: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */\n readonly type: RTCEncodedVideoFrameType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */\n getMetadata(): RTCEncodedVideoFrameMetadata;\n}\n\ndeclare var RTCEncodedVideoFrame: {\n prototype: RTCEncodedVideoFrame;\n new(): RTCEncodedVideoFrame;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError) */\ninterface RTCError extends DOMException {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/errorDetail) */\n readonly errorDetail: RTCErrorDetailType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/receivedAlert) */\n readonly receivedAlert: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sctpCauseCode) */\n readonly sctpCauseCode: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sdpLineNumber) */\n readonly sdpLineNumber: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sentAlert) */\n readonly sentAlert: number | null;\n}\n\ndeclare var RTCError: {\n prototype: RTCError;\n new(init: RTCErrorInit, message?: string): RTCError;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent) */\ninterface RTCErrorEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent/error) */\n readonly error: RTCError;\n}\n\ndeclare var RTCErrorEvent: {\n prototype: RTCErrorEvent;\n new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;\n};\n\n/**\n * The RTCIceCandidate interface\u2014part of the WebRTC API\u2014represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate)\n */\ninterface RTCIceCandidate {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/address) */\n readonly address: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/candidate) */\n readonly candidate: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/component) */\n readonly component: RTCIceComponent | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/foundation) */\n readonly foundation: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/port) */\n readonly port: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/priority) */\n readonly priority: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/protocol) */\n readonly protocol: RTCIceProtocol | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedAddress) */\n readonly relatedAddress: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedPort) */\n readonly relatedPort: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMLineIndex) */\n readonly sdpMLineIndex: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMid) */\n readonly sdpMid: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/tcpType) */\n readonly tcpType: RTCIceTcpCandidateType | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/type) */\n readonly type: RTCIceCandidateType | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/usernameFragment) */\n readonly usernameFragment: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/toJSON) */\n toJSON(): RTCIceCandidateInit;\n}\n\ndeclare var RTCIceCandidate: {\n prototype: RTCIceCandidate;\n new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;\n};\n\ninterface RTCIceTransportEventMap {\n "gatheringstatechange": Event;\n "selectedcandidatepairchange": Event;\n "statechange": Event;\n}\n\n/**\n * Provides access to information about the ICE transport layer over which the data is being sent and received.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport)\n */\ninterface RTCIceTransport extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringState) */\n readonly gatheringState: RTCIceGathererState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringstatechange_event) */\n ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/selectedcandidatepairchange_event) */\n onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */\n onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/state) */\n readonly state: RTCIceTransportState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/getSelectedCandidatePair) */\n getSelectedCandidatePair(): RTCIceCandidatePair | null;\n addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCIceTransport: {\n prototype: RTCIceTransport;\n new(): RTCIceTransport;\n};\n\ninterface RTCPeerConnectionEventMap {\n "connectionstatechange": Event;\n "datachannel": RTCDataChannelEvent;\n "icecandidate": RTCPeerConnectionIceEvent;\n "icecandidateerror": RTCPeerConnectionIceErrorEvent;\n "iceconnectionstatechange": Event;\n "icegatheringstatechange": Event;\n "negotiationneeded": Event;\n "signalingstatechange": Event;\n "track": RTCTrackEvent;\n}\n\n/**\n * A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it\'s no longer needed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection)\n */\ninterface RTCPeerConnection extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates) */\n readonly canTrickleIceCandidates: boolean | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionState) */\n readonly connectionState: RTCPeerConnectionState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentLocalDescription) */\n readonly currentLocalDescription: RTCSessionDescription | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentRemoteDescription) */\n readonly currentRemoteDescription: RTCSessionDescription | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceConnectionState) */\n readonly iceConnectionState: RTCIceConnectionState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceGatheringState) */\n readonly iceGatheringState: RTCIceGatheringState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/localDescription) */\n readonly localDescription: RTCSessionDescription | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionstatechange_event) */\n onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/datachannel_event) */\n ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidate_event) */\n onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidateerror_event) */\n onicecandidateerror: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceconnectionstatechange_event) */\n oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icegatheringstatechange_event) */\n onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/negotiationneeded_event) */\n onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingstatechange_event) */\n onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/track_event) */\n ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingLocalDescription) */\n readonly pendingLocalDescription: RTCSessionDescription | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingRemoteDescription) */\n readonly pendingRemoteDescription: RTCSessionDescription | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/remoteDescription) */\n readonly remoteDescription: RTCSessionDescription | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/sctp) */\n readonly sctp: RTCSctpTransport | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingState) */\n readonly signalingState: RTCSignalingState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addIceCandidate) */\n addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;\n /** @deprecated */\n addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTrack) */\n addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTransceiver) */\n addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createAnswer) */\n createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;\n /** @deprecated */\n createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createDataChannel) */\n createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createOffer) */\n createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;\n /** @deprecated */\n createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getConfiguration) */\n getConfiguration(): RTCConfiguration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getReceivers) */\n getReceivers(): RTCRtpReceiver[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getSenders) */\n getSenders(): RTCRtpSender[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getStats) */\n getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getTransceivers) */\n getTransceivers(): RTCRtpTransceiver[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/removeTrack) */\n removeTrack(sender: RTCRtpSender): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/restartIce) */\n restartIce(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setConfiguration) */\n setConfiguration(configuration?: RTCConfiguration): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setLocalDescription) */\n setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;\n /** @deprecated */\n setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setRemoteDescription) */\n setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;\n /** @deprecated */\n setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;\n addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCPeerConnection: {\n prototype: RTCPeerConnection;\n new(configuration?: RTCConfiguration): RTCPeerConnection;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate_static) */\n generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent) */\ninterface RTCPeerConnectionIceErrorEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address) */\n readonly address: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */\n readonly errorCode: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */\n readonly errorText: string;\n readonly port: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */\n readonly url: string;\n}\n\ndeclare var RTCPeerConnectionIceErrorEvent: {\n prototype: RTCPeerConnectionIceErrorEvent;\n new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;\n};\n\n/**\n * Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent)\n */\ninterface RTCPeerConnectionIceEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent/candidate) */\n readonly candidate: RTCIceCandidate | null;\n}\n\ndeclare var RTCPeerConnectionIceEvent: {\n prototype: RTCPeerConnectionIceEvent;\n new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;\n};\n\n/**\n * This WebRTC API interface manages the reception and decoding of data for a\xa0MediaStreamTrack on an\xa0RTCPeerConnection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver)\n */\ninterface RTCRtpReceiver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */\n readonly track: MediaStreamTrack;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */\n transform: RTCRtpTransform | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transport) */\n readonly transport: RTCDtlsTransport | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getContributingSources) */\n getContributingSources(): RTCRtpContributingSource[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getParameters) */\n getParameters(): RTCRtpReceiveParameters;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getStats) */\n getStats(): Promise<RTCStatsReport>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getSynchronizationSources) */\n getSynchronizationSources(): RTCRtpSynchronizationSource[];\n}\n\ndeclare var RTCRtpReceiver: {\n prototype: RTCRtpReceiver;\n new(): RTCRtpReceiver;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities_static) */\n getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransform) */\ninterface RTCRtpScriptTransform {\n}\n\ndeclare var RTCRtpScriptTransform: {\n prototype: RTCRtpScriptTransform;\n new(worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform;\n};\n\n/**\n * Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender)\n */\ninterface RTCRtpSender {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/dtmf) */\n readonly dtmf: RTCDTMFSender | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/track) */\n readonly track: MediaStreamTrack | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transform) */\n transform: RTCRtpTransform | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transport) */\n readonly transport: RTCDtlsTransport | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getParameters) */\n getParameters(): RTCRtpSendParameters;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getStats) */\n getStats(): Promise<RTCStatsReport>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/replaceTrack) */\n replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setParameters) */\n setParameters(parameters: RTCRtpSendParameters, setParameterOptions?: RTCSetParameterOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setStreams) */\n setStreams(...streams: MediaStream[]): void;\n}\n\ndeclare var RTCRtpSender: {\n prototype: RTCRtpSender;\n new(): RTCRtpSender;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities_static) */\n getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver) */\ninterface RTCRtpTransceiver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/currentDirection) */\n readonly currentDirection: RTCRtpTransceiverDirection | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/direction) */\n direction: RTCRtpTransceiverDirection;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/mid) */\n readonly mid: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/receiver) */\n readonly receiver: RTCRtpReceiver;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender) */\n readonly sender: RTCRtpSender;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */\n setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop) */\n stop(): void;\n}\n\ndeclare var RTCRtpTransceiver: {\n prototype: RTCRtpTransceiver;\n new(): RTCRtpTransceiver;\n};\n\ninterface RTCSctpTransportEventMap {\n "statechange": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport) */\ninterface RTCSctpTransport extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxChannels) */\n readonly maxChannels: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxMessageSize) */\n readonly maxMessageSize: number;\n onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/state) */\n readonly state: RTCSctpTransportState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/transport) */\n readonly transport: RTCDtlsTransport;\n addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCSctpTransport: {\n prototype: RTCSctpTransport;\n new(): RTCSctpTransport;\n};\n\n/**\n * One end of a connection\u2014or potential connection\u2014and how it\'s configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription)\n */\ninterface RTCSessionDescription {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/sdp) */\n readonly sdp: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/type) */\n readonly type: RTCSdpType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/toJSON) */\n toJSON(): any;\n}\n\ndeclare var RTCSessionDescription: {\n prototype: RTCSessionDescription;\n new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */\ninterface RTCStatsReport {\n forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;\n}\n\ndeclare var RTCStatsReport: {\n prototype: RTCStatsReport;\n new(): RTCStatsReport;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent) */\ninterface RTCTrackEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/receiver) */\n readonly receiver: RTCRtpReceiver;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/streams) */\n readonly streams: ReadonlyArray<MediaStream>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/track) */\n readonly track: MediaStreamTrack;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/transceiver) */\n readonly transceiver: RTCRtpTransceiver;\n}\n\ndeclare var RTCTrackEvent: {\n prototype: RTCTrackEvent;\n new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList) */\ninterface RadioNodeList extends NodeList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList/value) */\n value: string;\n}\n\ndeclare var RadioNodeList: {\n prototype: RadioNodeList;\n new(): RadioNodeList;\n};\n\n/**\n * A fragment of a document that can contain nodes and parts of text nodes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range)\n */\ninterface Range extends AbstractRange {\n /**\n * Returns the node, furthest away from the document, that is an ancestor of both range\'s start node and end node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)\n */\n readonly commonAncestorContainer: Node;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneContents) */\n cloneContents(): DocumentFragment;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneRange) */\n cloneRange(): Range;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/collapse) */\n collapse(toStart?: boolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/compareBoundaryPoints) */\n compareBoundaryPoints(how: number, sourceRange: Range): number;\n /**\n * Returns \u22121 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/comparePoint)\n */\n comparePoint(node: Node, offset: number): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) */\n createContextualFragment(fragment: string): DocumentFragment;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) */\n deleteContents(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach) */\n detach(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/extractContents) */\n extractContents(): DocumentFragment;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getBoundingClientRect) */\n getBoundingClientRect(): DOMRect;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getClientRects) */\n getClientRects(): DOMRectList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/insertNode) */\n insertNode(node: Node): void;\n /**\n * Returns whether range intersects node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/intersectsNode)\n */\n intersectsNode(node: Node): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/isPointInRange) */\n isPointInRange(node: Node, offset: number): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNode) */\n selectNode(node: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNodeContents) */\n selectNodeContents(node: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEnd) */\n setEnd(node: Node, offset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndAfter) */\n setEndAfter(node: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndBefore) */\n setEndBefore(node: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStart) */\n setStart(node: Node, offset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartAfter) */\n setStartAfter(node: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartBefore) */\n setStartBefore(node: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/surroundContents) */\n surroundContents(newParent: Node): void;\n toString(): string;\n readonly START_TO_START: 0;\n readonly START_TO_END: 1;\n readonly END_TO_END: 2;\n readonly END_TO_START: 3;\n}\n\ndeclare var Range: {\n prototype: Range;\n new(): Range;\n readonly START_TO_START: 0;\n readonly START_TO_END: 1;\n readonly END_TO_END: 2;\n readonly END_TO_START: 3;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */\ninterface ReadableByteStreamController {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */\n readonly byobRequest: ReadableStreamBYOBRequest | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */\n enqueue(chunk: ArrayBufferView): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */\n error(e?: any): void;\n}\n\ndeclare var ReadableByteStreamController: {\n prototype: ReadableByteStreamController;\n new(): ReadableByteStreamController;\n};\n\n/**\n * This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)\n */\ninterface ReadableStream<R = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */\n readonly locked: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */\n cancel(reason?: any): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */\n getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;\n getReader(): ReadableStreamDefaultReader<R>;\n getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */\n pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */\n pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */\n tee(): [ReadableStream<R>, ReadableStream<R>];\n}\n\ndeclare var ReadableStream: {\n prototype: ReadableStream;\n new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;\n new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */\ninterface ReadableStreamBYOBReader extends ReadableStreamGenericReader {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */\n read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamBYOBReader: {\n prototype: ReadableStreamBYOBReader;\n new(stream: ReadableStream): ReadableStreamBYOBReader;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */\ninterface ReadableStreamBYOBRequest {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */\n readonly view: ArrayBufferView | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */\n respond(bytesWritten: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */\n respondWithNewView(view: ArrayBufferView): void;\n}\n\ndeclare var ReadableStreamBYOBRequest: {\n prototype: ReadableStreamBYOBRequest;\n new(): ReadableStreamBYOBRequest;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */\ninterface ReadableStreamDefaultController<R = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */\n enqueue(chunk?: R): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */\n error(e?: any): void;\n}\n\ndeclare var ReadableStreamDefaultController: {\n prototype: ReadableStreamDefaultController;\n new(): ReadableStreamDefaultController;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */\ninterface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */\n read(): Promise<ReadableStreamReadResult<R>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamDefaultReader: {\n prototype: ReadableStreamDefaultReader;\n new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;\n};\n\ninterface ReadableStreamGenericReader {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */\n readonly closed: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */\n cancel(reason?: any): Promise<void>;\n}\n\ninterface RemotePlaybackEventMap {\n "connect": Event;\n "connecting": Event;\n "disconnect": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback) */\ninterface RemotePlayback extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connect_event) */\n onconnect: ((this: RemotePlayback, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connecting_event) */\n onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/disconnect_event) */\n ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/state) */\n readonly state: RemotePlaybackState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/cancelWatchAvailability) */\n cancelWatchAvailability(id?: number): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/prompt) */\n prompt(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/watchAvailability) */\n watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;\n addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RemotePlayback: {\n prototype: RemotePlayback;\n new(): RemotePlayback;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) */\ninterface Report {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) */\n readonly body: ReportBody | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) */\n readonly type: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) */\n readonly url: string;\n toJSON(): any;\n}\n\ndeclare var Report: {\n prototype: Report;\n new(): Report;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */\ninterface ReportBody {\n toJSON(): any;\n}\n\ndeclare var ReportBody: {\n prototype: ReportBody;\n new(): ReportBody;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver) */\ninterface ReportingObserver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) */\n disconnect(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) */\n observe(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) */\n takeRecords(): ReportList;\n}\n\ndeclare var ReportingObserver: {\n prototype: ReportingObserver;\n new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;\n};\n\n/**\n * This Fetch API interface represents a resource request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)\n */\ninterface Request extends Body {\n /**\n * Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser\'s cache when fetching.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)\n */\n readonly cache: RequestCache;\n /**\n * Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)\n */\n readonly credentials: RequestCredentials;\n /**\n * Returns the kind of resource requested by request, e.g., "document" or "script".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)\n */\n readonly destination: RequestDestination;\n /**\n * Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)\n */\n readonly headers: Headers;\n /**\n * Returns request\'s subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)\n */\n readonly integrity: string;\n /**\n * Returns a boolean indicating whether or not request can outlive the global in which it was created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)\n */\n readonly keepalive: boolean;\n /**\n * Returns request\'s HTTP method, which is "GET" by default.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)\n */\n readonly method: string;\n /**\n * Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)\n */\n readonly mode: RequestMode;\n /**\n * Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)\n */\n readonly redirect: RequestRedirect;\n /**\n * Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global\'s default. This is used during fetching to determine the value of the `Referer` header of the request being made.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)\n */\n readonly referrer: string;\n /**\n * Returns the referrer policy associated with request. This is used during fetching to compute the value of the request\'s referrer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)\n */\n readonly referrerPolicy: ReferrerPolicy;\n /**\n * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)\n */\n readonly signal: AbortSignal;\n /**\n * Returns the URL of request as a string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)\n */\n readonly url: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */\n clone(): Request;\n}\n\ndeclare var Request: {\n prototype: Request;\n new(input: RequestInfo | URL, init?: RequestInit): Request;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver) */\ninterface ResizeObserver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/disconnect) */\n disconnect(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/observe) */\n observe(target: Element, options?: ResizeObserverOptions): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/unobserve) */\n unobserve(target: Element): void;\n}\n\ndeclare var ResizeObserver: {\n prototype: ResizeObserver;\n new(callback: ResizeObserverCallback): ResizeObserver;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry) */\ninterface ResizeObserverEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/borderBoxSize) */\n readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentBoxSize) */\n readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentRect) */\n readonly contentRect: DOMRectReadOnly;\n readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/target) */\n readonly target: Element;\n}\n\ndeclare var ResizeObserverEntry: {\n prototype: ResizeObserverEntry;\n new(): ResizeObserverEntry;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize) */\ninterface ResizeObserverSize {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/blockSize) */\n readonly blockSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/inlineSize) */\n readonly inlineSize: number;\n}\n\ndeclare var ResizeObserverSize: {\n prototype: ResizeObserverSize;\n new(): ResizeObserverSize;\n};\n\n/**\n * This Fetch API interface represents the response to a request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)\n */\ninterface Response extends Body {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */\n readonly headers: Headers;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */\n readonly ok: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */\n readonly redirected: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */\n readonly status: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */\n readonly statusText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */\n readonly type: ResponseType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */\n readonly url: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */\n clone(): Response;\n}\n\ndeclare var Response: {\n prototype: Response;\n new(body?: BodyInit | null, init?: ResponseInit): Response;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */\n error(): Response;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */\n json(data: any, init?: ResponseInit): Response;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */\n redirect(url: string | URL, status?: number): Response;\n};\n\n/**\n * Provides access to the properties of <a> element, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)\n */\ninterface SVGAElement extends SVGGraphicsElement, SVGURIReference {\n rel: string;\n readonly relList: DOMTokenList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */\n readonly target: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAElement: {\n prototype: SVGAElement;\n new(): SVGAElement;\n};\n\n/**\n * Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle)\n */\ninterface SVGAngle {\n readonly unitType: number;\n value: number;\n valueAsString: string;\n valueInSpecifiedUnits: number;\n convertToSpecifiedUnits(unitType: number): void;\n newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n readonly SVG_ANGLETYPE_UNKNOWN: 0;\n readonly SVG_ANGLETYPE_UNSPECIFIED: 1;\n readonly SVG_ANGLETYPE_DEG: 2;\n readonly SVG_ANGLETYPE_RAD: 3;\n readonly SVG_ANGLETYPE_GRAD: 4;\n}\n\ndeclare var SVGAngle: {\n prototype: SVGAngle;\n new(): SVGAngle;\n readonly SVG_ANGLETYPE_UNKNOWN: 0;\n readonly SVG_ANGLETYPE_UNSPECIFIED: 1;\n readonly SVG_ANGLETYPE_DEG: 2;\n readonly SVG_ANGLETYPE_RAD: 3;\n readonly SVG_ANGLETYPE_GRAD: 4;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateElement) */\ninterface SVGAnimateElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateElement: {\n prototype: SVGAnimateElement;\n new(): SVGAnimateElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateMotionElement) */\ninterface SVGAnimateMotionElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateMotionElement: {\n prototype: SVGAnimateMotionElement;\n new(): SVGAnimateMotionElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateTransformElement) */\ninterface SVGAnimateTransformElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimateTransformElement: {\n prototype: SVGAnimateTransformElement;\n new(): SVGAnimateTransformElement;\n};\n\n/**\n * Used for attributes of basic type <angle> which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle)\n */\ninterface SVGAnimatedAngle {\n readonly animVal: SVGAngle;\n readonly baseVal: SVGAngle;\n}\n\ndeclare var SVGAnimatedAngle: {\n prototype: SVGAnimatedAngle;\n new(): SVGAnimatedAngle;\n};\n\n/**\n * Used for attributes of type boolean which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean)\n */\ninterface SVGAnimatedBoolean {\n readonly animVal: boolean;\n baseVal: boolean;\n}\n\ndeclare var SVGAnimatedBoolean: {\n prototype: SVGAnimatedBoolean;\n new(): SVGAnimatedBoolean;\n};\n\n/**\n * Used for attributes whose value must be a constant from a particular enumeration and which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration)\n */\ninterface SVGAnimatedEnumeration {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedEnumeration: {\n prototype: SVGAnimatedEnumeration;\n new(): SVGAnimatedEnumeration;\n};\n\n/**\n * Used for attributes of basic type <integer> which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger)\n */\ninterface SVGAnimatedInteger {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedInteger: {\n prototype: SVGAnimatedInteger;\n new(): SVGAnimatedInteger;\n};\n\n/**\n * Used for attributes of basic type <length> which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength)\n */\ninterface SVGAnimatedLength {\n readonly animVal: SVGLength;\n readonly baseVal: SVGLength;\n}\n\ndeclare var SVGAnimatedLength: {\n prototype: SVGAnimatedLength;\n new(): SVGAnimatedLength;\n};\n\n/**\n * Used for attributes of type SVGLengthList which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList)\n */\ninterface SVGAnimatedLengthList {\n readonly animVal: SVGLengthList;\n readonly baseVal: SVGLengthList;\n}\n\ndeclare var SVGAnimatedLengthList: {\n prototype: SVGAnimatedLengthList;\n new(): SVGAnimatedLengthList;\n};\n\n/**\n * Used for attributes of basic type <Number> which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber)\n */\ninterface SVGAnimatedNumber {\n readonly animVal: number;\n baseVal: number;\n}\n\ndeclare var SVGAnimatedNumber: {\n prototype: SVGAnimatedNumber;\n new(): SVGAnimatedNumber;\n};\n\n/**\n * The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList)\n */\ninterface SVGAnimatedNumberList {\n readonly animVal: SVGNumberList;\n readonly baseVal: SVGNumberList;\n}\n\ndeclare var SVGAnimatedNumberList: {\n prototype: SVGAnimatedNumberList;\n new(): SVGAnimatedNumberList;\n};\n\ninterface SVGAnimatedPoints {\n readonly animatedPoints: SVGPointList;\n readonly points: SVGPointList;\n}\n\n/**\n * Used for attributes of type SVGPreserveAspectRatio which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio)\n */\ninterface SVGAnimatedPreserveAspectRatio {\n readonly animVal: SVGPreserveAspectRatio;\n readonly baseVal: SVGPreserveAspectRatio;\n}\n\ndeclare var SVGAnimatedPreserveAspectRatio: {\n prototype: SVGAnimatedPreserveAspectRatio;\n new(): SVGAnimatedPreserveAspectRatio;\n};\n\n/**\n * Used for attributes of basic SVGRect which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect)\n */\ninterface SVGAnimatedRect {\n readonly animVal: DOMRectReadOnly;\n readonly baseVal: DOMRect;\n}\n\ndeclare var SVGAnimatedRect: {\n prototype: SVGAnimatedRect;\n new(): SVGAnimatedRect;\n};\n\n/**\n * The SVGAnimatedString\xa0interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared\xa0inside this.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString)\n */\ninterface SVGAnimatedString {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/animVal) */\n readonly animVal: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/baseVal) */\n baseVal: string;\n}\n\ndeclare var SVGAnimatedString: {\n prototype: SVGAnimatedString;\n new(): SVGAnimatedString;\n};\n\n/**\n * Used for attributes which take a list of numbers and which can be animated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList)\n */\ninterface SVGAnimatedTransformList {\n readonly animVal: SVGTransformList;\n readonly baseVal: SVGTransformList;\n}\n\ndeclare var SVGAnimatedTransformList: {\n prototype: SVGAnimatedTransformList;\n new(): SVGAnimatedTransformList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement) */\ninterface SVGAnimationElement extends SVGElement, SVGTests {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/targetElement) */\n readonly targetElement: SVGElement | null;\n beginElement(): void;\n beginElementAt(offset: number): void;\n endElement(): void;\n endElementAt(offset: number): void;\n getCurrentTime(): number;\n getSimpleDuration(): number;\n getStartTime(): number;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAnimationElement: {\n prototype: SVGAnimationElement;\n new(): SVGAnimationElement;\n};\n\n/**\n * An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement)\n */\ninterface SVGCircleElement extends SVGGeometryElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cx) */\n readonly cx: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cy) */\n readonly cy: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/r) */\n readonly r: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGCircleElement: {\n prototype: SVGCircleElement;\n new(): SVGCircleElement;\n};\n\n/**\n * Provides access to the properties of <clipPath> elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement)\n */\ninterface SVGClipPathElement extends SVGElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/clipPathUnits) */\n readonly clipPathUnits: SVGAnimatedEnumeration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/transform) */\n readonly transform: SVGAnimatedTransformList;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGClipPathElement: {\n prototype: SVGClipPathElement;\n new(): SVGClipPathElement;\n};\n\n/**\n * A base interface used by the component transfer function interfaces.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement)\n */\ninterface SVGComponentTransferFunctionElement extends SVGElement {\n readonly amplitude: SVGAnimatedNumber;\n readonly exponent: SVGAnimatedNumber;\n readonly intercept: SVGAnimatedNumber;\n readonly offset: SVGAnimatedNumber;\n readonly slope: SVGAnimatedNumber;\n readonly tableValues: SVGAnimatedNumberList;\n readonly type: SVGAnimatedEnumeration;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGComponentTransferFunctionElement: {\n prototype: SVGComponentTransferFunctionElement;\n new(): SVGComponentTransferFunctionElement;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;\n readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;\n};\n\n/**\n * Corresponds to the <defs> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDefsElement)\n */\ninterface SVGDefsElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGDefsElement: {\n prototype: SVGDefsElement;\n new(): SVGDefsElement;\n};\n\n/**\n * Corresponds to the <desc> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDescElement)\n */\ninterface SVGDescElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGDescElement: {\n prototype: SVGDescElement;\n new(): SVGDescElement;\n};\n\ninterface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {\n}\n\n/**\n * All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement)\n */\ninterface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {\n /** @deprecated */\n readonly className: any;\n readonly ownerSVGElement: SVGSVGElement | null;\n readonly viewportElement: SVGElement | null;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGElement: {\n prototype: SVGElement;\n new(): SVGElement;\n};\n\n/**\n * Provides access to the properties of <ellipse> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement)\n */\ninterface SVGEllipseElement extends SVGGeometryElement {\n readonly cx: SVGAnimatedLength;\n readonly cy: SVGAnimatedLength;\n readonly rx: SVGAnimatedLength;\n readonly ry: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGEllipseElement: {\n prototype: SVGEllipseElement;\n new(): SVGEllipseElement;\n};\n\n/**\n * Corresponds to the <feBlend> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement)\n */\ninterface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\n readonly mode: SVGAnimatedEnumeration;\n readonly SVG_FEBLEND_MODE_UNKNOWN: 0;\n readonly SVG_FEBLEND_MODE_NORMAL: 1;\n readonly SVG_FEBLEND_MODE_MULTIPLY: 2;\n readonly SVG_FEBLEND_MODE_SCREEN: 3;\n readonly SVG_FEBLEND_MODE_DARKEN: 4;\n readonly SVG_FEBLEND_MODE_LIGHTEN: 5;\n readonly SVG_FEBLEND_MODE_OVERLAY: 6;\n readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;\n readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;\n readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;\n readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;\n readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;\n readonly SVG_FEBLEND_MODE_EXCLUSION: 12;\n readonly SVG_FEBLEND_MODE_HUE: 13;\n readonly SVG_FEBLEND_MODE_SATURATION: 14;\n readonly SVG_FEBLEND_MODE_COLOR: 15;\n readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEBlendElement: {\n prototype: SVGFEBlendElement;\n new(): SVGFEBlendElement;\n readonly SVG_FEBLEND_MODE_UNKNOWN: 0;\n readonly SVG_FEBLEND_MODE_NORMAL: 1;\n readonly SVG_FEBLEND_MODE_MULTIPLY: 2;\n readonly SVG_FEBLEND_MODE_SCREEN: 3;\n readonly SVG_FEBLEND_MODE_DARKEN: 4;\n readonly SVG_FEBLEND_MODE_LIGHTEN: 5;\n readonly SVG_FEBLEND_MODE_OVERLAY: 6;\n readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;\n readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;\n readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;\n readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;\n readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;\n readonly SVG_FEBLEND_MODE_EXCLUSION: 12;\n readonly SVG_FEBLEND_MODE_HUE: 13;\n readonly SVG_FEBLEND_MODE_SATURATION: 14;\n readonly SVG_FEBLEND_MODE_COLOR: 15;\n readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;\n};\n\n/**\n * Corresponds to the <feColorMatrix> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement)\n */\ninterface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/in1) */\n readonly in1: SVGAnimatedString;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/type) */\n readonly type: SVGAnimatedEnumeration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/values) */\n readonly values: SVGAnimatedNumberList;\n readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;\n readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;\n readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;\n readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;\n readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEColorMatrixElement: {\n prototype: SVGFEColorMatrixElement;\n new(): SVGFEColorMatrixElement;\n readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;\n readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;\n readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;\n readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;\n readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;\n};\n\n/**\n * Corresponds to the <feComponentTransfer> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEComponentTransferElement)\n */\ninterface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEComponentTransferElement: {\n prototype: SVGFEComponentTransferElement;\n new(): SVGFEComponentTransferElement;\n};\n\n/**\n * Corresponds to the <feComposite> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement)\n */\ninterface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\n readonly k1: SVGAnimatedNumber;\n readonly k2: SVGAnimatedNumber;\n readonly k3: SVGAnimatedNumber;\n readonly k4: SVGAnimatedNumber;\n readonly operator: SVGAnimatedEnumeration;\n readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;\n readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;\n readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;\n readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;\n readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;\n readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;\n readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFECompositeElement: {\n prototype: SVGFECompositeElement;\n new(): SVGFECompositeElement;\n readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;\n readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;\n readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;\n readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;\n readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;\n readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;\n readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;\n};\n\n/**\n * Corresponds to the <feConvolveMatrix> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement)\n */\ninterface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly bias: SVGAnimatedNumber;\n readonly divisor: SVGAnimatedNumber;\n readonly edgeMode: SVGAnimatedEnumeration;\n readonly in1: SVGAnimatedString;\n readonly kernelMatrix: SVGAnimatedNumberList;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly orderX: SVGAnimatedInteger;\n readonly orderY: SVGAnimatedInteger;\n readonly preserveAlpha: SVGAnimatedBoolean;\n readonly targetX: SVGAnimatedInteger;\n readonly targetY: SVGAnimatedInteger;\n readonly SVG_EDGEMODE_UNKNOWN: 0;\n readonly SVG_EDGEMODE_DUPLICATE: 1;\n readonly SVG_EDGEMODE_WRAP: 2;\n readonly SVG_EDGEMODE_NONE: 3;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEConvolveMatrixElement: {\n prototype: SVGFEConvolveMatrixElement;\n new(): SVGFEConvolveMatrixElement;\n readonly SVG_EDGEMODE_UNKNOWN: 0;\n readonly SVG_EDGEMODE_DUPLICATE: 1;\n readonly SVG_EDGEMODE_WRAP: 2;\n readonly SVG_EDGEMODE_NONE: 3;\n};\n\n/**\n * Corresponds to the <feDiffuseLighting> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement)\n */\ninterface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly diffuseConstant: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly surfaceScale: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDiffuseLightingElement: {\n prototype: SVGFEDiffuseLightingElement;\n new(): SVGFEDiffuseLightingElement;\n};\n\n/**\n * Corresponds to the <feDisplacementMap> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement)\n */\ninterface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly in2: SVGAnimatedString;\n readonly scale: SVGAnimatedNumber;\n readonly xChannelSelector: SVGAnimatedEnumeration;\n readonly yChannelSelector: SVGAnimatedEnumeration;\n readonly SVG_CHANNEL_UNKNOWN: 0;\n readonly SVG_CHANNEL_R: 1;\n readonly SVG_CHANNEL_G: 2;\n readonly SVG_CHANNEL_B: 3;\n readonly SVG_CHANNEL_A: 4;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDisplacementMapElement: {\n prototype: SVGFEDisplacementMapElement;\n new(): SVGFEDisplacementMapElement;\n readonly SVG_CHANNEL_UNKNOWN: 0;\n readonly SVG_CHANNEL_R: 1;\n readonly SVG_CHANNEL_G: 2;\n readonly SVG_CHANNEL_B: 3;\n readonly SVG_CHANNEL_A: 4;\n};\n\n/**\n * Corresponds to the <feDistantLight> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement)\n */\ninterface SVGFEDistantLightElement extends SVGElement {\n readonly azimuth: SVGAnimatedNumber;\n readonly elevation: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDistantLightElement: {\n prototype: SVGFEDistantLightElement;\n new(): SVGFEDistantLightElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement) */\ninterface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly dx: SVGAnimatedNumber;\n readonly dy: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n readonly stdDeviationX: SVGAnimatedNumber;\n readonly stdDeviationY: SVGAnimatedNumber;\n setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDropShadowElement: {\n prototype: SVGFEDropShadowElement;\n new(): SVGFEDropShadowElement;\n};\n\n/**\n * Corresponds to the <feFlood> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFloodElement)\n */\ninterface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFloodElement: {\n prototype: SVGFEFloodElement;\n new(): SVGFEFloodElement;\n};\n\n/**\n * Corresponds to the <feFuncA> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncAElement)\n */\ninterface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncAElement: {\n prototype: SVGFEFuncAElement;\n new(): SVGFEFuncAElement;\n};\n\n/**\n * Corresponds to the <feFuncB> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncBElement)\n */\ninterface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncBElement: {\n prototype: SVGFEFuncBElement;\n new(): SVGFEFuncBElement;\n};\n\n/**\n * Corresponds to the <feFuncG> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncGElement)\n */\ninterface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncGElement: {\n prototype: SVGFEFuncGElement;\n new(): SVGFEFuncGElement;\n};\n\n/**\n * Corresponds to the <feFuncR> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncRElement)\n */\ninterface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncRElement: {\n prototype: SVGFEFuncRElement;\n new(): SVGFEFuncRElement;\n};\n\n/**\n * Corresponds to the <feGaussianBlur> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement)\n */\ninterface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly stdDeviationX: SVGAnimatedNumber;\n readonly stdDeviationY: SVGAnimatedNumber;\n setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEGaussianBlurElement: {\n prototype: SVGFEGaussianBlurElement;\n new(): SVGFEGaussianBlurElement;\n};\n\n/**\n * Corresponds to the <feImage> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEImageElement)\n */\ninterface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEImageElement: {\n prototype: SVGFEImageElement;\n new(): SVGFEImageElement;\n};\n\n/**\n * Corresponds to the <feMerge> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeElement)\n */\ninterface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMergeElement: {\n prototype: SVGFEMergeElement;\n new(): SVGFEMergeElement;\n};\n\n/**\n * Corresponds to the <feMergeNode> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement)\n */\ninterface SVGFEMergeNodeElement extends SVGElement {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMergeNodeElement: {\n prototype: SVGFEMergeNodeElement;\n new(): SVGFEMergeNodeElement;\n};\n\n/**\n * Corresponds to the <feMorphology> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement)\n */\ninterface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly operator: SVGAnimatedEnumeration;\n readonly radiusX: SVGAnimatedNumber;\n readonly radiusY: SVGAnimatedNumber;\n readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;\n readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;\n readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMorphologyElement: {\n prototype: SVGFEMorphologyElement;\n new(): SVGFEMorphologyElement;\n readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;\n readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;\n readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;\n};\n\n/**\n * Corresponds to the <feOffset> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement)\n */\ninterface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly dx: SVGAnimatedNumber;\n readonly dy: SVGAnimatedNumber;\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEOffsetElement: {\n prototype: SVGFEOffsetElement;\n new(): SVGFEOffsetElement;\n};\n\n/**\n * Corresponds to the <fePointLight> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement)\n */\ninterface SVGFEPointLightElement extends SVGElement {\n readonly x: SVGAnimatedNumber;\n readonly y: SVGAnimatedNumber;\n readonly z: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEPointLightElement: {\n prototype: SVGFEPointLightElement;\n new(): SVGFEPointLightElement;\n};\n\n/**\n * Corresponds to the <feSpecularLighting> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement)\n */\ninterface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n readonly kernelUnitLengthX: SVGAnimatedNumber;\n readonly kernelUnitLengthY: SVGAnimatedNumber;\n readonly specularConstant: SVGAnimatedNumber;\n readonly specularExponent: SVGAnimatedNumber;\n readonly surfaceScale: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFESpecularLightingElement: {\n prototype: SVGFESpecularLightingElement;\n new(): SVGFESpecularLightingElement;\n};\n\n/**\n * Corresponds to the <feSpotLight> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement)\n */\ninterface SVGFESpotLightElement extends SVGElement {\n readonly limitingConeAngle: SVGAnimatedNumber;\n readonly pointsAtX: SVGAnimatedNumber;\n readonly pointsAtY: SVGAnimatedNumber;\n readonly pointsAtZ: SVGAnimatedNumber;\n readonly specularExponent: SVGAnimatedNumber;\n readonly x: SVGAnimatedNumber;\n readonly y: SVGAnimatedNumber;\n readonly z: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFESpotLightElement: {\n prototype: SVGFESpotLightElement;\n new(): SVGFESpotLightElement;\n};\n\n/**\n * Corresponds to the <feTile> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETileElement)\n */\ninterface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly in1: SVGAnimatedString;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFETileElement: {\n prototype: SVGFETileElement;\n new(): SVGFETileElement;\n};\n\n/**\n * Corresponds to the <feTurbulence> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement)\n */\ninterface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n readonly baseFrequencyX: SVGAnimatedNumber;\n readonly baseFrequencyY: SVGAnimatedNumber;\n readonly numOctaves: SVGAnimatedInteger;\n readonly seed: SVGAnimatedNumber;\n readonly stitchTiles: SVGAnimatedEnumeration;\n readonly type: SVGAnimatedEnumeration;\n readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;\n readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;\n readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;\n readonly SVG_STITCHTYPE_UNKNOWN: 0;\n readonly SVG_STITCHTYPE_STITCH: 1;\n readonly SVG_STITCHTYPE_NOSTITCH: 2;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFETurbulenceElement: {\n prototype: SVGFETurbulenceElement;\n new(): SVGFETurbulenceElement;\n readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;\n readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;\n readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;\n readonly SVG_STITCHTYPE_UNKNOWN: 0;\n readonly SVG_STITCHTYPE_STITCH: 1;\n readonly SVG_STITCHTYPE_NOSTITCH: 2;\n};\n\n/**\n * Provides access to the properties of <filter> elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement)\n */\ninterface SVGFilterElement extends SVGElement, SVGURIReference {\n readonly filterUnits: SVGAnimatedEnumeration;\n readonly height: SVGAnimatedLength;\n readonly primitiveUnits: SVGAnimatedEnumeration;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFilterElement: {\n prototype: SVGFilterElement;\n new(): SVGFilterElement;\n};\n\ninterface SVGFilterPrimitiveStandardAttributes {\n readonly height: SVGAnimatedLength;\n readonly result: SVGAnimatedString;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n}\n\ninterface SVGFitToViewBox {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/preserveAspectRatio) */\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/viewBox) */\n readonly viewBox: SVGAnimatedRect;\n}\n\n/**\n * Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement)\n */\ninterface SVGForeignObjectElement extends SVGGraphicsElement {\n readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGForeignObjectElement: {\n prototype: SVGForeignObjectElement;\n new(): SVGForeignObjectElement;\n};\n\n/**\n * Corresponds to the <g> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGElement)\n */\ninterface SVGGElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGElement: {\n prototype: SVGGElement;\n new(): SVGGElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement) */\ninterface SVGGeometryElement extends SVGGraphicsElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/pathLength) */\n readonly pathLength: SVGAnimatedNumber;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength) */\n getPointAtLength(distance: number): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getTotalLength) */\n getTotalLength(): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInFill) */\n isPointInFill(point?: DOMPointInit): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInStroke) */\n isPointInStroke(point?: DOMPointInit): boolean;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGeometryElement: {\n prototype: SVGGeometryElement;\n new(): SVGGeometryElement;\n};\n\n/**\n * The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement)\n */\ninterface SVGGradientElement extends SVGElement, SVGURIReference {\n readonly gradientTransform: SVGAnimatedTransformList;\n readonly gradientUnits: SVGAnimatedEnumeration;\n readonly spreadMethod: SVGAnimatedEnumeration;\n readonly SVG_SPREADMETHOD_UNKNOWN: 0;\n readonly SVG_SPREADMETHOD_PAD: 1;\n readonly SVG_SPREADMETHOD_REFLECT: 2;\n readonly SVG_SPREADMETHOD_REPEAT: 3;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGradientElement: {\n prototype: SVGGradientElement;\n new(): SVGGradientElement;\n readonly SVG_SPREADMETHOD_UNKNOWN: 0;\n readonly SVG_SPREADMETHOD_PAD: 1;\n readonly SVG_SPREADMETHOD_REFLECT: 2;\n readonly SVG_SPREADMETHOD_REPEAT: 3;\n};\n\n/**\n * SVG elements whose primary purpose is to directly render graphics into a group.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement)\n */\ninterface SVGGraphicsElement extends SVGElement, SVGTests {\n readonly transform: SVGAnimatedTransformList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox) */\n getBBox(options?: SVGBoundingBoxOptions): DOMRect;\n getCTM(): DOMMatrix | null;\n getScreenCTM(): DOMMatrix | null;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGraphicsElement: {\n prototype: SVGGraphicsElement;\n new(): SVGGraphicsElement;\n};\n\n/**\n * Corresponds to the <image> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement)\n */\ninterface SVGImageElement extends SVGGraphicsElement, SVGURIReference {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/crossorigin) */\n crossOrigin: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/height) */\n readonly height: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/preserveAspectRatio) */\n readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/width) */\n readonly width: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/x) */\n readonly x: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/y) */\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGImageElement: {\n prototype: SVGImageElement;\n new(): SVGImageElement;\n};\n\n/**\n * Correspond to the <length> basic data type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength)\n */\ninterface SVGLength {\n readonly unitType: number;\n value: number;\n valueAsString: string;\n valueInSpecifiedUnits: number;\n convertToSpecifiedUnits(unitType: number): void;\n newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n readonly SVG_LENGTHTYPE_UNKNOWN: 0;\n readonly SVG_LENGTHTYPE_NUMBER: 1;\n readonly SVG_LENGTHTYPE_PERCENTAGE: 2;\n readonly SVG_LENGTHTYPE_EMS: 3;\n readonly SVG_LENGTHTYPE_EXS: 4;\n readonly SVG_LENGTHTYPE_PX: 5;\n readonly SVG_LENGTHTYPE_CM: 6;\n readonly SVG_LENGTHTYPE_MM: 7;\n readonly SVG_LENGTHTYPE_IN: 8;\n readonly SVG_LENGTHTYPE_PT: 9;\n readonly SVG_LENGTHTYPE_PC: 10;\n}\n\ndeclare var SVGLength: {\n prototype: SVGLength;\n new(): SVGLength;\n readonly SVG_LENGTHTYPE_UNKNOWN: 0;\n readonly SVG_LENGTHTYPE_NUMBER: 1;\n readonly SVG_LENGTHTYPE_PERCENTAGE: 2;\n readonly SVG_LENGTHTYPE_EMS: 3;\n readonly SVG_LENGTHTYPE_EXS: 4;\n readonly SVG_LENGTHTYPE_PX: 5;\n readonly SVG_LENGTHTYPE_CM: 6;\n readonly SVG_LENGTHTYPE_MM: 7;\n readonly SVG_LENGTHTYPE_IN: 8;\n readonly SVG_LENGTHTYPE_PT: 9;\n readonly SVG_LENGTHTYPE_PC: 10;\n};\n\n/**\n * The SVGLengthList defines a list of SVGLength objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList)\n */\ninterface SVGLengthList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGLength): SVGLength;\n clear(): void;\n getItem(index: number): SVGLength;\n initialize(newItem: SVGLength): SVGLength;\n insertItemBefore(newItem: SVGLength, index: number): SVGLength;\n removeItem(index: number): SVGLength;\n replaceItem(newItem: SVGLength, index: number): SVGLength;\n [index: number]: SVGLength;\n}\n\ndeclare var SVGLengthList: {\n prototype: SVGLengthList;\n new(): SVGLengthList;\n};\n\n/**\n * Provides access to the properties of <line> elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement)\n */\ninterface SVGLineElement extends SVGGeometryElement {\n readonly x1: SVGAnimatedLength;\n readonly x2: SVGAnimatedLength;\n readonly y1: SVGAnimatedLength;\n readonly y2: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGLineElement: {\n prototype: SVGLineElement;\n new(): SVGLineElement;\n};\n\n/**\n * Corresponds to the <linearGradient> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement)\n */\ninterface SVGLinearGradientElement extends SVGGradientElement {\n readonly x1: SVGAnimatedLength;\n readonly x2: SVGAnimatedLength;\n readonly y1: SVGAnimatedLength;\n readonly y2: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGLinearGradientElement: {\n prototype: SVGLinearGradientElement;\n new(): SVGLinearGradientElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMPathElement) */\ninterface SVGMPathElement extends SVGElement, SVGURIReference {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMPathElement: {\n prototype: SVGMPathElement;\n new(): SVGMPathElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement) */\ninterface SVGMarkerElement extends SVGElement, SVGFitToViewBox {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerHeight) */\n readonly markerHeight: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerUnits) */\n readonly markerUnits: SVGAnimatedEnumeration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerWidth) */\n readonly markerWidth: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientAngle) */\n readonly orientAngle: SVGAnimatedAngle;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientType) */\n readonly orientType: SVGAnimatedEnumeration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refX) */\n readonly refX: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refY) */\n readonly refY: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAngle) */\n setOrientToAngle(angle: SVGAngle): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAuto) */\n setOrientToAuto(): void;\n readonly SVG_MARKERUNITS_UNKNOWN: 0;\n readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;\n readonly SVG_MARKERUNITS_STROKEWIDTH: 2;\n readonly SVG_MARKER_ORIENT_UNKNOWN: 0;\n readonly SVG_MARKER_ORIENT_AUTO: 1;\n readonly SVG_MARKER_ORIENT_ANGLE: 2;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMarkerElement: {\n prototype: SVGMarkerElement;\n new(): SVGMarkerElement;\n readonly SVG_MARKERUNITS_UNKNOWN: 0;\n readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;\n readonly SVG_MARKERUNITS_STROKEWIDTH: 2;\n readonly SVG_MARKER_ORIENT_UNKNOWN: 0;\n readonly SVG_MARKER_ORIENT_AUTO: 1;\n readonly SVG_MARKER_ORIENT_ANGLE: 2;\n};\n\n/**\n * Provides access to the properties of <mask> elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement)\n */\ninterface SVGMaskElement extends SVGElement {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/height) */\n readonly height: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskContentUnits) */\n readonly maskContentUnits: SVGAnimatedEnumeration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskUnits) */\n readonly maskUnits: SVGAnimatedEnumeration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/width) */\n readonly width: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/x) */\n readonly x: SVGAnimatedLength;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMaskElement: {\n prototype: SVGMaskElement;\n new(): SVGMaskElement;\n};\n\n/**\n * Corresponds to the <metadata> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMetadataElement)\n */\ninterface SVGMetadataElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMetadataElement: {\n prototype: SVGMetadataElement;\n new(): SVGMetadataElement;\n};\n\n/**\n * Corresponds to the <number> basic data type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumber)\n */\ninterface SVGNumber {\n value: number;\n}\n\ndeclare var SVGNumber: {\n prototype: SVGNumber;\n new(): SVGNumber;\n};\n\n/**\n * The SVGNumberList defines a list of SVGNumber objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList)\n */\ninterface SVGNumberList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGNumber): SVGNumber;\n clear(): void;\n getItem(index: number): SVGNumber;\n initialize(newItem: SVGNumber): SVGNumber;\n insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;\n removeItem(index: number): SVGNumber;\n replaceItem(newItem: SVGNumber, index: number): SVGNumber;\n [index: number]: SVGNumber;\n}\n\ndeclare var SVGNumberList: {\n prototype: SVGNumberList;\n new(): SVGNumberList;\n};\n\n/**\n * Corresponds to the <path> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement)\n */\ninterface SVGPathElement extends SVGGeometryElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPathElement: {\n prototype: SVGPathElement;\n new(): SVGPathElement;\n};\n\n/**\n * Corresponds to the <pattern> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement)\n */\ninterface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {\n readonly height: SVGAnimatedLength;\n readonly patternContentUnits: SVGAnimatedEnumeration;\n readonly patternTransform: SVGAnimatedTransformList;\n readonly patternUnits: SVGAnimatedEnumeration;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPatternElement: {\n prototype: SVGPatternElement;\n new(): SVGPatternElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList) */\ninterface SVGPointList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/numberOfItems) */\n readonly numberOfItems: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem) */\n appendItem(newItem: DOMPoint): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/clear) */\n clear(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem) */\n getItem(index: number): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize) */\n initialize(newItem: DOMPoint): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore) */\n insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem) */\n removeItem(index: number): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/replaceItem) */\n replaceItem(newItem: DOMPoint, index: number): DOMPoint;\n [index: number]: DOMPoint;\n}\n\ndeclare var SVGPointList: {\n prototype: SVGPointList;\n new(): SVGPointList;\n};\n\n/**\n * Provides access to the properties of <polygon> elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement)\n */\ninterface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPolygonElement: {\n prototype: SVGPolygonElement;\n new(): SVGPolygonElement;\n};\n\n/**\n * Provides access to the properties of <polyline> elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolylineElement)\n */\ninterface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPolylineElement: {\n prototype: SVGPolylineElement;\n new(): SVGPolylineElement;\n};\n\n/**\n * Corresponds to the preserveAspectRatio attribute, which is available for some of SVG\'s elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio)\n */\ninterface SVGPreserveAspectRatio {\n align: number;\n meetOrSlice: number;\n readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;\n readonly SVG_PRESERVEASPECTRATIO_NONE: 1;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;\n readonly SVG_MEETORSLICE_UNKNOWN: 0;\n readonly SVG_MEETORSLICE_MEET: 1;\n readonly SVG_MEETORSLICE_SLICE: 2;\n}\n\ndeclare var SVGPreserveAspectRatio: {\n prototype: SVGPreserveAspectRatio;\n new(): SVGPreserveAspectRatio;\n readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;\n readonly SVG_PRESERVEASPECTRATIO_NONE: 1;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;\n readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;\n readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;\n readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;\n readonly SVG_MEETORSLICE_UNKNOWN: 0;\n readonly SVG_MEETORSLICE_MEET: 1;\n readonly SVG_MEETORSLICE_SLICE: 2;\n};\n\n/**\n * Corresponds to the <RadialGradient> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement)\n */\ninterface SVGRadialGradientElement extends SVGGradientElement {\n readonly cx: SVGAnimatedLength;\n readonly cy: SVGAnimatedLength;\n readonly fr: SVGAnimatedLength;\n readonly fx: SVGAnimatedLength;\n readonly fy: SVGAnimatedLength;\n readonly r: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGRadialGradientElement: {\n prototype: SVGRadialGradientElement;\n new(): SVGRadialGradientElement;\n};\n\n/**\n * Provides access to the properties of <rect> elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement)\n */\ninterface SVGRectElement extends SVGGeometryElement {\n readonly height: SVGAnimatedLength;\n readonly rx: SVGAnimatedLength;\n readonly ry: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGRectElement: {\n prototype: SVGRectElement;\n new(): SVGRectElement;\n};\n\ninterface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {\n}\n\n/**\n * Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement)\n */\ninterface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {\n currentScale: number;\n readonly currentTranslate: DOMPointReadOnly;\n readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n animationsPaused(): boolean;\n checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;\n checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;\n createSVGAngle(): SVGAngle;\n createSVGLength(): SVGLength;\n createSVGMatrix(): DOMMatrix;\n createSVGNumber(): SVGNumber;\n createSVGPoint(): DOMPoint;\n createSVGRect(): DOMRect;\n createSVGTransform(): SVGTransform;\n createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;\n deselectAll(): void;\n /** @deprecated */\n forceRedraw(): void;\n getCurrentTime(): number;\n getElementById(elementId: string): Element;\n getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n pauseAnimations(): void;\n setCurrentTime(seconds: number): void;\n /** @deprecated */\n suspendRedraw(maxWaitMilliseconds: number): number;\n unpauseAnimations(): void;\n /** @deprecated */\n unsuspendRedraw(suspendHandleID: number): void;\n /** @deprecated */\n unsuspendRedrawAll(): void;\n addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSVGElement: {\n prototype: SVGSVGElement;\n new(): SVGSVGElement;\n};\n\n/**\n * Corresponds to the SVG <script> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGScriptElement)\n */\ninterface SVGScriptElement extends SVGElement, SVGURIReference {\n type: string;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGScriptElement: {\n prototype: SVGScriptElement;\n new(): SVGScriptElement;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSetElement) */\ninterface SVGSetElement extends SVGAnimationElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSetElement: {\n prototype: SVGSetElement;\n new(): SVGSetElement;\n};\n\n/**\n * Corresponds to the <stop> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement)\n */\ninterface SVGStopElement extends SVGElement {\n readonly offset: SVGAnimatedNumber;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGStopElement: {\n prototype: SVGStopElement;\n new(): SVGStopElement;\n};\n\n/**\n * The SVGStringList defines a list of DOMString objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList)\n */\ninterface SVGStringList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: string): string;\n clear(): void;\n getItem(index: number): string;\n initialize(newItem: string): string;\n insertItemBefore(newItem: string, index: number): string;\n removeItem(index: number): string;\n replaceItem(newItem: string, index: number): string;\n [index: number]: string;\n}\n\ndeclare var SVGStringList: {\n prototype: SVGStringList;\n new(): SVGStringList;\n};\n\n/**\n * Corresponds to the SVG <style> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)\n */\ninterface SVGStyleElement extends SVGElement, LinkStyle {\n disabled: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/media) */\n media: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/title) */\n title: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/type)\n */\n type: string;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGStyleElement: {\n prototype: SVGStyleElement;\n new(): SVGStyleElement;\n};\n\n/**\n * Corresponds to the <switch> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSwitchElement)\n */\ninterface SVGSwitchElement extends SVGGraphicsElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSwitchElement: {\n prototype: SVGSwitchElement;\n new(): SVGSwitchElement;\n};\n\n/**\n * Corresponds to the <symbol> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSymbolElement)\n */\ninterface SVGSymbolElement extends SVGElement, SVGFitToViewBox {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSymbolElement: {\n prototype: SVGSymbolElement;\n new(): SVGSymbolElement;\n};\n\n/**\n * A <tspan> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTSpanElement)\n */\ninterface SVGTSpanElement extends SVGTextPositioningElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTSpanElement: {\n prototype: SVGTSpanElement;\n new(): SVGTSpanElement;\n};\n\ninterface SVGTests {\n readonly requiredExtensions: SVGStringList;\n readonly systemLanguage: SVGStringList;\n}\n\n/**\n * Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement)\n */\ninterface SVGTextContentElement extends SVGGraphicsElement {\n readonly lengthAdjust: SVGAnimatedEnumeration;\n readonly textLength: SVGAnimatedLength;\n getCharNumAtPosition(point?: DOMPointInit): number;\n getComputedTextLength(): number;\n getEndPositionOfChar(charnum: number): DOMPoint;\n getExtentOfChar(charnum: number): DOMRect;\n getNumberOfChars(): number;\n getRotationOfChar(charnum: number): number;\n getStartPositionOfChar(charnum: number): DOMPoint;\n getSubStringLength(charnum: number, nchars: number): number;\n /** @deprecated */\n selectSubString(charnum: number, nchars: number): void;\n readonly LENGTHADJUST_UNKNOWN: 0;\n readonly LENGTHADJUST_SPACING: 1;\n readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextContentElement: {\n prototype: SVGTextContentElement;\n new(): SVGTextContentElement;\n readonly LENGTHADJUST_UNKNOWN: 0;\n readonly LENGTHADJUST_SPACING: 1;\n readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;\n};\n\n/**\n * Corresponds to the <text> elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextElement)\n */\ninterface SVGTextElement extends SVGTextPositioningElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextElement: {\n prototype: SVGTextElement;\n new(): SVGTextElement;\n};\n\n/**\n * Corresponds to the <textPath> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement)\n */\ninterface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {\n readonly method: SVGAnimatedEnumeration;\n readonly spacing: SVGAnimatedEnumeration;\n readonly startOffset: SVGAnimatedLength;\n readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;\n readonly TEXTPATH_METHODTYPE_ALIGN: 1;\n readonly TEXTPATH_METHODTYPE_STRETCH: 2;\n readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;\n readonly TEXTPATH_SPACINGTYPE_AUTO: 1;\n readonly TEXTPATH_SPACINGTYPE_EXACT: 2;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextPathElement: {\n prototype: SVGTextPathElement;\n new(): SVGTextPathElement;\n readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;\n readonly TEXTPATH_METHODTYPE_ALIGN: 1;\n readonly TEXTPATH_METHODTYPE_STRETCH: 2;\n readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;\n readonly TEXTPATH_SPACINGTYPE_AUTO: 1;\n readonly TEXTPATH_SPACINGTYPE_EXACT: 2;\n};\n\n/**\n * Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement)\n */\ninterface SVGTextPositioningElement extends SVGTextContentElement {\n readonly dx: SVGAnimatedLengthList;\n readonly dy: SVGAnimatedLengthList;\n readonly rotate: SVGAnimatedNumberList;\n readonly x: SVGAnimatedLengthList;\n readonly y: SVGAnimatedLengthList;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextPositioningElement: {\n prototype: SVGTextPositioningElement;\n new(): SVGTextPositioningElement;\n};\n\n/**\n * Corresponds to the <title> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTitleElement)\n */\ninterface SVGTitleElement extends SVGElement {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTitleElement: {\n prototype: SVGTitleElement;\n new(): SVGTitleElement;\n};\n\n/**\n * SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(\u2026) or matrix(\u2026)) within a transform attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform)\n */\ninterface SVGTransform {\n readonly angle: number;\n readonly matrix: DOMMatrix;\n readonly type: number;\n setMatrix(matrix?: DOMMatrix2DInit): void;\n setRotate(angle: number, cx: number, cy: number): void;\n setScale(sx: number, sy: number): void;\n setSkewX(angle: number): void;\n setSkewY(angle: number): void;\n setTranslate(tx: number, ty: number): void;\n readonly SVG_TRANSFORM_UNKNOWN: 0;\n readonly SVG_TRANSFORM_MATRIX: 1;\n readonly SVG_TRANSFORM_TRANSLATE: 2;\n readonly SVG_TRANSFORM_SCALE: 3;\n readonly SVG_TRANSFORM_ROTATE: 4;\n readonly SVG_TRANSFORM_SKEWX: 5;\n readonly SVG_TRANSFORM_SKEWY: 6;\n}\n\ndeclare var SVGTransform: {\n prototype: SVGTransform;\n new(): SVGTransform;\n readonly SVG_TRANSFORM_UNKNOWN: 0;\n readonly SVG_TRANSFORM_MATRIX: 1;\n readonly SVG_TRANSFORM_TRANSLATE: 2;\n readonly SVG_TRANSFORM_SCALE: 3;\n readonly SVG_TRANSFORM_ROTATE: 4;\n readonly SVG_TRANSFORM_SKEWX: 5;\n readonly SVG_TRANSFORM_SKEWY: 6;\n};\n\n/**\n * The SVGTransformList defines a list of SVGTransform objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList)\n */\ninterface SVGTransformList {\n readonly length: number;\n readonly numberOfItems: number;\n appendItem(newItem: SVGTransform): SVGTransform;\n clear(): void;\n consolidate(): SVGTransform | null;\n createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;\n getItem(index: number): SVGTransform;\n initialize(newItem: SVGTransform): SVGTransform;\n insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;\n removeItem(index: number): SVGTransform;\n replaceItem(newItem: SVGTransform, index: number): SVGTransform;\n [index: number]: SVGTransform;\n}\n\ndeclare var SVGTransformList: {\n prototype: SVGTransformList;\n new(): SVGTransformList;\n};\n\ninterface SVGURIReference {\n readonly href: SVGAnimatedString;\n}\n\n/**\n * A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUnitTypes)\n */\ninterface SVGUnitTypes {\n readonly SVG_UNIT_TYPE_UNKNOWN: 0;\n readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;\n readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;\n}\n\ndeclare var SVGUnitTypes: {\n prototype: SVGUnitTypes;\n new(): SVGUnitTypes;\n readonly SVG_UNIT_TYPE_UNKNOWN: 0;\n readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;\n readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;\n};\n\n/**\n * Corresponds to the <use> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement)\n */\ninterface SVGUseElement extends SVGGraphicsElement, SVGURIReference {\n readonly height: SVGAnimatedLength;\n readonly width: SVGAnimatedLength;\n readonly x: SVGAnimatedLength;\n readonly y: SVGAnimatedLength;\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGUseElement: {\n prototype: SVGUseElement;\n new(): SVGUseElement;\n};\n\n/**\n * Provides access to the properties of <view> elements, as well as methods to manipulate them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGViewElement)\n */\ninterface SVGViewElement extends SVGElement, SVGFitToViewBox {\n addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGViewElement: {\n prototype: SVGViewElement;\n new(): SVGViewElement;\n};\n\n/**\n * A screen, usually the one on which the current window is being rendered, and is obtained using window.screen.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen)\n */\ninterface Screen {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availHeight) */\n readonly availHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availWidth) */\n readonly availWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/colorDepth) */\n readonly colorDepth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/height) */\n readonly height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/orientation) */\n readonly orientation: ScreenOrientation;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/pixelDepth) */\n readonly pixelDepth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/width) */\n readonly width: number;\n}\n\ndeclare var Screen: {\n prototype: Screen;\n new(): Screen;\n};\n\ninterface ScreenOrientationEventMap {\n "change": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation) */\ninterface ScreenOrientation extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle) */\n readonly angle: number;\n onchange: ((this: ScreenOrientation, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */\n readonly type: OrientationType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) */\n unlock(): void;\n addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ScreenOrientation: {\n prototype: ScreenOrientation;\n new(): ScreenOrientation;\n};\n\ninterface ScriptProcessorNodeEventMap {\n "audioprocess": AudioProcessingEvent;\n}\n\n/**\n * Allows the generation, processing, or analyzing of audio using JavaScript.\n * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode)\n */\ninterface ScriptProcessorNode extends AudioNode {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/bufferSize)\n */\n readonly bufferSize: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/audioprocess_event)\n */\n onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;\n addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** @deprecated */\ndeclare var ScriptProcessorNode: {\n prototype: ScriptProcessorNode;\n new(): ScriptProcessorNode;\n};\n\n/**\n * Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)\n */\ninterface SecurityPolicyViolationEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) */\n readonly blockedURI: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */\n readonly columnNumber: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) */\n readonly disposition: SecurityPolicyViolationEventDisposition;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) */\n readonly documentURI: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) */\n readonly effectiveDirective: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) */\n readonly lineNumber: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) */\n readonly originalPolicy: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) */\n readonly referrer: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) */\n readonly sample: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) */\n readonly sourceFile: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) */\n readonly statusCode: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) */\n readonly violatedDirective: string;\n}\n\ndeclare var SecurityPolicyViolationEvent: {\n prototype: SecurityPolicyViolationEvent;\n new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;\n};\n\n/**\n * A Selection object\xa0represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or\xa0modification, call Window.getSelection().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection)\n */\ninterface Selection {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorNode) */\n readonly anchorNode: Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) */\n readonly anchorOffset: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) */\n readonly focusNode: Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) */\n readonly focusOffset: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/isCollapsed) */\n readonly isCollapsed: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/rangeCount) */\n readonly rangeCount: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/type) */\n readonly type: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/addRange) */\n addRange(range: Range): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */\n collapse(node: Node | null, offset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToEnd) */\n collapseToEnd(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToStart) */\n collapseToStart(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/containsNode) */\n containsNode(node: Node, allowPartialContainment?: boolean): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/deleteFromDocument) */\n deleteFromDocument(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */\n empty(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/extend) */\n extend(node: Node, offset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/getRangeAt) */\n getRangeAt(index: number): Range;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/modify) */\n modify(alter?: string, direction?: string, granularity?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */\n removeAllRanges(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeRange) */\n removeRange(range: Range): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/selectAllChildren) */\n selectAllChildren(node: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setBaseAndExtent) */\n setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */\n setPosition(node: Node | null, offset?: number): void;\n toString(): string;\n}\n\ndeclare var Selection: {\n prototype: Selection;\n new(): Selection;\n};\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n "statechange": Event;\n}\n\n/**\n * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker)\n */\ninterface ServiceWorker extends EventTarget, AbstractWorker {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */\n onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */\n readonly scriptURL: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) */\n readonly state: ServiceWorkerState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorker: {\n prototype: ServiceWorker;\n new(): ServiceWorker;\n};\n\ninterface ServiceWorkerContainerEventMap {\n "controllerchange": Event;\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * The\xa0ServiceWorkerContainer\xa0interface of the\xa0ServiceWorker API\xa0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)\n */\ninterface ServiceWorkerContainer extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */\n readonly controller: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */\n oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */\n onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */\n onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */\n readonly ready: Promise<ServiceWorkerRegistration>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) */\n getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) */\n getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) */\n register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) */\n startMessages(): void;\n addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerContainer: {\n prototype: ServiceWorkerContainer;\n new(): ServiceWorkerContainer;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n "updatefound": Event;\n}\n\n/**\n * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)\n */\ninterface ServiceWorkerRegistration extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */\n readonly active: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */\n readonly installing: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload) */\n readonly navigationPreload: NavigationPreloadManager;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */\n onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */\n readonly pushManager: PushManager;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) */\n readonly scope: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) */\n readonly updateViaCache: ServiceWorkerUpdateViaCache;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) */\n readonly waiting: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) */\n getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) */\n showNotification(title: string, options?: NotificationOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */\n unregister(): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */\n update(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerRegistration: {\n prototype: ServiceWorkerRegistration;\n new(): ServiceWorkerRegistration;\n};\n\ninterface ShadowRootEventMap {\n "slotchange": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */\ninterface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */\n readonly delegatesFocus: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */\n readonly host: Element;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */\n readonly mode: ShadowRootMode;\n onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */\n readonly slotAssignment: SlotAssignmentMode;\n /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */\n addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ShadowRoot: {\n prototype: ShadowRoot;\n new(): ShadowRoot;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker) */\ninterface SharedWorker extends EventTarget, AbstractWorker {\n /**\n * Returns sharedWorker\'s MessagePort object which can be used to communicate with the global environment.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker/port)\n */\n readonly port: MessagePort;\n addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SharedWorker: {\n prototype: SharedWorker;\n new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;\n};\n\ninterface Slottable {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/assignedSlot) */\n readonly assignedSlot: HTMLSlotElement | null;\n}\n\ninterface SourceBufferEventMap {\n "abort": Event;\n "error": Event;\n "update": Event;\n "updateend": Event;\n "updatestart": Event;\n}\n\n/**\n * A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource\xa0object. This can be made up of one or several media segments.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer)\n */\ninterface SourceBuffer extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowEnd) */\n appendWindowEnd: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowStart) */\n appendWindowStart: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/buffered) */\n readonly buffered: TimeRanges;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode) */\n mode: AppendMode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */\n onabort: ((this: SourceBuffer, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */\n onerror: ((this: SourceBuffer, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */\n onupdate: ((this: SourceBuffer, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */\n onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */\n onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/timestampOffset) */\n timestampOffset: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating) */\n readonly updating: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort) */\n abort(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendBuffer) */\n appendBuffer(data: BufferSource): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/changeType) */\n changeType(type: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/remove) */\n remove(start: number, end: number): void;\n addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SourceBuffer: {\n prototype: SourceBuffer;\n new(): SourceBuffer;\n};\n\ninterface SourceBufferListEventMap {\n "addsourcebuffer": Event;\n "removesourcebuffer": Event;\n}\n\n/**\n * A simple container list for multiple SourceBuffer objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList)\n */\ninterface SourceBufferList extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/addsourcebuffer_event) */\n onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/removesourcebuffer_event) */\n onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;\n addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: SourceBuffer;\n}\n\ndeclare var SourceBufferList: {\n prototype: SourceBufferList;\n new(): SourceBufferList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative) */\ninterface SpeechRecognitionAlternative {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence) */\n readonly confidence: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript) */\n readonly transcript: string;\n}\n\ndeclare var SpeechRecognitionAlternative: {\n prototype: SpeechRecognitionAlternative;\n new(): SpeechRecognitionAlternative;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult) */\ninterface SpeechRecognitionResult {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/isFinal) */\n readonly isFinal: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/item) */\n item(index: number): SpeechRecognitionAlternative;\n [index: number]: SpeechRecognitionAlternative;\n}\n\ndeclare var SpeechRecognitionResult: {\n prototype: SpeechRecognitionResult;\n new(): SpeechRecognitionResult;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList) */\ninterface SpeechRecognitionResultList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/item) */\n item(index: number): SpeechRecognitionResult;\n [index: number]: SpeechRecognitionResult;\n}\n\ndeclare var SpeechRecognitionResultList: {\n prototype: SpeechRecognitionResultList;\n new(): SpeechRecognitionResultList;\n};\n\ninterface SpeechSynthesisEventMap {\n "voiceschanged": Event;\n}\n\n/**\n * This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis)\n */\ninterface SpeechSynthesis extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/voiceschanged_event) */\n onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/paused) */\n readonly paused: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pending) */\n readonly pending: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speaking) */\n readonly speaking: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/cancel) */\n cancel(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/getVoices) */\n getVoices(): SpeechSynthesisVoice[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pause) */\n pause(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/resume) */\n resume(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speak) */\n speak(utterance: SpeechSynthesisUtterance): void;\n addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SpeechSynthesis: {\n prototype: SpeechSynthesis;\n new(): SpeechSynthesis;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent) */\ninterface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent/error) */\n readonly error: SpeechSynthesisErrorCode;\n}\n\ndeclare var SpeechSynthesisErrorEvent: {\n prototype: SpeechSynthesisErrorEvent;\n new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;\n};\n\n/**\n * This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent)\n */\ninterface SpeechSynthesisEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charIndex) */\n readonly charIndex: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charLength) */\n readonly charLength: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/elapsedTime) */\n readonly elapsedTime: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/utterance) */\n readonly utterance: SpeechSynthesisUtterance;\n}\n\ndeclare var SpeechSynthesisEvent: {\n prototype: SpeechSynthesisEvent;\n new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;\n};\n\ninterface SpeechSynthesisUtteranceEventMap {\n "boundary": SpeechSynthesisEvent;\n "end": SpeechSynthesisEvent;\n "error": SpeechSynthesisErrorEvent;\n "mark": SpeechSynthesisEvent;\n "pause": SpeechSynthesisEvent;\n "resume": SpeechSynthesisEvent;\n "start": SpeechSynthesisEvent;\n}\n\n/**\n * This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.)\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance)\n */\ninterface SpeechSynthesisUtterance extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/lang) */\n lang: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/boundary_event) */\n onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/end_event) */\n onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/error_event) */\n onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/mark_event) */\n onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pause_event) */\n onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/resume_event) */\n onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/start_event) */\n onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pitch) */\n pitch: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/rate) */\n rate: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/text) */\n text: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/voice) */\n voice: SpeechSynthesisVoice | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/volume) */\n volume: number;\n addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SpeechSynthesisUtterance: {\n prototype: SpeechSynthesisUtterance;\n new(text?: string): SpeechSynthesisUtterance;\n};\n\n/**\n * This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice)\n */\ninterface SpeechSynthesisVoice {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/default) */\n readonly default: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/lang) */\n readonly lang: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/localService) */\n readonly localService: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/voiceURI) */\n readonly voiceURI: string;\n}\n\ndeclare var SpeechSynthesisVoice: {\n prototype: SpeechSynthesisVoice;\n new(): SpeechSynthesisVoice;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StaticRange) */\ninterface StaticRange extends AbstractRange {\n}\n\ndeclare var StaticRange: {\n prototype: StaticRange;\n new(init: StaticRangeInit): StaticRange;\n};\n\n/**\n * The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode)\n */\ninterface StereoPannerNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode/pan) */\n readonly pan: AudioParam;\n}\n\ndeclare var StereoPannerNode: {\n prototype: StereoPannerNode;\n new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;\n};\n\n/**\n * This Web Storage API interface provides access to a particular domain\'s session or local storage. It allows, for example, the addition, modification, or deletion of stored data items.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage)\n */\ninterface Storage {\n /**\n * Returns the number of key/value pairs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length)\n */\n readonly length: number;\n /**\n * Removes all key/value pairs, if there are any.\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear)\n */\n clear(): void;\n /**\n * Returns the current value associated with the given key, or null if the given key does not exist.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem)\n */\n getItem(key: string): string | null;\n /**\n * Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key)\n */\n key(index: number): string | null;\n /**\n * Removes the key/value pair with the given key, if a key/value pair with the given key exists.\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem)\n */\n removeItem(key: string): void;\n /**\n * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.\n *\n * Throws a "QuotaExceededError" DOMException exception if the new value couldn\'t be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)\n *\n * Dispatches a storage event on Window objects holding an equivalent Storage object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/setItem)\n */\n setItem(key: string, value: string): void;\n [name: string]: any;\n}\n\ndeclare var Storage: {\n prototype: Storage;\n new(): Storage;\n};\n\n/**\n * A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent)\n */\ninterface StorageEvent extends Event {\n /**\n * Returns the key of the storage item being changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/key)\n */\n readonly key: string | null;\n /**\n * Returns the new value of the key of the storage item whose value is being changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/newValue)\n */\n readonly newValue: string | null;\n /**\n * Returns the old value of the key of the storage item whose value is being changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/oldValue)\n */\n readonly oldValue: string | null;\n /**\n * Returns the Storage object that was affected.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/storageArea)\n */\n readonly storageArea: Storage | null;\n /**\n * Returns the URL of the document whose storage item changed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/url)\n */\n readonly url: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/initStorageEvent)\n */\n initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;\n}\n\ndeclare var StorageEvent: {\n prototype: StorageEvent;\n new(type: string, eventInitDict?: StorageEventInit): StorageEvent;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)\n */\ninterface StorageManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) */\n estimate(): Promise<StorageEstimate>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) */\n getDirectory(): Promise<FileSystemDirectoryHandle>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persist) */\n persist(): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) */\n persisted(): Promise<boolean>;\n}\n\ndeclare var StorageManager: {\n prototype: StorageManager;\n new(): StorageManager;\n};\n\n/** @deprecated */\ninterface StyleMedia {\n type: string;\n matchMedium(mediaquery: string): boolean;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap) */\ninterface StylePropertyMap extends StylePropertyMapReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/append) */\n append(property: string, ...values: (CSSStyleValue | string)[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/clear) */\n clear(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/delete) */\n delete(property: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/set) */\n set(property: string, ...values: (CSSStyleValue | string)[]): void;\n}\n\ndeclare var StylePropertyMap: {\n prototype: StylePropertyMap;\n new(): StylePropertyMap;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */\ninterface StylePropertyMapReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) */\n readonly size: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) */\n get(property: string): undefined | CSSStyleValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) */\n getAll(property: string): CSSStyleValue[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) */\n has(property: string): boolean;\n forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;\n}\n\ndeclare var StylePropertyMapReadOnly: {\n prototype: StylePropertyMapReadOnly;\n new(): StylePropertyMapReadOnly;\n};\n\n/**\n * A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet)\n */\ninterface StyleSheet {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/disabled) */\n disabled: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/href) */\n readonly href: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media) */\n readonly media: MediaList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode) */\n readonly ownerNode: Element | ProcessingInstruction | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet) */\n readonly parentStyleSheet: CSSStyleSheet | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/title) */\n readonly title: string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/type) */\n readonly type: string;\n}\n\ndeclare var StyleSheet: {\n prototype: StyleSheet;\n new(): StyleSheet;\n};\n\n/**\n * A list of StyleSheet.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList)\n */\ninterface StyleSheetList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/item) */\n item(index: number): CSSStyleSheet | null;\n [index: number]: CSSStyleSheet;\n}\n\ndeclare var StyleSheetList: {\n prototype: StyleSheetList;\n new(): StyleSheetList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent) */\ninterface SubmitEvent extends Event {\n /**\n * Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent/submitter)\n */\n readonly submitter: HTMLElement | null;\n}\n\ndeclare var SubmitEvent: {\n prototype: SubmitEvent;\n new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;\n};\n\n/**\n * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)\n */\ninterface SubtleCrypto {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */\n decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */\n deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */\n digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */\n encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */\n exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;\n exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;\n exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */\n generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */\n sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */\n unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */\n verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */\n wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n prototype: SubtleCrypto;\n new(): SubtleCrypto;\n};\n\n/**\n * The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element\'s text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text)\n */\ninterface Text extends CharacterData, Slottable {\n /**\n * Returns the combined data of all direct Text node siblings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/wholeText)\n */\n readonly wholeText: string;\n /**\n * Splits data at the given offset and returns the remainder as Text node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/splitText)\n */\n splitText(offset: number): Text;\n}\n\ndeclare var Text: {\n prototype: Text;\n new(data?: string): Text;\n};\n\n/**\n * A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xa0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)\n */\ninterface TextDecoder extends TextDecoderCommon {\n /**\n * Returns the result of running encoding\'s decoder. The method can be invoked zero or more times with options\'s stream set to true, and then once without options\'s stream (or set to false), to process a fragmented input. If the invocation without options\'s stream (or set to false) has no input, it\'s clearest to omit both arguments.\n *\n * ```\n * var string = "", decoder = new TextDecoder(encoding), buffer;\n * while(buffer = next_chunk()) {\n * string += decoder.decode(buffer, {stream:true});\n * }\n * string += decoder.decode(); // end-of-queue\n * ```\n *\n * If the error mode is "fatal" and encoding\'s decoder returns error, throws a TypeError.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)\n */\n decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;\n}\n\ndeclare var TextDecoder: {\n prototype: TextDecoder;\n new(label?: string, options?: TextDecoderOptions): TextDecoder;\n};\n\ninterface TextDecoderCommon {\n /**\n * Returns encoding\'s name, lowercased.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)\n */\n readonly encoding: string;\n /**\n * Returns true if error mode is "fatal", otherwise false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)\n */\n readonly fatal: boolean;\n /**\n * Returns the value of ignore BOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)\n */\n readonly ignoreBOM: boolean;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */\ninterface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {\n readonly readable: ReadableStream<string>;\n readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var TextDecoderStream: {\n prototype: TextDecoderStream;\n new(label?: string, options?: TextDecoderOptions): TextDecoderStream;\n};\n\n/**\n * TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)\n */\ninterface TextEncoder extends TextEncoderCommon {\n /**\n * Returns the result of running UTF-8\'s encoder.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)\n */\n encode(input?: string): Uint8Array;\n /**\n * Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)\n */\n encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n prototype: TextEncoder;\n new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n /**\n * Returns "utf-8".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)\n */\n readonly encoding: string;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */\ninterface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {\n readonly readable: ReadableStream<Uint8Array>;\n readonly writable: WritableStream<string>;\n}\n\ndeclare var TextEncoderStream: {\n prototype: TextEncoderStream;\n new(): TextEncoderStream;\n};\n\n/**\n * The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)\n */\ninterface TextMetrics {\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)\n */\n readonly actualBoundingBoxAscent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)\n */\n readonly actualBoundingBoxDescent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)\n */\n readonly actualBoundingBoxLeft: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)\n */\n readonly actualBoundingBoxRight: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)\n */\n readonly alphabeticBaseline: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)\n */\n readonly emHeightAscent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)\n */\n readonly emHeightDescent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)\n */\n readonly fontBoundingBoxAscent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)\n */\n readonly fontBoundingBoxDescent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)\n */\n readonly hangingBaseline: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)\n */\n readonly ideographicBaseline: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)\n */\n readonly width: number;\n}\n\ndeclare var TextMetrics: {\n prototype: TextMetrics;\n new(): TextMetrics;\n};\n\ninterface TextTrackEventMap {\n "cuechange": Event;\n}\n\n/**\n * This interface also inherits properties from EventTarget.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack)\n */\ninterface TextTrack extends EventTarget {\n /**\n * Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/activeCues)\n */\n readonly activeCues: TextTrackCueList | null;\n /**\n * Returns the text track list of cues, as a TextTrackCueList object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cues)\n */\n readonly cues: TextTrackCueList | null;\n /**\n * Returns the ID of the given track.\n *\n * For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method.\n *\n * For TextTrack objects corresponding to track elements, this is the ID of the track element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/id)\n */\n readonly id: string;\n /**\n * Returns the text track in-band metadata track dispatch type string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType)\n */\n readonly inBandMetadataTrackDispatchType: string;\n /**\n * Returns the text track kind string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/kind)\n */\n readonly kind: TextTrackKind;\n /**\n * Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/label)\n */\n readonly label: string;\n /**\n * Returns the text track language string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/language)\n */\n readonly language: string;\n /**\n * Returns the text track mode, represented by a string from the following list:\n *\n * Can be set, to change the mode.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/mode)\n */\n mode: TextTrackMode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cuechange_event) */\n oncuechange: ((this: TextTrack, ev: Event) => any) | null;\n /**\n * Adds the given cue to textTrack\'s text track list of cues.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/addCue)\n */\n addCue(cue: TextTrackCue): void;\n /**\n * Removes the given cue from textTrack\'s text track list of cues.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/removeCue)\n */\n removeCue(cue: TextTrackCue): void;\n addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var TextTrack: {\n prototype: TextTrack;\n new(): TextTrack;\n};\n\ninterface TextTrackCueEventMap {\n "enter": Event;\n "exit": Event;\n}\n\n/**\n * TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)\n */\ninterface TextTrackCue extends EventTarget {\n /**\n * Returns the text track cue end time, in seconds.\n *\n * Can be set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/endTime)\n */\n endTime: number;\n /**\n * Returns the text track cue identifier.\n *\n * Can be set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/id)\n */\n id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/enter_event) */\n onenter: ((this: TextTrackCue, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/exit_event) */\n onexit: ((this: TextTrackCue, ev: Event) => any) | null;\n /**\n * Returns true if the text track cue pause-on-exit flag is set, false otherwise.\n *\n * Can be set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/pauseOnExit)\n */\n pauseOnExit: boolean;\n /**\n * Returns the text track cue start time, in seconds.\n *\n * Can be set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/startTime)\n */\n startTime: number;\n /**\n * Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/track)\n */\n readonly track: TextTrack | null;\n addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var TextTrackCue: {\n prototype: TextTrackCue;\n new(): TextTrackCue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList) */\ninterface TextTrackCueList {\n /**\n * Returns the number of cues in the list.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/length)\n */\n readonly length: number;\n /**\n * Returns the first text track cue (in text track cue order) with text track cue identifier id.\n *\n * Returns null if none of the cues have the given identifier or if the argument is the empty string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/getCueById)\n */\n getCueById(id: string): TextTrackCue | null;\n [index: number]: TextTrackCue;\n}\n\ndeclare var TextTrackCueList: {\n prototype: TextTrackCueList;\n new(): TextTrackCueList;\n};\n\ninterface TextTrackListEventMap {\n "addtrack": TrackEvent;\n "change": Event;\n "removetrack": TrackEvent;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList) */\ninterface TextTrackList extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/addtrack_event) */\n onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/change_event) */\n onchange: ((this: TextTrackList, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/removetrack_event) */\n onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/getTrackById) */\n getTrackById(id: string): TextTrack | null;\n addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: TextTrack;\n}\n\ndeclare var TextTrackList: {\n prototype: TextTrackList;\n new(): TextTrackList;\n};\n\n/**\n * Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video>\xa0elements.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges)\n */\ninterface TimeRanges {\n /**\n * Returns the number of ranges in the object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/length)\n */\n readonly length: number;\n /**\n * Returns the time for the end of the range with the given index.\n *\n * Throws an "IndexSizeError" DOMException if the index is out of range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/end)\n */\n end(index: number): number;\n /**\n * Returns the time for the start of the range with the given index.\n *\n * Throws an "IndexSizeError" DOMException if the index is out of range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/start)\n */\n start(index: number): number;\n}\n\ndeclare var TimeRanges: {\n prototype: TimeRanges;\n new(): TimeRanges;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */\ninterface ToggleEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */\n readonly newState: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */\n readonly oldState: string;\n}\n\ndeclare var ToggleEvent: {\n prototype: ToggleEvent;\n new(type: string, eventInitDict?: ToggleEventInit): ToggleEvent;\n};\n\n/**\n * A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch)\n */\ninterface Touch {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientX) */\n readonly clientX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientY) */\n readonly clientY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/force) */\n readonly force: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/identifier) */\n readonly identifier: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageX) */\n readonly pageX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageY) */\n readonly pageY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusX) */\n readonly radiusX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusY) */\n readonly radiusY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/rotationAngle) */\n readonly rotationAngle: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenX) */\n readonly screenX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenY) */\n readonly screenY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/target) */\n readonly target: EventTarget;\n}\n\ndeclare var Touch: {\n prototype: Touch;\n new(touchInitDict: TouchInit): Touch;\n};\n\n/**\n * An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent)\n */\ninterface TouchEvent extends UIEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/altKey) */\n readonly altKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/changedTouches) */\n readonly changedTouches: TouchList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/ctrlKey) */\n readonly ctrlKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/metaKey) */\n readonly metaKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/shiftKey) */\n readonly shiftKey: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/targetTouches) */\n readonly targetTouches: TouchList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/touches) */\n readonly touches: TouchList;\n}\n\ndeclare var TouchEvent: {\n prototype: TouchEvent;\n new(type: string, eventInitDict?: TouchEventInit): TouchEvent;\n};\n\n/**\n * A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList)\n */\ninterface TouchList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/item) */\n item(index: number): Touch | null;\n [index: number]: Touch;\n}\n\ndeclare var TouchList: {\n prototype: TouchList;\n new(): TouchList;\n};\n\n/**\n * The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent)\n */\ninterface TrackEvent extends Event {\n /**\n * Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent/track)\n */\n readonly track: TextTrack | null;\n}\n\ndeclare var TrackEvent: {\n prototype: TrackEvent;\n new(type: string, eventInitDict?: TrackEventInit): TrackEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */\ninterface TransformStream<I = any, O = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */\n readonly readable: ReadableStream<O>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */\n readonly writable: WritableStream<I>;\n}\n\ndeclare var TransformStream: {\n prototype: TransformStream;\n new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */\ninterface TransformStreamDefaultController<O = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */\n enqueue(chunk?: O): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */\n error(reason?: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */\n terminate(): void;\n}\n\ndeclare var TransformStreamDefaultController: {\n prototype: TransformStreamDefaultController;\n new(): TransformStreamDefaultController;\n};\n\n/**\n * Events providing information related to transitions.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent)\n */\ninterface TransitionEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/elapsedTime) */\n readonly elapsedTime: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/propertyName) */\n readonly propertyName: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/pseudoElement) */\n readonly pseudoElement: string;\n}\n\ndeclare var TransitionEvent: {\n prototype: TransitionEvent;\n new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;\n};\n\n/**\n * The nodes of a document subtree and a position within them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker)\n */\ninterface TreeWalker {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/currentNode) */\n currentNode: Node;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/filter) */\n readonly filter: NodeFilter | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/root) */\n readonly root: Node;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/whatToShow) */\n readonly whatToShow: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/firstChild) */\n firstChild(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/lastChild) */\n lastChild(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextNode) */\n nextNode(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextSibling) */\n nextSibling(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/parentNode) */\n parentNode(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousNode) */\n previousNode(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousSibling) */\n previousSibling(): Node | null;\n}\n\ndeclare var TreeWalker: {\n prototype: TreeWalker;\n new(): TreeWalker;\n};\n\n/**\n * Simple user interface events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent)\n */\ninterface UIEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/detail) */\n readonly detail: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/view) */\n readonly view: Window | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/which)\n */\n readonly which: number;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/initUIEvent)\n */\n initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;\n}\n\ndeclare var UIEvent: {\n prototype: UIEvent;\n new(type: string, eventInitDict?: UIEventInit): UIEvent;\n};\n\n/**\n * The URL\xa0interface represents an object providing static methods used for creating object URLs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)\n */\ninterface URL {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */\n hash: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */\n host: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */\n hostname: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */\n href: string;\n toString(): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */\n readonly origin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */\n password: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */\n pathname: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */\n port: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */\n protocol: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */\n search: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */\n readonly searchParams: URLSearchParams;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */\n username: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */\n toJSON(): string;\n}\n\ndeclare var URL: {\n prototype: URL;\n new(url: string | URL, base?: string | URL): URL;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */\n canParse(url: string | URL, base?: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */\n createObjectURL(obj: Blob | MediaSource): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */\n revokeObjectURL(url: string): void;\n};\n\ntype webkitURL = URL;\ndeclare var webkitURL: typeof URL;\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */\ninterface URLSearchParams {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */\n readonly size: number;\n /**\n * Appends a specified key/value pair as a new search parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)\n */\n append(name: string, value: string): void;\n /**\n * Deletes the given search parameter, and its associated value, from the list of all search parameters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)\n */\n delete(name: string, value?: string): void;\n /**\n * Returns the first value associated to the given search parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)\n */\n get(name: string): string | null;\n /**\n * Returns all the values association with a given search parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)\n */\n getAll(name: string): string[];\n /**\n * Returns a Boolean indicating if such a search parameter exists.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)\n */\n has(name: string, value?: string): boolean;\n /**\n * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)\n */\n set(name: string, value: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */\n sort(): void;\n /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */\n toString(): string;\n forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;\n}\n\ndeclare var URLSearchParams: {\n prototype: URLSearchParams;\n new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation) */\ninterface UserActivation {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */\n readonly hasBeenActive: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */\n readonly isActive: boolean;\n}\n\ndeclare var UserActivation: {\n prototype: UserActivation;\n new(): UserActivation;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue) */\ninterface VTTCue extends TextTrackCue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/align) */\n align: AlignSetting;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/line) */\n line: LineAndPositionSetting;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/lineAlign) */\n lineAlign: LineAlignSetting;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/position) */\n position: LineAndPositionSetting;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/positionAlign) */\n positionAlign: PositionAlignSetting;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/region) */\n region: VTTRegion | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/size) */\n size: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/snapToLines) */\n snapToLines: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/text) */\n text: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/vertical) */\n vertical: DirectionSetting;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/getCueAsHTML) */\n getCueAsHTML(): DocumentFragment;\n addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VTTCue: {\n prototype: VTTCue;\n new(startTime: number, endTime: number, text: string): VTTCue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */\ninterface VTTRegion {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */\n id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */\n lines: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */\n regionAnchorX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */\n regionAnchorY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */\n scroll: ScrollSetting;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */\n viewportAnchorX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */\n viewportAnchorY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */\n width: number;\n}\n\ndeclare var VTTRegion: {\n prototype: VTTRegion;\n new(): VTTRegion;\n};\n\n/**\n * The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element\'s value fails to validate, if it\'s not valid.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState)\n */\ninterface ValidityState {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput) */\n readonly badInput: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError) */\n readonly customError: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch) */\n readonly patternMismatch: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeOverflow) */\n readonly rangeOverflow: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeUnderflow) */\n readonly rangeUnderflow: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/stepMismatch) */\n readonly stepMismatch: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooLong) */\n readonly tooLong: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooShort) */\n readonly tooShort: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch) */\n readonly typeMismatch: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid) */\n readonly valid: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing) */\n readonly valueMissing: boolean;\n}\n\ndeclare var ValidityState: {\n prototype: ValidityState;\n new(): ValidityState;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) */\ninterface VideoColorSpace {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) */\n readonly fullRange: boolean | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) */\n readonly matrix: VideoMatrixCoefficients | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) */\n readonly primaries: VideoColorPrimaries | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) */\n readonly transfer: VideoTransferCharacteristics | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) */\n toJSON(): VideoColorSpaceInit;\n}\n\ndeclare var VideoColorSpace: {\n prototype: VideoColorSpace;\n new(init?: VideoColorSpaceInit): VideoColorSpace;\n};\n\ninterface VideoDecoderEventMap {\n "dequeue": Event;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)\n */\ninterface VideoDecoder extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */\n readonly decodeQueueSize: number;\n ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */\n readonly state: CodecState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) */\n configure(config: VideoDecoderConfig): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) */\n decode(chunk: EncodedVideoChunk): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) */\n flush(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) */\n reset(): void;\n addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VideoDecoder: {\n prototype: VideoDecoder;\n new(init: VideoDecoderInit): VideoDecoder;\n isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;\n};\n\ninterface VideoEncoderEventMap {\n "dequeue": Event;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)\n */\ninterface VideoEncoder extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */\n readonly encodeQueueSize: number;\n ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */\n readonly state: CodecState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) */\n configure(config: VideoEncoderConfig): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */\n encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;\n flush(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */\n reset(): void;\n addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VideoEncoder: {\n prototype: VideoEncoder;\n new(init: VideoEncoderInit): VideoEncoder;\n isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame) */\ninterface VideoFrame {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) */\n readonly codedHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) */\n readonly codedRect: DOMRectReadOnly | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) */\n readonly codedWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) */\n readonly colorSpace: VideoColorSpace;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) */\n readonly displayHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) */\n readonly displayWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) */\n readonly duration: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) */\n readonly format: VideoPixelFormat | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) */\n readonly visibleRect: DOMRectReadOnly | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) */\n allocationSize(options?: VideoFrameCopyToOptions): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) */\n clone(): VideoFrame;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */\n close(): void;\n copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;\n}\n\ndeclare var VideoFrame: {\n prototype: VideoFrame;\n new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;\n new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;\n};\n\n/**\n * Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality)\n */\ninterface VideoPlaybackQuality {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/corruptedVideoFrames)\n */\n readonly corruptedVideoFrames: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/creationTime) */\n readonly creationTime: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/droppedVideoFrames) */\n readonly droppedVideoFrames: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/totalVideoFrames) */\n readonly totalVideoFrames: number;\n}\n\ndeclare var VideoPlaybackQuality: {\n prototype: VideoPlaybackQuality;\n new(): VideoPlaybackQuality;\n};\n\ninterface VisualViewportEventMap {\n "resize": Event;\n "scroll": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport) */\ninterface VisualViewport extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/height) */\n readonly height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetLeft) */\n readonly offsetLeft: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetTop) */\n readonly offsetTop: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/resize_event) */\n onresize: ((this: VisualViewport, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */\n onscroll: ((this: VisualViewport, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageLeft) */\n readonly pageLeft: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageTop) */\n readonly pageTop: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scale) */\n readonly scale: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/width) */\n readonly width: number;\n addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VisualViewport: {\n prototype: VisualViewport;\n new(): VisualViewport;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */\ninterface WEBGL_color_buffer_float {\n readonly RGBA32F_EXT: 0x8814;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc) */\ninterface WEBGL_compressed_texture_astc {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) */\n getSupportedProfiles(): string[];\n readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;\n readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;\n readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;\n readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;\n readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;\n readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;\n readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;\n readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;\n readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;\n readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;\n readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;\n readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;\n readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;\n readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc) */\ninterface WEBGL_compressed_texture_etc {\n readonly COMPRESSED_R11_EAC: 0x9270;\n readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;\n readonly COMPRESSED_RG11_EAC: 0x9272;\n readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;\n readonly COMPRESSED_RGB8_ETC2: 0x9274;\n readonly COMPRESSED_SRGB8_ETC2: 0x9275;\n readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;\n readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;\n readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;\n readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1) */\ninterface WEBGL_compressed_texture_etc1 {\n readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc) */\ninterface WEBGL_compressed_texture_pvrtc {\n readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00;\n readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01;\n readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02;\n readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03;\n}\n\n/**\n * The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc)\n */\ninterface WEBGL_compressed_texture_s3tc {\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb) */\ninterface WEBGL_compressed_texture_s3tc_srgb {\n readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;\n}\n\n/**\n * The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info)\n */\ninterface WEBGL_debug_renderer_info {\n readonly UNMASKED_VENDOR_WEBGL: 0x9245;\n readonly UNMASKED_RENDERER_WEBGL: 0x9246;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders) */\ninterface WEBGL_debug_shaders {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource) */\n getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\n/**\n * The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture)\n */\ninterface WEBGL_depth_texture {\n readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers) */\ninterface WEBGL_draw_buffers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */\n drawBuffersWEBGL(buffers: GLenum[]): void;\n readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;\n readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;\n readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;\n readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;\n readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;\n readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;\n readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;\n readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;\n readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;\n readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;\n readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;\n readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;\n readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;\n readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;\n readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;\n readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;\n readonly DRAW_BUFFER0_WEBGL: 0x8825;\n readonly DRAW_BUFFER1_WEBGL: 0x8826;\n readonly DRAW_BUFFER2_WEBGL: 0x8827;\n readonly DRAW_BUFFER3_WEBGL: 0x8828;\n readonly DRAW_BUFFER4_WEBGL: 0x8829;\n readonly DRAW_BUFFER5_WEBGL: 0x882A;\n readonly DRAW_BUFFER6_WEBGL: 0x882B;\n readonly DRAW_BUFFER7_WEBGL: 0x882C;\n readonly DRAW_BUFFER8_WEBGL: 0x882D;\n readonly DRAW_BUFFER9_WEBGL: 0x882E;\n readonly DRAW_BUFFER10_WEBGL: 0x882F;\n readonly DRAW_BUFFER11_WEBGL: 0x8830;\n readonly DRAW_BUFFER12_WEBGL: 0x8831;\n readonly DRAW_BUFFER13_WEBGL: 0x8832;\n readonly DRAW_BUFFER14_WEBGL: 0x8833;\n readonly DRAW_BUFFER15_WEBGL: 0x8834;\n readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;\n readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context) */\ninterface WEBGL_lose_context {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */\n loseContext(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */\n restoreContext(): void;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */\ninterface WEBGL_multi_draw {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock)\n */\ninterface WakeLock {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock/request) */\n request(type?: WakeLockType): Promise<WakeLockSentinel>;\n}\n\ndeclare var WakeLock: {\n prototype: WakeLock;\n new(): WakeLock;\n};\n\ninterface WakeLockSentinelEventMap {\n "release": Event;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel)\n */\ninterface WakeLockSentinel extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release_event) */\n onrelease: ((this: WakeLockSentinel, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/released) */\n readonly released: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/type) */\n readonly type: WakeLockType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release) */\n release(): Promise<void>;\n addEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WakeLockSentinel: {\n prototype: WakeLockSentinel;\n new(): WakeLockSentinel;\n};\n\n/**\n * A WaveShaperNode always has exactly one input and one output.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode)\n */\ninterface WaveShaperNode extends AudioNode {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/curve) */\n curve: Float32Array | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/oversample) */\n oversample: OverSampleType;\n}\n\ndeclare var WaveShaperNode: {\n prototype: WaveShaperNode;\n new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */\ninterface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {\n}\n\ndeclare var WebGL2RenderingContext: {\n prototype: WebGL2RenderingContext;\n new(): WebGL2RenderingContext;\n readonly READ_BUFFER: 0x0C02;\n readonly UNPACK_ROW_LENGTH: 0x0CF2;\n readonly UNPACK_SKIP_ROWS: 0x0CF3;\n readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n readonly PACK_ROW_LENGTH: 0x0D02;\n readonly PACK_SKIP_ROWS: 0x0D03;\n readonly PACK_SKIP_PIXELS: 0x0D04;\n readonly COLOR: 0x1800;\n readonly DEPTH: 0x1801;\n readonly STENCIL: 0x1802;\n readonly RED: 0x1903;\n readonly RGB8: 0x8051;\n readonly RGB10_A2: 0x8059;\n readonly TEXTURE_BINDING_3D: 0x806A;\n readonly UNPACK_SKIP_IMAGES: 0x806D;\n readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n readonly TEXTURE_3D: 0x806F;\n readonly TEXTURE_WRAP_R: 0x8072;\n readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n readonly MAX_ELEMENTS_INDICES: 0x80E9;\n readonly TEXTURE_MIN_LOD: 0x813A;\n readonly TEXTURE_MAX_LOD: 0x813B;\n readonly TEXTURE_BASE_LEVEL: 0x813C;\n readonly TEXTURE_MAX_LEVEL: 0x813D;\n readonly MIN: 0x8007;\n readonly MAX: 0x8008;\n readonly DEPTH_COMPONENT24: 0x81A6;\n readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n readonly TEXTURE_COMPARE_MODE: 0x884C;\n readonly TEXTURE_COMPARE_FUNC: 0x884D;\n readonly CURRENT_QUERY: 0x8865;\n readonly QUERY_RESULT: 0x8866;\n readonly QUERY_RESULT_AVAILABLE: 0x8867;\n readonly STREAM_READ: 0x88E1;\n readonly STREAM_COPY: 0x88E2;\n readonly STATIC_READ: 0x88E5;\n readonly STATIC_COPY: 0x88E6;\n readonly DYNAMIC_READ: 0x88E9;\n readonly DYNAMIC_COPY: 0x88EA;\n readonly MAX_DRAW_BUFFERS: 0x8824;\n readonly DRAW_BUFFER0: 0x8825;\n readonly DRAW_BUFFER1: 0x8826;\n readonly DRAW_BUFFER2: 0x8827;\n readonly DRAW_BUFFER3: 0x8828;\n readonly DRAW_BUFFER4: 0x8829;\n readonly DRAW_BUFFER5: 0x882A;\n readonly DRAW_BUFFER6: 0x882B;\n readonly DRAW_BUFFER7: 0x882C;\n readonly DRAW_BUFFER8: 0x882D;\n readonly DRAW_BUFFER9: 0x882E;\n readonly DRAW_BUFFER10: 0x882F;\n readonly DRAW_BUFFER11: 0x8830;\n readonly DRAW_BUFFER12: 0x8831;\n readonly DRAW_BUFFER13: 0x8832;\n readonly DRAW_BUFFER14: 0x8833;\n readonly DRAW_BUFFER15: 0x8834;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n readonly SAMPLER_3D: 0x8B5F;\n readonly SAMPLER_2D_SHADOW: 0x8B62;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n readonly PIXEL_PACK_BUFFER: 0x88EB;\n readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n readonly FLOAT_MAT2x3: 0x8B65;\n readonly FLOAT_MAT2x4: 0x8B66;\n readonly FLOAT_MAT3x2: 0x8B67;\n readonly FLOAT_MAT3x4: 0x8B68;\n readonly FLOAT_MAT4x2: 0x8B69;\n readonly FLOAT_MAT4x3: 0x8B6A;\n readonly SRGB: 0x8C40;\n readonly SRGB8: 0x8C41;\n readonly SRGB8_ALPHA8: 0x8C43;\n readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n readonly RGBA32F: 0x8814;\n readonly RGB32F: 0x8815;\n readonly RGBA16F: 0x881A;\n readonly RGB16F: 0x881B;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n readonly TEXTURE_2D_ARRAY: 0x8C1A;\n readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n readonly R11F_G11F_B10F: 0x8C3A;\n readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n readonly RGB9_E5: 0x8C3D;\n readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n readonly RASTERIZER_DISCARD: 0x8C89;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n readonly SEPARATE_ATTRIBS: 0x8C8D;\n readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n readonly RGBA32UI: 0x8D70;\n readonly RGB32UI: 0x8D71;\n readonly RGBA16UI: 0x8D76;\n readonly RGB16UI: 0x8D77;\n readonly RGBA8UI: 0x8D7C;\n readonly RGB8UI: 0x8D7D;\n readonly RGBA32I: 0x8D82;\n readonly RGB32I: 0x8D83;\n readonly RGBA16I: 0x8D88;\n readonly RGB16I: 0x8D89;\n readonly RGBA8I: 0x8D8E;\n readonly RGB8I: 0x8D8F;\n readonly RED_INTEGER: 0x8D94;\n readonly RGB_INTEGER: 0x8D98;\n readonly RGBA_INTEGER: 0x8D99;\n readonly SAMPLER_2D_ARRAY: 0x8DC1;\n readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n readonly UNSIGNED_INT_VEC2: 0x8DC6;\n readonly UNSIGNED_INT_VEC3: 0x8DC7;\n readonly UNSIGNED_INT_VEC4: 0x8DC8;\n readonly INT_SAMPLER_2D: 0x8DCA;\n readonly INT_SAMPLER_3D: 0x8DCB;\n readonly INT_SAMPLER_CUBE: 0x8DCC;\n readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n readonly DEPTH_COMPONENT32F: 0x8CAC;\n readonly DEPTH32F_STENCIL8: 0x8CAD;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n readonly FRAMEBUFFER_DEFAULT: 0x8218;\n readonly UNSIGNED_INT_24_8: 0x84FA;\n readonly DEPTH24_STENCIL8: 0x88F0;\n readonly UNSIGNED_NORMALIZED: 0x8C17;\n readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n readonly READ_FRAMEBUFFER: 0x8CA8;\n readonly DRAW_FRAMEBUFFER: 0x8CA9;\n readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n readonly COLOR_ATTACHMENT1: 0x8CE1;\n readonly COLOR_ATTACHMENT2: 0x8CE2;\n readonly COLOR_ATTACHMENT3: 0x8CE3;\n readonly COLOR_ATTACHMENT4: 0x8CE4;\n readonly COLOR_ATTACHMENT5: 0x8CE5;\n readonly COLOR_ATTACHMENT6: 0x8CE6;\n readonly COLOR_ATTACHMENT7: 0x8CE7;\n readonly COLOR_ATTACHMENT8: 0x8CE8;\n readonly COLOR_ATTACHMENT9: 0x8CE9;\n readonly COLOR_ATTACHMENT10: 0x8CEA;\n readonly COLOR_ATTACHMENT11: 0x8CEB;\n readonly COLOR_ATTACHMENT12: 0x8CEC;\n readonly COLOR_ATTACHMENT13: 0x8CED;\n readonly COLOR_ATTACHMENT14: 0x8CEE;\n readonly COLOR_ATTACHMENT15: 0x8CEF;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n readonly MAX_SAMPLES: 0x8D57;\n readonly HALF_FLOAT: 0x140B;\n readonly RG: 0x8227;\n readonly RG_INTEGER: 0x8228;\n readonly R8: 0x8229;\n readonly RG8: 0x822B;\n readonly R16F: 0x822D;\n readonly R32F: 0x822E;\n readonly RG16F: 0x822F;\n readonly RG32F: 0x8230;\n readonly R8I: 0x8231;\n readonly R8UI: 0x8232;\n readonly R16I: 0x8233;\n readonly R16UI: 0x8234;\n readonly R32I: 0x8235;\n readonly R32UI: 0x8236;\n readonly RG8I: 0x8237;\n readonly RG8UI: 0x8238;\n readonly RG16I: 0x8239;\n readonly RG16UI: 0x823A;\n readonly RG32I: 0x823B;\n readonly RG32UI: 0x823C;\n readonly VERTEX_ARRAY_BINDING: 0x85B5;\n readonly R8_SNORM: 0x8F94;\n readonly RG8_SNORM: 0x8F95;\n readonly RGB8_SNORM: 0x8F96;\n readonly RGBA8_SNORM: 0x8F97;\n readonly SIGNED_NORMALIZED: 0x8F9C;\n readonly COPY_READ_BUFFER: 0x8F36;\n readonly COPY_WRITE_BUFFER: 0x8F37;\n readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n readonly UNIFORM_BUFFER: 0x8A11;\n readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n readonly UNIFORM_BUFFER_START: 0x8A29;\n readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n readonly UNIFORM_TYPE: 0x8A37;\n readonly UNIFORM_SIZE: 0x8A38;\n readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n readonly UNIFORM_OFFSET: 0x8A3B;\n readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n readonly INVALID_INDEX: 0xFFFFFFFF;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n readonly OBJECT_TYPE: 0x9112;\n readonly SYNC_CONDITION: 0x9113;\n readonly SYNC_STATUS: 0x9114;\n readonly SYNC_FLAGS: 0x9115;\n readonly SYNC_FENCE: 0x9116;\n readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n readonly UNSIGNALED: 0x9118;\n readonly SIGNALED: 0x9119;\n readonly ALREADY_SIGNALED: 0x911A;\n readonly TIMEOUT_EXPIRED: 0x911B;\n readonly CONDITION_SATISFIED: 0x911C;\n readonly WAIT_FAILED: 0x911D;\n readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n readonly ANY_SAMPLES_PASSED: 0x8C2F;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n readonly SAMPLER_BINDING: 0x8919;\n readonly RGB10_A2UI: 0x906F;\n readonly INT_2_10_10_10_REV: 0x8D9F;\n readonly TRANSFORM_FEEDBACK: 0x8E22;\n readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n readonly MAX_ELEMENT_INDEX: 0x8D6B;\n readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n readonly TIMEOUT_IGNORED: -1;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGBA8: 0x8058;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGL2RenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */\n beginQuery(target: GLenum, query: WebGLQuery): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */\n beginTransformFeedback(primitiveMode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */\n bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */\n bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */\n bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */\n bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */\n bindVertexArray(array: WebGLVertexArrayObject | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */\n blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */\n clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */\n compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */\n copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */\n copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */\n createQuery(): WebGLQuery | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */\n createSampler(): WebGLSampler | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */\n createTransformFeedback(): WebGLTransformFeedback | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */\n createVertexArray(): WebGLVertexArrayObject | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */\n deleteQuery(query: WebGLQuery | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */\n deleteSampler(sampler: WebGLSampler | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */\n deleteSync(sync: WebGLSync | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */\n deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */\n deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */\n drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */\n drawBuffers(buffers: GLenum[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */\n drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */\n drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */\n endQuery(target: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */\n endTransformFeedback(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */\n fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */\n framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */\n getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */\n getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */\n getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */\n getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: number, length?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */\n getFragDataLocation(program: WebGLProgram, name: string): GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */\n getIndexedParameter(target: GLenum, index: GLuint): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */\n getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */\n getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */\n getQueryParameter(query: WebGLQuery, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */\n getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */\n getSyncParameter(sync: WebGLSync, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */\n getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */\n getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */\n getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */\n invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */\n invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */\n isQuery(query: WebGLQuery | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */\n isSampler(sampler: WebGLSampler | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */\n isSync(sync: WebGLSync | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */\n isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */\n isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */\n pauseTransformFeedback(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */\n readBuffer(src: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */\n renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */\n resumeTransformFeedback(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */\n samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */\n samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */\n texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */\n texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */\n transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */\n uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */\n vertexAttribDivisor(index: GLuint, divisor: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4iv(index: GLuint, values: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4uiv(index: GLuint, values: Uint32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */\n vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */\n waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;\n readonly READ_BUFFER: 0x0C02;\n readonly UNPACK_ROW_LENGTH: 0x0CF2;\n readonly UNPACK_SKIP_ROWS: 0x0CF3;\n readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n readonly PACK_ROW_LENGTH: 0x0D02;\n readonly PACK_SKIP_ROWS: 0x0D03;\n readonly PACK_SKIP_PIXELS: 0x0D04;\n readonly COLOR: 0x1800;\n readonly DEPTH: 0x1801;\n readonly STENCIL: 0x1802;\n readonly RED: 0x1903;\n readonly RGB8: 0x8051;\n readonly RGB10_A2: 0x8059;\n readonly TEXTURE_BINDING_3D: 0x806A;\n readonly UNPACK_SKIP_IMAGES: 0x806D;\n readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n readonly TEXTURE_3D: 0x806F;\n readonly TEXTURE_WRAP_R: 0x8072;\n readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n readonly MAX_ELEMENTS_INDICES: 0x80E9;\n readonly TEXTURE_MIN_LOD: 0x813A;\n readonly TEXTURE_MAX_LOD: 0x813B;\n readonly TEXTURE_BASE_LEVEL: 0x813C;\n readonly TEXTURE_MAX_LEVEL: 0x813D;\n readonly MIN: 0x8007;\n readonly MAX: 0x8008;\n readonly DEPTH_COMPONENT24: 0x81A6;\n readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n readonly TEXTURE_COMPARE_MODE: 0x884C;\n readonly TEXTURE_COMPARE_FUNC: 0x884D;\n readonly CURRENT_QUERY: 0x8865;\n readonly QUERY_RESULT: 0x8866;\n readonly QUERY_RESULT_AVAILABLE: 0x8867;\n readonly STREAM_READ: 0x88E1;\n readonly STREAM_COPY: 0x88E2;\n readonly STATIC_READ: 0x88E5;\n readonly STATIC_COPY: 0x88E6;\n readonly DYNAMIC_READ: 0x88E9;\n readonly DYNAMIC_COPY: 0x88EA;\n readonly MAX_DRAW_BUFFERS: 0x8824;\n readonly DRAW_BUFFER0: 0x8825;\n readonly DRAW_BUFFER1: 0x8826;\n readonly DRAW_BUFFER2: 0x8827;\n readonly DRAW_BUFFER3: 0x8828;\n readonly DRAW_BUFFER4: 0x8829;\n readonly DRAW_BUFFER5: 0x882A;\n readonly DRAW_BUFFER6: 0x882B;\n readonly DRAW_BUFFER7: 0x882C;\n readonly DRAW_BUFFER8: 0x882D;\n readonly DRAW_BUFFER9: 0x882E;\n readonly DRAW_BUFFER10: 0x882F;\n readonly DRAW_BUFFER11: 0x8830;\n readonly DRAW_BUFFER12: 0x8831;\n readonly DRAW_BUFFER13: 0x8832;\n readonly DRAW_BUFFER14: 0x8833;\n readonly DRAW_BUFFER15: 0x8834;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n readonly SAMPLER_3D: 0x8B5F;\n readonly SAMPLER_2D_SHADOW: 0x8B62;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n readonly PIXEL_PACK_BUFFER: 0x88EB;\n readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n readonly FLOAT_MAT2x3: 0x8B65;\n readonly FLOAT_MAT2x4: 0x8B66;\n readonly FLOAT_MAT3x2: 0x8B67;\n readonly FLOAT_MAT3x4: 0x8B68;\n readonly FLOAT_MAT4x2: 0x8B69;\n readonly FLOAT_MAT4x3: 0x8B6A;\n readonly SRGB: 0x8C40;\n readonly SRGB8: 0x8C41;\n readonly SRGB8_ALPHA8: 0x8C43;\n readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n readonly RGBA32F: 0x8814;\n readonly RGB32F: 0x8815;\n readonly RGBA16F: 0x881A;\n readonly RGB16F: 0x881B;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n readonly TEXTURE_2D_ARRAY: 0x8C1A;\n readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n readonly R11F_G11F_B10F: 0x8C3A;\n readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n readonly RGB9_E5: 0x8C3D;\n readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n readonly RASTERIZER_DISCARD: 0x8C89;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n readonly SEPARATE_ATTRIBS: 0x8C8D;\n readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n readonly RGBA32UI: 0x8D70;\n readonly RGB32UI: 0x8D71;\n readonly RGBA16UI: 0x8D76;\n readonly RGB16UI: 0x8D77;\n readonly RGBA8UI: 0x8D7C;\n readonly RGB8UI: 0x8D7D;\n readonly RGBA32I: 0x8D82;\n readonly RGB32I: 0x8D83;\n readonly RGBA16I: 0x8D88;\n readonly RGB16I: 0x8D89;\n readonly RGBA8I: 0x8D8E;\n readonly RGB8I: 0x8D8F;\n readonly RED_INTEGER: 0x8D94;\n readonly RGB_INTEGER: 0x8D98;\n readonly RGBA_INTEGER: 0x8D99;\n readonly SAMPLER_2D_ARRAY: 0x8DC1;\n readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n readonly UNSIGNED_INT_VEC2: 0x8DC6;\n readonly UNSIGNED_INT_VEC3: 0x8DC7;\n readonly UNSIGNED_INT_VEC4: 0x8DC8;\n readonly INT_SAMPLER_2D: 0x8DCA;\n readonly INT_SAMPLER_3D: 0x8DCB;\n readonly INT_SAMPLER_CUBE: 0x8DCC;\n readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n readonly DEPTH_COMPONENT32F: 0x8CAC;\n readonly DEPTH32F_STENCIL8: 0x8CAD;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n readonly FRAMEBUFFER_DEFAULT: 0x8218;\n readonly UNSIGNED_INT_24_8: 0x84FA;\n readonly DEPTH24_STENCIL8: 0x88F0;\n readonly UNSIGNED_NORMALIZED: 0x8C17;\n readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n readonly READ_FRAMEBUFFER: 0x8CA8;\n readonly DRAW_FRAMEBUFFER: 0x8CA9;\n readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n readonly COLOR_ATTACHMENT1: 0x8CE1;\n readonly COLOR_ATTACHMENT2: 0x8CE2;\n readonly COLOR_ATTACHMENT3: 0x8CE3;\n readonly COLOR_ATTACHMENT4: 0x8CE4;\n readonly COLOR_ATTACHMENT5: 0x8CE5;\n readonly COLOR_ATTACHMENT6: 0x8CE6;\n readonly COLOR_ATTACHMENT7: 0x8CE7;\n readonly COLOR_ATTACHMENT8: 0x8CE8;\n readonly COLOR_ATTACHMENT9: 0x8CE9;\n readonly COLOR_ATTACHMENT10: 0x8CEA;\n readonly COLOR_ATTACHMENT11: 0x8CEB;\n readonly COLOR_ATTACHMENT12: 0x8CEC;\n readonly COLOR_ATTACHMENT13: 0x8CED;\n readonly COLOR_ATTACHMENT14: 0x8CEE;\n readonly COLOR_ATTACHMENT15: 0x8CEF;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n readonly MAX_SAMPLES: 0x8D57;\n readonly HALF_FLOAT: 0x140B;\n readonly RG: 0x8227;\n readonly RG_INTEGER: 0x8228;\n readonly R8: 0x8229;\n readonly RG8: 0x822B;\n readonly R16F: 0x822D;\n readonly R32F: 0x822E;\n readonly RG16F: 0x822F;\n readonly RG32F: 0x8230;\n readonly R8I: 0x8231;\n readonly R8UI: 0x8232;\n readonly R16I: 0x8233;\n readonly R16UI: 0x8234;\n readonly R32I: 0x8235;\n readonly R32UI: 0x8236;\n readonly RG8I: 0x8237;\n readonly RG8UI: 0x8238;\n readonly RG16I: 0x8239;\n readonly RG16UI: 0x823A;\n readonly RG32I: 0x823B;\n readonly RG32UI: 0x823C;\n readonly VERTEX_ARRAY_BINDING: 0x85B5;\n readonly R8_SNORM: 0x8F94;\n readonly RG8_SNORM: 0x8F95;\n readonly RGB8_SNORM: 0x8F96;\n readonly RGBA8_SNORM: 0x8F97;\n readonly SIGNED_NORMALIZED: 0x8F9C;\n readonly COPY_READ_BUFFER: 0x8F36;\n readonly COPY_WRITE_BUFFER: 0x8F37;\n readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n readonly UNIFORM_BUFFER: 0x8A11;\n readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n readonly UNIFORM_BUFFER_START: 0x8A29;\n readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n readonly UNIFORM_TYPE: 0x8A37;\n readonly UNIFORM_SIZE: 0x8A38;\n readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n readonly UNIFORM_OFFSET: 0x8A3B;\n readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n readonly INVALID_INDEX: 0xFFFFFFFF;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n readonly OBJECT_TYPE: 0x9112;\n readonly SYNC_CONDITION: 0x9113;\n readonly SYNC_STATUS: 0x9114;\n readonly SYNC_FLAGS: 0x9115;\n readonly SYNC_FENCE: 0x9116;\n readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n readonly UNSIGNALED: 0x9118;\n readonly SIGNALED: 0x9119;\n readonly ALREADY_SIGNALED: 0x911A;\n readonly TIMEOUT_EXPIRED: 0x911B;\n readonly CONDITION_SATISFIED: 0x911C;\n readonly WAIT_FAILED: 0x911D;\n readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n readonly ANY_SAMPLES_PASSED: 0x8C2F;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n readonly SAMPLER_BINDING: 0x8919;\n readonly RGB10_A2UI: 0x906F;\n readonly INT_2_10_10_10_REV: 0x8D9F;\n readonly TRANSFORM_FEEDBACK: 0x8E22;\n readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n readonly MAX_ELEMENT_INDEX: 0x8D6B;\n readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n readonly TIMEOUT_IGNORED: -1;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n}\n\ninterface WebGL2RenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;\n bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n}\n\n/**\n * Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo)\n */\ninterface WebGLActiveInfo {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) */\n readonly size: GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) */\n readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n prototype: WebGLActiveInfo;\n new(): WebGLActiveInfo;\n};\n\n/**\n * Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer)\n */\ninterface WebGLBuffer {\n}\n\ndeclare var WebGLBuffer: {\n prototype: WebGLBuffer;\n new(): WebGLBuffer;\n};\n\n/**\n * The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)\n */\ninterface WebGLContextEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */\n readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n prototype: WebGLContextEvent;\n new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\n/**\n * Part of the WebGL API and represents a collection of buffers that serve as a rendering destination.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer)\n */\ninterface WebGLFramebuffer {\n}\n\ndeclare var WebGLFramebuffer: {\n prototype: WebGLFramebuffer;\n new(): WebGLFramebuffer;\n};\n\n/**\n * The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram)\n */\ninterface WebGLProgram {\n}\n\ndeclare var WebGLProgram: {\n prototype: WebGLProgram;\n new(): WebGLProgram;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery) */\ninterface WebGLQuery {\n}\n\ndeclare var WebGLQuery: {\n prototype: WebGLQuery;\n new(): WebGLQuery;\n};\n\n/**\n * Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)\n */\ninterface WebGLRenderbuffer {\n}\n\ndeclare var WebGLRenderbuffer: {\n prototype: WebGLRenderbuffer;\n new(): WebGLRenderbuffer;\n};\n\n/**\n * Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext)\n */\ninterface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {\n}\n\ndeclare var WebGLRenderingContext: {\n prototype: WebGLRenderingContext;\n new(): WebGLRenderingContext;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGBA8: 0x8058;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGLRenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */\n readonly canvas: HTMLCanvasElement | OffscreenCanvas;\n drawingBufferColorSpace: PredefinedColorSpace;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */\n readonly drawingBufferHeight: GLsizei;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */\n readonly drawingBufferWidth: GLsizei;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */\n activeTexture(texture: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */\n attachShader(program: WebGLProgram, shader: WebGLShader): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */\n bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */\n bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */\n bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */\n bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */\n bindTexture(target: GLenum, texture: WebGLTexture | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */\n blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */\n blendEquation(mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */\n blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */\n blendFunc(sfactor: GLenum, dfactor: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */\n blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */\n checkFramebufferStatus(target: GLenum): GLenum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */\n clear(mask: GLbitfield): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */\n clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */\n clearDepth(depth: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */\n clearStencil(s: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */\n colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */\n compileShader(shader: WebGLShader): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */\n copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */\n copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */\n createBuffer(): WebGLBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */\n createFramebuffer(): WebGLFramebuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */\n createProgram(): WebGLProgram | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */\n createRenderbuffer(): WebGLRenderbuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */\n createShader(type: GLenum): WebGLShader | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */\n createTexture(): WebGLTexture | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */\n cullFace(mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */\n deleteBuffer(buffer: WebGLBuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */\n deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */\n deleteProgram(program: WebGLProgram | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */\n deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */\n deleteShader(shader: WebGLShader | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */\n deleteTexture(texture: WebGLTexture | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */\n depthFunc(func: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */\n depthMask(flag: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */\n depthRange(zNear: GLclampf, zFar: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */\n detachShader(program: WebGLProgram, shader: WebGLShader): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */\n disable(cap: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */\n disableVertexAttribArray(index: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */\n drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */\n drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */\n enable(cap: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */\n enableVertexAttribArray(index: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */\n finish(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */\n flush(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */\n framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */\n framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */\n frontFace(mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */\n generateMipmap(target: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */\n getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */\n getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */\n getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */\n getAttribLocation(program: WebGLProgram, name: string): GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */\n getBufferParameter(target: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */\n getContextAttributes(): WebGLContextAttributes | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */\n getError(): GLenum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */\n getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;\n getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;\n getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;\n getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;\n getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;\n getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;\n getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;\n getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;\n getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;\n getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;\n getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;\n getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;\n getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;\n getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;\n getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;\n getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;\n getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;\n getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;\n getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;\n getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;\n getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;\n getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;\n getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;\n getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;\n getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;\n getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;\n getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;\n getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;\n getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;\n getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;\n getExtension(name: string): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */\n getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */\n getParameter(pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */\n getProgramInfoLog(program: WebGLProgram): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */\n getProgramParameter(program: WebGLProgram, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */\n getRenderbufferParameter(target: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */\n getShaderInfoLog(shader: WebGLShader): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */\n getShaderParameter(shader: WebGLShader, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */\n getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */\n getShaderSource(shader: WebGLShader): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */\n getSupportedExtensions(): string[] | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */\n getTexParameter(target: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */\n getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */\n getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */\n getVertexAttrib(index: GLuint, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */\n getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */\n hint(target: GLenum, mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */\n isBuffer(buffer: WebGLBuffer | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */\n isContextLost(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */\n isEnabled(cap: GLenum): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */\n isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */\n isProgram(program: WebGLProgram | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */\n isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */\n isShader(shader: WebGLShader | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */\n isTexture(texture: WebGLTexture | null): GLboolean;\n lineWidth(width: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */\n linkProgram(program: WebGLProgram): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */\n pixelStorei(pname: GLenum, param: GLint | GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */\n polygonOffset(factor: GLfloat, units: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */\n renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */\n sampleCoverage(value: GLclampf, invert: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */\n scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */\n shaderSource(shader: WebGLShader, source: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */\n stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */\n stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */\n stencilMask(mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */\n stencilMaskSeparate(face: GLenum, mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */\n stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */\n stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */\n texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */\n texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */\n useProgram(program: WebGLProgram | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */\n validateProgram(program: WebGLProgram): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib1f(index: GLuint, x: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib1fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib2fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib3fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib4fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */\n vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */\n viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGBA8: 0x8058;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n}\n\ninterface WebGLRenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */\n bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler) */\ninterface WebGLSampler {\n}\n\ndeclare var WebGLSampler: {\n prototype: WebGLSampler;\n new(): WebGLSampler;\n};\n\n/**\n * The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)\n */\ninterface WebGLShader {\n}\n\ndeclare var WebGLShader: {\n prototype: WebGLShader;\n new(): WebGLShader;\n};\n\n/**\n * Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)\n */\ninterface WebGLShaderPrecisionFormat {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) */\n readonly precision: GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) */\n readonly rangeMax: GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) */\n readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n prototype: WebGLShaderPrecisionFormat;\n new(): WebGLShaderPrecisionFormat;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync) */\ninterface WebGLSync {\n}\n\ndeclare var WebGLSync: {\n prototype: WebGLSync;\n new(): WebGLSync;\n};\n\n/**\n * Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture)\n */\ninterface WebGLTexture {\n}\n\ndeclare var WebGLTexture: {\n prototype: WebGLTexture;\n new(): WebGLTexture;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback) */\ninterface WebGLTransformFeedback {\n}\n\ndeclare var WebGLTransformFeedback: {\n prototype: WebGLTransformFeedback;\n new(): WebGLTransformFeedback;\n};\n\n/**\n * Part of the WebGL API and represents the location of a uniform variable in a shader program.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation)\n */\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n prototype: WebGLUniformLocation;\n new(): WebGLUniformLocation;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */\ninterface WebGLVertexArrayObject {\n}\n\ndeclare var WebGLVertexArrayObject: {\n prototype: WebGLVertexArrayObject;\n new(): WebGLVertexArrayObject;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObjectOES) */\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebSocketEventMap {\n "close": CloseEvent;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/**\n * Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)\n */\ninterface WebSocket extends EventTarget {\n /**\n * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:\n *\n * Can be set, to change how binary data is returned. The default is "blob".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)\n */\n binaryType: BinaryType;\n /**\n * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.\n *\n * If the WebSocket connection is closed, this attribute\'s value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)\n */\n readonly bufferedAmount: number;\n /**\n * Returns the extensions selected by the server, if any.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)\n */\n readonly extensions: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */\n onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */\n onerror: ((this: WebSocket, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */\n onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */\n onopen: ((this: WebSocket, ev: Event) => any) | null;\n /**\n * Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor\'s second argument to perform subprotocol negotiation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)\n */\n readonly protocol: string;\n /**\n * Returns the state of the WebSocket object\'s connection. It can have the values described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)\n */\n readonly readyState: number;\n /**\n * Returns the URL that was used to establish the WebSocket connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)\n */\n readonly url: string;\n /**\n * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)\n */\n close(code?: number, reason?: string): void;\n /**\n * Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)\n */\n send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSING: 2;\n readonly CLOSED: 3;\n addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WebSocket: {\n prototype: WebSocket;\n new(url: string | URL, protocols?: string | string[]): WebSocket;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSING: 2;\n readonly CLOSED: 3;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)\n */\ninterface WebTransport {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */\n readonly closed: Promise<WebTransportCloseInfo>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */\n readonly datagrams: WebTransportDatagramDuplexStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */\n readonly incomingBidirectionalStreams: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */\n readonly incomingUnidirectionalStreams: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */\n readonly ready: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */\n close(closeInfo?: WebTransportCloseInfo): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */\n createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */\n createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;\n}\n\ndeclare var WebTransport: {\n prototype: WebTransport;\n new(url: string | URL, options?: WebTransportOptions): WebTransport;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)\n */\ninterface WebTransportBidirectionalStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */\n readonly readable: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */\n readonly writable: WritableStream;\n}\n\ndeclare var WebTransportBidirectionalStream: {\n prototype: WebTransportBidirectionalStream;\n new(): WebTransportBidirectionalStream;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)\n */\ninterface WebTransportDatagramDuplexStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */\n incomingHighWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */\n incomingMaxAge: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */\n readonly maxDatagramSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */\n outgoingHighWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */\n outgoingMaxAge: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */\n readonly readable: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */\n readonly writable: WritableStream;\n}\n\ndeclare var WebTransportDatagramDuplexStream: {\n prototype: WebTransportDatagramDuplexStream;\n new(): WebTransportDatagramDuplexStream;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)\n */\ninterface WebTransportError extends DOMException {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */\n readonly source: WebTransportErrorSource;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */\n readonly streamErrorCode: number | null;\n}\n\ndeclare var WebTransportError: {\n prototype: WebTransportError;\n new(message?: string, options?: WebTransportErrorOptions): WebTransportError;\n};\n\n/**\n * Events that occur due to the user moving a mouse wheel or similar input device.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent)\n */\ninterface WheelEvent extends MouseEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaMode) */\n readonly deltaMode: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaX) */\n readonly deltaX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaY) */\n readonly deltaY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaZ) */\n readonly deltaZ: number;\n readonly DOM_DELTA_PIXEL: 0x00;\n readonly DOM_DELTA_LINE: 0x01;\n readonly DOM_DELTA_PAGE: 0x02;\n}\n\ndeclare var WheelEvent: {\n prototype: WheelEvent;\n new(type: string, eventInitDict?: WheelEventInit): WheelEvent;\n readonly DOM_DELTA_PIXEL: 0x00;\n readonly DOM_DELTA_LINE: 0x01;\n readonly DOM_DELTA_PAGE: 0x02;\n};\n\ninterface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {\n "DOMContentLoaded": Event;\n "devicemotion": DeviceMotionEvent;\n "deviceorientation": DeviceOrientationEvent;\n "deviceorientationabsolute": DeviceOrientationEvent;\n "gamepadconnected": GamepadEvent;\n "gamepaddisconnected": GamepadEvent;\n "orientationchange": Event;\n}\n\n/**\n * A window containing a DOM document; the document property points to the DOM document loaded in that window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window)\n */\ninterface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {\n /**\n * @deprecated This is a legacy alias of `navigator`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)\n */\n readonly clientInformation: Navigator;\n /**\n * Returns true if the window has been closed, false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)\n */\n readonly closed: boolean;\n /**\n * Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)\n */\n readonly customElements: CustomElementRegistry;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio) */\n readonly devicePixelRatio: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document) */\n readonly document: Document;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)\n */\n readonly event: Event | undefined;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)\n */\n readonly external: External;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement) */\n readonly frameElement: Element | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames) */\n readonly frames: WindowProxy;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history) */\n readonly history: History;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight) */\n readonly innerHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth) */\n readonly innerWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */\n get location(): Location;\n set location(href: string | Location);\n /**\n * Returns true if the location bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)\n */\n readonly locationbar: BarProp;\n /**\n * Returns true if the menu bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)\n */\n readonly menubar: BarProp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name) */\n name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) */\n readonly navigator: Navigator;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event)\n */\n ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)\n */\n ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event)\n */\n ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event)\n */\n onorientationchange: ((this: Window, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) */\n opener: any;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)\n */\n readonly orientation: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight) */\n readonly outerHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */\n readonly outerWidth: number;\n /**\n * @deprecated This is a legacy alias of `scrollX`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)\n */\n readonly pageXOffset: number;\n /**\n * @deprecated This is a legacy alias of `scrollY`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)\n */\n readonly pageYOffset: number;\n /**\n * Refers to either the parent WindowProxy, or itself.\n *\n * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)\n */\n readonly parent: WindowProxy;\n /**\n * Returns true if the personal bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)\n */\n readonly personalbar: BarProp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen) */\n readonly screen: Screen;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft) */\n readonly screenLeft: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop) */\n readonly screenTop: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX) */\n readonly screenX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY) */\n readonly screenY: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */\n readonly scrollX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */\n readonly scrollY: number;\n /**\n * Returns true if the scrollbars are visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)\n */\n readonly scrollbars: BarProp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self) */\n readonly self: Window & typeof globalThis;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis) */\n readonly speechSynthesis: SpeechSynthesis;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)\n */\n status: string;\n /**\n * Returns true if the status bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)\n */\n readonly statusbar: BarProp;\n /**\n * Returns true if the toolbar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)\n */\n readonly toolbar: BarProp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */\n readonly top: WindowProxy | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport) */\n readonly visualViewport: VisualViewport | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */\n readonly window: Window & typeof globalThis;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */\n alert(message?: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */\n blur(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */\n cancelIdleCallback(handle: number): void;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)\n */\n captureEvents(): void;\n /**\n * Closes the window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)\n */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm) */\n confirm(message?: string): boolean;\n /**\n * Moves the focus to the window\'s browsing context, if any.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)\n */\n focus(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */\n getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */\n getSelection(): Selection | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */\n matchMedia(query: string): MediaQueryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy) */\n moveBy(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */\n moveTo(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */\n open(url?: string | URL, target?: string, features?: string): WindowProxy | null;\n /**\n * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.\n *\n * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.\n *\n * If the origin of the target window doesn\'t match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".\n *\n * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage)\n */\n postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;\n postMessage(message: any, options?: WindowPostMessageOptions): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */\n print(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */\n prompt(message?: string, _default?: string): string | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)\n */\n releaseEvents(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */\n requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */\n resizeBy(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */\n resizeTo(width: number, height: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */\n scroll(options?: ScrollToOptions): void;\n scroll(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy) */\n scrollBy(options?: ScrollToOptions): void;\n scrollBy(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo) */\n scrollTo(options?: ScrollToOptions): void;\n scrollTo(x: number, y: number): void;\n /**\n * Cancels the document load.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop)\n */\n stop(): void;\n addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n [index: number]: Window;\n}\n\ndeclare var Window: {\n prototype: Window;\n new(): Window;\n};\n\ninterface WindowEventHandlersEventMap {\n "afterprint": Event;\n "beforeprint": Event;\n "beforeunload": BeforeUnloadEvent;\n "gamepadconnected": GamepadEvent;\n "gamepaddisconnected": GamepadEvent;\n "hashchange": HashChangeEvent;\n "languagechange": Event;\n "message": MessageEvent;\n "messageerror": MessageEvent;\n "offline": Event;\n "online": Event;\n "pagehide": PageTransitionEvent;\n "pageshow": PageTransitionEvent;\n "popstate": PopStateEvent;\n "rejectionhandled": PromiseRejectionEvent;\n "storage": StorageEvent;\n "unhandledrejection": PromiseRejectionEvent;\n "unload": Event;\n}\n\ninterface WindowEventHandlers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */\n onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */\n onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */\n onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */\n ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */\n ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */\n onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */\n onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */\n onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */\n onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */\n onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */\n ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */\n onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */\n onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */\n onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */\n onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */\n onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */\n onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)\n */\n onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;\n addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface WindowLocalStorage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */\n readonly localStorage: Storage;\n}\n\ninterface WindowOrWorkerGlobalScope {\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)\n */\n readonly caches: CacheStorage;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */\n readonly crossOriginIsolated: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */\n readonly crypto: Crypto;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */\n readonly indexedDB: IDBFactory;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */\n readonly isSecureContext: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */\n readonly origin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */\n readonly performance: Performance;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */\n atob(data: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */\n btoa(data: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */\n clearInterval(id: number | undefined): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */\n clearTimeout(id: number | undefined): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */\n createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */\n fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */\n queueMicrotask(callback: VoidFunction): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */\n reportError(e: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */\n setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */\n setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */\n structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;\n}\n\ninterface WindowSessionStorage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */\n readonly sessionStorage: Storage;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)\n */\ninterface Worker extends EventTarget, AbstractWorker {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */\n onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */\n onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;\n /**\n * Clones message and transmits it to worker\'s global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /**\n * Aborts worker\'s associated global environment.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate)\n */\n terminate(): void;\n addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Worker: {\n prototype: Worker;\n new(scriptURL: string | URL, options?: WorkerOptions): Worker;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet)\n */\ninterface Worklet {\n /**\n * Loads and executes the module script given by moduleURL into all of worklet\'s global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes.\n *\n * The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".\n *\n * Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet/addModule)\n */\n addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;\n}\n\ndeclare var Worklet: {\n prototype: Worklet;\n new(): Worklet;\n};\n\n/**\n * This Streams API interface provides\xa0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)\n */\ninterface WritableStream<W = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */\n readonly locked: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */\n abort(reason?: any): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */\n close(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */\n getWriter(): WritableStreamDefaultWriter<W>;\n}\n\ndeclare var WritableStream: {\n prototype: WritableStream;\n new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;\n};\n\n/**\n * This Streams API interface represents a controller allowing control of a\xa0WritableStream\'s state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)\n */\ninterface WritableStreamDefaultController {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */\n readonly signal: AbortSignal;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */\n error(e?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n prototype: WritableStreamDefaultController;\n new(): WritableStreamDefaultController;\n};\n\n/**\n * This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)\n */\ninterface WritableStreamDefaultWriter<W = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */\n readonly closed: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */\n readonly ready: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */\n abort(reason?: any): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */\n close(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */\n releaseLock(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */\n write(chunk?: W): Promise<void>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n prototype: WritableStreamDefaultWriter;\n new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;\n};\n\n/**\n * An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLDocument)\n */\ninterface XMLDocument extends Document {\n addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLDocument: {\n prototype: XMLDocument;\n new(): XMLDocument;\n};\n\ninterface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {\n "readystatechange": Event;\n}\n\n/**\n * Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest)\n */\ninterface XMLHttpRequest extends XMLHttpRequestEventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */\n onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n /**\n * Returns client\'s state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)\n */\n readonly readyState: number;\n /**\n * Returns the response body.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)\n */\n readonly response: any;\n /**\n * Returns response as text.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)\n */\n readonly responseText: string;\n /**\n * Returns the response type.\n *\n * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".\n *\n * When set: setting to "document" is ignored if current global object is not a Window object.\n *\n * When set: throws an "InvalidStateError" DOMException if state is loading or done.\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)\n */\n responseType: XMLHttpRequestResponseType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) */\n readonly responseURL: string;\n /**\n * Returns the response as document.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseXML)\n */\n readonly responseXML: Document | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) */\n readonly status: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) */\n readonly statusText: string;\n /**\n * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this\'s synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)\n */\n timeout: number;\n /**\n * Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)\n */\n readonly upload: XMLHttpRequestUpload;\n /**\n * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.\n *\n * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)\n */\n withCredentials: boolean;\n /**\n * Cancels any network activity.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)\n */\n abort(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) */\n getAllResponseHeaders(): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) */\n getResponseHeader(name: string): string | null;\n /**\n * Sets the request method, request URL, and synchronous flag.\n *\n * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.\n *\n * Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.\n *\n * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)\n */\n open(method: string, url: string | URL): void;\n open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;\n /**\n * Acts as if the `Content-Type` header value for a response is mime. (It does not change the header.)\n *\n * Throws an "InvalidStateError" DOMException if state is loading or done.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)\n */\n overrideMimeType(mime: string): void;\n /**\n * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)\n */\n send(body?: Document | XMLHttpRequestBodyInit | null): void;\n /**\n * Combines a header in author request headers.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n *\n * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader)\n */\n setRequestHeader(name: string, value: string): void;\n readonly UNSENT: 0;\n readonly OPENED: 1;\n readonly HEADERS_RECEIVED: 2;\n readonly LOADING: 3;\n readonly DONE: 4;\n addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequest: {\n prototype: XMLHttpRequest;\n new(): XMLHttpRequest;\n readonly UNSENT: 0;\n readonly OPENED: 1;\n readonly HEADERS_RECEIVED: 2;\n readonly LOADING: 3;\n readonly DONE: 4;\n};\n\ninterface XMLHttpRequestEventTargetEventMap {\n "abort": ProgressEvent<XMLHttpRequestEventTarget>;\n "error": ProgressEvent<XMLHttpRequestEventTarget>;\n "load": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadend": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;\n "progress": ProgressEvent<XMLHttpRequestEventTarget>;\n "timeout": ProgressEvent<XMLHttpRequestEventTarget>;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget) */\ninterface XMLHttpRequestEventTarget extends EventTarget {\n onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestEventTarget: {\n prototype: XMLHttpRequestEventTarget;\n new(): XMLHttpRequestEventTarget;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload) */\ninterface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestUpload: {\n prototype: XMLHttpRequestUpload;\n new(): XMLHttpRequestUpload;\n};\n\n/**\n * Provides the serializeToString() method to construct an XML string representing a DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer)\n */\ninterface XMLSerializer {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer/serializeToString) */\n serializeToString(root: Node): string;\n}\n\ndeclare var XMLSerializer: {\n prototype: XMLSerializer;\n new(): XMLSerializer;\n};\n\n/**\n * The\xa0XPathEvaluator interface allows to compile and evaluate XPath expressions.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathEvaluator)\n */\ninterface XPathEvaluator extends XPathEvaluatorBase {\n}\n\ndeclare var XPathEvaluator: {\n prototype: XPathEvaluator;\n new(): XPathEvaluator;\n};\n\ninterface XPathEvaluatorBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createExpression) */\n createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNSResolver) */\n createNSResolver(nodeResolver: Node): Node;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/evaluate) */\n evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;\n}\n\n/**\n * This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression)\n */\ninterface XPathExpression {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression/evaluate) */\n evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;\n}\n\ndeclare var XPathExpression: {\n prototype: XPathExpression;\n new(): XPathExpression;\n};\n\n/**\n * The results generated by evaluating an XPath expression within the context of a given node.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult)\n */\ninterface XPathResult {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/booleanValue) */\n readonly booleanValue: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/invalidIteratorState) */\n readonly invalidIteratorState: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/numberValue) */\n readonly numberValue: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/resultType) */\n readonly resultType: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/singleNodeValue) */\n readonly singleNodeValue: Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotLength) */\n readonly snapshotLength: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/stringValue) */\n readonly stringValue: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/iterateNext) */\n iterateNext(): Node | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotItem) */\n snapshotItem(index: number): Node | null;\n readonly ANY_TYPE: 0;\n readonly NUMBER_TYPE: 1;\n readonly STRING_TYPE: 2;\n readonly BOOLEAN_TYPE: 3;\n readonly UNORDERED_NODE_ITERATOR_TYPE: 4;\n readonly ORDERED_NODE_ITERATOR_TYPE: 5;\n readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;\n readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;\n readonly ANY_UNORDERED_NODE_TYPE: 8;\n readonly FIRST_ORDERED_NODE_TYPE: 9;\n}\n\ndeclare var XPathResult: {\n prototype: XPathResult;\n new(): XPathResult;\n readonly ANY_TYPE: 0;\n readonly NUMBER_TYPE: 1;\n readonly STRING_TYPE: 2;\n readonly BOOLEAN_TYPE: 3;\n readonly UNORDERED_NODE_ITERATOR_TYPE: 4;\n readonly ORDERED_NODE_ITERATOR_TYPE: 5;\n readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;\n readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;\n readonly ANY_UNORDERED_NODE_TYPE: 8;\n readonly FIRST_ORDERED_NODE_TYPE: 9;\n};\n\n/**\n * An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor)\n */\ninterface XSLTProcessor {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */\n clearParameters(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */\n getParameter(namespaceURI: string | null, localName: string): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */\n importStylesheet(style: Node): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */\n removeParameter(namespaceURI: string | null, localName: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */\n reset(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */\n setParameter(namespaceURI: string | null, localName: string, value: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */\n transformToDocument(source: Node): Document;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */\n transformToFragment(source: Node, output: Document): DocumentFragment;\n}\n\ndeclare var XSLTProcessor: {\n prototype: XSLTProcessor;\n new(): XSLTProcessor;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */\ninterface Console {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */\n assert(condition?: boolean, ...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */\n clear(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */\n count(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */\n countReset(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */\n debug(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */\n dir(item?: any, options?: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */\n dirxml(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */\n error(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */\n group(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */\n groupCollapsed(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */\n groupEnd(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */\n info(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */\n log(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */\n table(tabularData?: any, properties?: string[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */\n time(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */\n timeEnd(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */\n timeLog(label?: string, ...data: any[]): void;\n timeStamp(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */\n trace(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */\n warn(...data: any[]): void;\n}\n\ndeclare var console: Console;\n\n/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */\ndeclare namespace CSS {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/highlights_static) */\n var highlights: HighlightRegistry;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function Hz(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function Q(value: number): CSSUnitValue;\n function cap(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function ch(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function cm(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function cqb(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function cqh(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function cqi(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function cqmax(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function cqmin(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function cqw(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function deg(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dpcm(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dpi(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dppx(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dvb(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dvh(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dvi(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dvmax(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dvmin(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function dvw(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function em(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/escape_static) */\n function escape(ident: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function ex(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function fr(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function grad(value: number): CSSUnitValue;\n function ic(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function kHz(value: number): CSSUnitValue;\n function lh(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function lvb(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function lvh(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function lvi(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function lvmax(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function lvmin(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function lvw(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function mm(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function ms(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function number(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function pc(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function percent(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function pt(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function px(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function rad(value: number): CSSUnitValue;\n function rcap(value: number): CSSUnitValue;\n function rch(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty_static) */\n function registerProperty(definition: PropertyDefinition): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function rem(value: number): CSSUnitValue;\n function rex(value: number): CSSUnitValue;\n function ric(value: number): CSSUnitValue;\n function rlh(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function s(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports_static) */\n function supports(property: string, value: string): boolean;\n function supports(conditionText: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function svb(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function svh(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function svi(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function svmax(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function svmin(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function svw(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function turn(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function vb(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function vh(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function vi(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function vmax(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function vmin(value: number): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */\n function vw(value: number): CSSUnitValue;\n}\n\ndeclare namespace WebAssembly {\n interface CompileError extends Error {\n }\n\n var CompileError: {\n prototype: CompileError;\n new(message?: string): CompileError;\n (message?: string): CompileError;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */\n interface Global<T extends ValueType = ValueType> {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */\n value: ValueTypeMap[T];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */\n valueOf(): ValueTypeMap[T];\n }\n\n var Global: {\n prototype: Global;\n new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */\n interface Instance {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */\n readonly exports: Exports;\n }\n\n var Instance: {\n prototype: Instance;\n new(module: Module, importObject?: Imports): Instance;\n };\n\n interface LinkError extends Error {\n }\n\n var LinkError: {\n prototype: LinkError;\n new(message?: string): LinkError;\n (message?: string): LinkError;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */\n interface Memory {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */\n readonly buffer: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */\n grow(delta: number): number;\n }\n\n var Memory: {\n prototype: Memory;\n new(descriptor: MemoryDescriptor): Memory;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */\n interface Module {\n }\n\n var Module: {\n prototype: Module;\n new(bytes: BufferSource): Module;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */\n customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */\n exports(moduleObject: Module): ModuleExportDescriptor[];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */\n imports(moduleObject: Module): ModuleImportDescriptor[];\n };\n\n interface RuntimeError extends Error {\n }\n\n var RuntimeError: {\n prototype: RuntimeError;\n new(message?: string): RuntimeError;\n (message?: string): RuntimeError;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */\n interface Table {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */\n get(index: number): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */\n grow(delta: number, value?: any): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */\n set(index: number, value?: any): void;\n }\n\n var Table: {\n prototype: Table;\n new(descriptor: TableDescriptor, value?: any): Table;\n };\n\n interface GlobalDescriptor<T extends ValueType = ValueType> {\n mutable?: boolean;\n value: T;\n }\n\n interface MemoryDescriptor {\n initial: number;\n maximum?: number;\n shared?: boolean;\n }\n\n interface ModuleExportDescriptor {\n kind: ImportExportKind;\n name: string;\n }\n\n interface ModuleImportDescriptor {\n kind: ImportExportKind;\n module: string;\n name: string;\n }\n\n interface TableDescriptor {\n element: TableKind;\n initial: number;\n maximum?: number;\n }\n\n interface ValueTypeMap {\n anyfunc: Function;\n externref: any;\n f32: number;\n f64: number;\n i32: number;\n i64: bigint;\n v128: never;\n }\n\n interface WebAssemblyInstantiatedSource {\n instance: Instance;\n module: Module;\n }\n\n type ImportExportKind = "function" | "global" | "memory" | "table";\n type TableKind = "anyfunc" | "externref";\n type ExportValue = Function | Global | Memory | Table;\n type Exports = Record<string, ExportValue>;\n type ImportValue = ExportValue | number;\n type Imports = Record<string, ModuleImports>;\n type ModuleImports = Record<string, ImportValue>;\n type ValueType = keyof ValueTypeMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */\n function compile(bytes: BufferSource): Promise<Module>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */\n function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */\n function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */\n function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */\n function validate(bytes: BufferSource): boolean;\n}\n\ninterface BlobCallback {\n (blob: Blob | null): void;\n}\n\ninterface CustomElementConstructor {\n new (...params: any[]): HTMLElement;\n}\n\ninterface DecodeErrorCallback {\n (error: DOMException): void;\n}\n\ninterface DecodeSuccessCallback {\n (decodedData: AudioBuffer): void;\n}\n\ninterface EncodedVideoChunkOutputCallback {\n (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;\n}\n\ninterface ErrorCallback {\n (err: DOMException): void;\n}\n\ninterface FileCallback {\n (file: File): void;\n}\n\ninterface FileSystemEntriesCallback {\n (entries: FileSystemEntry[]): void;\n}\n\ninterface FileSystemEntryCallback {\n (entry: FileSystemEntry): void;\n}\n\ninterface FrameRequestCallback {\n (time: DOMHighResTimeStamp): void;\n}\n\ninterface FunctionStringCallback {\n (data: string): void;\n}\n\ninterface IdleRequestCallback {\n (deadline: IdleDeadline): void;\n}\n\ninterface IntersectionObserverCallback {\n (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;\n}\n\ninterface LockGrantedCallback {\n (lock: Lock | null): any;\n}\n\ninterface MediaSessionActionHandler {\n (details: MediaSessionActionDetails): void;\n}\n\ninterface MutationCallback {\n (mutations: MutationRecord[], observer: MutationObserver): void;\n}\n\ninterface NotificationPermissionCallback {\n (permission: NotificationPermission): void;\n}\n\ninterface OnBeforeUnloadEventHandlerNonNull {\n (event: Event): string | null;\n}\n\ninterface OnErrorEventHandlerNonNull {\n (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;\n}\n\ninterface PerformanceObserverCallback {\n (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;\n}\n\ninterface PositionCallback {\n (position: GeolocationPosition): void;\n}\n\ninterface PositionErrorCallback {\n (positionError: GeolocationPositionError): void;\n}\n\ninterface QueuingStrategySize<T = any> {\n (chunk: T): number;\n}\n\ninterface RTCPeerConnectionErrorCallback {\n (error: DOMException): void;\n}\n\ninterface RTCSessionDescriptionCallback {\n (description: RTCSessionDescriptionInit): void;\n}\n\ninterface RemotePlaybackAvailabilityCallback {\n (available: boolean): void;\n}\n\ninterface ReportingObserverCallback {\n (reports: Report[], observer: ReportingObserver): void;\n}\n\ninterface ResizeObserverCallback {\n (entries: ResizeObserverEntry[], observer: ResizeObserver): void;\n}\n\ninterface TransformerFlushCallback<O> {\n (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface TransformerStartCallback<O> {\n (controller: TransformStreamDefaultController<O>): any;\n}\n\ninterface TransformerTransformCallback<I, O> {\n (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkAbortCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkCloseCallback {\n (): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkStartCallback {\n (controller: WritableStreamDefaultController): any;\n}\n\ninterface UnderlyingSinkWriteCallback<W> {\n (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceCancelCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourcePullCallback<R> {\n (controller: ReadableStreamController<R>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceStartCallback<R> {\n (controller: ReadableStreamController<R>): any;\n}\n\ninterface VideoFrameOutputCallback {\n (output: VideoFrame): void;\n}\n\ninterface VideoFrameRequestCallback {\n (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;\n}\n\ninterface VoidFunction {\n (): void;\n}\n\ninterface WebCodecsErrorCallback {\n (error: DOMException): void;\n}\n\ninterface HTMLElementTagNameMap {\n "a": HTMLAnchorElement;\n "abbr": HTMLElement;\n "address": HTMLElement;\n "area": HTMLAreaElement;\n "article": HTMLElement;\n "aside": HTMLElement;\n "audio": HTMLAudioElement;\n "b": HTMLElement;\n "base": HTMLBaseElement;\n "bdi": HTMLElement;\n "bdo": HTMLElement;\n "blockquote": HTMLQuoteElement;\n "body": HTMLBodyElement;\n "br": HTMLBRElement;\n "button": HTMLButtonElement;\n "canvas": HTMLCanvasElement;\n "caption": HTMLTableCaptionElement;\n "cite": HTMLElement;\n "code": HTMLElement;\n "col": HTMLTableColElement;\n "colgroup": HTMLTableColElement;\n "data": HTMLDataElement;\n "datalist": HTMLDataListElement;\n "dd": HTMLElement;\n "del": HTMLModElement;\n "details": HTMLDetailsElement;\n "dfn": HTMLElement;\n "dialog": HTMLDialogElement;\n "div": HTMLDivElement;\n "dl": HTMLDListElement;\n "dt": HTMLElement;\n "em": HTMLElement;\n "embed": HTMLEmbedElement;\n "fieldset": HTMLFieldSetElement;\n "figcaption": HTMLElement;\n "figure": HTMLElement;\n "footer": HTMLElement;\n "form": HTMLFormElement;\n "h1": HTMLHeadingElement;\n "h2": HTMLHeadingElement;\n "h3": HTMLHeadingElement;\n "h4": HTMLHeadingElement;\n "h5": HTMLHeadingElement;\n "h6": HTMLHeadingElement;\n "head": HTMLHeadElement;\n "header": HTMLElement;\n "hgroup": HTMLElement;\n "hr": HTMLHRElement;\n "html": HTMLHtmlElement;\n "i": HTMLElement;\n "iframe": HTMLIFrameElement;\n "img": HTMLImageElement;\n "input": HTMLInputElement;\n "ins": HTMLModElement;\n "kbd": HTMLElement;\n "label": HTMLLabelElement;\n "legend": HTMLLegendElement;\n "li": HTMLLIElement;\n "link": HTMLLinkElement;\n "main": HTMLElement;\n "map": HTMLMapElement;\n "mark": HTMLElement;\n "menu": HTMLMenuElement;\n "meta": HTMLMetaElement;\n "meter": HTMLMeterElement;\n "nav": HTMLElement;\n "noscript": HTMLElement;\n "object": HTMLObjectElement;\n "ol": HTMLOListElement;\n "optgroup": HTMLOptGroupElement;\n "option": HTMLOptionElement;\n "output": HTMLOutputElement;\n "p": HTMLParagraphElement;\n "picture": HTMLPictureElement;\n "pre": HTMLPreElement;\n "progress": HTMLProgressElement;\n "q": HTMLQuoteElement;\n "rp": HTMLElement;\n "rt": HTMLElement;\n "ruby": HTMLElement;\n "s": HTMLElement;\n "samp": HTMLElement;\n "script": HTMLScriptElement;\n "search": HTMLElement;\n "section": HTMLElement;\n "select": HTMLSelectElement;\n "slot": HTMLSlotElement;\n "small": HTMLElement;\n "source": HTMLSourceElement;\n "span": HTMLSpanElement;\n "strong": HTMLElement;\n "style": HTMLStyleElement;\n "sub": HTMLElement;\n "summary": HTMLElement;\n "sup": HTMLElement;\n "table": HTMLTableElement;\n "tbody": HTMLTableSectionElement;\n "td": HTMLTableCellElement;\n "template": HTMLTemplateElement;\n "textarea": HTMLTextAreaElement;\n "tfoot": HTMLTableSectionElement;\n "th": HTMLTableCellElement;\n "thead": HTMLTableSectionElement;\n "time": HTMLTimeElement;\n "title": HTMLTitleElement;\n "tr": HTMLTableRowElement;\n "track": HTMLTrackElement;\n "u": HTMLElement;\n "ul": HTMLUListElement;\n "var": HTMLElement;\n "video": HTMLVideoElement;\n "wbr": HTMLElement;\n}\n\ninterface HTMLElementDeprecatedTagNameMap {\n "acronym": HTMLElement;\n "applet": HTMLUnknownElement;\n "basefont": HTMLElement;\n "bgsound": HTMLUnknownElement;\n "big": HTMLElement;\n "blink": HTMLUnknownElement;\n "center": HTMLElement;\n "dir": HTMLDirectoryElement;\n "font": HTMLFontElement;\n "frame": HTMLFrameElement;\n "frameset": HTMLFrameSetElement;\n "isindex": HTMLUnknownElement;\n "keygen": HTMLUnknownElement;\n "listing": HTMLPreElement;\n "marquee": HTMLMarqueeElement;\n "menuitem": HTMLElement;\n "multicol": HTMLUnknownElement;\n "nextid": HTMLUnknownElement;\n "nobr": HTMLElement;\n "noembed": HTMLElement;\n "noframes": HTMLElement;\n "param": HTMLParamElement;\n "plaintext": HTMLElement;\n "rb": HTMLElement;\n "rtc": HTMLElement;\n "spacer": HTMLUnknownElement;\n "strike": HTMLElement;\n "tt": HTMLElement;\n "xmp": HTMLPreElement;\n}\n\ninterface SVGElementTagNameMap {\n "a": SVGAElement;\n "animate": SVGAnimateElement;\n "animateMotion": SVGAnimateMotionElement;\n "animateTransform": SVGAnimateTransformElement;\n "circle": SVGCircleElement;\n "clipPath": SVGClipPathElement;\n "defs": SVGDefsElement;\n "desc": SVGDescElement;\n "ellipse": SVGEllipseElement;\n "feBlend": SVGFEBlendElement;\n "feColorMatrix": SVGFEColorMatrixElement;\n "feComponentTransfer": SVGFEComponentTransferElement;\n "feComposite": SVGFECompositeElement;\n "feConvolveMatrix": SVGFEConvolveMatrixElement;\n "feDiffuseLighting": SVGFEDiffuseLightingElement;\n "feDisplacementMap": SVGFEDisplacementMapElement;\n "feDistantLight": SVGFEDistantLightElement;\n "feDropShadow": SVGFEDropShadowElement;\n "feFlood": SVGFEFloodElement;\n "feFuncA": SVGFEFuncAElement;\n "feFuncB": SVGFEFuncBElement;\n "feFuncG": SVGFEFuncGElement;\n "feFuncR": SVGFEFuncRElement;\n "feGaussianBlur": SVGFEGaussianBlurElement;\n "feImage": SVGFEImageElement;\n "feMerge": SVGFEMergeElement;\n "feMergeNode": SVGFEMergeNodeElement;\n "feMorphology": SVGFEMorphologyElement;\n "feOffset": SVGFEOffsetElement;\n "fePointLight": SVGFEPointLightElement;\n "feSpecularLighting": SVGFESpecularLightingElement;\n "feSpotLight": SVGFESpotLightElement;\n "feTile": SVGFETileElement;\n "feTurbulence": SVGFETurbulenceElement;\n "filter": SVGFilterElement;\n "foreignObject": SVGForeignObjectElement;\n "g": SVGGElement;\n "image": SVGImageElement;\n "line": SVGLineElement;\n "linearGradient": SVGLinearGradientElement;\n "marker": SVGMarkerElement;\n "mask": SVGMaskElement;\n "metadata": SVGMetadataElement;\n "mpath": SVGMPathElement;\n "path": SVGPathElement;\n "pattern": SVGPatternElement;\n "polygon": SVGPolygonElement;\n "polyline": SVGPolylineElement;\n "radialGradient": SVGRadialGradientElement;\n "rect": SVGRectElement;\n "script": SVGScriptElement;\n "set": SVGSetElement;\n "stop": SVGStopElement;\n "style": SVGStyleElement;\n "svg": SVGSVGElement;\n "switch": SVGSwitchElement;\n "symbol": SVGSymbolElement;\n "text": SVGTextElement;\n "textPath": SVGTextPathElement;\n "title": SVGTitleElement;\n "tspan": SVGTSpanElement;\n "use": SVGUseElement;\n "view": SVGViewElement;\n}\n\ninterface MathMLElementTagNameMap {\n "annotation": MathMLElement;\n "annotation-xml": MathMLElement;\n "maction": MathMLElement;\n "math": MathMLElement;\n "merror": MathMLElement;\n "mfrac": MathMLElement;\n "mi": MathMLElement;\n "mmultiscripts": MathMLElement;\n "mn": MathMLElement;\n "mo": MathMLElement;\n "mover": MathMLElement;\n "mpadded": MathMLElement;\n "mphantom": MathMLElement;\n "mprescripts": MathMLElement;\n "mroot": MathMLElement;\n "mrow": MathMLElement;\n "ms": MathMLElement;\n "mspace": MathMLElement;\n "msqrt": MathMLElement;\n "mstyle": MathMLElement;\n "msub": MathMLElement;\n "msubsup": MathMLElement;\n "msup": MathMLElement;\n "mtable": MathMLElement;\n "mtd": MathMLElement;\n "mtext": MathMLElement;\n "mtr": MathMLElement;\n "munder": MathMLElement;\n "munderover": MathMLElement;\n "semantics": MathMLElement;\n}\n\n/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */\ntype ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;\n\ndeclare var Audio: {\n new(src?: string): HTMLAudioElement;\n};\ndeclare var Image: {\n new(width?: number, height?: number): HTMLImageElement;\n};\ndeclare var Option: {\n new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;\n};\n/**\n * @deprecated This is a legacy alias of `navigator`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)\n */\ndeclare var clientInformation: Navigator;\n/**\n * Returns true if the window has been closed, false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)\n */\ndeclare var closed: boolean;\n/**\n * Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)\n */\ndeclare var customElements: CustomElementRegistry;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio) */\ndeclare var devicePixelRatio: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document) */\ndeclare var document: Document;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)\n */\ndeclare var event: Event | undefined;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)\n */\ndeclare var external: External;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement) */\ndeclare var frameElement: Element | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames) */\ndeclare var frames: WindowProxy;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history) */\ndeclare var history: History;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight) */\ndeclare var innerHeight: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth) */\ndeclare var innerWidth: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length) */\ndeclare var length: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */\ndeclare var location: Location;\n/**\n * Returns true if the location bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)\n */\ndeclare var locationbar: BarProp;\n/**\n * Returns true if the menu bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)\n */\ndeclare var menubar: BarProp;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name) */\n/** @deprecated */\ndeclare const name: void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) */\ndeclare var navigator: Navigator;\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event)\n */\ndeclare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)\n */\ndeclare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event)\n */\ndeclare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event)\n */\ndeclare var onorientationchange: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) */\ndeclare var opener: any;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)\n */\ndeclare var orientation: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight) */\ndeclare var outerHeight: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */\ndeclare var outerWidth: number;\n/**\n * @deprecated This is a legacy alias of `scrollX`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)\n */\ndeclare var pageXOffset: number;\n/**\n * @deprecated This is a legacy alias of `scrollY`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)\n */\ndeclare var pageYOffset: number;\n/**\n * Refers to either the parent WindowProxy, or itself.\n *\n * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)\n */\ndeclare var parent: WindowProxy;\n/**\n * Returns true if the personal bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)\n */\ndeclare var personalbar: BarProp;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen) */\ndeclare var screen: Screen;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft) */\ndeclare var screenLeft: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop) */\ndeclare var screenTop: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX) */\ndeclare var screenX: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY) */\ndeclare var screenY: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */\ndeclare var scrollX: number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */\ndeclare var scrollY: number;\n/**\n * Returns true if the scrollbars are visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)\n */\ndeclare var scrollbars: BarProp;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self) */\ndeclare var self: Window & typeof globalThis;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis) */\ndeclare var speechSynthesis: SpeechSynthesis;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)\n */\ndeclare var status: string;\n/**\n * Returns true if the status bar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)\n */\ndeclare var statusbar: BarProp;\n/**\n * Returns true if the toolbar is visible; otherwise, returns false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)\n */\ndeclare var toolbar: BarProp;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */\ndeclare var top: WindowProxy | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport) */\ndeclare var visualViewport: VisualViewport | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */\ndeclare var window: Window & typeof globalThis;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */\ndeclare function alert(message?: any): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */\ndeclare function blur(): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */\ndeclare function cancelIdleCallback(handle: number): void;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)\n */\ndeclare function captureEvents(): void;\n/**\n * Closes the window.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)\n */\ndeclare function close(): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm) */\ndeclare function confirm(message?: string): boolean;\n/**\n * Moves the focus to the window\'s browsing context, if any.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)\n */\ndeclare function focus(): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */\ndeclare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */\ndeclare function getSelection(): Selection | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */\ndeclare function matchMedia(query: string): MediaQueryList;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy) */\ndeclare function moveBy(x: number, y: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */\ndeclare function moveTo(x: number, y: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */\ndeclare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;\n/**\n * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.\n *\n * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.\n *\n * If the origin of the target window doesn\'t match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".\n *\n * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage)\n */\ndeclare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;\ndeclare function postMessage(message: any, options?: WindowPostMessageOptions): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */\ndeclare function print(): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */\ndeclare function prompt(message?: string, _default?: string): string | null;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)\n */\ndeclare function releaseEvents(): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */\ndeclare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */\ndeclare function resizeBy(x: number, y: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */\ndeclare function resizeTo(width: number, height: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */\ndeclare function scroll(options?: ScrollToOptions): void;\ndeclare function scroll(x: number, y: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy) */\ndeclare function scrollBy(options?: ScrollToOptions): void;\ndeclare function scrollBy(x: number, y: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo) */\ndeclare function scrollTo(options?: ScrollToOptions): void;\ndeclare function scrollTo(x: number, y: number): void;\n/**\n * Cancels the document load.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop)\n */\ndeclare function stop(): void;\ndeclare function toString(): string;\n/**\n * Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)\n */\ndeclare function dispatchEvent(event: Event): boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */\ndeclare function cancelAnimationFrame(handle: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\n/**\n * Fires when the user aborts the download.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event)\n */\ndeclare var onabort: ((this: Window, ev: UIEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */\ndeclare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */\ndeclare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */\ndeclare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */\ndeclare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */\ndeclare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */\ndeclare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */\ndeclare var onbeforetoggle: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)\n */\ndeclare var onblur: ((this: Window, ev: FocusEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */\ndeclare var oncancel: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when playback is possible, but would require further buffering.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event)\n */\ndeclare var oncanplay: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */\ndeclare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the contents of the object or selection have changed.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event)\n */\ndeclare var onchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user clicks the left mouse button on the object\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)\n */\ndeclare var onclick: ((this: Window, ev: MouseEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */\ndeclare var onclose: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)\n */\ndeclare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */\ndeclare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */\ndeclare var oncuechange: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */\ndeclare var oncut: ((this: Window, ev: ClipboardEvent) => any) | null;\n/**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event)\n */\ndeclare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event)\n */\ndeclare var ondrag: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the source object when the user releases the mouse at the close of a drag operation.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event)\n */\ndeclare var ondragend: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target element when the user drags the object to a valid drop target.\n * @param ev The drag event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event)\n */\ndeclare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n * @param ev The drag event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event)\n */\ndeclare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target element continuously while the user drags the object over a valid drop target.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event)\n */\ndeclare var ondragover: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the source object when the user starts to drag a text selection or selected object.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event)\n */\ndeclare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */\ndeclare var ondrop: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event)\n */\ndeclare var ondurationchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the media element is reset to its initial state.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event)\n */\ndeclare var onemptied: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the end of playback is reached.\n * @param ev The event\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event)\n */\ndeclare var onended: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event)\n */\ndeclare var onerror: OnErrorEventHandler;\n/**\n * Fires when the object receives focus.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event)\n */\ndeclare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */\ndeclare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */\ndeclare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */\ndeclare var oninput: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */\ndeclare var oninvalid: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event)\n */\ndeclare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)\n */\ndeclare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event)\n */\ndeclare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event)\n */\ndeclare var onload: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when media data is loaded at the current playback position.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event)\n */\ndeclare var onloadeddata: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the duration and dimensions of the media have been determined.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event)\n */\ndeclare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event)\n */\ndeclare var onloadstart: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */\ndeclare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Fires when the user clicks the object with either mouse button.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event)\n */\ndeclare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */\ndeclare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */\ndeclare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse over the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event)\n */\ndeclare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse pointer outside the boundaries of the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event)\n */\ndeclare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse pointer into the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event)\n */\ndeclare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user releases a mouse button while the mouse is over the object.\n * @param ev The mouse event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event)\n */\ndeclare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */\ndeclare var onpaste: ((this: Window, ev: ClipboardEvent) => any) | null;\n/**\n * Occurs when playback is paused.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event)\n */\ndeclare var onpause: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the play method is requested.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event)\n */\ndeclare var onplay: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event)\n */\ndeclare var onplaying: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */\ndeclare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */\ndeclare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */\ndeclare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */\ndeclare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */\ndeclare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */\ndeclare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */\ndeclare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */\ndeclare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event)\n */\ndeclare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;\n/**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event)\n */\ndeclare var onratechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user resets a form.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event)\n */\ndeclare var onreset: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */\ndeclare var onresize: ((this: Window, ev: UIEvent) => any) | null;\n/**\n * Fires when the user repositions the scroll box in the scroll bar on the object.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)\n */\ndeclare var onscroll: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */\ndeclare var onscrollend: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */\ndeclare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;\n/**\n * Occurs when the seek operation ends.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event)\n */\ndeclare var onseeked: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event)\n */\ndeclare var onseeking: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the current selection changes.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event)\n */\ndeclare var onselect: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */\ndeclare var onselectionchange: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */\ndeclare var onselectstart: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */\ndeclare var onslotchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the download has stopped.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event)\n */\ndeclare var onstalled: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */\ndeclare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;\n/**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event)\n */\ndeclare var onsuspend: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event)\n */\ndeclare var ontimeupdate: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */\ndeclare var ontoggle: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */\ndeclare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */\ndeclare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */\ndeclare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */\ndeclare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */\ndeclare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */\ndeclare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */\ndeclare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */\ndeclare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;\n/**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event)\n */\ndeclare var onvolumechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when playback stops because the next frame of a video resource is not available.\n * @param ev The event.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event)\n */\ndeclare var onwaiting: ((this: Window, ev: Event) => any) | null;\n/**\n * @deprecated This is a legacy alias of `onanimationend`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event)\n */\ndeclare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;\n/**\n * @deprecated This is a legacy alias of `onanimationiteration`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event)\n */\ndeclare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;\n/**\n * @deprecated This is a legacy alias of `onanimationstart`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event)\n */\ndeclare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;\n/**\n * @deprecated This is a legacy alias of `ontransitionend`.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event)\n */\ndeclare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */\ndeclare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */\ndeclare var onafterprint: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */\ndeclare var onbeforeprint: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */\ndeclare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */\ndeclare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */\ndeclare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */\ndeclare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */\ndeclare var onlanguagechange: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */\ndeclare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */\ndeclare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */\ndeclare var onoffline: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */\ndeclare var ononline: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */\ndeclare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */\ndeclare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */\ndeclare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */\ndeclare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */\ndeclare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */\ndeclare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;\n/**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)\n */\ndeclare var onunload: ((this: Window, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */\ndeclare var localStorage: Storage;\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)\n */\ndeclare var caches: CacheStorage;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */\ndeclare var crossOriginIsolated: boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */\ndeclare var crypto: Crypto;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */\ndeclare var indexedDB: IDBFactory;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */\ndeclare var isSecureContext: boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */\ndeclare var origin: string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */\ndeclare var performance: Performance;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */\ndeclare function atob(data: string): string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */\ndeclare function btoa(data: string): string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */\ndeclare function clearInterval(id: number | undefined): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */\ndeclare function clearTimeout(id: number | undefined): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */\ndeclare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */\ndeclare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */\ndeclare function queueMicrotask(callback: VoidFunction): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */\ndeclare function reportError(e: any): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */\ndeclare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */\ndeclare var sessionStorage: Storage;\ndeclare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\ndeclare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\ndeclare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\ndeclare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\ntype AlgorithmIdentifier = Algorithm | string;\ntype AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;\ntype AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;\ntype AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;\ntype AutoFillSection = `section-${string}`;\ntype BigInteger = Uint8Array;\ntype BinaryData = ArrayBuffer | ArrayBufferView;\ntype BlobPart = BufferSource | Blob | string;\ntype BodyInit = ReadableStream | XMLHttpRequestBodyInit;\ntype BufferSource = ArrayBufferView | ArrayBuffer;\ntype COSEAlgorithmIdentifier = number;\ntype CSSKeywordish = string | CSSKeywordValue;\ntype CSSNumberish = number | CSSNumericValue;\ntype CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;\ntype CSSUnparsedSegment = string | CSSVariableReferenceValue;\ntype CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame;\ntype ClipboardItemData = Promise<string | Blob>;\ntype ClipboardItems = ClipboardItem[];\ntype ConstrainBoolean = boolean | ConstrainBooleanParameters;\ntype ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;\ntype ConstrainDouble = number | ConstrainDoubleRange;\ntype ConstrainULong = number | ConstrainULongRange;\ntype DOMHighResTimeStamp = number;\ntype EpochTimeStamp = number;\ntype EventListenerOrEventListenerObject = EventListener | EventListenerObject;\ntype FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;\ntype Float32List = Float32Array | GLfloat[];\ntype FormDataEntryValue = File | string;\ntype GLbitfield = number;\ntype GLboolean = boolean;\ntype GLclampf = number;\ntype GLenum = number;\ntype GLfloat = number;\ntype GLint = number;\ntype GLint64 = number;\ntype GLintptr = number;\ntype GLsizei = number;\ntype GLsizeiptr = number;\ntype GLuint = number;\ntype GLuint64 = number;\ntype HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;\ntype HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;\ntype HashAlgorithmIdentifier = AlgorithmIdentifier;\ntype HeadersInit = [string, string][] | Record<string, string> | Headers;\ntype IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];\ntype ImageBitmapSource = CanvasImageSource | Blob | ImageData;\ntype Int32List = Int32Array | GLint[];\ntype LineAndPositionSetting = number | AutoKeyword;\ntype MediaProvider = MediaStream | MediaSource | Blob;\ntype MessageEventSource = WindowProxy | MessagePort | ServiceWorker;\ntype MutationRecordType = "attributes" | "characterData" | "childList";\ntype NamedCurve = string;\ntype OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;\ntype OnErrorEventHandler = OnErrorEventHandlerNonNull | null;\ntype OptionalPostfixToken<T extends string> = ` ${T}` | "";\ntype OptionalPrefixToken<T extends string> = `${T} ` | "";\ntype PerformanceEntryList = PerformanceEntry[];\ntype RTCRtpTransform = RTCRtpScriptTransform;\ntype ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;\ntype ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;\ntype ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;\ntype RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype ReportList = Report[];\ntype RequestInfo = Request | string;\ntype TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;\ntype TimerHandler = string | Function;\ntype Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;\ntype Uint32List = Uint32Array | GLuint[];\ntype VibratePattern = number | number[];\ntype WindowProxy = Window;\ntype XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;\ntype AlignSetting = "center" | "end" | "left" | "right" | "start";\ntype AlphaOption = "discard" | "keep";\ntype AnimationPlayState = "finished" | "idle" | "paused" | "running";\ntype AnimationReplaceState = "active" | "persisted" | "removed";\ntype AppendMode = "segments" | "sequence";\ntype AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";\ntype AudioContextLatencyCategory = "balanced" | "interactive" | "playback";\ntype AudioContextState = "closed" | "running" | "suspended";\ntype AuthenticatorAttachment = "cross-platform" | "platform";\ntype AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";\ntype AutoFillAddressKind = "billing" | "shipping";\ntype AutoFillBase = "" | "off" | "on";\ntype AutoFillContactField = "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national";\ntype AutoFillContactKind = "home" | "mobile" | "work";\ntype AutoFillCredentialField = "webauthn";\ntype AutoFillNormalField = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username";\ntype AutoKeyword = "auto";\ntype AutomationRate = "a-rate" | "k-rate";\ntype AvcBitstreamFormat = "annexb" | "avc";\ntype BinaryType = "arraybuffer" | "blob";\ntype BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";\ntype CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";\ntype CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";\ntype CanPlayTypeResult = "" | "maybe" | "probably";\ntype CanvasDirection = "inherit" | "ltr" | "rtl";\ntype CanvasFillRule = "evenodd" | "nonzero";\ntype CanvasFontKerning = "auto" | "none" | "normal";\ntype CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";\ntype CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";\ntype CanvasLineCap = "butt" | "round" | "square";\ntype CanvasLineJoin = "bevel" | "miter" | "round";\ntype CanvasTextAlign = "center" | "end" | "left" | "right" | "start";\ntype CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";\ntype CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";\ntype ChannelCountMode = "clamped-max" | "explicit" | "max";\ntype ChannelInterpretation = "discrete" | "speakers";\ntype ClientTypes = "all" | "sharedworker" | "window" | "worker";\ntype CodecState = "closed" | "configured" | "unconfigured";\ntype ColorGamut = "p3" | "rec2020" | "srgb";\ntype ColorSpaceConversion = "default" | "none";\ntype CompositeOperation = "accumulate" | "add" | "replace";\ntype CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";\ntype CompressionFormat = "deflate" | "deflate-raw" | "gzip";\ntype CredentialMediationRequirement = "conditional" | "optional" | "required" | "silent";\ntype DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";\ntype DirectionSetting = "" | "lr" | "rl";\ntype DisplayCaptureSurfaceType = "browser" | "monitor" | "window";\ntype DistanceModelType = "exponential" | "inverse" | "linear";\ntype DocumentReadyState = "complete" | "interactive" | "loading";\ntype DocumentVisibilityState = "hidden" | "visible";\ntype EncodedVideoChunkType = "delta" | "key";\ntype EndOfStreamError = "decode" | "network";\ntype EndingType = "native" | "transparent";\ntype FileSystemHandleKind = "directory" | "file";\ntype FillMode = "auto" | "backwards" | "both" | "forwards" | "none";\ntype FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";\ntype FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";\ntype FontFaceSetLoadStatus = "loaded" | "loading";\ntype FullscreenNavigationUI = "auto" | "hide" | "show";\ntype GamepadHapticActuatorType = "vibration";\ntype GamepadHapticEffectType = "dual-rumble";\ntype GamepadHapticsResult = "complete" | "preempted";\ntype GamepadMappingType = "" | "standard" | "xr-standard";\ntype GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";\ntype HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";\ntype HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";\ntype HighlightType = "grammar-error" | "highlight" | "spelling-error";\ntype IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";\ntype IDBRequestReadyState = "done" | "pending";\ntype IDBTransactionDurability = "default" | "relaxed" | "strict";\ntype IDBTransactionMode = "readonly" | "readwrite" | "versionchange";\ntype ImageOrientation = "flipY" | "from-image" | "none";\ntype ImageSmoothingQuality = "high" | "low" | "medium";\ntype InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend";\ntype IterationCompositeOperation = "accumulate" | "replace";\ntype KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";\ntype KeyType = "private" | "public" | "secret";\ntype KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";\ntype LatencyMode = "quality" | "realtime";\ntype LineAlignSetting = "center" | "end" | "start";\ntype LockMode = "exclusive" | "shared";\ntype MIDIPortConnectionState = "closed" | "open" | "pending";\ntype MIDIPortDeviceState = "connected" | "disconnected";\ntype MIDIPortType = "input" | "output";\ntype MediaDecodingType = "file" | "media-source" | "webrtc";\ntype MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";\ntype MediaEncodingType = "record" | "webrtc";\ntype MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";\ntype MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";\ntype MediaKeySessionType = "persistent-license" | "temporary";\ntype MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";\ntype MediaKeysRequirement = "not-allowed" | "optional" | "required";\ntype MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";\ntype MediaSessionPlaybackState = "none" | "paused" | "playing";\ntype MediaStreamTrackState = "ended" | "live";\ntype NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";\ntype NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";\ntype OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";\ntype OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";\ntype OverSampleType = "2x" | "4x" | "none";\ntype PanningModelType = "HRTF" | "equalpower";\ntype PaymentComplete = "fail" | "success" | "unknown";\ntype PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";\ntype PermissionState = "denied" | "granted" | "prompt";\ntype PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";\ntype PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";\ntype PredefinedColorSpace = "display-p3" | "srgb";\ntype PremultiplyAlpha = "default" | "none" | "premultiply";\ntype PresentationStyle = "attachment" | "inline" | "unspecified";\ntype PublicKeyCredentialType = "public-key";\ntype PushEncryptionKeyName = "auth" | "p256dh";\ntype RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";\ntype RTCDataChannelState = "closed" | "closing" | "connecting" | "open";\ntype RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";\ntype RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";\ntype RTCEncodedVideoFrameType = "delta" | "empty" | "key";\ntype RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";\ntype RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";\ntype RTCIceComponent = "rtcp" | "rtp";\ntype RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";\ntype RTCIceGathererState = "complete" | "gathering" | "new";\ntype RTCIceGatheringState = "complete" | "gathering" | "new";\ntype RTCIceProtocol = "tcp" | "udp";\ntype RTCIceTcpCandidateType = "active" | "passive" | "so";\ntype RTCIceTransportPolicy = "all" | "relay";\ntype RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";\ntype RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";\ntype RTCPriorityType = "high" | "low" | "medium" | "very-low";\ntype RTCRtcpMuxPolicy = "require";\ntype RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";\ntype RTCSctpTransportState = "closed" | "connected" | "connecting";\ntype RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";\ntype RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";\ntype RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";\ntype RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-playout" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "transport";\ntype ReadableStreamReaderMode = "byob";\ntype ReadableStreamType = "bytes";\ntype ReadyState = "closed" | "ended" | "open";\ntype RecordingState = "inactive" | "paused" | "recording";\ntype ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";\ntype RemotePlaybackState = "connected" | "connecting" | "disconnected";\ntype RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";\ntype RequestCredentials = "include" | "omit" | "same-origin";\ntype RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";\ntype RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";\ntype RequestPriority = "auto" | "high" | "low";\ntype RequestRedirect = "error" | "follow" | "manual";\ntype ResidentKeyRequirement = "discouraged" | "preferred" | "required";\ntype ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";\ntype ResizeQuality = "high" | "low" | "medium" | "pixelated";\ntype ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";\ntype ScrollBehavior = "auto" | "instant" | "smooth";\ntype ScrollLogicalPosition = "center" | "end" | "nearest" | "start";\ntype ScrollRestoration = "auto" | "manual";\ntype ScrollSetting = "" | "up";\ntype SecurityPolicyViolationEventDisposition = "enforce" | "report";\ntype SelectionMode = "end" | "preserve" | "select" | "start";\ntype ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";\ntype ServiceWorkerUpdateViaCache = "all" | "imports" | "none";\ntype ShadowRootMode = "closed" | "open";\ntype SlotAssignmentMode = "manual" | "named";\ntype SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";\ntype TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";\ntype TextTrackMode = "disabled" | "hidden" | "showing";\ntype TouchType = "direct" | "stylus";\ntype TransferFunction = "hlg" | "pq" | "srgb";\ntype UserVerificationRequirement = "discouraged" | "preferred" | "required";\ntype VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";\ntype VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";\ntype VideoFacingModeEnum = "environment" | "left" | "right" | "user";\ntype VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";\ntype VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";\ntype VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";\ntype WakeLockType = "screen";\ntype WebGLPowerPreference = "default" | "high-performance" | "low-power";\ntype WebTransportCongestionControl = "default" | "low-latency" | "throughput";\ntype WebTransportErrorSource = "session" | "stream";\ntype WorkerType = "classic" | "module";\ntype WriteCommandType = "seek" | "truncate" | "write";\ntype XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";\n',S["lib.dom.iterable.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Window Iterable APIs\n/////////////////////////////\n\ninterface AudioParam {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */\n setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;\n}\n\ninterface AudioParamMap extends ReadonlyMap<string, AudioParam> {\n}\n\ninterface BaseAudioContext {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */\n createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */\n createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;\n}\n\ninterface CSSKeyframesRule {\n [Symbol.iterator](): IterableIterator<CSSKeyframeRule>;\n}\n\ninterface CSSNumericArray {\n [Symbol.iterator](): IterableIterator<CSSNumericValue>;\n entries(): IterableIterator<[number, CSSNumericValue]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<CSSNumericValue>;\n}\n\ninterface CSSRuleList {\n [Symbol.iterator](): IterableIterator<CSSRule>;\n}\n\ninterface CSSStyleDeclaration {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface CSSTransformValue {\n [Symbol.iterator](): IterableIterator<CSSTransformComponent>;\n entries(): IterableIterator<[number, CSSTransformComponent]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<CSSTransformComponent>;\n}\n\ninterface CSSUnparsedValue {\n [Symbol.iterator](): IterableIterator<CSSUnparsedSegment>;\n entries(): IterableIterator<[number, CSSUnparsedSegment]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<CSSUnparsedSegment>;\n}\n\ninterface Cache {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */\n addAll(requests: Iterable<RequestInfo>): Promise<void>;\n}\n\ninterface CanvasPath {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */\n roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;\n}\n\ninterface CanvasPathDrawingStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */\n setLineDash(segments: Iterable<number>): void;\n}\n\ninterface DOMRectList {\n [Symbol.iterator](): IterableIterator<DOMRect>;\n}\n\ninterface DOMStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface DOMTokenList {\n [Symbol.iterator](): IterableIterator<string>;\n entries(): IterableIterator<[number, string]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<string>;\n}\n\ninterface DataTransferItemList {\n [Symbol.iterator](): IterableIterator<DataTransferItem>;\n}\n\ninterface EventCounts extends ReadonlyMap<string, number> {\n}\n\ninterface FileList {\n [Symbol.iterator](): IterableIterator<File>;\n}\n\ninterface FontFaceSet extends Set<FontFace> {\n}\n\ninterface FormData {\n [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns a list of keys in the list. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the list. */\n values(): IterableIterator<FormDataEntryValue>;\n}\n\ninterface HTMLAllCollection {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLCollectionBase {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLCollectionOf<T extends Element> {\n [Symbol.iterator](): IterableIterator<T>;\n}\n\ninterface HTMLFormElement {\n [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLSelectElement {\n [Symbol.iterator](): IterableIterator<HTMLOptionElement>;\n}\n\ninterface Headers {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all key/value pairs contained in this object. */\n entries(): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */\n keys(): IterableIterator<string>;\n /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */\n values(): IterableIterator<string>;\n}\n\ninterface Highlight extends Set<AbstractRange> {\n}\n\ninterface HighlightRegistry extends Map<string, Highlight> {\n}\n\ninterface IDBDatabase {\n /**\n * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)\n */\n transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;\n}\n\ninterface IDBObjectStore {\n /**\n * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)\n */\n createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;\n}\n\ninterface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {\n}\n\ninterface MIDIOutput {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */\n send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;\n}\n\ninterface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {\n}\n\ninterface MediaKeyStatusMap {\n [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;\n entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;\n keys(): IterableIterator<BufferSource>;\n values(): IterableIterator<MediaKeyStatus>;\n}\n\ninterface MediaList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface MessageEvent<T = any> {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)\n */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;\n}\n\ninterface MimeTypeArray {\n [Symbol.iterator](): IterableIterator<MimeType>;\n}\n\ninterface NamedNodeMap {\n [Symbol.iterator](): IterableIterator<Attr>;\n}\n\ninterface Navigator {\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)\n */\n requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */\n vibrate(pattern: Iterable<number>): boolean;\n}\n\ninterface NodeList {\n [Symbol.iterator](): IterableIterator<Node>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[number, Node]>;\n /** Returns an list of keys in the list. */\n keys(): IterableIterator<number>;\n /** Returns an list of values in the list. */\n values(): IterableIterator<Node>;\n}\n\ninterface NodeListOf<TNode extends Node> {\n [Symbol.iterator](): IterableIterator<TNode>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[number, TNode]>;\n /** Returns an list of keys in the list. */\n keys(): IterableIterator<number>;\n /** Returns an list of values in the list. */\n values(): IterableIterator<TNode>;\n}\n\ninterface Plugin {\n [Symbol.iterator](): IterableIterator<MimeType>;\n}\n\ninterface PluginArray {\n [Symbol.iterator](): IterableIterator<Plugin>;\n}\n\ninterface RTCRtpTransceiver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */\n setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;\n}\n\ninterface RTCStatsReport extends ReadonlyMap<string, any> {\n}\n\ninterface SVGLengthList {\n [Symbol.iterator](): IterableIterator<SVGLength>;\n}\n\ninterface SVGNumberList {\n [Symbol.iterator](): IterableIterator<SVGNumber>;\n}\n\ninterface SVGPointList {\n [Symbol.iterator](): IterableIterator<DOMPoint>;\n}\n\ninterface SVGStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface SVGTransformList {\n [Symbol.iterator](): IterableIterator<SVGTransform>;\n}\n\ninterface SourceBufferList {\n [Symbol.iterator](): IterableIterator<SourceBuffer>;\n}\n\ninterface SpeechRecognitionResult {\n [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;\n}\n\ninterface SpeechRecognitionResultList {\n [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;\n}\n\ninterface StylePropertyMapReadOnly {\n [Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>;\n entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>;\n keys(): IterableIterator<string>;\n values(): IterableIterator<Iterable<CSSStyleValue>>;\n}\n\ninterface StyleSheetList {\n [Symbol.iterator](): IterableIterator<CSSStyleSheet>;\n}\n\ninterface SubtleCrypto {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */\n generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */\n unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n}\n\ninterface TextTrackCueList {\n [Symbol.iterator](): IterableIterator<TextTrackCue>;\n}\n\ninterface TextTrackList {\n [Symbol.iterator](): IterableIterator<TextTrack>;\n}\n\ninterface TouchList {\n [Symbol.iterator](): IterableIterator<Touch>;\n}\n\ninterface URLSearchParams {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an array of key, value pairs for every entry in the search params. */\n entries(): IterableIterator<[string, string]>;\n /** Returns a list of keys in the search params. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the search params. */\n values(): IterableIterator<string>;\n}\n\ninterface WEBGL_draw_buffers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */\n drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\n}\n\ninterface WEBGL_multi_draw {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;\n}\n\ninterface WebGL2RenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */\n drawBuffers(buffers: Iterable<GLenum>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */\n getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */\n getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */\n invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */\n invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */\n transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;\n}\n\ninterface WebGL2RenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n}\n\ninterface WebGLRenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;\n}\n\ninterface WebGLRenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n}\n',S["lib.es2015.collection.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Map<K, V> {\n clear(): void;\n /**\n * @returns true if an element in the Map existed and has been removed, or false if the element does not exist.\n */\n delete(key: K): boolean;\n /**\n * Executes a provided function once per each key/value pair in the Map, in insertion order.\n */\n forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;\n /**\n * Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.\n * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.\n */\n get(key: K): V | undefined;\n /**\n * @returns boolean indicating whether an element with the specified key exists or not.\n */\n has(key: K): boolean;\n /**\n * Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.\n */\n set(key: K, value: V): this;\n /**\n * @returns the number of elements in the Map.\n */\n readonly size: number;\n}\n\ninterface MapConstructor {\n new (): Map<any, any>;\n new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;\n readonly prototype: Map<any, any>;\n}\ndeclare var Map: MapConstructor;\n\ninterface ReadonlyMap<K, V> {\n forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;\n get(key: K): V | undefined;\n has(key: K): boolean;\n readonly size: number;\n}\n\ninterface WeakMap<K extends WeakKey, V> {\n /**\n * Removes the specified element from the WeakMap.\n * @returns true if the element was successfully removed, or false if it was not present.\n */\n delete(key: K): boolean;\n /**\n * @returns a specified element.\n */\n get(key: K): V | undefined;\n /**\n * @returns a boolean indicating whether an element with the specified key exists or not.\n */\n has(key: K): boolean;\n /**\n * Adds a new element with a specified key and value.\n * @param key Must be an object or symbol.\n */\n set(key: K, value: V): this;\n}\n\ninterface WeakMapConstructor {\n new <K extends WeakKey = WeakKey, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>;\n readonly prototype: WeakMap<WeakKey, any>;\n}\ndeclare var WeakMap: WeakMapConstructor;\n\ninterface Set<T> {\n /**\n * Appends a new element with a specified value to the end of the Set.\n */\n add(value: T): this;\n\n clear(): void;\n /**\n * Removes a specified value from the Set.\n * @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.\n */\n delete(value: T): boolean;\n /**\n * Executes a provided function once per each value in the Set object, in insertion order.\n */\n forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;\n /**\n * @returns a boolean indicating whether an element with the specified value exists in the Set or not.\n */\n has(value: T): boolean;\n /**\n * @returns the number of (unique) elements in Set.\n */\n readonly size: number;\n}\n\ninterface SetConstructor {\n new <T = any>(values?: readonly T[] | null): Set<T>;\n readonly prototype: Set<any>;\n}\ndeclare var Set: SetConstructor;\n\ninterface ReadonlySet<T> {\n forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;\n has(value: T): boolean;\n readonly size: number;\n}\n\ninterface WeakSet<T extends WeakKey> {\n /**\n * Appends a new value to the end of the WeakSet.\n */\n add(value: T): this;\n /**\n * Removes the specified element from the WeakSet.\n * @returns Returns true if the element existed and has been removed, or false if the element does not exist.\n */\n delete(value: T): boolean;\n /**\n * @returns a boolean indicating whether a value exists in the WeakSet or not.\n */\n has(value: T): boolean;\n}\n\ninterface WeakSetConstructor {\n new <T extends WeakKey = WeakKey>(values?: readonly T[] | null): WeakSet<T>;\n readonly prototype: WeakSet<WeakKey>;\n}\ndeclare var WeakSet: WeakSetConstructor;\n',S["lib.es2015.core.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Array<T> {\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;\n find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: T, start?: number, end?: number): this;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n}\n\ninterface ArrayConstructor {\n /**\n * Creates an array from an array-like object.\n * @param arrayLike An array-like object to convert to an array.\n */\n from<T>(arrayLike: ArrayLike<T>): T[];\n\n /**\n * Creates an array from an iterable object.\n * @param arrayLike An array-like object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of<T>(...items: T[]): T[];\n}\n\ninterface DateConstructor {\n new (value: number | string | Date): Date;\n}\n\ninterface Function {\n /**\n * Returns the name of the function. Function names are read-only and can not be changed.\n */\n readonly name: string;\n}\n\ninterface Math {\n /**\n * Returns the number of leading zero bits in the 32-bit binary representation of a number.\n * @param x A numeric expression.\n */\n clz32(x: number): number;\n\n /**\n * Returns the result of 32-bit multiplication of two numbers.\n * @param x First number\n * @param y Second number\n */\n imul(x: number, y: number): number;\n\n /**\n * Returns the sign of the x, indicating whether x is positive, negative or zero.\n * @param x The numeric expression to test\n */\n sign(x: number): number;\n\n /**\n * Returns the base 10 logarithm of a number.\n * @param x A numeric expression.\n */\n log10(x: number): number;\n\n /**\n * Returns the base 2 logarithm of a number.\n * @param x A numeric expression.\n */\n log2(x: number): number;\n\n /**\n * Returns the natural logarithm of 1 + x.\n * @param x A numeric expression.\n */\n log1p(x: number): number;\n\n /**\n * Returns the result of (e^x - 1), which is an implementation-dependent approximation to\n * subtracting 1 from the exponential function of x (e raised to the power of x, where e\n * is the base of the natural logarithms).\n * @param x A numeric expression.\n */\n expm1(x: number): number;\n\n /**\n * Returns the hyperbolic cosine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n cosh(x: number): number;\n\n /**\n * Returns the hyperbolic sine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n sinh(x: number): number;\n\n /**\n * Returns the hyperbolic tangent of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n tanh(x: number): number;\n\n /**\n * Returns the inverse hyperbolic cosine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n acosh(x: number): number;\n\n /**\n * Returns the inverse hyperbolic sine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n asinh(x: number): number;\n\n /**\n * Returns the inverse hyperbolic tangent of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n atanh(x: number): number;\n\n /**\n * Returns the square root of the sum of squares of its arguments.\n * @param values Values to compute the square root for.\n * If no arguments are passed, the result is +0.\n * If there is only one argument, the result is the absolute value.\n * If any argument is +Infinity or -Infinity, the result is +Infinity.\n * If any argument is NaN, the result is NaN.\n * If all arguments are either +0 or \u22120, the result is +0.\n */\n hypot(...values: number[]): number;\n\n /**\n * Returns the integral part of the a numeric expression, x, removing any fractional digits.\n * If x is already an integer, the result is x.\n * @param x A numeric expression.\n */\n trunc(x: number): number;\n\n /**\n * Returns the nearest single precision float representation of a number.\n * @param x A numeric expression.\n */\n fround(x: number): number;\n\n /**\n * Returns an implementation-dependent approximation to the cube root of number.\n * @param x A numeric expression.\n */\n cbrt(x: number): number;\n}\n\ninterface NumberConstructor {\n /**\n * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1\n * that is representable as a Number value, which is approximately:\n * 2.2204460492503130808472633361816 x 10\u200d\u2212\u200d16.\n */\n readonly EPSILON: number;\n\n /**\n * Returns true if passed value is finite.\n * Unlike the global isFinite, Number.isFinite doesn\'t forcibly convert the parameter to a\n * number. Only finite values of the type number, result in true.\n * @param number A numeric value.\n */\n isFinite(number: unknown): boolean;\n\n /**\n * Returns true if the value passed is an integer, false otherwise.\n * @param number A numeric value.\n */\n isInteger(number: unknown): boolean;\n\n /**\n * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a\n * number). Unlike the global isNaN(), Number.isNaN() doesn\'t forcefully convert the parameter\n * to a number. Only values of the type number, that are also NaN, result in true.\n * @param number A numeric value.\n */\n isNaN(number: unknown): boolean;\n\n /**\n * Returns true if the value passed is a safe integer.\n * @param number A numeric value.\n */\n isSafeInteger(number: unknown): boolean;\n\n /**\n * The value of the largest integer n such that n and n + 1 are both exactly representable as\n * a Number value.\n * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 \u2212 1.\n */\n readonly MAX_SAFE_INTEGER: number;\n\n /**\n * The value of the smallest integer n such that n and n \u2212 1 are both exactly representable as\n * a Number value.\n * The value of Number.MIN_SAFE_INTEGER is \u22129007199254740991 (\u2212(2^53 \u2212 1)).\n */\n readonly MIN_SAFE_INTEGER: number;\n\n /**\n * Converts a string to a floating-point number.\n * @param string A string that contains a floating-point number.\n */\n parseFloat(string: string): number;\n\n /**\n * Converts A string to an integer.\n * @param string A string to convert into a number.\n * @param radix A value between 2 and 36 that specifies the base of the number in `string`.\n * If this argument is not supplied, strings with a prefix of \'0x\' are considered hexadecimal.\n * All other strings are considered decimal.\n */\n parseInt(string: string, radix?: number): number;\n}\n\ninterface ObjectConstructor {\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param source The source object from which to copy properties.\n */\n assign<T extends {}, U>(target: T, source: U): T & U;\n\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param source1 The first source object from which to copy properties.\n * @param source2 The second source object from which to copy properties.\n */\n assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;\n\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param source1 The first source object from which to copy properties.\n * @param source2 The second source object from which to copy properties.\n * @param source3 The third source object from which to copy properties.\n */\n assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;\n\n /**\n * Copy the values of all of the enumerable own properties from one or more source objects to a\n * target object. Returns the target object.\n * @param target The target object to copy to.\n * @param sources One or more source objects from which to copy properties\n */\n assign(target: object, ...sources: any[]): any;\n\n /**\n * Returns an array of all symbol properties found directly on object o.\n * @param o Object to retrieve the symbols from.\n */\n getOwnPropertySymbols(o: any): symbol[];\n\n /**\n * Returns the names of the enumerable string properties and methods of an object.\n * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n */\n keys(o: {}): string[];\n\n /**\n * Returns true if the values are the same value, false otherwise.\n * @param value1 The first value.\n * @param value2 The second value.\n */\n is(value1: any, value2: any): boolean;\n\n /**\n * Sets the prototype of a specified object o to object proto or null. Returns the object o.\n * @param o The object to change its prototype.\n * @param proto The value of the new prototype or null.\n */\n setPrototypeOf(o: any, proto: object | null): any;\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;\n find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;\n}\n\ninterface RegExp {\n /**\n * Returns a string indicating the flags of the regular expression in question. This field is read-only.\n * The characters in this string are sequenced and concatenated in the following order:\n *\n * - "g" for global\n * - "i" for ignoreCase\n * - "m" for multiline\n * - "u" for unicode\n * - "y" for sticky\n *\n * If no flags are set, the value is the empty string.\n */\n readonly flags: string;\n\n /**\n * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular\n * expression. Default is false. Read-only.\n */\n readonly sticky: boolean;\n\n /**\n * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular\n * expression. Default is false. Read-only.\n */\n readonly unicode: boolean;\n}\n\ninterface RegExpConstructor {\n new (pattern: RegExp | string, flags?: string): RegExp;\n (pattern: RegExp | string, flags?: string): RegExp;\n}\n\ninterface String {\n /**\n * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\n * value of the UTF-16 encoded code point starting at the string element at position pos in\n * the String resulting from converting this object to a String.\n * If there is no element at that position, the result is undefined.\n * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.\n */\n codePointAt(pos: number): number | undefined;\n\n /**\n * Returns true if searchString appears as a substring of the result of converting this\n * object to a String, at one or more positions that are\n * greater than or equal to position; otherwise, returns false.\n * @param searchString search string\n * @param position If position is undefined, 0 is assumed, so as to search all of the String.\n */\n includes(searchString: string, position?: number): boolean;\n\n /**\n * Returns true if the sequence of elements of searchString converted to a String is the\n * same as the corresponding elements of this object (converted to a String) starting at\n * endPosition \u2013 length(this). Otherwise returns false.\n */\n endsWith(searchString: string, endPosition?: number): boolean;\n\n /**\n * Returns the String value result of normalizing the string into the normalization form\n * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\n * is "NFC"\n */\n normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;\n\n /**\n * Returns the String value result of normalizing the string into the normalization form\n * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\n * is "NFC"\n */\n normalize(form?: string): string;\n\n /**\n * Returns a String value that is made from count copies appended together. If count is 0,\n * the empty string is returned.\n * @param count number of copies to append\n */\n repeat(count: number): string;\n\n /**\n * Returns true if the sequence of elements of searchString converted to a String is the\n * same as the corresponding elements of this object (converted to a String) starting at\n * position. Otherwise returns false.\n */\n startsWith(searchString: string, position?: number): boolean;\n\n /**\n * Returns an `<a>` HTML anchor element and sets the name attribute to the text value\n * @deprecated A legacy feature for browser compatibility\n * @param name\n */\n anchor(name: string): string;\n\n /**\n * Returns a `<big>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n big(): string;\n\n /**\n * Returns a `<blink>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n blink(): string;\n\n /**\n * Returns a `<b>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n bold(): string;\n\n /**\n * Returns a `<tt>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n fixed(): string;\n\n /**\n * Returns a `<font>` HTML element and sets the color attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n fontcolor(color: string): string;\n\n /**\n * Returns a `<font>` HTML element and sets the size attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n fontsize(size: number): string;\n\n /**\n * Returns a `<font>` HTML element and sets the size attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n fontsize(size: string): string;\n\n /**\n * Returns an `<i>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n italics(): string;\n\n /**\n * Returns an `<a>` HTML element and sets the href attribute value\n * @deprecated A legacy feature for browser compatibility\n */\n link(url: string): string;\n\n /**\n * Returns a `<small>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n small(): string;\n\n /**\n * Returns a `<strike>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n strike(): string;\n\n /**\n * Returns a `<sub>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n sub(): string;\n\n /**\n * Returns a `<sup>` HTML element\n * @deprecated A legacy feature for browser compatibility\n */\n sup(): string;\n}\n\ninterface StringConstructor {\n /**\n * Return the String value whose elements are, in order, the elements in the List elements.\n * If length is 0, the empty string is returned.\n */\n fromCodePoint(...codePoints: number[]): string;\n\n /**\n * String.raw is usually used as a tag function of a Tagged Template String. When called as\n * such, the first argument will be a well formed template call site object and the rest\n * parameter will contain the substitution values. It can also be called directly, for example,\n * to interleave strings and values from your own tag function, and in this case the only thing\n * it needs from the first argument is the raw property.\n * @param template A well-formed template string call site representation.\n * @param substitutions A set of substitution values.\n */\n raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;\n}\n',S["lib.es2015.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es5" />\n/// <reference lib="es2015.core" />\n/// <reference lib="es2015.collection" />\n/// <reference lib="es2015.iterable" />\n/// <reference lib="es2015.generator" />\n/// <reference lib="es2015.promise" />\n/// <reference lib="es2015.proxy" />\n/// <reference lib="es2015.reflect" />\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.symbol.wellknown" />\n',S["lib.es2015.generator.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.iterable" />\n\ninterface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n return(value: TReturn): IteratorResult<T, TReturn>;\n throw(e: any): IteratorResult<T, TReturn>;\n [Symbol.iterator](): Generator<T, TReturn, TNext>;\n}\n\ninterface GeneratorFunction {\n /**\n * Creates a new Generator object.\n * @param args A list of arguments the function accepts.\n */\n new (...args: any[]): Generator;\n /**\n * Creates a new Generator object.\n * @param args A list of arguments the function accepts.\n */\n (...args: any[]): Generator;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: Generator;\n}\n\ninterface GeneratorFunctionConstructor {\n /**\n * Creates a new Generator function.\n * @param args A list of arguments the function accepts.\n */\n new (...args: string[]): GeneratorFunction;\n /**\n * Creates a new Generator function.\n * @param args A list of arguments the function accepts.\n */\n (...args: string[]): GeneratorFunction;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: GeneratorFunction;\n}\n',S["lib.es2015.iterable.d.ts"]="/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\n/// <reference lib=\"es2015.symbol\" />\n\ninterface SymbolConstructor {\n /**\n * A method that returns the default iterator for an object. Called by the semantics of the\n * for-of statement.\n */\n readonly iterator: unique symbol;\n}\n\ninterface IteratorYieldResult<TYield> {\n done?: false;\n value: TYield;\n}\n\ninterface IteratorReturnResult<TReturn> {\n done: true;\n value: TReturn;\n}\n\ntype IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;\n\ninterface Iterator<T, TReturn = any, TNext = undefined> {\n // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): IteratorResult<T, TReturn>;\n return?(value?: TReturn): IteratorResult<T, TReturn>;\n throw?(e?: any): IteratorResult<T, TReturn>;\n}\n\ninterface Iterable<T> {\n [Symbol.iterator](): Iterator<T>;\n}\n\ninterface IterableIterator<T> extends Iterator<T> {\n [Symbol.iterator](): IterableIterator<T>;\n}\n\ninterface Array<T> {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, T]>;\n\n /**\n * Returns an iterable of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an iterable of values in the array\n */\n values(): IterableIterator<T>;\n}\n\ninterface ArrayConstructor {\n /**\n * Creates an array from an iterable object.\n * @param iterable An iterable object to convert to an array.\n */\n from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];\n\n /**\n * Creates an array from an iterable object.\n * @param iterable An iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];\n}\n\ninterface ReadonlyArray<T> {\n /** Iterator of values in the array. */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, T]>;\n\n /**\n * Returns an iterable of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an iterable of values in the array\n */\n values(): IterableIterator<T>;\n}\n\ninterface IArguments {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<any>;\n}\n\ninterface Map<K, V> {\n /** Returns an iterable of entries in the map. */\n [Symbol.iterator](): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the map.\n */\n entries(): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of keys in the map\n */\n keys(): IterableIterator<K>;\n\n /**\n * Returns an iterable of values in the map\n */\n values(): IterableIterator<V>;\n}\n\ninterface ReadonlyMap<K, V> {\n /** Returns an iterable of entries in the map. */\n [Symbol.iterator](): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of key, value pairs for every entry in the map.\n */\n entries(): IterableIterator<[K, V]>;\n\n /**\n * Returns an iterable of keys in the map\n */\n keys(): IterableIterator<K>;\n\n /**\n * Returns an iterable of values in the map\n */\n values(): IterableIterator<V>;\n}\n\ninterface MapConstructor {\n new (): Map<any, any>;\n new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;\n}\n\ninterface WeakMap<K extends WeakKey, V> {}\n\ninterface WeakMapConstructor {\n new <K extends WeakKey, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;\n}\n\ninterface Set<T> {\n /** Iterates over values in the set. */\n [Symbol.iterator](): IterableIterator<T>;\n /**\n * Returns an iterable of [v,v] pairs for every value `v` in the set.\n */\n entries(): IterableIterator<[T, T]>;\n /**\n * Despite its name, returns an iterable of the values in the set.\n */\n keys(): IterableIterator<T>;\n\n /**\n * Returns an iterable of values in the set.\n */\n values(): IterableIterator<T>;\n}\n\ninterface ReadonlySet<T> {\n /** Iterates over values in the set. */\n [Symbol.iterator](): IterableIterator<T>;\n\n /**\n * Returns an iterable of [v,v] pairs for every value `v` in the set.\n */\n entries(): IterableIterator<[T, T]>;\n\n /**\n * Despite its name, returns an iterable of the values in the set.\n */\n keys(): IterableIterator<T>;\n\n /**\n * Returns an iterable of values in the set.\n */\n values(): IterableIterator<T>;\n}\n\ninterface SetConstructor {\n new <T>(iterable?: Iterable<T> | null): Set<T>;\n}\n\ninterface WeakSet<T extends WeakKey> {}\n\ninterface WeakSetConstructor {\n new <T extends WeakKey = WeakKey>(iterable: Iterable<T>): WeakSet<T>;\n}\n\ninterface Promise<T> {}\n\ninterface PromiseConstructor {\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An iterable of Promises.\n * @returns A new Promise.\n */\n all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;\n\n /**\n * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n * or rejected.\n * @param values An iterable of Promises.\n * @returns A new Promise.\n */\n race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;\n}\n\ninterface String {\n /** Iterator */\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface Int8Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int8ArrayConstructor {\n new (elements: Iterable<number>): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;\n}\n\ninterface Uint8Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint8ArrayConstructor {\n new (elements: Iterable<number>): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;\n}\n\ninterface Uint8ClampedArray {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint8ClampedArrayConstructor {\n new (elements: Iterable<number>): Uint8ClampedArray;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\n\ninterface Int16Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int16ArrayConstructor {\n new (elements: Iterable<number>): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;\n}\n\ninterface Uint16Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint16ArrayConstructor {\n new (elements: Iterable<number>): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;\n}\n\ninterface Int32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Int32ArrayConstructor {\n new (elements: Iterable<number>): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;\n}\n\ninterface Uint32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Uint32ArrayConstructor {\n new (elements: Iterable<number>): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;\n}\n\ninterface Float32Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Float32ArrayConstructor {\n new (elements: Iterable<number>): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;\n}\n\ninterface Float64Array {\n [Symbol.iterator](): IterableIterator<number>;\n /**\n * Returns an array of key, value pairs for every entry in the array\n */\n entries(): IterableIterator<[number, number]>;\n /**\n * Returns an list of keys in the array\n */\n keys(): IterableIterator<number>;\n /**\n * Returns an list of values in the array\n */\n values(): IterableIterator<number>;\n}\n\ninterface Float64ArrayConstructor {\n new (elements: Iterable<number>): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of 'this' used to invoke the mapfn.\n */\n from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;\n}\n",S["lib.es2015.promise.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface PromiseConstructor {\n /**\n * A reference to the prototype.\n */\n readonly prototype: Promise<any>;\n\n /**\n * Creates a new Promise.\n * @param executor A callback used to initialize the promise. This callback is passed two arguments:\n * a resolve callback used to resolve the promise with a value or the result of another promise,\n * and a reject callback used to reject the promise with a provided reason or error.\n */\n new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all of the provided Promises\n * resolve, or rejected when any Promise is rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>;\n\n // see: lib.es2015.iterable.d.ts\n // all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;\n\n /**\n * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n * or rejected.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;\n\n // see: lib.es2015.iterable.d.ts\n // race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;\n\n /**\n * Creates a new rejected promise for the provided reason.\n * @param reason The reason the promise was rejected.\n * @returns A new rejected Promise.\n */\n reject<T = never>(reason?: any): Promise<T>;\n\n /**\n * Creates a new resolved promise.\n * @returns A resolved promise.\n */\n resolve(): Promise<void>;\n /**\n * Creates a new resolved promise for the provided value.\n * @param value A promise.\n * @returns A promise whose internal state matches the provided promise.\n */\n resolve<T>(value: T): Promise<Awaited<T>>;\n /**\n * Creates a new resolved promise for the provided value.\n * @param value A promise.\n * @returns A promise whose internal state matches the provided promise.\n */\n resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;\n}\n\ndeclare var Promise: PromiseConstructor;\n',S["lib.es2015.proxy.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface ProxyHandler<T extends object> {\n /**\n * A trap method for a function call.\n * @param target The original callable object which is being proxied.\n */\n apply?(target: T, thisArg: any, argArray: any[]): any;\n\n /**\n * A trap for the `new` operator.\n * @param target The original object which is being proxied.\n * @param newTarget The constructor that was originally called.\n */\n construct?(target: T, argArray: any[], newTarget: Function): object;\n\n /**\n * A trap for `Object.defineProperty()`.\n * @param target The original object which is being proxied.\n * @returns A `Boolean` indicating whether or not the property has been defined.\n */\n defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean;\n\n /**\n * A trap for the `delete` operator.\n * @param target The original object which is being proxied.\n * @param p The name or `Symbol` of the property to delete.\n * @returns A `Boolean` indicating whether or not the property was deleted.\n */\n deleteProperty?(target: T, p: string | symbol): boolean;\n\n /**\n * A trap for getting a property value.\n * @param target The original object which is being proxied.\n * @param p The name or `Symbol` of the property to get.\n * @param receiver The proxy or an object that inherits from the proxy.\n */\n get?(target: T, p: string | symbol, receiver: any): any;\n\n /**\n * A trap for `Object.getOwnPropertyDescriptor()`.\n * @param target The original object which is being proxied.\n * @param p The name of the property whose description should be retrieved.\n */\n getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;\n\n /**\n * A trap for the `[[GetPrototypeOf]]` internal method.\n * @param target The original object which is being proxied.\n */\n getPrototypeOf?(target: T): object | null;\n\n /**\n * A trap for the `in` operator.\n * @param target The original object which is being proxied.\n * @param p The name or `Symbol` of the property to check for existence.\n */\n has?(target: T, p: string | symbol): boolean;\n\n /**\n * A trap for `Object.isExtensible()`.\n * @param target The original object which is being proxied.\n */\n isExtensible?(target: T): boolean;\n\n /**\n * A trap for `Reflect.ownKeys()`.\n * @param target The original object which is being proxied.\n */\n ownKeys?(target: T): ArrayLike<string | symbol>;\n\n /**\n * A trap for `Object.preventExtensions()`.\n * @param target The original object which is being proxied.\n */\n preventExtensions?(target: T): boolean;\n\n /**\n * A trap for setting a property value.\n * @param target The original object which is being proxied.\n * @param p The name or `Symbol` of the property to set.\n * @param receiver The object to which the assignment was originally directed.\n * @returns A `Boolean` indicating whether or not the property was set.\n */\n set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean;\n\n /**\n * A trap for `Object.setPrototypeOf()`.\n * @param target The original object which is being proxied.\n * @param newPrototype The object\'s new prototype or `null`.\n */\n setPrototypeOf?(target: T, v: object | null): boolean;\n}\n\ninterface ProxyConstructor {\n /**\n * Creates a revocable Proxy object.\n * @param target A target object to wrap with Proxy.\n * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.\n */\n revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };\n\n /**\n * Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the\n * original object, but which may redefine fundamental Object operations like getting, setting, and defining\n * properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs.\n * @param target A target object to wrap with Proxy.\n * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.\n */\n new <T extends object>(target: T, handler: ProxyHandler<T>): T;\n}\ndeclare var Proxy: ProxyConstructor;\n',S["lib.es2015.reflect.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Reflect {\n /**\n * Calls the function with the specified object as the this value\n * and the elements of specified array as the arguments.\n * @param target The function to call.\n * @param thisArgument The object to be used as the this object.\n * @param argumentsList An array of argument values to be passed to the function.\n */\n function apply<T, A extends readonly any[], R>(\n target: (this: T, ...args: A) => R,\n thisArgument: T,\n argumentsList: Readonly<A>,\n ): R;\n function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;\n\n /**\n * Constructs the target with the elements of specified array as the arguments\n * and the specified constructor as the `new.target` value.\n * @param target The constructor to invoke.\n * @param argumentsList An array of argument values to be passed to the constructor.\n * @param newTarget The constructor to be used as the `new.target` object.\n */\n function construct<A extends readonly any[], R>(\n target: new (...args: A) => R,\n argumentsList: Readonly<A>,\n newTarget?: new (...args: any) => any,\n ): R;\n function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;\n\n /**\n * Adds a property to an object, or modifies attributes of an existing property.\n * @param target Object on which to add or modify the property. This can be a native JavaScript object\n * (that is, a user-defined object or a built in object) or a DOM object.\n * @param propertyKey The property name.\n * @param attributes Descriptor for the property. It can be for a data property or an accessor property.\n */\n function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean;\n\n /**\n * Removes a property from an object, equivalent to `delete target[propertyKey]`,\n * except it won\'t throw if `target[propertyKey]` is non-configurable.\n * @param target Object from which to remove the own property.\n * @param propertyKey The property name.\n */\n function deleteProperty(target: object, propertyKey: PropertyKey): boolean;\n\n /**\n * Gets the property of target, equivalent to `target[propertyKey]` when `receiver === target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey The property name.\n * @param receiver The reference to use as the `this` value in the getter function,\n * if `target[propertyKey]` is an accessor property.\n */\n function get<T extends object, P extends PropertyKey>(\n target: T,\n propertyKey: P,\n receiver?: unknown,\n ): P extends keyof T ? T[P] : any;\n\n /**\n * Gets the own property descriptor of the specified object.\n * An own property descriptor is one that is defined directly on the object and is not inherited from the object\'s prototype.\n * @param target Object that contains the property.\n * @param propertyKey The property name.\n */\n function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>(\n target: T,\n propertyKey: P,\n ): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined;\n\n /**\n * Returns the prototype of an object.\n * @param target The object that references the prototype.\n */\n function getPrototypeOf(target: object): object | null;\n\n /**\n * Equivalent to `propertyKey in target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey Name of the property.\n */\n function has(target: object, propertyKey: PropertyKey): boolean;\n\n /**\n * Returns a value that indicates whether new properties can be added to an object.\n * @param target Object to test.\n */\n function isExtensible(target: object): boolean;\n\n /**\n * Returns the string and symbol keys of the own properties of an object. The own properties of an object\n * are those that are defined directly on that object, and are not inherited from the object\'s prototype.\n * @param target Object that contains the own properties.\n */\n function ownKeys(target: object): (string | symbol)[];\n\n /**\n * Prevents the addition of new properties to an object.\n * @param target Object to make non-extensible.\n * @return Whether the object has been made non-extensible.\n */\n function preventExtensions(target: object): boolean;\n\n /**\n * Sets the property of target, equivalent to `target[propertyKey] = value` when `receiver === target`.\n * @param target Object that contains the property on itself or in its prototype chain.\n * @param propertyKey Name of the property.\n * @param receiver The reference to use as the `this` value in the setter function,\n * if `target[propertyKey]` is an accessor property.\n */\n function set<T extends object, P extends PropertyKey>(\n target: T,\n propertyKey: P,\n value: P extends keyof T ? T[P] : any,\n receiver?: any,\n ): boolean;\n function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;\n\n /**\n * Sets the prototype of a specified object o to object proto or null.\n * @param target The object to change its prototype.\n * @param proto The value of the new prototype or null.\n * @return Whether setting the prototype was successful.\n */\n function setPrototypeOf(target: object, proto: object | null): boolean;\n}\n',S["lib.es2015.symbol.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface SymbolConstructor {\n /**\n * A reference to the prototype.\n */\n readonly prototype: Symbol;\n\n /**\n * Returns a new unique Symbol value.\n * @param description Description of the new Symbol object.\n */\n (description?: string | number): symbol;\n\n /**\n * Returns a Symbol object from the global symbol registry matching the given key if found.\n * Otherwise, returns a new symbol with this key.\n * @param key key to search for.\n */\n for(key: string): symbol;\n\n /**\n * Returns a key from the global symbol registry matching the given Symbol if found.\n * Otherwise, returns a undefined.\n * @param sym Symbol to find the key for.\n */\n keyFor(sym: symbol): string | undefined;\n}\n\ndeclare var Symbol: SymbolConstructor;\n',S["lib.es2015.symbol.wellknown.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol" />\n\ninterface SymbolConstructor {\n /**\n * A method that determines if a constructor object recognizes an object as one of the\n * constructor\u2019s instances. Called by the semantics of the instanceof operator.\n */\n readonly hasInstance: unique symbol;\n\n /**\n * A Boolean value that if true indicates that an object should flatten to its array elements\n * by Array.prototype.concat.\n */\n readonly isConcatSpreadable: unique symbol;\n\n /**\n * A regular expression method that matches the regular expression against a string. Called\n * by the String.prototype.match method.\n */\n readonly match: unique symbol;\n\n /**\n * A regular expression method that replaces matched substrings of a string. Called by the\n * String.prototype.replace method.\n */\n readonly replace: unique symbol;\n\n /**\n * A regular expression method that returns the index within a string that matches the\n * regular expression. Called by the String.prototype.search method.\n */\n readonly search: unique symbol;\n\n /**\n * A function valued property that is the constructor function that is used to create\n * derived objects.\n */\n readonly species: unique symbol;\n\n /**\n * A regular expression method that splits a string at the indices that match the regular\n * expression. Called by the String.prototype.split method.\n */\n readonly split: unique symbol;\n\n /**\n * A method that converts an object to a corresponding primitive value.\n * Called by the ToPrimitive abstract operation.\n */\n readonly toPrimitive: unique symbol;\n\n /**\n * A String value that is used in the creation of the default string description of an object.\n * Called by the built-in method Object.prototype.toString.\n */\n readonly toStringTag: unique symbol;\n\n /**\n * An Object whose truthy properties are properties that are excluded from the \'with\'\n * environment bindings of the associated objects.\n */\n readonly unscopables: unique symbol;\n}\n\ninterface Symbol {\n /**\n * Converts a Symbol object to a symbol.\n */\n [Symbol.toPrimitive](hint: string): symbol;\n\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Array<T> {\n /**\n * Is an object whose properties have the value \'true\'\n * when they will be absent when used in a \'with\' statement.\n */\n readonly [Symbol.unscopables]: {\n [K in keyof any[]]?: boolean;\n };\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Is an object whose properties have the value \'true\'\n * when they will be absent when used in a \'with\' statement.\n */\n readonly [Symbol.unscopables]: {\n [K in keyof readonly any[]]?: boolean;\n };\n}\n\ninterface Date {\n /**\n * Converts a Date object to a string.\n */\n [Symbol.toPrimitive](hint: "default"): string;\n /**\n * Converts a Date object to a string.\n */\n [Symbol.toPrimitive](hint: "string"): string;\n /**\n * Converts a Date object to a number.\n */\n [Symbol.toPrimitive](hint: "number"): number;\n /**\n * Converts a Date object to a string or number.\n *\n * @param hint The strings "number", "string", or "default" to specify what primitive to return.\n *\n * @throws {TypeError} If \'hint\' was given something other than "number", "string", or "default".\n * @returns A number if \'hint\' was "number", a string if \'hint\' was "string" or "default".\n */\n [Symbol.toPrimitive](hint: string): string | number;\n}\n\ninterface Map<K, V> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface WeakMap<K extends WeakKey, V> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Set<T> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface WeakSet<T extends WeakKey> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface JSON {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Function {\n /**\n * Determines whether the given value inherits from this function if this function was used\n * as a constructor function.\n *\n * A constructor function can control which objects are recognized as its instances by\n * \'instanceof\' by overriding this method.\n */\n [Symbol.hasInstance](value: any): boolean;\n}\n\ninterface GeneratorFunction {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Math {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Promise<T> {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface PromiseConstructor {\n readonly [Symbol.species]: PromiseConstructor;\n}\n\ninterface RegExp {\n /**\n * Matches a string with this regular expression, and returns an array containing the results of\n * that search.\n * @param string A string to search within.\n */\n [Symbol.match](string: string): RegExpMatchArray | null;\n\n /**\n * Replaces text in a string, using this regular expression.\n * @param string A String object or string literal whose contents matching against\n * this regular expression will be replaced\n * @param replaceValue A String object or string literal containing the text to replace for every\n * successful match of this regular expression.\n */\n [Symbol.replace](string: string, replaceValue: string): string;\n\n /**\n * Replaces text in a string, using this regular expression.\n * @param string A String object or string literal whose contents matching against\n * this regular expression will be replaced\n * @param replacer A function that returns the replacement text.\n */\n [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;\n\n /**\n * Finds the position beginning first substring match in a regular expression search\n * using this regular expression.\n *\n * @param string The string to search within.\n */\n [Symbol.search](string: string): number;\n\n /**\n * Returns an array of substrings that were delimited by strings in the original input that\n * match against this regular expression.\n *\n * If the regular expression contains capturing parentheses, then each time this\n * regular expression matches, the results (including any undefined results) of the\n * capturing parentheses are spliced.\n *\n * @param string string value to split\n * @param limit if not undefined, the output array is truncated so that it contains no more\n * than \'limit\' elements.\n */\n [Symbol.split](string: string, limit?: number): string[];\n}\n\ninterface RegExpConstructor {\n readonly [Symbol.species]: RegExpConstructor;\n}\n\ninterface String {\n /**\n * Matches a string or an object that supports being matched against, and returns an array\n * containing the results of that search, or null if no matches are found.\n * @param matcher An object that supports being matched against.\n */\n match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;\n\n /**\n * Passes a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.\n * @param searchValue An object that supports searching for and replacing matches within a string.\n * @param replaceValue The replacement text.\n */\n replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;\n\n /**\n * Replaces text in a string, using an object that supports replacement within a string.\n * @param searchValue A object can search for and replace matches within a string.\n * @param replacer A function that returns the replacement text.\n */\n replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;\n\n /**\n * Finds the first substring match in a regular expression search.\n * @param searcher An object which supports searching within a string.\n */\n search(searcher: { [Symbol.search](string: string): number; }): number;\n\n /**\n * Split a string into substrings using the specified separator and return them as an array.\n * @param splitter An object that can split a string.\n * @param limit A value used to limit the number of elements returned in the array.\n */\n split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];\n}\n\ninterface ArrayBuffer {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface DataView {\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface Int8Array {\n readonly [Symbol.toStringTag]: "Int8Array";\n}\n\ninterface Uint8Array {\n readonly [Symbol.toStringTag]: "Uint8Array";\n}\n\ninterface Uint8ClampedArray {\n readonly [Symbol.toStringTag]: "Uint8ClampedArray";\n}\n\ninterface Int16Array {\n readonly [Symbol.toStringTag]: "Int16Array";\n}\n\ninterface Uint16Array {\n readonly [Symbol.toStringTag]: "Uint16Array";\n}\n\ninterface Int32Array {\n readonly [Symbol.toStringTag]: "Int32Array";\n}\n\ninterface Uint32Array {\n readonly [Symbol.toStringTag]: "Uint32Array";\n}\n\ninterface Float32Array {\n readonly [Symbol.toStringTag]: "Float32Array";\n}\n\ninterface Float64Array {\n readonly [Symbol.toStringTag]: "Float64Array";\n}\n\ninterface ArrayConstructor {\n readonly [Symbol.species]: ArrayConstructor;\n}\ninterface MapConstructor {\n readonly [Symbol.species]: MapConstructor;\n}\ninterface SetConstructor {\n readonly [Symbol.species]: SetConstructor;\n}\ninterface ArrayBufferConstructor {\n readonly [Symbol.species]: ArrayBufferConstructor;\n}\n',S["lib.es2016.array.include.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Array<T> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: T, fromIndex?: number): boolean;\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: T, fromIndex?: number): boolean;\n}\n\ninterface Int8Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint8Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint8ClampedArray {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Int16Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint16Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Int32Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Uint32Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Float32Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n\ninterface Float64Array {\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: number, fromIndex?: number): boolean;\n}\n',S["lib.es2016.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015" />\n/// <reference lib="es2016.array.include" />\n/// <reference lib="es2016.intl" />\n',S["lib.es2016.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2016" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',S["lib.es2016.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n /**\n * The `Intl.getCanonicalLocales()` method returns an array containing\n * the canonical locale names. Duplicates will be omitted and elements\n * will be validated as structurally valid language tags.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales)\n *\n * @param locale A list of String values for which to get the canonical locale names\n * @returns An array containing the canonical and validated locale names.\n */\n function getCanonicalLocales(locale?: string | readonly string[]): string[];\n}\n',S["lib.es2017.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2016" />\n/// <reference lib="es2017.object" />\n/// <reference lib="es2017.sharedmemory" />\n/// <reference lib="es2017.string" />\n/// <reference lib="es2017.intl" />\n/// <reference lib="es2017.typedarrays" />\n/// <reference lib="es2017.date" />\n',S["lib.es2017.date.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface DateConstructor {\n /**\n * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.\n * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.\n * @param monthIndex The month as a number between 0 and 11 (January to December).\n * @param date The date as a number between 1 and 31.\n * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.\n * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.\n * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.\n * @param ms A number from 0 to 999 that specifies the milliseconds.\n */\n UTC(year: number, monthIndex?: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;\n}\n',S["lib.es2017.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2017" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n',S["lib.es2017.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n interface DateTimeFormatPartTypesRegistry {\n day: any;\n dayPeriod: any;\n era: any;\n hour: any;\n literal: any;\n minute: any;\n month: any;\n second: any;\n timeZoneName: any;\n weekday: any;\n year: any;\n }\n\n type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;\n\n interface DateTimeFormatPart {\n type: DateTimeFormatPartTypes;\n value: string;\n }\n\n interface DateTimeFormat {\n formatToParts(date?: Date | number): DateTimeFormatPart[];\n }\n}\n',S["lib.es2017.object.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface ObjectConstructor {\n /**\n * Returns an array of values of the enumerable properties of an object\n * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n */\n values<T>(o: { [s: string]: T; } | ArrayLike<T>): T[];\n\n /**\n * Returns an array of values of the enumerable properties of an object\n * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n */\n values(o: {}): any[];\n\n /**\n * Returns an array of key/values of the enumerable properties of an object\n * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n */\n entries<T>(o: { [s: string]: T; } | ArrayLike<T>): [string, T][];\n\n /**\n * Returns an array of key/values of the enumerable properties of an object\n * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n */\n entries(o: {}): [string, any][];\n\n /**\n * Returns an object containing all own property descriptors of an object\n * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n */\n getOwnPropertyDescriptors<T>(o: T): { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & { [x: string]: PropertyDescriptor; };\n}\n',S["lib.es2017.sharedmemory.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.symbol.wellknown" />\n\ninterface SharedArrayBuffer {\n /**\n * Read-only. The length of the ArrayBuffer (in bytes).\n */\n readonly byteLength: number;\n\n /**\n * Returns a section of an SharedArrayBuffer.\n */\n slice(begin: number, end?: number): SharedArrayBuffer;\n readonly [Symbol.species]: SharedArrayBuffer;\n readonly [Symbol.toStringTag]: "SharedArrayBuffer";\n}\n\ninterface SharedArrayBufferConstructor {\n readonly prototype: SharedArrayBuffer;\n new (byteLength: number): SharedArrayBuffer;\n}\ndeclare var SharedArrayBuffer: SharedArrayBufferConstructor;\n\ninterface ArrayBufferTypes {\n SharedArrayBuffer: SharedArrayBuffer;\n}\n\ninterface Atomics {\n /**\n * Adds a value to the value at the given position in the array, returning the original value.\n * Until this atomic operation completes, any other read or write operation against the array\n * will block.\n */\n add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Stores the bitwise AND of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or\n * write operation against the array will block.\n */\n and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Replaces the value at the given position in the array if the original value equals the given\n * expected value, returning the original value. Until this atomic operation completes, any\n * other read or write operation against the array will block.\n */\n compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;\n\n /**\n * Replaces the value at the given position in the array, returning the original value. Until\n * this atomic operation completes, any other read or write operation against the array will\n * block.\n */\n exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Returns a value indicating whether high-performance algorithms can use atomic operations\n * (`true`) or must use locks (`false`) for the given number of bytes-per-element of a typed\n * array.\n */\n isLockFree(size: number): boolean;\n\n /**\n * Returns the value at the given position in the array. Until this atomic operation completes,\n * any other read or write operation against the array will block.\n */\n load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;\n\n /**\n * Stores the bitwise OR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Stores a value at the given position in the array, returning the new value. Until this\n * atomic operation completes, any other read or write operation against the array will block.\n */\n store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * Subtracts a value from the value at the given position in the array, returning the original\n * value. Until this atomic operation completes, any other read or write operation against the\n * array will block.\n */\n sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n /**\n * If the value at the given position in the array is equal to the provided value, the current\n * agent is put to sleep causing execution to suspend until the timeout expires (returning\n * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns\n * `"not-equal"`.\n */\n wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";\n\n /**\n * Wakes up sleeping agents that are waiting on the given index of the array, returning the\n * number of agents that were awoken.\n * @param typedArray A shared Int32Array.\n * @param index The position in the typedArray to wake up on.\n * @param count The number of sleeping agents to notify. Defaults to +Infinity.\n */\n notify(typedArray: Int32Array, index: number, count?: number): number;\n\n /**\n * Stores the bitwise XOR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;\n\n readonly [Symbol.toStringTag]: "Atomics";\n}\n\ndeclare var Atomics: Atomics;\n',S["lib.es2017.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface String {\n /**\n * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\n * The padding is applied from the start (left) of the current string.\n *\n * @param maxLength The length of the resulting string once the current string has been padded.\n * If this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n *\n * @param fillString The string to pad the current string with.\n * If this string is too long, it will be truncated and the left-most part will be applied.\n * The default value for this parameter is " " (U+0020).\n */\n padStart(maxLength: number, fillString?: string): string;\n\n /**\n * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\n * The padding is applied from the end (right) of the current string.\n *\n * @param maxLength The length of the resulting string once the current string has been padded.\n * If this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n *\n * @param fillString The string to pad the current string with.\n * If this string is too long, it will be truncated and the left-most part will be applied.\n * The default value for this parameter is " " (U+0020).\n */\n padEnd(maxLength: number, fillString?: string): string;\n}\n',S["lib.es2017.typedarrays.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Int8ArrayConstructor {\n new (): Int8Array;\n}\n\ninterface Uint8ArrayConstructor {\n new (): Uint8Array;\n}\n\ninterface Uint8ClampedArrayConstructor {\n new (): Uint8ClampedArray;\n}\n\ninterface Int16ArrayConstructor {\n new (): Int16Array;\n}\n\ninterface Uint16ArrayConstructor {\n new (): Uint16Array;\n}\n\ninterface Int32ArrayConstructor {\n new (): Int32Array;\n}\n\ninterface Uint32ArrayConstructor {\n new (): Uint32Array;\n}\n\ninterface Float32ArrayConstructor {\n new (): Float32Array;\n}\n\ninterface Float64ArrayConstructor {\n new (): Float64Array;\n}\n',S["lib.es2018.asyncgenerator.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2018.asynciterable" />\n\ninterface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;\n return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;\n throw(e: any): Promise<IteratorResult<T, TReturn>>;\n [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;\n}\n\ninterface AsyncGeneratorFunction {\n /**\n * Creates a new AsyncGenerator object.\n * @param args A list of arguments the function accepts.\n */\n new (...args: any[]): AsyncGenerator;\n /**\n * Creates a new AsyncGenerator object.\n * @param args A list of arguments the function accepts.\n */\n (...args: any[]): AsyncGenerator;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: AsyncGenerator;\n}\n\ninterface AsyncGeneratorFunctionConstructor {\n /**\n * Creates a new AsyncGenerator function.\n * @param args A list of arguments the function accepts.\n */\n new (...args: string[]): AsyncGeneratorFunction;\n /**\n * Creates a new AsyncGenerator function.\n * @param args A list of arguments the function accepts.\n */\n (...args: string[]): AsyncGeneratorFunction;\n /**\n * The length of the arguments.\n */\n readonly length: number;\n /**\n * Returns the name of the function.\n */\n readonly name: string;\n /**\n * A reference to the prototype.\n */\n readonly prototype: AsyncGeneratorFunction;\n}\n',S["lib.es2018.asynciterable.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol" />\n/// <reference lib="es2015.iterable" />\n\ninterface SymbolConstructor {\n /**\n * A method that returns the default async iterator for an object. Called by the semantics of\n * the for-await-of statement.\n */\n readonly asyncIterator: unique symbol;\n}\n\ninterface AsyncIterator<T, TReturn = any, TNext = undefined> {\n // NOTE: \'next\' is defined using a tuple to ensure we report the correct assignability errors in all places.\n next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;\n return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;\n throw?(e?: any): Promise<IteratorResult<T, TReturn>>;\n}\n\ninterface AsyncIterable<T> {\n [Symbol.asyncIterator](): AsyncIterator<T>;\n}\n\ninterface AsyncIterableIterator<T> extends AsyncIterator<T> {\n [Symbol.asyncIterator](): AsyncIterableIterator<T>;\n}\n',S["lib.es2018.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2017" />\n/// <reference lib="es2018.asynciterable" />\n/// <reference lib="es2018.asyncgenerator" />\n/// <reference lib="es2018.promise" />\n/// <reference lib="es2018.regexp" />\n/// <reference lib="es2018.intl" />\n',S["lib.es2018.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2018" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',S["lib.es2018.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n // http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories\n type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";\n type PluralRuleType = "cardinal" | "ordinal";\n\n interface PluralRulesOptions {\n localeMatcher?: "lookup" | "best fit" | undefined;\n type?: PluralRuleType | undefined;\n minimumIntegerDigits?: number | undefined;\n minimumFractionDigits?: number | undefined;\n maximumFractionDigits?: number | undefined;\n minimumSignificantDigits?: number | undefined;\n maximumSignificantDigits?: number | undefined;\n }\n\n interface ResolvedPluralRulesOptions {\n locale: string;\n pluralCategories: LDMLPluralRule[];\n type: PluralRuleType;\n minimumIntegerDigits: number;\n minimumFractionDigits: number;\n maximumFractionDigits: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n }\n\n interface PluralRules {\n resolvedOptions(): ResolvedPluralRulesOptions;\n select(n: number): LDMLPluralRule;\n }\n\n interface PluralRulesConstructor {\n new (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;\n (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;\n supportedLocalesOf(locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];\n }\n\n const PluralRules: PluralRulesConstructor;\n\n // We can only have one definition for \'type\' in TypeScript, and so you can learn where the keys come from here:\n type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";\n type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";\n type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;\n\n interface NumberFormatPart {\n type: NumberFormatPartTypes;\n value: string;\n }\n\n interface NumberFormat {\n formatToParts(number?: number | bigint): NumberFormatPart[];\n }\n}\n',S["lib.es2018.promise.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The\n * resolved value cannot be modified from the callback.\n * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).\n * @returns A Promise for the completion of the callback.\n */\n finally(onfinally?: (() => void) | undefined | null): Promise<T>;\n}\n',S["lib.es2018.regexp.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface RegExpMatchArray {\n groups?: {\n [key: string]: string;\n };\n}\n\ninterface RegExpExecArray {\n groups?: {\n [key: string]: string;\n };\n}\n\ninterface RegExp {\n /**\n * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.\n * Default is false. Read-only.\n */\n readonly dotAll: boolean;\n}\n',S["lib.es2019.array.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ntype FlatArray<Arr, Depth extends number> = {\n done: Arr;\n recur: Arr extends ReadonlyArray<infer InnerArr> ? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]>\n : Arr;\n}[Depth extends -1 ? "done" : "recur"];\n\ninterface ReadonlyArray<T> {\n /**\n * Calls a defined callback function on each element of an array. Then, flattens the result into\n * a new array.\n * This is identical to a map followed by flat with depth 1.\n *\n * @param callback A function that accepts up to three arguments. The flatMap method calls the\n * callback function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callback function. If\n * thisArg is omitted, undefined is used as the this value.\n */\n flatMap<U, This = undefined>(\n callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,\n thisArg?: This,\n ): U[];\n\n /**\n * Returns a new array with all sub-array elements concatenated into it recursively up to the\n * specified depth.\n *\n * @param depth The maximum recursion depth\n */\n flat<A, D extends number = 1>(\n this: A,\n depth?: D,\n ): FlatArray<A, D>[];\n}\n\ninterface Array<T> {\n /**\n * Calls a defined callback function on each element of an array. Then, flattens the result into\n * a new array.\n * This is identical to a map followed by flat with depth 1.\n *\n * @param callback A function that accepts up to three arguments. The flatMap method calls the\n * callback function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callback function. If\n * thisArg is omitted, undefined is used as the this value.\n */\n flatMap<U, This = undefined>(\n callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,\n thisArg?: This,\n ): U[];\n\n /**\n * Returns a new array with all sub-array elements concatenated into it recursively up to the\n * specified depth.\n *\n * @param depth The maximum recursion depth\n */\n flat<A, D extends number = 1>(\n this: A,\n depth?: D,\n ): FlatArray<A, D>[];\n}\n',S["lib.es2019.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2018" />\n/// <reference lib="es2019.array" />\n/// <reference lib="es2019.object" />\n/// <reference lib="es2019.string" />\n/// <reference lib="es2019.symbol" />\n/// <reference lib="es2019.intl" />\n',S["lib.es2019.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2019" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',S["lib.es2019.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n interface DateTimeFormatPartTypesRegistry {\n unknown: any;\n }\n}\n',S["lib.es2019.object.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.iterable" />\n\ninterface ObjectConstructor {\n /**\n * Returns an object created by key-value entries for properties and methods\n * @param entries An iterable object that contains key-value entries for properties and methods.\n */\n fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T; };\n\n /**\n * Returns an object created by key-value entries for properties and methods\n * @param entries An iterable object that contains key-value entries for properties and methods.\n */\n fromEntries(entries: Iterable<readonly any[]>): any;\n}\n',S["lib.es2019.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface String {\n /** Removes the trailing white space and line terminator characters from a string. */\n trimEnd(): string;\n\n /** Removes the leading white space and line terminator characters from a string. */\n trimStart(): string;\n\n /**\n * Removes the leading white space and line terminator characters from a string.\n * @deprecated A legacy feature for browser compatibility. Use `trimStart` instead\n */\n trimLeft(): string;\n\n /**\n * Removes the trailing white space and line terminator characters from a string.\n * @deprecated A legacy feature for browser compatibility. Use `trimEnd` instead\n */\n trimRight(): string;\n}\n',S["lib.es2019.symbol.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Symbol {\n /**\n * Expose the [[Description]] internal slot of a symbol directly.\n */\n readonly description: string | undefined;\n}\n',S["lib.es2020.bigint.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020.intl" />\n\ninterface BigIntToLocaleStringOptions {\n /**\n * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.\n */\n localeMatcher?: string;\n /**\n * The formatting style to use , the default is "decimal".\n */\n style?: string;\n\n numberingSystem?: string;\n /**\n * The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.\n */\n unit?: string;\n\n /**\n * The unit formatting style to use in unit formatting, the defaults is "short".\n */\n unitDisplay?: string;\n\n /**\n * The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB \u2014 see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".\n */\n currency?: string;\n\n /**\n * How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".\n *\n * "symbol" to use a localized currency symbol such as \u20ac,\n *\n * "code" to use the ISO currency code,\n *\n * "name" to use a localized currency name such as "dollar"\n */\n currencyDisplay?: string;\n\n /**\n * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.\n */\n useGrouping?: boolean;\n\n /**\n * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.\n */\n minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn\'t provide that information).\n */\n minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;\n\n /**\n * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn\'t provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.\n */\n maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;\n\n /**\n * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.\n */\n minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.\n */\n maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;\n\n /**\n * The formatting that should be displayed for the number, the defaults is "standard"\n *\n * "standard" plain number formatting\n *\n * "scientific" return the order-of-magnitude for formatted number.\n *\n * "engineering" return the exponent of ten when divisible by three\n *\n * "compact" string representing exponent, defaults is using the "short" form\n */\n notation?: string;\n\n /**\n * used only when notation is "compact"\n */\n compactDisplay?: string;\n}\n\ninterface BigInt {\n /**\n * Returns a string representation of an object.\n * @param radix Specifies a radix for converting numeric values to strings.\n */\n toString(radix?: number): string;\n\n /** Returns a string representation appropriate to the host environment\'s current locale. */\n toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): bigint;\n\n readonly [Symbol.toStringTag]: "BigInt";\n}\n\ninterface BigIntConstructor {\n (value: bigint | boolean | number | string): bigint;\n readonly prototype: BigInt;\n\n /**\n * Interprets the low bits of a BigInt as a 2\'s-complement signed integer.\n * All higher bits are discarded.\n * @param bits The number of low bits to use\n * @param int The BigInt whose bits to extract\n */\n asIntN(bits: number, int: bigint): bigint;\n /**\n * Interprets the low bits of a BigInt as an unsigned integer.\n * All higher bits are discarded.\n * @param bits The number of low bits to use\n * @param int The BigInt whose bits to extract\n */\n asUintN(bits: number, int: bigint): bigint;\n}\n\ndeclare var BigInt: BigIntConstructor;\n\n/**\n * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated, an exception is raised.\n */\ninterface BigInt64Array {\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /** The ArrayBuffer instance referenced by the array. */\n readonly buffer: ArrayBufferLike;\n\n /** The length in bytes of the array. */\n readonly byteLength: number;\n\n /** The offset in bytes of the array. */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /** Yields index, value pairs for every entry in the array. */\n entries(): IterableIterator<[number, bigint]>;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns false,\n * or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: bigint, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;\n\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: bigint, fromIndex?: number): boolean;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: bigint, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /** Yields each index in the array. */\n keys(): IterableIterator<number>;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: bigint, fromIndex?: number): number;\n\n /** The length of the array. */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;\n\n /** Reverses the elements in the array. */\n reverse(): this;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<bigint>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array.\n */\n slice(start?: number, end?: number): BigInt64Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls the\n * predicate function for each element in the array until the predicate returns true, or until\n * the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts the array.\n * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.\n */\n sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;\n\n /**\n * Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): BigInt64Array;\n\n /** Converts the array to a string by using the current locale. */\n toLocaleString(): string;\n\n /** Returns a string representation of the array. */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): BigInt64Array;\n\n /** Yields each value in the array. */\n values(): IterableIterator<bigint>;\n\n [Symbol.iterator](): IterableIterator<bigint>;\n\n readonly [Symbol.toStringTag]: "BigInt64Array";\n\n [index: number]: bigint;\n}\n\ninterface BigInt64ArrayConstructor {\n readonly prototype: BigInt64Array;\n new (length?: number): BigInt64Array;\n new (array: Iterable<bigint>): BigInt64Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;\n\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: bigint[]): BigInt64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from(arrayLike: ArrayLike<bigint>): BigInt64Array;\n from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;\n}\n\ndeclare var BigInt64Array: BigInt64ArrayConstructor;\n\n/**\n * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated, an exception is raised.\n */\ninterface BigUint64Array {\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /** The ArrayBuffer instance referenced by the array. */\n readonly buffer: ArrayBufferLike;\n\n /** The length in bytes of the array. */\n readonly byteLength: number;\n\n /** The offset in bytes of the array. */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /** Yields index, value pairs for every entry in the array. */\n entries(): IterableIterator<[number, bigint]>;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns false,\n * or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: bigint, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;\n\n /**\n * Determines whether an array includes a certain element, returning true or false as appropriate.\n * @param searchElement The element to search for.\n * @param fromIndex The position in this array at which to begin searching for searchElement.\n */\n includes(searchElement: bigint, fromIndex?: number): boolean;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: bigint, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /** Yields each index in the array. */\n keys(): IterableIterator<number>;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: bigint, fromIndex?: number): number;\n\n /** The length of the array. */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;\n\n /** Reverses the elements in the array. */\n reverse(): this;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<bigint>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array.\n */\n slice(start?: number, end?: number): BigUint64Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls the\n * predicate function for each element in the array until the predicate returns true, or until\n * the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;\n\n /**\n * Sorts the array.\n * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.\n */\n sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;\n\n /**\n * Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): BigUint64Array;\n\n /** Converts the array to a string by using the current locale. */\n toLocaleString(): string;\n\n /** Returns a string representation of the array. */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): BigUint64Array;\n\n /** Yields each value in the array. */\n values(): IterableIterator<bigint>;\n\n [Symbol.iterator](): IterableIterator<bigint>;\n\n readonly [Symbol.toStringTag]: "BigUint64Array";\n\n [index: number]: bigint;\n}\n\ninterface BigUint64ArrayConstructor {\n readonly prototype: BigUint64Array;\n new (length?: number): BigUint64Array;\n new (array: Iterable<bigint>): BigUint64Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;\n\n /** The size in bytes of each element in the array. */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: bigint[]): BigUint64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from(arrayLike: ArrayLike<bigint>): BigUint64Array;\n from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;\n}\n\ndeclare var BigUint64Array: BigUint64ArrayConstructor;\n\ninterface DataView {\n /**\n * Gets the BigInt64 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;\n\n /**\n * Gets the BigUint64 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;\n\n /**\n * Stores a BigInt64 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;\n\n /**\n * Stores a BigUint64 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;\n}\n\ndeclare namespace Intl {\n interface NumberFormat {\n format(value: number | bigint): string;\n resolvedOptions(): ResolvedNumberFormatOptions;\n }\n}\n',S["lib.es2020.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2019" />\n/// <reference lib="es2020.bigint" />\n/// <reference lib="es2020.date" />\n/// <reference lib="es2020.number" />\n/// <reference lib="es2020.promise" />\n/// <reference lib="es2020.sharedmemory" />\n/// <reference lib="es2020.string" />\n/// <reference lib="es2020.symbol.wellknown" />\n/// <reference lib="es2020.intl" />\n',S["lib.es2020.date.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020.intl" />\n\ninterface Date {\n /**\n * Converts a date and time to a string by using the current or specified locale.\n * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;\n\n /**\n * Converts a date to a string by using the current or specified locale.\n * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleDateString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;\n\n /**\n * Converts a time to a string by using the current or specified locale.\n * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;\n}\n',S["lib.es2020.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',S["lib.es2020.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2018.intl" />\ndeclare namespace Intl {\n /**\n * A string that is a valid [Unicode BCP 47 Locale Identifier](https://unicode.org/reports/tr35/#Unicode_locale_identifier).\n *\n * For example: "fa", "es-MX", "zh-Hant-TW".\n *\n * See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).\n */\n type UnicodeBCP47LocaleIdentifier = string;\n\n /**\n * Unit to use in the relative time internationalized message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).\n */\n type RelativeTimeFormatUnit =\n | "year"\n | "years"\n | "quarter"\n | "quarters"\n | "month"\n | "months"\n | "week"\n | "weeks"\n | "day"\n | "days"\n | "hour"\n | "hours"\n | "minute"\n | "minutes"\n | "second"\n | "seconds";\n\n /**\n * Value of the `unit` property in objects returned by\n * `Intl.RelativeTimeFormat.prototype.formatToParts()`. `formatToParts` and\n * `format` methods accept either singular or plural unit names as input,\n * but `formatToParts` only outputs singular (e.g. "day") not plural (e.g.\n * "days").\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).\n */\n type RelativeTimeFormatUnitSingular =\n | "year"\n | "quarter"\n | "month"\n | "week"\n | "day"\n | "hour"\n | "minute"\n | "second";\n\n /**\n * The locale matching algorithm to use.\n *\n * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).\n */\n type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";\n\n /**\n * The format of output message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n */\n type RelativeTimeFormatNumeric = "always" | "auto";\n\n /**\n * The length of the internationalized message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n */\n type RelativeTimeFormatStyle = "long" | "short" | "narrow";\n\n /**\n * The locale or locales to use\n *\n * See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).\n */\n type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;\n\n /**\n * An object with some or all of properties of `options` parameter\n * of `Intl.RelativeTimeFormat` constructor.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).\n */\n interface RelativeTimeFormatOptions {\n /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */\n localeMatcher?: RelativeTimeFormatLocaleMatcher;\n /** The format of output message. */\n numeric?: RelativeTimeFormatNumeric;\n /** The length of the internationalized message. */\n style?: RelativeTimeFormatStyle;\n }\n\n /**\n * An object with properties reflecting the locale\n * and formatting options computed during initialization\n * of the `Intl.RelativeTimeFormat` object\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).\n */\n interface ResolvedRelativeTimeFormatOptions {\n locale: UnicodeBCP47LocaleIdentifier;\n style: RelativeTimeFormatStyle;\n numeric: RelativeTimeFormatNumeric;\n numberingSystem: string;\n }\n\n /**\n * An object representing the relative time format in parts\n * that can be used for custom locale-aware formatting.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).\n */\n type RelativeTimeFormatPart =\n | {\n type: "literal";\n value: string;\n }\n | {\n type: Exclude<NumberFormatPartTypes, "literal">;\n value: string;\n unit: RelativeTimeFormatUnitSingular;\n };\n\n interface RelativeTimeFormat {\n /**\n * Formats a value and a unit according to the locale\n * and formatting options of the given\n * [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)\n * object.\n *\n * While this method automatically provides the correct plural forms,\n * the grammatical form is otherwise as neutral as possible.\n *\n * It is the caller\'s responsibility to handle cut-off logic\n * such as deciding between displaying "in 7 days" or "in 1 week".\n * This API does not support relative dates involving compound units.\n * e.g "in 5 days and 4 hours".\n *\n * @param value - Numeric value to use in the internationalized relative time message\n *\n * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.\n *\n * @throws `RangeError` if `unit` was given something other than `unit` possible values\n *\n * @returns {string} Internationalized relative time message as string\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).\n */\n format(value: number, unit: RelativeTimeFormatUnit): string;\n\n /**\n * Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.\n *\n * @param value - Numeric value to use in the internationalized relative time message\n *\n * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.\n *\n * @throws `RangeError` if `unit` was given something other than `unit` possible values\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).\n */\n formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];\n\n /**\n * Provides access to the locale and options computed during initialization of this `Intl.RelativeTimeFormat` object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).\n */\n resolvedOptions(): ResolvedRelativeTimeFormatOptions;\n }\n\n /**\n * The [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)\n * object is a constructor for objects that enable language-sensitive relative time formatting.\n *\n * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).\n */\n const RelativeTimeFormat: {\n /**\n * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)\n * with some or all of options of `RelativeTimeFormatOptions`.\n *\n * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).\n */\n new (\n locales?: LocalesArgument,\n options?: RelativeTimeFormatOptions,\n ): RelativeTimeFormat;\n\n /**\n * Returns an array containing those of the provided locales\n * that are supported in date and time formatting\n * without having to fall back to the runtime\'s default locale.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)\n * with some or all of options of the formatting.\n *\n * @returns An array containing those of the provided locales\n * that are supported in date and time formatting\n * without having to fall back to the runtime\'s default locale.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).\n */\n supportedLocalesOf(\n locales?: LocalesArgument,\n options?: RelativeTimeFormatOptions,\n ): UnicodeBCP47LocaleIdentifier[];\n };\n\n interface NumberFormatOptions {\n compactDisplay?: "short" | "long" | undefined;\n notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;\n signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;\n unit?: string | undefined;\n unitDisplay?: "short" | "long" | "narrow" | undefined;\n currencyDisplay?: string | undefined;\n currencySign?: string | undefined;\n }\n\n interface ResolvedNumberFormatOptions {\n compactDisplay?: "short" | "long";\n notation?: "standard" | "scientific" | "engineering" | "compact";\n signDisplay?: "auto" | "never" | "always" | "exceptZero";\n unit?: string;\n unitDisplay?: "short" | "long" | "narrow";\n currencyDisplay?: string;\n currencySign?: string;\n }\n\n interface DateTimeFormatOptions {\n calendar?: string | undefined;\n dayPeriod?: "narrow" | "short" | "long" | undefined;\n numberingSystem?: string | undefined;\n\n dateStyle?: "full" | "long" | "medium" | "short" | undefined;\n timeStyle?: "full" | "long" | "medium" | "short" | undefined;\n hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;\n }\n\n type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";\n type LocaleCollationCaseFirst = "upper" | "lower" | "false";\n\n interface LocaleOptions {\n /** A string containing the language, and the script and region if available. */\n baseName?: string;\n /** The part of the Locale that indicates the locale\'s calendar era. */\n calendar?: string;\n /** Flag that defines whether case is taken into account for the locale\'s collation rules. */\n caseFirst?: LocaleCollationCaseFirst;\n /** The collation type used for sorting */\n collation?: string;\n /** The time keeping format convention used by the locale. */\n hourCycle?: LocaleHourCycleKey;\n /** The primary language subtag associated with the locale. */\n language?: string;\n /** The numeral system used by the locale. */\n numberingSystem?: string;\n /** Flag that defines whether the locale has special collation handling for numeric characters. */\n numeric?: boolean;\n /** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */\n region?: string;\n /** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */\n script?: string;\n }\n\n interface Locale extends LocaleOptions {\n /** A string containing the language, and the script and region if available. */\n baseName: string;\n /** The primary language subtag associated with the locale. */\n language: string;\n /** Gets the most likely values for the language, script, and region of the locale based on existing values. */\n maximize(): Locale;\n /** Attempts to remove information about the locale that would be added by calling `Locale.maximize()`. */\n minimize(): Locale;\n /** Returns the locale\'s full locale identifier string. */\n toString(): UnicodeBCP47LocaleIdentifier;\n }\n\n /**\n * Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)\n * objects\n *\n * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).\n * For the general form and interpretation of the locales argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.\n *\n * @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).\n */\n const Locale: {\n new (tag: UnicodeBCP47LocaleIdentifier | Locale, options?: LocaleOptions): Locale;\n };\n\n type DisplayNamesFallback =\n | "code"\n | "none";\n\n type DisplayNamesType =\n | "language"\n | "region"\n | "script"\n | "calendar"\n | "dateTimeField"\n | "currency";\n\n type DisplayNamesLanguageDisplay =\n | "dialect"\n | "standard";\n\n interface DisplayNamesOptions {\n localeMatcher?: RelativeTimeFormatLocaleMatcher;\n style?: RelativeTimeFormatStyle;\n type: DisplayNamesType;\n languageDisplay?: DisplayNamesLanguageDisplay;\n fallback?: DisplayNamesFallback;\n }\n\n interface ResolvedDisplayNamesOptions {\n locale: UnicodeBCP47LocaleIdentifier;\n style: RelativeTimeFormatStyle;\n type: DisplayNamesType;\n fallback: DisplayNamesFallback;\n languageDisplay?: DisplayNamesLanguageDisplay;\n }\n\n interface DisplayNames {\n /**\n * Receives a code and returns a string based on the locale and options provided when instantiating\n * [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)\n *\n * @param code The `code` to provide depends on the `type` passed to display name during creation:\n * - If the type is `"region"`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),\n * or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).\n * - If the type is `"script"`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).\n * - If the type is `"language"`, code should be a `languageCode` ["-" `scriptCode`] ["-" `regionCode` ] *("-" `variant` )\n * subsequence of the unicode_language_id grammar in [UTS 35\'s Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).\n * `languageCode` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.\n * - If the type is `"currency"`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).\n */\n of(code: string): string | undefined;\n /**\n * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current\n * [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).\n */\n resolvedOptions(): ResolvedDisplayNamesOptions;\n }\n\n /**\n * The [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)\n * object enables the consistent translation of language, region and script display names.\n *\n * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).\n */\n const DisplayNames: {\n prototype: DisplayNames;\n\n /**\n * @param locales A string with a BCP 47 language tag, or an array of such strings.\n * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)\n * page.\n *\n * @param options An object for setting up a display name.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).\n */\n new (locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;\n\n /**\n * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime\'s default locale.\n *\n * @param locales A string with a BCP 47 language tag, or an array of such strings.\n * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)\n * page.\n *\n * @param options An object with a locale matcher.\n *\n * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime\'s default locale.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).\n */\n supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): UnicodeBCP47LocaleIdentifier[];\n };\n\n interface CollatorConstructor {\n new (locales?: LocalesArgument, options?: CollatorOptions): Collator;\n (locales?: LocalesArgument, options?: CollatorOptions): Collator;\n supportedLocalesOf(locales: LocalesArgument, options?: CollatorOptions): string[];\n }\n\n interface DateTimeFormatConstructor {\n new (locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat;\n (locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat;\n supportedLocalesOf(locales: LocalesArgument, options?: DateTimeFormatOptions): string[];\n }\n\n interface NumberFormatConstructor {\n new (locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat;\n (locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat;\n supportedLocalesOf(locales: LocalesArgument, options?: NumberFormatOptions): string[];\n }\n\n interface PluralRulesConstructor {\n new (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;\n (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;\n\n supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: "lookup" | "best fit"; }): string[];\n }\n}\n',S["lib.es2020.number.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020.intl" />\n\ninterface Number {\n /**\n * Converts a number to a string by using the current or specified locale.\n * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;\n}\n',S["lib.es2020.promise.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface PromiseFulfilledResult<T> {\n status: "fulfilled";\n value: T;\n}\n\ninterface PromiseRejectedResult {\n status: "rejected";\n reason: any;\n}\n\ntype PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;\n\ninterface PromiseConstructor {\n /**\n * Creates a Promise that is resolved with an array of results when all\n * of the provided Promises resolve or reject.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>>; }>;\n\n /**\n * Creates a Promise that is resolved with an array of results when all\n * of the provided Promises resolve or reject.\n * @param values An array of Promises.\n * @returns A new Promise.\n */\n allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;\n}\n',S["lib.es2020.sharedmemory.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Atomics {\n /**\n * Adds a value to the value at the given position in the array, returning the original value.\n * Until this atomic operation completes, any other read or write operation against the array\n * will block.\n */\n add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Stores the bitwise AND of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or\n * write operation against the array will block.\n */\n and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Replaces the value at the given position in the array if the original value equals the given\n * expected value, returning the original value. Until this atomic operation completes, any\n * other read or write operation against the array will block.\n */\n compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;\n\n /**\n * Replaces the value at the given position in the array, returning the original value. Until\n * this atomic operation completes, any other read or write operation against the array will\n * block.\n */\n exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Returns the value at the given position in the array. Until this atomic operation completes,\n * any other read or write operation against the array will block.\n */\n load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;\n\n /**\n * Stores the bitwise OR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Stores a value at the given position in the array, returning the new value. Until this\n * atomic operation completes, any other read or write operation against the array will block.\n */\n store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * Subtracts a value from the value at the given position in the array, returning the original\n * value. Until this atomic operation completes, any other read or write operation against the\n * array will block.\n */\n sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n\n /**\n * If the value at the given position in the array is equal to the provided value, the current\n * agent is put to sleep causing execution to suspend until the timeout expires (returning\n * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns\n * `"not-equal"`.\n */\n wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";\n\n /**\n * Wakes up sleeping agents that are waiting on the given index of the array, returning the\n * number of agents that were awoken.\n * @param typedArray A shared BigInt64Array.\n * @param index The position in the typedArray to wake up on.\n * @param count The number of sleeping agents to notify. Defaults to +Infinity.\n */\n notify(typedArray: BigInt64Array, index: number, count?: number): number;\n\n /**\n * Stores the bitwise XOR of a value with the value at the given position in the array,\n * returning the original value. Until this atomic operation completes, any other read or write\n * operation against the array will block.\n */\n xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;\n}\n',S["lib.es2020.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.iterable" />\n\ninterface String {\n /**\n * Matches a string with a regular expression, and returns an iterable of matches\n * containing the results of that search.\n * @param regexp A variable name or string literal containing the regular expression pattern and flags.\n */\n matchAll(regexp: RegExp): IterableIterator<RegExpExecArray>;\n\n /** Converts all alphabetic characters to lowercase, taking into account the host environment\'s current locale. */\n toLocaleLowerCase(locales?: Intl.LocalesArgument): string;\n\n /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment\'s current locale. */\n toLocaleUpperCase(locales?: Intl.LocalesArgument): string;\n\n /**\n * Determines whether two strings are equivalent in the current or specified locale.\n * @param that String to compare to target string\n * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.\n * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.\n */\n localeCompare(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;\n}\n',S["lib.es2020.symbol.wellknown.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.iterable" />\n/// <reference lib="es2015.symbol" />\n\ninterface SymbolConstructor {\n /**\n * A regular expression method that matches the regular expression against a string. Called\n * by the String.prototype.matchAll method.\n */\n readonly matchAll: unique symbol;\n}\n\ninterface RegExp {\n /**\n * Matches a string with this regular expression, and returns an iterable of matches\n * containing the results of that search.\n * @param string A string to search within.\n */\n [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;\n}\n',S["lib.es2021.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2020" />\n/// <reference lib="es2021.promise" />\n/// <reference lib="es2021.string" />\n/// <reference lib="es2021.weakref" />\n/// <reference lib="es2021.intl" />\n',S["lib.es2021.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2021" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',S["lib.es2021.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n interface DateTimeFormatPartTypesRegistry {\n fractionalSecond: any;\n }\n\n interface DateTimeFormatOptions {\n formatMatcher?: "basic" | "best fit" | "best fit" | undefined;\n dateStyle?: "full" | "long" | "medium" | "short" | undefined;\n timeStyle?: "full" | "long" | "medium" | "short" | undefined;\n dayPeriod?: "narrow" | "short" | "long" | undefined;\n fractionalSecondDigits?: 1 | 2 | 3 | undefined;\n }\n\n interface DateTimeRangeFormatPart extends DateTimeFormatPart {\n source: "startRange" | "endRange" | "shared";\n }\n\n interface DateTimeFormat {\n formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;\n formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];\n }\n\n interface ResolvedDateTimeFormatOptions {\n formatMatcher?: "basic" | "best fit" | "best fit";\n dateStyle?: "full" | "long" | "medium" | "short";\n timeStyle?: "full" | "long" | "medium" | "short";\n hourCycle?: "h11" | "h12" | "h23" | "h24";\n dayPeriod?: "narrow" | "short" | "long";\n fractionalSecondDigits?: 1 | 2 | 3;\n }\n\n /**\n * The locale matching algorithm to use.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\n */\n type ListFormatLocaleMatcher = "lookup" | "best fit";\n\n /**\n * The format of output message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\n */\n type ListFormatType = "conjunction" | "disjunction" | "unit";\n\n /**\n * The length of the formatted message.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\n */\n type ListFormatStyle = "long" | "short" | "narrow";\n\n /**\n * An object with some or all properties of the `Intl.ListFormat` constructor `options` parameter.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).\n */\n interface ListFormatOptions {\n /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */\n localeMatcher?: ListFormatLocaleMatcher | undefined;\n /** The format of output message. */\n type?: ListFormatType | undefined;\n /** The length of the internationalized message. */\n style?: ListFormatStyle | undefined;\n }\n\n interface ResolvedListFormatOptions {\n locale: string;\n style: ListFormatStyle;\n type: ListFormatType;\n }\n\n interface ListFormat {\n /**\n * Returns a string with a language-specific representation of the list.\n *\n * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).\n *\n * @throws `TypeError` if `list` includes something other than the possible values.\n *\n * @returns {string} A language-specific formatted string representing the elements of the list.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).\n */\n format(list: Iterable<string>): string;\n\n /**\n * Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.\n *\n * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.\n *\n * @throws `TypeError` if `list` includes something other than the possible values.\n *\n * @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).\n */\n formatToParts(list: Iterable<string>): { type: "element" | "literal"; value: string; }[];\n\n /**\n * Returns a new object with properties reflecting the locale and style\n * formatting options computed during the construction of the current\n * `Intl.ListFormat` object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).\n */\n resolvedOptions(): ResolvedListFormatOptions;\n }\n\n const ListFormat: {\n prototype: ListFormat;\n\n /**\n * Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that\n * enable language-sensitive list formatting.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the `locales` argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)\n * with some or all options of `ListFormatOptions`.\n *\n * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).\n */\n new (locales?: LocalesArgument, options?: ListFormatOptions): ListFormat;\n\n /**\n * Returns an array containing those of the provided locales that are\n * supported in list formatting without having to fall back to the runtime\'s default locale.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the `locales` argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).\n * with some or all possible options.\n *\n * @returns An array of strings representing a subset of the given locale tags that are supported in list\n * formatting without having to fall back to the runtime\'s default locale.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).\n */\n supportedLocalesOf(locales: LocalesArgument, options?: Pick<ListFormatOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];\n };\n}\n',S["lib.es2021.promise.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface AggregateError extends Error {\n errors: any[];\n}\n\ninterface AggregateErrorConstructor {\n new (errors: Iterable<any>, message?: string): AggregateError;\n (errors: Iterable<any>, message?: string): AggregateError;\n readonly prototype: AggregateError;\n}\n\ndeclare var AggregateError: AggregateErrorConstructor;\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface PromiseConstructor {\n /**\n * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.\n * @param values An array or iterable of Promises.\n * @returns A new Promise.\n */\n any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;\n\n /**\n * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.\n * @param values An array or iterable of Promises.\n * @returns A new Promise.\n */\n any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;\n}\n',S["lib.es2021.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface String {\n /**\n * Replace all instances of a substring in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.\n */\n replaceAll(searchValue: string | RegExp, replaceValue: string): string;\n\n /**\n * Replace all instances of a substring in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replacer A function that returns the replacement text.\n */\n replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;\n}\n',S["lib.es2021.weakref.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface WeakRef<T extends WeakKey> {\n readonly [Symbol.toStringTag]: "WeakRef";\n\n /**\n * Returns the WeakRef instance\'s target value, or undefined if the target value has been\n * reclaimed.\n * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.\n */\n deref(): T | undefined;\n}\n\ninterface WeakRefConstructor {\n readonly prototype: WeakRef<any>;\n\n /**\n * Creates a WeakRef instance for the given target value.\n * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.\n * @param target The target value for the WeakRef instance.\n */\n new <T extends WeakKey>(target: T): WeakRef<T>;\n}\n\ndeclare var WeakRef: WeakRefConstructor;\n\ninterface FinalizationRegistry<T> {\n readonly [Symbol.toStringTag]: "FinalizationRegistry";\n\n /**\n * Registers a value with the registry.\n * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.\n * @param target The target value to register.\n * @param heldValue The value to pass to the finalizer for this value. This cannot be the\n * target value.\n * @param unregisterToken The token to pass to the unregister method to unregister the target\n * value. If not provided, the target cannot be unregistered.\n */\n register(target: WeakKey, heldValue: T, unregisterToken?: WeakKey): void;\n\n /**\n * Unregisters a value from the registry.\n * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.\n * @param unregisterToken The token that was used as the unregisterToken argument when calling\n * register to register the target value.\n */\n unregister(unregisterToken: WeakKey): void;\n}\n\ninterface FinalizationRegistryConstructor {\n readonly prototype: FinalizationRegistry<any>;\n\n /**\n * Creates a finalization registry with an associated cleanup callback\n * @param cleanupCallback The callback to call after a value in the registry has been reclaimed.\n */\n new <T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;\n}\n\ndeclare var FinalizationRegistry: FinalizationRegistryConstructor;\n',S["lib.es2022.array.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Array<T> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): T | undefined;\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): T | undefined;\n}\n\ninterface Int8Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Uint8Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Uint8ClampedArray {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Int16Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Uint16Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Int32Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Uint32Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Float32Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface Float64Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): number | undefined;\n}\n\ninterface BigInt64Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): bigint | undefined;\n}\n\ninterface BigUint64Array {\n /**\n * Returns the item located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): bigint | undefined;\n}\n',S["lib.es2022.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2021" />\n/// <reference lib="es2022.array" />\n/// <reference lib="es2022.error" />\n/// <reference lib="es2022.intl" />\n/// <reference lib="es2022.object" />\n/// <reference lib="es2022.sharedmemory" />\n/// <reference lib="es2022.string" />\n/// <reference lib="es2022.regexp" />\n',S["lib.es2022.error.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface ErrorOptions {\n cause?: unknown;\n}\n\ninterface Error {\n cause?: unknown;\n}\n\ninterface ErrorConstructor {\n new (message?: string, options?: ErrorOptions): Error;\n (message?: string, options?: ErrorOptions): Error;\n}\n\ninterface EvalErrorConstructor {\n new (message?: string, options?: ErrorOptions): EvalError;\n (message?: string, options?: ErrorOptions): EvalError;\n}\n\ninterface RangeErrorConstructor {\n new (message?: string, options?: ErrorOptions): RangeError;\n (message?: string, options?: ErrorOptions): RangeError;\n}\n\ninterface ReferenceErrorConstructor {\n new (message?: string, options?: ErrorOptions): ReferenceError;\n (message?: string, options?: ErrorOptions): ReferenceError;\n}\n\ninterface SyntaxErrorConstructor {\n new (message?: string, options?: ErrorOptions): SyntaxError;\n (message?: string, options?: ErrorOptions): SyntaxError;\n}\n\ninterface TypeErrorConstructor {\n new (message?: string, options?: ErrorOptions): TypeError;\n (message?: string, options?: ErrorOptions): TypeError;\n}\n\ninterface URIErrorConstructor {\n new (message?: string, options?: ErrorOptions): URIError;\n (message?: string, options?: ErrorOptions): URIError;\n}\n\ninterface AggregateErrorConstructor {\n new (\n errors: Iterable<any>,\n message?: string,\n options?: ErrorOptions,\n ): AggregateError;\n (\n errors: Iterable<any>,\n message?: string,\n options?: ErrorOptions,\n ): AggregateError;\n}\n',S["lib.es2022.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2022" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',S["lib.es2022.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n /**\n * An object with some or all properties of the `Intl.Segmenter` constructor `options` parameter.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)\n */\n interface SegmenterOptions {\n /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */\n localeMatcher?: "best fit" | "lookup" | undefined;\n /** The type of input to be split */\n granularity?: "grapheme" | "word" | "sentence" | undefined;\n }\n\n interface Segmenter {\n /**\n * Returns `Segments` object containing the segments of the input string, using the segmenter\'s locale and granularity.\n *\n * @param input - The text to be segmented as a `string`.\n *\n * @returns A new iterable Segments object containing the segments of the input string, using the segmenter\'s locale and granularity.\n */\n segment(input: string): Segments;\n resolvedOptions(): ResolvedSegmenterOptions;\n }\n\n interface ResolvedSegmenterOptions {\n locale: string;\n granularity: "grapheme" | "word" | "sentence";\n }\n\n interface Segments {\n /**\n * Returns an object describing the segment in the original string that includes the code unit at a specified index.\n *\n * @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to `0`.\n */\n containing(codeUnitIndex?: number): SegmentData;\n\n /** Returns an iterator to iterate over the segments. */\n [Symbol.iterator](): IterableIterator<SegmentData>;\n }\n\n interface SegmentData {\n /** A string containing the segment extracted from the original input string. */\n segment: string;\n /** The code unit index in the original input string at which the segment begins. */\n index: number;\n /** The complete input string that was segmented. */\n input: string;\n /**\n * A boolean value only if granularity is "word"; otherwise, undefined.\n * If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.\n */\n isWordLike?: boolean;\n }\n\n const Segmenter: {\n prototype: Segmenter;\n\n /**\n * Creates a new `Intl.Segmenter` object.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the `locales` argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)\n * with some or all options of `SegmenterOptions`.\n *\n * @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).\n */\n new (locales?: LocalesArgument, options?: SegmenterOptions): Segmenter;\n\n /**\n * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime\'s default locale.\n *\n * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.\n * For the general form and interpretation of the `locales` argument,\n * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n *\n * @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).\n * with some or all possible options.\n *\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)\n */\n supportedLocalesOf(locales: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];\n };\n\n /**\n * Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation.\n * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf)\n *\n * @param key A string indicating the category of values to return.\n * @returns A sorted array of the supported values.\n */\n function supportedValuesOf(key: "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"): string[];\n}\n',S["lib.es2022.object.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface ObjectConstructor {\n /**\n * Determines whether an object has a property with the specified name.\n * @param o An object.\n * @param v A property name.\n */\n hasOwn(o: object, v: PropertyKey): boolean;\n}\n',S["lib.es2022.regexp.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface RegExpMatchArray {\n indices?: RegExpIndicesArray;\n}\n\ninterface RegExpExecArray {\n indices?: RegExpIndicesArray;\n}\n\ninterface RegExpIndicesArray extends Array<[number, number]> {\n groups?: {\n [key: string]: [number, number];\n };\n}\n\ninterface RegExp {\n /**\n * Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression.\n * Default is false. Read-only.\n */\n readonly hasIndices: boolean;\n}\n',S["lib.es2022.sharedmemory.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface Atomics {\n /**\n * A non-blocking, asynchronous version of wait which is usable on the main thread.\n * Waits asynchronously on a shared memory location and returns a Promise\n * @param typedArray A shared Int32Array or BigInt64Array.\n * @param index The position in the typedArray to wait on.\n * @param value The expected value to test.\n * @param [timeout] The expected value to test.\n */\n waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; };\n\n /**\n * A non-blocking, asynchronous version of wait which is usable on the main thread.\n * Waits asynchronously on a shared memory location and returns a Promise\n * @param typedArray A shared Int32Array or BigInt64Array.\n * @param index The position in the typedArray to wait on.\n * @param value The expected value to test.\n * @param [timeout] The expected value to test.\n */\n waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; };\n}\n',S["lib.es2022.string.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface String {\n /**\n * Returns a new String consisting of the single UTF-16 code unit located at the specified index.\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\n at(index: number): string | undefined;\n}\n',S["lib.es2023.array.d.ts"]="/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\ninterface Array<T> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined;\n findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number;\n\n /**\n * Returns a copy of an array with its elements reversed.\n */\n toReversed(): T[];\n\n /**\n * Returns a copy of an array with its elements sorted.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]\n * ```\n */\n toSorted(compareFn?: (a: T, b: T) => number): T[];\n\n /**\n * Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @param items Elements to insert into the copied array in place of the deleted elements.\n * @returns The copied array.\n */\n toSpliced(start: number, deleteCount: number, ...items: T[]): T[];\n\n /**\n * Copies an array and removes elements while returning the remaining elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @returns A copy of the original array with the remaining elements.\n */\n toSpliced(start: number, deleteCount?: number): T[];\n\n /**\n * Copies an array, then overwrites the value at the provided index with the\n * given value. If the index is negative, then it replaces from the end\n * of the array.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to write into the copied array.\n * @returns The copied array with the updated value.\n */\n with(index: number, value: T): T[];\n}\n\ninterface ReadonlyArray<T> {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends T>(\n predicate: (value: T, index: number, array: readonly T[]) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (value: T, index: number, array: readonly T[]) => unknown,\n thisArg?: any,\n ): T | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(\n predicate: (value: T, index: number, array: readonly T[]) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copied array with all of its elements reversed.\n */\n toReversed(): T[];\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]\n * ```\n */\n toSorted(compareFn?: (a: T, b: T) => number): T[];\n\n /**\n * Copies an array and removes elements while, if necessary, inserting new elements in their place, returning the remaining elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @param items Elements to insert into the copied array in place of the deleted elements.\n * @returns A copy of the original array with the remaining elements.\n */\n toSpliced(start: number, deleteCount: number, ...items: T[]): T[];\n\n /**\n * Copies an array and removes elements while returning the remaining elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @returns A copy of the original array with the remaining elements.\n */\n toSpliced(start: number, deleteCount?: number): T[];\n\n /**\n * Copies an array, then overwrites the value at the provided index with the\n * given value. If the index is negative, then it replaces from the end\n * of the array\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: T): T[];\n}\n\ninterface Int8Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: Int8Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (value: number, index: number, array: Int8Array) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(\n predicate: (value: number, index: number, array: Int8Array) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Uint8Array;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Uint8Array.from([11, 2, 22, 1]);\n * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Uint8Array;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Uint8Array;\n}\n\ninterface Uint8Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: Uint8Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (value: number, index: number, array: Uint8Array) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(\n predicate: (value: number, index: number, array: Uint8Array) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Uint8Array;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Uint8Array.from([11, 2, 22, 1]);\n * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Uint8Array;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Uint8Array;\n}\n\ninterface Uint8ClampedArray {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: Uint8ClampedArray,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: Uint8ClampedArray,\n ) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(\n predicate: (\n value: number,\n index: number,\n array: Uint8ClampedArray,\n ) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Uint8ClampedArray;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Uint8ClampedArray.from([11, 2, 22, 1]);\n * myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Uint8ClampedArray;\n}\n\ninterface Int16Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: Int16Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (value: number, index: number, array: Int16Array) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(\n predicate: (value: number, index: number, array: Int16Array) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Int16Array;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Int16Array.from([11, 2, -22, 1]);\n * myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Int16Array;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Int16Array;\n}\n\ninterface Uint16Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: Uint16Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: Uint16Array,\n ) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(\n predicate: (\n value: number,\n index: number,\n array: Uint16Array,\n ) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Uint16Array;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Uint16Array.from([11, 2, 22, 1]);\n * myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Uint16Array;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Uint16Array;\n}\n\ninterface Int32Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: Int32Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (value: number, index: number, array: Int32Array) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(\n predicate: (value: number, index: number, array: Int32Array) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Int32Array;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Int32Array.from([11, 2, -22, 1]);\n * myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Int32Array;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Int32Array;\n}\n\ninterface Uint32Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: Uint32Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: Uint32Array,\n ) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(\n predicate: (\n value: number,\n index: number,\n array: Uint32Array,\n ) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Uint32Array;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Uint32Array.from([11, 2, 22, 1]);\n * myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Uint32Array;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Uint32Array;\n}\n\ninterface Float32Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: Float32Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: Float32Array,\n ) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(\n predicate: (\n value: number,\n index: number,\n array: Float32Array,\n ) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Float32Array;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Float32Array.from([11.25, 2, -22.5, 1]);\n * myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Float32Array;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Float32Array;\n}\n\ninterface Float64Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends number>(\n predicate: (\n value: number,\n index: number,\n array: Float64Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: number,\n index: number,\n array: Float64Array,\n ) => unknown,\n thisArg?: any,\n ): number | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(\n predicate: (\n value: number,\n index: number,\n array: Float64Array,\n ) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): Float64Array;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = Float64Array.from([11.25, 2, -22.5, 1]);\n * myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5]\n * ```\n */\n toSorted(compareFn?: (a: number, b: number) => number): Float64Array;\n\n /**\n * Copies the array and inserts the given number at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: number): Float64Array;\n}\n\ninterface BigInt64Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends bigint>(\n predicate: (\n value: bigint,\n index: number,\n array: BigInt64Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: bigint,\n index: number,\n array: BigInt64Array,\n ) => unknown,\n thisArg?: any,\n ): bigint | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(\n predicate: (\n value: bigint,\n index: number,\n array: BigInt64Array,\n ) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): BigInt64Array;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]);\n * myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n]\n * ```\n */\n toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array;\n\n /**\n * Copies the array and inserts the given bigint at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: bigint): BigInt64Array;\n}\n\ninterface BigUint64Array {\n /**\n * Returns the value of the last element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate findLast calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLast<S extends bigint>(\n predicate: (\n value: bigint,\n index: number,\n array: BigUint64Array,\n ) => value is S,\n thisArg?: any,\n ): S | undefined;\n findLast(\n predicate: (\n value: bigint,\n index: number,\n array: BigUint64Array,\n ) => unknown,\n thisArg?: any,\n ): bigint | undefined;\n\n /**\n * Returns the index of the last element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate findLastIndex calls predicate once for each element of the array, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findLastIndex(\n predicate: (\n value: bigint,\n index: number,\n array: BigUint64Array,\n ) => unknown,\n thisArg?: any,\n ): number;\n\n /**\n * Copies the array and returns the copy with the elements in reverse order.\n */\n toReversed(): BigUint64Array;\n\n /**\n * Copies and sorts the array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);\n * myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]\n * ```\n */\n toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array;\n\n /**\n * Copies the array and inserts the given bigint at the provided index.\n * @param index The index of the value to overwrite. If the index is\n * negative, then it replaces from the end of the array.\n * @param value The value to insert into the copied array.\n * @returns A copy of the original array with the inserted value.\n */\n with(index: number, value: bigint): BigUint64Array;\n}\n",S["lib.es2023.collection.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface WeakKeyTypes {\n symbol: symbol;\n}\n',S["lib.es2023.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2022" />\n/// <reference lib="es2023.array" />\n/// <reference lib="es2023.collection" />\n',S["lib.es2023.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2023" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',S["lib.es5.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="decorators" />\n/// <reference lib="decorators.legacy" />\n\n/////////////////////////////\n/// ECMAScript APIs\n/////////////////////////////\n\ndeclare var NaN: number;\ndeclare var Infinity: number;\n\n/**\n * Evaluates JavaScript code and executes it.\n * @param x A String value that contains valid JavaScript code.\n */\ndeclare function eval(x: string): any;\n\n/**\n * Converts a string to an integer.\n * @param string A string to convert into a number.\n * @param radix A value between 2 and 36 that specifies the base of the number in `string`.\n * If this argument is not supplied, strings with a prefix of \'0x\' are considered hexadecimal.\n * All other strings are considered decimal.\n */\ndeclare function parseInt(string: string, radix?: number): number;\n\n/**\n * Converts a string to a floating-point number.\n * @param string A string that contains a floating-point number.\n */\ndeclare function parseFloat(string: string): number;\n\n/**\n * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).\n * @param number A numeric value.\n */\ndeclare function isNaN(number: number): boolean;\n\n/**\n * Determines whether a supplied number is finite.\n * @param number Any numeric value.\n */\ndeclare function isFinite(number: number): boolean;\n\n/**\n * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).\n * @param encodedURI A value representing an encoded URI.\n */\ndeclare function decodeURI(encodedURI: string): string;\n\n/**\n * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).\n * @param encodedURIComponent A value representing an encoded URI component.\n */\ndeclare function decodeURIComponent(encodedURIComponent: string): string;\n\n/**\n * Encodes a text string as a valid Uniform Resource Identifier (URI)\n * @param uri A value representing an unencoded URI.\n */\ndeclare function encodeURI(uri: string): string;\n\n/**\n * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).\n * @param uriComponent A value representing an unencoded URI component.\n */\ndeclare function encodeURIComponent(uriComponent: string | number | boolean): string;\n\n/**\n * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.\n * @deprecated A legacy feature for browser compatibility\n * @param string A string value\n */\ndeclare function escape(string: string): string;\n\n/**\n * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.\n * @deprecated A legacy feature for browser compatibility\n * @param string A string value\n */\ndeclare function unescape(string: string): string;\n\ninterface Symbol {\n /** Returns a string representation of an object. */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): symbol;\n}\n\ndeclare type PropertyKey = string | number | symbol;\n\ninterface PropertyDescriptor {\n configurable?: boolean;\n enumerable?: boolean;\n value?: any;\n writable?: boolean;\n get?(): any;\n set?(v: any): void;\n}\n\ninterface PropertyDescriptorMap {\n [key: PropertyKey]: PropertyDescriptor;\n}\n\ninterface Object {\n /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */\n constructor: Function;\n\n /** Returns a string representation of an object. */\n toString(): string;\n\n /** Returns a date converted to a string using the current locale. */\n toLocaleString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Object;\n\n /**\n * Determines whether an object has a property with the specified name.\n * @param v A property name.\n */\n hasOwnProperty(v: PropertyKey): boolean;\n\n /**\n * Determines whether an object exists in another object\'s prototype chain.\n * @param v Another object whose prototype chain is to be checked.\n */\n isPrototypeOf(v: Object): boolean;\n\n /**\n * Determines whether a specified property is enumerable.\n * @param v A property name.\n */\n propertyIsEnumerable(v: PropertyKey): boolean;\n}\n\ninterface ObjectConstructor {\n new (value?: any): Object;\n (): any;\n (value: any): any;\n\n /** A reference to the prototype for a class of objects. */\n readonly prototype: Object;\n\n /**\n * Returns the prototype of an object.\n * @param o The object that references the prototype.\n */\n getPrototypeOf(o: any): any;\n\n /**\n * Gets the own property descriptor of the specified object.\n * An own property descriptor is one that is defined directly on the object and is not inherited from the object\'s prototype.\n * @param o Object that contains the property.\n * @param p Name of the property.\n */\n getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;\n\n /**\n * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly\n * on that object, and are not inherited from the object\'s prototype. The properties of an object include both fields (objects) and functions.\n * @param o Object that contains the own properties.\n */\n getOwnPropertyNames(o: any): string[];\n\n /**\n * Creates an object that has the specified prototype or that has null prototype.\n * @param o Object to use as a prototype. May be null.\n */\n create(o: object | null): any;\n\n /**\n * Creates an object that has the specified prototype, and that optionally contains specified properties.\n * @param o Object to use as a prototype. May be null\n * @param properties JavaScript object that contains one or more property descriptors.\n */\n create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;\n\n /**\n * Adds a property to an object, or modifies attributes of an existing property.\n * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.\n * @param p The property name.\n * @param attributes Descriptor for the property. It can be for a data property or an accessor property.\n */\n defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;\n\n /**\n * Adds one or more properties to an object, and/or modifies attributes of existing properties.\n * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.\n * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.\n */\n defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;\n\n /**\n * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.\n * @param o Object on which to lock the attributes.\n */\n seal<T>(o: T): T;\n\n /**\n * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n * @param f Object on which to lock the attributes.\n */\n freeze<T extends Function>(f: T): T;\n\n /**\n * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n * @param o Object on which to lock the attributes.\n */\n freeze<T extends { [idx: string]: U | null | undefined | object; }, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;\n\n /**\n * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n * @param o Object on which to lock the attributes.\n */\n freeze<T>(o: T): Readonly<T>;\n\n /**\n * Prevents the addition of new properties to an object.\n * @param o Object to make non-extensible.\n */\n preventExtensions<T>(o: T): T;\n\n /**\n * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.\n * @param o Object to test.\n */\n isSealed(o: any): boolean;\n\n /**\n * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.\n * @param o Object to test.\n */\n isFrozen(o: any): boolean;\n\n /**\n * Returns a value that indicates whether new properties can be added to an object.\n * @param o Object to test.\n */\n isExtensible(o: any): boolean;\n\n /**\n * Returns the names of the enumerable string properties and methods of an object.\n * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n */\n keys(o: object): string[];\n}\n\n/**\n * Provides functionality common to all JavaScript objects.\n */\ndeclare var Object: ObjectConstructor;\n\n/**\n * Creates a new function.\n */\ninterface Function {\n /**\n * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.\n * @param thisArg The object to be used as the this object.\n * @param argArray A set of arguments to be passed to the function.\n */\n apply(this: Function, thisArg: any, argArray?: any): any;\n\n /**\n * Calls a method of an object, substituting another object for the current object.\n * @param thisArg The object to be used as the current object.\n * @param argArray A list of arguments to be passed to the method.\n */\n call(this: Function, thisArg: any, ...argArray: any[]): any;\n\n /**\n * For a given function, creates a bound function that has the same body as the original function.\n * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n * @param thisArg An object to which the this keyword can refer inside the new function.\n * @param argArray A list of arguments to be passed to the new function.\n */\n bind(this: Function, thisArg: any, ...argArray: any[]): any;\n\n /** Returns a string representation of a function. */\n toString(): string;\n\n prototype: any;\n readonly length: number;\n\n // Non-standard extensions\n arguments: any;\n caller: Function;\n}\n\ninterface FunctionConstructor {\n /**\n * Creates a new function.\n * @param args A list of arguments the function accepts.\n */\n new (...args: string[]): Function;\n (...args: string[]): Function;\n readonly prototype: Function;\n}\n\ndeclare var Function: FunctionConstructor;\n\n/**\n * Extracts the type of the \'this\' parameter of a function type, or \'unknown\' if the function type has no \'this\' parameter.\n */\ntype ThisParameterType<T> = T extends (this: infer U, ...args: never) => any ? U : unknown;\n\n/**\n * Removes the \'this\' parameter from a function type.\n */\ntype OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;\n\ninterface CallableFunction extends Function {\n /**\n * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\n * @param thisArg The object to be used as the this object.\n */\n apply<T, R>(this: (this: T) => R, thisArg: T): R;\n\n /**\n * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args An array of argument values to be passed to the function.\n */\n apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;\n\n /**\n * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args Argument values to be passed to the function.\n */\n call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;\n\n /**\n * For a given function, creates a bound function that has the same body as the original function.\n * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n * @param thisArg The object to be used as the this object.\n */\n bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;\n\n /**\n * For a given function, creates a bound function that has the same body as the original function.\n * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n * @param thisArg The object to be used as the this object.\n * @param args Arguments to bind to the parameters of the function.\n */\n bind<T, A extends any[], B extends any[], R>(this: (this: T, ...args: [...A, ...B]) => R, thisArg: T, ...args: A): (...args: B) => R;\n}\n\ninterface NewableFunction extends Function {\n /**\n * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\n * @param thisArg The object to be used as the this object.\n */\n apply<T>(this: new () => T, thisArg: T): void;\n /**\n * Calls the function with the specified object as the this value and the elements of specified array as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args An array of argument values to be passed to the function.\n */\n apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;\n\n /**\n * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.\n * @param thisArg The object to be used as the this object.\n * @param args Argument values to be passed to the function.\n */\n call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;\n\n /**\n * For a given function, creates a bound function that has the same body as the original function.\n * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n * @param thisArg The object to be used as the this object.\n */\n bind<T>(this: T, thisArg: any): T;\n\n /**\n * For a given function, creates a bound function that has the same body as the original function.\n * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n * @param thisArg The object to be used as the this object.\n * @param args Arguments to bind to the parameters of the function.\n */\n bind<A extends any[], B extends any[], R>(this: new (...args: [...A, ...B]) => R, thisArg: any, ...args: A): new (...args: B) => R;\n}\n\ninterface IArguments {\n [index: number]: any;\n length: number;\n callee: Function;\n}\n\ninterface String {\n /** Returns a string representation of a string. */\n toString(): string;\n\n /**\n * Returns the character at the specified index.\n * @param pos The zero-based index of the desired character.\n */\n charAt(pos: number): string;\n\n /**\n * Returns the Unicode value of the character at the specified location.\n * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.\n */\n charCodeAt(index: number): number;\n\n /**\n * Returns a string that contains the concatenation of two or more strings.\n * @param strings The strings to append to the end of the string.\n */\n concat(...strings: string[]): string;\n\n /**\n * Returns the position of the first occurrence of a substring.\n * @param searchString The substring to search for in the string\n * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.\n */\n indexOf(searchString: string, position?: number): number;\n\n /**\n * Returns the last occurrence of a substring in the string.\n * @param searchString The substring to search for.\n * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.\n */\n lastIndexOf(searchString: string, position?: number): number;\n\n /**\n * Determines whether two strings are equivalent in the current locale.\n * @param that String to compare to target string\n */\n localeCompare(that: string): number;\n\n /**\n * Matches a string with a regular expression, and returns an array containing the results of that search.\n * @param regexp A variable name or string literal containing the regular expression pattern and flags.\n */\n match(regexp: string | RegExp): RegExpMatchArray | null;\n\n /**\n * Replaces text in a string, using a regular expression or search string.\n * @param searchValue A string or regular expression to search for.\n * @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag is also present). Otherwise, only the first match of {@linkcode searchValue} is replaced.\n */\n replace(searchValue: string | RegExp, replaceValue: string): string;\n\n /**\n * Replaces text in a string, using a regular expression or search string.\n * @param searchValue A string to search for.\n * @param replacer A function that returns the replacement text.\n */\n replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;\n\n /**\n * Finds the first substring match in a regular expression search.\n * @param regexp The regular expression pattern and applicable flags.\n */\n search(regexp: string | RegExp): number;\n\n /**\n * Returns a section of a string.\n * @param start The index to the beginning of the specified portion of stringObj.\n * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.\n * If this value is not specified, the substring continues to the end of stringObj.\n */\n slice(start?: number, end?: number): string;\n\n /**\n * Split a string into substrings using the specified separator and return them as an array.\n * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.\n * @param limit A value used to limit the number of elements returned in the array.\n */\n split(separator: string | RegExp, limit?: number): string[];\n\n /**\n * Returns the substring at the specified location within a String object.\n * @param start The zero-based index number indicating the beginning of the substring.\n * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.\n * If end is omitted, the characters from start through the end of the original string are returned.\n */\n substring(start: number, end?: number): string;\n\n /** Converts all the alphabetic characters in a string to lowercase. */\n toLowerCase(): string;\n\n /** Converts all alphabetic characters to lowercase, taking into account the host environment\'s current locale. */\n toLocaleLowerCase(locales?: string | string[]): string;\n\n /** Converts all the alphabetic characters in a string to uppercase. */\n toUpperCase(): string;\n\n /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment\'s current locale. */\n toLocaleUpperCase(locales?: string | string[]): string;\n\n /** Removes the leading and trailing white space and line terminator characters from a string. */\n trim(): string;\n\n /** Returns the length of a String object. */\n readonly length: number;\n\n // IE extensions\n /**\n * Gets a substring beginning at the specified location and having the specified length.\n * @deprecated A legacy feature for browser compatibility\n * @param from The starting position of the desired substring. The index of the first character in the string is zero.\n * @param length The number of characters to include in the returned substring.\n */\n substr(from: number, length?: number): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): string;\n\n readonly [index: number]: string;\n}\n\ninterface StringConstructor {\n new (value?: any): String;\n (value?: any): string;\n readonly prototype: String;\n fromCharCode(...codes: number[]): string;\n}\n\n/**\n * Allows manipulation and formatting of text strings and determination and location of substrings within strings.\n */\ndeclare var String: StringConstructor;\n\ninterface Boolean {\n /** Returns the primitive value of the specified object. */\n valueOf(): boolean;\n}\n\ninterface BooleanConstructor {\n new (value?: any): Boolean;\n <T>(value?: T): boolean;\n readonly prototype: Boolean;\n}\n\ndeclare var Boolean: BooleanConstructor;\n\ninterface Number {\n /**\n * Returns a string representation of an object.\n * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.\n */\n toString(radix?: number): string;\n\n /**\n * Returns a string representing a number in fixed-point notation.\n * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.\n */\n toFixed(fractionDigits?: number): string;\n\n /**\n * Returns a string containing a number represented in exponential notation.\n * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.\n */\n toExponential(fractionDigits?: number): string;\n\n /**\n * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.\n * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.\n */\n toPrecision(precision?: number): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): number;\n}\n\ninterface NumberConstructor {\n new (value?: any): Number;\n (value?: any): number;\n readonly prototype: Number;\n\n /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */\n readonly MAX_VALUE: number;\n\n /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */\n readonly MIN_VALUE: number;\n\n /**\n * A value that is not a number.\n * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.\n */\n readonly NaN: number;\n\n /**\n * A value that is less than the largest negative number that can be represented in JavaScript.\n * JavaScript displays NEGATIVE_INFINITY values as -infinity.\n */\n readonly NEGATIVE_INFINITY: number;\n\n /**\n * A value greater than the largest number that can be represented in JavaScript.\n * JavaScript displays POSITIVE_INFINITY values as infinity.\n */\n readonly POSITIVE_INFINITY: number;\n}\n\n/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */\ndeclare var Number: NumberConstructor;\n\ninterface TemplateStringsArray extends ReadonlyArray<string> {\n readonly raw: readonly string[];\n}\n\n/**\n * The type of `import.meta`.\n *\n * If you need to declare that a given property exists on `import.meta`,\n * this type may be augmented via interface merging.\n */\ninterface ImportMeta {\n}\n\n/**\n * The type for the optional second argument to `import()`.\n *\n * If your host environment supports additional options, this type may be\n * augmented via interface merging.\n */\ninterface ImportCallOptions {\n /** @deprecated*/ assert?: ImportAssertions;\n with?: ImportAttributes;\n}\n\n/**\n * The type for the `assert` property of the optional second argument to `import()`.\n * @deprecated\n */\ninterface ImportAssertions {\n [key: string]: string;\n}\n\n/**\n * The type for the `with` property of the optional second argument to `import()`.\n */\ninterface ImportAttributes {\n [key: string]: string;\n}\n\ninterface Math {\n /** The mathematical constant e. This is Euler\'s number, the base of natural logarithms. */\n readonly E: number;\n /** The natural logarithm of 10. */\n readonly LN10: number;\n /** The natural logarithm of 2. */\n readonly LN2: number;\n /** The base-2 logarithm of e. */\n readonly LOG2E: number;\n /** The base-10 logarithm of e. */\n readonly LOG10E: number;\n /** Pi. This is the ratio of the circumference of a circle to its diameter. */\n readonly PI: number;\n /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */\n readonly SQRT1_2: number;\n /** The square root of 2. */\n readonly SQRT2: number;\n /**\n * Returns the absolute value of a number (the value without regard to whether it is positive or negative).\n * For example, the absolute value of -5 is the same as the absolute value of 5.\n * @param x A numeric expression for which the absolute value is needed.\n */\n abs(x: number): number;\n /**\n * Returns the arc cosine (or inverse cosine) of a number.\n * @param x A numeric expression.\n */\n acos(x: number): number;\n /**\n * Returns the arcsine of a number.\n * @param x A numeric expression.\n */\n asin(x: number): number;\n /**\n * Returns the arctangent of a number.\n * @param x A numeric expression for which the arctangent is needed.\n */\n atan(x: number): number;\n /**\n * Returns the angle (in radians) from the X axis to a point.\n * @param y A numeric expression representing the cartesian y-coordinate.\n * @param x A numeric expression representing the cartesian x-coordinate.\n */\n atan2(y: number, x: number): number;\n /**\n * Returns the smallest integer greater than or equal to its numeric argument.\n * @param x A numeric expression.\n */\n ceil(x: number): number;\n /**\n * Returns the cosine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n cos(x: number): number;\n /**\n * Returns e (the base of natural logarithms) raised to a power.\n * @param x A numeric expression representing the power of e.\n */\n exp(x: number): number;\n /**\n * Returns the greatest integer less than or equal to its numeric argument.\n * @param x A numeric expression.\n */\n floor(x: number): number;\n /**\n * Returns the natural logarithm (base e) of a number.\n * @param x A numeric expression.\n */\n log(x: number): number;\n /**\n * Returns the larger of a set of supplied numeric expressions.\n * @param values Numeric expressions to be evaluated.\n */\n max(...values: number[]): number;\n /**\n * Returns the smaller of a set of supplied numeric expressions.\n * @param values Numeric expressions to be evaluated.\n */\n min(...values: number[]): number;\n /**\n * Returns the value of a base expression taken to a specified power.\n * @param x The base value of the expression.\n * @param y The exponent value of the expression.\n */\n pow(x: number, y: number): number;\n /** Returns a pseudorandom number between 0 and 1. */\n random(): number;\n /**\n * Returns a supplied numeric expression rounded to the nearest integer.\n * @param x The value to be rounded to the nearest integer.\n */\n round(x: number): number;\n /**\n * Returns the sine of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n sin(x: number): number;\n /**\n * Returns the square root of a number.\n * @param x A numeric expression.\n */\n sqrt(x: number): number;\n /**\n * Returns the tangent of a number.\n * @param x A numeric expression that contains an angle measured in radians.\n */\n tan(x: number): number;\n}\n/** An intrinsic object that provides basic mathematics functionality and constants. */\ndeclare var Math: Math;\n\n/** Enables basic storage and retrieval of dates and times. */\ninterface Date {\n /** Returns a string representation of a date. The format of the string depends on the locale. */\n toString(): string;\n /** Returns a date as a string value. */\n toDateString(): string;\n /** Returns a time as a string value. */\n toTimeString(): string;\n /** Returns a value as a string value appropriate to the host environment\'s current locale. */\n toLocaleString(): string;\n /** Returns a date as a string value appropriate to the host environment\'s current locale. */\n toLocaleDateString(): string;\n /** Returns a time as a string value appropriate to the host environment\'s current locale. */\n toLocaleTimeString(): string;\n /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */\n valueOf(): number;\n /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */\n getTime(): number;\n /** Gets the year, using local time. */\n getFullYear(): number;\n /** Gets the year using Universal Coordinated Time (UTC). */\n getUTCFullYear(): number;\n /** Gets the month, using local time. */\n getMonth(): number;\n /** Gets the month of a Date object using Universal Coordinated Time (UTC). */\n getUTCMonth(): number;\n /** Gets the day-of-the-month, using local time. */\n getDate(): number;\n /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */\n getUTCDate(): number;\n /** Gets the day of the week, using local time. */\n getDay(): number;\n /** Gets the day of the week using Universal Coordinated Time (UTC). */\n getUTCDay(): number;\n /** Gets the hours in a date, using local time. */\n getHours(): number;\n /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */\n getUTCHours(): number;\n /** Gets the minutes of a Date object, using local time. */\n getMinutes(): number;\n /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */\n getUTCMinutes(): number;\n /** Gets the seconds of a Date object, using local time. */\n getSeconds(): number;\n /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */\n getUTCSeconds(): number;\n /** Gets the milliseconds of a Date, using local time. */\n getMilliseconds(): number;\n /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */\n getUTCMilliseconds(): number;\n /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */\n getTimezoneOffset(): number;\n /**\n * Sets the date and time value in the Date object.\n * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.\n */\n setTime(time: number): number;\n /**\n * Sets the milliseconds value in the Date object using local time.\n * @param ms A numeric value equal to the millisecond value.\n */\n setMilliseconds(ms: number): number;\n /**\n * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).\n * @param ms A numeric value equal to the millisecond value.\n */\n setUTCMilliseconds(ms: number): number;\n\n /**\n * Sets the seconds value in the Date object using local time.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setSeconds(sec: number, ms?: number): number;\n /**\n * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCSeconds(sec: number, ms?: number): number;\n /**\n * Sets the minutes value in the Date object using local time.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setMinutes(min: number, sec?: number, ms?: number): number;\n /**\n * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCMinutes(min: number, sec?: number, ms?: number): number;\n /**\n * Sets the hour value in the Date object using local time.\n * @param hours A numeric value equal to the hours value.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setHours(hours: number, min?: number, sec?: number, ms?: number): number;\n /**\n * Sets the hours value in the Date object using Universal Coordinated Time (UTC).\n * @param hours A numeric value equal to the hours value.\n * @param min A numeric value equal to the minutes value.\n * @param sec A numeric value equal to the seconds value.\n * @param ms A numeric value equal to the milliseconds value.\n */\n setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;\n /**\n * Sets the numeric day-of-the-month value of the Date object using local time.\n * @param date A numeric value equal to the day of the month.\n */\n setDate(date: number): number;\n /**\n * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).\n * @param date A numeric value equal to the day of the month.\n */\n setUTCDate(date: number): number;\n /**\n * Sets the month value in the Date object using local time.\n * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.\n * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.\n */\n setMonth(month: number, date?: number): number;\n /**\n * Sets the month value in the Date object using Universal Coordinated Time (UTC).\n * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.\n * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.\n */\n setUTCMonth(month: number, date?: number): number;\n /**\n * Sets the year of the Date object using local time.\n * @param year A numeric value for the year.\n * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.\n * @param date A numeric value equal for the day of the month.\n */\n setFullYear(year: number, month?: number, date?: number): number;\n /**\n * Sets the year value in the Date object using Universal Coordinated Time (UTC).\n * @param year A numeric value equal to the year.\n * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.\n * @param date A numeric value equal to the day of the month.\n */\n setUTCFullYear(year: number, month?: number, date?: number): number;\n /** Returns a date converted to a string using Universal Coordinated Time (UTC). */\n toUTCString(): string;\n /** Returns a date as a string value in ISO format. */\n toISOString(): string;\n /** Used by the JSON.stringify method to enable the transformation of an object\'s data for JavaScript Object Notation (JSON) serialization. */\n toJSON(key?: any): string;\n}\n\ninterface DateConstructor {\n new (): Date;\n new (value: number | string): Date;\n /**\n * Creates a new Date.\n * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.\n * @param monthIndex The month as a number between 0 and 11 (January to December).\n * @param date The date as a number between 1 and 31.\n * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.\n * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.\n * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.\n * @param ms A number from 0 to 999 that specifies the milliseconds.\n */\n new (year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;\n (): string;\n readonly prototype: Date;\n /**\n * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.\n * @param s A date string\n */\n parse(s: string): number;\n /**\n * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.\n * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.\n * @param monthIndex The month as a number between 0 and 11 (January to December).\n * @param date The date as a number between 1 and 31.\n * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.\n * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.\n * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.\n * @param ms A number from 0 to 999 that specifies the milliseconds.\n */\n UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;\n /** Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC). */\n now(): number;\n}\n\ndeclare var Date: DateConstructor;\n\ninterface RegExpMatchArray extends Array<string> {\n /**\n * The index of the search at which the result was found.\n */\n index?: number;\n /**\n * A copy of the search string.\n */\n input?: string;\n /**\n * The first match. This will always be present because `null` will be returned if there are no matches.\n */\n 0: string;\n}\n\ninterface RegExpExecArray extends Array<string> {\n /**\n * The index of the search at which the result was found.\n */\n index: number;\n /**\n * A copy of the search string.\n */\n input: string;\n /**\n * The first match. This will always be present because `null` will be returned if there are no matches.\n */\n 0: string;\n}\n\ninterface RegExp {\n /**\n * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.\n * @param string The String object or string literal on which to perform the search.\n */\n exec(string: string): RegExpExecArray | null;\n\n /**\n * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.\n * @param string String on which to perform the search.\n */\n test(string: string): boolean;\n\n /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */\n readonly source: string;\n\n /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */\n readonly global: boolean;\n\n /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */\n readonly ignoreCase: boolean;\n\n /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */\n readonly multiline: boolean;\n\n lastIndex: number;\n\n // Non-standard extensions\n /** @deprecated A legacy feature for browser compatibility */\n compile(pattern: string, flags?: string): this;\n}\n\ninterface RegExpConstructor {\n new (pattern: RegExp | string): RegExp;\n new (pattern: string, flags?: string): RegExp;\n (pattern: RegExp | string): RegExp;\n (pattern: string, flags?: string): RegExp;\n readonly "prototype": RegExp;\n\n // Non-standard extensions\n /** @deprecated A legacy feature for browser compatibility */\n "$1": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$2": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$3": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$4": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$5": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$6": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$7": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$8": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$9": string;\n /** @deprecated A legacy feature for browser compatibility */\n "input": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$_": string;\n /** @deprecated A legacy feature for browser compatibility */\n "lastMatch": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$&": string;\n /** @deprecated A legacy feature for browser compatibility */\n "lastParen": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$+": string;\n /** @deprecated A legacy feature for browser compatibility */\n "leftContext": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$`": string;\n /** @deprecated A legacy feature for browser compatibility */\n "rightContext": string;\n /** @deprecated A legacy feature for browser compatibility */\n "$\'": string;\n}\n\ndeclare var RegExp: RegExpConstructor;\n\ninterface Error {\n name: string;\n message: string;\n stack?: string;\n}\n\ninterface ErrorConstructor {\n new (message?: string): Error;\n (message?: string): Error;\n readonly prototype: Error;\n}\n\ndeclare var Error: ErrorConstructor;\n\ninterface EvalError extends Error {\n}\n\ninterface EvalErrorConstructor extends ErrorConstructor {\n new (message?: string): EvalError;\n (message?: string): EvalError;\n readonly prototype: EvalError;\n}\n\ndeclare var EvalError: EvalErrorConstructor;\n\ninterface RangeError extends Error {\n}\n\ninterface RangeErrorConstructor extends ErrorConstructor {\n new (message?: string): RangeError;\n (message?: string): RangeError;\n readonly prototype: RangeError;\n}\n\ndeclare var RangeError: RangeErrorConstructor;\n\ninterface ReferenceError extends Error {\n}\n\ninterface ReferenceErrorConstructor extends ErrorConstructor {\n new (message?: string): ReferenceError;\n (message?: string): ReferenceError;\n readonly prototype: ReferenceError;\n}\n\ndeclare var ReferenceError: ReferenceErrorConstructor;\n\ninterface SyntaxError extends Error {\n}\n\ninterface SyntaxErrorConstructor extends ErrorConstructor {\n new (message?: string): SyntaxError;\n (message?: string): SyntaxError;\n readonly prototype: SyntaxError;\n}\n\ndeclare var SyntaxError: SyntaxErrorConstructor;\n\ninterface TypeError extends Error {\n}\n\ninterface TypeErrorConstructor extends ErrorConstructor {\n new (message?: string): TypeError;\n (message?: string): TypeError;\n readonly prototype: TypeError;\n}\n\ndeclare var TypeError: TypeErrorConstructor;\n\ninterface URIError extends Error {\n}\n\ninterface URIErrorConstructor extends ErrorConstructor {\n new (message?: string): URIError;\n (message?: string): URIError;\n readonly prototype: URIError;\n}\n\ndeclare var URIError: URIErrorConstructor;\n\ninterface JSON {\n /**\n * Converts a JavaScript Object Notation (JSON) string into an object.\n * @param text A valid JSON string.\n * @param reviver A function that transforms the results. This function is called for each member of the object.\n * If a member contains nested objects, the nested objects are transformed before the parent object is.\n */\n parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;\n /**\n * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n * @param value A JavaScript value, usually an object or array, to be converted.\n * @param replacer A function that transforms the results.\n * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n */\n stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;\n /**\n * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n * @param value A JavaScript value, usually an object or array, to be converted.\n * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.\n * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n */\n stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;\n}\n\n/**\n * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.\n */\ndeclare var JSON: JSON;\n\n/////////////////////////////\n/// ECMAScript Array API (specially handled by compiler)\n/////////////////////////////\n\ninterface ReadonlyArray<T> {\n /**\n * Gets the length of the array. This is a number one higher than the highest element defined in an array.\n */\n readonly length: number;\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n /**\n * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.\n */\n toLocaleString(): string;\n /**\n * Combines two or more arrays.\n * @param items Additional items to add to the end of array1.\n */\n concat(...items: ConcatArray<T>[]): T[];\n /**\n * Combines two or more arrays.\n * @param items Additional items to add to the end of array1.\n */\n concat(...items: (T | ConcatArray<T>)[]): T[];\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): T[];\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n */\n indexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Returns the index of the last occurrence of a specified value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.\n */\n lastIndexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;\n /**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\n filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];\n /**\n * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;\n /**\n * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;\n /**\n * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;\n /**\n * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;\n\n readonly [n: number]: T;\n}\n\ninterface ConcatArray<T> {\n readonly length: number;\n readonly [n: number]: T;\n join(separator?: string): string;\n slice(start?: number, end?: number): T[];\n}\n\ninterface Array<T> {\n /**\n * Gets or sets the length of the array. This is a number one higher than the highest index in the array.\n */\n length: number;\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n /**\n * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.\n */\n toLocaleString(): string;\n /**\n * Removes the last element from an array and returns it.\n * If the array is empty, undefined is returned and the array is not modified.\n */\n pop(): T | undefined;\n /**\n * Appends new elements to the end of an array, and returns the new length of the array.\n * @param items New elements to add to the array.\n */\n push(...items: T[]): number;\n /**\n * Combines two or more arrays.\n * This method returns a new array without modifying any existing arrays.\n * @param items Additional arrays and/or items to add to the end of the array.\n */\n concat(...items: ConcatArray<T>[]): T[];\n /**\n * Combines two or more arrays.\n * This method returns a new array without modifying any existing arrays.\n * @param items Additional arrays and/or items to add to the end of the array.\n */\n concat(...items: (T | ConcatArray<T>)[]): T[];\n /**\n * Adds all the elements of an array into a string, separated by the specified separator string.\n * @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n /**\n * Reverses the elements in an array in place.\n * This method mutates the array and returns a reference to the same array.\n */\n reverse(): T[];\n /**\n * Removes the first element from an array and returns it.\n * If the array is empty, undefined is returned and the array is not modified.\n */\n shift(): T | undefined;\n /**\n * Returns a copy of a section of an array.\n * For both start and end, a negative index can be used to indicate an offset from the end of the array.\n * For example, -2 refers to the second to last element of the array.\n * @param start The beginning index of the specified portion of the array.\n * If start is undefined, then the slice begins at index 0.\n * @param end The end index of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n * If end is undefined, then the slice extends to the end of the array.\n */\n slice(start?: number, end?: number): T[];\n /**\n * Sorts an array in place.\n * This method mutates the array and returns a reference to the same array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if the first argument is less than the second argument, zero if they\'re equal, and a positive\n * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: T, b: T) => number): this;\n /**\n * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @returns An array containing the elements that were deleted.\n */\n splice(start: number, deleteCount?: number): T[];\n /**\n * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @param items Elements to insert into the array in place of the deleted elements.\n * @returns An array containing the elements that were deleted.\n */\n splice(start: number, deleteCount: number, ...items: T[]): T[];\n /**\n * Inserts new elements at the start of an array, and returns the new length of the array.\n * @param items Elements to insert at the start of the array.\n */\n unshift(...items: T[]): number;\n /**\n * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n */\n indexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.\n */\n lastIndexOf(searchElement: T, fromIndex?: number): number;\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;\n /**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\n filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];\n /**\n * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;\n reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;\n /**\n * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;\n /**\n * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;\n reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;\n /**\n * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;\n\n [n: number]: T;\n}\n\ninterface ArrayConstructor {\n new (arrayLength?: number): any[];\n new <T>(arrayLength: number): T[];\n new <T>(...items: T[]): T[];\n (arrayLength?: number): any[];\n <T>(arrayLength: number): T[];\n <T>(...items: T[]): T[];\n isArray(arg: any): arg is any[];\n readonly prototype: any[];\n}\n\ndeclare var Array: ArrayConstructor;\n\ninterface TypedPropertyDescriptor<T> {\n enumerable?: boolean;\n configurable?: boolean;\n writable?: boolean;\n value?: T;\n get?: () => T;\n set?: (value: T) => void;\n}\n\ndeclare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;\n\ninterface PromiseLike<T> {\n /**\n * Attaches callbacks for the resolution and/or rejection of the Promise.\n * @param onfulfilled The callback to execute when the Promise is resolved.\n * @param onrejected The callback to execute when the Promise is rejected.\n * @returns A Promise for the completion of which ever callback is executed.\n */\n then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;\n}\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches callbacks for the resolution and/or rejection of the Promise.\n * @param onfulfilled The callback to execute when the Promise is resolved.\n * @param onrejected The callback to execute when the Promise is rejected.\n * @returns A Promise for the completion of which ever callback is executed.\n */\n then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;\n\n /**\n * Attaches a callback for only the rejection of the Promise.\n * @param onrejected The callback to execute when the Promise is rejected.\n * @returns A Promise for the completion of the callback.\n */\n catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;\n}\n\n/**\n * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to `never`. This emulates the behavior of `await`.\n */\ntype Awaited<T> = T extends null | undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode\n T extends object & { then(onfulfilled: infer F, ...args: infer _): any; } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped\n F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to `then` is callable, extracts the first argument\n Awaited<V> : // recursively unwrap the value\n never : // the argument to `then` was not callable\n T; // non-object or non-thenable\n\ninterface ArrayLike<T> {\n readonly length: number;\n readonly [n: number]: T;\n}\n\n/**\n * Make all properties in T optional\n */\ntype Partial<T> = {\n [P in keyof T]?: T[P];\n};\n\n/**\n * Make all properties in T required\n */\ntype Required<T> = {\n [P in keyof T]-?: T[P];\n};\n\n/**\n * Make all properties in T readonly\n */\ntype Readonly<T> = {\n readonly [P in keyof T]: T[P];\n};\n\n/**\n * From T, pick a set of properties whose keys are in the union K\n */\ntype Pick<T, K extends keyof T> = {\n [P in K]: T[P];\n};\n\n/**\n * Construct a type with a set of properties K of type T\n */\ntype Record<K extends keyof any, T> = {\n [P in K]: T;\n};\n\n/**\n * Exclude from T those types that are assignable to U\n */\ntype Exclude<T, U> = T extends U ? never : T;\n\n/**\n * Extract from T those types that are assignable to U\n */\ntype Extract<T, U> = T extends U ? T : never;\n\n/**\n * Construct a type with the properties of T except for those in type K.\n */\ntype Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;\n\n/**\n * Exclude null and undefined from T\n */\ntype NonNullable<T> = T & {};\n\n/**\n * Obtain the parameters of a function type in a tuple\n */\ntype Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;\n\n/**\n * Obtain the parameters of a constructor function type in a tuple\n */\ntype ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;\n\n/**\n * Obtain the return type of a function type\n */\ntype ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;\n\n/**\n * Obtain the return type of a constructor function type\n */\ntype InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;\n\n/**\n * Convert string literal type to uppercase\n */\ntype Uppercase<S extends string> = intrinsic;\n\n/**\n * Convert string literal type to lowercase\n */\ntype Lowercase<S extends string> = intrinsic;\n\n/**\n * Convert first character of string literal type to uppercase\n */\ntype Capitalize<S extends string> = intrinsic;\n\n/**\n * Convert first character of string literal type to lowercase\n */\ntype Uncapitalize<S extends string> = intrinsic;\n\n/**\n * Marker for non-inference type position\n */\ntype NoInfer<T> = intrinsic;\n\n/**\n * Marker for contextual \'this\' type\n */\ninterface ThisType<T> {}\n\n/**\n * Stores types to be used with WeakSet, WeakMap, WeakRef, and FinalizationRegistry\n */\ninterface WeakKeyTypes {\n object: object;\n}\n\ntype WeakKey = WeakKeyTypes[keyof WeakKeyTypes];\n\n/**\n * Represents a raw buffer of binary data, which is used to store data for the\n * different typed arrays. ArrayBuffers cannot be read from or written to directly,\n * but can be passed to a typed array or DataView Object to interpret the raw\n * buffer as needed.\n */\ninterface ArrayBuffer {\n /**\n * Read-only. The length of the ArrayBuffer (in bytes).\n */\n readonly byteLength: number;\n\n /**\n * Returns a section of an ArrayBuffer.\n */\n slice(begin: number, end?: number): ArrayBuffer;\n}\n\n/**\n * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.\n */\ninterface ArrayBufferTypes {\n ArrayBuffer: ArrayBuffer;\n}\ntype ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];\n\ninterface ArrayBufferConstructor {\n readonly prototype: ArrayBuffer;\n new (byteLength: number): ArrayBuffer;\n isView(arg: any): arg is ArrayBufferView;\n}\ndeclare var ArrayBuffer: ArrayBufferConstructor;\n\ninterface ArrayBufferView {\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n byteOffset: number;\n}\n\ninterface DataView {\n readonly buffer: ArrayBuffer;\n readonly byteLength: number;\n readonly byteOffset: number;\n /**\n * Gets the Float32 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getFloat32(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Float64 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getFloat64(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Int8 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getInt8(byteOffset: number): number;\n\n /**\n * Gets the Int16 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getInt16(byteOffset: number, littleEndian?: boolean): number;\n /**\n * Gets the Int32 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getInt32(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Uint8 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n */\n getUint8(byteOffset: number): number;\n\n /**\n * Gets the Uint16 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getUint16(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Gets the Uint32 value at the specified byte offset from the start of the view. There is\n * no alignment constraint; multi-byte values may be fetched from any offset.\n * @param byteOffset The place in the buffer at which the value should be retrieved.\n * @param littleEndian If false or undefined, a big-endian value should be read.\n */\n getUint32(byteOffset: number, littleEndian?: boolean): number;\n\n /**\n * Stores an Float32 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Float64 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Int8 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n */\n setInt8(byteOffset: number, value: number): void;\n\n /**\n * Stores an Int16 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Int32 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Uint8 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n */\n setUint8(byteOffset: number, value: number): void;\n\n /**\n * Stores an Uint16 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n /**\n * Stores an Uint32 value at the specified byte offset from the start of the view.\n * @param byteOffset The place in the buffer at which the value should be set.\n * @param value The value to set.\n * @param littleEndian If false or undefined, a big-endian value should be written.\n */\n setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;\n}\n\ninterface DataViewConstructor {\n readonly prototype: DataView;\n new (buffer: ArrayBufferLike & { BYTES_PER_ELEMENT?: never; }, byteOffset?: number, byteLength?: number): DataView;\n}\ndeclare var DataView: DataViewConstructor;\n\n/**\n * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested\n * number of bytes could not be allocated an exception is raised.\n */\ninterface Int8Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int8Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Int8Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Int8Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Int8Array;\n\n [index: number]: number;\n}\ninterface Int8ArrayConstructor {\n readonly prototype: Int8Array;\n new (length: number): Int8Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Int8Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;\n}\ndeclare var Int8Array: Int8ArrayConstructor;\n\n/**\n * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint8Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint8Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint8Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint8Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint8Array;\n\n [index: number]: number;\n}\n\ninterface Uint8ArrayConstructor {\n readonly prototype: Uint8Array;\n new (length: number): Uint8Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Uint8Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint8Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;\n}\ndeclare var Uint8Array: Uint8ArrayConstructor;\n\n/**\n * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.\n * If the requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint8ClampedArray {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint8ClampedArray;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint8ClampedArray;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint8ClampedArray;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint8ClampedArray;\n\n [index: number]: number;\n}\n\ninterface Uint8ClampedArrayConstructor {\n readonly prototype: Uint8ClampedArray;\n new (length: number): Uint8ClampedArray;\n new (array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint8ClampedArray;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint8ClampedArray;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\ndeclare var Uint8ClampedArray: Uint8ClampedArrayConstructor;\n\n/**\n * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Int16Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int16Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Int16Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Int16Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Int16Array;\n\n [index: number]: number;\n}\n\ninterface Int16ArrayConstructor {\n readonly prototype: Int16Array;\n new (length: number): Int16Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Int16Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;\n}\ndeclare var Int16Array: Int16ArrayConstructor;\n\n/**\n * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint16Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint16Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint16Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint16Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint16Array;\n\n [index: number]: number;\n}\n\ninterface Uint16ArrayConstructor {\n readonly prototype: Uint16Array;\n new (length: number): Uint16Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Uint16Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint16Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;\n}\ndeclare var Uint16Array: Uint16ArrayConstructor;\n/**\n * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Int32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Int32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Int32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Int32Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Int32Array;\n\n [index: number]: number;\n}\n\ninterface Int32ArrayConstructor {\n readonly prototype: Int32Array;\n new (length: number): Int32Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Int32Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Int32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;\n}\ndeclare var Int32Array: Int32ArrayConstructor;\n\n/**\n * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the\n * requested number of bytes could not be allocated an exception is raised.\n */\ninterface Uint32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Uint32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Uint32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Uint32Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Uint32Array;\n\n [index: number]: number;\n}\n\ninterface Uint32ArrayConstructor {\n readonly prototype: Uint32Array;\n new (length: number): Uint32Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Uint32Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Uint32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;\n}\ndeclare var Uint32Array: Uint32ArrayConstructor;\n\n/**\n * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number\n * of bytes could not be allocated an exception is raised.\n */\ninterface Float32Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Float32Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Float32Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Float32Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Float32Array;\n\n [index: number]: number;\n}\n\ninterface Float32ArrayConstructor {\n readonly prototype: Float32Array;\n new (length: number): Float32Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Float32Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Float32Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;\n}\ndeclare var Float32Array: Float32ArrayConstructor;\n\n/**\n * A typed array of 64-bit float values. The contents are initialized to 0. If the requested\n * number of bytes could not be allocated an exception is raised.\n */\ninterface Float64Array {\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * The ArrayBuffer instance referenced by the array.\n */\n readonly buffer: ArrayBufferLike;\n\n /**\n * The length in bytes of the array.\n */\n readonly byteLength: number;\n\n /**\n * The offset in bytes of the array.\n */\n readonly byteOffset: number;\n\n /**\n * Returns the this object after copying a section of the array identified by start and end\n * to the same array starting at position target\n * @param target If target is negative, it is treated as length+target where length is the\n * length of the array.\n * @param start If start is negative, it is treated as length+start. If end is negative, it\n * is treated as length+end.\n * @param end If not specified, length of the this object is used as its default value.\n */\n copyWithin(target: number, start: number, end?: number): this;\n\n /**\n * Determines whether all the members of an array satisfy the specified test.\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n * @param value value to fill array section with\n * @param start index to start filling the array at. If start is negative, it is treated as\n * length+start where length is the length of the array.\n * @param end index to stop filling the array at. If end is negative, it is treated as\n * length+end.\n */\n fill(value: number, start?: number, end?: number): this;\n\n /**\n * Returns the elements of an array that meet the condition specified in a callback function.\n * @param predicate A function that accepts up to three arguments. The filter method calls\n * the predicate function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;\n\n /**\n * Returns the value of the first element in the array where predicate is true, and undefined\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;\n\n /**\n * Returns the index of the first element in the array where predicate is true, and -1\n * otherwise.\n * @param predicate find calls predicate once for each element of the array, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\n findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;\n\n /**\n * Performs the specified action for each element in an array.\n * @param callbackfn A function that accepts up to three arguments. forEach calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;\n\n /**\n * Returns the index of the first occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n indexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * Adds all the elements of an array separated by the specified separator string.\n * @param separator A string used to separate one element of an array from the next in the\n * resulting String. If omitted, the array elements are separated with a comma.\n */\n join(separator?: string): string;\n\n /**\n * Returns the index of the last occurrence of a value in an array.\n * @param searchElement The value to locate in the array.\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n * search starts at index 0.\n */\n lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n /**\n * The length of the array.\n */\n readonly length: number;\n\n /**\n * Calls a defined callback function on each element of an array, and returns an array that\n * contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the\n * callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;\n reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array. The return value of\n * the callback function is the accumulated result, and is provided as an argument in the next\n * call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n * callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an\n * argument instead of an array value.\n */\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;\n reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;\n\n /**\n * Calls the specified callback function for all the elements in an array, in descending order.\n * The return value of the callback function is the accumulated result, and is provided as an\n * argument in the next call to the callback function.\n * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n * the callbackfn function one time for each element in the array.\n * @param initialValue If initialValue is specified, it is used as the initial value to start\n * the accumulation. The first call to the callbackfn function provides this value as an argument\n * instead of an array value.\n */\n reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;\n\n /**\n * Reverses the elements in an Array.\n */\n reverse(): Float64Array;\n\n /**\n * Sets a value or an array of values.\n * @param array A typed or untyped array of values to set.\n * @param offset The index in the current array at which the values are to be written.\n */\n set(array: ArrayLike<number>, offset?: number): void;\n\n /**\n * Returns a section of an array.\n * @param start The beginning of the specified portion of the array.\n * @param end The end of the specified portion of the array. This is exclusive of the element at the index \'end\'.\n */\n slice(start?: number, end?: number): Float64Array;\n\n /**\n * Determines whether the specified callback function returns true for any element of an array.\n * @param predicate A function that accepts up to three arguments. The some method calls\n * the predicate function for each element in the array until the predicate returns a value\n * which is coercible to the Boolean value true, or until the end of the array.\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\n some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;\n\n /**\n * Sorts an array.\n * @param compareFn Function used to determine the order of the elements. It is expected to return\n * a negative value if first argument is less than second argument, zero if they\'re equal and a positive\n * value otherwise. If omitted, the elements are sorted in ascending order.\n * ```ts\n * [11,2,22,1].sort((a, b) => a - b)\n * ```\n */\n sort(compareFn?: (a: number, b: number) => number): this;\n\n /**\n * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements\n * at begin, inclusive, up to end, exclusive.\n * @param begin The index of the beginning of the array.\n * @param end The index of the end of the array.\n */\n subarray(begin?: number, end?: number): Float64Array;\n\n /**\n * Converts a number to a string by using the current locale.\n */\n toLocaleString(): string;\n\n /**\n * Returns a string representation of an array.\n */\n toString(): string;\n\n /** Returns the primitive value of the specified object. */\n valueOf(): Float64Array;\n\n [index: number]: number;\n}\n\ninterface Float64ArrayConstructor {\n readonly prototype: Float64Array;\n new (length: number): Float64Array;\n new (array: ArrayLike<number> | ArrayBufferLike): Float64Array;\n new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;\n\n /**\n * The size in bytes of each element in the array.\n */\n readonly BYTES_PER_ELEMENT: number;\n\n /**\n * Returns a new array from a set of elements.\n * @param items A set of elements to include in the new array object.\n */\n of(...items: number[]): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n */\n from(arrayLike: ArrayLike<number>): Float64Array;\n\n /**\n * Creates an array from an array-like or iterable object.\n * @param arrayLike An array-like or iterable object to convert to an array.\n * @param mapfn A mapping function to call on every element of the array.\n * @param thisArg Value of \'this\' used to invoke the mapfn.\n */\n from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;\n}\ndeclare var Float64Array: Float64ArrayConstructor;\n\n/////////////////////////////\n/// ECMAScript Internationalization API\n/////////////////////////////\n\ndeclare namespace Intl {\n interface CollatorOptions {\n usage?: "sort" | "search" | undefined;\n localeMatcher?: "lookup" | "best fit" | undefined;\n numeric?: boolean | undefined;\n caseFirst?: "upper" | "lower" | "false" | undefined;\n sensitivity?: "base" | "accent" | "case" | "variant" | undefined;\n collation?: "big5han" | "compat" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | undefined;\n ignorePunctuation?: boolean | undefined;\n }\n\n interface ResolvedCollatorOptions {\n locale: string;\n usage: string;\n sensitivity: string;\n ignorePunctuation: boolean;\n collation: string;\n caseFirst: string;\n numeric: boolean;\n }\n\n interface Collator {\n compare(x: string, y: string): number;\n resolvedOptions(): ResolvedCollatorOptions;\n }\n\n interface CollatorConstructor {\n new (locales?: string | string[], options?: CollatorOptions): Collator;\n (locales?: string | string[], options?: CollatorOptions): Collator;\n supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];\n }\n\n var Collator: CollatorConstructor;\n\n interface NumberFormatOptions {\n localeMatcher?: string | undefined;\n style?: string | undefined;\n currency?: string | undefined;\n currencySign?: string | undefined;\n useGrouping?: boolean | undefined;\n minimumIntegerDigits?: number | undefined;\n minimumFractionDigits?: number | undefined;\n maximumFractionDigits?: number | undefined;\n minimumSignificantDigits?: number | undefined;\n maximumSignificantDigits?: number | undefined;\n }\n\n interface ResolvedNumberFormatOptions {\n locale: string;\n numberingSystem: string;\n style: string;\n currency?: string;\n minimumIntegerDigits: number;\n minimumFractionDigits: number;\n maximumFractionDigits: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n useGrouping: boolean;\n }\n\n interface NumberFormat {\n format(value: number): string;\n resolvedOptions(): ResolvedNumberFormatOptions;\n }\n\n interface NumberFormatConstructor {\n new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;\n (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;\n supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];\n readonly prototype: NumberFormat;\n }\n\n var NumberFormat: NumberFormatConstructor;\n\n interface DateTimeFormatOptions {\n localeMatcher?: "best fit" | "lookup" | undefined;\n weekday?: "long" | "short" | "narrow" | undefined;\n era?: "long" | "short" | "narrow" | undefined;\n year?: "numeric" | "2-digit" | undefined;\n month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;\n day?: "numeric" | "2-digit" | undefined;\n hour?: "numeric" | "2-digit" | undefined;\n minute?: "numeric" | "2-digit" | undefined;\n second?: "numeric" | "2-digit" | undefined;\n timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;\n formatMatcher?: "best fit" | "basic" | undefined;\n hour12?: boolean | undefined;\n timeZone?: string | undefined;\n }\n\n interface ResolvedDateTimeFormatOptions {\n locale: string;\n calendar: string;\n numberingSystem: string;\n timeZone: string;\n hour12?: boolean;\n weekday?: string;\n era?: string;\n year?: string;\n month?: string;\n day?: string;\n hour?: string;\n minute?: string;\n second?: string;\n timeZoneName?: string;\n }\n\n interface DateTimeFormat {\n format(date?: Date | number): string;\n resolvedOptions(): ResolvedDateTimeFormatOptions;\n }\n\n interface DateTimeFormatConstructor {\n new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;\n (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;\n supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];\n readonly prototype: DateTimeFormat;\n }\n\n var DateTimeFormat: DateTimeFormatConstructor;\n}\n\ninterface String {\n /**\n * Determines whether two strings are equivalent in the current or specified locale.\n * @param that String to compare to target string\n * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.\n * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.\n */\n localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;\n}\n\ninterface Number {\n /**\n * Converts a number to a string by using the current or specified locale.\n * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;\n}\n\ninterface Date {\n /**\n * Converts a date and time to a string by using the current or specified locale.\n * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n /**\n * Converts a date to a string by using the current or specified locale.\n * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n\n /**\n * Converts a time to a string by using the current or specified locale.\n * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n * @param options An object that contains one or more properties that specify comparison options.\n */\n toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n}\n',S["lib.es6.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015" />\n/// <reference lib="dom" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n',S["lib.esnext.collection.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface MapConstructor {\n /**\n * Groups members of an iterable according to the return value of the passed callback.\n * @param items An iterable.\n * @param keySelector A callback which will be invoked for each item in items.\n */\n groupBy<K, T>(\n items: Iterable<T>,\n keySelector: (item: T, index: number) => K,\n ): Map<K, T[]>;\n}\n',S["lib.esnext.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2023" />\n/// <reference lib="esnext.intl" />\n/// <reference lib="esnext.decorators" />\n/// <reference lib="esnext.disposable" />\n/// <reference lib="esnext.promise" />\n/// <reference lib="esnext.object" />\n/// <reference lib="esnext.collection" />\n',S["lib.esnext.decorators.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol" />\n/// <reference lib="decorators" />\n\ninterface SymbolConstructor {\n readonly metadata: unique symbol;\n}\n\ninterface Function {\n [Symbol.metadata]: DecoratorMetadata | null;\n}\n',S["lib.esnext.disposable.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="es2015.symbol" />\n\ninterface SymbolConstructor {\n /**\n * A method that is used to release resources held by an object. Called by the semantics of the `using` statement.\n */\n readonly dispose: unique symbol;\n\n /**\n * A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.\n */\n readonly asyncDispose: unique symbol;\n}\n\ninterface Disposable {\n [Symbol.dispose](): void;\n}\n\ninterface AsyncDisposable {\n [Symbol.asyncDispose](): PromiseLike<void>;\n}\n\ninterface SuppressedError extends Error {\n error: any;\n suppressed: any;\n}\n\ninterface SuppressedErrorConstructor {\n new (error: any, suppressed: any, message?: string): SuppressedError;\n (error: any, suppressed: any, message?: string): SuppressedError;\n readonly prototype: SuppressedError;\n}\ndeclare var SuppressedError: SuppressedErrorConstructor;\n\ninterface DisposableStack {\n /**\n * Returns a value indicating whether this stack has been disposed.\n */\n readonly disposed: boolean;\n /**\n * Disposes each resource in the stack in the reverse order that they were added.\n */\n dispose(): void;\n /**\n * Adds a disposable resource to the stack, returning the resource.\n * @param value The resource to add. `null` and `undefined` will not be added, but will be returned.\n * @returns The provided {@link value}.\n */\n use<T extends Disposable | null | undefined>(value: T): T;\n /**\n * Adds a value and associated disposal callback as a resource to the stack.\n * @param value The value to add.\n * @param onDispose The callback to use in place of a `[Symbol.dispose]()` method. Will be invoked with `value`\n * as the first parameter.\n * @returns The provided {@link value}.\n */\n adopt<T>(value: T, onDispose: (value: T) => void): T;\n /**\n * Adds a callback to be invoked when the stack is disposed.\n */\n defer(onDispose: () => void): void;\n /**\n * Move all resources out of this stack and into a new `DisposableStack`, and marks this stack as disposed.\n * @example\n * ```ts\n * class C {\n * #res1: Disposable;\n * #res2: Disposable;\n * #disposables: DisposableStack;\n * constructor() {\n * // stack will be disposed when exiting constructor for any reason\n * using stack = new DisposableStack();\n *\n * // get first resource\n * this.#res1 = stack.use(getResource1());\n *\n * // get second resource. If this fails, both `stack` and `#res1` will be disposed.\n * this.#res2 = stack.use(getResource2());\n *\n * // all operations succeeded, move resources out of `stack` so that they aren\'t disposed\n * // when constructor exits\n * this.#disposables = stack.move();\n * }\n *\n * [Symbol.dispose]() {\n * this.#disposables.dispose();\n * }\n * }\n * ```\n */\n move(): DisposableStack;\n [Symbol.dispose](): void;\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface DisposableStackConstructor {\n new (): DisposableStack;\n readonly prototype: DisposableStack;\n}\ndeclare var DisposableStack: DisposableStackConstructor;\n\ninterface AsyncDisposableStack {\n /**\n * Returns a value indicating whether this stack has been disposed.\n */\n readonly disposed: boolean;\n /**\n * Disposes each resource in the stack in the reverse order that they were added.\n */\n disposeAsync(): Promise<void>;\n /**\n * Adds a disposable resource to the stack, returning the resource.\n * @param value The resource to add. `null` and `undefined` will not be added, but will be returned.\n * @returns The provided {@link value}.\n */\n use<T extends AsyncDisposable | Disposable | null | undefined>(value: T): T;\n /**\n * Adds a value and associated disposal callback as a resource to the stack.\n * @param value The value to add.\n * @param onDisposeAsync The callback to use in place of a `[Symbol.asyncDispose]()` method. Will be invoked with `value`\n * as the first parameter.\n * @returns The provided {@link value}.\n */\n adopt<T>(value: T, onDisposeAsync: (value: T) => PromiseLike<void> | void): T;\n /**\n * Adds a callback to be invoked when the stack is disposed.\n */\n defer(onDisposeAsync: () => PromiseLike<void> | void): void;\n /**\n * Move all resources out of this stack and into a new `DisposableStack`, and marks this stack as disposed.\n * @example\n * ```ts\n * class C {\n * #res1: Disposable;\n * #res2: Disposable;\n * #disposables: DisposableStack;\n * constructor() {\n * // stack will be disposed when exiting constructor for any reason\n * using stack = new DisposableStack();\n *\n * // get first resource\n * this.#res1 = stack.use(getResource1());\n *\n * // get second resource. If this fails, both `stack` and `#res1` will be disposed.\n * this.#res2 = stack.use(getResource2());\n *\n * // all operations succeeded, move resources out of `stack` so that they aren\'t disposed\n * // when constructor exits\n * this.#disposables = stack.move();\n * }\n *\n * [Symbol.dispose]() {\n * this.#disposables.dispose();\n * }\n * }\n * ```\n */\n move(): AsyncDisposableStack;\n [Symbol.asyncDispose](): Promise<void>;\n readonly [Symbol.toStringTag]: string;\n}\n\ninterface AsyncDisposableStackConstructor {\n new (): AsyncDisposableStack;\n readonly prototype: AsyncDisposableStack;\n}\ndeclare var AsyncDisposableStack: AsyncDisposableStackConstructor;\n',S["lib.esnext.full.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/// <reference lib="esnext" />\n/// <reference lib="dom" />\n/// <reference lib="webworker.importscripts" />\n/// <reference lib="scripthost" />\n/// <reference lib="dom.iterable" />\n/// <reference lib="dom.asynciterable" />\n',S["lib.esnext.intl.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ndeclare namespace Intl {\n interface NumberRangeFormatPart extends NumberFormatPart {\n source: "startRange" | "endRange" | "shared";\n }\n\n interface NumberFormat {\n formatRange(start: number | bigint, end: number | bigint): string;\n formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];\n }\n}\n',S["lib.esnext.object.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface ObjectConstructor {\n /**\n * Groups members of an iterable according to the return value of the passed callback.\n * @param items An iterable.\n * @param keySelector A callback which will be invoked for each item in items.\n */\n groupBy<K extends PropertyKey, T>(\n items: Iterable<T>,\n keySelector: (item: T, index: number) => K,\n ): Partial<Record<K, T[]>>;\n}\n',S["lib.esnext.promise.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\ninterface PromiseWithResolvers<T> {\n promise: Promise<T>;\n resolve: (value: T | PromiseLike<T>) => void;\n reject: (reason?: any) => void;\n}\n\ninterface PromiseConstructor {\n /**\n * Creates a new Promise and returns it in an object, along with its resolve and reject functions.\n * @returns An object with the properties `promise`, `resolve`, and `reject`.\n *\n * ```ts\n * const { promise, resolve, reject } = Promise.withResolvers<T>();\n * ```\n */\n withResolvers<T>(): PromiseWithResolvers<T>;\n}\n',S["lib.scripthost.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Windows Script Host APIS\n/////////////////////////////\n\ninterface ActiveXObject {\n new (s: string): any;\n}\ndeclare var ActiveXObject: ActiveXObject;\n\ninterface ITextWriter {\n Write(s: string): void;\n WriteLine(s: string): void;\n Close(): void;\n}\n\ninterface TextStreamBase {\n /**\n * The column number of the current character position in an input stream.\n */\n Column: number;\n\n /**\n * The current line number in an input stream.\n */\n Line: number;\n\n /**\n * Closes a text stream.\n * It is not necessary to close standard streams; they close automatically when the process ends. If\n * you close a standard stream, be aware that any other pointers to that standard stream become invalid.\n */\n Close(): void;\n}\n\ninterface TextStreamWriter extends TextStreamBase {\n /**\n * Sends a string to an output stream.\n */\n Write(s: string): void;\n\n /**\n * Sends a specified number of blank lines (newline characters) to an output stream.\n */\n WriteBlankLines(intLines: number): void;\n\n /**\n * Sends a string followed by a newline character to an output stream.\n */\n WriteLine(s: string): void;\n}\n\ninterface TextStreamReader extends TextStreamBase {\n /**\n * Returns a specified number of characters from an input stream, starting at the current pointer position.\n * Does not return until the ENTER key is pressed.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n */\n Read(characters: number): string;\n\n /**\n * Returns all characters from an input stream.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n */\n ReadAll(): string;\n\n /**\n * Returns an entire line from an input stream.\n * Although this method extracts the newline character, it does not add it to the returned string.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n */\n ReadLine(): string;\n\n /**\n * Skips a specified number of characters when reading from an input text stream.\n * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)\n */\n Skip(characters: number): void;\n\n /**\n * Skips the next line when reading from an input text stream.\n * Can only be used on a stream in reading mode, not writing or appending mode.\n */\n SkipLine(): void;\n\n /**\n * Indicates whether the stream pointer position is at the end of a line.\n */\n AtEndOfLine: boolean;\n\n /**\n * Indicates whether the stream pointer position is at the end of a stream.\n */\n AtEndOfStream: boolean;\n}\n\ndeclare var WScript: {\n /**\n * Outputs text to either a message box (under WScript.exe) or the command console window followed by\n * a newline (under CScript.exe).\n */\n Echo(s: any): void;\n\n /**\n * Exposes the write-only error output stream for the current script.\n * Can be accessed only while using CScript.exe.\n */\n StdErr: TextStreamWriter;\n\n /**\n * Exposes the write-only output stream for the current script.\n * Can be accessed only while using CScript.exe.\n */\n StdOut: TextStreamWriter;\n Arguments: { length: number; Item(n: number): string; };\n\n /**\n * The full path of the currently running script.\n */\n ScriptFullName: string;\n\n /**\n * Forces the script to stop immediately, with an optional exit code.\n */\n Quit(exitCode?: number): number;\n\n /**\n * The Windows Script Host build version number.\n */\n BuildVersion: number;\n\n /**\n * Fully qualified path of the host executable.\n */\n FullName: string;\n\n /**\n * Gets/sets the script mode - interactive(true) or batch(false).\n */\n Interactive: boolean;\n\n /**\n * The name of the host executable (WScript.exe or CScript.exe).\n */\n Name: string;\n\n /**\n * Path of the directory containing the host executable.\n */\n Path: string;\n\n /**\n * The filename of the currently running script.\n */\n ScriptName: string;\n\n /**\n * Exposes the read-only input stream for the current script.\n * Can be accessed only while using CScript.exe.\n */\n StdIn: TextStreamReader;\n\n /**\n * Windows Script Host version\n */\n Version: string;\n\n /**\n * Connects a COM object\'s event sources to functions named with a given prefix, in the form prefix_event.\n */\n ConnectObject(objEventSource: any, strPrefix: string): void;\n\n /**\n * Creates a COM object.\n * @param strProgiID\n * @param strPrefix Function names in the form prefix_event will be bound to this object\'s COM events.\n */\n CreateObject(strProgID: string, strPrefix?: string): any;\n\n /**\n * Disconnects a COM object from its event sources.\n */\n DisconnectObject(obj: any): void;\n\n /**\n * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.\n * @param strPathname Fully qualified path to the file containing the object persisted to disk.\n * For objects in memory, pass a zero-length string.\n * @param strProgID\n * @param strPrefix Function names in the form prefix_event will be bound to this object\'s COM events.\n */\n GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;\n\n /**\n * Suspends script execution for a specified length of time, then continues execution.\n * @param intTime Interval (in milliseconds) to suspend script execution.\n */\n Sleep(intTime: number): void;\n};\n\n/**\n * WSH is an alias for WScript under Windows Script Host\n */\ndeclare var WSH: typeof WScript;\n\n/**\n * Represents an Automation SAFEARRAY\n */\ndeclare class SafeArray<T = any> {\n private constructor();\n private SafeArray_typekey: SafeArray<T>;\n}\n\n/**\n * Allows enumerating over a COM collection, which may not have indexed item access.\n */\ninterface Enumerator<T = any> {\n /**\n * Returns true if the current item is the last one in the collection, or the collection is empty,\n * or the current item is undefined.\n */\n atEnd(): boolean;\n\n /**\n * Returns the current item in the collection\n */\n item(): T;\n\n /**\n * Resets the current item in the collection to the first item. If there are no items in the collection,\n * the current item is set to undefined.\n */\n moveFirst(): void;\n\n /**\n * Moves the current item to the next item in the collection. If the enumerator is at the end of\n * the collection or the collection is empty, the current item is set to undefined.\n */\n moveNext(): void;\n}\n\ninterface EnumeratorConstructor {\n new <T = any>(safearray: SafeArray<T>): Enumerator<T>;\n new <T = any>(collection: { Item(index: any): T; }): Enumerator<T>;\n new <T = any>(collection: any): Enumerator<T>;\n}\n\ndeclare var Enumerator: EnumeratorConstructor;\n\n/**\n * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.\n */\ninterface VBArray<T = any> {\n /**\n * Returns the number of dimensions (1-based).\n */\n dimensions(): number;\n\n /**\n * Takes an index for each dimension in the array, and returns the item at the corresponding location.\n */\n getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;\n\n /**\n * Returns the smallest available index for a given dimension.\n * @param dimension 1-based dimension (defaults to 1)\n */\n lbound(dimension?: number): number;\n\n /**\n * Returns the largest available index for a given dimension.\n * @param dimension 1-based dimension (defaults to 1)\n */\n ubound(dimension?: number): number;\n\n /**\n * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,\n * each successive dimension is appended to the end of the array.\n * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]\n */\n toArray(): T[];\n}\n\ninterface VBArrayConstructor {\n new <T = any>(safeArray: SafeArray<T>): VBArray<T>;\n}\n\ndeclare var VBArray: VBArrayConstructor;\n\n/**\n * Automation date (VT_DATE)\n */\ndeclare class VarDate {\n private constructor();\n private VarDate_typekey: VarDate;\n}\n\ninterface DateConstructor {\n new (vd: VarDate): Date;\n}\n\ninterface Date {\n getVarDate: () => VarDate;\n}\n',S["lib.webworker.asynciterable.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Worker Async Iterable APIs\n/////////////////////////////\n\ninterface FileSystemDirectoryHandle {\n [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;\n entries(): AsyncIterableIterator<[string, FileSystemHandle]>;\n keys(): AsyncIterableIterator<string>;\n values(): AsyncIterableIterator<FileSystemHandle>;\n}\n',S["lib.webworker.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Worker APIs\n/////////////////////////////\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n signal?: AbortSignal;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: BufferSource;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: BufferSource;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: BufferSource;\n iv: BufferSource;\n tagLength?: number;\n}\n\ninterface AesKeyAlgorithm extends KeyAlgorithm {\n length: number;\n}\n\ninterface AesKeyGenParams extends Algorithm {\n length: number;\n}\n\ninterface Algorithm {\n name: string;\n}\n\ninterface AudioConfiguration {\n bitrate?: number;\n channels?: string;\n contentType: string;\n samplerate?: number;\n spatialRendering?: boolean;\n}\n\ninterface AvcEncoderConfig {\n format?: AvcBitstreamFormat;\n}\n\ninterface BlobPropertyBag {\n endings?: EndingType;\n type?: string;\n}\n\ninterface CSSMatrixComponentOptions {\n is2D?: boolean;\n}\n\ninterface CSSNumericType {\n angle?: number;\n flex?: number;\n frequency?: number;\n length?: number;\n percent?: number;\n percentHint?: CSSNumericBaseType;\n resolution?: number;\n time?: number;\n}\n\ninterface CacheQueryOptions {\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface ClientQueryOptions {\n includeUncontrolled?: boolean;\n type?: ClientTypes;\n}\n\ninterface CloseEventInit extends EventInit {\n code?: number;\n reason?: string;\n wasClean?: boolean;\n}\n\ninterface CryptoKeyPair {\n privateKey: CryptoKey;\n publicKey: CryptoKey;\n}\n\ninterface CustomEventInit<T = any> extends EventInit {\n detail?: T;\n}\n\ninterface DOMMatrix2DInit {\n a?: number;\n b?: number;\n c?: number;\n d?: number;\n e?: number;\n f?: number;\n m11?: number;\n m12?: number;\n m21?: number;\n m22?: number;\n m41?: number;\n m42?: number;\n}\n\ninterface DOMMatrixInit extends DOMMatrix2DInit {\n is2D?: boolean;\n m13?: number;\n m14?: number;\n m23?: number;\n m24?: number;\n m31?: number;\n m32?: number;\n m33?: number;\n m34?: number;\n m43?: number;\n m44?: number;\n}\n\ninterface DOMPointInit {\n w?: number;\n x?: number;\n y?: number;\n z?: number;\n}\n\ninterface DOMQuadInit {\n p1?: DOMPointInit;\n p2?: DOMPointInit;\n p3?: DOMPointInit;\n p4?: DOMPointInit;\n}\n\ninterface DOMRectInit {\n height?: number;\n width?: number;\n x?: number;\n y?: number;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface EncodedVideoChunkInit {\n data: AllowSharedBufferSource;\n duration?: number;\n timestamp: number;\n type: EncodedVideoChunkType;\n}\n\ninterface EncodedVideoChunkMetadata {\n decoderConfig?: VideoDecoderConfig;\n}\n\ninterface ErrorEventInit extends EventInit {\n colno?: number;\n error?: any;\n filename?: string;\n lineno?: number;\n message?: string;\n}\n\ninterface EventInit {\n bubbles?: boolean;\n cancelable?: boolean;\n composed?: boolean;\n}\n\ninterface EventListenerOptions {\n capture?: boolean;\n}\n\ninterface EventSourceInit {\n withCredentials?: boolean;\n}\n\ninterface ExtendableEventInit extends EventInit {\n}\n\ninterface ExtendableMessageEventInit extends ExtendableEventInit {\n data?: any;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: Client | ServiceWorker | MessagePort | null;\n}\n\ninterface FetchEventInit extends ExtendableEventInit {\n clientId?: string;\n handled?: Promise<undefined>;\n preloadResponse?: Promise<any>;\n replacesClientId?: string;\n request: Request;\n resultingClientId?: string;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FileSystemCreateWritableOptions {\n keepExistingData?: boolean;\n}\n\ninterface FileSystemGetDirectoryOptions {\n create?: boolean;\n}\n\ninterface FileSystemGetFileOptions {\n create?: boolean;\n}\n\ninterface FileSystemReadWriteOptions {\n at?: number;\n}\n\ninterface FileSystemRemoveOptions {\n recursive?: boolean;\n}\n\ninterface FontFaceDescriptors {\n ascentOverride?: string;\n descentOverride?: string;\n display?: FontDisplay;\n featureSettings?: string;\n lineGapOverride?: string;\n stretch?: string;\n style?: string;\n unicodeRange?: string;\n weight?: string;\n}\n\ninterface FontFaceSetLoadEventInit extends EventInit {\n fontfaces?: FontFace[];\n}\n\ninterface GetNotificationOptions {\n tag?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n info: BufferSource;\n salt: BufferSource;\n}\n\ninterface HmacImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface IDBDatabaseInfo {\n name?: string;\n version?: number;\n}\n\ninterface IDBIndexParameters {\n multiEntry?: boolean;\n unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n autoIncrement?: boolean;\n keyPath?: string | string[] | null;\n}\n\ninterface IDBTransactionOptions {\n durability?: IDBTransactionDurability;\n}\n\ninterface IDBVersionChangeEventInit extends EventInit {\n newVersion?: number | null;\n oldVersion?: number;\n}\n\ninterface ImageBitmapOptions {\n colorSpaceConversion?: ColorSpaceConversion;\n imageOrientation?: ImageOrientation;\n premultiplyAlpha?: PremultiplyAlpha;\n resizeHeight?: number;\n resizeQuality?: ResizeQuality;\n resizeWidth?: number;\n}\n\ninterface ImageBitmapRenderingContextSettings {\n alpha?: boolean;\n}\n\ninterface ImageDataSettings {\n colorSpace?: PredefinedColorSpace;\n}\n\ninterface ImageEncodeOptions {\n quality?: number;\n type?: string;\n}\n\ninterface ImportMeta {\n url: string;\n}\n\ninterface JsonWebKey {\n alg?: string;\n crv?: string;\n d?: string;\n dp?: string;\n dq?: string;\n e?: string;\n ext?: boolean;\n k?: string;\n key_ops?: string[];\n kty?: string;\n n?: string;\n oth?: RsaOtherPrimesInfo[];\n p?: string;\n q?: string;\n qi?: string;\n use?: string;\n x?: string;\n y?: string;\n}\n\ninterface KeyAlgorithm {\n name: string;\n}\n\ninterface LockInfo {\n clientId?: string;\n mode?: LockMode;\n name?: string;\n}\n\ninterface LockManagerSnapshot {\n held?: LockInfo[];\n pending?: LockInfo[];\n}\n\ninterface LockOptions {\n ifAvailable?: boolean;\n mode?: LockMode;\n signal?: AbortSignal;\n steal?: boolean;\n}\n\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaDecodingConfiguration;\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaEncodingConfiguration;\n}\n\ninterface MediaCapabilitiesInfo {\n powerEfficient: boolean;\n smooth: boolean;\n supported: boolean;\n}\n\ninterface MediaConfiguration {\n audio?: AudioConfiguration;\n video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\n type: MediaDecodingType;\n}\n\ninterface MediaEncodingConfiguration extends MediaConfiguration {\n type: MediaEncodingType;\n}\n\ninterface MessageEventInit<T = any> extends EventInit {\n data?: T;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: MessageEventSource | null;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n cacheName?: string;\n}\n\ninterface NavigationPreloadState {\n enabled?: boolean;\n headerValue?: string;\n}\n\ninterface NotificationEventInit extends ExtendableEventInit {\n action?: string;\n notification: Notification;\n}\n\ninterface NotificationOptions {\n badge?: string;\n body?: string;\n data?: any;\n dir?: NotificationDirection;\n icon?: string;\n lang?: string;\n requireInteraction?: boolean;\n silent?: boolean | null;\n tag?: string;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: HashAlgorithmIdentifier;\n iterations: number;\n salt: BufferSource;\n}\n\ninterface PerformanceMarkOptions {\n detail?: any;\n startTime?: DOMHighResTimeStamp;\n}\n\ninterface PerformanceMeasureOptions {\n detail?: any;\n duration?: DOMHighResTimeStamp;\n end?: string | DOMHighResTimeStamp;\n start?: string | DOMHighResTimeStamp;\n}\n\ninterface PerformanceObserverInit {\n buffered?: boolean;\n entryTypes?: string[];\n type?: string;\n}\n\ninterface PermissionDescriptor {\n name: PermissionName;\n}\n\ninterface PlaneLayout {\n offset: number;\n stride: number;\n}\n\ninterface ProgressEventInit extends EventInit {\n lengthComputable?: boolean;\n loaded?: number;\n total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n promise: Promise<any>;\n reason?: any;\n}\n\ninterface PushEventInit extends ExtendableEventInit {\n data?: PushMessageDataInit;\n}\n\ninterface PushSubscriptionJSON {\n endpoint?: string;\n expirationTime?: EpochTimeStamp | null;\n keys?: Record<string, string>;\n}\n\ninterface PushSubscriptionOptionsInit {\n applicationServerKey?: BufferSource | string | null;\n userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy<T = any> {\n highWaterMark?: number;\n size?: QueuingStrategySize<T>;\n}\n\ninterface QueuingStrategyInit {\n /**\n * Creates a new ByteLengthQueuingStrategy with the provided high water mark.\n *\n * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.\n */\n highWaterMark: number;\n}\n\ninterface RTCEncodedAudioFrameMetadata {\n contributingSources?: number[];\n payloadType?: number;\n sequenceNumber?: number;\n synchronizationSource?: number;\n}\n\ninterface RTCEncodedVideoFrameMetadata {\n contributingSources?: number[];\n dependencies?: number[];\n frameId?: number;\n height?: number;\n payloadType?: number;\n spatialIndex?: number;\n synchronizationSource?: number;\n temporalIndex?: number;\n timestamp?: number;\n width?: number;\n}\n\ninterface ReadableStreamGetReaderOptions {\n /**\n * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.\n *\n * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.\n */\n mode?: ReadableStreamReaderMode;\n}\n\ninterface ReadableStreamReadDoneResult<T> {\n done: true;\n value?: T;\n}\n\ninterface ReadableStreamReadValueResult<T> {\n done: false;\n value: T;\n}\n\ninterface ReadableWritablePair<R = any, W = any> {\n readable: ReadableStream<R>;\n /**\n * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n */\n writable: WritableStream<W>;\n}\n\ninterface RegistrationOptions {\n scope?: string;\n type?: WorkerType;\n updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface ReportingObserverOptions {\n buffered?: boolean;\n types?: string[];\n}\n\ninterface RequestInit {\n /** A BodyInit object or null to set request\'s body. */\n body?: BodyInit | null;\n /** A string indicating how the request will interact with the browser\'s cache to set request\'s cache. */\n cache?: RequestCache;\n /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request\'s credentials. */\n credentials?: RequestCredentials;\n /** A Headers object, an object literal, or an array of two-item arrays to set request\'s headers. */\n headers?: HeadersInit;\n /** A cryptographic hash of the resource to be fetched by request. Sets request\'s integrity. */\n integrity?: string;\n /** A boolean to set request\'s keepalive. */\n keepalive?: boolean;\n /** A string to set request\'s method. */\n method?: string;\n /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request\'s mode. */\n mode?: RequestMode;\n priority?: RequestPriority;\n /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request\'s redirect. */\n redirect?: RequestRedirect;\n /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request\'s referrer. */\n referrer?: string;\n /** A referrer policy to set request\'s referrerPolicy. */\n referrerPolicy?: ReferrerPolicy;\n /** An AbortSignal to set request\'s signal. */\n signal?: AbortSignal | null;\n /** Can only be null. Used to disassociate request from any Window. */\n window?: null;\n}\n\ninterface ResponseInit {\n headers?: HeadersInit;\n status?: number;\n statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaOaepParams extends Algorithm {\n label?: BufferSource;\n}\n\ninterface RsaOtherPrimesInfo {\n d?: string;\n r?: string;\n t?: string;\n}\n\ninterface RsaPssParams extends Algorithm {\n saltLength: number;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n blockedURI?: string;\n columnNumber?: number;\n disposition: SecurityPolicyViolationEventDisposition;\n documentURI: string;\n effectiveDirective: string;\n lineNumber?: number;\n originalPolicy: string;\n referrer?: string;\n sample?: string;\n sourceFile?: string;\n statusCode: number;\n violatedDirective: string;\n}\n\ninterface StorageEstimate {\n quota?: number;\n usage?: number;\n}\n\ninterface StreamPipeOptions {\n preventAbort?: boolean;\n preventCancel?: boolean;\n /**\n * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n *\n * Errors and closures of the source and destination streams propagate as follows:\n *\n * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source\'s error, or with any error that occurs during aborting the destination.\n *\n * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination\'s error, or with any error that occurs during canceling the source.\n *\n * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.\n *\n * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.\n *\n * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.\n */\n preventClose?: boolean;\n signal?: AbortSignal;\n}\n\ninterface StructuredSerializeOptions {\n transfer?: Transferable[];\n}\n\ninterface TextDecodeOptions {\n stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n fatal?: boolean;\n ignoreBOM?: boolean;\n}\n\ninterface TextEncoderEncodeIntoResult {\n read: number;\n written: number;\n}\n\ninterface Transformer<I = any, O = any> {\n flush?: TransformerFlushCallback<O>;\n readableType?: undefined;\n start?: TransformerStartCallback<O>;\n transform?: TransformerTransformCallback<I, O>;\n writableType?: undefined;\n}\n\ninterface UnderlyingByteSource {\n autoAllocateChunkSize?: number;\n cancel?: UnderlyingSourceCancelCallback;\n pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;\n start?: (controller: ReadableByteStreamController) => any;\n type: "bytes";\n}\n\ninterface UnderlyingDefaultSource<R = any> {\n cancel?: UnderlyingSourceCancelCallback;\n pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;\n start?: (controller: ReadableStreamDefaultController<R>) => any;\n type?: undefined;\n}\n\ninterface UnderlyingSink<W = any> {\n abort?: UnderlyingSinkAbortCallback;\n close?: UnderlyingSinkCloseCallback;\n start?: UnderlyingSinkStartCallback;\n type?: undefined;\n write?: UnderlyingSinkWriteCallback<W>;\n}\n\ninterface UnderlyingSource<R = any> {\n autoAllocateChunkSize?: number;\n cancel?: UnderlyingSourceCancelCallback;\n pull?: UnderlyingSourcePullCallback<R>;\n start?: UnderlyingSourceStartCallback<R>;\n type?: ReadableStreamType;\n}\n\ninterface VideoColorSpaceInit {\n fullRange?: boolean | null;\n matrix?: VideoMatrixCoefficients | null;\n primaries?: VideoColorPrimaries | null;\n transfer?: VideoTransferCharacteristics | null;\n}\n\ninterface VideoConfiguration {\n bitrate: number;\n colorGamut?: ColorGamut;\n contentType: string;\n framerate: number;\n hdrMetadataType?: HdrMetadataType;\n height: number;\n scalabilityMode?: string;\n transferFunction?: TransferFunction;\n width: number;\n}\n\ninterface VideoDecoderConfig {\n codec: string;\n codedHeight?: number;\n codedWidth?: number;\n colorSpace?: VideoColorSpaceInit;\n description?: AllowSharedBufferSource;\n displayAspectHeight?: number;\n displayAspectWidth?: number;\n hardwareAcceleration?: HardwareAcceleration;\n optimizeForLatency?: boolean;\n}\n\ninterface VideoDecoderInit {\n error: WebCodecsErrorCallback;\n output: VideoFrameOutputCallback;\n}\n\ninterface VideoDecoderSupport {\n config?: VideoDecoderConfig;\n supported?: boolean;\n}\n\ninterface VideoEncoderConfig {\n alpha?: AlphaOption;\n avc?: AvcEncoderConfig;\n bitrate?: number;\n bitrateMode?: VideoEncoderBitrateMode;\n codec: string;\n displayHeight?: number;\n displayWidth?: number;\n framerate?: number;\n hardwareAcceleration?: HardwareAcceleration;\n height: number;\n latencyMode?: LatencyMode;\n scalabilityMode?: string;\n width: number;\n}\n\ninterface VideoEncoderEncodeOptions {\n keyFrame?: boolean;\n}\n\ninterface VideoEncoderInit {\n error: WebCodecsErrorCallback;\n output: EncodedVideoChunkOutputCallback;\n}\n\ninterface VideoEncoderSupport {\n config?: VideoEncoderConfig;\n supported?: boolean;\n}\n\ninterface VideoFrameBufferInit {\n codedHeight: number;\n codedWidth: number;\n colorSpace?: VideoColorSpaceInit;\n displayHeight?: number;\n displayWidth?: number;\n duration?: number;\n format: VideoPixelFormat;\n layout?: PlaneLayout[];\n timestamp: number;\n visibleRect?: DOMRectInit;\n}\n\ninterface VideoFrameCopyToOptions {\n layout?: PlaneLayout[];\n rect?: DOMRectInit;\n}\n\ninterface VideoFrameInit {\n alpha?: AlphaOption;\n displayHeight?: number;\n displayWidth?: number;\n duration?: number;\n timestamp?: number;\n visibleRect?: DOMRectInit;\n}\n\ninterface WebGLContextAttributes {\n alpha?: boolean;\n antialias?: boolean;\n depth?: boolean;\n desynchronized?: boolean;\n failIfMajorPerformanceCaveat?: boolean;\n powerPreference?: WebGLPowerPreference;\n premultipliedAlpha?: boolean;\n preserveDrawingBuffer?: boolean;\n stencil?: boolean;\n}\n\ninterface WebGLContextEventInit extends EventInit {\n statusMessage?: string;\n}\n\ninterface WebTransportCloseInfo {\n closeCode?: number;\n reason?: string;\n}\n\ninterface WebTransportErrorOptions {\n source?: WebTransportErrorSource;\n streamErrorCode?: number | null;\n}\n\ninterface WebTransportHash {\n algorithm?: string;\n value?: BufferSource;\n}\n\ninterface WebTransportOptions {\n allowPooling?: boolean;\n congestionControl?: WebTransportCongestionControl;\n requireUnreliable?: boolean;\n serverCertificateHashes?: WebTransportHash[];\n}\n\ninterface WebTransportSendStreamOptions {\n sendOrder?: number;\n}\n\ninterface WorkerOptions {\n credentials?: RequestCredentials;\n name?: string;\n type?: WorkerType;\n}\n\ninterface WriteParams {\n data?: BufferSource | Blob | string | null;\n position?: number | null;\n size?: number | null;\n type: WriteCommandType;\n}\n\n/**\n * The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays)\n */\ninterface ANGLE_instanced_arrays {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */\n vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;\n}\n\n/**\n * A controller object that allows you to abort one or more DOM requests as and when desired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)\n */\ninterface AbortController {\n /**\n * Returns the AbortSignal object associated with this object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)\n */\n readonly signal: AbortSignal;\n /**\n * Invoking this method will set this object\'s AbortSignal\'s aborted flag and signal to any observers that the associated activity is to be aborted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)\n */\n abort(reason?: any): void;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n "abort": Event;\n}\n\n/**\n * A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)\n */\ninterface AbortSignal extends EventTarget {\n /**\n * Returns true if this AbortSignal\'s AbortController has signaled to abort, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)\n */\n readonly aborted: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */\n onabort: ((this: AbortSignal, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */\n readonly reason: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */\n throwIfAborted(): void;\n addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AbortSignal: {\n prototype: AbortSignal;\n new(): AbortSignal;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */\n abort(reason?: any): AbortSignal;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */\n timeout(milliseconds: number): AbortSignal;\n};\n\ninterface AbstractWorkerEventMap {\n "error": ErrorEvent;\n}\n\ninterface AbstractWorker {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */\n onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;\n addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface AnimationFrameProvider {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */\n cancelAnimationFrame(handle: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */\n requestAnimationFrame(callback: FrameRequestCallback): number;\n}\n\n/**\n * A file-like object of immutable, raw data. Blobs represent data that isn\'t necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user\'s system.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)\n */\ninterface Blob {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */\n readonly size: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */\n readonly type: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */\n arrayBuffer(): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */\n slice(start?: number, end?: number, contentType?: string): Blob;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */\n stream(): ReadableStream<Uint8Array>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */\n text(): Promise<string>;\n}\n\ndeclare var Blob: {\n prototype: Blob;\n new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\ninterface Body {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */\n readonly body: ReadableStream<Uint8Array> | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */\n readonly bodyUsed: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */\n arrayBuffer(): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */\n blob(): Promise<Blob>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */\n formData(): Promise<FormData>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */\n json(): Promise<any>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */\n text(): Promise<string>;\n}\n\ninterface BroadcastChannelEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */\ninterface BroadcastChannel extends EventTarget {\n /**\n * Returns the channel name (as passed to the constructor).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name)\n */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */\n onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */\n onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /**\n * Closes the BroadcastChannel object, opening it up to garbage collection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)\n */\n close(): void;\n /**\n * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)\n */\n postMessage(message: any): void;\n addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BroadcastChannel: {\n prototype: BroadcastChannel;\n new(name: string): BroadcastChannel;\n};\n\n/**\n * This Streams API interface provides\xa0a built-in byte length queuing strategy that can be used when constructing streams.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)\n */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */\n readonly highWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */\n readonly size: QueuingStrategySize<ArrayBufferView>;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n prototype: ByteLengthQueuingStrategy;\n new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */\ninterface CSSImageValue extends CSSStyleValue {\n}\n\ndeclare var CSSImageValue: {\n prototype: CSSImageValue;\n new(): CSSImageValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */\ninterface CSSKeywordValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */\n value: string;\n}\n\ndeclare var CSSKeywordValue: {\n prototype: CSSKeywordValue;\n new(value: string): CSSKeywordValue;\n};\n\ninterface CSSMathClamp extends CSSMathValue {\n readonly lower: CSSNumericValue;\n readonly upper: CSSNumericValue;\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathClamp: {\n prototype: CSSMathClamp;\n new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */\ninterface CSSMathInvert extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathInvert: {\n prototype: CSSMathInvert;\n new(arg: CSSNumberish): CSSMathInvert;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */\ninterface CSSMathMax extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathMax: {\n prototype: CSSMathMax;\n new(...args: CSSNumberish[]): CSSMathMax;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */\ninterface CSSMathMin extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathMin: {\n prototype: CSSMathMin;\n new(...args: CSSNumberish[]): CSSMathMin;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */\ninterface CSSMathNegate extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */\n readonly value: CSSNumericValue;\n}\n\ndeclare var CSSMathNegate: {\n prototype: CSSMathNegate;\n new(arg: CSSNumberish): CSSMathNegate;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */\ninterface CSSMathProduct extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathProduct: {\n prototype: CSSMathProduct;\n new(...args: CSSNumberish[]): CSSMathProduct;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */\ninterface CSSMathSum extends CSSMathValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */\n readonly values: CSSNumericArray;\n}\n\ndeclare var CSSMathSum: {\n prototype: CSSMathSum;\n new(...args: CSSNumberish[]): CSSMathSum;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */\ninterface CSSMathValue extends CSSNumericValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */\n readonly operator: CSSMathOperator;\n}\n\ndeclare var CSSMathValue: {\n prototype: CSSMathValue;\n new(): CSSMathValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */\ninterface CSSMatrixComponent extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */\n matrix: DOMMatrix;\n}\n\ndeclare var CSSMatrixComponent: {\n prototype: CSSMatrixComponent;\n new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */\ninterface CSSNumericArray {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */\n readonly length: number;\n forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;\n [index: number]: CSSNumericValue;\n}\n\ndeclare var CSSNumericArray: {\n prototype: CSSNumericArray;\n new(): CSSNumericArray;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */\ninterface CSSNumericValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */\n add(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */\n div(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */\n equals(...value: CSSNumberish[]): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */\n max(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */\n min(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */\n mul(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */\n sub(...values: CSSNumberish[]): CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */\n to(unit: string): CSSUnitValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */\n toSum(...units: string[]): CSSMathSum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */\n type(): CSSNumericType;\n}\n\ndeclare var CSSNumericValue: {\n prototype: CSSNumericValue;\n new(): CSSNumericValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */\ninterface CSSPerspective extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */\n length: CSSPerspectiveValue;\n}\n\ndeclare var CSSPerspective: {\n prototype: CSSPerspective;\n new(length: CSSPerspectiveValue): CSSPerspective;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */\ninterface CSSRotate extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */\n angle: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */\n x: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */\n y: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */\n z: CSSNumberish;\n}\n\ndeclare var CSSRotate: {\n prototype: CSSRotate;\n new(angle: CSSNumericValue): CSSRotate;\n new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */\ninterface CSSScale extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */\n x: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */\n y: CSSNumberish;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */\n z: CSSNumberish;\n}\n\ndeclare var CSSScale: {\n prototype: CSSScale;\n new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */\ninterface CSSSkew extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */\n ax: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */\n ay: CSSNumericValue;\n}\n\ndeclare var CSSSkew: {\n prototype: CSSSkew;\n new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */\ninterface CSSSkewX extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */\n ax: CSSNumericValue;\n}\n\ndeclare var CSSSkewX: {\n prototype: CSSSkewX;\n new(ax: CSSNumericValue): CSSSkewX;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */\ninterface CSSSkewY extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */\n ay: CSSNumericValue;\n}\n\ndeclare var CSSSkewY: {\n prototype: CSSSkewY;\n new(ay: CSSNumericValue): CSSSkewY;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */\ninterface CSSStyleValue {\n toString(): string;\n}\n\ndeclare var CSSStyleValue: {\n prototype: CSSStyleValue;\n new(): CSSStyleValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */\ninterface CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */\n is2D: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */\n toMatrix(): DOMMatrix;\n toString(): string;\n}\n\ndeclare var CSSTransformComponent: {\n prototype: CSSTransformComponent;\n new(): CSSTransformComponent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */\ninterface CSSTransformValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */\n readonly is2D: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */\n toMatrix(): DOMMatrix;\n forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;\n [index: number]: CSSTransformComponent;\n}\n\ndeclare var CSSTransformValue: {\n prototype: CSSTransformValue;\n new(transforms: CSSTransformComponent[]): CSSTransformValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */\ninterface CSSTranslate extends CSSTransformComponent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */\n x: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */\n y: CSSNumericValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */\n z: CSSNumericValue;\n}\n\ndeclare var CSSTranslate: {\n prototype: CSSTranslate;\n new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */\ninterface CSSUnitValue extends CSSNumericValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */\n readonly unit: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */\n value: number;\n}\n\ndeclare var CSSUnitValue: {\n prototype: CSSUnitValue;\n new(value: number, unit: string): CSSUnitValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */\ninterface CSSUnparsedValue extends CSSStyleValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */\n readonly length: number;\n forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;\n [index: number]: CSSUnparsedSegment;\n}\n\ndeclare var CSSUnparsedValue: {\n prototype: CSSUnparsedValue;\n new(members: CSSUnparsedSegment[]): CSSUnparsedValue;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */\ninterface CSSVariableReferenceValue {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */\n readonly fallback: CSSUnparsedValue | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */\n variable: string;\n}\n\ndeclare var CSSVariableReferenceValue: {\n prototype: CSSVariableReferenceValue;\n new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;\n};\n\n/**\n * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don\'t have to use it in conjunction with service workers, even though it is defined in the service worker spec.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)\n */\ninterface Cache {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */\n add(request: RequestInfo | URL): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */\n addAll(requests: RequestInfo[]): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */\n delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */\n keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */\n match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */\n matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */\n put(request: RequestInfo | URL, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n prototype: Cache;\n new(): Cache;\n};\n\n/**\n * The storage for Cache objects.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage)\n */\ninterface CacheStorage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */\n delete(cacheName: string): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */\n has(cacheName: string): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */\n keys(): Promise<string[]>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */\n match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */\n open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n prototype: CacheStorage;\n new(): CacheStorage;\n};\n\ninterface CanvasCompositing {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */\n globalAlpha: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */\n globalCompositeOperation: GlobalCompositeOperation;\n}\n\ninterface CanvasDrawImage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */\n drawImage(image: CanvasImageSource, dx: number, dy: number): void;\n drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;\n drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;\n}\n\ninterface CanvasDrawPath {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */\n beginPath(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */\n clip(fillRule?: CanvasFillRule): void;\n clip(path: Path2D, fillRule?: CanvasFillRule): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */\n fill(fillRule?: CanvasFillRule): void;\n fill(path: Path2D, fillRule?: CanvasFillRule): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */\n isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;\n isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */\n isPointInStroke(x: number, y: number): boolean;\n isPointInStroke(path: Path2D, x: number, y: number): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */\n stroke(): void;\n stroke(path: Path2D): void;\n}\n\ninterface CanvasFillStrokeStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */\n fillStyle: string | CanvasGradient | CanvasPattern;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */\n strokeStyle: string | CanvasGradient | CanvasPattern;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */\n createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */\n createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */\n createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */\n createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n}\n\ninterface CanvasFilters {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */\n filter: string;\n}\n\n/**\n * An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)\n */\ninterface CanvasGradient {\n /**\n * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.\n *\n * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)\n */\n addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n prototype: CanvasGradient;\n new(): CanvasGradient;\n};\n\ninterface CanvasImageData {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */\n createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n createImageData(imagedata: ImageData): ImageData;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */\n getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */\n putImageData(imagedata: ImageData, dx: number, dy: number): void;\n putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;\n}\n\ninterface CanvasImageSmoothing {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */\n imageSmoothingEnabled: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */\n imageSmoothingQuality: ImageSmoothingQuality;\n}\n\ninterface CanvasPath {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */\n arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */\n bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */\n closePath(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */\n ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */\n lineTo(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */\n moveTo(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */\n quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */\n rect(x: number, y: number, w: number, h: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */\n roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;\n}\n\ninterface CanvasPathDrawingStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */\n lineCap: CanvasLineCap;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */\n lineDashOffset: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */\n lineJoin: CanvasLineJoin;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */\n lineWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */\n miterLimit: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */\n getLineDash(): number[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */\n setLineDash(segments: number[]): void;\n}\n\n/**\n * An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern)\n */\ninterface CanvasPattern {\n /**\n * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform)\n */\n setTransform(transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var CanvasPattern: {\n prototype: CanvasPattern;\n new(): CanvasPattern;\n};\n\ninterface CanvasRect {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */\n clearRect(x: number, y: number, w: number, h: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */\n fillRect(x: number, y: number, w: number, h: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */\n strokeRect(x: number, y: number, w: number, h: number): void;\n}\n\ninterface CanvasShadowStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */\n shadowBlur: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */\n shadowColor: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */\n shadowOffsetX: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */\n shadowOffsetY: number;\n}\n\ninterface CanvasState {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */\n reset(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */\n restore(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */\n save(): void;\n}\n\ninterface CanvasText {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */\n fillText(text: string, x: number, y: number, maxWidth?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */\n measureText(text: string): TextMetrics;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */\n strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n}\n\ninterface CanvasTextDrawingStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */\n direction: CanvasDirection;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */\n font: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */\n fontKerning: CanvasFontKerning;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */\n fontStretch: CanvasFontStretch;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */\n fontVariantCaps: CanvasFontVariantCaps;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */\n letterSpacing: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */\n textAlign: CanvasTextAlign;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */\n textBaseline: CanvasTextBaseline;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */\n textRendering: CanvasTextRendering;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */\n wordSpacing: string;\n}\n\ninterface CanvasTransform {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */\n getTransform(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */\n resetTransform(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */\n rotate(angle: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */\n scale(x: number, y: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */\n setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n setTransform(transform?: DOMMatrix2DInit): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */\n transform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */\n translate(x: number, y: number): void;\n}\n\n/**\n * The Client\xa0interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific\xa0WindowClient. You can get\xa0Client/WindowClient\xa0objects from methods such as Clients.matchAll() and\xa0Clients.get().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client)\n */\ninterface Client {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/frameType) */\n readonly frameType: FrameType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/id) */\n readonly id: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/type) */\n readonly type: ClientTypes;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/url) */\n readonly url: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/postMessage) */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n}\n\ndeclare var Client: {\n prototype: Client;\n new(): Client;\n};\n\n/**\n * Provides access to\xa0Client\xa0objects. Access it\xa0via self.clients\xa0within a\xa0service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients)\n */\ninterface Clients {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/claim) */\n claim(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/get) */\n get(id: string): Promise<Client | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/matchAll) */\n matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/openWindow) */\n openWindow(url: string | URL): Promise<WindowClient | null>;\n}\n\ndeclare var Clients: {\n prototype: Clients;\n new(): Clients;\n};\n\n/**\n * A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object\'s onclose attribute.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)\n */\ninterface CloseEvent extends Event {\n /**\n * Returns the WebSocket connection close code provided by the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)\n */\n readonly code: number;\n /**\n * Returns the WebSocket connection close reason provided by the server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)\n */\n readonly reason: string;\n /**\n * Returns true if the connection closed cleanly; false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)\n */\n readonly wasClean: boolean;\n}\n\ndeclare var CloseEvent: {\n prototype: CloseEvent;\n new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */\ninterface CompressionStream extends GenericTransformStream {\n}\n\ndeclare var CompressionStream: {\n prototype: CompressionStream;\n new(format: CompressionFormat): CompressionStream;\n};\n\n/**\n * This Streams API interface provides\xa0a built-in byte length queuing strategy that can be used when constructing streams.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)\n */\ninterface CountQueuingStrategy extends QueuingStrategy {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */\n readonly highWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */\n readonly size: QueuingStrategySize;\n}\n\ndeclare var CountQueuingStrategy: {\n prototype: CountQueuingStrategy;\n new(init: QueuingStrategyInit): CountQueuingStrategy;\n};\n\n/**\n * Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)\n */\ninterface Crypto {\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)\n */\n readonly subtle: SubtleCrypto;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */\n getRandomValues<T extends ArrayBufferView | null>(array: T): T;\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)\n */\n randomUUID(): `${string}-${string}-${string}-${string}-${string}`;\n}\n\ndeclare var Crypto: {\n prototype: Crypto;\n new(): Crypto;\n};\n\n/**\n * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)\n */\ninterface CryptoKey {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */\n readonly algorithm: KeyAlgorithm;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */\n readonly extractable: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */\n readonly type: KeyType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */\n readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */\ninterface CustomEvent<T = any> extends Event {\n /**\n * Returns any custom data event was created with. Typically used for synthetic events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)\n */\n readonly detail: T;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)\n */\n initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;\n}\n\ndeclare var CustomEvent: {\n prototype: CustomEvent;\n new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\n/**\n * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)\n */\ninterface DOMException extends Error {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)\n */\n readonly code: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */\n readonly message: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */\n readonly name: string;\n readonly INDEX_SIZE_ERR: 1;\n readonly DOMSTRING_SIZE_ERR: 2;\n readonly HIERARCHY_REQUEST_ERR: 3;\n readonly WRONG_DOCUMENT_ERR: 4;\n readonly INVALID_CHARACTER_ERR: 5;\n readonly NO_DATA_ALLOWED_ERR: 6;\n readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n readonly NOT_FOUND_ERR: 8;\n readonly NOT_SUPPORTED_ERR: 9;\n readonly INUSE_ATTRIBUTE_ERR: 10;\n readonly INVALID_STATE_ERR: 11;\n readonly SYNTAX_ERR: 12;\n readonly INVALID_MODIFICATION_ERR: 13;\n readonly NAMESPACE_ERR: 14;\n readonly INVALID_ACCESS_ERR: 15;\n readonly VALIDATION_ERR: 16;\n readonly TYPE_MISMATCH_ERR: 17;\n readonly SECURITY_ERR: 18;\n readonly NETWORK_ERR: 19;\n readonly ABORT_ERR: 20;\n readonly URL_MISMATCH_ERR: 21;\n readonly QUOTA_EXCEEDED_ERR: 22;\n readonly TIMEOUT_ERR: 23;\n readonly INVALID_NODE_TYPE_ERR: 24;\n readonly DATA_CLONE_ERR: 25;\n}\n\ndeclare var DOMException: {\n prototype: DOMException;\n new(message?: string, name?: string): DOMException;\n readonly INDEX_SIZE_ERR: 1;\n readonly DOMSTRING_SIZE_ERR: 2;\n readonly HIERARCHY_REQUEST_ERR: 3;\n readonly WRONG_DOCUMENT_ERR: 4;\n readonly INVALID_CHARACTER_ERR: 5;\n readonly NO_DATA_ALLOWED_ERR: 6;\n readonly NO_MODIFICATION_ALLOWED_ERR: 7;\n readonly NOT_FOUND_ERR: 8;\n readonly NOT_SUPPORTED_ERR: 9;\n readonly INUSE_ATTRIBUTE_ERR: 10;\n readonly INVALID_STATE_ERR: 11;\n readonly SYNTAX_ERR: 12;\n readonly INVALID_MODIFICATION_ERR: 13;\n readonly NAMESPACE_ERR: 14;\n readonly INVALID_ACCESS_ERR: 15;\n readonly VALIDATION_ERR: 16;\n readonly TYPE_MISMATCH_ERR: 17;\n readonly SECURITY_ERR: 18;\n readonly NETWORK_ERR: 19;\n readonly ABORT_ERR: 20;\n readonly URL_MISMATCH_ERR: 21;\n readonly QUOTA_EXCEEDED_ERR: 22;\n readonly TIMEOUT_ERR: 23;\n readonly INVALID_NODE_TYPE_ERR: 24;\n readonly DATA_CLONE_ERR: 25;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */\ninterface DOMMatrix extends DOMMatrixReadOnly {\n a: number;\n b: number;\n c: number;\n d: number;\n e: number;\n f: number;\n m11: number;\n m12: number;\n m13: number;\n m14: number;\n m21: number;\n m22: number;\n m23: number;\n m24: number;\n m31: number;\n m32: number;\n m33: number;\n m34: number;\n m41: number;\n m42: number;\n m43: number;\n m44: number;\n invertSelf(): DOMMatrix;\n multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */\n scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */\n scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n skewXSelf(sx?: number): DOMMatrix;\n skewYSelf(sy?: number): DOMMatrix;\n translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrix: {\n prototype: DOMMatrix;\n new(init?: string | number[]): DOMMatrix;\n fromFloat32Array(array32: Float32Array): DOMMatrix;\n fromFloat64Array(array64: Float64Array): DOMMatrix;\n fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */\ninterface DOMMatrixReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */\n readonly a: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */\n readonly b: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */\n readonly c: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */\n readonly d: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */\n readonly e: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */\n readonly f: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */\n readonly is2D: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */\n readonly isIdentity: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */\n readonly m11: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */\n readonly m12: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */\n readonly m13: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */\n readonly m14: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */\n readonly m21: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */\n readonly m22: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */\n readonly m23: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */\n readonly m24: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */\n readonly m31: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */\n readonly m32: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */\n readonly m33: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */\n readonly m34: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */\n readonly m41: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */\n readonly m42: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */\n readonly m43: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */\n readonly m44: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */\n flipX(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */\n flipY(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */\n inverse(): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */\n multiply(other?: DOMMatrixInit): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */\n rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */\n rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */\n rotateFromVector(x?: number, y?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */\n scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */\n scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)\n */\n scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */\n skewX(sx?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */\n skewY(sy?: number): DOMMatrix;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */\n toFloat32Array(): Float32Array;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */\n toFloat64Array(): Float64Array;\n toJSON(): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */\n transformPoint(point?: DOMPointInit): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */\n translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrixReadOnly: {\n prototype: DOMMatrixReadOnly;\n new(init?: string | number[]): DOMMatrixReadOnly;\n fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;\n fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\n fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */\ninterface DOMPoint extends DOMPointReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */\n w: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */\n x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */\n y: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */\n z: number;\n}\n\ndeclare var DOMPoint: {\n prototype: DOMPoint;\n new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */\n fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */\ninterface DOMPointReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */\n readonly w: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */\n readonly x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */\n readonly y: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */\n readonly z: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */\n matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */\n toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n prototype: DOMPointReadOnly;\n new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */\n fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */\ninterface DOMQuad {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */\n readonly p1: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */\n readonly p2: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */\n readonly p3: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */\n readonly p4: DOMPoint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */\n getBounds(): DOMRect;\n toJSON(): any;\n}\n\ndeclare var DOMQuad: {\n prototype: DOMQuad;\n new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\n fromQuad(other?: DOMQuadInit): DOMQuad;\n fromRect(other?: DOMRectInit): DOMQuad;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */\ninterface DOMRect extends DOMRectReadOnly {\n height: number;\n width: number;\n x: number;\n y: number;\n}\n\ndeclare var DOMRect: {\n prototype: DOMRect;\n new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n fromRect(other?: DOMRectInit): DOMRect;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */\ninterface DOMRectReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */\n readonly bottom: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */\n readonly height: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */\n readonly left: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */\n readonly right: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */\n readonly top: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */\n readonly width: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */\n readonly x: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */\n readonly y: number;\n toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */\n fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/**\n * A type returned by some APIs which contains a list of DOMString (strings).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)\n */\ninterface DOMStringList {\n /**\n * Returns the number of strings in strings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)\n */\n readonly length: number;\n /**\n * Returns true if strings contains string, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)\n */\n contains(string: string): boolean;\n /**\n * Returns the string with index index from strings.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)\n */\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var DOMStringList: {\n prototype: DOMStringList;\n new(): DOMStringList;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */\ninterface DecompressionStream extends GenericTransformStream {\n}\n\ndeclare var DecompressionStream: {\n prototype: DecompressionStream;\n new(format: CompressionFormat): DecompressionStream;\n};\n\ninterface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n "rtctransform": Event;\n}\n\n/**\n * (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope)\n */\ninterface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {\n /**\n * Returns dedicatedWorkerGlobal\'s name, i.e. the value given to the Worker constructor. Primarily useful for debugging.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)\n */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */\n onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */\n onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */\n onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\n /**\n * Aborts dedicatedWorkerGlobal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)\n */\n close(): void;\n /**\n * Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var DedicatedWorkerGlobalScope: {\n prototype: DedicatedWorkerGlobalScope;\n new(): DedicatedWorkerGlobalScope;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */\ninterface EXT_blend_minmax {\n readonly MIN_EXT: 0x8007;\n readonly MAX_EXT: 0x8008;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */\ninterface EXT_color_buffer_float {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */\ninterface EXT_color_buffer_half_float {\n readonly RGBA16F_EXT: 0x881A;\n readonly RGB16F_EXT: 0x881B;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */\ninterface EXT_float_blend {\n}\n\n/**\n * The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth)\n */\ninterface EXT_frag_depth {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */\ninterface EXT_sRGB {\n readonly SRGB_EXT: 0x8C40;\n readonly SRGB_ALPHA_EXT: 0x8C42;\n readonly SRGB8_ALPHA8_EXT: 0x8C43;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */\ninterface EXT_shader_texture_lod {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */\ninterface EXT_texture_compression_bptc {\n readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;\n readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;\n readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;\n readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */\ninterface EXT_texture_compression_rgtc {\n readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;\n readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;\n readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;\n readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;\n}\n\n/**\n * The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic)\n */\ninterface EXT_texture_filter_anisotropic {\n readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */\ninterface EXT_texture_norm16 {\n readonly R16_EXT: 0x822A;\n readonly RG16_EXT: 0x822C;\n readonly RGB16_EXT: 0x8054;\n readonly RGBA16_EXT: 0x805B;\n readonly R16_SNORM_EXT: 0x8F98;\n readonly RG16_SNORM_EXT: 0x8F99;\n readonly RGB16_SNORM_EXT: 0x8F9A;\n readonly RGBA16_SNORM_EXT: 0x8F9B;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */\ninterface EncodedVideoChunk {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */\n readonly byteLength: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */\n readonly duration: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */\n readonly type: EncodedVideoChunkType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */\n copyTo(destination: AllowSharedBufferSource): void;\n}\n\ndeclare var EncodedVideoChunk: {\n prototype: EncodedVideoChunk;\n new(init: EncodedVideoChunkInit): EncodedVideoChunk;\n};\n\n/**\n * Events providing information related to errors in scripts or in files.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)\n */\ninterface ErrorEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */\n readonly colno: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */\n readonly error: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */\n readonly filename: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */\n readonly lineno: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */\n readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/**\n * An event which takes place in the DOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)\n */\ninterface Event {\n /**\n * Returns true or false depending on how event was initialized. True if event goes through its target\'s ancestors in reverse tree order, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)\n */\n readonly bubbles: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)\n */\n cancelBubble: boolean;\n /**\n * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)\n */\n readonly cancelable: boolean;\n /**\n * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)\n */\n readonly composed: boolean;\n /**\n * Returns the object whose event listener\'s callback is currently being invoked.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)\n */\n readonly currentTarget: EventTarget | null;\n /**\n * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)\n */\n readonly defaultPrevented: boolean;\n /**\n * Returns the event\'s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)\n */\n readonly eventPhase: number;\n /**\n * Returns true if event was dispatched by the user agent, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)\n */\n readonly isTrusted: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)\n */\n returnValue: boolean;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)\n */\n readonly srcElement: EventTarget | null;\n /**\n * Returns the object to which event is dispatched (its target).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)\n */\n readonly target: EventTarget | null;\n /**\n * Returns the event\'s timestamp as the number of milliseconds measured relative to the time origin.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)\n */\n readonly timeStamp: DOMHighResTimeStamp;\n /**\n * Returns the type of event, e.g. "click", "hashchange", or "submit".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)\n */\n readonly type: string;\n /**\n * Returns the invocation target objects of event\'s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root\'s mode is "closed" that are not reachable from event\'s currentTarget.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)\n */\n composedPath(): EventTarget[];\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)\n */\n initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n /**\n * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)\n */\n preventDefault(): void;\n /**\n * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)\n */\n stopImmediatePropagation(): void;\n /**\n * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)\n */\n stopPropagation(): void;\n readonly NONE: 0;\n readonly CAPTURING_PHASE: 1;\n readonly AT_TARGET: 2;\n readonly BUBBLING_PHASE: 3;\n}\n\ndeclare var Event: {\n prototype: Event;\n new(type: string, eventInitDict?: EventInit): Event;\n readonly NONE: 0;\n readonly CAPTURING_PHASE: 1;\n readonly AT_TARGET: 2;\n readonly BUBBLING_PHASE: 3;\n};\n\ninterface EventListener {\n (evt: Event): void;\n}\n\ninterface EventListenerObject {\n handleEvent(object: Event): void;\n}\n\ninterface EventSourceEventMap {\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */\ninterface EventSource extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */\n onerror: ((this: EventSource, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */\n onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */\n onopen: ((this: EventSource, ev: Event) => any) | null;\n /**\n * Returns the state of this EventSource object\'s connection. It can have the values described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)\n */\n readonly readyState: number;\n /**\n * Returns the URL providing the event stream.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)\n */\n readonly url: string;\n /**\n * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)\n */\n readonly withCredentials: boolean;\n /**\n * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)\n */\n close(): void;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSED: 2;\n addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var EventSource: {\n prototype: EventSource;\n new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSED: 2;\n};\n\n/**\n * EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)\n */\ninterface EventTarget {\n /**\n * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.\n *\n * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options\'s capture.\n *\n * When set to true, options\'s capture prevents callback from being invoked when the event\'s eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event\'s eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event\'s eventPhase attribute value is AT_TARGET.\n *\n * When set to true, options\'s passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xa7 2.8 Observing event listeners.\n *\n * When set to true, options\'s once indicates that the callback will only be invoked once after which the event listener will be removed.\n *\n * If an AbortSignal is passed for options\'s signal, then the event listener will be removed when signal is aborted.\n *\n * The event listener is appended to target\'s event listener list and is not appended if it has the same type, callback, and capture.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)\n */\n addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;\n /**\n * Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)\n */\n dispatchEvent(event: Event): boolean;\n /**\n * Removes the event listener in target\'s event listener list with the same type, callback, and options.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)\n */\n removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\n}\n\ndeclare var EventTarget: {\n prototype: EventTarget;\n new(): EventTarget;\n};\n\n/**\n * Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)\n */\ninterface ExtendableEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil) */\n waitUntil(f: Promise<any>): void;\n}\n\ndeclare var ExtendableEvent: {\n prototype: ExtendableEvent;\n new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;\n};\n\n/**\n * This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) \u2014 extends the lifetime of such events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent)\n */\ninterface ExtendableMessageEvent extends ExtendableEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/data) */\n readonly data: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/lastEventId) */\n readonly lastEventId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/origin) */\n readonly origin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/ports) */\n readonly ports: ReadonlyArray<MessagePort>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/source) */\n readonly source: Client | ServiceWorker | MessagePort | null;\n}\n\ndeclare var ExtendableMessageEvent: {\n prototype: ExtendableMessageEvent;\n new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;\n};\n\n/**\n * This is the event type for fetch\xa0events dispatched on the\xa0service worker global scope. It contains information about the fetch, including the\xa0request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent)\n */\ninterface FetchEvent extends ExtendableEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/clientId) */\n readonly clientId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/handled) */\n readonly handled: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/preloadResponse) */\n readonly preloadResponse: Promise<any>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request) */\n readonly request: Request;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/resultingClientId) */\n readonly resultingClientId: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith) */\n respondWith(r: Response | PromiseLike<Response>): void;\n}\n\ndeclare var FetchEvent: {\n prototype: FetchEvent;\n new(type: string, eventInitDict: FetchEventInit): FetchEvent;\n};\n\n/**\n * Provides information about files and allows JavaScript in a web page to access their content.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)\n */\ninterface File extends Blob {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */\n readonly lastModified: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */\n readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n prototype: File;\n new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\n};\n\n/**\n * An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It\'s also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)\n */\ninterface FileList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */\n item(index: number): File | null;\n [index: number]: File;\n}\n\ndeclare var FileList: {\n prototype: FileList;\n new(): FileList;\n};\n\ninterface FileReaderEventMap {\n "abort": ProgressEvent<FileReader>;\n "error": ProgressEvent<FileReader>;\n "load": ProgressEvent<FileReader>;\n "loadend": ProgressEvent<FileReader>;\n "loadstart": ProgressEvent<FileReader>;\n "progress": ProgressEvent<FileReader>;\n}\n\n/**\n * Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user\'s computer, using File or Blob objects to specify the file or data to read.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader)\n */\ninterface FileReader extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */\n readonly error: DOMException | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */\n onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */\n onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */\n onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */\n onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */\n onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */\n onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */\n readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */\n readonly result: string | ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */\n abort(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */\n readAsArrayBuffer(blob: Blob): void;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)\n */\n readAsBinaryString(blob: Blob): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */\n readAsDataURL(blob: Blob): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */\n readAsText(blob: Blob, encoding?: string): void;\n readonly EMPTY: 0;\n readonly LOADING: 1;\n readonly DONE: 2;\n addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FileReader: {\n prototype: FileReader;\n new(): FileReader;\n readonly EMPTY: 0;\n readonly LOADING: 1;\n readonly DONE: 2;\n};\n\n/**\n * Allows to read File or Blob objects in a synchronous way.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync)\n */\ninterface FileReaderSync {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsArrayBuffer) */\n readAsArrayBuffer(blob: Blob): ArrayBuffer;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsBinaryString)\n */\n readAsBinaryString(blob: Blob): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsDataURL) */\n readAsDataURL(blob: Blob): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsText) */\n readAsText(blob: Blob, encoding?: string): string;\n}\n\ndeclare var FileReaderSync: {\n prototype: FileReaderSync;\n new(): FileReaderSync;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)\n */\ninterface FileSystemDirectoryHandle extends FileSystemHandle {\n readonly kind: "directory";\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */\n getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */\n getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */\n removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */\n resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;\n}\n\ndeclare var FileSystemDirectoryHandle: {\n prototype: FileSystemDirectoryHandle;\n new(): FileSystemDirectoryHandle;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)\n */\ninterface FileSystemFileHandle extends FileSystemHandle {\n readonly kind: "file";\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createSyncAccessHandle) */\n createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */\n createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */\n getFile(): Promise<File>;\n}\n\ndeclare var FileSystemFileHandle: {\n prototype: FileSystemFileHandle;\n new(): FileSystemFileHandle;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)\n */\ninterface FileSystemHandle {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */\n readonly kind: FileSystemHandleKind;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */\n isSameEntry(other: FileSystemHandle): Promise<boolean>;\n}\n\ndeclare var FileSystemHandle: {\n prototype: FileSystemHandle;\n new(): FileSystemHandle;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle)\n */\ninterface FileSystemSyncAccessHandle {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/flush) */\n flush(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize) */\n getSize(): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read) */\n read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate) */\n truncate(newSize: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write) */\n write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;\n}\n\ndeclare var FileSystemSyncAccessHandle: {\n prototype: FileSystemSyncAccessHandle;\n new(): FileSystemSyncAccessHandle;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)\n */\ninterface FileSystemWritableFileStream extends WritableStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */\n seek(position: number): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */\n truncate(size: number): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */\n write(data: FileSystemWriteChunkType): Promise<void>;\n}\n\ndeclare var FileSystemWritableFileStream: {\n prototype: FileSystemWritableFileStream;\n new(): FileSystemWritableFileStream;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */\ninterface FontFace {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */\n ascentOverride: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */\n descentOverride: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */\n display: FontDisplay;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */\n family: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */\n featureSettings: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */\n lineGapOverride: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */\n readonly loaded: Promise<FontFace>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */\n readonly status: FontFaceLoadStatus;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */\n stretch: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */\n style: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */\n unicodeRange: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */\n weight: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */\n load(): Promise<FontFace>;\n}\n\ndeclare var FontFace: {\n prototype: FontFace;\n new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n "loading": Event;\n "loadingdone": Event;\n "loadingerror": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */\ninterface FontFaceSet extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */\n onloading: ((this: FontFaceSet, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */\n onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */\n onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */\n readonly ready: Promise<FontFaceSet>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */\n readonly status: FontFaceSetLoadStatus;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */\n check(font: string, text?: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */\n load(font: string, text?: string): Promise<FontFace[]>;\n forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;\n addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FontFaceSet: {\n prototype: FontFaceSet;\n new(initialFaces: FontFace[]): FontFaceSet;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */\ninterface FontFaceSetLoadEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */\n readonly fontfaces: ReadonlyArray<FontFace>;\n}\n\ndeclare var FontFaceSetLoadEvent: {\n prototype: FontFaceSetLoadEvent;\n new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;\n};\n\ninterface FontFaceSource {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */\n readonly fonts: FontFaceSet;\n}\n\n/**\n * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)\n */\ninterface FormData {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */\n append(name: string, value: string | Blob): void;\n append(name: string, value: string): void;\n append(name: string, blobValue: Blob, filename?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */\n delete(name: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */\n get(name: string): FormDataEntryValue | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */\n getAll(name: string): FormDataEntryValue[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */\n has(name: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */\n set(name: string, value: string | Blob): void;\n set(name: string, value: string): void;\n set(name: string, blobValue: Blob, filename?: string): void;\n forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;\n}\n\ndeclare var FormData: {\n prototype: FormData;\n new(): FormData;\n};\n\ninterface GenericTransformStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */\n readonly readable: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */\n readonly writable: WritableStream;\n}\n\n/**\n * This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xa0of zero or more name and value pairs. \xa0You can add to this using methods like append() (see Examples.)\xa0In all methods of this interface, header names are matched by case-insensitive byte sequence.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)\n */\ninterface Headers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */\n append(name: string, value: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */\n delete(name: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */\n get(name: string): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */\n getSetCookie(): string[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */\n has(name: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */\n set(name: string, value: string): void;\n forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;\n}\n\ndeclare var Headers: {\n prototype: Headers;\n new(init?: HeadersInit): Headers;\n};\n\n/**\n * This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor)\n */\ninterface IDBCursor {\n /**\n * Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)\n */\n readonly direction: IDBCursorDirection;\n /**\n * Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)\n */\n readonly key: IDBValidKey;\n /**\n * Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)\n */\n readonly primaryKey: IDBValidKey;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) */\n readonly request: IDBRequest;\n /**\n * Returns the IDBObjectStore or IDBIndex the cursor was opened from.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)\n */\n readonly source: IDBObjectStore | IDBIndex;\n /**\n * Advances the cursor through the next count records in range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)\n */\n advance(count: number): void;\n /**\n * Advances the cursor to the next record in range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)\n */\n continue(key?: IDBValidKey): void;\n /**\n * Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)\n */\n continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;\n /**\n * Delete the record pointed at by the cursor with a new value.\n *\n * If successful, request\'s result will be undefined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)\n */\n delete(): IDBRequest<undefined>;\n /**\n * Updated the record pointed at by the cursor with a new value.\n *\n * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.\n *\n * If successful, request\'s result will be the record\'s key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)\n */\n update(value: any): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBCursor: {\n prototype: IDBCursor;\n new(): IDBCursor;\n};\n\n/**\n * This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)\n */\ninterface IDBCursorWithValue extends IDBCursor {\n /**\n * Returns the cursor\'s current value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/value)\n */\n readonly value: any;\n}\n\ndeclare var IDBCursorWithValue: {\n prototype: IDBCursorWithValue;\n new(): IDBCursorWithValue;\n};\n\ninterface IDBDatabaseEventMap {\n "abort": Event;\n "close": Event;\n "error": Event;\n "versionchange": IDBVersionChangeEvent;\n}\n\n/**\n * This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)\n */\ninterface IDBDatabase extends EventTarget {\n /**\n * Returns the name of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)\n */\n readonly name: string;\n /**\n * Returns a list of the names of object stores in the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)\n */\n readonly objectStoreNames: DOMStringList;\n onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */\n onclose: ((this: IDBDatabase, ev: Event) => any) | null;\n onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */\n onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;\n /**\n * Returns the version of the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)\n */\n readonly version: number;\n /**\n * Closes the connection once all running transactions have finished.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)\n */\n close(): void;\n /**\n * Creates a new object store with the given name and options and returns a new IDBObjectStore.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)\n */\n createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;\n /**\n * Deletes the object store with the given name.\n *\n * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)\n */\n deleteObjectStore(name: string): void;\n /**\n * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)\n */\n transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;\n addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBDatabase: {\n prototype: IDBDatabase;\n new(): IDBDatabase;\n};\n\n/**\n * In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.)\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)\n */\ninterface IDBFactory {\n /**\n * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.\n *\n * Throws a "DataError" DOMException if either input is not a valid key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)\n */\n cmp(first: any, second: any): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) */\n databases(): Promise<IDBDatabaseInfo[]>;\n /**\n * Attempts to delete the named database. If the database already exists and there are open connections that don\'t close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request\'s result will be null.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)\n */\n deleteDatabase(name: string): IDBOpenDBRequest;\n /**\n * Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request\'s result will be the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open)\n */\n open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n prototype: IDBFactory;\n new(): IDBFactory;\n};\n\n/**\n * IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)\n */\ninterface IDBIndex {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) */\n readonly keyPath: string | string[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) */\n readonly multiEntry: boolean;\n /**\n * Returns the name of the index.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)\n */\n name: string;\n /**\n * Returns the IDBObjectStore the index belongs to.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)\n */\n readonly objectStore: IDBObjectStore;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) */\n readonly unique: boolean;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue, or null if there were no matching records.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.\n *\n * If successful, request\'s result will be an IDBCursor, or null if there were no matching records.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor)\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n}\n\ndeclare var IDBIndex: {\n prototype: IDBIndex;\n new(): IDBIndex;\n};\n\n/**\n * A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs:\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)\n */\ninterface IDBKeyRange {\n /**\n * Returns lower bound, or undefined if none.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)\n */\n readonly lower: any;\n /**\n * Returns true if the lower open flag is set, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)\n */\n readonly lowerOpen: boolean;\n /**\n * Returns upper bound, or undefined if none.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)\n */\n readonly upper: any;\n /**\n * Returns true if the upper open flag is set, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)\n */\n readonly upperOpen: boolean;\n /**\n * Returns true if key is included in the range, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)\n */\n includes(key: any): boolean;\n}\n\ndeclare var IDBKeyRange: {\n prototype: IDBKeyRange;\n new(): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)\n */\n bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)\n */\n lowerBound(lower: any, open?: boolean): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange spanning only key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)\n */\n only(value: any): IDBKeyRange;\n /**\n * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)\n */\n upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\n/**\n * This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xa0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xa0To-do Notifications\xa0app (view example live.)\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)\n */\ninterface IDBObjectStore {\n /**\n * Returns true if the store has a key generator, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)\n */\n readonly autoIncrement: boolean;\n /**\n * Returns a list of the names of indexes in the store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)\n */\n readonly indexNames: DOMStringList;\n /**\n * Returns the key path of the store, or null if none.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)\n */\n readonly keyPath: string | string[];\n /**\n * Returns the name of the store.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)\n */\n name: string;\n /**\n * Returns the associated transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)\n */\n readonly transaction: IDBTransaction;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n *\n * If successful, request\'s result will be the record\'s key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)\n */\n add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n /**\n * Deletes all records in store.\n *\n * If successful, request\'s result will be undefined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)\n */\n clear(): IDBRequest<undefined>;\n /**\n * Retrieves the number of records matching the given key or key range in query.\n *\n * If successful, request\'s result will be the count.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)\n */\n count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n /**\n * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)\n */\n createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n /**\n * Deletes records in store with the given key or in the given key range in query.\n *\n * If successful, request\'s result will be undefined.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)\n */\n delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n /**\n * Deletes the index in store with the given name.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)\n */\n deleteIndex(name: string): void;\n /**\n * Retrieves the value of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the value, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)\n */\n get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;\n /**\n * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the values.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)\n */\n getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;\n /**\n * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n *\n * If successful, request\'s result will be an Array of the keys.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)\n */\n getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;\n /**\n * Retrieves the key of the first record matching the given key or key range in query.\n *\n * If successful, request\'s result will be the key, or undefined if there was no matching record.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)\n */\n getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) */\n index(name: string): IDBIndex;\n /**\n * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)\n */\n openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n /**\n * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.\n *\n * If successful, request\'s result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)\n */\n openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n /**\n * Adds or updates a record in store with the given value and key.\n *\n * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.\n *\n * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request\'s error set to a "ConstraintError" DOMException.\n *\n * If successful, request\'s result will be the record\'s key.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put)\n */\n put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBObjectStore: {\n prototype: IDBObjectStore;\n new(): IDBObjectStore;\n};\n\ninterface IDBOpenDBRequestEventMap extends IDBRequestEventMap {\n "blocked": IDBVersionChangeEvent;\n "upgradeneeded": IDBVersionChangeEvent;\n}\n\n/**\n * Also inherits methods from its parents IDBRequest and EventTarget.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest)\n */\ninterface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */\n onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */\n onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBOpenDBRequest: {\n prototype: IDBOpenDBRequest;\n new(): IDBOpenDBRequest;\n};\n\ninterface IDBRequestEventMap {\n "error": Event;\n "success": Event;\n}\n\n/**\n * The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)\n */\ninterface IDBRequest<T = any> extends EventTarget {\n /**\n * When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error)\n */\n readonly error: DOMException | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */\n onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */\n onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;\n /**\n * Returns "pending" until a request is complete, then returns "done".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)\n */\n readonly readyState: IDBRequestReadyState;\n /**\n * When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)\n */\n readonly result: T;\n /**\n * Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)\n */\n readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n /**\n * Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction)\n */\n readonly transaction: IDBTransaction | null;\n addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBRequest: {\n prototype: IDBRequest;\n new(): IDBRequest;\n};\n\ninterface IDBTransactionEventMap {\n "abort": Event;\n "complete": Event;\n "error": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction) */\ninterface IDBTransaction extends EventTarget {\n /**\n * Returns the transaction\'s connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)\n */\n readonly db: IDBDatabase;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) */\n readonly durability: IDBTransactionDurability;\n /**\n * If the transaction was aborted, returns the error (a DOMException) providing the reason.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)\n */\n readonly error: DOMException | null;\n /**\n * Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)\n */\n readonly mode: IDBTransactionMode;\n /**\n * Returns a list of the names of object stores in the transaction\'s scope. For an upgrade transaction this is all object stores in the database.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)\n */\n readonly objectStoreNames: DOMStringList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */\n onabort: ((this: IDBTransaction, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */\n oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */\n onerror: ((this: IDBTransaction, ev: Event) => any) | null;\n /**\n * Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)\n */\n abort(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) */\n commit(): void;\n /**\n * Returns an IDBObjectStore in the transaction\'s scope.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore)\n */\n objectStore(name: string): IDBObjectStore;\n addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBTransaction: {\n prototype: IDBTransaction;\n new(): IDBTransaction;\n};\n\n/**\n * This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)\n */\ninterface IDBVersionChangeEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) */\n readonly newVersion: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) */\n readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n prototype: IDBVersionChangeEvent;\n new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap) */\ninterface ImageBitmap {\n /**\n * Returns the intrinsic height of the image, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)\n */\n readonly height: number;\n /**\n * Returns the intrinsic width of the image, in CSS pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)\n */\n readonly width: number;\n /**\n * Releases imageBitmap\'s underlying bitmap data.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)\n */\n close(): void;\n}\n\ndeclare var ImageBitmap: {\n prototype: ImageBitmap;\n new(): ImageBitmap;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */\ninterface ImageBitmapRenderingContext {\n /**\n * Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)\n */\n transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n prototype: ImageBitmapRenderingContext;\n new(): ImageBitmapRenderingContext;\n};\n\n/**\n * The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)\n */\ninterface ImageData {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) */\n readonly colorSpace: PredefinedColorSpace;\n /**\n * Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)\n */\n readonly data: Uint8ClampedArray;\n /**\n * Returns the actual dimensions of the data in the ImageData object, in pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)\n */\n readonly height: number;\n /**\n * Returns the actual dimensions of the data in the ImageData object, in pixels.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width)\n */\n readonly width: number;\n}\n\ndeclare var ImageData: {\n prototype: ImageData;\n new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */\ninterface KHR_parallel_shader_compile {\n readonly COMPLETION_STATUS_KHR: 0x91B1;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)\n */\ninterface Lock {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) */\n readonly mode: LockMode;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) */\n readonly name: string;\n}\n\ndeclare var Lock: {\n prototype: Lock;\n new(): Lock;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)\n */\ninterface LockManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */\n query(): Promise<LockManagerSnapshot>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */\n request(name: string, callback: LockGrantedCallback): Promise<any>;\n request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;\n}\n\ndeclare var LockManager: {\n prototype: LockManager;\n new(): LockManager;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities) */\ninterface MediaCapabilities {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) */\n decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) */\n encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;\n}\n\ndeclare var MediaCapabilities: {\n prototype: MediaCapabilities;\n new(): MediaCapabilities;\n};\n\n/**\n * This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)\n */\ninterface MessageChannel {\n /**\n * Returns the first MessagePort object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)\n */\n readonly port1: MessagePort;\n /**\n * Returns the second MessagePort object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)\n */\n readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n prototype: MessageChannel;\n new(): MessageChannel;\n};\n\n/**\n * A message received by a target object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)\n */\ninterface MessageEvent<T = any> extends Event {\n /**\n * Returns the data of the message.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)\n */\n readonly data: T;\n /**\n * Returns the last event ID string, for server-sent events.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)\n */\n readonly lastEventId: string;\n /**\n * Returns the origin of the message, for server-sent events and cross-document messaging.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)\n */\n readonly origin: string;\n /**\n * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)\n */\n readonly ports: ReadonlyArray<MessagePort>;\n /**\n * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)\n */\n readonly source: MessageEventSource | null;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)\n */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;\n}\n\ndeclare var MessageEvent: {\n prototype: MessageEvent;\n new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;\n};\n\ninterface MessagePortEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)\n */\ninterface MessagePort extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */\n onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */\n onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;\n /**\n * Disconnects the port, so that it is no longer active.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)\n */\n close(): void;\n /**\n * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.\n *\n * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /**\n * Begins dispatching messages received on the port.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)\n */\n start(): void;\n addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MessagePort: {\n prototype: MessagePort;\n new(): MessagePort;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)\n */\ninterface NavigationPreloadManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) */\n disable(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) */\n enable(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) */\n getState(): Promise<NavigationPreloadState>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue) */\n setHeaderValue(value: string): Promise<void>;\n}\n\ndeclare var NavigationPreloadManager: {\n prototype: NavigationPreloadManager;\n new(): NavigationPreloadManager;\n};\n\n/** Available only in secure contexts. */\ninterface NavigatorBadge {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */\n clearAppBadge(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */\n setAppBadge(contents?: number): Promise<void>;\n}\n\ninterface NavigatorConcurrentHardware {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */\n readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorID {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)\n */\n readonly appCodeName: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)\n */\n readonly appName: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)\n */\n readonly appVersion: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)\n */\n readonly platform: string;\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)\n */\n readonly product: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */\n readonly userAgent: string;\n}\n\ninterface NavigatorLanguage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */\n readonly language: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */\n readonly languages: ReadonlyArray<string>;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorLocks {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */\n readonly locks: LockManager;\n}\n\ninterface NavigatorOnLine {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */\n readonly onLine: boolean;\n}\n\n/** Available only in secure contexts. */\ninterface NavigatorStorage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */\n readonly storage: StorageManager;\n}\n\ninterface NotificationEventMap {\n "click": Event;\n "close": Event;\n "error": Event;\n "show": Event;\n}\n\n/**\n * This Notifications API interface is used to configure and display desktop notifications to the user.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)\n */\ninterface Notification extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */\n readonly badge: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */\n readonly body: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */\n readonly data: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) */\n readonly dir: NotificationDirection;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) */\n readonly icon: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) */\n readonly lang: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */\n onclick: ((this: Notification, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */\n onclose: ((this: Notification, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */\n onerror: ((this: Notification, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */\n onshow: ((this: Notification, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */\n readonly requireInteraction: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */\n readonly silent: boolean | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */\n readonly tag: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */\n readonly title: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) */\n close(): void;\n addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Notification: {\n prototype: Notification;\n new(title: string, options?: NotificationOptions): Notification;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */\n readonly permission: NotificationPermission;\n};\n\n/**\n * The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent)\n */\ninterface NotificationEvent extends ExtendableEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/action) */\n readonly action: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/notification) */\n readonly notification: Notification;\n}\n\ndeclare var NotificationEvent: {\n prototype: NotificationEvent;\n new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed) */\ninterface OES_draw_buffers_indexed {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) */\n blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) */\n blendEquationiOES(buf: GLuint, mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) */\n blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) */\n blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) */\n colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) */\n disableiOES(target: GLenum, index: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) */\n enableiOES(target: GLenum, index: GLuint): void;\n}\n\n/**\n * The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements().\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)\n */\ninterface OES_element_index_uint {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap) */\ninterface OES_fbo_render_mipmap {\n}\n\n/**\n * The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)\n */\ninterface OES_standard_derivatives {\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;\n}\n\n/**\n * The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float)\n */\ninterface OES_texture_float {\n}\n\n/**\n * The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear)\n */\ninterface OES_texture_float_linear {\n}\n\n/**\n * The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float)\n */\ninterface OES_texture_half_float {\n readonly HALF_FLOAT_OES: 0x8D61;\n}\n\n/**\n * The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear)\n */\ninterface OES_texture_half_float_linear {\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object) */\ninterface OES_vertex_array_object {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */\n bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */\n createVertexArrayOES(): WebGLVertexArrayObjectOES | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */\n deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */\n isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;\n readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2) */\ninterface OVR_multiview2 {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) */\n framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;\n readonly MAX_VIEWS_OVR: 0x9631;\n readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;\n}\n\ninterface OffscreenCanvasEventMap {\n "contextlost": Event;\n "contextrestored": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) */\ninterface OffscreenCanvas extends EventTarget {\n /**\n * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n *\n * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)\n */\n height: number;\n oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;\n oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;\n /**\n * These attributes return the dimensions of the OffscreenCanvas object\'s bitmap.\n *\n * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)\n */\n width: number;\n /**\n * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.\n *\n * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn\'t supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)\n */\n convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;\n /**\n * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.\n *\n * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]\n *\n * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)\n */\n getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;\n getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;\n getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;\n getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;\n getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;\n /**\n * Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)\n */\n transferToImageBitmap(): ImageBitmap;\n addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OffscreenCanvas: {\n prototype: OffscreenCanvas;\n new(width: number, height: number): OffscreenCanvas;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */\ninterface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {\n readonly canvas: OffscreenCanvas;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */\n commit(): void;\n}\n\ndeclare var OffscreenCanvasRenderingContext2D: {\n prototype: OffscreenCanvasRenderingContext2D;\n new(): OffscreenCanvasRenderingContext2D;\n};\n\n/**\n * This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)\n */\ninterface Path2D extends CanvasPath {\n /**\n * Adds to the path the path given by the argument.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)\n */\n addPath(path: Path2D, transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var Path2D: {\n prototype: Path2D;\n new(path?: Path2D | string): Path2D;\n};\n\ninterface PerformanceEventMap {\n "resourcetimingbufferfull": Event;\n}\n\n/**\n * Provides access to performance-related information for the current page. It\'s part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance)\n */\ninterface Performance extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */\n onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */\n readonly timeOrigin: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */\n clearMarks(markName?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */\n clearMeasures(measureName?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */\n clearResourceTimings(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */\n getEntries(): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */\n getEntriesByType(type: string): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */\n mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */\n measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */\n now(): DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */\n setResourceTimingBufferSize(maxSize: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */\n toJSON(): any;\n addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Performance: {\n prototype: Performance;\n new(): Performance;\n};\n\n/**\n * Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)\n */\ninterface PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */\n readonly duration: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */\n readonly entryType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */\n readonly startTime: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n prototype: PerformanceEntry;\n new(): PerformanceEntry;\n};\n\n/**\n * PerformanceMark\xa0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)\n */\ninterface PerformanceMark extends PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */\n readonly detail: any;\n}\n\ndeclare var PerformanceMark: {\n prototype: PerformanceMark;\n new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;\n};\n\n/**\n * PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser\'s performance timeline.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)\n */\ninterface PerformanceMeasure extends PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */\n readonly detail: any;\n}\n\ndeclare var PerformanceMeasure: {\n prototype: PerformanceMeasure;\n new(): PerformanceMeasure;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) */\ninterface PerformanceObserver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */\n disconnect(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */\n observe(options?: PerformanceObserverInit): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */\n takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n prototype: PerformanceObserver;\n new(callback: PerformanceObserverCallback): PerformanceObserver;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */\n readonly supportedEntryTypes: ReadonlyArray<string>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) */\ninterface PerformanceObserverEntryList {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */\n getEntries(): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */\n getEntriesByName(name: string, type?: string): PerformanceEntryList;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */\n getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n prototype: PerformanceObserverEntryList;\n new(): PerformanceObserverEntryList;\n};\n\n/**\n * Enables retrieval and analysis of detailed network timing data regarding the loading of an application\'s resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)\n */\ninterface PerformanceResourceTiming extends PerformanceEntry {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */\n readonly connectEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */\n readonly connectStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */\n readonly decodedBodySize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */\n readonly domainLookupEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */\n readonly domainLookupStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */\n readonly encodedBodySize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */\n readonly fetchStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */\n readonly initiatorType: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */\n readonly nextHopProtocol: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */\n readonly redirectEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */\n readonly redirectStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */\n readonly requestStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */\n readonly responseEnd: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */\n readonly responseStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */\n readonly secureConnectionStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */\n readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */\n readonly transferSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */\n readonly workerStart: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n prototype: PerformanceResourceTiming;\n new(): PerformanceResourceTiming;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming) */\ninterface PerformanceServerTiming {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) */\n readonly description: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) */\n readonly duration: DOMHighResTimeStamp;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */\n toJSON(): any;\n}\n\ndeclare var PerformanceServerTiming: {\n prototype: PerformanceServerTiming;\n new(): PerformanceServerTiming;\n};\n\ninterface PermissionStatusEventMap {\n "change": Event;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus) */\ninterface PermissionStatus extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */\n onchange: ((this: PermissionStatus, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */\n readonly state: PermissionState;\n addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PermissionStatus: {\n prototype: PermissionStatus;\n new(): PermissionStatus;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions) */\ninterface Permissions {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) */\n query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;\n}\n\ndeclare var Permissions: {\n prototype: Permissions;\n new(): Permissions;\n};\n\n/**\n * Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)\n */\ninterface ProgressEvent<T extends EventTarget = EventTarget> extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) */\n readonly lengthComputable: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */\n readonly loaded: number;\n readonly target: T | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */\n readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n prototype: ProgressEvent;\n new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */\ninterface PromiseRejectionEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */\n readonly promise: Promise<any>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */\n readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n prototype: PromiseRejectionEvent;\n new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\n/**\n * This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent)\n */\ninterface PushEvent extends ExtendableEvent {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent/data) */\n readonly data: PushMessageData | null;\n}\n\ndeclare var PushEvent: {\n prototype: PushEvent;\n new(type: string, eventInitDict?: PushEventInit): PushEvent;\n};\n\n/**\n * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)\n */\ninterface PushManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) */\n getSubscription(): Promise<PushSubscription | null>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) */\n permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) */\n subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n prototype: PushManager;\n new(): PushManager;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */\n readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\n/**\n * This Push API interface provides methods which let you retrieve the push data sent by a server in various formats.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData)\n */\ninterface PushMessageData {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/arrayBuffer) */\n arrayBuffer(): ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/blob) */\n blob(): Blob;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/json) */\n json(): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/text) */\n text(): string;\n}\n\ndeclare var PushMessageData: {\n prototype: PushMessageData;\n new(): PushMessageData;\n};\n\n/**\n * This Push API interface provides a subcription\'s URL endpoint and allows unsubscription from a push service.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)\n */\ninterface PushSubscription {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) */\n readonly endpoint: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) */\n readonly expirationTime: EpochTimeStamp | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) */\n readonly options: PushSubscriptionOptions;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) */\n getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) */\n toJSON(): PushSubscriptionJSON;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) */\n unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n prototype: PushSubscription;\n new(): PushSubscription;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)\n */\ninterface PushSubscriptionOptions {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) */\n readonly applicationServerKey: ArrayBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) */\n readonly userVisibleOnly: boolean;\n}\n\ndeclare var PushSubscriptionOptions: {\n prototype: PushSubscriptionOptions;\n new(): PushSubscriptionOptions;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */\ninterface RTCEncodedAudioFrame {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */\n data: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */\n getMetadata(): RTCEncodedAudioFrameMetadata;\n}\n\ndeclare var RTCEncodedAudioFrame: {\n prototype: RTCEncodedAudioFrame;\n new(): RTCEncodedAudioFrame;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */\ninterface RTCEncodedVideoFrame {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */\n data: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */\n readonly type: RTCEncodedVideoFrameType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */\n getMetadata(): RTCEncodedVideoFrameMetadata;\n}\n\ndeclare var RTCEncodedVideoFrame: {\n prototype: RTCEncodedVideoFrame;\n new(): RTCEncodedVideoFrame;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer) */\ninterface RTCRtpScriptTransformer extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/options) */\n readonly options: any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/readable) */\n readonly readable: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/writable) */\n readonly writable: WritableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame) */\n generateKeyFrame(rid?: string): Promise<number>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest) */\n sendKeyFrameRequest(): Promise<void>;\n}\n\ndeclare var RTCRtpScriptTransformer: {\n prototype: RTCRtpScriptTransformer;\n new(): RTCRtpScriptTransformer;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent) */\ninterface RTCTransformEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent/transformer) */\n readonly transformer: RTCRtpScriptTransformer;\n}\n\ndeclare var RTCTransformEvent: {\n prototype: RTCTransformEvent;\n new(): RTCTransformEvent;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */\ninterface ReadableByteStreamController {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */\n readonly byobRequest: ReadableStreamBYOBRequest | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */\n enqueue(chunk: ArrayBufferView): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */\n error(e?: any): void;\n}\n\ndeclare var ReadableByteStreamController: {\n prototype: ReadableByteStreamController;\n new(): ReadableByteStreamController;\n};\n\n/**\n * This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)\n */\ninterface ReadableStream<R = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */\n readonly locked: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */\n cancel(reason?: any): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */\n getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;\n getReader(): ReadableStreamDefaultReader<R>;\n getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */\n pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */\n pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */\n tee(): [ReadableStream<R>, ReadableStream<R>];\n}\n\ndeclare var ReadableStream: {\n prototype: ReadableStream;\n new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;\n new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */\ninterface ReadableStreamBYOBReader extends ReadableStreamGenericReader {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */\n read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamBYOBReader: {\n prototype: ReadableStreamBYOBReader;\n new(stream: ReadableStream): ReadableStreamBYOBReader;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */\ninterface ReadableStreamBYOBRequest {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */\n readonly view: ArrayBufferView | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */\n respond(bytesWritten: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */\n respondWithNewView(view: ArrayBufferView): void;\n}\n\ndeclare var ReadableStreamBYOBRequest: {\n prototype: ReadableStreamBYOBRequest;\n new(): ReadableStreamBYOBRequest;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */\ninterface ReadableStreamDefaultController<R = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */\n enqueue(chunk?: R): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */\n error(e?: any): void;\n}\n\ndeclare var ReadableStreamDefaultController: {\n prototype: ReadableStreamDefaultController;\n new(): ReadableStreamDefaultController;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */\ninterface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */\n read(): Promise<ReadableStreamReadResult<R>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */\n releaseLock(): void;\n}\n\ndeclare var ReadableStreamDefaultReader: {\n prototype: ReadableStreamDefaultReader;\n new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;\n};\n\ninterface ReadableStreamGenericReader {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */\n readonly closed: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */\n cancel(reason?: any): Promise<void>;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) */\ninterface Report {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) */\n readonly body: ReportBody | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) */\n readonly type: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) */\n readonly url: string;\n toJSON(): any;\n}\n\ndeclare var Report: {\n prototype: Report;\n new(): Report;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */\ninterface ReportBody {\n toJSON(): any;\n}\n\ndeclare var ReportBody: {\n prototype: ReportBody;\n new(): ReportBody;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver) */\ninterface ReportingObserver {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) */\n disconnect(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) */\n observe(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) */\n takeRecords(): ReportList;\n}\n\ndeclare var ReportingObserver: {\n prototype: ReportingObserver;\n new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;\n};\n\n/**\n * This Fetch API interface represents a resource request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)\n */\ninterface Request extends Body {\n /**\n * Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser\'s cache when fetching.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)\n */\n readonly cache: RequestCache;\n /**\n * Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)\n */\n readonly credentials: RequestCredentials;\n /**\n * Returns the kind of resource requested by request, e.g., "document" or "script".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)\n */\n readonly destination: RequestDestination;\n /**\n * Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)\n */\n readonly headers: Headers;\n /**\n * Returns request\'s subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)\n */\n readonly integrity: string;\n /**\n * Returns a boolean indicating whether or not request can outlive the global in which it was created.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)\n */\n readonly keepalive: boolean;\n /**\n * Returns request\'s HTTP method, which is "GET" by default.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)\n */\n readonly method: string;\n /**\n * Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)\n */\n readonly mode: RequestMode;\n /**\n * Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)\n */\n readonly redirect: RequestRedirect;\n /**\n * Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global\'s default. This is used during fetching to determine the value of the `Referer` header of the request being made.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)\n */\n readonly referrer: string;\n /**\n * Returns the referrer policy associated with request. This is used during fetching to compute the value of the request\'s referrer.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)\n */\n readonly referrerPolicy: ReferrerPolicy;\n /**\n * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)\n */\n readonly signal: AbortSignal;\n /**\n * Returns the URL of request as a string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)\n */\n readonly url: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */\n clone(): Request;\n}\n\ndeclare var Request: {\n prototype: Request;\n new(input: RequestInfo | URL, init?: RequestInit): Request;\n};\n\n/**\n * This Fetch API interface represents the response to a request.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)\n */\ninterface Response extends Body {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */\n readonly headers: Headers;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */\n readonly ok: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */\n readonly redirected: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */\n readonly status: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */\n readonly statusText: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */\n readonly type: ResponseType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */\n readonly url: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */\n clone(): Response;\n}\n\ndeclare var Response: {\n prototype: Response;\n new(body?: BodyInit | null, init?: ResponseInit): Response;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */\n error(): Response;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */\n json(data: any, init?: ResponseInit): Response;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */\n redirect(url: string | URL, status?: number): Response;\n};\n\n/**\n * Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)\n */\ninterface SecurityPolicyViolationEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) */\n readonly blockedURI: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */\n readonly columnNumber: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) */\n readonly disposition: SecurityPolicyViolationEventDisposition;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) */\n readonly documentURI: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) */\n readonly effectiveDirective: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) */\n readonly lineNumber: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) */\n readonly originalPolicy: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) */\n readonly referrer: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) */\n readonly sample: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) */\n readonly sourceFile: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) */\n readonly statusCode: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) */\n readonly violatedDirective: string;\n}\n\ndeclare var SecurityPolicyViolationEvent: {\n prototype: SecurityPolicyViolationEvent;\n new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;\n};\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n "statechange": Event;\n}\n\n/**\n * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker)\n */\ninterface ServiceWorker extends EventTarget, AbstractWorker {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */\n onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */\n readonly scriptURL: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) */\n readonly state: ServiceWorkerState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorker: {\n prototype: ServiceWorker;\n new(): ServiceWorker;\n};\n\ninterface ServiceWorkerContainerEventMap {\n "controllerchange": Event;\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * The\xa0ServiceWorkerContainer\xa0interface of the\xa0ServiceWorker API\xa0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)\n */\ninterface ServiceWorkerContainer extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */\n readonly controller: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */\n oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */\n onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */\n onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */\n readonly ready: Promise<ServiceWorkerRegistration>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) */\n getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) */\n getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) */\n register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) */\n startMessages(): void;\n addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerContainer: {\n prototype: ServiceWorkerContainer;\n new(): ServiceWorkerContainer;\n};\n\ninterface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "activate": ExtendableEvent;\n "fetch": FetchEvent;\n "install": ExtendableEvent;\n "message": ExtendableMessageEvent;\n "messageerror": MessageEvent;\n "notificationclick": NotificationEvent;\n "notificationclose": NotificationEvent;\n "push": PushEvent;\n "pushsubscriptionchange": Event;\n}\n\n/**\n * This ServiceWorker API interface represents the global execution context of a service worker.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)\n */\ninterface ServiceWorkerGlobalScope extends WorkerGlobalScope {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/clients) */\n readonly clients: Clients;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */\n onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */\n onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */\n oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */\n onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */\n onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */\n onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */\n onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/push_event) */\n onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/pushsubscriptionchange_event) */\n onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration) */\n readonly registration: ServiceWorkerRegistration;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker) */\n readonly serviceWorker: ServiceWorker;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting) */\n skipWaiting(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerGlobalScope: {\n prototype: ServiceWorkerGlobalScope;\n new(): ServiceWorkerGlobalScope;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n "updatefound": Event;\n}\n\n/**\n * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)\n */\ninterface ServiceWorkerRegistration extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */\n readonly active: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */\n readonly installing: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload) */\n readonly navigationPreload: NavigationPreloadManager;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */\n onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */\n readonly pushManager: PushManager;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) */\n readonly scope: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) */\n readonly updateViaCache: ServiceWorkerUpdateViaCache;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) */\n readonly waiting: ServiceWorker | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) */\n getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) */\n showNotification(title: string, options?: NotificationOptions): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */\n unregister(): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */\n update(): Promise<void>;\n addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerRegistration: {\n prototype: ServiceWorkerRegistration;\n new(): ServiceWorkerRegistration;\n};\n\ninterface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {\n "connect": MessageEvent;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope) */\ninterface SharedWorkerGlobalScope extends WorkerGlobalScope {\n /**\n * Returns sharedWorkerGlobal\'s name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/name)\n */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/connect_event) */\n onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n /**\n * Aborts sharedWorkerGlobal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/close)\n */\n close(): void;\n addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SharedWorkerGlobalScope: {\n prototype: SharedWorkerGlobalScope;\n new(): SharedWorkerGlobalScope;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)\n */\ninterface StorageManager {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) */\n estimate(): Promise<StorageEstimate>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) */\n getDirectory(): Promise<FileSystemDirectoryHandle>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) */\n persisted(): Promise<boolean>;\n}\n\ndeclare var StorageManager: {\n prototype: StorageManager;\n new(): StorageManager;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */\ninterface StylePropertyMapReadOnly {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) */\n readonly size: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) */\n get(property: string): undefined | CSSStyleValue;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) */\n getAll(property: string): CSSStyleValue[];\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) */\n has(property: string): boolean;\n forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;\n}\n\ndeclare var StylePropertyMapReadOnly: {\n prototype: StylePropertyMapReadOnly;\n new(): StylePropertyMapReadOnly;\n};\n\n/**\n * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)\n */\ninterface SubtleCrypto {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */\n decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */\n deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */\n digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */\n encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */\n exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;\n exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;\n exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */\n generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */\n sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */\n unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */\n verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */\n wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n prototype: SubtleCrypto;\n new(): SubtleCrypto;\n};\n\n/**\n * A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xa0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)\n */\ninterface TextDecoder extends TextDecoderCommon {\n /**\n * Returns the result of running encoding\'s decoder. The method can be invoked zero or more times with options\'s stream set to true, and then once without options\'s stream (or set to false), to process a fragmented input. If the invocation without options\'s stream (or set to false) has no input, it\'s clearest to omit both arguments.\n *\n * ```\n * var string = "", decoder = new TextDecoder(encoding), buffer;\n * while(buffer = next_chunk()) {\n * string += decoder.decode(buffer, {stream:true});\n * }\n * string += decoder.decode(); // end-of-queue\n * ```\n *\n * If the error mode is "fatal" and encoding\'s decoder returns error, throws a TypeError.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)\n */\n decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;\n}\n\ndeclare var TextDecoder: {\n prototype: TextDecoder;\n new(label?: string, options?: TextDecoderOptions): TextDecoder;\n};\n\ninterface TextDecoderCommon {\n /**\n * Returns encoding\'s name, lowercased.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)\n */\n readonly encoding: string;\n /**\n * Returns true if error mode is "fatal", otherwise false.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)\n */\n readonly fatal: boolean;\n /**\n * Returns the value of ignore BOM.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)\n */\n readonly ignoreBOM: boolean;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */\ninterface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {\n readonly readable: ReadableStream<string>;\n readonly writable: WritableStream<BufferSource>;\n}\n\ndeclare var TextDecoderStream: {\n prototype: TextDecoderStream;\n new(label?: string, options?: TextDecoderOptions): TextDecoderStream;\n};\n\n/**\n * TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)\n */\ninterface TextEncoder extends TextEncoderCommon {\n /**\n * Returns the result of running UTF-8\'s encoder.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)\n */\n encode(input?: string): Uint8Array;\n /**\n * Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)\n */\n encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;\n}\n\ndeclare var TextEncoder: {\n prototype: TextEncoder;\n new(): TextEncoder;\n};\n\ninterface TextEncoderCommon {\n /**\n * Returns "utf-8".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)\n */\n readonly encoding: string;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */\ninterface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {\n readonly readable: ReadableStream<Uint8Array>;\n readonly writable: WritableStream<string>;\n}\n\ndeclare var TextEncoderStream: {\n prototype: TextEncoderStream;\n new(): TextEncoderStream;\n};\n\n/**\n * The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)\n */\ninterface TextMetrics {\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)\n */\n readonly actualBoundingBoxAscent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)\n */\n readonly actualBoundingBoxDescent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)\n */\n readonly actualBoundingBoxLeft: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)\n */\n readonly actualBoundingBoxRight: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)\n */\n readonly alphabeticBaseline: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)\n */\n readonly emHeightAscent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)\n */\n readonly emHeightDescent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)\n */\n readonly fontBoundingBoxAscent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)\n */\n readonly fontBoundingBoxDescent: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)\n */\n readonly hangingBaseline: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)\n */\n readonly ideographicBaseline: number;\n /**\n * Returns the measurement described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)\n */\n readonly width: number;\n}\n\ndeclare var TextMetrics: {\n prototype: TextMetrics;\n new(): TextMetrics;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */\ninterface TransformStream<I = any, O = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */\n readonly readable: ReadableStream<O>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */\n readonly writable: WritableStream<I>;\n}\n\ndeclare var TransformStream: {\n prototype: TransformStream;\n new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */\ninterface TransformStreamDefaultController<O = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */\n enqueue(chunk?: O): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */\n error(reason?: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */\n terminate(): void;\n}\n\ndeclare var TransformStreamDefaultController: {\n prototype: TransformStreamDefaultController;\n new(): TransformStreamDefaultController;\n};\n\n/**\n * The URL\xa0interface represents an object providing static methods used for creating object URLs.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)\n */\ninterface URL {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */\n hash: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */\n host: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */\n hostname: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */\n href: string;\n toString(): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */\n readonly origin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */\n password: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */\n pathname: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */\n port: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */\n protocol: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */\n search: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */\n readonly searchParams: URLSearchParams;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */\n username: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */\n toJSON(): string;\n}\n\ndeclare var URL: {\n prototype: URL;\n new(url: string | URL, base?: string | URL): URL;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */\n canParse(url: string | URL, base?: string): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */\n createObjectURL(obj: Blob): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */\n revokeObjectURL(url: string): void;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */\ninterface URLSearchParams {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */\n readonly size: number;\n /**\n * Appends a specified key/value pair as a new search parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)\n */\n append(name: string, value: string): void;\n /**\n * Deletes the given search parameter, and its associated value, from the list of all search parameters.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)\n */\n delete(name: string, value?: string): void;\n /**\n * Returns the first value associated to the given search parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)\n */\n get(name: string): string | null;\n /**\n * Returns all the values association with a given search parameter.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)\n */\n getAll(name: string): string[];\n /**\n * Returns a Boolean indicating if such a search parameter exists.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)\n */\n has(name: string, value?: string): boolean;\n /**\n * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)\n */\n set(name: string, value: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */\n sort(): void;\n /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */\n toString(): string;\n forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;\n}\n\ndeclare var URLSearchParams: {\n prototype: URLSearchParams;\n new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) */\ninterface VideoColorSpace {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) */\n readonly fullRange: boolean | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) */\n readonly matrix: VideoMatrixCoefficients | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) */\n readonly primaries: VideoColorPrimaries | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) */\n readonly transfer: VideoTransferCharacteristics | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) */\n toJSON(): VideoColorSpaceInit;\n}\n\ndeclare var VideoColorSpace: {\n prototype: VideoColorSpace;\n new(init?: VideoColorSpaceInit): VideoColorSpace;\n};\n\ninterface VideoDecoderEventMap {\n "dequeue": Event;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)\n */\ninterface VideoDecoder extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */\n readonly decodeQueueSize: number;\n ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */\n readonly state: CodecState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) */\n configure(config: VideoDecoderConfig): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) */\n decode(chunk: EncodedVideoChunk): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) */\n flush(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) */\n reset(): void;\n addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VideoDecoder: {\n prototype: VideoDecoder;\n new(init: VideoDecoderInit): VideoDecoder;\n isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;\n};\n\ninterface VideoEncoderEventMap {\n "dequeue": Event;\n}\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)\n */\ninterface VideoEncoder extends EventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */\n readonly encodeQueueSize: number;\n ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */\n readonly state: CodecState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) */\n close(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) */\n configure(config: VideoEncoderConfig): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */\n encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;\n flush(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */\n reset(): void;\n addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VideoEncoder: {\n prototype: VideoEncoder;\n new(init: VideoEncoderInit): VideoEncoder;\n isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame) */\ninterface VideoFrame {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) */\n readonly codedHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) */\n readonly codedRect: DOMRectReadOnly | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) */\n readonly codedWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) */\n readonly colorSpace: VideoColorSpace;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) */\n readonly displayHeight: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) */\n readonly displayWidth: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) */\n readonly duration: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) */\n readonly format: VideoPixelFormat | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) */\n readonly timestamp: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) */\n readonly visibleRect: DOMRectReadOnly | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) */\n allocationSize(options?: VideoFrameCopyToOptions): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) */\n clone(): VideoFrame;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */\n close(): void;\n copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;\n}\n\ndeclare var VideoFrame: {\n prototype: VideoFrame;\n new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;\n new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */\ninterface WEBGL_color_buffer_float {\n readonly RGBA32F_EXT: 0x8814;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;\n readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc) */\ninterface WEBGL_compressed_texture_astc {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) */\n getSupportedProfiles(): string[];\n readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;\n readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;\n readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;\n readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;\n readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;\n readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;\n readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;\n readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;\n readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;\n readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;\n readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;\n readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;\n readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;\n readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;\n readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc) */\ninterface WEBGL_compressed_texture_etc {\n readonly COMPRESSED_R11_EAC: 0x9270;\n readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;\n readonly COMPRESSED_RG11_EAC: 0x9272;\n readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;\n readonly COMPRESSED_RGB8_ETC2: 0x9274;\n readonly COMPRESSED_SRGB8_ETC2: 0x9275;\n readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;\n readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;\n readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;\n readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1) */\ninterface WEBGL_compressed_texture_etc1 {\n readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc) */\ninterface WEBGL_compressed_texture_pvrtc {\n readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00;\n readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01;\n readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02;\n readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03;\n}\n\n/**\n * The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc)\n */\ninterface WEBGL_compressed_texture_s3tc {\n readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;\n readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;\n readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;\n readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb) */\ninterface WEBGL_compressed_texture_s3tc_srgb {\n readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;\n readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;\n}\n\n/**\n * The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info)\n */\ninterface WEBGL_debug_renderer_info {\n readonly UNMASKED_VENDOR_WEBGL: 0x9245;\n readonly UNMASKED_RENDERER_WEBGL: 0x9246;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders) */\ninterface WEBGL_debug_shaders {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource) */\n getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\n/**\n * The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture)\n */\ninterface WEBGL_depth_texture {\n readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers) */\ninterface WEBGL_draw_buffers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */\n drawBuffersWEBGL(buffers: GLenum[]): void;\n readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;\n readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;\n readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;\n readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;\n readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;\n readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;\n readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;\n readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;\n readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;\n readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;\n readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;\n readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;\n readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;\n readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;\n readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;\n readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;\n readonly DRAW_BUFFER0_WEBGL: 0x8825;\n readonly DRAW_BUFFER1_WEBGL: 0x8826;\n readonly DRAW_BUFFER2_WEBGL: 0x8827;\n readonly DRAW_BUFFER3_WEBGL: 0x8828;\n readonly DRAW_BUFFER4_WEBGL: 0x8829;\n readonly DRAW_BUFFER5_WEBGL: 0x882A;\n readonly DRAW_BUFFER6_WEBGL: 0x882B;\n readonly DRAW_BUFFER7_WEBGL: 0x882C;\n readonly DRAW_BUFFER8_WEBGL: 0x882D;\n readonly DRAW_BUFFER9_WEBGL: 0x882E;\n readonly DRAW_BUFFER10_WEBGL: 0x882F;\n readonly DRAW_BUFFER11_WEBGL: 0x8830;\n readonly DRAW_BUFFER12_WEBGL: 0x8831;\n readonly DRAW_BUFFER13_WEBGL: 0x8832;\n readonly DRAW_BUFFER14_WEBGL: 0x8833;\n readonly DRAW_BUFFER15_WEBGL: 0x8834;\n readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;\n readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context) */\ninterface WEBGL_lose_context {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */\n loseContext(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */\n restoreContext(): void;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */\ninterface WEBGL_multi_draw {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */\ninterface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {\n}\n\ndeclare var WebGL2RenderingContext: {\n prototype: WebGL2RenderingContext;\n new(): WebGL2RenderingContext;\n readonly READ_BUFFER: 0x0C02;\n readonly UNPACK_ROW_LENGTH: 0x0CF2;\n readonly UNPACK_SKIP_ROWS: 0x0CF3;\n readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n readonly PACK_ROW_LENGTH: 0x0D02;\n readonly PACK_SKIP_ROWS: 0x0D03;\n readonly PACK_SKIP_PIXELS: 0x0D04;\n readonly COLOR: 0x1800;\n readonly DEPTH: 0x1801;\n readonly STENCIL: 0x1802;\n readonly RED: 0x1903;\n readonly RGB8: 0x8051;\n readonly RGB10_A2: 0x8059;\n readonly TEXTURE_BINDING_3D: 0x806A;\n readonly UNPACK_SKIP_IMAGES: 0x806D;\n readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n readonly TEXTURE_3D: 0x806F;\n readonly TEXTURE_WRAP_R: 0x8072;\n readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n readonly MAX_ELEMENTS_INDICES: 0x80E9;\n readonly TEXTURE_MIN_LOD: 0x813A;\n readonly TEXTURE_MAX_LOD: 0x813B;\n readonly TEXTURE_BASE_LEVEL: 0x813C;\n readonly TEXTURE_MAX_LEVEL: 0x813D;\n readonly MIN: 0x8007;\n readonly MAX: 0x8008;\n readonly DEPTH_COMPONENT24: 0x81A6;\n readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n readonly TEXTURE_COMPARE_MODE: 0x884C;\n readonly TEXTURE_COMPARE_FUNC: 0x884D;\n readonly CURRENT_QUERY: 0x8865;\n readonly QUERY_RESULT: 0x8866;\n readonly QUERY_RESULT_AVAILABLE: 0x8867;\n readonly STREAM_READ: 0x88E1;\n readonly STREAM_COPY: 0x88E2;\n readonly STATIC_READ: 0x88E5;\n readonly STATIC_COPY: 0x88E6;\n readonly DYNAMIC_READ: 0x88E9;\n readonly DYNAMIC_COPY: 0x88EA;\n readonly MAX_DRAW_BUFFERS: 0x8824;\n readonly DRAW_BUFFER0: 0x8825;\n readonly DRAW_BUFFER1: 0x8826;\n readonly DRAW_BUFFER2: 0x8827;\n readonly DRAW_BUFFER3: 0x8828;\n readonly DRAW_BUFFER4: 0x8829;\n readonly DRAW_BUFFER5: 0x882A;\n readonly DRAW_BUFFER6: 0x882B;\n readonly DRAW_BUFFER7: 0x882C;\n readonly DRAW_BUFFER8: 0x882D;\n readonly DRAW_BUFFER9: 0x882E;\n readonly DRAW_BUFFER10: 0x882F;\n readonly DRAW_BUFFER11: 0x8830;\n readonly DRAW_BUFFER12: 0x8831;\n readonly DRAW_BUFFER13: 0x8832;\n readonly DRAW_BUFFER14: 0x8833;\n readonly DRAW_BUFFER15: 0x8834;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n readonly SAMPLER_3D: 0x8B5F;\n readonly SAMPLER_2D_SHADOW: 0x8B62;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n readonly PIXEL_PACK_BUFFER: 0x88EB;\n readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n readonly FLOAT_MAT2x3: 0x8B65;\n readonly FLOAT_MAT2x4: 0x8B66;\n readonly FLOAT_MAT3x2: 0x8B67;\n readonly FLOAT_MAT3x4: 0x8B68;\n readonly FLOAT_MAT4x2: 0x8B69;\n readonly FLOAT_MAT4x3: 0x8B6A;\n readonly SRGB: 0x8C40;\n readonly SRGB8: 0x8C41;\n readonly SRGB8_ALPHA8: 0x8C43;\n readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n readonly RGBA32F: 0x8814;\n readonly RGB32F: 0x8815;\n readonly RGBA16F: 0x881A;\n readonly RGB16F: 0x881B;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n readonly TEXTURE_2D_ARRAY: 0x8C1A;\n readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n readonly R11F_G11F_B10F: 0x8C3A;\n readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n readonly RGB9_E5: 0x8C3D;\n readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n readonly RASTERIZER_DISCARD: 0x8C89;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n readonly SEPARATE_ATTRIBS: 0x8C8D;\n readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n readonly RGBA32UI: 0x8D70;\n readonly RGB32UI: 0x8D71;\n readonly RGBA16UI: 0x8D76;\n readonly RGB16UI: 0x8D77;\n readonly RGBA8UI: 0x8D7C;\n readonly RGB8UI: 0x8D7D;\n readonly RGBA32I: 0x8D82;\n readonly RGB32I: 0x8D83;\n readonly RGBA16I: 0x8D88;\n readonly RGB16I: 0x8D89;\n readonly RGBA8I: 0x8D8E;\n readonly RGB8I: 0x8D8F;\n readonly RED_INTEGER: 0x8D94;\n readonly RGB_INTEGER: 0x8D98;\n readonly RGBA_INTEGER: 0x8D99;\n readonly SAMPLER_2D_ARRAY: 0x8DC1;\n readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n readonly UNSIGNED_INT_VEC2: 0x8DC6;\n readonly UNSIGNED_INT_VEC3: 0x8DC7;\n readonly UNSIGNED_INT_VEC4: 0x8DC8;\n readonly INT_SAMPLER_2D: 0x8DCA;\n readonly INT_SAMPLER_3D: 0x8DCB;\n readonly INT_SAMPLER_CUBE: 0x8DCC;\n readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n readonly DEPTH_COMPONENT32F: 0x8CAC;\n readonly DEPTH32F_STENCIL8: 0x8CAD;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n readonly FRAMEBUFFER_DEFAULT: 0x8218;\n readonly UNSIGNED_INT_24_8: 0x84FA;\n readonly DEPTH24_STENCIL8: 0x88F0;\n readonly UNSIGNED_NORMALIZED: 0x8C17;\n readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n readonly READ_FRAMEBUFFER: 0x8CA8;\n readonly DRAW_FRAMEBUFFER: 0x8CA9;\n readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n readonly COLOR_ATTACHMENT1: 0x8CE1;\n readonly COLOR_ATTACHMENT2: 0x8CE2;\n readonly COLOR_ATTACHMENT3: 0x8CE3;\n readonly COLOR_ATTACHMENT4: 0x8CE4;\n readonly COLOR_ATTACHMENT5: 0x8CE5;\n readonly COLOR_ATTACHMENT6: 0x8CE6;\n readonly COLOR_ATTACHMENT7: 0x8CE7;\n readonly COLOR_ATTACHMENT8: 0x8CE8;\n readonly COLOR_ATTACHMENT9: 0x8CE9;\n readonly COLOR_ATTACHMENT10: 0x8CEA;\n readonly COLOR_ATTACHMENT11: 0x8CEB;\n readonly COLOR_ATTACHMENT12: 0x8CEC;\n readonly COLOR_ATTACHMENT13: 0x8CED;\n readonly COLOR_ATTACHMENT14: 0x8CEE;\n readonly COLOR_ATTACHMENT15: 0x8CEF;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n readonly MAX_SAMPLES: 0x8D57;\n readonly HALF_FLOAT: 0x140B;\n readonly RG: 0x8227;\n readonly RG_INTEGER: 0x8228;\n readonly R8: 0x8229;\n readonly RG8: 0x822B;\n readonly R16F: 0x822D;\n readonly R32F: 0x822E;\n readonly RG16F: 0x822F;\n readonly RG32F: 0x8230;\n readonly R8I: 0x8231;\n readonly R8UI: 0x8232;\n readonly R16I: 0x8233;\n readonly R16UI: 0x8234;\n readonly R32I: 0x8235;\n readonly R32UI: 0x8236;\n readonly RG8I: 0x8237;\n readonly RG8UI: 0x8238;\n readonly RG16I: 0x8239;\n readonly RG16UI: 0x823A;\n readonly RG32I: 0x823B;\n readonly RG32UI: 0x823C;\n readonly VERTEX_ARRAY_BINDING: 0x85B5;\n readonly R8_SNORM: 0x8F94;\n readonly RG8_SNORM: 0x8F95;\n readonly RGB8_SNORM: 0x8F96;\n readonly RGBA8_SNORM: 0x8F97;\n readonly SIGNED_NORMALIZED: 0x8F9C;\n readonly COPY_READ_BUFFER: 0x8F36;\n readonly COPY_WRITE_BUFFER: 0x8F37;\n readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n readonly UNIFORM_BUFFER: 0x8A11;\n readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n readonly UNIFORM_BUFFER_START: 0x8A29;\n readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n readonly UNIFORM_TYPE: 0x8A37;\n readonly UNIFORM_SIZE: 0x8A38;\n readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n readonly UNIFORM_OFFSET: 0x8A3B;\n readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n readonly INVALID_INDEX: 0xFFFFFFFF;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n readonly OBJECT_TYPE: 0x9112;\n readonly SYNC_CONDITION: 0x9113;\n readonly SYNC_STATUS: 0x9114;\n readonly SYNC_FLAGS: 0x9115;\n readonly SYNC_FENCE: 0x9116;\n readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n readonly UNSIGNALED: 0x9118;\n readonly SIGNALED: 0x9119;\n readonly ALREADY_SIGNALED: 0x911A;\n readonly TIMEOUT_EXPIRED: 0x911B;\n readonly CONDITION_SATISFIED: 0x911C;\n readonly WAIT_FAILED: 0x911D;\n readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n readonly ANY_SAMPLES_PASSED: 0x8C2F;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n readonly SAMPLER_BINDING: 0x8919;\n readonly RGB10_A2UI: 0x906F;\n readonly INT_2_10_10_10_REV: 0x8D9F;\n readonly TRANSFORM_FEEDBACK: 0x8E22;\n readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n readonly MAX_ELEMENT_INDEX: 0x8D6B;\n readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n readonly TIMEOUT_IGNORED: -1;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGBA8: 0x8058;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGL2RenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */\n beginQuery(target: GLenum, query: WebGLQuery): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */\n beginTransformFeedback(primitiveMode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */\n bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */\n bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */\n bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */\n bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */\n bindVertexArray(array: WebGLVertexArrayObject | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */\n blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */\n clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */\n compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */\n copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */\n copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */\n createQuery(): WebGLQuery | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */\n createSampler(): WebGLSampler | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */\n createTransformFeedback(): WebGLTransformFeedback | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */\n createVertexArray(): WebGLVertexArrayObject | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */\n deleteQuery(query: WebGLQuery | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */\n deleteSampler(sampler: WebGLSampler | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */\n deleteSync(sync: WebGLSync | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */\n deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */\n deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */\n drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */\n drawBuffers(buffers: GLenum[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */\n drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */\n drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */\n endQuery(target: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */\n endTransformFeedback(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */\n fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */\n framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */\n getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */\n getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */\n getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */\n getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: number, length?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */\n getFragDataLocation(program: WebGLProgram, name: string): GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */\n getIndexedParameter(target: GLenum, index: GLuint): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */\n getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */\n getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */\n getQueryParameter(query: WebGLQuery, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */\n getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */\n getSyncParameter(sync: WebGLSync, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */\n getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */\n getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */\n getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */\n invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */\n invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */\n isQuery(query: WebGLQuery | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */\n isSampler(sampler: WebGLSampler | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */\n isSync(sync: WebGLSync | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */\n isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */\n isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */\n pauseTransformFeedback(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */\n readBuffer(src: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */\n renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */\n resumeTransformFeedback(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */\n samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */\n samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;\n texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */\n texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */\n texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */\n transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */\n uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */\n vertexAttribDivisor(index: GLuint, divisor: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4iv(index: GLuint, values: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4uiv(index: GLuint, values: Uint32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */\n vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */\n waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;\n readonly READ_BUFFER: 0x0C02;\n readonly UNPACK_ROW_LENGTH: 0x0CF2;\n readonly UNPACK_SKIP_ROWS: 0x0CF3;\n readonly UNPACK_SKIP_PIXELS: 0x0CF4;\n readonly PACK_ROW_LENGTH: 0x0D02;\n readonly PACK_SKIP_ROWS: 0x0D03;\n readonly PACK_SKIP_PIXELS: 0x0D04;\n readonly COLOR: 0x1800;\n readonly DEPTH: 0x1801;\n readonly STENCIL: 0x1802;\n readonly RED: 0x1903;\n readonly RGB8: 0x8051;\n readonly RGB10_A2: 0x8059;\n readonly TEXTURE_BINDING_3D: 0x806A;\n readonly UNPACK_SKIP_IMAGES: 0x806D;\n readonly UNPACK_IMAGE_HEIGHT: 0x806E;\n readonly TEXTURE_3D: 0x806F;\n readonly TEXTURE_WRAP_R: 0x8072;\n readonly MAX_3D_TEXTURE_SIZE: 0x8073;\n readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;\n readonly MAX_ELEMENTS_VERTICES: 0x80E8;\n readonly MAX_ELEMENTS_INDICES: 0x80E9;\n readonly TEXTURE_MIN_LOD: 0x813A;\n readonly TEXTURE_MAX_LOD: 0x813B;\n readonly TEXTURE_BASE_LEVEL: 0x813C;\n readonly TEXTURE_MAX_LEVEL: 0x813D;\n readonly MIN: 0x8007;\n readonly MAX: 0x8008;\n readonly DEPTH_COMPONENT24: 0x81A6;\n readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;\n readonly TEXTURE_COMPARE_MODE: 0x884C;\n readonly TEXTURE_COMPARE_FUNC: 0x884D;\n readonly CURRENT_QUERY: 0x8865;\n readonly QUERY_RESULT: 0x8866;\n readonly QUERY_RESULT_AVAILABLE: 0x8867;\n readonly STREAM_READ: 0x88E1;\n readonly STREAM_COPY: 0x88E2;\n readonly STATIC_READ: 0x88E5;\n readonly STATIC_COPY: 0x88E6;\n readonly DYNAMIC_READ: 0x88E9;\n readonly DYNAMIC_COPY: 0x88EA;\n readonly MAX_DRAW_BUFFERS: 0x8824;\n readonly DRAW_BUFFER0: 0x8825;\n readonly DRAW_BUFFER1: 0x8826;\n readonly DRAW_BUFFER2: 0x8827;\n readonly DRAW_BUFFER3: 0x8828;\n readonly DRAW_BUFFER4: 0x8829;\n readonly DRAW_BUFFER5: 0x882A;\n readonly DRAW_BUFFER6: 0x882B;\n readonly DRAW_BUFFER7: 0x882C;\n readonly DRAW_BUFFER8: 0x882D;\n readonly DRAW_BUFFER9: 0x882E;\n readonly DRAW_BUFFER10: 0x882F;\n readonly DRAW_BUFFER11: 0x8830;\n readonly DRAW_BUFFER12: 0x8831;\n readonly DRAW_BUFFER13: 0x8832;\n readonly DRAW_BUFFER14: 0x8833;\n readonly DRAW_BUFFER15: 0x8834;\n readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;\n readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;\n readonly SAMPLER_3D: 0x8B5F;\n readonly SAMPLER_2D_SHADOW: 0x8B62;\n readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;\n readonly PIXEL_PACK_BUFFER: 0x88EB;\n readonly PIXEL_UNPACK_BUFFER: 0x88EC;\n readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;\n readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;\n readonly FLOAT_MAT2x3: 0x8B65;\n readonly FLOAT_MAT2x4: 0x8B66;\n readonly FLOAT_MAT3x2: 0x8B67;\n readonly FLOAT_MAT3x4: 0x8B68;\n readonly FLOAT_MAT4x2: 0x8B69;\n readonly FLOAT_MAT4x3: 0x8B6A;\n readonly SRGB: 0x8C40;\n readonly SRGB8: 0x8C41;\n readonly SRGB8_ALPHA8: 0x8C43;\n readonly COMPARE_REF_TO_TEXTURE: 0x884E;\n readonly RGBA32F: 0x8814;\n readonly RGB32F: 0x8815;\n readonly RGBA16F: 0x881A;\n readonly RGB16F: 0x881B;\n readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;\n readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;\n readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;\n readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;\n readonly MAX_VARYING_COMPONENTS: 0x8B4B;\n readonly TEXTURE_2D_ARRAY: 0x8C1A;\n readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;\n readonly R11F_G11F_B10F: 0x8C3A;\n readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;\n readonly RGB9_E5: 0x8C3D;\n readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;\n readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;\n readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;\n readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;\n readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;\n readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;\n readonly RASTERIZER_DISCARD: 0x8C89;\n readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;\n readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;\n readonly INTERLEAVED_ATTRIBS: 0x8C8C;\n readonly SEPARATE_ATTRIBS: 0x8C8D;\n readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;\n readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;\n readonly RGBA32UI: 0x8D70;\n readonly RGB32UI: 0x8D71;\n readonly RGBA16UI: 0x8D76;\n readonly RGB16UI: 0x8D77;\n readonly RGBA8UI: 0x8D7C;\n readonly RGB8UI: 0x8D7D;\n readonly RGBA32I: 0x8D82;\n readonly RGB32I: 0x8D83;\n readonly RGBA16I: 0x8D88;\n readonly RGB16I: 0x8D89;\n readonly RGBA8I: 0x8D8E;\n readonly RGB8I: 0x8D8F;\n readonly RED_INTEGER: 0x8D94;\n readonly RGB_INTEGER: 0x8D98;\n readonly RGBA_INTEGER: 0x8D99;\n readonly SAMPLER_2D_ARRAY: 0x8DC1;\n readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;\n readonly SAMPLER_CUBE_SHADOW: 0x8DC5;\n readonly UNSIGNED_INT_VEC2: 0x8DC6;\n readonly UNSIGNED_INT_VEC3: 0x8DC7;\n readonly UNSIGNED_INT_VEC4: 0x8DC8;\n readonly INT_SAMPLER_2D: 0x8DCA;\n readonly INT_SAMPLER_3D: 0x8DCB;\n readonly INT_SAMPLER_CUBE: 0x8DCC;\n readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;\n readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;\n readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;\n readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;\n readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;\n readonly DEPTH_COMPONENT32F: 0x8CAC;\n readonly DEPTH32F_STENCIL8: 0x8CAD;\n readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;\n readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;\n readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;\n readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;\n readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;\n readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;\n readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;\n readonly FRAMEBUFFER_DEFAULT: 0x8218;\n readonly UNSIGNED_INT_24_8: 0x84FA;\n readonly DEPTH24_STENCIL8: 0x88F0;\n readonly UNSIGNED_NORMALIZED: 0x8C17;\n readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;\n readonly READ_FRAMEBUFFER: 0x8CA8;\n readonly DRAW_FRAMEBUFFER: 0x8CA9;\n readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;\n readonly RENDERBUFFER_SAMPLES: 0x8CAB;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;\n readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;\n readonly COLOR_ATTACHMENT1: 0x8CE1;\n readonly COLOR_ATTACHMENT2: 0x8CE2;\n readonly COLOR_ATTACHMENT3: 0x8CE3;\n readonly COLOR_ATTACHMENT4: 0x8CE4;\n readonly COLOR_ATTACHMENT5: 0x8CE5;\n readonly COLOR_ATTACHMENT6: 0x8CE6;\n readonly COLOR_ATTACHMENT7: 0x8CE7;\n readonly COLOR_ATTACHMENT8: 0x8CE8;\n readonly COLOR_ATTACHMENT9: 0x8CE9;\n readonly COLOR_ATTACHMENT10: 0x8CEA;\n readonly COLOR_ATTACHMENT11: 0x8CEB;\n readonly COLOR_ATTACHMENT12: 0x8CEC;\n readonly COLOR_ATTACHMENT13: 0x8CED;\n readonly COLOR_ATTACHMENT14: 0x8CEE;\n readonly COLOR_ATTACHMENT15: 0x8CEF;\n readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;\n readonly MAX_SAMPLES: 0x8D57;\n readonly HALF_FLOAT: 0x140B;\n readonly RG: 0x8227;\n readonly RG_INTEGER: 0x8228;\n readonly R8: 0x8229;\n readonly RG8: 0x822B;\n readonly R16F: 0x822D;\n readonly R32F: 0x822E;\n readonly RG16F: 0x822F;\n readonly RG32F: 0x8230;\n readonly R8I: 0x8231;\n readonly R8UI: 0x8232;\n readonly R16I: 0x8233;\n readonly R16UI: 0x8234;\n readonly R32I: 0x8235;\n readonly R32UI: 0x8236;\n readonly RG8I: 0x8237;\n readonly RG8UI: 0x8238;\n readonly RG16I: 0x8239;\n readonly RG16UI: 0x823A;\n readonly RG32I: 0x823B;\n readonly RG32UI: 0x823C;\n readonly VERTEX_ARRAY_BINDING: 0x85B5;\n readonly R8_SNORM: 0x8F94;\n readonly RG8_SNORM: 0x8F95;\n readonly RGB8_SNORM: 0x8F96;\n readonly RGBA8_SNORM: 0x8F97;\n readonly SIGNED_NORMALIZED: 0x8F9C;\n readonly COPY_READ_BUFFER: 0x8F36;\n readonly COPY_WRITE_BUFFER: 0x8F37;\n readonly COPY_READ_BUFFER_BINDING: 0x8F36;\n readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;\n readonly UNIFORM_BUFFER: 0x8A11;\n readonly UNIFORM_BUFFER_BINDING: 0x8A28;\n readonly UNIFORM_BUFFER_START: 0x8A29;\n readonly UNIFORM_BUFFER_SIZE: 0x8A2A;\n readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;\n readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;\n readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;\n readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;\n readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;\n readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;\n readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;\n readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;\n readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;\n readonly UNIFORM_TYPE: 0x8A37;\n readonly UNIFORM_SIZE: 0x8A38;\n readonly UNIFORM_BLOCK_INDEX: 0x8A3A;\n readonly UNIFORM_OFFSET: 0x8A3B;\n readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;\n readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;\n readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;\n readonly UNIFORM_BLOCK_BINDING: 0x8A3F;\n readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;\n readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;\n readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;\n readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;\n readonly INVALID_INDEX: 0xFFFFFFFF;\n readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;\n readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;\n readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;\n readonly OBJECT_TYPE: 0x9112;\n readonly SYNC_CONDITION: 0x9113;\n readonly SYNC_STATUS: 0x9114;\n readonly SYNC_FLAGS: 0x9115;\n readonly SYNC_FENCE: 0x9116;\n readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;\n readonly UNSIGNALED: 0x9118;\n readonly SIGNALED: 0x9119;\n readonly ALREADY_SIGNALED: 0x911A;\n readonly TIMEOUT_EXPIRED: 0x911B;\n readonly CONDITION_SATISFIED: 0x911C;\n readonly WAIT_FAILED: 0x911D;\n readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;\n readonly ANY_SAMPLES_PASSED: 0x8C2F;\n readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;\n readonly SAMPLER_BINDING: 0x8919;\n readonly RGB10_A2UI: 0x906F;\n readonly INT_2_10_10_10_REV: 0x8D9F;\n readonly TRANSFORM_FEEDBACK: 0x8E22;\n readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;\n readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;\n readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;\n readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;\n readonly MAX_ELEMENT_INDEX: 0x8D6B;\n readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;\n readonly TIMEOUT_IGNORED: -1;\n readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;\n}\n\ninterface WebGL2RenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;\n bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;\n bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;\n}\n\n/**\n * Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo)\n */\ninterface WebGLActiveInfo {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) */\n readonly name: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) */\n readonly size: GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) */\n readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n prototype: WebGLActiveInfo;\n new(): WebGLActiveInfo;\n};\n\n/**\n * Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer)\n */\ninterface WebGLBuffer {\n}\n\ndeclare var WebGLBuffer: {\n prototype: WebGLBuffer;\n new(): WebGLBuffer;\n};\n\n/**\n * The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)\n */\ninterface WebGLContextEvent extends Event {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */\n readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n prototype: WebGLContextEvent;\n new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\n/**\n * Part of the WebGL API and represents a collection of buffers that serve as a rendering destination.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer)\n */\ninterface WebGLFramebuffer {\n}\n\ndeclare var WebGLFramebuffer: {\n prototype: WebGLFramebuffer;\n new(): WebGLFramebuffer;\n};\n\n/**\n * The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram)\n */\ninterface WebGLProgram {\n}\n\ndeclare var WebGLProgram: {\n prototype: WebGLProgram;\n new(): WebGLProgram;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery) */\ninterface WebGLQuery {\n}\n\ndeclare var WebGLQuery: {\n prototype: WebGLQuery;\n new(): WebGLQuery;\n};\n\n/**\n * Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)\n */\ninterface WebGLRenderbuffer {\n}\n\ndeclare var WebGLRenderbuffer: {\n prototype: WebGLRenderbuffer;\n new(): WebGLRenderbuffer;\n};\n\n/**\n * Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext)\n */\ninterface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {\n}\n\ndeclare var WebGLRenderingContext: {\n prototype: WebGLRenderingContext;\n new(): WebGLRenderingContext;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGBA8: 0x8058;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n};\n\ninterface WebGLRenderingContextBase {\n drawingBufferColorSpace: PredefinedColorSpace;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */\n readonly drawingBufferHeight: GLsizei;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */\n readonly drawingBufferWidth: GLsizei;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */\n activeTexture(texture: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */\n attachShader(program: WebGLProgram, shader: WebGLShader): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */\n bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */\n bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */\n bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */\n bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */\n bindTexture(target: GLenum, texture: WebGLTexture | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */\n blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */\n blendEquation(mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */\n blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */\n blendFunc(sfactor: GLenum, dfactor: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */\n blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */\n checkFramebufferStatus(target: GLenum): GLenum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */\n clear(mask: GLbitfield): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */\n clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */\n clearDepth(depth: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */\n clearStencil(s: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */\n colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */\n compileShader(shader: WebGLShader): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */\n copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */\n copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */\n createBuffer(): WebGLBuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */\n createFramebuffer(): WebGLFramebuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */\n createProgram(): WebGLProgram | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */\n createRenderbuffer(): WebGLRenderbuffer | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */\n createShader(type: GLenum): WebGLShader | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */\n createTexture(): WebGLTexture | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */\n cullFace(mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */\n deleteBuffer(buffer: WebGLBuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */\n deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */\n deleteProgram(program: WebGLProgram | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */\n deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */\n deleteShader(shader: WebGLShader | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */\n deleteTexture(texture: WebGLTexture | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */\n depthFunc(func: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */\n depthMask(flag: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */\n depthRange(zNear: GLclampf, zFar: GLclampf): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */\n detachShader(program: WebGLProgram, shader: WebGLShader): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */\n disable(cap: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */\n disableVertexAttribArray(index: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */\n drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */\n drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */\n enable(cap: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */\n enableVertexAttribArray(index: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */\n finish(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */\n flush(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */\n framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */\n framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */\n frontFace(mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */\n generateMipmap(target: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */\n getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */\n getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */\n getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */\n getAttribLocation(program: WebGLProgram, name: string): GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */\n getBufferParameter(target: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */\n getContextAttributes(): WebGLContextAttributes | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */\n getError(): GLenum;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */\n getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;\n getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;\n getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;\n getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;\n getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;\n getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;\n getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;\n getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;\n getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;\n getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;\n getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;\n getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;\n getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;\n getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;\n getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;\n getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;\n getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;\n getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;\n getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;\n getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;\n getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;\n getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;\n getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;\n getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;\n getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;\n getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;\n getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;\n getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;\n getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;\n getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;\n getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;\n getExtension(name: string): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */\n getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */\n getParameter(pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */\n getProgramInfoLog(program: WebGLProgram): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */\n getProgramParameter(program: WebGLProgram, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */\n getRenderbufferParameter(target: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */\n getShaderInfoLog(shader: WebGLShader): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */\n getShaderParameter(shader: WebGLShader, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */\n getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */\n getShaderSource(shader: WebGLShader): string | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */\n getSupportedExtensions(): string[] | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */\n getTexParameter(target: GLenum, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */\n getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */\n getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */\n getVertexAttrib(index: GLuint, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */\n getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */\n hint(target: GLenum, mode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */\n isBuffer(buffer: WebGLBuffer | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */\n isContextLost(): boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */\n isEnabled(cap: GLenum): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */\n isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */\n isProgram(program: WebGLProgram | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */\n isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */\n isShader(shader: WebGLShader | null): GLboolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */\n isTexture(texture: WebGLTexture | null): GLboolean;\n lineWidth(width: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */\n linkProgram(program: WebGLProgram): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */\n pixelStorei(pname: GLenum, param: GLint | GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */\n polygonOffset(factor: GLfloat, units: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */\n renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */\n sampleCoverage(value: GLclampf, invert: GLboolean): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */\n scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */\n shaderSource(shader: WebGLShader, source: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */\n stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */\n stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */\n stencilMask(mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */\n stencilMaskSeparate(face: GLenum, mask: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */\n stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */\n stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */\n texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */\n texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */\n useProgram(program: WebGLProgram | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */\n validateProgram(program: WebGLProgram): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib1f(index: GLuint, x: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib1fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib2fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib3fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib4fv(index: GLuint, values: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */\n vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */\n viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n readonly DEPTH_BUFFER_BIT: 0x00000100;\n readonly STENCIL_BUFFER_BIT: 0x00000400;\n readonly COLOR_BUFFER_BIT: 0x00004000;\n readonly POINTS: 0x0000;\n readonly LINES: 0x0001;\n readonly LINE_LOOP: 0x0002;\n readonly LINE_STRIP: 0x0003;\n readonly TRIANGLES: 0x0004;\n readonly TRIANGLE_STRIP: 0x0005;\n readonly TRIANGLE_FAN: 0x0006;\n readonly ZERO: 0;\n readonly ONE: 1;\n readonly SRC_COLOR: 0x0300;\n readonly ONE_MINUS_SRC_COLOR: 0x0301;\n readonly SRC_ALPHA: 0x0302;\n readonly ONE_MINUS_SRC_ALPHA: 0x0303;\n readonly DST_ALPHA: 0x0304;\n readonly ONE_MINUS_DST_ALPHA: 0x0305;\n readonly DST_COLOR: 0x0306;\n readonly ONE_MINUS_DST_COLOR: 0x0307;\n readonly SRC_ALPHA_SATURATE: 0x0308;\n readonly FUNC_ADD: 0x8006;\n readonly BLEND_EQUATION: 0x8009;\n readonly BLEND_EQUATION_RGB: 0x8009;\n readonly BLEND_EQUATION_ALPHA: 0x883D;\n readonly FUNC_SUBTRACT: 0x800A;\n readonly FUNC_REVERSE_SUBTRACT: 0x800B;\n readonly BLEND_DST_RGB: 0x80C8;\n readonly BLEND_SRC_RGB: 0x80C9;\n readonly BLEND_DST_ALPHA: 0x80CA;\n readonly BLEND_SRC_ALPHA: 0x80CB;\n readonly CONSTANT_COLOR: 0x8001;\n readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;\n readonly CONSTANT_ALPHA: 0x8003;\n readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;\n readonly BLEND_COLOR: 0x8005;\n readonly ARRAY_BUFFER: 0x8892;\n readonly ELEMENT_ARRAY_BUFFER: 0x8893;\n readonly ARRAY_BUFFER_BINDING: 0x8894;\n readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;\n readonly STREAM_DRAW: 0x88E0;\n readonly STATIC_DRAW: 0x88E4;\n readonly DYNAMIC_DRAW: 0x88E8;\n readonly BUFFER_SIZE: 0x8764;\n readonly BUFFER_USAGE: 0x8765;\n readonly CURRENT_VERTEX_ATTRIB: 0x8626;\n readonly FRONT: 0x0404;\n readonly BACK: 0x0405;\n readonly FRONT_AND_BACK: 0x0408;\n readonly CULL_FACE: 0x0B44;\n readonly BLEND: 0x0BE2;\n readonly DITHER: 0x0BD0;\n readonly STENCIL_TEST: 0x0B90;\n readonly DEPTH_TEST: 0x0B71;\n readonly SCISSOR_TEST: 0x0C11;\n readonly POLYGON_OFFSET_FILL: 0x8037;\n readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;\n readonly SAMPLE_COVERAGE: 0x80A0;\n readonly NO_ERROR: 0;\n readonly INVALID_ENUM: 0x0500;\n readonly INVALID_VALUE: 0x0501;\n readonly INVALID_OPERATION: 0x0502;\n readonly OUT_OF_MEMORY: 0x0505;\n readonly CW: 0x0900;\n readonly CCW: 0x0901;\n readonly LINE_WIDTH: 0x0B21;\n readonly ALIASED_POINT_SIZE_RANGE: 0x846D;\n readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;\n readonly CULL_FACE_MODE: 0x0B45;\n readonly FRONT_FACE: 0x0B46;\n readonly DEPTH_RANGE: 0x0B70;\n readonly DEPTH_WRITEMASK: 0x0B72;\n readonly DEPTH_CLEAR_VALUE: 0x0B73;\n readonly DEPTH_FUNC: 0x0B74;\n readonly STENCIL_CLEAR_VALUE: 0x0B91;\n readonly STENCIL_FUNC: 0x0B92;\n readonly STENCIL_FAIL: 0x0B94;\n readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;\n readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;\n readonly STENCIL_REF: 0x0B97;\n readonly STENCIL_VALUE_MASK: 0x0B93;\n readonly STENCIL_WRITEMASK: 0x0B98;\n readonly STENCIL_BACK_FUNC: 0x8800;\n readonly STENCIL_BACK_FAIL: 0x8801;\n readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;\n readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;\n readonly STENCIL_BACK_REF: 0x8CA3;\n readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;\n readonly STENCIL_BACK_WRITEMASK: 0x8CA5;\n readonly VIEWPORT: 0x0BA2;\n readonly SCISSOR_BOX: 0x0C10;\n readonly COLOR_CLEAR_VALUE: 0x0C22;\n readonly COLOR_WRITEMASK: 0x0C23;\n readonly UNPACK_ALIGNMENT: 0x0CF5;\n readonly PACK_ALIGNMENT: 0x0D05;\n readonly MAX_TEXTURE_SIZE: 0x0D33;\n readonly MAX_VIEWPORT_DIMS: 0x0D3A;\n readonly SUBPIXEL_BITS: 0x0D50;\n readonly RED_BITS: 0x0D52;\n readonly GREEN_BITS: 0x0D53;\n readonly BLUE_BITS: 0x0D54;\n readonly ALPHA_BITS: 0x0D55;\n readonly DEPTH_BITS: 0x0D56;\n readonly STENCIL_BITS: 0x0D57;\n readonly POLYGON_OFFSET_UNITS: 0x2A00;\n readonly POLYGON_OFFSET_FACTOR: 0x8038;\n readonly TEXTURE_BINDING_2D: 0x8069;\n readonly SAMPLE_BUFFERS: 0x80A8;\n readonly SAMPLES: 0x80A9;\n readonly SAMPLE_COVERAGE_VALUE: 0x80AA;\n readonly SAMPLE_COVERAGE_INVERT: 0x80AB;\n readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;\n readonly DONT_CARE: 0x1100;\n readonly FASTEST: 0x1101;\n readonly NICEST: 0x1102;\n readonly GENERATE_MIPMAP_HINT: 0x8192;\n readonly BYTE: 0x1400;\n readonly UNSIGNED_BYTE: 0x1401;\n readonly SHORT: 0x1402;\n readonly UNSIGNED_SHORT: 0x1403;\n readonly INT: 0x1404;\n readonly UNSIGNED_INT: 0x1405;\n readonly FLOAT: 0x1406;\n readonly DEPTH_COMPONENT: 0x1902;\n readonly ALPHA: 0x1906;\n readonly RGB: 0x1907;\n readonly RGBA: 0x1908;\n readonly LUMINANCE: 0x1909;\n readonly LUMINANCE_ALPHA: 0x190A;\n readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;\n readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;\n readonly UNSIGNED_SHORT_5_6_5: 0x8363;\n readonly FRAGMENT_SHADER: 0x8B30;\n readonly VERTEX_SHADER: 0x8B31;\n readonly MAX_VERTEX_ATTRIBS: 0x8869;\n readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;\n readonly MAX_VARYING_VECTORS: 0x8DFC;\n readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;\n readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;\n readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;\n readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;\n readonly SHADER_TYPE: 0x8B4F;\n readonly DELETE_STATUS: 0x8B80;\n readonly LINK_STATUS: 0x8B82;\n readonly VALIDATE_STATUS: 0x8B83;\n readonly ATTACHED_SHADERS: 0x8B85;\n readonly ACTIVE_UNIFORMS: 0x8B86;\n readonly ACTIVE_ATTRIBUTES: 0x8B89;\n readonly SHADING_LANGUAGE_VERSION: 0x8B8C;\n readonly CURRENT_PROGRAM: 0x8B8D;\n readonly NEVER: 0x0200;\n readonly LESS: 0x0201;\n readonly EQUAL: 0x0202;\n readonly LEQUAL: 0x0203;\n readonly GREATER: 0x0204;\n readonly NOTEQUAL: 0x0205;\n readonly GEQUAL: 0x0206;\n readonly ALWAYS: 0x0207;\n readonly KEEP: 0x1E00;\n readonly REPLACE: 0x1E01;\n readonly INCR: 0x1E02;\n readonly DECR: 0x1E03;\n readonly INVERT: 0x150A;\n readonly INCR_WRAP: 0x8507;\n readonly DECR_WRAP: 0x8508;\n readonly VENDOR: 0x1F00;\n readonly RENDERER: 0x1F01;\n readonly VERSION: 0x1F02;\n readonly NEAREST: 0x2600;\n readonly LINEAR: 0x2601;\n readonly NEAREST_MIPMAP_NEAREST: 0x2700;\n readonly LINEAR_MIPMAP_NEAREST: 0x2701;\n readonly NEAREST_MIPMAP_LINEAR: 0x2702;\n readonly LINEAR_MIPMAP_LINEAR: 0x2703;\n readonly TEXTURE_MAG_FILTER: 0x2800;\n readonly TEXTURE_MIN_FILTER: 0x2801;\n readonly TEXTURE_WRAP_S: 0x2802;\n readonly TEXTURE_WRAP_T: 0x2803;\n readonly TEXTURE_2D: 0x0DE1;\n readonly TEXTURE: 0x1702;\n readonly TEXTURE_CUBE_MAP: 0x8513;\n readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;\n readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;\n readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;\n readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;\n readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;\n readonly TEXTURE0: 0x84C0;\n readonly TEXTURE1: 0x84C1;\n readonly TEXTURE2: 0x84C2;\n readonly TEXTURE3: 0x84C3;\n readonly TEXTURE4: 0x84C4;\n readonly TEXTURE5: 0x84C5;\n readonly TEXTURE6: 0x84C6;\n readonly TEXTURE7: 0x84C7;\n readonly TEXTURE8: 0x84C8;\n readonly TEXTURE9: 0x84C9;\n readonly TEXTURE10: 0x84CA;\n readonly TEXTURE11: 0x84CB;\n readonly TEXTURE12: 0x84CC;\n readonly TEXTURE13: 0x84CD;\n readonly TEXTURE14: 0x84CE;\n readonly TEXTURE15: 0x84CF;\n readonly TEXTURE16: 0x84D0;\n readonly TEXTURE17: 0x84D1;\n readonly TEXTURE18: 0x84D2;\n readonly TEXTURE19: 0x84D3;\n readonly TEXTURE20: 0x84D4;\n readonly TEXTURE21: 0x84D5;\n readonly TEXTURE22: 0x84D6;\n readonly TEXTURE23: 0x84D7;\n readonly TEXTURE24: 0x84D8;\n readonly TEXTURE25: 0x84D9;\n readonly TEXTURE26: 0x84DA;\n readonly TEXTURE27: 0x84DB;\n readonly TEXTURE28: 0x84DC;\n readonly TEXTURE29: 0x84DD;\n readonly TEXTURE30: 0x84DE;\n readonly TEXTURE31: 0x84DF;\n readonly ACTIVE_TEXTURE: 0x84E0;\n readonly REPEAT: 0x2901;\n readonly CLAMP_TO_EDGE: 0x812F;\n readonly MIRRORED_REPEAT: 0x8370;\n readonly FLOAT_VEC2: 0x8B50;\n readonly FLOAT_VEC3: 0x8B51;\n readonly FLOAT_VEC4: 0x8B52;\n readonly INT_VEC2: 0x8B53;\n readonly INT_VEC3: 0x8B54;\n readonly INT_VEC4: 0x8B55;\n readonly BOOL: 0x8B56;\n readonly BOOL_VEC2: 0x8B57;\n readonly BOOL_VEC3: 0x8B58;\n readonly BOOL_VEC4: 0x8B59;\n readonly FLOAT_MAT2: 0x8B5A;\n readonly FLOAT_MAT3: 0x8B5B;\n readonly FLOAT_MAT4: 0x8B5C;\n readonly SAMPLER_2D: 0x8B5E;\n readonly SAMPLER_CUBE: 0x8B60;\n readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;\n readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;\n readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;\n readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;\n readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;\n readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;\n readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;\n readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;\n readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;\n readonly COMPILE_STATUS: 0x8B81;\n readonly LOW_FLOAT: 0x8DF0;\n readonly MEDIUM_FLOAT: 0x8DF1;\n readonly HIGH_FLOAT: 0x8DF2;\n readonly LOW_INT: 0x8DF3;\n readonly MEDIUM_INT: 0x8DF4;\n readonly HIGH_INT: 0x8DF5;\n readonly FRAMEBUFFER: 0x8D40;\n readonly RENDERBUFFER: 0x8D41;\n readonly RGBA4: 0x8056;\n readonly RGB5_A1: 0x8057;\n readonly RGBA8: 0x8058;\n readonly RGB565: 0x8D62;\n readonly DEPTH_COMPONENT16: 0x81A5;\n readonly STENCIL_INDEX8: 0x8D48;\n readonly DEPTH_STENCIL: 0x84F9;\n readonly RENDERBUFFER_WIDTH: 0x8D42;\n readonly RENDERBUFFER_HEIGHT: 0x8D43;\n readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;\n readonly RENDERBUFFER_RED_SIZE: 0x8D50;\n readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;\n readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;\n readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;\n readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;\n readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;\n readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;\n readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;\n readonly COLOR_ATTACHMENT0: 0x8CE0;\n readonly DEPTH_ATTACHMENT: 0x8D00;\n readonly STENCIL_ATTACHMENT: 0x8D20;\n readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;\n readonly NONE: 0;\n readonly FRAMEBUFFER_COMPLETE: 0x8CD5;\n readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;\n readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;\n readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;\n readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;\n readonly FRAMEBUFFER_BINDING: 0x8CA6;\n readonly RENDERBUFFER_BINDING: 0x8CA7;\n readonly MAX_RENDERBUFFER_SIZE: 0x84E8;\n readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;\n readonly UNPACK_FLIP_Y_WEBGL: 0x9240;\n readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;\n readonly CONTEXT_LOST_WEBGL: 0x9242;\n readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;\n readonly BROWSER_DEFAULT_WEBGL: 0x9244;\n}\n\ninterface WebGLRenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */\n bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */\n bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */\n compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */\n compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */\n readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler) */\ninterface WebGLSampler {\n}\n\ndeclare var WebGLSampler: {\n prototype: WebGLSampler;\n new(): WebGLSampler;\n};\n\n/**\n * The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)\n */\ninterface WebGLShader {\n}\n\ndeclare var WebGLShader: {\n prototype: WebGLShader;\n new(): WebGLShader;\n};\n\n/**\n * Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)\n */\ninterface WebGLShaderPrecisionFormat {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) */\n readonly precision: GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) */\n readonly rangeMax: GLint;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) */\n readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n prototype: WebGLShaderPrecisionFormat;\n new(): WebGLShaderPrecisionFormat;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync) */\ninterface WebGLSync {\n}\n\ndeclare var WebGLSync: {\n prototype: WebGLSync;\n new(): WebGLSync;\n};\n\n/**\n * Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture)\n */\ninterface WebGLTexture {\n}\n\ndeclare var WebGLTexture: {\n prototype: WebGLTexture;\n new(): WebGLTexture;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback) */\ninterface WebGLTransformFeedback {\n}\n\ndeclare var WebGLTransformFeedback: {\n prototype: WebGLTransformFeedback;\n new(): WebGLTransformFeedback;\n};\n\n/**\n * Part of the WebGL API and represents the location of a uniform variable in a shader program.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation)\n */\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n prototype: WebGLUniformLocation;\n new(): WebGLUniformLocation;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */\ninterface WebGLVertexArrayObject {\n}\n\ndeclare var WebGLVertexArrayObject: {\n prototype: WebGLVertexArrayObject;\n new(): WebGLVertexArrayObject;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObjectOES) */\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebSocketEventMap {\n "close": CloseEvent;\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\n/**\n * Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)\n */\ninterface WebSocket extends EventTarget {\n /**\n * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:\n *\n * Can be set, to change how binary data is returned. The default is "blob".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)\n */\n binaryType: BinaryType;\n /**\n * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.\n *\n * If the WebSocket connection is closed, this attribute\'s value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)\n */\n readonly bufferedAmount: number;\n /**\n * Returns the extensions selected by the server, if any.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)\n */\n readonly extensions: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */\n onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */\n onerror: ((this: WebSocket, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */\n onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */\n onopen: ((this: WebSocket, ev: Event) => any) | null;\n /**\n * Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor\'s second argument to perform subprotocol negotiation.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)\n */\n readonly protocol: string;\n /**\n * Returns the state of the WebSocket object\'s connection. It can have the values described below.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)\n */\n readonly readyState: number;\n /**\n * Returns the URL that was used to establish the WebSocket connection.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)\n */\n readonly url: string;\n /**\n * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)\n */\n close(code?: number, reason?: string): void;\n /**\n * Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)\n */\n send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSING: 2;\n readonly CLOSED: 3;\n addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WebSocket: {\n prototype: WebSocket;\n new(url: string | URL, protocols?: string | string[]): WebSocket;\n readonly CONNECTING: 0;\n readonly OPEN: 1;\n readonly CLOSING: 2;\n readonly CLOSED: 3;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)\n */\ninterface WebTransport {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */\n readonly closed: Promise<WebTransportCloseInfo>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */\n readonly datagrams: WebTransportDatagramDuplexStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */\n readonly incomingBidirectionalStreams: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */\n readonly incomingUnidirectionalStreams: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */\n readonly ready: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */\n close(closeInfo?: WebTransportCloseInfo): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */\n createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */\n createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;\n}\n\ndeclare var WebTransport: {\n prototype: WebTransport;\n new(url: string | URL, options?: WebTransportOptions): WebTransport;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)\n */\ninterface WebTransportBidirectionalStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */\n readonly readable: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */\n readonly writable: WritableStream;\n}\n\ndeclare var WebTransportBidirectionalStream: {\n prototype: WebTransportBidirectionalStream;\n new(): WebTransportBidirectionalStream;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)\n */\ninterface WebTransportDatagramDuplexStream {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */\n incomingHighWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */\n incomingMaxAge: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */\n readonly maxDatagramSize: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */\n outgoingHighWaterMark: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */\n outgoingMaxAge: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */\n readonly readable: ReadableStream;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */\n readonly writable: WritableStream;\n}\n\ndeclare var WebTransportDatagramDuplexStream: {\n prototype: WebTransportDatagramDuplexStream;\n new(): WebTransportDatagramDuplexStream;\n};\n\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)\n */\ninterface WebTransportError extends DOMException {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */\n readonly source: WebTransportErrorSource;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */\n readonly streamErrorCode: number | null;\n}\n\ndeclare var WebTransportError: {\n prototype: WebTransportError;\n new(message?: string, options?: WebTransportErrorOptions): WebTransportError;\n};\n\n/**\n * This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient)\n */\ninterface WindowClient extends Client {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focused) */\n readonly focused: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/visibilityState) */\n readonly visibilityState: DocumentVisibilityState;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focus) */\n focus(): Promise<WindowClient>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/navigate) */\n navigate(url: string | URL): Promise<WindowClient | null>;\n}\n\ndeclare var WindowClient: {\n prototype: WindowClient;\n new(): WindowClient;\n};\n\ninterface WindowOrWorkerGlobalScope {\n /**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)\n */\n readonly caches: CacheStorage;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */\n readonly crossOriginIsolated: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */\n readonly crypto: Crypto;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */\n readonly indexedDB: IDBFactory;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */\n readonly isSecureContext: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */\n readonly origin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */\n readonly performance: Performance;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */\n atob(data: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */\n btoa(data: string): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */\n clearInterval(id: number | undefined): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */\n clearTimeout(id: number | undefined): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */\n createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */\n fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */\n queueMicrotask(callback: VoidFunction): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */\n reportError(e: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */\n setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */\n setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */\n structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\n/**\n * This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)\n */\ninterface Worker extends EventTarget, AbstractWorker {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */\n onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */\n onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;\n /**\n * Clones message and transmits it to worker\'s global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)\n */\n postMessage(message: any, transfer: Transferable[]): void;\n postMessage(message: any, options?: StructuredSerializeOptions): void;\n /**\n * Aborts worker\'s associated global environment.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate)\n */\n terminate(): void;\n addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Worker: {\n prototype: Worker;\n new(scriptURL: string | URL, options?: WorkerOptions): Worker;\n};\n\ninterface WorkerGlobalScopeEventMap {\n "error": ErrorEvent;\n "languagechange": Event;\n "offline": Event;\n "online": Event;\n "rejectionhandled": PromiseRejectionEvent;\n "unhandledrejection": PromiseRejectionEvent;\n}\n\n/**\n * This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects \u2014 in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope)\n */\ninterface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {\n /**\n * Returns workerGlobal\'s WorkerLocation object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)\n */\n readonly location: WorkerLocation;\n /**\n * Returns workerGlobal\'s WorkerNavigator object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)\n */\n readonly navigator: WorkerNavigator;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */\n onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */\n onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */\n onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */\n ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;\n onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n /**\n * Returns workerGlobal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)\n */\n readonly self: WorkerGlobalScope & typeof globalThis;\n /**\n * Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)\n */\n importScripts(...urls: (string | URL)[]): void;\n addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WorkerGlobalScope: {\n prototype: WorkerGlobalScope;\n new(): WorkerGlobalScope;\n};\n\n/**\n * The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation)\n */\ninterface WorkerLocation {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hash) */\n readonly hash: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/host) */\n readonly host: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hostname) */\n readonly hostname: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/href) */\n readonly href: string;\n toString(): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/origin) */\n readonly origin: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/pathname) */\n readonly pathname: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/port) */\n readonly port: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/protocol) */\n readonly protocol: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/search) */\n readonly search: string;\n}\n\ndeclare var WorkerLocation: {\n prototype: WorkerLocation;\n new(): WorkerLocation;\n};\n\n/**\n * A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)\n */\ninterface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/mediaCapabilities) */\n readonly mediaCapabilities: MediaCapabilities;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions) */\n readonly permissions: Permissions;\n}\n\ndeclare var WorkerNavigator: {\n prototype: WorkerNavigator;\n new(): WorkerNavigator;\n};\n\n/**\n * This Streams API interface provides\xa0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)\n */\ninterface WritableStream<W = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */\n readonly locked: boolean;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */\n abort(reason?: any): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */\n close(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */\n getWriter(): WritableStreamDefaultWriter<W>;\n}\n\ndeclare var WritableStream: {\n prototype: WritableStream;\n new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;\n};\n\n/**\n * This Streams API interface represents a controller allowing control of a\xa0WritableStream\'s state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)\n */\ninterface WritableStreamDefaultController {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */\n readonly signal: AbortSignal;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */\n error(e?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n prototype: WritableStreamDefaultController;\n new(): WritableStreamDefaultController;\n};\n\n/**\n * This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)\n */\ninterface WritableStreamDefaultWriter<W = any> {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */\n readonly closed: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */\n readonly desiredSize: number | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */\n readonly ready: Promise<undefined>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */\n abort(reason?: any): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */\n close(): Promise<void>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */\n releaseLock(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */\n write(chunk?: W): Promise<void>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n prototype: WritableStreamDefaultWriter;\n new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;\n};\n\ninterface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {\n "readystatechange": Event;\n}\n\n/**\n * Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest)\n */\ninterface XMLHttpRequest extends XMLHttpRequestEventTarget {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */\n onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n /**\n * Returns client\'s state.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)\n */\n readonly readyState: number;\n /**\n * Returns the response body.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)\n */\n readonly response: any;\n /**\n * Returns response as text.\n *\n * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)\n */\n readonly responseText: string;\n /**\n * Returns the response type.\n *\n * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".\n *\n * When set: setting to "document" is ignored if current global object is not a Window object.\n *\n * When set: throws an "InvalidStateError" DOMException if state is loading or done.\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)\n */\n responseType: XMLHttpRequestResponseType;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) */\n readonly responseURL: string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) */\n readonly status: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) */\n readonly statusText: string;\n /**\n * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this\'s synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).\n *\n * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)\n */\n timeout: number;\n /**\n * Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)\n */\n readonly upload: XMLHttpRequestUpload;\n /**\n * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.\n *\n * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)\n */\n withCredentials: boolean;\n /**\n * Cancels any network activity.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)\n */\n abort(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) */\n getAllResponseHeaders(): string;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) */\n getResponseHeader(name: string): string | null;\n /**\n * Sets the request method, request URL, and synchronous flag.\n *\n * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.\n *\n * Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.\n *\n * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)\n */\n open(method: string, url: string | URL): void;\n open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;\n /**\n * Acts as if the `Content-Type` header value for a response is mime. (It does not change the header.)\n *\n * Throws an "InvalidStateError" DOMException if state is loading or done.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)\n */\n overrideMimeType(mime: string): void;\n /**\n * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)\n */\n send(body?: XMLHttpRequestBodyInit | null): void;\n /**\n * Combines a header in author request headers.\n *\n * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n *\n * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader)\n */\n setRequestHeader(name: string, value: string): void;\n readonly UNSENT: 0;\n readonly OPENED: 1;\n readonly HEADERS_RECEIVED: 2;\n readonly LOADING: 3;\n readonly DONE: 4;\n addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequest: {\n prototype: XMLHttpRequest;\n new(): XMLHttpRequest;\n readonly UNSENT: 0;\n readonly OPENED: 1;\n readonly HEADERS_RECEIVED: 2;\n readonly LOADING: 3;\n readonly DONE: 4;\n};\n\ninterface XMLHttpRequestEventTargetEventMap {\n "abort": ProgressEvent<XMLHttpRequestEventTarget>;\n "error": ProgressEvent<XMLHttpRequestEventTarget>;\n "load": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadend": ProgressEvent<XMLHttpRequestEventTarget>;\n "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;\n "progress": ProgressEvent<XMLHttpRequestEventTarget>;\n "timeout": ProgressEvent<XMLHttpRequestEventTarget>;\n}\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget) */\ninterface XMLHttpRequestEventTarget extends EventTarget {\n onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestEventTarget: {\n prototype: XMLHttpRequestEventTarget;\n new(): XMLHttpRequestEventTarget;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload) */\ninterface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {\n addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestUpload: {\n prototype: XMLHttpRequestUpload;\n new(): XMLHttpRequestUpload;\n};\n\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */\ninterface Console {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */\n assert(condition?: boolean, ...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */\n clear(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */\n count(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */\n countReset(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */\n debug(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */\n dir(item?: any, options?: any): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */\n dirxml(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */\n error(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */\n group(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */\n groupCollapsed(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */\n groupEnd(): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */\n info(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */\n log(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */\n table(tabularData?: any, properties?: string[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */\n time(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */\n timeEnd(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */\n timeLog(label?: string, ...data: any[]): void;\n timeStamp(label?: string): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */\n trace(...data: any[]): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */\n warn(...data: any[]): void;\n}\n\ndeclare var console: Console;\n\ndeclare namespace WebAssembly {\n interface CompileError extends Error {\n }\n\n var CompileError: {\n prototype: CompileError;\n new(message?: string): CompileError;\n (message?: string): CompileError;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */\n interface Global<T extends ValueType = ValueType> {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */\n value: ValueTypeMap[T];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */\n valueOf(): ValueTypeMap[T];\n }\n\n var Global: {\n prototype: Global;\n new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */\n interface Instance {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */\n readonly exports: Exports;\n }\n\n var Instance: {\n prototype: Instance;\n new(module: Module, importObject?: Imports): Instance;\n };\n\n interface LinkError extends Error {\n }\n\n var LinkError: {\n prototype: LinkError;\n new(message?: string): LinkError;\n (message?: string): LinkError;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */\n interface Memory {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */\n readonly buffer: ArrayBuffer;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */\n grow(delta: number): number;\n }\n\n var Memory: {\n prototype: Memory;\n new(descriptor: MemoryDescriptor): Memory;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */\n interface Module {\n }\n\n var Module: {\n prototype: Module;\n new(bytes: BufferSource): Module;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */\n customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */\n exports(moduleObject: Module): ModuleExportDescriptor[];\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */\n imports(moduleObject: Module): ModuleImportDescriptor[];\n };\n\n interface RuntimeError extends Error {\n }\n\n var RuntimeError: {\n prototype: RuntimeError;\n new(message?: string): RuntimeError;\n (message?: string): RuntimeError;\n };\n\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */\n interface Table {\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */\n readonly length: number;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */\n get(index: number): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */\n grow(delta: number, value?: any): number;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */\n set(index: number, value?: any): void;\n }\n\n var Table: {\n prototype: Table;\n new(descriptor: TableDescriptor, value?: any): Table;\n };\n\n interface GlobalDescriptor<T extends ValueType = ValueType> {\n mutable?: boolean;\n value: T;\n }\n\n interface MemoryDescriptor {\n initial: number;\n maximum?: number;\n shared?: boolean;\n }\n\n interface ModuleExportDescriptor {\n kind: ImportExportKind;\n name: string;\n }\n\n interface ModuleImportDescriptor {\n kind: ImportExportKind;\n module: string;\n name: string;\n }\n\n interface TableDescriptor {\n element: TableKind;\n initial: number;\n maximum?: number;\n }\n\n interface ValueTypeMap {\n anyfunc: Function;\n externref: any;\n f32: number;\n f64: number;\n i32: number;\n i64: bigint;\n v128: never;\n }\n\n interface WebAssemblyInstantiatedSource {\n instance: Instance;\n module: Module;\n }\n\n type ImportExportKind = "function" | "global" | "memory" | "table";\n type TableKind = "anyfunc" | "externref";\n type ExportValue = Function | Global | Memory | Table;\n type Exports = Record<string, ExportValue>;\n type ImportValue = ExportValue | number;\n type Imports = Record<string, ModuleImports>;\n type ModuleImports = Record<string, ImportValue>;\n type ValueType = keyof ValueTypeMap;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */\n function compile(bytes: BufferSource): Promise<Module>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */\n function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */\n function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */\n function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;\n /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */\n function validate(bytes: BufferSource): boolean;\n}\n\ninterface EncodedVideoChunkOutputCallback {\n (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;\n}\n\ninterface FrameRequestCallback {\n (time: DOMHighResTimeStamp): void;\n}\n\ninterface LockGrantedCallback {\n (lock: Lock | null): any;\n}\n\ninterface OnErrorEventHandlerNonNull {\n (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;\n}\n\ninterface PerformanceObserverCallback {\n (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;\n}\n\ninterface QueuingStrategySize<T = any> {\n (chunk: T): number;\n}\n\ninterface ReportingObserverCallback {\n (reports: Report[], observer: ReportingObserver): void;\n}\n\ninterface TransformerFlushCallback<O> {\n (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface TransformerStartCallback<O> {\n (controller: TransformStreamDefaultController<O>): any;\n}\n\ninterface TransformerTransformCallback<I, O> {\n (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkAbortCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkCloseCallback {\n (): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSinkStartCallback {\n (controller: WritableStreamDefaultController): any;\n}\n\ninterface UnderlyingSinkWriteCallback<W> {\n (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceCancelCallback {\n (reason?: any): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourcePullCallback<R> {\n (controller: ReadableStreamController<R>): void | PromiseLike<void>;\n}\n\ninterface UnderlyingSourceStartCallback<R> {\n (controller: ReadableStreamController<R>): any;\n}\n\ninterface VideoFrameOutputCallback {\n (output: VideoFrame): void;\n}\n\ninterface VoidFunction {\n (): void;\n}\n\ninterface WebCodecsErrorCallback {\n (error: DOMException): void;\n}\n\n/**\n * Returns dedicatedWorkerGlobal\'s name, i.e. the value given to the Worker constructor. Primarily useful for debugging.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)\n */\ndeclare var name: string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */\ndeclare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */\ndeclare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */\ndeclare var onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\n/**\n * Aborts dedicatedWorkerGlobal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)\n */\ndeclare function close(): void;\n/**\n * Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)\n */\ndeclare function postMessage(message: any, transfer: Transferable[]): void;\ndeclare function postMessage(message: any, options?: StructuredSerializeOptions): void;\n/**\n * Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)\n */\ndeclare function dispatchEvent(event: Event): boolean;\n/**\n * Returns workerGlobal\'s WorkerLocation object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)\n */\ndeclare var location: WorkerLocation;\n/**\n * Returns workerGlobal\'s WorkerNavigator object.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)\n */\ndeclare var navigator: WorkerNavigator;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */\ndeclare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */\ndeclare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */\ndeclare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */\ndeclare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;\ndeclare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;\n/**\n * Returns workerGlobal.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)\n */\ndeclare var self: WorkerGlobalScope & typeof globalThis;\n/**\n * Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)\n */\ndeclare function importScripts(...urls: (string | URL)[]): void;\n/**\n * Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)\n */\ndeclare function dispatchEvent(event: Event): boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */\ndeclare var fonts: FontFaceSet;\n/**\n * Available only in secure contexts.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)\n */\ndeclare var caches: CacheStorage;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */\ndeclare var crossOriginIsolated: boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */\ndeclare var crypto: Crypto;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */\ndeclare var indexedDB: IDBFactory;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */\ndeclare var isSecureContext: boolean;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */\ndeclare var origin: string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */\ndeclare var performance: Performance;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */\ndeclare function atob(data: string): string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */\ndeclare function btoa(data: string): string;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */\ndeclare function clearInterval(id: number | undefined): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */\ndeclare function clearTimeout(id: number | undefined): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */\ndeclare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */\ndeclare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */\ndeclare function queueMicrotask(callback: VoidFunction): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */\ndeclare function reportError(e: any): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */\ndeclare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */\ndeclare function cancelAnimationFrame(handle: number): void;\n/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\ndeclare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\ndeclare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\ndeclare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\ndeclare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\ntype AlgorithmIdentifier = Algorithm | string;\ntype AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;\ntype BigInteger = Uint8Array;\ntype BinaryData = ArrayBuffer | ArrayBufferView;\ntype BlobPart = BufferSource | Blob | string;\ntype BodyInit = ReadableStream | XMLHttpRequestBodyInit;\ntype BufferSource = ArrayBufferView | ArrayBuffer;\ntype CSSKeywordish = string | CSSKeywordValue;\ntype CSSNumberish = number | CSSNumericValue;\ntype CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;\ntype CSSUnparsedSegment = string | CSSVariableReferenceValue;\ntype CanvasImageSource = ImageBitmap | OffscreenCanvas | VideoFrame;\ntype DOMHighResTimeStamp = number;\ntype EpochTimeStamp = number;\ntype EventListenerOrEventListenerObject = EventListener | EventListenerObject;\ntype FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;\ntype Float32List = Float32Array | GLfloat[];\ntype FormDataEntryValue = File | string;\ntype GLbitfield = number;\ntype GLboolean = boolean;\ntype GLclampf = number;\ntype GLenum = number;\ntype GLfloat = number;\ntype GLint = number;\ntype GLint64 = number;\ntype GLintptr = number;\ntype GLsizei = number;\ntype GLsizeiptr = number;\ntype GLuint = number;\ntype GLuint64 = number;\ntype HashAlgorithmIdentifier = AlgorithmIdentifier;\ntype HeadersInit = [string, string][] | Record<string, string> | Headers;\ntype IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];\ntype ImageBitmapSource = CanvasImageSource | Blob | ImageData;\ntype Int32List = Int32Array | GLint[];\ntype MessageEventSource = MessagePort | ServiceWorker;\ntype NamedCurve = string;\ntype OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;\ntype OnErrorEventHandler = OnErrorEventHandlerNonNull | null;\ntype PerformanceEntryList = PerformanceEntry[];\ntype PushMessageDataInit = BufferSource | string;\ntype ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;\ntype ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;\ntype ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;\ntype ReportList = Report[];\ntype RequestInfo = Request | string;\ntype TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;\ntype TimerHandler = string | Function;\ntype Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;\ntype Uint32List = Uint32Array | GLuint[];\ntype XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;\ntype AlphaOption = "discard" | "keep";\ntype AvcBitstreamFormat = "annexb" | "avc";\ntype BinaryType = "arraybuffer" | "blob";\ntype CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";\ntype CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";\ntype CanvasDirection = "inherit" | "ltr" | "rtl";\ntype CanvasFillRule = "evenodd" | "nonzero";\ntype CanvasFontKerning = "auto" | "none" | "normal";\ntype CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";\ntype CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";\ntype CanvasLineCap = "butt" | "round" | "square";\ntype CanvasLineJoin = "bevel" | "miter" | "round";\ntype CanvasTextAlign = "center" | "end" | "left" | "right" | "start";\ntype CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";\ntype CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";\ntype ClientTypes = "all" | "sharedworker" | "window" | "worker";\ntype CodecState = "closed" | "configured" | "unconfigured";\ntype ColorGamut = "p3" | "rec2020" | "srgb";\ntype ColorSpaceConversion = "default" | "none";\ntype CompressionFormat = "deflate" | "deflate-raw" | "gzip";\ntype DocumentVisibilityState = "hidden" | "visible";\ntype EncodedVideoChunkType = "delta" | "key";\ntype EndingType = "native" | "transparent";\ntype FileSystemHandleKind = "directory" | "file";\ntype FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";\ntype FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";\ntype FontFaceSetLoadStatus = "loaded" | "loading";\ntype FrameType = "auxiliary" | "nested" | "none" | "top-level";\ntype GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";\ntype HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";\ntype HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";\ntype IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";\ntype IDBRequestReadyState = "done" | "pending";\ntype IDBTransactionDurability = "default" | "relaxed" | "strict";\ntype IDBTransactionMode = "readonly" | "readwrite" | "versionchange";\ntype ImageOrientation = "flipY" | "from-image" | "none";\ntype ImageSmoothingQuality = "high" | "low" | "medium";\ntype KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";\ntype KeyType = "private" | "public" | "secret";\ntype KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";\ntype LatencyMode = "quality" | "realtime";\ntype LockMode = "exclusive" | "shared";\ntype MediaDecodingType = "file" | "media-source" | "webrtc";\ntype MediaEncodingType = "record" | "webrtc";\ntype NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";\ntype PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";\ntype PermissionState = "denied" | "granted" | "prompt";\ntype PredefinedColorSpace = "display-p3" | "srgb";\ntype PremultiplyAlpha = "default" | "none" | "premultiply";\ntype PushEncryptionKeyName = "auth" | "p256dh";\ntype RTCEncodedVideoFrameType = "delta" | "empty" | "key";\ntype ReadableStreamReaderMode = "byob";\ntype ReadableStreamType = "bytes";\ntype ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";\ntype RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";\ntype RequestCredentials = "include" | "omit" | "same-origin";\ntype RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";\ntype RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";\ntype RequestPriority = "auto" | "high" | "low";\ntype RequestRedirect = "error" | "follow" | "manual";\ntype ResizeQuality = "high" | "low" | "medium" | "pixelated";\ntype ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";\ntype SecurityPolicyViolationEventDisposition = "enforce" | "report";\ntype ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";\ntype ServiceWorkerUpdateViaCache = "all" | "imports" | "none";\ntype TransferFunction = "hlg" | "pq" | "srgb";\ntype VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";\ntype VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";\ntype VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";\ntype VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";\ntype VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";\ntype WebGLPowerPreference = "default" | "high-performance" | "low-power";\ntype WebTransportCongestionControl = "default" | "low-latency" | "throughput";\ntype WebTransportErrorSource = "session" | "stream";\ntype WorkerType = "classic" | "module";\ntype WriteCommandType = "seek" | "truncate" | "write";\ntype XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";\n',S["lib.webworker.importscripts.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// WorkerGlobalScope APIs\n/////////////////////////////\n// These are only available in a Web Worker\ndeclare function importScripts(...urls: string[]): void;\n',S["lib.webworker.iterable.d.ts"]='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib="true"/>\n\n/////////////////////////////\n/// Worker Iterable APIs\n/////////////////////////////\n\ninterface CSSNumericArray {\n [Symbol.iterator](): IterableIterator<CSSNumericValue>;\n entries(): IterableIterator<[number, CSSNumericValue]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<CSSNumericValue>;\n}\n\ninterface CSSTransformValue {\n [Symbol.iterator](): IterableIterator<CSSTransformComponent>;\n entries(): IterableIterator<[number, CSSTransformComponent]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<CSSTransformComponent>;\n}\n\ninterface CSSUnparsedValue {\n [Symbol.iterator](): IterableIterator<CSSUnparsedSegment>;\n entries(): IterableIterator<[number, CSSUnparsedSegment]>;\n keys(): IterableIterator<number>;\n values(): IterableIterator<CSSUnparsedSegment>;\n}\n\ninterface Cache {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */\n addAll(requests: Iterable<RequestInfo>): Promise<void>;\n}\n\ninterface CanvasPath {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */\n roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;\n}\n\ninterface CanvasPathDrawingStyles {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */\n setLineDash(segments: Iterable<number>): void;\n}\n\ninterface DOMStringList {\n [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface FileList {\n [Symbol.iterator](): IterableIterator<File>;\n}\n\ninterface FontFaceSet extends Set<FontFace> {\n}\n\ninterface FormData {\n [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns an array of key, value pairs for every entry in the list. */\n entries(): IterableIterator<[string, FormDataEntryValue]>;\n /** Returns a list of keys in the list. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the list. */\n values(): IterableIterator<FormDataEntryValue>;\n}\n\ninterface Headers {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all key/value pairs contained in this object. */\n entries(): IterableIterator<[string, string]>;\n /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */\n keys(): IterableIterator<string>;\n /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */\n values(): IterableIterator<string>;\n}\n\ninterface IDBDatabase {\n /**\n * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)\n */\n transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;\n}\n\ninterface IDBObjectStore {\n /**\n * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.\n *\n * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)\n */\n createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;\n}\n\ninterface MessageEvent<T = any> {\n /**\n * @deprecated\n *\n * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)\n */\n initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;\n}\n\ninterface StylePropertyMapReadOnly {\n [Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>;\n entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>;\n keys(): IterableIterator<string>;\n values(): IterableIterator<Iterable<CSSStyleValue>>;\n}\n\ninterface SubtleCrypto {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */\n deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */\n generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;\n generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;\n generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */\n importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;\n importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */\n unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;\n}\n\ninterface URLSearchParams {\n [Symbol.iterator](): IterableIterator<[string, string]>;\n /** Returns an array of key, value pairs for every entry in the search params. */\n entries(): IterableIterator<[string, string]>;\n /** Returns a list of keys in the search params. */\n keys(): IterableIterator<string>;\n /** Returns a list of values in the search params. */\n values(): IterableIterator<string>;\n}\n\ninterface WEBGL_draw_buffers {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */\n drawBuffersWEBGL(buffers: Iterable<GLenum>): void;\n}\n\ninterface WEBGL_multi_draw {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */\n multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */\n multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */\n multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */\n multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;\n}\n\ninterface WebGL2RenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */\n clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */\n drawBuffers(buffers: Iterable<GLenum>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */\n getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */\n getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */\n invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */\n invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */\n transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */\n uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */\n uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */\n vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;\n}\n\ninterface WebGL2RenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;\n}\n\ninterface WebGLRenderingContextBase {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */\n vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;\n}\n\ninterface WebGLRenderingContextOverloads {\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */\n uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */\n uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;\n}\n';var x=class e{constructor(e,t){this._extraLibs=Object.create(null),this._languageService=f(this),this._ctx=e,this._compilerOptions=t.compilerOptions,this._extraLibs=t.extraLibs,this._inlayHintsOptions=t.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map((e=>e.uri)).filter((e=>!T(e))).map((e=>e.toString())).concat(Object.keys(this._extraLibs))}_getModel(e){let t=this._ctx.getMirrorModels();for(let n=0;n<t.length;n++){const r=t[n].uri;if(r.toString()===e||r.toString(!0)===e)return t[n]}return null}getScriptVersion(e){let t=this._getModel(e);return t?t.version.toString():this.isDefaultLibFileName(e)?"1":e in this._extraLibs?String(this._extraLibs[e].version):""}async getScriptText(e){return this._getScriptText(e)}_getScriptText(e){let t,n=this._getModel(e);const r="lib."+e+".d.ts";if(n)t=n.getValue();else if(e in S)t=S[e];else if(r in S)t=S[r];else{if(!(e in this._extraLibs))return;t=this._extraLibs[e].content}return t}getScriptSnapshot(e){const t=this._getScriptText(e);if(void 0!==t)return{getText:(e,n)=>t.substring(e,n),getLength:()=>t.length,getChangeRange:()=>{}}}getScriptKind(e){switch(e.substr(e.lastIndexOf(".")+1)){case"ts":return y.TS;case"tsx":return y.TSX;case"js":return y.JS;case"jsx":return y.JSX;default:return this.getCompilationSettings().allowJs?y.JS:y.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(e){switch(e.target){case 99:const t="lib.esnext.full.d.ts";if(t in S||t in this._extraLibs)return t;case 7:case 6:case 5:case 4:case 3:case 2:default:const n=`lib.es${2013+(e.target||99)}.full.d.ts`;return n in S||n in this._extraLibs?n:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(e){return e===this.getDefaultLibFileName(this._compilerOptions)}readFile(e){return this._getScriptText(e)}fileExists(e){return void 0!==this._getScriptText(e)}async getLibFiles(){return S}static clearFiles(e){const t=[];for(const n of e){const e={...n};if(e.file=e.file?{fileName:e.file.fileName}:void 0,n.relatedInformation){e.relatedInformation=[];for(const t of n.relatedInformation){const n={...t};n.file=n.file?{fileName:n.file.fileName}:void 0,e.relatedInformation.push(n)}}t.push(e)}return t}async getSyntacticDiagnostics(t){if(T(t))return[];const n=this._languageService.getSyntacticDiagnostics(t);return e.clearFiles(n)}async getSemanticDiagnostics(t){if(T(t))return[];const n=this._languageService.getSemanticDiagnostics(t);return e.clearFiles(n)}async getSuggestionDiagnostics(t){if(T(t))return[];const n=this._languageService.getSuggestionDiagnostics(t);return e.clearFiles(n)}async getCompilerOptionsDiagnostics(t){if(T(t))return[];const n=this._languageService.getCompilerOptionsDiagnostics();return e.clearFiles(n)}async getCompletionsAtPosition(e,t){if(!T(e))return this._languageService.getCompletionsAtPosition(e,t,void 0)}async getCompletionEntryDetails(e,t,n){return this._languageService.getCompletionEntryDetails(e,t,n,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(e,t,n){if(!T(e))return this._languageService.getSignatureHelpItems(e,t,n)}async getQuickInfoAtPosition(e,t){if(!T(e))return this._languageService.getQuickInfoAtPosition(e,t)}async getDocumentHighlights(e,t,n){if(!T(e))return this._languageService.getDocumentHighlights(e,t,n)}async getDefinitionAtPosition(e,t){if(!T(e))return this._languageService.getDefinitionAtPosition(e,t)}async getReferencesAtPosition(e,t){if(!T(e))return this._languageService.getReferencesAtPosition(e,t)}async getNavigationTree(e){if(!T(e))return this._languageService.getNavigationTree(e)}async getFormattingEditsForDocument(e,t){return T(e)?[]:this._languageService.getFormattingEditsForDocument(e,t)}async getFormattingEditsForRange(e,t,n,r){return T(e)?[]:this._languageService.getFormattingEditsForRange(e,t,n,r)}async getFormattingEditsAfterKeystroke(e,t,n,r){return T(e)?[]:this._languageService.getFormattingEditsAfterKeystroke(e,t,n,r)}async findRenameLocations(e,t,n,r,o){if(!T(e))return this._languageService.findRenameLocations(e,t,n,r,o)}async getRenameInfo(e,t,n){return T(e)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(e,t,n)}async getEmitOutput(t,n,r){if(T(t))return{outputFiles:[],emitSkipped:!0};const o=this._languageService.getEmitOutput(t,n,r),i=o.diagnostics?e.clearFiles(o.diagnostics):void 0;return{...o,diagnostics:i}}async getCodeFixesAtPosition(e,t,n,r,o){if(T(e))return[];const i={};try{return this._languageService.getCodeFixesAtPosition(e,t,n,r,o,i)}catch{return[]}}async updateExtraLibs(e){this._extraLibs=e}async provideInlayHints(e,t,n){if(T(e))return[];const r=this._inlayHintsOptions??{},o={start:t,length:n-t};try{return this._languageService.provideInlayHints(e,o,r)}catch{return[]}}};globalThis.ts=E,self.onmessage=()=>{i(((e,t)=>function(e,t){let n=x;if(t.customWorkerPath)if("undefined"===typeof importScripts)console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{self.importScripts(t.customWorkerPath);const e=self.customTSWorkerFactory;if(!e)throw new Error(`The script at ${t.customWorkerPath} does not add customTSWorkerFactory to self`);n=e(x,l,S)}return new n(e,t)}(e,t)))}})()})();
\ No newline at end of file diff --git a/ydb/core/viewer/ya.make b/ydb/core/viewer/ya.make index 7a30cb9e0c0..5ca2a8af437 100644 --- a/ydb/core/viewer/ya.make +++ b/ydb/core/viewer/ya.make @@ -121,57 +121,56 @@ IF (NOT EXPORT_CMAKE) monitoring/css.worker.js.LICENSE.txt monitoring/css.worker.js.LICENSE.txt monitoring/editor.worker.js monitoring/editor.worker.js monitoring/html.worker.js monitoring/html.worker.js - monitoring/html.worker.js.LICENSE.txt monitoring/html.worker.js.LICENSE.txt monitoring/index.html monitoring/index.html monitoring/json.worker.js monitoring/json.worker.js monitoring/json.worker.js.LICENSE.txt monitoring/json.worker.js.LICENSE.txt - monitoring/static/css/1203.5dcd19b9.chunk.css monitoring/static/css/1203.5dcd19b9.chunk.css - monitoring/static/css/1489.6e73d562.chunk.css monitoring/static/css/1489.6e73d562.chunk.css - monitoring/static/css/2828.3c5a5933.chunk.css monitoring/static/css/2828.3c5a5933.chunk.css - monitoring/static/css/3207.6c42f157.chunk.css monitoring/static/css/3207.6c42f157.chunk.css - monitoring/static/css/3230.e4288e80.chunk.css monitoring/static/css/3230.e4288e80.chunk.css - monitoring/static/css/3415.b2295207.chunk.css monitoring/static/css/3415.b2295207.chunk.css - monitoring/static/css/3940.7f9420b9.chunk.css monitoring/static/css/3940.7f9420b9.chunk.css - monitoring/static/css/4335.aaba50a9.chunk.css monitoring/static/css/4335.aaba50a9.chunk.css - monitoring/static/css/4614.16135447.chunk.css monitoring/static/css/4614.16135447.chunk.css - monitoring/static/css/6539.11185331.chunk.css monitoring/static/css/6539.11185331.chunk.css - monitoring/static/css/6947.7cffb936.chunk.css monitoring/static/css/6947.7cffb936.chunk.css - monitoring/static/css/6989.10e247c3.chunk.css monitoring/static/css/6989.10e247c3.chunk.css + monitoring/static/css/2512.19e3e12f.chunk.css monitoring/static/css/2512.19e3e12f.chunk.css + monitoring/static/css/371.01f04f12.chunk.css monitoring/static/css/371.01f04f12.chunk.css + monitoring/static/css/3779.66c0ef83.chunk.css monitoring/static/css/3779.66c0ef83.chunk.css + monitoring/static/css/3812.440ff245.chunk.css monitoring/static/css/3812.440ff245.chunk.css + monitoring/static/css/3940.0971684f.chunk.css monitoring/static/css/3940.0971684f.chunk.css + monitoring/static/css/535.c6fb8cd9.chunk.css monitoring/static/css/535.c6fb8cd9.chunk.css + monitoring/static/css/5438.615bd68a.chunk.css monitoring/static/css/5438.615bd68a.chunk.css + monitoring/static/css/6030.fd13e90a.chunk.css monitoring/static/css/6030.fd13e90a.chunk.css + monitoring/static/css/6548.ca5780af.chunk.css monitoring/static/css/6548.ca5780af.chunk.css + monitoring/static/css/684.90fbb646.chunk.css monitoring/static/css/684.90fbb646.chunk.css + monitoring/static/css/7750.8e5e0423.chunk.css monitoring/static/css/7750.8e5e0423.chunk.css monitoring/static/css/8593.397b88bd.chunk.css monitoring/static/css/8593.397b88bd.chunk.css - monitoring/static/css/main.ea1b4d9b.css monitoring/static/css/main.ea1b4d9b.css + monitoring/static/css/9796.828f7385.chunk.css monitoring/static/css/9796.828f7385.chunk.css + monitoring/static/css/99.7cffb936.chunk.css monitoring/static/css/99.7cffb936.chunk.css + monitoring/static/css/main.c06e6faa.css monitoring/static/css/main.c06e6faa.css monitoring/static/favicon.png monitoring/static/favicon.png monitoring/static/js/1053.f976b474.chunk.js monitoring/static/js/1053.f976b474.chunk.js monitoring/static/js/108.d2d9c180.chunk.js monitoring/static/js/108.d2d9c180.chunk.js monitoring/static/js/1088.40c16ea2.chunk.js monitoring/static/js/1088.40c16ea2.chunk.js + monitoring/static/js/1094.b5bb2475.chunk.js monitoring/static/js/1094.b5bb2475.chunk.js + monitoring/static/js/1094.b5bb2475.chunk.js.LICENSE.txt monitoring/static/js/1094.b5bb2475.chunk.js.LICENSE.txt monitoring/static/js/110.2c798565.chunk.js monitoring/static/js/110.2c798565.chunk.js monitoring/static/js/110.2c798565.chunk.js.LICENSE.txt monitoring/static/js/110.2c798565.chunk.js.LICENSE.txt - monitoring/static/js/1112.981a6700.chunk.js monitoring/static/js/1112.981a6700.chunk.js - monitoring/static/js/118.dcb5482c.chunk.js monitoring/static/js/118.dcb5482c.chunk.js - monitoring/static/js/118.dcb5482c.chunk.js.LICENSE.txt monitoring/static/js/118.dcb5482c.chunk.js.LICENSE.txt + monitoring/static/js/118.112f7e2f.chunk.js monitoring/static/js/118.112f7e2f.chunk.js + monitoring/static/js/118.112f7e2f.chunk.js.LICENSE.txt monitoring/static/js/118.112f7e2f.chunk.js.LICENSE.txt monitoring/static/js/1187.c5435886.chunk.js monitoring/static/js/1187.c5435886.chunk.js - monitoring/static/js/1203.25418a7e.chunk.js monitoring/static/js/1203.25418a7e.chunk.js monitoring/static/js/1237.328d0241.chunk.js monitoring/static/js/1237.328d0241.chunk.js monitoring/static/js/1278.d5c24e15.chunk.js monitoring/static/js/1278.d5c24e15.chunk.js monitoring/static/js/1278.d5c24e15.chunk.js.LICENSE.txt monitoring/static/js/1278.d5c24e15.chunk.js.LICENSE.txt - monitoring/static/js/1299.c5282a3d.chunk.js monitoring/static/js/1299.c5282a3d.chunk.js + monitoring/static/js/1299.aaedb42e.chunk.js monitoring/static/js/1299.aaedb42e.chunk.js monitoring/static/js/132.cf00f1e7.chunk.js monitoring/static/js/132.cf00f1e7.chunk.js monitoring/static/js/132.cf00f1e7.chunk.js.LICENSE.txt monitoring/static/js/132.cf00f1e7.chunk.js.LICENSE.txt monitoring/static/js/1321.401aa9b8.chunk.js monitoring/static/js/1321.401aa9b8.chunk.js monitoring/static/js/1321.401aa9b8.chunk.js.LICENSE.txt monitoring/static/js/1321.401aa9b8.chunk.js.LICENSE.txt + monitoring/static/js/1329.de2ec2cf.chunk.js monitoring/static/js/1329.de2ec2cf.chunk.js monitoring/static/js/1414.4cfda0bc.chunk.js monitoring/static/js/1414.4cfda0bc.chunk.js monitoring/static/js/1414.4cfda0bc.chunk.js.LICENSE.txt monitoring/static/js/1414.4cfda0bc.chunk.js.LICENSE.txt - monitoring/static/js/1434.ef10d528.chunk.js monitoring/static/js/1434.ef10d528.chunk.js monitoring/static/js/1486.8a488ae4.chunk.js monitoring/static/js/1486.8a488ae4.chunk.js - monitoring/static/js/1489.6247c5c2.chunk.js monitoring/static/js/1489.6247c5c2.chunk.js monitoring/static/js/1496.18b1eb19.chunk.js monitoring/static/js/1496.18b1eb19.chunk.js - monitoring/static/js/1606.87e97214.chunk.js monitoring/static/js/1606.87e97214.chunk.js - monitoring/static/js/1606.87e97214.chunk.js.LICENSE.txt monitoring/static/js/1606.87e97214.chunk.js.LICENSE.txt + monitoring/static/js/1606.0041ed7d.chunk.js monitoring/static/js/1606.0041ed7d.chunk.js + monitoring/static/js/1606.0041ed7d.chunk.js.LICENSE.txt monitoring/static/js/1606.0041ed7d.chunk.js.LICENSE.txt monitoring/static/js/1627.80c94ebf.chunk.js monitoring/static/js/1627.80c94ebf.chunk.js monitoring/static/js/1657.d6f0b340.chunk.js monitoring/static/js/1657.d6f0b340.chunk.js monitoring/static/js/1696.6120f4a8.chunk.js monitoring/static/js/1696.6120f4a8.chunk.js monitoring/static/js/1747.f01c9fd8.chunk.js monitoring/static/js/1747.f01c9fd8.chunk.js monitoring/static/js/1756.b612458a.chunk.js monitoring/static/js/1756.b612458a.chunk.js - monitoring/static/js/1836.ea2a4537.chunk.js monitoring/static/js/1836.ea2a4537.chunk.js + monitoring/static/js/1836.1c94b54f.chunk.js monitoring/static/js/1836.1c94b54f.chunk.js monitoring/static/js/1865.72c933c8.chunk.js monitoring/static/js/1865.72c933c8.chunk.js monitoring/static/js/1917.e3ac9c6d.chunk.js monitoring/static/js/1917.e3ac9c6d.chunk.js monitoring/static/js/1956.c11f9b8a.chunk.js monitoring/static/js/1956.c11f9b8a.chunk.js @@ -188,30 +187,29 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/2182.1e53f745.chunk.js monitoring/static/js/2182.1e53f745.chunk.js monitoring/static/js/2182.1e53f745.chunk.js.LICENSE.txt monitoring/static/js/2182.1e53f745.chunk.js.LICENSE.txt monitoring/static/js/221.b740df48.chunk.js monitoring/static/js/221.b740df48.chunk.js - monitoring/static/js/225.fb54318c.chunk.js monitoring/static/js/225.fb54318c.chunk.js - monitoring/static/js/225.fb54318c.chunk.js.LICENSE.txt monitoring/static/js/225.fb54318c.chunk.js.LICENSE.txt - monitoring/static/js/2252.b5be42b8.chunk.js monitoring/static/js/2252.b5be42b8.chunk.js + monitoring/static/js/225.cf362439.chunk.js monitoring/static/js/225.cf362439.chunk.js + monitoring/static/js/225.cf362439.chunk.js.LICENSE.txt monitoring/static/js/225.cf362439.chunk.js.LICENSE.txt monitoring/static/js/2286.e992ffd4.chunk.js monitoring/static/js/2286.e992ffd4.chunk.js monitoring/static/js/2308.9e3a980c.chunk.js monitoring/static/js/2308.9e3a980c.chunk.js monitoring/static/js/2350.a7af0a2e.chunk.js monitoring/static/js/2350.a7af0a2e.chunk.js monitoring/static/js/2350.a7af0a2e.chunk.js.LICENSE.txt monitoring/static/js/2350.a7af0a2e.chunk.js.LICENSE.txt - monitoring/static/js/2372.9bfbe824.chunk.js monitoring/static/js/2372.9bfbe824.chunk.js - monitoring/static/js/2372.9bfbe824.chunk.js.LICENSE.txt monitoring/static/js/2372.9bfbe824.chunk.js.LICENSE.txt + monitoring/static/js/2372.880a31f6.chunk.js monitoring/static/js/2372.880a31f6.chunk.js + monitoring/static/js/2372.880a31f6.chunk.js.LICENSE.txt monitoring/static/js/2372.880a31f6.chunk.js.LICENSE.txt monitoring/static/js/246.13bb9db2.chunk.js monitoring/static/js/246.13bb9db2.chunk.js monitoring/static/js/246.13bb9db2.chunk.js.LICENSE.txt monitoring/static/js/246.13bb9db2.chunk.js.LICENSE.txt monitoring/static/js/2466.b8b05e16.chunk.js monitoring/static/js/2466.b8b05e16.chunk.js + monitoring/static/js/2512.732a0e0c.chunk.js monitoring/static/js/2512.732a0e0c.chunk.js monitoring/static/js/2518.ac97d255.chunk.js monitoring/static/js/2518.ac97d255.chunk.js monitoring/static/js/2518.ac97d255.chunk.js.LICENSE.txt monitoring/static/js/2518.ac97d255.chunk.js.LICENSE.txt monitoring/static/js/2568.5bec7af3.chunk.js monitoring/static/js/2568.5bec7af3.chunk.js monitoring/static/js/2612.55127fa0.chunk.js monitoring/static/js/2612.55127fa0.chunk.js monitoring/static/js/2626.a5b0d58c.chunk.js monitoring/static/js/2626.a5b0d58c.chunk.js - monitoring/static/js/2726.f30887a6.chunk.js monitoring/static/js/2726.f30887a6.chunk.js - monitoring/static/js/2726.f30887a6.chunk.js.LICENSE.txt monitoring/static/js/2726.f30887a6.chunk.js.LICENSE.txt + monitoring/static/js/2726.e753cb7c.chunk.js monitoring/static/js/2726.e753cb7c.chunk.js + monitoring/static/js/2726.e753cb7c.chunk.js.LICENSE.txt monitoring/static/js/2726.e753cb7c.chunk.js.LICENSE.txt monitoring/static/js/2742.d5c8fae8.chunk.js monitoring/static/js/2742.d5c8fae8.chunk.js monitoring/static/js/2742.d5c8fae8.chunk.js.LICENSE.txt monitoring/static/js/2742.d5c8fae8.chunk.js.LICENSE.txt monitoring/static/js/2775.9105769d.chunk.js monitoring/static/js/2775.9105769d.chunk.js monitoring/static/js/2776.0f5e87f5.chunk.js monitoring/static/js/2776.0f5e87f5.chunk.js - monitoring/static/js/2828.2fd53975.chunk.js monitoring/static/js/2828.2fd53975.chunk.js monitoring/static/js/2854.48cc58dc.chunk.js monitoring/static/js/2854.48cc58dc.chunk.js monitoring/static/js/2854.48cc58dc.chunk.js.LICENSE.txt monitoring/static/js/2854.48cc58dc.chunk.js.LICENSE.txt monitoring/static/js/290.b4f1e118.chunk.js monitoring/static/js/290.b4f1e118.chunk.js @@ -228,16 +226,12 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/3121.74e9e7dc.chunk.js monitoring/static/js/3121.74e9e7dc.chunk.js monitoring/static/js/3158.3f2d4e5f.chunk.js monitoring/static/js/3158.3f2d4e5f.chunk.js monitoring/static/js/3158.3f2d4e5f.chunk.js.LICENSE.txt monitoring/static/js/3158.3f2d4e5f.chunk.js.LICENSE.txt - monitoring/static/js/3207.168a615b.chunk.js monitoring/static/js/3207.168a615b.chunk.js - monitoring/static/js/3218.6f8c9799.chunk.js monitoring/static/js/3218.6f8c9799.chunk.js - monitoring/static/js/3230.dbae485f.chunk.js monitoring/static/js/3230.dbae485f.chunk.js - monitoring/static/js/3238.380762b8.chunk.js monitoring/static/js/3238.380762b8.chunk.js + monitoring/static/js/3238.a9505f7f.chunk.js monitoring/static/js/3238.a9505f7f.chunk.js monitoring/static/js/3321.3370cf83.chunk.js monitoring/static/js/3321.3370cf83.chunk.js monitoring/static/js/3333.eb9ec516.chunk.js monitoring/static/js/3333.eb9ec516.chunk.js monitoring/static/js/3338.83fe4e63.chunk.js monitoring/static/js/3338.83fe4e63.chunk.js monitoring/static/js/3338.83fe4e63.chunk.js.LICENSE.txt monitoring/static/js/3338.83fe4e63.chunk.js.LICENSE.txt monitoring/static/js/3410.6391755f.chunk.js monitoring/static/js/3410.6391755f.chunk.js - monitoring/static/js/3415.b30ca44e.chunk.js monitoring/static/js/3415.b30ca44e.chunk.js monitoring/static/js/3478.480dafa6.chunk.js monitoring/static/js/3478.480dafa6.chunk.js monitoring/static/js/3478.480dafa6.chunk.js.LICENSE.txt monitoring/static/js/3478.480dafa6.chunk.js.LICENSE.txt monitoring/static/js/3510.0740f36d.chunk.js monitoring/static/js/3510.0740f36d.chunk.js @@ -253,25 +247,28 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/3679.e293221d.chunk.js monitoring/static/js/3679.e293221d.chunk.js monitoring/static/js/3702.778880f9.chunk.js monitoring/static/js/3702.778880f9.chunk.js monitoring/static/js/3702.778880f9.chunk.js.LICENSE.txt monitoring/static/js/3702.778880f9.chunk.js.LICENSE.txt + monitoring/static/js/371.adb771f2.chunk.js monitoring/static/js/371.adb771f2.chunk.js monitoring/static/js/3756.9a440b73.chunk.js monitoring/static/js/3756.9a440b73.chunk.js monitoring/static/js/3761.dd957fd1.chunk.js monitoring/static/js/3761.dd957fd1.chunk.js monitoring/static/js/3769.860e8d58.chunk.js monitoring/static/js/3769.860e8d58.chunk.js + monitoring/static/js/3779.9f31a4d0.chunk.js monitoring/static/js/3779.9f31a4d0.chunk.js + monitoring/static/js/3812.325f3251.chunk.js monitoring/static/js/3812.325f3251.chunk.js monitoring/static/js/3822.00ab6aaa.chunk.js monitoring/static/js/3822.00ab6aaa.chunk.js monitoring/static/js/3822.00ab6aaa.chunk.js.LICENSE.txt monitoring/static/js/3822.00ab6aaa.chunk.js.LICENSE.txt - monitoring/static/js/3872.b04e09bf.chunk.js monitoring/static/js/3872.b04e09bf.chunk.js + monitoring/static/js/3872.a25d87b5.chunk.js monitoring/static/js/3872.a25d87b5.chunk.js monitoring/static/js/3879.17f211ad.chunk.js monitoring/static/js/3879.17f211ad.chunk.js monitoring/static/js/3902.973b73c6.chunk.js monitoring/static/js/3902.973b73c6.chunk.js - monitoring/static/js/3940.273724e5.chunk.js monitoring/static/js/3940.273724e5.chunk.js + monitoring/static/js/3940.f5079e40.chunk.js monitoring/static/js/3940.f5079e40.chunk.js monitoring/static/js/3952.ce1b4fad.chunk.js monitoring/static/js/3952.ce1b4fad.chunk.js monitoring/static/js/3977.4c33ec16.chunk.js monitoring/static/js/3977.4c33ec16.chunk.js monitoring/static/js/3977.4c33ec16.chunk.js.LICENSE.txt monitoring/static/js/3977.4c33ec16.chunk.js.LICENSE.txt + monitoring/static/js/4024.021c61dd.chunk.js monitoring/static/js/4024.021c61dd.chunk.js monitoring/static/js/4096.33f702a0.chunk.js monitoring/static/js/4096.33f702a0.chunk.js + monitoring/static/js/4130.e9433987.chunk.js monitoring/static/js/4130.e9433987.chunk.js monitoring/static/js/4169.f2243012.chunk.js monitoring/static/js/4169.f2243012.chunk.js monitoring/static/js/4180.1de6c8ba.chunk.js monitoring/static/js/4180.1de6c8ba.chunk.js monitoring/static/js/4324.c69948f7.chunk.js monitoring/static/js/4324.c69948f7.chunk.js - monitoring/static/js/4335.b2a023a8.chunk.js monitoring/static/js/4335.b2a023a8.chunk.js monitoring/static/js/4349.9c8d20fd.chunk.js monitoring/static/js/4349.9c8d20fd.chunk.js - monitoring/static/js/439.b6c8d07e.chunk.js monitoring/static/js/439.b6c8d07e.chunk.js monitoring/static/js/4401.f46d19f6.chunk.js monitoring/static/js/4401.f46d19f6.chunk.js monitoring/static/js/4441.2b4963cf.chunk.js monitoring/static/js/4441.2b4963cf.chunk.js monitoring/static/js/4534.b98f1389.chunk.js monitoring/static/js/4534.b98f1389.chunk.js @@ -281,7 +278,6 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/4582.5bf174ff.chunk.js monitoring/static/js/4582.5bf174ff.chunk.js monitoring/static/js/4582.5bf174ff.chunk.js.LICENSE.txt monitoring/static/js/4582.5bf174ff.chunk.js.LICENSE.txt monitoring/static/js/4601.39745c4e.chunk.js monitoring/static/js/4601.39745c4e.chunk.js - monitoring/static/js/4614.3993436e.chunk.js monitoring/static/js/4614.3993436e.chunk.js monitoring/static/js/4652.9a5d2242.chunk.js monitoring/static/js/4652.9a5d2242.chunk.js monitoring/static/js/4662.1c10232d.chunk.js monitoring/static/js/4662.1c10232d.chunk.js monitoring/static/js/4662.1c10232d.chunk.js.LICENSE.txt monitoring/static/js/4662.1c10232d.chunk.js.LICENSE.txt @@ -292,10 +288,10 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/4818.6beda30c.chunk.js monitoring/static/js/4818.6beda30c.chunk.js monitoring/static/js/4818.6beda30c.chunk.js.LICENSE.txt monitoring/static/js/4818.6beda30c.chunk.js.LICENSE.txt monitoring/static/js/4847.63c73f0a.chunk.js monitoring/static/js/4847.63c73f0a.chunk.js - monitoring/static/js/4870.22c3bb79.chunk.js monitoring/static/js/4870.22c3bb79.chunk.js - monitoring/static/js/4870.22c3bb79.chunk.js.LICENSE.txt monitoring/static/js/4870.22c3bb79.chunk.js.LICENSE.txt - monitoring/static/js/4872.abdc9054.chunk.js monitoring/static/js/4872.abdc9054.chunk.js - monitoring/static/js/4872.abdc9054.chunk.js.LICENSE.txt monitoring/static/js/4872.abdc9054.chunk.js.LICENSE.txt + monitoring/static/js/4870.1916a88d.chunk.js monitoring/static/js/4870.1916a88d.chunk.js + monitoring/static/js/4870.1916a88d.chunk.js.LICENSE.txt monitoring/static/js/4870.1916a88d.chunk.js.LICENSE.txt + monitoring/static/js/4872.2eea7e0a.chunk.js monitoring/static/js/4872.2eea7e0a.chunk.js + monitoring/static/js/4872.2eea7e0a.chunk.js.LICENSE.txt monitoring/static/js/4872.2eea7e0a.chunk.js.LICENSE.txt monitoring/static/js/4891.c441be74.chunk.js monitoring/static/js/4891.c441be74.chunk.js monitoring/static/js/5027.9e6325ef.chunk.js monitoring/static/js/5027.9e6325ef.chunk.js monitoring/static/js/5047.ebc9f1b2.chunk.js monitoring/static/js/5047.ebc9f1b2.chunk.js @@ -303,14 +299,15 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/5050.ffa3921f.chunk.js.LICENSE.txt monitoring/static/js/5050.ffa3921f.chunk.js.LICENSE.txt monitoring/static/js/513.46a664ad.chunk.js monitoring/static/js/513.46a664ad.chunk.js monitoring/static/js/5161.20e37d15.chunk.js monitoring/static/js/5161.20e37d15.chunk.js - monitoring/static/js/5210.566d9075.chunk.js monitoring/static/js/5210.566d9075.chunk.js monitoring/static/js/523.17013d4e.chunk.js monitoring/static/js/523.17013d4e.chunk.js - monitoring/static/js/5252.80fc836d.chunk.js monitoring/static/js/5252.80fc836d.chunk.js - monitoring/static/js/5252.80fc836d.chunk.js.LICENSE.txt monitoring/static/js/5252.80fc836d.chunk.js.LICENSE.txt + monitoring/static/js/5252.991dcab8.chunk.js monitoring/static/js/5252.991dcab8.chunk.js + monitoring/static/js/5252.991dcab8.chunk.js.LICENSE.txt monitoring/static/js/5252.991dcab8.chunk.js.LICENSE.txt + monitoring/static/js/535.ee345954.chunk.js monitoring/static/js/535.ee345954.chunk.js monitoring/static/js/5382.3a2e6ac6.chunk.js monitoring/static/js/5382.3a2e6ac6.chunk.js monitoring/static/js/5382.3a2e6ac6.chunk.js.LICENSE.txt monitoring/static/js/5382.3a2e6ac6.chunk.js.LICENSE.txt monitoring/static/js/5401.dfb63825.chunk.js monitoring/static/js/5401.dfb63825.chunk.js monitoring/static/js/5418.00d0c5d1.chunk.js monitoring/static/js/5418.00d0c5d1.chunk.js + monitoring/static/js/5438.179dc201.chunk.js monitoring/static/js/5438.179dc201.chunk.js monitoring/static/js/5453.921caa82.chunk.js monitoring/static/js/5453.921caa82.chunk.js monitoring/static/js/5454.e8f64f1a.chunk.js monitoring/static/js/5454.e8f64f1a.chunk.js monitoring/static/js/5454.e8f64f1a.chunk.js.LICENSE.txt monitoring/static/js/5454.e8f64f1a.chunk.js.LICENSE.txt @@ -327,9 +324,9 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/5816.144b5755.chunk.js monitoring/static/js/5816.144b5755.chunk.js monitoring/static/js/5819.0ae2eb3d.chunk.js monitoring/static/js/5819.0ae2eb3d.chunk.js monitoring/static/js/5853.0c5ec1d1.chunk.js monitoring/static/js/5853.0c5ec1d1.chunk.js - monitoring/static/js/5866.d7ea2c00.chunk.js monitoring/static/js/5866.d7ea2c00.chunk.js - monitoring/static/js/5866.d7ea2c00.chunk.js.LICENSE.txt monitoring/static/js/5866.d7ea2c00.chunk.js.LICENSE.txt - monitoring/static/js/5875.af30e4a7.chunk.js monitoring/static/js/5875.af30e4a7.chunk.js + monitoring/static/js/5866.14d27c8c.chunk.js monitoring/static/js/5866.14d27c8c.chunk.js + monitoring/static/js/5866.14d27c8c.chunk.js.LICENSE.txt monitoring/static/js/5866.14d27c8c.chunk.js.LICENSE.txt + monitoring/static/js/5875.f8a190bf.chunk.js monitoring/static/js/5875.f8a190bf.chunk.js monitoring/static/js/5888.4fa64369.chunk.js monitoring/static/js/5888.4fa64369.chunk.js monitoring/static/js/5888.4fa64369.chunk.js.LICENSE.txt monitoring/static/js/5888.4fa64369.chunk.js.LICENSE.txt monitoring/static/js/5924.53ba4f49.chunk.js monitoring/static/js/5924.53ba4f49.chunk.js @@ -340,12 +337,13 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/60.85d957cd.chunk.js monitoring/static/js/60.85d957cd.chunk.js monitoring/static/js/6012.aac08e72.chunk.js monitoring/static/js/6012.aac08e72.chunk.js monitoring/static/js/6012.aac08e72.chunk.js.LICENSE.txt monitoring/static/js/6012.aac08e72.chunk.js.LICENSE.txt + monitoring/static/js/6030.95d317e6.chunk.js monitoring/static/js/6030.95d317e6.chunk.js monitoring/static/js/6047.328b41a5.chunk.js monitoring/static/js/6047.328b41a5.chunk.js monitoring/static/js/6114.c74edf11.chunk.js monitoring/static/js/6114.c74edf11.chunk.js monitoring/static/js/6210.69d6a30a.chunk.js monitoring/static/js/6210.69d6a30a.chunk.js monitoring/static/js/6210.69d6a30a.chunk.js.LICENSE.txt monitoring/static/js/6210.69d6a30a.chunk.js.LICENSE.txt - monitoring/static/js/6214.c63fd980.chunk.js monitoring/static/js/6214.c63fd980.chunk.js - monitoring/static/js/6214.c63fd980.chunk.js.LICENSE.txt monitoring/static/js/6214.c63fd980.chunk.js.LICENSE.txt + monitoring/static/js/6214.a9a481a7.chunk.js monitoring/static/js/6214.a9a481a7.chunk.js + monitoring/static/js/6214.a9a481a7.chunk.js.LICENSE.txt monitoring/static/js/6214.a9a481a7.chunk.js.LICENSE.txt monitoring/static/js/6261.78de43a8.chunk.js monitoring/static/js/6261.78de43a8.chunk.js monitoring/static/js/6262.44dba84f.chunk.js monitoring/static/js/6262.44dba84f.chunk.js monitoring/static/js/6262.44dba84f.chunk.js.LICENSE.txt monitoring/static/js/6262.44dba84f.chunk.js.LICENSE.txt @@ -356,29 +354,28 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/6358.2997762b.chunk.js monitoring/static/js/6358.2997762b.chunk.js monitoring/static/js/6374.be0c5879.chunk.js monitoring/static/js/6374.be0c5879.chunk.js monitoring/static/js/6374.be0c5879.chunk.js.LICENSE.txt monitoring/static/js/6374.be0c5879.chunk.js.LICENSE.txt - monitoring/static/js/6397.b46d0b55.chunk.js monitoring/static/js/6397.b46d0b55.chunk.js + monitoring/static/js/6397.b8cf6fae.chunk.js monitoring/static/js/6397.b8cf6fae.chunk.js monitoring/static/js/6405.b0dd94a9.chunk.js monitoring/static/js/6405.b0dd94a9.chunk.js - monitoring/static/js/6447.08677ae3.chunk.js monitoring/static/js/6447.08677ae3.chunk.js - monitoring/static/js/6447.08677ae3.chunk.js.LICENSE.txt monitoring/static/js/6447.08677ae3.chunk.js.LICENSE.txt - monitoring/static/js/6539.39f8bd0e.chunk.js monitoring/static/js/6539.39f8bd0e.chunk.js - monitoring/static/js/6539.39f8bd0e.chunk.js.LICENSE.txt monitoring/static/js/6539.39f8bd0e.chunk.js.LICENSE.txt + monitoring/static/js/6447.2c0d9bda.chunk.js monitoring/static/js/6447.2c0d9bda.chunk.js + monitoring/static/js/6447.2c0d9bda.chunk.js.LICENSE.txt monitoring/static/js/6447.2c0d9bda.chunk.js.LICENSE.txt monitoring/static/js/654.863ea445.chunk.js monitoring/static/js/654.863ea445.chunk.js monitoring/static/js/654.863ea445.chunk.js.LICENSE.txt monitoring/static/js/654.863ea445.chunk.js.LICENSE.txt monitoring/static/js/6541.a39e9d6a.chunk.js monitoring/static/js/6541.a39e9d6a.chunk.js - monitoring/static/js/6554.70d080f7.chunk.js monitoring/static/js/6554.70d080f7.chunk.js - monitoring/static/js/6554.70d080f7.chunk.js.LICENSE.txt monitoring/static/js/6554.70d080f7.chunk.js.LICENSE.txt + monitoring/static/js/6548.72446369.chunk.js monitoring/static/js/6548.72446369.chunk.js + monitoring/static/js/6554.6dfab136.chunk.js monitoring/static/js/6554.6dfab136.chunk.js + monitoring/static/js/6554.6dfab136.chunk.js.LICENSE.txt monitoring/static/js/6554.6dfab136.chunk.js.LICENSE.txt monitoring/static/js/6625.a8d44d36.chunk.js monitoring/static/js/6625.a8d44d36.chunk.js monitoring/static/js/6658.b22172da.chunk.js monitoring/static/js/6658.b22172da.chunk.js monitoring/static/js/6658.b22172da.chunk.js.LICENSE.txt monitoring/static/js/6658.b22172da.chunk.js.LICENSE.txt monitoring/static/js/6664.b4dbf019.chunk.js monitoring/static/js/6664.b4dbf019.chunk.js - monitoring/static/js/6708.4a755add.chunk.js monitoring/static/js/6708.4a755add.chunk.js monitoring/static/js/6786.28af14f6.chunk.js monitoring/static/js/6786.28af14f6.chunk.js + monitoring/static/js/6820.73ff230e.chunk.js monitoring/static/js/6820.73ff230e.chunk.js + monitoring/static/js/6820.73ff230e.chunk.js.LICENSE.txt monitoring/static/js/6820.73ff230e.chunk.js.LICENSE.txt monitoring/static/js/6833.584b7806.chunk.js monitoring/static/js/6833.584b7806.chunk.js + monitoring/static/js/684.7c31509b.chunk.js monitoring/static/js/684.7c31509b.chunk.js monitoring/static/js/6879.2965a366.chunk.js monitoring/static/js/6879.2965a366.chunk.js monitoring/static/js/6881.7e6434c9.chunk.js monitoring/static/js/6881.7e6434c9.chunk.js - monitoring/static/js/6947.0d51a0cf.chunk.js monitoring/static/js/6947.0d51a0cf.chunk.js - monitoring/static/js/6989.23c1d1b9.chunk.js monitoring/static/js/6989.23c1d1b9.chunk.js - monitoring/static/js/6990.d7efc318.chunk.js monitoring/static/js/6990.d7efc318.chunk.js + monitoring/static/js/6990.70257b9b.chunk.js monitoring/static/js/6990.70257b9b.chunk.js monitoring/static/js/710.87e9f2e0.chunk.js monitoring/static/js/710.87e9f2e0.chunk.js monitoring/static/js/7118.ce0cd05f.chunk.js monitoring/static/js/7118.ce0cd05f.chunk.js monitoring/static/js/7118.ce0cd05f.chunk.js.LICENSE.txt monitoring/static/js/7118.ce0cd05f.chunk.js.LICENSE.txt @@ -388,9 +385,11 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/7206.6b7278f5.chunk.js.LICENSE.txt monitoring/static/js/7206.6b7278f5.chunk.js.LICENSE.txt monitoring/static/js/7240.a674bc94.chunk.js monitoring/static/js/7240.a674bc94.chunk.js monitoring/static/js/730.a22f6f5f.chunk.js monitoring/static/js/730.a22f6f5f.chunk.js - monitoring/static/js/7329.a17ffd6a.chunk.js monitoring/static/js/7329.a17ffd6a.chunk.js + monitoring/static/js/7329.514640a4.chunk.js monitoring/static/js/7329.514640a4.chunk.js monitoring/static/js/734.3fe325e9.chunk.js monitoring/static/js/734.3fe325e9.chunk.js monitoring/static/js/734.3fe325e9.chunk.js.LICENSE.txt monitoring/static/js/734.3fe325e9.chunk.js.LICENSE.txt + monitoring/static/js/7341.6e678529.chunk.js monitoring/static/js/7341.6e678529.chunk.js + monitoring/static/js/7341.6e678529.chunk.js.LICENSE.txt monitoring/static/js/7341.6e678529.chunk.js.LICENSE.txt monitoring/static/js/7348.eac33db2.chunk.js monitoring/static/js/7348.eac33db2.chunk.js monitoring/static/js/7357.a518ad9e.chunk.js monitoring/static/js/7357.a518ad9e.chunk.js monitoring/static/js/7380.38a8eedf.chunk.js monitoring/static/js/7380.38a8eedf.chunk.js @@ -400,6 +399,7 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/7574.8ac9803d.chunk.js.LICENSE.txt monitoring/static/js/7574.8ac9803d.chunk.js.LICENSE.txt monitoring/static/js/7579.079e5569.chunk.js monitoring/static/js/7579.079e5569.chunk.js monitoring/static/js/7605.cdc8f605.chunk.js monitoring/static/js/7605.cdc8f605.chunk.js + monitoring/static/js/7614.00d00ded.chunk.js monitoring/static/js/7614.00d00ded.chunk.js monitoring/static/js/7638.5489d672.chunk.js monitoring/static/js/7638.5489d672.chunk.js monitoring/static/js/7638.5489d672.chunk.js.LICENSE.txt monitoring/static/js/7638.5489d672.chunk.js.LICENSE.txt monitoring/static/js/7642.39707d60.chunk.js monitoring/static/js/7642.39707d60.chunk.js @@ -407,9 +407,11 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/7692.af7181c9.chunk.js monitoring/static/js/7692.af7181c9.chunk.js monitoring/static/js/7692.af7181c9.chunk.js.LICENSE.txt monitoring/static/js/7692.af7181c9.chunk.js.LICENSE.txt monitoring/static/js/7697.44af783d.chunk.js monitoring/static/js/7697.44af783d.chunk.js - monitoring/static/js/7718.98954359.chunk.js monitoring/static/js/7718.98954359.chunk.js - monitoring/static/js/7718.98954359.chunk.js.LICENSE.txt monitoring/static/js/7718.98954359.chunk.js.LICENSE.txt + monitoring/static/js/7718.f897f8ca.chunk.js monitoring/static/js/7718.f897f8ca.chunk.js + monitoring/static/js/7718.f897f8ca.chunk.js.LICENSE.txt monitoring/static/js/7718.f897f8ca.chunk.js.LICENSE.txt monitoring/static/js/7748.3ec14243.chunk.js monitoring/static/js/7748.3ec14243.chunk.js + monitoring/static/js/7750.1fea5741.chunk.js monitoring/static/js/7750.1fea5741.chunk.js + monitoring/static/js/7750.1fea5741.chunk.js.LICENSE.txt monitoring/static/js/7750.1fea5741.chunk.js.LICENSE.txt monitoring/static/js/7878.1f9512c4.chunk.js monitoring/static/js/7878.1f9512c4.chunk.js monitoring/static/js/7946.3b4cf6fd.chunk.js monitoring/static/js/7946.3b4cf6fd.chunk.js monitoring/static/js/7946.3b4cf6fd.chunk.js.LICENSE.txt monitoring/static/js/7946.3b4cf6fd.chunk.js.LICENSE.txt @@ -426,20 +428,21 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/8234.7512920e.chunk.js monitoring/static/js/8234.7512920e.chunk.js monitoring/static/js/8234.7512920e.chunk.js.LICENSE.txt monitoring/static/js/8234.7512920e.chunk.js.LICENSE.txt monitoring/static/js/8256.a2ce240a.chunk.js monitoring/static/js/8256.a2ce240a.chunk.js + monitoring/static/js/8452.551c16c8.chunk.js monitoring/static/js/8452.551c16c8.chunk.js monitoring/static/js/8517.cf981031.chunk.js monitoring/static/js/8517.cf981031.chunk.js monitoring/static/js/8534.f7aec532.chunk.js monitoring/static/js/8534.f7aec532.chunk.js - monitoring/static/js/8546.810f324c.chunk.js monitoring/static/js/8546.810f324c.chunk.js - monitoring/static/js/8546.810f324c.chunk.js.LICENSE.txt monitoring/static/js/8546.810f324c.chunk.js.LICENSE.txt + monitoring/static/js/856.78147a4f.chunk.js monitoring/static/js/856.78147a4f.chunk.js monitoring/static/js/8633.da605a09.chunk.js monitoring/static/js/8633.da605a09.chunk.js monitoring/static/js/8704.87492da1.chunk.js monitoring/static/js/8704.87492da1.chunk.js monitoring/static/js/8706.755fcb81.chunk.js monitoring/static/js/8706.755fcb81.chunk.js - monitoring/static/js/8821.fb95fc65.chunk.js monitoring/static/js/8821.fb95fc65.chunk.js - monitoring/static/js/8821.fb95fc65.chunk.js.LICENSE.txt monitoring/static/js/8821.fb95fc65.chunk.js.LICENSE.txt + monitoring/static/js/8821.96eeccd6.chunk.js monitoring/static/js/8821.96eeccd6.chunk.js + monitoring/static/js/8821.96eeccd6.chunk.js.LICENSE.txt monitoring/static/js/8821.96eeccd6.chunk.js.LICENSE.txt monitoring/static/js/8840.5eb376ca.chunk.js monitoring/static/js/8840.5eb376ca.chunk.js + monitoring/static/js/8868.a9031705.chunk.js monitoring/static/js/8868.a9031705.chunk.js monitoring/static/js/8890.9f3d8f08.chunk.js monitoring/static/js/8890.9f3d8f08.chunk.js - monitoring/static/js/8979.d6e940f4.chunk.js monitoring/static/js/8979.d6e940f4.chunk.js - monitoring/static/js/8986.5e9e2b69.chunk.js monitoring/static/js/8986.5e9e2b69.chunk.js - monitoring/static/js/8986.5e9e2b69.chunk.js.LICENSE.txt monitoring/static/js/8986.5e9e2b69.chunk.js.LICENSE.txt + monitoring/static/js/8979.0c0acc31.chunk.js monitoring/static/js/8979.0c0acc31.chunk.js + monitoring/static/js/8986.de287636.chunk.js monitoring/static/js/8986.de287636.chunk.js + monitoring/static/js/8986.de287636.chunk.js.LICENSE.txt monitoring/static/js/8986.de287636.chunk.js.LICENSE.txt monitoring/static/js/9010.4bfaf5fa.chunk.js monitoring/static/js/9010.4bfaf5fa.chunk.js monitoring/static/js/9010.4bfaf5fa.chunk.js.LICENSE.txt monitoring/static/js/9010.4bfaf5fa.chunk.js.LICENSE.txt monitoring/static/js/902.a1b90b1b.chunk.js monitoring/static/js/902.a1b90b1b.chunk.js @@ -453,6 +456,7 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/9220.a9f48eb9.chunk.js monitoring/static/js/9220.a9f48eb9.chunk.js monitoring/static/js/9222.a1913f85.chunk.js monitoring/static/js/9222.a1913f85.chunk.js monitoring/static/js/9243.cb95c73b.chunk.js monitoring/static/js/9243.cb95c73b.chunk.js + monitoring/static/js/9300.277e4f3f.chunk.js monitoring/static/js/9300.277e4f3f.chunk.js monitoring/static/js/9312.5eb8d4b1.chunk.js monitoring/static/js/9312.5eb8d4b1.chunk.js monitoring/static/js/9312.5eb8d4b1.chunk.js.LICENSE.txt monitoring/static/js/9312.5eb8d4b1.chunk.js.LICENSE.txt monitoring/static/js/9394.ca56f408.chunk.js monitoring/static/js/9394.ca56f408.chunk.js @@ -460,6 +464,7 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/9433.4cf14d1c.chunk.js monitoring/static/js/9433.4cf14d1c.chunk.js monitoring/static/js/9466.0afe6e6e.chunk.js monitoring/static/js/9466.0afe6e6e.chunk.js monitoring/static/js/949.12b4714d.chunk.js monitoring/static/js/949.12b4714d.chunk.js + monitoring/static/js/9507.14872b99.chunk.js monitoring/static/js/9507.14872b99.chunk.js monitoring/static/js/9518.3fffdd45.chunk.js monitoring/static/js/9518.3fffdd45.chunk.js monitoring/static/js/9523.ac019963.chunk.js monitoring/static/js/9523.ac019963.chunk.js monitoring/static/js/957.08a1c505.chunk.js monitoring/static/js/957.08a1c505.chunk.js @@ -470,25 +475,27 @@ IF (NOT EXPORT_CMAKE) monitoring/static/js/9697.bed5988b.chunk.js monitoring/static/js/9697.bed5988b.chunk.js monitoring/static/js/9707.72e68790.chunk.js monitoring/static/js/9707.72e68790.chunk.js monitoring/static/js/9725.a94823a0.chunk.js monitoring/static/js/9725.a94823a0.chunk.js - monitoring/static/js/9728.0d021c0f.chunk.js monitoring/static/js/9728.0d021c0f.chunk.js - monitoring/static/js/9728.0d021c0f.chunk.js.LICENSE.txt monitoring/static/js/9728.0d021c0f.chunk.js.LICENSE.txt + monitoring/static/js/9728.7cc957e4.chunk.js monitoring/static/js/9728.7cc957e4.chunk.js + monitoring/static/js/9728.7cc957e4.chunk.js.LICENSE.txt monitoring/static/js/9728.7cc957e4.chunk.js.LICENSE.txt monitoring/static/js/9748.e711e962.chunk.js monitoring/static/js/9748.e711e962.chunk.js monitoring/static/js/9748.e711e962.chunk.js.LICENSE.txt monitoring/static/js/9748.e711e962.chunk.js.LICENSE.txt monitoring/static/js/9778.52ad76ce.chunk.js monitoring/static/js/9778.52ad76ce.chunk.js monitoring/static/js/9778.52ad76ce.chunk.js.LICENSE.txt monitoring/static/js/9778.52ad76ce.chunk.js.LICENSE.txt + monitoring/static/js/9796.8870e3ef.chunk.js monitoring/static/js/9796.8870e3ef.chunk.js monitoring/static/js/9801.b9143d43.chunk.js monitoring/static/js/9801.b9143d43.chunk.js monitoring/static/js/9842.b8ba19ad.chunk.js monitoring/static/js/9842.b8ba19ad.chunk.js monitoring/static/js/9842.b8ba19ad.chunk.js.LICENSE.txt monitoring/static/js/9842.b8ba19ad.chunk.js.LICENSE.txt monitoring/static/js/9872.65a6fae7.chunk.js monitoring/static/js/9872.65a6fae7.chunk.js monitoring/static/js/9872.65a6fae7.chunk.js.LICENSE.txt monitoring/static/js/9872.65a6fae7.chunk.js.LICENSE.txt monitoring/static/js/9882.b983931a.chunk.js monitoring/static/js/9882.b983931a.chunk.js + monitoring/static/js/99.dd803d0d.chunk.js monitoring/static/js/99.dd803d0d.chunk.js monitoring/static/js/9908.4bd3acb1.chunk.js monitoring/static/js/9908.4bd3acb1.chunk.js monitoring/static/js/9922.367b63b0.chunk.js monitoring/static/js/9922.367b63b0.chunk.js - monitoring/static/js/main.3b2c9faf.js monitoring/static/js/main.3b2c9faf.js - monitoring/static/js/main.3b2c9faf.js.LICENSE.txt monitoring/static/js/main.3b2c9faf.js.LICENSE.txt + monitoring/static/js/main.73969f38.js monitoring/static/js/main.73969f38.js + monitoring/static/js/main.73969f38.js.LICENSE.txt monitoring/static/js/main.73969f38.js.LICENSE.txt monitoring/static/media/403.271ae19f0d1101a2c67a904146bbd4d3.svg monitoring/static/media/403.271ae19f0d1101a2c67a904146bbd4d3.svg monitoring/static/media/403.6367e52f9464706633f52a2488a41958.svg monitoring/static/media/403.6367e52f9464706633f52a2488a41958.svg - monitoring/static/media/codicon.762fced46d6cddbda272.ttf monitoring/static/media/codicon.762fced46d6cddbda272.ttf + monitoring/static/media/codicon.f6283f7ccaed1249d9eb.ttf monitoring/static/media/codicon.f6283f7ccaed1249d9eb.ttf monitoring/static/media/error.9bbd075178a739dcc30f2a7a3e2a3249.svg monitoring/static/media/error.9bbd075178a739dcc30f2a7a3e2a3249.svg monitoring/static/media/error.ca9e31d5d3dc34da07e11a00f7af0842.svg monitoring/static/media/error.ca9e31d5d3dc34da07e11a00f7af0842.svg monitoring/static/media/thumbsUp.d4a03fbaa64ce85a0045bf8ba77f8e2b.svg monitoring/static/media/thumbsUp.d4a03fbaa64ce85a0045bf8ba77f8e2b.svg |
